From 6f08201b71315ad552ca5413e7e4e15e6873f65d Mon Sep 17 00:00:00 2001 From: theo3 Date: Tue, 7 Jul 2020 19:19:42 -0700 Subject: [PATCH 001/158] treeHidingPortal.c --- asm/code_08018500.s | 4 +- asm/treeHidingPortal.s | 196 ----------------------------------------- include/entity.h | 5 ++ linker.ld | 1 + src/treeHidingPortal.c | 88 ++++++++++++++++++ 5 files changed, 96 insertions(+), 198 deletions(-) create mode 100644 src/treeHidingPortal.c diff --git a/asm/code_08018500.s b/asm/code_08018500.s index a730aedc..dd69e0da 100644 --- a/asm/code_08018500.s +++ b/asm/code_08018500.s @@ -925,8 +925,8 @@ _08018C10: _08018C14: .4byte gUnk_080FEAC8 _08018C18: .4byte gUnk_080FE320 - thumb_func_start sub_08018C1C -sub_08018C1C: @ 0x08018C1C + thumb_func_start CreateMinishEntrance +CreateMinishEntrance: @ 0x08018C1C push {r4, r5, r6, r7, lr} mov r7, r8 push {r7} diff --git a/asm/treeHidingPortal.s b/asm/treeHidingPortal.s index fd37c842..e579293c 100644 --- a/asm/treeHidingPortal.s +++ b/asm/treeHidingPortal.s @@ -6,202 +6,6 @@ .text - - thumb_func_start TreeHidingPortal -TreeHidingPortal: @ 0x0809E824 - push {lr} - ldr r2, _0809E838 @ =gUnk_08124354 - ldrb r1, [r0, #0xc] - lsls r1, r1, #2 - adds r1, r1, r2 - ldr r1, [r1] - bl _call_via_r1 - pop {pc} - .align 2, 0 -_0809E838: .4byte gUnk_08124354 - - thumb_func_start sub_0809E83C -sub_0809E83C: @ 0x0809E83C - push {r4, lr} - adds r4, r0, #0 - adds r0, #0x86 - ldrh r0, [r0] - bl CheckFlags - cmp r0, #0 - beq _0809E856 - adds r0, r4, #0 - bl sub_0809E96C - bl DeleteThisEntity -_0809E856: - movs r0, #1 - strb r0, [r4, #0xc] - adds r1, r4, #0 - adds r1, #0x38 - movs r0, #2 - strb r0, [r1] - adds r0, r4, #0 - bl UpdateSpriteOrderAndFlip - pop {r4, pc} - .align 2, 0 - - thumb_func_start sub_0809E86C -sub_0809E86C: @ 0x0809E86C - push {r4, lr} - adds r4, r0, #0 - ldr r1, _0809E8B4 @ =gLinkEntity - movs r2, #0x30 - movs r3, #0x30 - bl sub_0800419C - cmp r0, #0 - beq _0809E89A - movs r0, #0x14 - bl CheckGlobalFlag - cmp r0, #0 - beq _0809E89A - ldr r0, _0809E8B8 @ =gUnk_030010A0 - ldr r0, [r0] - movs r1, #3 - ands r0, r1 - cmp r0, #0 - bne _0809E89A - adds r0, r4, #0 - bl sub_080A2B80 -_0809E89A: - bl sub_0809E9A0 - cmp r0, #0x54 - bne _0809E8B0 - movs r0, #2 - strb r0, [r4, #0xc] - movs r0, #0xf - strb r0, [r4, #0xe] - movs r0, #1 - bl sub_08078A90 -_0809E8B0: - pop {r4, pc} - .align 2, 0 -_0809E8B4: .4byte gLinkEntity -_0809E8B8: .4byte gUnk_030010A0 - - thumb_func_start sub_0809E8BC -sub_0809E8BC: @ 0x0809E8BC - push {r4, lr} - adds r4, r0, #0 - ldrb r0, [r4, #0xe] - subs r0, #1 - strb r0, [r4, #0xe] - lsls r0, r0, #0x18 - cmp r0, #0 - bne _0809E8E8 - movs r0, #3 - strb r0, [r4, #0xc] - movs r0, #0x3c - strb r0, [r4, #0xe] - ldrb r1, [r4, #0x18] - subs r0, #0x40 - ands r0, r1 - strb r0, [r4, #0x18] - adds r0, r4, #0 - bl sub_0809E96C - adds r0, r4, #0 - bl sub_0809E918 -_0809E8E8: - pop {r4, pc} - .align 2, 0 - - thumb_func_start sub_0809E8EC -sub_0809E8EC: @ 0x0809E8EC - push {lr} - adds r1, r0, #0 - ldrb r0, [r1, #0xe] - subs r0, #1 - strb r0, [r1, #0xe] - lsls r0, r0, #0x18 - cmp r0, #0 - bne _0809E916 - adds r0, r1, #0 - adds r0, #0x86 - ldrh r0, [r0] - bl SetFlag - movs r0, #0 - bl sub_08078A90 - movs r0, #0x73 - bl PlaySFX - bl DeleteThisEntity -_0809E916: - pop {pc} - - thumb_func_start sub_0809E918 -sub_0809E918: @ 0x0809E918 - push {r4, r5, r6, lr} - adds r5, r0, #0 - ldr r4, _0809E964 @ =gUnk_08124364 - movs r1, #0 - ldrsh r0, [r4, r1] - ldr r1, _0809E968 @ =0xFFFFFC18 - cmp r0, r1 - beq _0809E962 - adds r6, r1, #0 -_0809E92A: - adds r0, r5, #0 - movs r1, #3 - movs r2, #0 - bl CreateFx - adds r2, r0, #0 - cmp r2, #0 - beq _0809E958 - ldrh r0, [r4] - ldrh r1, [r2, #0x2e] - adds r0, r0, r1 - strh r0, [r2, #0x2e] - ldrh r0, [r4, #2] - ldrh r1, [r2, #0x32] - adds r0, r0, r1 - strh r0, [r2, #0x32] - adds r1, r2, #0 - adds r1, #0x38 - movs r0, #2 - strb r0, [r1] - adds r0, r2, #0 - bl UpdateSpriteOrderAndFlip -_0809E958: - adds r4, #4 - movs r1, #0 - ldrsh r0, [r4, r1] - cmp r0, r6 - bne _0809E92A -_0809E962: - pop {r4, r5, r6, pc} - .align 2, 0 -_0809E964: .4byte gUnk_08124364 -_0809E968: .4byte 0xFFFFFC18 - - thumb_func_start sub_0809E96C -sub_0809E96C: @ 0x0809E96C - push {r4, r5, lr} - adds r4, r0, #0 - movs r1, #0x2e - ldrsh r0, [r4, r1] - ldr r2, _0809E99C @ =gRoomControls - ldrh r1, [r2, #6] - adds r1, #0x20 - subs r0, r0, r1 - asrs r0, r0, #4 - movs r3, #0x3f - ands r0, r3 - movs r5, #0x32 - ldrsh r1, [r4, r5] - ldrh r2, [r2, #8] - adds r2, #8 - subs r1, r1, r2 - asrs r1, r1, #4 - ands r1, r3 - lsls r1, r1, #6 - orrs r0, r1 - bl sub_08018C1C - pop {r4, r5, pc} - .align 2, 0 -_0809E99C: .4byte gRoomControls - thumb_func_start sub_0809E9A0 sub_0809E9A0: @ 0x0809E9A0 push {r4, r5, r6, lr} diff --git a/include/entity.h b/include/entity.h index a1dc11dd..afa1cc24 100644 --- a/include/entity.h +++ b/include/entity.h @@ -157,6 +157,10 @@ typedef struct Entity { ((((entity->x.HALF.HI - gRoomControls.roomOriginX) >> 4) & 0x3fU) | \ (((entity->y.HALF.HI - gRoomControls.roomOriginY) >> 4) & 0x3fU) << 6) +#define COORD_TO_TILE_OFFSET(entity, xOff, yOff) \ + ((((entity->x.HALF.HI - xOff - gRoomControls.roomOriginX) >> 4) & 0x3fU) | \ + (((entity->y.HALF.HI - yOff - gRoomControls.roomOriginY) >> 4) & 0x3fU) << 6) + extern void InitializeAnimation(Entity*, u32); extern void InitAnimationForceUpdate(Entity*, u32); extern void UpdateAnimationSingleFrame(Entity*); @@ -172,4 +176,5 @@ extern Entity* CreateNPC(u32 subtype, u32 form, u32 parameter); extern Entity* CreateObjectWithParent(Entity* parent, u32 subtype, u32 form, u32 parameter); extern Entity* CreateFx(Entity* parent, u32 form, u32 parameter); +extern void DeleteThisEntity(); #endif diff --git a/linker.ld b/linker.ld index 7586253b..4a36d0c4 100644 --- a/linker.ld +++ b/linker.ld @@ -811,6 +811,7 @@ SECTIONS { asm/object99.o(.text); asm/macroAcorn.o(.text); asm/object9B.o(.text); + src/treeHidingPortal.o(.text); asm/treeHidingPortal.o(.text); src/lightableSwitch.o(.text); asm/object9E.o(.text); diff --git a/src/treeHidingPortal.c b/src/treeHidingPortal.c new file mode 100644 index 00000000..39bc2128 --- /dev/null +++ b/src/treeHidingPortal.c @@ -0,0 +1,88 @@ +#include "global.h" +#include "entity.h" +#include "flags.h" +#include "link.h" +#include "room.h" + +extern void sub_0809E96C(Entity*); +extern u32 sub_0800419C(Entity*, Entity*, u32, u32); +extern void sub_080A2B80(Entity*); +extern u32 sub_0809E9A0(void); +extern void sub_08078A90(u32); +extern void sub_0809E918(Entity*); +extern void PlaySFX(u32); +extern void CreateMinishEntrance(u32 tile); + +extern void (*const gUnk_08124354[])(Entity*); + +extern u32 gUnk_030010A0; +extern s16 gUnk_08124364[]; + +void TreeHidingPortal(Entity* this) { + gUnk_08124354[this->action](this); +} + +void sub_0809E83C(Entity* this) { + if (CheckFlags(this->field_0x86)) { + sub_0809E96C(this); + DeleteThisEntity(); + } + this->action = 1; + this->collisionLayer = 2; + UpdateSpriteOrderAndFlip(this); +} + +void sub_0809E86C(Entity* this) { + + if (sub_0800419C(this, &gLinkEntity, 0x30, 0x30)) { + if (CheckGlobalFlag(0x14)) { + if (((gUnk_030010A0 & 3) == 0)) { + sub_080A2B80(this); + } + } + } + if (sub_0809E9A0() == 0x54) { + this->action = 2; + this->actionDelay = 0xf; + sub_08078A90(1); + } +} + +void sub_0809E8BC(Entity* this) { + if (--this->actionDelay == 0) { + this->action = 3; + this->actionDelay = 0x3c; + this->spriteSettings.b.ss0 = 0; + sub_0809E96C(this); + sub_0809E918(this); + } +} + +void sub_0809E8EC(Entity* this) { + if (--this->actionDelay == 0) { + SetFlag(this->field_0x86); + sub_08078A90(0); + PlaySFX(0x73); + DeleteThisEntity(); + } +} + +void sub_0809E918(Entity* this) { + Entity* fx; + s16* i = gUnk_08124364; + while (*i != -1000) { + fx = CreateFx(this, 3, 0); + if (fx != NULL) { + fx->x.HALF.HI += i[0]; + fx->y.HALF.HI += i[1]; + fx->collisionLayer = 2; + UpdateSpriteOrderAndFlip(fx); + } + i += sizeof(s16); + } +} + +void sub_0809E96C(Entity *this) +{ + CreateMinishEntrance(COORD_TO_TILE_OFFSET(this, 0x20, 0x8)); +} \ No newline at end of file From bde7b45adbd3f395fd934211059022e6ee46a95d Mon Sep 17 00:00:00 2001 From: theo3 Date: Wed, 8 Jul 2020 19:45:04 -0700 Subject: [PATCH 002/158] object86.c OK --- asm/code_080A29BC.s | 119 ------------------------ asm/object49.s | 217 ------------------------------------------- asm/object86.s | 181 ------------------------------------ include/entity.h | 222 ++++++++++++++++++++++---------------------- linker.ld | 4 +- src/code_080A29BC.c | 69 ++++++++++++++ src/object49.c | 102 ++++++++++++++++++++ src/object86.c | 81 ++++++++++++++++ 8 files changed, 365 insertions(+), 630 deletions(-) delete mode 100644 asm/object86.s create mode 100644 src/code_080A29BC.c create mode 100644 src/object49.c create mode 100644 src/object86.c diff --git a/asm/code_080A29BC.s b/asm/code_080A29BC.s index 37276f4b..928762f3 100644 --- a/asm/code_080A29BC.s +++ b/asm/code_080A29BC.s @@ -4,125 +4,6 @@ .syntax unified .text - - thumb_func_start sub_080A29BC -sub_080A29BC: @ 0x080A29BC - push {lr} - movs r1, #2 - movs r2, #0 - bl CreateFx - pop {pc} - - thumb_func_start sub_080A29C8 -sub_080A29C8: @ 0x080A29C8 - push {r4, r5, r6, lr} - adds r4, r0, #0 - adds r5, r1, #0 - adds r6, r2, #0 - movs r0, #0xf - movs r1, #2 - movs r2, #0 - bl CreateObject - adds r2, r0, #0 - cmp r2, #0 - beq _080A29F4 - ldr r1, _080A29F8 @ =gRoomControls - ldrh r0, [r1, #6] - adds r0, r0, r4 - strh r0, [r2, #0x2e] - ldrh r0, [r1, #8] - adds r0, r0, r5 - strh r0, [r2, #0x32] - adds r0, r2, #0 - adds r0, #0x38 - strb r6, [r0] -_080A29F4: - pop {r4, r5, r6, pc} - .align 2, 0 -_080A29F8: .4byte gRoomControls - - thumb_func_start sub_080A29FC -sub_080A29FC: @ 0x080A29FC - push {lr} - movs r1, #0x11 - movs r2, #0 - bl CreateFx - pop {pc} - - thumb_func_start sub_080A2A08 -sub_080A2A08: @ 0x080A2A08 - push {lr} - movs r1, #6 - movs r2, #0 - bl CreateFx - pop {pc} - - thumb_func_start sub_080A2A14 -sub_080A2A14: @ 0x080A2A14 - push {lr} - movs r1, #0xb - movs r2, #0 - bl CreateFx - pop {pc} - - thumb_func_start sub_080A2A20 -sub_080A2A20: @ 0x080A2A20 - push {r4, lr} - adds r4, r1, #0 - adds r3, r2, #0 - movs r1, #0 - adds r2, r4, #0 - bl CreateObjectWithParent - adds r1, r0, #0 - cmp r1, #0 - beq _080A2A38 - movs r0, #5 - strb r0, [r1, #0xe] -_080A2A38: - adds r0, r1, #0 - pop {r4, pc} - - thumb_func_start sub_080A2A3C -sub_080A2A3C: @ 0x080A2A3C - push {r4, r5, r6, lr} - adds r4, r1, #0 - adds r5, r2, #0 - adds r6, r3, #0 - movs r1, #0 - adds r2, r4, #0 - adds r3, r5, #0 - bl CreateObjectWithParent - adds r1, r0, #0 - cmp r1, #0 - beq _080A2A5E - movs r0, #5 - strb r0, [r1, #0xe] - adds r0, r1, #0 - adds r0, #0x86 - strh r6, [r0] -_080A2A5E: - adds r0, r1, #0 - pop {r4, r5, r6, pc} - .align 2, 0 - - thumb_func_start sub_080A2A64 -sub_080A2A64: @ 0x080A2A64 - push {lr} - movs r1, #0x20 - movs r2, #0 - bl CreateFx - adds r2, r0, #0 - cmp r2, #0 - beq _080A2A80 - adds r3, r2, #0 - adds r3, #0x29 - ldrb r0, [r3] - movs r1, #7 - orrs r0, r1 - strb r0, [r3] -_080A2A80: - adds r0, r2, #0 - pop {pc} thumb_func_start sub_080A2A84 sub_080A2A84: @ 0x080A2A84 diff --git a/asm/object49.s b/asm/object49.s index 4fa846a4..1fdfafa3 100644 --- a/asm/object49.s +++ b/asm/object49.s @@ -6,223 +6,6 @@ .text - - thumb_func_start Object49 -Object49: @ 0x0808F0A0 - push {lr} - ldr r2, _0808F0B4 @ =gUnk_08121E5C - ldrb r1, [r0, #0xa] - lsls r1, r1, #2 - adds r1, r1, r2 - ldr r1, [r1] - bl _call_via_r1 - pop {pc} - .align 2, 0 -_0808F0B4: .4byte gUnk_08121E5C - - thumb_func_start sub_0808F0B8 -sub_0808F0B8: @ 0x0808F0B8 - push {lr} - ldr r2, _0808F0CC @ =gUnk_08121E88 - ldrb r1, [r0, #0xc] - lsls r1, r1, #2 - adds r1, r1, r2 - ldr r1, [r1] - bl _call_via_r1 - pop {pc} - .align 2, 0 -_0808F0CC: .4byte gUnk_08121E88 - - thumb_func_start sub_0808F0D0 -sub_0808F0D0: @ 0x0808F0D0 - push {r4, r5, r6, lr} - adds r5, r0, #0 - movs r1, #0x49 - movs r2, #2 - movs r3, #0 - bl CreateObjectWithParent - str r0, [r5, #0x54] - cmp r0, #0 - bne _0808F0E8 - bl DeleteThisEntity -_0808F0E8: - movs r6, #1 - strb r6, [r5, #0xc] - ldr r0, _0808F148 @ =0x0000FF40 - strh r0, [r5, #0x36] - bl Random - adds r4, r0, #0 - movs r0, #0x3f - ands r4, r0 - bl Random - ands r0, r6 - cmp r0, #0 - beq _0808F106 - rsbs r4, r4, #0 -_0808F106: - ldr r0, [r5, #0x50] - ldrh r0, [r0, #0x2e] - adds r0, r0, r4 - strh r0, [r5, #0x2e] - bl Random - adds r4, r0, #0 - movs r0, #0x1f - ands r4, r0 - bl Random - ands r0, r6 - cmp r0, #0 - beq _0808F124 - rsbs r4, r4, #0 -_0808F124: - ldr r0, [r5, #0x50] - ldrh r0, [r0, #0x32] - adds r0, r0, r4 - strh r0, [r5, #0x32] - movs r0, #0x90 - lsls r0, r0, #2 - str r0, [r5, #0x74] - movs r0, #0xa0 - lsls r0, r0, #1 - str r0, [r5, #0x78] - adds r0, r5, #0 - movs r1, #3 - bl InitializeAnimation - adds r0, r5, #0 - bl sub_0808F14C - pop {r4, r5, r6, pc} - .align 2, 0 -_0808F148: .4byte 0x0000FF40 - - thumb_func_start sub_0808F14C -sub_0808F14C: @ 0x0808F14C - push {r4, lr} - adds r4, r0, #0 - bl sub_0808F2B0 - movs r1, #0x80 - lsls r1, r1, #6 - adds r0, r4, #0 - bl sub_08003FC4 - cmp r0, #0 - bne _0808F16E - ldrb r0, [r4, #0xc] - adds r0, #1 - strb r0, [r4, #0xc] - movs r0, #0x84 - bl PlaySFX -_0808F16E: - pop {r4, pc} - - thumb_func_start sub_0808F170 -sub_0808F170: @ 0x0808F170 - push {r4, lr} - adds r4, r0, #0 - ldr r0, [r4, #0x74] - subs r0, #0x20 - str r0, [r4, #0x74] - ldr r1, [r4, #0x78] - adds r1, #0x20 - str r1, [r4, #0x78] - adds r0, r4, #0 - movs r2, #8 - movs r3, #2 - bl sub_0806FCF4 - ldr r1, [r4, #0x78] - ldr r0, _0808F1A0 @ =0x000001FF - cmp r1, r0 - bls _0808F198 - ldrb r0, [r4, #0xc] - adds r0, #1 - strb r0, [r4, #0xc] -_0808F198: - adds r0, r4, #0 - bl sub_0808F2B0 - pop {r4, pc} - .align 2, 0 -_0808F1A0: .4byte 0x000001FF - - thumb_func_start sub_0808F1A4 -sub_0808F1A4: @ 0x0808F1A4 - push {r4, lr} - adds r4, r0, #0 - ldr r1, [r4, #0x78] - adds r1, #0x10 - str r1, [r4, #0x78] - ldr r0, [r4, #0x74] - adds r0, #0x10 - str r0, [r4, #0x74] - adds r0, r4, #0 - movs r2, #8 - movs r3, #2 - bl sub_0806FCF4 - ldr r1, [r4, #0x78] - ldr r0, _0808F1D4 @ =0x000003FF - cmp r1, r0 - bls _0808F1D8 - ldr r1, [r4, #0x54] - movs r0, #0xff - strb r0, [r1, #0xc] - bl DeleteThisEntity - b _0808F1DE - .align 2, 0 -_0808F1D4: .4byte 0x000003FF -_0808F1D8: - adds r0, r4, #0 - bl sub_0808F2B0 -_0808F1DE: - pop {r4, pc} - - thumb_func_start sub_0808F1E0 -sub_0808F1E0: @ 0x0808F1E0 - push {lr} - ldr r2, _0808F1F4 @ =gUnk_08121E98 - ldrb r1, [r0, #0xc] - lsls r1, r1, #2 - adds r1, r1, r2 - ldr r1, [r1] - bl _call_via_r1 - pop {pc} - .align 2, 0 -_0808F1F4: .4byte gUnk_08121E98 - - thumb_func_start sub_0808F1F8 -sub_0808F1F8: @ 0x0808F1F8 - push {r4, lr} - adds r4, r0, #0 - ldrb r2, [r4, #0x19] - movs r0, #3 - orrs r2, r0 - strb r2, [r4, #0x19] - ldrb r0, [r4, #0xc] - adds r0, #1 - strb r0, [r4, #0xc] - ldr r3, [r4, #0x50] - ldrb r1, [r3, #0x19] - lsrs r1, r1, #6 - lsls r1, r1, #6 - movs r0, #0x3f - ands r2, r0 - orrs r2, r1 - strb r2, [r4, #0x19] - ldrb r1, [r3, #0x1b] - lsrs r1, r1, #6 - lsls r1, r1, #6 - ldrb r2, [r4, #0x1b] - ands r0, r2 - orrs r0, r1 - strb r0, [r4, #0x1b] - adds r2, r4, #0 - adds r2, #0x29 - ldrb r0, [r2] - movs r1, #7 - orrs r0, r1 - strb r0, [r2] - adds r0, r4, #0 - movs r1, #1 - bl InitializeAnimation - adds r0, r4, #0 - bl sub_0808F244 - pop {r4, pc} - thumb_func_start sub_0808F244 sub_0808F244: @ 0x0808F244 push {r4, lr} diff --git a/asm/object86.s b/asm/object86.s deleted file mode 100644 index cfa2b565..00000000 --- a/asm/object86.s +++ /dev/null @@ -1,181 +0,0 @@ - .include "asm/macros.inc" - - .include "constants/constants.inc" - - .syntax unified - - .text - - - thumb_func_start Object86 -Object86: @ 0x08099DB8 - push {lr} - ldr r2, _08099DCC @ =gUnk_081237F8 - ldrb r1, [r0, #0xc] - lsls r1, r1, #2 - adds r1, r1, r2 - ldr r1, [r1] - bl _call_via_r1 - pop {pc} - .align 2, 0 -_08099DCC: .4byte gUnk_081237F8 - - thumb_func_start sub_08099DD0 -sub_08099DD0: @ 0x08099DD0 - push {r4, r5, r6, lr} - adds r4, r0, #0 - adds r0, #0x38 - movs r6, #0 - movs r5, #1 - strb r5, [r0] - ldrb r0, [r4, #0x19] - movs r1, #0xc0 - orrs r0, r1 - strb r0, [r4, #0x19] - adds r2, r4, #0 - adds r2, #0x29 - ldrb r0, [r2] - movs r1, #7 - orrs r0, r1 - strb r0, [r2] - strb r6, [r4, #0xd] - movs r0, #0x46 - bl GetInventoryValue - cmp r0, #0 - beq _08099E04 - movs r0, #4 - strb r0, [r4, #0xc] - strb r6, [r4, #0x1e] - b _08099E0E -_08099E04: - strb r5, [r4, #0xc] - adds r0, r4, #0 - movs r1, #0 - bl InitializeAnimation -_08099E0E: - pop {r4, r5, r6, pc} - - thumb_func_start sub_08099E10 -sub_08099E10: @ 0x08099E10 - push {r4, r5, lr} - adds r4, r0, #0 - movs r0, #0x74 - bl CheckLocalFlag - cmp r0, #0 - beq _08099E54 - adds r0, r4, #0 - bl GetNextFrame - adds r0, r4, #0 - adds r0, #0x5a - ldrb r1, [r0] - adds r5, r0, #0 - cmp r1, #1 - bne _08099E3E - ldrb r0, [r4, #0xd] - cmp r0, #0 - bne _08099E3E - strb r0, [r5] - adds r0, r4, #0 - bl sub_08099ECC -_08099E3E: - ldrb r1, [r5] - movs r0, #0x80 - ands r0, r1 - cmp r0, #0 - beq _08099E54 - movs r0, #2 - strb r0, [r4, #0xc] - adds r0, r4, #0 - movs r1, #1 - bl InitializeAnimation -_08099E54: - pop {r4, r5, pc} - .align 2, 0 - - thumb_func_start sub_08099E58 -sub_08099E58: @ 0x08099E58 - push {r4, lr} - adds r4, r0, #0 - bl GetNextFrame - adds r2, r4, #0 - adds r2, #0x5a - ldrb r1, [r2] - movs r0, #0x80 - ands r0, r1 - cmp r0, #0 - beq _08099E88 - movs r0, #0x7f - ands r0, r1 - strb r0, [r2] - ldrb r0, [r4, #0xe] - adds r0, #1 - strb r0, [r4, #0xe] - lsls r0, r0, #0x18 - lsrs r0, r0, #0x18 - cmp r0, #3 - bne _08099E88 - strb r0, [r4, #0xc] - movs r0, #4 - strb r0, [r4, #0x1e] -_08099E88: - pop {r4, pc} - .align 2, 0 - - thumb_func_start sub_08099E8C -sub_08099E8C: @ 0x08099E8C - push {r4, lr} - adds r4, r0, #0 - ldr r1, _08099EC4 @ =gLinkEntity - movs r2, #0xc - movs r3, #0xc - bl sub_080041A0 - cmp r0, #0 - beq _08099EC2 - ldrb r0, [r4, #0xd] - cmp r0, #0 - bne _08099EB2 - adds r0, r4, #0 - bl sub_08099ECC - adds r0, r4, #0 - movs r1, #0x1e - bl sub_0805E4E0 -_08099EB2: - movs r0, #0x75 - bl CheckLocalFlag - cmp r0, #0 - beq _08099EC2 - movs r0, #7 - bl sub_0805B390 -_08099EC2: - pop {r4, pc} - .align 2, 0 -_08099EC4: .4byte gLinkEntity - - thumb_func_start nullsub_534 -nullsub_534: @ 0x08099EC8 - bx lr - .align 2, 0 - - thumb_func_start sub_08099ECC -sub_08099ECC: @ 0x08099ECC - push {r4, lr} - movs r4, #0 - movs r1, #1 - strb r1, [r0, #0xd] - ldr r1, _08099EF4 @ =gLinkEntity - bl CopyPosition - ldr r2, _08099EF8 @ =gLinkState - movs r0, #3 - strb r0, [r2, #0xc] - adds r0, r2, #0 - adds r0, #0x38 - strb r4, [r0] - ldr r0, [r2, #0x30] - movs r1, #0x80 - lsls r1, r1, #8 - orrs r0, r1 - str r0, [r2, #0x30] - pop {r4, pc} - .align 2, 0 -_08099EF4: .4byte gLinkEntity -_08099EF8: .4byte gLinkState diff --git a/include/entity.h b/include/entity.h index afa1cc24..677b7d6c 100644 --- a/include/entity.h +++ b/include/entity.h @@ -1,3 +1,4 @@ +// clang-format off #ifndef ENTITY_H #define ENTITY_H @@ -39,118 +40,115 @@ union SplitHWord { } PACKED; typedef struct Entity { - u32* field_0x0; - u32* field_0x4; - EntityType entityType; - u8 action; - u8 previousActionFlag; - u8 actionDelay; - u8 field_0xf; - u8 flags; - u8 scriptedScene : 4; - u8 scriptedScene2 : 4; - s16 spriteTileSize; - u8 animationState; - u8 direction; - u8 possibleBool; - u8 field_0x17; - union { - u8 raw; - struct { - u8 ss0 : 2; - u8 ss2 : 1; - u8 ss3 : 1; - u8 ss4 : 1; - u8 ss5 : 1; - u8 ss6 : 1; - u8 ss7 : 1; - } PACKED b; - } PACKED spriteSettings; - - struct { - u8 b0 : 2; - u8 b1 : 2; - u8 b2 : 2; - u8 b3 : 2; - } PACKED spriteOrder; - - u8 palette; - struct { - u8 b0 : 4; - u8 b1 : 2; - u8 b2 : 2; - } PACKED spriteOrientation; - u8 filler[1]; - u8 field_0x1d; - u8 frameIndex; - u8 lastFrameIndex; - s32 field_0x20; - s16 nonPlanarMovement; - u8 spriteAnimation[3]; - struct { - u8 b0 : 3; - u8 b1 : 3; - u8 b2 : 2; - } PACKED ticks; - u16 collisions; - union SplitWord x; - union SplitWord y; - union SplitWord height; // todo - u8 collisionLayer; - s8 interactType; - u8 field_0x3a; - u8 flags2; - u8 field_0x3c; - u8 field_0x3d; - u8 field_0x3e; - u8 damageType; - u8 field_0x40; - u8 bitfield; - u8 field_0x42; - u8 field_0x43; - u8 field_0x44; - u8 currentHealth; - s16 field_0x46; - BoundingBox* boundingBox; - u8 field_0x4c; - u8 field_0x4d; - u8 field_0x4e; - u8 field_0x4f; - struct Entity* parent; - struct Entity* attachedEntity; - u8 animIndex; - u8 frameDuration; - union { - u8 all; - struct { - u8 f0 : 1; - u8 f1 : 5; - u8 f2 : 1; - u8 f3 : 1; - } PACKED b; - } PACKED frames; - u8 frameSpriteSettings; - Frame* animPtr; - u16 spriteVramOffset; - u8 spriteOffsetX; - u8 spriteOffsetY; - u32* otherEntity; - u8 field_0x68; - u8 field_0x69; - union SplitHWord field_0x6a; - u8 field_0x6c; - u8 field_0x6d; - u8 filler4[6]; - u16 field_0x74; - u16 field_0x76; - union SplitHWord field_0x78; - u16 field_0x7a; - union SplitWord field_0x7c; - u16 field_0x80; - u16 field_0x82; - union SplitHWord cutsceneBeh; - u16 field_0x86; - + /*0x00*/ u32* field_0x0; + /*0x04*/ u32* field_0x4; + /*0x08*/ EntityType entityType; + /*0x0c*/ u8 action; + /*0x0d*/ u8 previousActionFlag; + /*0x0e*/ u8 actionDelay; + /*0x0f*/ u8 field_0xf; + /*0x10*/ u8 flags; + /*0x11*/ u8 scriptedScene : 4; + /* */ u8 scriptedScene2 : 4; + /*0x12*/ s16 spriteTileSize; + /*0x14*/ u8 animationState; + /*0x15*/ u8 direction; + /*0x16*/ u8 possibleBool; + /*0x17*/ u8 field_0x17; + /*0x18*/ union { + /* */ u8 raw; + /* */ struct { + /* */ u8 ss0 : 2; + /* */ u8 ss2 : 1; + /* */ u8 ss3 : 1; + /* */ u8 ss4 : 1; + /* */ u8 ss5 : 1; + /* */ u8 ss6 : 1; + /* */ u8 ss7 : 1; + /* */ } PACKED b; + /* */ } PACKED spriteSettings; + /*0x19*/ struct { + /* */ u8 b0 : 2; + /* */ u8 b1 : 2; + /* */ u8 b2 : 2; + /* */ u8 b3 : 2; + /* */ } PACKED spriteOrder; + /*0x1a*/ u8 palette; + /*0x1b*/ struct { + /* */ u8 b0 : 4; + /* */ u8 b1 : 2; + /* */ u8 b2 : 2; + /* */ } PACKED spriteOrientation; + /*0x1c*/ u8 filler[1]; + /*0x1d*/ u8 field_0x1d; + /*0x1e*/ u8 frameIndex; + /*0x1f*/ u8 lastFrameIndex; + /*0x20*/ s32 field_0x20; + /*0x24*/ s16 nonPlanarMovement; + /*0x26*/ u8 spriteAnimation[3]; + /*0x29*/ struct { + /* */ u8 b0 : 3; + /* */ u8 b1 : 3; + /* */ u8 b2 : 2; + /* */ } PACKED ticks; + /*0x2a*/ u16 collisions; + /*0x2c*/ union SplitWord x; + /*0x30*/ union SplitWord y; + /*0x34*/ union SplitWord height; // todo + /*0x38*/ u8 collisionLayer; + /*0x39*/ s8 interactType; + /*0x3a*/ u8 field_0x3a; + /*0x3b*/ u8 flags2; + /*0x3c*/ u8 field_0x3c; + /*0x3d*/ u8 hurtBlinkTime; + /*0x3e*/ u8 field_0x3e; + /*0x3f*/ u8 damageType; + /*0x40*/ u8 field_0x40; + /*0x41*/ u8 bitfield; + /*0x42*/ u8 field_0x42; + /*0x43*/ u8 field_0x43; + /*0x44*/ u8 field_0x44; + /*0x45*/ u8 currentHealth; + /*0x46*/ s16 field_0x46; + /*0x48*/ BoundingBox* boundingBox; + /*0x4c*/ u8 field_0x4c; + /*0x4d*/ u8 field_0x4d; + /*0x4e*/ u8 field_0x4e; + /*0x4f*/ u8 field_0x4f; + /*0x50*/ struct Entity* parent; + /*0x54*/ struct Entity* attachedEntity; + /*0x58*/ u8 animIndex; + /*0x59*/ u8 frameDuration; + /*0x5a*/ union { + /* */ u8 all; + /* */ struct { + /* */ u8 f0 : 1; + /* */ u8 f1 : 5; + /* */ u8 f2 : 1; + /* */ u8 f3 : 1; + /* */ } PACKED b; + /* */ } PACKED frames; + /*0x5b*/ u8 frameSpriteSettings; + /*0x5c*/ Frame* animPtr; + /*0x60*/ u16 spriteVramOffset; + /*0x62*/ u8 spriteOffsetX; + /*0x64*/ u8 spriteOffsetY; + /*0x64*/ u32* otherEntity; + /*0x68*/ u8 field_0x68; + /*0x69*/ u8 field_0x69; + /*0x6a*/ union SplitHWord field_0x6a; + /*0x6c*/ u8 field_0x6c; + /*0x6d*/ u8 field_0x6d; + /*0x6e*/ u8 filler4[6]; + /*0x74*/ u16 field_0x74; + /*0x76*/ u16 field_0x76; + /*0x78*/ union SplitHWord field_0x78; + /*0x7a*/ u16 field_0x7a; + /*0x7c*/ union SplitWord field_0x7c; + /*0x80*/ u16 field_0x80; + /*0x82*/ u16 field_0x82; + /*0x84*/ union SplitHWord cutsceneBeh; + /*0x86*/ u16 field_0x86; } Entity; #define COORD_TO_TILE(entity) \ diff --git a/linker.ld b/linker.ld index 4a36d0c4..a74be327 100644 --- a/linker.ld +++ b/linker.ld @@ -729,6 +729,7 @@ SECTIONS { src/heartContainer.o(.text); asm/heartContainer.o(.text); asm/object48.o(.text); + src/object49.o(.text); asm/object49.o(.text); asm/backgroundCloud.o(.text); asm/object4B.o(.text); @@ -789,7 +790,7 @@ SECTIONS { asm/bigPushableLever.o(.text); asm/smallIceBlock.o(.text); asm/bigIceBlock.o(.text); - asm/object86.o(.text); + src/object86.o(.text); asm/object87.o(.text); asm/macroBook.o(.text); asm/object89.o(.text); @@ -858,6 +859,7 @@ SECTIONS { src/createObject.o(.text); src/createObjectWithParent.o(.text); asm/createFx.o(.text); + src/code_080A29BC.o(.text); asm/code_080A29BC.o(.text); asm/playSFX.o(.text); asm/code_080A3480.o(.text); diff --git a/src/code_080A29BC.c b/src/code_080A29BC.c new file mode 100644 index 00000000..0e093ab3 --- /dev/null +++ b/src/code_080A29BC.c @@ -0,0 +1,69 @@ +#include "global.h" +#include "entity.h" +#include "room.h" + +void sub_080A29BC(Entity *parent) +{ + CreateFx(parent, 2, 0); +} + +void sub_080A29C8(s32 xOff, s32 yOff, u32 layer) +{ + Entity *pEVar1; + + pEVar1 = CreateObject(0xf, 2, 0); + if (pEVar1 != NULL) { + pEVar1->x.HALF.HI = gRoomControls.roomOriginX + xOff; + pEVar1->y.HALF.HI = gRoomControls.roomOriginY + yOff; + pEVar1->collisionLayer = layer; + } +} + +void sub_080A29FC(Entity *parent) +{ + CreateFx(parent, 0x11, 0); +} + +void sub_080A2A08(Entity *parent) +{ + CreateFx(parent, 0x6, 0); +} + +void sub_080A2A14(Entity *parent) +{ + CreateFx(parent, 0xb, 0); +} + +Entity * sub_080A2A20(Entity *parent, u32 form, u32 parameter) +{ + Entity *pEVar1; + + pEVar1 = CreateObjectWithParent(parent, 0, form, parameter); + if (pEVar1 != NULL) { + pEVar1->actionDelay = 5; + } + return pEVar1; +} + +Entity * sub_080A2A3C(Entity *parent, u32 form, u32 subtype, u32 param_4) +{ + Entity *ent; + + ent = CreateObjectWithParent(parent, 0, form, subtype); + if (ent != NULL) { + ent->actionDelay = 5; + ent->field_0x86 = param_4; + } + return ent; +} + +Entity * sub_080A2A64(Entity *parent) +{ + Entity *pEVar1; + + pEVar1 = CreateFx(parent, 0x20, 0); + if (pEVar1 != NULL) { + pEVar1->ticks.b0 = 7; + } + return pEVar1; +} \ No newline at end of file diff --git a/src/object49.c b/src/object49.c new file mode 100644 index 00000000..3489f9e6 --- /dev/null +++ b/src/object49.c @@ -0,0 +1,102 @@ +#include "global.h" +#include "entity.h" + +extern u32 Random(void); +extern void sub_0808F2B0(Entity*); +extern u32 sub_08003FC4(Entity*, u32); +void sub_0808F14C(Entity*); +extern void PlaySFX(u32); +extern void sub_0806FCF4(Entity*, u32, u32, u32); +extern void sub_0808F244(Entity*); + +extern void (*const gUnk_08121E5C[])(Entity*); +extern void (*const gUnk_08121E88[])(Entity*); +extern void (*const gUnk_08121E98[])(Entity*); + +void Object49(Entity* this) { + gUnk_08121E5C[this->entityType.form](this); +} + +void sub_0808F0B8(Entity* this) { + gUnk_08121E88[this->action](this); +} + +void sub_0808F0D0(Entity* this) { + u32 offsetX; + u32 offsetY; + Entity* ent; + u32 uVar3; + + ent = CreateObjectWithParent(this, 0x49, 2, 0); + this->attachedEntity = ent; + if (ent == NULL) { + DeleteThisEntity(); + } + this->action = 1; + this->height.HALF.HI = -0xc0; + offsetX = Random() % 64; + if ((Random() & 1) != 0) { + offsetX = -offsetX; + } + this->x.HALF.HI = this->parent->x.HALF.HI + offsetX; + offsetY = Random() % 32; + if ((Random() & 1) != 0) { + offsetY = -offsetY; + } + this->y.HALF.HI = this->parent->y.HALF.HI + offsetY; + *(u32*)&this->field_0x74 = 0x240; + *(u32*)&this->field_0x78 = 0x140; + InitializeAnimation(this, 3); + sub_0808F14C(this); +} + +void sub_0808F14C(Entity* this) { + sub_0808F2B0(this); + if (sub_08003FC4(this, 0x2000) == 0) { + this->action++; + PlaySFX(0x84); + } +} + +void sub_0808F170(Entity *this) +{ + *(u32 *)&this->field_0x74 -= 0x20; + *(u32 *)&this->field_0x78 += 0x20; + sub_0806FCF4(this, *(u32 *)&this->field_0x78, 8, 2); + if (*(u32 *)&this->field_0x78 > 0x1ff) { + this->action++; + } + sub_0808F2B0(this); +} + +void sub_0808F1A4(Entity *this) +{ + *(u32 *)&this->field_0x78 += 0x10; + *(u32 *)&this->field_0x74 += 0x10; + sub_0806FCF4(this, *(u32 *)&this->field_0x78, 8, 2); + if (*(u32 *)&this->field_0x78 > 0x3ff) { + this->attachedEntity->action = 0xff; + DeleteThisEntity(); + } + else { + sub_0808F2B0(this); + } +} + +void sub_0808F1E0(Entity *this) +{ + gUnk_08121E98[this->action](this); +} + +void sub_0808F1F8(Entity *this) +{ + u8 bVar1; + + this->spriteOrder.b0 = 3; + this->action++; + this->spriteOrder.b3 = this->parent->spriteOrder.b3; + this->spriteOrientation.b2 = this->parent->spriteOrientation.b2; + this->ticks.b0 = 7; + InitializeAnimation(this, 1); + sub_0808F244(this); +} \ No newline at end of file diff --git a/src/object86.c b/src/object86.c new file mode 100644 index 00000000..78800531 --- /dev/null +++ b/src/object86.c @@ -0,0 +1,81 @@ +#include "global.h" +#include "entity.h" +#include "link.h" +#include "flags.h" + +extern u32 sub_080041A0(Entity*, Entity*, u32, u32); +void sub_08099ECC(Entity*); +extern void sub_0805E4E0(Entity*, u32); +extern void sub_0805B390(u32); +extern void CopyPosition(Entity*, Entity*); + +extern void (*const gUnk_081237F8[])(Entity*); + +void Object86(Entity* this) { + gUnk_081237F8[this->action](this); +} + +void sub_08099DD0(Entity* this) { + this->collisionLayer = 1; + this->spriteOrder.b3 = 3; + this->ticks.b0 = 7; + this->previousActionFlag = 0; + if (GetInventoryValue(0x46)) { + this->action = 4; + this->frameIndex = 0; + } else { + this->action = 1; + InitializeAnimation(this, 0); + } +} + +void sub_08099E10(Entity* this) { + if (CheckLocalFlag(0x74)) { + GetNextFrame(this); + if ((this->frames.all == 1) && (this->previousActionFlag == 0)) { + this->frames.all = 0; + sub_08099ECC(this); + } + if (this->frames.b.f3) { + this->action = 2; + InitializeAnimation(this, 1); + } + } +} + +void sub_08099E58(Entity *this) +{ + GetNextFrame(this); + if (this->frames.b.f3) { + this->frames.b.f3 = 0; + this->actionDelay++; + if (this->actionDelay == 3) { + this->action = 3; + this->frameIndex = 4; + } + } +} + +void sub_08099E8C(Entity *this) +{ + if (sub_080041A0(this, &gLinkEntity, 0xc, 0xc)) { + if (this->previousActionFlag == 0) { + sub_08099ECC(this); + sub_0805E4E0(this, 0x1e); + } + if (CheckLocalFlag(0x75)) { + sub_0805B390(0x7); + } + } +} + +void nullsub_534(Entity* this) {} + +void sub_08099ECC(Entity *this) +{ + this->previousActionFlag = 1; + CopyPosition(this, &gLinkEntity); + gLinkState.linkAction = 3; + gLinkState.filler12[4] = 0; + gLinkState.flags.all |= 0x8000; +} From 03a8e052af277c60fae370df488a22c036263b7a Mon Sep 17 00:00:00 2001 From: theo3 Date: Thu, 9 Jul 2020 01:39:40 -0700 Subject: [PATCH 003/158] commented offsets in entity, linkState --- asm/acroBandits.s | 6 +- asm/anju.s | 2 +- asm/ballChainSoldier.s | 4 +- asm/bowMoblin.s | 2 +- asm/brocco.s | 2 +- asm/button.s | 2 +- asm/carpenter.s | 177 ------------- asm/castleMaid.s | 2 +- asm/chuchu.s | 2 +- asm/chuchuBoss.s | 6 +- asm/code_080011C4.s | 4 +- asm/code_080043E8.s | 4 +- asm/code_08018500.s | 498 ------------------------------------- asm/code_08019444.s | 2 +- asm/code_08049CD4.s | 2 +- asm/code_0806ED78.s | 8 +- asm/code_0806FA6C.s | 4 +- asm/code_0807CC3C.s | 8 +- asm/code_080A5574.s | 18 +- asm/createBowEntity.s | 13 + asm/cuccoAggr.s | 6 +- asm/cuccoChickAggr.s | 2 +- asm/darkNut.s | 8 +- asm/din.s | 2 +- asm/dog.s | 2 +- asm/enemy49.s | 2 +- asm/enemy4D.s | 4 +- asm/enemy50.s | 2 +- asm/farore.s | 2 +- asm/festari.s | 2 +- asm/flyingPot.s | 2 +- asm/flyingSkull.s | 2 +- asm/gentari.s | 2 +- asm/ghini.s | 4 +- asm/ghostBrothers.s | 2 +- asm/gibdo.s | 4 +- asm/gina.s | 2 +- asm/gleerok.s | 8 +- asm/gregal.s | 2 +- asm/guardWithSpear.s | 10 +- asm/hurdyGurdyMan.s | 2 +- asm/item11.s | 194 +++++++++++++++ asm/keaton.s | 2 +- asm/kid.s | 2 +- asm/kingDaltus.s | 2 +- asm/leever.s | 2 +- asm/lilypadLarge.s | 2 +- asm/mama.s | 2 +- asm/mayorHagen.s | 2 +- asm/mazaalBracelet.s | 4 +- asm/minecart.s | 2 +- asm/ministerPotho.s | 2 +- asm/moldworm.s | 2 +- asm/mountainMinish.s | 4 +- asm/mulldozer.s | 2 +- asm/mutoh.s | 2 +- asm/nayru.s | 2 +- asm/npc23.s | 2 +- asm/npc5.s | 6 +- asm/object21.s | 2 +- asm/object36.s | 2 +- asm/object97.s | 4 +- asm/octorok.s | 4 +- asm/octorokGolden.s | 4 +- asm/peahat.s | 4 +- asm/percy.s | 2 +- asm/pesto.s | 10 +- asm/pina.s | 2 +- asm/postman.s | 4 +- asm/puffstool.s | 4 +- asm/ropeGolden.s | 4 +- asm/rupeeLike.s | 4 +- asm/sittingPerson.s | 2 +- asm/sluggula.s | 2 +- asm/smith.s | 2 +- asm/spearMoblin.s | 4 +- asm/spikedBeetle.s | 2 +- asm/spinyChuchu.s | 2 +- asm/stalfos.s | 8 +- asm/sturgeon.s | 2 +- asm/teachers.s | 2 +- asm/tingleSiblings.s | 2 +- asm/townMinish.s | 4 +- asm/townsperson.s | 4 +- asm/vaatiEyesMacro.s | 4 +- asm/vaatiProjectile.s | 4 +- asm/vaatiRebornEnemy.s | 4 +- asm/vaatiTransfigured.s | 2 +- asm/vaatiWrath.s | 2 +- asm/wallMaster2.s | 4 +- data/playerItemFunctions.s | 4 +- include/entity.h | 3 +- include/functions.h | 4 +- include/link.h | 100 ++++---- linker.ld | 4 + src/bladeBrothers.c | 2 +- src/carpenter.c | 74 ++++++ src/code_08018C58.c | 29 +++ src/dampe.c | 4 +- src/epona.c | 2 +- src/item11.c | 99 ++++++++ src/lakitu.c | 6 +- src/malon.c | 2 +- src/talon.c | 2 +- src/townMinish.c | 2 +- 105 files changed, 630 insertions(+), 887 deletions(-) create mode 100644 asm/item11.s create mode 100644 src/carpenter.c create mode 100644 src/code_08018C58.c create mode 100644 src/item11.c diff --git a/asm/acroBandits.s b/asm/acroBandits.s index cf0ad0e7..1473c5cb 100644 --- a/asm/acroBandits.s +++ b/asm/acroBandits.s @@ -1061,7 +1061,7 @@ _08032018: ldr r0, _0803205C @ =gUnk_020000B0 ldr r1, [r0] adds r0, r4, #0 - bl sub_080045C4 + bl GetFacingDirection adds r1, r0, #0 adds r0, r4, #0 bl sub_08004596 @@ -1149,7 +1149,7 @@ _080320D4: strb r0, [r6] adds r0, r4, #0 adds r1, r5, #0 - bl sub_080045C4 + bl GetFacingDirection strb r0, [r4, #0x15] adds r0, r4, #0 bl sub_080322E8 @@ -1159,7 +1159,7 @@ _080320D4: _0803210E: adds r0, r4, #0 adds r1, r5, #0 - bl sub_080045C4 + bl GetFacingDirection strb r0, [r4, #0x15] adds r0, r4, #0 bl sub_080322E8 diff --git a/asm/anju.s b/asm/anju.s index 060d179d..e3412270 100644 --- a/asm/anju.s +++ b/asm/anju.s @@ -49,7 +49,7 @@ _0806C2FA: strb r0, [r2] ldr r1, _0806C334 @ =gLinkEntity adds r0, r4, #0 - bl sub_080045C4 + bl GetFacingDirection bl sub_0806F5A4 adds r1, r4, #0 adds r1, #0x58 diff --git a/asm/ballChainSoldier.s b/asm/ballChainSoldier.s index 31cc525f..210d6ad8 100644 --- a/asm/ballChainSoldier.s +++ b/asm/ballChainSoldier.s @@ -479,7 +479,7 @@ sub_0803E86C: @ 0x0803E86C ldr r0, _0803E8C4 @ =gUnk_020000B0 ldr r1, [r0] adds r0, r4, #0 - bl sub_080045C4 + bl GetFacingDirection adds r0, #4 movs r1, #0x18 ands r0, r1 @@ -669,7 +669,7 @@ sub_0803E9D4: @ 0x0803E9D4 ldr r0, _0803EA0C @ =gUnk_020000B0 ldr r1, [r0] adds r0, r4, #0 - bl sub_080045C4 + bl GetFacingDirection adds r0, #4 movs r1, #0x18 ands r0, r1 diff --git a/asm/bowMoblin.s b/asm/bowMoblin.s index 23c0f7a1..faaa78d4 100644 --- a/asm/bowMoblin.s +++ b/asm/bowMoblin.s @@ -498,7 +498,7 @@ _0803C598: beq _0803C5C0 adds r0, r5, #0 adds r1, r4, #0 - bl sub_080045C4 + bl GetFacingDirection adds r0, #4 movs r1, #0x18 ands r0, r1 diff --git a/asm/brocco.s b/asm/brocco.s index 788c4ef3..29a04a7c 100644 --- a/asm/brocco.s +++ b/asm/brocco.s @@ -194,7 +194,7 @@ _08063662: strb r0, [r1] ldr r1, _080636A0 @ =gLinkEntity adds r0, r4, #0 - bl sub_080045C4 + bl GetFacingDirection bl sub_0806F5A4 adds r1, r0, #0 adds r1, #4 diff --git a/asm/button.s b/asm/button.s index 2f15c0ff..7271ac7c 100644 --- a/asm/button.s +++ b/asm/button.s @@ -716,7 +716,7 @@ sub_08081FF8: @ 0x08081FF8 bne _08082036 adds r0, r1, #0 adds r1, r4, #0 - bl sub_080045C4 + bl GetFacingDirection adds r6, r0, #0 ldr r0, [r4, #0x54] movs r1, #0x80 diff --git a/asm/carpenter.s b/asm/carpenter.s index 837712f2..60e4a2c2 100644 --- a/asm/carpenter.s +++ b/asm/carpenter.s @@ -6,183 +6,6 @@ .text - - thumb_func_start Carpenter -Carpenter: @ 0x08067158 - push {r4, r5, lr} - adds r4, r0, #0 - adds r0, #0x84 - ldr r0, [r0] - cmp r0, #0 - bne _08067168 - bl DeleteThisEntity -_08067168: - ldrb r5, [r4, #0xc] - cmp r5, #1 - beq _080671A8 - cmp r5, #1 - bgt _08067178 - cmp r5, #0 - beq _0806717E - b _08067224 -_08067178: - cmp r5, #2 - beq _0806720A - b _08067224 -_0806717E: - ldrb r1, [r4, #0xa] - lsls r1, r1, #4 - ldr r0, _080671EC @ =gUnk_08110CA8 - adds r1, r1, r0 - adds r0, r4, #0 - bl LoadExtraSpriteData - cmp r0, #0 - beq _08067224 - movs r0, #1 - strb r0, [r4, #0xc] - adds r0, r4, #0 - adds r0, #0x69 - strb r5, [r0] - adds r0, r4, #0 - movs r1, #2 - bl sub_0805E3A0 - adds r0, r4, #0 - bl sub_0807DD64 -_080671A8: - adds r2, r4, #0 - adds r2, #0x39 - movs r1, #0 - ldrsb r1, [r2, r1] - cmp r1, #2 - bne _080671F4 - movs r0, #0 - strb r1, [r4, #0xc] - strb r0, [r2] - adds r0, r4, #0 - adds r0, #0x58 - ldrb r0, [r0] - adds r1, r4, #0 - adds r1, #0x69 - strb r0, [r1] - ldr r1, _080671F0 @ =gLinkEntity - adds r0, r4, #0 - bl sub_080045C4 - bl sub_0806F5A4 - adds r1, r0, #0 - ldrb r0, [r4, #0xa] - lsls r0, r0, #3 - adds r0, #4 - adds r1, r1, r0 - adds r0, r4, #0 - bl InitializeAnimation - adds r0, r4, #0 - bl sub_0806F118 - b _08067224 - .align 2, 0 -_080671EC: .4byte gUnk_08110CA8 -_080671F0: .4byte gLinkEntity -_080671F4: - adds r0, r4, #0 - movs r1, #0 - bl sub_0807DDAC - adds r0, r4, #0 - bl sub_0807DDE4 - adds r0, r4, #0 - bl GetNextFrame - b _08067224 -_0806720A: - adds r0, r4, #0 - bl UpdateFuseInteraction - cmp r0, #0 - beq _08067224 - movs r0, #1 - strb r0, [r4, #0xc] - adds r0, r4, #0 - adds r0, #0x69 - ldrb r1, [r0] - adds r0, r4, #0 - bl InitializeAnimation -_08067224: - pop {r4, r5, pc} - .align 2, 0 - - thumb_func_start Carpenter_Head -Carpenter_Head: @ 0x08067228 - push {r4, lr} - adds r4, r0, #0 - ldrb r0, [r4, #0xa] - cmp r0, #1 - bhi _0806727E - adds r0, r4, #0 - adds r0, #0x5a - ldrb r2, [r0] - movs r0, #0x81 - rsbs r0, r0, #0 - ands r2, r0 - adds r0, r4, #0 - movs r1, #0 - bl SetExtraSpriteFrame - ldrb r2, [r4, #0x1e] - adds r0, r4, #0 - movs r1, #1 - bl SetExtraSpriteFrame - adds r0, r4, #0 - adds r0, #0x5b - ldrb r0, [r0] - movs r2, #0x3f - ands r2, r0 - adds r0, r4, #0 - movs r1, #2 - bl SetExtraSpriteFrame - adds r0, r4, #0 - movs r1, #1 - movs r2, #0 - bl SetSpriteSubEntryOffsetData1 - adds r0, r4, #0 - movs r1, #1 - movs r2, #2 - bl SetSpriteSubEntryOffsetData2 - adds r0, r4, #0 - bl sub_0807000C - b _080672AC -_0806727E: - adds r0, r4, #0 - adds r0, #0x5a - ldrb r2, [r0] - movs r0, #0x81 - rsbs r0, r0, #0 - ands r2, r0 - adds r0, r4, #0 - movs r1, #0 - bl SetExtraSpriteFrame - ldrb r2, [r4, #0x1e] - adds r0, r4, #0 - movs r1, #1 - bl SetExtraSpriteFrame - adds r0, r4, #0 - movs r1, #1 - movs r2, #0 - bl SetSpriteSubEntryOffsetData1 - adds r0, r4, #0 - bl sub_0807000C -_080672AC: - pop {r4, pc} - .align 2, 0 - - thumb_func_start sub_080672B0 -sub_080672B0: @ 0x080672B0 - push {lr} - ldrb r2, [r0, #0x14] - lsrs r2, r2, #1 - ldr r1, [r1, #4] - adds r1, r1, r2 - ldrb r2, [r0, #0xa] - lsls r2, r2, #3 - adds r1, r1, r2 - bl InitializeAnimation - pop {pc} - .align 2, 0 - thumb_func_start sub_080672C8 sub_080672C8: @ 0x080672C8 push {r4, r5, lr} diff --git a/asm/castleMaid.s b/asm/castleMaid.s index be02bb6b..20c03bd5 100644 --- a/asm/castleMaid.s +++ b/asm/castleMaid.s @@ -144,7 +144,7 @@ _080645EA: strb r1, [r2] ldr r1, _08064628 @ =gLinkEntity adds r0, r4, #0 - bl sub_080045C4 + bl GetFacingDirection bl sub_0806F5A4 adds r1, r0, #0 adds r0, r4, #0 diff --git a/asm/chuchu.s b/asm/chuchu.s index 61647307..c1a41f0a 100644 --- a/asm/chuchu.s +++ b/asm/chuchu.s @@ -1475,7 +1475,7 @@ _0801F91C: ldr r0, _0801F93C @ =gUnk_020000B0 ldr r1, [r0] adds r0, r4, #0 - bl sub_080045C4 + bl GetFacingDirection strb r0, [r4, #0x15] _0801F92C: adds r0, r4, #0 diff --git a/asm/chuchuBoss.s b/asm/chuchuBoss.s index fca83811..f9542429 100644 --- a/asm/chuchuBoss.s +++ b/asm/chuchuBoss.s @@ -1223,7 +1223,7 @@ _0802659C: strb r0, [r4] ldr r1, _080265E4 @ =gLinkEntity adds r0, r5, #0 - bl sub_080045C4 + bl GetFacingDirection strb r0, [r5, #0x15] ldr r0, [r7] ldrb r0, [r0, #4] @@ -1374,7 +1374,7 @@ _080266D6: bne _080266EC ldr r1, _08026704 @ =gLinkEntity adds r0, r4, #0 - bl sub_080045C4 + bl GetFacingDirection strb r0, [r4, #0x15] _080266EC: adds r0, r4, #0 @@ -1551,7 +1551,7 @@ _08026820: _08026830: ldr r1, _08026868 @ =gLinkEntity adds r0, r4, #0 - bl sub_080045C4 + bl GetFacingDirection strb r0, [r4, #0x15] movs r0, #4 strb r0, [r4, #0xd] diff --git a/asm/code_080011C4.s b/asm/code_080011C4.s index cbea3d2c..3e1c1675 100644 --- a/asm/code_080011C4.s +++ b/asm/code_080011C4.s @@ -231,7 +231,7 @@ sub_0800132C: @ 0x0800132C cmp r2, #0x11 blo _08001352 _0800134E: - ldr r3, _08001378 @ =sub_080045C4 + ldr r3, _08001378 @ =GetFacingDirection bx r3 _08001352: movs r0, #0xff @@ -245,7 +245,7 @@ _08001368: .4byte gUnk_080012C8 _0800136C: .4byte gUnk_080012C8 _08001370: .4byte sub_080AF18C _08001374: .4byte sub_080AF1BC -_08001378: .4byte sub_080045C4 +_08001378: .4byte GetFacingDirection gUnk_0800137C:: @ 0800137C .incbin "baserom.gba", 0x00137C, 0x0000004 diff --git a/asm/code_080043E8.s b/asm/code_080043E8.s index d88ac0a6..b6284815 100644 --- a/asm/code_080043E8.s +++ b/asm/code_080043E8.s @@ -269,8 +269,8 @@ sub_080045B4: @ 0x080045B4 ldr r3, _08004690 @ =gUnk_030060F0 bx r3 - thumb_func_start sub_080045C4 -sub_080045C4: @ 0x080045C4 + thumb_func_start GetFacingDirection +GetFacingDirection: @ 0x080045C4 push {r4, r5} movs r4, #0x32 movs r5, #0x2e diff --git a/asm/code_08018500.s b/asm/code_08018500.s index dd69e0da..4d58f260 100644 --- a/asm/code_08018500.s +++ b/asm/code_08018500.s @@ -924,501 +924,3 @@ _08018C10: .align 2, 0 _08018C14: .4byte gUnk_080FEAC8 _08018C18: .4byte gUnk_080FE320 - - thumb_func_start CreateMinishEntrance -CreateMinishEntrance: @ 0x08018C1C - push {r4, r5, r6, r7, lr} - mov r7, r8 - push {r7} - adds r5, r0, #0 - ldr r6, _08018C54 @ =0x00000185 - movs r0, #0 -_08018C28: - movs r4, #0 - movs r1, #0x40 - adds r1, r1, r5 - mov r8, r1 - adds r7, r0, #1 -_08018C32: - adds r0, r6, #0 - adds r6, #1 - adds r1, r5, r4 - movs r2, #1 - bl SetTileType - adds r4, #1 - cmp r4, #4 - bls _08018C32 - mov r5, r8 - adds r0, r7, #0 - cmp r0, #3 - bls _08018C28 - pop {r3} - mov r8, r3 - pop {r4, r5, r6, r7, pc} - .align 2, 0 -_08018C54: .4byte 0x00000185 - - thumb_func_start sub_08018C58 -sub_08018C58: @ 0x08018C58 - push {r4, r5, lr} - adds r4, r0, #0 - movs r5, #0 -_08018C5E: - movs r1, #0x98 - lsls r1, r1, #2 - adds r0, r5, r1 - adds r1, r4, #0 - movs r2, #1 - bl SetTileType - ldr r1, _08018C84 @ =0x00000261 - adds r0, r5, r1 - adds r1, r4, #1 - movs r2, #1 - bl SetTileType - adds r5, #2 - adds r4, #0x40 - cmp r5, #5 - bls _08018C5E - pop {r4, r5, pc} - .align 2, 0 -_08018C84: .4byte 0x00000261 - - thumb_func_start sub_08018C88 -sub_08018C88: @ 0x08018C88 - push {lr} - adds r2, r0, #0 - adds r0, #0x45 - ldrb r0, [r0] - cmp r0, #0 - beq _08018CB4 - adds r1, r2, #0 - adds r1, #0x3d - movs r0, #0 - strb r0, [r1] - ldr r1, _08018CB0 @ =gUnk_080B3DD0 - ldrb r0, [r2, #0xc] - lsls r0, r0, #2 - adds r0, r0, r1 - ldr r1, [r0] - adds r0, r2, #0 - bl _call_via_r1 - b _08018CB8 - .align 2, 0 -_08018CB0: .4byte gUnk_080B3DD0 -_08018CB4: - bl DeleteThisEntity -_08018CB8: - pop {pc} - .align 2, 0 - - thumb_func_start sub_08018CBC -sub_08018CBC: @ 0x08018CBC - push {r4, r5, r6, r7, lr} - adds r4, r0, #0 - adds r1, r4, #0 - adds r1, #0x84 - ldr r5, _08018D50 @ =gLinkEntity - ldr r0, [r5, #0x2c] - str r0, [r4, #0x2c] - str r0, [r1] - subs r1, #4 - ldr r0, [r5, #0x30] - str r0, [r4, #0x30] - str r0, [r1] - ldrb r1, [r5, #0x14] - movs r0, #0xe - ands r0, r1 - strb r0, [r4, #0x14] - lsls r0, r0, #2 - strb r0, [r4, #0x15] - movs r0, #0x80 - lsls r0, r0, #3 - strh r0, [r4, #0x24] - adds r1, r4, #0 - adds r1, #0x3f - movs r0, #0x96 - strb r0, [r1] - adds r0, r5, #0 - adds r0, #0x3c - ldrb r0, [r0] - adds r0, #1 - movs r2, #0x80 - rsbs r2, r2, #0 - adds r1, r2, #0 - adds r2, r4, #0 - adds r2, #0x3c - orrs r0, r1 - strb r0, [r2] - adds r0, r5, #0 - adds r0, #0x3b - ldrb r0, [r0] - adds r1, r4, #0 - adds r1, #0x3b - strb r0, [r1] - ldr r6, [r4, #0x54] - cmp r6, #0 - beq _08018D58 - movs r0, #1 - strb r0, [r4, #0xc] - ldrb r1, [r4, #0x10] - movs r0, #0x7f - ands r0, r1 - strb r0, [r4, #0x10] - movs r0, #0x56 - strb r0, [r4, #0xe] - adds r1, r4, #0 - adds r1, #0x40 - movs r0, #0x1c - strb r0, [r1] - adds r1, #4 - movs r0, #6 - strb r0, [r1] - ldr r0, _08018D54 @ =gUnk_080B3E18 - str r0, [r4, #0x48] - ldr r0, [r4, #0x54] - adds r0, #0x62 - movs r1, #0 - strb r1, [r0] - ldr r2, [r4, #0x54] - ldrb r1, [r2, #0x18] - movs r0, #4 - rsbs r0, r0, #0 - ands r0, r1 - strb r0, [r2, #0x18] - b _08018DD2 - .align 2, 0 -_08018D50: .4byte gLinkEntity -_08018D54: .4byte gUnk_080B3E18 -_08018D58: - ldr r7, _08018DDC @ =gLinkState - ldrb r0, [r7, #0x1c] - cmp r0, #0 - bne _08018D64 - bl DeleteThisEntity -_08018D64: - movs r0, #2 - strb r0, [r4, #0xc] - ldrb r1, [r4, #0x18] - subs r0, #6 - ands r0, r1 - movs r1, #1 - orrs r0, r1 - strb r0, [r4, #0x18] - movs r0, #0xa6 - strh r0, [r4, #0x12] - movs r0, #0x33 - strb r0, [r4, #0x1a] - adds r0, r4, #0 - adds r0, #0x60 - strh r6, [r0] - ldrb r0, [r7, #0x1d] - subs r0, #1 - strb r0, [r4, #0xa] - ldr r1, _08018DE0 @ =gUnk_080B3DE0 - ldrb r0, [r4, #0xa] - lsls r0, r0, #1 - adds r0, r0, r1 - ldrb r0, [r0] - strb r0, [r4, #0xe] - ldrb r0, [r4, #0xa] - lsls r0, r0, #1 - adds r0, #1 - adds r0, r0, r1 - ldrb r1, [r0] - adds r0, r4, #0 - adds r0, #0x44 - strb r1, [r0] - adds r1, r4, #0 - adds r1, #0x40 - movs r0, #0x1b - strb r0, [r1] - ldr r1, _08018DE4 @ =gUnk_080B3DE8 - ldrb r0, [r4, #0xa] - lsls r0, r0, #2 - adds r0, r0, r1 - ldr r0, [r0] - str r0, [r4, #0x48] - str r4, [r5, #0x70] - adds r0, r5, #0 - bl sub_08078CD0 - str r6, [r5, #0x70] - ldrb r1, [r4, #0xa] - adds r1, #0xa - adds r0, r4, #0 - bl InitializeAnimation - adds r0, r4, #0 - bl sub_08018FA0 -_08018DD2: - adds r0, r4, #0 - bl sub_0801766C - pop {r4, r5, r6, r7, pc} - .align 2, 0 -_08018DDC: .4byte gLinkState -_08018DE0: .4byte gUnk_080B3DE0 -_08018DE4: .4byte gUnk_080B3DE8 - - thumb_func_start sub_08018DE8 -sub_08018DE8: @ 0x08018DE8 - push {r4, r5, lr} - adds r4, r0, #0 - ldr r0, [r4, #0x54] - adds r0, #0x3a - ldrb r1, [r0] - movs r5, #4 - adds r0, r5, #0 - ands r0, r1 - lsls r0, r0, #0x18 - lsrs r1, r0, #0x18 - cmp r1, #0 - bne _08018E08 - ldr r0, _08018E18 @ =gLinkState - strb r1, [r0, #0x1c] - bl DeleteThisEntity -_08018E08: - ldr r0, _08018E18 @ =gLinkState - ldrb r0, [r0, #0x1c] - cmp r0, #0 - beq _08018E1C - cmp r0, #5 - beq _08018E24 - b _08018E5A - .align 2, 0 -_08018E18: .4byte gLinkState -_08018E1C: - adds r0, r4, #0 - bl sub_08018F6C - b _08018E5A -_08018E24: - ldr r0, [r4, #0x54] - strb r5, [r0, #0xd] - ldrb r1, [r4, #0x10] - movs r0, #0x80 - orrs r0, r1 - strb r0, [r4, #0x10] - movs r2, #2 - movs r0, #2 - strb r0, [r4, #0xc] - adds r3, r4, #0 - adds r3, #0x29 - ldrb r1, [r3] - subs r0, #0xa - ands r0, r1 - orrs r0, r2 - strb r0, [r3] - ldr r2, [r4, #0x54] - ldrb r1, [r2, #0x18] - movs r0, #4 - rsbs r0, r0, #0 - ands r0, r1 - movs r1, #1 - orrs r0, r1 - strb r0, [r2, #0x18] - adds r0, r4, #0 - bl sub_08018FA0 -_08018E5A: - ldr r0, _08018E64 @ =gLinkEntity - bl sub_08078CD0 - pop {r4, r5, pc} - .align 2, 0 -_08018E64: .4byte gLinkEntity - - thumb_func_start sub_08018E68 -sub_08018E68: @ 0x08018E68 - push {r4, r5, r6, lr} - adds r4, r0, #0 - ldr r0, [r4, #0x54] - cmp r0, #0 - bne _08018E82 - adds r0, r4, #0 - bl GetNextFrame - adds r0, r4, #0 - movs r1, #5 - bl sub_08008790 - b _08018EA8 -_08018E82: - adds r0, #0x3a - ldrb r1, [r0] - movs r0, #4 - ands r0, r1 - cmp r0, #0 - bne _08018E92 - bl DeleteThisEntity -_08018E92: - adds r0, r4, #0 - adds r0, #0x41 - ldrb r1, [r0] - movs r0, #0x80 - ands r0, r1 - cmp r0, #0 - beq _08018EA8 - adds r0, r4, #0 - bl sub_08018F6C - b _08018F62 -_08018EA8: - ldrb r0, [r4, #0xe] - subs r0, #1 - strb r0, [r4, #0xe] - lsls r0, r0, #0x18 - lsrs r0, r0, #0x18 - cmp r0, #0xff - beq _08018F46 - adds r0, r4, #0 - bl sub_0806F69C - ldrb r0, [r4, #0x15] - cmp r0, #8 - beq _08018EEA - cmp r0, #8 - bgt _08018ECC - cmp r0, #0 - beq _08018ED6 - b _08018EEE -_08018ECC: - cmp r0, #0x10 - beq _08018EDE - cmp r0, #0x18 - beq _08018EE4 - b _08018EEE -_08018ED6: - movs r6, #0 - movs r5, #4 - rsbs r5, r5, #0 - b _08018EEE -_08018EDE: - movs r6, #0 - movs r5, #4 - b _08018EEE -_08018EE4: - movs r6, #4 - rsbs r6, r6, #0 - b _08018EEC -_08018EEA: - movs r6, #4 -_08018EEC: - movs r5, #0 -_08018EEE: - ldr r1, [r4, #0x54] - cmp r1, #0 - beq _08018F00 - ldrb r0, [r4, #0x15] - strb r0, [r1, #0x15] - ldr r1, [r4, #0x54] - adds r0, r4, #0 - bl CopyPosition -_08018F00: - ldrb r0, [r4, #0xb] - cmp r0, #0 - bne _08018F0C - adds r0, r4, #0 - bl sub_0800451C -_08018F0C: - adds r0, r4, #0 - adds r1, r6, #0 - adds r2, r5, #0 - bl sub_0800029C - ldr r1, _08018F64 @ =gUnk_080B3DF4 - bl sub_08007DD6 - cmp r0, #0 - bne _08018F62 - adds r0, r4, #0 - adds r1, r6, #0 - adds r2, r5, #0 - bl sub_080002B4 - cmp r0, #0x74 - beq _08018F62 - ldr r1, _08018F68 @ =gUnk_08003E44 - movs r0, #0x2e - ldrsh r2, [r4, r0] - adds r2, r2, r6 - movs r0, #0x32 - ldrsh r3, [r4, r0] - adds r3, r3, r5 - adds r0, r4, #0 - bl sub_080040D8 - cmp r0, #0 - beq _08018F62 -_08018F46: - ldr r0, [r4, #0x54] - cmp r0, #0 - bne _08018F56 - ldrb r1, [r4, #0xa] - adds r1, #0xd - adds r0, r4, #0 - bl InitializeAnimation -_08018F56: - ldrb r0, [r4, #0xc] - adds r0, #1 - strb r0, [r4, #0xc] - adds r0, r4, #0 - bl sub_08018F6C -_08018F62: - pop {r4, r5, r6, pc} - .align 2, 0 -_08018F64: .4byte gUnk_080B3DF4 -_08018F68: .4byte gUnk_08003E44 - - thumb_func_start sub_08018F6C -sub_08018F6C: @ 0x08018F6C - push {r4, lr} - adds r4, r0, #0 - ldr r1, [r4, #0x54] - cmp r1, #0 - beq _08018F8A - movs r0, #5 - strb r0, [r1, #0xd] - ldr r2, [r4, #0x54] - ldrb r1, [r2, #0x18] - subs r0, #9 - ands r0, r1 - movs r1, #1 - orrs r0, r1 - strb r0, [r2, #0x18] - b _08018F9A -_08018F8A: - adds r0, r4, #0 - bl GetNextFrame - adds r0, r4, #0 - adds r0, #0x5a - ldrb r0, [r0] - cmp r0, #0 - beq _08018F9E -_08018F9A: - bl DeleteThisEntity -_08018F9E: - pop {r4, pc} - - thumb_func_start sub_08018FA0 -sub_08018FA0: @ 0x08018FA0 - push {lr} - adds r2, r0, #0 - ldr r0, _08018FC8 @ =gLinkEntity - adds r0, #0x38 - ldrb r0, [r0] - adds r1, r2, #0 - adds r1, #0x38 - strb r0, [r1] - lsls r0, r0, #0x18 - lsrs r0, r0, #0x18 - cmp r0, #2 - bne _08018FBC - movs r0, #1 - strb r0, [r2, #0xb] -_08018FBC: - ldrb r0, [r2, #0xa] - adds r0, #0xea - bl PlaySFX - pop {pc} - .align 2, 0 -_08018FC8: .4byte gLinkEntity - - thumb_func_start sub_08018FCC -sub_08018FCC: @ 0x08018FCC - push {lr} - ldr r2, _08018FE0 @ =gUnk_080B3E30 - ldrb r1, [r0, #0xc] - lsls r1, r1, #2 - adds r1, r1, r2 - ldr r1, [r1] - bl _call_via_r1 - pop {pc} - .align 2, 0 -_08018FE0: .4byte gUnk_080B3E30 diff --git a/asm/code_08019444.s b/asm/code_08019444.s index aeba402d..f544c3a3 100644 --- a/asm/code_08019444.s +++ b/asm/code_08019444.s @@ -4742,7 +4742,7 @@ _0801B7D4: ldr r4, _0801B800 @ =gLinkEntity adds r0, r5, #0 adds r1, r4, #0 - bl sub_080045C4 + bl GetFacingDirection strb r0, [r5, #0x15] adds r0, r5, #0 bl sub_0806F69C diff --git a/asm/code_08049CD4.s b/asm/code_08049CD4.s index 7322d820..dcd0d0a1 100644 --- a/asm/code_08049CD4.s +++ b/asm/code_08049CD4.s @@ -393,7 +393,7 @@ sub_08049F84: @ 0x08049F84 cmp r1, #0 beq _08049F9C adds r0, r4, #0 - bl sub_080045C4 + bl GetFacingDirection b _08049F9E _08049F9C: movs r0, #0xff diff --git a/asm/code_0806ED78.s b/asm/code_0806ED78.s index 9adcfdc3..6b986255 100644 --- a/asm/code_0806ED78.s +++ b/asm/code_0806ED78.s @@ -52,7 +52,7 @@ _0806EDC0: .4byte gLinkEntity sub_0806EDC4: @ 0x0806EDC4 push {lr} ldr r1, _0806EDD4 @ =gLinkEntity - bl sub_080045C4 + bl GetFacingDirection bl sub_0806F5A4 pop {pc} .align 2, 0 @@ -74,7 +74,7 @@ sub_0806EDD8: @ 0x0806EDD8 beq _0806EDFC adds r0, r5, #0 adds r1, r6, #0 - bl sub_080045C4 + bl GetFacingDirection adds r7, r0, #0 _0806EDFC: adds r0, r7, #0 @@ -129,7 +129,7 @@ _0806EE4C: strh r0, [r1] ldr r1, _0806EE6C @ =gLinkEntity adds r0, r4, #0 - bl sub_080045C4 + bl GetFacingDirection bl sub_0806F5A4 adds r1, r4, #0 adds r1, #0x3e @@ -979,7 +979,7 @@ _0806F444: ldrh r4, [r3] adds r0, r5, #0 mov r1, sp - bl sub_080045C4 + bl GetFacingDirection adds r2, r0, #0 adds r0, r5, #0 adds r1, r4, #0 diff --git a/asm/code_0806FA6C.s b/asm/code_0806FA6C.s index 20060c2b..09bac7ac 100644 --- a/asm/code_0806FA6C.s +++ b/asm/code_0806FA6C.s @@ -242,14 +242,14 @@ _0806FC9C: thumb_func_start sub_0806FCA0 sub_0806FCA0: @ 0x0806FCA0 push {lr} - bl sub_080045C4 + bl GetFacingDirection bl sub_0806F5A4 pop {pc} thumb_func_start sub_0806FCAC sub_0806FCAC: @ 0x0806FCAC push {lr} - bl sub_080045C4 + bl GetFacingDirection bl sub_0806F5B0 pop {pc} diff --git a/asm/code_0807CC3C.s b/asm/code_0807CC3C.s index 4d8b35ca..c1bff554 100644 --- a/asm/code_0807CC3C.s +++ b/asm/code_0807CC3C.s @@ -3013,7 +3013,7 @@ sub_0807E30C: @ 0x0807E30C beq _0807E348 adds r0, r5, #0 adds r1, r6, #0 - bl sub_080045C4 + bl GetFacingDirection bl sub_0806F5B0 strb r0, [r5, #0x14] _0807E348: @@ -3032,7 +3032,7 @@ _0807E348: str r0, [r4, #0x14] ldr r1, _0807E378 @ =gLinkEntity adds r0, r5, #0 - bl sub_080045C4 + bl GetFacingDirection bl sub_0806F5B0 strb r0, [r5, #0x14] b _0807E37E @@ -4213,7 +4213,7 @@ sub_0807EB74: @ 0x0807EB74 push {r4, lr} adds r4, r0, #0 ldr r1, _0807EB88 @ =gLinkEntity - bl sub_080045C4 + bl GetFacingDirection bl sub_0806F5B0 strb r0, [r4, #0x14] pop {r4, pc} @@ -4226,7 +4226,7 @@ sub_0807EB8C: @ 0x0807EB8C adds r1, r0, #0 ldr r4, _0807EBA4 @ =gLinkEntity adds r0, r4, #0 - bl sub_080045C4 + bl GetFacingDirection bl sub_0806F5B0 movs r1, #0xfe ands r0, r1 diff --git a/asm/code_080A5574.s b/asm/code_080A5574.s index 11d92150..bd86ceb8 100644 --- a/asm/code_080A5574.s +++ b/asm/code_080A5574.s @@ -7600,7 +7600,7 @@ _080A8FE8: strb r0, [r4, #0xf] ldr r1, _080A9048 @ =gLinkEntity adds r0, r4, #0 - bl sub_080045C4 + bl GetFacingDirection adds r1, r0, #0 adds r0, r4, #0 bl sub_08004596 @@ -10132,7 +10132,7 @@ sub_080AA2E0: @ 0x080AA2E0 beq _080AA31C adds r0, r5, #0 adds r1, r4, #0 - bl sub_080045C4 + bl GetFacingDirection ldrb r1, [r5, #0x14] lsls r1, r1, #2 adds r0, #4 @@ -11638,7 +11638,7 @@ _080AADE0: strb r0, [r2] ldr r1, _080AAE60 @ =gLinkEntity adds r0, r5, #0 - bl sub_080045C4 + bl GetFacingDirection strb r0, [r5, #0x15] adds r0, r5, #0 adds r0, #0x86 @@ -11706,7 +11706,7 @@ _080AAEA2: strb r0, [r4, #0xf] ldr r1, _080AAECC @ =gLinkEntity adds r0, r4, #0 - bl sub_080045C4 + bl GetFacingDirection adds r1, r0, #0 adds r0, r4, #0 bl sub_08004596 @@ -13924,7 +13924,7 @@ sub_080ABF40: @ 0x080ABF40 strb r0, [r4, #0xc] ldr r1, _080ABFA0 @ =gLinkEntity adds r0, r4, #0 - bl sub_080045C4 + bl GetFacingDirection strb r0, [r4, #0x15] adds r0, r4, #0 movs r1, #0 @@ -14120,7 +14120,7 @@ _080AC0B2: strb r0, [r4, #0xc] ldr r1, _080AC0EC @ =gLinkEntity adds r0, r4, #0 - bl sub_080045C4 + bl GetFacingDirection strb r0, [r4, #0x15] movs r0, #0xc0 lsls r0, r0, #1 @@ -14185,7 +14185,7 @@ _080AC13A: bne _080AC160 ldr r1, _080AC164 @ =gLinkEntity adds r0, r4, #0 - bl sub_080045C4 + bl GetFacingDirection adds r1, r0, #0 adds r0, r4, #0 bl sub_08004596 @@ -14223,7 +14223,7 @@ sub_080AC168: @ 0x080AC168 strb r0, [r4, #0xf] ldr r1, _080AC1C8 @ =gLinkEntity adds r0, r4, #0 - bl sub_080045C4 + bl GetFacingDirection adds r1, r0, #0 ldr r0, [r4, #0x50] adds r0, #0x84 @@ -15313,7 +15313,7 @@ _080AC964: strb r0, [r5, #0x10] ldr r1, _080AC9C8 @ =gLinkEntity adds r0, r5, #0 - bl sub_080045C4 + bl GetFacingDirection strb r0, [r5, #0x15] movs r0, #0x97 lsls r0, r0, #1 diff --git a/asm/createBowEntity.s b/asm/createBowEntity.s index 050ae83a..e8f41fb8 100644 --- a/asm/createBowEntity.s +++ b/asm/createBowEntity.s @@ -5,6 +5,19 @@ .syntax unified .text + + thumb_func_start sub_08018FCC +sub_08018FCC: @ 0x08018FCC + push {lr} + ldr r2, _08018FE0 @ =gUnk_080B3E30 + ldrb r1, [r0, #0xc] + lsls r1, r1, #2 + adds r1, r1, r2 + ldr r1, [r1] + bl _call_via_r1 + pop {pc} + .align 2, 0 +_08018FE0: .4byte gUnk_080B3E30 thumb_func_start sub_08018FE4 sub_08018FE4: @ 0x08018FE4 diff --git a/asm/cuccoAggr.s b/asm/cuccoAggr.s index dd9d23d2..0329c554 100644 --- a/asm/cuccoAggr.s +++ b/asm/cuccoAggr.s @@ -357,7 +357,7 @@ sub_08038F44: @ 0x08038F44 adds r4, r0, #0 ldr r0, _08038F8C @ =gLinkEntity adds r1, r4, #0 - bl sub_080045C4 + bl GetFacingDirection strb r0, [r4, #0x15] adds r0, r4, #0 bl sub_080390F8 @@ -422,7 +422,7 @@ _08038FB8: bne _08038FE0 ldr r1, _08038FF8 @ =gLinkEntity adds r0, r4, #0 - bl sub_080045C4 + bl GetFacingDirection adds r1, r0, #0 adds r0, r4, #0 bl sub_08004596 @@ -614,7 +614,7 @@ sub_08039140: @ 0x08039140 strb r0, [r4, #0xe] ldr r1, _08039174 @ =gLinkEntity adds r0, r4, #0 - bl sub_080045C4 + bl GetFacingDirection strb r0, [r4, #0x15] ldr r0, _08039178 @ =0x0000FFFC strh r0, [r4, #0x36] diff --git a/asm/cuccoChickAggr.s b/asm/cuccoChickAggr.s index 5755667c..a581af08 100644 --- a/asm/cuccoChickAggr.s +++ b/asm/cuccoChickAggr.s @@ -319,7 +319,7 @@ sub_08022B44: @ 0x08022B44 str r0, [r4, #0x20] ldr r1, _08022B84 @ =gLinkEntity adds r0, r4, #0 - bl sub_080045C4 + bl GetFacingDirection adds r1, r0, #0 strb r1, [r4, #0x15] movs r0, #0xf diff --git a/asm/darkNut.s b/asm/darkNut.s index 2fb91aae..fd3af0e8 100644 --- a/asm/darkNut.s +++ b/asm/darkNut.s @@ -433,7 +433,7 @@ sub_08020E98: @ 0x08020E98 bne _08020ECA ldr r0, [r5] adds r1, r4, #0 - bl sub_080045C4 + bl GetFacingDirection strb r0, [r4, #0x15] adds r0, r4, #0 bl sub_080AEF88 @@ -471,7 +471,7 @@ _08020EF6: _08020F08: .4byte gUnk_020000B0 _08020F0C: adds r0, r4, #0 - bl sub_080045C4 + bl GetFacingDirection strb r0, [r4, #0x15] adds r0, r4, #0 bl sub_080AEF88 @@ -1177,7 +1177,7 @@ sub_08021424: @ 0x08021424 ldr r0, _08021450 @ =gUnk_020000B0 ldr r1, [r0] adds r0, r5, #0 - bl sub_080045C4 + bl GetFacingDirection adds r1, r0, #0 ldrb r0, [r5, #0x14] bl sub_08021274 @@ -1293,7 +1293,7 @@ sub_080214FC: @ 0x080214FC ldr r0, _08021538 @ =gUnk_020000B0 ldr r1, [r0] adds r0, r4, #0 - bl sub_080045C4 + bl GetFacingDirection adds r2, r0, #0 adds r0, r4, #0 adds r0, #0x5a diff --git a/asm/din.s b/asm/din.s index 547800e5..533ab213 100644 --- a/asm/din.s +++ b/asm/din.s @@ -54,7 +54,7 @@ _080647C2: strb r1, [r0] ldr r1, _080647FC @ =gLinkEntity adds r0, r4, #0 - bl sub_080045C4 + bl GetFacingDirection bl sub_0806F5A4 adds r1, r0, #0 adds r0, r4, #0 diff --git a/asm/dog.s b/asm/dog.s index ac332d83..17558ef6 100644 --- a/asm/dog.s +++ b/asm/dog.s @@ -212,7 +212,7 @@ sub_08069CB8: @ 0x08069CB8 push {r4, r5, lr} adds r4, r0, #0 ldr r1, _08069CF8 @ =gLinkEntity - bl sub_080045C4 + bl GetFacingDirection ldr r2, _08069CFC @ =gUnk_08111DB0 ldrb r1, [r4, #0x14] lsls r1, r1, #5 diff --git a/asm/enemy49.s b/asm/enemy49.s index 65e6d90b..771bfb54 100644 --- a/asm/enemy49.s +++ b/asm/enemy49.s @@ -291,7 +291,7 @@ _0803D08A: ldr r0, _0803D0A8 @ =gUnk_020000B0 ldr r1, [r0] adds r0, r4, #0 - bl sub_080045C4 + bl GetFacingDirection strb r0, [r5, #0x15] b _0803D0AE .align 2, 0 diff --git a/asm/enemy4D.s b/asm/enemy4D.s index 478b8ee5..196b629a 100644 --- a/asm/enemy4D.s +++ b/asm/enemy4D.s @@ -134,7 +134,7 @@ sub_0803EBB4: @ 0x0803EBB4 ldr r0, _0803EC10 @ =gUnk_020000B0 ldr r1, [r0] adds r0, r4, #0 - bl sub_080045C4 + bl GetFacingDirection adds r0, #4 movs r1, #0x18 ands r0, r1 @@ -649,7 +649,7 @@ sub_0803EF74: @ 0x0803EF74 beq _0803EFA8 adds r0, r4, #0 adds r1, r5, #0 - bl sub_080045C4 + bl GetFacingDirection ldrb r1, [r4, #0x15] subs r1, r1, r0 adds r1, #2 diff --git a/asm/enemy50.s b/asm/enemy50.s index 74f04c95..93b54bc7 100644 --- a/asm/enemy50.s +++ b/asm/enemy50.s @@ -627,7 +627,7 @@ _08040FB2: ldr r0, _08041008 @ =gUnk_020000B0 ldr r1, [r0] adds r0, r4, #0 - bl sub_080045C4 + bl GetFacingDirection adds r1, r0, #0 adds r0, r4, #0 bl sub_08004596 diff --git a/asm/farore.s b/asm/farore.s index 002a469e..b543e4ea 100644 --- a/asm/farore.s +++ b/asm/farore.s @@ -54,7 +54,7 @@ _080649C2: strb r1, [r0] ldr r1, _080649FC @ =gLinkEntity adds r0, r4, #0 - bl sub_080045C4 + bl GetFacingDirection bl sub_0806F5A4 adds r1, r0, #0 adds r0, r4, #0 diff --git a/asm/festari.s b/asm/festari.s index f0f5e8ca..c4e935f9 100644 --- a/asm/festari.s +++ b/asm/festari.s @@ -48,7 +48,7 @@ sub_0805FE48: @ 0x0805FE48 strb r0, [r2] ldr r1, _0805FE7C @ =gLinkEntity adds r0, r5, #0 - bl sub_080045C4 + bl GetFacingDirection bl sub_0806F5A4 adds r1, r0, #0 adds r0, r5, #0 diff --git a/asm/flyingPot.s b/asm/flyingPot.s index ebe75329..98601cbc 100644 --- a/asm/flyingPot.s +++ b/asm/flyingPot.s @@ -448,7 +448,7 @@ sub_0803737C: @ 0x0803737C strb r0, [r4, #0xe] ldr r1, _080373AC @ =gLinkEntity adds r0, r4, #0 - bl sub_080045C4 + bl GetFacingDirection strb r0, [r4, #0x15] _080373A6: pop {r4, pc} diff --git a/asm/flyingSkull.s b/asm/flyingSkull.s index 1cc19610..3f75b1ca 100644 --- a/asm/flyingSkull.s +++ b/asm/flyingSkull.s @@ -639,7 +639,7 @@ sub_0803A048: @ 0x0803A048 strb r0, [r4, #0xe] ldr r1, _0803A07C @ =gLinkEntity adds r0, r4, #0 - bl sub_080045C4 + bl GetFacingDirection strb r0, [r4, #0x15] _0803A076: pop {r4, pc} diff --git a/asm/gentari.s b/asm/gentari.s index dc9930bc..c18bbf27 100644 --- a/asm/gentari.s +++ b/asm/gentari.s @@ -58,7 +58,7 @@ _0805FD72: strb r0, [r2] ldr r1, _0805FDA0 @ =gLinkEntity adds r0, r4, #0 - bl sub_080045C4 + bl GetFacingDirection bl sub_0806F5A4 adds r1, r0, #0 adds r0, r4, #0 diff --git a/asm/ghini.s b/asm/ghini.s index 9a1d26a5..ee0c58bc 100644 --- a/asm/ghini.s +++ b/asm/ghini.s @@ -414,7 +414,7 @@ _0803F2D8: ldr r0, _0803F304 @ =gUnk_020000B0 ldr r1, [r0] adds r0, r4, #0 - bl sub_080045C4 + bl GetFacingDirection b _0803F310 .align 2, 0 _0803F304: .4byte gUnk_020000B0 @@ -536,7 +536,7 @@ _0803F3C4: ldr r0, _0803F410 @ =gUnk_020000B0 ldr r1, [r0] adds r0, r4, #0 - bl sub_080045C4 + bl GetFacingDirection adds r1, r0, #0 adds r0, r4, #0 bl sub_08004596 diff --git a/asm/ghostBrothers.s b/asm/ghostBrothers.s index 0cf03f99..0e393338 100644 --- a/asm/ghostBrothers.s +++ b/asm/ghostBrothers.s @@ -104,7 +104,7 @@ _08065C42: strb r0, [r2] ldr r1, _08065C70 @ =gLinkEntity adds r0, r4, #0 - bl sub_080045C4 + bl GetFacingDirection bl sub_0806F5A4 adds r1, r0, #0 adds r0, r4, #0 diff --git a/asm/gibdo.s b/asm/gibdo.s index ecc95e2d..f74e786a 100644 --- a/asm/gibdo.s +++ b/asm/gibdo.s @@ -511,7 +511,7 @@ sub_08037810: @ 0x08037810 beq _080378AC ldr r1, [r6] adds r0, r5, #0 - bl sub_080045C4 + bl GetFacingDirection ldrb r1, [r5, #0x15] subs r0, r0, r1 adds r0, #6 @@ -530,7 +530,7 @@ sub_08037810: @ 0x08037810 strh r0, [r5, #0x24] ldr r1, [r6] adds r0, r5, #0 - bl sub_080045C4 + bl GetFacingDirection adds r0, #4 ands r0, r4 strb r0, [r5, #0x15] diff --git a/asm/gina.s b/asm/gina.s index 4d2c851f..16be23ce 100644 --- a/asm/gina.s +++ b/asm/gina.s @@ -55,7 +55,7 @@ _0806C182: strb r0, [r2] ldr r1, _0806C1B0 @ =gLinkEntity adds r0, r4, #0 - bl sub_080045C4 + bl GetFacingDirection bl sub_0806F5A4 adds r1, r0, #0 adds r0, r4, #0 diff --git a/asm/gleerok.s b/asm/gleerok.s index 3d164b61..82ff48dc 100644 --- a/asm/gleerok.s +++ b/asm/gleerok.s @@ -1478,7 +1478,7 @@ sub_0802DB84: @ 0x0802DB84 push {r4, r5, lr} adds r5, r0, #0 ldr r1, _0802DBB0 @ =gLinkEntity - bl sub_080045C4 + bl GetFacingDirection strb r0, [r5, #0x15] adds r1, r5, #0 adds r1, #0x84 @@ -1561,7 +1561,7 @@ sub_0802DC1C: @ 0x0802DC1C push {r4, r5, r6, lr} adds r5, r0, #0 ldr r1, _0802DC40 @ =gLinkEntity - bl sub_080045C4 + bl GetFacingDirection adds r3, r0, #0 adds r1, r5, #0 adds r1, #0x84 @@ -1672,7 +1672,7 @@ sub_0802DCE0: @ 0x0802DCE0 beq _0802DD44 ldr r1, _0802DD1C @ =gLinkEntity adds r0, r4, #0 - bl sub_080045C4 + bl GetFacingDirection strb r0, [r4, #0x15] ldr r2, [r5] ldrb r1, [r2, #0x15] @@ -2565,7 +2565,7 @@ _0802E3A4: ldr r5, [r0] ldr r1, _0802E408 @ =gLinkEntity adds r0, r4, #0 - bl sub_080045C4 + bl GetFacingDirection bl sub_0806F5A4 lsls r0, r0, #3 movs r2, #0 diff --git a/asm/gregal.s b/asm/gregal.s index 52b97594..274d9323 100644 --- a/asm/gregal.s +++ b/asm/gregal.s @@ -205,7 +205,7 @@ _0806CC40: strb r0, [r1] ldr r1, _0806CC7C @ =gLinkEntity adds r0, r4, #0 - bl sub_080045C4 + bl GetFacingDirection bl sub_0806F5A4 adds r1, r0, #0 adds r1, #8 diff --git a/asm/guardWithSpear.s b/asm/guardWithSpear.s index 2b935187..e520a382 100644 --- a/asm/guardWithSpear.s +++ b/asm/guardWithSpear.s @@ -125,7 +125,7 @@ sub_08063DC8: @ 0x08063DC8 strb r0, [r4, #0xe] ldr r1, _08063DF4 @ =gLinkEntity adds r0, r4, #0 - bl sub_080045C4 + bl GetFacingDirection bl sub_0806F5A4 strb r0, [r4, #0x14] ldrb r1, [r4, #0x14] @@ -166,7 +166,7 @@ _08063E1E: strb r1, [r2] ldr r1, _08063E50 @ =gLinkEntity adds r0, r4, #0 - bl sub_080045C4 + bl GetFacingDirection bl sub_0806F5A4 adds r1, r0, #0 adds r0, r4, #0 @@ -311,7 +311,7 @@ sub_08063F20: @ 0x08063F20 strb r1, [r2] ldr r1, _08063F74 @ =gLinkEntity adds r0, r4, #0 - bl sub_080045C4 + bl GetFacingDirection bl sub_0806F5A4 adds r1, r0, #0 adds r0, r4, #0 @@ -737,7 +737,7 @@ _08064256: bne _0806428C ldr r1, _080642B0 @ =gLinkEntity adds r0, r5, #0 - bl sub_080045C4 + bl GetFacingDirection bl sub_0806F5B0 strb r0, [r5, #0x14] lsls r0, r0, #0x18 @@ -882,7 +882,7 @@ _08064376: bne _080643AC ldr r1, _080643D0 @ =gLinkEntity adds r0, r5, #0 - bl sub_080045C4 + bl GetFacingDirection bl sub_0806F5B0 strb r0, [r5, #0x14] lsls r0, r0, #0x18 diff --git a/asm/hurdyGurdyMan.s b/asm/hurdyGurdyMan.s index a9bce038..76e75707 100644 --- a/asm/hurdyGurdyMan.s +++ b/asm/hurdyGurdyMan.s @@ -59,7 +59,7 @@ _0806E34C: strb r0, [r1] ldr r1, _0806E3B0 @ =gLinkEntity adds r0, r4, #0 - bl sub_080045C4 + bl GetFacingDirection bl sub_0806F5A4 adds r1, r0, #0 adds r0, r4, #0 diff --git a/asm/item11.s b/asm/item11.s new file mode 100644 index 00000000..8ea3fa78 --- /dev/null +++ b/asm/item11.s @@ -0,0 +1,194 @@ + .include "asm/macros.inc" + .include "constants/constants.inc" + + .syntax unified + + .text + + thumb_func_start sub_08018E68 +sub_08018E68: @ 0x08018E68 + push {r4, r5, r6, lr} + adds r4, r0, #0 + ldr r0, [r4, #0x54] + cmp r0, #0 + bne _08018E82 + adds r0, r4, #0 + bl GetNextFrame + adds r0, r4, #0 + movs r1, #5 + bl sub_08008790 + b _08018EA8 +_08018E82: + adds r0, #0x3a + ldrb r1, [r0] + movs r0, #4 + ands r0, r1 + cmp r0, #0 + bne _08018E92 + bl DeleteThisEntity +_08018E92: + adds r0, r4, #0 + adds r0, #0x41 + ldrb r1, [r0] + movs r0, #0x80 + ands r0, r1 + cmp r0, #0 + beq _08018EA8 + adds r0, r4, #0 + bl sub_08018F6C + b _08018F62 +_08018EA8: + ldrb r0, [r4, #0xe] + subs r0, #1 + strb r0, [r4, #0xe] + lsls r0, r0, #0x18 + lsrs r0, r0, #0x18 + cmp r0, #0xff + beq _08018F46 + adds r0, r4, #0 + bl sub_0806F69C + ldrb r0, [r4, #0x15] + cmp r0, #8 + beq _08018EEA + cmp r0, #8 + bgt _08018ECC + cmp r0, #0 + beq _08018ED6 + b _08018EEE +_08018ECC: + cmp r0, #0x10 + beq _08018EDE + cmp r0, #0x18 + beq _08018EE4 + b _08018EEE +_08018ED6: + movs r6, #0 + movs r5, #4 + rsbs r5, r5, #0 + b _08018EEE +_08018EDE: + movs r6, #0 + movs r5, #4 + b _08018EEE +_08018EE4: + movs r6, #4 + rsbs r6, r6, #0 + b _08018EEC +_08018EEA: + movs r6, #4 +_08018EEC: + movs r5, #0 +_08018EEE: + ldr r1, [r4, #0x54] + cmp r1, #0 + beq _08018F00 + ldrb r0, [r4, #0x15] + strb r0, [r1, #0x15] + ldr r1, [r4, #0x54] + adds r0, r4, #0 + bl CopyPosition +_08018F00: + ldrb r0, [r4, #0xb] + cmp r0, #0 + bne _08018F0C + adds r0, r4, #0 + bl sub_0800451C +_08018F0C: + adds r0, r4, #0 + adds r1, r6, #0 + adds r2, r5, #0 + bl sub_0800029C + ldr r1, _08018F64 @ =gUnk_080B3DF4 + bl sub_08007DD6 + cmp r0, #0 + bne _08018F62 + adds r0, r4, #0 + adds r1, r6, #0 + adds r2, r5, #0 + bl sub_080002B4 + cmp r0, #0x74 + beq _08018F62 + ldr r1, _08018F68 @ =gUnk_08003E44 + movs r0, #0x2e + ldrsh r2, [r4, r0] + adds r2, r2, r6 + movs r0, #0x32 + ldrsh r3, [r4, r0] + adds r3, r3, r5 + adds r0, r4, #0 + bl sub_080040D8 + cmp r0, #0 + beq _08018F62 +_08018F46: + ldr r0, [r4, #0x54] + cmp r0, #0 + bne _08018F56 + ldrb r1, [r4, #0xa] + adds r1, #0xd + adds r0, r4, #0 + bl InitializeAnimation +_08018F56: + ldrb r0, [r4, #0xc] + adds r0, #1 + strb r0, [r4, #0xc] + adds r0, r4, #0 + bl sub_08018F6C +_08018F62: + pop {r4, r5, r6, pc} + .align 2, 0 +_08018F64: .4byte gUnk_080B3DF4 +_08018F68: .4byte gUnk_08003E44 + + thumb_func_start sub_08018F6C +sub_08018F6C: @ 0x08018F6C + push {r4, lr} + adds r4, r0, #0 + ldr r1, [r4, #0x54] + cmp r1, #0 + beq _08018F8A + movs r0, #5 + strb r0, [r1, #0xd] + ldr r2, [r4, #0x54] + ldrb r1, [r2, #0x18] + subs r0, #9 + ands r0, r1 + movs r1, #1 + orrs r0, r1 + strb r0, [r2, #0x18] + b _08018F9A +_08018F8A: + adds r0, r4, #0 + bl GetNextFrame + adds r0, r4, #0 + adds r0, #0x5a + ldrb r0, [r0] + cmp r0, #0 + beq _08018F9E +_08018F9A: + bl DeleteThisEntity +_08018F9E: + pop {r4, pc} + + thumb_func_start sub_08018FA0 +sub_08018FA0: @ 0x08018FA0 + push {lr} + adds r2, r0, #0 + ldr r0, _08018FC8 @ =gLinkEntity + adds r0, #0x38 + ldrb r0, [r0] + adds r1, r2, #0 + adds r1, #0x38 + strb r0, [r1] + lsls r0, r0, #0x18 + lsrs r0, r0, #0x18 + cmp r0, #2 + bne _08018FBC + movs r0, #1 + strb r0, [r2, #0xb] +_08018FBC: + ldrb r0, [r2, #0xa] + adds r0, #0xea + bl PlaySFX + pop {pc} + .align 2, 0 +_08018FC8: .4byte gLinkEntity \ No newline at end of file diff --git a/asm/keaton.s b/asm/keaton.s index 0f6090cf..9120cafa 100644 --- a/asm/keaton.s +++ b/asm/keaton.s @@ -319,7 +319,7 @@ sub_080325E8: @ 0x080325E8 beq _0803264C ldr r1, [r5] adds r0, r4, #0 - bl sub_080045C4 + bl GetFacingDirection adds r3, r4, #0 adds r3, #0x5a ldrb r2, [r3] diff --git a/asm/kid.s b/asm/kid.s index 8b504d15..8463cba2 100644 --- a/asm/kid.s +++ b/asm/kid.s @@ -265,7 +265,7 @@ _0806229A: bhi _080622F2 ldr r1, _080622C8 @ =gLinkEntity adds r0, r4, #0 - bl sub_080045C4 + bl GetFacingDirection bl sub_0806F5A4 ldrb r1, [r5] movs r2, #4 diff --git a/asm/kingDaltus.s b/asm/kingDaltus.s index 313b64e9..9b6bb8c6 100644 --- a/asm/kingDaltus.s +++ b/asm/kingDaltus.s @@ -26,7 +26,7 @@ KingDaltus: @ 0x080665E4 strb r1, [r4, #0xc] ldr r1, _08066630 @ =gLinkEntity adds r0, r4, #0 - bl sub_080045C4 + bl GetFacingDirection bl sub_0806F5A4 adds r1, r0, #0 adds r0, r4, #0 diff --git a/asm/leever.s b/asm/leever.s index 3c36a26a..99c2e4da 100644 --- a/asm/leever.s +++ b/asm/leever.s @@ -127,7 +127,7 @@ sub_0801FCB0: @ 0x0801FCB0 ldr r0, _0801FD14 @ =gUnk_020000B0 ldr r1, [r0] adds r0, r5, #0 - bl sub_080045C4 + bl GetFacingDirection adds r4, r0, #0 bl Random ldr r2, _0801FD18 @ =gUnk_080CA4C8 diff --git a/asm/lilypadLarge.s b/asm/lilypadLarge.s index 886a732b..5bda9660 100644 --- a/asm/lilypadLarge.s +++ b/asm/lilypadLarge.s @@ -913,7 +913,7 @@ _08085BB4: bl sub_08085CDC adds r0, r4, #0 adds r1, r5, #0 - bl sub_080045C4 + bl GetFacingDirection strb r0, [r5, #0x15] movs r1, #0x80 lsls r1, r1, #1 diff --git a/asm/mama.s b/asm/mama.s index d9b4ffcd..c1db8a76 100644 --- a/asm/mama.s +++ b/asm/mama.s @@ -62,7 +62,7 @@ _0806C3E2: strb r0, [r1] ldr r1, _0806C41C @ =gLinkEntity adds r0, r4, #0 - bl sub_080045C4 + bl GetFacingDirection bl sub_0806F5A4 adds r1, r0, #0 adds r0, r4, #0 diff --git a/asm/mayorHagen.s b/asm/mayorHagen.s index 8ad776f4..2deaf59a 100644 --- a/asm/mayorHagen.s +++ b/asm/mayorHagen.s @@ -58,7 +58,7 @@ _0806CDE8: strb r0, [r1] ldr r1, _0806CE24 @ =gLinkEntity adds r0, r4, #0 - bl sub_080045C4 + bl GetFacingDirection bl sub_0806F5A4 adds r1, r0, #0 adds r1, #4 diff --git a/asm/mazaalBracelet.s b/asm/mazaalBracelet.s index f429ef30..26460b6b 100644 --- a/asm/mazaalBracelet.s +++ b/asm/mazaalBracelet.s @@ -682,7 +682,7 @@ _0803A688: strb r1, [r4, #0xe] ldr r1, _0803A6A4 @ =gLinkEntity adds r0, r4, #0 - bl sub_080045C4 + bl GetFacingDirection strb r0, [r4, #0x15] movs r0, #0xa0 lsls r0, r0, #2 @@ -2719,7 +2719,7 @@ sub_0803B5C0: @ 0x0803B5C0 push {r4, lr} adds r4, r0, #0 ldr r1, _0803B5E8 @ =gLinkEntity - bl sub_080045C4 + bl GetFacingDirection adds r2, r0, #0 cmp r2, #9 bhi _0803B5D2 diff --git a/asm/minecart.s b/asm/minecart.s index 3b654127..1075a035 100644 --- a/asm/minecart.s +++ b/asm/minecart.s @@ -343,7 +343,7 @@ _08091970: .4byte 0x00000137 _08091974: adds r0, r5, #0 adds r1, r4, #0 - bl sub_080045C4 + bl GetFacingDirection strb r0, [r5, #0x15] _0809197E: ldr r3, _080919A8 @ =gLinkEntity diff --git a/asm/ministerPotho.s b/asm/ministerPotho.s index 2c8a5fb7..cd793eb1 100644 --- a/asm/ministerPotho.s +++ b/asm/ministerPotho.s @@ -151,7 +151,7 @@ _080668A2: strb r0, [r2] ldr r1, _080668D0 @ =gLinkEntity adds r0, r4, #0 - bl sub_080045C4 + bl GetFacingDirection bl sub_0806F5A4 adds r1, r0, #0 adds r0, r4, #0 diff --git a/asm/moldworm.s b/asm/moldworm.s index eb90aad2..5f88a6c9 100644 --- a/asm/moldworm.s +++ b/asm/moldworm.s @@ -1147,7 +1147,7 @@ sub_08023894: @ 0x08023894 strh r0, [r4, #0x32] ldr r0, [r5, #0x74] adds r1, r5, #0 - bl sub_080045C4 + bl GetFacingDirection adds r0, #4 movs r1, #0x18 ands r0, r1 diff --git a/asm/mountainMinish.s b/asm/mountainMinish.s index eb27eb01..ab2b9fc0 100644 --- a/asm/mountainMinish.s +++ b/asm/mountainMinish.s @@ -186,7 +186,7 @@ _08067F58: strb r0, [r1] ldr r1, _08067F94 @ =gLinkEntity adds r0, r5, #0 - bl sub_080045C4 + bl GetFacingDirection bl sub_0806F5A4 adds r1, r0, #0 adds r0, r5, #0 @@ -215,7 +215,7 @@ _08067F98: strb r1, [r4] ldr r1, _08067FD8 @ =gLinkEntity adds r0, r5, #0 - bl sub_080045C4 + bl GetFacingDirection bl sub_0806F5A4 adds r1, r0, #0 adds r0, r5, #0 diff --git a/asm/mulldozer.s b/asm/mulldozer.s index e3e32213..a9f8f0f0 100644 --- a/asm/mulldozer.s +++ b/asm/mulldozer.s @@ -987,7 +987,7 @@ _0803337E: ldr r0, _080333B0 @ =gUnk_020000B0 ldr r1, [r0] adds r0, r4, #0 - bl sub_080045C4 + bl GetFacingDirection adds r1, r0, #0 adds r1, #2 movs r0, #0x1c diff --git a/asm/mutoh.s b/asm/mutoh.s index 834b749f..75fe0c2c 100644 --- a/asm/mutoh.s +++ b/asm/mutoh.s @@ -63,7 +63,7 @@ _08067030: strb r0, [r2] ldr r1, _08067060 @ =gLinkEntity adds r0, r4, #0 - bl sub_080045C4 + bl GetFacingDirection bl sub_0806F5A4 adds r1, r0, #0 adds r1, #4 diff --git a/asm/nayru.s b/asm/nayru.s index 5f89882b..dd6c6974 100644 --- a/asm/nayru.s +++ b/asm/nayru.s @@ -54,7 +54,7 @@ _080648C2: strb r1, [r0] ldr r1, _080648FC @ =gLinkEntity adds r0, r4, #0 - bl sub_080045C4 + bl GetFacingDirection bl sub_0806F5A4 adds r1, r0, #0 adds r0, r4, #0 diff --git a/asm/npc23.s b/asm/npc23.s index 319ea754..af5a0ba7 100644 --- a/asm/npc23.s +++ b/asm/npc23.s @@ -381,7 +381,7 @@ sub_08066570: @ 0x08066570 beq _080665DE adds r0, r5, #0 adds r1, r4, #0 - bl sub_080045C4 + bl GetFacingDirection adds r3, r0, #0 movs r6, #1 movs r1, #0x18 diff --git a/asm/npc5.s b/asm/npc5.s index 5b37e2ae..d0f70ed1 100644 --- a/asm/npc5.s +++ b/asm/npc5.s @@ -209,7 +209,7 @@ sub_08060B5C: @ 0x08060B5C bne _08060B98 ldr r1, _08060B94 @ =gLinkEntity adds r0, r4, #0 - bl sub_080045C4 + bl GetFacingDirection ldrb r1, [r4, #0x14] lsls r1, r1, #2 subs r0, r0, r1 @@ -573,7 +573,7 @@ sub_08060E34: @ 0x08060E34 strb r0, [r4, #0xc] ldr r1, _08060E6C @ =gLinkEntity adds r0, r4, #0 - bl sub_080045C4 + bl GetFacingDirection adds r0, #4 movs r1, #0x18 ands r0, r1 @@ -666,7 +666,7 @@ sub_08060EDC: @ 0x08060EDC _08060F00: ldr r1, _08060F30 @ =gLinkEntity adds r0, r4, #0 - bl sub_080045C4 + bl GetFacingDirection ldrb r2, [r4, #0x14] lsls r1, r2, #2 subs r1, r0, r1 diff --git a/asm/object21.s b/asm/object21.s index c71cb1e9..0425edd8 100644 --- a/asm/object21.s +++ b/asm/object21.s @@ -222,7 +222,7 @@ _08087B1E: _08087B3C: ldr r0, [r4, #0x4c] adds r1, r4, #0 - bl sub_080045C4 + bl GetFacingDirection _08087B44: strb r0, [r4, #0x15] movs r0, #0x80 diff --git a/asm/object36.s b/asm/object36.s index b6feec33..4b9680e4 100644 --- a/asm/object36.s +++ b/asm/object36.s @@ -286,7 +286,7 @@ _0808BD34: ldr r4, _0808BD70 @ =gLinkEntity adds r0, r5, #0 adds r1, r4, #0 - bl sub_080045C4 + bl GetFacingDirection strb r0, [r5, #0x15] adds r0, r5, #0 bl sub_0806F69C diff --git a/asm/object97.s b/asm/object97.s index da008362..c7072469 100644 --- a/asm/object97.s +++ b/asm/object97.s @@ -112,7 +112,7 @@ sub_0809DA64: @ 0x0809DA64 adds r5, r0, #0 ldr r4, [r5, #0x54] adds r1, r4, #0 - bl sub_080045C4 + bl GetFacingDirection adds r1, r0, #0 adds r0, r5, #0 bl sub_0809E1C8 @@ -1108,7 +1108,7 @@ sub_0809E210: @ 0x0809E210 adds r1, r0, #0 ldr r4, _0809E230 @ =gLinkEntity adds r0, r4, #0 - bl sub_080045C4 + bl GetFacingDirection bl sub_0806F5B0 movs r1, #0xfe ands r0, r1 diff --git a/asm/octorok.s b/asm/octorok.s index 01f55afe..2a2de200 100644 --- a/asm/octorok.s +++ b/asm/octorok.s @@ -204,7 +204,7 @@ _0801EDC4: ldr r0, _0801EDE8 @ =gUnk_020000B0 ldr r1, [r0] adds r0, r5, #0 - bl sub_080045C4 + bl GetFacingDirection adds r0, #4 _0801EDD0: movs r1, #0x18 @@ -230,7 +230,7 @@ sub_0801EDEC: @ 0x0801EDEC cmp r1, #0 beq _0801EE12 adds r0, r4, #0 - bl sub_080045C4 + bl GetFacingDirection adds r0, #4 movs r1, #0x18 ands r0, r1 diff --git a/asm/octorokGolden.s b/asm/octorokGolden.s index 4908da57..3c805d39 100644 --- a/asm/octorokGolden.s +++ b/asm/octorokGolden.s @@ -230,7 +230,7 @@ _08037DC4: _08037DEE: ldr r1, _08037E10 @ =gLinkEntity adds r0, r4, #0 - bl sub_080045C4 + bl GetFacingDirection adds r0, #4 movs r1, #0x18 ands r0, r1 @@ -254,7 +254,7 @@ sub_08037E14: @ 0x08037E14 strb r0, [r5, #0xe] ldr r1, _08037E6C @ =gLinkEntity adds r0, r5, #0 - bl sub_080045C4 + bl GetFacingDirection adds r4, r0, #4 movs r0, #0x18 ands r4, r0 diff --git a/asm/peahat.s b/asm/peahat.s index ae6e6f2a..8e1cce5b 100644 --- a/asm/peahat.s +++ b/asm/peahat.s @@ -415,7 +415,7 @@ _0802024C: ldr r0, _0802027C @ =gUnk_020000B0 ldr r1, [r0] adds r0, r5, #0 - bl sub_080045C4 + bl GetFacingDirection adds r4, r0, #0 bl Random ldr r2, _08020280 @ =gUnk_080CA5D4 @@ -478,7 +478,7 @@ _080202C8: ldr r0, _080202F4 @ =gUnk_020000B0 ldr r1, [r0] adds r0, r4, #0 - bl sub_080045C4 + bl GetFacingDirection adds r1, r0, #0 adds r0, r4, #0 bl sub_08004596 diff --git a/asm/percy.s b/asm/percy.s index d933c8c6..a48c9a2c 100644 --- a/asm/percy.s +++ b/asm/percy.s @@ -120,7 +120,7 @@ _0806B470: strb r0, [r2] ldr r1, _0806B4C8 @ =gLinkEntity adds r0, r4, #0 - bl sub_080045C4 + bl GetFacingDirection bl sub_0806F5A4 adds r1, r0, #0 adds r1, #4 diff --git a/asm/pesto.s b/asm/pesto.s index d45826ba..d281d484 100644 --- a/asm/pesto.s +++ b/asm/pesto.s @@ -504,7 +504,7 @@ sub_080242A0: @ 0x080242A0 ldr r0, _080242E4 @ =gUnk_020000B0 ldr r1, [r0] adds r0, r4, #0 - bl sub_080045C4 + bl GetFacingDirection strb r0, [r4, #0x15] adds r0, r4, #0 movs r1, #1 @@ -937,7 +937,7 @@ _0802460C: _08024612: ldr r1, [r5, #0x54] adds r0, r5, #0 - bl sub_080045C4 + bl GetFacingDirection strb r0, [r5, #0x15] adds r0, r5, #0 movs r1, #0 @@ -1493,7 +1493,7 @@ _08024A40: beq _08024A9E ldr r1, [r4, #0x54] adds r0, r4, #0 - bl sub_080045C4 + bl GetFacingDirection adds r1, r0, #0 adds r0, r4, #0 bl sub_08004596 @@ -1507,7 +1507,7 @@ _08024A5E: ldr r0, _08024A80 @ =gUnk_020000B0 ldr r1, [r0] adds r0, r4, #0 - bl sub_080045C4 + bl GetFacingDirection adds r1, r0, #0 adds r0, r4, #0 bl sub_08004596 @@ -1523,7 +1523,7 @@ _08024A84: ldr r0, _08024AD4 @ =gUnk_020000B0 ldr r1, [r0] adds r0, r4, #0 - bl sub_080045C4 + bl GetFacingDirection strb r0, [r4, #0x15] _08024A9C: movs r6, #1 diff --git a/asm/pina.s b/asm/pina.s index 86e9f2cb..25fba55c 100644 --- a/asm/pina.s +++ b/asm/pina.s @@ -194,7 +194,7 @@ _08063B9E: strb r0, [r1] ldr r1, _08063BDC @ =gLinkEntity adds r0, r4, #0 - bl sub_080045C4 + bl GetFacingDirection bl sub_0806F5A4 adds r1, r0, #0 adds r1, #4 diff --git a/asm/postman.s b/asm/postman.s index 5393d0a9..a08597ba 100644 --- a/asm/postman.s +++ b/asm/postman.s @@ -226,7 +226,7 @@ _08060582: bl sub_0806F118 ldr r1, _080605B4 @ =gLinkEntity adds r0, r4, #0 - bl sub_080045C4 + bl GetFacingDirection bl sub_0806F5A4 adds r1, r0, #0 adds r0, r4, #0 @@ -245,7 +245,7 @@ _080605B8: bl sub_080606D8 ldr r1, _080605E0 @ =gLinkEntity adds r0, r4, #0 - bl sub_080045C4 + bl GetFacingDirection bl sub_0806F5A4 adds r1, r0, #0 adds r0, r4, #0 diff --git a/asm/puffstool.s b/asm/puffstool.s index 83f2ba43..1e5a87d6 100644 --- a/asm/puffstool.s +++ b/asm/puffstool.s @@ -742,7 +742,7 @@ _0802556C: bne _08025580 adds r0, r2, #0 adds r1, r4, #0 - bl sub_080045C4 + bl GetFacingDirection strb r0, [r4, #0x15] _08025580: adds r0, r4, #0 @@ -809,7 +809,7 @@ _080255FA: subs r4, #7 adds r0, r6, #0 adds r1, r5, #0 - bl sub_080045C4 + bl GetFacingDirection adds r0, r0, r4 movs r1, #0x1f ands r0, r1 diff --git a/asm/ropeGolden.s b/asm/ropeGolden.s index 33e71afb..7b6e7b10 100644 --- a/asm/ropeGolden.s +++ b/asm/ropeGolden.s @@ -285,7 +285,7 @@ sub_080383AC: @ 0x080383AC strh r0, [r4, #0x24] ldr r1, _080383E0 @ =gLinkEntity adds r0, r4, #0 - bl sub_080045C4 + bl GetFacingDirection adds r0, #4 movs r1, #0x18 ands r0, r1 @@ -315,7 +315,7 @@ sub_080383E4: @ 0x080383E4 strh r0, [r4, #0x24] ldr r1, _0803842C @ =gLinkEntity adds r0, r4, #0 - bl sub_080045C4 + bl GetFacingDirection adds r0, #4 movs r1, #0x18 ands r0, r1 diff --git a/asm/rupeeLike.s b/asm/rupeeLike.s index 4375db40..72b5a3c8 100644 --- a/asm/rupeeLike.s +++ b/asm/rupeeLike.s @@ -268,7 +268,7 @@ sub_08029474: @ 0x08029474 strb r0, [r4, #0xe] ldr r1, _080294BC @ =gLinkEntity adds r0, r4, #0 - bl sub_080045C4 + bl GetFacingDirection strb r0, [r4, #0x15] lsls r0, r0, #0x18 lsrs r0, r0, #0x1c @@ -314,7 +314,7 @@ sub_080294D4: @ 0x080294D4 strb r0, [r4, #0xe] ldr r1, _08029518 @ =gLinkEntity adds r0, r4, #0 - bl sub_080045C4 + bl GetFacingDirection adds r1, r0, #0 adds r0, r4, #0 bl sub_08004596 diff --git a/asm/sittingPerson.s b/asm/sittingPerson.s index ff2f6fc7..127bf469 100644 --- a/asm/sittingPerson.s +++ b/asm/sittingPerson.s @@ -91,7 +91,7 @@ sub_080637B8: @ 0x080637B8 strb r0, [r1] ldr r1, _08063800 @ =gLinkEntity adds r0, r4, #0 - bl sub_080045C4 + bl GetFacingDirection bl sub_0806F5A4 adds r1, r0, #0 ldrb r0, [r4, #0x18] diff --git a/asm/sluggula.s b/asm/sluggula.s index cd02e68c..b5914318 100644 --- a/asm/sluggula.s +++ b/asm/sluggula.s @@ -437,7 +437,7 @@ _08023EC2: ldr r0, _08023F00 @ =gUnk_020000B0 ldr r1, [r0] adds r0, r5, #0 - bl sub_080045C4 + bl GetFacingDirection ldrb r2, [r5, #0x15] subs r1, r0, r2 cmp r1, #0 diff --git a/asm/smith.s b/asm/smith.s index c859901c..79b10146 100644 --- a/asm/smith.s +++ b/asm/smith.s @@ -36,7 +36,7 @@ Smith: @ 0x08065FC0 _08065FF0: ldr r1, _08066020 @ =gLinkEntity adds r0, r4, #0 - bl sub_080045C4 + bl GetFacingDirection bl sub_0806F5A4 adds r5, r5, r0 adds r0, r4, #0 diff --git a/asm/spearMoblin.s b/asm/spearMoblin.s index 505c126e..78c68b1b 100644 --- a/asm/spearMoblin.s +++ b/asm/spearMoblin.s @@ -462,7 +462,7 @@ _08028594: strb r1, [r4, #0xe] adds r0, r4, #0 adds r1, r5, #0 - bl sub_080045C4 + bl GetFacingDirection adds r5, r0, #0 ldrb r0, [r4, #0x15] adds r1, r5, #0 @@ -641,7 +641,7 @@ _080286FC: beq _08028724 adds r0, r5, #0 adds r1, r4, #0 - bl sub_080045C4 + bl GetFacingDirection adds r0, #4 movs r1, #0x18 ands r0, r1 diff --git a/asm/spikedBeetle.s b/asm/spikedBeetle.s index 3e4e18a6..1140c3d4 100644 --- a/asm/spikedBeetle.s +++ b/asm/spikedBeetle.s @@ -305,7 +305,7 @@ _0802B84A: ldr r0, _0802B874 @ =gUnk_020000B0 ldr r1, [r0] adds r0, r4, #0 - bl sub_080045C4 + bl GetFacingDirection adds r1, r0, #0 adds r0, r4, #0 bl sub_08004596 diff --git a/asm/spinyChuchu.s b/asm/spinyChuchu.s index 9a108f72..ecc587b9 100644 --- a/asm/spinyChuchu.s +++ b/asm/spinyChuchu.s @@ -393,7 +393,7 @@ _0802271A: ldr r0, _08022754 @ =gUnk_020000B0 ldr r1, [r0] adds r0, r4, #0 - bl sub_080045C4 + bl GetFacingDirection strb r0, [r4, #0x15] adds r1, r4, #0 adds r1, #0x3f diff --git a/asm/stalfos.s b/asm/stalfos.s index be8c30c7..0e0ed424 100644 --- a/asm/stalfos.s +++ b/asm/stalfos.s @@ -334,7 +334,7 @@ _0803950A: strb r0, [r4, #0x15] ldr r1, _0803952C @ =gLinkEntity adds r0, r4, #0 - bl sub_080045C4 + bl GetFacingDirection adds r0, #4 movs r1, #0x18 ands r0, r1 @@ -681,7 +681,7 @@ _0803976A: strh r0, [r4, #0x24] ldr r1, [r5] adds r0, r4, #0 - bl sub_080045C4 + bl GetFacingDirection strb r0, [r4, #0x15] ldrb r0, [r4, #0x15] adds r0, #4 @@ -722,7 +722,7 @@ _080397DC: strb r0, [r4, #0xe] ldr r1, [r5] adds r0, r4, #0 - bl sub_080045C4 + bl GetFacingDirection strb r0, [r4, #0x15] ldrb r1, [r4, #0x14] adds r1, #0xc @@ -849,7 +849,7 @@ sub_080398C0: @ 0x080398C0 beq _08039908 ldr r1, _08039904 @ =gLinkEntity adds r0, r4, #0 - bl sub_080045C4 + bl GetFacingDirection b _08039928 .align 2, 0 _08039900: .4byte gUnk_020000B0 diff --git a/asm/sturgeon.s b/asm/sturgeon.s index 696393f6..6bb91643 100644 --- a/asm/sturgeon.s +++ b/asm/sturgeon.s @@ -73,7 +73,7 @@ _08064B00: strb r3, [r2] ldr r1, _08064B30 @ =gLinkEntity adds r0, r4, #0 - bl sub_080045C4 + bl GetFacingDirection bl sub_0806F5A4 adds r1, r0, #0 adds r0, r4, #0 diff --git a/asm/teachers.s b/asm/teachers.s index c91bac97..72c9381d 100644 --- a/asm/teachers.s +++ b/asm/teachers.s @@ -71,7 +71,7 @@ _0806C604: strb r0, [r1] ldr r1, _0806C648 @ =gLinkEntity adds r0, r5, #0 - bl sub_080045C4 + bl GetFacingDirection bl sub_0806F5A4 ldrb r1, [r4] movs r2, #4 diff --git a/asm/tingleSiblings.s b/asm/tingleSiblings.s index 08e3d38d..d4cb0bc2 100644 --- a/asm/tingleSiblings.s +++ b/asm/tingleSiblings.s @@ -127,7 +127,7 @@ _08064E1A: strb r0, [r2] ldr r1, _08064E48 @ =gLinkEntity adds r0, r4, #0 - bl sub_080045C4 + bl GetFacingDirection bl sub_0806F5A4 adds r1, r0, #0 adds r0, r4, #0 diff --git a/asm/townMinish.s b/asm/townMinish.s index 60b238ad..c0c2d4ce 100644 --- a/asm/townMinish.s +++ b/asm/townMinish.s @@ -24,7 +24,7 @@ sub_0806AC3C: @ 0x0806AC3C beq _0806AC70 adds r0, r5, #0 adds r1, r4, #0 - bl sub_080045C4 + bl GetFacingDirection adds r2, r0, #0 movs r0, #0x1e ands r2, r0 @@ -163,7 +163,7 @@ _0806AD44: strb r1, [r5] ldr r1, _0806ADAC @ =gLinkEntity adds r0, r4, #0 - bl sub_080045C4 + bl GetFacingDirection bl sub_0806F5A4 adds r1, r0, #0 adds r1, #8 diff --git a/asm/townsperson.s b/asm/townsperson.s index 819d3c54..1993b4c6 100644 --- a/asm/townsperson.s +++ b/asm/townsperson.s @@ -273,7 +273,7 @@ sub_08061D64: @ 0x08061D64 strb r0, [r1] ldr r1, _08061DAC @ =gLinkEntity adds r0, r5, #0 - bl sub_080045C4 + bl GetFacingDirection bl sub_0806F5A4 ldrb r1, [r4] movs r2, #4 @@ -323,7 +323,7 @@ _08061DD4: strb r0, [r1] ldr r1, _08061E20 @ =gLinkEntity adds r0, r5, #0 - bl sub_080045C4 + bl GetFacingDirection bl sub_0806F5A4 ldrb r1, [r4] movs r2, #4 diff --git a/asm/vaatiEyesMacro.s b/asm/vaatiEyesMacro.s index b012d39f..623ce8a9 100644 --- a/asm/vaatiEyesMacro.s +++ b/asm/vaatiEyesMacro.s @@ -331,7 +331,7 @@ _0802EED6: bl CopyPositionAndSpriteOffset ldr r1, _0802EF14 @ =gLinkEntity adds r0, r4, #0 - bl sub_080045C4 + bl GetFacingDirection adds r0, #1 movs r1, #0x1e ands r0, r1 @@ -461,7 +461,7 @@ sub_0802EFB8: @ 0x0802EFB8 _0802EFD2: ldr r0, _0802F01C @ =gLinkEntity adds r1, r4, #0 - bl sub_080045C4 + bl GetFacingDirection adds r5, r0, #4 movs r0, #0x18 ands r5, r0 diff --git a/asm/vaatiProjectile.s b/asm/vaatiProjectile.s index 701a9a76..7f6c4e80 100644 --- a/asm/vaatiProjectile.s +++ b/asm/vaatiProjectile.s @@ -268,7 +268,7 @@ _0803E280: cmp r1, #0 beq _0803E29C adds r0, r4, #0 - bl sub_080045C4 + bl GetFacingDirection adds r1, r0, #0 adds r0, r4, #0 bl sub_08004596 @@ -355,7 +355,7 @@ sub_0803E314: @ 0x0803E314 strb r0, [r4, #0xc] ldr r1, _0803E33C @ =gLinkEntity adds r0, r4, #0 - bl sub_080045C4 + bl GetFacingDirection strb r0, [r4, #0x15] _0803E332: adds r0, r4, #0 diff --git a/asm/vaatiRebornEnemy.s b/asm/vaatiRebornEnemy.s index 3ee3acb0..4d9ee088 100644 --- a/asm/vaatiRebornEnemy.s +++ b/asm/vaatiRebornEnemy.s @@ -794,7 +794,7 @@ _0803D68E: bne _0803D6C8 ldr r1, _0803D6F8 @ =gLinkEntity adds r0, r4, #0 - bl sub_080045C4 + bl GetFacingDirection adds r0, #2 movs r1, #0x1c ands r0, r1 @@ -938,7 +938,7 @@ _0803D78E: strb r0, [r4, #0xf] ldr r1, _0803D7E0 @ =gLinkEntity adds r0, r4, #0 - bl sub_080045C4 + bl GetFacingDirection movs r1, #0x10 ands r0, r1 movs r1, #8 diff --git a/asm/vaatiTransfigured.s b/asm/vaatiTransfigured.s index 8a7d4cab..66e1aec0 100644 --- a/asm/vaatiTransfigured.s +++ b/asm/vaatiTransfigured.s @@ -1488,7 +1488,7 @@ _0804029E: bne _08040382 ldr r1, _080402DC @ =gLinkEntity adds r0, r4, #0 - bl sub_080045C4 + bl GetFacingDirection lsls r0, r0, #1 ldr r1, _080402E0 @ =gUnk_080D0B18 adds r0, r0, r1 diff --git a/asm/vaatiWrath.s b/asm/vaatiWrath.s index ec525e45..f96d5d64 100644 --- a/asm/vaatiWrath.s +++ b/asm/vaatiWrath.s @@ -2297,7 +2297,7 @@ _080424C6: bne _08042502 ldr r1, _08042504 @ =gLinkEntity adds r0, r4, #0 - bl sub_080045C4 + bl GetFacingDirection ldr r1, _08042508 @ =gUnk_080D0EB0 adds r0, r0, r1 ldrb r0, [r0] diff --git a/asm/wallMaster2.s b/asm/wallMaster2.s index 485c035e..e426c3bd 100644 --- a/asm/wallMaster2.s +++ b/asm/wallMaster2.s @@ -248,7 +248,7 @@ sub_0802CDE8: @ 0x0802CDE8 ldr r0, _0802CE38 @ =gUnk_020000B0 ldr r1, [r0] adds r0, r4, #0 - bl sub_080045C4 + bl GetFacingDirection adds r1, r0, #0 adds r0, r4, #0 bl sub_08004596 @@ -311,7 +311,7 @@ sub_0802CE68: @ 0x0802CE68 bne _0802CEAC adds r0, r4, #0 adds r1, r5, #0 - bl sub_080045C4 + bl GetFacingDirection strb r0, [r4, #0x15] adds r0, r4, #0 bl sub_0806F69C diff --git a/data/playerItemFunctions.s b/data/playerItemFunctions.s index 82723b78..b0d09e36 100644 --- a/data/playerItemFunctions.s +++ b/data/playerItemFunctions.s @@ -23,7 +23,7 @@ /*0x0e*/ .4byte SwordSpin /*0x0f*/ .4byte SwordBeam /*0x10*/ .4byte sub_080ACBCC -/*0x11*/ .4byte sub_08018C88 +/*0x11*/ .4byte Item11 /*0x12*/ .4byte sub_080700E8 /*0x13*/ .4byte sub_080ACF14 /*0x14*/ .4byte sub_0805FBD0 @@ -50,7 +50,7 @@ .4byte SwordSpin .4byte SwordBeam .4byte sub_080ACBCC -.4byte sub_08018C88 +.4byte Item11 .4byte sub_080700E8 .4byte sub_080ACF14 .4byte sub_0805FBD0 diff --git a/include/entity.h b/include/entity.h index 677b7d6c..8de44506 100644 --- a/include/entity.h +++ b/include/entity.h @@ -139,7 +139,8 @@ typedef struct Entity { /*0x6a*/ union SplitHWord field_0x6a; /*0x6c*/ u8 field_0x6c; /*0x6d*/ u8 field_0x6d; - /*0x6e*/ u8 filler4[6]; + /*0x6e*/ u8 filler4[2]; + /*0x70*/ u32 field_0x70; /*0x74*/ u16 field_0x74; /*0x76*/ u16 field_0x76; /*0x78*/ union SplitHWord field_0x78; diff --git a/include/functions.h b/include/functions.h index c715694d..ffeeeb75 100644 --- a/include/functions.h +++ b/include/functions.h @@ -46,7 +46,7 @@ extern void sub_0807DDAC(Entity*, u32); extern void sub_0807DDE4(Entity*); extern void sub_0806D02C(Entity*); extern u32 sub_0806F5A4(u32); -extern u32 sub_080045C4(Entity*, Entity*); +extern u32 GetFacingDirection(Entity*, Entity*); extern void sub_08078784(Entity*, u32); extern void sub_0807DD50(Entity*); extern void sub_0807DD94(Entity*, u32); @@ -65,7 +65,7 @@ extern void sub_0801D2B4(Entity*, u32); extern void sub_0806FD3C(Entity*); extern u32 sub_0801E99C(Entity*); extern void sub_0807DD50(Entity*); -extern u32 sub_080045C4(Entity*, Entity*); +extern u32 GetFacingDirection(Entity*, Entity*); extern void sub_0806F118(Entity*); extern void sub_0807DD94(Entity*, u32); extern void sub_0805ED14(u32*); diff --git a/include/link.h b/include/link.h index f6ce96be..fa4cec13 100644 --- a/include/link.h +++ b/include/link.h @@ -1,3 +1,5 @@ +// clang-format off + #ifndef LINK_H #define LINK_H @@ -5,53 +7,53 @@ #include "entity.h" typedef struct { - u8 filler[2]; - u8 jumpStatus; - u8 filler2[2]; - u8 heldObject; - u8 pushedObject; - u8 unk; - u16 unk2; - u8 unk3; - u8 keepFacing; - u8 linkAction; - u8 filler3[2]; - u8 hurtBlinkSpeed; - u8 filler4[4]; - u16 filler5[3]; - u8 filler6[2]; - u8 field_0x1c; - u8 filler9[2]; - u16 filler7[2]; - u8 swimState; - u8 filler8[5]; - u8* unk4; - union { - u32 all; - struct { - u32 filler9 : 3; - u32 noMinishCap : 1; - u32 pullingState : 1; - u32 windyState : 1; - u32 filler10 : 4; - u32 slipperyState : 1; - u32 filler11 : 5; - u32 filler11b : 16; - } PACKED b; - } flags; - u8 filler12[6]; - u16 unk5; - u8 filler13[2]; - u8 swordGoldParticle : 1; - u8 swordBlueParticle : 1; - u8 filler14 : 6; - u8 unk6; - u8 filler15[75]; - u8 unk7; - u32 filler16[7]; - u8 filler17[3]; - u8 unk71; - u32 unk8; + /*0x00*/ u8 filler[2]; + /*0x02*/ u8 jumpStatus; + /*0x03*/ u8 filler2[2]; + /*0x05*/ u8 heldObject; + /*0x06*/ u8 pushedObject; + /*0x07*/ u8 unk; + /*0x08*/ u16 unk2; + /*0x0a*/ u8 unk3; + /*0x0b*/ u8 keepFacing; + /*0x0c*/ u8 linkAction; + /*0x0d*/ u8 filler3[2]; + /*0x0f*/ u8 hurtBlinkSpeed; + /*0x10*/ u8 filler4[4]; + /*0x14*/ u16 filler5[3]; + /*0x1a*/ u8 filler6[2]; + /*0x1c*/ u8 field_0x1c; + /*0x1d*/ u8 filler9[5]; + /*0x22*/ u16 filler7[2]; + /*0x26*/ u8 swimState; + /*0x27*/ u8 filler8[5]; + /*0x2c*/ u8* unk4; + /*0x30*/ union { + /* */ u32 all; + /* */ struct { + /* */ u32 filler9 : 3; + /* */ u32 noMinishCap : 1; + /* */ u32 pullingState : 1; + /* */ u32 windyState : 1; + /* */ u32 filler10 : 4; + /* */ u32 slipperyState : 1; + /* */ u32 filler11 : 5; + /* */ u32 filler11b : 16; + /* */ } PACKED b; + /* */ } flags; + /*0x34*/ u8 filler12[6]; + /*0x3a*/ u16 unk5; + /*0x3c*/ u8 filler13[2]; + /*0x3e*/ u8 swordGoldParticle : 1; + /* */ u8 swordBlueParticle : 1; + /* */ u8 filler14 : 6; + /*0x3f*/ u8 unk6; + /*0x40*/ u8 filler15[75]; + /*0x8b*/ u8 unk7; + /*0x8c*/ u32 filler16[7]; + /*0xa8*/ u8 filler17[3]; + /*0xab*/ u8 unk71; + /*0xac*/ u32 unk8; } LinkState; @@ -80,4 +82,6 @@ extern Entity gLinkEntity; extern u32 GetInventoryValue(u32); extern s32 ModHealth(s32); -#endif \ No newline at end of file +#endif + +// clang-format on \ No newline at end of file diff --git a/linker.ld b/linker.ld index a74be327..db7c5346 100644 --- a/linker.ld +++ b/linker.ld @@ -299,6 +299,9 @@ SECTIONS { asm/code_08016DF8.o(.text); /* C source compiled without interworking */ asm/code_08018500.o(.text); + src/code_08018C58.o(.text); + src/item11.o(.text); + asm/item11.o(.text); asm/createBowEntity.o(.text); asm/bowUse.o(.text); asm/sub_08019410.o(.text); @@ -567,6 +570,7 @@ SECTIONS { asm/vaati.o(.text); src/zelda.o(.text); asm/mutoh.o(.text); + src/carpenter.o(.text); asm/carpenter.o(.text); asm/castorWildsStatue.o(.text); src/cat.o(.text); diff --git a/src/bladeBrothers.c b/src/bladeBrothers.c index 361eea9b..5f6e5d44 100644 --- a/src/bladeBrothers.c +++ b/src/bladeBrothers.c @@ -134,7 +134,7 @@ void FUN_08068b2c(Entity* this) { if (this->interactType == '\x02') { this->action = 2; this->interactType = '\0'; - uVar1 = sub_0806F5A4(sub_080045C4(this, &gLinkEntity)); + uVar1 = sub_0806F5A4(GetFacingDirection(this, &gLinkEntity)); InitAnimationForceUpdate(this, uVar1); sub_0806F118(this); } else { diff --git a/src/carpenter.c b/src/carpenter.c new file mode 100644 index 00000000..b0608f6d --- /dev/null +++ b/src/carpenter.c @@ -0,0 +1,74 @@ +#include "global.h" +#include "entity.h" +#include "sprite.h" +#include "link.h" + +extern void DeleteThisEntity(); +extern u32 LoadExtraSpriteData(Entity*, SpriteLoadData*); +extern SpriteLoadData gUnk_08110CA8[]; +extern void sub_0805E3A0(Entity*, u32); +extern void sub_0807DD64(Entity*); +extern u32 GetFacingDirection(Entity*, Entity*); +extern void sub_0806F118(Entity*); +extern void sub_0807DDAC(Entity*, u32); +extern void sub_0807DDE4(Entity*); +extern u32 UpdateFuseInteraction(Entity*); +extern void SetSpriteSubEntryOffsetData2(Entity*, u32, u32); +extern void sub_0807000C(Entity*); +extern u32 sub_0806F5A4(); + +void Carpenter(Entity* this) { + if (*(u32*)&this->cutsceneBeh == 0) { + DeleteThisEntity(); + } + switch (this->action) { + case 0: + if (!LoadExtraSpriteData(this, gUnk_08110CA8 + this->entityType.form * 4)) + break; + this->action = 1; + this->field_0x69 = 0; + sub_0805E3A0(this, 2); + sub_0807DD64(this); + + case 1: + if (this->interactType == 2) { + this->action = 2; + this->interactType = 0; + this->field_0x69 = this->animIndex; + InitializeAnimation(this, sub_0806F5A4(GetFacingDirection(this, &gLinkEntity)) + 4 + (this->entityType.form * 8)); + sub_0806F118(this); + } else { + sub_0807DDAC(this, 0); + sub_0807DDE4(this); + GetNextFrame(this); + } + break; + case 2: + if (!UpdateFuseInteraction(this)) + break; + this->action = 1; + InitializeAnimation(this, this->field_0x69); + break; + } +} + +void Carpenter_Head(Entity* this) { + if ((this->entityType).form < 2) { + SetExtraSpriteFrame(this, 0, this->frames.all & 0xffffff7f); + SetExtraSpriteFrame(this, 1, this->frameIndex); + SetExtraSpriteFrame(this, 2, this->frameSpriteSettings & 0x3f); + SetSpriteSubEntryOffsetData1(this, 1, 0); + SetSpriteSubEntryOffsetData2(this, 1, 2); + sub_0807000C(this); + } else { + SetExtraSpriteFrame(this, 0, this->frames.all & 0xffffff7f); + SetExtraSpriteFrame(this, 1, this->frameIndex); + SetSpriteSubEntryOffsetData1(this, 1, 0); + sub_0807000C(this); + } +} + +void sub_080672b0(Entity *this, u32 param_2) +{ + InitializeAnimation(this,*(u32 *)(param_2 + 4) + (this->animationState >> 1) + this->entityType.form * 8); +} \ No newline at end of file diff --git a/src/code_08018C58.c b/src/code_08018C58.c new file mode 100644 index 00000000..23dd9fc6 --- /dev/null +++ b/src/code_08018C58.c @@ -0,0 +1,29 @@ +#include "global.h" +#include "entity.h" + +extern u32 SetTileType(u32 tileID, u32 tilePos, u32 layerID); + +void CreateMinishEntrance(u32 tilePos) +{ + u32 x, y; + u32 tileID = 0x185; + + for (y = 0; y <= 3; y++) { + for (x = 0; x <= 4; x++) { + SetTileType(tileID++, tilePos + x, 1); + } + tilePos += 0x40; + } +} + +void sub_08018C58(u32 tilePos) +{ + u32 i = 0; + + for (;i < 6;) { + SetTileType(0x260 + i, tilePos, 1); + SetTileType(0x261 + i, tilePos + 1, 1); + i += 2; + tilePos += 0x40; + } +} \ No newline at end of file diff --git a/src/dampe.c b/src/dampe.c index 983b030a..f228f783 100644 --- a/src/dampe.c +++ b/src/dampe.c @@ -9,7 +9,7 @@ extern void sub_0805E3A0(Entity*, u32); extern void sub_0807DD50(Entity*); -extern void sub_080045C4(Entity*, Entity*); +extern void GetFacingDirection(Entity*, Entity*); extern u32 sub_0806F5A4(void); extern void sub_0806F118(Entity*); extern void sub_0807DD94(Entity*, u32); @@ -37,7 +37,7 @@ void Dampe(Entity* this) { if (this->interactType == 2) { this->action = 2; this->interactType = 0; - sub_080045C4(this, &gLinkEntity); + GetFacingDirection(this, &gLinkEntity); InitAnimationForceUpdate(this, sub_0806F5A4() + 4); sub_0806F118(this); } else { diff --git a/src/epona.c b/src/epona.c index 0d294408..c86ef2d7 100644 --- a/src/epona.c +++ b/src/epona.c @@ -78,7 +78,7 @@ void sub_08065AA4(Entity* this) { sub_0805E3A0(this, 2); sub_08065A50(this); } - InitAnimationForceUpdate(this, sub_0806F5A4(sub_080045C4(this, &gLinkEntity))); + InitAnimationForceUpdate(this, sub_0806F5A4(GetFacingDirection(this, &gLinkEntity))); } else { sub_08065A50(this); sub_080791D0(); diff --git a/src/item11.c b/src/item11.c new file mode 100644 index 00000000..cd515863 --- /dev/null +++ b/src/item11.c @@ -0,0 +1,99 @@ +#include "global.h" +#include "entity.h" +#include "link.h" + +extern void DeleteThisEntity(); +extern void sub_08078CD0(Entity*); +extern void sub_08018FA0(Entity*); +extern void sub_0801766C(Entity*); +extern void sub_08018F6C(Entity*); + +extern void (*const gUnk_080B3DD0[])(Entity*); + +extern BoundingBox gUnk_080B3E18; +extern u8 gUnk_080B3DE0[]; +extern BoundingBox* gUnk_080B3DE8[]; + +void Item11(Entity *this) +{ + if (this->currentHealth) { + this->hurtBlinkTime = 0; + gUnk_080B3DD0[this->action](this); + } + else { + DeleteThisEntity(); + } +} + +void sub_08018CBC(Entity *this) +{ + u32 PVar1; + u8 uVar2; + Entity *pEVar3; + + *(u32 *)&this->cutsceneBeh = this->x.WORD = gLinkEntity.x.WORD; + *(u32 *)&this->field_0x80 = this->y.WORD = gLinkEntity.y.WORD; + uVar2 = this->animationState = gLinkEntity.animationState & 0xe; + this->direction = (u8)(uVar2 << 2); + this->nonPlanarMovement = 0x400; + this->damageType = 0x96; + this->field_0x3c = (gLinkEntity.field_0x3c + 1) | 0x80; + this->flags2 = gLinkEntity.flags2; + pEVar3 = this->attachedEntity; + if (pEVar3 != NULL) { + this->action = 1; + this->flags = this->flags & 0x7f; + this->actionDelay = 0x56; + this->field_0x40 = 0x1c; + this->field_0x44 = 6; + this->boundingBox = &gUnk_080B3E18; + this->attachedEntity->spriteOffsetX = 0; + this->attachedEntity->spriteSettings.b.ss0 = 0; + } + else { + if (gLinkState.field_0x1c == 0) { + DeleteThisEntity(); + } + this->action = 2; + this->spriteSettings.b.ss0 = 1; + this->spriteTileSize = 0xa6; + this->palette = 0x33; + this->spriteVramOffset = 0; + (this->entityType).form = gLinkState.filler9[0] - 1; + this->actionDelay = gUnk_080B3DE0[(this->entityType).form * 2]; + this->field_0x44 = gUnk_080B3DE0[(this->entityType).form * 2 + 1]; + this->field_0x40 = 0x1b; + this->boundingBox = gUnk_080B3DE8[(this->entityType).form]; + (u32 *)gLinkEntity.field_0x70 = this; + sub_08078CD0(&gLinkEntity); + (u32 *)gLinkEntity.field_0x70 = pEVar3; + InitializeAnimation(this, (this->entityType).form + 10); + sub_08018FA0(this); + } + sub_0801766C(this); +} + +void sub_08018DE8(Entity *this) +{ + u8 bVar1; + + bVar1 = this->attachedEntity->field_0x3a & 4; + if (bVar1 == 0) { + gLinkState.field_0x1c = bVar1; + DeleteThisEntity(); + } + switch (gLinkState.field_0x1c) { + case 0: + sub_08018F6C(this); + break; + case 5: + this->attachedEntity->previousActionFlag = 4; + this->flags = this->flags | 0x80; + this->action = 2; + this->ticks.b0 = 2; + this->attachedEntity->spriteSettings.b.ss0 = 1; + sub_08018FA0(this); + break; + } + sub_08078CD0(&gLinkEntity); +} \ No newline at end of file diff --git a/src/lakitu.c b/src/lakitu.c index 9c7c41d6..bd63a84a 100644 --- a/src/lakitu.c +++ b/src/lakitu.c @@ -53,7 +53,7 @@ extern u32 sub_0806FCB8(Entity *, u32, u32, u32); extern u32 sub_080041A0(Entity *, Entity *, u32, u32); // sub_0803CA84 -extern u32 sub_080045C4(Entity *, Entity *); +extern u32 GetFacingDirection(Entity *, Entity *); // sub_0803CAD0 extern u8 sub_080045D4(s16, s16, u16, u16); @@ -288,7 +288,7 @@ bool32 sub_0803CA4C(Entity *this) { } void sub_0803CA84(Entity *this, u32 unkParameter) { - u32 altAnimState = sub_080045C4(this, &gLinkEntity); + u32 altAnimState = GetFacingDirection(this, &gLinkEntity); if (((altAnimState - 3) & 7) > 2 || ((this->animationState - (altAnimState >> 3)) & 3) > 1) { u32 intermediate = (altAnimState + 4) & 0x18; @@ -334,7 +334,7 @@ void sub_0803CB34(Entity *this) { this->action = 5; this->damageType = 0xa6; - this->field_0x78.HALF.LO = sub_080045C4(this, &gLinkEntity); + this->field_0x78.HALF.LO = GetFacingDirection(this, &gLinkEntity); InitAnimationForceUpdate(this, this->animationState + 8); } diff --git a/src/malon.c b/src/malon.c index 3f9c4517..25140974 100644 --- a/src/malon.c +++ b/src/malon.c @@ -41,7 +41,7 @@ void sub_080658BC(Entity* this) { if (this->interactType == 2) { this->action = 2; this->interactType = 0; - InitAnimationForceUpdate(this, sub_0806F5A4(sub_080045C4(this, &gLinkEntity))); + InitAnimationForceUpdate(this, sub_0806F5A4(GetFacingDirection(this, &gLinkEntity))); sub_0806F118(this); } else { sub_0807DD94(this, 0); diff --git a/src/talon.c b/src/talon.c index ab9d0b92..0b8d396b 100644 --- a/src/talon.c +++ b/src/talon.c @@ -126,7 +126,7 @@ void sub_080656D4(Entity* this) { void sub_0806574C(Entity* this) { u32 j; - j = (this->animIndex & ~3) + sub_0806F5A4(sub_080045C4(this, &gLinkEntity)); + j = (this->animIndex & ~3) + sub_0806F5A4(GetFacingDirection(this, &gLinkEntity)); if (this->animIndex != j) { InitAnimationForceUpdate(this, j); } diff --git a/src/townMinish.c b/src/townMinish.c index 73d19682..c47a2a3f 100644 --- a/src/townMinish.c +++ b/src/townMinish.c @@ -52,7 +52,7 @@ void sub_0806ABFC(Entity *this) Entity *link = &gLinkEntity; if (sub_080041A0(this, link, 0x18, 0x18)) { - unk = sub_080045C4(this, link) & (u8)0x1e; + unk = GetFacingDirection(this, link) & (u8)0x1e; } else { unk = this->animationState << 2; From cd25d3c120951bc5876d5bdc690978d35ba38ff5 Mon Sep 17 00:00:00 2001 From: theo3 Date: Thu, 9 Jul 2020 02:40:55 -0700 Subject: [PATCH 004/158] entity.h bitfields --- include/entity.h | 38 +++++++++++++++++++------------------- src/bell.c | 2 +- src/bladeBrothers.c | 6 +++--- src/chestSpawner.c | 4 ++-- src/cloud.c | 4 ++-- src/cow.c | 2 +- src/dampe.c | 4 ++-- src/epona.c | 4 ++-- src/giantLeaf.c | 2 +- src/goron.c | 2 +- src/greatFairy.c | 24 ++++++++++++------------ src/hangingSeed.c | 2 +- src/heartContainer.c | 4 ++-- src/item11.c | 6 +++--- src/lakitu.c | 6 +++--- src/lakituCloud.c | 8 ++++---- src/malon.c | 6 +++--- src/milkCart.c | 2 +- src/miniFireballGuy.c | 2 +- src/object1A.c | 2 +- src/object49.c | 2 +- src/slime.c | 2 +- src/stamp.c | 2 +- src/talon.c | 4 ++-- src/thoughtBubble.c | 4 ++-- src/treeHidingPortal.c | 2 +- src/windTribeFlag.c | 4 ++-- src/windTribespeople.c | 2 +- src/zelda.c | 8 ++++---- 29 files changed, 80 insertions(+), 80 deletions(-) diff --git a/include/entity.h b/include/entity.h index 8de44506..1b904c02 100644 --- a/include/entity.h +++ b/include/entity.h @@ -58,26 +58,26 @@ typedef struct Entity { /*0x18*/ union { /* */ u8 raw; /* */ struct { - /* */ u8 ss0 : 2; - /* */ u8 ss2 : 1; - /* */ u8 ss3 : 1; - /* */ u8 ss4 : 1; - /* */ u8 ss5 : 1; - /* */ u8 ss6 : 1; - /* */ u8 ss7 : 1; + /* */ u8 draw : 2; // 1-2 + /* */ u8 ss2 : 1; // 4 + /* */ u8 ss3 : 1; // 8 + /* */ u8 bigShadow : 1; //0x10 + /* */ u8 giantShadow : 1; //0x20 + /* */ u8 flipX : 1; //0x40 + /* */ u8 flipY : 1; //0x80 /* */ } PACKED b; /* */ } PACKED spriteSettings; /*0x19*/ struct { - /* */ u8 b0 : 2; - /* */ u8 b1 : 2; - /* */ u8 b2 : 2; - /* */ u8 b3 : 2; + /* */ u8 b0 : 2; // 1-2 + /* */ u8 alphaBlend : 2; // 4-8 + /* */ u8 b2 : 2; //0x10 + /* */ u8 b3 : 2; //0x40 /* */ } PACKED spriteOrder; /*0x1a*/ u8 palette; /*0x1b*/ struct { - /* */ u8 b0 : 4; - /* */ u8 b1 : 2; - /* */ u8 b2 : 2; + /* */ u8 b0 : 4; + /* */ u8 flipX : 2; //0x10 + /* */ u8 flipY : 2; //0x40 /* */ } PACKED spriteOrientation; /*0x1c*/ u8 filler[1]; /*0x1d*/ u8 field_0x1d; @@ -87,9 +87,9 @@ typedef struct Entity { /*0x24*/ s16 nonPlanarMovement; /*0x26*/ u8 spriteAnimation[3]; /*0x29*/ struct { - /* */ u8 b0 : 3; - /* */ u8 b1 : 3; - /* */ u8 b2 : 2; + /* */ u8 b0 : 3; // 1-4 + /* */ u8 b1 : 3; // 8 + /* */ u8 b2 : 2; //0x40 /* */ } PACKED ticks; /*0x2a*/ u16 collisions; /*0x2c*/ union SplitWord x; @@ -124,8 +124,8 @@ typedef struct Entity { /* */ struct { /* */ u8 f0 : 1; /* */ u8 f1 : 5; - /* */ u8 f2 : 1; - /* */ u8 f3 : 1; + /* */ u8 f2 : 1; //0x40 + /* */ u8 f3 : 1; //0x80 /* */ } PACKED b; /* */ } PACKED frames; /*0x5b*/ u8 frameSpriteSettings; diff --git a/src/bell.c b/src/bell.c index 467a6977..62f1a81b 100644 --- a/src/bell.c +++ b/src/bell.c @@ -9,7 +9,7 @@ void Bell(Entity* ent) { void sub_08097D90(Entity* ent) { ent->action = 1; - ent->spriteSettings.b.ss0 = 1; + ent->spriteSettings.b.draw = 1; ent->collisionLayer = 1; ent->ticks.b0 = 0; UpdateSpriteOrderAndFlip(ent); diff --git a/src/bladeBrothers.c b/src/bladeBrothers.c index 5f6e5d44..83ff32a2 100644 --- a/src/bladeBrothers.c +++ b/src/bladeBrothers.c @@ -122,7 +122,7 @@ void sub_08068ADC(Entity* this) { void sub_08068AFC(Entity* this) { this->action = 1; - this->spriteSettings.b.ss0 = 1; + this->spriteSettings.b.draw = 1; *(u8*)&this->field_0x68 = sub_0801E99C(this); sub_08078784(this, *(u8*)&this->field_0x68); sub_0807DD50(this); @@ -400,8 +400,8 @@ void BladeBrothers_Fusion(Entity* this) { if (this->action == 0) { this->action += 1; - this->spriteSettings.b.ss0 = 0; - this->spriteSettings.b.ss0 = 1; + this->spriteSettings.b.draw = 0; + this->spriteSettings.b.draw = 1; InitAnimationForceUpdate(this, 4); } else { UpdateAnimationSingleFrame(this); diff --git a/src/chestSpawner.c b/src/chestSpawner.c index b3dcfb4a..43cb1c1a 100644 --- a/src/chestSpawner.c +++ b/src/chestSpawner.c @@ -28,8 +28,8 @@ void sub_08083E08(Entity *this) void sub_08083E20(Entity *this) { this->action = 3; - this->spriteSettings.b.ss0 = 1; - this->spriteOrder.b1 = 0; + this->spriteSettings.b.draw = 1; + this->spriteOrder.alphaBlend = 0; sub_080842D8(this); sub_08078828(this); } diff --git a/src/cloud.c b/src/cloud.c index 6701cf13..734559c4 100644 --- a/src/cloud.c +++ b/src/cloud.c @@ -46,7 +46,7 @@ void sub_0809F4DC(Entity* this) { void sub_0809F514(Entity* this) { this->action = 1; this->actionDelay = 120; - this->spriteSettings.b.ss0 = 0; + this->spriteSettings.b.draw = 0; *(u8*)&this->field_0x68 = 12; gRoomControls.cameraTarget = this; gUnk_02034490 = 255; @@ -80,7 +80,7 @@ void sub_0809F5B0(Entity* this) { void sub_0809F5DC(Entity* this) { this->action = 1; - this->spriteSettings.b.ss0 = 0; + this->spriteSettings.b.draw = 0; *(u8*)&this->field_0x68 = 12; } diff --git a/src/cow.c b/src/cow.c index 7422bd28..633334b1 100644 --- a/src/cow.c +++ b/src/cow.c @@ -229,7 +229,7 @@ void sub_0806924C(Entity* ent) { void Cow_Fusion(Entity* ent) { if (ent->action == 0) { ent->action++; - ent->spriteSettings.b.ss0 = 1; + ent->spriteSettings.b.draw = 1; InitAnimationForceUpdate(ent, 15); } else { UpdateAnimationSingleFrame(ent); diff --git a/src/dampe.c b/src/dampe.c index f228f783..822f6c2c 100644 --- a/src/dampe.c +++ b/src/dampe.c @@ -29,7 +29,7 @@ void Dampe(Entity* this) { switch (this->action) { case 0: this->action = 1; - this->spriteSettings.b.ss0 = 1; + this->spriteSettings.b.draw = 1; sub_0805E3A0(this, 2); sub_0807DD50(this); return; @@ -61,7 +61,7 @@ void sub_0806BE3C(Entity* this) { void Dampe_Fusion(Entity* this) { if (this->action == 0) { this->action++; - this->spriteSettings.b.ss0 = 1; + this->spriteSettings.b.draw = 1; InitAnimationForceUpdate(this, 2); } else { UpdateAnimationSingleFrame(this); diff --git a/src/epona.c b/src/epona.c index c86ef2d7..617867b6 100644 --- a/src/epona.c +++ b/src/epona.c @@ -18,7 +18,7 @@ void Epona(Entity* this) { void sub_080659B8(Entity* this) { this->action = 1; - this->spriteSettings.b.ss0 = 1; + this->spriteSettings.b.draw = 1; this->animationState = 6; this->field_0x69 = -1; this->field_0x68 = sub_0801E99C(this); @@ -91,7 +91,7 @@ void sub_08065AA4(Entity* this) { void Epona_Fusion(Entity* this) { if (this->action == 0) { this->action += 1; - this->spriteSettings.b.ss0 = 1; + this->spriteSettings.b.draw = 1; InitAnimationForceUpdate(this, 7); } else { UpdateAnimationSingleFrame(this); diff --git a/src/giantLeaf.c b/src/giantLeaf.c index d34c1605..cf2ee5ec 100644 --- a/src/giantLeaf.c +++ b/src/giantLeaf.c @@ -12,7 +12,7 @@ extern s16 gUnk_0812176A[]; void GiantLeaf(Entity* ent) { if (ent->action == 0) { ent->action = 1; - ent->spriteSettings.b.ss0 = 1; + ent->spriteSettings.b.draw = 1; ent->spriteOrder.b3 = 3; ent->ticks.b0 = 7; ent->frameIndex = ent->entityType.form; diff --git a/src/goron.c b/src/goron.c index 42124144..b65e97ea 100644 --- a/src/goron.c +++ b/src/goron.c @@ -127,7 +127,7 @@ void sub_080694EC(Entity* this) { void Goron_Fusion(Entity* this) { if (this->action == 0) { this->action++; - this->spriteSettings.b.ss0 = 1; + this->spriteSettings.b.draw = 1; InitAnimationForceUpdate(this, 2); } else { UpdateAnimationSingleFrame(this); diff --git a/src/greatFairy.c b/src/greatFairy.c index 02b5268b..c2aa5e08 100644 --- a/src/greatFairy.c +++ b/src/greatFairy.c @@ -161,8 +161,8 @@ void GreatFairy_WingsCallBehavior(Entity* this) { void GreatFairy_WingsInit(Entity* this) { GreatFairy_InitializeAnimation(this); this->ticks.b0 = 5; - this->spriteSettings.b.ss0 = 1; - this->spriteOrder.b1 = 1; + this->spriteSettings.b.draw = 1; + this->spriteOrder.alphaBlend = 1; gScreen.controls.windowOutsideControl = 3904; gScreen.controls.mosaicSize = 2057; this->nonPlanarMovement = 1024; @@ -192,7 +192,7 @@ void GreatFairy_WakeCallBehavior(Entity* this) { void GreatFairy_WakeInit(Entity* this) { GreatFairy_InitializeAnimation(this); - this->spriteSettings.b.ss0 = 1; + this->spriteSettings.b.draw = 1; this->ticks.b0 = 6; } @@ -213,7 +213,7 @@ void GreatFairy_MiniInit(Entity* this) { CopyPosition(this, aff); aff->parent = this; GreatFairy_InitializeAnimation(this); - this->spriteSettings.b.ss0 = 1; + this->spriteSettings.b.draw = 1; this->field_0xf = 0; } } @@ -253,7 +253,7 @@ void GreatFairy_MiniAffineCallBehavior(Entity* this) { void GreatFairy_MiniAffineInit(Entity* this) { GreatFairy_InitializeAnimation(this); this->ticks.b0 = 6; - this->spriteSettings.b.ss0 = 1; + this->spriteSettings.b.draw = 1; } // Getting ready for affine transformation @@ -293,7 +293,7 @@ void GreatFairy_DropletCallBehavior(Entity* this) { void GreatFairy_DropletInit(Entity* this) { GreatFairy_InitializeAnimation(this); - this->spriteSettings.b.ss0 = 1; + this->spriteSettings.b.draw = 1; this->height.HALF.HI = 0; this->ticks.b0 = 5; PlaySFX(320); @@ -313,7 +313,7 @@ void GreatFairy_RippleCallBehavior(Entity* this) { void GreatFairy_RippleInit(Entity* this) { GreatFairy_InitializeAnimation(this); - this->spriteSettings.b.ss0 = 1; + this->spriteSettings.b.draw = 1; this->ticks.b0 = 6; } @@ -333,7 +333,7 @@ void GreatFairy_BigRippleCallBehavior(Entity* this) { void GreatFairy_BigRippleInit(Entity* this) { GreatFairy_InitializeAnimation(this); this->actionDelay = 120; - this->spriteSettings.b.ss0 = 1; + this->spriteSettings.b.draw = 1; this->ticks.b0 = 5; PlaySFX(249); } @@ -361,7 +361,7 @@ void GreatFairy_EnergyCallBehavior(Entity* this) { void GreatFairy_EnergyInit(Entity* this) { GreatFairy_InitializeAnimation(this); - this->spriteSettings.b.ss0 = 1; + this->spriteSettings.b.draw = 1; this->ticks.b0 = 5; } @@ -387,7 +387,7 @@ void sub_08087150(Entity* this) { u32 var2; GreatFairy_InitializeAnimation(this); - this->spriteSettings.b.ss0 = 1; + this->spriteSettings.b.draw = 1; this->spriteOrientation &= 63; this->spriteOrder.b0 = 0; this->ticks.b0 = 3; @@ -472,8 +472,8 @@ void sub_08087294(Entity* this) { #ifdef NON_MATCHING void sub_080872AC(Entity* this) { - this->spriteSettings.b.ss0 = 1; - this->spriteOrientation.b2 = 1; + this->spriteSettings.b.draw = 1; + this->spriteOrientation.flipY = 1; this->spriteOrder.b0 = 0; this->field_0x68 = (u16)(this->x).HALF.HI; this->field_0x6a = (u16)(this->y).HALF.HI; diff --git a/src/hangingSeed.c b/src/hangingSeed.c index ab302f19..f823582a 100644 --- a/src/hangingSeed.c +++ b/src/hangingSeed.c @@ -30,7 +30,7 @@ void nullsub_7(Entity* this){} void sub_08021720(Entity *this) { this->action = 1; - this->spriteSettings.b.ss0 = 1; + this->spriteSettings.b.draw = 1; this->frameIndex = (this->entityType).form; this->spriteOrder.b3 = 1; this->ticks.b0 = 3; diff --git a/src/heartContainer.c b/src/heartContainer.c index 04df84e9..1c58034b 100644 --- a/src/heartContainer.c +++ b/src/heartContainer.c @@ -20,7 +20,7 @@ void sub_0808E6A0(Entity* this) { } this->action = 1; this->entityType.form = 0x62; - this->spriteSettings.b.ss0 = 0; + this->spriteSettings.b.draw = 0; this->boundingBox = &gUnk_08121C58; this->collisionLayer = 3; this->scriptedScene = 3; @@ -29,7 +29,7 @@ void sub_0808E6A0(Entity* this) { void sub_0808E6E4(Entity* this) { if (CheckFlags(this->field_0x86)) { this->action = 2; - this->spriteSettings.b.ss0 = 1; + this->spriteSettings.b.draw = 1; this->spriteOrder.b0 = 3; sub_0808E714(this); } diff --git a/src/item11.c b/src/item11.c index cd515863..1396dbe0 100644 --- a/src/item11.c +++ b/src/item11.c @@ -48,14 +48,14 @@ void sub_08018CBC(Entity *this) this->field_0x44 = 6; this->boundingBox = &gUnk_080B3E18; this->attachedEntity->spriteOffsetX = 0; - this->attachedEntity->spriteSettings.b.ss0 = 0; + this->attachedEntity->spriteSettings.b.draw = 0; } else { if (gLinkState.field_0x1c == 0) { DeleteThisEntity(); } this->action = 2; - this->spriteSettings.b.ss0 = 1; + this->spriteSettings.b.draw = 1; this->spriteTileSize = 0xa6; this->palette = 0x33; this->spriteVramOffset = 0; @@ -91,7 +91,7 @@ void sub_08018DE8(Entity *this) this->flags = this->flags | 0x80; this->action = 2; this->ticks.b0 = 2; - this->attachedEntity->spriteSettings.b.ss0 = 1; + this->attachedEntity->spriteSettings.b.draw = 1; sub_08018FA0(this); break; } diff --git a/src/lakitu.c b/src/lakitu.c index bd63a84a..d813da9e 100644 --- a/src/lakitu.c +++ b/src/lakitu.c @@ -180,7 +180,7 @@ void sub_0803C8BC(Entity *this) { if (sub_0803CA4C(this)) { this->action = 2; - this->spriteSettings.b.ss0 = 1; + this->spriteSettings.b.draw = 1; } } @@ -218,7 +218,7 @@ void sub_0803C950(Entity *this) { if (this->frames.b.f3 != 0) { this->action = 1; - this->spriteSettings.b.ss0 = 0; + this->spriteSettings.b.draw = 0; InitAnimationForceUpdate(this, this->animationState); } @@ -368,7 +368,7 @@ void sub_0803CBAC(Entity *this) { } this->action = 7; - this->spriteSettings.b.ss0 = 1; + this->spriteSettings.b.draw = 1; this->ticks.b1 = 1; diff --git a/src/lakituCloud.c b/src/lakituCloud.c index 5b5f9fff..0dca3465 100644 --- a/src/lakituCloud.c +++ b/src/lakituCloud.c @@ -99,11 +99,11 @@ void sub_0803CDA8(Entity *this) { void sub_0803CDD8(Entity *this) { u8 one; - u8 ss0; + u8 draw; - ss0 = this->spriteSettings.b.ss0; + draw = this->spriteSettings.b.draw; one = 1; - this->spriteSettings.b.ss0 = ss0 ^ one; + this->spriteSettings.b.draw = draw ^ one; this->actionDelay--; @@ -112,7 +112,7 @@ void sub_0803CDD8(Entity *this) { this->flags |= 0x80; - this->spriteSettings.b.ss0 = one; + this->spriteSettings.b.draw = one; } } diff --git a/src/malon.c b/src/malon.c index 25140974..de484cc4 100644 --- a/src/malon.c +++ b/src/malon.c @@ -20,7 +20,7 @@ void Malon(Entity* this) { void sub_08065864(Entity* this) { this->action = 1; - this->spriteSettings.b.ss0 = 1; + this->spriteSettings.b.draw = 1; InitAnimationForceUpdate(this, 0xC); } @@ -30,7 +30,7 @@ void sub_08065880(Entity* this) { void sub_08065888(Entity* this) { this->action = 1; - this->spriteSettings.b.ss0 = 1; + this->spriteSettings.b.draw = 1; this->animationState = 4; this->field_0x68 = sub_0801E99C(this); sub_08078784(this, this->field_0x68); @@ -72,7 +72,7 @@ void sub_08065914(Entity* this) { void Malon_Fusion(Entity* this) { if (this->action == 0) { this->action++; - this->spriteSettings.b.ss0 = 1; + this->spriteSettings.b.draw = 1; InitAnimationForceUpdate(this, 0xC); } else { UpdateAnimationSingleFrame(this); diff --git a/src/milkCart.c b/src/milkCart.c index 2e91ebf7..b423dca7 100644 --- a/src/milkCart.c +++ b/src/milkCart.c @@ -12,7 +12,7 @@ void MilkCart(Entity* ent) { void sub_08065B6C(Entity* ent) { ent->action++; - ent->spriteSettings.b.ss0 = 1; + ent->spriteSettings.b.draw = 1; ent->y.HALF.LO += -0x8000; ent->animationState = 6; InitAnimationForceUpdate(ent, 3); diff --git a/src/miniFireballGuy.c b/src/miniFireballGuy.c index e8c2744a..d7bdc540 100644 --- a/src/miniFireballGuy.c +++ b/src/miniFireballGuy.c @@ -43,7 +43,7 @@ void nullsub_23(Entity* this) {} void sub_08045618(Entity *this) { this->action = 1; - this->spriteSettings.b.ss0 = 1; + this->spriteSettings.b.draw = 1; this->nonPlanarMovement = 0x80; this->field_0x3c = this->field_0x3c | 0x10; sub_0804A720(this); diff --git a/src/object1A.c b/src/object1A.c index 54da11a9..f7d9e469 100644 --- a/src/object1A.c +++ b/src/object1A.c @@ -21,7 +21,7 @@ void sub_080869DC(Entity* ent) { Entity* itemEntity; ent->action = 1; - ent->spriteSettings.b.ss0 = 0; + ent->spriteSettings.b.draw = 0; ent->boundingBox = &gUnk_080FD1A8; ent->field_0x3c |= 16; itemEntity = CreateObject(0, ent->entityType.form, 0); diff --git a/src/object49.c b/src/object49.c index 3489f9e6..c00af534 100644 --- a/src/object49.c +++ b/src/object49.c @@ -95,7 +95,7 @@ void sub_0808F1F8(Entity *this) this->spriteOrder.b0 = 3; this->action++; this->spriteOrder.b3 = this->parent->spriteOrder.b3; - this->spriteOrientation.b2 = this->parent->spriteOrientation.b2; + this->spriteOrientation.flipY = this->parent->spriteOrientation.flipY; this->ticks.b0 = 7; InitializeAnimation(this, 1); sub_0808F244(this); diff --git a/src/slime.c b/src/slime.c index 3f2fdd4d..42a5d952 100644 --- a/src/slime.c +++ b/src/slime.c @@ -53,7 +53,7 @@ void nullsub_171() { void sub_08044FC8(Entity* this) { this->action = 1; - this->spriteSettings.b.ss0 = 1; + this->spriteSettings.b.draw = 1; this->nonPlanarMovement = 128; sub_0804A720(this); InitializeAnimation(this, 0); diff --git a/src/stamp.c b/src/stamp.c index 1ee9476b..db1d7310 100644 --- a/src/stamp.c +++ b/src/stamp.c @@ -30,7 +30,7 @@ void Stamp(Entity* ent) { void sub_08062BD4(Entity* ent) { ent->action = 1; - ent->spriteSettings.b.ss0 = 1; + ent->spriteSettings.b.draw = 1; InitializeAnimation(ent, 0); sub_08078778(ent); } diff --git a/src/talon.c b/src/talon.c index 0b8d396b..01449c06 100644 --- a/src/talon.c +++ b/src/talon.c @@ -63,7 +63,7 @@ void sub_0806559C(Entity* this) { void sub_08065608(Entity* this) { if (LoadExtraSpriteData(this, &gUnk_0810FEB0) != 0) { this->action = 1; - this->spriteSettings.b.ss0 = 1; + this->spriteSettings.b.draw = 1; this->field_0x68 = sub_0801E99C(this); sub_08078784(this, this->field_0x68); sub_0807DD50(this); @@ -152,7 +152,7 @@ void Talon_Fusion(Entity* this) { if (this->action == 0) { if (LoadExtraSpriteData(this, &gUnk_0810FEB0) != 0) { this->action++; - this->spriteSettings.b.ss0 = 1; + this->spriteSettings.b.draw = 1; InitializeAnimation(this, 6); } } else { diff --git a/src/thoughtBubble.c b/src/thoughtBubble.c index eebbba1b..73316eca 100644 --- a/src/thoughtBubble.c +++ b/src/thoughtBubble.c @@ -18,11 +18,11 @@ void ThoughtBubble(Entity* this) void ThoughtBubble_Init(Entity *this) { this->action = 1; - this->spriteSettings.b.ss0 = 1; + this->spriteSettings.b.draw = 1; if (this->actionDelay == 0) { this->actionDelay = 0x2d; } - this->spriteOrientation.b2 = 1; + this->spriteOrientation.flipY = 1; InitializeAnimation(this, this->entityType.parameter); PlaySFX(ThoughtBubble_SFX[this->entityType.parameter]); } diff --git a/src/treeHidingPortal.c b/src/treeHidingPortal.c index 39bc2128..5c7ef846 100644 --- a/src/treeHidingPortal.c +++ b/src/treeHidingPortal.c @@ -52,7 +52,7 @@ void sub_0809E8BC(Entity* this) { if (--this->actionDelay == 0) { this->action = 3; this->actionDelay = 0x3c; - this->spriteSettings.b.ss0 = 0; + this->spriteSettings.b.draw = 0; sub_0809E96C(this); sub_0809E918(this); } diff --git a/src/windTribeFlag.c b/src/windTribeFlag.c index b17e9e9e..1decf382 100644 --- a/src/windTribeFlag.c +++ b/src/windTribeFlag.c @@ -8,10 +8,10 @@ void WindTribeFlag(Entity *this) this->action++; this->collisionLayer = 2; if ((this->entityType).form == 0) { - this->spriteSettings.b.ss6 = 0; + this->spriteSettings.b.flipX = 0; } else { - this->spriteSettings.b.ss6 = 1; + this->spriteSettings.b.flipX = 1; } UpdateSpriteOrderAndFlip(this); InitializeAnimation(this,0); diff --git a/src/windTribespeople.c b/src/windTribespeople.c index 01d243cd..965a73ea 100644 --- a/src/windTribespeople.c +++ b/src/windTribespeople.c @@ -42,7 +42,7 @@ void sub_0806C798(Entity* this) { iVar1 = LoadExtraSpriteData(this, gUnk_08113A1C + (this->entityType.form * 4)); if (iVar1 != 0) { this->action = 1; - this->spriteSettings.b.ss0 = 1; + this->spriteSettings.b.draw = 1; this->animationState = this->actionDelay; sub_0807DD50(this); sub_0806C7D4(this); diff --git a/src/zelda.c b/src/zelda.c index a11e244b..8aa89a33 100644 --- a/src/zelda.c +++ b/src/zelda.c @@ -34,7 +34,7 @@ void Zelda(Entity* ent) { void sub_08066CCC(Entity* ent) { ent->action = 1; - ent->spriteSettings.b.ss0 = 1; + ent->spriteSettings.b.draw = 1; sub_0805EA78(ent, 7); sub_0805E3A0(ent, 2); sub_0807DD50(ent); @@ -54,7 +54,7 @@ void sub_08066D14(Entity* ent, u32* param_2) { parent = ent->parent; if (parent != NULL) { ent->animationState = parent->animationState; - ent->spriteSettings.b.ss0 = 1; + ent->spriteSettings.b.draw = 1; CopyPosition(parent, ent); sub_08068680(ent, ent->parent); param_2[5] = 1; @@ -69,9 +69,9 @@ void sub_08066D4C(Entity* ent, u32* param_2) { parent = ent->parent; if (ent->parent != NULL) { CopyPosition(ent, parent); - ent->parent->spriteSettings.b.ss0 = 1; + ent->parent->spriteSettings.b.draw = 1; ent->parent->animationState = ent->animationState; - ent->spriteSettings.b.ss0 = 0; + ent->spriteSettings.b.draw = 0; ent->field_0x17 &= 0xFE; sub_08068694(ent, ent->parent); param_2[5] = 1; From 1bd6c3b5a47e3b3ab3e6c21af6d786fd5ffc7a5f Mon Sep 17 00:00:00 2001 From: theo3 Date: Thu, 9 Jul 2020 12:04:14 -0700 Subject: [PATCH 005/158] entity.spriteOrder -> entity.spriteRendering --- asm/bakerOven.s | 2 +- asm/beetle.s | 2 +- asm/bell.s | 2 +- asm/bigBarrel.s | 2 +- asm/bird.s | 8 ++++---- asm/book.s | 2 +- asm/code_0800857C.s | 10 +++++----- asm/code_08016DF8.s | 2 +- asm/code_08049CD4.s | 2 +- asm/code_0805436C.s | 4 ++-- asm/code_0806EC20.s | 2 +- asm/code_08070698.s | 6 +++--- asm/code_080732D0.s | 2 +- asm/code_08077B98.s | 2 +- asm/code_0807B9B8.s | 2 +- asm/code_0807CC3C.s | 6 +++--- asm/code_080A5574.s | 8 ++++---- asm/crow.s | 4 ++-- asm/cuccoAggr.s | 2 +- asm/deathFx.s | 2 +- asm/enemy64.s | 4 ++-- asm/fallingBoulder.s | 2 +- asm/floatingBlock.s | 2 +- asm/furniture.s | 6 +++--- asm/gentariCurtains.s | 8 ++++---- asm/giantRock.s | 2 +- asm/guardWithSpear.s | 2 +- asm/gyorgChild.s | 2 +- asm/gyorgFemale.s | 4 ++-- asm/gyorgMale.s | 6 +++--- asm/houseDoorExterior.s | 2 +- asm/initializeLink.s | 2 +- asm/itemForSale.s | 2 +- asm/itemOnGround.s | 4 ++-- asm/jailBars.s | 2 +- asm/ladderHoleInBookshelf.s | 6 +++--- asm/lavaPlatform.s | 4 ++-- asm/leever.s | 2 +- asm/macroBook.s | 2 +- asm/macroDecorations.s | 2 +- asm/manager2D.s | 2 +- asm/manager3.s | 2 +- asm/manager37.s | 2 +- asm/mazaalMacro.s | 10 +++++----- asm/minishLight.s | 2 +- asm/minishSizedArchway.s | 2 +- asm/moldworm.s | 2 +- asm/npc5.s | 2 +- asm/object21.s | 2 +- asm/object35.s | 2 +- asm/object6A.s | 10 +++++----- asm/object80.s | 2 +- asm/object81.s | 2 +- asm/object8A.s | 2 +- asm/object8B.s | 2 +- asm/object93.s | 2 +- asm/object96.s | 4 ++-- asm/object97.s | 8 ++++---- asm/object9E.s | 4 ++-- asm/objectBA.s | 4 ++-- asm/objectOnPillar.s | 2 +- asm/pesto.s | 2 +- asm/picoBloom.s | 2 +- asm/pullableLever.s | 4 ++-- asm/rope.s | 2 +- asm/sluggula.s | 2 +- asm/spinyChuchu.s | 2 +- asm/stalfos.s | 2 +- asm/sub_080A2838.s | 2 +- asm/swordsmanNewsletter.s | 2 +- asm/takkuri.s | 4 ++-- asm/vaatiEyesMacro.s | 2 +- asm/wallMaster.s | 2 +- asm/wallMaster2.s | 2 +- asm/waterDrop.s | 4 ++-- include/entity.h | 6 +++--- include/main.h | 2 +- src/archway.c | 4 ++-- src/bell.c | 4 ++-- src/bladeBrothers.c | 2 +- src/chestSpawner.c | 2 +- src/code_080A29BC.c | 2 +- src/giantLeaf.c | 4 ++-- src/greatFairy.c | 24 ++++++++++++------------ src/hangingSeed.c | 4 ++-- src/heartContainer.c | 2 +- src/item11.c | 2 +- src/keese.c | 6 +++--- src/lakitu.c | 4 ++-- src/lightableSwitch.c | 4 ++-- src/mask.c | 2 +- src/minishSizedEntrance.c | 4 ++-- src/object49.c | 6 +++--- src/object86.c | 4 ++-- src/position.c | 6 +++--- src/treeHidingPortal.c | 4 ++-- src/windTribeFlag.c | 2 +- 97 files changed, 171 insertions(+), 171 deletions(-) diff --git a/asm/bakerOven.s b/asm/bakerOven.s index fb5b16e1..afb026d5 100644 --- a/asm/bakerOven.s +++ b/asm/bakerOven.s @@ -26,7 +26,7 @@ sub_0809CC74: @ 0x0809CC74 adds r5, r0, #0 movs r4, #1 strb r4, [r5, #0xc] - bl UpdateSpriteOrderAndFlip + bl UpdateSpriteForCollisionLayer ldrb r0, [r5, #0xa] cmp r0, #0 bne _0809CCD4 diff --git a/asm/beetle.s b/asm/beetle.s index ea7afc04..a5215475 100644 --- a/asm/beetle.s +++ b/asm/beetle.s @@ -364,7 +364,7 @@ _080219C2: movs r1, #0 bl InitializeAnimation adds r0, r4, #0 - bl UpdateSpriteOrderAndFlip + bl UpdateSpriteForCollisionLayer _08021A04: pop {r4, pc} .align 2, 0 diff --git a/asm/bell.s b/asm/bell.s index 8454fb78..fdc37e1b 100644 --- a/asm/bell.s +++ b/asm/bell.s @@ -44,7 +44,7 @@ sub_08097D90: @ 0x08097D90 ands r0, r1 strb r0, [r2] adds r0, r4, #0 - bl UpdateSpriteOrderAndFlip + bl UpdateSpriteForCollisionLayer adds r0, r4, #0 movs r1, #0 bl InitAnimationForceUpdate diff --git a/asm/bigBarrel.s b/asm/bigBarrel.s index a61d2dac..caa4d348 100644 --- a/asm/bigBarrel.s +++ b/asm/bigBarrel.s @@ -509,7 +509,7 @@ _08088DEC: _08088E1E: strb r1, [r4, #0xb] adds r0, r4, #0 - bl UpdateSpriteOrderAndFlip + bl UpdateSpriteForCollisionLayer b _08088E6E _08088E28: ldrb r0, [r4, #0xb] diff --git a/asm/bird.s b/asm/bird.s index a2f52f0e..3ae45e1b 100644 --- a/asm/bird.s +++ b/asm/bird.s @@ -74,7 +74,7 @@ sub_0809CF54: @ 0x0809CF54 ldr r0, _0809CFE8 @ =0x00000123 bl PlaySFX adds r0, r4, #0 - bl UpdateSpriteOrderAndFlip + bl UpdateSpriteForCollisionLayer adds r0, r4, #0 movs r1, #0 bl InitAnimationForceUpdate @@ -162,7 +162,7 @@ sub_0809D048: @ 0x0809D048 movs r0, #1 strb r0, [r1] adds r0, r4, #0 - bl UpdateSpriteOrderAndFlip + bl UpdateSpriteForCollisionLayer adds r0, r4, #0 movs r1, #0x17 bl InitAnimationForceUpdate @@ -266,7 +266,7 @@ sub_0809D10C: @ 0x0809D10C movs r0, #1 strb r0, [r1] adds r0, r4, #0 - bl UpdateSpriteOrderAndFlip + bl UpdateSpriteForCollisionLayer adds r0, r4, #0 movs r1, #0x17 bl InitAnimationForceUpdate @@ -323,7 +323,7 @@ sub_0809D178: @ 0x0809D178 movs r0, #2 strb r0, [r1] adds r0, r4, #0 - bl UpdateSpriteOrderAndFlip + bl UpdateSpriteForCollisionLayer adds r1, r4, #0 adds r1, #0x5a movs r0, #0x80 diff --git a/asm/book.s b/asm/book.s index 561f4120..07893253 100644 --- a/asm/book.s +++ b/asm/book.s @@ -71,7 +71,7 @@ _0809B420: strb r0, [r4, #0xb] _0809B424: adds r0, r4, #0 - bl UpdateSpriteOrderAndFlip + bl UpdateSpriteForCollisionLayer ldrb r1, [r4, #0xa] adds r1, #0x39 adds r0, r4, #0 diff --git a/asm/code_0800857C.s b/asm/code_0800857C.s index 7d6edaf9..5d66e4b3 100644 --- a/asm/code_0800857C.s +++ b/asm/code_0800857C.s @@ -387,7 +387,7 @@ _0800882C: movs r3, #0x38 ldrb r1, [r4, r3] strb r1, [r0, r3] - bl UpdateSpriteOrderAndFlip + bl UpdateSpriteForCollisionLayer _0800883A: ldr r1, _080088E0 @ =gRoomControls ldrh r0, [r1, #6] @@ -4030,8 +4030,8 @@ gUnk_080169A4:: .byte 0x00, 0x00, 0x00, 0x01, 0x02, 0x00, 0x01, 0x00, 0x00, 0x00, 0xFF, 0x00, 0xFF, 0x00, 0xFF, 0x00 .byte 0x00, 0x00, 0x01, 0x00 - thumb_func_start UpdateSpriteOrderAndFlip -UpdateSpriteOrderAndFlip: @ 0x08016A04 + thumb_func_start UpdateSpriteForCollisionLayer +UpdateSpriteForCollisionLayer: @ 0x08016A04 movs r1, #0x38 ldrb r1, [r0, r1] lsls r1, r1, #1 @@ -4083,7 +4083,7 @@ _08016A62: strb r3, [r4, r5] _08016A64: adds r0, r4, #0 - bl UpdateSpriteOrderAndFlip + bl UpdateSpriteForCollisionLayer pop {r4, r5, pc} thumb_func_start sub_08016A6C @@ -4123,6 +4123,6 @@ sub_08016AD2: @ 0x08016AD2 bl sub_08016A6C push {r0} adds r0, r4, #0 - bl UpdateSpriteOrderAndFlip + bl UpdateSpriteForCollisionLayer pop {r0, r4, pc} diff --git a/asm/code_08016DF8.s b/asm/code_08016DF8.s index d5b8213c..312d0bdd 100644 --- a/asm/code_08016DF8.s +++ b/asm/code_08016DF8.s @@ -1567,7 +1567,7 @@ sub_08017940: @ 0x08017940 adds r0, #0x38 strb r1, [r0] adds r0, r2, #0 - bl UpdateSpriteOrderAndFlip + bl UpdateSpriteForCollisionLayer _080179CC: movs r1, #0 ldr r0, _080179E8 @ =gLinkEntity diff --git a/asm/code_08049CD4.s b/asm/code_08049CD4.s index dcd0d0a1..d415811d 100644 --- a/asm/code_08049CD4.s +++ b/asm/code_08049CD4.s @@ -1290,7 +1290,7 @@ _0804A612: strb r0, [r1] _0804A638: adds r0, r4, #0 - bl UpdateSpriteOrderAndFlip + bl UpdateSpriteForCollisionLayer adds r5, r4, #0 adds r5, #0x6d ldrb r1, [r5] diff --git a/asm/code_0805436C.s b/asm/code_0805436C.s index 592838bf..ee505e5d 100644 --- a/asm/code_0805436C.s +++ b/asm/code_0805436C.s @@ -685,7 +685,7 @@ _08054842: adds r0, #0x38 strb r1, [r0] adds r0, r2, #0 - bl UpdateSpriteOrderAndFlip + bl UpdateSpriteForCollisionLayer _0805486A: adds r0, r4, #0 _0805486C: @@ -1551,7 +1551,7 @@ sub_08054EFC: @ 0x08054EFC movs r0, #2 strb r0, [r1] adds r0, r4, #0 - bl UpdateSpriteOrderAndFlip + bl UpdateSpriteForCollisionLayer adds r0, r4, #0 movs r1, #0x35 movs r2, #0 diff --git a/asm/code_0806EC20.s b/asm/code_0806EC20.s index 8e3fbf72..7a47cab4 100644 --- a/asm/code_0806EC20.s +++ b/asm/code_0806EC20.s @@ -163,7 +163,7 @@ _0806ECD0: strb r1, [r0] strb r1, [r4, #0x1e] adds r0, r4, #0 - bl UpdateSpriteOrderAndFlip + bl UpdateSpriteForCollisionLayer _0806ED4A: pop {r4, r5, pc} .align 2, 0 diff --git a/asm/code_08070698.s b/asm/code_08070698.s index 3ad8e6c2..ebe42a24 100644 --- a/asm/code_08070698.s +++ b/asm/code_08070698.s @@ -3241,7 +3241,7 @@ sub_08071F80: @ 0x08071F80 cmp r5, #0 bne _08071FB8 adds r0, r4, #0 - bl UpdateSpriteOrderAndFlip + bl UpdateSpriteForCollisionLayer ldr r0, _08071FB4 @ =gLinkState strb r5, [r0, #2] ldrb r0, [r0, #0x14] @@ -3537,7 +3537,7 @@ _080721AC: orrs r0, r1 strb r0, [r4, #0x10] adds r0, r4, #0 - bl UpdateSpriteOrderAndFlip + bl UpdateSpriteForCollisionLayer bl sub_080791BC _080721DE: pop {r4, pc} @@ -3774,7 +3774,7 @@ sub_08072354: @ 0x08072354 ands r0, r1 str r0, [r2, #0x30] adds r0, r4, #0 - bl UpdateSpriteOrderAndFlip + bl UpdateSpriteForCollisionLayer adds r0, r4, #0 movs r1, #0xc movs r2, #0 diff --git a/asm/code_080732D0.s b/asm/code_080732D0.s index 1fe8ae46..0cce55f5 100644 --- a/asm/code_080732D0.s +++ b/asm/code_080732D0.s @@ -3153,7 +3153,7 @@ sub_08074A48: @ 0x08074A48 movs r0, #1 strb r0, [r1, #0xe] adds r0, r1, #0 - bl UpdateSpriteOrderAndFlip + bl UpdateSpriteForCollisionLayer ldrh r1, [r5, #0x22] adds r0, r4, #0 adds r0, #0x38 diff --git a/asm/code_08077B98.s b/asm/code_08077B98.s index 5b61adf0..8e3f6f87 100644 --- a/asm/code_08077B98.s +++ b/asm/code_08077B98.s @@ -3397,7 +3397,7 @@ _080794F4: bne _080794F4 _08079514: ldr r0, _0807951C @ =gLinkEntity - bl UpdateSpriteOrderAndFlip + bl UpdateSpriteForCollisionLayer pop {r4, r5, pc} .align 2, 0 _0807951C: .4byte gLinkEntity diff --git a/asm/code_0807B9B8.s b/asm/code_0807B9B8.s index 2360e828..9a17aa0a 100644 --- a/asm/code_0807B9B8.s +++ b/asm/code_0807B9B8.s @@ -1807,7 +1807,7 @@ _0807C7C2: movs r1, #1 strb r1, [r0] ldr r0, [r4, #0x30] - bl UpdateSpriteOrderAndFlip + bl UpdateSpriteForCollisionLayer _0807C7FC: ldrb r1, [r4, #0xf] movs r0, #0xfb diff --git a/asm/code_0807CC3C.s b/asm/code_0807CC3C.s index c1bff554..fa29b577 100644 --- a/asm/code_0807CC3C.s +++ b/asm/code_0807CC3C.s @@ -5065,7 +5065,7 @@ sub_0807F158: @ 0x0807F158 adds r2, #0x38 movs r1, #1 strb r1, [r2] - bl UpdateSpriteOrderAndFlip + bl UpdateSpriteForCollisionLayer pop {pc} thumb_func_start sub_0807F168 @@ -5076,7 +5076,7 @@ sub_0807F168: @ 0x0807F168 adds r2, #0x38 movs r1, #1 strb r1, [r2] - bl UpdateSpriteOrderAndFlip + bl UpdateSpriteForCollisionLayer pop {pc} .align 2, 0 _0807F17C: .4byte gLinkEntity @@ -5088,7 +5088,7 @@ sub_0807F180: @ 0x0807F180 adds r2, #0x38 movs r1, #2 strb r1, [r2] - bl UpdateSpriteOrderAndFlip + bl UpdateSpriteForCollisionLayer pop {pc} thumb_func_start sub_0807F190 diff --git a/asm/code_080A5574.s b/asm/code_080A5574.s index bd86ceb8..a9591b8c 100644 --- a/asm/code_080A5574.s +++ b/asm/code_080A5574.s @@ -5202,7 +5202,7 @@ _080A7E14: ldr r0, [r5, #4] str r0, [r4, #0x48] adds r0, r4, #0 - bl UpdateSpriteOrderAndFlip + bl UpdateSpriteForCollisionLayer _080A7E4A: movs r0, #1 _080A7E4C: @@ -10441,7 +10441,7 @@ sub_080AA534: @ 0x080AA534 adds r2, #0x38 movs r1, #3 strb r1, [r2] - bl UpdateSpriteOrderAndFlip + bl UpdateSpriteForCollisionLayer pop {pc} thumb_func_start sub_080AA544 @@ -15257,7 +15257,7 @@ sub_080AC928: @ 0x080AC928 movs r0, #2 strb r0, [r1] adds r0, r4, #0 - bl UpdateSpriteOrderAndFlip + bl UpdateSpriteForCollisionLayer adds r0, r4, #0 movs r1, #0 bl InitializeAnimation @@ -16380,7 +16380,7 @@ _080AD188: bl PlaySFX _080AD196: adds r0, r4, #0 - bl UpdateSpriteOrderAndFlip + bl UpdateSpriteForCollisionLayer movs r0, #3 strb r0, [r5, #0xd] ldrb r2, [r4, #0x19] diff --git a/asm/crow.s b/asm/crow.s index 4d1f98f3..4dca91a7 100644 --- a/asm/crow.s +++ b/asm/crow.s @@ -220,7 +220,7 @@ sub_08032928: @ 0x08032928 adds r1, #0x7a strh r0, [r1] adds r0, r6, #0 - bl UpdateSpriteOrderAndFlip + bl UpdateSpriteForCollisionLayer adds r0, r6, #0 bl sub_08032AF4 pop {r4, r5, r6, pc} @@ -368,7 +368,7 @@ sub_08032A48: @ 0x08032A48 movs r0, #3 strb r0, [r1] adds r0, r4, #0 - bl UpdateSpriteOrderAndFlip + bl UpdateSpriteForCollisionLayer adds r0, r4, #0 bl sub_08032AF4 _08032AAE: diff --git a/asm/cuccoAggr.s b/asm/cuccoAggr.s index 0329c554..d7161fa4 100644 --- a/asm/cuccoAggr.s +++ b/asm/cuccoAggr.s @@ -240,7 +240,7 @@ sub_08038E18: @ 0x08038E18 adds r0, r4, #0 bl sub_080AEF88 adds r0, r4, #0 - bl UpdateSpriteOrderAndFlip + bl UpdateSpriteForCollisionLayer _08038E70: ldrb r0, [r4, #0xe] subs r0, #1 diff --git a/asm/deathFx.s b/asm/deathFx.s index f74bd960..43281d5a 100644 --- a/asm/deathFx.s +++ b/asm/deathFx.s @@ -42,7 +42,7 @@ sub_08081634: @ 0x08081634 adds r0, #0x38 strb r1, [r0] adds r0, r4, #0 - bl UpdateSpriteOrderAndFlip + bl UpdateSpriteForCollisionLayer ldrb r0, [r4, #0x19] movs r1, #3 orrs r0, r1 diff --git a/asm/enemy64.s b/asm/enemy64.s index dd9105f2..5131a1fa 100644 --- a/asm/enemy64.s +++ b/asm/enemy64.s @@ -570,7 +570,7 @@ _0804948C: strb r0, [r1] str r4, [r2, #0x50] adds r0, r2, #0 - bl UpdateSpriteOrderAndFlip + bl UpdateSpriteForCollisionLayer _080494B2: adds r0, r4, #0 bl sub_08049944 @@ -1414,7 +1414,7 @@ sub_08049AB0: @ 0x08049AB0 movs r0, #2 strb r0, [r1] adds r0, r4, #0 - bl UpdateSpriteOrderAndFlip + bl UpdateSpriteForCollisionLayer _08049B18: pop {r4, r5, pc} .align 2, 0 diff --git a/asm/fallingBoulder.s b/asm/fallingBoulder.s index 052f8a8e..78842d96 100644 --- a/asm/fallingBoulder.s +++ b/asm/fallingBoulder.s @@ -340,7 +340,7 @@ _0802C48C: orrs r0, r1 strb r0, [r2] adds r0, r4, #0 - bl UpdateSpriteOrderAndFlip + bl UpdateSpriteForCollisionLayer _0802C4AA: pop {r4, r5, r6, r7, pc} diff --git a/asm/floatingBlock.s b/asm/floatingBlock.s index 22ab5a8b..af82890d 100644 --- a/asm/floatingBlock.s +++ b/asm/floatingBlock.s @@ -33,7 +33,7 @@ FloatingBlock: @ 0x080A0554 adds r0, #0x38 strb r2, [r0] adds r0, r3, #0 - bl UpdateSpriteOrderAndFlip + bl UpdateSpriteForCollisionLayer _080A0588: pop {pc} .align 2, 0 diff --git a/asm/furniture.s b/asm/furniture.s index 81bed6a9..43187642 100644 --- a/asm/furniture.s +++ b/asm/furniture.s @@ -95,7 +95,7 @@ _08090640: movs r0, #2 strb r0, [r1] adds r0, r7, #0 - bl UpdateSpriteOrderAndFlip + bl UpdateSpriteForCollisionLayer b _080906E6 _08090650: ldrh r1, [r7, #0x32] @@ -657,7 +657,7 @@ _08090B14: movs r0, #1 strb r0, [r3] adds r0, r2, #0 - bl UpdateSpriteOrderAndFlip + bl UpdateSpriteForCollisionLayer _08090B2C: adds r0, r5, #0 bl GetTileTypeByEntity @@ -1095,7 +1095,7 @@ sub_08090E64: @ 0x08090E64 movs r0, #2 strb r0, [r1] adds r0, r4, #0 - bl UpdateSpriteOrderAndFlip + bl UpdateSpriteForCollisionLayer _08090EA0: pop {r4, r5, pc} .align 2, 0 diff --git a/asm/gentariCurtains.s b/asm/gentariCurtains.s index a281b998..5b249efb 100644 --- a/asm/gentariCurtains.s +++ b/asm/gentariCurtains.s @@ -62,7 +62,7 @@ _0809207A: adds r0, #2 strh r0, [r6, #0x2e] adds r0, r6, #0 - bl UpdateSpriteOrderAndFlip + bl UpdateSpriteForCollisionLayer movs r0, #0x2e ldrsh r2, [r6, r0] ldr r3, _08092130 @ =gRoomControls @@ -248,7 +248,7 @@ sub_080921F0: @ 0x080921F0 orrs r0, r1 strb r0, [r3] adds r0, r2, #0 - bl UpdateSpriteOrderAndFlip + bl UpdateSpriteForCollisionLayer _08092212: pop {pc} @@ -271,7 +271,7 @@ sub_08092214: @ 0x08092214 orrs r0, r1 strb r0, [r3] adds r0, r2, #0 - bl UpdateSpriteOrderAndFlip + bl UpdateSpriteForCollisionLayer _0809223A: pop {pc} @@ -290,5 +290,5 @@ sub_0809223C: @ 0x0809223C movs r2, #3 orrs r1, r2 strb r1, [r3] - bl UpdateSpriteOrderAndFlip + bl UpdateSpriteForCollisionLayer pop {pc} diff --git a/asm/giantRock.s b/asm/giantRock.s index e545cbcc..2a1786ca 100644 --- a/asm/giantRock.s +++ b/asm/giantRock.s @@ -27,7 +27,7 @@ GiantRock: @ 0x08090FB8 movs r0, #2 strb r0, [r1] adds r0, r4, #0 - bl UpdateSpriteOrderAndFlip + bl UpdateSpriteForCollisionLayer adds r2, r4, #0 adds r2, #0x29 ldrb r1, [r2] diff --git a/asm/guardWithSpear.s b/asm/guardWithSpear.s index e520a382..e9456371 100644 --- a/asm/guardWithSpear.s +++ b/asm/guardWithSpear.s @@ -280,7 +280,7 @@ _08063EFE: movs r0, #1 strb r0, [r1] adds r0, r4, #0 - bl UpdateSpriteOrderAndFlip + bl UpdateSpriteForCollisionLayer adds r0, r4, #0 bl sub_0807DD64 adds r0, r4, #0 diff --git a/asm/gyorgChild.s b/asm/gyorgChild.s index 0cd568fa..54351bef 100644 --- a/asm/gyorgChild.s +++ b/asm/gyorgChild.s @@ -315,7 +315,7 @@ sub_0804882C: @ 0x0804882C movs r0, #2 strb r0, [r1] adds r0, r4, #0 - bl UpdateSpriteOrderAndFlip + bl UpdateSpriteForCollisionLayer adds r0, r4, #0 adds r0, #0x7a ldrb r0, [r0] diff --git a/asm/gyorgFemale.s b/asm/gyorgFemale.s index f2d87de7..20c48072 100644 --- a/asm/gyorgFemale.s +++ b/asm/gyorgFemale.s @@ -125,7 +125,7 @@ sub_0804614C: @ 0x0804614C adds r1, r0, #0 adds r1, #0x38 strb r5, [r1] - bl UpdateSpriteOrderAndFlip + bl UpdateSpriteForCollisionLayer ldr r1, _08046258 @ =sub_08046498 adds r0, r6, #0 movs r2, #0 @@ -846,7 +846,7 @@ _0804674C: movs r0, #1 strb r0, [r1] adds r0, r2, #0 - bl UpdateSpriteOrderAndFlip + bl UpdateSpriteForCollisionLayer _080467CC: adds r1, r4, #0 adds r1, #0x7c diff --git a/asm/gyorgMale.s b/asm/gyorgMale.s index b4a99616..b629c4d4 100644 --- a/asm/gyorgMale.s +++ b/asm/gyorgMale.s @@ -997,7 +997,7 @@ _08046F12: strb r0, [r1] str r4, [r2, #0x50] adds r0, r2, #0 - bl UpdateSpriteOrderAndFlip + bl UpdateSpriteForCollisionLayer _08046F58: adds r0, r4, #0 bl sub_08047E48 @@ -1052,7 +1052,7 @@ _08046F82: strb r0, [r1] str r4, [r2, #0x50] adds r0, r2, #0 - bl UpdateSpriteOrderAndFlip + bl UpdateSpriteForCollisionLayer _08046FC8: ldr r0, [r4, #0x64] ldr r0, [r0] @@ -2751,7 +2751,7 @@ sub_08047BF0: @ 0x08047BF0 movs r0, #1 strb r0, [r1] adds r0, r4, #0 - bl UpdateSpriteOrderAndFlip + bl UpdateSpriteForCollisionLayer _08047C74: adds r0, r5, #0 adds r0, #0x76 diff --git a/asm/houseDoorExterior.s b/asm/houseDoorExterior.s index c05b8c50..50b7a415 100644 --- a/asm/houseDoorExterior.s +++ b/asm/houseDoorExterior.s @@ -108,7 +108,7 @@ _08086718: ldrb r0, [r5, #5] strb r0, [r4, #0xd] adds r0, r4, #0 - bl UpdateSpriteOrderAndFlip + bl UpdateSpriteForCollisionLayer ldr r0, [r6, #0x68] orrs r0, r7 str r0, [r6, #0x68] diff --git a/asm/initializeLink.s b/asm/initializeLink.s index 8968f0ef..ef69d458 100644 --- a/asm/initializeLink.s +++ b/asm/initializeLink.s @@ -162,7 +162,7 @@ _080525C2: adds r0, #0x38 strb r1, [r0] adds r0, r4, #0 - bl UpdateSpriteOrderAndFlip + bl UpdateSpriteForCollisionLayer adds r0, r4, #0 movs r1, #1 bl sub_0805EA2C diff --git a/asm/itemForSale.s b/asm/itemForSale.s index 4483e12e..6c82a3af 100644 --- a/asm/itemForSale.s +++ b/asm/itemForSale.s @@ -288,7 +288,7 @@ _080819D4: orrs r0, r1 strb r0, [r2] adds r0, r5, #0 - bl UpdateSpriteOrderAndFlip + bl UpdateSpriteForCollisionLayer adds r0, r5, #0 bl sub_08081A5C pop {r4, r5, r6, pc} diff --git a/asm/itemOnGround.s b/asm/itemOnGround.s index 32076405..835a13ca 100644 --- a/asm/itemOnGround.s +++ b/asm/itemOnGround.s @@ -1473,7 +1473,7 @@ _08081522: ldrb r0, [r4, #0xa] bl sub_0808148C adds r0, r4, #0 - bl UpdateSpriteOrderAndFlip + bl UpdateSpriteForCollisionLayer _08081532: adds r0, r4, #0 bl sub_080AEFE0 @@ -1510,7 +1510,7 @@ sub_0808153C: @ 0x0808153C ldrb r0, [r4, #0xa] bl sub_0808148C adds r0, r4, #0 - bl UpdateSpriteOrderAndFlip + bl UpdateSpriteForCollisionLayer b _08081596 _0808157E: movs r1, #0xa0 diff --git a/asm/jailBars.s b/asm/jailBars.s index 524ee493..2760cce6 100644 --- a/asm/jailBars.s +++ b/asm/jailBars.s @@ -54,7 +54,7 @@ _080A08F6: movs r0, #1 strb r0, [r1] adds r0, r4, #0 - bl UpdateSpriteOrderAndFlip + bl UpdateSpriteForCollisionLayer pop {r4, pc} .align 2, 0 diff --git a/asm/ladderHoleInBookshelf.s b/asm/ladderHoleInBookshelf.s index 71ba81cc..4f2b4648 100644 --- a/asm/ladderHoleInBookshelf.s +++ b/asm/ladderHoleInBookshelf.s @@ -29,7 +29,7 @@ sub_08093FCC: @ 0x08093FCC adds r2, #0x38 movs r1, #2 strb r1, [r2] - bl UpdateSpriteOrderAndFlip + bl UpdateSpriteForCollisionLayer pop {pc} thumb_func_start sub_08093FE0 @@ -54,7 +54,7 @@ _08094002: movs r0, #1 strb r0, [r3] adds r0, r4, #0 - bl UpdateSpriteOrderAndFlip + bl UpdateSpriteForCollisionLayer adds r2, r4, #0 adds r2, #0x29 ldrb r1, [r2] @@ -76,7 +76,7 @@ _08094024: movs r0, #2 strb r0, [r3] adds r0, r4, #0 - bl UpdateSpriteOrderAndFlip + bl UpdateSpriteForCollisionLayer adds r2, r4, #0 adds r2, #0x29 ldrb r1, [r2] diff --git a/asm/lavaPlatform.s b/asm/lavaPlatform.s index e505fa7a..ce50eb1b 100644 --- a/asm/lavaPlatform.s +++ b/asm/lavaPlatform.s @@ -66,7 +66,7 @@ sub_0809229C: @ 0x0809229C orrs r0, r1 strb r0, [r4, #0x18] adds r0, r4, #0 - bl UpdateSpriteOrderAndFlip + bl UpdateSpriteForCollisionLayer ldr r0, [r4, #0x54] ldrb r1, [r0, #0x14] adds r0, r4, #0 @@ -502,7 +502,7 @@ _080925B8: ldr r0, [r5] str r0, [r4, #0x78] adds r0, r4, #0 - bl UpdateSpriteOrderAndFlip + bl UpdateSpriteForCollisionLayer adds r1, r4, #0 adds r1, #0x78 adds r2, r4, #0 diff --git a/asm/leever.s b/asm/leever.s index 99c2e4da..d20b77f3 100644 --- a/asm/leever.s +++ b/asm/leever.s @@ -143,7 +143,7 @@ sub_0801FCB0: @ 0x0801FCB0 movs r1, #0 bl InitializeAnimation adds r0, r5, #0 - bl UpdateSpriteOrderAndFlip + bl UpdateSpriteForCollisionLayer b _0801FD28 .align 2, 0 _0801FD14: .4byte gUnk_020000B0 diff --git a/asm/macroBook.s b/asm/macroBook.s index 5d6f901b..6ec09881 100644 --- a/asm/macroBook.s +++ b/asm/macroBook.s @@ -62,7 +62,7 @@ sub_0809A78C: @ 0x0809A78C adds r1, r2, #0 bl sub_0805EC9C adds r0, r4, #0 - bl UpdateSpriteOrderAndFlip + bl UpdateSpriteForCollisionLayer ldrb r1, [r4, #0xf] adds r0, r4, #0 bl InitAnimationForceUpdate diff --git a/asm/macroDecorations.s b/asm/macroDecorations.s index 87347714..0d6cd142 100644 --- a/asm/macroDecorations.s +++ b/asm/macroDecorations.s @@ -27,7 +27,7 @@ sub_08097DEC: @ 0x08097DEC movs r0, #1 strb r0, [r4, #0xc] adds r0, r4, #0 - bl UpdateSpriteOrderAndFlip + bl UpdateSpriteForCollisionLayer ldrb r0, [r4, #0xa] cmp r0, #1 beq _08097E46 diff --git a/asm/manager2D.s b/asm/manager2D.s index a89e3807..c3129650 100644 --- a/asm/manager2D.s +++ b/asm/manager2D.s @@ -34,7 +34,7 @@ sub_0805D1FC: @ 0x0805D1FC movs r0, #3 strb r0, [r1] adds r0, r2, #0 - bl UpdateSpriteOrderAndFlip + bl UpdateSpriteForCollisionLayer _0805D236: adds r0, r4, #0 bl sub_0805E900 diff --git a/asm/manager3.s b/asm/manager3.s index 0a084297..2f755748 100644 --- a/asm/manager3.s +++ b/asm/manager3.s @@ -170,7 +170,7 @@ _080577F2: mov r1, r8 strb r1, [r0] adds r0, r4, #0 - bl UpdateSpriteOrderAndFlip + bl UpdateSpriteForCollisionLayer _08057808: pop {r3} mov r8, r3 diff --git a/asm/manager37.s b/asm/manager37.s index 3db0ff86..f9dca8f3 100644 --- a/asm/manager37.s +++ b/asm/manager37.s @@ -265,7 +265,7 @@ sub_0805E000: @ 0x0805E000 movs r5, #1 strb r5, [r0] adds r0, r4, #0 - bl UpdateSpriteOrderAndFlip + bl UpdateSpriteForCollisionLayer ldr r0, _0805E068 @ =gUnk_030010A0 adds r0, #0x38 ldrb r1, [r0] diff --git a/asm/mazaalMacro.s b/asm/mazaalMacro.s index 8d91be75..d294485a 100644 --- a/asm/mazaalMacro.s +++ b/asm/mazaalMacro.s @@ -170,7 +170,7 @@ sub_08034D4C: @ 0x08034D4C strb r0, [r1] str r5, [r4, #0x50] adds r0, r4, #0 - bl UpdateSpriteOrderAndFlip + bl UpdateSpriteForCollisionLayer movs r0, #0x96 lsls r0, r0, #2 strh r0, [r6] @@ -264,7 +264,7 @@ sub_08034E30: @ 0x08034E30 ands r0, r1 strb r0, [r2] adds r0, r4, #0 - bl UpdateSpriteOrderAndFlip + bl UpdateSpriteForCollisionLayer adds r0, r4, #0 movs r1, #2 bl InitializeAnimation @@ -385,7 +385,7 @@ sub_08034EE4: @ 0x08034EE4 movs r0, #2 strb r0, [r1] adds r0, r3, #0 - bl UpdateSpriteOrderAndFlip + bl UpdateSpriteForCollisionLayer _08034F46: adds r0, r5, #0 movs r1, #0 @@ -553,7 +553,7 @@ sub_08035050: @ 0x08035050 strb r0, [r1] str r4, [r2, #0x50] adds r0, r2, #0 - bl UpdateSpriteOrderAndFlip + bl UpdateSpriteForCollisionLayer _08035082: pop {r4, pc} @@ -625,7 +625,7 @@ _080350F2: movs r0, #1 strb r0, [r1] adds r0, r2, #0 - bl UpdateSpriteOrderAndFlip + bl UpdateSpriteForCollisionLayer adds r5, #1 adds r4, #2 cmp r5, #5 diff --git a/asm/minishLight.s b/asm/minishLight.s index c437e8fe..f824b8a3 100644 --- a/asm/minishLight.s +++ b/asm/minishLight.s @@ -40,7 +40,7 @@ sub_0809F840: @ 0x0809F840 strb r0, [r2, #0x18] _0809F860: adds r0, r2, #0 - bl UpdateSpriteOrderAndFlip + bl UpdateSpriteForCollisionLayer pop {pc} thumb_func_start sub_0809F868 diff --git a/asm/minishSizedArchway.s b/asm/minishSizedArchway.s index 273bb726..cc3b1074 100644 --- a/asm/minishSizedArchway.s +++ b/asm/minishSizedArchway.s @@ -23,7 +23,7 @@ MinishSizedArchway: @ 0x080973E4 movs r0, #2 strb r0, [r1] adds r0, r4, #0 - bl UpdateSpriteOrderAndFlip + bl UpdateSpriteForCollisionLayer bl CheckIsDungeon cmp r0, #0 beq _0809741E diff --git a/asm/moldworm.s b/asm/moldworm.s index 5f88a6c9..3db9e88b 100644 --- a/asm/moldworm.s +++ b/asm/moldworm.s @@ -1275,7 +1275,7 @@ sub_08023990: @ 0x08023990 adds r0, #0x38 strb r1, [r0] adds r0, r5, #0 - bl UpdateSpriteOrderAndFlip + bl UpdateSpriteForCollisionLayer adds r0, r5, #0 movs r1, #0x16 bl InitializeAnimation diff --git a/asm/npc5.s b/asm/npc5.s index d0f70ed1..770ffb42 100644 --- a/asm/npc5.s +++ b/asm/npc5.s @@ -550,7 +550,7 @@ sub_08060DFC: @ 0x08060DFC movs r0, #1 strb r0, [r1] adds r0, r4, #0 - bl UpdateSpriteOrderAndFlip + bl UpdateSpriteForCollisionLayer adds r0, r4, #0 movs r1, #0x1c bl sub_08060E70 diff --git a/asm/object21.s b/asm/object21.s index 0425edd8..8367e2d3 100644 --- a/asm/object21.s +++ b/asm/object21.s @@ -117,7 +117,7 @@ _08087A68: movs r0, #2 strb r0, [r1] adds r0, r4, #0 - bl UpdateSpriteOrderAndFlip + bl UpdateSpriteForCollisionLayer _08087A76: ldrb r1, [r4, #0x10] movs r0, #0x80 diff --git a/asm/object35.s b/asm/object35.s index c5943573..903fe6a1 100644 --- a/asm/object35.s +++ b/asm/object35.s @@ -44,7 +44,7 @@ sub_0808B89C: @ 0x0808B89C adds r1, #0x38 strb r0, [r1] adds r0, r4, #0 - bl UpdateSpriteOrderAndFlip + bl UpdateSpriteForCollisionLayer adds r2, r4, #0 adds r2, #0x29 ldrb r1, [r2] diff --git a/asm/object6A.s b/asm/object6A.s index 93f54024..057c0c45 100644 --- a/asm/object6A.s +++ b/asm/object6A.s @@ -59,7 +59,7 @@ sub_08094A90: @ 0x08094A90 movs r0, #2 strb r0, [r1] adds r0, r4, #0 - bl UpdateSpriteOrderAndFlip + bl UpdateSpriteForCollisionLayer ldr r1, _08094AE4 @ =gUnk_08114F30 ldrb r2, [r4, #0x19] lsrs r0, r2, #6 @@ -252,7 +252,7 @@ sub_08094BE0: @ 0x08094BE0 movs r0, #2 strb r0, [r1] adds r0, r4, #0 - bl UpdateSpriteOrderAndFlip + bl UpdateSpriteForCollisionLayer adds r0, r4, #0 movs r1, #1 bl InitAnimationForceUpdate @@ -1209,7 +1209,7 @@ sub_08095364: @ 0x08095364 movs r4, #1 strb r4, [r0] adds r0, r6, #0 - bl UpdateSpriteOrderAndFlip + bl UpdateSpriteForCollisionLayer str r5, [r6, #0x54] strb r4, [r6, #0xd] ldr r0, _080953A0 @ =0x0000FFF0 @@ -1868,7 +1868,7 @@ _08095880: movs r0, #2 strb r0, [r1] adds r0, r5, #0 - bl UpdateSpriteOrderAndFlip + bl UpdateSpriteForCollisionLayer ldr r1, _080958D4 @ =gUnk_08114F30 ldrb r2, [r5, #0x19] lsrs r0, r2, #6 @@ -2225,7 +2225,7 @@ sub_08095B48: @ 0x08095B48 movs r0, #2 strb r0, [r1] adds r0, r5, #0 - bl UpdateSpriteOrderAndFlip + bl UpdateSpriteForCollisionLayer ldr r1, _08095BA8 @ =gUnk_08114F30 ldrb r2, [r5, #0x19] lsrs r0, r2, #6 diff --git a/asm/object80.s b/asm/object80.s index 1373da3e..14d17bd5 100644 --- a/asm/object80.s +++ b/asm/object80.s @@ -83,7 +83,7 @@ sub_08098B28: @ 0x08098B28 adds r7, #0x38 strb r4, [r7] adds r0, r5, #0 - bl UpdateSpriteOrderAndFlip + bl UpdateSpriteForCollisionLayer adds r2, r5, #0 adds r2, #0x29 ldrb r1, [r2] diff --git a/asm/object81.s b/asm/object81.s index 134fa910..97108ec1 100644 --- a/asm/object81.s +++ b/asm/object81.s @@ -67,7 +67,7 @@ _08098CD0: strb r5, [r0] _08098CD6: adds r0, r4, #0 - bl UpdateSpriteOrderAndFlip + bl UpdateSpriteForCollisionLayer adds r0, r4, #0 adds r0, #0x80 ldrh r1, [r0] diff --git a/asm/object8A.s b/asm/object8A.s index cd8584b3..b6f8f79f 100644 --- a/asm/object8A.s +++ b/asm/object8A.s @@ -47,7 +47,7 @@ sub_0809ADCC: @ 0x0809ADCC adds r0, #0x38 ldrb r7, [r0] adds r0, r4, #0 - bl UpdateSpriteOrderAndFlip + bl UpdateSpriteForCollisionLayer ldrb r0, [r4, #0xa] cmp r0, #1 beq _0809AEBC diff --git a/asm/object8B.s b/asm/object8B.s index eb3cd691..a81bd48e 100644 --- a/asm/object8B.s +++ b/asm/object8B.s @@ -72,7 +72,7 @@ _0809AFC4: adds r0, #0x84 strb r6, [r0] adds r0, r4, #0 - bl UpdateSpriteOrderAndFlip + bl UpdateSpriteForCollisionLayer movs r0, #0x8b movs r1, #1 movs r2, #0 diff --git a/asm/object93.s b/asm/object93.s index 4dc6be8e..2862be71 100644 --- a/asm/object93.s +++ b/asm/object93.s @@ -26,7 +26,7 @@ sub_0809CEA8: @ 0x0809CEA8 movs r0, #1 strb r0, [r4, #0xc] adds r0, r4, #0 - bl UpdateSpriteOrderAndFlip + bl UpdateSpriteForCollisionLayer adds r0, r4, #0 movs r1, #0 bl InitializeAnimation diff --git a/asm/object96.s b/asm/object96.s index dab90295..be3b6f07 100644 --- a/asm/object96.s +++ b/asm/object96.s @@ -78,7 +78,7 @@ sub_0809D7A8: @ 0x0809D7A8 strb r1, [r5, #0x15] _0809D80C: adds r0, r5, #0 - bl UpdateSpriteOrderAndFlip + bl UpdateSpriteForCollisionLayer ldrb r4, [r5, #0xa] adds r0, r5, #0 bl sub_08080CB4 @@ -151,7 +151,7 @@ _0809D888: adds r0, #0x38 strb r1, [r0] adds r0, r5, #0 - bl UpdateSpriteOrderAndFlip + bl UpdateSpriteForCollisionLayer ldr r1, [r6] cmp r1, #0 beq _0809D8AC diff --git a/asm/object97.s b/asm/object97.s index c7072469..0582a23e 100644 --- a/asm/object97.s +++ b/asm/object97.s @@ -243,7 +243,7 @@ sub_0809DB58: @ 0x0809DB58 orrs r0, r1 strb r0, [r4, #0x19] adds r0, r4, #0 - bl UpdateSpriteOrderAndFlip + bl UpdateSpriteForCollisionLayer adds r0, r4, #0 movs r1, #0x3c bl InitAnimationForceUpdate @@ -357,7 +357,7 @@ _0809DC3C: adds r0, #0x38 strb r1, [r0] adds r0, r4, #0 - bl UpdateSpriteOrderAndFlip + bl UpdateSpriteForCollisionLayer _0809DC54: movs r0, #0x6e bl PlaySFX @@ -430,7 +430,7 @@ sub_0809DC80: @ 0x0809DC80 adds r0, #2 strb r2, [r0] adds r0, r4, #0 - bl UpdateSpriteOrderAndFlip + bl UpdateSpriteForCollisionLayer adds r0, r4, #0 movs r1, #3 bl InitAnimationForceUpdate @@ -659,7 +659,7 @@ sub_0809DE50: @ 0x0809DE50 ldr r0, _0809DEF8 @ =0x0000FFC0 strh r0, [r4, #0x36] adds r0, r4, #0 - bl UpdateSpriteOrderAndFlip + bl UpdateSpriteForCollisionLayer ldr r1, _0809DEFC @ =gUnk_08124128 ldrb r0, [r4, #0xb] adds r0, r0, r1 diff --git a/asm/object9E.s b/asm/object9E.s index aa3e2d94..8bffc8e2 100644 --- a/asm/object9E.s +++ b/asm/object9E.s @@ -76,7 +76,7 @@ Object9E: @ 0x0809EC4C adds r1, r4, #0 bl SetTile adds r0, r6, #0 - bl UpdateSpriteOrderAndFlip + bl UpdateSpriteForCollisionLayer movs r0, #0x9e movs r1, #1 movs r2, #0 @@ -100,7 +100,7 @@ _0809ED04: movs r0, #2 strb r0, [r1] adds r0, r6, #0 - bl UpdateSpriteOrderAndFlip + bl UpdateSpriteForCollisionLayer _0809ED14: pop {r4, r5, r6, pc} .align 2, 0 diff --git a/asm/objectBA.s b/asm/objectBA.s index 2497b2f6..e85896f3 100644 --- a/asm/objectBA.s +++ b/asm/objectBA.s @@ -1026,7 +1026,7 @@ sub_080A1E54: @ 0x080A1E54 movs r0, #2 strb r0, [r1] adds r0, r4, #0 - bl UpdateSpriteOrderAndFlip + bl UpdateSpriteForCollisionLayer _080A1ECA: pop {r4, r5, pc} .align 2, 0 @@ -1241,7 +1241,7 @@ sub_080A1FF0: @ 0x080A1FF0 movs r0, #1 strb r0, [r1] adds r0, r4, #0 - bl UpdateSpriteOrderAndFlip + bl UpdateSpriteForCollisionLayer _080A2066: adds r4, r5, #0 adds r4, #0x7b diff --git a/asm/objectOnPillar.s b/asm/objectOnPillar.s index 7ed564f8..614b63e8 100644 --- a/asm/objectOnPillar.s +++ b/asm/objectOnPillar.s @@ -79,7 +79,7 @@ sub_08096E28: @ 0x08096E28 subs r1, #0x2b strb r0, [r1] adds r0, r4, #0 - bl UpdateSpriteOrderAndFlip + bl UpdateSpriteForCollisionLayer adds r0, r4, #0 bl sub_080970F4 ldr r1, _08096EB8 @ =gUnk_08123264 diff --git a/asm/pesto.s b/asm/pesto.s index d281d484..5e5b2c14 100644 --- a/asm/pesto.s +++ b/asm/pesto.s @@ -306,7 +306,7 @@ _08024132: strh r0, [r4, #0x36] _08024136: adds r0, r4, #0 - bl UpdateSpriteOrderAndFlip + bl UpdateSpriteForCollisionLayer bl CheckIsDungeon cmp r0, #0 beq _08024150 diff --git a/asm/picoBloom.s b/asm/picoBloom.s index bd66f005..9447336e 100644 --- a/asm/picoBloom.s +++ b/asm/picoBloom.s @@ -40,7 +40,7 @@ _08098A9C: movs r0, #1 strb r0, [r1] adds r0, r4, #0 - bl UpdateSpriteOrderAndFlip + bl UpdateSpriteForCollisionLayer ldr r1, _08098ACC @ =gUnk_08123574 ldrb r0, [r4, #0xa] adds r0, r0, r1 diff --git a/asm/pullableLever.s b/asm/pullableLever.s index 4c312107..538bbf7a 100644 --- a/asm/pullableLever.s +++ b/asm/pullableLever.s @@ -333,7 +333,7 @@ sub_08091444: @ 0x08091444 adds r0, r4, #0 bl InitializeAnimation adds r0, r4, #0 - bl UpdateSpriteOrderAndFlip + bl UpdateSpriteForCollisionLayer pop {r4, pc} thumb_func_start sub_08091470 @@ -447,7 +447,7 @@ sub_08091504: @ 0x08091504 adds r0, r4, #0 bl InitializeAnimation adds r0, r4, #0 - bl UpdateSpriteOrderAndFlip + bl UpdateSpriteForCollisionLayer pop {r4, pc} thumb_func_start sub_0809153C diff --git a/asm/rope.s b/asm/rope.s index 40d0aae0..f50525be 100644 --- a/asm/rope.s +++ b/asm/rope.s @@ -212,7 +212,7 @@ _080314CC: orrs r0, r1 strb r0, [r4, #0x18] adds r0, r4, #0 - bl UpdateSpriteOrderAndFlip + bl UpdateSpriteForCollisionLayer movs r0, #0x84 bl sub_08004488 _080314FA: diff --git a/asm/sluggula.s b/asm/sluggula.s index b5914318..0b860cca 100644 --- a/asm/sluggula.s +++ b/asm/sluggula.s @@ -291,7 +291,7 @@ _08023D94: movs r0, #0x84 bl sub_08004488 adds r0, r4, #0 - bl UpdateSpriteOrderAndFlip + bl UpdateSpriteForCollisionLayer b _08023E0A _08023DC0: adds r0, r4, #0 diff --git a/asm/spinyChuchu.s b/asm/spinyChuchu.s index ecc587b9..8e2b6aba 100644 --- a/asm/spinyChuchu.s +++ b/asm/spinyChuchu.s @@ -331,7 +331,7 @@ _0802268C: movs r0, #0x7d bl sub_08004488 adds r0, r4, #0 - bl UpdateSpriteOrderAndFlip + bl UpdateSpriteForCollisionLayer _080226BE: adds r0, r4, #0 bl GetNextFrame diff --git a/asm/stalfos.s b/asm/stalfos.s index 0e0ed424..a751e19b 100644 --- a/asm/stalfos.s +++ b/asm/stalfos.s @@ -80,7 +80,7 @@ _0803930C: b _0803933A _08039334: adds r0, r4, #0 - bl UpdateSpriteOrderAndFlip + bl UpdateSpriteForCollisionLayer _0803933A: pop {r4, pc} diff --git a/asm/sub_080A2838.s b/asm/sub_080A2838.s index d6c6f06c..57383f72 100644 --- a/asm/sub_080A2838.s +++ b/asm/sub_080A2838.s @@ -20,7 +20,7 @@ sub_080A2838: @ 0x080A2838 cmp r0, #2 bne _080A2856 adds r0, r4, #0 - bl UpdateSpriteOrderAndFlip + bl UpdateSpriteForCollisionLayer _080A2856: pop {r4, pc} .align 2, 0 diff --git a/asm/swordsmanNewsletter.s b/asm/swordsmanNewsletter.s index 1dc5c316..3ead564f 100644 --- a/asm/swordsmanNewsletter.s +++ b/asm/swordsmanNewsletter.s @@ -29,7 +29,7 @@ sub_080933D8: @ 0x080933D8 ldrb r0, [r4, #0xa] strb r0, [r4, #0x1e] adds r0, r4, #0 - bl UpdateSpriteOrderAndFlip + bl UpdateSpriteForCollisionLayer ldr r0, _080933F8 @ =gUnk_081228A8 str r0, [r4, #0x48] adds r0, r4, #0 diff --git a/asm/takkuri.s b/asm/takkuri.s index 0d84a082..b382ddcb 100644 --- a/asm/takkuri.s +++ b/asm/takkuri.s @@ -213,7 +213,7 @@ sub_0803BCA4: @ 0x0803BCA4 adds r1, #0x7a strh r0, [r1] adds r0, r6, #0 - bl UpdateSpriteOrderAndFlip + bl UpdateSpriteForCollisionLayer adds r0, r6, #0 bl sub_0803BF2C pop {r4, r5, r6, pc} @@ -459,7 +459,7 @@ sub_0803BE7C: @ 0x0803BE7C movs r0, #3 strb r0, [r1] adds r0, r4, #0 - bl UpdateSpriteOrderAndFlip + bl UpdateSpriteForCollisionLayer adds r0, r4, #0 bl sub_0803BF2C _0803BEE6: diff --git a/asm/vaatiEyesMacro.s b/asm/vaatiEyesMacro.s index 623ce8a9..ba21e690 100644 --- a/asm/vaatiEyesMacro.s +++ b/asm/vaatiEyesMacro.s @@ -411,7 +411,7 @@ _0802EF5E: strb r0, [r1] str r6, [r4, #0x50] adds r0, r4, #0 - bl UpdateSpriteOrderAndFlip + bl UpdateSpriteForCollisionLayer adds r0, r6, #0 adds r1, r4, #0 bl CopyPosition diff --git a/asm/wallMaster.s b/asm/wallMaster.s index 7efe19a3..8a7f47f4 100644 --- a/asm/wallMaster.s +++ b/asm/wallMaster.s @@ -156,7 +156,7 @@ sub_0802A4E4: @ 0x0802A4E4 adds r1, #0x78 strh r0, [r1] adds r0, r4, #0 - bl UpdateSpriteOrderAndFlip + bl UpdateSpriteForCollisionLayer adds r0, r4, #0 bl sub_0802A7D0 pop {r4, pc} diff --git a/asm/wallMaster2.s b/asm/wallMaster2.s index e426c3bd..4113319c 100644 --- a/asm/wallMaster2.s +++ b/asm/wallMaster2.s @@ -135,7 +135,7 @@ sub_0802CCE0: @ 0x0802CCE0 adds r0, #0x7c strh r5, [r0] adds r0, r4, #0 - bl UpdateSpriteOrderAndFlip + bl UpdateSpriteForCollisionLayer adds r0, r4, #0 movs r1, #0 bl InitializeAnimation diff --git a/asm/waterDrop.s b/asm/waterDrop.s index 19098e60..fe057fbd 100644 --- a/asm/waterDrop.s +++ b/asm/waterDrop.s @@ -52,7 +52,7 @@ sub_0802A250: @ 0x0802A250 movs r1, #0 bl InitializeAnimation adds r0, r5, #0 - bl UpdateSpriteOrderAndFlip + bl UpdateSpriteForCollisionLayer movs r0, #0x66 movs r1, #0 movs r2, #0 @@ -186,7 +186,7 @@ _0802A38C: _0802A392: strb r0, [r1] adds r0, r4, #0 - bl UpdateSpriteOrderAndFlip + bl UpdateSpriteForCollisionLayer pop {r4, r5, pc} thumb_func_start sub_0802A39C diff --git a/include/entity.h b/include/entity.h index 1b904c02..8a04bc42 100644 --- a/include/entity.h +++ b/include/entity.h @@ -72,7 +72,7 @@ typedef struct Entity { /* */ u8 alphaBlend : 2; // 4-8 /* */ u8 b2 : 2; //0x10 /* */ u8 b3 : 2; //0x40 - /* */ } PACKED spriteOrder; + /* */ } PACKED spriteRendering; /*0x1a*/ u8 palette; /*0x1b*/ struct { /* */ u8 b0 : 4; @@ -90,7 +90,7 @@ typedef struct Entity { /* */ u8 b0 : 3; // 1-4 /* */ u8 b1 : 3; // 8 /* */ u8 b2 : 2; //0x40 - /* */ } PACKED ticks; + /* */ } PACKED spritePriority; /*0x2a*/ u16 collisions; /*0x2c*/ union SplitWord x; /*0x30*/ union SplitWord y; @@ -163,7 +163,7 @@ typedef struct Entity { extern void InitializeAnimation(Entity*, u32); extern void InitAnimationForceUpdate(Entity*, u32); extern void UpdateAnimationSingleFrame(Entity*); -extern void UpdateSpriteOrderAndFlip(Entity*); +extern void UpdateSpriteForCollisionLayer(Entity*); extern void GetNextFrame(Entity*); extern u32 LoadExtraSpriteData(Entity*, SpriteLoadData*); extern void SetExtraSpriteFrame(Entity*, u32, u32); diff --git a/include/main.h b/include/main.h index 61c3f6ae..d9c8719c 100644 --- a/include/main.h +++ b/include/main.h @@ -11,7 +11,7 @@ typedef struct { // 0x03001000 u8 field_0x9; u8 field_0xa; u8 field_0xb; - u32 ticks; + u32 spritePriority; } MainStruct; extern s32 sub_08055F70(); diff --git a/src/archway.c b/src/archway.c index af72be33..ff6c7b14 100644 --- a/src/archway.c +++ b/src/archway.c @@ -18,10 +18,10 @@ void Archway(Entity *this) this->spriteSettings.raw = v1 | 1; this->frameIndex = this->entityType.parameter; this->collisionLayer = 2; - UpdateSpriteOrderAndFlip(this); + UpdateSpriteForCollisionLayer(this); v3 = CheckIsDungeon(); if (v3 != 0) { - this->ticks.b0 = (this->ticks.b0 & 0xf8) | 1; + this->spritePriority.b0 = (this->spritePriority.b0 & 0xf8) | 1; } } } \ No newline at end of file diff --git a/src/bell.c b/src/bell.c index 62f1a81b..072b0798 100644 --- a/src/bell.c +++ b/src/bell.c @@ -11,8 +11,8 @@ void sub_08097D90(Entity* ent) { ent->action = 1; ent->spriteSettings.b.draw = 1; ent->collisionLayer = 1; - ent->ticks.b0 = 0; - UpdateSpriteOrderAndFlip(ent); + ent->spritePriority.b0 = 0; + UpdateSpriteForCollisionLayer(ent); InitAnimationForceUpdate(ent, 0); } diff --git a/src/bladeBrothers.c b/src/bladeBrothers.c index 83ff32a2..68630e8e 100644 --- a/src/bladeBrothers.c +++ b/src/bladeBrothers.c @@ -176,7 +176,7 @@ void sub_08068BEC(Entity* this, u32 unused) { target = CreateFx(this, 0x44, 0); if (target) { - target->ticks.b0 = 1; + target->spritePriority.b0 = 1; PositionRelative(this, target, 0, -0x100000); PlaySFX(0xfa); } diff --git a/src/chestSpawner.c b/src/chestSpawner.c index 43cb1c1a..8af7769d 100644 --- a/src/chestSpawner.c +++ b/src/chestSpawner.c @@ -29,7 +29,7 @@ void sub_08083E20(Entity *this) { this->action = 3; this->spriteSettings.b.draw = 1; - this->spriteOrder.alphaBlend = 0; + this->spriteRendering.alphaBlend = 0; sub_080842D8(this); sub_08078828(this); } diff --git a/src/code_080A29BC.c b/src/code_080A29BC.c index 0e093ab3..7fa80ee2 100644 --- a/src/code_080A29BC.c +++ b/src/code_080A29BC.c @@ -63,7 +63,7 @@ Entity * sub_080A2A64(Entity *parent) pEVar1 = CreateFx(parent, 0x20, 0); if (pEVar1 != NULL) { - pEVar1->ticks.b0 = 7; + pEVar1->spritePriority.b0 = 7; } return pEVar1; } \ No newline at end of file diff --git a/src/giantLeaf.c b/src/giantLeaf.c index cf2ee5ec..9003f28b 100644 --- a/src/giantLeaf.c +++ b/src/giantLeaf.c @@ -13,8 +13,8 @@ void GiantLeaf(Entity* ent) { if (ent->action == 0) { ent->action = 1; ent->spriteSettings.b.draw = 1; - ent->spriteOrder.b3 = 3; - ent->ticks.b0 = 7; + ent->spriteRendering.b3 = 3; + ent->spritePriority.b0 = 7; ent->frameIndex = ent->entityType.form; sub_0808D618(ent); } diff --git a/src/greatFairy.c b/src/greatFairy.c index c2aa5e08..2f3276b9 100644 --- a/src/greatFairy.c +++ b/src/greatFairy.c @@ -160,9 +160,9 @@ void GreatFairy_WingsCallBehavior(Entity* this) { void GreatFairy_WingsInit(Entity* this) { GreatFairy_InitializeAnimation(this); - this->ticks.b0 = 5; + this->spritePriority.b0 = 5; this->spriteSettings.b.draw = 1; - this->spriteOrder.alphaBlend = 1; + this->spriteRendering.alphaBlend = 1; gScreen.controls.windowOutsideControl = 3904; gScreen.controls.mosaicSize = 2057; this->nonPlanarMovement = 1024; @@ -193,7 +193,7 @@ void GreatFairy_WakeCallBehavior(Entity* this) { void GreatFairy_WakeInit(Entity* this) { GreatFairy_InitializeAnimation(this); this->spriteSettings.b.draw = 1; - this->ticks.b0 = 6; + this->spritePriority.b0 = 6; } void GreatFairy_WakeUpdate(Entity* this) { @@ -252,7 +252,7 @@ void GreatFairy_MiniAffineCallBehavior(Entity* this) { void GreatFairy_MiniAffineInit(Entity* this) { GreatFairy_InitializeAnimation(this); - this->ticks.b0 = 6; + this->spritePriority.b0 = 6; this->spriteSettings.b.draw = 1; } @@ -266,7 +266,7 @@ void GreatFairy_MiniAffineInit2(Entity* this) { this->action = 2; this->actionDelay = 90; this->nonPlanarMovement = 4096; - this->spriteOrder.b0 = 3; + this->spriteRendering.b0 = 3; sub_0805EC9C(this, 256, 256, 0); } } @@ -295,7 +295,7 @@ void GreatFairy_DropletInit(Entity* this) { GreatFairy_InitializeAnimation(this); this->spriteSettings.b.draw = 1; this->height.HALF.HI = 0; - this->ticks.b0 = 5; + this->spritePriority.b0 = 5; PlaySFX(320); } @@ -314,7 +314,7 @@ void GreatFairy_RippleCallBehavior(Entity* this) { void GreatFairy_RippleInit(Entity* this) { GreatFairy_InitializeAnimation(this); this->spriteSettings.b.draw = 1; - this->ticks.b0 = 6; + this->spritePriority.b0 = 6; } void GreatFairy_RippleUpdate(Entity* this) { @@ -334,7 +334,7 @@ void GreatFairy_BigRippleInit(Entity* this) { GreatFairy_InitializeAnimation(this); this->actionDelay = 120; this->spriteSettings.b.draw = 1; - this->ticks.b0 = 5; + this->spritePriority.b0 = 5; PlaySFX(249); } @@ -362,7 +362,7 @@ void GreatFairy_EnergyCallBehavior(Entity* this) { void GreatFairy_EnergyInit(Entity* this) { GreatFairy_InitializeAnimation(this); this->spriteSettings.b.draw = 1; - this->ticks.b0 = 5; + this->spritePriority.b0 = 5; } void GreatFairy_EnergyUpdate(Entity* this) { @@ -389,8 +389,8 @@ void sub_08087150(Entity* this) { GreatFairy_InitializeAnimation(this); this->spriteSettings.b.draw = 1; this->spriteOrientation &= 63; - this->spriteOrder.b0 = 0; - this->ticks.b0 = 3; + this->spriteRendering.b0 = 0; + this->spritePriority.b0 = 3; this->nonPlanarMovement = 128; this->direction = 16; var = gUnk_0812079C[0]; @@ -474,7 +474,7 @@ void sub_08087294(Entity* this) { void sub_080872AC(Entity* this) { this->spriteSettings.b.draw = 1; this->spriteOrientation.flipY = 1; - this->spriteOrder.b0 = 0; + this->spriteRendering.b0 = 0; this->field_0x68 = (u16)(this->x).HALF.HI; this->field_0x6a = (u16)(this->y).HALF.HI; this->direction = (u8)Random() & 0x1F; diff --git a/src/hangingSeed.c b/src/hangingSeed.c index f823582a..7f0ba1dc 100644 --- a/src/hangingSeed.c +++ b/src/hangingSeed.c @@ -32,8 +32,8 @@ void sub_08021720(Entity *this) this->action = 1; this->spriteSettings.b.draw = 1; this->frameIndex = (this->entityType).form; - this->spriteOrder.b3 = 1; - this->ticks.b0 = 3; + this->spriteRendering.b3 = 1; + this->spritePriority.b0 = 3; } void nullsub_08(Entity* this){} \ No newline at end of file diff --git a/src/heartContainer.c b/src/heartContainer.c index 1c58034b..10714a8e 100644 --- a/src/heartContainer.c +++ b/src/heartContainer.c @@ -30,7 +30,7 @@ void sub_0808E6E4(Entity* this) { if (CheckFlags(this->field_0x86)) { this->action = 2; this->spriteSettings.b.draw = 1; - this->spriteOrder.b0 = 3; + this->spriteRendering.b0 = 3; sub_0808E714(this); } } diff --git a/src/item11.c b/src/item11.c index 1396dbe0..362ba771 100644 --- a/src/item11.c +++ b/src/item11.c @@ -90,7 +90,7 @@ void sub_08018DE8(Entity *this) this->attachedEntity->previousActionFlag = 4; this->flags = this->flags | 0x80; this->action = 2; - this->ticks.b0 = 2; + this->spritePriority.b0 = 2; this->attachedEntity->spriteSettings.b.draw = 1; sub_08018FA0(this); break; diff --git a/src/keese.c b/src/keese.c index 953f5b02..0cbc9acd 100644 --- a/src/keese.c +++ b/src/keese.c @@ -69,14 +69,14 @@ void sub_08021DF0(Entity *this) sub_0804A720(this); if ((this->entityType).form != 0) { - this->ticks.b1 = 1; + this->spritePriority.b1 = 1; this->height.HALF.HI = -0x10; } this->direction = Random() & 0x1f; this->filler[0] = 1; - this->ticks.b0 = 3; + this->spritePriority.b0 = 3; this->collisionLayer = 3; - UpdateSpriteOrderAndFlip(this); + UpdateSpriteForCollisionLayer(this); sub_08021EF0(this); } diff --git a/src/lakitu.c b/src/lakitu.c index d813da9e..9189c525 100644 --- a/src/lakitu.c +++ b/src/lakitu.c @@ -270,7 +270,7 @@ void sub_0803CA0C(Entity *this) { if (sub_08003FC4(this, 0x1800) == 0 && this->animIndex <= 19) { InitAnimationForceUpdate(this, this->animationState + 20); - this->ticks.b1 = 0; + this->spritePriority.b1 = 0; } UpdateAnimationSingleFrame(this); @@ -370,7 +370,7 @@ void sub_0803CBAC(Entity *this) { this->action = 7; this->spriteSettings.b.draw = 1; - this->ticks.b1 = 1; + this->spritePriority.b1 = 1; this->flags2 &= 0x7b; diff --git a/src/lightableSwitch.c b/src/lightableSwitch.c index a98a66ba..2368da04 100644 --- a/src/lightableSwitch.c +++ b/src/lightableSwitch.c @@ -38,7 +38,7 @@ void sub_0809EA34(Entity* this) { this->flags2 = 10; this->boundingBox = &gUnk_080FD150; sub_0809EAD8(this); - UpdateSpriteOrderAndFlip(this); + UpdateSpriteForCollisionLayer(this); sub_0809EABC(this); } @@ -110,7 +110,7 @@ void sub_0809EB80(Entity* this) { this->flags2 = 10; this->boundingBox = &gUnk_080FD150; sub_0809EAD8(this); - UpdateSpriteOrderAndFlip(this); + UpdateSpriteForCollisionLayer(this); if (CheckFlags(this->cutsceneBeh.HWORD) != 0) { this->action = 3; this->frameIndex = 2; diff --git a/src/mask.c b/src/mask.c index 0d8712bb..6dd866c9 100644 --- a/src/mask.c +++ b/src/mask.c @@ -103,7 +103,7 @@ void sub_08092A94(Entity *this) { this->height.HALF.HI -= 0x20; this->y.HALF.HI += 0x20; - this->spriteOrder.b3 = 2; + this->spriteRendering.b3 = 2; } // Probably falling down diff --git a/src/minishSizedEntrance.c b/src/minishSizedEntrance.c index 10ad0113..ca261d35 100644 --- a/src/minishSizedEntrance.c +++ b/src/minishSizedEntrance.c @@ -16,8 +16,8 @@ void MinishSizedEntrance(Entity* this) void sub_08090EC0(Entity *this) { this->action = 1; - this->spriteOrder.b3 = 3; - this->ticks.b0 = 7; + this->spriteRendering.b3 = 3; + this->spritePriority.b0 = 7; this->frameIndex = (this->entityType).parameter; if (CheckIsDungeon()) { this->frameIndex += 4; diff --git a/src/object49.c b/src/object49.c index c00af534..6a6d29b3 100644 --- a/src/object49.c +++ b/src/object49.c @@ -92,11 +92,11 @@ void sub_0808F1F8(Entity *this) { u8 bVar1; - this->spriteOrder.b0 = 3; + this->spriteRendering.b0 = 3; this->action++; - this->spriteOrder.b3 = this->parent->spriteOrder.b3; + this->spriteRendering.b3 = this->parent->spriteRendering.b3; this->spriteOrientation.flipY = this->parent->spriteOrientation.flipY; - this->ticks.b0 = 7; + this->spritePriority.b0 = 7; InitializeAnimation(this, 1); sub_0808F244(this); } \ No newline at end of file diff --git a/src/object86.c b/src/object86.c index 78800531..979ab47a 100644 --- a/src/object86.c +++ b/src/object86.c @@ -17,8 +17,8 @@ void Object86(Entity* this) { void sub_08099DD0(Entity* this) { this->collisionLayer = 1; - this->spriteOrder.b3 = 3; - this->ticks.b0 = 7; + this->spriteRendering.b3 = 3; + this->spritePriority.b0 = 7; this->previousActionFlag = 0; if (GetInventoryValue(0x46)) { this->action = 4; diff --git a/src/position.c b/src/position.c index 1c96046f..50aa4c6f 100644 --- a/src/position.c +++ b/src/position.c @@ -28,7 +28,7 @@ void PositionRelative(Entity* source, Entity* target, s32 offsetX, s32 offsetY) target->height = source->height; // ldr target->collisionLayer = source->collisionLayer; - UpdateSpriteOrderAndFlip(target); + UpdateSpriteForCollisionLayer(target); } void CopyPositionAndSpriteOffset(Entity *param_1,Entity *param_2) @@ -47,10 +47,10 @@ void sub_0806FA90(Entity *param_1,Entity *param_2, s32 offsetX, s32 offsetY) void ResolveEntityOnTop(Entity *param_1,Entity *param_2) { - param_2->ticks.b0 = gUnk_08114F78[param_1->ticks.b0]; + param_2->spritePriority.b0 = gUnk_08114F78[param_1->spritePriority.b0]; } void sub_0806FAD8(Entity *param_1,Entity *param_2) { - param_2->ticks.b0 = gUnk_08114F80[param_1->ticks.b0]; + param_2->spritePriority.b0 = gUnk_08114F80[param_1->spritePriority.b0]; } diff --git a/src/treeHidingPortal.c b/src/treeHidingPortal.c index 5c7ef846..8ea54861 100644 --- a/src/treeHidingPortal.c +++ b/src/treeHidingPortal.c @@ -29,7 +29,7 @@ void sub_0809E83C(Entity* this) { } this->action = 1; this->collisionLayer = 2; - UpdateSpriteOrderAndFlip(this); + UpdateSpriteForCollisionLayer(this); } void sub_0809E86C(Entity* this) { @@ -76,7 +76,7 @@ void sub_0809E918(Entity* this) { fx->x.HALF.HI += i[0]; fx->y.HALF.HI += i[1]; fx->collisionLayer = 2; - UpdateSpriteOrderAndFlip(fx); + UpdateSpriteForCollisionLayer(fx); } i += sizeof(s16); } diff --git a/src/windTribeFlag.c b/src/windTribeFlag.c index 1decf382..f9c82da8 100644 --- a/src/windTribeFlag.c +++ b/src/windTribeFlag.c @@ -13,7 +13,7 @@ void WindTribeFlag(Entity *this) else { this->spriteSettings.b.flipX = 1; } - UpdateSpriteOrderAndFlip(this); + UpdateSpriteForCollisionLayer(this); InitializeAnimation(this,0); } else { From 02cb79b6c4b1fac62d4b834a604997d12ba35696 Mon Sep 17 00:00:00 2001 From: theo3 Date: Fri, 10 Jul 2020 22:34:55 -0700 Subject: [PATCH 006/158] swordsmanNewsletter.c OK --- asm/object49.s | 157 -------------------------------------- asm/swordsmanNewsletter.s | 63 --------------- linker.ld | 2 +- src/object49.c | 53 +++++++++++++ src/swordsmanNewsletter.c | 31 ++++++++ 5 files changed, 85 insertions(+), 221 deletions(-) delete mode 100644 asm/swordsmanNewsletter.s create mode 100644 src/swordsmanNewsletter.c diff --git a/asm/object49.s b/asm/object49.s index 1fdfafa3..ec40a8a9 100644 --- a/asm/object49.s +++ b/asm/object49.s @@ -6,163 +6,6 @@ .text - thumb_func_start sub_0808F244 -sub_0808F244: @ 0x0808F244 - push {r4, lr} - adds r4, r0, #0 - ldr r3, [r4, #0x50] - ldrb r1, [r3, #0x18] - lsls r1, r1, #0x1e - lsrs r1, r1, #0x1e - ldrb r2, [r4, #0x18] - movs r0, #4 - rsbs r0, r0, #0 - ands r0, r2 - orrs r0, r1 - strb r0, [r4, #0x18] - ldrh r0, [r3, #0x32] - adds r0, #3 - movs r2, #0 - strh r0, [r4, #0x32] - ldr r1, [r4, #0x54] - adds r0, r1, #0 - adds r0, #0x62 - ldrb r0, [r0] - lsls r0, r0, #0x18 - asrs r0, r0, #0x18 - ldrh r1, [r1, #0x2e] - adds r0, r0, r1 - strh r0, [r4, #0x2e] - str r2, [r4, #0x34] - movs r0, #0x36 - ldrsh r1, [r3, r0] - movs r0, #0x80 - subs r0, r0, r1 - str r0, [r4, #0x74] - movs r0, #0x36 - ldrsh r1, [r3, r0] - movs r0, #0x80 - lsls r0, r0, #1 - subs r0, r0, r1 - str r0, [r4, #0x78] - adds r3, #0x7f - ldrb r0, [r3] - str r0, [r4, #0x70] - adds r0, r4, #0 - bl sub_0808F2B0 - ldr r0, [r4, #0x50] - adds r0, #0x6d - ldrb r1, [r0] - movs r0, #2 - ands r0, r1 - cmp r0, #0 - beq _0808F2AC - bl DeleteThisEntity -_0808F2AC: - pop {r4, pc} - .align 2, 0 - - thumb_func_start sub_0808F2B0 -sub_0808F2B0: @ 0x0808F2B0 - push {lr} - ldr r1, [r0, #0x74] - ldr r2, [r0, #0x78] - ldr r3, [r0, #0x70] - bl sub_0805EC9C - pop {pc} - .align 2, 0 - - thumb_func_start sub_0808F2C0 -sub_0808F2C0: @ 0x0808F2C0 - push {r4, r5, r6, lr} - adds r5, r0, #0 - ldrb r0, [r5, #0xc] - adds r6, r0, #0 - cmp r6, #0 - bne _0808F322 - adds r0, #1 - strb r0, [r5, #0xc] - ldr r4, [r5, #0x50] - ldrb r2, [r4, #0x19] - lsrs r2, r2, #6 - lsls r2, r2, #6 - ldrb r3, [r5, #0x19] - movs r1, #0x3f - adds r0, r1, #0 - ands r0, r3 - orrs r0, r2 - strb r0, [r5, #0x19] - ldrb r0, [r4, #0x1b] - lsrs r0, r0, #6 - lsls r0, r0, #6 - ldrb r2, [r5, #0x1b] - ands r1, r2 - orrs r1, r0 - strb r1, [r5, #0x1b] - ldrb r1, [r5, #0x18] - movs r0, #4 - rsbs r0, r0, #0 - ands r0, r1 - movs r1, #1 - orrs r0, r1 - strb r0, [r5, #0x18] - adds r2, r5, #0 - adds r2, #0x29 - ldrb r0, [r2] - movs r1, #7 - orrs r0, r1 - strb r0, [r2] - str r6, [r5, #0x34] - ldr r1, [r5, #0x50] - ldrh r0, [r1, #0x32] - adds r0, #3 - strh r0, [r5, #0x32] - ldrh r0, [r1, #0x2e] - strh r0, [r5, #0x2e] - adds r0, r5, #0 - movs r1, #3 - bl InitializeAnimation -_0808F322: - ldr r2, [r5, #0x50] - movs r1, #0x36 - ldrsh r0, [r2, r1] - cmp r0, #0 - bne _0808F334 - ldr r0, [r2, #0x74] - str r0, [r5, #0x74] - ldr r0, [r2, #0x78] - b _0808F34C -_0808F334: - movs r0, #0x36 - ldrsh r1, [r2, r0] - movs r0, #0x80 - lsls r0, r0, #2 - subs r0, r0, r1 - str r0, [r5, #0x74] - movs r0, #0x36 - ldrsh r1, [r2, r0] - lsls r1, r1, #1 - movs r0, #0xc0 - lsls r0, r0, #2 - subs r0, r0, r1 -_0808F34C: - str r0, [r5, #0x78] - movs r0, #0 - str r0, [r5, #0x70] - adds r0, r5, #0 - bl sub_0808F2B0 - ldr r1, [r5, #0x78] - adds r0, r5, #0 - movs r2, #8 - movs r3, #2 - bl sub_0806FCF4 - ldrb r0, [r5, #0xc] - cmp r0, #0xff - bne _0808F36E - bl DeleteThisEntity -_0808F36E: - pop {r4, r5, r6, pc} - thumb_func_start sub_0808F370 sub_0808F370: @ 0x0808F370 push {r4, lr} diff --git a/asm/swordsmanNewsletter.s b/asm/swordsmanNewsletter.s deleted file mode 100644 index 3ead564f..00000000 --- a/asm/swordsmanNewsletter.s +++ /dev/null @@ -1,63 +0,0 @@ - .include "asm/macros.inc" - - .include "constants/constants.inc" - - .syntax unified - - .text - - - thumb_func_start SwordsmanNewsletter -SwordsmanNewsletter: @ 0x080933C0 - push {lr} - ldr r2, _080933D4 @ =gUnk_081228B0 - ldrb r1, [r0, #0xc] - lsls r1, r1, #2 - adds r1, r1, r2 - ldr r1, [r1] - bl _call_via_r1 - pop {pc} - .align 2, 0 -_080933D4: .4byte gUnk_081228B0 - - thumb_func_start sub_080933D8 -sub_080933D8: @ 0x080933D8 - push {r4, lr} - adds r4, r0, #0 - movs r0, #1 - strb r0, [r4, #0xc] - ldrb r0, [r4, #0xa] - strb r0, [r4, #0x1e] - adds r0, r4, #0 - bl UpdateSpriteForCollisionLayer - ldr r0, _080933F8 @ =gUnk_081228A8 - str r0, [r4, #0x48] - adds r0, r4, #0 - bl sub_080787B4 - pop {r4, pc} - .align 2, 0 -_080933F8: .4byte gUnk_081228A8 - - thumb_func_start sub_080933FC -sub_080933FC: @ 0x080933FC - push {lr} - adds r2, r0, #0 - adds r1, r2, #0 - adds r1, #0x39 - movs r0, #0 - ldrsb r0, [r1, r0] - cmp r0, #0 - beq _08093420 - movs r0, #0 - strb r0, [r1] - ldr r1, _08093424 @ =gUnk_081228B8 - ldrb r0, [r2, #0xa] - lsls r0, r0, #1 - adds r0, r0, r1 - ldrh r0, [r0] - adds r1, r2, #0 - bl TextboxNoOverlap -_08093420: - pop {pc} - .align 2, 0 -_08093424: .4byte gUnk_081228B8 diff --git a/linker.ld b/linker.ld index db7c5346..08978b8b 100644 --- a/linker.ld +++ b/linker.ld @@ -758,7 +758,7 @@ SECTIONS { asm/houseDoorInterior.o(.text); asm/whirlwind.o(.text); asm/objectBlockingStairs.o(.text); - asm/swordsmanNewsletter.o(.text); + src/swordsmanNewsletter.o(.text); asm/object61.o(.text); asm/giantTwig.o(.text); asm/object63.o(.text); diff --git a/src/object49.c b/src/object49.c index 6a6d29b3..68527a76 100644 --- a/src/object49.c +++ b/src/object49.c @@ -8,11 +8,13 @@ void sub_0808F14C(Entity*); extern void PlaySFX(u32); extern void sub_0806FCF4(Entity*, u32, u32, u32); extern void sub_0808F244(Entity*); +extern void sub_0805EC9C(Entity*, u32, u32, u32); extern void (*const gUnk_08121E5C[])(Entity*); extern void (*const gUnk_08121E88[])(Entity*); extern void (*const gUnk_08121E98[])(Entity*); + void Object49(Entity* this) { gUnk_08121E5C[this->entityType.form](this); } @@ -99,4 +101,55 @@ void sub_0808F1F8(Entity *this) this->spritePriority.b0 = 7; InitializeAnimation(this, 1); sub_0808F244(this); +} + +void sub_0808F244(Entity *this) +{ + + this->spriteSettings.b.draw = this->parent->spriteSettings.b.draw; + this->y.HALF.HI = this->parent->y.HALF.HI + 3; + this->x.HALF.HI = (*(s8*)&this->attachedEntity->spriteOffsetX + this->attachedEntity->x.HALF.HI); + this->height.WORD = 0; + *(u32 *)&this->field_0x74 = 0x80 - this->parent->height.HALF.HI; + *(u32 *)&this->field_0x78 = 0x100 - this->parent->height.HALF.HI; + *(u32 *)&this->field_0x70 = *((u8 *)&this->parent->field_0x7c + 3); + sub_0808F2B0(this); + if ((this->parent->field_0x6d & 2) != 0) { + DeleteThisEntity(); + } +} + +void sub_0808F2B0(Entity *this) +{ + sub_0805EC9C(this, *(u32 *)&this->field_0x74, *(u32 *)&this->field_0x78, this->field_0x70); +} + +void sub_0808F2C0(Entity *this) +{ + if (this->action == 0) { + this->action++; + this->spriteRendering.b3 = this->parent->spriteRendering.b3; + this->spriteOrientation.flipY = this->parent->spriteOrientation.flipY; + this->spriteSettings.b.draw = 1; + this->spritePriority.b0 = 7; + this->height.WORD = 0; + + this->y.HALF.HI = this->parent->y.HALF.HI + 3; + this->x.HALF.HI = this->parent->x.HALF.HI; + InitializeAnimation(this,3); + } + if (this->parent->height.HALF.HI == 0) { + *(u32 *)&this->field_0x74 = *(u32 *)&this->parent->field_0x74; + *(u32 *)&this->field_0x78 = *(u32 *)&this->parent->field_0x78; + } + else { + *(u32 *)&this->field_0x74 = 0x200 - this->parent->height.HALF.HI; + *(u32 *)&this->field_0x78 = this->parent->height.HALF.HI * -2 + 0x300; + } + *(u32 *)&this->field_0x70 = 0; + sub_0808F2B0(this); + sub_0806FCF4(this,*(u32 *)&this->field_0x78,8,2); + if (this->action == 0xff) { + DeleteThisEntity(); + } } \ No newline at end of file diff --git a/src/swordsmanNewsletter.c b/src/swordsmanNewsletter.c new file mode 100644 index 00000000..414ac180 --- /dev/null +++ b/src/swordsmanNewsletter.c @@ -0,0 +1,31 @@ +#include "global.h" +#include "entity.h" +#include "textbox.h" + +extern void sub_080787B4(Entity*); + +extern void (*const gUnk_081228B0[])(Entity*); + +extern BoundingBox gUnk_081228A8; +extern u16 gUnk_081228B8[]; + +void SwordsmanNewsletter(Entity* this) { + gUnk_081228B0[this->action](this); +} + +void sub_080933D8(Entity *this) +{ + this->action = 1; + this->frameIndex = this->entityType.form; + UpdateSpriteForCollisionLayer(this); + this->boundingBox = &gUnk_081228A8; + sub_080787B4(this); +} + +void sub_080933FC(Entity *this) +{ + if (this->interactType != 0) { + this->interactType = 0; + TextboxNoOverlap(gUnk_081228B8[this->entityType.form], this); + } +} \ No newline at end of file From 9753a51b924dc60697d74dd116da5e169dbc05a7 Mon Sep 17 00:00:00 2001 From: theo3 Date: Sat, 11 Jul 2020 01:59:40 -0700 Subject: [PATCH 007/158] object9E.c OK --- asm/fan.s | 14 ------- asm/object9E.s | 106 ------------------------------------------------- linker.ld | 3 +- src/fan.c | 9 +++++ src/object9E.c | 45 +++++++++++++++++++++ 5 files changed, 56 insertions(+), 121 deletions(-) delete mode 100644 asm/object9E.s create mode 100644 src/fan.c create mode 100644 src/object9E.c diff --git a/asm/fan.s b/asm/fan.s index bd87bb89..0ccbd9d2 100644 --- a/asm/fan.s +++ b/asm/fan.s @@ -6,20 +6,6 @@ .text - - thumb_func_start Fan -Fan: @ 0x0809ED18 - push {lr} - ldr r2, _0809ED2C @ =gUnk_081243D4 - ldrb r1, [r0, #0xc] - lsls r1, r1, #2 - adds r1, r1, r2 - ldr r1, [r1] - bl _call_via_r1 - pop {pc} - .align 2, 0 -_0809ED2C: .4byte gUnk_081243D4 - thumb_func_start sub_0809ED30 sub_0809ED30: @ 0x0809ED30 push {r4, lr} diff --git a/asm/object9E.s b/asm/object9E.s deleted file mode 100644 index 8bffc8e2..00000000 --- a/asm/object9E.s +++ /dev/null @@ -1,106 +0,0 @@ - .include "asm/macros.inc" - - .include "constants/constants.inc" - - .syntax unified - - .text - - - thumb_func_start Object9E -Object9E: @ 0x0809EC4C - push {r4, r5, r6, lr} - adds r6, r0, #0 - ldrb r3, [r6, #0xc] - cmp r3, #0 - bne _0809ED14 - movs r4, #1 - strb r4, [r6, #0xc] - adds r2, r6, #0 - adds r2, #0x29 - ldrb r1, [r2] - movs r0, #8 - rsbs r0, r0, #0 - ands r0, r1 - movs r1, #6 - orrs r0, r1 - strb r0, [r2] - ldrb r0, [r6, #0xa] - cmp r0, #0 - bne _0809ED04 - ldrb r0, [r6, #0x10] - movs r1, #0x80 - orrs r0, r1 - strb r0, [r6, #0x10] - strb r4, [r6, #0x1e] - adds r5, r6, #0 - adds r5, #0x38 - strb r4, [r5] - adds r1, r6, #0 - adds r1, #0x3c - movs r0, #7 - strb r0, [r1] - adds r1, #4 - movs r0, #0x48 - strb r0, [r1] - subs r1, #1 - movs r0, #0x7a - strb r0, [r1] - adds r0, r6, #0 - adds r0, #0x3b - strb r4, [r0] - ldr r0, _0809ECF4 @ =gUnk_080FD168 - str r0, [r6, #0x48] - movs r0, #0x2e - ldrsh r4, [r6, r0] - ldr r1, _0809ECF8 @ =gRoomControls - ldrh r0, [r1, #6] - subs r4, r4, r0 - asrs r4, r4, #4 - movs r2, #0x3f - ands r4, r2 - movs r3, #0x32 - ldrsh r0, [r6, r3] - ldrh r1, [r1, #8] - subs r0, r0, r1 - asrs r0, r0, #4 - ands r0, r2 - lsls r0, r0, #6 - orrs r4, r0 - ldr r0, _0809ECFC @ =0x00004066 - subs r1, r4, #1 - ldrb r2, [r5] - bl SetTile - ldr r0, _0809ED00 @ =0x00004065 - ldrb r2, [r5] - adds r1, r4, #0 - bl SetTile - adds r0, r6, #0 - bl UpdateSpriteForCollisionLayer - movs r0, #0x9e - movs r1, #1 - movs r2, #0 - bl CreateObject - adds r1, r0, #0 - cmp r1, #0 - beq _0809ED14 - str r1, [r6, #0x54] - adds r0, r6, #0 - bl CopyPosition - b _0809ED14 - .align 2, 0 -_0809ECF4: .4byte gUnk_080FD168 -_0809ECF8: .4byte gRoomControls -_0809ECFC: .4byte 0x00004066 -_0809ED00: .4byte 0x00004065 -_0809ED04: - strb r3, [r6, #0x1e] - adds r1, r6, #0 - adds r1, #0x38 - movs r0, #2 - strb r0, [r1] - adds r0, r6, #0 - bl UpdateSpriteForCollisionLayer -_0809ED14: - pop {r4, r5, r6, pc} - .align 2, 0 diff --git a/linker.ld b/linker.ld index 08978b8b..af8b84aa 100644 --- a/linker.ld +++ b/linker.ld @@ -819,7 +819,8 @@ SECTIONS { src/treeHidingPortal.o(.text); asm/treeHidingPortal.o(.text); src/lightableSwitch.o(.text); - asm/object9E.o(.text); + src/object9E.o(.text); + src/fan.o(.text); asm/fan.o(.text); asm/objectA0.o(.text); asm/palaceArchway.o(.text); diff --git a/src/fan.c b/src/fan.c new file mode 100644 index 00000000..93910dc7 --- /dev/null +++ b/src/fan.c @@ -0,0 +1,9 @@ +#include "global.h" +#include "entity.h" + +extern void (*const gUnk_081243D4[])(Entity*); + +void Fan(Entity *this) +{ + gUnk_081243D4[this->action](this); +} \ No newline at end of file diff --git a/src/object9E.c b/src/object9E.c new file mode 100644 index 00000000..4c770e82 --- /dev/null +++ b/src/object9E.c @@ -0,0 +1,45 @@ +#include "global.h" +#include "entity.h" +#include "room.h" + +extern BoundingBox gUnk_080FD168; + +extern void SetTile(u32, u32, u32); +extern void CopyPosition(Entity*, Entity*); + +void Object9E(Entity *this) +{ + Entity *ent; + u32 tilePos; + u8 *layer; + + if (this->action == 0) { + this->action = 1; + this->spritePriority.b0 = 6; + if ((this->entityType).form == 0) { + this->flags = this->flags | 0x80; + this->frameIndex = 1; + layer = &this->collisionLayer; + *layer = 1; + this->field_0x3c = 7; + this->field_0x40 = 0x48; + this->damageType = 0x7a; + this->flags2 = 1; + this->boundingBox = &gUnk_080FD168; + tilePos = COORD_TO_TILE(this); + SetTile(0x4066, tilePos - 1, *layer); + SetTile(0x4065, tilePos, *layer); + UpdateSpriteForCollisionLayer(this); + ent = CreateObject(0x9e,1,0); + if (ent != NULL) { + this->attachedEntity = ent; + CopyPosition(this, ent); + } + } + else { + this->frameIndex = 0; + this->collisionLayer = 2; + UpdateSpriteForCollisionLayer(this); + } + } +} \ No newline at end of file From cdeae36d0979cb025262d6d85e45f7bf7b9bbae5 Mon Sep 17 00:00:00 2001 From: theo3 Date: Sat, 11 Jul 2020 22:13:00 -0700 Subject: [PATCH 008/158] smith.c OK --- asm/beedle.s | 2 +- asm/brocco.s | 2 +- asm/businessScrub.s | 2 +- asm/code_0806ED78.s | 6 +- asm/dog.s | 4 +- asm/fan.s | 151 ----------- asm/kid.s | 2 +- asm/mama.s | 2 +- asm/manager1.s | 134 ---------- asm/manager2.s | 24 -- asm/non_matching/smith/smith.inc | 119 +++++++++ asm/pina.s | 2 +- asm/postman.s | 2 +- asm/rem.s | 4 +- asm/smith.s | 425 ------------------------------- asm/sturgeon.s | 4 +- include/screen.h | 5 +- linker.ld | 4 +- src/fan.c | 77 ++++++ src/manager1.c | 64 +++++ src/manager2.c | 18 ++ src/smith.c | 225 ++++++++++++++++ src/zelda.c | 4 +- 23 files changed, 528 insertions(+), 754 deletions(-) create mode 100644 asm/non_matching/smith/smith.inc delete mode 100644 asm/smith.s create mode 100644 src/manager1.c create mode 100644 src/manager2.c create mode 100644 src/smith.c diff --git a/asm/beedle.s b/asm/beedle.s index ce6dcb63..7881f69a 100644 --- a/asm/beedle.s +++ b/asm/beedle.s @@ -147,7 +147,7 @@ sub_08063390: @ 0x08063390 movs r0, #1 strb r0, [r4, #0xc] adds r0, r4, #0 - bl sub_0806EDC4 + bl GetAnimationState adds r1, r0, #0 adds r0, r4, #0 bl InitializeAnimation diff --git a/asm/brocco.s b/asm/brocco.s index 29a04a7c..34dc7917 100644 --- a/asm/brocco.s +++ b/asm/brocco.s @@ -109,7 +109,7 @@ _080635D0: movs r0, #2 strb r0, [r4, #0xc] adds r0, r4, #0 - bl sub_0806EDC4 + bl GetAnimationState adds r1, r0, #0 adds r1, #4 adds r0, r4, #0 diff --git a/asm/businessScrub.s b/asm/businessScrub.s index 097ed9f3..1a681b03 100644 --- a/asm/businessScrub.s +++ b/asm/businessScrub.s @@ -805,7 +805,7 @@ _08028F2C: adds r0, r5, #0 bl sub_0804AA1C adds r0, r5, #0 - bl sub_0806EDC4 + bl GetAnimationState lsls r0, r0, #3 strb r0, [r5, #0x15] adds r0, r5, #0 diff --git a/asm/code_0806ED78.s b/asm/code_0806ED78.s index 6b986255..736b901a 100644 --- a/asm/code_0806ED78.s +++ b/asm/code_0806ED78.s @@ -40,7 +40,7 @@ sub_0806ED9C: @ 0x0806ED9C cmp r0, #0 beq _0806EDBC adds r0, r5, #0 - bl sub_0806EDC4 + bl GetAnimationState adds r6, r0, #0 _0806EDBC: adds r0, r6, #0 @@ -48,8 +48,8 @@ _0806EDBC: .align 2, 0 _0806EDC0: .4byte gLinkEntity - thumb_func_start sub_0806EDC4 -sub_0806EDC4: @ 0x0806EDC4 + thumb_func_start GetAnimationState +GetAnimationState: @ 0x0806EDC4 push {lr} ldr r1, _0806EDD4 @ =gLinkEntity bl GetFacingDirection diff --git a/asm/dog.s b/asm/dog.s index 17558ef6..7afc6af2 100644 --- a/asm/dog.s +++ b/asm/dog.s @@ -171,7 +171,7 @@ sub_08069C40: @ 0x08069C40 _08069C68: .4byte gLinkState _08069C6C: adds r0, r4, #0 - bl sub_0806EDC4 + bl GetAnimationState strb r0, [r4, #0x14] adds r0, r4, #0 bl sub_08069D00 @@ -426,7 +426,7 @@ sub_08069E44: @ 0x08069E44 sub_08069E50: @ 0x08069E50 push {r4, r5, r6, r7, lr} adds r4, r0, #0 - bl sub_0806EDC4 + bl GetAnimationState strb r0, [r4, #0x14] adds r5, r4, #0 adds r5, #0x6b diff --git a/asm/fan.s b/asm/fan.s index 0ccbd9d2..a3db90a6 100644 --- a/asm/fan.s +++ b/asm/fan.s @@ -6,157 +6,6 @@ .text - thumb_func_start sub_0809ED30 -sub_0809ED30: @ 0x0809ED30 - push {r4, lr} - adds r4, r0, #0 - ldrb r0, [r4, #0xa] - movs r1, #2 - eors r0, r1 - lsls r0, r0, #3 - strb r0, [r4, #0x15] - adds r0, r4, #0 - bl sub_0809EE34 - adds r0, r4, #0 - bl sub_0809EFB0 - ldrb r1, [r4, #0xa] - adds r0, r4, #0 - bl InitializeAnimation - pop {r4, pc} - - thumb_func_start sub_0809ED54 -sub_0809ED54: @ 0x0809ED54 - push {r4, lr} - adds r4, r0, #0 - adds r1, r4, #0 - adds r1, #0x84 - ldrh r0, [r1] - cmp r0, #0 - beq _0809ED6A - bl CheckFlags - cmp r0, #0 - beq _0809ED86 -_0809ED6A: - ldrb r0, [r4, #0xb] - cmp r0, #1 - bne _0809ED80 - adds r1, r4, #0 - adds r1, #0x74 - ldrh r0, [r1] - subs r0, #1 - strh r0, [r1] - lsls r0, r0, #0x10 - cmp r0, #0 - bne _0809ED86 -_0809ED80: - adds r0, r4, #0 - bl sub_0809EE08 -_0809ED86: - pop {r4, pc} - - thumb_func_start sub_0809ED88 -sub_0809ED88: @ 0x0809ED88 - push {r4, lr} - adds r4, r0, #0 - bl sub_0809F08C - adds r0, r4, #0 - bl sub_0809EE44 - adds r0, r4, #0 - adds r0, #0x86 - ldrh r2, [r0] - cmp r2, #0 - beq _0809EDC6 - adds r1, r4, #0 - adds r1, #0x84 - ldrh r0, [r1] - cmp r0, r2 - bne _0809EDB4 - bl CheckFlags - cmp r0, #0 - bne _0809EDE2 - b _0809EDBE -_0809EDB4: - ldrh r0, [r1] - bl CheckFlags - cmp r0, #0 - beq _0809EDE2 -_0809EDBE: - adds r0, r4, #0 - bl sub_0809EE24 - b _0809EDE2 -_0809EDC6: - ldrb r0, [r4, #0xb] - cmp r0, #1 - bne _0809EDE2 - adds r1, r4, #0 - adds r1, #0x74 - ldrh r0, [r1] - subs r0, #1 - strh r0, [r1] - lsls r0, r0, #0x10 - cmp r0, #0 - bne _0809EDE2 - adds r0, r4, #0 - bl sub_0809EE24 -_0809EDE2: - pop {r4, pc} - - thumb_func_start sub_0809EDE4 -sub_0809EDE4: @ 0x0809EDE4 - push {r4, lr} - adds r4, r0, #0 - bl sub_0809F08C - adds r0, r4, #0 - bl sub_0809EE44 - adds r0, r4, #0 - adds r0, #0x5a - ldrb r1, [r0] - movs r0, #0x80 - ands r0, r1 - cmp r0, #0 - beq _0809EE06 - adds r0, r4, #0 - bl sub_0809EE34 -_0809EE06: - pop {r4, pc} - - thumb_func_start sub_0809EE08 -sub_0809EE08: @ 0x0809EE08 - push {lr} - movs r1, #2 - strb r1, [r0, #0xc] - adds r1, r0, #0 - adds r1, #0x7f - ldrb r1, [r1] - lsls r1, r1, #2 - adds r2, r0, #0 - adds r2, #0x74 - strh r1, [r2] - ldrb r1, [r0, #0xa] - bl InitializeAnimation - pop {pc} - - thumb_func_start sub_0809EE24 -sub_0809EE24: @ 0x0809EE24 - push {lr} - movs r1, #3 - strb r1, [r0, #0xc] - ldrb r1, [r0, #0xa] - adds r1, #4 - bl InitializeAnimation - pop {pc} - - thumb_func_start sub_0809EE34 -sub_0809EE34: @ 0x0809EE34 - movs r1, #1 - strb r1, [r0, #0xc] - ldrb r1, [r0, #0xe] - lsls r1, r1, #2 - adds r0, #0x74 - strh r1, [r0] - bx lr - .align 2, 0 - thumb_func_start sub_0809EE44 sub_0809EE44: @ 0x0809EE44 push {r4, r5, r6, r7, lr} diff --git a/asm/kid.s b/asm/kid.s index 8463cba2..3aa4ff7d 100644 --- a/asm/kid.s +++ b/asm/kid.s @@ -76,7 +76,7 @@ sub_08062130: @ 0x08062130 movs r0, #2 strb r0, [r4, #0xc] adds r0, r4, #0 - bl sub_0806EDC4 + bl GetAnimationState adds r1, r0, #0 adds r0, r4, #0 bl InitAnimationForceUpdate diff --git a/asm/mama.s b/asm/mama.s index c1db8a76..e23cb932 100644 --- a/asm/mama.s +++ b/asm/mama.s @@ -154,7 +154,7 @@ sub_0806C4A8: @ 0x0806C4A8 cmp r0, #0 beq _0806C4D8 adds r0, r4, #0 - bl sub_0806EDC4 + bl GetAnimationState adds r1, r0, #0 cmp r1, #0 bge _0806C4CC diff --git a/asm/manager1.s b/asm/manager1.s index 500a5767..435e67ad 100644 --- a/asm/manager1.s +++ b/asm/manager1.s @@ -6,140 +6,6 @@ .text - thumb_func_start sub_08057064 -sub_08057064: @ 0x08057064 - push {r4, r5, lr} - adds r4, r0, #0 - ldr r1, _080570AC @ =gUnk_08107C5C - ldrb r0, [r4, #0xc] - lsls r0, r0, #2 - adds r0, r0, r1 - ldr r1, [r0] - adds r0, r4, #0 - bl _call_via_r1 - ldr r1, _080570B0 @ =gUnk_08107C48 - adds r5, r4, #0 - adds r5, #0x21 - ldrb r0, [r5] - lsls r0, r0, #2 - adds r0, r0, r1 - ldr r1, [r0] - adds r0, r4, #0 - bl _call_via_r1 - ldr r1, _080570B4 @ =gUnk_08107C40 - ldrb r0, [r5] - adds r0, r0, r1 - ldrb r1, [r0] - cmp r1, #0 - beq _080570AA - adds r2, r4, #0 - adds r2, #0x20 - ldrb r0, [r2] - cmp r0, r1 - beq _080570AA - strb r1, [r2] - adds r0, r1, #0 - bl sub_0801D7EC -_080570AA: - pop {r4, r5, pc} - .align 2, 0 -_080570AC: .4byte gUnk_08107C5C -_080570B0: .4byte gUnk_08107C48 -_080570B4: .4byte gUnk_08107C40 - - thumb_func_start sub_080570B8 -sub_080570B8: @ 0x080570B8 - push {r4, lr} - adds r4, r0, #0 - adds r0, #0x20 - ldrb r0, [r0] - bl sub_0801D7EC - movs r0, #0 - str r0, [r4, #0x34] - adds r1, r4, #0 - adds r1, #0x21 - ldrb r0, [r1] - cmp r0, #3 - bne _080570E0 - ldr r1, _080570DC @ =gScreen - movs r0, #1 - strh r0, [r1, #0x32] - b _080570F0 - .align 2, 0 -_080570DC: .4byte gScreen -_080570E0: - ldr r0, _080570F4 @ =gUnk_08107C48 - ldrb r1, [r1] - lsls r1, r1, #2 - adds r1, r1, r0 - ldr r1, [r1] - adds r0, r4, #0 - bl _call_via_r1 -_080570F0: - pop {r4, pc} - .align 2, 0 -_080570F4: .4byte gUnk_08107C48 - - thumb_func_start sub_080570F8 -sub_080570F8: @ 0x080570F8 - push {lr} - ldr r1, _08057110 @ =gScreen - ldrh r2, [r1] - ldr r0, _08057114 @ =0x0000F7FF - ands r0, r2 - movs r2, #0 - strh r0, [r1] - adds r1, #0x66 - strh r2, [r1] - bl sub_08056250 - pop {pc} - .align 2, 0 -_08057110: .4byte gScreen -_08057114: .4byte 0x0000F7FF - - thumb_func_start sub_08057118 -sub_08057118: @ 0x08057118 - push {r4, lr} - adds r3, r0, #0 - movs r1, #0 - strb r1, [r3, #0xe] - adds r0, #0x20 - strb r1, [r0] - adds r0, #1 - strb r1, [r0] - adds r0, #1 - strb r1, [r0] - movs r0, #1 - strb r0, [r3, #0xc] - ldr r1, _08057160 @ =gScreen - ldr r0, _08057164 @ =0x00001E04 - strh r0, [r1, #0x2c] - ldrh r0, [r1] - movs r4, #0x80 - lsls r4, r4, #4 - adds r2, r4, #0 - orrs r0, r2 - strh r0, [r1] - adds r2, r1, #0 - adds r2, #0x66 - ldr r0, _08057168 @ =0x00003648 - strh r0, [r2] - adds r1, #0x68 - movs r0, #0x80 - lsls r0, r0, #5 - strh r0, [r1] - ldr r1, _0805716C @ =sub_080570B8 - ldr r2, _08057170 @ =sub_080570F8 - adds r0, r3, #0 - bl sub_08052D74 - pop {r4, pc} - .align 2, 0 -_08057160: .4byte gScreen -_08057164: .4byte 0x00001E04 -_08057168: .4byte 0x00003648 -_0805716C: .4byte sub_080570B8 -_08057170: .4byte sub_080570F8 - thumb_func_start sub_08057174 sub_08057174: @ 0x08057174 push {r4, r5, r6, r7, lr} diff --git a/asm/manager2.s b/asm/manager2.s index 0fc1f04d..71e90095 100644 --- a/asm/manager2.s +++ b/asm/manager2.s @@ -6,30 +6,6 @@ .text - thumb_func_start sub_0805751C -sub_0805751C: @ 0x0805751C - push {r4, lr} - adds r4, r0, #0 - ldrb r1, [r4, #0xc] - cmp r1, #0 - bne _0805753A - movs r0, #1 - strb r0, [r4, #0xc] - ldr r0, _08057544 @ =gScreen - strh r1, [r0, #0x32] - strh r1, [r0, #0x1a] - ldr r1, _08057548 @ =sub_080576A0 - adds r0, r4, #0 - movs r2, #0 - bl sub_08052D74 -_0805753A: - adds r0, r4, #0 - bl sub_0805754C - pop {r4, pc} - .align 2, 0 -_08057544: .4byte gScreen -_08057548: .4byte sub_080576A0 - thumb_func_start sub_0805754C sub_0805754C: @ 0x0805754C push {r4, r5, r6, lr} diff --git a/asm/non_matching/smith/smith.inc b/asm/non_matching/smith/smith.inc new file mode 100644 index 00000000..27a834f7 --- /dev/null +++ b/asm/non_matching/smith/smith.inc @@ -0,0 +1,119 @@ + .include "asm/macros.inc" + + .include "constants/constants.inc" + + .syntax unified + + .text + + push {r4, r5, r6, lr} + adds r4, r0, #0 + ldrb r1, [r4, #0x10] + movs r0, #2 + ands r0, r1 + cmp r0, #0 + beq _08066028 + adds r2, r4, #0 + adds r2, #0x39 + movs r0, #0 + ldrsb r0, [r2, r0] + adds r6, r4, #0 + adds r6, #0x58 + cmp r0, #2 + bne _0806600C + movs r0, #0 + movs r1, #4 + strb r1, [r4, #0xc] + strb r0, [r2] + ldrb r0, [r6] + movs r5, #0 + cmp r0, #0xc + bne _08065FF0 + movs r5, #8 +_08065FF0: + ldr r1, _08066020 @ =gLinkEntity + adds r0, r4, #0 + bl GetFacingDirection + bl sub_0806F5A4 + adds r5, r5, r0 + adds r0, r4, #0 + adds r1, r5, #0 + bl InitAnimationForceUpdate + adds r0, r4, #0 + bl sub_0806F118 +_0806600C: + ldr r0, _08066024 @ =gUnk_0811036C + ldrb r1, [r4, #0xc] + lsls r1, r1, #2 + adds r1, r1, r0 + ldr r1, [r1] + adds r0, r4, #0 + bl _call_via_r1 + b _08066042 + .align 2, 0 +_08066020: .4byte gLinkEntity +_08066024: .4byte gUnk_0811036C +_08066028: + ldr r0, _08066058 @ =gUnk_08110360 + ldrb r1, [r4, #0xc] + lsls r1, r1, #2 + adds r1, r1, r0 + ldr r1, [r1] + adds r0, r4, #0 + bl _call_via_r1 + adds r0, r4, #0 + bl sub_0806ED78 + adds r6, r4, #0 + adds r6, #0x58 +_08066042: + ldrb r0, [r6] + cmp r0, #0xc + bne _0806605C + adds r2, r4, #0 + adds r2, #0x29 + ldrb r1, [r2] + movs r0, #0x39 + rsbs r0, r0, #0 + ands r0, r1 + strb r0, [r2] + b _0806606E + .align 2, 0 +_08066058: .4byte gUnk_08110360 +_0806605C: + adds r2, r4, #0 + adds r2, #0x29 + ldrb r0, [r2] + movs r1, #0x39 + rsbs r1, r1, #0 + ands r1, r0 + movs r0, #8 + orrs r1, r0 + strb r1, [r2] +_0806606E: + adds r2, r4, #0 + adds r2, #0x5a + ldrb r1, [r2] + movs r0, #1 + ands r0, r1 + cmp r0, #0 + beq _080660A0 + movs r0, #0xfe + ands r0, r1 + strb r0, [r2] + adds r0, r4, #0 + movs r1, #0x3d + movs r2, #0x20 + bl CreateFx + ldr r4, _080660A4 @ =gUnk_08110380 + bl Random + movs r1, #7 + ands r1, r0 + lsls r1, r1, #1 + adds r1, r1, r4 + ldrh r0, [r1] + bl PlaySFX +_080660A0: + pop {r4, r5, r6, pc} + .align 2, 0 +_080660A4: .4byte gUnk_08110380 + .syntax divided \ No newline at end of file diff --git a/asm/pina.s b/asm/pina.s index 25fba55c..8d869270 100644 --- a/asm/pina.s +++ b/asm/pina.s @@ -109,7 +109,7 @@ _08063B0C: movs r0, #2 strb r0, [r4, #0xc] adds r0, r4, #0 - bl sub_0806EDC4 + bl GetAnimationState adds r1, r0, #0 adds r1, #4 adds r0, r4, #0 diff --git a/asm/postman.s b/asm/postman.s index a08597ba..66761797 100644 --- a/asm/postman.s +++ b/asm/postman.s @@ -769,7 +769,7 @@ CreateZeldaFollower: @ 0x080609AC orrs r0, r1 strb r0, [r4, #0x10] adds r0, r4, #0 - bl sub_0806EDC4 + bl GetAnimationState strb r0, [r4, #0x14] _080609E0: pop {r4, pc} diff --git a/asm/rem.s b/asm/rem.s index 52147a70..c52753d1 100644 --- a/asm/rem.s +++ b/asm/rem.s @@ -153,7 +153,7 @@ _0806A512: adds r0, #0x6a strh r2, [r0] adds r0, r4, #0 - bl sub_0806EDC4 + bl GetAnimationState adds r1, r0, #0 adds r0, r4, #0 bl InitializeAnimation @@ -169,7 +169,7 @@ _0806A52C: movs r0, #2 strb r0, [r4, #0xd] adds r0, r4, #0 - bl sub_0806EDC4 + bl GetAnimationState adds r1, r0, #0 adds r0, r4, #0 bl InitializeAnimation diff --git a/asm/smith.s b/asm/smith.s deleted file mode 100644 index 79b10146..00000000 --- a/asm/smith.s +++ /dev/null @@ -1,425 +0,0 @@ - .include "asm/macros.inc" - - .include "constants/constants.inc" - - .syntax unified - - .text - - - thumb_func_start Smith -Smith: @ 0x08065FC0 - push {r4, r5, r6, lr} - adds r4, r0, #0 - ldrb r1, [r4, #0x10] - movs r0, #2 - ands r0, r1 - cmp r0, #0 - beq _08066028 - adds r2, r4, #0 - adds r2, #0x39 - movs r0, #0 - ldrsb r0, [r2, r0] - adds r6, r4, #0 - adds r6, #0x58 - cmp r0, #2 - bne _0806600C - movs r0, #0 - movs r1, #4 - strb r1, [r4, #0xc] - strb r0, [r2] - ldrb r0, [r6] - movs r5, #0 - cmp r0, #0xc - bne _08065FF0 - movs r5, #8 -_08065FF0: - ldr r1, _08066020 @ =gLinkEntity - adds r0, r4, #0 - bl GetFacingDirection - bl sub_0806F5A4 - adds r5, r5, r0 - adds r0, r4, #0 - adds r1, r5, #0 - bl InitAnimationForceUpdate - adds r0, r4, #0 - bl sub_0806F118 -_0806600C: - ldr r0, _08066024 @ =gUnk_0811036C - ldrb r1, [r4, #0xc] - lsls r1, r1, #2 - adds r1, r1, r0 - ldr r1, [r1] - adds r0, r4, #0 - bl _call_via_r1 - b _08066042 - .align 2, 0 -_08066020: .4byte gLinkEntity -_08066024: .4byte gUnk_0811036C -_08066028: - ldr r0, _08066058 @ =gUnk_08110360 - ldrb r1, [r4, #0xc] - lsls r1, r1, #2 - adds r1, r1, r0 - ldr r1, [r1] - adds r0, r4, #0 - bl _call_via_r1 - adds r0, r4, #0 - bl sub_0806ED78 - adds r6, r4, #0 - adds r6, #0x58 -_08066042: - ldrb r0, [r6] - cmp r0, #0xc - bne _0806605C - adds r2, r4, #0 - adds r2, #0x29 - ldrb r1, [r2] - movs r0, #0x39 - rsbs r0, r0, #0 - ands r0, r1 - strb r0, [r2] - b _0806606E - .align 2, 0 -_08066058: .4byte gUnk_08110360 -_0806605C: - adds r2, r4, #0 - adds r2, #0x29 - ldrb r0, [r2] - movs r1, #0x39 - rsbs r1, r1, #0 - ands r1, r0 - movs r0, #8 - orrs r1, r0 - strb r1, [r2] -_0806606E: - adds r2, r4, #0 - adds r2, #0x5a - ldrb r1, [r2] - movs r0, #1 - ands r0, r1 - cmp r0, #0 - beq _080660A0 - movs r0, #0xfe - ands r0, r1 - strb r0, [r2] - adds r0, r4, #0 - movs r1, #0x3d - movs r2, #0x20 - bl CreateFx - ldr r4, _080660A4 @ =gUnk_08110380 - bl Random - movs r1, #7 - ands r1, r0 - lsls r1, r1, #1 - adds r1, r1, r4 - ldrh r0, [r1] - bl PlaySFX -_080660A0: - pop {r4, r5, r6, pc} - .align 2, 0 -_080660A4: .4byte gUnk_08110380 - - thumb_func_start Smith_Head -Smith_Head: @ 0x080660A8 - push {r4, r5, lr} - adds r5, r0, #0 - adds r0, #0x5a - ldrb r4, [r0] - ldrb r2, [r5, #0x1e] - adds r0, r5, #0 - movs r1, #0 - bl SetExtraSpriteFrame - movs r0, #0x40 - ands r4, r0 - cmp r4, #0 - beq _080660CE - adds r0, r5, #0 - movs r1, #1 - movs r2, #0x16 - bl SetExtraSpriteFrame - b _080660D8 -_080660CE: - adds r0, r5, #0 - movs r1, #1 - movs r2, #0xff - bl SetExtraSpriteFrame -_080660D8: - adds r0, r5, #0 - movs r1, #0 - movs r2, #1 - bl SetSpriteSubEntryOffsetData1 - adds r0, r5, #0 - bl sub_0807000C - pop {r4, r5, pc} - .align 2, 0 - - thumb_func_start sub_080660EC -sub_080660EC: @ 0x080660EC - push {r4, lr} - adds r4, r0, #0 - ldr r1, _08066114 @ =gUnk_08110354 - bl LoadExtraSpriteData - cmp r0, #0 - beq _08066112 - movs r0, #1 - strb r0, [r4, #0xc] - adds r0, r4, #0 - bl sub_0801E99C - adds r1, r4, #0 - adds r1, #0x68 - strb r0, [r1] - adds r0, r4, #0 - movs r1, #2 - bl InitAnimationForceUpdate -_08066112: - pop {r4, pc} - .align 2, 0 -_08066114: .4byte gUnk_08110354 - - thumb_func_start sub_08066118 -sub_08066118: @ 0x08066118 - push {r4, lr} - adds r4, r0, #0 - movs r1, #0x28 - movs r2, #0x28 - bl sub_0806ED9C - adds r1, r0, #0 - cmp r1, #0 - bge _0806612E - movs r1, #2 - b _08066144 -_0806612E: - ldrb r0, [r4, #0xf] - cmp r0, #0 - bne _0806613A - movs r0, #0x10 - strb r0, [r4, #0xf] - b _08066144 -_0806613A: - subs r0, #1 - strb r0, [r4, #0xf] - adds r0, r4, #0 - adds r0, #0x58 - ldrb r1, [r0] -_08066144: - adds r0, r4, #0 - bl sub_0806F078 - cmp r0, #0 - bne _08066154 - adds r0, r4, #0 - bl UpdateAnimationSingleFrame -_08066154: - adds r0, r4, #0 - adds r0, #0x39 - ldrb r0, [r0] - lsls r0, r0, #0x18 - asrs r0, r0, #0x18 - cmp r0, #0 - beq _0806616C - movs r0, #2 - strb r0, [r4, #0xc] - movs r0, #0 - bl TextboxNoOverlapFollow -_0806616C: - pop {r4, pc} - .align 2, 0 - - thumb_func_start sub_08066170 -sub_08066170: @ 0x08066170 - movs r1, #1 - strb r1, [r0, #0xc] - bx lr - .align 2, 0 - - thumb_func_start sub_08066178 -sub_08066178: @ 0x08066178 - push {r4, lr} - adds r4, r0, #0 - ldr r1, _080661AC @ =gUnk_08110354 - bl LoadExtraSpriteData - cmp r0, #0 - beq _080661A8 - movs r2, #1 - movs r0, #1 - strb r0, [r4, #0xc] - ldrb r1, [r4, #0x18] - subs r0, #5 - ands r0, r1 - orrs r0, r2 - strb r0, [r4, #0x18] - adds r0, r4, #0 - bl sub_0801E99C - adds r1, r4, #0 - adds r1, #0x68 - strb r0, [r1] - adds r0, r4, #0 - bl sub_0807DD50 -_080661A8: - pop {r4, pc} - .align 2, 0 -_080661AC: .4byte gUnk_08110354 - - thumb_func_start sub_080661B0 -sub_080661B0: @ 0x080661B0 - push {lr} - movs r1, #0 - bl sub_0807DD94 - pop {pc} - .align 2, 0 - - thumb_func_start sub_080661BC -sub_080661BC: @ 0x080661BC - push {r4, lr} - adds r4, r0, #0 - adds r0, #0x58 - ldrb r0, [r0] - cmp r0, #0xc - bne _080661F4 - adds r0, r4, #0 - bl UpdateAnimationSingleFrame - adds r0, r4, #0 - adds r0, #0x5a - ldrb r1, [r0] - movs r0, #0x80 - ands r0, r1 - cmp r0, #0 - beq _080661FC - adds r0, r4, #0 - bl sub_0806EDC4 - adds r0, #8 - adds r1, r4, #0 - adds r1, #0x80 - strh r0, [r1] - ldrh r1, [r1] - adds r0, r4, #0 - bl InitAnimationForceUpdate - b _080661FC -_080661F4: - adds r0, r4, #0 - movs r1, #0 - bl sub_0807DD94 -_080661FC: - pop {r4, pc} - .align 2, 0 - - thumb_func_start sub_08066200 -sub_08066200: @ 0x08066200 - push {r4, lr} - adds r4, r0, #0 - movs r1, #0 - bl sub_0807DDAC - adds r0, r4, #0 - bl sub_0807DDE4 - adds r0, r4, #0 - bl UpdateAnimationSingleFrame - pop {r4, pc} - - thumb_func_start sub_08066218 -sub_08066218: @ 0x08066218 - push {r4, lr} - adds r4, r0, #0 - bl UpdateFuseInteraction - cmp r0, #0 - beq _08066228 - movs r0, #1 - strb r0, [r4, #0xc] -_08066228: - pop {r4, pc} - .align 2, 0 - - thumb_func_start sub_0806622C -sub_0806622C: @ 0x0806622C - push {lr} - adds r2, r0, #0 - ldr r0, _0806624C @ =gUnk_02002A40 - ldrb r0, [r0, #8] - subs r0, #2 - cmp r0, #0 - bge _0806623C - movs r0, #0 -_0806623C: - lsls r1, r0, #3 - ldr r0, _08066250 @ =gUnk_08110390 - adds r1, r1, r0 - adds r0, r2, #0 - bl ShowNPCDialogue - pop {pc} - .align 2, 0 -_0806624C: .4byte gUnk_02002A40 -_08066250: .4byte gUnk_08110390 - - thumb_func_start nullsub_501 -nullsub_501: @ 0x08066254 - bx lr - .align 2, 0 - - thumb_func_start sub_08066258 -sub_08066258: @ 0x08066258 - push {r4, lr} - ldr r4, _08066270 @ =gUnk_081103D0 - bl Random - movs r1, #7 - ands r1, r0 - lsls r1, r1, #1 - adds r1, r1, r4 - ldrh r0, [r1] - bl PlaySFX - pop {r4, pc} - .align 2, 0 -_08066270: .4byte gUnk_081103D0 - - thumb_func_start sub_08066274 -sub_08066274: @ 0x08066274 - push {lr} - ldr r3, _08066284 @ =gUnk_081103E0 - movs r1, #1 - movs r2, #0 - bl sub_08078850 - pop {pc} - .align 2, 0 -_08066284: .4byte gUnk_081103E0 - - thumb_func_start sub_08066288 -sub_08066288: @ 0x08066288 - push {lr} - adds r1, r0, #0 - adds r1, #0x68 - ldrb r1, [r1] - bl sub_08078784 - pop {pc} - .align 2, 0 - - thumb_func_start Smith_Fusion -Smith_Fusion: @ 0x08066298 - push {r4, lr} - adds r4, r0, #0 - ldrb r0, [r4, #0xc] - cmp r0, #0 - bne _080662D0 - ldr r1, _080662CC @ =gUnk_08110354 - adds r0, r4, #0 - bl LoadExtraSpriteData - cmp r0, #0 - beq _080662D6 - ldrb r0, [r4, #0xc] - adds r0, #1 - strb r0, [r4, #0xc] - ldrb r1, [r4, #0x18] - movs r0, #4 - rsbs r0, r0, #0 - ands r0, r1 - movs r1, #1 - orrs r0, r1 - strb r0, [r4, #0x18] - adds r0, r4, #0 - movs r1, #6 - bl InitAnimationForceUpdate - b _080662D6 - .align 2, 0 -_080662CC: .4byte gUnk_08110354 -_080662D0: - adds r0, r4, #0 - bl UpdateAnimationSingleFrame -_080662D6: - pop {r4, pc} diff --git a/asm/sturgeon.s b/asm/sturgeon.s index 6bb91643..34a9e992 100644 --- a/asm/sturgeon.s +++ b/asm/sturgeon.s @@ -166,7 +166,7 @@ _08064BCE: movs r0, #3 strb r0, [r4, #0xc] adds r0, r4, #0 - bl sub_0806EDC4 + bl GetAnimationState adds r1, r0, #0 cmp r1, #0 bge _08064BE0 @@ -187,7 +187,7 @@ _08064BFA: movs r0, #2 strb r0, [r4, #0xc] adds r0, r4, #0 - bl sub_0806EDC4 + bl GetAnimationState adds r1, r0, #0 cmp r1, #0 bge _08064C0C diff --git a/include/screen.h b/include/screen.h index 3c732093..fd61b5f5 100644 --- a/include/screen.h +++ b/include/screen.h @@ -22,7 +22,8 @@ typedef struct { u16 bg2xOffset; u16 bg2yOffset; u16 unk; - u32 unk2; + u16 unk2; + u16 unk3; u16 bg3Control; u16 bg3xOffset; u16 bg3yOffset; @@ -67,4 +68,6 @@ typedef struct { BgControls controls; } Screen; +extern Screen gScreen; + #endif \ No newline at end of file diff --git a/linker.ld b/linker.ld index af8b84aa..032b66c1 100644 --- a/linker.ld +++ b/linker.ld @@ -467,7 +467,9 @@ SECTIONS { asm/code_08055FF4.o(.text); src/textbox.o(.text); asm/code_08056418.o(.text); + src/manager1.o(.text); asm/manager1.o(.text); + src/manager2.o(.text); asm/manager2.o(.text); asm/manager3.o(.text); asm/manager4.o(.text); @@ -562,7 +564,7 @@ SECTIONS { src/epona.o(.text); src/milkCart.o(.text); asm/ghostBrothers.o(.text); - asm/smith.o(.text); + src/smith.o(.text); asm/npc23.o(.text); asm/kingDaltus.o(.text); asm/ministerPotho.o(.text); diff --git a/src/fan.c b/src/fan.c index 93910dc7..481e3887 100644 --- a/src/fan.c +++ b/src/fan.c @@ -1,9 +1,86 @@ #include "global.h" #include "entity.h" +#include "flags.h" + +extern void sub_0809EE34(Entity*); +extern void sub_0809EFB0(Entity*); +extern void sub_0809EE08(Entity*); +extern void sub_0809F08C(void); +extern void sub_0809EE44(Entity*); +extern void sub_0809EE24(Entity*); extern void (*const gUnk_081243D4[])(Entity*); void Fan(Entity *this) { gUnk_081243D4[this->action](this); +} + +void sub_0809ED30(Entity *this) +{ + this->direction = (this->entityType.form ^ 2) << 3; + sub_0809EE34(this); + sub_0809EFB0(this); + InitializeAnimation(this, this->entityType.form); +} + +void sub_0809ED54(Entity *this) +{ + u16 uVar1; + u32 iVar2; + + if (((this->cutsceneBeh.HWORD == 0) || CheckFlags(this->cutsceneBeh.HWORD)) && + ((this->entityType.parameter != 1 || + (--this->field_0x74 == 0)))) { + sub_0809EE08(this); + } +} + +void sub_0809ED88(Entity *this) +{ + sub_0809F08C(); + sub_0809EE44(this); + if (this->field_0x86 != 0) { + if (this->cutsceneBeh.HWORD == this->field_0x86) { + if (CheckFlags(this->cutsceneBeh.HWORD)) { + return; + } + } + else if (!CheckFlags(this->cutsceneBeh.HWORD)) { + return; + } + sub_0809EE24(this); + } + else if (((this->entityType).parameter == 1) && + (--this->field_0x74 == 0)) { + sub_0809EE24(this); + } +} + +void sub_0809EDE4(Entity *this) +{ + sub_0809F08C(); + sub_0809EE44(this); + if (this->frames.b.f3) { + sub_0809EE34(this); + } +} + +void sub_0809EE08(Entity *this) +{ + this->action = 2; + this->field_0x74 = *((u8 *)&this->field_0x7c + 3) << 2; + InitializeAnimation(this, this->entityType.form); +} + +void sub_0809EE24(Entity *this) +{ + this->action = 3; + InitializeAnimation(this, this->entityType.form + 4); +} + +void sub_0809EE34(Entity *this) +{ + this->action = 1; + this->field_0x74 = this->actionDelay << 2; } \ No newline at end of file diff --git a/src/manager1.c b/src/manager1.c new file mode 100644 index 00000000..ba556db0 --- /dev/null +++ b/src/manager1.c @@ -0,0 +1,64 @@ +#include "global.h" +#include "entity.h" +#include "screen.h" + +extern void sub_0801D7EC(u32); +extern void sub_08056250(void); +extern void sub_080570B8(Entity*); +void sub_080570F8(void); +extern void sub_08052D74(void*, void*, void*); + +extern void (*const gUnk_08107C5C[])(Entity*); +extern void (*const gUnk_08107C48[])(Entity*); + +extern u8 gUnk_08107C40[]; + +void Manager1(Entity *this) +{ + u8 bVar1; + u8 *pbVar2; + + gUnk_08107C5C[this->action](this); + gUnk_08107C48[((u8*)&this->field_0x20)[1]](this); + bVar1 = gUnk_08107C40[((u8*)&this->field_0x20)[1]]; + if ((bVar1 != 0) && (*(u8 *)&this->field_0x20 != bVar1)) { + ((u8*)&this->field_0x20)[0] = bVar1; + sub_0801D7EC(bVar1); + } +} + +void sub_080570B8(Entity *this) +{ + u8 *pbVar1; + + sub_0801D7EC(((u8 *)&this->field_0x20)[0]); + this->height.WORD = 0; + pbVar1 = ((u8 *)&this->field_0x20 + 1); + if (*pbVar1 == 3) { + gScreen.affine.bg3xOffset = 1; + } + else { + gUnk_08107C48[*pbVar1](this); + } +} + +void sub_080570F8(void) +{ + gScreen.lcd.lcdControl2 &= 0xf7ff; + gScreen.controls.windowOutsideControl = 0; + sub_08056250(); +} + +void sub_08057118(Entity *this) +{ + this->actionDelay = 0; + *(u8 *)&this->field_0x20 = 0; + ((u8 *)&this->field_0x20)[1] = 0; + ((u8 *)&this->field_0x20)[2] = 0; + this->action = 1; + gScreen.affine.unk2 = 0x1e04; + *(u16 *)&gScreen.lcd.lcdControl2 |= 0x800; + gScreen.controls.windowOutsideControl = 0x3648; + gScreen.controls.mosaicSize = 0x1000; + sub_08052D74(this, sub_080570B8, sub_080570F8); +} \ No newline at end of file diff --git a/src/manager2.c b/src/manager2.c new file mode 100644 index 00000000..707c13d1 --- /dev/null +++ b/src/manager2.c @@ -0,0 +1,18 @@ +#include "global.h" +#include "entity.h" +#include "screen.h" + +extern void sub_080576A0(); +extern void sub_08052D74(); +extern void sub_0805754C(Entity*); + +void Manager2(Entity *this) +{ + if (this->action == 0) { + this->action = 1; + gScreen.affine.bg3xOffset = 0; + gScreen.bg2.bg0xOffset = 0; + sub_08052D74(this, sub_080576A0, 0); + } + sub_0805754C(this); +} \ No newline at end of file diff --git a/src/smith.c b/src/smith.c new file mode 100644 index 00000000..061d3c40 --- /dev/null +++ b/src/smith.c @@ -0,0 +1,225 @@ +#include "global.h" +#include "entity.h" +#include "textbox.h" + +typedef struct { + u8 filler[8]; + u8 unk; +} struct_02002A40; + +extern u32 GetFacingDirection(Entity*, Entity*); +extern u32 sub_0806F5A4(u32); +extern void sub_0806F118(Entity*); +extern void sub_0806ED78(Entity*); +extern Entity* CreateFx(Entity*, u32, u32); +extern void PlaySFX(u32); +extern u32 Random(void); +extern void sub_0807000C(Entity*); +extern u32 sub_0801E99C(Entity*); +extern u32 sub_0806ED9C(Entity*, u32, u32); +extern u32 sub_0806F078(Entity*, u32); +extern void sub_0807DD50(Entity*); +extern void sub_0807DD94(Entity*, u32); +extern void sub_0807DDAC(Entity*, u32); +extern void sub_0807DDE4(Entity*); +extern u32 UpdateFuseInteraction(Entity*); +extern u32 GetAnimationState(Entity*); +extern void ShowNPCDialogue(Entity*, u32*); +extern void sub_08078850(u32, u32, u32, u32*); +extern void sub_08078784(Entity*, u32); + +extern void (*const gUnk_08110360[])(Entity*); +extern void (*const gUnk_0811036C[])(Entity*); + +extern u16 gUnk_08110380[]; +extern SpriteLoadData gUnk_08110354; +extern struct_02002A40 gUnk_02002A40; +extern u32 gUnk_08110390[]; +extern u16 gUnk_081103D0[]; +extern u32 gUnk_081103E0; + +#if NON_MATCHING //reg-alloc +void Smith(Entity *this) +{ + u32 iVar2; + u32 iVar4; + + if ((this->flags & 2) != 0) { + if (this->interactType == 2) { + this->action = 4; + this->interactType = 0; + iVar4 = (this->animIndex == 0xc) ? 8 : 0; + iVar2 = sub_0806F5A4(GetFacingDirection(this, &gLinkEntity)); + InitAnimationForceUpdate(this, iVar2 + iVar4); + sub_0806F118(this); + } + gUnk_0811036C[this->action](this); + } + else { + gUnk_08110360[this->action](this); + sub_0806ED78(this); + } + if (this->animIndex == 0xc) { + this->spritePriority.b1 = 0; + } + else { + this->spritePriority.b1 = 1; + } + if ((this->frames.all & 1) != 0) { + this->frames.all &= 0xfe; + CreateFx(this, 0x3d, 0x20); + PlaySFX(gUnk_08110380[(Random() & 7)]); + } +} +#else +NAKED +void Smith(Entity *this) { + asm(".include \"asm/non_matching/smith/smith.inc\""); +} +#endif + +void Smith_Head(Entity *this) +{ + u8 bVar1; + + bVar1 = this->frames.all; + SetExtraSpriteFrame(this, 0, this->frameIndex); + if ((bVar1 & 0x40) != 0) { + SetExtraSpriteFrame(this, 1, 0x16); + } + else { + SetExtraSpriteFrame(this, 1, 0xff); + } + SetSpriteSubEntryOffsetData1(this,0,1); + sub_0807000C(this); +} + +void sub_080660EC(Entity *this) +{ + if (LoadExtraSpriteData(this, &gUnk_08110354) != 0) { + this->action = 1; + this->field_0x68 = sub_0801E99C(this); + InitAnimationForceUpdate(this, 2); + } +} + +void sub_08066118(Entity *this) +{ + s32 uVar1; + u32 iVar2; + + uVar1 = sub_0806ED9C(this, 0x28, 0x28); + if (uVar1 < 0) { + uVar1 = 2; + } + else { + if (this->field_0xf == 0) { + this->field_0xf = 0x10; + } + else { + --this->field_0xf; + uVar1 = this->animIndex; + } + } + if (sub_0806F078(this, uVar1) == 0) { + UpdateAnimationSingleFrame(this); + } + if (this->interactType != 0) { + this->action = 2; + TextboxNoOverlapFollow(0); + } +} + +void sub_08066170(Entity *this) +{ + this->action = 1; +} + +void sub_08066178(Entity *this) +{ + if (LoadExtraSpriteData(this, &gUnk_08110354) != 0) { + this->action = 1; + this->spriteSettings.b.draw = 1; + this->field_0x68 = sub_0801E99C(this); + sub_0807DD50(this); + } +} + +void sub_080661B0(Entity *this) +{ + sub_0807DD94(this, 0); +} + +void sub_080661BC(Entity *this) +{ + u32 sVar1; + + if (this->animIndex == 0xc) { + UpdateAnimationSingleFrame(this); + if ((this->frames.b.f3) != 0) { + this->field_0x80 = GetAnimationState(this) + 8; + InitAnimationForceUpdate(this, this->field_0x80); + } + } + else { + sub_0807DD94(this,0); + } +} + +void sub_08066200(Entity *this) +{ + sub_0807DDAC(this, 0); + sub_0807DDE4(this); + UpdateAnimationSingleFrame(this); +} + +void sub_08066218(Entity *this) +{ + if (UpdateFuseInteraction(this) != 0) { + this->action = 1; + } +} + +void sub_0806622C(Entity *this) +{ + u32 iVar1; + + if (gUnk_02002A40.unk - 2 < 0) { + iVar1 = 0; + } + else { + iVar1 = gUnk_02002A40.unk - 2; + } + ShowNPCDialogue(this, &gUnk_08110390[iVar1 * 2]); +} + +void nullsub_501(Entity* this) {} + +void sub_08066258(void) +{ + PlaySFX(gUnk_081103D0[Random() & 7]); +} + +void sub_08066274(u32 arg0) +{ + sub_08078850(arg0, 1, 0, &gUnk_081103E0); +} + +void sub_08066288(Entity *arg0) +{ + sub_08078784(arg0, arg0->field_0x68); +} + +void Smith_Fusion(Entity *this) +{ + if (this->action == 0) { + if (LoadExtraSpriteData(this, &gUnk_08110354) != 0) { + this->action++; + this->spriteSettings.b.draw = 1; + InitAnimationForceUpdate(this, 6); + } + } + else { + UpdateAnimationSingleFrame(this); + } +} \ No newline at end of file diff --git a/src/zelda.c b/src/zelda.c index 8aa89a33..2ba8bf28 100644 --- a/src/zelda.c +++ b/src/zelda.c @@ -11,7 +11,7 @@ extern Entity* sub_0805EB9C(u32, u32); void CopyPosition(Entity*, Entity*); void sub_08068680(Entity*, Entity*); void sub_08068694(Entity*, Entity*); -u32 sub_0806EDC4(Entity* ent); +u32 GetAnimationState(Entity* ent); void DeleteThisEntity(void); extern Entity* GetEntityByType(u32, u32); extern void sub_080686C4(Entity*, Entity*); @@ -89,7 +89,7 @@ void sub_08066D94(Entity* ent) { if (npc != NULL) { npc->animationState = gLinkEntity.animationState; npc->flags |= 0x20; - npc->animationState = sub_0806EDC4(ent); + npc->animationState = GetAnimationState(ent); roomID = gRoomControls.roomID; npc->field_0x74 = roomID; CopyPosition(ent, npc); From 4cffc35604b55f1bdd8cbecbc52cdd65532c1a63 Mon Sep 17 00:00:00 2001 From: theo3 Date: Sun, 12 Jul 2020 15:54:01 -0700 Subject: [PATCH 009/158] railtrack.c --- asm/guardWithSpear.s | 470 -------------------- asm/non_matching/guard/sub_08063D44.inc | 69 +++ asm/non_matching/guard/sub_08063E90.inc | 73 +++ asm/non_matching/railtrack/sub_08085394.inc | 87 ++++ asm/non_matching/railtrack/sub_080854A8.inc | 36 ++ asm/railtrack.s | 438 ------------------ include/entity.h | 1 + linker.ld | 3 +- src/guard.c | 196 ++++++++ src/railtrack.c | 148 ++++++ 10 files changed, 612 insertions(+), 909 deletions(-) create mode 100644 asm/non_matching/guard/sub_08063D44.inc create mode 100644 asm/non_matching/guard/sub_08063E90.inc create mode 100644 asm/non_matching/railtrack/sub_08085394.inc create mode 100644 asm/non_matching/railtrack/sub_080854A8.inc delete mode 100644 asm/railtrack.s create mode 100644 src/guard.c create mode 100644 src/railtrack.c diff --git a/asm/guardWithSpear.s b/asm/guardWithSpear.s index e9456371..745374ba 100644 --- a/asm/guardWithSpear.s +++ b/asm/guardWithSpear.s @@ -6,476 +6,6 @@ .text - - thumb_func_start Guard -Guard: @ 0x08063CF8 - push {lr} - adds r2, r0, #0 - ldrb r1, [r2, #0x10] - movs r0, #2 - ands r0, r1 - cmp r0, #0 - beq _08063D1C - ldr r0, _08063D18 @ =gUnk_0810F544 - ldrb r1, [r2, #0xc] - lsls r1, r1, #2 - adds r1, r1, r0 - ldr r1, [r1] - adds r0, r2, #0 - bl _call_via_r1 - b _08063D22 - .align 2, 0 -_08063D18: .4byte gUnk_0810F544 -_08063D1C: - adds r0, r2, #0 - bl sub_08063D24 -_08063D22: - pop {pc} - - thumb_func_start sub_08063D24 -sub_08063D24: @ 0x08063D24 - push {r4, lr} - adds r4, r0, #0 - ldr r1, _08063D40 @ =gUnk_0810F550 - ldrb r0, [r4, #0xc] - lsls r0, r0, #2 - adds r0, r0, r1 - ldr r1, [r0] - adds r0, r4, #0 - bl _call_via_r1 - adds r0, r4, #0 - bl sub_0806ED78 - pop {r4, pc} - .align 2, 0 -_08063D40: .4byte gUnk_0810F550 - - thumb_func_start sub_08063D44 -sub_08063D44: @ 0x08063D44 - push {r4, lr} - adds r4, r0, #0 - ldr r0, _08063DA0 @ =gUnk_03003DBC - ldrb r0, [r0] - cmp r0, #0x46 - bhi _08063DC6 - ldrb r0, [r4, #9] - movs r1, #0x15 - eors r0, r1 - rsbs r1, r0, #0 - orrs r1, r0 - lsrs r1, r1, #0x1f - lsls r1, r1, #4 - ldr r0, _08063DA4 @ =gUnk_0810F524 - adds r1, r1, r0 - adds r0, r4, #0 - bl LoadExtraSpriteData - cmp r0, #0 - beq _08063DC6 - adds r0, r4, #0 - movs r1, #4 - bl InitializeAnimation - ldr r0, _08063DA8 @ =gUnk_0810F6BC - ldrb r1, [r4, #0xa] - lsls r1, r1, #2 - adds r1, r1, r0 - ldr r1, [r1] - adds r0, r4, #0 - movs r2, #0 - bl sub_0806EE04 - ldrb r0, [r4, #0xa] - cmp r0, #0 - blt _08063DB6 - cmp r0, #3 - bgt _08063DAC - movs r0, #0xc - bl sub_080A7EE0 - str r4, [r0, #0x50] - movs r1, #0x3c - strb r1, [r0, #0xf] - b _08063DB6 - .align 2, 0 -_08063DA0: .4byte gUnk_03003DBC -_08063DA4: .4byte gUnk_0810F524 -_08063DA8: .4byte gUnk_0810F6BC -_08063DAC: - cmp r0, #5 - bgt _08063DB6 - adds r0, r4, #0 - bl sub_08078778 -_08063DB6: - ldrb r0, [r4, #0xc] - adds r0, #1 - movs r1, #0 - strb r0, [r4, #0xc] - strb r1, [r4, #0xa] - adds r0, r4, #0 - bl sub_08063DC8 -_08063DC6: - pop {r4, pc} - - thumb_func_start sub_08063DC8 -sub_08063DC8: @ 0x08063DC8 - push {r4, lr} - adds r4, r0, #0 - ldrb r0, [r4, #0xa] - cmp r0, #0xff - bne _08063DF8 - movs r0, #2 - strb r0, [r4, #0xc] - movs r0, #0x1e - strb r0, [r4, #0xe] - ldr r1, _08063DF4 @ =gLinkEntity - adds r0, r4, #0 - bl GetFacingDirection - bl sub_0806F5A4 - strb r0, [r4, #0x14] - ldrb r1, [r4, #0x14] - adds r1, #4 - adds r0, r4, #0 - bl InitAnimationForceUpdate - b _08063E4C - .align 2, 0 -_08063DF4: .4byte gLinkEntity -_08063DF8: - adds r0, r4, #0 - bl sub_0806EE20 - adds r0, r4, #0 - adds r0, #0x3e - ldrb r0, [r0] - ldrb r1, [r4, #0x14] - cmp r0, r1 - beq _08063E18 - strb r0, [r4, #0x14] - ldrb r1, [r4, #0x14] - adds r1, #4 - adds r0, r4, #0 - bl InitializeAnimation - b _08063E1E -_08063E18: - adds r0, r4, #0 - bl GetNextFrame -_08063E1E: - adds r2, r4, #0 - adds r2, #0x39 - movs r0, #0 - ldrsb r0, [r2, r0] - cmp r0, #0 - beq _08063E4C - movs r1, #0 - movs r0, #3 - strb r0, [r4, #0xc] - strb r1, [r2] - ldr r1, _08063E50 @ =gLinkEntity - adds r0, r4, #0 - bl GetFacingDirection - bl sub_0806F5A4 - adds r1, r0, #0 - adds r0, r4, #0 - bl InitializeAnimation - adds r0, r4, #0 - bl sub_08064428 -_08063E4C: - pop {r4, pc} - .align 2, 0 -_08063E50: .4byte gLinkEntity - - thumb_func_start sub_08063E54 -sub_08063E54: @ 0x08063E54 - push {lr} - ldrb r1, [r0, #0xe] - subs r1, #1 - strb r1, [r0, #0xe] - lsls r1, r1, #0x18 - cmp r1, #0 - bne _08063E68 - movs r0, #0xf - bl SetRoomFlag -_08063E68: - pop {pc} - .align 2, 0 - - thumb_func_start sub_08063E6C -sub_08063E6C: @ 0x08063E6C - push {lr} - adds r2, r0, #0 - ldr r0, _08063E8C @ =gTextBox - ldrb r1, [r0] - movs r0, #0x7f - ands r0, r1 - cmp r0, #0 - bne _08063E8A - movs r0, #1 - strb r0, [r2, #0xc] - ldrb r1, [r2, #0x14] - adds r1, #4 - adds r0, r2, #0 - bl InitializeAnimation -_08063E8A: - pop {pc} - .align 2, 0 -_08063E8C: .4byte gTextBox - - thumb_func_start sub_08063E90 -sub_08063E90: @ 0x08063E90 - push {r4, lr} - adds r4, r0, #0 - ldrb r0, [r4, #9] - movs r1, #0x15 - eors r0, r1 - rsbs r1, r0, #0 - orrs r1, r0 - lsrs r1, r1, #0x1f - lsls r1, r1, #4 - ldr r0, _08063EC8 @ =gUnk_0810F524 - adds r1, r1, r0 - adds r0, r4, #0 - bl LoadExtraSpriteData - cmp r0, #0 - beq _08063F1E - ldrb r0, [r4, #0xc] - adds r0, #1 - strb r0, [r4, #0xc] - ldrb r1, [r4, #0xe] - cmp r1, #0 - beq _08063ECC - adds r1, r4, #0 - adds r1, #0x70 - movs r0, #8 - strb r0, [r1] - b _08063ED2 - .align 2, 0 -_08063EC8: .4byte gUnk_0810F524 -_08063ECC: - adds r0, r4, #0 - adds r0, #0x70 - strb r1, [r0] -_08063ED2: - movs r0, #0 - strb r0, [r4, #0xe] - adds r0, r4, #0 - bl sub_0805ACC0 - adds r2, r0, #0 - cmp r2, #0 - bne _08063EF2 - ldrh r0, [r4, #0x2e] - adds r1, r4, #0 - adds r1, #0x68 - strh r0, [r1] - ldrh r0, [r4, #0x32] - adds r1, #2 - strh r0, [r1] - b _08063EFE -_08063EF2: - lsrs r1, r2, #0x10 - adds r0, r4, #0 - adds r0, #0x68 - strh r1, [r0] - adds r0, #2 - strh r2, [r0] -_08063EFE: - adds r1, r4, #0 - adds r1, #0x71 - movs r0, #0 - strb r0, [r1] - subs r1, #0x39 - movs r0, #1 - strb r0, [r1] - adds r0, r4, #0 - bl UpdateSpriteForCollisionLayer - adds r0, r4, #0 - bl sub_0807DD64 - adds r0, r4, #0 - bl sub_08063F20 -_08063F1E: - pop {r4, pc} - - thumb_func_start sub_08063F20 -sub_08063F20: @ 0x08063F20 - push {r4, lr} - adds r4, r0, #0 - movs r1, #0 - bl sub_0807DDAC - adds r0, r4, #0 - bl sub_0807DDE4 - adds r0, r4, #0 - bl GetNextFrame - adds r2, r4, #0 - adds r2, #0x39 - movs r0, #0 - ldrsb r0, [r2, r0] - cmp r0, #0 - beq _08063F72 - ldrb r0, [r4, #0xc] - adds r0, #1 - movs r1, #0 - strb r0, [r4, #0xc] - strb r1, [r2] - ldr r1, _08063F74 @ =gLinkEntity - adds r0, r4, #0 - bl GetFacingDirection - bl sub_0806F5A4 - adds r1, r0, #0 - adds r0, r4, #0 - adds r0, #0x70 - ldrb r0, [r0] - lsls r0, r0, #0x18 - asrs r0, r0, #0x18 - adds r1, r1, r0 - adds r0, r4, #0 - bl InitializeAnimation - adds r0, r4, #0 - bl sub_08064428 -_08063F72: - pop {r4, pc} - .align 2, 0 -_08063F74: .4byte gLinkEntity - - thumb_func_start sub_08063F78 -sub_08063F78: @ 0x08063F78 - push {lr} - adds r2, r0, #0 - ldr r0, _08063FA8 @ =gTextBox - ldrb r1, [r0] - movs r0, #0x7f - ands r0, r1 - cmp r0, #0 - bne _08063FA6 - ldrb r0, [r2, #0xc] - subs r0, #1 - strb r0, [r2, #0xc] - ldrb r1, [r2, #0x14] - lsrs r1, r1, #1 - adds r0, r2, #0 - adds r0, #0x70 - ldrb r0, [r0] - lsls r0, r0, #0x18 - asrs r0, r0, #0x18 - adds r0, #4 - adds r1, r1, r0 - adds r0, r2, #0 - bl InitializeAnimation -_08063FA6: - pop {pc} - .align 2, 0 -_08063FA8: .4byte gTextBox - - thumb_func_start Guard_Head -Guard_Head: @ 0x08063FAC - push {r4, r5, r6, lr} - adds r6, r0, #0 - adds r0, #0x5a - ldrb r1, [r0] - movs r0, #0x3f - adds r2, r0, #0 - ands r2, r1 - ldrb r3, [r6, #0x1e] - adds r5, r0, #0 - ands r5, r3 - adds r1, r6, #0 - adds r1, #0x5b - ldrb r1, [r1] - adds r4, r0, #0 - ands r4, r1 - ldrb r0, [r6, #9] - cmp r0, #0x15 - bne _08063FEC - movs r0, #0x40 - ands r0, r3 - cmp r0, #0 - beq _08063FE2 - adds r5, #0x21 - movs r2, #1 - rsbs r2, r2, #0 - movs r4, #0 - b _08063FF6 -_08063FE2: - adds r2, #0x19 - cmp r4, #0 - beq _08063FF6 - adds r4, #0x1f - b _08063FF6 -_08063FEC: - adds r2, #0x46 - adds r5, #0x2d - cmp r4, #0 - beq _08063FF6 - adds r4, #0x4c -_08063FF6: - subs r4, #1 - adds r0, r6, #0 - movs r1, #0 - bl SetExtraSpriteFrame - adds r0, r6, #0 - movs r1, #1 - adds r2, r5, #0 - bl SetExtraSpriteFrame - adds r0, r6, #0 - movs r1, #2 - adds r2, r4, #0 - bl SetExtraSpriteFrame - adds r0, r6, #0 - movs r1, #1 - movs r2, #0 - bl SetSpriteSubEntryOffsetData1 - adds r0, r6, #0 - movs r1, #1 - movs r2, #2 - bl SetSpriteSubEntryOffsetData2 - adds r0, r6, #0 - bl sub_0807000C - pop {r4, r5, r6, pc} - - thumb_func_start sub_08064030 -sub_08064030: @ 0x08064030 - ldr r0, _08064040 @ =gRoomVars - ldr r2, [r0, #0x68] - rsbs r0, r2, #0 - orrs r0, r2 - lsrs r0, r0, #0x1f - str r0, [r1, #0x14] - bx lr - .align 2, 0 -_08064040: .4byte gRoomVars - - thumb_func_start sub_08064044 -sub_08064044: @ 0x08064044 - ldr r1, _0806404C @ =gUnk_030010A0 - movs r0, #1 - strb r0, [r1, #8] - bx lr - .align 2, 0 -_0806404C: .4byte gUnk_030010A0 - - thumb_func_start sub_08064050 -sub_08064050: @ 0x08064050 - push {lr} - adds r2, r1, #0 - movs r1, #0 - str r1, [r2, #4] - ldrb r0, [r0, #0xb] - cmp r0, #0x12 - beq _08064072 - cmp r0, #0x12 - bgt _08064068 - cmp r0, #0x11 - beq _0806406E - b _0806407A -_08064068: - cmp r0, #0x13 - beq _08064076 - b _0806407A -_0806406E: - movs r0, #1 - b _08064078 -_08064072: - movs r0, #2 - b _08064078 -_08064076: - movs r0, #3 -_08064078: - str r0, [r2, #4] -_0806407A: - pop {pc} - thumb_func_start sub_0806407C sub_0806407C: @ 0x0806407C push {r4, r5, r6, lr} diff --git a/asm/non_matching/guard/sub_08063D44.inc b/asm/non_matching/guard/sub_08063D44.inc new file mode 100644 index 00000000..201f79c0 --- /dev/null +++ b/asm/non_matching/guard/sub_08063D44.inc @@ -0,0 +1,69 @@ + .include "asm/macros.inc" + + .include "constants/constants.inc" + + .syntax unified + + .text + + push {r4, lr} + adds r4, r0, #0 + ldr r0, _08063DA0 @ =gUnk_03003DBC + ldrb r0, [r0] + cmp r0, #0x46 + bhi _08063DC6 + ldrb r0, [r4, #9] + movs r1, #0x15 + eors r0, r1 + rsbs r1, r0, #0 + orrs r1, r0 + lsrs r1, r1, #0x1f + lsls r1, r1, #4 + ldr r0, _08063DA4 @ =gUnk_0810F524 + adds r1, r1, r0 + adds r0, r4, #0 + bl LoadExtraSpriteData + cmp r0, #0 + beq _08063DC6 + adds r0, r4, #0 + movs r1, #4 + bl InitializeAnimation + ldr r0, _08063DA8 @ =gUnk_0810F6BC + ldrb r1, [r4, #0xa] + lsls r1, r1, #2 + adds r1, r1, r0 + ldr r1, [r1] + adds r0, r4, #0 + movs r2, #0 + bl sub_0806EE04 + ldrb r0, [r4, #0xa] + cmp r0, #0 + blt _08063DB6 + cmp r0, #3 + bgt _08063DAC + movs r0, #0xc + bl sub_080A7EE0 + str r4, [r0, #0x50] + movs r1, #0x3c + strb r1, [r0, #0xf] + b _08063DB6 + .align 2, 0 +_08063DA0: .4byte gUnk_03003DBC +_08063DA4: .4byte gUnk_0810F524 +_08063DA8: .4byte gUnk_0810F6BC +_08063DAC: + cmp r0, #5 + bgt _08063DB6 + adds r0, r4, #0 + bl sub_08078778 +_08063DB6: + ldrb r0, [r4, #0xc] + adds r0, #1 + movs r1, #0 + strb r0, [r4, #0xc] + strb r1, [r4, #0xa] + adds r0, r4, #0 + bl sub_08063DC8 +_08063DC6: + pop {r4, pc} + .syntax divided \ No newline at end of file diff --git a/asm/non_matching/guard/sub_08063E90.inc b/asm/non_matching/guard/sub_08063E90.inc new file mode 100644 index 00000000..76e3d4a5 --- /dev/null +++ b/asm/non_matching/guard/sub_08063E90.inc @@ -0,0 +1,73 @@ + .syntax unified + push {r4, lr} + adds r4, r0, #0 + ldrb r0, [r4, #9] + movs r1, #0x15 + eors r0, r1 + rsbs r1, r0, #0 + orrs r1, r0 + lsrs r1, r1, #0x1f + lsls r1, r1, #4 + ldr r0, _08063EC8 @ =gUnk_0810F524 + adds r1, r1, r0 + adds r0, r4, #0 + bl LoadExtraSpriteData + cmp r0, #0 + beq _08063F1E + ldrb r0, [r4, #0xc] + adds r0, #1 + strb r0, [r4, #0xc] + ldrb r1, [r4, #0xe] + cmp r1, #0 + beq _08063ECC + adds r1, r4, #0 + adds r1, #0x70 + movs r0, #8 + strb r0, [r1] + b _08063ED2 + .align 2, 0 +_08063EC8: .4byte gUnk_0810F524 +_08063ECC: + adds r0, r4, #0 + adds r0, #0x70 + strb r1, [r0] +_08063ED2: + movs r0, #0 + strb r0, [r4, #0xe] + adds r0, r4, #0 + bl sub_0805ACC0 + adds r2, r0, #0 + cmp r2, #0 + bne _08063EF2 + ldrh r0, [r4, #0x2e] + adds r1, r4, #0 + adds r1, #0x68 + strh r0, [r1] + ldrh r0, [r4, #0x32] + adds r1, #2 + strh r0, [r1] + b _08063EFE +_08063EF2: + lsrs r1, r2, #0x10 + adds r0, r4, #0 + adds r0, #0x68 + strh r1, [r0] + adds r0, #2 + strh r2, [r0] +_08063EFE: + adds r1, r4, #0 + adds r1, #0x71 + movs r0, #0 + strb r0, [r1] + subs r1, #0x39 + movs r0, #1 + strb r0, [r1] + adds r0, r4, #0 + bl UpdateSpriteForCollisionLayer + adds r0, r4, #0 + bl sub_0807DD64 + adds r0, r4, #0 + bl sub_08063F20 +_08063F1E: + pop {r4, pc} + .syntax divided \ No newline at end of file diff --git a/asm/non_matching/railtrack/sub_08085394.inc b/asm/non_matching/railtrack/sub_08085394.inc new file mode 100644 index 00000000..9a2ba760 --- /dev/null +++ b/asm/non_matching/railtrack/sub_08085394.inc @@ -0,0 +1,87 @@ + .include "asm/macros.inc" + + .include "constants/constants.inc" + + .syntax unified + + .text + + push {r4, r5, r6, r7, lr} + mov r7, sl + mov r6, sb + mov r5, r8 + push {r5, r6, r7} + adds r7, r0, #0 + ldr r0, _08085430 @ =gUnk_081205E0 + ldrb r2, [r7, #0x14] + lsrs r2, r2, #1 + lsls r2, r2, #1 + adds r0, r2, r0 + ldrh r0, [r0] + mov sl, r0 + ldr r0, _08085434 @ =gUnk_080B4488 + adds r2, r2, r0 + ldr r0, [r7, #0x70] + mov sb, r0 + movs r1, #0x2e + ldrsh r4, [r7, r1] + ldr r1, _08085438 @ =gRoomControls + ldrh r0, [r1, #6] + subs r4, r4, r0 + asrs r4, r4, #4 + movs r3, #0x3f + ands r4, r3 + movs r5, #0x32 + ldrsh r0, [r7, r5] + ldrh r1, [r1, #8] + subs r0, r0, r1 + asrs r0, r0, #4 + ands r0, r3 + lsls r0, r0, #6 + orrs r4, r0 + ldrb r2, [r2] + lsls r2, r2, #0x18 + asrs r2, r2, #0x18 + mov r8, r2 + lsls r5, r2, #1 + mov r1, sb + subs r0, r1, r5 + ldrh r1, [r0] + adds r0, r7, #0 + adds r0, #0x74 + strh r1, [r0] + subs r1, r4, r2 + adds r6, r7, #0 + adds r6, #0x38 + ldrb r2, [r6] + mov r0, sl + bl SetTile + mov r1, sb + ldrh r0, [r1] + adds r1, r7, #0 + adds r1, #0x76 + strh r0, [r1] + ldrb r2, [r6] + mov r0, sl + adds r1, r4, #0 + bl SetTile + add r5, sb + ldrh r1, [r5] + adds r0, r7, #0 + adds r0, #0x78 + strh r1, [r0] + add r4, r8 + ldrb r2, [r6] + mov r0, sl + adds r1, r4, #0 + bl SetTile + pop {r3, r4, r5} + mov r8, r3 + mov sb, r4 + mov sl, r5 + pop {r4, r5, r6, r7, pc} + .align 2, 0 +_08085430: .4byte gUnk_081205E0 +_08085434: .4byte gUnk_080B4488 +_08085438: .4byte gRoomControls + .syntax divided \ No newline at end of file diff --git a/asm/non_matching/railtrack/sub_080854A8.inc b/asm/non_matching/railtrack/sub_080854A8.inc new file mode 100644 index 00000000..aa5bed89 --- /dev/null +++ b/asm/non_matching/railtrack/sub_080854A8.inc @@ -0,0 +1,36 @@ + .syntax unified + push {r4, lr} + ldr r2, _080854E0 @ =gUnk_081205E0 + ldrb r1, [r0, #0x14] + lsrs r1, r1, #1 + lsls r1, r1, #1 + adds r2, r1, r2 + ldrh r3, [r2] + adds r4, r3, #0 + ldr r2, _080854E4 @ =gUnk_080B4488 + adds r1, r1, r2 + ldr r2, [r0, #0x70] + movs r0, #0 + ldrsb r0, [r1, r0] + lsls r1, r0, #1 + subs r0, r2, r1 + ldrh r0, [r0] + cmp r3, r0 + bne _080854E8 + ldrh r0, [r2] + cmp r3, r0 + bne _080854E8 + adds r0, r1, r2 + ldrh r0, [r0] + cmp r4, r0 + bne _080854E8 + movs r0, #0 + b _080854EA + .align 2, 0 +_080854E0: .4byte gUnk_081205E0 +_080854E4: .4byte gUnk_080B4488 +_080854E8: + movs r0, #1 +_080854EA: + pop {r4, pc} + .syntax divided \ No newline at end of file diff --git a/asm/railtrack.s b/asm/railtrack.s deleted file mode 100644 index 6fa8b595..00000000 --- a/asm/railtrack.s +++ /dev/null @@ -1,438 +0,0 @@ - .include "asm/macros.inc" - - .include "constants/constants.inc" - - .syntax unified - - .text - - - thumb_func_start Railtrack -Railtrack: @ 0x08085194 - push {lr} - ldr r2, _080851A8 @ =gUnk_081205D0 - ldrb r1, [r0, #0xc] - lsls r1, r1, #2 - adds r1, r1, r2 - ldr r1, [r1] - bl _call_via_r1 - pop {pc} - .align 2, 0 -_080851A8: .4byte gUnk_081205D0 - - thumb_func_start sub_080851AC -sub_080851AC: @ 0x080851AC - push {r4, r5, r6, lr} - adds r5, r0, #0 - movs r2, #1 - movs r3, #1 - strb r3, [r5, #0xc] - ldrb r1, [r5, #0x18] - movs r0, #4 - rsbs r0, r0, #0 - ands r0, r1 - orrs r0, r2 - strb r0, [r5, #0x18] - adds r2, r5, #0 - adds r2, #0x29 - ldrb r0, [r2] - movs r1, #7 - orrs r0, r1 - strb r0, [r2] - ldrb r1, [r5, #0xb] - adds r0, r3, #0 - ands r0, r1 - cmp r0, #0 - beq _080851E8 - adds r1, r5, #0 - adds r1, #0x7c - ldr r0, _080851E4 @ =0x0000FFFF - strh r0, [r1] - b _080851EE - .align 2, 0 -_080851E4: .4byte 0x0000FFFF -_080851E8: - adds r0, r5, #0 - adds r0, #0x7c - strh r3, [r0] -_080851EE: - ldrb r1, [r5, #0xb] - movs r0, #2 - ands r0, r1 - strb r0, [r5, #0x14] - ldrb r4, [r5, #0xa] - cmp r4, #3 - bne _0808521E - adds r0, r5, #0 - adds r0, #0x86 - ldrh r0, [r0] - bl CheckFlags - adds r1, r5, #0 - adds r1, #0x7a - strh r0, [r1] - lsls r0, r0, #0x10 - cmp r0, #0 - beq _0808521E - ldrb r0, [r5, #0x14] - adds r0, #2 - movs r1, #3 - ands r0, r1 - strb r0, [r5, #0x14] - strb r4, [r5, #0xc] -_0808521E: - ldrb r1, [r5, #0x14] - adds r0, r5, #0 - bl InitializeAnimation - adds r0, r5, #0 - adds r0, #0x38 - ldrb r0, [r0] - bl GetLayerByIndex - movs r1, #0x2e - ldrsh r2, [r5, r1] - ldr r3, _08085260 @ =gRoomControls - ldrh r1, [r3, #6] - subs r2, r2, r1 - asrs r2, r2, #4 - movs r4, #0x3f - ands r2, r4 - movs r6, #0x32 - ldrsh r1, [r5, r6] - ldrh r3, [r3, #8] - subs r1, r1, r3 - asrs r1, r1, #4 - ands r1, r4 - lsls r1, r1, #6 - orrs r2, r1 - lsls r2, r2, #1 - adds r2, #4 - adds r0, r0, r2 - str r0, [r5, #0x70] - adds r0, r5, #0 - bl sub_08085394 - pop {r4, r5, r6, pc} - .align 2, 0 -_08085260: .4byte gRoomControls - - thumb_func_start sub_08085264 -sub_08085264: @ 0x08085264 - push {r4, r5, lr} - adds r4, r0, #0 - adds r5, r4, #0 - adds r5, #0x86 - ldrh r0, [r5] - bl CheckFlags - cmp r0, #0 - beq _080852AE - movs r0, #2 - strb r0, [r4, #0xc] - movs r0, #8 - strb r0, [r4, #0xf] - ldrb r0, [r4, #0xa] - cmp r0, #1 - bne _0808528A - ldrh r0, [r5] - bl ClearFlag -_0808528A: - adds r0, r4, #0 - adds r0, #0x7c - ldrb r0, [r0] - ldrb r1, [r4, #0x14] - adds r0, r0, r1 - movs r1, #3 - ands r0, r1 - strb r0, [r4, #0x14] - ldrb r1, [r4, #0x14] - adds r0, r4, #0 - bl InitializeAnimation - adds r0, r4, #0 - bl sub_0808543C - ldr r0, _080852B0 @ =0x00000151 - bl sub_08004488 -_080852AE: - pop {r4, r5, pc} - .align 2, 0 -_080852B0: .4byte 0x00000151 - - thumb_func_start sub_080852B4 -sub_080852B4: @ 0x080852B4 - push {r4, r5, lr} - adds r5, r0, #0 - ldrb r0, [r5, #0xf] - subs r0, #1 - strb r0, [r5, #0xf] - lsls r0, r0, #0x18 - cmp r0, #0 - bne _08085300 - movs r4, #3 - movs r0, #3 - strb r0, [r5, #0xc] - ldrb r0, [r5, #0xe] - strb r0, [r5, #0xf] - adds r0, r5, #0 - adds r0, #0x86 - ldrh r0, [r0] - bl CheckFlags - adds r1, r5, #0 - adds r1, #0x7a - strh r0, [r1] - adds r0, r5, #0 - adds r0, #0x7c - ldrb r0, [r0] - ldrb r1, [r5, #0x14] - adds r0, r0, r1 - ands r0, r4 - strb r0, [r5, #0x14] - ldrb r1, [r5, #0x14] - adds r0, r5, #0 - bl InitializeAnimation - adds r0, r5, #0 - bl sub_08085394 - ldr r0, _08085304 @ =0x00000151 - bl sub_08004488 -_08085300: - pop {r4, r5, pc} - .align 2, 0 -_08085304: .4byte 0x00000151 - - thumb_func_start sub_08085308 -sub_08085308: @ 0x08085308 - push {r4, lr} - adds r4, r0, #0 - bl sub_080854A8 - cmp r0, #0 - bne _0808538C - ldrb r0, [r4, #0xa] - cmp r0, #2 - beq _08085324 - cmp r0, #2 - ble _08085354 - cmp r0, #3 - beq _08085338 - b _08085354 -_08085324: - adds r0, r4, #0 - adds r0, #0x86 - ldrh r0, [r0] - bl CheckFlags - cmp r0, #0 - bne _08085354 - movs r0, #1 - strb r0, [r4, #0xc] - b _0808538C -_08085338: - adds r0, r4, #0 - adds r0, #0x86 - ldrh r0, [r0] - bl CheckFlags - adds r1, r4, #0 - adds r1, #0x7a - ldrh r1, [r1] - cmp r0, r1 - bne _08085350 - movs r0, #0xff - b _08085352 -_08085350: - movs r0, #1 -_08085352: - strb r0, [r4, #0xf] -_08085354: - ldrb r0, [r4, #0xf] - subs r0, #1 - strb r0, [r4, #0xf] - lsls r0, r0, #0x18 - cmp r0, #0 - bne _0808538C - movs r0, #2 - strb r0, [r4, #0xc] - movs r0, #8 - strb r0, [r4, #0xf] - adds r0, r4, #0 - adds r0, #0x7c - ldrb r0, [r0] - ldrb r1, [r4, #0x14] - adds r0, r0, r1 - movs r1, #3 - ands r0, r1 - strb r0, [r4, #0x14] - ldrb r1, [r4, #0x14] - adds r0, r4, #0 - bl InitializeAnimation - adds r0, r4, #0 - bl sub_0808543C - ldr r0, _08085390 @ =0x00000151 - bl sub_08004488 -_0808538C: - pop {r4, pc} - .align 2, 0 -_08085390: .4byte 0x00000151 - - thumb_func_start sub_08085394 -sub_08085394: @ 0x08085394 - push {r4, r5, r6, r7, lr} - mov r7, sl - mov r6, sb - mov r5, r8 - push {r5, r6, r7} - adds r7, r0, #0 - ldr r0, _08085430 @ =gUnk_081205E0 - ldrb r2, [r7, #0x14] - lsrs r2, r2, #1 - lsls r2, r2, #1 - adds r0, r2, r0 - ldrh r0, [r0] - mov sl, r0 - ldr r0, _08085434 @ =gUnk_080B4488 - adds r2, r2, r0 - ldr r0, [r7, #0x70] - mov sb, r0 - movs r1, #0x2e - ldrsh r4, [r7, r1] - ldr r1, _08085438 @ =gRoomControls - ldrh r0, [r1, #6] - subs r4, r4, r0 - asrs r4, r4, #4 - movs r3, #0x3f - ands r4, r3 - movs r5, #0x32 - ldrsh r0, [r7, r5] - ldrh r1, [r1, #8] - subs r0, r0, r1 - asrs r0, r0, #4 - ands r0, r3 - lsls r0, r0, #6 - orrs r4, r0 - ldrb r2, [r2] - lsls r2, r2, #0x18 - asrs r2, r2, #0x18 - mov r8, r2 - lsls r5, r2, #1 - mov r1, sb - subs r0, r1, r5 - ldrh r1, [r0] - adds r0, r7, #0 - adds r0, #0x74 - strh r1, [r0] - subs r1, r4, r2 - adds r6, r7, #0 - adds r6, #0x38 - ldrb r2, [r6] - mov r0, sl - bl SetTile - mov r1, sb - ldrh r0, [r1] - adds r1, r7, #0 - adds r1, #0x76 - strh r0, [r1] - ldrb r2, [r6] - mov r0, sl - adds r1, r4, #0 - bl SetTile - add r5, sb - ldrh r1, [r5] - adds r0, r7, #0 - adds r0, #0x78 - strh r1, [r0] - add r4, r8 - ldrb r2, [r6] - mov r0, sl - adds r1, r4, #0 - bl SetTile - pop {r3, r4, r5} - mov r8, r3 - mov sb, r4 - mov sl, r5 - pop {r4, r5, r6, r7, pc} - .align 2, 0 -_08085430: .4byte gUnk_081205E0 -_08085434: .4byte gUnk_080B4488 -_08085438: .4byte gRoomControls - - thumb_func_start sub_0808543C -sub_0808543C: @ 0x0808543C - push {r4, r5, r6, r7, lr} - adds r7, r0, #0 - ldr r0, _080854A0 @ =gUnk_080B4488 - ldrb r2, [r7, #0x14] - lsrs r2, r2, #1 - lsls r2, r2, #1 - adds r2, r2, r0 - movs r0, #0x2e - ldrsh r4, [r7, r0] - ldr r1, _080854A4 @ =gRoomControls - ldrh r0, [r1, #6] - subs r4, r4, r0 - asrs r4, r4, #4 - movs r3, #0x3f - ands r4, r3 - movs r5, #0x32 - ldrsh r0, [r7, r5] - ldrh r1, [r1, #8] - subs r0, r0, r1 - asrs r0, r0, #4 - ands r0, r3 - lsls r0, r0, #6 - orrs r4, r0 - adds r0, r7, #0 - adds r0, #0x74 - ldrh r0, [r0] - movs r6, #0 - ldrsb r6, [r2, r6] - subs r1, r4, r6 - adds r5, r7, #0 - adds r5, #0x38 - ldrb r2, [r5] - bl SetTile - adds r0, r7, #0 - adds r0, #0x76 - ldrh r0, [r0] - ldrb r2, [r5] - adds r1, r4, #0 - bl SetTile - adds r0, r7, #0 - adds r0, #0x78 - ldrh r0, [r0] - adds r4, r4, r6 - ldrb r2, [r5] - adds r1, r4, #0 - bl SetTile - pop {r4, r5, r6, r7, pc} - .align 2, 0 -_080854A0: .4byte gUnk_080B4488 -_080854A4: .4byte gRoomControls - - thumb_func_start sub_080854A8 -sub_080854A8: @ 0x080854A8 - push {r4, lr} - ldr r2, _080854E0 @ =gUnk_081205E0 - ldrb r1, [r0, #0x14] - lsrs r1, r1, #1 - lsls r1, r1, #1 - adds r2, r1, r2 - ldrh r3, [r2] - adds r4, r3, #0 - ldr r2, _080854E4 @ =gUnk_080B4488 - adds r1, r1, r2 - ldr r2, [r0, #0x70] - movs r0, #0 - ldrsb r0, [r1, r0] - lsls r1, r0, #1 - subs r0, r2, r1 - ldrh r0, [r0] - cmp r3, r0 - bne _080854E8 - ldrh r0, [r2] - cmp r3, r0 - bne _080854E8 - adds r0, r1, r2 - ldrh r0, [r0] - cmp r4, r0 - bne _080854E8 - movs r0, #0 - b _080854EA - .align 2, 0 -_080854E0: .4byte gUnk_081205E0 -_080854E4: .4byte gUnk_080B4488 -_080854E8: - movs r0, #1 -_080854EA: - pop {r4, pc} diff --git a/include/entity.h b/include/entity.h index 8a04bc42..fb7f68a3 100644 --- a/include/entity.h +++ b/include/entity.h @@ -168,6 +168,7 @@ extern void GetNextFrame(Entity*); extern u32 LoadExtraSpriteData(Entity*, SpriteLoadData*); extern void SetExtraSpriteFrame(Entity*, u32, u32); extern void SetSpriteSubEntryOffsetData1(Entity*, u32, u32); +extern void SetSpriteSubEntryOffsetData2(Entity*, u32, u32); extern Entity* CreateEnemy(u32 subtype, u32 form); extern Entity* CreateObject(u32 subtype, u32 form, u32 parameter); diff --git a/linker.ld b/linker.ld index 032b66c1..479604b6 100644 --- a/linker.ld +++ b/linker.ld @@ -551,6 +551,7 @@ SECTIONS { asm/brocco.o(.text); asm/sittingPerson.o(.text); asm/pina.o(.text); + src/guard.o(.text); asm/guardWithSpear.o(.text); asm/castleMaid.o(.text); asm/din.o(.text); @@ -676,7 +677,7 @@ SECTIONS { asm/object10.o(.text); asm/object11.o(.text); asm/object12.o(.text); - asm/railtrack.o(.text); + src/railtrack.o(.text); asm/lilypadLarge.o(.text); asm/object15.o(.text); asm/floatingPlatform.o(.text); diff --git a/src/guard.c b/src/guard.c new file mode 100644 index 00000000..765a89dd --- /dev/null +++ b/src/guard.c @@ -0,0 +1,196 @@ +#include "global.h" +#include "entity.h" +#include "link.h" +#include "flags.h" +#include "textbox.h" +#include "room.h" + +typedef struct { + u32 unk; + u32 entityCount; +} struct_03003DB8; + +typedef struct { + u8 filler[8]; + u8 unk; +} struct_030010A0; + +typedef struct { + u32 unk; + u32 unk2; +} struct_08064050; + +extern void sub_08063D24(Entity*); +extern void sub_0806ED78(Entity*); +extern u32 GetFacingDirection(Entity*, Entity*); +extern u32 sub_0806F5A4(u32); +extern void sub_0806EE20(Entity*); +extern void sub_08064428(Entity*); +extern u32 sub_0805ACC0(Entity*); +extern void sub_0807DDAC(Entity*, u32); +extern void sub_0807DDE4(Entity*); +extern void sub_0807000C(Entity*); + +extern void (*const gUnk_0810F544[])(Entity*); +extern void (*const gUnk_0810F550[])(Entity*); + +// entity count +extern u8 gUnk_03003DBC; +extern SpriteLoadData gUnk_0810F524[]; +extern void* gUnk_0810F6BC[]; +extern struct_030010A0 gUnk_030010A0; + +void Guard(Entity *this) +{ + if ((this->flags & 2) != 0) { + gUnk_0810F544[this->action](this); + } + else { + sub_08063D24(this); + } +} + +void sub_08063D24(Entity *this) +{ + gUnk_0810F550[this->action](this); + sub_0806ED78(this); +} + +NAKED +void sub_08063D44(Entity* this) { + asm(".include \"asm/non_matching/guard/sub_08063D44.inc\""); +} + +void sub_08063DC8(Entity *this) +{ + if ((this->entityType).form == 0xff) { + this->action = 2; + this->actionDelay = 0x1e; + this->animationState = sub_0806F5A4(GetFacingDirection(this,&gLinkEntity)); + InitAnimationForceUpdate(this, this->animationState + 4); + } + else { + sub_0806EE20(this); + if (this->field_0x3e != this->animationState) { + this->animationState = this->field_0x3e; + InitializeAnimation(this, this->animationState + 4); + } + else { + GetNextFrame(this); + } + if (this->interactType != 0) { + this->action = 3; + this->interactType = 0; + InitializeAnimation(this, sub_0806F5A4(GetFacingDirection(this,&gLinkEntity))); + sub_08064428(this); + } + } +} + +void sub_08063E54(Entity *this) +{ + if (--this->actionDelay == 0) { + SetRoomFlag(0xf); + } +} + +void sub_08063E6C(Entity *this) +{ + if ((gTextBox.doTextBox & 0x7f) == 0) { + this->action = 1; + InitializeAnimation(this, this->animationState + 4); + } +} + +NAKED +void sub_08063E90(Entity* this) { + asm(".include \"asm/non_matching/guard/sub_08063E90.inc\""); +} + +void sub_08063F20(Entity *this) +{ + sub_0807DDAC(this, 0); + sub_0807DDE4(this); + GetNextFrame(this); + if (this->interactType != 0) { + this->action++; + this->interactType = 0; + InitializeAnimation(this, sub_0806F5A4(GetFacingDirection(this, &gLinkEntity)) + *(s8 *)&this->field_0x70); + sub_08064428(this); + } +} + +void sub_08063F78(Entity *this) +{ + if ((gTextBox.doTextBox & 0x7f) == 0) { + this->action = this->action - 1; + InitializeAnimation(this,(this->animationState >> 1) + 4 + *(s8 *)&this->field_0x70); + } +} + +void Guard_Head(Entity *this) +{ + u8 bVar1; + u32 uVar2; + u32 pbVar3; + u32 uVar4; + u32 pbVar5; + + uVar2 = this->frames.all & 0x3f; + pbVar5 = (this->frameIndex & 0x3f); + uVar4 = this->frameSpriteSettings & 0x3f; + if ((this->entityType).subtype == 0x15) { + if ((this->frameIndex & 0x40) != 0) { + pbVar5 = pbVar5 + 0x21; + pbVar3 = 0xffffffff; + uVar4 = 0; + } + else { + pbVar3 = (uVar2 + 0x19); + if ((this->frameSpriteSettings & 0x3f) != 0) { + uVar4 += 0x1f; + } + } + } + else { + pbVar3 = (uVar2 + 0x46); + pbVar5 = pbVar5 + 0x2d; + if ((this->frameSpriteSettings & 0x3f) != 0) { + uVar4 += 0x4c; + } + } + uVar4--; + SetExtraSpriteFrame(this, 0, pbVar3); + SetExtraSpriteFrame(this, 1, pbVar5); + SetExtraSpriteFrame(this, 2, uVar4); + SetSpriteSubEntryOffsetData1(this, 1, 0); + SetSpriteSubEntryOffsetData2(this, 1, 2); + sub_0807000C(this); +} + +void sub_08064030(Entity *arg0,Entity *arg1) +{ + *(u32*)&arg1->animationState = (-gRoomVars.greatFairyState | gRoomVars.greatFairyState) >> 0x1f; +} + +void sub_08064044(void) +{ + gUnk_030010A0.unk = 1; +} + +void sub_08064050(Entity *arg0, struct_08064050 *arg1) +{ + u32 unk; + + arg1->unk2 = 0; + switch (arg0->entityType.parameter) { + case 0x11: + arg1->unk2 = 1; + break; + case 0x12: + arg1->unk2 = 2; + break; + case 0x13: + arg1->unk2 = 3; + } +} \ No newline at end of file diff --git a/src/railtrack.c b/src/railtrack.c new file mode 100644 index 00000000..3d18f068 --- /dev/null +++ b/src/railtrack.c @@ -0,0 +1,148 @@ +#include "global.h" +#include "entity.h" +#include "room.h" +#include "flags.h" + +extern u32* GetLayerByIndex(u32); +extern void sub_08085394(Entity*); +extern void sub_0808543C(Entity*); +extern void sub_08004488(u32); +extern u32 sub_080854A8(Entity*); +extern void SetTile(u32, u32, u32); + +extern void (*const gUnk_081205D0[])(Entity*); + +extern u16 gUnk_081205E0[]; +extern s8 gUnk_080B4488[]; + +void Railtrack(Entity* this) { + gUnk_081205D0[this->action](this); +} + +void sub_080851AC(Entity* this) { + u32 uVar1; + + this->action = 1; + this->spriteSettings.b.draw = 1; + this->spritePriority.b0 = 7; + if ((this->entityType.parameter & 1) != 0) { + this->field_0x7c.HALF.LO = -1; + } else { + this->field_0x7c.HALF.LO = 1; + } + this->animationState = this->entityType.parameter & 2; + if ((this->entityType).form == 3) { + uVar1 = CheckFlags(this->field_0x86); + this->field_0x7a = uVar1; + if ((u16)(uVar1 & -1) != 0) { + this->animationState = (this->animationState + 2) & 3; + this->action = 3; + } + } + InitializeAnimation(this, this->animationState); + this->field_0x70 = (u32)GetLayerByIndex(this->collisionLayer) + 4 + (COORD_TO_TILE(this) * 2); + sub_08085394(this); +} + +void sub_08085264(Entity* this) { + if (CheckFlags(this->field_0x86)) { + this->action = 2; + this->field_0xf = 8; + if (this->entityType.form == 1) { + ClearFlag(this->field_0x86); + } + this->animationState = (this->animationState + *(u8*)&this->field_0x7c) & 3; + InitializeAnimation(this, this->animationState); + sub_0808543C(this); + sub_08004488(0x151); + } +} + +void sub_080852B4(Entity* this) { + if (--this->field_0xf == 0) { + this->action = 3; + this->field_0xf = this->actionDelay; + this->field_0x7a = CheckFlags(this->field_0x86); + this->animationState = (this->animationState + *(u8*)&this->field_0x7c) & 3; + InitializeAnimation(this, this->animationState); + sub_08085394(this); + sub_08004488(0x151); + } +} + +void sub_08085308(Entity* this) { + if (sub_080854A8(this) == 0) { + switch (this->entityType.form) { + case 0: + case 1: + break; + case 2: + if (CheckFlags(this->field_0x86) == 0) { + this->action = 1; + return; + } + break; + case 3: + if (CheckFlags(this->field_0x86) == *(u16*)&this->field_0x7a) { + this->field_0xf = 0xff; + } else { + this->field_0xf = 1; + } + } + + if (--this->field_0xf == 0) { + this->action = 2; + this->field_0xf = 8; + this->animationState = (this->animationState + *(u8*)&this->field_0x7c) & 3; + InitializeAnimation(this, this->animationState); + sub_0808543C(this); + sub_08004488(0x151); + } + } +} + +#if 0 +void sub_08085394(Entity *this) +{ + u32 uVar1; + u16 *layerData; + u32 iVar3; + u32 uVar4; + u8 *pbVar5; + + uVar1 = gUnk_081205E0[this->animationState / 2]; + iVar3 = this->animationState / 2; + layerData = *(u16 **)&this->field_0x70; + uVar4 = COORD_TO_TILE(this); + this->field_0x74 = layerData[gUnk_080B4488[iVar3]]; + pbVar5 = &this->collisionLayer; + SetTile(uVar1, uVar4 - iVar3, *pbVar5); + this->field_0x76 = layerData[0]; + SetTile(uVar1,uVar4, *pbVar5); + *(u16 *)&this->field_0x78 = layerData[iVar3]; + SetTile(uVar1,uVar4 + iVar3, *pbVar5); +} +#endif + +NAKED +void sub_08085394(Entity* this) { + asm(".include \"asm/non_matching/railtrack/sub_08085394.inc\""); +} + +void sub_0808543C(Entity *this) +{ + s8 *cVar1; + u32 uVar2; + s8 temp; + + temp = gUnk_080B4488[(this->animationState >> 1) << 1]; + uVar2 = COORD_TO_TILE(this); + SetTile(this->field_0x74, uVar2 - temp, this->collisionLayer); + SetTile(this->field_0x76, uVar2, this->collisionLayer); + SetTile(this->field_0x78.HWORD, uVar2 + temp, this->collisionLayer); +} + +NAKED +u32 sub_080854A8(Entity *this) { + asm(".include \"asm/non_matching/railtrack/sub_080854A8.inc\""); +} \ No newline at end of file From 370c63e21e6f12457f98bf8dbe9085553f2dd6a5 Mon Sep 17 00:00:00 2001 From: theo3 Date: Sun, 12 Jul 2020 16:28:53 -0700 Subject: [PATCH 010/158] metalDoor.c OK --- asm/metalDoor.s | 301 ----------------------------------------------- include/entity.h | 2 +- linker.ld | 2 +- src/item11.c | 4 +- src/metalDoor.c | 115 ++++++++++++++++++ src/object49.c | 4 +- src/railtrack.c | 2 +- 7 files changed, 122 insertions(+), 308 deletions(-) delete mode 100644 asm/metalDoor.s create mode 100644 src/metalDoor.c diff --git a/asm/metalDoor.s b/asm/metalDoor.s deleted file mode 100644 index 9a8adb58..00000000 --- a/asm/metalDoor.s +++ /dev/null @@ -1,301 +0,0 @@ - .include "asm/macros.inc" - - .include "constants/constants.inc" - - .syntax unified - - .text - - - thumb_func_start MetalDoor -MetalDoor: @ 0x080A066C - push {lr} - ldr r2, _080A0680 @ =gUnk_0812493C - ldrb r1, [r0, #0xc] - lsls r1, r1, #2 - adds r1, r1, r2 - ldr r1, [r1] - bl _call_via_r1 - pop {pc} - .align 2, 0 -_080A0680: .4byte gUnk_0812493C - - thumb_func_start sub_080A0684 -sub_080A0684: @ 0x080A0684 - push {r4, r5, lr} - adds r4, r0, #0 - adds r2, r4, #0 - adds r2, #0x84 - ldrh r1, [r2] - ldr r0, _080A070C @ =0x0000FFFF - cmp r1, r0 - beq _080A06A2 - adds r0, r1, #0 - bl CheckFlags - cmp r0, #0 - beq _080A06A2 - bl DeleteThisEntity -_080A06A2: - movs r0, #1 - strb r0, [r4, #0xc] - movs r2, #0 - movs r0, #0xc0 - lsls r0, r0, #2 - strh r0, [r4, #0x24] - ldrb r1, [r4, #0x18] - movs r0, #4 - rsbs r0, r0, #0 - ands r0, r1 - strb r2, [r4, #0x1e] - movs r1, #0x80 - orrs r0, r1 - strb r0, [r4, #0x18] - ldr r0, _080A0710 @ =gUnk_080FD180 - str r0, [r4, #0x48] - adds r2, r4, #0 - adds r2, #0x29 - ldrb r1, [r2] - movs r0, #8 - rsbs r0, r0, #0 - ands r0, r1 - movs r1, #5 - orrs r0, r1 - strb r0, [r2] - ldrh r1, [r4, #0x2e] - adds r0, r4, #0 - adds r0, #0x70 - strh r1, [r0] - ldrh r0, [r4, #0x32] - adds r1, r4, #0 - adds r1, #0x72 - strh r0, [r1] - movs r0, #0x2e - ldrsh r1, [r4, r0] - ldr r2, _080A0714 @ =gRoomControls - ldrh r0, [r2, #6] - subs r1, r1, r0 - asrs r1, r1, #4 - movs r3, #0x3f - ands r1, r3 - movs r5, #0x32 - ldrsh r0, [r4, r5] - ldrh r2, [r2, #8] - subs r0, r0, r2 - asrs r0, r0, #4 - ands r0, r3 - lsls r0, r0, #6 - orrs r1, r0 - adds r0, r4, #0 - adds r0, #0x74 - strh r1, [r0] - pop {r4, r5, pc} - .align 2, 0 -_080A070C: .4byte 0x0000FFFF -_080A0710: .4byte gUnk_080FD180 -_080A0714: .4byte gRoomControls - - thumb_func_start sub_080A0718 -sub_080A0718: @ 0x080A0718 - push {r4, lr} - adds r4, r0, #0 - movs r1, #2 - bl sub_08083734 - cmp r0, #0 - beq _080A074A - movs r2, #0 - movs r0, #2 - strb r0, [r4, #0xc] - movs r0, #0xc - strb r0, [r4, #0xe] - ldrb r1, [r4, #0x18] - subs r0, #0x10 - ands r0, r1 - movs r1, #1 - orrs r0, r1 - strb r0, [r4, #0x18] - strb r2, [r4, #0x15] - ldrh r0, [r4, #0x32] - adds r0, #0x24 - strh r0, [r4, #0x32] - adds r0, r4, #0 - bl sub_080A080C -_080A074A: - pop {r4, pc} - - thumb_func_start sub_080A074C -sub_080A074C: @ 0x080A074C - push {r4, lr} - adds r4, r0, #0 - bl sub_0806F69C - ldrb r0, [r4, #0xe] - subs r0, #1 - strb r0, [r4, #0xe] - lsls r0, r0, #0x18 - lsrs r1, r0, #0x18 - cmp r1, #0 - bne _080A07B6 - movs r0, #3 - strb r0, [r4, #0xc] - strh r1, [r4, #0x36] - adds r0, r4, #0 - adds r0, #0x70 - ldrh r0, [r0] - strh r0, [r4, #0x2e] - adds r0, r4, #0 - adds r0, #0x72 - ldrh r0, [r0] - strh r0, [r4, #0x32] - adds r0, r4, #0 - movs r1, #0x11 - movs r2, #0x40 - bl CreateFx - adds r1, r0, #0 - cmp r1, #0 - beq _080A0794 - ldrh r0, [r1, #0x2e] - adds r0, #0xc - strh r0, [r1, #0x2e] - ldrh r0, [r1, #0x32] - subs r0, #0xc - strh r0, [r1, #0x32] -_080A0794: - adds r0, r4, #0 - movs r1, #0x11 - movs r2, #0x40 - bl CreateFx - adds r1, r0, #0 - cmp r1, #0 - beq _080A07B0 - ldrh r0, [r1, #0x2e] - subs r0, #0xc - strh r0, [r1, #0x2e] - ldrh r0, [r1, #0x32] - subs r0, #0xc - strh r0, [r1, #0x32] -_080A07B0: - ldr r0, _080A07B8 @ =0x0000010B - bl sub_08004488 -_080A07B6: - pop {r4, pc} - .align 2, 0 -_080A07B8: .4byte 0x0000010B - - thumb_func_start sub_080A07BC -sub_080A07BC: @ 0x080A07BC - push {r4, lr} - adds r4, r0, #0 - adds r0, #0x86 - ldrh r0, [r0] - bl CheckFlags - cmp r0, #0 - beq _080A07EA - movs r0, #4 - strb r0, [r4, #0xc] - movs r0, #0xc - strb r0, [r4, #0xe] - movs r0, #0x10 - strb r0, [r4, #0x15] - ldrh r0, [r4, #0x32] - adds r0, #2 - strh r0, [r4, #0x32] - adds r0, r4, #0 - bl sub_080A0870 - ldr r0, _080A07EC @ =0x0000010B - bl PlaySFX -_080A07EA: - pop {r4, pc} - .align 2, 0 -_080A07EC: .4byte 0x0000010B - - thumb_func_start sub_080A07F0 -sub_080A07F0: @ 0x080A07F0 - push {r4, lr} - adds r4, r0, #0 - bl sub_0806F69C - ldrb r0, [r4, #0xe] - subs r0, #1 - strb r0, [r4, #0xe] - lsls r0, r0, #0x18 - cmp r0, #0 - bne _080A0808 - bl DeleteThisEntity -_080A0808: - pop {r4, pc} - .align 2, 0 - - thumb_func_start sub_080A080C -sub_080A080C: @ 0x080A080C - push {r4, r5, r6, lr} - adds r4, r0, #0 - adds r6, r4, #0 - adds r6, #0x74 - ldrh r0, [r6] - subs r0, #1 - adds r5, r4, #0 - adds r5, #0x38 - ldrb r1, [r5] - bl sub_080001DA - adds r1, r4, #0 - adds r1, #0x76 - strh r0, [r1] - ldrh r0, [r6] - ldrb r1, [r5] - bl sub_080001DA - adds r1, r4, #0 - adds r1, #0x78 - strh r0, [r1] - ldrh r0, [r6] - adds r0, #1 - ldrb r1, [r5] - bl sub_080001DA - adds r1, r4, #0 - adds r1, #0x7a - strh r0, [r1] - ldr r4, _080A086C @ =0x00004022 - ldrh r1, [r6] - subs r1, #1 - ldrb r2, [r5] - adds r0, r4, #0 - bl SetTile - ldrh r1, [r6] - ldrb r2, [r5] - adds r0, r4, #0 - bl SetTile - ldrh r1, [r6] - adds r1, #1 - ldrb r2, [r5] - adds r0, r4, #0 - bl SetTile - pop {r4, r5, r6, pc} - .align 2, 0 -_080A086C: .4byte 0x00004022 - - thumb_func_start sub_080A0870 -sub_080A0870: @ 0x080A0870 - push {r4, r5, r6, lr} - adds r6, r0, #0 - adds r0, #0x76 - ldrh r0, [r0] - adds r5, r6, #0 - adds r5, #0x74 - ldrh r1, [r5] - subs r1, #1 - adds r4, r6, #0 - adds r4, #0x38 - ldrb r2, [r4] - bl SetTile - adds r0, r6, #0 - adds r0, #0x78 - ldrh r0, [r0] - ldrh r1, [r5] - ldrb r2, [r4] - bl SetTile - adds r0, r6, #0 - adds r0, #0x7a - ldrh r0, [r0] - ldrh r1, [r5] - adds r1, #1 - ldrb r2, [r4] - bl SetTile - pop {r4, r5, r6, pc} - .align 2, 0 diff --git a/include/entity.h b/include/entity.h index fb7f68a3..661e8343 100644 --- a/include/entity.h +++ b/include/entity.h @@ -140,7 +140,7 @@ typedef struct Entity { /*0x6c*/ u8 field_0x6c; /*0x6d*/ u8 field_0x6d; /*0x6e*/ u8 filler4[2]; - /*0x70*/ u32 field_0x70; + /*0x70*/ union SplitWord field_0x70; /*0x74*/ u16 field_0x74; /*0x76*/ u16 field_0x76; /*0x78*/ union SplitHWord field_0x78; diff --git a/linker.ld b/linker.ld index 479604b6..b48e5643 100644 --- a/linker.ld +++ b/linker.ld @@ -842,7 +842,7 @@ SECTIONS { asm/objectAD.o(.text); asm/floatingBlock.o(.text); asm/objectAF.o(.text); - asm/metalDoor.o(.text); + src/metalDoor.o(.text); asm/jailBars.o(.text); asm/objectB2.o(.text); asm/objectB3.o(.text); diff --git a/src/item11.c b/src/item11.c index 362ba771..0af53106 100644 --- a/src/item11.c +++ b/src/item11.c @@ -64,9 +64,9 @@ void sub_08018CBC(Entity *this) this->field_0x44 = gUnk_080B3DE0[(this->entityType).form * 2 + 1]; this->field_0x40 = 0x1b; this->boundingBox = gUnk_080B3DE8[(this->entityType).form]; - (u32 *)gLinkEntity.field_0x70 = this; + (u32 *)gLinkEntity.field_0x70.WORD = this; sub_08078CD0(&gLinkEntity); - (u32 *)gLinkEntity.field_0x70 = pEVar3; + (u32 *)gLinkEntity.field_0x70.WORD = pEVar3; InitializeAnimation(this, (this->entityType).form + 10); sub_08018FA0(this); } diff --git a/src/metalDoor.c b/src/metalDoor.c new file mode 100644 index 00000000..1f18a272 --- /dev/null +++ b/src/metalDoor.c @@ -0,0 +1,115 @@ +#include "global.h" +#include "entity.h" +#include "room.h" +#include "flags.h" + +extern u32 sub_08083734(Entity*, u32); +extern void sub_080A080C(Entity*); +extern void sub_0806F69C(Entity*); +extern void sub_08004488(u32); +extern void sub_080A0870(Entity*); +extern void PlaySFX(u32); +extern u32 sub_080001DA(u32, u32); +extern void SetTile(u32, u32, u32); + +extern void (*const gUnk_0812493C[])(Entity*); + +extern BoundingBox gUnk_080FD180; + +void MetalDoor(Entity* this) { + gUnk_0812493C[this->action](this); +} + +void sub_080A0684(Entity *this) +{ + if ((this->cutsceneBeh.HWORD != 0xffff) && CheckFlags(this->cutsceneBeh.HWORD)) { + DeleteThisEntity(); + } + this->action = 1; + this->nonPlanarMovement = 0x300; + this->spriteSettings.b.draw = 0; + this->frameIndex = 0; + this->spriteSettings.b.flipY = 1; + this->boundingBox = &gUnk_080FD180; + this->spritePriority.b0 = 5; + this->field_0x70.HALF.LO = this->x.HALF.HI; + this->field_0x70.HALF.HI = this->y.HALF.HI; + this->field_0x74 = COORD_TO_TILE(this); +} + +void sub_080A0718(Entity *this) +{ + if (sub_08083734(this, 2) != 0) { + this->action = 2; + this->actionDelay = 0xc; + this->spriteSettings.b.draw = TRUE; + this->direction = 0; + this->y.HALF.HI += 0x24; + sub_080A080C(this); + } +} + +void sub_080A074C(Entity *this) +{ + u8 bVar1; + Entity *ent; + + sub_0806F69C(this); + + if (--this->actionDelay == 0) { + this->action = 3; + this->height.HALF.HI = 0; + this->x.HALF.HI = this->field_0x70.HALF.LO; + this->y.HALF.HI = this->field_0x70.HALF.HI; + ent = CreateFx(this, 0x11, 0x40); + if (ent != NULL) { + ent->x.HALF.HI += 0xc; + ent->y.HALF.HI -= 0xc; + } + ent = CreateFx(this, 0x11, 0x40); + if (ent != NULL) { + ent->x.HALF.HI -= 0xc; + ent->y.HALF.HI -= 0xc; + } + sub_08004488(0x10b); + } +} + +void sub_080A07BC(Entity *this) +{ + if (CheckFlags(this->field_0x86)) { + this->action = 4; + this->actionDelay = 0xc; + this->direction = 0x10; + this->y.HALF.HI += 2; + sub_080A0870(this); + PlaySFX(0x10b); + } +} + +void sub_080A07F0(Entity *this) +{ + + sub_0806F69C(this); + + if (--this->actionDelay == 0) { + DeleteThisEntity(); + } +} + +void sub_080A080C(Entity *this) +{ + this->field_0x76 = sub_080001DA(this->field_0x74 - 1, this->collisionLayer); + this->field_0x78.HWORD = sub_080001DA(this->field_0x74, this->collisionLayer); + this->field_0x7a = sub_080001DA(this->field_0x74 + 1, this->collisionLayer); + SetTile(0x4022, this->field_0x74 - 1, this->collisionLayer); + SetTile(0x4022, this->field_0x74, this->collisionLayer); + SetTile(0x4022, this->field_0x74 + 1, this->collisionLayer); +} + +void sub_080A0870(Entity *this) +{ + SetTile(this->field_0x76, this->field_0x74 - 1, this->collisionLayer); + SetTile(this->field_0x78.HWORD, this->field_0x74, this->collisionLayer); + SetTile(this->field_0x7a, this->field_0x74 + 1, this->collisionLayer); +} \ No newline at end of file diff --git a/src/object49.c b/src/object49.c index 68527a76..d9551953 100644 --- a/src/object49.c +++ b/src/object49.c @@ -112,7 +112,7 @@ void sub_0808F244(Entity *this) this->height.WORD = 0; *(u32 *)&this->field_0x74 = 0x80 - this->parent->height.HALF.HI; *(u32 *)&this->field_0x78 = 0x100 - this->parent->height.HALF.HI; - *(u32 *)&this->field_0x70 = *((u8 *)&this->parent->field_0x7c + 3); + *(u32 *)&this->field_0x70.WORD = *((u8 *)&this->parent->field_0x7c + 3); sub_0808F2B0(this); if ((this->parent->field_0x6d & 2) != 0) { DeleteThisEntity(); @@ -121,7 +121,7 @@ void sub_0808F244(Entity *this) void sub_0808F2B0(Entity *this) { - sub_0805EC9C(this, *(u32 *)&this->field_0x74, *(u32 *)&this->field_0x78, this->field_0x70); + sub_0805EC9C(this, *(u32 *)&this->field_0x74, *(u32 *)&this->field_0x78, this->field_0x70.WORD); } void sub_0808F2C0(Entity *this) diff --git a/src/railtrack.c b/src/railtrack.c index 3d18f068..95c418f4 100644 --- a/src/railtrack.c +++ b/src/railtrack.c @@ -40,7 +40,7 @@ void sub_080851AC(Entity* this) { } } InitializeAnimation(this, this->animationState); - this->field_0x70 = (u32)GetLayerByIndex(this->collisionLayer) + 4 + (COORD_TO_TILE(this) * 2); + this->field_0x70.WORD = (u32)GetLayerByIndex(this->collisionLayer) + 4 + (COORD_TO_TILE(this) * 2); sub_08085394(this); } From 4f20b61b70c667d27e4330c5e7200d9f9649a8fd Mon Sep 17 00:00:00 2001 From: theo3 Date: Sun, 12 Jul 2020 17:14:46 -0700 Subject: [PATCH 011/158] smoke.c, teachers.c OK --- asm/smoke.s | 142 ----------------------------- asm/teachers.s | 240 ------------------------------------------------- linker.ld | 4 +- src/smoke.c | 60 +++++++++++++ src/teachers.c | 113 +++++++++++++++++++++++ 5 files changed, 175 insertions(+), 384 deletions(-) delete mode 100644 asm/smoke.s delete mode 100644 asm/teachers.s create mode 100644 src/smoke.c create mode 100644 src/teachers.c diff --git a/asm/smoke.s b/asm/smoke.s deleted file mode 100644 index 072966fe..00000000 --- a/asm/smoke.s +++ /dev/null @@ -1,142 +0,0 @@ - .include "asm/macros.inc" - - .include "constants/constants.inc" - - .syntax unified - - .text - - - thumb_func_start Smoke -Smoke: @ 0x0808A3F4 - push {lr} - ldr r2, _0808A408 @ =gUnk_08121060 - ldrb r1, [r0, #0xa] - lsls r1, r1, #2 - adds r1, r1, r2 - ldr r1, [r1] - bl _call_via_r1 - pop {pc} - .align 2, 0 -_0808A408: .4byte gUnk_08121060 - - thumb_func_start sub_0808A40C -sub_0808A40C: @ 0x0808A40C - push {r4, r5, lr} - adds r4, r0, #0 - ldrb r0, [r4, #0xc] - cmp r0, #0 - bne _0808A41E - movs r0, #1 - strb r0, [r4, #0xc] - movs r0, #0x28 - strb r0, [r4, #0xe] -_0808A41E: - ldrb r0, [r4, #0xe] - subs r0, #1 - strb r0, [r4, #0xe] - lsls r0, r0, #0x18 - cmp r0, #0 - bne _0808A466 - bl Random - movs r1, #0x1f - ands r0, r1 - movs r1, #0x40 - subs r1, r1, r0 - strb r1, [r4, #0xe] - movs r0, #0x2d - movs r1, #1 - movs r2, #0 - bl CreateObject - adds r5, r0, #0 - cmp r5, #0 - beq _0808A466 - adds r0, r4, #0 - adds r1, r5, #0 - bl CopyPosition - bl Random - ldr r2, _0808A468 @ =gUnk_08121068 - movs r1, #7 - ands r1, r0 - adds r1, r1, r2 - movs r0, #0 - ldrsb r0, [r1, r0] - ldrh r1, [r5, #0x2e] - adds r0, r0, r1 - strh r0, [r5, #0x2e] -_0808A466: - pop {r4, r5, pc} - .align 2, 0 -_0808A468: .4byte gUnk_08121068 - - thumb_func_start sub_0808A46C -sub_0808A46C: @ 0x0808A46C - push {lr} - ldr r2, _0808A480 @ =gUnk_08121070 - ldrb r1, [r0, #0xc] - lsls r1, r1, #2 - adds r1, r1, r2 - ldr r1, [r1] - bl _call_via_r1 - pop {pc} - .align 2, 0 -_0808A480: .4byte gUnk_08121070 - - thumb_func_start sub_0808A484 -sub_0808A484: @ 0x0808A484 - push {r4, lr} - movs r3, #1 - movs r1, #1 - strb r1, [r0, #0xc] - ldrb r2, [r0, #0x18] - subs r1, #5 - ands r1, r2 - orrs r1, r3 - strb r1, [r0, #0x18] - movs r1, #0x40 - strh r1, [r0, #0x24] - movs r1, #6 - strb r1, [r0, #0x15] - ldrb r3, [r0, #0x19] - movs r2, #0x3f - adds r1, r2, #0 - ands r1, r3 - movs r4, #0x40 - orrs r1, r4 - strb r1, [r0, #0x19] - movs r1, #0x29 - adds r1, r1, r0 - mov ip, r1 - ldrb r3, [r1] - movs r1, #8 - rsbs r1, r1, #0 - ands r1, r3 - mov r3, ip - strb r1, [r3] - ldrb r1, [r0, #0x1b] - ands r2, r1 - orrs r2, r4 - strb r2, [r0, #0x1b] - movs r1, #0x28 - bl InitializeAnimation - pop {r4, pc} - .align 2, 0 - - thumb_func_start sub_0808A4D0 -sub_0808A4D0: @ 0x0808A4D0 - push {r4, lr} - adds r4, r0, #0 - bl GetNextFrame - adds r0, r4, #0 - bl sub_0806F69C - adds r0, r4, #0 - adds r0, #0x5a - ldrb r1, [r0] - movs r0, #0x80 - ands r0, r1 - cmp r0, #0 - beq _0808A4F2 - adds r0, r4, #0 - bl DeleteEntity -_0808A4F2: - pop {r4, pc} diff --git a/asm/teachers.s b/asm/teachers.s deleted file mode 100644 index 72c9381d..00000000 --- a/asm/teachers.s +++ /dev/null @@ -1,240 +0,0 @@ - .include "asm/macros.inc" - - .include "constants/constants.inc" - - .syntax unified - - .text - - - thumb_func_start Teachers -Teachers: @ 0x0806C5A8 - push {r4, r5, lr} - adds r5, r0, #0 - ldrb r4, [r5, #0xc] - cmp r4, #1 - beq _0806C604 - cmp r4, #1 - bgt _0806C5BC - cmp r4, #0 - beq _0806C5C2 - b _0806C670 -_0806C5BC: - cmp r4, #2 - beq _0806C656 - b _0806C670 -_0806C5C2: - ldrb r1, [r5, #0xa] - lsls r1, r1, #4 - ldr r0, _0806C600 @ =gUnk_08113910 - adds r1, r1, r0 - adds r0, r5, #0 - bl LoadExtraSpriteData - cmp r0, #0 - beq _0806C670 - movs r2, #1 - movs r0, #1 - strb r0, [r5, #0xc] - ldrb r1, [r5, #0x18] - subs r0, #5 - ands r0, r1 - orrs r0, r2 - strb r0, [r5, #0x18] - ldrb r0, [r5, #0xe] - strb r0, [r5, #0x14] - adds r0, r5, #0 - adds r0, #0x69 - strb r4, [r0] - adds r0, r5, #0 - movs r1, #2 - bl sub_0805E3A0 - adds r0, r5, #0 - bl sub_0807DD50 - b _0806C670 - .align 2, 0 -_0806C600: .4byte gUnk_08113910 -_0806C604: - adds r2, r5, #0 - adds r2, #0x39 - movs r1, #0 - ldrsb r1, [r2, r1] - cmp r1, #2 - bne _0806C64C - movs r0, #0 - strb r1, [r5, #0xc] - strb r0, [r2] - adds r4, r5, #0 - adds r4, #0x58 - ldrb r0, [r4] - adds r1, r5, #0 - adds r1, #0x69 - strb r0, [r1] - ldr r1, _0806C648 @ =gLinkEntity - adds r0, r5, #0 - bl GetFacingDirection - bl sub_0806F5A4 - ldrb r1, [r4] - movs r2, #4 - rsbs r2, r2, #0 - ands r1, r2 - adds r1, r1, r0 - adds r0, r5, #0 - bl InitializeAnimation - adds r0, r5, #0 - bl sub_0806F118 - b _0806C670 - .align 2, 0 -_0806C648: .4byte gLinkEntity -_0806C64C: - adds r0, r5, #0 - movs r1, #0 - bl sub_0807DD94 - b _0806C670 -_0806C656: - adds r0, r5, #0 - bl UpdateFuseInteraction - cmp r0, #0 - beq _0806C670 - movs r0, #1 - strb r0, [r5, #0xc] - adds r0, r5, #0 - adds r0, #0x69 - ldrb r1, [r0] - adds r0, r5, #0 - bl InitializeAnimation -_0806C670: - pop {r4, r5, pc} - .align 2, 0 - - thumb_func_start sub_0806C674 -sub_0806C674: @ 0x0806C674 - push {r4, lr} - adds r4, r0, #0 - bl sub_0801E99C - adds r1, r4, #0 - adds r1, #0x68 - strb r0, [r1] - ldrb r1, [r1] - adds r0, r4, #0 - bl sub_08078784 - pop {r4, pc} - - thumb_func_start Teachers_Head -Teachers_Head: @ 0x0806C68C - push {r4, r5, r6, lr} - adds r4, r0, #0 - adds r0, #0x5a - ldrb r2, [r0] - movs r0, #0x81 - rsbs r0, r0, #0 - ands r2, r0 - ldrb r6, [r4, #0x1e] - adds r0, r4, #0 - adds r0, #0x5b - ldrb r0, [r0] - movs r5, #0x3f - ands r5, r0 - ldrb r0, [r4, #0xa] - cmp r0, #0 - bne _0806C6D2 - adds r2, #3 - adds r0, r4, #0 - movs r1, #0 - bl SetExtraSpriteFrame - adds r0, r4, #0 - movs r1, #1 - adds r2, r6, #0 - bl SetExtraSpriteFrame - adds r0, r4, #0 - movs r1, #1 - movs r2, #0 - bl SetSpriteSubEntryOffsetData1 - adds r0, r4, #0 - bl sub_0807000C - b _0806C70A -_0806C6D2: - adds r2, #6 - adds r0, r4, #0 - movs r1, #0 - bl SetExtraSpriteFrame - adds r2, r5, #3 - adds r0, r4, #0 - movs r1, #1 - bl SetExtraSpriteFrame - adds r0, r4, #0 - movs r1, #2 - adds r2, r6, #0 - bl SetExtraSpriteFrame - adds r0, r4, #0 - movs r1, #2 - movs r2, #1 - bl SetSpriteSubEntryOffsetData1 - adds r0, r4, #0 - movs r1, #2 - movs r2, #0 - bl SetSpriteSubEntryOffsetData2 - adds r0, r4, #0 - bl sub_0807000C -_0806C70A: - pop {r4, r5, r6, pc} - - thumb_func_start sub_0806C70C -sub_0806C70C: @ 0x0806C70C - push {lr} - adds r3, r0, #0 - ldr r0, _0806C730 @ =gUnk_02002A40 - ldrb r0, [r0, #8] - subs r0, #2 - cmp r0, #0 - bge _0806C71C - movs r0, #0 -_0806C71C: - ldrb r1, [r3, #0xa] - lsls r1, r1, #6 - lsls r0, r0, #3 - ldr r2, _0806C734 @ =gUnk_08113930 - adds r0, r0, r2 - adds r1, r1, r0 - adds r0, r3, #0 - bl ShowNPCDialogue - pop {pc} - .align 2, 0 -_0806C730: .4byte gUnk_02002A40 -_0806C734: .4byte gUnk_08113930 - - thumb_func_start Teachers_Fusion -Teachers_Fusion: @ 0x0806C738 - push {r4, lr} - adds r4, r0, #0 - ldrb r0, [r4, #0xc] - cmp r0, #0 - bne _0806C778 - ldrb r1, [r4, #0xa] - lsls r1, r1, #4 - ldr r0, _0806C774 @ =gUnk_08113910 - adds r1, r1, r0 - adds r0, r4, #0 - bl LoadExtraSpriteData - cmp r0, #0 - beq _0806C77E - ldrb r0, [r4, #0xc] - adds r0, #1 - strb r0, [r4, #0xc] - ldrb r1, [r4, #0x18] - movs r0, #4 - rsbs r0, r0, #0 - ands r0, r1 - movs r1, #1 - orrs r0, r1 - strb r0, [r4, #0x18] - adds r0, r4, #0 - movs r1, #2 - bl InitializeAnimation - b _0806C77E - .align 2, 0 -_0806C774: .4byte gUnk_08113910 -_0806C778: - adds r0, r4, #0 - bl GetNextFrame -_0806C77E: - pop {r4, pc} diff --git a/linker.ld b/linker.ld index b48e5643..a9eca411 100644 --- a/linker.ld +++ b/linker.ld @@ -608,7 +608,7 @@ SECTIONS { asm/anju.o(.text); asm/mama.o(.text); src/emma.o(.text); - asm/teachers.o(.text); + src/teachers.o(.text); src/windTribespeople.o(.text); asm/windTribespeople.o(.text); asm/gregal.o(.text); @@ -704,7 +704,7 @@ SECTIONS { asm/object2A.o(.text); asm/object2B.o(.text); asm/beanstalk.o(.text); - asm/smoke.o(.text); + src/smoke.o(.text); asm/pushableRock.o(.text); asm/hittableLever.o(.text); asm/object30.o(.text); diff --git a/src/smoke.c b/src/smoke.c new file mode 100644 index 00000000..b4c83115 --- /dev/null +++ b/src/smoke.c @@ -0,0 +1,60 @@ +#include "global.h" +#include "entity.h" + +extern u32 Random(void); +extern void CopyPosition(Entity*, Entity*); +extern void sub_0806F69C(Entity*); +extern void DeleteEntity(Entity*); + +extern void (*const gUnk_08121060[])(Entity*); +extern void (*const gUnk_08121070[])(Entity*); + +extern s8 gUnk_08121068[]; + +void Smoke(Entity* this) { + gUnk_08121060[this->entityType.form](this); +} + +void sub_0808A40C(Entity *this) +{ + Entity *ent; + + if (this->action == 0) { + this->action = 1; + this->actionDelay = 0x28; + } + if (--this->actionDelay == 0) { + this->actionDelay = 0x40 - (Random() & 0x1f); + ent = CreateObject(0x2d, 1, 0); + if (ent != NULL) { + CopyPosition(this,ent); + ent->x.HALF.HI += gUnk_08121068[(Random() & 7)]; + } + } +} + +void sub_0808A46C(Entity *this) +{ + gUnk_08121070[this->action](this); +} + +void sub_0808A484(Entity *this) +{ + this->action = 1; + this->spriteSettings.b.draw = TRUE; + this->nonPlanarMovement = 0x40; + this->direction = 6; + this->spriteRendering.b3 = 1; + this->spritePriority.b0 = 0; + this->spriteOrientation.flipY = 1; + InitializeAnimation(this, 0x28); +} + +void sub_0808A4D0(Entity *this) +{ + GetNextFrame(this); + sub_0806F69C(this); + if (this->frames.b.f3) { + DeleteEntity(this); + } +} \ No newline at end of file diff --git a/src/teachers.c b/src/teachers.c new file mode 100644 index 00000000..a82bdadd --- /dev/null +++ b/src/teachers.c @@ -0,0 +1,113 @@ +#include "global.h" +#include "entity.h" +#include "link.h" + +typedef struct { + u8 filler[8]; + u8 unk; +} struct_02002A40; + +extern SpriteLoadData gUnk_08113910[]; +extern void sub_0805E3A0(Entity*, u32); +extern void sub_0807DD50(Entity*); +extern u32 GetFacingDirection(Entity*, Entity*); +extern u32 sub_0806F5A4(u32); +extern void sub_0806F118(Entity*); +extern void sub_0807DD94(Entity*, u32); +extern u32 sub_0801E99C(); +extern void sub_08078784(Entity*, u32); +extern u32 UpdateFuseInteraction(Entity*); +extern void sub_0807000C(Entity*); +extern void ShowNPCDialogue(Entity*, u16*); + +extern struct_02002A40 gUnk_02002A40; +extern u16 gUnk_08113930[]; + +void Teachers(Entity* this) { + switch (this->action) { + case 0: + if (LoadExtraSpriteData(this, &gUnk_08113910[this->entityType.form * 4])) { + this->action = 1; + this->spriteSettings.b.draw = TRUE; + this->animationState = this->actionDelay; + this->field_0x69 = 0; + sub_0805E3A0(this, 2); + sub_0807DD50(this); + } + break; + case 1: + if (this->interactType == 2) { + this->action = 2; + this->interactType = 0; + this->field_0x69 = this->animIndex; + InitializeAnimation(this, + (this->animIndex & -4) + sub_0806F5A4(GetFacingDirection(this, &gLinkEntity))); + sub_0806F118(this); + } else { + sub_0807DD94(this, 0); + } + break; + case 2: + if (UpdateFuseInteraction(this)) { + this->action = 1; + InitializeAnimation(this, this->field_0x69); + } + } +} + +void sub_0806C674(Entity *this) +{ + this->field_0x68 = sub_0801E99C(); + sub_08078784(this, this->field_0x68); +} + +void Teachers_Head(Entity *this) +{ + u8 bVar1; + u8 bVar2; + u32 uVar3; + + + uVar3 = this->frames.all & -0x81; + bVar1 = this->frameIndex; + bVar2 = this->frameSpriteSettings & 0x3f; + if ((this->entityType).form == 0) { + SetExtraSpriteFrame(this,0, (uVar3 + 3)); + SetExtraSpriteFrame(this,1, bVar1); + SetSpriteSubEntryOffsetData1(this, 1, 0); + sub_0807000C(this); + } + else { + SetExtraSpriteFrame(this, 0, (uVar3 + 6)); + SetExtraSpriteFrame(this, 1, ((bVar2) + 3)); + SetExtraSpriteFrame(this, 2, bVar1); + SetSpriteSubEntryOffsetData1(this, 2, 1); + SetSpriteSubEntryOffsetData2(this, 2, 0); + sub_0807000C(this); + } +} + +void sub_0806C70C(Entity *this) +{ + int offset; + + offset = gUnk_02002A40.unk - 2; + if (offset < 0) { + offset = 0; + } + ShowNPCDialogue(this, gUnk_08113930 + this->entityType.form * 0x20 + offset * 4); +} + +void Teachers_Fusion(Entity *this) +{ + if (this->action == 0) { + if (LoadExtraSpriteData(this, &gUnk_08113910[this->entityType.form * 4])) { + this->action++; + this->spriteSettings.b.draw = TRUE; + InitializeAnimation(this, 2); + } + } + else { + GetNextFrame(this); + } +} \ No newline at end of file From d429f7f9cbe2a5c1d90139d9459fcd899b390fbc Mon Sep 17 00:00:00 2001 From: theo3 Date: Sun, 12 Jul 2020 22:27:28 -0700 Subject: [PATCH 012/158] mutoh.c OK --- asm/mutoh.s | 202 ----------------------------------------- include/npc.h | 9 ++ linker.ld | 2 +- src/mainLoop.c | 40 ++++---- src/mutoh.c | 99 ++++++++++++++++++++ src/windTribespeople.c | 11 +-- 6 files changed, 130 insertions(+), 233 deletions(-) delete mode 100644 asm/mutoh.s create mode 100644 src/mutoh.c diff --git a/asm/mutoh.s b/asm/mutoh.s deleted file mode 100644 index 75fe0c2c..00000000 --- a/asm/mutoh.s +++ /dev/null @@ -1,202 +0,0 @@ - .include "asm/macros.inc" - - .include "constants/constants.inc" - - .syntax unified - - .text - - - thumb_func_start Mutoh -Mutoh: @ 0x08066FD8 - push {r4, lr} - adds r4, r0, #0 - adds r0, #0x84 - ldr r0, [r0] - cmp r0, #0 - bne _08066FE8 - bl DeleteThisEntity -_08066FE8: - ldrb r0, [r4, #0xc] - cmp r0, #1 - beq _08067030 - cmp r0, #1 - bgt _08066FF8 - cmp r0, #0 - beq _08066FFE - b _0806707C -_08066FF8: - cmp r0, #2 - beq _0806706E - b _0806707C -_08066FFE: - ldr r1, _0806702C @ =gUnk_08110C00 - adds r0, r4, #0 - bl LoadExtraSpriteData - cmp r0, #0 - beq _0806707C - movs r2, #1 - movs r0, #1 - strb r0, [r4, #0xc] - ldrb r1, [r4, #0x18] - subs r0, #5 - ands r0, r1 - orrs r0, r2 - strb r0, [r4, #0x18] - adds r0, r4, #0 - movs r1, #2 - bl sub_0805E3A0 - adds r0, r4, #0 - bl sub_0807DD50 - b _0806707C - .align 2, 0 -_0806702C: .4byte gUnk_08110C00 -_08067030: - adds r2, r4, #0 - adds r2, #0x39 - movs r1, #0 - ldrsb r1, [r2, r1] - cmp r1, #2 - bne _08067064 - movs r0, #0 - strb r1, [r4, #0xc] - strb r0, [r2] - ldr r1, _08067060 @ =gLinkEntity - adds r0, r4, #0 - bl GetFacingDirection - bl sub_0806F5A4 - adds r1, r0, #0 - adds r1, #4 - adds r0, r4, #0 - bl InitAnimationForceUpdate - adds r0, r4, #0 - bl sub_0806F118 - b _0806707C - .align 2, 0 -_08067060: .4byte gLinkEntity -_08067064: - adds r0, r4, #0 - movs r1, #0 - bl sub_0807DD94 - b _0806707C -_0806706E: - adds r0, r4, #0 - bl UpdateFuseInteraction - cmp r0, #0 - beq _0806707C - movs r0, #1 - strb r0, [r4, #0xc] -_0806707C: - pop {r4, pc} - .align 2, 0 - - thumb_func_start Mutoh_Head -Mutoh_Head: @ 0x08067080 - push {r4, lr} - adds r4, r0, #0 - adds r0, #0x5a - ldrb r2, [r0] - movs r0, #0x81 - rsbs r0, r0, #0 - ands r2, r0 - adds r0, r4, #0 - movs r1, #0 - bl SetExtraSpriteFrame - ldrb r2, [r4, #0x1e] - adds r0, r4, #0 - movs r1, #1 - bl SetExtraSpriteFrame - adds r0, r4, #0 - movs r1, #1 - movs r2, #0 - bl SetSpriteSubEntryOffsetData1 - adds r0, r4, #0 - bl sub_0807000C - pop {r4, pc} - .align 2, 0 - - thumb_func_start sub_080670B4 -sub_080670B4: @ 0x080670B4 - push {r4, r5, lr} - adds r5, r0, #0 - movs r4, #0 - movs r0, #0x11 - bl GetInventoryValue - cmp r0, #0 - bne _080670D0 - movs r0, #0x15 - bl CheckGlobalFlag - rsbs r1, r0, #0 - orrs r1, r0 - lsrs r4, r1, #0x1f -_080670D0: - ldr r0, _080670E0 @ =gUnk_08110C0C - lsls r1, r4, #1 - adds r1, r1, r0 - ldrh r0, [r1] - adds r1, r5, #0 - bl TextboxNoOverlap - pop {r4, r5, pc} - .align 2, 0 -_080670E0: .4byte gUnk_08110C0C - - thumb_func_start sub_080670E4 -sub_080670E4: @ 0x080670E4 - push {lr} - ldr r1, _080670F8 @ =gUnk_02002A40 - ldrb r1, [r1, #8] - lsls r1, r1, #3 - ldr r2, _080670FC @ =gUnk_08110C10 - adds r1, r1, r2 - bl ShowNPCDialogue - pop {pc} - .align 2, 0 -_080670F8: .4byte gUnk_02002A40 -_080670FC: .4byte gUnk_08110C10 - - thumb_func_start sub_08067100 -sub_08067100: @ 0x08067100 - push {r4, lr} - adds r4, r0, #0 - bl sub_0801E99C - adds r1, r4, #0 - adds r1, #0x68 - strb r0, [r1] - ldrb r1, [r1] - adds r0, r4, #0 - bl sub_08078784 - pop {r4, pc} - - thumb_func_start Mutoh_Fusion -Mutoh_Fusion: @ 0x08067118 - push {r4, lr} - adds r4, r0, #0 - ldrb r0, [r4, #0xc] - cmp r0, #0 - bne _08067150 - ldr r1, _0806714C @ =gUnk_08110C00 - adds r0, r4, #0 - bl LoadExtraSpriteData - cmp r0, #0 - beq _08067156 - ldrb r0, [r4, #0xc] - adds r0, #1 - strb r0, [r4, #0xc] - ldrb r1, [r4, #0x18] - movs r0, #4 - rsbs r0, r0, #0 - ands r0, r1 - movs r1, #1 - orrs r0, r1 - strb r0, [r4, #0x18] - adds r0, r4, #0 - movs r1, #2 - bl InitializeAnimation - b _08067156 - .align 2, 0 -_0806714C: .4byte gUnk_08110C00 -_08067150: - adds r0, r4, #0 - bl GetNextFrame -_08067156: - pop {r4, pc} diff --git a/include/npc.h b/include/npc.h index b1a7c2b5..fff3334a 100644 --- a/include/npc.h +++ b/include/npc.h @@ -171,5 +171,14 @@ extern void NPC58_Head(Entity*); extern u32 UpdateFuseInteraction(Entity*); +extern void ShowNPCDialogue(Entity*, u32*); + +typedef struct { + u8 filler[8]; + u8 unk; +} struct_02002A40; + +extern struct_02002A40 gUnk_02002A40; + #endif \ No newline at end of file diff --git a/linker.ld b/linker.ld index a9eca411..27d898bc 100644 --- a/linker.ld +++ b/linker.ld @@ -572,7 +572,7 @@ SECTIONS { asm/npc26.o(.text); asm/vaati.o(.text); src/zelda.o(.text); - asm/mutoh.o(.text); + src/mutoh.o(.text); src/carpenter.o(.text); asm/carpenter.o(.text); asm/castorWildsStatue.o(.text); diff --git a/src/mainLoop.c b/src/mainLoop.c index a9bf0d32..dcc0ebbf 100644 --- a/src/mainLoop.c +++ b/src/mainLoop.c @@ -1,7 +1,7 @@ #include "global.h" #include "main.h" -#ifdef NON_MATCHING +#if 0 typedef struct { u8 interruptFlag; @@ -52,6 +52,7 @@ void MainLoop(void) { bool32 codeInputted; u8 cVar1; u32 uVar2; + MainStruct *s; sub_08055F70(); sub_080A3204(); @@ -66,45 +67,42 @@ void MainLoop(void) { sub_08056418(); sub_080ADD30(); gRand = 0x1234567; - sub_0801D630(&gUnk_03001000, 16); + s = &gUnk_03001000; + sub_0801D630(s, 16); sub_08056010(0); - do { + while (1) { ReadKeyInput(); codeInputted = sub_08055FF4(); if (codeInputted) { sub_080560A8(); } - if ((gUnk_03001000.field_0x1 == 0) || (gUnk_03001000.field_0x1 != 1)) { - if (gUnk_03001000.field_0x8 != '\0') { - while (codeInputted) { + if ((s->field_0x1 != 0) || (s->field_0x1 == 1)) { + sub_08056260(); + } else if (s->field_0x8 != 0) { + while (--s->field_0x8) { VBlankInterruptWait(); - cVar1 = gUnk_03001000.field_0x8 + -1; - codeInputted = gUnk_03001000.field_0x8 != '\x01'; - gUnk_03001000.field_0x8 = cVar1; } } - if (gUnk_03001000.countdown != '\0') { - gUnk_03001000.countdown = gUnk_03001000.countdown + -1; - uVar2 = gUnk_03001000.field_0xa; - while (0 < uVar2) { + if (s->countdown != 0) { + s->countdown--; + uVar2 = s->field_0xa; + while (uVar2 > 0) { VBlankIntrWait(); - uVar2 = uVar2 - 1; + uVar2--; } } - gUnk_03001000.ticks = gUnk_03001000.ticks + 1; - gUnk_08100CBC[gUnk_03001000.loadType](); + s->ticks++; + gUnk_08100CBC[s->loadType](); sub_08056458(); sub_08050154(); sub_080A3480(); - } else { - sub_08056260(); } sub_08016E78(); - } while (TRUE); } -#else + +#endif + NAKED void MainLoop(void) { asm(".include \"asm/non_matching/mainLoop.inc\""); } -#endif diff --git a/src/mutoh.c b/src/mutoh.c new file mode 100644 index 00000000..b50ff552 --- /dev/null +++ b/src/mutoh.c @@ -0,0 +1,99 @@ +#include "global.h" +#include "entity.h" +#include "link.h" +#include "flags.h" +#include "textbox.h" +#include "npc.h" + +extern void sub_0805E3A0(Entity*, u32); +extern void sub_0807DD50(Entity*); +extern u32 GetFacingDirection(Entity*, Entity*); +extern u32 sub_0806F5A4(u32); +extern void sub_0806F118(Entity*); +extern void sub_0807DD94(Entity*, u32); +extern u32 UpdateFuseInteraction(Entity*); +extern void sub_0807000C(Entity*); +extern u32 sub_0801E99C(Entity*); +extern void sub_08078784(Entity*, u32); + +extern SpriteLoadData gUnk_08110C00; +extern u16 gUnk_08110C0C[]; +extern u32 gUnk_08110C10[]; + +void Mutoh(Entity* this) +{ + if (*(u32*)&this->cutsceneBeh == 0) { + DeleteThisEntity(); + } + + switch (this->action) { + case 0: + if (LoadExtraSpriteData(this, &gUnk_08110C00)) { + this->action = 1; + this->spriteSettings.b.draw = TRUE; + sub_0805E3A0(this, 2); + sub_0807DD50(this); + } + break; + case 1: + if (this->interactType == 2) { + this->action = 2; + this->interactType = 0; + InitAnimationForceUpdate(this, sub_0806F5A4(GetFacingDirection(this, &gLinkEntity)) + 4); + sub_0806F118(this); + } else { + sub_0807DD94(this, 0); + } + break; + case 2: + if (UpdateFuseInteraction(this)) { + this->action = 1; + } + } +} + +void Mutoh_Head(Entity *this) +{ + SetExtraSpriteFrame(this, 0, (this->frames.all & -0x81)); + SetExtraSpriteFrame(this, 1, this->frameIndex); + SetSpriteSubEntryOffsetData1(this,1,0); + sub_0807000C(this); +} + +void sub_080670B4(Entity *this) +{ + u32 uVar1; + u32 uVar2; + + uVar2 = 0; + if (GetInventoryValue(0x11) == 0) { + uVar1 = CheckGlobalFlag(0x15); + uVar2 = (-uVar1 | uVar1) >> 0x1f; + } + TextboxNoOverlap(gUnk_08110C0C[uVar2],this); +} + +void sub_080670E4(Entity *this) +{ + ShowNPCDialogue(this, &gUnk_08110C10[gUnk_02002A40.unk * 2]); +} + +void sub_08067100(Entity *this) +{ + this->field_0x68 = sub_0801E99C(this); + sub_08078784(this, this->field_0x68); +} + +void Mutoh_Fusion(Entity *this) +{ + if (this->action == 0) { + if (LoadExtraSpriteData(this, &gUnk_08110C00) != 0) { + this->action++; + this->spriteSettings.b.draw = TRUE; + InitializeAnimation(this, 2); + } + } + else { + GetNextFrame(this); + } +} \ No newline at end of file diff --git a/src/windTribespeople.c b/src/windTribespeople.c index 965a73ea..d01f22d4 100644 --- a/src/windTribespeople.c +++ b/src/windTribespeople.c @@ -4,11 +4,6 @@ #include "textbox.h" #include "flags.h" -typedef struct { - u8 filler[8]; - u8 unk; -} struct_02002A40; - extern u32 LoadExtraSpriteData(Entity*, SpriteLoadData*); extern void sub_0807DD50(Entity*); extern void sub_0806C7D4(Entity*); @@ -21,15 +16,13 @@ extern void SetExtraSpriteFrame(Entity*, u32, u32); extern void SetSpriteSubEntryOffsetData2(Entity*, u32, u32); extern void SetSpriteSubEntryOffsetData1(Entity*, u32, u32); extern void sub_0807000C(Entity*); -extern void ShowNPCDialogue(Entity*, u16*); extern void (*const gUnk_08113A7C[])(Entity*); extern void (*const gUnk_08113A8C[])(Entity*, Entity*); extern SpriteLoadData gUnk_08113A1C[]; extern u32 gUnk_08014A80; -extern u16 gUnk_08113ABC[]; -extern struct_02002A40 gUnk_02002A40; +extern u32 gUnk_08113ABC[]; extern u16 gUnk_08113B0C[]; void WindTribespeople(Entity* this) { @@ -129,7 +122,7 @@ void sub_0806C90C(Entity *param_1,Entity *param_2) void sub_0806C928(Entity *this) { - ShowNPCDialogue(this, gUnk_08113ABC + (gUnk_02002A40.unk * 4)); + ShowNPCDialogue(this, &gUnk_08113ABC[gUnk_02002A40.unk * 2]); } void sub_0806C944(Entity *this) From 6aba97697bcf1c970de2d53bc3485f711b0a17db Mon Sep 17 00:00:00 2001 From: theo3 Date: Sun, 12 Jul 2020 22:58:48 -0700 Subject: [PATCH 013/158] gentari.c OK --- asm/gentari.s | 108 ----------------------------------------------- include/entity.h | 12 +++--- linker.ld | 1 + src/dampe.c | 6 +-- src/gentari.c | 53 +++++++++++++++++++++++ 5 files changed, 63 insertions(+), 117 deletions(-) create mode 100644 src/gentari.c diff --git a/asm/gentari.s b/asm/gentari.s index c18bbf27..4cfbf586 100644 --- a/asm/gentari.s +++ b/asm/gentari.s @@ -6,114 +6,6 @@ .text - - thumb_func_start Gentari -Gentari: @ 0x0805FD24 - push {r4, lr} - adds r4, r0, #0 - ldrb r0, [r4, #0xc] - cmp r0, #1 - beq _0805FD72 - cmp r0, #1 - bgt _0805FD38 - cmp r0, #0 - beq _0805FD3E - b _0805FDBC -_0805FD38: - cmp r0, #2 - beq _0805FDAE - b _0805FDBC -_0805FD3E: - movs r2, #1 - movs r0, #1 - strb r0, [r4, #0xc] - ldrb r1, [r4, #0x18] - subs r0, #5 - ands r0, r1 - orrs r0, r2 - strb r0, [r4, #0x18] - adds r0, r4, #0 - movs r1, #2 - bl sub_0805E3A0 - adds r0, r4, #0 - bl sub_0801E99C - adds r1, r4, #0 - adds r1, #0x68 - strb r0, [r1] - ldrb r1, [r1] - adds r0, r4, #0 - bl sub_08078784 - adds r0, r4, #0 - bl sub_0807DD50 - b _0805FDBC -_0805FD72: - adds r2, r4, #0 - adds r2, #0x39 - movs r1, #0 - ldrsb r1, [r2, r1] - cmp r1, #2 - bne _0805FDA4 - movs r0, #0 - strb r1, [r4, #0xc] - strb r0, [r2] - ldr r1, _0805FDA0 @ =gLinkEntity - adds r0, r4, #0 - bl GetFacingDirection - bl sub_0806F5A4 - adds r1, r0, #0 - adds r0, r4, #0 - bl InitAnimationForceUpdate - adds r0, r4, #0 - bl sub_0806F118 - b _0805FDBC - .align 2, 0 -_0805FDA0: .4byte gLinkEntity -_0805FDA4: - adds r0, r4, #0 - movs r1, #0 - bl sub_0807DD94 - b _0805FDBC -_0805FDAE: - adds r0, r4, #0 - bl UpdateFuseInteraction - cmp r0, #0 - beq _0805FDBC - movs r0, #1 - strb r0, [r4, #0xc] -_0805FDBC: - pop {r4, pc} - .align 2, 0 - - thumb_func_start Gentari_Fusion -Gentari_Fusion: @ 0x0805FDC0 - push {r4, lr} - adds r4, r0, #0 - ldrb r0, [r4, #0xc] - cmp r0, #0 - bne _0805FDEE - adds r0, #1 - strb r0, [r4, #0xc] - ldrb r1, [r4, #0x18] - movs r0, #4 - rsbs r0, r0, #0 - ands r0, r1 - movs r1, #1 - orrs r0, r1 - strb r0, [r4, #0x18] - adds r0, r4, #0 - movs r1, #2 - bl sub_0805E3A0 - adds r0, r4, #0 - movs r1, #0xa - bl InitAnimationForceUpdate - b _0805FDF4 -_0805FDEE: - adds r0, r4, #0 - bl UpdateAnimationSingleFrame -_0805FDF4: - pop {r4, pc} - .align 2, 0 - thumb_func_start Festari Festari: @ 0x0805FDF8 push {lr} diff --git a/include/entity.h b/include/entity.h index 661e8343..b79d1d5a 100644 --- a/include/entity.h +++ b/include/entity.h @@ -160,6 +160,12 @@ typedef struct Entity { ((((entity->x.HALF.HI - xOff - gRoomControls.roomOriginX) >> 4) & 0x3fU) | \ (((entity->y.HALF.HI - yOff - gRoomControls.roomOriginY) >> 4) & 0x3fU) << 6) +extern Entity* CreateEnemy(u32 subtype, u32 form); +extern Entity* CreateObject(u32 subtype, u32 form, u32 parameter); +extern Entity* CreateNPC(u32 subtype, u32 form, u32 parameter); +extern Entity* CreateObjectWithParent(Entity* parent, u32 subtype, u32 form, u32 parameter); +extern Entity* CreateFx(Entity* parent, u32 form, u32 parameter); + extern void InitializeAnimation(Entity*, u32); extern void InitAnimationForceUpdate(Entity*, u32); extern void UpdateAnimationSingleFrame(Entity*); @@ -170,11 +176,7 @@ extern void SetExtraSpriteFrame(Entity*, u32, u32); extern void SetSpriteSubEntryOffsetData1(Entity*, u32, u32); extern void SetSpriteSubEntryOffsetData2(Entity*, u32, u32); -extern Entity* CreateEnemy(u32 subtype, u32 form); -extern Entity* CreateObject(u32 subtype, u32 form, u32 parameter); -extern Entity* CreateNPC(u32 subtype, u32 form, u32 parameter); -extern Entity* CreateObjectWithParent(Entity* parent, u32 subtype, u32 form, u32 parameter); -extern Entity* CreateFx(Entity* parent, u32 form, u32 parameter); +extern u32 GetFacingDirection(Entity*, Entity*); extern void DeleteThisEntity(); #endif diff --git a/linker.ld b/linker.ld index 27d898bc..8024ecfc 100644 --- a/linker.ld +++ b/linker.ld @@ -533,6 +533,7 @@ SECTIONS { asm/getEmptyEntity.o(.text); asm/code_0805E744.o(.text); /* npcs */ + src/gentari.o(.text); asm/gentari.o(.text); asm/festari.o(.text); asm/forestMinish.o(.text); diff --git a/src/dampe.c b/src/dampe.c index 822f6c2c..b7947c32 100644 --- a/src/dampe.c +++ b/src/dampe.c @@ -9,8 +9,7 @@ extern void sub_0805E3A0(Entity*, u32); extern void sub_0807DD50(Entity*); -extern void GetFacingDirection(Entity*, Entity*); -extern u32 sub_0806F5A4(void); +extern u32 sub_0806F5A4(u32); extern void sub_0806F118(Entity*); extern void sub_0807DD94(Entity*, u32); extern u32 sub_0801E99C(void); @@ -37,8 +36,7 @@ void Dampe(Entity* this) { if (this->interactType == 2) { this->action = 2; this->interactType = 0; - GetFacingDirection(this, &gLinkEntity); - InitAnimationForceUpdate(this, sub_0806F5A4() + 4); + InitAnimationForceUpdate(this, sub_0806F5A4(GetFacingDirection(this, &gLinkEntity)) + 4); sub_0806F118(this); } else { sub_0807DD94(this, 0); diff --git a/src/gentari.c b/src/gentari.c new file mode 100644 index 00000000..f41a7438 --- /dev/null +++ b/src/gentari.c @@ -0,0 +1,53 @@ +#include "global.h" +#include "entity.h" +#include "npc.h" +#include "link.h" + +extern void sub_0805E3A0(Entity*, u32); +extern u32 sub_0801E99C(Entity*); +extern void sub_08078784(Entity*, u32); +extern void sub_0807DD50(Entity*); +extern u32 sub_0806F5A4(u32); +extern void sub_0806F118(Entity*); +extern void sub_0807DD94(Entity*, u32); + +void Gentari(Entity *this) +{ + switch (this->action) { + case 0: + this->action = 1; + this->spriteSettings.b.draw = TRUE; + sub_0805E3A0(this, 2); + this->field_0x68 = sub_0801E99C(this); + sub_08078784(this, this->field_0x68); + sub_0807DD50(this); + break; + case 1: + if (this->interactType == 2) { + this->action = 2; + this->interactType = 0; + InitAnimationForceUpdate(this, sub_0806F5A4(GetFacingDirection(this, &gLinkEntity))); + sub_0806F118(this); + } else { + sub_0807DD94(this, 0); + } + break; + case 2: + if (UpdateFuseInteraction(this)) { + this->action = 1; + } + } +} + +void Gentari_Fusion(Entity *this) +{ + if (this->action == 0) { + this->action++; + this->spriteSettings.b.draw = TRUE; + sub_0805E3A0(this, 2); + InitAnimationForceUpdate(this, 10); + } + else { + UpdateAnimationSingleFrame(this); + } +} \ No newline at end of file From 73b72d6696c3d32a4deaa09ad923f7729c6ca610 Mon Sep 17 00:00:00 2001 From: theo3 Date: Mon, 13 Jul 2020 01:31:58 -0700 Subject: [PATCH 014/158] forestMinish.c 1 nonmatching --- asm/festari.s | 144 ----- asm/forestMinish.s | 561 ------------------ asm/gentari.s | 20 - asm/non_matching/festari/sub_0805FE48.inc | 110 ++++ .../forestMinish/sub_08060158.inc | 72 +++ include/link.h | 2 + include/npc.h | 11 +- linker.ld | 4 +- src/festari.c | 91 +++ src/forestMinish.c | 304 ++++++++++ 10 files changed, 590 insertions(+), 729 deletions(-) delete mode 100644 asm/forestMinish.s delete mode 100644 asm/gentari.s create mode 100644 asm/non_matching/festari/sub_0805FE48.inc create mode 100644 asm/non_matching/forestMinish/sub_08060158.inc create mode 100644 src/festari.c create mode 100644 src/forestMinish.c diff --git a/asm/festari.s b/asm/festari.s index c4e935f9..b3bf6c9a 100644 --- a/asm/festari.s +++ b/asm/festari.s @@ -6,150 +6,6 @@ .text - thumb_func_start sub_0805FE10 -sub_0805FE10: @ 0x0805FE10 - push {r4, lr} - adds r4, r0, #0 - movs r2, #1 - movs r0, #1 - strb r0, [r4, #0xc] - ldrb r1, [r4, #0x18] - subs r0, #5 - ands r0, r1 - orrs r0, r2 - strb r0, [r4, #0x18] - adds r0, r4, #0 - movs r1, #2 - bl sub_0805E3A0 - adds r0, r4, #0 - bl sub_0801E99C - adds r1, r4, #0 - adds r1, #0x68 - strb r0, [r1] - ldrb r1, [r1] - adds r0, r4, #0 - bl sub_08078784 - adds r0, r4, #0 - bl sub_0807DD50 - pop {r4, pc} - - thumb_func_start sub_0805FE48 -sub_0805FE48: @ 0x0805FE48 - push {r4, r5, r6, r7, lr} - adds r5, r0, #0 - adds r2, r5, #0 - adds r2, #0x39 - movs r1, #0 - ldrsb r1, [r2, r1] - cmp r1, #2 - bne _0805FE80 - movs r0, #0 - strb r1, [r5, #0xc] - strb r0, [r2] - ldr r1, _0805FE7C @ =gLinkEntity - adds r0, r5, #0 - bl GetFacingDirection - bl sub_0806F5A4 - adds r1, r0, #0 - adds r0, r5, #0 - bl InitAnimationForceUpdate - adds r0, r5, #0 - bl sub_0806F118 - b _0805FF14 - .align 2, 0 -_0805FE7C: .4byte gLinkEntity -_0805FE80: - adds r4, r5, #0 - adds r4, #0x84 - ldr r1, [r4] - adds r0, r5, #0 - bl ExecuteScriptCommandSet - ldr r1, [r4] - adds r0, r5, #0 - bl sub_0805FF2C - adds r0, r5, #0 - adds r0, #0x80 - ldrh r3, [r0] - adds r7, r0, #0 - adds r6, r5, #0 - adds r6, #0x82 - cmp r3, #7 - bhi _0805FEC6 - ldrh r1, [r6] - movs r0, #1 - ands r0, r1 - cmp r0, #0 - beq _0805FEBA - movs r1, #0xfc - ands r1, r3 - ldrb r0, [r5, #0xf] - lsrs r0, r0, #1 - adds r3, r1, r0 - b _0805FEC6 -_0805FEBA: - movs r0, #0xfc - ands r0, r3 - ldrb r2, [r5, #0x14] - lsrs r1, r2, #1 - adds r3, r0, r1 - strb r2, [r5, #0xf] -_0805FEC6: - adds r4, r5, #0 - adds r4, #0x58 - ldrb r0, [r4] - cmp r3, r0 - beq _0805FED8 - adds r0, r5, #0 - adds r1, r3, #0 - bl InitAnimationForceUpdate -_0805FED8: - adds r0, r5, #0 - bl UpdateAnimationSingleFrame - adds r0, r5, #0 - adds r0, #0x5a - ldrb r1, [r0] - movs r0, #0x80 - ands r0, r1 - cmp r0, #0 - beq _0805FF02 - ldrb r0, [r4] - cmp r0, #8 - beq _0805FEFE - cmp r0, #8 - blt _0805FF02 - cmp r0, #0xc - bgt _0805FF02 - cmp r0, #0xa - blt _0805FF02 -_0805FEFE: - movs r0, #0 - strh r0, [r7] -_0805FF02: - ldrh r1, [r6] - mvns r0, r1 - adds r0, #1 - ands r1, r0 - cmp r1, #2 - bne _0805FF14 - adds r0, r5, #0 - bl sub_0806ED78 -_0805FF14: - pop {r4, r5, r6, r7, pc} - .align 2, 0 - - thumb_func_start sub_0805FF18 -sub_0805FF18: @ 0x0805FF18 - push {r4, lr} - adds r4, r0, #0 - bl UpdateFuseInteraction - cmp r0, #0 - beq _0805FF28 - movs r0, #1 - strb r0, [r4, #0xc] -_0805FF28: - pop {r4, pc} - .align 2, 0 - thumb_func_start sub_0805FF2C sub_0805FF2C: @ 0x0805FF2C push {r4, r5, r6, lr} diff --git a/asm/forestMinish.s b/asm/forestMinish.s deleted file mode 100644 index 5946d0fc..00000000 --- a/asm/forestMinish.s +++ /dev/null @@ -1,561 +0,0 @@ - .include "asm/macros.inc" - - .include "constants/constants.inc" - - .syntax unified - - .text - - thumb_func_start ForestMinish -ForestMinish: @ 0x0805FFD8 - push {r4, r5, lr} - adds r4, r0, #0 - ldrb r5, [r4, #0xc] - cmp r5, #1 - beq _08060044 - cmp r5, #1 - bgt _0805FFEC - cmp r5, #0 - beq _0805FFF2 - b _0806008C -_0805FFEC: - cmp r5, #2 - beq _0806007E - b _0806008C -_0805FFF2: - ldr r1, _0806003C @ =gUnk_0810A348 - adds r0, r4, #0 - bl LoadExtraSpriteData - cmp r0, #0 - beq _0806008C - movs r2, #1 - movs r0, #1 - strb r0, [r4, #0xc] - ldrb r1, [r4, #0x18] - subs r0, #5 - ands r0, r1 - orrs r0, r2 - strb r0, [r4, #0x18] - ldrb r0, [r4, #0xe] - lsls r0, r0, #1 - strb r0, [r4, #0x14] - adds r1, r4, #0 - adds r1, #0x69 - strb r0, [r1] - strb r5, [r4, #0xe] - adds r0, r4, #0 - movs r1, #2 - bl sub_0805E3A0 - ldr r1, _08060040 @ =gUnk_08109D18 - ldrb r0, [r4, #0xb] - lsls r0, r0, #2 - adds r0, r0, r1 - ldr r1, [r0] - adds r0, r4, #0 - bl StartCutscene - adds r0, r4, #0 - bl sub_0807DD50 - b _0806008C - .align 2, 0 -_0806003C: .4byte gUnk_0810A348 -_08060040: .4byte gUnk_08109D18 -_08060044: - adds r2, r4, #0 - adds r2, #0x39 - movs r1, #0 - ldrsb r1, [r2, r1] - cmp r1, #2 - bne _0806005E - movs r0, #0 - strb r1, [r4, #0xc] - strb r0, [r2] - adds r0, r4, #0 - bl sub_0806F118 - b _0806008C -_0806005E: - adds r0, r4, #0 - movs r1, #0 - bl sub_0807DDAC - adds r0, r4, #0 - bl sub_0807DDE4 - adds r0, r4, #0 - adds r0, #0x59 - ldrb r0, [r0] - cmp r0, #0xf0 - beq _0806008C - adds r0, r4, #0 - bl sub_080600F0 - b _0806008C -_0806007E: - adds r0, r4, #0 - bl UpdateFuseInteraction - cmp r0, #0 - beq _0806008C - movs r0, #1 - strb r0, [r4, #0xc] -_0806008C: - pop {r4, r5, pc} - .align 2, 0 - - thumb_func_start sub_08060090 -sub_08060090: @ 0x08060090 - push {r4, lr} - adds r4, r0, #0 - bl sub_0801E99C - adds r1, r4, #0 - adds r1, #0x68 - strb r0, [r1] - ldrb r1, [r1] - adds r0, r4, #0 - bl sub_08078784 - pop {r4, pc} - - thumb_func_start ForestMinish_Head -ForestMinish_Head: @ 0x080600A8 - push {r4, lr} - adds r4, r0, #0 - adds r0, #0x5a - ldrb r2, [r0] - cmp r2, #0xff - beq _080600BA - movs r0, #0x81 - rsbs r0, r0, #0 - ands r2, r0 -_080600BA: - adds r0, r4, #0 - adds r0, #0x5b - ldrb r1, [r0] - movs r0, #1 - ands r0, r1 - cmp r0, #0 - bne _080600CA - movs r2, #0xff -_080600CA: - adds r0, r4, #0 - movs r1, #0 - bl SetExtraSpriteFrame - ldrb r2, [r4, #0x1e] - adds r0, r4, #0 - movs r1, #1 - bl SetExtraSpriteFrame - adds r0, r4, #0 - movs r1, #1 - movs r2, #0 - bl SetSpriteSubEntryOffsetData1 - adds r0, r4, #0 - bl sub_0807000C - pop {r4, pc} - .align 2, 0 - - thumb_func_start sub_080600F0 -sub_080600F0: @ 0x080600F0 - push {r4, lr} - adds r4, r0, #0 - adds r0, #0x80 - ldrh r3, [r0] - cmp r3, #7 - bhi _08060120 - adds r0, #2 - ldrh r1, [r0] - movs r0, #1 - ands r0, r1 - cmp r0, #0 - beq _08060114 - movs r1, #0xfc - ands r1, r3 - ldrb r0, [r4, #0xf] - lsrs r0, r0, #1 - adds r3, r1, r0 - b _08060120 -_08060114: - movs r0, #0xfc - ands r0, r3 - ldrb r2, [r4, #0x14] - lsrs r1, r2, #1 - adds r3, r0, r1 - strb r2, [r4, #0xf] -_08060120: - adds r0, r4, #0 - adds r0, #0x58 - ldrb r0, [r0] - cmp r3, r0 - beq _08060132 - adds r0, r4, #0 - adds r1, r3, #0 - bl InitAnimationForceUpdate -_08060132: - adds r0, r4, #0 - adds r0, #0x82 - ldrh r1, [r0] - movs r0, #4 - ands r0, r1 - movs r1, #1 - cmp r0, #0 - beq _08060144 - movs r1, #2 -_08060144: - adds r0, r4, #0 - bl sub_080042BA - pop {r4, pc} - - thumb_func_start sub_0806014C -sub_0806014C: @ 0x0806014C - push {lr} - movs r1, #0 - strb r1, [r0, #0xe] - bl sub_08060158 - pop {pc} - - thumb_func_start sub_08060158 -sub_08060158: @ 0x08060158 - push {r4, r5, r6, r7, lr} - adds r4, r0, #0 - ldrb r0, [r4, #0xe] - adds r7, r0, #0 - cmp r7, #0 - beq _0806016A - subs r0, #1 - strb r0, [r4, #0xe] - b _080601CC -_0806016A: - movs r0, #2 - strb r0, [r4, #0xe] - adds r0, r4, #0 - movs r1, #0x20 - movs r2, #0x20 - bl sub_0806EDD8 - adds r3, r0, #0 - cmp r3, #0 - bge _08060188 - adds r0, r4, #0 - adds r0, #0x69 - ldrb r0, [r0] - strb r0, [r4, #0x14] - lsls r3, r0, #2 -_08060188: - ldrb r0, [r4, #0x14] - lsrs r0, r0, #1 - lsls r0, r0, #5 - asrs r1, r3, #1 - lsls r1, r1, #1 - ldr r2, _080601D0 @ =gUnk_08109C98 - adds r1, r1, r2 - adds r0, r0, r1 - ldrb r6, [r0] - ldrb r5, [r0, #1] - movs r0, #0x80 - ands r0, r5 - cmp r0, #0 - beq _080601AC - adds r0, r3, #0 - bl sub_0806F5B0 - strb r0, [r4, #0x14] -_080601AC: - movs r0, #0x7f - ands r5, r0 - adds r0, r4, #0 - adds r0, #0x5a - strb r6, [r0] - strb r5, [r4, #0x1e] - adds r1, r4, #0 - adds r1, #0x5b - movs r0, #1 - strb r0, [r1] - adds r0, r4, #0 - adds r0, #0x58 - strb r7, [r0] - subs r1, #2 - movs r0, #0xf0 - strb r0, [r1] -_080601CC: - pop {r4, r5, r6, r7, pc} - .align 2, 0 -_080601D0: .4byte gUnk_08109C98 - - thumb_func_start sub_080601D4 -sub_080601D4: @ 0x080601D4 - push {r4, lr} - adds r4, r0, #0 - movs r0, #4 - bl CheckGlobalFlag - cmp r0, #0 - bne _080601E6 - movs r1, #2 - b _080601F2 -_080601E6: - movs r0, #0x17 - bl CheckKinstoneFused - rsbs r1, r0, #0 - orrs r1, r0 - lsrs r1, r1, #0x1f -_080601F2: - ldr r0, _08060204 @ =gUnk_0810A354 - lsls r1, r1, #1 - adds r1, r1, r0 - ldrh r0, [r1] - adds r1, r4, #0 - bl TextboxNoOverlap - pop {r4, pc} - .align 2, 0 -_08060204: .4byte gUnk_0810A354 - - thumb_func_start sub_08060208 -sub_08060208: @ 0x08060208 - push {lr} - ldrb r1, [r0, #0xb] - lsls r1, r1, #5 - ldr r2, _08060218 @ =gUnk_08109DC8 - adds r1, r1, r2 - bl ShowNPCDialogue - pop {pc} - .align 2, 0 -_08060218: .4byte gUnk_08109DC8 - - thumb_func_start sub_0806021C -sub_0806021C: @ 0x0806021C - push {r4, r5, lr} - adds r5, r0, #0 - movs r0, #0x5b - bl GetInventoryValue - rsbs r1, r0, #0 - orrs r1, r0 - lsrs r4, r1, #0x1f - movs r0, #0x40 - bl GetInventoryValue - cmp r0, #0 - beq _08060238 - movs r4, #2 -_08060238: - movs r0, #0x13 - bl GetInventoryValue - cmp r0, #0 - beq _08060244 - movs r4, #3 -_08060244: - ldrb r1, [r5, #0xb] - lsls r1, r1, #5 - lsls r0, r4, #3 - ldr r2, _08060258 @ =gUnk_08109DC8 - adds r0, r0, r2 - adds r1, r1, r0 - adds r0, r5, #0 - bl ShowNPCDialogue - pop {r4, r5, pc} - .align 2, 0 -_08060258: .4byte gUnk_08109DC8 - - thumb_func_start sub_0806025C -sub_0806025C: @ 0x0806025C - push {lr} - ldrb r1, [r0, #0xb] - lsls r1, r1, #5 - ldr r2, _0806026C @ =gUnk_08109DC8 - adds r1, r1, r2 - bl ShowNPCDialogue - pop {pc} - .align 2, 0 -_0806026C: .4byte gUnk_08109DC8 - - thumb_func_start sub_08060270 -sub_08060270: @ 0x08060270 - push {r4, r5, lr} - adds r5, r0, #0 - movs r0, #0x46 - bl GetInventoryValue - cmp r0, #0 - bne _08060294 - movs r4, #1 - movs r0, #0x29 - bl CheckGlobalFlag - cmp r0, #0 - bne _080602A8 - movs r4, #0 - movs r0, #0x29 - bl SetGlobalFlag - b _080602A8 -_08060294: - movs r4, #3 - movs r0, #0x76 - bl CheckLocalFlag - cmp r0, #0 - bne _080602A8 - movs r4, #2 - movs r0, #0x76 - bl SetLocalFlag -_080602A8: - ldr r0, _080602B8 @ =gUnk_0810A35A - lsls r1, r4, #1 - adds r1, r1, r0 - ldrh r0, [r1] - adds r1, r5, #0 - bl TextboxNoOverlap - pop {r4, r5, pc} - .align 2, 0 -_080602B8: .4byte gUnk_0810A35A - - thumb_func_start sub_080602BC -sub_080602BC: @ 0x080602BC - push {r4, lr} - adds r4, r0, #0 - movs r0, #0x48 - bl GetInventoryValue - cmp r0, #0 - beq _080602D6 - bl Random - movs r1, #1 - ands r1, r0 - adds r2, r1, #2 - b _080602F0 -_080602D6: - ldr r0, _08060300 @ =gUnk_02002A40 - adds r2, r0, #0 - adds r2, #0xac - ldr r1, _08060304 @ =gBombBagSizes - adds r0, #0xae - ldrb r0, [r0] - adds r0, r0, r1 - ldrb r1, [r2] - movs r2, #0 - ldrb r0, [r0] - cmp r1, r0 - bhs _080602F0 - movs r2, #1 -_080602F0: - ldr r0, _08060308 @ =gUnk_0810A362 - lsls r1, r2, #1 - adds r1, r1, r0 - ldrh r0, [r1] - adds r1, r4, #0 - bl TextboxNoOverlap - pop {r4, pc} - .align 2, 0 -_08060300: .4byte gUnk_02002A40 -_08060304: .4byte gBombBagSizes -_08060308: .4byte gUnk_0810A362 - - thumb_func_start sub_0806030C -sub_0806030C: @ 0x0806030C - push {lr} - ldr r0, [r1, #4] - bl ModBombs - pop {pc} - .align 2, 0 - - thumb_func_start sub_08060318 -sub_08060318: @ 0x08060318 - push {r4, r5, lr} - movs r5, #2 -_0806031C: - movs r0, #8 - movs r1, #2 - movs r2, #2 - bl sub_0805EB00 - adds r4, r0, #0 - cmp r4, #0 - beq _08060336 - bl sub_080A29BC - adds r0, r4, #0 - bl DeleteEntity -_08060336: - subs r5, #1 - cmp r5, #0 - bge _0806031C - pop {r4, r5, pc} - .align 2, 0 - - thumb_func_start sub_08060340 -sub_08060340: @ 0x08060340 - ldr r0, _08060350 @ =gUnk_02002A40 - movs r2, #0x92 - lsls r2, r2, #3 - adds r1, r0, r2 - ldr r0, [r0, #0x50] - str r0, [r1] - bx lr - .align 2, 0 -_08060350: .4byte gUnk_02002A40 - - thumb_func_start sub_08060354 -sub_08060354: @ 0x08060354 - push {r4, lr} - ldr r0, _08060378 @ =gUnk_02002A40 - movs r2, #0x92 - lsls r2, r2, #3 - adds r1, r0, r2 - ldr r2, [r0, #0x50] - ldr r0, [r1] - subs r4, r2, r0 - movs r0, #0x3b - bl CheckGlobalFlag - cmp r0, #0 - bne _08060380 - cmp r4, #4 - ble _080603B0 - ldr r0, _0806037C @ =0x00008444 - b _080603B2 - .align 2, 0 -_08060378: .4byte gUnk_02002A40 -_0806037C: .4byte 0x00008444 -_08060380: - movs r0, #0x3c - bl CheckGlobalFlag - cmp r0, #0 - bne _08060398 - cmp r4, #9 - ble _080603B0 - ldr r0, _08060394 @ =0x00008444 - b _080603B2 - .align 2, 0 -_08060394: .4byte 0x00008444 -_08060398: - movs r0, #0x3d - bl CheckGlobalFlag - cmp r0, #0 - bne _080603B0 - cmp r4, #0xe - ble _080603B0 - ldr r0, _080603AC @ =0x00008444 - b _080603B2 - .align 2, 0 -_080603AC: .4byte 0x00008444 -_080603B0: - movs r0, #0 -_080603B2: - pop {r4, pc} - - thumb_func_start ForestMinish_Fusion -ForestMinish_Fusion: @ 0x080603B4 - push {r4, lr} - adds r4, r0, #0 - ldrb r0, [r4, #0xc] - cmp r0, #0 - bne _080603F4 - ldr r1, _080603F0 @ =gUnk_0810A348 - adds r0, r4, #0 - bl LoadExtraSpriteData - cmp r0, #0 - beq _080603FA - ldrb r0, [r4, #0xc] - adds r0, #1 - strb r0, [r4, #0xc] - ldrb r1, [r4, #0x18] - movs r0, #4 - rsbs r0, r0, #0 - ands r0, r1 - movs r1, #1 - orrs r0, r1 - strb r0, [r4, #0x18] - adds r0, r4, #0 - movs r1, #2 - bl sub_0805E3A0 - adds r0, r4, #0 - movs r1, #6 - bl InitializeAnimation - b _080603FA - .align 2, 0 -_080603F0: .4byte gUnk_0810A348 -_080603F4: - adds r0, r4, #0 - bl GetNextFrame -_080603FA: - pop {r4, pc} diff --git a/asm/gentari.s b/asm/gentari.s deleted file mode 100644 index 4cfbf586..00000000 --- a/asm/gentari.s +++ /dev/null @@ -1,20 +0,0 @@ - .include "asm/macros.inc" - - .include "constants/constants.inc" - - .syntax unified - - .text - - thumb_func_start Festari -Festari: @ 0x0805FDF8 - push {lr} - ldr r2, _0805FE0C @ =gUnk_08109BBC - ldrb r1, [r0, #0xc] - lsls r1, r1, #2 - adds r1, r1, r2 - ldr r1, [r1] - bl _call_via_r1 - pop {pc} - .align 2, 0 -_0805FE0C: .4byte gUnk_08109BBC diff --git a/asm/non_matching/festari/sub_0805FE48.inc b/asm/non_matching/festari/sub_0805FE48.inc new file mode 100644 index 00000000..0f7ff560 --- /dev/null +++ b/asm/non_matching/festari/sub_0805FE48.inc @@ -0,0 +1,110 @@ + .include "asm/macros.inc" + + .include "constants/constants.inc" + + .syntax unified + + .text + + push {r4, r5, r6, r7, lr} + adds r5, r0, #0 + adds r2, r5, #0 + adds r2, #0x39 + movs r1, #0 + ldrsb r1, [r2, r1] + cmp r1, #2 + bne _0805FE80 + movs r0, #0 + strb r1, [r5, #0xc] + strb r0, [r2] + ldr r1, _0805FE7C @ =gLinkEntity + adds r0, r5, #0 + bl GetFacingDirection + bl sub_0806F5A4 + adds r1, r0, #0 + adds r0, r5, #0 + bl InitAnimationForceUpdate + adds r0, r5, #0 + bl sub_0806F118 + b _0805FF14 + .align 2, 0 +_0805FE7C: .4byte gLinkEntity +_0805FE80: + adds r4, r5, #0 + adds r4, #0x84 + ldr r1, [r4] + adds r0, r5, #0 + bl ExecuteScriptCommandSet + ldr r1, [r4] + adds r0, r5, #0 + bl sub_0805FF2C + adds r0, r5, #0 + adds r0, #0x80 + ldrh r3, [r0] + adds r7, r0, #0 + adds r6, r5, #0 + adds r6, #0x82 + cmp r3, #7 + bhi _0805FEC6 + ldrh r1, [r6] + movs r0, #1 + ands r0, r1 + cmp r0, #0 + beq _0805FEBA + movs r1, #0xfc + ands r1, r3 + ldrb r0, [r5, #0xf] + lsrs r0, r0, #1 + adds r3, r1, r0 + b _0805FEC6 +_0805FEBA: + movs r0, #0xfc + ands r0, r3 + ldrb r2, [r5, #0x14] + lsrs r1, r2, #1 + adds r3, r0, r1 + strb r2, [r5, #0xf] +_0805FEC6: + adds r4, r5, #0 + adds r4, #0x58 + ldrb r0, [r4] + cmp r3, r0 + beq _0805FED8 + adds r0, r5, #0 + adds r1, r3, #0 + bl InitAnimationForceUpdate +_0805FED8: + adds r0, r5, #0 + bl UpdateAnimationSingleFrame + adds r0, r5, #0 + adds r0, #0x5a + ldrb r1, [r0] + movs r0, #0x80 + ands r0, r1 + cmp r0, #0 + beq _0805FF02 + ldrb r0, [r4] + cmp r0, #8 + beq _0805FEFE + cmp r0, #8 + blt _0805FF02 + cmp r0, #0xc + bgt _0805FF02 + cmp r0, #0xa + blt _0805FF02 +_0805FEFE: + movs r0, #0 + strh r0, [r7] +_0805FF02: + ldrh r1, [r6] + mvns r0, r1 + adds r0, #1 + ands r1, r0 + cmp r1, #2 + bne _0805FF14 + adds r0, r5, #0 + bl sub_0806ED78 +_0805FF14: + pop {r4, r5, r6, r7, pc} + .align 2, 0 + .syntax divided \ No newline at end of file diff --git a/asm/non_matching/forestMinish/sub_08060158.inc b/asm/non_matching/forestMinish/sub_08060158.inc new file mode 100644 index 00000000..92ec5d85 --- /dev/null +++ b/asm/non_matching/forestMinish/sub_08060158.inc @@ -0,0 +1,72 @@ + .include "asm/macros.inc" + + .include "constants/constants.inc" + + .syntax unified + + .text + + push {r4, r5, r6, r7, lr} + adds r4, r0, #0 + ldrb r0, [r4, #0xe] + adds r7, r0, #0 + cmp r7, #0 + beq _0806016A + subs r0, #1 + strb r0, [r4, #0xe] + b _080601CC +_0806016A: + movs r0, #2 + strb r0, [r4, #0xe] + adds r0, r4, #0 + movs r1, #0x20 + movs r2, #0x20 + bl sub_0806EDD8 + adds r3, r0, #0 + cmp r3, #0 + bge _08060188 + adds r0, r4, #0 + adds r0, #0x69 + ldrb r0, [r0] + strb r0, [r4, #0x14] + lsls r3, r0, #2 +_08060188: + ldrb r0, [r4, #0x14] + lsrs r0, r0, #1 + lsls r0, r0, #5 + asrs r1, r3, #1 + lsls r1, r1, #1 + ldr r2, _080601D0 @ =gUnk_08109C98 + adds r1, r1, r2 + adds r0, r0, r1 + ldrb r6, [r0] + ldrb r5, [r0, #1] + movs r0, #0x80 + ands r0, r5 + cmp r0, #0 + beq _080601AC + adds r0, r3, #0 + bl sub_0806F5B0 + strb r0, [r4, #0x14] +_080601AC: + movs r0, #0x7f + ands r5, r0 + adds r0, r4, #0 + adds r0, #0x5a + strb r6, [r0] + strb r5, [r4, #0x1e] + adds r1, r4, #0 + adds r1, #0x5b + movs r0, #1 + strb r0, [r1] + adds r0, r4, #0 + adds r0, #0x58 + strb r7, [r0] + subs r1, #2 + movs r0, #0xf0 + strb r0, [r1] +_080601CC: + pop {r4, r5, r6, r7, pc} + .align 2, 0 +_080601D0: .4byte gUnk_08109C98 + .syntax divided \ No newline at end of file diff --git a/include/link.h b/include/link.h index fa4cec13..76f4206d 100644 --- a/include/link.h +++ b/include/link.h @@ -74,6 +74,8 @@ typedef struct { u8 filler3[12]; } Stats; +extern u8 gBombBagSizes[]; + extern LinkState gLinkState; extern Stats gStats; extern Entity gLinkEntity; diff --git a/include/npc.h b/include/npc.h index fff3334a..314a5869 100644 --- a/include/npc.h +++ b/include/npc.h @@ -1,5 +1,6 @@ #include "global.h" #include "entity.h" +#include "link.h" #ifndef NPC_H #define NPC_H @@ -174,8 +175,14 @@ extern u32 UpdateFuseInteraction(Entity*); extern void ShowNPCDialogue(Entity*, u32*); typedef struct { - u8 filler[8]; - u8 unk; + /*0x000*/ u8 filler[8]; + /*0x008*/ u8 unk; + /*0x009*/ u8 filler2[0x47]; + /*0x050*/ u32 unk2; + /*0x051*/ u8 filler3[0x54]; + /*0x0a8*/ Stats stats; + /*0x0d0*/ u8 filler4[0x3c0]; + /*0x490*/ u32 unk3; } struct_02002A40; extern struct_02002A40 gUnk_02002A40; diff --git a/linker.ld b/linker.ld index 8024ecfc..1ad87c17 100644 --- a/linker.ld +++ b/linker.ld @@ -534,9 +534,9 @@ SECTIONS { asm/code_0805E744.o(.text); /* npcs */ src/gentari.o(.text); - asm/gentari.o(.text); + src/festari.o(.text); asm/festari.o(.text); - asm/forestMinish.o(.text); + src/forestMinish.o(.text); asm/postman.o(.text); asm/npc5.o(.text); asm/townsperson.o(.text); diff --git a/src/festari.c b/src/festari.c new file mode 100644 index 00000000..ff64ccd6 --- /dev/null +++ b/src/festari.c @@ -0,0 +1,91 @@ +#include "global.h" +#include "entity.h" +#include "npc.h" +#include "link.h" + +extern void sub_0805E3A0(Entity*, u32); +extern u32 sub_0801E99C(Entity*); +extern void sub_08078784(Entity*, u32); +extern void sub_0807DD50(Entity*); +extern void sub_0806F118(Entity*); +extern void ExecuteScriptCommandSet(Entity*, void *); +extern void sub_0805FF2C(Entity*, void*); +extern void sub_0806ED78(Entity*); + +extern void (*const gUnk_08109BBC[])(Entity*); + + +void Festari(Entity *this) +{ + gUnk_08109BBC[this->action](this); +} + +void sub_0805FE10(Entity *this) +{ + this->action = 1; + this->spriteSettings.b.draw = TRUE; + sub_0805E3A0(this, 2); + this->field_0x68 = sub_0801E99C(this); + sub_08078784(this, this->field_0x68); + sub_0807DD50(this); +} + +#if NON_MATCHING +void sub_0805FE48(Entity *this) +{ + u8 bVar1; + u16 uVar2; + u32 uVar3; + u32 uVar4; + + if (this->interactType == 2) { + this->action = 2; + this->interactType = 0; + InitAnimationForceUpdate(this, sub_0806F5A4(GetFacingDirection(this, &gLinkEntity))); + sub_0806F118(this); + } + else { + ExecuteScriptCommandSet(this, *(void **)&this->cutsceneBeh); + sub_0805FF2C(this, *(void **)&this->cutsceneBeh); + if (this->field_0x80 < 8) { + if ((this->field_0x82 & 1) != 0) { + uVar4 = (uVar4 & 0xfc) + (this->field_0xf >> 1); + } + else { + uVar4 = (uVar4 & 0xfc) + (this->animationState >> 1); + this->field_0xf = this->animationState; + } + } + if (uVar4 != this->animIndex) { + InitAnimationForceUpdate(this, uVar4); + } + UpdateAnimationSingleFrame(this); + + if (this->frames.b.f3) + { + switch (this->animIndex) { + case 8: + case 10: + case 11: + case 12: + this->field_0x80 = 0; + } + } + if ((this->field_0x82 & (~this->field_0x82 + 1)) == 2) { + sub_0806ED78(this); + } + } +} +#else +NAKED +void sub_0805FE48(Entity *this) { + asm(".include \"asm/non_matching/festari/sub_0805FE48.inc\""); +} +#endif + +void sub_0805FF18(Entity *this) +{ + if (UpdateFuseInteraction(this)) { + this->action = 1; + } +} \ No newline at end of file diff --git a/src/forestMinish.c b/src/forestMinish.c new file mode 100644 index 00000000..29a4ea6a --- /dev/null +++ b/src/forestMinish.c @@ -0,0 +1,304 @@ +#include "global.h" +#include "entity.h" +#include "npc.h" +#include "flags.h" +#include "textbox.h" +#include "link.h" + +extern void sub_0805E3A0(Entity*, u32); +extern void StartCutscene(Entity*, void*); +extern void sub_0807DD50(Entity*); +extern void sub_0806F118(Entity*); +extern void sub_0807DDAC(Entity*, u32); +extern void sub_0807DDE4(Entity*); +extern void sub_080600F0(Entity*); +extern u32 sub_0801E99C(Entity*); +extern void sub_08078784(Entity*, u32); +extern void sub_0807000C(Entity*); +extern void sub_080042BA(Entity*, u32); +extern void sub_08060158(Entity*); +extern u32 CheckKinstoneFused(u32); +extern Entity* sub_0805EB00(u32, u32, u32); +extern void sub_080A29BC(Entity* parent); +extern void DeleteEntity(Entity*); +extern u32 Random(void); +extern void ModBombs(s32); + +extern SpriteLoadData gUnk_0810A348; +extern void* gUnk_08109D18[]; +extern u8 gUnk_08109C98[]; +extern u16 gUnk_0810A354[]; +extern u32 gUnk_08109DC8[]; +extern u16 gUnk_0810A35A[]; +extern u16 gUnk_0810A362[]; + +void ForestMinish(Entity* this) { + switch (this->action) { + case 0: + if (LoadExtraSpriteData(this, &gUnk_0810A348)) { + this->action = 1; + this->spriteSettings.b.draw = TRUE; + this->field_0x69 = this->animationState = this->actionDelay << 1; + this->actionDelay = 0; + sub_0805E3A0(this, 2); + StartCutscene(this, gUnk_08109D18[this->entityType.parameter]); + sub_0807DD50(this); + } + break; + case 1: + if (this->interactType == 2) { + this->action = 2; + this->interactType = 0; + sub_0806F118(this); + } else { + sub_0807DDAC(this, 0); + sub_0807DDE4(this); + if (this->frameDuration != 0xf0) { + sub_080600F0(this); + } + } + break; + case 2: + if (UpdateFuseInteraction(this)) { + this->action = 1; + } + } +} + +void sub_08060090(Entity* this) { + this->field_0x68 = sub_0801E99C(this); + sub_08078784(this, this->field_0x68); +} + +void ForestMinish_Head(Entity* this) { + u32 pbVar1; + + pbVar1 = this->frames.all; + if (this->frames.all != 0xff) { + pbVar1 &= -0x81; + } + if ((this->frameSpriteSettings & 1) == 0) { + pbVar1 = 0xff; + } + SetExtraSpriteFrame(this, 0, pbVar1); + SetExtraSpriteFrame(this, 1, this->frameIndex); + SetSpriteSubEntryOffsetData1(this, 1, 0); + sub_0807000C(this); +} + +void sub_080600F0(Entity* this) { + u32 uVar1; + u32 uVar2; + + uVar2 = this->field_0x80; + if (this->field_0x80 < 8) { + if ((this->field_0x82 & 1) != 0) { + uVar2 = (uVar2 & 0xfc) + (this->field_0xf >> 1); + } else { + uVar2 = (uVar2 & 0xfc) + (this->animationState >> 1); + this->field_0xf = this->animationState; + } + } + if (uVar2 != this->animIndex) { + InitAnimationForceUpdate(this, uVar2); + } + if ((this->field_0x82 & 4) != 0) { + uVar1 = 2; + } else { + uVar1 = 1; + } + sub_080042BA(this, uVar1); +} + +void sub_0806014C(Entity* this) { + this->actionDelay = 0; + sub_08060158(this); +} + +#if 0 +void sub_08060158(Entity *this) +{ + u8 bVar1; + u8 bVar2; + s32 iVar4; + u32 temp; + if (this->actionDelay != 0) { + this->actionDelay--; + } + else { + this->actionDelay = 2; + iVar4 = sub_0806EDD8(this, 0x20, 0x20); + if (iVar4 < 0) { + this->animationState = this->field_0x69; + iVar4 = this->field_0x69 << 2; + } + temp = (this->animationState >> 1) * 0x20 + (iVar4 >> 1) * 2; + bVar1 = gUnk_08109C98[temp]; + bVar2 = gUnk_08109C98[temp + 1]; + if ((bVar2 & 0x80) != 0) { + this->animationState = sub_0806F5B0(iVar4); + } + this->frames.all = bVar1; + this->frameIndex = bVar2 & 0x7f; + this->frameSpriteSettings = 1; + this->animIndex = 0; + this->frameDuration = 0xf0; + } +} +#endif +NAKED +void sub_08060158(Entity* this) { + asm(".include \"asm/non_matching/forestMinish/sub_08060158.inc\""); +} + +void sub_080601D4(Entity* this) { + u32 temp; + u32 uVar2; + + if (CheckGlobalFlag(4) == 0) { + uVar2 = 2; + } else { + temp = CheckKinstoneFused(0x17); + uVar2 = (-temp | temp) >> 0x1f; + } + TextboxNoOverlap(gUnk_0810A354[uVar2], this); +} + +void sub_08060208(Entity *this) +{ + ShowNPCDialogue(this, &gUnk_08109DC8[this->entityType.parameter * 0x8]); +} + +void sub_0806021C(Entity *this) +{ + u32 uVar1; + u32 uVar2; + + //jabber nut + uVar1 = GetInventoryValue(0x5B); + uVar2 = (-uVar1 | uVar1) >> 0x1f; + + //earth element + if (GetInventoryValue(0x40)) { + uVar2 = 2; + } + + //mole mitts + if (GetInventoryValue(0x13)) { + uVar2 = 3; + } + ShowNPCDialogue(this, gUnk_08109DC8 + this->entityType.parameter * 0x8 + uVar2 * 2); +} + +void sub_0806025C(Entity *this) +{ + ShowNPCDialogue(this, &gUnk_08109DC8[this->entityType.parameter * 0x8]); +} + +void sub_08060270(Entity *this) +{ + u32 index; + + //flippers + if (GetInventoryValue(0x46) == 0) { + index = 1; + if (CheckGlobalFlag(0x29) == 0) { + index = 0; + SetGlobalFlag(0x29); + } + } + else { + index = 3; + if (CheckLocalFlag(0x76) == 0) { + index = 2; + SetLocalFlag(0x76); + } + } + TextboxNoOverlap(gUnk_0810A35A[index], this); +} + +void sub_080602BC(Entity *this) +{ + u32 index; + + //spin attack + if (GetInventoryValue(0x48) != 0) { + index = (Random() & 1) + 2; + } + else { + if (gUnk_02002A40.stats.bombCount < gBombBagSizes[gUnk_02002A40.stats.bombBagType]) { + index = 1; + } + else { + index = 0; + } + } + TextboxNoOverlap(gUnk_0810A362[index], this); +} + +void sub_0806030C(Entity* this, u32 *arg1) +{ + ModBombs(*(arg1 + 1)); +} + +void sub_08060318(void) +{ + Entity *ent; + int i; + + for (i = 2; i >= 0; i--) { + ent = sub_0805EB00(8, 2, 2); + if (ent != NULL) { + sub_080A29BC(ent); + DeleteEntity(ent); + } + } +} + +void sub_08060340(void) +{ + gUnk_02002A40.unk3 = gUnk_02002A40.unk2; +} + +u32 sub_08060354(void) +{ + u32 iVar1; + s32 iVar2; + + iVar2 = gUnk_02002A40.unk2 - gUnk_02002A40.unk3; + if (CheckGlobalFlag(0x3b) == 0) { + if (4 < iVar2) { + return 0x8444; + } + } + else { + if (CheckGlobalFlag(0x3c) == 0) { + if (iVar2 > 9) { + return 0x8444; + } + } + else { + if (CheckGlobalFlag(0x3d) == 0) { + if (iVar2 > 14) { + return 0x8444; + } + } + } + } + return 0; +} + +void ForestMinish_Fusion(Entity *this) +{ + if (this->action == 0) { + if (LoadExtraSpriteData(this, &gUnk_0810A348)) { + this->action++; + this->spriteSettings.b.draw = TRUE; + sub_0805E3A0(this, 2); + InitializeAnimation(this, 6); + } + } + else { + GetNextFrame(this); + } +} \ No newline at end of file From c47f16e5e7b0abb010133b3ee1a58099d8b8915d Mon Sep 17 00:00:00 2001 From: theo3 Date: Mon, 13 Jul 2020 13:44:50 -0700 Subject: [PATCH 015/158] postman.c --- Makefile | 2 +- asm/non_matching/postman/sub_08060700.inc | 51 +++ asm/postman.s | 447 ---------------------- linker.ld | 1 + src/postman.c | 227 +++++++++++ 5 files changed, 280 insertions(+), 448 deletions(-) create mode 100644 asm/non_matching/postman/sub_08060700.inc create mode 100644 src/postman.c diff --git a/Makefile b/Makefile index 8159581a..0735bd2a 100644 --- a/Makefile +++ b/Makefile @@ -83,7 +83,7 @@ endif #$(C_BUILDDIR)/need_interworking_file_name.o: CFLAGS += -mthumb-interwork -C_SRCS := $(wildcard $(C_SUBDIR)/*.c) +C_SRCS := $(wildcard $(C_SUBDIR)/*.c $(C_SUBDIR)/*/*.c) C_OBJS := $(patsubst $(C_SUBDIR)/%.c,$(C_BUILDDIR)/%.o,$(C_SRCS)) ASM_SRCS := $(wildcard $(ASM_SUBDIR)/*.s) diff --git a/asm/non_matching/postman/sub_08060700.inc b/asm/non_matching/postman/sub_08060700.inc new file mode 100644 index 00000000..326e221b --- /dev/null +++ b/asm/non_matching/postman/sub_08060700.inc @@ -0,0 +1,51 @@ + .include "asm/macros.inc" + + .include "constants/constants.inc" + + .syntax unified + + .text + + push {r4, r5, lr} + ldr r3, _0806074C @ =gUnk_0810A918 + adds r2, r0, #0 + adds r2, #0x68 + ldrb r2, [r2] + lsls r2, r2, #0x18 + asrs r2, r2, #0x18 + lsls r2, r2, #2 + adds r2, r2, r3 + ldr r2, [r2] + adds r3, r0, #0 + adds r3, #0x69 + ldrb r3, [r3] + lsls r3, r3, #0x18 + asrs r3, r3, #0x18 + adds r2, r2, r3 + movs r3, #0 + ldrsb r3, [r2, r3] + lsls r3, r3, #2 + ldr r2, _08060750 @ =gUnk_0810A66C + adds r3, r3, r2 + ldr r4, _08060754 @ =gRoomControls + movs r5, #0 + ldrsh r2, [r3, r5] + ldrh r5, [r4, #6] + adds r2, r2, r5 + movs r5, #2 + ldrsh r3, [r3, r5] + ldrh r4, [r4, #8] + adds r3, r3, r4 + bl sub_0807DEDC + ldr r2, _08060758 @ =gUnk_02033280 + ldrb r1, [r2, #7] + movs r0, #1 + orrs r0, r1 + strb r0, [r2, #7] + pop {r4, r5, pc} + .align 2, 0 +_0806074C: .4byte gUnk_0810A918 +_08060750: .4byte gUnk_0810A66C +_08060754: .4byte gRoomControls +_08060758: .4byte gUnk_02033280 + .syntax divided \ No newline at end of file diff --git a/asm/postman.s b/asm/postman.s index 66761797..3bb384b7 100644 --- a/asm/postman.s +++ b/asm/postman.s @@ -6,453 +6,6 @@ .text - - thumb_func_start Postman -Postman: @ 0x080603FC - push {lr} - adds r2, r0, #0 - ldrb r1, [r2, #0x10] - movs r0, #2 - ands r0, r1 - cmp r0, #0 - beq _08060412 - adds r0, r2, #0 - bl sub_08060528 - b _08060422 -_08060412: - ldr r0, _08060424 @ =gUnk_0810AA24 - ldrb r1, [r2, #0xc] - lsls r1, r1, #2 - adds r1, r1, r0 - ldr r1, [r1] - adds r0, r2, #0 - bl _call_via_r1 -_08060422: - pop {pc} - .align 2, 0 -_08060424: .4byte gUnk_0810AA24 - - thumb_func_start sub_08060428 -sub_08060428: @ 0x08060428 - push {r4, lr} - adds r4, r0, #0 - movs r0, #0x5a - strb r0, [r4, #0xe] - movs r0, #0xc0 - lsls r0, r0, #1 - strh r0, [r4, #0x24] - ldrb r0, [r4, #0xb] - cmp r0, #0 - beq _08060444 - bl GetCurrentRoomProperty - adds r1, r0, #0 - b _08060446 -_08060444: - movs r1, #0 -_08060446: - adds r0, r4, #0 - movs r2, #0 - bl sub_0806EE04 - movs r0, #1 - strb r0, [r4, #0xc] - adds r0, r4, #0 - movs r1, #4 - bl InitAnimationForceUpdate - pop {r4, pc} - - thumb_func_start sub_0806045C -sub_0806045C: @ 0x0806045C - push {r4, lr} - adds r4, r0, #0 - bl UpdateAnimationSingleFrame - adds r0, r4, #0 - bl sub_080604DC - adds r0, r4, #0 - adds r0, #0x39 - ldrb r0, [r0] - lsls r0, r0, #0x18 - asrs r0, r0, #0x18 - cmp r0, #2 - bgt _08060488 - cmp r0, #1 - blt _08060488 - movs r0, #2 - strb r0, [r4, #0xc] - movs r0, #0 - bl TextboxNoOverlapFollow - b _080604C0 -_08060488: - adds r0, r4, #0 - adds r0, #0x3e - ldrb r1, [r0] - ldrb r0, [r4, #0x14] - cmp r1, r0 - beq _0806049E - strb r1, [r4, #0x14] - adds r1, #4 - adds r0, r4, #0 - bl InitAnimationForceUpdate -_0806049E: - adds r0, r4, #0 - movs r1, #0x18 - movs r2, #0x18 - bl sub_0806ED9C - movs r1, #0 - cmp r0, #0 - blt _080604B6 - ldrb r2, [r4, #0x14] - cmp r0, r2 - bne _080604B6 - movs r1, #1 -_080604B6: - cmp r1, #0 - bne _080604C0 - adds r0, r4, #0 - bl sub_0806EE20 -_080604C0: - adds r0, r4, #0 - bl sub_0806ED78 - pop {r4, pc} - - thumb_func_start sub_080604C8 -sub_080604C8: @ 0x080604C8 - push {r4, lr} - adds r4, r0, #0 - bl UpdateAnimationSingleFrame - adds r0, r4, #0 - bl sub_080604DC - movs r0, #1 - strb r0, [r4, #0xc] - pop {r4, pc} - - thumb_func_start sub_080604DC -sub_080604DC: @ 0x080604DC - push {r4, r5, lr} - adds r5, r0, #0 - ldrb r0, [r5, #0x18] - lsls r0, r0, #0x1e - lsrs r4, r0, #0x1e - cmp r4, #1 - bne _08060524 - adds r0, r5, #0 - bl sub_080040A8 - cmp r0, #0 - beq _08060524 - adds r2, r5, #0 - adds r2, #0x5a - ldrb r1, [r2] - ands r4, r1 - cmp r4, #0 - beq _08060524 - movs r0, #0xfe - ands r0, r1 - strb r0, [r2] - adds r0, r5, #0 - movs r1, #0x11 - movs r2, #0x40 - bl CreateFx - adds r1, r0, #0 - cmp r1, #0 - beq _08060524 - ldrh r0, [r1, #0x32] - adds r0, #1 - strh r0, [r1, #0x32] - adds r0, r1, #0 - movs r1, #3 - bl sub_0805E3A0 -_08060524: - pop {r4, r5, pc} - .align 2, 0 - - thumb_func_start sub_08060528 -sub_08060528: @ 0x08060528 - push {r4, r5, r6, lr} - adds r4, r0, #0 - ldrb r3, [r4, #0xc] - cmp r3, #1 - beq _08060582 - cmp r3, #1 - bgt _0806053C - cmp r3, #0 - beq _08060546 - b _080605EC -_0806053C: - cmp r3, #2 - beq _080605F6 - cmp r3, #3 - beq _08060618 - b _080605EC -_08060546: - movs r2, #1 - movs r0, #1 - strb r0, [r4, #0xc] - ldrb r1, [r4, #0x18] - subs r0, #5 - ands r0, r1 - orrs r0, r2 - strb r0, [r4, #0x18] - adds r0, r4, #0 - adds r0, #0x68 - strb r3, [r0] - adds r0, #1 - strb r3, [r0] - adds r5, r4, #0 - adds r5, #0x6a - movs r0, #0 - strh r3, [r5] - adds r6, r4, #0 - adds r6, #0x6d - strb r0, [r6] - adds r0, r4, #0 - bl sub_0801E99C - adds r1, r4, #0 - adds r1, #0x6c - strb r0, [r1] - adds r0, r4, #0 - bl sub_0807DD50 - b _08060634 -_08060582: - adds r2, r4, #0 - adds r2, #0x39 - movs r0, #0 - ldrsb r0, [r2, r0] - cmp r0, #2 - bne _080605B8 - movs r1, #0 - movs r0, #3 - strb r0, [r4, #0xc] - strb r1, [r2] - adds r0, r4, #0 - bl sub_0806F118 - ldr r1, _080605B4 @ =gLinkEntity - adds r0, r4, #0 - bl GetFacingDirection - bl sub_0806F5A4 - adds r1, r0, #0 - adds r0, r4, #0 - bl InitAnimationForceUpdate - b _080605EC - .align 2, 0 -_080605B4: .4byte gLinkEntity -_080605B8: - cmp r0, #0 - beq _080605E4 - movs r1, #0 - movs r0, #2 - strb r0, [r4, #0xc] - strb r1, [r2] - adds r0, r4, #0 - bl sub_080606D8 - ldr r1, _080605E0 @ =gLinkEntity - adds r0, r4, #0 - bl GetFacingDirection - bl sub_0806F5A4 - adds r1, r0, #0 - adds r0, r4, #0 - bl InitAnimationForceUpdate - b _080605EC - .align 2, 0 -_080605E0: .4byte gLinkEntity -_080605E4: - adds r0, r4, #0 - movs r1, #0 - bl sub_0807DD94 -_080605EC: - adds r5, r4, #0 - adds r5, #0x6a - adds r6, r4, #0 - adds r6, #0x6d - b _08060634 -_080605F6: - adds r0, r4, #0 - bl UpdateAnimationSingleFrame - ldr r0, _08060614 @ =gTextBox - ldrb r1, [r0] - movs r0, #0x7f - ands r0, r1 - adds r5, r4, #0 - adds r5, #0x6a - adds r6, r4, #0 - adds r6, #0x6d - cmp r0, #0 - bne _08060634 - b _08060630 - .align 2, 0 -_08060614: .4byte gTextBox -_08060618: - adds r0, r4, #0 - bl UpdateAnimationSingleFrame - adds r0, r4, #0 - bl UpdateFuseInteraction - adds r5, r4, #0 - adds r5, #0x6a - adds r6, r4, #0 - adds r6, #0x6d - cmp r0, #0 - beq _08060634 -_08060630: - movs r0, #1 - strb r0, [r4, #0xc] -_08060634: - adds r0, r4, #0 - bl sub_080604DC - adds r1, r5, #0 - ldrh r3, [r1] - movs r0, #0 - ldrsh r2, [r1, r0] - cmp r2, #0 - ble _08060670 - ldr r0, _08060668 @ =0x0000012B - cmp r2, r0 - ble _0806066C - movs r0, #0 - strh r0, [r1] - movs r0, #0x80 - lsls r0, r0, #0xa - str r0, [r4, #0x20] - movs r0, #1 - strb r0, [r6] - adds r0, r4, #0 - bl sub_080788E0 - movs r0, #0x7c - bl sub_08004488 - b _08060670 - .align 2, 0 -_08060668: .4byte 0x0000012B -_0806066C: - subs r0, r3, #1 - strh r0, [r5] -_08060670: - movs r1, #0xc0 - lsls r1, r1, #5 - adds r0, r4, #0 - bl sub_08003FC4 - ldrb r0, [r6] - cmp r0, #0 - beq _08060694 - ldr r0, [r4, #0x20] - cmp r0, #0 - bne _08060694 - ldr r0, [r4, #0x34] - cmp r0, #0 - bne _08060694 - strb r0, [r6] - adds r0, r4, #0 - bl sub_080606C0 -_08060694: - ldr r0, [r4, #0x34] - cmp r0, #0 - blt _080606B4 - ldr r0, _080606BC @ =gLinkEntity - adds r0, #0x38 - ldrb r1, [r0] - cmp r1, #0 - beq _080606AE - adds r0, r4, #0 - adds r0, #0x38 - ldrb r0, [r0] - cmp r0, r1 - bne _080606B4 -_080606AE: - adds r0, r4, #0 - bl sub_0806ED78 -_080606B4: - adds r0, r4, #0 - bl sub_0800451C - pop {r4, r5, r6, pc} - .align 2, 0 -_080606BC: .4byte gLinkEntity - - thumb_func_start sub_080606C0 -sub_080606C0: @ 0x080606C0 - push {r4, lr} - adds r4, r0, #0 - bl sub_0801E99C - adds r1, r4, #0 - adds r1, #0x6c - strb r0, [r1] - ldrb r1, [r1] - adds r0, r4, #0 - bl sub_08078784 - pop {r4, pc} - - thumb_func_start sub_080606D8 -sub_080606D8: @ 0x080606D8 - push {lr} - adds r2, r0, #0 - ldr r0, _080606F8 @ =gUnk_02002A40 - ldrb r0, [r0, #8] - subs r0, #2 - cmp r0, #0 - bge _080606E8 - movs r0, #0 -_080606E8: - lsls r1, r0, #3 - ldr r0, _080606FC @ =gUnk_0810AA30 - adds r1, r1, r0 - adds r0, r2, #0 - bl ShowNPCDialogue - pop {pc} - .align 2, 0 -_080606F8: .4byte gUnk_02002A40 -_080606FC: .4byte gUnk_0810AA30 - - thumb_func_start sub_08060700 -sub_08060700: @ 0x08060700 - push {r4, r5, lr} - ldr r3, _0806074C @ =gUnk_0810A918 - adds r2, r0, #0 - adds r2, #0x68 - ldrb r2, [r2] - lsls r2, r2, #0x18 - asrs r2, r2, #0x18 - lsls r2, r2, #2 - adds r2, r2, r3 - ldr r2, [r2] - adds r3, r0, #0 - adds r3, #0x69 - ldrb r3, [r3] - lsls r3, r3, #0x18 - asrs r3, r3, #0x18 - adds r2, r2, r3 - movs r3, #0 - ldrsb r3, [r2, r3] - lsls r3, r3, #2 - ldr r2, _08060750 @ =gUnk_0810A66C - adds r3, r3, r2 - ldr r4, _08060754 @ =gRoomControls - movs r5, #0 - ldrsh r2, [r3, r5] - ldrh r5, [r4, #6] - adds r2, r2, r5 - movs r5, #2 - ldrsh r3, [r3, r5] - ldrh r4, [r4, #8] - adds r3, r3, r4 - bl sub_0807DEDC - ldr r2, _08060758 @ =gUnk_02033280 - ldrb r1, [r2, #7] - movs r0, #1 - orrs r0, r1 - strb r0, [r2, #7] - pop {r4, r5, pc} - .align 2, 0 -_0806074C: .4byte gUnk_0810A918 -_08060750: .4byte gUnk_0810A66C -_08060754: .4byte gRoomControls -_08060758: .4byte gUnk_02033280 - - thumb_func_start sub_0806075C -sub_0806075C: @ 0x0806075C - adds r2, r0, #0 - adds r2, #0x68 - movs r1, #0xb - strb r1, [r2] - adds r0, #0x69 - movs r1, #0xff - strb r1, [r0] - bx lr - thumb_func_start sub_0806076C sub_0806076C: @ 0x0806076C push {r4, r5, r6, r7, lr} diff --git a/linker.ld b/linker.ld index 1ad87c17..cca61b62 100644 --- a/linker.ld +++ b/linker.ld @@ -537,6 +537,7 @@ SECTIONS { src/festari.o(.text); asm/festari.o(.text); src/forestMinish.o(.text); + src/postman.o(.text); asm/postman.o(.text); asm/npc5.o(.text); asm/townsperson.o(.text); diff --git a/src/postman.c b/src/postman.c new file mode 100644 index 00000000..b3a51dba --- /dev/null +++ b/src/postman.c @@ -0,0 +1,227 @@ +#include "global.h" +#include "entity.h" +#include "npc.h" +#include "textbox.h" +#include "link.h" + +typedef struct { + u8 filler[7]; + u8 unk; +} struct_02033280; + +extern void sub_08060528(Entity*); +extern void* GetCurrentRoomProperty(u32); +extern void sub_0806EE04(Entity*, void*, u32); +extern void sub_080604DC(Entity*); +extern s32 sub_0806ED9C(Entity*, u32, u32); +extern void sub_0806EE20(Entity*); +extern void sub_0806ED78(Entity*); +extern u32 sub_080040A8(Entity*); +extern void sub_0805E3A0(Entity*, u32); +extern u32 sub_0801E99C(Entity*); +extern void sub_0807DD50(Entity*); +extern void sub_0806F118(Entity*); +extern u32 sub_0806F5A4(u32); +extern u32 GetFacingDirection(Entity*, Entity*); +extern void sub_080606D8(Entity*); +extern void sub_0807DD94(Entity*, u32); +extern void sub_080788E0(Entity*); +extern void sub_08004488(u32); +extern void sub_08003FC4(Entity*, u32); +extern void sub_080606C0(Entity*); +extern void sub_0800451C(Entity*); +extern void sub_08078784(Entity*, u32); +extern void sub_0807DEDC(Entity*, u32, u32, u32); + +extern void (*const gUnk_0810AA24[])(Entity*); +extern u32 gUnk_0810AA30[]; +extern u32** gUnk_0810A66C; +extern u32 gUnk_0810A918[]; +extern struct_02033280 gUnk_02033280; + +void Postman(Entity* this) { + if ((this->flags & 2) != 0) { + sub_08060528(this); + } else { + gUnk_0810AA24[this->action](this); + } +} + +void sub_08060428(Entity* this) { + u8 bVar1; + void* data; + + this->actionDelay = 0x5a; + this->nonPlanarMovement = 0x180; + if (this->entityType.parameter != 0) { + data = GetCurrentRoomProperty(this->entityType.parameter); + } else { + data = NULL; + } + sub_0806EE04(this, data, 0); + this->action = 1; + InitAnimationForceUpdate(this, 4); +} + +void sub_0806045C(Entity* this) { + u8 bVar1; + u32 uVar2; + u32 bVar3; + s32 temp; + + UpdateAnimationSingleFrame(this); + sub_080604DC(this); + switch (this->interactType) { + case 1: + case 2: + this->action = 2; + TextboxNoOverlapFollow(0); + break; + default: + bVar1 = this->field_0x3e; + if (bVar1 != this->animationState) { + this->animationState = bVar1; + InitAnimationForceUpdate(this, 4 + bVar1); + } + temp = sub_0806ED9C(this, 0x18, 0x18); + if ((temp > -1) && (temp == this->animationState)) { + bVar3 = 1; + } else { + bVar3 = 0; + } + if (!bVar3) { + sub_0806EE20(this); + } + } + sub_0806ED78(this); +} + +void sub_080604C8(Entity* this) { + UpdateAnimationSingleFrame(this); + sub_080604DC(this); + this->action = 1; +} + +void sub_080604DC(Entity* this) { + u8 bVar1; + int iVar2; + Entity* ent; + + if (((u32)(this->spriteSettings.raw << 0x1e) >> 0x1e == 1) && sub_080040A8(this)) { + if ((this->frames.all & 1) != 0) { + this->frames.all &= 0xfe; + ent = CreateFx(this, 0x11, 0x40); + if (ent != NULL) { + ent->y.HALF.HI++; + sub_0805E3A0(ent, 3); + } + } + } +} + +void sub_08060528(Entity *this) +{ + switch (this->action) { + case 0: + this->action = 1; + this->spriteSettings.b.draw = TRUE; + this->field_0x68 = 0; + this->field_0x69 = 0; + this->field_0x6a.HWORD = 0; + this->field_0x6d = 0; + this->field_0x6c = sub_0801E99C(this); + sub_0807DD50(this); + break; + case 1: + if (this->interactType == 2) { + this->action = 3; + this->interactType = 0; + sub_0806F118(this); + InitAnimationForceUpdate(this, sub_0806F5A4(GetFacingDirection(this, &gLinkEntity))); + } + else { + if (this->interactType != 0) { + this->action = 2; + this->interactType = 0; + sub_080606D8(this); + InitAnimationForceUpdate(this, sub_0806F5A4(GetFacingDirection(this, &gLinkEntity))); + } + else { + sub_0807DD94(this, 0); + } + } + break; + case 2: + UpdateAnimationSingleFrame(this); + if ((gTextBox.doTextBox & 0x7f) != 0) { + break; + } + this->action = 1; + break; + case 3: + UpdateAnimationSingleFrame(this); + if (!UpdateFuseInteraction(this)) { + break; + } + this->action = 1; + } + sub_080604DC(this); + if (0 < (s16)this->field_0x6a.HWORD) { + if ((s16)this->field_0x6a.HWORD > 0x12b) { + this->field_0x6a.HWORD = 0; + this->field_0x20 = 0x20000; + this->field_0x6d = 1; + sub_080788E0(this); + sub_08004488(0x7c); + } + else { + this->field_0x6a.HWORD -= 1; + } + } + sub_08003FC4(this, 0x1800); + if (((this->field_0x6d != 0) && (this->field_0x20 == 0)) && this->height.WORD == 0) { + this->field_0x6d = 0; + sub_080606C0(this); + } + if ((-1 < this->height.WORD) && + ((gLinkEntity.collisionLayer == 0 || (this->collisionLayer == gLinkEntity.collisionLayer)))) { + sub_0806ED78(this); + } + sub_0800451C(this); +} + +void sub_080606C0(Entity *this) +{ + this->field_0x6c = sub_0801E99C(this); + sub_08078784(this, this->field_0x6c); +} + +void sub_080606D8(Entity* this) +{ + s32 iVar1; + + iVar1 = gUnk_02002A40.unk - 2; + if (iVar1 < 0) { + iVar1 = 0; + } + ShowNPCDialogue(this, &gUnk_0810AA30[iVar1 * 2]); +} + +#if 0 +void sub_08060700(Entity *arg0, u32 arg1) +{ + sub_0807DEDC(arg0,arg1, + gUnk_0810A918[gUnk_0810A66C[arg0->field_0x69][arg0->field_0x68] * 4 + gRoomControls.roomOriginX], + gUnk_0810A918[gUnk_0810A66C[arg0->field_0x69][arg0->field_0x68] * 4 + gRoomControls.roomOriginY + 2]); + gUnk_02033280.unk |= 1; +} +#endif +NAKED void sub_08060700(Entity *arg0, u32 arg1) { + asm(".include \"asm/non_matching/postman/sub_08060700.inc\""); +} + +void sub_0806075C(Entity *this) +{ + this->field_0x68 = 0xb; + this->field_0x69 = 0xff; +} \ No newline at end of file From 62ddaaa5f6fe2dc2aaa2dd002d4ce0b1d61a3cc9 Mon Sep 17 00:00:00 2001 From: theo3 Date: Mon, 13 Jul 2020 15:27:20 -0700 Subject: [PATCH 016/158] add subdirs --- Makefile | 5 + asm/townsperson.s | 112 ------------------- linker.ld | 149 +++++++++++++------------ src/{ => enemy}/bladeTrap.c | 0 src/{ => enemy}/bombPeahat.c | 0 src/{ => enemy}/bowMoblin.c | 0 src/{ => enemy}/hangingSeed.c | 0 src/{ => enemy}/keese.c | 0 src/{ => enemy}/lakitu.c | 0 src/{ => enemy}/lakituCloud.c | 0 src/{ => enemy}/miniFireballGuy.c | 0 src/{ => enemy}/octorok.c | 0 src/{ => enemy}/slime.c | 0 src/{ => enemy}/smallPesto.c | 0 src/{ => manager}/manager1.c | 0 src/{ => manager}/manager2.c | 0 src/{ => manager}/manager27.c | 0 src/{ => manager}/manager2E.c | 0 src/{ => npc}/bigGoron.c | 0 src/{ => npc}/bladeBrothers.c | 0 src/{ => npc}/carpenter.c | 0 src/{ => npc}/cat.c | 0 src/{ => npc}/clothesRack.c | 0 src/{ => npc}/cow.c | 0 src/{ => npc}/dampe.c | 0 src/{ => npc}/emma.c | 0 src/{ => npc}/epona.c | 0 src/{ => npc}/festari.c | 0 src/{ => npc}/forestMinish.c | 0 src/{ => npc}/gentari.c | 0 src/{ => npc}/goron.c | 0 src/{ => npc}/guard.c | 0 src/{ => npc}/mailbox.c | 0 src/{ => npc}/malon.c | 0 src/{ => npc}/milkCart.c | 0 src/{ => npc}/mutoh.c | 0 src/{ => npc}/postman.c | 0 src/{ => npc}/rem.c | 0 src/{ => npc}/simon.c | 0 src/{ => npc}/smith.c | 0 src/{ => npc}/stamp.c | 0 src/{ => npc}/syrup.c | 0 src/{ => npc}/talon.c | 0 src/{ => npc}/teachers.c | 0 src/{ => npc}/townMinish.c | 0 src/npc/townsperson.c | 58 ++++++++++ src/{ => npc}/wheaton.c | 0 src/{ => npc}/windTribespeople.c | 0 src/{ => npc}/zelda.c | 0 src/{ => object}/archway.c | 0 src/{ => object}/bell.c | 0 src/{ => object}/chestSpawner.c | 0 src/{ => object}/cloud.c | 0 src/{ => object}/fan.c | 0 src/{ => object}/giantLeaf.c | 0 src/{ => object}/greatFairy.c | 0 src/{ => object}/heartContainer.c | 0 src/{ => object}/lightableSwitch.c | 0 src/{ => object}/mask.c | 0 src/{ => object}/metalDoor.c | 0 src/{ => object}/mineralWaterSource.c | 0 src/{ => object}/minishSizedEntrance.c | 0 src/{ => object}/object1A.c | 0 src/{ => object}/object1C.c | 0 src/{ => object}/object1D.c | 0 src/{ => object}/object49.c | 0 src/{ => object}/object86.c | 0 src/{ => object}/object9E.c | 0 src/{ => object}/objectA8.c | 0 src/{ => object}/railtrack.c | 0 src/{ => object}/smoke.c | 0 src/{ => object}/swordsmanNewsletter.c | 0 src/{ => object}/thoughtBubble.c | 0 src/{ => object}/treeHidingPortal.c | 0 src/{ => object}/well.c | 0 src/{ => object}/windTribeFlag.c | 0 src/{ => object}/windcrest.c | 0 77 files changed, 138 insertions(+), 186 deletions(-) rename src/{ => enemy}/bladeTrap.c (100%) rename src/{ => enemy}/bombPeahat.c (100%) rename src/{ => enemy}/bowMoblin.c (100%) rename src/{ => enemy}/hangingSeed.c (100%) rename src/{ => enemy}/keese.c (100%) rename src/{ => enemy}/lakitu.c (100%) rename src/{ => enemy}/lakituCloud.c (100%) rename src/{ => enemy}/miniFireballGuy.c (100%) rename src/{ => enemy}/octorok.c (100%) rename src/{ => enemy}/slime.c (100%) rename src/{ => enemy}/smallPesto.c (100%) rename src/{ => manager}/manager1.c (100%) rename src/{ => manager}/manager2.c (100%) rename src/{ => manager}/manager27.c (100%) rename src/{ => manager}/manager2E.c (100%) rename src/{ => npc}/bigGoron.c (100%) rename src/{ => npc}/bladeBrothers.c (100%) rename src/{ => npc}/carpenter.c (100%) rename src/{ => npc}/cat.c (100%) rename src/{ => npc}/clothesRack.c (100%) rename src/{ => npc}/cow.c (100%) rename src/{ => npc}/dampe.c (100%) rename src/{ => npc}/emma.c (100%) rename src/{ => npc}/epona.c (100%) rename src/{ => npc}/festari.c (100%) rename src/{ => npc}/forestMinish.c (100%) rename src/{ => npc}/gentari.c (100%) rename src/{ => npc}/goron.c (100%) rename src/{ => npc}/guard.c (100%) rename src/{ => npc}/mailbox.c (100%) rename src/{ => npc}/malon.c (100%) rename src/{ => npc}/milkCart.c (100%) rename src/{ => npc}/mutoh.c (100%) rename src/{ => npc}/postman.c (100%) rename src/{ => npc}/rem.c (100%) rename src/{ => npc}/simon.c (100%) rename src/{ => npc}/smith.c (100%) rename src/{ => npc}/stamp.c (100%) rename src/{ => npc}/syrup.c (100%) rename src/{ => npc}/talon.c (100%) rename src/{ => npc}/teachers.c (100%) rename src/{ => npc}/townMinish.c (100%) create mode 100644 src/npc/townsperson.c rename src/{ => npc}/wheaton.c (100%) rename src/{ => npc}/windTribespeople.c (100%) rename src/{ => npc}/zelda.c (100%) rename src/{ => object}/archway.c (100%) rename src/{ => object}/bell.c (100%) rename src/{ => object}/chestSpawner.c (100%) rename src/{ => object}/cloud.c (100%) rename src/{ => object}/fan.c (100%) rename src/{ => object}/giantLeaf.c (100%) rename src/{ => object}/greatFairy.c (100%) rename src/{ => object}/heartContainer.c (100%) rename src/{ => object}/lightableSwitch.c (100%) rename src/{ => object}/mask.c (100%) rename src/{ => object}/metalDoor.c (100%) rename src/{ => object}/mineralWaterSource.c (100%) rename src/{ => object}/minishSizedEntrance.c (100%) rename src/{ => object}/object1A.c (100%) rename src/{ => object}/object1C.c (100%) rename src/{ => object}/object1D.c (100%) rename src/{ => object}/object49.c (100%) rename src/{ => object}/object86.c (100%) rename src/{ => object}/object9E.c (100%) rename src/{ => object}/objectA8.c (100%) rename src/{ => object}/railtrack.c (100%) rename src/{ => object}/smoke.c (100%) rename src/{ => object}/swordsmanNewsletter.c (100%) rename src/{ => object}/thoughtBubble.c (100%) rename src/{ => object}/treeHidingPortal.c (100%) rename src/{ => object}/well.c (100%) rename src/{ => object}/windTribeFlag.c (100%) rename src/{ => object}/windcrest.c (100%) diff --git a/Makefile b/Makefile index 0735bd2a..90bf1ca4 100644 --- a/Makefile +++ b/Makefile @@ -69,6 +69,7 @@ FIX := tools/gbafix/gbafix # Secondary expansion is required for dependency variables in object rules. .SECONDEXPANSION: + $(shell mkdir -p $(C_BUILDDIR) $(ASM_BUILDDIR) $(DATA_ASM_BUILDDIR) $(SONG_BUILDDIR) $(MID_BUILDDIR)) infoshell = $(foreach line, $(shell $1 | sed "s/ /__SPACE__/g"), $(info $(subst __SPACE__, ,$(line)))) @@ -101,6 +102,10 @@ MID_OBJS := $(patsubst $(MID_SUBDIR)/%.mid,$(MID_BUILDDIR)/%.o,$(MID_SRCS)) OBJS := $(C_OBJS) $(ASM_OBJS) $(DATA_ASM_OBJS) $(SONG_OBJS) $(MID_OBJS) OBJS_REL := $(patsubst $(OBJ_DIR)/%,%,$(OBJS)) +SUBDIRS := $(sort $(dir $(OBJS))) + +$(shell mkdir -p $(SUBDIRS)) + TOOLDIRS := $(filter-out tools/agbcc tools/binutils,$(wildcard tools/*)) TOOLBASE = $(TOOLDIRS:tools/%=%) TOOLS = $(foreach tool,$(TOOLBASE),tools/$(tool)/$(tool)$(EXE)) diff --git a/asm/townsperson.s b/asm/townsperson.s index 1993b4c6..32bf8e55 100644 --- a/asm/townsperson.s +++ b/asm/townsperson.s @@ -6,118 +6,6 @@ .text - - thumb_func_start Townsperson -Townsperson: @ 0x08061B8C - push {lr} - adds r2, r0, #0 - ldrb r1, [r2, #0x10] - movs r0, #2 - ands r0, r1 - cmp r0, #0 - beq _08061BB0 - ldr r0, _08061BAC @ =gUnk_0810B77C - ldrb r1, [r2, #0xc] - lsls r1, r1, #2 - adds r1, r1, r0 - ldr r1, [r1] - adds r0, r2, #0 - bl _call_via_r1 - b _08061BC0 - .align 2, 0 -_08061BAC: .4byte gUnk_0810B77C -_08061BB0: - ldr r0, _08061BC4 @ =gUnk_0810B774 - ldrb r1, [r2, #0xc] - lsls r1, r1, #2 - adds r1, r1, r0 - ldr r1, [r1] - adds r0, r2, #0 - bl _call_via_r1 -_08061BC0: - pop {pc} - .align 2, 0 -_08061BC4: .4byte gUnk_0810B774 - - thumb_func_start sub_08061BC8 -sub_08061BC8: @ 0x08061BC8 - push {r4, lr} - adds r4, r0, #0 - ldr r1, _08061BFC @ =gUnk_0810B6EC - ldrb r0, [r4, #0xa] - lsls r0, r0, #2 - adds r0, r0, r1 - ldr r1, [r0] - adds r0, r4, #0 - bl LoadExtraSpriteData - cmp r0, #0 - beq _08061BF8 - movs r0, #2 - strb r0, [r4, #0x14] - ldrb r0, [r4, #0xa] - adds r0, #1 - strb r0, [r4, #0xf] - ldrb r0, [r4, #0xc] - adds r0, #1 - strb r0, [r4, #0xc] - adds r0, r4, #0 - movs r1, #2 - bl sub_08061CB4 -_08061BF8: - pop {r4, pc} - .align 2, 0 -_08061BFC: .4byte gUnk_0810B6EC - - thumb_func_start sub_08061C00 -sub_08061C00: @ 0x08061C00 - push {r4, lr} - adds r4, r0, #0 - movs r1, #0x20 - movs r2, #0x20 - bl sub_0806ED9C - adds r1, r0, #0 - cmp r1, #0 - bge _08061C18 - ldrb r0, [r4, #0x14] - adds r1, r0, #4 - b _08061C32 -_08061C18: - ldrb r0, [r4, #0xf] - cmp r0, #0 - bne _08061C24 - movs r0, #0x10 - strb r0, [r4, #0xf] - b _08061C32 -_08061C24: - subs r0, #1 - strb r0, [r4, #0xf] - adds r0, r4, #0 - adds r0, #0x58 - ldrb r0, [r0] - movs r1, #3 - ands r1, r0 -_08061C32: - adds r0, r4, #0 - bl sub_08061CB4 - adds r0, r4, #0 - bl sub_0806ED78 - adds r1, r4, #0 - adds r1, #0x39 - movs r0, #0 - ldrsb r0, [r1, r0] - cmp r0, #0 - beq _08061C58 - movs r0, #0 - strb r0, [r1] - ldrb r0, [r4, #0xb] - ldr r1, _08061C5C @ =0x00000A01 - adds r0, r0, r1 - bl TextboxNoOverlapFollow -_08061C58: - pop {r4, pc} - .align 2, 0 -_08061C5C: .4byte 0x00000A01 - thumb_func_start Townsperson_Head Townsperson_Head: @ 0x08061C60 push {r4, r5, lr} diff --git a/linker.ld b/linker.ld index cca61b62..70de38a4 100644 --- a/linker.ld +++ b/linker.ld @@ -323,16 +323,16 @@ SECTIONS { asm/code_0801D714.o(.text); asm/code_0801D79C.o(.text); /* enemies */ - src/octorok.o(.text); + src/enemy/octorok.o(.text); asm/octorok.o(.text); asm/chuchu.o(.text); asm/leever.o(.text); asm/peahat.o(.text); asm/rollobite.o(.text); asm/darkNut.o(.text); - src/hangingSeed.o(.text); + src/enemy/hangingSeed.o(.text); asm/beetle.o(.text); - src/keese.o(.text); + src/enemy/keese.o(.text); asm/keese.o(.text); asm/doorMimic.o(.text); asm/rockChuchu.o(.text); @@ -352,7 +352,7 @@ SECTIONS { asm/madderpillar.o(.text); asm/waterDrop.o(.text); asm/wallMaster.o(.text); - src/bombPeahat.o(.text); + src/enemy/bombPeahat.o(.text); asm/bombPeahat.o(.text); asm/spark.o(.text); asm/chaser.o(.text); @@ -371,10 +371,10 @@ SECTIONS { asm/armos.o(.text); asm/eyegore.o(.text); asm/rope.o(.text); - src/smallPesto.o(.text); + src/enemy/smallPesto.o(.text); asm/smallPesto.o(.text); asm/acroBandits.o(.text); - src/bladeTrap.o(.text); + src/enemy/bladeTrap.o(.text); asm/keaton.o(.text); asm/crow.o(.text); asm/mulldozer.o(.text); @@ -397,10 +397,10 @@ SECTIONS { asm/flyingSkull.o(.text); asm/mazaalBracelet.o(.text); asm/takkuri.o(.text); - src/bowMoblin.o(.text); + src/enemy/bowMoblin.o(.text); asm/bowMoblin.o(.text); - src/lakitu.o(.text); - src/lakituCloud.o(.text); + src/enemy/lakitu.o(.text); + src/enemy/lakituCloud.o(.text); asm/enemy49.o(.text); asm/vaatiRebornEnemy.o(.text); asm/vaatiProjectile.o(.text); @@ -413,11 +413,11 @@ SECTIONS { asm/vaatiArm.o(.text); asm/dust.o(.text); asm/vaatiBall.o(.text); - src/slime.o(.text); + src/enemy/slime.o(.text); asm/slime.o(.text); asm/miniSlime.o(.text); asm/fireballGuy.o(.text); - src/miniFireballGuy.o(.text); + src/enemy/miniFireballGuy.o(.text); asm/miniFireballGuy.o(.text); asm/enemy5A.o(.text); asm/businessScrubPrologue.o(.text); @@ -467,9 +467,9 @@ SECTIONS { asm/code_08055FF4.o(.text); src/textbox.o(.text); asm/code_08056418.o(.text); - src/manager1.o(.text); + src/manager/manager1.o(.text); asm/manager1.o(.text); - src/manager2.o(.text); + src/manager/manager2.o(.text); asm/manager2.o(.text); asm/manager3.o(.text); asm/manager4.o(.text); @@ -507,14 +507,14 @@ SECTIONS { asm/manager24.o(.text); asm/manager25.o(.text); asm/manager26.o(.text); - src/manager27.o(.text); + src/manager/manager27.o(.text); asm/manager28.o(.text); asm/manager29.o(.text); asm/manager2A.o(.text); asm/manager2B.o(.text); asm/manager2C.o(.text); asm/manager2D.o(.text); - src/manager2E.o(.text); + src/manager/manager2E.o(.text); asm/manager2E.o(.text); asm/manager2F.o(.text); asm/manager30.o(.text); @@ -533,27 +533,28 @@ SECTIONS { asm/getEmptyEntity.o(.text); asm/code_0805E744.o(.text); /* npcs */ - src/gentari.o(.text); - src/festari.o(.text); + src/npc/gentari.o(.text); + src/npc/festari.o(.text); asm/festari.o(.text); - src/forestMinish.o(.text); - src/postman.o(.text); + src/npc/forestMinish.o(.text); + src/npc/postman.o(.text); asm/postman.o(.text); asm/npc5.o(.text); + src/npc/townsperson.o(.text); asm/townsperson.o(.text); asm/kid.o(.text); asm/npc9.o(.text); - src/stamp.o(.text); + src/npc/stamp.o(.text); asm/marcy.o(.text); - src/wheaton.o(.text); + src/npc/wheaton.o(.text); asm/pita.o(.text); asm/minishEzlo.o(.text); - src/mailbox.o(.text); + src/npc/mailbox.o(.text); asm/beedle.o(.text); asm/brocco.o(.text); asm/sittingPerson.o(.text); asm/pina.o(.text); - src/guard.o(.text); + src/npc/guard.o(.text); asm/guardWithSpear.o(.text); asm/castleMaid.o(.text); asm/din.o(.text); @@ -562,38 +563,38 @@ SECTIONS { asm/sturgeon.o(.text); asm/tingleSiblings.o(.text); asm/stockwell.o(.text); - src/talon.o(.text); - src/malon.o(.text); - src/epona.o(.text); - src/milkCart.o(.text); + src/npc/talon.o(.text); + src/npc/malon.o(.text); + src/npc/epona.o(.text); + src/npc/milkCart.o(.text); asm/ghostBrothers.o(.text); - src/smith.o(.text); + src/npc/smith.o(.text); asm/npc23.o(.text); asm/kingDaltus.o(.text); asm/ministerPotho.o(.text); asm/npc26.o(.text); asm/vaati.o(.text); - src/zelda.o(.text); - src/mutoh.o(.text); - src/carpenter.o(.text); + src/npc/zelda.o(.text); + src/npc/mutoh.o(.text); + src/npc/carpenter.o(.text); asm/carpenter.o(.text); asm/castorWildsStatue.o(.text); - src/cat.o(.text); + src/npc/cat.o(.text); asm/cat.o(.text); asm/mountainMinish.o(.text); asm/zeldaFollower.o(.text); asm/melari.o(.text); - src/bladeBrothers.o(.text); - src/cow.o(.text); - src/goron.o(.text); + src/npc/bladeBrothers.o(.text); + src/npc/cow.o(.text); + src/npc/goron.o(.text); asm/goronMerchant.o(.text); asm/gorman.o(.text); asm/dog.o(.text); - src/syrup.o(.text); + src/npc/syrup.o(.text); asm/syrup.o(.text); - src/rem.o(.text); + src/npc/rem.o(.text); asm/rem.o(.text); - src/townMinish.o(.text); + src/npc/townMinish.o(.text); asm/townMinish.o(.text); asm/librari.o(.text); asm/percy.o(.text); @@ -602,24 +603,24 @@ SECTIONS { asm/librarians.o(.text); asm/farmers.o(.text); asm/carlov.o(.text); - src/dampe.o(.text); + src/npc/dampe.o(.text); asm/drLeft.o(.text); asm/kingGustaf.o(.text); asm/gina.o(.text); - src/simon.o(.text); + src/npc/simon.o(.text); asm/anju.o(.text); asm/mama.o(.text); - src/emma.o(.text); - src/teachers.o(.text); - src/windTribespeople.o(.text); + src/npc/emma.o(.text); + src/npc/teachers.o(.text); + src/npc/windTribespeople.o(.text); asm/windTribespeople.o(.text); asm/gregal.o(.text); asm/mayorHagen.o(.text); - src/bigGoron.o(.text); + src/npc/bigGoron.o(.text); asm/bigGoron.o(.text); asm/ezloCap.o(.text); asm/npc4E.o(.text); - src/clothesRack.o(.text); + src/npc/clothesRack.o(.text); asm/clothesRack.o(.text); asm/picolyteBottles.o(.text); asm/smallTownMinish.o(.text); @@ -671,7 +672,7 @@ SECTIONS { asm/object9.o(.text); asm/objectA.o(.text); asm/objectB.o(.text); - src/chestSpawner.o(.text); + src/object/chestSpawner.o(.text); asm/chestSpawner.o(.text); asm/objectD.o(.text); asm/objectE.o(.text); @@ -679,18 +680,18 @@ SECTIONS { asm/object10.o(.text); asm/object11.o(.text); asm/object12.o(.text); - src/railtrack.o(.text); + src/object/railtrack.o(.text); asm/lilypadLarge.o(.text); asm/object15.o(.text); asm/floatingPlatform.o(.text); asm/object17.o(.text); asm/evilSpirit.o(.text); asm/houseDoorExterior.o(.text); - src/object1A.o(.text); - src/greatFairy.o(.text); + src/object/object1A.o(.text); + src/object/greatFairy.o(.text); asm/greatFairy.o(.text); - src/object1C.o(.text); - src/object1D.o(.text); + src/object/object1C.o(.text); + src/object/object1D.o(.text); asm/object1E.o(.text); asm/object1F.o(.text); asm/object20.o(.text); @@ -706,7 +707,7 @@ SECTIONS { asm/object2A.o(.text); asm/object2B.o(.text); asm/beanstalk.o(.text); - src/smoke.o(.text); + src/object/smoke.o(.text); asm/pushableRock.o(.text); asm/hittableLever.o(.text); asm/object30.o(.text); @@ -727,7 +728,7 @@ SECTIONS { asm/macroLink.o(.text); asm/object3D.o(.text); asm/object3E.o(.text); - src/giantLeaf.o(.text); + src/object/giantLeaf.o(.text); asm/fairy.o(.text); asm/ladderUp.o(.text); asm/object42.o(.text); @@ -735,35 +736,35 @@ SECTIONS { asm/object44.o(.text); asm/object45.o(.text); asm/giantBookLadder.o(.text); - src/heartContainer.o(.text); + src/object/heartContainer.o(.text); asm/heartContainer.o(.text); asm/object48.o(.text); - src/object49.o(.text); + src/object/object49.o(.text); asm/object49.o(.text); asm/backgroundCloud.o(.text); asm/object4B.o(.text); asm/pushableFurniture.o(.text); asm/furniture.o(.text); - src/minishSizedEntrance.o(.text); + src/object/minishSizedEntrance.o(.text); asm/minishSizedEntrance.o(.text); - src/archway.o(.text); + src/object/archway.o(.text); asm/giantRock.o(.text); asm/object51.o(.text); asm/object52.o(.text); asm/object53.o(.text); asm/pullableLever.o(.text); asm/minecart.o(.text); - src/thoughtBubble.o(.text); + src/object/thoughtBubble.o(.text); asm/hiddenLadderDown.o(.text); asm/gentariCurtains.o(.text); asm/lavaPlatform.o(.text); asm/object5A.o(.text); asm/object5B.o(.text); - src/mask.o(.text); + src/object/mask.o(.text); asm/houseDoorInterior.o(.text); asm/whirlwind.o(.text); asm/objectBlockingStairs.o(.text); - src/swordsmanNewsletter.o(.text); + src/object/swordsmanNewsletter.o(.text); asm/object61.o(.text); asm/giantTwig.o(.text); asm/object63.o(.text); @@ -777,14 +778,14 @@ SECTIONS { asm/crenalBeanSprout.o(.text); asm/minecartDoor.o(.text); asm/objectOnPillar.o(.text); - src/mineralWaterSource.o(.text); + src/object/mineralWaterSource.o(.text); asm/minishSizedArchway.o(.text); asm/object70.o(.text); asm/pushableGrave.o(.text); asm/object72.o(.text); asm/lilypadSmall.o(.text); asm/object74.o(.text); - src/bell.o(.text); + src/object/bell.o(.text); asm/macroDecorations.o(.text); asm/object79.o(.text); asm/steam.o(.text); @@ -799,7 +800,7 @@ SECTIONS { asm/bigPushableLever.o(.text); asm/smallIceBlock.o(.text); asm/bigIceBlock.o(.text); - src/object86.o(.text); + src/object/object86.o(.text); asm/object87.o(.text); asm/macroBook.o(.text); asm/object89.o(.text); @@ -813,7 +814,7 @@ SECTIONS { asm/object91.o(.text); asm/bakerOven.o(.text); asm/object93.o(.text); - src/windTribeFlag.o(.text); + src/object/windTribeFlag.o(.text); asm/bird.o(.text); asm/object96.o(.text); asm/object97.o(.text); @@ -821,21 +822,21 @@ SECTIONS { asm/object99.o(.text); asm/macroAcorn.o(.text); asm/object9B.o(.text); - src/treeHidingPortal.o(.text); + src/object/treeHidingPortal.o(.text); asm/treeHidingPortal.o(.text); - src/lightableSwitch.o(.text); - src/object9E.o(.text); - src/fan.o(.text); + src/object/lightableSwitch.o(.text); + src/object/object9E.o(.text); + src/object/fan.o(.text); asm/fan.o(.text); asm/objectA0.o(.text); asm/palaceArchway.o(.text); asm/objectA2.o(.text); - src/cloud.o(.text); + src/object/cloud.o(.text); asm/minishLight.o(.text); asm/objectA5.o(.text); asm/objectA6.o(.text); asm/objectA7.o(.text); - src/objectA8.o(.text); + src/object/objectA8.o(.text); asm/objectA8.o(.text); asm/objectA9.o(.text); asm/waterfallOpening.o(.text); @@ -844,18 +845,18 @@ SECTIONS { asm/objectAD.o(.text); asm/floatingBlock.o(.text); asm/objectAF.o(.text); - src/metalDoor.o(.text); + src/object/metalDoor.o(.text); asm/jailBars.o(.text); asm/objectB2.o(.text); asm/objectB3.o(.text); asm/objectB4.o(.text); asm/objectB5.o(.text); asm/objectB6.o(.text); - src/well.o(.text); + src/object/well.o(.text); asm/windTribeTeleporter.o(.text); asm/objectB9.o(.text); asm/objectBA.o(.text); - src/windcrest.o(.text); + src/object/windcrest.o(.text); asm/litArea.o(.text); asm/objectBD.o(.text); asm/pinwheel.o(.text); @@ -914,7 +915,7 @@ SECTIONS { data/data_080D5360.o(.rodata); src/item.o(.rodata); data/data_0811BD44.o(.rodata); - src/greatFairy.o(.rodata); + src/object/greatFairy.o(.rodata); data/greatFairyAnimations.o(.rodata); data/data_081208A0.o(.rodata); data/strings.o(.rodata); diff --git a/src/bladeTrap.c b/src/enemy/bladeTrap.c similarity index 100% rename from src/bladeTrap.c rename to src/enemy/bladeTrap.c diff --git a/src/bombPeahat.c b/src/enemy/bombPeahat.c similarity index 100% rename from src/bombPeahat.c rename to src/enemy/bombPeahat.c diff --git a/src/bowMoblin.c b/src/enemy/bowMoblin.c similarity index 100% rename from src/bowMoblin.c rename to src/enemy/bowMoblin.c diff --git a/src/hangingSeed.c b/src/enemy/hangingSeed.c similarity index 100% rename from src/hangingSeed.c rename to src/enemy/hangingSeed.c diff --git a/src/keese.c b/src/enemy/keese.c similarity index 100% rename from src/keese.c rename to src/enemy/keese.c diff --git a/src/lakitu.c b/src/enemy/lakitu.c similarity index 100% rename from src/lakitu.c rename to src/enemy/lakitu.c diff --git a/src/lakituCloud.c b/src/enemy/lakituCloud.c similarity index 100% rename from src/lakituCloud.c rename to src/enemy/lakituCloud.c diff --git a/src/miniFireballGuy.c b/src/enemy/miniFireballGuy.c similarity index 100% rename from src/miniFireballGuy.c rename to src/enemy/miniFireballGuy.c diff --git a/src/octorok.c b/src/enemy/octorok.c similarity index 100% rename from src/octorok.c rename to src/enemy/octorok.c diff --git a/src/slime.c b/src/enemy/slime.c similarity index 100% rename from src/slime.c rename to src/enemy/slime.c diff --git a/src/smallPesto.c b/src/enemy/smallPesto.c similarity index 100% rename from src/smallPesto.c rename to src/enemy/smallPesto.c diff --git a/src/manager1.c b/src/manager/manager1.c similarity index 100% rename from src/manager1.c rename to src/manager/manager1.c diff --git a/src/manager2.c b/src/manager/manager2.c similarity index 100% rename from src/manager2.c rename to src/manager/manager2.c diff --git a/src/manager27.c b/src/manager/manager27.c similarity index 100% rename from src/manager27.c rename to src/manager/manager27.c diff --git a/src/manager2E.c b/src/manager/manager2E.c similarity index 100% rename from src/manager2E.c rename to src/manager/manager2E.c diff --git a/src/bigGoron.c b/src/npc/bigGoron.c similarity index 100% rename from src/bigGoron.c rename to src/npc/bigGoron.c diff --git a/src/bladeBrothers.c b/src/npc/bladeBrothers.c similarity index 100% rename from src/bladeBrothers.c rename to src/npc/bladeBrothers.c diff --git a/src/carpenter.c b/src/npc/carpenter.c similarity index 100% rename from src/carpenter.c rename to src/npc/carpenter.c diff --git a/src/cat.c b/src/npc/cat.c similarity index 100% rename from src/cat.c rename to src/npc/cat.c diff --git a/src/clothesRack.c b/src/npc/clothesRack.c similarity index 100% rename from src/clothesRack.c rename to src/npc/clothesRack.c diff --git a/src/cow.c b/src/npc/cow.c similarity index 100% rename from src/cow.c rename to src/npc/cow.c diff --git a/src/dampe.c b/src/npc/dampe.c similarity index 100% rename from src/dampe.c rename to src/npc/dampe.c diff --git a/src/emma.c b/src/npc/emma.c similarity index 100% rename from src/emma.c rename to src/npc/emma.c diff --git a/src/epona.c b/src/npc/epona.c similarity index 100% rename from src/epona.c rename to src/npc/epona.c diff --git a/src/festari.c b/src/npc/festari.c similarity index 100% rename from src/festari.c rename to src/npc/festari.c diff --git a/src/forestMinish.c b/src/npc/forestMinish.c similarity index 100% rename from src/forestMinish.c rename to src/npc/forestMinish.c diff --git a/src/gentari.c b/src/npc/gentari.c similarity index 100% rename from src/gentari.c rename to src/npc/gentari.c diff --git a/src/goron.c b/src/npc/goron.c similarity index 100% rename from src/goron.c rename to src/npc/goron.c diff --git a/src/guard.c b/src/npc/guard.c similarity index 100% rename from src/guard.c rename to src/npc/guard.c diff --git a/src/mailbox.c b/src/npc/mailbox.c similarity index 100% rename from src/mailbox.c rename to src/npc/mailbox.c diff --git a/src/malon.c b/src/npc/malon.c similarity index 100% rename from src/malon.c rename to src/npc/malon.c diff --git a/src/milkCart.c b/src/npc/milkCart.c similarity index 100% rename from src/milkCart.c rename to src/npc/milkCart.c diff --git a/src/mutoh.c b/src/npc/mutoh.c similarity index 100% rename from src/mutoh.c rename to src/npc/mutoh.c diff --git a/src/postman.c b/src/npc/postman.c similarity index 100% rename from src/postman.c rename to src/npc/postman.c diff --git a/src/rem.c b/src/npc/rem.c similarity index 100% rename from src/rem.c rename to src/npc/rem.c diff --git a/src/simon.c b/src/npc/simon.c similarity index 100% rename from src/simon.c rename to src/npc/simon.c diff --git a/src/smith.c b/src/npc/smith.c similarity index 100% rename from src/smith.c rename to src/npc/smith.c diff --git a/src/stamp.c b/src/npc/stamp.c similarity index 100% rename from src/stamp.c rename to src/npc/stamp.c diff --git a/src/syrup.c b/src/npc/syrup.c similarity index 100% rename from src/syrup.c rename to src/npc/syrup.c diff --git a/src/talon.c b/src/npc/talon.c similarity index 100% rename from src/talon.c rename to src/npc/talon.c diff --git a/src/teachers.c b/src/npc/teachers.c similarity index 100% rename from src/teachers.c rename to src/npc/teachers.c diff --git a/src/townMinish.c b/src/npc/townMinish.c similarity index 100% rename from src/townMinish.c rename to src/npc/townMinish.c diff --git a/src/npc/townsperson.c b/src/npc/townsperson.c new file mode 100644 index 00000000..454474cb --- /dev/null +++ b/src/npc/townsperson.c @@ -0,0 +1,58 @@ +#include "global.h" +#include "entity.h" +#include "npc.h" +#include "link.h" +#include "textbox.h" + +extern void (*const gUnk_0810B774[])(Entity*); +extern void (*const gUnk_0810B77C[])(Entity*); +extern void sub_08061CB4(Entity*, u32); +extern u32 sub_0806ED9C(Entity*, u32, u32); +extern void sub_0806ED78(Entity*); + +extern SpriteLoadData* gUnk_0810B6EC[]; + +void Townsperson(Entity *this) +{ + if ((this->flags & 2) != 0) { + gUnk_0810B77C[this->action](this); + } + else { + gUnk_0810B774[this->action](this); + } +} + +void sub_08061BC8(Entity *this) +{ + if (LoadExtraSpriteData(this, gUnk_0810B6EC[this->entityType.form])) { + this->animationState = 2; + this->field_0xf = this->entityType.form + 1; + this->action++; + sub_08061CB4(this, 2); + } +} + +void sub_08061C00(Entity *this) +{ + s32 uVar1; + + uVar1 = sub_0806ED9C(this, 0x20, 0x20); + if (uVar1 < 0) { + uVar1 = this->animationState + 4; + } + else { + if (this->field_0xf == 0) { + this->field_0xf = 0x10; + } + else { + this->field_0xf--; + uVar1 = this->animIndex & 3; + } + } + sub_08061CB4(this, uVar1); + sub_0806ED78(this); + if (this->interactType != 0) { + this->interactType = 0; + TextboxNoOverlapFollow(this->entityType.parameter + 0xa01); + } +} \ No newline at end of file diff --git a/src/wheaton.c b/src/npc/wheaton.c similarity index 100% rename from src/wheaton.c rename to src/npc/wheaton.c diff --git a/src/windTribespeople.c b/src/npc/windTribespeople.c similarity index 100% rename from src/windTribespeople.c rename to src/npc/windTribespeople.c diff --git a/src/zelda.c b/src/npc/zelda.c similarity index 100% rename from src/zelda.c rename to src/npc/zelda.c diff --git a/src/archway.c b/src/object/archway.c similarity index 100% rename from src/archway.c rename to src/object/archway.c diff --git a/src/bell.c b/src/object/bell.c similarity index 100% rename from src/bell.c rename to src/object/bell.c diff --git a/src/chestSpawner.c b/src/object/chestSpawner.c similarity index 100% rename from src/chestSpawner.c rename to src/object/chestSpawner.c diff --git a/src/cloud.c b/src/object/cloud.c similarity index 100% rename from src/cloud.c rename to src/object/cloud.c diff --git a/src/fan.c b/src/object/fan.c similarity index 100% rename from src/fan.c rename to src/object/fan.c diff --git a/src/giantLeaf.c b/src/object/giantLeaf.c similarity index 100% rename from src/giantLeaf.c rename to src/object/giantLeaf.c diff --git a/src/greatFairy.c b/src/object/greatFairy.c similarity index 100% rename from src/greatFairy.c rename to src/object/greatFairy.c diff --git a/src/heartContainer.c b/src/object/heartContainer.c similarity index 100% rename from src/heartContainer.c rename to src/object/heartContainer.c diff --git a/src/lightableSwitch.c b/src/object/lightableSwitch.c similarity index 100% rename from src/lightableSwitch.c rename to src/object/lightableSwitch.c diff --git a/src/mask.c b/src/object/mask.c similarity index 100% rename from src/mask.c rename to src/object/mask.c diff --git a/src/metalDoor.c b/src/object/metalDoor.c similarity index 100% rename from src/metalDoor.c rename to src/object/metalDoor.c diff --git a/src/mineralWaterSource.c b/src/object/mineralWaterSource.c similarity index 100% rename from src/mineralWaterSource.c rename to src/object/mineralWaterSource.c diff --git a/src/minishSizedEntrance.c b/src/object/minishSizedEntrance.c similarity index 100% rename from src/minishSizedEntrance.c rename to src/object/minishSizedEntrance.c diff --git a/src/object1A.c b/src/object/object1A.c similarity index 100% rename from src/object1A.c rename to src/object/object1A.c diff --git a/src/object1C.c b/src/object/object1C.c similarity index 100% rename from src/object1C.c rename to src/object/object1C.c diff --git a/src/object1D.c b/src/object/object1D.c similarity index 100% rename from src/object1D.c rename to src/object/object1D.c diff --git a/src/object49.c b/src/object/object49.c similarity index 100% rename from src/object49.c rename to src/object/object49.c diff --git a/src/object86.c b/src/object/object86.c similarity index 100% rename from src/object86.c rename to src/object/object86.c diff --git a/src/object9E.c b/src/object/object9E.c similarity index 100% rename from src/object9E.c rename to src/object/object9E.c diff --git a/src/objectA8.c b/src/object/objectA8.c similarity index 100% rename from src/objectA8.c rename to src/object/objectA8.c diff --git a/src/railtrack.c b/src/object/railtrack.c similarity index 100% rename from src/railtrack.c rename to src/object/railtrack.c diff --git a/src/smoke.c b/src/object/smoke.c similarity index 100% rename from src/smoke.c rename to src/object/smoke.c diff --git a/src/swordsmanNewsletter.c b/src/object/swordsmanNewsletter.c similarity index 100% rename from src/swordsmanNewsletter.c rename to src/object/swordsmanNewsletter.c diff --git a/src/thoughtBubble.c b/src/object/thoughtBubble.c similarity index 100% rename from src/thoughtBubble.c rename to src/object/thoughtBubble.c diff --git a/src/treeHidingPortal.c b/src/object/treeHidingPortal.c similarity index 100% rename from src/treeHidingPortal.c rename to src/object/treeHidingPortal.c diff --git a/src/well.c b/src/object/well.c similarity index 100% rename from src/well.c rename to src/object/well.c diff --git a/src/windTribeFlag.c b/src/object/windTribeFlag.c similarity index 100% rename from src/windTribeFlag.c rename to src/object/windTribeFlag.c diff --git a/src/windcrest.c b/src/object/windcrest.c similarity index 100% rename from src/windcrest.c rename to src/object/windcrest.c From 94b6040d7d1455e26372b91b01a20dd1c6bec3e7 Mon Sep 17 00:00:00 2001 From: theo3 Date: Mon, 13 Jul 2020 19:49:27 -0700 Subject: [PATCH 017/158] townsperson.c 1 nonmatching --- asm/non_matching/townsperson/sub_08061C60.inc | 46 ++ asm/townsperson.s | 598 ------------------ linker.ld | 1 - src/npc/townsperson.c | 332 +++++++++- 4 files changed, 345 insertions(+), 632 deletions(-) create mode 100644 asm/non_matching/townsperson/sub_08061C60.inc delete mode 100644 asm/townsperson.s diff --git a/asm/non_matching/townsperson/sub_08061C60.inc b/asm/non_matching/townsperson/sub_08061C60.inc new file mode 100644 index 00000000..d1064414 --- /dev/null +++ b/asm/non_matching/townsperson/sub_08061C60.inc @@ -0,0 +1,46 @@ + .include "asm/macros.inc" + + .include "constants/constants.inc" + + .syntax unified + + .text + + push {r4, r5, lr} + adds r4, r0, #0 + adds r0, #0x58 + ldrb r1, [r0] + movs r0, #3 + ands r0, r1 + ldr r1, _08061CAC @ =gUnk_0810B78C + adds r0, r0, r1 + ldrb r1, [r0] + ldr r5, _08061CB0 @ =gUnk_0810B680 + ldrb r0, [r4, #0xa] + lsls r0, r0, #2 + adds r0, r0, r5 + ldrb r2, [r0] + adds r2, r1, r2 + adds r0, r4, #0 + movs r1, #0 + bl SetExtraSpriteFrame + ldrb r2, [r4, #0x1e] + ldrb r0, [r4, #0xa] + lsls r0, r0, #2 + adds r0, r0, r5 + ldrb r0, [r0, #1] + adds r2, r2, r0 + adds r0, r4, #0 + movs r1, #1 + bl SetExtraSpriteFrame + adds r0, r4, #0 + movs r1, #1 + movs r2, #0 + bl SetSpriteSubEntryOffsetData1 + adds r0, r4, #0 + bl sub_0807000C + pop {r4, r5, pc} + .align 2, 0 +_08061CAC: .4byte gUnk_0810B78C +_08061CB0: .4byte gUnk_0810B680 + .syntax divided \ No newline at end of file diff --git a/asm/townsperson.s b/asm/townsperson.s deleted file mode 100644 index 32bf8e55..00000000 --- a/asm/townsperson.s +++ /dev/null @@ -1,598 +0,0 @@ - .include "asm/macros.inc" - - .include "constants/constants.inc" - - .syntax unified - - .text - - thumb_func_start Townsperson_Head -Townsperson_Head: @ 0x08061C60 - push {r4, r5, lr} - adds r4, r0, #0 - adds r0, #0x58 - ldrb r1, [r0] - movs r0, #3 - ands r0, r1 - ldr r1, _08061CAC @ =gUnk_0810B78C - adds r0, r0, r1 - ldrb r1, [r0] - ldr r5, _08061CB0 @ =gUnk_0810B680 - ldrb r0, [r4, #0xa] - lsls r0, r0, #2 - adds r0, r0, r5 - ldrb r2, [r0] - adds r2, r1, r2 - adds r0, r4, #0 - movs r1, #0 - bl SetExtraSpriteFrame - ldrb r2, [r4, #0x1e] - ldrb r0, [r4, #0xa] - lsls r0, r0, #2 - adds r0, r0, r5 - ldrb r0, [r0, #1] - adds r2, r2, r0 - adds r0, r4, #0 - movs r1, #1 - bl SetExtraSpriteFrame - adds r0, r4, #0 - movs r1, #1 - movs r2, #0 - bl SetSpriteSubEntryOffsetData1 - adds r0, r4, #0 - bl sub_0807000C - pop {r4, r5, pc} - .align 2, 0 -_08061CAC: .4byte gUnk_0810B78C -_08061CB0: .4byte gUnk_0810B680 - - thumb_func_start sub_08061CB4 -sub_08061CB4: @ 0x08061CB4 - push {r4, lr} - adds r4, r0, #0 - adds r0, #0x58 - ldrb r0, [r0] - cmp r0, r1 - beq _08061CC8 - adds r0, r4, #0 - bl InitializeAnimation - b _08061CCE -_08061CC8: - adds r0, r4, #0 - bl GetNextFrame -_08061CCE: - adds r2, r4, #0 - adds r2, #0x59 - ldrb r0, [r2] - cmp r0, #0xff - bne _08061CE4 - ldr r0, _08061CE8 @ =gUnk_0810B680 - ldrb r1, [r4, #0xa] - lsls r1, r1, #2 - adds r1, r1, r0 - ldrb r0, [r1, #2] - strb r0, [r2] -_08061CE4: - pop {r4, pc} - .align 2, 0 -_08061CE8: .4byte gUnk_0810B680 - - thumb_func_start sub_08061CEC -sub_08061CEC: @ 0x08061CEC - push {r4, lr} - adds r4, r0, #0 - ldr r1, _08061D38 @ =gUnk_0810B6EC - ldrb r0, [r4, #0xa] - lsls r0, r0, #2 - adds r0, r0, r1 - ldr r1, [r0] - adds r0, r4, #0 - bl LoadExtraSpriteData - cmp r0, #0 - beq _08061D62 - movs r2, #1 - movs r0, #1 - strb r0, [r4, #0xc] - ldrb r1, [r4, #0x18] - subs r0, #5 - ands r0, r1 - orrs r0, r2 - strb r0, [r4, #0x18] - ldrb r0, [r4, #0xe] - strb r0, [r4, #0x14] - adds r1, r4, #0 - adds r1, #0x69 - movs r0, #0xff - strb r0, [r1] - adds r0, r4, #0 - bl sub_0805ACC0 - adds r1, r0, #0 - cmp r1, #0 - bne _08061D3C - ldrh r0, [r4, #0x2e] - adds r1, r4, #0 - adds r1, #0x6a - strh r0, [r1] - ldrh r1, [r4, #0x32] - b _08061D44 - .align 2, 0 -_08061D38: .4byte gUnk_0810B6EC -_08061D3C: - lsrs r0, r1, #0x10 - adds r2, r4, #0 - adds r2, #0x6a - strh r0, [r2] -_08061D44: - adds r0, r4, #0 - adds r0, #0x6c - strh r1, [r0] - adds r0, r4, #0 - bl sub_0801E99C - adds r1, r4, #0 - adds r1, #0x68 - strb r0, [r1] - adds r0, r4, #0 - bl sub_0807DD64 - adds r0, r4, #0 - bl sub_08061D64 -_08061D62: - pop {r4, pc} - - thumb_func_start sub_08061D64 -sub_08061D64: @ 0x08061D64 - push {r4, r5, lr} - adds r5, r0, #0 - adds r4, r5, #0 - adds r4, #0x39 - movs r0, #0 - ldrsb r0, [r4, r0] - cmp r0, #2 - bne _08061DB0 - movs r1, #0 - movs r0, #3 - strb r0, [r5, #0xc] - strb r1, [r4] - adds r0, r5, #0 - bl sub_0806F118 - adds r4, #0x1f - ldrb r0, [r4] - adds r1, r5, #0 - adds r1, #0x69 - strb r0, [r1] - ldr r1, _08061DAC @ =gLinkEntity - adds r0, r5, #0 - bl GetFacingDirection - bl sub_0806F5A4 - ldrb r1, [r4] - movs r2, #4 - rsbs r2, r2, #0 - ands r1, r2 - adds r1, r1, r0 - adds r0, r5, #0 - bl InitializeAnimation - b _08061E18 - .align 2, 0 -_08061DAC: .4byte gLinkEntity -_08061DB0: - adds r0, r5, #0 - movs r1, #0 - bl sub_0807DDAC - adds r0, r5, #0 - bl sub_0807DDE4 - adds r2, r5, #0 - adds r2, #0x59 - ldrb r0, [r2] - cmp r0, #0xff - bne _08061DD4 - ldr r0, _08061E1C @ =gUnk_0810B680 - ldrb r1, [r5, #0xa] - lsls r1, r1, #2 - adds r1, r1, r0 - ldrb r0, [r1, #2] - strb r0, [r2] -_08061DD4: - adds r0, r5, #0 - bl GetNextFrame - movs r0, #0 - ldrsb r0, [r4, r0] - cmp r0, #0 - beq _08061E18 - movs r1, #0 - movs r0, #2 - strb r0, [r5, #0xc] - strb r1, [r4] - adds r0, r5, #0 - bl sub_08062048 - adds r4, r5, #0 - adds r4, #0x58 - ldrb r0, [r4] - adds r1, r5, #0 - adds r1, #0x69 - strb r0, [r1] - ldr r1, _08061E20 @ =gLinkEntity - adds r0, r5, #0 - bl GetFacingDirection - bl sub_0806F5A4 - ldrb r1, [r4] - movs r2, #4 - rsbs r2, r2, #0 - ands r1, r2 - adds r1, r1, r0 - adds r0, r5, #0 - bl InitializeAnimation -_08061E18: - pop {r4, r5, pc} - .align 2, 0 -_08061E1C: .4byte gUnk_0810B680 -_08061E20: .4byte gLinkEntity - - thumb_func_start sub_08061E24 -sub_08061E24: @ 0x08061E24 - push {r4, lr} - adds r4, r0, #0 - bl GetNextFrame - ldr r0, _08061E4C @ =gTextBox - ldrb r1, [r0] - movs r0, #0x7f - ands r0, r1 - cmp r0, #0 - bne _08061E48 - movs r0, #1 - strb r0, [r4, #0xc] - adds r0, r4, #0 - adds r0, #0x69 - ldrb r1, [r0] - adds r0, r4, #0 - bl InitializeAnimation -_08061E48: - pop {r4, pc} - .align 2, 0 -_08061E4C: .4byte gTextBox - - thumb_func_start sub_08061E50 -sub_08061E50: @ 0x08061E50 - push {r4, lr} - adds r4, r0, #0 - bl UpdateFuseInteraction - cmp r0, #0 - beq _08061E6C - movs r0, #1 - strb r0, [r4, #0xc] - adds r0, r4, #0 - adds r0, #0x69 - ldrb r1, [r0] - adds r0, r4, #0 - bl InitializeAnimation -_08061E6C: - pop {r4, pc} - .align 2, 0 - - thumb_func_start sub_08061E70 -sub_08061E70: @ 0x08061E70 - push {lr} - adds r2, r0, #0 - ldrb r0, [r2, #9] - cmp r0, #6 - bne _08061E88 - adds r0, r2, #0 - adds r0, #0x68 - ldrb r1, [r0] - adds r0, r2, #0 - bl sub_08078784 - b _08061E8E -_08061E88: - adds r0, r2, #0 - bl sub_08078778 -_08061E8E: - pop {pc} - - thumb_func_start sub_08061E90 -sub_08061E90: @ 0x08061E90 - push {r4, r5, r6, lr} - adds r4, r0, #0 - adds r5, r1, #0 - ldrb r0, [r5, #0x18] - cmp r0, #0 - bne _08061F04 - adds r0, #1 - strb r0, [r5, #0x18] - bl Random - movs r1, #0x3f - ands r0, r1 - adds r0, #0x20 - strh r0, [r5, #0x12] - bl Random - adds r1, r0, #0 - movs r0, #0x18 - ands r1, r0 - ldrb r0, [r4, #0x15] - cmp r0, #8 - beq _08061ED8 - cmp r0, #8 - bgt _08061EC6 - cmp r0, #0 - beq _08061ED0 - b _08061EEE -_08061EC6: - cmp r0, #0x10 - beq _08061EE0 - cmp r0, #0x18 - beq _08061EE8 - b _08061EEE -_08061ED0: - cmp r1, #0x10 - bne _08061EEE - movs r1, #8 - b _08061EEE -_08061ED8: - cmp r1, #0x18 - bne _08061EEE - movs r1, #0x10 - b _08061EEE -_08061EE0: - cmp r1, #0 - bne _08061EEE - movs r1, #0x18 - b _08061EEE -_08061EE8: - cmp r1, #8 - bne _08061EEE - movs r1, #0 -_08061EEE: - strb r1, [r4, #0x15] - adds r0, r1, #0 - bl sub_0806F5B0 - strb r0, [r4, #0x14] - ldr r1, _08061F8C @ =gUnk_0810B74A - ldrb r0, [r4, #0xa] - lsls r0, r0, #1 - adds r0, r0, r1 - ldrh r0, [r0] - strh r0, [r4, #0x24] -_08061F04: - ldrb r0, [r4, #0x14] - lsrs r0, r0, #1 - adds r1, r0, #4 - adds r0, r4, #0 - adds r0, #0x58 - ldrb r0, [r0] - cmp r1, r0 - beq _08061F1A - adds r0, r4, #0 - bl InitializeAnimation -_08061F1A: - adds r0, r4, #0 - bl sub_080AEF88 - movs r0, #0x2e - ldrsh r1, [r4, r0] - adds r2, r4, #0 - adds r2, #0x6a - movs r3, #0 - ldrsh r0, [r2, r3] - subs r1, r1, r0 - cmp r1, #0x10 - ble _08061F3C - ldrh r0, [r2] - adds r0, #0x10 - strh r0, [r4, #0x2e] - movs r0, #1 - strh r0, [r5, #0x12] -_08061F3C: - movs r3, #0x10 - rsbs r3, r3, #0 - cmp r1, r3 - bge _08061F4E - ldrh r0, [r2] - subs r0, #0x10 - strh r0, [r4, #0x2e] - movs r0, #1 - strh r0, [r5, #0x12] -_08061F4E: - movs r6, #0x32 - ldrsh r1, [r4, r6] - adds r2, r4, #0 - adds r2, #0x6c - movs r6, #0 - ldrsh r0, [r2, r6] - subs r1, r1, r0 - cmp r1, #0x10 - ble _08061F6A - ldrh r0, [r2] - adds r0, #0x10 - strh r0, [r4, #0x32] - movs r0, #1 - strh r0, [r5, #0x12] -_08061F6A: - cmp r1, r3 - bge _08061F78 - ldrh r0, [r2] - subs r0, #0x10 - strh r0, [r4, #0x32] - movs r0, #1 - strh r0, [r5, #0x12] -_08061F78: - ldrh r0, [r5, #0x12] - subs r0, #1 - strh r0, [r5, #0x12] - lsls r0, r0, #0x10 - cmp r0, #0 - beq _08061F8A - ldr r1, _08061F90 @ =gUnk_02033280 - movs r0, #0 - strb r0, [r1, #6] -_08061F8A: - pop {r4, r5, r6, pc} - .align 2, 0 -_08061F8C: .4byte gUnk_0810B74A -_08061F90: .4byte gUnk_02033280 - - thumb_func_start sub_08061F94 -sub_08061F94: @ 0x08061F94 - push {r4, lr} - adds r4, r0, #0 - movs r1, #0x35 - movs r2, #0 - bl CreateFx - adds r1, r0, #0 - cmp r1, #0 - beq _08061FAC - adds r0, r4, #0 - bl ResolveEntityOnTop -_08061FAC: - pop {r4, pc} - .align 2, 0 - - thumb_func_start sub_08061FB0 -sub_08061FB0: @ 0x08061FB0 - movs r1, #0 - str r1, [r0, #0x48] - bx lr - .align 2, 0 - - thumb_func_start sub_08061FB8 -sub_08061FB8: @ 0x08061FB8 - push {lr} - ldr r2, _08061FD0 @ =gUnk_0810B748 - ldr r3, [r1, #4] - adds r2, r3, r2 - ldrb r2, [r2] - lsls r3, r3, #2 - ldr r1, _08061FD4 @ =gUnk_0810B740 - adds r3, r3, r1 - movs r1, #1 - bl sub_08078850 - pop {pc} - .align 2, 0 -_08061FD0: .4byte gUnk_0810B748 -_08061FD4: .4byte gUnk_0810B740 - - thumb_func_start sub_08061FD8 -sub_08061FD8: @ 0x08061FD8 - push {lr} - ldrb r1, [r0, #0x14] - lsrs r1, r1, #1 - bl InitializeAnimation - pop {pc} - - thumb_func_start sub_08061FE4 -sub_08061FE4: @ 0x08061FE4 - push {lr} - ldrb r1, [r0, #0x14] - lsrs r1, r1, #1 - adds r1, #4 - bl InitializeAnimation - pop {pc} - .align 2, 0 - - thumb_func_start sub_08061FF4 -sub_08061FF4: @ 0x08061FF4 - push {lr} - adds r1, r0, #0 - ldr r2, _08062008 @ =gUnk_0810B790 - ldrb r0, [r1, #0xa] - lsls r0, r0, #1 - adds r0, r0, r2 - ldrh r0, [r0] - bl TextboxNoOverlap - pop {pc} - .align 2, 0 -_08062008: .4byte gUnk_0810B790 - - thumb_func_start sub_0806200C -sub_0806200C: @ 0x0806200C - push {r4, r5, lr} - adds r5, r0, #0 - movs r4, #0 - movs r0, #0x29 - bl CheckGlobalFlag - cmp r0, #0 - beq _08062034 - movs r0, #0x6b - bl CheckLocalFlag - cmp r0, #0 - beq _08062034 - movs r0, #0x39 - bl GetInventoryValue - movs r4, #1 - cmp r0, #2 - bne _08062034 - movs r4, #2 -_08062034: - ldr r0, _08062044 @ =gUnk_0810B7BA - lsls r1, r4, #1 - adds r1, r1, r0 - ldrh r0, [r1] - adds r1, r5, #0 - bl TextboxNoOverlap - pop {r4, r5, pc} - .align 2, 0 -_08062044: .4byte gUnk_0810B7BA - - thumb_func_start sub_08062048 -sub_08062048: @ 0x08062048 - push {lr} - adds r3, r0, #0 - ldrb r0, [r3, #9] - cmp r0, #6 - bne _0806207C - ldr r0, _08062074 @ =gUnk_02002A40 - ldrb r0, [r0, #8] - subs r0, #2 - cmp r0, #0 - bge _0806205E - movs r0, #0 -_0806205E: - ldrb r1, [r3, #0xa] - lsls r1, r1, #6 - lsls r0, r0, #3 - ldr r2, _08062078 @ =gUnk_0810B7C0 - adds r0, r0, r2 - adds r1, r1, r0 - adds r0, r3, #0 - bl ShowNPCDialogue - b _08062084 - .align 2, 0 -_08062074: .4byte gUnk_02002A40 -_08062078: .4byte gUnk_0810B7C0 -_0806207C: - movs r0, #0 - adds r1, r3, #0 - bl TextboxNoOverlap -_08062084: - pop {pc} - .align 2, 0 - - thumb_func_start Townsperson_Fusion -Townsperson_Fusion: @ 0x08062088 - push {r4, lr} - adds r4, r0, #0 - ldrb r0, [r4, #0xc] - cmp r0, #0 - bne _080620BA - ldr r1, _080620C4 @ =gUnk_0810B6EC - ldrb r0, [r4, #0xa] - lsls r0, r0, #2 - adds r0, r0, r1 - ldr r1, [r0] - adds r0, r4, #0 - bl LoadExtraSpriteData - cmp r0, #0 - beq _080620C2 - ldrb r0, [r4, #0xc] - adds r0, #1 - strb r0, [r4, #0xc] - ldrb r1, [r4, #0x18] - movs r0, #4 - rsbs r0, r0, #0 - ands r0, r1 - movs r1, #1 - orrs r0, r1 - strb r0, [r4, #0x18] -_080620BA: - adds r0, r4, #0 - movs r1, #6 - bl sub_08061CB4 -_080620C2: - pop {r4, pc} - .align 2, 0 -_080620C4: .4byte gUnk_0810B6EC diff --git a/linker.ld b/linker.ld index 70de38a4..8710c675 100644 --- a/linker.ld +++ b/linker.ld @@ -541,7 +541,6 @@ SECTIONS { asm/postman.o(.text); asm/npc5.o(.text); src/npc/townsperson.o(.text); - asm/townsperson.o(.text); asm/kid.o(.text); asm/npc9.o(.text); src/npc/stamp.o(.text); diff --git a/src/npc/townsperson.c b/src/npc/townsperson.c index 454474cb..7c4bf877 100644 --- a/src/npc/townsperson.c +++ b/src/npc/townsperson.c @@ -3,56 +3,322 @@ #include "npc.h" #include "link.h" #include "textbox.h" +#include "flags.h" + +typedef struct { + u8 frame1; + u8 frame2; + u8 unk2; + u8 unk3; +} struct_0810B680; + +typedef struct { + u32 unk; + u32 unk2; +} struct_08061FB8; extern void (*const gUnk_0810B774[])(Entity*); extern void (*const gUnk_0810B77C[])(Entity*); extern void sub_08061CB4(Entity*, u32); extern u32 sub_0806ED9C(Entity*, u32, u32); extern void sub_0806ED78(Entity*); +extern u32 sub_0805ACC0(Entity*); +extern u32 sub_0801E99C(Entity*); +extern void sub_0807DD64(Entity*); +extern void sub_08061D64(Entity*); +extern void sub_0806F118(Entity*); +extern u32 sub_0806F5A4(u32); +extern u32 GetFacingDirection(Entity*, Entity*); +extern void sub_0807DDAC(Entity*, u32); +extern void sub_0807DDE4(Entity*); +extern void sub_08062048(Entity*); +extern void sub_08078784(Entity*, u32); +extern void sub_08078778(Entity*); +extern u32 sub_0806F5B0(u32); +extern void sub_080AEF88(Entity*); +extern u32 Random(void); +extern void ResolveEntityOnTop(Entity*, Entity*); +extern void sub_08078850(Entity*, u32, u8, u32*); extern SpriteLoadData* gUnk_0810B6EC[]; +extern u8 gUnk_0810B78C[]; +extern struct_0810B680 gUnk_0810B680[]; +extern u16 gUnk_0810B74A[]; +extern u8 gUnk_02033280[]; +extern u8 gUnk_0810B748[]; +extern u32 gUnk_0810B740[]; +extern u16 gUnk_0810B790[]; +extern u16 gUnk_0810B7BA[]; +extern u32 gUnk_0810B7C0[]; -void Townsperson(Entity *this) -{ - if ((this->flags & 2) != 0) { - gUnk_0810B77C[this->action](this); - } - else { - gUnk_0810B774[this->action](this); - } +void Townsperson(Entity* this) { + if ((this->flags & 2) != 0) { + gUnk_0810B77C[this->action](this); + } else { + gUnk_0810B774[this->action](this); + } } -void sub_08061BC8(Entity *this) -{ - if (LoadExtraSpriteData(this, gUnk_0810B6EC[this->entityType.form])) { - this->animationState = 2; - this->field_0xf = this->entityType.form + 1; - this->action++; - sub_08061CB4(this, 2); - } +void sub_08061BC8(Entity* this) { + if (LoadExtraSpriteData(this, gUnk_0810B6EC[this->entityType.form])) { + this->animationState = 2; + this->field_0xf = this->entityType.form + 1; + this->action++; + sub_08061CB4(this, 2); + } } -void sub_08061C00(Entity *this) +void sub_08061C00(Entity* this) { + s32 uVar1; + + uVar1 = sub_0806ED9C(this, 0x20, 0x20); + if (uVar1 < 0) { + uVar1 = this->animationState + 4; + } else { + if (this->field_0xf == 0) { + this->field_0xf = 0x10; + } else { + this->field_0xf--; + uVar1 = this->animIndex & 3; + } + } + sub_08061CB4(this, uVar1); + sub_0806ED78(this); + if (this->interactType != 0) { + this->interactType = 0; + TextboxNoOverlapFollow(this->entityType.parameter + 0xa01); + } +} + +#if NON_MATCHING +void Townsperson_Head(Entity* this) { + SetExtraSpriteFrame(this, 0, + *(gUnk_0810B78C + (this->animIndex & 3)) + gUnk_0810B680[this->entityType.form].frame1); + SetExtraSpriteFrame(this, 1, this->frameIndex + gUnk_0810B680[this->entityType.form].frame2); + SetSpriteSubEntryOffsetData1(this, 1, 0); + sub_0807000C(this); +} +#else +NAKED +void Townsperson_Head(Entity* this) { + asm(".include \"asm/non_matching/townsperson/sub_08061C60.inc\""); +} +#endif + +void sub_08061CB4(Entity* this, u32 arg1) { + if (this->animIndex != arg1) { + InitializeAnimation(this, arg1); + } else { + GetNextFrame(this); + } + if (this->frameDuration == 0xff) { + this->frameDuration = gUnk_0810B680[this->entityType.form].unk2; + } +} + +void sub_08061CEC(Entity* this) { + u32 uVar2; + + if (LoadExtraSpriteData(this, gUnk_0810B6EC[this->entityType.form])) { + this->action = 1; + this->spriteSettings.b.draw = TRUE; + this->animationState = this->actionDelay; + this->field_0x69 = 0xff; + uVar2 = sub_0805ACC0(this); + if (uVar2 == 0) { + this->field_0x6a.HWORD = this->x.HALF.HI; + uVar2 = (u16)this->y.HALF.HI; + } else { + this->field_0x6a.HWORD = (uVar2 >> 0x10); + } + *(u16*)&this->field_0x6c = uVar2; + this->field_0x68 = sub_0801E99C(this); + sub_0807DD64(this); + sub_08061D64(this); + } +} + +void sub_08061D64(Entity* this) { + if (this->interactType == 2) { + this->action = 3; + this->interactType = 0; + sub_0806F118(this); + this->field_0x69 = this->animIndex; + InitializeAnimation(this, (this->animIndex & -4) + sub_0806F5A4(GetFacingDirection(this, &gLinkEntity))); + } else { + sub_0807DDAC(this, 0); + sub_0807DDE4(this); + if (this->frameDuration == 0xff) { + this->frameDuration = gUnk_0810B680[this->entityType.form].unk2; + } + GetNextFrame(this); + if (this->interactType != 0) { + this->action = 2; + this->interactType = 0; + sub_08062048(this); + this->field_0x69 = this->animIndex; + InitializeAnimation(this, (this->animIndex & -4) + sub_0806F5A4(GetFacingDirection(this, &gLinkEntity))); + } + } +} + +void sub_08061E24(Entity* this) { + GetNextFrame(this); + if ((gTextBox.doTextBox & 0x7f) == 0) { + this->action = 1; + InitializeAnimation(this, this->field_0x69); + } +} + +void sub_08061E50(Entity* this) { + + if (UpdateFuseInteraction(this) != 0) { + this->action = 1; + InitializeAnimation(this, this->field_0x69); + } +} + +void sub_08061E70(Entity* this) { + if ((this->entityType).subtype == 6) { + sub_08078784(this, this->field_0x68); + } else { + sub_08078778(this); + } +} + +void sub_08061E90(Entity* this, Entity* arg1) { + u32 animIndex; + s32 iVar4; + + if (arg1->spriteSettings.raw == 0) { + arg1->spriteSettings.raw++; + arg1->spriteTileSize = (Random() & 0x3f) + 0x20; + animIndex = Random() & 0x18; + switch (this->direction) { + case 0x0: + if (animIndex == 0x10) { + animIndex = 0x8; + } + break; + case 0x8: + if (animIndex == 0x18) { + animIndex = 0x10; + } + break; + case 0x10: + if (animIndex == 0x0) { + animIndex = 0x18; + } + break; + case 0x18: + if (animIndex == 0x8) { + animIndex = 0; + } + } + this->direction = (u8)animIndex; + this->animationState = sub_0806F5B0(animIndex); + this->nonPlanarMovement = gUnk_0810B74A[this->entityType.form]; + } + animIndex = (this->animationState >> 1) + 4; + if (animIndex != this->animIndex) { + InitializeAnimation(this, animIndex); + } + sub_080AEF88(this); + iVar4 = this->x.HALF.HI - *(s16*)&this->field_0x6a.HWORD; + if (0x10 < iVar4) { + this->x.HALF.HI = this->field_0x6a.HWORD + 0x10; + arg1->spriteTileSize = 1; + } + if (iVar4 < -0x10) { + this->x.HALF.HI = *(s16*)&this->field_0x6a.HWORD - 0x10; + arg1->spriteTileSize = 1; + } + + iVar4 = this->y.HALF.HI - *(s16*)&this->field_0x6c; + if (0x10 < iVar4) { + this->y.HALF.HI = *(s16*)&this->field_0x6c + 0x10; + arg1->spriteTileSize = 1; + } + if (iVar4 < -0x10) { + this->y.HALF.HI = *(s16*)&this->field_0x6c - 0x10; + arg1->spriteTileSize = 1; + } + if (--arg1->spriteTileSize != 0) { + gUnk_02033280[6] = 0; + } +} + +void sub_08061F94(Entity* this) { + Entity* ent; + + ent = CreateFx(this, 0x35, 0); + if (ent != NULL) { + ResolveEntityOnTop(this, ent); + } +} + +void sub_08061FB0(Entity* this) { + this->boundingBox = NULL; +} + +void sub_08061FB8(Entity* this, struct_08061FB8* arg1) { + u8* temp = gUnk_0810B748; + + sub_08078850(this, 1, temp[arg1->unk2], &gUnk_0810B740[arg1->unk2]); +} + +void sub_08061FD8(Entity* this) { + InitializeAnimation(this, this->animationState >> 1); +} + +void sub_08061FE4(Entity* this) { + InitializeAnimation(this, (this->animationState >> 1) + 4); +} + +void sub_08061FF4(Entity* this) { + TextboxNoOverlap(gUnk_0810B790[this->entityType.form], this); +} + +void sub_0806200C(Entity* this) { + u32 index; + + index = 0; + if ((CheckGlobalFlag(0x29) != 0) && (CheckLocalFlag(0x6b))) { + + // hyrule bestiary + if (GetInventoryValue(0x39) == 2) { + index = 2; + } else { + index = 1; + } + } + TextboxNoOverlap(gUnk_0810B7BA[index], this); +} + +void sub_08062048(Entity *this) { - s32 uVar1; + int iVar1; - uVar1 = sub_0806ED9C(this, 0x20, 0x20); - if (uVar1 < 0) { - uVar1 = this->animationState + 4; + if ((this->entityType).subtype == 6) { + iVar1 = gUnk_02002A40.unk - 2; + if (iVar1 < 0) { + iVar1 = 0; + } + ShowNPCDialogue(this, gUnk_0810B7C0 + this->entityType.form * 0x10 + iVar1 * 2); } else { - if (this->field_0xf == 0) { - this->field_0xf = 0x10; - } - else { - this->field_0xf--; - uVar1 = this->animIndex & 3; - } + TextboxNoOverlap(0, this); } - sub_08061CB4(this, uVar1); - sub_0806ED78(this); - if (this->interactType != 0) { - this->interactType = 0; - TextboxNoOverlapFollow(this->entityType.parameter + 0xa01); +} + +void Townsperson_Fusion(Entity *this) +{ + if (this->action == 0) { + if (LoadExtraSpriteData(this, gUnk_0810B6EC[this->entityType.form]) == 0) { + return; + } + this->action++; + this->spriteSettings.b.draw = TRUE; } + sub_08061CB4(this, 6); } \ No newline at end of file From ed5c6d08dd012b1f5cd7c441b8b52169bb3ba6df Mon Sep 17 00:00:00 2001 From: theo3 Date: Mon, 13 Jul 2020 19:57:32 -0700 Subject: [PATCH 018/158] npc9.c OK --- asm/npc9.s | 110 ------------------------------------------------- linker.ld | 2 +- src/npc/npc9.c | 53 ++++++++++++++++++++++++ 3 files changed, 54 insertions(+), 111 deletions(-) delete mode 100644 asm/npc9.s create mode 100644 src/npc/npc9.c diff --git a/asm/npc9.s b/asm/npc9.s deleted file mode 100644 index d5abafe8..00000000 --- a/asm/npc9.s +++ /dev/null @@ -1,110 +0,0 @@ - .include "asm/macros.inc" - - .include "constants/constants.inc" - - .syntax unified - - .text - - - thumb_func_start NPC9 -NPC9: @ 0x08062AD8 - push {lr} - ldr r2, _08062AEC @ =gUnk_0810C290 - ldrb r1, [r0, #0xc] - lsls r1, r1, #2 - adds r1, r1, r2 - ldr r1, [r1] - bl _call_via_r1 - pop {pc} - .align 2, 0 -_08062AEC: .4byte gUnk_0810C290 - - thumb_func_start sub_08062AF0 -sub_08062AF0: @ 0x08062AF0 - push {r4, lr} - adds r4, r0, #0 - movs r2, #1 - movs r0, #1 - strb r0, [r4, #0xc] - ldrb r1, [r4, #0x18] - subs r0, #5 - ands r0, r1 - orrs r0, r2 - strb r0, [r4, #0x18] - adds r0, r4, #0 - movs r1, #0 - bl InitializeAnimation - adds r0, r4, #0 - bl sub_08078778 - pop {r4, pc} - - thumb_func_start sub_08062B14 -sub_08062B14: @ 0x08062B14 - push {r4, lr} - adds r4, r0, #0 - bl GetNextFrame - adds r1, r4, #0 - adds r1, #0x39 - movs r0, #0 - ldrsb r0, [r1, r0] - cmp r0, #0 - beq _08062B40 - movs r0, #0 - strb r0, [r1] - ldrb r0, [r4, #0xc] - adds r0, #1 - strb r0, [r4, #0xc] - adds r0, r4, #0 - movs r1, #1 - bl InitializeAnimation - adds r0, r4, #0 - bl sub_0805E47C -_08062B40: - adds r0, r4, #0 - bl sub_0806ED78 - pop {r4, pc} - - thumb_func_start sub_08062B48 -sub_08062B48: @ 0x08062B48 - push {r4, lr} - adds r4, r0, #0 - bl GetNextFrame - adds r0, r4, #0 - adds r0, #0x5a - ldrb r1, [r0] - movs r0, #0x80 - ands r0, r1 - cmp r0, #0 - beq _08062B6A - ldr r0, _08062B6C @ =0x00000A01 - bl TextboxNoOverlapFollow - ldrb r0, [r4, #0xc] - adds r0, #1 - strb r0, [r4, #0xc] -_08062B6A: - pop {r4, pc} - .align 2, 0 -_08062B6C: .4byte 0x00000A01 - - thumb_func_start sub_08062B70 -sub_08062B70: @ 0x08062B70 - push {r4, lr} - adds r4, r0, #0 - ldr r0, _08062B94 @ =gTextBox - ldrb r1, [r0] - movs r0, #0x7f - ands r0, r1 - cmp r0, #0 - bne _08062B92 - adds r0, r4, #0 - movs r1, #2 - bl InitializeAnimation - movs r0, #1 - strb r0, [r4, #0xc] - adds r0, r4, #0 - bl sub_0805E584 -_08062B92: - pop {r4, pc} - .align 2, 0 -_08062B94: .4byte gTextBox diff --git a/linker.ld b/linker.ld index 8710c675..248f0b65 100644 --- a/linker.ld +++ b/linker.ld @@ -542,7 +542,7 @@ SECTIONS { asm/npc5.o(.text); src/npc/townsperson.o(.text); asm/kid.o(.text); - asm/npc9.o(.text); + src/npc/npc9.o(.text); src/npc/stamp.o(.text); asm/marcy.o(.text); src/npc/wheaton.o(.text); diff --git a/src/npc/npc9.c b/src/npc/npc9.c new file mode 100644 index 00000000..3954ed8f --- /dev/null +++ b/src/npc/npc9.c @@ -0,0 +1,53 @@ +#include "global.h" +#include "entity.h" +#include "textbox.h" + +extern void sub_08078778(Entity*); +extern void sub_0805E47C(Entity*); +extern void sub_0806ED78(Entity*); +extern void sub_0805E584(Entity*); + +extern void (*const gUnk_0810C290[])(Entity*); + +void NPC9(Entity *this) +{ + gUnk_0810C290[this->action](this); +} + +void sub_08062AF0(Entity *this) +{ + this->action = 1; + this->spriteSettings.b.draw = TRUE; + InitializeAnimation(this, 0); + sub_08078778(this); +} + +void sub_08062B14(Entity *this) +{ + GetNextFrame(this); + if (this->interactType != 0) { + this->interactType = 0; + this->action++; + InitializeAnimation(this, 1); + sub_0805E47C(this); + } + sub_0806ED78(this); +} + +void sub_08062B48(Entity *this) +{ + GetNextFrame(this); + if ((this->frames.b.f3) != 0) { + TextboxNoOverlapFollow(0xa01); + this->action++; + } +} + +void sub_08062B70(Entity *this) +{ + if ((gTextBox.doTextBox & 0x7f) == 0) { + InitializeAnimation(this, 2); + this->action = 1; + sub_0805E584(this); + } +} \ No newline at end of file From 3797c700b36504f890dcec453821c3c43179e90c Mon Sep 17 00:00:00 2001 From: chandler Date: Tue, 14 Jul 2020 18:46:58 -0400 Subject: [PATCH 019/158] one non-matching in keaton --- asm/keaton.s | 581 ----------------------- asm/non_matching/keaton/sub_08032574.inc | 50 ++ include/functions.h | 14 +- linker.ld | 2 +- src/enemy/keaton.c | 250 ++++++++++ 5 files changed, 314 insertions(+), 583 deletions(-) delete mode 100644 asm/keaton.s create mode 100644 asm/non_matching/keaton/sub_08032574.inc create mode 100644 src/enemy/keaton.c diff --git a/asm/keaton.s b/asm/keaton.s deleted file mode 100644 index 9120cafa..00000000 --- a/asm/keaton.s +++ /dev/null @@ -1,581 +0,0 @@ - .include "asm/macros.inc" - - .include "constants/constants.inc" - - .syntax unified - - .text - - - thumb_func_start Keaton -Keaton: @ 0x080323BC - push {r4, lr} - adds r4, r0, #0 - ldr r1, _080323D8 @ =gUnk_080CE7B0 - bl EnemyFunctionHandler - movs r3, #0x12 - rsbs r3, r3, #0 - adds r0, r4, #0 - movs r1, #0 - movs r2, #1 - bl SetChildOffset - pop {r4, pc} - .align 2, 0 -_080323D8: .4byte gUnk_080CE7B0 - - thumb_func_start sub_080323DC -sub_080323DC: @ 0x080323DC - push {lr} - ldr r2, _080323F0 @ =gUnk_080CE7C8 - ldrb r1, [r0, #0xc] - lsls r1, r1, #2 - adds r1, r1, r2 - ldr r1, [r1] - bl _call_via_r1 - pop {pc} - .align 2, 0 -_080323F0: .4byte gUnk_080CE7C8 - - thumb_func_start sub_080323F4 -sub_080323F4: @ 0x080323F4 - push {r4, r5, lr} - adds r4, r0, #0 - ldrb r0, [r4, #0xc] - subs r0, #3 - lsls r0, r0, #0x18 - lsrs r0, r0, #0x18 - cmp r0, #1 - bls _0803242C - movs r0, #3 - strb r0, [r4, #0xc] - movs r0, #0xc - strb r0, [r4, #0xe] - adds r0, r4, #0 - adds r0, #0x3e - ldrb r1, [r0] - adds r1, #4 - movs r0, #0x18 - ands r1, r0 - movs r0, #0x10 - eors r1, r0 - strb r1, [r4, #0x15] - lsrs r1, r1, #3 - adds r0, r4, #0 - bl InitAnimationForceUpdate - adds r5, r4, #0 - adds r5, #0x43 - b _08032446 -_0803242C: - adds r0, r4, #0 - adds r0, #0x41 - ldrb r0, [r0] - adds r5, r4, #0 - adds r5, #0x43 - cmp r0, #0xcc - bne _08032446 - ldrb r0, [r5] - cmp r0, #0 - bne _0803244C - adds r0, r4, #0 - bl sub_0803275C -_08032446: - ldrb r0, [r5] - cmp r0, #0 - beq _08032454 -_0803244C: - adds r0, r4, #0 - movs r1, #0x1c - bl sub_0804A9FC -_08032454: - ldr r1, _08032460 @ =gUnk_080CE7B0 - adds r0, r4, #0 - bl sub_0804AA30 - pop {r4, r5, pc} - .align 2, 0 -_08032460: .4byte gUnk_080CE7B0 - - thumb_func_start nullsub_155 -nullsub_155: @ 0x08032464 - bx lr - .align 2, 0 - - thumb_func_start sub_08032468 -sub_08032468: @ 0x08032468 - push {r4, lr} - adds r4, r0, #0 - bl sub_0804A720 - movs r0, #0 - strb r0, [r4, #0x14] - adds r0, r4, #0 - movs r1, #0 - bl InitAnimationForceUpdate - adds r0, r4, #0 - bl sub_080326FC - adds r0, r4, #0 - bl sub_08032740 - pop {r4, pc} - .align 2, 0 - - thumb_func_start sub_0803248C -sub_0803248C: @ 0x0803248C - push {r4, lr} - adds r4, r0, #0 - bl sub_080325E8 - cmp r0, #0 - bne _080324C8 - adds r0, r4, #0 - bl sub_0803271C - cmp r0, #0 - bne _080324C8 - ldrb r0, [r4, #0xe] - subs r0, #1 - strb r0, [r4, #0xe] - lsls r0, r0, #0x18 - cmp r0, #0 - bne _080324B4 - adds r0, r4, #0 - bl sub_08032650 -_080324B4: - adds r0, r4, #0 - bl sub_080AEF88 - cmp r0, #0 - bne _080324C2 - movs r0, #1 - strb r0, [r4, #0xe] -_080324C2: - adds r0, r4, #0 - bl UpdateAnimationSingleFrame -_080324C8: - pop {r4, pc} - .align 2, 0 - - thumb_func_start sub_080324CC -sub_080324CC: @ 0x080324CC - push {r4, lr} - adds r4, r0, #0 - bl sub_080325E8 - cmp r0, #0 - bne _080324F8 - adds r0, r4, #0 - bl UpdateAnimationSingleFrame - adds r0, r4, #0 - adds r0, #0x5a - ldrb r1, [r0] - movs r0, #0x80 - ands r0, r1 - cmp r0, #0 - beq _080324F8 - adds r0, r4, #0 - bl sub_080326FC - adds r0, r4, #0 - bl sub_08032740 -_080324F8: - pop {r4, pc} - .align 2, 0 - - thumb_func_start sub_080324FC -sub_080324FC: @ 0x080324FC - push {r4, lr} - adds r4, r0, #0 - ldrb r0, [r4, #0xe] - cmp r0, #0 - beq _08032524 - subs r0, #1 - strb r0, [r4, #0xe] - lsls r0, r0, #0x18 - cmp r0, #0 - bne _08032572 - movs r0, #0x1e - strb r0, [r4, #0xf] - ldrb r0, [r4, #0x15] - lsrs r0, r0, #3 - strb r0, [r4, #0x14] - ldrb r1, [r4, #0x14] - adds r1, #4 - adds r0, r4, #0 - bl InitAnimationForceUpdate -_08032524: - adds r0, r4, #0 - bl UpdateAnimationSingleFrame - adds r0, r4, #0 - bl UpdateAnimationSingleFrame - ldrb r0, [r4, #0xf] - subs r1, r0, #1 - strb r1, [r4, #0xf] - lsls r0, r1, #0x18 - lsrs r3, r0, #0x18 - cmp r3, #0 - bne _08032564 - movs r0, #4 - strb r0, [r4, #0xc] - movs r1, #0 - movs r0, #0xf0 - lsls r0, r0, #1 - strh r0, [r4, #0x24] - adds r2, r4, #0 - adds r2, #0x76 - movs r0, #0x46 - strh r0, [r2] - adds r0, r4, #0 - adds r0, #0x78 - strh r3, [r0] - adds r0, #3 - strb r1, [r0] - adds r0, r4, #0 - bl sub_080327C8 - b _08032572 -_08032564: - movs r0, #3 - ands r1, r0 - cmp r1, #0 - bne _08032572 - adds r0, r4, #0 - bl sub_08032794 -_08032572: - pop {r4, pc} - - thumb_func_start sub_08032574 -sub_08032574: @ 0x08032574 - push {r4, r5, lr} - adds r4, r0, #0 - ldr r0, [r4, #0x54] - cmp r0, #0 - beq _0803258A - adds r0, #0x41 - ldrb r1, [r0] - movs r0, #0x80 - ands r0, r1 - cmp r0, #0 - bne _080325A4 -_0803258A: - adds r5, r4, #0 - adds r5, #0x76 - ldrh r0, [r5] - subs r0, #1 - strh r0, [r5] - lsls r0, r0, #0x10 - cmp r0, #0 - beq _080325A4 - adds r0, r4, #0 - bl sub_080AEFE0 - cmp r0, #0 - bne _080325AC -_080325A4: - adds r0, r4, #0 - bl sub_0803275C - b _080325C2 -_080325AC: - adds r0, r4, #0 - bl UpdateAnimationSingleFrame - ldrh r1, [r5] - movs r0, #7 - ands r0, r1 - cmp r0, #0 - bne _080325C2 - adds r0, r4, #0 - bl sub_08032794 -_080325C2: - pop {r4, r5, pc} - - thumb_func_start sub_080325C4 -sub_080325C4: @ 0x080325C4 - push {r4, lr} - adds r4, r0, #0 - ldrb r0, [r4, #0xe] - subs r0, #1 - strb r0, [r4, #0xe] - lsls r0, r0, #0x18 - cmp r0, #0 - bne _080325E4 - adds r0, r4, #0 - bl sub_080325E8 - cmp r0, #0 - bne _080325E4 - adds r0, r4, #0 - bl sub_08032784 -_080325E4: - pop {r4, pc} - .align 2, 0 - - thumb_func_start sub_080325E8 -sub_080325E8: @ 0x080325E8 - push {r4, r5, lr} - adds r4, r0, #0 - bl sub_08049FA0 - cmp r0, #0 - beq _0803264C - adds r0, r4, #0 - movs r1, #1 - bl sub_08049FDC - cmp r0, #0 - beq _0803264C - ldr r5, _08032648 @ =gUnk_020000B0 - ldr r1, [r5] - adds r0, r4, #0 - movs r2, #0x68 - movs r3, #0x40 - bl sub_080041A0 - cmp r0, #0 - beq _0803264C - ldr r1, [r5] - adds r0, r4, #0 - bl GetFacingDirection - adds r3, r4, #0 - adds r3, #0x5a - ldrb r2, [r3] - movs r5, #0x18 - adds r1, r5, #0 - ands r1, r2 - subs r0, r0, r1 - adds r0, #2 - movs r1, #0x1f - ands r0, r1 - cmp r0, #4 - bhi _0803264C - movs r0, #3 - strb r0, [r4, #0xc] - movs r0, #0xc - strb r0, [r4, #0xe] - ldrb r1, [r3] - adds r0, r5, #0 - ands r0, r1 - strb r0, [r4, #0x15] - movs r0, #1 - b _0803264E - .align 2, 0 -_08032648: .4byte gUnk_020000B0 -_0803264C: - movs r0, #0 -_0803264E: - pop {r4, r5, pc} - - thumb_func_start sub_08032650 -sub_08032650: @ 0x08032650 - push {r4, r5, lr} - adds r4, r0, #0 - bl Random - adds r5, r0, #0 - ldr r1, _08032680 @ =gUnk_080CE7E0 - movs r0, #0xf - ands r0, r5 - adds r0, r0, r1 - ldrb r0, [r0] - strb r0, [r4, #0xe] - adds r0, r4, #0 - bl sub_08049FA0 - cmp r0, #0 - bne _0803267A - lsrs r0, r5, #8 - movs r1, #1 - ands r0, r1 - cmp r0, #0 - beq _08032684 -_0803267A: - lsrs r0, r5, #0x10 - b _0803268C - .align 2, 0 -_08032680: .4byte gUnk_080CE7E0 -_08032684: - adds r0, r4, #0 - bl sub_08049EE4 - adds r0, #4 -_0803268C: - movs r1, #0x18 - ands r0, r1 - strb r0, [r4, #0x15] - ldrb r1, [r4, #0x15] - adds r0, r4, #0 - bl sub_0803269C - pop {r4, r5, pc} - - thumb_func_start sub_0803269C -sub_0803269C: @ 0x0803269C - push {lr} - adds r3, r0, #0 - adds r2, r1, #0 - subs r0, r2, #3 - movs r1, #7 - ands r0, r1 - cmp r0, #2 - bhi _080326D6 - adds r0, r2, #4 - movs r1, #0x18 - ands r0, r1 - lsrs r2, r0, #3 - ldrb r0, [r3, #0x14] - subs r0, r0, r2 - movs r1, #3 - ands r0, r1 - cmp r0, #1 - bls _080326F8 - strb r2, [r3, #0x14] - adds r0, r3, #0 - adds r0, #0x58 - ldrb r0, [r0] - movs r1, #0xfc - ands r1, r0 - adds r1, r1, r2 - adds r0, r3, #0 - bl InitAnimationForceUpdate - b _080326F8 -_080326D6: - adds r0, r2, #4 - movs r1, #0x18 - ands r0, r1 - lsrs r2, r0, #3 - ldrb r0, [r3, #0x14] - cmp r2, r0 - beq _080326F8 - strb r2, [r3, #0x14] - adds r0, r3, #0 - adds r0, #0x58 - ldrb r0, [r0] - movs r1, #0xfc - ands r1, r0 - adds r1, r1, r2 - adds r0, r3, #0 - bl InitAnimationForceUpdate -_080326F8: - pop {pc} - .align 2, 0 - - thumb_func_start sub_080326FC -sub_080326FC: @ 0x080326FC - push {r4, lr} - adds r4, r0, #0 - bl Random - ldr r2, _08032718 @ =gUnk_080CE7F0 - movs r1, #0xf - ands r1, r0 - lsls r1, r1, #1 - adds r1, r1, r2 - ldrh r0, [r1] - adds r4, #0x74 - strh r0, [r4] - pop {r4, pc} - .align 2, 0 -_08032718: .4byte gUnk_080CE7F0 - - thumb_func_start sub_0803271C -sub_0803271C: @ 0x0803271C - push {lr} - adds r2, r0, #0 - adds r1, r2, #0 - adds r1, #0x74 - ldrh r0, [r1] - subs r0, #1 - strh r0, [r1] - lsls r0, r0, #0x10 - cmp r0, #0 - beq _08032734 - movs r0, #0 - b _0803273C -_08032734: - adds r0, r2, #0 - bl sub_08032784 - movs r0, #1 -_0803273C: - pop {pc} - .align 2, 0 - - thumb_func_start sub_08032740 -sub_08032740: @ 0x08032740 - push {r4, lr} - adds r4, r0, #0 - movs r0, #1 - strb r0, [r4, #0xc] - movs r0, #0x80 - strh r0, [r4, #0x24] - ldrb r1, [r4, #0x14] - adds r0, r4, #0 - bl InitializeAnimation - adds r0, r4, #0 - bl sub_08032650 - pop {r4, pc} - - thumb_func_start sub_0803275C -sub_0803275C: @ 0x0803275C - push {r4, lr} - adds r4, r0, #0 - movs r0, #5 - strb r0, [r4, #0xc] - movs r0, #0x2d - strb r0, [r4, #0xe] - movs r0, #0x80 - strh r0, [r4, #0x24] - ldrb r1, [r4, #0x14] - adds r0, r4, #0 - bl InitAnimationForceUpdate - ldrb r1, [r4, #0x15] - adds r0, r4, #0 - bl sub_0803269C - adds r0, r4, #0 - bl sub_080327E0 - pop {r4, pc} - - thumb_func_start sub_08032784 -sub_08032784: @ 0x08032784 - push {lr} - movs r1, #2 - strb r1, [r0, #0xc] - ldrb r1, [r0, #0x14] - adds r1, #8 - bl InitAnimationForceUpdate - pop {pc} - - thumb_func_start sub_08032794 -sub_08032794: @ 0x08032794 - push {r4, r5, lr} - adds r4, r0, #0 - movs r1, #0x11 - movs r2, #0x40 - bl CreateFx - adds r5, r0, #0 - cmp r5, #0 - beq _080327C2 - ldrb r0, [r4, #0x14] - lsls r0, r0, #1 - ldr r1, _080327C4 @ =gUnk_080CE810 - adds r0, r0, r1 - movs r2, #0 - ldrsb r2, [r0, r2] - lsls r2, r2, #0x10 - movs r3, #1 - ldrsb r3, [r0, r3] - lsls r3, r3, #0x10 - adds r0, r4, #0 - adds r1, r5, #0 - bl PositionRelative -_080327C2: - pop {r4, r5, pc} - .align 2, 0 -_080327C4: .4byte gUnk_080CE810 - - thumb_func_start sub_080327C8 -sub_080327C8: @ 0x080327C8 - push {r4, lr} - adds r4, r0, #0 - movs r1, #0xb - movs r2, #0 - bl sub_0804A98C - cmp r0, #0 - beq _080327DC - str r4, [r0, #0x50] - str r0, [r4, #0x54] -_080327DC: - pop {r4, pc} - .align 2, 0 - - thumb_func_start sub_080327E0 -sub_080327E0: @ 0x080327E0 - push {lr} - adds r2, r0, #0 - ldr r1, [r2, #0x54] - cmp r1, #0 - beq _080327F0 - movs r0, #0 - str r0, [r1, #0x50] - str r0, [r2, #0x54] -_080327F0: - pop {pc} - .align 2, 0 diff --git a/asm/non_matching/keaton/sub_08032574.inc b/asm/non_matching/keaton/sub_08032574.inc new file mode 100644 index 00000000..c6caea9d --- /dev/null +++ b/asm/non_matching/keaton/sub_08032574.inc @@ -0,0 +1,50 @@ + .include "asm/macros.inc" + + .include "constants/constants.inc" + + .syntax unified + + .text + + push {r4, r5, lr} + adds r4, r0, #0 + ldr r0, [r4, #0x54] + cmp r0, #0 + beq _0803258A + adds r0, #0x41 + ldrb r1, [r0] + movs r0, #0x80 + ands r0, r1 + cmp r0, #0 + bne _080325A4 +_0803258A: + adds r5, r4, #0 + adds r5, #0x76 + ldrh r0, [r5] + subs r0, #1 + strh r0, [r5] + lsls r0, r0, #0x10 + cmp r0, #0 + beq _080325A4 + adds r0, r4, #0 + bl sub_080AEFE0 + cmp r0, #0 + bne _080325AC +_080325A4: + adds r0, r4, #0 + bl sub_0803275C + b _080325C2 +_080325AC: + adds r0, r4, #0 + bl UpdateAnimationSingleFrame + ldrh r1, [r5] + movs r0, #7 + ands r0, r1 + cmp r0, #0 + bne _080325C2 + adds r0, r4, #0 + bl sub_08032794 +_080325C2: + pop {r4, r5, pc} + .align 2, 0 + .syntax divided diff --git a/include/functions.h b/include/functions.h index ffeeeb75..ddab0e2a 100644 --- a/include/functions.h +++ b/include/functions.h @@ -21,6 +21,8 @@ extern void LoadRoomEntityList(); void CopyPosition(Entity*, Entity*); extern u32* StartCutscene(Entity*, u8*); extern void ResolveEntityOnTop(Entity*, Entity*); +extern void EnemyFunctionHandler(Entity*, void (*const funcs[])(Entity*)); +extern void SetChildOffset(Entity*, u32, u32, u32); // Unidentified @@ -29,7 +31,8 @@ extern void sub_0806920C(Entity*); extern u32 sub_0805ACC0(Entity*); extern u32 sub_0801E99C(Entity*); extern void sub_0806924C(Entity*); -extern void sub_080AEF88(Entity*); +extern u32 sub_080AEF88(Entity*); +extern Entity* sub_080873AC(Entity*, u32, u32); extern void sub_08078778(Entity*); extern void sub_080787A8(Entity*, u32); extern void sub_0806F118(Entity*); @@ -71,4 +74,13 @@ extern void sub_0807DD94(Entity*, u32); extern void sub_0805ED14(u32*); extern void sub_080A7C18(u32, u32, u32); extern void sub_08068BEC(Entity*, u32); +extern void sub_0804AA30(Entity*, void (*const funcs[])(Entity*)); +extern void sub_0804A9FC(Entity*, u32); +extern void sub_0804A720(Entity*); +extern u32 sub_080AEFE0(Entity*); +extern u32 sub_08049FA0(Entity*); +extern u32 sub_08049FDC(Entity*, u32); +extern u32 sub_080041A0(Entity *, Entity *, u32, u32); +extern u32 sub_08049EE4(Entity*); +extern Entity *sub_0804A98C(Entity *, u32, u32); #endif diff --git a/linker.ld b/linker.ld index 70de38a4..57735043 100644 --- a/linker.ld +++ b/linker.ld @@ -375,7 +375,7 @@ SECTIONS { asm/smallPesto.o(.text); asm/acroBandits.o(.text); src/enemy/bladeTrap.o(.text); - asm/keaton.o(.text); + src/enemy/keaton.o(.text); asm/crow.o(.text); asm/mulldozer.o(.text); asm/bombarossa.o(.text); diff --git a/src/enemy/keaton.c b/src/enemy/keaton.c new file mode 100644 index 00000000..7c960ac7 --- /dev/null +++ b/src/enemy/keaton.c @@ -0,0 +1,250 @@ +#include "global.h" +#include "entity.h" +#include "functions.h" + +extern Entity* gUnk_020000B0; + +extern void (*const gUnk_080CE7B0[])(Entity*); +extern void (*const gUnk_080CE7C8[])(Entity*); +extern u8 gUnk_080CE7E0[]; +extern u16 gUnk_080CE7F0[]; +extern s8 gUnk_080CE810[]; + +u32 sub_080325E8(Entity* this); +void sub_08032650(Entity* this); +void sub_0803269C(Entity* this, u32 direction); +void sub_080326FC(Entity* this); +u32 sub_0803271C(Entity* this); +void sub_08032740(Entity* this); +void sub_0803275C(Entity* this); +void sub_08032784(Entity* this); +void sub_08032794(Entity* this); +void sub_080327C8(Entity* this); +void sub_080327E0(Entity* this); + +void Keaton(Entity* this) { + EnemyFunctionHandler(this, gUnk_080CE7B0); + SetChildOffset(this, 0, 1, -18); +} + +void sub_080323DC(Entity* this) { + gUnk_080CE7C8[this->action](this); +} + +void sub_080323F4(Entity* this) { + u32 var; + + if ((u8)(this->action - 3) >= 2) { + this->action = 3; + this->actionDelay = 0xC; + var = ((this->field_0x3e + 4) & 0x18) ^ 0x10; + this->direction = var; + InitAnimationForceUpdate(this, var >> 3); + } else if (this->bitfield == 0xCC) { + if (this->field_0x43 == 0) { + sub_0803275C(this); + } + } + if (this->field_0x43 != 0) { + sub_0804A9FC(this, 0x1C); + } + sub_0804AA30(this, gUnk_080CE7B0); +} + +void nullsub_155(Entity* this) { +} + +void sub_08032468(Entity* this) { + sub_0804A720(this); + this->animationState = 0; + InitAnimationForceUpdate(this, 0); + sub_080326FC(this); + sub_08032740(this); +} + +void sub_0803248C(Entity* this) { + if (sub_080325E8(this) == 0) { + if (sub_0803271C(this) == 0) { + this->actionDelay--; + if (this->actionDelay == 0) { + sub_08032650(this); + } + if (sub_080AEF88(this) == 0) { + this->actionDelay = 1; + } + UpdateAnimationSingleFrame(this); + } + } +} + +void sub_080324CC(Entity* this) { + if (sub_080325E8(this) == 0) { + UpdateAnimationSingleFrame(this); + if (this->frames.all & 0x80) { + sub_080326FC(this); + sub_08032740(this); + } + } +} + +void sub_080324FC(Entity* this) { + if (this->actionDelay != 0) { + this->actionDelay--; + if (this->actionDelay == 0) { + this->field_0xf = 0x1E; + this->animationState = this->direction / 8; + InitAnimationForceUpdate(this, this->animationState + 4); + } else { + return; + } + } + UpdateAnimationSingleFrame(this); + UpdateAnimationSingleFrame(this); + this->field_0xf--; + if (this->field_0xf == 0) { + this->action = 4; + this->nonPlanarMovement = 0x1E0; + this->field_0x76 = 0x46; + this->field_0x78.HWORD = 0; + *(((u8*)&this->field_0x7a) + 1) = 0; + sub_080327C8(this); + } else { + if ((this->field_0xf & 0x3) == 0) { + sub_08032794(this); + } + } +} + +#if NON_MATCHING // r4-r5 register swap +void sub_08032574(Entity* this) { + if (this->attachedEntity == NULL || !(this->attachedEntity->bitfield & 0x80)) { + (this->field_0x76)--; + if ((this->field_0x76 == 0) || (sub_080AEFE0(this) == 0)) { + sub_0803275C(this); + } else { + UpdateAnimationSingleFrame(this); + if (!(this->field_0x76 & 0x7)) { + sub_08032794(this); + } + } + } +} +#else +NAKED +void sub_08032574(Entity* this) { + asm(".include \"asm/non_matching/keaton/sub_08032574.inc\""); +} +#endif + +void sub_080325C4(Entity* this) { + this->actionDelay--; + if ((this->actionDelay == 0) && (sub_080325E8(this) == 0)) { + sub_08032784(this); + } +} + +u32 sub_080325E8(Entity* this) { + if (((sub_08049FA0(this) != 0) && (sub_08049FDC(this, 1) != 0)) && + (sub_080041A0(this, gUnk_020000B0, 0x68, 0x40) != 0)) { + if (((GetFacingDirection(this, gUnk_020000B0) - ((this->frames.all & 0x18)) + 2) & 0x1F) < 5) { + this->action = 3; + this->actionDelay = 0xC; + this->direction = this->frames.all & 0x18; + return 1; + } + } + return 0; +} + +void sub_08032650(Entity* this) { + u32 uVar3; + + uVar3 = Random(); + this->actionDelay = gUnk_080CE7E0[uVar3 & 0xf]; + if (!((sub_08049FA0(this) == 0) && ((uVar3 >> 8 & 1) == 0))) { + this->direction = (uVar3 >> 0x10) & 0x18; + } else { + this->direction = (sub_08049EE4(this) + 4) & 0x18; + } + sub_0803269C(this, this->direction); +} + +void sub_0803269C(Entity* this, u32 param_2) { + u32 uVar1; + + if (((param_2 - 3) & 7) < 3) { + uVar1 = ((param_2 + 4) & 0x18) >> 3; + if (((this->animationState - uVar1) & 3) > 1) { + this->animationState = uVar1; + InitAnimationForceUpdate(this, (this->animIndex & 0xFC) + uVar1); + } + } else { + uVar1 = ((param_2 + 4) & 0x18) >> 3; + if (uVar1 != this->animationState) { + this->animationState = uVar1; + InitAnimationForceUpdate(this, (this->animIndex & 0xFC) + uVar1); + } + } +} + +void sub_080326FC(Entity* this) { + this->field_0x74 = gUnk_080CE7F0[Random() & 0xF]; +} + +u32 sub_0803271C(Entity* this) { + this->field_0x74--; + if (this->field_0x74 == 0) { + sub_08032784(this); + return 1; + } + return 0; +} + +void sub_08032740(Entity* this) { + this->action = 1; + this->nonPlanarMovement = 0x80; + InitializeAnimation(this, this->animationState); + sub_08032650(this); +} + +void sub_0803275C(Entity* this) { + this->action = 5; + this->actionDelay = 0x2D; + this->nonPlanarMovement = 0x80; + InitAnimationForceUpdate(this, this->animationState); + sub_0803269C(this, this->direction); + sub_080327E0(this); +} + +void sub_08032784(Entity* this) { + this->action = 2; + InitAnimationForceUpdate(this, this->animationState + 8); +} + +void sub_08032794(Entity* this) { + Entity* target; + s8* temp; + + target = CreateFx(this, 0x11, 0x40); + if (target != NULL) { + temp = &gUnk_080CE810[this->animationState * 2]; + PositionRelative(this, target, temp[0] << 0x10, temp[1] << 0x10); + } +} + +void sub_080327C8(Entity* this) { + Entity* child; + + child = sub_0804A98C(this, 11, 0); + if (child != NULL) { + child->parent = this; + this->attachedEntity = child; + } +} + +void sub_080327E0(Entity* this) { + if (this->attachedEntity != NULL) { + this->attachedEntity->parent = NULL; + this->attachedEntity = NULL; + } +} From c0ed079d03d0d17b69577cbbd15ec4c07d7ff07f Mon Sep 17 00:00:00 2001 From: Macrepeh <63179588+Macrepeh@users.noreply.github.com> Date: Tue, 14 Jul 2020 19:14:32 -0400 Subject: [PATCH 020/158] Update linker.ld --- linker.ld | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/linker.ld b/linker.ld index 248f0b65..13f230d5 100644 --- a/linker.ld +++ b/linker.ld @@ -607,7 +607,7 @@ SECTIONS { asm/kingGustaf.o(.text); asm/gina.o(.text); src/npc/simon.o(.text); - asm/anju.o(.text); + src/npc/anju.o(.text); asm/mama.o(.text); src/npc/emma.o(.text); src/npc/teachers.o(.text); From 0ed6703315f20b4def5a03ebca127b005e996e67 Mon Sep 17 00:00:00 2001 From: Macrepeh <63179588+Macrepeh@users.noreply.github.com> Date: Tue, 14 Jul 2020 19:15:39 -0400 Subject: [PATCH 021/158] Add files via upload --- src/npc/anju.c | 61 ++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 61 insertions(+) create mode 100644 src/npc/anju.c diff --git a/src/npc/anju.c b/src/npc/anju.c new file mode 100644 index 00000000..e1b7e4e8 --- /dev/null +++ b/src/npc/anju.c @@ -0,0 +1,61 @@ +#include "global.h" +#include "entity.h" +#include "link.h" +#include "room.h" +#include "flags.h" +#include "sprite.h" +#include "textbox.h" +#include "npc.h" + +extern void sub_0805E3A0(Entity*, u32); +extern void sub_0807DD50(Entity*); +extern u32 sub_0806F5A4(u32); +extern void sub_0806F118(Entity*); +extern void sub_0807DD94(Entity*, u32); +extern u32 sub_0801E99C(void); +extern void sub_08078784(Entity*, u32); + +void Anju(Entity *this) +{ + switch (this->action) { + case 0: + this->action = 1; + this->spriteSettings.b.draw = 1; + this->animationState = this->actionDelay; + sub_0807DD50(this); + return; + case 1: + if (this->interactType == 2) { + this->action = 2; + this->interactType = 0; + InitializeAnimation(this,(this->animIndex & -4) + sub_0806F5A4(GetFacingDirection(this, &gLinkEntity))); + sub_0806F118(this); + } else { + sub_0807DD94(this, 0); + } + return; + case 2: + if (UpdateFuseInteraction(this)) { + this->action = 1; + } + default: + } +} + +void sub_0806C354(Entity *this) +{ + this->field_0x68 = sub_0801E99C(); + sub_08078784(this,this->field_0x68); +} + +void Anju_Fusion(Entity *this) +{ + if (this->action == 0) { + this->action++; + this->spriteSettings.b.draw = 1; + InitAnimationForceUpdate(this,6); + } + else { + UpdateAnimationSingleFrame(this); + } +} \ No newline at end of file From c6a6888b43462204d996e7761d62d56e641c753e Mon Sep 17 00:00:00 2001 From: Macrepeh <63179588+Macrepeh@users.noreply.github.com> Date: Tue, 14 Jul 2020 19:16:25 -0400 Subject: [PATCH 022/158] Delete anju.s --- asm/anju.s | 122 ----------------------------------------------------- 1 file changed, 122 deletions(-) delete mode 100644 asm/anju.s diff --git a/asm/anju.s b/asm/anju.s deleted file mode 100644 index e3412270..00000000 --- a/asm/anju.s +++ /dev/null @@ -1,122 +0,0 @@ - .include "asm/macros.inc" - - .include "constants/constants.inc" - - .syntax unified - - .text - - - thumb_func_start Anju -Anju: @ 0x0806C2C4 - push {r4, lr} - adds r4, r0, #0 - ldrb r0, [r4, #0xc] - cmp r0, #1 - beq _0806C2FA - cmp r0, #1 - bgt _0806C2D8 - cmp r0, #0 - beq _0806C2DE - b _0806C350 -_0806C2D8: - cmp r0, #2 - beq _0806C342 - b _0806C350 -_0806C2DE: - movs r2, #1 - movs r0, #1 - strb r0, [r4, #0xc] - ldrb r1, [r4, #0x18] - subs r0, #5 - ands r0, r1 - orrs r0, r2 - strb r0, [r4, #0x18] - ldrb r0, [r4, #0xe] - strb r0, [r4, #0x14] - adds r0, r4, #0 - bl sub_0807DD50 - b _0806C350 -_0806C2FA: - adds r2, r4, #0 - adds r2, #0x39 - movs r1, #0 - ldrsb r1, [r2, r1] - cmp r1, #2 - bne _0806C338 - movs r0, #0 - strb r1, [r4, #0xc] - strb r0, [r2] - ldr r1, _0806C334 @ =gLinkEntity - adds r0, r4, #0 - bl GetFacingDirection - bl sub_0806F5A4 - adds r1, r4, #0 - adds r1, #0x58 - ldrb r1, [r1] - movs r2, #4 - rsbs r2, r2, #0 - ands r1, r2 - adds r1, r1, r0 - adds r0, r4, #0 - bl InitializeAnimation - adds r0, r4, #0 - bl sub_0806F118 - b _0806C350 - .align 2, 0 -_0806C334: .4byte gLinkEntity -_0806C338: - adds r0, r4, #0 - movs r1, #0 - bl sub_0807DD94 - b _0806C350 -_0806C342: - adds r0, r4, #0 - bl UpdateFuseInteraction - cmp r0, #0 - beq _0806C350 - movs r0, #1 - strb r0, [r4, #0xc] -_0806C350: - pop {r4, pc} - .align 2, 0 - - thumb_func_start sub_0806C354 -sub_0806C354: @ 0x0806C354 - push {r4, lr} - adds r4, r0, #0 - bl sub_0801E99C - adds r1, r4, #0 - adds r1, #0x68 - strb r0, [r1] - ldrb r1, [r1] - adds r0, r4, #0 - bl sub_08078784 - pop {r4, pc} - - thumb_func_start Anju_Fusion -Anju_Fusion: @ 0x0806C36C - push {lr} - adds r2, r0, #0 - ldrb r0, [r2, #0xc] - cmp r0, #0 - bne _0806C392 - adds r0, #1 - strb r0, [r2, #0xc] - ldrb r1, [r2, #0x18] - movs r0, #4 - rsbs r0, r0, #0 - ands r0, r1 - movs r1, #1 - orrs r0, r1 - strb r0, [r2, #0x18] - adds r0, r2, #0 - movs r1, #6 - bl InitAnimationForceUpdate - b _0806C398 -_0806C392: - adds r0, r2, #0 - bl UpdateAnimationSingleFrame -_0806C398: - pop {pc} - .align 2, 0 From f9bdae5fe61db06044bfdba43a0b8e83fce274cd Mon Sep 17 00:00:00 2001 From: theo3 Date: Tue, 14 Jul 2020 16:22:45 -0700 Subject: [PATCH 023/158] melari.c OK --- asm/melari.s | 386 ----------------------------------------------- linker.ld | 2 +- src/npc/melari.c | 173 +++++++++++++++++++++ 3 files changed, 174 insertions(+), 387 deletions(-) delete mode 100644 asm/melari.s create mode 100644 src/npc/melari.c diff --git a/asm/melari.s b/asm/melari.s deleted file mode 100644 index c1ee3d20..00000000 --- a/asm/melari.s +++ /dev/null @@ -1,386 +0,0 @@ - .include "asm/macros.inc" - - .include "constants/constants.inc" - - .syntax unified - - .text - - - thumb_func_start Melari -Melari: @ 0x080686D4 - push {r4, lr} - adds r4, r0, #0 - ldrb r1, [r4, #0x10] - movs r0, #2 - ands r0, r1 - cmp r0, #0 - bne _08068700 - ldr r0, _080686FC @ =gUnk_08111530 - ldrb r1, [r4, #0xc] - lsls r1, r1, #2 - adds r1, r1, r0 - ldr r1, [r1] - adds r0, r4, #0 - bl _call_via_r1 - adds r0, r4, #0 - bl sub_0806ED78 - b _08068706 - .align 2, 0 -_080686FC: .4byte gUnk_08111530 -_08068700: - adds r0, r4, #0 - bl sub_08068780 -_08068706: - pop {r4, pc} - - thumb_func_start sub_08068708 -sub_08068708: @ 0x08068708 - push {r4, lr} - adds r4, r0, #0 - ldr r1, _0806872C @ =gUnk_08111520 - bl LoadExtraSpriteData - cmp r0, #0 - beq _08068728 - movs r0, #1 - strb r0, [r4, #0xc] - adds r0, r4, #0 - movs r1, #0 - bl InitializeAnimation - adds r0, r4, #0 - bl sub_08078778 -_08068728: - pop {r4, pc} - .align 2, 0 -_0806872C: .4byte gUnk_08111520 - - thumb_func_start sub_08068730 -sub_08068730: @ 0x08068730 - push {r4, lr} - adds r4, r0, #0 - movs r1, #0x20 - movs r2, #0x20 - bl sub_0806ED9C - adds r1, r0, #0 - cmp r1, #0 - blt _08068762 - ldrb r0, [r4, #0xf] - cmp r0, #0 - bne _0806875E - movs r0, #0x10 - strb r0, [r4, #0xf] - adds r0, r4, #0 - adds r0, #0x58 - ldrb r0, [r0] - cmp r0, r1 - beq _08068762 - adds r0, r4, #0 - bl InitializeAnimation - b _08068762 -_0806875E: - subs r0, #1 - strb r0, [r4, #0xf] -_08068762: - adds r1, r4, #0 - adds r1, #0x39 - movs r0, #0 - ldrsb r0, [r1, r0] - cmp r0, #0 - beq _0806877E - movs r0, #0 - strb r0, [r1] - ldrb r0, [r4, #0xe] - movs r1, #0x90 - lsls r1, r1, #5 - adds r0, r0, r1 - bl TextboxNoOverlapFollow -_0806877E: - pop {r4, pc} - - thumb_func_start sub_08068780 -sub_08068780: @ 0x08068780 - push {r4, r5, lr} - adds r5, r0, #0 - ldrb r0, [r5, #0xc] - cmp r0, #1 - beq _080687D0 - cmp r0, #1 - bgt _08068794 - cmp r0, #0 - beq _0806879A - b _0806880E -_08068794: - cmp r0, #2 - beq _08068800 - b _0806880E -_0806879A: - ldr r1, _080687CC @ =gUnk_08111520 - adds r0, r5, #0 - bl LoadExtraSpriteData - cmp r0, #0 - beq _0806887A - movs r2, #1 - movs r0, #1 - strb r0, [r5, #0xc] - ldrb r1, [r5, #0x18] - subs r0, #5 - ands r0, r1 - orrs r0, r2 - strb r0, [r5, #0x18] - ldrb r0, [r5, #0xa] - strb r0, [r5, #0x14] - adds r0, r5, #0 - movs r1, #2 - bl sub_0805E3A0 - adds r0, r5, #0 - bl sub_0807DD50 - b _0806880E - .align 2, 0 -_080687CC: .4byte gUnk_08111520 -_080687D0: - adds r2, r5, #0 - adds r2, #0x39 - movs r1, #0 - ldrsb r1, [r2, r1] - cmp r1, #2 - bne _080687EA - movs r0, #0 - strb r1, [r5, #0xc] - strb r0, [r2] - adds r0, r5, #0 - bl sub_0806F118 - b _0806880E -_080687EA: - adds r0, r5, #0 - movs r1, #0 - bl sub_0807DDAC - adds r0, r5, #0 - bl sub_0807DDE4 - adds r0, r5, #0 - bl GetNextFrame - b _0806880E -_08068800: - adds r0, r5, #0 - bl UpdateFuseInteraction - cmp r0, #0 - beq _0806880E - movs r0, #1 - strb r0, [r5, #0xc] -_0806880E: - adds r2, r5, #0 - adds r2, #0x5a - ldrb r1, [r2] - movs r0, #0x40 - ands r0, r1 - cmp r0, #0 - beq _0806887A - movs r0, #0xbf - ands r0, r1 - strb r0, [r2] - adds r0, r5, #0 - bl sub_080040A8 - cmp r0, #0 - bne _08068848 - ldr r4, _08068844 @ =gUnk_0811153E - bl Random - movs r1, #3 - bl __modsi3 - lsls r0, r0, #1 - adds r0, r0, r4 - ldrh r0, [r0] - bl PlaySFX - b _0806885E - .align 2, 0 -_08068844: .4byte gUnk_0811153E -_08068848: - ldr r4, _0806887C @ =gUnk_08111538 - bl Random - movs r1, #3 - bl __modsi3 - lsls r0, r0, #1 - adds r0, r0, r4 - ldrh r0, [r0] - bl sub_08004488 -_0806885E: - adds r0, r5, #0 - movs r1, #0x3d - movs r2, #0x20 - bl CreateFx - adds r1, r0, #0 - cmp r1, #0 - beq _0806887A - movs r2, #0xc0 - lsls r2, r2, #0xd - ldr r3, _08068880 @ =0xFFF60000 - adds r0, r5, #0 - bl PositionRelative -_0806887A: - pop {r4, r5, pc} - .align 2, 0 -_0806887C: .4byte gUnk_08111538 -_08068880: .4byte 0xFFF60000 - - thumb_func_start sub_08068884 -sub_08068884: @ 0x08068884 - push {r4, lr} - adds r4, r0, #0 - bl sub_0801E99C - adds r1, r4, #0 - adds r1, #0x68 - strb r0, [r1] - ldrb r1, [r1] - adds r0, r4, #0 - bl sub_08078784 - pop {r4, pc} - - thumb_func_start Melari_Head -Melari_Head: @ 0x0806889C - push {r4, r5, lr} - adds r5, r0, #0 - adds r0, #0x5a - ldrb r4, [r0] - movs r0, #0xc1 - rsbs r0, r0, #0 - ands r4, r0 - ldrb r2, [r5, #0x1e] - adds r0, r5, #0 - movs r1, #1 - bl SetExtraSpriteFrame - movs r0, #0x20 - ands r0, r4 - cmp r0, #0 - beq _080688E2 - movs r0, #0xe1 - rsbs r0, r0, #0 - ands r4, r0 - adds r0, r5, #0 - movs r1, #0 - adds r2, r4, #0 - bl SetExtraSpriteFrame - adds r0, r5, #0 - movs r1, #2 - movs r2, #0xff - bl SetExtraSpriteFrame - adds r0, r5, #0 - movs r1, #1 - movs r2, #0 - bl SetSpriteSubEntryOffsetData1 - b _08068906 -_080688E2: - adds r0, r5, #0 - movs r1, #0 - movs r2, #0xff - bl SetExtraSpriteFrame - movs r0, #0xe1 - rsbs r0, r0, #0 - ands r4, r0 - adds r0, r5, #0 - movs r1, #2 - adds r2, r4, #0 - bl SetExtraSpriteFrame - adds r0, r5, #0 - movs r1, #1 - movs r2, #2 - bl SetSpriteSubEntryOffsetData2 -_08068906: - adds r0, r5, #0 - bl sub_0807000C - pop {r4, r5, pc} - .align 2, 0 - - thumb_func_start sub_08068910 -sub_08068910: @ 0x08068910 - push {r4, lr} - adds r4, r0, #0 - ldrb r0, [r4, #0xe] - cmp r0, #0 - beq _08068920 - subs r0, #1 - strb r0, [r4, #0xe] - b _08068960 -_08068920: - movs r0, #0x10 - strb r0, [r4, #0xe] - adds r0, r4, #0 - adds r0, #0x5a - ldrb r1, [r0] - movs r0, #0x20 - ands r0, r1 - cmp r0, #0 - beq _08068960 - adds r0, r4, #0 - movs r1, #0x30 - movs r2, #0x30 - bl sub_0806EDD8 - adds r2, r0, #0 - cmp r2, #0 - bge _08068944 - movs r2, #0x10 -_08068944: - adds r0, r2, #0 - bl sub_0806F5A4 - adds r2, r0, #0 - adds r0, r4, #0 - adds r0, #0x58 - ldrb r1, [r0] - movs r0, #4 - rsbs r0, r0, #0 - ands r1, r0 - adds r1, r1, r2 - adds r0, r4, #0 - bl InitializeAnimation -_08068960: - pop {r4, pc} - .align 2, 0 - - thumb_func_start sub_08068964 -sub_08068964: @ 0x08068964 - push {lr} - movs r0, #0x35 - movs r1, #0 - movs r2, #3 - bl sub_080A7C18 - movs r0, #0x35 - movs r1, #2 - bl sub_0807CAA0 - pop {pc} - .align 2, 0 - - thumb_func_start Melari_Fusion -Melari_Fusion: @ 0x0806897C - push {r4, lr} - adds r4, r0, #0 - ldrb r0, [r4, #0xc] - cmp r0, #0 - bne _080689B4 - ldr r1, _080689B0 @ =gUnk_08111520 - adds r0, r4, #0 - bl LoadExtraSpriteData - cmp r0, #0 - beq _080689BA - ldrb r0, [r4, #0xc] - adds r0, #1 - strb r0, [r4, #0xc] - ldrb r1, [r4, #0x18] - movs r0, #4 - rsbs r0, r0, #0 - ands r0, r1 - movs r1, #1 - orrs r0, r1 - strb r0, [r4, #0x18] - adds r0, r4, #0 - movs r1, #6 - bl InitializeAnimation - b _080689BA - .align 2, 0 -_080689B0: .4byte gUnk_08111520 -_080689B4: - adds r0, r4, #0 - bl GetNextFrame -_080689BA: - pop {r4, pc} - - thumb_func_start nullsub_502 -nullsub_502: @ 0x080689BC - bx lr - .align 2, 0 diff --git a/linker.ld b/linker.ld index 248f0b65..5f5afbc5 100644 --- a/linker.ld +++ b/linker.ld @@ -582,7 +582,7 @@ SECTIONS { asm/cat.o(.text); asm/mountainMinish.o(.text); asm/zeldaFollower.o(.text); - asm/melari.o(.text); + src/npc/melari.o(.text); src/npc/bladeBrothers.o(.text); src/npc/cow.o(.text); src/npc/goron.o(.text); diff --git a/src/npc/melari.c b/src/npc/melari.c new file mode 100644 index 00000000..ae906fd5 --- /dev/null +++ b/src/npc/melari.c @@ -0,0 +1,173 @@ +#include "global.h" +#include "entity.h" +#include "npc.h" +#include "textbox.h" +#include "functions.h" + +extern void sub_0806ED78(Entity*); +extern void sub_08068780(Entity*); +extern void sub_08078778(Entity*); +extern u32 Random(void); +extern void sub_0805E3A0(Entity*, u32); +extern void sub_0807DD50(Entity*); +extern void sub_0806F118(Entity*); +extern void sub_0807DDAC(Entity*, u32); +extern void sub_0807DDE4(Entity*); +extern u32 sub_080040A8(Entity*); +extern void sub_08004488(u32); +extern u32 sub_0801E99C(Entity*); +extern void sub_08078784(Entity*, u32); +extern void sub_0807000C(Entity*); +extern s32 sub_0806EDD8(Entity*, u32, u32); +extern void sub_080A7C18(u32, u32, u32); +extern void sub_0807CAA0(u32, u32); + +extern void (*const gUnk_08111530[])(Entity*); + +extern SpriteLoadData gUnk_08111520; +extern u16 gUnk_0811153E[]; +extern u16 gUnk_08111538[]; + +void Melari(Entity* this) { + if ((this->flags & 2) == 0) { + gUnk_08111530[this->action](this); + sub_0806ED78(this); + } else { + sub_08068780(this); + } +} + +void sub_08068708(Entity* this) { + if (LoadExtraSpriteData(this, &gUnk_08111520) != 0) { + this->action = 1; + InitializeAnimation(this, 0); + sub_08078778(this); + } +} + +void sub_08068730(Entity* this) { + s32 animIndex; + + animIndex = sub_0806ED9C(this, 0x20, 0x20); + if (-1 < animIndex) { + if (this->field_0xf == 0) { + this->field_0xf = 0x10; + if (this->animIndex != animIndex) { + InitializeAnimation(this, animIndex); + } + } else { + this->field_0xf--; + } + } + if (this->interactType != 0) { + this->interactType = 0; + TextboxNoOverlapFollow(this->actionDelay + 0x1200); + } +} + +void sub_08068780(Entity* this) { + Entity* ent; + + switch (this->action) { + case 0: + if (LoadExtraSpriteData(this, &gUnk_08111520) == 0) { + return; + } + this->action = 1; + this->spriteSettings.b.draw = TRUE; + this->animationState = this->entityType.form; + sub_0805E3A0(this, 2); + sub_0807DD50(this); + break; + case 1: + if (this->interactType == 2) { + this->action = 2; + this->interactType = 0; + sub_0806F118(this); + } else { + sub_0807DDAC(this, 0); + sub_0807DDE4(this); + GetNextFrame(this); + } + break; + case 2: + if (UpdateFuseInteraction(this)) { + this->action = 1; + } + } + + if ((this->frames.b.f2) != 0) { + this->frames.all &= 0xbf; + if (sub_080040A8(this) == 0) { + PlaySFX(gUnk_0811153E[(s32)Random() % 3]); + } else { + sub_08004488(gUnk_08111538[(s32)Random() % 3]); + } + ent = CreateFx(this, 0x3d, 0x20); + if (ent != NULL) { + PositionRelative(this, ent, 0x180000, -0xa0000); + } + } +} + +void sub_08068884(Entity* this) { + this->field_0x68 = sub_0801E99C(this); + sub_08078784(this, this->field_0x68); +} + +void Melari_Head(Entity* this) { + u32 bVar1; + + bVar1 = this->frames.all; + bVar1 &= -0xc1; + SetExtraSpriteFrame(this, 1, this->frameIndex); + if ((bVar1 & 0x20) != 0) { + SetExtraSpriteFrame(this, 0, bVar1 & -0xe1); + SetExtraSpriteFrame(this, 2, 0xff); + SetSpriteSubEntryOffsetData1(this, 1, 0); + } else { + SetExtraSpriteFrame(this, 0, 0xff); + SetExtraSpriteFrame(this, 2, bVar1 & -0xe1); + SetSpriteSubEntryOffsetData2(this, 1, 2); + } + sub_0807000C(this); +} + +void sub_08068910(Entity* this) { + s32 iVar1; + + if (this->actionDelay != 0) { + this->actionDelay--; + } else { + this->actionDelay = 0x10; + if ((this->frames.all & 0x20) != 0) { + iVar1 = sub_0806EDD8(this, 0x30, 0x30); + if (iVar1 < 0) { + iVar1 = 0x10; + } else { + } + iVar1 = sub_0806F5A4(iVar1); + InitializeAnimation(this, (this->animIndex & -0x4) + iVar1); + } + } +} + +void sub_08068964(Entity* this) { + sub_080A7C18(53, 0, 3); + sub_0807CAA0(53, 2); +} + +void Melari_Fusion(Entity* this) { + if (this->action == 0) { + if (LoadExtraSpriteData(this, &gUnk_08111520)) { + this->action++; + this->spriteSettings.b.draw = TRUE; + InitializeAnimation(this, 6); + } + } else { + GetNextFrame(this); + } +} + +void nullsub_502(Entity* this) { +} \ No newline at end of file From fc0727243d21238f018d2ec317a590547521d18e Mon Sep 17 00:00:00 2001 From: theo3 Date: Tue, 14 Jul 2020 16:54:35 -0700 Subject: [PATCH 024/158] LinkState members renamed for conformancy --- include/link.h | 46 ++++++++++++++++++++--------------------- src/code_08077B98.c | 0 src/item11.c | 2 +- src/npc/bladeBrothers.c | 6 +++--- src/object/cloud.c | 2 +- src/object/object86.c | 2 +- src/ocarina.c | 4 ++-- 7 files changed, 31 insertions(+), 31 deletions(-) create mode 100644 src/code_08077B98.c diff --git a/include/link.h b/include/link.h index 76f4206d..d343492e 100644 --- a/include/link.h +++ b/include/link.h @@ -7,27 +7,27 @@ #include "entity.h" typedef struct { - /*0x00*/ u8 filler[2]; + /*0x00*/ u8 field_0x0[2]; /*0x02*/ u8 jumpStatus; - /*0x03*/ u8 filler2[2]; + /*0x03*/ u8 field_0x3[2]; /*0x05*/ u8 heldObject; /*0x06*/ u8 pushedObject; - /*0x07*/ u8 unk; - /*0x08*/ u16 unk2; - /*0x0a*/ u8 unk3; + /*0x07*/ u8 field_0x7; + /*0x08*/ u16 field_0x8; + /*0x0a*/ u8 field_0xa; /*0x0b*/ u8 keepFacing; /*0x0c*/ u8 linkAction; - /*0x0d*/ u8 filler3[2]; + /*0x0d*/ u8 field_0xd[2]; /*0x0f*/ u8 hurtBlinkSpeed; - /*0x10*/ u8 filler4[4]; - /*0x14*/ u16 filler5[3]; - /*0x1a*/ u8 filler6[2]; + /*0x10*/ u8 field_0x10[4]; + /*0x14*/ u16 field_0x14[3]; + /*0x1a*/ u8 field_0x1a[2]; /*0x1c*/ u8 field_0x1c; - /*0x1d*/ u8 filler9[5]; - /*0x22*/ u16 filler7[2]; + /*0x1d*/ u8 field_0x1d[5]; + /*0x22*/ u16 field_0x22[2]; /*0x26*/ u8 swimState; - /*0x27*/ u8 filler8[5]; - /*0x2c*/ u8* unk4; + /*0x27*/ u8 field_0x27[5]; + /*0x2c*/ u8* field_0x2c; /*0x30*/ union { /* */ u32 all; /* */ struct { @@ -41,19 +41,19 @@ typedef struct { /* */ u32 filler11b : 16; /* */ } PACKED b; /* */ } flags; - /*0x34*/ u8 filler12[6]; - /*0x3a*/ u16 unk5; - /*0x3c*/ u8 filler13[2]; + /*0x34*/ u8 field_0x34[6]; + /*0x3a*/ u16 field_0x3a; + /*0x3c*/ u8 field_0x3c[2]; /*0x3e*/ u8 swordGoldParticle : 1; /* */ u8 swordBlueParticle : 1; /* */ u8 filler14 : 6; - /*0x3f*/ u8 unk6; - /*0x40*/ u8 filler15[75]; - /*0x8b*/ u8 unk7; - /*0x8c*/ u32 filler16[7]; - /*0xa8*/ u8 filler17[3]; - /*0xab*/ u8 unk71; - /*0xac*/ u32 unk8; + /*0x3f*/ u8 field_0x3f; + /*0x40*/ u8 field_0x40[75]; + /*0x8b*/ u8 field_0x8b; + /*0x8c*/ u32 field_0x8c[7]; + /*0xa8*/ u8 field_0xa8[3]; + /*0xab*/ u8 field_0xab; + /*0xac*/ u32 field_0xac; } LinkState; diff --git a/src/code_08077B98.c b/src/code_08077B98.c new file mode 100644 index 00000000..e69de29b diff --git a/src/item11.c b/src/item11.c index 0af53106..4f90bba6 100644 --- a/src/item11.c +++ b/src/item11.c @@ -59,7 +59,7 @@ void sub_08018CBC(Entity *this) this->spriteTileSize = 0xa6; this->palette = 0x33; this->spriteVramOffset = 0; - (this->entityType).form = gLinkState.filler9[0] - 1; + (this->entityType).form = gLinkState.field_0x1d[0] - 1; this->actionDelay = gUnk_080B3DE0[(this->entityType).form * 2]; this->field_0x44 = gUnk_080B3DE0[(this->entityType).form * 2 + 1]; this->field_0x40 = 0x1b; diff --git a/src/npc/bladeBrothers.c b/src/npc/bladeBrothers.c index 68630e8e..bcd9fa62 100644 --- a/src/npc/bladeBrothers.c +++ b/src/npc/bladeBrothers.c @@ -358,15 +358,15 @@ void sub_08068E78(Entity* this) { void sub_08068E90(Entity* this) { LinkState* s = &gLinkState; - *(u16*)&s->unk8 = (1 << (gUnk_08111740[this->actionDelay] - 1)) | *(u16*)&s->unk8; + *(u16*)&s->field_0xac = (1 << (gUnk_08111740[this->actionDelay] - 1)) | *(u16*)&s->field_0xac; } void sub_08068EB4(void) { - gLinkState.unk71 = 0; + gLinkState.field_0xab = 0; } void sub_08068EC4(Entity* param_1, Entity* param_2) { - if (gUnk_08111740[param_1->actionDelay] == gLinkState.unk71) { + if (gUnk_08111740[param_1->actionDelay] == gLinkState.field_0xab) { *(u16*)¶m_2->flags = gUnk_0811172A[param_1->actionDelay]; *(u32*)¶m_2->animationState = 1; } else { diff --git a/src/object/cloud.c b/src/object/cloud.c index 734559c4..027899cd 100644 --- a/src/object/cloud.c +++ b/src/object/cloud.c @@ -131,7 +131,7 @@ void sub_0809F69C(Entity* this) { void sub_0809F6CC(Entity* this) { if (((gRoomControls.unk6 & 4) == 0) && (--this->actionDelay == 0)) { - gLinkState.unk7 = 1; + gLinkState.field_0x8b = 1; DeleteThisEntity(); } } diff --git a/src/object/object86.c b/src/object/object86.c index 979ab47a..5a1c0aec 100644 --- a/src/object/object86.c +++ b/src/object/object86.c @@ -76,6 +76,6 @@ void sub_08099ECC(Entity *this) this->previousActionFlag = 1; CopyPosition(this, &gLinkEntity); gLinkState.linkAction = 3; - gLinkState.filler12[4] = 0; + gLinkState.field_0x34[4] = 0; gLinkState.flags.all |= 0x8000; } diff --git a/src/ocarina.c b/src/ocarina.c index b4eddddc..4ad365e2 100644 --- a/src/ocarina.c +++ b/src/ocarina.c @@ -42,10 +42,10 @@ void OcarinaUse(ItemBehavior* itemBeh, s32 inputFlags) { gLinkEntity.flags &= 127; gLinkEntity.field_0x7a = 2; gLinkState.flags.all |= 0x10000000; - gLinkState.filler8[0] = 255; + gLinkState.field_0x27[0] = 255; gUnk_02034490 = 1; bVar1 = (8 >> inputFlags); - gLinkState.unk3 |= bVar1; + gLinkState.field_0xa |= bVar1; gLinkState.keepFacing |= bVar1; sub_08078F60(); sub_08077D38(itemBeh, inputFlags); From 882aef9fdcf3b9688285a7a574cb691193e15abe Mon Sep 17 00:00:00 2001 From: theo3 Date: Tue, 14 Jul 2020 22:09:07 -0700 Subject: [PATCH 025/158] code_08077B98 --- asm/bowUse.s | 2 +- asm/code_0806ED78.s | 2 +- asm/code_08070698.s | 2 +- asm/code_080732D0.s | 10 +- asm/code_08076C80.s | 8 +- asm/code_08077B98.s | 7033 ----------------------------- asm/code_08078778.s | 6282 ++++++++++++++++++++++++++ asm/code_080A29BC.s | 4 +- asm/code_080A5574.s | 2 +- asm/non_matching/sub_08077D38.inc | 104 + asm/non_matching/sub_08077F24.inc | 34 + include/functions.h | 18 +- include/item.h | 13 +- include/link.h | 12 +- linker.ld | 4 + src/code_08077B98.c | 140 + src/code_08077DF4.c | 133 + src/code_08078778.c | 88 + src/ocarina.c | 2 +- 19 files changed, 6828 insertions(+), 7065 deletions(-) create mode 100644 asm/code_08078778.s create mode 100644 asm/non_matching/sub_08077D38.inc create mode 100644 asm/non_matching/sub_08077F24.inc create mode 100644 src/code_08077DF4.c create mode 100644 src/code_08078778.c diff --git a/asm/bowUse.s b/asm/bowUse.s index c5d97603..13219953 100644 --- a/asm/bowUse.s +++ b/asm/bowUse.s @@ -316,7 +316,7 @@ _080193C2: movs r0, #4 movs r1, #1 movs r3, #9 - bl sub_08077CB8 + bl CreatePlayerItem cmp r0, #0 beq _080193FA ldr r2, _0801940C @ =gLinkState diff --git a/asm/code_0806ED78.s b/asm/code_0806ED78.s index 736b901a..b3d78b6c 100644 --- a/asm/code_0806ED78.s +++ b/asm/code_0806ED78.s @@ -1006,7 +1006,7 @@ _0806F444: movs r1, #0 movs r2, #0 movs r3, #0 - bl sub_08077CB8 + bl CreatePlayerItem cmp r0, #0 beq _0806F4B4 str r5, [r0, #0x54] diff --git a/asm/code_08070698.s b/asm/code_08070698.s index ebe42a24..dd723733 100644 --- a/asm/code_08070698.s +++ b/asm/code_08070698.s @@ -3130,7 +3130,7 @@ sub_08071EB0: @ 0x08071EB0 bl sub_08077B2C adds r0, r4, #0 movs r1, #0xe - bl sub_08077C3C + bl CreatePlayerBomb cmp r0, #0 beq _08071F12 ldr r3, _08071EE4 @ =gLinkState diff --git a/asm/code_080732D0.s b/asm/code_080732D0.s index 0cce55f5..2974abfd 100644 --- a/asm/code_080732D0.s +++ b/asm/code_080732D0.s @@ -4597,7 +4597,7 @@ _080754F2: bne _08075538 adds r0, r4, #0 movs r1, #0xf - bl sub_08077C3C + bl CreatePlayerBomb cmp r5, #0xf bne _08075530 adds r1, r7, #0 @@ -4976,7 +4976,7 @@ _080757D4: beq _08075816 adds r0, r4, #0 movs r1, #0x14 - bl sub_08077C3C + bl CreatePlayerBomb adds r2, r0, #0 cmp r2, #0 beq _08075816 @@ -6040,7 +6040,7 @@ _08076036: bls _08076076 adds r0, r6, #0 movs r1, #2 - bl sub_08077C3C + bl CreatePlayerBomb adds r4, r0, #0 cmp r4, #0 beq _08076076 @@ -6174,7 +6174,7 @@ _08076138: _0807614A: adds r0, r4, #0 movs r1, #0x13 - bl sub_08077C3C + bl CreatePlayerBomb adds r3, r0, #0 cmp r3, #0 bne _08076162 @@ -7319,7 +7319,7 @@ _080769CC: bl sub_08077DF4 adds r0, r4, #0 movs r1, #0xc - bl sub_08077C3C + bl CreatePlayerBomb adds r5, r0, #0 cmp r5, #0 beq _08076A70 diff --git a/asm/code_08076C80.s b/asm/code_08076C80.s index df2e9a25..169ee0dd 100644 --- a/asm/code_08076C80.s +++ b/asm/code_08076C80.s @@ -56,7 +56,7 @@ _08076CD2: beq _08076CE2 adds r0, r4, #0 movs r1, #0x12 - bl sub_08077C3C + bl CreatePlayerBomb _08076CE2: adds r0, r4, #0 bl UpdateItemAnim @@ -281,7 +281,7 @@ _08076E7A: movs r1, #0 movs r2, #0 movs r3, #0 - bl sub_08077CB8 + bl CreatePlayerItem adds r1, r0, #0 cmp r1, #0 beq _08076EC6 @@ -446,7 +446,7 @@ _08076FAC: movs r1, #0 movs r2, #0 movs r3, #0 - bl sub_08077CB8 + bl CreatePlayerItem cmp r0, #0 bne _08076FF6 b _08077110 @@ -521,7 +521,7 @@ _08077060: movs r0, #0x11 movs r1, #0 movs r3, #0 - bl sub_08077CB8 + bl CreatePlayerItem _0807708C: ldr r0, _080770B0 @ =gLinkState ldr r0, [r0, #0x30] diff --git a/asm/code_08077B98.s b/asm/code_08077B98.s index 8e3f6f87..da1b72eb 100644 --- a/asm/code_08077B98.s +++ b/asm/code_08077B98.s @@ -6,609 +6,6 @@ .text - thumb_func_start sub_08077B98 -sub_08077B98: @ 0x08077B98 - push {r4, lr} - adds r1, r0, #0 - ldr r4, _08077BB4 @ =gLinkState - ldr r0, [r4, #0x2c] - cmp r0, #0 - beq _08077BAA - ldrb r0, [r0, #9] - cmp r0, #1 - beq _08077BB2 -_08077BAA: - adds r0, r1, #0 - bl sub_08077C54 - str r0, [r4, #0x2c] -_08077BB2: - pop {r4, pc} - .align 2, 0 -_08077BB4: .4byte gLinkState - - thumb_func_start sub_08077BB8 -sub_08077BB8: @ 0x08077BB8 - push {lr} - bl sub_08077C54 - adds r1, r0, #0 - cmp r1, #0 - beq _08077BC8 - movs r0, #0x20 - strb r0, [r1, #0x10] -_08077BC8: - ldr r0, _08077BD0 @ =gLinkState - str r1, [r0, #0x2c] - pop {pc} - .align 2, 0 -_08077BD0: .4byte gLinkState - - thumb_func_start sub_08077BD4 -sub_08077BD4: @ 0x08077BD4 - push {r4, r5, lr} - adds r4, r0, #0 - ldr r5, _08077C04 @ =gUnk_0811BE48 - ldrb r1, [r4, #1] - lsls r0, r1, #1 - adds r0, r0, r1 - lsls r0, r0, #2 - adds r0, r0, r5 - ldrb r1, [r0, #3] - adds r0, r4, #0 - bl sub_08077C94 - cmp r0, #0 - bne _08077C08 - ldrb r1, [r4, #1] - lsls r0, r1, #1 - adds r0, r0, r1 - lsls r0, r0, #2 - adds r0, r0, r5 - ldrb r1, [r0, #3] - adds r0, r4, #0 - bl sub_08077C3C - b _08077C0A - .align 2, 0 -_08077C04: .4byte gUnk_0811BE48 -_08077C08: - movs r0, #0 -_08077C0A: - pop {r4, r5, pc} - - thumb_func_start sub_08077C0C -sub_08077C0C: @ 0x08077C0C - push {r4, r5, lr} - adds r5, r0, #0 - ldr r2, _08077C34 @ =gUnk_0811BE48 - lsls r0, r1, #1 - adds r0, r0, r1 - lsls r0, r0, #2 - adds r0, r0, r2 - ldrb r4, [r0, #3] - adds r0, r5, #0 - adds r1, r4, #0 - bl sub_08077C94 - cmp r0, #0 - bne _08077C38 - adds r0, r5, #0 - adds r1, r4, #0 - bl sub_08077C3C - b _08077C3A - .align 2, 0 -_08077C34: .4byte gUnk_0811BE48 -_08077C38: - movs r0, #0 -_08077C3A: - pop {r4, r5, pc} - - thumb_func_start sub_08077C3C -sub_08077C3C: @ 0x08077C3C - push {r4, lr} - adds r4, r0, #0 - adds r0, r1, #0 - ldrb r3, [r4, #1] - movs r1, #0 - movs r2, #0 - bl sub_08077CB8 - cmp r0, #0 - beq _08077C52 - str r4, [r0, #0x50] -_08077C52: - pop {r4, pc} - - thumb_func_start sub_08077C54 -sub_08077C54: @ 0x08077C54 - push {r4, r5, lr} - adds r5, r0, #0 - bl sub_0805E744 - adds r4, r0, #0 - cmp r4, #0 - beq _08077C8C - ldr r2, _08077C90 @ =gUnk_0811BE48 - ldrb r1, [r5, #1] - lsls r0, r1, #1 - adds r0, r0, r1 - lsls r0, r0, #2 - adds r0, r0, r2 - ldrb r0, [r0, #3] - strb r0, [r4, #9] - movs r0, #8 - strb r0, [r4, #8] - movs r0, #0xa0 - strb r0, [r4, #0x10] - str r5, [r4, #0x50] - ldrb r1, [r5, #1] - adds r0, r4, #0 - adds r0, #0x68 - strb r1, [r0] - adds r0, r4, #0 - movs r1, #2 - bl sub_0805EA2C -_08077C8C: - adds r0, r4, #0 - pop {r4, r5, pc} - .align 2, 0 -_08077C90: .4byte gUnk_0811BE48 - - thumb_func_start sub_08077C94 -sub_08077C94: @ 0x08077C94 - push {lr} - ldr r2, _08077CB4 @ =gUnk_0811BE48 - lsls r0, r1, #1 - adds r0, r0, r1 - lsls r0, r0, #2 - adds r0, r0, r2 - ldrb r1, [r0, #3] - movs r0, #8 - movs r2, #2 - bl sub_0805EB00 - cmp r0, #0 - bne _08077CB0 - movs r0, #0 -_08077CB0: - pop {pc} - .align 2, 0 -_08077CB4: .4byte gUnk_0811BE48 - - thumb_func_start sub_08077CB8 -sub_08077CB8: @ 0x08077CB8 - push {r4, r5, r6, r7, lr} - mov r7, r8 - push {r7} - adds r5, r0, #0 - adds r6, r1, #0 - adds r7, r2, #0 - mov r8, r3 - bl GetEmptyEntity - adds r4, r0, #0 - cmp r4, #0 - beq _08077CEE - movs r0, #0x80 - strb r0, [r4, #0x10] - movs r0, #8 - strb r0, [r4, #8] - strb r5, [r4, #9] - strb r6, [r4, #0xa] - strb r7, [r4, #0xb] - adds r0, r4, #0 - adds r0, #0x68 - mov r1, r8 - strb r1, [r0] - adds r0, r4, #0 - movs r1, #2 - bl sub_0805EA2C -_08077CEE: - adds r0, r4, #0 - pop {r3} - mov r8, r3 - pop {r4, r5, r6, r7, pc} - .align 2, 0 - - thumb_func_start sub_08077CF8 -sub_08077CF8: @ 0x08077CF8 - push {r4, r5, r6, r7, lr} - mov r7, r8 - push {r7} - adds r5, r0, #0 - adds r6, r1, #0 - adds r7, r2, #0 - mov r8, r3 - bl sub_0805E744 - adds r4, r0, #0 - cmp r4, #0 - beq _08077D2E - movs r0, #0x80 - strb r0, [r4, #0x10] - movs r0, #8 - strb r0, [r4, #8] - strb r5, [r4, #9] - strb r6, [r4, #0xa] - strb r7, [r4, #0xb] - adds r0, r4, #0 - adds r0, #0x68 - mov r1, r8 - strb r1, [r0] - adds r0, r4, #0 - movs r1, #2 - bl sub_0805EA2C -_08077D2E: - adds r0, r4, #0 - pop {r3} - mov r8, r3 - pop {r4, r5, r6, r7, pc} - .align 2, 0 - - thumb_func_start sub_08077D38 -sub_08077D38: @ 0x08077D38 - push {r4, r5, r6, r7, lr} - mov r7, r8 - push {r7} - adds r4, r0, #0 - mov r8, r1 - ldr r3, _08077D94 @ =gLinkState - movs r7, #8 - adds r1, r7, #0 - mov r0, r8 - asrs r1, r0 - ldrb r2, [r3, #0xa] - adds r0, r1, #0 - orrs r0, r2 - strb r0, [r3, #0xa] - ldrb r0, [r3, #0xb] - orrs r1, r0 - strb r1, [r3, #0xb] - ldr r0, _08077D98 @ =gLinkEntity - ldrb r0, [r0, #0x14] - strb r0, [r4, #0xa] - ldrb r0, [r4, #4] - cmp r0, #0 - bne _08077D6A - adds r0, #1 - strb r0, [r4, #4] -_08077D6A: - ldrb r2, [r4, #1] - lsls r0, r2, #1 - adds r0, r0, r2 - lsls r0, r0, #2 - ldr r1, _08077D9C @ =gUnk_0811BE48 - adds r5, r0, r1 - ldrh r0, [r5, #4] - cmp r0, #0 - beq _08077DCC - ldr r0, [r3, #0x30] - ands r0, r7 - cmp r0, #0 - beq _08077DC4 - cmp r2, #0xd - beq _08077DB2 - cmp r2, #0xd - bgt _08077DA0 - cmp r2, #1 - beq _08077DAC - b _08077DB4 - .align 2, 0 -_08077D94: .4byte gLinkState -_08077D98: .4byte gLinkEntity -_08077D9C: .4byte gUnk_0811BE48 -_08077DA0: - cmp r2, #0x1b - bne _08077DB4 - ldr r6, _08077DA8 @ =0x00000948 - b _08077DB4 - .align 2, 0 -_08077DA8: .4byte 0x00000948 -_08077DAC: - movs r6, #0x81 - lsls r6, r6, #3 - b _08077DB4 -_08077DB2: - ldr r6, _08077DC0 @ =0x0000040C -_08077DB4: - adds r0, r4, #0 - adds r1, r6, #0 - bl sub_08077DF4 - b _08077DCC - .align 2, 0 -_08077DC0: .4byte 0x0000040C -_08077DC4: - ldrh r1, [r5, #4] - adds r0, r4, #0 - bl sub_08077DF4 -_08077DCC: - ldrb r0, [r5, #6] - strb r0, [r4, #0xf] - ldrb r0, [r5, #7] - cmp r0, #0 - beq _08077DE8 - ldr r2, _08077DF0 @ =gLinkState - movs r0, #8 - mov r1, r8 - asrs r0, r1 - lsls r1, r0, #4 - orrs r0, r1 - ldrb r1, [r2, #4] - orrs r0, r1 - strb r0, [r2, #4] -_08077DE8: - pop {r3} - mov r8, r3 - pop {r4, r5, r6, r7, pc} - .align 2, 0 -_08077DF0: .4byte gLinkState - - thumb_func_start sub_08077DF4 -sub_08077DF4: @ 0x08077DF4 - push {r4, lr} - adds r4, r0, #0 - adds r2, r1, #0 - strh r2, [r4, #0x10] - movs r0, #0xff - ands r0, r2 - cmp r0, #0xb8 - bls _08077E0A - ldrb r0, [r4, #0xa] - lsrs r0, r0, #1 - adds r2, r2, r0 -_08077E0A: - ldr r0, _08077E20 @ =gLinkEntity - lsrs r1, r2, #8 - strh r1, [r0, #0x12] - lsls r1, r2, #0x18 - lsrs r1, r1, #0x18 - bl InitAnimationForceUpdate - adds r0, r4, #0 - bl sub_08077E54 - pop {r4, pc} - .align 2, 0 -_08077E20: .4byte gLinkEntity - - thumb_func_start UpdateItemAnim -UpdateItemAnim: @ 0x08077E24 - push {r4, lr} - adds r4, r0, #0 - ldr r0, _08077E38 @ =gLinkEntity - bl UpdateAnimationSingleFrame - adds r0, r4, #0 - bl sub_08077E54 - pop {r4, pc} - .align 2, 0 -_08077E38: .4byte gLinkEntity - - thumb_func_start sub_08077E3C -sub_08077E3C: @ 0x08077E3C - push {r4, lr} - adds r4, r0, #0 - ldr r0, _08077E50 @ =gLinkEntity - bl sub_080042BA - adds r0, r4, #0 - bl sub_08077E54 - pop {r4, pc} - .align 2, 0 -_08077E50: .4byte gLinkEntity - - thumb_func_start sub_08077E54 -sub_08077E54: @ 0x08077E54 - ldr r2, _08077E74 @ =gLinkEntity - adds r1, r2, #0 - adds r1, #0x58 - ldrb r1, [r1] - strb r1, [r0, #0xc] - ldrb r1, [r2, #0x1e] - strb r1, [r0, #0x12] - adds r1, r2, #0 - adds r1, #0x59 - ldrb r1, [r1] - strb r1, [r0, #0xd] - adds r1, r2, #0 - adds r1, #0x5a - ldrb r1, [r1] - strb r1, [r0, #0xe] - bx lr - .align 2, 0 -_08077E74: .4byte gLinkEntity - - thumb_func_start sub_08077E78 -sub_08077E78: @ 0x08077E78 - push {r4, r5, lr} - adds r5, r0, #0 - adds r3, r1, #0 - ldr r4, _08077EC4 @ =gLinkState - cmp r3, #0 - bne _08077E9A - ldr r2, [r4, #0x2c] - cmp r2, #0 - beq _08077E98 - ldrb r0, [r2, #0x11] - movs r1, #0x10 - rsbs r1, r1, #0 - ands r1, r0 - movs r0, #6 - orrs r1, r0 - strb r1, [r2, #0x11] -_08077E98: - str r3, [r4, #0x2c] -_08077E9A: - movs r2, #8 - asrs r2, r3 - lsls r1, r2, #4 - orrs r1, r2 - ldrb r0, [r4, #4] - bics r0, r1 - strb r0, [r4, #4] - mvns r2, r2 - ldrb r1, [r4, #0xa] - adds r0, r2, #0 - ands r0, r1 - strb r0, [r4, #0xa] - ldrb r0, [r4, #0xb] - ands r2, r0 - strb r2, [r4, #0xb] - adds r0, r5, #0 - movs r1, #0x1c - bl sub_0801D630 - pop {r4, r5, pc} - .align 2, 0 -_08077EC4: .4byte gLinkState - - thumb_func_start sub_08077EC8 -sub_08077EC8: @ 0x08077EC8 - push {r4, lr} - adds r4, r0, #0 - ldr r0, _08077EDC @ =gLinkState - ldrb r1, [r0, #0x1b] - movs r0, #8 - ands r0, r1 - cmp r0, #0 - bne _08077EE0 - movs r0, #0 - b _08077EF8 - .align 2, 0 -_08077EDC: .4byte gLinkState -_08077EE0: - movs r1, #0xb8 - lsls r1, r1, #1 - adds r0, r4, #0 - bl sub_08077DF4 - movs r0, #0x28 - strb r0, [r4, #7] - movs r0, #7 - strb r0, [r4, #4] - movs r0, #6 - strb r0, [r4, #0xf] - movs r0, #1 -_08077EF8: - pop {r4, pc} - .align 2, 0 - - thumb_func_start sub_08077EFC -sub_08077EFC: @ 0x08077EFC - push {lr} - ldr r1, _08077F0C @ =gLinkState - adds r1, #0x90 - ldrh r1, [r1] - bl sub_08077F24 - pop {pc} - .align 2, 0 -_08077F0C: .4byte gLinkState - - thumb_func_start sub_08077F10 -sub_08077F10: @ 0x08077F10 - push {lr} - ldr r1, _08077F20 @ =gLinkState - adds r1, #0x92 - ldrh r1, [r1] - bl sub_08077F24 - pop {pc} - .align 2, 0 -_08077F20: .4byte gLinkState - - thumb_func_start sub_08077F24 -sub_08077F24: @ 0x08077F24 - push {lr} - ldr r2, _08077F34 @ =gStats - ldrb r3, [r0, #1] - ldrb r0, [r2, #0xc] - cmp r0, r3 - bne _08077F38 - movs r2, #1 - b _08077F42 - .align 2, 0 -_08077F34: .4byte gStats -_08077F38: - ldrb r0, [r2, #0xd] - movs r2, #0 - cmp r0, r3 - bne _08077F42 - movs r2, #2 -_08077F42: - adds r0, r2, #0 - ands r0, r1 - cmp r0, #0 - beq _08077F4C - movs r0, #1 -_08077F4C: - pop {pc} - .align 2, 0 - - thumb_func_start sub_08077F50 -sub_08077F50: @ 0x08077F50 - push {r4, r5, lr} - adds r4, r0, #0 - adds r5, r1, #0 - bl sub_08079184 - adds r0, r4, #0 - adds r1, r5, #0 - bl sub_08077E78 - pop {r4, r5, pc} - - thumb_func_start sub_08077F64 -sub_08077F64: @ 0x08077F64 - push {lr} - adds r2, r0, #0 - ldr r0, _08077F7C @ =gLinkState - ldrb r0, [r0, #5] - cmp r0, #0 - bne _08077F80 - adds r0, r2, #0 - bl sub_08077F50 - movs r0, #0 - b _08077F82 - .align 2, 0 -_08077F7C: .4byte gLinkState -_08077F80: - movs r0, #1 -_08077F82: - pop {pc} - - thumb_func_start sub_08077F84 -sub_08077F84: @ 0x08077F84 - push {r4, lr} - ldr r4, _08077FE0 @ =gLinkEntity - adds r0, r4, #0 - adds r0, #0x38 - ldrb r1, [r0] - movs r0, #2 - ands r0, r1 - cmp r0, #0 - bne _08077FDE - movs r1, #0x2e - ldrsh r0, [r4, r1] - movs r2, #0x32 - ldrsh r1, [r4, r2] - subs r1, #0xc - movs r2, #2 - bl GetTileTypeByPos - ldr r1, _08077FE4 @ =0xFFFFFCBD - adds r0, r0, r1 - cmp r0, #3 - bhi _08077FDE - adds r0, r4, #0 - bl sub_0807AA80 - ldr r2, _08077FE8 @ =gLinkState - ldrb r1, [r2, #2] - movs r0, #8 - orrs r0, r1 - strb r0, [r2, #2] - movs r0, #0x44 - movs r1, #0 - movs r2, #0 - bl CreateObject - adds r1, r0, #0 - cmp r1, #0 - beq _08077FDE - ldr r0, [r4, #0x2c] - str r0, [r1, #0x2c] - ldrh r0, [r4, #0x32] - subs r0, #0xc - strh r0, [r1, #0x32] - ldrh r0, [r4, #0x32] - subs r0, #0xc - strh r0, [r4, #0x32] -_08077FDE: - pop {r4, pc} - .align 2, 0 -_08077FE0: .4byte gLinkEntity -_08077FE4: .4byte 0xFFFFFCBD -_08077FE8: .4byte gLinkState - thumb_func_start sub_08077FEC sub_08077FEC: @ 0x08077FEC push {lr} @@ -1568,6433 +965,3 @@ _0807876A: pop {r4, r5, r6, r7, pc} .align 2, 0 _08078774: .4byte gUnk_0811C000 - - thumb_func_start sub_08078778 -sub_08078778: @ 0x08078778 - push {lr} - movs r1, #1 - movs r2, #0 - bl sub_0807887C - pop {pc} - - thumb_func_start sub_08078784 -sub_08078784: @ 0x08078784 - push {lr} - adds r2, r1, #0 - movs r1, #1 - bl sub_0807887C - pop {pc} - - thumb_func_start sub_08078790 -sub_08078790: @ 0x08078790 - push {lr} - adds r2, r1, #0 - movs r1, #2 - bl sub_0807887C - pop {pc} - - thumb_func_start sub_0807879C -sub_0807879C: @ 0x0807879C - push {lr} - movs r1, #7 - movs r2, #0 - bl sub_0807887C - pop {pc} - - thumb_func_start sub_080787A8 -sub_080787A8: @ 0x080787A8 - push {lr} - adds r2, r1, #0 - movs r1, #7 - bl sub_0807887C - pop {pc} - - thumb_func_start sub_080787B4 -sub_080787B4: @ 0x080787B4 - push {lr} - movs r1, #9 - movs r2, #0 - bl sub_0807887C - pop {pc} - - thumb_func_start sub_080787C0 -sub_080787C0: @ 0x080787C0 - push {lr} - movs r1, #0xa - movs r2, #0 - bl sub_0807887C - pop {pc} - - thumb_func_start sub_080787CC -sub_080787CC: @ 0x080787CC - push {lr} - movs r1, #5 - movs r2, #0 - bl sub_0807887C - pop {pc} - - thumb_func_start sub_080787D8 -sub_080787D8: @ 0x080787D8 - push {lr} - movs r1, #8 - movs r2, #0 - bl sub_0807887C - adds r2, r0, #0 - cmp r2, #0 - blt _080787F6 - ldr r0, _080787FC @ =gUnk_03003DF0 - lsls r1, r2, #1 - adds r1, r1, r2 - lsls r1, r1, #2 - adds r1, r1, r0 - movs r0, #0xbe - strb r0, [r1, #0xa] -_080787F6: - adds r0, r2, #0 - pop {pc} - .align 2, 0 -_080787FC: .4byte gUnk_03003DF0 - - thumb_func_start sub_08078800 -sub_08078800: @ 0x08078800 - push {lr} - movs r1, #6 - movs r2, #0 - bl sub_0807887C - adds r2, r0, #0 - cmp r2, #0 - blt _0807881E - ldr r0, _08078824 @ =gUnk_03003DF0 - lsls r1, r2, #1 - adds r1, r1, r2 - lsls r1, r1, #2 - adds r1, r1, r0 - movs r0, #0xbe - strb r0, [r1, #0xa] -_0807881E: - adds r0, r2, #0 - pop {pc} - .align 2, 0 -_08078824: .4byte gUnk_03003DF0 - - thumb_func_start sub_08078828 -sub_08078828: @ 0x08078828 - push {lr} - movs r1, #3 - movs r2, #0 - bl sub_0807887C - adds r2, r0, #0 - cmp r2, #0 - blt _08078846 - ldr r0, _0807884C @ =gUnk_03003DF0 - lsls r1, r2, #1 - adds r1, r1, r2 - lsls r1, r1, #2 - adds r1, r1, r0 - movs r0, #0xbe - strb r0, [r1, #0xa] -_08078846: - adds r0, r2, #0 - pop {pc} - .align 2, 0 -_0807884C: .4byte gUnk_03003DF0 - - thumb_func_start sub_08078850 -sub_08078850: @ 0x08078850 - push {r4, r5, r6, lr} - adds r4, r1, #0 - adds r5, r2, #0 - adds r6, r3, #0 - bl sub_08078904 - adds r2, r0, #0 - cmp r2, #0 - blt _08078876 - ldr r0, _08078878 @ =gUnk_03003DF0 - lsls r1, r2, #1 - adds r1, r1, r2 - lsls r1, r1, #2 - adds r2, r1, r0 - strb r4, [r2, #8] - strb r5, [r2, #0xa] - adds r0, #0xc - adds r1, r1, r0 - str r6, [r1] -_08078876: - pop {r4, r5, r6, pc} - .align 2, 0 -_08078878: .4byte gUnk_03003DF0 - - thumb_func_start sub_0807887C -sub_0807887C: @ 0x0807887C - push {r4, r5, r6, r7, lr} - adds r5, r0, #0 - adds r7, r1, #0 - adds r6, r2, #0 - adds r1, r5, #0 - adds r1, #0x39 - movs r0, #0 - strb r0, [r1] - adds r0, r5, #0 - bl sub_08078904 - adds r4, r0, #0 - cmp r4, #0 - bge _080788A4 - movs r0, #0 - bl sub_08078904 - adds r4, r0, #0 - cmp r4, #0 - blt _080788BA -_080788A4: - ldr r2, _080788DC @ =gUnk_03003DF0 - lsls r1, r4, #1 - adds r1, r1, r4 - lsls r1, r1, #2 - adds r0, r2, #0 - adds r0, #0x10 - adds r0, r1, r0 - str r5, [r0] - adds r1, r1, r2 - strb r7, [r1, #9] - strb r6, [r1, #0xb] -_080788BA: - cmp r6, #0 - beq _080788D6 - movs r0, #6 - movs r1, #9 - movs r2, #6 - bl sub_0805EB00 - cmp r0, #0 - bne _080788D6 - movs r0, #9 - movs r1, #0 - movs r2, #0 - bl CreateObject -_080788D6: - adds r0, r4, #0 - pop {r4, r5, r6, r7, pc} - .align 2, 0 -_080788DC: .4byte gUnk_03003DF0 - - thumb_func_start sub_080788E0 -sub_080788E0: @ 0x080788E0 - push {lr} - bl sub_08078904 - adds r1, r0, #0 - cmp r1, #0 - blt _080788FC - lsls r0, r1, #1 - adds r0, r0, r1 - lsls r0, r0, #2 - ldr r1, _08078900 @ =gUnk_03003DF8 - adds r0, r0, r1 - movs r1, #0xc - bl sub_0801D630 -_080788FC: - pop {pc} - .align 2, 0 -_08078900: .4byte gUnk_03003DF8 - - thumb_func_start sub_08078904 -sub_08078904: @ 0x08078904 - push {lr} - adds r3, r0, #0 - movs r1, #0 - ldr r0, _0807891C @ =gUnk_03003DF0 - adds r2, r0, #0 - adds r2, #0x10 -_08078910: - ldr r0, [r2] - cmp r3, r0 - bne _08078920 - adds r0, r1, #0 - b _0807892C - .align 2, 0 -_0807891C: .4byte gUnk_03003DF0 -_08078920: - adds r2, #0xc - adds r1, #1 - cmp r1, #0x1f - bls _08078910 - movs r0, #1 - rsbs r0, r0, #0 -_0807892C: - pop {pc} - .align 2, 0 - - thumb_func_start sub_08078930 -sub_08078930: @ 0x08078930 - push {lr} - adds r3, r0, #0 - ldr r2, _08078950 @ =gUnk_03003BE0 - ldrb r0, [r2, #2] - cmp r0, #0x1f - bhi _0807894C - lsls r0, r0, #2 - adds r1, r2, #0 - adds r1, #0xc - adds r0, r0, r1 - str r3, [r0] - ldrb r0, [r2, #2] - adds r0, #1 - strb r0, [r2, #2] -_0807894C: - pop {pc} - .align 2, 0 -_08078950: .4byte gUnk_03003BE0 - - thumb_func_start sub_08078954 -sub_08078954: @ 0x08078954 - push {r4, r5, lr} - adds r5, r0, #0 - movs r4, #0 - ldr r0, _08078970 @ =gUnk_03003BE0 - ldrb r1, [r0, #2] - adds r2, r0, #0 - cmp r4, r1 - bhs _080789A6 - ldr r0, [r2, #0xc] - cmp r0, r5 - bne _08078974 - subs r0, r1, #1 - b _0807898C - .align 2, 0 -_08078970: .4byte gUnk_03003BE0 -_08078974: - adds r4, #1 - ldrb r3, [r2, #2] - cmp r4, r3 - bhs _080789A6 - lsls r0, r4, #2 - adds r1, r2, #0 - adds r1, #0xc - adds r0, r0, r1 - ldr r0, [r0] - cmp r0, r5 - bne _08078974 - subs r0, r3, #1 -_0807898C: - strb r0, [r2, #2] - ldrb r0, [r2, #2] - cmp r4, r0 - bhs _080789A6 - lsls r0, r4, #2 - adds r0, #0xc - adds r1, r0, r2 -_0807899A: - ldr r0, [r1, #4] - stm r1!, {r0} - adds r4, #1 - ldrb r0, [r2, #2] - cmp r4, r0 - blo _0807899A -_080789A6: - pop {r4, r5, pc} - - thumb_func_start sub_080789A8 -sub_080789A8: @ 0x080789A8 - push {r4, r5, r6, r7, lr} - mov r7, r8 - push {r7} - ldr r1, _080789BC @ =gUnk_03003BE0 - ldrb r0, [r1] - cmp r0, #0 - beq _080789C0 - ldrb r0, [r1, #1] - b _08078A88 - .align 2, 0 -_080789BC: .4byte gUnk_03003BE0 -_080789C0: - ldr r0, _08078A5C @ =gLinkState - ldr r0, [r0, #0x30] - movs r1, #0x80 - ands r0, r1 - cmp r0, #0 - bne _08078A56 - ldr r0, _08078A60 @ =gLinkEntity - bl sub_080002D0 - adds r4, r0, #0 - cmp r4, #0xf - bls _080789E6 - ldr r0, _08078A64 @ =gUnk_080084BC - adds r1, r4, #0 - subs r1, #0x10 - adds r1, r1, r0 - ldrb r0, [r1] - cmp r0, #0xf - beq _08078A56 -_080789E6: - ldr r0, _08078A5C @ =gLinkState - ldrb r0, [r0, #0x12] - cmp r0, #0x12 - beq _08078A56 - ldr r3, _08078A68 @ =gUnk_03003BE0 - movs r0, #1 - strb r0, [r3] - ldrb r4, [r3, #2] - cmp r4, #0 - beq _08078A2E - ldr r2, _08078A60 @ =gLinkEntity - ldrb r1, [r2, #0x14] - movs r0, #6 - ands r0, r1 - ldr r1, _08078A6C @ =gUnk_0811BFE0 - adds r6, r0, r1 - adds r7, r2, #0 - adds r3, #8 - mov r8, r3 -_08078A0C: - lsls r0, r4, #2 - mov r1, r8 - adds r5, r0, r1 - ldr r1, [r5] - cmp r1, #0 - beq _08078A26 - ldrb r2, [r6] - ldrb r3, [r6, #1] - adds r0, r7, #0 - bl sub_0807A180 - cmp r0, #0 - bne _08078A74 -_08078A26: - subs r4, #1 - ldr r7, _08078A60 @ =gLinkEntity - cmp r4, #0 - bne _08078A0C -_08078A2E: - ldr r0, _08078A60 @ =gLinkEntity - ldrb r1, [r0, #0x14] - movs r2, #6 - ands r2, r1 - ldr r1, _08078A70 @ =gUnk_08007DF4 - adds r2, r2, r1 - movs r1, #0 - ldrsb r1, [r2, r1] - ldrb r2, [r2, #1] - lsls r2, r2, #0x18 - asrs r2, r2, #0x18 - bl sub_0800029C - ldr r4, _08078A68 @ =gUnk_03003BE0 - strh r0, [r4, #4] - movs r1, #6 - bl sub_0806FC24 - cmp r0, #0 - bne _08078A84 -_08078A56: - movs r0, #0 - b _08078A88 - .align 2, 0 -_08078A5C: .4byte gLinkState -_08078A60: .4byte gLinkEntity -_08078A64: .4byte gUnk_080084BC -_08078A68: .4byte gUnk_03003BE0 -_08078A6C: .4byte gUnk_0811BFE0 -_08078A70: .4byte gUnk_08007DF4 -_08078A74: - mov r0, r8 - subs r0, #8 - ldr r1, [r5] - str r1, [r0, #8] - movs r1, #2 - strb r1, [r0, #1] - movs r0, #2 - b _08078A88 -_08078A84: - movs r0, #1 - strb r0, [r4, #1] -_08078A88: - pop {r3} - mov r8, r3 - pop {r4, r5, r6, r7, pc} - .align 2, 0 - - thumb_func_start sub_08078A90 -sub_08078A90: @ 0x08078A90 - push {lr} - adds r1, r0, #0 - ldr r0, _08078AA4 @ =gLinkState - adds r2, r0, #0 - adds r2, #0x8b - ldrb r0, [r2] - cmp r0, #3 - beq _08078AA2 - strb r1, [r2] -_08078AA2: - pop {pc} - .align 2, 0 -_08078AA4: .4byte gLinkState - - thumb_func_start sub_08078AA8 -sub_08078AA8: @ 0x08078AA8 - ldr r3, _08078AB8 @ =gLinkState - movs r2, #0x16 - strb r2, [r3, #0xc] - ldr r2, _08078ABC @ =gUnk_030010A0 - strh r0, [r2, #0x36] - adds r2, #0x35 - strb r1, [r2] - bx lr - .align 2, 0 -_08078AB8: .4byte gLinkState -_08078ABC: .4byte gUnk_030010A0 - - thumb_func_start sub_08078AC0 -sub_08078AC0: @ 0x08078AC0 - push {r4, lr} - ldr r3, _08078AEC @ =gLinkState - mov ip, r3 - movs r3, #0xf - mov r4, ip - strb r3, [r4, #0xc] - mov r3, ip - adds r3, #0x38 - strb r0, [r3] - rsbs r0, r1, #0 - orrs r0, r1 - lsrs r0, r0, #0x1f - mov r1, ip - adds r1, #0x39 - strb r0, [r1] - rsbs r0, r2, #0 - orrs r0, r2 - lsrs r0, r0, #0x1f - adds r1, #1 - strb r0, [r1] - pop {r4, pc} - .align 2, 0 -_08078AEC: .4byte gLinkState - - thumb_func_start sub_08078AF0 -sub_08078AF0: @ 0x08078AF0 - push {r4, lr} - ldr r3, _08078B40 @ =gLinkState - mov ip, r3 - adds r3, #0x38 - movs r4, #0 - strb r1, [r3] - mov r1, ip - adds r1, #0x39 - strb r2, [r1] - adds r1, #1 - strb r4, [r1] - movs r1, #8 - mov r2, ip - strb r1, [r2, #0xc] - adds r2, #0xa8 - movs r1, #0x15 - strb r1, [r2] - mov r1, ip - adds r1, #0x26 - strb r4, [r1] - movs r1, #1 - mov r3, ip - strb r1, [r3, #0x14] - ldr r2, _08078B44 @ =gLinkEntity - str r0, [r2, #0x54] - ldrb r1, [r2, #0x10] - movs r0, #0x7f - ands r0, r1 - strb r0, [r2, #0x10] - ldrb r1, [r2, #0x11] - movs r0, #0x10 - rsbs r0, r0, #0 - ands r0, r1 - movs r1, #2 - orrs r0, r1 - strb r0, [r2, #0x11] - bl sub_0807A108 - pop {r4, pc} - .align 2, 0 -_08078B40: .4byte gLinkState -_08078B44: .4byte gLinkEntity - - thumb_func_start sub_08078B48 -sub_08078B48: @ 0x08078B48 - push {lr} - ldr r1, _08078B80 @ =gLinkState - ldrb r0, [r1, #7] - movs r2, #0x80 - orrs r0, r2 - strb r0, [r1, #7] - ldrb r0, [r1, #0xb] - orrs r0, r2 - strb r0, [r1, #0xb] - ldrb r0, [r1, #0xa] - orrs r2, r0 - strb r2, [r1, #0xa] - adds r2, r1, #0 - adds r2, #0x27 - movs r0, #2 - strb r0, [r2] - adds r0, r1, #0 - adds r0, #0xa8 - ldrb r0, [r0] - subs r0, #4 - adds r2, r1, #0 - cmp r0, #0x19 - bhi _08078BF8 - lsls r0, r0, #2 - ldr r1, _08078B84 @ =_08078B88 - adds r0, r0, r1 - ldr r0, [r0] - mov pc, r0 - .align 2, 0 -_08078B80: .4byte gLinkState -_08078B84: .4byte _08078B88 -_08078B88: @ jump table - .4byte _08078C04 @ case 0 - .4byte _08078C04 @ case 1 - .4byte _08078BF8 @ case 2 - .4byte _08078BF8 @ case 3 - .4byte _08078BF8 @ case 4 - .4byte _08078BF0 @ case 5 - .4byte _08078BF8 @ case 6 - .4byte _08078BF8 @ case 7 - .4byte _08078BF8 @ case 8 - .4byte _08078BF8 @ case 9 - .4byte _08078BF8 @ case 10 - .4byte _08078BF8 @ case 11 - .4byte _08078BF8 @ case 12 - .4byte _08078BF8 @ case 13 - .4byte _08078BF8 @ case 14 - .4byte _08078BF8 @ case 15 - .4byte _08078BF8 @ case 16 - .4byte _08078BF8 @ case 17 - .4byte _08078BF8 @ case 18 - .4byte _08078BF8 @ case 19 - .4byte _08078BF8 @ case 20 - .4byte _08078C04 @ case 21 - .4byte _08078C04 @ case 22 - .4byte _08078BF8 @ case 23 - .4byte _08078BF8 @ case 24 - .4byte _08078C04 @ case 25 -_08078BF0: - ldr r0, [r2, #0x30] - ldr r1, _08078C18 @ =0xFFFBFFFF - ands r0, r1 - str r0, [r2, #0x30] -_08078BF8: - ldr r0, _08078C1C @ =gRoomVars - ldrb r0, [r0, #6] - cmp r0, #0 - bne _08078C04 - movs r0, #1 - strb r0, [r2, #0x1a] -_08078C04: - ldr r0, _08078C20 @ =gLinkEntity - adds r0, #0x3d - movs r1, #0xfe - strb r1, [r0] - adds r1, r2, #0 - adds r1, #0x8a - movs r0, #2 - strb r0, [r1] - pop {pc} - .align 2, 0 -_08078C18: .4byte 0xFFFBFFFF -_08078C1C: .4byte gRoomVars -_08078C20: .4byte gLinkEntity - - thumb_func_start sub_08078C24 -sub_08078C24: @ 0x08078C24 - push {lr} - ldr r3, _08078CAC @ =gLinkState - movs r2, #0 - strb r2, [r3] - strb r2, [r3, #1] - strb r2, [r3, #2] - strb r2, [r3, #3] - strb r2, [r3, #4] - strb r2, [r3, #5] - strb r2, [r3, #6] - strb r2, [r3, #7] - movs r0, #0 - strh r2, [r3, #8] - strb r0, [r3, #0xa] - strb r0, [r3, #0xb] - movs r1, #0x35 - adds r1, r1, r3 - mov ip, r1 - adds r1, r3, #0 - adds r1, #0x36 - strb r0, [r1] - strb r0, [r3, #0xc] - strb r0, [r3, #0xd] - strb r0, [r3, #0xe] - strb r0, [r3, #0x11] - strb r0, [r3, #0x12] - strb r0, [r3, #0x13] - strb r0, [r3, #0x14] - strb r0, [r3, #0x1b] - strb r0, [r3, #0x1e] - strb r0, [r3, #0x1f] - subs r1, #0x16 - strb r0, [r1] - adds r1, #1 - strb r0, [r1] - strh r2, [r3, #0x22] - strh r2, [r3, #0x24] - adds r1, #5 - strb r0, [r1] - str r2, [r3, #0x2c] - adds r1, #0x5a - strh r2, [r1] - mov r1, ip - strb r0, [r1] - str r2, [r3, #0x30] - adds r1, r3, #0 - adds r1, #0x38 - strb r0, [r1] - adds r1, #1 - strb r0, [r1] - adds r1, #1 - strb r0, [r1] - adds r1, #5 - strb r0, [r1] - subs r1, #3 - strb r0, [r1] - movs r0, #1 - rsbs r0, r0, #0 - adds r1, #4 - movs r2, #0x40 - bl _DmaFill32 - ldr r0, _08078CB0 @ =gUnk_03003DF0 - movs r1, #0xc4 - lsls r1, r1, #1 - bl sub_0801D630 - pop {pc} - .align 2, 0 -_08078CAC: .4byte gLinkState -_08078CB0: .4byte gUnk_03003DF0 - - thumb_func_start sub_08078CB4 -sub_08078CB4: @ 0x08078CB4 - push {lr} - ldr r0, _08078CCC @ =gLinkState - ldrb r0, [r0, #5] - subs r0, #3 - lsls r0, r0, #0x18 - lsrs r0, r0, #0x18 - cmp r0, #1 - bhi _08078CC8 - bl sub_08078D60 -_08078CC8: - pop {pc} - .align 2, 0 -_08078CCC: .4byte gLinkState - - thumb_func_start sub_08078CD0 -sub_08078CD0: @ 0x08078CD0 - push {r4, r5, lr} - adds r5, r0, #0 - ldr r4, [r5, #0x70] - ldrh r0, [r5, #0x36] - subs r0, #1 - strh r0, [r4, #0x36] - ldrb r1, [r5, #0x1b] - lsrs r1, r1, #6 - lsls r1, r1, #6 - ldrb r2, [r4, #0x1b] - movs r0, #0x3f - ands r0, r2 - orrs r0, r1 - strb r0, [r4, #0x1b] - adds r0, r5, #0 - adds r0, #0x38 - ldrb r1, [r0] - adds r0, r4, #0 - adds r0, #0x38 - strb r1, [r0] - ldr r1, _08078D28 @ =gUnk_0811C01C - ldr r0, _08078D2C @ =gLinkState - ldr r0, [r0, #0x2c] - ldrb r0, [r0, #0x1e] - adds r0, r0, r1 - ldrb r2, [r0] - ldr r3, _08078D30 @ =gUnk_0811C0B0 - ldrb r1, [r4, #0x1c] - movs r0, #0x30 - ands r0, r1 - lsrs r0, r0, #2 - adds r0, r0, r3 - lsls r2, r2, #1 - ldr r0, [r0] - adds r2, r0, r2 - ldrb r0, [r5, #0x18] - lsls r0, r0, #0x19 - cmp r0, #0 - bge _08078D34 - movs r1, #0 - ldrsb r1, [r2, r1] - ldrh r0, [r5, #0x2e] - subs r0, r0, r1 - b _08078D3C - .align 2, 0 -_08078D28: .4byte gUnk_0811C01C -_08078D2C: .4byte gLinkState -_08078D30: .4byte gUnk_0811C0B0 -_08078D34: - movs r0, #0 - ldrsb r0, [r2, r0] - ldrh r1, [r5, #0x2e] - adds r0, r0, r1 -_08078D3C: - strh r0, [r4, #0x2e] - movs r0, #1 - ldrsb r0, [r2, r0] - ldrh r1, [r5, #0x32] - adds r0, r0, r1 - strh r0, [r4, #0x32] - adds r0, r5, #0 - movs r1, #0 - adds r2, r4, #0 - bl sub_0806FEBC - ldr r1, [r4, #0x50] - cmp r1, #0 - beq _08078D5E - adds r0, r4, #0 - bl CopyPosition -_08078D5E: - pop {r4, r5, pc} - - thumb_func_start sub_08078D60 -sub_08078D60: @ 0x08078D60 - push {r4, r5, r6, lr} - ldr r1, _08078DCC @ =gLinkEntity - ldr r0, [r1, #0x74] - ldr r4, [r0, #0x54] - ldrb r0, [r4, #0xc] - adds r6, r1, #0 - cmp r0, #2 - beq _08078D72 - b _08078E82 -_08078D72: - adds r0, r6, #0 - adds r0, #0x63 - ldrb r0, [r0] - lsls r0, r0, #0x18 - asrs r0, r0, #0x18 - ldrh r1, [r6, #0x36] - adds r0, r0, r1 - strh r0, [r4, #0x36] - ldrb r1, [r6, #0x1b] - lsrs r1, r1, #6 - lsls r1, r1, #6 - ldrb r2, [r4, #0x1b] - movs r0, #0x3f - ands r0, r2 - orrs r0, r1 - strb r0, [r4, #0x1b] - adds r0, r6, #0 - adds r0, #0x38 - ldrb r1, [r0] - adds r0, r4, #0 - adds r0, #0x38 - strb r1, [r0] - adds r0, r6, #0 - adds r0, #0x5a - ldrb r0, [r0] - movs r2, #0x7f - ands r2, r0 - ldr r1, _08078DD0 @ =gUnk_0811C0E8 - ldrb r0, [r4, #0x16] - lsrs r0, r0, #4 - lsls r0, r0, #2 - adds r0, r0, r1 - ldr r1, [r0] - ldrb r0, [r6, #0x18] - lsls r0, r0, #0x19 - cmp r0, #0 - bge _08078DD4 - adds r2, r1, r2 - movs r1, #0 - ldrsb r1, [r2, r1] - ldrh r0, [r6, #0x2e] - subs r0, r0, r1 - strh r0, [r4, #0x2e] - adds r1, r2, #0 - b _08078DE0 - .align 2, 0 -_08078DCC: .4byte gLinkEntity -_08078DD0: .4byte gUnk_0811C0E8 -_08078DD4: - adds r1, r1, r2 - movs r0, #0 - ldrsb r0, [r1, r0] - ldrh r2, [r6, #0x2e] - adds r0, r0, r2 - strh r0, [r4, #0x2e] -_08078DE0: - movs r0, #1 - ldrsb r0, [r1, r0] - ldrh r1, [r4, #0x36] - adds r0, r0, r1 - strh r0, [r4, #0x36] - adds r5, r6, #0 - ldrh r0, [r5, #0x32] - strh r0, [r4, #0x32] - adds r0, r5, #0 - adds r1, r4, #0 - bl ResolveEntityOnTop - ldr r0, _08078E34 @ =gLinkState - ldrb r0, [r0, #5] - cmp r0, #4 - bne _08078E4C - ldrb r1, [r5, #0x19] - lsrs r1, r1, #6 - lsls r1, r1, #6 - ldrb r2, [r4, #0x19] - movs r0, #0x3f - ands r0, r2 - orrs r0, r1 - strb r0, [r4, #0x19] - adds r0, r4, #0 - bl sub_0806F8DC - ldrb r1, [r4, #0x16] - movs r0, #0xf - ands r0, r1 - cmp r0, #2 - bne _08078E82 - ldr r0, _08078E38 @ =gUnk_030010A0 - ldr r1, [r0] - movs r0, #3 - ands r1, r0 - cmp r1, #1 - beq _08078E3C - cmp r1, #3 - beq _08078E44 - b _08078E82 - .align 2, 0 -_08078E34: .4byte gLinkState -_08078E38: .4byte gUnk_030010A0 -_08078E3C: - ldrh r0, [r4, #0x2e] - adds r0, #1 - strh r0, [r4, #0x2e] - b _08078E82 -_08078E44: - ldrh r0, [r4, #0x2e] - subs r0, #1 - strh r0, [r4, #0x2e] - b _08078E82 -_08078E4C: - ldrb r0, [r5, #0x14] - lsrs r0, r0, #1 - cmp r0, #0 - beq _08078E62 - adds r0, r5, #0 - adds r0, #0x29 - ldrb r1, [r0] - lsls r1, r1, #0x1d - lsrs r1, r1, #0x1d - subs r1, #1 - b _08078E6E -_08078E62: - adds r0, r6, #0 - adds r0, #0x29 - ldrb r1, [r0] - lsls r1, r1, #0x1d - lsrs r1, r1, #0x1d - adds r1, #1 -_08078E6E: - adds r3, r4, #0 - adds r3, #0x29 - movs r0, #7 - ands r1, r0 - ldrb r2, [r3] - movs r0, #8 - rsbs r0, r0, #0 - ands r0, r2 - orrs r0, r1 - strb r0, [r3] -_08078E82: - pop {r4, r5, r6, pc} - - thumb_func_start sub_08078E84 -sub_08078E84: @ 0x08078E84 - push {r4, r5, lr} - adds r5, r0, #0 - adds r4, r1, #0 - ldr r0, _08078ED0 @ =gLinkEntity - cmp r4, r0 - bne _08078EAC - adds r0, r5, #0 - bl sub_08079BD8 - adds r0, r4, #0 - adds r0, #0x62 - ldrb r0, [r0] - adds r1, r5, #0 - adds r1, #0x62 - strb r0, [r1] - adds r0, r4, #0 - adds r0, #0x63 - ldrb r0, [r0] - adds r1, #1 - strb r0, [r1] -_08078EAC: - ldr r0, _08078ED4 @ =gUnk_080029B4 - ldrh r2, [r4, #0x12] - lsls r2, r2, #4 - adds r0, #4 - adds r2, r2, r0 - ldrb r1, [r4, #0x1e] - lsls r1, r1, #2 - ldr r0, [r2] - adds r0, r0, r1 - ldrb r0, [r0, #1] - cmp r0, #0 - beq _08078ED8 - adds r0, r4, #0 - movs r1, #1 - adds r2, r5, #0 - bl sub_0806FEBC - b _08078EE2 - .align 2, 0 -_08078ED0: .4byte gLinkEntity -_08078ED4: .4byte gUnk_080029B4 -_08078ED8: - adds r0, r4, #0 - movs r1, #3 - adds r2, r5, #0 - bl sub_0806FEBC -_08078EE2: - pop {r4, r5, pc} - - thumb_func_start sub_08078EE4 -sub_08078EE4: @ 0x08078EE4 - ldr r2, _08078EF4 @ =gLinkEntity - ldr r1, _08078EF8 @ =gLinkState - ldrh r0, [r1, #0x16] - strh r0, [r2, #0x2e] - ldrh r0, [r1, #0x18] - strh r0, [r2, #0x32] - bx lr - .align 2, 0 -_08078EF4: .4byte gLinkEntity -_08078EF8: .4byte gLinkState - - thumb_func_start sub_08078EFC -sub_08078EFC: @ 0x08078EFC - push {lr} - ldr r3, _08078F18 @ =gLinkState - ldrb r2, [r3, #0xc] - cmp r2, #0 - beq _08078F20 - ldr r0, _08078F1C @ =gLinkEntity - movs r1, #0 - strb r2, [r0, #0xc] - strb r1, [r0, #0xd] - strb r1, [r3, #0xc] - bl sub_08070680 - movs r0, #1 - b _08078F22 - .align 2, 0 -_08078F18: .4byte gLinkState -_08078F1C: .4byte gLinkEntity -_08078F20: - movs r0, #0 -_08078F22: - pop {pc} - - thumb_func_start sub_08078F24 -sub_08078F24: @ 0x08078F24 - push {r4, lr} - ldr r4, _08078F38 @ =gLinkState - ldrb r3, [r4, #0xd] - movs r0, #0x80 - ands r0, r3 - cmp r0, #0 - beq _08078F3C - bl sub_08078F60 - b _08078F5A - .align 2, 0 -_08078F38: .4byte gLinkState -_08078F3C: - ldr r2, _08078F5C @ =gSineTable - lsls r0, r3, #4 - adds r0, r0, r2 - ldrh r1, [r0] - adds r0, r4, #0 - adds r0, #0x8c - strh r1, [r0] - lsls r0, r3, #4 - adds r0, #0x80 - adds r0, r0, r2 - ldrh r0, [r0] - rsbs r0, r0, #0 - adds r1, r4, #0 - adds r1, #0x8e - strh r0, [r1] -_08078F5A: - pop {r4, pc} - .align 2, 0 -_08078F5C: .4byte gSineTable - - thumb_func_start sub_08078F60 -sub_08078F60: @ 0x08078F60 - ldr r0, _08078F70 @ =gLinkState - adds r1, r0, #0 - adds r1, #0x8c - movs r2, #0 - strh r2, [r1] - adds r0, #0x8e - strh r2, [r0] - bx lr - .align 2, 0 -_08078F70: .4byte gLinkState - - thumb_func_start sub_08078F74 -sub_08078F74: @ 0x08078F74 - push {lr} - adds r2, r0, #0 - ldr r0, _08078FA4 @ =gArea - ldrb r0, [r0, #0x18] - cmp r0, #3 - bne _08078FAC - ldr r3, _08078FA8 @ =gLinkState - adds r0, r3, #0 - adds r0, #0x35 - ldrb r0, [r0] - cmp r0, #0xff - beq _08078FAC - movs r1, #0 - movs r0, #0x81 - strb r0, [r3, #2] - movs r0, #0x15 - strb r0, [r2, #0xc] - strb r1, [r2, #0xd] - movs r0, #0x80 - lsls r0, r0, #0xa - str r0, [r2, #0x20] - movs r0, #1 - b _08078FAE - .align 2, 0 -_08078FA4: .4byte gArea -_08078FA8: .4byte gLinkState -_08078FAC: - movs r0, #0 -_08078FAE: - pop {pc} - - thumb_func_start sub_08078FB0 -sub_08078FB0: @ 0x08078FB0 - push {r4, r5, r6, lr} - adds r4, r0, #0 - ldr r5, _08078FE0 @ =gLinkState - ldrb r1, [r5, #6] - movs r6, #0x80 - adds r0, r6, #0 - ands r0, r1 - cmp r0, #0 - bne _08078FCA - adds r1, r5, #0 - adds r1, #0x35 - movs r0, #0xff - strb r0, [r1] -_08078FCA: - adds r0, r4, #0 - bl sub_08079064 - ldr r1, [r5, #0x30] - movs r0, #8 - ands r0, r1 - cmp r0, #0 - beq _08078FE4 - movs r2, #0x58 - b _08078FFA - .align 2, 0 -_08078FE0: .4byte gLinkState -_08078FE4: - ands r1, r6 - cmp r1, #0 - beq _08078FEE - movs r2, #0x18 - b _08078FFA -_08078FEE: - ldrh r0, [r5, #8] - lsrs r0, r0, #8 - movs r2, #0xb8 - cmp r0, #7 - bne _08078FFA - movs r2, #0x34 -_08078FFA: - ldr r0, _08079014 @ =gLinkState - adds r3, r0, #0 - ldrb r1, [r0, #8] - cmp r2, r1 - bls _08079040 - ldrb r0, [r4, #0x14] - adds r2, r0, #0 - cmp r2, #4 - bls _08079018 - ldrb r0, [r4, #0x18] - movs r1, #0x40 - orrs r0, r1 - b _08079020 - .align 2, 0 -_08079014: .4byte gLinkState -_08079018: - ldrb r1, [r4, #0x18] - movs r0, #0x41 - rsbs r0, r0, #0 - ands r0, r1 -_08079020: - strb r0, [r4, #0x18] - ldr r0, [r3, #0x30] - movs r1, #0x80 - lsls r1, r1, #0xc - ands r0, r1 - cmp r0, #0 - beq _08079036 - ldrh r1, [r3, #8] - ldrb r0, [r4, #0x14] - adds r2, r1, r0 - b _08079042 -_08079036: - lsls r0, r2, #0x18 - lsrs r0, r0, #0x19 - ldrh r3, [r3, #8] - adds r2, r0, r3 - b _08079042 -_08079040: - ldrh r2, [r0, #8] -_08079042: - ldrh r0, [r4, #0x12] - lsls r0, r0, #8 - adds r1, r4, #0 - adds r1, #0x58 - ldrb r1, [r1] - orrs r0, r1 - cmp r2, r0 - beq _08079062 - lsrs r0, r2, #8 - strh r0, [r4, #0x12] - movs r0, #0xff - ands r2, r0 - adds r0, r4, #0 - adds r1, r2, #0 - bl InitAnimationForceUpdate -_08079062: - pop {r4, r5, r6, pc} - - thumb_func_start sub_08079064 -sub_08079064: @ 0x08079064 - push {r4, r5, r6, lr} - adds r6, r0, #0 - ldr r0, _0807909C @ =gLinkState - ldr r1, [r0, #0x30] - ldr r2, _080790A0 @ =0x00100080 - ands r1, r2 - adds r5, r0, #0 - cmp r1, #0 - bne _080790DE - movs r3, #0 - movs r2, #0 - ldr r1, _080790A4 @ =gUnk_03000B80 -_0807907C: - ldrb r0, [r1, #0xf] - cmp r0, r3 - bls _08079086 - adds r3, r0, #0 - ldrh r4, [r1, #0x10] -_08079086: - adds r1, #0x1c - adds r2, #1 - cmp r2, #3 - bls _0807907C - adds r2, r5, #0 - ldrb r0, [r2, #0xe] - cmp r0, r3 - bhs _080790A8 - strh r4, [r2, #8] - b _080790DE - .align 2, 0 -_0807909C: .4byte gLinkState -_080790A0: .4byte 0x00100080 -_080790A4: .4byte gUnk_03000B80 -_080790A8: - adds r0, r2, #0 - adds r0, #0x26 - ldrb r1, [r0] - movs r0, #0x80 - ands r0, r1 - cmp r0, #0 - beq _080790C0 - ldr r0, _080790BC @ =0x000002BE - strh r0, [r2, #8] - b _080790DE - .align 2, 0 -_080790BC: .4byte 0x000002BE -_080790C0: - ldrh r1, [r5, #8] - movs r0, #0xc1 - lsls r0, r0, #3 - cmp r1, r0 - beq _080790D8 - movs r0, #0x82 - lsls r0, r0, #1 - cmp r1, r0 - beq _080790D8 - ldr r0, _080790E0 @ =0x00000404 - cmp r1, r0 - bne _080790DE -_080790D8: - adds r0, r6, #0 - bl sub_080790E4 -_080790DE: - pop {r4, r5, r6, pc} - .align 2, 0 -_080790E0: .4byte 0x00000404 - - thumb_func_start sub_080790E4 -sub_080790E4: @ 0x080790E4 - push {r4, r5, lr} - adds r4, r0, #0 - ldr r5, _08079128 @ =gLinkState - ldrb r0, [r5, #0xb] - cmp r0, #0 - bne _08079182 - movs r0, #0x10 - bl sub_080793E4 - cmp r0, #0 - beq _0807912C - adds r1, r4, #0 - adds r1, #0x3d - movs r0, #0x14 - strb r0, [r1] - adds r1, #5 - movs r0, #4 - strb r0, [r1] - ldrb r0, [r4, #0x14] - lsls r0, r0, #2 - movs r1, #0x10 - eors r0, r1 - adds r1, r4, #0 - adds r1, #0x3e - strb r0, [r1] - movs r0, #2 - rsbs r0, r0, #0 - bl ModHealth - movs r0, #0x7a - bl PlaySFX - b _08079182 - .align 2, 0 -_08079128: .4byte gLinkState -_0807912C: - ldrb r1, [r5, #6] - movs r0, #0x80 - ands r0, r1 - cmp r0, #0 - bne _08079182 - cmp r1, #0 - bne _08079150 - movs r0, #1 - bl sub_080793E4 - cmp r0, #0 - beq _0807914C - ldrb r0, [r4, #0xf] - cmp r0, #5 - bhi _08079154 - adds r0, #1 -_0807914C: - strb r0, [r4, #0xf] - b _08079182 -_08079150: - subs r0, r1, #1 - strb r0, [r5, #6] -_08079154: - ldr r2, _08079174 @ =gLinkState - ldrb r0, [r4, #0x14] - adds r1, r2, #0 - adds r1, #0x35 - strb r0, [r1] - adds r1, #0x73 - movs r0, #0x19 - strb r0, [r1] - ldr r0, [r2, #0x30] - movs r1, #8 - ands r0, r1 - cmp r0, #0 - beq _0807917C - ldr r0, _08079178 @ =0x0000093C - b _08079180 - .align 2, 0 -_08079174: .4byte gLinkState -_08079178: .4byte 0x0000093C -_0807917C: - movs r0, #0xcf - lsls r0, r0, #2 -_08079180: - strh r0, [r2, #8] -_08079182: - pop {r4, r5, pc} - - thumb_func_start sub_08079184 -sub_08079184: @ 0x08079184 - ldr r0, _08079194 @ =gLinkState - movs r1, #0 - strb r1, [r0, #5] - strb r1, [r0, #1] - ldr r0, _08079198 @ =gLinkEntity - str r1, [r0, #0x74] - bx lr - .align 2, 0 -_08079194: .4byte gLinkState -_08079198: .4byte gLinkEntity - - thumb_func_start sub_0807919C -sub_0807919C: @ 0x0807919C - push {lr} - ldr r0, _080791B0 @ =gLinkState - ldr r0, [r0, #0x30] - movs r1, #0x80 - ands r0, r1 - cmp r0, #0 - bne _080791B4 - bl sub_080791BC - b _080791B8 - .align 2, 0 -_080791B0: .4byte gLinkState -_080791B4: - bl sub_08079258 -_080791B8: - pop {pc} - .align 2, 0 - - thumb_func_start sub_080791BC -sub_080791BC: @ 0x080791BC - ldr r0, _080791CC @ =gLinkEntity - movs r2, #0 - movs r1, #1 - strb r1, [r0, #0xc] - strb r2, [r0, #0xd] - strb r2, [r0, #0xf] - bx lr - .align 2, 0 -_080791CC: .4byte gLinkEntity - - thumb_func_start sub_080791D0 -sub_080791D0: @ 0x080791D0 - push {lr} - ldr r3, _0807920C @ =gLinkState - ldr r0, [r3, #0x30] - movs r1, #0x40 - ands r0, r1 - cmp r0, #0 - bne _080791E8 - ldr r0, _08079210 @ =gLinkEntity - ldrb r1, [r0, #0x18] - movs r2, #3 - orrs r1, r2 - strb r1, [r0, #0x18] -_080791E8: - ldr r0, [r3, #0x30] - movs r1, #0x80 - ands r0, r1 - cmp r0, #0 - bne _08079214 - ldr r2, _08079210 @ =gLinkEntity - adds r2, #0x29 - ldrb r1, [r2] - movs r0, #0x39 - rsbs r0, r0, #0 - ands r0, r1 - movs r1, #8 - orrs r0, r1 - strb r0, [r2] - bl sub_0807921C - b _08079218 - .align 2, 0 -_0807920C: .4byte gLinkState -_08079210: .4byte gLinkEntity -_08079214: - bl sub_08079258 -_08079218: - pop {pc} - .align 2, 0 - - thumb_func_start sub_0807921C -sub_0807921C: @ 0x0807921C - push {r4, lr} - ldr r4, _0807924C @ =gLinkEntity - ldrb r1, [r4, #0x10] - movs r0, #0x80 - orrs r0, r1 - strb r0, [r4, #0x10] - ldrb r0, [r4, #0x18] - movs r1, #3 - orrs r0, r1 - strb r0, [r4, #0x18] - ldr r2, _08079250 @ =gLinkState - ldr r0, [r2, #0x30] - ldr r1, _08079254 @ =0xFECBF6FA - ands r0, r1 - str r0, [r2, #0x30] - bl sub_08079938 - bl sub_080791BC - adds r0, r4, #0 - bl sub_0805E374 - pop {r4, pc} - .align 2, 0 -_0807924C: .4byte gLinkEntity -_08079250: .4byte gLinkState -_08079254: .4byte 0xFECBF6FA - - thumb_func_start sub_08079258 -sub_08079258: @ 0x08079258 - push {r4, lr} - ldr r4, _080792AC @ =gLinkState - ldr r0, [r4, #0x30] - movs r1, #0x40 - ands r0, r1 - ldr r3, _080792B0 @ =gLinkEntity - cmp r0, #0 - bne _08079278 - ldrb r1, [r3, #0x10] - movs r0, #0x80 - orrs r0, r1 - strb r0, [r3, #0x10] - ldrb r0, [r3, #0x18] - movs r1, #3 - orrs r0, r1 - strb r0, [r3, #0x18] -_08079278: - movs r0, #9 - strb r0, [r3, #0xc] - movs r0, #1 - strb r0, [r3, #0xd] - adds r2, r3, #0 - adds r2, #0x3c - ldrb r1, [r2] - movs r0, #0xfb - ands r0, r1 - strb r0, [r2] - movs r2, #0 - ldr r0, _080792B4 @ =0x00000C18 - strh r0, [r4, #8] - ldr r0, [r4, #0x30] - ldr r1, _080792B8 @ =0xFECFFEFA - ands r0, r1 - str r0, [r4, #0x30] - adds r0, r4, #0 - adds r0, #0x26 - strb r2, [r0] - strb r2, [r4, #0xc] - adds r0, r3, #0 - bl sub_0805E374 - pop {r4, pc} - .align 2, 0 -_080792AC: .4byte gLinkState -_080792B0: .4byte gLinkEntity -_080792B4: .4byte 0x00000C18 -_080792B8: .4byte 0xFECFFEFA - - thumb_func_start sub_080792BC -sub_080792BC: @ 0x080792BC - push {r4, lr} - ldr r3, _080792D0 @ =gLinkState - movs r4, #0x13 - strb r4, [r3, #0xc] - adds r3, #0x38 - strb r2, [r3] - ldr r2, _080792D4 @ =gLinkEntity - strh r0, [r2, #0x24] - strb r1, [r2, #0x15] - pop {r4, pc} - .align 2, 0 -_080792D0: .4byte gLinkState -_080792D4: .4byte gLinkEntity - - thumb_func_start sub_080792D8 -sub_080792D8: @ 0x080792D8 - push {r4, r5, r6, lr} - ldr r5, _08079344 @ =gLinkEntity - adds r3, r5, #0 - adds r3, #0x42 - ldrb r0, [r3] - cmp r0, #0 - beq _080793E0 - ldrb r2, [r5, #0xc] - cmp r2, #0xb - beq _08079338 - ldr r0, _08079348 @ =gLinkState - ldrb r1, [r0, #0x1e] - adds r6, r0, #0 - cmp r1, #0 - bne _08079338 - ldrb r0, [r6, #5] - subs r0, #1 - lsls r0, r0, #0x18 - lsrs r0, r0, #0x18 - cmp r0, #3 - bls _08079338 - ldrb r0, [r6, #2] - cmp r0, #0 - bne _08079338 - ldrb r0, [r6, #0x12] - cmp r0, #0xff - beq _08079338 - ldrb r1, [r6, #7] - movs r0, #0x80 - ands r0, r1 - cmp r0, #0 - bne _08079338 - adds r0, r6, #0 - adds r0, #0x26 - ldrb r1, [r0] - movs r0, #0xf - ands r0, r1 - subs r0, #1 - cmp r0, #0 - bgt _08079338 - cmp r2, #3 - beq _08079338 - ldr r1, [r6, #0x30] - movs r0, #0x80 - lsls r0, r0, #0xb - ands r1, r0 - cmp r1, #0 - beq _0807934C -_08079338: - adds r1, r5, #0 - adds r1, #0x42 - movs r0, #0 - strb r0, [r1] - b _080793E0 - .align 2, 0 -_08079344: .4byte gLinkEntity -_08079348: .4byte gLinkState -_0807934C: - cmp r2, #0x1d - bne _0807935E - adds r0, r5, #0 - adds r0, #0x3e - ldrb r0, [r0] - cmp r0, #0x10 - beq _0807935E - strb r1, [r3] - b _080793E0 -_0807935E: - adds r0, r5, #0 - adds r0, #0x42 - ldrb r3, [r0] - movs r1, #0 - ldrsb r1, [r0, r1] - adds r2, r0, #0 - cmp r1, #0 - ble _08079372 - subs r0, r3, #1 - b _08079374 -_08079372: - adds r0, r3, #1 -_08079374: - strb r0, [r2] - ldrb r0, [r2] - cmp r0, #0 - beq _080793E0 - adds r4, r6, #0 - ldrb r0, [r4, #7] - movs r1, #0xdf - ands r1, r0 - strb r1, [r4, #7] - adds r0, r5, #0 - adds r0, #0x3d - ldrb r0, [r0] - lsls r0, r0, #0x18 - asrs r0, r0, #0x18 - cmp r0, #0 - ble _080793CA - adds r0, r4, #0 - adds r0, #0x26 - ldrb r0, [r0] - cmp r0, #0 - bne _080793CA - ldr r0, [r4, #0x30] - movs r1, #0x80 - ands r0, r1 - cmp r0, #0 - bne _080793CA - ldrb r0, [r4, #2] - cmp r0, #0 - bne _080793CA - bl sub_08077B2C - ldr r0, [r4, #0x30] - movs r1, #8 - ands r0, r1 - cmp r0, #0 - bne _080793C4 - movs r0, #0x8a - lsls r0, r0, #1 - strh r0, [r4, #8] - b _080793CA -_080793C4: - movs r0, #0x83 - lsls r0, r0, #3 - strh r0, [r6, #8] -_080793CA: - movs r1, #0xa0 - lsls r1, r1, #2 - adds r4, r5, #0 - adds r4, #0x3e - ldrb r2, [r4] - adds r0, r5, #0 - bl sub_080027EA - ldrb r0, [r4] - bl sub_0807A5B8 -_080793E0: - pop {r4, r5, r6, pc} - .align 2, 0 - - thumb_func_start sub_080793E4 -sub_080793E4: @ 0x080793E4 - push {r4, r5, lr} - adds r5, r0, #0 - ldr r0, _080793FC @ =gLinkState - adds r0, #0x26 - ldrb r0, [r0] - cmp r0, #0 - bne _08079408 - ldr r1, _08079400 @ =gUnk_0811C0F8 - ldr r0, _08079404 @ =gLinkEntity - ldrb r0, [r0, #0x14] - lsrs r0, r0, #1 - b _08079410 - .align 2, 0 -_080793FC: .4byte gLinkState -_08079400: .4byte gUnk_0811C0F8 -_08079404: .4byte gLinkEntity -_08079408: - ldr r1, _08079448 @ =gUnk_0811C0F8 - ldr r0, _0807944C @ =gLinkEntity - ldrb r0, [r0, #0x15] - lsrs r0, r0, #2 -_08079410: - lsls r0, r0, #1 - adds r0, r0, r1 - ldrh r4, [r0] - bl sub_08079778 - cmp r0, #0 - beq _08079454 - ldr r0, _08079450 @ =gLinkState - adds r0, #0x90 - ldrh r0, [r0] - ands r0, r4 - cmp r0, #0 - beq _08079454 - cmp r5, #0 - beq _08079442 - bl sub_0807A500 - ldr r1, _0807944C @ =gLinkEntity - adds r1, #0x38 - ldrb r1, [r1] - adds r2, r5, #0 - bl sub_080002F0 - cmp r0, #0 - beq _08079454 -_08079442: - movs r0, #1 - b _08079456 - .align 2, 0 -_08079448: .4byte gUnk_0811C0F8 -_0807944C: .4byte gLinkEntity -_08079450: .4byte gLinkState -_08079454: - movs r0, #0 -_08079456: - pop {r4, r5, pc} - - thumb_func_start sub_08079458 -sub_08079458: @ 0x08079458 - push {r4, r5, lr} - ldr r4, _08079498 @ =gLinkEntity - movs r1, #0 - movs r0, #0x19 - strb r0, [r4, #0xc] - str r1, [r4, #0x34] - str r1, [r4, #0x20] - adds r0, r4, #0 - adds r0, #0x42 - strb r1, [r0] - bl sub_08078EE4 - ldr r2, _0807949C @ =gLinkState - ldr r1, [r2, #0x30] - movs r0, #0x80 - lsls r0, r0, #0xa - ands r0, r1 - cmp r0, #0 - bne _08079514 - movs r0, #0x80 - lsls r0, r0, #9 - ands r1, r0 - cmp r1, #0 - beq _080794E4 - adds r0, r2, #0 - adds r0, #0x84 - ldr r1, [r0] - ldrh r0, [r1, #0x2e] - strh r0, [r4, #0x2e] - ldrh r0, [r1, #0x32] - strh r0, [r4, #0x32] - b _08079514 - .align 2, 0 -_08079498: .4byte gLinkEntity -_0807949C: .4byte gLinkState -_080794A0: - ldr r2, _080794DC @ =gLinkEntity - ldr r0, [r4] - lsrs r0, r0, #0x1e - adds r1, r2, #0 - adds r1, #0x38 - strb r0, [r1] - ldr r3, _080794E0 @ =gRoomControls - ldr r0, [r4] - movs r1, #0x3f - ands r0, r1 - lsls r0, r0, #4 - ldrh r1, [r3, #6] - adds r0, r0, r1 - adds r0, #8 - strh r0, [r2, #0x2e] - ldr r0, [r4] - movs r1, #0xfc - lsls r1, r1, #4 - ands r0, r1 - lsrs r0, r0, #2 - ldrh r3, [r3, #8] - adds r0, r0, r3 - adds r0, #8 - strh r0, [r2, #0x32] - ldrb r1, [r2, #0x10] - movs r0, #0x80 - orrs r0, r1 - strb r0, [r2, #0x10] - b _08079514 - .align 2, 0 -_080794DC: .4byte gLinkEntity -_080794E0: .4byte gRoomControls -_080794E4: - movs r5, #0 - ldr r1, [r2, #0x40] - movs r0, #1 - rsbs r0, r0, #0 - cmp r1, r0 - beq _08079514 - adds r4, r2, #0 - adds r4, #0x40 -_080794F4: - ldr r1, [r4] - ldrh r0, [r4] - lsrs r1, r1, #0x1e - bl sub_080002E0 - cmp r0, #0xf - bne _080794A0 - adds r4, #4 - adds r5, #1 - cmp r5, #0xf - bhi _08079514 - ldr r1, [r4] - movs r0, #1 - rsbs r0, r0, #0 - cmp r1, r0 - bne _080794F4 -_08079514: - ldr r0, _0807951C @ =gLinkEntity - bl UpdateSpriteForCollisionLayer - pop {r4, r5, pc} - .align 2, 0 -_0807951C: .4byte gLinkEntity - - thumb_func_start sub_08079520 -sub_08079520: @ 0x08079520 - push {lr} - adds r1, r0, #0 - ldr r0, _08079538 @ =gLinkState - ldrb r0, [r0, #0xd] - cmp r0, #0x7f - ble _08079532 - ldrb r0, [r1, #0x14] - lsrs r0, r0, #1 - lsls r0, r0, #3 -_08079532: - strb r0, [r1, #0x15] - pop {pc} - .align 2, 0 -_08079538: .4byte gLinkState - - thumb_func_start sub_0807953C -sub_0807953C: @ 0x0807953C - ldr r1, _08079548 @ =0x00000F38 - ldr r0, _0807954C @ =gLinkState - adds r0, #0x92 - ldrh r0, [r0] - ands r0, r1 - bx lr - .align 2, 0 -_08079548: .4byte 0x00000F38 -_0807954C: .4byte gLinkState - - thumb_func_start sub_08079550 -sub_08079550: @ 0x08079550 - push {r4, r5, r6, r7, lr} - mov r7, sb - mov r6, r8 - push {r6, r7} - ldr r0, _080795A8 @ =gUnk_03004030 - ldrb r0, [r0, #8] - cmp r0, #0 - beq _08079562 - b _080796FC -_08079562: - ldr r2, _080795AC @ =gLinkState - ldrb r0, [r2, #0x1e] - cmp r0, #0 - beq _08079576 - ldr r0, [r2, #0x30] - movs r1, #0x80 - lsls r1, r1, #3 - ands r0, r1 - cmp r0, #0 - beq _080795B4 -_08079576: - adds r0, r2, #0 - adds r0, #0x26 - ldrb r0, [r0] - ldr r1, _080795B0 @ =gLinkEntity - mov r8, r1 - cmp r0, #0 - bne _080795A0 - ldrb r1, [r2, #0x1b] - movs r0, #0x40 - ands r0, r1 - cmp r0, #0 - bne _080795A0 - mov r3, r8 - ldrb r1, [r3, #0x15] - ldrb r2, [r2, #0xd] - cmp r1, r2 - bne _080795A0 - movs r0, #0x80 - ands r0, r1 - cmp r0, #0 - beq _080795B4 -_080795A0: - movs r0, #0 - mov r5, r8 - strb r0, [r5, #0xf] - b _080796FE - .align 2, 0 -_080795A8: .4byte gUnk_03004030 -_080795AC: .4byte gLinkState -_080795B0: .4byte gLinkEntity -_080795B4: - bl sub_08079778 - cmp r0, #0 - bne _080795BE - b _080796FC -_080795BE: - ldr r3, _08079610 @ =gLinkEntity - ldrb r2, [r3, #0x14] - movs r0, #6 - ands r0, r2 - ldr r1, _08079614 @ =gUnk_0811C100 - adds r1, r0, r1 - movs r0, #2 - ands r0, r2 - mov r8, r3 - cmp r0, #0 - beq _0807961C - movs r6, #0x2e - ldrsh r2, [r3, r6] - movs r0, #0 - ldrsb r0, [r1, r0] - adds r2, r2, r0 - ldr r4, _08079618 @ =gRoomControls - ldrh r0, [r4, #6] - subs r2, r2, r0 - asrs r2, r2, #4 - movs r3, #0x3f - ands r2, r3 - mov r0, r8 - movs r5, #0x32 - ldrsh r1, [r0, r5] - ldr r0, [r0, #0x48] - ldrb r5, [r0, #3] - adds r0, r1, r5 - ldrh r4, [r4, #8] - subs r0, r0, r4 - asrs r0, r0, #4 - ands r0, r3 - lsls r7, r0, #6 - orrs r7, r2 - subs r1, r1, r5 - subs r1, r1, r4 - asrs r1, r1, #4 - ands r1, r3 - lsls r4, r1, #6 - orrs r4, r2 - b _0807965E - .align 2, 0 -_08079610: .4byte gLinkEntity -_08079614: .4byte gUnk_0811C100 -_08079618: .4byte gRoomControls -_0807961C: - mov r6, r8 - movs r0, #0x2e - ldrsh r2, [r6, r0] - ldr r0, [r6, #0x48] - ldrb r0, [r0, #4] - mov ip, r0 - adds r0, r2, r0 - ldr r4, _080796EC @ =gRoomControls - ldrh r3, [r4, #6] - mov sb, r3 - subs r0, r0, r3 - asrs r7, r0, #4 - movs r3, #0x3f - ands r7, r3 - movs r5, #0x32 - ldrsh r0, [r6, r5] - ldrb r1, [r1, #1] - lsls r1, r1, #0x18 - asrs r1, r1, #0x18 - adds r0, r0, r1 - ldrh r1, [r4, #8] - subs r0, r0, r1 - asrs r0, r0, #4 - ands r0, r3 - lsls r0, r0, #6 - orrs r7, r0 - mov r6, ip - subs r2, r2, r6 - mov r1, sb - subs r2, r2, r1 - asrs r4, r2, #4 - ands r4, r3 - orrs r4, r0 -_0807965E: - adds r0, r7, #0 - mov r5, r8 - adds r5, #0x38 - ldrb r1, [r5] - bl sub_080002C8 - adds r3, r0, #0 - ldr r6, _080796F0 @ =gUnk_0811C1E8 - mov r1, r8 - ldrb r0, [r1, #0x14] - lsrs r0, r0, #1 - lsls r0, r0, #2 - adds r0, r0, r6 - ldr r1, [r0] - adds r0, r3, #0 - bl sub_08007DD6 - adds r3, r0, #0 - cmp r3, #0 - beq _080796FC - adds r0, r4, #0 - ldrb r1, [r5] - bl sub_080002C8 - adds r3, r0, #0 - mov r5, r8 - ldrb r0, [r5, #0x14] - lsrs r0, r0, #1 - lsls r0, r0, #2 - adds r0, r0, r6 - ldr r1, [r0] - adds r0, r3, #0 - bl sub_08007DD6 - adds r3, r0, #0 - cmp r3, #0 - beq _080796FC - ldr r1, _080796F4 @ =gLinkState - ldrb r2, [r1, #6] - movs r0, #0x80 - orrs r0, r2 - strb r0, [r1, #6] - ldrb r0, [r1, #0x1e] - adds r4, r1, #0 - cmp r0, #0 - bne _080796C8 - ldrb r0, [r5, #0xf] - adds r0, #1 - strb r0, [r5, #0xf] - lsls r0, r0, #0x18 - lsrs r0, r0, #0x18 - cmp r0, #5 - bls _080796FC -_080796C8: - ldr r0, _080796F8 @ =gLinkEntity - subs r1, r3, #1 - movs r2, #0 - strb r1, [r0, #0x14] - movs r1, #4 - strb r1, [r0, #0xc] - strb r2, [r0, #0xd] - ldrb r2, [r0, #0x10] - movs r1, #0x7f - ands r1, r2 - strb r1, [r0, #0x10] - movs r1, #0x81 - strb r1, [r4, #2] - bl sub_08070680 - movs r0, #1 - b _080796FE - .align 2, 0 -_080796EC: .4byte gRoomControls -_080796F0: .4byte gUnk_0811C1E8 -_080796F4: .4byte gLinkState -_080796F8: .4byte gLinkEntity -_080796FC: - movs r0, #0 -_080796FE: - pop {r3, r4} - mov r8, r3 - mov sb, r4 - pop {r4, r5, r6, r7, pc} - .align 2, 0 - - thumb_func_start sub_08079708 -sub_08079708: @ 0x08079708 - push {r4, lr} - ldr r4, _08079740 @ =gLinkState - adds r2, r4, #0 - adds r2, #0xa8 - movs r3, #0 - movs r1, #0x12 - strb r1, [r2] - subs r2, #0x6c - movs r1, #0xff - strb r1, [r2] - ldrb r2, [r0, #0x10] - movs r1, #0x7f - ands r1, r2 - strb r1, [r0, #0x10] - movs r1, #0xa - strb r1, [r0, #0xc] - strb r3, [r0, #0xd] - bl sub_080085B0 - ldr r0, [r4, #0x30] - movs r1, #0x88 - lsls r1, r1, #1 - ands r0, r1 - cmp r0, #0 - bne _0807973E - bl sub_0805E544 -_0807973E: - pop {r4, pc} - .align 2, 0 -_08079740: .4byte gLinkState - - thumb_func_start sub_08079744 -sub_08079744: @ 0x08079744 - push {lr} - adds r2, r0, #0 - ldrh r0, [r2, #0x2e] - movs r1, #0xf - ands r1, r0 - cmp r1, #8 - beq _0807975E - cmp r1, #8 - ble _0807975A - subs r0, #1 - b _0807975C -_0807975A: - adds r0, #1 -_0807975C: - strh r0, [r2, #0x2e] -_0807975E: - ldrh r0, [r2, #0x32] - movs r1, #0xf - ands r1, r0 - cmp r1, #8 - beq _08079774 - cmp r1, #8 - ble _08079770 - subs r0, #1 - b _08079772 -_08079770: - adds r0, #1 -_08079772: - strh r0, [r2, #0x32] -_08079774: - pop {pc} - .align 2, 0 - - thumb_func_start sub_08079778 -sub_08079778: @ 0x08079778 - push {lr} - ldr r0, _08079790 @ =gLinkState - adds r0, #0x26 - ldrb r0, [r0] - cmp r0, #0 - bne _0807979C - ldr r2, _08079794 @ =gUnk_0811C108 - ldr r1, _08079798 @ =gLinkEntity - ldrb r0, [r1, #0x14] - lsrs r0, r0, #1 - b _080797A4 - .align 2, 0 -_08079790: .4byte gLinkState -_08079794: .4byte gUnk_0811C108 -_08079798: .4byte gLinkEntity -_0807979C: - ldr r2, _080797BC @ =gUnk_0811C108 - ldr r1, _080797C0 @ =gLinkEntity - ldrb r0, [r1, #0x15] - lsrs r0, r0, #2 -_080797A4: - lsls r0, r0, #1 - adds r0, r0, r2 - ldrh r2, [r0] - movs r3, #0 - ldrh r0, [r1, #0x2a] - ands r0, r2 - cmp r2, r0 - bne _080797B6 - movs r3, #1 -_080797B6: - adds r0, r3, #0 - pop {pc} - .align 2, 0 -_080797BC: .4byte gUnk_0811C108 -_080797C0: .4byte gLinkEntity - - thumb_func_start sub_080797C4 -sub_080797C4: @ 0x080797C4 - push {lr} - ldr r1, _080797E4 @ =gUnk_0811C110 - ldr r2, _080797E8 @ =gLinkEntity - ldrb r0, [r2, #0x15] - lsrs r0, r0, #3 - lsls r0, r0, #1 - adds r0, r0, r1 - ldrh r1, [r0] - movs r3, #0 - ldrh r0, [r2, #0x2a] - ands r0, r1 - cmp r1, r0 - bne _080797E0 - movs r3, #1 -_080797E0: - adds r0, r3, #0 - pop {pc} - .align 2, 0 -_080797E4: .4byte gUnk_0811C110 -_080797E8: .4byte gLinkEntity - - thumb_func_start sub_080797EC -sub_080797EC: @ 0x080797EC - push {r4, r5, lr} - ldr r4, _08079804 @ =gLinkState - ldr r1, [r4, #0x30] - movs r0, #8 - ands r0, r1 - cmp r0, #0 - beq _0807985C - ldrb r0, [r4, #5] - cmp r0, #0 - beq _0807980C - ldr r5, _08079808 @ =0x00000934 - b _0807991E - .align 2, 0 -_08079804: .4byte gLinkState -_08079808: .4byte 0x00000934 -_0807980C: - ldrb r0, [r4, #3] - cmp r0, #0 - beq _08079818 - movs r5, #0x82 - lsls r5, r5, #3 - b _0807991E -_08079818: - adds r0, r4, #0 - adds r0, #0x21 - ldrb r0, [r0] - cmp r0, #0 - bne _080798A0 - adds r0, r4, #0 - adds r0, #0x26 - ldrb r0, [r0] - movs r5, #0xa4 - lsls r5, r5, #2 - cmp r0, #0 - bne _0807991E - movs r5, #0xb6 - lsls r5, r5, #1 - ldrb r1, [r4, #0x1b] - movs r0, #0x48 - ands r0, r1 - cmp r0, #0 - bne _080798C2 - lsls r0, r1, #0x18 - cmp r0, #0 - bne _080798CE - adds r1, r4, #0 - adds r1, #0xa8 - ldrb r0, [r1] - cmp r0, #0 - bne _08079852 - movs r0, #1 - strb r0, [r1] -_08079852: - ldr r5, _08079858 @ =0x00000404 - b _0807991E - .align 2, 0 -_08079858: .4byte 0x00000404 -_0807985C: - ldrb r0, [r4, #0x1c] - cmp r0, #0 - bne _0807992E - ldrb r0, [r4, #5] - cmp r0, #0 - beq _0807986E - movs r5, #0xd2 - lsls r5, r5, #2 - b _0807991E -_0807986E: - ldrb r0, [r4, #0x1e] - cmp r0, #0 - beq _0807987A - movs r5, #0xa6 - lsls r5, r5, #2 - b _0807991E -_0807987A: - movs r0, #0x80 - lsls r0, r0, #5 - ands r1, r0 - cmp r1, #0 - beq _0807988A - movs r5, #0xe2 - lsls r5, r5, #3 - b _0807991E -_0807988A: - ldrb r0, [r4, #3] - cmp r0, #0 - beq _08079896 - movs r5, #0xb0 - lsls r5, r5, #1 - b _0807991E -_08079896: - adds r0, r4, #0 - adds r0, #0x21 - ldrb r0, [r0] - cmp r0, #0 - beq _080798A6 -_080798A0: - movs r5, #0xa1 - lsls r5, r5, #2 - b _0807991E -_080798A6: - adds r0, r4, #0 - adds r0, #0x26 - ldrb r0, [r0] - movs r5, #0xa4 - lsls r5, r5, #2 - cmp r0, #0 - bne _0807991E - movs r5, #0xb6 - lsls r5, r5, #1 - ldrb r1, [r4, #0x1b] - movs r0, #0x48 - ands r0, r1 - cmp r0, #0 - beq _080798C8 -_080798C2: - movs r0, #0x6c - strb r0, [r4] - b _0807992E -_080798C8: - lsls r0, r1, #0x18 - cmp r0, #0 - beq _080798FC -_080798CE: - movs r0, #0 - bl sub_080793E4 - cmp r0, #0 - beq _0807991E - bl sub_0807A500 - ldr r1, _080798F8 @ =gLinkEntity - adds r1, #0x38 - ldrb r1, [r1] - bl sub_080002E0 - cmp r0, #0xff - beq _0807991E - ldrb r1, [r4, #0x1b] - movs r0, #0xf7 - ands r0, r1 - strb r0, [r4, #0x1b] - movs r5, #0xb8 - lsls r5, r5, #1 - b _0807991E - .align 2, 0 -_080798F8: .4byte gLinkEntity -_080798FC: - adds r1, r4, #0 - adds r1, #0xa8 - ldrb r0, [r1] - cmp r0, #0 - bne _0807990A - movs r0, #1 - strb r0, [r1] -_0807990A: - ldr r0, [r4, #0x30] - movs r1, #0x80 - lsls r1, r1, #0x10 - ands r0, r1 - movs r5, #0x82 - lsls r5, r5, #1 - cmp r0, #0 - beq _0807991E - movs r5, #0xc1 - lsls r5, r5, #3 -_0807991E: - ldr r0, _08079930 @ =gLinkState - strh r5, [r0, #8] - ldrb r0, [r0, #3] - cmp r0, #0 - bne _0807992E - ldr r0, _08079934 @ =gLinkEntity - bl UpdateAnimationSingleFrame -_0807992E: - pop {r4, r5, pc} - .align 2, 0 -_08079930: .4byte gLinkState -_08079934: .4byte gLinkEntity - - thumb_func_start sub_08079938 -sub_08079938: @ 0x08079938 - push {r4, lr} - ldr r3, _08079954 @ =gLinkState - ldr r2, [r3, #0x30] - movs r0, #8 - ands r0, r2 - mov ip, r3 - cmp r0, #0 - beq _080799E4 - ldrb r0, [r3, #5] - cmp r0, #0 - beq _0807995C - ldr r4, _08079958 @ =0x0000092C - b _08079AD8 - .align 2, 0 -_08079954: .4byte gLinkState -_08079958: .4byte 0x0000092C -_0807995C: - mov r0, ip - adds r0, #0x3d - mov r3, ip - ldrb r1, [r3, #0x1c] - ldrb r0, [r0] - orrs r0, r1 - cmp r0, #0 - beq _0807996E - b _08079B14 -_0807996E: - movs r0, #0x80 - lsls r0, r0, #0x12 - ands r0, r2 - cmp r0, #0 - bne _08079A1E - mov r4, ip - ldrb r0, [r4, #3] - cmp r0, #0 - beq _08079988 - ldr r4, _08079984 @ =0x00000414 - b _08079AD8 - .align 2, 0 -_08079984: .4byte 0x00000414 -_08079988: - mov r0, ip - adds r0, #0x21 - ldrb r0, [r0] - cmp r0, #0 - bne _08079A5C - mov r0, ip - adds r0, #0x26 - ldrb r0, [r0] - cmp r0, #0 - bne _08079A6C - mov r0, ip - ldrb r1, [r0, #0x1b] - movs r0, #0x48 - ands r0, r1 - cmp r0, #0 - beq _080799AA - b _08079B14 -_080799AA: - cmp r1, #0 - beq _080799B0 - b _08079AA4 -_080799B0: - mov r1, ip - ldrb r0, [r1, #4] - cmp r0, #0 - beq _080799BA - b _08079B14 -_080799BA: - movs r0, #0x20 - ands r2, r0 - cmp r2, #0 - beq _080799D0 - ldr r0, _080799D8 @ =gArea - ldrb r0, [r0, #0x17] - cmp r0, #4 - bne _080799CC - b _08079AD4 -_080799CC: - cmp r0, #5 - bne _080799DC -_080799D0: - movs r4, #0x80 - lsls r4, r4, #3 - b _08079AD8 - .align 2, 0 -_080799D8: .4byte gArea -_080799DC: - ldr r4, _080799E0 @ =0x000002C2 - b _08079AD8 - .align 2, 0 -_080799E0: .4byte 0x000002C2 -_080799E4: - mov r4, ip - ldrb r0, [r4, #5] - cmp r0, #0 - beq _080799F2 - movs r4, #0xd4 - lsls r4, r4, #2 - b _08079AD8 -_080799F2: - mov r0, ip - adds r0, #0x3d - mov r4, ip - ldrb r1, [r4, #0x1c] - ldrb r0, [r0] - orrs r0, r1 - cmp r0, #0 - beq _08079A04 - b _08079B14 -_08079A04: - movs r0, #0x80 - lsls r0, r0, #0xc - ands r0, r2 - cmp r0, #0 - beq _08079A14 - movs r4, #0x8b - lsls r4, r4, #4 - b _08079AD8 -_08079A14: - movs r0, #0x80 - lsls r0, r0, #0x12 - ands r0, r2 - cmp r0, #0 - beq _08079A24 -_08079A1E: - movs r4, #0x81 - lsls r4, r4, #4 - b _08079AD8 -_08079A24: - mov r1, ip - ldrb r0, [r1, #0x1e] - cmp r0, #0 - beq _08079A32 - movs r4, #0xa6 - lsls r4, r4, #2 - b _08079AD8 -_08079A32: - movs r0, #0x80 - lsls r0, r0, #5 - ands r0, r2 - cmp r0, #0 - beq _08079A44 - ldr r4, _08079A40 @ =0x0000070C - b _08079AD8 - .align 2, 0 -_08079A40: .4byte 0x0000070C -_08079A44: - mov r4, ip - ldrb r0, [r4, #3] - cmp r0, #0 - beq _08079A52 - movs r4, #0xb2 - lsls r4, r4, #1 - b _08079AD8 -_08079A52: - mov r0, ip - adds r0, #0x21 - ldrb r0, [r0] - cmp r0, #0 - beq _08079A62 -_08079A5C: - movs r4, #0xa0 - lsls r4, r4, #2 - b _08079AD8 -_08079A62: - mov r0, ip - adds r0, #0x26 - ldrb r0, [r0] - cmp r0, #0 - beq _08079A72 -_08079A6C: - movs r4, #0xa3 - lsls r4, r4, #2 - b _08079AD8 -_08079A72: - mov r0, ip - ldrb r1, [r0, #0x1b] - movs r0, #0x48 - ands r0, r1 - cmp r0, #0 - bne _08079B14 - movs r0, #0x20 - ands r2, r0 - cmp r2, #0 - beq _08079AA0 - ldr r0, _08079A98 @ =gArea - ldrb r0, [r0, #0x17] - ldr r4, _08079A9C @ =0x000002C2 - cmp r0, #4 - bne _08079AD8 - movs r4, #0xa6 - lsls r4, r4, #3 - b _08079AD8 - .align 2, 0 -_08079A98: .4byte gArea -_08079A9C: .4byte 0x000002C2 -_08079AA0: - cmp r1, #0 - beq _08079AAA -_08079AA4: - movs r4, #0xb4 - lsls r4, r4, #1 - b _08079AD8 -_08079AAA: - ldrb r0, [r3, #4] - cmp r0, #0 - bne _08079B14 - ldr r0, [r3, #0x30] - movs r1, #0x80 - lsls r1, r1, #0x10 - ands r0, r1 - cmp r0, #0 - beq _08079AD4 - ldr r0, _08079ACC @ =gUnk_03000B80 - adds r0, #0x63 - ldrb r0, [r0] - cmp r0, #0 - bne _08079B14 - ldr r4, _08079AD0 @ =0x00000604 - b _08079AD8 - .align 2, 0 -_08079ACC: .4byte gUnk_03000B80 -_08079AD0: .4byte 0x00000604 -_08079AD4: - movs r4, #0x80 - lsls r4, r4, #1 -_08079AD8: - mov r1, ip - strh r4, [r1, #8] - ldrb r0, [r1, #5] - cmp r0, #0 - bne _08079B10 - movs r3, #0 - movs r2, #0 - ldr r1, _08079B18 @ =gUnk_03000B80 -_08079AE8: - ldrb r0, [r1, #0xf] - cmp r0, r3 - bls _08079AF0 - adds r3, r0, #0 -_08079AF0: - adds r1, #0x1c - adds r2, #1 - cmp r2, #3 - bls _08079AE8 - mov r2, ip - ldrb r0, [r2, #0xe] - cmp r0, r3 - blo _08079B14 - lsls r0, r4, #0x18 - lsrs r0, r0, #0x18 - ldrb r3, [r2] - cmp r0, r3 - bne _08079B10 - ldr r0, _08079B1C @ =gLinkEntity - bl UpdateAnimationSingleFrame -_08079B10: - ldr r0, _08079B20 @ =gLinkState - strb r4, [r0] -_08079B14: - pop {r4, pc} - .align 2, 0 -_08079B18: .4byte gUnk_03000B80 -_08079B1C: .4byte gLinkEntity -_08079B20: .4byte gLinkState - - thumb_func_start sub_08079B24 -sub_08079B24: @ 0x08079B24 - push {r4, r5, lr} - ldr r2, _08079B60 @ =gLinkEntity - ldrb r0, [r2, #0xc] - cmp r0, #0xa - beq _08079BD4 - adds r0, r2, #0 - adds r0, #0x45 - ldrb r3, [r0] - cmp r3, #0 - bne _08079BD4 - ldr r4, _08079B64 @ =gLinkState - ldr r1, [r4, #0x30] - ldr r0, _08079B68 @ =0xFEFFFFFF - ands r1, r0 - str r1, [r4, #0x30] - adds r0, r2, #0 - adds r0, #0x42 - strb r3, [r0] - ldrb r0, [r4, #7] - cmp r0, #0 - bne _08079BD4 - adds r0, r4, #0 - adds r0, #0x26 - ldrb r0, [r0] - cmp r0, #0 - beq _08079B6C - bl sub_08079458 - b _08079BC0 - .align 2, 0 -_08079B60: .4byte gLinkEntity -_08079B64: .4byte gLinkState -_08079B68: .4byte 0xFEFFFFFF -_08079B6C: - ldrb r0, [r4, #0x14] - cmp r0, #0 - bne _08079BC0 - movs r3, #0x80 - lsls r3, r3, #5 - ands r3, r1 - cmp r3, #0 - bne _08079BC0 - movs r5, #0x36 - ldrsh r0, [r2, r5] - cmp r0, #0 - bge _08079BA6 - ldr r0, [r2, #0x20] - cmp r0, #0 - ble _08079B8C - str r3, [r2, #0x20] -_08079B8C: - ldrb r1, [r4, #2] - movs r3, #0x41 - adds r0, r3, #0 - ands r0, r1 - cmp r0, #0 - bne _08079BD4 - strb r3, [r4, #2] - movs r0, #0xff - strb r0, [r2, #0x15] - movs r0, #1 - rsbs r0, r0, #0 - strb r0, [r4, #0xd] - b _08079BD4 -_08079BA6: - movs r0, #2 - ands r1, r0 - cmp r1, #0 - bne _08079BC0 - bl sub_08079D48 - cmp r0, #0 - bne _08079BC0 - ldrb r0, [r4, #0xa] - movs r1, #0x10 - orrs r0, r1 - strb r0, [r4, #0xa] - b _08079BD4 -_08079BC0: - ldr r2, _08079BD0 @ =gLinkEntity - ldrb r1, [r2, #0x10] - movs r0, #0x7f - ands r0, r1 - strb r0, [r2, #0x10] - movs r0, #0 - b _08079BD6 - .align 2, 0 -_08079BD0: .4byte gLinkEntity -_08079BD4: - movs r0, #1 -_08079BD6: - pop {r4, r5, pc} - - thumb_func_start sub_08079BD8 -sub_08079BD8: @ 0x08079BD8 - push {r4, r5, lr} - ldr r4, _08079C2C @ =gLinkEntity - ldr r1, [r4, #0x2c] - str r1, [r0, #0x2c] - ldr r1, [r4, #0x30] - str r1, [r0, #0x30] - ldr r1, [r4, #0x34] - str r1, [r0, #0x34] - adds r1, r4, #0 - adds r1, #0x38 - ldrb r2, [r1] - adds r1, r0, #0 - adds r1, #0x38 - strb r2, [r1] - ldrb r3, [r4, #0x19] - lsrs r3, r3, #6 - lsls r3, r3, #6 - ldrb r5, [r0, #0x19] - movs r2, #0x3f - adds r1, r2, #0 - ands r1, r5 - orrs r1, r3 - strb r1, [r0, #0x19] - ldrb r1, [r4, #0x1b] - lsrs r1, r1, #6 - lsls r1, r1, #6 - ldrb r3, [r0, #0x1b] - ands r2, r3 - orrs r2, r1 - strb r2, [r0, #0x1b] - adds r4, #0x29 - ldrb r2, [r4] - lsls r2, r2, #0x1d - adds r0, #0x29 - lsrs r2, r2, #0x1d - ldrb r3, [r0] - movs r1, #8 - rsbs r1, r1, #0 - ands r1, r3 - orrs r1, r2 - strb r1, [r0] - pop {r4, r5, pc} - .align 2, 0 -_08079C2C: .4byte gLinkEntity - - thumb_func_start sub_08079C30 -sub_08079C30: @ 0x08079C30 - push {r4, r5, r6, r7, lr} - mov r7, r8 - push {r7} - adds r6, r0, #0 - ldr r0, _08079C68 @ =gLinkState - ldrb r1, [r0, #0x14] - adds r7, r0, #0 - cmp r1, #0 - beq _08079C44 - b _08079D40 -_08079C44: - ldr r1, [r7, #0x30] - movs r0, #2 - ands r0, r1 - cmp r0, #0 - bne _08079D40 - movs r0, #0x80 - ands r1, r0 - cmp r1, #0 - bne _08079D36 - ldrb r0, [r7, #0x13] - subs r0, #0xd - cmp r0, #0x1d - bhi _08079CE8 - lsls r0, r0, #2 - ldr r1, _08079C6C @ =_08079C70 - adds r0, r0, r1 - ldr r0, [r0] - mov pc, r0 - .align 2, 0 -_08079C68: .4byte gLinkState -_08079C6C: .4byte _08079C70 -_08079C70: @ jump table - .4byte _08079D36 @ case 0 - .4byte _08079D36 @ case 1 - .4byte _08079D36 @ case 2 - .4byte _08079D36 @ case 3 - .4byte _08079CE8 @ case 4 - .4byte _08079CE8 @ case 5 - .4byte _08079CE8 @ case 6 - .4byte _08079D36 @ case 7 - .4byte _08079CE8 @ case 8 - .4byte _08079CE8 @ case 9 - .4byte _08079D36 @ case 10 - .4byte _08079CE8 @ case 11 - .4byte _08079CE8 @ case 12 - .4byte _08079CE8 @ case 13 - .4byte _08079CE8 @ case 14 - .4byte _08079CE8 @ case 15 - .4byte _08079CE8 @ case 16 - .4byte _08079CE8 @ case 17 - .4byte _08079CE8 @ case 18 - .4byte _08079CE8 @ case 19 - .4byte _08079CE8 @ case 20 - .4byte _08079CE8 @ case 21 - .4byte _08079CE8 @ case 22 - .4byte _08079CE8 @ case 23 - .4byte _08079CE8 @ case 24 - .4byte _08079CE8 @ case 25 - .4byte _08079CE8 @ case 26 - .4byte _08079CE8 @ case 27 - .4byte _08079CE8 @ case 28 - .4byte _08079D36 @ case 29 -_08079CE8: - mov r8, r7 - mov r0, r8 - ldrb r4, [r0, #0x12] - movs r2, #1 - rsbs r2, r2, #0 - adds r0, r6, #0 - movs r1, #0 - bl sub_080002B4 - ldr r5, _08079D3C @ =gUnk_08007CAC - adds r1, r5, #0 - bl sub_08007DD6 - cmp r4, r0 - bne _08079D40 - mov r0, r8 - ldrb r4, [r0, #0x12] - adds r0, r6, #0 - movs r1, #2 - movs r2, #0 - bl sub_080002B4 - adds r1, r5, #0 - bl sub_08007DD6 - cmp r4, r0 - bne _08079D40 - ldrb r4, [r7, #0x12] - movs r1, #2 - rsbs r1, r1, #0 - adds r0, r6, #0 - movs r2, #0 - bl sub_080002B4 - adds r1, r5, #0 - bl sub_08007DD6 - cmp r4, r0 - bne _08079D40 -_08079D36: - movs r0, #1 - b _08079D42 - .align 2, 0 -_08079D3C: .4byte gUnk_08007CAC -_08079D40: - movs r0, #0 -_08079D42: - pop {r3} - mov r8, r3 - pop {r4, r5, r6, r7, pc} - - thumb_func_start sub_08079D48 -sub_08079D48: @ 0x08079D48 - push {r4, lr} - ldr r4, _08079D78 @ =gLinkEntity - adds r0, r4, #0 - bl sub_08079C30 - cmp r0, #0 - beq _08079D72 - bl sub_08008B22 - cmp r0, #0 - bne _08079D80 - adds r0, r4, #0 - bl sub_080002B8 - lsls r0, r0, #0x10 - lsrs r0, r0, #0x10 - ldr r1, _08079D7C @ =gUnk_0811C268 - bl sub_08007DD6 - cmp r0, #0 - bne _08079D80 -_08079D72: - movs r0, #1 - b _08079D82 - .align 2, 0 -_08079D78: .4byte gLinkEntity -_08079D7C: .4byte gUnk_0811C268 -_08079D80: - movs r0, #0 -_08079D82: - pop {r4, pc} - - thumb_func_start sub_08079D84 -sub_08079D84: @ 0x08079D84 - push {lr} - ldr r3, _08079DC0 @ =gLinkEntity - ldrb r0, [r3, #0xc] - cmp r0, #1 - beq _08079D92 - cmp r0, #0x18 - bne _08079DBE -_08079D92: - ldr r2, _08079DC4 @ =gLinkState - adds r1, r2, #0 - adds r1, #0x38 - movs r0, #0x9c - strb r0, [r1] - adds r1, #1 - movs r0, #2 - strb r0, [r1] - adds r1, #1 - movs r0, #0x3c - strb r0, [r1] - movs r0, #0xe - strb r0, [r2, #0xc] - adds r1, r3, #0 - adds r1, #0x3d - movs r0, #0x7c - strb r0, [r1] - bl sub_08077B20 - ldr r0, _08079DC8 @ =0x00000193 - bl PlaySFX -_08079DBE: - pop {pc} - .align 2, 0 -_08079DC0: .4byte gLinkEntity -_08079DC4: .4byte gLinkState -_08079DC8: .4byte 0x00000193 - - thumb_func_start sub_08079DCC -sub_08079DCC: @ 0x08079DCC - push {lr} - ldr r0, _08079DFC @ =gLinkEntity - ldrb r0, [r0, #0xc] - cmp r0, #1 - bne _08079DF8 - ldr r3, _08079E00 @ =gLinkState - adds r1, r3, #0 - adds r1, #0x38 - movs r2, #0 - movs r0, #0xa0 - strb r0, [r1] - adds r1, #1 - movs r0, #3 - strb r0, [r1] - adds r0, r3, #0 - adds r0, #0x3a - strb r2, [r0] - movs r0, #0xe - strb r0, [r3, #0xc] - ldr r0, _08079E04 @ =0x00000193 - bl PlaySFX -_08079DF8: - pop {pc} - .align 2, 0 -_08079DFC: .4byte gLinkEntity -_08079E00: .4byte gLinkState -_08079E04: .4byte 0x00000193 - - thumb_func_start sub_08079E08 -sub_08079E08: @ 0x08079E08 - push {r4, lr} - ldr r0, _08079E50 @ =gLinkEntity - ldrh r2, [r0, #0x24] - movs r3, #0x24 - ldrsh r1, [r0, r3] - adds r4, r0, #0 - cmp r1, #0 - beq _08079E2E - ldr r0, _08079E54 @ =gLinkState - adds r0, #0x80 - ldrh r0, [r0] - adds r0, r2, r0 - strh r0, [r4, #0x24] - lsls r0, r0, #0x10 - asrs r0, r0, #0x10 - cmp r0, #0x1f - bgt _08079E2E - movs r0, #0x20 - strh r0, [r4, #0x24] -_08079E2E: - adds r2, r4, #0 - ldrb r1, [r2, #0x15] - movs r0, #4 - ands r0, r1 - cmp r0, #0 - bne _08079E40 - ldrb r0, [r2, #0x15] - bl sub_08079E90 -_08079E40: - adds r0, r4, #0 - bl sub_0800857C - ldrb r0, [r4, #0x15] - bl sub_0807A5B8 - pop {r4, pc} - .align 2, 0 -_08079E50: .4byte gLinkEntity -_08079E54: .4byte gLinkState - - thumb_func_start sub_08079E58 -sub_08079E58: @ 0x08079E58 - push {r4, r5, r6, lr} - adds r6, r0, #0 - adds r4, r1, #0 - ldr r5, _08079E8C @ =gLinkEntity - ldrb r1, [r5, #0x15] - movs r0, #4 - ands r0, r1 - cmp r0, #0 - bne _08079E70 - adds r0, r4, #0 - bl sub_08079E90 -_08079E70: - adds r0, r5, #0 - bl sub_080085B0 - lsls r1, r6, #0x10 - asrs r1, r1, #0x10 - lsls r2, r4, #0x18 - lsrs r2, r2, #0x18 - adds r0, r5, #0 - bl sub_080027EA - adds r0, r4, #0 - bl sub_0807A5B8 - pop {r4, r5, r6, pc} - .align 2, 0 -_08079E8C: .4byte gLinkEntity - - thumb_func_start sub_08079E90 -sub_08079E90: @ 0x08079E90 - push {r4, r5, r6, r7, lr} - mov r7, sb - mov r6, r8 - push {r6, r7} - mov sb, r0 - ldr r1, _08079EBC @ =gLinkEntity - ldrb r2, [r1, #0x15] - movs r0, #8 - ands r0, r2 - adds r7, r1, #0 - cmp r0, #0 - beq _08079ECA - movs r0, #0x10 - ands r0, r2 - cmp r0, #0 - beq _08079EC0 - ldr r0, [r7, #0x48] - ldrb r0, [r0, #2] - rsbs r0, r0, #0 - lsls r0, r0, #0x10 - lsrs r5, r0, #0x10 - b _08079EC4 - .align 2, 0 -_08079EBC: .4byte gLinkEntity -_08079EC0: - ldr r0, [r7, #0x48] - ldrb r5, [r0, #2] -_08079EC4: - ldr r0, [r7, #0x48] - ldrb r4, [r0, #3] - b _08079EDE -_08079ECA: - ldr r0, [r7, #0x48] - ldrb r5, [r0, #4] - cmp r2, #0 - beq _08079ED6 - ldrb r4, [r0, #5] - b _08079EDE -_08079ED6: - ldrb r0, [r0, #5] - rsbs r0, r0, #0 - lsls r0, r0, #0x10 - lsrs r4, r0, #0x10 -_08079EDE: - lsls r0, r5, #0x10 - asrs r0, r0, #0x10 - mov r8, r0 - lsls r0, r4, #0x10 - asrs r6, r0, #0x10 - adds r0, r7, #0 - mov r1, r8 - adds r2, r6, #0 - bl sub_080002CC - adds r1, r0, #0 - mov r0, sb - bl sub_08079F48 - cmp r0, #0 - bne _08079F3C - ldrb r1, [r7, #0x15] - movs r0, #0x10 - ands r0, r1 - cmp r0, #0 - beq _08079F10 - rsbs r0, r6, #0 - lsls r0, r0, #0x10 - lsrs r4, r0, #0x10 - b _08079F18 -_08079F10: - mov r1, r8 - rsbs r0, r1, #0 - lsls r0, r0, #0x10 - lsrs r5, r0, #0x10 -_08079F18: - ldr r0, _08079F38 @ =gLinkEntity - lsls r1, r5, #0x10 - asrs r1, r1, #0x10 - lsls r2, r4, #0x10 - asrs r2, r2, #0x10 - bl sub_080002CC - adds r1, r0, #0 - mov r0, sb - bl sub_08079F48 - cmp r0, #0 - bne _08079F3C - movs r0, #0 - b _08079F3E - .align 2, 0 -_08079F38: .4byte gLinkEntity -_08079F3C: - movs r0, #1 -_08079F3E: - pop {r3, r4} - mov r8, r3 - mov sb, r4 - pop {r4, r5, r6, r7, pc} - .align 2, 0 - - thumb_func_start sub_08079F48 -sub_08079F48: @ 0x08079F48 - push {lr} - ldr r3, _08079F60 @ =gUnk_0811C118 - lsrs r2, r0, #2 - adds r0, r2, r3 - ldrb r0, [r0] - cmp r0, r1 - bne _08079F68 - ldr r0, _08079F64 @ =gLinkEntity - ldrb r1, [r0, #0x15] - adds r1, #4 - b _08079F7C - .align 2, 0 -_08079F60: .4byte gUnk_0811C118 -_08079F64: .4byte gLinkEntity -_08079F68: - adds r0, r2, #1 - adds r0, r0, r3 - ldrb r0, [r0] - cmp r0, r1 - beq _08079F76 - movs r0, #0 - b _08079F84 -_08079F76: - ldr r0, _08079F88 @ =gLinkEntity - ldrb r1, [r0, #0x15] - subs r1, #4 -_08079F7C: - movs r2, #0x1f - ands r1, r2 - strb r1, [r0, #0x15] - movs r0, #1 -_08079F84: - pop {pc} - .align 2, 0 -_08079F88: .4byte gLinkEntity - - thumb_func_start sub_08079F8C -sub_08079F8C: @ 0x08079F8C - push {lr} - ldr r2, _08079FB4 @ =gLinkState - ldr r0, [r2, #0x30] - ldr r1, _08079FB8 @ =0x22189B75 - ands r0, r1 - cmp r0, #0 - bne _08079FB0 - adds r0, r2, #0 - adds r0, #0x3c - ldrb r0, [r0] - cmp r0, #0 - bne _08079FB0 - ldr r0, _08079FBC @ =gLinkEntity - ldrb r0, [r0, #0xc] - cmp r0, #3 - beq _08079FB0 - cmp r0, #0xb - bne _08079FC0 -_08079FB0: - movs r0, #0 - b _08079FC2 - .align 2, 0 -_08079FB4: .4byte gLinkState -_08079FB8: .4byte 0x22189B75 -_08079FBC: .4byte gLinkEntity -_08079FC0: - movs r0, #1 -_08079FC2: - pop {pc} - - thumb_func_start sub_08079FC4 -sub_08079FC4: @ 0x08079FC4 - push {lr} - adds r1, r0, #0 - ldr r0, _08079FD0 @ =gLinkEntity - bl sub_08079FD4 - pop {pc} - .align 2, 0 -_08079FD0: .4byte gLinkEntity - - thumb_func_start sub_08079FD4 -sub_08079FD4: @ 0x08079FD4 - push {r4, r5, r6, lr} - sub sp, #4 - adds r5, r0, #0 - movs r0, #0x2e - ldrsh r2, [r5, r0] - ldr r3, _0807A008 @ =gRoomControls - ldrh r0, [r3, #6] - subs r2, r2, r0 - asrs r2, r2, #4 - movs r4, #0x3f - ands r2, r4 - movs r6, #0x32 - ldrsh r0, [r5, r6] - ldrh r3, [r3, #8] - subs r0, r0, r3 - asrs r0, r0, #4 - ands r0, r4 - lsls r0, r0, #6 - orrs r2, r0 - lsls r2, r2, #1 - ldr r6, _0807A00C @ =gUnk_02027EB4 - cmp r1, #2 - bne _0807A004 - ldr r6, _0807A010 @ =gUnk_0200D654 -_0807A004: - movs r4, #0 - b _0807A028 - .align 2, 0 -_0807A008: .4byte gRoomControls -_0807A00C: .4byte gUnk_02027EB4 -_0807A010: .4byte gUnk_0200D654 -_0807A014: - cmp r1, #0x23 - beq _0807A028 - cmp r1, #0x27 - beq _0807A028 - ldr r0, _0807A04C @ =gUnk_080082DC - subs r1, #0x10 - adds r1, r1, r0 - ldrb r0, [r1] - cmp r0, #0 - beq _0807A046 -_0807A028: - adds r4, #1 - adds r0, r5, #0 - mov r1, sp - bl sub_08004202 - adds r2, r0, #0 - lsrs r0, r2, #1 - adds r0, r6, r0 - ldrb r1, [r0] - cmp r1, #0xe - bls _0807A046 - cmp r1, #0xf - bls _0807A028 - cmp r1, #0x1d - bne _0807A014 -_0807A046: - adds r0, r4, #0 - add sp, #4 - pop {r4, r5, r6, pc} - .align 2, 0 -_0807A04C: .4byte gUnk_080082DC - - thumb_func_start sub_0807A050 -sub_0807A050: @ 0x0807A050 - push {lr} - ldr r3, _0807A088 @ =gLinkState - ldrb r2, [r3, #0xf] - cmp r2, #0 - beq _0807A06A - ldr r0, _0807A08C @ =gTextBox - ldrb r1, [r0] - movs r0, #0x7f - ands r0, r1 - cmp r0, #0 - bne _0807A06A - subs r0, r2, #1 - strb r0, [r3, #0xf] -_0807A06A: - movs r0, #0 - bl sub_0807A094 - adds r1, r0, #0 - ldr r0, _0807A088 @ =gLinkState - adds r0, #0x83 - ldrb r2, [r0] - cmp r1, r2 - beq _0807A084 - strb r1, [r0] - ldr r0, _0807A090 @ =gLinkEntity - bl sub_0801D2B4 -_0807A084: - pop {pc} - .align 2, 0 -_0807A088: .4byte gLinkState -_0807A08C: .4byte gTextBox -_0807A090: .4byte gLinkEntity - - thumb_func_start sub_0807A094 -sub_0807A094: @ 0x0807A094 - push {r4, r5, lr} - adds r3, r0, #0 - movs r2, #0x16 - ldr r0, _0807A0AC @ =gLinkState - ldrb r0, [r0, #0xf] - cmp r0, #0 - beq _0807A0B0 - movs r2, #0x1b - cmp r0, #0x78 - bls _0807A104 - movs r2, #0x1a - b _0807A104 - .align 2, 0 -_0807A0AC: .4byte gLinkState -_0807A0B0: - ldr r0, _0807A0F0 @ =gUnk_02002A40 - adds r1, r0, #0 - adds r1, #0xb2 - ldrb r1, [r1] - adds r5, r0, #0 - cmp r1, #0 - beq _0807A104 - movs r4, #1 - cmp r3, #0 - bne _0807A0D6 - adds r0, #0xc4 - ldrh r1, [r0] - cmp r1, #0xb3 - bhi _0807A0D6 - movs r0, #8 - ands r0, r1 - cmp r0, #0 - beq _0807A0D6 - movs r4, #0 -_0807A0D6: - cmp r4, #0 - beq _0807A104 - adds r0, r5, #0 - adds r0, #0xb2 - ldrb r0, [r0] - cmp r0, #0x30 - beq _0807A102 - cmp r0, #0x30 - bgt _0807A0F4 - cmp r0, #0x2f - beq _0807A0FA - b _0807A102 - .align 2, 0 -_0807A0F0: .4byte gUnk_02002A40 -_0807A0F4: - cmp r0, #0x31 - beq _0807A0FE - b _0807A102 -_0807A0FA: - movs r2, #0x18 - b _0807A104 -_0807A0FE: - movs r2, #0x17 - b _0807A104 -_0807A102: - movs r2, #0x19 -_0807A104: - adds r0, r2, #0 - pop {r4, r5, pc} - - thumb_func_start sub_0807A108 -sub_0807A108: @ 0x0807A108 - push {lr} - ldr r1, _0807A148 @ =gUnk_03004040 - movs r0, #0 - str r0, [r1] - str r0, [r1, #4] - str r0, [r1, #8] - ldr r2, _0807A14C @ =gLinkState - ldr r0, [r2, #0x30] - ldr r1, _0807A150 @ =0xFFBFFFFF - ands r0, r1 - str r0, [r2, #0x30] - ldr r0, _0807A154 @ =gLinkEntity - ldrb r0, [r0, #0xc] - cmp r0, #0x17 - bne _0807A130 - adds r0, r2, #0 - adds r0, #0xa0 - ldrb r0, [r0] - cmp r0, #4 - beq _0807A144 -_0807A130: - adds r1, r2, #0 - adds r1, #0xa0 - ldrb r0, [r1] - subs r0, #4 - lsls r0, r0, #0x18 - lsrs r0, r0, #0x18 - cmp r0, #1 - bhi _0807A144 - movs r0, #1 - strb r0, [r1] -_0807A144: - pop {pc} - .align 2, 0 -_0807A148: .4byte gUnk_03004040 -_0807A14C: .4byte gLinkState -_0807A150: .4byte 0xFFBFFFFF -_0807A154: .4byte gLinkEntity - - thumb_func_start sub_0807A158 -sub_0807A158: @ 0x0807A158 - push {r4, lr} - ldr r4, _0807A178 @ =gUnk_02002A40 - adds r0, r4, #0 - adds r0, #0xb4 - ldrb r0, [r0] - bl sub_0805449C - cmp r0, #0 - bne _0807A17C - adds r0, r4, #0 - adds r0, #0xb5 - ldrb r0, [r0] - bl sub_0805449C - b _0807A17E - .align 2, 0 -_0807A178: .4byte gUnk_02002A40 -_0807A17C: - movs r0, #1 -_0807A17E: - pop {r4, pc} - - thumb_func_start sub_0807A180 -sub_0807A180: @ 0x0807A180 - push {r4, r5, r6, lr} - mov r6, r8 - push {r6} - sub sp, #0x88 - adds r4, r0, #0 - adds r5, r1, #0 - adds r6, r2, #0 - mov r8, r3 - ldr r3, _0807A1B4 @ =0xFFFC0000 - mov r1, sp - movs r2, #0 - bl PositionRelative - mov r1, sp - ldrb r0, [r4, #0x14] - strb r0, [r1, #0x14] - mov r0, sp - adds r1, r5, #0 - adds r2, r6, #0 - mov r3, r8 - bl sub_08003FDE - add sp, #0x88 - pop {r3} - mov r8, r3 - pop {r4, r5, r6, pc} - .align 2, 0 -_0807A1B4: .4byte 0xFFFC0000 - - thumb_func_start sub_0807A1B8 -sub_0807A1B8: @ 0x0807A1B8 - push {r4, lr} - ldr r4, _0807A1DC @ =gLinkEntity - adds r0, r4, #0 - movs r1, #0 - movs r2, #0 - bl sub_0807A1E8 - ldr r1, _0807A1E0 @ =gLinkState - strb r0, [r1, #0x12] - ldr r2, _0807A1E4 @ =gUnk_0811C120 - ldrb r0, [r1, #0x12] - lsls r0, r0, #2 - adds r0, r0, r2 - ldr r1, [r0] - adds r0, r4, #0 - bl _call_via_r1 - pop {r4, pc} - .align 2, 0 -_0807A1DC: .4byte gLinkEntity -_0807A1E0: .4byte gLinkState -_0807A1E4: .4byte gUnk_0811C120 - - thumb_func_start sub_0807A1E8 -sub_0807A1E8: @ 0x0807A1E8 - push {r4, r5, r6, r7, lr} - mov r7, r8 - push {r7} - adds r5, r0, #0 - adds r6, r1, #0 - mov r8, r2 - movs r1, #0x2e - ldrsh r0, [r5, r1] - adds r0, r0, r6 - ldr r2, _0807A288 @ =gRoomControls - ldrh r1, [r2, #6] - subs r1, r0, r1 - lsrs r4, r1, #4 - movs r3, #0x3f - ands r4, r3 - movs r7, #0x32 - ldrsh r1, [r5, r7] - add r1, r8 - ldrh r2, [r2, #8] - subs r2, r1, r2 - asrs r2, r2, #4 - ands r2, r3 - lsls r2, r2, #6 - orrs r4, r2 - ldr r2, _0807A28C @ =gLinkEntity - adds r2, #0x38 - ldrb r2, [r2] - bl GetTileTypeByPos - adds r2, r0, #0 - ldr r1, _0807A290 @ =gLinkState - ldrh r0, [r1, #0x24] - cmp r2, r0 - beq _0807A23A - adds r3, r1, #0 - adds r3, #0x37 - movs r0, #0 - strb r0, [r3] - ldrh r7, [r1, #0x24] - cmp r2, r7 - bne _0807A242 -_0807A23A: - adds r3, r1, #0 - ldrh r0, [r3, #0x22] - cmp r4, r0 - beq _0807A24E -_0807A242: - ldr r0, _0807A290 @ =gLinkState - movs r1, #0 - strh r4, [r0, #0x22] - strh r2, [r0, #0x24] - strb r1, [r0, #0x11] - adds r3, r0, #0 -_0807A24E: - adds r2, r3, #0 - ldrb r1, [r2, #0x11] - adds r0, r1, #0 - cmp r0, #0xff - beq _0807A25C - adds r0, r1, #1 - strb r0, [r2, #0x11] -_0807A25C: - adds r2, #0x37 - ldrb r1, [r2] - adds r0, r1, #0 - cmp r0, #0xff - beq _0807A26A - adds r0, r1, #1 - strb r0, [r2] -_0807A26A: - ldrb r0, [r3, #0x12] - strb r0, [r3, #0x13] - adds r0, r5, #0 - adds r1, r6, #0 - mov r2, r8 - bl sub_080002B4 - adds r2, r0, #0 - ldr r1, _0807A294 @ =gUnk_08007CAC - bl sub_08007DD6 - pop {r3} - mov r8, r3 - pop {r4, r5, r6, r7, pc} - .align 2, 0 -_0807A288: .4byte gRoomControls -_0807A28C: .4byte gLinkEntity -_0807A290: .4byte gLinkState -_0807A294: .4byte gUnk_08007CAC - - thumb_func_start sub_0807A298 -sub_0807A298: @ 0x0807A298 - movs r1, #0 - strb r1, [r0, #0xb] - ldrb r1, [r0, #0x18] - movs r2, #3 - orrs r1, r2 - strb r1, [r0, #0x18] - ldr r2, _0807A2B4 @ =gLinkState - ldr r0, [r2, #0x30] - movs r1, #0x41 - rsbs r1, r1, #0 - ands r0, r1 - str r0, [r2, #0x30] - bx lr - .align 2, 0 -_0807A2B4: .4byte gLinkState - - thumb_func_start sub_0807A2B8 -sub_0807A2B8: @ 0x0807A2B8 - push {lr} - bl sub_08008B22 - cmp r0, #0 - beq _0807A2C6 - movs r0, #1 - b _0807A2EC -_0807A2C6: - ldr r0, _0807A2F0 @ =gLinkState - ldrb r1, [r0, #2] - movs r0, #0xc8 - ands r0, r1 - cmp r0, #0 - bne _0807A2EA - ldr r1, _0807A2F4 @ =gLinkEntity - adds r0, r1, #0 - adds r0, #0x38 - ldrb r0, [r0] - cmp r0, #1 - beq _0807A2EA - adds r0, r1, #0 - movs r1, #0x44 - movs r2, #0 - movs r3, #0 - bl CreateObjectWithParent -_0807A2EA: - movs r0, #0 -_0807A2EC: - pop {pc} - .align 2, 0 -_0807A2F0: .4byte gLinkState -_0807A2F4: .4byte gLinkEntity - - thumb_func_start sub_0807A2F8 -sub_0807A2F8: @ 0x0807A2F8 - push {r4, r5, r6, r7, lr} - mov r7, sl - mov r6, sb - mov r5, r8 - push {r5, r6, r7} - sub sp, #4 - adds r4, r0, #0 - ldr r0, _0807A364 @ =gRoomControls - mov r8, r0 - ldrb r0, [r0, #4] - cmp r0, #8 - bne _0807A312 - b _0807A4F2 -_0807A312: - bl sub_08079778 - orrs r0, r4 - cmp r0, #0 - bne _0807A31E - b _0807A4F2 -_0807A31E: - ldr r7, _0807A368 @ =gLinkEntity - ldrb r1, [r7, #0x14] - movs r0, #2 - ands r0, r1 - cmp r0, #0 - beq _0807A36C - movs r1, #0x2e - ldrsh r2, [r7, r1] - mov r6, r8 - ldrh r0, [r6, #6] - subs r2, r2, r0 - asrs r2, r2, #4 - movs r3, #0x3f - ands r2, r3 - movs r0, #0x32 - ldrsh r1, [r7, r0] - ldr r0, [r7, #0x48] - ldrb r5, [r0, #5] - adds r0, r1, r5 - ldrh r4, [r6, #8] - subs r0, r0, r4 - asrs r0, r0, #4 - ands r0, r3 - lsls r0, r0, #6 - orrs r0, r2 - lsls r7, r0, #1 - subs r1, r1, r5 - subs r1, r1, r4 - asrs r1, r1, #4 - ands r1, r3 - lsls r1, r1, #6 - orrs r2, r1 - lsls r6, r2, #1 - b _0807A3A2 - .align 2, 0 -_0807A364: .4byte gRoomControls -_0807A368: .4byte gLinkEntity -_0807A36C: - movs r1, #0x2e - ldrsh r3, [r7, r1] - ldr r0, [r7, #0x48] - ldrb r6, [r0, #2] - adds r1, r3, r6 - mov r2, r8 - ldrh r5, [r2, #6] - subs r1, r1, r5 - asrs r1, r1, #4 - movs r4, #0x3f - ands r1, r4 - movs r2, #0x32 - ldrsh r0, [r7, r2] - mov r7, r8 - ldrh r2, [r7, #8] - subs r0, r0, r2 - asrs r0, r0, #4 - ands r0, r4 - lsls r0, r0, #6 - orrs r1, r0 - lsls r7, r1, #1 - subs r3, r3, r6 - subs r3, r3, r5 - asrs r3, r3, #4 - ands r3, r4 - orrs r3, r0 - lsls r6, r3, #1 -_0807A3A2: - movs r0, #0 - mov sb, r0 - ldr r1, _0807A3F4 @ =gLinkEntity - mov sl, r1 -_0807A3AA: - movs r2, #0 - mov r8, r2 - mov r0, sl - mov r1, sp - adds r2, r7, #0 - bl sub_08004202 - adds r7, r0, #0 - lsrs r4, r7, #1 - adds r0, r4, #0 - movs r1, #1 - bl sub_080002E0 - cmp r0, #0 - beq _0807A3FC - lsls r0, r4, #0x10 - lsrs r0, r0, #0x10 - mov r1, sl - adds r1, #0x38 - ldrb r1, [r1] - bl sub_080002C8 - lsls r0, r0, #0x10 - lsrs r0, r0, #0x10 - mov r2, sl - ldrb r1, [r2, #0x14] - lsrs r1, r1, #1 - lsls r1, r1, #2 - ldr r2, _0807A3F8 @ =gUnk_0811C1D8 - adds r1, r1, r2 - ldr r1, [r1] - bl sub_08007DD6 - cmp r0, #0 - beq _0807A468 - b _0807A400 - .align 2, 0 -_0807A3F4: .4byte gLinkEntity -_0807A3F8: .4byte gUnk_0811C1D8 -_0807A3FC: - movs r0, #1 - mov r8, r0 -_0807A400: - ldr r5, _0807A444 @ =gLinkEntity - adds r0, r5, #0 - mov r1, sp - adds r2, r6, #0 - bl sub_08004202 - adds r6, r0, #0 - lsrs r4, r6, #1 - adds r0, r4, #0 - movs r1, #1 - bl sub_080002E0 - cmp r0, #0 - beq _0807A44C - lsls r0, r4, #0x10 - lsrs r0, r0, #0x10 - adds r1, r5, #0 - adds r1, #0x38 - ldrb r1, [r1] - bl sub_080002C8 - lsls r0, r0, #0x10 - lsrs r0, r0, #0x10 - ldrb r1, [r5, #0x14] - lsrs r1, r1, #1 - lsls r1, r1, #2 - ldr r2, _0807A448 @ =gUnk_0811C1D8 - adds r1, r1, r2 - ldr r1, [r1] - bl sub_08007DD6 - cmp r0, #0 - beq _0807A468 - b _0807A450 - .align 2, 0 -_0807A444: .4byte gLinkEntity -_0807A448: .4byte gUnk_0811C1D8 -_0807A44C: - movs r0, #1 - add r8, r0 -_0807A450: - mov r1, r8 - cmp r1, #2 - bne _0807A45E - mov r2, sb - cmp r2, #0 - bne _0807A46E - b _0807A4F2 -_0807A45E: - movs r0, #1 - add sb, r0 - mov r1, sb - cmp r1, #1 - bls _0807A3AA -_0807A468: - mov r2, sb - cmp r2, #0 - beq _0807A4F2 -_0807A46E: - bl CheckIsDungeon - cmp r0, #0 - beq _0807A4B0 - ldr r4, _0807A4AC @ =gLinkEntity - adds r0, r4, #0 - mov r1, sp - adds r2, r7, #0 - bl sub_08004202 - adds r7, r0, #0 - lsrs r0, r7, #1 - movs r1, #2 - bl sub_080002E0 - cmp r0, #0 - bne _0807A4F2 - adds r0, r4, #0 - mov r1, sp - adds r2, r6, #0 - bl sub_08004202 - adds r6, r0, #0 - lsrs r0, r6, #1 - movs r1, #2 -_0807A4A0: - bl sub_080002E0 - cmp r0, #0 - beq _0807A4EC - b _0807A4F2 - .align 2, 0 -_0807A4AC: .4byte gLinkEntity -_0807A4B0: - mov r0, sb - cmp r0, #2 - bne _0807A4C2 - ldr r0, _0807A4E8 @ =gLinkEntity - mov r1, sp - adds r2, r7, #0 - bl sub_08004202 - adds r7, r0, #0 -_0807A4C2: - lsrs r0, r7, #1 - movs r1, #1 - bl sub_080002E0 - cmp r0, #0 - bne _0807A4F2 - mov r1, sb - cmp r1, #2 - bne _0807A4E0 - ldr r0, _0807A4E8 @ =gLinkEntity - mov r1, sp - adds r2, r6, #0 - bl sub_08004202 - adds r6, r0, #0 -_0807A4E0: - lsrs r0, r6, #1 - movs r1, #1 - b _0807A4A0 - .align 2, 0 -_0807A4E8: .4byte gLinkEntity -_0807A4EC: - mov r0, sb - adds r0, #1 - b _0807A4F4 -_0807A4F2: - movs r0, #0 -_0807A4F4: - add sp, #4 - pop {r3, r4, r5} - mov r8, r3 - mov sb, r4 - mov sl, r5 - pop {r4, r5, r6, r7, pc} - - thumb_func_start sub_0807A500 -sub_0807A500: @ 0x0807A500 - push {r4, r5, r6, lr} - ldr r6, _0807A518 @ =gLinkEntity - ldrb r0, [r6, #0x14] - lsrs r0, r0, #1 - cmp r0, #1 - beq _0807A574 - cmp r0, #1 - bgt _0807A51C - cmp r0, #0 - beq _0807A526 - b _0807A5B4 - .align 2, 0 -_0807A518: .4byte gLinkEntity -_0807A51C: - cmp r0, #2 - beq _0807A554 - cmp r0, #3 - beq _0807A580 - b _0807A5B4 -_0807A526: - movs r1, #0x2e - ldrsh r0, [r6, r1] - ldr r5, _0807A550 @ =gRoomControls - ldrh r1, [r5, #6] - subs r0, r0, r1 - asrs r0, r0, #4 - movs r4, #0x3f - ands r0, r4 - movs r2, #0x32 - ldrsh r1, [r6, r2] - ldr r3, [r6, #0x48] - ldrb r2, [r3, #5] - subs r1, r1, r2 - movs r2, #1 - ldrsb r2, [r3, r2] - adds r1, r1, r2 - ldrh r2, [r5, #8] - subs r1, r1, r2 - asrs r1, r1, #4 - ands r1, r4 - b _0807A5AA - .align 2, 0 -_0807A550: .4byte gRoomControls -_0807A554: - movs r5, #0x2e - ldrsh r0, [r6, r5] - ldr r4, _0807A570 @ =gRoomControls - ldrh r1, [r4, #6] - subs r0, r0, r1 - asrs r0, r0, #4 - movs r3, #0x3f - ands r0, r3 - ldr r2, [r6, #0x48] - movs r5, #0x32 - ldrsh r1, [r6, r5] - ldrb r5, [r2, #5] - adds r1, r1, r5 - b _0807A59A - .align 2, 0 -_0807A570: .4byte gRoomControls -_0807A574: - ldr r2, [r6, #0x48] - movs r1, #0x2e - ldrsh r0, [r6, r1] - ldrb r5, [r2, #2] - adds r0, r0, r5 - b _0807A58A -_0807A580: - movs r1, #0x2e - ldrsh r0, [r6, r1] - ldr r2, [r6, #0x48] - ldrb r1, [r2, #2] - subs r0, r0, r1 -_0807A58A: - ldr r4, _0807A5B0 @ =gRoomControls - ldrh r1, [r4, #6] - subs r0, r0, r1 - asrs r0, r0, #4 - movs r3, #0x3f - ands r0, r3 - movs r5, #0x32 - ldrsh r1, [r6, r5] -_0807A59A: - ldrb r2, [r2, #1] - lsls r2, r2, #0x18 - asrs r2, r2, #0x18 - adds r1, r1, r2 - ldrh r2, [r4, #8] - subs r1, r1, r2 - asrs r1, r1, #4 - ands r1, r3 -_0807A5AA: - lsls r1, r1, #6 - orrs r0, r1 - b _0807A5B6 - .align 2, 0 -_0807A5B0: .4byte gRoomControls -_0807A5B4: - movs r0, #0 -_0807A5B6: - pop {r4, r5, r6, pc} - - thumb_func_start sub_0807A5B8 -sub_0807A5B8: @ 0x0807A5B8 - push {r4, r5, r6, r7, lr} - mov r7, sb - mov r6, r8 - push {r6, r7} - mov sb, r0 - ldr r2, _0807A5F8 @ =gLinkState - ldrb r3, [r2, #2] - movs r4, #0x80 - adds r0, r4, #0 - ands r0, r3 - cmp r0, #0 - beq _0807A5D2 - b _0807A736 -_0807A5D2: - ldr r1, [r2, #0x30] - movs r0, #0x40 - ands r0, r1 - cmp r0, #0 - beq _0807A5DE - b _0807A736 -_0807A5DE: - adds r0, r2, #0 - adds r0, #0x26 - ldrb r0, [r0] - cmp r0, #0 - beq _0807A5EA - b _0807A736 -_0807A5EA: - adds r0, r1, #0 - ands r0, r4 - cmp r0, #0 - beq _0807A600 - ldr r7, _0807A5FC @ =gUnk_0800833C - b _0807A63A - .align 2, 0 -_0807A5F8: .4byte gLinkState -_0807A5FC: .4byte gUnk_0800833C -_0807A600: - movs r0, #0x80 - lsls r0, r0, #0x11 - ands r1, r0 - cmp r1, #0 - bne _0807A60E - cmp r3, #0 - beq _0807A618 -_0807A60E: - ldr r7, _0807A614 @ =gUnk_0800845C - b _0807A63A - .align 2, 0 -_0807A614: .4byte gUnk_0800845C -_0807A618: - ldrb r0, [r2, #5] - cmp r0, #0 - bne _0807A624 - ldrb r0, [r2, #0x1c] - cmp r0, #0 - beq _0807A62C -_0807A624: - ldr r7, _0807A628 @ =gUnk_080084BC - b _0807A63A - .align 2, 0 -_0807A628: .4byte gUnk_080084BC -_0807A62C: - adds r0, r2, #0 - adds r0, #0xaa - ldrb r0, [r0] - ldr r7, _0807A740 @ =gUnk_080082DC - cmp r0, #0 - beq _0807A63A - ldr r7, _0807A744 @ =gUnk_0800851C -_0807A63A: - mov r0, sb - cmp r0, #0 - beq _0807A6B8 - cmp r0, #0x10 - beq _0807A6B8 - ldr r6, _0807A748 @ =gLinkEntity - ldr r2, [r6, #0x48] - movs r1, #0x2e - ldrsh r0, [r6, r1] - ldrb r3, [r2, #2] - adds r0, r0, r3 - movs r1, #0 - ldrsb r1, [r2, r1] - adds r0, r0, r1 - ldr r1, _0807A74C @ =gRoomControls - mov r8, r1 - ldrh r1, [r1, #6] - subs r5, r0, r1 - movs r3, #0x32 - ldrsh r0, [r6, r3] - movs r1, #1 - ldrsb r1, [r2, r1] - adds r0, r0, r1 - mov r2, r8 - ldrh r1, [r2, #8] - subs r4, r0, r1 - adds r0, r5, #0 - adds r1, r4, #0 - adds r2, r7, #0 - bl sub_080086B4 - cmp r0, #0 - beq _0807A688 - adds r0, r5, #0 - adds r1, r4, #0 - adds r2, r7, #0 - movs r3, #1 - bl sub_0807A750 -_0807A688: - movs r3, #0x2e - ldrsh r1, [r6, r3] - ldr r2, [r6, #0x48] - ldrb r0, [r2, #2] - subs r1, r1, r0 - movs r0, #0 - ldrsb r0, [r2, r0] - adds r1, r1, r0 - mov r2, r8 - ldrh r0, [r2, #6] - subs r5, r1, r0 - adds r0, r5, #0 - adds r1, r4, #0 - adds r2, r7, #0 - bl sub_080086B4 - cmp r0, #0 - beq _0807A6B8 - adds r0, r5, #0 - adds r1, r4, #0 - adds r2, r7, #0 - movs r3, #3 - bl sub_0807A750 -_0807A6B8: - mov r3, sb - cmp r3, #8 - beq _0807A736 - cmp r3, #0x18 - beq _0807A736 - ldr r6, _0807A748 @ =gLinkEntity - movs r0, #0x2e - ldrsh r1, [r6, r0] - ldr r2, [r6, #0x48] - movs r0, #0 - ldrsb r0, [r2, r0] - adds r1, r1, r0 - ldr r3, _0807A74C @ =gRoomControls - mov r8, r3 - ldrh r0, [r3, #6] - subs r5, r1, r0 - movs r1, #0x32 - ldrsh r0, [r6, r1] - ldrb r3, [r2, #5] - adds r0, r0, r3 - movs r1, #1 - ldrsb r1, [r2, r1] - adds r0, r0, r1 - mov r2, r8 - ldrh r1, [r2, #8] - subs r4, r0, r1 - adds r0, r5, #0 - adds r1, r4, #0 - adds r2, r7, #0 - bl sub_080086B4 - cmp r0, #0 - beq _0807A706 - adds r0, r5, #0 - adds r1, r4, #0 - adds r2, r7, #0 - movs r3, #2 - bl sub_0807A750 -_0807A706: - movs r3, #0x32 - ldrsh r1, [r6, r3] - ldr r2, [r6, #0x48] - ldrb r0, [r2, #5] - subs r1, r1, r0 - movs r0, #1 - ldrsb r0, [r2, r0] - adds r1, r1, r0 - mov r2, r8 - ldrh r0, [r2, #8] - subs r4, r1, r0 - adds r0, r5, #0 - adds r1, r4, #0 - adds r2, r7, #0 - bl sub_080086B4 - cmp r0, #0 - beq _0807A736 - adds r0, r5, #0 - adds r1, r4, #0 - adds r2, r7, #0 - movs r3, #0 - bl sub_0807A750 -_0807A736: - pop {r3, r4} - mov r8, r3 - mov sb, r4 - pop {r4, r5, r6, r7, pc} - .align 2, 0 -_0807A740: .4byte gUnk_080082DC -_0807A744: .4byte gUnk_0800851C -_0807A748: .4byte gLinkEntity -_0807A74C: .4byte gRoomControls - - thumb_func_start sub_0807A750 -sub_0807A750: @ 0x0807A750 - push {r4, r5, r6, r7, lr} - mov r7, r8 - push {r7} - adds r7, r0, #0 - adds r6, r1, #0 - mov r8, r2 - adds r5, r3, #0 - movs r0, #1 - ands r0, r5 - cmp r0, #0 - bne _0807A76C - movs r4, #0xf - ands r4, r6 - b _0807A770 -_0807A76C: - movs r4, #0xf - ands r4, r7 -_0807A770: - cmp r4, #0 - bne _0807A776 - b _0807A88E -_0807A776: - cmp r4, #0xf - bne _0807A77C - b _0807A88E -_0807A77C: - lsrs r0, r7, #4 - movs r2, #0x3f - ands r0, r2 - lsrs r1, r6, #4 - ands r1, r2 - lsls r1, r1, #6 - orrs r0, r1 - ldr r1, _0807A7A8 @ =gLinkEntity - adds r1, #0x38 - ldrb r1, [r1] - bl sub_080002E0 - adds r1, r0, #0 - cmp r1, #0xf - bls _0807A7AE - cmp r1, #0xff - beq _0807A7AC - mov r2, r8 - adds r0, r1, r2 - subs r0, #0x10 - ldrb r1, [r0] - b _0807A7AE - .align 2, 0 -_0807A7A8: .4byte gLinkEntity -_0807A7AC: - movs r1, #0xf -_0807A7AE: - ldr r0, _0807A7D8 @ =gUnk_0800823C - lsls r1, r1, #2 - adds r1, r1, r0 - ldr r1, [r1] - movs r0, #1 - ands r0, r5 - cmp r0, #0 - bne _0807A824 - movs r0, #0xf - ands r0, r7 - movs r2, #0x80 - lsls r2, r2, #8 - asrs r2, r0 - cmp r5, #0 - bne _0807A7F4 - ldr r3, _0807A7DC @ =gLinkEntity - cmp r4, #0xe - bgt _0807A7F0 - lsls r0, r4, #1 - adds r1, r0, r1 - b _0807A7E8 - .align 2, 0 -_0807A7D8: .4byte gUnk_0800823C -_0807A7DC: .4byte gLinkEntity -_0807A7E0: - adds r1, #2 - adds r4, #1 - cmp r4, #0xe - bgt _0807A7F0 -_0807A7E8: - ldrh r0, [r1] - ands r0, r2 - cmp r0, #0 - bne _0807A7E0 -_0807A7F0: - subs r4, #1 - b _0807A816 -_0807A7F4: - ldr r3, _0807A800 @ =gLinkEntity - cmp r4, #0 - ble _0807A814 - lsls r0, r4, #1 - adds r1, r0, r1 - b _0807A80C - .align 2, 0 -_0807A800: .4byte gLinkEntity -_0807A804: - subs r1, #2 - subs r4, #1 - cmp r4, #0 - ble _0807A814 -_0807A80C: - ldrh r0, [r1] - ands r0, r2 - cmp r0, #0 - bne _0807A804 -_0807A814: - adds r4, #1 -_0807A816: - movs r0, #0xf - ands r0, r6 - subs r0, r4, r0 - ldrh r1, [r3, #0x32] - adds r0, r0, r1 - strh r0, [r3, #0x32] - b _0807A88E -_0807A824: - movs r3, #0xf - ands r6, r3 - lsls r0, r6, #1 - adds r0, r0, r1 - ldrh r2, [r0] - cmp r5, #1 - bne _0807A85C - subs r0, r3, r4 - lsrs r2, r0 - ldr r3, _0807A858 @ =gLinkEntity - cmp r4, #0 - ble _0807A854 - ands r5, r2 - cmp r5, #0 - beq _0807A854 - movs r1, #1 -_0807A844: - lsrs r2, r2, #1 - subs r4, #1 - cmp r4, #0 - ble _0807A854 - adds r0, r2, #0 - ands r0, r1 - cmp r0, #0 - bne _0807A844 -_0807A854: - adds r4, #1 - b _0807A882 - .align 2, 0 -_0807A858: .4byte gLinkEntity -_0807A85C: - lsls r2, r4 - ldr r3, _0807A86C @ =gLinkEntity - cmp r4, #0xe - bgt _0807A880 - movs r1, #0x80 - lsls r1, r1, #8 - b _0807A878 - .align 2, 0 -_0807A86C: .4byte gLinkEntity -_0807A870: - lsls r2, r2, #1 - adds r4, #1 - cmp r4, #0xe - bgt _0807A880 -_0807A878: - adds r0, r2, #0 - ands r0, r1 - cmp r0, #0 - bne _0807A870 -_0807A880: - subs r4, #1 -_0807A882: - movs r0, #0xf - ands r0, r7 - subs r0, r4, r0 - ldrh r2, [r3, #0x2e] - adds r0, r0, r2 - strh r0, [r3, #0x2e] -_0807A88E: - pop {r3} - mov r8, r3 - pop {r4, r5, r6, r7, pc} - - thumb_func_start sub_0807A894 -sub_0807A894: @ 0x0807A894 - push {lr} - ldrb r1, [r0, #0x15] - cmp r1, #8 - beq _0807A8BA - cmp r1, #8 - bgt _0807A8A6 - cmp r1, #0 - beq _0807A8B0 - b _0807A8C8 -_0807A8A6: - cmp r1, #0x10 - beq _0807A8B6 - cmp r1, #0x18 - beq _0807A8C0 - b _0807A8C8 -_0807A8B0: - movs r2, #8 - rsbs r2, r2, #0 - b _0807A8CA -_0807A8B6: - movs r2, #5 - b _0807A8CA -_0807A8BA: - movs r2, #0 - movs r1, #8 - b _0807A8CC -_0807A8C0: - movs r2, #0 - movs r1, #8 - rsbs r1, r1, #0 - b _0807A8CC -_0807A8C8: - movs r2, #0 -_0807A8CA: - movs r1, #0 -_0807A8CC: - bl sub_080002B4 - pop {pc} - .align 2, 0 - - thumb_func_start nullsub_505 -nullsub_505: @ 0x0807A8D4 - bx lr - .align 2, 0 - - thumb_func_start sub_0807A8D8 -sub_0807A8D8: @ 0x0807A8D8 - push {r4, r5, r6, r7, lr} - mov r7, sb - mov r6, r8 - push {r6, r7} - adds r5, r0, #0 - ldr r0, _0807AA5C @ =gLinkState - ldr r0, [r0, #0x30] - movs r1, #0x80 - ands r0, r1 - cmp r0, #0 - beq _0807A8F0 - b _0807A9F6 -_0807A8F0: - movs r1, #0x2e - ldrsh r0, [r5, r1] - ldr r7, _0807AA60 @ =gRoomControls - ldrh r1, [r7, #6] - subs r0, r0, r1 - asrs r0, r0, #4 - movs r6, #0x3f - ands r0, r6 - movs r2, #0x32 - ldrsh r1, [r5, r2] - ldrh r2, [r7, #8] - adds r2, #1 - subs r1, r1, r2 - asrs r1, r1, #4 - ands r1, r6 - lsls r1, r1, #6 - orrs r0, r1 - ldr r1, _0807AA64 @ =gLinkEntity - adds r1, #0x38 - mov sb, r1 - ldrb r1, [r1] - bl sub_080002EC - adds r4, r0, #0 - movs r0, #0x20 - mov r8, r0 - ands r4, r0 - cmp r4, #0 - beq _0807A94E - movs r2, #0x2e - ldrsh r1, [r5, r2] - ldrh r0, [r7, #6] - subs r1, r1, r0 - asrs r1, r1, #4 - ands r1, r6 - movs r2, #0x32 - ldrsh r0, [r5, r2] - ldrh r2, [r7, #8] - adds r2, #1 - subs r0, r0, r2 - asrs r0, r0, #4 - ands r0, r6 - lsls r0, r0, #6 - orrs r1, r0 - adds r0, r5, #0 - bl sub_0807AAF8 -_0807A94E: - movs r1, #0x2e - ldrsh r0, [r5, r1] - ldrh r1, [r7, #6] - subs r1, #2 - subs r0, r0, r1 - asrs r0, r0, #4 - ands r0, r6 - movs r2, #0x32 - ldrsh r1, [r5, r2] - ldrh r2, [r7, #8] - subs r1, r1, r2 - asrs r1, r1, #4 - ands r1, r6 - lsls r1, r1, #6 - orrs r0, r1 - mov r2, sb - ldrb r1, [r2] - bl sub_080002EC - adds r4, r0, #0 - mov r0, r8 - ands r4, r0 - cmp r4, #0 - beq _0807A9A2 - movs r2, #0x2e - ldrsh r1, [r5, r2] - ldrh r0, [r7, #6] - subs r0, #2 - subs r1, r1, r0 - asrs r1, r1, #4 - ands r1, r6 - movs r2, #0x32 - ldrsh r0, [r5, r2] - ldrh r2, [r7, #8] - subs r0, r0, r2 - asrs r0, r0, #4 - ands r0, r6 - lsls r0, r0, #6 - orrs r1, r0 - adds r0, r5, #0 - bl sub_0807AAF8 -_0807A9A2: - movs r1, #0x2e - ldrsh r0, [r5, r1] - ldrh r1, [r7, #6] - adds r1, #2 - subs r0, r0, r1 - asrs r0, r0, #4 - ands r0, r6 - movs r2, #0x32 - ldrsh r1, [r5, r2] - ldrh r2, [r7, #8] - subs r1, r1, r2 - asrs r1, r1, #4 - ands r1, r6 - lsls r1, r1, #6 - orrs r0, r1 - mov r2, sb - ldrb r1, [r2] - bl sub_080002EC - adds r4, r0, #0 - mov r0, r8 - ands r4, r0 - cmp r4, #0 - beq _0807A9F6 - movs r2, #0x2e - ldrsh r1, [r5, r2] - ldrh r0, [r7, #6] - adds r0, #2 - subs r1, r1, r0 - asrs r1, r1, #4 - ands r1, r6 - movs r2, #0x32 - ldrsh r0, [r5, r2] - ldrh r2, [r7, #8] - subs r0, r0, r2 - asrs r0, r0, #4 - ands r0, r6 - lsls r0, r0, #6 - orrs r1, r0 - adds r0, r5, #0 - bl sub_0807AAF8 -_0807A9F6: - movs r1, #0x2e - ldrsh r0, [r5, r1] - ldr r7, _0807AA60 @ =gRoomControls - ldrh r1, [r7, #6] - subs r0, r0, r1 - asrs r0, r0, #4 - movs r6, #0x3f - ands r0, r6 - movs r2, #0x32 - ldrsh r1, [r5, r2] - ldrh r2, [r7, #8] - subs r1, r1, r2 - asrs r1, r1, #4 - ands r1, r6 - lsls r1, r1, #6 - orrs r0, r1 - ldr r1, _0807AA64 @ =gLinkEntity - adds r1, #0x38 - ldrb r1, [r1] - bl sub_080002EC - adds r4, r0, #0 - movs r0, #0x20 - ands r0, r4 - cmp r0, #0 - beq _0807AA4C - movs r0, #0x2e - ldrsh r1, [r5, r0] - ldrh r0, [r7, #6] - subs r1, r1, r0 - asrs r1, r1, #4 - ands r1, r6 - movs r2, #0x32 - ldrsh r0, [r5, r2] - ldrh r2, [r7, #8] - subs r0, r0, r2 - asrs r0, r0, #4 - ands r0, r6 - lsls r0, r0, #6 - orrs r1, r0 - adds r0, r5, #0 - bl sub_0807AAF8 -_0807AA4C: - movs r0, #2 - ands r0, r4 - cmp r0, #0 - beq _0807AA68 - adds r0, r5, #0 - bl sub_0807AABC - b _0807AA76 - .align 2, 0 -_0807AA5C: .4byte gLinkState -_0807AA60: .4byte gRoomControls -_0807AA64: .4byte gLinkEntity -_0807AA68: - movs r0, #4 - ands r0, r4 - cmp r0, #0 - beq _0807AA76 - adds r0, r5, #0 - bl sub_0807AA80 -_0807AA76: - pop {r3, r4} - mov r8, r3 - mov sb, r4 - pop {r4, r5, r6, r7, pc} - .align 2, 0 - - thumb_func_start sub_0807AA80 -sub_0807AA80: @ 0x0807AA80 - push {lr} - adds r3, r0, #0 - ldr r0, _0807AAB8 @ =gLinkState - ldr r0, [r0, #0x30] - movs r1, #0x40 - ands r0, r1 - cmp r0, #0 - bne _0807AAB6 - adds r0, r3, #0 - adds r0, #0x38 - movs r1, #2 - strb r1, [r0] - movs r1, #0x36 - ldrsh r0, [r3, r1] - cmp r0, #0 - bne _0807AAB6 - ldrb r2, [r3, #0x1b] - movs r1, #0x3f - adds r0, r1, #0 - ands r0, r2 - movs r2, #0x40 - orrs r0, r2 - strb r0, [r3, #0x1b] - ldrb r0, [r3, #0x19] - ands r1, r0 - orrs r1, r2 - strb r1, [r3, #0x19] -_0807AAB6: - pop {pc} - .align 2, 0 -_0807AAB8: .4byte gLinkState - - thumb_func_start sub_0807AABC -sub_0807AABC: @ 0x0807AABC - push {lr} - adds r3, r0, #0 - ldr r0, _0807AAF4 @ =gLinkState - ldr r0, [r0, #0x30] - movs r1, #0x40 - ands r0, r1 - cmp r0, #0 - bne _0807AAF2 - adds r0, r3, #0 - adds r0, #0x38 - movs r1, #1 - strb r1, [r0] - movs r1, #0x36 - ldrsh r0, [r3, r1] - cmp r0, #0 - bne _0807AAF2 - ldrb r2, [r3, #0x1b] - movs r1, #0x3f - adds r0, r1, #0 - ands r0, r2 - movs r2, #0x80 - orrs r0, r2 - strb r0, [r3, #0x1b] - ldrb r0, [r3, #0x19] - ands r1, r0 - orrs r1, r2 - strb r1, [r3, #0x19] -_0807AAF2: - pop {pc} - .align 2, 0 -_0807AAF4: .4byte gLinkState - - thumb_func_start sub_0807AAF8 -sub_0807AAF8: @ 0x0807AAF8 - push {r4, lr} - adds r3, r0, #0 - adds r2, r1, #0 - movs r1, #0x36 - ldrsh r0, [r3, r1] - cmp r0, #0 - bne _0807AB3C - adds r0, r3, #0 - adds r0, #0x38 - ldrb r0, [r0] - lsls r0, r0, #0x1e - orrs r2, r0 - movs r3, #0 - ldr r0, _0807AB40 @ =gLinkState - ldr r1, [r0, #0x40] - adds r4, r0, #0 - cmp r1, r2 - beq _0807AB32 - adds r1, r4, #0 - adds r1, #0x40 -_0807AB20: - ldr r0, [r1] - stm r1!, {r2} - adds r2, r0, #0 - adds r3, #1 - cmp r3, #0xe - bhi _0807AB32 - ldr r0, [r1] - cmp r0, r2 - bne _0807AB20 -_0807AB32: - lsls r0, r3, #2 - adds r1, r4, #0 - adds r1, #0x40 - adds r0, r0, r1 - str r2, [r0] -_0807AB3C: - pop {r4, pc} - .align 2, 0 -_0807AB40: .4byte gLinkState - - thumb_func_start sub_0807AB44 -sub_0807AB44: @ 0x0807AB44 - push {r4, r5, r6, r7, lr} - mov r7, sl - mov r6, sb - mov r5, r8 - push {r5, r6, r7} - adds r6, r0, #0 - adds r7, r1, #0 - mov r8, r2 - movs r1, #0x2e - ldrsh r0, [r6, r1] - adds r0, r0, r7 - ldr r2, _0807ABF0 @ =gRoomControls - mov sb, r2 - ldrh r1, [r2, #6] - subs r0, r0, r1 - asrs r0, r0, #4 - movs r3, #0x3f - mov sl, r3 - ands r0, r3 - movs r5, #0x32 - ldrsh r1, [r6, r5] - add r1, r8 - ldrh r2, [r2, #8] - subs r1, r1, r2 - asrs r1, r1, #4 - ands r1, r3 - lsls r1, r1, #6 - orrs r0, r1 - adds r1, r6, #0 - adds r1, #0x38 - ldrb r1, [r1] - bl GetTileType - movs r1, #0xb - bl sub_0806FC50 - adds r5, r0, #0 - cmp r5, #0 - beq _0807AC44 - ldrh r0, [r5, #6] - cmp r0, #0x76 - bne _0807ABF4 - movs r0, #0x2a - movs r1, #1 - movs r2, #0 - bl CreateObject - adds r4, r0, #0 - cmp r4, #0 - beq _0807AC44 - lsls r2, r7, #0x10 - mov r0, r8 - lsls r3, r0, #0x10 - adds r0, r6, #0 - adds r1, r4, #0 - bl PositionRelative - adds r0, r4, #0 - bl sub_08004168 - ldrh r0, [r5, #6] - movs r2, #0x2e - ldrsh r1, [r4, r2] - mov r3, sb - ldrh r2, [r3, #6] - subs r1, r1, r2 - asrs r1, r1, #4 - mov r5, sl - ands r1, r5 - movs r3, #0x32 - ldrsh r2, [r4, r3] - mov r5, sb - ldrh r3, [r5, #8] - subs r2, r2, r3 - asrs r2, r2, #4 - mov r3, sl - ands r2, r3 - lsls r2, r2, #6 - orrs r1, r2 - adds r2, r4, #0 - adds r2, #0x38 - ldrb r2, [r2] - bl sub_0807B7D8 - b _0807AC44 - .align 2, 0 -_0807ABF0: .4byte gRoomControls -_0807ABF4: - movs r0, #0x2a - movs r1, #2 - movs r2, #0 - bl CreateObject - adds r4, r0, #0 - cmp r4, #0 - beq _0807AC44 - lsls r2, r7, #0x10 - mov r0, r8 - lsls r3, r0, #0x10 - adds r0, r6, #0 - adds r1, r4, #0 - bl PositionRelative - str r5, [r4, #0x54] - ldr r0, _0807AC50 @ =0x0000404F - movs r2, #0x2e - ldrsh r1, [r4, r2] - mov r3, sb - ldrh r2, [r3, #6] - subs r1, r1, r2 - asrs r1, r1, #4 - mov r5, sl - ands r1, r5 - movs r3, #0x32 - ldrsh r2, [r4, r3] - mov r5, sb - ldrh r3, [r5, #8] - subs r2, r2, r3 - asrs r2, r2, #4 - mov r3, sl - ands r2, r3 - lsls r2, r2, #6 - orrs r1, r2 - adds r2, r4, #0 - adds r2, #0x38 - ldrb r2, [r2] - bl SetTile -_0807AC44: - pop {r3, r4, r5} - mov r8, r3 - mov sb, r4 - mov sl, r5 - pop {r4, r5, r6, r7, pc} - .align 2, 0 -_0807AC50: .4byte 0x0000404F - - thumb_func_start sub_0807AC54 -sub_0807AC54: @ 0x0807AC54 - push {lr} - adds r2, r0, #0 - ldr r0, _0807AC74 @ =gLinkState - ldrb r1, [r0, #0x11] - adds r3, r0, #0 - cmp r1, #0 - beq _0807ACC6 - ldrb r0, [r3, #0x12] - cmp r0, #0x2a - beq _0807ACA8 - cmp r0, #0x2a - bgt _0807AC78 - cmp r0, #0x1e - beq _0807AC82 - b _0807ACC6 - .align 2, 0 -_0807AC74: .4byte gLinkState -_0807AC78: - cmp r0, #0x2b - beq _0807AC90 - cmp r0, #0x2c - beq _0807ACB6 - b _0807ACC6 -_0807AC82: - ldrh r0, [r2, #0x2e] - movs r1, #0x10 - rsbs r1, r1, #0 - ands r1, r0 - movs r0, #8 - orrs r1, r0 - strh r1, [r2, #0x2e] -_0807AC90: - movs r0, #0 - movs r1, #0x1d - strb r1, [r2, #0xc] - strb r0, [r2, #0xd] - strh r0, [r2, #0x30] - ldr r0, _0807ACA4 @ =0x000002CF - strh r0, [r3, #8] - movs r0, #1 - b _0807ACC8 - .align 2, 0 -_0807ACA4: .4byte 0x000002CF -_0807ACA8: - ldrh r0, [r2, #0x2e] - movs r1, #0x10 - rsbs r1, r1, #0 - ands r1, r0 - movs r0, #8 - orrs r1, r0 - strh r1, [r2, #0x2e] -_0807ACB6: - movs r0, #0 - movs r1, #0x1d - strb r1, [r2, #0xc] - movs r1, #1 - strb r1, [r2, #0xd] - strh r0, [r2, #0x30] - movs r0, #1 - b _0807ACC8 -_0807ACC6: - movs r0, #0 -_0807ACC8: - pop {pc} - .align 2, 0 - - thumb_func_start sub_0807ACCC -sub_0807ACCC: @ 0x0807ACCC - push {r4, lr} - adds r4, r0, #0 - adds r2, r4, #0 - adds r2, #0x29 - ldrb r1, [r2] - movs r0, #0x39 - rsbs r0, r0, #0 - ands r0, r1 - strb r0, [r2] - adds r1, r4, #0 - adds r1, #0x42 - movs r0, #0 - strb r0, [r1] - movs r0, #0x72 - bl GetInventoryValue - movs r1, #0xc0 - cmp r0, #1 - bne _0807ACF4 - adds r1, #0x40 -_0807ACF4: - movs r2, #0x24 - ldrsh r0, [r4, r2] - cmp r1, r0 - ble _0807AD18 - strh r1, [r4, #0x24] - ldr r0, _0807AD14 @ =gLinkState - ldrb r1, [r0, #0xd] - strb r1, [r4, #0x15] - adds r0, #0x26 - ldrb r1, [r0] - movs r0, #0xf - ands r0, r1 - cmp r0, #1 - bne _0807ADB4 - b _0807AD1E - .align 2, 0 -_0807AD14: .4byte gLinkState -_0807AD18: - ldrh r0, [r4, #0x24] - subs r0, #4 - strh r0, [r4, #0x24] -_0807AD1E: - ldr r2, _0807AD3C @ =gLinkState - adds r1, r2, #0 - adds r1, #0x89 - ldrb r0, [r1] - cmp r0, #0 - bne _0807AD40 - adds r0, r4, #0 - bl sub_0807ADB8 - cmp r0, #0 - bne _0807AD74 - adds r0, r4, #0 - bl sub_0807AE20 - b _0807AD74 - .align 2, 0 -_0807AD3C: .4byte gLinkState -_0807AD40: - subs r0, #1 - strb r0, [r1] - lsls r0, r0, #0x18 - cmp r0, #0 - beq _0807AD52 - adds r0, r4, #0 - bl sub_0807ADB8 - b _0807AD74 -_0807AD52: - adds r2, #0x26 - ldrb r1, [r2] - movs r0, #0x7f - ands r0, r1 - strb r0, [r2] - adds r2, r4, #0 - adds r2, #0x29 - ldrb r1, [r2] - movs r0, #8 - rsbs r0, r0, #0 - ands r0, r1 - movs r1, #4 - orrs r0, r1 - strb r0, [r2] - ldr r0, _0807ADA0 @ =0x00000163 - bl PlaySFX -_0807AD74: - ldr r0, _0807ADA4 @ =gLinkState - adds r0, #0x26 - ldrb r1, [r0] - movs r0, #0x80 - ands r0, r1 - cmp r0, #0 - beq _0807ADA8 - adds r2, r4, #0 - adds r2, #0x3c - ldrb r1, [r2] - movs r0, #4 - orrs r0, r1 - strb r0, [r2] - subs r2, #0x13 - ldrb r1, [r2] - movs r0, #8 - rsbs r0, r0, #0 - ands r0, r1 - movs r1, #6 - orrs r0, r1 - b _0807ADB2 - .align 2, 0 -_0807ADA0: .4byte 0x00000163 -_0807ADA4: .4byte gLinkState -_0807ADA8: - adds r2, r4, #0 - adds r2, #0x3c - ldrb r1, [r2] - movs r0, #0xfb - ands r0, r1 -_0807ADB2: - strb r0, [r2] -_0807ADB4: - pop {r4, pc} - .align 2, 0 - - thumb_func_start sub_0807ADB8 -sub_0807ADB8: @ 0x0807ADB8 - push {r4, lr} - adds r2, r0, #0 - ldr r3, _0807ADF4 @ =gLinkState - adds r0, r3, #0 - adds r0, #0x92 - ldrh r1, [r0] - movs r0, #0x10 - ands r0, r1 - cmp r0, #0 - beq _0807AE1C - movs r0, #0x26 - adds r0, r0, r3 - mov ip, r0 - ldrb r0, [r0] - movs r1, #0x80 - eors r0, r1 - mov r1, ip - strb r0, [r1] - movs r1, #0x80 - ands r0, r1 - lsls r0, r0, #0x18 - lsrs r4, r0, #0x18 - cmp r4, #0 - beq _0807ADF8 - adds r1, r3, #0 - adds r1, #0x89 - movs r0, #0x78 - strb r0, [r1] - b _0807AE0E - .align 2, 0 -_0807ADF4: .4byte gLinkState -_0807ADF8: - adds r2, #0x29 - ldrb r1, [r2] - movs r0, #8 - rsbs r0, r0, #0 - ands r0, r1 - movs r1, #4 - orrs r0, r1 - strb r0, [r2] - adds r0, r3, #0 - adds r0, #0x89 - strb r4, [r0] -_0807AE0E: - ldr r0, _0807AE18 @ =0x00000163 - bl PlaySFX - movs r0, #1 - b _0807AE1E - .align 2, 0 -_0807AE18: .4byte 0x00000163 -_0807AE1C: - movs r0, #0 -_0807AE1E: - pop {r4, pc} - - thumb_func_start sub_0807AE20 -sub_0807AE20: @ 0x0807AE20 - push {r4, lr} - adds r4, r0, #0 - ldrb r0, [r4, #0xc] - cmp r0, #0x17 - bne _0807AE32 - ldr r0, _0807AE58 @ =gLinkState - ldrb r0, [r0, #0xa] - cmp r0, #0 - bne _0807AE74 -_0807AE32: - ldr r0, _0807AE5C @ =gRoomControls - ldrh r0, [r0] - cmp r0, #0 - bne _0807AE74 - ldr r0, _0807AE58 @ =gLinkState - adds r0, #0x92 - ldrh r1, [r0] - movs r0, #8 - ands r0, r1 - cmp r0, #0 - beq _0807AE74 - movs r0, #0x72 - bl GetInventoryValue - cmp r0, #1 - bne _0807AE60 - movs r0, #0xe0 - lsls r0, r0, #1 - b _0807AE64 - .align 2, 0 -_0807AE58: .4byte gLinkState -_0807AE5C: .4byte gRoomControls -_0807AE60: - movs r0, #0xc0 - lsls r0, r0, #1 -_0807AE64: - strh r0, [r4, #0x24] - adds r0, r4, #0 - bl sub_08079520 - movs r0, #0xb1 - lsls r0, r0, #1 - bl PlaySFX -_0807AE74: - movs r0, #0x10 - bl sub_080793E4 - cmp r0, #0 - beq _0807AEA8 - adds r1, r4, #0 - adds r1, #0x3d - movs r0, #0x14 - strb r0, [r1] - adds r1, #5 - movs r0, #4 - strb r0, [r1] - ldrb r0, [r4, #0x14] - lsls r0, r0, #2 - movs r1, #0x10 - eors r0, r1 - adds r1, r4, #0 - adds r1, #0x3e - strb r0, [r1] - movs r0, #2 - rsbs r0, r0, #0 - bl ModHealth - movs r0, #0x7a - bl PlaySFX -_0807AEA8: - ldrb r1, [r4, #0x15] - movs r0, #0x80 - ands r0, r1 - cmp r0, #0 - beq _0807AECC - ldr r0, _0807AEC8 @ =gUnk_030010A0 - ldr r0, [r0] - movs r1, #0xf - ands r0, r1 - cmp r0, #0 - bne _0807AEDE - adds r0, r4, #0 - movs r1, #4 - bl sub_080A2A84 - b _0807AEDE - .align 2, 0 -_0807AEC8: .4byte gUnk_030010A0 -_0807AECC: - ldr r0, _0807AEE0 @ =gUnk_030010A0 - ldr r0, [r0] - movs r1, #7 - ands r0, r1 - cmp r0, #0 - bne _0807AEDE - adds r0, r4, #0 - bl sub_080A2A64 -_0807AEDE: - pop {r4, pc} - .align 2, 0 -_0807AEE0: .4byte gUnk_030010A0 - - thumb_func_start sub_0807AEE4 -sub_0807AEE4: @ 0x0807AEE4 - push {r4, lr} - ldr r0, _0807AFE4 @ =gLinkState - adds r4, r0, #0 - adds r4, #0xac - movs r0, #0 - strh r0, [r4] - movs r0, #0x48 - bl GetInventoryValue - cmp r0, #1 - bne _0807AF02 - ldrh r0, [r4] - movs r1, #1 - orrs r0, r1 - strh r0, [r4] -_0807AF02: - movs r0, #0x49 - bl GetInventoryValue - cmp r0, #1 - bne _0807AF14 - ldrh r0, [r4] - movs r1, #2 - orrs r0, r1 - strh r0, [r4] -_0807AF14: - movs r0, #0x4a - bl GetInventoryValue - cmp r0, #1 - bne _0807AF26 - ldrh r0, [r4] - movs r1, #4 - orrs r0, r1 - strh r0, [r4] -_0807AF26: - movs r0, #0x4b - bl GetInventoryValue - cmp r0, #1 - bne _0807AF38 - ldrh r0, [r4] - movs r1, #8 - orrs r0, r1 - strh r0, [r4] -_0807AF38: - movs r0, #0x4c - bl GetInventoryValue - cmp r0, #1 - bne _0807AF4A - ldrh r0, [r4] - movs r1, #0x10 - orrs r0, r1 - strh r0, [r4] -_0807AF4A: - movs r0, #0x4d - bl GetInventoryValue - cmp r0, #1 - bne _0807AF5C - ldrh r0, [r4] - movs r1, #0x20 - orrs r0, r1 - strh r0, [r4] -_0807AF5C: - movs r0, #0x4e - bl GetInventoryValue - cmp r0, #1 - bne _0807AF6E - ldrh r0, [r4] - movs r1, #0x40 - orrs r0, r1 - strh r0, [r4] -_0807AF6E: - movs r0, #0x4f - bl GetInventoryValue - cmp r0, #1 - bne _0807AF80 - ldrh r0, [r4] - movs r1, #0x80 - orrs r0, r1 - strh r0, [r4] -_0807AF80: - movs r0, #6 - bl GetInventoryValue - cmp r0, #1 - bne _0807AF96 - ldrh r0, [r4] - movs r2, #0x80 - lsls r2, r2, #1 - adds r1, r2, #0 - orrs r0, r1 - strh r0, [r4] -_0807AF96: - movs r0, #0x73 - bl GetInventoryValue - cmp r0, #1 - bne _0807AFAC - ldrh r0, [r4] - movs r3, #0x80 - lsls r3, r3, #2 - adds r1, r3, #0 - orrs r0, r1 - strh r0, [r4] -_0807AFAC: - movs r0, #0x74 - bl GetInventoryValue - cmp r0, #1 - bne _0807AFC6 - ldr r0, _0807AFE4 @ =gLinkState - adds r0, #0xac - ldrh r2, [r0] - movs r3, #0x80 - lsls r3, r3, #3 - adds r1, r3, #0 - orrs r1, r2 - strh r1, [r0] -_0807AFC6: - movs r0, #0x75 - bl GetInventoryValue - cmp r0, #1 - bne _0807AFE0 - ldr r0, _0807AFE4 @ =gLinkState - adds r0, #0xac - ldrh r2, [r0] - movs r3, #0x80 - lsls r3, r3, #4 - adds r1, r3, #0 - orrs r1, r2 - strh r1, [r0] -_0807AFE0: - pop {r4, pc} - .align 2, 0 -_0807AFE4: .4byte gLinkState - - thumb_func_start sub_0807AFE8 -sub_0807AFE8: @ 0x0807AFE8 - push {lr} - bl sub_08077B20 - ldr r0, _0807B00C @ =gLinkEntity - movs r1, #0x43 - movs r2, #0 - bl CreateFx - adds r1, r0, #0 - cmp r1, #0 - beq _0807B004 - ldrh r0, [r1, #0x32] - adds r0, #1 - strh r0, [r1, #0x32] -_0807B004: - ldr r1, _0807B010 @ =gLinkState - movs r0, #9 - strb r0, [r1, #0xc] - pop {pc} - .align 2, 0 -_0807B00C: .4byte gLinkEntity -_0807B010: .4byte gLinkState - - thumb_func_start sub_0807B014 -sub_0807B014: @ 0x0807B014 - push {lr} - ldr r2, _0807B03C @ =gLinkState - adds r0, r2, #0 - adds r0, #0xac - ldrh r1, [r0] - movs r0, #0x10 - ands r0, r1 - cmp r0, #0 - beq _0807B044 - ldr r0, _0807B040 @ =gUnk_02002A40 - adds r1, r0, #0 - adds r1, #0xaa - adds r0, #0xab - ldrb r1, [r1] - ldrb r0, [r0] - cmp r1, r0 - bne _0807B044 - movs r0, #0xf - b _0807B066 - .align 2, 0 -_0807B03C: .4byte gLinkState -_0807B040: .4byte gUnk_02002A40 -_0807B044: - adds r0, r2, #0 - adds r0, #0xac - ldrh r1, [r0] - movs r0, #0x80 - ands r0, r1 - cmp r0, #0 - beq _0807B064 - ldr r0, _0807B060 @ =gUnk_02002A40 - adds r0, #0xaa - ldrb r0, [r0] - cmp r0, #8 - bhi _0807B064 - movs r0, #0x16 - b _0807B066 - .align 2, 0 -_0807B060: .4byte gUnk_02002A40 -_0807B064: - movs r0, #0 -_0807B066: - pop {pc} - - thumb_func_start sub_0807B068 -sub_0807B068: @ 0x0807B068 - push {lr} - ldr r2, _0807B090 @ =gLinkState - ldrb r1, [r2, #0x1e] - ldrb r0, [r2, #4] - orrs r0, r1 - cmp r0, #0 - bne _0807B0C2 - adds r0, r2, #0 - adds r0, #0x26 - ldrb r1, [r0] - cmp r1, #0 - beq _0807B0A4 - movs r0, #0x80 - ands r0, r1 - cmp r0, #0 - beq _0807B098 - ldr r0, _0807B094 @ =0x00000C1C - strh r0, [r2, #8] - b _0807B0C2 - .align 2, 0 -_0807B090: .4byte gLinkState -_0807B094: .4byte 0x00000C1C -_0807B098: - ldr r0, _0807B0A0 @ =0x00000C0C - strh r0, [r2, #8] - b _0807B0C2 - .align 2, 0 -_0807B0A0: .4byte 0x00000C0C -_0807B0A4: - ldrb r1, [r2, #0xd] - movs r0, #0x80 - ands r0, r1 - cmp r0, #0 - beq _0807B0B8 - ldrh r0, [r2, #8] - ldr r1, _0807B0B4 @ =0x00000C18 - b _0807B0BC - .align 2, 0 -_0807B0B4: .4byte 0x00000C18 -_0807B0B8: - ldrh r0, [r2, #8] - ldr r1, _0807B0C4 @ =0x00000C04 -_0807B0BC: - cmp r0, r1 - beq _0807B0C2 - strh r1, [r2, #8] -_0807B0C2: - pop {pc} - .align 2, 0 -_0807B0C4: .4byte 0x00000C04 - - thumb_func_start sub_0807B0C8 -sub_0807B0C8: @ 0x0807B0C8 - push {r4, lr} - ldr r4, _0807B0F8 @ =gLinkEntity - adds r0, r4, #0 - movs r1, #0 - movs r2, #0 - bl sub_0806FEBC - adds r0, r4, #0 - movs r1, #1 - movs r2, #0 - bl sub_0806FEBC - adds r0, r4, #0 - movs r1, #2 - adds r2, r4, #0 - bl sub_0806FEBC - adds r0, r4, #0 - movs r1, #3 - movs r2, #0 - bl sub_0806FEBC - pop {r4, pc} - .align 2, 0 -_0807B0F8: .4byte gLinkEntity - - thumb_func_start sub_0807B0FC -sub_0807B0FC: @ 0x0807B0FC - push {lr} - ldr r2, _0807B110 @ =gUnk_0811C27C - ldrb r1, [r0, #0xd] - lsls r1, r1, #2 - adds r1, r1, r2 - ldr r1, [r1] - bl _call_via_r1 - pop {pc} - .align 2, 0 -_0807B110: .4byte gUnk_0811C27C - - thumb_func_start sub_0807B114 -sub_0807B114: @ 0x0807B114 - movs r1, #1 - strb r1, [r0, #0xd] - ldr r1, _0807B124 @ =gLinkState - adds r1, #0x38 - ldrb r1, [r1] - adds r0, #0x6c - strb r1, [r0] - bx lr - .align 2, 0 -_0807B124: .4byte gLinkState - - thumb_func_start sub_0807B128 -sub_0807B128: @ 0x0807B128 - push {lr} - ldr r2, _0807B140 @ =gUnk_0811C284 - adds r1, r0, #0 - adds r1, #0x6c - ldrb r1, [r1] - lsls r1, r1, #2 - adds r1, r1, r2 - ldr r1, [r1] - bl _call_via_r1 - pop {pc} - .align 2, 0 -_0807B140: .4byte gUnk_0811C284 - - thumb_func_start sub_0807B144 -sub_0807B144: @ 0x0807B144 - push {lr} - ldrb r2, [r0, #0x18] - movs r1, #4 - rsbs r1, r1, #0 - ands r1, r2 - movs r2, #1 - orrs r1, r2 - strb r1, [r0, #0x18] - ldrb r1, [r0, #0x14] - lsls r1, r1, #2 - strb r1, [r0, #0x15] - movs r1, #0xa0 - strh r1, [r0, #0x24] - movs r1, #0x80 - lsls r1, r1, #0xb - str r1, [r0, #0x20] - ldr r1, _0807B170 @ =gLinkState - movs r0, #0x81 - strb r0, [r1, #2] - bl sub_080791BC - pop {pc} - .align 2, 0 -_0807B170: .4byte gLinkState - - thumb_func_start nullsub_506 -nullsub_506: @ 0x0807B174 - bx lr - .align 2, 0 - - thumb_func_start sub_0807B178 -sub_0807B178: @ 0x0807B178 - push {lr} - ldrb r2, [r0, #0x18] - movs r1, #4 - rsbs r1, r1, #0 - ands r1, r2 - movs r2, #1 - orrs r1, r2 - strb r1, [r0, #0x18] - movs r2, #0 - movs r1, #0x10 - strb r1, [r0, #0x15] - strh r2, [r0, #0x24] - movs r1, #0x80 - lsls r1, r1, #0xb - str r1, [r0, #0x20] - ldr r1, _0807B1A4 @ =gLinkState - movs r0, #0x81 - strb r0, [r1, #2] - bl sub_080791BC - pop {pc} - .align 2, 0 -_0807B1A4: .4byte gLinkState - - thumb_func_start sub_0807B1A8 -sub_0807B1A8: @ 0x0807B1A8 - push {r4, lr} - adds r4, r0, #0 - ldr r1, _0807B1D4 @ =gUnk_0811C298 - adds r0, #0x6e - ldrb r0, [r0] - lsls r0, r0, #2 - adds r0, r0, r1 - ldr r1, [r0] - adds r0, r4, #0 - bl _call_via_r1 - ldr r0, _0807B1D8 @ =gUnk_030010A0 - ldr r0, [r0] - movs r1, #7 - ands r0, r1 - cmp r0, #0 - bne _0807B1D0 - adds r0, r4, #0 - bl sub_080A2B80 -_0807B1D0: - pop {r4, pc} - .align 2, 0 -_0807B1D4: .4byte gUnk_0811C298 -_0807B1D8: .4byte gUnk_030010A0 - - thumb_func_start sub_0807B1DC -sub_0807B1DC: @ 0x0807B1DC - adds r2, r0, #0 - adds r2, #0x6e - ldrb r1, [r2] - adds r1, #1 - strb r1, [r2] - movs r1, #0x1e - strb r1, [r0, #0xe] - bx lr - - thumb_func_start sub_0807B1EC -sub_0807B1EC: @ 0x0807B1EC - push {lr} - adds r2, r0, #0 - ldrb r0, [r2, #0xe] - subs r0, #1 - strb r0, [r2, #0xe] - lsls r0, r0, #0x18 - cmp r0, #0 - bne _0807B212 - adds r1, r2, #0 - adds r1, #0x6e - ldrb r0, [r1] - adds r0, #1 - strb r0, [r1] - movs r0, #0x80 - lsls r0, r0, #9 - str r0, [r2, #0x20] - ldr r1, _0807B214 @ =gLinkState - ldr r0, _0807B218 @ =0x000002C2 - strh r0, [r1, #8] -_0807B212: - pop {pc} - .align 2, 0 -_0807B214: .4byte gLinkState -_0807B218: .4byte 0x000002C2 - - thumb_func_start sub_0807B21C -sub_0807B21C: @ 0x0807B21C - push {r4, lr} - adds r4, r0, #0 - bl UpdateAnimationSingleFrame - ldr r0, [r4, #0x20] - cmp r0, #0 - bge _0807B236 - movs r1, #0x80 - lsls r1, r1, #3 - adds r0, r4, #0 - bl sub_08003FC4 - b _0807B240 -_0807B236: - movs r1, #0x80 - lsls r1, r1, #4 - adds r0, r4, #0 - bl sub_08003FC4 -_0807B240: - ldr r1, [r4, #0x20] - ldr r0, _0807B260 @ =0xFFFF8000 - cmp r1, r0 - bge _0807B25E - movs r1, #0 - movs r0, #0x78 - strb r0, [r4, #0xe] - strb r1, [r4, #0xf] - adds r1, r4, #0 - adds r1, #0x6e - ldrb r0, [r1] - adds r0, #1 - strb r0, [r1] - ldr r0, [r4, #0x34] - str r0, [r4, #0x68] -_0807B25E: - pop {r4, pc} - .align 2, 0 -_0807B260: .4byte 0xFFFF8000 - - thumb_func_start sub_0807B264 -sub_0807B264: @ 0x0807B264 - push {r4, lr} - adds r4, r0, #0 - bl UpdateAnimationSingleFrame - ldrb r0, [r4, #0xf] - adds r0, #2 - strb r0, [r4, #0xf] - ldr r1, _0807B2B4 @ =gSineTable - ldrb r0, [r4, #0xf] - lsls r0, r0, #1 - adds r0, r0, r1 - movs r2, #0 - ldrsh r1, [r0, r2] - asrs r1, r1, #7 - lsls r1, r1, #0x10 - ldr r0, [r4, #0x68] - adds r0, r0, r1 - str r0, [r4, #0x34] - ldrb r0, [r4, #0xe] - subs r0, #1 - strb r0, [r4, #0xe] - lsls r0, r0, #0x18 - cmp r0, #0 - bne _0807B2B0 - movs r0, #0x50 - strb r0, [r4, #0xe] - movs r0, #0x80 - lsls r0, r0, #8 - str r0, [r4, #0x20] - adds r1, r4, #0 - adds r1, #0x6e - ldrb r0, [r1] - adds r0, #1 - strb r0, [r1] - movs r0, #0xa9 - lsls r0, r0, #1 - bl PlaySFX -_0807B2B0: - pop {r4, pc} - .align 2, 0 -_0807B2B4: .4byte gSineTable - - thumb_func_start sub_0807B2B8 -sub_0807B2B8: @ 0x0807B2B8 - push {r4, lr} - adds r4, r0, #0 - ldr r1, _0807B2F0 @ =0xFFFFE000 - bl sub_08003FC4 - adds r0, r4, #0 - bl UpdateAnimationSingleFrame - ldrb r0, [r4, #0xe] - cmp r0, #0 - beq _0807B2EC - subs r0, #1 - strb r0, [r4, #0xe] - lsls r0, r0, #0x18 - cmp r0, #0 - bne _0807B2EC - adds r0, r4, #0 - adds r0, #0x6d - ldrb r1, [r0] - lsls r0, r1, #2 - adds r0, r0, r1 - lsls r0, r0, #2 - ldr r1, _0807B2F4 @ =gUnk_0813AD88 - adds r0, r0, r1 - bl DoExitTransition -_0807B2EC: - pop {r4, pc} - .align 2, 0 -_0807B2F0: .4byte 0xFFFFE000 -_0807B2F4: .4byte gUnk_0813AD88 - - thumb_func_start sub_0807B2F8 -sub_0807B2F8: @ 0x0807B2F8 - push {lr} - adds r2, r0, #0 - adds r1, r2, #0 - adds r1, #0x6e - ldrb r0, [r1] - cmp r0, #0 - bne _0807B310 - adds r0, #1 - strb r0, [r1] - adds r0, r2, #0 - bl sub_0809D738 -_0807B310: - pop {pc} - .align 2, 0 - - thumb_func_start SetTileType -SetTileType: @ 0x0807B314 - push {r4, r5, r6, r7, lr} - adds r5, r0, #0 - adds r4, r1, #0 - adds r6, r2, #0 - ldr r0, _0807B3A0 @ =0x000007FF - cmp r5, r0 - bhi _0807B410 - adds r0, r4, #0 - adds r1, r6, #0 - bl DeleteLoadedTileEntity - adds r0, r6, #0 - bl GetLayerByIndex - adds r2, r0, #0 - lsls r1, r5, #1 - ldr r3, _0807B3A4 @ =0x00006004 - adds r0, r2, r3 - adds r0, r0, r1 - ldrh r0, [r0] - mov ip, r0 - lsls r1, r4, #1 - adds r0, r2, #4 - adds r0, r0, r1 - mov r1, ip - strh r1, [r0] - ldr r0, _0807B3A8 @ =gUnk_080B3E80 - adds r0, r5, r0 - ldrb r3, [r0] - ldr r1, _0807B3AC @ =0x00002004 - adds r0, r2, r1 - adds r0, r0, r4 - strb r3, [r0] - ldr r7, _0807B3B0 @ =gRoomControls - ldrb r1, [r7, #0xf] - movs r0, #2 - ands r0, r1 - cmp r0, #0 - beq _0807B36C - ldr r0, _0807B3B4 @ =gUnk_02025EB0 - ldr r1, _0807B3AC @ =0x00002004 - adds r0, r0, r1 - adds r0, r4, r0 - strb r3, [r0] -_0807B36C: - ldr r3, _0807B3B8 @ =0x0000B004 - adds r1, r2, r3 - adds r1, r1, r4 - ldr r0, _0807B3BC @ =gUnk_080B37A0 - adds r0, r5, r0 - ldrb r0, [r0] - strb r0, [r1] - ldrb r1, [r7, #0xf] - movs r0, #1 - ands r0, r1 - cmp r0, #0 - bne _0807B430 - movs r1, #0x3f - ands r1, r4 - lsls r1, r1, #1 - movs r0, #0xfc - lsls r0, r0, #4 - ands r0, r4 - lsls r0, r0, #2 - adds r1, r1, r0 - cmp r6, #2 - beq _0807B3C4 - lsls r1, r1, #1 - ldr r0, _0807B3C0 @ =gUnk_02019EE0 - b _0807B3C8 - .align 2, 0 -_0807B3A0: .4byte 0x000007FF -_0807B3A4: .4byte 0x00006004 -_0807B3A8: .4byte gUnk_080B3E80 -_0807B3AC: .4byte 0x00002004 -_0807B3B0: .4byte gRoomControls -_0807B3B4: .4byte gUnk_02025EB0 -_0807B3B8: .4byte 0x0000B004 -_0807B3BC: .4byte gUnk_080B37A0 -_0807B3C0: .4byte gUnk_02019EE0 -_0807B3C4: - lsls r1, r1, #1 - ldr r0, _0807B400 @ =gUnk_02002F00 -_0807B3C8: - adds r3, r1, r0 - mov r1, ip - lsls r0, r1, #3 - ldr r1, _0807B404 @ =0x00007004 - adds r0, r0, r1 - adds r0, r2, r0 - ldrh r1, [r0] - strh r1, [r3] - ldrh r1, [r0, #2] - strh r1, [r3, #2] - movs r1, #0x80 - lsls r1, r1, #1 - adds r2, r3, r1 - ldrh r1, [r0, #4] - strh r1, [r2] - movs r2, #0x81 - lsls r2, r2, #1 - adds r1, r3, r2 - ldrh r0, [r0, #6] - strh r0, [r1] - ldr r0, _0807B408 @ =gRoomControls - ldrh r0, [r0] - cmp r0, #1 - beq _0807B430 - ldr r1, _0807B40C @ =gUnk_02000070 - movs r0, #1 - strb r0, [r1] - b _0807B430 - .align 2, 0 -_0807B400: .4byte gUnk_02002F00 -_0807B404: .4byte 0x00007004 -_0807B408: .4byte gRoomControls -_0807B40C: .4byte gUnk_02000070 -_0807B410: - ldr r0, _0807B424 @ =0x00003FFF - cmp r5, r0 - bls _0807B428 - adds r0, r5, #0 - adds r1, r4, #0 - adds r2, r6, #0 - bl SetTile - b _0807B430 - .align 2, 0 -_0807B424: .4byte 0x00003FFF -_0807B428: - adds r0, r4, #0 - adds r1, r6, #0 - bl sub_0807BA8C -_0807B430: - pop {r4, r5, r6, r7, pc} - .align 2, 0 - - thumb_func_start sub_0807B434 -sub_0807B434: @ 0x0807B434 - push {r4, r5, lr} - adds r4, r0, #0 - adds r5, r1, #0 - bl GetTileType - cmp r0, #0x37 - bhi _0807B44A - cmp r0, #0x36 - blo _0807B44A - movs r0, #0 - b _0807B462 -_0807B44A: - lsls r0, r4, #0x10 - lsrs r0, r0, #0x10 - lsls r1, r5, #0x18 - lsrs r1, r1, #0x18 - bl sub_080002C8 - adds r1, r0, #0 - movs r0, #0xd - eors r1, r0 - rsbs r0, r1, #0 - orrs r0, r1 - lsrs r0, r0, #0x1f -_0807B462: - pop {r4, r5, pc} - - thumb_func_start sub_0807B464 -sub_0807B464: @ 0x0807B464 - push {lr} - lsls r0, r0, #0x10 - lsrs r0, r0, #0x10 - lsls r1, r1, #0x18 - lsrs r1, r1, #0x18 - bl sub_080002C8 - movs r1, #0 - cmp r0, #0x56 - bne _0807B47A - movs r1, #1 -_0807B47A: - adds r0, r1, #0 - pop {pc} - .align 2, 0 - - thumb_func_start sub_0807B480 -sub_0807B480: @ 0x0807B480 - push {r4, r5, r6, r7, lr} - adds r6, r0, #0 - adds r7, r1, #0 - movs r1, #2 - bl sub_0807B464 - cmp r0, #0 - beq _0807B558 - adds r0, r6, #0 - subs r0, #0x40 - movs r1, #2 - bl sub_0807B464 - adds r5, r0, #0 - adds r0, r6, #1 - movs r1, #2 - bl sub_0807B464 - lsls r0, r0, #1 - orrs r5, r0 - adds r4, r6, #0 - adds r4, #0x40 - adds r0, r4, #0 - movs r1, #2 - bl sub_0807B464 - lsls r0, r0, #2 - orrs r5, r0 - subs r0, r6, #1 - movs r1, #2 - bl sub_0807B464 - lsls r0, r0, #3 - orrs r5, r0 - adds r0, r6, #0 - adds r0, #0x41 - movs r1, #1 - bl sub_0807B464 - lsls r0, r0, #1 - orrs r5, r0 - adds r0, r6, #0 - adds r0, #0x3f - movs r1, #1 - bl sub_0807B464 - lsls r0, r0, #3 - orrs r5, r0 - adds r0, r4, #0 - movs r1, #2 - bl GetTileType - cmp r0, #0 - beq _0807B4FA - adds r0, r6, #0 - adds r0, #0x80 - movs r1, #1 - bl sub_0807B464 - lsls r0, r0, #2 - orrs r5, r0 -_0807B4FA: - ldr r0, _0807B514 @ =gUnk_0811C2CC - lsls r1, r5, #1 - adds r1, r1, r0 - ldrh r4, [r1] - adds r0, r6, #0 - movs r1, #2 - bl GetTileType - lsls r0, r0, #0x10 - lsrs r0, r0, #0x10 - ldr r2, _0807B518 @ =gUnk_0811C2EC - movs r3, #0 - b _0807B51E - .align 2, 0 -_0807B514: .4byte gUnk_0811C2CC -_0807B518: .4byte gUnk_0811C2EC -_0807B51C: - adds r2, #6 -_0807B51E: - ldrh r1, [r2] - cmp r1, #0 - beq _0807B52A - cmp r0, r1 - bne _0807B51C - ldrh r3, [r2, #2] -_0807B52A: - movs r0, #1 - lsls r0, r7 - bics r3, r0 - ldr r2, _0807B534 @ =gUnk_0811C2EC - b _0807B53A - .align 2, 0 -_0807B534: .4byte gUnk_0811C2EC -_0807B538: - adds r2, #6 -_0807B53A: - ldrh r0, [r2] - cmp r0, #0 - beq _0807B54E - ldrh r0, [r2, #2] - cmp r3, r0 - bne _0807B538 - ldrh r0, [r2, #4] - cmp r5, r0 - bne _0807B538 - ldrh r4, [r2] -_0807B54E: - adds r0, r4, #0 - adds r1, r6, #0 - movs r2, #2 - bl SetTileType -_0807B558: - pop {r4, r5, r6, r7, pc} - .align 2, 0 - - thumb_func_start sub_0807B55C -sub_0807B55C: @ 0x0807B55C - push {r4, r5, r6, r7, lr} - adds r5, r0, #0 - adds r6, r1, #0 - adds r7, r2, #0 - bl sub_0807B464 - cmp r0, #0 - beq _0807B5AC - adds r0, r5, #0 - subs r0, #0x40 - adds r1, r6, #0 - bl sub_0807B464 - adds r4, r0, #0 - adds r0, r5, #1 - adds r1, r6, #0 - bl sub_0807B464 - lsls r0, r0, #1 - orrs r4, r0 - adds r0, r5, #0 - adds r0, #0x40 - adds r1, r6, #0 - bl sub_0807B464 - lsls r0, r0, #2 - orrs r4, r0 - subs r0, r5, #1 - adds r1, r6, #0 - bl sub_0807B464 - lsls r0, r0, #3 - orrs r0, r4 - lsls r0, r0, #1 - adds r0, r0, r7 - ldrh r0, [r0] - adds r1, r5, #0 - adds r2, r6, #0 - bl SetTileType -_0807B5AC: - pop {r4, r5, r6, r7, pc} - .align 2, 0 - - thumb_func_start sub_0807B5B0 -sub_0807B5B0: @ 0x0807B5B0 - push {r4, r5, r6, r7, lr} - adds r3, r0, #0 - movs r1, #0x2e - ldrsh r0, [r3, r1] - ldr r6, _0807B5F8 @ =gUnk_0811C456 - ldrb r1, [r3, #0x14] - movs r2, #6 - ands r2, r1 - lsls r1, r2, #1 - adds r1, r1, r6 - movs r4, #0 - ldrsh r1, [r1, r4] - adds r0, r0, r1 - ldr r5, _0807B5FC @ =gRoomControls - ldrh r1, [r5, #6] - subs r0, r0, r1 - asrs r0, r0, #4 - movs r4, #0x3f - ands r0, r4 - movs r7, #0x32 - ldrsh r1, [r3, r7] - adds r2, #1 - lsls r2, r2, #1 - adds r2, r2, r6 - movs r3, #0 - ldrsh r2, [r2, r3] - adds r1, r1, r2 - ldrh r2, [r5, #8] - subs r1, r1, r2 - asrs r1, r1, #4 - ands r1, r4 - lsls r1, r1, #6 - orrs r0, r1 - bl sub_0807B600 - pop {r4, r5, r6, r7, pc} - .align 2, 0 -_0807B5F8: .4byte gUnk_0811C456 -_0807B5FC: .4byte gRoomControls - - thumb_func_start sub_0807B600 -sub_0807B600: @ 0x0807B600 - push {r4, r5, r6, lr} - adds r5, r0, #0 - adds r6, r5, #0 - subs r6, #0x40 - lsls r0, r5, #0x10 - lsrs r0, r0, #0x10 - movs r1, #1 - bl sub_080002C8 - cmp r0, #0x56 - beq _0807B61A - movs r0, #0 - b _0807B76E -_0807B61A: - adds r0, r5, #0 - movs r1, #1 - bl GetTileType - adds r1, r0, #0 - ldr r0, _0807B634 @ =0x0000026A - cmp r1, r0 - bne _0807B638 - adds r0, r5, #0 - bl sub_0807B820 - b _0807B76C - .align 2, 0 -_0807B634: .4byte 0x0000026A -_0807B638: - ldr r0, _0807B648 @ =0x00000267 - cmp r1, r0 - bne _0807B64C - adds r0, r5, #0 - adds r0, #0x40 - bl sub_0807B820 - b _0807B76C - .align 2, 0 -_0807B648: .4byte 0x00000267 -_0807B64C: - ldr r0, _0807B65C @ =0x0000027A - cmp r1, r0 - bne _0807B660 - adds r0, r5, #0 - bl sub_0807B8A8 - b _0807B76C - .align 2, 0 -_0807B65C: .4byte 0x0000027A -_0807B660: - ldr r0, _0807B670 @ =0x00000277 - cmp r1, r0 - bne _0807B674 - adds r0, r5, #0 - adds r0, #0x40 - bl sub_0807B8A8 - b _0807B76C - .align 2, 0 -_0807B670: .4byte 0x00000277 -_0807B674: - ldr r0, _0807B684 @ =0x0000028A - cmp r1, r0 - bne _0807B688 - adds r0, r5, #0 - bl sub_0807B930 - b _0807B76C - .align 2, 0 -_0807B684: .4byte 0x0000028A -_0807B688: - ldr r0, _0807B698 @ =0x00000287 - cmp r1, r0 - bne _0807B69C - adds r0, r5, #0 - adds r0, #0x40 - bl sub_0807B930 - b _0807B76C - .align 2, 0 -_0807B698: .4byte 0x00000287 -_0807B69C: - adds r0, r5, #0 - movs r1, #2 - bl GetTileType - cmp r0, #0 - beq _0807B6EC - ldr r0, _0807B6E8 @ =0x000002F2 - adds r1, r5, #0 - movs r2, #1 - bl SetTileType - adds r0, r6, #0 - movs r1, #1 - bl sub_080002E0 - cmp r0, #3 - bne _0807B6CA - movs r0, #0xbd - lsls r0, r0, #2 - adds r1, r6, #0 - movs r2, #1 - bl SetTileType -_0807B6CA: - adds r0, r5, #0 - adds r0, #0x40 - movs r1, #1 - bl sub_080002E0 - cmp r0, #3 - bne _0807B6F8 - movs r0, #0xbd - lsls r0, r0, #2 - adds r1, r5, #0 - movs r2, #1 - bl SetTileType - b _0807B6F8 - .align 2, 0 -_0807B6E8: .4byte 0x000002F2 -_0807B6EC: - movs r0, #0xbd - lsls r0, r0, #2 - adds r1, r5, #0 - movs r2, #1 - bl SetTileType -_0807B6F8: - adds r0, r6, #0 - movs r1, #2 - bl sub_0807B464 - cmp r0, #0 - beq _0807B748 - movs r0, #0 - adds r1, r6, #0 - movs r2, #2 - bl SetTileType - adds r0, r6, #0 - movs r1, #1 - bl GetTileType - ldr r1, _0807B770 @ =0x000002F2 - cmp r0, r1 - bne _0807B728 - movs r0, #0xbd - lsls r0, r0, #2 - adds r1, r6, #0 - movs r2, #1 - bl SetTileType -_0807B728: - adds r0, r5, #1 - ldr r4, _0807B774 @ =gUnk_0811C2AC - movs r1, #1 - adds r2, r4, #0 - bl sub_0807B55C - subs r0, r5, #1 - movs r1, #1 - adds r2, r4, #0 - bl sub_0807B55C - adds r0, r6, #0 - movs r1, #1 - adds r2, r4, #0 - bl sub_0807B55C -_0807B748: - adds r0, r6, #1 - movs r1, #3 - bl sub_0807B480 - subs r0, r6, #1 - movs r1, #1 - bl sub_0807B480 - adds r0, r6, #0 - adds r0, #0x40 - movs r1, #0 - bl sub_0807B480 - adds r0, r6, #0 - subs r0, #0x40 - movs r1, #2 - bl sub_0807B480 -_0807B76C: - movs r0, #1 -_0807B76E: - pop {r4, r5, r6, pc} - .align 2, 0 -_0807B770: .4byte 0x000002F2 -_0807B774: .4byte gUnk_0811C2AC - - thumb_func_start sub_0807B778 -sub_0807B778: @ 0x0807B778 - push {r4, r5, r6, lr} - adds r5, r0, #0 - adds r6, r1, #0 - lsls r0, r5, #0x10 - lsrs r0, r0, #0x10 - lsls r1, r6, #0x18 - lsrs r1, r1, #0x18 - bl sub_080002C8 - cmp r0, #0xd - bne _0807B7D0 - adds r0, r5, #0 - subs r0, #0x40 - adds r1, r6, #0 - bl sub_0807B434 - adds r4, r0, #0 - adds r0, r5, #1 - adds r1, r6, #0 - bl sub_0807B434 - lsls r0, r0, #1 - orrs r4, r0 - adds r0, r5, #0 - adds r0, #0x40 - adds r1, r6, #0 - bl sub_0807B434 - lsls r0, r0, #2 - orrs r4, r0 - subs r0, r5, #1 - adds r1, r6, #0 - bl sub_0807B434 - lsls r0, r0, #3 - orrs r0, r4 - ldr r1, _0807B7D4 @ =gUnk_0811C466 - lsls r0, r0, #1 - adds r0, r0, r1 - ldrh r0, [r0] - adds r1, r5, #0 - adds r2, r6, #0 - bl SetTileType -_0807B7D0: - pop {r4, r5, r6, pc} - .align 2, 0 -_0807B7D4: .4byte gUnk_0811C466 diff --git a/asm/code_08078778.s b/asm/code_08078778.s new file mode 100644 index 00000000..eab905d0 --- /dev/null +++ b/asm/code_08078778.s @@ -0,0 +1,6282 @@ + .include "asm/macros.inc" + + .include "constants/constants.inc" + + .syntax unified + + .text + + thumb_func_start sub_0807887C +sub_0807887C: @ 0x0807887C + push {r4, r5, r6, r7, lr} + adds r5, r0, #0 + adds r7, r1, #0 + adds r6, r2, #0 + adds r1, r5, #0 + adds r1, #0x39 + movs r0, #0 + strb r0, [r1] + adds r0, r5, #0 + bl sub_08078904 + adds r4, r0, #0 + cmp r4, #0 + bge _080788A4 + movs r0, #0 + bl sub_08078904 + adds r4, r0, #0 + cmp r4, #0 + blt _080788BA +_080788A4: + ldr r2, _080788DC @ =gUnk_03003DF0 + lsls r1, r4, #1 + adds r1, r1, r4 + lsls r1, r1, #2 + adds r0, r2, #0 + adds r0, #0x10 + adds r0, r1, r0 + str r5, [r0] + adds r1, r1, r2 + strb r7, [r1, #9] + strb r6, [r1, #0xb] +_080788BA: + cmp r6, #0 + beq _080788D6 + movs r0, #6 + movs r1, #9 + movs r2, #6 + bl sub_0805EB00 + cmp r0, #0 + bne _080788D6 + movs r0, #9 + movs r1, #0 + movs r2, #0 + bl CreateObject +_080788D6: + adds r0, r4, #0 + pop {r4, r5, r6, r7, pc} + .align 2, 0 +_080788DC: .4byte gUnk_03003DF0 + + thumb_func_start sub_080788E0 +sub_080788E0: @ 0x080788E0 + push {lr} + bl sub_08078904 + adds r1, r0, #0 + cmp r1, #0 + blt _080788FC + lsls r0, r1, #1 + adds r0, r0, r1 + lsls r0, r0, #2 + ldr r1, _08078900 @ =gUnk_03003DF8 + adds r0, r0, r1 + movs r1, #0xc + bl sub_0801D630 +_080788FC: + pop {pc} + .align 2, 0 +_08078900: .4byte gUnk_03003DF8 + + thumb_func_start sub_08078904 +sub_08078904: @ 0x08078904 + push {lr} + adds r3, r0, #0 + movs r1, #0 + ldr r0, _0807891C @ =gUnk_03003DF0 + adds r2, r0, #0 + adds r2, #0x10 +_08078910: + ldr r0, [r2] + cmp r3, r0 + bne _08078920 + adds r0, r1, #0 + b _0807892C + .align 2, 0 +_0807891C: .4byte gUnk_03003DF0 +_08078920: + adds r2, #0xc + adds r1, #1 + cmp r1, #0x1f + bls _08078910 + movs r0, #1 + rsbs r0, r0, #0 +_0807892C: + pop {pc} + .align 2, 0 + + thumb_func_start sub_08078930 +sub_08078930: @ 0x08078930 + push {lr} + adds r3, r0, #0 + ldr r2, _08078950 @ =gUnk_03003BE0 + ldrb r0, [r2, #2] + cmp r0, #0x1f + bhi _0807894C + lsls r0, r0, #2 + adds r1, r2, #0 + adds r1, #0xc + adds r0, r0, r1 + str r3, [r0] + ldrb r0, [r2, #2] + adds r0, #1 + strb r0, [r2, #2] +_0807894C: + pop {pc} + .align 2, 0 +_08078950: .4byte gUnk_03003BE0 + + thumb_func_start sub_08078954 +sub_08078954: @ 0x08078954 + push {r4, r5, lr} + adds r5, r0, #0 + movs r4, #0 + ldr r0, _08078970 @ =gUnk_03003BE0 + ldrb r1, [r0, #2] + adds r2, r0, #0 + cmp r4, r1 + bhs _080789A6 + ldr r0, [r2, #0xc] + cmp r0, r5 + bne _08078974 + subs r0, r1, #1 + b _0807898C + .align 2, 0 +_08078970: .4byte gUnk_03003BE0 +_08078974: + adds r4, #1 + ldrb r3, [r2, #2] + cmp r4, r3 + bhs _080789A6 + lsls r0, r4, #2 + adds r1, r2, #0 + adds r1, #0xc + adds r0, r0, r1 + ldr r0, [r0] + cmp r0, r5 + bne _08078974 + subs r0, r3, #1 +_0807898C: + strb r0, [r2, #2] + ldrb r0, [r2, #2] + cmp r4, r0 + bhs _080789A6 + lsls r0, r4, #2 + adds r0, #0xc + adds r1, r0, r2 +_0807899A: + ldr r0, [r1, #4] + stm r1!, {r0} + adds r4, #1 + ldrb r0, [r2, #2] + cmp r4, r0 + blo _0807899A +_080789A6: + pop {r4, r5, pc} + + thumb_func_start sub_080789A8 +sub_080789A8: @ 0x080789A8 + push {r4, r5, r6, r7, lr} + mov r7, r8 + push {r7} + ldr r1, _080789BC @ =gUnk_03003BE0 + ldrb r0, [r1] + cmp r0, #0 + beq _080789C0 + ldrb r0, [r1, #1] + b _08078A88 + .align 2, 0 +_080789BC: .4byte gUnk_03003BE0 +_080789C0: + ldr r0, _08078A5C @ =gLinkState + ldr r0, [r0, #0x30] + movs r1, #0x80 + ands r0, r1 + cmp r0, #0 + bne _08078A56 + ldr r0, _08078A60 @ =gLinkEntity + bl sub_080002D0 + adds r4, r0, #0 + cmp r4, #0xf + bls _080789E6 + ldr r0, _08078A64 @ =gUnk_080084BC + adds r1, r4, #0 + subs r1, #0x10 + adds r1, r1, r0 + ldrb r0, [r1] + cmp r0, #0xf + beq _08078A56 +_080789E6: + ldr r0, _08078A5C @ =gLinkState + ldrb r0, [r0, #0x12] + cmp r0, #0x12 + beq _08078A56 + ldr r3, _08078A68 @ =gUnk_03003BE0 + movs r0, #1 + strb r0, [r3] + ldrb r4, [r3, #2] + cmp r4, #0 + beq _08078A2E + ldr r2, _08078A60 @ =gLinkEntity + ldrb r1, [r2, #0x14] + movs r0, #6 + ands r0, r1 + ldr r1, _08078A6C @ =gUnk_0811BFE0 + adds r6, r0, r1 + adds r7, r2, #0 + adds r3, #8 + mov r8, r3 +_08078A0C: + lsls r0, r4, #2 + mov r1, r8 + adds r5, r0, r1 + ldr r1, [r5] + cmp r1, #0 + beq _08078A26 + ldrb r2, [r6] + ldrb r3, [r6, #1] + adds r0, r7, #0 + bl sub_0807A180 + cmp r0, #0 + bne _08078A74 +_08078A26: + subs r4, #1 + ldr r7, _08078A60 @ =gLinkEntity + cmp r4, #0 + bne _08078A0C +_08078A2E: + ldr r0, _08078A60 @ =gLinkEntity + ldrb r1, [r0, #0x14] + movs r2, #6 + ands r2, r1 + ldr r1, _08078A70 @ =gUnk_08007DF4 + adds r2, r2, r1 + movs r1, #0 + ldrsb r1, [r2, r1] + ldrb r2, [r2, #1] + lsls r2, r2, #0x18 + asrs r2, r2, #0x18 + bl sub_0800029C + ldr r4, _08078A68 @ =gUnk_03003BE0 + strh r0, [r4, #4] + movs r1, #6 + bl sub_0806FC24 + cmp r0, #0 + bne _08078A84 +_08078A56: + movs r0, #0 + b _08078A88 + .align 2, 0 +_08078A5C: .4byte gLinkState +_08078A60: .4byte gLinkEntity +_08078A64: .4byte gUnk_080084BC +_08078A68: .4byte gUnk_03003BE0 +_08078A6C: .4byte gUnk_0811BFE0 +_08078A70: .4byte gUnk_08007DF4 +_08078A74: + mov r0, r8 + subs r0, #8 + ldr r1, [r5] + str r1, [r0, #8] + movs r1, #2 + strb r1, [r0, #1] + movs r0, #2 + b _08078A88 +_08078A84: + movs r0, #1 + strb r0, [r4, #1] +_08078A88: + pop {r3} + mov r8, r3 + pop {r4, r5, r6, r7, pc} + .align 2, 0 + + thumb_func_start sub_08078A90 +sub_08078A90: @ 0x08078A90 + push {lr} + adds r1, r0, #0 + ldr r0, _08078AA4 @ =gLinkState + adds r2, r0, #0 + adds r2, #0x8b + ldrb r0, [r2] + cmp r0, #3 + beq _08078AA2 + strb r1, [r2] +_08078AA2: + pop {pc} + .align 2, 0 +_08078AA4: .4byte gLinkState + + thumb_func_start sub_08078AA8 +sub_08078AA8: @ 0x08078AA8 + ldr r3, _08078AB8 @ =gLinkState + movs r2, #0x16 + strb r2, [r3, #0xc] + ldr r2, _08078ABC @ =gUnk_030010A0 + strh r0, [r2, #0x36] + adds r2, #0x35 + strb r1, [r2] + bx lr + .align 2, 0 +_08078AB8: .4byte gLinkState +_08078ABC: .4byte gUnk_030010A0 + + thumb_func_start sub_08078AC0 +sub_08078AC0: @ 0x08078AC0 + push {r4, lr} + ldr r3, _08078AEC @ =gLinkState + mov ip, r3 + movs r3, #0xf + mov r4, ip + strb r3, [r4, #0xc] + mov r3, ip + adds r3, #0x38 + strb r0, [r3] + rsbs r0, r1, #0 + orrs r0, r1 + lsrs r0, r0, #0x1f + mov r1, ip + adds r1, #0x39 + strb r0, [r1] + rsbs r0, r2, #0 + orrs r0, r2 + lsrs r0, r0, #0x1f + adds r1, #1 + strb r0, [r1] + pop {r4, pc} + .align 2, 0 +_08078AEC: .4byte gLinkState + + thumb_func_start sub_08078AF0 +sub_08078AF0: @ 0x08078AF0 + push {r4, lr} + ldr r3, _08078B40 @ =gLinkState + mov ip, r3 + adds r3, #0x38 + movs r4, #0 + strb r1, [r3] + mov r1, ip + adds r1, #0x39 + strb r2, [r1] + adds r1, #1 + strb r4, [r1] + movs r1, #8 + mov r2, ip + strb r1, [r2, #0xc] + adds r2, #0xa8 + movs r1, #0x15 + strb r1, [r2] + mov r1, ip + adds r1, #0x26 + strb r4, [r1] + movs r1, #1 + mov r3, ip + strb r1, [r3, #0x14] + ldr r2, _08078B44 @ =gLinkEntity + str r0, [r2, #0x54] + ldrb r1, [r2, #0x10] + movs r0, #0x7f + ands r0, r1 + strb r0, [r2, #0x10] + ldrb r1, [r2, #0x11] + movs r0, #0x10 + rsbs r0, r0, #0 + ands r0, r1 + movs r1, #2 + orrs r0, r1 + strb r0, [r2, #0x11] + bl sub_0807A108 + pop {r4, pc} + .align 2, 0 +_08078B40: .4byte gLinkState +_08078B44: .4byte gLinkEntity + + thumb_func_start sub_08078B48 +sub_08078B48: @ 0x08078B48 + push {lr} + ldr r1, _08078B80 @ =gLinkState + ldrb r0, [r1, #7] + movs r2, #0x80 + orrs r0, r2 + strb r0, [r1, #7] + ldrb r0, [r1, #0xb] + orrs r0, r2 + strb r0, [r1, #0xb] + ldrb r0, [r1, #0xa] + orrs r2, r0 + strb r2, [r1, #0xa] + adds r2, r1, #0 + adds r2, #0x27 + movs r0, #2 + strb r0, [r2] + adds r0, r1, #0 + adds r0, #0xa8 + ldrb r0, [r0] + subs r0, #4 + adds r2, r1, #0 + cmp r0, #0x19 + bhi _08078BF8 + lsls r0, r0, #2 + ldr r1, _08078B84 @ =_08078B88 + adds r0, r0, r1 + ldr r0, [r0] + mov pc, r0 + .align 2, 0 +_08078B80: .4byte gLinkState +_08078B84: .4byte _08078B88 +_08078B88: @ jump table + .4byte _08078C04 @ case 0 + .4byte _08078C04 @ case 1 + .4byte _08078BF8 @ case 2 + .4byte _08078BF8 @ case 3 + .4byte _08078BF8 @ case 4 + .4byte _08078BF0 @ case 5 + .4byte _08078BF8 @ case 6 + .4byte _08078BF8 @ case 7 + .4byte _08078BF8 @ case 8 + .4byte _08078BF8 @ case 9 + .4byte _08078BF8 @ case 10 + .4byte _08078BF8 @ case 11 + .4byte _08078BF8 @ case 12 + .4byte _08078BF8 @ case 13 + .4byte _08078BF8 @ case 14 + .4byte _08078BF8 @ case 15 + .4byte _08078BF8 @ case 16 + .4byte _08078BF8 @ case 17 + .4byte _08078BF8 @ case 18 + .4byte _08078BF8 @ case 19 + .4byte _08078BF8 @ case 20 + .4byte _08078C04 @ case 21 + .4byte _08078C04 @ case 22 + .4byte _08078BF8 @ case 23 + .4byte _08078BF8 @ case 24 + .4byte _08078C04 @ case 25 +_08078BF0: + ldr r0, [r2, #0x30] + ldr r1, _08078C18 @ =0xFFFBFFFF + ands r0, r1 + str r0, [r2, #0x30] +_08078BF8: + ldr r0, _08078C1C @ =gRoomVars + ldrb r0, [r0, #6] + cmp r0, #0 + bne _08078C04 + movs r0, #1 + strb r0, [r2, #0x1a] +_08078C04: + ldr r0, _08078C20 @ =gLinkEntity + adds r0, #0x3d + movs r1, #0xfe + strb r1, [r0] + adds r1, r2, #0 + adds r1, #0x8a + movs r0, #2 + strb r0, [r1] + pop {pc} + .align 2, 0 +_08078C18: .4byte 0xFFFBFFFF +_08078C1C: .4byte gRoomVars +_08078C20: .4byte gLinkEntity + + thumb_func_start sub_08078C24 +sub_08078C24: @ 0x08078C24 + push {lr} + ldr r3, _08078CAC @ =gLinkState + movs r2, #0 + strb r2, [r3] + strb r2, [r3, #1] + strb r2, [r3, #2] + strb r2, [r3, #3] + strb r2, [r3, #4] + strb r2, [r3, #5] + strb r2, [r3, #6] + strb r2, [r3, #7] + movs r0, #0 + strh r2, [r3, #8] + strb r0, [r3, #0xa] + strb r0, [r3, #0xb] + movs r1, #0x35 + adds r1, r1, r3 + mov ip, r1 + adds r1, r3, #0 + adds r1, #0x36 + strb r0, [r1] + strb r0, [r3, #0xc] + strb r0, [r3, #0xd] + strb r0, [r3, #0xe] + strb r0, [r3, #0x11] + strb r0, [r3, #0x12] + strb r0, [r3, #0x13] + strb r0, [r3, #0x14] + strb r0, [r3, #0x1b] + strb r0, [r3, #0x1e] + strb r0, [r3, #0x1f] + subs r1, #0x16 + strb r0, [r1] + adds r1, #1 + strb r0, [r1] + strh r2, [r3, #0x22] + strh r2, [r3, #0x24] + adds r1, #5 + strb r0, [r1] + str r2, [r3, #0x2c] + adds r1, #0x5a + strh r2, [r1] + mov r1, ip + strb r0, [r1] + str r2, [r3, #0x30] + adds r1, r3, #0 + adds r1, #0x38 + strb r0, [r1] + adds r1, #1 + strb r0, [r1] + adds r1, #1 + strb r0, [r1] + adds r1, #5 + strb r0, [r1] + subs r1, #3 + strb r0, [r1] + movs r0, #1 + rsbs r0, r0, #0 + adds r1, #4 + movs r2, #0x40 + bl _DmaFill32 + ldr r0, _08078CB0 @ =gUnk_03003DF0 + movs r1, #0xc4 + lsls r1, r1, #1 + bl sub_0801D630 + pop {pc} + .align 2, 0 +_08078CAC: .4byte gLinkState +_08078CB0: .4byte gUnk_03003DF0 + + thumb_func_start sub_08078CB4 +sub_08078CB4: @ 0x08078CB4 + push {lr} + ldr r0, _08078CCC @ =gLinkState + ldrb r0, [r0, #5] + subs r0, #3 + lsls r0, r0, #0x18 + lsrs r0, r0, #0x18 + cmp r0, #1 + bhi _08078CC8 + bl sub_08078D60 +_08078CC8: + pop {pc} + .align 2, 0 +_08078CCC: .4byte gLinkState + + thumb_func_start sub_08078CD0 +sub_08078CD0: @ 0x08078CD0 + push {r4, r5, lr} + adds r5, r0, #0 + ldr r4, [r5, #0x70] + ldrh r0, [r5, #0x36] + subs r0, #1 + strh r0, [r4, #0x36] + ldrb r1, [r5, #0x1b] + lsrs r1, r1, #6 + lsls r1, r1, #6 + ldrb r2, [r4, #0x1b] + movs r0, #0x3f + ands r0, r2 + orrs r0, r1 + strb r0, [r4, #0x1b] + adds r0, r5, #0 + adds r0, #0x38 + ldrb r1, [r0] + adds r0, r4, #0 + adds r0, #0x38 + strb r1, [r0] + ldr r1, _08078D28 @ =gUnk_0811C01C + ldr r0, _08078D2C @ =gLinkState + ldr r0, [r0, #0x2c] + ldrb r0, [r0, #0x1e] + adds r0, r0, r1 + ldrb r2, [r0] + ldr r3, _08078D30 @ =gUnk_0811C0B0 + ldrb r1, [r4, #0x1c] + movs r0, #0x30 + ands r0, r1 + lsrs r0, r0, #2 + adds r0, r0, r3 + lsls r2, r2, #1 + ldr r0, [r0] + adds r2, r0, r2 + ldrb r0, [r5, #0x18] + lsls r0, r0, #0x19 + cmp r0, #0 + bge _08078D34 + movs r1, #0 + ldrsb r1, [r2, r1] + ldrh r0, [r5, #0x2e] + subs r0, r0, r1 + b _08078D3C + .align 2, 0 +_08078D28: .4byte gUnk_0811C01C +_08078D2C: .4byte gLinkState +_08078D30: .4byte gUnk_0811C0B0 +_08078D34: + movs r0, #0 + ldrsb r0, [r2, r0] + ldrh r1, [r5, #0x2e] + adds r0, r0, r1 +_08078D3C: + strh r0, [r4, #0x2e] + movs r0, #1 + ldrsb r0, [r2, r0] + ldrh r1, [r5, #0x32] + adds r0, r0, r1 + strh r0, [r4, #0x32] + adds r0, r5, #0 + movs r1, #0 + adds r2, r4, #0 + bl sub_0806FEBC + ldr r1, [r4, #0x50] + cmp r1, #0 + beq _08078D5E + adds r0, r4, #0 + bl CopyPosition +_08078D5E: + pop {r4, r5, pc} + + thumb_func_start sub_08078D60 +sub_08078D60: @ 0x08078D60 + push {r4, r5, r6, lr} + ldr r1, _08078DCC @ =gLinkEntity + ldr r0, [r1, #0x74] + ldr r4, [r0, #0x54] + ldrb r0, [r4, #0xc] + adds r6, r1, #0 + cmp r0, #2 + beq _08078D72 + b _08078E82 +_08078D72: + adds r0, r6, #0 + adds r0, #0x63 + ldrb r0, [r0] + lsls r0, r0, #0x18 + asrs r0, r0, #0x18 + ldrh r1, [r6, #0x36] + adds r0, r0, r1 + strh r0, [r4, #0x36] + ldrb r1, [r6, #0x1b] + lsrs r1, r1, #6 + lsls r1, r1, #6 + ldrb r2, [r4, #0x1b] + movs r0, #0x3f + ands r0, r2 + orrs r0, r1 + strb r0, [r4, #0x1b] + adds r0, r6, #0 + adds r0, #0x38 + ldrb r1, [r0] + adds r0, r4, #0 + adds r0, #0x38 + strb r1, [r0] + adds r0, r6, #0 + adds r0, #0x5a + ldrb r0, [r0] + movs r2, #0x7f + ands r2, r0 + ldr r1, _08078DD0 @ =gUnk_0811C0E8 + ldrb r0, [r4, #0x16] + lsrs r0, r0, #4 + lsls r0, r0, #2 + adds r0, r0, r1 + ldr r1, [r0] + ldrb r0, [r6, #0x18] + lsls r0, r0, #0x19 + cmp r0, #0 + bge _08078DD4 + adds r2, r1, r2 + movs r1, #0 + ldrsb r1, [r2, r1] + ldrh r0, [r6, #0x2e] + subs r0, r0, r1 + strh r0, [r4, #0x2e] + adds r1, r2, #0 + b _08078DE0 + .align 2, 0 +_08078DCC: .4byte gLinkEntity +_08078DD0: .4byte gUnk_0811C0E8 +_08078DD4: + adds r1, r1, r2 + movs r0, #0 + ldrsb r0, [r1, r0] + ldrh r2, [r6, #0x2e] + adds r0, r0, r2 + strh r0, [r4, #0x2e] +_08078DE0: + movs r0, #1 + ldrsb r0, [r1, r0] + ldrh r1, [r4, #0x36] + adds r0, r0, r1 + strh r0, [r4, #0x36] + adds r5, r6, #0 + ldrh r0, [r5, #0x32] + strh r0, [r4, #0x32] + adds r0, r5, #0 + adds r1, r4, #0 + bl ResolveEntityOnTop + ldr r0, _08078E34 @ =gLinkState + ldrb r0, [r0, #5] + cmp r0, #4 + bne _08078E4C + ldrb r1, [r5, #0x19] + lsrs r1, r1, #6 + lsls r1, r1, #6 + ldrb r2, [r4, #0x19] + movs r0, #0x3f + ands r0, r2 + orrs r0, r1 + strb r0, [r4, #0x19] + adds r0, r4, #0 + bl sub_0806F8DC + ldrb r1, [r4, #0x16] + movs r0, #0xf + ands r0, r1 + cmp r0, #2 + bne _08078E82 + ldr r0, _08078E38 @ =gUnk_030010A0 + ldr r1, [r0] + movs r0, #3 + ands r1, r0 + cmp r1, #1 + beq _08078E3C + cmp r1, #3 + beq _08078E44 + b _08078E82 + .align 2, 0 +_08078E34: .4byte gLinkState +_08078E38: .4byte gUnk_030010A0 +_08078E3C: + ldrh r0, [r4, #0x2e] + adds r0, #1 + strh r0, [r4, #0x2e] + b _08078E82 +_08078E44: + ldrh r0, [r4, #0x2e] + subs r0, #1 + strh r0, [r4, #0x2e] + b _08078E82 +_08078E4C: + ldrb r0, [r5, #0x14] + lsrs r0, r0, #1 + cmp r0, #0 + beq _08078E62 + adds r0, r5, #0 + adds r0, #0x29 + ldrb r1, [r0] + lsls r1, r1, #0x1d + lsrs r1, r1, #0x1d + subs r1, #1 + b _08078E6E +_08078E62: + adds r0, r6, #0 + adds r0, #0x29 + ldrb r1, [r0] + lsls r1, r1, #0x1d + lsrs r1, r1, #0x1d + adds r1, #1 +_08078E6E: + adds r3, r4, #0 + adds r3, #0x29 + movs r0, #7 + ands r1, r0 + ldrb r2, [r3] + movs r0, #8 + rsbs r0, r0, #0 + ands r0, r2 + orrs r0, r1 + strb r0, [r3] +_08078E82: + pop {r4, r5, r6, pc} + + thumb_func_start sub_08078E84 +sub_08078E84: @ 0x08078E84 + push {r4, r5, lr} + adds r5, r0, #0 + adds r4, r1, #0 + ldr r0, _08078ED0 @ =gLinkEntity + cmp r4, r0 + bne _08078EAC + adds r0, r5, #0 + bl sub_08079BD8 + adds r0, r4, #0 + adds r0, #0x62 + ldrb r0, [r0] + adds r1, r5, #0 + adds r1, #0x62 + strb r0, [r1] + adds r0, r4, #0 + adds r0, #0x63 + ldrb r0, [r0] + adds r1, #1 + strb r0, [r1] +_08078EAC: + ldr r0, _08078ED4 @ =gUnk_080029B4 + ldrh r2, [r4, #0x12] + lsls r2, r2, #4 + adds r0, #4 + adds r2, r2, r0 + ldrb r1, [r4, #0x1e] + lsls r1, r1, #2 + ldr r0, [r2] + adds r0, r0, r1 + ldrb r0, [r0, #1] + cmp r0, #0 + beq _08078ED8 + adds r0, r4, #0 + movs r1, #1 + adds r2, r5, #0 + bl sub_0806FEBC + b _08078EE2 + .align 2, 0 +_08078ED0: .4byte gLinkEntity +_08078ED4: .4byte gUnk_080029B4 +_08078ED8: + adds r0, r4, #0 + movs r1, #3 + adds r2, r5, #0 + bl sub_0806FEBC +_08078EE2: + pop {r4, r5, pc} + + thumb_func_start sub_08078EE4 +sub_08078EE4: @ 0x08078EE4 + ldr r2, _08078EF4 @ =gLinkEntity + ldr r1, _08078EF8 @ =gLinkState + ldrh r0, [r1, #0x16] + strh r0, [r2, #0x2e] + ldrh r0, [r1, #0x18] + strh r0, [r2, #0x32] + bx lr + .align 2, 0 +_08078EF4: .4byte gLinkEntity +_08078EF8: .4byte gLinkState + + thumb_func_start sub_08078EFC +sub_08078EFC: @ 0x08078EFC + push {lr} + ldr r3, _08078F18 @ =gLinkState + ldrb r2, [r3, #0xc] + cmp r2, #0 + beq _08078F20 + ldr r0, _08078F1C @ =gLinkEntity + movs r1, #0 + strb r2, [r0, #0xc] + strb r1, [r0, #0xd] + strb r1, [r3, #0xc] + bl sub_08070680 + movs r0, #1 + b _08078F22 + .align 2, 0 +_08078F18: .4byte gLinkState +_08078F1C: .4byte gLinkEntity +_08078F20: + movs r0, #0 +_08078F22: + pop {pc} + + thumb_func_start sub_08078F24 +sub_08078F24: @ 0x08078F24 + push {r4, lr} + ldr r4, _08078F38 @ =gLinkState + ldrb r3, [r4, #0xd] + movs r0, #0x80 + ands r0, r3 + cmp r0, #0 + beq _08078F3C + bl sub_08078F60 + b _08078F5A + .align 2, 0 +_08078F38: .4byte gLinkState +_08078F3C: + ldr r2, _08078F5C @ =gSineTable + lsls r0, r3, #4 + adds r0, r0, r2 + ldrh r1, [r0] + adds r0, r4, #0 + adds r0, #0x8c + strh r1, [r0] + lsls r0, r3, #4 + adds r0, #0x80 + adds r0, r0, r2 + ldrh r0, [r0] + rsbs r0, r0, #0 + adds r1, r4, #0 + adds r1, #0x8e + strh r0, [r1] +_08078F5A: + pop {r4, pc} + .align 2, 0 +_08078F5C: .4byte gSineTable + + thumb_func_start sub_08078F60 +sub_08078F60: @ 0x08078F60 + ldr r0, _08078F70 @ =gLinkState + adds r1, r0, #0 + adds r1, #0x8c + movs r2, #0 + strh r2, [r1] + adds r0, #0x8e + strh r2, [r0] + bx lr + .align 2, 0 +_08078F70: .4byte gLinkState + + thumb_func_start sub_08078F74 +sub_08078F74: @ 0x08078F74 + push {lr} + adds r2, r0, #0 + ldr r0, _08078FA4 @ =gArea + ldrb r0, [r0, #0x18] + cmp r0, #3 + bne _08078FAC + ldr r3, _08078FA8 @ =gLinkState + adds r0, r3, #0 + adds r0, #0x35 + ldrb r0, [r0] + cmp r0, #0xff + beq _08078FAC + movs r1, #0 + movs r0, #0x81 + strb r0, [r3, #2] + movs r0, #0x15 + strb r0, [r2, #0xc] + strb r1, [r2, #0xd] + movs r0, #0x80 + lsls r0, r0, #0xa + str r0, [r2, #0x20] + movs r0, #1 + b _08078FAE + .align 2, 0 +_08078FA4: .4byte gArea +_08078FA8: .4byte gLinkState +_08078FAC: + movs r0, #0 +_08078FAE: + pop {pc} + + thumb_func_start sub_08078FB0 +sub_08078FB0: @ 0x08078FB0 + push {r4, r5, r6, lr} + adds r4, r0, #0 + ldr r5, _08078FE0 @ =gLinkState + ldrb r1, [r5, #6] + movs r6, #0x80 + adds r0, r6, #0 + ands r0, r1 + cmp r0, #0 + bne _08078FCA + adds r1, r5, #0 + adds r1, #0x35 + movs r0, #0xff + strb r0, [r1] +_08078FCA: + adds r0, r4, #0 + bl sub_08079064 + ldr r1, [r5, #0x30] + movs r0, #8 + ands r0, r1 + cmp r0, #0 + beq _08078FE4 + movs r2, #0x58 + b _08078FFA + .align 2, 0 +_08078FE0: .4byte gLinkState +_08078FE4: + ands r1, r6 + cmp r1, #0 + beq _08078FEE + movs r2, #0x18 + b _08078FFA +_08078FEE: + ldrh r0, [r5, #8] + lsrs r0, r0, #8 + movs r2, #0xb8 + cmp r0, #7 + bne _08078FFA + movs r2, #0x34 +_08078FFA: + ldr r0, _08079014 @ =gLinkState + adds r3, r0, #0 + ldrb r1, [r0, #8] + cmp r2, r1 + bls _08079040 + ldrb r0, [r4, #0x14] + adds r2, r0, #0 + cmp r2, #4 + bls _08079018 + ldrb r0, [r4, #0x18] + movs r1, #0x40 + orrs r0, r1 + b _08079020 + .align 2, 0 +_08079014: .4byte gLinkState +_08079018: + ldrb r1, [r4, #0x18] + movs r0, #0x41 + rsbs r0, r0, #0 + ands r0, r1 +_08079020: + strb r0, [r4, #0x18] + ldr r0, [r3, #0x30] + movs r1, #0x80 + lsls r1, r1, #0xc + ands r0, r1 + cmp r0, #0 + beq _08079036 + ldrh r1, [r3, #8] + ldrb r0, [r4, #0x14] + adds r2, r1, r0 + b _08079042 +_08079036: + lsls r0, r2, #0x18 + lsrs r0, r0, #0x19 + ldrh r3, [r3, #8] + adds r2, r0, r3 + b _08079042 +_08079040: + ldrh r2, [r0, #8] +_08079042: + ldrh r0, [r4, #0x12] + lsls r0, r0, #8 + adds r1, r4, #0 + adds r1, #0x58 + ldrb r1, [r1] + orrs r0, r1 + cmp r2, r0 + beq _08079062 + lsrs r0, r2, #8 + strh r0, [r4, #0x12] + movs r0, #0xff + ands r2, r0 + adds r0, r4, #0 + adds r1, r2, #0 + bl InitAnimationForceUpdate +_08079062: + pop {r4, r5, r6, pc} + + thumb_func_start sub_08079064 +sub_08079064: @ 0x08079064 + push {r4, r5, r6, lr} + adds r6, r0, #0 + ldr r0, _0807909C @ =gLinkState + ldr r1, [r0, #0x30] + ldr r2, _080790A0 @ =0x00100080 + ands r1, r2 + adds r5, r0, #0 + cmp r1, #0 + bne _080790DE + movs r3, #0 + movs r2, #0 + ldr r1, _080790A4 @ =gUnk_03000B80 +_0807907C: + ldrb r0, [r1, #0xf] + cmp r0, r3 + bls _08079086 + adds r3, r0, #0 + ldrh r4, [r1, #0x10] +_08079086: + adds r1, #0x1c + adds r2, #1 + cmp r2, #3 + bls _0807907C + adds r2, r5, #0 + ldrb r0, [r2, #0xe] + cmp r0, r3 + bhs _080790A8 + strh r4, [r2, #8] + b _080790DE + .align 2, 0 +_0807909C: .4byte gLinkState +_080790A0: .4byte 0x00100080 +_080790A4: .4byte gUnk_03000B80 +_080790A8: + adds r0, r2, #0 + adds r0, #0x26 + ldrb r1, [r0] + movs r0, #0x80 + ands r0, r1 + cmp r0, #0 + beq _080790C0 + ldr r0, _080790BC @ =0x000002BE + strh r0, [r2, #8] + b _080790DE + .align 2, 0 +_080790BC: .4byte 0x000002BE +_080790C0: + ldrh r1, [r5, #8] + movs r0, #0xc1 + lsls r0, r0, #3 + cmp r1, r0 + beq _080790D8 + movs r0, #0x82 + lsls r0, r0, #1 + cmp r1, r0 + beq _080790D8 + ldr r0, _080790E0 @ =0x00000404 + cmp r1, r0 + bne _080790DE +_080790D8: + adds r0, r6, #0 + bl sub_080790E4 +_080790DE: + pop {r4, r5, r6, pc} + .align 2, 0 +_080790E0: .4byte 0x00000404 + + thumb_func_start sub_080790E4 +sub_080790E4: @ 0x080790E4 + push {r4, r5, lr} + adds r4, r0, #0 + ldr r5, _08079128 @ =gLinkState + ldrb r0, [r5, #0xb] + cmp r0, #0 + bne _08079182 + movs r0, #0x10 + bl sub_080793E4 + cmp r0, #0 + beq _0807912C + adds r1, r4, #0 + adds r1, #0x3d + movs r0, #0x14 + strb r0, [r1] + adds r1, #5 + movs r0, #4 + strb r0, [r1] + ldrb r0, [r4, #0x14] + lsls r0, r0, #2 + movs r1, #0x10 + eors r0, r1 + adds r1, r4, #0 + adds r1, #0x3e + strb r0, [r1] + movs r0, #2 + rsbs r0, r0, #0 + bl ModHealth + movs r0, #0x7a + bl PlaySFX + b _08079182 + .align 2, 0 +_08079128: .4byte gLinkState +_0807912C: + ldrb r1, [r5, #6] + movs r0, #0x80 + ands r0, r1 + cmp r0, #0 + bne _08079182 + cmp r1, #0 + bne _08079150 + movs r0, #1 + bl sub_080793E4 + cmp r0, #0 + beq _0807914C + ldrb r0, [r4, #0xf] + cmp r0, #5 + bhi _08079154 + adds r0, #1 +_0807914C: + strb r0, [r4, #0xf] + b _08079182 +_08079150: + subs r0, r1, #1 + strb r0, [r5, #6] +_08079154: + ldr r2, _08079174 @ =gLinkState + ldrb r0, [r4, #0x14] + adds r1, r2, #0 + adds r1, #0x35 + strb r0, [r1] + adds r1, #0x73 + movs r0, #0x19 + strb r0, [r1] + ldr r0, [r2, #0x30] + movs r1, #8 + ands r0, r1 + cmp r0, #0 + beq _0807917C + ldr r0, _08079178 @ =0x0000093C + b _08079180 + .align 2, 0 +_08079174: .4byte gLinkState +_08079178: .4byte 0x0000093C +_0807917C: + movs r0, #0xcf + lsls r0, r0, #2 +_08079180: + strh r0, [r2, #8] +_08079182: + pop {r4, r5, pc} + + thumb_func_start sub_08079184 +sub_08079184: @ 0x08079184 + ldr r0, _08079194 @ =gLinkState + movs r1, #0 + strb r1, [r0, #5] + strb r1, [r0, #1] + ldr r0, _08079198 @ =gLinkEntity + str r1, [r0, #0x74] + bx lr + .align 2, 0 +_08079194: .4byte gLinkState +_08079198: .4byte gLinkEntity + + thumb_func_start sub_0807919C +sub_0807919C: @ 0x0807919C + push {lr} + ldr r0, _080791B0 @ =gLinkState + ldr r0, [r0, #0x30] + movs r1, #0x80 + ands r0, r1 + cmp r0, #0 + bne _080791B4 + bl sub_080791BC + b _080791B8 + .align 2, 0 +_080791B0: .4byte gLinkState +_080791B4: + bl sub_08079258 +_080791B8: + pop {pc} + .align 2, 0 + + thumb_func_start sub_080791BC +sub_080791BC: @ 0x080791BC + ldr r0, _080791CC @ =gLinkEntity + movs r2, #0 + movs r1, #1 + strb r1, [r0, #0xc] + strb r2, [r0, #0xd] + strb r2, [r0, #0xf] + bx lr + .align 2, 0 +_080791CC: .4byte gLinkEntity + + thumb_func_start sub_080791D0 +sub_080791D0: @ 0x080791D0 + push {lr} + ldr r3, _0807920C @ =gLinkState + ldr r0, [r3, #0x30] + movs r1, #0x40 + ands r0, r1 + cmp r0, #0 + bne _080791E8 + ldr r0, _08079210 @ =gLinkEntity + ldrb r1, [r0, #0x18] + movs r2, #3 + orrs r1, r2 + strb r1, [r0, #0x18] +_080791E8: + ldr r0, [r3, #0x30] + movs r1, #0x80 + ands r0, r1 + cmp r0, #0 + bne _08079214 + ldr r2, _08079210 @ =gLinkEntity + adds r2, #0x29 + ldrb r1, [r2] + movs r0, #0x39 + rsbs r0, r0, #0 + ands r0, r1 + movs r1, #8 + orrs r0, r1 + strb r0, [r2] + bl sub_0807921C + b _08079218 + .align 2, 0 +_0807920C: .4byte gLinkState +_08079210: .4byte gLinkEntity +_08079214: + bl sub_08079258 +_08079218: + pop {pc} + .align 2, 0 + + thumb_func_start sub_0807921C +sub_0807921C: @ 0x0807921C + push {r4, lr} + ldr r4, _0807924C @ =gLinkEntity + ldrb r1, [r4, #0x10] + movs r0, #0x80 + orrs r0, r1 + strb r0, [r4, #0x10] + ldrb r0, [r4, #0x18] + movs r1, #3 + orrs r0, r1 + strb r0, [r4, #0x18] + ldr r2, _08079250 @ =gLinkState + ldr r0, [r2, #0x30] + ldr r1, _08079254 @ =0xFECBF6FA + ands r0, r1 + str r0, [r2, #0x30] + bl sub_08079938 + bl sub_080791BC + adds r0, r4, #0 + bl sub_0805E374 + pop {r4, pc} + .align 2, 0 +_0807924C: .4byte gLinkEntity +_08079250: .4byte gLinkState +_08079254: .4byte 0xFECBF6FA + + thumb_func_start sub_08079258 +sub_08079258: @ 0x08079258 + push {r4, lr} + ldr r4, _080792AC @ =gLinkState + ldr r0, [r4, #0x30] + movs r1, #0x40 + ands r0, r1 + ldr r3, _080792B0 @ =gLinkEntity + cmp r0, #0 + bne _08079278 + ldrb r1, [r3, #0x10] + movs r0, #0x80 + orrs r0, r1 + strb r0, [r3, #0x10] + ldrb r0, [r3, #0x18] + movs r1, #3 + orrs r0, r1 + strb r0, [r3, #0x18] +_08079278: + movs r0, #9 + strb r0, [r3, #0xc] + movs r0, #1 + strb r0, [r3, #0xd] + adds r2, r3, #0 + adds r2, #0x3c + ldrb r1, [r2] + movs r0, #0xfb + ands r0, r1 + strb r0, [r2] + movs r2, #0 + ldr r0, _080792B4 @ =0x00000C18 + strh r0, [r4, #8] + ldr r0, [r4, #0x30] + ldr r1, _080792B8 @ =0xFECFFEFA + ands r0, r1 + str r0, [r4, #0x30] + adds r0, r4, #0 + adds r0, #0x26 + strb r2, [r0] + strb r2, [r4, #0xc] + adds r0, r3, #0 + bl sub_0805E374 + pop {r4, pc} + .align 2, 0 +_080792AC: .4byte gLinkState +_080792B0: .4byte gLinkEntity +_080792B4: .4byte 0x00000C18 +_080792B8: .4byte 0xFECFFEFA + + thumb_func_start sub_080792BC +sub_080792BC: @ 0x080792BC + push {r4, lr} + ldr r3, _080792D0 @ =gLinkState + movs r4, #0x13 + strb r4, [r3, #0xc] + adds r3, #0x38 + strb r2, [r3] + ldr r2, _080792D4 @ =gLinkEntity + strh r0, [r2, #0x24] + strb r1, [r2, #0x15] + pop {r4, pc} + .align 2, 0 +_080792D0: .4byte gLinkState +_080792D4: .4byte gLinkEntity + + thumb_func_start sub_080792D8 +sub_080792D8: @ 0x080792D8 + push {r4, r5, r6, lr} + ldr r5, _08079344 @ =gLinkEntity + adds r3, r5, #0 + adds r3, #0x42 + ldrb r0, [r3] + cmp r0, #0 + beq _080793E0 + ldrb r2, [r5, #0xc] + cmp r2, #0xb + beq _08079338 + ldr r0, _08079348 @ =gLinkState + ldrb r1, [r0, #0x1e] + adds r6, r0, #0 + cmp r1, #0 + bne _08079338 + ldrb r0, [r6, #5] + subs r0, #1 + lsls r0, r0, #0x18 + lsrs r0, r0, #0x18 + cmp r0, #3 + bls _08079338 + ldrb r0, [r6, #2] + cmp r0, #0 + bne _08079338 + ldrb r0, [r6, #0x12] + cmp r0, #0xff + beq _08079338 + ldrb r1, [r6, #7] + movs r0, #0x80 + ands r0, r1 + cmp r0, #0 + bne _08079338 + adds r0, r6, #0 + adds r0, #0x26 + ldrb r1, [r0] + movs r0, #0xf + ands r0, r1 + subs r0, #1 + cmp r0, #0 + bgt _08079338 + cmp r2, #3 + beq _08079338 + ldr r1, [r6, #0x30] + movs r0, #0x80 + lsls r0, r0, #0xb + ands r1, r0 + cmp r1, #0 + beq _0807934C +_08079338: + adds r1, r5, #0 + adds r1, #0x42 + movs r0, #0 + strb r0, [r1] + b _080793E0 + .align 2, 0 +_08079344: .4byte gLinkEntity +_08079348: .4byte gLinkState +_0807934C: + cmp r2, #0x1d + bne _0807935E + adds r0, r5, #0 + adds r0, #0x3e + ldrb r0, [r0] + cmp r0, #0x10 + beq _0807935E + strb r1, [r3] + b _080793E0 +_0807935E: + adds r0, r5, #0 + adds r0, #0x42 + ldrb r3, [r0] + movs r1, #0 + ldrsb r1, [r0, r1] + adds r2, r0, #0 + cmp r1, #0 + ble _08079372 + subs r0, r3, #1 + b _08079374 +_08079372: + adds r0, r3, #1 +_08079374: + strb r0, [r2] + ldrb r0, [r2] + cmp r0, #0 + beq _080793E0 + adds r4, r6, #0 + ldrb r0, [r4, #7] + movs r1, #0xdf + ands r1, r0 + strb r1, [r4, #7] + adds r0, r5, #0 + adds r0, #0x3d + ldrb r0, [r0] + lsls r0, r0, #0x18 + asrs r0, r0, #0x18 + cmp r0, #0 + ble _080793CA + adds r0, r4, #0 + adds r0, #0x26 + ldrb r0, [r0] + cmp r0, #0 + bne _080793CA + ldr r0, [r4, #0x30] + movs r1, #0x80 + ands r0, r1 + cmp r0, #0 + bne _080793CA + ldrb r0, [r4, #2] + cmp r0, #0 + bne _080793CA + bl sub_08077B2C + ldr r0, [r4, #0x30] + movs r1, #8 + ands r0, r1 + cmp r0, #0 + bne _080793C4 + movs r0, #0x8a + lsls r0, r0, #1 + strh r0, [r4, #8] + b _080793CA +_080793C4: + movs r0, #0x83 + lsls r0, r0, #3 + strh r0, [r6, #8] +_080793CA: + movs r1, #0xa0 + lsls r1, r1, #2 + adds r4, r5, #0 + adds r4, #0x3e + ldrb r2, [r4] + adds r0, r5, #0 + bl sub_080027EA + ldrb r0, [r4] + bl sub_0807A5B8 +_080793E0: + pop {r4, r5, r6, pc} + .align 2, 0 + + thumb_func_start sub_080793E4 +sub_080793E4: @ 0x080793E4 + push {r4, r5, lr} + adds r5, r0, #0 + ldr r0, _080793FC @ =gLinkState + adds r0, #0x26 + ldrb r0, [r0] + cmp r0, #0 + bne _08079408 + ldr r1, _08079400 @ =gUnk_0811C0F8 + ldr r0, _08079404 @ =gLinkEntity + ldrb r0, [r0, #0x14] + lsrs r0, r0, #1 + b _08079410 + .align 2, 0 +_080793FC: .4byte gLinkState +_08079400: .4byte gUnk_0811C0F8 +_08079404: .4byte gLinkEntity +_08079408: + ldr r1, _08079448 @ =gUnk_0811C0F8 + ldr r0, _0807944C @ =gLinkEntity + ldrb r0, [r0, #0x15] + lsrs r0, r0, #2 +_08079410: + lsls r0, r0, #1 + adds r0, r0, r1 + ldrh r4, [r0] + bl sub_08079778 + cmp r0, #0 + beq _08079454 + ldr r0, _08079450 @ =gLinkState + adds r0, #0x90 + ldrh r0, [r0] + ands r0, r4 + cmp r0, #0 + beq _08079454 + cmp r5, #0 + beq _08079442 + bl sub_0807A500 + ldr r1, _0807944C @ =gLinkEntity + adds r1, #0x38 + ldrb r1, [r1] + adds r2, r5, #0 + bl sub_080002F0 + cmp r0, #0 + beq _08079454 +_08079442: + movs r0, #1 + b _08079456 + .align 2, 0 +_08079448: .4byte gUnk_0811C0F8 +_0807944C: .4byte gLinkEntity +_08079450: .4byte gLinkState +_08079454: + movs r0, #0 +_08079456: + pop {r4, r5, pc} + + thumb_func_start sub_08079458 +sub_08079458: @ 0x08079458 + push {r4, r5, lr} + ldr r4, _08079498 @ =gLinkEntity + movs r1, #0 + movs r0, #0x19 + strb r0, [r4, #0xc] + str r1, [r4, #0x34] + str r1, [r4, #0x20] + adds r0, r4, #0 + adds r0, #0x42 + strb r1, [r0] + bl sub_08078EE4 + ldr r2, _0807949C @ =gLinkState + ldr r1, [r2, #0x30] + movs r0, #0x80 + lsls r0, r0, #0xa + ands r0, r1 + cmp r0, #0 + bne _08079514 + movs r0, #0x80 + lsls r0, r0, #9 + ands r1, r0 + cmp r1, #0 + beq _080794E4 + adds r0, r2, #0 + adds r0, #0x84 + ldr r1, [r0] + ldrh r0, [r1, #0x2e] + strh r0, [r4, #0x2e] + ldrh r0, [r1, #0x32] + strh r0, [r4, #0x32] + b _08079514 + .align 2, 0 +_08079498: .4byte gLinkEntity +_0807949C: .4byte gLinkState +_080794A0: + ldr r2, _080794DC @ =gLinkEntity + ldr r0, [r4] + lsrs r0, r0, #0x1e + adds r1, r2, #0 + adds r1, #0x38 + strb r0, [r1] + ldr r3, _080794E0 @ =gRoomControls + ldr r0, [r4] + movs r1, #0x3f + ands r0, r1 + lsls r0, r0, #4 + ldrh r1, [r3, #6] + adds r0, r0, r1 + adds r0, #8 + strh r0, [r2, #0x2e] + ldr r0, [r4] + movs r1, #0xfc + lsls r1, r1, #4 + ands r0, r1 + lsrs r0, r0, #2 + ldrh r3, [r3, #8] + adds r0, r0, r3 + adds r0, #8 + strh r0, [r2, #0x32] + ldrb r1, [r2, #0x10] + movs r0, #0x80 + orrs r0, r1 + strb r0, [r2, #0x10] + b _08079514 + .align 2, 0 +_080794DC: .4byte gLinkEntity +_080794E0: .4byte gRoomControls +_080794E4: + movs r5, #0 + ldr r1, [r2, #0x40] + movs r0, #1 + rsbs r0, r0, #0 + cmp r1, r0 + beq _08079514 + adds r4, r2, #0 + adds r4, #0x40 +_080794F4: + ldr r1, [r4] + ldrh r0, [r4] + lsrs r1, r1, #0x1e + bl sub_080002E0 + cmp r0, #0xf + bne _080794A0 + adds r4, #4 + adds r5, #1 + cmp r5, #0xf + bhi _08079514 + ldr r1, [r4] + movs r0, #1 + rsbs r0, r0, #0 + cmp r1, r0 + bne _080794F4 +_08079514: + ldr r0, _0807951C @ =gLinkEntity + bl UpdateSpriteForCollisionLayer + pop {r4, r5, pc} + .align 2, 0 +_0807951C: .4byte gLinkEntity + + thumb_func_start sub_08079520 +sub_08079520: @ 0x08079520 + push {lr} + adds r1, r0, #0 + ldr r0, _08079538 @ =gLinkState + ldrb r0, [r0, #0xd] + cmp r0, #0x7f + ble _08079532 + ldrb r0, [r1, #0x14] + lsrs r0, r0, #1 + lsls r0, r0, #3 +_08079532: + strb r0, [r1, #0x15] + pop {pc} + .align 2, 0 +_08079538: .4byte gLinkState + + thumb_func_start sub_0807953C +sub_0807953C: @ 0x0807953C + ldr r1, _08079548 @ =0x00000F38 + ldr r0, _0807954C @ =gLinkState + adds r0, #0x92 + ldrh r0, [r0] + ands r0, r1 + bx lr + .align 2, 0 +_08079548: .4byte 0x00000F38 +_0807954C: .4byte gLinkState + + thumb_func_start sub_08079550 +sub_08079550: @ 0x08079550 + push {r4, r5, r6, r7, lr} + mov r7, sb + mov r6, r8 + push {r6, r7} + ldr r0, _080795A8 @ =gUnk_03004030 + ldrb r0, [r0, #8] + cmp r0, #0 + beq _08079562 + b _080796FC +_08079562: + ldr r2, _080795AC @ =gLinkState + ldrb r0, [r2, #0x1e] + cmp r0, #0 + beq _08079576 + ldr r0, [r2, #0x30] + movs r1, #0x80 + lsls r1, r1, #3 + ands r0, r1 + cmp r0, #0 + beq _080795B4 +_08079576: + adds r0, r2, #0 + adds r0, #0x26 + ldrb r0, [r0] + ldr r1, _080795B0 @ =gLinkEntity + mov r8, r1 + cmp r0, #0 + bne _080795A0 + ldrb r1, [r2, #0x1b] + movs r0, #0x40 + ands r0, r1 + cmp r0, #0 + bne _080795A0 + mov r3, r8 + ldrb r1, [r3, #0x15] + ldrb r2, [r2, #0xd] + cmp r1, r2 + bne _080795A0 + movs r0, #0x80 + ands r0, r1 + cmp r0, #0 + beq _080795B4 +_080795A0: + movs r0, #0 + mov r5, r8 + strb r0, [r5, #0xf] + b _080796FE + .align 2, 0 +_080795A8: .4byte gUnk_03004030 +_080795AC: .4byte gLinkState +_080795B0: .4byte gLinkEntity +_080795B4: + bl sub_08079778 + cmp r0, #0 + bne _080795BE + b _080796FC +_080795BE: + ldr r3, _08079610 @ =gLinkEntity + ldrb r2, [r3, #0x14] + movs r0, #6 + ands r0, r2 + ldr r1, _08079614 @ =gUnk_0811C100 + adds r1, r0, r1 + movs r0, #2 + ands r0, r2 + mov r8, r3 + cmp r0, #0 + beq _0807961C + movs r6, #0x2e + ldrsh r2, [r3, r6] + movs r0, #0 + ldrsb r0, [r1, r0] + adds r2, r2, r0 + ldr r4, _08079618 @ =gRoomControls + ldrh r0, [r4, #6] + subs r2, r2, r0 + asrs r2, r2, #4 + movs r3, #0x3f + ands r2, r3 + mov r0, r8 + movs r5, #0x32 + ldrsh r1, [r0, r5] + ldr r0, [r0, #0x48] + ldrb r5, [r0, #3] + adds r0, r1, r5 + ldrh r4, [r4, #8] + subs r0, r0, r4 + asrs r0, r0, #4 + ands r0, r3 + lsls r7, r0, #6 + orrs r7, r2 + subs r1, r1, r5 + subs r1, r1, r4 + asrs r1, r1, #4 + ands r1, r3 + lsls r4, r1, #6 + orrs r4, r2 + b _0807965E + .align 2, 0 +_08079610: .4byte gLinkEntity +_08079614: .4byte gUnk_0811C100 +_08079618: .4byte gRoomControls +_0807961C: + mov r6, r8 + movs r0, #0x2e + ldrsh r2, [r6, r0] + ldr r0, [r6, #0x48] + ldrb r0, [r0, #4] + mov ip, r0 + adds r0, r2, r0 + ldr r4, _080796EC @ =gRoomControls + ldrh r3, [r4, #6] + mov sb, r3 + subs r0, r0, r3 + asrs r7, r0, #4 + movs r3, #0x3f + ands r7, r3 + movs r5, #0x32 + ldrsh r0, [r6, r5] + ldrb r1, [r1, #1] + lsls r1, r1, #0x18 + asrs r1, r1, #0x18 + adds r0, r0, r1 + ldrh r1, [r4, #8] + subs r0, r0, r1 + asrs r0, r0, #4 + ands r0, r3 + lsls r0, r0, #6 + orrs r7, r0 + mov r6, ip + subs r2, r2, r6 + mov r1, sb + subs r2, r2, r1 + asrs r4, r2, #4 + ands r4, r3 + orrs r4, r0 +_0807965E: + adds r0, r7, #0 + mov r5, r8 + adds r5, #0x38 + ldrb r1, [r5] + bl sub_080002C8 + adds r3, r0, #0 + ldr r6, _080796F0 @ =gUnk_0811C1E8 + mov r1, r8 + ldrb r0, [r1, #0x14] + lsrs r0, r0, #1 + lsls r0, r0, #2 + adds r0, r0, r6 + ldr r1, [r0] + adds r0, r3, #0 + bl sub_08007DD6 + adds r3, r0, #0 + cmp r3, #0 + beq _080796FC + adds r0, r4, #0 + ldrb r1, [r5] + bl sub_080002C8 + adds r3, r0, #0 + mov r5, r8 + ldrb r0, [r5, #0x14] + lsrs r0, r0, #1 + lsls r0, r0, #2 + adds r0, r0, r6 + ldr r1, [r0] + adds r0, r3, #0 + bl sub_08007DD6 + adds r3, r0, #0 + cmp r3, #0 + beq _080796FC + ldr r1, _080796F4 @ =gLinkState + ldrb r2, [r1, #6] + movs r0, #0x80 + orrs r0, r2 + strb r0, [r1, #6] + ldrb r0, [r1, #0x1e] + adds r4, r1, #0 + cmp r0, #0 + bne _080796C8 + ldrb r0, [r5, #0xf] + adds r0, #1 + strb r0, [r5, #0xf] + lsls r0, r0, #0x18 + lsrs r0, r0, #0x18 + cmp r0, #5 + bls _080796FC +_080796C8: + ldr r0, _080796F8 @ =gLinkEntity + subs r1, r3, #1 + movs r2, #0 + strb r1, [r0, #0x14] + movs r1, #4 + strb r1, [r0, #0xc] + strb r2, [r0, #0xd] + ldrb r2, [r0, #0x10] + movs r1, #0x7f + ands r1, r2 + strb r1, [r0, #0x10] + movs r1, #0x81 + strb r1, [r4, #2] + bl sub_08070680 + movs r0, #1 + b _080796FE + .align 2, 0 +_080796EC: .4byte gRoomControls +_080796F0: .4byte gUnk_0811C1E8 +_080796F4: .4byte gLinkState +_080796F8: .4byte gLinkEntity +_080796FC: + movs r0, #0 +_080796FE: + pop {r3, r4} + mov r8, r3 + mov sb, r4 + pop {r4, r5, r6, r7, pc} + .align 2, 0 + + thumb_func_start sub_08079708 +sub_08079708: @ 0x08079708 + push {r4, lr} + ldr r4, _08079740 @ =gLinkState + adds r2, r4, #0 + adds r2, #0xa8 + movs r3, #0 + movs r1, #0x12 + strb r1, [r2] + subs r2, #0x6c + movs r1, #0xff + strb r1, [r2] + ldrb r2, [r0, #0x10] + movs r1, #0x7f + ands r1, r2 + strb r1, [r0, #0x10] + movs r1, #0xa + strb r1, [r0, #0xc] + strb r3, [r0, #0xd] + bl sub_080085B0 + ldr r0, [r4, #0x30] + movs r1, #0x88 + lsls r1, r1, #1 + ands r0, r1 + cmp r0, #0 + bne _0807973E + bl sub_0805E544 +_0807973E: + pop {r4, pc} + .align 2, 0 +_08079740: .4byte gLinkState + + thumb_func_start sub_08079744 +sub_08079744: @ 0x08079744 + push {lr} + adds r2, r0, #0 + ldrh r0, [r2, #0x2e] + movs r1, #0xf + ands r1, r0 + cmp r1, #8 + beq _0807975E + cmp r1, #8 + ble _0807975A + subs r0, #1 + b _0807975C +_0807975A: + adds r0, #1 +_0807975C: + strh r0, [r2, #0x2e] +_0807975E: + ldrh r0, [r2, #0x32] + movs r1, #0xf + ands r1, r0 + cmp r1, #8 + beq _08079774 + cmp r1, #8 + ble _08079770 + subs r0, #1 + b _08079772 +_08079770: + adds r0, #1 +_08079772: + strh r0, [r2, #0x32] +_08079774: + pop {pc} + .align 2, 0 + + thumb_func_start sub_08079778 +sub_08079778: @ 0x08079778 + push {lr} + ldr r0, _08079790 @ =gLinkState + adds r0, #0x26 + ldrb r0, [r0] + cmp r0, #0 + bne _0807979C + ldr r2, _08079794 @ =gUnk_0811C108 + ldr r1, _08079798 @ =gLinkEntity + ldrb r0, [r1, #0x14] + lsrs r0, r0, #1 + b _080797A4 + .align 2, 0 +_08079790: .4byte gLinkState +_08079794: .4byte gUnk_0811C108 +_08079798: .4byte gLinkEntity +_0807979C: + ldr r2, _080797BC @ =gUnk_0811C108 + ldr r1, _080797C0 @ =gLinkEntity + ldrb r0, [r1, #0x15] + lsrs r0, r0, #2 +_080797A4: + lsls r0, r0, #1 + adds r0, r0, r2 + ldrh r2, [r0] + movs r3, #0 + ldrh r0, [r1, #0x2a] + ands r0, r2 + cmp r2, r0 + bne _080797B6 + movs r3, #1 +_080797B6: + adds r0, r3, #0 + pop {pc} + .align 2, 0 +_080797BC: .4byte gUnk_0811C108 +_080797C0: .4byte gLinkEntity + + thumb_func_start sub_080797C4 +sub_080797C4: @ 0x080797C4 + push {lr} + ldr r1, _080797E4 @ =gUnk_0811C110 + ldr r2, _080797E8 @ =gLinkEntity + ldrb r0, [r2, #0x15] + lsrs r0, r0, #3 + lsls r0, r0, #1 + adds r0, r0, r1 + ldrh r1, [r0] + movs r3, #0 + ldrh r0, [r2, #0x2a] + ands r0, r1 + cmp r1, r0 + bne _080797E0 + movs r3, #1 +_080797E0: + adds r0, r3, #0 + pop {pc} + .align 2, 0 +_080797E4: .4byte gUnk_0811C110 +_080797E8: .4byte gLinkEntity + + thumb_func_start sub_080797EC +sub_080797EC: @ 0x080797EC + push {r4, r5, lr} + ldr r4, _08079804 @ =gLinkState + ldr r1, [r4, #0x30] + movs r0, #8 + ands r0, r1 + cmp r0, #0 + beq _0807985C + ldrb r0, [r4, #5] + cmp r0, #0 + beq _0807980C + ldr r5, _08079808 @ =0x00000934 + b _0807991E + .align 2, 0 +_08079804: .4byte gLinkState +_08079808: .4byte 0x00000934 +_0807980C: + ldrb r0, [r4, #3] + cmp r0, #0 + beq _08079818 + movs r5, #0x82 + lsls r5, r5, #3 + b _0807991E +_08079818: + adds r0, r4, #0 + adds r0, #0x21 + ldrb r0, [r0] + cmp r0, #0 + bne _080798A0 + adds r0, r4, #0 + adds r0, #0x26 + ldrb r0, [r0] + movs r5, #0xa4 + lsls r5, r5, #2 + cmp r0, #0 + bne _0807991E + movs r5, #0xb6 + lsls r5, r5, #1 + ldrb r1, [r4, #0x1b] + movs r0, #0x48 + ands r0, r1 + cmp r0, #0 + bne _080798C2 + lsls r0, r1, #0x18 + cmp r0, #0 + bne _080798CE + adds r1, r4, #0 + adds r1, #0xa8 + ldrb r0, [r1] + cmp r0, #0 + bne _08079852 + movs r0, #1 + strb r0, [r1] +_08079852: + ldr r5, _08079858 @ =0x00000404 + b _0807991E + .align 2, 0 +_08079858: .4byte 0x00000404 +_0807985C: + ldrb r0, [r4, #0x1c] + cmp r0, #0 + bne _0807992E + ldrb r0, [r4, #5] + cmp r0, #0 + beq _0807986E + movs r5, #0xd2 + lsls r5, r5, #2 + b _0807991E +_0807986E: + ldrb r0, [r4, #0x1e] + cmp r0, #0 + beq _0807987A + movs r5, #0xa6 + lsls r5, r5, #2 + b _0807991E +_0807987A: + movs r0, #0x80 + lsls r0, r0, #5 + ands r1, r0 + cmp r1, #0 + beq _0807988A + movs r5, #0xe2 + lsls r5, r5, #3 + b _0807991E +_0807988A: + ldrb r0, [r4, #3] + cmp r0, #0 + beq _08079896 + movs r5, #0xb0 + lsls r5, r5, #1 + b _0807991E +_08079896: + adds r0, r4, #0 + adds r0, #0x21 + ldrb r0, [r0] + cmp r0, #0 + beq _080798A6 +_080798A0: + movs r5, #0xa1 + lsls r5, r5, #2 + b _0807991E +_080798A6: + adds r0, r4, #0 + adds r0, #0x26 + ldrb r0, [r0] + movs r5, #0xa4 + lsls r5, r5, #2 + cmp r0, #0 + bne _0807991E + movs r5, #0xb6 + lsls r5, r5, #1 + ldrb r1, [r4, #0x1b] + movs r0, #0x48 + ands r0, r1 + cmp r0, #0 + beq _080798C8 +_080798C2: + movs r0, #0x6c + strb r0, [r4] + b _0807992E +_080798C8: + lsls r0, r1, #0x18 + cmp r0, #0 + beq _080798FC +_080798CE: + movs r0, #0 + bl sub_080793E4 + cmp r0, #0 + beq _0807991E + bl sub_0807A500 + ldr r1, _080798F8 @ =gLinkEntity + adds r1, #0x38 + ldrb r1, [r1] + bl sub_080002E0 + cmp r0, #0xff + beq _0807991E + ldrb r1, [r4, #0x1b] + movs r0, #0xf7 + ands r0, r1 + strb r0, [r4, #0x1b] + movs r5, #0xb8 + lsls r5, r5, #1 + b _0807991E + .align 2, 0 +_080798F8: .4byte gLinkEntity +_080798FC: + adds r1, r4, #0 + adds r1, #0xa8 + ldrb r0, [r1] + cmp r0, #0 + bne _0807990A + movs r0, #1 + strb r0, [r1] +_0807990A: + ldr r0, [r4, #0x30] + movs r1, #0x80 + lsls r1, r1, #0x10 + ands r0, r1 + movs r5, #0x82 + lsls r5, r5, #1 + cmp r0, #0 + beq _0807991E + movs r5, #0xc1 + lsls r5, r5, #3 +_0807991E: + ldr r0, _08079930 @ =gLinkState + strh r5, [r0, #8] + ldrb r0, [r0, #3] + cmp r0, #0 + bne _0807992E + ldr r0, _08079934 @ =gLinkEntity + bl UpdateAnimationSingleFrame +_0807992E: + pop {r4, r5, pc} + .align 2, 0 +_08079930: .4byte gLinkState +_08079934: .4byte gLinkEntity + + thumb_func_start sub_08079938 +sub_08079938: @ 0x08079938 + push {r4, lr} + ldr r3, _08079954 @ =gLinkState + ldr r2, [r3, #0x30] + movs r0, #8 + ands r0, r2 + mov ip, r3 + cmp r0, #0 + beq _080799E4 + ldrb r0, [r3, #5] + cmp r0, #0 + beq _0807995C + ldr r4, _08079958 @ =0x0000092C + b _08079AD8 + .align 2, 0 +_08079954: .4byte gLinkState +_08079958: .4byte 0x0000092C +_0807995C: + mov r0, ip + adds r0, #0x3d + mov r3, ip + ldrb r1, [r3, #0x1c] + ldrb r0, [r0] + orrs r0, r1 + cmp r0, #0 + beq _0807996E + b _08079B14 +_0807996E: + movs r0, #0x80 + lsls r0, r0, #0x12 + ands r0, r2 + cmp r0, #0 + bne _08079A1E + mov r4, ip + ldrb r0, [r4, #3] + cmp r0, #0 + beq _08079988 + ldr r4, _08079984 @ =0x00000414 + b _08079AD8 + .align 2, 0 +_08079984: .4byte 0x00000414 +_08079988: + mov r0, ip + adds r0, #0x21 + ldrb r0, [r0] + cmp r0, #0 + bne _08079A5C + mov r0, ip + adds r0, #0x26 + ldrb r0, [r0] + cmp r0, #0 + bne _08079A6C + mov r0, ip + ldrb r1, [r0, #0x1b] + movs r0, #0x48 + ands r0, r1 + cmp r0, #0 + beq _080799AA + b _08079B14 +_080799AA: + cmp r1, #0 + beq _080799B0 + b _08079AA4 +_080799B0: + mov r1, ip + ldrb r0, [r1, #4] + cmp r0, #0 + beq _080799BA + b _08079B14 +_080799BA: + movs r0, #0x20 + ands r2, r0 + cmp r2, #0 + beq _080799D0 + ldr r0, _080799D8 @ =gArea + ldrb r0, [r0, #0x17] + cmp r0, #4 + bne _080799CC + b _08079AD4 +_080799CC: + cmp r0, #5 + bne _080799DC +_080799D0: + movs r4, #0x80 + lsls r4, r4, #3 + b _08079AD8 + .align 2, 0 +_080799D8: .4byte gArea +_080799DC: + ldr r4, _080799E0 @ =0x000002C2 + b _08079AD8 + .align 2, 0 +_080799E0: .4byte 0x000002C2 +_080799E4: + mov r4, ip + ldrb r0, [r4, #5] + cmp r0, #0 + beq _080799F2 + movs r4, #0xd4 + lsls r4, r4, #2 + b _08079AD8 +_080799F2: + mov r0, ip + adds r0, #0x3d + mov r4, ip + ldrb r1, [r4, #0x1c] + ldrb r0, [r0] + orrs r0, r1 + cmp r0, #0 + beq _08079A04 + b _08079B14 +_08079A04: + movs r0, #0x80 + lsls r0, r0, #0xc + ands r0, r2 + cmp r0, #0 + beq _08079A14 + movs r4, #0x8b + lsls r4, r4, #4 + b _08079AD8 +_08079A14: + movs r0, #0x80 + lsls r0, r0, #0x12 + ands r0, r2 + cmp r0, #0 + beq _08079A24 +_08079A1E: + movs r4, #0x81 + lsls r4, r4, #4 + b _08079AD8 +_08079A24: + mov r1, ip + ldrb r0, [r1, #0x1e] + cmp r0, #0 + beq _08079A32 + movs r4, #0xa6 + lsls r4, r4, #2 + b _08079AD8 +_08079A32: + movs r0, #0x80 + lsls r0, r0, #5 + ands r0, r2 + cmp r0, #0 + beq _08079A44 + ldr r4, _08079A40 @ =0x0000070C + b _08079AD8 + .align 2, 0 +_08079A40: .4byte 0x0000070C +_08079A44: + mov r4, ip + ldrb r0, [r4, #3] + cmp r0, #0 + beq _08079A52 + movs r4, #0xb2 + lsls r4, r4, #1 + b _08079AD8 +_08079A52: + mov r0, ip + adds r0, #0x21 + ldrb r0, [r0] + cmp r0, #0 + beq _08079A62 +_08079A5C: + movs r4, #0xa0 + lsls r4, r4, #2 + b _08079AD8 +_08079A62: + mov r0, ip + adds r0, #0x26 + ldrb r0, [r0] + cmp r0, #0 + beq _08079A72 +_08079A6C: + movs r4, #0xa3 + lsls r4, r4, #2 + b _08079AD8 +_08079A72: + mov r0, ip + ldrb r1, [r0, #0x1b] + movs r0, #0x48 + ands r0, r1 + cmp r0, #0 + bne _08079B14 + movs r0, #0x20 + ands r2, r0 + cmp r2, #0 + beq _08079AA0 + ldr r0, _08079A98 @ =gArea + ldrb r0, [r0, #0x17] + ldr r4, _08079A9C @ =0x000002C2 + cmp r0, #4 + bne _08079AD8 + movs r4, #0xa6 + lsls r4, r4, #3 + b _08079AD8 + .align 2, 0 +_08079A98: .4byte gArea +_08079A9C: .4byte 0x000002C2 +_08079AA0: + cmp r1, #0 + beq _08079AAA +_08079AA4: + movs r4, #0xb4 + lsls r4, r4, #1 + b _08079AD8 +_08079AAA: + ldrb r0, [r3, #4] + cmp r0, #0 + bne _08079B14 + ldr r0, [r3, #0x30] + movs r1, #0x80 + lsls r1, r1, #0x10 + ands r0, r1 + cmp r0, #0 + beq _08079AD4 + ldr r0, _08079ACC @ =gUnk_03000B80 + adds r0, #0x63 + ldrb r0, [r0] + cmp r0, #0 + bne _08079B14 + ldr r4, _08079AD0 @ =0x00000604 + b _08079AD8 + .align 2, 0 +_08079ACC: .4byte gUnk_03000B80 +_08079AD0: .4byte 0x00000604 +_08079AD4: + movs r4, #0x80 + lsls r4, r4, #1 +_08079AD8: + mov r1, ip + strh r4, [r1, #8] + ldrb r0, [r1, #5] + cmp r0, #0 + bne _08079B10 + movs r3, #0 + movs r2, #0 + ldr r1, _08079B18 @ =gUnk_03000B80 +_08079AE8: + ldrb r0, [r1, #0xf] + cmp r0, r3 + bls _08079AF0 + adds r3, r0, #0 +_08079AF0: + adds r1, #0x1c + adds r2, #1 + cmp r2, #3 + bls _08079AE8 + mov r2, ip + ldrb r0, [r2, #0xe] + cmp r0, r3 + blo _08079B14 + lsls r0, r4, #0x18 + lsrs r0, r0, #0x18 + ldrb r3, [r2] + cmp r0, r3 + bne _08079B10 + ldr r0, _08079B1C @ =gLinkEntity + bl UpdateAnimationSingleFrame +_08079B10: + ldr r0, _08079B20 @ =gLinkState + strb r4, [r0] +_08079B14: + pop {r4, pc} + .align 2, 0 +_08079B18: .4byte gUnk_03000B80 +_08079B1C: .4byte gLinkEntity +_08079B20: .4byte gLinkState + + thumb_func_start sub_08079B24 +sub_08079B24: @ 0x08079B24 + push {r4, r5, lr} + ldr r2, _08079B60 @ =gLinkEntity + ldrb r0, [r2, #0xc] + cmp r0, #0xa + beq _08079BD4 + adds r0, r2, #0 + adds r0, #0x45 + ldrb r3, [r0] + cmp r3, #0 + bne _08079BD4 + ldr r4, _08079B64 @ =gLinkState + ldr r1, [r4, #0x30] + ldr r0, _08079B68 @ =0xFEFFFFFF + ands r1, r0 + str r1, [r4, #0x30] + adds r0, r2, #0 + adds r0, #0x42 + strb r3, [r0] + ldrb r0, [r4, #7] + cmp r0, #0 + bne _08079BD4 + adds r0, r4, #0 + adds r0, #0x26 + ldrb r0, [r0] + cmp r0, #0 + beq _08079B6C + bl sub_08079458 + b _08079BC0 + .align 2, 0 +_08079B60: .4byte gLinkEntity +_08079B64: .4byte gLinkState +_08079B68: .4byte 0xFEFFFFFF +_08079B6C: + ldrb r0, [r4, #0x14] + cmp r0, #0 + bne _08079BC0 + movs r3, #0x80 + lsls r3, r3, #5 + ands r3, r1 + cmp r3, #0 + bne _08079BC0 + movs r5, #0x36 + ldrsh r0, [r2, r5] + cmp r0, #0 + bge _08079BA6 + ldr r0, [r2, #0x20] + cmp r0, #0 + ble _08079B8C + str r3, [r2, #0x20] +_08079B8C: + ldrb r1, [r4, #2] + movs r3, #0x41 + adds r0, r3, #0 + ands r0, r1 + cmp r0, #0 + bne _08079BD4 + strb r3, [r4, #2] + movs r0, #0xff + strb r0, [r2, #0x15] + movs r0, #1 + rsbs r0, r0, #0 + strb r0, [r4, #0xd] + b _08079BD4 +_08079BA6: + movs r0, #2 + ands r1, r0 + cmp r1, #0 + bne _08079BC0 + bl sub_08079D48 + cmp r0, #0 + bne _08079BC0 + ldrb r0, [r4, #0xa] + movs r1, #0x10 + orrs r0, r1 + strb r0, [r4, #0xa] + b _08079BD4 +_08079BC0: + ldr r2, _08079BD0 @ =gLinkEntity + ldrb r1, [r2, #0x10] + movs r0, #0x7f + ands r0, r1 + strb r0, [r2, #0x10] + movs r0, #0 + b _08079BD6 + .align 2, 0 +_08079BD0: .4byte gLinkEntity +_08079BD4: + movs r0, #1 +_08079BD6: + pop {r4, r5, pc} + + thumb_func_start sub_08079BD8 +sub_08079BD8: @ 0x08079BD8 + push {r4, r5, lr} + ldr r4, _08079C2C @ =gLinkEntity + ldr r1, [r4, #0x2c] + str r1, [r0, #0x2c] + ldr r1, [r4, #0x30] + str r1, [r0, #0x30] + ldr r1, [r4, #0x34] + str r1, [r0, #0x34] + adds r1, r4, #0 + adds r1, #0x38 + ldrb r2, [r1] + adds r1, r0, #0 + adds r1, #0x38 + strb r2, [r1] + ldrb r3, [r4, #0x19] + lsrs r3, r3, #6 + lsls r3, r3, #6 + ldrb r5, [r0, #0x19] + movs r2, #0x3f + adds r1, r2, #0 + ands r1, r5 + orrs r1, r3 + strb r1, [r0, #0x19] + ldrb r1, [r4, #0x1b] + lsrs r1, r1, #6 + lsls r1, r1, #6 + ldrb r3, [r0, #0x1b] + ands r2, r3 + orrs r2, r1 + strb r2, [r0, #0x1b] + adds r4, #0x29 + ldrb r2, [r4] + lsls r2, r2, #0x1d + adds r0, #0x29 + lsrs r2, r2, #0x1d + ldrb r3, [r0] + movs r1, #8 + rsbs r1, r1, #0 + ands r1, r3 + orrs r1, r2 + strb r1, [r0] + pop {r4, r5, pc} + .align 2, 0 +_08079C2C: .4byte gLinkEntity + + thumb_func_start sub_08079C30 +sub_08079C30: @ 0x08079C30 + push {r4, r5, r6, r7, lr} + mov r7, r8 + push {r7} + adds r6, r0, #0 + ldr r0, _08079C68 @ =gLinkState + ldrb r1, [r0, #0x14] + adds r7, r0, #0 + cmp r1, #0 + beq _08079C44 + b _08079D40 +_08079C44: + ldr r1, [r7, #0x30] + movs r0, #2 + ands r0, r1 + cmp r0, #0 + bne _08079D40 + movs r0, #0x80 + ands r1, r0 + cmp r1, #0 + bne _08079D36 + ldrb r0, [r7, #0x13] + subs r0, #0xd + cmp r0, #0x1d + bhi _08079CE8 + lsls r0, r0, #2 + ldr r1, _08079C6C @ =_08079C70 + adds r0, r0, r1 + ldr r0, [r0] + mov pc, r0 + .align 2, 0 +_08079C68: .4byte gLinkState +_08079C6C: .4byte _08079C70 +_08079C70: @ jump table + .4byte _08079D36 @ case 0 + .4byte _08079D36 @ case 1 + .4byte _08079D36 @ case 2 + .4byte _08079D36 @ case 3 + .4byte _08079CE8 @ case 4 + .4byte _08079CE8 @ case 5 + .4byte _08079CE8 @ case 6 + .4byte _08079D36 @ case 7 + .4byte _08079CE8 @ case 8 + .4byte _08079CE8 @ case 9 + .4byte _08079D36 @ case 10 + .4byte _08079CE8 @ case 11 + .4byte _08079CE8 @ case 12 + .4byte _08079CE8 @ case 13 + .4byte _08079CE8 @ case 14 + .4byte _08079CE8 @ case 15 + .4byte _08079CE8 @ case 16 + .4byte _08079CE8 @ case 17 + .4byte _08079CE8 @ case 18 + .4byte _08079CE8 @ case 19 + .4byte _08079CE8 @ case 20 + .4byte _08079CE8 @ case 21 + .4byte _08079CE8 @ case 22 + .4byte _08079CE8 @ case 23 + .4byte _08079CE8 @ case 24 + .4byte _08079CE8 @ case 25 + .4byte _08079CE8 @ case 26 + .4byte _08079CE8 @ case 27 + .4byte _08079CE8 @ case 28 + .4byte _08079D36 @ case 29 +_08079CE8: + mov r8, r7 + mov r0, r8 + ldrb r4, [r0, #0x12] + movs r2, #1 + rsbs r2, r2, #0 + adds r0, r6, #0 + movs r1, #0 + bl sub_080002B4 + ldr r5, _08079D3C @ =gUnk_08007CAC + adds r1, r5, #0 + bl sub_08007DD6 + cmp r4, r0 + bne _08079D40 + mov r0, r8 + ldrb r4, [r0, #0x12] + adds r0, r6, #0 + movs r1, #2 + movs r2, #0 + bl sub_080002B4 + adds r1, r5, #0 + bl sub_08007DD6 + cmp r4, r0 + bne _08079D40 + ldrb r4, [r7, #0x12] + movs r1, #2 + rsbs r1, r1, #0 + adds r0, r6, #0 + movs r2, #0 + bl sub_080002B4 + adds r1, r5, #0 + bl sub_08007DD6 + cmp r4, r0 + bne _08079D40 +_08079D36: + movs r0, #1 + b _08079D42 + .align 2, 0 +_08079D3C: .4byte gUnk_08007CAC +_08079D40: + movs r0, #0 +_08079D42: + pop {r3} + mov r8, r3 + pop {r4, r5, r6, r7, pc} + + thumb_func_start sub_08079D48 +sub_08079D48: @ 0x08079D48 + push {r4, lr} + ldr r4, _08079D78 @ =gLinkEntity + adds r0, r4, #0 + bl sub_08079C30 + cmp r0, #0 + beq _08079D72 + bl sub_08008B22 + cmp r0, #0 + bne _08079D80 + adds r0, r4, #0 + bl sub_080002B8 + lsls r0, r0, #0x10 + lsrs r0, r0, #0x10 + ldr r1, _08079D7C @ =gUnk_0811C268 + bl sub_08007DD6 + cmp r0, #0 + bne _08079D80 +_08079D72: + movs r0, #1 + b _08079D82 + .align 2, 0 +_08079D78: .4byte gLinkEntity +_08079D7C: .4byte gUnk_0811C268 +_08079D80: + movs r0, #0 +_08079D82: + pop {r4, pc} + + thumb_func_start sub_08079D84 +sub_08079D84: @ 0x08079D84 + push {lr} + ldr r3, _08079DC0 @ =gLinkEntity + ldrb r0, [r3, #0xc] + cmp r0, #1 + beq _08079D92 + cmp r0, #0x18 + bne _08079DBE +_08079D92: + ldr r2, _08079DC4 @ =gLinkState + adds r1, r2, #0 + adds r1, #0x38 + movs r0, #0x9c + strb r0, [r1] + adds r1, #1 + movs r0, #2 + strb r0, [r1] + adds r1, #1 + movs r0, #0x3c + strb r0, [r1] + movs r0, #0xe + strb r0, [r2, #0xc] + adds r1, r3, #0 + adds r1, #0x3d + movs r0, #0x7c + strb r0, [r1] + bl sub_08077B20 + ldr r0, _08079DC8 @ =0x00000193 + bl PlaySFX +_08079DBE: + pop {pc} + .align 2, 0 +_08079DC0: .4byte gLinkEntity +_08079DC4: .4byte gLinkState +_08079DC8: .4byte 0x00000193 + + thumb_func_start sub_08079DCC +sub_08079DCC: @ 0x08079DCC + push {lr} + ldr r0, _08079DFC @ =gLinkEntity + ldrb r0, [r0, #0xc] + cmp r0, #1 + bne _08079DF8 + ldr r3, _08079E00 @ =gLinkState + adds r1, r3, #0 + adds r1, #0x38 + movs r2, #0 + movs r0, #0xa0 + strb r0, [r1] + adds r1, #1 + movs r0, #3 + strb r0, [r1] + adds r0, r3, #0 + adds r0, #0x3a + strb r2, [r0] + movs r0, #0xe + strb r0, [r3, #0xc] + ldr r0, _08079E04 @ =0x00000193 + bl PlaySFX +_08079DF8: + pop {pc} + .align 2, 0 +_08079DFC: .4byte gLinkEntity +_08079E00: .4byte gLinkState +_08079E04: .4byte 0x00000193 + + thumb_func_start sub_08079E08 +sub_08079E08: @ 0x08079E08 + push {r4, lr} + ldr r0, _08079E50 @ =gLinkEntity + ldrh r2, [r0, #0x24] + movs r3, #0x24 + ldrsh r1, [r0, r3] + adds r4, r0, #0 + cmp r1, #0 + beq _08079E2E + ldr r0, _08079E54 @ =gLinkState + adds r0, #0x80 + ldrh r0, [r0] + adds r0, r2, r0 + strh r0, [r4, #0x24] + lsls r0, r0, #0x10 + asrs r0, r0, #0x10 + cmp r0, #0x1f + bgt _08079E2E + movs r0, #0x20 + strh r0, [r4, #0x24] +_08079E2E: + adds r2, r4, #0 + ldrb r1, [r2, #0x15] + movs r0, #4 + ands r0, r1 + cmp r0, #0 + bne _08079E40 + ldrb r0, [r2, #0x15] + bl sub_08079E90 +_08079E40: + adds r0, r4, #0 + bl sub_0800857C + ldrb r0, [r4, #0x15] + bl sub_0807A5B8 + pop {r4, pc} + .align 2, 0 +_08079E50: .4byte gLinkEntity +_08079E54: .4byte gLinkState + + thumb_func_start sub_08079E58 +sub_08079E58: @ 0x08079E58 + push {r4, r5, r6, lr} + adds r6, r0, #0 + adds r4, r1, #0 + ldr r5, _08079E8C @ =gLinkEntity + ldrb r1, [r5, #0x15] + movs r0, #4 + ands r0, r1 + cmp r0, #0 + bne _08079E70 + adds r0, r4, #0 + bl sub_08079E90 +_08079E70: + adds r0, r5, #0 + bl sub_080085B0 + lsls r1, r6, #0x10 + asrs r1, r1, #0x10 + lsls r2, r4, #0x18 + lsrs r2, r2, #0x18 + adds r0, r5, #0 + bl sub_080027EA + adds r0, r4, #0 + bl sub_0807A5B8 + pop {r4, r5, r6, pc} + .align 2, 0 +_08079E8C: .4byte gLinkEntity + + thumb_func_start sub_08079E90 +sub_08079E90: @ 0x08079E90 + push {r4, r5, r6, r7, lr} + mov r7, sb + mov r6, r8 + push {r6, r7} + mov sb, r0 + ldr r1, _08079EBC @ =gLinkEntity + ldrb r2, [r1, #0x15] + movs r0, #8 + ands r0, r2 + adds r7, r1, #0 + cmp r0, #0 + beq _08079ECA + movs r0, #0x10 + ands r0, r2 + cmp r0, #0 + beq _08079EC0 + ldr r0, [r7, #0x48] + ldrb r0, [r0, #2] + rsbs r0, r0, #0 + lsls r0, r0, #0x10 + lsrs r5, r0, #0x10 + b _08079EC4 + .align 2, 0 +_08079EBC: .4byte gLinkEntity +_08079EC0: + ldr r0, [r7, #0x48] + ldrb r5, [r0, #2] +_08079EC4: + ldr r0, [r7, #0x48] + ldrb r4, [r0, #3] + b _08079EDE +_08079ECA: + ldr r0, [r7, #0x48] + ldrb r5, [r0, #4] + cmp r2, #0 + beq _08079ED6 + ldrb r4, [r0, #5] + b _08079EDE +_08079ED6: + ldrb r0, [r0, #5] + rsbs r0, r0, #0 + lsls r0, r0, #0x10 + lsrs r4, r0, #0x10 +_08079EDE: + lsls r0, r5, #0x10 + asrs r0, r0, #0x10 + mov r8, r0 + lsls r0, r4, #0x10 + asrs r6, r0, #0x10 + adds r0, r7, #0 + mov r1, r8 + adds r2, r6, #0 + bl sub_080002CC + adds r1, r0, #0 + mov r0, sb + bl sub_08079F48 + cmp r0, #0 + bne _08079F3C + ldrb r1, [r7, #0x15] + movs r0, #0x10 + ands r0, r1 + cmp r0, #0 + beq _08079F10 + rsbs r0, r6, #0 + lsls r0, r0, #0x10 + lsrs r4, r0, #0x10 + b _08079F18 +_08079F10: + mov r1, r8 + rsbs r0, r1, #0 + lsls r0, r0, #0x10 + lsrs r5, r0, #0x10 +_08079F18: + ldr r0, _08079F38 @ =gLinkEntity + lsls r1, r5, #0x10 + asrs r1, r1, #0x10 + lsls r2, r4, #0x10 + asrs r2, r2, #0x10 + bl sub_080002CC + adds r1, r0, #0 + mov r0, sb + bl sub_08079F48 + cmp r0, #0 + bne _08079F3C + movs r0, #0 + b _08079F3E + .align 2, 0 +_08079F38: .4byte gLinkEntity +_08079F3C: + movs r0, #1 +_08079F3E: + pop {r3, r4} + mov r8, r3 + mov sb, r4 + pop {r4, r5, r6, r7, pc} + .align 2, 0 + + thumb_func_start sub_08079F48 +sub_08079F48: @ 0x08079F48 + push {lr} + ldr r3, _08079F60 @ =gUnk_0811C118 + lsrs r2, r0, #2 + adds r0, r2, r3 + ldrb r0, [r0] + cmp r0, r1 + bne _08079F68 + ldr r0, _08079F64 @ =gLinkEntity + ldrb r1, [r0, #0x15] + adds r1, #4 + b _08079F7C + .align 2, 0 +_08079F60: .4byte gUnk_0811C118 +_08079F64: .4byte gLinkEntity +_08079F68: + adds r0, r2, #1 + adds r0, r0, r3 + ldrb r0, [r0] + cmp r0, r1 + beq _08079F76 + movs r0, #0 + b _08079F84 +_08079F76: + ldr r0, _08079F88 @ =gLinkEntity + ldrb r1, [r0, #0x15] + subs r1, #4 +_08079F7C: + movs r2, #0x1f + ands r1, r2 + strb r1, [r0, #0x15] + movs r0, #1 +_08079F84: + pop {pc} + .align 2, 0 +_08079F88: .4byte gLinkEntity + + thumb_func_start sub_08079F8C +sub_08079F8C: @ 0x08079F8C + push {lr} + ldr r2, _08079FB4 @ =gLinkState + ldr r0, [r2, #0x30] + ldr r1, _08079FB8 @ =0x22189B75 + ands r0, r1 + cmp r0, #0 + bne _08079FB0 + adds r0, r2, #0 + adds r0, #0x3c + ldrb r0, [r0] + cmp r0, #0 + bne _08079FB0 + ldr r0, _08079FBC @ =gLinkEntity + ldrb r0, [r0, #0xc] + cmp r0, #3 + beq _08079FB0 + cmp r0, #0xb + bne _08079FC0 +_08079FB0: + movs r0, #0 + b _08079FC2 + .align 2, 0 +_08079FB4: .4byte gLinkState +_08079FB8: .4byte 0x22189B75 +_08079FBC: .4byte gLinkEntity +_08079FC0: + movs r0, #1 +_08079FC2: + pop {pc} + + thumb_func_start sub_08079FC4 +sub_08079FC4: @ 0x08079FC4 + push {lr} + adds r1, r0, #0 + ldr r0, _08079FD0 @ =gLinkEntity + bl sub_08079FD4 + pop {pc} + .align 2, 0 +_08079FD0: .4byte gLinkEntity + + thumb_func_start sub_08079FD4 +sub_08079FD4: @ 0x08079FD4 + push {r4, r5, r6, lr} + sub sp, #4 + adds r5, r0, #0 + movs r0, #0x2e + ldrsh r2, [r5, r0] + ldr r3, _0807A008 @ =gRoomControls + ldrh r0, [r3, #6] + subs r2, r2, r0 + asrs r2, r2, #4 + movs r4, #0x3f + ands r2, r4 + movs r6, #0x32 + ldrsh r0, [r5, r6] + ldrh r3, [r3, #8] + subs r0, r0, r3 + asrs r0, r0, #4 + ands r0, r4 + lsls r0, r0, #6 + orrs r2, r0 + lsls r2, r2, #1 + ldr r6, _0807A00C @ =gUnk_02027EB4 + cmp r1, #2 + bne _0807A004 + ldr r6, _0807A010 @ =gUnk_0200D654 +_0807A004: + movs r4, #0 + b _0807A028 + .align 2, 0 +_0807A008: .4byte gRoomControls +_0807A00C: .4byte gUnk_02027EB4 +_0807A010: .4byte gUnk_0200D654 +_0807A014: + cmp r1, #0x23 + beq _0807A028 + cmp r1, #0x27 + beq _0807A028 + ldr r0, _0807A04C @ =gUnk_080082DC + subs r1, #0x10 + adds r1, r1, r0 + ldrb r0, [r1] + cmp r0, #0 + beq _0807A046 +_0807A028: + adds r4, #1 + adds r0, r5, #0 + mov r1, sp + bl sub_08004202 + adds r2, r0, #0 + lsrs r0, r2, #1 + adds r0, r6, r0 + ldrb r1, [r0] + cmp r1, #0xe + bls _0807A046 + cmp r1, #0xf + bls _0807A028 + cmp r1, #0x1d + bne _0807A014 +_0807A046: + adds r0, r4, #0 + add sp, #4 + pop {r4, r5, r6, pc} + .align 2, 0 +_0807A04C: .4byte gUnk_080082DC + + thumb_func_start sub_0807A050 +sub_0807A050: @ 0x0807A050 + push {lr} + ldr r3, _0807A088 @ =gLinkState + ldrb r2, [r3, #0xf] + cmp r2, #0 + beq _0807A06A + ldr r0, _0807A08C @ =gTextBox + ldrb r1, [r0] + movs r0, #0x7f + ands r0, r1 + cmp r0, #0 + bne _0807A06A + subs r0, r2, #1 + strb r0, [r3, #0xf] +_0807A06A: + movs r0, #0 + bl sub_0807A094 + adds r1, r0, #0 + ldr r0, _0807A088 @ =gLinkState + adds r0, #0x83 + ldrb r2, [r0] + cmp r1, r2 + beq _0807A084 + strb r1, [r0] + ldr r0, _0807A090 @ =gLinkEntity + bl sub_0801D2B4 +_0807A084: + pop {pc} + .align 2, 0 +_0807A088: .4byte gLinkState +_0807A08C: .4byte gTextBox +_0807A090: .4byte gLinkEntity + + thumb_func_start sub_0807A094 +sub_0807A094: @ 0x0807A094 + push {r4, r5, lr} + adds r3, r0, #0 + movs r2, #0x16 + ldr r0, _0807A0AC @ =gLinkState + ldrb r0, [r0, #0xf] + cmp r0, #0 + beq _0807A0B0 + movs r2, #0x1b + cmp r0, #0x78 + bls _0807A104 + movs r2, #0x1a + b _0807A104 + .align 2, 0 +_0807A0AC: .4byte gLinkState +_0807A0B0: + ldr r0, _0807A0F0 @ =gUnk_02002A40 + adds r1, r0, #0 + adds r1, #0xb2 + ldrb r1, [r1] + adds r5, r0, #0 + cmp r1, #0 + beq _0807A104 + movs r4, #1 + cmp r3, #0 + bne _0807A0D6 + adds r0, #0xc4 + ldrh r1, [r0] + cmp r1, #0xb3 + bhi _0807A0D6 + movs r0, #8 + ands r0, r1 + cmp r0, #0 + beq _0807A0D6 + movs r4, #0 +_0807A0D6: + cmp r4, #0 + beq _0807A104 + adds r0, r5, #0 + adds r0, #0xb2 + ldrb r0, [r0] + cmp r0, #0x30 + beq _0807A102 + cmp r0, #0x30 + bgt _0807A0F4 + cmp r0, #0x2f + beq _0807A0FA + b _0807A102 + .align 2, 0 +_0807A0F0: .4byte gUnk_02002A40 +_0807A0F4: + cmp r0, #0x31 + beq _0807A0FE + b _0807A102 +_0807A0FA: + movs r2, #0x18 + b _0807A104 +_0807A0FE: + movs r2, #0x17 + b _0807A104 +_0807A102: + movs r2, #0x19 +_0807A104: + adds r0, r2, #0 + pop {r4, r5, pc} + + thumb_func_start sub_0807A108 +sub_0807A108: @ 0x0807A108 + push {lr} + ldr r1, _0807A148 @ =gUnk_03004040 + movs r0, #0 + str r0, [r1] + str r0, [r1, #4] + str r0, [r1, #8] + ldr r2, _0807A14C @ =gLinkState + ldr r0, [r2, #0x30] + ldr r1, _0807A150 @ =0xFFBFFFFF + ands r0, r1 + str r0, [r2, #0x30] + ldr r0, _0807A154 @ =gLinkEntity + ldrb r0, [r0, #0xc] + cmp r0, #0x17 + bne _0807A130 + adds r0, r2, #0 + adds r0, #0xa0 + ldrb r0, [r0] + cmp r0, #4 + beq _0807A144 +_0807A130: + adds r1, r2, #0 + adds r1, #0xa0 + ldrb r0, [r1] + subs r0, #4 + lsls r0, r0, #0x18 + lsrs r0, r0, #0x18 + cmp r0, #1 + bhi _0807A144 + movs r0, #1 + strb r0, [r1] +_0807A144: + pop {pc} + .align 2, 0 +_0807A148: .4byte gUnk_03004040 +_0807A14C: .4byte gLinkState +_0807A150: .4byte 0xFFBFFFFF +_0807A154: .4byte gLinkEntity + + thumb_func_start sub_0807A158 +sub_0807A158: @ 0x0807A158 + push {r4, lr} + ldr r4, _0807A178 @ =gUnk_02002A40 + adds r0, r4, #0 + adds r0, #0xb4 + ldrb r0, [r0] + bl sub_0805449C + cmp r0, #0 + bne _0807A17C + adds r0, r4, #0 + adds r0, #0xb5 + ldrb r0, [r0] + bl sub_0805449C + b _0807A17E + .align 2, 0 +_0807A178: .4byte gUnk_02002A40 +_0807A17C: + movs r0, #1 +_0807A17E: + pop {r4, pc} + + thumb_func_start sub_0807A180 +sub_0807A180: @ 0x0807A180 + push {r4, r5, r6, lr} + mov r6, r8 + push {r6} + sub sp, #0x88 + adds r4, r0, #0 + adds r5, r1, #0 + adds r6, r2, #0 + mov r8, r3 + ldr r3, _0807A1B4 @ =0xFFFC0000 + mov r1, sp + movs r2, #0 + bl PositionRelative + mov r1, sp + ldrb r0, [r4, #0x14] + strb r0, [r1, #0x14] + mov r0, sp + adds r1, r5, #0 + adds r2, r6, #0 + mov r3, r8 + bl sub_08003FDE + add sp, #0x88 + pop {r3} + mov r8, r3 + pop {r4, r5, r6, pc} + .align 2, 0 +_0807A1B4: .4byte 0xFFFC0000 + + thumb_func_start sub_0807A1B8 +sub_0807A1B8: @ 0x0807A1B8 + push {r4, lr} + ldr r4, _0807A1DC @ =gLinkEntity + adds r0, r4, #0 + movs r1, #0 + movs r2, #0 + bl sub_0807A1E8 + ldr r1, _0807A1E0 @ =gLinkState + strb r0, [r1, #0x12] + ldr r2, _0807A1E4 @ =gUnk_0811C120 + ldrb r0, [r1, #0x12] + lsls r0, r0, #2 + adds r0, r0, r2 + ldr r1, [r0] + adds r0, r4, #0 + bl _call_via_r1 + pop {r4, pc} + .align 2, 0 +_0807A1DC: .4byte gLinkEntity +_0807A1E0: .4byte gLinkState +_0807A1E4: .4byte gUnk_0811C120 + + thumb_func_start sub_0807A1E8 +sub_0807A1E8: @ 0x0807A1E8 + push {r4, r5, r6, r7, lr} + mov r7, r8 + push {r7} + adds r5, r0, #0 + adds r6, r1, #0 + mov r8, r2 + movs r1, #0x2e + ldrsh r0, [r5, r1] + adds r0, r0, r6 + ldr r2, _0807A288 @ =gRoomControls + ldrh r1, [r2, #6] + subs r1, r0, r1 + lsrs r4, r1, #4 + movs r3, #0x3f + ands r4, r3 + movs r7, #0x32 + ldrsh r1, [r5, r7] + add r1, r8 + ldrh r2, [r2, #8] + subs r2, r1, r2 + asrs r2, r2, #4 + ands r2, r3 + lsls r2, r2, #6 + orrs r4, r2 + ldr r2, _0807A28C @ =gLinkEntity + adds r2, #0x38 + ldrb r2, [r2] + bl GetTileTypeByPos + adds r2, r0, #0 + ldr r1, _0807A290 @ =gLinkState + ldrh r0, [r1, #0x24] + cmp r2, r0 + beq _0807A23A + adds r3, r1, #0 + adds r3, #0x37 + movs r0, #0 + strb r0, [r3] + ldrh r7, [r1, #0x24] + cmp r2, r7 + bne _0807A242 +_0807A23A: + adds r3, r1, #0 + ldrh r0, [r3, #0x22] + cmp r4, r0 + beq _0807A24E +_0807A242: + ldr r0, _0807A290 @ =gLinkState + movs r1, #0 + strh r4, [r0, #0x22] + strh r2, [r0, #0x24] + strb r1, [r0, #0x11] + adds r3, r0, #0 +_0807A24E: + adds r2, r3, #0 + ldrb r1, [r2, #0x11] + adds r0, r1, #0 + cmp r0, #0xff + beq _0807A25C + adds r0, r1, #1 + strb r0, [r2, #0x11] +_0807A25C: + adds r2, #0x37 + ldrb r1, [r2] + adds r0, r1, #0 + cmp r0, #0xff + beq _0807A26A + adds r0, r1, #1 + strb r0, [r2] +_0807A26A: + ldrb r0, [r3, #0x12] + strb r0, [r3, #0x13] + adds r0, r5, #0 + adds r1, r6, #0 + mov r2, r8 + bl sub_080002B4 + adds r2, r0, #0 + ldr r1, _0807A294 @ =gUnk_08007CAC + bl sub_08007DD6 + pop {r3} + mov r8, r3 + pop {r4, r5, r6, r7, pc} + .align 2, 0 +_0807A288: .4byte gRoomControls +_0807A28C: .4byte gLinkEntity +_0807A290: .4byte gLinkState +_0807A294: .4byte gUnk_08007CAC + + thumb_func_start sub_0807A298 +sub_0807A298: @ 0x0807A298 + movs r1, #0 + strb r1, [r0, #0xb] + ldrb r1, [r0, #0x18] + movs r2, #3 + orrs r1, r2 + strb r1, [r0, #0x18] + ldr r2, _0807A2B4 @ =gLinkState + ldr r0, [r2, #0x30] + movs r1, #0x41 + rsbs r1, r1, #0 + ands r0, r1 + str r0, [r2, #0x30] + bx lr + .align 2, 0 +_0807A2B4: .4byte gLinkState + + thumb_func_start sub_0807A2B8 +sub_0807A2B8: @ 0x0807A2B8 + push {lr} + bl sub_08008B22 + cmp r0, #0 + beq _0807A2C6 + movs r0, #1 + b _0807A2EC +_0807A2C6: + ldr r0, _0807A2F0 @ =gLinkState + ldrb r1, [r0, #2] + movs r0, #0xc8 + ands r0, r1 + cmp r0, #0 + bne _0807A2EA + ldr r1, _0807A2F4 @ =gLinkEntity + adds r0, r1, #0 + adds r0, #0x38 + ldrb r0, [r0] + cmp r0, #1 + beq _0807A2EA + adds r0, r1, #0 + movs r1, #0x44 + movs r2, #0 + movs r3, #0 + bl CreateObjectWithParent +_0807A2EA: + movs r0, #0 +_0807A2EC: + pop {pc} + .align 2, 0 +_0807A2F0: .4byte gLinkState +_0807A2F4: .4byte gLinkEntity + + thumb_func_start sub_0807A2F8 +sub_0807A2F8: @ 0x0807A2F8 + push {r4, r5, r6, r7, lr} + mov r7, sl + mov r6, sb + mov r5, r8 + push {r5, r6, r7} + sub sp, #4 + adds r4, r0, #0 + ldr r0, _0807A364 @ =gRoomControls + mov r8, r0 + ldrb r0, [r0, #4] + cmp r0, #8 + bne _0807A312 + b _0807A4F2 +_0807A312: + bl sub_08079778 + orrs r0, r4 + cmp r0, #0 + bne _0807A31E + b _0807A4F2 +_0807A31E: + ldr r7, _0807A368 @ =gLinkEntity + ldrb r1, [r7, #0x14] + movs r0, #2 + ands r0, r1 + cmp r0, #0 + beq _0807A36C + movs r1, #0x2e + ldrsh r2, [r7, r1] + mov r6, r8 + ldrh r0, [r6, #6] + subs r2, r2, r0 + asrs r2, r2, #4 + movs r3, #0x3f + ands r2, r3 + movs r0, #0x32 + ldrsh r1, [r7, r0] + ldr r0, [r7, #0x48] + ldrb r5, [r0, #5] + adds r0, r1, r5 + ldrh r4, [r6, #8] + subs r0, r0, r4 + asrs r0, r0, #4 + ands r0, r3 + lsls r0, r0, #6 + orrs r0, r2 + lsls r7, r0, #1 + subs r1, r1, r5 + subs r1, r1, r4 + asrs r1, r1, #4 + ands r1, r3 + lsls r1, r1, #6 + orrs r2, r1 + lsls r6, r2, #1 + b _0807A3A2 + .align 2, 0 +_0807A364: .4byte gRoomControls +_0807A368: .4byte gLinkEntity +_0807A36C: + movs r1, #0x2e + ldrsh r3, [r7, r1] + ldr r0, [r7, #0x48] + ldrb r6, [r0, #2] + adds r1, r3, r6 + mov r2, r8 + ldrh r5, [r2, #6] + subs r1, r1, r5 + asrs r1, r1, #4 + movs r4, #0x3f + ands r1, r4 + movs r2, #0x32 + ldrsh r0, [r7, r2] + mov r7, r8 + ldrh r2, [r7, #8] + subs r0, r0, r2 + asrs r0, r0, #4 + ands r0, r4 + lsls r0, r0, #6 + orrs r1, r0 + lsls r7, r1, #1 + subs r3, r3, r6 + subs r3, r3, r5 + asrs r3, r3, #4 + ands r3, r4 + orrs r3, r0 + lsls r6, r3, #1 +_0807A3A2: + movs r0, #0 + mov sb, r0 + ldr r1, _0807A3F4 @ =gLinkEntity + mov sl, r1 +_0807A3AA: + movs r2, #0 + mov r8, r2 + mov r0, sl + mov r1, sp + adds r2, r7, #0 + bl sub_08004202 + adds r7, r0, #0 + lsrs r4, r7, #1 + adds r0, r4, #0 + movs r1, #1 + bl sub_080002E0 + cmp r0, #0 + beq _0807A3FC + lsls r0, r4, #0x10 + lsrs r0, r0, #0x10 + mov r1, sl + adds r1, #0x38 + ldrb r1, [r1] + bl sub_080002C8 + lsls r0, r0, #0x10 + lsrs r0, r0, #0x10 + mov r2, sl + ldrb r1, [r2, #0x14] + lsrs r1, r1, #1 + lsls r1, r1, #2 + ldr r2, _0807A3F8 @ =gUnk_0811C1D8 + adds r1, r1, r2 + ldr r1, [r1] + bl sub_08007DD6 + cmp r0, #0 + beq _0807A468 + b _0807A400 + .align 2, 0 +_0807A3F4: .4byte gLinkEntity +_0807A3F8: .4byte gUnk_0811C1D8 +_0807A3FC: + movs r0, #1 + mov r8, r0 +_0807A400: + ldr r5, _0807A444 @ =gLinkEntity + adds r0, r5, #0 + mov r1, sp + adds r2, r6, #0 + bl sub_08004202 + adds r6, r0, #0 + lsrs r4, r6, #1 + adds r0, r4, #0 + movs r1, #1 + bl sub_080002E0 + cmp r0, #0 + beq _0807A44C + lsls r0, r4, #0x10 + lsrs r0, r0, #0x10 + adds r1, r5, #0 + adds r1, #0x38 + ldrb r1, [r1] + bl sub_080002C8 + lsls r0, r0, #0x10 + lsrs r0, r0, #0x10 + ldrb r1, [r5, #0x14] + lsrs r1, r1, #1 + lsls r1, r1, #2 + ldr r2, _0807A448 @ =gUnk_0811C1D8 + adds r1, r1, r2 + ldr r1, [r1] + bl sub_08007DD6 + cmp r0, #0 + beq _0807A468 + b _0807A450 + .align 2, 0 +_0807A444: .4byte gLinkEntity +_0807A448: .4byte gUnk_0811C1D8 +_0807A44C: + movs r0, #1 + add r8, r0 +_0807A450: + mov r1, r8 + cmp r1, #2 + bne _0807A45E + mov r2, sb + cmp r2, #0 + bne _0807A46E + b _0807A4F2 +_0807A45E: + movs r0, #1 + add sb, r0 + mov r1, sb + cmp r1, #1 + bls _0807A3AA +_0807A468: + mov r2, sb + cmp r2, #0 + beq _0807A4F2 +_0807A46E: + bl CheckIsDungeon + cmp r0, #0 + beq _0807A4B0 + ldr r4, _0807A4AC @ =gLinkEntity + adds r0, r4, #0 + mov r1, sp + adds r2, r7, #0 + bl sub_08004202 + adds r7, r0, #0 + lsrs r0, r7, #1 + movs r1, #2 + bl sub_080002E0 + cmp r0, #0 + bne _0807A4F2 + adds r0, r4, #0 + mov r1, sp + adds r2, r6, #0 + bl sub_08004202 + adds r6, r0, #0 + lsrs r0, r6, #1 + movs r1, #2 +_0807A4A0: + bl sub_080002E0 + cmp r0, #0 + beq _0807A4EC + b _0807A4F2 + .align 2, 0 +_0807A4AC: .4byte gLinkEntity +_0807A4B0: + mov r0, sb + cmp r0, #2 + bne _0807A4C2 + ldr r0, _0807A4E8 @ =gLinkEntity + mov r1, sp + adds r2, r7, #0 + bl sub_08004202 + adds r7, r0, #0 +_0807A4C2: + lsrs r0, r7, #1 + movs r1, #1 + bl sub_080002E0 + cmp r0, #0 + bne _0807A4F2 + mov r1, sb + cmp r1, #2 + bne _0807A4E0 + ldr r0, _0807A4E8 @ =gLinkEntity + mov r1, sp + adds r2, r6, #0 + bl sub_08004202 + adds r6, r0, #0 +_0807A4E0: + lsrs r0, r6, #1 + movs r1, #1 + b _0807A4A0 + .align 2, 0 +_0807A4E8: .4byte gLinkEntity +_0807A4EC: + mov r0, sb + adds r0, #1 + b _0807A4F4 +_0807A4F2: + movs r0, #0 +_0807A4F4: + add sp, #4 + pop {r3, r4, r5} + mov r8, r3 + mov sb, r4 + mov sl, r5 + pop {r4, r5, r6, r7, pc} + + thumb_func_start sub_0807A500 +sub_0807A500: @ 0x0807A500 + push {r4, r5, r6, lr} + ldr r6, _0807A518 @ =gLinkEntity + ldrb r0, [r6, #0x14] + lsrs r0, r0, #1 + cmp r0, #1 + beq _0807A574 + cmp r0, #1 + bgt _0807A51C + cmp r0, #0 + beq _0807A526 + b _0807A5B4 + .align 2, 0 +_0807A518: .4byte gLinkEntity +_0807A51C: + cmp r0, #2 + beq _0807A554 + cmp r0, #3 + beq _0807A580 + b _0807A5B4 +_0807A526: + movs r1, #0x2e + ldrsh r0, [r6, r1] + ldr r5, _0807A550 @ =gRoomControls + ldrh r1, [r5, #6] + subs r0, r0, r1 + asrs r0, r0, #4 + movs r4, #0x3f + ands r0, r4 + movs r2, #0x32 + ldrsh r1, [r6, r2] + ldr r3, [r6, #0x48] + ldrb r2, [r3, #5] + subs r1, r1, r2 + movs r2, #1 + ldrsb r2, [r3, r2] + adds r1, r1, r2 + ldrh r2, [r5, #8] + subs r1, r1, r2 + asrs r1, r1, #4 + ands r1, r4 + b _0807A5AA + .align 2, 0 +_0807A550: .4byte gRoomControls +_0807A554: + movs r5, #0x2e + ldrsh r0, [r6, r5] + ldr r4, _0807A570 @ =gRoomControls + ldrh r1, [r4, #6] + subs r0, r0, r1 + asrs r0, r0, #4 + movs r3, #0x3f + ands r0, r3 + ldr r2, [r6, #0x48] + movs r5, #0x32 + ldrsh r1, [r6, r5] + ldrb r5, [r2, #5] + adds r1, r1, r5 + b _0807A59A + .align 2, 0 +_0807A570: .4byte gRoomControls +_0807A574: + ldr r2, [r6, #0x48] + movs r1, #0x2e + ldrsh r0, [r6, r1] + ldrb r5, [r2, #2] + adds r0, r0, r5 + b _0807A58A +_0807A580: + movs r1, #0x2e + ldrsh r0, [r6, r1] + ldr r2, [r6, #0x48] + ldrb r1, [r2, #2] + subs r0, r0, r1 +_0807A58A: + ldr r4, _0807A5B0 @ =gRoomControls + ldrh r1, [r4, #6] + subs r0, r0, r1 + asrs r0, r0, #4 + movs r3, #0x3f + ands r0, r3 + movs r5, #0x32 + ldrsh r1, [r6, r5] +_0807A59A: + ldrb r2, [r2, #1] + lsls r2, r2, #0x18 + asrs r2, r2, #0x18 + adds r1, r1, r2 + ldrh r2, [r4, #8] + subs r1, r1, r2 + asrs r1, r1, #4 + ands r1, r3 +_0807A5AA: + lsls r1, r1, #6 + orrs r0, r1 + b _0807A5B6 + .align 2, 0 +_0807A5B0: .4byte gRoomControls +_0807A5B4: + movs r0, #0 +_0807A5B6: + pop {r4, r5, r6, pc} + + thumb_func_start sub_0807A5B8 +sub_0807A5B8: @ 0x0807A5B8 + push {r4, r5, r6, r7, lr} + mov r7, sb + mov r6, r8 + push {r6, r7} + mov sb, r0 + ldr r2, _0807A5F8 @ =gLinkState + ldrb r3, [r2, #2] + movs r4, #0x80 + adds r0, r4, #0 + ands r0, r3 + cmp r0, #0 + beq _0807A5D2 + b _0807A736 +_0807A5D2: + ldr r1, [r2, #0x30] + movs r0, #0x40 + ands r0, r1 + cmp r0, #0 + beq _0807A5DE + b _0807A736 +_0807A5DE: + adds r0, r2, #0 + adds r0, #0x26 + ldrb r0, [r0] + cmp r0, #0 + beq _0807A5EA + b _0807A736 +_0807A5EA: + adds r0, r1, #0 + ands r0, r4 + cmp r0, #0 + beq _0807A600 + ldr r7, _0807A5FC @ =gUnk_0800833C + b _0807A63A + .align 2, 0 +_0807A5F8: .4byte gLinkState +_0807A5FC: .4byte gUnk_0800833C +_0807A600: + movs r0, #0x80 + lsls r0, r0, #0x11 + ands r1, r0 + cmp r1, #0 + bne _0807A60E + cmp r3, #0 + beq _0807A618 +_0807A60E: + ldr r7, _0807A614 @ =gUnk_0800845C + b _0807A63A + .align 2, 0 +_0807A614: .4byte gUnk_0800845C +_0807A618: + ldrb r0, [r2, #5] + cmp r0, #0 + bne _0807A624 + ldrb r0, [r2, #0x1c] + cmp r0, #0 + beq _0807A62C +_0807A624: + ldr r7, _0807A628 @ =gUnk_080084BC + b _0807A63A + .align 2, 0 +_0807A628: .4byte gUnk_080084BC +_0807A62C: + adds r0, r2, #0 + adds r0, #0xaa + ldrb r0, [r0] + ldr r7, _0807A740 @ =gUnk_080082DC + cmp r0, #0 + beq _0807A63A + ldr r7, _0807A744 @ =gUnk_0800851C +_0807A63A: + mov r0, sb + cmp r0, #0 + beq _0807A6B8 + cmp r0, #0x10 + beq _0807A6B8 + ldr r6, _0807A748 @ =gLinkEntity + ldr r2, [r6, #0x48] + movs r1, #0x2e + ldrsh r0, [r6, r1] + ldrb r3, [r2, #2] + adds r0, r0, r3 + movs r1, #0 + ldrsb r1, [r2, r1] + adds r0, r0, r1 + ldr r1, _0807A74C @ =gRoomControls + mov r8, r1 + ldrh r1, [r1, #6] + subs r5, r0, r1 + movs r3, #0x32 + ldrsh r0, [r6, r3] + movs r1, #1 + ldrsb r1, [r2, r1] + adds r0, r0, r1 + mov r2, r8 + ldrh r1, [r2, #8] + subs r4, r0, r1 + adds r0, r5, #0 + adds r1, r4, #0 + adds r2, r7, #0 + bl sub_080086B4 + cmp r0, #0 + beq _0807A688 + adds r0, r5, #0 + adds r1, r4, #0 + adds r2, r7, #0 + movs r3, #1 + bl sub_0807A750 +_0807A688: + movs r3, #0x2e + ldrsh r1, [r6, r3] + ldr r2, [r6, #0x48] + ldrb r0, [r2, #2] + subs r1, r1, r0 + movs r0, #0 + ldrsb r0, [r2, r0] + adds r1, r1, r0 + mov r2, r8 + ldrh r0, [r2, #6] + subs r5, r1, r0 + adds r0, r5, #0 + adds r1, r4, #0 + adds r2, r7, #0 + bl sub_080086B4 + cmp r0, #0 + beq _0807A6B8 + adds r0, r5, #0 + adds r1, r4, #0 + adds r2, r7, #0 + movs r3, #3 + bl sub_0807A750 +_0807A6B8: + mov r3, sb + cmp r3, #8 + beq _0807A736 + cmp r3, #0x18 + beq _0807A736 + ldr r6, _0807A748 @ =gLinkEntity + movs r0, #0x2e + ldrsh r1, [r6, r0] + ldr r2, [r6, #0x48] + movs r0, #0 + ldrsb r0, [r2, r0] + adds r1, r1, r0 + ldr r3, _0807A74C @ =gRoomControls + mov r8, r3 + ldrh r0, [r3, #6] + subs r5, r1, r0 + movs r1, #0x32 + ldrsh r0, [r6, r1] + ldrb r3, [r2, #5] + adds r0, r0, r3 + movs r1, #1 + ldrsb r1, [r2, r1] + adds r0, r0, r1 + mov r2, r8 + ldrh r1, [r2, #8] + subs r4, r0, r1 + adds r0, r5, #0 + adds r1, r4, #0 + adds r2, r7, #0 + bl sub_080086B4 + cmp r0, #0 + beq _0807A706 + adds r0, r5, #0 + adds r1, r4, #0 + adds r2, r7, #0 + movs r3, #2 + bl sub_0807A750 +_0807A706: + movs r3, #0x32 + ldrsh r1, [r6, r3] + ldr r2, [r6, #0x48] + ldrb r0, [r2, #5] + subs r1, r1, r0 + movs r0, #1 + ldrsb r0, [r2, r0] + adds r1, r1, r0 + mov r2, r8 + ldrh r0, [r2, #8] + subs r4, r1, r0 + adds r0, r5, #0 + adds r1, r4, #0 + adds r2, r7, #0 + bl sub_080086B4 + cmp r0, #0 + beq _0807A736 + adds r0, r5, #0 + adds r1, r4, #0 + adds r2, r7, #0 + movs r3, #0 + bl sub_0807A750 +_0807A736: + pop {r3, r4} + mov r8, r3 + mov sb, r4 + pop {r4, r5, r6, r7, pc} + .align 2, 0 +_0807A740: .4byte gUnk_080082DC +_0807A744: .4byte gUnk_0800851C +_0807A748: .4byte gLinkEntity +_0807A74C: .4byte gRoomControls + + thumb_func_start sub_0807A750 +sub_0807A750: @ 0x0807A750 + push {r4, r5, r6, r7, lr} + mov r7, r8 + push {r7} + adds r7, r0, #0 + adds r6, r1, #0 + mov r8, r2 + adds r5, r3, #0 + movs r0, #1 + ands r0, r5 + cmp r0, #0 + bne _0807A76C + movs r4, #0xf + ands r4, r6 + b _0807A770 +_0807A76C: + movs r4, #0xf + ands r4, r7 +_0807A770: + cmp r4, #0 + bne _0807A776 + b _0807A88E +_0807A776: + cmp r4, #0xf + bne _0807A77C + b _0807A88E +_0807A77C: + lsrs r0, r7, #4 + movs r2, #0x3f + ands r0, r2 + lsrs r1, r6, #4 + ands r1, r2 + lsls r1, r1, #6 + orrs r0, r1 + ldr r1, _0807A7A8 @ =gLinkEntity + adds r1, #0x38 + ldrb r1, [r1] + bl sub_080002E0 + adds r1, r0, #0 + cmp r1, #0xf + bls _0807A7AE + cmp r1, #0xff + beq _0807A7AC + mov r2, r8 + adds r0, r1, r2 + subs r0, #0x10 + ldrb r1, [r0] + b _0807A7AE + .align 2, 0 +_0807A7A8: .4byte gLinkEntity +_0807A7AC: + movs r1, #0xf +_0807A7AE: + ldr r0, _0807A7D8 @ =gUnk_0800823C + lsls r1, r1, #2 + adds r1, r1, r0 + ldr r1, [r1] + movs r0, #1 + ands r0, r5 + cmp r0, #0 + bne _0807A824 + movs r0, #0xf + ands r0, r7 + movs r2, #0x80 + lsls r2, r2, #8 + asrs r2, r0 + cmp r5, #0 + bne _0807A7F4 + ldr r3, _0807A7DC @ =gLinkEntity + cmp r4, #0xe + bgt _0807A7F0 + lsls r0, r4, #1 + adds r1, r0, r1 + b _0807A7E8 + .align 2, 0 +_0807A7D8: .4byte gUnk_0800823C +_0807A7DC: .4byte gLinkEntity +_0807A7E0: + adds r1, #2 + adds r4, #1 + cmp r4, #0xe + bgt _0807A7F0 +_0807A7E8: + ldrh r0, [r1] + ands r0, r2 + cmp r0, #0 + bne _0807A7E0 +_0807A7F0: + subs r4, #1 + b _0807A816 +_0807A7F4: + ldr r3, _0807A800 @ =gLinkEntity + cmp r4, #0 + ble _0807A814 + lsls r0, r4, #1 + adds r1, r0, r1 + b _0807A80C + .align 2, 0 +_0807A800: .4byte gLinkEntity +_0807A804: + subs r1, #2 + subs r4, #1 + cmp r4, #0 + ble _0807A814 +_0807A80C: + ldrh r0, [r1] + ands r0, r2 + cmp r0, #0 + bne _0807A804 +_0807A814: + adds r4, #1 +_0807A816: + movs r0, #0xf + ands r0, r6 + subs r0, r4, r0 + ldrh r1, [r3, #0x32] + adds r0, r0, r1 + strh r0, [r3, #0x32] + b _0807A88E +_0807A824: + movs r3, #0xf + ands r6, r3 + lsls r0, r6, #1 + adds r0, r0, r1 + ldrh r2, [r0] + cmp r5, #1 + bne _0807A85C + subs r0, r3, r4 + lsrs r2, r0 + ldr r3, _0807A858 @ =gLinkEntity + cmp r4, #0 + ble _0807A854 + ands r5, r2 + cmp r5, #0 + beq _0807A854 + movs r1, #1 +_0807A844: + lsrs r2, r2, #1 + subs r4, #1 + cmp r4, #0 + ble _0807A854 + adds r0, r2, #0 + ands r0, r1 + cmp r0, #0 + bne _0807A844 +_0807A854: + adds r4, #1 + b _0807A882 + .align 2, 0 +_0807A858: .4byte gLinkEntity +_0807A85C: + lsls r2, r4 + ldr r3, _0807A86C @ =gLinkEntity + cmp r4, #0xe + bgt _0807A880 + movs r1, #0x80 + lsls r1, r1, #8 + b _0807A878 + .align 2, 0 +_0807A86C: .4byte gLinkEntity +_0807A870: + lsls r2, r2, #1 + adds r4, #1 + cmp r4, #0xe + bgt _0807A880 +_0807A878: + adds r0, r2, #0 + ands r0, r1 + cmp r0, #0 + bne _0807A870 +_0807A880: + subs r4, #1 +_0807A882: + movs r0, #0xf + ands r0, r7 + subs r0, r4, r0 + ldrh r2, [r3, #0x2e] + adds r0, r0, r2 + strh r0, [r3, #0x2e] +_0807A88E: + pop {r3} + mov r8, r3 + pop {r4, r5, r6, r7, pc} + + thumb_func_start sub_0807A894 +sub_0807A894: @ 0x0807A894 + push {lr} + ldrb r1, [r0, #0x15] + cmp r1, #8 + beq _0807A8BA + cmp r1, #8 + bgt _0807A8A6 + cmp r1, #0 + beq _0807A8B0 + b _0807A8C8 +_0807A8A6: + cmp r1, #0x10 + beq _0807A8B6 + cmp r1, #0x18 + beq _0807A8C0 + b _0807A8C8 +_0807A8B0: + movs r2, #8 + rsbs r2, r2, #0 + b _0807A8CA +_0807A8B6: + movs r2, #5 + b _0807A8CA +_0807A8BA: + movs r2, #0 + movs r1, #8 + b _0807A8CC +_0807A8C0: + movs r2, #0 + movs r1, #8 + rsbs r1, r1, #0 + b _0807A8CC +_0807A8C8: + movs r2, #0 +_0807A8CA: + movs r1, #0 +_0807A8CC: + bl sub_080002B4 + pop {pc} + .align 2, 0 + + thumb_func_start nullsub_505 +nullsub_505: @ 0x0807A8D4 + bx lr + .align 2, 0 + + thumb_func_start sub_0807A8D8 +sub_0807A8D8: @ 0x0807A8D8 + push {r4, r5, r6, r7, lr} + mov r7, sb + mov r6, r8 + push {r6, r7} + adds r5, r0, #0 + ldr r0, _0807AA5C @ =gLinkState + ldr r0, [r0, #0x30] + movs r1, #0x80 + ands r0, r1 + cmp r0, #0 + beq _0807A8F0 + b _0807A9F6 +_0807A8F0: + movs r1, #0x2e + ldrsh r0, [r5, r1] + ldr r7, _0807AA60 @ =gRoomControls + ldrh r1, [r7, #6] + subs r0, r0, r1 + asrs r0, r0, #4 + movs r6, #0x3f + ands r0, r6 + movs r2, #0x32 + ldrsh r1, [r5, r2] + ldrh r2, [r7, #8] + adds r2, #1 + subs r1, r1, r2 + asrs r1, r1, #4 + ands r1, r6 + lsls r1, r1, #6 + orrs r0, r1 + ldr r1, _0807AA64 @ =gLinkEntity + adds r1, #0x38 + mov sb, r1 + ldrb r1, [r1] + bl sub_080002EC + adds r4, r0, #0 + movs r0, #0x20 + mov r8, r0 + ands r4, r0 + cmp r4, #0 + beq _0807A94E + movs r2, #0x2e + ldrsh r1, [r5, r2] + ldrh r0, [r7, #6] + subs r1, r1, r0 + asrs r1, r1, #4 + ands r1, r6 + movs r2, #0x32 + ldrsh r0, [r5, r2] + ldrh r2, [r7, #8] + adds r2, #1 + subs r0, r0, r2 + asrs r0, r0, #4 + ands r0, r6 + lsls r0, r0, #6 + orrs r1, r0 + adds r0, r5, #0 + bl sub_0807AAF8 +_0807A94E: + movs r1, #0x2e + ldrsh r0, [r5, r1] + ldrh r1, [r7, #6] + subs r1, #2 + subs r0, r0, r1 + asrs r0, r0, #4 + ands r0, r6 + movs r2, #0x32 + ldrsh r1, [r5, r2] + ldrh r2, [r7, #8] + subs r1, r1, r2 + asrs r1, r1, #4 + ands r1, r6 + lsls r1, r1, #6 + orrs r0, r1 + mov r2, sb + ldrb r1, [r2] + bl sub_080002EC + adds r4, r0, #0 + mov r0, r8 + ands r4, r0 + cmp r4, #0 + beq _0807A9A2 + movs r2, #0x2e + ldrsh r1, [r5, r2] + ldrh r0, [r7, #6] + subs r0, #2 + subs r1, r1, r0 + asrs r1, r1, #4 + ands r1, r6 + movs r2, #0x32 + ldrsh r0, [r5, r2] + ldrh r2, [r7, #8] + subs r0, r0, r2 + asrs r0, r0, #4 + ands r0, r6 + lsls r0, r0, #6 + orrs r1, r0 + adds r0, r5, #0 + bl sub_0807AAF8 +_0807A9A2: + movs r1, #0x2e + ldrsh r0, [r5, r1] + ldrh r1, [r7, #6] + adds r1, #2 + subs r0, r0, r1 + asrs r0, r0, #4 + ands r0, r6 + movs r2, #0x32 + ldrsh r1, [r5, r2] + ldrh r2, [r7, #8] + subs r1, r1, r2 + asrs r1, r1, #4 + ands r1, r6 + lsls r1, r1, #6 + orrs r0, r1 + mov r2, sb + ldrb r1, [r2] + bl sub_080002EC + adds r4, r0, #0 + mov r0, r8 + ands r4, r0 + cmp r4, #0 + beq _0807A9F6 + movs r2, #0x2e + ldrsh r1, [r5, r2] + ldrh r0, [r7, #6] + adds r0, #2 + subs r1, r1, r0 + asrs r1, r1, #4 + ands r1, r6 + movs r2, #0x32 + ldrsh r0, [r5, r2] + ldrh r2, [r7, #8] + subs r0, r0, r2 + asrs r0, r0, #4 + ands r0, r6 + lsls r0, r0, #6 + orrs r1, r0 + adds r0, r5, #0 + bl sub_0807AAF8 +_0807A9F6: + movs r1, #0x2e + ldrsh r0, [r5, r1] + ldr r7, _0807AA60 @ =gRoomControls + ldrh r1, [r7, #6] + subs r0, r0, r1 + asrs r0, r0, #4 + movs r6, #0x3f + ands r0, r6 + movs r2, #0x32 + ldrsh r1, [r5, r2] + ldrh r2, [r7, #8] + subs r1, r1, r2 + asrs r1, r1, #4 + ands r1, r6 + lsls r1, r1, #6 + orrs r0, r1 + ldr r1, _0807AA64 @ =gLinkEntity + adds r1, #0x38 + ldrb r1, [r1] + bl sub_080002EC + adds r4, r0, #0 + movs r0, #0x20 + ands r0, r4 + cmp r0, #0 + beq _0807AA4C + movs r0, #0x2e + ldrsh r1, [r5, r0] + ldrh r0, [r7, #6] + subs r1, r1, r0 + asrs r1, r1, #4 + ands r1, r6 + movs r2, #0x32 + ldrsh r0, [r5, r2] + ldrh r2, [r7, #8] + subs r0, r0, r2 + asrs r0, r0, #4 + ands r0, r6 + lsls r0, r0, #6 + orrs r1, r0 + adds r0, r5, #0 + bl sub_0807AAF8 +_0807AA4C: + movs r0, #2 + ands r0, r4 + cmp r0, #0 + beq _0807AA68 + adds r0, r5, #0 + bl sub_0807AABC + b _0807AA76 + .align 2, 0 +_0807AA5C: .4byte gLinkState +_0807AA60: .4byte gRoomControls +_0807AA64: .4byte gLinkEntity +_0807AA68: + movs r0, #4 + ands r0, r4 + cmp r0, #0 + beq _0807AA76 + adds r0, r5, #0 + bl sub_0807AA80 +_0807AA76: + pop {r3, r4} + mov r8, r3 + mov sb, r4 + pop {r4, r5, r6, r7, pc} + .align 2, 0 + + thumb_func_start sub_0807AA80 +sub_0807AA80: @ 0x0807AA80 + push {lr} + adds r3, r0, #0 + ldr r0, _0807AAB8 @ =gLinkState + ldr r0, [r0, #0x30] + movs r1, #0x40 + ands r0, r1 + cmp r0, #0 + bne _0807AAB6 + adds r0, r3, #0 + adds r0, #0x38 + movs r1, #2 + strb r1, [r0] + movs r1, #0x36 + ldrsh r0, [r3, r1] + cmp r0, #0 + bne _0807AAB6 + ldrb r2, [r3, #0x1b] + movs r1, #0x3f + adds r0, r1, #0 + ands r0, r2 + movs r2, #0x40 + orrs r0, r2 + strb r0, [r3, #0x1b] + ldrb r0, [r3, #0x19] + ands r1, r0 + orrs r1, r2 + strb r1, [r3, #0x19] +_0807AAB6: + pop {pc} + .align 2, 0 +_0807AAB8: .4byte gLinkState + + thumb_func_start sub_0807AABC +sub_0807AABC: @ 0x0807AABC + push {lr} + adds r3, r0, #0 + ldr r0, _0807AAF4 @ =gLinkState + ldr r0, [r0, #0x30] + movs r1, #0x40 + ands r0, r1 + cmp r0, #0 + bne _0807AAF2 + adds r0, r3, #0 + adds r0, #0x38 + movs r1, #1 + strb r1, [r0] + movs r1, #0x36 + ldrsh r0, [r3, r1] + cmp r0, #0 + bne _0807AAF2 + ldrb r2, [r3, #0x1b] + movs r1, #0x3f + adds r0, r1, #0 + ands r0, r2 + movs r2, #0x80 + orrs r0, r2 + strb r0, [r3, #0x1b] + ldrb r0, [r3, #0x19] + ands r1, r0 + orrs r1, r2 + strb r1, [r3, #0x19] +_0807AAF2: + pop {pc} + .align 2, 0 +_0807AAF4: .4byte gLinkState + + thumb_func_start sub_0807AAF8 +sub_0807AAF8: @ 0x0807AAF8 + push {r4, lr} + adds r3, r0, #0 + adds r2, r1, #0 + movs r1, #0x36 + ldrsh r0, [r3, r1] + cmp r0, #0 + bne _0807AB3C + adds r0, r3, #0 + adds r0, #0x38 + ldrb r0, [r0] + lsls r0, r0, #0x1e + orrs r2, r0 + movs r3, #0 + ldr r0, _0807AB40 @ =gLinkState + ldr r1, [r0, #0x40] + adds r4, r0, #0 + cmp r1, r2 + beq _0807AB32 + adds r1, r4, #0 + adds r1, #0x40 +_0807AB20: + ldr r0, [r1] + stm r1!, {r2} + adds r2, r0, #0 + adds r3, #1 + cmp r3, #0xe + bhi _0807AB32 + ldr r0, [r1] + cmp r0, r2 + bne _0807AB20 +_0807AB32: + lsls r0, r3, #2 + adds r1, r4, #0 + adds r1, #0x40 + adds r0, r0, r1 + str r2, [r0] +_0807AB3C: + pop {r4, pc} + .align 2, 0 +_0807AB40: .4byte gLinkState + + thumb_func_start sub_0807AB44 +sub_0807AB44: @ 0x0807AB44 + push {r4, r5, r6, r7, lr} + mov r7, sl + mov r6, sb + mov r5, r8 + push {r5, r6, r7} + adds r6, r0, #0 + adds r7, r1, #0 + mov r8, r2 + movs r1, #0x2e + ldrsh r0, [r6, r1] + adds r0, r0, r7 + ldr r2, _0807ABF0 @ =gRoomControls + mov sb, r2 + ldrh r1, [r2, #6] + subs r0, r0, r1 + asrs r0, r0, #4 + movs r3, #0x3f + mov sl, r3 + ands r0, r3 + movs r5, #0x32 + ldrsh r1, [r6, r5] + add r1, r8 + ldrh r2, [r2, #8] + subs r1, r1, r2 + asrs r1, r1, #4 + ands r1, r3 + lsls r1, r1, #6 + orrs r0, r1 + adds r1, r6, #0 + adds r1, #0x38 + ldrb r1, [r1] + bl GetTileType + movs r1, #0xb + bl sub_0806FC50 + adds r5, r0, #0 + cmp r5, #0 + beq _0807AC44 + ldrh r0, [r5, #6] + cmp r0, #0x76 + bne _0807ABF4 + movs r0, #0x2a + movs r1, #1 + movs r2, #0 + bl CreateObject + adds r4, r0, #0 + cmp r4, #0 + beq _0807AC44 + lsls r2, r7, #0x10 + mov r0, r8 + lsls r3, r0, #0x10 + adds r0, r6, #0 + adds r1, r4, #0 + bl PositionRelative + adds r0, r4, #0 + bl sub_08004168 + ldrh r0, [r5, #6] + movs r2, #0x2e + ldrsh r1, [r4, r2] + mov r3, sb + ldrh r2, [r3, #6] + subs r1, r1, r2 + asrs r1, r1, #4 + mov r5, sl + ands r1, r5 + movs r3, #0x32 + ldrsh r2, [r4, r3] + mov r5, sb + ldrh r3, [r5, #8] + subs r2, r2, r3 + asrs r2, r2, #4 + mov r3, sl + ands r2, r3 + lsls r2, r2, #6 + orrs r1, r2 + adds r2, r4, #0 + adds r2, #0x38 + ldrb r2, [r2] + bl sub_0807B7D8 + b _0807AC44 + .align 2, 0 +_0807ABF0: .4byte gRoomControls +_0807ABF4: + movs r0, #0x2a + movs r1, #2 + movs r2, #0 + bl CreateObject + adds r4, r0, #0 + cmp r4, #0 + beq _0807AC44 + lsls r2, r7, #0x10 + mov r0, r8 + lsls r3, r0, #0x10 + adds r0, r6, #0 + adds r1, r4, #0 + bl PositionRelative + str r5, [r4, #0x54] + ldr r0, _0807AC50 @ =0x0000404F + movs r2, #0x2e + ldrsh r1, [r4, r2] + mov r3, sb + ldrh r2, [r3, #6] + subs r1, r1, r2 + asrs r1, r1, #4 + mov r5, sl + ands r1, r5 + movs r3, #0x32 + ldrsh r2, [r4, r3] + mov r5, sb + ldrh r3, [r5, #8] + subs r2, r2, r3 + asrs r2, r2, #4 + mov r3, sl + ands r2, r3 + lsls r2, r2, #6 + orrs r1, r2 + adds r2, r4, #0 + adds r2, #0x38 + ldrb r2, [r2] + bl SetTile +_0807AC44: + pop {r3, r4, r5} + mov r8, r3 + mov sb, r4 + mov sl, r5 + pop {r4, r5, r6, r7, pc} + .align 2, 0 +_0807AC50: .4byte 0x0000404F + + thumb_func_start sub_0807AC54 +sub_0807AC54: @ 0x0807AC54 + push {lr} + adds r2, r0, #0 + ldr r0, _0807AC74 @ =gLinkState + ldrb r1, [r0, #0x11] + adds r3, r0, #0 + cmp r1, #0 + beq _0807ACC6 + ldrb r0, [r3, #0x12] + cmp r0, #0x2a + beq _0807ACA8 + cmp r0, #0x2a + bgt _0807AC78 + cmp r0, #0x1e + beq _0807AC82 + b _0807ACC6 + .align 2, 0 +_0807AC74: .4byte gLinkState +_0807AC78: + cmp r0, #0x2b + beq _0807AC90 + cmp r0, #0x2c + beq _0807ACB6 + b _0807ACC6 +_0807AC82: + ldrh r0, [r2, #0x2e] + movs r1, #0x10 + rsbs r1, r1, #0 + ands r1, r0 + movs r0, #8 + orrs r1, r0 + strh r1, [r2, #0x2e] +_0807AC90: + movs r0, #0 + movs r1, #0x1d + strb r1, [r2, #0xc] + strb r0, [r2, #0xd] + strh r0, [r2, #0x30] + ldr r0, _0807ACA4 @ =0x000002CF + strh r0, [r3, #8] + movs r0, #1 + b _0807ACC8 + .align 2, 0 +_0807ACA4: .4byte 0x000002CF +_0807ACA8: + ldrh r0, [r2, #0x2e] + movs r1, #0x10 + rsbs r1, r1, #0 + ands r1, r0 + movs r0, #8 + orrs r1, r0 + strh r1, [r2, #0x2e] +_0807ACB6: + movs r0, #0 + movs r1, #0x1d + strb r1, [r2, #0xc] + movs r1, #1 + strb r1, [r2, #0xd] + strh r0, [r2, #0x30] + movs r0, #1 + b _0807ACC8 +_0807ACC6: + movs r0, #0 +_0807ACC8: + pop {pc} + .align 2, 0 + + thumb_func_start sub_0807ACCC +sub_0807ACCC: @ 0x0807ACCC + push {r4, lr} + adds r4, r0, #0 + adds r2, r4, #0 + adds r2, #0x29 + ldrb r1, [r2] + movs r0, #0x39 + rsbs r0, r0, #0 + ands r0, r1 + strb r0, [r2] + adds r1, r4, #0 + adds r1, #0x42 + movs r0, #0 + strb r0, [r1] + movs r0, #0x72 + bl GetInventoryValue + movs r1, #0xc0 + cmp r0, #1 + bne _0807ACF4 + adds r1, #0x40 +_0807ACF4: + movs r2, #0x24 + ldrsh r0, [r4, r2] + cmp r1, r0 + ble _0807AD18 + strh r1, [r4, #0x24] + ldr r0, _0807AD14 @ =gLinkState + ldrb r1, [r0, #0xd] + strb r1, [r4, #0x15] + adds r0, #0x26 + ldrb r1, [r0] + movs r0, #0xf + ands r0, r1 + cmp r0, #1 + bne _0807ADB4 + b _0807AD1E + .align 2, 0 +_0807AD14: .4byte gLinkState +_0807AD18: + ldrh r0, [r4, #0x24] + subs r0, #4 + strh r0, [r4, #0x24] +_0807AD1E: + ldr r2, _0807AD3C @ =gLinkState + adds r1, r2, #0 + adds r1, #0x89 + ldrb r0, [r1] + cmp r0, #0 + bne _0807AD40 + adds r0, r4, #0 + bl sub_0807ADB8 + cmp r0, #0 + bne _0807AD74 + adds r0, r4, #0 + bl sub_0807AE20 + b _0807AD74 + .align 2, 0 +_0807AD3C: .4byte gLinkState +_0807AD40: + subs r0, #1 + strb r0, [r1] + lsls r0, r0, #0x18 + cmp r0, #0 + beq _0807AD52 + adds r0, r4, #0 + bl sub_0807ADB8 + b _0807AD74 +_0807AD52: + adds r2, #0x26 + ldrb r1, [r2] + movs r0, #0x7f + ands r0, r1 + strb r0, [r2] + adds r2, r4, #0 + adds r2, #0x29 + ldrb r1, [r2] + movs r0, #8 + rsbs r0, r0, #0 + ands r0, r1 + movs r1, #4 + orrs r0, r1 + strb r0, [r2] + ldr r0, _0807ADA0 @ =0x00000163 + bl PlaySFX +_0807AD74: + ldr r0, _0807ADA4 @ =gLinkState + adds r0, #0x26 + ldrb r1, [r0] + movs r0, #0x80 + ands r0, r1 + cmp r0, #0 + beq _0807ADA8 + adds r2, r4, #0 + adds r2, #0x3c + ldrb r1, [r2] + movs r0, #4 + orrs r0, r1 + strb r0, [r2] + subs r2, #0x13 + ldrb r1, [r2] + movs r0, #8 + rsbs r0, r0, #0 + ands r0, r1 + movs r1, #6 + orrs r0, r1 + b _0807ADB2 + .align 2, 0 +_0807ADA0: .4byte 0x00000163 +_0807ADA4: .4byte gLinkState +_0807ADA8: + adds r2, r4, #0 + adds r2, #0x3c + ldrb r1, [r2] + movs r0, #0xfb + ands r0, r1 +_0807ADB2: + strb r0, [r2] +_0807ADB4: + pop {r4, pc} + .align 2, 0 + + thumb_func_start sub_0807ADB8 +sub_0807ADB8: @ 0x0807ADB8 + push {r4, lr} + adds r2, r0, #0 + ldr r3, _0807ADF4 @ =gLinkState + adds r0, r3, #0 + adds r0, #0x92 + ldrh r1, [r0] + movs r0, #0x10 + ands r0, r1 + cmp r0, #0 + beq _0807AE1C + movs r0, #0x26 + adds r0, r0, r3 + mov ip, r0 + ldrb r0, [r0] + movs r1, #0x80 + eors r0, r1 + mov r1, ip + strb r0, [r1] + movs r1, #0x80 + ands r0, r1 + lsls r0, r0, #0x18 + lsrs r4, r0, #0x18 + cmp r4, #0 + beq _0807ADF8 + adds r1, r3, #0 + adds r1, #0x89 + movs r0, #0x78 + strb r0, [r1] + b _0807AE0E + .align 2, 0 +_0807ADF4: .4byte gLinkState +_0807ADF8: + adds r2, #0x29 + ldrb r1, [r2] + movs r0, #8 + rsbs r0, r0, #0 + ands r0, r1 + movs r1, #4 + orrs r0, r1 + strb r0, [r2] + adds r0, r3, #0 + adds r0, #0x89 + strb r4, [r0] +_0807AE0E: + ldr r0, _0807AE18 @ =0x00000163 + bl PlaySFX + movs r0, #1 + b _0807AE1E + .align 2, 0 +_0807AE18: .4byte 0x00000163 +_0807AE1C: + movs r0, #0 +_0807AE1E: + pop {r4, pc} + + thumb_func_start sub_0807AE20 +sub_0807AE20: @ 0x0807AE20 + push {r4, lr} + adds r4, r0, #0 + ldrb r0, [r4, #0xc] + cmp r0, #0x17 + bne _0807AE32 + ldr r0, _0807AE58 @ =gLinkState + ldrb r0, [r0, #0xa] + cmp r0, #0 + bne _0807AE74 +_0807AE32: + ldr r0, _0807AE5C @ =gRoomControls + ldrh r0, [r0] + cmp r0, #0 + bne _0807AE74 + ldr r0, _0807AE58 @ =gLinkState + adds r0, #0x92 + ldrh r1, [r0] + movs r0, #8 + ands r0, r1 + cmp r0, #0 + beq _0807AE74 + movs r0, #0x72 + bl GetInventoryValue + cmp r0, #1 + bne _0807AE60 + movs r0, #0xe0 + lsls r0, r0, #1 + b _0807AE64 + .align 2, 0 +_0807AE58: .4byte gLinkState +_0807AE5C: .4byte gRoomControls +_0807AE60: + movs r0, #0xc0 + lsls r0, r0, #1 +_0807AE64: + strh r0, [r4, #0x24] + adds r0, r4, #0 + bl sub_08079520 + movs r0, #0xb1 + lsls r0, r0, #1 + bl PlaySFX +_0807AE74: + movs r0, #0x10 + bl sub_080793E4 + cmp r0, #0 + beq _0807AEA8 + adds r1, r4, #0 + adds r1, #0x3d + movs r0, #0x14 + strb r0, [r1] + adds r1, #5 + movs r0, #4 + strb r0, [r1] + ldrb r0, [r4, #0x14] + lsls r0, r0, #2 + movs r1, #0x10 + eors r0, r1 + adds r1, r4, #0 + adds r1, #0x3e + strb r0, [r1] + movs r0, #2 + rsbs r0, r0, #0 + bl ModHealth + movs r0, #0x7a + bl PlaySFX +_0807AEA8: + ldrb r1, [r4, #0x15] + movs r0, #0x80 + ands r0, r1 + cmp r0, #0 + beq _0807AECC + ldr r0, _0807AEC8 @ =gUnk_030010A0 + ldr r0, [r0] + movs r1, #0xf + ands r0, r1 + cmp r0, #0 + bne _0807AEDE + adds r0, r4, #0 + movs r1, #4 + bl sub_080A2A84 + b _0807AEDE + .align 2, 0 +_0807AEC8: .4byte gUnk_030010A0 +_0807AECC: + ldr r0, _0807AEE0 @ =gUnk_030010A0 + ldr r0, [r0] + movs r1, #7 + ands r0, r1 + cmp r0, #0 + bne _0807AEDE + adds r0, r4, #0 + bl sub_080A2A64 +_0807AEDE: + pop {r4, pc} + .align 2, 0 +_0807AEE0: .4byte gUnk_030010A0 + + thumb_func_start sub_0807AEE4 +sub_0807AEE4: @ 0x0807AEE4 + push {r4, lr} + ldr r0, _0807AFE4 @ =gLinkState + adds r4, r0, #0 + adds r4, #0xac + movs r0, #0 + strh r0, [r4] + movs r0, #0x48 + bl GetInventoryValue + cmp r0, #1 + bne _0807AF02 + ldrh r0, [r4] + movs r1, #1 + orrs r0, r1 + strh r0, [r4] +_0807AF02: + movs r0, #0x49 + bl GetInventoryValue + cmp r0, #1 + bne _0807AF14 + ldrh r0, [r4] + movs r1, #2 + orrs r0, r1 + strh r0, [r4] +_0807AF14: + movs r0, #0x4a + bl GetInventoryValue + cmp r0, #1 + bne _0807AF26 + ldrh r0, [r4] + movs r1, #4 + orrs r0, r1 + strh r0, [r4] +_0807AF26: + movs r0, #0x4b + bl GetInventoryValue + cmp r0, #1 + bne _0807AF38 + ldrh r0, [r4] + movs r1, #8 + orrs r0, r1 + strh r0, [r4] +_0807AF38: + movs r0, #0x4c + bl GetInventoryValue + cmp r0, #1 + bne _0807AF4A + ldrh r0, [r4] + movs r1, #0x10 + orrs r0, r1 + strh r0, [r4] +_0807AF4A: + movs r0, #0x4d + bl GetInventoryValue + cmp r0, #1 + bne _0807AF5C + ldrh r0, [r4] + movs r1, #0x20 + orrs r0, r1 + strh r0, [r4] +_0807AF5C: + movs r0, #0x4e + bl GetInventoryValue + cmp r0, #1 + bne _0807AF6E + ldrh r0, [r4] + movs r1, #0x40 + orrs r0, r1 + strh r0, [r4] +_0807AF6E: + movs r0, #0x4f + bl GetInventoryValue + cmp r0, #1 + bne _0807AF80 + ldrh r0, [r4] + movs r1, #0x80 + orrs r0, r1 + strh r0, [r4] +_0807AF80: + movs r0, #6 + bl GetInventoryValue + cmp r0, #1 + bne _0807AF96 + ldrh r0, [r4] + movs r2, #0x80 + lsls r2, r2, #1 + adds r1, r2, #0 + orrs r0, r1 + strh r0, [r4] +_0807AF96: + movs r0, #0x73 + bl GetInventoryValue + cmp r0, #1 + bne _0807AFAC + ldrh r0, [r4] + movs r3, #0x80 + lsls r3, r3, #2 + adds r1, r3, #0 + orrs r0, r1 + strh r0, [r4] +_0807AFAC: + movs r0, #0x74 + bl GetInventoryValue + cmp r0, #1 + bne _0807AFC6 + ldr r0, _0807AFE4 @ =gLinkState + adds r0, #0xac + ldrh r2, [r0] + movs r3, #0x80 + lsls r3, r3, #3 + adds r1, r3, #0 + orrs r1, r2 + strh r1, [r0] +_0807AFC6: + movs r0, #0x75 + bl GetInventoryValue + cmp r0, #1 + bne _0807AFE0 + ldr r0, _0807AFE4 @ =gLinkState + adds r0, #0xac + ldrh r2, [r0] + movs r3, #0x80 + lsls r3, r3, #4 + adds r1, r3, #0 + orrs r1, r2 + strh r1, [r0] +_0807AFE0: + pop {r4, pc} + .align 2, 0 +_0807AFE4: .4byte gLinkState + + thumb_func_start sub_0807AFE8 +sub_0807AFE8: @ 0x0807AFE8 + push {lr} + bl sub_08077B20 + ldr r0, _0807B00C @ =gLinkEntity + movs r1, #0x43 + movs r2, #0 + bl CreateFx + adds r1, r0, #0 + cmp r1, #0 + beq _0807B004 + ldrh r0, [r1, #0x32] + adds r0, #1 + strh r0, [r1, #0x32] +_0807B004: + ldr r1, _0807B010 @ =gLinkState + movs r0, #9 + strb r0, [r1, #0xc] + pop {pc} + .align 2, 0 +_0807B00C: .4byte gLinkEntity +_0807B010: .4byte gLinkState + + thumb_func_start sub_0807B014 +sub_0807B014: @ 0x0807B014 + push {lr} + ldr r2, _0807B03C @ =gLinkState + adds r0, r2, #0 + adds r0, #0xac + ldrh r1, [r0] + movs r0, #0x10 + ands r0, r1 + cmp r0, #0 + beq _0807B044 + ldr r0, _0807B040 @ =gUnk_02002A40 + adds r1, r0, #0 + adds r1, #0xaa + adds r0, #0xab + ldrb r1, [r1] + ldrb r0, [r0] + cmp r1, r0 + bne _0807B044 + movs r0, #0xf + b _0807B066 + .align 2, 0 +_0807B03C: .4byte gLinkState +_0807B040: .4byte gUnk_02002A40 +_0807B044: + adds r0, r2, #0 + adds r0, #0xac + ldrh r1, [r0] + movs r0, #0x80 + ands r0, r1 + cmp r0, #0 + beq _0807B064 + ldr r0, _0807B060 @ =gUnk_02002A40 + adds r0, #0xaa + ldrb r0, [r0] + cmp r0, #8 + bhi _0807B064 + movs r0, #0x16 + b _0807B066 + .align 2, 0 +_0807B060: .4byte gUnk_02002A40 +_0807B064: + movs r0, #0 +_0807B066: + pop {pc} + + thumb_func_start sub_0807B068 +sub_0807B068: @ 0x0807B068 + push {lr} + ldr r2, _0807B090 @ =gLinkState + ldrb r1, [r2, #0x1e] + ldrb r0, [r2, #4] + orrs r0, r1 + cmp r0, #0 + bne _0807B0C2 + adds r0, r2, #0 + adds r0, #0x26 + ldrb r1, [r0] + cmp r1, #0 + beq _0807B0A4 + movs r0, #0x80 + ands r0, r1 + cmp r0, #0 + beq _0807B098 + ldr r0, _0807B094 @ =0x00000C1C + strh r0, [r2, #8] + b _0807B0C2 + .align 2, 0 +_0807B090: .4byte gLinkState +_0807B094: .4byte 0x00000C1C +_0807B098: + ldr r0, _0807B0A0 @ =0x00000C0C + strh r0, [r2, #8] + b _0807B0C2 + .align 2, 0 +_0807B0A0: .4byte 0x00000C0C +_0807B0A4: + ldrb r1, [r2, #0xd] + movs r0, #0x80 + ands r0, r1 + cmp r0, #0 + beq _0807B0B8 + ldrh r0, [r2, #8] + ldr r1, _0807B0B4 @ =0x00000C18 + b _0807B0BC + .align 2, 0 +_0807B0B4: .4byte 0x00000C18 +_0807B0B8: + ldrh r0, [r2, #8] + ldr r1, _0807B0C4 @ =0x00000C04 +_0807B0BC: + cmp r0, r1 + beq _0807B0C2 + strh r1, [r2, #8] +_0807B0C2: + pop {pc} + .align 2, 0 +_0807B0C4: .4byte 0x00000C04 + + thumb_func_start sub_0807B0C8 +sub_0807B0C8: @ 0x0807B0C8 + push {r4, lr} + ldr r4, _0807B0F8 @ =gLinkEntity + adds r0, r4, #0 + movs r1, #0 + movs r2, #0 + bl sub_0806FEBC + adds r0, r4, #0 + movs r1, #1 + movs r2, #0 + bl sub_0806FEBC + adds r0, r4, #0 + movs r1, #2 + adds r2, r4, #0 + bl sub_0806FEBC + adds r0, r4, #0 + movs r1, #3 + movs r2, #0 + bl sub_0806FEBC + pop {r4, pc} + .align 2, 0 +_0807B0F8: .4byte gLinkEntity + + thumb_func_start sub_0807B0FC +sub_0807B0FC: @ 0x0807B0FC + push {lr} + ldr r2, _0807B110 @ =gUnk_0811C27C + ldrb r1, [r0, #0xd] + lsls r1, r1, #2 + adds r1, r1, r2 + ldr r1, [r1] + bl _call_via_r1 + pop {pc} + .align 2, 0 +_0807B110: .4byte gUnk_0811C27C + + thumb_func_start sub_0807B114 +sub_0807B114: @ 0x0807B114 + movs r1, #1 + strb r1, [r0, #0xd] + ldr r1, _0807B124 @ =gLinkState + adds r1, #0x38 + ldrb r1, [r1] + adds r0, #0x6c + strb r1, [r0] + bx lr + .align 2, 0 +_0807B124: .4byte gLinkState + + thumb_func_start sub_0807B128 +sub_0807B128: @ 0x0807B128 + push {lr} + ldr r2, _0807B140 @ =gUnk_0811C284 + adds r1, r0, #0 + adds r1, #0x6c + ldrb r1, [r1] + lsls r1, r1, #2 + adds r1, r1, r2 + ldr r1, [r1] + bl _call_via_r1 + pop {pc} + .align 2, 0 +_0807B140: .4byte gUnk_0811C284 + + thumb_func_start sub_0807B144 +sub_0807B144: @ 0x0807B144 + push {lr} + ldrb r2, [r0, #0x18] + movs r1, #4 + rsbs r1, r1, #0 + ands r1, r2 + movs r2, #1 + orrs r1, r2 + strb r1, [r0, #0x18] + ldrb r1, [r0, #0x14] + lsls r1, r1, #2 + strb r1, [r0, #0x15] + movs r1, #0xa0 + strh r1, [r0, #0x24] + movs r1, #0x80 + lsls r1, r1, #0xb + str r1, [r0, #0x20] + ldr r1, _0807B170 @ =gLinkState + movs r0, #0x81 + strb r0, [r1, #2] + bl sub_080791BC + pop {pc} + .align 2, 0 +_0807B170: .4byte gLinkState + + thumb_func_start nullsub_506 +nullsub_506: @ 0x0807B174 + bx lr + .align 2, 0 + + thumb_func_start sub_0807B178 +sub_0807B178: @ 0x0807B178 + push {lr} + ldrb r2, [r0, #0x18] + movs r1, #4 + rsbs r1, r1, #0 + ands r1, r2 + movs r2, #1 + orrs r1, r2 + strb r1, [r0, #0x18] + movs r2, #0 + movs r1, #0x10 + strb r1, [r0, #0x15] + strh r2, [r0, #0x24] + movs r1, #0x80 + lsls r1, r1, #0xb + str r1, [r0, #0x20] + ldr r1, _0807B1A4 @ =gLinkState + movs r0, #0x81 + strb r0, [r1, #2] + bl sub_080791BC + pop {pc} + .align 2, 0 +_0807B1A4: .4byte gLinkState + + thumb_func_start sub_0807B1A8 +sub_0807B1A8: @ 0x0807B1A8 + push {r4, lr} + adds r4, r0, #0 + ldr r1, _0807B1D4 @ =gUnk_0811C298 + adds r0, #0x6e + ldrb r0, [r0] + lsls r0, r0, #2 + adds r0, r0, r1 + ldr r1, [r0] + adds r0, r4, #0 + bl _call_via_r1 + ldr r0, _0807B1D8 @ =gUnk_030010A0 + ldr r0, [r0] + movs r1, #7 + ands r0, r1 + cmp r0, #0 + bne _0807B1D0 + adds r0, r4, #0 + bl sub_080A2B80 +_0807B1D0: + pop {r4, pc} + .align 2, 0 +_0807B1D4: .4byte gUnk_0811C298 +_0807B1D8: .4byte gUnk_030010A0 + + thumb_func_start sub_0807B1DC +sub_0807B1DC: @ 0x0807B1DC + adds r2, r0, #0 + adds r2, #0x6e + ldrb r1, [r2] + adds r1, #1 + strb r1, [r2] + movs r1, #0x1e + strb r1, [r0, #0xe] + bx lr + + thumb_func_start sub_0807B1EC +sub_0807B1EC: @ 0x0807B1EC + push {lr} + adds r2, r0, #0 + ldrb r0, [r2, #0xe] + subs r0, #1 + strb r0, [r2, #0xe] + lsls r0, r0, #0x18 + cmp r0, #0 + bne _0807B212 + adds r1, r2, #0 + adds r1, #0x6e + ldrb r0, [r1] + adds r0, #1 + strb r0, [r1] + movs r0, #0x80 + lsls r0, r0, #9 + str r0, [r2, #0x20] + ldr r1, _0807B214 @ =gLinkState + ldr r0, _0807B218 @ =0x000002C2 + strh r0, [r1, #8] +_0807B212: + pop {pc} + .align 2, 0 +_0807B214: .4byte gLinkState +_0807B218: .4byte 0x000002C2 + + thumb_func_start sub_0807B21C +sub_0807B21C: @ 0x0807B21C + push {r4, lr} + adds r4, r0, #0 + bl UpdateAnimationSingleFrame + ldr r0, [r4, #0x20] + cmp r0, #0 + bge _0807B236 + movs r1, #0x80 + lsls r1, r1, #3 + adds r0, r4, #0 + bl sub_08003FC4 + b _0807B240 +_0807B236: + movs r1, #0x80 + lsls r1, r1, #4 + adds r0, r4, #0 + bl sub_08003FC4 +_0807B240: + ldr r1, [r4, #0x20] + ldr r0, _0807B260 @ =0xFFFF8000 + cmp r1, r0 + bge _0807B25E + movs r1, #0 + movs r0, #0x78 + strb r0, [r4, #0xe] + strb r1, [r4, #0xf] + adds r1, r4, #0 + adds r1, #0x6e + ldrb r0, [r1] + adds r0, #1 + strb r0, [r1] + ldr r0, [r4, #0x34] + str r0, [r4, #0x68] +_0807B25E: + pop {r4, pc} + .align 2, 0 +_0807B260: .4byte 0xFFFF8000 + + thumb_func_start sub_0807B264 +sub_0807B264: @ 0x0807B264 + push {r4, lr} + adds r4, r0, #0 + bl UpdateAnimationSingleFrame + ldrb r0, [r4, #0xf] + adds r0, #2 + strb r0, [r4, #0xf] + ldr r1, _0807B2B4 @ =gSineTable + ldrb r0, [r4, #0xf] + lsls r0, r0, #1 + adds r0, r0, r1 + movs r2, #0 + ldrsh r1, [r0, r2] + asrs r1, r1, #7 + lsls r1, r1, #0x10 + ldr r0, [r4, #0x68] + adds r0, r0, r1 + str r0, [r4, #0x34] + ldrb r0, [r4, #0xe] + subs r0, #1 + strb r0, [r4, #0xe] + lsls r0, r0, #0x18 + cmp r0, #0 + bne _0807B2B0 + movs r0, #0x50 + strb r0, [r4, #0xe] + movs r0, #0x80 + lsls r0, r0, #8 + str r0, [r4, #0x20] + adds r1, r4, #0 + adds r1, #0x6e + ldrb r0, [r1] + adds r0, #1 + strb r0, [r1] + movs r0, #0xa9 + lsls r0, r0, #1 + bl PlaySFX +_0807B2B0: + pop {r4, pc} + .align 2, 0 +_0807B2B4: .4byte gSineTable + + thumb_func_start sub_0807B2B8 +sub_0807B2B8: @ 0x0807B2B8 + push {r4, lr} + adds r4, r0, #0 + ldr r1, _0807B2F0 @ =0xFFFFE000 + bl sub_08003FC4 + adds r0, r4, #0 + bl UpdateAnimationSingleFrame + ldrb r0, [r4, #0xe] + cmp r0, #0 + beq _0807B2EC + subs r0, #1 + strb r0, [r4, #0xe] + lsls r0, r0, #0x18 + cmp r0, #0 + bne _0807B2EC + adds r0, r4, #0 + adds r0, #0x6d + ldrb r1, [r0] + lsls r0, r1, #2 + adds r0, r0, r1 + lsls r0, r0, #2 + ldr r1, _0807B2F4 @ =gUnk_0813AD88 + adds r0, r0, r1 + bl DoExitTransition +_0807B2EC: + pop {r4, pc} + .align 2, 0 +_0807B2F0: .4byte 0xFFFFE000 +_0807B2F4: .4byte gUnk_0813AD88 + + thumb_func_start sub_0807B2F8 +sub_0807B2F8: @ 0x0807B2F8 + push {lr} + adds r2, r0, #0 + adds r1, r2, #0 + adds r1, #0x6e + ldrb r0, [r1] + cmp r0, #0 + bne _0807B310 + adds r0, #1 + strb r0, [r1] + adds r0, r2, #0 + bl sub_0809D738 +_0807B310: + pop {pc} + .align 2, 0 + + thumb_func_start SetTileType +SetTileType: @ 0x0807B314 + push {r4, r5, r6, r7, lr} + adds r5, r0, #0 + adds r4, r1, #0 + adds r6, r2, #0 + ldr r0, _0807B3A0 @ =0x000007FF + cmp r5, r0 + bhi _0807B410 + adds r0, r4, #0 + adds r1, r6, #0 + bl DeleteLoadedTileEntity + adds r0, r6, #0 + bl GetLayerByIndex + adds r2, r0, #0 + lsls r1, r5, #1 + ldr r3, _0807B3A4 @ =0x00006004 + adds r0, r2, r3 + adds r0, r0, r1 + ldrh r0, [r0] + mov ip, r0 + lsls r1, r4, #1 + adds r0, r2, #4 + adds r0, r0, r1 + mov r1, ip + strh r1, [r0] + ldr r0, _0807B3A8 @ =gUnk_080B3E80 + adds r0, r5, r0 + ldrb r3, [r0] + ldr r1, _0807B3AC @ =0x00002004 + adds r0, r2, r1 + adds r0, r0, r4 + strb r3, [r0] + ldr r7, _0807B3B0 @ =gRoomControls + ldrb r1, [r7, #0xf] + movs r0, #2 + ands r0, r1 + cmp r0, #0 + beq _0807B36C + ldr r0, _0807B3B4 @ =gUnk_02025EB0 + ldr r1, _0807B3AC @ =0x00002004 + adds r0, r0, r1 + adds r0, r4, r0 + strb r3, [r0] +_0807B36C: + ldr r3, _0807B3B8 @ =0x0000B004 + adds r1, r2, r3 + adds r1, r1, r4 + ldr r0, _0807B3BC @ =gUnk_080B37A0 + adds r0, r5, r0 + ldrb r0, [r0] + strb r0, [r1] + ldrb r1, [r7, #0xf] + movs r0, #1 + ands r0, r1 + cmp r0, #0 + bne _0807B430 + movs r1, #0x3f + ands r1, r4 + lsls r1, r1, #1 + movs r0, #0xfc + lsls r0, r0, #4 + ands r0, r4 + lsls r0, r0, #2 + adds r1, r1, r0 + cmp r6, #2 + beq _0807B3C4 + lsls r1, r1, #1 + ldr r0, _0807B3C0 @ =gUnk_02019EE0 + b _0807B3C8 + .align 2, 0 +_0807B3A0: .4byte 0x000007FF +_0807B3A4: .4byte 0x00006004 +_0807B3A8: .4byte gUnk_080B3E80 +_0807B3AC: .4byte 0x00002004 +_0807B3B0: .4byte gRoomControls +_0807B3B4: .4byte gUnk_02025EB0 +_0807B3B8: .4byte 0x0000B004 +_0807B3BC: .4byte gUnk_080B37A0 +_0807B3C0: .4byte gUnk_02019EE0 +_0807B3C4: + lsls r1, r1, #1 + ldr r0, _0807B400 @ =gUnk_02002F00 +_0807B3C8: + adds r3, r1, r0 + mov r1, ip + lsls r0, r1, #3 + ldr r1, _0807B404 @ =0x00007004 + adds r0, r0, r1 + adds r0, r2, r0 + ldrh r1, [r0] + strh r1, [r3] + ldrh r1, [r0, #2] + strh r1, [r3, #2] + movs r1, #0x80 + lsls r1, r1, #1 + adds r2, r3, r1 + ldrh r1, [r0, #4] + strh r1, [r2] + movs r2, #0x81 + lsls r2, r2, #1 + adds r1, r3, r2 + ldrh r0, [r0, #6] + strh r0, [r1] + ldr r0, _0807B408 @ =gRoomControls + ldrh r0, [r0] + cmp r0, #1 + beq _0807B430 + ldr r1, _0807B40C @ =gUnk_02000070 + movs r0, #1 + strb r0, [r1] + b _0807B430 + .align 2, 0 +_0807B400: .4byte gUnk_02002F00 +_0807B404: .4byte 0x00007004 +_0807B408: .4byte gRoomControls +_0807B40C: .4byte gUnk_02000070 +_0807B410: + ldr r0, _0807B424 @ =0x00003FFF + cmp r5, r0 + bls _0807B428 + adds r0, r5, #0 + adds r1, r4, #0 + adds r2, r6, #0 + bl SetTile + b _0807B430 + .align 2, 0 +_0807B424: .4byte 0x00003FFF +_0807B428: + adds r0, r4, #0 + adds r1, r6, #0 + bl sub_0807BA8C +_0807B430: + pop {r4, r5, r6, r7, pc} + .align 2, 0 + + thumb_func_start sub_0807B434 +sub_0807B434: @ 0x0807B434 + push {r4, r5, lr} + adds r4, r0, #0 + adds r5, r1, #0 + bl GetTileType + cmp r0, #0x37 + bhi _0807B44A + cmp r0, #0x36 + blo _0807B44A + movs r0, #0 + b _0807B462 +_0807B44A: + lsls r0, r4, #0x10 + lsrs r0, r0, #0x10 + lsls r1, r5, #0x18 + lsrs r1, r1, #0x18 + bl sub_080002C8 + adds r1, r0, #0 + movs r0, #0xd + eors r1, r0 + rsbs r0, r1, #0 + orrs r0, r1 + lsrs r0, r0, #0x1f +_0807B462: + pop {r4, r5, pc} + + thumb_func_start sub_0807B464 +sub_0807B464: @ 0x0807B464 + push {lr} + lsls r0, r0, #0x10 + lsrs r0, r0, #0x10 + lsls r1, r1, #0x18 + lsrs r1, r1, #0x18 + bl sub_080002C8 + movs r1, #0 + cmp r0, #0x56 + bne _0807B47A + movs r1, #1 +_0807B47A: + adds r0, r1, #0 + pop {pc} + .align 2, 0 + + thumb_func_start sub_0807B480 +sub_0807B480: @ 0x0807B480 + push {r4, r5, r6, r7, lr} + adds r6, r0, #0 + adds r7, r1, #0 + movs r1, #2 + bl sub_0807B464 + cmp r0, #0 + beq _0807B558 + adds r0, r6, #0 + subs r0, #0x40 + movs r1, #2 + bl sub_0807B464 + adds r5, r0, #0 + adds r0, r6, #1 + movs r1, #2 + bl sub_0807B464 + lsls r0, r0, #1 + orrs r5, r0 + adds r4, r6, #0 + adds r4, #0x40 + adds r0, r4, #0 + movs r1, #2 + bl sub_0807B464 + lsls r0, r0, #2 + orrs r5, r0 + subs r0, r6, #1 + movs r1, #2 + bl sub_0807B464 + lsls r0, r0, #3 + orrs r5, r0 + adds r0, r6, #0 + adds r0, #0x41 + movs r1, #1 + bl sub_0807B464 + lsls r0, r0, #1 + orrs r5, r0 + adds r0, r6, #0 + adds r0, #0x3f + movs r1, #1 + bl sub_0807B464 + lsls r0, r0, #3 + orrs r5, r0 + adds r0, r4, #0 + movs r1, #2 + bl GetTileType + cmp r0, #0 + beq _0807B4FA + adds r0, r6, #0 + adds r0, #0x80 + movs r1, #1 + bl sub_0807B464 + lsls r0, r0, #2 + orrs r5, r0 +_0807B4FA: + ldr r0, _0807B514 @ =gUnk_0811C2CC + lsls r1, r5, #1 + adds r1, r1, r0 + ldrh r4, [r1] + adds r0, r6, #0 + movs r1, #2 + bl GetTileType + lsls r0, r0, #0x10 + lsrs r0, r0, #0x10 + ldr r2, _0807B518 @ =gUnk_0811C2EC + movs r3, #0 + b _0807B51E + .align 2, 0 +_0807B514: .4byte gUnk_0811C2CC +_0807B518: .4byte gUnk_0811C2EC +_0807B51C: + adds r2, #6 +_0807B51E: + ldrh r1, [r2] + cmp r1, #0 + beq _0807B52A + cmp r0, r1 + bne _0807B51C + ldrh r3, [r2, #2] +_0807B52A: + movs r0, #1 + lsls r0, r7 + bics r3, r0 + ldr r2, _0807B534 @ =gUnk_0811C2EC + b _0807B53A + .align 2, 0 +_0807B534: .4byte gUnk_0811C2EC +_0807B538: + adds r2, #6 +_0807B53A: + ldrh r0, [r2] + cmp r0, #0 + beq _0807B54E + ldrh r0, [r2, #2] + cmp r3, r0 + bne _0807B538 + ldrh r0, [r2, #4] + cmp r5, r0 + bne _0807B538 + ldrh r4, [r2] +_0807B54E: + adds r0, r4, #0 + adds r1, r6, #0 + movs r2, #2 + bl SetTileType +_0807B558: + pop {r4, r5, r6, r7, pc} + .align 2, 0 + + thumb_func_start sub_0807B55C +sub_0807B55C: @ 0x0807B55C + push {r4, r5, r6, r7, lr} + adds r5, r0, #0 + adds r6, r1, #0 + adds r7, r2, #0 + bl sub_0807B464 + cmp r0, #0 + beq _0807B5AC + adds r0, r5, #0 + subs r0, #0x40 + adds r1, r6, #0 + bl sub_0807B464 + adds r4, r0, #0 + adds r0, r5, #1 + adds r1, r6, #0 + bl sub_0807B464 + lsls r0, r0, #1 + orrs r4, r0 + adds r0, r5, #0 + adds r0, #0x40 + adds r1, r6, #0 + bl sub_0807B464 + lsls r0, r0, #2 + orrs r4, r0 + subs r0, r5, #1 + adds r1, r6, #0 + bl sub_0807B464 + lsls r0, r0, #3 + orrs r0, r4 + lsls r0, r0, #1 + adds r0, r0, r7 + ldrh r0, [r0] + adds r1, r5, #0 + adds r2, r6, #0 + bl SetTileType +_0807B5AC: + pop {r4, r5, r6, r7, pc} + .align 2, 0 + + thumb_func_start sub_0807B5B0 +sub_0807B5B0: @ 0x0807B5B0 + push {r4, r5, r6, r7, lr} + adds r3, r0, #0 + movs r1, #0x2e + ldrsh r0, [r3, r1] + ldr r6, _0807B5F8 @ =gUnk_0811C456 + ldrb r1, [r3, #0x14] + movs r2, #6 + ands r2, r1 + lsls r1, r2, #1 + adds r1, r1, r6 + movs r4, #0 + ldrsh r1, [r1, r4] + adds r0, r0, r1 + ldr r5, _0807B5FC @ =gRoomControls + ldrh r1, [r5, #6] + subs r0, r0, r1 + asrs r0, r0, #4 + movs r4, #0x3f + ands r0, r4 + movs r7, #0x32 + ldrsh r1, [r3, r7] + adds r2, #1 + lsls r2, r2, #1 + adds r2, r2, r6 + movs r3, #0 + ldrsh r2, [r2, r3] + adds r1, r1, r2 + ldrh r2, [r5, #8] + subs r1, r1, r2 + asrs r1, r1, #4 + ands r1, r4 + lsls r1, r1, #6 + orrs r0, r1 + bl sub_0807B600 + pop {r4, r5, r6, r7, pc} + .align 2, 0 +_0807B5F8: .4byte gUnk_0811C456 +_0807B5FC: .4byte gRoomControls + + thumb_func_start sub_0807B600 +sub_0807B600: @ 0x0807B600 + push {r4, r5, r6, lr} + adds r5, r0, #0 + adds r6, r5, #0 + subs r6, #0x40 + lsls r0, r5, #0x10 + lsrs r0, r0, #0x10 + movs r1, #1 + bl sub_080002C8 + cmp r0, #0x56 + beq _0807B61A + movs r0, #0 + b _0807B76E +_0807B61A: + adds r0, r5, #0 + movs r1, #1 + bl GetTileType + adds r1, r0, #0 + ldr r0, _0807B634 @ =0x0000026A + cmp r1, r0 + bne _0807B638 + adds r0, r5, #0 + bl sub_0807B820 + b _0807B76C + .align 2, 0 +_0807B634: .4byte 0x0000026A +_0807B638: + ldr r0, _0807B648 @ =0x00000267 + cmp r1, r0 + bne _0807B64C + adds r0, r5, #0 + adds r0, #0x40 + bl sub_0807B820 + b _0807B76C + .align 2, 0 +_0807B648: .4byte 0x00000267 +_0807B64C: + ldr r0, _0807B65C @ =0x0000027A + cmp r1, r0 + bne _0807B660 + adds r0, r5, #0 + bl sub_0807B8A8 + b _0807B76C + .align 2, 0 +_0807B65C: .4byte 0x0000027A +_0807B660: + ldr r0, _0807B670 @ =0x00000277 + cmp r1, r0 + bne _0807B674 + adds r0, r5, #0 + adds r0, #0x40 + bl sub_0807B8A8 + b _0807B76C + .align 2, 0 +_0807B670: .4byte 0x00000277 +_0807B674: + ldr r0, _0807B684 @ =0x0000028A + cmp r1, r0 + bne _0807B688 + adds r0, r5, #0 + bl sub_0807B930 + b _0807B76C + .align 2, 0 +_0807B684: .4byte 0x0000028A +_0807B688: + ldr r0, _0807B698 @ =0x00000287 + cmp r1, r0 + bne _0807B69C + adds r0, r5, #0 + adds r0, #0x40 + bl sub_0807B930 + b _0807B76C + .align 2, 0 +_0807B698: .4byte 0x00000287 +_0807B69C: + adds r0, r5, #0 + movs r1, #2 + bl GetTileType + cmp r0, #0 + beq _0807B6EC + ldr r0, _0807B6E8 @ =0x000002F2 + adds r1, r5, #0 + movs r2, #1 + bl SetTileType + adds r0, r6, #0 + movs r1, #1 + bl sub_080002E0 + cmp r0, #3 + bne _0807B6CA + movs r0, #0xbd + lsls r0, r0, #2 + adds r1, r6, #0 + movs r2, #1 + bl SetTileType +_0807B6CA: + adds r0, r5, #0 + adds r0, #0x40 + movs r1, #1 + bl sub_080002E0 + cmp r0, #3 + bne _0807B6F8 + movs r0, #0xbd + lsls r0, r0, #2 + adds r1, r5, #0 + movs r2, #1 + bl SetTileType + b _0807B6F8 + .align 2, 0 +_0807B6E8: .4byte 0x000002F2 +_0807B6EC: + movs r0, #0xbd + lsls r0, r0, #2 + adds r1, r5, #0 + movs r2, #1 + bl SetTileType +_0807B6F8: + adds r0, r6, #0 + movs r1, #2 + bl sub_0807B464 + cmp r0, #0 + beq _0807B748 + movs r0, #0 + adds r1, r6, #0 + movs r2, #2 + bl SetTileType + adds r0, r6, #0 + movs r1, #1 + bl GetTileType + ldr r1, _0807B770 @ =0x000002F2 + cmp r0, r1 + bne _0807B728 + movs r0, #0xbd + lsls r0, r0, #2 + adds r1, r6, #0 + movs r2, #1 + bl SetTileType +_0807B728: + adds r0, r5, #1 + ldr r4, _0807B774 @ =gUnk_0811C2AC + movs r1, #1 + adds r2, r4, #0 + bl sub_0807B55C + subs r0, r5, #1 + movs r1, #1 + adds r2, r4, #0 + bl sub_0807B55C + adds r0, r6, #0 + movs r1, #1 + adds r2, r4, #0 + bl sub_0807B55C +_0807B748: + adds r0, r6, #1 + movs r1, #3 + bl sub_0807B480 + subs r0, r6, #1 + movs r1, #1 + bl sub_0807B480 + adds r0, r6, #0 + adds r0, #0x40 + movs r1, #0 + bl sub_0807B480 + adds r0, r6, #0 + subs r0, #0x40 + movs r1, #2 + bl sub_0807B480 +_0807B76C: + movs r0, #1 +_0807B76E: + pop {r4, r5, r6, pc} + .align 2, 0 +_0807B770: .4byte 0x000002F2 +_0807B774: .4byte gUnk_0811C2AC + + thumb_func_start sub_0807B778 +sub_0807B778: @ 0x0807B778 + push {r4, r5, r6, lr} + adds r5, r0, #0 + adds r6, r1, #0 + lsls r0, r5, #0x10 + lsrs r0, r0, #0x10 + lsls r1, r6, #0x18 + lsrs r1, r1, #0x18 + bl sub_080002C8 + cmp r0, #0xd + bne _0807B7D0 + adds r0, r5, #0 + subs r0, #0x40 + adds r1, r6, #0 + bl sub_0807B434 + adds r4, r0, #0 + adds r0, r5, #1 + adds r1, r6, #0 + bl sub_0807B434 + lsls r0, r0, #1 + orrs r4, r0 + adds r0, r5, #0 + adds r0, #0x40 + adds r1, r6, #0 + bl sub_0807B434 + lsls r0, r0, #2 + orrs r4, r0 + subs r0, r5, #1 + adds r1, r6, #0 + bl sub_0807B434 + lsls r0, r0, #3 + orrs r0, r4 + ldr r1, _0807B7D4 @ =gUnk_0811C466 + lsls r0, r0, #1 + adds r0, r0, r1 + ldrh r0, [r0] + adds r1, r5, #0 + adds r2, r6, #0 + bl SetTileType +_0807B7D0: + pop {r4, r5, r6, pc} + .align 2, 0 +_0807B7D4: .4byte gUnk_0811C466 diff --git a/asm/code_080A29BC.s b/asm/code_080A29BC.s index 928762f3..88c1490b 100644 --- a/asm/code_080A29BC.s +++ b/asm/code_080A29BC.s @@ -578,7 +578,7 @@ _080A2E9C: movs r0, #0x15 movs r1, #0 movs r2, #0 - bl sub_08077CB8 + bl CreatePlayerItem adds r1, r0, #0 str r1, [r4, #0x54] cmp r1, #0 @@ -966,7 +966,7 @@ _080A31D6: movs r0, #0x15 movs r1, #1 movs r2, #0 - bl sub_08077CB8 + bl CreatePlayerItem str r0, [r4, #0x54] cmp r0, #0 beq _080A3200 diff --git a/asm/code_080A5574.s b/asm/code_080A5574.s index a9591b8c..239efe6b 100644 --- a/asm/code_080A5574.s +++ b/asm/code_080A5574.s @@ -16027,7 +16027,7 @@ sub_080ACECC: @ 0x080ACECC movs r0, #0x10 movs r2, #0 movs r3, #0 - bl sub_08077CB8 + bl CreatePlayerItem adds r1, r0, #0 cmp r1, #0 beq _080ACF0C diff --git a/asm/non_matching/sub_08077D38.inc b/asm/non_matching/sub_08077D38.inc new file mode 100644 index 00000000..1f4015f3 --- /dev/null +++ b/asm/non_matching/sub_08077D38.inc @@ -0,0 +1,104 @@ + .include "asm/macros.inc" + + .include "constants/constants.inc" + + .syntax unified + + .text + + push {r4, r5, r6, r7, lr} + mov r7, r8 + push {r7} + adds r4, r0, #0 + mov r8, r1 + ldr r3, _08077D94 @ =gLinkState + movs r7, #8 + adds r1, r7, #0 + mov r0, r8 + asrs r1, r0 + ldrb r2, [r3, #0xa] + adds r0, r1, #0 + orrs r0, r2 + strb r0, [r3, #0xa] + ldrb r0, [r3, #0xb] + orrs r1, r0 + strb r1, [r3, #0xb] + ldr r0, _08077D98 @ =gLinkEntity + ldrb r0, [r0, #0x14] + strb r0, [r4, #0xa] + ldrb r0, [r4, #4] + cmp r0, #0 + bne _08077D6A + adds r0, #1 + strb r0, [r4, #4] +_08077D6A: + ldrb r2, [r4, #1] + lsls r0, r2, #1 + adds r0, r0, r2 + lsls r0, r0, #2 + ldr r1, _08077D9C @ =gUnk_0811BE48 + adds r5, r0, r1 + ldrh r0, [r5, #4] + cmp r0, #0 + beq _08077DCC + ldr r0, [r3, #0x30] + ands r0, r7 + cmp r0, #0 + beq _08077DC4 + cmp r2, #0xd + beq _08077DB2 + cmp r2, #0xd + bgt _08077DA0 + cmp r2, #1 + beq _08077DAC + b _08077DB4 + .align 2, 0 +_08077D94: .4byte gLinkState +_08077D98: .4byte gLinkEntity +_08077D9C: .4byte gUnk_0811BE48 +_08077DA0: + cmp r2, #0x1b + bne _08077DB4 + ldr r6, _08077DA8 @ =0x00000948 + b _08077DB4 + .align 2, 0 +_08077DA8: .4byte 0x00000948 +_08077DAC: + movs r6, #0x81 + lsls r6, r6, #3 + b _08077DB4 +_08077DB2: + ldr r6, _08077DC0 @ =0x0000040C +_08077DB4: + adds r0, r4, #0 + adds r1, r6, #0 + bl sub_08077DF4 + b _08077DCC + .align 2, 0 +_08077DC0: .4byte 0x0000040C +_08077DC4: + ldrh r1, [r5, #4] + adds r0, r4, #0 + bl sub_08077DF4 +_08077DCC: + ldrb r0, [r5, #6] + strb r0, [r4, #0xf] + ldrb r0, [r5, #7] + cmp r0, #0 + beq _08077DE8 + ldr r2, _08077DF0 @ =gLinkState + movs r0, #8 + mov r1, r8 + asrs r0, r1 + lsls r1, r0, #4 + orrs r0, r1 + ldrb r1, [r2, #4] + orrs r0, r1 + strb r0, [r2, #4] +_08077DE8: + pop {r3} + mov r8, r3 + pop {r4, r5, r6, r7, pc} + .align 2, 0 +_08077DF0: .4byte gLinkState + .syntax divided \ No newline at end of file diff --git a/asm/non_matching/sub_08077F24.inc b/asm/non_matching/sub_08077F24.inc new file mode 100644 index 00000000..827db38e --- /dev/null +++ b/asm/non_matching/sub_08077F24.inc @@ -0,0 +1,34 @@ + .include "asm/macros.inc" + + .include "constants/constants.inc" + + .syntax unified + + .text + + push {lr} + ldr r2, _08077F34 @ =gStats + ldrb r3, [r0, #1] + ldrb r0, [r2, #0xc] + cmp r0, r3 + bne _08077F38 + movs r2, #1 + b _08077F42 + .align 2, 0 +_08077F34: .4byte gStats +_08077F38: + ldrb r0, [r2, #0xd] + movs r2, #0 + cmp r0, r3 + bne _08077F42 + movs r2, #2 +_08077F42: + adds r0, r2, #0 + ands r0, r1 + cmp r0, #0 + beq _08077F4C + movs r0, #1 +_08077F4C: + pop {pc} + .align 2, 0 + .syntax divided \ No newline at end of file diff --git a/include/functions.h b/include/functions.h index ffeeeb75..46aed7e6 100644 --- a/include/functions.h +++ b/include/functions.h @@ -5,6 +5,7 @@ #include "global.h" #include "entity.h" #include "position.h" +#include "link.h" // Identified - to be sorted into header files extern u32 Random(void); @@ -21,7 +22,10 @@ extern void LoadRoomEntityList(); void CopyPosition(Entity*, Entity*); extern u32* StartCutscene(Entity*, u8*); extern void ResolveEntityOnTop(Entity*, Entity*); - +extern u32 GetFacingDirection(Entity*, Entity*); +Entity* CreatePlayerItem(u32, u32, u32, u32); +extern Entity* GetEmptyEntity(void); +extern u32 GetTileTypeByPos(s32 x, s32 y, u32 layer); // Unidentified extern void sub_0806ED78(Entity*); @@ -46,7 +50,6 @@ extern void sub_0807DDAC(Entity*, u32); extern void sub_0807DDE4(Entity*); extern void sub_0806D02C(Entity*); extern u32 sub_0806F5A4(u32); -extern u32 GetFacingDirection(Entity*, Entity*); extern void sub_08078784(Entity*, u32); extern void sub_0807DD50(Entity*); extern void sub_0807DD94(Entity*, u32); @@ -65,10 +68,19 @@ extern void sub_0801D2B4(Entity*, u32); extern void sub_0806FD3C(Entity*); extern u32 sub_0801E99C(Entity*); extern void sub_0807DD50(Entity*); -extern u32 GetFacingDirection(Entity*, Entity*); extern void sub_0806F118(Entity*); extern void sub_0807DD94(Entity*, u32); extern void sub_0805ED14(u32*); extern void sub_080A7C18(u32, u32, u32); extern void sub_08068BEC(Entity*, u32); +void sub_08077E54(Entity*); +extern void sub_080042BA(Entity*); +extern void sub_0801D630(void*, u32); +extern void sub_08077F24(ItemBehavior*, u32); +extern void sub_08079184(); +void sub_08077F50(ItemBehavior *beh, u32 arg1); +extern void sub_0807AA80(Entity*); +extern s32 sub_0807887C(Entity*, u32, u32); +extern s32 sub_08078904(); + #endif diff --git a/include/item.h b/include/item.h index 86f82876..d276b5fa 100644 --- a/include/item.h +++ b/include/item.h @@ -3,18 +3,7 @@ #include "global.h" #include "entity.h" - -typedef struct { - u8 unk; - u8 behaviorID; - u8 unk2; - u8 unk3; - u8 stateID; - u8 filler[4]; - u8 unk4; - u8 filler2[4]; - u8 unk5; -} ItemBehavior; +#include "link.h" void extern DebugItem(ItemBehavior*, u32); void extern Sword(ItemBehavior*, u32); diff --git a/include/link.h b/include/link.h index d343492e..d9e6b0bb 100644 --- a/include/link.h +++ b/include/link.h @@ -50,7 +50,9 @@ typedef struct { /*0x3f*/ u8 field_0x3f; /*0x40*/ u8 field_0x40[75]; /*0x8b*/ u8 field_0x8b; - /*0x8c*/ u32 field_0x8c[7]; + /*0x8c*/ u32 field_0x8c; + /*0x90*/ union SplitWord field_0x90; + /*0x94*/ u32 field_0x94[5]; /*0xa8*/ u8 field_0xa8[3]; /*0xab*/ u8 field_0xab; /*0xac*/ u32 field_0xac; @@ -74,6 +76,14 @@ typedef struct { u8 filler3[12]; } Stats; +typedef struct { + /*0x0*/ u8 field_0x0; + /*0x1*/ u8 behaviorID; + /*0x2*/ u8 field_0x2[2]; + /*0x4*/ u8 stateID; + /*0x5*/ u8 field_0x5[10]; +} ItemBehavior; + extern u8 gBombBagSizes[]; extern LinkState gLinkState; diff --git a/linker.ld b/linker.ld index 5f5afbc5..a0244c1c 100644 --- a/linker.ld +++ b/linker.ld @@ -644,7 +644,11 @@ SECTIONS { asm/ocarina.o(.text); asm/code_08076C80.o(.text); asm/respawnLink.o(.text); + src/code_08077B98.o(.text); + src/code_08077DF4.o(.text); asm/code_08077B98.o(.text); + src/code_08078778.o(.text); + asm/code_08078778.o(.text); src/sub_0807B7D8.o(.text); src/sub_0807B820.o(.text); src/sub_0807B8A8.o(.text); diff --git a/src/code_08077B98.c b/src/code_08077B98.c index e69de29b..c908595b 100644 --- a/src/code_08077B98.c +++ b/src/code_08077B98.c @@ -0,0 +1,140 @@ +#include "global.h" +#include "entity.h" +#include "link.h" +#include "functions.h" + + +typedef struct { + u8 unk[12]; +} struct_0811BE48; + +typedef struct { + u8 field_0x0; + u8 field_0x1; +} UnkItemStruct; + +Entity* sub_08077C94(ItemBehavior*, u32); +void* sub_08077C54(UnkItemStruct* unk); +Entity* CreatePlayerBomb(ItemBehavior*, u32); +extern Entity* sub_0805E744(); +extern void sub_0805EA2C(Entity*, u32); + +extern struct_0811BE48 gUnk_0811BE48[]; + +void sub_08077B98(UnkItemStruct* unk) +{ + if ((gLinkState.field_0x2c == NULL) || (gLinkState.field_0x2c[9] != 1)) { + gLinkState.field_0x2c = sub_08077C54(unk); + } +} + +void sub_08077BB8(UnkItemStruct* unk) +{ + u8* temp = sub_08077C54(unk); + if (temp != NULL) { + temp[0x10] = 0x20; + } + gLinkState.field_0x2c = temp; +} + +Entity* sub_08077BD4(ItemBehavior *beh) +{ + if (sub_08077C94(beh, gUnk_0811BE48[beh->behaviorID].unk[3]) != 0) { + return NULL; + } + else { + return CreatePlayerBomb(beh, gUnk_0811BE48[beh->behaviorID].unk[3]); + } +} + +Entity * sub_08077C0C(ItemBehavior *beh, u32 arg1) +{ + u8 bVar1; + Entity *pEVar3; + + bVar1 = gUnk_0811BE48[arg1].unk[3]; + + if (sub_08077C94(beh, bVar1) != 0) { + return NULL; + } + else { + return CreatePlayerBomb(beh, bVar1); + } +} + +Entity * CreatePlayerBomb(ItemBehavior *beh, u32 subtype) +{ + Entity *pEVar1; + + pEVar1 = CreatePlayerItem(subtype, 0, 0, beh->behaviorID); + if (pEVar1 != NULL) { + *(ItemBehavior **)&pEVar1->parent = beh; + } + return pEVar1; +} + +void* sub_08077C54(UnkItemStruct* unk) +{ + Entity *item; + + item = sub_0805E744(); + if (item != NULL) { + item->entityType.subtype = gUnk_0811BE48[unk->field_0x1].unk[3]; + item->entityType.type = 8; + item->flags = 0xa0; + item->parent = (Entity*)unk; + item->field_0x68 = unk->field_0x1; + sub_0805EA2C(item, 2); + } + return item; +} + +Entity* sub_08077C94(ItemBehavior* arg0, u32 arg1) +{ + Entity* iVar1; + + iVar1 = sub_0805EB00(8, gUnk_0811BE48[arg1].unk[3], 2); + if (iVar1 == NULL) { + return NULL; + } + return iVar1; +} + +Entity * CreatePlayerItem(u32 subtype, u32 form, u32 parameter, u32 unk) +{ + Entity *ent; + + ent = GetEmptyEntity(); + if (ent != NULL) { + ent->flags = 0x80; + (ent->entityType).type = 8; + (ent->entityType).subtype = subtype; + (ent->entityType).form = form; + (ent->entityType).parameter = parameter; + ent->field_0x68 = unk; + sub_0805EA2C(ent, 2); + } + return ent; +} + +Entity * sub_08077CF8(u32 subtype, u32 form, u32 parameter, u32 unk) +{ + Entity *ent; + + ent = sub_0805E744(); + if (ent != NULL) { + ent->flags = 0x80; + (ent->entityType).type = 8; + (ent->entityType).subtype = subtype; + (ent->entityType).form = form; + (ent->entityType).parameter = parameter; + ent->field_0x68 = unk; + sub_0805EA2C(ent, 2); + } + return ent; +} + +NAKED +void sub_08077D38(ItemBehavior *beh, u32 arg1) { + asm(".include \"asm/non_matching/sub_08077D38.inc\""); +} \ No newline at end of file diff --git a/src/code_08077DF4.c b/src/code_08077DF4.c new file mode 100644 index 00000000..467cbe35 --- /dev/null +++ b/src/code_08077DF4.c @@ -0,0 +1,133 @@ +#include "global.h" +#include "entity.h" +#include "link.h" +#include "functions.h" + +typedef struct { + u8 b0: 4; + u8 b1: 4; +} PACKED Unk_bitfield; + +typedef struct { + u8 unk[16]; +} Unk_struct; + +void sub_08077DF4(Entity *ent, u32 arg1) +{ + *(u16 *)&ent->flags = arg1; + if ((arg1 & 0xff) > 0xb8) { + arg1 += (ent->entityType).form >> 1; + } + gLinkEntity.spriteTileSize = (short)(arg1 >> 8); + InitAnimationForceUpdate(&gLinkEntity, (u8)arg1); + sub_08077E54(ent); +} + +void UpdateItemAnim(Entity *ent) +{ + UpdateAnimationSingleFrame(&gLinkEntity); + sub_08077E54(ent); +} + +void sub_08077E3C(Entity *ent) +{ + sub_080042BA(&gLinkEntity); + sub_08077E54(ent); +} + +void sub_08077E54(Entity *ent) +{ + ent->action = gLinkEntity.animIndex; + *(u8 *)&ent->spriteTileSize = gLinkEntity.frameIndex; + ent->previousActionFlag = gLinkEntity.frameDuration; + ent->actionDelay = gLinkEntity.frames.all; +} + +void sub_08077E78(void* arg0, u32 bits) +{ + u8 *pbVar1; + u32 not; + + if (bits == 0) { + if (gLinkState.field_0x2c != NULL) { + ((Unk_bitfield *)gLinkState.field_0x2c)[0x11].b0 = 6; + gLinkState.field_0x2c = (u8 *)bits; + } + else { + gLinkState.field_0x2c = (u8 *)bits; + } + } + + not = (8 >> bits); + gLinkState.field_0x3[1] &= ~((u8)((8 >> bits) << 4) | not); + not = ~not; + gLinkState.field_0xa &= not; + gLinkState.keepFacing &= not; + sub_0801D630(arg0, 0x1c); +} + +u32 sub_08077EC8(Unk_struct* arg0) +{ + + if ((gLinkState.field_0x1a[1] & 8) != 0) { + sub_08077DF4((Entity *)arg0,0x170); + arg0->unk[7] = 0x28; + arg0->unk[4] = 7; + arg0->unk[15] = 6; + return 1; + } + else { + return 0; + } +} + +void sub_08077EFC(ItemBehavior* arg0) +{ + sub_08077F24(arg0, (u16)gLinkState.field_0x90.HALF.LO); +} + +void sub_08077F10(ItemBehavior* arg0) +{ + sub_08077F24(arg0, (u16)gLinkState.field_0x90.HALF.HI); +} + +NAKED +void sub_08077F24(ItemBehavior* beh, u32 arg1) { + asm(".include \"asm/non_matching/sub_08077F24.inc\""); +} + +void sub_08077F50(ItemBehavior *beh, u32 arg1) +{ + sub_08079184(); + sub_08077E78(beh, arg1); +} + +u32 sub_08077F64(ItemBehavior* arg0, u32 unk) +{ + u32 temp; + if (gLinkState.heldObject == 0) { + sub_08077F50(arg0, unk); + temp = 0; + } + else { + temp = 1; + } + return temp; +} + +void sub_08077F84(void) +{ + Entity *obj; + + if (((gLinkEntity.collisionLayer & 2) == 0) && + GetTileTypeByPos(gLinkEntity.x.HALF.HI, gLinkEntity.y.HALF.HI - 0xc, 2) - 0x343U < 4) { + sub_0807AA80(&gLinkEntity); + gLinkState.jumpStatus |= 8; + obj = CreateObject(0x44, 0, 0); + if (obj != NULL) { + obj->x = gLinkEntity.x; + obj->y.HALF.HI = gLinkEntity.y.HALF.HI - 0xc; + gLinkEntity.y.HALF.HI -= 0xc; + } + } +} diff --git a/src/code_08078778.c b/src/code_08078778.c new file mode 100644 index 00000000..78c54099 --- /dev/null +++ b/src/code_08078778.c @@ -0,0 +1,88 @@ +#include "global.h" +#include "entity.h" +#include "functions.h" + +typedef struct { + u8 unk[4]; + u32 unk2; + u32 unk4; +} Unk_struct; + +extern Unk_struct gUnk_03003DF0[]; + +void sub_08078778(Entity* ent) { + sub_0807887C(ent, 1, 0); +} + +void sub_08078784(Entity* ent, u32 arg1) { + sub_0807887C(ent, 1, arg1); +} + +void sub_08078790(Entity* ent, u32 arg1) { + sub_0807887C(ent, 2, arg1); +} + +void sub_0807879C(Entity* ent) { + sub_0807887C(ent, 7, 0); +} + +void sub_080787A8(Entity* ent, u32 arg1) { + sub_0807887C(ent, 7, arg1); +} + +void sub_080787B4(Entity* ent) { + sub_0807887C(ent, 9, 0); +} + +void sub_080787C0(Entity* ent) { + sub_0807887C(ent, 10, 0); +} + +void sub_080787CC(Entity* ent) { + sub_0807887C(ent, 5, 0); +} + +s32 sub_080787D8(Entity *ent) +{ + s32 iVar1; + + iVar1 = sub_0807887C(ent, 8, 0); + if (iVar1 >= 0) { + gUnk_03003DF0[iVar1].unk[10] = 0xbe; + } + return iVar1; +} + +s32 sub_08078800(Entity *ent) +{ + s32 iVar1; + + iVar1 = sub_0807887C(ent, 6, 0); + if (iVar1 >= 0) { + gUnk_03003DF0[iVar1].unk[10] = 0xbe; + } + return iVar1; +} + +s32 sub_08078828(Entity *ent) +{ + s32 iVar1; + + iVar1 = sub_0807887C(ent, 3, 0); + if (iVar1 >= 0) { + gUnk_03003DF0[iVar1].unk[10] = 0xbe; + } + return iVar1; +} + +void sub_08078850(u32 arg0, u32 arg1, u32 arg2, u32 arg3) +{ + s32 iVar1; + + iVar1 = sub_08078904(); + if (iVar1 >= 0) { + gUnk_03003DF0[iVar1].unk[8] = arg1; + gUnk_03003DF0[iVar1].unk[10] = arg2; + *(&gUnk_03003DF0[iVar1].unk4 + 1) = arg3; + } +} \ No newline at end of file diff --git a/src/ocarina.c b/src/ocarina.c index 4ad365e2..326e4c0d 100644 --- a/src/ocarina.c +++ b/src/ocarina.c @@ -34,7 +34,7 @@ void OcarinaUse(ItemBehavior* itemBeh, s32 inputFlags) { if (gLinkState.linkAction == 24) { sub_08077E78(itemBeh, inputFlags); } else { - itemBeh->unk4 |= 15; + itemBeh->field_0x5[4] |= 15; gLinkEntity.animationState = 4; var = gLinkEntity.spriteSettings.raw & ~0x40; gLinkEntity.spriteSettings.raw &= var; From 24f95d6313e4fd762e688cb1ab3a8cfb757da9e1 Mon Sep 17 00:00:00 2001 From: theo3 Date: Tue, 14 Jul 2020 22:38:38 -0700 Subject: [PATCH 026/158] objectAF.c OK --- asm/objectAF.s | 130 ------------------------------------------ linker.ld | 2 +- src/object/objectAF.c | 56 ++++++++++++++++++ 3 files changed, 57 insertions(+), 131 deletions(-) delete mode 100644 asm/objectAF.s create mode 100644 src/object/objectAF.c diff --git a/asm/objectAF.s b/asm/objectAF.s deleted file mode 100644 index 8351d153..00000000 --- a/asm/objectAF.s +++ /dev/null @@ -1,130 +0,0 @@ - .include "asm/macros.inc" - - .include "constants/constants.inc" - - .syntax unified - - .text - - - thumb_func_start ObjectAF -ObjectAF: @ 0x080A058C - push {lr} - ldr r2, _080A05A0 @ =gUnk_081248C4 - ldrb r1, [r0, #0xc] - lsls r1, r1, #2 - adds r1, r1, r2 - ldr r1, [r1] - bl _call_via_r1 - pop {pc} - .align 2, 0 -_080A05A0: .4byte gUnk_081248C4 - - thumb_func_start sub_080A05A4 -sub_080A05A4: @ 0x080A05A4 - push {r4, lr} - adds r4, r0, #0 - ldrb r1, [r4, #0xa] - cmp r1, #2 - beq _080A05D2 - movs r0, #1 - strb r0, [r4, #0xc] - adds r2, r4, #0 - adds r2, #0x29 - ldrb r1, [r2] - subs r0, #9 - ands r0, r1 - movs r1, #6 - orrs r0, r1 - strb r0, [r2] - adds r0, r4, #0 - bl sub_080A0640 - adds r0, r4, #0 - movs r1, #1 - bl InitializeAnimation - b _080A05F0 -_080A05D2: - movs r0, #0 - strb r1, [r4, #0xc] - ldrh r1, [r4, #0x32] - adds r1, #1 - strh r1, [r4, #0x32] - strh r0, [r4, #0x36] - adds r1, r4, #0 - adds r1, #0x63 - ldrb r0, [r1] - subs r0, #1 - strb r0, [r1] - adds r0, r4, #0 - movs r1, #3 - bl InitializeAnimation -_080A05F0: - pop {r4, pc} - .align 2, 0 - - thumb_func_start sub_080A05F4 -sub_080A05F4: @ 0x080A05F4 - push {r4, lr} - adds r4, r0, #0 - ldr r0, [r4, #0x50] - cmp r0, #0 - bne _080A060C - movs r0, #2 - strb r0, [r4, #0xc] - adds r0, r4, #0 - movs r1, #2 - bl InitializeAnimation - b _080A0622 -_080A060C: - ldr r0, [r0, #4] - cmp r0, #0 - bne _080A0616 - bl DeleteThisEntity -_080A0616: - adds r0, r4, #0 - bl sub_080A0640 - adds r0, r4, #0 - bl GetNextFrame -_080A0622: - pop {r4, pc} - - thumb_func_start sub_080A0624 -sub_080A0624: @ 0x080A0624 - push {r4, lr} - adds r4, r0, #0 - bl GetNextFrame - adds r4, #0x5a - ldrb r1, [r4] - movs r0, #0x80 - ands r0, r1 - cmp r0, #0 - beq _080A063C - bl DeleteThisEntity -_080A063C: - pop {r4, pc} - .align 2, 0 - - thumb_func_start sub_080A0640 -sub_080A0640: @ 0x080A0640 - push {r4, lr} - adds r4, r0, #0 - ldrb r0, [r4, #0xa] - cmp r0, #0 - bne _080A065E - ldr r0, [r4, #0x50] - ldr r0, [r0, #0x64] - ldr r0, [r0, #0x10] - movs r3, #0x80 - lsls r3, r3, #0xc - adds r1, r4, #0 - movs r2, #0 - bl PositionRelative - b _080A0666 -_080A065E: - ldr r0, [r4, #0x50] - adds r1, r4, #0 - bl CopyPosition -_080A0666: - movs r0, #0 - strh r0, [r4, #0x36] - pop {r4, pc} diff --git a/linker.ld b/linker.ld index a0244c1c..ab63df09 100644 --- a/linker.ld +++ b/linker.ld @@ -847,7 +847,7 @@ SECTIONS { asm/fourElements.o(.text); asm/objectAD.o(.text); asm/floatingBlock.o(.text); - asm/objectAF.o(.text); + src/object/objectAF.o(.text); src/object/metalDoor.o(.text); asm/jailBars.o(.text); asm/objectB2.o(.text); diff --git a/src/object/objectAF.c b/src/object/objectAF.c new file mode 100644 index 00000000..0415398b --- /dev/null +++ b/src/object/objectAF.c @@ -0,0 +1,56 @@ +#include "global.h" +#include "entity.h" + +extern void sub_080A0640(Entity*); +extern void PositionRelative(Entity*, Entity*, s32, s32); +extern void CopyPosition(Entity*, Entity*); + +extern void (*const gUnk_081248C4[])(Entity*); + +void ObjectAF(Entity* this) { + gUnk_081248C4[this->action](this); +} + +void sub_080A05A4(Entity* this) { + if ((this->entityType).form != 2) { + this->action = 1; + this->spritePriority.b0 = 6; + sub_080A0640(this); + InitializeAnimation(this, 1); + } else { + this->action = 2; + this->y.HALF.HI++; + this->height.HALF.HI = 0; + this->spriteOffsetY--; + InitializeAnimation(this, 3); + } +} + +void sub_080A05F4(Entity* this) { + if (this->parent == NULL) { + this->action = 2; + InitializeAnimation(this, 2); + } else { + if (this->parent->field_0x4 == NULL) { + DeleteThisEntity(); + } + sub_080A0640(this); + GetNextFrame(this); + } +} + +void sub_080A0624(Entity* this) { + GetNextFrame(this); + if ((this->frames.b.f3) != 0) { + DeleteThisEntity(); + } +} + +void sub_080A0640(Entity* this) { + if (this->entityType.form == 0) { + PositionRelative(*(Entity**)(this->parent->otherEntity + 0x4), this, 0, 0x80000); + } else { + CopyPosition(this->parent, this); + } + this->height.HALF.HI = 0; +} \ No newline at end of file From 49a7236b740b9e6856af6210e2a9868bebdc3768 Mon Sep 17 00:00:00 2001 From: theo3 Date: Tue, 14 Jul 2020 22:49:12 -0700 Subject: [PATCH 027/158] jailBars.c OK --- asm/jailBars.s | 139 ------------------------------------------ linker.ld | 2 +- src/object/jailBars.c | 64 +++++++++++++++++++ 3 files changed, 65 insertions(+), 140 deletions(-) delete mode 100644 asm/jailBars.s create mode 100644 src/object/jailBars.c diff --git a/asm/jailBars.s b/asm/jailBars.s deleted file mode 100644 index 2760cce6..00000000 --- a/asm/jailBars.s +++ /dev/null @@ -1,139 +0,0 @@ - .include "asm/macros.inc" - - .include "constants/constants.inc" - - .syntax unified - - .text - - - thumb_func_start JailBars -JailBars: @ 0x080A08AC - push {lr} - ldr r2, _080A08C0 @ =gUnk_08124950 - ldrb r1, [r0, #0xc] - lsls r1, r1, #2 - adds r1, r1, r2 - ldr r1, [r1] - bl _call_via_r1 - pop {pc} - .align 2, 0 -_080A08C0: .4byte gUnk_08124950 - - thumb_func_start sub_080A08C4 -sub_080A08C4: @ 0x080A08C4 - push {r4, lr} - adds r4, r0, #0 - adds r0, #0x86 - ldrh r0, [r0] - bl CheckFlags - cmp r0, #0 - bne _080A08E2 - movs r0, #1 - strb r0, [r4, #0xc] - adds r0, r4, #0 - movs r1, #0 - bl sub_080A0960 - b _080A08F6 -_080A08E2: - movs r0, #3 - strb r0, [r4, #0xc] - adds r0, r4, #0 - movs r1, #1 - bl InitializeAnimation - adds r0, r4, #0 - movs r1, #1 - bl sub_080A0960 -_080A08F6: - ldrb r0, [r4, #0x18] - movs r1, #3 - orrs r0, r1 - strb r0, [r4, #0x18] - adds r1, r4, #0 - adds r1, #0x38 - movs r0, #1 - strb r0, [r1] - adds r0, r4, #0 - bl UpdateSpriteForCollisionLayer - pop {r4, pc} - .align 2, 0 - - thumb_func_start sub_080A0910 -sub_080A0910: @ 0x080A0910 - push {r4, lr} - adds r4, r0, #0 - adds r0, #0x86 - ldrh r0, [r0] - bl CheckFlags - cmp r0, #0 - beq _080A0932 - movs r0, #2 - strb r0, [r4, #0xc] - adds r0, r4, #0 - movs r1, #1 - bl sub_080A0960 - ldr r0, _080A0934 @ =0x0000010B - bl PlaySFX -_080A0932: - pop {r4, pc} - .align 2, 0 -_080A0934: .4byte 0x0000010B - - thumb_func_start sub_080A0938 -sub_080A0938: @ 0x080A0938 - push {r4, lr} - adds r4, r0, #0 - bl GetNextFrame - adds r0, r4, #0 - adds r0, #0x5a - ldrb r1, [r0] - movs r0, #0x80 - ands r0, r1 - cmp r0, #0 - beq _080A095A - movs r0, #3 - strb r0, [r4, #0xc] - adds r0, r4, #0 - movs r1, #1 - bl InitializeAnimation -_080A095A: - pop {r4, pc} - - thumb_func_start nullsub_127 -nullsub_127: @ 0x080A095C - bx lr - .align 2, 0 - - thumb_func_start sub_080A0960 -sub_080A0960: @ 0x080A0960 - push {r4, r5, r6, lr} - adds r4, r0, #0 - ldr r5, _080A0998 @ =gUnk_08124960 - cmp r1, #1 - bne _080A096C - ldr r5, _080A099C @ =gUnk_0812497A -_080A096C: - movs r0, #0x2e - ldrsh r1, [r4, r0] - ldr r2, _080A09A0 @ =gRoomControls - ldrh r0, [r2, #6] - subs r1, r1, r0 - asrs r1, r1, #4 - movs r3, #0x3f - ands r1, r3 - movs r6, #0x32 - ldrsh r0, [r4, r6] - ldrh r2, [r2, #8] - subs r0, r0, r2 - asrs r0, r0, #4 - ands r0, r3 - lsls r0, r0, #6 - orrs r1, r0 - adds r0, r5, #0 - movs r2, #1 - bl sub_0801AF18 - pop {r4, r5, r6, pc} - .align 2, 0 -_080A0998: .4byte gUnk_08124960 -_080A099C: .4byte gUnk_0812497A -_080A09A0: .4byte gRoomControls diff --git a/linker.ld b/linker.ld index ab63df09..640acd3d 100644 --- a/linker.ld +++ b/linker.ld @@ -849,7 +849,7 @@ SECTIONS { asm/floatingBlock.o(.text); src/object/objectAF.o(.text); src/object/metalDoor.o(.text); - asm/jailBars.o(.text); + src/object/jailBars.o(.text); asm/objectB2.o(.text); asm/objectB3.o(.text); asm/objectB4.o(.text); diff --git a/src/object/jailBars.c b/src/object/jailBars.c new file mode 100644 index 00000000..c72713b6 --- /dev/null +++ b/src/object/jailBars.c @@ -0,0 +1,64 @@ +#include "global.h" +#include "entity.h" +#include "flags.h" +#include "room.h" + +extern void sub_080A0960(Entity*, u32); +extern void PlaySFX(u32); +extern void sub_0801AF18(u8*, u32, u32); + +extern void (*const gUnk_08124950[])(Entity*); +extern u8 gUnk_08124960; +extern u8 gUnk_0812497A; + +void JailBars(Entity *this) +{ + gUnk_08124950[this->action](this); +} + +void sub_080A08C4(Entity *this) +{ + if (CheckFlags(this->field_0x86) == 0) { + this->action = 1; + sub_080A0960(this, 0); + } + else { + this->action = 3; + InitializeAnimation(this,1); + sub_080A0960(this, 1); + } + this->spriteSettings.b.draw = 3; // ??? + this->collisionLayer = 1; + UpdateSpriteForCollisionLayer(this); +} + +void sub_080A0910(Entity *this) +{ + if (CheckFlags(this->field_0x86) != 0) { + this->action = 2; + sub_080A0960(this, 1); + PlaySFX(0x10b); + } +} + +void sub_080A0938(Entity *this) +{ + GetNextFrame(this); + if ((this->frames.b.f3) != 0) { + this->action = 3; + InitializeAnimation(this, 1); + } +} + +void nullsub_127(Entity* this) {} + +void sub_080A0960(Entity *this, u32 arg1) +{ + u8 *puVar1; + + puVar1 = &gUnk_08124960; + if (arg1 == 1) { + puVar1 = &gUnk_0812497A; + } + sub_0801AF18(puVar1, COORD_TO_TILE(this), 1); +} \ No newline at end of file From 4b1bbd23e915f9d7a532c34359d7f7369190c5f5 Mon Sep 17 00:00:00 2001 From: theo3 Date: Wed, 15 Jul 2020 01:35:14 -0700 Subject: [PATCH 028/158] leever.c 1 nonmatching --- asm/leever.s | 453 ----------------------- asm/non_matching/leever/sub_0801FED4.inc | 72 ++++ include/enemy.h | 5 +- linker.ld | 3 +- src/enemy/leever.c | 206 +++++++++++ src/object/objectB2.c | 44 +++ 6 files changed, 327 insertions(+), 456 deletions(-) delete mode 100644 asm/leever.s create mode 100644 asm/non_matching/leever/sub_0801FED4.inc create mode 100644 src/enemy/leever.c create mode 100644 src/object/objectB2.c diff --git a/asm/leever.s b/asm/leever.s deleted file mode 100644 index d20b77f3..00000000 --- a/asm/leever.s +++ /dev/null @@ -1,453 +0,0 @@ - .include "asm/macros.inc" - - .include "constants/constants.inc" - - .syntax unified - - .text - - - thumb_func_start Leever -Leever: @ 0x0801FC08 - push {r4, lr} - adds r4, r0, #0 - ldr r1, _0801FC24 @ =gUnk_080CA49C - bl EnemyFunctionHandler - movs r3, #0x10 - rsbs r3, r3, #0 - adds r0, r4, #0 - movs r1, #0 - movs r2, #1 - bl SetChildOffset - pop {r4, pc} - .align 2, 0 -_0801FC24: .4byte gUnk_080CA49C - - thumb_func_start sub_0801FC28 -sub_0801FC28: @ 0x0801FC28 - push {lr} - ldr r2, _0801FC3C @ =gUnk_080CA4B4 - ldrb r1, [r0, #0xc] - lsls r1, r1, #2 - adds r1, r1, r2 - ldr r1, [r1] - bl _call_via_r1 - pop {pc} - .align 2, 0 -_0801FC3C: .4byte gUnk_080CA4B4 - - thumb_func_start sub_0801FC40 -sub_0801FC40: @ 0x0801FC40 - push {r4, lr} - adds r4, r0, #0 - adds r0, #0x41 - ldrb r0, [r0] - cmp r0, #0x80 - bne _0801FC5C - ldrb r0, [r4, #0xc] - cmp r0, #3 - bne _0801FC6E - adds r1, r4, #0 - adds r1, #0x74 - movs r0, #1 - strh r0, [r1] - b _0801FC6E -_0801FC5C: - adds r0, r4, #0 - adds r0, #0x43 - ldrb r0, [r0] - cmp r0, #0 - beq _0801FC6E - adds r0, r4, #0 - movs r1, #0x1c - bl sub_0804A9FC -_0801FC6E: - ldr r1, _0801FC78 @ =gUnk_080CA49C - adds r0, r4, #0 - bl sub_0804AA30 - pop {r4, pc} - .align 2, 0 -_0801FC78: .4byte gUnk_080CA49C - - thumb_func_start sub_0801FC7C -sub_0801FC7C: @ 0x0801FC7C - push {lr} - adds r1, r0, #0 - ldrb r0, [r1, #0xa] - cmp r0, #0 - bne _0801FC8E - adds r0, r1, #0 - bl sub_0804A7D4 - b _0801FC98 -_0801FC8E: - adds r0, r1, #0 - movs r1, #0xf1 - movs r2, #0 - bl CreateDeathFx -_0801FC98: - pop {pc} - .align 2, 0 - - thumb_func_start sub_0801FC9C -sub_0801FC9C: @ 0x0801FC9C - push {r4, lr} - adds r4, r0, #0 - bl sub_0804A720 - movs r0, #1 - strb r0, [r4, #0xc] - bl Random - strb r0, [r4, #0xe] - pop {r4, pc} - - thumb_func_start sub_0801FCB0 -sub_0801FCB0: @ 0x0801FCB0 - push {r4, r5, lr} - adds r5, r0, #0 - ldrb r0, [r5, #0xe] - subs r0, #1 - strb r0, [r5, #0xe] - lsls r0, r0, #0x18 - cmp r0, #0 - bne _0801FD28 - bl Random - movs r1, #0x1f - ands r1, r0 - adds r0, r5, #0 - bl sub_0801FE68 - cmp r0, #0 - beq _0801FD1C - movs r0, #2 - strb r0, [r5, #0xc] - ldrb r1, [r5, #0x18] - subs r0, #6 - ands r0, r1 - movs r1, #1 - orrs r0, r1 - strb r0, [r5, #0x18] - ldr r0, _0801FD14 @ =gUnk_020000B0 - ldr r1, [r0] - adds r0, r5, #0 - bl GetFacingDirection - adds r4, r0, #0 - bl Random - ldr r2, _0801FD18 @ =gUnk_080CA4C8 - movs r1, #1 - ands r1, r0 - adds r1, r1, r2 - ldrb r0, [r1] - adds r0, r0, r4 - movs r1, #0x1f - ands r0, r1 - strb r0, [r5, #0x15] - adds r0, r5, #0 - movs r1, #0 - bl InitializeAnimation - adds r0, r5, #0 - bl UpdateSpriteForCollisionLayer - b _0801FD28 - .align 2, 0 -_0801FD14: .4byte gUnk_020000B0 -_0801FD18: .4byte gUnk_080CA4C8 -_0801FD1C: - bl Random - movs r1, #0x18 - ands r0, r1 - adds r0, #8 - strb r0, [r5, #0xe] -_0801FD28: - pop {r4, r5, pc} - .align 2, 0 - - thumb_func_start sub_0801FD2C -sub_0801FD2C: @ 0x0801FD2C - push {r4, lr} - adds r4, r0, #0 - bl GetNextFrame - adds r2, r4, #0 - adds r2, #0x5a - ldrb r1, [r2] - movs r0, #0x80 - ands r0, r1 - cmp r0, #0 - beq _0801FD66 - movs r0, #3 - strb r0, [r4, #0xc] - ldrb r0, [r4, #0xa] - cmp r0, #0 - bne _0801FD54 - adds r1, r4, #0 - adds r1, #0x74 - movs r0, #0xb4 - b _0801FD5A -_0801FD54: - adds r1, r4, #0 - adds r1, #0x74 - movs r0, #0x6e -_0801FD5A: - strh r0, [r1] - adds r0, r4, #0 - movs r1, #2 - bl InitializeAnimation - b _0801FD7C -_0801FD66: - movs r0, #1 - ands r0, r1 - cmp r0, #0 - beq _0801FD7C - movs r0, #0xfe - ands r0, r1 - strb r0, [r2] - ldrb r0, [r4, #0x10] - movs r1, #0x80 - orrs r0, r1 - strb r0, [r4, #0x10] -_0801FD7C: - pop {r4, pc} - .align 2, 0 - - thumb_func_start sub_0801FD80 -sub_0801FD80: @ 0x0801FD80 - push {r4, lr} - adds r4, r0, #0 - bl sub_0801FED4 - adds r0, r4, #0 - bl GetNextFrame - adds r1, r4, #0 - adds r1, #0x74 - ldrh r0, [r1] - subs r0, #1 - strh r0, [r1] - lsls r0, r0, #0x10 - cmp r0, #0 - bne _0801FDB2 - movs r0, #4 - strb r0, [r4, #0xc] - ldrb r1, [r4, #0x10] - movs r0, #0x7f - ands r0, r1 - strb r0, [r4, #0x10] - adds r0, r4, #0 - movs r1, #1 - bl InitializeAnimation -_0801FDB2: - pop {r4, pc} - - thumb_func_start sub_0801FDB4 -sub_0801FDB4: @ 0x0801FDB4 - push {r4, lr} - adds r4, r0, #0 - bl sub_0801FED4 - adds r0, r4, #0 - bl GetNextFrame - adds r0, r4, #0 - adds r0, #0x5a - ldrb r1, [r0] - movs r0, #0x80 - ands r0, r1 - cmp r0, #0 - beq _0801FDE0 - movs r0, #1 - strb r0, [r4, #0xc] - movs r0, #0xf0 - strb r0, [r4, #0xe] - ldrb r1, [r4, #0x18] - subs r0, #0xf4 - ands r0, r1 - strb r0, [r4, #0x18] -_0801FDE0: - pop {r4, pc} - .align 2, 0 - - thumb_func_start sub_0801FDE4 -sub_0801FDE4: @ 0x0801FDE4 - push {r4, r5, r6, r7, lr} - adds r6, r0, #0 - adds r4, r1, #0 - adds r5, r2, #0 - ldr r7, _0801FE04 @ =gUnk_020000B0 - ldr r0, [r7] - adds r0, #0x38 - ldrb r2, [r0] - adds r0, r4, #0 - adds r1, r5, #0 - bl sub_080002D4 - cmp r0, #0 - beq _0801FE34 - b _0801FE5C - .align 2, 0 -_0801FE04: .4byte gUnk_020000B0 -_0801FE08: - movs r0, #0x10 - rsbs r0, r0, #0 - adds r1, r0, #0 - ands r4, r1 - adds r0, r4, #0 - adds r0, #8 - strh r0, [r6, #0x2e] - ands r5, r1 - adds r0, r5, #0 - adds r0, #8 - strh r0, [r6, #0x32] - ldr r0, _0801FE30 @ =gUnk_020000B0 - ldr r0, [r0] - adds r0, #0x38 - ldrb r1, [r0] - adds r0, r6, #0 - adds r0, #0x38 - strb r1, [r0] - movs r0, #1 - b _0801FE5E - .align 2, 0 -_0801FE30: .4byte gUnk_020000B0 -_0801FE34: - ldr r0, [r7] - adds r0, #0x38 - ldrb r2, [r0] - adds r0, r4, #0 - adds r1, r5, #0 - bl sub_080002BC - adds r3, r0, #0 - ldr r1, _0801FE60 @ =gUnk_080CA4CA - ldrh r0, [r1] - ldr r2, _0801FE64 @ =0x0000FFFF - cmp r0, r2 - beq _0801FE5C -_0801FE4E: - ldrh r0, [r1] - adds r1, #2 - cmp r0, r3 - beq _0801FE08 - ldrh r0, [r1] - cmp r0, r2 - bne _0801FE4E -_0801FE5C: - movs r0, #0 -_0801FE5E: - pop {r4, r5, r6, r7, pc} - .align 2, 0 -_0801FE60: .4byte gUnk_080CA4CA -_0801FE64: .4byte 0x0000FFFF - - thumb_func_start sub_0801FE68 -sub_0801FE68: @ 0x0801FE68 - push {r4, r5, r6, r7, lr} - mov r7, sb - mov r6, r8 - push {r6, r7} - adds r7, r0, #0 - adds r6, r1, #0 - movs r1, #1 - bl sub_08049FDC - cmp r0, #0 - bne _0801FE82 -_0801FE7E: - movs r0, #0 - b _0801FEC4 -_0801FE82: - ldr r0, _0801FECC @ =gUnk_020000B0 - ldr r0, [r0] - ldr r5, [r0, #0x2c] - ldr r4, [r0, #0x30] - ldr r1, _0801FED0 @ =gSineTable - lsls r0, r6, #4 - adds r0, r0, r1 - movs r2, #0 - ldrsh r0, [r0, r2] - lsls r0, r0, #0xb - mov sb, r0 - lsls r0, r6, #4 - adds r0, #0x80 - adds r0, r0, r1 - movs r1, #0 - ldrsh r0, [r0, r1] - lsls r0, r0, #0xb - mov r8, r0 - movs r6, #0 -_0801FEA8: - add r5, sb - mov r2, r8 - subs r4, r4, r2 - asrs r1, r5, #0x10 - asrs r2, r4, #0x10 - adds r0, r7, #0 - bl sub_0801FDE4 - cmp r0, #0 - beq _0801FE7E - adds r6, #1 - cmp r6, #7 - bls _0801FEA8 - movs r0, #1 -_0801FEC4: - pop {r3, r4} - mov r8, r3 - mov sb, r4 - pop {r4, r5, r6, r7, pc} - .align 2, 0 -_0801FECC: .4byte gUnk_020000B0 -_0801FED0: .4byte gSineTable - - thumb_func_start sub_0801FED4 -sub_0801FED4: @ 0x0801FED4 - push {r4, lr} - adds r4, r0, #0 - movs r1, #1 - bl sub_08049FDC - cmp r0, #0 - bne _0801FEEA - adds r1, r4, #0 - adds r1, #0x74 - movs r0, #1 - strh r0, [r1] -_0801FEEA: - adds r0, r4, #0 - adds r0, #0x5a - ldrb r0, [r0] - movs r2, #0xf - adds r1, r2, #0 - ands r1, r0 - lsls r1, r1, #5 - strh r1, [r4, #0x24] - ldrb r0, [r4, #0xa] - cmp r0, #0 - bne _0801FF28 - ldrb r1, [r4, #0xf] - adds r0, r1, #1 - strb r0, [r4, #0xf] - adds r0, r2, #0 - ands r0, r1 - cmp r0, #0 - bne _0801FF4E - ldr r0, _0801FF24 @ =gUnk_020000B0 - ldr r1, [r0] - adds r0, r4, #0 - bl sub_0800132C - adds r1, r0, #0 - adds r0, r4, #0 - bl sub_08004596 - b _0801FF4E - .align 2, 0 -_0801FF24: .4byte gUnk_020000B0 -_0801FF28: - adds r0, r1, #0 - adds r0, #0x40 - strh r0, [r4, #0x24] - ldrb r1, [r4, #0xf] - adds r0, r1, #1 - strb r0, [r4, #0xf] - movs r0, #7 - ands r0, r1 - cmp r0, #0 - bne _0801FF4E - ldr r0, _0801FF58 @ =gUnk_020000B0 - ldr r1, [r0] - adds r0, r4, #0 - bl sub_0800132C - adds r1, r0, #0 - adds r0, r4, #0 - bl sub_08004596 -_0801FF4E: - adds r0, r4, #0 - bl sub_080AEF88 - pop {r4, pc} - .align 2, 0 -_0801FF58: .4byte gUnk_020000B0 diff --git a/asm/non_matching/leever/sub_0801FED4.inc b/asm/non_matching/leever/sub_0801FED4.inc new file mode 100644 index 00000000..70d3ea26 --- /dev/null +++ b/asm/non_matching/leever/sub_0801FED4.inc @@ -0,0 +1,72 @@ + .include "asm/macros.inc" + + .include "constants/constants.inc" + + .syntax unified + + .text + + push {r4, lr} + adds r4, r0, #0 + movs r1, #1 + bl sub_08049FDC + cmp r0, #0 + bne _0801FEEA + adds r1, r4, #0 + adds r1, #0x74 + movs r0, #1 + strh r0, [r1] +_0801FEEA: + adds r0, r4, #0 + adds r0, #0x5a + ldrb r0, [r0] + movs r2, #0xf + adds r1, r2, #0 + ands r1, r0 + lsls r1, r1, #5 + strh r1, [r4, #0x24] + ldrb r0, [r4, #0xa] + cmp r0, #0 + bne _0801FF28 + ldrb r1, [r4, #0xf] + adds r0, r1, #1 + strb r0, [r4, #0xf] + adds r0, r2, #0 + ands r0, r1 + cmp r0, #0 + bne _0801FF4E + ldr r0, _0801FF24 @ =gUnk_020000B0 + ldr r1, [r0] + adds r0, r4, #0 + bl sub_0800132C + adds r1, r0, #0 + adds r0, r4, #0 + bl sub_08004596 + b _0801FF4E + .align 2, 0 +_0801FF24: .4byte gUnk_020000B0 +_0801FF28: + adds r0, r1, #0 + adds r0, #0x40 + strh r0, [r4, #0x24] + ldrb r1, [r4, #0xf] + adds r0, r1, #1 + strb r0, [r4, #0xf] + movs r0, #7 + ands r0, r1 + cmp r0, #0 + bne _0801FF4E + ldr r0, _0801FF58 @ =gUnk_020000B0 + ldr r1, [r0] + adds r0, r4, #0 + bl sub_0800132C + adds r1, r0, #0 + adds r0, r4, #0 + bl sub_08004596 +_0801FF4E: + adds r0, r4, #0 + bl sub_080AEF88 + pop {r4, pc} + .align 2, 0 +_0801FF58: .4byte gUnk_020000B0 +.syntax divided \ No newline at end of file diff --git a/include/enemy.h b/include/enemy.h index 95ed484a..811c5d06 100644 --- a/include/enemy.h +++ b/include/enemy.h @@ -4,8 +4,6 @@ #include "global.h" #include "entity.h" -extern u32 GetNextFunction(Entity*); - extern void Octorok(Entity*); extern void Chuchu(Entity*); extern void Leever(Entity*); @@ -109,4 +107,7 @@ extern void GyorgFemaleMouth(Entity*); extern void Enemy64(Entity*); extern void TreeItem(Entity*); extern void Enemy66(Entity*); + +extern u32 GetNextFunction(Entity*); +extern void EnemyFunctionHandler(Entity*, void (*const func[])(Entity*)); #endif \ No newline at end of file diff --git a/linker.ld b/linker.ld index 640acd3d..2e8b0e27 100644 --- a/linker.ld +++ b/linker.ld @@ -326,7 +326,7 @@ SECTIONS { src/enemy/octorok.o(.text); asm/octorok.o(.text); asm/chuchu.o(.text); - asm/leever.o(.text); + src/enemy/leever.o(.text); asm/peahat.o(.text); asm/rollobite.o(.text); asm/darkNut.o(.text); @@ -850,6 +850,7 @@ SECTIONS { src/object/objectAF.o(.text); src/object/metalDoor.o(.text); src/object/jailBars.o(.text); + src/object/objectB2.o(.text); asm/objectB2.o(.text); asm/objectB3.o(.text); asm/objectB4.o(.text); diff --git a/src/enemy/leever.c b/src/enemy/leever.c new file mode 100644 index 00000000..baefa4fd --- /dev/null +++ b/src/enemy/leever.c @@ -0,0 +1,206 @@ +#include "global.h" +#include "entity.h" +#include "enemy.h" +#include "functions.h" + +extern void SetChildOffset(Entity*, s32, s32, s32); +extern void sub_0804A9FC(Entity*, u32); +extern void sub_0804AA30(Entity*, void (*const func[])(Entity*)); +extern void sub_0804A7D4(Entity*); +extern Entity* CreateDeathFx(Entity*, u32, u32); +extern void sub_0804A720(Entity*); +bool32 sub_0801FE68(Entity*, s32); +extern void sub_0801FED4(Entity*); +extern u32 sub_080002D4(s32, s32, u32); +extern u32 sub_080002BC(s32, s32, u32); +extern u32 sub_08049FDC(Entity*, u32); +bool32 sub_0801FDE4(Entity*, s32, s32); + +extern void (*const gUnk_080CA49C[])(Entity*); +extern void (*const gUnk_080CA4B4[])(Entity*); +extern Entity* gUnk_020000B0; +extern u8 gUnk_080CA4C8[]; +extern u16 gUnk_080CA4CA[]; +extern s16 gSineTable[]; +void Leever(Entity *this) +{ + EnemyFunctionHandler(this, gUnk_080CA49C); + SetChildOffset(this, 0, 1, -0x10); +} + +void sub_0801FC28(Entity *this) +{ + gUnk_080CA4B4[this->action](this); +} + +void sub_0801FC40(Entity *this) +{ + if (this->bitfield == 0x80) { + if (this->action == 3) { + this->field_0x74 = 1; + } + } + else { + if (this->field_0x43 != 0) { + sub_0804A9FC(this, 0x1c); + } + } + sub_0804AA30(this, gUnk_080CA49C); +} + +void sub_0801FC7C(Entity *this) +{ + if ((this->entityType).form == 0) { + sub_0804A7D4(this); + } + else { + CreateDeathFx(this, 0xf1, 0); + } +} + +void sub_0801FC9C(Entity *this) +{ + sub_0804A720(this); + this->action = 1; + this->actionDelay = Random(); +} + +void sub_0801FCB0(Entity *this) +{ + if (--this->actionDelay == 0) { + if (sub_0801FE68(this, Random() & 0x1f) != 0) { + this->action = 2; + this->spriteSettings.b.draw = TRUE; + this->direction = (GetFacingDirection(this, gUnk_020000B0) + gUnk_080CA4C8[Random() & 1]) & 0x1f; + InitializeAnimation(this, 0); + UpdateSpriteForCollisionLayer(this); + } + else { + this->actionDelay = (Random() & 0x18) + 8; + } + } +} + +void sub_0801FD2C(Entity *this) +{ + + GetNextFrame(this); + + if (this->frames.b.f3 != 0) { + this->action = 3; + if (this->entityType.form == 0) { + this->field_0x74 = 0xb4; + } + else { + this->field_0x74 = 0x6e; + } + InitializeAnimation(this,2); + } + else if (this->frames.b.f0 != 0) { + this->frames.all &= 0xfe; + this->flags |= 0x80; + } +} + +void sub_0801FD80(Entity *this) +{ + + sub_0801FED4(this); + GetNextFrame(this); + + if (--this->field_0x74 == 0) { + this->action = 4; + this->flags &= 0x7f; + InitializeAnimation(this, 1); + } +} + +void sub_0801FDB4(Entity *this) +{ + sub_0801FED4(this); + GetNextFrame(this); + if ((this->frames.b.f3) != 0) { + this->action = 1; + this->actionDelay = 0xf0; + this->spriteSettings.b.draw = FALSE; + } +} + +u32 sub_0801FDE4(Entity *ent, s32 x, s32 y) +{ + u32 uVar3; + u16 *puVar4; + + if (sub_080002D4(x, y, gUnk_020000B0->collisionLayer) != 0) { + return 0; + } else { + uVar3 = sub_080002BC(x, y, gUnk_020000B0->collisionLayer); + for (puVar4 = gUnk_080CA4CA; *puVar4 != (u16)-1;) { + if (*puVar4++ == uVar3) { + ent->x.HALF.HI = (x & 0xfff0) + 8; + ent->y.HALF.HI = (y & 0xfff0) + 8; + ent->collisionLayer = gUnk_020000B0->collisionLayer; + return 1; + } + } + return 0; + } +} + +bool32 sub_0801FE68(Entity *ent, s32 arg2) +{ + s32 sin, cos; + s32 x, y; + u32 i; + + + if (sub_08049FDC(ent, 1) == 0) { + return 0; + } + else { + x = gUnk_020000B0->x.WORD; + y = gUnk_020000B0->y.WORD; + sin = gSineTable[arg2 * 8] << 11; + cos = gSineTable[arg2 * 8 + 0x40] << 11; + for (i = 0; i < 8; i++) { + x += sin; + y += -cos; + if (sub_0801FDE4(ent, x >> 0x10, y >> 0x10) == 0) { + return 0; + } + } + return 1; + } +} + +#if NON_MATCHING +void sub_0801FED4(Entity *this) +{ + s16 sVar2; + + if (sub_08049FDC(this, 1) == 0) { + this->field_0x74 = 1; + } + sVar2 = (this->frames.all & 0xf) * 0x20; + this->nonPlanarMovement = sVar2; + if (this->entityType.form == 0) { + this->field_0xf++; + if ((this->field_0xf & 0xf) == 0) { + sub_08004596(this, sub_0800132C(this, gUnk_020000B0)); + } + } + else { + this->nonPlanarMovement = sVar2 + 0x40; + this->field_0xf++; + if ((this->field_0xf & 0x7) == 0) { + sub_08004596(this, sub_0800132C(this, gUnk_020000B0)); + } + } + sub_080AEF88(this); +} +#else +NAKED +void sub_0801FED4(Entity *this) { + asm(".include \"asm/non_matching/leever/sub_0801FED4.inc\""); +} +#endif \ No newline at end of file diff --git a/src/object/objectB2.c b/src/object/objectB2.c new file mode 100644 index 00000000..3c7e7fe2 --- /dev/null +++ b/src/object/objectB2.c @@ -0,0 +1,44 @@ +#include "global.h" +#include "entity.h" + +extern void sub_0806F69C(Entity*); +extern u32 sub_080AE4CC(Entity*, u32, u32, u32); + +extern void* gUnk_02027EB4; +extern void* gUnk_0200D654; + +#if 0 + +void ObjectB2(Entity *this) +{ + void* pEVar3; + + if (this->action == 0) { + this->action = 1; + this->actionDelay = 0x10; + this->direction = (this->entityType).form << 3; + if (this->collisionLayer == 2) { + pEVar3 = &gUnk_0200D654; + } + else { + pEVar3 = &gUnk_02027EB4; + } + this->attachedEntity = pEVar3; + InitializeAnimation(this, this->entityType.form); + } + this->nonPlanarMovement = this->parent->nonPlanarMovement; + sub_0806F69C(this); + if (sub_080AE4CC(this->attachedEntity, this->x.HALF.HI, this->y.HALF.HI, 9) != 0) { + DeleteThisEntity(); + } + if (this->nonPlanarMovement < 0x41) { + this->spriteSettings.b.draw ^= 1; + + if (--this->actionDelay == 0) { + DeleteThisEntity(); + } + } + GetNextFrame(this); +} + +#endif \ No newline at end of file From 3fe2c8fc7479a67932d71b4163fa57b6c022e965 Mon Sep 17 00:00:00 2001 From: theo3 Date: Wed, 15 Jul 2020 01:43:50 -0700 Subject: [PATCH 029/158] functions.h fix --- include/functions.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/functions.h b/include/functions.h index 0639181f..27b05d7c 100644 --- a/include/functions.h +++ b/include/functions.h @@ -23,7 +23,7 @@ void CopyPosition(Entity*, Entity*); extern u32* StartCutscene(Entity*, u8*); extern void ResolveEntityOnTop(Entity*, Entity*); extern void EnemyFunctionHandler(Entity*, void (*const funcs[])(Entity*)); -extern void SetChildOffset(Entity*, u32, u32, u32); +extern void SetChildOffset(Entity*, s32, s32, s32); extern u32 GetFacingDirection(Entity*, Entity*); Entity* CreatePlayerItem(u32, u32, u32, u32); extern Entity* GetEmptyEntity(void); From c6ff4964e53c1070113d0ac59a7b4ef89e0eb685 Mon Sep 17 00:00:00 2001 From: chandler Date: Wed, 15 Jul 2020 17:27:31 -0400 Subject: [PATCH 030/158] one non-matching in beedle --- asm/beedle.s | 345 ----------------------- asm/non_matching/beedle/sub_08063314.inc | 52 ++++ include/functions.h | 3 +- linker.ld | 2 +- src/npc/beedle.c | 171 +++++++++++ 5 files changed, 226 insertions(+), 347 deletions(-) delete mode 100644 asm/beedle.s create mode 100644 asm/non_matching/beedle/sub_08063314.inc create mode 100644 src/npc/beedle.c diff --git a/asm/beedle.s b/asm/beedle.s deleted file mode 100644 index 7881f69a..00000000 --- a/asm/beedle.s +++ /dev/null @@ -1,345 +0,0 @@ - .include "asm/macros.inc" - - .include "constants/constants.inc" - - .syntax unified - - .text - - - thumb_func_start Beedle -Beedle: @ 0x080632A8 - push {lr} - adds r2, r0, #0 - ldrb r1, [r2, #0x10] - movs r0, #2 - ands r0, r1 - cmp r0, #0 - beq _080632BE - adds r0, r2, #0 - bl sub_08063410 - b _080632C4 -_080632BE: - adds r0, r2, #0 - bl sub_080632C8 -_080632C4: - pop {pc} - .align 2, 0 - - thumb_func_start sub_080632C8 -sub_080632C8: @ 0x080632C8 - push {lr} - ldr r2, _080632DC @ =gUnk_0810C8E0 - ldrb r1, [r0, #0xc] - lsls r1, r1, #2 - adds r1, r1, r2 - ldr r1, [r1] - bl _call_via_r1 - pop {pc} - .align 2, 0 -_080632DC: .4byte gUnk_0810C8E0 - - thumb_func_start sub_080632E0 -sub_080632E0: @ 0x080632E0 - push {r4, lr} - adds r4, r0, #0 - ldr r1, _08063310 @ =gUnk_0810C8D4 - bl LoadExtraSpriteData - cmp r0, #0 - beq _0806330E - adds r0, r4, #0 - movs r1, #0 - bl InitializeAnimation - adds r0, r4, #0 - bl sub_08078778 - ldrb r1, [r4, #0x18] - movs r0, #4 - rsbs r0, r0, #0 - ands r0, r1 - movs r1, #1 - orrs r0, r1 - strb r0, [r4, #0x18] - movs r0, #1 - strb r0, [r4, #0xc] -_0806330E: - pop {r4, pc} - .align 2, 0 -_08063310: .4byte gUnk_0810C8D4 - - thumb_func_start sub_08063314 -sub_08063314: @ 0x08063314 - push {r4, lr} - adds r4, r0, #0 - ldrb r0, [r4, #0xf] - adds r0, #1 - strb r0, [r4, #0xf] - movs r1, #0xff - ands r0, r1 - movs r1, #0xf - ands r0, r1 - cmp r0, #0 - bne _08063342 - adds r0, r4, #0 - bl sub_080633C8 - adds r1, r0, #0 - adds r0, r4, #0 - adds r0, #0x58 - ldrb r0, [r0] - cmp r0, r1 - beq _08063342 - adds r0, r4, #0 - bl InitializeAnimation -_08063342: - adds r0, r4, #0 - adds r0, #0x39 - ldrb r0, [r0] - lsls r0, r0, #0x18 - asrs r0, r0, #0x18 - cmp r0, #0 - beq _08063360 - ldrb r0, [r4, #0xe] - ldr r1, _08063368 @ =0x00000A01 - adds r0, r0, r1 - bl TextboxNoOverlapFollow - ldrb r0, [r4, #0xc] - adds r0, #1 - strb r0, [r4, #0xc] -_08063360: - adds r0, r4, #0 - bl sub_0806ED78 - pop {r4, pc} - .align 2, 0 -_08063368: .4byte 0x00000A01 - - thumb_func_start sub_0806336C -sub_0806336C: @ 0x0806336C - push {lr} - adds r2, r0, #0 - ldr r0, _0806338C @ =gTextBox - ldrb r1, [r0] - movs r0, #0x7f - ands r0, r1 - cmp r0, #0 - bne _0806338A - ldrb r0, [r2, #0xc] - adds r0, #1 - strb r0, [r2, #0xc] - adds r0, r2, #0 - movs r1, #8 - bl InitializeAnimation -_0806338A: - pop {pc} - .align 2, 0 -_0806338C: .4byte gTextBox - - thumb_func_start sub_08063390 -sub_08063390: @ 0x08063390 - push {r4, lr} - adds r4, r0, #0 - bl GetNextFrame - adds r0, r4, #0 - adds r0, #0x5a - ldrb r1, [r0] - movs r0, #0x80 - ands r0, r1 - cmp r0, #0 - beq _080633BE - movs r0, #1 - strb r0, [r4, #0xc] - adds r0, r4, #0 - bl GetAnimationState - adds r1, r0, #0 - adds r0, r4, #0 - bl InitializeAnimation - adds r0, r4, #0 - bl sub_08078778 -_080633BE: - adds r0, r4, #0 - bl sub_0806ED78 - pop {r4, pc} - .align 2, 0 - - thumb_func_start sub_080633C8 -sub_080633C8: @ 0x080633C8 - push {r4, lr} - adds r4, r0, #0 - movs r1, #0x20 - movs r2, #0x20 - bl sub_0806ED9C - cmp r0, #0 - bge _080633DE - adds r0, r4, #0 - adds r0, #0x58 - ldrb r0, [r0] -_080633DE: - pop {r4, pc} - - thumb_func_start Beedle_Head -Beedle_Head: @ 0x080633E0 - push {r4, lr} - adds r4, r0, #0 - adds r0, #0x5a - ldrb r0, [r0] - movs r2, #0x3f - ands r2, r0 - adds r0, r4, #0 - movs r1, #0 - bl SetExtraSpriteFrame - ldrb r2, [r4, #0x1e] - adds r0, r4, #0 - movs r1, #1 - bl SetExtraSpriteFrame - adds r0, r4, #0 - movs r1, #1 - movs r2, #0 - bl SetSpriteSubEntryOffsetData1 - adds r0, r4, #0 - bl sub_0807000C - pop {r4, pc} - - thumb_func_start sub_08063410 -sub_08063410: @ 0x08063410 - push {r4, r5, lr} - adds r4, r0, #0 - ldrb r5, [r4, #0xc] - cmp r5, #0 - bne _08063442 - ldr r1, _08063464 @ =gUnk_0810C8D4 - bl LoadExtraSpriteData - cmp r0, #0 - beq _08063462 - ldrb r0, [r4, #0xc] - adds r0, #1 - strb r0, [r4, #0xc] - ldrb r0, [r4, #0xa] - cmp r0, #0 - beq _08063436 - ldr r0, _08063468 @ =gUnk_0810C894 - str r0, [r4, #0x48] - strb r5, [r4, #0xb] -_08063436: - adds r0, r4, #0 - bl sub_0807DD64 - adds r0, r4, #0 - bl sub_08078778 -_08063442: - ldrb r0, [r4, #0xa] - cmp r0, #0 - beq _0806344E - adds r0, r4, #0 - bl sub_0806346C -_0806344E: - adds r0, r4, #0 - movs r1, #0 - bl sub_0807DDAC - adds r0, r4, #0 - bl sub_0807DDE4 - adds r0, r4, #0 - bl GetNextFrame -_08063462: - pop {r4, r5, pc} - .align 2, 0 -_08063464: .4byte gUnk_0810C8D4 -_08063468: .4byte gUnk_0810C894 - - thumb_func_start sub_0806346C -sub_0806346C: @ 0x0806346C - push {r4, r5, r6, lr} - adds r5, r0, #0 - ldr r6, _080634D8 @ =gLinkEntity - movs r0, #0x2e - ldrsh r1, [r6, r0] - movs r2, #0x2e - ldrsh r0, [r5, r2] - subs r4, r1, r0 - movs r0, #0x32 - ldrsh r1, [r6, r0] - movs r2, #0x32 - ldrsh r0, [r5, r2] - subs r3, r1, r0 - adds r4, #0x30 - adds r3, #0x18 - cmp r4, #0 - bge _08063490 - movs r4, #0 -_08063490: - cmp r4, #0x50 - ble _08063496 - movs r4, #0x50 -_08063496: - cmp r3, #0 - bge _0806349C - movs r3, #0 -_0806349C: - cmp r3, #0x40 - ble _080634A2 - movs r3, #0x40 -_080634A2: - asrs r4, r4, #4 - asrs r3, r3, #4 - ldr r2, _080634DC @ =gUnk_0810C8F0 - ldrb r1, [r6, #0x14] - lsrs r1, r1, #1 - lsls r0, r4, #2 - adds r1, r1, r0 - lsls r0, r3, #1 - adds r0, r0, r3 - lsls r0, r0, #3 - adds r1, r1, r0 - adds r1, r1, r2 - ldrb r4, [r1] - ldrb r0, [r5, #0xb] - cmp r4, r0 - beq _080634D6 - lsls r3, r4, #3 - ldr r0, _080634E0 @ =gUnk_0810C89C - adds r3, r3, r0 - movs r2, #4 - ldrsb r2, [r3, r2] - adds r0, r5, #0 - movs r1, #1 - bl sub_08078850 - strb r4, [r5, #0xb] -_080634D6: - pop {r4, r5, r6, pc} - .align 2, 0 -_080634D8: .4byte gLinkEntity -_080634DC: .4byte gUnk_0810C8F0 -_080634E0: .4byte gUnk_0810C89C - - thumb_func_start sub_080634E4 -sub_080634E4: @ 0x080634E4 - ldrb r0, [r0, #0xb] - str r0, [r1, #4] - bx lr - .align 2, 0 - - thumb_func_start sub_080634EC -sub_080634EC: @ 0x080634EC - ldr r2, _080634FC @ =gRoomVars - ldr r1, _08063500 @ =gUnk_0810C88C - ldrb r0, [r0, #0xb] - adds r0, r0, r1 - ldrb r0, [r0] - strb r0, [r2, #6] - bx lr - .align 2, 0 -_080634FC: .4byte gRoomVars -_08063500: .4byte gUnk_0810C88C - - thumb_func_start sub_08063504 -sub_08063504: @ 0x08063504 - push {r4, lr} - adds r4, r1, #0 - ldr r1, _08063520 @ =gUnk_0810C88C - ldrb r0, [r0, #0xb] - adds r0, r0, r1 - ldrb r0, [r0] - bl sub_080544DC - rsbs r1, r0, #0 - orrs r1, r0 - lsrs r1, r1, #0x1f - str r1, [r4, #0x14] - pop {r4, pc} - .align 2, 0 -_08063520: .4byte gUnk_0810C88C diff --git a/asm/non_matching/beedle/sub_08063314.inc b/asm/non_matching/beedle/sub_08063314.inc new file mode 100644 index 00000000..2d5151d1 --- /dev/null +++ b/asm/non_matching/beedle/sub_08063314.inc @@ -0,0 +1,52 @@ + .include "asm/macros.inc" + + .include "constants/constants.inc" + + .syntax unified + + .text + + push {r4, lr} + adds r4, r0, #0 + ldrb r0, [r4, #0xf] + adds r0, #1 + strb r0, [r4, #0xf] + movs r1, #0xff + ands r0, r1 + movs r1, #0xf + ands r0, r1 + cmp r0, #0 + bne _08063342 + adds r0, r4, #0 + bl sub_080633C8 + adds r1, r0, #0 + adds r0, r4, #0 + adds r0, #0x58 + ldrb r0, [r0] + cmp r0, r1 + beq _08063342 + adds r0, r4, #0 + bl InitializeAnimation +_08063342: + adds r0, r4, #0 + adds r0, #0x39 + ldrb r0, [r0] + lsls r0, r0, #0x18 + asrs r0, r0, #0x18 + cmp r0, #0 + beq _08063360 + ldrb r0, [r4, #0xe] + ldr r1, _08063368 @ =0x00000A01 + adds r0, r0, r1 + bl TextboxNoOverlapFollow + ldrb r0, [r4, #0xc] + adds r0, #1 + strb r0, [r4, #0xc] +_08063360: + adds r0, r4, #0 + bl sub_0806ED78 + pop {r4, pc} + .align 2, 0 +_08063368: .4byte 0x00000A01 + .syntax divided + \ No newline at end of file diff --git a/include/functions.h b/include/functions.h index ddab0e2a..2534179f 100644 --- a/include/functions.h +++ b/include/functions.h @@ -23,7 +23,7 @@ extern u32* StartCutscene(Entity*, u8*); extern void ResolveEntityOnTop(Entity*, Entity*); extern void EnemyFunctionHandler(Entity*, void (*const funcs[])(Entity*)); extern void SetChildOffset(Entity*, u32, u32, u32); - +extern u32 GetAnimationState(Entity*); // Unidentified extern void sub_0806ED78(Entity*); @@ -83,4 +83,5 @@ extern u32 sub_08049FDC(Entity*, u32); extern u32 sub_080041A0(Entity *, Entity *, u32, u32); extern u32 sub_08049EE4(Entity*); extern Entity *sub_0804A98C(Entity *, u32, u32); +extern u32 sub_080544DC(u8); #endif diff --git a/linker.ld b/linker.ld index 145f68de..d1cc6c48 100644 --- a/linker.ld +++ b/linker.ld @@ -549,7 +549,7 @@ SECTIONS { asm/pita.o(.text); asm/minishEzlo.o(.text); src/npc/mailbox.o(.text); - asm/beedle.o(.text); + src/npc/beedle.o(.text); asm/brocco.o(.text); asm/sittingPerson.o(.text); asm/pina.o(.text); diff --git a/src/npc/beedle.c b/src/npc/beedle.c new file mode 100644 index 00000000..5d56a13f --- /dev/null +++ b/src/npc/beedle.c @@ -0,0 +1,171 @@ +#include "global.h" +#include "entity.h" +#include "functions.h" +#include "textbox.h" +#include "link.h" +#include "room.h" + +typedef struct { + u32 unk_00; + s8 unk_04; +} gUnk_0810C89C_struct; + +extern void sub_08078850(Entity*, u32, s8, gUnk_0810C89C_struct*); + +extern u8 gUnk_0810C88C[]; +extern BoundingBox gUnk_0810C894; +extern gUnk_0810C89C_struct gUnk_0810C89C[]; +extern SpriteLoadData gUnk_0810C8D4; +extern void (*gUnk_0810C8E0[])(Entity*); +extern u8 gUnk_0810C8F0[]; + +void sub_080632C8(Entity* this); +void sub_08063410(Entity* this); +s32 sub_080633C8(Entity* this); +void sub_0806346C(Entity* this); + +void Beedle(Entity* this) { + if (this->flags & 0x2) { + sub_08063410(this); + } else { + sub_080632C8(this); + } +} + +void sub_080632C8(Entity* this) { + gUnk_0810C8E0[this->action](this); +} + +void sub_080632E0(Entity* this) { + if (LoadExtraSpriteData(this, &gUnk_0810C8D4) != 0) { + InitializeAnimation(this, 0); + sub_08078778(this); + this->spriteSettings.b.draw = 1; + this->action = 1; + } +} + +#ifdef NON_MATCHING +void sub_08063314(Entity* this) { + u32 offset; + + this->field_0xf++; + if (((this->field_0xf & 0xF) == 0) && (offset = sub_080633C8(this), this->animIndex != offset)) { + InitializeAnimation(this, offset); + } + if (this->interactType != '\0') { + TextboxNoOverlapFollow(this->actionDelay + 0xA01); + this->action++; + } + sub_0806ED78(this); +} +#else +NAKED +void sub_08063314(Entity* this) { + asm(".include \"asm/non_matching/beedle/sub_08063314.inc\""); +} +#endif + +void sub_0806336C(Entity* this) { + if ((gTextBox.doTextBox & 0x7F) == 0) { + this->action++; + InitializeAnimation(this, 8); + } +} + +void sub_08063390(Entity* this) { + GetNextFrame(this); + if (this->frames.b.f3 != 0) { + this->action = 1; + InitializeAnimation(this, GetAnimationState(this)); + sub_08078778(this); + } + sub_0806ED78(this); +} + +s32 sub_080633C8(Entity* this) { + s32 uVar1; + + uVar1 = sub_0806ED9C(this, 0x20, 0x20); + if (uVar1 < 0) { + uVar1 = this->animIndex; + } + return uVar1; +} + +void Beedle_Head(Entity* this) { + SetExtraSpriteFrame(this, 0, this->frames.all & 0x3F); + SetExtraSpriteFrame(this, 1, this->frameIndex); + SetSpriteSubEntryOffsetData1(this, 1, 0); + sub_0807000C(this); +} + +void sub_08063410(Entity* this) { + if (this->action == 0) { + if (LoadExtraSpriteData(this, &gUnk_0810C8D4) == 0) { + return; + } + this->action++; + if (this->entityType.form != 0) { + this->boundingBox = &gUnk_0810C894; + this->entityType.parameter = 0; + } + sub_0807DD64(this); + sub_08078778(this); + } + if (this->entityType.form != 0) { + sub_0806346C(this); + } + sub_0807DDAC(this, 0); + sub_0807DDE4(this); + GetNextFrame(this); +} + +void sub_0806346C(Entity* this) { + u8 bVar1; + s32 iVar2; + s32 iVar3; + + iVar3 = (gLinkEntity.x.HALF.HI - this->x.HALF.HI); + iVar2 = (gLinkEntity.y.HALF.HI - this->y.HALF.HI); + + iVar3 += 0x30; + iVar2 += 0x18; + if (iVar3 < 0) { + iVar3 = 0; + } + if (iVar3 > 0x50) { + iVar3 = 0x50; + } + if (iVar2 < 0) { + iVar2 = 0; + } + if (iVar2 > 0x40) { + iVar2 = 0x40; + } + + iVar3 >>= 4; + iVar2 >>= 4; + + bVar1 = gUnk_0810C8F0[(gLinkEntity.animationState >> 1) + iVar3 * 4 + iVar2 * 0x18]; + if (bVar1 != this->entityType.parameter) { + gUnk_0810C89C_struct* temp = &gUnk_0810C89C[bVar1]; + sub_08078850(this, 1, temp->unk_04, temp); + this->entityType.parameter = bVar1; + } +} + +void sub_080634E4(Entity* this, u32* param_1) { + param_1[1] = this->entityType.parameter; +} + +void sub_080634EC(Entity* this) { + gRoomVars.itemForSaleIndex = gUnk_0810C88C[this->entityType.parameter]; +} + +void sub_08063504(Entity* this, u32* param_2) { + u32 uVar1; + + uVar1 = sub_080544DC(gUnk_0810C88C[this->entityType.parameter]); + param_2[5] = (-uVar1 | uVar1) >> 0x1F; +} From ca5de28b09f4e9e6d2912e91b58aaea421996772 Mon Sep 17 00:00:00 2001 From: chandler Date: Wed, 15 Jul 2020 20:10:22 -0400 Subject: [PATCH 031/158] beedle Ok --- asm/non_matching/beedle/sub_08063314.inc | 52 ------------------------ src/npc/beedle.c | 10 +---- 2 files changed, 1 insertion(+), 61 deletions(-) delete mode 100644 asm/non_matching/beedle/sub_08063314.inc diff --git a/asm/non_matching/beedle/sub_08063314.inc b/asm/non_matching/beedle/sub_08063314.inc deleted file mode 100644 index 2d5151d1..00000000 --- a/asm/non_matching/beedle/sub_08063314.inc +++ /dev/null @@ -1,52 +0,0 @@ - .include "asm/macros.inc" - - .include "constants/constants.inc" - - .syntax unified - - .text - - push {r4, lr} - adds r4, r0, #0 - ldrb r0, [r4, #0xf] - adds r0, #1 - strb r0, [r4, #0xf] - movs r1, #0xff - ands r0, r1 - movs r1, #0xf - ands r0, r1 - cmp r0, #0 - bne _08063342 - adds r0, r4, #0 - bl sub_080633C8 - adds r1, r0, #0 - adds r0, r4, #0 - adds r0, #0x58 - ldrb r0, [r0] - cmp r0, r1 - beq _08063342 - adds r0, r4, #0 - bl InitializeAnimation -_08063342: - adds r0, r4, #0 - adds r0, #0x39 - ldrb r0, [r0] - lsls r0, r0, #0x18 - asrs r0, r0, #0x18 - cmp r0, #0 - beq _08063360 - ldrb r0, [r4, #0xe] - ldr r1, _08063368 @ =0x00000A01 - adds r0, r0, r1 - bl TextboxNoOverlapFollow - ldrb r0, [r4, #0xc] - adds r0, #1 - strb r0, [r4, #0xc] -_08063360: - adds r0, r4, #0 - bl sub_0806ED78 - pop {r4, pc} - .align 2, 0 -_08063368: .4byte 0x00000A01 - .syntax divided - \ No newline at end of file diff --git a/src/npc/beedle.c b/src/npc/beedle.c index 5d56a13f..bdcce8c7 100644 --- a/src/npc/beedle.c +++ b/src/npc/beedle.c @@ -45,12 +45,10 @@ void sub_080632E0(Entity* this) { } } -#ifdef NON_MATCHING void sub_08063314(Entity* this) { u32 offset; - this->field_0xf++; - if (((this->field_0xf & 0xF) == 0) && (offset = sub_080633C8(this), this->animIndex != offset)) { + if (((++this->field_0xf & 0xF) == 0) && (offset = sub_080633C8(this), this->animIndex != offset)) { InitializeAnimation(this, offset); } if (this->interactType != '\0') { @@ -59,12 +57,6 @@ void sub_08063314(Entity* this) { } sub_0806ED78(this); } -#else -NAKED -void sub_08063314(Entity* this) { - asm(".include \"asm/non_matching/beedle/sub_08063314.inc\""); -} -#endif void sub_0806336C(Entity* this) { if ((gTextBox.doTextBox & 0x7F) == 0) { From 7d42d7c0deeeec49d2e4e2768e42497913856367 Mon Sep 17 00:00:00 2001 From: theo3 Date: Wed, 15 Jul 2020 17:30:26 -0700 Subject: [PATCH 032/158] keese.c OK --- asm/keese.s | 74 ----------------------------------------------- linker.ld | 1 - src/enemy/keese.c | 31 ++++++++++++++++++-- 3 files changed, 28 insertions(+), 78 deletions(-) delete mode 100644 asm/keese.s diff --git a/asm/keese.s b/asm/keese.s deleted file mode 100644 index f1035924..00000000 --- a/asm/keese.s +++ /dev/null @@ -1,74 +0,0 @@ - .include "asm/macros.inc" - - .include "constants/constants.inc" - - .syntax unified - - .text - - thumb_func_start sub_08021F24 -sub_08021F24: @ 0x08021F24 - push {r4, lr} - adds r4, r0, #0 - adds r0, #0x78 - ldrh r0, [r0] - cmp r0, #0 - bne _08021F48 - movs r0, #2 - strb r0, [r4, #0xc] - bl Random - ldr r2, _08021F44 @ =gUnk_080CB6F6 - movs r1, #0xf - ands r1, r0 - adds r1, r1, r2 - ldrb r0, [r1] - b _08021F6E - .align 2, 0 -_08021F44: .4byte gUnk_080CB6F6 -_08021F48: - adds r0, r4, #0 - adds r0, #0x7a - ldrh r0, [r0] - cmp r0, #0 - bne _08021F80 - ldr r0, _08021F7C @ =gLinkEntity - movs r2, #0x2e - ldrsh r1, [r0, r2] - movs r3, #0x32 - ldrsh r2, [r0, r3] - adds r0, r4, #0 - movs r3, #0x70 - bl sub_0806FCB8 - cmp r0, #0 - bne _08021F80 - movs r0, #3 - strb r0, [r4, #0xc] - movs r0, #0x1e -_08021F6E: - strb r0, [r4, #0xe] - adds r0, r4, #0 - movs r1, #1 - bl InitializeAnimation - b _08021FA4 - .align 2, 0 -_08021F7C: .4byte gLinkEntity -_08021F80: - adds r0, r4, #0 - bl sub_08049FA0 - cmp r0, #0 - beq _08021F94 - bl Random - movs r1, #0x1f - ands r0, r1 - b _08021F9A -_08021F94: - adds r0, r4, #0 - bl sub_08049EE4 -_08021F9A: - strb r0, [r4, #0x15] - adds r0, r4, #0 - movs r1, #0 - bl InitializeAnimation -_08021FA4: - pop {r4, pc} - .align 2, 0 diff --git a/linker.ld b/linker.ld index 18b60a0d..b3b8c983 100644 --- a/linker.ld +++ b/linker.ld @@ -333,7 +333,6 @@ SECTIONS { src/enemy/hangingSeed.o(.text); asm/beetle.o(.text); src/enemy/keese.o(.text); - asm/keese.o(.text); asm/doorMimic.o(.text); asm/rockChuchu.o(.text); asm/spinyChuchu.o(.text); diff --git a/src/enemy/keese.c b/src/enemy/keese.c index 0cbc9acd..ea25214b 100644 --- a/src/enemy/keese.c +++ b/src/enemy/keese.c @@ -14,6 +14,8 @@ extern void sub_08021EF0(Entity*); extern void sub_080AEFB4(Entity*); extern void sub_08021F24(Entity*); extern u32 sub_0806FCB8(Entity*, s32, s32, u32); +extern u32 sub_08049FA0(Entity*); +extern u32 sub_08049EE4(Entity*); extern void (*gUnk_080CB69C[])(Entity*); extern void (*gUnk_080CB6B4[])(Entity*); @@ -21,9 +23,7 @@ extern void (*gUnk_080CB6C4[])(Entity*); extern u8 gUnk_080CB6D0[]; extern u16 gUnk_080CB6D6[]; - - -extern u8 gUnk_080CB6D0[]; +extern u8 gUnk_080CB6F6[]; void Keese(Entity *this) { @@ -129,3 +129,28 @@ void sub_08021EF0(Entity *this) this->field_0x7a = 0x3c; InitializeAnimation(this, 0); } + +void sub_08021F24(Entity *this) +{ + u32 bVar1; + + if (this->field_0x78.HWORD == 0) { + this->action = 2; + this->actionDelay = gUnk_080CB6F6[Random() & 0xf]; + InitializeAnimation(this, 1); + } + else if (!this->field_0x7a && !(sub_0806FCB8(this, gLinkEntity.x.HALF.HI, gLinkEntity.y.HALF.HI, 0x70))) { + this->action = 3; + this->actionDelay = 0x1e; + InitializeAnimation(this, 1); + } + else { + if (sub_08049FA0(this) != 0) { + this->direction = Random() & 0x1f; + } + else { + this->direction = sub_08049EE4(this); + } + InitializeAnimation(this, 0); + } +} \ No newline at end of file From 035d4a150f3341aecd6d9d124c7f2cb99ac83473 Mon Sep 17 00:00:00 2001 From: theo3 Date: Wed, 15 Jul 2020 20:12:52 -0700 Subject: [PATCH 033/158] tingleSiblings.c started --- asm/tingleSiblings.s | 79 ---------------------------------------- linker.ld | 1 + src/npc/tingleSiblings.c | 43 ++++++++++++++++++++++ 3 files changed, 44 insertions(+), 79 deletions(-) create mode 100644 src/npc/tingleSiblings.c diff --git a/asm/tingleSiblings.s b/asm/tingleSiblings.s index d4cb0bc2..e8d3f96c 100644 --- a/asm/tingleSiblings.s +++ b/asm/tingleSiblings.s @@ -6,85 +6,6 @@ .text - - thumb_func_start TingleSiblings -TingleSiblings: @ 0x08064D58 - push {lr} - adds r2, r0, #0 - ldrb r1, [r2, #0x10] - movs r0, #2 - ands r0, r1 - cmp r0, #0 - beq _08064D6E - adds r0, r2, #0 - bl sub_08064DE4 - b _08064D74 -_08064D6E: - adds r0, r2, #0 - bl sub_08064D78 -_08064D74: - pop {pc} - .align 2, 0 - - thumb_func_start sub_08064D78 -sub_08064D78: @ 0x08064D78 - push {lr} - ldr r2, _08064D8C @ =gUnk_0810FBFC - ldrb r1, [r0, #0xc] - lsls r1, r1, #2 - adds r1, r1, r2 - ldr r1, [r1] - bl _call_via_r1 - pop {pc} - .align 2, 0 -_08064D8C: .4byte gUnk_0810FBFC - - thumb_func_start sub_08064D90 -sub_08064D90: @ 0x08064D90 - push {r4, lr} - adds r4, r0, #0 - movs r1, #2 - bl InitAnimationForceUpdate - movs r0, #1 - strb r0, [r4, #0xf] - pop {r4, pc} - - thumb_func_start sub_08064DA0 -sub_08064DA0: @ 0x08064DA0 - push {r4, lr} - adds r4, r0, #0 - bl sub_08064EE8 - adds r0, r4, #0 - adds r0, #0x39 - ldrb r0, [r0] - lsls r0, r0, #0x18 - asrs r0, r0, #0x18 - cmp r0, #0 - beq _08064DC8 - movs r0, #2 - strb r0, [r4, #0xc] - adds r0, r4, #0 - movs r1, #6 - bl InitAnimationForceUpdate - movs r0, #0 - bl TextboxNoOverlapFollow -_08064DC8: - pop {r4, pc} - .align 2, 0 - - thumb_func_start sub_08064DCC -sub_08064DCC: @ 0x08064DCC - push {r4, lr} - adds r4, r0, #0 - bl sub_08064EE8 - adds r0, r4, #0 - movs r1, #2 - bl InitAnimationForceUpdate - movs r0, #1 - strb r0, [r4, #0xc] - pop {r4, pc} - .align 2, 0 - thumb_func_start sub_08064DE4 sub_08064DE4: @ 0x08064DE4 push {r4, r5, lr} diff --git a/linker.ld b/linker.ld index 3dd658a6..c7f40ab1 100644 --- a/linker.ld +++ b/linker.ld @@ -559,6 +559,7 @@ SECTIONS { asm/nayru.o(.text); asm/farore.o(.text); asm/sturgeon.o(.text); + src/npc/tingleSiblings.o(.text); asm/tingleSiblings.o(.text); asm/stockwell.o(.text); src/npc/talon.o(.text); diff --git a/src/npc/tingleSiblings.c b/src/npc/tingleSiblings.c new file mode 100644 index 00000000..ab50c63c --- /dev/null +++ b/src/npc/tingleSiblings.c @@ -0,0 +1,43 @@ +#include "global.h" +#include "entity.h" +#include "npc.h" +#include "textbox.h" + +extern void sub_08064DE4(Entity*); +extern void sub_08064D78(Entity*); +extern void sub_08064EE8(Entity*); + +extern void (*const gUnk_0810FBFC[])(Entity*); + +void TingleSiblings(Entity* this) { + if ((this->flags & 2) != 0) { + sub_08064DE4(this); + } + else { + sub_08064D78(this); + } +} + +void sub_08064D78(Entity* this) { + gUnk_0810FBFC[this->action](this); +} + +void sub_08064D90(Entity* this) { + InitAnimationForceUpdate(this, 2); + this->field_0xf = 1; +} + +void sub_08064DA0(Entity* this) { + sub_08064EE8(this); + if (this->interactType != 0) { + this->action = 2; + InitAnimationForceUpdate(this, 6); + TextboxNoOverlapFollow(0); + } +} + +void sub_08064DCC(Entity* this) { + sub_08064EE8(this); + InitAnimationForceUpdate(this, 2); + this->action = 1; +} \ No newline at end of file From d49545317a9b0b7707d439cf5657836e7abc94ed Mon Sep 17 00:00:00 2001 From: theo3 Date: Wed, 15 Jul 2020 20:45:28 -0700 Subject: [PATCH 034/158] input.c OK --- asm/readKeyInput.s | 54 ---------------------------------------------- linker.ld | 2 +- src/input.c | 44 +++++++++++++++++++++++++++++++++++++ 3 files changed, 45 insertions(+), 55 deletions(-) delete mode 100644 asm/readKeyInput.s create mode 100644 src/input.c diff --git a/asm/readKeyInput.s b/asm/readKeyInput.s deleted file mode 100644 index 50e63e38..00000000 --- a/asm/readKeyInput.s +++ /dev/null @@ -1,54 +0,0 @@ - .include "asm/macros.inc" - .include "constants/constants.inc" - - .syntax unified - - .text - - thumb_func_start ReadKeyInput -ReadKeyInput: @ 0x0801D6C0 - push {lr} - ldr r0, _0801D6D4 @ =0x04000130 - ldrh r0, [r0] - ldr r1, _0801D6D8 @ =0x000003FF - bics r1, r0 - ldr r0, _0801D6DC @ =gUnk_03000FF0 - bl sub_0801D6E0 - pop {pc} - .align 2, 0 -_0801D6D4: .4byte 0x04000130 -_0801D6D8: .4byte 0x000003FF -_0801D6DC: .4byte gUnk_03000FF0 - - - thumb_func_start sub_0801D6E0 -sub_0801D6E0: @ 0x0801D6E0 - push {lr} - adds r2, r0, #0 - ldrh r0, [r2] - adds r3, r1, #0 - bics r3, r0 - strh r3, [r2, #2] - cmp r1, r0 - bne _0801D70A - ldrb r0, [r2, #7] - subs r0, #1 - strb r0, [r2, #7] - lsls r0, r0, #0x18 - cmp r0, #0 - bne _0801D704 - movs r0, #4 - strb r0, [r2, #7] - strh r1, [r2, #4] - b _0801D710 -_0801D704: - movs r0, #0 - strh r0, [r2, #4] - b _0801D710 -_0801D70A: - movs r0, #0x14 - strb r0, [r2, #7] - strh r3, [r2, #4] -_0801D710: - strh r1, [r2] - pop {pc} diff --git a/linker.ld b/linker.ld index c7f40ab1..58006a85 100644 --- a/linker.ld +++ b/linker.ld @@ -319,7 +319,7 @@ SECTIONS { src/_dmaFill32.o(.text); asm/sub_0801D630.o(.text); asm/sub_0801D66C.o(.text); - asm/readKeyInput.o(.text); + src/input.o(.text); asm/code_0801D714.o(.text); asm/code_0801D79C.o(.text); /* enemies */ diff --git a/src/input.c b/src/input.c new file mode 100644 index 00000000..df5b2290 --- /dev/null +++ b/src/input.c @@ -0,0 +1,44 @@ +#include "global.h" +#include "entity.h" + +typedef struct { + u16 field_0x0; + u16 field_0x2; + u16 field_0x4; + u8 field_0x6; + u8 field_0x7; +} Input; + +void StoreKeyInput(Input *pkeyInput, u32 ioKeyInput); + +extern Input gUnk_03000FF0; + +void ReadKeyInput(void) +{ + u32 reg = ~*(u16*)0x04000130 & 0x3FF; + Input* input = &gUnk_03000FF0; + StoreKeyInput(input, reg); +} + +void StoreKeyInput(Input *input, u32 ioKeyInput) +{ + u32 difference; + u32 temp = input->field_0x0; + + difference = ioKeyInput & ~temp; + input->field_0x2 = difference; + if (ioKeyInput == temp) { + if (--input->field_0x7 == 0) { + input->field_0x7 = 4; + input->field_0x4 = ioKeyInput; + } + else { + input->field_0x4 = 0; + } + } + else { + input->field_0x7 = 0x14; + input->field_0x4 = difference; + } + input->field_0x0 = ioKeyInput; +} \ No newline at end of file From 75223bab243e67eb7233edf32ffd8a15a94c6b34 Mon Sep 17 00:00:00 2001 From: theo3 Date: Wed, 15 Jul 2020 20:49:59 -0700 Subject: [PATCH 035/158] entity->spriteTileSize, entity->spriteIndex --- include/entity.h | 2 +- src/code_08077DF4.c | 4 ++-- src/item11.c | 2 +- src/npc/townsperson.c | 12 ++++++------ 4 files changed, 10 insertions(+), 10 deletions(-) diff --git a/include/entity.h b/include/entity.h index b79d1d5a..14b963f3 100644 --- a/include/entity.h +++ b/include/entity.h @@ -50,7 +50,7 @@ typedef struct Entity { /*0x10*/ u8 flags; /*0x11*/ u8 scriptedScene : 4; /* */ u8 scriptedScene2 : 4; - /*0x12*/ s16 spriteTileSize; + /*0x12*/ s16 spriteIndex; /*0x14*/ u8 animationState; /*0x15*/ u8 direction; /*0x16*/ u8 possibleBool; diff --git a/src/code_08077DF4.c b/src/code_08077DF4.c index 467cbe35..3897a273 100644 --- a/src/code_08077DF4.c +++ b/src/code_08077DF4.c @@ -18,7 +18,7 @@ void sub_08077DF4(Entity *ent, u32 arg1) if ((arg1 & 0xff) > 0xb8) { arg1 += (ent->entityType).form >> 1; } - gLinkEntity.spriteTileSize = (short)(arg1 >> 8); + gLinkEntity.spriteIndex = (short)(arg1 >> 8); InitAnimationForceUpdate(&gLinkEntity, (u8)arg1); sub_08077E54(ent); } @@ -38,7 +38,7 @@ void sub_08077E3C(Entity *ent) void sub_08077E54(Entity *ent) { ent->action = gLinkEntity.animIndex; - *(u8 *)&ent->spriteTileSize = gLinkEntity.frameIndex; + *(u8 *)&ent->spriteIndex = gLinkEntity.frameIndex; ent->previousActionFlag = gLinkEntity.frameDuration; ent->actionDelay = gLinkEntity.frames.all; } diff --git a/src/item11.c b/src/item11.c index 4f90bba6..b464bdd9 100644 --- a/src/item11.c +++ b/src/item11.c @@ -56,7 +56,7 @@ void sub_08018CBC(Entity *this) } this->action = 2; this->spriteSettings.b.draw = 1; - this->spriteTileSize = 0xa6; + this->spriteIndex = 0xa6; this->palette = 0x33; this->spriteVramOffset = 0; (this->entityType).form = gLinkState.field_0x1d[0] - 1; diff --git a/src/npc/townsperson.c b/src/npc/townsperson.c index 7c4bf877..c99cce93 100644 --- a/src/npc/townsperson.c +++ b/src/npc/townsperson.c @@ -192,7 +192,7 @@ void sub_08061E90(Entity* this, Entity* arg1) { if (arg1->spriteSettings.raw == 0) { arg1->spriteSettings.raw++; - arg1->spriteTileSize = (Random() & 0x3f) + 0x20; + arg1->spriteIndex = (Random() & 0x3f) + 0x20; animIndex = Random() & 0x18; switch (this->direction) { case 0x0: @@ -227,23 +227,23 @@ void sub_08061E90(Entity* this, Entity* arg1) { iVar4 = this->x.HALF.HI - *(s16*)&this->field_0x6a.HWORD; if (0x10 < iVar4) { this->x.HALF.HI = this->field_0x6a.HWORD + 0x10; - arg1->spriteTileSize = 1; + arg1->spriteIndex = 1; } if (iVar4 < -0x10) { this->x.HALF.HI = *(s16*)&this->field_0x6a.HWORD - 0x10; - arg1->spriteTileSize = 1; + arg1->spriteIndex = 1; } iVar4 = this->y.HALF.HI - *(s16*)&this->field_0x6c; if (0x10 < iVar4) { this->y.HALF.HI = *(s16*)&this->field_0x6c + 0x10; - arg1->spriteTileSize = 1; + arg1->spriteIndex = 1; } if (iVar4 < -0x10) { this->y.HALF.HI = *(s16*)&this->field_0x6c - 0x10; - arg1->spriteTileSize = 1; + arg1->spriteIndex = 1; } - if (--arg1->spriteTileSize != 0) { + if (--arg1->spriteIndex != 0) { gUnk_02033280[6] = 0; } } From 92146289ada4302af14c4fb5feb2f6ebfe9f2aca Mon Sep 17 00:00:00 2001 From: theo3 Date: Thu, 16 Jul 2020 00:57:45 -0700 Subject: [PATCH 036/158] dmaZero.c --- asm/bigGoron.s | 2 +- asm/code_08016DF8.s | 4 +-- asm/code_08018500.s | 2 +- asm/code_08019444.s | 2 +- asm/code_0801C370.s | 6 ++--- asm/code_0801C85C.s | 4 +-- asm/code_0801D79C.s | 26 +++++++++---------- asm/code_0804AA84.s | 2 +- asm/code_0804B9F8.s | 4 +-- asm/code_08050038.s | 38 ++++++++++++++-------------- asm/code_080526F8.s | 16 ++++++------ asm/code_08055FF4.s | 2 +- asm/code_08056418.s | 14 +++++----- asm/code_0805E3B0.s | 6 ++--- asm/code_0805E744.s | 18 ++++++------- asm/code_0806ED78.s | 2 +- asm/code_0806FA6C.s | 6 ++--- asm/code_080732D0.s | 2 +- asm/code_08077B98.s | 2 +- asm/code_08078778.s | 4 +-- asm/code_0807B9B8.s | 34 ++++++++++++------------- asm/code_0807CC3C.s | 20 +++++++-------- asm/code_080A29BC.s | 2 +- asm/code_080A3480.s | 10 ++++---- asm/code_080A3BD0.s | 28 ++++++++++---------- asm/code_080A5574.s | 26 +++++++++---------- asm/code_080AD90C.s | 8 +++--- asm/gyorgFemale.s | 10 ++++---- asm/initializeLink.s | 6 ++--- asm/manager10.s | 2 +- asm/manager1A.s | 2 +- asm/manager22.s | 2 +- asm/manager2C.s | 2 +- asm/manager39.s | 4 +-- asm/managerB.s | 2 +- asm/non_matching/mainLoop.inc | 2 +- asm/object3D.s | 2 +- asm/sub_0801D630.s | 6 ++--- asm/sub_08052418.s | 2 +- asm/sub_08055F70.s | 2 +- asm/sub_080AD380.s | 2 +- asm/wizzrobeIce.s | 4 +-- include/functions.h | 2 +- include/main.h | 2 +- linker.ld | 4 +-- src/{sub_0801D5EC.c => _dmaFill16.c} | 2 +- src/_dmaZero.c | 24 ++++++++++++++++++ src/code_08077DF4.c | 2 +- src/introSetTransition.c | 4 +-- src/mainLoop.c | 4 +-- src/sub_08050008.c | 4 +-- src/textbox.c | 14 +++++----- 52 files changed, 213 insertions(+), 189 deletions(-) rename src/{sub_0801D5EC.c => _dmaFill16.c} (54%) create mode 100644 src/_dmaZero.c diff --git a/asm/bigGoron.s b/asm/bigGoron.s index 208b1c9f..0d3de49b 100644 --- a/asm/bigGoron.s +++ b/asm/bigGoron.s @@ -95,7 +95,7 @@ sub_0806D0B0: @ 0x0806D0B0 movs r1, #0x80 lsls r1, r1, #6 adds r0, r5, #0 - bl sub_0801D630 + bl _DmaZero cmp r4, #0 beq _0806D0DA adds r0, r4, #0 diff --git a/asm/code_08016DF8.s b/asm/code_08016DF8.s index 312d0bdd..7b4a1a12 100644 --- a/asm/code_08016DF8.s +++ b/asm/code_08016DF8.s @@ -601,7 +601,7 @@ _08017268: strb r5, [r0] ldr r0, _080172EC @ =gUnk_03003BE0 movs r1, #0x8c - bl sub_0801D630 + bl _DmaZero adds r2, r4, #0 adds r2, #0x3f ldrb r0, [r2] @@ -1080,7 +1080,7 @@ sub_08017640: @ 0x08017640 movs r1, #0x80 lsls r1, r1, #1 adds r0, r4, #0 - bl sub_0801D630 + bl _DmaZero ldr r0, _08017664 @ =gUnk_02018EA0 str r4, [r0] str r4, [r4] diff --git a/asm/code_08018500.s b/asm/code_08018500.s index 4d58f260..79dad55e 100644 --- a/asm/code_08018500.s +++ b/asm/code_08018500.s @@ -58,7 +58,7 @@ sub_0801855C: @ 0x0801855C ldr r4, _08018570 @ =gUnk_02033AB8 adds r0, r4, #0 movs r1, #0x14 - bl sub_0801D630 + bl _DmaZero adds r5, r4, #0 ldr r4, _08018574 @ =gUnk_080B3D20 movs r6, #0 diff --git a/asm/code_08019444.s b/asm/code_08019444.s index f544c3a3..b2456684 100644 --- a/asm/code_08019444.s +++ b/asm/code_08019444.s @@ -3466,7 +3466,7 @@ _0801AE70: movs r2, #0x80 lsls r2, r2, #4 movs r0, #0xf - bl sub_0801D5EC + bl _DmaFill16 movs r0, #1 rsbs r0, r0, #0 bl sub_0805BB74 diff --git a/asm/code_0801C370.s b/asm/code_0801C370.s index c7600459..49e57eb3 100644 --- a/asm/code_0801C370.s +++ b/asm/code_0801C370.s @@ -32,7 +32,7 @@ _0801C398: movs r1, #0xcd lsls r1, r1, #2 adds r0, r5, #0 - bl sub_0801D630 + bl _DmaZero strb r6, [r5, #3] strh r4, [r5, #0xe] ldr r0, _0801C474 @ =gUnk_02002A40 @@ -48,7 +48,7 @@ _0801C398: movs r1, #0x80 lsls r1, r1, #4 adds r0, r4, #0 - bl sub_0801D630 + bl _DmaZero ldr r1, _0801C47C @ =gScreen str r4, [r1, #0x10] ldr r0, _0801C480 @ =0x00001F0C @@ -93,7 +93,7 @@ _0801C398: adds r0, #0x34 movs r1, #0xc0 lsls r1, r1, #2 - bl sub_0801D630 + bl _DmaZero movs r0, #5 movs r1, #9 bl sub_0801CA6C diff --git a/asm/code_0801C85C.s b/asm/code_0801C85C.s index d7dcbc9e..598c3b14 100644 --- a/asm/code_0801C85C.s +++ b/asm/code_0801C85C.s @@ -996,7 +996,7 @@ sub_0801CFA8: @ 0x0801CFA8 adds r5, r0, #0 ldr r0, _0801CFCC @ =gUnk_02001A00 movs r1, #0x40 - bl sub_0801D630 + bl _DmaZero movs r4, #0 _0801CFB6: adds r0, r4, #0 @@ -1451,7 +1451,7 @@ sub_0801D2C8: @ 0x0801D2C8 lsls r1, r4, #5 adds r1, r1, r2 movs r2, #0x20 - bl sub_0801D5EC + bl _DmaFill16 b _0801D33C .align 2, 0 _0801D2F8: .4byte gUnk_0200B644 diff --git a/asm/code_0801D79C.s b/asm/code_0801D79C.s index 2c808e0e..776ee624 100644 --- a/asm/code_0801D79C.s +++ b/asm/code_0801D79C.s @@ -339,7 +339,7 @@ _0801D9D8: strh r0, [r3] adds r0, r4, #0 mov r1, ip - bl sub_0801D630 + bl _DmaZero adds r0, r4, #0 b _0801DA02 .align 2, 0 @@ -418,7 +418,7 @@ sub_0801DA7C: @ 0x0801DA7C ldr r0, _0801DA8C @ =gUnk_02035540 movs r1, #0x80 lsls r1, r1, #5 - bl sub_0801D630 + bl _DmaZero pop {pc} .align 2, 0 _0801DA8C: .4byte gUnk_02035540 @@ -459,11 +459,11 @@ sub_0801DA90: @ 0x0801DA90 bl sub_0801DB34 ldr r0, _0801DB08 @ =0x0600C000 movs r1, #0x20 - bl sub_0801D630 + bl _DmaZero ldr r0, _0801DB0C @ =gUnk_02034CB0 movs r1, #0x80 lsls r1, r1, #4 - bl sub_0801D630 + bl _DmaZero strh r4, [r5, #0xe] pop {r4, r5, pc} .align 2, 0 @@ -505,7 +505,7 @@ sub_0801DB34: @ 0x0801DB34 ldr r4, _0801DB6C @ =gScreen adds r0, r4, #0 movs r1, #0x7c - bl sub_0801D630 + bl _DmaZero ldr r0, _0801DB70 @ =gUnk_02034CB0 str r0, [r4, #0x10] ldr r0, _0801DB74 @ =0x00001F0C @@ -560,7 +560,7 @@ sub_0801DBA0: @ 0x0801DBA0 adds r5, r1, #0 adds r1, r2, #0 adds r0, r5, #0 - bl sub_0801D630 + bl _DmaZero movs r0, #1 strb r0, [r5] ldr r2, _0801DBE4 @ =gUnk_030010A0 @@ -835,7 +835,7 @@ _0801DDB8: ldr r0, _0801DDE0 @ =gUnk_02019EE0 movs r1, #0x80 lsls r1, r1, #8 - bl sub_0801D630 + bl _DmaZero b _0801DEE2 .align 2, 0 _0801DDD8: .4byte gUnk_080C9C50 @@ -1104,7 +1104,7 @@ sub_0801DFB4: @ 0x0801DFB4 ldr r7, _0801E004 @ =gUnk_02022740 adds r0, r7, #0 movs r1, #0x10 - bl sub_0801D630 + bl _DmaZero strh r4, [r7, #6] strh r5, [r7, #8] strh r6, [r7, #0xa] @@ -1345,7 +1345,7 @@ sub_0801E160: @ 0x0801E160 adds r0, r0, r4 movs r1, #0xa0 lsls r1, r1, #4 - bl sub_0801D630 + bl _DmaZero adds r0, r6, #0 mov r1, r8 mov r2, sb @@ -1415,7 +1415,7 @@ sub_0801E1EC: @ 0x0801E1EC adds r0, r0, r5 movs r1, #0xa0 lsls r1, r1, #4 - bl sub_0801D630 + bl _DmaZero adds r0, r4, #0 movs r1, #0 bl sub_0801E24C @@ -1579,7 +1579,7 @@ sub_0801E31C: @ 0x0801E31C adds r0, r0, r1 movs r1, #0xa0 lsls r1, r1, #4 - bl sub_0801D630 + bl _DmaZero cmp sl, sb bge _0801E3DC movs r6, #0 @@ -1764,7 +1764,7 @@ sub_0801E49C: @ 0x0801E49C movs r2, #0xf0 lsls r2, r2, #3 ldr r1, _0801E5E8 @ =gUnk_02018EE0 - bl sub_0801D5EC + bl _DmaFill16 adds r3, r5, #0 subs r3, #0x40 movs r2, #0xff @@ -1874,7 +1874,7 @@ sub_0801E49C: @ 0x0801E49C adds r0, r0, r6 movs r1, #0xa0 lsls r1, r1, #4 - bl sub_0801D630 + bl _DmaZero ldr r2, _0801E5E8 @ =gUnk_02018EE0 ldrb r1, [r5] lsls r0, r1, #2 diff --git a/asm/code_0804AA84.s b/asm/code_0804AA84.s index e0e7dea7..73e93d4e 100644 --- a/asm/code_0804AA84.s +++ b/asm/code_0804AA84.s @@ -54,7 +54,7 @@ sub_0804AAD4: @ 0x0804AAD4 ldr r4, _0804AAFC @ =gUnk_02018EB0 adds r0, r4, #0 movs r1, #0x28 - bl sub_0801D630 + bl _DmaZero movs r0, #0 str r0, [r4, #0x14] bl sub_0805E60C diff --git a/asm/code_0804B9F8.s b/asm/code_0804B9F8.s index acde102d..d5601372 100644 --- a/asm/code_0804B9F8.s +++ b/asm/code_0804B9F8.s @@ -11466,10 +11466,10 @@ sub_0804FFE4: @ 0x0804FFE4 ldr r4, _08050000 @ =gUnk_03000FD0 adds r0, r4, #0 movs r1, #0x1c - bl sub_0801D630 + bl _DmaZero ldr r0, _08050004 @ =gUnk_020354C0 movs r1, #0x80 - bl sub_0801D630 + bl _DmaZero movs r0, #1 rsbs r0, r0, #0 str r0, [r4, #4] diff --git a/asm/code_08050038.s b/asm/code_08050038.s index 924795b8..e9e1723f 100644 --- a/asm/code_08050038.s +++ b/asm/code_08050038.s @@ -460,7 +460,7 @@ sub_08050384: @ 0x08050384 ldr r0, _080503A0 @ =gUnk_02034CB0 movs r1, #0x80 lsls r1, r1, #4 - bl sub_0801D630 + bl _DmaZero ldr r1, _080503A4 @ =gScreen movs r0, #1 strh r0, [r1, #0xe] @@ -490,10 +490,10 @@ sub_080503BC: @ 0x080503BC movs r4, #0x80 lsls r4, r4, #4 adds r1, r4, #0 - bl sub_0801D630 + bl _DmaZero ldr r0, _080503E0 @ =gUnk_02021F30 adds r1, r4, #0 - bl sub_0801D630 + bl _DmaZero pop {r4, pc} .align 2, 0 _080503D8: .4byte gUnk_02032EC0 @@ -583,7 +583,7 @@ sub_08050450: @ 0x08050450 strh r0, [r1, #0x24] ldr r0, _080504E8 @ =gUnk_02000080 movs r1, #0x30 - bl sub_0801D630 + bl _DmaZero _0805048A: bl sub_080507FC ldr r1, _080504EC @ =gUnk_080FC8B0 @@ -632,7 +632,7 @@ sub_080504F4: @ 0x080504F4 movs r0, #0xc0 lsls r0, r0, #0x13 movs r1, #0x80 - bl sub_0801D630 + bl _DmaZero bl sub_08056418 bl sub_0805E60C bl sub_08080668 @@ -642,11 +642,11 @@ sub_080504F4: @ 0x080504F4 ldr r0, _080505DC @ =gUnk_0200AF00 movs r1, #0xcd lsls r1, r1, #2 - bl sub_0801D630 + bl _DmaZero ldr r4, _080505E0 @ =gUnk_02019EE0 ldr r1, _080505E4 @ =0x00000E28 adds r0, r4, #0 - bl sub_0801D630 + bl _DmaZero movs r0, #7 strb r0, [r4, #3] movs r0, #0x80 @@ -662,7 +662,7 @@ _08050546: movs r1, #0xed lsls r1, r1, #2 adds r0, r4, #0 - bl sub_0801D630 + bl _DmaZero movs r0, #8 strb r0, [r4, #2] movs r0, #0 @@ -887,7 +887,7 @@ _08050732: ldr r0, [r5, #8] movs r1, #0x80 lsls r1, r1, #2 - bl sub_0801D630 + bl _DmaZero ldr r0, _08050784 @ =0x000004B4 adds r1, r6, #0 muls r1, r0, r1 @@ -1387,7 +1387,7 @@ sub_08050AFC: @ 0x08050AFC movs r1, #0x80 lsls r1, r1, #4 adds r0, r5, #0 - bl sub_0801D630 + bl _DmaZero ldr r0, _08050B34 @ =gUnk_02019EE0 adds r0, #8 adds r4, r4, r0 @@ -1717,7 +1717,7 @@ sub_08050DB8: @ 0x08050DB8 ldr r0, _08050DDC @ =gUnk_020344B0 movs r1, #0x80 lsls r1, r1, #4 - bl sub_0801D630 + bl _DmaZero movs r0, #0xc bl sub_080503A8 ldr r1, _08050DE0 @ =gUnk_02000080 @@ -3240,7 +3240,7 @@ sub_0805194C: @ 0x0805194C adds r3, #0xc adds r4, r4, r3 adds r0, r4, #0 - bl sub_0801D630 + bl _DmaZero movs r0, #1 strb r0, [r4, #2] strb r0, [r4, #3] @@ -3291,7 +3291,7 @@ sub_080519B0: @ 0x080519B0 ldr r4, _08051A08 @ =gUnk_030010A0 adds r0, r4, #0 movs r1, #0xb0 - bl sub_0801D630 + bl _DmaZero bl sub_08049CD4 bl sub_080300AC bl sub_0807CA18 @@ -3326,11 +3326,11 @@ sub_08051A14: @ 0x08051A14 str r0, [r1, #4] ldr r0, _08051A74 @ =gUnk_03000000 ldr r1, _08051A78 @ =0x00000B74 - bl sub_0801D630 + bl _DmaZero ldr r0, _08051A7C @ =gUnk_02032EC0 movs r1, #0xed lsls r1, r1, #2 - bl sub_0801D630 + bl _DmaZero bl sub_0805E60C bl sub_080197AC bl sub_08080668 @@ -3984,10 +3984,10 @@ sub_08052010: @ 0x08052010 movs r4, #0x80 lsls r4, r4, #4 adds r1, r4, #0 - bl sub_0801D630 + bl _DmaZero ldr r0, _08052080 @ =gUnk_020344B0 adds r1, r4, #0 - bl sub_0801D630 + bl _DmaZero bl sub_080A4D34 movs r0, #0xa bl LoadPalettesByPaletteGroupIndex @@ -3999,10 +3999,10 @@ sub_08052010: @ 0x08052010 movs r0, #0xc0 lsls r0, r0, #0x13 movs r1, #0x20 - bl sub_0801D630 + bl _DmaZero ldr r0, _08052084 @ =gUnk_02000080 movs r1, #0x30 - bl sub_0801D630 + bl _DmaZero ldr r1, _08052088 @ =gScreen ldrh r2, [r1] movs r3, #0x80 diff --git a/asm/code_080526F8.s b/asm/code_080526F8.s index 958ca623..02c10ab6 100644 --- a/asm/code_080526F8.s +++ b/asm/code_080526F8.s @@ -791,7 +791,7 @@ sub_08052CFC: @ 0x08052CFC ldr r4, _08052D44 @ =gArea ldr r1, _08052D48 @ =0x00000894 adds r0, r4, #0 - bl sub_0801D630 + bl _DmaZero ldr r0, _08052D4C @ =gRoomControls ldrb r1, [r0, #4] lsls r1, r1, #2 @@ -996,7 +996,7 @@ sub_08052EA0: @ 0x08052EA0 ldr r4, _08052EE4 @ =gRoomVars adds r0, r4, #0 movs r1, #0xcc - bl sub_0801D630 + bl _DmaZero movs r0, #0xff strb r0, [r4, #0x10] strb r0, [r4, #0x11] @@ -1178,7 +1178,7 @@ sub_08052FF4: @ 0x08052FF4 ldr r5, _08053074 @ =gUnk_020342CC adds r0, r5, #0 movs r1, #0x20 - bl sub_0801D630 + bl _DmaZero str r5, [r5, #0x20] ldr r0, _08053078 @ =gUnk_0811E214 lsls r6, r6, #2 @@ -1570,17 +1570,17 @@ sub_08053320: @ 0x08053320 movs r4, #0x80 lsls r4, r4, #4 adds r1, r4, #0 - bl sub_0801D630 + bl _DmaZero ldr r0, _08053380 @ =gUnk_02021F30 adds r1, r4, #0 - bl sub_0801D630 + bl _DmaZero ldr r0, _08053384 @ =gUnk_020344B0 adds r1, r4, #0 - bl sub_0801D630 + bl _DmaZero ldr r0, _08053388 @ =gUnk_02001A40 movs r1, #0x80 lsls r1, r1, #5 - bl sub_0801D630 + bl _DmaZero movs r0, #0x10 bl sub_0801D7EC movs r0, #0x17 @@ -2222,7 +2222,7 @@ sub_08053800: @ 0x08053800 ldr r0, _08053888 @ =gUnk_02021F30 movs r1, #0x80 lsls r1, r1, #4 - bl sub_0801D630 + bl _DmaZero ldr r0, _0805388C @ =0x00000F01 adds r5, r5, r0 ldr r1, [r4] diff --git a/asm/code_08055FF4.s b/asm/code_08055FF4.s index 40a852d4..2be77ac1 100644 --- a/asm/code_08055FF4.s +++ b/asm/code_08055FF4.s @@ -156,7 +156,7 @@ _08056112: ldr r4, _0805612C @ =gUnk_02000010 adds r0, r4, #0 movs r1, #0x20 - bl sub_0801D630 + bl _DmaZero ldr r0, _08056130 @ =0x4D435A33 str r0, [r4] _08056124: diff --git a/asm/code_08056418.s b/asm/code_08056418.s index 1bb89be1..78e1d68d 100644 --- a/asm/code_08056418.s +++ b/asm/code_08056418.s @@ -16,7 +16,7 @@ sub_08056458: @ 0x08056458 bne _08056470 ldr r0, _08056488 @ =gUnk_02022780 movs r1, #0xa8 - bl sub_0801D630 + bl _DmaZero movs r0, #1 bl sub_080564C8 _08056470: @@ -91,14 +91,14 @@ sub_080564EC: @ 0x080564EC push {r4, lr} ldr r0, _08056598 @ =gUnk_02036A40 movs r1, #8 - bl sub_0801D630 + bl _DmaZero ldr r0, _0805659C @ =gUnk_02024030 movs r1, #0x18 - bl sub_0801D630 + bl _DmaZero ldr r4, _080565A0 @ =gUnk_02022780 adds r0, r4, #0 movs r1, #0xa8 - bl sub_0801D630 + bl _DmaZero ldr r0, _080565A4 @ =gTextBox adds r1, r4, #0 movs r2, #0x20 @@ -572,11 +572,11 @@ _080568B2: beq _080568D2 adds r0, r6, #0 movs r1, #4 - bl sub_0801D630 + bl _DmaZero ldr r4, _08056910 @ =gUnk_02024030 adds r0, r4, #0 movs r1, #0x18 - bl sub_0801D630 + bl _DmaZero movs r0, #1 strb r0, [r4] strb r0, [r6] @@ -777,7 +777,7 @@ _08056A30: movs r1, #3 strb r1, [r2] movs r1, #0x18 - bl sub_0801D630 + bl _DmaZero movs r0, #0x6a bl PlaySFX adds r1, r6, #0 diff --git a/asm/code_0805E3B0.s b/asm/code_0805E3B0.s index a269d7ca..a39b6514 100644 --- a/asm/code_0805E3B0.s +++ b/asm/code_0805E3B0.s @@ -360,15 +360,15 @@ sub_0805E60C: @ 0x0805E60C bl sub_0805E89C ldr r0, _0805E654 @ =gUnk_03003DC0 movs r1, #0xc - bl sub_0801D630 + bl _DmaZero ldr r0, _0805E658 @ =gLinkEntity movs r1, #0xaa lsls r1, r1, #6 - bl sub_0801D630 + bl _DmaZero ldr r0, _0805E65C @ =gUnk_02033290 movs r1, #0x80 lsls r1, r1, #4 - bl sub_0801D630 + bl _DmaZero bl sub_0805E98C ldr r0, _0805E660 @ =gUnk_03003DBC movs r1, #0 diff --git a/asm/code_0805E744.s b/asm/code_0805E744.s index ffa1ec47..c6194d3e 100644 --- a/asm/code_0805E744.s +++ b/asm/code_0805E744.s @@ -252,7 +252,7 @@ sub_0805E900: @ 0x0805E900 bl sub_0805EA98 adds r0, r4, #0 movs r1, #0x40 - bl sub_0801D630 + bl _DmaZero ldr r1, _0805E928 @ =gUnk_020354B4 ldrb r0, [r1] subs r0, #1 @@ -1594,7 +1594,7 @@ _0805F2D0: bne _0805F2F0 adds r0, r5, #0 movs r1, #0xc - bl sub_0801D630 + bl _DmaZero ldrb r0, [r4] movs r1, #1 orrs r0, r1 @@ -1624,7 +1624,7 @@ _0805F308: cmp r0, r2 bne _0805F318 movs r1, #0xc - bl sub_0801D630 + bl _DmaZero b _0805F320 .align 2, 0 _0805F314: .4byte gUnk_02036540 @@ -1787,7 +1787,7 @@ sub_0805F440: @ 0x0805F440 adds r4, r0, #0 adds r5, r1, #0 movs r1, #0x30 - bl sub_0801D630 + bl _DmaZero ldr r0, _0805F45C @ =0x0000FFFF cmp r5, r0 bls _0805F460 @@ -1965,7 +1965,7 @@ _0805F596: _0805F59E: ldr r0, _0805F5C8 @ =gUnk_02034330 movs r1, #0x18 - bl sub_0801D630 + bl _DmaZero _0805F5A6: mov r0, sb mov r1, sp @@ -2562,11 +2562,11 @@ sub_0805FA04: @ 0x0805FA04 ldr r0, _0805FA78 @ =gUnk_02034CB0 movs r1, #0x80 lsls r1, r1, #4 - bl sub_0801D630 + bl _DmaZero ldr r0, _0805FA7C @ =gUnk_02001A40 movs r1, #0x80 lsls r1, r1, #5 - bl sub_0801D630 + bl _DmaZero ldr r0, _0805FA80 @ =gScreen movs r2, #0 movs r1, #0x94 @@ -2585,11 +2585,11 @@ sub_0805FA04: @ 0x0805FA04 ldr r0, _0805FA88 @ =gUnk_02032EC0 movs r1, #0xed lsls r1, r1, #2 - bl sub_0801D630 + bl _DmaZero ldr r4, _0805FA8C @ =gUnk_02000080 adds r0, r4, #0 movs r1, #0x30 - bl sub_0801D630 + bl _DmaZero movs r0, #0x80 lsls r0, r0, #0x12 ldrb r0, [r0, #7] diff --git a/asm/code_0806ED78.s b/asm/code_0806ED78.s index b3d78b6c..6efd6e68 100644 --- a/asm/code_0806ED78.s +++ b/asm/code_0806ED78.s @@ -842,7 +842,7 @@ sub_0806F364: @ 0x0806F364 adds r1, r2, r3 adds r0, r0, r1 movs r1, #0x10 - bl sub_0801D630 + bl _DmaZero pop {pc} .align 2, 0 _0806F384: .4byte gArea diff --git a/asm/code_0806FA6C.s b/asm/code_0806FA6C.s index 09bac7ac..893ae0f3 100644 --- a/asm/code_0806FA6C.s +++ b/asm/code_0806FA6C.s @@ -385,7 +385,7 @@ sub_0806FD8C: @ 0x0806FD8C ldr r0, _0806FD9C @ =gUnk_020000C0 movs r1, #0xc0 lsls r1, r1, #4 - bl sub_0801D630 + bl _DmaZero pop {pc} .align 2, 0 _0806FD9C: .4byte gUnk_020000C0 @@ -534,7 +534,7 @@ _0806FE9E: bls _0806FE9E adds r0, r6, #0 movs r1, #0x40 - bl sub_0801D630 + bl _DmaZero _0806FEB4: pop {r4, r5, r6, pc} .align 2, 0 @@ -1454,7 +1454,7 @@ sub_0807059C: @ 0x0807059C push {lr} ldr r0, _080705A8 @ =gUnk_02034490 movs r1, #0x18 - bl sub_0801D630 + bl _DmaZero pop {pc} .align 2, 0 _080705A8: .4byte gUnk_02034490 diff --git a/asm/code_080732D0.s b/asm/code_080732D0.s index 2974abfd..9a98dc36 100644 --- a/asm/code_080732D0.s +++ b/asm/code_080732D0.s @@ -4198,7 +4198,7 @@ sub_080751E8: @ 0x080751E8 ldr r4, _08075230 @ =gUnk_02022750 adds r0, r4, #0 movs r1, #0x24 - bl sub_0801D630 + bl _DmaZero str r6, [r4] ldr r0, _08075234 @ =gLinkEntity adds r0, #0x84 diff --git a/asm/code_08077B98.s b/asm/code_08077B98.s index da1b72eb..2b863d36 100644 --- a/asm/code_08077B98.s +++ b/asm/code_08077B98.s @@ -642,7 +642,7 @@ sub_080784C8: @ 0x080784C8 movs r1, #0xc4 lsls r1, r1, #1 adds r0, r4, #0 - bl sub_0801D630 + bl _DmaZero ldr r0, _080784E0 @ =gUnk_0811C000 str r0, [r4, #4] pop {r4, pc} diff --git a/asm/code_08078778.s b/asm/code_08078778.s index eab905d0..56747830 100644 --- a/asm/code_08078778.s +++ b/asm/code_08078778.s @@ -70,7 +70,7 @@ sub_080788E0: @ 0x080788E0 ldr r1, _08078900 @ =gUnk_03003DF8 adds r0, r0, r1 movs r1, #0xc - bl sub_0801D630 + bl _DmaZero _080788FC: pop {pc} .align 2, 0 @@ -542,7 +542,7 @@ sub_08078C24: @ 0x08078C24 ldr r0, _08078CB0 @ =gUnk_03003DF0 movs r1, #0xc4 lsls r1, r1, #1 - bl sub_0801D630 + bl _DmaZero pop {pc} .align 2, 0 _08078CAC: .4byte gLinkState diff --git a/asm/code_0807B9B8.s b/asm/code_0807B9B8.s index 9a17aa0a..24a845bd 100644 --- a/asm/code_0807B9B8.s +++ b/asm/code_0807B9B8.s @@ -822,14 +822,14 @@ sub_0807BFD0: @ 0x0807BFD0 adds r0, r7, #0 adds r1, r6, #0 mov r2, r8 - bl sub_0801D5EC + bl _DmaFill16 movs r5, #0 strh r5, [r6] ldr r4, _0807C0C0 @ =gUnk_02010654 adds r0, r7, #0 adds r1, r4, #0 mov r2, r8 - bl sub_0801D5EC + bl _DmaFill16 strh r5, [r4] ldr r2, _0807C0C4 @ =gRoomControls ldr r0, _0807C0C8 @ =gArea @@ -873,7 +873,7 @@ _0807C04E: adds r0, r7, #0 adds r1, r6, #0 mov r2, r8 - bl sub_0801D5EC + bl _DmaFill16 movs r2, #0 ldr r3, _0807C0D8 @ =0x000007FF adds r4, r7, #0 @@ -899,7 +899,7 @@ _0807C078: ldr r4, _0807C0B8 @ =0x0000FFFF adds r0, r4, #0 adds r1, r6, #0 - bl sub_0801D5EC + bl _DmaFill16 movs r2, #0 ldr r3, _0807C0D8 @ =0x000007FF _0807C096: @@ -948,19 +948,19 @@ sub_0807C0DC: @ 0x0807C0DC lsls r6, r6, #6 adds r0, r5, #0 adds r1, r6, #0 - bl sub_0801D630 + bl _DmaZero adds r0, r5, r6 movs r1, #0x80 lsls r1, r1, #5 - bl sub_0801D630 + bl _DmaZero ldr r0, _0807C160 @ =gUnk_02019EE0 movs r4, #0x80 lsls r4, r4, #8 adds r1, r4, #0 - bl sub_0801D630 + bl _DmaZero ldr r0, _0807C164 @ =gUnk_02002F00 adds r1, r4, #0 - bl sub_0801D630 + bl _DmaZero ldr r0, _0807C168 @ =gArea ldr r1, _0807C16C @ =0x0000085C adds r0, r0, r1 @@ -999,7 +999,7 @@ _0807C174: .4byte 0x0000FFFF _0807C178: adds r0, r2, #4 adds r1, r6, #0 - bl sub_0801D630 + bl _DmaZero movs r3, #1 mov sb, r3 _0807C184: @@ -1167,7 +1167,7 @@ _0807C2E4: bl sub_0807C5F4 adds r0, r5, #0 adds r1, r6, #0 - bl sub_0801D630 + bl _DmaZero ldr r4, _0807C350 @ =gUnk_02002F00 adds r5, r4, r6 adds r0, r4, #0 @@ -1179,7 +1179,7 @@ _0807C2E4: bl sub_0807C5F4 adds r0, r5, #0 adds r1, r6, #0 - bl sub_0801D630 + bl _DmaZero _0807C326: mov r1, sb cmp r1, #0 @@ -1406,10 +1406,10 @@ sub_0807C4F8: @ 0x0807C4F8 movs r4, #0x80 lsls r4, r4, #8 adds r1, r4, #0 - bl sub_0801D630 + bl _DmaZero ldr r0, _0807C59C @ =gUnk_02002F00 adds r1, r4, #0 - bl sub_0801D630 + bl _DmaZero ldr r5, _0807C5A0 @ =gUnk_02022830 ldr r0, _0807C5A4 @ =gArea ldr r1, _0807C5A8 @ =0x0000085C @@ -1455,7 +1455,7 @@ _0807C54A: bl sub_0807C5F4 adds r0, r5, #0 adds r1, r6, #0 - bl sub_0801D630 + bl _DmaZero ldr r4, _0807C59C @ =gUnk_02002F00 adds r5, r4, r6 adds r0, r4, #0 @@ -1467,7 +1467,7 @@ _0807C54A: bl sub_0807C5F4 adds r0, r5, #0 adds r1, r6, #0 - bl sub_0801D630 + bl _DmaZero _0807C592: pop {r4, r5, r6, pc} .align 2, 0 @@ -1694,7 +1694,7 @@ _0807C710: _0807C726: adds r0, r4, #0 movs r1, #0x40 - bl sub_0801D630 + bl _DmaZero adds r4, #0x40 adds r5, #1 cmp r5, r7 @@ -1984,7 +1984,7 @@ _0807C92E: _0807C946: adds r0, r4, #0 movs r1, #0x80 - bl sub_0801D630 + bl _DmaZero adds r4, #0x80 adds r5, #1 cmp r5, r6 diff --git a/asm/code_0807CC3C.s b/asm/code_0807CC3C.s index fa29b577..fc5fa1d1 100644 --- a/asm/code_0807CC3C.s +++ b/asm/code_0807CC3C.s @@ -1773,14 +1773,14 @@ sub_0807DA70: @ 0x0807DA70 ldr r4, _0807DA94 @ =gUnk_02033280 adds r0, r4, #0 movs r1, #0xc - bl sub_0801D630 + bl _DmaZero ldr r0, _0807DA98 @ =gUnk_02036570 movs r1, #0x90 lsls r1, r1, #3 - bl sub_0801D630 + bl _DmaZero ldr r0, _0807DA9C @ =gUnk_02022750 movs r1, #0x24 - bl sub_0801D630 + bl _DmaZero movs r0, #8 strb r0, [r4, #8] pop {r4, pc} @@ -1816,7 +1816,7 @@ _0807DAC2: sub_0807DAC4: @ 0x0807DAC4 push {lr} movs r1, #0x24 - bl sub_0801D630 + bl _DmaZero pop {pc} .align 2, 0 @@ -1880,7 +1880,7 @@ StartPlayerScript: @ 0x0807DB2C ldr r4, _0807DB5C @ =gUnk_02022750 adds r0, r4, #0 movs r1, #0x24 - bl sub_0801D630 + bl _DmaZero str r5, [r4] ldr r0, _0807DB60 @ =gLinkEntity adds r0, #0x84 @@ -1927,7 +1927,7 @@ sub_0807DB88: @ 0x0807DB88 adds r4, r0, #0 adds r5, r1, #0 movs r1, #0x24 - bl sub_0801D630 + bl _DmaZero str r5, [r4] pop {r4, r5, pc} @@ -7919,11 +7919,11 @@ sub_08080668: @ 0x08080668 ldr r5, _080806A4 @ =gRoomControls adds r0, r5, #0 movs r1, #0x38 - bl sub_0801D630 + bl _DmaZero ldr r4, _080806A8 @ =gUnk_03004030 adds r0, r4, #0 movs r1, #0xc - bl sub_0801D630 + bl _DmaZero ldr r0, _080806AC @ =0x0000FFFF strh r0, [r5, #0x22] movs r0, #0xff @@ -7935,10 +7935,10 @@ sub_08080668: @ 0x08080668 movs r4, #0x80 lsls r4, r4, #8 adds r1, r4, #0 - bl sub_0801D630 + bl _DmaZero ldr r0, _080806B8 @ =gUnk_02002F00 adds r1, r4, #0 - bl sub_0801D630 + bl _DmaZero pop {r4, r5, pc} .align 2, 0 _080806A4: .4byte gRoomControls diff --git a/asm/code_080A29BC.s b/asm/code_080A29BC.s index 88c1490b..a7eab04d 100644 --- a/asm/code_080A29BC.s +++ b/asm/code_080A29BC.s @@ -995,7 +995,7 @@ sub_080A3210: @ 0x080A3210 ldr r4, _080A3230 @ =gUnk_02021EE0 adds r0, r4, #0 movs r1, #0x18 - bl sub_0801D630 + bl _DmaZero bl sub_080A35C8 movs r0, #0x80 lsls r0, r0, #1 diff --git a/asm/code_080A3480.s b/asm/code_080A3480.s index b95cc3b4..0e29f5f1 100644 --- a/asm/code_080A3480.s +++ b/asm/code_080A3480.s @@ -354,7 +354,7 @@ sub_080A36F8: @ 0x080A36F8 ldr r0, _080A3760 @ =gUnk_02021F30 movs r1, #0x80 lsls r1, r1, #4 - bl sub_0801D630 + bl _DmaZero ldr r1, _080A3764 @ =gScreen movs r2, #0 movs r0, #1 @@ -410,7 +410,7 @@ _080A378A: ldr r0, _080A37B8 @ =gUnk_02021F30 movs r1, #0x80 lsls r1, r1, #4 - bl sub_0801D630 + bl _DmaZero movs r1, #0x10 ldrsh r0, [r4, r1] ldr r2, _080A37BC @ =gUnk_081272E0 @@ -580,7 +580,7 @@ sub_080A38D0: @ 0x080A38D0 movs r6, #0x80 lsls r6, r6, #4 adds r1, r6, #0 - bl sub_0801D630 + bl _DmaZero ldr r4, _080A3924 @ =gScreen movs r0, #0 mov r8, r0 @@ -588,7 +588,7 @@ sub_080A38D0: @ 0x080A38D0 strh r5, [r4, #0x1a] ldr r0, _080A3928 @ =gUnk_020344B0 adds r1, r6, #0 - bl sub_0801D630 + bl _DmaZero strh r5, [r4, #0x26] adds r4, #0x68 movs r0, #0x80 @@ -712,7 +712,7 @@ _080A39C8: movs r0, #0xc0 lsls r0, r0, #0x13 movs r1, #0x20 - bl sub_0801D630 + bl _DmaZero movs r0, #0 movs r1, #0 bl sub_08052418 diff --git a/asm/code_080A3BD0.s b/asm/code_080A3BD0.s index 622d80ca..59aecd61 100644 --- a/asm/code_080A3BD0.s +++ b/asm/code_080A3BD0.s @@ -1003,7 +1003,7 @@ sub_080A4398: @ 0x080A4398 push {lr} ldr r0, _080A43A4 @ =gUnk_02019EE0 movs r1, #0x40 - bl sub_0801D630 + bl _DmaZero pop {pc} .align 2, 0 _080A43A4: .4byte gUnk_02019EE0 @@ -1187,7 +1187,7 @@ sub_080A44E0: @ 0x080A44E0 mov r8, r0 ldr r0, [r4, #8] mov r1, r8 - bl sub_0801D630 + bl _DmaZero adds r0, r6, #0 adds r1, r4, #0 bl sub_0805F76C @@ -1337,11 +1337,11 @@ sub_080A4608: @ 0x080A4608 ldr r0, _080A46A4 @ =gUnk_02034CB0 movs r1, #0x80 lsls r1, r1, #4 - bl sub_0801D630 + bl _DmaZero ldr r0, _080A46A8 @ =gUnk_02001A40 movs r1, #0x80 lsls r1, r1, #5 - bl sub_0801D630 + bl _DmaZero ldr r2, _080A46AC @ =gScreen adds r1, r2, #0 adds r1, #0x58 @@ -2044,7 +2044,7 @@ sub_080A4BA0: @ 0x080A4BA0 adds r6, r1, #0 add r0, sp, #0x18 movs r1, #0x30 - bl sub_0801D630 + bl _DmaZero ldr r0, _080A4C08 @ =gUnk_0812816C mov r1, sp movs r2, #0x18 @@ -2130,7 +2130,7 @@ _080A4C3E: _080A4C56: ldr r1, [sp] movs r2, #0x80 - bl sub_0801D5EC + bl _DmaFill16 cmp r5, #0 ble _080A4CAC ldr r0, _080A4C9C @ =0x00007FFF @@ -2191,7 +2191,7 @@ sub_080A4CBC: @ 0x080A4CBC lsls r5, r5, #4 adds r0, r4, #0 adds r1, r5, #0 - bl sub_0801D630 + bl _DmaZero ldr r1, _080A4D14 @ =0x0600E000 adds r0, r4, #0 adds r2, r5, #0 @@ -2285,7 +2285,7 @@ sub_080A4D88: @ 0x080A4D88 push {lr} ldr r0, _080A4DA4 @ =gUnk_020344A0 movs r1, #8 - bl sub_0801D630 + bl _DmaZero movs r0, #1 movs r1, #0 bl sub_080A7138 @@ -2313,21 +2313,21 @@ sub_080A4DB8: @ 0x080A4DB8 movs r4, #0x80 lsls r4, r4, #4 adds r1, r4, #0 - bl sub_0801D630 + bl _DmaZero ldr r0, _080A4E5C @ =gUnk_02021F30 adds r1, r4, #0 - bl sub_0801D630 + bl _DmaZero ldr r0, _080A4E60 @ =gUnk_020344B0 adds r1, r4, #0 - bl sub_0801D630 + bl _DmaZero ldr r0, _080A4E64 @ =gUnk_0200AF34 movs r1, #0xc0 lsls r1, r1, #2 - bl sub_0801D630 + bl _DmaZero ldr r4, _080A4E68 @ =gUnk_02000080 adds r0, r4, #0 movs r1, #0x30 - bl sub_0801D630 + bl _DmaZero ldr r0, _080A4E6C @ =0x0000FFFF strh r0, [r4, #0x2e] ldr r0, _080A4E70 @ =gUnk_02034490 @@ -2648,7 +2648,7 @@ _080A5080: ldr r0, _080A5098 @ =gUnk_02034CB0 movs r1, #0x80 lsls r1, r1, #4 - bl sub_0801D630 + bl _DmaZero ldr r1, _080A509C @ =gScreen movs r0, #1 strh r0, [r1, #0xe] diff --git a/asm/code_080A5574.s b/asm/code_080A5574.s index 239efe6b..93865266 100644 --- a/asm/code_080A5574.s +++ b/asm/code_080A5574.s @@ -2458,7 +2458,7 @@ _080A6886: ldr r0, _080A68D0 @ =gUnk_02019EE0 movs r1, #0x80 lsls r1, r1, #3 - bl sub_0801D630 + bl _DmaZero pop {r4, r5, r6, r7, pc} .align 2, 0 _080A68AC: .4byte gUnk_02032EC0 @@ -2806,7 +2806,7 @@ sub_080A6B04: @ 0x080A6B04 ldr r1, _080A6C08 @ =gUnk_02001A40 movs r2, #0x80 lsls r2, r2, #5 - bl sub_0801D5EC + bl _DmaFill16 ldr r0, _080A6C0C @ =gLinkState ldr r0, [r0, #0x30] movs r1, #8 @@ -3323,7 +3323,7 @@ sub_080A6F6C: @ 0x080A6F6C ldr r0, _080A6FA8 @ =gUnk_020350F0 movs r1, #0x80 lsls r1, r1, #1 - bl sub_0801D630 + bl _DmaZero movs r0, #0xff ands r0, r4 cmp r0, #0 @@ -3392,7 +3392,7 @@ _080A6FFA: ldr r0, _080A7038 @ =gUnk_020350F0 movs r1, #0x80 lsls r1, r1, #1 - bl sub_0801D630 + bl _DmaZero movs r0, #0xff ands r0, r4 cmp r0, #0 @@ -3429,7 +3429,7 @@ sub_080A7040: @ 0x080A7040 movs r1, #0xc0 lsls r1, r1, #2 adds r0, r4, #0 - bl sub_0801D630 + bl _DmaZero ldr r0, _080A7098 @ =0xFFFFFE00 adds r4, r4, r0 ldr r1, _080A709C @ =0x0600E000 @@ -3472,7 +3472,7 @@ sub_080A70AC: @ 0x080A70AC movs r1, #0xc0 lsls r1, r1, #2 adds r0, r4, #0 - bl sub_0801D630 + bl _DmaZero adds r2, r4, #0 subs r2, #0x34 movs r0, #0x7f @@ -3535,7 +3535,7 @@ sub_080A7124: @ 0x080A7124 ldr r0, _080A7134 @ =gUnk_02032EC0 movs r1, #0xed lsls r1, r1, #2 - bl sub_0801D630 + bl _DmaZero pop {pc} .align 2, 0 _080A7134: .4byte gUnk_02032EC0 @@ -3552,7 +3552,7 @@ sub_080A7138: @ 0x080A7138 movs r1, #0xed lsls r1, r1, #2 adds r0, r4, #0 - bl sub_0801D630 + bl _DmaZero strb r5, [r4, #2] strb r6, [r4, #3] ldr r0, _080A7160 @ =gUnk_03001000 @@ -3783,18 +3783,18 @@ sub_080A7328: @ 0x080A7328 bl sub_0805E89C ldr r0, _080A738C @ =gUnk_02000080 movs r1, #0x30 - bl sub_0801D630 + bl _DmaZero ldr r0, _080A7390 @ =gRoomControls movs r1, #0x38 - bl sub_0801D630 + bl _DmaZero ldr r0, _080A7394 @ =gUnk_03000420 movs r1, #0x80 lsls r1, r1, #1 - bl sub_0801D630 + bl _DmaZero ldr r4, _080A7398 @ =gUnk_02033280 adds r0, r4, #0 movs r1, #0xc - bl sub_0801D630 + bl _DmaZero movs r0, #8 strb r0, [r4, #8] movs r0, #1 @@ -4959,7 +4959,7 @@ sub_080A7C7C: @ 0x080A7C7C push {lr} ldr r0, _080A7C88 @ =gUnk_02017660 movs r1, #0x40 - bl sub_0801D630 + bl _DmaZero pop {pc} .align 2, 0 _080A7C88: .4byte gUnk_02017660 diff --git a/asm/code_080AD90C.s b/asm/code_080AD90C.s index 194d7acc..a2259a48 100644 --- a/asm/code_080AD90C.s +++ b/asm/code_080AD90C.s @@ -567,7 +567,7 @@ sub_080ADD30: @ 0x080ADD30 movs r1, #0x85 lsls r1, r1, #2 adds r0, r4, #0 - bl sub_0801D630 + bl _DmaZero movs r5, #0 adds r4, #4 movs r0, #0x10 @@ -718,7 +718,7 @@ _080ADE54: .4byte gUnk_02024494 _080ADE58: adds r0, r1, #0 movs r1, #0xc - bl sub_0801D630 + bl _DmaZero _080ADE60: adds r5, #0xc adds r4, #1 @@ -1084,7 +1084,7 @@ sub_080AE104: @ 0x080AE104 adds r1, r1, r5 lsls r1, r1, #2 adds r0, r4, #0 - bl sub_0801D630 + bl _DmaZero strb r5, [r4, #1] strh r6, [r4, #4] adds r0, r4, #0 @@ -1396,7 +1396,7 @@ _080AE350: stm r0!, {r2, r3, r7} adds r0, r6, #0 movs r1, #0xc - bl sub_0801D630 + bl _DmaZero adds r6, #0xc adds r5, #0xc movs r0, #0xc diff --git a/asm/gyorgFemale.s b/asm/gyorgFemale.s index 20c48072..cae9b128 100644 --- a/asm/gyorgFemale.s +++ b/asm/gyorgFemale.s @@ -112,10 +112,10 @@ sub_0804614C: @ 0x0804614C movs r4, #0x80 lsls r4, r4, #8 adds r1, r4, #0 - bl sub_0801D630 + bl _DmaZero ldr r0, _08046250 @ =gUnk_02002F00 adds r1, r4, #0 - bl sub_0801D630 + bl _DmaZero adds r0, r6, #0 movs r1, #0 bl sub_0804660C @@ -445,10 +445,10 @@ sub_08046498: @ 0x08046498 movs r4, #0x80 lsls r4, r4, #8 adds r1, r4, #0 - bl sub_0801D630 + bl _DmaZero ldr r0, _080464BC @ =gUnk_02002F00 adds r1, r4, #0 - bl sub_0801D630 + bl _DmaZero adds r0, r5, #0 bl sub_080464C0 pop {r4, r5, pc} @@ -486,7 +486,7 @@ _080464DE: ldr r0, _0804650C @ =gUnk_02019EE0 movs r1, #0x80 lsls r1, r1, #4 - bl sub_0801D630 + bl _DmaZero ldr r1, _08046514 @ =gUnk_02000070 movs r0, #1 strb r0, [r1] diff --git a/asm/initializeLink.s b/asm/initializeLink.s index ef69d458..b219c8dd 100644 --- a/asm/initializeLink.s +++ b/asm/initializeLink.s @@ -8,11 +8,11 @@ InitializeLink: @ 0x080524A8 bl sub_080784C8 ldr r0, _08052510 @ =gUnk_03000B80 movs r1, #0x70 - bl sub_0801D630 + bl _DmaZero ldr r6, _08052514 @ =gLinkState adds r0, r6, #0 movs r1, #0xb0 - bl sub_0801D630 + bl _DmaZero movs r0, #1 rsbs r0, r0, #0 adds r1, r6, #0 @@ -22,7 +22,7 @@ InitializeLink: @ 0x080524A8 ldr r4, _08052518 @ =gLinkEntity adds r0, r4, #0 movs r1, #0x88 - bl sub_0801D630 + bl _DmaZero ldr r0, _0805251C @ =gRoomControls str r4, [r0, #0x30] ldr r1, _08052520 @ =gUnk_080FCAC8 diff --git a/asm/manager10.s b/asm/manager10.s index 88b7358d..c618ca61 100644 --- a/asm/manager10.s +++ b/asm/manager10.s @@ -338,7 +338,7 @@ _08059800: lsls r5, r5, #4 adds r0, r4, #0 adds r1, r5, #0 - bl sub_0801D630 + bl _DmaZero ldr r1, _08059820 @ =0x0600E800 adds r0, r4, #0 adds r2, r5, #0 diff --git a/asm/manager1A.s b/asm/manager1A.s index dedc4bb6..446763f8 100644 --- a/asm/manager1A.s +++ b/asm/manager1A.s @@ -28,7 +28,7 @@ sub_0805B048: @ 0x0805B048 adds r0, r4, #0 adds r0, #0x20 movs r1, #0x20 - bl sub_0801D630 + bl _DmaZero movs r0, #1 strb r0, [r4, #0xc] ldr r2, _0805B08C @ =gRoomControls diff --git a/asm/manager22.s b/asm/manager22.s index 9d18ceba..8cd27864 100644 --- a/asm/manager22.s +++ b/asm/manager22.s @@ -297,7 +297,7 @@ _0805BB28: movs r2, #0x80 lsls r2, r2, #4 movs r0, #0xf - bl sub_0801D5EC + bl _DmaFill16 ldr r0, _0805BB58 @ =gScreen ldr r1, _0805BB5C @ =0x00001E0C strh r1, [r0, #0x2c] diff --git a/asm/manager2C.s b/asm/manager2C.s index b588419f..6b3b92a3 100644 --- a/asm/manager2C.s +++ b/asm/manager2C.s @@ -44,7 +44,7 @@ _0805D184: ldr r4, _0805D1F8 @ =gUnk_030010AC adds r0, r4, #0 movs r1, #0x20 - bl sub_0801D630 + bl _DmaZero subs r4, #0xc movs r1, #0 movs r0, #1 diff --git a/asm/manager39.s b/asm/manager39.s index aae17671..26dd0847 100644 --- a/asm/manager39.s +++ b/asm/manager39.s @@ -120,7 +120,7 @@ sub_0805E1D8: @ 0x0805E1D8 push {lr} ldr r0, _0805E1F0 @ =gUnk_02034DF0 movs r1, #0x80 - bl sub_0801D630 + bl _DmaZero ldr r1, _0805E1F4 @ =gScreen movs r0, #1 strh r0, [r1, #0xe] @@ -138,7 +138,7 @@ sub_0805E1F8: @ 0x0805E1F8 adds r5, r1, #0 ldr r0, _0805E234 @ =gUnk_02034DF0 movs r1, #0x80 - bl sub_0801D630 + bl _DmaZero ldr r0, _0805E238 @ =gUnk_08108E60 mov r1, sp movs r2, #9 diff --git a/asm/managerB.s b/asm/managerB.s index 13d574b2..6e6d4cd0 100644 --- a/asm/managerB.s +++ b/asm/managerB.s @@ -216,7 +216,7 @@ sub_08058760: @ 0x08058760 adds r0, r4, #0 adds r0, #0x20 movs r1, #0x20 - bl sub_0801D630 + bl _DmaZero adds r0, r4, #0 movs r1, #8 bl sub_0805EA2C diff --git a/asm/non_matching/mainLoop.inc b/asm/non_matching/mainLoop.inc index 651625a1..24e3f299 100644 --- a/asm/non_matching/mainLoop.inc +++ b/asm/non_matching/mainLoop.inc @@ -35,7 +35,7 @@ ldr r4, _08055F04 @ =gUnk_03001000 adds r0, r4, #0 movs r1, #0x10 - bl sub_0801D630 + bl _DmaZero movs r0, #0 bl sub_08056010 adds r6, r4, #0 diff --git a/asm/object3D.s b/asm/object3D.s index d7a2278d..fd19ab4f 100644 --- a/asm/object3D.s +++ b/asm/object3D.s @@ -170,7 +170,7 @@ sub_0808D030: @ 0x0808D030 adds r0, r4, #0 subs r0, #0x20 ldr r1, _0808D05C @ =0x00000B74 - bl sub_0801D630 + bl _DmaZero movs r1, #0xa8 lsls r1, r1, #2 adds r0, r1, #0 diff --git a/asm/sub_0801D630.s b/asm/sub_0801D630.s index a17d5907..20bb693c 100644 --- a/asm/sub_0801D630.s +++ b/asm/sub_0801D630.s @@ -5,8 +5,8 @@ .text - thumb_func_start sub_0801D630 -sub_0801D630: @ 0x0801D630 + thumb_func_start _DmaZero +_DmaZero: @ 0x0801D630 push {r4, lr} adds r3, r0, #0 adds r2, r1, #0 @@ -28,7 +28,7 @@ _0801D64A: _0801D654: movs r0, #0 adds r1, r3, #0 - bl sub_0801D5EC + bl _DmaFill16 b _0801D668 _0801D65E: strb r4, [r3] diff --git a/asm/sub_08052418.s b/asm/sub_08052418.s index 96c92a71..f7bd8bd3 100644 --- a/asm/sub_08052418.s +++ b/asm/sub_08052418.s @@ -14,7 +14,7 @@ sub_08052418: @ 0x08052418 ldr r0, _08052494 @ =gUnk_02021F30 movs r1, #0x80 lsls r1, r1, #4 - bl sub_0801D630 + bl _DmaZero ldr r0, _08052498 @ =gUnk_020227E8 movs r1, #0xf str r1, [r0] diff --git a/asm/sub_08055F70.s b/asm/sub_08055F70.s index 0bda6107..5cb4e821 100644 --- a/asm/sub_08055F70.s +++ b/asm/sub_08055F70.s @@ -23,7 +23,7 @@ sub_08055F70: @ 0x08055F70 ldr r2, _08055FD4 @ =0x0003FFD0 ldr r0, _08055FD8 @ =gUnk_02000030 adds r1, r2, #0 - bl sub_0801D630 + bl _DmaZero ldr r0, _08055FDC @ =gUnk_080B2CD8 ldr r3, _08055FE0 @ =sub_080B197C subs r2, r0, r3 diff --git a/asm/sub_080AD380.s b/asm/sub_080AD380.s index db8f0890..56400499 100644 --- a/asm/sub_080AD380.s +++ b/asm/sub_080AD380.s @@ -30,7 +30,7 @@ _080AD3A2: ldr r0, _080AD3B8 @ =gUnk_02032EC0 movs r1, #0xed lsls r1, r1, #2 - bl sub_0801D630 + bl _DmaZero movs r0, #0 bl IntroSetTransition b _080AD3EA diff --git a/asm/wizzrobeIce.s b/asm/wizzrobeIce.s index 82fc0f89..46e0ab6a 100644 --- a/asm/wizzrobeIce.s +++ b/asm/wizzrobeIce.s @@ -383,7 +383,7 @@ sub_080300AC: @ 0x080300AC ldr r4, _080300C0 @ =gUnk_0300110C adds r0, r4, #0 movs r1, #0x44 - bl sub_0801D630 + bl _DmaZero adds r4, #0x42 movs r0, #0xff strh r0, [r4] @@ -406,7 +406,7 @@ sub_080300C4: @ 0x080300C4 strh r1, [r0] subs r0, #0x40 movs r1, #0x40 - bl sub_0801D630 + bl _DmaZero _080300E2: pop {pc} .align 2, 0 diff --git a/include/functions.h b/include/functions.h index c2cf2e88..e9460e9e 100644 --- a/include/functions.h +++ b/include/functions.h @@ -89,7 +89,7 @@ extern Entity *sub_0804A98C(Entity *, u32, u32); extern u32 sub_080544DC(u8); extern void sub_08077E54(Entity*); extern void sub_080042BA(Entity*); -extern void sub_0801D630(void*, u32); +extern void _DmaZero(void*, u32); extern void sub_08077F24(ItemBehavior*, u32); extern void sub_08079184(); extern void sub_08077F50(ItemBehavior *beh, u32 arg1); diff --git a/include/main.h b/include/main.h index d9c8719c..c1ef4b5b 100644 --- a/include/main.h +++ b/include/main.h @@ -24,7 +24,7 @@ extern void sub_0804FFE4(); extern s32 sub_0804FF84(s32); extern s32 sub_08056418(s32); extern void sub_080ADD30(s32); -extern s32 sub_0801D630(s32, u32, u32); +extern s32 _DmaZero(s32, u32, u32); extern s32 sub_08056010(s32); extern s32 sub_08016E78(s32); extern s32 ReadKeyInput(); diff --git a/linker.ld b/linker.ld index 58006a85..d68ed689 100644 --- a/linker.ld +++ b/linker.ld @@ -315,9 +315,9 @@ SECTIONS { asm/drawHealth.o(.text); asm/sub_0801C824.o(.text); asm/code_0801C85C.o(.text); - src/sub_0801D5EC.o(.text); + src/_dmaFill16.o(.text); src/_dmaFill32.o(.text); - asm/sub_0801D630.o(.text); + src/_dmaZero.o(.text); asm/sub_0801D66C.o(.text); src/input.o(.text); asm/code_0801D714.o(.text); diff --git a/src/sub_0801D5EC.c b/src/_dmaFill16.c similarity index 54% rename from src/sub_0801D5EC.c rename to src/_dmaFill16.c index a660e4f0..1befefc7 100644 --- a/src/sub_0801D5EC.c +++ b/src/_dmaFill16.c @@ -1,4 +1,4 @@ #include "global.h" -void sub_0801D5EC(u32 a1, u32 a2, u32 a3) { +void _DmaFill16(u32 a1, u32 a2, u32 a3) { DmaFill16(3, a1, a2, a3); } diff --git a/src/_dmaZero.c b/src/_dmaZero.c new file mode 100644 index 00000000..97bbba4c --- /dev/null +++ b/src/_dmaZero.c @@ -0,0 +1,24 @@ +#include "global.h" + +void _DmaFill32(u32, void*, u32); +void _DmaFill16(u32, void*, u32); + +void _DmaZero(u8 *src, u32 count) +{ + u32 zero = 0; + + switch (((u32)src | count) & 3) { + case 0: + _DmaFill32(0,src, count); + break; + case 2: + _DmaFill16(0, src, count); + break; + default: + do { + *src = zero; + src++; + count--; + } while (count != 0); + } +} \ No newline at end of file diff --git a/src/code_08077DF4.c b/src/code_08077DF4.c index 3897a273..0b849819 100644 --- a/src/code_08077DF4.c +++ b/src/code_08077DF4.c @@ -63,7 +63,7 @@ void sub_08077E78(void* arg0, u32 bits) not = ~not; gLinkState.field_0xa &= not; gLinkState.keepFacing &= not; - sub_0801D630(arg0, 0x1c); + _DmaZero(arg0, 0x1c); } u32 sub_08077EC8(Unk_struct* arg0) diff --git a/src/introSetTransition.c b/src/introSetTransition.c index 81ce484c..ff9e54c3 100644 --- a/src/introSetTransition.c +++ b/src/introSetTransition.c @@ -13,7 +13,7 @@ typedef struct { } TransitionStruct; extern u32 DoFade(u32, u32); -extern void sub_0801D630(u32*, u32, u32); +extern void _DmaZero(u32*, u32, u32); extern u32 gUnk_02000080; extern TransitionStruct gUnk_03001000; extern Menu gUnk_02032EC0; @@ -23,6 +23,6 @@ u32 IntroSetTransition(u8 transition, u32 param_2, u32 param_3) { gUnk_02032EC0.transitionType = transition; gUnk_03001000.functionIndex = 2; - sub_0801D630(&gUnk_02000080, 48, param_3); + _DmaZero(&gUnk_02000080, 48, param_3); return DoFade(7, 8); } diff --git a/src/mainLoop.c b/src/mainLoop.c index dcc0ebbf..4e07b882 100644 --- a/src/mainLoop.c +++ b/src/mainLoop.c @@ -30,7 +30,7 @@ extern void sub_0804FFE4(void); extern void sub_0804FF84(u32); extern void sub_08056418(void); extern void sub_080ADD30(void); -extern void sub_0801D630(void*, u32); +extern void _DmaZero(void*, u32); extern void sub_08056010(u32); extern void ReadKeyInput(); extern u32 sub_08055FF4(); @@ -68,7 +68,7 @@ void MainLoop(void) { sub_080ADD30(); gRand = 0x1234567; s = &gUnk_03001000; - sub_0801D630(s, 16); + _DmaZero(s, 16); sub_08056010(0); while (1) { ReadKeyInput(); diff --git a/src/sub_08050008.c b/src/sub_08050008.c index 7ed85c26..8e370727 100644 --- a/src/sub_08050008.c +++ b/src/sub_08050008.c @@ -2,12 +2,12 @@ extern u32 gUnk_020354C0; extern s32 gUnk_03000FD0; -extern void sub_0801D630(u32, u32, u32); +extern void _DmaZero(u32, u32, u32); void sub_08050008(u32 param_1, u32 param_2, u32 param_3) { s32* unk; - sub_0801D630((u32)&gUnk_020354C0, 128, param_3); + _DmaZero((u32)&gUnk_020354C0, 128, param_3); unk = &gUnk_03000FD0; *(unk + 1) = -1; diff --git a/src/textbox.c b/src/textbox.c index b8b82940..f426e392 100644 --- a/src/textbox.c +++ b/src/textbox.c @@ -3,7 +3,7 @@ #include "entity.h" #include "textbox.h" -void sub_0801D630(); +void _DmaZero(); void ShowTextbox(); void TextboxAtPosition(); @@ -62,7 +62,7 @@ void TextboxAtPosition(u32 index, u32 x, u32 y) { } void ShowTextbox(u32 index, u32 param_2, u32* dest) { - sub_0801D630(&gTextBox, 32, dest); + _DmaZero(&gTextBox, 32, dest); gTextBox.textIndex = index; gTextBox.textSpeed = 99; gTextBox.textWindowWidth = 26; @@ -75,10 +75,10 @@ void ShowTextbox(u32 index, u32 param_2, u32* dest) { void sub_08056418(void) { - sub_0801D630(&gTextBox, 32); - sub_0801D630(&gUnk_02022780, 168); - sub_0801D630(&gUnk_02036A40, 8); - sub_0801D630(&gUnk_02036A38, 8); - sub_0801D630(&gUnk_02000040, 4); + _DmaZero(&gTextBox, 32); + _DmaZero(&gUnk_02022780, 168); + _DmaZero(&gUnk_02036A40, 8); + _DmaZero(&gUnk_02036A38, 8); + _DmaZero(&gUnk_02000040, 4); return; } From ccb6ec4a9c3770531f57535de3f3ae4697437dbf Mon Sep 17 00:00:00 2001 From: theo3 Date: Thu, 16 Jul 2020 01:02:46 -0700 Subject: [PATCH 037/158] merge dma funcs --- linker.ld | 4 +--- src/_dmaFill16.c | 4 ---- src/_dmaFill32.c | 5 ----- src/_dmaZero.c | 24 ------------------------ src/dma.c | 33 +++++++++++++++++++++++++++++++++ 5 files changed, 34 insertions(+), 36 deletions(-) delete mode 100644 src/_dmaFill16.c delete mode 100644 src/_dmaFill32.c delete mode 100644 src/_dmaZero.c create mode 100644 src/dma.c diff --git a/linker.ld b/linker.ld index d68ed689..ea1c6b2f 100644 --- a/linker.ld +++ b/linker.ld @@ -315,9 +315,7 @@ SECTIONS { asm/drawHealth.o(.text); asm/sub_0801C824.o(.text); asm/code_0801C85C.o(.text); - src/_dmaFill16.o(.text); - src/_dmaFill32.o(.text); - src/_dmaZero.o(.text); + src/dma.o(.text); asm/sub_0801D66C.o(.text); src/input.o(.text); asm/code_0801D714.o(.text); diff --git a/src/_dmaFill16.c b/src/_dmaFill16.c deleted file mode 100644 index 1befefc7..00000000 --- a/src/_dmaFill16.c +++ /dev/null @@ -1,4 +0,0 @@ -#include "global.h" -void _DmaFill16(u32 a1, u32 a2, u32 a3) { - DmaFill16(3, a1, a2, a3); -} diff --git a/src/_dmaFill32.c b/src/_dmaFill32.c deleted file mode 100644 index 5426ba31..00000000 --- a/src/_dmaFill32.c +++ /dev/null @@ -1,5 +0,0 @@ -#include "global.h" - -void _DmaFill32(u32 a1, u32 a2, u32 a3) { - DmaFill32(3, a1, a2, a3); -} diff --git a/src/_dmaZero.c b/src/_dmaZero.c deleted file mode 100644 index 97bbba4c..00000000 --- a/src/_dmaZero.c +++ /dev/null @@ -1,24 +0,0 @@ -#include "global.h" - -void _DmaFill32(u32, void*, u32); -void _DmaFill16(u32, void*, u32); - -void _DmaZero(u8 *src, u32 count) -{ - u32 zero = 0; - - switch (((u32)src | count) & 3) { - case 0: - _DmaFill32(0,src, count); - break; - case 2: - _DmaFill16(0, src, count); - break; - default: - do { - *src = zero; - src++; - count--; - } while (count != 0); - } -} \ No newline at end of file diff --git a/src/dma.c b/src/dma.c new file mode 100644 index 00000000..4f4f1dcb --- /dev/null +++ b/src/dma.c @@ -0,0 +1,33 @@ +#include "global.h" +#include "entity.h" + +void _DmaFill32(u32, u8*, u32); +void _DmaFill16(u32, u8*, u32); + +void _DmaFill16(u32 value, u8* dest, u32 size) { + DmaFill16(3, value, dest, size); +} + +void _DmaFill32(u32 value, u8* dest, u32 size) { + DmaFill32(3, value, dest, size); +} + +void _DmaZero(u8 *src, u32 size) +{ + u32 zero = 0; + + switch (((u32)src | size) & 3) { + case 0: + _DmaFill32(0,src, size); + break; + case 2: + _DmaFill16(0, src, size); + break; + default: + do { + *src = zero; + src++; + size--; + } while (size != 0); + } +} \ No newline at end of file From 18069fcd80d343f8f2a89c367f46f5b2f43f0b5e Mon Sep 17 00:00:00 2001 From: theo3 Date: Thu, 16 Jul 2020 02:57:14 -0700 Subject: [PATCH 038/158] menu def --- asm/bigGoron.s | 2 +- asm/code_08019444.s | 8 +- asm/code_08050038.s | 254 +++---- asm/code_080526F8.s | 174 ++--- asm/code_0805436C.s | 1075 +++++----------------------- asm/code_0805E744.s | 28 +- asm/code_08070698.s | 2 +- asm/code_080732D0.s | 4 +- asm/code_08076C80.s | 2 +- asm/code_0807CC3C.s | 20 +- asm/code_080A3480.s | 62 +- asm/code_080A3BD0.s | 188 ++--- asm/code_080A5574.s | 266 +++---- asm/drawKinstoneMenu.s | 4 +- asm/non_matching/code_0805457C.inc | 367 ++++++++++ asm/non_matching/putItemOnSlot.s | 120 ++++ asm/non_matching/sub_08054524.inc | 31 + asm/object45.s | 2 +- asm/object48.s | 32 +- asm/object4B.s | 4 +- asm/objectA2.s | 8 +- asm/objectB4.s | 8 +- asm/sub_0801D630.s | 42 -- asm/sub_08055E24.s | 4 +- asm/sub_080AD3F4.s | 4 +- asm/sub_080AD474.s | 10 +- asm/sub_080AD670.s | 4 +- asm/sub_080AD6Ac.s | 4 +- asm/sub_080AD76C.s | 8 +- asm/sub_080AD84C.s | 4 +- asm/sub_080AD89C.s | 4 +- asm/waterfallOpening.s | 4 +- include/menu.h | 13 + linker.ld | 3 +- src/code_0805436C.c | 188 +++++ src/introSetTransition.c | 5 +- src/sub_08055E08.c | 6 +- 37 files changed, 1470 insertions(+), 1494 deletions(-) create mode 100644 asm/non_matching/code_0805457C.inc create mode 100644 asm/non_matching/putItemOnSlot.s create mode 100644 asm/non_matching/sub_08054524.inc delete mode 100644 asm/sub_0801D630.s create mode 100644 src/code_0805436C.c diff --git a/asm/bigGoron.s b/asm/bigGoron.s index 0d3de49b..e170d36e 100644 --- a/asm/bigGoron.s +++ b/asm/bigGoron.s @@ -771,7 +771,7 @@ sub_0806D5D4: @ 0x0806D5D4 push {lr} bl sub_08053500 movs r0, #0xd - bl sub_0805436C + bl IsItemEquipped adds r1, r0, #0 cmp r1, #2 beq _0806D5F0 diff --git a/asm/code_08019444.s b/asm/code_08019444.s index b2456684..08153c61 100644 --- a/asm/code_08019444.s +++ b/asm/code_08019444.s @@ -295,7 +295,7 @@ _08019678: .4byte gUnk_080B4400 sub_0801967C: @ 0x0801967C push {lr} ldr r1, _08019690 @ =gUnk_080B4458 - ldr r0, _08019694 @ =gUnk_02000080 + ldr r0, _08019694 @ =gMenu ldrb r0, [r0, #6] lsls r0, r0, #2 adds r0, r0, r1 @@ -304,7 +304,7 @@ sub_0801967C: @ 0x0801967C pop {pc} .align 2, 0 _08019690: .4byte gUnk_080B4458 -_08019694: .4byte gUnk_02000080 +_08019694: .4byte gMenu thumb_func_start sub_08019698 sub_08019698: @ 0x08019698 @@ -4054,7 +4054,7 @@ sub_0801B2CC: @ 0x0801B2CC bl sub_08078930 _0801B2DE: movs r0, #8 - bl sub_0805436C + bl IsItemEquipped cmp r0, #1 beq _0801B2F6 cmp r0, #1 @@ -4765,7 +4765,7 @@ sub_0801B804: @ 0x0801B804 push {r4, r5, lr} adds r5, r0, #0 movs r0, #0xc - bl sub_0805436C + bl IsItemEquipped cmp r0, #1 beq _0801B820 cmp r0, #1 diff --git a/asm/code_08050038.s b/asm/code_08050038.s index e9e1723f..f92dcf2d 100644 --- a/asm/code_08050038.s +++ b/asm/code_08050038.s @@ -581,7 +581,7 @@ sub_08050450: @ 0x08050450 strh r0, [r1, #0x18] strh r0, [r1, #0x22] strh r0, [r1, #0x24] - ldr r0, _080504E8 @ =gUnk_02000080 + ldr r0, _080504E8 @ =gMenu movs r1, #0x30 bl _DmaZero _0805048A: @@ -619,7 +619,7 @@ _080504D8: .4byte gUnk_080FC8A4 _080504DC: .4byte gUnk_03001000 _080504E0: .4byte gUnk_02032EC0 _080504E4: .4byte gScreen -_080504E8: .4byte gUnk_02000080 +_080504E8: .4byte gMenu _080504EC: .4byte gUnk_080FC8B0 _080504F0: .4byte gUnk_02019EE0 @@ -1007,7 +1007,7 @@ _0805081C: .4byte gUnk_0200AF00 sub_08050820: @ 0x08050820 push {lr} ldr r1, _0805083C @ =gUnk_080FC8FC - ldr r0, _08050840 @ =gUnk_02000080 + ldr r0, _08050840 @ =gMenu ldrb r0, [r0, #5] lsls r0, r0, #2 adds r0, r0, r1 @@ -1019,7 +1019,7 @@ sub_08050820: @ 0x08050820 pop {pc} .align 2, 0 _0805083C: .4byte gUnk_080FC8FC -_08050840: .4byte gUnk_02000080 +_08050840: .4byte gMenu _08050844: .4byte gUnk_02019EE0 thumb_func_start sub_08050848 @@ -1043,7 +1043,7 @@ _08050868: .4byte gUnk_02019EE0 sub_0805086C: @ 0x0805086C push {lr} ldr r1, _08050880 @ =gUnk_080FC908 - ldr r0, _08050884 @ =gUnk_02000080 + ldr r0, _08050884 @ =gMenu ldrb r0, [r0, #6] lsls r0, r0, #2 adds r0, r0, r1 @@ -1052,7 +1052,7 @@ sub_0805086C: @ 0x0805086C pop {pc} .align 2, 0 _08050880: .4byte gUnk_080FC908 -_08050884: .4byte gUnk_02000080 +_08050884: .4byte gMenu thumb_func_start sub_08050888 sub_08050888: @ 0x08050888 @@ -1079,7 +1079,7 @@ sub_08050888: @ 0x08050888 adds r1, #1 movs r0, #0 bl sub_08050318 - ldr r1, _080508CC @ =gUnk_02000080 + ldr r1, _080508CC @ =gMenu movs r0, #0x1e strh r0, [r1, #8] movs r0, #1 @@ -1087,24 +1087,24 @@ sub_08050888: @ 0x08050888 .align 2, 0 _080508C4: .4byte gUnk_03000FD0 _080508C8: .4byte gUnk_02019EE0 -_080508CC: .4byte gUnk_02000080 +_080508CC: .4byte gMenu _080508D0: adds r0, r1, #0 bl sub_0805194C _080508D6: - ldr r1, _080508E0 @ =gUnk_02000080 + ldr r1, _080508E0 @ =gMenu movs r0, #2 _080508DA: strb r0, [r1, #6] _080508DC: pop {r4, pc} .align 2, 0 -_080508E0: .4byte gUnk_02000080 +_080508E0: .4byte gMenu thumb_func_start sub_080508E4 sub_080508E4: @ 0x080508E4 push {lr} - ldr r2, _08050900 @ =gUnk_02000080 + ldr r2, _08050900 @ =gMenu ldrh r0, [r2, #8] cmp r0, #0 bne _08050908 @@ -1118,7 +1118,7 @@ sub_080508E4: @ 0x080508E4 strb r0, [r2, #6] b _0805090C .align 2, 0 -_08050900: .4byte gUnk_02000080 +_08050900: .4byte gMenu _08050904: .4byte gUnk_03000FF0 _08050908: subs r0, #1 @@ -1145,13 +1145,13 @@ sub_08050910: @ 0x08050910 .align 2, 0 _08050930: .4byte gUnk_02019EE0 _08050934: - ldr r1, _0805093C @ =gUnk_02000080 + ldr r1, _0805093C @ =gMenu movs r0, #0 strb r0, [r1, #6] _0805093A: pop {pc} .align 2, 0 -_0805093C: .4byte gUnk_02000080 +_0805093C: .4byte gMenu thumb_func_start sub_08050940 sub_08050940: @ 0x08050940 @@ -1539,7 +1539,7 @@ _08050C28: .4byte 0xFFFFF24D sub_08050C2C: @ 0x08050C2C push {lr} ldr r1, _08050C48 @ =gUnk_080FC93C - ldr r0, _08050C4C @ =gUnk_02000080 + ldr r0, _08050C4C @ =gMenu ldrb r0, [r0, #5] lsls r0, r0, #2 adds r0, r0, r1 @@ -1551,7 +1551,7 @@ sub_08050C2C: @ 0x08050C2C pop {pc} .align 2, 0 _08050C48: .4byte gUnk_080FC93C -_08050C4C: .4byte gUnk_02000080 +_08050C4C: .4byte gMenu _08050C50: .4byte gUnk_02019EE0 thumb_func_start sub_08050C54 @@ -1563,7 +1563,7 @@ sub_08050C54: @ 0x08050C54 beq _08050C60 b _08050D60 _08050C60: - ldr r0, _08050C7C @ =gUnk_02000080 + ldr r0, _08050C7C @ =gMenu ldrb r4, [r0, #1] ldr r0, _08050C80 @ =gUnk_03000FF0 ldrh r0, [r0, #2] @@ -1577,7 +1577,7 @@ _08050C60: mov pc, r0 .align 2, 0 _08050C78: .4byte gUnk_02019EE0 -_08050C7C: .4byte gUnk_02000080 +_08050C7C: .4byte gMenu _08050C80: .4byte gUnk_03000FF0 _08050C84: .4byte _08050C88 _08050C88: @ jump table @@ -1619,7 +1619,7 @@ _08050D08: ldr r0, _08050D28 @ =0x80080000 bl PlaySFX _08050D12: - ldr r1, _08050D2C @ =gUnk_02000080 + ldr r1, _08050D2C @ =gMenu movs r0, #0xf strh r0, [r1, #8] movs r0, #1 @@ -1629,7 +1629,7 @@ _08050D12: b _08050D44 .align 2, 0 _08050D28: .4byte 0x80080000 -_08050D2C: .4byte gUnk_02000080 +_08050D2C: .4byte gMenu _08050D30: movs r0, #0x6c bl PlaySFX @@ -1650,7 +1650,7 @@ _08050D4A: ble _08050D50 movs r4, #2 _08050D50: - ldr r1, _08050D64 @ =gUnk_02000080 + ldr r1, _08050D64 @ =gMenu ldrb r0, [r1, #1] cmp r0, r4 beq _08050D60 @@ -1660,12 +1660,12 @@ _08050D50: _08050D60: pop {r4, pc} .align 2, 0 -_08050D64: .4byte gUnk_02000080 +_08050D64: .4byte gMenu thumb_func_start sub_08050D68 sub_08050D68: @ 0x08050D68 push {lr} - ldr r1, _08050D84 @ =gUnk_02000080 + ldr r1, _08050D84 @ =gMenu ldrh r0, [r1, #8] cmp r0, #0 bne _08050D94 @@ -1680,7 +1680,7 @@ _08050D80: movs r0, #7 b _08050D8E .align 2, 0 -_08050D84: .4byte gUnk_02000080 +_08050D84: .4byte gMenu _08050D88: movs r0, #5 b _08050D8E @@ -1700,7 +1700,7 @@ _08050D98: sub_08050D9C: @ 0x08050D9C push {lr} ldr r1, _08050DB0 @ =gUnk_080FC944 - ldr r0, _08050DB4 @ =gUnk_02000080 + ldr r0, _08050DB4 @ =gMenu ldrb r0, [r0, #5] lsls r0, r0, #2 adds r0, r0, r1 @@ -1709,7 +1709,7 @@ sub_08050D9C: @ 0x08050D9C pop {pc} .align 2, 0 _08050DB0: .4byte gUnk_080FC944 -_08050DB4: .4byte gUnk_02000080 +_08050DB4: .4byte gMenu thumb_func_start sub_08050DB8 sub_08050DB8: @ 0x08050DB8 @@ -1720,7 +1720,7 @@ sub_08050DB8: @ 0x08050DB8 bl _DmaZero movs r0, #0xc bl sub_080503A8 - ldr r1, _08050DE0 @ =gUnk_02000080 + ldr r1, _08050DE0 @ =gMenu movs r0, #0x80 lsls r0, r0, #0x12 ldrb r0, [r0, #7] @@ -1730,7 +1730,7 @@ sub_08050DB8: @ 0x08050DB8 pop {pc} .align 2, 0 _08050DDC: .4byte gUnk_020344B0 -_08050DE0: .4byte gUnk_02000080 +_08050DE0: .4byte gMenu thumb_func_start sub_08050DE4 sub_08050DE4: @ 0x08050DE4 @@ -1771,7 +1771,7 @@ _08050E22: _08050E26: movs r0, #0x6a bl PlaySFX - ldr r0, _08050E44 @ =gUnk_02000080 + ldr r0, _08050E44 @ =gMenu ldrb r0, [r0, #4] cmp r0, r4 beq _08050E48 @@ -1782,13 +1782,13 @@ _08050E26: bl sub_08050318 b _08050E62 .align 2, 0 -_08050E44: .4byte gUnk_02000080 +_08050E44: .4byte gMenu _08050E48: movs r0, #0 bl sub_080503BC b _08050E62 _08050E50: - ldr r0, _08050E84 @ =gUnk_02000080 + ldr r0, _08050E84 @ =gMenu ldrb r4, [r0, #4] strb r4, [r1, #7] movs r0, #0x6c @@ -1815,7 +1815,7 @@ _08050E6E: _08050E80: pop {r4, pc} .align 2, 0 -_08050E84: .4byte gUnk_02000080 +_08050E84: .4byte gMenu thumb_func_start sub_08050E88 sub_08050E88: @ 0x08050E88 @@ -1833,7 +1833,7 @@ _08050E9A: sub_08050E9C: @ 0x08050E9C push {lr} ldr r1, _08050EB0 @ =gUnk_080FC950 - ldr r0, _08050EB4 @ =gUnk_02000080 + ldr r0, _08050EB4 @ =gMenu ldrb r0, [r0, #5] lsls r0, r0, #2 adds r0, r0, r1 @@ -1842,7 +1842,7 @@ sub_08050E9C: @ 0x08050E9C pop {pc} .align 2, 0 _08050EB0: .4byte gUnk_080FC950 -_08050EB4: .4byte gUnk_02000080 +_08050EB4: .4byte gMenu thumb_func_start sub_08050EB8 sub_08050EB8: @ 0x08050EB8 @@ -1861,7 +1861,7 @@ sub_08050EB8: @ 0x08050EB8 strb r0, [r2, #4] ldrb r0, [r1, #3] strb r0, [r2, #5] - ldr r1, _08050EF0 @ =gUnk_02000080 + ldr r1, _08050EF0 @ =gMenu strb r3, [r1, #1] movs r0, #0xff strh r0, [r1, #8] @@ -1871,7 +1871,7 @@ sub_08050EB8: @ 0x08050EB8 .align 2, 0 _08050EE8: .4byte gUnk_02019EE0 _08050EEC: .4byte 0x000004B4 -_08050EF0: .4byte gUnk_02000080 +_08050EF0: .4byte gMenu thumb_func_start sub_08050EF4 sub_08050EF4: @ 0x08050EF4 @@ -1889,7 +1889,7 @@ sub_08050EF4: @ 0x08050EF4 adds r0, r6, #0 adds r0, #0xc adds r1, r1, r0 - ldr r0, _08050F48 @ =gUnk_02000080 + ldr r0, _08050F48 @ =gMenu ldrb r3, [r0, #1] adds r4, r1, #3 mov ip, r0 @@ -1916,7 +1916,7 @@ _08050F1E: .align 2, 0 _08050F40: .4byte gUnk_02019EE0 _08050F44: .4byte 0x000004B4 -_08050F48: .4byte gUnk_02000080 +_08050F48: .4byte gMenu _08050F4C: .4byte gUnk_03000FF0 _08050F50: cmp r0, #8 @@ -2026,7 +2026,7 @@ sub_08050FFC: @ 0x08050FFC beq _0805102A b _08051030 _08051014: - ldr r1, _08051034 @ =gUnk_02000080 + ldr r1, _08051034 @ =gMenu movs r0, #0x1e strh r0, [r1, #8] ldr r0, _08051038 @ =gUnk_02019EE0 @@ -2041,13 +2041,13 @@ _0805102A: _08051030: pop {pc} .align 2, 0 -_08051034: .4byte gUnk_02000080 +_08051034: .4byte gMenu _08051038: .4byte gUnk_02019EE0 thumb_func_start sub_0805103C sub_0805103C: @ 0x0805103C push {lr} - ldr r0, _08051050 @ =gUnk_02000080 + ldr r0, _08051050 @ =gMenu ldrb r1, [r0, #8] adds r2, r0, #0 cmp r1, #0 @@ -2056,7 +2056,7 @@ sub_0805103C: @ 0x0805103C beq _0805106C b _08051060 .align 2, 0 -_08051050: .4byte gUnk_02000080 +_08051050: .4byte gMenu _08051054: ldr r0, _08051068 @ =gUnk_03000FF0 ldrh r1, [r0, #2] @@ -2081,7 +2081,7 @@ _08051072: sub_08051074: @ 0x08051074 push {lr} ldr r1, _08051088 @ =gUnk_080FC960 - ldr r0, _0805108C @ =gUnk_02000080 + ldr r0, _0805108C @ =gMenu ldrb r0, [r0, #5] lsls r0, r0, #2 adds r0, r0, r1 @@ -2090,7 +2090,7 @@ sub_08051074: @ 0x08051074 pop {pc} .align 2, 0 _08051088: .4byte gUnk_080FC960 -_0805108C: .4byte gUnk_02000080 +_0805108C: .4byte gMenu thumb_func_start sub_08051090 sub_08051090: @ 0x08051090 @@ -2182,7 +2182,7 @@ _08051128: _0805112E: movs r6, #1 _08051130: - ldr r4, _0805117C @ =gUnk_02000080 + ldr r4, _0805117C @ =gMenu ldrb r0, [r4, #0x11] adds r0, r0, r5 adds r0, #6 @@ -2220,7 +2220,7 @@ _08051172: strb r0, [r4, #0x12] b _0805123A .align 2, 0 -_0805117C: .4byte gUnk_02000080 +_0805117C: .4byte gMenu _08051180: .4byte gUnk_080FC980 _08051184: movs r0, #0x80 @@ -2250,14 +2250,14 @@ _080511A8: .align 2, 0 _080511B4: .4byte gUnk_080FC9A0 _080511B8: - ldr r0, _080511C4 @ =gUnk_02000080 + ldr r0, _080511C4 @ =gMenu ldrb r0, [r0, #0x13] cmp r0, #0 beq _080511EC movs r7, #5 b _0805123A .align 2, 0 -_080511C4: .4byte gUnk_02000080 +_080511C4: .4byte gMenu _080511C8: movs r0, #0x80 lsls r0, r0, #0x12 @@ -2267,7 +2267,7 @@ _080511C8: bne _080511D6 movs r1, #4 _080511D6: - ldr r2, _080511E8 @ =gUnk_02000080 + ldr r2, _080511E8 @ =gMenu ldrb r0, [r2, #0x11] cmp r0, #5 bne _080511EC @@ -2277,12 +2277,12 @@ _080511D6: movs r7, #8 b _0805123A .align 2, 0 -_080511E8: .4byte gUnk_02000080 +_080511E8: .4byte gMenu _080511EC: bl sub_08051358 b _0805123A _080511F2: - ldr r1, _08051210 @ =gUnk_02000080 + ldr r1, _08051210 @ =gMenu ldrb r0, [r1, #0x11] cmp r0, #5 bne _08051218 @@ -2299,7 +2299,7 @@ _0805120A: ldrb r7, [r0] b _0805123A .align 2, 0 -_08051210: .4byte gUnk_02000080 +_08051210: .4byte gMenu _08051214: .4byte gUnk_080FC970 _08051218: movs r7, #6 @@ -2322,7 +2322,7 @@ _0805122C: bne _0805123A movs r7, #7 _0805123A: - ldr r0, _08051250 @ =gUnk_02000080 + ldr r0, _08051250 @ =gMenu ldrb r4, [r0, #1] subs r0, r7, #1 cmp r0, #7 @@ -2333,7 +2333,7 @@ _0805123A: ldr r0, [r0] mov pc, r0 .align 2, 0 -_08051250: .4byte gUnk_02000080 +_08051250: .4byte gMenu _08051254: .4byte _08051258 _08051258: @ jump table .4byte _08051278 @ case 0 @@ -2357,7 +2357,7 @@ _08051284: adds r4, #1 b _08051322 _08051288: - ldr r3, _080512B0 @ =gUnk_02000080 + ldr r3, _080512B0 @ =gMenu ldrb r0, [r3, #0x13] cmp r0, #0 beq _08051322 @@ -2377,7 +2377,7 @@ _08051288: bl sub_08051574 b _08051322 .align 2, 0 -_080512B0: .4byte gUnk_02000080 +_080512B0: .4byte gMenu _080512B4: .4byte gUnk_02002A40 _080512B8: movs r0, #0 @@ -2385,7 +2385,7 @@ _080512B8: b _08051322 _080512C0: ldr r2, _080512E4 @ =gUnk_02001A40 - ldr r0, _080512E8 @ =gUnk_02000080 + ldr r0, _080512E8 @ =gMenu ldrb r1, [r0, #0x10] lsls r1, r1, #1 ldrb r0, [r0, #0x11] @@ -2402,7 +2402,7 @@ _080512C0: b _08051322 .align 2, 0 _080512E4: .4byte gUnk_02001A40 -_080512E8: .4byte gUnk_02000080 +_080512E8: .4byte gMenu _080512EC: movs r3, #5 ldr r0, _08051350 @ =gUnk_02002A40 @@ -2445,7 +2445,7 @@ _08051330: adds r0, r4, r1 bl __modsi3 adds r4, r0, #0 - ldr r1, _08051354 @ =gUnk_02000080 + ldr r1, _08051354 @ =gMenu ldrb r0, [r1, #1] cmp r0, r4 beq _0805134C @@ -2457,12 +2457,12 @@ _0805134C: pop {r4, r5, r6, r7, pc} .align 2, 0 _08051350: .4byte gUnk_02002A40 -_08051354: .4byte gUnk_02000080 +_08051354: .4byte gMenu thumb_func_start sub_08051358 sub_08051358: @ 0x08051358 push {lr} - ldr r2, _08051384 @ =gUnk_02000080 + ldr r2, _08051384 @ =gMenu movs r0, #0x80 lsls r0, r0, #0x12 ldrb r0, [r0, #7] @@ -2485,14 +2485,14 @@ _0805136A: _08051382: pop {pc} .align 2, 0 -_08051384: .4byte gUnk_02000080 +_08051384: .4byte gMenu _08051388: .4byte 0x0000050B thumb_func_start sub_0805138C sub_0805138C: @ 0x0805138C push {lr} ldr r1, _080513A0 @ =gUnk_080FC9B0 - ldr r0, _080513A4 @ =gUnk_02000080 + ldr r0, _080513A4 @ =gMenu ldrb r0, [r0, #6] lsls r0, r0, #2 adds r0, r0, r1 @@ -2501,7 +2501,7 @@ sub_0805138C: @ 0x0805138C pop {pc} .align 2, 0 _080513A0: .4byte gUnk_080FC9B0 -_080513A4: .4byte gUnk_02000080 +_080513A4: .4byte gMenu thumb_func_start sub_080513A8 sub_080513A8: @ 0x080513A8 @@ -2509,12 +2509,12 @@ sub_080513A8: @ 0x080513A8 movs r0, #5 movs r1, #0 bl sub_08050318 - ldr r1, _080513BC @ =gUnk_02000080 + ldr r1, _080513BC @ =gMenu movs r0, #1 strb r0, [r1, #6] pop {pc} .align 2, 0 -_080513BC: .4byte gUnk_02000080 +_080513BC: .4byte gMenu thumb_func_start sub_080513C0 sub_080513C0: @ 0x080513C0 @@ -2552,7 +2552,7 @@ _080513F8: movs r0, #6 movs r1, #0 bl sub_08050318 - ldr r1, _08051418 @ =gUnk_02000080 + ldr r1, _08051418 @ =gMenu movs r0, #0x1e strh r0, [r1, #8] movs r0, #2 @@ -2561,12 +2561,12 @@ _08051412: pop {pc} .align 2, 0 _08051414: .4byte gUnk_02019EE0 -_08051418: .4byte gUnk_02000080 +_08051418: .4byte gMenu thumb_func_start sub_0805141C sub_0805141C: @ 0x0805141C push {lr} - ldr r1, _0805143C @ =gUnk_02000080 + ldr r1, _0805143C @ =gMenu ldrh r0, [r1, #8] cmp r0, #0 bne _08051444 @@ -2580,7 +2580,7 @@ sub_0805141C: @ 0x0805141C bl sub_080A7114 b _08051448 .align 2, 0 -_0805143C: .4byte gUnk_02000080 +_0805143C: .4byte gMenu _08051440: .4byte gUnk_03000FF0 _08051444: subs r0, #1 @@ -2600,7 +2600,7 @@ sub_0805144C: @ 0x0805144C thumb_func_start sub_08051458 sub_08051458: @ 0x08051458 push {lr} - ldr r0, _08051474 @ =gUnk_02000080 + ldr r0, _08051474 @ =gMenu ldrb r0, [r0, #1] adds r0, #9 bl sub_080503A8 @@ -2611,7 +2611,7 @@ sub_08051458: @ 0x08051458 bl sub_0801D66C pop {pc} .align 2, 0 -_08051474: .4byte gUnk_02000080 +_08051474: .4byte gMenu _08051478: .4byte gUnk_02001B40 _0805147C: .4byte gUnk_02022030 @@ -2620,7 +2620,7 @@ sub_08051480: @ 0x08051480 push {r4, lr} adds r4, r0, #0 bl sub_080514BC - ldr r2, _080514B4 @ =gUnk_02000080 + ldr r2, _080514B4 @ =gMenu ldrb r1, [r2, #0x13] cmp r0, #0 beq _080514B0 @@ -2644,7 +2644,7 @@ _0805149E: _080514B0: pop {r4, pc} .align 2, 0 -_080514B4: .4byte gUnk_02000080 +_080514B4: .4byte gMenu _080514B8: .4byte gUnk_02002A40 thumb_func_start sub_080514BC @@ -2666,7 +2666,7 @@ _080514D6: movs r0, #1 b _08051572 _080514DA: - ldr r0, _08051500 @ =gUnk_02000080 + ldr r0, _08051500 @ =gMenu ldrb r1, [r0, #0x13] cmp r1, #0 beq _08051570 @@ -2686,7 +2686,7 @@ _080514DA: beq _0805150E b _0805153C .align 2, 0 -_08051500: .4byte gUnk_02000080 +_08051500: .4byte gMenu _08051504: .4byte gUnk_02002A40 _08051508: cmp r2, #0xf @@ -2780,7 +2780,7 @@ _0805159C: .4byte 0x000004B4 sub_080515A0: @ 0x080515A0 push {lr} ldr r1, _080515BC @ =gUnk_080FC9BC - ldr r0, _080515C0 @ =gUnk_02000080 + ldr r0, _080515C0 @ =gMenu ldrb r0, [r0, #5] lsls r0, r0, #2 adds r0, r0, r1 @@ -2792,7 +2792,7 @@ sub_080515A0: @ 0x080515A0 pop {pc} .align 2, 0 _080515BC: .4byte gUnk_080FC9BC -_080515C0: .4byte gUnk_02000080 +_080515C0: .4byte gMenu _080515C4: .4byte gUnk_02019EE0 thumb_func_start sub_080515C8 @@ -2812,7 +2812,7 @@ sub_080515D4: @ 0x080515D4 beq _080515E0 b _080516D8 _080515E0: - ldr r1, _08051600 @ =gUnk_02000080 + ldr r1, _08051600 @ =gMenu movs r0, #4 strh r0, [r1, #8] ldrb r4, [r1, #1] @@ -2828,7 +2828,7 @@ _080515E0: mov pc, r0 .align 2, 0 _080515FC: .4byte gUnk_02019EE0 -_08051600: .4byte gUnk_02000080 +_08051600: .4byte gMenu _08051604: .4byte gUnk_03000FF0 _08051608: .4byte _0805160C _0805160C: @ jump table @@ -2865,7 +2865,7 @@ _0805160C: @ jump table .4byte _080516C8 @ case 30 .4byte _080516C2 @ case 31 _0805168C: - ldr r1, _080516B0 @ =gUnk_02000080 + ldr r1, _080516B0 @ =gMenu movs r0, #0 strb r0, [r1, #1] movs r4, #0 @@ -2881,7 +2881,7 @@ _08051694: bl PlaySFX b _080516C8 .align 2, 0 -_080516B0: .4byte gUnk_02000080 +_080516B0: .4byte gMenu _080516B4: movs r0, #0 bl sub_080503BC @@ -2894,7 +2894,7 @@ _080516C2: _080516C6: movs r4, #1 _080516C8: - ldr r1, _080516DC @ =gUnk_02000080 + ldr r1, _080516DC @ =gMenu ldrb r0, [r1, #1] cmp r0, r4 beq _080516D8 @@ -2904,7 +2904,7 @@ _080516C8: _080516D8: pop {r4, pc} .align 2, 0 -_080516DC: .4byte gUnk_02000080 +_080516DC: .4byte gMenu thumb_func_start sub_080516E0 sub_080516E0: @ 0x080516E0 @@ -2918,7 +2918,7 @@ sub_080516E0: @ 0x080516E0 bl sub_0805194C ldrb r0, [r4, #6] bl sub_08050AFC - ldr r1, _0805170C @ =gUnk_02000080 + ldr r1, _0805170C @ =gMenu movs r0, #2 strh r0, [r1, #8] movs r0, #0 @@ -2927,13 +2927,13 @@ _08051706: pop {r4, pc} .align 2, 0 _08051708: .4byte gUnk_02019EE0 -_0805170C: .4byte gUnk_02000080 +_0805170C: .4byte gMenu thumb_func_start sub_08051710 sub_08051710: @ 0x08051710 push {lr} ldr r1, _0805172C @ =gUnk_080FC9C8 - ldr r0, _08051730 @ =gUnk_02000080 + ldr r0, _08051730 @ =gMenu ldrb r0, [r0, #5] lsls r0, r0, #2 adds r0, r0, r1 @@ -2945,7 +2945,7 @@ sub_08051710: @ 0x08051710 pop {pc} .align 2, 0 _0805172C: .4byte gUnk_080FC9C8 -_08051730: .4byte gUnk_02000080 +_08051730: .4byte gMenu _08051734: .4byte gUnk_02019EE0 thumb_func_start sub_08051738 @@ -2989,7 +2989,7 @@ _08051774: bls _0805174C cmp r4, #0 bne _0805179C - ldr r1, _08051798 @ =gUnk_02000080 + ldr r1, _08051798 @ =gMenu movs r0, #0x3c strh r0, [r1, #8] movs r0, #1 @@ -2999,20 +2999,20 @@ _08051774: bl sub_080A7114 b _080517A2 .align 2, 0 -_08051798: .4byte gUnk_02000080 +_08051798: .4byte gMenu _0805179C: movs r0, #1 bl sub_080A7114 _080517A2: adds r4, #1 - ldr r0, _080517B0 @ =gUnk_02000080 + ldr r0, _080517B0 @ =gMenu strb r4, [r0, #0x16] movs r1, #4 strb r1, [r0, #0x13] strb r4, [r0, #0x14] pop {r4, r5, r6, r7, pc} .align 2, 0 -_080517B0: .4byte gUnk_02000080 +_080517B0: .4byte gMenu thumb_func_start sub_080517B4 sub_080517B4: @ 0x080517B4 @@ -3160,7 +3160,7 @@ _080518C4: movs r0, #3 movs r1, #0 bl sub_08050318 - ldr r1, _080518E0 @ =gUnk_02000080 + ldr r1, _080518E0 @ =gMenu movs r0, #0x1e strh r0, [r1, #8] movs r0, #3 @@ -3168,12 +3168,12 @@ _080518C4: _080518DE: pop {r4, pc} .align 2, 0 -_080518E0: .4byte gUnk_02000080 +_080518E0: .4byte gMenu thumb_func_start sub_080518E4 sub_080518E4: @ 0x080518E4 push {lr} - ldr r1, _08051904 @ =gUnk_02000080 + ldr r1, _08051904 @ =gMenu ldrh r0, [r1, #8] cmp r0, #0 bne _0805190C @@ -3187,7 +3187,7 @@ sub_080518E4: @ 0x080518E4 bl sub_080503BC b _08051910 .align 2, 0 -_08051904: .4byte gUnk_02000080 +_08051904: .4byte gMenu _08051908: .4byte gUnk_03000FF0 _0805190C: subs r0, #1 @@ -3199,7 +3199,7 @@ _08051910: thumb_func_start sub_08051914 sub_08051914: @ 0x08051914 push {lr} - ldr r1, _08051940 @ =gUnk_02000080 + ldr r1, _08051940 @ =gMenu ldrb r0, [r1, #5] cmp r0, #0 bne _0805193E @@ -3221,7 +3221,7 @@ sub_08051914: @ 0x08051914 _0805193E: pop {pc} .align 2, 0 -_08051940: .4byte gUnk_02000080 +_08051940: .4byte gMenu _08051944: .4byte gUnk_02002A40 _08051948: .4byte gUnk_03001000 @@ -3775,7 +3775,7 @@ _08051E64: .4byte gUnk_02002A40 sub_08051E68: @ 0x08051E68 push {lr} ldr r1, _08051E7C @ =gUnk_080FCA08 - ldr r0, _08051E80 @ =gUnk_02000080 + ldr r0, _08051E80 @ =gMenu ldrb r0, [r0, #5] lsls r0, r0, #2 adds r0, r0, r1 @@ -3784,7 +3784,7 @@ sub_08051E68: @ 0x08051E68 pop {pc} .align 2, 0 _08051E7C: .4byte gUnk_080FCA08 -_08051E80: .4byte gUnk_02000080 +_08051E80: .4byte gMenu thumb_func_start sub_08051E84 sub_08051E84: @ 0x08051E84 @@ -3819,7 +3819,7 @@ sub_08051E84: @ 0x08051E84 ldrh r1, [r5, #8] adds r0, r0, r1 strh r0, [r5, #0xc] - ldr r1, _08051F00 @ =gUnk_02000080 + ldr r1, _08051F00 @ =gMenu ldrb r0, [r4, #2] strb r0, [r1] ldrb r2, [r4, #3] @@ -3841,13 +3841,13 @@ _08051EF0: .4byte gUnk_02032EC0 _08051EF4: .4byte gUnk_080FCA20 _08051EF8: .4byte gRoomControls _08051EFC: .4byte gArea -_08051F00: .4byte gUnk_02000080 +_08051F00: .4byte gMenu thumb_func_start sub_08051F04 sub_08051F04: @ 0x08051F04 push {lr} ldr r1, _08051F38 @ =gUnk_080FCA14 - ldr r0, _08051F3C @ =gUnk_02000080 + ldr r0, _08051F3C @ =gMenu ldrb r0, [r0] lsls r0, r0, #2 adds r0, r0, r1 @@ -3864,7 +3864,7 @@ sub_08051F04: @ 0x08051F04 pop {pc} .align 2, 0 _08051F38: .4byte gUnk_080FCA14 -_08051F3C: .4byte gUnk_02000080 +_08051F3C: .4byte gMenu thumb_func_start sub_08051F40 sub_08051F40: @ 0x08051F40 @@ -3955,23 +3955,23 @@ _08051FEC: .4byte gUnk_0200B644 thumb_func_start sub_08051FF0 sub_08051FF0: @ 0x08051FF0 push {lr} - ldr r0, _08052000 @ =gUnk_02000080 + ldr r0, _08052000 @ =gMenu ldr r1, [r0, #0xc] ldrb r0, [r1] ldrb r1, [r1, #1] bl sub_0804B0B0 pop {pc} .align 2, 0 -_08052000: .4byte gUnk_02000080 +_08052000: .4byte gMenu thumb_func_start sub_08052004 sub_08052004: @ 0x08052004 - ldr r1, _0805200C @ =gUnk_02000080 + ldr r1, _0805200C @ =gMenu movs r0, #2 strb r0, [r1, #5] bx lr .align 2, 0 -_0805200C: .4byte gUnk_02000080 +_0805200C: .4byte gMenu thumb_func_start sub_08052010 sub_08052010: @ 0x08052010 @@ -4000,7 +4000,7 @@ sub_08052010: @ 0x08052010 lsls r0, r0, #0x13 movs r1, #0x20 bl _DmaZero - ldr r0, _08052084 @ =gUnk_02000080 + ldr r0, _08052084 @ =gMenu movs r1, #0x30 bl _DmaZero ldr r1, _08052088 @ =gScreen @@ -4021,7 +4021,7 @@ sub_08052010: @ 0x08052010 .align 2, 0 _0805207C: .4byte gUnk_02021F30 _08052080: .4byte gUnk_020344B0 -_08052084: .4byte gUnk_02000080 +_08052084: .4byte gMenu _08052088: .4byte gScreen _0805208C: .4byte 0x00001C01 _08052090: .4byte 0x00001D05 @@ -4067,7 +4067,7 @@ sub_080520D8: @ 0x080520D8 cmp r0, #0 bne _08052114 bl sub_08052010 - ldr r1, _0805211C @ =gUnk_02000080 + ldr r1, _0805211C @ =gMenu movs r0, #0x50 strb r0, [r1, #0x10] movs r2, #0x3c @@ -4091,7 +4091,7 @@ _08052114: pop {r4, pc} .align 2, 0 _08052118: .4byte gUnk_03000FD0 -_0805211C: .4byte gUnk_02000080 +_0805211C: .4byte gMenu _08052120: .4byte gUnk_02002A40 _08052124: .4byte gUnk_03001000 _08052128: .4byte 0xFFFF0001 @@ -4107,7 +4107,7 @@ sub_0805212C: @ 0x0805212C ldrb r0, [r1, #5] cmp r0, #0 bne _08052198 - ldr r1, _08052154 @ =gUnk_02000080 + ldr r1, _08052154 @ =gMenu ldrb r0, [r1, #0x10] cmp r0, #0x25 bls _08052158 @@ -4117,7 +4117,7 @@ sub_0805212C: @ 0x0805212C .align 2, 0 _0805214C: .4byte gUnk_03000FD0 _08052150: .4byte gUnk_03001000 -_08052154: .4byte gUnk_02000080 +_08052154: .4byte gMenu _08052158: ldrh r0, [r1, #8] subs r0, #1 @@ -4162,7 +4162,7 @@ sub_080521A0: @ 0x080521A0 beq _080521AC b _080522E8 _080521AC: - ldr r0, _080521C8 @ =gUnk_02000080 + ldr r0, _080521C8 @ =gMenu ldrb r1, [r0, #5] adds r2, r0, #0 cmp r1, #4 @@ -4176,7 +4176,7 @@ _080521B8: mov pc, r0 .align 2, 0 _080521C4: .4byte gUnk_03000FD0 -_080521C8: .4byte gUnk_02000080 +_080521C8: .4byte gMenu _080521CC: .4byte _080521D0 _080521D0: @ jump table .4byte _080521E4 @ case 0 @@ -4238,7 +4238,7 @@ _0805223E: bl sub_08050318 movs r2, #2 _08052248: - ldr r1, _08052274 @ =gUnk_02000080 + ldr r1, _08052274 @ =gMenu movs r0, #0x3c strh r0, [r1, #8] adds r0, r2, #0 @@ -4246,7 +4246,7 @@ _08052248: movs r0, #0x6a bl PlaySFX _0805225A: - ldr r1, _08052274 @ =gUnk_02000080 + ldr r1, _08052274 @ =gMenu ldrb r0, [r1, #3] cmp r0, r4 beq _080522E8 @@ -4258,12 +4258,12 @@ _0805225A: bl PlaySFX b _080522E8 .align 2, 0 -_08052274: .4byte gUnk_02000080 +_08052274: .4byte gMenu _08052278: movs r0, #0 bl sub_0807CDA4 adds r1, r0, #0 - ldr r2, _08052298 @ =gUnk_02000080 + ldr r2, _08052298 @ =gMenu strb r1, [r2] movs r0, #1 rsbs r0, r0, #0 @@ -4275,7 +4275,7 @@ _08052278: bl sub_080A7114 b _080522E8 .align 2, 0 -_08052298: .4byte gUnk_02000080 +_08052298: .4byte gMenu _0805229C: movs r0, #0x3c strh r0, [r2, #8] @@ -4323,7 +4323,7 @@ _080522F0: .4byte 0x0000FDFF thumb_func_start sub_080522F4 sub_080522F4: @ 0x080522F4 push {r4, lr} - ldr r0, _08052320 @ =gUnk_02000080 + ldr r0, _08052320 @ =gMenu ldrb r1, [r0, #5] adds r3, r0, #0 cmp r1, #1 @@ -4343,7 +4343,7 @@ sub_080522F4: @ 0x080522F4 bl sub_08052418 b _080523CC .align 2, 0 -_08052320: .4byte gUnk_02000080 +_08052320: .4byte gMenu _08052324: ldr r2, _08052340 @ =gScreen ldrh r1, [r2] @@ -4399,7 +4399,7 @@ _08052384: movs r1, #8 bl DoFade _0805238C: - ldr r1, _080523A8 @ =gUnk_02000080 + ldr r1, _080523A8 @ =gMenu ldrb r0, [r1, #3] cmp r0, r4 beq _080523CC @@ -4411,7 +4411,7 @@ _0805238C: bl PlaySFX b _080523CC .align 2, 0 -_080523A8: .4byte gUnk_02000080 +_080523A8: .4byte gMenu _080523AC: ldr r0, _080523C4 @ =gUnk_03000FD0 ldrb r0, [r0] @@ -4446,7 +4446,7 @@ sub_080523D4: @ 0x080523D4 movs r0, #0x86 lsls r0, r0, #8 strh r0, [r1, #8] - ldr r0, _0805240C @ =gUnk_02000080 + ldr r0, _0805240C @ =gMenu ldrb r0, [r0, #0x10] strh r0, [r1, #2] movs r4, #0 @@ -4465,6 +4465,6 @@ _080523F0: pop {r4, r5, r6, pc} .align 2, 0 _08052408: .4byte gUnk_03001010 -_0805240C: .4byte gUnk_02000080 +_0805240C: .4byte gMenu _08052410: .4byte gUnk_080FCA84 _08052414: .4byte 0x000001FD diff --git a/asm/code_080526F8.s b/asm/code_080526F8.s index 02c10ab6..0e44f902 100644 --- a/asm/code_080526F8.s +++ b/asm/code_080526F8.s @@ -1878,7 +1878,7 @@ _0805358C: .4byte 0x0000FFFF sub_08053590: @ 0x08053590 push {lr} ldr r1, _080535A4 @ =gUnk_080FCBB4 - ldr r0, _080535A8 @ =gUnk_02000080 + ldr r0, _080535A8 @ =gMenu ldrb r0, [r0, #6] lsls r0, r0, #2 adds r0, r0, r1 @@ -1887,12 +1887,12 @@ sub_08053590: @ 0x08053590 pop {pc} .align 2, 0 _080535A4: .4byte gUnk_080FCBB4 -_080535A8: .4byte gUnk_02000080 +_080535A8: .4byte gMenu thumb_func_start sub_080535AC sub_080535AC: @ 0x080535AC push {lr} - ldr r2, _080535DC @ =gUnk_02000080 + ldr r2, _080535DC @ =gMenu movs r1, #1 strb r1, [r2, #6] movs r0, #0x78 @@ -1913,7 +1913,7 @@ sub_080535AC: @ 0x080535AC bl DoFade pop {pc} .align 2, 0 -_080535DC: .4byte gUnk_02000080 +_080535DC: .4byte gMenu _080535E0: .4byte gUnk_02032EC0 _080535E4: .4byte gUnk_02000070 _080535E8: .4byte gScreen @@ -1928,14 +1928,14 @@ sub_080535F4: @ 0x080535F4 cmp r0, #0 bne _08053608 bl sub_0805E5B4 - ldr r1, _08053610 @ =gUnk_02000080 + ldr r1, _08053610 @ =gMenu movs r0, #2 strb r0, [r1, #6] _08053608: pop {pc} .align 2, 0 _0805360C: .4byte gUnk_03000FD0 -_08053610: .4byte gUnk_02000080 +_08053610: .4byte gMenu thumb_func_start nullsub_481 nullsub_481: @ 0x08053614 @@ -1945,7 +1945,7 @@ nullsub_481: @ 0x08053614 thumb_func_start sub_08053618 sub_08053618: @ 0x08053618 push {lr} - ldr r1, _08053630 @ =gUnk_02000080 + ldr r1, _08053630 @ =gMenu ldrh r0, [r1, #8] subs r0, #1 strh r0, [r1, #8] @@ -1956,7 +1956,7 @@ sub_08053618: @ 0x08053618 _0805362C: pop {pc} .align 2, 0 -_08053630: .4byte gUnk_02000080 +_08053630: .4byte gMenu thumb_func_start sub_08053634 sub_08053634: @ 0x08053634 @@ -1999,13 +1999,13 @@ _08053678: .4byte gRoomControls thumb_func_start sub_0805367C sub_0805367C: @ 0x0805367C - ldr r1, _08053688 @ =gUnk_02000080 + ldr r1, _08053688 @ =gMenu ldrb r0, [r1, #6] adds r0, #1 strb r0, [r1, #6] bx lr .align 2, 0 -_08053688: .4byte gUnk_02000080 +_08053688: .4byte gMenu thumb_func_start sub_0805368C sub_0805368C: @ 0x0805368C @@ -2051,7 +2051,7 @@ sub_080536B8: @ 0x080536B8 sub_080536D4: @ 0x080536D4 push {lr} ldr r1, _080536E8 @ =gUnk_080FCCFC - ldr r0, _080536EC @ =gUnk_02000080 + ldr r0, _080536EC @ =gMenu ldrb r0, [r0, #6] lsls r0, r0, #2 adds r0, r0, r1 @@ -2060,13 +2060,13 @@ sub_080536D4: @ 0x080536D4 pop {pc} .align 2, 0 _080536E8: .4byte gUnk_080FCCFC -_080536EC: .4byte gUnk_02000080 +_080536EC: .4byte gMenu thumb_func_start sub_080536F0 sub_080536F0: @ 0x080536F0 push {lr} ldr r1, _08053704 @ =gUnk_080FCD38 - ldr r0, _08053708 @ =gUnk_02000080 + ldr r0, _08053708 @ =gMenu ldrb r0, [r0, #6] lsls r0, r0, #2 adds r0, r0, r1 @@ -2075,12 +2075,12 @@ sub_080536F0: @ 0x080536F0 pop {pc} .align 2, 0 _08053704: .4byte gUnk_080FCD38 -_08053708: .4byte gUnk_02000080 +_08053708: .4byte gMenu thumb_func_start sub_0805370C sub_0805370C: @ 0x0805370C push {lr} - ldr r1, _08053730 @ =gUnk_02000080 + ldr r1, _08053730 @ =gMenu ldrb r0, [r1, #6] adds r0, #1 strb r0, [r1, #6] @@ -2095,7 +2095,7 @@ sub_0805370C: @ 0x0805370C bl DoFade pop {pc} .align 2, 0 -_08053730: .4byte gUnk_02000080 +_08053730: .4byte gMenu _08053734: .4byte gUnk_02000070 _08053738: .4byte gUnk_080FCC54 @@ -2103,7 +2103,7 @@ _08053738: .4byte gUnk_080FCC54 sub_0805373C: @ 0x0805373C push {lr} ldr r1, _08053750 @ =gUnk_080FCD40 - ldr r0, _08053754 @ =gUnk_02000080 + ldr r0, _08053754 @ =gMenu ldrb r0, [r0, #6] lsls r0, r0, #2 adds r0, r0, r1 @@ -2112,12 +2112,12 @@ sub_0805373C: @ 0x0805373C pop {pc} .align 2, 0 _08053750: .4byte gUnk_080FCD40 -_08053754: .4byte gUnk_02000080 +_08053754: .4byte gMenu thumb_func_start sub_08053758 sub_08053758: @ 0x08053758 push {r4, lr} - ldr r1, _080537DC @ =gUnk_02000080 + ldr r1, _080537DC @ =gMenu movs r2, #0 movs r3, #1 strb r3, [r1, #6] @@ -2177,7 +2177,7 @@ sub_08053758: @ 0x08053758 bl DoFade pop {r4, pc} .align 2, 0 -_080537DC: .4byte gUnk_02000080 +_080537DC: .4byte gMenu _080537E0: .4byte gUnk_02032EC0 _080537E4: .4byte gUnk_02025EB0 _080537E8: .4byte gUnk_0200B650 @@ -2194,7 +2194,7 @@ sub_08053800: @ 0x08053800 ldrb r0, [r0] cmp r0, #0 bne _0805387A - ldr r1, _08053880 @ =gUnk_02000080 + ldr r1, _08053880 @ =gMenu ldrb r5, [r1, #0x10] lsls r4, r5, #1 adds r4, r4, r5 @@ -2249,7 +2249,7 @@ _0805387A: pop {r4, r5, pc} .align 2, 0 _0805387C: .4byte gUnk_03000FD0 -_08053880: .4byte gUnk_02000080 +_08053880: .4byte gMenu _08053884: .4byte gUnk_080FCCB4 _08053888: .4byte gUnk_02021F30 _0805388C: .4byte 0x00000F01 @@ -2262,7 +2262,7 @@ sub_08053894: @ 0x08053894 ldrb r0, [r0] cmp r0, #0 bne _080538F8 - ldr r1, _080538B8 @ =gUnk_02000080 + ldr r1, _080538B8 @ =gMenu ldrh r0, [r1, #8] subs r0, #1 strh r0, [r1, #8] @@ -2275,7 +2275,7 @@ sub_08053894: @ 0x08053894 b _080538E4 .align 2, 0 _080538B4: .4byte gUnk_03000FD0 -_080538B8: .4byte gUnk_02000080 +_080538B8: .4byte gMenu _080538BC: ldr r0, _080538FC @ =gUnk_030010A0 ldr r0, [r0] @@ -2320,7 +2320,7 @@ sub_08053904: @ 0x08053904 ldrb r0, [r0] cmp r0, #0 bne _08053968 - ldr r1, _08053928 @ =gUnk_02000080 + ldr r1, _08053928 @ =gMenu ldrh r0, [r1, #8] subs r0, #1 strh r0, [r1, #8] @@ -2333,7 +2333,7 @@ sub_08053904: @ 0x08053904 b _08053954 .align 2, 0 _08053924: .4byte gUnk_03000FD0 -_08053928: .4byte gUnk_02000080 +_08053928: .4byte gMenu _0805392C: ldr r0, _0805396C @ =gUnk_030010A0 ldr r0, [r0] @@ -2389,7 +2389,7 @@ sub_08053974: @ 0x08053974 lsls r1, r1, #1 movs r0, #5 bl DoFade - ldr r1, _080539B4 @ =gUnk_02000080 + ldr r1, _080539B4 @ =gMenu ldrb r0, [r1, #6] adds r0, #1 strb r0, [r1, #6] @@ -2398,7 +2398,7 @@ _080539A8: .align 2, 0 _080539AC: .4byte gUnk_03000FD0 _080539B0: .4byte gUnk_080FCBC4 -_080539B4: .4byte gUnk_02000080 +_080539B4: .4byte gMenu thumb_func_start nullsub_482 nullsub_482: @ 0x080539B8 @@ -2420,14 +2420,14 @@ sub_080539BC: @ 0x080539BC bl sub_0804B0B0 ldr r0, _080539EC @ =gUnk_080FCC14 bl LoadRoomEntityList - ldr r1, _080539F0 @ =gUnk_02000080 + ldr r1, _080539F0 @ =gMenu ldrb r0, [r1, #6] adds r0, #1 strb r0, [r1, #6] pop {pc} .align 2, 0 _080539EC: .4byte gUnk_080FCC14 -_080539F0: .4byte gUnk_02000080 +_080539F0: .4byte gMenu thumb_func_start sub_080539F4 sub_080539F4: @ 0x080539F4 @@ -2438,7 +2438,7 @@ sub_080539F4: @ 0x080539F4 bne _08053A10 movs r0, #1 bl sub_0801DA90 - ldr r0, _08053A18 @ =gUnk_02000080 + ldr r0, _08053A18 @ =gMenu ldrb r1, [r0, #6] adds r1, #1 strb r1, [r0, #6] @@ -2448,12 +2448,12 @@ _08053A10: pop {pc} .align 2, 0 _08053A14: .4byte gUnk_03000FD0 -_08053A18: .4byte gUnk_02000080 +_08053A18: .4byte gMenu thumb_func_start sub_08053A1C sub_08053A1C: @ 0x08053A1C push {r4, lr} - ldr r1, _08053A50 @ =gUnk_02000080 + ldr r1, _08053A50 @ =gMenu ldrh r0, [r1, #8] subs r0, #1 strh r0, [r1, #8] @@ -2478,7 +2478,7 @@ sub_08053A1C: @ 0x08053A1C _08053A4E: pop {r4, pc} .align 2, 0 -_08053A50: .4byte gUnk_02000080 +_08053A50: .4byte gMenu _08053A54: .4byte 0x00000F07 _08053A58: .4byte gTextBox @@ -2491,7 +2491,7 @@ sub_08053A5C: @ 0x08053A5C ands r0, r1 cmp r0, #0 bne _08053A86 - ldr r1, _08053A8C @ =gUnk_02000080 + ldr r1, _08053A8C @ =gMenu ldrh r0, [r1, #8] subs r0, #1 strh r0, [r1, #8] @@ -2508,7 +2508,7 @@ _08053A86: pop {pc} .align 2, 0 _08053A88: .4byte gTextBox -_08053A8C: .4byte gUnk_02000080 +_08053A8C: .4byte gMenu thumb_func_start sub_08053A90 sub_08053A90: @ 0x08053A90 @@ -2531,7 +2531,7 @@ _08053AAC: .4byte gUnk_02032EC0 sub_08053AB0: @ 0x08053AB0 push {lr} ldr r1, _08053AC4 @ =gUnk_080FCDD4 - ldr r0, _08053AC8 @ =gUnk_02000080 + ldr r0, _08053AC8 @ =gMenu ldrb r0, [r0, #6] lsls r0, r0, #2 adds r0, r0, r1 @@ -2540,12 +2540,12 @@ sub_08053AB0: @ 0x08053AB0 pop {pc} .align 2, 0 _08053AC4: .4byte gUnk_080FCDD4 -_08053AC8: .4byte gUnk_02000080 +_08053AC8: .4byte gMenu thumb_func_start sub_08053ACC sub_08053ACC: @ 0x08053ACC push {lr} - ldr r1, _08053AF4 @ =gUnk_02000080 + ldr r1, _08053AF4 @ =gMenu ldrb r0, [r1, #6] adds r0, #1 strb r0, [r1, #6] @@ -2561,19 +2561,19 @@ sub_08053ACC: @ 0x08053ACC bl DoFade pop {pc} .align 2, 0 -_08053AF4: .4byte gUnk_02000080 +_08053AF4: .4byte gMenu _08053AF8: .4byte gUnk_02000070 _08053AFC: .4byte gUnk_080FCD84 thumb_func_start sub_08053B00 sub_08053B00: @ 0x08053B00 - ldr r1, _08053B0C @ =gUnk_02000080 + ldr r1, _08053B0C @ =gMenu ldrb r0, [r1, #6] adds r0, #1 strb r0, [r1, #6] bx lr .align 2, 0 -_08053B0C: .4byte gUnk_02000080 +_08053B0C: .4byte gMenu thumb_func_start sub_08053B10 sub_08053B10: @ 0x08053B10 @@ -2582,7 +2582,7 @@ sub_08053B10: @ 0x08053B10 bl CheckRoomFlag cmp r0, #0 beq _08053B34 - ldr r0, _08053B38 @ =gUnk_02000080 + ldr r0, _08053B38 @ =gMenu ldrb r1, [r0, #5] adds r1, #1 strb r1, [r0, #5] @@ -2595,7 +2595,7 @@ sub_08053B10: @ 0x08053B10 _08053B34: pop {pc} .align 2, 0 -_08053B38: .4byte gUnk_02000080 +_08053B38: .4byte gMenu thumb_func_start sub_08053B3C sub_08053B3C: @ 0x08053B3C @@ -2616,7 +2616,7 @@ sub_08053B3C: @ 0x08053B3C sub_08053B58: @ 0x08053B58 push {lr} ldr r1, _08053B6C @ =gUnk_080FCEB0 - ldr r0, _08053B70 @ =gUnk_02000080 + ldr r0, _08053B70 @ =gMenu ldrb r0, [r0, #6] lsls r0, r0, #2 adds r0, r0, r1 @@ -2625,12 +2625,12 @@ sub_08053B58: @ 0x08053B58 pop {pc} .align 2, 0 _08053B6C: .4byte gUnk_080FCEB0 -_08053B70: .4byte gUnk_02000080 +_08053B70: .4byte gMenu thumb_func_start sub_08053B74 sub_08053B74: @ 0x08053B74 push {lr} - ldr r1, _08053BA0 @ =gUnk_02000080 + ldr r1, _08053BA0 @ =gMenu ldrb r0, [r1, #6] adds r0, #1 strb r0, [r1, #6] @@ -2647,19 +2647,19 @@ sub_08053B74: @ 0x08053B74 bl DoFade pop {pc} .align 2, 0 -_08053BA0: .4byte gUnk_02000080 +_08053BA0: .4byte gMenu _08053BA4: .4byte gUnk_02000070 _08053BA8: .4byte gUnk_080FCDE0 thumb_func_start sub_08053BAC sub_08053BAC: @ 0x08053BAC - ldr r1, _08053BB8 @ =gUnk_02000080 + ldr r1, _08053BB8 @ =gMenu ldrb r0, [r1, #6] adds r0, #1 strb r0, [r1, #6] bx lr .align 2, 0 -_08053BB8: .4byte gUnk_02000080 +_08053BB8: .4byte gMenu thumb_func_start sub_08053BBC sub_08053BBC: @ 0x08053BBC @@ -2668,7 +2668,7 @@ sub_08053BBC: @ 0x08053BBC bl CheckRoomFlag cmp r0, #0 beq _08053BE0 - ldr r0, _08053BE4 @ =gUnk_02000080 + ldr r0, _08053BE4 @ =gMenu ldrb r1, [r0, #5] adds r1, #1 strb r1, [r0, #5] @@ -2681,7 +2681,7 @@ sub_08053BBC: @ 0x08053BBC _08053BE0: pop {pc} .align 2, 0 -_08053BE4: .4byte gUnk_02000080 +_08053BE4: .4byte gMenu thumb_func_start sub_08053BE8 sub_08053BE8: @ 0x08053BE8 @@ -2702,7 +2702,7 @@ sub_08053BE8: @ 0x08053BE8 sub_08053C04: @ 0x08053C04 push {lr} ldr r1, _08053C18 @ =gUnk_080FCEEC - ldr r0, _08053C1C @ =gUnk_02000080 + ldr r0, _08053C1C @ =gMenu ldrb r0, [r0, #6] lsls r0, r0, #2 adds r0, r0, r1 @@ -2711,12 +2711,12 @@ sub_08053C04: @ 0x08053C04 pop {pc} .align 2, 0 _08053C18: .4byte gUnk_080FCEEC -_08053C1C: .4byte gUnk_02000080 +_08053C1C: .4byte gMenu thumb_func_start sub_08053C20 sub_08053C20: @ 0x08053C20 push {lr} - ldr r1, _08053C50 @ =gUnk_02000080 + ldr r1, _08053C50 @ =gMenu movs r2, #1 strb r2, [r1, #6] movs r0, #0x78 @@ -2735,7 +2735,7 @@ sub_08053C20: @ 0x08053C20 bl PlaySFX pop {pc} .align 2, 0 -_08053C50: .4byte gUnk_02000080 +_08053C50: .4byte gMenu _08053C54: .4byte gUnk_02000070 _08053C58: .4byte gUnk_080FCEBC @@ -2762,18 +2762,18 @@ _08053C80: .4byte 0x80100000 thumb_func_start sub_08053C84 sub_08053C84: @ 0x08053C84 - ldr r1, _08053C8C @ =gUnk_02000080 + ldr r1, _08053C8C @ =gMenu movs r0, #2 strb r0, [r1, #6] bx lr .align 2, 0 -_08053C8C: .4byte gUnk_02000080 +_08053C8C: .4byte gMenu thumb_func_start sub_08053C90 sub_08053C90: @ 0x08053C90 push {lr} ldr r1, _08053CA4 @ =gUnk_080FCEF8 - ldr r0, _08053CA8 @ =gUnk_02000080 + ldr r0, _08053CA8 @ =gMenu ldrb r0, [r0, #3] lsls r0, r0, #2 adds r0, r0, r1 @@ -2782,13 +2782,13 @@ sub_08053C90: @ 0x08053C90 pop {pc} .align 2, 0 _08053CA4: .4byte gUnk_080FCEF8 -_08053CA8: .4byte gUnk_02000080 +_08053CA8: .4byte gMenu thumb_func_start sub_08053CAC sub_08053CAC: @ 0x08053CAC push {lr} ldr r1, _08053CC0 @ =gUnk_080FCFA4 - ldr r0, _08053CC4 @ =gUnk_02000080 + ldr r0, _08053CC4 @ =gMenu ldrb r0, [r0, #6] lsls r0, r0, #2 adds r0, r0, r1 @@ -2797,12 +2797,12 @@ sub_08053CAC: @ 0x08053CAC pop {pc} .align 2, 0 _08053CC0: .4byte gUnk_080FCFA4 -_08053CC4: .4byte gUnk_02000080 +_08053CC4: .4byte gMenu thumb_func_start sub_08053CC8 sub_08053CC8: @ 0x08053CC8 push {r4, r5, r6, lr} - ldr r6, _08053D20 @ =gUnk_02000080 + ldr r6, _08053D20 @ =gMenu ldrb r4, [r6, #3] lsls r4, r4, #4 ldr r0, _08053D24 @ =gUnk_080FCF04 @@ -2841,7 +2841,7 @@ sub_08053CC8: @ 0x08053CC8 _08053D1E: pop {r4, r5, r6, pc} .align 2, 0 -_08053D20: .4byte gUnk_02000080 +_08053D20: .4byte gMenu _08053D24: .4byte gUnk_080FCF04 _08053D28: .4byte gScreen _08053D2C: .4byte 0x0000FEFF @@ -2850,7 +2850,7 @@ _08053D30: .4byte gUnk_02000070 thumb_func_start sub_08053D34 sub_08053D34: @ 0x08053D34 push {r4, lr} - ldr r1, _08053D88 @ =gUnk_02000080 + ldr r1, _08053D88 @ =gMenu ldrh r0, [r1, #0xa] cmp r0, #0 beq _08053D72 @@ -2882,7 +2882,7 @@ _08053D72: ldrb r0, [r0] cmp r0, #0 bne _08053D86 - ldr r1, _08053D88 @ =gUnk_02000080 + ldr r1, _08053D88 @ =gMenu movs r0, #0x78 strh r0, [r1, #8] ldrb r0, [r1, #6] @@ -2891,13 +2891,13 @@ _08053D72: _08053D86: pop {r4, pc} .align 2, 0 -_08053D88: .4byte gUnk_02000080 +_08053D88: .4byte gMenu _08053D8C: .4byte gUnk_03000FD0 thumb_func_start sub_08053D90 sub_08053D90: @ 0x08053D90 push {lr} - ldr r1, _08053DB0 @ =gUnk_02000080 + ldr r1, _08053DB0 @ =gMenu ldrh r0, [r1, #8] subs r0, #1 strh r0, [r1, #8] @@ -2912,7 +2912,7 @@ sub_08053D90: @ 0x08053D90 _08053DAC: pop {pc} .align 2, 0 -_08053DB0: .4byte gUnk_02000080 +_08053DB0: .4byte gMenu thumb_func_start sub_08053DB4 sub_08053DB4: @ 0x08053DB4 @@ -2921,7 +2921,7 @@ sub_08053DB4: @ 0x08053DB4 ldrb r0, [r0] cmp r0, #0 bne _08053E1C - ldr r5, _08053E24 @ =gUnk_02000080 + ldr r5, _08053E24 @ =gMenu ldr r4, [r5, #0xc] ldrb r0, [r4, #4] ldrb r1, [r4, #5] @@ -2964,7 +2964,7 @@ _08053E1C: pop {r4, r5, pc} .align 2, 0 _08053E20: .4byte gUnk_03000FD0 -_08053E24: .4byte gUnk_02000080 +_08053E24: .4byte gMenu _08053E28: .4byte gUnk_02000070 _08053E2C: .4byte gRoomControls @@ -2975,7 +2975,7 @@ sub_08053E30: @ 0x08053E30 ldrb r0, [r0] cmp r0, #0 bne _08053E4E - ldr r1, _08053E54 @ =gUnk_02000080 + ldr r1, _08053E54 @ =gMenu ldrh r0, [r1, #8] subs r0, #1 strh r0, [r1, #8] @@ -2989,13 +2989,13 @@ _08053E4E: pop {pc} .align 2, 0 _08053E50: .4byte gUnk_03000FD0 -_08053E54: .4byte gUnk_02000080 +_08053E54: .4byte gMenu thumb_func_start sub_08053E58 sub_08053E58: @ 0x08053E58 push {lr} ldr r1, _08053E6C @ =gUnk_080FD108 - ldr r0, _08053E70 @ =gUnk_02000080 + ldr r0, _08053E70 @ =gMenu ldrb r0, [r0, #6] lsls r0, r0, #2 adds r0, r0, r1 @@ -3004,13 +3004,13 @@ sub_08053E58: @ 0x08053E58 pop {pc} .align 2, 0 _08053E6C: .4byte gUnk_080FD108 -_08053E70: .4byte gUnk_02000080 +_08053E70: .4byte gMenu thumb_func_start sub_08053E74 sub_08053E74: @ 0x08053E74 push {r4, lr} ldr r0, _08053EB0 @ =gUnk_080FCFB8 - ldr r4, _08053EB4 @ =gUnk_02000080 + ldr r4, _08053EB4 @ =gMenu str r0, [r4, #0xc] ldr r0, [r0] bl LoadRoomEntityList @@ -3037,7 +3037,7 @@ sub_08053E74: @ 0x08053E74 pop {r4, pc} .align 2, 0 _08053EB0: .4byte gUnk_080FCFB8 -_08053EB4: .4byte gUnk_02000080 +_08053EB4: .4byte gMenu _08053EB8: .4byte gScreen _08053EBC: .4byte 0x0000FEFF _08053EC0: .4byte gUnk_02000070 @@ -3049,7 +3049,7 @@ sub_08053EC4: @ 0x08053EC4 ldrb r0, [r0] cmp r0, #0 bne _08053EF0 - ldr r4, _08053EF8 @ =gUnk_02000080 + ldr r4, _08053EF8 @ =gMenu ldrh r0, [r4, #0xa] subs r0, #1 strh r0, [r4, #0xa] @@ -3069,12 +3069,12 @@ _08053EF0: pop {r4, pc} .align 2, 0 _08053EF4: .4byte gUnk_03000FD0 -_08053EF8: .4byte gUnk_02000080 +_08053EF8: .4byte gMenu thumb_func_start sub_08053EFC sub_08053EFC: @ 0x08053EFC push {lr} - ldr r1, _08053F1C @ =gUnk_02000080 + ldr r1, _08053F1C @ =gMenu ldrh r0, [r1, #8] subs r0, #1 strh r0, [r1, #8] @@ -3089,7 +3089,7 @@ sub_08053EFC: @ 0x08053EFC _08053F18: pop {pc} .align 2, 0 -_08053F1C: .4byte gUnk_02000080 +_08053F1C: .4byte gMenu thumb_func_start sub_08053F20 sub_08053F20: @ 0x08053F20 @@ -3099,7 +3099,7 @@ sub_08053F20: @ 0x08053F20 cmp r0, #0 bne _08053F74 bl sub_0805E89C - ldr r5, _08053F7C @ =gUnk_02000080 + ldr r5, _08053F7C @ =gMenu ldr r4, [r5, #0xc] ldrb r0, [r4, #8] ldrb r1, [r4, #9] @@ -3134,7 +3134,7 @@ _08053F74: pop {r4, r5, pc} .align 2, 0 _08053F78: .4byte gUnk_03000FD0 -_08053F7C: .4byte gUnk_02000080 +_08053F7C: .4byte gMenu _08053F80: .4byte gUnk_02000070 _08053F84: .4byte gRoomControls @@ -3145,7 +3145,7 @@ sub_08053F88: @ 0x08053F88 ldrb r0, [r0] cmp r0, #0 bne _08053FAA - ldr r1, _08053FB0 @ =gUnk_02000080 + ldr r1, _08053FB0 @ =gMenu ldrh r0, [r1, #8] subs r0, #1 strh r0, [r1, #8] @@ -3160,13 +3160,13 @@ _08053FAA: pop {pc} .align 2, 0 _08053FAC: .4byte gUnk_03000FD0 -_08053FB0: .4byte gUnk_02000080 +_08053FB0: .4byte gMenu thumb_func_start sub_08053FB4 sub_08053FB4: @ 0x08053FB4 push {lr} ldr r1, _08053FC8 @ =gUnk_080FD138 - ldr r0, _08053FCC @ =gUnk_02000080 + ldr r0, _08053FCC @ =gMenu ldrb r0, [r0, #3] lsls r0, r0, #2 adds r0, r0, r1 @@ -3175,7 +3175,7 @@ sub_08053FB4: @ 0x08053FB4 pop {pc} .align 2, 0 _08053FC8: .4byte gUnk_080FD138 -_08053FCC: .4byte gUnk_02000080 +_08053FCC: .4byte gMenu thumb_func_start GetSaleItemConfirmMessageID GetSaleItemConfirmMessageID: @ 0x08053FD0 diff --git a/asm/code_0805436C.s b/asm/code_0805436C.s index ee505e5d..a4ffcf48 100644 --- a/asm/code_0805436C.s +++ b/asm/code_0805436C.s @@ -5,707 +5,6 @@ .syntax unified .text - - thumb_func_start sub_0805436C -sub_0805436C: @ 0x0805436C - push {lr} - adds r2, r0, #0 - ldr r1, _08054380 @ =gUnk_02002A40 - adds r0, r1, #0 - adds r0, #0xb4 - ldrb r0, [r0] - cmp r2, r0 - bne _08054384 - movs r1, #0 - b _08054392 - .align 2, 0 -_08054380: .4byte gUnk_02002A40 -_08054384: - adds r0, r1, #0 - adds r0, #0xb5 - movs r1, #2 - ldrb r0, [r0] - cmp r2, r0 - bne _08054392 - movs r1, #1 -_08054392: - adds r0, r1, #0 - pop {pc} - .align 2, 0 - - thumb_func_start PutItemOnSlot -PutItemOnSlot: @ 0x08054398 - push {r4, r5, lr} - adds r5, r0, #0 - cmp r5, #0x46 - bhi _080543A8 - movs r0, #0 - movs r1, #1 - bl sub_0807CAA0 -_080543A8: - subs r0, r5, #1 - cmp r0, #0x1e - bhi _08054410 - movs r1, #2 - ldr r2, _080543C0 @ =gUnk_02002A40 - adds r0, r2, #0 - adds r0, #0xb4 - ldrb r0, [r0] - cmp r0, #0 - bne _080543C4 - movs r1, #0 - b _080543D0 - .align 2, 0 -_080543C0: .4byte gUnk_02002A40 -_080543C4: - adds r0, r2, #0 - adds r0, #0xb5 - ldrb r0, [r0] - cmp r0, #0 - bne _080543D0 - movs r1, #1 -_080543D0: - cmp r1, #2 - bne _0805440A - ldr r3, _080543F0 @ =gUnk_080FD5B4 - lsls r0, r5, #3 - adds r0, r0, r3 - ldrb r4, [r0] - adds r0, r2, #0 - adds r0, #0xb4 - ldrb r0, [r0] - lsls r0, r0, #3 - adds r0, r0, r3 - ldrb r0, [r0] - cmp r4, r0 - bne _080543F4 - movs r1, #0 - b _08054406 - .align 2, 0 -_080543F0: .4byte gUnk_080FD5B4 -_080543F4: - adds r0, r2, #0 - adds r0, #0xb5 - ldrb r0, [r0] - lsls r0, r0, #3 - adds r0, r0, r3 - ldrb r0, [r0] - cmp r4, r0 - bne _08054406 - movs r1, #1 -_08054406: - cmp r1, #2 - beq _08054410 -_0805440A: - adds r0, r5, #0 - bl ForceEquipItem -_08054410: - pop {r4, r5, pc} - .align 2, 0 - - thumb_func_start ForceEquipItem -ForceEquipItem: @ 0x08054414 - push {r4, r5, r6, r7, lr} - adds r4, r0, #0 - subs r0, r4, #1 - cmp r0, #0x1e - bhi _08054456 - cmp r1, #1 - bhi _08054456 - movs r2, #0 - cmp r1, #0 - bne _0805442A - movs r2, #1 -_0805442A: - ldr r0, _08054458 @ =gUnk_02002A40 - adds r0, #0xb4 - adds r6, r1, r0 - ldrb r7, [r6] - adds r5, r2, r0 - ldrb r3, [r5] - ldr r2, _0805445C @ =gUnk_080FD5B4 - lsls r1, r3, #3 - adds r1, r1, r2 - lsls r0, r4, #3 - adds r0, r0, r2 - ldrb r1, [r1] - ldrb r0, [r0] - cmp r1, r0 - bne _0805444A - adds r3, r7, #0 -_0805444A: - strb r4, [r6] - strb r3, [r5] - ldr r1, _08054460 @ =gUnk_0200AF00 - movs r0, #0x7f - strb r0, [r1, #0x13] - strb r0, [r1, #0x14] -_08054456: - pop {r4, r5, r6, r7, pc} - .align 2, 0 -_08054458: .4byte gUnk_02002A40 -_0805445C: .4byte gUnk_080FD5B4 -_08054460: .4byte gUnk_0200AF00 - - thumb_func_start SetBottleContents -SetBottleContents: @ 0x08054464 - push {r4, lr} - adds r4, r0, #0 - ldr r3, _08054498 @ =gUnk_02002A40 - cmp r1, #3 - bls _0805448C - movs r1, #0 - adds r2, r3, #0 - adds r2, #0xb6 - ldrb r0, [r2] - cmp r0, #0x20 - beq _08054488 -_0805447A: - adds r1, #1 - cmp r1, #3 - bhi _08054494 - adds r0, r1, r2 - ldrb r0, [r0] - cmp r0, #0x20 - bne _0805447A -_08054488: - cmp r1, #3 - bhi _08054494 -_0805448C: - adds r0, r3, #0 - adds r0, #0xb6 - adds r0, r1, r0 - strb r4, [r0] -_08054494: - adds r0, r1, #0 - pop {r4, pc} - .align 2, 0 -_08054498: .4byte gUnk_02002A40 - - thumb_func_start sub_0805449C -sub_0805449C: @ 0x0805449C - push {lr} - cmp r0, #1 - blo _080544AE - cmp r0, #4 - bls _080544AA - cmp r0, #6 - bne _080544AE -_080544AA: - movs r0, #1 - b _080544B0 -_080544AE: - movs r0, #0 -_080544B0: - pop {pc} - .align 2, 0 - - thumb_func_start sub_080544B4 -sub_080544B4: @ 0x080544B4 - push {lr} - cmp r0, #0xe - bhi _080544C2 - cmp r0, #0xd - blo _080544C2 - movs r0, #1 - b _080544C4 -_080544C2: - movs r0, #0 -_080544C4: - pop {pc} - .align 2, 0 - - thumb_func_start sub_080544C8 -sub_080544C8: @ 0x080544C8 - push {lr} - cmp r0, #0x1f - bhi _080544D6 - cmp r0, #0x1c - blo _080544D6 - movs r0, #1 - b _080544D8 -_080544D6: - movs r0, #0 -_080544D8: - pop {pc} - .align 2, 0 - - thumb_func_start sub_080544DC -sub_080544DC: @ 0x080544DC - push {lr} - adds r2, r0, #0 - ldr r1, _080544F0 @ =gUnk_02002A40 - adds r0, r1, #0 - adds r0, #0xb6 - ldrb r0, [r0] - cmp r2, r0 - bne _080544F4 - movs r0, #1 - b _08054520 - .align 2, 0 -_080544F0: .4byte gUnk_02002A40 -_080544F4: - adds r0, r1, #0 - adds r0, #0xb7 - ldrb r0, [r0] - cmp r2, r0 - bne _08054502 - movs r0, #2 - b _08054520 -_08054502: - adds r0, r1, #0 - adds r0, #0xb8 - ldrb r0, [r0] - cmp r2, r0 - bne _08054510 - movs r0, #3 - b _08054520 -_08054510: - adds r0, r1, #0 - adds r0, #0xb9 - ldrb r0, [r0] - cmp r2, r0 - beq _0805451E - movs r0, #0 - b _08054520 -_0805451E: - movs r0, #4 -_08054520: - pop {pc} - .align 2, 0 - - thumb_func_start sub_08054524 -sub_08054524: @ 0x08054524 - push {lr} - ldr r0, _08054550 @ =gArea - ldrb r1, [r0, #1] - cmp r1, #0 - bne _08054534 - ldr r0, _08054554 @ =gUnk_030010A0 - adds r0, #0x2e - ldrb r1, [r0] -_08054534: - cmp r1, #0x16 - bls _0805453A - movs r1, #0 -_0805453A: - ldr r0, _08054558 @ =gUnk_080FE1C6 - adds r0, r1, r0 - ldrb r1, [r0] - lsls r0, r1, #5 - ldr r1, _0805455C @ =gUnk_080015BC - adds r0, r0, r1 - ldr r1, _08054560 @ =gUnk_02034398 - movs r2, #0x20 - bl sub_0801D66C - pop {pc} - .align 2, 0 -_08054550: .4byte gArea -_08054554: .4byte gUnk_030010A0 -_08054558: .4byte gUnk_080FE1C6 -_0805455C: .4byte gUnk_080015BC -_08054560: .4byte gUnk_02034398 - - thumb_func_start sub_08054564 -sub_08054564: @ 0x08054564 - ldr r1, _0805456C @ =gRoomVars - movs r0, #1 - strb r0, [r1, #2] - bx lr - .align 2, 0 -_0805456C: .4byte gRoomVars - - thumb_func_start sub_08054570 -sub_08054570: @ 0x08054570 - ldr r1, _08054578 @ =gRoomVars - movs r0, #0 - strb r0, [r1, #2] - bx lr - .align 2, 0 -_08054578: .4byte gRoomVars - - thumb_func_start sub_0805457C -sub_0805457C: @ 0x0805457C - push {r4, r5, r6, r7, lr} - sub sp, #0x20 - adds r6, r0, #0 - adds r3, r1, #0 - ldr r0, _080545A4 @ =gRoomVars - ldrb r1, [r0, #2] - adds r5, r0, #0 - cmp r1, #1 - bne _08054590 - b _0805474C -_08054590: - ldr r2, _080545A8 @ =gUnk_08001A1C - movs r4, #0 - cmp r3, #0x19 - bhi _0805463C - lsls r0, r3, #2 - ldr r1, _080545AC @ =_080545B0 - adds r0, r0, r1 - ldr r0, [r0] - mov pc, r0 - .align 2, 0 -_080545A4: .4byte gRoomVars -_080545A8: .4byte gUnk_08001A1C -_080545AC: .4byte _080545B0 -_080545B0: @ jump table - .4byte _0805463C @ case 0 - .4byte _08054618 @ case 1 - .4byte _08054618 @ case 2 - .4byte _08054618 @ case 3 - .4byte _08054618 @ case 4 - .4byte _08054618 @ case 5 - .4byte _08054618 @ case 6 - .4byte _08054618 @ case 7 - .4byte _08054618 @ case 8 - .4byte _08054618 @ case 9 - .4byte _08054618 @ case 10 - .4byte _08054618 @ case 11 - .4byte _08054618 @ case 12 - .4byte _0805463C @ case 13 - .4byte _0805463C @ case 14 - .4byte _0805463A @ case 15 - .4byte _08054634 @ case 16 - .4byte _08054634 @ case 17 - .4byte _08054634 @ case 18 - .4byte _08054634 @ case 19 - .4byte _08054634 @ case 20 - .4byte _08054634 @ case 21 - .4byte _08054634 @ case 22 - .4byte _08054634 @ case 23 - .4byte _08054624 @ case 24 - .4byte _08054624 @ case 25 -_08054618: - lsls r1, r3, #5 - ldr r0, _08054620 @ =gUnk_0800137C - adds r4, r1, r0 - b _0805463C - .align 2, 0 -_08054620: .4byte gUnk_0800137C -_08054624: - ldrb r0, [r5, #0xa] - ldr r4, _08054630 @ =gUnk_0800191C - cmp r0, #0 - beq _0805463C - adds r4, #0x20 - b _0805463C - .align 2, 0 -_08054630: .4byte gUnk_0800191C -_08054634: - lsls r1, r3, #5 - ldr r0, _08054650 @ =gUnk_0800161C - adds r2, r1, r0 -_0805463A: - ldr r4, _08054654 @ =gUnk_02034398 -_0805463C: - cmp r4, #0 - bne _08054642 - b _0805474C -_08054642: - ldr r0, _08054658 @ =gUnk_02002A40 - adds r0, #0xb3 - ldrb r1, [r0] - cmp r1, #0 - bne _08054660 - ldr r3, _0805465C @ =gUnk_08001A1C - b _08054666 - .align 2, 0 -_08054650: .4byte gUnk_0800161C -_08054654: .4byte gUnk_02034398 -_08054658: .4byte gUnk_02002A40 -_0805465C: .4byte gUnk_08001A1C -_08054660: - lsls r1, r1, #5 - ldr r0, _0805473C @ =gUnk_0800143C - adds r3, r1, r0 -_08054666: - mov r0, sp - adds r1, r4, #0 - bl sub_08000F14 - ldr r4, _08054740 @ =gUnk_02002A40 - adds r0, r4, #0 - adds r0, #0xaa - ldrb r0, [r0] - cmp r0, #8 - bhi _08054684 - mov r1, sp - mov r0, sp - ldrh r0, [r0, #8] - adds r0, #5 - strh r0, [r1, #8] -_08054684: - adds r0, r4, #0 - adds r0, #0xac - ldrb r0, [r0] - cmp r0, #0 - bne _08054698 - mov r1, sp - mov r0, sp - ldrh r0, [r0, #0xc] - adds r0, #3 - strh r0, [r1, #0xc] -_08054698: - adds r0, r4, #0 - adds r0, #0xad - ldrb r0, [r0] - cmp r0, #0 - bne _080546AC - mov r1, sp - mov r0, sp - ldrh r0, [r0, #0xe] - adds r0, #3 - strh r0, [r1, #0xe] -_080546AC: - adds r0, r4, #0 - adds r0, #0xc0 - ldrh r0, [r0] - cmp r0, #0xa - bhi _080546C0 - mov r1, sp - mov r0, sp - ldrh r0, [r0, #4] - adds r0, #1 - strh r0, [r1, #4] -_080546C0: - ldr r2, _08054744 @ =gUnk_08001A1C - adds r0, r4, #0 - adds r0, #0xbb - ldrb r0, [r0] - adds r3, r2, #0 - cmp r0, #0 - beq _080546D0 - adds r2, #0x20 -_080546D0: - movs r1, #0x8b - lsls r1, r1, #1 - adds r0, r4, r1 - ldrb r0, [r0] - cmp r0, #0 - beq _080546DE - adds r3, #0x40 -_080546DE: - mov r0, sp - mov r1, sp - bl sub_08000F2C - adds r4, r0, #0 - bl Random - adds r2, r0, #0 - asrs r5, r2, #0x18 - movs r0, #0xf - ands r5, r0 - adds r0, r2, #0 - adds r1, r4, #0 - bl __modsi3 - adds r2, r0, #0 - movs r3, #0 - lsls r0, r5, #1 - add r0, sp - movs r4, #0 - ldrsh r1, [r0, r4] - cmp r1, r2 - bgt _08054726 - movs r4, #0xf -_0805470E: - adds r3, #1 - adds r5, #1 - ands r5, r4 - cmp r3, #0xf - bhi _08054726 - lsls r0, r5, #1 - add r0, sp - movs r7, #0 - ldrsh r0, [r0, r7] - adds r1, r1, r0 - cmp r1, r2 - ble _0805470E -_08054726: - ldr r0, _08054748 @ =gUnk_080FE1B4 - adds r0, r5, r0 - ldrb r1, [r0] - cmp r1, #0 - beq _0805474C - adds r0, r6, #0 - movs r2, #0 - bl CreateItemDrop - b _0805474E - .align 2, 0 -_0805473C: .4byte gUnk_0800143C -_08054740: .4byte gUnk_02002A40 -_08054744: .4byte gUnk_08001A1C -_08054748: .4byte gUnk_080FE1B4 -_0805474C: - movs r0, #0 -_0805474E: - add sp, #0x20 - pop {r4, r5, r6, r7, pc} - .align 2, 0 - - thumb_func_start CreateItemDrop -CreateItemDrop: @ 0x08054754 - push {r4, r5, r6, lr} - adds r6, r0, #0 - adds r4, r1, #0 - adds r5, r2, #0 - cmp r4, #0x5e - beq _08054786 - cmp r4, #0x5e - bhi _08054772 - cmp r4, #0x5c - beq _080547A6 - cmp r4, #0x5c - bhi _08054782 - cmp r4, #0x3f - beq _08054794 - b _080547DA -_08054772: - cmp r4, #0xfc - blo _080547DA - cmp r4, #0xfe - bls _080547A6 - cmp r4, #0xff - bne _080547DA - movs r0, #1 - b _08054788 -_08054782: - movs r0, #0x65 - b _08054788 -_08054786: - movs r0, #9 -_08054788: - bl GetInventoryValue - cmp r0, #0 - bne _080547DA -_08054790: - movs r0, #0 - b _0805486C -_08054794: - movs r0, #0x40 - bl GetInventoryValue - cmp r0, #0 - beq _08054790 - cmp r5, #0 - bne _080547DA - movs r5, #1 - b _080547DA -_080547A6: - movs r0, #0x67 - bl GetInventoryValue - cmp r0, #0 - beq _08054790 - ldr r0, _080547FC @ =gRoomVars - ldrb r0, [r0, #5] - cmp r0, #3 - bhi _08054790 - cmp r4, #0x5c - beq _080547DA - adds r5, r4, #0 - subs r5, #0xfc - bl Random - movs r1, #0x3f - ands r1, r0 - ldr r2, _08054800 @ =gUnk_080FE1DD - lsls r0, r5, #6 - adds r1, r1, r0 - adds r1, r1, r2 - ldrb r5, [r1] - movs r4, #0x5c - cmp r5, #0 - bne _080547DA - movs r4, #0 -_080547DA: - cmp r4, #0 - beq _0805486A - cmp r4, #0xff - beq _08054842 - movs r0, #0 - adds r1, r4, #0 - adds r2, r5, #0 - bl CreateObject - adds r2, r0, #0 - cmp r2, #0 - beq _0805486A - ldr r0, _08054804 @ =gLinkEntity - cmp r6, r0 - bne _08054808 - movs r0, #1 - b _0805480A - .align 2, 0 -_080547FC: .4byte gRoomVars -_08054800: .4byte gUnk_080FE1DD -_08054804: .4byte gLinkEntity -_08054808: - movs r0, #0 -_0805480A: - strb r0, [r2, #0xe] - ldrb r0, [r6, #8] - cmp r0, #6 - bne _08054838 - ldrb r0, [r6, #9] - cmp r0, #0x63 - bne _0805481C - str r2, [r6, #0x54] - b _08054838 -_0805481C: - cmp r0, #0x1e - bne _08054838 - ldrb r0, [r6, #0x14] - lsls r0, r0, #3 - movs r3, #0x80 - rsbs r3, r3, #0 - adds r1, r3, #0 - orrs r0, r1 - strb r0, [r2, #0x15] - movs r0, #0xc0 - strh r0, [r2, #0x24] - movs r0, #0xc0 - lsls r0, r0, #9 - str r0, [r2, #0x20] -_08054838: - adds r0, r6, #0 - adds r1, r2, #0 - bl CopyPosition - b _0805486A -_08054842: - movs r0, #7 - movs r1, #0 - bl CreateEnemy - adds r2, r0, #0 - cmp r2, #0 - beq _0805486A - ldrh r0, [r6, #0x2e] - strh r0, [r2, #0x2e] - ldrh r0, [r6, #0x32] - strh r0, [r2, #0x32] - adds r0, r6, #0 - adds r0, #0x38 - ldrb r1, [r0] - adds r0, r2, #0 - adds r0, #0x38 - strb r1, [r0] - adds r0, r2, #0 - bl UpdateSpriteForCollisionLayer -_0805486A: - adds r0, r4, #0 -_0805486C: - pop {r4, r5, r6, pc} - .align 2, 0 - - thumb_func_start sub_08054870 -sub_08054870: @ 0x08054870 - push {lr} - ldr r1, _08054884 @ =gUnk_080FE2A0 - ldr r0, _08054888 @ =gUnk_02000080 - ldrb r0, [r0, #5] - lsls r0, r0, #2 - adds r0, r0, r1 - ldr r0, [r0] - bl _call_via_r0 - pop {pc} - .align 2, 0 -_08054884: .4byte gUnk_080FE2A0 -_08054888: .4byte gUnk_02000080 thumb_func_start sub_0805488C sub_0805488C: @ 0x0805488C @@ -717,7 +16,7 @@ sub_0805488C: @ 0x0805488C lsls r0, r0, #2 ldr r1, _080548E0 @ =gUnk_080FE320 adds r0, r0, r1 - ldr r2, _080548E4 @ =gUnk_02000080 + ldr r2, _080548E4 @ =gMenu ldrb r1, [r0] movs r3, #0 strb r1, [r2] @@ -746,13 +45,13 @@ sub_0805488C: @ 0x0805488C .align 2, 0 _080548DC: .4byte gUnk_02032EC0 _080548E0: .4byte gUnk_080FE320 -_080548E4: .4byte gUnk_02000080 +_080548E4: .4byte gMenu thumb_func_start sub_080548E8 sub_080548E8: @ 0x080548E8 push {lr} ldr r1, _08054918 @ =gUnk_080FE2AC - ldr r0, _0805491C @ =gUnk_02000080 + ldr r0, _0805491C @ =gMenu ldrb r0, [r0] lsls r0, r0, #2 adds r0, r0, r1 @@ -768,7 +67,7 @@ sub_080548E8: @ 0x080548E8 pop {pc} .align 2, 0 _08054918: .4byte gUnk_080FE2AC -_0805491C: .4byte gUnk_02000080 +_0805491C: .4byte gMenu thumb_func_start sub_08054920 sub_08054920: @ 0x08054920 @@ -806,12 +105,12 @@ _08054964: .4byte gUnk_02032EC0 thumb_func_start sub_08054968 sub_08054968: @ 0x08054968 - ldr r1, _08054970 @ =gUnk_02000080 + ldr r1, _08054970 @ =gMenu movs r0, #2 strb r0, [r1, #5] bx lr .align 2, 0 -_08054970: .4byte gUnk_02000080 +_08054970: .4byte gMenu thumb_func_start sub_08054974 sub_08054974: @ 0x08054974 @@ -1061,7 +360,7 @@ _08054B52: strb r0, [r1] _08054B68: movs r0, #0x10 - bl sub_0805436C + bl IsItemEquipped cmp r0, #1 bhi _08054BFC ldrb r0, [r4, #0x1e] @@ -1139,7 +438,7 @@ _08054C00: sub_08054C04: @ 0x08054C04 push {lr} ldr r1, _08054C18 @ =gUnk_080FEEB8 - ldr r0, _08054C1C @ =gUnk_02000080 + ldr r0, _08054C1C @ =gMenu ldrb r0, [r0, #6] lsls r0, r0, #2 adds r0, r0, r1 @@ -1148,12 +447,12 @@ sub_08054C04: @ 0x08054C04 pop {pc} .align 2, 0 _08054C18: .4byte gUnk_080FEEB8 -_08054C1C: .4byte gUnk_02000080 +_08054C1C: .4byte gMenu thumb_func_start sub_08054C20 sub_08054C20: @ 0x08054C20 push {r4, lr} - ldr r4, _08054C50 @ =gUnk_02000080 + ldr r4, _08054C50 @ =gMenu ldrb r0, [r4, #4] movs r1, #0 movs r2, #0 @@ -1173,7 +472,7 @@ sub_08054C20: @ 0x08054C20 bl DoFade pop {r4, pc} .align 2, 0 -_08054C50: .4byte gUnk_02000080 +_08054C50: .4byte gMenu _08054C54: .4byte gUnk_02000070 thumb_func_start sub_08054C58 @@ -1190,7 +489,7 @@ sub_08054C58: @ 0x08054C58 movs r0, #7 movs r1, #0x10 bl DoFade - ldr r1, _08054C84 @ =gUnk_02000080 + ldr r1, _08054C84 @ =gMenu ldrb r0, [r1, #6] adds r0, #1 strb r0, [r1, #6] @@ -1198,7 +497,7 @@ _08054C7C: pop {pc} .align 2, 0 _08054C80: .4byte gUnk_03000FD0 -_08054C84: .4byte gUnk_02000080 +_08054C84: .4byte gMenu thumb_func_start sub_08054C88 sub_08054C88: @ 0x08054C88 @@ -1207,7 +506,7 @@ sub_08054C88: @ 0x08054C88 ldrb r0, [r0] cmp r0, #0 bne _08054CB4 - ldr r4, _08054CBC @ =gUnk_02000080 + ldr r4, _08054CBC @ =gMenu ldrb r0, [r4, #4] movs r1, #0 bl sub_08054974 @@ -1225,7 +524,7 @@ _08054CB4: pop {r4, pc} .align 2, 0 _08054CB8: .4byte gUnk_03000FD0 -_08054CBC: .4byte gUnk_02000080 +_08054CBC: .4byte gMenu thumb_func_start sub_08054CC0 sub_08054CC0: @ 0x08054CC0 @@ -1234,7 +533,7 @@ sub_08054CC0: @ 0x08054CC0 ldrb r0, [r0] cmp r0, #0 bne _08054CDE - ldr r1, _08054CE4 @ =gUnk_02000080 + ldr r1, _08054CE4 @ =gMenu ldrh r0, [r1, #8] subs r0, #1 strh r0, [r1, #8] @@ -1248,13 +547,13 @@ _08054CDE: pop {pc} .align 2, 0 _08054CE0: .4byte gUnk_03000FD0 -_08054CE4: .4byte gUnk_02000080 +_08054CE4: .4byte gMenu thumb_func_start sub_08054CE8 sub_08054CE8: @ 0x08054CE8 push {lr} ldr r1, _08054CFC @ =gUnk_080FEEC8 - ldr r0, _08054D00 @ =gUnk_02000080 + ldr r0, _08054D00 @ =gMenu ldrb r0, [r0, #6] lsls r0, r0, #2 adds r0, r0, r1 @@ -1263,12 +562,12 @@ sub_08054CE8: @ 0x08054CE8 pop {pc} .align 2, 0 _08054CFC: .4byte gUnk_080FEEC8 -_08054D00: .4byte gUnk_02000080 +_08054D00: .4byte gMenu thumb_func_start sub_08054D04 sub_08054D04: @ 0x08054D04 push {r4, lr} - ldr r4, _08054D34 @ =gUnk_02000080 + ldr r4, _08054D34 @ =gMenu ldr r1, [r4, #0xc] ldrb r0, [r1, #2] ldrb r1, [r1, #3] @@ -1289,7 +588,7 @@ sub_08054D04: @ 0x08054D04 bl DoFade pop {r4, pc} .align 2, 0 -_08054D34: .4byte gUnk_02000080 +_08054D34: .4byte gMenu _08054D38: .4byte gUnk_02000070 thumb_func_start sub_08054D3C @@ -1303,7 +602,7 @@ sub_08054D3C: @ 0x08054D3C bl CheckRoomFlag cmp r0, #0 beq _08054D6A - ldr r4, _08054D70 @ =gUnk_02000080 + ldr r4, _08054D70 @ =gMenu ldrb r0, [r4, #4] movs r1, #1 bl sub_0801876C @@ -1318,12 +617,12 @@ _08054D6A: pop {r4, pc} .align 2, 0 _08054D6C: .4byte gUnk_03000FD0 -_08054D70: .4byte gUnk_02000080 +_08054D70: .4byte gMenu thumb_func_start sub_08054D74 sub_08054D74: @ 0x08054D74 push {lr} - ldr r1, _08054D8C @ =gUnk_02000080 + ldr r1, _08054D8C @ =gMenu ldrh r0, [r1, #8] subs r0, #1 strh r0, [r1, #8] @@ -1336,13 +635,13 @@ sub_08054D74: @ 0x08054D74 _08054D8A: pop {pc} .align 2, 0 -_08054D8C: .4byte gUnk_02000080 +_08054D8C: .4byte gMenu thumb_func_start sub_08054D90 sub_08054D90: @ 0x08054D90 push {lr} ldr r1, _08054DA4 @ =gUnk_080FEF34 - ldr r0, _08054DA8 @ =gUnk_02000080 + ldr r0, _08054DA8 @ =gMenu ldrb r0, [r0, #6] lsls r0, r0, #2 adds r0, r0, r1 @@ -1351,12 +650,12 @@ sub_08054D90: @ 0x08054D90 pop {pc} .align 2, 0 _08054DA4: .4byte gUnk_080FEF34 -_08054DA8: .4byte gUnk_02000080 +_08054DA8: .4byte gMenu thumb_func_start sub_08054DAC sub_08054DAC: @ 0x08054DAC push {r4, lr} - ldr r4, _08054DF0 @ =gUnk_02000080 + ldr r4, _08054DF0 @ =gMenu ldr r1, [r4, #0xc] ldrb r0, [r1, #2] ldrb r1, [r1, #3] @@ -1383,7 +682,7 @@ sub_08054DAC: @ 0x08054DAC bl DoFade pop {r4, pc} .align 2, 0 -_08054DF0: .4byte gUnk_02000080 +_08054DF0: .4byte gMenu _08054DF4: .4byte gUnk_080FEED4 _08054DF8: .4byte gUnk_02000070 @@ -1396,7 +695,7 @@ nullsub_484: @ 0x08054DFC sub_08054E00: @ 0x08054E00 push {lr} ldr r1, _08054E14 @ =gUnk_080FEF3C - ldr r0, _08054E18 @ =gUnk_02000080 + ldr r0, _08054E18 @ =gMenu ldrb r0, [r0, #6] lsls r0, r0, #2 adds r0, r0, r1 @@ -1405,12 +704,12 @@ sub_08054E00: @ 0x08054E00 pop {pc} .align 2, 0 _08054E14: .4byte gUnk_080FEF3C -_08054E18: .4byte gUnk_02000080 +_08054E18: .4byte gMenu thumb_func_start sub_08054E1C sub_08054E1C: @ 0x08054E1C push {r4, r5, lr} - ldr r5, _08054E54 @ =gUnk_02000080 + ldr r5, _08054E54 @ =gMenu ldr r4, [r5, #0xc] ldrb r0, [r4, #2] ldrb r1, [r4, #3] @@ -1434,7 +733,7 @@ sub_08054E1C: @ 0x08054E1C bl DoFade pop {r4, r5, pc} .align 2, 0 -_08054E54: .4byte gUnk_02000080 +_08054E54: .4byte gMenu _08054E58: .4byte gUnk_02000070 thumb_func_start sub_08054E5C @@ -1448,7 +747,7 @@ sub_08054E5C: @ 0x08054E5C bl CheckRoomFlag cmp r0, #0 beq _08054E92 - ldr r4, _08054E98 @ =gUnk_02000080 + ldr r4, _08054E98 @ =gMenu ldrb r0, [r4, #6] adds r0, #1 strb r0, [r4, #6] @@ -1466,12 +765,12 @@ _08054E92: pop {r4, pc} .align 2, 0 _08054E94: .4byte gUnk_03000FD0 -_08054E98: .4byte gUnk_02000080 +_08054E98: .4byte gMenu thumb_func_start sub_08054E9C sub_08054E9C: @ 0x08054E9C push {lr} - ldr r1, _08054EB4 @ =gUnk_02000080 + ldr r1, _08054EB4 @ =gMenu ldrh r0, [r1, #8] subs r0, #1 strh r0, [r1, #8] @@ -1484,7 +783,7 @@ sub_08054E9C: @ 0x08054E9C _08054EB2: pop {pc} .align 2, 0 -_08054EB4: .4byte gUnk_02000080 +_08054EB4: .4byte gMenu thumb_func_start sub_08054EB8 sub_08054EB8: @ 0x08054EB8 @@ -1602,7 +901,7 @@ _08054F8C: sub_08054F90: @ 0x08054F90 push {lr} ldr r1, _08054FA4 @ =gUnk_080FF120 - ldr r0, _08054FA8 @ =gUnk_02000080 + ldr r0, _08054FA8 @ =gMenu ldrb r0, [r0, #6] lsls r0, r0, #2 adds r0, r0, r1 @@ -1611,12 +910,12 @@ sub_08054F90: @ 0x08054F90 pop {pc} .align 2, 0 _08054FA4: .4byte gUnk_080FF120 -_08054FA8: .4byte gUnk_02000080 +_08054FA8: .4byte gMenu thumb_func_start sub_08054FAC sub_08054FAC: @ 0x08054FAC push {r4, r5, r6, lr} - ldr r6, _08055008 @ =gUnk_02000080 + ldr r6, _08055008 @ =gMenu ldr r5, [r6, #0xc] ldr r1, _0805500C @ =gUnk_080FF108 ldrb r0, [r5, #1] @@ -1659,14 +958,14 @@ _08054FCA: _08055004: pop {r4, r5, r6, pc} .align 2, 0 -_08055008: .4byte gUnk_02000080 +_08055008: .4byte gMenu _0805500C: .4byte gUnk_080FF108 _08055010: .4byte gUnk_02000070 thumb_func_start sub_08055014 sub_08055014: @ 0x08055014 push {lr} - ldr r1, _08055030 @ =gUnk_02000080 + ldr r1, _08055030 @ =gMenu ldrh r0, [r1, #0xa] cmp r0, #0 beq _0805502C @@ -1679,14 +978,14 @@ sub_08055014: @ 0x08055014 _0805502C: pop {pc} .align 2, 0 -_08055030: .4byte gUnk_02000080 +_08055030: .4byte gMenu _08055034: .4byte 0x00000407 thumb_func_start sub_08055038 sub_08055038: @ 0x08055038 push {lr} ldr r1, _0805504C @ =gUnk_080FF148 - ldr r0, _08055050 @ =gUnk_02000080 + ldr r0, _08055050 @ =gMenu ldrb r0, [r0, #6] lsls r0, r0, #2 adds r0, r0, r1 @@ -1695,14 +994,14 @@ sub_08055038: @ 0x08055038 pop {pc} .align 2, 0 _0805504C: .4byte gUnk_080FF148 -_08055050: .4byte gUnk_02000080 +_08055050: .4byte gMenu thumb_func_start sub_08055054 sub_08055054: @ 0x08055054 push {r4, lr} ldr r0, _08055080 @ =gUnk_080FF128 bl LoadRoomEntityList - ldr r4, _08055084 @ =gUnk_02000080 + ldr r4, _08055084 @ =gMenu ldrb r0, [r4, #4] movs r1, #2 movs r2, #0 @@ -1720,7 +1019,7 @@ sub_08055054: @ 0x08055054 pop {r4, pc} .align 2, 0 _08055080: .4byte gUnk_080FF128 -_08055084: .4byte gUnk_02000080 +_08055084: .4byte gMenu _08055088: .4byte gUnk_02000070 thumb_func_start sub_0805508C @@ -1737,7 +1036,7 @@ sub_08055090: @ 0x08055090 sub_08055094: @ 0x08055094 push {lr} ldr r1, _080550A8 @ =gUnk_080FF174 - ldr r0, _080550AC @ =gUnk_02000080 + ldr r0, _080550AC @ =gMenu ldrb r0, [r0, #6] lsls r0, r0, #2 adds r0, r0, r1 @@ -1746,12 +1045,12 @@ sub_08055094: @ 0x08055094 pop {pc} .align 2, 0 _080550A8: .4byte gUnk_080FF174 -_080550AC: .4byte gUnk_02000080 +_080550AC: .4byte gMenu thumb_func_start sub_080550B0 sub_080550B0: @ 0x080550B0 push {r4, lr} - ldr r4, _080550E8 @ =gUnk_02000080 + ldr r4, _080550E8 @ =gMenu ldr r1, [r4, #0xc] ldrb r0, [r1, #2] ldrb r1, [r1, #3] @@ -1774,7 +1073,7 @@ sub_080550B0: @ 0x080550B0 bl DoFade pop {r4, pc} .align 2, 0 -_080550E8: .4byte gUnk_02000080 +_080550E8: .4byte gMenu _080550EC: .4byte gUnk_080FF154 _080550F0: .4byte gUnk_02000070 @@ -1787,7 +1086,7 @@ nullsub_487: @ 0x080550F4 sub_080550F8: @ 0x080550F8 push {lr} ldr r1, _0805510C @ =gUnk_080FF1CC - ldr r0, _08055110 @ =gUnk_02000080 + ldr r0, _08055110 @ =gMenu ldrb r0, [r0, #6] lsls r0, r0, #2 adds r0, r0, r1 @@ -1796,7 +1095,7 @@ sub_080550F8: @ 0x080550F8 pop {pc} .align 2, 0 _0805510C: .4byte gUnk_080FF1CC -_08055110: .4byte gUnk_02000080 +_08055110: .4byte gMenu thumb_func_start sub_08055114 sub_08055114: @ 0x08055114 @@ -1810,7 +1109,7 @@ sub_08055114: @ 0x08055114 ldr r0, _08055158 @ =0x00000DB4 bl sub_08018C58 _0805512A: - ldr r4, _0805515C @ =gUnk_02000080 + ldr r4, _0805515C @ =gMenu ldrb r0, [r4, #4] movs r1, #0 movs r2, #0 @@ -1830,7 +1129,7 @@ _0805512A: _08055150: .4byte gUnk_080FF17C _08055154: .4byte gUnk_02002A40 _08055158: .4byte 0x00000DB4 -_0805515C: .4byte gUnk_02000080 +_0805515C: .4byte gMenu _08055160: .4byte gUnk_02000070 thumb_func_start nullsub_488 @@ -1842,7 +1141,7 @@ nullsub_488: @ 0x08055164 sub_08055168: @ 0x08055168 push {lr} ldr r1, _0805517C @ =gUnk_080FF1F4 - ldr r0, _08055180 @ =gUnk_02000080 + ldr r0, _08055180 @ =gMenu ldrb r0, [r0, #6] lsls r0, r0, #2 adds r0, r0, r1 @@ -1851,14 +1150,14 @@ sub_08055168: @ 0x08055168 pop {pc} .align 2, 0 _0805517C: .4byte gUnk_080FF1F4 -_08055180: .4byte gUnk_02000080 +_08055180: .4byte gMenu thumb_func_start sub_08055184 sub_08055184: @ 0x08055184 push {r4, r5, r6, lr} mov r6, r8 push {r6} - ldr r5, _0805520C @ =gUnk_02000080 + ldr r5, _0805520C @ =gMenu ldr r0, [r5, #0xc] ldrb r1, [r0, #1] movs r0, #0xf @@ -1920,7 +1219,7 @@ sub_08055184: @ 0x08055184 mov r8, r3 pop {r4, r5, r6, pc} .align 2, 0 -_0805520C: .4byte gUnk_02000080 +_0805520C: .4byte gMenu _08055210: .4byte gUnk_080FF1D4 _08055214: .4byte gScreen _08055218: .4byte 0x00001E05 @@ -1938,7 +1237,7 @@ sub_08055224: @ 0x08055224 bl CheckRoomFlag cmp r0, #0 beq _08055240 - ldr r1, _08055248 @ =gUnk_02000080 + ldr r1, _08055248 @ =gMenu ldrb r0, [r1, #6] adds r0, #1 strb r0, [r1, #6] @@ -1946,12 +1245,12 @@ _08055240: pop {pc} .align 2, 0 _08055244: .4byte gUnk_03000FD0 -_08055248: .4byte gUnk_02000080 +_08055248: .4byte gMenu thumb_func_start sub_0805524C sub_0805524C: @ 0x0805524C push {r4, lr} - ldr r3, _08055270 @ =gUnk_02000080 + ldr r3, _08055270 @ =gMenu ldrb r0, [r3, #7] cmp r0, #0 bne _08055274 @@ -1968,7 +1267,7 @@ sub_0805524C: @ 0x0805524C bl PlaySFX b _080552D6 .align 2, 0 -_08055270: .4byte gUnk_02000080 +_08055270: .4byte gMenu _08055274: ldr r0, _080552A4 @ =gUnk_030010A0 ldr r0, [r0] @@ -2024,7 +1323,7 @@ _080552DC: .4byte 0x0000F7FF thumb_func_start sub_080552E0 sub_080552E0: @ 0x080552E0 push {lr} - ldr r1, _080552F8 @ =gUnk_02000080 + ldr r1, _080552F8 @ =gMenu ldrh r0, [r1, #8] subs r0, #1 strh r0, [r1, #8] @@ -2037,13 +1336,13 @@ sub_080552E0: @ 0x080552E0 _080552F6: pop {pc} .align 2, 0 -_080552F8: .4byte gUnk_02000080 +_080552F8: .4byte gMenu thumb_func_start sub_080552FC sub_080552FC: @ 0x080552FC push {lr} ldr r1, _08055310 @ =gUnk_080FF228 - ldr r0, _08055314 @ =gUnk_02000080 + ldr r0, _08055314 @ =gMenu ldrb r0, [r0, #6] lsls r0, r0, #2 adds r0, r0, r1 @@ -2052,12 +1351,12 @@ sub_080552FC: @ 0x080552FC pop {pc} .align 2, 0 _08055310: .4byte gUnk_080FF228 -_08055314: .4byte gUnk_02000080 +_08055314: .4byte gMenu thumb_func_start sub_08055318 sub_08055318: @ 0x08055318 push {r4, lr} - ldr r4, _08055348 @ =gUnk_02000080 + ldr r4, _08055348 @ =gMenu ldrb r0, [r4, #4] movs r1, #0 movs r2, #0 @@ -2077,7 +1376,7 @@ sub_08055318: @ 0x08055318 bl DoFade pop {r4, pc} .align 2, 0 -_08055348: .4byte gUnk_02000080 +_08055348: .4byte gMenu _0805534C: .4byte gUnk_02000070 thumb_func_start sub_08055350 @@ -2094,7 +1393,7 @@ sub_08055350: @ 0x08055350 movs r0, #7 movs r1, #0x10 bl DoFade - ldr r1, _0805537C @ =gUnk_02000080 + ldr r1, _0805537C @ =gMenu ldrb r0, [r1, #6] adds r0, #1 strb r0, [r1, #6] @@ -2102,7 +1401,7 @@ _08055374: pop {pc} .align 2, 0 _08055378: .4byte gUnk_03000FD0 -_0805537C: .4byte gUnk_02000080 +_0805537C: .4byte gMenu thumb_func_start sub_08055380 sub_08055380: @ 0x08055380 @@ -2111,7 +1410,7 @@ sub_08055380: @ 0x08055380 ldrb r0, [r0] cmp r0, #0 bne _080553AC - ldr r4, _080553B4 @ =gUnk_02000080 + ldr r4, _080553B4 @ =gMenu ldrb r0, [r4, #4] movs r1, #0 bl sub_08054974 @@ -2129,7 +1428,7 @@ _080553AC: pop {r4, pc} .align 2, 0 _080553B0: .4byte gUnk_03000FD0 -_080553B4: .4byte gUnk_02000080 +_080553B4: .4byte gMenu thumb_func_start sub_080553B8 sub_080553B8: @ 0x080553B8 @@ -2138,7 +1437,7 @@ sub_080553B8: @ 0x080553B8 ldrb r0, [r0] cmp r0, #0 bne _080553D6 - ldr r1, _080553DC @ =gUnk_02000080 + ldr r1, _080553DC @ =gMenu ldrh r0, [r1, #8] subs r0, #1 strh r0, [r1, #8] @@ -2152,12 +1451,12 @@ _080553D6: pop {pc} .align 2, 0 _080553D8: .4byte gUnk_03000FD0 -_080553DC: .4byte gUnk_02000080 +_080553DC: .4byte gMenu thumb_func_start sub_080553E0 sub_080553E0: @ 0x080553E0 push {r4, lr} - ldr r0, _0805540C @ =gUnk_02000080 + ldr r0, _0805540C @ =gMenu ldr r4, [r0, #0xc] movs r0, #0xf movs r1, #0x43 @@ -2178,14 +1477,14 @@ sub_080553E0: @ 0x080553E0 _08055408: pop {r4, pc} .align 2, 0 -_0805540C: .4byte gUnk_02000080 +_0805540C: .4byte gMenu _08055410: .4byte gRoomControls thumb_func_start sub_08055414 sub_08055414: @ 0x08055414 push {lr} ldr r1, _08055428 @ =gUnk_080FF238 - ldr r0, _0805542C @ =gUnk_02000080 + ldr r0, _0805542C @ =gMenu ldrb r0, [r0, #6] lsls r0, r0, #2 adds r0, r0, r1 @@ -2194,12 +1493,12 @@ sub_08055414: @ 0x08055414 pop {pc} .align 2, 0 _08055428: .4byte gUnk_080FF238 -_0805542C: .4byte gUnk_02000080 +_0805542C: .4byte gMenu thumb_func_start sub_08055430 sub_08055430: @ 0x08055430 push {r4, lr} - ldr r4, _08055460 @ =gUnk_02000080 + ldr r4, _08055460 @ =gMenu ldr r1, [r4, #0xc] ldrb r0, [r1, #2] ldrb r1, [r1, #3] @@ -2220,7 +1519,7 @@ sub_08055430: @ 0x08055430 bl DoFade pop {r4, pc} .align 2, 0 -_08055460: .4byte gUnk_02000080 +_08055460: .4byte gMenu _08055464: .4byte gUnk_02000070 thumb_func_start sub_08055468 @@ -2237,7 +1536,7 @@ sub_08055468: @ 0x08055468 movs r0, #7 movs r1, #0x10 bl DoFade - ldr r1, _08055494 @ =gUnk_02000080 + ldr r1, _08055494 @ =gMenu ldrb r0, [r1, #6] adds r0, #1 strb r0, [r1, #6] @@ -2245,7 +1544,7 @@ _0805548C: pop {pc} .align 2, 0 _08055490: .4byte gUnk_03000FD0 -_08055494: .4byte gUnk_02000080 +_08055494: .4byte gMenu thumb_func_start sub_08055498 sub_08055498: @ 0x08055498 @@ -2254,7 +1553,7 @@ sub_08055498: @ 0x08055498 ldrb r0, [r0] cmp r0, #0 bne _080554CA - ldr r4, _080554D0 @ =gUnk_02000080 + ldr r4, _080554D0 @ =gMenu ldrb r0, [r4, #4] movs r1, #1 bl sub_0801876C @@ -2274,7 +1573,7 @@ _080554CA: pop {r4, pc} .align 2, 0 _080554CC: .4byte gUnk_03000FD0 -_080554D0: .4byte gUnk_02000080 +_080554D0: .4byte gMenu thumb_func_start sub_080554D4 sub_080554D4: @ 0x080554D4 @@ -2283,7 +1582,7 @@ sub_080554D4: @ 0x080554D4 ldrb r0, [r0] cmp r0, #0 bne _080554F2 - ldr r1, _080554F8 @ =gUnk_02000080 + ldr r1, _080554F8 @ =gMenu ldrh r0, [r1, #8] subs r0, #1 strh r0, [r1, #8] @@ -2297,13 +1596,13 @@ _080554F2: pop {pc} .align 2, 0 _080554F4: .4byte gUnk_03000FD0 -_080554F8: .4byte gUnk_02000080 +_080554F8: .4byte gMenu thumb_func_start sub_080554FC sub_080554FC: @ 0x080554FC push {lr} ldr r1, _08055510 @ =gUnk_080FF248 - ldr r0, _08055514 @ =gUnk_02000080 + ldr r0, _08055514 @ =gMenu ldrb r0, [r0, #6] lsls r0, r0, #2 adds r0, r0, r1 @@ -2312,12 +1611,12 @@ sub_080554FC: @ 0x080554FC pop {pc} .align 2, 0 _08055510: .4byte gUnk_080FF248 -_08055514: .4byte gUnk_02000080 +_08055514: .4byte gMenu thumb_func_start sub_08055518 sub_08055518: @ 0x08055518 push {r4, lr} - ldr r4, _08055540 @ =gUnk_02000080 + ldr r4, _08055540 @ =gMenu ldrb r0, [r4, #4] movs r1, #0 movs r2, #0 @@ -2334,7 +1633,7 @@ sub_08055518: @ 0x08055518 bl DoFade pop {r4, pc} .align 2, 0 -_08055540: .4byte gUnk_02000080 +_08055540: .4byte gMenu _08055544: .4byte gUnk_02000070 thumb_func_start sub_08055548 @@ -2348,7 +1647,7 @@ sub_08055548: @ 0x08055548 bl CheckRoomFlag cmp r0, #0 beq _08055576 - ldr r4, _0805557C @ =gUnk_02000080 + ldr r4, _0805557C @ =gMenu ldrb r0, [r4, #4] movs r1, #1 bl sub_0801876C @@ -2363,12 +1662,12 @@ _08055576: pop {r4, pc} .align 2, 0 _08055578: .4byte gUnk_03000FD0 -_0805557C: .4byte gUnk_02000080 +_0805557C: .4byte gMenu thumb_func_start sub_08055580 sub_08055580: @ 0x08055580 push {lr} - ldr r1, _08055598 @ =gUnk_02000080 + ldr r1, _08055598 @ =gMenu ldrh r0, [r1, #8] subs r0, #1 strh r0, [r1, #8] @@ -2381,13 +1680,13 @@ sub_08055580: @ 0x08055580 _08055596: pop {pc} .align 2, 0 -_08055598: .4byte gUnk_02000080 +_08055598: .4byte gMenu thumb_func_start sub_0805559C sub_0805559C: @ 0x0805559C push {lr} ldr r1, _080555B0 @ =gUnk_080FF254 - ldr r0, _080555B4 @ =gUnk_02000080 + ldr r0, _080555B4 @ =gMenu ldrb r0, [r0, #6] lsls r0, r0, #2 adds r0, r0, r1 @@ -2396,12 +1695,12 @@ sub_0805559C: @ 0x0805559C pop {pc} .align 2, 0 _080555B0: .4byte gUnk_080FF254 -_080555B4: .4byte gUnk_02000080 +_080555B4: .4byte gMenu thumb_func_start sub_080555B8 sub_080555B8: @ 0x080555B8 push {r4, r5, lr} - ldr r5, _08055600 @ =gUnk_02000080 + ldr r5, _08055600 @ =gMenu ldr r4, [r5, #0xc] ldr r1, _08055604 @ =gUnk_0811E454 ldrb r0, [r4, #0x11] @@ -2431,7 +1730,7 @@ sub_080555B8: @ 0x080555B8 bl DoFade pop {r4, r5, pc} .align 2, 0 -_08055600: .4byte gUnk_02000080 +_08055600: .4byte gMenu _08055604: .4byte gUnk_0811E454 _08055608: .4byte gUnk_02000070 @@ -2446,7 +1745,7 @@ sub_0805560C: @ 0x0805560C bl CheckRoomFlag cmp r0, #0 beq _08055628 - ldr r1, _08055630 @ =gUnk_02000080 + ldr r1, _08055630 @ =gMenu ldrb r0, [r1, #6] adds r0, #1 strb r0, [r1, #6] @@ -2454,12 +1753,12 @@ _08055628: pop {pc} .align 2, 0 _0805562C: .4byte gUnk_03000FD0 -_08055630: .4byte gUnk_02000080 +_08055630: .4byte gMenu thumb_func_start sub_08055634 sub_08055634: @ 0x08055634 push {r4, r5, lr} - ldr r4, _0805566C @ =gUnk_02000080 + ldr r4, _0805566C @ =gMenu ldr r5, [r4, #0xc] movs r0, #0x2c movs r1, #0 @@ -2486,13 +1785,13 @@ _0805565C: strh r0, [r4, #8] pop {r4, r5, pc} .align 2, 0 -_0805566C: .4byte gUnk_02000080 +_0805566C: .4byte gMenu _08055670: .4byte gRoomControls thumb_func_start sub_08055674 sub_08055674: @ 0x08055674 push {lr} - ldr r1, _0805568C @ =gUnk_02000080 + ldr r1, _0805568C @ =gMenu ldrh r0, [r1, #8] subs r0, #1 strh r0, [r1, #8] @@ -2505,13 +1804,13 @@ sub_08055674: @ 0x08055674 _0805568A: pop {pc} .align 2, 0 -_0805568C: .4byte gUnk_02000080 +_0805568C: .4byte gMenu thumb_func_start sub_08055690 sub_08055690: @ 0x08055690 push {lr} ldr r1, _080556A4 @ =gUnk_080FF284 - ldr r0, _080556A8 @ =gUnk_02000080 + ldr r0, _080556A8 @ =gMenu ldrb r0, [r0, #6] lsls r0, r0, #2 adds r0, r0, r1 @@ -2520,12 +1819,12 @@ sub_08055690: @ 0x08055690 pop {pc} .align 2, 0 _080556A4: .4byte gUnk_080FF284 -_080556A8: .4byte gUnk_02000080 +_080556A8: .4byte gMenu thumb_func_start sub_080556AC sub_080556AC: @ 0x080556AC push {r4, lr} - ldr r4, _080556E4 @ =gUnk_02000080 + ldr r4, _080556E4 @ =gMenu ldrb r0, [r4, #6] adds r0, #1 strb r0, [r4, #6] @@ -2548,7 +1847,7 @@ sub_080556AC: @ 0x080556AC bl DoFade pop {r4, pc} .align 2, 0 -_080556E4: .4byte gUnk_02000080 +_080556E4: .4byte gMenu _080556E8: .4byte gUnk_02000070 _080556EC: .4byte gUnk_080FF264 @@ -2561,7 +1860,7 @@ nullsub_489: @ 0x080556F0 sub_080556F4: @ 0x080556F4 push {lr} ldr r1, _08055708 @ =gUnk_080FF28C - ldr r0, _0805570C @ =gUnk_02000080 + ldr r0, _0805570C @ =gMenu ldrb r0, [r0, #6] lsls r0, r0, #2 adds r0, r0, r1 @@ -2570,12 +1869,12 @@ sub_080556F4: @ 0x080556F4 pop {pc} .align 2, 0 _08055708: .4byte gUnk_080FF28C -_0805570C: .4byte gUnk_02000080 +_0805570C: .4byte gMenu thumb_func_start sub_08055710 sub_08055710: @ 0x08055710 push {r4, lr} - ldr r4, _0805575C @ =gUnk_02000080 + ldr r4, _0805575C @ =gMenu ldr r1, [r4, #0xc] ldrb r0, [r1, #2] ldrb r1, [r1, #3] @@ -2609,7 +1908,7 @@ _08055734: bl DoFade pop {r4, pc} .align 2, 0 -_0805575C: .4byte gUnk_02000080 +_0805575C: .4byte gMenu _08055760: .4byte gUnk_080FEE48 _08055764: .4byte 0x000080FF _08055768: .4byte gUnk_02000070 @@ -2625,7 +1924,7 @@ sub_0805576C: @ 0x0805576C bl CheckRoomFlag cmp r0, #0 beq _0805578C - ldr r0, _08055794 @ =gUnk_02000080 + ldr r0, _08055794 @ =gMenu ldrb r1, [r0, #6] adds r1, #1 strb r1, [r0, #6] @@ -2635,12 +1934,12 @@ _0805578C: pop {pc} .align 2, 0 _08055790: .4byte gUnk_03000FD0 -_08055794: .4byte gUnk_02000080 +_08055794: .4byte gMenu thumb_func_start sub_08055798 sub_08055798: @ 0x08055798 push {lr} - ldr r1, _080557B0 @ =gUnk_02000080 + ldr r1, _080557B0 @ =gMenu ldrh r0, [r1, #8] subs r0, #1 strh r0, [r1, #8] @@ -2653,13 +1952,13 @@ sub_08055798: @ 0x08055798 _080557AE: pop {pc} .align 2, 0 -_080557B0: .4byte gUnk_02000080 +_080557B0: .4byte gMenu thumb_func_start sub_080557B4 sub_080557B4: @ 0x080557B4 push {lr} ldr r1, _080557C8 @ =gUnk_080FF2B8 - ldr r0, _080557CC @ =gUnk_02000080 + ldr r0, _080557CC @ =gMenu ldrb r0, [r0, #6] lsls r0, r0, #2 adds r0, r0, r1 @@ -2668,12 +1967,12 @@ sub_080557B4: @ 0x080557B4 pop {pc} .align 2, 0 _080557C8: .4byte gUnk_080FF2B8 -_080557CC: .4byte gUnk_02000080 +_080557CC: .4byte gMenu thumb_func_start sub_080557D0 sub_080557D0: @ 0x080557D0 push {r4, lr} - ldr r4, _08055808 @ =gUnk_02000080 + ldr r4, _08055808 @ =gMenu ldrb r0, [r4, #6] adds r0, #1 strb r0, [r4, #6] @@ -2696,7 +1995,7 @@ sub_080557D0: @ 0x080557D0 bl DoFade pop {r4, pc} .align 2, 0 -_08055808: .4byte gUnk_02000080 +_08055808: .4byte gMenu _0805580C: .4byte gUnk_02000070 _08055810: .4byte gUnk_080FF298 @@ -2709,7 +2008,7 @@ nullsub_490: @ 0x08055814 sub_08055818: @ 0x08055818 push {lr} ldr r1, _0805582C @ =gUnk_080FF300 - ldr r0, _08055830 @ =gUnk_02000080 + ldr r0, _08055830 @ =gMenu ldrb r0, [r0, #6] lsls r0, r0, #2 adds r0, r0, r1 @@ -2718,7 +2017,7 @@ sub_08055818: @ 0x08055818 pop {pc} .align 2, 0 _0805582C: .4byte gUnk_080FF300 -_08055830: .4byte gUnk_02000080 +_08055830: .4byte gMenu thumb_func_start sub_08055834 sub_08055834: @ 0x08055834 @@ -2732,7 +2031,7 @@ sub_08055834: @ 0x08055834 ldr r0, _08055878 @ =0x00000DB4 bl sub_08018C58 _0805584A: - ldr r4, _0805587C @ =gUnk_02000080 + ldr r4, _0805587C @ =gMenu ldrb r0, [r4, #4] movs r1, #1 movs r2, #0 @@ -2752,7 +2051,7 @@ _0805584A: _08055870: .4byte gUnk_080FF2C0 _08055874: .4byte gUnk_02002A40 _08055878: .4byte 0x00000DB4 -_0805587C: .4byte gUnk_02000080 +_0805587C: .4byte gMenu _08055880: .4byte gUnk_02000070 thumb_func_start nullsub_491 @@ -2764,7 +2063,7 @@ nullsub_491: @ 0x08055884 sub_08055888: @ 0x08055888 push {lr} ldr r1, _0805589C @ =gUnk_080FF328 - ldr r0, _080558A0 @ =gUnk_02000080 + ldr r0, _080558A0 @ =gMenu ldrb r0, [r0, #6] lsls r0, r0, #2 adds r0, r0, r1 @@ -2773,12 +2072,12 @@ sub_08055888: @ 0x08055888 pop {pc} .align 2, 0 _0805589C: .4byte gUnk_080FF328 -_080558A0: .4byte gUnk_02000080 +_080558A0: .4byte gMenu thumb_func_start sub_080558A4 sub_080558A4: @ 0x080558A4 push {r4, lr} - ldr r4, _080558DC @ =gUnk_02000080 + ldr r4, _080558DC @ =gMenu ldr r1, [r4, #0xc] ldrb r0, [r1, #2] ldrb r1, [r1, #3] @@ -2801,7 +2100,7 @@ sub_080558A4: @ 0x080558A4 bl DoFade pop {r4, pc} .align 2, 0 -_080558DC: .4byte gUnk_02000080 +_080558DC: .4byte gMenu _080558E0: .4byte gUnk_080FF308 _080558E4: .4byte gUnk_02000070 @@ -2814,7 +2113,7 @@ nullsub_492: @ 0x080558E8 sub_080558EC: @ 0x080558EC push {lr} ldr r1, _08055900 @ =gUnk_080FF330 - ldr r0, _08055904 @ =gUnk_02000080 + ldr r0, _08055904 @ =gMenu ldrb r0, [r0, #6] lsls r0, r0, #2 adds r0, r0, r1 @@ -2823,12 +2122,12 @@ sub_080558EC: @ 0x080558EC pop {pc} .align 2, 0 _08055900: .4byte gUnk_080FF330 -_08055904: .4byte gUnk_02000080 +_08055904: .4byte gMenu thumb_func_start sub_08055908 sub_08055908: @ 0x08055908 push {r4, r5, lr} - ldr r5, _08055940 @ =gUnk_02000080 + ldr r5, _08055940 @ =gMenu ldr r4, [r5, #0xc] ldrb r0, [r4, #2] ldrb r1, [r4, #3] @@ -2852,7 +2151,7 @@ sub_08055908: @ 0x08055908 bl DoFade pop {r4, r5, pc} .align 2, 0 -_08055940: .4byte gUnk_02000080 +_08055940: .4byte gMenu _08055944: .4byte gUnk_02000070 thumb_func_start sub_08055948 @@ -2867,7 +2166,7 @@ sub_08055948: @ 0x08055948 cmp r0, #0 beq _0805596C bl sub_08055994 - ldr r0, _08055974 @ =gUnk_02000080 + ldr r0, _08055974 @ =gMenu ldrb r1, [r0, #6] adds r1, #1 strb r1, [r0, #6] @@ -2877,12 +2176,12 @@ _0805596C: pop {pc} .align 2, 0 _08055970: .4byte gUnk_03000FD0 -_08055974: .4byte gUnk_02000080 +_08055974: .4byte gMenu thumb_func_start sub_08055978 sub_08055978: @ 0x08055978 push {lr} - ldr r1, _08055990 @ =gUnk_02000080 + ldr r1, _08055990 @ =gMenu ldrh r0, [r1, #8] subs r0, #1 strh r0, [r1, #8] @@ -2895,12 +2194,12 @@ sub_08055978: @ 0x08055978 _0805598E: pop {pc} .align 2, 0 -_08055990: .4byte gUnk_02000080 +_08055990: .4byte gMenu thumb_func_start sub_08055994 sub_08055994: @ 0x08055994 push {r4, lr} - ldr r4, _080559D8 @ =gUnk_02000080 + ldr r4, _080559D8 @ =gMenu ldrb r0, [r4, #4] lsls r0, r0, #3 ldr r1, _080559DC @ =gUnk_080FEAC8 @@ -2932,14 +2231,14 @@ _080559AE: bl PlaySFX pop {r4, pc} .align 2, 0 -_080559D8: .4byte gUnk_02000080 +_080559D8: .4byte gMenu _080559DC: .4byte gUnk_080FEAC8 thumb_func_start sub_080559E0 sub_080559E0: @ 0x080559E0 push {lr} ldr r1, _080559F4 @ =gUnk_080FF35C - ldr r0, _080559F8 @ =gUnk_02000080 + ldr r0, _080559F8 @ =gMenu ldrb r0, [r0, #6] lsls r0, r0, #2 adds r0, r0, r1 @@ -2948,12 +2247,12 @@ sub_080559E0: @ 0x080559E0 pop {pc} .align 2, 0 _080559F4: .4byte gUnk_080FF35C -_080559F8: .4byte gUnk_02000080 +_080559F8: .4byte gMenu thumb_func_start sub_080559FC sub_080559FC: @ 0x080559FC push {r4, lr} - ldr r4, _08055A30 @ =gUnk_02000080 + ldr r4, _08055A30 @ =gMenu ldr r0, [r4, #0xc] ldrb r0, [r0, #1] cmp r0, #0 @@ -2977,7 +2276,7 @@ _08055A0E: bl DoFade pop {r4, pc} .align 2, 0 -_08055A30: .4byte gUnk_02000080 +_08055A30: .4byte gMenu _08055A34: .4byte gUnk_080FF33C _08055A38: .4byte gUnk_02000070 @@ -2995,7 +2294,7 @@ sub_08055A3C: @ 0x08055A3C movs r0, #7 movs r1, #0x10 bl DoFade - ldr r1, _08055A68 @ =gUnk_02000080 + ldr r1, _08055A68 @ =gMenu ldrb r0, [r1, #6] adds r0, #1 strb r0, [r1, #6] @@ -3003,7 +2302,7 @@ _08055A60: pop {pc} .align 2, 0 _08055A64: .4byte gUnk_03000FD0 -_08055A68: .4byte gUnk_02000080 +_08055A68: .4byte gMenu thumb_func_start sub_08055A6C sub_08055A6C: @ 0x08055A6C @@ -3012,7 +2311,7 @@ sub_08055A6C: @ 0x08055A6C ldrb r0, [r0] cmp r0, #0 bne _08055A9E - ldr r4, _08055AA4 @ =gUnk_02000080 + ldr r4, _08055AA4 @ =gMenu ldrb r0, [r4, #4] movs r1, #1 bl sub_0801876C @@ -3032,7 +2331,7 @@ _08055A9E: pop {r4, pc} .align 2, 0 _08055AA0: .4byte gUnk_03000FD0 -_08055AA4: .4byte gUnk_02000080 +_08055AA4: .4byte gMenu thumb_func_start sub_08055AA8 sub_08055AA8: @ 0x08055AA8 @@ -3041,7 +2340,7 @@ sub_08055AA8: @ 0x08055AA8 ldrb r0, [r0] cmp r0, #0 bne _08055AC6 - ldr r1, _08055ACC @ =gUnk_02000080 + ldr r1, _08055ACC @ =gMenu ldrh r0, [r1, #8] subs r0, #1 strh r0, [r1, #8] @@ -3055,13 +2354,13 @@ _08055AC6: pop {pc} .align 2, 0 _08055AC8: .4byte gUnk_03000FD0 -_08055ACC: .4byte gUnk_02000080 +_08055ACC: .4byte gMenu thumb_func_start sub_08055AD0 sub_08055AD0: @ 0x08055AD0 push {lr} ldr r1, _08055AE4 @ =gUnk_080FF36C - ldr r0, _08055AE8 @ =gUnk_02000080 + ldr r0, _08055AE8 @ =gMenu ldrb r0, [r0, #6] lsls r0, r0, #2 adds r0, r0, r1 @@ -3070,12 +2369,12 @@ sub_08055AD0: @ 0x08055AD0 pop {pc} .align 2, 0 _08055AE4: .4byte gUnk_080FF36C -_08055AE8: .4byte gUnk_02000080 +_08055AE8: .4byte gMenu thumb_func_start sub_08055AEC sub_08055AEC: @ 0x08055AEC push {r4, lr} - ldr r4, _08055B2C @ =gUnk_02000080 + ldr r4, _08055B2C @ =gMenu ldrb r0, [r4, #4] movs r1, #0 movs r2, #0 @@ -3104,7 +2403,7 @@ _08055B14: bl DoFade pop {r4, pc} .align 2, 0 -_08055B2C: .4byte gUnk_02000080 +_08055B2C: .4byte gMenu _08055B30: .4byte gUnk_080FED18 _08055B34: .4byte gUnk_02000070 @@ -3115,19 +2414,19 @@ sub_08055B38: @ 0x08055B38 ldrb r0, [r0] cmp r0, #0 bne _08055B48 - ldr r1, _08055B50 @ =gUnk_02000080 + ldr r1, _08055B50 @ =gMenu movs r0, #0x78 strh r0, [r1, #8] _08055B48: pop {pc} .align 2, 0 _08055B4C: .4byte gUnk_03000FD0 -_08055B50: .4byte gUnk_02000080 +_08055B50: .4byte gMenu thumb_func_start sub_08055B54 sub_08055B54: @ 0x08055B54 push {lr} - ldr r1, _08055B6C @ =gUnk_02000080 + ldr r1, _08055B6C @ =gMenu ldrh r0, [r1, #8] subs r0, #1 strh r0, [r1, #8] @@ -3140,7 +2439,7 @@ sub_08055B54: @ 0x08055B54 _08055B6A: pop {pc} .align 2, 0 -_08055B6C: .4byte gUnk_02000080 +_08055B6C: .4byte gMenu thumb_func_start sub_08055B70 sub_08055B70: @ 0x08055B70 @@ -3148,7 +2447,7 @@ sub_08055B70: @ 0x08055B70 adds r0, r1, #0 adds r5, r2, #0 adds r6, r3, #0 - ldr r1, _08055BA4 @ =gUnk_02000080 + ldr r1, _08055BA4 @ =gMenu ldr r4, [r1, #0xc] lsls r0, r0, #4 ldr r1, _08055BA8 @ =gUnk_080FF378 @@ -3171,7 +2470,7 @@ sub_08055B70: @ 0x08055B70 _08055BA2: pop {r4, r5, r6, pc} .align 2, 0 -_08055BA4: .4byte gUnk_02000080 +_08055BA4: .4byte gMenu _08055BA8: .4byte gUnk_080FF378 _08055BAC: .4byte gRoomControls @@ -3179,7 +2478,7 @@ _08055BAC: .4byte gRoomControls sub_08055BB0: @ 0x08055BB0 push {lr} ldr r1, _08055BC4 @ =gUnk_080FF3C8 - ldr r0, _08055BC8 @ =gUnk_02000080 + ldr r0, _08055BC8 @ =gMenu ldrb r0, [r0, #6] lsls r0, r0, #2 adds r0, r0, r1 @@ -3188,12 +2487,12 @@ sub_08055BB0: @ 0x08055BB0 pop {pc} .align 2, 0 _08055BC4: .4byte gUnk_080FF3C8 -_08055BC8: .4byte gUnk_02000080 +_08055BC8: .4byte gMenu thumb_func_start sub_08055BCC sub_08055BCC: @ 0x08055BCC push {r4, lr} - ldr r4, _08055BFC @ =gUnk_02000080 + ldr r4, _08055BFC @ =gMenu ldrb r0, [r4, #4] movs r1, #0 movs r2, #0 @@ -3213,7 +2512,7 @@ sub_08055BCC: @ 0x08055BCC bl DoFade pop {r4, pc} .align 2, 0 -_08055BFC: .4byte gUnk_02000080 +_08055BFC: .4byte gMenu _08055C00: .4byte gUnk_02000070 thumb_func_start sub_08055C04 @@ -3230,7 +2529,7 @@ sub_08055C04: @ 0x08055C04 movs r0, #7 movs r1, #0x10 bl DoFade - ldr r1, _08055C30 @ =gUnk_02000080 + ldr r1, _08055C30 @ =gMenu ldrb r0, [r1, #6] adds r0, #1 strb r0, [r1, #6] @@ -3238,7 +2537,7 @@ _08055C28: pop {pc} .align 2, 0 _08055C2C: .4byte gUnk_03000FD0 -_08055C30: .4byte gUnk_02000080 +_08055C30: .4byte gMenu thumb_func_start sub_08055C34 sub_08055C34: @ 0x08055C34 @@ -3248,7 +2547,7 @@ sub_08055C34: @ 0x08055C34 ldrb r0, [r0] cmp r0, #0 bne _08055CA6 - ldr r5, _08055C68 @ =gUnk_02000080 + ldr r5, _08055C68 @ =gMenu ldr r4, [r5, #0xc] ldrb r0, [r5, #4] bl sub_080553E0 @@ -3265,7 +2564,7 @@ sub_08055C34: @ 0x08055C34 b _08055C8C .align 2, 0 _08055C64: .4byte gUnk_03000FD0 -_08055C68: .4byte gUnk_02000080 +_08055C68: .4byte gMenu _08055C6C: str r0, [sp] movs r0, #6 @@ -3286,7 +2585,7 @@ _08055C8C: bl DoFade movs r0, #0x73 bl PlaySFX - ldr r0, _08055CAC @ =gUnk_02000080 + ldr r0, _08055CAC @ =gMenu ldrb r1, [r0, #6] adds r1, #1 strb r1, [r0, #6] @@ -3296,7 +2595,7 @@ _08055CA6: add sp, #4 pop {r4, r5, pc} .align 2, 0 -_08055CAC: .4byte gUnk_02000080 +_08055CAC: .4byte gMenu thumb_func_start sub_08055CB0 sub_08055CB0: @ 0x08055CB0 @@ -3305,7 +2604,7 @@ sub_08055CB0: @ 0x08055CB0 ldrb r0, [r0] cmp r0, #0 bne _08055CCE - ldr r1, _08055CD4 @ =gUnk_02000080 + ldr r1, _08055CD4 @ =gMenu ldrh r0, [r1, #8] subs r0, #1 strh r0, [r1, #8] @@ -3319,13 +2618,13 @@ _08055CCE: pop {pc} .align 2, 0 _08055CD0: .4byte gUnk_03000FD0 -_08055CD4: .4byte gUnk_02000080 +_08055CD4: .4byte gMenu thumb_func_start sub_08055CD8 sub_08055CD8: @ 0x08055CD8 push {lr} ldr r1, _08055CEC @ =gUnk_080FF3E8 - ldr r0, _08055CF0 @ =gUnk_02000080 + ldr r0, _08055CF0 @ =gMenu ldrb r0, [r0, #6] lsls r0, r0, #2 adds r0, r0, r1 @@ -3334,12 +2633,12 @@ sub_08055CD8: @ 0x08055CD8 pop {pc} .align 2, 0 _08055CEC: .4byte gUnk_080FF3E8 -_08055CF0: .4byte gUnk_02000080 +_08055CF0: .4byte gMenu thumb_func_start sub_08055CF4 sub_08055CF4: @ 0x08055CF4 push {r4, lr} - ldr r4, _08055D24 @ =gUnk_02000080 + ldr r4, _08055D24 @ =gMenu ldr r1, [r4, #0xc] ldrb r0, [r1, #2] ldrb r1, [r1, #3] @@ -3360,7 +2659,7 @@ sub_08055CF4: @ 0x08055CF4 bl DoFade pop {r4, pc} .align 2, 0 -_08055D24: .4byte gUnk_02000080 +_08055D24: .4byte gMenu _08055D28: .4byte gUnk_02000070 thumb_func_start sub_08055D2C @@ -3374,7 +2673,7 @@ sub_08055D2C: @ 0x08055D2C bl CheckRoomFlag cmp r0, #0 beq _08055D5A - ldr r4, _08055D60 @ =gUnk_02000080 + ldr r4, _08055D60 @ =gMenu ldrb r0, [r4, #4] movs r1, #1 bl sub_0801876C @@ -3389,12 +2688,12 @@ _08055D5A: pop {r4, pc} .align 2, 0 _08055D5C: .4byte gUnk_03000FD0 -_08055D60: .4byte gUnk_02000080 +_08055D60: .4byte gMenu thumb_func_start sub_08055D64 sub_08055D64: @ 0x08055D64 push {lr} - ldr r1, _08055D7C @ =gUnk_02000080 + ldr r1, _08055D7C @ =gMenu ldrh r0, [r1, #8] subs r0, #1 strh r0, [r1, #8] @@ -3407,13 +2706,13 @@ sub_08055D64: @ 0x08055D64 _08055D7A: pop {pc} .align 2, 0 -_08055D7C: .4byte gUnk_02000080 +_08055D7C: .4byte gMenu thumb_func_start sub_08055D80 sub_08055D80: @ 0x08055D80 push {lr} ldr r1, _08055D94 @ =gUnk_080FF3F4 - ldr r0, _08055D98 @ =gUnk_02000080 + ldr r0, _08055D98 @ =gMenu ldrb r0, [r0, #6] lsls r0, r0, #2 adds r0, r0, r1 @@ -3422,12 +2721,12 @@ sub_08055D80: @ 0x08055D80 pop {pc} .align 2, 0 _08055D94: .4byte gUnk_080FF3F4 -_08055D98: .4byte gUnk_02000080 +_08055D98: .4byte gMenu thumb_func_start sub_08055D9C sub_08055D9C: @ 0x08055D9C push {lr} - ldr r1, _08055DB8 @ =gUnk_02000080 + ldr r1, _08055DB8 @ =gMenu ldrb r0, [r1, #6] adds r0, #1 strb r0, [r1, #6] @@ -3439,7 +2738,7 @@ sub_08055D9C: @ 0x08055D9C bl DoFade pop {pc} .align 2, 0 -_08055DB8: .4byte gUnk_02000080 +_08055DB8: .4byte gMenu _08055DBC: .4byte gUnk_02000070 thumb_func_start sub_08055DC0 @@ -3451,7 +2750,7 @@ sub_08055DC0: @ 0x08055DC0 bne _08055DDC ldr r0, _08055DE4 @ =0x00000A01 bl TextboxNoOverlapFollow - ldr r1, _08055DE8 @ =gUnk_02000080 + ldr r1, _08055DE8 @ =gMenu ldrb r0, [r1, #6] adds r0, #1 strb r0, [r1, #6] @@ -3462,12 +2761,12 @@ _08055DDC: .align 2, 0 _08055DE0: .4byte gUnk_03000FD0 _08055DE4: .4byte 0x00000A01 -_08055DE8: .4byte gUnk_02000080 +_08055DE8: .4byte gMenu thumb_func_start sub_08055DEC sub_08055DEC: @ 0x08055DEC push {lr} - ldr r1, _08055E04 @ =gUnk_02000080 + ldr r1, _08055E04 @ =gMenu ldrh r0, [r1, #8] subs r0, #1 strh r0, [r1, #8] @@ -3480,4 +2779,4 @@ sub_08055DEC: @ 0x08055DEC _08055E02: pop {pc} .align 2, 0 -_08055E04: .4byte gUnk_02000080 +_08055E04: .4byte gMenu diff --git a/asm/code_0805E744.s b/asm/code_0805E744.s index c6194d3e..9b5ea693 100644 --- a/asm/code_0805E744.s +++ b/asm/code_0805E744.s @@ -2586,7 +2586,7 @@ sub_0805FA04: @ 0x0805FA04 movs r1, #0xed lsls r1, r1, #2 bl _DmaZero - ldr r4, _0805FA8C @ =gUnk_02000080 + ldr r4, _0805FA8C @ =gMenu adds r0, r4, #0 movs r1, #0x30 bl _DmaZero @@ -2609,7 +2609,7 @@ _0805FA7C: .4byte gUnk_02001A40 _0805FA80: .4byte gScreen _0805FA84: .4byte 0x00001E0F _0805FA88: .4byte gUnk_02032EC0 -_0805FA8C: .4byte gUnk_02000080 +_0805FA8C: .4byte gMenu _0805FA90: .4byte 0x00001144 _0805FA94: .4byte gUnk_03001000 @@ -2641,23 +2641,23 @@ _0805FAB8: beq _0805FAE8 b _0805FB4A _0805FACA: - ldr r1, _0805FAD4 @ =gUnk_02000080 + ldr r1, _0805FAD4 @ =gMenu ldrb r0, [r1, #0x11] subs r0, #1 strb r0, [r1, #0x11] b _0805FBA4 .align 2, 0 -_0805FAD4: .4byte gUnk_02000080 +_0805FAD4: .4byte gMenu _0805FAD8: - ldr r1, _0805FAE4 @ =gUnk_02000080 + ldr r1, _0805FAE4 @ =gMenu ldrb r0, [r1, #0x11] adds r0, #1 strb r0, [r1, #0x11] b _0805FBA4 .align 2, 0 -_0805FAE4: .4byte gUnk_02000080 +_0805FAE4: .4byte gMenu _0805FAE8: - ldr r0, _0805FB04 @ =gUnk_02000080 + ldr r0, _0805FB04 @ =gMenu ldrb r1, [r0, #0x10] movs r2, #1 eors r1, r2 @@ -2671,7 +2671,7 @@ _0805FAE8: strh r1, [r0, #0x2c] b _0805FBA4 .align 2, 0 -_0805FB04: .4byte gUnk_02000080 +_0805FB04: .4byte gMenu _0805FB08: .4byte gScreen _0805FB0C: .4byte 0x00001F0C _0805FB10: @@ -2688,7 +2688,7 @@ _0805FB24: .4byte 0x00001E0C _0805FB28: movs r2, #0x80 lsls r2, r2, #0x12 - ldr r1, _0805FB40 @ =gUnk_02000080 + ldr r1, _0805FB40 @ =gMenu ldrb r0, [r1, #0x16] strb r0, [r2, #7] ldrb r0, [r1, #0x14] @@ -2698,7 +2698,7 @@ _0805FB28: bl TextboxNoOverlapFollow b _0805FBA4 .align 2, 0 -_0805FB40: .4byte gUnk_02000080 +_0805FB40: .4byte gMenu _0805FB44: bl sub_08056418 b _0805FBA4 @@ -2717,7 +2717,7 @@ _0805FB5A: _0805FB5E: movs r1, #0 _0805FB60: - ldr r4, _0805FB74 @ =gUnk_02000080 + ldr r4, _0805FB74 @ =gMenu ldrb r0, [r4, #0x11] cmp r0, #1 beq _0805FB8E @@ -2727,7 +2727,7 @@ _0805FB60: beq _0805FB7E b _0805FBA4 .align 2, 0 -_0805FB74: .4byte gUnk_02000080 +_0805FB74: .4byte gMenu _0805FB78: cmp r0, #2 beq _0805FB96 @@ -2753,7 +2753,7 @@ _0805FB96: bl __modsi3 strb r0, [r4, #0x16] _0805FBA4: - ldr r4, _0805FBBC @ =gUnk_02000080 + ldr r4, _0805FBBC @ =gMenu ldrb r0, [r4, #0x11] adds r0, #3 movs r1, #3 @@ -2764,7 +2764,7 @@ _0805FBA4: strh r0, [r1, #0x32] pop {r4, pc} .align 2, 0 -_0805FBBC: .4byte gUnk_02000080 +_0805FBBC: .4byte gMenu _0805FBC0: .4byte gScreen thumb_func_start sub_0805FBC4 diff --git a/asm/code_08070698.s b/asm/code_08070698.s index dd723733..0d0a082f 100644 --- a/asm/code_08070698.s +++ b/asm/code_08070698.s @@ -77,7 +77,7 @@ sub_08070698: @ 0x08070698 bl sub_08016A30 _08070726: movs r0, #0x10 - bl sub_0805436C + bl IsItemEquipped cmp r0, #2 beq _08070734 bl sub_08077728 diff --git a/asm/code_080732D0.s b/asm/code_080732D0.s index 9a98dc36..77d8d944 100644 --- a/asm/code_080732D0.s +++ b/asm/code_080732D0.s @@ -5250,7 +5250,7 @@ sub_08075A0C: @ 0x08075A0C adds r4, r0, #0 adds r5, r1, #0 ldrb r0, [r4, #1] - bl sub_0805436C + bl IsItemEquipped adds r6, r0, #0 ldr r1, _08075A64 @ =gLinkState ldrb r0, [r1, #5] @@ -5421,7 +5421,7 @@ sub_08075B54: @ 0x08075B54 b _08075C80 _08075B70: ldrb r0, [r6, #1] - bl sub_0805436C + bl IsItemEquipped adds r4, r0, #0 adds r0, r6, #0 bl sub_08077F10 diff --git a/asm/code_08076C80.s b/asm/code_08076C80.s index 169ee0dd..c2d420b3 100644 --- a/asm/code_08076C80.s +++ b/asm/code_08076C80.s @@ -1887,7 +1887,7 @@ sub_08077AEC: @ 0x08077AEC ands r0, r1 str r0, [r2, #0x30] movs r0, #0x10 - bl sub_0805436C + bl IsItemEquipped adds r1, r0, #0 cmp r1, #2 beq _08077B12 diff --git a/asm/code_0807CC3C.s b/asm/code_0807CC3C.s index fc5fa1d1..6587150f 100644 --- a/asm/code_0807CC3C.s +++ b/asm/code_0807CC3C.s @@ -15,7 +15,7 @@ sub_0807CD9C: @ 0x0807CD9C sub_0807CDA4: @ 0x0807CDA4 push {lr} ldr r2, _0807CDB8 @ =gUnk_0811E478 - ldr r1, _0807CDBC @ =gUnk_02000080 + ldr r1, _0807CDBC @ =gMenu ldrb r1, [r1, #7] lsls r1, r1, #2 adds r1, r1, r2 @@ -24,7 +24,7 @@ sub_0807CDA4: @ 0x0807CDA4 pop {pc} .align 2, 0 _0807CDB8: .4byte gUnk_0811E478 -_0807CDBC: .4byte gUnk_02000080 +_0807CDBC: .4byte gMenu thumb_func_start sub_0807CDC0 sub_0807CDC0: @ 0x0807CDC0 @@ -37,7 +37,7 @@ sub_0807CDC0: @ 0x0807CDC0 ldrsh r0, [r0, r1] cmp r0, #0 bgt _0807CDDC - ldr r0, _0807CDE4 @ =gUnk_02000080 + ldr r0, _0807CDE4 @ =gMenu movs r1, #8 strh r1, [r0, #0xa] movs r1, #1 @@ -47,13 +47,13 @@ _0807CDDC: pop {pc} .align 2, 0 _0807CDE0: .4byte gUnk_02021EE0 -_0807CDE4: .4byte gUnk_02000080 +_0807CDE4: .4byte gMenu thumb_func_start sub_0807CDE8 sub_0807CDE8: @ 0x0807CDE8 push {r4, r5, lr} adds r4, r0, #0 - ldr r1, _0807CE08 @ =gUnk_02000080 + ldr r1, _0807CE08 @ =gMenu ldrh r0, [r1, #0xa] cmp r0, #0 bne _0807CE4C @@ -66,7 +66,7 @@ sub_0807CDE8: @ 0x0807CDE8 beq _0807CE2E b _0807CE38 .align 2, 0 -_0807CE08: .4byte gUnk_02000080 +_0807CE08: .4byte gMenu _0807CE0C: movs r0, #0x80 lsls r0, r0, #0x12 @@ -90,14 +90,14 @@ _0807CE2E: _0807CE36: adds r5, r0, #0 _0807CE38: - ldr r1, _0807CE48 @ =gUnk_02000080 + ldr r1, _0807CE48 @ =gMenu strh r5, [r1, #0xa] movs r0, #2 strb r0, [r1, #7] bl sub_08056208 b _0807CE50 .align 2, 0 -_0807CE48: .4byte gUnk_02000080 +_0807CE48: .4byte gMenu _0807CE4C: subs r0, #1 strh r0, [r1, #0xa] @@ -122,7 +122,7 @@ sub_0807CE54: @ 0x0807CE54 bgt _0807CE84 strh r3, [r2, #0xa] bl sub_08050384 - ldr r0, _0807CE8C @ =gUnk_02000080 + ldr r0, _0807CE8C @ =gMenu movs r1, #0 strb r1, [r0, #7] ldrh r0, [r0, #0xa] @@ -135,7 +135,7 @@ _0807CE84: pop {r4, r5, pc} .align 2, 0 _0807CE88: .4byte gUnk_02021EE0 -_0807CE8C: .4byte gUnk_02000080 +_0807CE8C: .4byte gMenu thumb_func_start sub_0807CE90 sub_0807CE90: @ 0x0807CE90 diff --git a/asm/code_080A3480.s b/asm/code_080A3480.s index 0e29f5f1..62f25b35 100644 --- a/asm/code_080A3480.s +++ b/asm/code_080A3480.s @@ -232,7 +232,7 @@ sub_080A3608: @ 0x080A3608 bl SetGlobalFlag ldr r0, _080A3644 @ =gUnk_03001000 strb r4, [r0, #3] - ldr r2, _080A3648 @ =gUnk_02000080 + ldr r2, _080A3648 @ =gMenu strb r5, [r2, #5] movs r1, #0 movs r0, #0xb4 @@ -252,7 +252,7 @@ sub_080A3608: @ 0x080A3608 .align 2, 0 _080A3640: .4byte gUnk_02002A40 _080A3644: .4byte gUnk_03001000 -_080A3648: .4byte gUnk_02000080 +_080A3648: .4byte gMenu _080A364C: .4byte gUnk_08127998 _080A3650: cmp r0, #1 @@ -307,7 +307,7 @@ _080A36BC: .4byte 0x00001E4D sub_080A36C0: @ 0x080A36C0 push {lr} ldr r1, _080A36D4 @ =gUnk_08127D10 - ldr r0, _080A36D8 @ =gUnk_02000080 + ldr r0, _080A36D8 @ =gMenu ldrb r0, [r0, #5] lsls r0, r0, #2 adds r0, r0, r1 @@ -316,12 +316,12 @@ sub_080A36C0: @ 0x080A36C0 pop {pc} .align 2, 0 _080A36D4: .4byte gUnk_08127D10 -_080A36D8: .4byte gUnk_02000080 +_080A36D8: .4byte gMenu thumb_func_start sub_080A36DC sub_080A36DC: @ 0x080A36DC push {lr} - ldr r1, _080A36F4 @ =gUnk_02000080 + ldr r1, _080A36F4 @ =gMenu ldrh r0, [r1, #8] subs r0, #1 strh r0, [r1, #8] @@ -332,7 +332,7 @@ sub_080A36DC: @ 0x080A36DC _080A36F0: pop {pc} .align 2, 0 -_080A36F4: .4byte gUnk_02000080 +_080A36F4: .4byte gMenu thumb_func_start sub_080A36F8 sub_080A36F8: @ 0x080A36F8 @@ -341,7 +341,7 @@ sub_080A36F8: @ 0x080A36F8 ldrb r0, [r0] cmp r0, #0 bne _080A3752 - ldr r5, _080A3758 @ =gUnk_02000080 + ldr r5, _080A3758 @ =gMenu movs r0, #0x10 ldrsh r4, [r5, r0] lsls r4, r4, #1 @@ -381,7 +381,7 @@ _080A3752: pop {r4, r5, pc} .align 2, 0 _080A3754: .4byte gUnk_03000FD0 -_080A3758: .4byte gUnk_02000080 +_080A3758: .4byte gMenu _080A375C: .4byte gUnk_08127CEC _080A3760: .4byte gUnk_02021F30 _080A3764: .4byte gScreen @@ -389,7 +389,7 @@ _080A3764: .4byte gScreen thumb_func_start sub_080A3768 sub_080A3768: @ 0x080A3768 push {r4, lr} - ldr r4, _080A377C @ =gUnk_02000080 + ldr r4, _080A377C @ =gMenu ldrb r1, [r4, #6] cmp r1, #1 beq _080A37C4 @@ -399,7 +399,7 @@ sub_080A3768: @ 0x080A3768 beq _080A378A b _080A384C .align 2, 0 -_080A377C: .4byte gUnk_02000080 +_080A377C: .4byte gMenu _080A3780: cmp r1, #2 beq _080A3804 @@ -518,7 +518,7 @@ _080A3860: .4byte gUnk_03000FD0 thumb_func_start sub_080A3864 sub_080A3864: @ 0x080A3864 push {lr} - ldr r1, _080A3884 @ =gUnk_02000080 + ldr r1, _080A3884 @ =gMenu ldrh r0, [r1, #8] subs r0, #1 strh r0, [r1, #8] @@ -532,7 +532,7 @@ sub_080A3864: @ 0x080A3864 _080A3880: pop {pc} .align 2, 0 -_080A3884: .4byte gUnk_02000080 +_080A3884: .4byte gMenu thumb_func_start sub_080A3888 sub_080A3888: @ 0x080A3888 @@ -543,7 +543,7 @@ sub_080A3888: @ 0x080A3888 movs r0, #5 movs r1, #4 bl DoFade - ldr r0, _080A38B0 @ =gUnk_02000080 + ldr r0, _080A38B0 @ =gMenu ldrh r0, [r0, #8] bl sub_08050038 bl sub_080A3954 @@ -551,7 +551,7 @@ sub_080A3888: @ 0x080A3888 .align 2, 0 _080A38A8: .4byte gUnk_03000FD0 _080A38AC: .4byte 0xFFFF7FFF -_080A38B0: .4byte gUnk_02000080 +_080A38B0: .4byte gMenu thumb_func_start sub_080A38B4 sub_080A38B4: @ 0x080A38B4 @@ -559,13 +559,13 @@ sub_080A38B4: @ 0x080A38B4 movs r0, #4 movs r1, #4 bl DoFade - ldr r0, _080A38CC @ =gUnk_02000080 + ldr r0, _080A38CC @ =gMenu ldrh r0, [r0, #8] bl sub_08050038 bl sub_080A3954 pop {pc} .align 2, 0 -_080A38CC: .4byte gUnk_02000080 +_080A38CC: .4byte gMenu thumb_func_start sub_080A38D0 sub_080A38D0: @ 0x080A38D0 @@ -594,7 +594,7 @@ sub_080A38D0: @ 0x080A38D0 movs r0, #0x80 lsls r0, r0, #5 strh r0, [r4] - ldr r0, _080A392C @ =gUnk_02000080 + ldr r0, _080A392C @ =gMenu mov r1, r8 strb r1, [r0, #5] movs r0, #4 @@ -609,7 +609,7 @@ _080A391C: .4byte gUnk_03000FD0 _080A3920: .4byte gUnk_02021F30 _080A3924: .4byte gScreen _080A3928: .4byte gUnk_020344B0 -_080A392C: .4byte gUnk_02000080 +_080A392C: .4byte gMenu thumb_func_start sub_080A3930 sub_080A3930: @ 0x080A3930 @@ -632,7 +632,7 @@ _080A3950: .4byte gUnk_03001000 thumb_func_start sub_080A3954 sub_080A3954: @ 0x080A3954 - ldr r2, _080A397C @ =gUnk_02000080 + ldr r2, _080A397C @ =gMenu ldr r1, [r2, #0xc] ldrb r0, [r1] movs r3, #0 @@ -652,7 +652,7 @@ sub_080A3954: @ 0x080A3954 str r1, [r2, #0xc] bx lr .align 2, 0 -_080A397C: .4byte gUnk_02000080 +_080A397C: .4byte gMenu thumb_func_start sub_080A3980 sub_080A3980: @ 0x080A3980 @@ -670,7 +670,7 @@ _080A3990: .4byte gUnk_03000FD0 thumb_func_start sub_080A3994 sub_080A3994: @ 0x080A3994 push {r4, r5, lr} - ldr r0, _080A39AC @ =gUnk_02000080 + ldr r0, _080A39AC @ =gMenu ldrb r1, [r0, #6] adds r2, r0, #0 cmp r1, #4 @@ -683,7 +683,7 @@ _080A39A2: ldr r0, [r0] mov pc, r0 .align 2, 0 -_080A39AC: .4byte gUnk_02000080 +_080A39AC: .4byte gMenu _080A39B0: .4byte _080A39B4 _080A39B4: @ jump table .4byte _080A39C8 @ case 0 @@ -785,14 +785,14 @@ _080A3A82: bl sub_08050318 movs r0, #2 _080A3A8C: - ldr r1, _080A3AB4 @ =gUnk_02000080 + ldr r1, _080A3AB4 @ =gMenu strb r0, [r1, #6] movs r0, #0x3c strh r0, [r1, #8] movs r0, #0x6a bl PlaySFX _080A3A9A: - ldr r1, _080A3AB4 @ =gUnk_02000080 + ldr r1, _080A3AB4 @ =gMenu ldrb r0, [r1, #3] cmp r0, r4 beq _080A3B36 @@ -804,12 +804,12 @@ _080A3A9A: bl PlaySFX b _080A3B36 .align 2, 0 -_080A3AB4: .4byte gUnk_02000080 +_080A3AB4: .4byte gMenu _080A3AB8: movs r0, #0 bl sub_0807CDA4 adds r1, r0, #0 - ldr r4, _080A3AD8 @ =gUnk_02000080 + ldr r4, _080A3AD8 @ =gMenu strb r1, [r4] movs r0, #1 rsbs r0, r0, #0 @@ -821,7 +821,7 @@ _080A3AB8: strb r0, [r4, #6] b _080A3B36 .align 2, 0 -_080A3AD8: .4byte gUnk_02000080 +_080A3AD8: .4byte gMenu _080A3ADC: movs r0, #0x3c strh r0, [r4, #8] @@ -865,7 +865,7 @@ _080A3B14: ldr r1, _080A3B40 @ =gUnk_03001000 movs r0, #3 strb r0, [r1, #3] - ldr r0, _080A3B44 @ =gUnk_02000080 + ldr r0, _080A3B44 @ =gMenu strb r4, [r0, #6] _080A3B36: pop {r4, r5, pc} @@ -873,7 +873,7 @@ _080A3B36: _080A3B38: .4byte gScreen _080A3B3C: .4byte 0x0000FDFF _080A3B40: .4byte gUnk_03001000 -_080A3B44: .4byte gUnk_02000080 +_080A3B44: .4byte gMenu thumb_func_start sub_080A3B48 sub_080A3B48: @ 0x080A3B48 @@ -902,10 +902,10 @@ _080A3B70: .4byte 0x0000012B thumb_func_start sub_080A3B74 sub_080A3B74: @ 0x080A3B74 - ldr r0, _080A3B80 @ =gUnk_02000080 + ldr r0, _080A3B80 @ =gMenu adds r0, #0x2f movs r1, #0 strb r1, [r0] bx lr .align 2, 0 -_080A3B80: .4byte gUnk_02000080 \ No newline at end of file +_080A3B80: .4byte gMenu \ No newline at end of file diff --git a/asm/code_080A3BD0.s b/asm/code_080A3BD0.s index 59aecd61..5f35853a 100644 --- a/asm/code_080A3BD0.s +++ b/asm/code_080A3BD0.s @@ -9,7 +9,7 @@ thumb_func_start sub_080A3BD0 sub_080A3BD0: @ 0x080A3BD0 push {r4, lr} - ldr r0, _080A3C54 @ =gUnk_02000080 + ldr r0, _080A3C54 @ =gMenu movs r1, #0 movs r4, #1 strb r4, [r0, #1] @@ -67,7 +67,7 @@ _080A3C0A: bl DoFade pop {r4, pc} .align 2, 0 -_080A3C54: .4byte gUnk_02000080 +_080A3C54: .4byte gMenu _080A3C58: .4byte gScreen _080A3C5C: .4byte 0x00001C01 _080A3C60: .4byte 0x00001D02 @@ -83,7 +83,7 @@ sub_080A3C6C: @ 0x080A3C6C beq _080A3C78 b _080A3DA8 _080A3C78: - ldr r5, _080A3CA0 @ =gUnk_02000080 + ldr r5, _080A3CA0 @ =gMenu movs r0, #2 strb r0, [r5, #1] adds r0, r5, #0 @@ -104,7 +104,7 @@ _080A3C92: b _080A3CDE .align 2, 0 _080A3C9C: .4byte gUnk_03000FD0 -_080A3CA0: .4byte gUnk_02000080 +_080A3CA0: .4byte gMenu _080A3CA4: .4byte 0x00001FFD _080A3CA8: movs r0, #1 @@ -200,7 +200,7 @@ _080A3D5A: adds r4, #1 b _080A3D8A _080A3D5E: - ldr r2, _080A3DAC @ =gUnk_02000080 + ldr r2, _080A3DAC @ =gMenu ldrb r0, [r2, #1] cmp r0, #2 bne _080A3D8A @@ -243,14 +243,14 @@ _080A3DA0: _080A3DA8: pop {r4, r5, pc} .align 2, 0 -_080A3DAC: .4byte gUnk_02000080 +_080A3DAC: .4byte gMenu _080A3DB0: .4byte 0x0000FFFF _080A3DB4: .4byte gUnk_02002A40 thumb_func_start sub_080A3DB8 sub_080A3DB8: @ 0x080A3DB8 push {lr} - ldr r0, _080A3DDC @ =gUnk_02000080 + ldr r0, _080A3DDC @ =gMenu ldrb r1, [r0, #1] cmp r1, #6 bne _080A3DEE @@ -267,7 +267,7 @@ sub_080A3DB8: @ 0x080A3DB8 bl sub_080A7138 b _080A3DF8 .align 2, 0 -_080A3DDC: .4byte gUnk_02000080 +_080A3DDC: .4byte gMenu _080A3DE0: .4byte gUnk_02022740 _080A3DE4: .4byte gUnk_080C9CBC _080A3DE8: @@ -286,7 +286,7 @@ _080A3DFC: .4byte gUnk_02022740 thumb_func_start sub_080A3E00 sub_080A3E00: @ 0x080A3E00 push {lr} - ldr r1, _080A3E18 @ =gUnk_02000080 + ldr r1, _080A3E18 @ =gMenu movs r0, #3 strb r0, [r1, #1] ldr r2, _080A3E1C @ =gUnk_081280F4 @@ -297,13 +297,13 @@ sub_080A3E00: @ 0x080A3E00 bl _call_via_r0 pop {pc} .align 2, 0 -_080A3E18: .4byte gUnk_02000080 +_080A3E18: .4byte gMenu _080A3E1C: .4byte gUnk_081280F4 thumb_func_start sub_080A3E20 sub_080A3E20: @ 0x080A3E20 push {lr} - ldr r2, _080A3E44 @ =gUnk_02000080 + ldr r2, _080A3E44 @ =gMenu movs r0, #0 strh r0, [r2, #0x18] adds r1, r2, #0 @@ -322,13 +322,13 @@ sub_080A3E20: @ 0x080A3E20 _080A3E42: pop {pc} .align 2, 0 -_080A3E44: .4byte gUnk_02000080 +_080A3E44: .4byte gMenu thumb_func_start sub_080A3E48 sub_080A3E48: @ 0x080A3E48 push {r4, lr} ldr r2, _080A3E78 @ =gUnk_080C9CBC - ldr r3, _080A3E7C @ =gUnk_02000080 + ldr r3, _080A3E7C @ =gMenu adds r0, r3, #0 adds r0, #0x2a ldrb r0, [r0] @@ -350,7 +350,7 @@ sub_080A3E48: @ 0x080A3E48 b _080A3EC8 .align 2, 0 _080A3E78: .4byte gUnk_080C9CBC -_080A3E7C: .4byte gUnk_02000080 +_080A3E7C: .4byte gMenu _080A3E80: .4byte gUnk_02022740 _080A3E84: movs r2, #0 @@ -424,7 +424,7 @@ _080A3F0C: .4byte 0x0000DFFF thumb_func_start sub_080A3F10 sub_080A3F10: @ 0x080A3F10 push {r4, lr} - ldr r2, _080A3F48 @ =gUnk_02000080 + ldr r2, _080A3F48 @ =gMenu movs r0, #4 strb r0, [r2, #1] adds r3, r2, #0 @@ -451,13 +451,13 @@ sub_080A3F10: @ 0x080A3F10 _080A3F46: pop {r4, pc} .align 2, 0 -_080A3F48: .4byte gUnk_02000080 +_080A3F48: .4byte gMenu thumb_func_start sub_080A3F4C sub_080A3F4C: @ 0x080A3F4C push {lr} ldr r1, _080A3F60 @ =gUnk_08128100 - ldr r0, _080A3F64 @ =gUnk_02000080 + ldr r0, _080A3F64 @ =gMenu ldrb r0, [r0, #6] lsls r0, r0, #2 adds r0, r0, r1 @@ -466,12 +466,12 @@ sub_080A3F4C: @ 0x080A3F4C pop {pc} .align 2, 0 _080A3F60: .4byte gUnk_08128100 -_080A3F64: .4byte gUnk_02000080 +_080A3F64: .4byte gMenu thumb_func_start sub_080A3F68 sub_080A3F68: @ 0x080A3F68 push {r4, r5, lr} - ldr r5, _080A3FB4 @ =gUnk_02000080 + ldr r5, _080A3FB4 @ =gMenu movs r0, #5 strb r0, [r5, #1] ldr r4, _080A3FB8 @ =gUnk_02002C81 @@ -505,7 +505,7 @@ _080A3F96: strh r0, [r5, #8] pop {r4, r5, pc} .align 2, 0 -_080A3FB4: .4byte gUnk_02000080 +_080A3FB4: .4byte gMenu _080A3FB8: .4byte gUnk_02002C81 _080A3FBC: .4byte gUnk_02022740 _080A3FC0: .4byte 0xFFFFFED6 @@ -521,7 +521,7 @@ sub_080A3FCC: @ 0x080A3FCC ands r0, r1 cmp r0, #0 bne _080A3FE6 - ldr r0, _080A3FEC @ =gUnk_02000080 + ldr r0, _080A3FEC @ =gMenu movs r1, #2 strb r1, [r0, #6] ldr r0, _080A3FF0 @ =0x00000147 @@ -530,13 +530,13 @@ _080A3FE6: pop {pc} .align 2, 0 _080A3FE8: .4byte gTextBox -_080A3FEC: .4byte gUnk_02000080 +_080A3FEC: .4byte gMenu _080A3FF0: .4byte 0x00000147 thumb_func_start sub_080A3FF4 sub_080A3FF4: @ 0x080A3FF4 push {lr} - ldr r2, _080A4014 @ =gUnk_02000080 + ldr r2, _080A4014 @ =gMenu ldrh r0, [r2, #8] subs r0, #1 strh r0, [r2, #8] @@ -551,7 +551,7 @@ sub_080A3FF4: @ 0x080A3FF4 strh r0, [r2, #0x1a] b _080A4036 .align 2, 0 -_080A4014: .4byte gUnk_02000080 +_080A4014: .4byte gMenu _080A4018: movs r0, #6 strb r0, [r2, #1] @@ -572,7 +572,7 @@ _080A4036: thumb_func_start sub_080A4038 sub_080A4038: @ 0x080A4038 push {lr} - ldr r1, _080A4050 @ =gUnk_02000080 + ldr r1, _080A4050 @ =gMenu ldrh r0, [r1, #8] subs r0, #1 strh r0, [r1, #8] @@ -584,7 +584,7 @@ sub_080A4038: @ 0x080A4038 _080A404E: pop {pc} .align 2, 0 -_080A4050: .4byte gUnk_02000080 +_080A4050: .4byte gMenu thumb_func_start sub_080A4054 sub_080A4054: @ 0x080A4054 @@ -617,7 +617,7 @@ sub_080A4080: @ 0x080A4080 movs r0, #0 strh r0, [r4, #4] strh r0, [r4, #6] - ldr r5, _080A4138 @ =gUnk_02000080 + ldr r5, _080A4138 @ =gMenu adds r0, r5, #0 adds r0, #0x2f movs r1, #0 @@ -700,7 +700,7 @@ _080A4130: pop {r4, r5, r6, r7, pc} .align 2, 0 _080A4134: .4byte gUnk_03001010 -_080A4138: .4byte gUnk_02000080 +_080A4138: .4byte gMenu _080A413C: .4byte 0x000001FB _080A4140: .4byte gUnk_03001000 _080A4144: .4byte gUnk_08128110 @@ -716,7 +716,7 @@ sub_080A414C: @ 0x080A414C movs r0, #0 strh r0, [r4, #4] strh r0, [r4, #6] - ldr r0, _080A4214 @ =gUnk_02000080 + ldr r0, _080A4214 @ =gMenu ldrh r0, [r0, #0x10] ldr r1, _080A4218 @ =0x00000B21 bl __divsi3 @@ -769,7 +769,7 @@ _080A41BC: asrs r0, r0, #8 subs r0, #0x10 strh r0, [r7] - ldr r2, _080A4214 @ =gUnk_02000080 + ldr r2, _080A4214 @ =gMenu ldr r0, [r2, #0x10] cmp r0, #0 bge _080A41CE @@ -812,7 +812,7 @@ _080A4200: pop {r4, r5, r6, r7, pc} .align 2, 0 _080A4210: .4byte gUnk_03001010 -_080A4214: .4byte gUnk_02000080 +_080A4214: .4byte gMenu _080A4218: .4byte 0x00000B21 _080A421C: .4byte gSineTable _080A4220: .4byte gUnk_02002B6B @@ -822,7 +822,7 @@ _080A4228: .4byte gUnk_02002A40 thumb_func_start sub_080A422C sub_080A422C: @ 0x080A422C push {r4, r5, lr} - ldr r5, _080A42A4 @ =gUnk_02000080 + ldr r5, _080A42A4 @ =gMenu ldrh r0, [r5, #0x18] lsrs r0, r0, #8 movs r1, #0x1b @@ -877,7 +877,7 @@ sub_080A422C: @ 0x080A422C subs r4, r1, r0 b _080A42C6 .align 2, 0 -_080A42A4: .4byte gUnk_02000080 +_080A42A4: .4byte gMenu _080A42A8: .4byte gUnk_08128120 _080A42AC: .4byte gUnk_03001010 _080A42B0: @@ -949,7 +949,7 @@ _080A4324: ldrsh r4, [r1, r0] movs r2, #2 ldrsh r5, [r1, r2] - ldr r0, _080A4354 @ =gUnk_02000080 + ldr r0, _080A4354 @ =gMenu ldrb r0, [r0, #1] cmp r0, #0 bne _080A4358 @@ -963,7 +963,7 @@ _080A4324: _080A4348: .4byte gUnk_02019EE0 _080A434C: .4byte gUnk_03001010 _080A4350: .4byte 0x00003AE0 -_080A4354: .4byte gUnk_02000080 +_080A4354: .4byte gMenu _080A4358: ldrh r0, [r1] adds r0, #8 @@ -1125,7 +1125,7 @@ sub_080A4468: @ 0x080A4468 ldr r0, _080A448C @ =gUnk_02022740 ldrb r0, [r0, #3] bl sub_0801E6C8 - ldr r0, _080A4490 @ =gUnk_02000080 + ldr r0, _080A4490 @ =gMenu adds r0, #0x2a ldrb r0, [r0] bl sub_0801E798 @@ -1133,7 +1133,7 @@ sub_080A4468: @ 0x080A4468 .align 2, 0 _080A4488: .4byte gUnk_03003DF0 _080A448C: .4byte gUnk_02022740 -_080A4490: .4byte gUnk_02000080 +_080A4490: .4byte gMenu thumb_func_start sub_080A4494 sub_080A4494: @ 0x080A4494 @@ -1281,7 +1281,7 @@ sub_080A45A4: @ 0x080A45A4 cmp r0, #0xff bne _080A45D0 ldr r1, _080A45C8 @ =gUnk_0812815C - ldr r0, _080A45CC @ =gUnk_02000080 + ldr r0, _080A45CC @ =gMenu ldrb r0, [r0, #5] lsls r0, r0, #2 adds r0, r0, r1 @@ -1291,10 +1291,10 @@ sub_080A45A4: @ 0x080A45A4 .align 2, 0 _080A45C4: .4byte gUnk_02032EC0 _080A45C8: .4byte gUnk_0812815C -_080A45CC: .4byte gUnk_02000080 +_080A45CC: .4byte gMenu _080A45D0: ldr r1, _080A4600 @ =gUnk_0812814C - ldr r0, _080A4604 @ =gUnk_02000080 + ldr r0, _080A4604 @ =gMenu ldrb r0, [r0, #5] lsls r0, r0, #2 adds r0, r0, r1 @@ -1311,7 +1311,7 @@ _080A45E0: pop {pc} .align 2, 0 _080A4600: .4byte gUnk_0812814C -_080A4604: .4byte gUnk_02000080 +_080A4604: .4byte gMenu thumb_func_start sub_080A4608 sub_080A4608: @ 0x080A4608 @@ -1359,7 +1359,7 @@ sub_080A4608: @ 0x080A4608 movs r0, #1 strh r0, [r2, #0x1a] movs r2, #0xee - ldr r3, _080A46B4 @ =gUnk_02000080 + ldr r3, _080A46B4 @ =gMenu movs r1, #0xf adds r0, r3, #0 adds r0, #0x1f @@ -1393,7 +1393,7 @@ _080A46A4: .4byte gUnk_02034CB0 _080A46A8: .4byte gUnk_02001A40 _080A46AC: .4byte gScreen _080A46B0: .4byte 0x00007898 -_080A46B4: .4byte gUnk_02000080 +_080A46B4: .4byte gMenu _080A46B8: .4byte gUnk_02032EC0 _080A46BC: .4byte gUnk_02002A40 @@ -1427,7 +1427,7 @@ sub_080A46EC: @ 0x080A46EC cmp r0, #0 bne _080A4710 ldr r1, _080A4718 @ =gUnk_080FC3E4 - ldr r0, _080A471C @ =gUnk_02000080 + ldr r0, _080A471C @ =gMenu ldrb r0, [r0, #0x1c] lsls r0, r0, #3 adds r0, r0, r1 @@ -1442,12 +1442,12 @@ _080A4710: .align 2, 0 _080A4714: .4byte gUnk_03000FD0 _080A4718: .4byte gUnk_080FC3E4 -_080A471C: .4byte gUnk_02000080 +_080A471C: .4byte gMenu thumb_func_start sub_080A4720 sub_080A4720: @ 0x080A4720 push {r4, lr} - ldr r4, _080A4744 @ =gUnk_02000080 + ldr r4, _080A4744 @ =gMenu ldrb r0, [r4] cmp r0, #0 beq _080A47C4 @@ -1464,7 +1464,7 @@ sub_080A4720: @ 0x080A4720 beq _080A4788 b _080A475A .align 2, 0 -_080A4744: .4byte gUnk_02000080 +_080A4744: .4byte gMenu _080A4748: ldr r0, _080A477C @ =gUnk_02002B0E ldrb r1, [r4, #0x1c] @@ -1475,7 +1475,7 @@ _080A4748: movs r0, #1 strb r0, [r4, #1] _080A475A: - ldr r0, _080A4780 @ =gUnk_02000080 + ldr r0, _080A4780 @ =gMenu adds r0, #0x20 ldrb r0, [r0] lsrs r1, r0, #2 @@ -1494,7 +1494,7 @@ _080A476A: b _080A47C4 .align 2, 0 _080A477C: .4byte gUnk_02002B0E -_080A4780: .4byte gUnk_02000080 +_080A4780: .4byte gMenu _080A4784: .4byte gScreen _080A4788: ldr r2, _080A47C8 @ =gScreen @@ -1534,7 +1534,7 @@ _080A47CC: .4byte gUnk_0812813C thumb_func_start sub_080A47D0 sub_080A47D0: @ 0x080A47D0 push {r4, lr} - ldr r0, _080A47EC @ =gUnk_02000080 + ldr r0, _080A47EC @ =gMenu movs r4, #0x1f ldrsb r4, [r0, r4] ldr r0, _080A47F0 @ =gUnk_03000FF0 @@ -1547,7 +1547,7 @@ sub_080A47D0: @ 0x080A47D0 beq _080A47FE b _080A480A .align 2, 0 -_080A47EC: .4byte gUnk_02000080 +_080A47EC: .4byte gMenu _080A47F0: .4byte gUnk_03000FF0 _080A47F4: cmp r0, #0x10 @@ -1564,7 +1564,7 @@ _080A4804: _080A4808: subs r4, #8 _080A480A: - ldr r1, _080A4828 @ =gUnk_02000080 + ldr r1, _080A4828 @ =gMenu ldrb r0, [r1, #0x1e] cmp r4, #0 bge _080A4814 @@ -1581,7 +1581,7 @@ _080A481A: strh r0, [r1, #0x18] pop {r4, pc} .align 2, 0 -_080A4828: .4byte gUnk_02000080 +_080A4828: .4byte gMenu _080A482C: .4byte gScreen thumb_func_start sub_080A4830 @@ -1597,7 +1597,7 @@ sub_080A4830: @ 0x080A4830 strh r0, [r2] ldr r0, _080A485C @ =gUnk_0812813C bl sub_080A70AC - ldr r1, _080A4860 @ =gUnk_02000080 + ldr r1, _080A4860 @ =gMenu movs r0, #0xff strb r0, [r1, #1] movs r0, #1 @@ -1606,7 +1606,7 @@ sub_080A4830: @ 0x080A4830 .align 2, 0 _080A4858: .4byte gScreen _080A485C: .4byte gUnk_0812813C -_080A4860: .4byte gUnk_02000080 +_080A4860: .4byte gMenu thumb_func_start sub_080A4864 sub_080A4864: @ 0x080A4864 @@ -1615,7 +1615,7 @@ sub_080A4864: @ 0x080A4864 ldrb r0, [r0] cmp r0, #0 bne _080A4926 - ldr r0, _080A4898 @ =gUnk_02000080 + ldr r0, _080A4898 @ =gMenu movs r5, #0x1f ldrsb r5, [r0, r5] ldrb r4, [r0, #0x1c] @@ -1636,7 +1636,7 @@ sub_080A4864: @ 0x080A4864 b _080A48DE .align 2, 0 _080A4894: .4byte gUnk_03000FD0 -_080A4898: .4byte gUnk_02000080 +_080A4898: .4byte gMenu _080A489C: .4byte gUnk_03000FF0 _080A48A0: cmp r1, #0x80 @@ -1693,7 +1693,7 @@ _080A48F0: bge _080A48F6 adds r4, r1, #0 _080A48F6: - ldr r6, _080A492C @ =gUnk_02000080 + ldr r6, _080A492C @ =gMenu ldrb r0, [r6, #0x1c] cmp r0, r4 beq _080A490E @@ -1722,7 +1722,7 @@ _080A4926: pop {r4, r5, r6, pc} .align 2, 0 _080A4928: .4byte gUnk_02002A40 -_080A492C: .4byte gUnk_02000080 +_080A492C: .4byte gMenu _080A4930: .4byte gScreen thumb_func_start sub_080A4934 @@ -1796,7 +1796,7 @@ sub_080A4978: @ 0x080A4978 bne _080A49AC movs r2, #0x82 _080A49AC: - ldr r3, _080A4B24 @ =gUnk_02000080 + ldr r3, _080A4B24 @ =gMenu ldrb r1, [r3, #1] movs r0, #2 ands r0, r1 @@ -1852,7 +1852,7 @@ _080A4A10: ands r0, r1 cmp r0, #0 beq _080A4A6A - ldr r5, _080A4B24 @ =gUnk_02000080 + ldr r5, _080A4B24 @ =gMenu ldrb r1, [r5, #1] adds r0, r2, #0 ands r0, r1 @@ -1895,7 +1895,7 @@ _080A4A6A: ldrb r0, [r0, #7] cmp r0, #0 beq _080A4ABE - ldr r2, _080A4B24 @ =gUnk_02000080 + ldr r2, _080A4B24 @ =gMenu ldrb r1, [r2, #1] movs r0, #4 ands r0, r1 @@ -1931,7 +1931,7 @@ _080A4A8E: cmp r6, #0 bge _080A4A8E _080A4ABE: - ldr r4, _080A4B24 @ =gUnk_02000080 + ldr r4, _080A4B24 @ =gMenu ldrb r1, [r4, #1] movs r0, #1 ands r0, r1 @@ -1977,7 +1977,7 @@ _080A4ABE: .align 2, 0 _080A4B1C: .4byte gUnk_03001010 _080A4B20: .4byte gUnk_02002A40 -_080A4B24: .4byte gUnk_02000080 +_080A4B24: .4byte gMenu _080A4B28: .4byte gUnk_03001000 _080A4B2C: .4byte gUnk_081281A8 _080A4B30: .4byte 0x06014000 @@ -1994,7 +1994,7 @@ _080A4B40: .4byte 0x06014000 thumb_func_start sub_080A4B44 sub_080A4B44: @ 0x080A4B44 push {r4, r5, lr} - ldr r5, _080A4B9C @ =gUnk_02000080 + ldr r5, _080A4B9C @ =gMenu ldrb r4, [r5, #0x1c] ldrb r1, [r5, #1] movs r0, #0x10 @@ -2034,7 +2034,7 @@ _080A4B6E: _080A4B98: pop {r4, r5, pc} .align 2, 0 -_080A4B9C: .4byte gUnk_02000080 +_080A4B9C: .4byte gMenu thumb_func_start sub_080A4BA0 sub_080A4BA0: @ 0x080A4BA0 @@ -2115,7 +2115,7 @@ _080A4C38: _080A4C3C: adds r5, r5, r0 _080A4C3E: - ldr r0, _080A4C94 @ =gUnk_02000080 + ldr r0, _080A4C94 @ =gMenu lsls r1, r6, #1 adds r0, #0x10 adds r1, r1, r0 @@ -2159,7 +2159,7 @@ _080A4C72: bl sub_0805F46C b _080A4CAC .align 2, 0 -_080A4C94: .4byte gUnk_02000080 +_080A4C94: .4byte gMenu _080A4C98: .4byte 0x0000F00B _080A4C9C: .4byte 0x00007FFF _080A4CA0: .4byte 0x00000889 @@ -2181,7 +2181,7 @@ _080A4CB8: .4byte gScreen sub_080A4CBC: @ 0x080A4CBC push {r4, r5, r6, lr} adds r6, r0, #0 - ldr r1, _080A4D0C @ =gUnk_02000080 + ldr r1, _080A4D0C @ =gMenu ldrb r0, [r1, #0x1a] cmp r0, r6 beq _080A4CFE @@ -2218,7 +2218,7 @@ _080A4CFE: movs r2, #0 b _080A4D28 .align 2, 0 -_080A4D0C: .4byte gUnk_02000080 +_080A4D0C: .4byte gMenu _080A4D10: .4byte gUnk_02021F30 _080A4D14: .4byte 0x0600E000 _080A4D18: .4byte gUnk_08128190 @@ -2324,7 +2324,7 @@ sub_080A4DB8: @ 0x080A4DB8 movs r1, #0xc0 lsls r1, r1, #2 bl _DmaZero - ldr r4, _080A4E68 @ =gUnk_02000080 + ldr r4, _080A4E68 @ =gMenu adds r0, r4, #0 movs r1, #0x30 bl _DmaZero @@ -2384,7 +2384,7 @@ _080A4E58: .4byte gUnk_02034CB0 _080A4E5C: .4byte gUnk_02021F30 _080A4E60: .4byte gUnk_020344B0 _080A4E64: .4byte gUnk_0200AF34 -_080A4E68: .4byte gUnk_02000080 +_080A4E68: .4byte gMenu _080A4E6C: .4byte 0x0000FFFF _080A4E70: .4byte gUnk_02034490 _080A4E74: .4byte gUnk_08128A38 @@ -2496,7 +2496,7 @@ _080A4F38: bl sub_0801DB94 strb r0, [r4, #7] movs r0, #0x10 - bl sub_0805436C + bl IsItemEquipped movs r1, #0xf cmp r0, #2 beq _080A4F66 @@ -2544,7 +2544,7 @@ sub_080A4FB8: @ 0x080A4FB8 bl sub_080A51F4 cmp r0, #0 beq _080A5052 - ldr r0, _080A4FE4 @ =gUnk_02000080 + ldr r0, _080A4FE4 @ =gMenu ldr r1, [r0, #0xc] adds r2, r0, #0 cmp r1, #0 @@ -2561,7 +2561,7 @@ sub_080A4FB8: @ 0x080A4FB8 beq _080A500A b _080A500C .align 2, 0 -_080A4FE4: .4byte gUnk_02000080 +_080A4FE4: .4byte gMenu _080A4FE8: .4byte gUnk_03000FF0 _080A4FEC: movs r0, #0x80 @@ -2611,7 +2611,7 @@ _080A5028: bne _080A503A movs r1, #2 _080A503A: - ldr r0, _080A5078 @ =gUnk_02000080 + ldr r0, _080A5078 @ =gMenu ldr r0, [r0, #0xc] adds r0, r0, r1 ldrb r5, [r0] @@ -2621,7 +2621,7 @@ _080A5042: strb r5, [r0, #0x14] movs r0, #0x65 bl PlaySFX - ldr r0, _080A5078 @ =gUnk_02000080 + ldr r0, _080A5078 @ =gMenu str r4, [r0, #0xc] _080A5052: ldr r4, _080A507C @ =gUnk_02034490 @@ -2640,7 +2640,7 @@ _080A5052: bl sub_080A4E90 b _080A5096 .align 2, 0 -_080A5078: .4byte gUnk_02000080 +_080A5078: .4byte gMenu _080A507C: .4byte gUnk_02034490 _080A5080: movs r0, #3 @@ -2828,14 +2828,14 @@ sub_080A51D4: @ 0x080A51D4 bhi _080A51E8 adds r0, #2 adds r0, r1, r0 - ldr r1, _080A51F0 @ =gUnk_02000080 + ldr r1, _080A51F0 @ =gMenu ldrb r1, [r1, #3] strb r1, [r0] _080A51E8: pop {pc} .align 2, 0 _080A51EC: .4byte gUnk_02034490 -_080A51F0: .4byte gUnk_02000080 +_080A51F0: .4byte gMenu thumb_func_start sub_080A51F4 sub_080A51F4: @ 0x080A51F4 @@ -2863,7 +2863,7 @@ _080A5214: .4byte gUnk_02034490 sub_080A5218: @ 0x080A5218 push {lr} ldr r1, _080A5230 @ =gUnk_08128B48 - ldr r0, _080A5234 @ =gUnk_02000080 + ldr r0, _080A5234 @ =gMenu ldrb r0, [r0, #5] lsls r0, r0, #2 adds r0, r0, r1 @@ -2873,12 +2873,12 @@ sub_080A5218: @ 0x080A5218 pop {pc} .align 2, 0 _080A5230: .4byte gUnk_08128B48 -_080A5234: .4byte gUnk_02000080 +_080A5234: .4byte gMenu thumb_func_start sub_080A5238 sub_080A5238: @ 0x080A5238 push {r4, r5, lr} - ldr r4, _080A528C @ =gUnk_02000080 + ldr r4, _080A528C @ =gMenu movs r0, #0 str r0, [r4, #0xc] ldr r0, _080A5290 @ =gUnk_08128B50 @@ -2919,7 +2919,7 @@ _080A527E: bl sub_080A7114 pop {r4, r5, pc} .align 2, 0 -_080A528C: .4byte gUnk_02000080 +_080A528C: .4byte gMenu _080A5290: .4byte gUnk_08128B50 _080A5294: .4byte gUnk_080FD5B4 _080A5298: .4byte gUnk_02034490 @@ -2930,7 +2930,7 @@ sub_080A529C: @ 0x080A529C bl sub_080A51F4 cmp r0, #0 beq _080A5380 - ldr r1, _080A52D0 @ =gUnk_02000080 + ldr r1, _080A52D0 @ =gMenu ldr r0, _080A52D4 @ =gUnk_08128BF4 str r0, [r1, #0xc] ldrb r4, [r1, #3] @@ -2951,7 +2951,7 @@ sub_080A529C: @ 0x080A529C bgt _080A531E b _080A5318 .align 2, 0 -_080A52D0: .4byte gUnk_02000080 +_080A52D0: .4byte gMenu _080A52D4: .4byte gUnk_08128BF4 _080A52D8: .4byte gUnk_08128B64 _080A52DC: .4byte gUnk_03000FF0 @@ -2962,7 +2962,7 @@ _080A52E0: bl sub_080A4E84 b _080A530A _080A52EC: - ldr r0, _080A5314 @ =gUnk_02000080 + ldr r0, _080A5314 @ =gMenu adds r0, #0x10 adds r2, r4, r0 ldrb r0, [r2] @@ -2981,7 +2981,7 @@ _080A530A: bl PlaySFX b _080A5336 .align 2, 0 -_080A5314: .4byte gUnk_02000080 +_080A5314: .4byte gMenu _080A5318: cmp r0, #0x10 beq _080A5334 @@ -3004,7 +3004,7 @@ _080A5330: _080A5334: ldrb r4, [r1, #3] _080A5336: - ldr r5, _080A535C @ =gUnk_02000080 + ldr r5, _080A535C @ =gMenu ldrb r0, [r5, #3] cmp r0, r4 beq _080A5346 @@ -3024,7 +3024,7 @@ _080A5346: beq _080A5374 b _080A5376 .align 2, 0 -_080A535C: .4byte gUnk_02000080 +_080A535C: .4byte gMenu _080A5360: cmp r1, #0 beq _080A5376 @@ -3073,7 +3073,7 @@ sub_080A5384: @ 0x080A5384 mov r8, r2 movs r6, #0 _080A53B4: - ldr r0, _080A5408 @ =gUnk_02000080 + ldr r0, _080A5408 @ =gMenu adds r0, #0x10 adds r2, r5, r0 ldrb r0, [r2] @@ -3115,7 +3115,7 @@ _080A53E0: .align 2, 0 _080A5400: .4byte gUnk_03001010 _080A5404: .4byte gUnk_02002A40 -_080A5408: .4byte gUnk_02000080 +_080A5408: .4byte gMenu _080A540C: .4byte gUnk_08128B64 _080A5410: .4byte gBombBagSizes _080A5414: @@ -3162,7 +3162,7 @@ _080A5456: movs r1, #0x80 lsls r1, r1, #4 strh r1, [r0, #8] - ldr r1, _080A5538 @ =gUnk_02000080 + ldr r1, _080A5538 @ =gMenu ldrb r1, [r1, #3] mov sb, r0 cmp r1, #0x10 @@ -3264,7 +3264,7 @@ _080A5522: _080A552C: .4byte gQuiverSizes _080A5530: .4byte gUnk_03001010 _080A5534: .4byte gUnk_080FDFD8 -_080A5538: .4byte gUnk_02000080 +_080A5538: .4byte gMenu _080A553C: .4byte gUnk_08128B64 _080A5540: .4byte gUnk_03001000 _080A5544: .4byte 0x000001FB diff --git a/asm/code_080A5574.s b/asm/code_080A5574.s index 93865266..780e1fbf 100644 --- a/asm/code_080A5574.s +++ b/asm/code_080A5574.s @@ -10,7 +10,7 @@ sub_080A5574: @ 0x080A5574 push {lr} ldr r1, _080A558C @ =gUnk_08128BF8 - ldr r0, _080A5590 @ =gUnk_02000080 + ldr r0, _080A5590 @ =gMenu ldrb r0, [r0, #5] lsls r0, r0, #2 adds r0, r0, r1 @@ -20,12 +20,12 @@ sub_080A5574: @ 0x080A5574 pop {pc} .align 2, 0 _080A558C: .4byte gUnk_08128BF8 -_080A5590: .4byte gUnk_02000080 +_080A5590: .4byte gMenu thumb_func_start sub_080A5594 sub_080A5594: @ 0x080A5594 push {r4, r5, r6, r7, lr} - ldr r4, _080A5620 @ =gUnk_02000080 + ldr r4, _080A5620 @ =gMenu ldr r0, _080A5624 @ =gUnk_08128C00 str r0, [r4, #0xc] ldr r0, _080A5628 @ =gUnk_08128C04 @@ -94,7 +94,7 @@ _080A560A: movs r5, #4 b _080A5646 .align 2, 0 -_080A5620: .4byte gUnk_02000080 +_080A5620: .4byte gMenu _080A5624: .4byte gUnk_08128C00 _080A5628: .4byte gUnk_08128C04 _080A562C: .4byte gUnk_080FD5B4 @@ -112,10 +112,10 @@ _080A563C: _080A5644: movs r5, #1 _080A5646: - ldr r0, _080A5698 @ =gUnk_02000080 + ldr r0, _080A5698 @ =gMenu strb r5, [r0, #0x10] _080A564A: - ldr r0, _080A5698 @ =gUnk_02000080 + ldr r0, _080A5698 @ =gMenu ldr r1, _080A569C @ =gUnk_02002A40 adds r1, #0xa9 ldrb r1, [r1] @@ -133,7 +133,7 @@ _080A5666: adds r4, #1 cmp r4, #0x4f bls _080A565A - ldr r4, _080A5698 @ =gUnk_02000080 + ldr r4, _080A5698 @ =gMenu strb r5, [r4, #0x12] movs r0, #0x3e bl GetInventoryValue @@ -146,14 +146,14 @@ _080A5666: movs r0, #0x3f strb r0, [r4, #0x13] _080A5688: - ldr r1, _080A5698 @ =gUnk_02000080 + ldr r1, _080A5698 @ =gMenu movs r0, #1 strb r0, [r1, #0x14] strb r0, [r1, #0x15] bl sub_080A7114 pop {r4, r5, r6, r7, pc} .align 2, 0 -_080A5698: .4byte gUnk_02000080 +_080A5698: .4byte gMenu _080A569C: .4byte gUnk_02002A40 thumb_func_start sub_080A56A0 @@ -164,7 +164,7 @@ sub_080A56A0: @ 0x080A56A0 bne _080A56AC b _080A57F0 _080A56AC: - ldr r2, _080A56D0 @ =gUnk_02000080 + ldr r2, _080A56D0 @ =gMenu ldr r0, _080A56D4 @ =gUnk_08128C00 str r0, [r2, #0xc] ldrb r0, [r2, #3] @@ -182,7 +182,7 @@ _080A56AC: beq _080A56F6 b _080A56F8 .align 2, 0 -_080A56D0: .4byte gUnk_02000080 +_080A56D0: .4byte gMenu _080A56D4: .4byte gUnk_08128C00 _080A56D8: .4byte gUnk_08128C14 _080A56DC: .4byte gUnk_03000FF0 @@ -206,13 +206,13 @@ _080A56F6: _080A56F8: cmp r3, #0xff beq _080A570C - ldr r0, _080A5708 @ =gUnk_02000080 + ldr r0, _080A5708 @ =gMenu strb r3, [r0, #3] movs r0, #0x69 bl PlaySFX b _080A575E .align 2, 0 -_080A5708: .4byte gUnk_02000080 +_080A5708: .4byte gMenu _080A570C: ldrh r0, [r0, #2] cmp r0, #1 @@ -233,7 +233,7 @@ _080A5724: beq _080A574C b _080A574E _080A572E: - ldr r0, _080A5744 @ =gUnk_02000080 + ldr r0, _080A5744 @ =gMenu adds r0, #0x10 adds r0, r3, r0 ldrb r0, [r0] @@ -245,7 +245,7 @@ _080A572E: movs r1, #7 b _080A5752 .align 2, 0 -_080A5744: .4byte gUnk_02000080 +_080A5744: .4byte gMenu _080A5748: movs r1, #9 b _080A5752 @@ -260,7 +260,7 @@ _080A5752: movs r0, #0x6a bl PlaySFX _080A575E: - ldr r0, _080A5780 @ =gUnk_02000080 + ldr r0, _080A5780 @ =gMenu ldrb r1, [r0, #3] adds r2, r0, #0 cmp r1, #0 @@ -278,7 +278,7 @@ _080A576C: movs r0, #0x10 b _080A578C .align 2, 0 -_080A5780: .4byte gUnk_02000080 +_080A5780: .4byte gMenu _080A5784: .4byte gUnk_0200AF00 _080A5788: ldr r1, _080A57AC @ =gUnk_0200AF00 @@ -357,7 +357,7 @@ sub_080A57F4: @ 0x080A57F4 ldr r3, _080A5898 @ =gUnk_08128C14 mov sb, r3 _080A581A: - ldr r0, _080A589C @ =gUnk_02000080 + ldr r0, _080A589C @ =gMenu ldrb r0, [r0, #3] lsls r0, r0, #3 mov r1, sb @@ -387,7 +387,7 @@ _080A5846: mov r7, sb adds r7, #5 _080A5854: - ldr r0, _080A589C @ =gUnk_02000080 + ldr r0, _080A589C @ =gMenu adds r0, #0x10 mov r1, r8 adds r6, r1, r0 @@ -420,7 +420,7 @@ _080A5854: _080A5890: .4byte gUnk_03001010 _080A5894: .4byte gUnk_08128C94 _080A5898: .4byte gUnk_08128C14 -_080A589C: .4byte gUnk_02000080 +_080A589C: .4byte gMenu _080A58A0: .4byte gUnk_03001000 _080A58A4: .4byte 0x000001FB _080A58A8: @@ -467,7 +467,7 @@ _080A58E8: mov r1, r8 cmp r1, #0xf bls _080A5854 - ldr r4, _080A5984 @ =gUnk_02000080 + ldr r4, _080A5984 @ =gMenu ldrb r0, [r4, #0x12] cmp r0, #0 beq _080A5920 @@ -537,7 +537,7 @@ _080A5976: pop {r4, r5, r6, r7, pc} .align 2, 0 _080A5980: .4byte gUnk_080FDFD8 -_080A5984: .4byte gUnk_02000080 +_080A5984: .4byte gMenu _080A5988: .4byte gUnk_03001010 _080A598C: .4byte gUnk_02002A40 @@ -545,7 +545,7 @@ _080A598C: .4byte gUnk_02002A40 sub_080A5990: @ 0x080A5990 push {lr} ldr r1, _080A59A4 @ =gUnk_08128D14 - ldr r0, _080A59A8 @ =gUnk_02000080 + ldr r0, _080A59A8 @ =gMenu ldrb r0, [r0, #5] lsls r0, r0, #2 adds r0, r0, r1 @@ -554,12 +554,12 @@ sub_080A5990: @ 0x080A5990 pop {pc} .align 2, 0 _080A59A4: .4byte gUnk_08128D14 -_080A59A8: .4byte gUnk_02000080 +_080A59A8: .4byte gMenu thumb_func_start sub_080A59AC sub_080A59AC: @ 0x080A59AC push {lr} - ldr r1, _080A59C4 @ =gUnk_02000080 + ldr r1, _080A59C4 @ =gMenu movs r0, #0 strb r0, [r1, #3] movs r1, #0 @@ -568,7 +568,7 @@ sub_080A59AC: @ 0x080A59AC bl sub_080A7114 pop {pc} .align 2, 0 -_080A59C4: .4byte gUnk_02000080 +_080A59C4: .4byte gMenu thumb_func_start sub_080A59C8 sub_080A59C8: @ 0x080A59C8 @@ -576,7 +576,7 @@ sub_080A59C8: @ 0x080A59C8 bl sub_080A51F4 cmp r0, #0 beq _080A5A52 - ldr r1, _080A59EC @ =gUnk_02000080 + ldr r1, _080A59EC @ =gMenu ldrb r2, [r1, #3] movs r3, #0 ldr r0, _080A59F0 @ =gUnk_03000FF0 @@ -589,7 +589,7 @@ sub_080A59C8: @ 0x080A59C8 beq _080A5A0A b _080A5A0C .align 2, 0 -_080A59EC: .4byte gUnk_02000080 +_080A59EC: .4byte gMenu _080A59F0: .4byte gUnk_03000FF0 _080A59F4: cmp r0, #0x40 @@ -666,7 +666,7 @@ _080A5A76: movs r0, #9 movs r1, #0 bl sub_08050318 - ldr r1, _080A5A8C @ =gUnk_02000080 + ldr r1, _080A5A8C @ =gMenu movs r0, #0x3c strh r0, [r1, #8] _080A5A84: @@ -675,12 +675,12 @@ _080A5A84: _080A5A8A: pop {pc} .align 2, 0 -_080A5A8C: .4byte gUnk_02000080 +_080A5A8C: .4byte gMenu thumb_func_start sub_080A5A90 sub_080A5A90: @ 0x080A5A90 push {lr} - ldr r2, _080A5AA4 @ =gUnk_02000080 + ldr r2, _080A5AA4 @ =gMenu ldrh r0, [r2, #8] cmp r0, #0 beq _080A5AA8 @@ -690,7 +690,7 @@ sub_080A5A90: @ 0x080A5A90 strh r0, [r2, #8] b _080A5AD2 .align 2, 0 -_080A5AA4: .4byte gUnk_02000080 +_080A5AA4: .4byte gMenu _080A5AA8: ldr r0, _080A5ABC @ =gUnk_03000FF0 ldrh r1, [r0, #2] @@ -722,7 +722,7 @@ _080A5AD4: .4byte gUnk_02034490 sub_080A5AD8: @ 0x080A5AD8 push {lr} ldr r1, _080A5AEC @ =gUnk_08128D24 - ldr r0, _080A5AF0 @ =gUnk_02000080 + ldr r0, _080A5AF0 @ =gMenu ldrb r0, [r0, #5] lsls r0, r0, #2 adds r0, r0, r1 @@ -731,12 +731,12 @@ sub_080A5AD8: @ 0x080A5AD8 pop {pc} .align 2, 0 _080A5AEC: .4byte gUnk_08128D24 -_080A5AF0: .4byte gUnk_02000080 +_080A5AF0: .4byte gMenu thumb_func_start sub_080A5AF4 sub_080A5AF4: @ 0x080A5AF4 push {r4, lr} - ldr r0, _080A5B18 @ =gUnk_02000080 + ldr r0, _080A5B18 @ =gMenu movs r4, #0 strb r4, [r0, #3] movs r0, #2 @@ -752,7 +752,7 @@ sub_080A5AF4: @ 0x080A5AF4 strh r0, [r1, #0x18] b _080A5B28 .align 2, 0 -_080A5B18: .4byte gUnk_02000080 +_080A5B18: .4byte gMenu _080A5B1C: .4byte gScreen _080A5B20: .4byte 0x0000FFFC _080A5B24: @@ -771,7 +771,7 @@ sub_080A5B34: @ 0x080A5B34 bl sub_080A51F4 cmp r0, #0 beq _080A5BB6 - ldr r1, _080A5B58 @ =gUnk_02000080 + ldr r1, _080A5B58 @ =gMenu ldrb r4, [r1, #3] movs r5, #0 ldr r0, _080A5B5C @ =gUnk_03000FF0 @@ -785,7 +785,7 @@ sub_080A5B34: @ 0x080A5B34 beq _080A5B74 b _080A5B76 .align 2, 0 -_080A5B58: .4byte gUnk_02000080 +_080A5B58: .4byte gMenu _080A5B5C: .4byte gUnk_03000FF0 _080A5B60: cmp r0, #0x10 @@ -865,7 +865,7 @@ _080A5BEC: .4byte gUnk_02034490 sub_080A5BF0: @ 0x080A5BF0 push {r4, r5, lr} ldr r1, _080A5C30 @ =gUnk_08128D30 - ldr r0, _080A5C34 @ =gUnk_02000080 + ldr r0, _080A5C34 @ =gMenu ldrb r0, [r0, #5] lsls r0, r0, #2 adds r0, r0, r1 @@ -895,7 +895,7 @@ _080A5C2E: pop {r4, r5, pc} .align 2, 0 _080A5C30: .4byte gUnk_08128D30 -_080A5C34: .4byte gUnk_02000080 +_080A5C34: .4byte gMenu _080A5C38: .4byte gUnk_03001000 _080A5C3C: .4byte gUnk_02017830 _080A5C40: .4byte gUnk_0200B644 @@ -903,7 +903,7 @@ _080A5C40: .4byte gUnk_0200B644 thumb_func_start sub_080A5C44 sub_080A5C44: @ 0x080A5C44 push {r4, lr} - ldr r1, _080A5C88 @ =gUnk_02000080 + ldr r1, _080A5C88 @ =gMenu ldr r0, _080A5C8C @ =gUnk_08128D38 str r0, [r1, #0xc] ldrb r0, [r1, #3] @@ -933,7 +933,7 @@ sub_080A5C44: @ 0x080A5C44 strh r0, [r2, #0x18] pop {r4, pc} .align 2, 0 -_080A5C88: .4byte gUnk_02000080 +_080A5C88: .4byte gMenu _080A5C8C: .4byte gUnk_08128D38 _080A5C90: .4byte gArea _080A5C94: .4byte gUnk_08128D43 @@ -950,7 +950,7 @@ sub_080A5C9C: @ 0x080A5C9C lsls r0, r0, #2 ldr r1, _080A5CC8 @ =gUnk_080C9C6C adds r3, r0, r1 - ldr r1, _080A5CCC @ =gUnk_02000080 + ldr r1, _080A5CCC @ =gMenu ldrb r2, [r1, #3] ldr r0, _080A5CD0 @ =gUnk_03000FF0 ldrh r0, [r0, #2] @@ -962,7 +962,7 @@ sub_080A5C9C: @ 0x080A5C9C .align 2, 0 _080A5CC4: .4byte gArea _080A5CC8: .4byte gUnk_080C9C6C -_080A5CCC: .4byte gUnk_02000080 +_080A5CCC: .4byte gMenu _080A5CD0: .4byte gUnk_03000FF0 _080A5CD4: cmp r2, #0 @@ -1029,7 +1029,7 @@ sub_080A5D1C: @ 0x080A5D1C strh r0, [r5, #8] movs r0, #0x34 strh r0, [r5] - ldr r0, _080A5EA8 @ =gUnk_02000080 + ldr r0, _080A5EA8 @ =gMenu ldrb r1, [r0, #3] lsls r0, r1, #1 adds r0, r0, r1 @@ -1196,7 +1196,7 @@ _080A5E98: .4byte gArea _080A5E9C: .4byte gUnk_080C9C6C _080A5EA0: .4byte gUnk_08128D3C _080A5EA4: .4byte gUnk_03001010 -_080A5EA8: .4byte gUnk_02000080 +_080A5EA8: .4byte gMenu _080A5EAC: .4byte gUnk_03001000 _080A5EB0: .4byte 0x000001FB _080A5EB4: .4byte gUnk_080FDFD8 @@ -1210,14 +1210,14 @@ _080A5EC0: b _080A5EEE _080A5ECA: movs r4, #0x7d - ldr r0, _080A5ED8 @ =gUnk_02000080 + ldr r0, _080A5ED8 @ =gMenu ldrb r0, [r0, #3] cmp r8, r0 beq _080A5EF0 movs r4, #0x7e b _080A5EF0 .align 2, 0 -_080A5ED8: .4byte gUnk_02000080 +_080A5ED8: .4byte gMenu _080A5EDC: movs r4, #0x80 b _080A5EF0 @@ -1378,7 +1378,7 @@ _080A6004: .4byte 0x84000008 sub_080A6008: @ 0x080A6008 push {lr} ldr r1, _080A601C @ =gUnk_08128D58 - ldr r0, _080A6020 @ =gUnk_02000080 + ldr r0, _080A6020 @ =gMenu ldrb r0, [r0, #5] lsls r0, r0, #2 adds r0, r0, r1 @@ -1387,7 +1387,7 @@ sub_080A6008: @ 0x080A6008 pop {pc} .align 2, 0 _080A601C: .4byte gUnk_08128D58 -_080A6020: .4byte gUnk_02000080 +_080A6020: .4byte gMenu thumb_func_start sub_080A6024 sub_080A6024: @ 0x080A6024 @@ -1412,7 +1412,7 @@ sub_080A6044: @ 0x080A6044 bl sub_080A51F4 cmp r0, #0 beq _080A60C2 - ldr r0, _080A60CC @ =gUnk_02000080 + ldr r0, _080A60CC @ =gMenu ldr r1, _080A60D0 @ =gUnk_08128D51 str r1, [r0, #0xc] ldr r1, _080A60D4 @ =gUnk_03001010 @@ -1451,7 +1451,7 @@ _080A607E: adds r0, r7, r3 adds r0, r4, r0 ldrb r1, [r0] - ldr r0, _080A60CC @ =gUnk_02000080 + ldr r0, _080A60CC @ =gMenu mov r3, sb strb r3, [r0, #1] adds r0, r2, #0 @@ -1473,7 +1473,7 @@ _080A60C2: mov sb, r4 pop {r4, r5, r6, r7, pc} .align 2, 0 -_080A60CC: .4byte gUnk_02000080 +_080A60CC: .4byte gMenu _080A60D0: .4byte gUnk_08128D51 _080A60D4: .4byte gUnk_03001010 _080A60D8: .4byte gUnk_02002A40 @@ -1483,7 +1483,7 @@ _080A60DC: .4byte 0x0000012B sub_080A60E0: @ 0x080A60E0 push {r4, lr} ldr r1, _080A6100 @ =gUnk_08128DB0 - ldr r4, _080A6104 @ =gUnk_02000080 + ldr r4, _080A6104 @ =gMenu ldrb r0, [r4, #5] lsls r0, r0, #2 adds r0, r0, r1 @@ -1495,12 +1495,12 @@ sub_080A60E0: @ 0x080A60E0 pop {r4, pc} .align 2, 0 _080A6100: .4byte gUnk_08128DB0 -_080A6104: .4byte gUnk_02000080 +_080A6104: .4byte gMenu thumb_func_start sub_080A6108 sub_080A6108: @ 0x080A6108 push {lr} - ldr r0, _080A6120 @ =gUnk_02000080 + ldr r0, _080A6120 @ =gMenu ldr r1, _080A6124 @ =gUnk_08128DB8 str r1, [r0, #0xc] ldr r0, _080A6128 @ =gUnk_08128DBC @@ -1509,7 +1509,7 @@ sub_080A6108: @ 0x080A6108 bl sub_080A7114 pop {pc} .align 2, 0 -_080A6120: .4byte gUnk_02000080 +_080A6120: .4byte gMenu _080A6124: .4byte gUnk_08128DB8 _080A6128: .4byte gUnk_08128DBC @@ -1519,7 +1519,7 @@ sub_080A612C: @ 0x080A612C bl sub_080A51F4 cmp r0, #0 beq _080A6178 - ldr r1, _080A614C @ =gUnk_02000080 + ldr r1, _080A614C @ =gMenu ldrb r2, [r1, #3] ldr r0, _080A6150 @ =gUnk_03000FF0 ldrh r0, [r0, #2] @@ -1530,7 +1530,7 @@ sub_080A612C: @ 0x080A612C subs r2, #1 b _080A6156 .align 2, 0 -_080A614C: .4byte gUnk_02000080 +_080A614C: .4byte gMenu _080A6150: .4byte gUnk_03000FF0 _080A6154: adds r2, #1 @@ -1572,7 +1572,7 @@ sub_080A617C: @ 0x080A617C mov r8, r0 mov r2, r8 strh r2, [r6, #2] - ldr r4, _080A6264 @ =gUnk_02000080 + ldr r4, _080A6264 @ =gMenu ldrb r1, [r4, #3] lsls r0, r1, #3 subs r0, r0, r1 @@ -1670,7 +1670,7 @@ _080A6250: pop {r4, r5, r6, r7, pc} .align 2, 0 _080A6260: .4byte gUnk_03001010 -_080A6264: .4byte gUnk_02000080 +_080A6264: .4byte gMenu _080A6268: .4byte gUnk_03001000 _080A626C: .4byte gUnk_08128D70 @@ -1678,7 +1678,7 @@ _080A626C: .4byte gUnk_08128D70 sub_080A6270: @ 0x080A6270 push {lr} ldr r1, _080A6288 @ =gUnk_08128DCC - ldr r0, _080A628C @ =gUnk_02000080 + ldr r0, _080A628C @ =gMenu ldrb r0, [r0, #5] lsls r0, r0, #2 adds r0, r0, r1 @@ -1688,14 +1688,14 @@ sub_080A6270: @ 0x080A6270 pop {pc} .align 2, 0 _080A6288: .4byte gUnk_08128DCC -_080A628C: .4byte gUnk_02000080 +_080A628C: .4byte gMenu thumb_func_start sub_080A6290 sub_080A6290: @ 0x080A6290 push {r4, lr} ldr r0, _080A62C4 @ =gUnk_08128DD8 bl sub_080A70AC - ldr r4, _080A62C8 @ =gUnk_02000080 + ldr r4, _080A62C8 @ =gMenu ldr r0, _080A62CC @ =gUnk_08128DD4 str r0, [r4, #0xc] movs r0, #0x81 @@ -1716,7 +1716,7 @@ sub_080A6290: @ 0x080A6290 pop {r4, pc} .align 2, 0 _080A62C4: .4byte gUnk_08128DD8 -_080A62C8: .4byte gUnk_02000080 +_080A62C8: .4byte gMenu _080A62CC: .4byte gUnk_08128DD4 _080A62D0: .4byte gScreen _080A62D4: .4byte 0x0000FFFC @@ -1729,7 +1729,7 @@ sub_080A62E0: @ 0x080A62E0 bl sub_080A51F4 cmp r0, #0 beq _080A6372 - ldr r0, _080A6310 @ =gUnk_02000080 + ldr r0, _080A6310 @ =gMenu ldrb r3, [r0, #3] lsls r1, r3, #3 ldr r0, _080A6314 @ =gUnk_08128DE8 @@ -1748,7 +1748,7 @@ sub_080A62E0: @ 0x080A62E0 beq _080A6354 b _080A635A .align 2, 0 -_080A6310: .4byte gUnk_02000080 +_080A6310: .4byte gMenu _080A6314: .4byte gUnk_08128DE8 _080A6318: .4byte gUnk_03000FF0 _080A631C: @@ -1791,24 +1791,24 @@ _080A6358: _080A635A: cmp r4, #0 blt _080A6368 - ldr r0, _080A6374 @ =gUnk_02000080 + ldr r0, _080A6374 @ =gMenu strb r4, [r0, #3] movs r0, #0x69 bl PlaySFX _080A6368: - ldr r0, _080A6374 @ =gUnk_02000080 + ldr r0, _080A6374 @ =gMenu ldrb r0, [r0, #3] movs r1, #0 bl sub_080A6FB4 _080A6372: pop {r4, pc} .align 2, 0 -_080A6374: .4byte gUnk_02000080 +_080A6374: .4byte gMenu thumb_func_start sub_080A6378 sub_080A6378: @ 0x080A6378 push {r4, r5, r6, lr} - ldr r0, _080A6420 @ =gUnk_02000080 + ldr r0, _080A6420 @ =gMenu adds r4, r0, #0 adds r4, #0x2c ldrb r0, [r4] @@ -1863,7 +1863,7 @@ _080A63E4: ldr r0, _080A6430 @ =0x000001FB bl sub_080ADA14 _080A63EA: - ldr r3, _080A6420 @ =gUnk_02000080 + ldr r3, _080A6420 @ =gMenu ldrb r0, [r3, #3] lsls r0, r0, #3 ldr r1, _080A6434 @ =gUnk_08128DE8 @@ -1888,7 +1888,7 @@ _080A63EA: bl sub_080A6498 pop {r4, r5, r6, pc} .align 2, 0 -_080A6420: .4byte gUnk_02000080 +_080A6420: .4byte gMenu _080A6424: .4byte gUnk_03001010 _080A6428: .4byte gUnk_030010A0 _080A642C: .4byte gLinkState @@ -1906,7 +1906,7 @@ sub_080A6438: @ 0x080A6438 strh r1, [r2, #6] strh r1, [r2, #8] ldr r0, _080A6488 @ =gUnk_02002A40 - ldr r1, _080A648C @ =gUnk_02000080 + ldr r1, _080A648C @ =gMenu ldrh r0, [r0, #0x20] ldrh r5, [r1, #0x10] ands r5, r0 @@ -1940,7 +1940,7 @@ _080A6482: .align 2, 0 _080A6484: .4byte gUnk_03001010 _080A6488: .4byte gUnk_02002A40 -_080A648C: .4byte gUnk_02000080 +_080A648C: .4byte gMenu _080A6490: .4byte gUnk_08128F58 _080A6494: .4byte 0x000001FB @@ -1998,7 +1998,7 @@ sub_080A64FC: @ 0x080A64FC push {r4, lr} bl sub_080AD90C ldr r1, _080A652C @ =gUnk_08128E70 - ldr r4, _080A6530 @ =gUnk_02000080 + ldr r4, _080A6530 @ =gMenu ldrb r0, [r4, #5] lsls r0, r0, #2 adds r0, r0, r1 @@ -2017,7 +2017,7 @@ _080A6522: pop {r4, pc} .align 2, 0 _080A652C: .4byte gUnk_08128E70 -_080A6530: .4byte gUnk_02000080 +_080A6530: .4byte gMenu thumb_func_start sub_080A6534 sub_080A6534: @ 0x080A6534 @@ -2048,7 +2048,7 @@ sub_080A6534: @ 0x080A6534 adds r0, r2, #0 orrs r0, r1 strh r0, [r3, #0x20] - ldr r1, _080A65A8 @ =gUnk_02000080 + ldr r1, _080A65A8 @ =gMenu ldrh r0, [r1, #0x10] ands r2, r0 strh r2, [r1, #0x12] @@ -2068,7 +2068,7 @@ _080A6598: .4byte gUnk_020176A0 _080A659C: .4byte gUnk_08128F4C _080A65A0: .4byte gUnk_02032EC0 _080A65A4: .4byte gUnk_02002A40 -_080A65A8: .4byte gUnk_02000080 +_080A65A8: .4byte gMenu thumb_func_start sub_080A65AC sub_080A65AC: @ 0x080A65AC @@ -2077,7 +2077,7 @@ sub_080A65AC: @ 0x080A65AC ldrb r0, [r0] cmp r0, #0 bne _080A6600 - ldr r4, _080A65E8 @ =gUnk_02000080 + ldr r4, _080A65E8 @ =gMenu adds r1, r4, #0 adds r1, #0x2c ldrb r0, [r1] @@ -2101,7 +2101,7 @@ _080A65DA: b _080A6600 .align 2, 0 _080A65E4: .4byte gUnk_03000FD0 -_080A65E8: .4byte gUnk_02000080 +_080A65E8: .4byte gMenu _080A65EC: ldr r0, _080A6604 @ =gUnk_03000FF0 ldrh r0, [r0, #2] @@ -2122,7 +2122,7 @@ _080A6604: .4byte gUnk_03000FF0 sub_080A6608: @ 0x080A6608 push {r4, lr} ldr r1, _080A6640 @ =gUnk_08128E78 - ldr r4, _080A6644 @ =gUnk_02000080 + ldr r4, _080A6644 @ =gMenu ldrb r0, [r4, #5] lsls r0, r0, #2 adds r0, r0, r1 @@ -2147,7 +2147,7 @@ sub_080A6608: @ 0x080A6608 pop {r4, pc} .align 2, 0 _080A6640: .4byte gUnk_08128E78 -_080A6644: .4byte gUnk_02000080 +_080A6644: .4byte gMenu _080A6648: .4byte gUnk_08128E94 _080A664C: .4byte gScreen @@ -2158,7 +2158,7 @@ sub_080A6650: @ 0x080A6650 bl sub_080A70AC ldr r0, _080A6674 @ =gUnk_02034490 ldrb r0, [r0, #6] - ldr r1, _080A6678 @ =gUnk_02000080 + ldr r1, _080A6678 @ =gMenu strb r0, [r1, #3] bl sub_080A67C4 bl sub_080A68D4 @@ -2168,12 +2168,12 @@ sub_080A6650: @ 0x080A6650 .align 2, 0 _080A6670: .4byte gUnk_08128E84 _080A6674: .4byte gUnk_02034490 -_080A6678: .4byte gUnk_02000080 +_080A6678: .4byte gMenu thumb_func_start sub_080A667C sub_080A667C: @ 0x080A667C push {lr} - ldr r2, _080A669C @ =gUnk_02000080 + ldr r2, _080A669C @ =gMenu ldr r0, _080A66A0 @ =gUnk_08128E80 str r0, [r2, #0xc] ldrb r0, [r2, #3] @@ -2189,7 +2189,7 @@ sub_080A667C: @ 0x080A667C beq _080A66B4 b _080A66C2 .align 2, 0 -_080A669C: .4byte gUnk_02000080 +_080A669C: .4byte gMenu _080A66A0: .4byte gUnk_08128E80 _080A66A4: .4byte gUnk_08128E94 _080A66A8: .4byte gUnk_03000FF0 @@ -2228,7 +2228,7 @@ sub_080A66D0: @ 0x080A66D0 strh r0, [r6, #6] movs r0, #0x78 strh r0, [r6] - ldr r4, _080A6780 @ =gUnk_02000080 + ldr r4, _080A6780 @ =gMenu ldrb r0, [r4, #3] lsls r0, r0, #3 ldr r1, _080A6784 @ =gUnk_08128E94 @@ -2273,7 +2273,7 @@ _080A6738: mov sl, r0 ldrb r5, [r5, #3] mov sb, r5 - ldr r1, _080A6780 @ =gUnk_02000080 + ldr r1, _080A6780 @ =gMenu ldrh r0, [r1, #0xa] mov r8, r0 ldr r2, _080A677C @ =gUnk_03001010 @@ -2305,7 +2305,7 @@ _080A676E: b _080A6796 .align 2, 0 _080A677C: .4byte gUnk_03001010 -_080A6780: .4byte gUnk_02000080 +_080A6780: .4byte gMenu _080A6784: .4byte gUnk_08128E94 _080A6788: .4byte 0x000001FB _080A678C: .4byte gUnk_02019EE0 @@ -2451,7 +2451,7 @@ _080A6886: ldr r1, _080A68C4 @ =0x0400000E ldr r2, _080A68C8 @ =0xA2600001 bl sub_0805622C - ldr r1, _080A68CC @ =gUnk_02000080 + ldr r1, _080A68CC @ =gMenu ldrb r0, [r4, #2] lsrs r0, r0, #1 strh r0, [r1, #0xa] @@ -2469,7 +2469,7 @@ _080A68BC: .4byte 0x00001E0A _080A68C0: .4byte 0x00001E0B _080A68C4: .4byte 0x0400000E _080A68C8: .4byte 0xA2600001 -_080A68CC: .4byte gUnk_02000080 +_080A68CC: .4byte gMenu _080A68D0: .4byte gUnk_02019EE0 thumb_func_start sub_080A68D4 @@ -2568,7 +2568,7 @@ sub_080A698C: @ 0x080A698C adds r4, r0, #0 cmp r4, #0 ble _080A69D4 - ldr r2, _080A69D8 @ =gUnk_02000080 + ldr r2, _080A69D8 @ =gMenu adds r2, #0x2d ldrb r0, [r2] lsls r0, r0, #3 @@ -2599,7 +2599,7 @@ sub_080A698C: @ 0x080A698C _080A69D4: pop {r4, r5, r6, pc} .align 2, 0 -_080A69D8: .4byte gUnk_02000080 +_080A69D8: .4byte gMenu _080A69DC: .4byte gUnk_02019EE0 thumb_func_start sub_080A69E0 @@ -2617,7 +2617,7 @@ sub_080A69E0: @ 0x080A69E0 adds r3, r0, #0 cmp r3, #0 beq _080A6A06 - ldr r0, _080A6A0C @ =gUnk_02000080 + ldr r0, _080A6A0C @ =gMenu ldrb r1, [r0, #3] ldrb r2, [r3, #4] cmp r1, r2 @@ -2627,7 +2627,7 @@ _080A6A06: rsbs r0, r0, #0 b _080A6A74 .align 2, 0 -_080A6A0C: .4byte gUnk_02000080 +_080A6A0C: .4byte gMenu _080A6A10: ldrb r1, [r0, #3] cmp r1, #7 @@ -2728,7 +2728,7 @@ sub_080A6AB8: @ 0x080A6AB8 push {r4, lr} bl sub_080AD90C ldr r1, _080A6AF4 @ =gUnk_08128F1C - ldr r4, _080A6AF8 @ =gUnk_02000080 + ldr r4, _080A6AF8 @ =gMenu ldrb r0, [r4, #5] lsls r0, r0, #2 adds r0, r0, r1 @@ -2753,7 +2753,7 @@ sub_080A6AB8: @ 0x080A6AB8 pop {r4, pc} .align 2, 0 _080A6AF4: .4byte gUnk_08128F1C -_080A6AF8: .4byte gUnk_02000080 +_080A6AF8: .4byte gMenu _080A6AFC: .4byte gUnk_08128E94 _080A6B00: .4byte gScreen @@ -2784,7 +2784,7 @@ sub_080A6B04: @ 0x080A6B04 adds r1, r5, #0 bl sub_080A6A80 ldrb r4, [r0, #4] - ldr r7, _080A6BFC @ =gUnk_02000080 + ldr r7, _080A6BFC @ =gMenu strb r4, [r7, #3] adds r1, r7, #0 adds r1, #0x2b @@ -2855,7 +2855,7 @@ _080A6B84: _080A6BD2: strh r0, [r7, #0xa] _080A6BD4: - ldr r1, _080A6BFC @ =gUnk_02000080 + ldr r1, _080A6BFC @ =gMenu movs r0, #0x1e strh r0, [r1, #8] movs r0, #1 @@ -2870,7 +2870,7 @@ _080A6BD4: _080A6BF0: .4byte gUnk_02022740 _080A6BF4: .4byte gUnk_080C9CBC _080A6BF8: .4byte gUnk_080FE320 -_080A6BFC: .4byte gUnk_02000080 +_080A6BFC: .4byte gMenu _080A6C00: .4byte 0x0000475F _080A6C04: .4byte 0x00005001 _080A6C08: .4byte gUnk_02001A40 @@ -2886,7 +2886,7 @@ sub_080A6C1C: @ 0x080A6C1C ldrb r0, [r0] cmp r0, #0 bne _080A6C6A - ldr r0, _080A6C38 @ =gUnk_02000080 + ldr r0, _080A6C38 @ =gMenu ldrh r0, [r0, #8] cmp r0, #0 beq _080A6C3C @@ -2895,7 +2895,7 @@ sub_080A6C1C: @ 0x080A6C1C b _080A6C62 .align 2, 0 _080A6C34: .4byte gUnk_03000FD0 -_080A6C38: .4byte gUnk_02000080 +_080A6C38: .4byte gMenu _080A6C3C: bl sub_080A66D0 ldr r0, _080A6C58 @ =gUnk_03000FF0 @@ -2915,7 +2915,7 @@ _080A6C5C: ldr r0, _080A6C6C @ =0x00000103 bl PlaySFX _080A6C62: - ldr r1, _080A6C70 @ =gUnk_02000080 + ldr r1, _080A6C70 @ =gMenu ldrh r0, [r1, #8] subs r0, #1 strh r0, [r1, #8] @@ -2923,14 +2923,14 @@ _080A6C6A: pop {pc} .align 2, 0 _080A6C6C: .4byte 0x00000103 -_080A6C70: .4byte gUnk_02000080 +_080A6C70: .4byte gMenu thumb_func_start sub_080A6C74 sub_080A6C74: @ 0x080A6C74 push {r4, lr} bl sub_080AD90C ldr r1, _080A6CA0 @ =gUnk_08128F24 - ldr r4, _080A6CA4 @ =gUnk_02000080 + ldr r4, _080A6CA4 @ =gMenu ldrb r0, [r4, #5] lsls r0, r0, #2 adds r0, r0, r1 @@ -2946,7 +2946,7 @@ _080A6C94: pop {r4, pc} .align 2, 0 _080A6CA0: .4byte gUnk_08128F24 -_080A6CA4: .4byte gUnk_02000080 +_080A6CA4: .4byte gMenu thumb_func_start sub_080A6CA8 sub_080A6CA8: @ 0x080A6CA8 @@ -2957,7 +2957,7 @@ sub_080A6CA8: @ 0x080A6CA8 bl sub_080A6290 movs r0, #0 bl sub_080A6D74 - ldr r1, _080A6CD4 @ =gUnk_02000080 + ldr r1, _080A6CD4 @ =gMenu strb r0, [r1, #3] movs r0, #1 bl sub_080A7114 @@ -2966,7 +2966,7 @@ sub_080A6CA8: @ 0x080A6CA8 bl DoFade pop {pc} .align 2, 0 -_080A6CD4: .4byte gUnk_02000080 +_080A6CD4: .4byte gMenu thumb_func_start sub_080A6CD8 sub_080A6CD8: @ 0x080A6CD8 @@ -2975,7 +2975,7 @@ sub_080A6CD8: @ 0x080A6CD8 ldrb r0, [r0] cmp r0, #0 bne _080A6D6E - ldr r1, _080A6D0C @ =gUnk_02000080 + ldr r1, _080A6D0C @ =gMenu movs r0, #1 strb r0, [r1] movs r4, #0 @@ -2995,7 +2995,7 @@ sub_080A6CD8: @ 0x080A6CD8 b _080A6D54 .align 2, 0 _080A6D08: .4byte gUnk_03000FD0 -_080A6D0C: .4byte gUnk_02000080 +_080A6D0C: .4byte gMenu _080A6D10: .4byte gUnk_03000FF0 _080A6D14: cmp r0, #8 @@ -3039,7 +3039,7 @@ _080A6D54: _080A6D58: adds r0, r4, #0 bl sub_080A6D74 - ldr r1, _080A6D70 @ =gUnk_02000080 + ldr r1, _080A6D70 @ =gMenu ldrb r2, [r1, #3] cmp r0, r2 beq _080A6D6E @@ -3049,7 +3049,7 @@ _080A6D58: _080A6D6E: pop {r4, pc} .align 2, 0 -_080A6D70: .4byte gUnk_02000080 +_080A6D70: .4byte gMenu thumb_func_start sub_080A6D74 sub_080A6D74: @ 0x080A6D74 @@ -3058,7 +3058,7 @@ sub_080A6D74: @ 0x080A6D74 ldr r0, _080A6DA4 @ =gUnk_02002A40 ldr r0, [r0, #0x40] lsrs r2, r0, #0x18 - ldr r0, _080A6DA8 @ =gUnk_02000080 + ldr r0, _080A6DA8 @ =gMenu ldrb r1, [r0, #3] cmp r3, #0 bne _080A6DAC @@ -3080,7 +3080,7 @@ _080A6D92: b _080A6DC6 .align 2, 0 _080A6DA4: .4byte gUnk_02002A40 -_080A6DA8: .4byte gUnk_02000080 +_080A6DA8: .4byte gMenu _080A6DAC: cmp r2, #0 beq _080A6DC6 @@ -3113,13 +3113,13 @@ sub_080A6DD0: @ 0x080A6DD0 beq _080A6DF0 b _080A6DF6 _080A6DE0: - ldr r1, _080A6DEC @ =gUnk_02000080 + ldr r1, _080A6DEC @ =gMenu movs r0, #2 strb r0, [r1] movs r0, #3 b _080A6DF2 .align 2, 0 -_080A6DEC: .4byte gUnk_02000080 +_080A6DEC: .4byte gMenu _080A6DF0: movs r0, #1 _080A6DF2: @@ -3130,7 +3130,7 @@ _080A6DF6: thumb_func_start sub_080A6DF8 sub_080A6DF8: @ 0x080A6DF8 push {lr} - ldr r0, _080A6E14 @ =gUnk_02000080 + ldr r0, _080A6E14 @ =gMenu ldrb r0, [r0] cmp r0, #2 bne _080A6E18 @@ -3141,7 +3141,7 @@ sub_080A6DF8: @ 0x080A6DF8 bl DoFade b _080A6E3A .align 2, 0 -_080A6E14: .4byte gUnk_02000080 +_080A6E14: .4byte gMenu _080A6E18: bl sub_080791D0 ldr r0, _080A6E3C @ =gLinkEntity @@ -3169,7 +3169,7 @@ sub_080A6E44: @ 0x080A6E44 ldrb r0, [r0] cmp r0, #0 bne _080A6E60 - ldr r0, _080A6E68 @ =gUnk_02000080 + ldr r0, _080A6E68 @ =gMenu ldrb r1, [r0, #3] lsls r0, r1, #2 adds r0, r0, r1 @@ -3181,7 +3181,7 @@ _080A6E60: pop {pc} .align 2, 0 _080A6E64: .4byte gUnk_03000FD0 -_080A6E68: .4byte gUnk_02000080 +_080A6E68: .4byte gMenu _080A6E6C: .4byte gUnk_08128024 thumb_func_start sub_080A6E70 @@ -3194,7 +3194,7 @@ sub_080A6E70: @ 0x080A6E70 movs r0, #0x80 lsls r0, r0, #3 strh r0, [r1, #8] - ldr r1, _080A6ED4 @ =gUnk_02000080 + ldr r1, _080A6ED4 @ =gMenu adds r4, r1, #0 adds r4, #0x2c ldrb r0, [r4] @@ -3235,7 +3235,7 @@ _080A6EC8: pop {r4, r5, pc} .align 2, 0 _080A6ED0: .4byte gUnk_03001010 -_080A6ED4: .4byte gUnk_02000080 +_080A6ED4: .4byte gMenu _080A6ED8: .4byte 0x000001FB _080A6EDC: .4byte gUnk_02002A40 @@ -3315,7 +3315,7 @@ _080A6F60: sub_080A6F6C: @ 0x080A6F6C push {r4, lr} adds r4, r0, #0 - ldr r1, _080A6FA4 @ =gUnk_02000080 + ldr r1, _080A6FA4 @ =gMenu ldrh r0, [r1, #0x2e] cmp r0, r4 beq _080A6F9A @@ -3341,7 +3341,7 @@ _080A6F9A: strh r0, [r1, #0xc] pop {r4, pc} .align 2, 0 -_080A6FA4: .4byte gUnk_02000080 +_080A6FA4: .4byte gMenu _080A6FA8: .4byte gUnk_020350F0 _080A6FAC: .4byte gUnk_08128FA8 _080A6FB0: .4byte gScreen @@ -3384,7 +3384,7 @@ _080A6FF0: ldrh r4, [r0] ldr r5, _080A7030 @ =gUnk_08128FD8 _080A6FFA: - ldr r1, _080A7034 @ =gUnk_02000080 + ldr r1, _080A7034 @ =gMenu ldrh r0, [r1, #0x2e] cmp r0, r4 beq _080A7024 @@ -3412,7 +3412,7 @@ _080A7024: .align 2, 0 _080A702C: .4byte gUnk_08128FF0 _080A7030: .4byte gUnk_08128FD8 -_080A7034: .4byte gUnk_02000080 +_080A7034: .4byte gMenu _080A7038: .4byte gUnk_020350F0 _080A703C: .4byte gScreen @@ -3420,7 +3420,7 @@ _080A703C: .4byte gScreen sub_080A7040: @ 0x080A7040 push {r4, r5, lr} adds r5, r0, #0 - ldr r1, _080A7090 @ =gUnk_02000080 + ldr r1, _080A7090 @ =gMenu ldrh r0, [r1, #0x2e] cmp r0, r5 beq _080A708C @@ -3456,7 +3456,7 @@ _080A7082: _080A708C: pop {r4, r5, pc} .align 2, 0 -_080A7090: .4byte gUnk_02000080 +_080A7090: .4byte gMenu _080A7094: .4byte gUnk_02022130 _080A7098: .4byte 0xFFFFFE00 _080A709C: .4byte 0x0600E000 @@ -3520,14 +3520,14 @@ _080A7110: .4byte gUnk_0200AF34 thumb_func_start sub_080A7114 sub_080A7114: @ 0x080A7114 - ldr r1, _080A7120 @ =gUnk_02000080 + ldr r1, _080A7120 @ =gMenu movs r2, #0 strb r0, [r1, #5] strb r2, [r1, #6] strb r2, [r1, #7] bx lr .align 2, 0 -_080A7120: .4byte gUnk_02000080 +_080A7120: .4byte gMenu thumb_func_start sub_080A7124 sub_080A7124: @ 0x080A7124 @@ -3781,7 +3781,7 @@ sub_080A7328: @ 0x080A7328 cmp r0, #0 bne _080A7384 bl sub_0805E89C - ldr r0, _080A738C @ =gUnk_02000080 + ldr r0, _080A738C @ =gMenu movs r1, #0x30 bl _DmaZero ldr r0, _080A7390 @ =gRoomControls @@ -3816,7 +3816,7 @@ _080A7384: pop {r4, pc} .align 2, 0 _080A7388: .4byte gUnk_03000FD0 -_080A738C: .4byte gUnk_02000080 +_080A738C: .4byte gMenu _080A7390: .4byte gRoomControls _080A7394: .4byte gUnk_03000420 _080A7398: .4byte gUnk_02033280 diff --git a/asm/drawKinstoneMenu.s b/asm/drawKinstoneMenu.s index 56f6bbfa..f5c49d5b 100644 --- a/asm/drawKinstoneMenu.s +++ b/asm/drawKinstoneMenu.s @@ -16,7 +16,7 @@ sub_080A3B84: @ 0x080A3B84 strb r0, [r4] bl sub_080AD90C ldr r1, _080A3BC8 @ =gUnk_081280C4 - ldr r0, _080A3BCC @ =gUnk_02000080 + ldr r0, _080A3BCC @ =gMenu ldrb r0, [r0, #5] lsls r0, r0, #2 adds r0, r0, r1 @@ -34,4 +34,4 @@ sub_080A3B84: @ 0x080A3B84 .align 2, 0 _080A3BC4: .4byte gUnk_030010A0 _080A3BC8: .4byte gUnk_081280C4 -_080A3BCC: .4byte gUnk_02000080 \ No newline at end of file +_080A3BCC: .4byte gMenu \ No newline at end of file diff --git a/asm/non_matching/code_0805457C.inc b/asm/non_matching/code_0805457C.inc new file mode 100644 index 00000000..eedefa95 --- /dev/null +++ b/asm/non_matching/code_0805457C.inc @@ -0,0 +1,367 @@ + .syntax unified + push {r4, r5, r6, r7, lr} + sub sp, #0x20 + adds r6, r0, #0 + adds r3, r1, #0 + ldr r0, _080545A4 @ =gRoomVars + ldrb r1, [r0, #2] + adds r5, r0, #0 + cmp r1, #1 + bne _08054590 + b _0805474C +_08054590: + ldr r2, _080545A8 @ =gUnk_08001A1C + movs r4, #0 + cmp r3, #0x19 + bhi _0805463C + lsls r0, r3, #2 + ldr r1, _080545AC @ =_080545B0 + adds r0, r0, r1 + ldr r0, [r0] + mov pc, r0 + .align 2, 0 +_080545A4: .4byte gRoomVars +_080545A8: .4byte gUnk_08001A1C +_080545AC: .4byte _080545B0 +_080545B0: @ jump table + .4byte _0805463C @ case 0 + .4byte _08054618 @ case 1 + .4byte _08054618 @ case 2 + .4byte _08054618 @ case 3 + .4byte _08054618 @ case 4 + .4byte _08054618 @ case 5 + .4byte _08054618 @ case 6 + .4byte _08054618 @ case 7 + .4byte _08054618 @ case 8 + .4byte _08054618 @ case 9 + .4byte _08054618 @ case 10 + .4byte _08054618 @ case 11 + .4byte _08054618 @ case 12 + .4byte _0805463C @ case 13 + .4byte _0805463C @ case 14 + .4byte _0805463A @ case 15 + .4byte _08054634 @ case 16 + .4byte _08054634 @ case 17 + .4byte _08054634 @ case 18 + .4byte _08054634 @ case 19 + .4byte _08054634 @ case 20 + .4byte _08054634 @ case 21 + .4byte _08054634 @ case 22 + .4byte _08054634 @ case 23 + .4byte _08054624 @ case 24 + .4byte _08054624 @ case 25 +_08054618: + lsls r1, r3, #5 + ldr r0, _08054620 @ =gUnk_0800137C + adds r4, r1, r0 + b _0805463C + .align 2, 0 +_08054620: .4byte gUnk_0800137C +_08054624: + ldrb r0, [r5, #0xa] + ldr r4, _08054630 @ =gUnk_0800191C + cmp r0, #0 + beq _0805463C + adds r4, #0x20 + b _0805463C + .align 2, 0 +_08054630: .4byte gUnk_0800191C +_08054634: + lsls r1, r3, #5 + ldr r0, _08054650 @ =gUnk_0800161C + adds r2, r1, r0 +_0805463A: + ldr r4, _08054654 @ =gUnk_02034398 +_0805463C: + cmp r4, #0 + bne _08054642 + b _0805474C +_08054642: + ldr r0, _08054658 @ =gUnk_02002A40 + adds r0, #0xb3 + ldrb r1, [r0] + cmp r1, #0 + bne _08054660 + ldr r3, _0805465C @ =gUnk_08001A1C + b _08054666 + .align 2, 0 +_08054650: .4byte gUnk_0800161C +_08054654: .4byte gUnk_02034398 +_08054658: .4byte gUnk_02002A40 +_0805465C: .4byte gUnk_08001A1C +_08054660: + lsls r1, r1, #5 + ldr r0, _0805473C @ =gUnk_0800143C + adds r3, r1, r0 +_08054666: + mov r0, sp + adds r1, r4, #0 + bl sub_08000F14 + ldr r4, _08054740 @ =gUnk_02002A40 + adds r0, r4, #0 + adds r0, #0xaa + ldrb r0, [r0] + cmp r0, #8 + bhi _08054684 + mov r1, sp + mov r0, sp + ldrh r0, [r0, #8] + adds r0, #5 + strh r0, [r1, #8] +_08054684: + adds r0, r4, #0 + adds r0, #0xac + ldrb r0, [r0] + cmp r0, #0 + bne _08054698 + mov r1, sp + mov r0, sp + ldrh r0, [r0, #0xc] + adds r0, #3 + strh r0, [r1, #0xc] +_08054698: + adds r0, r4, #0 + adds r0, #0xad + ldrb r0, [r0] + cmp r0, #0 + bne _080546AC + mov r1, sp + mov r0, sp + ldrh r0, [r0, #0xe] + adds r0, #3 + strh r0, [r1, #0xe] +_080546AC: + adds r0, r4, #0 + adds r0, #0xc0 + ldrh r0, [r0] + cmp r0, #0xa + bhi _080546C0 + mov r1, sp + mov r0, sp + ldrh r0, [r0, #4] + adds r0, #1 + strh r0, [r1, #4] +_080546C0: + ldr r2, _08054744 @ =gUnk_08001A1C + adds r0, r4, #0 + adds r0, #0xbb + ldrb r0, [r0] + adds r3, r2, #0 + cmp r0, #0 + beq _080546D0 + adds r2, #0x20 +_080546D0: + movs r1, #0x8b + lsls r1, r1, #1 + adds r0, r4, r1 + ldrb r0, [r0] + cmp r0, #0 + beq _080546DE + adds r3, #0x40 +_080546DE: + mov r0, sp + mov r1, sp + bl sub_08000F2C + adds r4, r0, #0 + bl Random + adds r2, r0, #0 + asrs r5, r2, #0x18 + movs r0, #0xf + ands r5, r0 + adds r0, r2, #0 + adds r1, r4, #0 + bl __modsi3 + adds r2, r0, #0 + movs r3, #0 + lsls r0, r5, #1 + add r0, sp + movs r4, #0 + ldrsh r1, [r0, r4] + cmp r1, r2 + bgt _08054726 + movs r4, #0xf +_0805470E: + adds r3, #1 + adds r5, #1 + ands r5, r4 + cmp r3, #0xf + bhi _08054726 + lsls r0, r5, #1 + add r0, sp + movs r7, #0 + ldrsh r0, [r0, r7] + adds r1, r1, r0 + cmp r1, r2 + ble _0805470E +_08054726: + ldr r0, _08054748 @ =gUnk_080FE1B4 + adds r0, r5, r0 + ldrb r1, [r0] + cmp r1, #0 + beq _0805474C + adds r0, r6, #0 + movs r2, #0 + bl CreateItemDrop + b _0805474E + .align 2, 0 +_0805473C: .4byte gUnk_0800143C +_08054740: .4byte gUnk_02002A40 +_08054744: .4byte gUnk_08001A1C +_08054748: .4byte gUnk_080FE1B4 +_0805474C: + movs r0, #0 +_0805474E: + add sp, #0x20 + pop {r4, r5, r6, r7, pc} + .align 2, 0 + + thumb_func_start CreateItemDrop +CreateItemDrop: @ 0x08054754 + push {r4, r5, r6, lr} + adds r6, r0, #0 + adds r4, r1, #0 + adds r5, r2, #0 + cmp r4, #0x5e + beq _08054786 + cmp r4, #0x5e + bhi _08054772 + cmp r4, #0x5c + beq _080547A6 + cmp r4, #0x5c + bhi _08054782 + cmp r4, #0x3f + beq _08054794 + b _080547DA +_08054772: + cmp r4, #0xfc + blo _080547DA + cmp r4, #0xfe + bls _080547A6 + cmp r4, #0xff + bne _080547DA + movs r0, #1 + b _08054788 +_08054782: + movs r0, #0x65 + b _08054788 +_08054786: + movs r0, #9 +_08054788: + bl GetInventoryValue + cmp r0, #0 + bne _080547DA +_08054790: + movs r0, #0 + b _0805486C +_08054794: + movs r0, #0x40 + bl GetInventoryValue + cmp r0, #0 + beq _08054790 + cmp r5, #0 + bne _080547DA + movs r5, #1 + b _080547DA +_080547A6: + movs r0, #0x67 + bl GetInventoryValue + cmp r0, #0 + beq _08054790 + ldr r0, _080547FC @ =gRoomVars + ldrb r0, [r0, #5] + cmp r0, #3 + bhi _08054790 + cmp r4, #0x5c + beq _080547DA + adds r5, r4, #0 + subs r5, #0xfc + bl Random + movs r1, #0x3f + ands r1, r0 + ldr r2, _08054800 @ =gUnk_080FE1DD + lsls r0, r5, #6 + adds r1, r1, r0 + adds r1, r1, r2 + ldrb r5, [r1] + movs r4, #0x5c + cmp r5, #0 + bne _080547DA + movs r4, #0 +_080547DA: + cmp r4, #0 + beq _0805486A + cmp r4, #0xff + beq _08054842 + movs r0, #0 + adds r1, r4, #0 + adds r2, r5, #0 + bl CreateObject + adds r2, r0, #0 + cmp r2, #0 + beq _0805486A + ldr r0, _08054804 @ =gLinkEntity + cmp r6, r0 + bne _08054808 + movs r0, #1 + b _0805480A + .align 2, 0 +_080547FC: .4byte gRoomVars +_08054800: .4byte gUnk_080FE1DD +_08054804: .4byte gLinkEntity +_08054808: + movs r0, #0 +_0805480A: + strb r0, [r2, #0xe] + ldrb r0, [r6, #8] + cmp r0, #6 + bne _08054838 + ldrb r0, [r6, #9] + cmp r0, #0x63 + bne _0805481C + str r2, [r6, #0x54] + b _08054838 +_0805481C: + cmp r0, #0x1e + bne _08054838 + ldrb r0, [r6, #0x14] + lsls r0, r0, #3 + movs r3, #0x80 + rsbs r3, r3, #0 + adds r1, r3, #0 + orrs r0, r1 + strb r0, [r2, #0x15] + movs r0, #0xc0 + strh r0, [r2, #0x24] + movs r0, #0xc0 + lsls r0, r0, #9 + str r0, [r2, #0x20] +_08054838: + adds r0, r6, #0 + adds r1, r2, #0 + bl CopyPosition + b _0805486A +_08054842: + movs r0, #7 + movs r1, #0 + bl CreateEnemy + adds r2, r0, #0 + cmp r2, #0 + beq _0805486A + ldrh r0, [r6, #0x2e] + strh r0, [r2, #0x2e] + ldrh r0, [r6, #0x32] + strh r0, [r2, #0x32] + adds r0, r6, #0 + adds r0, #0x38 + ldrb r1, [r0] + adds r0, r2, #0 + adds r0, #0x38 + strb r1, [r0] + adds r0, r2, #0 + bl UpdateSpriteForCollisionLayer +_0805486A: + adds r0, r4, #0 +_0805486C: + pop {r4, r5, r6, pc} + .align 2, 0 + .syntax divided \ No newline at end of file diff --git a/asm/non_matching/putItemOnSlot.s b/asm/non_matching/putItemOnSlot.s new file mode 100644 index 00000000..0bbb6594 --- /dev/null +++ b/asm/non_matching/putItemOnSlot.s @@ -0,0 +1,120 @@ + .include "asm/macros.inc" + + .include "constants/constants.inc" + + .syntax unified + + .text + + push {r4, r5, lr} + adds r5, r0, #0 + cmp r5, #0x46 + bhi _080543A8 + movs r0, #0 + movs r1, #1 + bl sub_0807CAA0 +_080543A8: + subs r0, r5, #1 + cmp r0, #0x1e + bhi _08054410 + movs r1, #2 + ldr r2, _080543C0 @ =gUnk_02002A40 + adds r0, r2, #0 + adds r0, #0xb4 + ldrb r0, [r0] + cmp r0, #0 + bne _080543C4 + movs r1, #0 + b _080543D0 + .align 2, 0 +_080543C0: .4byte gUnk_02002A40 +_080543C4: + adds r0, r2, #0 + adds r0, #0xb5 + ldrb r0, [r0] + cmp r0, #0 + bne _080543D0 + movs r1, #1 +_080543D0: + cmp r1, #2 + bne _0805440A + ldr r3, _080543F0 @ =gUnk_080FD5B4 + lsls r0, r5, #3 + adds r0, r0, r3 + ldrb r4, [r0] + adds r0, r2, #0 + adds r0, #0xb4 + ldrb r0, [r0] + lsls r0, r0, #3 + adds r0, r0, r3 + ldrb r0, [r0] + cmp r4, r0 + bne _080543F4 + movs r1, #0 + b _08054406 + .align 2, 0 +_080543F0: .4byte gUnk_080FD5B4 +_080543F4: + adds r0, r2, #0 + adds r0, #0xb5 + ldrb r0, [r0] + lsls r0, r0, #3 + adds r0, r0, r3 + ldrb r0, [r0] + cmp r4, r0 + bne _08054406 + movs r1, #1 +_08054406: + cmp r1, #2 + beq _08054410 +_0805440A: + adds r0, r5, #0 + bl ForceEquipItem +_08054410: + pop {r4, r5, pc} + .align 2, 0 + + thumb_func_start ForceEquipItem +ForceEquipItem: @ 0x08054414 + push {r4, r5, r6, r7, lr} + adds r4, r0, #0 + subs r0, r4, #1 + cmp r0, #0x1e + bhi _08054456 + cmp r1, #1 + bhi _08054456 + movs r2, #0 + cmp r1, #0 + bne _0805442A + movs r2, #1 +_0805442A: + ldr r0, _08054458 @ =gUnk_02002A40 + adds r0, #0xb4 + adds r6, r1, r0 + ldrb r7, [r6] + adds r5, r2, r0 + ldrb r3, [r5] + ldr r2, _0805445C @ =gUnk_080FD5B4 + lsls r1, r3, #3 + adds r1, r1, r2 + lsls r0, r4, #3 + adds r0, r0, r2 + ldrb r1, [r1] + ldrb r0, [r0] + cmp r1, r0 + bne _0805444A + adds r3, r7, #0 +_0805444A: + strb r4, [r6] + strb r3, [r5] + ldr r1, _08054460 @ =gUnk_0200AF00 + movs r0, #0x7f + strb r0, [r1, #0x13] + strb r0, [r1, #0x14] +_08054456: + pop {r4, r5, r6, r7, pc} + .align 2, 0 +_08054458: .4byte gUnk_02002A40 +_0805445C: .4byte gUnk_080FD5B4 +_08054460: .4byte gUnk_0200AF00 + .syntax divided \ No newline at end of file diff --git a/asm/non_matching/sub_08054524.inc b/asm/non_matching/sub_08054524.inc new file mode 100644 index 00000000..7246268a --- /dev/null +++ b/asm/non_matching/sub_08054524.inc @@ -0,0 +1,31 @@ + .syntax unified + push {lr} + ldr r0, _08054550 @ =gArea + ldrb r1, [r0, #1] + cmp r1, #0 + bne _08054534 + ldr r0, _08054554 @ =gUnk_030010A0 + adds r0, #0x2e + ldrb r1, [r0] +_08054534: + cmp r1, #0x16 + bls _0805453A + movs r1, #0 +_0805453A: + ldr r0, _08054558 @ =gUnk_080FE1C6 + adds r0, r1, r0 + ldrb r1, [r0] + lsls r0, r1, #5 + ldr r1, _0805455C @ =gUnk_080015BC + adds r0, r0, r1 + ldr r1, _08054560 @ =gUnk_02034398 + movs r2, #0x20 + bl sub_0801D66C + pop {pc} + .align 2, 0 +_08054550: .4byte gArea +_08054554: .4byte gUnk_030010A0 +_08054558: .4byte gUnk_080FE1C6 +_0805455C: .4byte gUnk_080015BC +_08054560: .4byte gUnk_02034398 + .syntax divided \ No newline at end of file diff --git a/asm/object45.s b/asm/object45.s index 73a06597..4b1d866a 100644 --- a/asm/object45.s +++ b/asm/object45.s @@ -41,7 +41,7 @@ sub_0808E448: @ 0x0808E448 push {r4, lr} adds r4, r0, #0 movs r0, #0x10 - bl sub_0805436C + bl IsItemEquipped cmp r0, #1 bls _0808E45A bl DeleteThisEntity diff --git a/asm/object48.s b/asm/object48.s index 48831d44..6fa30149 100644 --- a/asm/object48.s +++ b/asm/object48.s @@ -482,7 +482,7 @@ _0808EB1C: movs r2, #0x38 b _0808EB68 _0808EB26: - ldr r3, _0808EB3C @ =gUnk_02000080 + ldr r3, _0808EB3C @ =gMenu adds r0, r3, #0 adds r0, #0x10 ldrb r1, [r5, #0xa] @@ -494,7 +494,7 @@ _0808EB26: movs r2, #0x28 b _0808EB68 .align 2, 0 -_0808EB3C: .4byte gUnk_02000080 +_0808EB3C: .4byte gMenu _0808EB40: cmp r1, #0 blt _0808EB68 @@ -588,17 +588,17 @@ _0808EBD8: @ jump table .4byte _0808EC00 @ case 4 .4byte _0808EC14 @ case 5 _0808EBF0: - ldr r0, _0808EBF8 @ =gUnk_02000080 + ldr r0, _0808EBF8 @ =gMenu ldrb r0, [r0, #1] adds r1, r0, #4 b _0808EC1E .align 2, 0 -_0808EBF8: .4byte gUnk_02000080 +_0808EBF8: .4byte gMenu _0808EBFC: movs r1, #2 b _0808EC1E _0808EC00: - ldr r0, _0808EC10 @ =gUnk_02000080 + ldr r0, _0808EC10 @ =gMenu ldrb r0, [r0, #1] movs r1, #6 cmp r0, #0 @@ -606,7 +606,7 @@ _0808EC00: movs r1, #7 b _0808EC1E .align 2, 0 -_0808EC10: .4byte gUnk_02000080 +_0808EC10: .4byte gMenu _0808EC14: movs r1, #4 b _0808EC1E @@ -707,7 +707,7 @@ _0808ECB8: sub_0808ECBC: @ 0x0808ECBC push {r4, lr} adds r3, r0, #0 - ldr r0, _0808ECD8 @ =gUnk_02000080 + ldr r0, _0808ECD8 @ =gMenu ldrb r4, [r0, #1] ldr r0, _0808ECDC @ =gUnk_02032EC0 ldrb r0, [r0, #2] @@ -719,7 +719,7 @@ sub_0808ECBC: @ 0x0808ECBC beq _0808ECEA b _0808ED04 .align 2, 0 -_0808ECD8: .4byte gUnk_02000080 +_0808ECD8: .4byte gMenu _0808ECDC: .4byte gUnk_02032EC0 _0808ECE0: cmp r0, #6 @@ -803,7 +803,7 @@ sub_0808ED64: @ 0x0808ED64 ldrb r0, [r0, #2] cmp r0, #1 bne _0808ED8A - ldr r1, _0808ED94 @ =gUnk_02000080 + ldr r1, _0808ED94 @ =gMenu ldrb r0, [r1, #0x11] cmp r0, #5 beq _0808ED8A @@ -820,7 +820,7 @@ _0808ED8A: pop {pc} .align 2, 0 _0808ED90: .4byte gUnk_02032EC0 -_0808ED94: .4byte gUnk_02000080 +_0808ED94: .4byte gMenu thumb_func_start sub_0808ED98 sub_0808ED98: @ 0x0808ED98 @@ -840,7 +840,7 @@ sub_0808ED98: @ 0x0808ED98 .align 2, 0 _0808EDB4: .4byte gUnk_02032EC0 _0808EDB8: - ldr r0, _0808EDF8 @ =gUnk_02000080 + ldr r0, _0808EDF8 @ =gMenu ldrb r0, [r0, #0x13] cmp r0, #5 bls _0808EDC2 @@ -874,7 +874,7 @@ _0808EDCE: bl sub_0808EF6C pop {pc} .align 2, 0 -_0808EDF8: .4byte gUnk_02000080 +_0808EDF8: .4byte gMenu _0808EDFC: .4byte gUnk_08121D10 thumb_func_start sub_0808EE00 @@ -924,7 +924,7 @@ _0808EE56: adds r0, r4, #0 adds r0, #0x6a strh r1, [r0] - ldr r1, _0808EE8C @ =gUnk_02000080 + ldr r1, _0808EE8C @ =gMenu ldrb r0, [r1, #0x11] movs r2, #9 cmp r0, #5 @@ -948,7 +948,7 @@ _0808EE6E: strb r0, [r2] pop {r4, r5, pc} .align 2, 0 -_0808EE8C: .4byte gUnk_02000080 +_0808EE8C: .4byte gMenu _0808EE90: .4byte gUnk_02019EE0 thumb_func_start nullsub_522 @@ -1017,7 +1017,7 @@ _0808EEF4: strb r0, [r2, #0x18] ldrb r1, [r2, #0xa] subs r1, #0x13 - ldr r0, _0808EF20 @ =gUnk_02000080 + ldr r0, _0808EF20 @ =gMenu ldrb r0, [r0, #1] movs r3, #3 cmp r0, r1 @@ -1033,7 +1033,7 @@ _0808EF12: _0808EF1E: pop {pc} .align 2, 0 -_0808EF20: .4byte gUnk_02000080 +_0808EF20: .4byte gMenu thumb_func_start sub_0808EF24 sub_0808EF24: @ 0x0808EF24 diff --git a/asm/object4B.s b/asm/object4B.s index f206edc9..2ac8f492 100644 --- a/asm/object4B.s +++ b/asm/object4B.s @@ -256,7 +256,7 @@ sub_0808F940: @ 0x0808F940 lsls r0, r0, #0x18 cmp r0, #0 bne _0808F960 - ldr r1, _0808F964 @ =gUnk_02000080 + ldr r1, _0808F964 @ =gMenu ldrb r0, [r1, #6] adds r0, #1 strb r0, [r1, #6] @@ -264,4 +264,4 @@ sub_0808F940: @ 0x0808F940 _0808F960: pop {r4, pc} .align 2, 0 -_0808F964: .4byte gUnk_02000080 +_0808F964: .4byte gMenu diff --git a/asm/objectA2.s b/asm/objectA2.s index cf1d5af9..4be6e53f 100644 --- a/asm/objectA2.s +++ b/asm/objectA2.s @@ -164,21 +164,21 @@ _0809F41C: movs r1, #0x43 movs r2, #0 bl CreateFx - ldr r1, _0809F434 @ =gUnk_02000080 + ldr r1, _0809F434 @ =gMenu movs r0, #1 strb r0, [r1] b _0809F442 .align 2, 0 -_0809F434: .4byte gUnk_02000080 +_0809F434: .4byte gMenu _0809F438: - ldr r1, _0809F444 @ =gUnk_02000080 + ldr r1, _0809F444 @ =gMenu movs r0, #1 strb r0, [r1, #4] bl DeleteThisEntity _0809F442: pop {pc} .align 2, 0 -_0809F444: .4byte gUnk_02000080 +_0809F444: .4byte gMenu thumb_func_start sub_0809F448 sub_0809F448: @ 0x0809F448 diff --git a/asm/objectB4.s b/asm/objectB4.s index 54d8da5c..1a6cea59 100644 --- a/asm/objectB4.s +++ b/asm/objectB4.s @@ -105,7 +105,7 @@ _080A0C46: bl sub_0806FB38 cmp r0, #0 bne _080A0C58 - ldr r0, _080A0CE4 @ =gUnk_02000080 + ldr r0, _080A0CE4 @ =gMenu ldrb r0, [r0, #5] cmp r0, #1 bls _080A0CE0 @@ -178,7 +178,7 @@ _080A0CC0: _080A0CE0: pop {r4, r5, pc} .align 2, 0 -_080A0CE4: .4byte gUnk_02000080 +_080A0CE4: .4byte gMenu thumb_func_start sub_080A0CE8 sub_080A0CE8: @ 0x080A0CE8 @@ -219,7 +219,7 @@ _080A0D28: bl sub_0806FB38 cmp r0, #0 bne _080A0D3A - ldr r0, _080A0D68 @ =gUnk_02000080 + ldr r0, _080A0D68 @ =gMenu ldrb r0, [r0, #5] cmp r0, #1 bls _080A0D66 @@ -249,7 +249,7 @@ _080A0D3A: _080A0D66: pop {r4, pc} .align 2, 0 -_080A0D68: .4byte gUnk_02000080 +_080A0D68: .4byte gMenu _080A0D6C: .4byte gUnk_08124B10 thumb_func_start sub_080A0D70 diff --git a/asm/sub_0801D630.s b/asm/sub_0801D630.s deleted file mode 100644 index 20bb693c..00000000 --- a/asm/sub_0801D630.s +++ /dev/null @@ -1,42 +0,0 @@ - .include "asm/macros.inc" - .include "constants/constants.inc" - - .syntax unified - - .text - - thumb_func_start _DmaZero -_DmaZero: @ 0x0801D630 - push {r4, lr} - adds r3, r0, #0 - adds r2, r1, #0 - movs r4, #0 - adds r1, r3, #0 - orrs r1, r2 - movs r0, #3 - ands r1, r0 - cmp r1, #0 - beq _0801D64A - cmp r1, #2 - beq _0801D654 - b _0801D65E -_0801D64A: - movs r0, #0 - adds r1, r3, #0 - bl _DmaFill32 - b _0801D668 -_0801D654: - movs r0, #0 - adds r1, r3, #0 - bl _DmaFill16 - b _0801D668 -_0801D65E: - strb r4, [r3] - adds r3, #1 - subs r2, #1 - cmp r2, #0 - bne _0801D65E -_0801D668: - pop {r4, pc} - .align 2, 0 - \ No newline at end of file diff --git a/asm/sub_08055E24.s b/asm/sub_08055E24.s index 05c975fa..368a8e24 100644 --- a/asm/sub_08055E24.s +++ b/asm/sub_08055E24.s @@ -8,7 +8,7 @@ thumb_func_start sub_08055E24 sub_08055E24: @ 0x08055E24 push {r4, lr} - ldr r4, _08055E5C @ =gUnk_02000080 + ldr r4, _08055E5C @ =gMenu ldrb r0, [r4, #6] adds r0, #1 strb r0, [r4, #6] @@ -31,7 +31,7 @@ sub_08055E24: @ 0x08055E24 bl DoFade pop {r4, pc} .align 2, 0 -_08055E5C: .4byte gUnk_02000080 +_08055E5C: .4byte gMenu _08055E60: .4byte gUnk_02000070 _08055E64: .4byte gUnk_080FF400 diff --git a/asm/sub_080AD3F4.s b/asm/sub_080AD3F4.s index ea0650f9..756016c5 100644 --- a/asm/sub_080AD3F4.s +++ b/asm/sub_080AD3F4.s @@ -11,7 +11,7 @@ sub_080AD3F4: @ 0x080AD3F4 push {r4, r5, lr} bl sub_080AD84C adds r1, r0, #0 - ldr r4, _080AD450 @ =gUnk_02000080 + ldr r4, _080AD450 @ =gMenu ldrb r0, [r4, #5] cmp r0, #0 bne _080AD458 @@ -49,7 +49,7 @@ _080AD42C: movs r1, #0 b _080AD45E .align 2, 0 -_080AD450: .4byte gUnk_02000080 +_080AD450: .4byte gMenu _080AD454: .4byte gScreen _080AD458: cmp r1, #1 diff --git a/asm/sub_080AD474.s b/asm/sub_080AD474.s index 1151e449..2f07bc46 100644 --- a/asm/sub_080AD474.s +++ b/asm/sub_080AD474.s @@ -9,7 +9,7 @@ thumb_func_start sub_080AD474 sub_080AD474: @ 0x080AD474 push {r4, r5, r6, lr} - ldr r5, _080AD490 @ =gUnk_02000080 + ldr r5, _080AD490 @ =gMenu ldrb r0, [r5, #0x12] adds r0, #1 strb r0, [r5, #0x12] @@ -24,7 +24,7 @@ _080AD486: beq _080AD49C b _080AD5C8 .align 2, 0 -_080AD490: .4byte gUnk_02000080 +_080AD490: .4byte gMenu _080AD494: cmp r0, #2 bne _080AD49A @@ -185,7 +185,7 @@ _080AD5E0: bl PlaySFX _080AD5EC: bl sub_080AD644 - ldr r0, _080AD638 @ =gUnk_02000080 + ldr r0, _080AD638 @ =gMenu ldrh r1, [r0, #8] movs r0, #0x20 ands r0, r1 @@ -201,7 +201,7 @@ _080AD5EC: movs r1, #0 bl sub_080ADA14 _080AD610: - ldr r2, _080AD638 @ =gUnk_02000080 + ldr r2, _080AD638 @ =gMenu movs r0, #0x80 lsls r0, r0, #0x12 ldrb r1, [r0, #7] @@ -219,6 +219,6 @@ _080AD632: pop {r4, r5, r6, pc} .align 2, 0 _080AD634: .4byte 0x80080000 -_080AD638: .4byte gUnk_02000080 +_080AD638: .4byte gMenu _080AD63C: .4byte gUnk_03001010 _080AD640: .4byte 0x000001FF diff --git a/asm/sub_080AD670.s b/asm/sub_080AD670.s index f3c634c5..bdddb553 100644 --- a/asm/sub_080AD670.s +++ b/asm/sub_080AD670.s @@ -23,7 +23,7 @@ sub_080AD670: @ 0x080AD670 mov r0, sp strh r2, [r0, #0x10] mov r2, sp - ldr r0, _080AD6A4 @ =gUnk_02000080 + ldr r0, _080AD6A4 @ =gMenu ldr r0, [r0, #0x2c] strh r0, [r1, #0xc] strh r0, [r2, #0xe] @@ -34,5 +34,5 @@ sub_080AD670: @ 0x080AD670 add sp, #0x14 pop {pc} .align 2, 0 -_080AD6A4: .4byte gUnk_02000080 +_080AD6A4: .4byte gMenu _080AD6A8: .4byte gBgControls diff --git a/asm/sub_080AD6Ac.s b/asm/sub_080AD6Ac.s index 2a6733eb..64332950 100644 --- a/asm/sub_080AD6Ac.s +++ b/asm/sub_080AD6Ac.s @@ -9,7 +9,7 @@ thumb_func_start sub_080AD6AC sub_080AD6AC: @ 0x080AD6AC push {r4, r5, r6, lr} - ldr r4, _080AD6C0 @ =gUnk_02000080 + ldr r4, _080AD6C0 @ =gMenu ldrb r0, [r4, #6] cmp r0, #1 beq _080AD724 @@ -19,7 +19,7 @@ sub_080AD6AC: @ 0x080AD6AC beq _080AD6CA b _080AD76A .align 2, 0 -_080AD6C0: .4byte gUnk_02000080 +_080AD6C0: .4byte gMenu _080AD6C4: cmp r0, #2 beq _080AD758 diff --git a/asm/sub_080AD76C.s b/asm/sub_080AD76C.s index 6cac5d26..2c1930f1 100644 --- a/asm/sub_080AD76C.s +++ b/asm/sub_080AD76C.s @@ -9,7 +9,7 @@ thumb_func_start sub_080AD76C sub_080AD76C: @ 0x080AD76C push {lr} - ldr r1, _080AD780 @ =gUnk_02000080 + ldr r1, _080AD780 @ =gMenu ldrb r0, [r1, #6] cmp r0, #1 beq _080AD7B4 @@ -19,7 +19,7 @@ sub_080AD76C: @ 0x080AD76C beq _080AD78A b _080AD80E .align 2, 0 -_080AD780: .4byte gUnk_02000080 +_080AD780: .4byte gMenu _080AD784: cmp r0, #2 beq _080AD7DC @@ -95,7 +95,7 @@ _080AD80E: bl sub_080AD84C cmp r0, #0 beq _080AD82A - ldr r0, _080AD830 @ =gUnk_02000080 + ldr r0, _080AD830 @ =gMenu ldrb r1, [r0, #5] adds r1, #1 strb r1, [r0, #5] @@ -105,4 +105,4 @@ _080AD82A: pop {pc} .align 2, 0 _080AD82C: .4byte gUnk_03000FD0 -_080AD830: .4byte gUnk_02000080 +_080AD830: .4byte gMenu diff --git a/asm/sub_080AD84C.s b/asm/sub_080AD84C.s index 31854c4b..f8114808 100644 --- a/asm/sub_080AD84C.s +++ b/asm/sub_080AD84C.s @@ -27,7 +27,7 @@ _080AD86C: movs r2, #9 ands r2, r0 _080AD874: - ldr r1, _080AD88C @ =gUnk_02000080 + ldr r1, _080AD88C @ =gMenu ldrh r0, [r1, #8] subs r0, #1 strh r0, [r1, #8] @@ -38,7 +38,7 @@ _080AD874: b _080AD89A .align 2, 0 _080AD888: .4byte gUnk_03000FF0 -_080AD88C: .4byte gUnk_02000080 +_080AD88C: .4byte gMenu _080AD890: cmp r2, #0 bne _080AD898 diff --git a/asm/sub_080AD89C.s b/asm/sub_080AD89C.s index f255d3e8..2a8700ff 100644 --- a/asm/sub_080AD89C.s +++ b/asm/sub_080AD89C.s @@ -8,7 +8,7 @@ thumb_func_start sub_080AD89C sub_080AD89C: @ 0x080AD89C push {r4, lr} - ldr r4, _080AD8E4 @ =gUnk_02000080 + ldr r4, _080AD8E4 @ =gMenu ldrb r1, [r4, #0x12] movs r0, #7 ands r0, r1 @@ -44,6 +44,6 @@ _080AD8BC: _080AD8E0: pop {r4, pc} .align 2, 0 -_080AD8E4: .4byte gUnk_02000080 +_080AD8E4: .4byte gMenu _080AD8E8: .4byte gScreen _080AD8EC: .4byte gUnk_081320FC diff --git a/asm/waterfallOpening.s b/asm/waterfallOpening.s index c1743e43..147d41ae 100644 --- a/asm/waterfallOpening.s +++ b/asm/waterfallOpening.s @@ -120,7 +120,7 @@ _080A0038: bne _080A005A movs r0, #3 strb r0, [r4, #0xd] - ldr r1, _080A0064 @ =gUnk_02000080 + ldr r1, _080A0064 @ =gMenu ldrb r0, [r1, #6] adds r0, #1 strb r0, [r1, #6] @@ -131,7 +131,7 @@ _080A005A: bl sub_080A00B0 b _080A00AA .align 2, 0 -_080A0064: .4byte gUnk_02000080 +_080A0064: .4byte gMenu _080A0068: ldrb r0, [r4, #0xa] cmp r0, #0 diff --git a/include/menu.h b/include/menu.h index 5ff44751..cfd6c3d6 100644 --- a/include/menu.h +++ b/include/menu.h @@ -15,6 +15,19 @@ typedef struct { u16 fadeInTime; u8 filler2[4]; u32 filler3[3]; +} MenuControls; + +typedef struct { + u8 field_0x0; + u16 field_0x1; + u8 field_0x2; + u8 secret; + u8 overlayType; + u8 storyPanelIndex; + u8 field_0x7; + u8 transitionTimer; } Menu; +extern Menu gMenu; + #endif \ No newline at end of file diff --git a/linker.ld b/linker.ld index ea1c6b2f..e6d8781b 100644 --- a/linker.ld +++ b/linker.ld @@ -16,7 +16,7 @@ SECTIONS { . = 0x00000050; gTextBox = .; . = 0x0000005C; gUnk_0200005C = .; . = 0x00000070; gUnk_02000070 = .; - . = 0x00000080; gUnk_02000080 = .; + . = 0x00000080; gMenu = .; . = 0x00000090; gUnk_02000090 = .; . = 0x000000B0; gUnk_020000B0 = .; . = 0x000000C0; gUnk_020000C0 = .; @@ -456,6 +456,7 @@ SECTIONS { asm/code_080526F8.o(.text); asm/modBombs.o(.text); asm/modArrows.o(.text); + src/code_0805436C.o(.text); asm/code_0805436C.o(.text); src/sub_08055E08.o(.text); asm/sub_08055E24.o(.text); diff --git a/src/code_0805436C.c b/src/code_0805436C.c new file mode 100644 index 00000000..c522c408 --- /dev/null +++ b/src/code_0805436C.c @@ -0,0 +1,188 @@ +#include "global.h" +#include "entity.h" +#include "link.h" +#include "room.h" +#include "menu.h" + +typedef struct { + u8 filler[0xa8]; + Stats stats; +} struct_02002A40; + +typedef struct { + u8 unk; + u8 filler[7]; +} struct_080FD5B4; + +typedef struct { + u8 filler[0x2e]; + u8 unk; +} struct_030010A0; + +extern struct_02002A40 gUnk_02002A40; +extern struct_080FD5B4 gUnk_080FD5B4[]; +extern struct_030010A0 gUnk_030010A0; + +extern u8 gUnk_0200AF13; +extern u8 gUnk_0200AF14; +extern u32 gUnk_080015BC; +extern u8 gUnk_080FE1C6[]; +extern u32 gUnk_02034398; +extern void (*const gUnk_080FE2A0[])(); + + +u32 IsItemEquipped(u32 itemID) { + u32 ret; + + if (itemID == gUnk_02002A40.stats.itemOnA) + ret = 0; + else if (itemID == gUnk_02002A40.stats.itemOnB) + ret = 1; + else + ret = 2; + return ret; +} + +#if NON_MATCHING // reg-alloc +void PutItemOnSlot(u32 itemID) { + u32 itemSlot; + if (itemID < 0x47) { + ModifyInventory(0, 1); + } + if (itemID - 1 < 0x1f) { + itemSlot = 2; + if (gUnk_02002A40.stats.itemOnA == 0) { + itemSlot = 0; + } else if (gUnk_02002A40.stats.itemOnB == 0) { + itemSlot = 1; + } + if (itemSlot == 2) { + u8 temp = gUnk_080FD5B4[itemID].unk; + if (temp == gUnk_080FD5B4[gUnk_02002A40.stats.itemOnA].unk) { + itemSlot = 0; + } else { + if (temp == gUnk_080FD5B4[gUnk_02002A40.stats.itemOnB].unk) { + itemSlot = 1; + } + } + if (itemSlot == 2) { + return; + } + } + ForceEquipItem(itemID, itemSlot); + } +} +#else +NAKED +void PutItemOnSlot(u32 itemID) { + asm(".include \"asm/non_matching/putItemOnSlot.s\""); +} +#endif + +u32 SetBottleContents(u32 itemID, u32 bottleIndex) { + + if (bottleIndex > 3) { + bottleIndex = 0; + if (gUnk_02002A40.stats.filler2[0] != 0x20) { + do { + bottleIndex++; + if (bottleIndex > 3) { + return bottleIndex; + } + } while (gUnk_02002A40.stats.filler2[bottleIndex] != 0x20); + } + if (bottleIndex > 3) { + return bottleIndex; + } + } + gUnk_02002A40.stats.filler2[bottleIndex] = itemID; + return bottleIndex; +} + +u32 sub_0805449C(u32 arg0) { + switch (arg0) { + case 1: + case 2: + case 3: + case 4: + case 6: + return 1; + default: + return 0; + } +} + +u32 sub_080544B4(u32 arg0) { + switch (arg0) { + case 13: + case 14: + return 1; + default: + return 0; + } +} + +u32 sub_080544C8(u32 arg0) { + switch (arg0) { + case 28: + case 29: + case 30: + case 31: + return 1; + default: + return 0; + } +} + +u32 sub_080544DC(u32 arg0) { + if (arg0 == gUnk_02002A40.stats.filler2[0]) { + return 1; + } else if (arg0 == gUnk_02002A40.stats.filler2[1]) { + return 2; + } else if (arg0 == gUnk_02002A40.stats.filler2[2]) { + return 3; + } else if (arg0 == gUnk_02002A40.stats.filler2[3]) { + return 4; + } else { + return 0; + } +} + +#if NON_MATCHING // reg-alloc +void sub_08054524(void) { + u32 bVar1; + + bVar1 = gArea.locationIndex; + if (gArea.locationIndex == 0) { + bVar1 = gUnk_030010A0.unk; + } + if (bVar1 > 0x16) { + bVar1 = 0; + } + + sub_0801D66C(&gUnk_080015BC + gUnk_080FE1C6[bVar1] * 0x8, &gUnk_02034398, 0x20); +} +#else +NAKED +void sub_08054524(void) { + asm(".include \"asm/non_matching/sub_08054524.inc\""); +} +#endif + +void sub_08054564(void) { + gRoomVars.filler[2] = 1; +} + +void sub_08054570(void) { + gRoomVars.filler[2] = 0; +} + +NAKED +u32 sub_0805457C(u32 arg0, u32 arg1) { + asm(".include \"asm/non_matching/code_0805457C.inc\""); +} + +void sub_08054870(void) +{ + gUnk_080FE2A0[gMenu.secret](); +} \ No newline at end of file diff --git a/src/introSetTransition.c b/src/introSetTransition.c index ff9e54c3..6d71480f 100644 --- a/src/introSetTransition.c +++ b/src/introSetTransition.c @@ -14,15 +14,14 @@ typedef struct { extern u32 DoFade(u32, u32); extern void _DmaZero(u32*, u32, u32); -extern u32 gUnk_02000080; extern TransitionStruct gUnk_03001000; -extern Menu gUnk_02032EC0; +extern MenuControls gUnk_02032EC0; u32 IntroSetTransition(u8 transition, u32 param_2, u32 param_3) { gUnk_02032EC0.transitionType = transition; gUnk_03001000.functionIndex = 2; - _DmaZero(&gUnk_02000080, 48, param_3); + _DmaZero((u32 *)&gMenu, 48, param_3); return DoFade(7, 8); } diff --git a/src/sub_08055E08.c b/src/sub_08055E08.c index 7ae07b29..19a2ebd6 100644 --- a/src/sub_08055E08.c +++ b/src/sub_08055E08.c @@ -2,12 +2,12 @@ #include "global.h" extern u32* _call_via_r0(u32* func); -extern u8 gUnk_02000080; +extern u8 gMenu; extern u32* gUnk_080FF420; void sub_08055E08() { u32** arr = &gUnk_080FF420; - u8 i = gUnk_02000080; - i = *(&gUnk_02000080 + 6); + u8 i = gMenu; + i = *(&gMenu + 6); _call_via_r0(arr[i]); } From b40bcfb8c9c91441278ae7fb30052e2cccbfaad7 Mon Sep 17 00:00:00 2001 From: Macrepeh <63179588+Macrepeh@users.noreply.github.com> Date: Thu, 16 Jul 2020 10:46:02 -0400 Subject: [PATCH 039/158] MoblinLady and MayorHagen --- src/npc/mayorHagen.c | 108 +++++++++++++++++++++++++++++++++++++++++++ src/npc/moblinLady.c | 21 +++++++++ 2 files changed, 129 insertions(+) create mode 100644 src/npc/mayorHagen.c create mode 100644 src/npc/moblinLady.c diff --git a/src/npc/mayorHagen.c b/src/npc/mayorHagen.c new file mode 100644 index 00000000..1eb0ff64 --- /dev/null +++ b/src/npc/mayorHagen.c @@ -0,0 +1,108 @@ +#include "global.h" +#include "entity.h" +#include "link.h" +#include "room.h" +#include "flags.h" +#include "sprite.h" +#include "textbox.h" +#include "npc.h" +extern void sub_0807DD50(Entity*); +extern u32 sub_0806F5A4(u32); +extern void sub_0806F118(Entity*); +extern u32 sub_0801E99C(); +extern void sub_08078784(Entity*,u32); +extern void sub_0807DDAC(Entity*,u32); +extern void sub_0805E3A0(Entity*,u32); +extern void sub_0807DDE4(Entity*); +extern void sub_08078850(); +extern u32 gUnk_08113F44; +extern u32 gUnk_08113F48; +extern u32 GetInventoryValue(u32); +extern u32 CheckLocalFlag(u32); +extern void SetLocalFlag(); +extern void ShowNPCDialogue(); + +void MayorHagen(Entity *this) +{ + u32 v; + switch (this->action) { + case 0: + this->action = 1; + this->field_0x69 = 0; + this->field_0x68 = sub_0801E99C(this); + sub_0805E3A0(this, 2); + sub_0807DD50(this); + break; + case 1: + v = this->interactType; + if (v == 2) { + this->action = v; + this->interactType = 0; + this->field_0x69 = this->animIndex; + InitAnimationForceUpdate(this,4 + sub_0806F5A4(GetFacingDirection(this, &gLinkEntity))); + sub_0806F118(this); + break; + } + sub_0807DDAC(this,0); + sub_0807DDE4(this); + UpdateAnimationSingleFrame(this); + break; + case 2: + if (UpdateFuseInteraction(this)) { + this->action = 1; + InitAnimationForceUpdate(this, this->field_0x69); + } + } +} + +void sub_0806CE5C(Entity *this) +{ + sub_08078784(this,sub_0801E99C()); + sub_08078850(this,1,0,&gUnk_08113F44); +} + +void sub_0806CE80(Entity *this) +{ + u32 v; + u32 v2; + v = gUnk_02002A40.filler[8]; + if (v == 5) { + //flippers + if (GetInventoryValue(0x46) == 0) { + if (CheckLocalFlag(0x70) != 0) { + v2 = CheckLocalFlag(0x71); + if (v2 == 0) { + v = 0xb; + SetLocalFlag(0x71); + } + else { + v = 0xc; + } + } + else { + v = 0xa; + } + } + else { + v2 = CheckLocalFlag(0x89); + if (v2 == 0) { + v = 0xd; + SetLocalFlag(0x89); + } + else { + v = 0xe; + } + } + } + ShowNPCDialogue(this,&gUnk_08113F48 + 2*v); +} + +void MayorHagen_Fusion(Entity *this) { + if (this->action == 0) { + this->action++; + this->spriteSettings.b.draw = 1; + InitAnimationForceUpdate(this, 8); + } else { + UpdateAnimationSingleFrame(this); + } +} \ No newline at end of file diff --git a/src/npc/moblinLady.c b/src/npc/moblinLady.c new file mode 100644 index 00000000..2dc1e5f6 --- /dev/null +++ b/src/npc/moblinLady.c @@ -0,0 +1,21 @@ +#include "global.h" +#include "entity.h" +#include "link.h" +#include "room.h" +#include "flags.h" +#include "sprite.h" +#include "textbox.h" +#include "npc.h" +extern void sub_0807DD50(); +extern void sub_0807DD94(); + + +void MoblinLady(Entity* this) { + if (this->action == 0) { + this->action++; + sub_0807DD50(this); + } + else { + sub_0807DD94(this,0); + } +} \ No newline at end of file From 028138c5bb122f61bac67ead9eb03924a7452901 Mon Sep 17 00:00:00 2001 From: Macrepeh <63179588+Macrepeh@users.noreply.github.com> Date: Thu, 16 Jul 2020 10:47:10 -0400 Subject: [PATCH 040/158] Delete MayorHagen/MoblinLady --- asm/mayorHagen.s | 192 ----------------------------------------------- 1 file changed, 192 deletions(-) delete mode 100644 asm/mayorHagen.s diff --git a/asm/mayorHagen.s b/asm/mayorHagen.s deleted file mode 100644 index 2deaf59a..00000000 --- a/asm/mayorHagen.s +++ /dev/null @@ -1,192 +0,0 @@ - .include "asm/macros.inc" - - .include "constants/constants.inc" - - .syntax unified - - .text - - - thumb_func_start MayorHagen -MayorHagen: @ 0x0806CDA8 - push {r4, lr} - adds r4, r0, #0 - ldrb r1, [r4, #0xc] - cmp r1, #1 - beq _0806CDE8 - cmp r1, #1 - bgt _0806CDBC - cmp r1, #0 - beq _0806CDC2 - b _0806CE58 -_0806CDBC: - cmp r1, #2 - beq _0806CE3E - b _0806CE58 -_0806CDC2: - movs r0, #1 - strb r0, [r4, #0xc] - adds r0, r4, #0 - adds r0, #0x69 - strb r1, [r0] - adds r0, r4, #0 - bl sub_0801E99C - adds r1, r4, #0 - adds r1, #0x68 - strb r0, [r1] - adds r0, r4, #0 - movs r1, #2 - bl sub_0805E3A0 - adds r0, r4, #0 - bl sub_0807DD50 - b _0806CE58 -_0806CDE8: - adds r2, r4, #0 - adds r2, #0x39 - movs r1, #0 - ldrsb r1, [r2, r1] - cmp r1, #2 - bne _0806CE28 - movs r0, #0 - strb r1, [r4, #0xc] - strb r0, [r2] - adds r0, r4, #0 - adds r0, #0x58 - ldrb r0, [r0] - adds r1, r4, #0 - adds r1, #0x69 - strb r0, [r1] - ldr r1, _0806CE24 @ =gLinkEntity - adds r0, r4, #0 - bl GetFacingDirection - bl sub_0806F5A4 - adds r1, r0, #0 - adds r1, #4 - adds r0, r4, #0 - bl InitAnimationForceUpdate - adds r0, r4, #0 - bl sub_0806F118 - b _0806CE58 - .align 2, 0 -_0806CE24: .4byte gLinkEntity -_0806CE28: - adds r0, r4, #0 - movs r1, #0 - bl sub_0807DDAC - adds r0, r4, #0 - bl sub_0807DDE4 - adds r0, r4, #0 - bl UpdateAnimationSingleFrame - b _0806CE58 -_0806CE3E: - adds r0, r4, #0 - bl UpdateFuseInteraction - cmp r0, #0 - beq _0806CE58 - movs r0, #1 - strb r0, [r4, #0xc] - adds r0, r4, #0 - adds r0, #0x69 - ldrb r1, [r0] - adds r0, r4, #0 - bl InitAnimationForceUpdate -_0806CE58: - pop {r4, pc} - .align 2, 0 - - thumb_func_start sub_0806CE5C -sub_0806CE5C: @ 0x0806CE5C - push {r4, lr} - adds r4, r0, #0 - bl sub_0801E99C - adds r1, r0, #0 - adds r0, r4, #0 - bl sub_08078784 - ldr r3, _0806CE7C @ =gUnk_08113F44 - adds r0, r4, #0 - movs r1, #1 - movs r2, #0 - bl sub_08078850 - pop {r4, pc} - .align 2, 0 -_0806CE7C: .4byte gUnk_08113F44 - - thumb_func_start sub_0806CE80 -sub_0806CE80: @ 0x0806CE80 - push {r4, r5, lr} - adds r5, r0, #0 - ldr r0, _0806CEB4 @ =gUnk_02002A40 - ldrb r4, [r0, #8] - cmp r4, #5 - bne _0806CED6 - movs r0, #0x46 - bl GetInventoryValue - cmp r0, #0 - bne _0806CEC0 - movs r0, #0x70 - bl CheckLocalFlag - cmp r0, #0 - beq _0806CEBC - movs r0, #0x71 - bl CheckLocalFlag - cmp r0, #0 - bne _0806CEB8 - movs r4, #0xb - movs r0, #0x71 - bl SetLocalFlag - b _0806CED6 - .align 2, 0 -_0806CEB4: .4byte gUnk_02002A40 -_0806CEB8: - movs r4, #0xc - b _0806CED6 -_0806CEBC: - movs r4, #0xa - b _0806CED6 -_0806CEC0: - movs r0, #0x89 - bl CheckLocalFlag - cmp r0, #0 - bne _0806CED4 - movs r4, #0xd - movs r0, #0x89 - bl SetLocalFlag - b _0806CED6 -_0806CED4: - movs r4, #0xe -_0806CED6: - lsls r1, r4, #3 - ldr r0, _0806CEE4 @ =gUnk_08113F48 - adds r1, r1, r0 - adds r0, r5, #0 - bl ShowNPCDialogue - pop {r4, r5, pc} - .align 2, 0 -_0806CEE4: .4byte gUnk_08113F48 - - thumb_func_start MayorHagen_Fusion -MayorHagen_Fusion: @ 0x0806CEE8 - push {lr} - adds r2, r0, #0 - ldrb r0, [r2, #0xc] - cmp r0, #0 - bne _0806CF0E - adds r0, #1 - strb r0, [r2, #0xc] - ldrb r1, [r2, #0x18] - movs r0, #4 - rsbs r0, r0, #0 - ands r0, r1 - movs r1, #1 - orrs r0, r1 - strb r0, [r2, #0x18] - adds r0, r2, #0 - movs r1, #8 - bl InitAnimationForceUpdate - b _0806CF14 -_0806CF0E: - adds r0, r2, #0 - bl UpdateAnimationSingleFrame -_0806CF14: - pop {pc} - .align 2, 0 From 38f9ec70bc1bbeb1a68caed4519c090ec8a41198 Mon Sep 17 00:00:00 2001 From: Macrepeh <63179588+Macrepeh@users.noreply.github.com> Date: Thu, 16 Jul 2020 10:48:02 -0400 Subject: [PATCH 041/158] Delete moblinLady.s --- asm/moblinLady.s | 26 -------------------------- 1 file changed, 26 deletions(-) delete mode 100644 asm/moblinLady.s diff --git a/asm/moblinLady.s b/asm/moblinLady.s deleted file mode 100644 index 87f68f93..00000000 --- a/asm/moblinLady.s +++ /dev/null @@ -1,26 +0,0 @@ - .include "asm/macros.inc" - - .include "constants/constants.inc" - - .syntax unified - - .text - - thumb_func_start MoblinLady -MoblinLady: @ 0x0806B9D0 - push {lr} - adds r1, r0, #0 - ldrb r0, [r1, #0xc] - cmp r0, #0 - bne _0806B9E6 - adds r0, #1 - strb r0, [r1, #0xc] - adds r0, r1, #0 - bl sub_0807DD50 - b _0806B9EE -_0806B9E6: - adds r0, r1, #0 - movs r1, #0 - bl sub_0807DD94 -_0806B9EE: - pop {pc} \ No newline at end of file From 002049798bff4bfacfb3c99af82d3e41aeba4a7f Mon Sep 17 00:00:00 2001 From: Macrepeh <63179588+Macrepeh@users.noreply.github.com> Date: Thu, 16 Jul 2020 10:49:35 -0400 Subject: [PATCH 042/158] Update linker.ld --- linker.ld | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/linker.ld b/linker.ld index 58006a85..210cf138 100644 --- a/linker.ld +++ b/linker.ld @@ -598,7 +598,7 @@ SECTIONS { asm/librari.o(.text); asm/percy.o(.text); asm/vaatiReborn.o(.text); - asm/moblinLady.o(.text); + src/npc/moblinLady.o(.text); asm/librarians.o(.text); asm/farmers.o(.text); asm/carlov.o(.text); @@ -614,7 +614,7 @@ SECTIONS { src/npc/windTribespeople.o(.text); asm/windTribespeople.o(.text); asm/gregal.o(.text); - asm/mayorHagen.o(.text); + src/npc/mayorHagen.o(.text); src/npc/bigGoron.o(.text); asm/bigGoron.o(.text); asm/ezloCap.o(.text); From 0f07e1ab9b2b257f4b36d9ab7658731425cb99f4 Mon Sep 17 00:00:00 2001 From: theo3 Date: Thu, 16 Jul 2020 12:50:59 -0700 Subject: [PATCH 043/158] code_0804AA84.c --- asm/bird.s | 2 +- asm/code_08019444.s | 2 +- asm/code_0801D79C.s | 2 +- asm/code_0804AA84.s | 123 +------------------------------------------ asm/code_0804B9F8.s | 2 +- asm/code_08050038.s | 6 +-- asm/code_080526F8.s | 2 +- asm/code_0805436C.s | 2 +- asm/code_0805E3B0.s | 4 +- asm/code_0807CC3C.s | 2 +- asm/code_080A3BD0.s | 4 +- asm/code_080A5574.s | 8 +-- asm/figurineDevice.s | 4 +- asm/managerF.s | 2 +- asm/stockwell.s | 2 +- asm/sub_080AD474.s | 2 +- include/area.h | 4 +- include/functions.h | 9 ++++ include/screen.h | 1 + linker.ld | 2 +- src/code_0804AA84.c | 94 +++++++++++++++++++++++++++++++++ src/sub_0804AA84.c | 37 ------------- 22 files changed, 132 insertions(+), 184 deletions(-) create mode 100644 src/code_0804AA84.c delete mode 100644 src/sub_0804AA84.c diff --git a/asm/bird.s b/asm/bird.s index 3ae45e1b..3e5549cb 100644 --- a/asm/bird.s +++ b/asm/bird.s @@ -675,7 +675,7 @@ _0809D454: str r1, [r0, #0x40] movs r0, #9 movs r1, #0 - bl sub_080A7138 + bl MenuFadeIn _0809D478: ldr r4, [r5, #0x54] cmp r4, #0 diff --git a/asm/code_08019444.s b/asm/code_08019444.s index 08153c61..86d0a0d8 100644 --- a/asm/code_08019444.s +++ b/asm/code_08019444.s @@ -434,7 +434,7 @@ sub_080197A0: @ 0x080197A0 push {lr} movs r0, #2 movs r1, #0xb - bl sub_080A7138 + bl MenuFadeIn pop {pc} thumb_func_start sub_080197AC diff --git a/asm/code_0801D79C.s b/asm/code_0801D79C.s index 776ee624..3d2409d6 100644 --- a/asm/code_0801D79C.s +++ b/asm/code_0801D79C.s @@ -1178,7 +1178,7 @@ sub_0801E044: @ 0x0801E044 bne _0801E06A movs r0, #4 movs r1, #0 - bl sub_080A7138 + bl MenuFadeIn ldr r0, _0801E070 @ =gUnk_02022740 movs r1, #4 strb r1, [r0] diff --git a/asm/code_0804AA84.s b/asm/code_0804AA84.s index 73e93d4e..630f8984 100644 --- a/asm/code_0804AA84.s +++ b/asm/code_0804AA84.s @@ -4,127 +4,6 @@ .syntax unified .text - - thumb_func_start sub_0804AA84 -sub_0804AA84: @ 0x0804AA84 - push {lr} - ldr r3, _0804AA98 @ =gArea - ldrb r0, [r3, #0x19] - cmp r0, #0 - bne _0804AA9C - strb r0, [r3, #0x18] - strb r0, [r3, #0x19] - movs r0, #0 - b _0804AAB0 - .align 2, 0 -_0804AA98: .4byte gArea -_0804AA9C: - ldr r2, _0804AAB4 @ =gUnk_03001000 - movs r1, #0 - movs r0, #4 - strb r0, [r2, #4] - strb r1, [r3, #0xe] - strb r1, [r3, #0xf] - strh r1, [r3, #0x10] - bl sub_0805E5A8 - movs r0, #1 -_0804AAB0: - pop {pc} - .align 2, 0 -_0804AAB4: .4byte gUnk_03001000 - - thumb_func_start sub_0804AAB8 -sub_0804AAB8: @ 0x0804AAB8 - push {lr} - ldr r1, _0804AACC @ =gUnk_080D4120 - ldr r0, _0804AAD0 @ =gArea - ldrb r0, [r0, #0xe] - lsls r0, r0, #2 - adds r0, r0, r1 - ldr r0, [r0] - bl _call_via_r0 - pop {pc} - .align 2, 0 -_0804AACC: .4byte gUnk_080D4120 -_0804AAD0: .4byte gArea - - thumb_func_start sub_0804AAD4 -sub_0804AAD4: @ 0x0804AAD4 - push {r4, lr} - ldr r4, _0804AAFC @ =gUnk_02018EB0 - adds r0, r4, #0 - movs r1, #0x28 - bl _DmaZero - movs r0, #0 - str r0, [r4, #0x14] - bl sub_0805E60C - ldr r4, _0804AB00 @ =gArea - ldrb r1, [r4, #0x17] - movs r0, #0x3d - movs r2, #0 - bl CreateObject - ldrb r0, [r4, #0xe] - adds r0, #1 - strb r0, [r4, #0xe] - pop {r4, pc} - .align 2, 0 -_0804AAFC: .4byte gUnk_02018EB0 -_0804AB00: .4byte gArea - - thumb_func_start sub_0804AB04 -sub_0804AB04: @ 0x0804AB04 - push {lr} - bl sub_0805E5C0 - ldr r0, _0804AB20 @ =gArea - ldrh r0, [r0, #0x10] - cmp r0, #0 - beq _0804AB1E - bl sub_080AD90C - bl sub_080AD9B0 - bl sub_080AD918 -_0804AB1E: - pop {pc} - .align 2, 0 -_0804AB20: .4byte gArea - - thumb_func_start sub_0804AB24 -sub_0804AB24: @ 0x0804AB24 - push {r4, r5, lr} - ldr r5, _0804AB48 @ =gUnk_03000FD0 - ldrb r1, [r5] - cmp r1, #0 - bne _0804AB46 - ldr r0, _0804AB4C @ =gScreen - movs r4, #0 - strh r1, [r0] - bl sub_0801E104 - ldr r0, _0804AB50 @ =gArea - strb r4, [r0, #0xe] - movs r0, #6 - movs r1, #0 - bl sub_080A7138 - strb r4, [r5] -_0804AB46: - pop {r4, r5, pc} - .align 2, 0 -_0804AB48: .4byte gUnk_03000FD0 -_0804AB4C: .4byte gScreen -_0804AB50: .4byte gArea - - thumb_func_start sub_0804AB54 -sub_0804AB54: @ 0x0804AB54 - push {lr} - ldr r1, _0804AB68 @ =gUnk_080D412C - ldr r0, _0804AB6C @ =gArea - ldrb r0, [r0, #0xe] - lsls r0, r0, #2 - adds r0, r0, r1 - ldr r0, [r0] - bl _call_via_r0 - pop {pc} - .align 2, 0 -_0804AB68: .4byte gUnk_080D412C -_0804AB6C: .4byte gArea thumb_func_start sub_0804AB70 sub_0804AB70: @ 0x0804AB70 @@ -173,7 +52,7 @@ _0804ABA4: lsls r1, r1, #0xe orrs r0, r1 str r0, [r2] - bl sub_0805E60C + bl EraseAllEntities ldr r1, _0804AC18 @ =gUnk_080D4110 lsls r0, r5, #2 adds r0, r0, r1 diff --git a/asm/code_0804B9F8.s b/asm/code_0804B9F8.s index d5601372..3223f113 100644 --- a/asm/code_0804B9F8.s +++ b/asm/code_0804B9F8.s @@ -3176,7 +3176,7 @@ sub_0804CD48: @ 0x0804CD48 bl SetLocalFlag movs r0, #5 movs r1, #0 - bl sub_080A7138 + bl MenuFadeIn ldr r0, _0804CD94 @ =gUnk_02000070 strb r4, [r0] ldr r0, _0804CD98 @ =gUnk_03000FD0 diff --git a/asm/code_08050038.s b/asm/code_08050038.s index f92dcf2d..e092fda6 100644 --- a/asm/code_08050038.s +++ b/asm/code_08050038.s @@ -634,7 +634,7 @@ sub_080504F4: @ 0x080504F4 movs r1, #0x80 bl _DmaZero bl sub_08056418 - bl sub_0805E60C + bl EraseAllEntities bl sub_08080668 bl sub_080ADD30 movs r0, #0 @@ -3331,7 +3331,7 @@ sub_08051A14: @ 0x08051A14 movs r1, #0xed lsls r1, r1, #2 bl _DmaZero - bl sub_0805E60C + bl EraseAllEntities bl sub_080197AC bl sub_08080668 bl sub_080ADD30 @@ -3881,7 +3881,7 @@ sub_08051F40: @ 0x08051F40 beq _08051F68 lsrs r1, r1, #4 movs r0, #2 - bl sub_080A7138 + bl MenuFadeIn b _08051F76 .align 2, 0 _08051F60: .4byte gUnk_080FCA20 diff --git a/asm/code_080526F8.s b/asm/code_080526F8.s index 0e44f902..656e04d5 100644 --- a/asm/code_080526F8.s +++ b/asm/code_080526F8.s @@ -1712,7 +1712,7 @@ sub_08053434: @ 0x08053434 bl sub_08053460 movs r0, #5 movs r1, #6 - bl sub_080A7138 + bl MenuFadeIn _0805345A: pop {pc} .align 2, 0 diff --git a/asm/code_0805436C.s b/asm/code_0805436C.s index a4ffcf48..34e36be2 100644 --- a/asm/code_0805436C.s +++ b/asm/code_0805436C.s @@ -85,7 +85,7 @@ sub_08054920: @ 0x08054920 ldr r0, _08054950 @ =gUnk_02032EC0 ldrb r1, [r0, #3] movs r0, #0xa - bl sub_080A7138 + bl MenuFadeIn b _08054962 .align 2, 0 _08054948: .4byte gUnk_080C9CBC diff --git a/asm/code_0805E3B0.s b/asm/code_0805E3B0.s index a39b6514..f7c384c4 100644 --- a/asm/code_0805E3B0.s +++ b/asm/code_0805E3B0.s @@ -354,8 +354,8 @@ sub_0805E5F8: @ 0x0805E5F8 .align 2, 0 _0805E608: .4byte gUnk_03005F40 - thumb_func_start sub_0805E60C -sub_0805E60C: @ 0x0805E60C + thumb_func_start EraseAllEntities +EraseAllEntities: @ 0x0805E60C push {lr} bl sub_0805E89C ldr r0, _0805E654 @ =gUnk_03003DC0 diff --git a/asm/code_0807CC3C.s b/asm/code_0807CC3C.s index 6587150f..7c2185ce 100644 --- a/asm/code_0807CC3C.s +++ b/asm/code_0807CC3C.s @@ -5472,7 +5472,7 @@ sub_0807F420: @ 0x0807F420 lsls r2, r2, #0x18 lsrs r2, r2, #0x18 adds r1, r2, #0 - bl sub_080A7138 + bl MenuFadeIn pop {pc} thumb_func_start sub_0807F434 diff --git a/asm/code_080A3BD0.s b/asm/code_080A3BD0.s index 5f35853a..7d23f6c8 100644 --- a/asm/code_080A3BD0.s +++ b/asm/code_080A3BD0.s @@ -264,7 +264,7 @@ sub_080A3DB8: @ 0x080A3DB8 cmp r0, #0 beq _080A3DE8 ldrb r1, [r1, #4] - bl sub_080A7138 + bl MenuFadeIn b _080A3DF8 .align 2, 0 _080A3DDC: .4byte gMenu @@ -2288,7 +2288,7 @@ sub_080A4D88: @ 0x080A4D88 bl _DmaZero movs r0, #1 movs r1, #0 - bl sub_080A7138 + bl MenuFadeIn movs r0, #0x80 bl sub_080A3248 pop {pc} diff --git a/asm/code_080A5574.s b/asm/code_080A5574.s index 780e1fbf..52f0cba2 100644 --- a/asm/code_080A5574.s +++ b/asm/code_080A5574.s @@ -3540,8 +3540,8 @@ sub_080A7124: @ 0x080A7124 .align 2, 0 _080A7134: .4byte gUnk_02032EC0 - thumb_func_start sub_080A7138 -sub_080A7138: @ 0x080A7138 + thumb_func_start MenuFadeIn +MenuFadeIn: @ 0x080A7138 push {r4, r5, r6, lr} adds r5, r0, #0 adds r6, r1, #0 @@ -3608,7 +3608,7 @@ _080A71B8: strb r2, [r3, #0xf] _080A71BA: adds r0, r4, #0 - bl sub_080A7138 + bl MenuFadeIn pop {r4, pc} .align 2, 0 @@ -3617,7 +3617,7 @@ sub_080A71C4: @ 0x080A71C4 push {r4, r5, lr} adds r4, r2, #0 adds r5, r3, #0 - bl sub_080A7138 + bl MenuFadeIn ldr r0, _080A71D8 @ =gUnk_02032EC0 strh r4, [r0, #8] strh r5, [r0, #0xa] diff --git a/asm/figurineDevice.s b/asm/figurineDevice.s index 4dd0b7d1..130eb951 100644 --- a/asm/figurineDevice.s +++ b/asm/figurineDevice.s @@ -173,7 +173,7 @@ _08087CCA: bl SetRoomFlag movs r0, #7 movs r1, #0xff - bl sub_080A7138 + bl MenuFadeIn b _08087D1A _08087CFA: movs r0, #5 @@ -332,7 +332,7 @@ _08087E10: bl SetRoomFlag ldrb r1, [r4, #0xf] movs r0, #7 - bl sub_080A7138 + bl MenuFadeIn b _08087E5A _08087E3C: movs r0, #2 diff --git a/asm/managerF.s b/asm/managerF.s index ab60a229..beda696f 100644 --- a/asm/managerF.s +++ b/asm/managerF.s @@ -199,7 +199,7 @@ _08059034: strb r0, [r4, #0xc] ldrb r1, [r4, #0xd] movs r0, #5 - bl sub_080A7138 + bl MenuFadeIn b _08059060 .align 2, 0 _0805904C: .4byte gLinkEntity diff --git a/asm/stockwell.s b/asm/stockwell.s index 3831cab4..03e0c55a 100644 --- a/asm/stockwell.s +++ b/asm/stockwell.s @@ -382,7 +382,7 @@ sub_08065314: @ 0x08065314 strb r0, [r2, #0xd] movs r0, #3 movs r1, #3 - bl sub_080A7138 + bl MenuFadeIn _08065332: pop {pc} .align 2, 0 diff --git a/asm/sub_080AD474.s b/asm/sub_080AD474.s index 2f07bc46..135ce2f7 100644 --- a/asm/sub_080AD474.s +++ b/asm/sub_080AD474.s @@ -40,7 +40,7 @@ _080AD49C: strh r0, [r5, #8] movs r0, #7 strb r0, [r5, #4] - bl sub_0805E60C + bl EraseAllEntities movs r0, #0 bl sub_0801CFA8 bl sub_080ADD30 diff --git a/include/area.h b/include/area.h index c93ef0c6..3717fba4 100644 --- a/include/area.h +++ b/include/area.h @@ -8,7 +8,9 @@ typedef struct { u8 locationIndex; u8 unk; u16 localFlagOffset; - u8 filler[19]; + u8 filler[10]; + u16 field_0x10; + u8 filler3[7]; u8 fadeOut; u8 filler2[14]; } Area; diff --git a/include/functions.h b/include/functions.h index e9460e9e..7f5e2577 100644 --- a/include/functions.h +++ b/include/functions.h @@ -29,6 +29,8 @@ extern u32 GetFacingDirection(Entity*, Entity*); extern Entity* CreatePlayerItem(u32, u32, u32, u32); extern Entity* GetEmptyEntity(void); extern u32 GetTileTypeByPos(s32 x, s32 y, u32 layer); +extern void _DmaZero(void* src, u32 count); +extern void EraseAllEntities(void); // Unidentified extern void sub_0806ED78(Entity*); @@ -96,4 +98,11 @@ extern void sub_08077F50(ItemBehavior *beh, u32 arg1); extern void sub_0807AA80(Entity*); extern s32 sub_0807887C(Entity*, u32, u32); extern s32 sub_08078904(); +extern void sub_0805E5A8(void); +extern void sub_0805E5C0(void); +extern void sub_080AD90C(void); +extern void sub_080AD9B0(void); +extern void sub_080AD918(void); +extern void sub_0801E104(void); +extern void MenuFadeIn(u32, u32); #endif diff --git a/include/screen.h b/include/screen.h index fd61b5f5..442eee84 100644 --- a/include/screen.h +++ b/include/screen.h @@ -5,6 +5,7 @@ typedef struct { u16 lcdControl2; + u16 unk2; u32 unk; u16 lcdControl1; } LcdControls; diff --git a/linker.ld b/linker.ld index e6d8781b..99b7614a 100644 --- a/linker.ld +++ b/linker.ld @@ -433,7 +433,7 @@ SECTIONS { asm/code_08049CD4.o(.text); asm/sub_0804AA30.o(.text); src/createEnemy.o(.text); - src/sub_0804AA84.o(.text); + src/code_0804AA84.o(.text); asm/code_0804AA84.o(.text); src/loadRoomEntityList.o(.text); asm/createEntity.o(.text); diff --git a/src/code_0804AA84.c b/src/code_0804AA84.c new file mode 100644 index 00000000..5eddfc28 --- /dev/null +++ b/src/code_0804AA84.c @@ -0,0 +1,94 @@ +#include "global.h" +#include "entity.h" +#include "area.h" +#include "functions.h" +#include "screen.h" + +typedef struct { + u8 interruptFlag; + u8 field_0x1; + u8 loadType; + u8 funcIndex; + u8 transition; + u16 field_0x5; + u8 muteAudio; + u8 field_0x8; + u8 countdown; + u8 field_0xa; + u8 field_0xb; + u8 ticks; + u8 field_0xe; + u8 field_0xf; +} Main; + +typedef struct { + u8 filler [18]; + u32 unk; +} struct_02018EB0; + +extern void sub_0805E5A8(); + +extern void (*const gUnk_080D4120[])(); +extern void (*const gUnk_080D412C[])(); + + +extern Main gUnk_03001000; +extern struct_02018EB0 gUnk_02018EB0; +extern u8 gUnk_03000FD0; + +u32 sub_0804AA84(void) +{ + if (gArea.fadeOut != 0) { + gUnk_03001000.transition = 4; + gArea.filler[8] = 0; + gArea.filler[9] = 0; + *(u16*)&gArea.filler[10] = 0; + sub_0805E5A8(); + return 1; + } + else { + gArea.filler[18] = gArea.fadeOut; + *(vu8*)&gArea.fadeOut = gArea.fadeOut; + return 0; + } +} + +void sub_0804AAB8(void) +{ + gUnk_080D4120[gArea.filler[8]](); +} + +void sub_0804AAD4(void) +{ + _DmaZero((void *)&gUnk_02018EB0, 0x28); + gUnk_02018EB0.unk = 0; + EraseAllEntities(); + CreateObject(0x3d, gArea.filler3[5], 0); + gArea.filler[8]++; +} + +void sub_0804AB04(void) +{ + sub_0805E5C0(); + if (gArea.field_0x10 != 0) { + sub_080AD90C(); + sub_080AD9B0(); + sub_080AD918(); + } +} + +void sub_0804AB24(void) +{ + if (gUnk_03000FD0 == 0) { + gScreen.lcd.lcdControl2 = 0; + sub_0801E104(); + gArea.filler[8] = 0; + MenuFadeIn(6, 0); + gUnk_03000FD0 = 0; + } +} + +void sub_0804AB54(void) +{ + gUnk_080D412C[gArea.filler[8]](); +} \ No newline at end of file diff --git a/src/sub_0804AA84.c b/src/sub_0804AA84.c deleted file mode 100644 index b706d4f1..00000000 --- a/src/sub_0804AA84.c +++ /dev/null @@ -1,37 +0,0 @@ -#include "global.h" - -// Very close! - -/* extern void sub_0805E5A8(); - -extern u8 gArea; -extern u8 gUnk_03001000; - -u32 sub_0804AA84(void) - -{ - u8 * r3 = &gArea; - u8 * r2; - u8 r0 = *(u8 *)(r3 + 0x19); - u8 r1; - - if (!r0) { - *(r3 + 0x18) = r0; - *(r3 + 0x19) = r0; - r0 = 0; - } - else { - r2 = &gUnk_03001000; - r1 = 0; - r0 = 4; - *(r2 + 0x4) = r0; - *(r3 + 0xe) = r1; - *(r3 + 0xf) = r1; - *(u16*)(r3 + 0x10) = r1; - sub_0805E5A8(); - r0 = 1; - } - return r0; -} */ - -// void sub_0804AA9C() { From 29fd48cc22c962c4c9c5dcaeb5090d94680ad17d Mon Sep 17 00:00:00 2001 From: theo3 Date: Thu, 16 Jul 2020 21:03:49 -0700 Subject: [PATCH 044/158] item.c --- asm/code_08076C80.s | 139 ---------------------------------------- include/greatFairy.h | 14 ---- include/link.h | 1 + linker.ld | 1 + src/item.c | 101 +++++++++++++++++++++++++++++ src/npc/cow.c | 6 +- src/object/greatFairy.c | 71 +++++++++----------- src/ocarina.c | 55 ---------------- 8 files changed, 136 insertions(+), 252 deletions(-) delete mode 100644 src/ocarina.c diff --git a/asm/code_08076C80.s b/asm/code_08076C80.s index c2d420b3..d564bc2d 100644 --- a/asm/code_08076C80.s +++ b/asm/code_08076C80.s @@ -6,145 +6,6 @@ .text - thumb_func_start PacciCane -PacciCane: @ 0x08076C80 - push {lr} - ldr r3, _08076C94 @ =gUnk_0811BDE0 - ldrb r2, [r0, #4] - lsls r2, r2, #2 - adds r2, r2, r3 - ldr r2, [r2] - bl _call_via_r2 - pop {pc} - .align 2, 0 -_08076C94: .4byte gUnk_0811BDE0 - - thumb_func_start sub_08076C98 -sub_08076C98: @ 0x08076C98 - push {r4, lr} - adds r4, r0, #0 - ldrb r2, [r4, #9] - movs r0, #0xf - orrs r0, r2 - strb r0, [r4, #9] - adds r0, r4, #0 - bl sub_08077D38 - ldr r0, _08076CB8 @ =gLinkEntity - bl sub_0806F948 - adds r0, r4, #0 - bl sub_08077BB8 - pop {r4, pc} - .align 2, 0 -_08076CB8: .4byte gLinkEntity - - thumb_func_start sub_08076CBC -sub_08076CBC: @ 0x08076CBC - push {r4, lr} - adds r4, r0, #0 - ldrb r2, [r4, #0xe] - movs r0, #0x80 - ands r0, r2 - cmp r0, #0 - beq _08076CD2 - adds r0, r4, #0 - bl sub_08077E78 - b _08076CE8 -_08076CD2: - movs r0, #0x40 - ands r0, r2 - cmp r0, #0 - beq _08076CE2 - adds r0, r4, #0 - movs r1, #0x12 - bl CreatePlayerBomb -_08076CE2: - adds r0, r4, #0 - bl UpdateItemAnim -_08076CE8: - pop {r4, pc} - .align 2, 0 - - thumb_func_start Shield -Shield: @ 0x08076CEC - push {lr} - ldr r3, _08076D00 @ =gUnk_0811BDE8 - ldrb r2, [r0, #4] - lsls r2, r2, #2 - adds r2, r2, r3 - ldr r2, [r2] - bl _call_via_r2 - pop {pc} - .align 2, 0 -_08076D00: .4byte gUnk_0811BDE8 - - thumb_func_start sub_08076D04 -sub_08076D04: @ 0x08076D04 - push {r4, r5, lr} - adds r4, r0, #0 - adds r5, r1, #0 - ldr r1, _08076D2C @ =gLinkState - movs r0, #0x81 - strb r0, [r1, #3] - movs r0, #2 - strb r0, [r4, #9] - ldr r0, _08076D30 @ =gLinkEntity - bl sub_0806F948 - adds r0, r4, #0 - adds r1, r5, #0 - bl sub_08077D38 - adds r0, r4, #0 - bl sub_08077BB8 - pop {r4, r5, pc} - .align 2, 0 -_08076D2C: .4byte gLinkState -_08076D30: .4byte gLinkEntity - - thumb_func_start sub_08076D34 -sub_08076D34: @ 0x08076D34 - push {r4, r5, r6, lr} - adds r4, r0, #0 - adds r6, r1, #0 - bl sub_08077EFC - adds r1, r0, #0 - cmp r1, #0 - beq _08076D80 - ldr r5, _08076D78 @ =gLinkState - ldrb r0, [r5, #3] - movs r1, #1 - orrs r1, r0 - strb r1, [r5, #3] - adds r0, r4, #0 - bl UpdateItemAnim - ldrb r0, [r4, #0xe] - cmp r0, #0 - beq _08076D8C - ldrb r0, [r4, #4] - adds r0, #1 - strb r0, [r4, #4] - movs r0, #0 - strb r0, [r4, #0xf] - movs r1, #8 - asrs r1, r6 - ldrb r0, [r5, #0xa] - bics r0, r1 - strb r0, [r5, #0xa] - ldr r0, _08076D7C @ =0x0000015D - bl PlaySFX - b _08076D8C - .align 2, 0 -_08076D78: .4byte gLinkState -_08076D7C: .4byte 0x0000015D -_08076D80: - ldr r0, _08076D90 @ =gLinkState - strb r1, [r0, #3] - adds r0, r4, #0 - adds r1, r6, #0 - bl sub_08077E78 -_08076D8C: - pop {r4, r5, r6, pc} - .align 2, 0 -_08076D90: .4byte gLinkState - thumb_func_start sub_08076D94 sub_08076D94: @ 0x08076D94 push {r4, r5, lr} diff --git a/include/greatFairy.h b/include/greatFairy.h index 6c2654e3..1a65fd1c 100644 --- a/include/greatFairy.h +++ b/include/greatFairy.h @@ -19,20 +19,6 @@ extern void sub_080045D4(); extern void sub_0806F69C(); extern u32 Random(); - -enum { - BEHAVIORS, - WINGS, - WAKE, - MINI, - MINIAFFINE, - DROPLET, - RIPPLE, - BIGRIPPLE, - FORM8, - FORM9, -}; - extern void (*const GreatFairy_Main[])(Entity*); extern void (*const GreatFairy_Behaviors[])(Entity*); extern void (*const GreatFairy_WingsBehaviors[])(Entity*); diff --git a/include/link.h b/include/link.h index d9e6b0bb..45acee75 100644 --- a/include/link.h +++ b/include/link.h @@ -82,6 +82,7 @@ typedef struct { /*0x2*/ u8 field_0x2[2]; /*0x4*/ u8 stateID; /*0x5*/ u8 field_0x5[10]; + /*0xf*/ u8 field_0xf; } ItemBehavior; extern u8 gBombBagSizes[]; diff --git a/linker.ld b/linker.ld index d0dc2328..bae7d5ec 100644 --- a/linker.ld +++ b/linker.ld @@ -641,6 +641,7 @@ SECTIONS { asm/stairsInteract.o(.text); asm/code_080732D0.o(.text); asm/ocarina.o(.text); + src/item.o(.text); asm/code_08076C80.o(.text); asm/respawnLink.o(.text); src/code_08077B98.o(.text); diff --git a/src/item.c b/src/item.c index b0386445..607a7d83 100644 --- a/src/item.c +++ b/src/item.c @@ -38,3 +38,104 @@ void (*const gItemFunctions[])(ItemBehavior*, u32) = { JarEmpty, JarEmpty, }; + +extern void sub_08077E78(ItemBehavior*, u32); +extern void PlaySFX(u32); +extern void sub_08078F60(void); +extern void sub_08077D38(ItemBehavior*, u32); +extern void sub_0805E544(void); +extern void UpdateItemAnim(ItemBehavior*); +extern void CreateBird(void); +extern void UnfreezeTime(void); +extern void sub_0806F948(Entity*); +extern void sub_08077BB8(ItemBehavior*); +extern void CreatePlayerBomb(ItemBehavior*, u32); +extern u32 sub_08077EFC(); + +extern void (*const gUnk_0811BDE0[])(ItemBehavior* beh, u32); +extern void (*const gUnk_0811BDE8[])(ItemBehavior* beh, u32); +extern void (*const gOcarinaStates[4])(ItemBehavior*, u32); + +extern u8 gUnk_02034490; +#if 0 +void Ocarina(ItemBehavior* beh, u32 inputFlags) { + gOcarinaStates[beh->stateID](beh, inputFlags); + gLinkEntity.field_0x7a++; +} + +void OcarinaUse(ItemBehavior *beh, u32 arg1) +{ + u32 bVar1; + + if (gLinkState.linkAction == 0x18) { + LinkChangeState(beh, arg1); + } + else { + beh->field_0x5[4] = beh->field_0x5[4] | 0xf; + gLinkEntity.animationState = 4; + gLinkEntity.spriteSettings.b.flipX = 0; + gLinkEntity.flags &= 0x7f; + gLinkEntity.field_0x7a = 2; + gLinkState.flags.all |= 0x10000000; + gLinkState.field_0x27[0] = 0xff; + gUnk_02034490 = 1; + bVar1 = (8 >> arg1); + gLinkState.field_0xa |= bVar1; + gLinkState.keepFacing |= bVar1; + sub_08078F60(); + sub_08077D38(beh, arg1); + PlaySFX(0x216); + sub_0805E544(); + } +} +#endif + +void PacciCane(ItemBehavior* beh, u32 arg1) { + gUnk_0811BDE0[beh->stateID](beh, arg1); +} + +void sub_08076C98(ItemBehavior* beh, u32 arg1) { + beh->field_0x5[4] |= 0xf; + sub_08077D38(beh, arg1); + sub_0806F948(&gLinkEntity); + sub_08077BB8(beh); +} + +void sub_08076CBC(ItemBehavior* beh, u32 arg1) { + if ((beh->field_0x5[9] & 0x80) != 0) { + sub_08077E78(beh, arg1); + } else { + if ((beh->field_0x5[9] & 0x40) != 0) { + CreatePlayerBomb(beh, 0x12); + } + UpdateItemAnim(beh); + } +} + +void Shield(ItemBehavior* beh, u32 arg1) { + gUnk_0811BDE8[beh->stateID](beh, arg1); +} + +void sub_08076D04(ItemBehavior* beh, u32 arg1) { + gLinkState.field_0x3[0] = 0x81; + beh->field_0x5[4] = 2; + sub_0806F948(&gLinkEntity); + sub_08077D38(beh, arg1); + sub_08077BB8(beh); +} + +void sub_08076D34(ItemBehavior* beh, u32 arg1) { + if (sub_08077EFC() != 0) { + gLinkState.field_0x3[0] |= 1; + UpdateItemAnim(beh); + if (beh->field_0x5[9] != 0) { + beh->stateID++; + beh->field_0xf = 0; + gLinkState.field_0xa &= ~(u8)(8 >> arg1); + PlaySFX(0x15d); + } + } else { + gLinkState.field_0x3[0] = 0; + sub_08077E78(beh, arg1); + } +} \ No newline at end of file diff --git a/src/npc/cow.c b/src/npc/cow.c index 633334b1..e9df0918 100644 --- a/src/npc/cow.c +++ b/src/npc/cow.c @@ -183,7 +183,7 @@ void sub_080691E0(Entity* ent) { } // Show dialogue -void sub_080691F8(Entity* ent) { +void Cow_ShowDialogue(Entity* ent) { u32 var0 = ent->entityType.form; u32* var1 = gUnk_08111938 + (var0 * 2); ShowNPCDialogue(ent, var1); @@ -215,10 +215,10 @@ void sub_0806924C(Entity* ent) { ent->action = 4; sub_0806F118(ent); } else { - sub_080691F8(ent); + Cow_ShowDialogue(ent); } } else { - sub_080691F8(ent); + Cow_ShowDialogue(ent); sub_080791D0(); } PlaySFX(212); diff --git a/src/object/greatFairy.c b/src/object/greatFairy.c index 2f3276b9..21edd60f 100644 --- a/src/object/greatFairy.c +++ b/src/object/greatFairy.c @@ -4,6 +4,19 @@ #include "screen.h" #include "greatFairy.h" +enum { + BEHAVIORS, + WINGS, + WAKE, + MINI, + MINIAFFINE, + DROPLET, + RIPPLE, + BIGRIPPLE, + FORM8, + FORM9, +}; + // Main void GreatFairy(Entity* this) { u8 bVar1; @@ -36,7 +49,6 @@ void GreatFairy_Init(Entity* this) { this->cutsceneBeh.HWORD = 290; } -// TODO: turn this into a switch statement void GreatFairy_DormantUpdate(Entity* this) { u16* pFrame; // r1@2 s32 frame; // r1@4 @@ -48,47 +60,24 @@ void GreatFairy_DormantUpdate(Entity* this) { if (*pFrame != 0) { --*pFrame; } - frame = *pFrame; - - if (frame == 0x96) { - goto LABEL_16; - } - - if (frame < 0x97) { - if (frame != 0) { - if (frame == 0x82) { - goto LABEL_16; - } else { - return; - } - } - goto LABEL_17; - } else { - if (frame == 0xd2) { - goto LABEL_16; - } - if (frame < 0xd3) { - if (frame == 0xaa) { - goto LABEL_16; - } else - return; - } - if (frame == 289) { - goto LABEL_16; - } else { - return; - } - } - -LABEL_17: - this->action = 2; - return; -LABEL_16: - ripple = GreatFairy_CreateForm(this, RIPPLE, 0); - if (ripple) { - PositionRelative(this, ripple, (s32)GreatFairy_RippleOffsets[this->actionDelay] << 16, + switch (*pFrame) { + case 0x96: + case 0x82: + goto e; + case 0x0: + this->action = 2; + break; +e: + case 0xd2: + case 0xaa: + case 0x121: + ripple = GreatFairy_CreateForm(this, RIPPLE, 0); + if (ripple) { + PositionRelative(this, ripple, (s32)GreatFairy_RippleOffsets[this->actionDelay] << 16, (s32)GreatFairy_RippleOffsets[this->actionDelay + 1] << 16); - this->actionDelay += 2; + this->actionDelay += 2; + break; + } } } diff --git a/src/ocarina.c b/src/ocarina.c deleted file mode 100644 index 326e4c0d..00000000 --- a/src/ocarina.c +++ /dev/null @@ -1,55 +0,0 @@ -#include "global.h" -#include "item.h" -#include "entity.h" -#include "link.h" - -extern void _call_via_r2(); -extern void sub_08077E78(ItemBehavior*, u32); -extern void PlaySFX(u32); -extern void sub_08078F60(void); -extern void sub_08077D38(ItemBehavior*, u32); -extern void sub_0805E544(void); -extern void UpdateItemAnim(ItemBehavior*); -extern void CreateBird(void); -extern void UnfreezeTime(void); - -extern Entity gLinkEntity; -extern LinkState gLinkState; -extern void (*gOcarinaStates[4])(ItemBehavior*, u32); -extern u8 gUnk_02034490; - -void Ocarina(ItemBehavior* pItemBeh, u32 inputFlags) - -{ - // u32 *ocarinaStates = &gOcarinaStates; - //_call_via_r2(pItemBeh, inputFlags,(ocarinaStates)[pItemBeh->stateID]); - gOcarinaStates[pItemBeh->stateID](pItemBeh, inputFlags); - gLinkEntity.field_0x7a = gLinkEntity.field_0x7a + 1; -} - -void OcarinaUse(ItemBehavior* itemBeh, s32 inputFlags) { - u32 bVar1; - u32 var; - - if (gLinkState.linkAction == 24) { - sub_08077E78(itemBeh, inputFlags); - } else { - itemBeh->field_0x5[4] |= 15; - gLinkEntity.animationState = 4; - var = gLinkEntity.spriteSettings.raw & ~0x40; - gLinkEntity.spriteSettings.raw &= var; - - gLinkEntity.flags &= 127; - gLinkEntity.field_0x7a = 2; - gLinkState.flags.all |= 0x10000000; - gLinkState.field_0x27[0] = 255; - gUnk_02034490 = 1; - bVar1 = (8 >> inputFlags); - gLinkState.field_0xa |= bVar1; - gLinkState.keepFacing |= bVar1; - sub_08078F60(); - sub_08077D38(itemBeh, inputFlags); - PlaySFX(534); - sub_0805E544(); - } -} From ad9681d24d16b1ced4c15dcad6296ce246d4e366 Mon Sep 17 00:00:00 2001 From: notyouraveragehooman <65437533+notyouraveragehooman@users.noreply.github.com> Date: Thu, 16 Jul 2020 21:24:20 -0700 Subject: [PATCH 045/158] Update README.md --- README.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/README.md b/README.md index 5dbb8a4e..f8ea57d6 100644 --- a/README.md +++ b/README.md @@ -1,5 +1,7 @@ # The Legend of Zelda: The Minish Cap +**Progress:** [⬛⬜⬜⬜⬜⬜⬜⬜⬜⬜⬜⬜⬜⬜⬜⬜⬜⬜⬜⬜] 5% + ```diff - WARNING! - From 2f74406e92eb6a183f29d8d5e800ddd3dc695938 Mon Sep 17 00:00:00 2001 From: dark-samus Date: Fri, 17 Jul 2020 03:52:56 -0400 Subject: [PATCH 046/158] standardize makefile a bit --- Makefile | 18 +++++++----------- 1 file changed, 7 insertions(+), 11 deletions(-) diff --git a/Makefile b/Makefile index 90bf1ca4..ed71b35f 100644 --- a/Makefile +++ b/Makefile @@ -110,28 +110,24 @@ TOOLDIRS := $(filter-out tools/agbcc tools/binutils,$(wildcard tools/*)) TOOLBASE = $(TOOLDIRS:tools/%=%) TOOLS = $(foreach tool,$(TOOLBASE),tools/$(tool)/$(tool)$(EXE)) -.PHONY: all rom tools clean-tools mostlyclean clean compare tidy $(TOOLDIRS) +.PHONY: all setup clean-tools mostlyclean clean tidy $(TOOLDIRS) MAKEFLAGS += --no-print-directory AUTO_GEN_TARGETS := -all: tools rom - -rom: $(ROM) -ifeq ($(COMPARE),1) +all: $(ROM) @$(SHA1) tmc.sha1 -endif -tools: $(TOOLDIRS) +# kept for backwards compat +compare: $(ROM) + @$(SHA1) tmc.sha1 + +setup: $(TOOLDIRS) $(TOOLDIRS): @$(MAKE) -C $@ -# For contributors to make sure a change didn't affect the contents of the ROM. -compare: - @$(MAKE) COMPARE=1 - mostlyclean: tidy rm -f sound/direct_sound_samples/*.bin rm -f $(SONG_OBJS) $(MID_SUBDIR)/*.s From a2641a5ef7f24b1b74c9f03bc9512a1a38ebe477 Mon Sep 17 00:00:00 2001 From: dark-samus Date: Fri, 17 Jul 2020 03:58:05 -0400 Subject: [PATCH 047/158] modify INSTALL.md to reflect Makefile changes --- INSTALL.md | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/INSTALL.md b/INSTALL.md index 50691c11..ad4f2697 100644 --- a/INSTALL.md +++ b/INSTALL.md @@ -37,15 +37,12 @@ To set up the repository: sh install.sh ../tmc cd ../tmc + make tools To build **tmc.gba**: make -j$(nproc) -To confirm it matches the official ROM image while building, do this instead: - - make compare -j$(nproc) - If only `.c` or `.s` files were changed, turn off the dependency scanning temporarily. Changes to any other files will be ignored and the build will either fail or not reflect those changes. make -j$(nproc) NODEP=1 From db02fad00a9ad09227ee3f4d01c4eddf0765a54a Mon Sep 17 00:00:00 2001 From: theo3 Date: Fri, 17 Jul 2020 16:46:47 -0700 Subject: [PATCH 048/158] item.c --- asm/code_08076C80.s | 48 --------------------------------------------- src/item.c | 21 +++++++++++++++++++- 2 files changed, 20 insertions(+), 49 deletions(-) diff --git a/asm/code_08076C80.s b/asm/code_08076C80.s index d564bc2d..cf1c87bf 100644 --- a/asm/code_08076C80.s +++ b/asm/code_08076C80.s @@ -6,54 +6,6 @@ .text - thumb_func_start sub_08076D94 -sub_08076D94: @ 0x08076D94 - push {r4, r5, lr} - adds r4, r0, #0 - adds r5, r1, #0 - bl sub_08077EFC - adds r1, r0, #0 - cmp r1, #0 - beq _08076DBC - ldr r2, _08076DB8 @ =gLinkState - ldrb r1, [r2, #3] - movs r0, #1 - orrs r0, r1 - strb r0, [r2, #3] - adds r0, r4, #0 - bl UpdateItemAnim - b _08076DC8 - .align 2, 0 -_08076DB8: .4byte gLinkState -_08076DBC: - ldr r0, _08076DCC @ =gLinkState - strb r1, [r0, #3] - adds r0, r4, #0 - adds r1, r5, #0 - bl sub_08077E78 -_08076DC8: - pop {r4, r5, pc} - .align 2, 0 -_08076DCC: .4byte gLinkState - - thumb_func_start GustJar -GustJar: @ 0x08076DD0 - push {lr} - ldr r2, _08076DEC @ =gLinkState - adds r2, #0xa8 - movs r3, #3 - strb r3, [r2] - ldr r3, _08076DF0 @ =gUnk_0811BDF4 - ldrb r2, [r0, #4] - lsls r2, r2, #2 - adds r2, r2, r3 - ldr r2, [r2] - bl _call_via_r2 - pop {pc} - .align 2, 0 -_08076DEC: .4byte gLinkState -_08076DF0: .4byte gUnk_0811BDF4 - thumb_func_start sub_08076DF4 sub_08076DF4: @ 0x08076DF4 push {r4, r5, r6, r7, lr} diff --git a/src/item.c b/src/item.c index 607a7d83..b757fa6c 100644 --- a/src/item.c +++ b/src/item.c @@ -52,9 +52,10 @@ extern void sub_08077BB8(ItemBehavior*); extern void CreatePlayerBomb(ItemBehavior*, u32); extern u32 sub_08077EFC(); +extern void (*const gOcarinaStates[4])(ItemBehavior*, u32); extern void (*const gUnk_0811BDE0[])(ItemBehavior* beh, u32); extern void (*const gUnk_0811BDE8[])(ItemBehavior* beh, u32); -extern void (*const gOcarinaStates[4])(ItemBehavior*, u32); +extern void (*const gUnk_0811BDF4[])(ItemBehavior* beh, u32); extern u8 gUnk_02034490; #if 0 @@ -138,4 +139,22 @@ void sub_08076D34(ItemBehavior* beh, u32 arg1) { gLinkState.field_0x3[0] = 0; sub_08077E78(beh, arg1); } +} + +void sub_08076D94(ItemBehavior *beh, u32 arg1) +{ + if (sub_08077EFC(beh)) { + gLinkState.field_0x3[0] |= 1; + UpdateItemAnim(beh); + } + else { + gLinkState.field_0x3[0] = 0; + sub_08077E78(beh, arg1); + } +} + +void GustJar(ItemBehavior *beh, u32 arg1) +{ + gLinkState.field_0xa8[0] = 3; + gUnk_0811BDF4[beh->stateID](beh, arg1); } \ No newline at end of file From 6328c148d25bc52775d1e45362dd3cf7af768e8a Mon Sep 17 00:00:00 2001 From: theo3 Date: Fri, 17 Jul 2020 19:00:04 -0700 Subject: [PATCH 049/158] loadRoom.c --- asm/code_0801D79C.s | 4 +- asm/code_0804B058.s | 118 -------------------------------------------- asm/code_08050038.s | 2 +- asm/code_080526F8.s | 8 +-- asm/code_0805436C.s | 2 +- asm/code_080A5574.s | 16 ------ include/functions.h | 1 + src/loadRoom.c | 96 +++++++++++++++++++++++++++++------ src/sub_080A554C.c | 28 ++++++----- 9 files changed, 107 insertions(+), 168 deletions(-) diff --git a/asm/code_0801D79C.s b/asm/code_0801D79C.s index 3d2409d6..297a0689 100644 --- a/asm/code_0801D79C.s +++ b/asm/code_0801D79C.s @@ -592,7 +592,7 @@ _0801DBF0: ldrb r0, [r6] ldrb r1, [r6, #1] movs r2, #3 - bl sub_0804B0FC + bl GetRoomProperty adds r4, r0, #0 cmp r4, #0 bne _0801DC04 @@ -845,7 +845,7 @@ _0801DDE4: ldrb r0, [r4] ldrb r1, [r4, #1] movs r2, #3 - bl sub_0804B0FC + bl GetRoomProperty adds r6, r0, #0 adds r0, r4, #0 bl sub_0801DF10 diff --git a/asm/code_0804B058.s b/asm/code_0804B058.s index 9df89063..47f54006 100644 --- a/asm/code_0804B058.s +++ b/asm/code_0804B058.s @@ -2,124 +2,6 @@ .text .syntax unified - thumb_func_start sub_0804B058 -sub_0804B058: @ 0x0804B058 - push {r4, r5, lr} - adds r4, r0, #0 - cmp r4, #0 - beq _0804B0AE - ldrb r0, [r4] - cmp r0, #0xff - beq _0804B0AE - movs r5, #0 -_0804B068: - cmp r5, #0x1f - bhi _0804B09E - ldrb r1, [r4] - movs r0, #0xf - ands r0, r1 - cmp r0, #3 - bne _0804B09E - adds r0, r5, #0 - bl sub_08049D1C - cmp r0, #0 - beq _0804B0A4 - adds r0, r4, #0 - bl CreateEntity - adds r2, r0, #0 - cmp r2, #0 - beq _0804B0A4 - ldrb r0, [r2, #8] - cmp r0, #3 - bne _0804B0A4 - movs r0, #0x80 - adds r2, #0x6c - adds r1, r5, #0 - orrs r1, r0 - strb r1, [r2] - b _0804B0A4 -_0804B09E: - adds r0, r4, #0 - bl CreateEntity -_0804B0A4: - adds r5, #1 - adds r4, #0x10 - ldrb r0, [r4] - cmp r0, #0xff - bne _0804B068 -_0804B0AE: - pop {r4, r5, pc} - - thumb_func_start sub_0804B0B0 -sub_0804B0B0: @ 0x0804B0B0 - push {lr} - movs r2, #1 - bl sub_0804B0FC - bl LoadRoomEntityList - pop {pc} - .align 2, 0 - - thumb_func_start sub_0804B0C0 -sub_0804B0C0: @ 0x0804B0C0 - push {lr} - adds r2, r1, #0 - ldr r3, _0804B0E0 @ =gUnk_02017654 - movs r1, #0 - str r1, [r3] - ldr r1, _0804B0E4 @ =gUnk_080D50FC - lsls r0, r0, #2 - adds r0, r0, r1 - ldr r1, [r0] - cmp r1, #0 - beq _0804B0DE - lsls r0, r2, #2 - adds r0, r0, r1 - ldr r0, [r0] - str r0, [r3] -_0804B0DE: - pop {pc} - .align 2, 0 -_0804B0E0: .4byte gUnk_02017654 -_0804B0E4: .4byte gUnk_080D50FC - - thumb_func_start sub_0804B0E8 -sub_0804B0E8: @ 0x0804B0E8 - push {lr} - movs r2, #4 - bl sub_0804B0FC - cmp r0, #0 - beq _0804B0F8 - bl _call_via_r0 -_0804B0F8: - pop {pc} - .align 2, 0 - - thumb_func_start sub_0804B0FC -sub_0804B0FC: @ 0x0804B0FC - push {r4, lr} - adds r3, r1, #0 - adds r4, r2, #0 - movs r2, #0 - ldr r1, _0804B124 @ =gUnk_080D50FC - lsls r0, r0, #2 - adds r0, r0, r1 - ldr r1, [r0] - cmp r1, #0 - beq _0804B120 - lsls r0, r3, #2 - adds r0, r0, r1 - ldr r2, [r0] - cmp r2, #0 - beq _0804B120 - lsls r0, r4, #2 - adds r0, r0, r2 - ldr r2, [r0] -_0804B120: - adds r0, r2, #0 - pop {r4, pc} - .align 2, 0 -_0804B124: .4byte gUnk_080D50FC - thumb_func_start GetCurrentRoomProperty GetCurrentRoomProperty: @ 0x0804B128 push {lr} diff --git a/asm/code_08050038.s b/asm/code_08050038.s index e092fda6..880da10c 100644 --- a/asm/code_08050038.s +++ b/asm/code_08050038.s @@ -3807,7 +3807,7 @@ sub_08051E84: @ 0x08051E84 strh r0, [r1, #4] ldrb r0, [r4] ldrb r1, [r4, #1] - bl sub_0804B0C0 + bl SetCurrentRoomPropertyList ldrb r0, [r4] ldrb r1, [r4, #1] bl sub_08052FD8 diff --git a/asm/code_080526F8.s b/asm/code_080526F8.s index 656e04d5..43807c93 100644 --- a/asm/code_080526F8.s +++ b/asm/code_080526F8.s @@ -2815,12 +2815,12 @@ sub_08053CC8: @ 0x08053CC8 ldrb r0, [r4, #4] ldrb r1, [r4, #5] movs r2, #1 - bl sub_0804B0FC + bl GetRoomProperty bl LoadRoomEntityList ldrb r0, [r4, #4] ldrb r1, [r4, #5] movs r2, #2 - bl sub_0804B0FC + bl GetRoomProperty bl LoadRoomEntityList movs r5, #1 strb r5, [r6, #6] @@ -2946,12 +2946,12 @@ sub_08053DB4: @ 0x08053DB4 ldrb r0, [r4, #4] ldrb r1, [r4, #5] movs r2, #1 - bl sub_0804B0FC + bl GetRoomProperty bl LoadRoomEntityList ldrb r0, [r4, #4] ldrb r1, [r4, #5] movs r2, #2 - bl sub_0804B0FC + bl GetRoomProperty bl LoadRoomEntityList movs r0, #0x78 strh r0, [r5, #8] diff --git a/asm/code_0805436C.s b/asm/code_0805436C.s index 34e36be2..0d6f007f 100644 --- a/asm/code_0805436C.s +++ b/asm/code_0805436C.s @@ -123,7 +123,7 @@ sub_08054974: @ 0x08054974 adds r6, r1, r0 ldrb r0, [r6, #2] ldrb r1, [r6, #3] - bl sub_0804B0C0 + bl SetCurrentRoomPropertyList ldr r4, _080549B4 @ =gRoomControls ldrb r0, [r6, #2] strb r0, [r4, #4] diff --git a/asm/code_080A5574.s b/asm/code_080A5574.s index 52f0cba2..ac9fe0fd 100644 --- a/asm/code_080A5574.s +++ b/asm/code_080A5574.s @@ -5,22 +5,6 @@ .syntax unified .text - - thumb_func_start sub_080A5574 -sub_080A5574: @ 0x080A5574 - push {lr} - ldr r1, _080A558C @ =gUnk_08128BF8 - ldr r0, _080A5590 @ =gMenu - ldrb r0, [r0, #5] - lsls r0, r0, #2 - adds r0, r0, r1 - ldr r0, [r0] - bl _call_via_r0 - bl sub_080A57F4 - pop {pc} - .align 2, 0 -_080A558C: .4byte gUnk_08128BF8 -_080A5590: .4byte gMenu thumb_func_start sub_080A5594 sub_080A5594: @ 0x080A5594 diff --git a/include/functions.h b/include/functions.h index 7f5e2577..1694c6ac 100644 --- a/include/functions.h +++ b/include/functions.h @@ -105,4 +105,5 @@ extern void sub_080AD9B0(void); extern void sub_080AD918(void); extern void sub_0801E104(void); extern void MenuFadeIn(u32, u32); +extern void sub_080A57F4(void); #endif diff --git a/src/loadRoom.c b/src/loadRoom.c index c429264b..27946eb8 100644 --- a/src/loadRoom.c +++ b/src/loadRoom.c @@ -1,27 +1,93 @@ #include "global.h" -/* called when loading any room */ +#include "room.h" -void LoadRoomEntityList(); +void LoadRoomEntityList(EntityData* dat); s32 CheckGlobalFlag(u32 flag); -extern s32* GetCurrentRoomProperty(u8 unk); -extern void sub_0804B058(s32* unk); -extern void sub_0804B1AC(); +extern EntityData* GetCurrentRoomProperty(u32 unk); +extern void sub_0804B058(EntityData* dat); +extern void sub_0804B1AC(EntityData* dat); extern void sub_0801AC98(); +extern u32 sub_08049D1C(u32); +extern Entity* CreateEntity(EntityData*); +extern void* GetRoomProperty(u32, u32, u32); -void LoadRoom(void) - -{ +extern u32 gUnk_02017654; +extern u32* gUnk_080D50FC; +void LoadRoom(void) { s32 iVar1; s32* dat; - GetCurrentRoomProperty(1); - LoadRoomEntityList(); - GetCurrentRoomProperty(0); - LoadRoomEntityList(); + LoadRoomEntityList(GetCurrentRoomProperty(1)); + LoadRoomEntityList(GetCurrentRoomProperty(0)); - if (CheckGlobalFlag(21)) sub_0804B058(GetCurrentRoomProperty(2)); - GetCurrentRoomProperty(3); - sub_0804B1AC(); + if (CheckGlobalFlag(21)) + sub_0804B058(GetCurrentRoomProperty(2)); + + sub_0804B1AC(GetCurrentRoomProperty(3)); sub_0801AC98(); } + +void sub_0804B058(EntityData* dat) { + Entity* ent; + u32 uVar2; + + if ((dat != NULL) && (dat->entityType != 0xff)) { + uVar2 = 0; + do { + if ((uVar2 < 0x20) && ((dat->entityType & 0xf) == 3)) { + if (sub_08049D1C(uVar2) != 0) { + ent = CreateEntity(dat); + if ((ent != NULL) && ((ent->entityType).type == 3)) { + ent->field_0x6c = uVar2 | 0x80; + } + } + } else { + CreateEntity(dat); + } + uVar2++; + dat++; + } while (dat->entityType != 0xff); + } +} + +void sub_0804B0B0(u32 arg0, u32 arg1) +{ + LoadRoomEntityList(GetRoomProperty(arg0, arg1, 1)); +} + +void SetCurrentRoomPropertyList(u32 arg0, u32 arg1) +{ + u32** arr; + gUnk_02017654 = 0; + arr = &gUnk_080D50FC; + if (arr[arg0] != 0) { + gUnk_02017654 = arr[arg0][arg1]; + } +} + +void sub_0804B0E8(u32 arg0, u32 arg1) +{ + void (* func)(); + + func = (void (*)())GetRoomProperty(arg0, arg1, 4); + if (func != NULL) { + func(); + } +} + +// returns multiple types of data? +void* GetRoomProperty(u32 arg0, u32 arg1, u32 arg2) +{ + u32 temp; + u32** arr; + temp = 0; + arr = &gUnk_080D50FC; + if (arr[arg0] != NULL) { + temp = arr[arg0][arg1]; + if (temp != 0) { + temp = *(u32 *)(arg2 * 4 + temp); + } + } + return (void*)temp; +} \ No newline at end of file diff --git a/src/sub_080A554C.c b/src/sub_080A554C.c index d28668ce..5fb0db17 100644 --- a/src/sub_080A554C.c +++ b/src/sub_080A554C.c @@ -1,20 +1,26 @@ #include "global.h" +#include "menu.h" +#include "functions.h" + +extern void (*const gUnk_08128BF8[])(void); extern u8 gUnk_02000090; -u32 sub_080A554C(u32 param_1) - +u32 sub_080A554C(u32 arg0) { - u32 uVar1; + u32 i; - if (param_1 != 0) { - uVar1 = 0; - do { - if (param_1 == (&gUnk_02000090)[uVar1]) { - return uVar1; - } - uVar1 = uVar1 + 1; - } while (uVar1 < 17); + if (arg0 != 0) { + for (i = 0; i < 17; i++) { + if (arg0 == (&gUnk_02000090)[i]) + return i; + } } return 17; } + +void sub_080A5574(void) +{ + gUnk_08128BF8[gMenu.secret](); + sub_080A57F4(); +} \ No newline at end of file From cf132572ac7772e909e3627ed513dccf13d1269e Mon Sep 17 00:00:00 2001 From: theo3 Date: Sat, 18 Jul 2020 01:06:00 -0700 Subject: [PATCH 050/158] room entity funcs partially decomped --- asm/code_0804B058.s | 800 -------------------------------------------- include/functions.h | 6 + include/room.h | 2 + linker.ld | 3 +- src/code_0808091C.c | 50 +++ src/room.c | 492 +++++++++++++++++++++++++-- 6 files changed, 518 insertions(+), 835 deletions(-) create mode 100644 src/code_0808091C.c diff --git a/asm/code_0804B058.s b/asm/code_0804B058.s index 47f54006..7f31151d 100644 --- a/asm/code_0804B058.s +++ b/asm/code_0804B058.s @@ -350,803 +350,3 @@ _0804B3BA: rsbs r0, r0, #0 bl sub_080526F8 pop {r4, r5, pc} - - thumb_func_start sub_0804B3C4 -sub_0804B3C4: @ 0x0804B3C4 - push {lr} - bl sub_0804B29C - pop {pc} - - thumb_func_start sub_0804B3CC -sub_0804B3CC: @ 0x0804B3CC - movs r0, #1 - bx lr - - thumb_func_start sub_0804B3D0 -sub_0804B3D0: @ 0x0804B3D0 - push {lr} - movs r0, #0 - bl sub_08030118 - pop {pc} - .align 2, 0 - - thumb_func_start sub_0804B3DC -sub_0804B3DC: @ 0x0804B3DC - movs r0, #1 - bx lr - - thumb_func_start sub_0804B3E0 -sub_0804B3E0: @ 0x0804B3E0 - push {lr} - movs r0, #1 - bl sub_08030118 - pop {pc} - .align 2, 0 - - thumb_func_start sub_0804B3EC -sub_0804B3EC: @ 0x0804B3EC - movs r0, #1 - bx lr - - thumb_func_start sub_0804B3F0 -sub_0804B3F0: @ 0x0804B3F0 - push {lr} - movs r0, #2 - bl sub_08030118 - pop {pc} - .align 2, 0 - - thumb_func_start sub_0804B3FC -sub_0804B3FC: @ 0x0804B3FC - movs r0, #1 - bx lr - - thumb_func_start sub_0804B400 -sub_0804B400: @ 0x0804B400 - push {lr} - movs r0, #3 - bl sub_08030118 - pop {pc} - .align 2, 0 - - thumb_func_start sub_0804B40C -sub_0804B40C: @ 0x0804B40C - movs r0, #1 - bx lr - - thumb_func_start sub_0804B410 -sub_0804B410: @ 0x0804B410 - push {lr} - movs r0, #4 - bl sub_08030118 - pop {pc} - .align 2, 0 - - thumb_func_start sub_0804B41C -sub_0804B41C: @ 0x0804B41C - movs r0, #1 - bx lr - - thumb_func_start sub_0804B420 -sub_0804B420: @ 0x0804B420 - push {lr} - movs r0, #5 - bl sub_08030118 - pop {pc} - .align 2, 0 - - thumb_func_start sub_0804B42C -sub_0804B42C: @ 0x0804B42C - movs r0, #1 - bx lr - - thumb_func_start sub_0804B430 -sub_0804B430: @ 0x0804B430 - push {lr} - movs r0, #6 - bl sub_08030118 - pop {pc} - .align 2, 0 - - thumb_func_start sub_0804B43C -sub_0804B43C: @ 0x0804B43C - movs r0, #1 - bx lr - - thumb_func_start sub_0804B440 -sub_0804B440: @ 0x0804B440 - push {lr} - movs r0, #7 - bl sub_08030118 - pop {pc} - .align 2, 0 - - thumb_func_start sub_0804B44C -sub_0804B44C: @ 0x0804B44C - movs r0, #1 - bx lr - - thumb_func_start sub_0804B450 -sub_0804B450: @ 0x0804B450 - push {lr} - movs r0, #8 - bl sub_08030118 - pop {pc} - .align 2, 0 - - thumb_func_start sub_0804B45C -sub_0804B45C: @ 0x0804B45C - movs r0, #1 - bx lr - - thumb_func_start sub_0804B460 -sub_0804B460: @ 0x0804B460 - push {lr} - movs r0, #9 - bl sub_08030118 - ldr r0, _0804B474 @ =gArea - movs r1, #3 - strb r1, [r0, #3] - movs r1, #0x4e - strb r1, [r0] - pop {pc} - .align 2, 0 -_0804B474: .4byte gArea - - thumb_func_start sub_0804B478 -sub_0804B478: @ 0x0804B478 - movs r0, #1 - bx lr - - thumb_func_start sub_0804B47C -sub_0804B47C: @ 0x0804B47C - push {lr} - movs r0, #0xa - bl sub_08030118 - ldr r0, _0804B490 @ =gArea - movs r1, #3 - strb r1, [r0, #3] - movs r1, #0x4e - strb r1, [r0] - pop {pc} - .align 2, 0 -_0804B490: .4byte gArea - - thumb_func_start sub_0804B494 -sub_0804B494: @ 0x0804B494 - movs r0, #1 - bx lr - - thumb_func_start sub_0804B498 -sub_0804B498: @ 0x0804B498 - push {lr} - movs r0, #0x23 - bl sub_080575C8 - bl sub_08057688 - pop {pc} - .align 2, 0 - - thumb_func_start sub_0804B4A8 -sub_0804B4A8: @ 0x0804B4A8 - movs r0, #1 - bx lr - - thumb_func_start sub_0804B4AC -sub_0804B4AC: @ 0x0804B4AC - push {lr} - movs r0, #0x23 - bl sub_080575C8 - pop {pc} - .align 2, 0 - - thumb_func_start sub_0804B4B8 -sub_0804B4B8: @ 0x0804B4B8 - push {lr} - movs r0, #0x23 - bl sub_080575C8 - pop {pc} - .align 2, 0 - - thumb_func_start sub_0804B4C4 -sub_0804B4C4: @ 0x0804B4C4 - movs r0, #1 - bx lr - - thumb_func_start sub_0804B4C8 -sub_0804B4C8: @ 0x0804B4C8 - push {lr} - movs r0, #0x22 - bl sub_080580B0 - pop {pc} - .align 2, 0 - - thumb_func_start sub_0804B4D4 -sub_0804B4D4: @ 0x0804B4D4 - push {lr} - movs r0, #0x22 - bl sub_080580B0 - pop {pc} - .align 2, 0 - - thumb_func_start sub_0804B4E0 -sub_0804B4E0: @ 0x0804B4E0 - movs r0, #1 - bx lr - - thumb_func_start sub_0804B4E4 -sub_0804B4E4: @ 0x0804B4E4 - push {lr} - movs r0, #0x22 - bl sub_080580B0 - movs r0, #2 - bl GetInventoryValue - cmp r0, #0 - beq _0804B4FC - movs r0, #0x56 - bl SetGlobalFlag -_0804B4FC: - pop {pc} - .align 2, 0 - - thumb_func_start sub_0804B500 -sub_0804B500: @ 0x0804B500 - push {lr} - movs r0, #0x22 - bl sub_080580B0 - pop {pc} - .align 2, 0 - - thumb_func_start sub_0804B50C -sub_0804B50C: @ 0x0804B50C - movs r0, #1 - bx lr - - thumb_func_start sub_0804B510 -sub_0804B510: @ 0x0804B510 - push {lr} - movs r0, #0x1e - bl sub_080575C8 - pop {pc} - .align 2, 0 - - thumb_func_start sub_0804B51C -sub_0804B51C: @ 0x0804B51C - push {lr} - movs r0, #0x1e - bl sub_080575C8 - pop {pc} - .align 2, 0 - - thumb_func_start sub_0804B528 -sub_0804B528: @ 0x0804B528 - movs r0, #1 - bx lr - - thumb_func_start sub_0804B52C -sub_0804B52C: @ 0x0804B52C - push {lr} - movs r0, #0x21 - bl sub_080575C8 - pop {pc} - .align 2, 0 - - thumb_func_start sub_0804B538 -sub_0804B538: @ 0x0804B538 - push {lr} - movs r0, #0x21 - bl sub_080575C8 - pop {pc} - .align 2, 0 - - thumb_func_start sub_0804B544 -sub_0804B544: @ 0x0804B544 - movs r0, #1 - bx lr - - thumb_func_start sub_0804B548 -sub_0804B548: @ 0x0804B548 - push {lr} - movs r0, #0x1f - bl sub_080575C8 - pop {pc} - .align 2, 0 - - thumb_func_start sub_0804B554 -sub_0804B554: @ 0x0804B554 - push {lr} - movs r0, #0x1f - bl sub_080575C8 - pop {pc} - .align 2, 0 - - thumb_func_start sub_0804B560 -sub_0804B560: @ 0x0804B560 - movs r0, #1 - bx lr - - thumb_func_start sub_0804B564 -sub_0804B564: @ 0x0804B564 - push {lr} - movs r0, #0x20 - bl sub_080575C8 - pop {pc} - .align 2, 0 - - thumb_func_start sub_0804B570 -sub_0804B570: @ 0x0804B570 - push {lr} - movs r0, #0x20 - bl sub_080575C8 - pop {pc} - .align 2, 0 - - thumb_func_start sub_0804B57C -sub_0804B57C: @ 0x0804B57C - movs r0, #1 - bx lr - - thumb_func_start sub_0804B580 -sub_0804B580: @ 0x0804B580 - push {lr} - movs r0, #0x20 - bl sub_080575C8 - ldr r0, _0804B5A0 @ =gLinkEntity - movs r1, #0x32 - ldrsh r0, [r0, r1] - ldr r1, _0804B5A4 @ =gRoomControls - ldrh r1, [r1, #8] - subs r0, r0, r1 - cmp r0, #0x40 - ble _0804B59E - ldr r0, _0804B5A8 @ =gUnk_080D6138 - bl LoadRoomEntityList -_0804B59E: - pop {pc} - .align 2, 0 -_0804B5A0: .4byte gLinkEntity -_0804B5A4: .4byte gRoomControls -_0804B5A8: .4byte gUnk_080D6138 - - thumb_func_start sub_0804B5AC -sub_0804B5AC: @ 0x0804B5AC - push {lr} - movs r0, #0x20 - bl sub_080575C8 - pop {pc} - .align 2, 0 - - thumb_func_start sub_0804B5B8 -sub_0804B5B8: @ 0x0804B5B8 - movs r0, #1 - bx lr - - thumb_func_start sub_0804B5BC -sub_0804B5BC: @ 0x0804B5BC - push {lr} - ldr r0, _0804B5D0 @ =gUnk_030010A0 - ldrh r0, [r0, #0x12] - cmp r0, #0x40 - bls _0804B5CC - ldr r0, _0804B5D4 @ =gUnk_080D6210 - bl LoadRoomEntityList -_0804B5CC: - pop {pc} - .align 2, 0 -_0804B5D0: .4byte gUnk_030010A0 -_0804B5D4: .4byte gUnk_080D6210 - - thumb_func_start sub_0804B5D8 -sub_0804B5D8: @ 0x0804B5D8 - movs r0, #1 - bx lr - - thumb_func_start sub_0804B5DC -sub_0804B5DC: @ 0x0804B5DC - push {r4, r5, r6, lr} - movs r0, #0x2c - bl CheckKinstoneFused - cmp r0, #0 - beq _0804B5EE - ldr r0, _0804B618 @ =gUnk_080D6340 - bl LoadRoomEntityList -_0804B5EE: - movs r6, #0 - ldr r4, _0804B61C @ =gUnk_080D64F8 - movs r5, #7 -_0804B5F4: - ldrh r0, [r4] - adds r4, #2 - bl GetInventoryValue - cmp r0, #0 - beq _0804B602 - adds r6, #1 -_0804B602: - subs r5, #1 - cmp r5, #0 - bge _0804B5F4 - movs r0, #0x8b - bl CheckLocalFlag - cmp r0, #0 - beq _0804B648 - ldr r4, _0804B620 @ =gUnk_080D6508 - movs r5, #0 - b _0804B628 - .align 2, 0 -_0804B618: .4byte gUnk_080D6340 -_0804B61C: .4byte gUnk_080D64F8 -_0804B620: .4byte gUnk_080D6508 -_0804B624: - adds r5, #1 - adds r4, #2 -_0804B628: - cmp r5, r6 - bge _0804B648 - ldrh r0, [r4] - bl CheckLocalFlag - cmp r0, #0 - bne _0804B624 - ldrh r0, [r4] - bl SetLocalFlag - movs r0, #0x8b - bl ClearLocalFlag - movs r0, #0x8c - bl SetLocalFlag -_0804B648: - movs r0, #0x1f - bl CheckLocalFlag - cmp r0, #0 - beq _0804B658 - ldr r0, _0804B6CC @ =gUnk_080D6360 - bl LoadRoomEntityList -_0804B658: - movs r0, #0x20 - bl CheckLocalFlag - cmp r0, #0 - beq _0804B668 - ldr r0, _0804B6D0 @ =gUnk_080D6380 - bl LoadRoomEntityList -_0804B668: - movs r0, #0x21 - bl CheckLocalFlag - cmp r0, #0 - beq _0804B678 - ldr r0, _0804B6D4 @ =gUnk_080D63A0 - bl LoadRoomEntityList -_0804B678: - movs r0, #0x22 - bl CheckLocalFlag - cmp r0, #0 - beq _0804B688 - ldr r0, _0804B6D8 @ =gUnk_080D63C0 - bl LoadRoomEntityList -_0804B688: - movs r0, #0x23 - bl CheckLocalFlag - cmp r0, #0 - beq _0804B698 - ldr r0, _0804B6DC @ =gUnk_080D63E0 - bl LoadRoomEntityList -_0804B698: - movs r0, #0x24 - bl CheckLocalFlag - cmp r0, #0 - beq _0804B6A8 - ldr r0, _0804B6E0 @ =gUnk_080D6400 - bl LoadRoomEntityList -_0804B6A8: - movs r0, #0x25 - bl CheckLocalFlag - cmp r0, #0 - beq _0804B6B8 - ldr r0, _0804B6E4 @ =gUnk_080D6420 - bl LoadRoomEntityList -_0804B6B8: - movs r0, #0x26 - bl CheckLocalFlag - cmp r0, #0 - beq _0804B6C8 - ldr r0, _0804B6E8 @ =gUnk_080D6440 - bl LoadRoomEntityList -_0804B6C8: - pop {r4, r5, r6, pc} - .align 2, 0 -_0804B6CC: .4byte gUnk_080D6360 -_0804B6D0: .4byte gUnk_080D6380 -_0804B6D4: .4byte gUnk_080D63A0 -_0804B6D8: .4byte gUnk_080D63C0 -_0804B6DC: .4byte gUnk_080D63E0 -_0804B6E0: .4byte gUnk_080D6400 -_0804B6E4: .4byte gUnk_080D6420 -_0804B6E8: .4byte gUnk_080D6440 - - thumb_func_start sub_0804B6EC -sub_0804B6EC: @ 0x0804B6EC - movs r0, #1 - bx lr - - thumb_func_start sub_0804B6F0 -sub_0804B6F0: @ 0x0804B6F0 - push {lr} - movs r0, #0x46 - bl GetInventoryValue - cmp r0, #0 - bne _0804B71C - ldr r0, _0804B714 @ =gUnk_080D6578 - bl LoadRoomEntityList - movs r0, #0x73 - bl CheckLocalFlag - cmp r0, #0 - bne _0804B722 - ldr r0, _0804B718 @ =gUnk_080D6638 - bl LoadRoomEntityList - b _0804B728 - .align 2, 0 -_0804B714: .4byte gUnk_080D6578 -_0804B718: .4byte gUnk_080D6638 -_0804B71C: - ldr r0, _0804B72C @ =gUnk_080D6558 - bl LoadRoomEntityList -_0804B722: - ldr r0, _0804B730 @ =gUnk_080D6618 - bl LoadRoomEntityList -_0804B728: - pop {pc} - .align 2, 0 -_0804B72C: .4byte gUnk_080D6558 -_0804B730: .4byte gUnk_080D6618 - - thumb_func_start sub_0804B734 -sub_0804B734: @ 0x0804B734 - movs r0, #1 - bx lr - - thumb_func_start sub_0804B738 -sub_0804B738: @ 0x0804B738 - push {lr} - ldr r0, _0804B770 @ =gUnk_02002A40 - ldrb r0, [r0, #8] - cmp r0, #4 - bls _0804B748 - ldr r0, _0804B774 @ =gUnk_080D6714 - bl LoadRoomEntityList -_0804B748: - movs r0, #0x46 - bl GetInventoryValue - cmp r0, #0 - bne _0804B77C - movs r0, #0x29 - bl CheckGlobalFlag - cmp r0, #0 - beq _0804B77C - movs r0, #0x6a - bl CheckLocalFlag - cmp r0, #0 - beq _0804B77C - ldr r0, _0804B778 @ =gUnk_080D6734 - bl LoadRoomEntityList - b _0804B782 - .align 2, 0 -_0804B770: .4byte gUnk_02002A40 -_0804B774: .4byte gUnk_080D6714 -_0804B778: .4byte gUnk_080D6734 -_0804B77C: - ldr r0, _0804B784 @ =gUnk_080D66F4 - bl LoadRoomEntityList -_0804B782: - pop {pc} - .align 2, 0 -_0804B784: .4byte gUnk_080D66F4 - - thumb_func_start sub_0804B788 -sub_0804B788: @ 0x0804B788 - movs r0, #1 - bx lr - - thumb_func_start sub_0804B78C -sub_0804B78C: @ 0x0804B78C - push {lr} - ldr r0, _0804B7A0 @ =gUnk_02002A40 - ldrb r0, [r0, #8] - cmp r0, #7 - bls _0804B79C - ldr r0, _0804B7A4 @ =gUnk_080D6924 - bl LoadRoomEntityList -_0804B79C: - pop {pc} - .align 2, 0 -_0804B7A0: .4byte gUnk_02002A40 -_0804B7A4: .4byte gUnk_080D6924 - - thumb_func_start sub_0804B7A8 -sub_0804B7A8: @ 0x0804B7A8 - push {r4, lr} - movs r0, #0x91 - bl CheckLocalFlag - cmp r0, #0 - beq _0804B7C8 - bl Random - movs r1, #3 - bl __modsi3 - adds r4, r0, #0 - movs r0, #1 - bl ClearLocalFlag - b _0804B7D0 -_0804B7C8: - movs r4, #0 - movs r0, #1 - bl SetLocalFlag -_0804B7D0: - ldr r2, _0804B7E0 @ =gRoomVars - ldr r1, _0804B7E4 @ =gUnk_080D6A74 - lsls r0, r4, #2 - adds r0, r0, r1 - ldr r0, [r0] - str r0, [r2, #0x78] - movs r0, #1 - pop {r4, pc} - .align 2, 0 -_0804B7E0: .4byte gRoomVars -_0804B7E4: .4byte gUnk_080D6A74 - - thumb_func_start sub_0804B7E8 -sub_0804B7E8: @ 0x0804B7E8 - push {lr} - movs r0, #0x91 - bl CheckLocalFlag - cmp r0, #0 - beq _0804B81E - movs r0, #0x91 - bl ClearLocalFlag - movs r1, #0x80 - lsls r1, r1, #1 - movs r0, #5 - bl DoFade - ldr r2, _0804B820 @ =gLinkEntity - ldr r1, _0804B824 @ =gRoomControls - ldrh r0, [r1, #6] - adds r0, #0x50 - strh r0, [r2, #0x2e] - ldrh r0, [r1, #8] - adds r0, #0x38 - strh r0, [r2, #0x32] - ldr r2, _0804B828 @ =gUnk_08010A5C - movs r0, #1 - movs r1, #2 - bl sub_080751E8 -_0804B81E: - pop {pc} - .align 2, 0 -_0804B820: .4byte gLinkEntity -_0804B824: .4byte gRoomControls -_0804B828: .4byte gUnk_08010A5C - - thumb_func_start sub_0804B82C -sub_0804B82C: @ 0x0804B82C - push {r4, lr} - movs r0, #0x91 - bl CheckLocalFlag - cmp r0, #0 - beq _0804B84A - bl Random - adds r4, r0, #0 - movs r0, #1 - ands r4, r0 - movs r0, #2 - bl ClearLocalFlag - b _0804B852 -_0804B84A: - movs r4, #0 - movs r0, #2 - bl SetLocalFlag -_0804B852: - ldr r2, _0804B864 @ =gRoomVars - ldr r1, _0804B868 @ =gUnk_080D6B18 - lsls r0, r4, #2 - adds r0, r0, r1 - ldr r0, [r0] - str r0, [r2, #0x78] - movs r0, #1 - pop {r4, pc} - .align 2, 0 -_0804B864: .4byte gRoomVars -_0804B868: .4byte gUnk_080D6B18 - - thumb_func_start sub_0804B86C -sub_0804B86C: @ 0x0804B86C - push {lr} - movs r0, #0x91 - bl CheckLocalFlag - cmp r0, #0 - beq _0804B8A2 - movs r0, #0x91 - bl ClearLocalFlag - movs r1, #0x80 - lsls r1, r1, #1 - movs r0, #5 - bl DoFade - ldr r2, _0804B8A4 @ =gLinkEntity - ldr r1, _0804B8A8 @ =gRoomControls - ldrh r0, [r1, #6] - adds r0, #0x50 - strh r0, [r2, #0x2e] - ldrh r0, [r1, #8] - adds r0, #0x38 - strh r0, [r2, #0x32] - ldr r2, _0804B8AC @ =gUnk_08010A5C - movs r0, #1 - movs r1, #2 - bl sub_080751E8 -_0804B8A2: - pop {pc} - .align 2, 0 -_0804B8A4: .4byte gLinkEntity -_0804B8A8: .4byte gRoomControls -_0804B8AC: .4byte gUnk_08010A5C - - thumb_func_start sub_0804B8B0 -sub_0804B8B0: @ 0x0804B8B0 - push {r4, lr} - movs r0, #0x91 - bl CheckLocalFlag - cmp r0, #0 - beq _0804B8D0 - bl Random - movs r1, #3 - bl __modsi3 - adds r4, r0, #0 - movs r0, #3 - bl ClearLocalFlag - b _0804B8D8 -_0804B8D0: - movs r4, #0 - movs r0, #3 - bl SetLocalFlag -_0804B8D8: - ldr r2, _0804B8E8 @ =gRoomVars - ldr r1, _0804B8EC @ =gUnk_080D6BB8 - lsls r0, r4, #2 - adds r0, r0, r1 - ldr r0, [r0] - str r0, [r2, #0x78] - movs r0, #1 - pop {r4, pc} - .align 2, 0 -_0804B8E8: .4byte gRoomVars -_0804B8EC: .4byte gUnk_080D6BB8 - - thumb_func_start sub_0804B8F0 -sub_0804B8F0: @ 0x0804B8F0 - push {lr} - movs r0, #0x91 - bl CheckLocalFlag - cmp r0, #0 - beq _0804B926 - movs r0, #0x91 - bl ClearLocalFlag - movs r1, #0x80 - lsls r1, r1, #1 - movs r0, #5 - bl DoFade - ldr r2, _0804B928 @ =gLinkEntity - ldr r1, _0804B92C @ =gRoomControls - ldrh r0, [r1, #6] - adds r0, #0x60 - strh r0, [r2, #0x2e] - ldrh r0, [r1, #8] - adds r0, #0x38 - strh r0, [r2, #0x32] - ldr r2, _0804B930 @ =gUnk_08010A5C - movs r0, #1 - movs r1, #2 - bl sub_080751E8 -_0804B926: - pop {pc} - .align 2, 0 -_0804B928: .4byte gLinkEntity -_0804B92C: .4byte gRoomControls -_0804B930: .4byte gUnk_08010A5C - - thumb_func_start sub_0804B934 -sub_0804B934: @ 0x0804B934 - movs r0, #1 - bx lr diff --git a/include/functions.h b/include/functions.h index 1694c6ac..1fb4b03b 100644 --- a/include/functions.h +++ b/include/functions.h @@ -106,4 +106,10 @@ extern void sub_080AD918(void); extern void sub_0801E104(void); extern void MenuFadeIn(u32, u32); extern void sub_080A57F4(void); +extern void sub_0804B29C(u32); +extern void sub_08030118(u32); +extern void sub_080575C8(u32); +extern void sub_08057688(void); +extern void sub_080580B0(u32); +extern void sub_080751E8(u32, u32, void*); #endif diff --git a/include/room.h b/include/room.h index ccde88c8..57e7b80f 100644 --- a/include/room.h +++ b/include/room.h @@ -44,6 +44,8 @@ typedef struct { u8 filler4[48]; u8 filler5[28]; u32 greatFairyState; + u8 field_0x68[9]; + u32 field_0x78; } RoomVars; //Packets used to store which entities to load in a room diff --git a/linker.ld b/linker.ld index bae7d5ec..1e71055f 100644 --- a/linker.ld +++ b/linker.ld @@ -441,6 +441,7 @@ SECTIONS { src/sub_0804AFF4.o(.text); src/loadRoom.o(.text); asm/code_0804B058.o(.text); + src/room.o(.text); asm/upperInn.o(.text); asm/code_0804B9F8.o(.text); src/sub_08050008.o(.text); @@ -661,7 +662,7 @@ SECTIONS { asm/code_0807CAA0.o(.text); src/flags.o(.text); asm/code_0807CC3C.o(.text); - src/room.o(.text); + src/code_0808091C.o(.text); /* objects */ asm/itemOnGround.o(.text); asm/deathFx.o(.text); diff --git a/src/code_0808091C.c b/src/code_0808091C.c new file mode 100644 index 00000000..3ba2096e --- /dev/null +++ b/src/code_0808091C.c @@ -0,0 +1,50 @@ +#include "global.h" +#include "room.h" + +extern void sub_0805E5A8(); + +extern RoomControls gRoomControls; +extern u32 gUnk_0200B650; +extern u32 gUnk_02025EB0; +extern u8 gUnk_030010A0[10]; + +extern void DoExitTransition(Entity*); +extern void sub_080809D4(); + +void sub_0808091C(Entity* param_1, u32 param_2) + +{ + DoExitTransition(param_1); + gUnk_030010A0[9] = param_2; + return; +} + +void sub_08080930(void) + +{ + gRoomControls.unk3 = 5; + gRoomControls.unk4 = 0; + gRoomControls.unk2 = 2; + gRoomControls.filler[0] = 0; + sub_0805E5A8(); + return; +} + +u32* GetLayerByIndex(u32 param_1) + +{ + + if (param_1 == 2) { + return &gUnk_0200B650; + } else { + return &gUnk_02025EB0; + } +} + +void sub_08080964(u16 time, u32 magnitude) + +{ + gRoomControls.screenShakeTime = time; + gRoomControls.screenShakeMagnitude = magnitude & 7; + return; +} diff --git a/src/room.c b/src/room.c index 3ba2096e..695ca76c 100644 --- a/src/room.c +++ b/src/room.c @@ -1,50 +1,474 @@ #include "global.h" +#include "entity.h" +#include "area.h" #include "room.h" +#include "functions.h" +#include "flags.h" +#include "link.h" -extern void sub_0805E5A8(); +typedef struct { + u8 field_0x0[8]; + u8 field_0x8; + u8 field_0x9; + u8 field_0xa[8]; + u16 field_0x12; +} struct_030010A0; -extern RoomControls gRoomControls; -extern u32 gUnk_0200B650; -extern u32 gUnk_02025EB0; -extern u8 gUnk_030010A0[10]; +typedef struct { + u8 filler[8]; + u8 field_0x8; +} struct_02002A40; -extern void DoExitTransition(Entity*); -extern void sub_080809D4(); +extern struct_030010A0 gUnk_030010A0; +extern struct_02002A40 gUnk_02002A40; -void sub_0808091C(Entity* param_1, u32 param_2) - -{ - DoExitTransition(param_1); - gUnk_030010A0[9] = param_2; - return; +void sub_0804B3C4(u32 arg0) { + sub_0804B29C(arg0); } -void sub_08080930(void) - -{ - gRoomControls.unk3 = 5; - gRoomControls.unk4 = 0; - gRoomControls.unk2 = 2; - gRoomControls.filler[0] = 0; - sub_0805E5A8(); - return; +u32 sub_0804B3CC(u32 arg0) { + return 1; } -u32* GetLayerByIndex(u32 param_1) +void sub_0804B3D0() { + sub_08030118(0); +} -{ +u32 sub_0804B3DC() { + return 1; +} - if (param_1 == 2) { - return &gUnk_0200B650; - } else { - return &gUnk_02025EB0; +void sub_0804B3E0() { + sub_08030118(1); +} + +u32 sub_0804B3EC() { + return 1; +} + +void sub_0804B3F0() { + sub_08030118(2); +} + +u32 sub_0804B3FC() { + return 1; +} + +void sub_0804B400() { + sub_08030118(3); +} + +u32 sub_0804B40C() { + return 1; +} + +void sub_0804B410() { + sub_08030118(4); +} + +u32 sub_0804B41C() { + return 1; +} + +void sub_0804B420() { + sub_08030118(5); +} + +u32 sub_0804B42C() { + return 1; +} + +void sub_0804B430() { + sub_08030118(6); +} + +u32 sub_0804B43C() { + return 1; +} + +void sub_0804B440() { + sub_08030118(7); +} + +u32 sub_0804B44C() { + return 1; +} + +void sub_0804B450() { + sub_08030118(8); +} + +u32 sub_0804B45C() { + return 1; +} + +void sub_0804B460() { + Area* a; + + sub_08030118(9); + a = &gArea; + *((u8*)&a->localFlagOffset - 1) = 3; + a->areaMetadata = 0x4e; +} + +u32 sub_0804B478() { + return 1; +} + +void sub_0804B47C() { + Area* a; + + sub_08030118(10); + a = &gArea; + *((u8*)&a->localFlagOffset - 1) = 3; + a->areaMetadata = 0x4e; +} + +u32 sub_0804B494() { + return 1; +} + +void sub_0804B498() { + sub_080575C8(35); + sub_08057688(); +} + +u32 sub_0804B4A8() { + return 1; +} + +void sub_0804B4AC() { + sub_080575C8(35); +} + +void sub_0804B4B8() { + sub_080575C8(35); +} + +u32 sub_0804B4C4() { + return 1; +} + +void sub_0804B4C8() { + sub_080580B0(34); +} + +void sub_0804B4D4() { + sub_080580B0(34); +} + +u32 sub_0804B4E0() { + return 1; +} + +void sub_0804B4E4(void) { + sub_080580B0(0x22); + // white sword + if (GetInventoryValue(0x2)) + SetGlobalFlag(0x56); +} + +void sub_0804B500() { + sub_080580B0(34); +} + +u32 sub_0804B50C() { + return 1; +} + +void sub_0804B510() { + sub_080575C8(30); +} + +void sub_0804B51C() { + sub_080575C8(30); +} + +u32 sub_0804B528() { + return 1; +} + +void sub_0804B52C() { + sub_080575C8(33); +} + +void sub_0804B538() { + sub_080575C8(33); +} + +u32 sub_0804B544() { + return 1; +} + +void sub_0804B548() { + sub_080575C8(31); +} + +void sub_0804B554() { + sub_080575C8(31); +} + +u32 sub_0804B560() { + return 1; +} + +void sub_0804B564() { + sub_080575C8(32); +} + +void sub_0804B570() { + sub_080575C8(32); +} + +u32 sub_0804B57C() { + return 1; +} + +extern EntityData* gUnk_080D6138; + +void sub_0804B580(void) { + sub_080575C8(0x20); + if (gLinkEntity.y.HALF.HI - gRoomControls.roomOriginY > 0x40) { + LoadRoomEntityList(&gUnk_080D6138); } } -void sub_08080964(u16 time, u32 magnitude) - -{ - gRoomControls.screenShakeTime = time; - gRoomControls.screenShakeMagnitude = magnitude & 7; - return; +void sub_0804B5AC() { + sub_080575C8(32); } + +u32 sub_0804B5B8() { + return 1; +} + +extern EntityData* gUnk_080D6210; + +void sub_0804B5BC(void) { + if (gUnk_030010A0.field_0x12 > 0x40) { + LoadRoomEntityList(&gUnk_080D6210); + } +} + +u32 sub_0804B5D8() { + return 1; +} + +extern EntityData* gUnk_080D6340; +extern EntityData* gUnk_080D6360; +extern EntityData* gUnk_080D6380; +extern EntityData* gUnk_080D63A0; +extern EntityData* gUnk_080D63C0; +extern EntityData* gUnk_080D63E0; +extern EntityData* gUnk_080D6400; +extern EntityData* gUnk_080D6420; +extern EntityData* gUnk_080D6440; + +extern u16 gUnk_080D64F8; +extern u16 gUnk_080D6508; + +void sub_0804B5DC(void) { + u16 itemID; + s32 i; + u16* itemArr; + u16* flagArr; + s32 j; + + if (CheckKinstoneFused(0x2c)) { + LoadRoomEntityList(&gUnk_080D6340); + } + j = 0; + itemArr = &gUnk_080D64F8; + for (i = 7; i >= 0; i--) { + itemID = *itemArr; + itemArr++; + if (GetInventoryValue(itemID)) { + j++; + } + } + if (CheckLocalFlag(0x8b)) { + flagArr = &gUnk_080D6508; + i = 0; + while (i < j) { + if (CheckLocalFlag(*flagArr) == 0) { + SetLocalFlag(*flagArr); + ClearLocalFlag(0x8b); + SetLocalFlag(0x8c); + break; + } + i++; + flagArr++; + } + } + if (CheckLocalFlag(0x1f)) { + LoadRoomEntityList(&gUnk_080D6360); + } + if (CheckLocalFlag(0x20)) { + LoadRoomEntityList(&gUnk_080D6380); + } + if (CheckLocalFlag(0x21)) { + LoadRoomEntityList(&gUnk_080D63A0); + } + if (CheckLocalFlag(0x22)) { + LoadRoomEntityList(&gUnk_080D63C0); + } + if (CheckLocalFlag(0x23)) { + LoadRoomEntityList(&gUnk_080D63E0); + } + if (CheckLocalFlag(0x24)) { + LoadRoomEntityList(&gUnk_080D6400); + } + if (CheckLocalFlag(0x25)) { + LoadRoomEntityList(&gUnk_080D6420); + } + if (CheckLocalFlag(0x26)) { + LoadRoomEntityList(&gUnk_080D6440); + } +} + +u32 sub_0804B6EC() { + return 1; +} + +extern EntityData* gUnk_080D6578; +extern EntityData* gUnk_080D6638; +extern EntityData* gUnk_080D6558; +extern EntityData* gUnk_080D6618; + +void sub_0804B6F0(void) { + // flippers + if (GetInventoryValue(0x46) == 0) { + LoadRoomEntityList(&gUnk_080D6578); + if (CheckLocalFlag(0x73) == 0) { + LoadRoomEntityList(&gUnk_080D6638); + return; + } + } else { + LoadRoomEntityList(&gUnk_080D6558); + } + LoadRoomEntityList(&gUnk_080D6618); +} + +u32 sub_0804B734() { + return 1; +} + +extern EntityData* gUnk_080D6714; +extern EntityData* gUnk_080D6734; +extern EntityData* gUnk_080D66F4; + +void sub_0804B738(void) { + if (gUnk_02002A40.field_0x8 > 4) { + LoadRoomEntityList(&gUnk_080D6714); + } + // flippers + if (!GetInventoryValue(0x46) && CheckGlobalFlag(0x29) && CheckLocalFlag(0x6a)) { + LoadRoomEntityList(&gUnk_080D6734); + } else { + LoadRoomEntityList(&gUnk_080D66F4); + } +} + +u32 sub_0804B788() { + return 1; +} + +extern EntityData* gUnk_080D6924; + +void sub_0804B78C(void) { + if (gUnk_02002A40.field_0x8 > 7) { + LoadRoomEntityList(&gUnk_080D6924); + } +} + +extern u32 gUnk_080D6A74[]; + +u32 sub_0804B7A8(void) { + u32 index; + + if (CheckLocalFlag(0x91) != 0) { + index = (s32)Random() % 3; + ClearLocalFlag(1); + } else { + index = 0; + SetLocalFlag(1); + } + gRoomVars.field_0x78 = gUnk_080D6A74[index]; + return 1; +} + +extern void* gUnk_08010A5C[]; + +void sub_0804B7E8(void) +{ + if (CheckLocalFlag(0x91)) { + ClearLocalFlag(0x91); + DoFade(5, 0x100); + gLinkEntity.x.HALF.HI = gRoomControls.roomOriginX + 0x50; + gLinkEntity.y.HALF.HI = gRoomControls.roomOriginY + 0x38; + sub_080751E8(1, 2, &gUnk_08010A5C); + } +} + +extern u32 gUnk_080D6B18[]; + +u32 sub_0804B82C(void) +{ + u32 index; + + if (CheckLocalFlag(0x91) != 0) { + index = Random() & 1; + ClearLocalFlag(2); + } + else { + index = 0; + SetLocalFlag(2); + } + gRoomVars.field_0x78 = gUnk_080D6B18[index]; + return 1; +} + +void sub_0804B86C(void) +{ + if (CheckLocalFlag(0x91) != 0) { + ClearLocalFlag(0x91); + DoFade(5, 0x100); + gLinkEntity.x.HALF.HI = gRoomControls.roomOriginX + 0x50; + gLinkEntity.y.HALF.HI = gRoomControls.roomOriginY + 0x38; + sub_080751E8(1, 2, &gUnk_08010A5C); + } +} + +extern u32 gUnk_080D6BB8[]; + +u32 sub_0804B8B0(void) +{ + s32 index; + + if (CheckLocalFlag(0x91) != 0) { + index = (s32)Random() % 3; + ClearLocalFlag(3); + } + else { + index = 0; + SetLocalFlag(3); + } + gRoomVars.field_0x78 = gUnk_080D6BB8[index]; + return 1; +} + +extern void* gUnk_08010A5C[]; + +void sub_0804B8F0(void) +{ + if (CheckLocalFlag(0x91)) { + ClearLocalFlag(0x91); + DoFade(5 ,0x100); + gLinkEntity.x.HALF.HI = gRoomControls.roomOriginX + 0x60; + gLinkEntity.y.HALF.HI = gRoomControls.roomOriginY + 0x38; + sub_080751E8(1,2, &gUnk_08010A5C); + } +} + +u32 sub_0804B934() { + return 1; +} \ No newline at end of file From 25a3b49d4b3357fc9bd24447ed293718a2e06b7c Mon Sep 17 00:00:00 2001 From: theo3 Date: Sat, 18 Jul 2020 14:50:31 -0700 Subject: [PATCH 051/158] upperInn OK --- asm/upperInn.s | 96 ---------------------------- data/data_080D5360.s | 14 ++-- linker.ld | 1 - src/room.c | 149 +++++++++++++++++++++++++++---------------- 4 files changed, 101 insertions(+), 159 deletions(-) delete mode 100644 asm/upperInn.s diff --git a/asm/upperInn.s b/asm/upperInn.s deleted file mode 100644 index 8879cfe9..00000000 --- a/asm/upperInn.s +++ /dev/null @@ -1,96 +0,0 @@ - .include "asm/macros.inc" - .include "constants/constants.inc" - - .syntax unified - - .text - - thumb_func_start sub_0804B938 -sub_0804B938: @ 0x0804B938 - push {lr} - ldr r0, _0804B968 @ =gUnk_02002A40 - ldrb r0, [r0, #8] - cmp r0, #3 - bls _0804B9F2 - movs r0, #0x2b - bl CheckGlobalFlag - cmp r0, #0 - beq _0804B970 - movs r0, #0x2f - bl CheckGlobalFlag - cmp r0, #0 - bne _0804B984 - movs r0, #0x30 - bl CheckGlobalFlag - cmp r0, #0 - bne _0804B9BC - ldr r0, _0804B96C @ =gUnk_080D6C64 - bl LoadRoomEntityList - b _0804B9F2 - .align 2, 0 -_0804B968: .4byte gUnk_02002A40 -_0804B96C: .4byte gUnk_080D6C64 -_0804B970: - movs r0, #0x2c - bl CheckGlobalFlag - cmp r0, #0 - beq _0804B9A8 - movs r0, #0x2e - bl CheckGlobalFlag - cmp r0, #0 - beq _0804B990 -_0804B984: - ldr r0, _0804B98C @ =gUnk_080D6D04 - bl LoadRoomEntityList - b _0804B9F2 - .align 2, 0 -_0804B98C: .4byte gUnk_080D6D04 -_0804B990: - movs r0, #0x30 - bl CheckGlobalFlag - cmp r0, #0 - bne _0804B9D2 - ldr r0, _0804B9A4 @ =gUnk_080D6C94 - bl LoadRoomEntityList - b _0804B9F2 - .align 2, 0 -_0804B9A4: .4byte gUnk_080D6C94 -_0804B9A8: - movs r0, #0x2d - bl CheckGlobalFlag - cmp r0, #0 - beq _0804B9EC - movs r0, #0x2e - bl CheckGlobalFlag - cmp r0, #0 - beq _0804B9C8 -_0804B9BC: - ldr r0, _0804B9C4 @ =gUnk_080D6CE4 - bl LoadRoomEntityList - b _0804B9F2 - .align 2, 0 -_0804B9C4: .4byte gUnk_080D6CE4 -_0804B9C8: - movs r0, #0x2f - bl CheckGlobalFlag - cmp r0, #0 - beq _0804B9E0 -_0804B9D2: - ldr r0, _0804B9DC @ =gUnk_080D6CC4 - bl LoadRoomEntityList - b _0804B9F2 - .align 2, 0 -_0804B9DC: .4byte gUnk_080D6CC4 -_0804B9E0: - ldr r0, _0804B9E8 @ =gUnk_080D6C34 - bl LoadRoomEntityList - b _0804B9F2 - .align 2, 0 -_0804B9E8: .4byte gUnk_080D6C34 -_0804B9EC: - ldr r0, _0804B9F4 @ =gUnk_080D6BF4 - bl LoadRoomEntityList -_0804B9F2: - pop {pc} - .align 2, 0 -_0804B9F4: .4byte gUnk_080D6BF4 \ No newline at end of file diff --git a/data/data_080D5360.s b/data/data_080D5360.s index 3229ad45..7143b764 100644 --- a/data/data_080D5360.s +++ b/data/data_080D5360.s @@ -499,25 +499,25 @@ gUnk_080D6BC4:: @ 080D6BC4 gUnk_080D6BE4:: @ 080D6BE4 .incbin "baserom.gba", 0x0D6BE4, 0x0000010 -gUnk_080D6BF4:: @ 080D6BF4 +UpperInn_Oracles:: @ 080D6BF4 .incbin "baserom.gba", 0x0D6BF4, 0x0000040 -gUnk_080D6C34:: @ 080D6C34 +UpperInn_NoFarore:: @ 080D6C34 .incbin "baserom.gba", 0x0D6C34, 0x0000030 -gUnk_080D6C64:: @ 080D6C64 +UpperInn_NoDin:: @ 080D6C64 .incbin "baserom.gba", 0x0D6C64, 0x0000030 -gUnk_080D6C94:: @ 080D6C94 +UpperInn_NoNayru:: @ 080D6C94 .incbin "baserom.gba", 0x0D6C94, 0x0000030 -gUnk_080D6CC4:: @ 080D6CC4 +UpperInn_Din:: @ 080D6CC4 .incbin "baserom.gba", 0x0D6CC4, 0x0000020 -gUnk_080D6CE4:: @ 080D6CE4 +UpperInn_Nayru:: @ 080D6CE4 .incbin "baserom.gba", 0x0D6CE4, 0x0000020 -gUnk_080D6D04:: @ 080D6D04 +UpperInn_Farore:: @ 080D6D04 .incbin "baserom.gba", 0x0D6D04, 0x0000020 gUnk_080D6D24:: @ 080D6D24 diff --git a/linker.ld b/linker.ld index 1e71055f..460b91b4 100644 --- a/linker.ld +++ b/linker.ld @@ -442,7 +442,6 @@ SECTIONS { src/loadRoom.o(.text); asm/code_0804B058.o(.text); src/room.o(.text); - asm/upperInn.o(.text); asm/code_0804B9F8.o(.text); src/sub_08050008.o(.text); src/sub_08050024.o(.text); diff --git a/src/room.c b/src/room.c index 695ca76c..4891ae9f 100644 --- a/src/room.c +++ b/src/room.c @@ -398,77 +398,116 @@ u32 sub_0804B7A8(void) { extern void* gUnk_08010A5C[]; -void sub_0804B7E8(void) -{ - if (CheckLocalFlag(0x91)) { - ClearLocalFlag(0x91); - DoFade(5, 0x100); - gLinkEntity.x.HALF.HI = gRoomControls.roomOriginX + 0x50; - gLinkEntity.y.HALF.HI = gRoomControls.roomOriginY + 0x38; - sub_080751E8(1, 2, &gUnk_08010A5C); - } +void sub_0804B7E8(void) { + if (CheckLocalFlag(0x91)) { + ClearLocalFlag(0x91); + DoFade(5, 0x100); + gLinkEntity.x.HALF.HI = gRoomControls.roomOriginX + 0x50; + gLinkEntity.y.HALF.HI = gRoomControls.roomOriginY + 0x38; + sub_080751E8(1, 2, &gUnk_08010A5C); + } } extern u32 gUnk_080D6B18[]; -u32 sub_0804B82C(void) -{ - u32 index; - - if (CheckLocalFlag(0x91) != 0) { - index = Random() & 1; - ClearLocalFlag(2); - } - else { - index = 0; - SetLocalFlag(2); - } - gRoomVars.field_0x78 = gUnk_080D6B18[index]; - return 1; +u32 sub_0804B82C(void) { + u32 index; + + if (CheckLocalFlag(0x91) != 0) { + index = Random() & 1; + ClearLocalFlag(2); + } else { + index = 0; + SetLocalFlag(2); + } + gRoomVars.field_0x78 = gUnk_080D6B18[index]; + return 1; } -void sub_0804B86C(void) -{ - if (CheckLocalFlag(0x91) != 0) { - ClearLocalFlag(0x91); - DoFade(5, 0x100); - gLinkEntity.x.HALF.HI = gRoomControls.roomOriginX + 0x50; - gLinkEntity.y.HALF.HI = gRoomControls.roomOriginY + 0x38; - sub_080751E8(1, 2, &gUnk_08010A5C); - } +void sub_0804B86C(void) { + if (CheckLocalFlag(0x91) != 0) { + ClearLocalFlag(0x91); + DoFade(5, 0x100); + gLinkEntity.x.HALF.HI = gRoomControls.roomOriginX + 0x50; + gLinkEntity.y.HALF.HI = gRoomControls.roomOriginY + 0x38; + sub_080751E8(1, 2, &gUnk_08010A5C); + } } extern u32 gUnk_080D6BB8[]; -u32 sub_0804B8B0(void) -{ - s32 index; - - if (CheckLocalFlag(0x91) != 0) { - index = (s32)Random() % 3; - ClearLocalFlag(3); - } - else { - index = 0; - SetLocalFlag(3); - } - gRoomVars.field_0x78 = gUnk_080D6BB8[index]; - return 1; +u32 sub_0804B8B0(void) { + s32 index; + + if (CheckLocalFlag(0x91) != 0) { + index = (s32)Random() % 3; + ClearLocalFlag(3); + } else { + index = 0; + SetLocalFlag(3); + } + gRoomVars.field_0x78 = gUnk_080D6BB8[index]; + return 1; } extern void* gUnk_08010A5C[]; -void sub_0804B8F0(void) -{ - if (CheckLocalFlag(0x91)) { - ClearLocalFlag(0x91); - DoFade(5 ,0x100); - gLinkEntity.x.HALF.HI = gRoomControls.roomOriginX + 0x60; - gLinkEntity.y.HALF.HI = gRoomControls.roomOriginY + 0x38; - sub_080751E8(1,2, &gUnk_08010A5C); - } +void sub_0804B8F0(void) { + if (CheckLocalFlag(0x91)) { + ClearLocalFlag(0x91); + DoFade(5, 0x100); + gLinkEntity.x.HALF.HI = gRoomControls.roomOriginX + 0x60; + gLinkEntity.y.HALF.HI = gRoomControls.roomOriginY + 0x38; + sub_080751E8(1, 2, &gUnk_08010A5C); + } } u32 sub_0804B934() { return 1; +} + +extern EntityData* UpperInn_Oracles; +extern EntityData* UpperInn_NoFarore; +extern EntityData* UpperInn_NoNayru; +extern EntityData* UpperInn_NoDin; +extern EntityData* UpperInn_Farore; +extern EntityData* UpperInn_Nayru; +extern EntityData* UpperInn_Din; + +void sub_0804B938(void) { + int iVar1; + + if (gUnk_02002A40.field_0x8 < 4) { + return; + } + + if (CheckGlobalFlag(0x2b)) { + if (!CheckGlobalFlag(0x2f)) { + if (!CheckGlobalFlag(0x30)) { + LoadRoomEntityList(&UpperInn_NoDin); + } else { + LoadRoomEntityList(&UpperInn_Nayru); + } + } else { + LoadRoomEntityList(&UpperInn_Farore); + } + } else if (CheckGlobalFlag(0x2c)) { + if (CheckGlobalFlag(0x2e)) { + LoadRoomEntityList(&UpperInn_Farore); + } else if (!CheckGlobalFlag(0x30)) { + LoadRoomEntityList(&UpperInn_NoNayru); + } else { + LoadRoomEntityList(&UpperInn_Din); + } + } else if (CheckGlobalFlag(0x2d)) { + if (CheckGlobalFlag(0x2e)) { + LoadRoomEntityList(&UpperInn_Nayru); + } else if (CheckGlobalFlag(0x2f)) { + LoadRoomEntityList(&UpperInn_Din); + } else { + LoadRoomEntityList(&UpperInn_NoFarore); + } + } else { + LoadRoomEntityList(&UpperInn_Oracles); + } } \ No newline at end of file From cce6a23fbb89e59909e0bd7e8b63292a996e5e91 Mon Sep 17 00:00:00 2001 From: theo3 Date: Sat, 18 Jul 2020 15:53:48 -0700 Subject: [PATCH 052/158] flag enum --- include/flags.h | 104 ++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 104 insertions(+) diff --git a/include/flags.h b/include/flags.h index a5c00099..48e56749 100644 --- a/include/flags.h +++ b/include/flags.h @@ -28,4 +28,108 @@ void SetRoomFlag(u32); extern u32 gGlobalFlags; extern u32 gRoomFlags; +enum { + NONE, + /*0x01*/ LV0_CLEAR, /* Simulation Lv. 0 */ + /*0x02*/ LV1_CLEAR, /* Simulation Lv. 1 */ + /*0x03*/ LV2_CLEAR, /* Simulation Lv. 2 */ + /*0x04*/ LV3_CLEAR, /* Simulation Lv. 3 */ + /*0x05*/ LV4_CLEAR, /* Simulation Lv. 4 */ + /*0x06*/ LV5_CLEAR, /* Simulation Lv. 5 */ + /*0x07*/ LV6_CLEAR, /* Simulation Lv. 6 */ + /*0x08*/ LV7_CLEAR, /* Simulation Lv. 7 */ + /*0x09*/ LV8_CLEAR, /* Simulation Lv. 8 */ + /*0x0a*/ MACHI_SET_1, /* Defeated Big Green Chuchu */ + /*0x0b*/ MACHI_SET_2, /* Defeated Gleerok */ + /*0x0c*/ MACHI_SET_3, /* */ + /*0x0d*/ MACHI_SET_4, /* Defeated Big Octorok */ + /*0x0e*/ MACHI_SET_5, /* Defeated Gyorg Pair */ + /*0x0f*/ MACHI_SET_6, /* */ + /*0x10*/ MACHI_SET_7, /* */ + /*0x11*/ MACHI_SET_8, /* */ + /*0x12*/ MACHI_MACHIHOKORI, /* Sucked dust from carpet */ + /*0x13*/ START, /* Met Zelda */ + /*0x14*/ EZERO_1ST, /* Met Ezlo */ + /*0x15*/ TABIDACHI, /* Talked to Daltus and Smith */ + /*0x16*/ LV1TARU, /* */ + /*0x17*/ LV1TARU_OPEN, /* Sucked barrel web */ + /*0x18*/ TATEKAKE_HOUSE, /* Red house complete */ + /*0x19*/ TATEKAKE_TOCHU, /* Red house frame */ + /*0x1a*/ WATERBEAN_OUT, /* Holding bean */ + /*0x1b*/ WATERBEAN_PUT, /* Threw bean in hole */ + /*0x1c*/ ZELDA_CHASE, /* Enter town festival */ + /*0x1d*/ INLOCK, /* Gave key to Talon */ + /*0x1e*/ DASHBOOTS, /* Read Castor Wilds sign */ + /*0x1f*/ LEFT_DOOR_OPEN, /* Spoke to Dr. Left */ + /*0x20*/ HAKA_KEY_LOST, /* Graveyard key stolen */ + /*0x21*/ HAKA_KEY_FOUND, /* Graveyard key obtained back */ + /*0x22*/ ENTRANCE_OK, /* */ + /*0x23*/ TATSUMAKI, /* */ + /*0x24*/ KUMOTATSUMAKI, /* Vortex spawned */ + /*0x25*/ KAITENGIRI, /* */ + /*0x26*/ DAIKAITENGIRI, /* */ + /*0x27*/ GATOTSU, /* */ + /*0x28*/ KABUTOWARI, /* */ + /*0x29*/ MIZUKAKI_START, /* Spoke to Lake Hylia Minish */ + /*0x2a*/ MIZUKAKI_HARIFALL, /* Library book falling */ + /*0x2b*/ RENTED_HOUSE_DIN, /* Din moves to blue house */ + /*0x2c*/ RENTED_HOUSE_NAYRU, /* Nayru moves to blue house */ + /*0x2d*/ RENTED_HOUSE_FARORE, /* Farore moves to blue house */ + /*0x2e*/ NEW_HOUSE_DIN, /* Din moves to red house */ + /*0x2f*/ NEW_HOUSE_NAYRU, /* Nayru moves to red house */ + /*0x30*/ NEW_HOUSE_FARORE, /* Farore moves to red house */ + /*0x31*/ OUGONTEKI_A, /* Golden Octorok defeated */ + /*0x32*/ OUGONTEKI_B, /* Golden Tektite defeated */ + /*0x33*/ OUGONTEKI_C, /* Golden Rope defeated */ + /*0x34*/ OUGONTEKI_D, /* Golden Rope defeated */ + /*0x35*/ OUGONTEKI_E, /* Golden Rope defeated */ + /*0x36*/ OUGONTEKI_F, /* Golden Tektite defeated */ + /*0x37*/ OUGONTEKI_G, /* Golden Tektite defeated */ + /*0x38*/ OUGONTEKI_H, /* Golden Octorok defeated */ + /*0x39*/ OUGONTEKI_I, /* Golden Octorok defeated */ + /*0x3a*/ KAKERA_COMPLETE, /* All fusions complete */ + /*0x3b*/ DRUG_1, /* Yellow pico bloomed */ + /*0x3c*/ DRUG_2, /* Blue pico bloomed */ + /*0x3d*/ DRUG_3, /* Orange pico bloomed */ + /*0x3e*/ GORON_KAKERA_LV2, /* Goron merchant restock 1 */ + /*0x3f*/ GORON_KAKERA_LV3, /* Goron merchant restock 2 */ + /*0x40*/ GORON_KAKERA_LV4, /* Goron merchant restock 3 */ + /*0x41*/ GORON_KAKERA_LV5, /* Goron merchant restock 4 */ + /*0x42*/ GORON_KAKERA_L, /* Red kinstone sold out */ + /*0x43*/ GORON_KAKERA_M, /* Blue kinstone sold out */ + /*0x44*/ GORON_KAKERA_R, /* Green kinstone sold out */ + /*0x45*/ CHIKATSURO_SHUTTER, /* Castle basement door open */ + /*0x46*/ ENTRANCE_USED, /* */ + /*0x47*/ GOMAN_RENTED_HOUSE, /* Spoke to Gorman blue house */ + /*0x48*/ GOMAN_NEW_HOUSE, /* Spoke to Gorman red house */ + /*0x49*/ OUTDOOR, /* Exited Link's house */ + /*0x4a*/ POWERGLOVE_HINT, /* Spoke to Dr. Left Minish */ + /*0x4b*/ ANJU_LV_BIT0, /* Cucco game 1 bit */ + /*0x4c*/ ANJU_LV_BIT1, /* Cucco game 2 bit */ + /*0x4d*/ ANJU_LV_BIT2, /* Cucco game 4 bit */ + /*0x4e*/ ANJU_LV_BIT3, /* Cucco game 8 bit */ + /*0x4f*/ ANJU_HEART, /* Cucco heart piece */ + /*0x50*/ MAROYA_WAKEUP, /* */ + /*0x51*/ ENDING, /* Vaati's wrath defeated */ + /*0x52*/ WARP_1ST, /* Wind ocarina unlocked */ + /*0x53*/ WARP_MONUMENT, /* First windcrest discovered */ + /*0x54*/ DRUG_COUNT, /* Pico bloom minish items */ + /*0x55*/ GAMECLEAR, /* Watched end cutscene */ + /*0x56*/ WHITE_SWORD_END, /* Exit mines with white sword */ + /*0x57*/ SOUGEN_06_HASHIGO, /* Boomerang cave ladder */ + /*0x58*/ WARP_EVENT_END, /* Wind tribe tower state */ + /*0x59*/ FIGURE_ALLCOMP, /* Obtained Carlov Medal */ + /*0x5a*/ AKINDO_BOTTLE_SELL, /* Bought bottle from scrub */ + /*0x5b*/ BIN_DOGFOOD, /* */ + /*0x5c*/ TINGLE_TALK1ST, /* Spoke to Tingle */ + /*0x5d*/ SEIIKI_BGM, /* Elemental sanctuary BGM */ + /*0x5e*/ ENTRANCE_0, /* Trunk entrance cutscene */ + /*0x5f*/ ENTRANCE_1, /* Rock entrance cutscene */ + /*0x60*/ ENTRANCE_2, /* Pot entrance cutscene */ + /*0x61*/ MIZUKAKI_NECHAN, /* Spoke to librarian */ + /*0x62*/ MAZE_CLEAR, /* Cleared Castle maze */ + /*0x63*/ TINY_ENTRANCE, /* Ezlo described entrances */ + /*0x64*/ CASTLE_BGM, /* Castle intro BGM */ +} FLAG; + #endif \ No newline at end of file From c084cfbae27e5f9cd542c3e36a8564e04bf2b226 Mon Sep 17 00:00:00 2001 From: theo3 Date: Sat, 18 Jul 2020 16:03:20 -0700 Subject: [PATCH 053/158] updated flag func calls --- include/flags.h | 2 +- src/loadRoom.c | 44 ++++++++++++++++------------------- src/npc/forestMinish.c | 12 +++++----- src/npc/mutoh.c | 2 +- src/npc/simon.c | 2 +- src/npc/townsperson.c | 2 +- src/npc/windTribespeople.c | 4 ++-- src/npc/zelda.c | 2 +- src/object/cloud.c | 2 +- src/object/treeHidingPortal.c | 2 +- src/room.c | 22 +++++++++--------- 11 files changed, 46 insertions(+), 50 deletions(-) diff --git a/include/flags.h b/include/flags.h index 48e56749..27595e70 100644 --- a/include/flags.h +++ b/include/flags.h @@ -130,6 +130,6 @@ enum { /*0x62*/ MAZE_CLEAR, /* Cleared Castle maze */ /*0x63*/ TINY_ENTRANCE, /* Ezlo described entrances */ /*0x64*/ CASTLE_BGM, /* Castle intro BGM */ -} FLAG; +}; #endif \ No newline at end of file diff --git a/src/loadRoom.c b/src/loadRoom.c index 27946eb8..4cfb8788 100644 --- a/src/loadRoom.c +++ b/src/loadRoom.c @@ -1,8 +1,8 @@ #include "global.h" #include "room.h" +#include "flags.h" void LoadRoomEntityList(EntityData* dat); -s32 CheckGlobalFlag(u32 flag); extern EntityData* GetCurrentRoomProperty(u32 unk); extern void sub_0804B058(EntityData* dat); extern void sub_0804B1AC(EntityData* dat); @@ -21,7 +21,7 @@ void LoadRoom(void) { LoadRoomEntityList(GetCurrentRoomProperty(1)); LoadRoomEntityList(GetCurrentRoomProperty(0)); - if (CheckGlobalFlag(21)) + if (CheckGlobalFlag(TABIDACHI)) sub_0804B058(GetCurrentRoomProperty(2)); sub_0804B1AC(GetCurrentRoomProperty(3)); @@ -51,42 +51,38 @@ void sub_0804B058(EntityData* dat) { } } -void sub_0804B0B0(u32 arg0, u32 arg1) -{ - LoadRoomEntityList(GetRoomProperty(arg0, arg1, 1)); +void sub_0804B0B0(u32 arg0, u32 arg1) { + LoadRoomEntityList(GetRoomProperty(arg0, arg1, 1)); } -void SetCurrentRoomPropertyList(u32 arg0, u32 arg1) -{ +void SetCurrentRoomPropertyList(u32 arg0, u32 arg1) { u32** arr; - gUnk_02017654 = 0; - arr = &gUnk_080D50FC; - if (arr[arg0] != 0) { - gUnk_02017654 = arr[arg0][arg1]; - } + gUnk_02017654 = 0; + arr = &gUnk_080D50FC; + if (arr[arg0] != 0) { + gUnk_02017654 = arr[arg0][arg1]; + } } -void sub_0804B0E8(u32 arg0, u32 arg1) -{ - void (* func)(); - - func = (void (*)())GetRoomProperty(arg0, arg1, 4); - if (func != NULL) { - func(); - } +void sub_0804B0E8(u32 arg0, u32 arg1) { + void (*func)(); + + func = (void (*)())GetRoomProperty(arg0, arg1, 4); + if (func != NULL) { + func(); + } } // returns multiple types of data? -void* GetRoomProperty(u32 arg0, u32 arg1, u32 arg2) -{ +void* GetRoomProperty(u32 arg0, u32 arg1, u32 arg2) { u32 temp; - u32** arr; + u32** arr; temp = 0; arr = &gUnk_080D50FC; if (arr[arg0] != NULL) { temp = arr[arg0][arg1]; if (temp != 0) { - temp = *(u32 *)(arg2 * 4 + temp); + temp = *(u32*)(arg2 * 4 + temp); } } return (void*)temp; diff --git a/src/npc/forestMinish.c b/src/npc/forestMinish.c index 29a4ea6a..e83a40d1 100644 --- a/src/npc/forestMinish.c +++ b/src/npc/forestMinish.c @@ -155,7 +155,7 @@ void sub_080601D4(Entity* this) { u32 temp; u32 uVar2; - if (CheckGlobalFlag(4) == 0) { + if (CheckGlobalFlag(LV3_CLEAR) == 0) { uVar2 = 2; } else { temp = CheckKinstoneFused(0x17); @@ -202,9 +202,9 @@ void sub_08060270(Entity *this) //flippers if (GetInventoryValue(0x46) == 0) { index = 1; - if (CheckGlobalFlag(0x29) == 0) { + if (CheckGlobalFlag(MIZUKAKI_START) == 0) { index = 0; - SetGlobalFlag(0x29); + SetGlobalFlag(MIZUKAKI_START); } } else { @@ -266,19 +266,19 @@ u32 sub_08060354(void) s32 iVar2; iVar2 = gUnk_02002A40.unk2 - gUnk_02002A40.unk3; - if (CheckGlobalFlag(0x3b) == 0) { + if (CheckGlobalFlag(DRUG_1) == 0) { if (4 < iVar2) { return 0x8444; } } else { - if (CheckGlobalFlag(0x3c) == 0) { + if (CheckGlobalFlag(DRUG_2) == 0) { if (iVar2 > 9) { return 0x8444; } } else { - if (CheckGlobalFlag(0x3d) == 0) { + if (CheckGlobalFlag(DRUG_3) == 0) { if (iVar2 > 14) { return 0x8444; } diff --git a/src/npc/mutoh.c b/src/npc/mutoh.c index b50ff552..46256dbe 100644 --- a/src/npc/mutoh.c +++ b/src/npc/mutoh.c @@ -67,7 +67,7 @@ void sub_080670B4(Entity *this) uVar2 = 0; if (GetInventoryValue(0x11) == 0) { - uVar1 = CheckGlobalFlag(0x15); + uVar1 = CheckGlobalFlag(TABIDACHI); uVar2 = (-uVar1 | uVar1) >> 0x1f; } TextboxNoOverlap(gUnk_08110C0C[uVar2],this); diff --git a/src/npc/simon.c b/src/npc/simon.c index 4e01af67..911fd745 100644 --- a/src/npc/simon.c +++ b/src/npc/simon.c @@ -49,7 +49,7 @@ void Simon_CreateChest(Entity *this) void sub_0806C280(void) { - SetGlobalFlag(0x50); + SetGlobalFlag(MAROYA_WAKEUP); DoExitTransition(&gUnk_0813AD74); gUnk_030010A0.unk = 6; } diff --git a/src/npc/townsperson.c b/src/npc/townsperson.c index c99cce93..a10aed22 100644 --- a/src/npc/townsperson.c +++ b/src/npc/townsperson.c @@ -283,7 +283,7 @@ void sub_0806200C(Entity* this) { u32 index; index = 0; - if ((CheckGlobalFlag(0x29) != 0) && (CheckLocalFlag(0x6b))) { + if ((CheckGlobalFlag(MIZUKAKI_START) != 0) && (CheckLocalFlag(0x6b))) { // hyrule bestiary if (GetInventoryValue(0x39) == 2) { diff --git a/src/npc/windTribespeople.c b/src/npc/windTribespeople.c index d01f22d4..b95db3d4 100644 --- a/src/npc/windTribespeople.c +++ b/src/npc/windTribespeople.c @@ -52,7 +52,7 @@ void sub_0806C7D4(Entity* this) { sub_0806F118(this); } else { sub_0807DD94(this, 0); - if ((this->entityType.parameter == 3) && (!CheckGlobalFlag(0x58)) && (CheckLocalFlag(0x63)) && + if ((this->entityType.parameter == 3) && (!CheckGlobalFlag(WARP_EVENT_END)) && (CheckLocalFlag(0x63)) && (CheckRoomFlag(0))) { (this->entityType).parameter = 7; sub_0807DD80(this, &gUnk_08014A80); @@ -130,7 +130,7 @@ void sub_0806C944(Entity *this) int iVar1; int iVar2; - iVar1 = CheckGlobalFlag(0x58); + iVar1 = CheckGlobalFlag(WARP_EVENT_END); if (iVar1 == 0) { iVar2 = 0; } diff --git a/src/npc/zelda.c b/src/npc/zelda.c index 2ba8bf28..b70e3b9a 100644 --- a/src/npc/zelda.c +++ b/src/npc/zelda.c @@ -84,7 +84,7 @@ void sub_08066D94(Entity* ent) { u32 roomID; Entity* npc; - SetGlobalFlag(0x1C); + SetGlobalFlag(ZELDA_CHASE); npc = CreateNPC(0x2E, 0, 0); if (npc != NULL) { npc->animationState = gLinkEntity.animationState; diff --git a/src/object/cloud.c b/src/object/cloud.c index 027899cd..c55e0d57 100644 --- a/src/object/cloud.c +++ b/src/object/cloud.c @@ -72,7 +72,7 @@ void sub_0809F548(Entity* this) { void sub_0809F5B0(Entity* this) { if (--this->actionDelay == 0) { PlaySFX(115); - SetGlobalFlag(36); + SetGlobalFlag(KUMOTATSUMAKI); LoadRoomEntityList(&gUnk_080DD750); DeleteThisEntity(); } diff --git a/src/object/treeHidingPortal.c b/src/object/treeHidingPortal.c index 8ea54861..8bab5747 100644 --- a/src/object/treeHidingPortal.c +++ b/src/object/treeHidingPortal.c @@ -35,7 +35,7 @@ void sub_0809E83C(Entity* this) { void sub_0809E86C(Entity* this) { if (sub_0800419C(this, &gLinkEntity, 0x30, 0x30)) { - if (CheckGlobalFlag(0x14)) { + if (CheckGlobalFlag(EZERO_1ST)) { if (((gUnk_030010A0 & 3) == 0)) { sub_080A2B80(this); } diff --git a/src/room.c b/src/room.c index 4891ae9f..ff38c438 100644 --- a/src/room.c +++ b/src/room.c @@ -165,7 +165,7 @@ void sub_0804B4E4(void) { sub_080580B0(0x22); // white sword if (GetInventoryValue(0x2)) - SetGlobalFlag(0x56); + SetGlobalFlag(WHITE_SWORD_END); } void sub_0804B500() { @@ -361,7 +361,7 @@ void sub_0804B738(void) { LoadRoomEntityList(&gUnk_080D6714); } // flippers - if (!GetInventoryValue(0x46) && CheckGlobalFlag(0x29) && CheckLocalFlag(0x6a)) { + if (!GetInventoryValue(0x46) && CheckGlobalFlag(MIZUKAKI_START) && CheckLocalFlag(0x6a)) { LoadRoomEntityList(&gUnk_080D6734); } else { LoadRoomEntityList(&gUnk_080D66F4); @@ -481,9 +481,9 @@ void sub_0804B938(void) { return; } - if (CheckGlobalFlag(0x2b)) { - if (!CheckGlobalFlag(0x2f)) { - if (!CheckGlobalFlag(0x30)) { + if (CheckGlobalFlag(RENTED_HOUSE_DIN)) { + if (!CheckGlobalFlag(NEW_HOUSE_NAYRU)) { + if (!CheckGlobalFlag(NEW_HOUSE_FARORE)) { LoadRoomEntityList(&UpperInn_NoDin); } else { LoadRoomEntityList(&UpperInn_Nayru); @@ -491,18 +491,18 @@ void sub_0804B938(void) { } else { LoadRoomEntityList(&UpperInn_Farore); } - } else if (CheckGlobalFlag(0x2c)) { - if (CheckGlobalFlag(0x2e)) { + } else if (CheckGlobalFlag(RENTED_HOUSE_NAYRU)) { + if (CheckGlobalFlag(NEW_HOUSE_DIN)) { LoadRoomEntityList(&UpperInn_Farore); - } else if (!CheckGlobalFlag(0x30)) { + } else if (!CheckGlobalFlag(NEW_HOUSE_FARORE)) { LoadRoomEntityList(&UpperInn_NoNayru); } else { LoadRoomEntityList(&UpperInn_Din); } - } else if (CheckGlobalFlag(0x2d)) { - if (CheckGlobalFlag(0x2e)) { + } else if (CheckGlobalFlag(RENTED_HOUSE_FARORE)) { + if (CheckGlobalFlag(NEW_HOUSE_DIN)) { LoadRoomEntityList(&UpperInn_Nayru); - } else if (CheckGlobalFlag(0x2f)) { + } else if (CheckGlobalFlag(NEW_HOUSE_NAYRU)) { LoadRoomEntityList(&UpperInn_Din); } else { LoadRoomEntityList(&UpperInn_NoFarore); From a4a019348016836f69d2f213466de29bdaf2d70a Mon Sep 17 00:00:00 2001 From: theo3 Date: Sat, 18 Jul 2020 22:53:42 -0700 Subject: [PATCH 054/158] room.c --- asm/code_08000E44.s | 4 +- asm/code_0801D79C.s | 2 +- asm/code_0804B9F8.s | 3273 ----------------------------- asm/code_08056418.s | 2 +- asm/code_0805E744.s | 2 +- asm/code_080A3BD0.s | 2 +- asm/manager10.s | 2 +- asm/manager12.s | 6 +- asm/manager1A.s | 2 +- asm/manager7.s | 4 +- asm/managerF.s | 6 +- asm/non_matching/sub_0804BF38.inc | 111 + asm/non_matching/sub_0804C128.inc | 148 ++ asm/non_matching/sub_0804C258.inc | 28 + asm/non_matching/sub_0804C290.inc | 23 + include/area.h | 4 + include/functions.h | 21 + include/room.h | 5 +- src/room.c | 1917 ++++++++++++++++- 19 files changed, 2208 insertions(+), 3354 deletions(-) create mode 100644 asm/non_matching/sub_0804BF38.inc create mode 100644 asm/non_matching/sub_0804C128.inc create mode 100644 asm/non_matching/sub_0804C258.inc create mode 100644 asm/non_matching/sub_0804C290.inc diff --git a/asm/code_08000E44.s b/asm/code_08000E44.s index 5754b16d..2104990f 100644 --- a/asm/code_08000E44.s +++ b/asm/code_08000E44.s @@ -59,8 +59,8 @@ sub_08000E92: @ 0x08000E92 movs r3, #1 b _08000E98 - non_word_aligned_thumb_func_start sub_08000E96 -sub_08000E96: @ 0x08000E96 + non_word_aligned_thumb_func_start LoadAssetAsync +LoadAssetAsync: @ 0x08000E96 movs r3, #0 _08000E98: push {r4, r5} diff --git a/asm/code_0801D79C.s b/asm/code_0801D79C.s index 297a0689..6fdf451e 100644 --- a/asm/code_0801D79C.s +++ b/asm/code_0801D79C.s @@ -803,7 +803,7 @@ sub_0801DD88: @ 0x0801DD88 ldr r1, _0801DD9C @ =0x06006000 movs r2, #0x80 lsls r2, r2, #6 - bl sub_08000E96 + bl LoadAssetAsync pop {pc} .align 2, 0 _0801DD98: .4byte gUnk_0201AEE0 diff --git a/asm/code_0804B9F8.s b/asm/code_0804B9F8.s index 3223f113..9394dcab 100644 --- a/asm/code_0804B9F8.s +++ b/asm/code_0804B9F8.s @@ -4,3279 +4,6 @@ .syntax unified .text - - thumb_func_start sub_0804B9F8 -sub_0804B9F8: @ 0x0804B9F8 - movs r0, #1 - bx lr - - thumb_func_start nullsub_176 -nullsub_176: @ 0x0804B9FC - bx lr - .align 2, 0 - - thumb_func_start sub_0804BA00 -sub_0804BA00: @ 0x0804BA00 - movs r0, #1 - bx lr - - thumb_func_start nullsub_177 -nullsub_177: @ 0x0804BA04 - bx lr - .align 2, 0 - - thumb_func_start sub_0804BA08 -sub_0804BA08: @ 0x0804BA08 - movs r0, #1 - bx lr - - thumb_func_start sub_0804BA0C -sub_0804BA0C: @ 0x0804BA0C - push {lr} - ldr r0, _0804BA34 @ =gUnk_02002A40 - ldrb r0, [r0, #8] - cmp r0, #7 - bhi _0804BA1C - ldr r0, _0804BA38 @ =gUnk_080D7038 - bl LoadRoomEntityList -_0804BA1C: - ldr r0, _0804BA3C @ =gRoomVars - ldrb r0, [r0] - cmp r0, #0 - bne _0804BA32 - movs r2, #0xb2 - lsls r2, r2, #2 - movs r0, #2 - movs r1, #0 - movs r3, #0xa8 - bl sub_08052CA4 -_0804BA32: - pop {pc} - .align 2, 0 -_0804BA34: .4byte gUnk_02002A40 -_0804BA38: .4byte gUnk_080D7038 -_0804BA3C: .4byte gRoomVars - - thumb_func_start sub_0804BA40 -sub_0804BA40: @ 0x0804BA40 - movs r0, #1 - bx lr - - thumb_func_start sub_0804BA44 -sub_0804BA44: @ 0x0804BA44 - push {r4, lr} - ldr r4, _0804BA7C @ =gUnk_02002A40 - ldrb r0, [r4, #8] - cmp r0, #6 - bne _0804BA54 - ldr r0, _0804BA80 @ =gUnk_080D7140 - bl LoadRoomEntityList -_0804BA54: - ldrb r0, [r4, #8] - cmp r0, #7 - bne _0804BA60 - ldr r0, _0804BA84 @ =gUnk_080D7170 - bl LoadRoomEntityList -_0804BA60: - ldrb r0, [r4, #8] - cmp r0, #7 - bls _0804BA72 - ldr r0, _0804BA88 @ =gUnk_080D71A0 - bl LoadRoomEntityList - ldrb r0, [r4, #8] - cmp r0, #7 - bhi _0804BA90 -_0804BA72: - ldr r0, _0804BA8C @ =gUnk_080D71D0 - bl LoadRoomEntityList - b _0804BA96 - .align 2, 0 -_0804BA7C: .4byte gUnk_02002A40 -_0804BA80: .4byte gUnk_080D7140 -_0804BA84: .4byte gUnk_080D7170 -_0804BA88: .4byte gUnk_080D71A0 -_0804BA8C: .4byte gUnk_080D71D0 -_0804BA90: - ldr r0, _0804BA98 @ =gUnk_080D71F0 - bl LoadRoomEntityList -_0804BA96: - pop {r4, pc} - .align 2, 0 -_0804BA98: .4byte gUnk_080D71F0 - - thumb_func_start sub_0804BA9C -sub_0804BA9C: @ 0x0804BA9C - push {lr} - movs r0, #0x51 - bl CheckGlobalFlag - cmp r0, #0 - beq _0804BAB2 - ldr r0, _0804BAB8 @ =gRoomVars - ldr r1, _0804BABC @ =gUnk_080D7348 - str r1, [r0, #0x6c] - movs r1, #0 - str r1, [r0, #0x74] -_0804BAB2: - movs r0, #1 - pop {pc} - .align 2, 0 -_0804BAB8: .4byte gRoomVars -_0804BABC: .4byte gUnk_080D7348 - - thumb_func_start sub_0804BAC0 -sub_0804BAC0: @ 0x0804BAC0 - push {lr} - movs r0, #3 - bl CheckGlobalFlag - cmp r0, #0 - bne _0804BAD2 - ldr r0, _0804BAE8 @ =gUnk_080D7328 - bl LoadRoomEntityList -_0804BAD2: - movs r0, #0x64 - bl CheckGlobalFlag - cmp r0, #0 - beq _0804BAF4 - ldr r0, _0804BAEC @ =gArea - ldr r1, _0804BAF0 @ =0x00000864 - adds r0, r0, r1 - movs r1, #0x1b - str r1, [r0] - b _0804BB0C - .align 2, 0 -_0804BAE8: .4byte gUnk_080D7328 -_0804BAEC: .4byte gArea -_0804BAF0: .4byte 0x00000864 -_0804BAF4: - movs r0, #0x51 - bl CheckGlobalFlag - cmp r0, #0 - beq _0804BB0C - ldr r0, _0804BB10 @ =gArea - ldr r2, _0804BB14 @ =0x00000864 - adds r1, r0, r2 - subs r2, #4 - adds r0, r0, r2 - ldr r0, [r0] - str r0, [r1] -_0804BB0C: - pop {pc} - .align 2, 0 -_0804BB10: .4byte gArea -_0804BB14: .4byte 0x00000864 - - thumb_func_start sub_0804BB18 -sub_0804BB18: @ 0x0804BB18 - push {lr} - movs r0, #0x51 - bl CheckGlobalFlag - cmp r0, #0 - beq _0804BB2E - ldr r0, _0804BB34 @ =gRoomVars - ldr r1, _0804BB38 @ =gUnk_080D7410 - str r1, [r0, #0x6c] - movs r1, #0 - str r1, [r0, #0x74] -_0804BB2E: - movs r0, #1 - pop {pc} - .align 2, 0 -_0804BB34: .4byte gRoomVars -_0804BB38: .4byte gUnk_080D7410 - - thumb_func_start sub_0804BB3C -sub_0804BB3C: @ 0x0804BB3C - push {lr} - movs r0, #0x51 - bl CheckGlobalFlag - cmp r0, #0 - bne _0804BB7C - movs r0, #3 - bl CheckGlobalFlag - cmp r0, #0 - bne _0804BB58 - ldr r0, _0804BB8C @ =gUnk_080D73B0 - bl LoadRoomEntityList -_0804BB58: - movs r0, #2 - bl CheckGlobalFlag - cmp r0, #0 - bne _0804BB72 - movs r0, #0x15 - bl CheckGlobalFlag - cmp r0, #0 - beq _0804BB72 - ldr r0, _0804BB90 @ =gUnk_080D73E0 - bl LoadRoomEntityList -_0804BB72: - movs r0, #0x64 - bl CheckGlobalFlag - cmp r0, #0 - beq _0804BB8A -_0804BB7C: - ldr r0, _0804BB94 @ =gArea - ldr r2, _0804BB98 @ =0x00000864 - adds r1, r0, r2 - subs r2, #4 - adds r0, r0, r2 - ldr r0, [r0] - str r0, [r1] -_0804BB8A: - pop {pc} - .align 2, 0 -_0804BB8C: .4byte gUnk_080D73B0 -_0804BB90: .4byte gUnk_080D73E0 -_0804BB94: .4byte gArea -_0804BB98: .4byte 0x00000864 - - thumb_func_start sub_0804BB9C -sub_0804BB9C: @ 0x0804BB9C - movs r0, #1 - bx lr - - thumb_func_start sub_0804BBA0 -sub_0804BBA0: @ 0x0804BBA0 - push {lr} - movs r0, #0x64 - bl CheckGlobalFlag - cmp r0, #0 - beq _0804BBBA - ldr r0, _0804BBDC @ =gArea - ldr r2, _0804BBE0 @ =0x00000864 - adds r1, r0, r2 - subs r2, #4 - adds r0, r0, r2 - ldr r0, [r0] - str r0, [r1] -_0804BBBA: - movs r0, #0x51 - bl CheckGlobalFlag - cmp r0, #0 - beq _0804BBE8 - ldr r0, _0804BBE4 @ =gUnk_080D7618 - bl LoadRoomEntityList - ldr r0, _0804BBDC @ =gArea - ldr r2, _0804BBE0 @ =0x00000864 - adds r1, r0, r2 - subs r2, #4 - adds r0, r0, r2 - ldr r0, [r0] - str r0, [r1] - b _0804BC2E - .align 2, 0 -_0804BBDC: .4byte gArea -_0804BBE0: .4byte 0x00000864 -_0804BBE4: .4byte gUnk_080D7618 -_0804BBE8: - movs r0, #0x15 - bl CheckGlobalFlag - cmp r0, #0 - bne _0804BC10 - ldr r0, _0804BC04 @ =gUnk_080D74C8 - bl LoadRoomEntityList - ldr r0, _0804BC08 @ =gArea - ldr r1, _0804BC0C @ =0x00000864 - adds r0, r0, r1 - movs r1, #0x1b - str r1, [r0] - b _0804BC2E - .align 2, 0 -_0804BC04: .4byte gUnk_080D74C8 -_0804BC08: .4byte gArea -_0804BC0C: .4byte 0x00000864 -_0804BC10: - movs r0, #2 - bl CheckGlobalFlag - cmp r0, #0 - bne _0804BC28 - ldr r0, _0804BC24 @ =gUnk_080D7588 - bl LoadRoomEntityList - b _0804BC2E - .align 2, 0 -_0804BC24: .4byte gUnk_080D7588 -_0804BC28: - ldr r0, _0804BC30 @ =gUnk_080D75D8 - bl LoadRoomEntityList -_0804BC2E: - pop {pc} - .align 2, 0 -_0804BC30: .4byte gUnk_080D75D8 - - thumb_func_start sub_0804BC34 -sub_0804BC34: @ 0x0804BC34 - movs r0, #1 - bx lr - - thumb_func_start sub_0804BC38 -sub_0804BC38: @ 0x0804BC38 - push {lr} - movs r0, #0x9c - bl CheckLocalFlag - cmp r0, #0 - beq _0804BC4A - ldr r0, _0804BC4C @ =gUnk_080D7690 - bl LoadRoomEntityList -_0804BC4A: - pop {pc} - .align 2, 0 -_0804BC4C: .4byte gUnk_080D7690 - - thumb_func_start sub_0804BC50 -sub_0804BC50: @ 0x0804BC50 - push {lr} - movs r0, #0x9f - bl CheckLocalFlag - cmp r0, #0 - bne _0804BC68 - ldr r1, _0804BC6C @ =gUnk_030010A0 - movs r0, #5 - strb r0, [r1, #0xf] - movs r0, #0x1c - bl ClearGlobalFlag -_0804BC68: - movs r0, #1 - pop {pc} - .align 2, 0 -_0804BC6C: .4byte gUnk_030010A0 - - thumb_func_start sub_0804BC70 -sub_0804BC70: @ 0x0804BC70 - push {lr} - movs r0, #0x9f - bl CheckLocalFlag - cmp r0, #0 - bne _0804BCA0 - movs r1, #0x80 - lsls r1, r1, #1 - movs r0, #5 - bl DoFade - ldr r2, _0804BCB0 @ =gLinkEntity - ldr r1, _0804BCB4 @ =gRoomControls - ldrh r0, [r1, #6] - adds r0, #0xb0 - strh r0, [r2, #0x2e] - ldrh r0, [r1, #8] - adds r0, #0x40 - strh r0, [r2, #0x32] - ldr r2, _0804BCB8 @ =gUnk_08009E88 - movs r0, #0 - movs r1, #6 - bl sub_080751E8 -_0804BCA0: - movs r0, #0x15 - bl CheckGlobalFlag - cmp r0, #0 - bne _0804BCBC - bl sub_08052878 - b _0804BCD0 - .align 2, 0 -_0804BCB0: .4byte gLinkEntity -_0804BCB4: .4byte gRoomControls -_0804BCB8: .4byte gUnk_08009E88 -_0804BCBC: - movs r0, #0x64 - bl CheckGlobalFlag - cmp r0, #0 - beq _0804BCD0 - ldr r0, _0804BCD4 @ =gArea - ldr r1, _0804BCD8 @ =0x00000864 - adds r0, r0, r1 - movs r1, #0x1b - str r1, [r0] -_0804BCD0: - pop {pc} - .align 2, 0 -_0804BCD4: .4byte gArea -_0804BCD8: .4byte 0x00000864 - - thumb_func_start sub_0804BCDC -sub_0804BCDC: @ 0x0804BCDC - push {lr} - ldr r0, _0804BCE8 @ =gUnk_0813AB80 - movs r1, #4 - bl sub_0808091C - pop {pc} - .align 2, 0 -_0804BCE8: .4byte gUnk_0813AB80 - - thumb_func_start sub_0804BCEC -sub_0804BCEC: @ 0x0804BCEC - movs r0, #1 - bx lr - - thumb_func_start nullsub_178 -nullsub_178: @ 0x0804BCF0 - bx lr - .align 2, 0 - - thumb_func_start sub_0804BCF4 -sub_0804BCF4: @ 0x0804BCF4 - movs r0, #1 - bx lr - - thumb_func_start nullsub_179 -nullsub_179: @ 0x0804BCF8 - bx lr - .align 2, 0 - - thumb_func_start sub_0804BCFC -sub_0804BCFC: @ 0x0804BCFC - movs r0, #1 - bx lr - - thumb_func_start nullsub_180 -nullsub_180: @ 0x0804BD00 - bx lr - .align 2, 0 - - thumb_func_start sub_0804BD04 -sub_0804BD04: @ 0x0804BD04 - movs r0, #1 - bx lr - - thumb_func_start nullsub_181 -nullsub_181: @ 0x0804BD08 - bx lr - .align 2, 0 - - thumb_func_start sub_0804BD0C -sub_0804BD0C: @ 0x0804BD0C - movs r0, #1 - bx lr - - thumb_func_start nullsub_182 -nullsub_182: @ 0x0804BD10 - bx lr - .align 2, 0 - - thumb_func_start sub_0804BD14 -sub_0804BD14: @ 0x0804BD14 - movs r0, #1 - bx lr - - thumb_func_start nullsub_183 -nullsub_183: @ 0x0804BD18 - bx lr - .align 2, 0 - - thumb_func_start sub_0804BD1C -sub_0804BD1C: @ 0x0804BD1C - movs r0, #1 - bx lr - - thumb_func_start nullsub_184 -nullsub_184: @ 0x0804BD20 - bx lr - .align 2, 0 - - thumb_func_start sub_0804BD24 -sub_0804BD24: @ 0x0804BD24 - movs r0, #1 - bx lr - - thumb_func_start nullsub_185 -nullsub_185: @ 0x0804BD28 - bx lr - .align 2, 0 - - thumb_func_start sub_0804BD2C -sub_0804BD2C: @ 0x0804BD2C - movs r0, #1 - bx lr - - thumb_func_start nullsub_186 -nullsub_186: @ 0x0804BD30 - bx lr - .align 2, 0 - - thumb_func_start sub_0804BD34 -sub_0804BD34: @ 0x0804BD34 - movs r0, #1 - bx lr - - thumb_func_start nullsub_187 -nullsub_187: @ 0x0804BD38 - bx lr - .align 2, 0 - - thumb_func_start sub_0804BD3C -sub_0804BD3C: @ 0x0804BD3C - movs r0, #1 - bx lr - - thumb_func_start nullsub_188 -nullsub_188: @ 0x0804BD40 - bx lr - .align 2, 0 - - thumb_func_start sub_0804BD44 -sub_0804BD44: @ 0x0804BD44 - movs r0, #1 - bx lr - - thumb_func_start nullsub_189 -nullsub_189: @ 0x0804BD48 - bx lr - .align 2, 0 - - thumb_func_start sub_0804BD4C -sub_0804BD4C: @ 0x0804BD4C - movs r0, #1 - bx lr - - thumb_func_start sub_0804BD50 -sub_0804BD50: @ 0x0804BD50 - push {r4, lr} - movs r0, #6 - bl GetInventoryValue - cmp r0, #0 - beq _0804BD94 - ldr r4, _0804BD98 @ =0x00004072 - ldr r1, _0804BD9C @ =0x0000014D - adds r0, r4, #0 - movs r2, #1 - bl SetTile - movs r1, #0x86 - lsls r1, r1, #1 - adds r0, r4, #0 - movs r2, #1 - bl SetTile - adds r4, #0x1e - movs r1, #0xa6 - lsls r1, r1, #1 - adds r0, r4, #0 - movs r2, #1 - bl SetTile - movs r1, #0xc6 - lsls r1, r1, #1 - adds r0, r4, #0 - movs r2, #1 - bl SetTile - ldr r0, _0804BDA0 @ =gUnk_080D7D34 - bl LoadRoomEntityList -_0804BD94: - pop {r4, pc} - .align 2, 0 -_0804BD98: .4byte 0x00004072 -_0804BD9C: .4byte 0x0000014D -_0804BDA0: .4byte gUnk_080D7D34 - - thumb_func_start sub_0804BDA4 -sub_0804BDA4: @ 0x0804BDA4 - movs r0, #1 - bx lr - - thumb_func_start nullsub_190 -nullsub_190: @ 0x0804BDA8 - bx lr - .align 2, 0 - - thumb_func_start sub_0804BDAC -sub_0804BDAC: @ 0x0804BDAC - movs r0, #1 - bx lr - - thumb_func_start nullsub_191 -nullsub_191: @ 0x0804BDB0 - bx lr - .align 2, 0 - - thumb_func_start sub_0804BDB4 -sub_0804BDB4: @ 0x0804BDB4 - movs r0, #1 - bx lr - - thumb_func_start nullsub_192 -nullsub_192: @ 0x0804BDB8 - bx lr - .align 2, 0 - - thumb_func_start sub_0804BDBC -sub_0804BDBC: @ 0x0804BDBC - movs r0, #1 - bx lr - - thumb_func_start nullsub_193 -nullsub_193: @ 0x0804BDC0 - bx lr - .align 2, 0 - - thumb_func_start sub_0804BDC4 -sub_0804BDC4: @ 0x0804BDC4 - movs r0, #1 - bx lr - - thumb_func_start nullsub_194 -nullsub_194: @ 0x0804BDC8 - bx lr - .align 2, 0 - - thumb_func_start sub_0804BDCC -sub_0804BDCC: @ 0x0804BDCC - movs r0, #1 - bx lr - - thumb_func_start sub_0804BDD0 -sub_0804BDD0: @ 0x0804BDD0 - push {lr} - movs r0, #3 - bl CheckLocalFlag - cmp r0, #0 - bne _0804BDE8 - ldr r0, _0804BDE4 @ =gUnk_080D827C - bl LoadRoomEntityList - b _0804BE00 - .align 2, 0 -_0804BDE4: .4byte gUnk_080D827C -_0804BDE8: - bl sub_0805BC4C - movs r0, #0x76 - movs r1, #0x82 - movs r2, #2 - bl SetTileType - movs r0, #0x76 - movs r1, #0x8c - movs r2, #2 - bl SetTileType -_0804BE00: - pop {pc} - .align 2, 0 - - thumb_func_start sub_0804BE04 -sub_0804BE04: @ 0x0804BE04 - movs r0, #1 - bx lr - - thumb_func_start nullsub_28 -nullsub_28: @ 0x0804BE08 - bx lr - .align 2, 0 - - thumb_func_start sub_0804BE0C -sub_0804BE0C: @ 0x0804BE0C - movs r0, #1 - bx lr - - thumb_func_start nullsub_29 -nullsub_29: @ 0x0804BE10 - bx lr - .align 2, 0 - - thumb_func_start sub_0804BE14 -sub_0804BE14: @ 0x0804BE14 - movs r0, #1 - bx lr - - thumb_func_start nullsub_30 -nullsub_30: @ 0x0804BE18 - bx lr - .align 2, 0 - - thumb_func_start sub_0804BE1C -sub_0804BE1C: @ 0x0804BE1C - movs r0, #1 - bx lr - - thumb_func_start nullsub_31 -nullsub_31: @ 0x0804BE20 - bx lr - .align 2, 0 - - thumb_func_start sub_0804BE24 -sub_0804BE24: @ 0x0804BE24 - movs r0, #1 - bx lr - - thumb_func_start nullsub_32 -nullsub_32: @ 0x0804BE28 - bx lr - .align 2, 0 - - thumb_func_start sub_0804BE2C -sub_0804BE2C: @ 0x0804BE2C - movs r0, #1 - bx lr - - thumb_func_start nullsub_33 -nullsub_33: @ 0x0804BE30 - bx lr - .align 2, 0 - - thumb_func_start sub_0804BE34 -sub_0804BE34: @ 0x0804BE34 - movs r0, #1 - bx lr - - thumb_func_start nullsub_34 -nullsub_34: @ 0x0804BE38 - bx lr - .align 2, 0 - - thumb_func_start sub_0804BE3C -sub_0804BE3C: @ 0x0804BE3C - movs r0, #1 - bx lr - - thumb_func_start nullsub_35 -nullsub_35: @ 0x0804BE40 - bx lr - .align 2, 0 - - thumb_func_start sub_0804BE44 -sub_0804BE44: @ 0x0804BE44 - movs r0, #1 - bx lr - - thumb_func_start nullsub_36 -nullsub_36: @ 0x0804BE48 - bx lr - .align 2, 0 - - thumb_func_start sub_0804BE4C -sub_0804BE4C: @ 0x0804BE4C - movs r0, #1 - bx lr - - thumb_func_start sub_0804BE50 -sub_0804BE50: @ 0x0804BE50 - push {lr} - movs r0, #0x68 - bl CheckLocalFlag - cmp r0, #0 - bne _0804BE62 - movs r0, #0x68 - bl SetLocalFlag -_0804BE62: - movs r0, #0x2f - bl CheckKinstoneFused - cmp r0, #0 - beq _0804BE78 - ldr r0, _0804BE74 @ =gUnk_080D8B24 - bl LoadRoomEntityList - b _0804BEDE - .align 2, 0 -_0804BE74: .4byte gUnk_080D8B24 -_0804BE78: - movs r0, #0x2b - bl CheckKinstoneFused - cmp r0, #0 - beq _0804BE90 - ldr r0, _0804BE8C @ =gUnk_080D8AC4 - bl LoadRoomEntityList - b _0804BEDE - .align 2, 0 -_0804BE8C: .4byte gUnk_080D8AC4 -_0804BE90: - movs r0, #0x26 - bl CheckKinstoneFused - cmp r0, #0 - beq _0804BEA8 - ldr r0, _0804BEA4 @ =gUnk_080D8A74 - bl LoadRoomEntityList - b _0804BEDE - .align 2, 0 -_0804BEA4: .4byte gUnk_080D8A74 -_0804BEA8: - movs r0, #0x2a - bl CheckKinstoneFused - cmp r0, #0 - beq _0804BEC0 - ldr r0, _0804BEBC @ =gUnk_080D8A34 - bl LoadRoomEntityList - b _0804BEDE - .align 2, 0 -_0804BEBC: .4byte gUnk_080D8A34 -_0804BEC0: - movs r0, #0x25 - bl CheckKinstoneFused - cmp r0, #0 - beq _0804BED8 - ldr r0, _0804BED4 @ =gUnk_080D8A04 - bl LoadRoomEntityList - b _0804BEDE - .align 2, 0 -_0804BED4: .4byte gUnk_080D8A04 -_0804BED8: - ldr r0, _0804BF1C @ =gUnk_080D89E4 - bl LoadRoomEntityList -_0804BEDE: - movs r0, #0x25 - bl CheckKinstoneFused - cmp r0, #0 - beq _0804BEF2 - ldr r0, _0804BF20 @ =gUnk_080D8BBC - ldr r1, _0804BF24 @ =0x000007C5 - movs r2, #1 - bl sub_0807BB68 -_0804BEF2: - movs r0, #0x26 - bl CheckKinstoneFused - cmp r0, #0 - beq _0804BF06 - ldr r0, _0804BF28 @ =gUnk_080D8BFA - ldr r1, _0804BF2C @ =0x00000503 - movs r2, #1 - bl sub_0807BB68 -_0804BF06: - movs r0, #0x2f - bl CheckKinstoneFused - cmp r0, #0 - beq _0804BF1A - ldr r0, _0804BF30 @ =gUnk_080D8C68 - ldr r1, _0804BF34 @ =0x00000281 - movs r2, #1 - bl sub_0807BB68 -_0804BF1A: - pop {pc} - .align 2, 0 -_0804BF1C: .4byte gUnk_080D89E4 -_0804BF20: .4byte gUnk_080D8BBC -_0804BF24: .4byte 0x000007C5 -_0804BF28: .4byte gUnk_080D8BFA -_0804BF2C: .4byte 0x00000503 -_0804BF30: .4byte gUnk_080D8C68 -_0804BF34: .4byte 0x00000281 - - thumb_func_start sub_0804BF38 -sub_0804BF38: @ 0x0804BF38 - push {r4, r5, r6, r7, lr} - mov r7, sl - mov r6, sb - mov r5, r8 - push {r5, r6, r7} - ldr r0, [r1, #4] - lsls r0, r0, #4 - ldr r1, _0804C000 @ =gUnk_080D8E50 - adds r4, r0, r1 - ldr r0, [r4] - ldrh r1, [r4, #4] - lsrs r1, r1, #4 - movs r3, #0x3f - ands r1, r3 - ldrh r2, [r4, #6] - lsrs r2, r2, #4 - ands r2, r3 - lsls r2, r2, #6 - orrs r1, r2 - movs r2, #1 - bl sub_0807BB68 - ldrh r0, [r4, #8] - mov r8, r0 - movs r5, #0 - cmp r5, r8 - bhs _0804BFE8 - ldr r7, _0804C004 @ =gRoomControls - movs r1, #0 - mov sl, r1 - movs r6, #0 - movs r3, #1 - mov sb, r3 -_0804BF7A: - movs r0, #0xf - movs r1, #0xf - movs r2, #0 - bl CreateObject - adds r2, r0, #0 - cmp r2, #0 - beq _0804BFA6 - ldrh r0, [r7, #6] - ldrh r1, [r4, #4] - adds r0, r0, r1 - adds r0, r0, r6 - strh r0, [r2, #0x2e] - ldrh r1, [r7, #8] - ldrh r3, [r4, #6] - adds r1, r1, r3 - adds r0, r5, #0 - mov r3, sb - ands r0, r3 - lsls r0, r0, #3 - adds r1, r1, r0 - strh r1, [r2, #0x32] -_0804BFA6: - movs r0, #0xf - movs r1, #0x54 - movs r2, #0 - bl CreateObject - adds r2, r0, #0 - cmp r2, #0 - beq _0804BFE0 - ldrh r0, [r7, #6] - ldrh r1, [r4, #4] - adds r0, r0, r1 - adds r0, r0, r6 - strh r0, [r2, #0x2e] - ldrh r1, [r7, #8] - ldrh r3, [r4, #6] - adds r1, r1, r3 - ldr r0, _0804C008 @ =0x0000FFF4 - adds r1, r1, r0 - adds r0, r5, #0 - mov r3, sb - ands r0, r3 - lsls r0, r0, #3 - adds r1, r1, r0 - strh r1, [r2, #0x32] - mov r0, sl - strb r0, [r2, #0x15] - movs r0, #0x80 - lsls r0, r0, #1 - strh r0, [r2, #0x24] -_0804BFE0: - adds r6, #0x10 - adds r5, #1 - cmp r5, r8 - blo _0804BF7A -_0804BFE8: - ldrh r0, [r4, #0xa] - ldrh r1, [r4, #0xc] - bl sub_08080964 - ldrh r0, [r4, #0xe] - bl PlaySFX - pop {r3, r4, r5} - mov r8, r3 - mov sb, r4 - mov sl, r5 - pop {r4, r5, r6, r7, pc} - .align 2, 0 -_0804C000: .4byte gUnk_080D8E50 -_0804C004: .4byte gRoomControls -_0804C008: .4byte 0x0000FFF4 - - thumb_func_start sub_0804C00C -sub_0804C00C: @ 0x0804C00C - movs r0, #1 - bx lr - - thumb_func_start nullsub_195 -nullsub_195: @ 0x0804C010 - bx lr - .align 2, 0 - - thumb_func_start sub_0804C014 -sub_0804C014: @ 0x0804C014 - movs r0, #1 - bx lr - - thumb_func_start sub_0804C018 -sub_0804C018: @ 0x0804C018 - push {r4, lr} - movs r0, #0x20 - bl CheckGlobalFlag - cmp r0, #0 - bne _0804C044 - movs r0, #0x3c - bl GetInventoryValue - cmp r0, #1 - bne _0804C054 - ldr r0, _0804C03C @ =gUnk_080D90C8 - bl LoadRoomEntityList - ldr r0, _0804C040 @ =gUnk_080D9108 - bl LoadRoomEntityList - b _0804C054 - .align 2, 0 -_0804C03C: .4byte gUnk_080D90C8 -_0804C040: .4byte gUnk_080D9108 -_0804C044: - movs r0, #0x21 - bl CheckGlobalFlag - cmp r0, #0 - bne _0804C054 - ldr r0, _0804C0D0 @ =gUnk_080D9108 - bl LoadRoomEntityList -_0804C054: - movs r0, #0x3c - bl GetInventoryValue - cmp r0, #2 - beq _0804C090 - ldr r0, _0804C0D4 @ =gUnk_080D9098 - bl LoadRoomEntityList - movs r0, #0xbd - lsls r0, r0, #1 - ldr r1, _0804C0D8 @ =0x0000058E - movs r2, #1 - bl SetTileType - ldr r0, _0804C0DC @ =0x0000017B - ldr r1, _0804C0E0 @ =0x0000058F - movs r2, #1 - bl SetTileType - movs r0, #0xbe - lsls r0, r0, #1 - ldr r1, _0804C0E4 @ =0x000005CE - movs r2, #1 - bl SetTileType - ldr r0, _0804C0E8 @ =0x0000017D - ldr r1, _0804C0EC @ =0x000005CF - movs r2, #1 - bl SetTileType -_0804C090: - bl sub_08054570 - bl sub_08059278 - ldr r4, _0804C0F0 @ =0x00004072 - ldr r1, _0804C0F4 @ =0x00000A47 - adds r0, r4, #0 - movs r2, #1 - bl SetTile - ldr r1, _0804C0F8 @ =0x00000C47 - adds r0, r4, #0 - movs r2, #1 - bl SetTile - movs r0, #0x62 - bl CheckGlobalFlag - cmp r0, #0 - beq _0804C0C8 - ldr r0, _0804C0FC @ =gUnk_030010A0 - ldr r1, [r0, #0x10] - ldr r0, _0804C100 @ =0x02780078 - cmp r1, r0 - bne _0804C0C8 - movs r0, #0x72 - bl PlaySFX -_0804C0C8: - movs r0, #0x62 - bl ClearGlobalFlag - pop {r4, pc} - .align 2, 0 -_0804C0D0: .4byte gUnk_080D9108 -_0804C0D4: .4byte gUnk_080D9098 -_0804C0D8: .4byte 0x0000058E -_0804C0DC: .4byte 0x0000017B -_0804C0E0: .4byte 0x0000058F -_0804C0E4: .4byte 0x000005CE -_0804C0E8: .4byte 0x0000017D -_0804C0EC: .4byte 0x000005CF -_0804C0F0: .4byte 0x00004072 -_0804C0F4: .4byte 0x00000A47 -_0804C0F8: .4byte 0x00000C47 -_0804C0FC: .4byte gUnk_030010A0 -_0804C100: .4byte 0x02780078 - - thumb_func_start sub_0804C104 -sub_0804C104: @ 0x0804C104 - movs r0, #1 - bx lr - - thumb_func_start sub_0804C108 -sub_0804C108: @ 0x0804C108 - push {lr} - ldr r2, _0804C124 @ =gArea - ldrb r1, [r2] - movs r0, #0x40 - orrs r0, r1 - strb r0, [r2] - ldrb r0, [r2, #0xd] - movs r1, #1 - orrs r0, r1 - strb r0, [r2, #0xd] - bl sub_0804C128 - pop {pc} - .align 2, 0 -_0804C124: .4byte gArea - - thumb_func_start sub_0804C128 -sub_0804C128: @ 0x0804C128 - push {r4, r5, lr} - movs r0, #0 - bl sub_080AF250 - ldr r0, _0804C15C @ =gRoomVars - ldrb r0, [r0] - cmp r0, #0 - bne _0804C13A - b _0804C24C -_0804C13A: - ldr r1, _0804C160 @ =gArea - ldrb r3, [r1, #0xd] - movs r0, #0xe - ands r0, r3 - adds r5, r1, #0 - cmp r0, #0 - bne _0804C164 - movs r0, #0xf0 - ands r0, r3 - cmp r0, #0 - bne _0804C19C - movs r0, #0xf - rsbs r0, r0, #0 - ands r0, r3 - movs r1, #2 - orrs r0, r1 - b _0804C19A - .align 2, 0 -_0804C15C: .4byte gRoomVars -_0804C160: .4byte gArea -_0804C164: - ldr r2, _0804C18C @ =gRoomControls - ldr r1, _0804C190 @ =gUnk_080D9338 - lsls r4, r3, #0x1c - lsrs r0, r4, #0x1d - adds r0, r0, r1 - ldrb r1, [r2, #0x10] - ldrb r0, [r0] - cmp r1, r0 - bne _0804C194 - lsrs r0, r4, #0x1d - adds r0, #1 - movs r1, #7 - ands r0, r1 - lsls r0, r0, #1 - movs r1, #0xf - rsbs r1, r1, #0 - ands r1, r3 - orrs r1, r0 - strb r1, [r5, #0xd] - b _0804C19C - .align 2, 0 -_0804C18C: .4byte gRoomControls -_0804C190: .4byte gUnk_080D9338 -_0804C194: - movs r0, #0xf - rsbs r0, r0, #0 - ands r0, r3 -_0804C19A: - strb r0, [r5, #0xd] -_0804C19C: - ldrb r3, [r5, #0xd] - movs r0, #0xe - ands r0, r3 - cmp r0, #0 - bne _0804C1DE - ldr r2, _0804C1D0 @ =gRoomControls - ldr r1, _0804C1D4 @ =gUnk_080D9340 - lsls r4, r3, #0x18 - lsrs r0, r4, #0x1c - adds r0, r0, r1 - ldrb r1, [r2, #0x10] - ldrb r0, [r0] - cmp r1, r0 - bne _0804C1D8 - lsrs r0, r4, #0x1c - adds r0, #1 - lsls r0, r0, #4 - movs r1, #0xf - ands r1, r3 - orrs r1, r0 - movs r0, #0xf - rsbs r0, r0, #0 - ands r1, r0 - strb r1, [r5, #0xd] - b _0804C1DE - .align 2, 0 -_0804C1D0: .4byte gRoomControls -_0804C1D4: .4byte gUnk_080D9340 -_0804C1D8: - movs r0, #0xf - ands r0, r3 - strb r0, [r5, #0xd] -_0804C1DE: - adds r4, r5, #0 - ldrb r1, [r4, #0xd] - movs r0, #0xe - ands r0, r1 - cmp r0, #0xc - bne _0804C206 - movs r0, #1 - bl sub_080AF250 - movs r0, #0x62 - bl SetGlobalFlag - bl sub_0804C290 - ldrb r1, [r4, #0xd] - movs r0, #0xf - rsbs r0, r0, #0 - ands r0, r1 - strb r0, [r4, #0xd] - b _0804C254 -_0804C206: - movs r0, #0xf0 - ands r0, r1 - cmp r0, #0x60 - bne _0804C250 - movs r0, #1 - bl sub_080AF250 - movs r0, #0x5c - bl CheckLocalFlag - cmp r0, #0 - bne _0804C228 - ldr r1, _0804C244 @ =0x00000107 - movs r0, #0x73 - movs r2, #1 - bl SetTileType -_0804C228: - ldr r0, _0804C248 @ =gUnk_080D9328 - bl sub_0804B1AC - movs r0, #0x62 - bl SetGlobalFlag - bl sub_0804C290 - ldrb r1, [r5, #0xd] - movs r0, #0xf - ands r0, r1 - strb r0, [r5, #0xd] - b _0804C254 - .align 2, 0 -_0804C244: .4byte 0x00000107 -_0804C248: .4byte gUnk_080D9328 -_0804C24C: - bl sub_0804C258 -_0804C250: - bl sub_0804C290 -_0804C254: - pop {r4, r5, pc} - .align 2, 0 - - thumb_func_start sub_0804C258 -sub_0804C258: @ 0x0804C258 - push {lr} - ldr r3, _0804C288 @ =gArea - ldrb r0, [r3, #0xd] - movs r2, #0xf - rsbs r2, r2, #0 - ands r2, r0 - movs r0, #2 - orrs r2, r0 - movs r0, #0xf - ands r2, r0 - strb r2, [r3, #0xd] - ldr r0, _0804C28C @ =gUnk_030010A0 - ldrb r0, [r0, #0xe] - cmp r0, #4 - bne _0804C284 - movs r1, #0xe - adds r0, r2, #0 - orrs r0, r1 - strb r0, [r3, #0xd] - movs r0, #1 - bl sub_080AF250 -_0804C284: - pop {pc} - .align 2, 0 -_0804C288: .4byte gArea -_0804C28C: .4byte gUnk_030010A0 - - thumb_func_start sub_0804C290 -sub_0804C290: @ 0x0804C290 - push {lr} - ldr r0, _0804C2B4 @ =gArea - ldrb r1, [r0, #0xd] - movs r0, #0xe - ands r0, r1 - cmp r0, #0 - beq _0804C2B2 - lsls r1, r1, #0x1c - lsrs r1, r1, #0x1d - lsls r1, r1, #2 - ldr r0, _0804C2B8 @ =gUnk_080D9348 - adds r1, r1, r0 - ldrh r0, [r1] - ldrh r1, [r1, #2] - movs r2, #1 - bl SetTileType -_0804C2B2: - pop {pc} - .align 2, 0 -_0804C2B4: .4byte gArea -_0804C2B8: .4byte gUnk_080D9348 - - thumb_func_start sub_0804C2BC -sub_0804C2BC: @ 0x0804C2BC - movs r0, #1 - bx lr - - thumb_func_start nullsub_196 -nullsub_196: @ 0x0804C2C0 - bx lr - .align 2, 0 - - thumb_func_start sub_0804C2C4 -sub_0804C2C4: @ 0x0804C2C4 - movs r0, #1 - bx lr - - thumb_func_start nullsub_197 -nullsub_197: @ 0x0804C2C8 - bx lr - .align 2, 0 - - thumb_func_start sub_0804C2CC -sub_0804C2CC: @ 0x0804C2CC - movs r0, #1 - bx lr - - thumb_func_start sub_0804C2D0 -sub_0804C2D0: @ 0x0804C2D0 - push {lr} - movs r0, #0 - bl sub_08058324 - pop {pc} - .align 2, 0 - - thumb_func_start sub_0804C2DC -sub_0804C2DC: @ 0x0804C2DC - movs r0, #1 - bx lr - - thumb_func_start sub_0804C2E0 -sub_0804C2E0: @ 0x0804C2E0 - push {lr} - movs r0, #1 - bl sub_08058324 - pop {pc} - .align 2, 0 - - thumb_func_start sub_0804C2EC -sub_0804C2EC: @ 0x0804C2EC - movs r0, #1 - bx lr - - thumb_func_start sub_0804C2F0 -sub_0804C2F0: @ 0x0804C2F0 - push {lr} - movs r0, #2 - bl sub_08058324 - movs r0, #0x29 - bl CheckGlobalFlag - cmp r0, #0 - beq _0804C312 - movs r0, #0x2a - bl CheckGlobalFlag - cmp r0, #0 - bne _0804C312 - ldr r0, _0804C314 @ =gUnk_080D9800 - bl LoadRoomEntityList -_0804C312: - pop {pc} - .align 2, 0 -_0804C314: .4byte gUnk_080D9800 - - thumb_func_start sub_0804C318 -sub_0804C318: @ 0x0804C318 - push {lr} - bl sub_0804C2F0 - pop {pc} - - thumb_func_start sub_0804C320 -sub_0804C320: @ 0x0804C320 - movs r0, #1 - bx lr - - thumb_func_start sub_0804C324 -sub_0804C324: @ 0x0804C324 - push {lr} - movs r0, #3 - bl sub_08058324 - pop {pc} - .align 2, 0 - - thumb_func_start sub_0804C330 -sub_0804C330: @ 0x0804C330 - movs r0, #1 - bx lr - - thumb_func_start sub_0804C334 -sub_0804C334: @ 0x0804C334 - push {lr} - movs r0, #0x1e - bl SetGlobalFlag - movs r0, #0x5b - bl CheckKinstoneFused - cmp r0, #0 - beq _0804C34C - ldr r0, _0804C374 @ =gUnk_080D9CC8 - bl LoadRoomEntityList -_0804C34C: - ldr r0, _0804C378 @ =gUnk_02002A40 - ldr r0, [r0, #0x40] - movs r1, #0x80 - lsls r1, r1, #0x16 - ands r0, r1 - cmp r0, #0 - bne _0804C360 - ldr r0, _0804C37C @ =gUnk_080D9CE8 - bl LoadRoomEntityList -_0804C360: - movs r0, #0x15 - bl GetInventoryValue - cmp r0, #0 - bne _0804C370 - ldr r0, _0804C380 @ =gUnk_080D9C38 - bl LoadRoomEntityList -_0804C370: - pop {pc} - .align 2, 0 -_0804C374: .4byte gUnk_080D9CC8 -_0804C378: .4byte gUnk_02002A40 -_0804C37C: .4byte gUnk_080D9CE8 -_0804C380: .4byte gUnk_080D9C38 - - thumb_func_start sub_0804C384 -sub_0804C384: @ 0x0804C384 - push {lr} - ldr r0, _0804C39C @ =gUnk_02002A40 - ldr r0, [r0, #0x40] - movs r1, #0x80 - lsls r1, r1, #0x16 - ands r0, r1 - cmp r0, #0 - bne _0804C39A - ldr r0, _0804C3A0 @ =gUnk_080D9CE8 - bl LoadRoomEntityList -_0804C39A: - pop {pc} - .align 2, 0 -_0804C39C: .4byte gUnk_02002A40 -_0804C3A0: .4byte gUnk_080D9CE8 - - thumb_func_start sub_0804C3A4 -sub_0804C3A4: @ 0x0804C3A4 - movs r0, #1 - bx lr - - thumb_func_start nullsub_198 -nullsub_198: @ 0x0804C3A8 - bx lr - .align 2, 0 - - thumb_func_start sub_0804C3AC -sub_0804C3AC: @ 0x0804C3AC - movs r0, #1 - bx lr - - thumb_func_start nullsub_199 -nullsub_199: @ 0x0804C3B0 - bx lr - .align 2, 0 - - thumb_func_start sub_0804C3B4 -sub_0804C3B4: @ 0x0804C3B4 - movs r0, #1 - bx lr - - thumb_func_start nullsub_200 -nullsub_200: @ 0x0804C3B8 - bx lr - .align 2, 0 - - thumb_func_start sub_0804C3BC -sub_0804C3BC: @ 0x0804C3BC - movs r0, #1 - bx lr - - thumb_func_start nullsub_201 -nullsub_201: @ 0x0804C3C0 - bx lr - .align 2, 0 - - thumb_func_start sub_0804C3C4 -sub_0804C3C4: @ 0x0804C3C4 - movs r0, #1 - bx lr - - thumb_func_start nullsub_202 -nullsub_202: @ 0x0804C3C8 - bx lr - .align 2, 0 - - thumb_func_start sub_0804C3CC -sub_0804C3CC: @ 0x0804C3CC - push {lr} - movs r0, #0x39 - bl CheckLocalFlag - cmp r0, #0 - bne _0804C3DE - ldr r1, _0804C3E4 @ =gRoomVars - ldr r0, _0804C3E8 @ =gUnk_080DA230 - str r0, [r1, #0x6c] -_0804C3DE: - movs r0, #1 - pop {pc} - .align 2, 0 -_0804C3E4: .4byte gRoomVars -_0804C3E8: .4byte gUnk_080DA230 - - thumb_func_start nullsub_203 -nullsub_203: @ 0x0804C3EC - bx lr - .align 2, 0 - - thumb_func_start sub_0804C3F0 -sub_0804C3F0: @ 0x0804C3F0 - movs r0, #1 - bx lr - - thumb_func_start nullsub_204 -nullsub_204: @ 0x0804C3F4 - bx lr - .align 2, 0 - - thumb_func_start sub_0804C3F8 -sub_0804C3F8: @ 0x0804C3F8 - movs r0, #1 - bx lr - - thumb_func_start nullsub_205 -nullsub_205: @ 0x0804C3FC - bx lr - .align 2, 0 - - thumb_func_start sub_0804C400 -sub_0804C400: @ 0x0804C400 - movs r0, #1 - bx lr - - thumb_func_start nullsub_206 -nullsub_206: @ 0x0804C404 - bx lr - .align 2, 0 - - thumb_func_start sub_0804C408 -sub_0804C408: @ 0x0804C408 - movs r0, #1 - bx lr - - thumb_func_start nullsub_207 -nullsub_207: @ 0x0804C40C - bx lr - .align 2, 0 - - thumb_func_start sub_0804C410 -sub_0804C410: @ 0x0804C410 - movs r0, #1 - bx lr - - thumb_func_start nullsub_208 -nullsub_208: @ 0x0804C414 - bx lr - .align 2, 0 - - thumb_func_start sub_0804C418 -sub_0804C418: @ 0x0804C418 - movs r0, #1 - bx lr - - thumb_func_start nullsub_209 -nullsub_209: @ 0x0804C41C - bx lr - .align 2, 0 - - thumb_func_start sub_0804C420 -sub_0804C420: @ 0x0804C420 - movs r0, #1 - bx lr - - thumb_func_start sub_0804C424 -sub_0804C424: @ 0x0804C424 - push {lr} - bl sub_0801AFE4 - pop {pc} - - thumb_func_start sub_0804C42C -sub_0804C42C: @ 0x0804C42C - movs r0, #1 - bx lr - - thumb_func_start sub_0804C430 -sub_0804C430: @ 0x0804C430 - push {lr} - bl sub_0801AFE4 - pop {pc} - - thumb_func_start sub_0804C438 -sub_0804C438: @ 0x0804C438 - movs r0, #1 - bx lr - - thumb_func_start sub_0804C43C -sub_0804C43C: @ 0x0804C43C - push {lr} - bl sub_0801AFE4 - pop {pc} - - thumb_func_start sub_0804C444 -sub_0804C444: @ 0x0804C444 - movs r0, #1 - bx lr - - thumb_func_start sub_0804C448 -sub_0804C448: @ 0x0804C448 - push {lr} - bl sub_0801AFE4 - pop {pc} - - thumb_func_start sub_0804C450 -sub_0804C450: @ 0x0804C450 - movs r0, #1 - bx lr - - thumb_func_start sub_0804C454 -sub_0804C454: @ 0x0804C454 - push {lr} - bl sub_0801AFE4 - pop {pc} - - thumb_func_start sub_0804C45C -sub_0804C45C: @ 0x0804C45C - movs r0, #1 - bx lr - - thumb_func_start sub_0804C460 -sub_0804C460: @ 0x0804C460 - push {lr} - bl sub_0801AFE4 - pop {pc} - - thumb_func_start sub_0804C468 -sub_0804C468: @ 0x0804C468 - movs r0, #1 - bx lr - - thumb_func_start sub_0804C46C -sub_0804C46C: @ 0x0804C46C - push {lr} - bl sub_0801AFE4 - pop {pc} - - thumb_func_start sub_0804C474 -sub_0804C474: @ 0x0804C474 - movs r0, #1 - bx lr - - thumb_func_start sub_0804C478 -sub_0804C478: @ 0x0804C478 - push {lr} - bl sub_0801AFE4 - pop {pc} - - thumb_func_start sub_0804C480 -sub_0804C480: @ 0x0804C480 - movs r0, #1 - bx lr - - thumb_func_start sub_0804C484 -sub_0804C484: @ 0x0804C484 - push {lr} - bl sub_0801AFE4 - pop {pc} - - thumb_func_start sub_0804C48C -sub_0804C48C: @ 0x0804C48C - movs r0, #1 - bx lr - - thumb_func_start sub_0804C490 -sub_0804C490: @ 0x0804C490 - push {r4, lr} - movs r0, #0x5b - bl GetInventoryValue - cmp r0, #0 - bne _0804C4A8 - ldr r0, _0804C4A4 @ =gUnk_080DAB44 - bl LoadRoomEntityList - b _0804C4AE - .align 2, 0 -_0804C4A4: .4byte gUnk_080DAB44 -_0804C4A8: - ldr r0, _0804C4D8 @ =gUnk_080DAB64 - bl LoadRoomEntityList -_0804C4AE: - movs r0, #0x54 - bl CheckGlobalFlag - cmp r0, #0 - beq _0804C4F0 - bl sub_08060354 - cmp r0, #0 - beq _0804C4F0 - movs r0, #0 - bl SetRoomFlag - movs r0, #0x3b - bl CheckGlobalFlag - cmp r0, #0 - bne _0804C4DC - movs r4, #0xc8 - lsls r4, r4, #6 - b _0804C522 - .align 2, 0 -_0804C4D8: .4byte gUnk_080DAB64 -_0804C4DC: - movs r0, #0x3c - bl CheckGlobalFlag - movs r4, #0x91 - lsls r4, r4, #7 - cmp r0, #0 - bne _0804C522 - movs r4, #0x8c - lsls r4, r4, #7 - b _0804C522 -_0804C4F0: - movs r0, #0x3d - bl CheckGlobalFlag - cmp r0, #0 - beq _0804C500 - movs r4, #0x92 - lsls r4, r4, #7 - b _0804C522 -_0804C500: - movs r0, #0x3c - bl CheckGlobalFlag - cmp r0, #0 - beq _0804C510 - movs r4, #0x94 - lsls r4, r4, #7 - b _0804C522 -_0804C510: - movs r0, #0x3b - bl CheckGlobalFlag - movs r4, #0x92 - lsls r4, r4, #8 - cmp r0, #0 - beq _0804C522 - movs r4, #0xa4 - lsls r4, r4, #7 -_0804C522: - movs r0, #0x80 - lsls r0, r0, #8 - ands r0, r4 - cmp r0, #0 - beq _0804C532 - ldr r0, _0804C5B8 @ =gUnk_080DAB84 - bl LoadRoomEntityList -_0804C532: - movs r0, #0x80 - lsls r0, r0, #7 - ands r0, r4 - cmp r0, #0 - beq _0804C542 - ldr r0, _0804C5BC @ =gUnk_080DAC54 - bl LoadRoomEntityList -_0804C542: - movs r0, #0x80 - lsls r0, r0, #6 - ands r0, r4 - cmp r0, #0 - beq _0804C552 - ldr r0, _0804C5C0 @ =gUnk_080DAD24 - bl LoadRoomEntityList -_0804C552: - movs r0, #0x80 - lsls r0, r0, #5 - ands r0, r4 - cmp r0, #0 - beq _0804C562 - ldr r0, _0804C5C4 @ =gUnk_080DABC4 - bl LoadRoomEntityList -_0804C562: - movs r0, #0x80 - lsls r0, r0, #4 - ands r0, r4 - cmp r0, #0 - beq _0804C572 - ldr r0, _0804C5C8 @ =gUnk_080DAC94 - bl LoadRoomEntityList -_0804C572: - movs r0, #0x80 - lsls r0, r0, #3 - ands r0, r4 - cmp r0, #0 - beq _0804C582 - ldr r0, _0804C5CC @ =gUnk_080DAD64 - bl LoadRoomEntityList -_0804C582: - movs r0, #0x80 - lsls r0, r0, #2 - ands r0, r4 - cmp r0, #0 - beq _0804C592 - ldr r0, _0804C5D0 @ =gUnk_080DAC04 - bl LoadRoomEntityList -_0804C592: - movs r0, #0x80 - lsls r0, r0, #1 - ands r0, r4 - cmp r0, #0 - beq _0804C5A2 - ldr r0, _0804C5D4 @ =gUnk_080DACD4 - bl LoadRoomEntityList -_0804C5A2: - movs r0, #0x80 - ands r4, r0 - cmp r4, #0 - beq _0804C5B0 - ldr r0, _0804C5D8 @ =gUnk_080DADA4 - bl LoadRoomEntityList -_0804C5B0: - bl sub_0801AFE4 - pop {r4, pc} - .align 2, 0 -_0804C5B8: .4byte gUnk_080DAB84 -_0804C5BC: .4byte gUnk_080DAC54 -_0804C5C0: .4byte gUnk_080DAD24 -_0804C5C4: .4byte gUnk_080DABC4 -_0804C5C8: .4byte gUnk_080DAC94 -_0804C5CC: .4byte gUnk_080DAD64 -_0804C5D0: .4byte gUnk_080DAC04 -_0804C5D4: .4byte gUnk_080DACD4 -_0804C5D8: .4byte gUnk_080DADA4 - - thumb_func_start sub_0804C5DC -sub_0804C5DC: @ 0x0804C5DC - movs r0, #1 - bx lr - - thumb_func_start sub_0804C5E0 -sub_0804C5E0: @ 0x0804C5E0 - push {lr} - movs r0, #0x56 - bl CheckGlobalFlag - cmp r0, #0 - beq _0804C5F2 - ldr r0, _0804C5F8 @ =gUnk_080DAEE8 - bl LoadRoomEntityList -_0804C5F2: - bl sub_0801AFE4 - pop {pc} - .align 2, 0 -_0804C5F8: .4byte gUnk_080DAEE8 - - thumb_func_start sub_0804C5FC -sub_0804C5FC: @ 0x0804C5FC - movs r0, #1 - bx lr - - thumb_func_start sub_0804C600 -sub_0804C600: @ 0x0804C600 - push {lr} - movs r0, #0x56 - bl CheckGlobalFlag - cmp r0, #0 - beq _0804C612 - ldr r0, _0804C618 @ =gUnk_080DAF80 - bl LoadRoomEntityList -_0804C612: - bl sub_0801AFE4 - pop {pc} - .align 2, 0 -_0804C618: .4byte gUnk_080DAF80 - - thumb_func_start sub_0804C61C -sub_0804C61C: @ 0x0804C61C - movs r0, #1 - bx lr - - thumb_func_start sub_0804C620 -sub_0804C620: @ 0x0804C620 - push {lr} - movs r0, #0x56 - bl CheckGlobalFlag - cmp r0, #0 - beq _0804C632 - ldr r0, _0804C638 @ =gUnk_080DB018 - bl LoadRoomEntityList -_0804C632: - bl sub_0801AFE4 - pop {pc} - .align 2, 0 -_0804C638: .4byte gUnk_080DB018 - - thumb_func_start sub_0804C63C -sub_0804C63C: @ 0x0804C63C - movs r0, #1 - bx lr - - thumb_func_start sub_0804C640 -sub_0804C640: @ 0x0804C640 - push {lr} - bl sub_0801AFE4 - pop {pc} - - thumb_func_start sub_0804C648 -sub_0804C648: @ 0x0804C648 - movs r0, #1 - bx lr - - thumb_func_start sub_0804C64C -sub_0804C64C: @ 0x0804C64C - push {lr} - bl sub_0801AFE4 - pop {pc} - - thumb_func_start sub_0804C654 -sub_0804C654: @ 0x0804C654 - movs r0, #1 - bx lr - - thumb_func_start sub_0804C658 -sub_0804C658: @ 0x0804C658 - push {lr} - bl sub_0801AFE4 - pop {pc} - - thumb_func_start sub_0804C660 -sub_0804C660: @ 0x0804C660 - movs r0, #1 - bx lr - - thumb_func_start sub_0804C664 -sub_0804C664: @ 0x0804C664 - push {lr} - ldr r0, _0804C67C @ =gUnk_02002A40 - ldrb r0, [r0, #8] - cmp r0, #8 - bls _0804C674 - ldr r0, _0804C680 @ =gUnk_080DB238 - bl LoadRoomEntityList -_0804C674: - bl sub_0801AFE4 - pop {pc} - .align 2, 0 -_0804C67C: .4byte gUnk_02002A40 -_0804C680: .4byte gUnk_080DB238 - - thumb_func_start sub_0804C684 -sub_0804C684: @ 0x0804C684 - movs r0, #1 - bx lr - - thumb_func_start sub_0804C688 -sub_0804C688: @ 0x0804C688 - push {lr} - bl sub_0801AFE4 - pop {pc} - - thumb_func_start sub_0804C690 -sub_0804C690: @ 0x0804C690 - movs r0, #1 - bx lr - - thumb_func_start sub_0804C694 -sub_0804C694: @ 0x0804C694 - push {lr} - bl sub_0801AFE4 - pop {pc} - - thumb_func_start sub_0804C69C -sub_0804C69C: @ 0x0804C69C - movs r0, #1 - bx lr - - thumb_func_start sub_0804C6A0 -sub_0804C6A0: @ 0x0804C6A0 - push {lr} - bl sub_0801AFE4 - pop {pc} - - thumb_func_start sub_0804C6A8 -sub_0804C6A8: @ 0x0804C6A8 - movs r0, #1 - bx lr - - thumb_func_start sub_0804C6AC -sub_0804C6AC: @ 0x0804C6AC - push {lr} - bl sub_0801AFE4 - pop {pc} - - thumb_func_start sub_0804C6B4 -sub_0804C6B4: @ 0x0804C6B4 - movs r0, #1 - bx lr - - thumb_func_start sub_0804C6B8 -sub_0804C6B8: @ 0x0804C6B8 - push {lr} - movs r0, #0x46 - bl GetInventoryValue - cmp r0, #0 - bne _0804C6E4 - movs r0, #0x3b - bl GetInventoryValue - cmp r0, #0 - bne _0804C6E4 - movs r0, #0x71 - bl CheckLocalFlag - cmp r0, #0 - beq _0804C6E4 - ldr r0, _0804C6E0 @ =gUnk_080DB4D0 - bl LoadRoomEntityList - b _0804C6EA - .align 2, 0 -_0804C6E0: .4byte gUnk_080DB4D0 -_0804C6E4: - ldr r0, _0804C6F0 @ =gUnk_080DB4A0 - bl LoadRoomEntityList -_0804C6EA: - bl sub_0801AFE4 - pop {pc} - .align 2, 0 -_0804C6F0: .4byte gUnk_080DB4A0 - - thumb_func_start sub_0804C6F4 -sub_0804C6F4: @ 0x0804C6F4 - movs r0, #1 - bx lr - - thumb_func_start sub_0804C6F8 -sub_0804C6F8: @ 0x0804C6F8 - push {lr} - bl sub_0801AFE4 - pop {pc} - - thumb_func_start sub_0804C700 -sub_0804C700: @ 0x0804C700 - movs r0, #1 - bx lr - - thumb_func_start sub_0804C704 -sub_0804C704: @ 0x0804C704 - push {lr} - bl sub_0801AFE4 - pop {pc} - - thumb_func_start sub_0804C70C -sub_0804C70C: @ 0x0804C70C - movs r0, #1 - bx lr - - thumb_func_start sub_0804C710 -sub_0804C710: @ 0x0804C710 - push {lr} - bl sub_0801AFE4 - pop {pc} - - thumb_func_start sub_0804C718 -sub_0804C718: @ 0x0804C718 - movs r0, #1 - bx lr - - thumb_func_start sub_0804C71C -sub_0804C71C: @ 0x0804C71C - push {lr} - bl sub_0801AFE4 - pop {pc} - - thumb_func_start sub_0804C724 -sub_0804C724: @ 0x0804C724 - movs r0, #1 - bx lr - - thumb_func_start sub_0804C728 -sub_0804C728: @ 0x0804C728 - push {lr} - bl sub_0801AFE4 - pop {pc} - - thumb_func_start sub_0804C730 -sub_0804C730: @ 0x0804C730 - push {lr} - movs r0, #0x29 - bl CheckGlobalFlag - cmp r0, #0 - beq _0804C74C - movs r0, #0x73 - bl CheckLocalFlag - cmp r0, #0 - bne _0804C74C - ldr r1, _0804C750 @ =gRoomVars - ldr r0, _0804C754 @ =gUnk_080DB910 - str r0, [r1, #0x70] -_0804C74C: - movs r0, #1 - pop {pc} - .align 2, 0 -_0804C750: .4byte gRoomVars -_0804C754: .4byte gUnk_080DB910 - - thumb_func_start sub_0804C758 -sub_0804C758: @ 0x0804C758 - push {lr} - ldr r0, _0804C780 @ =gUnk_080DB8F0 - bl LoadRoomEntityList - movs r0, #0x46 - bl GetInventoryValue - cmp r0, #0 - bne _0804C77A - movs r0, #0x29 - bl CheckGlobalFlag - cmp r0, #0 - beq _0804C77A - ldr r0, _0804C784 @ =gUnk_080DB820 - bl LoadRoomEntityList -_0804C77A: - bl sub_0801AFE4 - pop {pc} - .align 2, 0 -_0804C780: .4byte gUnk_080DB8F0 -_0804C784: .4byte gUnk_080DB820 - - thumb_func_start sub_0804C788 -sub_0804C788: @ 0x0804C788 - movs r0, #1 - bx lr - - thumb_func_start sub_0804C78C -sub_0804C78C: @ 0x0804C78C - push {lr} - movs r0, #0x46 - bl GetInventoryValue - cmp r0, #0 - bne _0804C7A2 - movs r0, #0x73 - bl CheckLocalFlag - cmp r0, #0 - bne _0804C7A8 -_0804C7A2: - ldr r0, _0804C7B0 @ =gUnk_080DBA08 - bl LoadRoomEntityList -_0804C7A8: - bl sub_0801AFE4 - pop {pc} - .align 2, 0 -_0804C7B0: .4byte gUnk_080DBA08 - - thumb_func_start sub_0804C7B4 -sub_0804C7B4: @ 0x0804C7B4 - movs r0, #1 - bx lr - - thumb_func_start sub_0804C7B8 -sub_0804C7B8: @ 0x0804C7B8 - push {r4, r5, lr} - movs r0, #0x60 - bl CheckLocalFlag - cmp r0, #0 - bne _0804C7CA - ldr r0, _0804C7E4 @ =gUnk_080DBB50 - bl LoadRoomEntityList -_0804C7CA: - movs r0, #0x15 - bl GetInventoryValue - cmp r0, #1 - bne _0804C7F0 - ldr r0, _0804C7E8 @ =gUnk_080DBB70 - bl LoadRoomEntityList - ldr r0, _0804C7EC @ =gUnk_080DBB10 - bl LoadRoomEntityList - b _0804C7F6 - .align 2, 0 -_0804C7E4: .4byte gUnk_080DBB50 -_0804C7E8: .4byte gUnk_080DBB70 -_0804C7EC: .4byte gUnk_080DBB10 -_0804C7F0: - ldr r0, _0804C824 @ =gUnk_080DBAD0 - bl LoadRoomEntityList -_0804C7F6: - movs r0, #0x62 - bl CheckLocalFlag - cmp r0, #0 - bne _0804C818 - movs r5, #0xa0 - lsls r5, r5, #1 - movs r4, #0 -_0804C806: - ldr r0, _0804C828 @ =0x00004072 - adds r1, r5, #0 - movs r2, #1 - bl SetTileType - adds r4, #1 - adds r5, #1 - cmp r4, #0x12 - bls _0804C806 -_0804C818: - ldr r0, _0804C82C @ =gUnk_080DBB90 - bl LoadRoomEntityList - bl sub_0801AFE4 - pop {r4, r5, pc} - .align 2, 0 -_0804C824: .4byte gUnk_080DBAD0 -_0804C828: .4byte 0x00004072 -_0804C82C: .4byte gUnk_080DBB90 - - thumb_func_start sub_0804C830 -sub_0804C830: @ 0x0804C830 - movs r0, #1 - bx lr - - thumb_func_start nullsub_210 -nullsub_210: @ 0x0804C834 - bx lr - .align 2, 0 - - thumb_func_start sub_0804C838 -sub_0804C838: @ 0x0804C838 - movs r0, #1 - bx lr - - thumb_func_start nullsub_211 -nullsub_211: @ 0x0804C83C - bx lr - .align 2, 0 - - thumb_func_start sub_0804C840 -sub_0804C840: @ 0x0804C840 - movs r0, #1 - bx lr - - thumb_func_start nullsub_212 -nullsub_212: @ 0x0804C844 - bx lr - .align 2, 0 - - thumb_func_start sub_0804C848 -sub_0804C848: @ 0x0804C848 - movs r0, #1 - bx lr - - thumb_func_start nullsub_213 -nullsub_213: @ 0x0804C84C - bx lr - .align 2, 0 - - thumb_func_start sub_0804C850 -sub_0804C850: @ 0x0804C850 - movs r0, #1 - bx lr - - thumb_func_start nullsub_214 -nullsub_214: @ 0x0804C854 - bx lr - .align 2, 0 - - thumb_func_start sub_0804C858 -sub_0804C858: @ 0x0804C858 - movs r0, #1 - bx lr - - thumb_func_start nullsub_215 -nullsub_215: @ 0x0804C85C - bx lr - .align 2, 0 - - thumb_func_start sub_0804C860 -sub_0804C860: @ 0x0804C860 - movs r0, #1 - bx lr - - thumb_func_start nullsub_216 -nullsub_216: @ 0x0804C864 - bx lr - .align 2, 0 - - thumb_func_start sub_0804C868 -sub_0804C868: @ 0x0804C868 - movs r0, #1 - bx lr - - thumb_func_start nullsub_217 -nullsub_217: @ 0x0804C86C - bx lr - .align 2, 0 - - thumb_func_start sub_0804C870 -sub_0804C870: @ 0x0804C870 - movs r0, #1 - bx lr - - thumb_func_start nullsub_218 -nullsub_218: @ 0x0804C874 - bx lr - .align 2, 0 - - thumb_func_start sub_0804C878 -sub_0804C878: @ 0x0804C878 - movs r0, #1 - bx lr - - thumb_func_start nullsub_219 -nullsub_219: @ 0x0804C87C - bx lr - .align 2, 0 - - thumb_func_start sub_0804C880 -sub_0804C880: @ 0x0804C880 - movs r0, #1 - bx lr - - thumb_func_start sub_0804C884 -sub_0804C884: @ 0x0804C884 - push {lr} - movs r0, #0x5b - bl GetInventoryValue - cmp r0, #0 - bne _0804C8B4 - ldr r0, _0804C8AC @ =gUnk_080DC390 - bl LoadRoomEntityList - movs r0, #0x80 - lsls r0, r0, #2 - movs r1, #0x80 - bl CheckLocalFlagByOffset - cmp r0, #0 - bne _0804C8CA - ldr r0, _0804C8B0 @ =gUnk_080DC3F0 - bl LoadRoomEntityList - b _0804C8CA - .align 2, 0 -_0804C8AC: .4byte gUnk_080DC390 -_0804C8B0: .4byte gUnk_080DC3F0 -_0804C8B4: - ldr r0, _0804C900 @ =gUnk_080DC430 - bl LoadRoomEntityList - movs r0, #0x11 - bl GetInventoryValue - cmp r0, #0 - bne _0804C8CA - ldr r0, _0804C904 @ =gUnk_080DC530 - bl LoadRoomEntityList -_0804C8CA: - movs r0, #0x80 - lsls r0, r0, #2 - movs r1, #0x83 - bl CheckLocalFlagByOffset - cmp r0, #0 - bne _0804C8E8 - movs r0, #0x11 - bl GetInventoryValue - cmp r0, #0 - beq _0804C8E8 - ldr r0, _0804C908 @ =gUnk_080DC470 - bl LoadRoomEntityList -_0804C8E8: - movs r0, #0x8d - bl CheckLocalFlag - cmp r0, #0 - bne _0804C8F8 - ldr r0, _0804C90C @ =gUnk_080DC4C0 - bl LoadRoomEntityList -_0804C8F8: - bl sub_08057E64 - pop {pc} - .align 2, 0 -_0804C900: .4byte gUnk_080DC430 -_0804C904: .4byte gUnk_080DC530 -_0804C908: .4byte gUnk_080DC470 -_0804C90C: .4byte gUnk_080DC4C0 - - thumb_func_start sub_0804C910 -sub_0804C910: @ 0x0804C910 - movs r0, #1 - bx lr - - thumb_func_start nullsub_220 -nullsub_220: @ 0x0804C914 - bx lr - .align 2, 0 - - thumb_func_start sub_0804C918 -sub_0804C918: @ 0x0804C918 - push {r4, r5, lr} - ldr r4, _0804C940 @ =gUnk_086D4460 - movs r1, #0xc0 - lsls r1, r1, #0x13 - movs r5, #0x80 - lsls r5, r5, #7 - adds r0, r4, #0 - adds r2, r5, #0 - bl sub_08000E96 - adds r4, r4, r5 - ldr r1, _0804C944 @ =0x06008000 - adds r0, r4, #0 - adds r2, r5, #0 - bl sub_08000E96 - movs r0, #0x19 - bl LoadPalettesByPaletteGroupIndex - pop {r4, r5, pc} - .align 2, 0 -_0804C940: .4byte gUnk_086D4460 -_0804C944: .4byte 0x06008000 - - thumb_func_start sub_0804C948 -sub_0804C948: @ 0x0804C948 - movs r0, #1 - bx lr - - thumb_func_start nullsub_221 -nullsub_221: @ 0x0804C94C - bx lr - .align 2, 0 - - thumb_func_start sub_0804C950 -sub_0804C950: @ 0x0804C950 - movs r0, #1 - bx lr - - thumb_func_start nullsub_222 -nullsub_222: @ 0x0804C954 - bx lr - .align 2, 0 - - thumb_func_start sub_0804C958 -sub_0804C958: @ 0x0804C958 - movs r0, #1 - bx lr - - thumb_func_start nullsub_223 -nullsub_223: @ 0x0804C95C - bx lr - .align 2, 0 - - thumb_func_start sub_0804C960 -sub_0804C960: @ 0x0804C960 - movs r0, #1 - bx lr - - thumb_func_start nullsub_224 -nullsub_224: @ 0x0804C964 - bx lr - .align 2, 0 - - thumb_func_start sub_0804C968 -sub_0804C968: @ 0x0804C968 - movs r0, #1 - bx lr - - thumb_func_start nullsub_225 -nullsub_225: @ 0x0804C96C - bx lr - .align 2, 0 - - thumb_func_start sub_0804C970 -sub_0804C970: @ 0x0804C970 - movs r0, #1 - bx lr - - thumb_func_start nullsub_226 -nullsub_226: @ 0x0804C974 - bx lr - .align 2, 0 - - thumb_func_start sub_0804C978 -sub_0804C978: @ 0x0804C978 - movs r0, #1 - bx lr - - thumb_func_start nullsub_227 -nullsub_227: @ 0x0804C97C - bx lr - .align 2, 0 - - thumb_func_start sub_0804C980 -sub_0804C980: @ 0x0804C980 - movs r0, #1 - bx lr - - thumb_func_start nullsub_228 -nullsub_228: @ 0x0804C984 - bx lr - .align 2, 0 - - thumb_func_start sub_0804C988 -sub_0804C988: @ 0x0804C988 - movs r0, #1 - bx lr - - thumb_func_start nullsub_229 -nullsub_229: @ 0x0804C98C - bx lr - .align 2, 0 - - thumb_func_start sub_0804C990 -sub_0804C990: @ 0x0804C990 - movs r0, #1 - bx lr - - thumb_func_start nullsub_230 -nullsub_230: @ 0x0804C994 - bx lr - .align 2, 0 - - thumb_func_start sub_0804C998 -sub_0804C998: @ 0x0804C998 - movs r0, #1 - bx lr - - thumb_func_start sub_0804C99C -sub_0804C99C: @ 0x0804C99C - push {lr} - movs r0, #9 - bl GetInventoryValue - cmp r0, #0 - bne _0804C9AE - ldr r0, _0804C9B0 @ =gUnk_080DCB10 - bl LoadRoomEntityList -_0804C9AE: - pop {pc} - .align 2, 0 -_0804C9B0: .4byte gUnk_080DCB10 - - thumb_func_start sub_0804C9B4 -sub_0804C9B4: @ 0x0804C9B4 - movs r0, #1 - bx lr - - thumb_func_start nullsub_231 -nullsub_231: @ 0x0804C9B8 - bx lr - .align 2, 0 - - thumb_func_start sub_0804C9BC -sub_0804C9BC: @ 0x0804C9BC - movs r0, #1 - bx lr - - thumb_func_start nullsub_232 -nullsub_232: @ 0x0804C9C0 - bx lr - .align 2, 0 - - thumb_func_start sub_0804C9C4 -sub_0804C9C4: @ 0x0804C9C4 - movs r0, #1 - bx lr - - thumb_func_start nullsub_233 -nullsub_233: @ 0x0804C9C8 - bx lr - .align 2, 0 - - thumb_func_start sub_0804C9CC -sub_0804C9CC: @ 0x0804C9CC - movs r0, #1 - bx lr - - thumb_func_start nullsub_234 -nullsub_234: @ 0x0804C9D0 - bx lr - .align 2, 0 - - thumb_func_start sub_0804C9D4 -sub_0804C9D4: @ 0x0804C9D4 - movs r0, #1 - bx lr - - thumb_func_start nullsub_235 -nullsub_235: @ 0x0804C9D8 - bx lr - .align 2, 0 - - thumb_func_start sub_0804C9DC -sub_0804C9DC: @ 0x0804C9DC - movs r0, #1 - bx lr - - thumb_func_start nullsub_236 -nullsub_236: @ 0x0804C9E0 - bx lr - .align 2, 0 - - thumb_func_start sub_0804C9E4 -sub_0804C9E4: @ 0x0804C9E4 - movs r0, #1 - bx lr - - thumb_func_start nullsub_237 -nullsub_237: @ 0x0804C9E8 - bx lr - .align 2, 0 - - thumb_func_start sub_0804C9EC -sub_0804C9EC: @ 0x0804C9EC - movs r0, #1 - bx lr - - thumb_func_start nullsub_238 -nullsub_238: @ 0x0804C9F0 - bx lr - .align 2, 0 - - thumb_func_start sub_0804C9F4 -sub_0804C9F4: @ 0x0804C9F4 - movs r0, #1 - bx lr - - thumb_func_start nullsub_239 -nullsub_239: @ 0x0804C9F8 - bx lr - .align 2, 0 - - thumb_func_start sub_0804C9FC -sub_0804C9FC: @ 0x0804C9FC - movs r0, #1 - bx lr - - thumb_func_start nullsub_240 -nullsub_240: @ 0x0804CA00 - bx lr - .align 2, 0 - - thumb_func_start sub_0804CA04 -sub_0804CA04: @ 0x0804CA04 - movs r0, #1 - bx lr - - thumb_func_start nullsub_241 -nullsub_241: @ 0x0804CA08 - bx lr - .align 2, 0 - - thumb_func_start sub_0804CA0C -sub_0804CA0C: @ 0x0804CA0C - movs r0, #1 - bx lr - - thumb_func_start sub_0804CA10 -sub_0804CA10: @ 0x0804CA10 - push {lr} - movs r0, #0x56 - bl CheckGlobalFlag - cmp r0, #0 - bne _0804CA22 - ldr r0, _0804CA34 @ =gUnk_080DD214 - bl LoadRoomEntityList -_0804CA22: - movs r0, #0x7f - bl CheckLocalFlag - cmp r0, #0 - bne _0804CA3C - ldr r0, _0804CA38 @ =gUnk_080DD274 - bl LoadRoomEntityList - b _0804CA42 - .align 2, 0 -_0804CA34: .4byte gUnk_080DD214 -_0804CA38: .4byte gUnk_080DD274 -_0804CA3C: - ldr r0, _0804CA4C @ =gUnk_080DD294 - bl LoadRoomEntityList -_0804CA42: - movs r0, #0x8e - bl SetLocalFlag - pop {pc} - .align 2, 0 -_0804CA4C: .4byte gUnk_080DD294 - - thumb_func_start sub_0804CA50 -sub_0804CA50: @ 0x0804CA50 - movs r0, #1 - bx lr - - thumb_func_start sub_0804CA54 -sub_0804CA54: @ 0x0804CA54 - push {lr} - ldr r0, _0804CA6C @ =gUnk_02002A40 - ldr r0, [r0, #0x40] - movs r1, #0x80 - lsls r1, r1, #0x13 - ands r0, r1 - cmp r0, #0 - bne _0804CA6A - ldr r0, _0804CA70 @ =gUnk_080DD364 - bl LoadRoomEntityList -_0804CA6A: - pop {pc} - .align 2, 0 -_0804CA6C: .4byte gUnk_02002A40 -_0804CA70: .4byte gUnk_080DD364 - - thumb_func_start sub_0804CA74 -sub_0804CA74: @ 0x0804CA74 - push {lr} - ldr r0, _0804CA8C @ =gUnk_02002A40 - ldr r0, [r0, #0x40] - movs r1, #0x80 - lsls r1, r1, #0x13 - ands r0, r1 - cmp r0, #0 - bne _0804CA8A - ldr r0, _0804CA90 @ =gUnk_080DD364 - bl LoadRoomEntityList -_0804CA8A: - pop {pc} - .align 2, 0 -_0804CA8C: .4byte gUnk_02002A40 -_0804CA90: .4byte gUnk_080DD364 - - thumb_func_start sub_0804CA94 -sub_0804CA94: @ 0x0804CA94 - movs r0, #1 - bx lr - - thumb_func_start nullsub_242 -nullsub_242: @ 0x0804CA98 - bx lr - .align 2, 0 - - thumb_func_start sub_0804CA9C -sub_0804CA9C: @ 0x0804CA9C - movs r0, #1 - bx lr - - thumb_func_start sub_0804CAA0 -sub_0804CAA0: @ 0x0804CAA0 - push {lr} - movs r0, #0x24 - bl CheckGlobalFlag - cmp r0, #0 - beq _0804CAB2 - ldr r0, _0804CAC4 @ =0x000006DE - bl sub_0809F814 -_0804CAB2: - movs r0, #0xf3 - bl CheckLocalFlag - cmp r0, #0 - beq _0804CAC8 - movs r0, #0xe0 - bl sub_0809F814 - b _0804CACE - .align 2, 0 -_0804CAC4: .4byte 0x000006DE -_0804CAC8: - ldr r0, _0804CAE0 @ =gUnk_080DD7E0 - bl LoadRoomEntityList -_0804CACE: - movs r0, #0xf5 - bl CheckLocalFlag - cmp r0, #0 - beq _0804CAE8 - ldr r0, _0804CAE4 @ =0x00000BA3 - bl sub_0809F814 - b _0804CAEE - .align 2, 0 -_0804CAE0: .4byte gUnk_080DD7E0 -_0804CAE4: .4byte 0x00000BA3 -_0804CAE8: - ldr r0, _0804CAF0 @ =gUnk_080DD840 - bl LoadRoomEntityList -_0804CAEE: - pop {pc} - .align 2, 0 -_0804CAF0: .4byte gUnk_080DD840 - - thumb_func_start sub_0804CAF4 -sub_0804CAF4: @ 0x0804CAF4 - movs r0, #1 - bx lr - - thumb_func_start sub_0804CAF8 -sub_0804CAF8: @ 0x0804CAF8 - push {lr} - bl sub_080300E8 - movs r0, #0x24 - bl SetLocalFlag - pop {pc} - .align 2, 0 - - thumb_func_start sub_0804CB08 -sub_0804CB08: @ 0x0804CB08 - movs r0, #1 - bx lr - - thumb_func_start nullsub_37 -nullsub_37: @ 0x0804CB0C - bx lr - .align 2, 0 - - thumb_func_start sub_0804CB10 -sub_0804CB10: @ 0x0804CB10 - movs r0, #1 - bx lr - - thumb_func_start sub_0804CB14 -sub_0804CB14: @ 0x0804CB14 - push {lr} - movs r0, #0x41 - bl CheckKinstoneFused - cmp r0, #0 - beq _0804CB26 - ldr r0, _0804CB28 @ =gUnk_080DDE88 - bl LoadRoomEntityList -_0804CB26: - pop {pc} - .align 2, 0 -_0804CB28: .4byte gUnk_080DDE88 - - thumb_func_start sub_0804CB2C -sub_0804CB2C: @ 0x0804CB2C - push {lr} - movs r0, #0x80 - lsls r0, r0, #1 - movs r1, #0x27 - bl CheckLocalFlagByOffset - cmp r0, #0 - beq _0804CB42 - movs r0, #0x85 - bl sub_08059340 -_0804CB42: - pop {pc} - - thumb_func_start sub_0804CB44 -sub_0804CB44: @ 0x0804CB44 - movs r0, #1 - bx lr - - thumb_func_start nullsub_38 -nullsub_38: @ 0x0804CB48 - bx lr - .align 2, 0 - - thumb_func_start sub_0804CB4C -sub_0804CB4C: @ 0x0804CB4C - movs r0, #1 - bx lr - - thumb_func_start sub_0804CB50 -sub_0804CB50: @ 0x0804CB50 - push {lr} - bl sub_080300E8 - movs r0, #4 - bl CheckGlobalFlag - cmp r0, #0 - beq _0804CB70 - movs r0, #3 - bl CheckLocalFlag - cmp r0, #0 - bne _0804CB70 - ldr r0, _0804CB74 @ =gUnk_080DE008 - bl LoadRoomEntityList -_0804CB70: - pop {pc} - .align 2, 0 -_0804CB74: .4byte gUnk_080DE008 - - thumb_func_start sub_0804CB78 -sub_0804CB78: @ 0x0804CB78 - movs r0, #1 - bx lr - - thumb_func_start sub_0804CB7C -sub_0804CB7C: @ 0x0804CB7C - push {lr} - bl sub_080300E8 - movs r0, #0x30 - bl CheckLocalFlag - cmp r0, #0 - bne _0804CB92 - ldr r0, _0804CBA4 @ =gUnk_080DE1E0 - bl LoadRoomEntityList -_0804CB92: - movs r0, #0x31 - bl CheckLocalFlag - cmp r0, #0 - bne _0804CBA2 - ldr r0, _0804CBA8 @ =gUnk_080DE200 - bl LoadRoomEntityList -_0804CBA2: - pop {pc} - .align 2, 0 -_0804CBA4: .4byte gUnk_080DE1E0 -_0804CBA8: .4byte gUnk_080DE200 - - thumb_func_start sub_0804CBAC -sub_0804CBAC: @ 0x0804CBAC - movs r0, #1 - bx lr - - thumb_func_start sub_0804CBB0 -sub_0804CBB0: @ 0x0804CBB0 - push {lr} - ldr r0, _0804CBD8 @ =gLinkEntity - movs r2, #0x32 - ldrsh r1, [r0, r2] - ldr r2, _0804CBDC @ =gRoomControls - ldrh r0, [r2, #8] - subs r1, r1, r0 - ldrh r0, [r2, #0x20] - lsrs r0, r0, #1 - cmp r1, r0 - bge _0804CBD6 - movs r0, #0x17 - bl CheckLocalFlag - cmp r0, #0 - bne _0804CBD6 - ldr r0, _0804CBE0 @ =gUnk_080DE4C8 - bl LoadRoomEntityList -_0804CBD6: - pop {pc} - .align 2, 0 -_0804CBD8: .4byte gLinkEntity -_0804CBDC: .4byte gRoomControls -_0804CBE0: .4byte gUnk_080DE4C8 - - thumb_func_start sub_0804CBE4 -sub_0804CBE4: @ 0x0804CBE4 - movs r0, #1 - bx lr - - thumb_func_start nullsub_243 -nullsub_243: @ 0x0804CBE8 - bx lr - .align 2, 0 - - thumb_func_start sub_0804CBEC -sub_0804CBEC: @ 0x0804CBEC - movs r0, #1 - bx lr - - thumb_func_start sub_0804CBF0 -sub_0804CBF0: @ 0x0804CBF0 - push {lr} - movs r0, #0x4b - bl CheckLocalFlag - cmp r0, #0 - bne _0804CC08 - ldr r0, _0804CC04 @ =gUnk_080DE814 - bl LoadRoomEntityList - b _0804CC4A - .align 2, 0 -_0804CC04: .4byte gUnk_080DE814 -_0804CC08: - movs r0, #0x4c - bl CheckLocalFlag - cmp r0, #0 - bne _0804CC2C - ldr r0, _0804CC24 @ =gUnk_080DE834 - bl LoadRoomEntityList - ldr r1, _0804CC28 @ =0x00000285 - movs r0, #0x79 - movs r2, #1 - bl SetTileType - b _0804CC4A - .align 2, 0 -_0804CC24: .4byte gUnk_080DE834 -_0804CC28: .4byte 0x00000285 -_0804CC2C: - ldr r1, _0804CC4C @ =0x00000285 - movs r0, #0x7a - movs r2, #1 - bl SetTileType - movs r0, #0x24 - bl CheckLocalFlag - cmp r0, #0 - bne _0804CC4A - ldr r1, _0804CC50 @ =0x00000205 - movs r0, #0x73 - movs r2, #1 - bl SetTileType -_0804CC4A: - pop {pc} - .align 2, 0 -_0804CC4C: .4byte 0x00000285 -_0804CC50: .4byte 0x00000205 - - thumb_func_start sub_0804CC54 -sub_0804CC54: @ 0x0804CC54 - movs r0, #1 - bx lr - - thumb_func_start nullsub_244 -nullsub_244: @ 0x0804CC58 - bx lr - .align 2, 0 - - thumb_func_start sub_0804CC5C -sub_0804CC5C: @ 0x0804CC5C - movs r0, #1 - bx lr - - thumb_func_start nullsub_245 -nullsub_245: @ 0x0804CC60 - bx lr - .align 2, 0 - - thumb_func_start sub_0804CC64 -sub_0804CC64: @ 0x0804CC64 - movs r0, #1 - bx lr - - thumb_func_start nullsub_246 -nullsub_246: @ 0x0804CC68 - bx lr - .align 2, 0 - - thumb_func_start sub_0804CC6C -sub_0804CC6C: @ 0x0804CC6C - movs r0, #1 - bx lr - - thumb_func_start sub_0804CC70 -sub_0804CC70: @ 0x0804CC70 - push {lr} - ldr r0, _0804CC94 @ =gUnk_02002A40 - ldrb r0, [r0, #7] - cmp r0, #0 - beq _0804CC7E - cmp r0, #2 - beq _0804CCA0 -_0804CC7E: - ldr r1, _0804CC98 @ =0x0000020B - movs r0, #0x90 - movs r2, #1 - bl SetTileType - ldr r1, _0804CC9C @ =0x00000411 - movs r0, #0x90 - movs r2, #1 - bl SetTileType - b _0804CCB4 - .align 2, 0 -_0804CC94: .4byte gUnk_02002A40 -_0804CC98: .4byte 0x0000020B -_0804CC9C: .4byte 0x00000411 -_0804CCA0: - ldr r1, _0804CCE4 @ =0x00000211 - movs r0, #0x90 - movs r2, #1 - bl SetTileType - ldr r1, _0804CCE8 @ =0x0000040B - movs r0, #0x90 - movs r2, #1 - bl SetTileType -_0804CCB4: - movs r0, #0x15 - bl CheckLocalFlag - cmp r0, #0 - beq _0804CCCA - movs r1, #0xc1 - lsls r1, r1, #2 - movs r0, #0x76 - movs r2, #2 - bl SetTileType -_0804CCCA: - movs r0, #0x16 - bl CheckLocalFlag - cmp r0, #0 - beq _0804CCE0 - movs r1, #0xc6 - lsls r1, r1, #2 - movs r0, #0x76 - movs r2, #2 - bl SetTileType -_0804CCE0: - pop {pc} - .align 2, 0 -_0804CCE4: .4byte 0x00000211 -_0804CCE8: .4byte 0x0000040B - - thumb_func_start sub_0804CCEC -sub_0804CCEC: @ 0x0804CCEC - movs r0, #1 - bx lr - - thumb_func_start nullsub_247 -nullsub_247: @ 0x0804CCF0 - bx lr - .align 2, 0 - - thumb_func_start sub_0804CCF4 -sub_0804CCF4: @ 0x0804CCF4 - movs r0, #1 - bx lr - - thumb_func_start nullsub_248 -nullsub_248: @ 0x0804CCF8 - bx lr - .align 2, 0 - - thumb_func_start sub_0804CCFC -sub_0804CCFC: @ 0x0804CCFC - movs r0, #1 - bx lr - - thumb_func_start nullsub_249 -nullsub_249: @ 0x0804CD00 - bx lr - .align 2, 0 - - thumb_func_start sub_0804CD04 -sub_0804CD04: @ 0x0804CD04 - movs r0, #1 - bx lr - - thumb_func_start nullsub_250 -nullsub_250: @ 0x0804CD08 - bx lr - .align 2, 0 - - thumb_func_start sub_0804CD0C -sub_0804CD0C: @ 0x0804CD0C - movs r0, #1 - bx lr - - thumb_func_start nullsub_251 -nullsub_251: @ 0x0804CD10 - bx lr - .align 2, 0 - - thumb_func_start sub_0804CD14 -sub_0804CD14: @ 0x0804CD14 - movs r0, #1 - bx lr - - thumb_func_start nullsub_252 -nullsub_252: @ 0x0804CD18 - bx lr - .align 2, 0 - - thumb_func_start sub_0804CD1C -sub_0804CD1C: @ 0x0804CD1C - movs r0, #1 - bx lr - - thumb_func_start nullsub_253 -nullsub_253: @ 0x0804CD20 - bx lr - .align 2, 0 - - thumb_func_start sub_0804CD24 -sub_0804CD24: @ 0x0804CD24 - movs r0, #1 - bx lr - - thumb_func_start nullsub_254 -nullsub_254: @ 0x0804CD28 - bx lr - .align 2, 0 - - thumb_func_start sub_0804CD2C -sub_0804CD2C: @ 0x0804CD2C - movs r0, #1 - bx lr - - thumb_func_start nullsub_255 -nullsub_255: @ 0x0804CD30 - bx lr - .align 2, 0 - - thumb_func_start sub_0804CD34 -sub_0804CD34: @ 0x0804CD34 - movs r0, #1 - bx lr - - thumb_func_start nullsub_256 -nullsub_256: @ 0x0804CD38 - bx lr - .align 2, 0 - - thumb_func_start sub_0804CD3C -sub_0804CD3C: @ 0x0804CD3C - movs r0, #1 - bx lr - - thumb_func_start nullsub_257 -nullsub_257: @ 0x0804CD40 - bx lr - .align 2, 0 - - thumb_func_start sub_0804CD44 -sub_0804CD44: @ 0x0804CD44 - movs r0, #1 - bx lr - - thumb_func_start sub_0804CD48 -sub_0804CD48: @ 0x0804CD48 - push {r4, lr} - movs r0, #0x48 - bl CheckLocalFlag - adds r4, r0, #0 - cmp r4, #0 - bne _0804CD80 - movs r0, #0x48 - bl SetLocalFlag - movs r0, #5 - movs r1, #0 - bl MenuFadeIn - ldr r0, _0804CD94 @ =gUnk_02000070 - strb r4, [r0] - ldr r0, _0804CD98 @ =gUnk_03000FD0 - strb r4, [r0] - ldr r0, _0804CD9C @ =gUnk_0200B644 - str r4, [r0] - movs r1, #0xa0 - lsls r1, r1, #0x13 - ldr r2, _0804CDA0 @ =0x00007FFF - adds r0, r2, #0 - strh r0, [r1] - movs r0, #1 - bl sub_0801DA90 -_0804CD80: - movs r0, #2 - bl CheckGlobalFlag - cmp r0, #0 - beq _0804CDA8 - ldr r0, _0804CDA4 @ =gUnk_080DF94C - bl LoadRoomEntityList - b _0804CDBE - .align 2, 0 -_0804CD94: .4byte gUnk_02000070 -_0804CD98: .4byte gUnk_03000FD0 -_0804CD9C: .4byte gUnk_0200B644 -_0804CDA0: .4byte 0x00007FFF -_0804CDA4: .4byte gUnk_080DF94C -_0804CDA8: - ldr r0, _0804CDC0 @ =0x80100000 - bl PlaySFX - ldr r0, _0804CDC4 @ =gArea - movs r2, #0x86 - lsls r2, r2, #4 - adds r1, r0, r2 - adds r2, #4 - adds r0, r0, r2 - ldr r0, [r0] - str r0, [r1] -_0804CDBE: - pop {r4, pc} - .align 2, 0 -_0804CDC0: .4byte 0x80100000 -_0804CDC4: .4byte gArea - - thumb_func_start sub_0804CDC8 -sub_0804CDC8: @ 0x0804CDC8 - movs r0, #1 - bx lr - - thumb_func_start nullsub_258 -nullsub_258: @ 0x0804CDCC - bx lr - .align 2, 0 - - thumb_func_start sub_0804CDD0 -sub_0804CDD0: @ 0x0804CDD0 - movs r0, #1 - bx lr - - thumb_func_start sub_0804CDD4 -sub_0804CDD4: @ 0x0804CDD4 - push {lr} - bl sub_08058D34 - ldr r2, _0804CDEC @ =gArea - ldrb r1, [r2] - movs r0, #0x40 - orrs r0, r1 - strb r0, [r2] - ldr r1, _0804CDF0 @ =gUnk_03001000 - movs r0, #5 - strb r0, [r1, #4] - pop {pc} - .align 2, 0 -_0804CDEC: .4byte gArea -_0804CDF0: .4byte gUnk_03001000 - - thumb_func_start sub_0804CDF4 -sub_0804CDF4: @ 0x0804CDF4 - movs r0, #1 - bx lr - - thumb_func_start sub_0804CDF8 -sub_0804CDF8: @ 0x0804CDF8 - push {lr} - movs r0, #2 - bl CheckGlobalFlag - cmp r0, #0 - beq _0804CE18 - movs r0, #0x80 - lsls r0, r0, #1 - movs r1, #1 - bl CheckLocalFlagByOffset - cmp r0, #0 - bne _0804CE18 - ldr r0, _0804CE1C @ =gUnk_080DFB78 - bl LoadRoomEntityList -_0804CE18: - pop {pc} - .align 2, 0 -_0804CE1C: .4byte gUnk_080DFB78 thumb_func_start sub_0804CE20 sub_0804CE20: @ 0x0804CE20 diff --git a/asm/code_08056418.s b/asm/code_08056418.s index 78e1d68d..6120eabb 100644 --- a/asm/code_08056418.s +++ b/asm/code_08056418.s @@ -1468,7 +1468,7 @@ sub_08056F70: @ 0x08056F70 ldr r1, _08056F84 @ =0x0600D040 movs r2, #0xd0 lsls r2, r2, #4 - bl sub_08000E96 + bl LoadAssetAsync pop {pc} .align 2, 0 _08056F80: .4byte gUnk_02000D00 diff --git a/asm/code_0805E744.s b/asm/code_0805E744.s index 9b5ea693..c57c1fd1 100644 --- a/asm/code_0805E744.s +++ b/asm/code_0805E744.s @@ -2483,7 +2483,7 @@ _0805F962: ldr r0, _0805F990 @ =gUnk_02036AD8 mov r1, sl movs r2, #0xe0 - bl sub_08000E96 + bl LoadAssetAsync pop {r3, r4, r5} mov r8, r3 mov sb, r4 diff --git a/asm/code_080A3BD0.s b/asm/code_080A3BD0.s index 7d23f6c8..20ecf8e0 100644 --- a/asm/code_080A3BD0.s +++ b/asm/code_080A3BD0.s @@ -1983,7 +1983,7 @@ _080A4B2C: .4byte gUnk_081281A8 _080A4B30: .4byte 0x06014000 _080A4B34: ldr r1, _080A4B40 @ =0x06014000 - bl sub_08000E96 + bl LoadAssetAsync _080A4B3A: pop {r3} mov r8, r3 diff --git a/asm/manager10.s b/asm/manager10.s index c618ca61..501c21e7 100644 --- a/asm/manager10.s +++ b/asm/manager10.s @@ -342,7 +342,7 @@ _08059800: ldr r1, _08059820 @ =0x0600E800 adds r0, r4, #0 adds r2, r5, #0 - bl sub_08000E96 + bl LoadAssetAsync b _08059838 .align 2, 0 _0805981C: .4byte gUnk_02001A40 diff --git a/asm/manager12.s b/asm/manager12.s index 146726db..bdc90ef9 100644 --- a/asm/manager12.s +++ b/asm/manager12.s @@ -245,7 +245,7 @@ _08059B94: ldr r1, _08059BE8 @ =0x06001800 movs r2, #0x80 lsls r2, r2, #4 - bl sub_08000E96 + bl LoadAssetAsync b _08059C5E .align 2, 0 _08059BD8: .4byte 0x000004AB @@ -384,12 +384,12 @@ _08059CEC: movs r5, #0x80 lsls r5, r5, #5 adds r2, r5, #0 - bl sub_08000E96 + bl LoadAssetAsync ldr r0, [r6, #8] adds r0, r0, r4 ldr r1, [r6, #0xc] adds r2, r5, #0 - bl sub_08000E96 + bl LoadAssetAsync pop {r4, r5, r6, pc} .align 2, 0 _08059D10: .4byte gUnk_08108468 diff --git a/asm/manager1A.s b/asm/manager1A.s index 446763f8..7163e018 100644 --- a/asm/manager1A.s +++ b/asm/manager1A.s @@ -424,7 +424,7 @@ sub_0805B328: @ 0x0805B328 movs r4, #0x80 lsls r4, r4, #4 adds r2, r4, #0 - bl sub_08000E96 + bl LoadAssetAsync ldr r1, _0805B380 @ =gScreen ldr r0, _0805B384 @ =0x00001E07 strh r0, [r1, #0x2c] diff --git a/asm/manager7.s b/asm/manager7.s index 1a499d1f..72d934b0 100644 --- a/asm/manager7.s +++ b/asm/manager7.s @@ -81,7 +81,7 @@ _08057DD6: ldr r1, [r2, #4] movs r2, #0x80 lsls r2, r2, #5 - bl sub_08000E96 + bl LoadAssetAsync ldr r0, _08057E00 @ =gUnk_081081E4 adds r0, r5, r0 ldrb r0, [r0] @@ -100,7 +100,7 @@ _08057E04: ldr r1, [r1, #4] movs r2, #0x80 lsls r2, r2, #5 - bl sub_08000E96 + bl LoadAssetAsync b _08057E24 .align 2, 0 _08057E1C: .4byte gUnk_085A2E80 diff --git a/asm/managerF.s b/asm/managerF.s index beda696f..1c92cc1f 100644 --- a/asm/managerF.s +++ b/asm/managerF.s @@ -560,7 +560,7 @@ sub_080592EC: @ 0x080592EC ands r1, r2 lsls r1, r1, #6 orrs r0, r1 - bl sub_08059340 + bl SetDirtTile pop {pc} thumb_func_start sub_0805930C @@ -592,8 +592,8 @@ _0805933A: .align 2, 0 _0805933C: .4byte gRoomControls - thumb_func_start sub_08059340 -sub_08059340: @ 0x08059340 + thumb_func_start SetDirtTile +SetDirtTile: @ 0x08059340 push {r4, lr} adds r4, r0, #0 movs r0, #0x1d diff --git a/asm/non_matching/sub_0804BF38.inc b/asm/non_matching/sub_0804BF38.inc new file mode 100644 index 00000000..2d1cd9cb --- /dev/null +++ b/asm/non_matching/sub_0804BF38.inc @@ -0,0 +1,111 @@ + .include "asm/macros.inc" + .include "constants/constants.inc" + + .syntax unified + + .text + + push {r4, r5, r6, r7, lr} + mov r7, sl + mov r6, sb + mov r5, r8 + push {r5, r6, r7} + ldr r0, [r1, #4] + lsls r0, r0, #4 + ldr r1, _0804C000 @ =gUnk_080D8E50 + adds r4, r0, r1 + ldr r0, [r4] + ldrh r1, [r4, #4] + lsrs r1, r1, #4 + movs r3, #0x3f + ands r1, r3 + ldrh r2, [r4, #6] + lsrs r2, r2, #4 + ands r2, r3 + lsls r2, r2, #6 + orrs r1, r2 + movs r2, #1 + bl sub_0807BB68 + ldrh r0, [r4, #8] + mov r8, r0 + movs r5, #0 + cmp r5, r8 + bhs _0804BFE8 + ldr r7, _0804C004 @ =gRoomControls + movs r1, #0 + mov sl, r1 + movs r6, #0 + movs r3, #1 + mov sb, r3 +_0804BF7A: + movs r0, #0xf + movs r1, #0xf + movs r2, #0 + bl CreateObject + adds r2, r0, #0 + cmp r2, #0 + beq _0804BFA6 + ldrh r0, [r7, #6] + ldrh r1, [r4, #4] + adds r0, r0, r1 + adds r0, r0, r6 + strh r0, [r2, #0x2e] + ldrh r1, [r7, #8] + ldrh r3, [r4, #6] + adds r1, r1, r3 + adds r0, r5, #0 + mov r3, sb + ands r0, r3 + lsls r0, r0, #3 + adds r1, r1, r0 + strh r1, [r2, #0x32] +_0804BFA6: + movs r0, #0xf + movs r1, #0x54 + movs r2, #0 + bl CreateObject + adds r2, r0, #0 + cmp r2, #0 + beq _0804BFE0 + ldrh r0, [r7, #6] + ldrh r1, [r4, #4] + adds r0, r0, r1 + adds r0, r0, r6 + strh r0, [r2, #0x2e] + ldrh r1, [r7, #8] + ldrh r3, [r4, #6] + adds r1, r1, r3 + ldr r0, _0804C008 @ =0x0000FFF4 + adds r1, r1, r0 + adds r0, r5, #0 + mov r3, sb + ands r0, r3 + lsls r0, r0, #3 + adds r1, r1, r0 + strh r1, [r2, #0x32] + mov r0, sl + strb r0, [r2, #0x15] + movs r0, #0x80 + lsls r0, r0, #1 + strh r0, [r2, #0x24] +_0804BFE0: + adds r6, #0x10 + adds r5, #1 + cmp r5, r8 + blo _0804BF7A +_0804BFE8: + ldrh r0, [r4, #0xa] + ldrh r1, [r4, #0xc] + bl sub_08080964 + ldrh r0, [r4, #0xe] + bl PlaySFX + pop {r3, r4, r5} + mov r8, r3 + mov sb, r4 + mov sl, r5 + pop {r4, r5, r6, r7, pc} + .align 2, 0 +_0804C000: .4byte gUnk_080D8E50 +_0804C004: .4byte gRoomControls +_0804C008: .4byte 0x0000FFF4 + .syntax divided \ No newline at end of file diff --git a/asm/non_matching/sub_0804C128.inc b/asm/non_matching/sub_0804C128.inc new file mode 100644 index 00000000..13378ccd --- /dev/null +++ b/asm/non_matching/sub_0804C128.inc @@ -0,0 +1,148 @@ + .syntax unified + push {r4, r5, lr} + movs r0, #0 + bl sub_080AF250 + ldr r0, _0804C15C @ =gRoomVars + ldrb r0, [r0] + cmp r0, #0 + bne _0804C13A + b _0804C24C +_0804C13A: + ldr r1, _0804C160 @ =gArea + ldrb r3, [r1, #0xd] + movs r0, #0xe + ands r0, r3 + adds r5, r1, #0 + cmp r0, #0 + bne _0804C164 + movs r0, #0xf0 + ands r0, r3 + cmp r0, #0 + bne _0804C19C + movs r0, #0xf + rsbs r0, r0, #0 + ands r0, r3 + movs r1, #2 + orrs r0, r1 + b _0804C19A + .align 2, 0 +_0804C15C: .4byte gRoomVars +_0804C160: .4byte gArea +_0804C164: + ldr r2, _0804C18C @ =gRoomControls + ldr r1, _0804C190 @ =gUnk_080D9338 + lsls r4, r3, #0x1c + lsrs r0, r4, #0x1d + adds r0, r0, r1 + ldrb r1, [r2, #0x10] + ldrb r0, [r0] + cmp r1, r0 + bne _0804C194 + lsrs r0, r4, #0x1d + adds r0, #1 + movs r1, #7 + ands r0, r1 + lsls r0, r0, #1 + movs r1, #0xf + rsbs r1, r1, #0 + ands r1, r3 + orrs r1, r0 + strb r1, [r5, #0xd] + b _0804C19C + .align 2, 0 +_0804C18C: .4byte gRoomControls +_0804C190: .4byte gUnk_080D9338 +_0804C194: + movs r0, #0xf + rsbs r0, r0, #0 + ands r0, r3 +_0804C19A: + strb r0, [r5, #0xd] +_0804C19C: + ldrb r3, [r5, #0xd] + movs r0, #0xe + ands r0, r3 + cmp r0, #0 + bne _0804C1DE + ldr r2, _0804C1D0 @ =gRoomControls + ldr r1, _0804C1D4 @ =gUnk_080D9340 + lsls r4, r3, #0x18 + lsrs r0, r4, #0x1c + adds r0, r0, r1 + ldrb r1, [r2, #0x10] + ldrb r0, [r0] + cmp r1, r0 + bne _0804C1D8 + lsrs r0, r4, #0x1c + adds r0, #1 + lsls r0, r0, #4 + movs r1, #0xf + ands r1, r3 + orrs r1, r0 + movs r0, #0xf + rsbs r0, r0, #0 + ands r1, r0 + strb r1, [r5, #0xd] + b _0804C1DE + .align 2, 0 +_0804C1D0: .4byte gRoomControls +_0804C1D4: .4byte gUnk_080D9340 +_0804C1D8: + movs r0, #0xf + ands r0, r3 + strb r0, [r5, #0xd] +_0804C1DE: + adds r4, r5, #0 + ldrb r1, [r4, #0xd] + movs r0, #0xe + ands r0, r1 + cmp r0, #0xc + bne _0804C206 + movs r0, #1 + bl sub_080AF250 + movs r0, #0x62 + bl SetGlobalFlag + bl sub_0804C290 + ldrb r1, [r4, #0xd] + movs r0, #0xf + rsbs r0, r0, #0 + ands r0, r1 + strb r0, [r4, #0xd] + b _0804C254 +_0804C206: + movs r0, #0xf0 + ands r0, r1 + cmp r0, #0x60 + bne _0804C250 + movs r0, #1 + bl sub_080AF250 + movs r0, #0x5c + bl CheckLocalFlag + cmp r0, #0 + bne _0804C228 + ldr r1, _0804C244 @ =0x00000107 + movs r0, #0x73 + movs r2, #1 + bl SetTileType +_0804C228: + ldr r0, _0804C248 @ =gUnk_080D9328 + bl sub_0804B1AC + movs r0, #0x62 + bl SetGlobalFlag + bl sub_0804C290 + ldrb r1, [r5, #0xd] + movs r0, #0xf + ands r0, r1 + strb r0, [r5, #0xd] + b _0804C254 + .align 2, 0 +_0804C244: .4byte 0x00000107 +_0804C248: .4byte gUnk_080D9328 +_0804C24C: + bl sub_0804C258 +_0804C250: + bl sub_0804C290 +_0804C254: + pop {r4, r5, pc} + .align 2, 0 + .syntax divided \ No newline at end of file diff --git a/asm/non_matching/sub_0804C258.inc b/asm/non_matching/sub_0804C258.inc new file mode 100644 index 00000000..74581376 --- /dev/null +++ b/asm/non_matching/sub_0804C258.inc @@ -0,0 +1,28 @@ + .syntax unified + push {lr} + ldr r3, _0804C288 @ =gArea + ldrb r0, [r3, #0xd] + movs r2, #0xf + rsbs r2, r2, #0 + ands r2, r0 + movs r0, #2 + orrs r2, r0 + movs r0, #0xf + ands r2, r0 + strb r2, [r3, #0xd] + ldr r0, _0804C28C @ =gUnk_030010A0 + ldrb r0, [r0, #0xe] + cmp r0, #4 + bne _0804C284 + movs r1, #0xe + adds r0, r2, #0 + orrs r0, r1 + strb r0, [r3, #0xd] + movs r0, #1 + bl sub_080AF250 +_0804C284: + pop {pc} + .align 2, 0 +_0804C288: .4byte gArea +_0804C28C: .4byte gUnk_030010A0 + .syntax divided \ No newline at end of file diff --git a/asm/non_matching/sub_0804C290.inc b/asm/non_matching/sub_0804C290.inc new file mode 100644 index 00000000..a810d456 --- /dev/null +++ b/asm/non_matching/sub_0804C290.inc @@ -0,0 +1,23 @@ + .syntax unified + push {lr} + ldr r0, _0804C2B4 @ =gArea + ldrb r1, [r0, #0xd] + movs r0, #0xe + ands r0, r1 + cmp r0, #0 + beq _0804C2B2 + lsls r1, r1, #0x1c + lsrs r1, r1, #0x1d + lsls r1, r1, #2 + ldr r0, _0804C2B8 @ =gUnk_080D9348 + adds r1, r1, r0 + ldrh r0, [r1] + ldrh r1, [r1, #2] + movs r2, #1 + bl SetTileType +_0804C2B2: + pop {pc} + .align 2, 0 +_0804C2B4: .4byte gArea +_0804C2B8: .4byte gUnk_080D9348 + .syntax divided \ No newline at end of file diff --git a/include/area.h b/include/area.h index 3717fba4..ce0b325c 100644 --- a/include/area.h +++ b/include/area.h @@ -3,6 +3,7 @@ #include "global.h" + typedef struct { u8 areaMetadata; u8 locationIndex; @@ -13,6 +14,9 @@ typedef struct { u8 filler3[7]; u8 fadeOut; u8 filler2[14]; + u8 filler4[0x835]; + u32 musicIndex; + u32 pMusicIndex; } Area; extern Area gArea; diff --git a/include/functions.h b/include/functions.h index 1fb4b03b..2ce3404a 100644 --- a/include/functions.h +++ b/include/functions.h @@ -31,6 +31,8 @@ extern Entity* GetEmptyEntity(void); extern u32 GetTileTypeByPos(s32 x, s32 y, u32 layer); extern void _DmaZero(void* src, u32 count); extern void EraseAllEntities(void); +extern void SetTile(u32, u32, u32); +extern void SetDirtTile(u32); // Unidentified extern void sub_0806ED78(Entity*); @@ -112,4 +114,23 @@ extern void sub_080575C8(u32); extern void sub_08057688(void); extern void sub_080580B0(u32); extern void sub_080751E8(u32, u32, void*); +extern void sub_08052CA4(u32, u32, u32, u32); +extern void sub_08052878(void); +extern void sub_0808091C(u32*, u32); +extern void sub_0805BC4C(void); +extern void sub_0807BB68(u32*, u32, u32); +extern void sub_08054570(void); +extern void sub_08059278(void); +extern void sub_0804C128(u32); +extern void sub_08058324(u32); +extern void sub_0804C2F0(void); +extern void sub_0801AFE4(void); +extern u32 sub_08060354(void); +extern void sub_08057E64(void); +extern void LoadAssetAsync(void*, u32, u32); +extern void LoadPalettesByPaletteGroupIndex(u32); +extern void sub_0809F814(u32); +extern void sub_080300E8(void); +extern void sub_0801DA90(u32); +extern void sub_08058D34(void); #endif diff --git a/include/room.h b/include/room.h index 57e7b80f..3557d78d 100644 --- a/include/room.h +++ b/include/room.h @@ -44,10 +44,13 @@ typedef struct { u8 filler4[48]; u8 filler5[28]; u32 greatFairyState; - u8 field_0x68[9]; + u32* field_0x6c; + u32 field_0x70; + u32 field_0x74; u32 field_0x78; } RoomVars; + //Packets used to store which entities to load in a room typedef struct { u8 entityType; diff --git a/src/room.c b/src/room.c index ff38c438..9d7d1012 100644 --- a/src/room.c +++ b/src/room.c @@ -10,17 +10,32 @@ typedef struct { u8 field_0x0[8]; u8 field_0x8; u8 field_0x9; - u8 field_0xa[8]; - u16 field_0x12; + u8 field_0xa[6]; + union SplitWord field_0x10; } struct_030010A0; typedef struct { u8 filler[8]; u8 field_0x8; + u8 field_0x9[0x34]; + u32 windcrests; } struct_02002A40; +typedef struct { + u8 interruptFlag; + u8 field_0x1; + u8 funcIndex; + u8 field_0x3; + u8 transition; + u8 field_0x5; + u8 muteAudio; + u8 field_0x8; + u8 countdown; +} Main; + extern struct_030010A0 gUnk_030010A0; extern struct_02002A40 gUnk_02002A40; +extern Main gUnk_03001000; void sub_0804B3C4(u32 arg0) { sub_0804B29C(arg0); @@ -224,13 +239,14 @@ u32 sub_0804B57C() { return 1; } -extern EntityData* gUnk_080D6138; +extern EntityData gUnk_080D6138; void sub_0804B580(void) { + sub_080575C8(0x20); - if (gLinkEntity.y.HALF.HI - gRoomControls.roomOriginY > 0x40) { + + if (gLinkEntity.y.HALF.HI - gRoomControls.roomOriginY > 0x40) LoadRoomEntityList(&gUnk_080D6138); - } } void sub_0804B5AC() { @@ -241,27 +257,27 @@ u32 sub_0804B5B8() { return 1; } -extern EntityData* gUnk_080D6210; +extern EntityData gUnk_080D6210; void sub_0804B5BC(void) { - if (gUnk_030010A0.field_0x12 > 0x40) { + + if ((u16)gUnk_030010A0.field_0x10.HALF.HI > 0x40) LoadRoomEntityList(&gUnk_080D6210); - } } u32 sub_0804B5D8() { return 1; } -extern EntityData* gUnk_080D6340; -extern EntityData* gUnk_080D6360; -extern EntityData* gUnk_080D6380; -extern EntityData* gUnk_080D63A0; -extern EntityData* gUnk_080D63C0; -extern EntityData* gUnk_080D63E0; -extern EntityData* gUnk_080D6400; -extern EntityData* gUnk_080D6420; -extern EntityData* gUnk_080D6440; +extern EntityData gUnk_080D6340; +extern EntityData gUnk_080D6360; +extern EntityData gUnk_080D6380; +extern EntityData gUnk_080D63A0; +extern EntityData gUnk_080D63C0; +extern EntityData gUnk_080D63E0; +extern EntityData gUnk_080D6400; +extern EntityData gUnk_080D6420; +extern EntityData gUnk_080D6440; extern u16 gUnk_080D64F8; extern u16 gUnk_080D6508; @@ -299,40 +315,40 @@ void sub_0804B5DC(void) { flagArr++; } } - if (CheckLocalFlag(0x1f)) { + + if (CheckLocalFlag(0x1f)) LoadRoomEntityList(&gUnk_080D6360); - } - if (CheckLocalFlag(0x20)) { + + if (CheckLocalFlag(0x20)) LoadRoomEntityList(&gUnk_080D6380); - } - if (CheckLocalFlag(0x21)) { + + if (CheckLocalFlag(0x21)) LoadRoomEntityList(&gUnk_080D63A0); - } - if (CheckLocalFlag(0x22)) { + + if (CheckLocalFlag(0x22)) LoadRoomEntityList(&gUnk_080D63C0); - } - if (CheckLocalFlag(0x23)) { + + if (CheckLocalFlag(0x23)) LoadRoomEntityList(&gUnk_080D63E0); - } - if (CheckLocalFlag(0x24)) { + + if (CheckLocalFlag(0x24)) LoadRoomEntityList(&gUnk_080D6400); - } - if (CheckLocalFlag(0x25)) { + + if (CheckLocalFlag(0x25)) LoadRoomEntityList(&gUnk_080D6420); - } - if (CheckLocalFlag(0x26)) { + + if (CheckLocalFlag(0x26)) LoadRoomEntityList(&gUnk_080D6440); - } } u32 sub_0804B6EC() { return 1; } -extern EntityData* gUnk_080D6578; -extern EntityData* gUnk_080D6638; -extern EntityData* gUnk_080D6558; -extern EntityData* gUnk_080D6618; +extern EntityData gUnk_080D6578; +extern EntityData gUnk_080D6638; +extern EntityData gUnk_080D6558; +extern EntityData gUnk_080D6618; void sub_0804B6F0(void) { // flippers @@ -352,9 +368,9 @@ u32 sub_0804B734() { return 1; } -extern EntityData* gUnk_080D6714; -extern EntityData* gUnk_080D6734; -extern EntityData* gUnk_080D66F4; +extern EntityData gUnk_080D6714; +extern EntityData gUnk_080D6734; +extern EntityData gUnk_080D66F4; void sub_0804B738(void) { if (gUnk_02002A40.field_0x8 > 4) { @@ -372,7 +388,7 @@ u32 sub_0804B788() { return 1; } -extern EntityData* gUnk_080D6924; +extern EntityData gUnk_080D6924; void sub_0804B78C(void) { if (gUnk_02002A40.field_0x8 > 7) { @@ -466,48 +482,1821 @@ u32 sub_0804B934() { return 1; } -extern EntityData* UpperInn_Oracles; -extern EntityData* UpperInn_NoFarore; -extern EntityData* UpperInn_NoNayru; -extern EntityData* UpperInn_NoDin; -extern EntityData* UpperInn_Farore; -extern EntityData* UpperInn_Nayru; -extern EntityData* UpperInn_Din; +extern EntityData UpperInn_Oracles; +extern EntityData UpperInn_NoFarore; +extern EntityData UpperInn_NoNayru; +extern EntityData UpperInn_NoDin; +extern EntityData UpperInn_Farore; +extern EntityData UpperInn_Nayru; +extern EntityData UpperInn_Din; void sub_0804B938(void) { int iVar1; - if (gUnk_02002A40.field_0x8 < 4) { + if (gUnk_02002A40.field_0x8 < 4) return; - } if (CheckGlobalFlag(RENTED_HOUSE_DIN)) { - if (!CheckGlobalFlag(NEW_HOUSE_NAYRU)) { - if (!CheckGlobalFlag(NEW_HOUSE_FARORE)) { + if (!CheckGlobalFlag(NEW_HOUSE_NAYRU)) + if (!CheckGlobalFlag(NEW_HOUSE_FARORE)) LoadRoomEntityList(&UpperInn_NoDin); - } else { + else LoadRoomEntityList(&UpperInn_Nayru); - } - } else { + else LoadRoomEntityList(&UpperInn_Farore); - } } else if (CheckGlobalFlag(RENTED_HOUSE_NAYRU)) { - if (CheckGlobalFlag(NEW_HOUSE_DIN)) { + if (CheckGlobalFlag(NEW_HOUSE_DIN)) LoadRoomEntityList(&UpperInn_Farore); - } else if (!CheckGlobalFlag(NEW_HOUSE_FARORE)) { + else if (!CheckGlobalFlag(NEW_HOUSE_FARORE)) LoadRoomEntityList(&UpperInn_NoNayru); - } else { + else LoadRoomEntityList(&UpperInn_Din); - } } else if (CheckGlobalFlag(RENTED_HOUSE_FARORE)) { - if (CheckGlobalFlag(NEW_HOUSE_DIN)) { + if (CheckGlobalFlag(NEW_HOUSE_DIN)) LoadRoomEntityList(&UpperInn_Nayru); - } else if (CheckGlobalFlag(NEW_HOUSE_NAYRU)) { + else if (CheckGlobalFlag(NEW_HOUSE_NAYRU)) LoadRoomEntityList(&UpperInn_Din); - } else { + else LoadRoomEntityList(&UpperInn_NoFarore); + } else + LoadRoomEntityList(&UpperInn_Oracles); +} + +u32 sub_0804B9F8() { + return 1; +} + +void nullsub_176() { +} + +u32 sub_0804BA00() { + return 1; +} + +void nullsub_177() { +} + +u32 sub_0804BA08() { + return 1; +} + +extern EntityData gUnk_080D7038; + +void sub_0804BA0C(void) { + if (gUnk_02002A40.field_0x8 < 8) { + LoadRoomEntityList(&gUnk_080D7038); + } + if (gRoomVars.filler[0] == 0) { + sub_08052CA4(2, 0, 0x2c8, 0xa8); + } +} + +u32 sub_0804BA40() { + return 1; +} + +extern EntityData gUnk_080D7140; +extern EntityData gUnk_080D7170; +extern EntityData gUnk_080D71A0; +extern EntityData gUnk_080D71D0; +extern EntityData gUnk_080D71F0; + +void sub_0804BA44(void) { + + if (gUnk_02002A40.field_0x8 == 6) + LoadRoomEntityList(&gUnk_080D7140); + + if (gUnk_02002A40.field_0x8 == 7) + LoadRoomEntityList(&gUnk_080D7170); + + if ((gUnk_02002A40.field_0x8 < 8) || (LoadRoomEntityList(&gUnk_080D71A0), gUnk_02002A40.field_0x8 < 8)) + LoadRoomEntityList(&gUnk_080D71D0); + else + LoadRoomEntityList(&gUnk_080D71F0); +} + +extern u32 gUnk_080D7348; + +u32 sub_0804BA9C(void) { + if (CheckGlobalFlag(0x51)) { + gRoomVars.field_0x6c = &gUnk_080D7348; + gRoomVars.field_0x74 = 0; + } + return 1; +} + +extern EntityData gUnk_080D7328; + +void sub_0804BAC0(void) { + if (!CheckGlobalFlag(3)) { + LoadRoomEntityList(&gUnk_080D7328); + } + if (CheckGlobalFlag(0x64)) { + gArea.pMusicIndex = 0x1b; + } else if (CheckGlobalFlag(0x51)) { + gArea.pMusicIndex = gArea.musicIndex; + } +} + +extern u32 gUnk_080D7410; + +u32 sub_0804BB18(void) { + if (CheckGlobalFlag(0x51)) { + gRoomVars.field_0x6c = &gUnk_080D7410; + gRoomVars.field_0x74 = 0; + } + return 1; +} + +extern EntityData gUnk_080D73B0; +extern EntityData gUnk_080D73E0; + +void sub_0804BB3C(void) { + if (!CheckGlobalFlag(0x51)) { + if (!CheckGlobalFlag(3)) { + LoadRoomEntityList(&gUnk_080D73B0); + } + if (!CheckGlobalFlag(2) && CheckGlobalFlag(0x15)) { + LoadRoomEntityList(&gUnk_080D73E0); + } + if (CheckGlobalFlag(0x64)) { + gArea.pMusicIndex = gArea.musicIndex; } } else { - LoadRoomEntityList(&UpperInn_Oracles); + gArea.pMusicIndex = gArea.musicIndex; + } +} + +u32 sub_0804BB9C() { + return 1; +} + +extern EntityData gUnk_080D74C8; +extern EntityData gUnk_080D7588; +extern EntityData gUnk_080D75D8; +extern EntityData gUnk_080D7618; + +void sub_0804BBA0(void) { + if (CheckGlobalFlag(100)) { + gArea.pMusicIndex = gArea.musicIndex; + } + + if (CheckGlobalFlag(0x51)) { + LoadRoomEntityList(&gUnk_080D7618); + gArea.pMusicIndex = gArea.musicIndex; + } else if (CheckGlobalFlag(0x15) == 0) { + LoadRoomEntityList(&gUnk_080D74C8); + gArea.pMusicIndex = 0x1b; + } else if (CheckGlobalFlag(2) == 0) { + LoadRoomEntityList(&gUnk_080D7588); + } else { + LoadRoomEntityList(&gUnk_080D75D8); + } +} + +u32 sub_0804BC34() { + return 1; +} + +extern EntityData gUnk_080D7690; + +void sub_0804bc38(void) { + if (CheckLocalFlag(0x9c)) { + LoadRoomEntityList(&gUnk_080D7690); + } +} + +u32 sub_0804BC50(void) { + if (!CheckLocalFlag(0x9f)) { + gUnk_030010A0.field_0xa[5] = 5; + ClearGlobalFlag(0x1c); + } + return 1; +} + +extern u32 gUnk_08009E88; + +void sub_0804BC70(void) { + if (!CheckLocalFlag(0x9f)) { + DoFade(5, 0x100); + gLinkEntity.x.HALF.HI = gRoomControls.roomOriginX + 0xb0; + gLinkEntity.y.HALF.HI = gRoomControls.roomOriginY + 0x40; + sub_080751E8(0, 6, &gUnk_08009E88); + } + if (!CheckGlobalFlag(0x15)) { + sub_08052878(); + } else { + if (CheckGlobalFlag(100)) { + gArea.pMusicIndex = 0x1b; + } + } +} + +extern u32 gUnk_0813AB80; + +void sub_0804BCDC() { + sub_0808091C(&gUnk_0813AB80, 4); +} + +u32 sub_0804BCEC() { + return 1; +} + +void nullsub_178() { +} + +u32 sub_0804BCF4() { + return 1; +} + +void nullsub_179() { +} + +u32 sub_0804BCFC() { + return 1; +} + +void nullsub_180() { +} + +u32 sub_0804BD04() { + return 1; +} + +void nullsub_181() { +} + +u32 sub_0804BD0C() { + return 1; +} + +void nullsub_182() { +} + +u32 sub_0804BD14() { + return 1; +} + +void nullsub_183() { +} + +u32 sub_0804BD1C() { + return 1; +} + +void nullsub_184() { +} + +u32 sub_0804BD24() { + return 1; +} + +void nullsub_185() { +} + +u32 sub_0804BD2C() { + return 1; +} + +void nullsub_186() { +} + +u32 sub_0804BD34() { + return 1; +} + +void nullsub_187() { +} + +u32 sub_0804BD3C() { + return 1; +} + +void nullsub_188() { +} + +u32 sub_0804BD44() { + return 1; +} + +void nullsub_189() { +} + +u32 sub_0804BD4C() { + return 1; +} + +extern EntityData gUnk_080D7D34; + +void sub_0804BD50(void) { + // four sword + if (GetInventoryValue(0x6)) { + SetTile(0x4072, 0x14d, 1); + SetTile(0x4072, 0x10c, 1); + SetTile(0x4090, 0x14c, 1); + SetTile(0x4090, 0x18c, 1); + LoadRoomEntityList(&gUnk_080D7D34); + } +} + +u32 sub_0804BDA4() { + return 1; +} + +void nullsub_190() { +} + +u32 sub_0804BDAC() { + return 1; +} + +void nullsub_191() { +} + +u32 sub_0804BDB4() { + return 1; +} + +void nullsub_192() { +} + +u32 sub_0804BDBC() { + return 1; +} + +void nullsub_193() { +} + +u32 sub_0804BDC4() { + return 1; +} + +void nullsub_194() { +} + +u32 sub_0804BDCC() { + return 1; +} + +extern EntityData gUnk_080D827C; + +void sub_0804BDD0(void) { + if (!CheckLocalFlag(3)) { + LoadRoomEntityList(&gUnk_080D827C); + } else { + sub_0805BC4C(); + SetTileType(0x76, 0x82, 2); + SetTileType(0x76, 0x8c, 2); + } +} + +u32 sub_0804BE04() { + return 1; +} + +void nullsub_28() { +} + +u32 sub_0804BE0C() { + return 1; +} + +void nullsub_29() { +} + +u32 sub_0804BE14() { + return 1; +} + +void nullsub_30() { +} + +u32 sub_0804BE1C() { + return 1; +} + +void nullsub_31() { +} + +u32 sub_0804BE24() { + return 1; +} + +void nullsub_32() { +} + +u32 sub_0804BE2C() { + return 1; +} + +void nullsub_33() { +} + +u32 sub_0804BE34() { + return 1; +} + +void nullsub_34() { +} + +u32 sub_0804BE3C() { + return 1; +} + +void nullsub_35() { +} + +u32 sub_0804BE44() { + return 1; +} + +void nullsub_36() { +} + +u32 sub_0804BE4C() { + return 1; +} + +extern EntityData gUnk_080D8B24; +extern EntityData gUnk_080D8AC4; +extern EntityData gUnk_080D8A74; +extern EntityData gUnk_080D8A34; +extern EntityData gUnk_080D8A04; +extern EntityData gUnk_080D89E4; + +extern u32 gUnk_080D8BBC; +extern u32 gUnk_080D8BFA; +extern u32 gUnk_080D8C68; + +void sub_0804BE50(void) { + if (!CheckLocalFlag(0x68)) + SetLocalFlag(0x68); + + if (CheckKinstoneFused(0x2f)) + LoadRoomEntityList(&gUnk_080D8B24); + else if (CheckKinstoneFused(0x2b)) + LoadRoomEntityList(&gUnk_080D8AC4); + else if (CheckKinstoneFused(0x26)) + LoadRoomEntityList(&gUnk_080D8A74); + else if (CheckKinstoneFused(0x2a)) + LoadRoomEntityList(&gUnk_080D8A34); + else if (CheckKinstoneFused(0x25)) + LoadRoomEntityList(&gUnk_080D8A04); + else + LoadRoomEntityList(&gUnk_080D89E4); + + if (CheckKinstoneFused(0x25)) + sub_0807BB68(&gUnk_080D8BBC, 0x7c5, 1); + + if (CheckKinstoneFused(0x26)) + sub_0807BB68(&gUnk_080D8BFA, 0x503, 1); + + if (CheckKinstoneFused(0x2f)) + sub_0807BB68(&gUnk_080D8C68, 0x281, 1); +} + +#if 0 +typedef struct { + u32 a; + u16 x, y; + u16 entCnt; + u16 shakeTime, shakeMag, sfx; +} struct_080D8E54; + +typedef struct { + u32 field_0x0; + u32 field_0x4; +} struct_0804BF38; + +extern struct_080D8E54 gUnk_080D8E50[]; + +void sub_0804BF38(u32 arg0, struct_0804BF38* arg1) +{ + u32 numEnts; + u32 iVar2; + u32 iVar3; + Entity *fx; + u32 entCnt; + u32 xOff; + + iVar2 = arg1->field_0x4; + iVar3 = iVar2 * 0x10; + sub_0807BB68(gUnk_080D8E50[iVar2].a, ((gUnk_080D8E50[iVar3].x >> 4) & 0x3f | (gUnk_080D8E50[iVar3].y >> 4) & 0x3f) << 6, 1); + numEnts = gUnk_080D8E50[iVar3].entCnt; + entCnt = 0; + + if (numEnts != 0) { + for (xOff = 0; entCnt < numEnts; xOff += 0x10, entCnt++) { + fx = CreateObject(0xf, 0xf, 0); + if (fx != NULL) { + fx->x.HALF.HI = gUnk_080D8E50[iVar3].x + gRoomControls.roomOriginX + xOff; + fx->y.HALF.HI = gUnk_080D8E50[iVar3].y + gRoomControls.roomOriginY + (entCnt & 1) * 8; + } + fx = CreateObject(0xf, 0x54, 0); + if (fx != NULL) { + fx->x.HALF.HI = gUnk_080D8E50[iVar3].x + gRoomControls.roomOriginX + xOff; + fx->y.HALF.HI = gUnk_080D8E50[iVar3].y + gRoomControls.roomOriginY + -0xc + (entCnt & 1) * 8; + fx->direction = 0; + fx->nonPlanarMovement = 0x100; + } + } + } + + sub_08080964(gUnk_080D8E50[iVar3].shakeTime, gUnk_080D8E50[iVar3].shakeMag); + PlaySFX(gUnk_080D8E50[iVar2].sfx); +} +#else +NAKED +void sub_0804BF38(u32 arg0, void* arg1) { + asm(".include \"asm/non_matching/sub_0804BF38.inc\""); +} +#endif + +u32 sub_0804C00C() { + return 1; +} + +void nullsub_195() { +} + +u32 sub_0804C014() { + return 1; +} + +extern EntityData gUnk_080D90C8; +extern EntityData gUnk_080D9108; +extern EntityData gUnk_080D9098; + +void sub_0804C018(void) { + if (!CheckGlobalFlag(0x20)) { + // graveyard key + if (GetInventoryValue(0x3c) == 1) { + LoadRoomEntityList(&gUnk_080D90C8); + LoadRoomEntityList(&gUnk_080D9108); + } + } else if (!CheckGlobalFlag(0x21)) + LoadRoomEntityList(&gUnk_080D9108); + + if (GetInventoryValue(0x3c) != 2) { + LoadRoomEntityList(&gUnk_080D9098); + SetTileType(0x17a, 0x58e, 1); + SetTileType(0x17b, 0x58f, 1); + SetTileType(0x17c, 0x5ce, 1); + SetTileType(0x17d, 0x5cf, 1); + } + + sub_08054570(); + sub_08059278(); + SetTile(0x4072, 0xa47, 1); + SetTile(0x4072, 0xc47, 1); + + if (CheckGlobalFlag(0x62)) + if (gUnk_030010A0.field_0x10.WORD == 0x2780078) + PlaySFX(0x72); + + ClearGlobalFlag(0x62); +} + +u32 sub_0804C104() { + return 1; +} + +void sub_0804C108(void) { + gArea.areaMetadata |= 0x40; + sub_0804C128(gArea.filler[7] |= 1); +} + +NAKED +void sub_0804C128(u32 arg0) { + asm(".include \"asm/non_matching/sub_0804C128.inc\""); +} + +NAKED +void sub_0804C258(void) { + asm(".include \"asm/non_matching/sub_0804C258.inc\""); +} + +NAKED +void sub_0804C290(void) { + asm(".include \"asm/non_matching/sub_0804C290.inc\""); +} + +u32 sub_0804C2BC() { + return 1; +} + +void nullsub_196() { +} + +u32 sub_0804C2C4() { + return 1; +} + +void nullsub_197() { +} + +u32 sub_0804C2CC() { + return 1; +} + +void sub_0804C2D0() { + sub_08058324(0); +} + +u32 sub_0804C2DC() { + return 1; +} + +void sub_0804C2E0() { + sub_08058324(1); +} + +u32 sub_0804C2EC() { + return 1; +} + +extern EntityData gUnk_080D9800; + +void sub_0804C2F0(void) { + + sub_08058324(2); + + if (CheckGlobalFlag(0x29) && !CheckGlobalFlag(0x2a)) + LoadRoomEntityList(&gUnk_080D9800); +} + +void sub_0804C318() { + sub_0804C2F0(); +} + +u32 sub_0804C320() { + return 1; +} + +void sub_0804C324() { + sub_08058324(3); +} + +u32 sub_0804C330() { + return 1; +} + +extern EntityData gUnk_080D9CC8; +extern EntityData gUnk_080D9CE8; +extern EntityData gUnk_080D9C38; + +void sub_0804C334(void) { + + SetGlobalFlag(0x1e); + + if (CheckKinstoneFused(0x5b)) + LoadRoomEntityList(&gUnk_080D9CC8); + + if ((gUnk_02002A40.windcrests & 0x20000000) == 0) + LoadRoomEntityList(&gUnk_080D9CE8); + + // pegasus boots + if (!GetInventoryValue(0x15)) + LoadRoomEntityList(&gUnk_080D9C38); +} + +void sub_0804C384(void) { + if ((gUnk_02002A40.windcrests & 0x20000000) == 0) + LoadRoomEntityList(&gUnk_080D9CE8); +} + +u32 sub_0804C3A4() { + return 1; +} + +void nullsub_198() { +} + +u32 sub_0804C3AC() { + return 1; +} + +void nullsub_199() { +} + +u32 sub_0804C3B4() { + return 1; +} + +void nullsub_200() { +} + +u32 sub_0804C3BC() { + return 1; +} + +void nullsub_201() { +} + +u32 sub_0804C3C4() { + return 1; +} + +void nullsub_202() { +} + +extern u32 gUnk_080DA230; + +u32 sub_0804C3CC(void) { + if (!CheckLocalFlag(0x39)) + gRoomVars.field_0x6c = &gUnk_080DA230; + + return 1; +} + +void nullsub_203() { +} + +u32 sub_0804C3F0() { + return 1; +} + +void nullsub_204() { +} + +u32 sub_0804C3F8() { + return 1; +} + +void nullsub_205() { +} + +u32 sub_0804C400() { + return 1; +} + +void nullsub_206() { +} + +u32 sub_0804C408() { + return 1; +} + +void nullsub_207() { +} + +u32 sub_0804C410() { + return 1; +} + +void nullsub_208() { +} + +u32 sub_0804C418() { + return 1; +} + +void nullsub_209() { +} + +u32 sub_0804C420() { + return 1; +} + +void sub_0804C424() { + sub_0801AFE4(); +} + +u32 sub_0804C42C() { + return 1; +} + +void sub_0804C430() { + sub_0801AFE4(); +} + +u32 sub_0804C438() { + return 1; +} + +void sub_0804C43C() { + sub_0801AFE4(); +} + +u32 sub_0804C444() { + return 1; +} + +void sub_0804C448() { + sub_0801AFE4(); +} + +u32 sub_0804C450() { + return 1; +} + +void sub_0804C454() { + sub_0801AFE4(); +} + +u32 sub_0804C45C() { + return 1; +} + +void sub_0804C460() { + sub_0801AFE4(); +} + +u32 sub_0804C468() { + return 1; +} + +void sub_0804C46C() { + sub_0801AFE4(); +} + +u32 sub_0804C474() { + return 1; +} + +void sub_0804C478() { + sub_0801AFE4(); +} + +u32 sub_0804C480() { + return 1; +} + +void sub_0804C484() { + sub_0801AFE4(); +} + +u32 sub_0804C48C() { + return 1; +} + +extern EntityData gUnk_080DAB44; +extern EntityData gUnk_080DAB64; +extern EntityData gUnk_080DAB84; +extern EntityData gUnk_080DAC54; +extern EntityData gUnk_080DAD24; +extern EntityData gUnk_080DABC4; +extern EntityData gUnk_080DAC94; +extern EntityData gUnk_080DAD64; +extern EntityData gUnk_080DAC04; +extern EntityData gUnk_080DACD4; +extern EntityData gUnk_080DADA4; + +void sub_0804C490(void) { + u32 uVar1; + + // jabber nut + if (!GetInventoryValue(0x5b)) + LoadRoomEntityList(&gUnk_080DAB44); + else + LoadRoomEntityList(&gUnk_080DAB64); + + if (!CheckGlobalFlag(0x54)) + goto a; + + if (sub_08060354()) { + SetRoomFlag(0); + if (!CheckGlobalFlag(0x3b)) + uVar1 = 0x3200; + else if (!CheckGlobalFlag(0x3c)) + uVar1 = 0x4600; + else + uVar1 = 0x4880; + } else { + a: + if (CheckGlobalFlag(0x3d)) + uVar1 = 0x4900; + else if (CheckGlobalFlag(0x3c)) + uVar1 = 0x4a00; + else if (CheckGlobalFlag(0x3b)) + uVar1 = 0x5200; + else + uVar1 = 0x9200; + } + if (uVar1 & 0x8000) + LoadRoomEntityList(&gUnk_080DAB84); + + if (uVar1 & 0x4000) + LoadRoomEntityList(&gUnk_080DAC54); + + if (uVar1 & 0x2000) + LoadRoomEntityList(&gUnk_080DAD24); + + if (uVar1 & 0x1000) + LoadRoomEntityList(&gUnk_080DABC4); + + if (uVar1 & 0x800) + LoadRoomEntityList(&gUnk_080DAC94); + + if (uVar1 & 0x400) + LoadRoomEntityList(&gUnk_080DAD64); + + if (uVar1 & 0x200) + LoadRoomEntityList(&gUnk_080DAC04); + + if (uVar1 & 0x100) + LoadRoomEntityList(&gUnk_080DACD4); + + if (uVar1 & 0x80) + LoadRoomEntityList(&gUnk_080DADA4); + + sub_0801AFE4(); +} + +u32 sub_0804C5DC() { + return 1; +} + +extern EntityData gUnk_080DAEE8; + +void sub_0804C5E0(void) { + + if (CheckGlobalFlag(0x56)) + LoadRoomEntityList(&gUnk_080DAEE8); + + sub_0801AFE4(); +} + +u32 sub_0804C5FC() { + return 1; +} + +extern EntityData gUnk_080DAF80; + +void sub_0804C600(void) { + + if (CheckGlobalFlag(0x56)) + LoadRoomEntityList(&gUnk_080DAF80); + + sub_0801AFE4(); +} + +u32 sub_0804C61C() { + return 1; +} + +extern EntityData gUnk_080DB018; + +void sub_0804C620(void) { + + if (CheckGlobalFlag(0x56)) + LoadRoomEntityList(&gUnk_080DB018); + + sub_0801AFE4(); +} + +u32 sub_0804C63C() { + return 1; +} + +void sub_0804C640() { + sub_0801AFE4(); +} + +u32 sub_0804C648() { + return 1; +} + +void sub_0804C64C() { + sub_0801AFE4(); +} + +u32 sub_0804C654() { + return 1; +} + +void sub_0804C658() { + sub_0801AFE4(); +} + +u32 sub_0804C660() { + return 1; +} + +extern EntityData gUnk_080DB238; + +void sub_0804C664(void) { + + if (gUnk_02002A40.field_0x8 > 8) + LoadRoomEntityList(&gUnk_080DB238); + + sub_0801AFE4(); +} + +u32 sub_0804C684() { + return 1; +} + +void sub_0804C688() { + sub_0801AFE4(); +} + +u32 sub_0804C690() { + return 1; +} + +void sub_0804C694() { + sub_0801AFE4(); +} + +u32 sub_0804C69C() { + return 1; +} + +void sub_0804C6A0() { + sub_0801AFE4(); +} + +u32 sub_0804C6A8() { + return 1; +} + +void sub_0804C6AC() { + sub_0801AFE4(); +} + +u32 sub_0804C6B4() { + return 1; +} + +extern EntityData gUnk_080DB4D0; +extern EntityData gUnk_080DB4A0; + +void sub_0804C6B8(void) { + + // flippers and history of masks book + if (!GetInventoryValue(0x46) && !GetInventoryValue(0x3b) && CheckLocalFlag(0x71)) + LoadRoomEntityList(&gUnk_080DB4D0); + else + LoadRoomEntityList(&gUnk_080DB4A0); + + sub_0801AFE4(); +} + +u32 sub_0804C6F4() { + return 1; +} + +void sub_0804C6F8() { + sub_0801AFE4(); +} + +u32 sub_0804C700() { + return 1; +} + +void sub_0804C704() { + sub_0801AFE4(); +} + +u32 sub_0804C70C() { + return 1; +} + +void sub_0804C710() { + sub_0801AFE4(); +} + +u32 sub_0804C718() { + return 1; +} + +void sub_0804C71C() { + sub_0801AFE4(); +} + +u32 sub_0804C724() { + return 1; +} + +void sub_0804C728() { + sub_0801AFE4(); +} + +extern u32 gUnk_080DB910; + +u32 sub_0804C730(void) { + if (CheckGlobalFlag(0x29) && !CheckLocalFlag(0x73)) { + gRoomVars.field_0x70 = (u32)&gUnk_080DB910; + } + return 1; +} + +extern EntityData gUnk_080DB8F0; +extern EntityData gUnk_080DB820; + +void sub_0804C758(void) { + + LoadRoomEntityList(&gUnk_080DB8F0); + // flippers + if (!GetInventoryValue(0x46) && CheckGlobalFlag(0x29)) { + LoadRoomEntityList(&gUnk_080DB820); + } + sub_0801AFE4(); +} + +u32 sub_0804C788() { + return 1; +} + +extern EntityData gUnk_080DBA08; + +void sub_0804C78C(void) { + + // flippers + if (GetInventoryValue(0x46) || !CheckLocalFlag(0x73)) { + LoadRoomEntityList(&gUnk_080DBA08); + } + sub_0801AFE4(); +} + +u32 sub_0804C7B4() { + return 1; +} + +extern EntityData gUnk_080DBB50; +extern EntityData gUnk_080DBB70; +extern EntityData gUnk_080DBB10; +extern EntityData gUnk_080DBAD0; +extern EntityData gUnk_080DBB90; + +void sub_0804C7B8(void) { + u32 tilePos; + u32 i; + + if (!CheckLocalFlag(0x60)) { + LoadRoomEntityList(&gUnk_080DBB50); + } + + // pegasus boots + if (GetInventoryValue(0x15) == 1) { + LoadRoomEntityList(&gUnk_080DBB70); + LoadRoomEntityList(&gUnk_080DBB10); + } else { + LoadRoomEntityList(&gUnk_080DBAD0); + } + if (!CheckLocalFlag(0x62)) { + tilePos = 0x140; + for (i = 0; i < 0x13; i++, tilePos++) { + SetTileType(0x4072, tilePos, 1); + } + } + LoadRoomEntityList(&gUnk_080DBB90); + sub_0801AFE4(); +} + +u32 sub_0804C830() { + return 1; +} + +void nullsub_210() { +} + +u32 sub_0804C838() { + return 1; +} + +void nullsub_211() { +} + +u32 sub_0804C840() { + return 1; +} + +void nullsub_212() { +} + +u32 sub_0804C848() { + return 1; +} + +void nullsub_213() { +} + +u32 sub_0804C850() { + return 1; +} + +void nullsub_214() { +} + +u32 sub_0804C858() { + return 1; +} + +void nullsub_215() { +} + +u32 sub_0804C860() { + return 1; +} + +void nullsub_216() { +} + +u32 sub_0804C868() { + return 1; +} + +void nullsub_217() { +} + +u32 sub_0804C870() { + return 1; +} + +void nullsub_218() { +} + +u32 sub_0804C878() { + return 1; +} + +void nullsub_219() { +} + +u32 sub_0804C880() { + return 1; +} + +extern EntityData gUnk_080DC390; +extern EntityData gUnk_080DC3F0; +extern EntityData gUnk_080DC430; +extern EntityData gUnk_080DC530; +extern EntityData gUnk_080DC470; +extern EntityData gUnk_080DC4C0; + +void sub_0804C884(void) { + + // jabber nut + if (!GetInventoryValue(0x5b)) { + LoadRoomEntityList(&gUnk_080DC390); + if (!CheckLocalFlagByOffset(0x200, 0x80)) { + LoadRoomEntityList(&gUnk_080DC3F0); + } + } else { + LoadRoomEntityList(&gUnk_080DC430); + // gust jar + if (!GetInventoryValue(0x11)) { + LoadRoomEntityList(&gUnk_080DC530); + } + } + if ((!CheckLocalFlagByOffset(0x200, 0x83)) && GetInventoryValue(0x11)) { + LoadRoomEntityList(&gUnk_080DC470); + } + if (!CheckLocalFlag(0x8d)) { + LoadRoomEntityList(&gUnk_080DC4C0); + } + sub_08057E64(); +} + +u32 sub_0804C910() { + return 1; +} + +void nullsub_220() { +} + +typedef struct { + u8 LO[0x4000]; + u8 HI[0x4000]; +} struct_086D4460; + +extern struct_086D4460 gUnk_086D4460; + +void sub_0804C918(void) { + LoadAssetAsync(&gUnk_086D4460.LO, 0x6000000, 0x4000); + LoadAssetAsync(&gUnk_086D4460.HI, 0x6008000, 0x4000); + LoadPalettesByPaletteGroupIndex(0x19); +} + +u32 sub_0804C948() { + return 1; +} + +void nullsub_221() { +} + +u32 sub_0804C950() { + return 1; +} + +void nullsub_222() { +} + +u32 sub_0804C958() { + return 1; +} + +void nullsub_223() { +} + +u32 sub_0804C960() { + return 1; +} + +void nullsub_224() { +} + +u32 sub_0804C968() { + return 1; +} + +void nullsub_225() { +} + +u32 sub_0804C970() { + return 1; +} + +void nullsub_226() { +} + +u32 sub_0804C978() { + return 1; +} + +void nullsub_227() { +} + +u32 sub_0804C980() { + return 1; +} + +void nullsub_228() { +} + +u32 sub_0804C988() { + return 1; +} + +void nullsub_229() { +} + +u32 sub_0804C990() { + return 1; +} + +void nullsub_230() { +} + +u32 sub_0804C998() { + return 1; +} + +extern EntityData gUnk_080DCB10; + +void sub_0804C99C(void) { + + // bow + if (!GetInventoryValue(0x9)) { + LoadRoomEntityList(&gUnk_080DCB10); + } +} + +u32 sub_0804C9B4() { + return 1; +} + +void nullsub_231() { +} + +u32 sub_0804C9BC() { + return 1; +} + +void nullsub_232() { +} + +u32 sub_0804C9C4() { + return 1; +} + +void nullsub_233() { +} + +u32 sub_0804C9CC() { + return 1; +} + +void nullsub_234() { +} + +u32 sub_0804C9D4() { + return 1; +} + +void nullsub_235() { +} + +u32 sub_0804C9DC() { + return 1; +} + +void nullsub_236() { +} + +u32 sub_0804C9E4() { + return 1; +} + +void nullsub_237() { +} + +u32 sub_0804C9EC() { + return 1; +} + +void nullsub_238() { +} + +u32 sub_0804C9F4() { + return 1; +} + +void nullsub_239() { +} + +u32 sub_0804C9FC() { + return 1; +} + +void nullsub_240() { +} + +u32 sub_0804CA04() { + return 1; +} + +void nullsub_241() { +} + +u32 sub_0804CA0C() { + return 1; +} + +extern EntityData gUnk_080DD214; +extern EntityData gUnk_080DD274; +extern EntityData gUnk_080DD294; + +void sub_0804CA10(void) { + + if (!CheckGlobalFlag(0x56)) { + LoadRoomEntityList(&gUnk_080DD214); + } + if (!CheckLocalFlag(0x7f)) { + LoadRoomEntityList(&gUnk_080DD274); + } else { + LoadRoomEntityList(&gUnk_080DD294); + } + SetLocalFlag(0x8e); +} + +u32 sub_0804CA50() { + return 1; +} + +extern EntityData gUnk_080DD364; + +void sub_0804CA54(void) { + if (!(gUnk_02002A40.windcrests & 0x4000000)) { + LoadRoomEntityList(&gUnk_080DD364); + } +} + +void sub_0804CA74(void) { + if (!(gUnk_02002A40.windcrests & 0x4000000)) { + LoadRoomEntityList(&gUnk_080DD364); + } +} + +u32 sub_0804CA94() { + return 1; +} + +void nullsub_242() { +} + +u32 sub_0804CA9C() { + return 1; +} + +extern EntityData gUnk_080DD7E0; +extern EntityData gUnk_080DD840; + +void sub_0804CAA0(void) { + + if (CheckGlobalFlag(0x24)) { + sub_0809F814(0x6de); + } + if (CheckLocalFlag(0xf3)) { + sub_0809F814(0xe0); + } else { + LoadRoomEntityList(&gUnk_080DD7E0); + } + if (CheckLocalFlag(0xf5)) { + sub_0809F814(0xba3); + } else { + LoadRoomEntityList(&gUnk_080DD840); + } +} + +u32 sub_0804CAF4() { + return 1; +} + +void sub_0804CAF8() { + sub_080300E8(); + SetLocalFlag(0x24); +} + +u32 sub_0804CB08() { + return 1; +} + +void nullsub_37() { +} + +u32 sub_0804CB10() { + return 1; +} + +extern EntityData gUnk_080DDE88; + +void sub_0804CB14(void) { + + if (CheckKinstoneFused(0x41)) { + LoadRoomEntityList(&gUnk_080DDE88); + } +} + +void sub_0804CB2C(void) { + + if (CheckLocalFlagByOffset(0x100, 0x27)) { + SetDirtTile(0x85); + } +} + +u32 sub_0804CB44() { + return 1; +} + +void nullsub_38() { +} + +u32 sub_0804CB4C() { + return 1; +} + +extern EntityData gUnk_080DE008; + +void sub_0804CB50(void) { + + sub_080300E8(); + if (CheckGlobalFlag(4) && !CheckLocalFlag(3)) { + LoadRoomEntityList(&gUnk_080DE008); + } +} + +u32 sub_0804CB78() { + return 1; +} + +extern EntityData gUnk_080DE1E0; +extern EntityData gUnk_080DE200; + +void sub_0804CB7C(void) { + + sub_080300E8(); + if (!CheckLocalFlag(0x30)) { + LoadRoomEntityList(&gUnk_080DE1E0); + } + if (!CheckLocalFlag(0x31)) { + LoadRoomEntityList(&gUnk_080DE200); + } +} + +u32 sub_0804CBAC() { + return 1; +} + +extern EntityData gUnk_080DE4C8; + +void sub_0804CBB0(void) { + + if ((gLinkEntity.y.HALF.HI - gRoomControls.roomOriginY) < (gRoomControls.filler2[4] >> 1)) { + if (!CheckLocalFlag(0x17)) { + LoadRoomEntityList(&gUnk_080DE4C8); + } + } +} + +u32 sub_0804CBE4() { + return 1; +} + +void nullsub_243() { +} + +u32 sub_0804CBEC() { + return 1; +} + +extern EntityData gUnk_080DE814; +extern EntityData gUnk_080DE834; + +void sub_0804CBF0(void) { + + if (!CheckLocalFlag(0x4b)) { + LoadRoomEntityList(&gUnk_080DE814); + } else { + if (!CheckLocalFlag(0x4c)) { + LoadRoomEntityList(&gUnk_080DE834); + SetTileType(0x79, 0x285, 1); + } else { + SetTileType(0x7a, 0x285, 1); + if (!CheckLocalFlag(0x24)) { + SetTileType(0x73, 0x205, 1); + } + } + } +} + +u32 sub_0804CC54() { + return 1; +} + +void nullsub_244() { +} + +u32 sub_0804CC5C() { + return 1; +} + +void nullsub_245() { +} + +u32 sub_0804CC64() { + return 1; +} + +void nullsub_246() { +} + +u32 sub_0804CC6C() { + return 1; +} + +void sub_0804CC70(void) { + if (gUnk_02002A40.filler[7] == 0) { + goto a; + } + if (gUnk_02002A40.filler[7] != 2) { + a: + SetTileType(0x90, 0x20b, 1); + SetTileType(0x90, 0x411, 1); + } else { + SetTileType(0x90, 0x211, 1); + SetTileType(0x90, 0x40b, 1); + } + if (CheckLocalFlag(0x15)) { + SetTileType(0x76, 0x304, 2); + } + if (CheckLocalFlag(0x16)) { + SetTileType(0x76, 0x318, 2); + } +} + +u32 sub_0804CCEC() { + return 1; +} + +void nullsub_247() { +} + +u32 sub_0804CCF4() { + return 1; +} + +void nullsub_248() { +} + +u32 sub_0804CCFC() { + return 1; +} +void nullsub_249() { +} + +u32 sub_0804CD04() { + return 1; +} + +void nullsub_250() { +} + +u32 sub_0804CD0C() { + return 1; +} + +void nullsub_251() { +} + +u32 sub_0804CD14() { + return 1; +} + +void nullsub_252() { +} + +u32 sub_0804CD1C() { + return 1; +} + +void nullsub_253() { +} + +u32 sub_0804CD249() { + return 1; +} + +void nullsub_254() { +} + +u32 sub_0804CD2C90() { + return 1; +} + +void nullsub_255() { +} + +u32 sub_0804CD349() { + return 1; +} + +void nullsub_256() { +} + +u32 sub_0804CD3C() { + return 1; +} + +void nullsub_257() { +} + +u32 sub_0804CD44() { + return 1; +} + +extern EntityData gUnk_080DF94C; + +extern u8 gUnk_02000070; +extern u8 gUnk_03000FD0; +extern u32 gUnk_0200B644; + +void sub_0804CD48(void) { + + if (!CheckLocalFlag(0x48)) { + SetLocalFlag(0x48); + MenuFadeIn(5, 0); + gUnk_02000070 = 0; + gUnk_03000FD0 = 0; + gUnk_0200B644 = 0; + *(u16*)0x5000000 = 0x7fff; + sub_0801DA90(1); + } + if (CheckGlobalFlag(2)) { + LoadRoomEntityList(&gUnk_080DF94C); + } else { + PlaySFX(0x80100000); + gArea.musicIndex = gArea.pMusicIndex; + } +} + +u32 sub_0804CDC8() { + return 1; +} + +void nullsub_258() { +} + +u32 sub_0804CDD0() { + return 1; +} + +void sub_0804CDD4(void) { + sub_08058D34(); + gArea.areaMetadata |= 0x40; + gUnk_03001000.transition = 5; +} + +u32 sub_0804CDF4() { + return 1; +} + +extern EntityData gUnk_080DFB78; + +void sub_0804CDF8(void) { + if (CheckGlobalFlag(2) && !CheckLocalFlagByOffset(0x100, 1)) { + LoadRoomEntityList(&gUnk_080DFB78); } } \ No newline at end of file From 58e70886ed4cdb39983531f2cfd582233f6e63c6 Mon Sep 17 00:00:00 2001 From: theo3 Date: Tue, 21 Jul 2020 01:43:36 -0700 Subject: [PATCH 055/158] room.c work --- asm/code_0804B058.s | 4 +- asm/code_0804B9F8.s | 4965 ----------------------------- asm/non_matching/sub_0804C128.inc | 2 +- asm/non_matching/sub_0804DE00.inc | 91 + asm/non_matching/sub_0804E150.inc | 86 + asm/non_matching/sub_0804E3C4.inc | 68 + include/functions.h | 20 + include/room.h | 6 +- src/loadRoom.c | 4 +- src/room.c | 2781 +++++++++++++++- 10 files changed, 3017 insertions(+), 5010 deletions(-) create mode 100644 asm/non_matching/sub_0804DE00.inc create mode 100644 asm/non_matching/sub_0804E150.inc create mode 100644 asm/non_matching/sub_0804E3C4.inc diff --git a/asm/code_0804B058.s b/asm/code_0804B058.s index 7f31151d..1996ac57 100644 --- a/asm/code_0804B058.s +++ b/asm/code_0804B058.s @@ -78,8 +78,8 @@ _0804B198: _0804B1A4: .4byte gUnk_02017660 _0804B1A8: .4byte gUnk_020176A0 - thumb_func_start sub_0804B1AC -sub_0804B1AC: @ 0x0804B1AC + thumb_func_start LoadRoomTileEntities +LoadRoomTileEntities: @ 0x0804B1AC push {r4, lr} adds r4, r0, #0 cmp r4, #0 diff --git a/asm/code_0804B9F8.s b/asm/code_0804B9F8.s index 9394dcab..4db83afb 100644 --- a/asm/code_0804B9F8.s +++ b/asm/code_0804B9F8.s @@ -5,4971 +5,6 @@ .text - thumb_func_start sub_0804CE20 -sub_0804CE20: @ 0x0804CE20 - movs r0, #1 - bx lr - - thumb_func_start nullsub_259 -nullsub_259: @ 0x0804CE24 - bx lr - .align 2, 0 - - thumb_func_start sub_0804CE28 -sub_0804CE28: @ 0x0804CE28 - movs r0, #1 - bx lr - - thumb_func_start nullsub_260 -nullsub_260: @ 0x0804CE2C - bx lr - .align 2, 0 - - thumb_func_start sub_0804CE30 -sub_0804CE30: @ 0x0804CE30 - movs r0, #1 - bx lr - - thumb_func_start nullsub_261 -nullsub_261: @ 0x0804CE34 - bx lr - .align 2, 0 - - thumb_func_start sub_0804CE38 -sub_0804CE38: @ 0x0804CE38 - movs r0, #1 - bx lr - - thumb_func_start nullsub_262 -nullsub_262: @ 0x0804CE3C - bx lr - .align 2, 0 - - thumb_func_start sub_0804CE40 -sub_0804CE40: @ 0x0804CE40 - movs r0, #1 - bx lr - - thumb_func_start nullsub_263 -nullsub_263: @ 0x0804CE44 - bx lr - .align 2, 0 - - thumb_func_start sub_0804CE48 -sub_0804CE48: @ 0x0804CE48 - movs r0, #1 - bx lr - - thumb_func_start nullsub_264 -nullsub_264: @ 0x0804CE4C - bx lr - .align 2, 0 - - thumb_func_start sub_0804CE50 -sub_0804CE50: @ 0x0804CE50 - movs r0, #1 - bx lr - - thumb_func_start nullsub_265 -nullsub_265: @ 0x0804CE54 - bx lr - .align 2, 0 - - thumb_func_start sub_0804CE58 -sub_0804CE58: @ 0x0804CE58 - movs r0, #1 - bx lr - - thumb_func_start nullsub_266 -nullsub_266: @ 0x0804CE5C - bx lr - .align 2, 0 - - thumb_func_start sub_0804CE60 -sub_0804CE60: @ 0x0804CE60 - movs r0, #1 - bx lr - - thumb_func_start nullsub_267 -nullsub_267: @ 0x0804CE64 - bx lr - .align 2, 0 - - thumb_func_start sub_0804CE68 -sub_0804CE68: @ 0x0804CE68 - movs r0, #1 - bx lr - - thumb_func_start nullsub_268 -nullsub_268: @ 0x0804CE6C - bx lr - .align 2, 0 - - thumb_func_start sub_0804CE70 -sub_0804CE70: @ 0x0804CE70 - movs r0, #1 - bx lr - - thumb_func_start nullsub_269 -nullsub_269: @ 0x0804CE74 - bx lr - .align 2, 0 - - thumb_func_start sub_0804CE78 -sub_0804CE78: @ 0x0804CE78 - movs r0, #1 - bx lr - - thumb_func_start nullsub_270 -nullsub_270: @ 0x0804CE7C - bx lr - .align 2, 0 - - thumb_func_start sub_0804CE80 -sub_0804CE80: @ 0x0804CE80 - push {lr} - movs r0, #3 - bl CheckGlobalFlag - cmp r0, #0 - beq _0804CE92 - ldr r1, _0804CE98 @ =gRoomVars - ldr r0, _0804CE9C @ =gUnk_080E103C - str r0, [r1, #0x70] -_0804CE92: - movs r0, #1 - pop {pc} - .align 2, 0 -_0804CE98: .4byte gRoomVars -_0804CE9C: .4byte gUnk_080E103C - - thumb_func_start nullsub_271 -nullsub_271: @ 0x0804CEA0 - bx lr - .align 2, 0 - - thumb_func_start sub_0804CEA4 -sub_0804CEA4: @ 0x0804CEA4 - movs r0, #1 - bx lr - - thumb_func_start nullsub_272 -nullsub_272: @ 0x0804CEA8 - bx lr - .align 2, 0 - - thumb_func_start sub_0804CEAC -sub_0804CEAC: @ 0x0804CEAC - movs r0, #1 - bx lr - - thumb_func_start nullsub_273 -nullsub_273: @ 0x0804CEB0 - bx lr - .align 2, 0 - - thumb_func_start sub_0804CEB4 -sub_0804CEB4: @ 0x0804CEB4 - movs r0, #1 - bx lr - - thumb_func_start nullsub_274 -nullsub_274: @ 0x0804CEB8 - bx lr - .align 2, 0 - - thumb_func_start sub_0804CEBC -sub_0804CEBC: @ 0x0804CEBC - movs r0, #1 - bx lr - - thumb_func_start nullsub_275 -nullsub_275: @ 0x0804CEC0 - bx lr - .align 2, 0 - - thumb_func_start sub_0804CEC4 -sub_0804CEC4: @ 0x0804CEC4 - movs r0, #1 - bx lr - - thumb_func_start nullsub_276 -nullsub_276: @ 0x0804CEC8 - bx lr - .align 2, 0 - - thumb_func_start sub_0804CECC -sub_0804CECC: @ 0x0804CECC - movs r0, #1 - bx lr - - thumb_func_start nullsub_277 -nullsub_277: @ 0x0804CED0 - bx lr - .align 2, 0 - - thumb_func_start sub_0804CED4 -sub_0804CED4: @ 0x0804CED4 - movs r0, #1 - bx lr - - thumb_func_start sub_0804CED8 -sub_0804CED8: @ 0x0804CED8 - push {lr} - movs r0, #3 - bl CheckGlobalFlag - cmp r0, #0 - beq _0804CF18 - ldr r1, _0804CF04 @ =gUnk_0200B650 - movs r0, #0 - str r0, [r1] - ldr r2, _0804CF08 @ =gScreen - ldrh r1, [r2] - ldr r0, _0804CF0C @ =0x0000FDFF - ands r0, r1 - strh r0, [r2] - ldr r0, _0804CF10 @ =gLinkEntity - bl sub_0807AABC - ldr r0, _0804CF14 @ =gUnk_080E1814 - bl LoadRoomEntityList - b _0804CF2E - .align 2, 0 -_0804CF04: .4byte gUnk_0200B650 -_0804CF08: .4byte gScreen -_0804CF0C: .4byte 0x0000FDFF -_0804CF10: .4byte gLinkEntity -_0804CF14: .4byte gUnk_080E1814 -_0804CF18: - ldr r0, _0804CF30 @ =0x80100000 - bl PlaySFX - ldr r0, _0804CF34 @ =gArea - movs r2, #0x86 - lsls r2, r2, #4 - adds r1, r0, r2 - adds r2, #4 - adds r0, r0, r2 - ldr r0, [r0] - str r0, [r1] -_0804CF2E: - pop {pc} - .align 2, 0 -_0804CF30: .4byte 0x80100000 -_0804CF34: .4byte gArea - - thumb_func_start sub_0804CF38 -sub_0804CF38: @ 0x0804CF38 - movs r0, #1 - bx lr - - thumb_func_start nullsub_278 -nullsub_278: @ 0x0804CF3C - bx lr - .align 2, 0 - - thumb_func_start sub_0804CF40 -sub_0804CF40: @ 0x0804CF40 - movs r0, #1 - bx lr - - thumb_func_start sub_0804CF44 -sub_0804CF44: @ 0x0804CF44 - ldr r1, _0804CF58 @ =gUnk_030010A0 - adds r2, r1, #0 - adds r2, #0x38 - movs r0, #0 - strb r0, [r2] - adds r1, #0x39 - movs r0, #0x5a - strb r0, [r1] - bx lr - .align 2, 0 -_0804CF58: .4byte gUnk_030010A0 - - thumb_func_start sub_0804CF5C -sub_0804CF5C: @ 0x0804CF5C - movs r0, #1 - bx lr - - thumb_func_start sub_0804CF60 -sub_0804CF60: @ 0x0804CF60 - push {lr} - bl sub_080300E8 - pop {pc} - - thumb_func_start sub_0804CF68 -sub_0804CF68: @ 0x0804CF68 - movs r0, #1 - bx lr - - thumb_func_start nullsub_39 -nullsub_39: @ 0x0804CF6C - bx lr - .align 2, 0 - - thumb_func_start sub_0804CF70 -sub_0804CF70: @ 0x0804CF70 - movs r0, #1 - bx lr - - thumb_func_start sub_0804CF74 -sub_0804CF74: @ 0x0804CF74 - push {lr} - bl sub_080300E8 - pop {pc} - - thumb_func_start sub_0804CF7C -sub_0804CF7C: @ 0x0804CF7C - movs r0, #1 - bx lr - - thumb_func_start nullsub_40 -nullsub_40: @ 0x0804CF80 - bx lr - .align 2, 0 - - thumb_func_start sub_0804CF84 -sub_0804CF84: @ 0x0804CF84 - movs r0, #1 - bx lr - - thumb_func_start nullsub_41 -nullsub_41: @ 0x0804CF88 - bx lr - .align 2, 0 - - thumb_func_start sub_0804CF8C -sub_0804CF8C: @ 0x0804CF8C - movs r0, #1 - bx lr - - thumb_func_start nullsub_42 -nullsub_42: @ 0x0804CF90 - bx lr - .align 2, 0 - - thumb_func_start sub_0804CF94 -sub_0804CF94: @ 0x0804CF94 - movs r0, #1 - bx lr - - thumb_func_start nullsub_43 -nullsub_43: @ 0x0804CF98 - bx lr - .align 2, 0 - - thumb_func_start sub_0804CF9C -sub_0804CF9C: @ 0x0804CF9C - movs r0, #1 - bx lr - - thumb_func_start nullsub_44 -nullsub_44: @ 0x0804CFA0 - bx lr - .align 2, 0 - - thumb_func_start sub_0804CFA4 -sub_0804CFA4: @ 0x0804CFA4 - movs r0, #1 - bx lr - - thumb_func_start nullsub_45 -nullsub_45: @ 0x0804CFA8 - bx lr - .align 2, 0 - - thumb_func_start sub_0804CFAC -sub_0804CFAC: @ 0x0804CFAC - movs r0, #1 - bx lr - - thumb_func_start sub_0804CFB0 -sub_0804CFB0: @ 0x0804CFB0 - push {lr} - movs r0, #0x31 - bl CheckFlags - cmp r0, #0 - bne _0804CFFE - ldr r1, _0804CFD0 @ =gUnk_030010A0 - adds r0, r1, #0 - adds r0, #0x38 - ldrb r0, [r0] - cmp r0, #0 - bne _0804CFD8 - ldr r0, _0804CFD4 @ =0x80100000 - bl PlaySFX - b _0804CFEE - .align 2, 0 -_0804CFD0: .4byte gUnk_030010A0 -_0804CFD4: .4byte 0x80100000 -_0804CFD8: - adds r0, r1, #0 - adds r0, #0x39 - ldrb r0, [r0] - cmp r0, #0 - bne _0804CFEE - ldr r0, _0804D000 @ =0x80050000 - bl PlaySFX - movs r0, #3 - bl sub_08078A90 -_0804CFEE: - ldr r0, _0804D004 @ =gArea - movs r2, #0x86 - lsls r2, r2, #4 - adds r1, r0, r2 - adds r2, #4 - adds r0, r0, r2 - ldr r0, [r0] - str r0, [r1] -_0804CFFE: - pop {pc} - .align 2, 0 -_0804D000: .4byte 0x80050000 -_0804D004: .4byte gArea - - thumb_func_start sub_0804D008 -sub_0804D008: @ 0x0804D008 - movs r0, #1 - bx lr - - thumb_func_start nullsub_279 -nullsub_279: @ 0x0804D00C - bx lr - .align 2, 0 - - thumb_func_start sub_0804D010 -sub_0804D010: @ 0x0804D010 - movs r0, #1 - bx lr - - thumb_func_start nullsub_280 -nullsub_280: @ 0x0804D014 - bx lr - .align 2, 0 - - thumb_func_start sub_0804D018 -sub_0804D018: @ 0x0804D018 - movs r0, #1 - bx lr - - thumb_func_start nullsub_281 -nullsub_281: @ 0x0804D01C - bx lr - .align 2, 0 - - thumb_func_start sub_0804D020 -sub_0804D020: @ 0x0804D020 - movs r0, #1 - bx lr - - thumb_func_start nullsub_282 -nullsub_282: @ 0x0804D024 - bx lr - .align 2, 0 - - thumb_func_start sub_0804D028 -sub_0804D028: @ 0x0804D028 - movs r0, #1 - bx lr - - thumb_func_start nullsub_283 -nullsub_283: @ 0x0804D02C - bx lr - .align 2, 0 - - thumb_func_start sub_0804D030 -sub_0804D030: @ 0x0804D030 - movs r0, #1 - bx lr - - thumb_func_start nullsub_284 -nullsub_284: @ 0x0804D034 - bx lr - .align 2, 0 - - thumb_func_start sub_0804D038 -sub_0804D038: @ 0x0804D038 - movs r0, #1 - bx lr - - thumb_func_start nullsub_285 -nullsub_285: @ 0x0804D03C - bx lr - .align 2, 0 - - thumb_func_start sub_0804D040 -sub_0804D040: @ 0x0804D040 - movs r0, #1 - bx lr - - thumb_func_start nullsub_286 -nullsub_286: @ 0x0804D044 - bx lr - .align 2, 0 - - thumb_func_start sub_0804D048 -sub_0804D048: @ 0x0804D048 - movs r0, #1 - bx lr - - thumb_func_start nullsub_287 -nullsub_287: @ 0x0804D04C - bx lr - .align 2, 0 - - thumb_func_start sub_0804D050 -sub_0804D050: @ 0x0804D050 - movs r0, #1 - bx lr - - thumb_func_start nullsub_288 -nullsub_288: @ 0x0804D054 - bx lr - .align 2, 0 - - thumb_func_start sub_0804D058 -sub_0804D058: @ 0x0804D058 - movs r0, #1 - bx lr - - thumb_func_start nullsub_289 -nullsub_289: @ 0x0804D05C - bx lr - .align 2, 0 - - thumb_func_start sub_0804D060 -sub_0804D060: @ 0x0804D060 - movs r0, #1 - bx lr - - thumb_func_start nullsub_290 -nullsub_290: @ 0x0804D064 - bx lr - .align 2, 0 - - thumb_func_start sub_0804D068 -sub_0804D068: @ 0x0804D068 - movs r0, #1 - bx lr - - thumb_func_start nullsub_291 -nullsub_291: @ 0x0804D06C - bx lr - .align 2, 0 - - thumb_func_start sub_0804D070 -sub_0804D070: @ 0x0804D070 - movs r0, #1 - bx lr - - thumb_func_start sub_0804D074 -sub_0804D074: @ 0x0804D074 - push {lr} - movs r0, #4 - bl SetGlobalFlag - bl sub_080530C8 - movs r0, #3 - bl sub_0805B4D0 - movs r0, #0x17 - bl GetInventoryValue - cmp r0, #0 - bne _0804D0A0 - movs r0, #0x45 - bl CheckLocalFlag - cmp r0, #0 - beq _0804D0A0 - ldr r0, _0804D0A4 @ =gUnk_080E3850 - bl LoadRoomEntityList -_0804D0A0: - pop {pc} - .align 2, 0 -_0804D0A4: .4byte gUnk_080E3850 - - thumb_func_start sub_0804D0A8 -sub_0804D0A8: @ 0x0804D0A8 - movs r0, #1 - bx lr - - thumb_func_start sub_0804D0AC -sub_0804D0AC: @ 0x0804D0AC - push {lr} - bl sub_0804D0B4 - pop {pc} - - thumb_func_start sub_0804D0B4 -sub_0804D0B4: @ 0x0804D0B4 - push {lr} - movs r0, #0x29 - bl CheckLocalFlag - cmp r0, #0 - bne _0804D0D2 - movs r0, #0x29 - bl SetLocalFlag - movs r0, #0x4b - bl SetLocalFlag - movs r0, #0x4e - bl SetLocalFlag -_0804D0D2: - pop {pc} - - thumb_func_start sub_0804D0D4 -sub_0804D0D4: @ 0x0804D0D4 - movs r0, #1 - bx lr - - thumb_func_start nullsub_46 -nullsub_46: @ 0x0804D0D8 - bx lr - .align 2, 0 - - thumb_func_start sub_0804D0DC -sub_0804D0DC: @ 0x0804D0DC - movs r0, #1 - bx lr - - thumb_func_start nullsub_47 -nullsub_47: @ 0x0804D0E0 - bx lr - .align 2, 0 - - thumb_func_start sub_0804D0E4 -sub_0804D0E4: @ 0x0804D0E4 - movs r0, #1 - bx lr - - thumb_func_start nullsub_48 -nullsub_48: @ 0x0804D0E8 - bx lr - .align 2, 0 - - thumb_func_start sub_0804D0EC -sub_0804D0EC: @ 0x0804D0EC - movs r0, #1 - bx lr - - thumb_func_start nullsub_49 -nullsub_49: @ 0x0804D0F0 - bx lr - .align 2, 0 - - thumb_func_start sub_0804D0F4 -sub_0804D0F4: @ 0x0804D0F4 - movs r0, #1 - bx lr - - thumb_func_start nullsub_50 -nullsub_50: @ 0x0804D0F8 - bx lr - .align 2, 0 - - thumb_func_start sub_0804D0FC -sub_0804D0FC: @ 0x0804D0FC - movs r0, #1 - bx lr - - thumb_func_start nullsub_51 -nullsub_51: @ 0x0804D100 - bx lr - .align 2, 0 - - thumb_func_start sub_0804D104 -sub_0804D104: @ 0x0804D104 - movs r0, #1 - bx lr - - thumb_func_start nullsub_52 -nullsub_52: @ 0x0804D108 - bx lr - .align 2, 0 - - thumb_func_start sub_0804D10C -sub_0804D10C: @ 0x0804D10C - movs r0, #1 - bx lr - - thumb_func_start nullsub_53 -nullsub_53: @ 0x0804D110 - bx lr - .align 2, 0 - - thumb_func_start sub_0804D114 -sub_0804D114: @ 0x0804D114 - movs r0, #1 - bx lr - - thumb_func_start nullsub_54 -nullsub_54: @ 0x0804D118 - bx lr - .align 2, 0 - - thumb_func_start sub_0804D11C -sub_0804D11C: @ 0x0804D11C - movs r0, #1 - bx lr - - thumb_func_start nullsub_55 -nullsub_55: @ 0x0804D120 - bx lr - .align 2, 0 - - thumb_func_start sub_0804D124 -sub_0804D124: @ 0x0804D124 - movs r0, #1 - bx lr - - thumb_func_start nullsub_56 -nullsub_56: @ 0x0804D128 - bx lr - .align 2, 0 - - thumb_func_start sub_0804D12C -sub_0804D12C: @ 0x0804D12C - movs r0, #1 - bx lr - - thumb_func_start nullsub_57 -nullsub_57: @ 0x0804D130 - bx lr - .align 2, 0 - - thumb_func_start sub_0804D134 -sub_0804D134: @ 0x0804D134 - movs r0, #1 - bx lr - - thumb_func_start nullsub_58 -nullsub_58: @ 0x0804D138 - bx lr - .align 2, 0 - - thumb_func_start sub_0804D13C -sub_0804D13C: @ 0x0804D13C - movs r0, #1 - bx lr - - thumb_func_start sub_0804D140 -sub_0804D140: @ 0x0804D140 - push {lr} - movs r0, #0x80 - lsls r0, r0, #1 - bl sub_0805308C - movs r0, #5 - bl CheckGlobalFlag - cmp r0, #0 - beq _0804D160 - ldr r0, _0804D15C @ =gUnk_080E49F4 - bl LoadRoomEntityList - b _0804D176 - .align 2, 0 -_0804D15C: .4byte gUnk_080E49F4 -_0804D160: - ldr r0, _0804D178 @ =0x80100000 - bl PlaySFX - ldr r0, _0804D17C @ =gArea - movs r2, #0x86 - lsls r2, r2, #4 - adds r1, r0, r2 - adds r2, #4 - adds r0, r0, r2 - ldr r0, [r0] - str r0, [r1] -_0804D176: - pop {pc} - .align 2, 0 -_0804D178: .4byte 0x80100000 -_0804D17C: .4byte gArea - - thumb_func_start sub_0804D180 -sub_0804D180: @ 0x0804D180 - movs r0, #1 - bx lr - - thumb_func_start nullsub_292 -nullsub_292: @ 0x0804D184 - bx lr - .align 2, 0 - - thumb_func_start sub_0804D188 -sub_0804D188: @ 0x0804D188 - movs r0, #1 - bx lr - - thumb_func_start sub_0804D18C -sub_0804D18C: @ 0x0804D18C - push {lr} - movs r0, #0x48 - bl CheckLocalFlag - cmp r0, #0 - bne _0804D1A4 - movs r0, #0x46 - bl ClearLocalFlag - ldr r0, _0804D1A8 @ =gUnk_080E4BD8 - bl LoadRoomEntityList -_0804D1A4: - pop {pc} - .align 2, 0 -_0804D1A8: .4byte gUnk_080E4BD8 - - thumb_func_start sub_0804D1AC -sub_0804D1AC: @ 0x0804D1AC - movs r0, #1 - bx lr - - thumb_func_start sub_0804D1B0 -sub_0804D1B0: @ 0x0804D1B0 - push {lr} - bl sub_0804D0B4 - movs r0, #0x6c - bl CheckLocalFlag - cmp r0, #0 - beq _0804D1CC - ldr r0, _0804D1C8 @ =gUnk_080E4CD8 - bl LoadRoomEntityList - b _0804D1D2 - .align 2, 0 -_0804D1C8: .4byte gUnk_080E4CD8 -_0804D1CC: - ldr r0, _0804D1E4 @ =gUnk_080E4CF8 - bl LoadRoomEntityList -_0804D1D2: - movs r0, #0x4b - bl CheckLocalFlag - cmp r0, #0 - bne _0804D1E2 - movs r0, #0x49 - bl ClearLocalFlag -_0804D1E2: - pop {pc} - .align 2, 0 -_0804D1E4: .4byte gUnk_080E4CF8 - - thumb_func_start sub_0804D1E8 -sub_0804D1E8: @ 0x0804D1E8 - movs r0, #1 - bx lr - - thumb_func_start nullsub_293 -nullsub_293: @ 0x0804D1EC - bx lr - .align 2, 0 - - thumb_func_start sub_0804D1F0 -sub_0804D1F0: @ 0x0804D1F0 - movs r0, #1 - bx lr - - thumb_func_start nullsub_294 -nullsub_294: @ 0x0804D1F4 - bx lr - .align 2, 0 - - thumb_func_start sub_0804D1F8 -sub_0804D1F8: @ 0x0804D1F8 - movs r0, #1 - bx lr - - thumb_func_start nullsub_295 -nullsub_295: @ 0x0804D1FC - bx lr - .align 2, 0 - - thumb_func_start sub_0804D200 -sub_0804D200: @ 0x0804D200 - movs r0, #1 - bx lr - - thumb_func_start nullsub_296 -nullsub_296: @ 0x0804D204 - bx lr - .align 2, 0 - - thumb_func_start sub_0804D208 -sub_0804D208: @ 0x0804D208 - movs r0, #1 - bx lr - - thumb_func_start nullsub_297 -nullsub_297: @ 0x0804D20C - bx lr - .align 2, 0 - - thumb_func_start sub_0804D210 -sub_0804D210: @ 0x0804D210 - movs r0, #1 - bx lr - - thumb_func_start nullsub_298 -nullsub_298: @ 0x0804D214 - bx lr - .align 2, 0 - - thumb_func_start sub_0804D218 -sub_0804D218: @ 0x0804D218 - movs r0, #1 - bx lr - - thumb_func_start nullsub_299 -nullsub_299: @ 0x0804D21C - bx lr - .align 2, 0 - - thumb_func_start sub_0804D220 -sub_0804D220: @ 0x0804D220 - movs r0, #1 - bx lr - - thumb_func_start nullsub_300 -nullsub_300: @ 0x0804D224 - bx lr - .align 2, 0 - - thumb_func_start sub_0804D228 -sub_0804D228: @ 0x0804D228 - movs r0, #1 - bx lr - - thumb_func_start sub_0804D22C -sub_0804D22C: @ 0x0804D22C - push {lr} - movs r0, #0x59 - bl CheckLocalFlag - cmp r0, #0 - bne _0804D244 - ldr r0, _0804D240 @ =gUnk_080E5660 - bl LoadRoomEntityList - b _0804D24A - .align 2, 0 -_0804D240: .4byte gUnk_080E5660 -_0804D244: - ldr r0, _0804D24C @ =gUnk_080E5680 - bl LoadRoomEntityList -_0804D24A: - pop {pc} - .align 2, 0 -_0804D24C: .4byte gUnk_080E5680 - - thumb_func_start sub_0804D250 -sub_0804D250: @ 0x0804D250 - movs r0, #1 - bx lr - - thumb_func_start nullsub_301 -nullsub_301: @ 0x0804D254 - bx lr - .align 2, 0 - - thumb_func_start sub_0804D258 -sub_0804D258: @ 0x0804D258 - movs r0, #1 - bx lr - - thumb_func_start nullsub_302 -nullsub_302: @ 0x0804D25C - bx lr - .align 2, 0 - - thumb_func_start sub_0804D260 -sub_0804D260: @ 0x0804D260 - movs r0, #1 - bx lr - - thumb_func_start nullsub_303 -nullsub_303: @ 0x0804D264 - bx lr - .align 2, 0 - - thumb_func_start sub_0804D268 -sub_0804D268: @ 0x0804D268 - movs r0, #1 - bx lr - - thumb_func_start nullsub_304 -nullsub_304: @ 0x0804D26C - bx lr - .align 2, 0 - - thumb_func_start sub_0804D270 -sub_0804D270: @ 0x0804D270 - movs r0, #1 - bx lr - - thumb_func_start nullsub_305 -nullsub_305: @ 0x0804D274 - bx lr - .align 2, 0 - - thumb_func_start sub_0804D278 -sub_0804D278: @ 0x0804D278 - movs r0, #1 - bx lr - - thumb_func_start sub_0804D27C -sub_0804D27C: @ 0x0804D27C - push {lr} - bl sub_0804D0B4 - movs r0, #0x4b - bl CheckLocalFlag - cmp r0, #0 - bne _0804D298 - ldr r0, _0804D294 @ =gUnk_080E5E3C - bl LoadRoomEntityList - b _0804D29E - .align 2, 0 -_0804D294: .4byte gUnk_080E5E3C -_0804D298: - ldr r0, _0804D2A0 @ =gUnk_080E5E5C - bl LoadRoomEntityList -_0804D29E: - pop {pc} - .align 2, 0 -_0804D2A0: .4byte gUnk_080E5E5C - - thumb_func_start sub_0804D2A4 -sub_0804D2A4: @ 0x0804D2A4 - movs r0, #1 - bx lr - - thumb_func_start nullsub_306 -nullsub_306: @ 0x0804D2A8 - bx lr - .align 2, 0 - - thumb_func_start sub_0804D2AC -sub_0804D2AC: @ 0x0804D2AC - movs r0, #1 - bx lr - - thumb_func_start nullsub_307 -nullsub_307: @ 0x0804D2B0 - bx lr - .align 2, 0 - - thumb_func_start sub_0804D2B4 -sub_0804D2B4: @ 0x0804D2B4 - movs r0, #1 - bx lr - - thumb_func_start nullsub_308 -nullsub_308: @ 0x0804D2B8 - bx lr - .align 2, 0 - - thumb_func_start sub_0804D2BC -sub_0804D2BC: @ 0x0804D2BC - movs r0, #1 - bx lr - - thumb_func_start nullsub_309 -nullsub_309: @ 0x0804D2C0 - bx lr - .align 2, 0 - - thumb_func_start sub_0804D2C4 -sub_0804D2C4: @ 0x0804D2C4 - movs r0, #1 - bx lr - - thumb_func_start nullsub_310 -nullsub_310: @ 0x0804D2C8 - bx lr - .align 2, 0 - - thumb_func_start sub_0804D2CC -sub_0804D2CC: @ 0x0804D2CC - movs r0, #1 - bx lr - - thumb_func_start nullsub_311 -nullsub_311: @ 0x0804D2D0 - bx lr - .align 2, 0 - - thumb_func_start sub_0804D2D4 -sub_0804D2D4: @ 0x0804D2D4 - movs r0, #1 - bx lr - - thumb_func_start nullsub_312 -nullsub_312: @ 0x0804D2D8 - bx lr - .align 2, 0 - - thumb_func_start sub_0804D2DC -sub_0804D2DC: @ 0x0804D2DC - movs r0, #1 - bx lr - - thumb_func_start nullsub_313 -nullsub_313: @ 0x0804D2E0 - bx lr - .align 2, 0 - - thumb_func_start sub_0804D2E4 -sub_0804D2E4: @ 0x0804D2E4 - movs r0, #1 - bx lr - - thumb_func_start sub_0804D2E8 -sub_0804D2E8: @ 0x0804D2E8 - push {lr} - movs r0, #0x32 - bl CheckLocalFlag - cmp r0, #0 - bne _0804D2FA - ldr r0, _0804D2FC @ =gUnk_080E693C - bl LoadRoomEntityList -_0804D2FA: - pop {pc} - .align 2, 0 -_0804D2FC: .4byte gUnk_080E693C - - thumb_func_start sub_0804D300 -sub_0804D300: @ 0x0804D300 - movs r0, #1 - bx lr - - thumb_func_start nullsub_314 -nullsub_314: @ 0x0804D304 - bx lr - .align 2, 0 - - thumb_func_start sub_0804D308 -sub_0804D308: @ 0x0804D308 - movs r0, #1 - bx lr - - thumb_func_start nullsub_315 -nullsub_315: @ 0x0804D30C - bx lr - .align 2, 0 - - thumb_func_start sub_0804D310 -sub_0804D310: @ 0x0804D310 - movs r0, #1 - bx lr - - thumb_func_start nullsub_316 -nullsub_316: @ 0x0804D314 - bx lr - .align 2, 0 - - thumb_func_start sub_0804D318 -sub_0804D318: @ 0x0804D318 - movs r0, #1 - bx lr - - thumb_func_start nullsub_317 -nullsub_317: @ 0x0804D31C - bx lr - .align 2, 0 - - thumb_func_start sub_0804D320 -sub_0804D320: @ 0x0804D320 - movs r0, #1 - bx lr - - thumb_func_start nullsub_318 -nullsub_318: @ 0x0804D324 - bx lr - .align 2, 0 - - thumb_func_start sub_0804D328 -sub_0804D328: @ 0x0804D328 - movs r0, #1 - bx lr - - thumb_func_start nullsub_319 -nullsub_319: @ 0x0804D32C - bx lr - .align 2, 0 - - thumb_func_start sub_0804D330 -sub_0804D330: @ 0x0804D330 - movs r0, #1 - bx lr - - thumb_func_start sub_0804D334 -sub_0804D334: @ 0x0804D334 - push {lr} - bl sub_08054570 - pop {pc} - - thumb_func_start sub_0804D33C -sub_0804D33C: @ 0x0804D33C - movs r0, #1 - bx lr - - thumb_func_start sub_0804D340 -sub_0804D340: @ 0x0804D340 - push {lr} - ldr r0, _0804D374 @ =0x00000312 - movs r1, #0x84 - lsls r1, r1, #1 - movs r2, #1 - bl SetTileType - bl sub_08054570 - movs r0, #0xc4 - bl CheckLocalFlag - cmp r0, #0 - bne _0804D362 - ldr r0, _0804D378 @ =gUnk_080E718C - bl LoadRoomEntityList -_0804D362: - movs r0, #0xc5 - bl CheckLocalFlag - cmp r0, #0 - bne _0804D372 - ldr r0, _0804D37C @ =gUnk_080E71AC - bl LoadRoomEntityList -_0804D372: - pop {pc} - .align 2, 0 -_0804D374: .4byte 0x00000312 -_0804D378: .4byte gUnk_080E718C -_0804D37C: .4byte gUnk_080E71AC - - thumb_func_start sub_0804D380 -sub_0804D380: @ 0x0804D380 - movs r0, #1 - bx lr - - thumb_func_start sub_0804D384 -sub_0804D384: @ 0x0804D384 - push {lr} - movs r0, #0 - bl sub_0805AF60 - movs r0, #6 - bl CheckGlobalFlag - cmp r0, #0 - beq _0804D39C - ldr r0, _0804D3B0 @ =gUnk_080E7314 - bl LoadRoomEntityList -_0804D39C: - movs r0, #0x7b - bl CheckLocalFlag - cmp r0, #0 - bne _0804D3B8 - ldr r0, _0804D3B4 @ =gUnk_080E72C4 - bl LoadRoomEntityList - b _0804D3EA - .align 2, 0 -_0804D3B0: .4byte gUnk_080E7314 -_0804D3B4: .4byte gUnk_080E72C4 -_0804D3B8: - movs r0, #6 - bl SetGlobalFlag - movs r0, #0x43 - bl GetInventoryValue - cmp r0, #0 - bne _0804D3EA - movs r0, #3 - bl sub_08078A90 - ldr r0, _0804D3EC @ =gUnk_080E72E4 - bl LoadRoomEntityList - ldr r0, _0804D3F0 @ =gArea - movs r2, #0x86 - lsls r2, r2, #4 - adds r1, r0, r2 - adds r2, #4 - adds r0, r0, r2 - ldr r0, [r0] - str r0, [r1] - ldr r0, _0804D3F4 @ =0x80100000 - bl PlaySFX -_0804D3EA: - pop {pc} - .align 2, 0 -_0804D3EC: .4byte gUnk_080E72E4 -_0804D3F0: .4byte gArea -_0804D3F4: .4byte 0x80100000 - - thumb_func_start sub_0804D3F8 -sub_0804D3F8: @ 0x0804D3F8 - movs r0, #1 - bx lr - - thumb_func_start sub_0804D3FC -sub_0804D3FC: @ 0x0804D3FC - push {lr} - movs r0, #0 - bl sub_0805AF60 - pop {pc} - .align 2, 0 - - thumb_func_start sub_0804D408 -sub_0804D408: @ 0x0804D408 - movs r0, #1 - bx lr - - thumb_func_start sub_0804D40C -sub_0804D40C: @ 0x0804D40C - push {lr} - movs r0, #0 - bl sub_0805AF60 - pop {pc} - .align 2, 0 - - thumb_func_start sub_0804D418 -sub_0804D418: @ 0x0804D418 - movs r0, #1 - bx lr - - thumb_func_start sub_0804D41C -sub_0804D41C: @ 0x0804D41C - push {lr} - movs r0, #0 - bl sub_0805AF60 - pop {pc} - .align 2, 0 - - thumb_func_start sub_0804D428 -sub_0804D428: @ 0x0804D428 - movs r0, #1 - bx lr - - thumb_func_start sub_0804D42C -sub_0804D42C: @ 0x0804D42C - push {lr} - movs r0, #0 - bl sub_0805AF60 - pop {pc} - .align 2, 0 - - thumb_func_start sub_0804D438 -sub_0804D438: @ 0x0804D438 - movs r0, #1 - bx lr - - thumb_func_start sub_0804D43C -sub_0804D43C: @ 0x0804D43C - push {lr} - movs r0, #0 - bl sub_0805AF60 - pop {pc} - .align 2, 0 - - thumb_func_start sub_0804D448 -sub_0804D448: @ 0x0804D448 - movs r0, #1 - bx lr - - thumb_func_start sub_0804D44C -sub_0804D44C: @ 0x0804D44C - push {lr} - movs r0, #0 - bl sub_0805AF60 - pop {pc} - .align 2, 0 - - thumb_func_start sub_0804D458 -sub_0804D458: @ 0x0804D458 - movs r0, #1 - bx lr - - thumb_func_start sub_0804D45C -sub_0804D45C: @ 0x0804D45C - push {lr} - movs r0, #0 - bl sub_0805AF60 - pop {pc} - .align 2, 0 - - thumb_func_start sub_0804D468 -sub_0804D468: @ 0x0804D468 - movs r0, #1 - bx lr - - thumb_func_start sub_0804D46C -sub_0804D46C: @ 0x0804D46C - push {lr} - movs r0, #0 - bl sub_0805AF60 - pop {pc} - .align 2, 0 - - thumb_func_start sub_0804D478 -sub_0804D478: @ 0x0804D478 - movs r0, #1 - bx lr - - thumb_func_start sub_0804D47C -sub_0804D47C: @ 0x0804D47C - push {lr} - movs r0, #0 - bl sub_0805AF60 - pop {pc} - .align 2, 0 - - thumb_func_start sub_0804D488 -sub_0804D488: @ 0x0804D488 - movs r0, #1 - bx lr - - thumb_func_start sub_0804D48C -sub_0804D48C: @ 0x0804D48C - push {lr} - movs r0, #0 - bl sub_0805AF60 - pop {pc} - .align 2, 0 - - thumb_func_start sub_0804D498 -sub_0804D498: @ 0x0804D498 - movs r0, #1 - bx lr - - thumb_func_start sub_0804D49C -sub_0804D49C: @ 0x0804D49C - push {lr} - movs r0, #0 - bl sub_0805AF60 - pop {pc} - .align 2, 0 - - thumb_func_start sub_0804D4A8 -sub_0804D4A8: @ 0x0804D4A8 - movs r0, #1 - bx lr - - thumb_func_start sub_0804D4AC -sub_0804D4AC: @ 0x0804D4AC - push {lr} - movs r0, #0 - bl sub_0805AF60 - pop {pc} - .align 2, 0 - - thumb_func_start sub_0804D4B8 -sub_0804D4B8: @ 0x0804D4B8 - movs r0, #1 - bx lr - - thumb_func_start sub_0804D4BC -sub_0804D4BC: @ 0x0804D4BC - push {lr} - movs r0, #0 - bl sub_0805AF60 - pop {pc} - .align 2, 0 - - thumb_func_start sub_0804D4C8 -sub_0804D4C8: @ 0x0804D4C8 - movs r0, #1 - bx lr - - thumb_func_start sub_0804D4CC -sub_0804D4CC: @ 0x0804D4CC - push {lr} - movs r0, #0 - bl sub_0805AF60 - pop {pc} - .align 2, 0 - - thumb_func_start sub_0804D4D8 -sub_0804D4D8: @ 0x0804D4D8 - movs r0, #1 - bx lr - - thumb_func_start sub_0804D4DC -sub_0804D4DC: @ 0x0804D4DC - push {lr} - movs r0, #0 - bl sub_0805AF60 - pop {pc} - .align 2, 0 - - thumb_func_start sub_0804D4E8 -sub_0804D4E8: @ 0x0804D4E8 - movs r0, #1 - bx lr - - thumb_func_start sub_0804D4EC -sub_0804D4EC: @ 0x0804D4EC - push {lr} - movs r0, #0 - bl sub_0805AF60 - pop {pc} - .align 2, 0 - - thumb_func_start sub_0804D4F8 -sub_0804D4F8: @ 0x0804D4F8 - movs r0, #1 - bx lr - - thumb_func_start sub_0804D4FC -sub_0804D4FC: @ 0x0804D4FC - push {lr} - movs r0, #0 - bl sub_0805AF60 - pop {pc} - .align 2, 0 - - thumb_func_start sub_0804D508 -sub_0804D508: @ 0x0804D508 - movs r0, #1 - bx lr - - thumb_func_start sub_0804D50C -sub_0804D50C: @ 0x0804D50C - push {lr} - movs r0, #0 - bl sub_0805AF60 - pop {pc} - .align 2, 0 - - thumb_func_start sub_0804D518 -sub_0804D518: @ 0x0804D518 - movs r0, #1 - bx lr - - thumb_func_start sub_0804D51C -sub_0804D51C: @ 0x0804D51C - push {lr} - movs r0, #0 - bl sub_0805AF60 - pop {pc} - .align 2, 0 - - thumb_func_start sub_0804D528 -sub_0804D528: @ 0x0804D528 - movs r0, #1 - bx lr - - thumb_func_start sub_0804D52C -sub_0804D52C: @ 0x0804D52C - push {lr} - movs r0, #0 - bl sub_0805AF60 - pop {pc} - .align 2, 0 - - thumb_func_start sub_0804D538 -sub_0804D538: @ 0x0804D538 - movs r0, #1 - bx lr - - thumb_func_start nullsub_59 -nullsub_59: @ 0x0804D53C - bx lr - .align 2, 0 - - thumb_func_start sub_0804D540 -sub_0804D540: @ 0x0804D540 - movs r0, #1 - bx lr - - thumb_func_start sub_0804D544 -sub_0804D544: @ 0x0804D544 - push {lr} - movs r0, #0 - bl sub_0805AF60 - pop {pc} - .align 2, 0 - - thumb_func_start sub_0804D550 -sub_0804D550: @ 0x0804D550 - movs r0, #1 - bx lr - - thumb_func_start sub_0804D554 -sub_0804D554: @ 0x0804D554 - push {lr} - movs r0, #0 - bl sub_0805AF60 - pop {pc} - .align 2, 0 - - thumb_func_start sub_0804D560 -sub_0804D560: @ 0x0804D560 - movs r0, #1 - bx lr - - thumb_func_start sub_0804D564 -sub_0804D564: @ 0x0804D564 - push {lr} - movs r0, #0 - bl sub_0805AF60 - pop {pc} - .align 2, 0 - - thumb_func_start sub_0804D570 -sub_0804D570: @ 0x0804D570 - movs r0, #1 - bx lr - - thumb_func_start sub_0804D574 -sub_0804D574: @ 0x0804D574 - push {lr} - movs r0, #0 - bl sub_0805AF60 - pop {pc} - .align 2, 0 - - thumb_func_start sub_0804D580 -sub_0804D580: @ 0x0804D580 - movs r0, #1 - bx lr - - thumb_func_start sub_0804D584 -sub_0804D584: @ 0x0804D584 - push {lr} - movs r0, #0 - bl sub_0805AF60 - pop {pc} - .align 2, 0 - - thumb_func_start sub_0804D590 -sub_0804D590: @ 0x0804D590 - movs r0, #1 - bx lr - - thumb_func_start nullsub_60 -nullsub_60: @ 0x0804D594 - bx lr - .align 2, 0 - - thumb_func_start sub_0804D598 -sub_0804D598: @ 0x0804D598 - movs r0, #1 - bx lr - - thumb_func_start nullsub_61 -nullsub_61: @ 0x0804D59C - bx lr - .align 2, 0 - - thumb_func_start sub_0804D5A0 -sub_0804D5A0: @ 0x0804D5A0 - movs r0, #1 - bx lr - - thumb_func_start nullsub_62 -nullsub_62: @ 0x0804D5A4 - bx lr - .align 2, 0 - - thumb_func_start sub_0804D5A8 -sub_0804D5A8: @ 0x0804D5A8 - movs r0, #1 - bx lr - - thumb_func_start nullsub_63 -nullsub_63: @ 0x0804D5AC - bx lr - .align 2, 0 - - thumb_func_start sub_0804D5B0 -sub_0804D5B0: @ 0x0804D5B0 - movs r0, #1 - bx lr - - thumb_func_start nullsub_64 -nullsub_64: @ 0x0804D5B4 - bx lr - .align 2, 0 - - thumb_func_start sub_0804D5B8 -sub_0804D5B8: @ 0x0804D5B8 - movs r0, #1 - bx lr - - thumb_func_start nullsub_65 -nullsub_65: @ 0x0804D5BC - bx lr - .align 2, 0 - - thumb_func_start sub_0804D5C0 -sub_0804D5C0: @ 0x0804D5C0 - movs r0, #1 - bx lr - - thumb_func_start sub_0804D5C4 -sub_0804D5C4: @ 0x0804D5C4 - push {lr} - movs r0, #0 - bl sub_0805AF60 - pop {pc} - .align 2, 0 - - thumb_func_start sub_0804D5D0 -sub_0804D5D0: @ 0x0804D5D0 - movs r0, #1 - bx lr - - thumb_func_start sub_0804D5D4 -sub_0804D5D4: @ 0x0804D5D4 - push {lr} - movs r0, #0 - bl sub_0805AF60 - pop {pc} - .align 2, 0 - - thumb_func_start sub_0804D5E0 -sub_0804D5E0: @ 0x0804D5E0 - movs r0, #1 - bx lr - - thumb_func_start sub_0804D5E4 -sub_0804D5E4: @ 0x0804D5E4 - push {lr} - movs r0, #0 - bl sub_0805AF60 - pop {pc} - .align 2, 0 - - thumb_func_start sub_0804D5F0 -sub_0804D5F0: @ 0x0804D5F0 - movs r0, #1 - bx lr - - thumb_func_start sub_0804D5F4 -sub_0804D5F4: @ 0x0804D5F4 - push {lr} - movs r0, #0 - bl sub_0805AF60 - pop {pc} - .align 2, 0 - - thumb_func_start sub_0804D600 -sub_0804D600: @ 0x0804D600 - movs r0, #1 - bx lr - - thumb_func_start nullsub_66 -nullsub_66: @ 0x0804D604 - bx lr - .align 2, 0 - - thumb_func_start sub_0804D608 -sub_0804D608: @ 0x0804D608 - movs r0, #1 - bx lr - - thumb_func_start nullsub_67 -nullsub_67: @ 0x0804D60C - bx lr - .align 2, 0 - - thumb_func_start sub_0804D610 -sub_0804D610: @ 0x0804D610 - movs r0, #1 - bx lr - - thumb_func_start nullsub_68 -nullsub_68: @ 0x0804D614 - bx lr - .align 2, 0 - - thumb_func_start sub_0804D618 -sub_0804D618: @ 0x0804D618 - movs r0, #1 - bx lr - - thumb_func_start nullsub_69 -nullsub_69: @ 0x0804D61C - bx lr - .align 2, 0 - - thumb_func_start sub_0804D620 -sub_0804D620: @ 0x0804D620 - movs r0, #1 - bx lr - - thumb_func_start nullsub_70 -nullsub_70: @ 0x0804D624 - bx lr - .align 2, 0 - - thumb_func_start sub_0804D628 -sub_0804D628: @ 0x0804D628 - movs r0, #1 - bx lr - - thumb_func_start nullsub_71 -nullsub_71: @ 0x0804D62C - bx lr - .align 2, 0 - - thumb_func_start sub_0804D630 -sub_0804D630: @ 0x0804D630 - movs r0, #1 - bx lr - - thumb_func_start sub_0804D634 -sub_0804D634: @ 0x0804D634 - push {lr} - movs r0, #0 - bl sub_0805AF60 - pop {pc} - .align 2, 0 - - thumb_func_start sub_0804D640 -sub_0804D640: @ 0x0804D640 - movs r0, #1 - bx lr - - thumb_func_start sub_0804D644 -sub_0804D644: @ 0x0804D644 - push {lr} - movs r0, #0 - bl sub_0805AF60 - movs r0, #0x70 - bl CheckLocalFlag - cmp r0, #0 - bne _0804D65C - ldr r0, _0804D660 @ =gUnk_080EA09C - bl LoadRoomEntityList -_0804D65C: - pop {pc} - .align 2, 0 -_0804D660: .4byte gUnk_080EA09C - - thumb_func_start sub_0804D664 -sub_0804D664: @ 0x0804D664 - movs r0, #1 - bx lr - - thumb_func_start sub_0804D668 -sub_0804D668: @ 0x0804D668 - push {lr} - movs r0, #0 - bl sub_0805AF60 - pop {pc} - .align 2, 0 - - thumb_func_start sub_0804D674 -sub_0804D674: @ 0x0804D674 - movs r0, #1 - bx lr - - thumb_func_start sub_0804D678 -sub_0804D678: @ 0x0804D678 - push {lr} - movs r0, #0 - bl sub_0805AF60 - pop {pc} - .align 2, 0 - - thumb_func_start sub_0804D684 -sub_0804D684: @ 0x0804D684 - movs r0, #1 - bx lr - - thumb_func_start sub_0804D688 -sub_0804D688: @ 0x0804D688 - push {lr} - movs r0, #0 - bl sub_0805AF60 - pop {pc} - .align 2, 0 - - thumb_func_start sub_0804D694 -sub_0804D694: @ 0x0804D694 - movs r0, #1 - bx lr - - thumb_func_start sub_0804D698 -sub_0804D698: @ 0x0804D698 - push {lr} - movs r0, #0 - bl sub_0805AF60 - pop {pc} - .align 2, 0 - - thumb_func_start sub_0804D6A4 -sub_0804D6A4: @ 0x0804D6A4 - movs r0, #1 - bx lr - - thumb_func_start sub_0804D6A8 -sub_0804D6A8: @ 0x0804D6A8 - push {lr} - movs r0, #0 - bl sub_0805AF60 - pop {pc} - .align 2, 0 - - thumb_func_start sub_0804D6B4 -sub_0804D6B4: @ 0x0804D6B4 - movs r0, #1 - bx lr - - thumb_func_start nullsub_72 -nullsub_72: @ 0x0804D6B8 - bx lr - .align 2, 0 - - thumb_func_start sub_0804D6BC -sub_0804D6BC: @ 0x0804D6BC - movs r0, #1 - bx lr - - thumb_func_start nullsub_73 -nullsub_73: @ 0x0804D6C0 - bx lr - .align 2, 0 - - thumb_func_start sub_0804D6C4 -sub_0804D6C4: @ 0x0804D6C4 - movs r0, #1 - bx lr - - thumb_func_start sub_0804D6C8 -sub_0804D6C8: @ 0x0804D6C8 - push {lr} - ldr r0, _0804D6E4 @ =0x80100000 - bl PlaySFX - ldr r0, _0804D6E8 @ =gArea - movs r2, #0x86 - lsls r2, r2, #4 - adds r1, r0, r2 - adds r2, #4 - adds r0, r0, r2 - ldr r0, [r0] - str r0, [r1] - pop {pc} - .align 2, 0 -_0804D6E4: .4byte 0x80100000 -_0804D6E8: .4byte gArea - - thumb_func_start sub_0804D6EC -sub_0804D6EC: @ 0x0804D6EC - movs r0, #1 - bx lr - - thumb_func_start sub_0804D6F0 -sub_0804D6F0: @ 0x0804D6F0 - push {lr} - movs r0, #0 - bl sub_0805D3C8 - ldr r2, _0804D72C @ =gUnk_030010A0 - adds r0, r2, #0 - adds r0, #0x38 - ldrb r1, [r0] - movs r0, #1 - ands r0, r1 - cmp r0, #0 - beq _0804D74C - adds r0, r2, #0 - adds r0, #0x39 - ldrb r0, [r0] - cmp r0, #0 - beq _0804D74C - adds r0, r2, #0 - adds r0, #0x3c - ldrb r0, [r0] - cmp r0, #1 - bne _0804D734 - ldr r1, _0804D730 @ =gLinkEntity - adds r0, r2, #0 - adds r0, #0x48 - ldrh r0, [r0] - strh r0, [r1, #0x2e] - adds r0, r2, #0 - adds r0, #0x4a - b _0804D746 - .align 2, 0 -_0804D72C: .4byte gUnk_030010A0 -_0804D730: .4byte gLinkEntity -_0804D734: - cmp r0, #0 - bne _0804D74C - ldr r1, _0804D750 @ =gLinkEntity - adds r0, r2, #0 - adds r0, #0x44 - ldrh r0, [r0] - strh r0, [r1, #0x2e] - adds r0, r2, #0 - adds r0, #0x46 -_0804D746: - ldrh r0, [r0] - adds r0, #8 - strh r0, [r1, #0x32] -_0804D74C: - pop {pc} - .align 2, 0 -_0804D750: .4byte gLinkEntity - - thumb_func_start sub_0804D754 -sub_0804D754: @ 0x0804D754 - movs r0, #1 - bx lr - - thumb_func_start sub_0804D758 -sub_0804D758: @ 0x0804D758 - push {lr} - movs r0, #6 - bl sub_0805B4D0 - pop {pc} - .align 2, 0 - - thumb_func_start sub_0804D764 -sub_0804D764: @ 0x0804D764 - movs r0, #1 - bx lr - - thumb_func_start nullsub_74 -nullsub_74: @ 0x0804D768 - bx lr - .align 2, 0 - - thumb_func_start sub_0804D76C -sub_0804D76C: @ 0x0804D76C - movs r0, #1 - bx lr - - thumb_func_start nullsub_75 -nullsub_75: @ 0x0804D770 - bx lr - .align 2, 0 - - thumb_func_start sub_0804D774 -sub_0804D774: @ 0x0804D774 - push {lr} - bl sub_080534AC - movs r0, #1 - pop {pc} - .align 2, 0 - - thumb_func_start sub_0804D780 -sub_0804D780: @ 0x0804D780 - push {r4, r5, lr} - movs r0, #4 - bl sub_0805B4D0 - movs r0, #0x77 - bl CheckLocalFlag - cmp r0, #0 - bne _0804D7A0 - ldr r0, _0804D79C @ =gUnk_080EAD68 - bl LoadRoomEntityList - b _0804D7D0 - .align 2, 0 -_0804D79C: .4byte gUnk_080EAD68 -_0804D7A0: - movs r0, #0x79 - bl CheckLocalFlag - adds r5, r0, #0 - cmp r5, #0 - bne _0804D7D0 - ldr r0, _0804D7D4 @ =gUnk_080EADB8 - bl LoadRoomEntityList - ldr r4, _0804D7D8 @ =0x00004072 - ldr r1, _0804D7DC @ =0x00000145 - adds r0, r4, #0 - movs r2, #1 - bl SetTileType - ldr r1, _0804D7E0 @ =0x00000149 - adds r0, r4, #0 - movs r2, #1 - bl SetTileType - ldr r0, _0804D7E4 @ =gArea - ldr r1, _0804D7E8 @ =0x00000864 - adds r0, r0, r1 - str r5, [r0] -_0804D7D0: - pop {r4, r5, pc} - .align 2, 0 -_0804D7D4: .4byte gUnk_080EADB8 -_0804D7D8: .4byte 0x00004072 -_0804D7DC: .4byte 0x00000145 -_0804D7E0: .4byte 0x00000149 -_0804D7E4: .4byte gArea -_0804D7E8: .4byte 0x00000864 - - thumb_func_start sub_0804D7EC -sub_0804D7EC: @ 0x0804D7EC - push {r4, lr} - ldr r4, _0804D7F4 @ =gUnk_080EAE00 - b _0804D804 - .align 2, 0 -_0804D7F4: .4byte gUnk_080EAE00 -_0804D7F8: - ldrh r1, [r4] - adds r4, #2 - ldr r0, _0804D80C @ =0x00004072 - movs r2, #1 - bl SetTileType -_0804D804: - ldrh r0, [r4] - cmp r0, #0 - bne _0804D7F8 - pop {r4, pc} - .align 2, 0 -_0804D80C: .4byte 0x00004072 - - thumb_func_start sub_0804D810 -sub_0804D810: @ 0x0804D810 - push {r4, lr} - ldr r4, _0804D818 @ =gUnk_080EAE00 - b _0804D826 - .align 2, 0 -_0804D818: .4byte gUnk_080EAE00 -_0804D81C: - ldrh r0, [r4] - adds r4, #2 - movs r1, #1 - bl sub_0807BA8C -_0804D826: - ldrh r0, [r4] - cmp r0, #0 - bne _0804D81C - pop {r4, pc} - .align 2, 0 - - thumb_func_start sub_0804D830 -sub_0804D830: @ 0x0804D830 - movs r0, #1 - bx lr - - thumb_func_start sub_0804D834 -sub_0804D834: @ 0x0804D834 - push {r4, lr} - ldr r4, _0804D86C @ =gArea - movs r0, #0 - movs r1, #0x40 - strb r1, [r4] - strb r0, [r4, #1] - movs r0, #0x51 - bl CheckGlobalFlag - cmp r0, #0 - beq _0804D894 - movs r0, #0x7f - bl CheckLocalFlag - cmp r0, #0 - bne _0804D878 - ldr r0, _0804D870 @ =gUnk_080EAEC0 - bl LoadRoomEntityList - movs r0, #0x7f - bl SetLocalFlag - ldr r0, _0804D874 @ =0x00000864 - adds r1, r4, r0 - movs r0, #0x11 - str r0, [r1] - b _0804D8BC - .align 2, 0 -_0804D86C: .4byte gArea -_0804D870: .4byte gUnk_080EAEC0 -_0804D874: .4byte 0x00000864 -_0804D878: - ldr r0, _0804D88C @ =gUnk_080EAF20 - bl LoadRoomEntityList - ldr r2, _0804D890 @ =0x00000864 - adds r1, r4, r2 - subs r2, #4 - adds r0, r4, r2 - ldr r0, [r0] - str r0, [r1] - b _0804D8BC - .align 2, 0 -_0804D88C: .4byte gUnk_080EAF20 -_0804D890: .4byte 0x00000864 -_0804D894: - movs r0, #0x79 - bl CheckLocalFlag - cmp r0, #0 - beq _0804D8AC - ldr r1, _0804D8C4 @ =0x00000864 - adds r0, r4, r1 - movs r2, #0x86 - lsls r2, r2, #4 - adds r1, r4, r2 - ldr r1, [r1] - str r1, [r0] -_0804D8AC: - movs r0, #1 - bl CheckLocalFlag - cmp r0, #0 - bne _0804D8BC - ldr r0, _0804D8C8 @ =gUnk_080EAE60 - bl LoadRoomEntityList -_0804D8BC: - movs r0, #0x5d - bl ClearGlobalFlag - pop {r4, pc} - .align 2, 0 -_0804D8C4: .4byte 0x00000864 -_0804D8C8: .4byte gUnk_080EAE60 - - thumb_func_start sub_0804D8CC -sub_0804D8CC: @ 0x0804D8CC - movs r0, #1 - bx lr - - thumb_func_start nullsub_320 -nullsub_320: @ 0x0804D8D0 - bx lr - .align 2, 0 - - thumb_func_start sub_0804D8D4 -sub_0804D8D4: @ 0x0804D8D4 - movs r0, #1 - bx lr - - thumb_func_start nullsub_321 -nullsub_321: @ 0x0804D8D8 - bx lr - .align 2, 0 - - thumb_func_start sub_0804D8DC -sub_0804D8DC: @ 0x0804D8DC - movs r0, #1 - bx lr - - thumb_func_start nullsub_322 -nullsub_322: @ 0x0804D8E0 - bx lr - .align 2, 0 - - thumb_func_start sub_0804D8E4 -sub_0804D8E4: @ 0x0804D8E4 - movs r0, #1 - bx lr - - thumb_func_start nullsub_323 -nullsub_323: @ 0x0804D8E8 - bx lr - .align 2, 0 - - thumb_func_start sub_0804D8EC -sub_0804D8EC: @ 0x0804D8EC - movs r0, #1 - bx lr - - thumb_func_start nullsub_324 -nullsub_324: @ 0x0804D8F0 - bx lr - .align 2, 0 - - thumb_func_start sub_0804D8F4 -sub_0804D8F4: @ 0x0804D8F4 - movs r0, #1 - bx lr - - thumb_func_start nullsub_325 -nullsub_325: @ 0x0804D8F8 - bx lr - .align 2, 0 - - thumb_func_start sub_0804D8FC -sub_0804D8FC: @ 0x0804D8FC - movs r0, #1 - bx lr - - thumb_func_start nullsub_326 -nullsub_326: @ 0x0804D900 - bx lr - .align 2, 0 - - thumb_func_start sub_0804D904 -sub_0804D904: @ 0x0804D904 - push {r4, r5, lr} - movs r0, #0x51 - bl CheckGlobalFlag - adds r5, r0, #0 - cmp r5, #0 - beq _0804D93C - ldr r1, _0804D930 @ =gRoomVars - ldr r0, _0804D934 @ =gUnk_080EB604 - str r0, [r1, #0x6c] - movs r0, #0 - str r0, [r1, #0x74] - ldr r0, _0804D938 @ =gArea - movs r1, #0x86 - lsls r1, r1, #4 - adds r2, r0, r1 - adds r1, #4 - adds r0, r0, r1 - movs r1, #0x11 - str r1, [r0] - str r1, [r2] - b _0804D96A - .align 2, 0 -_0804D930: .4byte gRoomVars -_0804D934: .4byte gUnk_080EB604 -_0804D938: .4byte gArea -_0804D93C: - movs r0, #0x79 - bl CheckLocalFlag - cmp r0, #0 - beq _0804D96A - ldr r4, _0804D970 @ =gRoomVars - str r5, [r4, #0x6c] - movs r0, #0x7a - bl CheckLocalFlag - adds r5, r0, #0 - cmp r5, #0 - bne _0804D96A - movs r0, #0x1c - bl SetGlobalFlag - ldr r0, _0804D974 @ =gUnk_080EB5D4 - str r0, [r4, #0x6c] - adds r1, r4, #0 - adds r1, #0x88 - ldr r0, _0804D978 @ =sub_0804D9B0 - str r0, [r1] - str r5, [r4, #0x74] -_0804D96A: - movs r0, #1 - pop {r4, r5, pc} - .align 2, 0 -_0804D970: .4byte gRoomVars -_0804D974: .4byte gUnk_080EB5D4 -_0804D978: .4byte sub_0804D9B0 - - thumb_func_start sub_0804D97C -sub_0804D97C: @ 0x0804D97C - push {lr} - movs r0, #0x51 - bl CheckGlobalFlag - cmp r0, #0 - beq _0804D996 - ldr r0, _0804D9A8 @ =gArea - ldr r2, _0804D9AC @ =0x00000864 - adds r1, r0, r2 - subs r2, #4 - adds r0, r0, r2 - ldr r0, [r0] - str r0, [r1] -_0804D996: - movs r0, #0x79 - bl CheckLocalFlag - cmp r0, #0 - beq _0804D9A4 - bl sub_0804D9B0 -_0804D9A4: - pop {pc} - .align 2, 0 -_0804D9A8: .4byte gArea -_0804D9AC: .4byte 0x00000864 - - thumb_func_start sub_0804D9B0 -sub_0804D9B0: @ 0x0804D9B0 - push {lr} - ldr r0, _0804D9EC @ =0x00000797 - movs r1, #1 - movs r2, #5 - movs r3, #1 - bl sub_0807BB98 - ldr r0, _0804D9F0 @ =0x00000357 - movs r1, #1 - movs r2, #5 - movs r3, #1 - bl sub_0807BB98 - ldr r0, _0804D9F4 @ =0x0000055F - movs r1, #1 - movs r2, #2 - movs r3, #1 - bl sub_0807BB98 - ldr r0, _0804D9F8 @ =gUnk_080EB684 - bl LoadRoomEntityList - ldr r0, _0804D9FC @ =gArea - ldr r2, _0804DA00 @ =0x00000864 - adds r1, r0, r2 - subs r2, #4 - adds r0, r0, r2 - ldr r0, [r0] - str r0, [r1] - pop {pc} - .align 2, 0 -_0804D9EC: .4byte 0x00000797 -_0804D9F0: .4byte 0x00000357 -_0804D9F4: .4byte 0x0000055F -_0804D9F8: .4byte gUnk_080EB684 -_0804D9FC: .4byte gArea -_0804DA00: .4byte 0x00000864 - - thumb_func_start sub_0804DA04 -sub_0804DA04: @ 0x0804DA04 - movs r0, #1 - bx lr - - thumb_func_start nullsub_327 -nullsub_327: @ 0x0804DA08 - bx lr - .align 2, 0 - - thumb_func_start sub_0804DA0C -sub_0804DA0C: @ 0x0804DA0C - movs r0, #1 - bx lr - - thumb_func_start nullsub_328 -nullsub_328: @ 0x0804DA10 - bx lr - .align 2, 0 - - thumb_func_start sub_0804DA14 -sub_0804DA14: @ 0x0804DA14 - movs r0, #1 - bx lr - - thumb_func_start nullsub_329 -nullsub_329: @ 0x0804DA18 - bx lr - .align 2, 0 - - thumb_func_start sub_0804DA1C -sub_0804DA1C: @ 0x0804DA1C - movs r0, #1 - bx lr - - thumb_func_start nullsub_330 -nullsub_330: @ 0x0804DA20 - bx lr - .align 2, 0 - - thumb_func_start sub_0804DA24 -sub_0804DA24: @ 0x0804DA24 - movs r0, #1 - bx lr - - thumb_func_start nullsub_331 -nullsub_331: @ 0x0804DA28 - bx lr - .align 2, 0 - - thumb_func_start sub_0804DA2C -sub_0804DA2C: @ 0x0804DA2C - push {lr} - movs r0, #0x77 - bl CheckLocalFlag - adds r1, r0, #0 - cmp r1, #0 - bne _0804DA40 - ldr r0, _0804DA44 @ =gRoomVars - str r1, [r0, #0x6c] - str r1, [r0, #0x74] -_0804DA40: - movs r0, #1 - pop {pc} - .align 2, 0 -_0804DA44: .4byte gRoomVars - - thumb_func_start sub_0804DA48 -sub_0804DA48: @ 0x0804DA48 - push {lr} - movs r0, #0x77 - bl CheckLocalFlag - cmp r0, #0 - bne _0804DA60 - ldr r0, _0804DA5C @ =gUnk_080EB9F4 - bl LoadRoomEntityList - b _0804DA8C - .align 2, 0 -_0804DA5C: .4byte gUnk_080EB9F4 -_0804DA60: - movs r0, #0x78 - bl CheckLocalFlag - cmp r0, #0 - bne _0804DA76 - ldr r0, _0804DA90 @ =gUnk_080EBAA4 - bl LoadRoomEntityList - movs r0, #0x75 - bl SetLocalFlag -_0804DA76: - movs r0, #0x7b - bl CheckLocalFlag - cmp r0, #0 - beq _0804DA8C - ldr r0, _0804DA94 @ =gUnk_080EBAF4 - bl LoadRoomEntityList - movs r0, #0x76 - bl SetLocalFlag -_0804DA8C: - pop {pc} - .align 2, 0 -_0804DA90: .4byte gUnk_080EBAA4 -_0804DA94: .4byte gUnk_080EBAF4 - - thumb_func_start sub_0804DA98 -sub_0804DA98: @ 0x0804DA98 - movs r0, #1 - bx lr - - thumb_func_start nullsub_332 -nullsub_332: @ 0x0804DA9C - bx lr - .align 2, 0 - - thumb_func_start sub_0804DAA0 -sub_0804DAA0: @ 0x0804DAA0 - movs r0, #1 - bx lr - - thumb_func_start nullsub_333 -nullsub_333: @ 0x0804DAA4 - bx lr - .align 2, 0 - - thumb_func_start sub_0804DAA8 -sub_0804DAA8: @ 0x0804DAA8 - movs r0, #1 - bx lr - - thumb_func_start nullsub_334 -nullsub_334: @ 0x0804DAAC - bx lr - .align 2, 0 - - thumb_func_start sub_0804DAB0 -sub_0804DAB0: @ 0x0804DAB0 - movs r0, #1 - bx lr - - thumb_func_start nullsub_335 -nullsub_335: @ 0x0804DAB4 - bx lr - .align 2, 0 - - thumb_func_start sub_0804DAB8 -sub_0804DAB8: @ 0x0804DAB8 - movs r0, #1 - bx lr - - thumb_func_start nullsub_336 -nullsub_336: @ 0x0804DABC - bx lr - .align 2, 0 - - thumb_func_start sub_0804DAC0 -sub_0804DAC0: @ 0x0804DAC0 - movs r0, #1 - bx lr - - thumb_func_start nullsub_337 -nullsub_337: @ 0x0804DAC4 - bx lr - .align 2, 0 - - thumb_func_start sub_0804DAC8 -sub_0804DAC8: @ 0x0804DAC8 - movs r0, #1 - bx lr - - thumb_func_start nullsub_338 -nullsub_338: @ 0x0804DACC - bx lr - .align 2, 0 - - thumb_func_start sub_0804DAD0 -sub_0804DAD0: @ 0x0804DAD0 - movs r0, #1 - bx lr - - thumb_func_start sub_0804DAD4 -sub_0804DAD4: @ 0x0804DAD4 - push {lr} - movs r0, #0x86 - bl CheckLocalFlag - cmp r0, #0 - beq _0804DAF0 - movs r0, #0x4c - bl CheckLocalFlag - cmp r0, #0 - bne _0804DAF0 - ldr r0, _0804DAF4 @ =gUnk_080EC2CC - bl LoadRoomEntityList -_0804DAF0: - pop {pc} - .align 2, 0 -_0804DAF4: .4byte gUnk_080EC2CC - - thumb_func_start sub_0804DAF8 -sub_0804DAF8: @ 0x0804DAF8 - movs r0, #1 - bx lr - - thumb_func_start nullsub_339 -nullsub_339: @ 0x0804DAFC - bx lr - .align 2, 0 - - thumb_func_start sub_0804DB00 -sub_0804DB00: @ 0x0804DB00 - movs r0, #1 - bx lr - - thumb_func_start sub_0804DB04 -sub_0804DB04: @ 0x0804DB04 - push {lr} - movs r0, #0x86 - bl CheckLocalFlag - cmp r0, #0 - beq _0804DB20 - movs r0, #0x4d - bl CheckLocalFlag - cmp r0, #0 - bne _0804DB20 - ldr r0, _0804DB24 @ =gUnk_080EC4E8 - bl LoadRoomEntityList -_0804DB20: - pop {pc} - .align 2, 0 -_0804DB24: .4byte gUnk_080EC4E8 - - thumb_func_start sub_0804DB28 -sub_0804DB28: @ 0x0804DB28 - movs r0, #1 - bx lr - - thumb_func_start nullsub_340 -nullsub_340: @ 0x0804DB2C - bx lr - .align 2, 0 - - thumb_func_start sub_0804DB30 -sub_0804DB30: @ 0x0804DB30 - movs r0, #1 - bx lr - - thumb_func_start nullsub_341 -nullsub_341: @ 0x0804DB34 - bx lr - .align 2, 0 - - thumb_func_start sub_0804DB38 -sub_0804DB38: @ 0x0804DB38 - movs r0, #1 - bx lr - - thumb_func_start sub_0804DB3C -sub_0804DB3C: @ 0x0804DB3C - push {lr} - movs r0, #0x86 - bl CheckLocalFlag - cmp r0, #0 - beq _0804DB58 - movs r0, #0x53 - bl CheckLocalFlag - cmp r0, #0 - bne _0804DB58 - ldr r0, _0804DB5C @ =gUnk_080EC820 - bl LoadRoomEntityList -_0804DB58: - pop {pc} - .align 2, 0 -_0804DB5C: .4byte gUnk_080EC820 - - thumb_func_start sub_0804DB60 -sub_0804DB60: @ 0x0804DB60 - movs r0, #1 - bx lr - - thumb_func_start nullsub_342 -nullsub_342: @ 0x0804DB64 - bx lr - .align 2, 0 - - thumb_func_start sub_0804DB68 -sub_0804DB68: @ 0x0804DB68 - movs r0, #1 - bx lr - - thumb_func_start sub_0804DB6C -sub_0804DB6C: @ 0x0804DB6C - push {lr} - movs r0, #0x86 - bl CheckLocalFlag - cmp r0, #0 - beq _0804DB88 - movs r0, #0x56 - bl CheckLocalFlag - cmp r0, #0 - bne _0804DB88 - ldr r0, _0804DB8C @ =gUnk_080ECA60 - bl LoadRoomEntityList -_0804DB88: - pop {pc} - .align 2, 0 -_0804DB8C: .4byte gUnk_080ECA60 - - thumb_func_start sub_0804DB90 -sub_0804DB90: @ 0x0804DB90 - movs r0, #1 - bx lr - - thumb_func_start nullsub_343 -nullsub_343: @ 0x0804DB94 - bx lr - .align 2, 0 - - thumb_func_start sub_0804DB98 -sub_0804DB98: @ 0x0804DB98 - movs r0, #1 - bx lr - - thumb_func_start nullsub_344 -nullsub_344: @ 0x0804DB9C - bx lr - .align 2, 0 - - thumb_func_start sub_0804DBA0 -sub_0804DBA0: @ 0x0804DBA0 - movs r0, #1 - bx lr - - thumb_func_start nullsub_345 -nullsub_345: @ 0x0804DBA4 - bx lr - .align 2, 0 - - thumb_func_start sub_0804DBA8 -sub_0804DBA8: @ 0x0804DBA8 - movs r0, #1 - bx lr - - thumb_func_start nullsub_346 -nullsub_346: @ 0x0804DBAC - bx lr - .align 2, 0 - - thumb_func_start sub_0804DBB0 -sub_0804DBB0: @ 0x0804DBB0 - movs r0, #1 - bx lr - - thumb_func_start nullsub_347 -nullsub_347: @ 0x0804DBB4 - bx lr - .align 2, 0 - - thumb_func_start sub_0804DBB8 -sub_0804DBB8: @ 0x0804DBB8 - movs r0, #1 - bx lr - - thumb_func_start nullsub_348 -nullsub_348: @ 0x0804DBBC - bx lr - .align 2, 0 - - thumb_func_start sub_0804DBC0 -sub_0804DBC0: @ 0x0804DBC0 - push {lr} - movs r0, #0x79 - bl CheckLocalFlag - cmp r0, #0 - beq _0804DBD2 - ldr r1, _0804DBD8 @ =gRoomVars - movs r0, #0 - str r0, [r1, #0x74] -_0804DBD2: - movs r0, #1 - pop {pc} - .align 2, 0 -_0804DBD8: .4byte gRoomVars - - thumb_func_start sub_0804DBDC -sub_0804DBDC: @ 0x0804DBDC - push {lr} - movs r0, #0x79 - bl CheckLocalFlag - cmp r0, #0 - beq _0804DC08 - movs r0, #0x90 - movs r1, #1 - movs r2, #1 - movs r3, #5 - bl sub_0807BB98 - ldr r0, _0804DC0C @ =gUnk_080ECFCC - bl LoadRoomEntityList - ldr r0, _0804DC10 @ =gArea - ldr r2, _0804DC14 @ =0x00000864 - adds r1, r0, r2 - subs r2, #4 - adds r0, r0, r2 - ldr r0, [r0] - str r0, [r1] -_0804DC08: - pop {pc} - .align 2, 0 -_0804DC0C: .4byte gUnk_080ECFCC -_0804DC10: .4byte gArea -_0804DC14: .4byte 0x00000864 - - thumb_func_start sub_0804DC18 -sub_0804DC18: @ 0x0804DC18 - movs r0, #1 - bx lr - - thumb_func_start nullsub_349 -nullsub_349: @ 0x0804DC1C - bx lr - .align 2, 0 - - thumb_func_start sub_0804DC20 -sub_0804DC20: @ 0x0804DC20 - movs r0, #1 - bx lr - - thumb_func_start nullsub_350 -nullsub_350: @ 0x0804DC24 - bx lr - .align 2, 0 - - thumb_func_start sub_0804DC28 -sub_0804DC28: @ 0x0804DC28 - push {lr} - movs r0, #0x51 - bl CheckGlobalFlag - cmp r0, #0 - beq _0804DC3E - ldr r0, _0804DC44 @ =gRoomVars - ldr r1, _0804DC48 @ =gUnk_080ED1E4 - str r1, [r0, #0x6c] - movs r1, #0 - str r1, [r0, #0x74] -_0804DC3E: - movs r0, #1 - pop {pc} - .align 2, 0 -_0804DC44: .4byte gRoomVars -_0804DC48: .4byte gUnk_080ED1E4 - - thumb_func_start sub_0804DC4C -sub_0804DC4C: @ 0x0804DC4C - push {lr} - movs r0, #0x51 - bl CheckGlobalFlag - cmp r0, #0 - beq _0804DC66 - ldr r0, _0804DC68 @ =gArea - ldr r2, _0804DC6C @ =0x00000864 - adds r1, r0, r2 - subs r2, #4 - adds r0, r0, r2 - ldr r0, [r0] - str r0, [r1] -_0804DC66: - pop {pc} - .align 2, 0 -_0804DC68: .4byte gArea -_0804DC6C: .4byte 0x00000864 - - thumb_func_start sub_0804DC70 -sub_0804DC70: @ 0x0804DC70 - movs r0, #1 - bx lr - - thumb_func_start nullsub_351 -nullsub_351: @ 0x0804DC74 - bx lr - .align 2, 0 - - thumb_func_start sub_0804DC78 -sub_0804DC78: @ 0x0804DC78 - movs r0, #1 - bx lr - - thumb_func_start nullsub_352 -nullsub_352: @ 0x0804DC7C - bx lr - .align 2, 0 - - thumb_func_start sub_0804DC80 -sub_0804DC80: @ 0x0804DC80 - movs r0, #1 - bx lr - - thumb_func_start nullsub_353 -nullsub_353: @ 0x0804DC84 - bx lr - .align 2, 0 - - thumb_func_start sub_0804DC88 -sub_0804DC88: @ 0x0804DC88 - movs r0, #1 - bx lr - - thumb_func_start nullsub_354 -nullsub_354: @ 0x0804DC8C - bx lr - .align 2, 0 - - thumb_func_start sub_0804DC90 -sub_0804DC90: @ 0x0804DC90 - movs r0, #1 - bx lr - - thumb_func_start nullsub_355 -nullsub_355: @ 0x0804DC94 - bx lr - .align 2, 0 - - thumb_func_start sub_0804DC98 -sub_0804DC98: @ 0x0804DC98 - movs r0, #1 - bx lr - - thumb_func_start nullsub_356 -nullsub_356: @ 0x0804DC9C - bx lr - .align 2, 0 - - thumb_func_start sub_0804DCA0 -sub_0804DCA0: @ 0x0804DCA0 - movs r0, #1 - bx lr - - thumb_func_start nullsub_357 -nullsub_357: @ 0x0804DCA4 - bx lr - .align 2, 0 - - thumb_func_start sub_0804DCA8 -sub_0804DCA8: @ 0x0804DCA8 - movs r0, #1 - bx lr - - thumb_func_start nullsub_358 -nullsub_358: @ 0x0804DCAC - bx lr - .align 2, 0 - - thumb_func_start sub_0804DCB0 -sub_0804DCB0: @ 0x0804DCB0 - movs r0, #1 - bx lr - - thumb_func_start nullsub_359 -nullsub_359: @ 0x0804DCB4 - bx lr - .align 2, 0 - - thumb_func_start sub_0804DCB8 -sub_0804DCB8: @ 0x0804DCB8 - movs r0, #1 - bx lr - - thumb_func_start nullsub_360 -nullsub_360: @ 0x0804DCBC - bx lr - .align 2, 0 - - thumb_func_start sub_0804DCC0 -sub_0804DCC0: @ 0x0804DCC0 - movs r0, #1 - bx lr - - thumb_func_start nullsub_361 -nullsub_361: @ 0x0804DCC4 - bx lr - .align 2, 0 - - thumb_func_start sub_0804DCC8 -sub_0804DCC8: @ 0x0804DCC8 - movs r0, #1 - bx lr - - thumb_func_start nullsub_362 -nullsub_362: @ 0x0804DCCC - bx lr - .align 2, 0 - - thumb_func_start sub_0804DCD0 -sub_0804DCD0: @ 0x0804DCD0 - movs r0, #1 - bx lr - - thumb_func_start nullsub_363 -nullsub_363: @ 0x0804DCD4 - bx lr - .align 2, 0 - - thumb_func_start sub_0804DCD8 -sub_0804DCD8: @ 0x0804DCD8 - movs r0, #1 - bx lr - - thumb_func_start nullsub_364 -nullsub_364: @ 0x0804DCDC - bx lr - .align 2, 0 - - thumb_func_start sub_0804DCE0 -sub_0804DCE0: @ 0x0804DCE0 - movs r0, #1 - bx lr - - thumb_func_start nullsub_365 -nullsub_365: @ 0x0804DCE4 - bx lr - .align 2, 0 - - thumb_func_start sub_0804DCE8 -sub_0804DCE8: @ 0x0804DCE8 - movs r0, #1 - bx lr - - thumb_func_start nullsub_366 -nullsub_366: @ 0x0804DCEC - bx lr - .align 2, 0 - - thumb_func_start sub_0804DCF0 -sub_0804DCF0: @ 0x0804DCF0 - movs r0, #1 - bx lr - - thumb_func_start nullsub_367 -nullsub_367: @ 0x0804DCF4 - bx lr - .align 2, 0 - - thumb_func_start sub_0804DCF8 -sub_0804DCF8: @ 0x0804DCF8 - movs r0, #1 - bx lr - - thumb_func_start nullsub_368 -nullsub_368: @ 0x0804DCFC - bx lr - .align 2, 0 - - thumb_func_start sub_0804DD00 -sub_0804DD00: @ 0x0804DD00 - movs r0, #1 - bx lr - - thumb_func_start nullsub_369 -nullsub_369: @ 0x0804DD04 - bx lr - .align 2, 0 - - thumb_func_start sub_0804DD08 -sub_0804DD08: @ 0x0804DD08 - movs r0, #1 - bx lr - - thumb_func_start nullsub_370 -nullsub_370: @ 0x0804DD0C - bx lr - .align 2, 0 - - thumb_func_start sub_0804DD10 -sub_0804DD10: @ 0x0804DD10 - movs r0, #1 - bx lr - - thumb_func_start nullsub_371 -nullsub_371: @ 0x0804DD14 - bx lr - .align 2, 0 - - thumb_func_start sub_0804DD18 -sub_0804DD18: @ 0x0804DD18 - push {lr} - movs r0, #0x79 - bl CheckLocalFlag - cmp r0, #0 - beq _0804DD2C - ldr r1, _0804DD30 @ =gRoomVars - movs r0, #0 - str r0, [r1, #0x74] - str r0, [r1, #0x6c] -_0804DD2C: - movs r0, #1 - pop {pc} - .align 2, 0 -_0804DD30: .4byte gRoomVars - - thumb_func_start sub_0804DD34 -sub_0804DD34: @ 0x0804DD34 - push {lr} - movs r0, #0x79 - bl CheckLocalFlag - cmp r0, #0 - beq _0804DD60 - movs r0, #3 - movs r1, #2 - movs r2, #5 - movs r3, #1 - bl sub_0807BB98 - ldr r0, _0804DD64 @ =gUnk_080EE314 - bl LoadRoomEntityList - ldr r0, _0804DD68 @ =gArea - ldr r2, _0804DD6C @ =0x00000864 - adds r1, r0, r2 - subs r2, #4 - adds r0, r0, r2 - ldr r0, [r0] - str r0, [r1] -_0804DD60: - pop {pc} - .align 2, 0 -_0804DD64: .4byte gUnk_080EE314 -_0804DD68: .4byte gArea -_0804DD6C: .4byte 0x00000864 - - thumb_func_start sub_0804DD70 -sub_0804DD70: @ 0x0804DD70 - movs r0, #1 - bx lr - - thumb_func_start nullsub_372 -nullsub_372: @ 0x0804DD74 - bx lr - .align 2, 0 - - thumb_func_start sub_0804DD78 -sub_0804DD78: @ 0x0804DD78 - push {lr} - movs r0, #0x79 - bl CheckLocalFlag - cmp r0, #0 - beq _0804DD8A - ldr r1, _0804DD90 @ =gRoomVars - movs r0, #0 - str r0, [r1, #0x74] -_0804DD8A: - movs r0, #1 - pop {pc} - .align 2, 0 -_0804DD90: .4byte gRoomVars - - thumb_func_start sub_0804DD94 -sub_0804DD94: @ 0x0804DD94 - push {lr} - movs r0, #0x79 - bl CheckLocalFlag - cmp r0, #0 - beq _0804DDC0 - ldr r0, _0804DDC4 @ =0x00000392 - movs r1, #2 - movs r2, #2 - movs r3, #5 - bl sub_0807BB98 - ldr r0, _0804DDC8 @ =gUnk_080EE5DC - bl LoadRoomEntityList - ldr r0, _0804DDCC @ =gArea - ldr r2, _0804DDD0 @ =0x00000864 - adds r1, r0, r2 - subs r2, #4 - adds r0, r0, r2 - ldr r0, [r0] - str r0, [r1] -_0804DDC0: - pop {pc} - .align 2, 0 -_0804DDC4: .4byte 0x00000392 -_0804DDC8: .4byte gUnk_080EE5DC -_0804DDCC: .4byte gArea -_0804DDD0: .4byte 0x00000864 - - thumb_func_start sub_0804DDD4 -sub_0804DDD4: @ 0x0804DDD4 - movs r0, #1 - bx lr - - thumb_func_start nullsub_373 -nullsub_373: @ 0x0804DDD8 - bx lr - .align 2, 0 - - thumb_func_start sub_0804DDDC -sub_0804DDDC: @ 0x0804DDDC - movs r0, #1 - bx lr - - thumb_func_start sub_0804DDE0 -sub_0804DDE0: @ 0x0804DDE0 - push {lr} - movs r0, #1 - bl CheckLocalFlag - cmp r0, #0 - beq _0804DDF2 - ldr r0, _0804DDF4 @ =gUnk_080EE71C - bl LoadRoomEntityList -_0804DDF2: - pop {pc} - .align 2, 0 -_0804DDF4: .4byte gUnk_080EE71C - - thumb_func_start sub_0804DDF8 -sub_0804DDF8: @ 0x0804DDF8 - movs r0, #1 - bx lr - - thumb_func_start nullsub_374 -nullsub_374: @ 0x0804DDFC - bx lr - .align 2, 0 - - thumb_func_start sub_0804DE00 -sub_0804DE00: @ 0x0804DE00 - push {r4, r5, r6, lr} - bl sub_080530C8 - movs r0, #0xb - bl CheckKinstoneFused - cmp r0, #0 - beq _0804DE32 - movs r0, #0x19 - bl CheckGlobalFlag - cmp r0, #0 - bne _0804DE22 - movs r0, #0x19 - bl SetGlobalFlag - b _0804DE32 -_0804DE22: - movs r0, #0x18 - bl CheckGlobalFlag - cmp r0, #0 - bne _0804DE32 - movs r0, #0x18 - bl SetGlobalFlag -_0804DE32: - ldr r5, _0804DE50 @ =gUnk_080D4250 - ldr r4, _0804DE54 @ =gUnk_02002A40 - ldrb r0, [r4, #8] - lsls r0, r0, #2 - adds r0, r0, r5 - ldr r0, [r0] - bl sub_0804AFB0 - ldrb r0, [r4, #8] - cmp r0, #1 - beq _0804DE5C - ldr r1, _0804DE58 @ =gUnk_02017654 - ldr r0, [r5] - str r0, [r1] - b _0804DECC - .align 2, 0 -_0804DE50: .4byte gUnk_080D4250 -_0804DE54: .4byte gUnk_02002A40 -_0804DE58: .4byte gUnk_02017654 -_0804DE5C: - movs r0, #0x1c - bl SetGlobalFlag - ldr r4, _0804DEB4 @ =gArea - ldr r0, _0804DEB8 @ =0x0000085C - adds r4, r4, r0 - ldr r0, [r4] - ldrh r5, [r0, #4] - ldrh r6, [r0, #6] - ldr r1, _0804DEBC @ =gRoomControls - movs r2, #0 - movs r0, #0x15 - strb r0, [r1, #4] - strb r2, [r1, #5] - bl sub_08052CFC - ldr r0, [r4] - movs r1, #0x98 - lsls r1, r1, #1 - adds r5, r5, r1 - strh r5, [r0, #4] - ldr r0, [r4] - strh r6, [r0, #6] - ldr r1, _0804DEC0 @ =gUnk_030010A0 - ldr r0, [r4] - ldrh r0, [r0] - lsrs r0, r0, #1 - strh r0, [r1, #0x10] - bl sub_08052EA0 - bl sub_0804AF90 - movs r0, #0xcd - bl CheckLocalFlag - cmp r0, #0 - bne _0804DEC4 - movs r1, #0x80 - lsls r1, r1, #1 - movs r0, #7 - bl DoFade - b _0804DECC - .align 2, 0 -_0804DEB4: .4byte gArea -_0804DEB8: .4byte 0x0000085C -_0804DEBC: .4byte gRoomControls -_0804DEC0: .4byte gUnk_030010A0 -_0804DEC4: - movs r0, #6 - movs r1, #0x10 - bl DoFade -_0804DECC: - movs r0, #1 - pop {r4, r5, r6, pc} - - thumb_func_start sub_0804DED0 -sub_0804DED0: @ 0x0804DED0 - push {r4, lr} - bl sub_08054570 - bl sub_08059D18 - movs r0, #0xbb - lsls r0, r0, #1 - ldr r1, _0804DEF8 @ =0x0000066B - movs r2, #1 - bl SetTileType - ldr r0, _0804DEFC @ =gUnk_02002A40 - ldrb r0, [r0, #8] - cmp r0, #1 - bne _0804DF00 - movs r0, #0 - bl sub_0801D000 - b _0804E112 - .align 2, 0 -_0804DEF8: .4byte 0x0000066B -_0804DEFC: .4byte gUnk_02002A40 -_0804DF00: - ldr r0, _0804DF7C @ =0x00000DB4 - bl sub_08018C58 - movs r4, #0x80 - lsls r4, r4, #2 - adds r0, r4, #0 - movs r1, #0x84 - bl CheckLocalFlagByOffset - cmp r0, #0 - bne _0804DF1C - ldr r0, _0804DF80 @ =gUnk_080EEB6C - bl LoadRoomEntityList -_0804DF1C: - adds r0, r4, #0 - movs r1, #0x85 - bl CheckLocalFlagByOffset - cmp r0, #0 - bne _0804DF2E - ldr r0, _0804DF84 @ =gUnk_080EEB8C - bl LoadRoomEntityList -_0804DF2E: - movs r0, #0x67 - bl GetInventoryValue - cmp r0, #0 - bne _0804DF48 - movs r0, #2 - bl CheckGlobalFlag - cmp r0, #0 - beq _0804DF48 - ldr r0, _0804DF88 @ =gUnk_080EE88C - bl LoadRoomEntityList -_0804DF48: - movs r0, #0x28 - bl CheckKinstoneFused - cmp r0, #0 - bne _0804DF58 - ldr r0, _0804DF8C @ =gUnk_080EE8FC - bl LoadRoomEntityList -_0804DF58: - movs r0, #0x33 - bl CheckKinstoneFused - cmp r0, #0 - beq _0804DF68 - ldr r0, _0804DF90 @ =gUnk_080EE91C - bl LoadRoomEntityList -_0804DF68: - movs r0, #0x12 - bl CheckGlobalFlag - cmp r0, #0 - beq _0804DF98 - ldr r0, _0804DF94 @ =gUnk_080EE93C - bl LoadRoomEntityList - b _0804DF9E - .align 2, 0 -_0804DF7C: .4byte 0x00000DB4 -_0804DF80: .4byte gUnk_080EEB6C -_0804DF84: .4byte gUnk_080EEB8C -_0804DF88: .4byte gUnk_080EE88C -_0804DF8C: .4byte gUnk_080EE8FC -_0804DF90: .4byte gUnk_080EE91C -_0804DF94: .4byte gUnk_080EE93C -_0804DF98: - ldr r0, _0804DFF4 @ =gUnk_080EECBC - bl LoadRoomEntityList -_0804DF9E: - movs r0, #0x1b - bl CheckKinstoneFused - cmp r0, #0 - beq _0804E02A - ldr r0, _0804DFF8 @ =gUnk_02002A40 - ldrb r0, [r0, #8] - cmp r0, #3 - bls _0804E02A - movs r0, #0x2e - bl CheckGlobalFlag - cmp r0, #0 - bne _0804E024 - movs r0, #0x2f - bl CheckGlobalFlag - cmp r0, #0 - bne _0804E024 - movs r0, #0x30 - bl CheckGlobalFlag - cmp r0, #0 - bne _0804E024 - movs r0, #0x2b - bl CheckGlobalFlag - cmp r0, #0 - bne _0804E000 - movs r0, #0x2c - bl CheckGlobalFlag - cmp r0, #0 - bne _0804E000 - movs r0, #0x2d - bl CheckGlobalFlag - cmp r0, #0 - bne _0804E000 - ldr r0, _0804DFFC @ =gUnk_080EE95C - bl LoadRoomEntityList - b _0804E02A - .align 2, 0 -_0804DFF4: .4byte gUnk_080EECBC -_0804DFF8: .4byte gUnk_02002A40 -_0804DFFC: .4byte gUnk_080EE95C -_0804E000: - movs r0, #0x18 - bl CheckGlobalFlag - cmp r0, #0 - bne _0804E018 - ldr r0, _0804E014 @ =gUnk_080EE97C - bl LoadRoomEntityList - b _0804E02A - .align 2, 0 -_0804E014: .4byte gUnk_080EE97C -_0804E018: - ldr r0, _0804E020 @ =gUnk_080EE9BC - bl LoadRoomEntityList - b _0804E02A - .align 2, 0 -_0804E020: .4byte gUnk_080EE9BC -_0804E024: - ldr r0, _0804E03C @ =gUnk_080EE99C - bl LoadRoomEntityList -_0804E02A: - movs r0, #0x2b - bl CheckGlobalFlag - cmp r0, #0 - beq _0804E044 - ldr r0, _0804E040 @ =gUnk_080EE9FC - bl LoadRoomEntityList - b _0804E07A - .align 2, 0 -_0804E03C: .4byte gUnk_080EE99C -_0804E040: .4byte gUnk_080EE9FC -_0804E044: - movs r0, #0x2c - bl CheckGlobalFlag - cmp r0, #0 - beq _0804E05C - ldr r0, _0804E058 @ =gUnk_080EEA1C - bl LoadRoomEntityList - b _0804E07A - .align 2, 0 -_0804E058: .4byte gUnk_080EEA1C -_0804E05C: - movs r0, #0x2d - bl CheckGlobalFlag - cmp r0, #0 - beq _0804E074 - ldr r0, _0804E070 @ =gUnk_080EEA3C - bl LoadRoomEntityList - b _0804E07A - .align 2, 0 -_0804E070: .4byte gUnk_080EEA3C -_0804E074: - ldr r0, _0804E114 @ =gUnk_080EE9DC - bl LoadRoomEntityList -_0804E07A: - ldr r0, _0804E118 @ =gUnk_02002A40 - ldrb r0, [r0, #8] - cmp r0, #4 - bls _0804E0B0 - movs r0, #0xb - bl CheckKinstoneFused - cmp r0, #0 - bne _0804E0B0 - movs r0, #0x2b - bl CheckGlobalFlag - cmp r0, #0 - bne _0804E0AA - movs r0, #0x2c - bl CheckGlobalFlag - cmp r0, #0 - bne _0804E0AA - movs r0, #0x2d - bl CheckGlobalFlag - cmp r0, #0 - beq _0804E0B0 -_0804E0AA: - ldr r0, _0804E11C @ =gUnk_080EEA5C - bl LoadRoomEntityList -_0804E0B0: - movs r0, #0xd0 - bl CheckLocalFlag - cmp r0, #0 - bne _0804E0CA - movs r0, #0x14 - bl GetInventoryValue - cmp r0, #0 - beq _0804E0CA - ldr r0, _0804E120 @ =gUnk_080EEABC - bl LoadRoomEntityList -_0804E0CA: - ldr r0, _0804E118 @ =gUnk_02002A40 - ldrb r0, [r0, #8] - cmp r0, #3 - bls _0804E0E2 - movs r0, #0x1d - bl CheckGlobalFlag - cmp r0, #0 - beq _0804E0E2 - ldr r0, _0804E124 @ =gUnk_080EEA7C - bl LoadRoomEntityList -_0804E0E2: - ldr r0, _0804E118 @ =gUnk_02002A40 - ldrb r0, [r0, #8] - cmp r0, #5 - bhi _0804E0FA - movs r0, #0x29 - bl CheckGlobalFlag - cmp r0, #0 - bne _0804E0FA - ldr r0, _0804E128 @ =gUnk_080EEA9C - bl LoadRoomEntityList -_0804E0FA: - ldr r0, _0804E118 @ =gUnk_02002A40 - ldr r0, [r0, #0x40] - movs r1, #0x80 - lsls r1, r1, #0x14 - ands r0, r1 - cmp r0, #0 - bne _0804E10E - ldr r0, _0804E12C @ =gUnk_080EEBAC - bl LoadRoomEntityList -_0804E10E: - bl sub_0804E150 -_0804E112: - pop {r4, pc} - .align 2, 0 -_0804E114: .4byte gUnk_080EE9DC -_0804E118: .4byte gUnk_02002A40 -_0804E11C: .4byte gUnk_080EEA5C -_0804E120: .4byte gUnk_080EEABC -_0804E124: .4byte gUnk_080EEA7C -_0804E128: .4byte gUnk_080EEA9C -_0804E12C: .4byte gUnk_080EEBAC - - thumb_func_start sub_0804E130 -sub_0804E130: @ 0x0804E130 - push {lr} - ldr r0, _0804E148 @ =gUnk_02002A40 - ldr r0, [r0, #0x40] - movs r1, #0x80 - lsls r1, r1, #0x14 - ands r0, r1 - cmp r0, #0 - bne _0804E146 - ldr r0, _0804E14C @ =gUnk_080EEBAC - bl LoadRoomEntityList -_0804E146: - pop {pc} - .align 2, 0 -_0804E148: .4byte gUnk_02002A40 -_0804E14C: .4byte gUnk_080EEBAC - - thumb_func_start sub_0804E150 -sub_0804E150: @ 0x0804E150 - push {r4, r5, lr} - ldr r4, _0804E160 @ =gUnk_080EED2C - ldr r0, _0804E164 @ =gUnk_02002A40 - movs r5, #1 - ldrb r0, [r0, #8] - lsls r5, r0 - b _0804E17C - .align 2, 0 -_0804E160: .4byte gUnk_080EED2C -_0804E164: .4byte gUnk_02002A40 -_0804E168: - ldrh r0, [r4] - ands r0, r5 - cmp r0, #0 - beq _0804E17A - ldrh r0, [r4, #4] - ldrh r1, [r4, #2] - movs r2, #1 - bl SetTile -_0804E17A: - adds r4, #6 -_0804E17C: - ldrh r0, [r4, #2] - cmp r0, #0 - bne _0804E168 - movs r0, #0xd1 - bl CheckLocalFlag - cmp r0, #0 - bne _0804E1BA - ldr r4, _0804E198 @ =gUnk_080EED7A - ldr r0, _0804E19C @ =gUnk_02002A40 - movs r5, #1 - ldrb r0, [r0, #8] - lsls r5, r0 - b _0804E1B4 - .align 2, 0 -_0804E198: .4byte gUnk_080EED7A -_0804E19C: .4byte gUnk_02002A40 -_0804E1A0: - ldrh r0, [r4] - ands r0, r5 - cmp r0, #0 - beq _0804E1B2 - ldrh r0, [r4, #4] - ldrh r1, [r4, #2] - movs r2, #1 - bl SetTile -_0804E1B2: - adds r4, #6 -_0804E1B4: - ldrh r0, [r4] - cmp r0, #0 - bne _0804E1A0 -_0804E1BA: - movs r0, #0x29 - bl CheckGlobalFlag - cmp r0, #0 - bne _0804E1F2 - ldr r4, _0804E1D0 @ =gUnk_080EED8C - ldr r0, _0804E1D4 @ =gUnk_02002A40 - movs r5, #1 - ldrb r0, [r0, #8] - lsls r5, r0 - b _0804E1EC - .align 2, 0 -_0804E1D0: .4byte gUnk_080EED8C -_0804E1D4: .4byte gUnk_02002A40 -_0804E1D8: - ldrh r0, [r4] - ands r0, r5 - cmp r0, #0 - beq _0804E1EA - ldrh r0, [r4, #4] - ldrh r1, [r4, #2] - movs r2, #1 - bl SetTile -_0804E1EA: - adds r4, #6 -_0804E1EC: - ldrh r0, [r4] - cmp r0, #0 - bne _0804E1D8 -_0804E1F2: - pop {r4, r5, pc} - - thumb_func_start sub_0804E1F4 -sub_0804E1F4: @ 0x0804E1F4 - movs r0, #1 - bx lr - - thumb_func_start nullsub_76 -nullsub_76: @ 0x0804E1F8 - bx lr - .align 2, 0 - - thumb_func_start sub_0804E1FC -sub_0804E1FC: @ 0x0804E1FC - movs r0, #1 - bx lr - - thumb_func_start nullsub_77 -nullsub_77: @ 0x0804E200 - bx lr - .align 2, 0 - - thumb_func_start sub_0804E204 -sub_0804E204: @ 0x0804E204 - movs r0, #1 - bx lr - - thumb_func_start nullsub_78 -nullsub_78: @ 0x0804E208 - bx lr - .align 2, 0 - - thumb_func_start sub_0804E20C -sub_0804E20C: @ 0x0804E20C - movs r0, #1 - bx lr - - thumb_func_start nullsub_79 -nullsub_79: @ 0x0804E210 - bx lr - .align 2, 0 - - thumb_func_start sub_0804E214 -sub_0804E214: @ 0x0804E214 - movs r0, #1 - bx lr - - thumb_func_start nullsub_080 -nullsub_080: @ 0x0804E218 - bx lr - .align 2, 0 - - thumb_func_start sub_0804E21C -sub_0804E21C: @ 0x0804E21C - movs r0, #1 - bx lr - - thumb_func_start nullsub_081 -nullsub_081: @ 0x0804E220 - bx lr - .align 2, 0 - - thumb_func_start sub_0804E224 -sub_0804E224: @ 0x0804E224 - movs r0, #1 - bx lr - - thumb_func_start nullsub_082 -nullsub_082: @ 0x0804E228 - bx lr - .align 2, 0 - - thumb_func_start sub_0804E22C -sub_0804E22C: @ 0x0804E22C - movs r0, #1 - bx lr - - thumb_func_start nullsub_083 -nullsub_083: @ 0x0804E230 - bx lr - .align 2, 0 - - thumb_func_start sub_0804E234 -sub_0804E234: @ 0x0804E234 - movs r0, #1 - bx lr - - thumb_func_start nullsub_084 -nullsub_084: @ 0x0804E238 - bx lr - .align 2, 0 - - thumb_func_start sub_0804E23C -sub_0804E23C: @ 0x0804E23C - movs r0, #1 - bx lr - - thumb_func_start nullsub_085 -nullsub_085: @ 0x0804E240 - bx lr - .align 2, 0 - - thumb_func_start sub_0804E244 -sub_0804E244: @ 0x0804E244 - movs r0, #1 - bx lr - - thumb_func_start nullsub_086 -nullsub_086: @ 0x0804E248 - bx lr - .align 2, 0 - - thumb_func_start sub_0804E24C -sub_0804E24C: @ 0x0804E24C - movs r0, #1 - bx lr - - thumb_func_start nullsub_087 -nullsub_087: @ 0x0804E250 - bx lr - .align 2, 0 - - thumb_func_start sub_0804E254 -sub_0804E254: @ 0x0804E254 - movs r0, #1 - bx lr - - thumb_func_start nullsub_088 -nullsub_088: @ 0x0804E258 - bx lr - .align 2, 0 - - thumb_func_start sub_0804E25C -sub_0804E25C: @ 0x0804E25C - push {lr} - movs r0, #6 - bl GetInventoryValue - cmp r0, #0 - beq _0804E26E - ldr r1, _0804E274 @ =gRoomVars - ldr r0, _0804E278 @ =gUnk_080F09A0 - str r0, [r1, #0x70] -_0804E26E: - movs r0, #1 - pop {pc} - .align 2, 0 -_0804E274: .4byte gRoomVars -_0804E278: .4byte gUnk_080F09A0 - - thumb_func_start sub_0804E27C -sub_0804E27C: @ 0x0804E27C - push {r4, lr} - movs r0, #0x15 - bl CheckGlobalFlag - cmp r0, #0 - bne _0804E2AC - ldr r0, _0804E2A0 @ =gUnk_080F0650 - bl LoadRoomEntityList - ldr r0, _0804E2A4 @ =gArea - ldr r1, _0804E2A8 @ =0x00000864 - adds r0, r0, r1 - movs r1, #0x13 - str r1, [r0] - movs r0, #0x64 - bl SetGlobalFlag - b _0804E2C0 - .align 2, 0 -_0804E2A0: .4byte gUnk_080F0650 -_0804E2A4: .4byte gArea -_0804E2A8: .4byte 0x00000864 -_0804E2AC: - movs r0, #0x64 - bl CheckGlobalFlag - cmp r0, #0 - beq _0804E2C0 - ldr r0, _0804E300 @ =gArea - ldr r1, _0804E304 @ =0x00000864 - adds r0, r0, r1 - movs r1, #0x1b - str r1, [r0] -_0804E2C0: - movs r0, #0x9c - bl CheckLocalFlag - cmp r0, #0 - bne _0804E318 - ldr r0, _0804E308 @ =gUnk_080F0800 - bl LoadRoomEntityList - ldr r4, _0804E30C @ =0x00004072 - movs r1, #0x96 - lsls r1, r1, #2 - adds r0, r4, #0 - movs r2, #1 - bl SetTileType - movs r1, #0xa6 - lsls r1, r1, #2 - adds r0, r4, #0 - movs r2, #1 - bl SetTileType - ldr r1, _0804E310 @ =0x00000266 - adds r0, r4, #0 - movs r2, #1 - bl SetTileType - ldr r1, _0804E314 @ =0x000002A6 - adds r0, r4, #0 - movs r2, #1 - bl SetTileType - b _0804E3A6 - .align 2, 0 -_0804E300: .4byte gArea -_0804E304: .4byte 0x00000864 -_0804E308: .4byte gUnk_080F0800 -_0804E30C: .4byte 0x00004072 -_0804E310: .4byte 0x00000266 -_0804E314: .4byte 0x000002A6 -_0804E318: - movs r0, #6 - bl GetInventoryValue - cmp r0, #0 - bne _0804E348 - ldr r0, _0804E360 @ =gUnk_080F08F0 - bl LoadRoomEntityList - ldr r4, _0804E364 @ =0x00004072 - adds r0, r4, #0 - movs r1, #0x9e - movs r2, #1 - bl SetTileType - adds r0, r4, #0 - movs r1, #0x9f - movs r2, #1 - bl SetTileType - adds r0, r4, #0 - movs r1, #0xa0 - movs r2, #1 - bl SetTileType -_0804E348: - ldr r0, _0804E368 @ =gUnk_080F0850 - bl LoadRoomEntityList - movs r0, #0x42 - bl GetInventoryValue - cmp r0, #0 - bne _0804E370 - ldr r0, _0804E36C @ =gUnk_080F0870 - bl LoadRoomEntityList - b _0804E376 - .align 2, 0 -_0804E360: .4byte gUnk_080F08F0 -_0804E364: .4byte 0x00004072 -_0804E368: .4byte gUnk_080F0850 -_0804E36C: .4byte gUnk_080F0870 -_0804E370: - ldr r0, _0804E3AC @ =gUnk_080F0890 - bl LoadRoomEntityList -_0804E376: - ldr r4, _0804E3B0 @ =0x00004072 - movs r1, #0x96 - lsls r1, r1, #2 - adds r0, r4, #0 - movs r2, #1 - bl SetTileType - movs r1, #0xa6 - lsls r1, r1, #2 - adds r0, r4, #0 - movs r2, #1 - bl SetTileType - movs r0, #0x10 - bl CheckLocalFlag - cmp r0, #0 - beq _0804E3A6 - ldr r0, _0804E3B4 @ =gUnk_080F0920 - bl LoadRoomEntityList - movs r0, #0x10 - bl ClearLocalFlag -_0804E3A6: - bl sub_080AF284 - pop {r4, pc} - .align 2, 0 -_0804E3AC: .4byte gUnk_080F0890 -_0804E3B0: .4byte 0x00004072 -_0804E3B4: .4byte gUnk_080F0920 - - thumb_func_start sub_0804E3B8 -sub_0804E3B8: @ 0x0804E3B8 - push {lr} - movs r0, #1 - bl ClearLocalFlag - movs r0, #1 - pop {pc} - - thumb_func_start sub_0804E3C4 -sub_0804E3C4: @ 0x0804E3C4 - push {r4, r5, r6, lr} - movs r0, #5 - bl CheckGlobalFlag - rsbs r1, r0, #0 - orrs r1, r0 - lsrs r6, r1, #0x1f - movs r0, #6 - bl CheckGlobalFlag - cmp r0, #0 - beq _0804E3DE - movs r6, #2 -_0804E3DE: - movs r0, #0x55 - bl CheckGlobalFlag - cmp r0, #0 - beq _0804E3EA - movs r6, #3 -_0804E3EA: - bl Random - adds r4, r0, #0 - ldr r1, _0804E448 @ =gUnk_080F0D58 - lsls r0, r6, #2 - adds r0, r0, r1 - movs r5, #0x1f - adds r1, r4, #0 - ands r1, r5 - ldr r0, [r0] - adds r0, r0, r1 - ldrb r6, [r0] - ldr r1, _0804E44C @ =gUnk_080F0CB8 - movs r0, #0xf - ands r0, r6 - lsls r0, r0, #2 - adds r0, r0, r1 - ldr r0, [r0] - bl LoadRoomEntityList - lsrs r6, r6, #4 - lsrs r4, r4, #8 - ldr r1, _0804E450 @ =gUnk_080F0E08 - lsls r0, r6, #2 - adds r0, r0, r1 - ands r4, r5 - ldr r0, [r0] - adds r0, r0, r4 - ldrb r6, [r0] - movs r0, #0xc6 - bl CheckLocalFlag - cmp r0, #0 - bne _0804E436 - movs r0, #0xc6 - bl SetLocalFlag - movs r6, #0xe -_0804E436: - lsls r0, r6, #3 - ldr r1, _0804E454 @ =gUnk_080F0E1C - adds r0, r0, r1 - bl sub_0804B3C4 - ldr r0, _0804E458 @ =0x80100000 - bl PlaySFX - pop {r4, r5, r6, pc} - .align 2, 0 -_0804E448: .4byte gUnk_080F0D58 -_0804E44C: .4byte gUnk_080F0CB8 -_0804E450: .4byte gUnk_080F0E08 -_0804E454: .4byte gUnk_080F0E1C -_0804E458: .4byte 0x80100000 - - thumb_func_start sub_0804E45C -sub_0804E45C: @ 0x0804E45C - movs r0, #1 - bx lr - - thumb_func_start sub_0804E460 -sub_0804E460: @ 0x0804E460 - push {lr} - movs r0, #0x4a - bl CheckGlobalFlag - cmp r0, #0 - bne _0804E478 - ldr r0, _0804E474 @ =gUnk_080F1C68 - bl LoadRoomEntityList - b _0804E47E - .align 2, 0 -_0804E474: .4byte gUnk_080F1C68 -_0804E478: - ldr r0, _0804E480 @ =gUnk_080F1C88 - bl LoadRoomEntityList -_0804E47E: - pop {pc} - .align 2, 0 -_0804E480: .4byte gUnk_080F1C88 - - thumb_func_start sub_0804E484 -sub_0804E484: @ 0x0804E484 - movs r0, #1 - bx lr - - thumb_func_start sub_0804E488 -sub_0804E488: @ 0x0804E488 - push {lr} - movs r0, #0x2e - bl CheckGlobalFlag - cmp r0, #0 - beq _0804E4A0 - ldr r0, _0804E49C @ =gUnk_080F1D90 - bl LoadRoomEntityList - b _0804E4C8 - .align 2, 0 -_0804E49C: .4byte gUnk_080F1D90 -_0804E4A0: - movs r0, #0x2f - bl CheckGlobalFlag - cmp r0, #0 - beq _0804E4B8 - ldr r0, _0804E4B4 @ =gUnk_080F1DB0 - bl LoadRoomEntityList - b _0804E4C8 - .align 2, 0 -_0804E4B4: .4byte gUnk_080F1DB0 -_0804E4B8: - movs r0, #0x30 - bl CheckGlobalFlag - cmp r0, #0 - beq _0804E4C8 - ldr r0, _0804E4CC @ =gUnk_080F1DD0 - bl LoadRoomEntityList -_0804E4C8: - pop {pc} - .align 2, 0 -_0804E4CC: .4byte gUnk_080F1DD0 - - thumb_func_start sub_0804E4D0 -sub_0804E4D0: @ 0x0804E4D0 - movs r0, #1 - bx lr - - thumb_func_start nullsub_375 -nullsub_375: @ 0x0804E4D4 - bx lr - .align 2, 0 - - thumb_func_start sub_0804E4D8 -sub_0804E4D8: @ 0x0804E4D8 - movs r0, #1 - bx lr - - thumb_func_start nullsub_376 -nullsub_376: @ 0x0804E4DC - bx lr - .align 2, 0 - - thumb_func_start sub_0804E4E0 -sub_0804E4E0: @ 0x0804E4E0 - movs r0, #1 - bx lr - - thumb_func_start sub_0804E4E4 -sub_0804E4E4: @ 0x0804E4E4 - push {lr} - ldr r0, _0804E518 @ =gUnk_080F2174 - bl LoadRoomEntityList - movs r0, #0x3a - bl GetInventoryValue - cmp r0, #0 - bne _0804E506 - movs r0, #0x2a - bl CheckGlobalFlag - cmp r0, #0 - beq _0804E506 - ldr r0, _0804E51C @ =gUnk_080F2194 - bl LoadRoomEntityList -_0804E506: - ldr r0, _0804E520 @ =gUnk_030010A0 - ldrb r0, [r0, #0xf] - cmp r0, #1 - bne _0804E514 - ldr r0, _0804E524 @ =gUnk_080F21B4 - bl LoadRoomEntityList -_0804E514: - pop {pc} - .align 2, 0 -_0804E518: .4byte gUnk_080F2174 -_0804E51C: .4byte gUnk_080F2194 -_0804E520: .4byte gUnk_030010A0 -_0804E524: .4byte gUnk_080F21B4 - - thumb_func_start sub_0804E528 -sub_0804E528: @ 0x0804E528 - movs r0, #1 - bx lr - - thumb_func_start sub_0804E52C -sub_0804E52C: @ 0x0804E52C - push {lr} - ldr r0, _0804E558 @ =gUnk_02002A40 - ldrb r0, [r0, #8] - cmp r0, #7 - bls _0804E53C - ldr r0, _0804E55C @ =gUnk_080F23BC - bl LoadRoomEntityList -_0804E53C: - movs r0, #0x46 - bl GetInventoryValue - cmp r0, #0 - bne _0804E564 - movs r0, #0x29 - bl CheckGlobalFlag - cmp r0, #0 - beq _0804E564 - ldr r0, _0804E560 @ =gUnk_080F238C - bl LoadRoomEntityList - b _0804E56A - .align 2, 0 -_0804E558: .4byte gUnk_02002A40 -_0804E55C: .4byte gUnk_080F23BC -_0804E560: .4byte gUnk_080F238C -_0804E564: - ldr r0, _0804E56C @ =gUnk_080F236C - bl LoadRoomEntityList -_0804E56A: - pop {pc} - .align 2, 0 -_0804E56C: .4byte gUnk_080F236C - - thumb_func_start sub_0804E570 -sub_0804E570: @ 0x0804E570 - movs r0, #1 - bx lr - - thumb_func_start sub_0804E574 -sub_0804E574: @ 0x0804E574 - push {lr} - ldr r0, _0804E588 @ =gUnk_02002A40 - ldrb r0, [r0, #8] - cmp r0, #9 - bhi _0804E608 - lsls r0, r0, #2 - ldr r1, _0804E58C @ =_0804E590 - adds r0, r0, r1 - ldr r0, [r0] - mov pc, r0 - .align 2, 0 -_0804E588: .4byte gUnk_02002A40 -_0804E58C: .4byte _0804E590 -_0804E590: @ jump table - .4byte _0804E5CC @ case 0 - .4byte _0804E608 @ case 1 - .4byte _0804E5CC @ case 2 - .4byte _0804E608 @ case 3 - .4byte _0804E5CC @ case 4 - .4byte _0804E5B8 @ case 5 - .4byte _0804E602 @ case 6 - .4byte _0804E602 @ case 7 - .4byte _0804E5FC @ case 8 - .4byte _0804E5FC @ case 9 -_0804E5B8: - movs r0, #0x46 - bl GetInventoryValue - cmp r0, #0 - bne _0804E5F0 - movs r0, #0x29 - bl CheckGlobalFlag - cmp r0, #0 - bne _0804E5D8 -_0804E5CC: - ldr r0, _0804E5D4 @ =gUnk_080F2570 - bl LoadRoomEntityList - b _0804E608 - .align 2, 0 -_0804E5D4: .4byte gUnk_080F2570 -_0804E5D8: - movs r0, #0x39 - bl GetInventoryValue - cmp r0, #0 - bne _0804E608 - ldr r0, _0804E5EC @ =gUnk_080F25C0 - bl LoadRoomEntityList - b _0804E608 - .align 2, 0 -_0804E5EC: .4byte gUnk_080F25C0 -_0804E5F0: - ldr r0, _0804E5F8 @ =gUnk_080F2590 - bl LoadRoomEntityList - b _0804E608 - .align 2, 0 -_0804E5F8: .4byte gUnk_080F2590 -_0804E5FC: - ldr r0, _0804E60C @ =gUnk_080F2600 - bl LoadRoomEntityList -_0804E602: - ldr r0, _0804E610 @ =gUnk_080F2590 - bl LoadRoomEntityList -_0804E608: - pop {pc} - .align 2, 0 -_0804E60C: .4byte gUnk_080F2600 -_0804E610: .4byte gUnk_080F2590 - - thumb_func_start sub_0804E614 -sub_0804E614: @ 0x0804E614 - movs r0, #1 - bx lr - - thumb_func_start sub_0804E618 -sub_0804E618: @ 0x0804E618 - push {lr} - movs r0, #0x21 - bl CheckKinstoneFused - cmp r0, #0 - beq _0804E67A - movs r0, #0x42 - bl CheckLocalFlag - cmp r0, #0 - bne _0804E65C - movs r0, #0x43 - bl CheckLocalFlag - cmp r0, #0 - bne _0804E650 - ldr r0, _0804E648 @ =gUnk_080F2718 - bl LoadRoomEntityList - ldr r0, _0804E64C @ =gUnk_080F2860 - bl sub_0804B1AC - b _0804E67A - .align 2, 0 -_0804E648: .4byte gUnk_080F2718 -_0804E64C: .4byte gUnk_080F2860 -_0804E650: - ldr r0, _0804E658 @ =gUnk_080F2758 - bl LoadRoomEntityList - b _0804E67A - .align 2, 0 -_0804E658: .4byte gUnk_080F2758 -_0804E65C: - movs r0, #0x3f - bl CheckLocalFlag - cmp r0, #0 - bne _0804E674 - ldr r0, _0804E670 @ =gUnk_080F27D8 - bl LoadRoomEntityList - b _0804E67A - .align 2, 0 -_0804E670: .4byte gUnk_080F27D8 -_0804E674: - ldr r0, _0804E67C @ =gUnk_080F2798 - bl LoadRoomEntityList -_0804E67A: - pop {pc} - .align 2, 0 -_0804E67C: .4byte gUnk_080F2798 - - thumb_func_start sub_0804E680 -sub_0804E680: @ 0x0804E680 - movs r0, #1 - bx lr - - thumb_func_start sub_0804E684 -sub_0804E684: @ 0x0804E684 - push {lr} - movs r0, #0x2b - bl CheckGlobalFlag - cmp r0, #0 - beq _0804E69C - ldr r0, _0804E698 @ =gUnk_080F28D4 - bl LoadRoomEntityList - b _0804E6C4 - .align 2, 0 -_0804E698: .4byte gUnk_080F28D4 -_0804E69C: - movs r0, #0x2c - bl CheckGlobalFlag - cmp r0, #0 - beq _0804E6B4 - ldr r0, _0804E6B0 @ =gUnk_080F28F4 - bl LoadRoomEntityList - b _0804E6C4 - .align 2, 0 -_0804E6B0: .4byte gUnk_080F28F4 -_0804E6B4: - movs r0, #0x2d - bl CheckGlobalFlag - cmp r0, #0 - beq _0804E6C4 - ldr r0, _0804E6C8 @ =gUnk_080F2914 - bl LoadRoomEntityList -_0804E6C4: - pop {pc} - .align 2, 0 -_0804E6C8: .4byte gUnk_080F2914 - - thumb_func_start sub_0804E6CC -sub_0804E6CC: @ 0x0804E6CC - movs r0, #1 - bx lr - - thumb_func_start nullsub_377 -nullsub_377: @ 0x0804E6D0 - bx lr - .align 2, 0 - - thumb_func_start sub_0804E6D4 -sub_0804E6D4: @ 0x0804E6D4 - movs r0, #1 - bx lr - - thumb_func_start nullsub_378 -nullsub_378: @ 0x0804E6D8 - bx lr - .align 2, 0 - - thumb_func_start sub_0804E6DC -sub_0804E6DC: @ 0x0804E6DC - movs r0, #1 - bx lr - - thumb_func_start nullsub_379 -nullsub_379: @ 0x0804E6E0 - bx lr - .align 2, 0 - - thumb_func_start sub_0804E6E4 -sub_0804E6E4: @ 0x0804E6E4 - movs r0, #1 - bx lr - - thumb_func_start sub_0804E6E8 -sub_0804E6E8: @ 0x0804E6E8 - push {lr} - movs r0, #0x49 - bl CheckGlobalFlag - cmp r0, #0 - bne _0804E70A - ldr r0, _0804E71C @ =gArea - movs r2, #0x86 - lsls r2, r2, #4 - adds r1, r0, r2 - adds r2, #4 - adds r0, r0, r2 - ldr r0, [r0] - str r0, [r1] - ldr r0, _0804E720 @ =0x800B0036 - bl PlaySFX -_0804E70A: - movs r0, #0x13 - bl CheckGlobalFlag - cmp r0, #0 - bne _0804E71A - ldr r0, _0804E724 @ =gUnk_080F2E2C - bl LoadRoomEntityList -_0804E71A: - pop {pc} - .align 2, 0 -_0804E71C: .4byte gArea -_0804E720: .4byte 0x800B0036 -_0804E724: .4byte gUnk_080F2E2C - - thumb_func_start sub_0804E728 -sub_0804E728: @ 0x0804E728 - movs r0, #1 - bx lr - - thumb_func_start sub_0804E72C -sub_0804E72C: @ 0x0804E72C - push {lr} - movs r0, #0x49 - bl CheckGlobalFlag - cmp r0, #0 - bne _0804E74E - ldr r0, _0804E760 @ =gArea - movs r2, #0x86 - lsls r2, r2, #4 - adds r1, r0, r2 - adds r2, #4 - adds r0, r0, r2 - ldr r0, [r0] - str r0, [r1] - ldr r0, _0804E764 @ =0x800B0036 - bl PlaySFX -_0804E74E: - movs r0, #0x13 - bl CheckGlobalFlag - cmp r0, #0 - bne _0804E76C - ldr r0, _0804E768 @ =gUnk_080F2E94 - bl LoadRoomEntityList - b _0804E772 - .align 2, 0 -_0804E760: .4byte gArea -_0804E764: .4byte 0x800B0036 -_0804E768: .4byte gUnk_080F2E94 -_0804E76C: - ldr r0, _0804E774 @ =gUnk_080F2EC4 - bl LoadRoomEntityList -_0804E772: - pop {pc} - .align 2, 0 -_0804E774: .4byte gUnk_080F2EC4 - - thumb_func_start sub_0804E778 -sub_0804E778: @ 0x0804E778 - movs r0, #1 - bx lr - - thumb_func_start sub_0804E77C -sub_0804E77C: @ 0x0804E77C - push {lr} - movs r0, #0x69 - bl CheckLocalFlag - cmp r0, #0 - beq _0804E792 - movs r0, #0x3c - bl GetInventoryValue - cmp r0, #1 - bls _0804E798 -_0804E792: - ldr r0, _0804E79C @ =gUnk_080F2FD4 - bl LoadRoomEntityList -_0804E798: - pop {pc} - .align 2, 0 -_0804E79C: .4byte gUnk_080F2FD4 - - thumb_func_start sub_0804E7A0 -sub_0804E7A0: @ 0x0804E7A0 - movs r0, #1 - bx lr - - thumb_func_start sub_0804E7A4 -sub_0804E7A4: @ 0x0804E7A4 - push {lr} - movs r0, #0x36 - bl GetInventoryValue - cmp r0, #1 - bne _0804E7CC - movs r0, #0x5b - bl CheckGlobalFlag - cmp r0, #0 - bne _0804E7CC - ldr r0, _0804E7D0 @ =gLinkState - ldr r0, [r0, #0x30] - movs r1, #0x80 - ands r0, r1 - cmp r0, #0 - bne _0804E7CC - ldr r0, _0804E7D4 @ =gUnk_080F30CC - bl LoadRoomEntityList -_0804E7CC: - pop {pc} - .align 2, 0 -_0804E7D0: .4byte gLinkState -_0804E7D4: .4byte gUnk_080F30CC - - thumb_func_start sub_0804E7D8 -sub_0804E7D8: @ 0x0804E7D8 - movs r0, #1 - bx lr - - thumb_func_start sub_0804E7DC -sub_0804E7DC: @ 0x0804E7DC - push {r4, lr} - movs r0, #0x13 - bl CheckGlobalFlag - cmp r0, #0 - bne _0804E818 - movs r0, #0x46 - bl CheckLocalFlag - adds r4, r0, #0 - cmp r4, #0 - bne _0804E818 - movs r0, #5 - movs r1, #1 - movs r2, #4 - movs r3, #4 - bl sub_080A71C4 - ldr r0, _0804E84C @ =gUnk_02000070 - strb r4, [r0] - movs r1, #0x80 - lsls r1, r1, #1 - movs r0, #5 - bl DoFade - ldr r2, _0804E850 @ =gUnk_08009B30 - movs r0, #0 - movs r1, #6 - bl sub_080751E8 -_0804E818: - movs r0, #0x49 - bl CheckGlobalFlag - cmp r0, #0 - bne _0804E838 - ldr r0, _0804E854 @ =gArea - movs r2, #0x86 - lsls r2, r2, #4 - adds r1, r0, r2 - adds r2, #4 - adds r0, r0, r2 - ldr r0, [r0] - str r0, [r1] - ldr r0, _0804E858 @ =0x800B0036 - bl PlaySFX -_0804E838: - ldr r0, _0804E85C @ =gLinkState - ldr r0, [r0, #0x30] - movs r1, #8 - ands r0, r1 - cmp r0, #0 - bne _0804E84A - ldr r0, _0804E860 @ =gUnk_080F31D8 - bl LoadRoomEntityList -_0804E84A: - pop {r4, pc} - .align 2, 0 -_0804E84C: .4byte gUnk_02000070 -_0804E850: .4byte gUnk_08009B30 -_0804E854: .4byte gArea -_0804E858: .4byte 0x800B0036 -_0804E85C: .4byte gLinkState -_0804E860: .4byte gUnk_080F31D8 - - thumb_func_start sub_0804E864 -sub_0804E864: @ 0x0804E864 - push {lr} - ldr r2, _0804E888 @ =gLinkEntity - ldr r1, _0804E88C @ =gRoomControls - ldrh r0, [r1, #6] - adds r0, #0x90 - strh r0, [r2, #0x2e] - ldrh r0, [r1, #8] - adds r0, #0x38 - strh r0, [r2, #0x32] - ldr r2, _0804E890 @ =gUnk_08009E58 - movs r0, #1 - movs r1, #6 - bl sub_080751E8 - movs r0, #0xa0 - bl ModHealth - pop {pc} - .align 2, 0 -_0804E888: .4byte gLinkEntity -_0804E88C: .4byte gRoomControls -_0804E890: .4byte gUnk_08009E58 - - thumb_func_start sub_0804E894 -sub_0804E894: @ 0x0804E894 - movs r0, #1 - bx lr - - thumb_func_start sub_0804E898 -sub_0804E898: @ 0x0804E898 - push {r4, lr} - movs r0, #0x12 - bl GetInventoryValue - cmp r0, #0 - beq _0804E8D8 - ldr r0, _0804E8DC @ =gUnk_080F3260 - bl LoadRoomEntityList - ldr r4, _0804E8E0 @ =0x00004072 - ldr r1, _0804E8E4 @ =0x00000202 - adds r0, r4, #0 - movs r2, #1 - bl SetTileType - ldr r1, _0804E8E8 @ =0x00000242 - adds r0, r4, #0 - movs r2, #1 - bl SetTileType - movs r1, #0x81 - lsls r1, r1, #2 - adds r0, r4, #0 - movs r2, #1 - bl SetTileType - movs r1, #0x91 - lsls r1, r1, #2 - adds r0, r4, #0 - movs r2, #1 - bl SetTileType -_0804E8D8: - pop {r4, pc} - .align 2, 0 -_0804E8DC: .4byte gUnk_080F3260 -_0804E8E0: .4byte 0x00004072 -_0804E8E4: .4byte 0x00000202 -_0804E8E8: .4byte 0x00000242 - - thumb_func_start sub_0804E8EC -sub_0804E8EC: @ 0x0804E8EC - movs r0, #1 - bx lr - - thumb_func_start sub_0804E8F0 -sub_0804E8F0: @ 0x0804E8F0 - push {lr} - bl sub_08054564 - pop {pc} - - thumb_func_start sub_0804E8F8 -sub_0804E8F8: @ 0x0804E8F8 - movs r0, #1 - bx lr - - thumb_func_start sub_0804E8FC -sub_0804E8FC: @ 0x0804E8FC - push {lr} - movs r0, #0x1d - bl CheckGlobalFlag - cmp r0, #0 - bne _0804E914 - ldr r0, _0804E910 @ =gUnk_080F36FC - bl LoadRoomEntityList - b _0804E922 - .align 2, 0 -_0804E910: .4byte gUnk_080F36FC -_0804E914: - ldr r0, _0804E924 @ =gUnk_02002A40 - ldrb r0, [r0, #8] - cmp r0, #3 - bhi _0804E922 - ldr r0, _0804E928 @ =gUnk_080F3604 - bl LoadRoomEntityList -_0804E922: - pop {pc} - .align 2, 0 -_0804E924: .4byte gUnk_02002A40 -_0804E928: .4byte gUnk_080F3604 - - thumb_func_start sub_0804E92C -sub_0804E92C: @ 0x0804E92C - movs r0, #1 - bx lr - - thumb_func_start sub_0804E930 -sub_0804E930: @ 0x0804E930 - push {lr} - movs r0, #0x1d - bl CheckGlobalFlag - cmp r0, #0 - beq _0804E942 - ldr r0, _0804E944 @ =gUnk_080F37D0 - bl LoadRoomEntityList -_0804E942: - pop {pc} - .align 2, 0 -_0804E944: .4byte gUnk_080F37D0 - - thumb_func_start sub_0804E948 -sub_0804E948: @ 0x0804E948 - movs r0, #1 - bx lr - - thumb_func_start nullsub_380 -nullsub_380: @ 0x0804E94C - bx lr - .align 2, 0 - - thumb_func_start sub_0804E950 -sub_0804E950: @ 0x0804E950 - movs r0, #1 - bx lr - - thumb_func_start sub_0804E954 -sub_0804E954: @ 0x0804E954 - push {lr} - movs r0, #0x46 - bl GetInventoryValue - cmp r0, #0 - bne _0804E97A - movs r0, #0x29 - bl CheckGlobalFlag - cmp r0, #0 - beq _0804E97A - movs r0, #0x3b - bl GetInventoryValue - cmp r0, #0 - bne _0804E97A - ldr r0, _0804E988 @ =gUnk_080F3A48 - bl LoadRoomEntityList -_0804E97A: - ldr r0, _0804E98C @ =gUnk_030010A0 - ldr r1, _0804E990 @ =0x00000F28 - strh r1, [r0, #0x20] - ldr r1, _0804E994 @ =0x0000082D - strh r1, [r0, #0x22] - pop {pc} - .align 2, 0 -_0804E988: .4byte gUnk_080F3A48 -_0804E98C: .4byte gUnk_030010A0 -_0804E990: .4byte 0x00000F28 -_0804E994: .4byte 0x0000082D - - thumb_func_start sub_0804E998 -sub_0804E998: @ 0x0804E998 - push {lr} - movs r0, #5 - bl CheckGlobalFlag - cmp r0, #0 - beq _0804E9BC - movs r0, #4 - bl CheckLocalFlag - cmp r0, #0 - bne _0804E9BC - ldr r1, _0804E9B4 @ =gRoomVars - ldr r0, _0804E9B8 @ =gUnk_080F3EA4 - b _0804E9C0 - .align 2, 0 -_0804E9B4: .4byte gRoomVars -_0804E9B8: .4byte gUnk_080F3EA4 -_0804E9BC: - ldr r1, _0804E9C8 @ =gRoomVars - ldr r0, _0804E9CC @ =gUnk_080F3D44 -_0804E9C0: - str r0, [r1, #0x74] - movs r0, #1 - pop {pc} - .align 2, 0 -_0804E9C8: .4byte gRoomVars -_0804E9CC: .4byte gUnk_080F3D44 - - thumb_func_start sub_0804E9D0 -sub_0804E9D0: @ 0x0804E9D0 - push {r4, lr} - movs r0, #5 - bl CheckGlobalFlag - cmp r0, #0 - beq _0804E9EC - movs r0, #4 - bl CheckLocalFlag - cmp r0, #0 - bne _0804E9EC - ldr r0, _0804EAC4 @ =gUnk_080F3C64 - bl LoadRoomEntityList -_0804E9EC: - movs r0, #0x12 - bl CheckKinstoneFused - cmp r0, #0 - beq _0804E9FC - ldr r0, _0804EAC8 @ =gUnk_080F3C94 - bl LoadRoomEntityList -_0804E9FC: - ldr r0, _0804EACC @ =gUnk_02002A40 - ldrb r0, [r0, #8] - cmp r0, #3 - bls _0804EA14 - movs r0, #0x5c - bl CheckGlobalFlag - cmp r0, #0 - beq _0804EA14 - ldr r0, _0804EAD0 @ =gUnk_080F3C44 - bl LoadRoomEntityList -_0804EA14: - ldr r4, _0804EAD4 @ =0x00004091 - movs r1, #0xb2 - lsls r1, r1, #3 - adds r0, r4, #0 - movs r2, #1 - bl SetTile - ldr r1, _0804EAD8 @ =0x00000591 - adds r0, r4, #0 - movs r2, #1 - bl SetTile - ldr r1, _0804EADC @ =0x00000592 - adds r0, r4, #0 - movs r2, #1 - bl SetTile - ldr r1, _0804EAE0 @ =0x00000593 - adds r0, r4, #0 - movs r2, #1 - bl SetTile - ldr r1, _0804EAE4 @ =0x00000594 - adds r0, r4, #0 - movs r2, #1 - bl SetTile - movs r1, #0xba - lsls r1, r1, #3 - adds r0, r4, #0 - movs r2, #1 - bl SetTile - movs r1, #0xc2 - lsls r1, r1, #3 - adds r0, r4, #0 - movs r2, #1 - bl SetTile - movs r1, #0xca - lsls r1, r1, #3 - adds r0, r4, #0 - movs r2, #1 - bl SetTile - ldr r1, _0804EAE8 @ =0x000005D4 - adds r0, r4, #0 - movs r2, #1 - bl SetTile - ldr r1, _0804EAEC @ =0x00000614 - adds r0, r4, #0 - movs r2, #1 - bl SetTile - ldr r1, _0804EAF0 @ =0x00000654 - adds r0, r4, #0 - movs r2, #1 - bl SetTile - movs r1, #0xd2 - lsls r1, r1, #3 - adds r0, r4, #0 - movs r2, #1 - bl SetTile - ldr r1, _0804EAF4 @ =0x00000691 - adds r0, r4, #0 - movs r2, #1 - bl SetTile - ldr r1, _0804EAF8 @ =0x00000692 - adds r0, r4, #0 - movs r2, #1 - bl SetTile - ldr r1, _0804EAFC @ =0x00000693 - adds r0, r4, #0 - movs r2, #1 - bl SetTile - ldr r1, _0804EB00 @ =0x00000694 - adds r0, r4, #0 - movs r2, #1 - bl SetTile - pop {r4, pc} - .align 2, 0 -_0804EAC4: .4byte gUnk_080F3C64 -_0804EAC8: .4byte gUnk_080F3C94 -_0804EACC: .4byte gUnk_02002A40 -_0804EAD0: .4byte gUnk_080F3C44 -_0804EAD4: .4byte 0x00004091 -_0804EAD8: .4byte 0x00000591 -_0804EADC: .4byte 0x00000592 -_0804EAE0: .4byte 0x00000593 -_0804EAE4: .4byte 0x00000594 -_0804EAE8: .4byte 0x000005D4 -_0804EAEC: .4byte 0x00000614 -_0804EAF0: .4byte 0x00000654 -_0804EAF4: .4byte 0x00000691 -_0804EAF8: .4byte 0x00000692 -_0804EAFC: .4byte 0x00000693 -_0804EB00: .4byte 0x00000694 - - thumb_func_start sub_0804EB04 -sub_0804EB04: @ 0x0804EB04 - movs r0, #1 - bx lr - - thumb_func_start nullsub_381 -nullsub_381: @ 0x0804EB08 - bx lr - .align 2, 0 - - thumb_func_start sub_0804EB0C -sub_0804EB0C: @ 0x0804EB0C - movs r0, #1 - bx lr - - thumb_func_start nullsub_382 -nullsub_382: @ 0x0804EB10 - bx lr - .align 2, 0 - - thumb_func_start sub_0804EB14 -sub_0804EB14: @ 0x0804EB14 - movs r0, #1 - bx lr - - thumb_func_start nullsub_383 -nullsub_383: @ 0x0804EB18 - bx lr - .align 2, 0 - - thumb_func_start sub_0804EB1C -sub_0804EB1C: @ 0x0804EB1C - movs r0, #1 - bx lr - - thumb_func_start nullsub_384 -nullsub_384: @ 0x0804EB20 - bx lr - .align 2, 0 - - thumb_func_start sub_0804EB24 -sub_0804EB24: @ 0x0804EB24 - movs r0, #1 - bx lr - - thumb_func_start nullsub_385 -nullsub_385: @ 0x0804EB28 - bx lr - .align 2, 0 - - thumb_func_start sub_0804EB2C -sub_0804EB2C: @ 0x0804EB2C - movs r0, #1 - bx lr - - thumb_func_start nullsub_386 -nullsub_386: @ 0x0804EB30 - bx lr - .align 2, 0 - - thumb_func_start sub_0804EB34 -sub_0804EB34: @ 0x0804EB34 - movs r0, #1 - bx lr - - thumb_func_start nullsub_387 -nullsub_387: @ 0x0804EB38 - bx lr - .align 2, 0 - - thumb_func_start sub_0804EB3C -sub_0804EB3C: @ 0x0804EB3C - movs r0, #1 - bx lr - - thumb_func_start nullsub_388 -nullsub_388: @ 0x0804EB40 - bx lr - .align 2, 0 - - thumb_func_start sub_0804EB44 -sub_0804EB44: @ 0x0804EB44 - movs r0, #1 - bx lr - - thumb_func_start nullsub_389 -nullsub_389: @ 0x0804EB48 - bx lr - .align 2, 0 - - thumb_func_start sub_0804EB4C -sub_0804EB4C: @ 0x0804EB4C - movs r0, #1 - bx lr - - thumb_func_start nullsub_390 -nullsub_390: @ 0x0804EB50 - bx lr - .align 2, 0 - thumb_func_start sub_0804EB54 sub_0804EB54: @ 0x0804EB54 ldr r2, _0804EB64 @ =gArea diff --git a/asm/non_matching/sub_0804C128.inc b/asm/non_matching/sub_0804C128.inc index 13378ccd..2c5b0e9d 100644 --- a/asm/non_matching/sub_0804C128.inc +++ b/asm/non_matching/sub_0804C128.inc @@ -126,7 +126,7 @@ _0804C206: bl SetTileType _0804C228: ldr r0, _0804C248 @ =gUnk_080D9328 - bl sub_0804B1AC + bl LoadRoomTileEntities movs r0, #0x62 bl SetGlobalFlag bl sub_0804C290 diff --git a/asm/non_matching/sub_0804DE00.inc b/asm/non_matching/sub_0804DE00.inc new file mode 100644 index 00000000..c3227533 --- /dev/null +++ b/asm/non_matching/sub_0804DE00.inc @@ -0,0 +1,91 @@ + .syntax unified + push {r4, r5, r6, lr} + bl sub_080530C8 + movs r0, #0xb + bl CheckKinstoneFused + cmp r0, #0 + beq _0804DE32 + movs r0, #0x19 + bl CheckGlobalFlag + cmp r0, #0 + bne _0804DE22 + movs r0, #0x19 + bl SetGlobalFlag + b _0804DE32 +_0804DE22: + movs r0, #0x18 + bl CheckGlobalFlag + cmp r0, #0 + bne _0804DE32 + movs r0, #0x18 + bl SetGlobalFlag +_0804DE32: + ldr r5, _0804DE50 @ =gUnk_080D4250 + ldr r4, _0804DE54 @ =gUnk_02002A40 + ldrb r0, [r4, #8] + lsls r0, r0, #2 + adds r0, r0, r5 + ldr r0, [r0] + bl sub_0804AFB0 + ldrb r0, [r4, #8] + cmp r0, #1 + beq _0804DE5C + ldr r1, _0804DE58 @ =gUnk_02017654 + ldr r0, [r5] + str r0, [r1] + b _0804DECC + .align 2, 0 +_0804DE50: .4byte gUnk_080D4250 +_0804DE54: .4byte gUnk_02002A40 +_0804DE58: .4byte gUnk_02017654 +_0804DE5C: + movs r0, #0x1c + bl SetGlobalFlag + ldr r4, _0804DEB4 @ =gArea + ldr r0, _0804DEB8 @ =0x0000085C + adds r4, r4, r0 + ldr r0, [r4] + ldrh r5, [r0, #4] + ldrh r6, [r0, #6] + ldr r1, _0804DEBC @ =gRoomControls + movs r2, #0 + movs r0, #0x15 + strb r0, [r1, #4] + strb r2, [r1, #5] + bl sub_08052CFC + ldr r0, [r4] + movs r1, #0x98 + lsls r1, r1, #1 + adds r5, r5, r1 + strh r5, [r0, #4] + ldr r0, [r4] + strh r6, [r0, #6] + ldr r1, _0804DEC0 @ =gUnk_030010A0 + ldr r0, [r4] + ldrh r0, [r0] + lsrs r0, r0, #1 + strh r0, [r1, #0x10] + bl sub_08052EA0 + bl sub_0804AF90 + movs r0, #0xcd + bl CheckLocalFlag + cmp r0, #0 + bne _0804DEC4 + movs r1, #0x80 + lsls r1, r1, #1 + movs r0, #7 + bl DoFade + b _0804DECC + .align 2, 0 +_0804DEB4: .4byte gArea +_0804DEB8: .4byte 0x0000085C +_0804DEBC: .4byte gRoomControls +_0804DEC0: .4byte gUnk_030010A0 +_0804DEC4: + movs r0, #6 + movs r1, #0x10 + bl DoFade +_0804DECC: + movs r0, #1 + pop {r4, r5, r6, pc} + .syntax divided \ No newline at end of file diff --git a/asm/non_matching/sub_0804E150.inc b/asm/non_matching/sub_0804E150.inc new file mode 100644 index 00000000..438a894c --- /dev/null +++ b/asm/non_matching/sub_0804E150.inc @@ -0,0 +1,86 @@ + .syntax unified + push {r4, r5, lr} + ldr r4, _0804E160 @ =gUnk_080EED2C + ldr r0, _0804E164 @ =gUnk_02002A40 + movs r5, #1 + ldrb r0, [r0, #8] + lsls r5, r0 + b _0804E17C + .align 2, 0 +_0804E160: .4byte gUnk_080EED2C +_0804E164: .4byte gUnk_02002A40 +_0804E168: + ldrh r0, [r4] + ands r0, r5 + cmp r0, #0 + beq _0804E17A + ldrh r0, [r4, #4] + ldrh r1, [r4, #2] + movs r2, #1 + bl SetTile +_0804E17A: + adds r4, #6 +_0804E17C: + ldrh r0, [r4, #2] + cmp r0, #0 + bne _0804E168 + movs r0, #0xd1 + bl CheckLocalFlag + cmp r0, #0 + bne _0804E1BA + ldr r4, _0804E198 @ =gUnk_080EED7A + ldr r0, _0804E19C @ =gUnk_02002A40 + movs r5, #1 + ldrb r0, [r0, #8] + lsls r5, r0 + b _0804E1B4 + .align 2, 0 +_0804E198: .4byte gUnk_080EED7A +_0804E19C: .4byte gUnk_02002A40 +_0804E1A0: + ldrh r0, [r4] + ands r0, r5 + cmp r0, #0 + beq _0804E1B2 + ldrh r0, [r4, #4] + ldrh r1, [r4, #2] + movs r2, #1 + bl SetTile +_0804E1B2: + adds r4, #6 +_0804E1B4: + ldrh r0, [r4] + cmp r0, #0 + bne _0804E1A0 +_0804E1BA: + movs r0, #0x29 + bl CheckGlobalFlag + cmp r0, #0 + bne _0804E1F2 + ldr r4, _0804E1D0 @ =gUnk_080EED8C + ldr r0, _0804E1D4 @ =gUnk_02002A40 + movs r5, #1 + ldrb r0, [r0, #8] + lsls r5, r0 + b _0804E1EC + .align 2, 0 +_0804E1D0: .4byte gUnk_080EED8C +_0804E1D4: .4byte gUnk_02002A40 +_0804E1D8: + ldrh r0, [r4] + ands r0, r5 + cmp r0, #0 + beq _0804E1EA + ldrh r0, [r4, #4] + ldrh r1, [r4, #2] + movs r2, #1 + bl SetTile +_0804E1EA: + adds r4, #6 +_0804E1EC: + ldrh r0, [r4] + cmp r0, #0 + bne _0804E1D8 +_0804E1F2: + pop {r4, r5, pc} + .syntax divided \ No newline at end of file diff --git a/asm/non_matching/sub_0804E3C4.inc b/asm/non_matching/sub_0804E3C4.inc new file mode 100644 index 00000000..fcac78c4 --- /dev/null +++ b/asm/non_matching/sub_0804E3C4.inc @@ -0,0 +1,68 @@ + .syntax unified + push {r4, r5, r6, lr} + movs r0, #5 + bl CheckGlobalFlag + rsbs r1, r0, #0 + orrs r1, r0 + lsrs r6, r1, #0x1f + movs r0, #6 + bl CheckGlobalFlag + cmp r0, #0 + beq _0804E3DE + movs r6, #2 +_0804E3DE: + movs r0, #0x55 + bl CheckGlobalFlag + cmp r0, #0 + beq _0804E3EA + movs r6, #3 +_0804E3EA: + bl Random + adds r4, r0, #0 + ldr r1, _0804E448 @ =gUnk_080F0D58 + lsls r0, r6, #2 + adds r0, r0, r1 + movs r5, #0x1f + adds r1, r4, #0 + ands r1, r5 + ldr r0, [r0] + adds r0, r0, r1 + ldrb r6, [r0] + ldr r1, _0804E44C @ =gUnk_080F0CB8 + movs r0, #0xf + ands r0, r6 + lsls r0, r0, #2 + adds r0, r0, r1 + ldr r0, [r0] + bl LoadRoomEntityList + lsrs r6, r6, #4 + lsrs r4, r4, #8 + ldr r1, _0804E450 @ =gUnk_080F0E08 + lsls r0, r6, #2 + adds r0, r0, r1 + ands r4, r5 + ldr r0, [r0] + adds r0, r0, r4 + ldrb r6, [r0] + movs r0, #0xc6 + bl CheckLocalFlag + cmp r0, #0 + bne _0804E436 + movs r0, #0xc6 + bl SetLocalFlag + movs r6, #0xe +_0804E436: + lsls r0, r6, #3 + ldr r1, _0804E454 @ =gUnk_080F0E1C + adds r0, r0, r1 + bl sub_0804B3C4 + ldr r0, _0804E458 @ =0x80100000 + bl PlaySFX + pop {r4, r5, r6, pc} + .align 2, 0 +_0804E448: .4byte gUnk_080F0D58 +_0804E44C: .4byte gUnk_080F0CB8 +_0804E450: .4byte gUnk_080F0E08 +_0804E454: .4byte gUnk_080F0E1C +_0804E458: .4byte 0x80100000 + .syntax divided \ No newline at end of file diff --git a/include/functions.h b/include/functions.h index 2ce3404a..2c4d9264 100644 --- a/include/functions.h +++ b/include/functions.h @@ -33,6 +33,7 @@ extern void _DmaZero(void* src, u32 count); extern void EraseAllEntities(void); extern void SetTile(u32, u32, u32); extern void SetDirtTile(u32); +extern void LoadRoomTileEntities(); //tba // Unidentified extern void sub_0806ED78(Entity*); @@ -133,4 +134,23 @@ extern void sub_0809F814(u32); extern void sub_080300E8(void); extern void sub_0801DA90(u32); extern void sub_08058D34(void); +extern void sub_0807AABC(Entity*); +extern void sub_08078A90(u32); +extern void sub_080530C8(void); +extern void sub_0805B4D0(u32); +extern void sub_0804D0B4(void); +extern void sub_0805308C(u32); +extern void sub_0805AF60(); +extern void sub_0805D3C8(u32); +extern void sub_080534AC(); +extern void sub_0807BA8C(u32, u32); +extern void sub_0804D9B0(); +extern void sub_0807BB98(u32, u32, u32, u32); +extern void sub_08059D18(void); +extern void sub_0801D000(u32); +extern void sub_08018C58(u32); +extern void sub_0804E150(void); +extern void sub_080AF284(void); +extern void sub_080A71C4(u32, u32, u32, u32); +extern void sub_08054564(); #endif diff --git a/include/room.h b/include/room.h index 3557d78d..d6bc4a80 100644 --- a/include/room.h +++ b/include/room.h @@ -45,9 +45,11 @@ typedef struct { u8 filler5[28]; u32 greatFairyState; u32* field_0x6c; - u32 field_0x70; - u32 field_0x74; + u32* field_0x70; + u32* field_0x74; u32 field_0x78; + u8 field_0x79[10]; + void* field_0x88; } RoomVars; diff --git a/src/loadRoom.c b/src/loadRoom.c index 4cfb8788..ebc66264 100644 --- a/src/loadRoom.c +++ b/src/loadRoom.c @@ -5,7 +5,7 @@ void LoadRoomEntityList(EntityData* dat); extern EntityData* GetCurrentRoomProperty(u32 unk); extern void sub_0804B058(EntityData* dat); -extern void sub_0804B1AC(EntityData* dat); +extern void LoadRoomTileEntities(EntityData* dat); extern void sub_0801AC98(); extern u32 sub_08049D1C(u32); extern Entity* CreateEntity(EntityData*); @@ -24,7 +24,7 @@ void LoadRoom(void) { if (CheckGlobalFlag(TABIDACHI)) sub_0804B058(GetCurrentRoomProperty(2)); - sub_0804B1AC(GetCurrentRoomProperty(3)); + LoadRoomTileEntities(GetCurrentRoomProperty(3)); sub_0801AC98(); } diff --git a/src/room.c b/src/room.c index 9d7d1012..54c7b3d5 100644 --- a/src/room.c +++ b/src/room.c @@ -5,6 +5,7 @@ #include "functions.h" #include "flags.h" #include "link.h" +#include "screen.h" typedef struct { u8 field_0x0[8]; @@ -12,6 +13,19 @@ typedef struct { u8 field_0x9; u8 field_0xa[6]; union SplitWord field_0x10; + u8 field_0x14[0xc]; + u16 field_0x20; + u16 field_0x22; + u8 field_0x24[0x14]; + u8 field_0x38; + u8 field_0x39; + u16 field_0x3a; + u8 field_0x3c; + u8 filler[6]; + u16 field_0x44; + u16 field_0x46; + u16 field_0x48; + u16 field_0x4a; } struct_030010A0; typedef struct { @@ -578,7 +592,7 @@ void sub_0804BA44(void) { extern u32 gUnk_080D7348; u32 sub_0804BA9C(void) { - if (CheckGlobalFlag(0x51)) { + if (CheckGlobalFlag(ENDING)) { gRoomVars.field_0x6c = &gUnk_080D7348; gRoomVars.field_0x74 = 0; } @@ -588,12 +602,12 @@ u32 sub_0804BA9C(void) { extern EntityData gUnk_080D7328; void sub_0804BAC0(void) { - if (!CheckGlobalFlag(3)) { + if (!CheckGlobalFlag(LV2_CLEAR)) { LoadRoomEntityList(&gUnk_080D7328); } - if (CheckGlobalFlag(0x64)) { + if (CheckGlobalFlag(CASTLE_BGM)) { gArea.pMusicIndex = 0x1b; - } else if (CheckGlobalFlag(0x51)) { + } else if (CheckGlobalFlag(ENDING)) { gArea.pMusicIndex = gArea.musicIndex; } } @@ -601,7 +615,7 @@ void sub_0804BAC0(void) { extern u32 gUnk_080D7410; u32 sub_0804BB18(void) { - if (CheckGlobalFlag(0x51)) { + if (CheckGlobalFlag(ENDING)) { gRoomVars.field_0x6c = &gUnk_080D7410; gRoomVars.field_0x74 = 0; } @@ -612,14 +626,14 @@ extern EntityData gUnk_080D73B0; extern EntityData gUnk_080D73E0; void sub_0804BB3C(void) { - if (!CheckGlobalFlag(0x51)) { - if (!CheckGlobalFlag(3)) { + if (!CheckGlobalFlag(ENDING)) { + if (!CheckGlobalFlag(LV2_CLEAR)) { LoadRoomEntityList(&gUnk_080D73B0); } - if (!CheckGlobalFlag(2) && CheckGlobalFlag(0x15)) { + if (!CheckGlobalFlag(LV1_CLEAR) && CheckGlobalFlag(TABIDACHI)) { LoadRoomEntityList(&gUnk_080D73E0); } - if (CheckGlobalFlag(0x64)) { + if (CheckGlobalFlag(CASTLE_BGM)) { gArea.pMusicIndex = gArea.musicIndex; } } else { @@ -637,17 +651,17 @@ extern EntityData gUnk_080D75D8; extern EntityData gUnk_080D7618; void sub_0804BBA0(void) { - if (CheckGlobalFlag(100)) { + if (CheckGlobalFlag(CASTLE_BGM)) { gArea.pMusicIndex = gArea.musicIndex; } - if (CheckGlobalFlag(0x51)) { + if (CheckGlobalFlag(ENDING)) { LoadRoomEntityList(&gUnk_080D7618); gArea.pMusicIndex = gArea.musicIndex; - } else if (CheckGlobalFlag(0x15) == 0) { + } else if (CheckGlobalFlag(TABIDACHI) == 0) { LoadRoomEntityList(&gUnk_080D74C8); gArea.pMusicIndex = 0x1b; - } else if (CheckGlobalFlag(2) == 0) { + } else if (CheckGlobalFlag(LV1_CLEAR) == 0) { LoadRoomEntityList(&gUnk_080D7588); } else { LoadRoomEntityList(&gUnk_080D75D8); @@ -669,7 +683,7 @@ void sub_0804bc38(void) { u32 sub_0804BC50(void) { if (!CheckLocalFlag(0x9f)) { gUnk_030010A0.field_0xa[5] = 5; - ClearGlobalFlag(0x1c); + ClearGlobalFlag(ZELDA_CHASE); } return 1; } @@ -683,10 +697,10 @@ void sub_0804BC70(void) { gLinkEntity.y.HALF.HI = gRoomControls.roomOriginY + 0x40; sub_080751E8(0, 6, &gUnk_08009E88); } - if (!CheckGlobalFlag(0x15)) { + if (!CheckGlobalFlag(TABIDACHI)) { sub_08052878(); } else { - if (CheckGlobalFlag(100)) { + if (CheckGlobalFlag(CASTLE_BGM)) { gArea.pMusicIndex = 0x1b; } } @@ -1050,11 +1064,11 @@ void sub_0804C018(void) { SetTile(0x4072, 0xa47, 1); SetTile(0x4072, 0xc47, 1); - if (CheckGlobalFlag(0x62)) + if (CheckGlobalFlag(MAZE_CLEAR)) if (gUnk_030010A0.field_0x10.WORD == 0x2780078) PlaySFX(0x72); - ClearGlobalFlag(0x62); + ClearGlobalFlag(MAZE_CLEAR); } u32 sub_0804C104() { @@ -1121,7 +1135,7 @@ void sub_0804C2F0(void) { sub_08058324(2); - if (CheckGlobalFlag(0x29) && !CheckGlobalFlag(0x2a)) + if (CheckGlobalFlag(MIZUKAKI_START) && !CheckGlobalFlag(MIZUKAKI_HARIFALL)) LoadRoomEntityList(&gUnk_080D9800); } @@ -1147,7 +1161,7 @@ extern EntityData gUnk_080D9C38; void sub_0804C334(void) { - SetGlobalFlag(0x1e); + SetGlobalFlag(DASHBOOTS); if (CheckKinstoneFused(0x5b)) LoadRoomEntityList(&gUnk_080D9CC8); @@ -1351,24 +1365,24 @@ void sub_0804C490(void) { else LoadRoomEntityList(&gUnk_080DAB64); - if (!CheckGlobalFlag(0x54)) + if (!CheckGlobalFlag(DRUG_COUNT)) goto a; if (sub_08060354()) { SetRoomFlag(0); - if (!CheckGlobalFlag(0x3b)) + if (!CheckGlobalFlag(DRUG_1)) uVar1 = 0x3200; - else if (!CheckGlobalFlag(0x3c)) + else if (!CheckGlobalFlag(DRUG_2)) uVar1 = 0x4600; else uVar1 = 0x4880; } else { a: - if (CheckGlobalFlag(0x3d)) + if (CheckGlobalFlag(DRUG_3)) uVar1 = 0x4900; - else if (CheckGlobalFlag(0x3c)) + else if (CheckGlobalFlag(DRUG_2)) uVar1 = 0x4a00; - else if (CheckGlobalFlag(0x3b)) + else if (CheckGlobalFlag(DRUG_1)) uVar1 = 0x5200; else uVar1 = 0x9200; @@ -1411,7 +1425,7 @@ extern EntityData gUnk_080DAEE8; void sub_0804C5E0(void) { - if (CheckGlobalFlag(0x56)) + if (CheckGlobalFlag(WHITE_SWORD_END)) LoadRoomEntityList(&gUnk_080DAEE8); sub_0801AFE4(); @@ -1425,7 +1439,7 @@ extern EntityData gUnk_080DAF80; void sub_0804C600(void) { - if (CheckGlobalFlag(0x56)) + if (CheckGlobalFlag(WHITE_SWORD_END)) LoadRoomEntityList(&gUnk_080DAF80); sub_0801AFE4(); @@ -1439,7 +1453,7 @@ extern EntityData gUnk_080DB018; void sub_0804C620(void) { - if (CheckGlobalFlag(0x56)) + if (CheckGlobalFlag(WHITE_SWORD_END)) LoadRoomEntityList(&gUnk_080DB018); sub_0801AFE4(); @@ -1576,8 +1590,8 @@ void sub_0804C728() { extern u32 gUnk_080DB910; u32 sub_0804C730(void) { - if (CheckGlobalFlag(0x29) && !CheckLocalFlag(0x73)) { - gRoomVars.field_0x70 = (u32)&gUnk_080DB910; + if (CheckGlobalFlag(MIZUKAKI_START) && !CheckLocalFlag(0x73)) { + gRoomVars.field_0x70 = &gUnk_080DB910; } return 1; } @@ -1589,7 +1603,7 @@ void sub_0804C758(void) { LoadRoomEntityList(&gUnk_080DB8F0); // flippers - if (!GetInventoryValue(0x46) && CheckGlobalFlag(0x29)) { + if (!GetInventoryValue(0x46) && CheckGlobalFlag(MIZUKAKI_START)) { LoadRoomEntityList(&gUnk_080DB820); } sub_0801AFE4(); @@ -1941,7 +1955,7 @@ extern EntityData gUnk_080DD294; void sub_0804CA10(void) { - if (!CheckGlobalFlag(0x56)) { + if (!CheckGlobalFlag(WHITE_SWORD_END)) { LoadRoomEntityList(&gUnk_080DD214); } if (!CheckLocalFlag(0x7f)) { @@ -1986,7 +2000,7 @@ extern EntityData gUnk_080DD840; void sub_0804CAA0(void) { - if (CheckGlobalFlag(0x24)) { + if (CheckGlobalFlag(KUMOTATSUMAKI)) { sub_0809F814(0x6de); } if (CheckLocalFlag(0xf3)) { @@ -2053,7 +2067,7 @@ extern EntityData gUnk_080DE008; void sub_0804CB50(void) { sub_080300E8(); - if (CheckGlobalFlag(4) && !CheckLocalFlag(3)) { + if (CheckGlobalFlag(LV3_CLEAR) && !CheckLocalFlag(3)) { LoadRoomEntityList(&gUnk_080DE008); } } @@ -2264,7 +2278,7 @@ void sub_0804CD48(void) { *(u16*)0x5000000 = 0x7fff; sub_0801DA90(1); } - if (CheckGlobalFlag(2)) { + if (CheckGlobalFlag(LV1_CLEAR)) { LoadRoomEntityList(&gUnk_080DF94C); } else { PlaySFX(0x80100000); @@ -2296,7 +2310,2698 @@ u32 sub_0804CDF4() { extern EntityData gUnk_080DFB78; void sub_0804CDF8(void) { - if (CheckGlobalFlag(2) && !CheckLocalFlagByOffset(0x100, 1)) { + if (CheckGlobalFlag(LV1_CLEAR) && !CheckLocalFlagByOffset(0x100, 1)) { LoadRoomEntityList(&gUnk_080DFB78); } -} \ No newline at end of file +} + +u32 sub_0804CE20() { + return 1; +} + +void nullsub_259() { +} + +u32 sub_0804CE28() { + return 1; +} + +void nullsub_260() { +} + +u32 sub_0804CE30() { + return 1; +} + +void nullsub_261() { +} + +u32 sub_0804CE38() { + return 1; +} + +void nullsub_262() { +} + +u32 sub_0804CE40() { + return 1; +} + +void nullsub_263() { +} + +u32 sub_0804CE48() { + return 1; +} + +void nullsub_264() { +} + +u32 sub_0804CE50() { + return 1; +} + +void nullsub_265() { +} + +u32 sub_0804CE58() { + return 1; +} + +void nullsub_266() { +} + +u32 sub_0804CE60() { + return 1; +} + +void nullsub_267() { +} + +u32 sub_0804CE68() { + return 1; +} + +void nullsub_268() { +} + +u32 sub_0804CE70() { + return 1; +} + +void nullsub_269() { +} + +u32 sub_0804CE78() { + return 1; +} + +void nullsub_270() { +} + +extern u32 gUnk_080E103C; + +u32 sub_0804CE80(void) { + if (CheckGlobalFlag(LV2_CLEAR)) { + gRoomVars.field_0x70 = &gUnk_080E103C; + } + return 1; +} + +void nullsub_271() { +} + +u32 sub_0804CEA4() { + return 1; +} + +void nullsub_272() { +} + +u32 sub_0804CEAC() { + return 1; +} + +void nullsub_273() { +} + +u32 sub_0804CEB4() { + return 1; +} + +void nullsub_274() { +} + +u32 sub_0804CEBC() { + return 1; +} + +void nullsub_275() { +} + +u32 sub_0804CEC4() { + return 1; +} + +void nullsub_276() { +} + +u32 sub_0804CECC() { + return 1; +} + +void nullsub_277() { +} + +u32 sub_0804CED4() { + return 1; +} + +extern EntityData gUnk_080E1814; + +extern u32 gUnk_0200B650; + +void sub_0804CED8(void) { + + if (CheckGlobalFlag(LV2_CLEAR)) { + gUnk_0200B650 = 0; + gScreen.lcd.lcdControl2 &= 0xfdff; + sub_0807AABC(&gLinkEntity); + LoadRoomEntityList(&gUnk_080E1814); + } else { + PlaySFX(0x80100000); + gArea.musicIndex = gArea.pMusicIndex; + } +} + +u32 sub_0804CF38() { + return 1; +} + +void nullsub_278() { +} + +u32 sub_0804CF40() { + return 1; +} + +void sub_0804CF44(void) { + gUnk_030010A0.field_0x38 = 0; + gUnk_030010A0.field_0x39 = 0x5a; +} + +u32 sub_0804CF5C() { + return 1; +} + +void sub_0804CF60() { + sub_080300E8(); +} + +u32 sub_0804CF68() { + return 1; +} + +void nullsub_39() { +} + +u32 sub_0804CF70() { + return 1; +} + +void sub_0804CF74() { + sub_080300E8(); +} + +u32 sub_0804CF7C() { + return 1; +} + +void nullsub_40() { +} + +u32 sub_0804CF84() { + return 1; +} + +void nullsub_41() { +} + +u32 sub_0804CF8C() { + return 1; +} + +void nullsub_42() { +} + +u32 sub_0804CF94() { + return 1; +} + +void nullsub_43() { +} + +u32 sub_0804CF9C() { + return 1; +} + +void nullsub_44() { +} + +u32 sub_0804CFA4() { + return 1; +} + +void nullsub_45() { +} + +u32 sub_0804CFAC() { + return 1; +} + +void sub_0804CFB0(void) { + + if (!CheckFlags(0x31)) { + if (gUnk_030010A0.field_0x38 == 0) { + PlaySFX(0x80100000); + } else { + if (gUnk_030010A0.field_0x39 == 0) { + PlaySFX(0x80050000); + sub_08078A90(3); + } + } + gArea.musicIndex = gArea.pMusicIndex; + } +} + +u32 sub_0804D008() { + return 1; +} + +void nullsub_279() { +} + +u32 sub_0804D010() { + return 1; +} + +void nullsub_280() { +} + +u32 sub_0804D018() { + return 1; +} + +void nullsub_281() { +} + +u32 sub_0804D020() { + return 1; +} + +void nullsub_282() { +} + +u32 sub_0804D028() { + return 1; +} + +void nullsub_283() { +} + +u32 sub_0804D030() { + return 1; +} + +void nullsub_284() { +} + +u32 sub_0804D038() { + return 1; +} + +void nullsub_285() { +} + +u32 sub_0804D040() { + return 1; +} + +void nullsub_286() { +} + +u32 sub_0804D048() { + return 1; +} + +void nullsub_287() { +} + +u32 sub_0804D050() { + return 1; +} + +void nullsub_288() { +} + +u32 sub_0804D058() { + return 1; +} + +void nullsub_289() { +} + +u32 sub_0804D060() { + return 1; +} + +void nullsub_290() { +} + +u32 sub_0804D068() { + return 1; +} + +void nullsub_291() { +} + +u32 sub_0804D070() { + return 1; +} + +extern EntityData gUnk_080E3850; + +void sub_0804D074(void) { + + SetGlobalFlag(LV3_CLEAR); + sub_080530C8(); + sub_0805B4D0(3); + // wind ocarina + if (!GetInventoryValue(0x17) && CheckLocalFlag(0x45)) { + LoadRoomEntityList(&gUnk_080E3850); + } +} + +u32 sub_0804D0A8() { + return 1; +} + +void sub_0804D0AC() { + sub_0804D0B4(); +} + +void sub_0804D0B4(void) { + + if (!CheckLocalFlag(0x29)) { + SetLocalFlag(0x29); + SetLocalFlag(0x4b); + SetLocalFlag(0x4e); + } +} + +u32 sub_0804D0D4() { + return 1; +} + +void nullsub_46() { +} + +u32 sub_0804D0DC() { + return 1; +} + +void nullsub_47() { +} + +u32 sub_0804D0E4() { + return 1; +} + +void nullsub_48() { +} + +u32 sub_0804D0EC() { + return 1; +} + +void nullsub_49() { +} + +u32 sub_0804D0F4() { + return 1; +} + +void nullsub_50() { +} + +u32 sub_0804D0FC() { + return 1; +} + +void nullsub_51() { +} + +u32 sub_0804D104() { + return 1; +} + +void nullsub_52() { +} + +u32 sub_0804D10C() { + return 1; +} + +void nullsub_53() { +} + +u32 sub_0804D114() { + return 1; +} + +void nullsub_54() { +} + +u32 sub_0804D11C() { + return 1; +} + +void nullsub_55() { +} + +u32 sub_0804D124() { + return 1; +} + +void nullsub_56() { +} + +u32 sub_0804D12C() { + return 1; +} + +void nullsub_57() { +} + +u32 sub_0804D134() { + return 1; +} + +void nullsub_58() { +} + +u32 sub_0804D13C() { + return 1; +} + +extern EntityData gUnk_080E49F4; + +void sub_0804D140(void) { + + sub_0805308C(0x100); + if (CheckGlobalFlag(LV4_CLEAR)) { + LoadRoomEntityList(&gUnk_080E49F4); + } else { + PlaySFX(0x80100000); + gArea.musicIndex = gArea.pMusicIndex; + } +} + +u32 sub_0804D180() { + return 1; +} + +void nullsub_292() { +} + +u32 sub_0804D188() { + return 1; +} + +extern EntityData gUnk_080E4BD8; + +void sub_0804D18C(void) { + if (!CheckLocalFlag(0x48)) { + ClearLocalFlag(0x46); + LoadRoomEntityList(&gUnk_080E4BD8); + } +} + +u32 sub_0804D1AC() { + return 1; +} + +extern EntityData gUnk_080E4CF8; +extern EntityData gUnk_080E4CD8; + +void sub_0804D1B0(void) { + + sub_0804D0B4(); + if (CheckLocalFlag(0x6c)) { + LoadRoomEntityList(&gUnk_080E4CD8); + } else { + LoadRoomEntityList(&gUnk_080E4CF8); + } + if (!CheckLocalFlag(0x4b)) { + ClearLocalFlag(0x49); + } +} + +u32 sub_0804D1E8() { + return 1; +} + +void nullsub_293() { +} + +u32 sub_0804D1F0() { + return 1; +} + +void nullsub_294() { +} + +u32 sub_0804D1F8() { + return 1; +} + +void nullsub_295() { +} + +u32 sub_0804D200() { + return 1; +} + +void nullsub_296() { +} + +u32 sub_0804D208() { + return 1; +} + +void nullsub_297() { +} + +u32 sub_0804D210() { + return 1; +} + +void nullsub_298() { +} + +u32 sub_0804D218() { + return 1; +} + +void nullsub_299() { +} + +u32 sub_0804D220() { + return 1; +} + +void nullsub_300() { +} + +u32 sub_0804D228() { + return 1; +} + +extern EntityData gUnk_080E5660; +extern EntityData gUnk_080E5680; + +void sub_0804D22C(void) { + + if (!CheckLocalFlag(0x59)) { + LoadRoomEntityList(&gUnk_080E5660); + } else { + LoadRoomEntityList(&gUnk_080E5680); + } +} + +u32 sub_0804D250() { + return 1; +} + +void nullsub_301() { +} + +u32 sub_0804D258() { + return 1; +} + +void nullsub_302() { +} + +u32 sub_0804D260() { + return 1; +} + +void nullsub_303() { +} + +u32 sub_0804D268() { + return 1; +} + +void nullsub_304() { +} + +u32 sub_0804D270() { + return 1; +} + +void nullsub_305() { +} + +u32 sub_0804D278() { + return 1; +} + +extern EntityData gUnk_080E5E3C; +extern EntityData gUnk_080E5E5C; + +void sub_0804D27C(void) { + sub_0804D0B4(); + if (!CheckLocalFlag(0x4b)) { + LoadRoomEntityList(&gUnk_080E5E3C); + } else { + LoadRoomEntityList(&gUnk_080E5E5C); + } +} + +u32 sub_0804D2A4() { + return 1; +} + +void nullsub_306() { +} + +u32 sub_0804D2AC() { + return 1; +} + +void nullsub_307() { +} + +u32 sub_0804D2B4() { + return 1; +} + +void nullsub_308() { +} + +u32 sub_0804D2BC() { + return 1; +} + +void nullsub_309() { +} + +u32 sub_0804D2C4() { + return 1; +} + +void nullsub_310() { +} + +u32 sub_0804D2CC() { + return 1; +} + +void nullsub_311() { +} + +u32 sub_0804D2D4() { + return 1; +} + +void nullsub_312() { +} + +u32 sub_0804D2DC() { + return 1; +} + +void nullsub_313() { +} + +u32 sub_0804D2E4() { + return 1; +} + +extern EntityData gUnk_080E693C; + +void sub_0804D2E8(void) { + + if (!CheckLocalFlag(0x32)) { + LoadRoomEntityList(&gUnk_080E693C); + } +} + +u32 sub_0804D300() { + return 1; +} + +void nullsub_314() { +} + +u32 sub_0804D308() { + return 1; +} + +void nullsub_315() { +} + +u32 sub_0804D310() { + return 1; +} + +void nullsub_316() { +} + +u32 sub_0804D318() { + return 1; +} + +void nullsub_317() { +} + +u32 sub_0804D320() { + return 1; +} + +void nullsub_318() { +} + +u32 sub_0804D328() { + return 1; +} + +void nullsub_319() { +} + +u32 sub_0804D330() { + return 1; +} + +void sub_0804D334() { + sub_08054570(); +} + +u32 sub_0804D33C() { + return 1; +} + +extern EntityData gUnk_080E718C; +extern EntityData gUnk_080E71AC; + +void sub_0804D340(void) { + + SetTileType(0x312, 0x108, 1); + sub_08054570(); + if (!CheckLocalFlag(0xc4)) { + LoadRoomEntityList(&gUnk_080E718C); + } + if (!CheckLocalFlag(0xc5)) { + LoadRoomEntityList(&gUnk_080E71AC); + } +} + +u32 sub_0804D380() { + return 1; +} + +extern EntityData gUnk_080E7314; +extern EntityData gUnk_080E72C4; +extern EntityData gUnk_080E72E4; + +void sub_0804D384(void) { + + sub_0805AF60(0); + if (CheckGlobalFlag(LV5_CLEAR)) { + LoadRoomEntityList(&gUnk_080E7314); + } + if (!CheckLocalFlag(0x7b)) { + LoadRoomEntityList(&gUnk_080E72C4); + } else { + SetGlobalFlag(LV5_CLEAR); + // wind element + if (!GetInventoryValue(0x43)) { + sub_08078A90(3); + LoadRoomEntityList(&gUnk_080E72E4); + gArea.musicIndex = gArea.pMusicIndex; + PlaySFX(0x80100000); + } + } +} + +u32 sub_0804D3F8() { + return 1; +} + +void sub_0804D3FC() { + sub_0805AF60(0); +} + +u32 sub_0804D408() { + return 1; +} + +void sub_0804D40C() { + sub_0805AF60(0); +} + +u32 sub_0804D418() { + return 1; +} + +void sub_0804D41C() { + sub_0805AF60(0); +} + +u32 sub_0804D428() { + return 1; +} + +void sub_0804D42C() { + sub_0805AF60(0); +} + +u32 sub_0804D438() { + return 1; +} + +void sub_0804D43C() { + sub_0805AF60(0); +} + +u32 sub_0804D448() { + return 1; +} + +void sub_0804D44C() { + sub_0805AF60(0); +} + +u32 sub_0804D458() { + return 1; +} + +void sub_0804D45C() { + sub_0805AF60(0); +} + +u32 sub_0804D468() { + return 1; +} + +void sub_0804D46C() { + sub_0805AF60(0); +} + +u32 sub_0804D478() { + return 1; +} + +void sub_0804D47C() { + sub_0805AF60(0); +} + +u32 sub_0804D488() { + return 1; +} + +void sub_0804D48C() { + sub_0805AF60(0); +} + +u32 sub_0804D498() { + return 1; +} + +void sub_0804D49C() { + sub_0805AF60(0); +} + +u32 sub_0804D4A8() { + return 1; +} + +void sub_0804D4AC() { + sub_0805AF60(0); +} + +u32 sub_0804D4B8() { + return 1; +} + +void sub_0804D4BC() { + sub_0805AF60(0); +} + +u32 sub_0804D4C8() { + return 1; +} + +void sub_0804D4CC() { + sub_0805AF60(0); +} + +u32 sub_0804D4D8() { + return 1; +} + +void sub_0804D4DC() { + sub_0805AF60(0); +} + +u32 sub_0804D4E8() { + return 1; +} + +void sub_0804D4EC() { + sub_0805AF60(0); +} + +u32 sub_0804D4F8() { + return 1; +} + +void sub_0804D4FC() { + sub_0805AF60(0); +} + +u32 sub_0804D508() { + return 1; +} + +void sub_0804D50C() { + sub_0805AF60(0); +} + +u32 sub_0804D518() { + return 1; +} + +void sub_0804D51C() { + sub_0805AF60(0); +} + +u32 sub_0804D528() { + return 1; +} + +void sub_0804D52C() { + sub_0805AF60(0); +} + +u32 sub_0804D538() { + return 1; +} + +void nullsub_59() { +} + +u32 sub_0804D540() { + return 1; +} + +void sub_0804D544() { + sub_0805AF60(0); +} + +u32 sub_0804D550() { + return 1; +} + +void sub_0804D554() { + sub_0805AF60(0); +} + +u32 sub_0804D560() { + return 1; +} + +void sub_0804D564() { + sub_0805AF60(0); +} + +u32 sub_0804D570() { + return 1; +} + +void sub_0804D574() { + sub_0805AF60(0); +} + +u32 sub_0804D580() { + return 1; +} + +void sub_0804D584() { + sub_0805AF60(0); +} + +u32 sub_0804D590() { + return 1; +} + +void nullsub_60() { +} + +u32 sub_0804D598() { + return 1; +} + +void nullsub_61() { +} + +u32 sub_0804D5A0() { + return 1; +} + +void nullsub_62() { +} + +u32 sub_0804D5A8() { + return 1; +} + +void nullsub_63() { +} + +u32 sub_0804D5B0() { + return 1; +} + +void nullsub_64() { +} + +u32 sub_0804D5B8() { + return 1; +} + +void nullsub_65() { +} + +u32 sub_0804D5C0() { + return 1; +} + +void sub_0804D5C4() { + sub_0805AF60(0); +} + +u32 sub_0804D5D0() { + return 1; +} + +void sub_0804D5D4() { + sub_0805AF60(0); +} + +u32 sub_0804D5E0() { + return 1; +} + +void sub_0804D5E4() { + sub_0805AF60(0); +} + +u32 sub_0804D5F0() { + return 1; +} + +void sub_0804D5F4() { + sub_0805AF60(0); +} + +u32 sub_0804D600() { + return 1; +} + +void nullsub_66() { +} + +u32 sub_0804D608() { + return 1; +} + +void nullsub_67() { +} + +u32 sub_0804D610() { + return 1; +} + +void nullsub_68() { +} + +u32 sub_0804D618() { + return 1; +} + +void nullsub_69() { +} + +u32 sub_0804D620() { + return 1; +} + +void nullsub_70() { +} + +u32 sub_0804D628() { + return 1; +} + +void nullsub_71() { +} + +u32 sub_0804D630() { + return 1; +} + +void sub_0804D634() { + sub_0805AF60(0); +} + +u32 sub_0804D640() { + return 1; +} + +extern EntityData gUnk_080EA09C; + +void sub_0804D644(void) { + sub_0805AF60(0); + if (!CheckLocalFlag(0x70)) { + LoadRoomEntityList(&gUnk_080EA09C); + } +} + +u32 sub_0804D664() { + return 1; +} + +void sub_0804D668() { + sub_0805AF60(0); +} + +u32 sub_0804D674() { + return 1; +} + +void sub_0804D678() { + sub_0805AF60(0); +} + +u32 sub_0804D684() { + return 1; +} + +void sub_0804D688() { + sub_0805AF60(0); +} + +u32 sub_0804D694() { + return 1; +} + +void sub_0804D698() { + sub_0805AF60(0); +} + +u32 sub_0804D6A4() { + return 1; +} + +void sub_0804D6A8() { + sub_0805AF60(0); +} + +u32 sub_0804D6B4() { + return 1; +} + +void nullsub_72() { +} + +u32 sub_0804D6BC() { + return 1; +} + +void nullsub_73() { +} + +u32 sub_0804D6C4() { + return 1; +} + +void sub_0804D6C8(void) { + PlaySFX(0x80100000); + gArea.musicIndex = gArea.pMusicIndex; +} + +u32 sub_0804D6EC() { + return 1; +} + +void sub_0804D6F0(void) { + sub_0805D3C8(0); + + if ((gUnk_030010A0.field_0x38 & 1) && gUnk_030010A0.field_0x39) { + if (gUnk_030010A0.field_0x3c == 1) { + gLinkEntity.x.HALF.HI = gUnk_030010A0.field_0x48; + gLinkEntity.y.HALF.HI = gUnk_030010A0.field_0x4a + 8; + } else { + if (gUnk_030010A0.field_0x3c) { + return; + } + gLinkEntity.x.HALF.HI = gUnk_030010A0.field_0x44; + gLinkEntity.y.HALF.HI = gUnk_030010A0.field_0x46 + 8; + } + } +} + +u32 sub_0804D754() { + return 1; +} + +void sub_0804D758() { + sub_0805B4D0(6); +} + +u32 sub_0804D764() { + return 1; +} + +void nullsub_74() { +} + +u32 sub_0804D76C() { + return 1; +} + +void nullsub_75() { +} + +u32 sub_0804D774() { + sub_080534AC(); + return 1; +} + +extern EntityData gUnk_080EAD68; +extern EntityData gUnk_080EADB8; + +void sub_0804D780(void) { + + sub_0805B4D0(4); + if (!CheckLocalFlag(0x77)) { + LoadRoomEntityList(&gUnk_080EAD68); + } else if (!CheckLocalFlag(0x79)) { + LoadRoomEntityList(&gUnk_080EADB8); + SetTileType(0x4072, 0x145, 1); + SetTileType(0x4072, 0x149, 1); + gArea.pMusicIndex = 0; + } +} + +extern u16 gUnk_080EAE00; + +void sub_0804D7EC(void) { + u16 temp; + u16* tilePos; + + tilePos = &gUnk_080EAE00; + while (*tilePos != 0) { + temp = *tilePos; + tilePos++; + SetTileType(0x4072, temp, 1); + } +} + +void sub_0804D810(void) { + u16 uVar1; + u16* puVar2; + + puVar2 = &gUnk_080EAE00; + while (*puVar2 != 0) { + uVar1 = *puVar2; + puVar2++; + sub_0807BA8C(uVar1, 1); + } +} + +u32 sub_0804D830() { + return 1; +} + +extern EntityData gUnk_080EAE60; +extern EntityData gUnk_080EAEC0; +extern EntityData gUnk_080EAF20; + +void sub_0804D834(void) { + gArea.areaMetadata = 0x40; + gArea.locationIndex = 0; + if (CheckGlobalFlag(ENDING)) { + if (!CheckLocalFlag(0x7f)) { + LoadRoomEntityList(&gUnk_080EAEC0); + SetLocalFlag(0x7f); + gArea.pMusicIndex = 0x11; + } else { + LoadRoomEntityList(&gUnk_080EAF20); + gArea.pMusicIndex = gArea.musicIndex; + } + } else { + if (CheckLocalFlag(0x79)) { + gArea.pMusicIndex = gArea.musicIndex; + } + if (!CheckLocalFlag(1)) { + LoadRoomEntityList(&gUnk_080EAE60); + } + } + ClearGlobalFlag(0x5d); +} + +u32 sub_0804D8CC() { + return 1; +} + +void nullsub_320() { +} + +u32 sub_0804D8D4() { + return 1; +} + +void nullsub_321() { +} + +u32 sub_0804D8DC() { + return 1; +} + +void nullsub_322() { +} + +u32 sub_0804D8E4() { + return 1; +} + +void nullsub_323() { +} + +u32 sub_0804D8EC() { + return 1; +} + +void nullsub_324() { +} + +u32 sub_0804D8F4() { + return 1; +} + +void nullsub_325() { +} + +u32 sub_0804D8FC() { + return 1; +} + +void nullsub_326() { +} + +extern u32 gUnk_080EB604; +extern u32 gUnk_080EB5D4; + +u32 sub_0804D904(void) { + + if (CheckGlobalFlag(ENDING)) { + gRoomVars.field_0x6c = &gUnk_080EB604; + gRoomVars.field_0x74 = 0; + gArea.musicIndex = gArea.pMusicIndex = 0x11; + } else if (CheckLocalFlag(0x79)) { + gRoomVars.field_0x6c = NULL; + if (!CheckLocalFlag(0x7a)) { + SetGlobalFlag(ZELDA_CHASE); + gRoomVars.field_0x6c = &gUnk_080EB5D4; + gRoomVars.field_0x88 = sub_0804D9B0; + gRoomVars.field_0x74 = 0; + } + } + return 1; +} + +void sub_0804D97C(void) { + if (CheckGlobalFlag(ENDING)) { + gArea.pMusicIndex = gArea.musicIndex; + } + + if (CheckLocalFlag(0x79)) { + sub_0804D9B0(); + } +} + +extern EntityData gUnk_080EB684; + +void sub_0804D9B0(void) { + sub_0807BB98(0x797, 1, 5, 1); + sub_0807BB98(0x357, 1, 5, 1); + sub_0807BB98(0x55f, 1, 2, 1); + LoadRoomEntityList(&gUnk_080EB684); + gArea.pMusicIndex = gArea.musicIndex; +} + +u32 sub_0804DA04() { + return 1; +} + +void nullsub_327() { +} + +u32 sub_0804DA0C() { + return 1; +} + +void nullsub_328() { +} + +u32 sub_0804DA14() { + return 1; +} + +void nullsub_329() { +} + +u32 sub_0804DA1C() { + return 1; +} + +void nullsub_330() { +} + +u32 sub_0804DA24() { + return 1; +} + +void nullsub_331() { +} + +u32 sub_0804DA2C(void) { + if (!CheckLocalFlag(0x77)) { + gRoomVars.field_0x6c = 0; + gRoomVars.field_0x74 = 0; + } + return 1; +} + +extern EntityData gUnk_080EB9F4; +extern EntityData gUnk_080EBAA4; +extern EntityData gUnk_080EBAF4; + +void sub_0804DA48(void) { + if (!CheckLocalFlag(0x77)) { + LoadRoomEntityList(&gUnk_080EB9F4); + } else { + if (!CheckLocalFlag(0x78)) { + LoadRoomEntityList(&gUnk_080EBAA4); + SetLocalFlag(0x75); + } + if (CheckLocalFlag(0x7b)) { + LoadRoomEntityList(&gUnk_080EBAF4); + SetLocalFlag(0x76); + } + } +} + +u32 sub_0804DA98() { + return 1; +} + +void nullsub_332() { +} + +u32 sub_0804DAA0() { + return 1; +} + +void nullsub_333() { +} + +u32 sub_0804DAA8() { + return 1; +} + +void nullsub_334() { +} + +u32 sub_0804DAB0() { + return 1; +} + +void nullsub_335() { +} + +u32 sub_0804DAB8() { + return 1; +} + +void nullsub_336() { +} + +u32 sub_0804DAC0() { + return 1; +} +void nullsub_337() { +} + +u32 sub_0804DAC8() { + return 1; +} + +void nullsub_338() { +} + +u32 sub_0804DAD0() { + return 1; +} + +extern EntityData gUnk_080EC2CC; + +void sub_0804DAD4(void) { + if (CheckLocalFlag(0x86) && !CheckLocalFlag(0x4c)) { + LoadRoomEntityList(&gUnk_080EC2CC); + } +} + +u32 sub_0804DAF8() { + return 1; +} + +void nullsub_339() { +} + +u32 sub_0804DB00() { + return 1; +} + +extern EntityData gUnk_080EC4E8; + +void sub_0804DB04(void) { + if (CheckLocalFlag(0x86) && !CheckLocalFlag(0x4d)) { + LoadRoomEntityList(&gUnk_080EC4E8); + } +} + +u32 sub_0804DB28() { + return 1; +} + +void nullsub_340() { +} + +u32 sub_0804DB30() { + return 1; +} + +void nullsub_341() { +} + +u32 sub_0804DB38() { + return 1; +} + +extern EntityData gUnk_080EC820; + +void sub_0804DB3C(void) { + if (CheckLocalFlag(0x86) && !CheckLocalFlag(0x53)) { + LoadRoomEntityList(&gUnk_080EC820); + } +} + +u32 sub_0804DB60() { + return 1; +} + +void nullsub_342() { +} + +u32 sub_0804DB68() { + return 1; +} + +extern EntityData gUnk_080ECA60; + +void sub_0804DB6C(void) { + if (CheckLocalFlag(0x86) && !CheckLocalFlag(0x56)) { + LoadRoomEntityList(&gUnk_080ECA60); + } +} + +u32 sub_0804DB90() { + return 1; +} + +void nullsub_343() { +} + +u32 sub_0804DB98() { + return 1; +} + +void nullsub_344() { +} + +u32 sub_0804DBA0() { + return 1; +} + +void nullsub_345() { +} + +u32 sub_0804DBA8() { + return 1; +} + +void nullsub_346() { +} + +u32 sub_0804DBB0() { + return 1; +} + +void nullsub_347() { +} + +u32 sub_0804DBB8() { + return 1; +} + +void nullsub_348() { +} + +u32 sub_0804DBC0(void) { + if (CheckLocalFlag(0x79)) { + gRoomVars.field_0x74 = 0; + } + return 1; +} + +extern EntityData gUnk_080ECFCC; + +void sub_0804DBDC(void) { + if (CheckLocalFlag(0x79)) { + sub_0807BB98(0x90, 1, 1, 5); + LoadRoomEntityList(&gUnk_080ECFCC); + gArea.pMusicIndex = gArea.musicIndex; + } +} + +u32 sub_0804DC18() { + return 1; +} + +void nullsub_349() { +} + +u32 sub_0804DC20() { + return 1; +} + +void nullsub_350() { +} + +extern u32 gUnk_080ED1E4; + +u32 sub_0804DC28(void) { + if (CheckGlobalFlag(ENDING)) { + gRoomVars.field_0x6c = &gUnk_080ED1E4; + gRoomVars.field_0x74 = 0; + } + return 1; +} + +void sub_0804DC4C(void) { + if (CheckGlobalFlag(ENDING)) { + gArea.pMusicIndex = gArea.musicIndex; + } +} + +u32 sub_0804DC70() { + return 1; +} + +void nullsub_351() { +} + +u32 sub_0804DC78() { + return 1; +} + +void nullsub_352() { +} + +u32 sub_0804DC80() { + return 1; +} + +void nullsub_353() { +} + +u32 sub_0804DC88() { + return 1; +} + +void nullsub_354() { +} + +u32 sub_0804DC90() { + return 1; +} + +void nullsub_355() { +} + +u32 sub_0804DC98() { + return 1; +} + +void nullsub_356() { +} + +u32 sub_0804DCA0() { + return 1; +} + +void nullsub_357() { +} + +u32 sub_0804DCA8() { + return 1; +} + +void nullsub_358() { +} + +u32 sub_0804DCB0() { + return 1; +} + +void nullsub_359() { +} + +u32 sub_0804DCB8() { + return 1; +} + +void nullsub_360() { +} + +u32 sub_0804DCC0() { + return 1; +} + +void nullsub_361() { +} + +u32 sub_0804DCC8() { + return 1; +} + +void nullsub_362() { +} + +u32 sub_0804DCD0() { + return 1; +} + +void nullsub_363() { +} + +u32 sub_0804DCD8() { + return 1; +} + +void nullsub_364() { +} + +u32 sub_0804DCE0() { + return 1; +} + +void nullsub_365() { +} + +u32 sub_0804DCE8() { + return 1; +} + +void nullsub_366() { +} + +u32 sub_0804DCF0() { + return 1; +} + +void nullsub_367() { +} + +u32 sub_0804DCF8() { + return 1; +} + +void nullsub_368() { +} + +u32 sub_0804DD00() { + return 1; +} + +void nullsub_369() { +} + +u32 sub_0804DD08() { + return 1; +} + +void nullsub_370() { +} + +u32 sub_0804DD10() { + return 1; +} + +void nullsub_371() { +} + +u32 sub_0804DD18(void) { + if (CheckLocalFlag(0x79)) { + gRoomVars.field_0x74 = 0; + gRoomVars.field_0x6c = 0; + } + return 1; +} + +extern EntityData gUnk_080EE314; + +void sub_0804DD34(void) { + if (CheckLocalFlag(0x79)) { + sub_0807BB98(3, 2, 5, 1); + LoadRoomEntityList(&gUnk_080EE314); + gArea.pMusicIndex = gArea.musicIndex; + } +} + +u32 sub_0804DD70() { + return 1; +} + +void nullsub_372() { +} + +u32 sub_0804DD78(void) { + if (CheckLocalFlag(0x79)) { + gRoomVars.field_0x74 = 0; + } + return 1; +} + +extern EntityData gUnk_080EE5DC; + +void sub_0804DD94(void) { + if (CheckLocalFlag(0x79)) { + sub_0807BB98(0x392, 2, 2, 5); + LoadRoomEntityList(&gUnk_080EE5DC); + gArea.pMusicIndex = gArea.musicIndex; + } +} + +u32 sub_0804DDD4() { + return 1; +} + +void nullsub_373() { +} + +u32 sub_0804DDDC() { + return 1; +} + +extern EntityData gUnk_080EE71C; + +void sub_0804DDE0(void) { + if (CheckLocalFlag(1)) { + LoadRoomEntityList(&gUnk_080EE71C); + } +} + +u32 sub_0804DDF8() { + return 1; +} + +void nullsub_374() { +} + +NAKED +u32 sub_0804DE00(void) { + asm(".include \"asm/non_matching/sub_0804DE00.inc\""); +} + +extern EntityData gUnk_080EEB6C; +extern EntityData gUnk_080EEB8C; +extern EntityData gUnk_080EE88C; +extern EntityData gUnk_080EE8FC; +extern EntityData gUnk_080EE91C; +extern EntityData gUnk_080EECBC; +extern EntityData gUnk_080EE93C; +extern EntityData gUnk_080EE95C; +extern EntityData gUnk_080EE97C; +extern EntityData gUnk_080EE9BC; +extern EntityData gUnk_080EE99C; +extern EntityData gUnk_080EE9DC; +extern EntityData gUnk_080EEA3C; +extern EntityData gUnk_080EEA1C; +extern EntityData gUnk_080EE9FC; +extern EntityData gUnk_080EEA5C; +extern EntityData gUnk_080EEABC; +extern EntityData gUnk_080EEA7C; +extern EntityData gUnk_080EEA9C; +extern EntityData gUnk_080EEBAC; + +void LoadHyruleTown(void) { + + sub_08054570(); + sub_08059D18(); + SetTileType(0x176, 0x66b, 1); + if (gUnk_02002A40.field_0x8 == 1) { + sub_0801D000(0); + } else { + sub_08018C58(0xdb4); + if (!CheckLocalFlagByOffset(0x200, 0x84)) { + LoadRoomEntityList(&gUnk_080EEB6C); + } + if (!CheckLocalFlagByOffset(0x200, 0x85)) { + LoadRoomEntityList(&gUnk_080EEB8C); + } + // kinstone bag + if ((!GetInventoryValue(0x67)) && CheckGlobalFlag(LV1_CLEAR)) { + LoadRoomEntityList(&gUnk_080EE88C); + } + if (!CheckKinstoneFused(0x28)) { + LoadRoomEntityList(&gUnk_080EE8FC); + } + if (CheckKinstoneFused(0x33)) { + LoadRoomEntityList(&gUnk_080EE91C); + } + if (CheckGlobalFlag(MACHI_MACHIHOKORI)) { + LoadRoomEntityList(&gUnk_080EE93C); + } else { + LoadRoomEntityList(&gUnk_080EECBC); + } + if (CheckKinstoneFused(0x1b) && (gUnk_02002A40.field_0x8 > 3)) { + if (!CheckGlobalFlag(NEW_HOUSE_DIN) && !CheckGlobalFlag(NEW_HOUSE_NAYRU) && !CheckGlobalFlag(NEW_HOUSE_FARORE)) { + if (!CheckGlobalFlag(RENTED_HOUSE_DIN) && !CheckGlobalFlag(RENTED_HOUSE_NAYRU) && !CheckGlobalFlag(RENTED_HOUSE_FARORE)) { + LoadRoomEntityList(&gUnk_080EE95C); + } else { + if (!CheckGlobalFlag(TATEKAKE_HOUSE)) { + LoadRoomEntityList(&gUnk_080EE97C); + } else { + LoadRoomEntityList(&gUnk_080EE9BC); + } + } + } else { + LoadRoomEntityList(&gUnk_080EE99C); + } + } + if (CheckGlobalFlag(RENTED_HOUSE_DIN)) { + LoadRoomEntityList(&gUnk_080EE9FC); + } else if (CheckGlobalFlag(RENTED_HOUSE_NAYRU)) { + LoadRoomEntityList(&gUnk_080EEA1C); + } else if (CheckGlobalFlag(RENTED_HOUSE_FARORE)) { + LoadRoomEntityList(&gUnk_080EEA3C); + } else { + LoadRoomEntityList(&gUnk_080EE9DC); + } + if ((gUnk_02002A40.field_0x8 > 4) && !CheckKinstoneFused(0xb) && + (CheckGlobalFlag(RENTED_HOUSE_DIN) || CheckGlobalFlag(RENTED_HOUSE_NAYRU) || CheckGlobalFlag(RENTED_HOUSE_FARORE))) { + LoadRoomEntityList(&gUnk_080EEA5C); + } + // rocs cape + if (!CheckLocalFlag(0xd0) && GetInventoryValue(0x14)) { + LoadRoomEntityList(&gUnk_080EEABC); + } + if ((gUnk_02002A40.field_0x8 > 3) && CheckGlobalFlag(INLOCK)) { + LoadRoomEntityList(&gUnk_080EEA7C); + } + if ((gUnk_02002A40.field_0x8 < 6) && !CheckGlobalFlag(MIZUKAKI_START)) { + LoadRoomEntityList(&gUnk_080EEA9C); + } + if ((gUnk_02002A40.windcrests & 0x8000000) == 0) { + LoadRoomEntityList(&gUnk_080EEBAC); + } + sub_0804E150(); + } +} + +extern EntityData gUnk_080EEBAC; + +void sub_0804E130(void) +{ + if ((gUnk_02002A40.windcrests & 0x8000000) == 0) { + LoadRoomEntityList(&gUnk_080EEBAC); + } +} + +NAKED +void sub_0804E150(void) { + asm(".include \"asm/non_matching/sub_0804E150.inc\""); +} + +u32 sub_0804E1F4() { + return 1; +} + +void nullsub_76() {} + +u32 sub_0804E1FC() { + return 1; +} + +void nullsub_77() {} + +u32 sub_0804E204() { + return 1; +} + +void nullsub_78() {} + +u32 sub_0804E20C() { + return 1; +} + +void nullsub_79() {} + +u32 sub_0804E214() { + return 1; +} + +void nullsub_080() {} + +u32 sub_0804E21C() { + return 1; +} + +void nullsub_081() {} + +u32 sub_0804E224() { + return 1; +} + +void nullsub_082() {} + +u32 sub_0804E22C() { + return 1; +} + +void nullsub_083() {} + +u32 sub_0804E234() { + return 1; +} + +void nullsub_084() {} + +u32 sub_0804E23C() { + return 1; +} + +void nullsub_085() { +} + +u32 sub_0804E244() { + return 1; +} + +void nullsub_086() {} + +u32 sub_0804E24C() { + return 1; +} + +void nullsub_087() {} + +u32 sub_0804E254() { + return 1; +} + +void nullsub_088() {} + +extern u32 gUnk_080F09A0; + +u32 sub_0804E25C(void) +{ + + //four sword + if (GetInventoryValue(0x6)) { + gRoomVars.field_0x70 = &gUnk_080F09A0; + } + return 1; +} + +extern EntityData gUnk_080F0650; +extern EntityData gUnk_080F0800; +extern EntityData gUnk_080F08F0; +extern EntityData gUnk_080F0850; +extern EntityData gUnk_080F0870; +extern EntityData gUnk_080F0890; +extern EntityData gUnk_080F0920; + +void sub_0804E27C(void) +{ + + if (!CheckGlobalFlag(0x15)) { + LoadRoomEntityList(&gUnk_080F0650); + gArea.pMusicIndex = 0x13; + SetGlobalFlag(100); + } + else { + if (CheckGlobalFlag(100)) { + gArea.pMusicIndex = 0x1b; + } + } + if (!CheckLocalFlag(0x9c)) { + LoadRoomEntityList(&gUnk_080F0800); + SetTileType(0x4072, 600, 1); + SetTileType(0x4072, 0x298, 1); + SetTileType(0x4072, 0x266, 1); + SetTileType(0x4072, 0x2a6, 1); + } + else { + // four sword + if (!GetInventoryValue(0x6)) { + LoadRoomEntityList(&gUnk_080F08F0); + SetTileType(0x4072, 0x9e, 1); + SetTileType(0x4072, 0x9f, 1); + SetTileType(0x4072, 0xa0, 1); + } + LoadRoomEntityList(&gUnk_080F0850); + // water element + if (!GetInventoryValue(0x42)) { + LoadRoomEntityList(&gUnk_080F0870); + } + else { + LoadRoomEntityList(&gUnk_080F0890); + } + SetTileType(0x4072, 600, 1); + SetTileType(0x4072, 0x298, 1); + if (CheckLocalFlag(0x10)) { + LoadRoomEntityList(&gUnk_080F0920); + ClearLocalFlag(0x10); + } + } + sub_080AF284(); +} + +u32 sub_0804E3B8() { + ClearLocalFlag(1); + return 1; +} + +NAKED +void sub_0804E3C4() { + asm(".include \"asm/non_matching/sub_0804E3C4.inc\""); +} + +u32 sub_0804E45C() { + return 1; +} + +extern EntityData gUnk_080F1C68; +extern EntityData gUnk_080F1C88; + +void sub_0804E460(void) +{ + if (!CheckGlobalFlag(0x4a)) { + LoadRoomEntityList(&gUnk_080F1C68); + } + else { + LoadRoomEntityList(&gUnk_080F1C88); + } +} + +u32 sub_0804E484() { + return 1; +} + +extern EntityData gUnk_080F1D90; +extern EntityData gUnk_080F1DB0; +extern EntityData gUnk_080F1DD0; + +void sub_0804E488(void) +{ + if (CheckGlobalFlag(0x2e)) { + LoadRoomEntityList(&gUnk_080F1D90); + } else if (CheckGlobalFlag(0x2f)) { + LoadRoomEntityList(&gUnk_080F1DB0); + } else if (CheckGlobalFlag(0x30)) { + LoadRoomEntityList(&gUnk_080F1DD0); + } +} + +u32 sub_0804E4D0() { + return 1; +} + +void nullsub_375() {} + +u32 sub_0804E4D8() { + return 1; +} + +void nullsub_376() {} + +u32 sub_0804E4E0() { + return 1; +} + +extern EntityData gUnk_080F2174; +extern EntityData gUnk_080F2194; +extern EntityData gUnk_080F21B4; + +void sub_0804E4E4(void) +{ + + LoadRoomEntityList(&gUnk_080F2174); + // picori legend book + if (!GetInventoryValue(0x3a) && CheckGlobalFlag(0x2a)) { + LoadRoomEntityList(&gUnk_080F2194); + } + if (gUnk_030010A0.field_0xa[5] == 1) { + LoadRoomEntityList(&gUnk_080F21B4); + } +} + +u32 sub_0804E528() { + return 1; +} + +extern EntityData gUnk_080F23BC; +extern EntityData gUnk_080F238C; +extern EntityData gUnk_080F236C; + +void sub_0804E52C(void) +{ + + if (gUnk_02002A40.field_0x8 > 7) { + LoadRoomEntityList(&gUnk_080F23BC); + } + // flippers + if (!GetInventoryValue(0x46) && CheckGlobalFlag(0x29)) { + LoadRoomEntityList(&gUnk_080F238C); + } + else { + LoadRoomEntityList(&gUnk_080F236C); + } +} + +u32 sub_0804E570() { + return 1; +} + +extern EntityData gUnk_080F2570; +extern EntityData gUnk_080F2590; +extern EntityData gUnk_080F25C0; +extern EntityData gUnk_080F2600; + +void sub_0804E574(void) +{ + switch (gUnk_02002A40.field_0x8) { + case 0: + case 2: + case 4: + LoadRoomEntityList(&gUnk_080F2570); + break; + case 1: + case 3: + break; + case 5: + // flippers + if (!GetInventoryValue(0x46)) { + if (!CheckGlobalFlag(0x29)) { + LoadRoomEntityList(&gUnk_080F2570); + break; + } + if (!GetInventoryValue(0x39)) { + LoadRoomEntityList(&gUnk_080F25C0); + } + } else { + LoadRoomEntityList(&gUnk_080F2590); + } + break; + case 8: + case 9: + LoadRoomEntityList(&gUnk_080F2600); + case 6: + case 7: + LoadRoomEntityList(&gUnk_080F2590); + } +} + +u32 sub_0804E614() { + return 1; +} + +extern EntityData gUnk_080F2718; +extern EntityData gUnk_080F2860; +extern EntityData gUnk_080F2758; +extern EntityData gUnk_080F27D8; +extern EntityData gUnk_080F2798; + +void sub_0804E618(void) +{ + if (CheckKinstoneFused(0x21)) { + if (!CheckLocalFlag(0x42)) { + if (!CheckLocalFlag(0x43)) { + LoadRoomEntityList(&gUnk_080F2718); + LoadRoomTileEntities(&gUnk_080F2860); + } + else { + LoadRoomEntityList(&gUnk_080F2758); + } + } + else if (!CheckLocalFlag(0x3f)) { + LoadRoomEntityList(&gUnk_080F27D8); + } + else { + LoadRoomEntityList(&gUnk_080F2798); + } + } +} + +u32 sub_0804E680() { + return 1; +} + +extern EntityData gUnk_080F28D4; +extern EntityData gUnk_080F28F4; +extern EntityData gUnk_080F2914; + +void sub_0804E684(void) +{ + if (CheckGlobalFlag(0x2b)) { + LoadRoomEntityList(&gUnk_080F28D4); + } else if (CheckGlobalFlag(0x2c)) { + LoadRoomEntityList(&gUnk_080F28F4); + } else if (CheckGlobalFlag(0x2d)) { + LoadRoomEntityList(&gUnk_080F2914); + } +} + +u32 sub_0804E6CC9() { + return 1; +} + +void nullsub_377() {} + +u32 sub_0804E6D4() { + return 1; +} + +void nullsub_378() {} + +u32 sub_0804E6DC() { + return 1; +} + +void nullsub_379() {} + +u32 sub_0804E6E4() { + return 1; +} + +extern EntityData gUnk_080F2E2C; + +void sub_0804E6E8(void) +{ + if (!CheckGlobalFlag(0x49)) { + gArea.musicIndex = gArea.pMusicIndex; + PlaySFX(0x800b0036); + } + if (!CheckGlobalFlag(0x13)) { + LoadRoomEntityList(&gUnk_080F2E2C); + } +} + +u32 sub_0804E728() { + return 1; +} + +extern EntityData gUnk_080F2E94; +extern EntityData gUnk_080F2EC4; + +void sub_0804E72C(void) +{ + if (!CheckGlobalFlag(0x49)) { + gArea.musicIndex = gArea.pMusicIndex; + PlaySFX(0x800b0036); + } + if (!CheckGlobalFlag(0x13)) { + LoadRoomEntityList(&gUnk_080F2E94); + } + else { + LoadRoomEntityList(&gUnk_080F2EC4); + } +} + +u32 sub_0804E778() { + return 1; +} + +extern EntityData gUnk_080F2FD4; + +void sub_0804E77C(void) +{ + // graveyard key + if (!CheckLocalFlag(0x69) || GetInventoryValue(0x3c) > 1) { + LoadRoomEntityList(&gUnk_080F2FD4); + } +} + +u32 sub_0804E7A0() { + return 1; +} + +extern EntityData gUnk_080F30CC; + +void sub_0804E7A4(void) +{ + // dog food + if ((GetInventoryValue(0x36) == 1) && !CheckGlobalFlag(0x5b) && + (gLinkState.flags.all & 0x80) == 0) { + LoadRoomEntityList(&gUnk_080F30CC); + } +} + +u32 sub_0804E7D8() { + return 1; +} + +extern EntityData gUnk_080F31D8; +extern u8 gUnk_02000070; +extern u32 gUnk_08009B30; + +void sub_0804E7DC(void) +{ + + if (!CheckGlobalFlag(0x13) && !CheckLocalFlag(0x46)) { + sub_080A71C4(5, 1, 4, 4); + gUnk_02000070 = 0; + DoFade(5, 0x100); + sub_080751E8(0, 6, &gUnk_08009B30); + } + if (!CheckGlobalFlag(0x49)) { + gArea.musicIndex = gArea.pMusicIndex; + PlaySFX(0x800b0036); + } + if ((gLinkState.flags.all & 8) == 0) { + LoadRoomEntityList(&gUnk_080F31D8); + } +} + +extern u32 gUnk_08009E58; + +void sub_0804E864(void) +{ + gLinkEntity.x.HALF.HI = gRoomControls.roomOriginX + 0x90; + gLinkEntity.y.HALF.HI = gRoomControls.roomOriginY + 0x38; + sub_080751E8(1, 6, &gUnk_08009E58); + ModHealth(0xa0); +} + +u32 sub_0804E894() { + return 1; +} + +extern EntityData gUnk_080F3260; + +void sub_0804E898(void) +{ + // pacci cane + if (GetInventoryValue(0x12)) { + LoadRoomEntityList(&gUnk_080F3260); + SetTileType(0x4072, 0x202, 1); + SetTileType(0x4072, 0x242, 1); + SetTileType(0x4072, 0x204, 1); + SetTileType(0x4072, 0x244, 1); + } +} + +u32 sub_0804E8EC() { + return 1; +} + +void sub_0804E8F0() { + sub_08054564(); +} + +u32 sub_0804E8F8() { + return 1; +} + +extern EntityData gUnk_080F36FC; +extern EntityData gUnk_080F3604; + +void sub_0804E8FC(void) +{ + if (!CheckGlobalFlag(0x1d)) { + LoadRoomEntityList(&gUnk_080F36FC); + } + else if (gUnk_02002A40.field_0x8 < 4) { + LoadRoomEntityList(&gUnk_080F3604); + } +} + +u32 sub_0804E92C() { + return 1; +} + +extern EntityData gUnk_080F37D0; + +void sub_0804E930(void) +{ + if (CheckGlobalFlag(0x1d)) { + LoadRoomEntityList(&gUnk_080F37D0); + } +} + +u32 sub_0804E948 () { + return 1; +} + +void nullsub_380() {} + +u32 sub_0804E950() { + return 1; +} + +extern EntityData gUnk_080F3A48; + +void sub_0804E954(void) +{ + // flippers, history of masks + if (!GetInventoryValue(0x46) && CheckGlobalFlag(0x29) && !GetInventoryValue(0x3b)) { + LoadRoomEntityList(&gUnk_080F3A48); + } + gUnk_030010A0.field_0x20 = 0xf28; + gUnk_030010A0.field_0x22 = 0x82d; +} + +extern u32 gUnk_080F3D44; +extern u32 gUnk_080F3EA4; + +u32 sub_0804E998(void) +{ + if (CheckGlobalFlag(5) && !CheckLocalFlag(4)) { + gRoomVars.field_0x74 = &gUnk_080F3EA4; + } + else { + gRoomVars.field_0x74 = &gUnk_080F3D44; + } + return 1; +} + +extern EntityData gUnk_080F3C64; +extern EntityData gUnk_080F3C94; +extern EntityData gUnk_080F3C44; + +void sub_0804E9D0(void) +{ + if (CheckGlobalFlag(5) && !CheckLocalFlag(4)) { + LoadRoomEntityList(&gUnk_080F3C64); + } + if (CheckKinstoneFused(0x12)) { + LoadRoomEntityList(&gUnk_080F3C94); + } + if ((gUnk_02002A40.field_0x8 > 3) && CheckGlobalFlag(0x5c)) { + LoadRoomEntityList(&gUnk_080F3C44); + } + SetTile(0x4091, 0x590, 1); + SetTile(0x4091, 0x591, 1); + SetTile(0x4091, 0x592, 1); + SetTile(0x4091, 0x593, 1); + SetTile(0x4091, 0x594, 1); + SetTile(0x4091, 0x5d0, 1); + SetTile(0x4091, 0x610, 1); + SetTile(0x4091, 0x650, 1); + SetTile(0x4091, 0x5d4, 1); + SetTile(0x4091, 0x614, 1); + SetTile(0x4091, 0x654, 1); + SetTile(0x4091, 0x690, 1); + SetTile(0x4091, 0x691, 1); + SetTile(0x4091, 0x692, 1); + SetTile(0x4091, 0x693, 1); + SetTile(0x4091, 0x694, 1); +} + +u32 sub_0804EB04() { + return 1; +} + +void nullsub_381() { +} + +u32 sub_0804EB0C() { + return 1; +} + +void nullsub_382() {} + +u32 sub_0804EB14() { + return 1; +} + +void nullsub_383() {} + +u32 sub_0804EB1() { + return 1; +} + +void nullsub_384() {} + +u32 sub_0804EB24() { + return 1; +} + +void nullsub_385() {} + +u32 sub_0804EB2C() { + return 1; +} + +void nullsub_386() {} + +u32 sub_0804EB34() { + return 1; +} + +void nullsub_387() {} + +u32 sub_0804EB3C() { + return 1; +} + +void nullsub_388() {} + +u32 sub_0804EB44() { + return 1; +} + +void nullsub_389() {} + +u32 sub_0804EB4C() { + return 1; +} + +void nullsub_390() {} \ No newline at end of file From 1cc241a75a1f0a66fc3d7593a8f918d89cf8e6ae Mon Sep 17 00:00:00 2001 From: theo3 Date: Tue, 21 Jul 2020 14:00:42 -0700 Subject: [PATCH 056/158] room.c decompiled --- asm/code_0804B9F8.s | 3178 ------------------------------------------- include/functions.h | 6 + src/room.c | 1602 +++++++++++++++++++++- 3 files changed, 1607 insertions(+), 3179 deletions(-) diff --git a/asm/code_0804B9F8.s b/asm/code_0804B9F8.s index 4db83afb..65d5dce6 100644 --- a/asm/code_0804B9F8.s +++ b/asm/code_0804B9F8.s @@ -5,3184 +5,6 @@ .text - thumb_func_start sub_0804EB54 -sub_0804EB54: @ 0x0804EB54 - ldr r2, _0804EB64 @ =gArea - ldrb r1, [r2] - movs r0, #0x48 - orrs r0, r1 - strb r0, [r2] - movs r0, #1 - bx lr - .align 2, 0 -_0804EB64: .4byte gArea - - thumb_func_start nullsub_391 -nullsub_391: @ 0x0804EB68 - bx lr - .align 2, 0 - - thumb_func_start sub_0804EB6C -sub_0804EB6C: @ 0x0804EB6C - ldr r2, _0804EB7C @ =gArea - ldrb r1, [r2] - movs r0, #0x48 - orrs r0, r1 - strb r0, [r2] - movs r0, #1 - bx lr - .align 2, 0 -_0804EB7C: .4byte gArea - - thumb_func_start nullsub_392 -nullsub_392: @ 0x0804EB80 - bx lr - .align 2, 0 - - thumb_func_start sub_0804EB84 -sub_0804EB84: @ 0x0804EB84 - ldr r2, _0804EB94 @ =gArea - ldrb r1, [r2] - movs r0, #0x48 - orrs r0, r1 - strb r0, [r2] - movs r0, #1 - bx lr - .align 2, 0 -_0804EB94: .4byte gArea - - thumb_func_start nullsub_393 -nullsub_393: @ 0x0804EB98 - bx lr - .align 2, 0 - - thumb_func_start sub_0804EB9C -sub_0804EB9C: @ 0x0804EB9C - push {lr} - movs r0, #0x58 - movs r1, #5 - bl sub_0801DD58 - ldr r2, _0804EBB4 @ =gArea - ldrb r1, [r2] - movs r0, #0x48 - orrs r0, r1 - strb r0, [r2] - movs r0, #1 - pop {pc} - .align 2, 0 -_0804EBB4: .4byte gArea - - thumb_func_start nullsub_394 -nullsub_394: @ 0x0804EBB8 - bx lr - .align 2, 0 - - thumb_func_start sub_0804EBBC -sub_0804EBBC: @ 0x0804EBBC - push {lr} - movs r0, #0x58 - movs r1, #6 - bl sub_0801DD58 - ldr r2, _0804EBD4 @ =gArea - ldrb r1, [r2] - movs r0, #0x48 - orrs r0, r1 - strb r0, [r2] - movs r0, #1 - pop {pc} - .align 2, 0 -_0804EBD4: .4byte gArea - - thumb_func_start nullsub_395 -nullsub_395: @ 0x0804EBD8 - bx lr - .align 2, 0 - - thumb_func_start sub_0804EBDC -sub_0804EBDC: @ 0x0804EBDC - push {lr} - movs r0, #0x51 - bl CheckGlobalFlag - cmp r0, #0 - beq _0804EBF2 - ldr r0, _0804EBF8 @ =gRoomVars - ldr r1, _0804EBFC @ =gUnk_080F4EB0 - str r1, [r0, #0x6c] - movs r1, #0 - str r1, [r0, #0x74] -_0804EBF2: - movs r0, #1 - pop {pc} - .align 2, 0 -_0804EBF8: .4byte gRoomVars -_0804EBFC: .4byte gUnk_080F4EB0 - - thumb_func_start sub_0804EC00 -sub_0804EC00: @ 0x0804EC00 - push {lr} - movs r0, #0x51 - bl CheckGlobalFlag - cmp r0, #0 - beq _0804EC1A - ldr r0, _0804EC48 @ =gArea - ldr r2, _0804EC4C @ =0x00000864 - adds r1, r0, r2 - subs r2, #4 - adds r0, r0, r2 - ldr r0, [r0] - str r0, [r1] -_0804EC1A: - movs r0, #0x14 - bl CheckGlobalFlag - cmp r0, #0 - bne _0804EC2A - ldr r0, _0804EC50 @ =gUnk_080F4D50 - bl LoadRoomEntityList -_0804EC2A: - movs r0, #0x3e - bl CheckLocalFlag - cmp r0, #0 - bne _0804EC64 - movs r0, #0x3b - bl CheckLocalFlag - cmp r0, #0 - bne _0804EC58 - ldr r0, _0804EC54 @ =gUnk_080F4DB0 - bl LoadRoomEntityList - b _0804EC5E - .align 2, 0 -_0804EC48: .4byte gArea -_0804EC4C: .4byte 0x00000864 -_0804EC50: .4byte gUnk_080F4D50 -_0804EC54: .4byte gUnk_080F4DB0 -_0804EC58: - ldr r0, _0804EC84 @ =gUnk_080F4DD0 - bl LoadRoomEntityList -_0804EC5E: - ldr r0, _0804EC88 @ =gUnk_080F4DF0 - bl LoadRoomEntityList -_0804EC64: - movs r0, #0x4e - bl CheckKinstoneFused - cmp r0, #0 - beq _0804EC74 - ldr r0, _0804EC8C @ =gUnk_080F4F10 - bl LoadRoomEntityList -_0804EC74: - ldr r0, _0804EC90 @ =gUnk_02002A40 - ldr r0, [r0, #0x40] - cmp r0, #0 - blt _0804EC82 - ldr r0, _0804EC94 @ =gUnk_080F4E10 - bl LoadRoomEntityList -_0804EC82: - pop {pc} - .align 2, 0 -_0804EC84: .4byte gUnk_080F4DD0 -_0804EC88: .4byte gUnk_080F4DF0 -_0804EC8C: .4byte gUnk_080F4F10 -_0804EC90: .4byte gUnk_02002A40 -_0804EC94: .4byte gUnk_080F4E10 - - thumb_func_start sub_0804EC98 -sub_0804EC98: @ 0x0804EC98 - push {lr} - ldr r0, _0804ECAC @ =gUnk_02002A40 - ldr r0, [r0, #0x40] - cmp r0, #0 - blt _0804ECA8 - ldr r0, _0804ECB0 @ =gUnk_080F4E10 - bl LoadRoomEntityList -_0804ECA8: - pop {pc} - .align 2, 0 -_0804ECAC: .4byte gUnk_02002A40 -_0804ECB0: .4byte gUnk_080F4E10 - - thumb_func_start sub_0804ECB4 -sub_0804ECB4: @ 0x0804ECB4 - movs r0, #1 - bx lr - - thumb_func_start nullsub_396 -nullsub_396: @ 0x0804ECB8 - bx lr - .align 2, 0 - - thumb_func_start sub_0804ECBC -sub_0804ECBC: @ 0x0804ECBC - push {lr} - movs r0, #0x51 - bl CheckGlobalFlag - cmp r0, #0 - beq _0804ECDA - ldr r1, _0804ECE0 @ =gRoomVars - ldr r0, _0804ECE4 @ =gUnk_080F5348 - str r0, [r1, #0x6c] - adds r2, r1, #0 - adds r2, #0x88 - ldr r0, _0804ECE8 @ =sub_0804ED18 - str r0, [r2] - movs r0, #0 - str r0, [r1, #0x74] -_0804ECDA: - movs r0, #1 - pop {pc} - .align 2, 0 -_0804ECE0: .4byte gRoomVars -_0804ECE4: .4byte gUnk_080F5348 -_0804ECE8: .4byte sub_0804ED18 - - thumb_func_start sub_0804ECEC -sub_0804ECEC: @ 0x0804ECEC - push {lr} - movs r0, #2 - bl GetInventoryValue - cmp r0, #0 - beq _0804ED0E - ldr r0, _0804ED10 @ =gUnk_080F5328 - bl LoadRoomEntityList - movs r0, #0x14 - bl CheckLocalFlag - cmp r0, #0 - bne _0804ED0E - ldr r0, _0804ED14 @ =gUnk_080F5308 - bl LoadRoomEntityList -_0804ED0E: - pop {pc} - .align 2, 0 -_0804ED10: .4byte gUnk_080F5328 -_0804ED14: .4byte gUnk_080F5308 - - thumb_func_start sub_0804ED18 -sub_0804ED18: @ 0x0804ED18 - ldr r0, _0804ED28 @ =gArea - ldr r2, _0804ED2C @ =0x00000864 - adds r1, r0, r2 - subs r2, #4 - adds r0, r0, r2 - ldr r0, [r0] - str r0, [r1] - bx lr - .align 2, 0 -_0804ED28: .4byte gArea -_0804ED2C: .4byte 0x00000864 - - thumb_func_start sub_0804ED30 -sub_0804ED30: @ 0x0804ED30 - movs r0, #1 - bx lr - - thumb_func_start sub_0804ED34 -sub_0804ED34: @ 0x0804ED34 - push {lr} - bl sub_080AF2E4 - movs r0, #0x5d - bl CheckGlobalFlag - cmp r0, #0 - beq _0804ED4E - ldr r0, _0804ED50 @ =gArea - ldr r1, _0804ED54 @ =0x00000864 - adds r0, r0, r1 - movs r1, #0x31 - str r1, [r0] -_0804ED4E: - pop {pc} - .align 2, 0 -_0804ED50: .4byte gArea -_0804ED54: .4byte 0x00000864 - - thumb_func_start sub_0804ED58 -sub_0804ED58: @ 0x0804ED58 - movs r0, #1 - bx lr - - thumb_func_start sub_0804ED5C -sub_0804ED5C: @ 0x0804ED5C - push {lr} - movs r0, #0x79 - bl CheckLocalFlag - cmp r0, #0 - bne _0804ED6E - ldr r0, _0804EDA8 @ =gUnk_080F54E8 - bl LoadRoomEntityList -_0804ED6E: - movs r0, #0x7a - bl CheckLocalFlag - cmp r0, #0 - bne _0804EDB0 - movs r0, #2 - bl GetInventoryValue - cmp r0, #0 - beq _0804EE16 - movs r0, #3 - bl GetInventoryValue - cmp r0, #0 - bne _0804EE16 - movs r0, #0x40 - bl GetInventoryValue - cmp r0, #0 - beq _0804EE16 - movs r0, #0x41 - bl GetInventoryValue - cmp r0, #0 - beq _0804EE16 - ldr r0, _0804EDAC @ =gUnk_080F5508 - bl LoadRoomEntityList - b _0804EE16 - .align 2, 0 -_0804EDA8: .4byte gUnk_080F54E8 -_0804EDAC: .4byte gUnk_080F5508 -_0804EDB0: - movs r0, #0x7b - bl CheckLocalFlag - cmp r0, #0 - bne _0804EDE4 - movs r0, #3 - bl GetInventoryValue - cmp r0, #0 - beq _0804EE16 - movs r0, #4 - bl GetInventoryValue - cmp r0, #0 - bne _0804EE16 - movs r0, #0x42 - bl GetInventoryValue - cmp r0, #0 - beq _0804EE16 - ldr r0, _0804EDE0 @ =gUnk_080F5558 - bl LoadRoomEntityList - b _0804EE16 - .align 2, 0 -_0804EDE0: .4byte gUnk_080F5558 -_0804EDE4: - movs r0, #0x7c - bl CheckLocalFlag - cmp r0, #0 - bne _0804EE10 - movs r0, #6 - bl GetInventoryValue - cmp r0, #0 - bne _0804EE16 - movs r0, #0x43 - bl GetInventoryValue - cmp r0, #0 - beq _0804EE16 - ldr r0, _0804EE0C @ =gUnk_080F5598 - bl LoadRoomEntityList - b _0804EE16 - .align 2, 0 -_0804EE0C: .4byte gUnk_080F5598 -_0804EE10: - ldr r0, _0804EE5C @ =gUnk_080F55D8 - bl LoadRoomEntityList -_0804EE16: - movs r0, #0x7a - bl CheckLocalFlag - cmp r0, #0 - beq _0804EE26 - ldr r0, _0804EE60 @ =gUnk_080F5528 - bl LoadRoomEntityList -_0804EE26: - movs r0, #0x7b - bl CheckLocalFlag - cmp r0, #0 - beq _0804EE36 - ldr r0, _0804EE64 @ =gUnk_080F5578 - bl LoadRoomEntityList -_0804EE36: - movs r0, #0x7c - bl CheckLocalFlag - cmp r0, #0 - beq _0804EE46 - ldr r0, _0804EE68 @ =gUnk_080F55B8 - bl LoadRoomEntityList -_0804EE46: - movs r0, #0x5d - bl CheckGlobalFlag - cmp r0, #0 - beq _0804EE5A - ldr r0, _0804EE6C @ =gArea - ldr r1, _0804EE70 @ =0x00000864 - adds r0, r0, r1 - movs r1, #0x31 - str r1, [r0] -_0804EE5A: - pop {pc} - .align 2, 0 -_0804EE5C: .4byte gUnk_080F55D8 -_0804EE60: .4byte gUnk_080F5528 -_0804EE64: .4byte gUnk_080F5578 -_0804EE68: .4byte gUnk_080F55B8 -_0804EE6C: .4byte gArea -_0804EE70: .4byte 0x00000864 - - thumb_func_start sub_0804EE74 -sub_0804EE74: @ 0x0804EE74 - movs r0, #1 - bx lr - - thumb_func_start sub_0804EE78 -sub_0804EE78: @ 0x0804EE78 - push {lr} - movs r0, #0x78 - bl CheckLocalFlag - cmp r0, #0 - bne _0804EE94 - movs r0, #0x7c - bl CheckLocalFlag - cmp r0, #0 - beq _0804EE94 - ldr r0, _0804EEAC @ =gUnk_080F5660 - bl LoadRoomEntityList -_0804EE94: - movs r0, #0x5d - bl CheckGlobalFlag - cmp r0, #0 - beq _0804EEA8 - ldr r0, _0804EEB0 @ =gArea - ldr r1, _0804EEB4 @ =0x00000864 - adds r0, r0, r1 - movs r1, #0x31 - str r1, [r0] -_0804EEA8: - pop {pc} - .align 2, 0 -_0804EEAC: .4byte gUnk_080F5660 -_0804EEB0: .4byte gArea -_0804EEB4: .4byte 0x00000864 - - thumb_func_start sub_0804EEB8 -sub_0804EEB8: @ 0x0804EEB8 - movs r0, #1 - bx lr - - thumb_func_start sub_0804EEBC -sub_0804EEBC: @ 0x0804EEBC - push {lr} - ldr r0, _0804EEF4 @ =gUnk_080F5758 - bl LoadRoomEntityList - movs r0, #0x36 - bl GetInventoryValue - cmp r0, #0 - bne _0804EEE2 - movs r0, #0x80 - lsls r0, r0, #2 - movs r1, #0x8f - bl CheckLocalFlagByOffset - cmp r0, #0 - beq _0804EEE2 - ldr r0, _0804EEF8 @ =gUnk_080F57E8 - bl LoadRoomEntityList -_0804EEE2: - movs r0, #0x55 - bl CheckLocalFlag - cmp r0, #0 - bne _0804EF00 - ldr r0, _0804EEFC @ =gUnk_080F57A8 - bl LoadRoomEntityList - b _0804EF54 - .align 2, 0 -_0804EEF4: .4byte gUnk_080F5758 -_0804EEF8: .4byte gUnk_080F57E8 -_0804EEFC: .4byte gUnk_080F57A8 -_0804EF00: - ldr r1, _0804EF34 @ =gBombBagSizes - ldr r0, _0804EF38 @ =gUnk_02002A40 - adds r0, #0xae - ldrb r0, [r0] - adds r0, r0, r1 - ldrb r0, [r0] - cmp r0, #0x1d - bls _0804EF16 - ldr r0, _0804EF3C @ =gUnk_080F57C8 - bl LoadRoomEntityList -_0804EF16: - movs r0, #0xb - bl GetInventoryValue - cmp r0, #0 - bne _0804EF44 - movs r0, #0xc - bl GetInventoryValue - cmp r0, #0 - bne _0804EF44 - ldr r0, _0804EF40 @ =gUnk_080F5888 - bl LoadRoomEntityList - b _0804EF54 - .align 2, 0 -_0804EF34: .4byte gBombBagSizes -_0804EF38: .4byte gUnk_02002A40 -_0804EF3C: .4byte gUnk_080F57C8 -_0804EF40: .4byte gUnk_080F5888 -_0804EF44: - movs r0, #0xcd - bl CheckLocalFlag - cmp r0, #0 - bne _0804EF54 - ldr r0, _0804EF80 @ =gUnk_080F58A8 - bl LoadRoomEntityList -_0804EF54: - movs r0, #9 - bl GetInventoryValue - cmp r0, #0 - bne _0804EF68 - movs r0, #4 - bl CheckGlobalFlag - cmp r0, #0 - beq _0804EF92 -_0804EF68: - ldr r0, _0804EF84 @ =gUnk_080F5868 - bl LoadRoomEntityList - movs r0, #0x56 - bl CheckLocalFlag - cmp r0, #0 - bne _0804EF8C - ldr r0, _0804EF88 @ =gUnk_080F5828 - bl LoadRoomEntityList - b _0804EF92 - .align 2, 0 -_0804EF80: .4byte gUnk_080F58A8 -_0804EF84: .4byte gUnk_080F5868 -_0804EF88: .4byte gUnk_080F5828 -_0804EF8C: - ldr r0, _0804EFA4 @ =gUnk_080F5848 - bl LoadRoomEntityList -_0804EF92: - ldr r0, _0804EFA8 @ =gUnk_02002A40 - adds r0, #0xbb - ldrb r0, [r0] - cmp r0, #0 - bne _0804EFA2 - ldr r0, _0804EFAC @ =gUnk_080F5788 - bl LoadRoomEntityList -_0804EFA2: - pop {pc} - .align 2, 0 -_0804EFA4: .4byte gUnk_080F5848 -_0804EFA8: .4byte gUnk_02002A40 -_0804EFAC: .4byte gUnk_080F5788 - - thumb_func_start sub_0804EFB0 -sub_0804EFB0: @ 0x0804EFB0 - movs r0, #1 - bx lr - - thumb_func_start nullsub_397 -nullsub_397: @ 0x0804EFB4 - bx lr - .align 2, 0 - - thumb_func_start sub_0804EFB8 -sub_0804EFB8: @ 0x0804EFB8 - movs r0, #1 - bx lr - - thumb_func_start sub_0804EFBC -sub_0804EFBC: @ 0x0804EFBC - push {lr} - movs r0, #0x38 - bl GetInventoryValue - cmp r0, #1 - bne _0804EFCE - ldr r0, _0804EFD0 @ =gUnk_080F5B3C - bl LoadRoomEntityList -_0804EFCE: - pop {pc} - .align 2, 0 -_0804EFD0: .4byte gUnk_080F5B3C - - thumb_func_start sub_0804EFD4 -sub_0804EFD4: @ 0x0804EFD4 - movs r0, #1 - bx lr - - thumb_func_start nullsub_398 -nullsub_398: @ 0x0804EFD8 - bx lr - .align 2, 0 - - thumb_func_start sub_0804EFDC -sub_0804EFDC: @ 0x0804EFDC - push {lr} - movs r0, #0x50 - bl CheckGlobalFlag - cmp r0, #0 - beq _0804EFEE - ldr r1, _0804EFF4 @ =gUnk_030010A0 - movs r0, #5 - strb r0, [r1, #0xf] -_0804EFEE: - movs r0, #1 - pop {pc} - .align 2, 0 -_0804EFF4: .4byte gUnk_030010A0 - - thumb_func_start sub_0804EFF8 -sub_0804EFF8: @ 0x0804EFF8 - push {lr} - ldr r0, _0804F020 @ =gUnk_02002A40 - ldrb r0, [r0, #8] - cmp r0, #7 - bls _0804F008 - ldr r0, _0804F024 @ =gUnk_080F5DD0 - bl LoadRoomEntityList -_0804F008: - movs r0, #0x50 - bl CheckGlobalFlag - cmp r0, #0 - beq _0804F01C - ldr r2, _0804F028 @ =gUnk_08011C50 - movs r0, #1 - movs r1, #2 - bl sub_080751E8 -_0804F01C: - pop {pc} - .align 2, 0 -_0804F020: .4byte gUnk_02002A40 -_0804F024: .4byte gUnk_080F5DD0 -_0804F028: .4byte gUnk_08011C50 - - thumb_func_start sub_0804F02C -sub_0804F02C: @ 0x0804F02C - movs r0, #1 - bx lr - - thumb_func_start sub_0804F030 -sub_0804F030: @ 0x0804F030 - push {lr} - movs r0, #0x80 - lsls r0, r0, #1 - movs r1, #0xd1 - bl CheckLocalFlagByOffset - cmp r0, #0 - bne _0804F046 - ldr r0, _0804F048 @ =gUnk_080F5E68 - bl LoadRoomEntityList -_0804F046: - pop {pc} - .align 2, 0 -_0804F048: .4byte gUnk_080F5E68 - - thumb_func_start sub_0804F04C -sub_0804F04C: @ 0x0804F04C - movs r0, #1 - bx lr - - thumb_func_start sub_0804F050 -sub_0804F050: @ 0x0804F050 - push {lr} - ldr r0, _0804F074 @ =gUnk_02002A40 - ldrb r0, [r0, #8] - cmp r0, #4 - bls _0804F060 - ldr r0, _0804F078 @ =gUnk_080F5F38 - bl LoadRoomEntityList -_0804F060: - movs r0, #0x92 - bl CheckLocalFlag - cmp r0, #0 - bne _0804F080 - ldr r0, _0804F07C @ =gUnk_080F5F58 - bl LoadRoomEntityList - b _0804F086 - .align 2, 0 -_0804F074: .4byte gUnk_02002A40 -_0804F078: .4byte gUnk_080F5F38 -_0804F07C: .4byte gUnk_080F5F58 -_0804F080: - ldr r0, _0804F088 @ =gUnk_080F5F78 - bl LoadRoomEntityList -_0804F086: - pop {pc} - .align 2, 0 -_0804F088: .4byte gUnk_080F5F78 - - thumb_func_start sub_0804F08C -sub_0804F08C: @ 0x0804F08C - movs r0, #1 - bx lr - - thumb_func_start nullsub_399 -nullsub_399: @ 0x0804F090 - bx lr - .align 2, 0 - - thumb_func_start sub_0804F094 -sub_0804F094: @ 0x0804F094 - movs r0, #1 - bx lr - - thumb_func_start nullsub_400 -nullsub_400: @ 0x0804F098 - bx lr - .align 2, 0 - - thumb_func_start sub_0804F09C -sub_0804F09C: @ 0x0804F09C - push {lr} - movs r0, #0x24 - bl CheckGlobalFlag - cmp r0, #0 - beq _0804F0BC - movs r0, #0x80 - lsls r0, r0, #1 - movs r1, #0xdc - bl CheckLocalFlagByOffset - cmp r0, #0 - beq _0804F0BC - movs r0, #0x58 - bl SetGlobalFlag -_0804F0BC: - movs r0, #1 - pop {pc} - - thumb_func_start sub_0804F0C0 -sub_0804F0C0: @ 0x0804F0C0 - push {r4, lr} - movs r0, #0x80 - lsls r0, r0, #1 - movs r1, #0xdc - bl CheckLocalFlagByOffset - cmp r0, #0 - beq _0804F0D6 - movs r0, #0x90 - bl SetLocalFlag -_0804F0D6: - movs r0, #0xf - bl CheckKinstoneFused - cmp r0, #0 - beq _0804F0E6 - ldr r0, _0804F118 @ =gUnk_080F61BC - bl LoadRoomEntityList -_0804F0E6: - movs r0, #0x58 - bl CheckGlobalFlag - cmp r0, #0 - bne _0804F106 - ldr r4, _0804F11C @ =0x00004072 - ldr r1, _0804F120 @ =0x000004C7 - adds r0, r4, #0 - movs r2, #1 - bl SetTileType - ldr r1, _0804F124 @ =0x00000507 - adds r0, r4, #0 - movs r2, #1 - bl SetTileType -_0804F106: - movs r2, #0xf4 - lsls r2, r2, #1 - movs r3, #0xac - lsls r3, r3, #1 - movs r0, #8 - movs r1, #0 - bl sub_08052CA4 - pop {r4, pc} - .align 2, 0 -_0804F118: .4byte gUnk_080F61BC -_0804F11C: .4byte 0x00004072 -_0804F120: .4byte 0x000004C7 -_0804F124: .4byte 0x00000507 - - thumb_func_start sub_0804F128 -sub_0804F128: @ 0x0804F128 - movs r0, #1 - bx lr - - thumb_func_start sub_0804F12C -sub_0804F12C: @ 0x0804F12C - push {lr} - movs r0, #0x58 - bl CheckGlobalFlag - cmp r0, #0 - bne _0804F144 - ldr r0, _0804F140 @ =gUnk_080F62E4 - bl LoadRoomEntityList - b _0804F154 - .align 2, 0 -_0804F140: .4byte gUnk_080F62E4 -_0804F144: - movs r0, #0x63 - bl CheckLocalFlag - cmp r0, #0 - beq _0804F154 - ldr r0, _0804F158 @ =gUnk_080F6324 - bl LoadRoomEntityList -_0804F154: - pop {pc} - .align 2, 0 -_0804F158: .4byte gUnk_080F6324 - - thumb_func_start sub_0804F15C -sub_0804F15C: @ 0x0804F15C - movs r0, #1 - bx lr - - thumb_func_start nullsub_401 -nullsub_401: @ 0x0804F160 - bx lr - .align 2, 0 - - thumb_func_start sub_0804F164 -sub_0804F164: @ 0x0804F164 - movs r0, #1 - bx lr - - thumb_func_start sub_0804F168 -sub_0804F168: @ 0x0804F168 - push {lr} - movs r0, #0xb1 - bl CheckLocalFlag - cmp r0, #0 - bne _0804F180 - ldr r0, _0804F17C @ =gUnk_080F6564 - bl LoadRoomEntityList - b _0804F186 - .align 2, 0 -_0804F17C: .4byte gUnk_080F6564 -_0804F180: - ldr r0, _0804F188 @ =gUnk_080F6584 - bl LoadRoomEntityList -_0804F186: - pop {pc} - .align 2, 0 -_0804F188: .4byte gUnk_080F6584 - - thumb_func_start sub_0804F18C -sub_0804F18C: @ 0x0804F18C - movs r0, #1 - bx lr - - thumb_func_start sub_0804F190 -sub_0804F190: @ 0x0804F190 - push {lr} - movs r0, #5 - bl sub_0805B4D0 - movs r0, #6 - bl CheckGlobalFlag - cmp r0, #0 - beq _0804F1B6 - movs r0, #0x80 - lsls r0, r0, #1 - movs r1, #5 - bl CheckLocalFlagByOffset - cmp r0, #0 - bne _0804F1B6 - ldr r0, _0804F1D4 @ =gUnk_080F66AC - bl LoadRoomEntityList -_0804F1B6: - movs r2, #0xf4 - lsls r2, r2, #1 - movs r3, #0xac - lsls r3, r3, #1 - movs r0, #8 - movs r1, #0 - bl sub_08052CA4 - ldr r2, _0804F1D8 @ =gArea - ldrb r1, [r2] - movs r0, #0x80 - orrs r0, r1 - strb r0, [r2] - pop {pc} - .align 2, 0 -_0804F1D4: .4byte gUnk_080F66AC -_0804F1D8: .4byte gArea - - thumb_func_start sub_0804F1DC -sub_0804F1DC: @ 0x0804F1DC - movs r0, #1 - bx lr - - thumb_func_start nullsub_402 -nullsub_402: @ 0x0804F1E0 - bx lr - .align 2, 0 - - thumb_func_start sub_0804F1E4 -sub_0804F1E4: @ 0x0804F1E4 - movs r0, #1 - bx lr - - thumb_func_start nullsub_403 -nullsub_403: @ 0x0804F1E8 - bx lr - .align 2, 0 - - thumb_func_start sub_0804F1EC -sub_0804F1EC: @ 0x0804F1EC - movs r0, #1 - bx lr - - thumb_func_start nullsub_404 -nullsub_404: @ 0x0804F1F0 - bx lr - .align 2, 0 - - thumb_func_start sub_0804F1F4 -sub_0804F1F4: @ 0x0804F1F4 - movs r0, #1 - bx lr - - thumb_func_start nullsub_405 -nullsub_405: @ 0x0804F1F8 - bx lr - .align 2, 0 - - thumb_func_start sub_0804F1FC -sub_0804F1FC: @ 0x0804F1FC - movs r0, #1 - bx lr - - thumb_func_start nullsub_406 -nullsub_406: @ 0x0804F200 - bx lr - .align 2, 0 - - thumb_func_start sub_0804F204 -sub_0804F204: @ 0x0804F204 - movs r0, #1 - bx lr - - thumb_func_start nullsub_407 -nullsub_407: @ 0x0804F208 - bx lr - .align 2, 0 - - thumb_func_start sub_0804F20C -sub_0804F20C: @ 0x0804F20C - movs r0, #1 - bx lr - - thumb_func_start nullsub_408 -nullsub_408: @ 0x0804F210 - bx lr - .align 2, 0 - - thumb_func_start sub_0804F214 -sub_0804F214: @ 0x0804F214 - movs r0, #1 - bx lr - - thumb_func_start nullsub_409 -nullsub_409: @ 0x0804F218 - bx lr - .align 2, 0 - - thumb_func_start sub_0804F21C -sub_0804F21C: @ 0x0804F21C - movs r0, #1 - bx lr - - thumb_func_start nullsub_410 -nullsub_410: @ 0x0804F220 - bx lr - .align 2, 0 - - thumb_func_start sub_0804F224 -sub_0804F224: @ 0x0804F224 - movs r0, #1 - bx lr - - thumb_func_start nullsub_411 -nullsub_411: @ 0x0804F228 - bx lr - .align 2, 0 - - thumb_func_start sub_0804F22C -sub_0804F22C: @ 0x0804F22C - movs r0, #1 - bx lr - - thumb_func_start sub_0804F230 -sub_0804F230: @ 0x0804F230 - push {lr} - movs r0, #0 - bl sub_0805ADD8 - pop {pc} - .align 2, 0 - - thumb_func_start sub_0804F23C -sub_0804F23C: @ 0x0804F23C - push {lr} - movs r0, #0x6d - bl CheckLocalFlag - cmp r0, #0 - bne _0804F252 - movs r1, #0x80 - lsls r1, r1, #1 - movs r0, #7 - bl DoFade -_0804F252: - movs r0, #0x49 - bl SetGlobalFlag - movs r0, #1 - pop {pc} - - thumb_func_start sub_0804F25C -sub_0804F25C: @ 0x0804F25C - push {r4, lr} - movs r0, #0 - bl sub_0805ADD8 - movs r0, #0x6d - bl CheckLocalFlag - cmp r0, #0 - bne _0804F27A - ldr r0, _0804F2B0 @ =gUnk_080F70A8 - bl LoadRoomEntityList - movs r0, #0x1c - bl ClearGlobalFlag -_0804F27A: - movs r0, #0x15 - bl CheckGlobalFlag - cmp r0, #0 - bne _0804F28E - ldr r0, _0804F2B4 @ =gArea - ldr r1, _0804F2B8 @ =0x00000864 - adds r0, r0, r1 - movs r1, #0x10 - str r1, [r0] -_0804F28E: - ldr r4, _0804F2BC @ =gUnk_02002A40 - ldr r0, [r4, #0x40] - movs r1, #0x80 - lsls r1, r1, #0x17 - ands r0, r1 - cmp r0, #0 - bne _0804F2A2 - ldr r0, _0804F2C0 @ =gUnk_080F70D8 - bl LoadRoomEntityList -_0804F2A2: - ldrb r0, [r4, #8] - cmp r0, #3 - bls _0804F2AE - ldr r0, _0804F2C4 @ =gUnk_080F7088 - bl LoadRoomEntityList -_0804F2AE: - pop {r4, pc} - .align 2, 0 -_0804F2B0: .4byte gUnk_080F70A8 -_0804F2B4: .4byte gArea -_0804F2B8: .4byte 0x00000864 -_0804F2BC: .4byte gUnk_02002A40 -_0804F2C0: .4byte gUnk_080F70D8 -_0804F2C4: .4byte gUnk_080F7088 - - thumb_func_start sub_0804F2C8 -sub_0804F2C8: @ 0x0804F2C8 - push {lr} - ldr r0, _0804F2E0 @ =gUnk_02002A40 - ldr r0, [r0, #0x40] - movs r1, #0x80 - lsls r1, r1, #0x17 - ands r0, r1 - cmp r0, #0 - bne _0804F2DE - ldr r0, _0804F2E4 @ =gUnk_080F70D8 - bl LoadRoomEntityList -_0804F2DE: - pop {pc} - .align 2, 0 -_0804F2E0: .4byte gUnk_02002A40 -_0804F2E4: .4byte gUnk_080F70D8 - - thumb_func_start sub_0804F2E8 -sub_0804F2E8: @ 0x0804F2E8 - movs r0, #1 - bx lr - - thumb_func_start sub_0804F2EC -sub_0804F2EC: @ 0x0804F2EC - push {lr} - movs r0, #0 - bl sub_0805ADD8 - pop {pc} - .align 2, 0 - - thumb_func_start sub_0804F2F8 -sub_0804F2F8: @ 0x0804F2F8 - movs r0, #1 - bx lr - - thumb_func_start sub_0804F2FC -sub_0804F2FC: @ 0x0804F2FC - push {lr} - movs r0, #0 - bl sub_0805ADD8 - pop {pc} - .align 2, 0 - - thumb_func_start sub_0804F308 -sub_0804F308: @ 0x0804F308 - push {lr} - movs r0, #0x11 - bl GetInventoryValue - cmp r0, #0 - beq _0804F324 - movs r0, #0x12 - bl GetInventoryValue - cmp r0, #0 - bne _0804F324 - ldr r1, _0804F328 @ =gRoomVars - ldr r0, _0804F32C @ =gUnk_080F7680 - str r0, [r1, #0x74] -_0804F324: - movs r0, #1 - pop {pc} - .align 2, 0 -_0804F328: .4byte gRoomVars -_0804F32C: .4byte gUnk_080F7680 - - thumb_func_start sub_0804F330 -sub_0804F330: @ 0x0804F330 - push {r4, lr} - movs r0, #0 - bl sub_0805ADD8 - ldr r0, _0804F38C @ =gUnk_02002A40 - ldrb r0, [r0, #8] - cmp r0, #3 - bls _0804F346 - ldr r0, _0804F390 @ =gUnk_080F7500 - bl LoadRoomEntityList -_0804F346: - movs r0, #0x11 - bl GetInventoryValue - cmp r0, #0 - beq _0804F38A - movs r0, #0x12 - bl GetInventoryValue - cmp r0, #0 - bne _0804F38A - ldr r0, _0804F394 @ =gUnk_080F7550 - bl LoadRoomEntityList - ldr r4, _0804F398 @ =0x00004072 - ldr r1, _0804F39C @ =0x00000311 - adds r0, r4, #0 - movs r2, #1 - bl SetTileType - ldr r1, _0804F3A0 @ =0x00000351 - adds r0, r4, #0 - movs r2, #1 - bl SetTileType - ldr r1, _0804F3A4 @ =0x000003D9 - adds r0, r4, #0 - movs r2, #1 - bl SetTileType - ldr r1, _0804F3A8 @ =0x00000419 - adds r0, r4, #0 - movs r2, #1 - bl SetTileType -_0804F38A: - pop {r4, pc} - .align 2, 0 -_0804F38C: .4byte gUnk_02002A40 -_0804F390: .4byte gUnk_080F7500 -_0804F394: .4byte gUnk_080F7550 -_0804F398: .4byte 0x00004072 -_0804F39C: .4byte 0x00000311 -_0804F3A0: .4byte 0x00000351 -_0804F3A4: .4byte 0x000003D9 -_0804F3A8: .4byte 0x00000419 - - thumb_func_start sub_0804F3AC -sub_0804F3AC: @ 0x0804F3AC - movs r0, #1 - bx lr - - thumb_func_start sub_0804F3B0 -sub_0804F3B0: @ 0x0804F3B0 - push {lr} - movs r0, #0 - bl sub_0805ADD8 - movs r0, #0x80 - lsls r0, r0, #2 - movs r1, #0x8f - bl CheckLocalFlagByOffset - cmp r0, #0 - beq _0804F3DC - movs r0, #0x1d - bl CheckGlobalFlag - cmp r0, #0 - bne _0804F3EC - ldr r0, _0804F3D8 @ =gUnk_080F77C0 - bl LoadRoomEntityList - b _0804F3EC - .align 2, 0 -_0804F3D8: .4byte gUnk_080F77C0 -_0804F3DC: - movs r0, #0x40 - bl GetInventoryValue - cmp r0, #0 - beq _0804F3EC - ldr r0, _0804F444 @ =gUnk_080F77F0 - bl LoadRoomEntityList -_0804F3EC: - movs r0, #0x15 - bl CheckGlobalFlag - cmp r0, #0 - beq _0804F406 - movs r0, #0x40 - bl GetInventoryValue - cmp r0, #0 - bne _0804F406 - ldr r0, _0804F448 @ =gUnk_080F7810 - bl LoadRoomEntityList -_0804F406: - movs r0, #0x29 - bl CheckKinstoneFused - cmp r0, #0 - bne _0804F42A - ldr r0, _0804F44C @ =gUnk_080F7860 - bl LoadRoomEntityList - ldr r0, _0804F450 @ =0x00004072 - ldr r1, _0804F454 @ =0x00000D88 - movs r2, #1 - bl SetTile - ldr r0, _0804F458 @ =0x00004096 - ldr r1, _0804F45C @ =0x00000DC8 - movs r2, #1 - bl SetTile -_0804F42A: - ldr r0, _0804F460 @ =gUnk_02002A40 - ldrb r0, [r0, #8] - cmp r0, #3 - bls _0804F442 - movs r0, #0x5c - bl CheckGlobalFlag - cmp r0, #0 - beq _0804F442 - ldr r0, _0804F464 @ =gUnk_080F78A0 - bl LoadRoomEntityList -_0804F442: - pop {pc} - .align 2, 0 -_0804F444: .4byte gUnk_080F77F0 -_0804F448: .4byte gUnk_080F7810 -_0804F44C: .4byte gUnk_080F7860 -_0804F450: .4byte 0x00004072 -_0804F454: .4byte 0x00000D88 -_0804F458: .4byte 0x00004096 -_0804F45C: .4byte 0x00000DC8 -_0804F460: .4byte gUnk_02002A40 -_0804F464: .4byte gUnk_080F78A0 - - thumb_func_start sub_0804F468 -sub_0804F468: @ 0x0804F468 - push {lr} - movs r0, #0x15 - bl CheckGlobalFlag - cmp r0, #0 - beq _0804F48A - movs r0, #0x11 - bl GetInventoryValue - cmp r0, #0 - bne _0804F48A - ldr r0, _0804F4D0 @ =gRoomVars - ldr r1, _0804F4D4 @ =gUnk_080F7CD0 - str r1, [r0, #0x6c] - adds r0, #0x88 - ldr r1, _0804F4D8 @ =sub_0804F5E8 - str r1, [r0] -_0804F48A: - movs r0, #3 - bl CheckGlobalFlag - cmp r0, #0 - beq _0804F4BA - movs r0, #3 - bl GetInventoryValue - cmp r0, #0 - beq _0804F4BA - movs r0, #0x8c - bl CheckLocalFlag - adds r3, r0, #0 - cmp r3, #0 - bne _0804F4BA - ldr r1, _0804F4D0 @ =gRoomVars - ldr r0, _0804F4DC @ =gUnk_080F7C80 - str r0, [r1, #0x6c] - adds r2, r1, #0 - adds r2, #0x88 - ldr r0, _0804F4E0 @ =sub_0804F4E4 - str r0, [r2] - str r3, [r1, #0x74] -_0804F4BA: - movs r0, #0x15 - bl CheckGlobalFlag - cmp r0, #0 - beq _0804F4CA - movs r0, #0x64 - bl ClearGlobalFlag -_0804F4CA: - movs r0, #1 - pop {pc} - .align 2, 0 -_0804F4D0: .4byte gRoomVars -_0804F4D4: .4byte gUnk_080F7CD0 -_0804F4D8: .4byte sub_0804F5E8 -_0804F4DC: .4byte gUnk_080F7C80 -_0804F4E0: .4byte sub_0804F4E4 - - thumb_func_start sub_0804F4E4 -sub_0804F4E4: @ 0x0804F4E4 - push {lr} - movs r0, #0 - bl sub_0805ADD8 - bl sub_0804F578 - pop {pc} - .align 2, 0 - - thumb_func_start sub_0804F4F4 -sub_0804F4F4: @ 0x0804F4F4 - push {r4, lr} - bl sub_0804F4E4 - movs r0, #0x8b - bl CheckLocalFlag - cmp r0, #0 - bne _0804F540 - ldr r0, _0804F558 @ =gUnk_080F7D70 - bl LoadRoomEntityList - movs r4, #0xba - lsls r4, r4, #1 - ldr r1, _0804F55C @ =0x000007A2 - adds r0, r4, #0 - movs r2, #1 - bl SetTileType - ldr r1, _0804F560 @ =0x000007A3 - adds r0, r4, #0 - movs r2, #1 - bl SetTileType - ldr r1, _0804F564 @ =0x000007A5 - adds r0, r4, #0 - movs r2, #1 - bl SetTileType - ldr r1, _0804F568 @ =0x000007A6 - adds r0, r4, #0 - movs r2, #1 - bl SetTileType - ldr r1, _0804F56C @ =0x000007A7 - adds r0, r4, #0 - movs r2, #1 - bl SetTileType -_0804F540: - movs r0, #0x15 - bl CheckGlobalFlag - cmp r0, #0 - bne _0804F554 - ldr r0, _0804F570 @ =gArea - ldr r1, _0804F574 @ =0x00000864 - adds r0, r0, r1 - movs r1, #0x13 - str r1, [r0] -_0804F554: - pop {r4, pc} - .align 2, 0 -_0804F558: .4byte gUnk_080F7D70 -_0804F55C: .4byte 0x000007A2 -_0804F560: .4byte 0x000007A3 -_0804F564: .4byte 0x000007A5 -_0804F568: .4byte 0x000007A6 -_0804F56C: .4byte 0x000007A7 -_0804F570: .4byte gArea -_0804F574: .4byte 0x00000864 - - thumb_func_start sub_0804F578 -sub_0804F578: @ 0x0804F578 - push {lr} - movs r0, #0x8e - bl CheckLocalFlag - cmp r0, #0 - bne _0804F590 - ldr r0, _0804F58C @ =gUnk_080F7DC0 - bl LoadRoomEntityList - b _0804F5CC - .align 2, 0 -_0804F58C: .4byte gUnk_080F7DC0 -_0804F590: - ldr r1, _0804F5D0 @ =0x0000094A - movs r0, #0x37 - movs r2, #1 - bl SetTileType - ldr r1, _0804F5D4 @ =0x0000094B - movs r0, #0x37 - movs r2, #1 - bl SetTileType - ldr r1, _0804F5D8 @ =0x0000094C - movs r0, #0x37 - movs r2, #1 - bl SetTileType - ldr r1, _0804F5DC @ =0x0000098A - movs r0, #0x37 - movs r2, #1 - bl SetTileType - ldr r1, _0804F5E0 @ =0x0000098B - movs r0, #0x37 - movs r2, #1 - bl SetTileType - ldr r1, _0804F5E4 @ =0x0000098C - movs r0, #0x37 - movs r2, #1 - bl SetTileType -_0804F5CC: - pop {pc} - .align 2, 0 -_0804F5D0: .4byte 0x0000094A -_0804F5D4: .4byte 0x0000094B -_0804F5D8: .4byte 0x0000094C -_0804F5DC: .4byte 0x0000098A -_0804F5E0: .4byte 0x0000098B -_0804F5E4: .4byte 0x0000098C - - thumb_func_start sub_0804F5E8 -sub_0804F5E8: @ 0x0804F5E8 - push {r4, lr} - bl sub_0804F4E4 - ldr r0, _0804F654 @ =0x000001D3 - ldr r1, _0804F658 @ =0x00000BDE - movs r2, #1 - bl SetTileType - movs r4, #0xeb - lsls r4, r4, #1 - ldr r1, _0804F65C @ =0x00000BE2 - adds r0, r4, #0 - movs r2, #1 - bl SetTileType - movs r0, #0xea - lsls r0, r0, #1 - ldr r1, _0804F660 @ =0x00000C1F - movs r2, #1 - bl SetTileType - ldr r0, _0804F664 @ =0x000001D5 - movs r1, #0xc2 - lsls r1, r1, #4 - movs r2, #1 - bl SetTileType - ldr r1, _0804F668 @ =0x00000C5E - adds r0, r4, #0 - movs r2, #1 - bl SetTileType - ldr r4, _0804F66C @ =0x00004072 - ldr r1, _0804F670 @ =0x00000B9B - adds r0, r4, #0 - movs r2, #1 - bl SetTileType - ldr r1, _0804F674 @ =0x00000BDB - adds r0, r4, #0 - movs r2, #1 - bl SetTileType - ldr r1, _0804F678 @ =0x00000AA4 - adds r0, r4, #0 - movs r2, #1 - bl SetTileType - ldr r1, _0804F67C @ =0x00000AE4 - adds r0, r4, #0 - movs r2, #1 - bl SetTileType - pop {r4, pc} - .align 2, 0 -_0804F654: .4byte 0x000001D3 -_0804F658: .4byte 0x00000BDE -_0804F65C: .4byte 0x00000BE2 -_0804F660: .4byte 0x00000C1F -_0804F664: .4byte 0x000001D5 -_0804F668: .4byte 0x00000C5E -_0804F66C: .4byte 0x00004072 -_0804F670: .4byte 0x00000B9B -_0804F674: .4byte 0x00000BDB -_0804F678: .4byte 0x00000AA4 -_0804F67C: .4byte 0x00000AE4 - - thumb_func_start sub_0804F680 -sub_0804F680: @ 0x0804F680 - push {r4, r5, lr} - adds r4, r1, #0 - adds r5, r2, #0 - movs r1, #2 - movs r2, #0 - bl CreateFx - adds r2, r0, #0 - cmp r2, #0 - beq _0804F6A2 - ldr r0, _0804F6A4 @ =gRoomControls - ldrh r1, [r0, #6] - adds r1, r1, r4 - strh r1, [r2, #0x2e] - ldrh r0, [r0, #8] - adds r0, r0, r5 - strh r0, [r2, #0x32] -_0804F6A2: - pop {r4, r5, pc} - .align 2, 0 -_0804F6A4: .4byte gRoomControls - - thumb_func_start sub_0804F6A8 -sub_0804F6A8: @ 0x0804F6A8 - push {r4, lr} - adds r4, r0, #0 - movs r1, #0xec - lsls r1, r1, #1 - movs r2, #0x84 - lsls r2, r2, #1 - bl sub_0804F680 - movs r1, #0x86 - lsls r1, r1, #2 - movs r2, #0xc4 - lsls r2, r2, #1 - adds r0, r4, #0 - bl sub_0804F680 - pop {r4, pc} - - thumb_func_start sub_0804F6C8 -sub_0804F6C8: @ 0x0804F6C8 - push {r4, lr} - adds r4, r0, #0 - movs r1, #0xf4 - lsls r1, r1, #1 - movs r2, #0x84 - lsls r2, r2, #1 - bl sub_0804F680 - movs r1, #0x82 - lsls r1, r1, #2 - movs r2, #0xc4 - lsls r2, r2, #1 - adds r0, r4, #0 - bl sub_0804F680 - pop {r4, pc} - - thumb_func_start sub_0804F6E8 -sub_0804F6E8: @ 0x0804F6E8 - push {r4, r5, lr} - adds r4, r0, #0 - movs r5, #0xfc - lsls r5, r5, #1 - movs r2, #0x84 - lsls r2, r2, #1 - adds r1, r5, #0 - bl sub_0804F680 - movs r1, #0x96 - lsls r1, r1, #2 - movs r2, #0x9c - lsls r2, r2, #1 - adds r0, r4, #0 - bl sub_0804F680 - movs r2, #0xc4 - lsls r2, r2, #1 - adds r0, r4, #0 - adds r1, r5, #0 - bl sub_0804F680 - movs r1, #0xcc - lsls r1, r1, #1 - movs r2, #0xac - lsls r2, r2, #1 - adds r0, r4, #0 - bl sub_0804F680 - pop {r4, r5, pc} - - thumb_func_start sub_0804F724 -sub_0804F724: @ 0x0804F724 - push {r4, r5, lr} - adds r4, r0, #0 - movs r1, #0x82 - lsls r1, r1, #2 - movs r2, #0x84 - lsls r2, r2, #1 - bl sub_0804F680 - movs r1, #0x96 - lsls r1, r1, #2 - movs r5, #0xa4 - lsls r5, r5, #1 - adds r0, r4, #0 - adds r2, r5, #0 - bl sub_0804F680 - movs r1, #0xf4 - lsls r1, r1, #1 - movs r2, #0xc4 - lsls r2, r2, #1 - adds r0, r4, #0 - bl sub_0804F680 - movs r1, #0xcc - lsls r1, r1, #1 - adds r0, r4, #0 - adds r2, r5, #0 - bl sub_0804F680 - pop {r4, r5, pc} - - thumb_func_start sub_0804F760 -sub_0804F760: @ 0x0804F760 - push {r4, lr} - adds r4, r0, #0 - movs r1, #0x86 - lsls r1, r1, #2 - movs r2, #0x84 - lsls r2, r2, #1 - bl sub_0804F680 - movs r1, #0x96 - lsls r1, r1, #2 - movs r2, #0xac - lsls r2, r2, #1 - adds r0, r4, #0 - bl sub_0804F680 - movs r1, #0xec - lsls r1, r1, #1 - movs r2, #0xc4 - lsls r2, r2, #1 - adds r0, r4, #0 - bl sub_0804F680 - movs r1, #0xcc - lsls r1, r1, #1 - movs r2, #0x9c - lsls r2, r2, #1 - adds r0, r4, #0 - bl sub_0804F680 - pop {r4, pc} - - thumb_func_start sub_0804F79C -sub_0804F79C: @ 0x0804F79C - push {r4, lr} - adds r4, r0, #0 - movs r1, #0x35 - movs r2, #0 - bl CreateFx - adds r2, r0, #0 - cmp r2, #0 - beq _0804F7D0 - ldrb r1, [r2, #0x19] - movs r0, #0x3f - ands r0, r1 - strb r0, [r2, #0x19] - ldr r1, _0804F804 @ =gRoomControls - movs r3, #0xdc - lsls r3, r3, #1 - adds r0, r3, #0 - ldrh r3, [r1, #6] - adds r0, r0, r3 - strh r0, [r2, #0x2e] - movs r3, #0xa4 - lsls r3, r3, #1 - adds r0, r3, #0 - ldrh r1, [r1, #8] - adds r0, r0, r1 - strh r0, [r2, #0x32] -_0804F7D0: - adds r0, r4, #0 - movs r1, #0x35 - movs r2, #0 - bl CreateFx - adds r2, r0, #0 - cmp r2, #0 - beq _0804F802 - ldrb r1, [r2, #0x19] - movs r0, #0x3f - ands r0, r1 - strb r0, [r2, #0x19] - ldr r1, _0804F804 @ =gRoomControls - movs r3, #0x8e - lsls r3, r3, #2 - adds r0, r3, #0 - ldrh r3, [r1, #6] - adds r0, r0, r3 - strh r0, [r2, #0x2e] - movs r3, #0xa4 - lsls r3, r3, #1 - adds r0, r3, #0 - ldrh r1, [r1, #8] - adds r0, r0, r1 - strh r0, [r2, #0x32] -_0804F802: - pop {r4, pc} - .align 2, 0 -_0804F804: .4byte gRoomControls - - thumb_func_start sub_0804F808 -sub_0804F808: @ 0x0804F808 - push {r4, lr} - ldr r4, _0804F824 @ =0x000001D3 - ldr r1, _0804F828 @ =0x0000041D - adds r0, r4, #0 - movs r2, #1 - bl SetTileType - ldr r1, _0804F82C @ =0x00000621 - adds r0, r4, #0 - movs r2, #1 - bl SetTileType - pop {r4, pc} - .align 2, 0 -_0804F824: .4byte 0x000001D3 -_0804F828: .4byte 0x0000041D -_0804F82C: .4byte 0x00000621 - - thumb_func_start sub_0804F830 -sub_0804F830: @ 0x0804F830 - push {r4, lr} - movs r4, #0xea - lsls r4, r4, #1 - ldr r1, _0804F850 @ =0x0000041E - adds r0, r4, #0 - movs r2, #1 - bl SetTileType - movs r1, #0xc4 - lsls r1, r1, #3 - adds r0, r4, #0 - movs r2, #1 - bl SetTileType - pop {r4, pc} - .align 2, 0 -_0804F850: .4byte 0x0000041E - - thumb_func_start sub_0804F854 -sub_0804F854: @ 0x0804F854 - push {r4, r5, lr} - ldr r5, _0804F888 @ =0x000001D5 - ldr r1, _0804F88C @ =0x0000041F - adds r0, r5, #0 - movs r2, #1 - bl SetTileType - movs r4, #0xea - lsls r4, r4, #1 - ldr r1, _0804F890 @ =0x000004E5 - adds r0, r4, #0 - movs r2, #1 - bl SetTileType - ldr r1, _0804F894 @ =0x0000061F - adds r0, r5, #0 - movs r2, #1 - bl SetTileType - ldr r1, _0804F898 @ =0x00000559 - adds r0, r4, #0 - movs r2, #1 - bl SetTileType - pop {r4, r5, pc} - .align 2, 0 -_0804F888: .4byte 0x000001D5 -_0804F88C: .4byte 0x0000041F -_0804F890: .4byte 0x000004E5 -_0804F894: .4byte 0x0000061F -_0804F898: .4byte 0x00000559 - - thumb_func_start sub_0804F89C -sub_0804F89C: @ 0x0804F89C - push {r4, r5, lr} - movs r5, #0xeb - lsls r5, r5, #1 - movs r1, #0x84 - lsls r1, r1, #3 - adds r0, r5, #0 - movs r2, #1 - bl SetTileType - ldr r4, _0804F8D0 @ =0x000001D5 - ldr r1, _0804F8D4 @ =0x00000525 - adds r0, r4, #0 - movs r2, #1 - bl SetTileType - ldr r1, _0804F8D8 @ =0x0000061E - adds r0, r5, #0 - movs r2, #1 - bl SetTileType - ldr r1, _0804F8DC @ =0x00000519 - adds r0, r4, #0 - movs r2, #1 - bl SetTileType - pop {r4, r5, pc} - .align 2, 0 -_0804F8D0: .4byte 0x000001D5 -_0804F8D4: .4byte 0x00000525 -_0804F8D8: .4byte 0x0000061E -_0804F8DC: .4byte 0x00000519 - - thumb_func_start sub_0804F8E0 -sub_0804F8E0: @ 0x0804F8E0 - push {r4, r5, lr} - ldr r5, _0804F914 @ =0x000001D3 - ldr r1, _0804F918 @ =0x00000421 - adds r0, r5, #0 - movs r2, #1 - bl SetTileType - movs r4, #0xeb - lsls r4, r4, #1 - ldr r1, _0804F91C @ =0x00000565 - adds r0, r4, #0 - movs r2, #1 - bl SetTileType - ldr r1, _0804F920 @ =0x0000061D - adds r0, r5, #0 - movs r2, #1 - bl SetTileType - ldr r1, _0804F924 @ =0x000004D9 - adds r0, r4, #0 - movs r2, #1 - bl SetTileType - pop {r4, r5, pc} - .align 2, 0 -_0804F914: .4byte 0x000001D3 -_0804F918: .4byte 0x00000421 -_0804F91C: .4byte 0x00000565 -_0804F920: .4byte 0x0000061D -_0804F924: .4byte 0x000004D9 - - thumb_func_start sub_0804F928 -sub_0804F928: @ 0x0804F928 - push {lr} - ldr r0, _0804F93C @ =0x0000041D - movs r1, #1 - bl sub_0807BA8C - ldr r0, _0804F940 @ =0x00000621 - movs r1, #1 - bl sub_0807BA8C - pop {pc} - .align 2, 0 -_0804F93C: .4byte 0x0000041D -_0804F940: .4byte 0x00000621 - - thumb_func_start sub_0804F944 -sub_0804F944: @ 0x0804F944 - push {lr} - ldr r0, _0804F95C @ =0x0000041E - movs r1, #1 - bl sub_0807BA8C - movs r0, #0xc4 - lsls r0, r0, #3 - movs r1, #1 - bl sub_0807BA8C - pop {pc} - .align 2, 0 -_0804F95C: .4byte 0x0000041E - - thumb_func_start sub_0804F960 -sub_0804F960: @ 0x0804F960 - push {lr} - ldr r0, _0804F984 @ =0x0000041F - movs r1, #1 - bl sub_0807BA8C - ldr r0, _0804F988 @ =0x000004E5 - movs r1, #1 - bl sub_0807BA8C - ldr r0, _0804F98C @ =0x0000061F - movs r1, #1 - bl sub_0807BA8C - ldr r0, _0804F990 @ =0x00000559 - movs r1, #1 - bl sub_0807BA8C - pop {pc} - .align 2, 0 -_0804F984: .4byte 0x0000041F -_0804F988: .4byte 0x000004E5 -_0804F98C: .4byte 0x0000061F -_0804F990: .4byte 0x00000559 - - thumb_func_start sub_0804F994 -sub_0804F994: @ 0x0804F994 - push {lr} - movs r0, #0x84 - lsls r0, r0, #3 - movs r1, #1 - bl sub_0807BA8C - ldr r0, _0804F9BC @ =0x00000525 - movs r1, #1 - bl sub_0807BA8C - ldr r0, _0804F9C0 @ =0x0000061E - movs r1, #1 - bl sub_0807BA8C - ldr r0, _0804F9C4 @ =0x00000519 - movs r1, #1 - bl sub_0807BA8C - pop {pc} - .align 2, 0 -_0804F9BC: .4byte 0x00000525 -_0804F9C0: .4byte 0x0000061E -_0804F9C4: .4byte 0x00000519 - - thumb_func_start sub_0804F9C8 -sub_0804F9C8: @ 0x0804F9C8 - push {lr} - ldr r0, _0804F9EC @ =0x00000421 - movs r1, #1 - bl sub_0807BA8C - ldr r0, _0804F9F0 @ =0x00000565 - movs r1, #1 - bl sub_0807BA8C - ldr r0, _0804F9F4 @ =0x0000061D - movs r1, #1 - bl sub_0807BA8C - ldr r0, _0804F9F8 @ =0x000004D9 - movs r1, #1 - bl sub_0807BA8C - pop {pc} - .align 2, 0 -_0804F9EC: .4byte 0x00000421 -_0804F9F0: .4byte 0x00000565 -_0804F9F4: .4byte 0x0000061D -_0804F9F8: .4byte 0x000004D9 - - thumb_func_start sub_0804F9FC -sub_0804F9FC: @ 0x0804F9FC - movs r0, #1 - bx lr - - thumb_func_start sub_0804FA00 -sub_0804FA00: @ 0x0804FA00 - push {lr} - movs r0, #0 - bl sub_0805ADD8 - ldr r0, _0804FA24 @ =gUnk_02002A40 - ldrb r0, [r0, #8] - cmp r0, #3 - bls _0804FA20 - movs r0, #0x5c - bl CheckGlobalFlag - cmp r0, #0 - beq _0804FA20 - ldr r0, _0804FA28 @ =gUnk_080F806C - bl LoadRoomEntityList -_0804FA20: - pop {pc} - .align 2, 0 -_0804FA24: .4byte gUnk_02002A40 -_0804FA28: .4byte gUnk_080F806C - - thumb_func_start sub_0804FA2C -sub_0804FA2C: @ 0x0804FA2C - movs r0, #1 - bx lr - - thumb_func_start sub_0804FA30 -sub_0804FA30: @ 0x0804FA30 - push {lr} - movs r0, #0 - bl sub_0805ADD8 - movs r0, #3 - bl CheckGlobalFlag - cmp r0, #0 - beq _0804FA5C - movs r0, #3 - bl GetInventoryValue - cmp r0, #0 - beq _0804FA5C - movs r0, #0x9c - bl CheckLocalFlag - cmp r0, #0 - bne _0804FA5C - ldr r0, _0804FA60 @ =gUnk_080F82E0 - bl LoadRoomEntityList -_0804FA5C: - pop {pc} - .align 2, 0 -_0804FA60: .4byte gUnk_080F82E0 - - thumb_func_start sub_0804FA64 -sub_0804FA64: @ 0x0804FA64 - movs r0, #1 - bx lr - - thumb_func_start sub_0804FA68 -sub_0804FA68: @ 0x0804FA68 - push {lr} - movs r0, #0 - bl sub_0805ADD8 - movs r0, #0x21 - bl CheckKinstoneFused - cmp r0, #0 - beq _0804FA8E - movs r0, #0x80 - lsls r0, r0, #2 - movs r1, #0x42 - bl CheckLocalFlagByOffset - cmp r0, #0 - bne _0804FA8E - ldr r0, _0804FA90 @ =gUnk_080F8430 - bl LoadRoomEntityList -_0804FA8E: - pop {pc} - .align 2, 0 -_0804FA90: .4byte gUnk_080F8430 - - thumb_func_start sub_0804FA94 -sub_0804FA94: @ 0x0804FA94 - movs r0, #1 - bx lr - - thumb_func_start sub_0804FA98 -sub_0804FA98: @ 0x0804FA98 - push {lr} - movs r0, #0x57 - bl CheckGlobalFlag - cmp r0, #0 - beq _0804FAB0 - ldr r0, _0804FAAC @ =gUnk_080F85D8 - bl LoadRoomEntityList - b _0804FAB6 - .align 2, 0 -_0804FAAC: .4byte gUnk_080F85D8 -_0804FAB0: - ldr r0, _0804FAC8 @ =gUnk_080F85F8 - bl LoadRoomEntityList -_0804FAB6: - movs r0, #0xc - bl GetInventoryValue - cmp r0, #0 - bne _0804FAC6 - movs r0, #8 - bl ClearLocalFlag -_0804FAC6: - pop {pc} - .align 2, 0 -_0804FAC8: .4byte gUnk_080F85F8 - - thumb_func_start sub_0804FACC -sub_0804FACC: @ 0x0804FACC - movs r0, #1 - bx lr - - thumb_func_start nullsub_412 -nullsub_412: @ 0x0804FAD0 - bx lr - .align 2, 0 - - thumb_func_start sub_0804FAD4 -sub_0804FAD4: @ 0x0804FAD4 - movs r0, #1 - bx lr - - thumb_func_start nullsub_413 -nullsub_413: @ 0x0804FAD8 - bx lr - .align 2, 0 - - thumb_func_start sub_0804FADC -sub_0804FADC: @ 0x0804FADC - movs r0, #1 - bx lr - - thumb_func_start nullsub_414 -nullsub_414: @ 0x0804FAE0 - bx lr - .align 2, 0 - - thumb_func_start sub_0804FAE4 -sub_0804FAE4: @ 0x0804FAE4 - movs r0, #1 - bx lr - - thumb_func_start nullsub_415 -nullsub_415: @ 0x0804FAE8 - bx lr - .align 2, 0 - - thumb_func_start sub_0804FAEC -sub_0804FAEC: @ 0x0804FAEC - movs r0, #1 - bx lr - - thumb_func_start nullsub_416 -nullsub_416: @ 0x0804FAF0 - bx lr - .align 2, 0 - - thumb_func_start sub_0804FAF4 -sub_0804FAF4: @ 0x0804FAF4 - movs r0, #1 - bx lr - - thumb_func_start nullsub_417 -nullsub_417: @ 0x0804FAF8 - bx lr - .align 2, 0 - - thumb_func_start sub_0804FAFC -sub_0804FAFC: @ 0x0804FAFC - movs r0, #1 - bx lr - - thumb_func_start nullsub_418 -nullsub_418: @ 0x0804FB00 - bx lr - .align 2, 0 - - thumb_func_start sub_0804FB04 -sub_0804FB04: @ 0x0804FB04 - movs r0, #1 - bx lr - - thumb_func_start nullsub_419 -nullsub_419: @ 0x0804FB08 - bx lr - .align 2, 0 - - thumb_func_start sub_0804FB0C -sub_0804FB0C: @ 0x0804FB0C - movs r0, #1 - bx lr - - thumb_func_start nullsub_420 -nullsub_420: @ 0x0804FB10 - bx lr - .align 2, 0 - - thumb_func_start sub_0804FB14 -sub_0804FB14: @ 0x0804FB14 - movs r0, #1 - bx lr - - thumb_func_start nullsub_421 -nullsub_421: @ 0x0804FB18 - bx lr - .align 2, 0 - - thumb_func_start sub_0804FB1C -sub_0804FB1C: @ 0x0804FB1C - movs r0, #1 - bx lr - - thumb_func_start nullsub_422 -nullsub_422: @ 0x0804FB20 - bx lr - .align 2, 0 - - thumb_func_start sub_0804FB24 -sub_0804FB24: @ 0x0804FB24 - movs r0, #1 - bx lr - - thumb_func_start nullsub_423 -nullsub_423: @ 0x0804FB28 - bx lr - .align 2, 0 - - thumb_func_start sub_0804FB2C -sub_0804FB2C: @ 0x0804FB2C - movs r0, #1 - bx lr - - thumb_func_start sub_0804FB30 -sub_0804FB30: @ 0x0804FB30 - push {lr} - movs r0, #0x11 - bl CheckLocalFlag - cmp r0, #0 - beq _0804FB64 - movs r0, #0 - bl SetRoomFlag - movs r0, #1 - bl SetRoomFlag - movs r0, #0x80 - lsls r0, r0, #1 - bl sub_0805308C - movs r0, #0x12 - bl CheckLocalFlag - cmp r0, #0 - bne _0804FB64 - movs r0, #0x73 - movs r1, #0xcb - movs r2, #1 - bl SetTileType -_0804FB64: - pop {pc} - .align 2, 0 - - thumb_func_start sub_0804FB68 -sub_0804FB68: @ 0x0804FB68 - movs r0, #1 - bx lr - - thumb_func_start nullsub_089 -nullsub_089: @ 0x0804FB6C - bx lr - .align 2, 0 - - thumb_func_start sub_0804FB70 -sub_0804FB70: @ 0x0804FB70 - movs r0, #1 - bx lr - - thumb_func_start nullsub_90 -nullsub_90: @ 0x0804FB74 - bx lr - .align 2, 0 - - thumb_func_start sub_0804FB78 -sub_0804FB78: @ 0x0804FB78 - movs r0, #1 - bx lr - - thumb_func_start nullsub_91 -nullsub_91: @ 0x0804FB7C - bx lr - .align 2, 0 - - thumb_func_start sub_0804FB80 -sub_0804FB80: @ 0x0804FB80 - movs r0, #1 - bx lr - - thumb_func_start nullsub_92 -nullsub_92: @ 0x0804FB84 - bx lr - .align 2, 0 - - thumb_func_start sub_0804FB88 -sub_0804FB88: @ 0x0804FB88 - movs r0, #1 - bx lr - - thumb_func_start nullsub_93 -nullsub_93: @ 0x0804FB8C - bx lr - .align 2, 0 - - thumb_func_start sub_0804FB90 -sub_0804FB90: @ 0x0804FB90 - movs r0, #1 - bx lr - - thumb_func_start nullsub_94 -nullsub_94: @ 0x0804FB94 - bx lr - .align 2, 0 - - thumb_func_start sub_0804FB98 -sub_0804FB98: @ 0x0804FB98 - movs r0, #1 - bx lr - - thumb_func_start nullsub_95 -nullsub_95: @ 0x0804FB9C - bx lr - .align 2, 0 - - thumb_func_start sub_0804FBA0 -sub_0804FBA0: @ 0x0804FBA0 - movs r0, #1 - bx lr - - thumb_func_start nullsub_96 -nullsub_96: @ 0x0804FBA4 - bx lr - .align 2, 0 - - thumb_func_start sub_0804FBA8 -sub_0804FBA8: @ 0x0804FBA8 - movs r0, #1 - bx lr - - thumb_func_start nullsub_97 -nullsub_97: @ 0x0804FBAC - bx lr - .align 2, 0 - - thumb_func_start sub_0804FBB0 -sub_0804FBB0: @ 0x0804FBB0 - movs r0, #1 - bx lr - - thumb_func_start nullsub_98 -nullsub_98: @ 0x0804FBB4 - bx lr - .align 2, 0 - - thumb_func_start sub_0804FBB8 -sub_0804FBB8: @ 0x0804FBB8 - movs r0, #1 - bx lr - - thumb_func_start sub_0804FBBC -sub_0804FBBC: @ 0x0804FBBC - push {lr} - ldr r0, _0804FBD4 @ =gUnk_02002A40 - ldr r0, [r0, #0x40] - movs r1, #0x80 - lsls r1, r1, #0x12 - ands r0, r1 - cmp r0, #0 - bne _0804FBD2 - ldr r0, _0804FBD8 @ =gUnk_080F9304 - bl LoadRoomEntityList -_0804FBD2: - pop {pc} - .align 2, 0 -_0804FBD4: .4byte gUnk_02002A40 -_0804FBD8: .4byte gUnk_080F9304 - - thumb_func_start sub_0804FBDC -sub_0804FBDC: @ 0x0804FBDC - push {lr} - ldr r0, _0804FBF4 @ =gUnk_02002A40 - ldr r0, [r0, #0x40] - movs r1, #0x80 - lsls r1, r1, #0x12 - ands r0, r1 - cmp r0, #0 - bne _0804FBF2 - ldr r0, _0804FBF8 @ =gUnk_080F9304 - bl LoadRoomEntityList -_0804FBF2: - pop {pc} - .align 2, 0 -_0804FBF4: .4byte gUnk_02002A40 -_0804FBF8: .4byte gUnk_080F9304 - - thumb_func_start sub_0804FBFC -sub_0804FBFC: @ 0x0804FBFC - movs r0, #1 - bx lr - - thumb_func_start nullsub_424 -nullsub_424: @ 0x0804FC00 - bx lr - .align 2, 0 - - thumb_func_start sub_0804FC04 -sub_0804FC04: @ 0x0804FC04 - movs r0, #1 - bx lr - - thumb_func_start nullsub_425 -nullsub_425: @ 0x0804FC08 - bx lr - .align 2, 0 - - thumb_func_start sub_0804FC0C -sub_0804FC0C: @ 0x0804FC0C - movs r0, #1 - bx lr - - thumb_func_start nullsub_426 -nullsub_426: @ 0x0804FC10 - bx lr - .align 2, 0 - - thumb_func_start sub_0804FC14 -sub_0804FC14: @ 0x0804FC14 - movs r0, #1 - bx lr - - thumb_func_start nullsub_427 -nullsub_427: @ 0x0804FC18 - bx lr - .align 2, 0 - - thumb_func_start sub_0804FC1C -sub_0804FC1C: @ 0x0804FC1C - movs r0, #1 - bx lr - - thumb_func_start nullsub_428 -nullsub_428: @ 0x0804FC20 - bx lr - .align 2, 0 - - thumb_func_start sub_0804FC24 -sub_0804FC24: @ 0x0804FC24 - movs r0, #1 - bx lr - - thumb_func_start nullsub_429 -nullsub_429: @ 0x0804FC28 - bx lr - .align 2, 0 - - thumb_func_start sub_0804FC2C -sub_0804FC2C: @ 0x0804FC2C - movs r0, #1 - bx lr - - thumb_func_start nullsub_430 -nullsub_430: @ 0x0804FC30 - bx lr - .align 2, 0 - - thumb_func_start sub_0804FC34 -sub_0804FC34: @ 0x0804FC34 - movs r0, #1 - bx lr - - thumb_func_start nullsub_431 -nullsub_431: @ 0x0804FC38 - bx lr - .align 2, 0 - - thumb_func_start sub_0804FC3C -sub_0804FC3C: @ 0x0804FC3C - movs r0, #1 - bx lr - - thumb_func_start nullsub_432 -nullsub_432: @ 0x0804FC40 - bx lr - .align 2, 0 - - thumb_func_start sub_0804FC44 -sub_0804FC44: @ 0x0804FC44 - movs r0, #1 - bx lr - - thumb_func_start nullsub_433 -nullsub_433: @ 0x0804FC48 - bx lr - .align 2, 0 - - thumb_func_start sub_0804FC4C -sub_0804FC4C: @ 0x0804FC4C - push {lr} - movs r0, #0xe - bl CheckKinstoneFused - cmp r0, #0 - bne _0804FC5E - ldr r1, _0804FC64 @ =gRoomVars - ldr r0, _0804FC68 @ =gUnk_080F9BF8 - str r0, [r1, #0x6c] -_0804FC5E: - movs r0, #1 - pop {pc} - .align 2, 0 -_0804FC64: .4byte gRoomVars -_0804FC68: .4byte gUnk_080F9BF8 - - thumb_func_start sub_0804FC6C -sub_0804FC6C: @ 0x0804FC6C - push {lr} - movs r0, #2 - bl sub_0805B4D0 - movs r0, #0 - bl sub_0806D0B0 - pop {pc} - - thumb_func_start sub_0804FC7C -sub_0804FC7C: @ 0x0804FC7C - movs r0, #1 - bx lr - - thumb_func_start nullsub_99 -nullsub_99: @ 0x0804FC80 - bx lr - .align 2, 0 - - thumb_func_start sub_0804FC84 -sub_0804FC84: @ 0x0804FC84 - movs r0, #1 - bx lr - - thumb_func_start nullsub_100 -nullsub_100: @ 0x0804FC88 - bx lr - .align 2, 0 - - thumb_func_start sub_0804FC8C -sub_0804FC8C: @ 0x0804FC8C - movs r0, #1 - bx lr - - thumb_func_start nullsub_101 -nullsub_101: @ 0x0804FC90 - bx lr - .align 2, 0 - - thumb_func_start sub_0804FC94 -sub_0804FC94: @ 0x0804FC94 - movs r0, #1 - bx lr - - thumb_func_start nullsub_102 -nullsub_102: @ 0x0804FC98 - bx lr - .align 2, 0 - - thumb_func_start sub_0804FC9C -sub_0804FC9C: @ 0x0804FC9C - movs r0, #1 - bx lr - - thumb_func_start nullsub_103 -nullsub_103: @ 0x0804FCA0 - bx lr - .align 2, 0 - - thumb_func_start sub_0804FCA4 -sub_0804FCA4: @ 0x0804FCA4 - movs r0, #1 - bx lr - - thumb_func_start sub_0804FCA8 -sub_0804FCA8: @ 0x0804FCA8 - push {lr} - movs r0, #0x14 - bl CheckKinstoneFused - cmp r0, #0 - beq _0804FCBA - ldr r0, _0804FCCC @ =gUnk_080F9FA8 - bl LoadRoomEntityList -_0804FCBA: - movs r0, #0x38 - bl GetInventoryValue - cmp r0, #0 - bne _0804FCCA - ldr r0, _0804FCD0 @ =gUnk_080F9F88 - bl LoadRoomEntityList -_0804FCCA: - pop {pc} - .align 2, 0 -_0804FCCC: .4byte gUnk_080F9FA8 -_0804FCD0: .4byte gUnk_080F9F88 - - thumb_func_start sub_0804FCD4 -sub_0804FCD4: @ 0x0804FCD4 - movs r0, #1 - bx lr - - thumb_func_start nullsub_434 -nullsub_434: @ 0x0804FCD8 - bx lr - .align 2, 0 - - thumb_func_start sub_0804FCDC -sub_0804FCDC: @ 0x0804FCDC - movs r0, #1 - bx lr - - thumb_func_start nullsub_435 -nullsub_435: @ 0x0804FCE0 - bx lr - .align 2, 0 - - thumb_func_start sub_0804FCE4 -sub_0804FCE4: @ 0x0804FCE4 - movs r0, #1 - bx lr - - thumb_func_start nullsub_436 -nullsub_436: @ 0x0804FCE8 - bx lr - .align 2, 0 - - thumb_func_start sub_0804FCEC -sub_0804FCEC: @ 0x0804FCEC - movs r0, #1 - bx lr - - thumb_func_start nullsub_437 -nullsub_437: @ 0x0804FCF0 - bx lr - .align 2, 0 - - thumb_func_start sub_0804FCF4 -sub_0804FCF4: @ 0x0804FCF4 - movs r0, #1 - bx lr - - thumb_func_start nullsub_438 -nullsub_438: @ 0x0804FCF8 - bx lr - .align 2, 0 - - thumb_func_start sub_0804FCFC -sub_0804FCFC: @ 0x0804FCFC - movs r0, #1 - bx lr - - thumb_func_start nullsub_439 -nullsub_439: @ 0x0804FD00 - bx lr - .align 2, 0 - - thumb_func_start sub_0804FD04 -sub_0804FD04: @ 0x0804FD04 - movs r0, #1 - bx lr - - thumb_func_start nullsub_440 -nullsub_440: @ 0x0804FD08 - bx lr - .align 2, 0 - - thumb_func_start sub_0804FD0C -sub_0804FD0C: @ 0x0804FD0C - movs r0, #1 - bx lr - - thumb_func_start nullsub_441 -nullsub_441: @ 0x0804FD10 - bx lr - .align 2, 0 - - thumb_func_start sub_0804FD14 -sub_0804FD14: @ 0x0804FD14 - movs r0, #1 - bx lr - - thumb_func_start nullsub_442 -nullsub_442: @ 0x0804FD18 - bx lr - .align 2, 0 - - thumb_func_start sub_0804FD1C -sub_0804FD1C: @ 0x0804FD1C - movs r0, #1 - bx lr - - thumb_func_start nullsub_443 -nullsub_443: @ 0x0804FD20 - bx lr - .align 2, 0 - - thumb_func_start sub_0804FD24 -sub_0804FD24: @ 0x0804FD24 - movs r0, #1 - bx lr - - thumb_func_start nullsub_444 -nullsub_444: @ 0x0804FD28 - bx lr - .align 2, 0 - - thumb_func_start sub_0804FD2C -sub_0804FD2C: @ 0x0804FD2C - movs r0, #1 - bx lr - - thumb_func_start nullsub_445 -nullsub_445: @ 0x0804FD30 - bx lr - .align 2, 0 - - thumb_func_start sub_0804FD34 -sub_0804FD34: @ 0x0804FD34 - movs r0, #1 - bx lr - - thumb_func_start nullsub_446 -nullsub_446: @ 0x0804FD38 - bx lr - .align 2, 0 - - thumb_func_start sub_0804FD3C -sub_0804FD3C: @ 0x0804FD3C - movs r0, #1 - bx lr - - thumb_func_start nullsub_447 -nullsub_447: @ 0x0804FD40 - bx lr - .align 2, 0 - - thumb_func_start sub_0804FD44 -sub_0804FD44: @ 0x0804FD44 - movs r0, #1 - bx lr - - thumb_func_start nullsub_448 -nullsub_448: @ 0x0804FD48 - bx lr - .align 2, 0 - - thumb_func_start sub_0804FD4C -sub_0804FD4C: @ 0x0804FD4C - movs r0, #1 - bx lr - - thumb_func_start nullsub_449 -nullsub_449: @ 0x0804FD50 - bx lr - .align 2, 0 - - thumb_func_start sub_0804FD54 -sub_0804FD54: @ 0x0804FD54 - movs r0, #1 - bx lr - - thumb_func_start sub_0804FD58 -sub_0804FD58: @ 0x0804FD58 - push {lr} - movs r0, #0x21 - bl CheckKinstoneFused - cmp r0, #0 - bne _0804FD6A - ldr r0, _0804FD6C @ =gUnk_080FA5D0 - bl LoadRoomEntityList -_0804FD6A: - pop {pc} - .align 2, 0 -_0804FD6C: .4byte gUnk_080FA5D0 - - thumb_func_start sub_0804FD70 -sub_0804FD70: @ 0x0804FD70 - movs r0, #1 - bx lr - - thumb_func_start nullsub_450 -nullsub_450: @ 0x0804FD74 - bx lr - .align 2, 0 - - thumb_func_start sub_0804FD78 -sub_0804FD78: @ 0x0804FD78 - movs r0, #1 - bx lr - - thumb_func_start nullsub_451 -nullsub_451: @ 0x0804FD7C - bx lr - .align 2, 0 - - thumb_func_start sub_0804FD80 -sub_0804FD80: @ 0x0804FD80 - movs r0, #1 - bx lr - - thumb_func_start nullsub_452 -nullsub_452: @ 0x0804FD84 - bx lr - .align 2, 0 - - thumb_func_start sub_0804FD88 -sub_0804FD88: @ 0x0804FD88 - movs r0, #1 - bx lr - - thumb_func_start nullsub_453 -nullsub_453: @ 0x0804FD8C - bx lr - .align 2, 0 - - thumb_func_start sub_0804FD90 -sub_0804FD90: @ 0x0804FD90 - movs r0, #1 - bx lr - - thumb_func_start nullsub_454 -nullsub_454: @ 0x0804FD94 - bx lr - .align 2, 0 - - thumb_func_start sub_0804FD98 -sub_0804FD98: @ 0x0804FD98 - movs r0, #1 - bx lr - - thumb_func_start nullsub_455 -nullsub_455: @ 0x0804FD9C - bx lr - .align 2, 0 - - thumb_func_start sub_0804FDA0 -sub_0804FDA0: @ 0x0804FDA0 - movs r0, #1 - bx lr - - thumb_func_start nullsub_456 -nullsub_456: @ 0x0804FDA4 - bx lr - .align 2, 0 - - thumb_func_start sub_0804FDA8 -sub_0804FDA8: @ 0x0804FDA8 - movs r0, #1 - bx lr - - thumb_func_start nullsub_457 -nullsub_457: @ 0x0804FDAC - bx lr - .align 2, 0 - - thumb_func_start sub_0804FDB0 -sub_0804FDB0: @ 0x0804FDB0 - movs r0, #1 - bx lr - - thumb_func_start nullsub_458 -nullsub_458: @ 0x0804FDB4 - bx lr - .align 2, 0 - - thumb_func_start sub_0804FDB8 -sub_0804FDB8: @ 0x0804FDB8 - movs r0, #1 - bx lr - - thumb_func_start nullsub_459 -nullsub_459: @ 0x0804FDBC - bx lr - .align 2, 0 - - thumb_func_start sub_0804FDC0 -sub_0804FDC0: @ 0x0804FDC0 - movs r0, #1 - bx lr - - thumb_func_start nullsub_460 -nullsub_460: @ 0x0804FDC4 - bx lr - .align 2, 0 - - thumb_func_start sub_0804FDC8 -sub_0804FDC8: @ 0x0804FDC8 - movs r0, #1 - bx lr - - thumb_func_start nullsub_461 -nullsub_461: @ 0x0804FDCC - bx lr - .align 2, 0 - - thumb_func_start sub_0804FDD0 -sub_0804FDD0: @ 0x0804FDD0 - movs r0, #1 - bx lr - - thumb_func_start nullsub_462 -nullsub_462: @ 0x0804FDD4 - bx lr - .align 2, 0 - - thumb_func_start sub_0804FDD8 -sub_0804FDD8: @ 0x0804FDD8 - movs r0, #1 - bx lr - - thumb_func_start nullsub_463 -nullsub_463: @ 0x0804FDDC - bx lr - .align 2, 0 - - thumb_func_start sub_0804FDE0 -sub_0804FDE0: @ 0x0804FDE0 - push {lr} - movs r0, #0x51 - bl CheckGlobalFlag - cmp r0, #0 - beq _0804FDF6 - ldr r0, _0804FDFC @ =gRoomVars - ldr r1, _0804FE00 @ =gUnk_080FAD48 - str r1, [r0, #0x6c] - movs r1, #0 - str r1, [r0, #0x74] -_0804FDF6: - movs r0, #1 - pop {pc} - .align 2, 0 -_0804FDFC: .4byte gRoomVars -_0804FE00: .4byte gUnk_080FAD48 - - thumb_func_start sub_0804FE04 -sub_0804FE04: @ 0x0804FE04 - push {lr} - movs r0, #0x51 - bl CheckGlobalFlag - cmp r0, #0 - beq _0804FE28 - ldr r0, _0804FE20 @ =gArea - ldr r2, _0804FE24 @ =0x00000864 - adds r1, r0, r2 - subs r2, #4 - adds r0, r0, r2 - ldr r0, [r0] - str r0, [r1] - b _0804FE2E - .align 2, 0 -_0804FE20: .4byte gArea -_0804FE24: .4byte 0x00000864 -_0804FE28: - ldr r0, _0804FE3C @ =gUnk_080FACB8 - bl LoadRoomEntityList -_0804FE2E: - movs r0, #0 - bl sub_0805B4D0 - bl sub_08059994 - pop {pc} - .align 2, 0 -_0804FE3C: .4byte gUnk_080FACB8 - - thumb_func_start sub_0804FE40 -sub_0804FE40: @ 0x0804FE40 - push {lr} - movs r0, #0 - bl sub_0805B4D0 - pop {pc} - .align 2, 0 - - thumb_func_start sub_0804FE4C -sub_0804FE4C: @ 0x0804FE4C - movs r0, #1 - bx lr - - thumb_func_start nullsub_104 -nullsub_104: @ 0x0804FE50 - bx lr - .align 2, 0 - - thumb_func_start sub_0804FE54 -sub_0804FE54: @ 0x0804FE54 - movs r0, #1 - bx lr - - thumb_func_start sub_0804FE58 -sub_0804FE58: @ 0x0804FE58 - push {lr} - movs r0, #1 - bl sub_0805B4D0 - movs r0, #3 - bl CheckGlobalFlag - cmp r0, #0 - beq _0804FE7A - movs r0, #2 - bl CheckLocalFlag - cmp r0, #0 - bne _0804FE7A - ldr r0, _0804FEA0 @ =gUnk_080FAFE4 - bl LoadRoomEntityList -_0804FE7A: - ldr r0, _0804FEA4 @ =gUnk_02002A40 - ldr r0, [r0, #0x40] - movs r1, #0x80 - lsls r1, r1, #0x11 - ands r0, r1 - cmp r0, #0 - bne _0804FE8E - ldr r0, _0804FEA8 @ =gUnk_080FB004 - bl LoadRoomEntityList -_0804FE8E: - movs r0, #2 - bl GetInventoryValue - cmp r0, #0 - beq _0804FE9E - movs r0, #0x56 - bl SetGlobalFlag -_0804FE9E: - pop {pc} - .align 2, 0 -_0804FEA0: .4byte gUnk_080FAFE4 -_0804FEA4: .4byte gUnk_02002A40 -_0804FEA8: .4byte gUnk_080FB004 - - thumb_func_start sub_0804FEAC -sub_0804FEAC: @ 0x0804FEAC - push {lr} - ldr r0, _0804FEC4 @ =gUnk_02002A40 - ldr r0, [r0, #0x40] - movs r1, #0x80 - lsls r1, r1, #0x11 - ands r0, r1 - cmp r0, #0 - bne _0804FEC2 - ldr r0, _0804FEC8 @ =gUnk_080FB004 - bl LoadRoomEntityList -_0804FEC2: - pop {pc} - .align 2, 0 -_0804FEC4: .4byte gUnk_02002A40 -_0804FEC8: .4byte gUnk_080FB004 - - thumb_func_start sub_0804FECC -sub_0804FECC: @ 0x0804FECC - movs r0, #1 - bx lr - - thumb_func_start nullsub_464 -nullsub_464: @ 0x0804FED0 - bx lr - .align 2, 0 - - thumb_func_start sub_0804FED4 -sub_0804FED4: @ 0x0804FED4 - movs r0, #1 - bx lr - - thumb_func_start sub_0804FED8 -sub_0804FED8: @ 0x0804FED8 - push {lr} - movs r0, #0xbb - lsls r0, r0, #1 - ldr r1, _0804FEE8 @ =0x0000066F - movs r2, #1 - bl SetTileType - pop {pc} - .align 2, 0 -_0804FEE8: .4byte 0x0000066F - - thumb_func_start sub_0804FEEC -sub_0804FEEC: @ 0x0804FEEC - movs r0, #1 - bx lr - - thumb_func_start nullsub_465 -nullsub_465: @ 0x0804FEF0 - bx lr - .align 2, 0 - - thumb_func_start sub_0804FEF4 -sub_0804FEF4: @ 0x0804FEF4 - movs r0, #1 - bx lr - - thumb_func_start nullsub_466 -nullsub_466: @ 0x0804FEF8 - bx lr - .align 2, 0 - - thumb_func_start sub_0804FEFC -sub_0804FEFC: @ 0x0804FEFC - movs r0, #1 - bx lr - - thumb_func_start nullsub_467 -nullsub_467: @ 0x0804FF00 - bx lr - .align 2, 0 - - thumb_func_start sub_0804FF04 -sub_0804FF04: @ 0x0804FF04 - movs r0, #1 - bx lr - - thumb_func_start nullsub_468 -nullsub_468: @ 0x0804FF08 - bx lr - .align 2, 0 - - thumb_func_start sub_0804FF0C -sub_0804FF0C: @ 0x0804FF0C - movs r0, #1 - bx lr - - thumb_func_start nullsub_469 -nullsub_469: @ 0x0804FF10 - bx lr - .align 2, 0 - - thumb_func_start sub_0804FF14 -sub_0804FF14: @ 0x0804FF14 - movs r0, #1 - bx lr - - thumb_func_start nullsub_470 -nullsub_470: @ 0x0804FF18 - bx lr - .align 2, 0 - - thumb_func_start sub_0804FF1C -sub_0804FF1C: @ 0x0804FF1C - movs r0, #1 - bx lr - - thumb_func_start nullsub_471 -nullsub_471: @ 0x0804FF20 - bx lr - .align 2, 0 - - thumb_func_start sub_0804FF24 -sub_0804FF24: @ 0x0804FF24 - movs r0, #1 - bx lr - - thumb_func_start nullsub_472 -nullsub_472: @ 0x0804FF28 - bx lr - .align 2, 0 - - thumb_func_start sub_0804FF2C -sub_0804FF2C: @ 0x0804FF2C - movs r0, #1 - bx lr - - thumb_func_start nullsub_473 -nullsub_473: @ 0x0804FF30 - bx lr - .align 2, 0 - - thumb_func_start sub_0804FF34 -sub_0804FF34: @ 0x0804FF34 - movs r0, #1 - bx lr - - thumb_func_start nullsub_474 -nullsub_474: @ 0x0804FF38 - bx lr - .align 2, 0 - - thumb_func_start sub_0804FF3C -sub_0804FF3C: @ 0x0804FF3C - movs r0, #1 - bx lr - - thumb_func_start nullsub_475 -nullsub_475: @ 0x0804FF40 - bx lr - .align 2, 0 - - thumb_func_start sub_0804FF44 -sub_0804FF44: @ 0x0804FF44 - movs r0, #1 - bx lr - - thumb_func_start nullsub_476 -nullsub_476: @ 0x0804FF48 - bx lr - .align 2, 0 - - thumb_func_start sub_0804FF4C -sub_0804FF4C: @ 0x0804FF4C - movs r0, #1 - bx lr - - thumb_func_start nullsub_477 -nullsub_477: @ 0x0804FF50 - bx lr - .align 2, 0 - - thumb_func_start sub_0804FF54 -sub_0804FF54: @ 0x0804FF54 - movs r0, #1 - bx lr - - thumb_func_start nullsub_478 -nullsub_478: @ 0x0804FF58 - bx lr - .align 2, 0 - - thumb_func_start sub_0804FF5C -sub_0804FF5C: @ 0x0804FF5C - movs r0, #1 - bx lr - - thumb_func_start sub_0804FF60 -sub_0804FF60: @ 0x0804FF60 - push {lr} - movs r0, #0x70 - bl CheckLocalFlag - cmp r0, #0 - bne _0804FF72 - movs r0, #0x70 - bl SetLocalFlag -_0804FF72: - pop {pc} - - thumb_func_start sub_0804FF74 -sub_0804FF74: @ 0x0804FF74 - movs r0, #1 - bx lr - - thumb_func_start nullsub_105 -nullsub_105: @ 0x0804FF78 - bx lr - .align 2, 0 - - thumb_func_start sub_0804FF7C -sub_0804FF7C: @ 0x0804FF7C - movs r0, #1 - bx lr - - thumb_func_start nullsub_106 -nullsub_106: @ 0x0804FF80 - bx lr - .align 2, 0 - - thumb_func_start sub_0804FF84 -sub_0804FF84: @ 0x0804FF84 - movs r1, #0x80 - lsls r1, r1, #0x12 - strb r0, [r1, #6] - ldr r1, _0804FF94 @ =gUnk_0200B644 - movs r0, #1 - rsbs r0, r0, #0 - str r0, [r1] - bx lr - .align 2, 0 -_0804FF94: .4byte gUnk_0200B644 - thumb_func_start sub_0804FF98 sub_0804FF98: @ 0x0804FF98 push {r4, r5, r6, r7, lr} diff --git a/include/functions.h b/include/functions.h index 2c4d9264..36aa73c7 100644 --- a/include/functions.h +++ b/include/functions.h @@ -153,4 +153,10 @@ extern void sub_0804E150(void); extern void sub_080AF284(void); extern void sub_080A71C4(u32, u32, u32, u32); extern void sub_08054564(); +extern void sub_0801DD58(u32, u32); +extern void sub_0804ED18(); +extern void sub_080AF2E4(void); +extern void sub_0805ADD8(u32); +extern void sub_0804F578(void); +extern void sub_08059994(void); #endif diff --git a/src/room.c b/src/room.c index 54c7b3d5..4f2a658b 100644 --- a/src/room.c +++ b/src/room.c @@ -33,6 +33,8 @@ typedef struct { u8 field_0x8; u8 field_0x9[0x34]; u32 windcrests; + u8 field_0x44[0x64]; + Stats stats; } struct_02002A40; typedef struct { @@ -5004,4 +5006,1602 @@ u32 sub_0804EB4C() { return 1; } -void nullsub_390() {} \ No newline at end of file +void nullsub_390() {} + +u32 sub_0804EB54(void) +{ + gArea.areaMetadata |= 0x48; + return 1; +} + +void nullsub_391() {} + +u32 sub_0804EB6C(void) +{ + gArea.areaMetadata |= 0x48; + return 1; +} + +void nullsub_392() {} + +u32 sub_0804EB84(void) +{ + gArea.areaMetadata |= 0x48; + return 1; +} + +void nullsub_393() {} + +u32 sub_0804EB9C(void) +{ + sub_0801DD58(0x58, 5); + gArea.areaMetadata |= 0x48; + return 1; +} + +void nullsub_394() {} + +u32 sub_0804EBBC(void) +{ + sub_0801DD58(0x58, 6); + gArea.areaMetadata |= 0x48; + return 1; +} + +void nullsub_395() {} + +extern u32 gUnk_080F4EB0; + +u32 sub_0804EBDC(void) +{ + if (CheckGlobalFlag(0x51)) { + gRoomVars.field_0x6c = &gUnk_080F4EB0; + gRoomVars.field_0x74 = NULL; + } + return 1; +} + +extern EntityData gUnk_080F4D50; +extern EntityData gUnk_080F4DB0; +extern EntityData gUnk_080F4DD0; +extern EntityData gUnk_080F4DF0; +extern EntityData gUnk_080F4F10; +extern EntityData gUnk_080F4E10; + +void sub_0804EC00(void) +{ + if (CheckGlobalFlag(0x51)) { + gArea.pMusicIndex = gArea.musicIndex; + } + if (!CheckGlobalFlag(0x14)) { + LoadRoomEntityList(&gUnk_080F4D50); + } + if (!CheckLocalFlag(0x3e)) { + if (!CheckLocalFlag(0x3b)) { + LoadRoomEntityList(&gUnk_080F4DB0); + } + else { + LoadRoomEntityList(&gUnk_080F4DD0); + } + LoadRoomEntityList(&gUnk_080F4DF0); + } + if (CheckKinstoneFused(0x4e)) { + LoadRoomEntityList(&gUnk_080F4F10); + } + if ((s32)gUnk_02002A40.windcrests > -1) { + LoadRoomEntityList(&gUnk_080F4E10); + } +} + +extern EntityData gUnk_080F4E10; + +void sub_0804EC98(void) +{ + if ((s32)gUnk_02002A40.windcrests > -1) { + LoadRoomEntityList(&gUnk_080F4E10); + } +} + +u32 sub_0804ECB4() { + return 1; +} + +void nullsub_396() {} + +extern u32 gUnk_080F5348; + +u32 sub_0804ECBC(void) +{ + if (CheckGlobalFlag(0x51)) { + gRoomVars.field_0x6c = &gUnk_080F5348; + gRoomVars.field_0x88 = sub_0804ED18; + gRoomVars.field_0x74 = NULL; + } + return 1; +} + +extern EntityData gUnk_080F5328; +extern EntityData gUnk_080F5308; + +void sub_0804ECEC(void) +{ + // white sword + if (GetInventoryValue(0x2)) { + LoadRoomEntityList(&gUnk_080F5328); + if (!CheckLocalFlag(0x14)) { + LoadRoomEntityList(&gUnk_080F5308); + } + } +} + +void sub_0804ED18(void) +{ + gArea.pMusicIndex = gArea.musicIndex; +} + +u32 sub_0804ED30() { + return 1; +} + +void sub_0804ED34(void) +{ + sub_080AF2E4(); + if (CheckGlobalFlag(0x5d)) { + gArea.pMusicIndex = 0x31; + } +} + +u32 sub_0804ED58() { + return 1; +} + +extern EntityData gUnk_080F54E8; +extern EntityData gUnk_080F5508; +extern EntityData gUnk_080F5558; +extern EntityData gUnk_080F5598; +extern EntityData gUnk_080F55D8; +extern EntityData gUnk_080F5528; +extern EntityData gUnk_080F5578; +extern EntityData gUnk_080F55B8; + +void sub_0804ED5C(void) +{ + if (!CheckLocalFlag(0x79)) { + LoadRoomEntityList(&gUnk_080F54E8); + } + if (!CheckLocalFlag(0x7a)) { + // white sword, white sword 2, earth element, fire element + if (GetInventoryValue(0x2) && !GetInventoryValue(0x3) && + GetInventoryValue(0x40) && GetInventoryValue(0x41)) { + LoadRoomEntityList(&gUnk_080F5508); + } + } + else { + if (!CheckLocalFlag(0x7b)) { + if (GetInventoryValue(0x3) && !GetInventoryValue(0x4) && + GetInventoryValue(0x42)) { + LoadRoomEntityList(&gUnk_080F5558); + } + } + else { + if (!CheckLocalFlag(0x7c)) { + if (!GetInventoryValue(0x6) && GetInventoryValue(0x43)) { + LoadRoomEntityList(&gUnk_080F5598); + } + } + else { + LoadRoomEntityList(&gUnk_080F55D8); + } + } + } + if (CheckLocalFlag(0x7a)) { + LoadRoomEntityList(&gUnk_080F5528); + } + if (CheckLocalFlag(0x7b)) { + LoadRoomEntityList(&gUnk_080F5578); + } + if (CheckLocalFlag(0x7c)) { + LoadRoomEntityList(&gUnk_080F55B8); + } + if (CheckGlobalFlag(0x5d)) { + gArea.pMusicIndex = 0x31; + } +} + +u32 sub_0804EE74() { + return 1; +} + +extern EntityData gUnk_080F5660; + +void sub_0804EE78(void) +{ + if (!CheckLocalFlag(0x78) && CheckLocalFlag(0x7c)) { + LoadRoomEntityList(&gUnk_080F5660); + } + if (CheckGlobalFlag(0x5d)) { + gArea.pMusicIndex = 0x31; + } +} + +u32 sub_0804EEB8() { + return 1; +} + +extern EntityData gUnk_080F5758; +extern EntityData gUnk_080F57E8; +extern EntityData gUnk_080F57A8; +extern EntityData gUnk_080F57C8; +extern EntityData gUnk_080F5888; +extern EntityData gUnk_080F58A8; +extern EntityData gUnk_080F5868; +extern EntityData gUnk_080F5828; +extern EntityData gUnk_080F5848; +extern EntityData gUnk_080F5788; + +extern u8 gBombBagSizes[]; + +void sub_0804EEBC(void) +{ + LoadRoomEntityList(&gUnk_080F5758); + if (!GetInventoryValue(0x36) && CheckLocalFlagByOffset(0x200, 0x8f)) { + LoadRoomEntityList(&gUnk_080F57E8); + } + if (!CheckLocalFlag(0x55)) { + LoadRoomEntityList(&gUnk_080F57A8); + } + else { + if (gBombBagSizes[gUnk_02002A40.stats.bombBagType] > 0x1d) { + LoadRoomEntityList(&gUnk_080F57C8); + } + if (!GetInventoryValue(0xb) && !GetInventoryValue(0xc)) { + LoadRoomEntityList(&gUnk_080F5888); + } + else { + if (!CheckLocalFlag(0xcd)) { + LoadRoomEntityList(&gUnk_080F58A8); + } + } + } + if (GetInventoryValue(0x9) || CheckGlobalFlag(4)) { + LoadRoomEntityList(&gUnk_080F5868); + if (!CheckLocalFlag(0x56)) { + LoadRoomEntityList(&gUnk_080F5828); + } + else { + LoadRoomEntityList(&gUnk_080F5848); + } + } + if (gUnk_02002A40.stats.filler2[5] == 0) { + LoadRoomEntityList(&gUnk_080F5788); + } +} + +u32 sub_0804EFB0() { + return 1; +} + +void nullsub_397() {} + +u32 sub_0804EFB8() { + return 1; +} + +extern EntityData gUnk_080F5B3C; + +void sub_0804EFBC(void) +{ + if (GetInventoryValue(0x38) == 1) { + LoadRoomEntityList(&gUnk_080F5B3C); + } +} + +u32 sub_0804EFD4() { + return 1; +} +void nullsub_398() {} + +u32 sub_0804EFDC(void) +{ + if (CheckGlobalFlag(0x50)) { + gUnk_030010A0.field_0xa[5] = 5; + } + return 1; +} + +extern EntityData gUnk_080F5DD0; +extern u32 gUnk_08011C50; + +void sub_0804EFF8(void) +{ + if (gUnk_02002A40.field_0x8 > 7) { + LoadRoomEntityList(&gUnk_080F5DD0); + } + if (CheckGlobalFlag(0x50)) { + sub_080751E8(1, 2, &gUnk_08011C50); + } +} + +u32 sub_0804F02C() { + return 1; +} + +extern EntityData gUnk_080F5E68; + +void sub_0804F030(void) +{ + if (!CheckLocalFlagByOffset(0x100, 0xd1)) { + LoadRoomEntityList(&gUnk_080F5E68); + } +} + +u32 sub_0804F04C() { + return 1; +} + +extern EntityData gUnk_080F5F38; +extern EntityData gUnk_080F5F58; +extern EntityData gUnk_080F5F78; + +void sub_0804F050(void) +{ + + if (gUnk_02002A40.field_0x8 > 4) { + LoadRoomEntityList(&gUnk_080F5F38); + } + if (!CheckLocalFlag(0x92)) { + LoadRoomEntityList(&gUnk_080F5F58); + } + else { + LoadRoomEntityList(&gUnk_080F5F78); + } +} + +u32 sub_0804F08C() { + return 1; +} + +void nullsub_399() {} + +u32 sub_0804F094() { + return 1; +} + +void nullsub_400() {} + +u32 sub_0804F09C(void) +{ + if (CheckGlobalFlag(0x24) && CheckLocalFlagByOffset(0x100, 0xdc)) { + SetGlobalFlag(0x58); + } + return 1; +} + +extern EntityData gUnk_080F61BC; + +void sub_0804F0C0(void) +{ + if (CheckLocalFlagByOffset(0x100, 0xdc)) { + SetLocalFlag(0x90); + } + if (CheckKinstoneFused(0xf)) { + LoadRoomEntityList(&gUnk_080F61BC); + } + if (!CheckGlobalFlag(0x58)) { + SetTileType(0x4072, 0x4c7, 1); + SetTileType(0x4072, 0x507, 1); + } + sub_08052CA4(8, 0, 0x1e8, 0x158); +} + +u32 sub_0804F128() { + return 1; +} + +extern EntityData gUnk_080F62E4; +extern EntityData gUnk_080F6324; + +void sub_0804F12C(void) +{ + if (!CheckGlobalFlag(0x58)) { + LoadRoomEntityList(&gUnk_080F62E4); + } + else { + if (CheckLocalFlag(99)) { + LoadRoomEntityList(&gUnk_080F6324); + } + } +} + +u32 sub_0804F15C() { + return 1; +} + +void nullsub_401() {} + +u32 sub_0804F164() { + return 1; +} + +extern EntityData gUnk_080F6564; +extern EntityData gUnk_080F6584; + +void sub_0804F168(void) +{ + + if (!CheckLocalFlag(0xb1)) { + LoadRoomEntityList(&gUnk_080F6564); + } + else { + LoadRoomEntityList(&gUnk_080F6584); + } +} + +u32 sub_0804F18C() { + return 1; +} + +extern EntityData gUnk_080F66AC; + +void sub_0804F190(void) +{ + sub_0805B4D0(5); + if (CheckGlobalFlag(6) && !CheckLocalFlagByOffset(0x100, 5)) { + LoadRoomEntityList(&gUnk_080F66AC); + } + sub_08052CA4(8, 0, 0x1e8, 0x158); + gArea.areaMetadata |= 0x80; +} + +u32 sub_0804F1DC() { + return 1; +} + +void nullsub_402() {} + +u32 sub_0804F1E4() { + return 1; +} + +void nullsub_403() {} + +u32 sub_0804F1EC() { + return 1; +} + +void nullsub_404() {} + +u32 sub_0804F1F4() { + return 1; +} + +void nullsub_405() {} + +u32 sub_0804F1FC() { + return 1; +} + +void nullsub_406() {} + +u32 sub_0804F204() { + return 1; +} + +void nullsub_407() {} + +u32 sub_0804F20C() { + return 1; +} + +void nullsub_408() {} + +u32 sub_0804F214() { + return 1; +} + +void nullsub_409() {} + +u32 sub_0804F21C() { + return 1; +} + +void nullsub_410() {} + +u32 sub_0804F224() { + return 1; +} + +void nullsub_411() {} + +u32 sub_0804F22C() { + return 1; +} + +void sub_0804F230() { + sub_0805ADD8(0); +} + +u32 sub_0804F23C(void) +{ + if (!CheckLocalFlag(0x6d)) { + DoFade(7, 0x100); + } + SetGlobalFlag(0x49); + return 1; +} + +extern EntityData gUnk_080F70A8; +extern EntityData gUnk_080F70D8; +extern EntityData gUnk_080F7088; + +void sub_0804F25C(void) +{ + sub_0805ADD8(0); + if (!CheckLocalFlag(0x6d)) { + LoadRoomEntityList(&gUnk_080F70A8); + ClearGlobalFlag(0x1c); + } + if (!CheckGlobalFlag(0x15)) { + gArea.pMusicIndex = 0x10; + } + if ((gUnk_02002A40.windcrests & 0x40000000) == 0) { + LoadRoomEntityList(&gUnk_080F70D8); + } + if (gUnk_02002A40.field_0x8 > 3) { + LoadRoomEntityList(&gUnk_080F7088); + } +} + +extern EntityData gUnk_080F70D8; + +void sub_0804F2C8(void) +{ + if ((gUnk_02002A40.windcrests & 0x40000000) == 0) { + LoadRoomEntityList(&gUnk_080F70D8); + } +} + +u32 sub_0804F2E8() { + return 1; +} + +void sub_0804F2EC() { + sub_0805ADD8(0); +} + +u32 sub_0804F2F8() { + return 1; +} + +void sub_0804F2FC() { + sub_0805ADD8(0); +} + +extern u32 gUnk_080F7680; + +u32 sub_0804f308(void) +{ + if (GetInventoryValue(0x11) && !GetInventoryValue(0x12)) { + gRoomVars.field_0x74 = &gUnk_080F7680; + } + return 1; +} + +extern EntityData gUnk_080F7500; +extern EntityData gUnk_080F7550; + +void sub_0804F330(void) +{ + sub_0805ADD8(0); + if (gUnk_02002A40.field_0x8 > 3) { + LoadRoomEntityList(&gUnk_080F7500); + } + if (GetInventoryValue(0x11) && !GetInventoryValue(0x12)) { + LoadRoomEntityList(&gUnk_080F7550); + SetTileType(0x4072, 0x311, 1); + SetTileType(0x4072, 0x351, 1); + SetTileType(0x4072, 0x3d9, 1); + SetTileType(0x4072, 0x419, 1); + } +} + +u32 sub_0804F3AC() { + return 1; +} + +extern EntityData gUnk_080F77F0; +extern EntityData gUnk_080F77C0; +extern EntityData gUnk_080F7810; +extern EntityData gUnk_080F7860; +extern EntityData gUnk_080F78A0; + +void sub_0804F3B0(void) +{ + + sub_0805ADD8(0); + if (CheckLocalFlagByOffset(0x200, 0x8f)) { + if (!CheckGlobalFlag(0x1d)) { + LoadRoomEntityList(&gUnk_080F77C0); + } + } + else if (GetInventoryValue(0x40)) { + LoadRoomEntityList(&gUnk_080F77F0); + } + if (CheckGlobalFlag(0x15) && !GetInventoryValue(0x40)) { + LoadRoomEntityList(&gUnk_080F7810); + } + if (!CheckKinstoneFused(0x29)) { + LoadRoomEntityList(&gUnk_080F7860); + SetTile(0x4072, 0xd88, 1); + SetTile(0x4096, 0xdc8, 1); + } + if ((gUnk_02002A40.field_0x8 > 3) && CheckGlobalFlag(0x5c)) { + LoadRoomEntityList(&gUnk_080F78A0); + } +} + +extern u32 gUnk_080F7CD0; +extern void sub_0804F5E8(); +extern u32 gUnk_080F7C80; +extern void sub_0804F4E4(); + +u32 sub_0804F468(void) +{ + if (CheckGlobalFlag(0x15) && !GetInventoryValue(0x11)) { + gRoomVars.field_0x6c = &gUnk_080F7CD0; + gRoomVars.field_0x88 = sub_0804F5E8; + } + if (CheckGlobalFlag(3) && GetInventoryValue(0x3) && !CheckLocalFlag(0x8c)) { + gRoomVars.field_0x6c = &gUnk_080F7C80; + gRoomVars.field_0x88 = sub_0804F4E4; + gRoomVars.field_0x74 = NULL; + } + if (CheckGlobalFlag(0x15)) { + ClearGlobalFlag(100); + } + return 1; +} + +void sub_0804F4E4() { + sub_0805ADD8(0); + sub_0804F578(); +} + +extern EntityData gUnk_080F7D70; + +void sub_0804F4F4(void) +{ + sub_0804F4E4(); + if (!CheckLocalFlag(0x8b)) { + LoadRoomEntityList(&gUnk_080F7D70); + SetTileType(0x174, 0x7a2, 1); + SetTileType(0x174, 0x7a3, 1); + SetTileType(0x174, 0x7a5, 1); + SetTileType(0x174, 0x7a6, 1); + SetTileType(0x174, 0x7a7, 1); + } + if (!CheckGlobalFlag(0x15)) { + gArea.pMusicIndex = 0x13; + } +} + +extern EntityData gUnk_080F7DC0; + +void sub_0804F578(void) +{ + if (!CheckLocalFlag(0x8e)) { + LoadRoomEntityList(&gUnk_080F7DC0); + } + else { + SetTileType(0x37,0x94a,1); + SetTileType(0x37,0x94b,1); + SetTileType(0x37,0x94c,1); + SetTileType(0x37,0x98a,1); + SetTileType(0x37,0x98b,1); + SetTileType(0x37,0x98c,1); + } +} + +void sub_0804F5E8(void) +{ + sub_0804F4E4(); + SetTileType(0x1d3,0xbde,1); + SetTileType(0x1d6,0xbe2,1); + SetTileType(0x1d4,0xc1f,1); + SetTileType(0x1d5,0xc20,1); + SetTileType(0x1d6,0xc5e,1); + SetTileType(0x4072,0xb9b,1); + SetTileType(0x4072,0xbdb,1); + SetTileType(0x4072,0xaa4,1); + SetTileType(0x4072,0xae4,1); +} + +void sub_0804F680(Entity *parent, s32 x, s32 y) +{ + Entity *fx; + + fx = CreateFx(parent,2,0); + if (fx != NULL) { + fx->x.HALF.HI = gRoomControls.roomOriginX + x; + fx->y.HALF.HI = gRoomControls.roomOriginY + y; + } +} + +void sub_0804F6A8(Entity* arg0) +{ + sub_0804F680(arg0, 0x1d8, 0x108); + sub_0804F680(arg0, 0x218, 0x188); +} + +void sub_0804F6C8(Entity* arg0) +{ + sub_0804F680(arg0, 0x1e8, 0x108); + sub_0804F680(arg0, 0x208, 0x188); +} + +void sub_0804F6E8(Entity *arg0) +{ + sub_0804F680(arg0, 0x1f8, 0x108); + sub_0804F680(arg0, 0x258, 0x138); + sub_0804F680(arg0, 0x1f8, 0x188); + sub_0804F680(arg0, 0x198, 0x158); +} + +void sub_0804F724(Entity *arg0) +{ + sub_0804F680(arg0, 0x208, 0x108); + sub_0804F680(arg0, 0x258, 0x148); + sub_0804F680(arg0, 0x1e8, 0x188); + sub_0804F680(arg0, 0x198, 0x148); +} + +void sub_0804F760(Entity *arg0) +{ + sub_0804F680(arg0, 0x218, 0x108); + sub_0804F680(arg0, 0x258, 0x158); + sub_0804F680(arg0, 0x1d8, 0x188); + sub_0804F680(arg0, 0x198, 0x138); +} + +void sub_0804F79C(Entity *parent) +{ + Entity *fx; + + fx = CreateFx(parent, 0x35, 0); + if (fx != NULL) { + fx->spriteRendering.b3 = 0; + fx->x.HALF.HI = gRoomControls.roomOriginX + 0x1b8; + fx->y.HALF.HI = gRoomControls.roomOriginY + 0x148; + } + fx = CreateFx(parent, 0x35, 0); + if (fx != NULL) { + fx->spriteRendering.b3 = 0; + fx->x.HALF.HI = gRoomControls.roomOriginX + 0x238; + fx->y.HALF.HI = gRoomControls.roomOriginY + 0x148; + } +} + +void sub_0804F808(void) +{ + SetTileType(0x1d3, 0x41d, 1); + SetTileType(0x1d3, 0x621, 1); +} + +void sub_0804F830(void) +{ + SetTileType(0x1d4, 0x41e, 1); + SetTileType(0x1d4, 0x620, 1); +} + +void sub_0804F854(void) +{ + SetTileType(0x1d5, 0x41f, 1); + SetTileType(0x1d4, 0x4e5, 1); + SetTileType(0x1d5, 0x61f, 1); + SetTileType(0x1d4, 0x559, 1); +} + +void sub_0804F89C(void) +{ + SetTileType(0x1d6, 0x420, 1); + SetTileType(0x1d5, 0x525, 1); + SetTileType(0x1d6, 0x61e, 1); + SetTileType(0x1d5, 0x519, 1); +} + +void sub_0804F8E0(void) +{ + SetTileType(0x1d3, 0x421, 1); + SetTileType(0x1d6, 0x565, 1); + SetTileType(0x1d3, 0x61d, 1); + SetTileType(0x1d6, 0x4d9, 1); +} + +void sub_0804F928(void) +{ + sub_0807BA8C(0x41d, 1); + sub_0807BA8C(0x621, 1); +} + +void sub_0804F944(void) +{ + sub_0807BA8C(0x41e, 1); + sub_0807BA8C(0x620, 1); +} + +void sub_0804F960(void) +{ + sub_0807BA8C(0x41f, 1); + sub_0807BA8C(0x4e5, 1); + sub_0807BA8C(0x61f, 1); + sub_0807BA8C(0x559, 1); +} + +void sub_0804F994(void) +{ + sub_0807BA8C(0x420, 1); + sub_0807BA8C(0x525, 1); + sub_0807BA8C(0x61e, 1); + sub_0807BA8C(0x519, 1); +} + +void sub_0804F9C8(void) +{ + sub_0807BA8C(0x421, 1); + sub_0807BA8C(0x565, 1); + sub_0807BA8C(0x61d, 1); + sub_0807BA8C(0x4d9, 1); +} + +u32 sub_0804F9FC() { + return 1; +} + +extern EntityData gUnk_080F806C; + +void sub_0804FA00(void) { + + sub_0805ADD8(0); + if ((gUnk_02002A40.field_0x8 > 3) && CheckGlobalFlag(0x5c)) { + LoadRoomEntityList(&gUnk_080F806C); + } +} + +u32 sub_0804FA2C() { + return 1; +} + +extern EntityData gUnk_080F82E0; + +void sub_0804FA30(void) +{ + + sub_0805ADD8(0); + if (CheckGlobalFlag(3) && GetInventoryValue(0x3) && + !CheckLocalFlag(0x9c)) { + LoadRoomEntityList(&gUnk_080F82E0); + } +} + +u32 sub_0804FA64() { + return 1; +} + +extern EntityData gUnk_080F8430; + +void sub_0804FA68(void) +{ + + sub_0805ADD8(0); + if (CheckKinstoneFused(0x21) && !CheckLocalFlagByOffset(0x200, 0x42)) { + LoadRoomEntityList(&gUnk_080F8430); + } +} + +u32 sub_0804FA94() { + return 1; +} + +extern EntityData gUnk_080F85F8; +extern EntityData gUnk_080F85D8; + +void sub_0804FA98(void) +{ + + if (CheckGlobalFlag(0x57)) { + LoadRoomEntityList(&gUnk_080F85D8); + } + else { + LoadRoomEntityList(&gUnk_080F85F8); + } + if (!GetInventoryValue(0xc)) { + ClearLocalFlag(8); + } +} + +u32 sub_0804FACC() { + return 1; +} + +void nullsub_412() {} + +u32 sub_0804FAD4() { + return 1; +} + +void nullsub_413() {} + +u32 sub_0804FADC() { + return 1; +} + +void nullsub_414() {} + +u32 sub_0804FAE4() { + return 1; +} + +void nullsub_415() {} + +u32 sub_0804FAEC() { + return 1; +} + +void nullsub_416() {} + +u32 sub_0804FAF4() { + return 1; +} + +void nullsub_417() {} + +u32 sub_0804FAFC() { + return 1; +} + +void nullsub_418() {} + +u32 sub_0804FB04() { + return 1; +} + +void nullsub_419() {} + +u32 sub_0804FB0C() { + return 1; +} + +void nullsub_420() {} + +u32 sub_0804FB14() { + return 1; +} + +void nullsub_421() {} + +u32 sub_0804FB1C() { + return 1; +} + +void nullsub_422() {} + +u32 sub_0804FB249() { + return 1; +} + +void nullsub_423() {} + +u32 sub_0804FB2C() { + return 1; +} + +void sub_0804FB30(void) +{ + if (CheckLocalFlag(0x11)) { + SetRoomFlag(0); + SetRoomFlag(1); + sub_0805308C(0x100); + if (!CheckLocalFlag(0x12)) { + SetTileType(0x73,0xcb,1); + } + } +} + +u32 sub_0804FB68() { + return 1; +} + +void nullsub_089() {} + +u32 sub_0804FB70() { + return 1; +} + +void nullsub_90() {} + +u32 sub_0804FB78() { + return 1; +} + +void nullsub_91() {} + +u32 sub_0804FB80() { + return 1; +} + +void nullsub_92() {} + +u32 sub_0804FB88() { + return 1; +} + +void nullsub_93() {} + +u32 sub_0804FB90() { + return 1; +} +void nullsub_94() {} + +u32 sub_0804FB98() { + return 1; +} + +void nullsub_95() {} + +u32 sub_0804FBA0() { + return 1; +} + +void nullsub_96() {} + +u32 sub_0804FBA8() { + return 1; +} + +void nullsub_97() {} + +u32 sub_0804FBB09() { + return 1; +} + +void nullsub_98() {} + +u32 sub_0804FBB8() { + return 1; +} + +extern EntityData gUnk_080F9304; + +void sub_0804FBBC(void) +{ + if ((gUnk_02002A40.windcrests & 0x2000000) == 0) { + LoadRoomEntityList(&gUnk_080F9304); + } +} + +extern EntityData gUnk_080F9304; + +void sub_0804FBDC(void) +{ + if ((gUnk_02002A40.windcrests & 0x2000000) == 0) { + LoadRoomEntityList(&gUnk_080F9304); + } +} + +u32 sub_0804FBFC() { + return 1; +} + +void nullsub_424() {} + +u32 sub_0804FC04() { + return 1; +} + +void nullsub_425() {} + +u32 sub_0804FC0C() { + return 1; +} + +void nullsub_426() {} + +u32 sub_0804FC14() { + return 1; +} + +void nullsub_427() {} + +u32 sub_0804FC1C() { + return 1; +} + +void nullsub_428() {} + +u32 sub_0804FC24() { + return 1; +} + +void nullsub_429() {} + +u32 sub_0804FC2C() { + return 1; +} + +void nullsub_430() {} + +u32 sub_0804FC34() { + return 1; +} + +void nullsub_431() {} + +u32 sub_0804FC3C() { + return 1; +} + +void nullsub_432() {} + +u32 sub_0804FC44() { + return 1; +} + +void nullsub_433() {} + +extern u32 gUnk_080F9BF8; + +u32 sub_0804FC4C(void) +{ + if (!CheckKinstoneFused(0xe)) { + gRoomVars.field_0x6c = &gUnk_080F9BF8; + } + return 1; +} + +void sub_0804FC6C() { + sub_0805B4D0(2); + sub_0806D0B0(0); +} + +u32 sub_0804FC7C() { + return 1; +} + +void nullsub_99() {} + +u32 sub_0804FC84() { + return 1; +} + +void nullsub_100() {} + +u32 sub_0804FC8C() { + return 1; +} + +void nullsub_101() {} + +u32 sub_0804FC94() { + return 1; +} + +void nullsub_102() {} + +u32 sub_0804FC9C() { + return 1; +} + +void nullsub_103() {} + +u32 sub_0804FCA4() { + return 1; +} + +extern EntityData gUnk_080F9FA8; +extern EntityData gUnk_080F9F88; + +void sub_0804FCA8(void) +{ + if (CheckKinstoneFused(0x14)) { + LoadRoomEntityList(&gUnk_080F9FA8); + } + if (!GetInventoryValue(0x38)) { + LoadRoomEntityList(&gUnk_080F9F88); + } +} + +u32 sub_0804FCD4() { + return 1; +} + +void nullsub_434() {} + +u32 sub_0804FCDC() { + return 1; +} + +void nullsub_435() {} + +u32 sub_0804FCE4() { + return 1; +} + +void nullsub_436() {} + +u32 sub_0804FCEC() { + return 1; +} + +void nullsub_437() {} + +u32 sub_0804FCF4() { + return 1; +} + +void nullsub_438() {} + +u32 sub_0804FCFC() { + return 1; +} + +void nullsub_439() {} + +u32 sub_0804FD04() { + return 1; +} + +void nullsub_440() {} + +u32 sub_0804FD0C() { + return 1; +} + +void nullsub_441() {} + +u32 sub_0804FD14() { + return 1; +} + +void nullsub_442() {} + +u32 sub_0804FD1C() { + return 1; +} + +void nullsub_443() {} + +u32 sub_0804FD24() { + return 1; +} + +void nullsub_444() {} + +u32 sub_0804FD2C() { + return 1; +} + +void nullsub_445() {} + +u32 sub_0804FD34() { + return 1; +} + +void nullsub_446() {} + +u32 sub_0804FD3C() { + return 1; +} + +void nullsub_447() {} + +u32 sub_0804FD44() { + return 1; +} + +void nullsub_448() { +} + +u32 sub_0804FD4C() { + return 1; +} + +void nullsub_449() {} + +u32 sub_0804FD54() { + return 1; +} + +extern EntityData gUnk_080FA5D0; + +void sub_0804FD58(void) +{ + if (!CheckKinstoneFused(0x21)) { + LoadRoomEntityList(&gUnk_080FA5D0); + } +} + +u32 sub_0804FD70() { + return 1; +} +void nullsub_450() {} + +u32 sub_0804FD78() { + return 1; +} + +void nullsub_451() {} + +u32 sub_0804FD80() { + return 1; +} + +void nullsub_452() {} + +u32 sub_0804FD88() { + return 1; +} + +void nullsub_453() {} + +u32 sub_0804FD90() { + return 1; +} + +void nullsub_454() {} + +u32 sub_0804FD98() { + return 1; +} + +void nullsub_455() {} + +u32 sub_0804FDA0() { + return 1; +} + +void nullsub_456() {} + +u32 sub_0804FDA8() { + return 1; +} + +void nullsub_457() {} + +u32 sub_0804FDB0() { + return 1; +} + +void nullsub_458() {} + +u32 sub_0804FDB8() { + return 1; +} + +void nullsub_459() {} + +u32 sub_0804FDC0() { + return 1; +} + +void nullsub_460() {} + +u32 sub_0804FDC8() { + return 1; +} + +void nullsub_461() {} + +u32 sub_0804FDD0() { + return 1; +} + +void nullsub_462() {} + +u32 sub_0804FDD8() { + return 1; +} + +void nullsub_463() {} + +extern u32 gUnk_080FAD48; + +u32 sub_0804FDE0(void) +{ + if (CheckGlobalFlag(0x51)) { + gRoomVars.field_0x6c = &gUnk_080FAD48; + gRoomVars.field_0x74 = NULL; + } + return 1; +} + +extern EntityData gUnk_080FACB8; + +void sub_0804FE04(void) +{ + if (CheckGlobalFlag(0x51)) { + gArea.pMusicIndex = gArea.musicIndex; + } + else { + LoadRoomEntityList(&gUnk_080FACB8); + } + sub_0805B4D0(0); + sub_08059994(); +} + +void sub_0804FE40() { + sub_0805B4D0(0); +} + +u32 sub_0804FE4C() { + return 1; +} + +void nullsub_104() {} + +u32 sub_0804FE54() { + return 1; +} + +extern EntityData gUnk_080FAFE4; +extern EntityData gUnk_080FB004; + +void sub_0804FE58(void) +{ + + sub_0805B4D0(1); + if (CheckGlobalFlag(3) && !CheckLocalFlag(2)) { + LoadRoomEntityList(&gUnk_080FAFE4); + } + if ((gUnk_02002A40.windcrests & 0x1000000) == 0) { + LoadRoomEntityList(&gUnk_080FB004); + } + if (GetInventoryValue(0x2)) { + SetGlobalFlag(0x56); + } +} + +extern EntityData gUnk_080FB004; + +void sub_0804FEAC(void) +{ + if ((gUnk_02002A40.windcrests & 0x1000000) == 0) { + LoadRoomEntityList(&gUnk_080FB004); + } +} + +u32 sub_0804FECC() { + return 1; +} + +void nullsub_464() {} + +u32 sub_0804FED4() { + return 1; +} + +void sub_0804FED8(void) +{ + SetTileType(0x176, 0x66f, 1); +} + +u32 sub_0804FEEC() { + return 1; +} + +void nullsub_465() {} + +u32 sub_0804FEF4() { + return 1; +} + +void nullsub_466() {} + +u32 sub_0804FEFC() { + return 1; +} + +void nullsub_467() {} + +u32 sub_0804FF04() { + return 1; +} + +void nullsub_468() {} + +u32 sub_0804FF0C() { + return 1; +} + +void nullsub_469() {} + +u32 sub_0804FF14() { + return 1; +} + +void nullsub_470() {} + +u32 sub_0804FF1C() { + return 1; +} + +void nullsub_471() {} + +u32 sub_0804FF24() { + return 1; +} + +void nullsub_472() {} + +u32 sub_0804FF2C() { + return 1; +} + +void nullsub_473() {} + +u32 sub_0804FF34() { + return 1; +} + +void nullsub_474() {} + +u32 sub_0804FF3C() { + return 1; +} + +void nullsub_475() {} + +u32 sub_0804FF44() { + return 1; +} + +void nullsub_476() {} + +u32 sub_0804FF4C() { + return 1; +} + +void nullsub_477() {} + +u32 sub_0804FF54() { + return 1; +} + +void nullsub_478() {} + +u32 sub_0804FF5C() { + return 1; +} + +void sub_0804FF60(void) +{ + if (!CheckLocalFlag(0x70)) { + SetLocalFlag(0x70); + } +} + +u32 sub_0804FF74() { + return 1; +} + +void nullsub_105() {} + +u32 sub_0804FF7C() { + return 1; +} + +void nullsub_106() {} + +typedef struct { + char header[4]; + u8 saveFile; + u8 field_0x5; + u8 brightnessPref; +} struct_02000000; + +extern struct_02000000 gUnk_02000000; + +void sub_0804FF84(u32 arg0) +{ + ((struct_02000000 * )0x02000000)->brightnessPref = arg0; + gUnk_0200B644 = (u32)-1; +} \ No newline at end of file From 2555185721729cc950c89f7a3cf6cef485e566e1 Mon Sep 17 00:00:00 2001 From: theo3 Date: Tue, 21 Jul 2020 23:02:19 -0700 Subject: [PATCH 057/158] menu main func OK --- asm/sub_080AD380.s | 65 ------------ asm/sub_080AD3F4.s | 68 ------------ asm/sub_080AD474.s | 224 --------------------------------------- include/functions.h | 10 ++ include/main.h | 36 ++++++- include/menu.h | 8 +- include/screen.h | 3 +- linker.ld | 3 - src/introSetTransition.c | 204 ++++++++++++++++++++++++++++++++--- src/room.c | 14 +-- 10 files changed, 236 insertions(+), 399 deletions(-) delete mode 100644 asm/sub_080AD380.s delete mode 100644 asm/sub_080AD3F4.s delete mode 100644 asm/sub_080AD474.s diff --git a/asm/sub_080AD380.s b/asm/sub_080AD380.s deleted file mode 100644 index 56400499..00000000 --- a/asm/sub_080AD380.s +++ /dev/null @@ -1,65 +0,0 @@ - .include "asm/macros.inc" - - .include "constants/constants.inc" - - .syntax unified - - .text - - thumb_func_start sub_080AD380 -sub_080AD380: @ 0x080AD380 - push {r4, lr} - bl sub_080AD90C - ldr r4, _080AD398 @ =gUnk_03001000 - ldrb r0, [r4, #3] - cmp r0, #1 - beq _080AD3BC - cmp r0, #1 - bgt _080AD39C - cmp r0, #0 - beq _080AD3A2 - b _080AD3EA - .align 2, 0 -_080AD398: .4byte gUnk_03001000 -_080AD39C: - cmp r0, #2 - beq _080AD3D8 - b _080AD3EA -_080AD3A2: - bl sub_08056418 - ldr r0, _080AD3B8 @ =gUnk_02032EC0 - movs r1, #0xed - lsls r1, r1, #2 - bl _DmaZero - movs r0, #0 - bl IntroSetTransition - b _080AD3EA - .align 2, 0 -_080AD3B8: .4byte gUnk_02032EC0 -_080AD3BC: - ldr r1, _080AD3D0 @ =gUnk_081320F0 - ldr r0, _080AD3D4 @ =gUnk_02032EC0 - ldrb r0, [r0, #2] - lsls r0, r0, #2 - adds r0, r0, r1 - ldr r0, [r0] - bl _call_via_r0 - b _080AD3EA - .align 2, 0 -_080AD3D0: .4byte gUnk_081320F0 -_080AD3D4: .4byte gUnk_02032EC0 -_080AD3D8: - ldr r0, _080AD3F0 @ =gUnk_03000FD0 - ldrb r0, [r0] - cmp r0, #0 - bne _080AD3EE - movs r0, #1 - bl sub_0801DA90 - movs r0, #1 - strb r0, [r4, #3] -_080AD3EA: - bl sub_080AD918 -_080AD3EE: - pop {r4, pc} - .align 2, 0 -_080AD3F0: .4byte gUnk_03000FD0 \ No newline at end of file diff --git a/asm/sub_080AD3F4.s b/asm/sub_080AD3F4.s deleted file mode 100644 index 756016c5..00000000 --- a/asm/sub_080AD3F4.s +++ /dev/null @@ -1,68 +0,0 @@ - .include "asm/macros.inc" - - .include "constants/constants.inc" - - .syntax unified - - .text - - thumb_func_start sub_080AD3F4 -sub_080AD3F4: @ 0x080AD3F4 - push {r4, r5, lr} - bl sub_080AD84C - adds r1, r0, #0 - ldr r4, _080AD450 @ =gMenu - ldrb r0, [r4, #5] - cmp r0, #0 - bne _080AD458 - movs r0, #1 - bl sub_0801DA90 - movs r5, #1 - strb r5, [r4, #5] - movs r0, #0x78 - strh r0, [r4, #8] - movs r0, #0x10 - bl sub_0801D7EC - movs r0, #1 - bl sub_0801D7EC - movs r0, #0x80 - lsls r0, r0, #0x12 - ldrb r0, [r0, #7] - movs r1, #2 - cmp r0, #0 - bne _080AD42C - movs r1, #1 -_080AD42C: - adds r0, r1, #0 - bl LoadPalettesByPaletteGroupIndex - ldr r0, _080AD454 @ =gScreen - ldrh r1, [r0] - movs r3, #0x80 - lsls r3, r3, #3 - adds r2, r3, #0 - orrs r1, r2 - strh r1, [r0] - strh r5, [r0, #0x1a] - movs r0, #6 - movs r1, #8 - bl DoFade - movs r1, #0 - b _080AD45E - .align 2, 0 -_080AD450: .4byte gMenu -_080AD454: .4byte gScreen -_080AD458: - cmp r1, #1 - bne _080AD45E - movs r1, #2 -_080AD45E: - cmp r1, #2 - bne _080AD46C - ldr r1, _080AD470 @ =gUnk_02000010 - movs r0, #1 - strb r0, [r1, #5] - bl IntroSetTransition -_080AD46C: - pop {r4, r5, pc} - .align 2, 0 -_080AD470: .4byte gUnk_02000010 \ No newline at end of file diff --git a/asm/sub_080AD474.s b/asm/sub_080AD474.s deleted file mode 100644 index 135ce2f7..00000000 --- a/asm/sub_080AD474.s +++ /dev/null @@ -1,224 +0,0 @@ - .include "asm/macros.inc" - - .include "constants/constants.inc" - - .syntax unified - - .text - - thumb_func_start sub_080AD474 -sub_080AD474: @ 0x080AD474 - push {r4, r5, r6, lr} - ldr r5, _080AD490 @ =gMenu - ldrb r0, [r5, #0x12] - adds r0, #1 - strb r0, [r5, #0x12] - ldrb r0, [r5, #5] - cmp r0, #1 - bne _080AD486 - b _080AD588 -_080AD486: - cmp r0, #1 - bgt _080AD494 - cmp r0, #0 - beq _080AD49C - b _080AD5C8 - .align 2, 0 -_080AD490: .4byte gMenu -_080AD494: - cmp r0, #2 - bne _080AD49A - b _080AD5AA -_080AD49A: - b _080AD5C8 -_080AD49C: - movs r4, #1 - strb r4, [r5, #5] - strb r0, [r5, #6] - movs r6, #0 - movs r0, #0x1e - strh r0, [r5, #8] - movs r0, #7 - strb r0, [r5, #4] - bl EraseAllEntities - movs r0, #0 - bl sub_0801CFA8 - bl sub_080ADD30 - ldr r0, _080AD50C @ =gUnk_02024490 - strb r4, [r0] - movs r0, #2 - bl sub_0801D7EC - movs r4, #0x80 - lsls r4, r4, #0x12 - ldrb r0, [r4, #7] - movs r1, #4 - cmp r0, #0 - bne _080AD4D2 - movs r1, #3 -_080AD4D2: - adds r0, r1, #0 - bl LoadPalettesByPaletteGroupIndex - ldrb r0, [r4, #7] - cmp r0, #0 - bne _080AD524 - ldr r2, _080AD510 @ =gScreen - adds r1, r2, #0 - adds r1, #0x66 - ldr r0, _080AD514 @ =0x00000844 - strh r0, [r1] - adds r1, #2 - adds r0, #0xc5 - strh r0, [r1] - ldr r0, _080AD518 @ =0x00001C09 - strh r0, [r2, #0x14] - adds r0, #0xf9 - strh r0, [r2, #0x20] - ldr r0, _080AD51C @ =0x00001E03 - strh r0, [r2, #0x2c] - ldrh r0, [r2] - movs r3, #0xf0 - lsls r3, r3, #5 - adds r1, r3, #0 - orrs r0, r1 - strh r0, [r2] - ldr r0, _080AD520 @ =0x0000FF60 - strh r0, [r2, #0x18] - b _080AD55A - .align 2, 0 -_080AD50C: .4byte gUnk_02024490 -_080AD510: .4byte gScreen -_080AD514: .4byte 0x00000844 -_080AD518: .4byte 0x00001C09 -_080AD51C: .4byte 0x00001E03 -_080AD520: .4byte 0x0000FF60 -_080AD524: - ldr r2, _080AD570 @ =gScreen - adds r1, r2, #0 - adds r1, #0x66 - ldr r0, _080AD574 @ =0x00000241 - strh r0, [r1] - adds r1, #2 - ldr r0, _080AD578 @ =0x00000909 - strh r0, [r1] - ldr r0, _080AD57C @ =0x00001D02 - strh r0, [r2, #8] - ldr r0, _080AD580 @ =0x00001E03 - strh r0, [r2, #0x14] - ldr r0, _080AD584 @ =0x00007C89 - strh r0, [r2, #0x20] - ldrh r0, [r2] - movs r1, #1 - orrs r0, r1 - orrs r0, r6 - movs r3, #0x98 - lsls r3, r3, #5 - adds r1, r3, #0 - orrs r0, r1 - strh r0, [r2] - movs r0, #0x10 - str r0, [r5, #0x2c] - bl sub_080AD670 -_080AD55A: - bl sub_080A3210 - movs r0, #3 - bl PlaySFX - movs r0, #6 - movs r1, #8 - bl DoFade - b _080AD610 - .align 2, 0 -_080AD570: .4byte gScreen -_080AD574: .4byte 0x00000241 -_080AD578: .4byte 0x00000909 -_080AD57C: .4byte 0x00001D02 -_080AD580: .4byte 0x00001E03 -_080AD584: .4byte 0x00007C89 -_080AD588: - ldr r0, _080AD5A0 @ =gUnk_03000FD0 - ldrb r0, [r0] - cmp r0, #0 - bne _080AD632 - movs r0, #0x80 - lsls r0, r0, #0x12 - ldrb r0, [r0, #7] - cmp r0, #0 - bne _080AD5A4 - bl sub_080AD6AC - b _080AD610 - .align 2, 0 -_080AD5A0: .4byte gUnk_03000FD0 -_080AD5A4: - bl sub_080AD76C - b _080AD610 -_080AD5AA: - ldrh r0, [r5, #8] - subs r0, #1 - strh r0, [r5, #8] - lsls r0, r0, #0x10 - cmp r0, #0 - bne _080AD5C2 - movs r0, #0xe1 - lsls r0, r0, #4 - strh r0, [r5, #8] - ldrb r0, [r5, #5] - adds r0, #1 - strb r0, [r5, #5] -_080AD5C2: - bl sub_080AD644 - b _080AD610 -_080AD5C8: - bl sub_080AD84C - adds r4, r0, #0 - cmp r4, #0 - beq _080AD5EC - cmp r4, #2 - bne _080AD5DE - movs r0, #0x6a - bl PlaySFX - b _080AD5E0 -_080AD5DE: - movs r4, #0 -_080AD5E0: - adds r0, r4, #0 - bl IntroSetTransition - ldr r0, _080AD634 @ =0x80080000 - bl PlaySFX -_080AD5EC: - bl sub_080AD644 - ldr r0, _080AD638 @ =gMenu - ldrh r1, [r0, #8] - movs r0, #0x20 - ands r0, r1 - cmp r0, #0 - bne _080AD610 - ldr r1, _080AD63C @ =gUnk_03001010 - movs r0, #0xe0 - lsls r0, r0, #8 - strh r0, [r1, #8] - movs r0, #0x84 - strh r0, [r1, #2] - ldr r0, _080AD640 @ =0x000001FF - movs r1, #0 - bl sub_080ADA14 -_080AD610: - ldr r2, _080AD638 @ =gMenu - movs r0, #0x80 - lsls r0, r0, #0x12 - ldrb r1, [r0, #7] - ldrb r0, [r2, #4] - cmp r0, r1 - beq _080AD626 - strb r1, [r2, #4] - movs r0, #3 - bl sub_0801D7EC -_080AD626: - bl sub_080AD89C - bl sub_0805E5C0 - bl sub_080AD9B0 -_080AD632: - pop {r4, r5, r6, pc} - .align 2, 0 -_080AD634: .4byte 0x80080000 -_080AD638: .4byte gMenu -_080AD63C: .4byte gUnk_03001010 -_080AD640: .4byte 0x000001FF diff --git a/include/functions.h b/include/functions.h index 36aa73c7..caace6ff 100644 --- a/include/functions.h +++ b/include/functions.h @@ -159,4 +159,14 @@ extern void sub_080AF2E4(void); extern void sub_0805ADD8(u32); extern void sub_0804F578(void); extern void sub_08059994(void); +extern u32 sub_080AD84C(); +extern void sub_0801D7EC(u32); +extern s32 sub_0801CFA8(u32); +extern void sub_080AD670(); +extern void sub_080A3210(); +extern void sub_080AD6AC(); +extern void sub_080AD76C(); +extern void sub_080AD644(); +extern void sub_080ADA14(u32, u32); +extern void sub_080AD89C(); #endif diff --git a/include/main.h b/include/main.h index c1ef4b5b..16888e29 100644 --- a/include/main.h +++ b/include/main.h @@ -14,6 +14,35 @@ typedef struct { // 0x03001000 u32 spritePriority; } MainStruct; +typedef struct { + u8 interruptFlag; + u8 field_0x1; + u8 funcIndex; + u8 field_0x3; + u8 transition; + u8 field_0x5; + u8 muteAudio; + u8 field_0x8; + u8 countdown; +} Main; + +typedef struct { + u16 nextToLoad; + u8 transitionType; + u8 field_0x3; + u8 state; + u8 field_0x5; + u8 field_0x6; + u8 pauseFadeIn; + u16 isLoading; + u16 fadeInTime; +} UI; + +extern Main gUnk_03001000; +extern UI gUnk_02032EC0; + + + extern s32 sub_08055F70(); extern s32 sub_080A3204(s32); extern s32 sub_0805616C(s32); @@ -21,10 +50,9 @@ extern s32 sub_0807CE90(s32); extern s32 sub_080560B8(s32); extern void sub_08056208(s32); extern void sub_0804FFE4(); -extern s32 sub_0804FF84(s32); -extern s32 sub_08056418(s32); +extern s32 sub_08056418(); extern void sub_080ADD30(s32); -extern s32 _DmaZero(s32, u32, u32); + extern s32 sub_08056010(s32); extern s32 sub_08016E78(s32); extern s32 ReadKeyInput(); @@ -37,8 +65,6 @@ extern s32 sub_08056458(s32); extern s32 sub_08050154(s32); extern s32 sub_080A3480(s32); -extern s32 gUnk_02000010; extern s32 gRand; -extern MainStruct gUnk_03001000; extern s32 gUnk_08100CBC; #endif \ No newline at end of file diff --git a/include/menu.h b/include/menu.h index cfd6c3d6..e3053783 100644 --- a/include/menu.h +++ b/include/menu.h @@ -24,10 +24,12 @@ typedef struct { u8 secret; u8 overlayType; u8 storyPanelIndex; - u8 field_0x7; - u8 transitionTimer; + u16 transitionTimer; + u8 field_0xa[8]; + u8 field_0x12; + u8 field_0x13[22]; + u32 field_0x2c; } Menu; extern Menu gMenu; - #endif \ No newline at end of file diff --git a/include/screen.h b/include/screen.h index 442eee84..1eafcf76 100644 --- a/include/screen.h +++ b/include/screen.h @@ -15,7 +15,8 @@ typedef struct { u16 bg0xOffset; u16 bg0yOffset; u16 bg0Updated; - u32 unk; + u16 unk; + u16 unk2; } BgSettings; typedef struct { diff --git a/linker.ld b/linker.ld index 460b91b4..f18fab06 100644 --- a/linker.ld +++ b/linker.ld @@ -883,9 +883,6 @@ SECTIONS { src/sub_080A554C.o(.text); asm/code_080A5574.o(.text); src/introSetTransition.o(.text); - asm/sub_080AD380.o(.text); - asm/sub_080AD3F4.o(.text); - asm/sub_080AD474.o(.text); src/sub_080AD644.o(.text); asm/sub_080AD670.o(.text); asm/sub_080AD6Ac.o(.text); diff --git a/src/introSetTransition.c b/src/introSetTransition.c index 6d71480f..3bb850e2 100644 --- a/src/introSetTransition.c +++ b/src/introSetTransition.c @@ -1,27 +1,197 @@ #include "global.h" #include "menu.h" +#include "main.h" +#include "entity.h" +#include "functions.h" +#include "screen.h" + +extern void (*const gUnk_081320F0[])(); + +extern u8 gUnk_03000FD0; + +typedef struct { + char header[4]; + u8 saveFile; + u8 field_0x5; + u8 brightnessPref; + u8 gameLanguage; +} struct_02000000; typedef struct { - u8 unk; - u8 unk2; - u8 unk3; - u8 functionIndex; - u16 unk6; u8 filler[5]; - u32 ticks; - u16 unk7; -} TransitionStruct; + u8 field_0x5; +} struct_02000010; -extern u32 DoFade(u32, u32); -extern void _DmaZero(u32*, u32, u32); -extern TransitionStruct gUnk_03001000; -extern MenuControls gUnk_02032EC0; - -u32 IntroSetTransition(u8 transition, u32 param_2, u32 param_3) +extern struct_02000010 gUnk_02000010; +u32 IntroSetTransition(u32 transition) { gUnk_02032EC0.transitionType = transition; - gUnk_03001000.functionIndex = 2; - _DmaZero((u32 *)&gMenu, 48, param_3); - return DoFade(7, 8); + gUnk_03001000.field_0x3 = 2; + _DmaZero((u32 *)&gMenu, 48); + DoFade(7, 8); } + +void sub_080AD380() +{ + sub_080AD90C(); + switch (gUnk_03001000.field_0x3) { + case 0: + sub_08056418(); + _DmaZero(&gUnk_02032EC0, 0x3b4); + IntroSetTransition(0); + break; + case 1: + gUnk_081320F0[gUnk_02032EC0.transitionType](); + break; + case 2: + if (gUnk_03000FD0 != 0) { + return; + } + sub_0801DA90(1); + gUnk_03001000.field_0x3 = 1; + break; + } + sub_080AD918(); +} + +void sub_080AD3F4(void) +{ + u32 iVar1; + u32 uVar2; + + iVar1 = sub_080AD84C(); + if (gMenu.secret == 0) { + sub_0801DA90(1); + gMenu.secret = 1; + gMenu.transitionTimer = 0x78; + sub_0801D7EC(0x10); + sub_0801D7EC(1); + if (((struct_02000000 *)0x2000000)->gameLanguage == 0) { + uVar2 = 1; + } + else { + uVar2 = 2; + } + LoadPalettesByPaletteGroupIndex(uVar2); + gScreen.lcd.lcdControl2 |= 0x400; + gScreen.bg2.bg0xOffset = 1; + DoFade(6, 8); + iVar1 = 0; + } + else { + if (iVar1 == 1) { + iVar1 = 2; + } + } + if (iVar1 == 2) { + gUnk_02000010.field_0x5 = 1; + IntroSetTransition(1); + } +} + +typedef struct { + u16 field_0x0; + u16 field_0x2; + u16 field_0x4[2]; + u16 field_0x8; +} struct_03001010; + +extern struct_03001010 gUnk_03001010; + +extern u8 gUnk_02024490; +extern u8 gUnk_03000FD0; + +void sub_080AD474(void) +{ + int iVar2; + u32 uVar3; + + gMenu.field_0x12++; + switch (gMenu.secret) { + case 0: + gMenu.secret = 1; + gMenu.overlayType = 0; + gMenu.transitionTimer = 0x1e; + gMenu.field_0x2 = 7; + EraseAllEntities(); + sub_080ADD30(sub_0801CFA8(0)); + gUnk_02024490 = 1; + sub_0801D7EC(2); + if (((struct_02000000*)0x2000000)->gameLanguage == 0) { + uVar3 = 3; + } + else { + uVar3 = 4; + } + LoadPalettesByPaletteGroupIndex(uVar3); + if (((struct_02000000*)0x2000000)->gameLanguage == 0) { + gScreen.controls.windowOutsideControl = 0x844; + gScreen.controls.mosaicSize = 0x909; + gScreen.bg1.unk = 0x1c09; + gScreen.bg2.unk = 0x1d02; + gScreen.affine.unk2 = 0x1e03; + gScreen.lcd.lcdControl2 |= 0x1e00; + gScreen.bg2.bg0Control = 0xff60; + } + else { + gScreen.controls.windowOutsideControl = 0x241; + gScreen.controls.mosaicSize = 0x909; + gScreen.lcd.lcdControl1 = 0x1d02; + gScreen.bg1.unk = 0x1E03; + gScreen.bg2.unk = 0x7C89; + gScreen.lcd.lcdControl2 |= 1; + gScreen.lcd.lcdControl2 |= 0x1300; + gMenu.field_0x2c = 0x10; + sub_080AD670(); + } + sub_080A3210(); + PlaySFX(3); + DoFade(6, 8); + break; + case 1: + if (gUnk_03000FD0 != 0) { + return; + } + if (((struct_02000000*)0x2000000)->gameLanguage == 0) { + sub_080AD6AC(); + } + else { + sub_080AD76C(); + } + break; + case 2: + gMenu.transitionTimer--; + if (gMenu.transitionTimer == 0) { + gMenu.transitionTimer = 0xe10; + gMenu.secret++; + } + sub_080AD644(); + break; + default: + iVar2 = sub_080AD84C(); + if (iVar2 != 0) { + if (iVar2 == 2) { + PlaySFX(0x6a); + } + else { + iVar2 = 0; + } + IntroSetTransition(iVar2); + PlaySFX(0x80080000); + } + sub_080AD644(); + if ((gMenu.transitionTimer & 0x20) == 0) { + gUnk_03001010.field_0x8 = 0xe000; + gUnk_03001010.field_0x2 = 0x84; + sub_080ADA14(0x1ff,0); + } + } + if (gMenu.field_0x2 != ((struct_02000000*)0x2000000)->gameLanguage) { + gMenu.field_0x2 = ((struct_02000000*)0x2000000)->gameLanguage; + sub_0801D7EC(3); + } + sub_080AD89C(); + sub_0805E5C0(); + sub_080AD9B0(); +} \ No newline at end of file diff --git a/src/room.c b/src/room.c index 4f2a658b..64bf1c23 100644 --- a/src/room.c +++ b/src/room.c @@ -6,6 +6,7 @@ #include "flags.h" #include "link.h" #include "screen.h" +#include "main.h" typedef struct { u8 field_0x0[8]; @@ -37,21 +38,8 @@ typedef struct { Stats stats; } struct_02002A40; -typedef struct { - u8 interruptFlag; - u8 field_0x1; - u8 funcIndex; - u8 field_0x3; - u8 transition; - u8 field_0x5; - u8 muteAudio; - u8 field_0x8; - u8 countdown; -} Main; - extern struct_030010A0 gUnk_030010A0; extern struct_02002A40 gUnk_02002A40; -extern Main gUnk_03001000; void sub_0804B3C4(u32 arg0) { sub_0804B29C(arg0); From 341ec8cdf67ed646c29fe3278289abae5717a440 Mon Sep 17 00:00:00 2001 From: theo3 Date: Tue, 21 Jul 2020 23:16:12 -0700 Subject: [PATCH 058/158] fix menu.h offsets --- include/menu.h | 8 ++++---- src/code_0805436C.c | 2 +- src/introSetTransition.c | 18 +++++++++--------- src/sub_080A554C.c | 2 +- 4 files changed, 15 insertions(+), 15 deletions(-) diff --git a/include/menu.h b/include/menu.h index e3053783..13564462 100644 --- a/include/menu.h +++ b/include/menu.h @@ -20,14 +20,14 @@ typedef struct { typedef struct { u8 field_0x0; u16 field_0x1; - u8 field_0x2; - u8 secret; + u8 field_0x3; + u8 menuType; u8 overlayType; u8 storyPanelIndex; u16 transitionTimer; u8 field_0xa[8]; - u8 field_0x12; - u8 field_0x13[22]; + u8 field_0x11; + u8 field_0x12[0x16]; u32 field_0x2c; } Menu; diff --git a/src/code_0805436C.c b/src/code_0805436C.c index c522c408..92175a3c 100644 --- a/src/code_0805436C.c +++ b/src/code_0805436C.c @@ -184,5 +184,5 @@ u32 sub_0805457C(u32 arg0, u32 arg1) { void sub_08054870(void) { - gUnk_080FE2A0[gMenu.secret](); + gUnk_080FE2A0[gMenu.menuType](); } \ No newline at end of file diff --git a/src/introSetTransition.c b/src/introSetTransition.c index 3bb850e2..ea8b8a5e 100644 --- a/src/introSetTransition.c +++ b/src/introSetTransition.c @@ -61,9 +61,9 @@ void sub_080AD3F4(void) u32 uVar2; iVar1 = sub_080AD84C(); - if (gMenu.secret == 0) { + if (gMenu.menuType == 0) { sub_0801DA90(1); - gMenu.secret = 1; + gMenu.menuType = 1; gMenu.transitionTimer = 0x78; sub_0801D7EC(0x10); sub_0801D7EC(1); @@ -107,13 +107,13 @@ void sub_080AD474(void) int iVar2; u32 uVar3; - gMenu.field_0x12++; - switch (gMenu.secret) { + gMenu.field_0x11++; + switch (gMenu.menuType) { case 0: - gMenu.secret = 1; + gMenu.menuType = 1; gMenu.overlayType = 0; gMenu.transitionTimer = 0x1e; - gMenu.field_0x2 = 7; + gMenu.field_0x3 = 7; EraseAllEntities(); sub_080ADD30(sub_0801CFA8(0)); gUnk_02024490 = 1; @@ -164,7 +164,7 @@ void sub_080AD474(void) gMenu.transitionTimer--; if (gMenu.transitionTimer == 0) { gMenu.transitionTimer = 0xe10; - gMenu.secret++; + gMenu.menuType++; } sub_080AD644(); break; @@ -187,8 +187,8 @@ void sub_080AD474(void) sub_080ADA14(0x1ff,0); } } - if (gMenu.field_0x2 != ((struct_02000000*)0x2000000)->gameLanguage) { - gMenu.field_0x2 = ((struct_02000000*)0x2000000)->gameLanguage; + if (gMenu.field_0x3 != ((struct_02000000*)0x2000000)->gameLanguage) { + gMenu.field_0x3 = ((struct_02000000*)0x2000000)->gameLanguage; sub_0801D7EC(3); } sub_080AD89C(); diff --git a/src/sub_080A554C.c b/src/sub_080A554C.c index 5fb0db17..9bdd2175 100644 --- a/src/sub_080A554C.c +++ b/src/sub_080A554C.c @@ -21,6 +21,6 @@ u32 sub_080A554C(u32 arg0) void sub_080A5574(void) { - gUnk_08128BF8[gMenu.secret](); + gUnk_08128BF8[gMenu.menuType](); sub_080A57F4(); } \ No newline at end of file From c650e7fcb2580e034474f5f8b39bd8cfd1c3a79b Mon Sep 17 00:00:00 2001 From: theo3 Date: Wed, 22 Jul 2020 00:57:06 -0700 Subject: [PATCH 059/158] jp title screen ok --- asm/sub_080AD670.s | 38 -------------- asm/sub_080AD6Ac.s | 105 --------------------------------------- include/screen.h | 1 + linker.ld | 3 -- src/introSetTransition.c | 96 +++++++++++++++++++++++++++++------ src/sub_080AD644.c | 15 ------ 6 files changed, 83 insertions(+), 175 deletions(-) delete mode 100644 asm/sub_080AD670.s delete mode 100644 asm/sub_080AD6Ac.s delete mode 100644 src/sub_080AD644.c diff --git a/asm/sub_080AD670.s b/asm/sub_080AD670.s deleted file mode 100644 index bdddb553..00000000 --- a/asm/sub_080AD670.s +++ /dev/null @@ -1,38 +0,0 @@ - .include "asm/macros.inc" - - .include "constants/constants.inc" - - .syntax unified - - .text - - thumb_func_start sub_080AD670 -sub_080AD670: @ 0x080AD670 - push {lr} - sub sp, #0x14 - movs r0, #0x80 - lsls r0, r0, #8 - str r0, [sp, #4] - str r0, [sp] - mov r1, sp - movs r2, #0 - movs r0, #0x78 - strh r0, [r1, #8] - movs r0, #0x48 - strh r0, [r1, #0xa] - mov r0, sp - strh r2, [r0, #0x10] - mov r2, sp - ldr r0, _080AD6A4 @ =gMenu - ldr r0, [r0, #0x2c] - strh r0, [r1, #0xc] - strh r0, [r2, #0xe] - ldr r1, _080AD6A8 @ =gBgControls - mov r0, sp - movs r2, #1 - bl BgAffineSet - add sp, #0x14 - pop {pc} - .align 2, 0 -_080AD6A4: .4byte gMenu -_080AD6A8: .4byte gBgControls diff --git a/asm/sub_080AD6Ac.s b/asm/sub_080AD6Ac.s deleted file mode 100644 index 64332950..00000000 --- a/asm/sub_080AD6Ac.s +++ /dev/null @@ -1,105 +0,0 @@ - .include "asm/macros.inc" - - .include "constants/constants.inc" - - .syntax unified - - .text - - thumb_func_start sub_080AD6AC -sub_080AD6AC: @ 0x080AD6AC - push {r4, r5, r6, lr} - ldr r4, _080AD6C0 @ =gMenu - ldrb r0, [r4, #6] - cmp r0, #1 - beq _080AD724 - cmp r0, #1 - bgt _080AD6C4 - cmp r0, #0 - beq _080AD6CA - b _080AD76A - .align 2, 0 -_080AD6C0: .4byte gMenu -_080AD6C4: - cmp r0, #2 - beq _080AD758 - b _080AD76A -_080AD6CA: - ldr r6, _080AD718 @ =gUnk_03000FD0 - ldrb r5, [r6] - cmp r5, #0 - bne _080AD76A - ldrb r1, [r4, #0x12] - movs r0, #1 - ands r0, r1 - cmp r0, #0 - bne _080AD6E4 - ldr r1, _080AD71C @ =gScreen - ldrh r0, [r1, #0x18] - adds r0, #1 - strh r0, [r1, #0x18] -_080AD6E4: - bl sub_080AD84C - cmp r0, #2 - beq _080AD6F4 - ldr r0, _080AD71C @ =gScreen - ldrh r0, [r0, #0x18] - cmp r0, #0 - bne _080AD76A -_080AD6F4: - ldrb r0, [r4, #6] - adds r0, #1 - strb r0, [r4, #6] - ldr r1, _080AD71C @ =gScreen - strh r5, [r1, #0x18] - ldr r0, _080AD720 @ =0x00000C09 - strh r0, [r1, #0x14] - movs r0, #0x40 - str r0, [r6, #4] - movs r0, #6 - movs r1, #0x10 - bl DoFade - movs r0, #0xf8 - bl PlaySFX - b _080AD76A - .align 2, 0 -_080AD718: .4byte gUnk_03000FD0 -_080AD71C: .4byte gScreen -_080AD720: .4byte 0x00000C09 -_080AD724: - ldr r1, _080AD754 @ =gUnk_03000FD0 - ldrb r5, [r1] - cmp r5, #0 - bne _080AD76A - movs r0, #1 - rsbs r0, r0, #0 - str r0, [r1, #4] - ldrb r0, [r4, #6] - adds r0, #1 - strb r0, [r4, #6] - movs r0, #0x5a - strh r0, [r4, #8] - movs r0, #0xb4 - movs r1, #0 - movs r2, #0 - bl CreateObject - adds r1, r0, #0 - cmp r1, #0 - beq _080AD76A - strh r5, [r1, #0x2e] - movs r0, #0x48 - strh r0, [r1, #0x32] - b _080AD76A - .align 2, 0 -_080AD754: .4byte gUnk_03000FD0 -_080AD758: - bl sub_080AD84C - cmp r0, #0 - beq _080AD76A - ldrb r0, [r4, #5] - adds r0, #1 - strb r0, [r4, #5] - movs r0, #0x3c - strh r0, [r4, #8] -_080AD76A: - pop {r4, r5, r6, pc} diff --git a/include/screen.h b/include/screen.h index 1eafcf76..2f8c452f 100644 --- a/include/screen.h +++ b/include/screen.h @@ -70,6 +70,7 @@ typedef struct { BgControls controls; } Screen; +extern BgControls gBgControls; extern Screen gScreen; #endif \ No newline at end of file diff --git a/linker.ld b/linker.ld index f18fab06..f48d2678 100644 --- a/linker.ld +++ b/linker.ld @@ -883,9 +883,6 @@ SECTIONS { src/sub_080A554C.o(.text); asm/code_080A5574.o(.text); src/introSetTransition.o(.text); - src/sub_080AD644.o(.text); - asm/sub_080AD670.o(.text); - asm/sub_080AD6Ac.o(.text); asm/sub_080AD76C.o(.text); src/sub_080AD834.o(.text); asm/sub_080AD84C.o(.text); diff --git a/src/introSetTransition.c b/src/introSetTransition.c index ea8b8a5e..638bf4c6 100644 --- a/src/introSetTransition.c +++ b/src/introSetTransition.c @@ -7,7 +7,15 @@ extern void (*const gUnk_081320F0[])(); -extern u8 gUnk_03000FD0; +typedef struct { + u8 field_0x0; + u8 field_0x1; + u8 field_0x2; + u8 field_0x3; + u32 field_0x4; +} struct_03000FD0; + +extern struct_03000FD0 gUnk_03000FD0; typedef struct { char header[4]; @@ -45,7 +53,7 @@ void sub_080AD380() gUnk_081320F0[gUnk_02032EC0.transitionType](); break; case 2: - if (gUnk_03000FD0 != 0) { + if (gUnk_03000FD0.field_0x0 != 0) { return; } sub_0801DA90(1); @@ -90,17 +98,13 @@ void sub_080AD3F4(void) } } -typedef struct { - u16 field_0x0; - u16 field_0x2; - u16 field_0x4[2]; - u16 field_0x8; -} struct_03001010; +// typedef struct { +// u16 field_0x0[5]; +// } struct_03001010; -extern struct_03001010 gUnk_03001010; +extern u16 gUnk_03001010[5]; extern u8 gUnk_02024490; -extern u8 gUnk_03000FD0; void sub_080AD474(void) { @@ -146,11 +150,11 @@ void sub_080AD474(void) sub_080AD670(); } sub_080A3210(); - PlaySFX(3); + PlaySFX(3); //fanfare DoFade(6, 8); break; case 1: - if (gUnk_03000FD0 != 0) { + if (gUnk_03000FD0.field_0x0 != 0) { return; } if (((struct_02000000*)0x2000000)->gameLanguage == 0) { @@ -182,8 +186,8 @@ void sub_080AD474(void) } sub_080AD644(); if ((gMenu.transitionTimer & 0x20) == 0) { - gUnk_03001010.field_0x8 = 0xe000; - gUnk_03001010.field_0x2 = 0x84; + gUnk_03001010[4] = 0xe000; + gUnk_03001010[1] = 0x84; sub_080ADA14(0x1ff,0); } } @@ -194,4 +198,68 @@ void sub_080AD474(void) sub_080AD89C(); sub_0805E5C0(); sub_080AD9B0(); +} + +void sub_080AD644(void) { + + gUnk_03001010[2] = 0; + gUnk_03001010[3] = 0; + gUnk_03001010[4] = 57376; + gUnk_03001010[0] = 120; + gUnk_03001010[1] = 152; + sub_080ADA14(511, 1); + return; +} + +void sub_080AD670(void) +{ + struct BgAffineSrcData aff; + aff.texY = 0x8000; + aff.texX = 0x8000; + aff.scrX = 0x78; + aff.scrY = 0x48; + aff.alpha = 0; + aff.sy = aff.sx = gMenu.field_0x2c; + BgAffineSet(&aff, (struct BgAffineDstData*)&gBgControls, 1); +} + +void sub_080AD6AC(void) +{ + Entity *pEVar2; + + switch (gMenu.overlayType) { + case 0: + if (gUnk_03000FD0.field_0x0 == 0) { + if ((gMenu.field_0x11 & 1) == 0) { + gScreen.bg2.bg0Control++; + } + + if ((sub_080AD84C() == 2) || (gScreen.bg2.bg0Control == 0)) { + gMenu.overlayType++; + gScreen.bg2.bg0Control = 0; + gScreen.bg1.unk = 0xc09; + gUnk_03000FD0.field_0x4 = 0x40; + DoFade(6,0x10); + PlaySFX(0xf8); + } + } + break; + case 1: + if (gUnk_03000FD0.field_0x0 == '\0') { + gUnk_03000FD0.field_0x4 = -1; + gMenu.overlayType++; + gMenu.transitionTimer = 0x5a; + pEVar2 = CreateObject(0xb4,0,0); + if (pEVar2 != NULL) { + pEVar2->x.HALF.HI = 0; + pEVar2->y.HALF.HI = 0x48; + } + } + break; + case 2: + if (sub_080AD84C()) { + gMenu.menuType++; + gMenu.transitionTimer = 0x3c; + } + } } \ No newline at end of file diff --git a/src/sub_080AD644.c b/src/sub_080AD644.c deleted file mode 100644 index 059c544b..00000000 --- a/src/sub_080AD644.c +++ /dev/null @@ -1,15 +0,0 @@ -#include "global.h" - -extern s32 sub_080ADA14(u32, u32); -extern u16 gUnk_03001010[4]; - -void sub_080AD644(void) { - - gUnk_03001010[2] = 0; - gUnk_03001010[3] = 0; - gUnk_03001010[4] = 57376; - gUnk_03001010[0] = 120; - gUnk_03001010[1] = 152; - sub_080ADA14(511, 1); - return; -} From cb24f8f9b14128f67335f8c4dfe65fa345039e3d Mon Sep 17 00:00:00 2001 From: theo3 Date: Wed, 22 Jul 2020 01:13:59 -0700 Subject: [PATCH 060/158] room.c named rest of flags --- include/flags.h | 18 ++++---- src/room.c | 118 ++++++++++++++++++++++++------------------------ 2 files changed, 68 insertions(+), 68 deletions(-) diff --git a/include/flags.h b/include/flags.h index 27595e70..d8f0aea5 100644 --- a/include/flags.h +++ b/include/flags.h @@ -30,15 +30,15 @@ extern u32 gRoomFlags; enum { NONE, - /*0x01*/ LV0_CLEAR, /* Simulation Lv. 0 */ - /*0x02*/ LV1_CLEAR, /* Simulation Lv. 1 */ - /*0x03*/ LV2_CLEAR, /* Simulation Lv. 2 */ - /*0x04*/ LV3_CLEAR, /* Simulation Lv. 3 */ - /*0x05*/ LV4_CLEAR, /* Simulation Lv. 4 */ - /*0x06*/ LV5_CLEAR, /* Simulation Lv. 5 */ - /*0x07*/ LV6_CLEAR, /* Simulation Lv. 6 */ - /*0x08*/ LV7_CLEAR, /* Simulation Lv. 7 */ - /*0x09*/ LV8_CLEAR, /* Simulation Lv. 8 */ + /*0x01*/ LV0_CLEAR, /* */ + /*0x02*/ LV1_CLEAR, /* */ + /*0x03*/ LV2_CLEAR, /* */ + /*0x04*/ LV3_CLEAR, /* */ + /*0x05*/ LV4_CLEAR, /* */ + /*0x06*/ LV5_CLEAR, /* */ + /*0x07*/ LV6_CLEAR, /* */ + /*0x08*/ LV7_CLEAR, /* */ + /*0x09*/ LV8_CLEAR, /* */ /*0x0a*/ MACHI_SET_1, /* Defeated Big Green Chuchu */ /*0x0b*/ MACHI_SET_2, /* Defeated Gleerok */ /*0x0c*/ MACHI_SET_3, /* */ diff --git a/src/room.c b/src/room.c index 64bf1c23..f17aca03 100644 --- a/src/room.c +++ b/src/room.c @@ -4451,13 +4451,13 @@ extern EntityData gUnk_080F0920; void sub_0804E27C(void) { - if (!CheckGlobalFlag(0x15)) { + if (!CheckGlobalFlag(TABIDACHI)) { LoadRoomEntityList(&gUnk_080F0650); gArea.pMusicIndex = 0x13; - SetGlobalFlag(100); + SetGlobalFlag(CASTLE_BGM); } else { - if (CheckGlobalFlag(100)) { + if (CheckGlobalFlag(CASTLE_BGM)) { gArea.pMusicIndex = 0x1b; } } @@ -4513,7 +4513,7 @@ extern EntityData gUnk_080F1C88; void sub_0804E460(void) { - if (!CheckGlobalFlag(0x4a)) { + if (!CheckGlobalFlag(POWERGLOVE_HINT)) { LoadRoomEntityList(&gUnk_080F1C68); } else { @@ -4531,11 +4531,11 @@ extern EntityData gUnk_080F1DD0; void sub_0804E488(void) { - if (CheckGlobalFlag(0x2e)) { + if (CheckGlobalFlag(NEW_HOUSE_DIN)) { LoadRoomEntityList(&gUnk_080F1D90); - } else if (CheckGlobalFlag(0x2f)) { + } else if (CheckGlobalFlag(NEW_HOUSE_NAYRU)) { LoadRoomEntityList(&gUnk_080F1DB0); - } else if (CheckGlobalFlag(0x30)) { + } else if (CheckGlobalFlag(NEW_HOUSE_FARORE)) { LoadRoomEntityList(&gUnk_080F1DD0); } } @@ -4565,7 +4565,7 @@ void sub_0804E4E4(void) LoadRoomEntityList(&gUnk_080F2174); // picori legend book - if (!GetInventoryValue(0x3a) && CheckGlobalFlag(0x2a)) { + if (!GetInventoryValue(0x3a) && CheckGlobalFlag(MIZUKAKI_HARIFALL)) { LoadRoomEntityList(&gUnk_080F2194); } if (gUnk_030010A0.field_0xa[5] == 1) { @@ -4588,7 +4588,7 @@ void sub_0804E52C(void) LoadRoomEntityList(&gUnk_080F23BC); } // flippers - if (!GetInventoryValue(0x46) && CheckGlobalFlag(0x29)) { + if (!GetInventoryValue(0x46) && CheckGlobalFlag(MIZUKAKI_START)) { LoadRoomEntityList(&gUnk_080F238C); } else { @@ -4619,7 +4619,7 @@ void sub_0804E574(void) case 5: // flippers if (!GetInventoryValue(0x46)) { - if (!CheckGlobalFlag(0x29)) { + if (!CheckGlobalFlag(MIZUKAKI_START)) { LoadRoomEntityList(&gUnk_080F2570); break; } @@ -4680,11 +4680,11 @@ extern EntityData gUnk_080F2914; void sub_0804E684(void) { - if (CheckGlobalFlag(0x2b)) { + if (CheckGlobalFlag(RENTED_HOUSE_DIN)) { LoadRoomEntityList(&gUnk_080F28D4); - } else if (CheckGlobalFlag(0x2c)) { + } else if (CheckGlobalFlag(RENTED_HOUSE_NAYRU)) { LoadRoomEntityList(&gUnk_080F28F4); - } else if (CheckGlobalFlag(0x2d)) { + } else if (CheckGlobalFlag(RENTED_HOUSE_FARORE)) { LoadRoomEntityList(&gUnk_080F2914); } } @@ -4715,11 +4715,11 @@ extern EntityData gUnk_080F2E2C; void sub_0804E6E8(void) { - if (!CheckGlobalFlag(0x49)) { + if (!CheckGlobalFlag(OUTDOOR)) { gArea.musicIndex = gArea.pMusicIndex; PlaySFX(0x800b0036); } - if (!CheckGlobalFlag(0x13)) { + if (!CheckGlobalFlag(START)) { LoadRoomEntityList(&gUnk_080F2E2C); } } @@ -4733,11 +4733,11 @@ extern EntityData gUnk_080F2EC4; void sub_0804E72C(void) { - if (!CheckGlobalFlag(0x49)) { + if (!CheckGlobalFlag(OUTDOOR)) { gArea.musicIndex = gArea.pMusicIndex; PlaySFX(0x800b0036); } - if (!CheckGlobalFlag(0x13)) { + if (!CheckGlobalFlag(START)) { LoadRoomEntityList(&gUnk_080F2E94); } else { @@ -4768,7 +4768,7 @@ extern EntityData gUnk_080F30CC; void sub_0804E7A4(void) { // dog food - if ((GetInventoryValue(0x36) == 1) && !CheckGlobalFlag(0x5b) && + if ((GetInventoryValue(0x36) == 1) && !CheckGlobalFlag(BIN_DOGFOOD) && (gLinkState.flags.all & 0x80) == 0) { LoadRoomEntityList(&gUnk_080F30CC); } @@ -4785,13 +4785,13 @@ extern u32 gUnk_08009B30; void sub_0804E7DC(void) { - if (!CheckGlobalFlag(0x13) && !CheckLocalFlag(0x46)) { + if (!CheckGlobalFlag(START) && !CheckLocalFlag(0x46)) { sub_080A71C4(5, 1, 4, 4); gUnk_02000070 = 0; DoFade(5, 0x100); sub_080751E8(0, 6, &gUnk_08009B30); } - if (!CheckGlobalFlag(0x49)) { + if (!CheckGlobalFlag(OUTDOOR)) { gArea.musicIndex = gArea.pMusicIndex; PlaySFX(0x800b0036); } @@ -4845,7 +4845,7 @@ extern EntityData gUnk_080F3604; void sub_0804E8FC(void) { - if (!CheckGlobalFlag(0x1d)) { + if (!CheckGlobalFlag(INLOCK)) { LoadRoomEntityList(&gUnk_080F36FC); } else if (gUnk_02002A40.field_0x8 < 4) { @@ -4861,7 +4861,7 @@ extern EntityData gUnk_080F37D0; void sub_0804E930(void) { - if (CheckGlobalFlag(0x1d)) { + if (CheckGlobalFlag(INLOCK)) { LoadRoomEntityList(&gUnk_080F37D0); } } @@ -4881,7 +4881,7 @@ extern EntityData gUnk_080F3A48; void sub_0804E954(void) { // flippers, history of masks - if (!GetInventoryValue(0x46) && CheckGlobalFlag(0x29) && !GetInventoryValue(0x3b)) { + if (!GetInventoryValue(0x46) && CheckGlobalFlag(MIZUKAKI_START) && !GetInventoryValue(0x3b)) { LoadRoomEntityList(&gUnk_080F3A48); } gUnk_030010A0.field_0x20 = 0xf28; @@ -4893,7 +4893,7 @@ extern u32 gUnk_080F3EA4; u32 sub_0804E998(void) { - if (CheckGlobalFlag(5) && !CheckLocalFlag(4)) { + if (CheckGlobalFlag(LV4_CLEAR) && !CheckLocalFlag(4)) { gRoomVars.field_0x74 = &gUnk_080F3EA4; } else { @@ -4908,13 +4908,13 @@ extern EntityData gUnk_080F3C44; void sub_0804E9D0(void) { - if (CheckGlobalFlag(5) && !CheckLocalFlag(4)) { + if (CheckGlobalFlag(LV4_CLEAR) && !CheckLocalFlag(4)) { LoadRoomEntityList(&gUnk_080F3C64); } if (CheckKinstoneFused(0x12)) { LoadRoomEntityList(&gUnk_080F3C94); } - if ((gUnk_02002A40.field_0x8 > 3) && CheckGlobalFlag(0x5c)) { + if ((gUnk_02002A40.field_0x8 > 3) && CheckGlobalFlag(TINGLE_TALK1ST)) { LoadRoomEntityList(&gUnk_080F3C44); } SetTile(0x4091, 0x590, 1); @@ -5042,7 +5042,7 @@ extern u32 gUnk_080F4EB0; u32 sub_0804EBDC(void) { - if (CheckGlobalFlag(0x51)) { + if (CheckGlobalFlag(ENDING)) { gRoomVars.field_0x6c = &gUnk_080F4EB0; gRoomVars.field_0x74 = NULL; } @@ -5058,10 +5058,10 @@ extern EntityData gUnk_080F4E10; void sub_0804EC00(void) { - if (CheckGlobalFlag(0x51)) { + if (CheckGlobalFlag(ENDING)) { gArea.pMusicIndex = gArea.musicIndex; } - if (!CheckGlobalFlag(0x14)) { + if (!CheckGlobalFlag(EZERO_1ST)) { LoadRoomEntityList(&gUnk_080F4D50); } if (!CheckLocalFlag(0x3e)) { @@ -5100,7 +5100,7 @@ extern u32 gUnk_080F5348; u32 sub_0804ECBC(void) { - if (CheckGlobalFlag(0x51)) { + if (CheckGlobalFlag(ENDING)) { gRoomVars.field_0x6c = &gUnk_080F5348; gRoomVars.field_0x88 = sub_0804ED18; gRoomVars.field_0x74 = NULL; @@ -5134,7 +5134,7 @@ u32 sub_0804ED30() { void sub_0804ED34(void) { sub_080AF2E4(); - if (CheckGlobalFlag(0x5d)) { + if (CheckGlobalFlag(SEIIKI_BGM)) { gArea.pMusicIndex = 0x31; } } @@ -5191,7 +5191,7 @@ void sub_0804ED5C(void) if (CheckLocalFlag(0x7c)) { LoadRoomEntityList(&gUnk_080F55B8); } - if (CheckGlobalFlag(0x5d)) { + if (CheckGlobalFlag(SEIIKI_BGM)) { gArea.pMusicIndex = 0x31; } } @@ -5207,7 +5207,7 @@ void sub_0804EE78(void) if (!CheckLocalFlag(0x78) && CheckLocalFlag(0x7c)) { LoadRoomEntityList(&gUnk_080F5660); } - if (CheckGlobalFlag(0x5d)) { + if (CheckGlobalFlag(SEIIKI_BGM)) { gArea.pMusicIndex = 0x31; } } @@ -5251,7 +5251,7 @@ void sub_0804EEBC(void) } } } - if (GetInventoryValue(0x9) || CheckGlobalFlag(4)) { + if (GetInventoryValue(0x9) || CheckGlobalFlag(LV3_CLEAR)) { LoadRoomEntityList(&gUnk_080F5868); if (!CheckLocalFlag(0x56)) { LoadRoomEntityList(&gUnk_080F5828); @@ -5291,7 +5291,7 @@ void nullsub_398() {} u32 sub_0804EFDC(void) { - if (CheckGlobalFlag(0x50)) { + if (CheckGlobalFlag(MAROYA_WAKEUP)) { gUnk_030010A0.field_0xa[5] = 5; } return 1; @@ -5305,7 +5305,7 @@ void sub_0804EFF8(void) if (gUnk_02002A40.field_0x8 > 7) { LoadRoomEntityList(&gUnk_080F5DD0); } - if (CheckGlobalFlag(0x50)) { + if (CheckGlobalFlag(MAROYA_WAKEUP)) { sub_080751E8(1, 2, &gUnk_08011C50); } } @@ -5359,8 +5359,8 @@ void nullsub_400() {} u32 sub_0804F09C(void) { - if (CheckGlobalFlag(0x24) && CheckLocalFlagByOffset(0x100, 0xdc)) { - SetGlobalFlag(0x58); + if (CheckGlobalFlag(KUMOTATSUMAKI) && CheckLocalFlagByOffset(0x100, 0xdc)) { + SetGlobalFlag(WARP_EVENT_END); } return 1; } @@ -5375,7 +5375,7 @@ void sub_0804F0C0(void) if (CheckKinstoneFused(0xf)) { LoadRoomEntityList(&gUnk_080F61BC); } - if (!CheckGlobalFlag(0x58)) { + if (!CheckGlobalFlag(WARP_EVENT_END)) { SetTileType(0x4072, 0x4c7, 1); SetTileType(0x4072, 0x507, 1); } @@ -5391,7 +5391,7 @@ extern EntityData gUnk_080F6324; void sub_0804F12C(void) { - if (!CheckGlobalFlag(0x58)) { + if (!CheckGlobalFlag(WARP_EVENT_END)) { LoadRoomEntityList(&gUnk_080F62E4); } else { @@ -5434,7 +5434,7 @@ extern EntityData gUnk_080F66AC; void sub_0804F190(void) { sub_0805B4D0(5); - if (CheckGlobalFlag(6) && !CheckLocalFlagByOffset(0x100, 5)) { + if (CheckGlobalFlag(LV5_CLEAR) && !CheckLocalFlagByOffset(0x100, 5)) { LoadRoomEntityList(&gUnk_080F66AC); } sub_08052CA4(8, 0, 0x1e8, 0x158); @@ -5514,7 +5514,7 @@ u32 sub_0804F23C(void) if (!CheckLocalFlag(0x6d)) { DoFade(7, 0x100); } - SetGlobalFlag(0x49); + SetGlobalFlag(OUTDOOR); return 1; } @@ -5527,9 +5527,9 @@ void sub_0804F25C(void) sub_0805ADD8(0); if (!CheckLocalFlag(0x6d)) { LoadRoomEntityList(&gUnk_080F70A8); - ClearGlobalFlag(0x1c); + ClearGlobalFlag(ZELDA_CHASE); } - if (!CheckGlobalFlag(0x15)) { + if (!CheckGlobalFlag(TABIDACHI)) { gArea.pMusicIndex = 0x10; } if ((gUnk_02002A40.windcrests & 0x40000000) == 0) { @@ -5608,14 +5608,14 @@ void sub_0804F3B0(void) sub_0805ADD8(0); if (CheckLocalFlagByOffset(0x200, 0x8f)) { - if (!CheckGlobalFlag(0x1d)) { + if (!CheckGlobalFlag(INLOCK)) { LoadRoomEntityList(&gUnk_080F77C0); } } else if (GetInventoryValue(0x40)) { LoadRoomEntityList(&gUnk_080F77F0); } - if (CheckGlobalFlag(0x15) && !GetInventoryValue(0x40)) { + if (CheckGlobalFlag(TABIDACHI) && !GetInventoryValue(0x40)) { LoadRoomEntityList(&gUnk_080F7810); } if (!CheckKinstoneFused(0x29)) { @@ -5623,7 +5623,7 @@ void sub_0804F3B0(void) SetTile(0x4072, 0xd88, 1); SetTile(0x4096, 0xdc8, 1); } - if ((gUnk_02002A40.field_0x8 > 3) && CheckGlobalFlag(0x5c)) { + if ((gUnk_02002A40.field_0x8 > 3) && CheckGlobalFlag(TINGLE_TALK1ST)) { LoadRoomEntityList(&gUnk_080F78A0); } } @@ -5635,17 +5635,17 @@ extern void sub_0804F4E4(); u32 sub_0804F468(void) { - if (CheckGlobalFlag(0x15) && !GetInventoryValue(0x11)) { + if (CheckGlobalFlag(TABIDACHI) && !GetInventoryValue(0x11)) { gRoomVars.field_0x6c = &gUnk_080F7CD0; gRoomVars.field_0x88 = sub_0804F5E8; } - if (CheckGlobalFlag(3) && GetInventoryValue(0x3) && !CheckLocalFlag(0x8c)) { + if (CheckGlobalFlag(LV2_CLEAR) && GetInventoryValue(0x3) && !CheckLocalFlag(0x8c)) { gRoomVars.field_0x6c = &gUnk_080F7C80; gRoomVars.field_0x88 = sub_0804F4E4; gRoomVars.field_0x74 = NULL; } - if (CheckGlobalFlag(0x15)) { - ClearGlobalFlag(100); + if (CheckGlobalFlag(TABIDACHI)) { + ClearGlobalFlag(CASTLE_BGM); } return 1; } @@ -5668,7 +5668,7 @@ void sub_0804F4F4(void) SetTileType(0x174, 0x7a6, 1); SetTileType(0x174, 0x7a7, 1); } - if (!CheckGlobalFlag(0x15)) { + if (!CheckGlobalFlag(TABIDACHI)) { gArea.pMusicIndex = 0x13; } } @@ -5850,7 +5850,7 @@ extern EntityData gUnk_080F806C; void sub_0804FA00(void) { sub_0805ADD8(0); - if ((gUnk_02002A40.field_0x8 > 3) && CheckGlobalFlag(0x5c)) { + if ((gUnk_02002A40.field_0x8 > 3) && CheckGlobalFlag(TINGLE_TALK1ST)) { LoadRoomEntityList(&gUnk_080F806C); } } @@ -5865,7 +5865,7 @@ void sub_0804FA30(void) { sub_0805ADD8(0); - if (CheckGlobalFlag(3) && GetInventoryValue(0x3) && + if (CheckGlobalFlag(LV2_CLEAR) && GetInventoryValue(0x3) && !CheckLocalFlag(0x9c)) { LoadRoomEntityList(&gUnk_080F82E0); } @@ -5896,7 +5896,7 @@ extern EntityData gUnk_080F85D8; void sub_0804FA98(void) { - if (CheckGlobalFlag(0x57)) { + if (CheckGlobalFlag(SOUGEN_06_HASHIGO)) { LoadRoomEntityList(&gUnk_080F85D8); } else { @@ -6395,7 +6395,7 @@ extern u32 gUnk_080FAD48; u32 sub_0804FDE0(void) { - if (CheckGlobalFlag(0x51)) { + if (CheckGlobalFlag(ENDING)) { gRoomVars.field_0x6c = &gUnk_080FAD48; gRoomVars.field_0x74 = NULL; } @@ -6406,7 +6406,7 @@ extern EntityData gUnk_080FACB8; void sub_0804FE04(void) { - if (CheckGlobalFlag(0x51)) { + if (CheckGlobalFlag(ENDING)) { gArea.pMusicIndex = gArea.musicIndex; } else { @@ -6437,14 +6437,14 @@ void sub_0804FE58(void) { sub_0805B4D0(1); - if (CheckGlobalFlag(3) && !CheckLocalFlag(2)) { + if (CheckGlobalFlag(LV2_CLEAR) && !CheckLocalFlag(LV1_CLEAR)) { LoadRoomEntityList(&gUnk_080FAFE4); } if ((gUnk_02002A40.windcrests & 0x1000000) == 0) { LoadRoomEntityList(&gUnk_080FB004); } if (GetInventoryValue(0x2)) { - SetGlobalFlag(0x56); + SetGlobalFlag(WHITE_SWORD_END); } } From 67da19b92c320c282ad9857da4bc41cd042b2b8f Mon Sep 17 00:00:00 2001 From: theo3 Date: Wed, 22 Jul 2020 23:05:12 -0700 Subject: [PATCH 061/158] structures.h --- asm/code_08050038.s | 151 ------------------------------------- asm/drawKinstoneMenu.s | 37 --------- asm/palaceArchway.s | 69 ----------------- include/functions.h | 7 ++ include/structures.h | 43 +++++++++++ linker.ld | 4 +- src/object/palaceArchway.c | 21 ++++++ src/room.c | 34 +-------- src/sub_08050024.c | 104 ++++++++++++++++++++++--- src/sub_080A3B84.c | 21 ++++++ 10 files changed, 188 insertions(+), 303 deletions(-) delete mode 100644 asm/drawKinstoneMenu.s delete mode 100644 asm/palaceArchway.s create mode 100644 include/structures.h create mode 100644 src/object/palaceArchway.c create mode 100644 src/sub_080A3B84.c diff --git a/asm/code_08050038.s b/asm/code_08050038.s index 880da10c..24320ebe 100644 --- a/asm/code_08050038.s +++ b/asm/code_08050038.s @@ -5,157 +5,6 @@ .text - thumb_func_start sub_08050038 -sub_08050038: @ 0x08050038 - push {lr} - adds r3, r0, #0 - ldr r2, _0805004C @ =gUnk_03000FD0 - ldrh r1, [r2, #8] - movs r0, #1 - ands r0, r1 - cmp r0, #0 - beq _08050050 - strh r3, [r2, #0xe] - b _08050052 - .align 2, 0 -_0805004C: .4byte gUnk_03000FD0 -_08050050: - strh r3, [r2, #0xc] -_08050052: - pop {pc} - - thumb_func_start DoFade -DoFade: @ 0x08050054 - push {r4, r5, lr} - adds r5, r0, #0 - ldr r2, _08050078 @ =gUnk_03000FD0 - movs r3, #0 - strh r1, [r2, #0xa] - strh r5, [r2, #8] - movs r0, #1 - strb r0, [r2] - adds r0, #0xff - strh r0, [r2, #0xc] - strh r3, [r2, #0xe] - movs r0, #2 - ands r0, r5 - adds r4, r2, #0 - cmp r0, #0 - beq _0805007C - movs r0, #0xf8 - b _0805007E - .align 2, 0 -_08050078: .4byte gUnk_03000FD0 -_0805007C: - movs r0, #0 -_0805007E: - strb r0, [r4, #2] - movs r0, #8 - ands r0, r5 - cmp r0, #0 - beq _080500A4 - ldr r1, _080500E4 @ =gUnk_03000000 - movs r0, #1 - strb r0, [r1, #2] - ldr r2, _080500E8 @ =gScreen - ldrh r0, [r2, #0x14] - movs r1, #0x40 - orrs r0, r1 - strh r0, [r2, #0x14] - ldrh r0, [r2, #0x20] - orrs r0, r1 - strh r0, [r2, #0x20] - ldrh r0, [r2, #0x2c] - orrs r1, r0 - strh r1, [r2, #0x2c] -_080500A4: - movs r0, #0x10 - ands r0, r5 - cmp r0, #0 - beq _080500E0 - ldrh r0, [r4, #0x16] - ldrh r1, [r4, #0x18] - bl sub_0801E1B8 - movs r1, #0x12 - ldrsh r0, [r4, r1] - movs r2, #0x14 - ldrsh r1, [r4, r2] - movs r3, #0x10 - ldrsh r2, [r4, r3] - bl sub_0801E1EC - movs r0, #1 - ands r0, r5 - cmp r0, #0 - bne _080500E0 - ldrh r1, [r4, #8] - ldr r0, _080500EC @ =0x0000FFFB - ands r0, r1 - strh r0, [r4, #8] - bl sub_08050008 - ldr r1, _080500F0 @ =gUnk_0200B644 - movs r0, #1 - rsbs r0, r0, #0 - str r0, [r1] -_080500E0: - pop {r4, r5, pc} - .align 2, 0 -_080500E4: .4byte gUnk_03000000 -_080500E8: .4byte gScreen -_080500EC: .4byte 0x0000FFFB -_080500F0: .4byte gUnk_0200B644 - - thumb_func_start sub_080500F4 -sub_080500F4: @ 0x080500F4 - ldr r1, _0805010C @ =gUnk_03000FD0 - strh r0, [r1, #0xa] - ldrh r0, [r1, #8] - movs r2, #1 - eors r0, r2 - strh r0, [r1, #8] - strb r2, [r1] - movs r0, #0x80 - lsls r0, r0, #1 - strh r0, [r1, #0xc] - bx lr - .align 2, 0 -_0805010C: .4byte gUnk_03000FD0 - - thumb_func_start sub_08050110 -sub_08050110: @ 0x08050110 - push {r4, r5, r6, lr} - adds r5, r0, #0 - adds r6, r1, #0 - adds r4, r2, #0 - movs r1, #1 - ands r1, r4 - cmp r1, #0 - beq _08050130 - ldr r1, _0805012C @ =gUnk_03000FD0 - movs r0, #0x96 - strh r0, [r1, #0x10] - adds r2, r1, #0 - b _08050136 - .align 2, 0 -_0805012C: .4byte gUnk_03000FD0 -_08050130: - ldr r0, _0805014C @ =gUnk_03000FD0 - strh r1, [r0, #0x10] - adds r2, r0, #0 -_08050136: - movs r1, #0 - strh r5, [r2, #0x12] - strh r6, [r2, #0x14] - ldr r0, _08050150 @ =0x00003F3F - strh r0, [r2, #0x16] - strh r1, [r2, #0x18] - adds r0, r4, #0 - adds r1, r3, #0 - bl DoFade - pop {r4, r5, r6, pc} - .align 2, 0 -_0805014C: .4byte gUnk_03000FD0 -_08050150: .4byte 0x00003F3F - thumb_func_start sub_08050154 sub_08050154: @ 0x08050154 push {r4, r5, r6, lr} diff --git a/asm/drawKinstoneMenu.s b/asm/drawKinstoneMenu.s deleted file mode 100644 index f5c49d5b..00000000 --- a/asm/drawKinstoneMenu.s +++ /dev/null @@ -1,37 +0,0 @@ - .include "asm/macros.inc" - - .include "constants/constants.inc" - - .syntax unified - - .text - - thumb_func_start sub_080A3B84 -sub_080A3B84: @ 0x080A3B84 - push {r4, r5, lr} - ldr r4, _080A3BC4 @ =gUnk_030010A0 - adds r4, #0x2c - movs r5, #0 - movs r0, #2 - strb r0, [r4] - bl sub_080AD90C - ldr r1, _080A3BC8 @ =gUnk_081280C4 - ldr r0, _080A3BCC @ =gMenu - ldrb r0, [r0, #5] - lsls r0, r0, #2 - adds r0, r0, r1 - ldr r0, [r0] - bl _call_via_r0 - bl sub_080A3B74 - bl sub_080A4054 - bl sub_0801C1D4 - bl sub_0801C208 - bl sub_0805E5C0 - bl sub_080AD9B0 - bl sub_080AD918 - strb r5, [r4] - pop {r4, r5, pc} - .align 2, 0 -_080A3BC4: .4byte gUnk_030010A0 -_080A3BC8: .4byte gUnk_081280C4 -_080A3BCC: .4byte gMenu \ No newline at end of file diff --git a/asm/palaceArchway.s b/asm/palaceArchway.s deleted file mode 100644 index a849a4b6..00000000 --- a/asm/palaceArchway.s +++ /dev/null @@ -1,69 +0,0 @@ - .include "asm/macros.inc" - - .include "constants/constants.inc" - - .syntax unified - - .text - - - thumb_func_start PalaceArchway -PalaceArchway: @ 0x0809F288 - push {lr} - ldr r2, _0809F29C @ =gUnk_081246EC - ldrb r1, [r0, #0xc] - lsls r1, r1, #2 - adds r1, r1, r2 - ldr r1, [r1] - bl _call_via_r1 - pop {pc} - .align 2, 0 -_0809F29C: .4byte gUnk_081246EC - - thumb_func_start sub_0809F2A0 -sub_0809F2A0: @ 0x0809F2A0 - push {r4, r5, r6, lr} - movs r1, #1 - strb r1, [r0, #0xc] - ldrb r1, [r0, #0xb] - strb r1, [r0, #0x1e] - ldrb r1, [r0, #0x19] - movs r2, #0xc0 - orrs r1, r2 - strb r1, [r0, #0x19] - adds r3, r0, #0 - adds r3, #0x29 - ldrb r1, [r3] - movs r2, #7 - orrs r1, r2 - strb r1, [r3] - ldr r5, _0809F2EC @ =0x00004069 - movs r2, #0x2e - ldrsh r1, [r0, r2] - ldr r3, _0809F2F0 @ =gRoomControls - ldrh r2, [r3, #6] - subs r1, r1, r2 - asrs r1, r1, #4 - movs r4, #0x3f - ands r1, r4 - movs r6, #0x32 - ldrsh r2, [r0, r6] - ldrh r3, [r3, #8] - subs r2, r2, r3 - asrs r2, r2, #4 - ands r2, r4 - lsls r2, r2, #6 - orrs r1, r2 - adds r0, #0x38 - ldrb r2, [r0] - adds r0, r5, #0 - bl SetTile - pop {r4, r5, r6, pc} - .align 2, 0 -_0809F2EC: .4byte 0x00004069 -_0809F2F0: .4byte gRoomControls - - thumb_func_start nullsub_537 -nullsub_537: @ 0x0809F2F4 - bx lr - .align 2, 0 diff --git a/include/functions.h b/include/functions.h index caace6ff..2ba8c186 100644 --- a/include/functions.h +++ b/include/functions.h @@ -169,4 +169,11 @@ extern void sub_080AD76C(); extern void sub_080AD644(); extern void sub_080ADA14(u32, u32); extern void sub_080AD89C(); +extern void sub_0801E1B8(u32, u32); +extern void sub_0801E1EC(s32, s32, s32); +extern void sub_08050008(void); +extern void sub_080A3B74(void); +extern void sub_080A4054(void); +extern void sub_0801C1D4(void); +extern void sub_0801C208(void); #endif diff --git a/include/structures.h b/include/structures.h new file mode 100644 index 00000000..fb96345d --- /dev/null +++ b/include/structures.h @@ -0,0 +1,43 @@ +#ifndef STRUCTURES_H +#define STRUCTURES_H + +#include "global.h" +#include "entity.h" +#include "link.h" + +typedef struct { + u8 filler[8]; + u8 field_0x8; + u8 field_0x9[0x34]; + u32 windcrests; + u8 field_0x44[0x64]; + Stats stats; +} struct_02002A40; + +extern struct_02002A40 gUnk_02002A40; + +typedef struct { + u8 field_0x0[8]; + u8 field_0x8; + u8 field_0x9; + u8 field_0xa[6]; + union SplitWord field_0x10; + u8 field_0x14[0xc]; + u16 field_0x20; + u16 field_0x22; + u8 field_0x24[0x14]; + u8 field_0x38; + u8 field_0x39; + u16 field_0x3a; + u8 field_0x3c; + u8 filler[6]; + u16 field_0x44; + u16 field_0x46; + u16 field_0x48; + u16 field_0x4a; +} struct_030010A0; + +extern struct_030010A0 gUnk_030010A0; + + +#endif \ No newline at end of file diff --git a/linker.ld b/linker.ld index f48d2678..09c9c7a4 100644 --- a/linker.ld +++ b/linker.ld @@ -832,7 +832,7 @@ SECTIONS { src/object/fan.o(.text); asm/fan.o(.text); asm/objectA0.o(.text); - asm/palaceArchway.o(.text); + src/object/palaceArchway.o(.text); asm/objectA2.o(.text); src/object/cloud.o(.text); asm/minishLight.o(.text); @@ -878,7 +878,7 @@ SECTIONS { asm/code_080A29BC.o(.text); asm/playSFX.o(.text); asm/code_080A3480.o(.text); - asm/drawKinstoneMenu.o(.text); + src/sub_080A3B84.o(.text); asm/code_080A3BD0.o(.text); src/sub_080A554C.o(.text); asm/code_080A5574.o(.text); diff --git a/src/object/palaceArchway.c b/src/object/palaceArchway.c new file mode 100644 index 00000000..1580c20b --- /dev/null +++ b/src/object/palaceArchway.c @@ -0,0 +1,21 @@ +#include "global.h" +#include "entity.h" +#include "room.h" +#include "functions.h" + +extern void (*const gUnk_081246EC[])(Entity*); + +void PalaceArchway(Entity* this) { + gUnk_081246EC[this->action](this); +} + +void sub_0809F2A0(Entity *this) +{ + this->action = 1; + this->frameIndex = this->entityType.parameter; + this->spriteRendering.b3 = 3; + this->spritePriority.b0 = 7; + SetTile(0x4069, COORD_TO_TILE(this), this->collisionLayer); +} + +void nullsub_537() {} \ No newline at end of file diff --git a/src/room.c b/src/room.c index f17aca03..0bef2ef3 100644 --- a/src/room.c +++ b/src/room.c @@ -7,39 +7,7 @@ #include "link.h" #include "screen.h" #include "main.h" - -typedef struct { - u8 field_0x0[8]; - u8 field_0x8; - u8 field_0x9; - u8 field_0xa[6]; - union SplitWord field_0x10; - u8 field_0x14[0xc]; - u16 field_0x20; - u16 field_0x22; - u8 field_0x24[0x14]; - u8 field_0x38; - u8 field_0x39; - u16 field_0x3a; - u8 field_0x3c; - u8 filler[6]; - u16 field_0x44; - u16 field_0x46; - u16 field_0x48; - u16 field_0x4a; -} struct_030010A0; - -typedef struct { - u8 filler[8]; - u8 field_0x8; - u8 field_0x9[0x34]; - u32 windcrests; - u8 field_0x44[0x64]; - Stats stats; -} struct_02002A40; - -extern struct_030010A0 gUnk_030010A0; -extern struct_02002A40 gUnk_02002A40; +#include "structures.h" void sub_0804B3C4(u32 arg0) { sub_0804B29C(arg0); diff --git a/src/sub_08050024.c b/src/sub_08050024.c index 23f50e01..59601810 100644 --- a/src/sub_08050024.c +++ b/src/sub_08050024.c @@ -1,4 +1,35 @@ #include "global.h" +#include "functions.h" +#include "screen.h" + +typedef struct { + u8 field_0x0; + u8 field_0x1; + u8 field_0x2; + u8 field_0x3; + u32 field_0x4; + u16 fadeType; // fade in or out, are there others? + u16 fadeSpeed; // subtracted from duration + u16 fadeDuration; + u16 field_0xe; + s16 field_0x10; + s16 field_0x12; + s16 field_0x14; + u16 field_0x16; + u16 field_0x18; +} struct_03000FD0; + +extern struct_03000FD0 gUnk_03000FD0; + +typedef struct { + u8 field_0x0; + u8 field_0x1; + u8 spritesOffset; +} struct_03000000; + +extern struct_03000000 gUnk_03000000; + +extern u32 gUnk_0200B644; extern void sub_0801E104(); extern void DoFade(u32, u32); @@ -9,14 +40,65 @@ void sub_08050024() { return; } -/* thumb_func_start sub_08050024 -sub_08050024: @ 0x08050024 - push {lr} - bl sub_0801E104 - movs r1, #0x80 - lsls r1, r1, #1 - movs r0, #5 - bl DoFade - pop {pc} - .align 2, 0 - */ +void sub_08050038(u32 arg0) +{ + if ((gUnk_03000FD0.fadeType & 1) != 0) { + gUnk_03000FD0.field_0xe = arg0; + } + else { + gUnk_03000FD0.fadeDuration = arg0; + } +} + +void DoFade(u32 fadeType, u32 fadeSpeed) +{ + gUnk_03000FD0.fadeSpeed = fadeSpeed; + gUnk_03000FD0.fadeType = fadeType; + gUnk_03000FD0.field_0x0 = 1; + gUnk_03000FD0.fadeDuration = 0x100; + gUnk_03000FD0.field_0xe = 0; + if ((gUnk_03000FD0.fadeType & 2) != 0) { + gUnk_03000FD0.field_0x2 = 0xf8; + } + else { + gUnk_03000FD0.field_0x2 = 0; + } + if ((fadeType & 8) != 0) { + gUnk_03000000.spritesOffset = 1; + gScreen.bg1.unk |= 0x40; + gScreen.bg2.unk |= 0x40; + gScreen.affine.unk2 |= 0x40; + } + if ((fadeType & 0x10) != 0) { + sub_0801E1B8(gUnk_03000FD0.field_0x16, gUnk_03000FD0.field_0x18); + sub_0801E1EC(gUnk_03000FD0.field_0x12, gUnk_03000FD0.field_0x14, gUnk_03000FD0.field_0x10); + if ((fadeType & 1) == 0) { + gUnk_03000FD0.fadeType &= 0xfffb; + sub_08050008(); + gUnk_0200B644 = 0xffffffff; + } + } +} + +void sub_080500F4(u32 arg0) +{ + gUnk_03000FD0.fadeSpeed = arg0; + gUnk_03000FD0.fadeType ^= 1; + gUnk_03000FD0.field_0x0 = 1; + gUnk_03000FD0.fadeDuration = 0x100; +} + +void sub_08050110(u32 param_1, u32 param_2, u32 fadeType, u32 fadeSpeed) +{ + if ((fadeType & 1) != 0) { + gUnk_03000FD0.field_0x10 = 0x96; + } + else { + gUnk_03000FD0.field_0x10 = 0; + } + gUnk_03000FD0.field_0x12 = param_1; + gUnk_03000FD0.field_0x14 = param_2; + gUnk_03000FD0.field_0x16 = 0x3f3f; + gUnk_03000FD0.field_0x18 = 0; + DoFade(fadeType, fadeSpeed); +} \ No newline at end of file diff --git a/src/sub_080A3B84.c b/src/sub_080A3B84.c new file mode 100644 index 00000000..1a605c2a --- /dev/null +++ b/src/sub_080A3B84.c @@ -0,0 +1,21 @@ +#include "global.h" +#include "functions.h" +#include "menu.h" +#include "structures.h" + +extern void (*const gUnk_081280C4[])(); + +void DrawKinstoneMenu(void) +{ + gUnk_030010A0.field_0x24[8] = 2; + sub_080AD90C(); + gUnk_081280C4[gMenu.menuType](); + sub_080A3B74(); + sub_080A4054(); + sub_0801C1D4(); + sub_0801C208(); + sub_0805E5C0(); + sub_080AD9B0(); + sub_080AD918(); + gUnk_030010A0.field_0x24[8] = 0; +} \ No newline at end of file From e0cfbb15a5cfc7c4287cc9242abc3b5492dd4895 Mon Sep 17 00:00:00 2001 From: theo3 Date: Wed, 22 Jul 2020 23:06:28 -0700 Subject: [PATCH 062/158] relocate SplitWord, SplitHWord to global.h --- include/entity.h | 14 -------------- include/global.h | 14 ++++++++++++++ 2 files changed, 14 insertions(+), 14 deletions(-) diff --git a/include/entity.h b/include/entity.h index 14b963f3..ef1f6303 100644 --- a/include/entity.h +++ b/include/entity.h @@ -25,20 +25,6 @@ typedef struct { u8 unknown2[4]; } BoundingBox; -union SplitWord { - s32 WORD; - struct { - s16 LO, HI; - } HALF; -}; - -union SplitHWord { - u16 HWORD; - struct { - u8 LO, HI; - } PACKED HALF; -} PACKED; - typedef struct Entity { /*0x00*/ u32* field_0x0; /*0x04*/ u32* field_0x4; diff --git a/include/global.h b/include/global.h index d312b7b2..6738b6b8 100644 --- a/include/global.h +++ b/include/global.h @@ -59,4 +59,18 @@ struct UCoords16 u16 y; }; +union SplitWord { + s32 WORD; + struct { + s16 LO, HI; + } HALF; +}; + +union SplitHWord { + u16 HWORD; + struct { + u8 LO, HI; + } PACKED HALF; +} PACKED; + #endif // GUARD_GLOBAL_H From f4320b6fcd6b95fe96fabc29b2e7e1d4cf7f2fd4 Mon Sep 17 00:00:00 2001 From: theo3 Date: Wed, 22 Jul 2020 23:35:26 -0700 Subject: [PATCH 063/158] Menu struct fixed for good this time --- asm/code_080A3BD0.s | 68 ---------------------------------------- include/functions.h | 7 +++++ include/menu.h | 4 ++- src/introSetTransition.c | 6 ++-- src/sub_080A3B84.c | 40 +++++++++++++++++++++++ 5 files changed, 53 insertions(+), 72 deletions(-) diff --git a/asm/code_080A3BD0.s b/asm/code_080A3BD0.s index 20ecf8e0..3cd69ca3 100644 --- a/asm/code_080A3BD0.s +++ b/asm/code_080A3BD0.s @@ -6,74 +6,6 @@ .text - thumb_func_start sub_080A3BD0 -sub_080A3BD0: @ 0x080A3BD0 - push {r4, lr} - ldr r0, _080A3C54 @ =gMenu - movs r1, #0 - movs r4, #1 - strb r4, [r0, #1] - adds r0, #0x2a - strb r1, [r0] - bl sub_080A4D34 - movs r0, #0xcb - bl LoadPalettesByPaletteGroupIndex - movs r0, #0x75 - bl sub_0801D7EC - bl sub_080A4494 - adds r1, r0, #7 - cmp r1, #0 - bge _080A3BFA - adds r1, #7 -_080A3BFA: - asrs r0, r1, #3 - subs r0, #6 - cmp r0, #0 - bge _080A3C04 - movs r0, #0 -_080A3C04: - cmp r0, #6 - ble _080A3C0A - movs r0, #6 -_080A3C0A: - adds r0, #0x76 - bl sub_0801D7EC - ldr r1, _080A3C58 @ =gScreen - ldrh r2, [r1] - movs r3, #0xf0 - lsls r3, r3, #5 - adds r0, r3, #0 - orrs r0, r2 - strh r0, [r1] - ldr r0, _080A3C5C @ =0x00001C01 - strh r0, [r1, #0x14] - ldr r0, _080A3C60 @ =0x00001D02 - strh r0, [r1, #0x20] - ldr r0, _080A3C64 @ =0x00001E0B - strh r0, [r1, #0x2c] - strh r4, [r1, #0x1a] - strh r4, [r1, #0x26] - strh r4, [r1, #0x32] - bl sub_080A4528 - bl sub_080A4398 - movs r0, #0 - bl sub_0801E738 - ldr r0, _080A3C68 @ =gUnk_081280DC - bl sub_080A70AC - movs r0, #1 - bl sub_080A7114 - movs r0, #6 - movs r1, #8 - bl DoFade - pop {r4, pc} - .align 2, 0 -_080A3C54: .4byte gMenu -_080A3C58: .4byte gScreen -_080A3C5C: .4byte 0x00001C01 -_080A3C60: .4byte 0x00001D02 -_080A3C64: .4byte 0x00001E0B -_080A3C68: .4byte gUnk_081280DC - thumb_func_start sub_080A3C6C sub_080A3C6C: @ 0x080A3C6C push {r4, r5, lr} diff --git a/include/functions.h b/include/functions.h index 2ba8c186..1c316dea 100644 --- a/include/functions.h +++ b/include/functions.h @@ -176,4 +176,11 @@ extern void sub_080A3B74(void); extern void sub_080A4054(void); extern void sub_0801C1D4(void); extern void sub_0801C208(void); +extern void sub_080A4D34(void); +extern u32 sub_080A4494(void); +extern void sub_080A4528(void); +extern void sub_080A4398(void); +extern void sub_0801E738(u32); +extern void sub_080A70AC(void*); +extern void sub_080A7114(u32); #endif diff --git a/include/menu.h b/include/menu.h index 13564462..7da2a591 100644 --- a/include/menu.h +++ b/include/menu.h @@ -19,8 +19,10 @@ typedef struct { typedef struct { u8 field_0x0; - u16 field_0x1; + u8 field_0x1; + u8 field_0x2; u8 field_0x3; + u8 field_0x4; u8 menuType; u8 overlayType; u8 storyPanelIndex; diff --git a/src/introSetTransition.c b/src/introSetTransition.c index 638bf4c6..32bb02c3 100644 --- a/src/introSetTransition.c +++ b/src/introSetTransition.c @@ -117,7 +117,7 @@ void sub_080AD474(void) gMenu.menuType = 1; gMenu.overlayType = 0; gMenu.transitionTimer = 0x1e; - gMenu.field_0x3 = 7; + gMenu.field_0x4 = 7; EraseAllEntities(); sub_080ADD30(sub_0801CFA8(0)); gUnk_02024490 = 1; @@ -191,8 +191,8 @@ void sub_080AD474(void) sub_080ADA14(0x1ff,0); } } - if (gMenu.field_0x3 != ((struct_02000000*)0x2000000)->gameLanguage) { - gMenu.field_0x3 = ((struct_02000000*)0x2000000)->gameLanguage; + if (gMenu.field_0x4 != ((struct_02000000*)0x2000000)->gameLanguage) { + gMenu.field_0x4 = ((struct_02000000*)0x2000000)->gameLanguage; sub_0801D7EC(3); } sub_080AD89C(); diff --git a/src/sub_080A3B84.c b/src/sub_080A3B84.c index 1a605c2a..80eff685 100644 --- a/src/sub_080A3B84.c +++ b/src/sub_080A3B84.c @@ -2,6 +2,7 @@ #include "functions.h" #include "menu.h" #include "structures.h" +#include "screen.h" extern void (*const gUnk_081280C4[])(); @@ -18,4 +19,43 @@ void DrawKinstoneMenu(void) sub_080AD9B0(); sub_080AD918(); gUnk_030010A0.field_0x24[8] = 0; +} + +extern void gUnk_081280DC; + +void sub_080A3BD0(void) +{ + s32 iVar1; + s32 iVar2; + + gMenu.field_0x1 = 1; + gMenu.field_0x12[0x17] = 0; + sub_080A4D34(); + LoadPalettesByPaletteGroupIndex(0xcb); + sub_0801D7EC(0x75); + + iVar1 = sub_080A4494(); + iVar2 = iVar1 + 7; + if (iVar2 < 0) { + iVar2 += 0x7; + } + + iVar1 = (iVar2 >> 3) - 6; + iVar1 = max(iVar1, 0); + iVar1 = min(iVar1, 6); + + sub_0801D7EC(iVar1 + 0x76); + gScreen.lcd.lcdControl2 |= 0x1e00; + gScreen.bg1.unk = 0x1c01; + gScreen.bg2.unk = 0x1d02; + gScreen.affine.unk2 = 0x1e0b; + gScreen.bg2.bg0xOffset = 1; + gScreen.affine.bg2xOffset = 1; + gScreen.affine.bg3xOffset = 1; + sub_080A4528(); + sub_080A4398(); + sub_0801E738(0); + sub_080A70AC(&gUnk_081280DC); + sub_080A7114(1); + DoFade(6, 8); } \ No newline at end of file From 2d286c0b34506a3c52b92bd3655ccce666cb580a Mon Sep 17 00:00:00 2001 From: theo3 Date: Thu, 23 Jul 2020 22:48:16 -0700 Subject: [PATCH 064/158] rupeeLike.c OK --- asm/armos.s | 2 +- asm/code_080011C4.s | 4 +- asm/code_08003FC4.s | 6 +- asm/code_080041E8.s | 6 +- asm/code_0806FA6C.s | 8 +- asm/code_08070698.s | 2 +- asm/code_080A5574.s | 4 +- asm/gyorgFemaleEye.s | 4 +- asm/helmasaur.s | 4 +- asm/likeLike.s | 4 +- asm/object29.s | 2 +- asm/object6A.s | 2 +- asm/objectC1.s | 2 +- asm/octorokGolden.s | 4 +- asm/peahat.s | 8 +- asm/rope.s | 2 +- asm/ropeGolden.s | 4 +- asm/rupeeLike.s | 754 -------------------------------------- asm/spinyBeetle.s | 2 +- asm/tektite.s | 2 +- asm/tektiteGolden.s | 206 +---------- include/entity.h | 12 +- include/functions.h | 15 + include/link.h | 2 +- linker.ld | 3 +- src/enemy/bombPeahat.c | 2 +- src/enemy/octorok.c | 4 +- src/enemy/rupeeLike.c | 281 ++++++++++++++ src/enemy/tektiteGolden.c | 108 ++++++ src/item11.c | 2 +- src/npc/forestMinish.c | 8 +- src/npc/goron.c | 4 +- src/npc/smith.c | 4 +- src/npc/syrup.c | 2 +- src/npc/zelda.c | 12 +- src/object/object1C.c | 2 +- src/object/well.c | 6 +- 37 files changed, 477 insertions(+), 1022 deletions(-) delete mode 100644 asm/rupeeLike.s create mode 100644 src/enemy/rupeeLike.c create mode 100644 src/enemy/tektiteGolden.c diff --git a/asm/armos.s b/asm/armos.s index 31a0c733..f8c539ab 100644 --- a/asm/armos.s +++ b/asm/armos.s @@ -237,7 +237,7 @@ sub_08030338: @ 0x08030338 _0803034C: adds r0, r4, #0 movs r1, #3 - bl InitializeAnimationAnimation + bl UpdateAnimationVariableFrames adds r0, r4, #0 adds r0, #0x84 ldr r0, [r0] diff --git a/asm/code_080011C4.s b/asm/code_080011C4.s index 3e1c1675..6296d255 100644 --- a/asm/code_080011C4.s +++ b/asm/code_080011C4.s @@ -68,7 +68,7 @@ _08001230: beq _0800123E strb r1, [r0, #0xe] movs r1, #4 - ldr r3, _0800135C @ =InitializeAnimationAnimation + ldr r3, _0800135C @ =UpdateAnimationVariableFrames bx r3 _0800123E: ldr r3, _08001360 @ =sub_080043B4 @@ -238,7 +238,7 @@ _08001352: bx lr .align 2, 0 _08001358: .4byte gEnemyFunctions -_0800135C: .4byte InitializeAnimationAnimation +_0800135C: .4byte UpdateAnimationVariableFrames _08001360: .4byte sub_080043B4 _08001364: .4byte 0x00001800 _08001368: .4byte gUnk_080012C8 diff --git a/asm/code_08003FC4.s b/asm/code_08003FC4.s index c14abb66..0fa902ed 100644 --- a/asm/code_08003FC4.s +++ b/asm/code_08003FC4.s @@ -431,8 +431,8 @@ InitializeAnimation: @ 0x08004260 GetNextFrame: @ 0x08004274 movs r1, #1 - non_word_aligned_thumb_func_start InitializeAnimationAnimation -InitializeAnimationAnimation: @ 0x08004276 + non_word_aligned_thumb_func_start UpdateAnimationVariableFrames +UpdateAnimationVariableFrames: @ 0x08004276 movs r3, #0x59 ldrb r2, [r0, r3] subs r2, r2, r1 @@ -478,7 +478,7 @@ UpdateAnimationSingleFrame: @ 0x080042B8 non_word_aligned_thumb_func_start sub_080042BA sub_080042BA: @ 0x080042BA push {lr} - bl InitializeAnimationAnimation + bl UpdateAnimationVariableFrames _080042C0: pop {r1} mov lr, r1 diff --git a/asm/code_080041E8.s b/asm/code_080041E8.s index 1377f76e..2ebb96fb 100644 --- a/asm/code_080041E8.s +++ b/asm/code_080041E8.s @@ -97,8 +97,8 @@ InitializeAnimation: @ 0x08004260 GetNextFrame: @ 0x08004274 movs r1, #1 - non_word_aligned_thumb_func_start InitializeAnimationAnimation -InitializeAnimationAnimation: @ 0x08004276 + non_word_aligned_thumb_func_start UpdateAnimationVariableFrames +UpdateAnimationVariableFrames: @ 0x08004276 movs r3, #0x59 ldrb r2, [r0, r3] subs r2, r2, r1 @@ -144,7 +144,7 @@ UpdateAnimationSingleFrame: @ 0x080042B8 non_word_aligned_thumb_func_start sub_080042BA sub_080042BA: @ 0x080042BA push {lr} - bl InitializeAnimationAnimation + bl UpdateAnimationVariableFrames _080042C0: pop {r1} mov lr, r1 diff --git a/asm/code_0806FA6C.s b/asm/code_0806FA6C.s index 893ae0f3..7764e708 100644 --- a/asm/code_0806FA6C.s +++ b/asm/code_0806FA6C.s @@ -671,7 +671,7 @@ SetSpriteSubEntryOffsetData1: @ 0x0806FF88 adds r4, r4, r2 ldrh r0, [r5, #2] ldrb r1, [r5, #1] - bl sub_080700C8 + bl GetSpriteSubEntryOffsetDataPointer ldrb r1, [r5, #6] ldrb r2, [r0] adds r1, r1, r2 @@ -715,7 +715,7 @@ SetSpriteSubEntryOffsetData2: @ 0x0806FFD8 adds r4, r4, r2 ldrh r0, [r5, #2] ldrb r1, [r5, #1] - bl sub_080700C8 + bl GetSpriteSubEntryOffsetDataPointer ldrb r1, [r5, #6] ldrb r2, [r0, #2] adds r1, r1, r2 @@ -826,8 +826,8 @@ _080700C4: _080700C6: pop {pc} - thumb_func_start sub_080700C8 -sub_080700C8: @ 0x080700C8 + thumb_func_start GetSpriteSubEntryOffsetDataPointer +GetSpriteSubEntryOffsetDataPointer: @ 0x080700C8 lsls r0, r0, #1 ldr r2, _080700E4 @ =gUnk_089FB780 adds r0, r0, r2 diff --git a/asm/code_08070698.s b/asm/code_08070698.s index 0d0a082f..2e64ca42 100644 --- a/asm/code_08070698.s +++ b/asm/code_08070698.s @@ -1131,7 +1131,7 @@ sub_08070F50: @ 0x08070F50 bl PositionEntityOnTop ldrh r0, [r4, #0x12] ldrb r1, [r4, #0x1e] - bl sub_080700C8 + bl GetSpriteSubEntryOffsetDataPointer ldrb r1, [r0] adds r2, r5, #0 adds r2, #0x62 diff --git a/asm/code_080A5574.s b/asm/code_080A5574.s index ac9fe0fd..1655baf1 100644 --- a/asm/code_080A5574.s +++ b/asm/code_080A5574.s @@ -9785,7 +9785,7 @@ _080AA052: _080AA05E: ldrh r0, [r5, #0x12] ldrb r1, [r5, #0x1e] - bl sub_080700C8 + bl GetSpriteSubEntryOffsetDataPointer adds r3, r0, #0 ldrb r1, [r5, #0x14] movs r0, #4 @@ -9989,7 +9989,7 @@ _080AA1EC: bne _080AA26C ldrh r0, [r4, #0x12] ldrb r1, [r4, #0x1e] - bl sub_080700C8 + bl GetSpriteSubEntryOffsetDataPointer adds r3, r0, #0 ldrb r1, [r4, #0x14] movs r0, #4 diff --git a/asm/gyorgFemaleEye.s b/asm/gyorgFemaleEye.s index 8d9e294c..174b71e2 100644 --- a/asm/gyorgFemaleEye.s +++ b/asm/gyorgFemaleEye.s @@ -391,7 +391,7 @@ _08048C6C: bl InitializeAnimation adds r0, r4, #0 movs r1, #7 - bl InitializeAnimationAnimation + bl UpdateAnimationVariableFrames adds r1, r6, #0 ldrb r4, [r4, #0xa] lsls r1, r4 @@ -419,7 +419,7 @@ _08048CBC: movs r1, #0x1c ands r1, r0 adds r0, r4, #0 - bl InitializeAnimationAnimation + bl UpdateAnimationVariableFrames _08048CE4: adds r0, r4, #0 bl GetNextFrame diff --git a/asm/helmasaur.s b/asm/helmasaur.s index 661bb6de..007bf3fd 100644 --- a/asm/helmasaur.s +++ b/asm/helmasaur.s @@ -238,7 +238,7 @@ sub_0802BD10: @ 0x0802BD10 ands r1, r2 strb r1, [r0, #0x10] movs r1, #2 - bl InitializeAnimationAnimation + bl UpdateAnimationVariableFrames pop {pc} .align 2, 0 @@ -380,7 +380,7 @@ sub_0802BE18: @ 0x0802BE18 push {r4, lr} adds r4, r0, #0 movs r1, #2 - bl InitializeAnimationAnimation + bl UpdateAnimationVariableFrames ldrb r0, [r4, #0xe] subs r0, #1 strb r0, [r4, #0xe] diff --git a/asm/likeLike.s b/asm/likeLike.s index ffa0dba8..cd07a3ec 100644 --- a/asm/likeLike.s +++ b/asm/likeLike.s @@ -412,7 +412,7 @@ sub_0802805C: @ 0x0802805C push {r4, r5, lr} adds r5, r0, #0 movs r1, #2 - bl InitializeAnimationAnimation + bl UpdateAnimationVariableFrames bl sub_0807953C cmp r0, #0 beq _0802807E @@ -454,7 +454,7 @@ _0802809C: bl PositionRelative ldrh r0, [r5, #0x12] ldrb r1, [r5, #0x1e] - bl sub_080700C8 + bl GetSpriteSubEntryOffsetDataPointer ldrb r1, [r0] adds r2, r4, #0 adds r2, #0x62 diff --git a/asm/object29.s b/asm/object29.s index e77d8f33..8c442a10 100644 --- a/asm/object29.s +++ b/asm/object29.s @@ -23,7 +23,7 @@ Object29: @ 0x08089848 ands r1, r0 adds r1, #1 adds r0, r4, #0 - bl InitializeAnimationAnimation + bl UpdateAnimationVariableFrames pop {r4, pc} .align 2, 0 _08089870: .4byte gUnk_08120D90 diff --git a/asm/object6A.s b/asm/object6A.s index 057c0c45..7d20335b 100644 --- a/asm/object6A.s +++ b/asm/object6A.s @@ -2269,7 +2269,7 @@ _08095BAC: strb r0, [r5, #0x18] ldrh r0, [r2, #0x12] ldrb r1, [r2, #0x1e] - bl sub_080700C8 + bl GetSpriteSubEntryOffsetDataPointer ldrb r1, [r0] adds r2, r5, #0 adds r2, #0x62 diff --git a/asm/objectC1.s b/asm/objectC1.s index 0f96d975..0a6016cb 100644 --- a/asm/objectC1.s +++ b/asm/objectC1.s @@ -256,7 +256,7 @@ _080A273C: bl PositionEntityOnTop ldrh r0, [r4, #0x12] ldrb r1, [r4, #0x1e] - bl sub_080700C8 + bl GetSpriteSubEntryOffsetDataPointer ldrb r1, [r0] adds r2, r5, #0 adds r2, #0x62 diff --git a/asm/octorokGolden.s b/asm/octorokGolden.s index 3c805d39..751b16af 100644 --- a/asm/octorokGolden.s +++ b/asm/octorokGolden.s @@ -133,7 +133,7 @@ _08037D1C: _08037D26: adds r0, r4, #0 movs r1, #2 - bl InitializeAnimationAnimation + bl UpdateAnimationVariableFrames adds r0, r4, #0 bl sub_080AEF88 cmp r0, #0 @@ -158,7 +158,7 @@ sub_08037D54: @ 0x08037D54 push {r4, lr} adds r4, r0, #0 movs r1, #2 - bl InitializeAnimationAnimation + bl UpdateAnimationVariableFrames adds r2, r4, #0 adds r2, #0x5a ldrb r1, [r2] diff --git a/asm/peahat.s b/asm/peahat.s index 8e1cce5b..cb26fd33 100644 --- a/asm/peahat.s +++ b/asm/peahat.s @@ -403,7 +403,7 @@ sub_08020220: @ 0x08020220 movs r1, #4 subs r1, r1, r0 adds r0, r5, #0 - bl InitializeAnimationAnimation + bl UpdateAnimationVariableFrames b _08020292 _0802024C: movs r0, #3 @@ -437,7 +437,7 @@ _08020284: _0802028A: adds r0, r5, #0 movs r1, #4 - bl InitializeAnimationAnimation + bl UpdateAnimationVariableFrames _08020292: pop {r4, r5, pc} @@ -495,7 +495,7 @@ _080202F8: _080202FE: adds r0, r4, #0 movs r1, #4 - bl InitializeAnimationAnimation + bl UpdateAnimationVariableFrames pop {r4, pc} thumb_func_start sub_08020308 @@ -533,7 +533,7 @@ _08020340: bl sub_080AEFE0 adds r0, r4, #0 movs r1, #4 - bl InitializeAnimationAnimation + bl UpdateAnimationVariableFrames _0802034E: pop {r4, pc} diff --git a/asm/rope.s b/asm/rope.s index f50525be..49a1a076 100644 --- a/asm/rope.s +++ b/asm/rope.s @@ -324,7 +324,7 @@ sub_080315BC: @ 0x080315BC strb r0, [r4, #0xe] adds r0, r4, #0 movs r1, #2 - bl InitializeAnimationAnimation + bl UpdateAnimationVariableFrames b _080315FC _080315D4: adds r0, r4, #0 diff --git a/asm/ropeGolden.s b/asm/ropeGolden.s index 7b6e7b10..f61b871f 100644 --- a/asm/ropeGolden.s +++ b/asm/ropeGolden.s @@ -150,7 +150,7 @@ _080382B8: .4byte gLinkEntity _080382BC: adds r0, r4, #0 movs r1, #2 - bl InitializeAnimationAnimation + bl UpdateAnimationVariableFrames adds r0, r4, #0 bl sub_080AEF88 cmp r0, #0 @@ -192,7 +192,7 @@ sub_08038304: @ 0x08038304 push {r4, r5, r6, lr} adds r4, r0, #0 movs r1, #2 - bl InitializeAnimationAnimation + bl UpdateAnimationVariableFrames adds r0, r4, #0 bl sub_080AEF88 cmp r0, #0 diff --git a/asm/rupeeLike.s b/asm/rupeeLike.s deleted file mode 100644 index 72b5a3c8..00000000 --- a/asm/rupeeLike.s +++ /dev/null @@ -1,754 +0,0 @@ - .include "asm/macros.inc" - - .include "constants/constants.inc" - - .syntax unified - - .text - - - thumb_func_start RupeeLike -RupeeLike: @ 0x080292A0 - push {r4, r5, lr} - adds r5, r0, #0 - ldrb r0, [r5, #0xb] - cmp r0, #0 - bne _080292F8 - adds r0, r5, #0 - bl sub_080043E8 - lsls r0, r0, #0x18 - lsrs r4, r0, #0x18 - cmp r4, #0 - beq _080292CE - ldrb r0, [r5, #0xc] - cmp r0, #4 - bne _080292C4 - adds r0, r5, #0 - bl sub_080296D8 -_080292C4: - adds r0, r5, #0 - adds r1, r4, #0 - bl sub_08001290 - b _080292FE -_080292CE: - ldr r4, _080292F4 @ =gUnk_080CCC00 - adds r0, r5, #0 - bl GetNextFunction - lsls r0, r0, #2 - adds r0, r0, r4 - ldr r1, [r0] - adds r0, r5, #0 - bl _call_via_r1 - movs r3, #0x10 - rsbs r3, r3, #0 - adds r0, r5, #0 - movs r1, #0 - movs r2, #1 - bl SetChildOffset - b _080292FE - .align 2, 0 -_080292F4: .4byte gUnk_080CCC00 -_080292F8: - adds r0, r5, #0 - bl sub_080293DC -_080292FE: - pop {r4, r5, pc} - - thumb_func_start sub_08029300 -sub_08029300: @ 0x08029300 - push {lr} - ldr r2, _08029314 @ =gUnk_080CCC18 - ldrb r1, [r0, #0xc] - lsls r1, r1, #2 - adds r1, r1, r2 - ldr r1, [r1] - bl _call_via_r1 - pop {pc} - .align 2, 0 -_08029314: .4byte gUnk_080CCC18 - - thumb_func_start sub_08029318 -sub_08029318: @ 0x08029318 - push {r4, lr} - adds r4, r0, #0 - adds r0, #0x3f - ldrb r0, [r0] - cmp r0, #0x8e - bne _0802932C - adds r0, r4, #0 - bl sub_08029770 - b _080293A6 -_0802932C: - ldrb r0, [r4, #0xc] - cmp r0, #4 - bne _08029338 - adds r0, r4, #0 - bl sub_080296D8 -_08029338: - ldr r0, [r4, #0x4c] - ldrb r0, [r0, #8] - cmp r0, #1 - bne _08029394 - ldrb r0, [r4, #0xc] - cmp r0, #2 - bne _08029356 - adds r0, r4, #0 - movs r1, #0 - bl InitializeAnimation - ldr r0, [r4, #0x54] - movs r1, #4 - bl InitializeAnimation -_08029356: - movs r1, #0 - movs r0, #4 - strb r0, [r4, #0xc] - movs r0, #0x3c - strb r0, [r4, #0xe] - strb r1, [r4, #0xf] - adds r1, r4, #0 - adds r1, #0x83 - movs r0, #0x41 - strb r0, [r1] - adds r2, r4, #0 - adds r2, #0x3b - ldrb r1, [r2] - movs r0, #0xfc - ands r0, r1 - strb r0, [r2] - ldr r0, _08029390 @ =gLinkEntity - adds r0, #0x29 - ldrb r0, [r0] - lsls r0, r0, #0x1a - lsrs r0, r0, #0x1d - adds r1, r4, #0 - adds r1, #0x80 - strb r0, [r1] - movs r0, #0x82 - lsls r0, r0, #1 - bl sub_08004488 - b _080293A6 - .align 2, 0 -_08029390: .4byte gLinkEntity -_08029394: - adds r0, r4, #0 - adds r0, #0x43 - ldrb r0, [r0] - cmp r0, #0 - beq _080293A6 - adds r0, r4, #0 - movs r1, #0x1c - bl sub_0804A9FC -_080293A6: - ldr r1, _080293B0 @ =gUnk_080CCC00 - adds r0, r4, #0 - bl sub_0804AA30 - pop {r4, pc} - .align 2, 0 -_080293B0: .4byte gUnk_080CCC00 - - thumb_func_start sub_080293B4 -sub_080293B4: @ 0x080293B4 - push {lr} - ldr r3, _080293D4 @ =gUnk_080CCC34 - adds r1, r0, #0 - adds r1, #0x84 - ldrb r2, [r1] - lsls r1, r2, #1 - adds r1, r1, r2 - ldrb r2, [r0, #0xa] - adds r1, r1, r2 - adds r1, r1, r3 - ldrb r2, [r1] - movs r1, #0xff - bl CreateDeathFx - pop {pc} - .align 2, 0 -_080293D4: .4byte gUnk_080CCC34 - - thumb_func_start nullsub_141 -nullsub_141: @ 0x080293D8 - bx lr - .align 2, 0 - - thumb_func_start sub_080293DC -sub_080293DC: @ 0x080293DC - push {r4, lr} - adds r4, r0, #0 - ldr r0, [r4, #0x50] - adds r1, r4, #0 - bl CopyPositionAndSpriteOffset - ldrh r0, [r4, #0x32] - adds r0, #1 - strh r0, [r4, #0x32] - ldrh r0, [r4, #0x36] - subs r0, #1 - strh r0, [r4, #0x36] - ldr r1, _08029408 @ =gUnk_080CCC3C - ldrb r0, [r4, #0xc] - lsls r0, r0, #2 - adds r0, r0, r1 - ldr r1, [r0] - adds r0, r4, #0 - bl _call_via_r1 - pop {r4, pc} - .align 2, 0 -_08029408: .4byte gUnk_080CCC3C - - thumb_func_start sub_0802940C -sub_0802940C: @ 0x0802940C - push {r4, r5, lr} - adds r4, r0, #0 - ldrb r1, [r4, #0xa] - movs r0, #0x17 - bl CreateEnemy - adds r5, r0, #0 - cmp r5, #0 - beq _0802944A - adds r0, r4, #0 - bl sub_0804A720 - str r4, [r5, #0x50] - movs r1, #0 - movs r0, #1 - strb r0, [r5, #0xb] - str r5, [r4, #0x54] - adds r0, r4, #0 - adds r0, #0x81 - strb r1, [r0] - adds r0, #3 - strb r1, [r0] - ldrb r0, [r4, #0x1a] - lsls r0, r0, #0x1c - lsrs r0, r0, #0x1c - adds r1, r4, #0 - adds r1, #0x82 - strb r0, [r1] - adds r0, r4, #0 - bl sub_080297F0 -_0802944A: - pop {r4, r5, pc} - - thumb_func_start sub_0802944C -sub_0802944C: @ 0x0802944C - push {r4, lr} - adds r4, r0, #0 - bl sub_080296C8 - adds r0, r4, #0 - adds r0, #0x81 - ldrb r0, [r0] - cmp r0, #0 - beq _08029470 - adds r0, r4, #0 - movs r1, #1 - bl sub_08049FDC - cmp r0, #0 - beq _08029470 - adds r0, r4, #0 - bl sub_08029770 -_08029470: - pop {r4, pc} - .align 2, 0 - - thumb_func_start sub_08029474 -sub_08029474: @ 0x08029474 - push {r4, lr} - adds r4, r0, #0 - bl sub_080296C8 - adds r3, r4, #0 - adds r3, #0x5a - ldrb r2, [r3] - movs r0, #0x80 - ands r0, r2 - lsls r0, r0, #0x18 - lsrs r1, r0, #0x18 - cmp r1, #0 - beq _080294C0 - movs r0, #3 - strb r0, [r4, #0xc] - movs r0, #8 - strb r0, [r4, #0xe] - ldr r1, _080294BC @ =gLinkEntity - adds r0, r4, #0 - bl GetFacingDirection - strb r0, [r4, #0x15] - lsls r0, r0, #0x18 - lsrs r0, r0, #0x1c - strb r0, [r4, #0x14] - ldrb r1, [r4, #0x14] - adds r0, r4, #0 - bl InitializeAnimation - ldr r0, [r4, #0x54] - ldrb r1, [r4, #0x14] - adds r1, #4 - bl InitializeAnimation - b _080294D2 - .align 2, 0 -_080294BC: .4byte gLinkEntity -_080294C0: - lsls r0, r2, #0x18 - lsrs r0, r0, #0x18 - cmp r0, #1 - bne _080294D2 - strb r1, [r3] - ldrb r0, [r4, #0x10] - movs r1, #0x80 - orrs r0, r1 - strb r0, [r4, #0x10] -_080294D2: - pop {r4, pc} - - thumb_func_start sub_080294D4 -sub_080294D4: @ 0x080294D4 - push {r4, lr} - adds r4, r0, #0 - movs r1, #1 - bl sub_08049FDC - cmp r0, #0 - beq _0802951C - ldrb r0, [r4, #0xe] - subs r0, #1 - strb r0, [r4, #0xe] - lsls r0, r0, #0x18 - cmp r0, #0 - bne _08029508 - movs r0, #8 - strb r0, [r4, #0xe] - ldr r1, _08029518 @ =gLinkEntity - adds r0, r4, #0 - bl GetFacingDirection - adds r1, r0, #0 - adds r0, r4, #0 - bl sub_08004596 - adds r0, r4, #0 - bl sub_0802969C -_08029508: - adds r0, r4, #0 - bl sub_080AEF88 - adds r0, r4, #0 - bl sub_080296C8 - b _08029538 - .align 2, 0 -_08029518: .4byte gLinkEntity -_0802951C: - movs r0, #6 - strb r0, [r4, #0xc] - ldrb r1, [r4, #0x10] - movs r0, #0x7f - ands r0, r1 - strb r0, [r4, #0x10] - adds r0, r4, #0 - movs r1, #3 - bl InitializeAnimation - ldr r0, [r4, #0x54] - movs r1, #7 - bl InitializeAnimation -_08029538: - pop {r4, pc} - .align 2, 0 - - thumb_func_start sub_0802953C -sub_0802953C: @ 0x0802953C - push {r4, r5, lr} - adds r5, r0, #0 - bl sub_080296C8 - adds r0, r5, #0 - bl sub_080296C8 - bl sub_0807953C - cmp r0, #0 - beq _08029558 - ldrb r0, [r5, #0xf] - adds r0, #1 - strb r0, [r5, #0xf] -_08029558: - ldrb r0, [r5, #0xe] - cmp r0, #0 - beq _08029562 - subs r0, #1 - strb r0, [r5, #0xe] -_08029562: - ldrb r0, [r5, #0xf] - cmp r0, #0x2d - bhi _08029572 - ldr r0, _08029580 @ =gUnk_02002A40 - adds r0, #0xc0 - ldrh r0, [r0] - cmp r0, #0 - bne _08029584 -_08029572: - ldrb r0, [r5, #0xe] - cmp r0, #0 - bne _08029584 - adds r0, r5, #0 - bl sub_080296D8 - b _080295FE - .align 2, 0 -_08029580: .4byte gUnk_02002A40 -_08029584: - bl sub_08077B2C - ldr r2, _08029600 @ =gLinkState - ldrb r1, [r2, #0x1a] - movs r0, #0x80 - orrs r0, r1 - strb r0, [r2, #0x1a] - ldr r4, _08029604 @ =gLinkEntity - movs r3, #0x80 - lsls r3, r3, #9 - adds r0, r5, #0 - adds r1, r4, #0 - movs r2, #0 - bl PositionRelative - ldrh r0, [r5, #0x12] - ldrb r1, [r5, #0x1e] - bl sub_080700C8 - ldrb r1, [r0] - adds r2, r4, #0 - adds r2, #0x62 - strb r1, [r2] - ldrb r0, [r0, #1] - subs r0, #1 - adds r1, r4, #0 - adds r1, #0x63 - strb r0, [r1] - adds r4, #0x29 - ldrb r1, [r4] - movs r0, #0x39 - rsbs r0, r0, #0 - ands r0, r1 - strb r0, [r4] - adds r1, r5, #0 - adds r1, #0x83 - ldrb r0, [r1] - subs r0, #1 - strb r0, [r1] - lsls r0, r0, #0x18 - cmp r0, #0 - bne _080295FE - movs r0, #0x41 - strb r0, [r1] - ldr r0, _08029608 @ =gUnk_02002A40 - adds r0, #0xc0 - ldrh r0, [r0] - cmp r0, #0 - beq _080295FE - ldr r1, _0802960C @ =gUnk_080CCC44 - ldrb r0, [r5, #0xa] - adds r0, r0, r1 - ldrb r0, [r0] - lsls r0, r0, #0x18 - asrs r0, r0, #0x18 - bl ModRupees - adds r1, r5, #0 - adds r1, #0x84 - movs r0, #1 - strb r0, [r1] -_080295FE: - pop {r4, r5, pc} - .align 2, 0 -_08029600: .4byte gLinkState -_08029604: .4byte gLinkEntity -_08029608: .4byte gUnk_02002A40 -_0802960C: .4byte gUnk_080CCC44 - - thumb_func_start sub_08029610 -sub_08029610: @ 0x08029610 - push {lr} - adds r1, r0, #0 - ldrb r0, [r1, #0xf] - subs r0, #1 - strb r0, [r1, #0xf] - lsls r0, r0, #0x18 - cmp r0, #0 - bne _08029628 - movs r0, #3 - strb r0, [r1, #0xc] - movs r0, #1 - strb r0, [r1, #0xe] -_08029628: - adds r0, r1, #0 - bl sub_080296C8 - pop {pc} - - thumb_func_start sub_08029630 -sub_08029630: @ 0x08029630 - push {r4, lr} - adds r4, r0, #0 - bl sub_080296C8 - adds r0, r4, #0 - adds r0, #0x5a - ldrb r1, [r0] - movs r0, #0x80 - ands r0, r1 - cmp r0, #0 - beq _0802965E - adds r1, r4, #0 - adds r1, #0x81 - movs r0, #1 - strb r0, [r1] - ldr r2, [r4, #0x54] - ldrb r1, [r2, #0x18] - subs r0, #5 - ands r0, r1 - strb r0, [r2, #0x18] - adds r0, r4, #0 - bl sub_080297F0 -_0802965E: - pop {r4, pc} - - thumb_func_start sub_08029660 -sub_08029660: @ 0x08029660 - movs r1, #1 - strb r1, [r0, #0xc] - movs r1, #0xd1 - strh r1, [r0, #0x12] - ldr r2, _08029684 @ =gUnk_080CCC47 - ldrb r1, [r0, #0xa] - adds r1, r1, r2 - ldrb r2, [r1] - movs r1, #0xf - ands r2, r1 - ldrb r3, [r0, #0x1a] - movs r1, #0x10 - rsbs r1, r1, #0 - ands r1, r3 - orrs r1, r2 - strb r1, [r0, #0x1a] - bx lr - .align 2, 0 -_08029684: .4byte gUnk_080CCC47 - - thumb_func_start sub_08029688 -sub_08029688: @ 0x08029688 - push {lr} - adds r1, r0, #0 - ldr r0, [r1, #0x50] - ldr r0, [r0, #4] - cmp r0, #0 - bne _0802969A - adds r0, r1, #0 - bl DeleteEntity -_0802969A: - pop {pc} - - thumb_func_start sub_0802969C -sub_0802969C: @ 0x0802969C - push {r4, r5, lr} - adds r5, r0, #0 - ldrb r1, [r5, #0x15] - movs r0, #0xf - ands r0, r1 - cmp r0, #0 - beq _080296C4 - lsrs r4, r1, #4 - ldrb r0, [r5, #0x14] - cmp r4, r0 - beq _080296C4 - strb r4, [r5, #0x14] - adds r0, r5, #0 - adds r1, r4, #0 - bl InitializeAnimation - ldr r0, [r5, #0x54] - adds r1, r4, #4 - bl InitializeAnimation -_080296C4: - pop {r4, r5, pc} - .align 2, 0 - - thumb_func_start sub_080296C8 -sub_080296C8: @ 0x080296C8 - push {r4, lr} - adds r4, r0, #0 - bl GetNextFrame - ldr r0, [r4, #0x54] - bl GetNextFrame - pop {r4, pc} - - thumb_func_start sub_080296D8 -sub_080296D8: @ 0x080296D8 - push {r4, r5, lr} - adds r4, r0, #0 - ldr r2, _08029764 @ =gLinkState - movs r0, #0x41 - strb r0, [r2, #2] - ldr r0, [r2, #0x30] - movs r1, #0x11 - rsbs r1, r1, #0 - ands r0, r1 - str r0, [r2, #0x30] - ldr r0, _08029768 @ =gLinkEntity - mov ip, r0 - ldrb r0, [r0, #0x10] - movs r1, #0x80 - orrs r0, r1 - mov r1, ip - strb r0, [r1, #0x10] - movs r0, #0xc0 - lsls r0, r0, #9 - str r0, [r1, #0x20] - adds r1, #0x3d - movs r0, #0xa6 - strb r0, [r1] - movs r3, #0 - ldr r0, _0802976C @ =0x0000FFFE - mov r1, ip - strh r0, [r1, #0x36] - ldrb r0, [r1, #0x14] - lsls r0, r0, #2 - strb r0, [r1, #0x15] - adds r0, r4, #0 - adds r0, #0x80 - ldrb r0, [r0] - mov r5, ip - adds r5, #0x29 - movs r1, #7 - ands r1, r0 - lsls r1, r1, #3 - ldrb r2, [r5] - movs r0, #0x39 - rsbs r0, r0, #0 - ands r0, r2 - orrs r0, r1 - strb r0, [r5] - mov r0, ip - adds r0, #0x63 - strb r3, [r0] - movs r0, #0xa0 - lsls r0, r0, #1 - mov r1, ip - strh r0, [r1, #0x24] - movs r0, #5 - strb r0, [r4, #0xc] - movs r0, #0x3c - strb r0, [r4, #0xf] - adds r2, r4, #0 - adds r2, #0x3b - ldrb r1, [r2] - movs r0, #3 - orrs r0, r1 - strb r0, [r2] - adds r1, r4, #0 - adds r1, #0x3d - movs r0, #0 - ldrsb r0, [r1, r0] - cmp r0, #0 - bne _08029762 - movs r0, #0xf4 - strb r0, [r1] -_08029762: - pop {r4, r5, pc} - .align 2, 0 -_08029764: .4byte gLinkState -_08029768: .4byte gLinkEntity -_0802976C: .4byte 0x0000FFFE - - thumb_func_start sub_08029770 -sub_08029770: @ 0x08029770 - push {r4, lr} - adds r4, r0, #0 - movs r1, #0x73 - bl LoadFixedGFX - cmp r0, #0 - beq _080297E8 - movs r0, #2 - strb r0, [r4, #0xc] - ldrb r1, [r4, #0x10] - movs r0, #0x7f - ands r0, r1 - strb r0, [r4, #0x10] - movs r0, #0xd1 - strh r0, [r4, #0x12] - adds r2, r4, #0 - adds r2, #0x29 - ldrb r1, [r2] - movs r0, #0x39 - rsbs r0, r0, #0 - ands r0, r1 - movs r1, #0x18 - orrs r0, r1 - strb r0, [r2] - adds r0, r4, #0 - adds r0, #0x82 - ldrb r1, [r0] - movs r0, #0xf - ands r1, r0 - ldrb r2, [r4, #0x1a] - movs r0, #0x10 - rsbs r0, r0, #0 - ands r0, r2 - orrs r0, r1 - strb r0, [r4, #0x1a] - adds r1, r4, #0 - adds r1, #0x3f - movs r0, #0x8d - strb r0, [r1] - ldr r0, _080297EC @ =gUnk_080FD260 - str r0, [r4, #0x48] - adds r0, r4, #0 - movs r1, #2 - bl InitializeAnimation - ldr r2, [r4, #0x54] - ldrb r1, [r2, #0x18] - movs r0, #4 - rsbs r0, r0, #0 - ands r0, r1 - movs r1, #1 - orrs r0, r1 - strb r0, [r2, #0x18] - ldr r0, [r4, #0x54] - movs r1, #6 - bl InitializeAnimation - adds r0, r4, #0 - bl sub_080A29BC -_080297E8: - pop {r4, pc} - .align 2, 0 -_080297EC: .4byte gUnk_080FD260 - - thumb_func_start sub_080297F0 -sub_080297F0: @ 0x080297F0 - push {r4, lr} - adds r4, r0, #0 - movs r2, #1 - movs r0, #1 - strb r0, [r4, #0xc] - movs r0, #0x78 - strb r0, [r4, #0xe] - ldrb r1, [r4, #0x10] - movs r0, #0x80 - orrs r0, r1 - strb r0, [r4, #0x10] - ldrb r1, [r4, #0x18] - movs r0, #4 - rsbs r0, r0, #0 - ands r0, r1 - orrs r0, r2 - strb r0, [r4, #0x18] - adds r1, r4, #0 - adds r1, #0x3f - movs r0, #0x8e - strb r0, [r1] - adds r0, r4, #0 - bl sub_080AE068 - ldr r0, _08029850 @ =0x00000143 - strh r0, [r4, #0x12] - ldr r1, _08029854 @ =gUnk_080CCC47 - ldrb r0, [r4, #0xa] - adds r0, r0, r1 - ldrb r1, [r0] - movs r0, #0xf - ands r1, r0 - ldrb r2, [r4, #0x1a] - movs r0, #0x10 - rsbs r0, r0, #0 - ands r0, r2 - orrs r0, r1 - strb r0, [r4, #0x1a] - adds r1, r4, #0 - adds r1, #0x60 - movs r0, #9 - strh r0, [r1] - adds r0, r4, #0 - movs r1, #0x54 - bl InitializeAnimation - pop {r4, pc} - .align 2, 0 -_08029850: .4byte 0x00000143 -_08029854: .4byte gUnk_080CCC47 diff --git a/asm/spinyBeetle.s b/asm/spinyBeetle.s index 84bb7429..00fc6513 100644 --- a/asm/spinyBeetle.s +++ b/asm/spinyBeetle.s @@ -662,7 +662,7 @@ sub_08033C94: @ 0x08033C94 push {r4, lr} adds r4, r0, #0 movs r1, #3 - bl InitializeAnimationAnimation + bl UpdateAnimationVariableFrames adds r1, r4, #0 adds r1, #0x79 ldrb r0, [r1] diff --git a/asm/tektite.s b/asm/tektite.s index 5f862824..f0b0aed9 100644 --- a/asm/tektite.s +++ b/asm/tektite.s @@ -211,7 +211,7 @@ sub_0802F284: @ 0x0802F284 bls _0802F298 adds r0, r4, #0 movs r1, #2 - bl InitializeAnimationAnimation + bl UpdateAnimationVariableFrames b _0802F29E _0802F298: adds r0, r4, #0 diff --git a/asm/tektiteGolden.s b/asm/tektiteGolden.s index 8abda317..d51c9728 100644 --- a/asm/tektiteGolden.s +++ b/asm/tektiteGolden.s @@ -6,214 +6,12 @@ .text - - thumb_func_start TektiteGolden -TektiteGolden: @ 0x08037EC8 - push {r4, lr} - adds r4, r0, #0 - ldr r1, _08037EE4 @ =gUnk_080CF4A0 - bl EnemyFunctionHandler - movs r3, #0x10 - rsbs r3, r3, #0 - adds r0, r4, #0 - movs r1, #0 - movs r2, #1 - bl SetChildOffset - pop {r4, pc} - .align 2, 0 -_08037EE4: .4byte gUnk_080CF4A0 - - thumb_func_start sub_08037EE8 -sub_08037EE8: @ 0x08037EE8 - push {lr} - ldr r2, _08037EFC @ =gUnk_080CF4B8 - ldrb r1, [r0, #0xc] - lsls r1, r1, #2 - adds r1, r1, r2 - ldr r1, [r1] - bl _call_via_r1 - pop {pc} - .align 2, 0 -_08037EFC: .4byte gUnk_080CF4B8 - - thumb_func_start sub_08037F00 -sub_08037F00: @ 0x08037F00 - push {r4, lr} - adds r4, r0, #0 - adds r0, #0x43 - ldrb r0, [r0] - cmp r0, #0 - beq _08037F14 - adds r0, r4, #0 - movs r1, #0x1c - bl sub_0804A9FC -_08037F14: - ldr r1, _08037F54 @ =gUnk_080CF4A0 - adds r0, r4, #0 - bl sub_0804AA30 - adds r0, r4, #0 - adds r0, #0x41 - ldrb r0, [r0] - cmp r0, #0x94 - bne _08037F50 - movs r1, #0 - movs r0, #1 - strb r0, [r4, #0xc] - strb r1, [r4, #0xd] - movs r0, #0x14 - strb r0, [r4, #0xe] - strb r1, [r4, #0xf] - adds r0, r4, #0 - adds r0, #0x80 - strb r1, [r0] - movs r1, #0x36 - ldrsh r0, [r4, r1] - cmp r0, #0 - beq _08037F46 - ldr r0, [r4, #0x20] - asrs r0, r0, #2 -_08037F46: - str r0, [r4, #0x20] - adds r0, r4, #0 - movs r1, #0 - bl InitializeAnimation -_08037F50: - pop {r4, pc} - .align 2, 0 -_08037F54: .4byte gUnk_080CF4A0 - - thumb_func_start sub_08037F58 -sub_08037F58: @ 0x08037F58 - push {r4, lr} - adds r4, r0, #0 - adds r0, #0x3a - ldrb r1, [r0] - movs r0, #2 - ands r0, r1 - cmp r0, #0 - bne _08037F6E - ldrb r0, [r4, #0xb] - bl SetGlobalFlag -_08037F6E: - ldrb r0, [r4, #0xa] - movs r2, #0x58 - cmp r0, #0 - beq _08037F78 - movs r2, #0x59 -_08037F78: - adds r0, r4, #0 - movs r1, #0xff - bl CreateDeathFx - pop {r4, pc} - .align 2, 0 - - thumb_func_start sub_08037F84 -sub_08037F84: @ 0x08037F84 - push {r4, lr} - adds r4, r0, #0 - bl sub_08001242 - movs r1, #0x36 - ldrsh r0, [r4, r1] - cmp r0, #0 - beq _08037F9E - movs r1, #0xc0 - lsls r1, r1, #6 - adds r0, r4, #0 - bl sub_08003FC4 -_08037F9E: - pop {r4, pc} - - thumb_func_start sub_08037FA0 -sub_08037FA0: @ 0x08037FA0 - push {r4, r5, lr} - adds r5, r0, #0 - ldrb r0, [r5, #0xb] - bl CheckGlobalFlag - cmp r0, #0 - beq _08037FB2 - bl DeleteThisEntity -_08037FB2: - adds r0, r5, #0 - bl sub_0804A720 - movs r4, #0 - movs r0, #1 - strb r0, [r5, #0xc] - strb r4, [r5, #0xd] - bl Random - movs r1, #0x1f - ands r0, r1 - adds r0, #0x20 - strb r0, [r5, #0xe] - strb r4, [r5, #0xf] - adds r0, r5, #0 - adds r0, #0x80 - strb r4, [r0] - adds r0, r5, #0 - movs r1, #0 - bl InitializeAnimation - pop {r4, r5, pc} - .align 2, 0 - - thumb_func_start sub_08037FE0 -sub_08037FE0: @ 0x08037FE0 - push {r4, lr} - adds r4, r0, #0 - movs r1, #2 - bl InitializeAnimationAnimation - ldrb r0, [r4, #0xe] - adds r2, r0, #0 - cmp r2, #0 - beq _08037FF8 - subs r0, #1 - strb r0, [r4, #0xe] - b _08038046 -_08037FF8: - ldrb r0, [r4, #0xf] - cmp r0, #0 - beq _0803802C - adds r0, r4, #0 - adds r0, #0x5a - ldrb r1, [r0] - movs r0, #0x80 - ands r0, r1 - cmp r0, #0 - beq _08038046 - movs r0, #2 - strb r0, [r4, #0xc] - movs r0, #6 - strb r0, [r4, #0xe] - strb r2, [r4, #0xf] - movs r0, #0xe0 - lsls r0, r0, #0xa - str r0, [r4, #0x20] - adds r0, r4, #0 - bl sub_08038168 - adds r0, r4, #0 - movs r1, #2 - bl InitializeAnimation - b _08038046 -_0803802C: - adds r0, r4, #0 - adds r0, #0x5a - ldrb r1, [r0] - movs r0, #0x80 - ands r0, r1 - cmp r0, #0 - beq _08038046 - movs r0, #0x40 - strb r0, [r4, #0xf] - adds r0, r4, #0 - movs r1, #1 - bl InitializeAnimation -_08038046: - pop {r4, pc} - thumb_func_start sub_08038048 sub_08038048: @ 0x08038048 push {r4, r5, r6, lr} adds r4, r0, #0 movs r1, #2 - bl InitializeAnimationAnimation + bl UpdateAnimationVariableFrames adds r0, r4, #0 bl sub_080AEF88 movs r0, #0x36 @@ -315,7 +113,7 @@ sub_08038110: @ 0x08038110 push {r4, lr} adds r4, r0, #0 movs r1, #2 - bl InitializeAnimationAnimation + bl UpdateAnimationVariableFrames adds r0, r4, #0 adds r0, #0x5a ldrb r1, [r0] diff --git a/include/entity.h b/include/entity.h index ef1f6303..b3121fd3 100644 --- a/include/entity.h +++ b/include/entity.h @@ -59,7 +59,13 @@ typedef struct Entity { /* */ u8 b2 : 2; //0x10 /* */ u8 b3 : 2; //0x40 /* */ } PACKED spriteRendering; - /*0x1a*/ u8 palette; + /*0x1a*/ union { + /* */ u8 raw; + /* */ struct { + /* */ u8 b0 : 4; + /* */ u8 b4 : 4; + /* */ } PACKED b; + /* */} PACKED palette; /*0x1b*/ struct { /* */ u8 b0 : 4; /* */ u8 flipX : 2; //0x10 @@ -132,8 +138,8 @@ typedef struct Entity { /*0x78*/ union SplitHWord field_0x78; /*0x7a*/ u16 field_0x7a; /*0x7c*/ union SplitWord field_0x7c; - /*0x80*/ u16 field_0x80; - /*0x82*/ u16 field_0x82; + /*0x80*/ union SplitHWord field_0x80; + /*0x82*/ union SplitHWord field_0x82; /*0x84*/ union SplitHWord cutsceneBeh; /*0x86*/ u16 field_0x86; } Entity; diff --git a/include/functions.h b/include/functions.h index 1c316dea..352cc973 100644 --- a/include/functions.h +++ b/include/functions.h @@ -34,6 +34,11 @@ extern void EraseAllEntities(void); extern void SetTile(u32, u32, u32); extern void SetDirtTile(u32); extern void LoadRoomTileEntities(); //tba +extern Entity* CreateDeathFx(Entity*, u32, u32); +extern void UpdateAnimationVariableFrames(Entity*, u32); +extern void CopyPositionAndSpriteOffset(Entity*, Entity*); +extern u8* GetSpriteSubEntryOffsetDataPointer(u32, u32); +extern u32 LoadFixedGFX(Entity*, u32); // Unidentified extern void sub_0806ED78(Entity*); @@ -183,4 +188,14 @@ extern void sub_080A4398(void); extern void sub_0801E738(u32); extern void sub_080A70AC(void*); extern void sub_080A7114(u32); +extern void sub_08001242(void); +extern void sub_08003FC4(Entity*, u32); +extern u8 sub_080043E8(Entity*); +extern void sub_08001290(Entity*, u32); +extern void sub_08004488(u32); +extern void sub_08004596(Entity*, u32); +extern u32 sub_0807953C(void); +extern void sub_08077B2C(void); +extern void sub_080A29BC(Entity*); +extern void sub_080AE068(Entity*); #endif diff --git a/include/link.h b/include/link.h index 45acee75..ca6508a1 100644 --- a/include/link.h +++ b/include/link.h @@ -94,7 +94,7 @@ extern Entity gLinkEntity; extern u32 GetInventoryValue(u32); extern s32 ModHealth(s32); - +extern void ModRupees(s32); #endif // clang-format on \ No newline at end of file diff --git a/linker.ld b/linker.ld index 09c9c7a4..7714d9f2 100644 --- a/linker.ld +++ b/linker.ld @@ -345,7 +345,7 @@ SECTIONS { asm/likeLike.o(.text); asm/spearMoblin.o(.text); asm/businessScrub.o(.text); - asm/rupeeLike.o(.text); + src/enemy/rupeeLike.o(.text); asm/madderpillar.o(.text); asm/waterDrop.o(.text); asm/wallMaster.o(.text); @@ -385,6 +385,7 @@ SECTIONS { asm/flyingPot.o(.text); asm/gibdo.o(.text); asm/octorokGolden.o(.text); + src/enemy/tektiteGolden.o(.text); asm/tektiteGolden.o(.text); asm/ropeGolden.o(.text); asm/cloudPiranha.o(.text); diff --git a/src/enemy/bombPeahat.c b/src/enemy/bombPeahat.c index 3921737a..da782b85 100644 --- a/src/enemy/bombPeahat.c +++ b/src/enemy/bombPeahat.c @@ -44,7 +44,7 @@ void sub_0802A84C(Entity* this) { } void sub_0802A8AC(Entity *this) { - *((u8 *)&this->field_0x80 + 1) = 0; + this->field_0x80.HALF.HI = 0; if (this->entityType.form < 2) { InitializeAnimation(this, 0); } diff --git a/src/enemy/octorok.c b/src/enemy/octorok.c index ff699ec0..57fc25e3 100644 --- a/src/enemy/octorok.c +++ b/src/enemy/octorok.c @@ -11,7 +11,7 @@ extern void sub_0801ECFC(); extern u32 sub_0806F520(); extern void sub_0806F4E8(); extern void sub_0806F3E4(); -extern void InitializeAnimationAnimation(); +extern void UpdateAnimationVariableFrames(); extern void sub_0804A720(); extern u32 Random(); extern void sub_0801ED14(); @@ -75,7 +75,7 @@ void sub_0801EB7C(Entity* ent) { void sub_0801EB84(Entity* ent) { ent->flags = ent->flags & 127; - InitializeAnimationAnimation(ent, 2); + UpdateAnimationVariableFrames(ent, 2); } void nullsub_3() { diff --git a/src/enemy/rupeeLike.c b/src/enemy/rupeeLike.c new file mode 100644 index 00000000..5b6bd3e5 --- /dev/null +++ b/src/enemy/rupeeLike.c @@ -0,0 +1,281 @@ +#include "global.h" +#include "entity.h" +#include "enemy.h" +#include "functions.h" +#include "structures.h" +#include "link.h" + +extern void sub_080293DC(Entity*); +extern void sub_080296D8(Entity*); +extern void sub_08029770(Entity*); +extern void sub_080297F0(Entity*); +extern void sub_080296C8(Entity*); +extern void sub_0802969C(Entity*); + +extern void (*const gUnk_080CCC00[])(Entity*); +extern void (*const gUnk_080CCC18[])(Entity*); +extern void (*const gUnk_080CCC3C[])(Entity*); + +extern u8 gUnk_080CCC34[]; +extern u8 gUnk_080CCC47[]; +extern BoundingBox gUnk_080FD260; + +void RupeeLike(Entity* this) { + u32 uVar1; + + if (this->entityType.parameter == 0) { + uVar1 = sub_080043E8(this); + if (uVar1 != 0) { + if (this->action == 4) { + sub_080296D8(this); + } + sub_08001290(this, uVar1); + } else { + gUnk_080CCC00[GetNextFunction(this)](this); + SetChildOffset(this, 0, 1, -0x10); + } + } else { + sub_080293DC(this); + } +} + +void sub_08029300(Entity* this) { + gUnk_080CCC18[this->action](this); +} + +void sub_08029318(Entity* this) { + if (this->damageType == 0x8e) { + sub_08029770(this); + } else { + if (this->action == 4) { + sub_080296D8(this); + } + if (*(u8*)(*(u32*)&this->field_0x4c + 8) == 1) { + if (this->action == 2) { + InitializeAnimation(this, 0); + InitializeAnimation(this->attachedEntity, 4); + } + this->action = 4; + this->actionDelay = 0x3c; + this->field_0xf = 0; + this->field_0x82.HALF.HI = 0x41; + this->flags2 &= 0xfc; + this->field_0x80.HALF.LO = gLinkEntity.spritePriority.b1; + sub_08004488(0x104); + } else { + if (this->field_0x43 != 0) { + sub_0804A9FC(this, 0x1c); + } + } + } + sub_0804AA30(this, gUnk_080CCC00); +} + +void sub_080293B4(Entity* this) { + CreateDeathFx(this, 0xff, gUnk_080CCC34[this->cutsceneBeh.HALF.LO * 3 + this->entityType.form]); +} + +void nullsub_141() { +} + +void sub_080293DC(Entity* this) { + CopyPositionAndSpriteOffset(this->parent, this); + this->y.HALF.HI++; + this->height.HALF.HI--; + gUnk_080CCC3C[this->action](this); +} + +void sub_0802940C(Entity* this) { + Entity* ent; + + ent = CreateEnemy(0x17, this->entityType.form); + if (ent != NULL) { + sub_0804A720(this); + ent->parent = this; + ent->entityType.parameter = 1; + this->attachedEntity = ent; + this->field_0x80.HALF.HI = 0; + this->cutsceneBeh.HALF.LO = 0; + this->field_0x82.HALF.LO = this->palette.b.b0; + sub_080297F0(this); + } +} + +void sub_0802944C(Entity* this) { + sub_080296C8(this); + if ((this->field_0x80.HALF.HI != 0) && sub_08049FDC(this, 1)) { + sub_08029770(this); + } +} + +void sub_08029474(Entity* this) { + u32 bVar1; + + sub_080296C8(this); + if (this->frames.b.f3) { + this->action = 3; + this->actionDelay = 8; + bVar1 = GetFacingDirection(this, &gLinkEntity); + this->direction = bVar1; + this->animationState = (bVar1 << 0x18) >> 0x1c; + InitializeAnimation(this, this->animationState); + InitializeAnimation(this->attachedEntity, this->animationState + 4); + } else { + if (this->frames.all == 1) { + this->frames.all = 0; + this->flags |= 0x80; + } + } +} + +void sub_080294D4(Entity* this) { + if (sub_08049FDC(this, 1) != 0) { + if (--this->actionDelay == 0) { + this->actionDelay = 8; + sub_08004596(this, GetFacingDirection(this, &gLinkEntity)); + sub_0802969C(this); + } + sub_080AEF88(this); + sub_080296C8(this); + } else { + this->action = 6; + this->flags &= 0x7f; + InitializeAnimation(this, 3); + InitializeAnimation(this->attachedEntity, 7); + } +} + +extern s8 gUnk_080CCC44[]; + +void sub_0802953C(Entity* this) { + u8* pbVar3; + + sub_080296C8(this); + sub_080296C8(this); + if (sub_0807953C() != 0) { + this->field_0xf++; + } + if (this->actionDelay != 0) { + this->actionDelay--; + } + if (((this->field_0xf > 0x2d) || (gUnk_02002A40.stats.rupees == 0)) && (this->actionDelay == 0)) { + sub_080296D8(this); + } else { + sub_08077B2C(); + gLinkState.field_0x1a[0] |= 0x80; + PositionRelative(this, &gLinkEntity, 0, 0x10000); + pbVar3 = GetSpriteSubEntryOffsetDataPointer((u16)this->spriteIndex, this->frameIndex); + gLinkEntity.spriteOffsetX = pbVar3[0]; + gLinkEntity.spriteOffsetY = pbVar3[1] - 1; + gLinkEntity.spritePriority.b1 = 0; + if (--this->field_0x82.HALF.HI == 0) { + this->field_0x82.HALF.HI = 0x41; + if (gUnk_02002A40.stats.rupees != 0) { + ModRupees(gUnk_080CCC44[this->entityType.form]); + this->cutsceneBeh.HALF.LO = 1; + } + } + } +} + +void sub_08029610(Entity* this) { + if (--this->field_0xf == 0) { + this->action = 3; + this->actionDelay = 1; + } + sub_080296C8(this); +} + +void sub_08029630(Entity* this) { + sub_080296C8(this); + if ((this->frames.b.f3) != 0) { + this->field_0x80.HALF.HI = 1; + this->attachedEntity->spriteSettings.b.draw = FALSE; + sub_080297F0(this); + } +} + +void sub_08029660(Entity* this) { + u32 temp; + this->action = 1; + this->spriteIndex = 0xd1; + temp = gUnk_080CCC47[this->entityType.form]; + this->palette.b.b0 = temp; +} + +void sub_08029688(Entity* this) { + if (this->parent->field_0x4 == NULL) { + DeleteEntity(this); + } +} + +void sub_0802969C(Entity* this) { + u32 bVar1; + + if ((this->direction & 0xf) != 0) { + + bVar1 = this->direction >> 4; + if (bVar1 != this->animationState) { + this->animationState = bVar1; + InitializeAnimation(this, bVar1); + InitializeAnimation(this->attachedEntity, bVar1 + 4); + } + } +} + +void sub_080296C8(Entity* this) { + GetNextFrame(this); + GetNextFrame(this->attachedEntity); +} + +void sub_080296D8(Entity* this) { + gLinkState.jumpStatus = 0x41; + gLinkState.flags.all &= 0xffffffef; + gLinkEntity.flags |= 0x80; + gLinkEntity.field_0x20 = 0x18000; + gLinkEntity.hurtBlinkTime = 0xa6; + gLinkEntity.height.HALF.HI = -2; + gLinkEntity.direction = gLinkEntity.animationState << 2; + gLinkEntity.spritePriority.b1 = this->field_0x80.HALF.LO; + gLinkEntity.spriteOffsetY = 0; + gLinkEntity.nonPlanarMovement = 0x140; + this->action = 5; + this->field_0xf = 0x3c; + this->flags2 |= 3; + if ((s8)this->hurtBlinkTime == 0) { + this->hurtBlinkTime = 0xf4; + } +} + +void sub_08029770(Entity* this) { + u32 temp; + if (LoadFixedGFX(this, 0x73) != 0) { + this->action = 2; + this->flags = this->flags & 0x7f; + this->spriteIndex = 0xd1; + this->spritePriority.b1 = 3; + temp = this->field_0x82.HALF.LO; + this->palette.b.b0 = temp; + this->damageType = 0x8d; + this->boundingBox = &gUnk_080FD260; + InitializeAnimation(this, 2); + this->attachedEntity->spriteSettings.b.draw = TRUE; + InitializeAnimation(this->attachedEntity, 6); + sub_080A29BC(this); + } +} + +void sub_080297F0(Entity* this) { + u32 temp; + this->action = 1; + this->actionDelay = 0x78; + this->flags = this->flags | 0x80; + this->spriteSettings.b.draw = TRUE; + this->damageType = 0x8e; + sub_080AE068(this); + this->spriteIndex = 0x143; + temp = gUnk_080CCC47[this->entityType.form]; + this->palette.b.b0 = temp; + this->spriteVramOffset = 9; + InitializeAnimation(this, 0x54); +} \ No newline at end of file diff --git a/src/enemy/tektiteGolden.c b/src/enemy/tektiteGolden.c new file mode 100644 index 00000000..90483b71 --- /dev/null +++ b/src/enemy/tektiteGolden.c @@ -0,0 +1,108 @@ +#include "global.h" +#include "entity.h" +#include "enemy.h" +#include "functions.h" +#include "flags.h" + +extern void sub_08038168(Entity*); + +extern void (*const gUnk_080CF4A0)(Entity*); +extern void (*const gUnk_080CF4B8[])(Entity*); + +void TektiteGolden(Entity *this) +{ + EnemyFunctionHandler(this, &gUnk_080CF4A0); + SetChildOffset(this, 0, 1, -0x10); +} + +void sub_08037EE8(Entity* this) +{ + gUnk_080CF4B8[this->action](this); +} + +void sub_08037F00(Entity *this) +{ + u32 uVar1; + + if (this->field_0x43 != 0) { + sub_0804A9FC(this,0x1c); + } + sub_0804AA30(this, &gUnk_080CF4A0); + if (this->bitfield == 0x94) { + this->action = 1; + this->previousActionFlag = 0; + this->actionDelay = 0x14; + this->field_0xf = 0; + this->field_0x80.HALF.LO = 0; + uVar1 = this->height.HALF.HI; + if (uVar1 != 0) { + this->field_0x20 >>= 2; + } + else { + this->field_0x20 = uVar1; + } + + InitializeAnimation(this,0); + } +} + +void sub_08037F58(Entity *this) +{ + u32 uVar1; + + if ((this->field_0x3a & 2) == 0) { + SetGlobalFlag(this->entityType.parameter); + } + if ((this->entityType).form != 0) { + uVar1 = 0x59; + } + else { + uVar1 = 0x58; + } + CreateDeathFx(this, 0xff, uVar1); +} + +void sub_08037F84(Entity *this) +{ + sub_08001242(); + if (this->height.HALF.HI != 0) { + sub_08003FC4(this, 0x3000); + } +} + +void sub_08037FA0(Entity *this) +{ + + if (CheckGlobalFlag(this->entityType.parameter)) { + DeleteThisEntity(); + } + sub_0804A720(this); + this->action = 1; + this->previousActionFlag = 0; + this->actionDelay = (Random() & 0x1f) + 0x20; + this->field_0xf = 0; + this->field_0x80.HALF.LO = 0; + InitializeAnimation(this,0); +} + +void sub_08037Fe0(Entity *this) +{ + UpdateAnimationVariableFrames(this, 2); + if (this->actionDelay != 0) { + this->actionDelay--; + } + else if (this->field_0xf != 0) { + if ((this->frames.b.f3) != 0) { + this->action = 2; + this->actionDelay = 6; + this->field_0xf = 0; + this->field_0x20 = 0x38000; + sub_08038168(this); + InitializeAnimation(this, 2); + } + } + else if ((this->frames.b.f3) != 0) { + this->field_0xf = 0x40; + InitializeAnimation(this, 1); + } +} \ No newline at end of file diff --git a/src/item11.c b/src/item11.c index b464bdd9..e6ab76de 100644 --- a/src/item11.c +++ b/src/item11.c @@ -57,7 +57,7 @@ void sub_08018CBC(Entity *this) this->action = 2; this->spriteSettings.b.draw = 1; this->spriteIndex = 0xa6; - this->palette = 0x33; + this->palette.raw = 0x33; this->spriteVramOffset = 0; (this->entityType).form = gLinkState.field_0x1d[0] - 1; this->actionDelay = gUnk_080B3DE0[(this->entityType).form * 2]; diff --git a/src/npc/forestMinish.c b/src/npc/forestMinish.c index e83a40d1..8fb7da7b 100644 --- a/src/npc/forestMinish.c +++ b/src/npc/forestMinish.c @@ -90,9 +90,9 @@ void sub_080600F0(Entity* this) { u32 uVar1; u32 uVar2; - uVar2 = this->field_0x80; - if (this->field_0x80 < 8) { - if ((this->field_0x82 & 1) != 0) { + uVar2 = this->field_0x80.HWORD; + if (this->field_0x80.HWORD < 8) { + if ((this->field_0x82.HWORD & 1) != 0) { uVar2 = (uVar2 & 0xfc) + (this->field_0xf >> 1); } else { uVar2 = (uVar2 & 0xfc) + (this->animationState >> 1); @@ -102,7 +102,7 @@ void sub_080600F0(Entity* this) { if (uVar2 != this->animIndex) { InitAnimationForceUpdate(this, uVar2); } - if ((this->field_0x82 & 4) != 0) { + if ((this->field_0x82.HWORD & 4) != 0) { uVar1 = 2; } else { uVar1 = 1; diff --git a/src/npc/goron.c b/src/npc/goron.c index b65e97ea..0fa725e4 100644 --- a/src/npc/goron.c +++ b/src/npc/goron.c @@ -63,7 +63,7 @@ void sub_08069428(Entity* this, s32 offsetX, bool32 createFx65); void sub_080693D0(Entity* this) { sub_0807DD94(this, 0); if (this->animIndex == 8) { - u32 var0 = this->field_0x82 & 0xF; + u32 var0 = this->field_0x82.HWORD & 0xF; bool32 createFx65 = ((-var0) | var0) >> 0x1F; // = !var0 if (this->frames.all == 1) { @@ -121,7 +121,7 @@ void sub_080694EC(Entity* this) { anim = 2; if (!CheckKinstoneFused(47)) anim = 8; InitAnimationForceUpdate(this, anim); - this->field_0x80 = anim; + this->field_0x80.HWORD = anim; } void Goron_Fusion(Entity* this) { diff --git a/src/npc/smith.c b/src/npc/smith.c index 061d3c40..744bd8e2 100644 --- a/src/npc/smith.c +++ b/src/npc/smith.c @@ -157,8 +157,8 @@ void sub_080661BC(Entity *this) if (this->animIndex == 0xc) { UpdateAnimationSingleFrame(this); if ((this->frames.b.f3) != 0) { - this->field_0x80 = GetAnimationState(this) + 8; - InitAnimationForceUpdate(this, this->field_0x80); + this->field_0x80.HWORD = GetAnimationState(this) + 8; + InitAnimationForceUpdate(this, this->field_0x80.HWORD); } } else { diff --git a/src/npc/syrup.c b/src/npc/syrup.c index 341c60c8..da3f69e8 100644 --- a/src/npc/syrup.c +++ b/src/npc/syrup.c @@ -41,7 +41,7 @@ void sub_0806A1F8(Entity *this) void sub_0806A234(Entity *this) { sub_0807DD94(this, 0); - if ((this->field_0x82 & 4) != 0) { + if ((this->field_0x82.HWORD & 4) != 0) { if ((gUnk_030010A0 & 7) == 0) { sub_0806A26C(this); } diff --git a/src/npc/zelda.c b/src/npc/zelda.c index b70e3b9a..087e8fe8 100644 --- a/src/npc/zelda.c +++ b/src/npc/zelda.c @@ -109,27 +109,27 @@ void sub_08066DE4(Entity* ent) { void sub_08066E08(Entity* ent) { InitAnimationForceUpdate(ent, 0x50); - ent->field_0x80 = ent->animIndex; + ent->field_0x80.HWORD = ent->animIndex; } void sub_08066E20(Entity* ent) { InitAnimationForceUpdate(ent, 0x44); - ent->field_0x80 = ent->animIndex; + ent->field_0x80.HWORD = ent->animIndex; } void sub_08066E38(Entity* ent) { InitAnimationForceUpdate(ent, 0x48); - ent->field_0x80 = ent->animIndex; + ent->field_0x80.HWORD = ent->animIndex; } void sub_08066E50(Entity* ent) { InitAnimationForceUpdate(ent, 0x4C); - ent->field_0x80 = ent->animIndex; + ent->field_0x80.HWORD = ent->animIndex; } void sub_08066E68(Entity* ent) { InitAnimationForceUpdate(ent, 0x54); - ent->field_0x80 = ent->animIndex; + ent->field_0x80.HWORD = ent->animIndex; } void sub_08066E80(Entity* ent, u8* param_2) { @@ -172,7 +172,7 @@ void sub_08066E80(Entity* ent, u8* param_2) { return; } } - ent->field_0x80 = ent->animIndex; + ent->field_0x80.HWORD = ent->animIndex; gUnk_02033280[6] = 0; } diff --git a/src/object/object1C.c b/src/object/object1C.c index 16c20816..725f4223 100644 --- a/src/object/object1C.c +++ b/src/object/object1C.c @@ -11,7 +11,7 @@ void Object1C(Entity *this) if (this->action == 0) { this->action = 1; } - iVar1 = CheckRectOnScreen(this->field_0x80, this->field_0x82, 0x10, 0x10); + iVar1 = CheckRectOnScreen(this->field_0x80.HWORD, this->field_0x82.HWORD, 0x10, 0x10); if (iVar1 == 0) { this->parent->field_0x20 &= ~(1 << this->entityType.parameter); DeleteThisEntity(); diff --git a/src/object/well.c b/src/object/well.c index 9efcd750..07c1237b 100644 --- a/src/object/well.c +++ b/src/object/well.c @@ -19,14 +19,14 @@ void sub_080A0EB0(Entity* ent) { ent->action = 1; tilePos = COORD_TO_TILE(ent); - ent->field_0x80 = tilePos; - SetTile(16509, ent->field_0x80, 1); + ent->field_0x80.HWORD = tilePos; + SetTile(16509, ent->field_0x80.HWORD, 1); } void sub_080A0EF0(Entity* ent) { s32 tileIndex; - tileIndex = GetTileType(ent->field_0x80, 1); + tileIndex = GetTileType(ent->field_0x80.HWORD, 1); if (tileIndex != 0x407D) { sub_08078B48(); gLinkEntity.x.WORD = ent->x.WORD; From 45298f8a96317df8563d4a2b3a7fd6d7a8d421f4 Mon Sep 17 00:00:00 2001 From: theo3 Date: Thu, 23 Jul 2020 23:50:37 -0700 Subject: [PATCH 065/158] librari.c OK --- asm/librari.s | 246 ---------------------------------------------- linker.ld | 2 +- src/npc/librari.c | 107 ++++++++++++++++++++ 3 files changed, 108 insertions(+), 247 deletions(-) delete mode 100644 asm/librari.s create mode 100644 src/npc/librari.c diff --git a/asm/librari.s b/asm/librari.s deleted file mode 100644 index ae1576bd..00000000 --- a/asm/librari.s +++ /dev/null @@ -1,246 +0,0 @@ - .include "asm/macros.inc" - - .include "constants/constants.inc" - - .syntax unified - - .text - - - thumb_func_start Librari -Librari: @ 0x0806B1CC - push {r4, lr} - adds r4, r0, #0 - ldrb r0, [r4, #0xc] - cmp r0, #1 - beq _0806B21E - cmp r0, #1 - bgt _0806B1E0 - cmp r0, #0 - beq _0806B1E6 - b _0806B25C -_0806B1E0: - cmp r0, #2 - beq _0806B24E - b _0806B25C -_0806B1E6: - movs r2, #1 - movs r0, #1 - strb r0, [r4, #0xc] - ldrb r1, [r4, #0x18] - subs r0, #5 - ands r0, r1 - orrs r0, r2 - strb r0, [r4, #0x18] - ldrb r0, [r4, #0xe] - strb r0, [r4, #0x14] - adds r0, r4, #0 - bl sub_0801E99C - adds r1, r4, #0 - adds r1, #0x68 - strb r0, [r1] - ldrb r1, [r1] - adds r0, r4, #0 - bl sub_08078784 - adds r0, r4, #0 - movs r1, #2 - bl sub_0805E3A0 - adds r0, r4, #0 - bl sub_0807DD50 - b _0806B25C -_0806B21E: - adds r2, r4, #0 - adds r2, #0x39 - movs r1, #0 - ldrsb r1, [r2, r1] - cmp r1, #2 - bne _0806B238 - movs r0, #0 - strb r1, [r4, #0xc] - strb r0, [r2] - adds r0, r4, #0 - bl sub_0806F118 - b _0806B25C -_0806B238: - adds r0, r4, #0 - movs r1, #0 - bl sub_0807DDAC - adds r0, r4, #0 - bl sub_0807DDE4 - adds r0, r4, #0 - bl UpdateAnimationSingleFrame - b _0806B25C -_0806B24E: - adds r0, r4, #0 - bl UpdateFuseInteraction - cmp r0, #0 - beq _0806B25C - movs r0, #1 - strb r0, [r4, #0xc] -_0806B25C: - pop {r4, pc} - .align 2, 0 - - thumb_func_start sub_0806B260 -sub_0806B260: @ 0x0806B260 - push {r4, r5, r6, lr} - adds r6, r0, #0 - adds r5, r1, #0 - movs r0, #0 - str r0, [r5, #0x14] - movs r0, #0x46 - bl GetInventoryValue - cmp r0, #0 - bne _0806B29E - movs r0, #0x29 - bl CheckGlobalFlag - cmp r0, #0 - beq _0806B286 - movs r4, #2 - movs r0, #1 - str r0, [r5, #0x14] - b _0806B2A0 -_0806B286: - movs r0, #0x7a - bl CheckLocalFlag - cmp r0, #0 - bne _0806B29A - movs r4, #0 - movs r0, #0x7a - bl SetLocalFlag - b _0806B2A0 -_0806B29A: - movs r4, #1 - b _0806B2A0 -_0806B29E: - movs r4, #3 -_0806B2A0: - ldr r0, _0806B2B0 @ =gUnk_08112D48 - lsls r1, r4, #1 - adds r1, r1, r0 - ldrh r0, [r1] - adds r1, r6, #0 - bl TextboxNoOverlap - pop {r4, r5, r6, pc} - .align 2, 0 -_0806B2B0: .4byte gUnk_08112D48 - - thumb_func_start sub_0806B2B4 -sub_0806B2B4: @ 0x0806B2B4 - push {r4, r5, lr} - adds r5, r0, #0 - movs r0, #0xb3 - bl CheckLocalFlag - cmp r0, #0 - beq _0806B314 - movs r0, #0 - bl CheckRoomFlag - cmp r0, #0 - bne _0806B2D6 - movs r4, #1 - movs r0, #0 - bl SetRoomFlag - b _0806B316 -_0806B2D6: - movs r0, #1 - bl CheckRoomFlag - cmp r0, #0 - bne _0806B2EA - movs r4, #2 - movs r0, #1 - bl SetRoomFlag - b _0806B316 -_0806B2EA: - movs r0, #2 - bl CheckRoomFlag - cmp r0, #0 - bne _0806B2FE - movs r4, #3 - movs r0, #2 - bl SetRoomFlag - b _0806B316 -_0806B2FE: - movs r4, #4 - movs r0, #0 - bl ClearRoomFlag - movs r0, #1 - bl ClearRoomFlag - movs r0, #2 - bl ClearRoomFlag - b _0806B316 -_0806B314: - movs r4, #0 -_0806B316: - ldr r0, _0806B328 @ =gUnk_08112D50 - lsls r1, r4, #1 - adds r1, r1, r0 - ldrh r0, [r1] - adds r1, r5, #0 - bl TextboxNoOverlap - pop {r4, r5, pc} - .align 2, 0 -_0806B328: .4byte gUnk_08112D50 - - thumb_func_start Librari_Fusion -Librari_Fusion: @ 0x0806B32C - push {lr} - adds r2, r0, #0 - ldrb r0, [r2, #0xc] - cmp r0, #0 - bne _0806B352 - adds r0, #1 - strb r0, [r2, #0xc] - ldrb r1, [r2, #0x18] - movs r0, #4 - rsbs r0, r0, #0 - ands r0, r1 - movs r1, #1 - orrs r0, r1 - strb r0, [r2, #0x18] - adds r0, r2, #0 - movs r1, #9 - bl InitAnimationForceUpdate - b _0806B358 -_0806B352: - adds r0, r2, #0 - bl UpdateAnimationSingleFrame -_0806B358: - pop {pc} - .align 2, 0 - - thumb_func_start Percy_Head -Percy_Head: @ 0x0806B35C - push {r4, lr} - adds r4, r0, #0 - adds r0, #0x5b - ldrb r0, [r0] - movs r2, #0x3f - ands r2, r0 - adds r2, #0x13 - adds r0, r4, #0 - movs r1, #0 - bl SetExtraSpriteFrame - adds r0, r4, #0 - adds r0, #0x5a - ldrb r0, [r0] - movs r2, #0x7f - ands r2, r0 - adds r2, #0xb - adds r0, r4, #0 - movs r1, #1 - bl SetExtraSpriteFrame - ldrb r2, [r4, #0x1e] - adds r0, r4, #0 - movs r1, #2 - bl SetExtraSpriteFrame - adds r0, r4, #0 - movs r1, #2 - movs r2, #1 - bl SetSpriteSubEntryOffsetData1 - adds r0, r4, #0 - movs r1, #2 - movs r2, #0 - bl SetSpriteSubEntryOffsetData2 - adds r0, r4, #0 - bl sub_0807000C - pop {r4, pc} diff --git a/linker.ld b/linker.ld index 7714d9f2..02534b85 100644 --- a/linker.ld +++ b/linker.ld @@ -595,7 +595,7 @@ SECTIONS { asm/rem.o(.text); src/npc/townMinish.o(.text); asm/townMinish.o(.text); - asm/librari.o(.text); + src/npc/librari.o(.text); asm/percy.o(.text); asm/vaatiReborn.o(.text); src/npc/moblinLady.o(.text); diff --git a/src/npc/librari.c b/src/npc/librari.c new file mode 100644 index 00000000..77b48bb6 --- /dev/null +++ b/src/npc/librari.c @@ -0,0 +1,107 @@ +#include "global.h" +#include "entity.h" +#include "npc.h" +#include "flags.h" +#include "textbox.h" +#include "functions.h" + +extern u16 gUnk_08112D48[]; + +void Librari(Entity* this) { + switch (this->action) { + case 0: + this->action = 1; + this->spriteSettings.b.draw = TRUE; + this->animationState = this->actionDelay; + this->field_0x68 = sub_0801E99C(this); + sub_08078784(this, this->field_0x68); + sub_0805E3A0(this, 2); + sub_0807DD50(this); + break; + case 1: + if (this->interactType == 2) { + this->action = 2; + this->interactType = 0; + sub_0806F118(this); + } else { + sub_0807DDAC(this, 0); + sub_0807DDE4(this); + UpdateAnimationSingleFrame(this); + } + break; + case 2: + if (UpdateFuseInteraction(this)) { + this->action = 1; + } + } +} + +void sub_0806B260(Entity* this, u32 arg1) { + u32 index; + + *(u32*)(arg1 + 0x14) = 0; + // flippers + if (!GetInventoryValue(0x46)) { + if (CheckGlobalFlag(0x29)) { + index = 2; + *(u32*)(arg1 + 0x14) = 1; + } else if (!CheckLocalFlag(0x7a)) { + index = 0; + SetLocalFlag(0x7a); + } else { + index = 1; + } + } else { + index = 3; + } + TextboxNoOverlap(gUnk_08112D48[index], this); +} + +extern u16 gUnk_08112D50[]; + +void sub_0806b2b4(Entity* this) { + u32 index; + + if (CheckLocalFlag(0xb3)) { + if (!CheckRoomFlag(0)) { + index = 1; + SetRoomFlag(0); + } else if (!CheckRoomFlag(1)) { + index = 2; + SetRoomFlag(1); + } else if (!CheckRoomFlag(2)) { + index = 3; + SetRoomFlag(2); + } else { + index = 4; + ClearRoomFlag(0); + ClearRoomFlag(1); + ClearRoomFlag(2); + } + } else { + index = 0; + } + TextboxNoOverlap(gUnk_08112D50[index], this); +} + +void Librari_Fusion(Entity *this) +{ + if (this->action == 0) { + this->action++; + this->spriteSettings.b.draw = TRUE; + InitAnimationForceUpdate(this, 9); + } + else { + UpdateAnimationSingleFrame(this); + } +} + +void Percy_Head(Entity *this) // ??? +{ + SetExtraSpriteFrame(this, 0, (this->frameSpriteSettings & 0x3f) + 0x13); + SetExtraSpriteFrame(this, 1, (this->frames.all & 0x7f) + 0xb); + SetExtraSpriteFrame(this, 2, this->frameIndex); + SetSpriteSubEntryOffsetData1(this, 2, 1); + SetSpriteSubEntryOffsetData2(this, 2, 0); + sub_0807000C(this); +} \ No newline at end of file From 0d39bb7f11112a13b2e2df975570672a304ea819 Mon Sep 17 00:00:00 2001 From: theo3 Date: Fri, 24 Jul 2020 14:18:58 -0700 Subject: [PATCH 066/158] goronMerchant.c --- asm/goronMerchant.s | 256 ---------------------------------------- asm/percy.s | 59 --------- include/functions.h | 2 + include/room.h | 4 +- include/textbox.h | 3 + linker.ld | 2 + src/npc/goronMerchant.c | 143 ++++++++++++++++++++++ src/npc/percy.c | 36 ++++++ 8 files changed, 189 insertions(+), 316 deletions(-) create mode 100644 src/npc/goronMerchant.c create mode 100644 src/npc/percy.c diff --git a/asm/goronMerchant.s b/asm/goronMerchant.s index ed3220cd..dcde5693 100644 --- a/asm/goronMerchant.s +++ b/asm/goronMerchant.s @@ -6,262 +6,6 @@ .text - - thumb_func_start GoronMerchant -GoronMerchant: @ 0x08069544 - push {r4, lr} - adds r4, r0, #0 - ldrb r1, [r4, #0x10] - movs r0, #2 - ands r0, r1 - cmp r0, #0 - beq _08069568 - ldr r0, _08069564 @ =gUnk_08111B98 - ldrb r1, [r4, #0xc] - lsls r1, r1, #2 - adds r1, r1, r0 - ldr r1, [r1] - adds r0, r4, #0 - bl _call_via_r1 - b _0806957E - .align 2, 0 -_08069564: .4byte gUnk_08111B98 -_08069568: - ldr r0, _08069580 @ =gUnk_08111B88 - ldrb r1, [r4, #0xc] - lsls r1, r1, #2 - adds r1, r1, r0 - ldr r1, [r1] - adds r0, r4, #0 - bl _call_via_r1 - adds r0, r4, #0 - bl sub_0806ED78 -_0806957E: - pop {r4, pc} - .align 2, 0 -_08069580: .4byte gUnk_08111B88 - - thumb_func_start sub_08069584 -sub_08069584: @ 0x08069584 - push {lr} - adds r1, r0, #0 - ldr r0, _08069598 @ =gUnk_030010A0 - adds r0, #0x2c - ldrb r0, [r0] - cmp r0, #0 - beq _0806959C - movs r0, #3 - b _0806959E - .align 2, 0 -_08069598: .4byte gUnk_030010A0 -_0806959C: - movs r0, #1 -_0806959E: - strb r0, [r1, #0xc] - adds r0, r1, #0 - movs r1, #2 - bl InitAnimationForceUpdate - pop {pc} - .align 2, 0 - - thumb_func_start sub_080695AC -sub_080695AC: @ 0x080695AC - push {r4, lr} - adds r4, r0, #0 - ldrb r0, [r4, #0xf] - adds r0, #1 - strb r0, [r4, #0xf] - lsls r0, r0, #0x18 - lsrs r0, r0, #0x18 - cmp r0, #0x10 - bls _080695D2 - movs r0, #0 - strb r0, [r4, #0xf] - adds r0, r4, #0 - movs r1, #0x28 - movs r2, #0x28 - bl sub_0806ED9C - cmp r0, #0 - blt _080695D2 - strb r0, [r4, #0x14] -_080695D2: - adds r0, r4, #0 - adds r0, #0x58 - ldrb r0, [r0] - ldrb r1, [r4, #0x14] - cmp r0, r1 - beq _080695E6 - ldrb r1, [r4, #0x14] - adds r0, r4, #0 - bl InitAnimationForceUpdate -_080695E6: - pop {r4, pc} - - thumb_func_start sub_080695E8 -sub_080695E8: @ 0x080695E8 - push {r4, lr} - adds r4, r0, #0 - bl UpdateAnimationSingleFrame - ldr r0, _08069618 @ =gTextBox - ldrb r0, [r0] - movs r1, #0x7f - ands r1, r0 - cmp r1, #0 - bne _08069614 - movs r0, #1 - strb r0, [r4, #0xc] - adds r0, r4, #0 - adds r0, #0x39 - strb r1, [r0] - adds r0, r4, #0 - bl sub_0805E584 - ldrb r1, [r4, #0x14] - adds r0, r4, #0 - bl InitAnimationForceUpdate -_08069614: - pop {r4, pc} - .align 2, 0 -_08069618: .4byte gTextBox - - thumb_func_start sub_0806961C -sub_0806961C: @ 0x0806961C - push {r4, lr} - adds r4, r0, #0 - ldr r0, _08069638 @ =gUnk_030010A0 - adds r0, #0x2c - ldrb r0, [r0] - cmp r0, #2 - bne _08069630 - adds r0, r4, #0 - bl UpdateAnimationSingleFrame -_08069630: - adds r0, r4, #0 - bl sub_0806FD3C - pop {r4, pc} - .align 2, 0 -_08069638: .4byte gUnk_030010A0 - - thumb_func_start sub_0806963C -sub_0806963C: @ 0x0806963C - push {lr} - movs r3, #1 - movs r1, #1 - strb r1, [r0, #0xc] - ldrb r2, [r0, #0x18] - subs r1, #5 - ands r1, r2 - orrs r1, r3 - strb r1, [r0, #0x18] - bl sub_0807DD50 - pop {pc} - - thumb_func_start sub_08069654 -sub_08069654: @ 0x08069654 - push {lr} - movs r1, #0 - bl sub_0807DD94 - pop {pc} - .align 2, 0 - - thumb_func_start sub_08069660 -sub_08069660: @ 0x08069660 - push {r4, lr} - adds r4, r0, #0 - ldr r0, _0806967C @ =0x00002C1C - adds r1, r4, #0 - bl TextboxNoOverlap - adds r0, r4, #0 - bl sub_080696BC - ldr r1, _08069680 @ =gTextBox - lsls r0, r0, #0x10 - lsrs r0, r0, #0x10 - str r0, [r1, #0x10] - pop {r4, pc} - .align 2, 0 -_0806967C: .4byte 0x00002C1C -_08069680: .4byte gTextBox - - thumb_func_start sub_08069684 -sub_08069684: @ 0x08069684 - push {lr} - movs r0, #9 - movs r1, #0x31 - movs r2, #8 - bl sub_0805EB00 - cmp r0, #0 - bne _080696AE - bl sub_0805E8D4 - adds r1, r0, #0 - cmp r1, #0 - beq _080696AE - movs r0, #9 - strb r0, [r1, #8] - movs r0, #0x31 - strb r0, [r1, #9] - adds r0, r1, #0 - movs r1, #8 - bl sub_0805EA2C -_080696AE: - pop {pc} - - thumb_func_start sub_080696B0 -sub_080696B0: @ 0x080696B0 - ldr r1, _080696B8 @ =gRoomVars - movs r0, #0 - strb r0, [r1, #6] - bx lr - .align 2, 0 -_080696B8: .4byte gRoomVars - - thumb_func_start sub_080696BC -sub_080696BC: @ 0x080696BC - push {r4, r5, lr} - ldr r0, _08069710 @ =gRoomVars - ldrb r0, [r0, #7] - movs r5, #0 - cmp r0, #0x70 - ble _080696CA - movs r5, #1 -_080696CA: - cmp r0, #0x72 - ble _080696D0 - movs r5, #2 -_080696D0: - movs r0, #0x3e - bl CheckGlobalFlag - rsbs r1, r0, #0 - orrs r1, r0 - lsrs r4, r1, #0x1f - movs r0, #0x3f - bl CheckGlobalFlag - cmp r0, #0 - beq _080696E8 - movs r4, #2 -_080696E8: - movs r0, #0x40 - bl CheckGlobalFlag - cmp r0, #0 - beq _080696F4 - movs r4, #3 -_080696F4: - movs r0, #0x41 - bl CheckGlobalFlag - cmp r0, #0 - beq _08069700 - movs r4, #4 -_08069700: - ldr r0, _08069714 @ =gUnk_08111BA0 - lsls r1, r4, #1 - adds r1, r1, r4 - adds r1, r1, r5 - lsls r1, r1, #1 - adds r1, r1, r0 - ldrh r0, [r1] - pop {r4, r5, pc} - .align 2, 0 -_08069710: .4byte gRoomVars -_08069714: .4byte gUnk_08111BA0 - thumb_func_start sub_08069718 sub_08069718: @ 0x08069718 push {r4, r5, r6, r7, lr} diff --git a/asm/percy.s b/asm/percy.s index a48c9a2c..7cd6c8a0 100644 --- a/asm/percy.s +++ b/asm/percy.s @@ -6,65 +6,6 @@ .text - - thumb_func_start Percy -Percy: @ 0x0806B3AC - push {lr} - adds r2, r0, #0 - ldrb r1, [r2, #0x10] - movs r0, #2 - ands r0, r1 - cmp r0, #0 - beq _0806B3C2 - adds r0, r2, #0 - bl sub_0806B41C - b _0806B3C8 -_0806B3C2: - adds r0, r2, #0 - bl sub_0806B3CC -_0806B3C8: - pop {pc} - .align 2, 0 - - thumb_func_start sub_0806B3CC -sub_0806B3CC: @ 0x0806B3CC - push {r4, lr} - adds r4, r0, #0 - ldrb r0, [r4, #0xc] - cmp r0, #0 - bne _0806B3F4 - ldr r1, _0806B418 @ =gUnk_08112E1C - adds r0, r4, #0 - bl LoadExtraSpriteData - cmp r0, #0 - beq _0806B414 - movs r0, #1 - strb r0, [r4, #0xc] - adds r0, r4, #0 - movs r1, #0 - bl InitializeAnimation - adds r0, r4, #0 - bl sub_08078778 -_0806B3F4: - adds r0, r4, #0 - bl GetNextFrame - adds r1, r4, #0 - adds r1, #0x39 - movs r0, #0 - ldrsb r0, [r1, r0] - cmp r0, #0 - beq _0806B40E - movs r0, #0 - strb r0, [r1] - bl TextboxNoOverlapFollow -_0806B40E: - adds r0, r4, #0 - bl sub_0806ED78 -_0806B414: - pop {r4, pc} - .align 2, 0 -_0806B418: .4byte gUnk_08112E1C - thumb_func_start sub_0806B41C sub_0806B41C: @ 0x0806B41C push {r4, lr} diff --git a/include/functions.h b/include/functions.h index 352cc973..00a7e4a6 100644 --- a/include/functions.h +++ b/include/functions.h @@ -198,4 +198,6 @@ extern u32 sub_0807953C(void); extern void sub_08077B2C(void); extern void sub_080A29BC(Entity*); extern void sub_080AE068(Entity*); +extern Entity* sub_0805E8D4(void); +extern void sub_0805EA2C(Entity*, u32); #endif diff --git a/include/room.h b/include/room.h index d6bc4a80..8170da5f 100644 --- a/include/room.h +++ b/include/room.h @@ -36,7 +36,9 @@ typedef struct { typedef struct { u8 filler[6]; u8 itemForSaleIndex; - u16 unk; + u8 field_0x7; + u8 field_0x8; + u8 field_0x9; u8 unk2; u16 filler2[3]; u32 roomFlags; diff --git a/include/textbox.h b/include/textbox.h index 82d7e818..77c45f59 100644 --- a/include/textbox.h +++ b/include/textbox.h @@ -14,6 +14,9 @@ typedef struct { u8 textWindowPosY; u16 textIndex; u16 unk2; // HI? + u16 field_0xc; + u16 field_0xe; + u32 field_0x10; } TextBox; extern TextBox gTextBox; diff --git a/linker.ld b/linker.ld index 02534b85..c47ce28d 100644 --- a/linker.ld +++ b/linker.ld @@ -586,6 +586,7 @@ SECTIONS { src/npc/bladeBrothers.o(.text); src/npc/cow.o(.text); src/npc/goron.o(.text); + src/npc/goronMerchant.o(.text); asm/goronMerchant.o(.text); asm/gorman.o(.text); asm/dog.o(.text); @@ -596,6 +597,7 @@ SECTIONS { src/npc/townMinish.o(.text); asm/townMinish.o(.text); src/npc/librari.o(.text); + src/npc/percy.o(.text); asm/percy.o(.text); asm/vaatiReborn.o(.text); src/npc/moblinLady.o(.text); diff --git a/src/npc/goronMerchant.c b/src/npc/goronMerchant.c new file mode 100644 index 00000000..8cda93ec --- /dev/null +++ b/src/npc/goronMerchant.c @@ -0,0 +1,143 @@ +#include "global.h" +#include "entity.h" +#include "functions.h" +#include "structures.h" +#include "textbox.h" +#include "room.h" +#include "flags.h" + +extern u32 sub_080696BC(Entity*); + +extern void (*const gUnk_08111B88[])(Entity*); +extern void (*const gUnk_08111B98[])(Entity*); + +extern u16 gUnk_08111BA0[]; + + +void GoronMerchant(Entity *this) +{ + if ((this->flags & 2) != 0) { + gUnk_08111B98[this->action](this); + } + else { + gUnk_08111B88[this->action](this); + sub_0806ED78(this); + } +} + +void sub_08069584(Entity *this) +{ + if (gUnk_030010A0.field_0x24[8] != 0) { + this->action = 3; + } + else { + this->action = 1; + } + InitAnimationForceUpdate(this, 2); +} + +void sub_080695AC(Entity *this) +{ + s32 iVar2; + + if (++this->field_0xf > 0x10) { + this->field_0xf = 0; + iVar2 = sub_0806ED9C(this, 0x28, 0x28); + if (iVar2 > -1) { + this->animationState = iVar2; + } + } + if (this->animIndex != this->animationState) { + InitAnimationForceUpdate(this, this->animationState); + } +} + +void sub_080695E8(Entity *this) +{ + UpdateAnimationSingleFrame(this); + if ((gTextBox.doTextBox & 0x7f) == 0) { + this->action = 1; + this->interactType = gTextBox.doTextBox & 0x7f; + sub_0805E584(this); + InitAnimationForceUpdate(this, this->animationState); + } +} + +void sub_0806961C(Entity *this) +{ + if (gUnk_030010A0.field_0x24[8] == 2) { + UpdateAnimationSingleFrame(this); + } + sub_0806FD3C(this); +} + +void sub_0806963C(Entity *this) +{ + this->action = 1; + this->spriteSettings.b.draw = TRUE; + sub_0807DD50(this); +} + +void sub_08069654(Entity* this) { + sub_0807DD94(this, 0); +} + +void sub_08069660(Entity *this) +{ + u32 uVar1; + + TextboxNoOverlap(0x2c1c, this); + gTextBox.field_0x10 = (u16)sub_080696BC(this); +} + +void sub_08069684(void) +{ + Entity *mgr; + + if (sub_0805EB00(9, 0x31, 8) == NULL) { + mgr = sub_0805E8D4(); + if (mgr != NULL) { + mgr->entityType.type = 9; + mgr->entityType.subtype = 0x31; + sub_0805EA2C(mgr, 8); + } + } +} + +void sub_080696B0(void) +{ + gRoomVars.itemForSaleIndex = 0; +} + +u32 sub_080696BC(Entity* this) +{ + u32 uVar1; + u32 temp; + u32 iVar3; + s32 temp2; + + temp2 = gRoomVars.field_0x7; + if (temp2 > 0x70) { + iVar3 = 1; + } + else { + iVar3 = 0; + } + if (temp2 > 0x72) { + iVar3 = 2; + } + + temp = CheckGlobalFlag(0x3e); + uVar1 = (-temp | temp) >> 0x1f; + + if (CheckGlobalFlag(0x3f)) { + uVar1 = 2; + } + if (CheckGlobalFlag(0x40)) { + uVar1 = 3; + } + if (CheckGlobalFlag(0x41)) { + uVar1 = 4; + } + return gUnk_08111BA0[uVar1 * 3 + iVar3]; +} \ No newline at end of file diff --git a/src/npc/percy.c b/src/npc/percy.c new file mode 100644 index 00000000..759b94d3 --- /dev/null +++ b/src/npc/percy.c @@ -0,0 +1,36 @@ +#include "global.h" +#include "entity.h" +#include "npc.h" +#include "textbox.h" +#include "functions.h" + +extern void sub_0806B41C(Entity*); +void sub_0806B3CC(Entity*); + +extern SpriteLoadData gUnk_08112E1C; + +void Percy(Entity* this) { + if ((this->flags & 2) != 0) { + sub_0806B41C(this); + } else { + sub_0806B3CC(this); + } +} + +void sub_0806B3CC(Entity *this) +{ + if (this->action == 0) { + if (!LoadExtraSpriteData(this, &gUnk_08112E1C)) { + return; + } + this->action = 1; + InitializeAnimation(this, 0); + sub_08078778(this); + } + GetNextFrame(this); + if (this->interactType != 0) { + this->interactType = 0; + TextboxNoOverlapFollow(0); + } + sub_0806ED78(this); +} From b6864cfac635fc8080680f0a819f8c1aeec497f6 Mon Sep 17 00:00:00 2001 From: Marcus Huderle Date: Sun, 2 Aug 2020 12:20:55 -0500 Subject: [PATCH 067/158] Finish decompiling heartContainer.c --- asm/heartContainer.s | 76 - asm/manager27.s | 7 - data/data_081208A0.s | 23301 --------------------------------- data/data_08121C58.s | 23303 ++++++++++++++++++++++++++++++++++ linker.ld | 3 +- src/object/heartContainer.c | 49 +- 6 files changed, 23347 insertions(+), 23392 deletions(-) delete mode 100644 asm/heartContainer.s delete mode 100644 asm/manager27.s create mode 100755 data/data_08121C58.s diff --git a/asm/heartContainer.s b/asm/heartContainer.s deleted file mode 100644 index 5dc7e9de..00000000 --- a/asm/heartContainer.s +++ /dev/null @@ -1,76 +0,0 @@ - .include "asm/macros.inc" - - .include "constants/constants.inc" - - .syntax unified - - .text - - thumb_func_start sub_0808E714 -sub_0808E714: @ 0x0808E714 - push {r4, lr} - adds r4, r0, #0 - ldrb r3, [r4, #0xf] - lsls r0, r3, #3 - movs r1, #0x80 - lsls r1, r1, #3 - subs r2, r1, r0 - movs r0, #0x80 - lsls r0, r0, #1 - cmp r2, r0 - ble _0808E73A - adds r0, r3, #1 - strb r0, [r4, #0xf] - adds r0, r4, #0 - adds r1, r2, #0 - movs r3, #0 - bl sub_0805EC9C - b _0808E756 -_0808E73A: - movs r0, #3 - strb r0, [r4, #0xc] - adds r2, r4, #0 - adds r2, #0x3c - ldrb r1, [r2] - movs r0, #0x10 - orrs r0, r1 - strb r0, [r2] - adds r0, r4, #0 - bl sub_0805EC60 - ldr r0, _0808E760 @ =0x00000141 - bl PlaySFX -_0808E756: - adds r0, r4, #0 - bl sub_08080CB4 - pop {r4, pc} - .align 2, 0 -_0808E760: .4byte 0x00000141 - - thumb_func_start sub_0808E764 -sub_0808E764: @ 0x0808E764 - push {r4, lr} - adds r4, r0, #0 - bl sub_08080CB4 - ldr r0, _0808E79C @ =gLinkState - ldr r0, [r0, #0x30] - movs r1, #0x80 - ands r0, r1 - cmp r0, #0 - bne _0808E79A - adds r0, r4, #0 - bl sub_08017850 - cmp r0, #0 - beq _0808E79A - adds r0, r4, #0 - adds r0, #0x84 - ldrh r0, [r0] - bl SetFlag - movs r0, #0x62 - movs r1, #0 - movs r2, #0 - bl CreateItemEntity - bl DeleteThisEntity -_0808E79A: - pop {r4, pc} - .align 2, 0 -_0808E79C: .4byte gLinkState diff --git a/asm/manager27.s b/asm/manager27.s deleted file mode 100644 index abbe0da4..00000000 --- a/asm/manager27.s +++ /dev/null @@ -1,7 +0,0 @@ - .include "asm/macros.inc" - - .include "constants/constants.inc" - - .syntax unified - - .text \ No newline at end of file diff --git a/data/data_081208A0.s b/data/data_081208A0.s index 195092dc..f992b53d 100644 --- a/data/data_081208A0.s +++ b/data/data_081208A0.s @@ -927,23304 +927,3 @@ gUnk_08121C34:: @ 08121C34 gUnk_08121C40:: @ 08121C40 .incbin "baserom.gba", 0x121C40, 0x0000008 - -gUnk_08121C48:: @ 08121C48 - .incbin "baserom.gba", 0x121C48, 0x0000010 - -gUnk_08121C58:: @ 08121C58 - .incbin "baserom.gba", 0x121C58, 0x000000C - -gUnk_08121C64:: @ 08121C64 - .incbin "baserom.gba", 0x121C64, 0x0000068 - -gUnk_08121CCC:: @ 08121CCC - .incbin "baserom.gba", 0x121CCC, 0x0000008 - -gUnk_08121CD4:: @ 08121CD4 - .incbin "baserom.gba", 0x121CD4, 0x000003C - -gUnk_08121D10:: @ 08121D10 - .incbin "baserom.gba", 0x121D10, 0x0000008 - -gUnk_08121D18:: @ 08121D18 - .incbin "baserom.gba", 0x121D18, 0x0000020 - -gUnk_08121D38:: @ 08121D38 - .incbin "baserom.gba", 0x121D38, 0x0000010 - -gUnk_08121D48:: @ 08121D48 - .incbin "baserom.gba", 0x121D48, 0x000000C - -gUnk_08121D54:: @ 08121D54 - .incbin "baserom.gba", 0x121D54, 0x00000BD - -gUnk_08121E11:: @ 08121E11 - .incbin "baserom.gba", 0x121E11, 0x0000013 - -gUnk_08121E24:: @ 08121E24 - .incbin "baserom.gba", 0x121E24, 0x0000005 - -gUnk_08121E29:: @ 08121E29 - .incbin "baserom.gba", 0x121E29, 0x0000008 - -gUnk_08121E31:: @ 08121E31 - .incbin "baserom.gba", 0x121E31, 0x000001F - -gUnk_08121E50:: @ 08121E50 - .incbin "baserom.gba", 0x121E50, 0x000000C - -gUnk_08121E5C:: @ 08121E5C - .incbin "baserom.gba", 0x121E5C, 0x000002C - -gUnk_08121E88:: @ 08121E88 - .incbin "baserom.gba", 0x121E88, 0x0000010 - -gUnk_08121E98:: @ 08121E98 - .incbin "baserom.gba", 0x121E98, 0x0000008 - -gUnk_08121EA0:: @ 08121EA0 - .incbin "baserom.gba", 0x121EA0, 0x0000004 - -gUnk_08121EA4:: @ 08121EA4 - .incbin "baserom.gba", 0x121EA4, 0x000000C - -gUnk_08121EB0:: @ 08121EB0 - .incbin "baserom.gba", 0x121EB0, 0x0000003 - -gUnk_08121EB3:: @ 08121EB3 - .incbin "baserom.gba", 0x121EB3, 0x0000005 - -gUnk_08121EB8:: @ 08121EB8 - .incbin "baserom.gba", 0x121EB8, 0x0000020 - -gUnk_08121ED8:: @ 08121ED8 - .incbin "baserom.gba", 0x121ED8, 0x000000C - -gUnk_08121EE4:: @ 08121EE4 - .incbin "baserom.gba", 0x121EE4, 0x000000C - -gUnk_08121EF0:: @ 08121EF0 - .incbin "baserom.gba", 0x121EF0, 0x0000008 - -gUnk_08121EF8:: @ 08121EF8 - .incbin "baserom.gba", 0x121EF8, 0x0000036 - -gUnk_08121F2E:: @ 08121F2E - .incbin "baserom.gba", 0x121F2E, 0x00000D2 - -gUnk_08122000:: @ 08122000 - .incbin "baserom.gba", 0x122000, 0x000001C - -gUnk_0812201C:: @ 0812201C - .incbin "baserom.gba", 0x12201C, 0x0000016 - -gUnk_08122032:: @ 08122032 - .incbin "baserom.gba", 0x122032, 0x00000F6 - -gUnk_08122128:: @ 08122128 - .incbin "baserom.gba", 0x122128, 0x000000A - -gUnk_08122132:: @ 08122132 - .incbin "baserom.gba", 0x122132, 0x0000066 - -gUnk_08122198:: @ 08122198 - .incbin "baserom.gba", 0x122198, 0x0000010 - -gUnk_081221A8:: @ 081221A8 - .incbin "baserom.gba", 0x1221A8, 0x0000010 - -gUnk_081221B8:: @ 081221B8 - .incbin "baserom.gba", 0x1221B8, 0x0000010 - -gUnk_081221C8:: @ 081221C8 - .incbin "baserom.gba", 0x1221C8, 0x0000010 - -gUnk_081221D8:: @ 081221D8 - .incbin "baserom.gba", 0x1221D8, 0x0000010 - -gUnk_081221E8:: @ 081221E8 - .incbin "baserom.gba", 0x1221E8, 0x0000010 - -gUnk_081221F8:: @ 081221F8 - .incbin "baserom.gba", 0x1221F8, 0x0000010 - -gUnk_08122208:: @ 08122208 - .incbin "baserom.gba", 0x122208, 0x0000010 - -gUnk_08122218:: @ 08122218 - .incbin "baserom.gba", 0x122218, 0x0000008 - -gUnk_08122220:: @ 08122220 - .incbin "baserom.gba", 0x122220, 0x0000024 - -gUnk_08122244:: @ 08122244 - .incbin "baserom.gba", 0x122244, 0x0000010 - -gUnk_08122254:: @ 08122254 - .incbin "baserom.gba", 0x122254, 0x0000008 - -gUnk_0812225C:: @ 0812225C - .incbin "baserom.gba", 0x12225C, 0x0000008 - -gUnk_08122264:: @ 08122264 - .incbin "baserom.gba", 0x122264, 0x0000004 - -gUnk_08122268:: @ 08122268 - .incbin "baserom.gba", 0x122268, 0x0000004 - -gUnk_0812226C:: @ 0812226C - .incbin "baserom.gba", 0x12226C, 0x000000C - -gUnk_08122278:: @ 08122278 - .incbin "baserom.gba", 0x122278, 0x0000008 - -gUnk_08122280:: @ 08122280 - .incbin "baserom.gba", 0x122280, 0x0000008 - -gUnk_08122288:: @ 08122288 - .incbin "baserom.gba", 0x122288, 0x000000C - -gUnk_08122294:: @ 08122294 - .incbin "baserom.gba", 0x122294, 0x000000C - -gUnk_081222A0:: @ 081222A0 - .incbin "baserom.gba", 0x1222A0, 0x0000008 - -gUnk_081222A8:: @ 081222A8 - .incbin "baserom.gba", 0x1222A8, 0x0000008 - -gUnk_081222B0:: @ 081222B0 - .incbin "baserom.gba", 0x1222B0, 0x0000008 - -gUnk_081222B8:: @ 081222B8 - .incbin "baserom.gba", 0x1222B8, 0x0000008 - -gUnk_081222C0:: @ 081222C0 - .incbin "baserom.gba", 0x1222C0, 0x0000004 - -gUnk_081222C4:: @ 081222C4 - .incbin "baserom.gba", 0x1222C4, 0x0000004 - -gUnk_081222C8:: @ 081222C8 - .incbin "baserom.gba", 0x1222C8, 0x0000004 - -gUnk_081222CC:: @ 081222CC - .incbin "baserom.gba", 0x1222CC, 0x0000004 - -gUnk_081222D0:: @ 081222D0 - .incbin "baserom.gba", 0x1222D0, 0x0000004 - -gUnk_081222D4:: @ 081222D4 - .incbin "baserom.gba", 0x1222D4, 0x0000004 - -gUnk_081222D8:: @ 081222D8 - .incbin "baserom.gba", 0x1222D8, 0x0000004 - -gUnk_081222DC:: @ 081222DC - .incbin "baserom.gba", 0x1222DC, 0x0000004 - -gUnk_081222E0:: @ 081222E0 - .incbin "baserom.gba", 0x1222E0, 0x0000004 - -gUnk_081222E4:: @ 081222E4 - .incbin "baserom.gba", 0x1222E4, 0x0000004 - -gUnk_081222E8:: @ 081222E8 - .incbin "baserom.gba", 0x1222E8, 0x0000004 - -gUnk_081222EC:: @ 081222EC - .incbin "baserom.gba", 0x1222EC, 0x0000004 - -gUnk_081222F0:: @ 081222F0 - .incbin "baserom.gba", 0x1222F0, 0x0000004 - -gUnk_081222F4:: @ 081222F4 - .incbin "baserom.gba", 0x1222F4, 0x0000004 - -gUnk_081222F8:: @ 081222F8 - .incbin "baserom.gba", 0x1222F8, 0x0000004 - -gUnk_081222FC:: @ 081222FC - .incbin "baserom.gba", 0x1222FC, 0x0000004 - -gUnk_08122300:: @ 08122300 - .incbin "baserom.gba", 0x122300, 0x0000004 - -gUnk_08122304:: @ 08122304 - .incbin "baserom.gba", 0x122304, 0x0000004 - -gUnk_08122308:: @ 08122308 - .incbin "baserom.gba", 0x122308, 0x0000004 - -gUnk_0812230C:: @ 0812230C - .incbin "baserom.gba", 0x12230C, 0x0000004 - -gUnk_08122310:: @ 08122310 - .incbin "baserom.gba", 0x122310, 0x0000004 - -gUnk_08122314:: @ 08122314 - .incbin "baserom.gba", 0x122314, 0x0000004 - -gUnk_08122318:: @ 08122318 - .incbin "baserom.gba", 0x122318, 0x0000003 - -gUnk_0812231B:: @ 0812231B - .incbin "baserom.gba", 0x12231B, 0x0000001 - -gUnk_0812231C:: @ 0812231C - .incbin "baserom.gba", 0x12231C, 0x0000004 - -gUnk_08122320:: @ 08122320 - .incbin "baserom.gba", 0x122320, 0x0000004 - -gUnk_08122324:: @ 08122324 - .incbin "baserom.gba", 0x122324, 0x0000003 - -gUnk_08122327:: @ 08122327 - .incbin "baserom.gba", 0x122327, 0x0000001 - -gUnk_08122328:: @ 08122328 - .incbin "baserom.gba", 0x122328, 0x0000004 - -gUnk_0812232C:: @ 0812232C - .incbin "baserom.gba", 0x12232C, 0x0000004 - -gUnk_08122330:: @ 08122330 - .incbin "baserom.gba", 0x122330, 0x0000004 - -gUnk_08122334:: @ 08122334 - .incbin "baserom.gba", 0x122334, 0x0000011 - -gUnk_08122345:: @ 08122345 - .incbin "baserom.gba", 0x122345, 0x0000063 - -gUnk_081223A8:: @ 081223A8 - .incbin "baserom.gba", 0x1223A8, 0x0000020 - -gUnk_081223C8:: @ 081223C8 - .incbin "baserom.gba", 0x1223C8, 0x0000008 - -gUnk_081223D0:: @ 081223D0 - .incbin "baserom.gba", 0x1223D0, 0x0000008 - -gUnk_081223D8:: @ 081223D8 - .incbin "baserom.gba", 0x1223D8, 0x0000010 - -gUnk_081223E8:: @ 081223E8 - .incbin "baserom.gba", 0x1223E8, 0x000001A - -gUnk_08122402:: @ 08122402 - .incbin "baserom.gba", 0x122402, 0x000001A - -gUnk_0812241C:: @ 0812241C - .incbin "baserom.gba", 0x12241C, 0x0000011 - -gUnk_0812242D:: @ 0812242D - .incbin "baserom.gba", 0x12242D, 0x0000009 - -gUnk_08122436:: @ 08122436 - .incbin "baserom.gba", 0x122436, 0x000001A - -gUnk_08122450:: @ 08122450 - .incbin "baserom.gba", 0x122450, 0x0000009 - -gUnk_08122459:: @ 08122459 - .incbin "baserom.gba", 0x122459, 0x0000009 - -gUnk_08122462:: @ 08122462 - .incbin "baserom.gba", 0x122462, 0x0000009 - -gUnk_0812246B:: @ 0812246B - .incbin "baserom.gba", 0x12246B, 0x0000009 - -gUnk_08122474:: @ 08122474 - .incbin "baserom.gba", 0x122474, 0x0000015 - -gUnk_08122489:: @ 08122489 - .incbin "baserom.gba", 0x122489, 0x0000015 - -gUnk_0812249E:: @ 0812249E - .incbin "baserom.gba", 0x12249E, 0x0000015 - -gUnk_081224B3:: @ 081224B3 - .incbin "baserom.gba", 0x1224B3, 0x0000015 - -gUnk_081224C8:: @ 081224C8 - .incbin "baserom.gba", 0x1224C8, 0x0000019 - -gUnk_081224E1:: @ 081224E1 - .incbin "baserom.gba", 0x1224E1, 0x0000018 - -gUnk_081224F9:: @ 081224F9 - .incbin "baserom.gba", 0x1224F9, 0x0000018 - -gUnk_08122511:: @ 08122511 - .incbin "baserom.gba", 0x122511, 0x0000018 - -gUnk_08122529:: @ 08122529 - .incbin "baserom.gba", 0x122529, 0x0000005 - -gUnk_0812252E:: @ 0812252E - .incbin "baserom.gba", 0x12252E, 0x0000005 - -gUnk_08122533:: @ 08122533 - .incbin "baserom.gba", 0x122533, 0x0000005 - -gUnk_08122538:: @ 08122538 - .incbin "baserom.gba", 0x122538, 0x0000008 - -gUnk_08122540:: @ 08122540 - .incbin "baserom.gba", 0x122540, 0x0000050 - -ThoughtBubble_SFX:: @ 08122590 - .incbin "baserom.gba", 0x122590, 0x0000008 - -ThoughtBubble_Behaviors:: @ 08122598 - .incbin "baserom.gba", 0x122598, 0x0000008 - -gUnk_081225A0:: @ 081225A0 - .incbin "baserom.gba", 0x1225A0, 0x000001C - -gUnk_081225BC:: @ 081225BC - .incbin "baserom.gba", 0x1225BC, 0x000001C - -gUnk_081225D8:: @ 081225D8 - .incbin "baserom.gba", 0x1225D8, 0x000001C - -gUnk_081225F4:: @ 081225F4 - .incbin "baserom.gba", 0x1225F4, 0x0000010 - -gUnk_08122604:: @ 08122604 - .incbin "baserom.gba", 0x122604, 0x0000008 - -gUnk_0812260C:: @ 0812260C - .incbin "baserom.gba", 0x12260C, 0x0000010 - -gUnk_0812261C:: @ 0812261C - .incbin "baserom.gba", 0x12261C, 0x000000E - -gUnk_0812262A:: @ 0812262A - .incbin "baserom.gba", 0x12262A, 0x0000007 - -gUnk_08122631:: @ 08122631 - .incbin "baserom.gba", 0x122631, 0x0000007 - -gUnk_08122638:: @ 08122638 - .incbin "baserom.gba", 0x122638, 0x000000C - -gUnk_08122644:: @ 08122644 - .incbin "baserom.gba", 0x122644, 0x000000C - -gUnk_08122650:: @ 08122650 - .incbin "baserom.gba", 0x122650, 0x0000020 - -gUnk_08122670:: @ 08122670 - .incbin "baserom.gba", 0x122670, 0x0000014 - -gUnk_08122684:: @ 08122684 - .incbin "baserom.gba", 0x122684, 0x0000014 - -gUnk_08122698:: @ 08122698 - .incbin "baserom.gba", 0x122698, 0x000000C - -gUnk_081226A4:: @ 081226A4 - .incbin "baserom.gba", 0x1226A4, 0x0000004 - -gUnk_081226A8:: @ 081226A8 - .incbin "baserom.gba", 0x1226A8, 0x0000004 - -gUnk_081226AC:: @ 081226AC - .incbin "baserom.gba", 0x1226AC, 0x0000091 - -gUnk_0812273D:: @ 0812273D - .incbin "baserom.gba", 0x12273D, 0x0000005 - -gUnk_08122742:: @ 08122742 - .incbin "baserom.gba", 0x122742, 0x0000011 - -gUnk_08122753:: @ 08122753 - .incbin "baserom.gba", 0x122753, 0x0000011 - -gUnk_08122764:: @ 08122764 - .incbin "baserom.gba", 0x122764, 0x000001C - -gUnk_08122780:: @ 08122780 - .incbin "baserom.gba", 0x122780, 0x0000008 - -gUnk_08122788:: @ 08122788 - .incbin "baserom.gba", 0x122788, 0x000000C - -gUnk_08122794:: @ 08122794 - .incbin "baserom.gba", 0x122794, 0x0000008 - -gUnk_0812279C:: @ 0812279C - .incbin "baserom.gba", 0x12279C, 0x0000008 - -MaskActionFuncs:: @ 081227A4 - .incbin "baserom.gba", 0x1227A4, 0x0000010 - -gUnk_081227B4:: @ 081227B4 - .incbin "baserom.gba", 0x1227B4, 0x000000C - -gUnk_081227C0:: @ 081227C0 - .incbin "baserom.gba", 0x1227C0, 0x000000C - -gUnk_081227CC:: @ 081227CC - .incbin "baserom.gba", 0x1227CC, 0x0000020 - -gUnk_081227EC:: @ 081227EC - .incbin "baserom.gba", 0x1227EC, 0x0000008 - -gUnk_081227F4:: @ 081227F4 - .incbin "baserom.gba", 0x1227F4, 0x000000C - -gUnk_08122800:: @ 08122800 - .incbin "baserom.gba", 0x122800, 0x0000019 - -gUnk_08122819:: @ 08122819 - .incbin "baserom.gba", 0x122819, 0x000001B - -gUnk_08122834:: @ 08122834 - .incbin "baserom.gba", 0x122834, 0x0000008 - -gUnk_0812283C:: @ 0812283C - .incbin "baserom.gba", 0x12283C, 0x0000014 - -gUnk_08122850:: @ 08122850 - .incbin "baserom.gba", 0x122850, 0x0000012 - -gUnk_08122862:: @ 08122862 - .incbin "baserom.gba", 0x122862, 0x0000012 - -gUnk_08122874:: @ 08122874 - .incbin "baserom.gba", 0x122874, 0x0000012 - -gUnk_08122886:: @ 08122886 - .incbin "baserom.gba", 0x122886, 0x0000012 - -gUnk_08122898:: @ 08122898 - .incbin "baserom.gba", 0x122898, 0x0000010 - -gUnk_081228A8:: @ 081228A8 - .incbin "baserom.gba", 0x1228A8, 0x0000008 - -gUnk_081228B0:: @ 081228B0 - .incbin "baserom.gba", 0x1228B0, 0x0000008 - -gUnk_081228B8:: @ 081228B8 - .incbin "baserom.gba", 0x1228B8, 0x0000010 - -gUnk_081228C8:: @ 081228C8 - .incbin "baserom.gba", 0x1228C8, 0x0000008 - -gUnk_081228D0:: @ 081228D0 - .incbin "baserom.gba", 0x1228D0, 0x0000008 - -gUnk_081228D8:: @ 081228D8 - .incbin "baserom.gba", 0x1228D8, 0x0000008 - -gUnk_081228E0:: @ 081228E0 - .incbin "baserom.gba", 0x1228E0, 0x0000008 - -gUnk_081228E8:: @ 081228E8 - .incbin "baserom.gba", 0x1228E8, 0x0000008 - -gUnk_081228F0:: @ 081228F0 - .incbin "baserom.gba", 0x1228F0, 0x0000008 - -gUnk_081228F8:: @ 081228F8 - .incbin "baserom.gba", 0x1228F8, 0x0000026 - -gUnk_0812291E:: @ 0812291E - .incbin "baserom.gba", 0x12291E, 0x0000026 - -gUnk_08122944:: @ 08122944 - .incbin "baserom.gba", 0x122944, 0x000000C - -gUnk_08122950:: @ 08122950 - .incbin "baserom.gba", 0x122950, 0x000000C - -gUnk_0812295C:: @ 0812295C - .incbin "baserom.gba", 0x12295C, 0x0000008 - -gUnk_08122964:: @ 08122964 - .incbin "baserom.gba", 0x122964, 0x0000008 - -gUnk_0812296C:: @ 0812296C - .incbin "baserom.gba", 0x12296C, 0x0000010 - -gUnk_0812297C:: @ 0812297C - .incbin "baserom.gba", 0x12297C, 0x000000C - -gUnk_08122988:: @ 08122988 - .incbin "baserom.gba", 0x122988, 0x000001C - -gUnk_081229A4:: @ 081229A4 - .incbin "baserom.gba", 0x1229A4, 0x0000010 - -gUnk_081229B4:: @ 081229B4 - .incbin "baserom.gba", 0x1229B4, 0x0000008 - -gUnk_081229BC:: @ 081229BC - .incbin "baserom.gba", 0x1229BC, 0x0000014 - -gUnk_081229D0:: @ 081229D0 - .incbin "baserom.gba", 0x1229D0, 0x0000020 - -gUnk_081229F0:: @ 081229F0 - .incbin "baserom.gba", 0x1229F0, 0x0000020 - -gUnk_08122A10:: @ 08122A10 - .incbin "baserom.gba", 0x122A10, 0x0000008 - -gUnk_08122A18:: @ 08122A18 - .incbin "baserom.gba", 0x122A18, 0x0000008 - -gUnk_08122A20:: @ 08122A20 - .incbin "baserom.gba", 0x122A20, 0x0000008 - -gUnk_08122A28:: @ 08122A28 - .incbin "baserom.gba", 0x122A28, 0x000000C - -gUnk_08122A34:: @ 08122A34 - .incbin "baserom.gba", 0x122A34, 0x0000017 - -gUnk_08122A4B:: @ 08122A4B - .incbin "baserom.gba", 0x122A4B, 0x0000095 - -gUnk_08122AE0:: @ 08122AE0 - .incbin "baserom.gba", 0x122AE0, 0x0000008 - -gUnk_08122AE8:: @ 08122AE8 - .incbin "baserom.gba", 0x122AE8, 0x0000010 - -gUnk_08122AF8:: @ 08122AF8 - .incbin "baserom.gba", 0x122AF8, 0x0000008 - -gUnk_08122B00:: @ 08122B00 - .incbin "baserom.gba", 0x122B00, 0x000000E - -gUnk_08122B0E:: @ 08122B0E - .incbin "baserom.gba", 0x122B0E, 0x0000010 - -gUnk_08122B1E:: @ 08122B1E - .incbin "baserom.gba", 0x122B1E, 0x0000010 - -gUnk_08122B2E:: @ 08122B2E - .incbin "baserom.gba", 0x122B2E, 0x000000E - -gUnk_08122B3C:: @ 08122B3C - .incbin "baserom.gba", 0x122B3C, 0x0000010 - -gUnk_08122B4C:: @ 08122B4C - .incbin "baserom.gba", 0x122B4C, 0x0000001 - -gUnk_08122B4D:: @ 08122B4D - .incbin "baserom.gba", 0x122B4D, 0x0000008 - -gUnk_08122B55:: @ 08122B55 - .incbin "baserom.gba", 0x122B55, 0x000000F - -gUnk_08122B64:: @ 08122B64 - .incbin "baserom.gba", 0x122B64, 0x000000C - -gUnk_08122B70:: @ 08122B70 - .incbin "baserom.gba", 0x122B70, 0x0000005 - -gUnk_08122B75:: @ 08122B75 - .incbin "baserom.gba", 0x122B75, 0x0000005 - -gUnk_08122B7A:: @ 08122B7A - .incbin "baserom.gba", 0x122B7A, 0x0000005 - -gUnk_08122B7F:: @ 08122B7F - .incbin "baserom.gba", 0x122B7F, 0x0000005 - -gUnk_08122B84:: @ 08122B84 - .incbin "baserom.gba", 0x122B84, 0x0000005 - -gUnk_08122B89:: @ 08122B89 - .incbin "baserom.gba", 0x122B89, 0x0000005 - -gUnk_08122B8E:: @ 08122B8E - .incbin "baserom.gba", 0x122B8E, 0x0000005 - -gUnk_08122B93:: @ 08122B93 - .incbin "baserom.gba", 0x122B93, 0x0000005 - -gUnk_08122B98:: @ 08122B98 - .incbin "baserom.gba", 0x122B98, 0x0000019 - -gUnk_08122BB1:: @ 08122BB1 - .incbin "baserom.gba", 0x122BB1, 0x0000017 - -gUnk_08122BC8:: @ 08122BC8 - .incbin "baserom.gba", 0x122BC8, 0x000002C - -gUnk_08122BF4:: @ 08122BF4 - .incbin "baserom.gba", 0x122BF4, 0x0000009 - -gUnk_08122BFD:: @ 08122BFD - .incbin "baserom.gba", 0x122BFD, 0x0000009 - -gUnk_08122C06:: @ 08122C06 - .incbin "baserom.gba", 0x122C06, 0x0000005 - -gUnk_08122C0B:: @ 08122C0B - .incbin "baserom.gba", 0x122C0B, 0x0000069 - -gUnk_08122C74:: @ 08122C74 - .incbin "baserom.gba", 0x122C74, 0x0000015 - -gUnk_08122C89:: @ 08122C89 - .incbin "baserom.gba", 0x122C89, 0x0000007 - -gUnk_08122C90:: @ 08122C90 - .incbin "baserom.gba", 0x122C90, 0x000001C - -gUnk_08122CAC:: @ 08122CAC - .incbin "baserom.gba", 0x122CAC, 0x0000009 - -gUnk_08122CB5:: @ 08122CB5 - .incbin "baserom.gba", 0x122CB5, 0x0000007 - -gUnk_08122CBC:: @ 08122CBC - .incbin "baserom.gba", 0x122CBC, 0x000000C - -gUnk_08122CC8:: @ 08122CC8 - .incbin "baserom.gba", 0x122CC8, 0x0000009 - -gUnk_08122CD1:: @ 08122CD1 - .incbin "baserom.gba", 0x122CD1, 0x0000005 - -gUnk_08122CD6:: @ 08122CD6 - .incbin "baserom.gba", 0x122CD6, 0x0000005 - -gUnk_08122CDB:: @ 08122CDB - .incbin "baserom.gba", 0x122CDB, 0x0000009 - -gUnk_08122CE4:: @ 08122CE4 - .incbin "baserom.gba", 0x122CE4, 0x0000014 - -gUnk_08122CF8:: @ 08122CF8 - .incbin "baserom.gba", 0x122CF8, 0x0000005 - -gUnk_08122CFD:: @ 08122CFD - .incbin "baserom.gba", 0x122CFD, 0x0000007 - -gUnk_08122D04:: @ 08122D04 - .incbin "baserom.gba", 0x122D04, 0x0000004 - -gUnk_08122D08:: @ 08122D08 - .incbin "baserom.gba", 0x122D08, 0x0000008 - -gUnk_08122D10:: @ 08122D10 - .incbin "baserom.gba", 0x122D10, 0x0000009 - -gUnk_08122D19:: @ 08122D19 - .incbin "baserom.gba", 0x122D19, 0x0000009 - -gUnk_08122D22:: @ 08122D22 - .incbin "baserom.gba", 0x122D22, 0x0000009 - -gUnk_08122D2B:: @ 08122D2B - .incbin "baserom.gba", 0x122D2B, 0x0000004 - -gUnk_08122D2F:: @ 08122D2F - .incbin "baserom.gba", 0x122D2F, 0x0000005 - -gUnk_08122D34:: @ 08122D34 - .incbin "baserom.gba", 0x122D34, 0x0000021 - -gUnk_08122D55:: @ 08122D55 - .incbin "baserom.gba", 0x122D55, 0x0000021 - -gUnk_08122D76:: @ 08122D76 - .incbin "baserom.gba", 0x122D76, 0x0000021 - -gUnk_08122D97:: @ 08122D97 - .incbin "baserom.gba", 0x122D97, 0x0000021 - -gUnk_08122DB8:: @ 08122DB8 - .incbin "baserom.gba", 0x122DB8, 0x000000D - -gUnk_08122DC5:: @ 08122DC5 - .incbin "baserom.gba", 0x122DC5, 0x000000D - -gUnk_08122DD2:: @ 08122DD2 - .incbin "baserom.gba", 0x122DD2, 0x000000D - -gUnk_08122DDF:: @ 08122DDF - .incbin "baserom.gba", 0x122DDF, 0x000000D - -gUnk_08122DEC:: @ 08122DEC - .incbin "baserom.gba", 0x122DEC, 0x0000019 - -gUnk_08122E05:: @ 08122E05 - .incbin "baserom.gba", 0x122E05, 0x0000019 - -gUnk_08122E1E:: @ 08122E1E - .incbin "baserom.gba", 0x122E1E, 0x0000019 - -gUnk_08122E37:: @ 08122E37 - .incbin "baserom.gba", 0x122E37, 0x0000019 - -gUnk_08122E50:: @ 08122E50 - .incbin "baserom.gba", 0x122E50, 0x0000015 - -gUnk_08122E65:: @ 08122E65 - .incbin "baserom.gba", 0x122E65, 0x0000015 - -gUnk_08122E7A:: @ 08122E7A - .incbin "baserom.gba", 0x122E7A, 0x0000015 - -gUnk_08122E8F:: @ 08122E8F - .incbin "baserom.gba", 0x122E8F, 0x0000015 - -gUnk_08122EA4:: @ 08122EA4 - .incbin "baserom.gba", 0x122EA4, 0x0000009 - -gUnk_08122EAD:: @ 08122EAD - .incbin "baserom.gba", 0x122EAD, 0x0000023 - -gUnk_08122ED0:: @ 08122ED0 - .incbin "baserom.gba", 0x122ED0, 0x0000050 - -gUnk_08122F20:: @ 08122F20 - .incbin "baserom.gba", 0x122F20, 0x000000C - -gUnk_08122F2C:: @ 08122F2C - .incbin "baserom.gba", 0x122F2C, 0x0000005 - -gUnk_08122F31:: @ 08122F31 - .incbin "baserom.gba", 0x122F31, 0x0000021 - -gUnk_08122F52:: @ 08122F52 - .incbin "baserom.gba", 0x122F52, 0x0000005 - -gUnk_08122F57:: @ 08122F57 - .incbin "baserom.gba", 0x122F57, 0x0000021 - -gUnk_08122F78:: @ 08122F78 - .incbin "baserom.gba", 0x122F78, 0x0000005 - -gUnk_08122F7D:: @ 08122F7D - .incbin "baserom.gba", 0x122F7D, 0x0000021 - -gUnk_08122F9E:: @ 08122F9E - .incbin "baserom.gba", 0x122F9E, 0x0000005 - -gUnk_08122FA3:: @ 08122FA3 - .incbin "baserom.gba", 0x122FA3, 0x0000021 - -gUnk_08122FC4:: @ 08122FC4 - .incbin "baserom.gba", 0x122FC4, 0x0000005 - -gUnk_08122FC9:: @ 08122FC9 - .incbin "baserom.gba", 0x122FC9, 0x0000005 - -gUnk_08122FCE:: @ 08122FCE - .incbin "baserom.gba", 0x122FCE, 0x0000005 - -gUnk_08122FD3:: @ 08122FD3 - .incbin "baserom.gba", 0x122FD3, 0x0000059 - -gUnk_0812302C:: @ 0812302C - .incbin "baserom.gba", 0x12302C, 0x000002D - -gUnk_08123059:: @ 08123059 - .incbin "baserom.gba", 0x123059, 0x0000033 - -gUnk_0812308C:: @ 0812308C - .incbin "baserom.gba", 0x12308C, 0x000003C - -gUnk_081230C8:: @ 081230C8 - .incbin "baserom.gba", 0x1230C8, 0x0000054 - -gUnk_0812311C:: @ 0812311C - .incbin "baserom.gba", 0x12311C, 0x0000008 - -gUnk_08123124:: @ 08123124 - .incbin "baserom.gba", 0x123124, 0x0000005 - -gUnk_08123129:: @ 08123129 - .incbin "baserom.gba", 0x123129, 0x0000005 - -gUnk_0812312E:: @ 0812312E - .incbin "baserom.gba", 0x12312E, 0x0000012 - -gUnk_08123140:: @ 08123140 - .incbin "baserom.gba", 0x123140, 0x0000010 - -gUnk_08123150:: @ 08123150 - .incbin "baserom.gba", 0x123150, 0x0000010 - -gUnk_08123160:: @ 08123160 - .incbin "baserom.gba", 0x123160, 0x0000008 - -gUnk_08123168:: @ 08123168 - .incbin "baserom.gba", 0x123168, 0x000001C - -gUnk_08123184:: @ 08123184 - .incbin "baserom.gba", 0x123184, 0x0000008 - -gUnk_0812318C:: @ 0812318C - .incbin "baserom.gba", 0x12318C, 0x0000010 - -gUnk_0812319C:: @ 0812319C - .incbin "baserom.gba", 0x12319C, 0x0000004 - -gUnk_081231A0:: @ 081231A0 - .incbin "baserom.gba", 0x1231A0, 0x000000C - -gUnk_081231AC:: @ 081231AC - .incbin "baserom.gba", 0x1231AC, 0x0000002 - -gUnk_081231AE:: @ 081231AE - .incbin "baserom.gba", 0x1231AE, 0x0000006 - -gUnk_081231B4:: @ 081231B4 - .incbin "baserom.gba", 0x1231B4, 0x0000006 - -gUnk_081231BA:: @ 081231BA - .incbin "baserom.gba", 0x1231BA, 0x0000005 - -gUnk_081231BF:: @ 081231BF - .incbin "baserom.gba", 0x1231BF, 0x000000D - -gUnk_081231CC:: @ 081231CC - .incbin "baserom.gba", 0x1231CC, 0x0000009 - -gUnk_081231D5:: @ 081231D5 - .incbin "baserom.gba", 0x1231D5, 0x0000011 - -gUnk_081231E6:: @ 081231E6 - .incbin "baserom.gba", 0x1231E6, 0x0000015 - -gUnk_081231FB:: @ 081231FB - .incbin "baserom.gba", 0x1231FB, 0x0000009 - -gUnk_08123204:: @ 08123204 - .incbin "baserom.gba", 0x123204, 0x0000004 - -gUnk_08123208:: @ 08123208 - .incbin "baserom.gba", 0x123208, 0x0000034 - -gUnk_0812323C:: @ 0812323C - .incbin "baserom.gba", 0x12323C, 0x0000014 - -gUnk_08123250:: @ 08123250 - .incbin "baserom.gba", 0x123250, 0x0000014 - -gUnk_08123264:: @ 08123264 - .incbin "baserom.gba", 0x123264, 0x0000008 - -gUnk_0812326C:: @ 0812326C - .incbin "baserom.gba", 0x12326C, 0x0000008 - -gUnk_08123274:: @ 08123274 - .incbin "baserom.gba", 0x123274, 0x0000008 - -gUnk_0812327C:: @ 0812327C - .incbin "baserom.gba", 0x12327C, 0x000001C - -MineralWaterSourceActionFuncs:: @ 08123298 - .incbin "baserom.gba", 0x123298, 0x0000008 - -MineralWaterSourceParameters:: @ 081232A0 - .incbin "baserom.gba", 0x1232A0, 0x0000004 - -gUnk_081232A4:: @ 081232A4 - .incbin "baserom.gba", 0x1232A4, 0x0000008 - -gUnk_081232AC:: @ 081232AC - .incbin "baserom.gba", 0x1232AC, 0x0000014 - -gUnk_081232C0:: @ 081232C0 - .incbin "baserom.gba", 0x1232C0, 0x000001D - -gUnk_081232DD:: @ 081232DD - .incbin "baserom.gba", 0x1232DD, 0x0000001 - -gUnk_081232DE:: @ 081232DE - .incbin "baserom.gba", 0x1232DE, 0x0000006 - -gUnk_081232E4:: @ 081232E4 - .incbin "baserom.gba", 0x1232E4, 0x0000008 - -gUnk_081232EC:: @ 081232EC - .incbin "baserom.gba", 0x1232EC, 0x0000012 - -gUnk_081232FE:: @ 081232FE - .incbin "baserom.gba", 0x1232FE, 0x000001A - -gUnk_08123318:: @ 08123318 - .incbin "baserom.gba", 0x123318, 0x0000010 - -gUnk_08123328:: @ 08123328 - .incbin "baserom.gba", 0x123328, 0x0000008 - -gUnk_08123330:: @ 08123330 - .incbin "baserom.gba", 0x123330, 0x0000003 - -gUnk_08123333:: @ 08123333 - .incbin "baserom.gba", 0x123333, 0x0000011 - -gUnk_08123344:: @ 08123344 - .incbin "baserom.gba", 0x123344, 0x0000026 - -gUnk_0812336A:: @ 0812336A - .incbin "baserom.gba", 0x12336A, 0x000001A - -gUnk_08123384:: @ 08123384 - .incbin "baserom.gba", 0x123384, 0x0000008 - -gUnk_0812338C:: @ 0812338C - .incbin "baserom.gba", 0x12338C, 0x0000024 - -gUnk_081233B0:: @ 081233B0 - .incbin "baserom.gba", 0x1233B0, 0x0000008 - -gUnk_081233B8:: @ 081233B8 - .incbin "baserom.gba", 0x1233B8, 0x0000008 - -gUnk_081233C0:: @ 081233C0 - .incbin "baserom.gba", 0x1233C0, 0x0000050 - -gUnk_08123410:: @ 08123410 - .incbin "baserom.gba", 0x123410, 0x000000C - -gUnk_0812341C:: @ 0812341C - .incbin "baserom.gba", 0x12341C, 0x0000006 - -gUnk_08123422:: @ 08123422 - .incbin "baserom.gba", 0x123422, 0x0000019 - -gUnk_0812343B:: @ 0812343B - .incbin "baserom.gba", 0x12343B, 0x0000011 - -gUnk_0812344C:: @ 0812344C - .incbin "baserom.gba", 0x12344C, 0x0000028 - -gUnk_08123474:: @ 08123474 - .incbin "baserom.gba", 0x123474, 0x0000010 - -gUnk_08123484:: @ 08123484 - .incbin "baserom.gba", 0x123484, 0x0000010 - -gUnk_08123494:: @ 08123494 - .incbin "baserom.gba", 0x123494, 0x000000C - -gUnk_081234A0:: @ 081234A0 - .incbin "baserom.gba", 0x1234A0, 0x0000004 - -gUnk_081234A4:: @ 081234A4 - .incbin "baserom.gba", 0x1234A4, 0x0000008 - -gUnk_081234AC:: @ 081234AC - .incbin "baserom.gba", 0x1234AC, 0x0000008 - -gUnk_081234B4:: @ 081234B4 - .incbin "baserom.gba", 0x1234B4, 0x0000015 - -gUnk_081234C9:: @ 081234C9 - .incbin "baserom.gba", 0x1234C9, 0x0000017 - -gUnk_081234E0:: @ 081234E0 - .incbin "baserom.gba", 0x1234E0, 0x000000C - -gUnk_081234EC:: @ 081234EC - .incbin "baserom.gba", 0x1234EC, 0x0000008 - -gUnk_081234F4:: @ 081234F4 - .incbin "baserom.gba", 0x1234F4, 0x0000008 - -gUnk_081234FC:: @ 081234FC - .incbin "baserom.gba", 0x1234FC, 0x0000008 - -gUnk_08123504:: @ 08123504 - .incbin "baserom.gba", 0x123504, 0x0000008 - -gUnk_0812350C:: @ 0812350C - .incbin "baserom.gba", 0x12350C, 0x0000018 - -gUnk_08123524:: @ 08123524 - .incbin "baserom.gba", 0x123524, 0x000001C - -gUnk_08123540:: @ 08123540 - .incbin "baserom.gba", 0x123540, 0x0000018 - -gUnk_08123558:: @ 08123558 - .incbin "baserom.gba", 0x123558, 0x0000010 - -gUnk_08123568:: @ 08123568 - .incbin "baserom.gba", 0x123568, 0x000000C - -gUnk_08123574:: @ 08123574 - .incbin "baserom.gba", 0x123574, 0x0000006 - -gUnk_0812357A:: @ 0812357A - .incbin "baserom.gba", 0x12357A, 0x0000019 - -gUnk_08123593:: @ 08123593 - .incbin "baserom.gba", 0x123593, 0x0000019 - -gUnk_081235AC:: @ 081235AC - .incbin "baserom.gba", 0x1235AC, 0x0000005 - -gUnk_081235B1:: @ 081235B1 - .incbin "baserom.gba", 0x1235B1, 0x0000005 - -gUnk_081235B6:: @ 081235B6 - .incbin "baserom.gba", 0x1235B6, 0x0000035 - -gUnk_081235EB:: @ 081235EB - .incbin "baserom.gba", 0x1235EB, 0x0000035 - -gUnk_08123620:: @ 08123620 - .incbin "baserom.gba", 0x123620, 0x000001C - -gUnk_0812363C:: @ 0812363C - .incbin "baserom.gba", 0x12363C, 0x0000028 - -gUnk_08123664:: @ 08123664 - .incbin "baserom.gba", 0x123664, 0x0000008 - -gUnk_0812366C:: @ 0812366C - .incbin "baserom.gba", 0x12366C, 0x0000008 - -gUnk_08123674:: @ 08123674 - .incbin "baserom.gba", 0x123674, 0x0000008 - -gUnk_0812367C:: @ 0812367C - .incbin "baserom.gba", 0x12367C, 0x0000014 - -gUnk_08123690:: @ 08123690 - .incbin "baserom.gba", 0x123690, 0x0000008 - -gUnk_08123698:: @ 08123698 - .incbin "baserom.gba", 0x123698, 0x0000011 - -gUnk_081236A9:: @ 081236A9 - .incbin "baserom.gba", 0x1236A9, 0x0000011 - -gUnk_081236BA:: @ 081236BA - .incbin "baserom.gba", 0x1236BA, 0x0000012 - -gUnk_081236CC:: @ 081236CC - .incbin "baserom.gba", 0x1236CC, 0x0000010 - -gUnk_081236DC:: @ 081236DC - .incbin "baserom.gba", 0x1236DC, 0x000000C - -gUnk_081236E8:: @ 081236E8 - .incbin "baserom.gba", 0x1236E8, 0x0000004 - -gUnk_081236EC:: @ 081236EC - .incbin "baserom.gba", 0x1236EC, 0x0000008 - -gUnk_081236F4:: @ 081236F4 - .incbin "baserom.gba", 0x1236F4, 0x0000008 - -gUnk_081236FC:: @ 081236FC - .incbin "baserom.gba", 0x1236FC, 0x0000015 - -gUnk_08123711:: @ 08123711 - .incbin "baserom.gba", 0x123711, 0x0000017 - -gUnk_08123728:: @ 08123728 - .incbin "baserom.gba", 0x123728, 0x000000C - -gUnk_08123734:: @ 08123734 - .incbin "baserom.gba", 0x123734, 0x0000014 - -gUnk_08123748:: @ 08123748 - .incbin "baserom.gba", 0x123748, 0x0000008 - -gUnk_08123750:: @ 08123750 - .incbin "baserom.gba", 0x123750, 0x000001A - -gUnk_0812376A:: @ 0812376A - .incbin "baserom.gba", 0x12376A, 0x0000004 - -gUnk_0812376E:: @ 0812376E - .incbin "baserom.gba", 0x12376E, 0x0000004 - -gUnk_08123772:: @ 08123772 - .incbin "baserom.gba", 0x123772, 0x0000004 - -gUnk_08123776:: @ 08123776 - .incbin "baserom.gba", 0x123776, 0x0000016 - -gUnk_0812378C:: @ 0812378C - .incbin "baserom.gba", 0x12378C, 0x0000014 - -gUnk_081237A0:: @ 081237A0 - .incbin "baserom.gba", 0x1237A0, 0x0000010 - -gUnk_081237B0:: @ 081237B0 - .incbin "baserom.gba", 0x1237B0, 0x000000A - -gUnk_081237BA:: @ 081237BA - .incbin "baserom.gba", 0x1237BA, 0x0000004 - -gUnk_081237BE:: @ 081237BE - .incbin "baserom.gba", 0x1237BE, 0x0000004 - -gUnk_081237C2:: @ 081237C2 - .incbin "baserom.gba", 0x1237C2, 0x0000004 - -gUnk_081237C6:: @ 081237C6 - .incbin "baserom.gba", 0x1237C6, 0x0000004 - -gUnk_081237CA:: @ 081237CA - .incbin "baserom.gba", 0x1237CA, 0x0000016 - -gUnk_081237E0:: @ 081237E0 - .incbin "baserom.gba", 0x1237E0, 0x0000018 - -gUnk_081237F8:: @ 081237F8 - .incbin "baserom.gba", 0x1237F8, 0x0000014 - -gUnk_0812380C:: @ 0812380C - .incbin "baserom.gba", 0x12380C, 0x0000014 - -gUnk_08123820:: @ 08123820 - .incbin "baserom.gba", 0x123820, 0x0000014 - -gUnk_08123834:: @ 08123834 - .incbin "baserom.gba", 0x123834, 0x000000C - -gUnk_08123840:: @ 08123840 - .incbin "baserom.gba", 0x123840, 0x000000C - -gUnk_0812384C:: @ 0812384C - .incbin "baserom.gba", 0x12384C, 0x0000040 - -gUnk_0812388C:: @ 0812388C - .incbin "baserom.gba", 0x12388C, 0x0000014 - -gUnk_081238A0:: @ 081238A0 - .incbin "baserom.gba", 0x1238A0, 0x00003E0 - -gUnk_08123C80:: @ 08123C80 - .incbin "baserom.gba", 0x123C80, 0x0000010 - -gUnk_08123C90:: @ 08123C90 - .incbin "baserom.gba", 0x123C90, 0x0000028 - -gUnk_08123CB8:: @ 08123CB8 - .incbin "baserom.gba", 0x123CB8, 0x0000005 - -gUnk_08123CBD:: @ 08123CBD - .incbin "baserom.gba", 0x123CBD, 0x0000011 - -gUnk_08123CCE:: @ 08123CCE - .incbin "baserom.gba", 0x123CCE, 0x000001D - -gUnk_08123CEB:: @ 08123CEB - .incbin "baserom.gba", 0x123CEB, 0x0000029 - -gUnk_08123D14:: @ 08123D14 - .incbin "baserom.gba", 0x123D14, 0x0000014 - -gUnk_08123D28:: @ 08123D28 - .incbin "baserom.gba", 0x123D28, 0x0000020 - -gUnk_08123D48:: @ 08123D48 - .incbin "baserom.gba", 0x123D48, 0x0000004 - -gUnk_08123D4C:: @ 08123D4C - .incbin "baserom.gba", 0x123D4C, 0x000000C - -gUnk_08123D58:: @ 08123D58 - .incbin "baserom.gba", 0x123D58, 0x0000010 - -gUnk_08123D68:: @ 08123D68 - .incbin "baserom.gba", 0x123D68, 0x0000014 - -gUnk_08123D7C:: @ 08123D7C - .incbin "baserom.gba", 0x123D7C, 0x0000018 - -gUnk_08123D94:: @ 08123D94 - .incbin "baserom.gba", 0x123D94, 0x0000004 - -gUnk_08123D98:: @ 08123D98 - .incbin "baserom.gba", 0x123D98, 0x0000008 - -gUnk_08123DA0:: @ 08123DA0 - .incbin "baserom.gba", 0x123DA0, 0x0000014 - -gUnk_08123DB4:: @ 08123DB4 - .incbin "baserom.gba", 0x123DB4, 0x000000C - -gUnk_08123DC0:: @ 08123DC0 - .incbin "baserom.gba", 0x123DC0, 0x000000C - -gUnk_08123DCC:: @ 08123DCC - .incbin "baserom.gba", 0x123DCC, 0x0000008 - -gUnk_08123DD4:: @ 08123DD4 - .incbin "baserom.gba", 0x123DD4, 0x0000008 - -gUnk_08123DDC:: @ 08123DDC - .incbin "baserom.gba", 0x123DDC, 0x000001C - -gUnk_08123DF8:: @ 08123DF8 - .incbin "baserom.gba", 0x123DF8, 0x0000020 - -gUnk_08123E18:: @ 08123E18 - .incbin "baserom.gba", 0x123E18, 0x0000004 - -gUnk_08123E1C:: @ 08123E1C - .incbin "baserom.gba", 0x123E1C, 0x0000004 - -gUnk_08123E20:: @ 08123E20 - .incbin "baserom.gba", 0x123E20, 0x000000C - -gUnk_08123E2C:: @ 08123E2C - .incbin "baserom.gba", 0x123E2C, 0x000004C - -gUnk_08123E78:: @ 08123E78 - .incbin "baserom.gba", 0x123E78, 0x0000008 - -gUnk_08123E80:: @ 08123E80 - .incbin "baserom.gba", 0x123E80, 0x0000008 - -gUnk_08123E88:: @ 08123E88 - .incbin "baserom.gba", 0x123E88, 0x0000014 - -gUnk_08123E9C:: @ 08123E9C - .incbin "baserom.gba", 0x123E9C, 0x0000008 - -gUnk_08123EA4:: @ 08123EA4 - .incbin "baserom.gba", 0x123EA4, 0x0000014 - -gUnk_08123EB8:: @ 08123EB8 - .incbin "baserom.gba", 0x123EB8, 0x0000008 - -gUnk_08123EC0:: @ 08123EC0 - .incbin "baserom.gba", 0x123EC0, 0x000002C - -gUnk_08123EEC:: @ 08123EEC - .incbin "baserom.gba", 0x123EEC, 0x0000008 - -gUnk_08123EF4:: @ 08123EF4 - .incbin "baserom.gba", 0x123EF4, 0x0000008 - -gUnk_08123EFC:: @ 08123EFC - .incbin "baserom.gba", 0x123EFC, 0x0000008 - -gUnk_08123F04:: @ 08123F04 - .incbin "baserom.gba", 0x123F04, 0x0000008 - -gUnk_08123F0C:: @ 08123F0C - .incbin "baserom.gba", 0x123F0C, 0x0000014 - -gUnk_08123F20:: @ 08123F20 - .incbin "baserom.gba", 0x123F20, 0x0000008 - -gUnk_08123F28:: @ 08123F28 - .incbin "baserom.gba", 0x123F28, 0x0000021 - -gUnk_08123F49:: @ 08123F49 - .incbin "baserom.gba", 0x123F49, 0x0000019 - -gUnk_08123F62:: @ 08123F62 - .incbin "baserom.gba", 0x123F62, 0x0000019 - -gUnk_08123F7B:: @ 08123F7B - .incbin "baserom.gba", 0x123F7B, 0x0000021 - -gUnk_08123F9C:: @ 08123F9C - .incbin "baserom.gba", 0x123F9C, 0x0000014 - -gUnk_08123FB0:: @ 08123FB0 - .incbin "baserom.gba", 0x123FB0, 0x0000061 - -gUnk_08124011:: @ 08124011 - .incbin "baserom.gba", 0x124011, 0x000007B - -gUnk_0812408C:: @ 0812408C - .incbin "baserom.gba", 0x12408C, 0x0000024 - -gUnk_081240B0:: @ 081240B0 - .incbin "baserom.gba", 0x1240B0, 0x0000010 - -gUnk_081240C0:: @ 081240C0 - .incbin "baserom.gba", 0x1240C0, 0x0000018 - -gUnk_081240D8:: @ 081240D8 - .incbin "baserom.gba", 0x1240D8, 0x0000014 - -gUnk_081240EC:: @ 081240EC - .incbin "baserom.gba", 0x1240EC, 0x0000008 - -gUnk_081240F4:: @ 081240F4 - .incbin "baserom.gba", 0x1240F4, 0x000000C - -gUnk_08124100:: @ 08124100 - .incbin "baserom.gba", 0x124100, 0x0000018 - -gUnk_08124118:: @ 08124118 - .incbin "baserom.gba", 0x124118, 0x0000010 - -gUnk_08124128:: @ 08124128 - .incbin "baserom.gba", 0x124128, 0x0000005 - -gUnk_0812412D:: @ 0812412D - .incbin "baserom.gba", 0x12412D, 0x0000005 - -gUnk_08124132:: @ 08124132 - .incbin "baserom.gba", 0x124132, 0x0000014 - -gUnk_08124146:: @ 08124146 - .incbin "baserom.gba", 0x124146, 0x000000A - -gUnk_08124150:: @ 08124150 - .incbin "baserom.gba", 0x124150, 0x0000008 - -gUnk_08124158:: @ 08124158 - .incbin "baserom.gba", 0x124158, 0x0000020 - -gUnk_08124178:: @ 08124178 - .incbin "baserom.gba", 0x124178, 0x0000014 - -gUnk_0812418C:: @ 0812418C - .incbin "baserom.gba", 0x12418C, 0x0000008 - -gUnk_08124194:: @ 08124194 - .incbin "baserom.gba", 0x124194, 0x0000048 - -gUnk_081241DC:: @ 081241DC - .incbin "baserom.gba", 0x1241DC, 0x0000048 - -gUnk_08124224:: @ 08124224 - .incbin "baserom.gba", 0x124224, 0x0000048 - -gUnk_0812426C:: @ 0812426C - .incbin "baserom.gba", 0x12426C, 0x0000048 - -gUnk_081242B4:: @ 081242B4 - .incbin "baserom.gba", 0x1242B4, 0x0000014 - -gUnk_081242C8:: @ 081242C8 - .incbin "baserom.gba", 0x1242C8, 0x0000008 - -gUnk_081242D0:: @ 081242D0 - .incbin "baserom.gba", 0x1242D0, 0x0000008 - -gUnk_081242D8:: @ 081242D8 - .incbin "baserom.gba", 0x1242D8, 0x0000010 - -gUnk_081242E8:: @ 081242E8 - .incbin "baserom.gba", 0x1242E8, 0x000002C - -gUnk_08124314:: @ 08124314 - .incbin "baserom.gba", 0x124314, 0x000000C - -gUnk_08124320:: @ 08124320 - .incbin "baserom.gba", 0x124320, 0x0000028 - -gUnk_08124348:: @ 08124348 - .incbin "baserom.gba", 0x124348, 0x000000C - -gUnk_08124354:: @ 08124354 - .incbin "baserom.gba", 0x124354, 0x0000010 - -gUnk_08124364:: @ 08124364 - .incbin "baserom.gba", 0x124364, 0x0000050 - -gUnk_081243B4:: @ 081243B4 - .incbin "baserom.gba", 0x1243B4, 0x0000008 - -gUnk_081243BC:: @ 081243BC - .incbin "baserom.gba", 0x1243BC, 0x0000008 - -gUnk_081243C4:: @ 081243C4 - .incbin "baserom.gba", 0x1243C4, 0x0000010 - -gUnk_081243D4:: @ 081243D4 - .incbin "baserom.gba", 0x1243D4, 0x0000010 - -gUnk_081243E4:: @ 081243E4 - .incbin "baserom.gba", 0x1243E4, 0x0000008 - -gUnk_081243EC:: @ 081243EC - .incbin "baserom.gba", 0x1243EC, 0x0000008 - -gUnk_081243F4:: @ 081243F4 - .incbin "baserom.gba", 0x1243F4, 0x000003F - -gUnk_08124433:: @ 08124433 - .incbin "baserom.gba", 0x124433, 0x0000032 - -gUnk_08124465:: @ 08124465 - .incbin "baserom.gba", 0x124465, 0x0000071 - -gUnk_081244D6:: @ 081244D6 - .incbin "baserom.gba", 0x1244D6, 0x0000071 - -gUnk_08124547:: @ 08124547 - .incbin "baserom.gba", 0x124547, 0x0000071 - -gUnk_081245B8:: @ 081245B8 - .incbin "baserom.gba", 0x1245B8, 0x0000025 - -gUnk_081245DD:: @ 081245DD - .incbin "baserom.gba", 0x1245DD, 0x0000025 - -gUnk_08124602:: @ 08124602 - .incbin "baserom.gba", 0x124602, 0x0000025 - -gUnk_08124627:: @ 08124627 - .incbin "baserom.gba", 0x124627, 0x0000025 - -gUnk_0812464C:: @ 0812464C - .incbin "baserom.gba", 0x12464C, 0x0000024 - -gUnk_08124670:: @ 08124670 - .incbin "baserom.gba", 0x124670, 0x0000014 - -gUnk_08124684:: @ 08124684 - .incbin "baserom.gba", 0x124684, 0x0000008 - -gUnk_0812468C:: @ 0812468C - .incbin "baserom.gba", 0x12468C, 0x0000004 - -gUnk_08124690:: @ 08124690 - .incbin "baserom.gba", 0x124690, 0x0000004 - -gUnk_08124694:: @ 08124694 - .incbin "baserom.gba", 0x124694, 0x0000004 - -gUnk_08124698:: @ 08124698 - .incbin "baserom.gba", 0x124698, 0x0000010 - -gUnk_081246A8:: @ 081246A8 - .incbin "baserom.gba", 0x1246A8, 0x0000010 - -gUnk_081246B8:: @ 081246B8 - .incbin "baserom.gba", 0x1246B8, 0x0000010 - -gUnk_081246C8:: @ 081246C8 - .incbin "baserom.gba", 0x1246C8, 0x0000024 - -gUnk_081246EC:: @ 081246EC - .incbin "baserom.gba", 0x1246EC, 0x0000008 - -gUnk_081246F4:: @ 081246F4 - .incbin "baserom.gba", 0x1246F4, 0x0000010 - -gUnk_08124704:: @ 08124704 - .incbin "baserom.gba", 0x124704, 0x0000004 - -gUnk_08124708:: @ 08124708 - .incbin "baserom.gba", 0x124708, 0x000000A - -gUnk_08124712:: @ 08124712 - .incbin "baserom.gba", 0x124712, 0x0000031 - -gUnk_08124743:: @ 08124743 - .incbin "baserom.gba", 0x124743, 0x0000021 - -gUnk_08124764:: @ 08124764 - .incbin "baserom.gba", 0x124764, 0x0000024 - -gUnk_08124788:: @ 08124788 - .incbin "baserom.gba", 0x124788, 0x0000010 - -gUnk_08124798:: @ 08124798 - .incbin "baserom.gba", 0x124798, 0x0000008 - -gUnk_081247A0:: @ 081247A0 - .incbin "baserom.gba", 0x1247A0, 0x000000C - -gUnk_081247AC:: @ 081247AC - .incbin "baserom.gba", 0x1247AC, 0x0000014 - -gUnk_081247C0:: @ 081247C0 - .incbin "baserom.gba", 0x1247C0, 0x0000008 - -gUnk_081247C8:: @ 081247C8 - .incbin "baserom.gba", 0x1247C8, 0x0000008 - -gUnk_081247D0:: @ 081247D0 - .incbin "baserom.gba", 0x1247D0, 0x0000028 - -gUnk_081247F8:: @ 081247F8 - .incbin "baserom.gba", 0x1247F8, 0x0000008 - -gUnk_08124800:: @ 08124800 - .incbin "baserom.gba", 0x124800, 0x0000008 - -gUnk_08124808:: @ 08124808 - .incbin "baserom.gba", 0x124808, 0x0000014 - -gUnk_0812481C:: @ 0812481C - .incbin "baserom.gba", 0x12481C, 0x0000008 - -gUnk_08124824:: @ 08124824 - .incbin "baserom.gba", 0x124824, 0x000001C - -gUnk_08124840:: @ 08124840 - .incbin "baserom.gba", 0x124840, 0x000000C - -gUnk_0812484C:: @ 0812484C - .incbin "baserom.gba", 0x12484C, 0x0000004 - -gUnk_08124850:: @ 08124850 - .incbin "baserom.gba", 0x124850, 0x000000C - -gUnk_0812485C:: @ 0812485C - .incbin "baserom.gba", 0x12485C, 0x0000004 - -gUnk_08124860:: @ 08124860 - .incbin "baserom.gba", 0x124860, 0x0000008 - -gUnk_08124868:: @ 08124868 - .incbin "baserom.gba", 0x124868, 0x0000004 - -gUnk_0812486C:: @ 0812486C - .incbin "baserom.gba", 0x12486C, 0x000000C - -gUnk_08124878:: @ 08124878 - .incbin "baserom.gba", 0x124878, 0x0000018 - -gUnk_08124890:: @ 08124890 - .incbin "baserom.gba", 0x124890, 0x0000008 - -gUnk_08124898:: @ 08124898 - .incbin "baserom.gba", 0x124898, 0x000001C - -gUnk_081248B4:: @ 081248B4 - .incbin "baserom.gba", 0x1248B4, 0x0000008 - -gUnk_081248BC:: @ 081248BC - .incbin "baserom.gba", 0x1248BC, 0x0000008 - -gUnk_081248C4:: @ 081248C4 - .incbin "baserom.gba", 0x1248C4, 0x000000C - -gUnk_081248D0:: @ 081248D0 - .incbin "baserom.gba", 0x1248D0, 0x0000011 - -gUnk_081248E1:: @ 081248E1 - .incbin "baserom.gba", 0x1248E1, 0x0000011 - -gUnk_081248F2:: @ 081248F2 - .incbin "baserom.gba", 0x1248F2, 0x000001C - -gUnk_0812490E:: @ 0812490E - .incbin "baserom.gba", 0x12490E, 0x000001A - -gUnk_08124928:: @ 08124928 - .incbin "baserom.gba", 0x124928, 0x0000014 - -gUnk_0812493C:: @ 0812493C - .incbin "baserom.gba", 0x12493C, 0x0000014 - -gUnk_08124950:: @ 08124950 - .incbin "baserom.gba", 0x124950, 0x0000010 - -gUnk_08124960:: @ 08124960 - .incbin "baserom.gba", 0x124960, 0x0000005 - -gUnk_08124965:: @ 08124965 - .incbin "baserom.gba", 0x124965, 0x0000015 - -gUnk_0812497A:: @ 0812497A - .incbin "baserom.gba", 0x12497A, 0x000001A - -gUnk_08124994:: @ 08124994 - .incbin "baserom.gba", 0x124994, 0x000000C - -gUnk_081249A0:: @ 081249A0 - .incbin "baserom.gba", 0x1249A0, 0x000000C - -gUnk_081249AC:: @ 081249AC - .incbin "baserom.gba", 0x1249AC, 0x000000C - -gUnk_081249B8:: @ 081249B8 - .incbin "baserom.gba", 0x1249B8, 0x0000011 - -gUnk_081249C9:: @ 081249C9 - .incbin "baserom.gba", 0x1249C9, 0x0000011 - -gUnk_081249DA:: @ 081249DA - .incbin "baserom.gba", 0x1249DA, 0x0000011 - -gUnk_081249EB:: @ 081249EB - .incbin "baserom.gba", 0x1249EB, 0x0000011 - -gUnk_081249FC:: @ 081249FC - .incbin "baserom.gba", 0x1249FC, 0x0000014 - -gUnk_08124A10:: @ 08124A10 - .incbin "baserom.gba", 0x124A10, 0x0000008 - -gUnk_08124A18:: @ 08124A18 - .incbin "baserom.gba", 0x124A18, 0x0000008 - -gUnk_08124A20:: @ 08124A20 - .incbin "baserom.gba", 0x124A20, 0x000000C - -gUnk_08124A2C:: @ 08124A2C - .incbin "baserom.gba", 0x124A2C, 0x0000051 - -gUnk_08124A7D:: @ 08124A7D - .incbin "baserom.gba", 0x124A7D, 0x0000005 - -gUnk_08124A82:: @ 08124A82 - .incbin "baserom.gba", 0x124A82, 0x0000005 - -gUnk_08124A87:: @ 08124A87 - .incbin "baserom.gba", 0x124A87, 0x0000005 - -gUnk_08124A8C:: @ 08124A8C - .incbin "baserom.gba", 0x124A8C, 0x0000021 - -gUnk_08124AAD:: @ 08124AAD - .incbin "baserom.gba", 0x124AAD, 0x000004B - -gUnk_08124AF8:: @ 08124AF8 - .incbin "baserom.gba", 0x124AF8, 0x0000018 - -gUnk_08124B10:: @ 08124B10 - .incbin "baserom.gba", 0x124B10, 0x0000010 - -gUnk_08124B20:: @ 08124B20 - .incbin "baserom.gba", 0x124B20, 0x0000010 - -gUnk_08124B30:: @ 08124B30 - .incbin "baserom.gba", 0x124B30, 0x0000008 - -gUnk_08124B38:: @ 08124B38 - .incbin "baserom.gba", 0x124B38, 0x0000071 - -gUnk_08124BA9:: @ 08124BA9 - .incbin "baserom.gba", 0x124BA9, 0x0000053 - -gUnk_08124BFC:: @ 08124BFC - .incbin "baserom.gba", 0x124BFC, 0x000000C - -gUnk_08124C08:: @ 08124C08 - .incbin "baserom.gba", 0x124C08, 0x0000008 - -gUnk_08124C10:: @ 08124C10 - .incbin "baserom.gba", 0x124C10, 0x0000010 - -gUnk_08124C20:: @ 08124C20 - .incbin "baserom.gba", 0x124C20, 0x0000028 - -gUnk_08124C48:: @ 08124C48 - .incbin "baserom.gba", 0x124C48, 0x0000258 - -gUnk_08124EA0:: @ 08124EA0 - .incbin "baserom.gba", 0x124EA0, 0x0000028 - -gUnk_08124EC8:: @ 08124EC8 - .incbin "baserom.gba", 0x124EC8, 0x0000004 - -gUnk_08124ECC:: @ 08124ECC - .incbin "baserom.gba", 0x124ECC, 0x0000004 - -gUnk_08124ED0:: @ 08124ED0 - .incbin "baserom.gba", 0x124ED0, 0x0000028 - -gUnk_08124EF8:: @ 08124EF8 - .incbin "baserom.gba", 0x124EF8, 0x0000010 - -gUnk_08124F08:: @ 08124F08 - .incbin "baserom.gba", 0x124F08, 0x0000020 - -gUnk_08124F28:: @ 08124F28 - .incbin "baserom.gba", 0x124F28, 0x0000020 - -gUnk_08124F48:: @ 08124F48 - .incbin "baserom.gba", 0x124F48, 0x0000020 - -gUnk_08124F68:: @ 08124F68 - .incbin "baserom.gba", 0x124F68, 0x0000020 - -gUnk_08124F88:: @ 08124F88 - .incbin "baserom.gba", 0x124F88, 0x0000020 - -gUnk_08124FA8:: @ 08124FA8 - .incbin "baserom.gba", 0x124FA8, 0x0000020 - -gUnk_08124FC8:: @ 08124FC8 - .incbin "baserom.gba", 0x124FC8, 0x0000014 - -gUnk_08124FDC:: @ 08124FDC - .incbin "baserom.gba", 0x124FDC, 0x0000014 - -gUnk_08124FF0:: @ 08124FF0 - .incbin "baserom.gba", 0x124FF0, 0x0000020 - -gUnk_08125010:: @ 08125010 - .incbin "baserom.gba", 0x125010, 0x0000004 - -gUnk_08125014:: @ 08125014 - .incbin "baserom.gba", 0x125014, 0x0000028 - -gUnk_0812503C:: @ 0812503C - .incbin "baserom.gba", 0x12503C, 0x0000014 - -gUnk_08125050:: @ 08125050 - .incbin "baserom.gba", 0x125050, 0x000000C - -gUnk_0812505C:: @ 0812505C - .incbin "baserom.gba", 0x12505C, 0x000000C - -gUnk_08125068:: @ 08125068 - .incbin "baserom.gba", 0x125068, 0x0000014 - -gUnk_0812507C:: @ 0812507C - .incbin "baserom.gba", 0x12507C, 0x0000008 - -gUnk_08125084:: @ 08125084 - .incbin "baserom.gba", 0x125084, 0x0000080 - -gUnk_08125104:: @ 08125104 - .incbin "baserom.gba", 0x125104, 0x000000E - -gUnk_08125112:: @ 08125112 - .incbin "baserom.gba", 0x125112, 0x0000006 - -gUnk_08125118:: @ 08125118 - .incbin "baserom.gba", 0x125118, 0x00002C0 - -gUnk_081253D8:: @ 081253D8 - .incbin "baserom.gba", 0x1253D8, 0x0000020 - -gUnk_081253F8:: @ 081253F8 - .incbin "baserom.gba", 0x1253F8, 0x0000028 - -gUnk_08125420:: @ 08125420 - .incbin "baserom.gba", 0x125420, 0x0000018 - -gUnk_08125438:: @ 08125438 - .incbin "baserom.gba", 0x125438, 0x0000060 - -gUnk_08125498:: @ 08125498 - .incbin "baserom.gba", 0x125498, 0x0000050 - -gUnk_081254E8:: @ 081254E8 - .incbin "baserom.gba", 0x1254E8, 0x0000058 - -gUnk_08125540:: @ 08125540 - .incbin "baserom.gba", 0x125540, 0x0000118 - -gUnk_08125658:: @ 08125658 - .incbin "baserom.gba", 0x125658, 0x0000010 - -gUnk_08125668:: @ 08125668 - .incbin "baserom.gba", 0x125668, 0x0000030 - -gUnk_08125698:: @ 08125698 - .incbin "baserom.gba", 0x125698, 0x0000010 - -gUnk_081256A8:: @ 081256A8 - .incbin "baserom.gba", 0x1256A8, 0x0000028 - -gUnk_081256D0:: @ 081256D0 - .incbin "baserom.gba", 0x1256D0, 0x0000230 - -gUnk_08125900:: @ 08125900 - .incbin "baserom.gba", 0x125900, 0x0000018 - -gUnk_08125918:: @ 08125918 - .incbin "baserom.gba", 0x125918, 0x0000010 - -gUnk_08125928:: @ 08125928 - .incbin "baserom.gba", 0x125928, 0x0000018 - -gUnk_08125940:: @ 08125940 - .incbin "baserom.gba", 0x125940, 0x0000020 - -gUnk_08125960:: @ 08125960 - .incbin "baserom.gba", 0x125960, 0x0000048 - -gUnk_081259A8:: @ 081259A8 - .incbin "baserom.gba", 0x1259A8, 0x000006D - -gUnk_08125A15:: @ 08125A15 - .incbin "baserom.gba", 0x125A15, 0x00000EB - -gUnk_08125B00:: @ 08125B00 - .incbin "baserom.gba", 0x125B00, 0x0000020 - -gUnk_08125B20:: @ 08125B20 - .incbin "baserom.gba", 0x125B20, 0x0000030 - -gUnk_08125B50:: @ 08125B50 - .incbin "baserom.gba", 0x125B50, 0x0000020 - -gUnk_08125B70:: @ 08125B70 - .incbin "baserom.gba", 0x125B70, 0x00000A8 - -gUnk_08125C18:: @ 08125C18 - .incbin "baserom.gba", 0x125C18, 0x0000030 - -gUnk_08125C48:: @ 08125C48 - .incbin "baserom.gba", 0x125C48, 0x0000048 - -gUnk_08125C90:: @ 08125C90 - .incbin "baserom.gba", 0x125C90, 0x0000048 - -gUnk_08125CD8:: @ 08125CD8 - .incbin "baserom.gba", 0x125CD8, 0x0000090 - -gUnk_08125D68:: @ 08125D68 - .incbin "baserom.gba", 0x125D68, 0x0000048 - -gUnk_08125DB0:: @ 08125DB0 - .incbin "baserom.gba", 0x125DB0, 0x0000108 - -gUnk_08125EB8:: @ 08125EB8 - .incbin "baserom.gba", 0x125EB8, 0x0000018 - -gUnk_08125ED0:: @ 08125ED0 - .incbin "baserom.gba", 0x125ED0, 0x0000020 - -gUnk_08125EF0:: @ 08125EF0 - .incbin "baserom.gba", 0x125EF0, 0x0000020 - -gUnk_08125F10:: @ 08125F10 - .incbin "baserom.gba", 0x125F10, 0x0000010 - -gUnk_08125F20:: @ 08125F20 - .incbin "baserom.gba", 0x125F20, 0x0000018 - -gUnk_08125F38:: @ 08125F38 - .incbin "baserom.gba", 0x125F38, 0x0000010 - -gUnk_08125F48:: @ 08125F48 - .incbin "baserom.gba", 0x125F48, 0x0000030 - -gUnk_08125F78:: @ 08125F78 - .incbin "baserom.gba", 0x125F78, 0x0000018 - -gUnk_08125F90:: @ 08125F90 - .incbin "baserom.gba", 0x125F90, 0x0000010 - -gUnk_08125FA0:: @ 08125FA0 - .incbin "baserom.gba", 0x125FA0, 0x0000020 - -gUnk_08125FC0:: @ 08125FC0 - .incbin "baserom.gba", 0x125FC0, 0x0000028 - -gUnk_08125FE8:: @ 08125FE8 - .incbin "baserom.gba", 0x125FE8, 0x0000050 - -gUnk_08126038:: @ 08126038 - .incbin "baserom.gba", 0x126038, 0x0000018 - -gUnk_08126050:: @ 08126050 - .incbin "baserom.gba", 0x126050, 0x0000018 - -gUnk_08126068:: @ 08126068 - .incbin "baserom.gba", 0x126068, 0x0000040 - -gUnk_081260A8:: @ 081260A8 - .incbin "baserom.gba", 0x1260A8, 0x0000010 - -gUnk_081260B8:: @ 081260B8 - .incbin "baserom.gba", 0x1260B8, 0x0000058 - -gUnk_08126110:: @ 08126110 - .incbin "baserom.gba", 0x126110, 0x0000040 - -gUnk_08126150:: @ 08126150 - .incbin "baserom.gba", 0x126150, 0x0000030 - -gUnk_08126180:: @ 08126180 - .incbin "baserom.gba", 0x126180, 0x0000030 - -gUnk_081261B0:: @ 081261B0 - .incbin "baserom.gba", 0x1261B0, 0x0000018 - -gUnk_081261C8:: @ 081261C8 - .incbin "baserom.gba", 0x1261C8, 0x0000020 - -gUnk_081261E8:: @ 081261E8 - .incbin "baserom.gba", 0x1261E8, 0x0000010 - -gUnk_081261F8:: @ 081261F8 - .incbin "baserom.gba", 0x1261F8, 0x000001B - -gUnk_08126213:: @ 08126213 - .incbin "baserom.gba", 0x126213, 0x0000065 - -gUnk_08126278:: @ 08126278 - .incbin "baserom.gba", 0x126278, 0x0000020 - -gUnk_08126298:: @ 08126298 - .incbin "baserom.gba", 0x126298, 0x0000020 - -gUnk_081262B8:: @ 081262B8 - .incbin "baserom.gba", 0x1262B8, 0x0000018 - -gUnk_081262D0:: @ 081262D0 - .incbin "baserom.gba", 0x1262D0, 0x0000018 - -gUnk_081262E8:: @ 081262E8 - .incbin "baserom.gba", 0x1262E8, 0x0000048 - -gUnk_08126330:: @ 08126330 - .incbin "baserom.gba", 0x126330, 0x0000020 - -gUnk_08126350:: @ 08126350 - .incbin "baserom.gba", 0x126350, 0x0000010 - -gUnk_08126360:: @ 08126360 - .incbin "baserom.gba", 0x126360, 0x0000020 - -gUnk_08126380:: @ 08126380 - .incbin "baserom.gba", 0x126380, 0x0000028 - -gUnk_081263A8:: @ 081263A8 - .incbin "baserom.gba", 0x1263A8, 0x0000010 - -gUnk_081263B8:: @ 081263B8 - .incbin "baserom.gba", 0x1263B8, 0x0000010 - -gUnk_081263C8:: @ 081263C8 - .incbin "baserom.gba", 0x1263C8, 0x0000010 - -gUnk_081263D8:: @ 081263D8 - .incbin "baserom.gba", 0x1263D8, 0x0000010 - -gUnk_081263E8:: @ 081263E8 - .incbin "baserom.gba", 0x1263E8, 0x0000138 - -gUnk_08126520:: @ 08126520 - .incbin "baserom.gba", 0x126520, 0x000009C - -gUnk_081265BC:: @ 081265BC - .incbin "baserom.gba", 0x1265BC, 0x0000073 - -gUnk_0812662F:: @ 0812662F - .incbin "baserom.gba", 0x12662F, 0x0000169 - -gUnk_08126798:: @ 08126798 - .incbin "baserom.gba", 0x126798, 0x0000610 - -gUnk_08126DA8:: @ 08126DA8 - .incbin "baserom.gba", 0x126DA8, 0x00000C0 - -gUnk_08126E68:: @ 08126E68 - .incbin "baserom.gba", 0x126E68, 0x0000030 - -gUnk_08126E98:: @ 08126E98 - .incbin "baserom.gba", 0x126E98, 0x0000030 - -gUnk_08126EC8:: @ 08126EC8 - .incbin "baserom.gba", 0x126EC8, 0x0000010 - -gUnk_08126ED8:: @ 08126ED8 - .incbin "baserom.gba", 0x126ED8, 0x000000C - -gUnk_08126EE4:: @ 08126EE4 - .incbin "baserom.gba", 0x126EE4, 0x0000008 - -gUnk_08126EEC:: @ 08126EEC - .incbin "baserom.gba", 0x126EEC, 0x0000008 - -gUnk_08126EF4:: @ 08126EF4 - .incbin "baserom.gba", 0x126EF4, 0x0000004 - -gUnk_08126EF8:: @ 08126EF8 - .incbin "baserom.gba", 0x126EF8, 0x0000005 - -gUnk_08126EFD:: @ 08126EFD - .incbin "baserom.gba", 0x126EFD, 0x0000005 - -gUnk_08126F02:: @ 08126F02 - .incbin "baserom.gba", 0x126F02, 0x0000011 - -gUnk_08126F13:: @ 08126F13 - .incbin "baserom.gba", 0x126F13, 0x0000015 - -gUnk_08126F28:: @ 08126F28 - .incbin "baserom.gba", 0x126F28, 0x0000015 - -gUnk_08126F3D:: @ 08126F3D - .incbin "baserom.gba", 0x126F3D, 0x0000011 - -gUnk_08126F4E:: @ 08126F4E - .incbin "baserom.gba", 0x126F4E, 0x0000011 - -gUnk_08126F5F:: @ 08126F5F - .incbin "baserom.gba", 0x126F5F, 0x0000011 - -gUnk_08126F70:: @ 08126F70 - .incbin "baserom.gba", 0x126F70, 0x0000011 - -gUnk_08126F81:: @ 08126F81 - .incbin "baserom.gba", 0x126F81, 0x0000009 - -gUnk_08126F8A:: @ 08126F8A - .incbin "baserom.gba", 0x126F8A, 0x000000C - -gUnk_08126F96:: @ 08126F96 - .incbin "baserom.gba", 0x126F96, 0x000000D - -gUnk_08126FA3:: @ 08126FA3 - .incbin "baserom.gba", 0x126FA3, 0x0000010 - -gUnk_08126FB3:: @ 08126FB3 - .incbin "baserom.gba", 0x126FB3, 0x0000010 - -gUnk_08126FC3:: @ 08126FC3 - .incbin "baserom.gba", 0x126FC3, 0x0000021 - -gUnk_08126FE4:: @ 08126FE4 - .incbin "baserom.gba", 0x126FE4, 0x0000014 - -gUnk_08126FF8:: @ 08126FF8 - .incbin "baserom.gba", 0x126FF8, 0x0000021 - -gUnk_08127019:: @ 08127019 - .incbin "baserom.gba", 0x127019, 0x0000018 - -gUnk_08127031:: @ 08127031 - .incbin "baserom.gba", 0x127031, 0x0000015 - -gUnk_08127046:: @ 08127046 - .incbin "baserom.gba", 0x127046, 0x0000015 - -gUnk_0812705B:: @ 0812705B - .incbin "baserom.gba", 0x12705B, 0x000005C - -gUnk_081270B7:: @ 081270B7 - .incbin "baserom.gba", 0x1270B7, 0x0000029 - -gUnk_081270E0:: @ 081270E0 - .incbin "baserom.gba", 0x1270E0, 0x0000011 - -gUnk_081270F1:: @ 081270F1 - .incbin "baserom.gba", 0x1270F1, 0x0000005 - -gUnk_081270F6:: @ 081270F6 - .incbin "baserom.gba", 0x1270F6, 0x0000011 - -gUnk_08127107:: @ 08127107 - .incbin "baserom.gba", 0x127107, 0x0000011 - -gUnk_08127118:: @ 08127118 - .incbin "baserom.gba", 0x127118, 0x0000011 - -gUnk_08127129:: @ 08127129 - .incbin "baserom.gba", 0x127129, 0x0000011 - -gUnk_0812713A:: @ 0812713A - .incbin "baserom.gba", 0x12713A, 0x0000009 - -gUnk_08127143:: @ 08127143 - .incbin "baserom.gba", 0x127143, 0x0000009 - -gUnk_0812714C:: @ 0812714C - .incbin "baserom.gba", 0x12714C, 0x0000080 - -gUnk_081271CC:: @ 081271CC - .incbin "baserom.gba", 0x1271CC, 0x0000008 - -gUnk_081271D4:: @ 081271D4 - .incbin "baserom.gba", 0x1271D4, 0x0000008 - -gUnk_081271DC:: @ 081271DC - .incbin "baserom.gba", 0x1271DC, 0x0000044 - -gUnk_08127220:: @ 08127220 - .incbin "baserom.gba", 0x127220, 0x0000020 - -gUnk_08127240:: @ 08127240 - .incbin "baserom.gba", 0x127240, 0x0000010 - -gUnk_08127250:: @ 08127250 - .incbin "baserom.gba", 0x127250, 0x0000008 - -gUnk_08127258:: @ 08127258 - .incbin "baserom.gba", 0x127258, 0x0000008 - -gUnk_08127260:: @ 08127260 - .incbin "baserom.gba", 0x127260, 0x0000008 - -gUnk_08127268:: @ 08127268 - .incbin "baserom.gba", 0x127268, 0x0000008 - -gUnk_08127270:: @ 08127270 - .incbin "baserom.gba", 0x127270, 0x0000008 - -gUnk_08127278:: @ 08127278 - .incbin "baserom.gba", 0x127278, 0x0000008 - -gUnk_08127280:: @ 08127280 - .incbin "baserom.gba", 0x127280, 0x0000018 - -gUnk_08127298:: @ 08127298 - .incbin "baserom.gba", 0x127298, 0x0000018 - -gUnk_081272B0:: @ 081272B0 - .incbin "baserom.gba", 0x1272B0, 0x0000018 - -gUnk_081272C8:: @ 081272C8 - .incbin "baserom.gba", 0x1272C8, 0x0000018 - -gUnk_081272E0:: @ 081272E0 - .incbin "baserom.gba", 0x1272E0, 0x0000010 - -gUnk_081272F0:: @ 081272F0 - .incbin "baserom.gba", 0x1272F0, 0x0000354 - -gUnk_08127644:: @ 08127644 - .incbin "baserom.gba", 0x127644, 0x0000354 - -gUnk_08127998:: @ 08127998 - .incbin "baserom.gba", 0x127998, 0x0000354 - -gUnk_08127CEC:: @ 08127CEC - .incbin "baserom.gba", 0x127CEC, 0x0000014 - -gUnk_08127D00:: @ 08127D00 - .incbin "baserom.gba", 0x127D00, 0x0000010 - -gUnk_08127D10:: @ 08127D10 - .incbin "baserom.gba", 0x127D10, 0x0000020 - -gUnk_08127D30:: @ 08127D30 - .incbin "baserom.gba", 0x127D30, 0x0000264 - -gUnk_08127F94:: @ 08127F94 - .incbin "baserom.gba", 0x127F94, 0x0000090 - -gUnk_08128024:: @ 08128024 - .incbin "baserom.gba", 0x128024, 0x00000A0 - -gUnk_081280C4:: @ 081280C4 - .incbin "baserom.gba", 0x1280C4, 0x0000018 - -gUnk_081280DC:: @ 081280DC - .incbin "baserom.gba", 0x1280DC, 0x0000012 - -gUnk_081280EE:: @ 081280EE - .incbin "baserom.gba", 0x1280EE, 0x0000006 - -gUnk_081280F4:: @ 081280F4 - .incbin "baserom.gba", 0x1280F4, 0x000000C - -gUnk_08128100:: @ 08128100 - .incbin "baserom.gba", 0x128100, 0x0000010 - -gUnk_08128110:: @ 08128110 - .incbin "baserom.gba", 0x128110, 0x0000010 - -gUnk_08128120:: @ 08128120 - .incbin "baserom.gba", 0x128120, 0x000001C - -gUnk_0812813C:: @ 0812813C - .incbin "baserom.gba", 0x12813C, 0x0000010 - -gUnk_0812814C:: @ 0812814C - .incbin "baserom.gba", 0x12814C, 0x0000010 - -gUnk_0812815C:: @ 0812815C - .incbin "baserom.gba", 0x12815C, 0x0000010 - -gUnk_0812816C:: @ 0812816C - .incbin "baserom.gba", 0x12816C, 0x0000018 - -gUnk_08128184:: @ 08128184 - .incbin "baserom.gba", 0x128184, 0x000000C - -gUnk_08128190:: @ 08128190 - .incbin "baserom.gba", 0x128190, 0x0000018 - -gUnk_081281A8:: @ 081281A8 - .incbin "baserom.gba", 0x1281A8, 0x0000890 - -gUnk_08128A38:: @ 08128A38 - .incbin "baserom.gba", 0x128A38, 0x00000A0 - -gUnk_08128AD8:: @ 08128AD8 - .incbin "baserom.gba", 0x128AD8, 0x0000058 - -gUnk_08128B30:: @ 08128B30 - .incbin "baserom.gba", 0x128B30, 0x0000018 - -gUnk_08128B48:: @ 08128B48 - .incbin "baserom.gba", 0x128B48, 0x0000008 - -gUnk_08128B50:: @ 08128B50 - .incbin "baserom.gba", 0x128B50, 0x0000014 - -gUnk_08128B64:: @ 08128B64 - .incbin "baserom.gba", 0x128B64, 0x0000090 - -gUnk_08128BF4:: @ 08128BF4 - .incbin "baserom.gba", 0x128BF4, 0x0000004 - -gUnk_08128BF8:: @ 08128BF8 - .incbin "baserom.gba", 0x128BF8, 0x0000008 - -gUnk_08128C00:: @ 08128C00 - .incbin "baserom.gba", 0x128C00, 0x0000004 - -gUnk_08128C04:: @ 08128C04 - .incbin "baserom.gba", 0x128C04, 0x0000010 - -gUnk_08128C14:: @ 08128C14 - .incbin "baserom.gba", 0x128C14, 0x0000080 - -gUnk_08128C94:: @ 08128C94 - .incbin "baserom.gba", 0x128C94, 0x0000080 - -gUnk_08128D14:: @ 08128D14 - .incbin "baserom.gba", 0x128D14, 0x0000010 - -gUnk_08128D24:: @ 08128D24 - .incbin "baserom.gba", 0x128D24, 0x000000C - -gUnk_08128D30:: @ 08128D30 - .incbin "baserom.gba", 0x128D30, 0x0000008 - -gUnk_08128D38:: @ 08128D38 - .incbin "baserom.gba", 0x128D38, 0x0000004 - -gUnk_08128D3C:: @ 08128D3C - .incbin "baserom.gba", 0x128D3C, 0x0000007 - -gUnk_08128D43:: @ 08128D43 - .incbin "baserom.gba", 0x128D43, 0x000000E - -gUnk_08128D51:: @ 08128D51 - .incbin "baserom.gba", 0x128D51, 0x0000007 - -gUnk_08128D58:: @ 08128D58 - .incbin "baserom.gba", 0x128D58, 0x0000008 - -gUnk_08128D60:: @ 08128D60 - .incbin "baserom.gba", 0x128D60, 0x0000010 - -gUnk_08128D70:: @ 08128D70 - .incbin "baserom.gba", 0x128D70, 0x0000040 - -gUnk_08128DB0:: @ 08128DB0 - .incbin "baserom.gba", 0x128DB0, 0x0000008 - -gUnk_08128DB8:: @ 08128DB8 - .incbin "baserom.gba", 0x128DB8, 0x0000004 - -gUnk_08128DBC:: @ 08128DBC - .incbin "baserom.gba", 0x128DBC, 0x0000010 - -gUnk_08128DCC:: @ 08128DCC - .incbin "baserom.gba", 0x128DCC, 0x0000008 - -gUnk_08128DD4:: @ 08128DD4 - .incbin "baserom.gba", 0x128DD4, 0x0000004 - -gUnk_08128DD8:: @ 08128DD8 - .incbin "baserom.gba", 0x128DD8, 0x0000010 - -gUnk_08128DE8:: @ 08128DE8 - .incbin "baserom.gba", 0x128DE8, 0x0000088 - -gUnk_08128E70:: @ 08128E70 - .incbin "baserom.gba", 0x128E70, 0x0000008 - -gUnk_08128E78:: @ 08128E78 - .incbin "baserom.gba", 0x128E78, 0x0000008 - -gUnk_08128E80:: @ 08128E80 - .incbin "baserom.gba", 0x128E80, 0x0000004 - -gUnk_08128E84:: @ 08128E84 - .incbin "baserom.gba", 0x128E84, 0x0000010 - -gUnk_08128E94:: @ 08128E94 - .incbin "baserom.gba", 0x128E94, 0x0000088 - -gUnk_08128F1C:: @ 08128F1C - .incbin "baserom.gba", 0x128F1C, 0x0000008 - -gUnk_08128F24:: @ 08128F24 - .incbin "baserom.gba", 0x128F24, 0x0000014 - -gUnk_08128F38:: @ 08128F38 - .incbin "baserom.gba", 0x128F38, 0x0000014 - -gUnk_08128F4C:: @ 08128F4C - .incbin "baserom.gba", 0x128F4C, 0x000000C - -gUnk_08128F58:: @ 08128F58 - .incbin "baserom.gba", 0x128F58, 0x0000050 - -gUnk_08128FA8:: @ 08128FA8 - .incbin "baserom.gba", 0x128FA8, 0x0000018 - -gUnk_08128FC0:: @ 08128FC0 - .incbin "baserom.gba", 0x128FC0, 0x0000018 - -gUnk_08128FD8:: @ 08128FD8 - .incbin "baserom.gba", 0x128FD8, 0x0000018 - -gUnk_08128FF0:: @ 08128FF0 - .incbin "baserom.gba", 0x128FF0, 0x0000014 - -gUnk_08129004:: @ 08129004 - .incbin "baserom.gba", 0x129004, 0x0000018 - -gUnk_0812901C:: @ 0812901C - .incbin "baserom.gba", 0x12901C, 0x0000014 - -gUnk_08129030:: @ 08129030 - .incbin "baserom.gba", 0x129030, 0x000002C - -gUnk_0812905C:: @ 0812905C - .incbin "baserom.gba", 0x12905C, 0x000000C - -gUnk_08129068:: @ 08129068 - .incbin "baserom.gba", 0x129068, 0x0000004 - -gUnk_0812906C:: @ 0812906C - .incbin "baserom.gba", 0x12906C, 0x0000006 - -gUnk_08129072:: @ 08129072 - .incbin "baserom.gba", 0x129072, 0x000001C - -gUnk_0812908E:: @ 0812908E - .incbin "baserom.gba", 0x12908E, 0x0000008 - -gUnk_08129096:: @ 08129096 - .incbin "baserom.gba", 0x129096, 0x000024C - -gUnk_081292E2:: @ 081292E2 - .incbin "baserom.gba", 0x1292E2, 0x000003E - -gUnk_08129320:: @ 08129320 - .incbin "baserom.gba", 0x129320, 0x0000098 - -gUnk_081293B8:: @ 081293B8 - .incbin "baserom.gba", 0x1293B8, 0x0000014 - -gUnk_081293CC:: @ 081293CC - .incbin "baserom.gba", 0x1293CC, 0x0000014 - -gUnk_081293E0:: @ 081293E0 - .incbin "baserom.gba", 0x1293E0, 0x0000010 - -gUnk_081293F0:: @ 081293F0 - .incbin "baserom.gba", 0x1293F0, 0x0000010 - -gUnk_08129400:: @ 08129400 - .incbin "baserom.gba", 0x129400, 0x0000010 - -gUnk_08129410:: @ 08129410 - .incbin "baserom.gba", 0x129410, 0x0000010 - -gUnk_08129420:: @ 08129420 - .incbin "baserom.gba", 0x129420, 0x0000010 - -gUnk_08129430:: @ 08129430 - .incbin "baserom.gba", 0x129430, 0x0000008 - -gUnk_08129438:: @ 08129438 - .incbin "baserom.gba", 0x129438, 0x0000008 - -gUnk_08129440:: @ 08129440 - .incbin "baserom.gba", 0x129440, 0x0000008 - -gUnk_08129448:: @ 08129448 - .incbin "baserom.gba", 0x129448, 0x0000008 - -gUnk_08129450:: @ 08129450 - .incbin "baserom.gba", 0x129450, 0x0000008 - -gUnk_08129458:: @ 08129458 - .incbin "baserom.gba", 0x129458, 0x0000008 - -gUnk_08129460:: @ 08129460 - .incbin "baserom.gba", 0x129460, 0x0000018 - -gUnk_08129478:: @ 08129478 - .incbin "baserom.gba", 0x129478, 0x0000008 - -gUnk_08129480:: @ 08129480 - .incbin "baserom.gba", 0x129480, 0x0000008 - -gUnk_08129488:: @ 08129488 - .incbin "baserom.gba", 0x129488, 0x0000008 - -gUnk_08129490:: @ 08129490 - .incbin "baserom.gba", 0x129490, 0x0000008 - -gUnk_08129498:: @ 08129498 - .incbin "baserom.gba", 0x129498, 0x0000008 - -gUnk_081294A0:: @ 081294A0 - .incbin "baserom.gba", 0x1294A0, 0x0000008 - -gUnk_081294A8:: @ 081294A8 - .incbin "baserom.gba", 0x1294A8, 0x0000018 - -gUnk_081294C0:: @ 081294C0 - .incbin "baserom.gba", 0x1294C0, 0x0000008 - -gUnk_081294C8:: @ 081294C8 - .incbin "baserom.gba", 0x1294C8, 0x0000008 - -gUnk_081294D0:: @ 081294D0 - .incbin "baserom.gba", 0x1294D0, 0x0000008 - -gUnk_081294D8:: @ 081294D8 - .incbin "baserom.gba", 0x1294D8, 0x0000008 - -gUnk_081294E0:: @ 081294E0 - .incbin "baserom.gba", 0x1294E0, 0x0000008 - -gUnk_081294E8:: @ 081294E8 - .incbin "baserom.gba", 0x1294E8, 0x0000008 - -gUnk_081294F0:: @ 081294F0 - .incbin "baserom.gba", 0x1294F0, 0x0000018 - -gUnk_08129508:: @ 08129508 - .incbin "baserom.gba", 0x129508, 0x0000008 - -gUnk_08129510:: @ 08129510 - .incbin "baserom.gba", 0x129510, 0x0000008 - -gUnk_08129518:: @ 08129518 - .incbin "baserom.gba", 0x129518, 0x0000008 - -gUnk_08129520:: @ 08129520 - .incbin "baserom.gba", 0x129520, 0x0000008 - -gUnk_08129528:: @ 08129528 - .incbin "baserom.gba", 0x129528, 0x0000008 - -gUnk_08129530:: @ 08129530 - .incbin "baserom.gba", 0x129530, 0x0000008 - -gUnk_08129538:: @ 08129538 - .incbin "baserom.gba", 0x129538, 0x0000018 - -gUnk_08129550:: @ 08129550 - .incbin "baserom.gba", 0x129550, 0x0000008 - -gUnk_08129558:: @ 08129558 - .incbin "baserom.gba", 0x129558, 0x0000008 - -gUnk_08129560:: @ 08129560 - .incbin "baserom.gba", 0x129560, 0x0000008 - -gUnk_08129568:: @ 08129568 - .incbin "baserom.gba", 0x129568, 0x0000008 - -gUnk_08129570:: @ 08129570 - .incbin "baserom.gba", 0x129570, 0x0000008 - -gUnk_08129578:: @ 08129578 - .incbin "baserom.gba", 0x129578, 0x0000008 - -gUnk_08129580:: @ 08129580 - .incbin "baserom.gba", 0x129580, 0x0000008 - -gUnk_08129588:: @ 08129588 - .incbin "baserom.gba", 0x129588, 0x0000008 - -gUnk_08129590:: @ 08129590 - .incbin "baserom.gba", 0x129590, 0x0000008 - -gUnk_08129598:: @ 08129598 - .incbin "baserom.gba", 0x129598, 0x0000008 - -gUnk_081295A0:: @ 081295A0 - .incbin "baserom.gba", 0x1295A0, 0x0000008 - -gUnk_081295A8:: @ 081295A8 - .incbin "baserom.gba", 0x1295A8, 0x0000008 - -gUnk_081295B0:: @ 081295B0 - .incbin "baserom.gba", 0x1295B0, 0x0000008 - -gUnk_081295B8:: @ 081295B8 - .incbin "baserom.gba", 0x1295B8, 0x0000008 - -gUnk_081295C0:: @ 081295C0 - .incbin "baserom.gba", 0x1295C0, 0x0000008 - -gUnk_081295C8:: @ 081295C8 - .incbin "baserom.gba", 0x1295C8, 0x0000008 - -gUnk_081295D0:: @ 081295D0 - .incbin "baserom.gba", 0x1295D0, 0x0000014 - -gUnk_081295E4:: @ 081295E4 - .incbin "baserom.gba", 0x1295E4, 0x0000010 - -gUnk_081295F4:: @ 081295F4 - .incbin "baserom.gba", 0x1295F4, 0x0000010 - -gUnk_08129604:: @ 08129604 - .incbin "baserom.gba", 0x129604, 0x0000008 - -gUnk_0812960C:: @ 0812960C - .incbin "baserom.gba", 0x12960C, 0x0000014 - -gUnk_08129620:: @ 08129620 - .incbin "baserom.gba", 0x129620, 0x0000014 - -gUnk_08129634:: @ 08129634 - .incbin "baserom.gba", 0x129634, 0x0000014 - -gUnk_08129648:: @ 08129648 - .incbin "baserom.gba", 0x129648, 0x0000008 - -gUnk_08129650:: @ 08129650 - .incbin "baserom.gba", 0x129650, 0x0000014 - -gUnk_08129664:: @ 08129664 - .incbin "baserom.gba", 0x129664, 0x0000008 - -gUnk_0812966C:: @ 0812966C - .incbin "baserom.gba", 0x12966C, 0x0000084 - -gUnk_081296F0:: @ 081296F0 - .incbin "baserom.gba", 0x1296F0, 0x0000014 - -gUnk_08129704:: @ 08129704 - .incbin "baserom.gba", 0x129704, 0x0000014 - -gUnk_08129718:: @ 08129718 - .incbin "baserom.gba", 0x129718, 0x0000014 - -gUnk_0812972C:: @ 0812972C - .incbin "baserom.gba", 0x12972C, 0x0000008 - -gUnk_08129734:: @ 08129734 - .incbin "baserom.gba", 0x129734, 0x000000C - -gUnk_08129740:: @ 08129740 - .incbin "baserom.gba", 0x129740, 0x0000014 - -gUnk_08129754:: @ 08129754 - .incbin "baserom.gba", 0x129754, 0x0000010 - -gUnk_08129764:: @ 08129764 - .incbin "baserom.gba", 0x129764, 0x000000C - -gUnk_08129770:: @ 08129770 - .incbin "baserom.gba", 0x129770, 0x0000005 - -gUnk_08129775:: @ 08129775 - .incbin "baserom.gba", 0x129775, 0x000001B - -gUnk_08129790:: @ 08129790 - .incbin "baserom.gba", 0x129790, 0x000000C - -gUnk_0812979C:: @ 0812979C - .incbin "baserom.gba", 0x12979C, 0x0000010 - -gUnk_081297AC:: @ 081297AC - .incbin "baserom.gba", 0x1297AC, 0x0000009 - -gUnk_081297B5:: @ 081297B5 - .incbin "baserom.gba", 0x1297B5, 0x0000009 - -gUnk_081297BE:: @ 081297BE - .incbin "baserom.gba", 0x1297BE, 0x0000009 - -gUnk_081297C7:: @ 081297C7 - .incbin "baserom.gba", 0x1297C7, 0x0000009 - -gUnk_081297D0:: @ 081297D0 - .incbin "baserom.gba", 0x1297D0, 0x0000005 - -gUnk_081297D5:: @ 081297D5 - .incbin "baserom.gba", 0x1297D5, 0x0000005 - -gUnk_081297DA:: @ 081297DA - .incbin "baserom.gba", 0x1297DA, 0x0000005 - -gUnk_081297DF:: @ 081297DF - .incbin "baserom.gba", 0x1297DF, 0x0000005 - -gUnk_081297E4:: @ 081297E4 - .incbin "baserom.gba", 0x1297E4, 0x0000005 - -gUnk_081297E9:: @ 081297E9 - .incbin "baserom.gba", 0x1297E9, 0x0000005 - -gUnk_081297EE:: @ 081297EE - .incbin "baserom.gba", 0x1297EE, 0x0000005 - -gUnk_081297F3:: @ 081297F3 - .incbin "baserom.gba", 0x1297F3, 0x0000005 - -gUnk_081297F8:: @ 081297F8 - .incbin "baserom.gba", 0x1297F8, 0x0000034 - -gUnk_0812982C:: @ 0812982C - .incbin "baserom.gba", 0x12982C, 0x0000010 - -gUnk_0812983C:: @ 0812983C - .incbin "baserom.gba", 0x12983C, 0x0000009 - -gUnk_08129845:: @ 08129845 - .incbin "baserom.gba", 0x129845, 0x0000009 - -gUnk_0812984E:: @ 0812984E - .incbin "baserom.gba", 0x12984E, 0x0000009 - -gUnk_08129857:: @ 08129857 - .incbin "baserom.gba", 0x129857, 0x0000009 - -gUnk_08129860:: @ 08129860 - .incbin "baserom.gba", 0x129860, 0x000000D - -gUnk_0812986D:: @ 0812986D - .incbin "baserom.gba", 0x12986D, 0x000000D - -gUnk_0812987A:: @ 0812987A - .incbin "baserom.gba", 0x12987A, 0x000000D - -gUnk_08129887:: @ 08129887 - .incbin "baserom.gba", 0x129887, 0x000000D - -gUnk_08129894:: @ 08129894 - .incbin "baserom.gba", 0x129894, 0x0000024 - -gUnk_081298B8:: @ 081298B8 - .incbin "baserom.gba", 0x1298B8, 0x0000010 - -gUnk_081298C8:: @ 081298C8 - .incbin "baserom.gba", 0x1298C8, 0x0000009 - -gUnk_081298D1:: @ 081298D1 - .incbin "baserom.gba", 0x1298D1, 0x0000009 - -gUnk_081298DA:: @ 081298DA - .incbin "baserom.gba", 0x1298DA, 0x0000009 - -gUnk_081298E3:: @ 081298E3 - .incbin "baserom.gba", 0x1298E3, 0x0000009 - -gUnk_081298EC:: @ 081298EC - .incbin "baserom.gba", 0x1298EC, 0x0000011 - -gUnk_081298FD:: @ 081298FD - .incbin "baserom.gba", 0x1298FD, 0x0000011 - -gUnk_0812990E:: @ 0812990E - .incbin "baserom.gba", 0x12990E, 0x0000011 - -gUnk_0812991F:: @ 0812991F - .incbin "baserom.gba", 0x12991F, 0x0000011 - -gUnk_08129930:: @ 08129930 - .incbin "baserom.gba", 0x129930, 0x0000024 - -gUnk_08129954:: @ 08129954 - .incbin "baserom.gba", 0x129954, 0x0000014 - -gUnk_08129968:: @ 08129968 - .incbin "baserom.gba", 0x129968, 0x0000010 - -gUnk_08129978:: @ 08129978 - .incbin "baserom.gba", 0x129978, 0x0000008 - -gUnk_08129980:: @ 08129980 - .incbin "baserom.gba", 0x129980, 0x0000008 - -gUnk_08129988:: @ 08129988 - .incbin "baserom.gba", 0x129988, 0x0000010 - -gUnk_08129998:: @ 08129998 - .incbin "baserom.gba", 0x129998, 0x0000010 - -gUnk_081299A8:: @ 081299A8 - .incbin "baserom.gba", 0x1299A8, 0x0000008 - -gUnk_081299B0:: @ 081299B0 - .incbin "baserom.gba", 0x1299B0, 0x0000008 - -gUnk_081299B8:: @ 081299B8 - .incbin "baserom.gba", 0x1299B8, 0x0000008 - -gUnk_081299C0:: @ 081299C0 - .incbin "baserom.gba", 0x1299C0, 0x0000008 - -gUnk_081299C8:: @ 081299C8 - .incbin "baserom.gba", 0x1299C8, 0x0000008 - -gUnk_081299D0:: @ 081299D0 - .incbin "baserom.gba", 0x1299D0, 0x0000014 - -gUnk_081299E4:: @ 081299E4 - .incbin "baserom.gba", 0x1299E4, 0x0000014 - -gUnk_081299F8:: @ 081299F8 - .incbin "baserom.gba", 0x1299F8, 0x0000020 - -gUnk_08129A18:: @ 08129A18 - .incbin "baserom.gba", 0x129A18, 0x0000008 - -gUnk_08129A20:: @ 08129A20 - .incbin "baserom.gba", 0x129A20, 0x0000008 - -gUnk_08129A28:: @ 08129A28 - .incbin "baserom.gba", 0x129A28, 0x0000005 - -gUnk_08129A2D:: @ 08129A2D - .incbin "baserom.gba", 0x129A2D, 0x0000005 - -gUnk_08129A32:: @ 08129A32 - .incbin "baserom.gba", 0x129A32, 0x0000011 - -gUnk_08129A43:: @ 08129A43 - .incbin "baserom.gba", 0x129A43, 0x0000011 - -gUnk_08129A54:: @ 08129A54 - .incbin "baserom.gba", 0x129A54, 0x0000010 - -gUnk_08129A64:: @ 08129A64 - .incbin "baserom.gba", 0x129A64, 0x000000C - -gUnk_08129A70:: @ 08129A70 - .incbin "baserom.gba", 0x129A70, 0x0000019 - -gUnk_08129A89:: @ 08129A89 - .incbin "baserom.gba", 0x129A89, 0x0000027 - -gUnk_08129AB0:: @ 08129AB0 - .incbin "baserom.gba", 0x129AB0, 0x000000C - -gUnk_08129ABC:: @ 08129ABC - .incbin "baserom.gba", 0x129ABC, 0x0000014 - -gUnk_08129AD0:: @ 08129AD0 - .incbin "baserom.gba", 0x129AD0, 0x000000C - -gUnk_08129ADC:: @ 08129ADC - .incbin "baserom.gba", 0x129ADC, 0x0000004 - -gUnk_08129AE0:: @ 08129AE0 - .incbin "baserom.gba", 0x129AE0, 0x0000018 - -gUnk_08129AF8:: @ 08129AF8 - .incbin "baserom.gba", 0x129AF8, 0x0000010 - -gUnk_08129B08:: @ 08129B08 - .incbin "baserom.gba", 0x129B08, 0x0000018 - -gUnk_08129B20:: @ 08129B20 - .incbin "baserom.gba", 0x129B20, 0x0000030 - -gUnk_08129B50:: @ 08129B50 - .incbin "baserom.gba", 0x129B50, 0x0000008 - -gUnk_08129B58:: @ 08129B58 - .incbin "baserom.gba", 0x129B58, 0x0000018 - -gUnk_08129B70:: @ 08129B70 - .incbin "baserom.gba", 0x129B70, 0x0000008 - -gUnk_08129B78:: @ 08129B78 - .incbin "baserom.gba", 0x129B78, 0x000000C - -gUnk_08129B84:: @ 08129B84 - .incbin "baserom.gba", 0x129B84, 0x0000011 - -gUnk_08129B95:: @ 08129B95 - .incbin "baserom.gba", 0x129B95, 0x0000011 - -gUnk_08129BA6:: @ 08129BA6 - .incbin "baserom.gba", 0x129BA6, 0x0000011 - -gUnk_08129BB7:: @ 08129BB7 - .incbin "baserom.gba", 0x129BB7, 0x0000011 - -gUnk_08129BC8:: @ 08129BC8 - .incbin "baserom.gba", 0x129BC8, 0x0000024 - -gUnk_08129BEC:: @ 08129BEC - .incbin "baserom.gba", 0x129BEC, 0x0000014 - -gUnk_08129C00:: @ 08129C00 - .incbin "baserom.gba", 0x129C00, 0x0000008 - -gUnk_08129C08:: @ 08129C08 - .incbin "baserom.gba", 0x129C08, 0x000006C - -gUnk_08129C74:: @ 08129C74 - .incbin "baserom.gba", 0x129C74, 0x0000008 - -gUnk_08129C7C:: @ 08129C7C - .incbin "baserom.gba", 0x129C7C, 0x0000014 - -gUnk_08129C90:: @ 08129C90 - .incbin "baserom.gba", 0x129C90, 0x0000014 - -gUnk_08129CA4:: @ 08129CA4 - .incbin "baserom.gba", 0x129CA4, 0x0000008 - -gUnk_08129CAC:: @ 08129CAC - .incbin "baserom.gba", 0x129CAC, 0x0000008 - -gUnk_08129CB4:: @ 08129CB4 - .incbin "baserom.gba", 0x129CB4, 0x0000008 - -gUnk_08129CBC:: @ 08129CBC - .incbin "baserom.gba", 0x129CBC, 0x0000008 - -gUnk_08129CC4:: @ 08129CC4 - .incbin "baserom.gba", 0x129CC4, 0x0000008 - -gUnk_08129CCC:: @ 08129CCC - .incbin "baserom.gba", 0x129CCC, 0x0000008 - -gUnk_08129CD4:: @ 08129CD4 - .incbin "baserom.gba", 0x129CD4, 0x0000008 - -gUnk_08129CDC:: @ 08129CDC - .incbin "baserom.gba", 0x129CDC, 0x0000008 - -gUnk_08129CE4:: @ 08129CE4 - .incbin "baserom.gba", 0x129CE4, 0x0000008 - -gUnk_08129CEC:: @ 08129CEC - .incbin "baserom.gba", 0x129CEC, 0x0000008 - -gUnk_08129CF4:: @ 08129CF4 - .incbin "baserom.gba", 0x129CF4, 0x0000020 - -gUnk_08129D14:: @ 08129D14 - .incbin "baserom.gba", 0x129D14, 0x0000008 - -gUnk_08129D1C:: @ 08129D1C - .incbin "baserom.gba", 0x129D1C, 0x0000005 - -gUnk_08129D21:: @ 08129D21 - .incbin "baserom.gba", 0x129D21, 0x0000005 - -gUnk_08129D26:: @ 08129D26 - .incbin "baserom.gba", 0x129D26, 0x0000005 - -gUnk_08129D2B:: @ 08129D2B - .incbin "baserom.gba", 0x129D2B, 0x0000005 - -gUnk_08129D30:: @ 08129D30 - .incbin "baserom.gba", 0x129D30, 0x0000005 - -gUnk_08129D35:: @ 08129D35 - .incbin "baserom.gba", 0x129D35, 0x0000005 - -gUnk_08129D3A:: @ 08129D3A - .incbin "baserom.gba", 0x129D3A, 0x0000005 - -gUnk_08129D3F:: @ 08129D3F - .incbin "baserom.gba", 0x129D3F, 0x0000005 - -gUnk_08129D44:: @ 08129D44 - .incbin "baserom.gba", 0x129D44, 0x0000011 - -gUnk_08129D55:: @ 08129D55 - .incbin "baserom.gba", 0x129D55, 0x0000011 - -gUnk_08129D66:: @ 08129D66 - .incbin "baserom.gba", 0x129D66, 0x0000011 - -gUnk_08129D77:: @ 08129D77 - .incbin "baserom.gba", 0x129D77, 0x0000011 - -gUnk_08129D88:: @ 08129D88 - .incbin "baserom.gba", 0x129D88, 0x0000011 - -gUnk_08129D99:: @ 08129D99 - .incbin "baserom.gba", 0x129D99, 0x0000011 - -gUnk_08129DAA:: @ 08129DAA - .incbin "baserom.gba", 0x129DAA, 0x0000011 - -gUnk_08129DBB:: @ 08129DBB - .incbin "baserom.gba", 0x129DBB, 0x0000011 - -gUnk_08129DCC:: @ 08129DCC - .incbin "baserom.gba", 0x129DCC, 0x000000C - -gUnk_08129DD8:: @ 08129DD8 - .incbin "baserom.gba", 0x129DD8, 0x000000C - -gUnk_08129DE4:: @ 08129DE4 - .incbin "baserom.gba", 0x129DE4, 0x000000C - -gUnk_08129DF0:: @ 08129DF0 - .incbin "baserom.gba", 0x129DF0, 0x000000C - -gUnk_08129DFC:: @ 08129DFC - .incbin "baserom.gba", 0x129DFC, 0x000000C - -gUnk_08129E08:: @ 08129E08 - .incbin "baserom.gba", 0x129E08, 0x000000C - -gUnk_08129E14:: @ 08129E14 - .incbin "baserom.gba", 0x129E14, 0x000000C - -gUnk_08129E20:: @ 08129E20 - .incbin "baserom.gba", 0x129E20, 0x000000C - -gUnk_08129E2C:: @ 08129E2C - .incbin "baserom.gba", 0x129E2C, 0x0000021 - -gUnk_08129E4D:: @ 08129E4D - .incbin "baserom.gba", 0x129E4D, 0x0000021 - -gUnk_08129E6E:: @ 08129E6E - .incbin "baserom.gba", 0x129E6E, 0x0000021 - -gUnk_08129E8F:: @ 08129E8F - .incbin "baserom.gba", 0x129E8F, 0x0000021 - -gUnk_08129EB0:: @ 08129EB0 - .incbin "baserom.gba", 0x129EB0, 0x0000021 - -gUnk_08129ED1:: @ 08129ED1 - .incbin "baserom.gba", 0x129ED1, 0x0000021 - -gUnk_08129EF2:: @ 08129EF2 - .incbin "baserom.gba", 0x129EF2, 0x0000021 - -gUnk_08129F13:: @ 08129F13 - .incbin "baserom.gba", 0x129F13, 0x0000021 - -gUnk_08129F34:: @ 08129F34 - .incbin "baserom.gba", 0x129F34, 0x0000084 - -gUnk_08129FB8:: @ 08129FB8 - .incbin "baserom.gba", 0x129FB8, 0x0000018 - -gUnk_08129FD0:: @ 08129FD0 - .incbin "baserom.gba", 0x129FD0, 0x0000014 - -gUnk_08129FE4:: @ 08129FE4 - .incbin "baserom.gba", 0x129FE4, 0x0000014 - -gUnk_08129FF8:: @ 08129FF8 - .incbin "baserom.gba", 0x129FF8, 0x000000C - -gUnk_0812A004:: @ 0812A004 - .incbin "baserom.gba", 0x12A004, 0x0000010 - -gUnk_0812A014:: @ 0812A014 - .incbin "baserom.gba", 0x12A014, 0x0000018 - -gUnk_0812A02C:: @ 0812A02C - .incbin "baserom.gba", 0x12A02C, 0x0000010 - -gUnk_0812A03C:: @ 0812A03C - .incbin "baserom.gba", 0x12A03C, 0x0000010 - -gUnk_0812A04C:: @ 0812A04C - .incbin "baserom.gba", 0x12A04C, 0x0000010 - -gUnk_0812A05C:: @ 0812A05C - .incbin "baserom.gba", 0x12A05C, 0x0000008 - -gUnk_0812A064:: @ 0812A064 - .incbin "baserom.gba", 0x12A064, 0x0000008 - -gUnk_0812A06C:: @ 0812A06C - .incbin "baserom.gba", 0x12A06C, 0x0000008 - -gUnk_0812A074:: @ 0812A074 - .incbin "baserom.gba", 0x12A074, 0x0000010 - -gUnk_0812A084:: @ 0812A084 - .incbin "baserom.gba", 0x12A084, 0x0000008 - -gUnk_0812A08C:: @ 0812A08C - .incbin "baserom.gba", 0x12A08C, 0x0000004 - -gUnk_0812A090:: @ 0812A090 - .incbin "baserom.gba", 0x12A090, 0x0000004 - -gUnk_0812A094:: @ 0812A094 - .incbin "baserom.gba", 0x12A094, 0x0000004 - -gUnk_0812A098:: @ 0812A098 - .incbin "baserom.gba", 0x12A098, 0x0000004 - -gUnk_0812A09C:: @ 0812A09C - .incbin "baserom.gba", 0x12A09C, 0x000000C - -gUnk_0812A0A8:: @ 0812A0A8 - .incbin "baserom.gba", 0x12A0A8, 0x000000C - -gUnk_0812A0B4:: @ 0812A0B4 - .incbin "baserom.gba", 0x12A0B4, 0x000000C - -gUnk_0812A0C0:: @ 0812A0C0 - .incbin "baserom.gba", 0x12A0C0, 0x000000C - -gUnk_0812A0CC:: @ 0812A0CC - .incbin "baserom.gba", 0x12A0CC, 0x0000048 - -gUnk_0812A114:: @ 0812A114 - .incbin "baserom.gba", 0x12A114, 0x0000048 - -gUnk_0812A15C:: @ 0812A15C - .incbin "baserom.gba", 0x12A15C, 0x0000048 - -gUnk_0812A1A4:: @ 0812A1A4 - .incbin "baserom.gba", 0x12A1A4, 0x0000048 - -gUnk_0812A1EC:: @ 0812A1EC - .incbin "baserom.gba", 0x12A1EC, 0x0000024 - -gUnk_0812A210:: @ 0812A210 - .incbin "baserom.gba", 0x12A210, 0x0000024 - -gUnk_0812A234:: @ 0812A234 - .incbin "baserom.gba", 0x12A234, 0x0000024 - -gUnk_0812A258:: @ 0812A258 - .incbin "baserom.gba", 0x12A258, 0x0000024 - -gUnk_0812A27C:: @ 0812A27C - .incbin "baserom.gba", 0x12A27C, 0x000003C - -gUnk_0812A2B8:: @ 0812A2B8 - .incbin "baserom.gba", 0x12A2B8, 0x000003C - -gUnk_0812A2F4:: @ 0812A2F4 - .incbin "baserom.gba", 0x12A2F4, 0x000003C - -gUnk_0812A330:: @ 0812A330 - .incbin "baserom.gba", 0x12A330, 0x000003C - -gUnk_0812A36C:: @ 0812A36C - .incbin "baserom.gba", 0x12A36C, 0x0000054 - -gUnk_0812A3C0:: @ 0812A3C0 - .incbin "baserom.gba", 0x12A3C0, 0x0000014 - -gUnk_0812A3D4:: @ 0812A3D4 - .incbin "baserom.gba", 0x12A3D4, 0x000000C - -gUnk_0812A3E0:: @ 0812A3E0 - .incbin "baserom.gba", 0x12A3E0, 0x0000014 - -gUnk_0812A3F4:: @ 0812A3F4 - .incbin "baserom.gba", 0x12A3F4, 0x0000008 - -gUnk_0812A3FC:: @ 0812A3FC - .incbin "baserom.gba", 0x12A3FC, 0x0000014 - -gUnk_0812A410:: @ 0812A410 - .incbin "baserom.gba", 0x12A410, 0x0000008 - -gUnk_0812A418:: @ 0812A418 - .incbin "baserom.gba", 0x12A418, 0x0000018 - -gUnk_0812A430:: @ 0812A430 - .incbin "baserom.gba", 0x12A430, 0x0000010 - -gUnk_0812A440:: @ 0812A440 - .incbin "baserom.gba", 0x12A440, 0x000000C - -gUnk_0812A44C:: @ 0812A44C - .incbin "baserom.gba", 0x12A44C, 0x0000021 - -gUnk_0812A46D:: @ 0812A46D - .incbin "baserom.gba", 0x12A46D, 0x000001B - -gUnk_0812A488:: @ 0812A488 - .incbin "baserom.gba", 0x12A488, 0x000000C - -gUnk_0812A494:: @ 0812A494 - .incbin "baserom.gba", 0x12A494, 0x0000014 - -gUnk_0812A4A8:: @ 0812A4A8 - .incbin "baserom.gba", 0x12A4A8, 0x0000020 - -gUnk_0812A4C8:: @ 0812A4C8 - .incbin "baserom.gba", 0x12A4C8, 0x0000014 - -gUnk_0812A4DC:: @ 0812A4DC - .incbin "baserom.gba", 0x12A4DC, 0x0000010 - -gUnk_0812A4EC:: @ 0812A4EC - .incbin "baserom.gba", 0x12A4EC, 0x00000A0 - -gUnk_0812A58C:: @ 0812A58C - .incbin "baserom.gba", 0x12A58C, 0x0000014 - -gUnk_0812A5A0:: @ 0812A5A0 - .incbin "baserom.gba", 0x12A5A0, 0x000000C - -gUnk_0812A5AC:: @ 0812A5AC - .incbin "baserom.gba", 0x12A5AC, 0x000000D - -gUnk_0812A5B9:: @ 0812A5B9 - .incbin "baserom.gba", 0x12A5B9, 0x000000D - -gUnk_0812A5C6:: @ 0812A5C6 - .incbin "baserom.gba", 0x12A5C6, 0x000000E - -gUnk_0812A5D4:: @ 0812A5D4 - .incbin "baserom.gba", 0x12A5D4, 0x0000014 - -gUnk_0812A5E8:: @ 0812A5E8 - .incbin "baserom.gba", 0x12A5E8, 0x000000C - -gUnk_0812A5F4:: @ 0812A5F4 - .incbin "baserom.gba", 0x12A5F4, 0x0000020 - -gUnk_0812A614:: @ 0812A614 - .incbin "baserom.gba", 0x12A614, 0x0000008 - -gUnk_0812A61C:: @ 0812A61C - .incbin "baserom.gba", 0x12A61C, 0x0000008 - -gUnk_0812A624:: @ 0812A624 - .incbin "baserom.gba", 0x12A624, 0x0000008 - -gUnk_0812A62C:: @ 0812A62C - .incbin "baserom.gba", 0x12A62C, 0x0000008 - -gUnk_0812A634:: @ 0812A634 - .incbin "baserom.gba", 0x12A634, 0x0000008 - -gUnk_0812A63C:: @ 0812A63C - .incbin "baserom.gba", 0x12A63C, 0x0000020 - -gUnk_0812A65C:: @ 0812A65C - .incbin "baserom.gba", 0x12A65C, 0x0000009 - -gUnk_0812A665:: @ 0812A665 - .incbin "baserom.gba", 0x12A665, 0x0000009 - -gUnk_0812A66E:: @ 0812A66E - .incbin "baserom.gba", 0x12A66E, 0x0000009 - -gUnk_0812A677:: @ 0812A677 - .incbin "baserom.gba", 0x12A677, 0x0000009 - -gUnk_0812A680:: @ 0812A680 - .incbin "baserom.gba", 0x12A680, 0x0000009 - -gUnk_0812A689:: @ 0812A689 - .incbin "baserom.gba", 0x12A689, 0x000000B - -gUnk_0812A694:: @ 0812A694 - .incbin "baserom.gba", 0x12A694, 0x0000020 - -gUnk_0812A6B4:: @ 0812A6B4 - .incbin "baserom.gba", 0x12A6B4, 0x0000008 - -gUnk_0812A6BC:: @ 0812A6BC - .incbin "baserom.gba", 0x12A6BC, 0x0000008 - -gUnk_0812A6C4:: @ 0812A6C4 - .incbin "baserom.gba", 0x12A6C4, 0x0000008 - -gUnk_0812A6CC:: @ 0812A6CC - .incbin "baserom.gba", 0x12A6CC, 0x0000008 - -gUnk_0812A6D4:: @ 0812A6D4 - .incbin "baserom.gba", 0x12A6D4, 0x000000E - -gUnk_0812A6E2:: @ 0812A6E2 - .incbin "baserom.gba", 0x12A6E2, 0x000000D - -gUnk_0812A6EF:: @ 0812A6EF - .incbin "baserom.gba", 0x12A6EF, 0x000000D - -gUnk_0812A6FC:: @ 0812A6FC - .incbin "baserom.gba", 0x12A6FC, 0x000000D - -gUnk_0812A709:: @ 0812A709 - .incbin "baserom.gba", 0x12A709, 0x000000D - -gUnk_0812A716:: @ 0812A716 - .incbin "baserom.gba", 0x12A716, 0x000000D - -gUnk_0812A723:: @ 0812A723 - .incbin "baserom.gba", 0x12A723, 0x000000D - -gUnk_0812A730:: @ 0812A730 - .incbin "baserom.gba", 0x12A730, 0x000000D - -gUnk_0812A73D:: @ 0812A73D - .incbin "baserom.gba", 0x12A73D, 0x000000D - -gUnk_0812A74A:: @ 0812A74A - .incbin "baserom.gba", 0x12A74A, 0x000000D - -gUnk_0812A757:: @ 0812A757 - .incbin "baserom.gba", 0x12A757, 0x000000D - -gUnk_0812A764:: @ 0812A764 - .incbin "baserom.gba", 0x12A764, 0x000000D - -gUnk_0812A771:: @ 0812A771 - .incbin "baserom.gba", 0x12A771, 0x000000D - -gUnk_0812A77E:: @ 0812A77E - .incbin "baserom.gba", 0x12A77E, 0x000000D - -gUnk_0812A78B:: @ 0812A78B - .incbin "baserom.gba", 0x12A78B, 0x000000D - -gUnk_0812A798:: @ 0812A798 - .incbin "baserom.gba", 0x12A798, 0x000003C - -gUnk_0812A7D4:: @ 0812A7D4 - .incbin "baserom.gba", 0x12A7D4, 0x0000018 - -gUnk_0812A7EC:: @ 0812A7EC - .incbin "baserom.gba", 0x12A7EC, 0x000000C - -gUnk_0812A7F8:: @ 0812A7F8 - .incbin "baserom.gba", 0x12A7F8, 0x0000008 - -gUnk_0812A800:: @ 0812A800 - .incbin "baserom.gba", 0x12A800, 0x0000008 - -gUnk_0812A808:: @ 0812A808 - .incbin "baserom.gba", 0x12A808, 0x000000C - -gUnk_0812A814:: @ 0812A814 - .incbin "baserom.gba", 0x12A814, 0x0000011 - -gUnk_0812A825:: @ 0812A825 - .incbin "baserom.gba", 0x12A825, 0x000001B - -gUnk_0812A840:: @ 0812A840 - .incbin "baserom.gba", 0x12A840, 0x000000C - -gUnk_0812A84C:: @ 0812A84C - .incbin "baserom.gba", 0x12A84C, 0x0000014 - -gUnk_0812A860:: @ 0812A860 - .incbin "baserom.gba", 0x12A860, 0x0000011 - -gUnk_0812A871:: @ 0812A871 - .incbin "baserom.gba", 0x12A871, 0x0000059 - -gUnk_0812A8CA:: @ 0812A8CA - .incbin "baserom.gba", 0x12A8CA, 0x0000061 - -gUnk_0812A92B:: @ 0812A92B - .incbin "baserom.gba", 0x12A92B, 0x0000015 - -gUnk_0812A940:: @ 0812A940 - .incbin "baserom.gba", 0x12A940, 0x0000014 - -gUnk_0812A954:: @ 0812A954 - .incbin "baserom.gba", 0x12A954, 0x0000014 - -gUnk_0812A968:: @ 0812A968 - .incbin "baserom.gba", 0x12A968, 0x0000014 - -gUnk_0812A97C:: @ 0812A97C - .incbin "baserom.gba", 0x12A97C, 0x0000006 - -gUnk_0812A982:: @ 0812A982 - .incbin "baserom.gba", 0x12A982, 0x0000008 - -gUnk_0812A98A:: @ 0812A98A - .incbin "baserom.gba", 0x12A98A, 0x000000A - -gUnk_0812A994:: @ 0812A994 - .incbin "baserom.gba", 0x12A994, 0x0000014 - -gUnk_0812A9A8:: @ 0812A9A8 - .incbin "baserom.gba", 0x12A9A8, 0x000000C - -gUnk_0812A9B4:: @ 0812A9B4 - .incbin "baserom.gba", 0x12A9B4, 0x0000004 - -gUnk_0812A9B8:: @ 0812A9B8 - .incbin "baserom.gba", 0x12A9B8, 0x0000002 - -gUnk_0812A9BA:: @ 0812A9BA - .incbin "baserom.gba", 0x12A9BA, 0x0000006 - -gUnk_0812A9C0:: @ 0812A9C0 - .incbin "baserom.gba", 0x12A9C0, 0x0000018 - -gUnk_0812A9D8:: @ 0812A9D8 - .incbin "baserom.gba", 0x12A9D8, 0x0000014 - -gUnk_0812A9EC:: @ 0812A9EC - .incbin "baserom.gba", 0x12A9EC, 0x0000010 - -gUnk_0812A9FC:: @ 0812A9FC - .incbin "baserom.gba", 0x12A9FC, 0x0000035 - -gUnk_0812AA31:: @ 0812AA31 - .incbin "baserom.gba", 0x12AA31, 0x000001F - -gUnk_0812AA50:: @ 0812AA50 - .incbin "baserom.gba", 0x12AA50, 0x000000C - -gUnk_0812AA5C:: @ 0812AA5C - .incbin "baserom.gba", 0x12AA5C, 0x0000018 - -gUnk_0812AA74:: @ 0812AA74 - .incbin "baserom.gba", 0x12AA74, 0x000000C - -gUnk_0812AA80:: @ 0812AA80 - .incbin "baserom.gba", 0x12AA80, 0x0000008 - -gUnk_0812AA88:: @ 0812AA88 - .incbin "baserom.gba", 0x12AA88, 0x0000009 - -gUnk_0812AA91:: @ 0812AA91 - .incbin "baserom.gba", 0x12AA91, 0x0000009 - -gUnk_0812AA9A:: @ 0812AA9A - .incbin "baserom.gba", 0x12AA9A, 0x0000012 - -gUnk_0812AAAC:: @ 0812AAAC - .incbin "baserom.gba", 0x12AAAC, 0x0000010 - -gUnk_0812AABC:: @ 0812AABC - .incbin "baserom.gba", 0x12AABC, 0x0000004 - -gUnk_0812AAC0:: @ 0812AAC0 - .incbin "baserom.gba", 0x12AAC0, 0x0000008 - -gUnk_0812AAC8:: @ 0812AAC8 - .incbin "baserom.gba", 0x12AAC8, 0x0000008 - -gUnk_0812AAD0:: @ 0812AAD0 - .incbin "baserom.gba", 0x12AAD0, 0x0000008 - -gUnk_0812AAD8:: @ 0812AAD8 - .incbin "baserom.gba", 0x12AAD8, 0x0000010 - -gUnk_0812AAE8:: @ 0812AAE8 - .incbin "baserom.gba", 0x12AAE8, 0x000019C - -gUnk_0812AC84:: @ 0812AC84 - .incbin "baserom.gba", 0x12AC84, 0x0000004 - -gUnk_0812AC88:: @ 0812AC88 - .incbin "baserom.gba", 0x12AC88, 0x000000C - -gUnk_0812AC94:: @ 0812AC94 - .incbin "baserom.gba", 0x12AC94, 0x0000010 - -gUnk_0812ACA4:: @ 0812ACA4 - .incbin "baserom.gba", 0x12ACA4, 0x000000C - -gUnk_0812ACB0:: @ 0812ACB0 - .incbin "baserom.gba", 0x12ACB0, 0x0000010 - -gUnk_0812ACC0:: @ 0812ACC0 - .incbin "baserom.gba", 0x12ACC0, 0x000000C - -gUnk_0812ACCC:: @ 0812ACCC - .incbin "baserom.gba", 0x12ACCC, 0x000000C - -gUnk_0812ACD8:: @ 0812ACD8 - .incbin "baserom.gba", 0x12ACD8, 0x000000C - -gUnk_0812ACE4:: @ 0812ACE4 - .incbin "baserom.gba", 0x12ACE4, 0x000000C - -gUnk_0812ACF0:: @ 0812ACF0 - .incbin "baserom.gba", 0x12ACF0, 0x0000010 - -gUnk_0812AD00:: @ 0812AD00 - .incbin "baserom.gba", 0x12AD00, 0x000000C - -gUnk_0812AD0C:: @ 0812AD0C - .incbin "baserom.gba", 0x12AD0C, 0x0000014 - -gUnk_0812AD20:: @ 0812AD20 - .incbin "baserom.gba", 0x12AD20, 0x0000010 - -gUnk_0812AD30:: @ 0812AD30 - .incbin "baserom.gba", 0x12AD30, 0x0000010 - -gUnk_0812AD40:: @ 0812AD40 - .incbin "baserom.gba", 0x12AD40, 0x0000014 - -gUnk_0812AD54:: @ 0812AD54 - .incbin "baserom.gba", 0x12AD54, 0x0000010 - -gUnk_0812AD64:: @ 0812AD64 - .incbin "baserom.gba", 0x12AD64, 0x000000C - -gUnk_0812AD70:: @ 0812AD70 - .incbin "baserom.gba", 0x12AD70, 0x000000C - -gUnk_0812AD7C:: @ 0812AD7C - .incbin "baserom.gba", 0x12AD7C, 0x0000010 - -gUnk_0812AD8C:: @ 0812AD8C - .incbin "baserom.gba", 0x12AD8C, 0x000000C - -gUnk_0812AD98:: @ 0812AD98 - .incbin "baserom.gba", 0x12AD98, 0x0000008 - -gUnk_0812ADA0:: @ 0812ADA0 - .incbin "baserom.gba", 0x12ADA0, 0x0000010 - -gUnk_0812ADB0:: @ 0812ADB0 - .incbin "baserom.gba", 0x12ADB0, 0x000000C - -gUnk_0812ADBC:: @ 0812ADBC - .incbin "baserom.gba", 0x12ADBC, 0x0000010 - -gUnk_0812ADCC:: @ 0812ADCC - .incbin "baserom.gba", 0x12ADCC, 0x0000010 - -gUnk_0812ADDC:: @ 0812ADDC - .incbin "baserom.gba", 0x12ADDC, 0x0000010 - -gUnk_0812ADEC:: @ 0812ADEC - .incbin "baserom.gba", 0x12ADEC, 0x0000010 - -gUnk_0812ADFC:: @ 0812ADFC - .incbin "baserom.gba", 0x12ADFC, 0x0000010 - -gUnk_0812AE0C:: @ 0812AE0C - .incbin "baserom.gba", 0x12AE0C, 0x0000008 - -gUnk_0812AE14:: @ 0812AE14 - .incbin "baserom.gba", 0x12AE14, 0x0000010 - -gUnk_0812AE24:: @ 0812AE24 - .incbin "baserom.gba", 0x12AE24, 0x0000014 - -gUnk_0812AE38:: @ 0812AE38 - .incbin "baserom.gba", 0x12AE38, 0x0000010 - -gUnk_0812AE48:: @ 0812AE48 - .incbin "baserom.gba", 0x12AE48, 0x0000014 - -gUnk_0812AE5C:: @ 0812AE5C - .incbin "baserom.gba", 0x12AE5C, 0x0000002 - -gUnk_0812AE5E:: @ 0812AE5E - .incbin "baserom.gba", 0x12AE5E, 0x000000E - -gUnk_0812AE6C:: @ 0812AE6C - .incbin "baserom.gba", 0x12AE6C, 0x0000010 - -gUnk_0812AE7C:: @ 0812AE7C - .incbin "baserom.gba", 0x12AE7C, 0x0000010 - -gUnk_0812AE8C:: @ 0812AE8C - .incbin "baserom.gba", 0x12AE8C, 0x0000014 - -gUnk_0812AEA0:: @ 0812AEA0 - .incbin "baserom.gba", 0x12AEA0, 0x0000014 - -gUnk_0812AEB4:: @ 0812AEB4 - .incbin "baserom.gba", 0x12AEB4, 0x0000014 - -gUnk_0812AEC8:: @ 0812AEC8 - .incbin "baserom.gba", 0x12AEC8, 0x0000014 - -gUnk_0812AEDC:: @ 0812AEDC - .incbin "baserom.gba", 0x12AEDC, 0x0000008 - -gUnk_0812AEE4:: @ 0812AEE4 - .incbin "baserom.gba", 0x12AEE4, 0x0000008 - -gUnk_0812AEEC:: @ 0812AEEC - .incbin "baserom.gba", 0x12AEEC, 0x0000008 - -gUnk_0812AEF4:: @ 0812AEF4 - .incbin "baserom.gba", 0x12AEF4, 0x0000010 - -gUnk_0812AF04:: @ 0812AF04 - .incbin "baserom.gba", 0x12AF04, 0x000000C - -gUnk_0812AF10:: @ 0812AF10 - .incbin "baserom.gba", 0x12AF10, 0x000000C - -gUnk_0812AF1C:: @ 0812AF1C - .incbin "baserom.gba", 0x12AF1C, 0x000000C - -gUnk_0812AF28:: @ 0812AF28 - .incbin "baserom.gba", 0x12AF28, 0x000000C - -gUnk_0812AF34:: @ 0812AF34 - .incbin "baserom.gba", 0x12AF34, 0x000000C - -gUnk_0812AF40:: @ 0812AF40 - .incbin "baserom.gba", 0x12AF40, 0x000000C - -gUnk_0812AF4C:: @ 0812AF4C - .incbin "baserom.gba", 0x12AF4C, 0x000000C - -gUnk_0812AF58:: @ 0812AF58 - .incbin "baserom.gba", 0x12AF58, 0x000000C - -gUnk_0812AF64:: @ 0812AF64 - .incbin "baserom.gba", 0x12AF64, 0x000000C - -gUnk_0812AF70:: @ 0812AF70 - .incbin "baserom.gba", 0x12AF70, 0x0000014 - -gUnk_0812AF84:: @ 0812AF84 - .incbin "baserom.gba", 0x12AF84, 0x0000010 - -gUnk_0812AF94:: @ 0812AF94 - .incbin "baserom.gba", 0x12AF94, 0x0000010 - -gUnk_0812AFA4:: @ 0812AFA4 - .incbin "baserom.gba", 0x12AFA4, 0x0000014 - -gUnk_0812AFB8:: @ 0812AFB8 - .incbin "baserom.gba", 0x12AFB8, 0x0000014 - -gUnk_0812AFCC:: @ 0812AFCC - .incbin "baserom.gba", 0x12AFCC, 0x0000014 - -gUnk_0812AFE0:: @ 0812AFE0 - .incbin "baserom.gba", 0x12AFE0, 0x0000014 - -gUnk_0812AFF4:: @ 0812AFF4 - .incbin "baserom.gba", 0x12AFF4, 0x0000010 - -gUnk_0812B004:: @ 0812B004 - .incbin "baserom.gba", 0x12B004, 0x000000C - -gUnk_0812B010:: @ 0812B010 - .incbin "baserom.gba", 0x12B010, 0x0000008 - -gUnk_0812B018:: @ 0812B018 - .incbin "baserom.gba", 0x12B018, 0x0000010 - -gUnk_0812B028:: @ 0812B028 - .incbin "baserom.gba", 0x12B028, 0x000000C - -gUnk_0812B034:: @ 0812B034 - .incbin "baserom.gba", 0x12B034, 0x0000010 - -gUnk_0812B044:: @ 0812B044 - .incbin "baserom.gba", 0x12B044, 0x000000C - -gUnk_0812B050:: @ 0812B050 - .incbin "baserom.gba", 0x12B050, 0x000000C - -gUnk_0812B05C:: @ 0812B05C - .incbin "baserom.gba", 0x12B05C, 0x0000010 - -gUnk_0812B06C:: @ 0812B06C - .incbin "baserom.gba", 0x12B06C, 0x0000010 - -gUnk_0812B07C:: @ 0812B07C - .incbin "baserom.gba", 0x12B07C, 0x0000010 - -gUnk_0812B08C:: @ 0812B08C - .incbin "baserom.gba", 0x12B08C, 0x000000C - -gUnk_0812B098:: @ 0812B098 - .incbin "baserom.gba", 0x12B098, 0x0000008 - -gUnk_0812B0A0:: @ 0812B0A0 - .incbin "baserom.gba", 0x12B0A0, 0x000000C - -gUnk_0812B0AC:: @ 0812B0AC - .incbin "baserom.gba", 0x12B0AC, 0x0000010 - -gUnk_0812B0BC:: @ 0812B0BC - .incbin "baserom.gba", 0x12B0BC, 0x0000010 - -gUnk_0812B0CC:: @ 0812B0CC - .incbin "baserom.gba", 0x12B0CC, 0x0000010 - -gUnk_0812B0DC:: @ 0812B0DC - .incbin "baserom.gba", 0x12B0DC, 0x0000010 - -gUnk_0812B0EC:: @ 0812B0EC - .incbin "baserom.gba", 0x12B0EC, 0x0000010 - -gUnk_0812B0FC:: @ 0812B0FC - .incbin "baserom.gba", 0x12B0FC, 0x0000008 - -gUnk_0812B104:: @ 0812B104 - .incbin "baserom.gba", 0x12B104, 0x000000C - -gUnk_0812B110:: @ 0812B110 - .incbin "baserom.gba", 0x12B110, 0x000000C - -gUnk_0812B11C:: @ 0812B11C - .incbin "baserom.gba", 0x12B11C, 0x0000008 - -gUnk_0812B124:: @ 0812B124 - .incbin "baserom.gba", 0x12B124, 0x0000014 - -gUnk_0812B138:: @ 0812B138 - .incbin "baserom.gba", 0x12B138, 0x000000C - -gUnk_0812B144:: @ 0812B144 - .incbin "baserom.gba", 0x12B144, 0x000000C - -gUnk_0812B150:: @ 0812B150 - .incbin "baserom.gba", 0x12B150, 0x000000C - -gUnk_0812B15C:: @ 0812B15C - .incbin "baserom.gba", 0x12B15C, 0x000000C - -gUnk_0812B168:: @ 0812B168 - .incbin "baserom.gba", 0x12B168, 0x000000C - -gUnk_0812B174:: @ 0812B174 - .incbin "baserom.gba", 0x12B174, 0x000000C - -gUnk_0812B180:: @ 0812B180 - .incbin "baserom.gba", 0x12B180, 0x000000C - -gUnk_0812B18C:: @ 0812B18C - .incbin "baserom.gba", 0x12B18C, 0x000000C - -gUnk_0812B198:: @ 0812B198 - .incbin "baserom.gba", 0x12B198, 0x000000C - -gUnk_0812B1A4:: @ 0812B1A4 - .incbin "baserom.gba", 0x12B1A4, 0x000000C - -gUnk_0812B1B0:: @ 0812B1B0 - .incbin "baserom.gba", 0x12B1B0, 0x000000C - -gUnk_0812B1BC:: @ 0812B1BC - .incbin "baserom.gba", 0x12B1BC, 0x000000C - -gUnk_0812B1C8:: @ 0812B1C8 - .incbin "baserom.gba", 0x12B1C8, 0x000000C - -gUnk_0812B1D4:: @ 0812B1D4 - .incbin "baserom.gba", 0x12B1D4, 0x000000C - -gUnk_0812B1E0:: @ 0812B1E0 - .incbin "baserom.gba", 0x12B1E0, 0x000000C - -gUnk_0812B1EC:: @ 0812B1EC - .incbin "baserom.gba", 0x12B1EC, 0x000000C - -gUnk_0812B1F8:: @ 0812B1F8 - .incbin "baserom.gba", 0x12B1F8, 0x000000C - -gUnk_0812B204:: @ 0812B204 - .incbin "baserom.gba", 0x12B204, 0x0000400 - -gUnk_0812B604:: @ 0812B604 - .incbin "baserom.gba", 0x12B604, 0x0000008 - -gUnk_0812B60C:: @ 0812B60C - .incbin "baserom.gba", 0x12B60C, 0x0000008 - -gUnk_0812B614:: @ 0812B614 - .incbin "baserom.gba", 0x12B614, 0x0000008 - -gUnk_0812B61C:: @ 0812B61C - .incbin "baserom.gba", 0x12B61C, 0x0000008 - -gUnk_0812B624:: @ 0812B624 - .incbin "baserom.gba", 0x12B624, 0x0000014 - -gUnk_0812B638:: @ 0812B638 - .incbin "baserom.gba", 0x12B638, 0x0000014 - -gUnk_0812B64C:: @ 0812B64C - .incbin "baserom.gba", 0x12B64C, 0x0000010 - -gUnk_0812B65C:: @ 0812B65C - .incbin "baserom.gba", 0x12B65C, 0x0000010 - -gUnk_0812B66C:: @ 0812B66C - .incbin "baserom.gba", 0x12B66C, 0x0000010 - -gUnk_0812B67C:: @ 0812B67C - .incbin "baserom.gba", 0x12B67C, 0x0000010 - -gUnk_0812B68C:: @ 0812B68C - .incbin "baserom.gba", 0x12B68C, 0x0000014 - -gUnk_0812B6A0:: @ 0812B6A0 - .incbin "baserom.gba", 0x12B6A0, 0x0000014 - -gUnk_0812B6B4:: @ 0812B6B4 - .incbin "baserom.gba", 0x12B6B4, 0x0000014 - -gUnk_0812B6C8:: @ 0812B6C8 - .incbin "baserom.gba", 0x12B6C8, 0x0000014 - -gUnk_0812B6DC:: @ 0812B6DC - .incbin "baserom.gba", 0x12B6DC, 0x0000014 - -gUnk_0812B6F0:: @ 0812B6F0 - .incbin "baserom.gba", 0x12B6F0, 0x0000010 - -gUnk_0812B700:: @ 0812B700 - .incbin "baserom.gba", 0x12B700, 0x0000014 - -gUnk_0812B714:: @ 0812B714 - .incbin "baserom.gba", 0x12B714, 0x0000010 - -gUnk_0812B724:: @ 0812B724 - .incbin "baserom.gba", 0x12B724, 0x0000010 - -gUnk_0812B734:: @ 0812B734 - .incbin "baserom.gba", 0x12B734, 0x0000010 - -gUnk_0812B744:: @ 0812B744 - .incbin "baserom.gba", 0x12B744, 0x0000010 - -gUnk_0812B754:: @ 0812B754 - .incbin "baserom.gba", 0x12B754, 0x0000010 - -gUnk_0812B764:: @ 0812B764 - .incbin "baserom.gba", 0x12B764, 0x0000010 - -gUnk_0812B774:: @ 0812B774 - .incbin "baserom.gba", 0x12B774, 0x0000010 - -gUnk_0812B784:: @ 0812B784 - .incbin "baserom.gba", 0x12B784, 0x0000010 - -gUnk_0812B794:: @ 0812B794 - .incbin "baserom.gba", 0x12B794, 0x0000010 - -gUnk_0812B7A4:: @ 0812B7A4 - .incbin "baserom.gba", 0x12B7A4, 0x0000010 - -gUnk_0812B7B4:: @ 0812B7B4 - .incbin "baserom.gba", 0x12B7B4, 0x0000010 - -gUnk_0812B7C4:: @ 0812B7C4 - .incbin "baserom.gba", 0x12B7C4, 0x0000010 - -gUnk_0812B7D4:: @ 0812B7D4 - .incbin "baserom.gba", 0x12B7D4, 0x0000010 - -gUnk_0812B7E4:: @ 0812B7E4 - .incbin "baserom.gba", 0x12B7E4, 0x0000010 - -gUnk_0812B7F4:: @ 0812B7F4 - .incbin "baserom.gba", 0x12B7F4, 0x0000010 - -gUnk_0812B804:: @ 0812B804 - .incbin "baserom.gba", 0x12B804, 0x0000010 - -gUnk_0812B814:: @ 0812B814 - .incbin "baserom.gba", 0x12B814, 0x000000C - -gUnk_0812B820:: @ 0812B820 - .incbin "baserom.gba", 0x12B820, 0x0000010 - -gUnk_0812B830:: @ 0812B830 - .incbin "baserom.gba", 0x12B830, 0x0000010 - -gUnk_0812B840:: @ 0812B840 - .incbin "baserom.gba", 0x12B840, 0x0000010 - -gUnk_0812B850:: @ 0812B850 - .incbin "baserom.gba", 0x12B850, 0x0000010 - -gUnk_0812B860:: @ 0812B860 - .incbin "baserom.gba", 0x12B860, 0x0000010 - -gUnk_0812B870:: @ 0812B870 - .incbin "baserom.gba", 0x12B870, 0x0000010 - -gUnk_0812B880:: @ 0812B880 - .incbin "baserom.gba", 0x12B880, 0x0000010 - -gUnk_0812B890:: @ 0812B890 - .incbin "baserom.gba", 0x12B890, 0x0000010 - -gUnk_0812B8A0:: @ 0812B8A0 - .incbin "baserom.gba", 0x12B8A0, 0x0000010 - -gUnk_0812B8B0:: @ 0812B8B0 - .incbin "baserom.gba", 0x12B8B0, 0x000000C - -gUnk_0812B8BC:: @ 0812B8BC - .incbin "baserom.gba", 0x12B8BC, 0x0000010 - -gUnk_0812B8CC:: @ 0812B8CC - .incbin "baserom.gba", 0x12B8CC, 0x0000010 - -gUnk_0812B8DC:: @ 0812B8DC - .incbin "baserom.gba", 0x12B8DC, 0x0000010 - -gUnk_0812B8EC:: @ 0812B8EC - .incbin "baserom.gba", 0x12B8EC, 0x0000010 - -gUnk_0812B8FC:: @ 0812B8FC - .incbin "baserom.gba", 0x12B8FC, 0x0000010 - -gUnk_0812B90C:: @ 0812B90C - .incbin "baserom.gba", 0x12B90C, 0x0000010 - -gUnk_0812B91C:: @ 0812B91C - .incbin "baserom.gba", 0x12B91C, 0x000000C - -gUnk_0812B928:: @ 0812B928 - .incbin "baserom.gba", 0x12B928, 0x000000C - -gUnk_0812B934:: @ 0812B934 - .incbin "baserom.gba", 0x12B934, 0x000000C - -gUnk_0812B940:: @ 0812B940 - .incbin "baserom.gba", 0x12B940, 0x0000018 - -gUnk_0812B958:: @ 0812B958 - .incbin "baserom.gba", 0x12B958, 0x0000010 - -gUnk_0812B968:: @ 0812B968 - .incbin "baserom.gba", 0x12B968, 0x0000010 - -gUnk_0812B978:: @ 0812B978 - .incbin "baserom.gba", 0x12B978, 0x0000010 - -gUnk_0812B988:: @ 0812B988 - .incbin "baserom.gba", 0x12B988, 0x0000010 - -gUnk_0812B998:: @ 0812B998 - .incbin "baserom.gba", 0x12B998, 0x0000010 - -gUnk_0812B9A8:: @ 0812B9A8 - .incbin "baserom.gba", 0x12B9A8, 0x0000010 - -gUnk_0812B9B8:: @ 0812B9B8 - .incbin "baserom.gba", 0x12B9B8, 0x0000010 - -gUnk_0812B9C8:: @ 0812B9C8 - .incbin "baserom.gba", 0x12B9C8, 0x0000010 - -gUnk_0812B9D8:: @ 0812B9D8 - .incbin "baserom.gba", 0x12B9D8, 0x0000010 - -gUnk_0812B9E8:: @ 0812B9E8 - .incbin "baserom.gba", 0x12B9E8, 0x0000010 - -gUnk_0812B9F8:: @ 0812B9F8 - .incbin "baserom.gba", 0x12B9F8, 0x0000010 - -gUnk_0812BA08:: @ 0812BA08 - .incbin "baserom.gba", 0x12BA08, 0x0000010 - -gUnk_0812BA18:: @ 0812BA18 - .incbin "baserom.gba", 0x12BA18, 0x0000010 - -gUnk_0812BA28:: @ 0812BA28 - .incbin "baserom.gba", 0x12BA28, 0x0000010 - -gUnk_0812BA38:: @ 0812BA38 - .incbin "baserom.gba", 0x12BA38, 0x0000010 - -gUnk_0812BA48:: @ 0812BA48 - .incbin "baserom.gba", 0x12BA48, 0x0000010 - -gUnk_0812BA58:: @ 0812BA58 - .incbin "baserom.gba", 0x12BA58, 0x0000010 - -gUnk_0812BA68:: @ 0812BA68 - .incbin "baserom.gba", 0x12BA68, 0x0000010 - -gUnk_0812BA78:: @ 0812BA78 - .incbin "baserom.gba", 0x12BA78, 0x0000010 - -gUnk_0812BA88:: @ 0812BA88 - .incbin "baserom.gba", 0x12BA88, 0x0000003 - -gUnk_0812BA8B:: @ 0812BA8B - .incbin "baserom.gba", 0x12BA8B, 0x0000009 - -gUnk_0812BA94:: @ 0812BA94 - .incbin "baserom.gba", 0x12BA94, 0x000000C - -gUnk_0812BAA0:: @ 0812BAA0 - .incbin "baserom.gba", 0x12BAA0, 0x000000C - -gUnk_0812BAAC:: @ 0812BAAC - .incbin "baserom.gba", 0x12BAAC, 0x000000C - -gUnk_0812BAB8:: @ 0812BAB8 - .incbin "baserom.gba", 0x12BAB8, 0x000000C - -gUnk_0812BAC4:: @ 0812BAC4 - .incbin "baserom.gba", 0x12BAC4, 0x0000010 - -gUnk_0812BAD4:: @ 0812BAD4 - .incbin "baserom.gba", 0x12BAD4, 0x0000010 - -gUnk_0812BAE4:: @ 0812BAE4 - .incbin "baserom.gba", 0x12BAE4, 0x0000018 - -gUnk_0812BAFC:: @ 0812BAFC - .incbin "baserom.gba", 0x12BAFC, 0x0000010 - -gUnk_0812BB0C:: @ 0812BB0C - .incbin "baserom.gba", 0x12BB0C, 0x0000010 - -gUnk_0812BB1C:: @ 0812BB1C - .incbin "baserom.gba", 0x12BB1C, 0x0000010 - -gUnk_0812BB2C:: @ 0812BB2C - .incbin "baserom.gba", 0x12BB2C, 0x0000010 - -gUnk_0812BB3C:: @ 0812BB3C - .incbin "baserom.gba", 0x12BB3C, 0x0000010 - -gUnk_0812BB4C:: @ 0812BB4C - .incbin "baserom.gba", 0x12BB4C, 0x0000010 - -gUnk_0812BB5C:: @ 0812BB5C - .incbin "baserom.gba", 0x12BB5C, 0x0000010 - -gUnk_0812BB6C:: @ 0812BB6C - .incbin "baserom.gba", 0x12BB6C, 0x0000010 - -gUnk_0812BB7C:: @ 0812BB7C - .incbin "baserom.gba", 0x12BB7C, 0x0000010 - -gUnk_0812BB8C:: @ 0812BB8C - .incbin "baserom.gba", 0x12BB8C, 0x0000010 - -gUnk_0812BB9C:: @ 0812BB9C - .incbin "baserom.gba", 0x12BB9C, 0x0000010 - -gUnk_0812BBAC:: @ 0812BBAC - .incbin "baserom.gba", 0x12BBAC, 0x0000014 - -gUnk_0812BBC0:: @ 0812BBC0 - .incbin "baserom.gba", 0x12BBC0, 0x0000014 - -gUnk_0812BBD4:: @ 0812BBD4 - .incbin "baserom.gba", 0x12BBD4, 0x0000010 - -gUnk_0812BBE4:: @ 0812BBE4 - .incbin "baserom.gba", 0x12BBE4, 0x0000010 - -gUnk_0812BBF4:: @ 0812BBF4 - .incbin "baserom.gba", 0x12BBF4, 0x0000014 - -gUnk_0812BC08:: @ 0812BC08 - .incbin "baserom.gba", 0x12BC08, 0x0000010 - -gUnk_0812BC18:: @ 0812BC18 - .incbin "baserom.gba", 0x12BC18, 0x0000010 - -gUnk_0812BC28:: @ 0812BC28 - .incbin "baserom.gba", 0x12BC28, 0x000000A - -gUnk_0812BC32:: @ 0812BC32 - .incbin "baserom.gba", 0x12BC32, 0x0000006 - -gUnk_0812BC38:: @ 0812BC38 - .incbin "baserom.gba", 0x12BC38, 0x0000010 - -gUnk_0812BC48:: @ 0812BC48 - .incbin "baserom.gba", 0x12BC48, 0x0000010 - -gUnk_0812BC58:: @ 0812BC58 - .incbin "baserom.gba", 0x12BC58, 0x0000010 - -gUnk_0812BC68:: @ 0812BC68 - .incbin "baserom.gba", 0x12BC68, 0x0000010 - -gUnk_0812BC78:: @ 0812BC78 - .incbin "baserom.gba", 0x12BC78, 0x0000010 - -gUnk_0812BC88:: @ 0812BC88 - .incbin "baserom.gba", 0x12BC88, 0x0000010 - -gUnk_0812BC98:: @ 0812BC98 - .incbin "baserom.gba", 0x12BC98, 0x0000010 - -gUnk_0812BCA8:: @ 0812BCA8 - .incbin "baserom.gba", 0x12BCA8, 0x0000010 - -gUnk_0812BCB8:: @ 0812BCB8 - .incbin "baserom.gba", 0x12BCB8, 0x0000010 - -gUnk_0812BCC8:: @ 0812BCC8 - .incbin "baserom.gba", 0x12BCC8, 0x0000010 - -gUnk_0812BCD8:: @ 0812BCD8 - .incbin "baserom.gba", 0x12BCD8, 0x0000010 - -gUnk_0812BCE8:: @ 0812BCE8 - .incbin "baserom.gba", 0x12BCE8, 0x0000010 - -gUnk_0812BCF8:: @ 0812BCF8 - .incbin "baserom.gba", 0x12BCF8, 0x0000014 - -gUnk_0812BD0C:: @ 0812BD0C - .incbin "baserom.gba", 0x12BD0C, 0x0000014 - -gUnk_0812BD20:: @ 0812BD20 - .incbin "baserom.gba", 0x12BD20, 0x0000010 - -gUnk_0812BD30:: @ 0812BD30 - .incbin "baserom.gba", 0x12BD30, 0x0000014 - -gUnk_0812BD44:: @ 0812BD44 - .incbin "baserom.gba", 0x12BD44, 0x0000014 - -gUnk_0812BD58:: @ 0812BD58 - .incbin "baserom.gba", 0x12BD58, 0x0000014 - -gUnk_0812BD6C:: @ 0812BD6C - .incbin "baserom.gba", 0x12BD6C, 0x0000014 - -gUnk_0812BD80:: @ 0812BD80 - .incbin "baserom.gba", 0x12BD80, 0x0000014 - -gUnk_0812BD94:: @ 0812BD94 - .incbin "baserom.gba", 0x12BD94, 0x0000014 - -gUnk_0812BDA8:: @ 0812BDA8 - .incbin "baserom.gba", 0x12BDA8, 0x0000014 - -gUnk_0812BDBC:: @ 0812BDBC - .incbin "baserom.gba", 0x12BDBC, 0x0000014 - -gUnk_0812BDD0:: @ 0812BDD0 - .incbin "baserom.gba", 0x12BDD0, 0x0000014 - -gUnk_0812BDE4:: @ 0812BDE4 - .incbin "baserom.gba", 0x12BDE4, 0x0000010 - -gUnk_0812BDF4:: @ 0812BDF4 - .incbin "baserom.gba", 0x12BDF4, 0x0000010 - -gUnk_0812BE04:: @ 0812BE04 - .incbin "baserom.gba", 0x12BE04, 0x0000010 - -gUnk_0812BE14:: @ 0812BE14 - .incbin "baserom.gba", 0x12BE14, 0x0000010 - -gUnk_0812BE24:: @ 0812BE24 - .incbin "baserom.gba", 0x12BE24, 0x0000010 - -gUnk_0812BE34:: @ 0812BE34 - .incbin "baserom.gba", 0x12BE34, 0x0000010 - -gUnk_0812BE44:: @ 0812BE44 - .incbin "baserom.gba", 0x12BE44, 0x0000010 - -gUnk_0812BE54:: @ 0812BE54 - .incbin "baserom.gba", 0x12BE54, 0x0000014 - -gUnk_0812BE68:: @ 0812BE68 - .incbin "baserom.gba", 0x12BE68, 0x0000014 - -gUnk_0812BE7C:: @ 0812BE7C - .incbin "baserom.gba", 0x12BE7C, 0x0000014 - -gUnk_0812BE90:: @ 0812BE90 - .incbin "baserom.gba", 0x12BE90, 0x0000014 - -gUnk_0812BEA4:: @ 0812BEA4 - .incbin "baserom.gba", 0x12BEA4, 0x0000014 - -gUnk_0812BEB8:: @ 0812BEB8 - .incbin "baserom.gba", 0x12BEB8, 0x0000014 - -gUnk_0812BECC:: @ 0812BECC - .incbin "baserom.gba", 0x12BECC, 0x0000014 - -gUnk_0812BEE0:: @ 0812BEE0 - .incbin "baserom.gba", 0x12BEE0, 0x0000014 - -gUnk_0812BEF4:: @ 0812BEF4 - .incbin "baserom.gba", 0x12BEF4, 0x0000014 - -gUnk_0812BF08:: @ 0812BF08 - .incbin "baserom.gba", 0x12BF08, 0x0000014 - -gUnk_0812BF1C:: @ 0812BF1C - .incbin "baserom.gba", 0x12BF1C, 0x0000014 - -gUnk_0812BF30:: @ 0812BF30 - .incbin "baserom.gba", 0x12BF30, 0x0000014 - -gUnk_0812BF44:: @ 0812BF44 - .incbin "baserom.gba", 0x12BF44, 0x0000010 - -gUnk_0812BF54:: @ 0812BF54 - .incbin "baserom.gba", 0x12BF54, 0x0000010 - -gUnk_0812BF64:: @ 0812BF64 - .incbin "baserom.gba", 0x12BF64, 0x0000010 - -gUnk_0812BF74:: @ 0812BF74 - .incbin "baserom.gba", 0x12BF74, 0x0000014 - -gUnk_0812BF88:: @ 0812BF88 - .incbin "baserom.gba", 0x12BF88, 0x0000014 - -gUnk_0812BF9C:: @ 0812BF9C - .incbin "baserom.gba", 0x12BF9C, 0x0000014 - -gUnk_0812BFB0:: @ 0812BFB0 - .incbin "baserom.gba", 0x12BFB0, 0x0000014 - -gUnk_0812BFC4:: @ 0812BFC4 - .incbin "baserom.gba", 0x12BFC4, 0x0000014 - -gUnk_0812BFD8:: @ 0812BFD8 - .incbin "baserom.gba", 0x12BFD8, 0x0000014 - -gUnk_0812BFEC:: @ 0812BFEC - .incbin "baserom.gba", 0x12BFEC, 0x0000014 - -gUnk_0812C000:: @ 0812C000 - .incbin "baserom.gba", 0x12C000, 0x0000014 - -gUnk_0812C014:: @ 0812C014 - .incbin "baserom.gba", 0x12C014, 0x0000014 - -gUnk_0812C028:: @ 0812C028 - .incbin "baserom.gba", 0x12C028, 0x0000014 - -gUnk_0812C03C:: @ 0812C03C - .incbin "baserom.gba", 0x12C03C, 0x0000014 - -gUnk_0812C050:: @ 0812C050 - .incbin "baserom.gba", 0x12C050, 0x0000014 - -gUnk_0812C064:: @ 0812C064 - .incbin "baserom.gba", 0x12C064, 0x0000014 - -gUnk_0812C078:: @ 0812C078 - .incbin "baserom.gba", 0x12C078, 0x0000010 - -gUnk_0812C088:: @ 0812C088 - .incbin "baserom.gba", 0x12C088, 0x000000C - -gUnk_0812C094:: @ 0812C094 - .incbin "baserom.gba", 0x12C094, 0x0000010 - -gUnk_0812C0A4:: @ 0812C0A4 - .incbin "baserom.gba", 0x12C0A4, 0x0000010 - -gUnk_0812C0B4:: @ 0812C0B4 - .incbin "baserom.gba", 0x12C0B4, 0x0000010 - -gUnk_0812C0C4:: @ 0812C0C4 - .incbin "baserom.gba", 0x12C0C4, 0x0000010 - -gUnk_0812C0D4:: @ 0812C0D4 - .incbin "baserom.gba", 0x12C0D4, 0x0000010 - -gUnk_0812C0E4:: @ 0812C0E4 - .incbin "baserom.gba", 0x12C0E4, 0x0000010 - -gUnk_0812C0F4:: @ 0812C0F4 - .incbin "baserom.gba", 0x12C0F4, 0x0000014 - -gUnk_0812C108:: @ 0812C108 - .incbin "baserom.gba", 0x12C108, 0x0000014 - -gUnk_0812C11C:: @ 0812C11C - .incbin "baserom.gba", 0x12C11C, 0x0000014 - -gUnk_0812C130:: @ 0812C130 - .incbin "baserom.gba", 0x12C130, 0x000000C - -gUnk_0812C13C:: @ 0812C13C - .incbin "baserom.gba", 0x12C13C, 0x000000C - -gUnk_0812C148:: @ 0812C148 - .incbin "baserom.gba", 0x12C148, 0x000000C - -gUnk_0812C154:: @ 0812C154 - .incbin "baserom.gba", 0x12C154, 0x000000C - -gUnk_0812C160:: @ 0812C160 - .incbin "baserom.gba", 0x12C160, 0x000000C - -gUnk_0812C16C:: @ 0812C16C - .incbin "baserom.gba", 0x12C16C, 0x0000010 - -gUnk_0812C17C:: @ 0812C17C - .incbin "baserom.gba", 0x12C17C, 0x0000010 - -gUnk_0812C18C:: @ 0812C18C - .incbin "baserom.gba", 0x12C18C, 0x000000C - -gUnk_0812C198:: @ 0812C198 - .incbin "baserom.gba", 0x12C198, 0x0000010 - -gUnk_0812C1A8:: @ 0812C1A8 - .incbin "baserom.gba", 0x12C1A8, 0x0000010 - -gUnk_0812C1B8:: @ 0812C1B8 - .incbin "baserom.gba", 0x12C1B8, 0x0000010 - -gUnk_0812C1C8:: @ 0812C1C8 - .incbin "baserom.gba", 0x12C1C8, 0x0000010 - -gUnk_0812C1D8:: @ 0812C1D8 - .incbin "baserom.gba", 0x12C1D8, 0x0000010 - -gUnk_0812C1E8:: @ 0812C1E8 - .incbin "baserom.gba", 0x12C1E8, 0x000000C - -gUnk_0812C1F4:: @ 0812C1F4 - .incbin "baserom.gba", 0x12C1F4, 0x000000C - -gUnk_0812C200:: @ 0812C200 - .incbin "baserom.gba", 0x12C200, 0x000000C - -gUnk_0812C20C:: @ 0812C20C - .incbin "baserom.gba", 0x12C20C, 0x000000C - -gUnk_0812C218:: @ 0812C218 - .incbin "baserom.gba", 0x12C218, 0x0000010 - -gUnk_0812C228:: @ 0812C228 - .incbin "baserom.gba", 0x12C228, 0x000000C - -gUnk_0812C234:: @ 0812C234 - .incbin "baserom.gba", 0x12C234, 0x000000C - -gUnk_0812C240:: @ 0812C240 - .incbin "baserom.gba", 0x12C240, 0x0000014 - -gUnk_0812C254:: @ 0812C254 - .incbin "baserom.gba", 0x12C254, 0x000000C - -gUnk_0812C260:: @ 0812C260 - .incbin "baserom.gba", 0x12C260, 0x000000C - -gUnk_0812C26C:: @ 0812C26C - .incbin "baserom.gba", 0x12C26C, 0x0000010 - -gUnk_0812C27C:: @ 0812C27C - .incbin "baserom.gba", 0x12C27C, 0x0000010 - -gUnk_0812C28C:: @ 0812C28C - .incbin "baserom.gba", 0x12C28C, 0x000000C - -gUnk_0812C298:: @ 0812C298 - .incbin "baserom.gba", 0x12C298, 0x0000004 - -gUnk_0812C29C:: @ 0812C29C - .incbin "baserom.gba", 0x12C29C, 0x0000010 - -gUnk_0812C2AC:: @ 0812C2AC - .incbin "baserom.gba", 0x12C2AC, 0x0000010 - -gUnk_0812C2BC:: @ 0812C2BC - .incbin "baserom.gba", 0x12C2BC, 0x0000010 - -gUnk_0812C2CC:: @ 0812C2CC - .incbin "baserom.gba", 0x12C2CC, 0x000000C - -gUnk_0812C2D8:: @ 0812C2D8 - .incbin "baserom.gba", 0x12C2D8, 0x000000C - -gUnk_0812C2E4:: @ 0812C2E4 - .incbin "baserom.gba", 0x12C2E4, 0x000000C - -gUnk_0812C2F0:: @ 0812C2F0 - .incbin "baserom.gba", 0x12C2F0, 0x000000C - -gUnk_0812C2FC:: @ 0812C2FC - .incbin "baserom.gba", 0x12C2FC, 0x000000C - -gUnk_0812C308:: @ 0812C308 - .incbin "baserom.gba", 0x12C308, 0x000000C - -gUnk_0812C314:: @ 0812C314 - .incbin "baserom.gba", 0x12C314, 0x0000010 - -gUnk_0812C324:: @ 0812C324 - .incbin "baserom.gba", 0x12C324, 0x0000010 - -gUnk_0812C334:: @ 0812C334 - .incbin "baserom.gba", 0x12C334, 0x0000010 - -gUnk_0812C344:: @ 0812C344 - .incbin "baserom.gba", 0x12C344, 0x0000010 - -gUnk_0812C354:: @ 0812C354 - .incbin "baserom.gba", 0x12C354, 0x0000010 - -gUnk_0812C364:: @ 0812C364 - .incbin "baserom.gba", 0x12C364, 0x000000C - -gUnk_0812C370:: @ 0812C370 - .incbin "baserom.gba", 0x12C370, 0x000000C - -gUnk_0812C37C:: @ 0812C37C - .incbin "baserom.gba", 0x12C37C, 0x000000C - -gUnk_0812C388:: @ 0812C388 - .incbin "baserom.gba", 0x12C388, 0x000000C - -gUnk_0812C394:: @ 0812C394 - .incbin "baserom.gba", 0x12C394, 0x000000C - -gUnk_0812C3A0:: @ 0812C3A0 - .incbin "baserom.gba", 0x12C3A0, 0x000000C - -gUnk_0812C3AC:: @ 0812C3AC - .incbin "baserom.gba", 0x12C3AC, 0x0000010 - -gUnk_0812C3BC:: @ 0812C3BC - .incbin "baserom.gba", 0x12C3BC, 0x0000010 - -gUnk_0812C3CC:: @ 0812C3CC - .incbin "baserom.gba", 0x12C3CC, 0x0000010 - -gUnk_0812C3DC:: @ 0812C3DC - .incbin "baserom.gba", 0x12C3DC, 0x0000010 - -gUnk_0812C3EC:: @ 0812C3EC - .incbin "baserom.gba", 0x12C3EC, 0x0000010 - -gUnk_0812C3FC:: @ 0812C3FC - .incbin "baserom.gba", 0x12C3FC, 0x0000014 - -gUnk_0812C410:: @ 0812C410 - .incbin "baserom.gba", 0x12C410, 0x0000010 - -gUnk_0812C420:: @ 0812C420 - .incbin "baserom.gba", 0x12C420, 0x0000014 - -gUnk_0812C434:: @ 0812C434 - .incbin "baserom.gba", 0x12C434, 0x0000010 - -gUnk_0812C444:: @ 0812C444 - .incbin "baserom.gba", 0x12C444, 0x0000010 - -gUnk_0812C454:: @ 0812C454 - .incbin "baserom.gba", 0x12C454, 0x0000010 - -gUnk_0812C464:: @ 0812C464 - .incbin "baserom.gba", 0x12C464, 0x0000010 - -gUnk_0812C474:: @ 0812C474 - .incbin "baserom.gba", 0x12C474, 0x0000010 - -gUnk_0812C484:: @ 0812C484 - .incbin "baserom.gba", 0x12C484, 0x0000010 - -gUnk_0812C494:: @ 0812C494 - .incbin "baserom.gba", 0x12C494, 0x0000010 - -gUnk_0812C4A4:: @ 0812C4A4 - .incbin "baserom.gba", 0x12C4A4, 0x0000010 - -gUnk_0812C4B4:: @ 0812C4B4 - .incbin "baserom.gba", 0x12C4B4, 0x0000014 - -gUnk_0812C4C8:: @ 0812C4C8 - .incbin "baserom.gba", 0x12C4C8, 0x0000014 - -gUnk_0812C4DC:: @ 0812C4DC - .incbin "baserom.gba", 0x12C4DC, 0x0000010 - -gUnk_0812C4EC:: @ 0812C4EC - .incbin "baserom.gba", 0x12C4EC, 0x0000010 - -gUnk_0812C4FC:: @ 0812C4FC - .incbin "baserom.gba", 0x12C4FC, 0x0000010 - -gUnk_0812C50C:: @ 0812C50C - .incbin "baserom.gba", 0x12C50C, 0x0000010 - -gUnk_0812C51C:: @ 0812C51C - .incbin "baserom.gba", 0x12C51C, 0x0000010 - -gUnk_0812C52C:: @ 0812C52C - .incbin "baserom.gba", 0x12C52C, 0x0000010 - -gUnk_0812C53C:: @ 0812C53C - .incbin "baserom.gba", 0x12C53C, 0x0000010 - -gUnk_0812C54C:: @ 0812C54C - .incbin "baserom.gba", 0x12C54C, 0x0000014 - -gUnk_0812C560:: @ 0812C560 - .incbin "baserom.gba", 0x12C560, 0x0000010 - -gUnk_0812C570:: @ 0812C570 - .incbin "baserom.gba", 0x12C570, 0x0000010 - -gUnk_0812C580:: @ 0812C580 - .incbin "baserom.gba", 0x12C580, 0x0000010 - -gUnk_0812C590:: @ 0812C590 - .incbin "baserom.gba", 0x12C590, 0x0000010 - -gUnk_0812C5A0:: @ 0812C5A0 - .incbin "baserom.gba", 0x12C5A0, 0x0000010 - -gUnk_0812C5B0:: @ 0812C5B0 - .incbin "baserom.gba", 0x12C5B0, 0x0000010 - -gUnk_0812C5C0:: @ 0812C5C0 - .incbin "baserom.gba", 0x12C5C0, 0x0000010 - -gUnk_0812C5D0:: @ 0812C5D0 - .incbin "baserom.gba", 0x12C5D0, 0x0000010 - -gUnk_0812C5E0:: @ 0812C5E0 - .incbin "baserom.gba", 0x12C5E0, 0x0000010 - -gUnk_0812C5F0:: @ 0812C5F0 - .incbin "baserom.gba", 0x12C5F0, 0x00000C8 - -gUnk_0812C6B8:: @ 0812C6B8 - .incbin "baserom.gba", 0x12C6B8, 0x000029C - -gUnk_0812C954:: @ 0812C954 - .incbin "baserom.gba", 0x12C954, 0x0000008 - -gUnk_0812C95C:: @ 0812C95C - .incbin "baserom.gba", 0x12C95C, 0x0000008 - -gUnk_0812C964:: @ 0812C964 - .incbin "baserom.gba", 0x12C964, 0x0000008 - -gUnk_0812C96C:: @ 0812C96C - .incbin "baserom.gba", 0x12C96C, 0x0000008 - -gUnk_0812C974:: @ 0812C974 - .incbin "baserom.gba", 0x12C974, 0x0000008 - -gUnk_0812C97C:: @ 0812C97C - .incbin "baserom.gba", 0x12C97C, 0x0000010 - -gUnk_0812C98C:: @ 0812C98C - .incbin "baserom.gba", 0x12C98C, 0x0000010 - -gUnk_0812C99C:: @ 0812C99C - .incbin "baserom.gba", 0x12C99C, 0x0000010 - -gUnk_0812C9AC:: @ 0812C9AC - .incbin "baserom.gba", 0x12C9AC, 0x0000010 - -gUnk_0812C9BC:: @ 0812C9BC - .incbin "baserom.gba", 0x12C9BC, 0x0000010 - -gUnk_0812C9CC:: @ 0812C9CC - .incbin "baserom.gba", 0x12C9CC, 0x0000010 - -gUnk_0812C9DC:: @ 0812C9DC - .incbin "baserom.gba", 0x12C9DC, 0x0000010 - -gUnk_0812C9EC:: @ 0812C9EC - .incbin "baserom.gba", 0x12C9EC, 0x0000010 - -gUnk_0812C9FC:: @ 0812C9FC - .incbin "baserom.gba", 0x12C9FC, 0x0000010 - -gUnk_0812CA0C:: @ 0812CA0C - .incbin "baserom.gba", 0x12CA0C, 0x0000010 - -gUnk_0812CA1C:: @ 0812CA1C - .incbin "baserom.gba", 0x12CA1C, 0x0000010 - -gUnk_0812CA2C:: @ 0812CA2C - .incbin "baserom.gba", 0x12CA2C, 0x0000010 - -gUnk_0812CA3C:: @ 0812CA3C - .incbin "baserom.gba", 0x12CA3C, 0x0000014 - -gUnk_0812CA50:: @ 0812CA50 - .incbin "baserom.gba", 0x12CA50, 0x0000014 - -gUnk_0812CA64:: @ 0812CA64 - .incbin "baserom.gba", 0x12CA64, 0x0000014 - -gUnk_0812CA78:: @ 0812CA78 - .incbin "baserom.gba", 0x12CA78, 0x0000014 - -gUnk_0812CA8C:: @ 0812CA8C - .incbin "baserom.gba", 0x12CA8C, 0x0000014 - -gUnk_0812CAA0:: @ 0812CAA0 - .incbin "baserom.gba", 0x12CAA0, 0x0000014 - -gUnk_0812CAB4:: @ 0812CAB4 - .incbin "baserom.gba", 0x12CAB4, 0x0000014 - -gUnk_0812CAC8:: @ 0812CAC8 - .incbin "baserom.gba", 0x12CAC8, 0x0000014 - -gUnk_0812CADC:: @ 0812CADC - .incbin "baserom.gba", 0x12CADC, 0x0000014 - -gUnk_0812CAF0:: @ 0812CAF0 - .incbin "baserom.gba", 0x12CAF0, 0x0000014 - -gUnk_0812CB04:: @ 0812CB04 - .incbin "baserom.gba", 0x12CB04, 0x0000018 - -gUnk_0812CB1C:: @ 0812CB1C - .incbin "baserom.gba", 0x12CB1C, 0x0000014 - -gUnk_0812CB30:: @ 0812CB30 - .incbin "baserom.gba", 0x12CB30, 0x0000014 - -gUnk_0812CB44:: @ 0812CB44 - .incbin "baserom.gba", 0x12CB44, 0x0000014 - -gUnk_0812CB58:: @ 0812CB58 - .incbin "baserom.gba", 0x12CB58, 0x0000014 - -gUnk_0812CB6C:: @ 0812CB6C - .incbin "baserom.gba", 0x12CB6C, 0x0000014 - -gUnk_0812CB80:: @ 0812CB80 - .incbin "baserom.gba", 0x12CB80, 0x0000010 - -gUnk_0812CB90:: @ 0812CB90 - .incbin "baserom.gba", 0x12CB90, 0x0000010 - -gUnk_0812CBA0:: @ 0812CBA0 - .incbin "baserom.gba", 0x12CBA0, 0x0000014 - -gUnk_0812CBB4:: @ 0812CBB4 - .incbin "baserom.gba", 0x12CBB4, 0x000000C - -gUnk_0812CBC0:: @ 0812CBC0 - .incbin "baserom.gba", 0x12CBC0, 0x0000014 - -gUnk_0812CBD4:: @ 0812CBD4 - .incbin "baserom.gba", 0x12CBD4, 0x000000C - -gUnk_0812CBE0:: @ 0812CBE0 - .incbin "baserom.gba", 0x12CBE0, 0x0000010 - -gUnk_0812CBF0:: @ 0812CBF0 - .incbin "baserom.gba", 0x12CBF0, 0x0000010 - -gUnk_0812CC00:: @ 0812CC00 - .incbin "baserom.gba", 0x12CC00, 0x0000010 - -gUnk_0812CC10:: @ 0812CC10 - .incbin "baserom.gba", 0x12CC10, 0x0000010 - -gUnk_0812CC20:: @ 0812CC20 - .incbin "baserom.gba", 0x12CC20, 0x0000010 - -gUnk_0812CC30:: @ 0812CC30 - .incbin "baserom.gba", 0x12CC30, 0x0000010 - -gUnk_0812CC40:: @ 0812CC40 - .incbin "baserom.gba", 0x12CC40, 0x0000014 - -gUnk_0812CC54:: @ 0812CC54 - .incbin "baserom.gba", 0x12CC54, 0x0000010 - -gUnk_0812CC64:: @ 0812CC64 - .incbin "baserom.gba", 0x12CC64, 0x0000010 - -gUnk_0812CC74:: @ 0812CC74 - .incbin "baserom.gba", 0x12CC74, 0x0000010 - -gUnk_0812CC84:: @ 0812CC84 - .incbin "baserom.gba", 0x12CC84, 0x0000010 - -gUnk_0812CC94:: @ 0812CC94 - .incbin "baserom.gba", 0x12CC94, 0x0000010 - -gUnk_0812CCA4:: @ 0812CCA4 - .incbin "baserom.gba", 0x12CCA4, 0x0000010 - -gUnk_0812CCB4:: @ 0812CCB4 - .incbin "baserom.gba", 0x12CCB4, 0x0000010 - -gUnk_0812CCC4:: @ 0812CCC4 - .incbin "baserom.gba", 0x12CCC4, 0x0000010 - -gUnk_0812CCD4:: @ 0812CCD4 - .incbin "baserom.gba", 0x12CCD4, 0x0000014 - -gUnk_0812CCE8:: @ 0812CCE8 - .incbin "baserom.gba", 0x12CCE8, 0x0000014 - -gUnk_0812CCFC:: @ 0812CCFC - .incbin "baserom.gba", 0x12CCFC, 0x000000C - -gUnk_0812CD08:: @ 0812CD08 - .incbin "baserom.gba", 0x12CD08, 0x000000C - -gUnk_0812CD14:: @ 0812CD14 - .incbin "baserom.gba", 0x12CD14, 0x000000C - -gUnk_0812CD20:: @ 0812CD20 - .incbin "baserom.gba", 0x12CD20, 0x000000C - -gUnk_0812CD2C:: @ 0812CD2C - .incbin "baserom.gba", 0x12CD2C, 0x000000C - -gUnk_0812CD38:: @ 0812CD38 - .incbin "baserom.gba", 0x12CD38, 0x0000014 - -gUnk_0812CD4C:: @ 0812CD4C - .incbin "baserom.gba", 0x12CD4C, 0x0000014 - -gUnk_0812CD60:: @ 0812CD60 - .incbin "baserom.gba", 0x12CD60, 0x0000010 - -gUnk_0812CD70:: @ 0812CD70 - .incbin "baserom.gba", 0x12CD70, 0x0000010 - -gUnk_0812CD80:: @ 0812CD80 - .incbin "baserom.gba", 0x12CD80, 0x0000014 - -gUnk_0812CD94:: @ 0812CD94 - .incbin "baserom.gba", 0x12CD94, 0x0000010 - -gUnk_0812CDA4:: @ 0812CDA4 - .incbin "baserom.gba", 0x12CDA4, 0x0000014 - -gUnk_0812CDB8:: @ 0812CDB8 - .incbin "baserom.gba", 0x12CDB8, 0x0000010 - -gUnk_0812CDC8:: @ 0812CDC8 - .incbin "baserom.gba", 0x12CDC8, 0x0000014 - -gUnk_0812CDDC:: @ 0812CDDC - .incbin "baserom.gba", 0x12CDDC, 0x0000010 - -gUnk_0812CDEC:: @ 0812CDEC - .incbin "baserom.gba", 0x12CDEC, 0x0000018 - -gUnk_0812CE04:: @ 0812CE04 - .incbin "baserom.gba", 0x12CE04, 0x0000018 - -gUnk_0812CE1C:: @ 0812CE1C - .incbin "baserom.gba", 0x12CE1C, 0x0000010 - -gUnk_0812CE2C:: @ 0812CE2C - .incbin "baserom.gba", 0x12CE2C, 0x0000010 - -gUnk_0812CE3C:: @ 0812CE3C - .incbin "baserom.gba", 0x12CE3C, 0x0000010 - -gUnk_0812CE4C:: @ 0812CE4C - .incbin "baserom.gba", 0x12CE4C, 0x0000010 - -gUnk_0812CE5C:: @ 0812CE5C - .incbin "baserom.gba", 0x12CE5C, 0x0000010 - -gUnk_0812CE6C:: @ 0812CE6C - .incbin "baserom.gba", 0x12CE6C, 0x0000010 - -gUnk_0812CE7C:: @ 0812CE7C - .incbin "baserom.gba", 0x12CE7C, 0x0000010 - -gUnk_0812CE8C:: @ 0812CE8C - .incbin "baserom.gba", 0x12CE8C, 0x0000010 - -gUnk_0812CE9C:: @ 0812CE9C - .incbin "baserom.gba", 0x12CE9C, 0x0000010 - -gUnk_0812CEAC:: @ 0812CEAC - .incbin "baserom.gba", 0x12CEAC, 0x0000010 - -gUnk_0812CEBC:: @ 0812CEBC - .incbin "baserom.gba", 0x12CEBC, 0x0000010 - -gUnk_0812CECC:: @ 0812CECC - .incbin "baserom.gba", 0x12CECC, 0x0000010 - -gUnk_0812CEDC:: @ 0812CEDC - .incbin "baserom.gba", 0x12CEDC, 0x0000010 - -gUnk_0812CEEC:: @ 0812CEEC - .incbin "baserom.gba", 0x12CEEC, 0x000000C - -gUnk_0812CEF8:: @ 0812CEF8 - .incbin "baserom.gba", 0x12CEF8, 0x000000C - -gUnk_0812CF04:: @ 0812CF04 - .incbin "baserom.gba", 0x12CF04, 0x000000C - -gUnk_0812CF10:: @ 0812CF10 - .incbin "baserom.gba", 0x12CF10, 0x000000C - -gUnk_0812CF1C:: @ 0812CF1C - .incbin "baserom.gba", 0x12CF1C, 0x000000C - -gUnk_0812CF28:: @ 0812CF28 - .incbin "baserom.gba", 0x12CF28, 0x000000C - -gUnk_0812CF34:: @ 0812CF34 - .incbin "baserom.gba", 0x12CF34, 0x000000C - -gUnk_0812CF40:: @ 0812CF40 - .incbin "baserom.gba", 0x12CF40, 0x000000C - -gUnk_0812CF4C:: @ 0812CF4C - .incbin "baserom.gba", 0x12CF4C, 0x0000018 - -gUnk_0812CF64:: @ 0812CF64 - .incbin "baserom.gba", 0x12CF64, 0x0000010 - -gUnk_0812CF74:: @ 0812CF74 - .incbin "baserom.gba", 0x12CF74, 0x0000018 - -gUnk_0812CF8C:: @ 0812CF8C - .incbin "baserom.gba", 0x12CF8C, 0x0000014 - -gUnk_0812CFA0:: @ 0812CFA0 - .incbin "baserom.gba", 0x12CFA0, 0x0000018 - -gUnk_0812CFB8:: @ 0812CFB8 - .incbin "baserom.gba", 0x12CFB8, 0x0000010 - -gUnk_0812CFC8:: @ 0812CFC8 - .incbin "baserom.gba", 0x12CFC8, 0x0000014 - -gUnk_0812CFDC:: @ 0812CFDC - .incbin "baserom.gba", 0x12CFDC, 0x0000014 - -gUnk_0812CFF0:: @ 0812CFF0 - .incbin "baserom.gba", 0x12CFF0, 0x0000010 - -gUnk_0812D000:: @ 0812D000 - .incbin "baserom.gba", 0x12D000, 0x0000014 - -gUnk_0812D014:: @ 0812D014 - .incbin "baserom.gba", 0x12D014, 0x0000010 - -gUnk_0812D024:: @ 0812D024 - .incbin "baserom.gba", 0x12D024, 0x0000010 - -gUnk_0812D034:: @ 0812D034 - .incbin "baserom.gba", 0x12D034, 0x0000010 - -gUnk_0812D044:: @ 0812D044 - .incbin "baserom.gba", 0x12D044, 0x0000014 - -gUnk_0812D058:: @ 0812D058 - .incbin "baserom.gba", 0x12D058, 0x0000018 - -gUnk_0812D070:: @ 0812D070 - .incbin "baserom.gba", 0x12D070, 0x0000014 - -gUnk_0812D084:: @ 0812D084 - .incbin "baserom.gba", 0x12D084, 0x0000014 - -gUnk_0812D098:: @ 0812D098 - .incbin "baserom.gba", 0x12D098, 0x0000010 - -gUnk_0812D0A8:: @ 0812D0A8 - .incbin "baserom.gba", 0x12D0A8, 0x0000014 - -gUnk_0812D0BC:: @ 0812D0BC - .incbin "baserom.gba", 0x12D0BC, 0x0000010 - -gUnk_0812D0CC:: @ 0812D0CC - .incbin "baserom.gba", 0x12D0CC, 0x0000014 - -gUnk_0812D0E0:: @ 0812D0E0 - .incbin "baserom.gba", 0x12D0E0, 0x0000010 - -gUnk_0812D0F0:: @ 0812D0F0 - .incbin "baserom.gba", 0x12D0F0, 0x0000010 - -gUnk_0812D100:: @ 0812D100 - .incbin "baserom.gba", 0x12D100, 0x000000C - -gUnk_0812D10C:: @ 0812D10C - .incbin "baserom.gba", 0x12D10C, 0x0000010 - -gUnk_0812D11C:: @ 0812D11C - .incbin "baserom.gba", 0x12D11C, 0x0000010 - -gUnk_0812D12C:: @ 0812D12C - .incbin "baserom.gba", 0x12D12C, 0x0000010 - -gUnk_0812D13C:: @ 0812D13C - .incbin "baserom.gba", 0x12D13C, 0x000000C - -gUnk_0812D148:: @ 0812D148 - .incbin "baserom.gba", 0x12D148, 0x000000C - -gUnk_0812D154:: @ 0812D154 - .incbin "baserom.gba", 0x12D154, 0x0000010 - -gUnk_0812D164:: @ 0812D164 - .incbin "baserom.gba", 0x12D164, 0x0000010 - -gUnk_0812D174:: @ 0812D174 - .incbin "baserom.gba", 0x12D174, 0x0000010 - -gUnk_0812D184:: @ 0812D184 - .incbin "baserom.gba", 0x12D184, 0x0000010 - -gUnk_0812D194:: @ 0812D194 - .incbin "baserom.gba", 0x12D194, 0x0000010 - -gUnk_0812D1A4:: @ 0812D1A4 - .incbin "baserom.gba", 0x12D1A4, 0x0000010 - -gUnk_0812D1B4:: @ 0812D1B4 - .incbin "baserom.gba", 0x12D1B4, 0x0000010 - -gUnk_0812D1C4:: @ 0812D1C4 - .incbin "baserom.gba", 0x12D1C4, 0x0000010 - -gUnk_0812D1D4:: @ 0812D1D4 - .incbin "baserom.gba", 0x12D1D4, 0x0000010 - -gUnk_0812D1E4:: @ 0812D1E4 - .incbin "baserom.gba", 0x12D1E4, 0x0000010 - -gUnk_0812D1F4:: @ 0812D1F4 - .incbin "baserom.gba", 0x12D1F4, 0x0000010 - -gUnk_0812D204:: @ 0812D204 - .incbin "baserom.gba", 0x12D204, 0x0000010 - -gUnk_0812D214:: @ 0812D214 - .incbin "baserom.gba", 0x12D214, 0x0000010 - -gUnk_0812D224:: @ 0812D224 - .incbin "baserom.gba", 0x12D224, 0x0000010 - -gUnk_0812D234:: @ 0812D234 - .incbin "baserom.gba", 0x12D234, 0x0000010 - -gUnk_0812D244:: @ 0812D244 - .incbin "baserom.gba", 0x12D244, 0x0000010 - -gUnk_0812D254:: @ 0812D254 - .incbin "baserom.gba", 0x12D254, 0x0000010 - -gUnk_0812D264:: @ 0812D264 - .incbin "baserom.gba", 0x12D264, 0x0000010 - -gUnk_0812D274:: @ 0812D274 - .incbin "baserom.gba", 0x12D274, 0x0000010 - -gUnk_0812D284:: @ 0812D284 - .incbin "baserom.gba", 0x12D284, 0x000000C - -gUnk_0812D290:: @ 0812D290 - .incbin "baserom.gba", 0x12D290, 0x000000C - -gUnk_0812D29C:: @ 0812D29C - .incbin "baserom.gba", 0x12D29C, 0x000000C - -gUnk_0812D2A8:: @ 0812D2A8 - .incbin "baserom.gba", 0x12D2A8, 0x000000C - -gUnk_0812D2B4:: @ 0812D2B4 - .incbin "baserom.gba", 0x12D2B4, 0x000000C - -gUnk_0812D2C0:: @ 0812D2C0 - .incbin "baserom.gba", 0x12D2C0, 0x000000C - -gUnk_0812D2CC:: @ 0812D2CC - .incbin "baserom.gba", 0x12D2CC, 0x000000C - -gUnk_0812D2D8:: @ 0812D2D8 - .incbin "baserom.gba", 0x12D2D8, 0x000000C - -gUnk_0812D2E4:: @ 0812D2E4 - .incbin "baserom.gba", 0x12D2E4, 0x000000C - -gUnk_0812D2F0:: @ 0812D2F0 - .incbin "baserom.gba", 0x12D2F0, 0x000000C - -gUnk_0812D2FC:: @ 0812D2FC - .incbin "baserom.gba", 0x12D2FC, 0x000000C - -gUnk_0812D308:: @ 0812D308 - .incbin "baserom.gba", 0x12D308, 0x000000C - -gUnk_0812D314:: @ 0812D314 - .incbin "baserom.gba", 0x12D314, 0x000000C - -gUnk_0812D320:: @ 0812D320 - .incbin "baserom.gba", 0x12D320, 0x000000C - -gUnk_0812D32C:: @ 0812D32C - .incbin "baserom.gba", 0x12D32C, 0x000000C - -gUnk_0812D338:: @ 0812D338 - .incbin "baserom.gba", 0x12D338, 0x000000C - -gUnk_0812D344:: @ 0812D344 - .incbin "baserom.gba", 0x12D344, 0x000000C - -gUnk_0812D350:: @ 0812D350 - .incbin "baserom.gba", 0x12D350, 0x000000C - -gUnk_0812D35C:: @ 0812D35C - .incbin "baserom.gba", 0x12D35C, 0x000000C - -gUnk_0812D368:: @ 0812D368 - .incbin "baserom.gba", 0x12D368, 0x000000C - -gUnk_0812D374:: @ 0812D374 - .incbin "baserom.gba", 0x12D374, 0x000000C - -gUnk_0812D380:: @ 0812D380 - .incbin "baserom.gba", 0x12D380, 0x000000C - -gUnk_0812D38C:: @ 0812D38C - .incbin "baserom.gba", 0x12D38C, 0x000000C - -gUnk_0812D398:: @ 0812D398 - .incbin "baserom.gba", 0x12D398, 0x000000C - -gUnk_0812D3A4:: @ 0812D3A4 - .incbin "baserom.gba", 0x12D3A4, 0x000000C - -gUnk_0812D3B0:: @ 0812D3B0 - .incbin "baserom.gba", 0x12D3B0, 0x000000C - -gUnk_0812D3BC:: @ 0812D3BC - .incbin "baserom.gba", 0x12D3BC, 0x000000C - -gUnk_0812D3C8:: @ 0812D3C8 - .incbin "baserom.gba", 0x12D3C8, 0x0000014 - -gUnk_0812D3DC:: @ 0812D3DC - .incbin "baserom.gba", 0x12D3DC, 0x0000014 - -gUnk_0812D3F0:: @ 0812D3F0 - .incbin "baserom.gba", 0x12D3F0, 0x0000018 - -gUnk_0812D408:: @ 0812D408 - .incbin "baserom.gba", 0x12D408, 0x0000014 - -gUnk_0812D41C:: @ 0812D41C - .incbin "baserom.gba", 0x12D41C, 0x0000010 - -gUnk_0812D42C:: @ 0812D42C - .incbin "baserom.gba", 0x12D42C, 0x0000010 - -gUnk_0812D43C:: @ 0812D43C - .incbin "baserom.gba", 0x12D43C, 0x0000010 - -gUnk_0812D44C:: @ 0812D44C - .incbin "baserom.gba", 0x12D44C, 0x0000010 - -gUnk_0812D45C:: @ 0812D45C - .incbin "baserom.gba", 0x12D45C, 0x0000010 - -gUnk_0812D46C:: @ 0812D46C - .incbin "baserom.gba", 0x12D46C, 0x0000010 - -gUnk_0812D47C:: @ 0812D47C - .incbin "baserom.gba", 0x12D47C, 0x0000010 - -gUnk_0812D48C:: @ 0812D48C - .incbin "baserom.gba", 0x12D48C, 0x0000010 - -gUnk_0812D49C:: @ 0812D49C - .incbin "baserom.gba", 0x12D49C, 0x0000014 - -gUnk_0812D4B0:: @ 0812D4B0 - .incbin "baserom.gba", 0x12D4B0, 0x0000014 - -gUnk_0812D4C4:: @ 0812D4C4 - .incbin "baserom.gba", 0x12D4C4, 0x0000014 - -gUnk_0812D4D8:: @ 0812D4D8 - .incbin "baserom.gba", 0x12D4D8, 0x0000014 - -gUnk_0812D4EC:: @ 0812D4EC - .incbin "baserom.gba", 0x12D4EC, 0x0000014 - -gUnk_0812D500:: @ 0812D500 - .incbin "baserom.gba", 0x12D500, 0x000000C - -gUnk_0812D50C:: @ 0812D50C - .incbin "baserom.gba", 0x12D50C, 0x000000C - -gUnk_0812D518:: @ 0812D518 - .incbin "baserom.gba", 0x12D518, 0x000000C - -gUnk_0812D524:: @ 0812D524 - .incbin "baserom.gba", 0x12D524, 0x000000C - -gUnk_0812D530:: @ 0812D530 - .incbin "baserom.gba", 0x12D530, 0x0000010 - -gUnk_0812D540:: @ 0812D540 - .incbin "baserom.gba", 0x12D540, 0x0000010 - -gUnk_0812D550:: @ 0812D550 - .incbin "baserom.gba", 0x12D550, 0x0000010 - -gUnk_0812D560:: @ 0812D560 - .incbin "baserom.gba", 0x12D560, 0x0000010 - -gUnk_0812D570:: @ 0812D570 - .incbin "baserom.gba", 0x12D570, 0x0000010 - -gUnk_0812D580:: @ 0812D580 - .incbin "baserom.gba", 0x12D580, 0x0000010 - -gUnk_0812D590:: @ 0812D590 - .incbin "baserom.gba", 0x12D590, 0x0000010 - -gUnk_0812D5A0:: @ 0812D5A0 - .incbin "baserom.gba", 0x12D5A0, 0x0000010 - -gUnk_0812D5B0:: @ 0812D5B0 - .incbin "baserom.gba", 0x12D5B0, 0x0000010 - -gUnk_0812D5C0:: @ 0812D5C0 - .incbin "baserom.gba", 0x12D5C0, 0x0000010 - -gUnk_0812D5D0:: @ 0812D5D0 - .incbin "baserom.gba", 0x12D5D0, 0x0000010 - -gUnk_0812D5E0:: @ 0812D5E0 - .incbin "baserom.gba", 0x12D5E0, 0x0000010 - -gUnk_0812D5F0:: @ 0812D5F0 - .incbin "baserom.gba", 0x12D5F0, 0x0000010 - -gUnk_0812D600:: @ 0812D600 - .incbin "baserom.gba", 0x12D600, 0x0000010 - -gUnk_0812D610:: @ 0812D610 - .incbin "baserom.gba", 0x12D610, 0x0000010 - -gUnk_0812D620:: @ 0812D620 - .incbin "baserom.gba", 0x12D620, 0x0000010 - -gUnk_0812D630:: @ 0812D630 - .incbin "baserom.gba", 0x12D630, 0x0000010 - -gUnk_0812D640:: @ 0812D640 - .incbin "baserom.gba", 0x12D640, 0x0000018 - -gUnk_0812D658:: @ 0812D658 - .incbin "baserom.gba", 0x12D658, 0x0000018 - -gUnk_0812D670:: @ 0812D670 - .incbin "baserom.gba", 0x12D670, 0x0000018 - -gUnk_0812D688:: @ 0812D688 - .incbin "baserom.gba", 0x12D688, 0x0000340 - -gUnk_0812D9C8:: @ 0812D9C8 - .incbin "baserom.gba", 0x12D9C8, 0x0000008 - -gUnk_0812D9D0:: @ 0812D9D0 - .incbin "baserom.gba", 0x12D9D0, 0x0000018 - -gUnk_0812D9E8:: @ 0812D9E8 - .incbin "baserom.gba", 0x12D9E8, 0x000000C - -gUnk_0812D9F4:: @ 0812D9F4 - .incbin "baserom.gba", 0x12D9F4, 0x0000010 - -gUnk_0812DA04:: @ 0812DA04 - .incbin "baserom.gba", 0x12DA04, 0x0000010 - -gUnk_0812DA14:: @ 0812DA14 - .incbin "baserom.gba", 0x12DA14, 0x0000014 - -gUnk_0812DA28:: @ 0812DA28 - .incbin "baserom.gba", 0x12DA28, 0x0000018 - -gUnk_0812DA40:: @ 0812DA40 - .incbin "baserom.gba", 0x12DA40, 0x0000014 - -gUnk_0812DA54:: @ 0812DA54 - .incbin "baserom.gba", 0x12DA54, 0x0000014 - -gUnk_0812DA68:: @ 0812DA68 - .incbin "baserom.gba", 0x12DA68, 0x0000018 - -gUnk_0812DA80:: @ 0812DA80 - .incbin "baserom.gba", 0x12DA80, 0x0000018 - -gUnk_0812DA98:: @ 0812DA98 - .incbin "baserom.gba", 0x12DA98, 0x000000C - -gUnk_0812DAA4:: @ 0812DAA4 - .incbin "baserom.gba", 0x12DAA4, 0x000000C - -gUnk_0812DAB0:: @ 0812DAB0 - .incbin "baserom.gba", 0x12DAB0, 0x0000010 - -gUnk_0812DAC0:: @ 0812DAC0 - .incbin "baserom.gba", 0x12DAC0, 0x0000014 - -gUnk_0812DAD4:: @ 0812DAD4 - .incbin "baserom.gba", 0x12DAD4, 0x0000010 - -gUnk_0812DAE4:: @ 0812DAE4 - .incbin "baserom.gba", 0x12DAE4, 0x0000010 - -gUnk_0812DAF4:: @ 0812DAF4 - .incbin "baserom.gba", 0x12DAF4, 0x0000010 - -gUnk_0812DB04:: @ 0812DB04 - .incbin "baserom.gba", 0x12DB04, 0x0000010 - -gUnk_0812DB14:: @ 0812DB14 - .incbin "baserom.gba", 0x12DB14, 0x0000010 - -gUnk_0812DB24:: @ 0812DB24 - .incbin "baserom.gba", 0x12DB24, 0x0000010 - -gUnk_0812DB34:: @ 0812DB34 - .incbin "baserom.gba", 0x12DB34, 0x0000010 - -gUnk_0812DB44:: @ 0812DB44 - .incbin "baserom.gba", 0x12DB44, 0x0000010 - -gUnk_0812DB54:: @ 0812DB54 - .incbin "baserom.gba", 0x12DB54, 0x0000010 - -gUnk_0812DB64:: @ 0812DB64 - .incbin "baserom.gba", 0x12DB64, 0x0000010 - -gUnk_0812DB74:: @ 0812DB74 - .incbin "baserom.gba", 0x12DB74, 0x0000010 - -gUnk_0812DB84:: @ 0812DB84 - .incbin "baserom.gba", 0x12DB84, 0x0000010 - -gUnk_0812DB94:: @ 0812DB94 - .incbin "baserom.gba", 0x12DB94, 0x0000014 - -gUnk_0812DBA8:: @ 0812DBA8 - .incbin "baserom.gba", 0x12DBA8, 0x0000010 - -gUnk_0812DBB8:: @ 0812DBB8 - .incbin "baserom.gba", 0x12DBB8, 0x0000010 - -gUnk_0812DBC8:: @ 0812DBC8 - .incbin "baserom.gba", 0x12DBC8, 0x0000010 - -gUnk_0812DBD8:: @ 0812DBD8 - .incbin "baserom.gba", 0x12DBD8, 0x0000010 - -gUnk_0812DBE8:: @ 0812DBE8 - .incbin "baserom.gba", 0x12DBE8, 0x0000010 - -gUnk_0812DBF8:: @ 0812DBF8 - .incbin "baserom.gba", 0x12DBF8, 0x0000010 - -gUnk_0812DC08:: @ 0812DC08 - .incbin "baserom.gba", 0x12DC08, 0x0000010 - -gUnk_0812DC18:: @ 0812DC18 - .incbin "baserom.gba", 0x12DC18, 0x000000C - -gUnk_0812DC24:: @ 0812DC24 - .incbin "baserom.gba", 0x12DC24, 0x000000C - -gUnk_0812DC30:: @ 0812DC30 - .incbin "baserom.gba", 0x12DC30, 0x000000C - -gUnk_0812DC3C:: @ 0812DC3C - .incbin "baserom.gba", 0x12DC3C, 0x000000C - -gUnk_0812DC48:: @ 0812DC48 - .incbin "baserom.gba", 0x12DC48, 0x000000C - -gUnk_0812DC54:: @ 0812DC54 - .incbin "baserom.gba", 0x12DC54, 0x000000C - -gUnk_0812DC60:: @ 0812DC60 - .incbin "baserom.gba", 0x12DC60, 0x000000C - -gUnk_0812DC6C:: @ 0812DC6C - .incbin "baserom.gba", 0x12DC6C, 0x000000C - -gUnk_0812DC78:: @ 0812DC78 - .incbin "baserom.gba", 0x12DC78, 0x000000C - -gUnk_0812DC84:: @ 0812DC84 - .incbin "baserom.gba", 0x12DC84, 0x000000C - -gUnk_0812DC90:: @ 0812DC90 - .incbin "baserom.gba", 0x12DC90, 0x000000C - -gUnk_0812DC9C:: @ 0812DC9C - .incbin "baserom.gba", 0x12DC9C, 0x000000C - -gUnk_0812DCA8:: @ 0812DCA8 - .incbin "baserom.gba", 0x12DCA8, 0x000000C - -gUnk_0812DCB4:: @ 0812DCB4 - .incbin "baserom.gba", 0x12DCB4, 0x000000C - -gUnk_0812DCC0:: @ 0812DCC0 - .incbin "baserom.gba", 0x12DCC0, 0x000000C - -gUnk_0812DCCC:: @ 0812DCCC - .incbin "baserom.gba", 0x12DCCC, 0x000000C - -gUnk_0812DCD8:: @ 0812DCD8 - .incbin "baserom.gba", 0x12DCD8, 0x0000014 - -gUnk_0812DCEC:: @ 0812DCEC - .incbin "baserom.gba", 0x12DCEC, 0x0000014 - -gUnk_0812DD00:: @ 0812DD00 - .incbin "baserom.gba", 0x12DD00, 0x0000004 - -gUnk_0812DD04:: @ 0812DD04 - .incbin "baserom.gba", 0x12DD04, 0x0000008 - -gUnk_0812DD0C:: @ 0812DD0C - .incbin "baserom.gba", 0x12DD0C, 0x000000C - -gUnk_0812DD18:: @ 0812DD18 - .incbin "baserom.gba", 0x12DD18, 0x000000C - -gUnk_0812DD24:: @ 0812DD24 - .incbin "baserom.gba", 0x12DD24, 0x000000C - -gUnk_0812DD30:: @ 0812DD30 - .incbin "baserom.gba", 0x12DD30, 0x000000C - -gUnk_0812DD3C:: @ 0812DD3C - .incbin "baserom.gba", 0x12DD3C, 0x000000C - -gUnk_0812DD48:: @ 0812DD48 - .incbin "baserom.gba", 0x12DD48, 0x000000C - -gUnk_0812DD54:: @ 0812DD54 - .incbin "baserom.gba", 0x12DD54, 0x000000C - -gUnk_0812DD60:: @ 0812DD60 - .incbin "baserom.gba", 0x12DD60, 0x000000C - -gUnk_0812DD6C:: @ 0812DD6C - .incbin "baserom.gba", 0x12DD6C, 0x000000C - -gUnk_0812DD78:: @ 0812DD78 - .incbin "baserom.gba", 0x12DD78, 0x000000C - -gUnk_0812DD84:: @ 0812DD84 - .incbin "baserom.gba", 0x12DD84, 0x000000C - -gUnk_0812DD90:: @ 0812DD90 - .incbin "baserom.gba", 0x12DD90, 0x000000C - -gUnk_0812DD9C:: @ 0812DD9C - .incbin "baserom.gba", 0x12DD9C, 0x000000C - -gUnk_0812DDA8:: @ 0812DDA8 - .incbin "baserom.gba", 0x12DDA8, 0x000000C - -gUnk_0812DDB4:: @ 0812DDB4 - .incbin "baserom.gba", 0x12DDB4, 0x000000C - -gUnk_0812DDC0:: @ 0812DDC0 - .incbin "baserom.gba", 0x12DDC0, 0x000000C - -gUnk_0812DDCC:: @ 0812DDCC - .incbin "baserom.gba", 0x12DDCC, 0x0000014 - -gUnk_0812DDE0:: @ 0812DDE0 - .incbin "baserom.gba", 0x12DDE0, 0x0000014 - -gUnk_0812DDF4:: @ 0812DDF4 - .incbin "baserom.gba", 0x12DDF4, 0x0000014 - -gUnk_0812DE08:: @ 0812DE08 - .incbin "baserom.gba", 0x12DE08, 0x0000014 - -gUnk_0812DE1C:: @ 0812DE1C - .incbin "baserom.gba", 0x12DE1C, 0x0000014 - -gUnk_0812DE30:: @ 0812DE30 - .incbin "baserom.gba", 0x12DE30, 0x0000010 - -gUnk_0812DE40:: @ 0812DE40 - .incbin "baserom.gba", 0x12DE40, 0x0000014 - -gUnk_0812DE54:: @ 0812DE54 - .incbin "baserom.gba", 0x12DE54, 0x0000014 - -gUnk_0812DE68:: @ 0812DE68 - .incbin "baserom.gba", 0x12DE68, 0x0000014 - -gUnk_0812DE7C:: @ 0812DE7C - .incbin "baserom.gba", 0x12DE7C, 0x0000010 - -gUnk_0812DE8C:: @ 0812DE8C - .incbin "baserom.gba", 0x12DE8C, 0x0000018 - -gUnk_0812DEA4:: @ 0812DEA4 - .incbin "baserom.gba", 0x12DEA4, 0x000000C - -gUnk_0812DEB0:: @ 0812DEB0 - .incbin "baserom.gba", 0x12DEB0, 0x000000C - -gUnk_0812DEBC:: @ 0812DEBC - .incbin "baserom.gba", 0x12DEBC, 0x000000C - -gUnk_0812DEC8:: @ 0812DEC8 - .incbin "baserom.gba", 0x12DEC8, 0x000000C - -gUnk_0812DED4:: @ 0812DED4 - .incbin "baserom.gba", 0x12DED4, 0x000000C - -gUnk_0812DEE0:: @ 0812DEE0 - .incbin "baserom.gba", 0x12DEE0, 0x000000C - -gUnk_0812DEEC:: @ 0812DEEC - .incbin "baserom.gba", 0x12DEEC, 0x000000C - -gUnk_0812DEF8:: @ 0812DEF8 - .incbin "baserom.gba", 0x12DEF8, 0x000000C - -gUnk_0812DF04:: @ 0812DF04 - .incbin "baserom.gba", 0x12DF04, 0x000000C - -gUnk_0812DF10:: @ 0812DF10 - .incbin "baserom.gba", 0x12DF10, 0x000000C - -gUnk_0812DF1C:: @ 0812DF1C - .incbin "baserom.gba", 0x12DF1C, 0x000000C - -gUnk_0812DF28:: @ 0812DF28 - .incbin "baserom.gba", 0x12DF28, 0x000000C - -gUnk_0812DF34:: @ 0812DF34 - .incbin "baserom.gba", 0x12DF34, 0x000000C - -gUnk_0812DF40:: @ 0812DF40 - .incbin "baserom.gba", 0x12DF40, 0x000000C - -gUnk_0812DF4C:: @ 0812DF4C - .incbin "baserom.gba", 0x12DF4C, 0x000000C - -gUnk_0812DF58:: @ 0812DF58 - .incbin "baserom.gba", 0x12DF58, 0x000000C - -gUnk_0812DF64:: @ 0812DF64 - .incbin "baserom.gba", 0x12DF64, 0x000000C - -gUnk_0812DF70:: @ 0812DF70 - .incbin "baserom.gba", 0x12DF70, 0x0000010 - -gUnk_0812DF80:: @ 0812DF80 - .incbin "baserom.gba", 0x12DF80, 0x0000010 - -gUnk_0812DF90:: @ 0812DF90 - .incbin "baserom.gba", 0x12DF90, 0x0000010 - -gUnk_0812DFA0:: @ 0812DFA0 - .incbin "baserom.gba", 0x12DFA0, 0x0000010 - -gUnk_0812DFB0:: @ 0812DFB0 - .incbin "baserom.gba", 0x12DFB0, 0x0000010 - -gUnk_0812DFC0:: @ 0812DFC0 - .incbin "baserom.gba", 0x12DFC0, 0x0000010 - -gUnk_0812DFD0:: @ 0812DFD0 - .incbin "baserom.gba", 0x12DFD0, 0x0000010 - -gUnk_0812DFE0:: @ 0812DFE0 - .incbin "baserom.gba", 0x12DFE0, 0x0000010 - -gUnk_0812DFF0:: @ 0812DFF0 - .incbin "baserom.gba", 0x12DFF0, 0x0000010 - -gUnk_0812E000:: @ 0812E000 - .incbin "baserom.gba", 0x12E000, 0x0000010 - -gUnk_0812E010:: @ 0812E010 - .incbin "baserom.gba", 0x12E010, 0x0000010 - -gUnk_0812E020:: @ 0812E020 - .incbin "baserom.gba", 0x12E020, 0x0000010 - -gUnk_0812E030:: @ 0812E030 - .incbin "baserom.gba", 0x12E030, 0x0000010 - -gUnk_0812E040:: @ 0812E040 - .incbin "baserom.gba", 0x12E040, 0x0000010 - -gUnk_0812E050:: @ 0812E050 - .incbin "baserom.gba", 0x12E050, 0x0000010 - -gUnk_0812E060:: @ 0812E060 - .incbin "baserom.gba", 0x12E060, 0x0000010 - -gUnk_0812E070:: @ 0812E070 - .incbin "baserom.gba", 0x12E070, 0x0000010 - -gUnk_0812E080:: @ 0812E080 - .incbin "baserom.gba", 0x12E080, 0x0000010 - -gUnk_0812E090:: @ 0812E090 - .incbin "baserom.gba", 0x12E090, 0x0000010 - -gUnk_0812E0A0:: @ 0812E0A0 - .incbin "baserom.gba", 0x12E0A0, 0x0000010 - -gUnk_0812E0B0:: @ 0812E0B0 - .incbin "baserom.gba", 0x12E0B0, 0x0000010 - -gUnk_0812E0C0:: @ 0812E0C0 - .incbin "baserom.gba", 0x12E0C0, 0x0000010 - -gUnk_0812E0D0:: @ 0812E0D0 - .incbin "baserom.gba", 0x12E0D0, 0x0000010 - -gUnk_0812E0E0:: @ 0812E0E0 - .incbin "baserom.gba", 0x12E0E0, 0x0000010 - -gUnk_0812E0F0:: @ 0812E0F0 - .incbin "baserom.gba", 0x12E0F0, 0x0000010 - -gUnk_0812E100:: @ 0812E100 - .incbin "baserom.gba", 0x12E100, 0x0000010 - -gUnk_0812E110:: @ 0812E110 - .incbin "baserom.gba", 0x12E110, 0x0000010 - -gUnk_0812E120:: @ 0812E120 - .incbin "baserom.gba", 0x12E120, 0x0000010 - -gUnk_0812E130:: @ 0812E130 - .incbin "baserom.gba", 0x12E130, 0x0000010 - -gUnk_0812E140:: @ 0812E140 - .incbin "baserom.gba", 0x12E140, 0x0000010 - -gUnk_0812E150:: @ 0812E150 - .incbin "baserom.gba", 0x12E150, 0x0000010 - -gUnk_0812E160:: @ 0812E160 - .incbin "baserom.gba", 0x12E160, 0x0000010 - -gUnk_0812E170:: @ 0812E170 - .incbin "baserom.gba", 0x12E170, 0x0000010 - -gUnk_0812E180:: @ 0812E180 - .incbin "baserom.gba", 0x12E180, 0x0000010 - -gUnk_0812E190:: @ 0812E190 - .incbin "baserom.gba", 0x12E190, 0x0000010 - -gUnk_0812E1A0:: @ 0812E1A0 - .incbin "baserom.gba", 0x12E1A0, 0x0000010 - -gUnk_0812E1B0:: @ 0812E1B0 - .incbin "baserom.gba", 0x12E1B0, 0x0000010 - -gUnk_0812E1C0:: @ 0812E1C0 - .incbin "baserom.gba", 0x12E1C0, 0x0000010 - -gUnk_0812E1D0:: @ 0812E1D0 - .incbin "baserom.gba", 0x12E1D0, 0x0000010 - -gUnk_0812E1E0:: @ 0812E1E0 - .incbin "baserom.gba", 0x12E1E0, 0x0000010 - -gUnk_0812E1F0:: @ 0812E1F0 - .incbin "baserom.gba", 0x12E1F0, 0x0000010 - -gUnk_0812E200:: @ 0812E200 - .incbin "baserom.gba", 0x12E200, 0x0000010 - -gUnk_0812E210:: @ 0812E210 - .incbin "baserom.gba", 0x12E210, 0x0000010 - -gUnk_0812E220:: @ 0812E220 - .incbin "baserom.gba", 0x12E220, 0x0000010 - -gUnk_0812E230:: @ 0812E230 - .incbin "baserom.gba", 0x12E230, 0x0000010 - -gUnk_0812E240:: @ 0812E240 - .incbin "baserom.gba", 0x12E240, 0x0000010 - -gUnk_0812E250:: @ 0812E250 - .incbin "baserom.gba", 0x12E250, 0x0000010 - -gUnk_0812E260:: @ 0812E260 - .incbin "baserom.gba", 0x12E260, 0x0000010 - -gUnk_0812E270:: @ 0812E270 - .incbin "baserom.gba", 0x12E270, 0x0000010 - -gUnk_0812E280:: @ 0812E280 - .incbin "baserom.gba", 0x12E280, 0x0000010 - -gUnk_0812E290:: @ 0812E290 - .incbin "baserom.gba", 0x12E290, 0x0000010 - -gUnk_0812E2A0:: @ 0812E2A0 - .incbin "baserom.gba", 0x12E2A0, 0x0000010 - -gUnk_0812E2B0:: @ 0812E2B0 - .incbin "baserom.gba", 0x12E2B0, 0x000000C - -gUnk_0812E2BC:: @ 0812E2BC - .incbin "baserom.gba", 0x12E2BC, 0x0000010 - -gUnk_0812E2CC:: @ 0812E2CC - .incbin "baserom.gba", 0x12E2CC, 0x000000C - -gUnk_0812E2D8:: @ 0812E2D8 - .incbin "baserom.gba", 0x12E2D8, 0x000000C - -gUnk_0812E2E4:: @ 0812E2E4 - .incbin "baserom.gba", 0x12E2E4, 0x000000C - -gUnk_0812E2F0:: @ 0812E2F0 - .incbin "baserom.gba", 0x12E2F0, 0x000000C - -gUnk_0812E2FC:: @ 0812E2FC - .incbin "baserom.gba", 0x12E2FC, 0x0000010 - -gUnk_0812E30C:: @ 0812E30C - .incbin "baserom.gba", 0x12E30C, 0x0000010 - -gUnk_0812E31C:: @ 0812E31C - .incbin "baserom.gba", 0x12E31C, 0x0000010 - -gUnk_0812E32C:: @ 0812E32C - .incbin "baserom.gba", 0x12E32C, 0x0000010 - -gUnk_0812E33C:: @ 0812E33C - .incbin "baserom.gba", 0x12E33C, 0x0000010 - -gUnk_0812E34C:: @ 0812E34C - .incbin "baserom.gba", 0x12E34C, 0x0000010 - -gUnk_0812E35C:: @ 0812E35C - .incbin "baserom.gba", 0x12E35C, 0x0000010 - -gUnk_0812E36C:: @ 0812E36C - .incbin "baserom.gba", 0x12E36C, 0x0000010 - -gUnk_0812E37C:: @ 0812E37C - .incbin "baserom.gba", 0x12E37C, 0x0000010 - -gUnk_0812E38C:: @ 0812E38C - .incbin "baserom.gba", 0x12E38C, 0x0000010 - -gUnk_0812E39C:: @ 0812E39C - .incbin "baserom.gba", 0x12E39C, 0x0000010 - -gUnk_0812E3AC:: @ 0812E3AC - .incbin "baserom.gba", 0x12E3AC, 0x0000010 - -gUnk_0812E3BC:: @ 0812E3BC - .incbin "baserom.gba", 0x12E3BC, 0x0000010 - -gUnk_0812E3CC:: @ 0812E3CC - .incbin "baserom.gba", 0x12E3CC, 0x0000010 - -gUnk_0812E3DC:: @ 0812E3DC - .incbin "baserom.gba", 0x12E3DC, 0x0000010 - -gUnk_0812E3EC:: @ 0812E3EC - .incbin "baserom.gba", 0x12E3EC, 0x0000010 - -gUnk_0812E3FC:: @ 0812E3FC - .incbin "baserom.gba", 0x12E3FC, 0x0000010 - -gUnk_0812E40C:: @ 0812E40C - .incbin "baserom.gba", 0x12E40C, 0x0000010 - -gUnk_0812E41C:: @ 0812E41C - .incbin "baserom.gba", 0x12E41C, 0x0000010 - -gUnk_0812E42C:: @ 0812E42C - .incbin "baserom.gba", 0x12E42C, 0x0000010 - -gUnk_0812E43C:: @ 0812E43C - .incbin "baserom.gba", 0x12E43C, 0x0000010 - -gUnk_0812E44C:: @ 0812E44C - .incbin "baserom.gba", 0x12E44C, 0x0000010 - -gUnk_0812E45C:: @ 0812E45C - .incbin "baserom.gba", 0x12E45C, 0x0000010 - -gUnk_0812E46C:: @ 0812E46C - .incbin "baserom.gba", 0x12E46C, 0x0000014 - -gUnk_0812E480:: @ 0812E480 - .incbin "baserom.gba", 0x12E480, 0x0000014 - -gUnk_0812E494:: @ 0812E494 - .incbin "baserom.gba", 0x12E494, 0x0000014 - -gUnk_0812E4A8:: @ 0812E4A8 - .incbin "baserom.gba", 0x12E4A8, 0x0000014 - -gUnk_0812E4BC:: @ 0812E4BC - .incbin "baserom.gba", 0x12E4BC, 0x0000014 - -gUnk_0812E4D0:: @ 0812E4D0 - .incbin "baserom.gba", 0x12E4D0, 0x0000014 - -gUnk_0812E4E4:: @ 0812E4E4 - .incbin "baserom.gba", 0x12E4E4, 0x0000014 - -gUnk_0812E4F8:: @ 0812E4F8 - .incbin "baserom.gba", 0x12E4F8, 0x0000014 - -gUnk_0812E50C:: @ 0812E50C - .incbin "baserom.gba", 0x12E50C, 0x0000014 - -gUnk_0812E520:: @ 0812E520 - .incbin "baserom.gba", 0x12E520, 0x0000014 - -gUnk_0812E534:: @ 0812E534 - .incbin "baserom.gba", 0x12E534, 0x0000014 - -gUnk_0812E548:: @ 0812E548 - .incbin "baserom.gba", 0x12E548, 0x0000014 - -gUnk_0812E55C:: @ 0812E55C - .incbin "baserom.gba", 0x12E55C, 0x0000014 - -gUnk_0812E570:: @ 0812E570 - .incbin "baserom.gba", 0x12E570, 0x0000014 - -gUnk_0812E584:: @ 0812E584 - .incbin "baserom.gba", 0x12E584, 0x0000014 - -gUnk_0812E598:: @ 0812E598 - .incbin "baserom.gba", 0x12E598, 0x0000014 - -gUnk_0812E5AC:: @ 0812E5AC - .incbin "baserom.gba", 0x12E5AC, 0x0000014 - -gUnk_0812E5C0:: @ 0812E5C0 - .incbin "baserom.gba", 0x12E5C0, 0x0000014 - -gUnk_0812E5D4:: @ 0812E5D4 - .incbin "baserom.gba", 0x12E5D4, 0x0000014 - -gUnk_0812E5E8:: @ 0812E5E8 - .incbin "baserom.gba", 0x12E5E8, 0x0000014 - -gUnk_0812E5FC:: @ 0812E5FC - .incbin "baserom.gba", 0x12E5FC, 0x0000248 - -gUnk_0812E844:: @ 0812E844 - .incbin "baserom.gba", 0x12E844, 0x0000008 - -gUnk_0812E84C:: @ 0812E84C - .incbin "baserom.gba", 0x12E84C, 0x0000008 - -gUnk_0812E854:: @ 0812E854 - .incbin "baserom.gba", 0x12E854, 0x0000008 - -gUnk_0812E85C:: @ 0812E85C - .incbin "baserom.gba", 0x12E85C, 0x0000008 - -gUnk_0812E864:: @ 0812E864 - .incbin "baserom.gba", 0x12E864, 0x0000008 - -gUnk_0812E86C:: @ 0812E86C - .incbin "baserom.gba", 0x12E86C, 0x0000008 - -gUnk_0812E874:: @ 0812E874 - .incbin "baserom.gba", 0x12E874, 0x0000018 - -gUnk_0812E88C:: @ 0812E88C - .incbin "baserom.gba", 0x12E88C, 0x0000018 - -gUnk_0812E8A4:: @ 0812E8A4 - .incbin "baserom.gba", 0x12E8A4, 0x0000018 - -gUnk_0812E8BC:: @ 0812E8BC - .incbin "baserom.gba", 0x12E8BC, 0x0000010 - -gUnk_0812E8CC:: @ 0812E8CC - .incbin "baserom.gba", 0x12E8CC, 0x0000010 - -gUnk_0812E8DC:: @ 0812E8DC - .incbin "baserom.gba", 0x12E8DC, 0x0000018 - -gUnk_0812E8F4:: @ 0812E8F4 - .incbin "baserom.gba", 0x12E8F4, 0x0000009 - -gUnk_0812E8FD:: @ 0812E8FD - .incbin "baserom.gba", 0x12E8FD, 0x0000007 - -gUnk_0812E904:: @ 0812E904 - .incbin "baserom.gba", 0x12E904, 0x0000010 - -gUnk_0812E914:: @ 0812E914 - .incbin "baserom.gba", 0x12E914, 0x0000018 - -gUnk_0812E92C:: @ 0812E92C - .incbin "baserom.gba", 0x12E92C, 0x0000014 - -gUnk_0812E940:: @ 0812E940 - .incbin "baserom.gba", 0x12E940, 0x0000018 - -gUnk_0812E958:: @ 0812E958 - .incbin "baserom.gba", 0x12E958, 0x0000018 - -gUnk_0812E970:: @ 0812E970 - .incbin "baserom.gba", 0x12E970, 0x0000018 - -gUnk_0812E988:: @ 0812E988 - .incbin "baserom.gba", 0x12E988, 0x0000014 - -gUnk_0812E99C:: @ 0812E99C - .incbin "baserom.gba", 0x12E99C, 0x0000014 - -gUnk_0812E9B0:: @ 0812E9B0 - .incbin "baserom.gba", 0x12E9B0, 0x0000014 - -gUnk_0812E9C4:: @ 0812E9C4 - .incbin "baserom.gba", 0x12E9C4, 0x0000014 - -gUnk_0812E9D8:: @ 0812E9D8 - .incbin "baserom.gba", 0x12E9D8, 0x0000018 - -gUnk_0812E9F0:: @ 0812E9F0 - .incbin "baserom.gba", 0x12E9F0, 0x0000018 - -gUnk_0812EA08:: @ 0812EA08 - .incbin "baserom.gba", 0x12EA08, 0x0000018 - -gUnk_0812EA20:: @ 0812EA20 - .incbin "baserom.gba", 0x12EA20, 0x0000018 - -gUnk_0812EA38:: @ 0812EA38 - .incbin "baserom.gba", 0x12EA38, 0x0000018 - -gUnk_0812EA50:: @ 0812EA50 - .incbin "baserom.gba", 0x12EA50, 0x0000018 - -gUnk_0812EA68:: @ 0812EA68 - .incbin "baserom.gba", 0x12EA68, 0x0000018 - -gUnk_0812EA80:: @ 0812EA80 - .incbin "baserom.gba", 0x12EA80, 0x0000018 - -gUnk_0812EA98:: @ 0812EA98 - .incbin "baserom.gba", 0x12EA98, 0x0000018 - -gUnk_0812EAB0:: @ 0812EAB0 - .incbin "baserom.gba", 0x12EAB0, 0x000001C - -gUnk_0812EACC:: @ 0812EACC - .incbin "baserom.gba", 0x12EACC, 0x000000C - -gUnk_0812EAD8:: @ 0812EAD8 - .incbin "baserom.gba", 0x12EAD8, 0x0000010 - -gUnk_0812EAE8:: @ 0812EAE8 - .incbin "baserom.gba", 0x12EAE8, 0x000001C - -gUnk_0812EB04:: @ 0812EB04 - .incbin "baserom.gba", 0x12EB04, 0x0000018 - -gUnk_0812EB1C:: @ 0812EB1C - .incbin "baserom.gba", 0x12EB1C, 0x0000018 - -gUnk_0812EB34:: @ 0812EB34 - .incbin "baserom.gba", 0x12EB34, 0x000001C - -gUnk_0812EB50:: @ 0812EB50 - .incbin "baserom.gba", 0x12EB50, 0x000001C - -gUnk_0812EB6C:: @ 0812EB6C - .incbin "baserom.gba", 0x12EB6C, 0x000001C - -gUnk_0812EB88:: @ 0812EB88 - .incbin "baserom.gba", 0x12EB88, 0x000001C - -gUnk_0812EBA4:: @ 0812EBA4 - .incbin "baserom.gba", 0x12EBA4, 0x000001C - -gUnk_0812EBC0:: @ 0812EBC0 - .incbin "baserom.gba", 0x12EBC0, 0x0000018 - -gUnk_0812EBD8:: @ 0812EBD8 - .incbin "baserom.gba", 0x12EBD8, 0x0000018 - -gUnk_0812EBF0:: @ 0812EBF0 - .incbin "baserom.gba", 0x12EBF0, 0x0000018 - -gUnk_0812EC08:: @ 0812EC08 - .incbin "baserom.gba", 0x12EC08, 0x0000018 - -gUnk_0812EC20:: @ 0812EC20 - .incbin "baserom.gba", 0x12EC20, 0x0000014 - -gUnk_0812EC34:: @ 0812EC34 - .incbin "baserom.gba", 0x12EC34, 0x0000014 - -gUnk_0812EC48:: @ 0812EC48 - .incbin "baserom.gba", 0x12EC48, 0x0000018 - -gUnk_0812EC60:: @ 0812EC60 - .incbin "baserom.gba", 0x12EC60, 0x0000018 - -gUnk_0812EC78:: @ 0812EC78 - .incbin "baserom.gba", 0x12EC78, 0x0000018 - -gUnk_0812EC90:: @ 0812EC90 - .incbin "baserom.gba", 0x12EC90, 0x0000018 - -gUnk_0812ECA8:: @ 0812ECA8 - .incbin "baserom.gba", 0x12ECA8, 0x0000018 - -gUnk_0812ECC0:: @ 0812ECC0 - .incbin "baserom.gba", 0x12ECC0, 0x0000018 - -gUnk_0812ECD8:: @ 0812ECD8 - .incbin "baserom.gba", 0x12ECD8, 0x0000018 - -gUnk_0812ECF0:: @ 0812ECF0 - .incbin "baserom.gba", 0x12ECF0, 0x0000018 - -gUnk_0812ED08:: @ 0812ED08 - .incbin "baserom.gba", 0x12ED08, 0x0000018 - -gUnk_0812ED20:: @ 0812ED20 - .incbin "baserom.gba", 0x12ED20, 0x0000018 - -gUnk_0812ED38:: @ 0812ED38 - .incbin "baserom.gba", 0x12ED38, 0x0000018 - -gUnk_0812ED50:: @ 0812ED50 - .incbin "baserom.gba", 0x12ED50, 0x0000018 - -gUnk_0812ED68:: @ 0812ED68 - .incbin "baserom.gba", 0x12ED68, 0x0000018 - -gUnk_0812ED80:: @ 0812ED80 - .incbin "baserom.gba", 0x12ED80, 0x0000018 - -gUnk_0812ED98:: @ 0812ED98 - .incbin "baserom.gba", 0x12ED98, 0x0000018 - -gUnk_0812EDB0:: @ 0812EDB0 - .incbin "baserom.gba", 0x12EDB0, 0x0000018 - -gUnk_0812EDC8:: @ 0812EDC8 - .incbin "baserom.gba", 0x12EDC8, 0x0000018 - -gUnk_0812EDE0:: @ 0812EDE0 - .incbin "baserom.gba", 0x12EDE0, 0x0000018 - -gUnk_0812EDF8:: @ 0812EDF8 - .incbin "baserom.gba", 0x12EDF8, 0x0000018 - -gUnk_0812EE10:: @ 0812EE10 - .incbin "baserom.gba", 0x12EE10, 0x0000018 - -gUnk_0812EE28:: @ 0812EE28 - .incbin "baserom.gba", 0x12EE28, 0x0000018 - -gUnk_0812EE40:: @ 0812EE40 - .incbin "baserom.gba", 0x12EE40, 0x0000014 - -gUnk_0812EE54:: @ 0812EE54 - .incbin "baserom.gba", 0x12EE54, 0x0000014 - -gUnk_0812EE68:: @ 0812EE68 - .incbin "baserom.gba", 0x12EE68, 0x0000014 - -gUnk_0812EE7C:: @ 0812EE7C - .incbin "baserom.gba", 0x12EE7C, 0x0000014 - -gUnk_0812EE90:: @ 0812EE90 - .incbin "baserom.gba", 0x12EE90, 0x0000014 - -gUnk_0812EEA4:: @ 0812EEA4 - .incbin "baserom.gba", 0x12EEA4, 0x0000014 - -gUnk_0812EEB8:: @ 0812EEB8 - .incbin "baserom.gba", 0x12EEB8, 0x0000014 - -gUnk_0812EECC:: @ 0812EECC - .incbin "baserom.gba", 0x12EECC, 0x0000014 - -gUnk_0812EEE0:: @ 0812EEE0 - .incbin "baserom.gba", 0x12EEE0, 0x0000014 - -gUnk_0812EEF4:: @ 0812EEF4 - .incbin "baserom.gba", 0x12EEF4, 0x0000014 - -gUnk_0812EF08:: @ 0812EF08 - .incbin "baserom.gba", 0x12EF08, 0x0000014 - -gUnk_0812EF1C:: @ 0812EF1C - .incbin "baserom.gba", 0x12EF1C, 0x0000003 - -gUnk_0812EF1F:: @ 0812EF1F - .incbin "baserom.gba", 0x12EF1F, 0x0000011 - -gUnk_0812EF30:: @ 0812EF30 - .incbin "baserom.gba", 0x12EF30, 0x0000014 - -gUnk_0812EF44:: @ 0812EF44 - .incbin "baserom.gba", 0x12EF44, 0x0000018 - -gUnk_0812EF5C:: @ 0812EF5C - .incbin "baserom.gba", 0x12EF5C, 0x0000018 - -gUnk_0812EF74:: @ 0812EF74 - .incbin "baserom.gba", 0x12EF74, 0x0000018 - -gUnk_0812EF8C:: @ 0812EF8C - .incbin "baserom.gba", 0x12EF8C, 0x000001C - -gUnk_0812EFA8:: @ 0812EFA8 - .incbin "baserom.gba", 0x12EFA8, 0x0000018 - -gUnk_0812EFC0:: @ 0812EFC0 - .incbin "baserom.gba", 0x12EFC0, 0x0000018 - -gUnk_0812EFD8:: @ 0812EFD8 - .incbin "baserom.gba", 0x12EFD8, 0x0000018 - -gUnk_0812EFF0:: @ 0812EFF0 - .incbin "baserom.gba", 0x12EFF0, 0x0000018 - -gUnk_0812F008:: @ 0812F008 - .incbin "baserom.gba", 0x12F008, 0x0000018 - -gUnk_0812F020:: @ 0812F020 - .incbin "baserom.gba", 0x12F020, 0x0000018 - -gUnk_0812F038:: @ 0812F038 - .incbin "baserom.gba", 0x12F038, 0x0000018 - -gUnk_0812F050:: @ 0812F050 - .incbin "baserom.gba", 0x12F050, 0x0000018 - -gUnk_0812F068:: @ 0812F068 - .incbin "baserom.gba", 0x12F068, 0x0000018 - -gUnk_0812F080:: @ 0812F080 - .incbin "baserom.gba", 0x12F080, 0x0000018 - -gUnk_0812F098:: @ 0812F098 - .incbin "baserom.gba", 0x12F098, 0x0000018 - -gUnk_0812F0B0:: @ 0812F0B0 - .incbin "baserom.gba", 0x12F0B0, 0x0000018 - -gUnk_0812F0C8:: @ 0812F0C8 - .incbin "baserom.gba", 0x12F0C8, 0x0000018 - -gUnk_0812F0E0:: @ 0812F0E0 - .incbin "baserom.gba", 0x12F0E0, 0x0000018 - -gUnk_0812F0F8:: @ 0812F0F8 - .incbin "baserom.gba", 0x12F0F8, 0x0000018 - -gUnk_0812F110:: @ 0812F110 - .incbin "baserom.gba", 0x12F110, 0x0000018 - -gUnk_0812F128:: @ 0812F128 - .incbin "baserom.gba", 0x12F128, 0x0000018 - -gUnk_0812F140:: @ 0812F140 - .incbin "baserom.gba", 0x12F140, 0x0000018 - -gUnk_0812F158:: @ 0812F158 - .incbin "baserom.gba", 0x12F158, 0x0000018 - -gUnk_0812F170:: @ 0812F170 - .incbin "baserom.gba", 0x12F170, 0x0000018 - -gUnk_0812F188:: @ 0812F188 - .incbin "baserom.gba", 0x12F188, 0x0000018 - -gUnk_0812F1A0:: @ 0812F1A0 - .incbin "baserom.gba", 0x12F1A0, 0x0000018 - -gUnk_0812F1B8:: @ 0812F1B8 - .incbin "baserom.gba", 0x12F1B8, 0x0000018 - -gUnk_0812F1D0:: @ 0812F1D0 - .incbin "baserom.gba", 0x12F1D0, 0x0000018 - -gUnk_0812F1E8:: @ 0812F1E8 - .incbin "baserom.gba", 0x12F1E8, 0x0000018 - -gUnk_0812F200:: @ 0812F200 - .incbin "baserom.gba", 0x12F200, 0x0000018 - -gUnk_0812F218:: @ 0812F218 - .incbin "baserom.gba", 0x12F218, 0x0000018 - -gUnk_0812F230:: @ 0812F230 - .incbin "baserom.gba", 0x12F230, 0x0000018 - -gUnk_0812F248:: @ 0812F248 - .incbin "baserom.gba", 0x12F248, 0x0000018 - -gUnk_0812F260:: @ 0812F260 - .incbin "baserom.gba", 0x12F260, 0x0000018 - -gUnk_0812F278:: @ 0812F278 - .incbin "baserom.gba", 0x12F278, 0x0000018 - -gUnk_0812F290:: @ 0812F290 - .incbin "baserom.gba", 0x12F290, 0x0000018 - -gUnk_0812F2A8:: @ 0812F2A8 - .incbin "baserom.gba", 0x12F2A8, 0x0000018 - -gUnk_0812F2C0:: @ 0812F2C0 - .incbin "baserom.gba", 0x12F2C0, 0x0000018 - -gUnk_0812F2D8:: @ 0812F2D8 - .incbin "baserom.gba", 0x12F2D8, 0x0000018 - -gUnk_0812F2F0:: @ 0812F2F0 - .incbin "baserom.gba", 0x12F2F0, 0x0000018 - -gUnk_0812F308:: @ 0812F308 - .incbin "baserom.gba", 0x12F308, 0x0000018 - -gUnk_0812F320:: @ 0812F320 - .incbin "baserom.gba", 0x12F320, 0x0000018 - -gUnk_0812F338:: @ 0812F338 - .incbin "baserom.gba", 0x12F338, 0x0000018 - -gUnk_0812F350:: @ 0812F350 - .incbin "baserom.gba", 0x12F350, 0x0000018 - -gUnk_0812F368:: @ 0812F368 - .incbin "baserom.gba", 0x12F368, 0x0000018 - -gUnk_0812F380:: @ 0812F380 - .incbin "baserom.gba", 0x12F380, 0x0000018 - -gUnk_0812F398:: @ 0812F398 - .incbin "baserom.gba", 0x12F398, 0x0000018 - -gUnk_0812F3B0:: @ 0812F3B0 - .incbin "baserom.gba", 0x12F3B0, 0x0000018 - -gUnk_0812F3C8:: @ 0812F3C8 - .incbin "baserom.gba", 0x12F3C8, 0x0000018 - -gUnk_0812F3E0:: @ 0812F3E0 - .incbin "baserom.gba", 0x12F3E0, 0x0000018 - -gUnk_0812F3F8:: @ 0812F3F8 - .incbin "baserom.gba", 0x12F3F8, 0x0000018 - -gUnk_0812F410:: @ 0812F410 - .incbin "baserom.gba", 0x12F410, 0x0000018 - -gUnk_0812F428:: @ 0812F428 - .incbin "baserom.gba", 0x12F428, 0x0000018 - -gUnk_0812F440:: @ 0812F440 - .incbin "baserom.gba", 0x12F440, 0x0000018 - -gUnk_0812F458:: @ 0812F458 - .incbin "baserom.gba", 0x12F458, 0x0000018 - -gUnk_0812F470:: @ 0812F470 - .incbin "baserom.gba", 0x12F470, 0x0000014 - -gUnk_0812F484:: @ 0812F484 - .incbin "baserom.gba", 0x12F484, 0x0000010 - -gUnk_0812F494:: @ 0812F494 - .incbin "baserom.gba", 0x12F494, 0x0000170 - -gUnk_0812F604:: @ 0812F604 - .incbin "baserom.gba", 0x12F604, 0x0000010 - -gUnk_0812F614:: @ 0812F614 - .incbin "baserom.gba", 0x12F614, 0x0000010 - -gUnk_0812F624:: @ 0812F624 - .incbin "baserom.gba", 0x12F624, 0x000000C - -gUnk_0812F630:: @ 0812F630 - .incbin "baserom.gba", 0x12F630, 0x000000C - -gUnk_0812F63C:: @ 0812F63C - .incbin "baserom.gba", 0x12F63C, 0x000000C - -gUnk_0812F648:: @ 0812F648 - .incbin "baserom.gba", 0x12F648, 0x000000C - -gUnk_0812F654:: @ 0812F654 - .incbin "baserom.gba", 0x12F654, 0x0000010 - -gUnk_0812F664:: @ 0812F664 - .incbin "baserom.gba", 0x12F664, 0x000000C - -gUnk_0812F670:: @ 0812F670 - .incbin "baserom.gba", 0x12F670, 0x0000010 - -gUnk_0812F680:: @ 0812F680 - .incbin "baserom.gba", 0x12F680, 0x000000C - -gUnk_0812F68C:: @ 0812F68C - .incbin "baserom.gba", 0x12F68C, 0x000000C - -gUnk_0812F698:: @ 0812F698 - .incbin "baserom.gba", 0x12F698, 0x000000C - -gUnk_0812F6A4:: @ 0812F6A4 - .incbin "baserom.gba", 0x12F6A4, 0x000000C - -gUnk_0812F6B0:: @ 0812F6B0 - .incbin "baserom.gba", 0x12F6B0, 0x000000C - -gUnk_0812F6BC:: @ 0812F6BC - .incbin "baserom.gba", 0x12F6BC, 0x0000010 - -gUnk_0812F6CC:: @ 0812F6CC - .incbin "baserom.gba", 0x12F6CC, 0x0000010 - -gUnk_0812F6DC:: @ 0812F6DC - .incbin "baserom.gba", 0x12F6DC, 0x0000010 - -gUnk_0812F6EC:: @ 0812F6EC - .incbin "baserom.gba", 0x12F6EC, 0x000000C - -gUnk_0812F6F8:: @ 0812F6F8 - .incbin "baserom.gba", 0x12F6F8, 0x000000C - -gUnk_0812F704:: @ 0812F704 - .incbin "baserom.gba", 0x12F704, 0x000000C - -gUnk_0812F710:: @ 0812F710 - .incbin "baserom.gba", 0x12F710, 0x000000C - -gUnk_0812F71C:: @ 0812F71C - .incbin "baserom.gba", 0x12F71C, 0x000000C - -gUnk_0812F728:: @ 0812F728 - .incbin "baserom.gba", 0x12F728, 0x000000C - -gUnk_0812F734:: @ 0812F734 - .incbin "baserom.gba", 0x12F734, 0x000000C - -gUnk_0812F740:: @ 0812F740 - .incbin "baserom.gba", 0x12F740, 0x000000C - -gUnk_0812F74C:: @ 0812F74C - .incbin "baserom.gba", 0x12F74C, 0x000000C - -gUnk_0812F758:: @ 0812F758 - .incbin "baserom.gba", 0x12F758, 0x000000C - -gUnk_0812F764:: @ 0812F764 - .incbin "baserom.gba", 0x12F764, 0x000000C - -gUnk_0812F770:: @ 0812F770 - .incbin "baserom.gba", 0x12F770, 0x000000C - -gUnk_0812F77C:: @ 0812F77C - .incbin "baserom.gba", 0x12F77C, 0x000000C - -gUnk_0812F788:: @ 0812F788 - .incbin "baserom.gba", 0x12F788, 0x000000C - -gUnk_0812F794:: @ 0812F794 - .incbin "baserom.gba", 0x12F794, 0x0000010 - -gUnk_0812F7A4:: @ 0812F7A4 - .incbin "baserom.gba", 0x12F7A4, 0x000000C - -gUnk_0812F7B0:: @ 0812F7B0 - .incbin "baserom.gba", 0x12F7B0, 0x000000C - -gUnk_0812F7BC:: @ 0812F7BC - .incbin "baserom.gba", 0x12F7BC, 0x000000C - -gUnk_0812F7C8:: @ 0812F7C8 - .incbin "baserom.gba", 0x12F7C8, 0x0000010 - -gUnk_0812F7D8:: @ 0812F7D8 - .incbin "baserom.gba", 0x12F7D8, 0x000000C - -gUnk_0812F7E4:: @ 0812F7E4 - .incbin "baserom.gba", 0x12F7E4, 0x000000C - -gUnk_0812F7F0:: @ 0812F7F0 - .incbin "baserom.gba", 0x12F7F0, 0x000000C - -gUnk_0812F7FC:: @ 0812F7FC - .incbin "baserom.gba", 0x12F7FC, 0x000000C - -gUnk_0812F808:: @ 0812F808 - .incbin "baserom.gba", 0x12F808, 0x0000010 - -gUnk_0812F818:: @ 0812F818 - .incbin "baserom.gba", 0x12F818, 0x000000C - -gUnk_0812F824:: @ 0812F824 - .incbin "baserom.gba", 0x12F824, 0x0000010 - -gUnk_0812F834:: @ 0812F834 - .incbin "baserom.gba", 0x12F834, 0x000000C - -gUnk_0812F840:: @ 0812F840 - .incbin "baserom.gba", 0x12F840, 0x000000C - -gUnk_0812F84C:: @ 0812F84C - .incbin "baserom.gba", 0x12F84C, 0x000000C - -gUnk_0812F858:: @ 0812F858 - .incbin "baserom.gba", 0x12F858, 0x000000C - -gUnk_0812F864:: @ 0812F864 - .incbin "baserom.gba", 0x12F864, 0x000000C - -gUnk_0812F870:: @ 0812F870 - .incbin "baserom.gba", 0x12F870, 0x000000C - -gUnk_0812F87C:: @ 0812F87C - .incbin "baserom.gba", 0x12F87C, 0x0000010 - -gUnk_0812F88C:: @ 0812F88C - .incbin "baserom.gba", 0x12F88C, 0x000000C - -gUnk_0812F898:: @ 0812F898 - .incbin "baserom.gba", 0x12F898, 0x000000C - -gUnk_0812F8A4:: @ 0812F8A4 - .incbin "baserom.gba", 0x12F8A4, 0x000000C - -gUnk_0812F8B0:: @ 0812F8B0 - .incbin "baserom.gba", 0x12F8B0, 0x000000C - -gUnk_0812F8BC:: @ 0812F8BC - .incbin "baserom.gba", 0x12F8BC, 0x000000C - -gUnk_0812F8C8:: @ 0812F8C8 - .incbin "baserom.gba", 0x12F8C8, 0x000000C - -gUnk_0812F8D4:: @ 0812F8D4 - .incbin "baserom.gba", 0x12F8D4, 0x000000C - -gUnk_0812F8E0:: @ 0812F8E0 - .incbin "baserom.gba", 0x12F8E0, 0x000000C - -gUnk_0812F8EC:: @ 0812F8EC - .incbin "baserom.gba", 0x12F8EC, 0x0000008 - -gUnk_0812F8F4:: @ 0812F8F4 - .incbin "baserom.gba", 0x12F8F4, 0x0000001 - -gUnk_0812F8F5:: @ 0812F8F5 - .incbin "baserom.gba", 0x12F8F5, 0x0000003 - -gUnk_0812F8F8:: @ 0812F8F8 - .incbin "baserom.gba", 0x12F8F8, 0x000000C - -gUnk_0812F904:: @ 0812F904 - .incbin "baserom.gba", 0x12F904, 0x000000C - -gUnk_0812F910:: @ 0812F910 - .incbin "baserom.gba", 0x12F910, 0x000000C - -gUnk_0812F91C:: @ 0812F91C - .incbin "baserom.gba", 0x12F91C, 0x000000C - -gUnk_0812F928:: @ 0812F928 - .incbin "baserom.gba", 0x12F928, 0x000000C - -gUnk_0812F934:: @ 0812F934 - .incbin "baserom.gba", 0x12F934, 0x000000C - -gUnk_0812F940:: @ 0812F940 - .incbin "baserom.gba", 0x12F940, 0x000000C - -gUnk_0812F94C:: @ 0812F94C - .incbin "baserom.gba", 0x12F94C, 0x000000C - -gUnk_0812F958:: @ 0812F958 - .incbin "baserom.gba", 0x12F958, 0x000000C - -gUnk_0812F964:: @ 0812F964 - .incbin "baserom.gba", 0x12F964, 0x000000C - -gUnk_0812F970:: @ 0812F970 - .incbin "baserom.gba", 0x12F970, 0x000000C - -gUnk_0812F97C:: @ 0812F97C - .incbin "baserom.gba", 0x12F97C, 0x000000C - -gUnk_0812F988:: @ 0812F988 - .incbin "baserom.gba", 0x12F988, 0x000000C - -gUnk_0812F994:: @ 0812F994 - .incbin "baserom.gba", 0x12F994, 0x000000C - -gUnk_0812F9A0:: @ 0812F9A0 - .incbin "baserom.gba", 0x12F9A0, 0x000000C - -gUnk_0812F9AC:: @ 0812F9AC - .incbin "baserom.gba", 0x12F9AC, 0x000000C - -gUnk_0812F9B8:: @ 0812F9B8 - .incbin "baserom.gba", 0x12F9B8, 0x000000C - -gUnk_0812F9C4:: @ 0812F9C4 - .incbin "baserom.gba", 0x12F9C4, 0x000000C - -gUnk_0812F9D0:: @ 0812F9D0 - .incbin "baserom.gba", 0x12F9D0, 0x000000C - -gUnk_0812F9DC:: @ 0812F9DC - .incbin "baserom.gba", 0x12F9DC, 0x000000C - -gUnk_0812F9E8:: @ 0812F9E8 - .incbin "baserom.gba", 0x12F9E8, 0x000000C - -gUnk_0812F9F4:: @ 0812F9F4 - .incbin "baserom.gba", 0x12F9F4, 0x000000C - -gUnk_0812FA00:: @ 0812FA00 - .incbin "baserom.gba", 0x12FA00, 0x000000C - -gUnk_0812FA0C:: @ 0812FA0C - .incbin "baserom.gba", 0x12FA0C, 0x0000001 - -gUnk_0812FA0D:: @ 0812FA0D - .incbin "baserom.gba", 0x12FA0D, 0x000000B - -gUnk_0812FA18:: @ 0812FA18 - .incbin "baserom.gba", 0x12FA18, 0x000000C - -gUnk_0812FA24:: @ 0812FA24 - .incbin "baserom.gba", 0x12FA24, 0x000000C - -gUnk_0812FA30:: @ 0812FA30 - .incbin "baserom.gba", 0x12FA30, 0x00000CD - -gUnk_0812FAFD:: @ 0812FAFD - .incbin "baserom.gba", 0x12FAFD, 0x0000057 - -gUnk_0812FB54:: @ 0812FB54 - .incbin "baserom.gba", 0x12FB54, 0x0000010 - -gUnk_0812FB64:: @ 0812FB64 - .incbin "baserom.gba", 0x12FB64, 0x0000010 - -gUnk_0812FB74:: @ 0812FB74 - .incbin "baserom.gba", 0x12FB74, 0x000000C - -gUnk_0812FB80:: @ 0812FB80 - .incbin "baserom.gba", 0x12FB80, 0x000000C - -gUnk_0812FB8C:: @ 0812FB8C - .incbin "baserom.gba", 0x12FB8C, 0x000000C - -gUnk_0812FB98:: @ 0812FB98 - .incbin "baserom.gba", 0x12FB98, 0x000000C - -gUnk_0812FBA4:: @ 0812FBA4 - .incbin "baserom.gba", 0x12FBA4, 0x000000C - -gUnk_0812FBB0:: @ 0812FBB0 - .incbin "baserom.gba", 0x12FBB0, 0x000000C - -gUnk_0812FBBC:: @ 0812FBBC - .incbin "baserom.gba", 0x12FBBC, 0x000000C - -gUnk_0812FBC8:: @ 0812FBC8 - .incbin "baserom.gba", 0x12FBC8, 0x000000C - -gUnk_0812FBD4:: @ 0812FBD4 - .incbin "baserom.gba", 0x12FBD4, 0x0000010 - -gUnk_0812FBE4:: @ 0812FBE4 - .incbin "baserom.gba", 0x12FBE4, 0x000000C - -gUnk_0812FBF0:: @ 0812FBF0 - .incbin "baserom.gba", 0x12FBF0, 0x000000C - -gUnk_0812FBFC:: @ 0812FBFC - .incbin "baserom.gba", 0x12FBFC, 0x000000C - -gUnk_0812FC08:: @ 0812FC08 - .incbin "baserom.gba", 0x12FC08, 0x000000C - -gUnk_0812FC14:: @ 0812FC14 - .incbin "baserom.gba", 0x12FC14, 0x000000C - -gUnk_0812FC20:: @ 0812FC20 - .incbin "baserom.gba", 0x12FC20, 0x000000C - -gUnk_0812FC2C:: @ 0812FC2C - .incbin "baserom.gba", 0x12FC2C, 0x0000010 - -gUnk_0812FC3C:: @ 0812FC3C - .incbin "baserom.gba", 0x12FC3C, 0x000000C - -gUnk_0812FC48:: @ 0812FC48 - .incbin "baserom.gba", 0x12FC48, 0x000000C - -gUnk_0812FC54:: @ 0812FC54 - .incbin "baserom.gba", 0x12FC54, 0x000000C - -gUnk_0812FC60:: @ 0812FC60 - .incbin "baserom.gba", 0x12FC60, 0x000000C - -gUnk_0812FC6C:: @ 0812FC6C - .incbin "baserom.gba", 0x12FC6C, 0x000000C - -gUnk_0812FC78:: @ 0812FC78 - .incbin "baserom.gba", 0x12FC78, 0x000000C - -gUnk_0812FC84:: @ 0812FC84 - .incbin "baserom.gba", 0x12FC84, 0x000000C - -gUnk_0812FC90:: @ 0812FC90 - .incbin "baserom.gba", 0x12FC90, 0x000000C - -gUnk_0812FC9C:: @ 0812FC9C - .incbin "baserom.gba", 0x12FC9C, 0x000000C - -gUnk_0812FCA8:: @ 0812FCA8 - .incbin "baserom.gba", 0x12FCA8, 0x000000C - -gUnk_0812FCB4:: @ 0812FCB4 - .incbin "baserom.gba", 0x12FCB4, 0x000000C - -gUnk_0812FCC0:: @ 0812FCC0 - .incbin "baserom.gba", 0x12FCC0, 0x000000C - -gUnk_0812FCCC:: @ 0812FCCC - .incbin "baserom.gba", 0x12FCCC, 0x000000C - -gUnk_0812FCD8:: @ 0812FCD8 - .incbin "baserom.gba", 0x12FCD8, 0x000000C - -gUnk_0812FCE4:: @ 0812FCE4 - .incbin "baserom.gba", 0x12FCE4, 0x000000C - -gUnk_0812FCF0:: @ 0812FCF0 - .incbin "baserom.gba", 0x12FCF0, 0x0000010 - -gUnk_0812FD00:: @ 0812FD00 - .incbin "baserom.gba", 0x12FD00, 0x000000C - -gUnk_0812FD0C:: @ 0812FD0C - .incbin "baserom.gba", 0x12FD0C, 0x0000010 - -gUnk_0812FD1C:: @ 0812FD1C - .incbin "baserom.gba", 0x12FD1C, 0x000000C - -gUnk_0812FD28:: @ 0812FD28 - .incbin "baserom.gba", 0x12FD28, 0x000000C - -gUnk_0812FD34:: @ 0812FD34 - .incbin "baserom.gba", 0x12FD34, 0x0000010 - -gUnk_0812FD44:: @ 0812FD44 - .incbin "baserom.gba", 0x12FD44, 0x000000C - -gUnk_0812FD50:: @ 0812FD50 - .incbin "baserom.gba", 0x12FD50, 0x000000C - -gUnk_0812FD5C:: @ 0812FD5C - .incbin "baserom.gba", 0x12FD5C, 0x0000010 - -gUnk_0812FD6C:: @ 0812FD6C - .incbin "baserom.gba", 0x12FD6C, 0x000000C - -gUnk_0812FD78:: @ 0812FD78 - .incbin "baserom.gba", 0x12FD78, 0x000000C - -gUnk_0812FD84:: @ 0812FD84 - .incbin "baserom.gba", 0x12FD84, 0x000000C - -gUnk_0812FD90:: @ 0812FD90 - .incbin "baserom.gba", 0x12FD90, 0x000000C - -gUnk_0812FD9C:: @ 0812FD9C - .incbin "baserom.gba", 0x12FD9C, 0x000000C - -gUnk_0812FDA8:: @ 0812FDA8 - .incbin "baserom.gba", 0x12FDA8, 0x000000C - -gUnk_0812FDB4:: @ 0812FDB4 - .incbin "baserom.gba", 0x12FDB4, 0x000000C - -gUnk_0812FDC0:: @ 0812FDC0 - .incbin "baserom.gba", 0x12FDC0, 0x0000014 - -gUnk_0812FDD4:: @ 0812FDD4 - .incbin "baserom.gba", 0x12FDD4, 0x000000C - -gUnk_0812FDE0:: @ 0812FDE0 - .incbin "baserom.gba", 0x12FDE0, 0x000000C - -gUnk_0812FDEC:: @ 0812FDEC - .incbin "baserom.gba", 0x12FDEC, 0x000000C - -gUnk_0812FDF8:: @ 0812FDF8 - .incbin "baserom.gba", 0x12FDF8, 0x000000C - -gUnk_0812FE04:: @ 0812FE04 - .incbin "baserom.gba", 0x12FE04, 0x000000C - -gUnk_0812FE10:: @ 0812FE10 - .incbin "baserom.gba", 0x12FE10, 0x000000C - -gUnk_0812FE1C:: @ 0812FE1C - .incbin "baserom.gba", 0x12FE1C, 0x000000C - -gUnk_0812FE28:: @ 0812FE28 - .incbin "baserom.gba", 0x12FE28, 0x000000C - -gUnk_0812FE34:: @ 0812FE34 - .incbin "baserom.gba", 0x12FE34, 0x000000C - -gUnk_0812FE40:: @ 0812FE40 - .incbin "baserom.gba", 0x12FE40, 0x000000C - -gUnk_0812FE4C:: @ 0812FE4C - .incbin "baserom.gba", 0x12FE4C, 0x000000C - -gUnk_0812FE58:: @ 0812FE58 - .incbin "baserom.gba", 0x12FE58, 0x000000C - -gUnk_0812FE64:: @ 0812FE64 - .incbin "baserom.gba", 0x12FE64, 0x000000C - -gUnk_0812FE70:: @ 0812FE70 - .incbin "baserom.gba", 0x12FE70, 0x000000C - -gUnk_0812FE7C:: @ 0812FE7C - .incbin "baserom.gba", 0x12FE7C, 0x000000C - -gUnk_0812FE88:: @ 0812FE88 - .incbin "baserom.gba", 0x12FE88, 0x000000C - -gUnk_0812FE94:: @ 0812FE94 - .incbin "baserom.gba", 0x12FE94, 0x000000C - -gUnk_0812FEA0:: @ 0812FEA0 - .incbin "baserom.gba", 0x12FEA0, 0x00000B6 - -gUnk_0812FF56:: @ 0812FF56 - .incbin "baserom.gba", 0x12FF56, 0x0000048 - -gUnk_0812FF9E:: @ 0812FF9E - .incbin "baserom.gba", 0x12FF9E, 0x0000038 - -gUnk_0812FFD6:: @ 0812FFD6 - .incbin "baserom.gba", 0x12FFD6, 0x0000002 - -gUnk_0812FFD8:: @ 0812FFD8 - .incbin "baserom.gba", 0x12FFD8, 0x000000C - -gUnk_0812FFE4:: @ 0812FFE4 - .incbin "baserom.gba", 0x12FFE4, 0x000000C - -gUnk_0812FFF0:: @ 0812FFF0 - .incbin "baserom.gba", 0x12FFF0, 0x0000006 - -gUnk_0812FFF6:: @ 0812FFF6 - .incbin "baserom.gba", 0x12FFF6, 0x0000006 - -gUnk_0812FFFC:: @ 0812FFFC - .incbin "baserom.gba", 0x12FFFC, 0x0000003 - -gUnk_0812FFFF:: @ 0812FFFF - .incbin "baserom.gba", 0x12FFFF, 0x0000001 - -gUnk_08130000:: @ 08130000 - .incbin "baserom.gba", 0x130000, 0x0000002 - -gUnk_08130002:: @ 08130002 - .incbin "baserom.gba", 0x130002, 0x000000A - -gUnk_0813000C:: @ 0813000C - .incbin "baserom.gba", 0x13000C, 0x0000014 - -gUnk_08130020:: @ 08130020 - .incbin "baserom.gba", 0x130020, 0x000000C - -gUnk_0813002C:: @ 0813002C - .incbin "baserom.gba", 0x13002C, 0x000000C - -gUnk_08130038:: @ 08130038 - .incbin "baserom.gba", 0x130038, 0x000000C - -gUnk_08130044:: @ 08130044 - .incbin "baserom.gba", 0x130044, 0x0000009 - -gUnk_0813004D:: @ 0813004D - .incbin "baserom.gba", 0x13004D, 0x0000003 - -gUnk_08130050:: @ 08130050 - .incbin "baserom.gba", 0x130050, 0x0000010 - -gUnk_08130060:: @ 08130060 - .incbin "baserom.gba", 0x130060, 0x000000C - -gUnk_0813006C:: @ 0813006C - .incbin "baserom.gba", 0x13006C, 0x000000C - -gUnk_08130078:: @ 08130078 - .incbin "baserom.gba", 0x130078, 0x000000C - -gUnk_08130084:: @ 08130084 - .incbin "baserom.gba", 0x130084, 0x0000005 - -gUnk_08130089:: @ 08130089 - .incbin "baserom.gba", 0x130089, 0x0000007 - -gUnk_08130090:: @ 08130090 - .incbin "baserom.gba", 0x130090, 0x000000C - -gUnk_0813009C:: @ 0813009C - .incbin "baserom.gba", 0x13009C, 0x000000C - -gUnk_081300A8:: @ 081300A8 - .incbin "baserom.gba", 0x1300A8, 0x000000C - -gUnk_081300B4:: @ 081300B4 - .incbin "baserom.gba", 0x1300B4, 0x000000C - -gUnk_081300C0:: @ 081300C0 - .incbin "baserom.gba", 0x1300C0, 0x000000C - -gUnk_081300CC:: @ 081300CC - .incbin "baserom.gba", 0x1300CC, 0x000000C - -gUnk_081300D8:: @ 081300D8 - .incbin "baserom.gba", 0x1300D8, 0x000000C - -gUnk_081300E4:: @ 081300E4 - .incbin "baserom.gba", 0x1300E4, 0x0000010 - -gUnk_081300F4:: @ 081300F4 - .incbin "baserom.gba", 0x1300F4, 0x000000C - -gUnk_08130100:: @ 08130100 - .incbin "baserom.gba", 0x130100, 0x0000014 - -gUnk_08130114:: @ 08130114 - .incbin "baserom.gba", 0x130114, 0x0000010 - -gUnk_08130124:: @ 08130124 - .incbin "baserom.gba", 0x130124, 0x000000C - -gUnk_08130130:: @ 08130130 - .incbin "baserom.gba", 0x130130, 0x000000C - -gUnk_0813013C:: @ 0813013C - .incbin "baserom.gba", 0x13013C, 0x000000C - -gUnk_08130148:: @ 08130148 - .incbin "baserom.gba", 0x130148, 0x000000C - -gUnk_08130154:: @ 08130154 - .incbin "baserom.gba", 0x130154, 0x000000C - -gUnk_08130160:: @ 08130160 - .incbin "baserom.gba", 0x130160, 0x000000C - -gUnk_0813016C:: @ 0813016C - .incbin "baserom.gba", 0x13016C, 0x000000C - -gUnk_08130178:: @ 08130178 - .incbin "baserom.gba", 0x130178, 0x0000010 - -gUnk_08130188:: @ 08130188 - .incbin "baserom.gba", 0x130188, 0x000000C - -gUnk_08130194:: @ 08130194 - .incbin "baserom.gba", 0x130194, 0x000000C - -gUnk_081301A0:: @ 081301A0 - .incbin "baserom.gba", 0x1301A0, 0x0000010 - -gUnk_081301B0:: @ 081301B0 - .incbin "baserom.gba", 0x1301B0, 0x0000010 - -gUnk_081301C0:: @ 081301C0 - .incbin "baserom.gba", 0x1301C0, 0x0000010 - -gUnk_081301D0:: @ 081301D0 - .incbin "baserom.gba", 0x1301D0, 0x000000C - -gUnk_081301DC:: @ 081301DC - .incbin "baserom.gba", 0x1301DC, 0x000000C - -gUnk_081301E8:: @ 081301E8 - .incbin "baserom.gba", 0x1301E8, 0x0000006 - -gUnk_081301EE:: @ 081301EE - .incbin "baserom.gba", 0x1301EE, 0x0000006 - -gUnk_081301F4:: @ 081301F4 - .incbin "baserom.gba", 0x1301F4, 0x0000010 - -gUnk_08130204:: @ 08130204 - .incbin "baserom.gba", 0x130204, 0x0000002 - -gUnk_08130206:: @ 08130206 - .incbin "baserom.gba", 0x130206, 0x000000A - -gUnk_08130210:: @ 08130210 - .incbin "baserom.gba", 0x130210, 0x000000C - -gUnk_0813021C:: @ 0813021C - .incbin "baserom.gba", 0x13021C, 0x000000C - -gUnk_08130228:: @ 08130228 - .incbin "baserom.gba", 0x130228, 0x000000C - -gUnk_08130234:: @ 08130234 - .incbin "baserom.gba", 0x130234, 0x000000C - -gUnk_08130240:: @ 08130240 - .incbin "baserom.gba", 0x130240, 0x000000C - -gUnk_0813024C:: @ 0813024C - .incbin "baserom.gba", 0x13024C, 0x000000C - -gUnk_08130258:: @ 08130258 - .incbin "baserom.gba", 0x130258, 0x000000C - -gUnk_08130264:: @ 08130264 - .incbin "baserom.gba", 0x130264, 0x000000C - -gUnk_08130270:: @ 08130270 - .incbin "baserom.gba", 0x130270, 0x000000C - -gUnk_0813027C:: @ 0813027C - .incbin "baserom.gba", 0x13027C, 0x000000C - -gUnk_08130288:: @ 08130288 - .incbin "baserom.gba", 0x130288, 0x000000C - -gUnk_08130294:: @ 08130294 - .incbin "baserom.gba", 0x130294, 0x000000C - -gUnk_081302A0:: @ 081302A0 - .incbin "baserom.gba", 0x1302A0, 0x000000C - -gUnk_081302AC:: @ 081302AC - .incbin "baserom.gba", 0x1302AC, 0x000000C - -gUnk_081302B8:: @ 081302B8 - .incbin "baserom.gba", 0x1302B8, 0x000000C - -gUnk_081302C4:: @ 081302C4 - .incbin "baserom.gba", 0x1302C4, 0x000000C - -gUnk_081302D0:: @ 081302D0 - .incbin "baserom.gba", 0x1302D0, 0x000000C - -gUnk_081302DC:: @ 081302DC - .incbin "baserom.gba", 0x1302DC, 0x000000C - -gUnk_081302E8:: @ 081302E8 - .incbin "baserom.gba", 0x1302E8, 0x000000C - -gUnk_081302F4:: @ 081302F4 - .incbin "baserom.gba", 0x1302F4, 0x000000C - -gUnk_08130300:: @ 08130300 - .incbin "baserom.gba", 0x130300, 0x000000C - -gUnk_0813030C:: @ 0813030C - .incbin "baserom.gba", 0x13030C, 0x000000C - -gUnk_08130318:: @ 08130318 - .incbin "baserom.gba", 0x130318, 0x000000C - -gUnk_08130324:: @ 08130324 - .incbin "baserom.gba", 0x130324, 0x000000C - -gUnk_08130330:: @ 08130330 - .incbin "baserom.gba", 0x130330, 0x000000C - -gUnk_0813033C:: @ 0813033C - .incbin "baserom.gba", 0x13033C, 0x000000C - -gUnk_08130348:: @ 08130348 - .incbin "baserom.gba", 0x130348, 0x000000C - -gUnk_08130354:: @ 08130354 - .incbin "baserom.gba", 0x130354, 0x000000C - -gUnk_08130360:: @ 08130360 - .incbin "baserom.gba", 0x130360, 0x000000C - -gUnk_0813036C:: @ 0813036C - .incbin "baserom.gba", 0x13036C, 0x0000286 - -gUnk_081305F2:: @ 081305F2 - .incbin "baserom.gba", 0x1305F2, 0x000001A - -gUnk_0813060C:: @ 0813060C - .incbin "baserom.gba", 0x13060C, 0x0000010 - -gUnk_0813061C:: @ 0813061C - .incbin "baserom.gba", 0x13061C, 0x0000010 - -gUnk_0813062C:: @ 0813062C - .incbin "baserom.gba", 0x13062C, 0x000000C - -gUnk_08130638:: @ 08130638 - .incbin "baserom.gba", 0x130638, 0x000000C - -gUnk_08130644:: @ 08130644 - .incbin "baserom.gba", 0x130644, 0x000000C - -gUnk_08130650:: @ 08130650 - .incbin "baserom.gba", 0x130650, 0x000000C - -gUnk_0813065C:: @ 0813065C - .incbin "baserom.gba", 0x13065C, 0x000000C - -gUnk_08130668:: @ 08130668 - .incbin "baserom.gba", 0x130668, 0x000000C - -gUnk_08130674:: @ 08130674 - .incbin "baserom.gba", 0x130674, 0x000000C - -gUnk_08130680:: @ 08130680 - .incbin "baserom.gba", 0x130680, 0x000000C - -gUnk_0813068C:: @ 0813068C - .incbin "baserom.gba", 0x13068C, 0x000000C - -gUnk_08130698:: @ 08130698 - .incbin "baserom.gba", 0x130698, 0x000000C - -gUnk_081306A4:: @ 081306A4 - .incbin "baserom.gba", 0x1306A4, 0x000000C - -gUnk_081306B0:: @ 081306B0 - .incbin "baserom.gba", 0x1306B0, 0x000000C - -gUnk_081306BC:: @ 081306BC - .incbin "baserom.gba", 0x1306BC, 0x000000C - -gUnk_081306C8:: @ 081306C8 - .incbin "baserom.gba", 0x1306C8, 0x000000C - -gUnk_081306D4:: @ 081306D4 - .incbin "baserom.gba", 0x1306D4, 0x000000C - -gUnk_081306E0:: @ 081306E0 - .incbin "baserom.gba", 0x1306E0, 0x0000004 - -gUnk_081306E4:: @ 081306E4 - .incbin "baserom.gba", 0x1306E4, 0x0000008 - -gUnk_081306EC:: @ 081306EC - .incbin "baserom.gba", 0x1306EC, 0x000000C - -gUnk_081306F8:: @ 081306F8 - .incbin "baserom.gba", 0x1306F8, 0x000000C - -gUnk_08130704:: @ 08130704 - .incbin "baserom.gba", 0x130704, 0x000000C - -gUnk_08130710:: @ 08130710 - .incbin "baserom.gba", 0x130710, 0x000000C - -gUnk_0813071C:: @ 0813071C - .incbin "baserom.gba", 0x13071C, 0x000000C - -gUnk_08130728:: @ 08130728 - .incbin "baserom.gba", 0x130728, 0x000000C - -gUnk_08130734:: @ 08130734 - .incbin "baserom.gba", 0x130734, 0x000000C - -gUnk_08130740:: @ 08130740 - .incbin "baserom.gba", 0x130740, 0x000000C - -gUnk_0813074C:: @ 0813074C - .incbin "baserom.gba", 0x13074C, 0x000000C - -gUnk_08130758:: @ 08130758 - .incbin "baserom.gba", 0x130758, 0x000000C - -gUnk_08130764:: @ 08130764 - .incbin "baserom.gba", 0x130764, 0x000000C - -gUnk_08130770:: @ 08130770 - .incbin "baserom.gba", 0x130770, 0x000000C - -gUnk_0813077C:: @ 0813077C - .incbin "baserom.gba", 0x13077C, 0x000000C - -gUnk_08130788:: @ 08130788 - .incbin "baserom.gba", 0x130788, 0x0000010 - -gUnk_08130798:: @ 08130798 - .incbin "baserom.gba", 0x130798, 0x000000C - -gUnk_081307A4:: @ 081307A4 - .incbin "baserom.gba", 0x1307A4, 0x000000C - -gUnk_081307B0:: @ 081307B0 - .incbin "baserom.gba", 0x1307B0, 0x0000010 - -gUnk_081307C0:: @ 081307C0 - .incbin "baserom.gba", 0x1307C0, 0x0000010 - -gUnk_081307D0:: @ 081307D0 - .incbin "baserom.gba", 0x1307D0, 0x0000010 - -gUnk_081307E0:: @ 081307E0 - .incbin "baserom.gba", 0x1307E0, 0x000000C - -gUnk_081307EC:: @ 081307EC - .incbin "baserom.gba", 0x1307EC, 0x000000C - -gUnk_081307F8:: @ 081307F8 - .incbin "baserom.gba", 0x1307F8, 0x000000A - -gUnk_08130802:: @ 08130802 - .incbin "baserom.gba", 0x130802, 0x0000002 - -gUnk_08130804:: @ 08130804 - .incbin "baserom.gba", 0x130804, 0x0000009 - -gUnk_0813080D:: @ 0813080D - .incbin "baserom.gba", 0x13080D, 0x0000003 - -gUnk_08130810:: @ 08130810 - .incbin "baserom.gba", 0x130810, 0x000000C - -gUnk_0813081C:: @ 0813081C - .incbin "baserom.gba", 0x13081C, 0x000000C - -gUnk_08130828:: @ 08130828 - .incbin "baserom.gba", 0x130828, 0x000000C - -gUnk_08130834:: @ 08130834 - .incbin "baserom.gba", 0x130834, 0x000000C - -gUnk_08130840:: @ 08130840 - .incbin "baserom.gba", 0x130840, 0x000000C - -gUnk_0813084C:: @ 0813084C - .incbin "baserom.gba", 0x13084C, 0x000000C - -gUnk_08130858:: @ 08130858 - .incbin "baserom.gba", 0x130858, 0x000000C - -gUnk_08130864:: @ 08130864 - .incbin "baserom.gba", 0x130864, 0x000000C - -gUnk_08130870:: @ 08130870 - .incbin "baserom.gba", 0x130870, 0x000000C - -gUnk_0813087C:: @ 0813087C - .incbin "baserom.gba", 0x13087C, 0x0000010 - -gUnk_0813088C:: @ 0813088C - .incbin "baserom.gba", 0x13088C, 0x000000C - -gUnk_08130898:: @ 08130898 - .incbin "baserom.gba", 0x130898, 0x000000C - -gUnk_081308A4:: @ 081308A4 - .incbin "baserom.gba", 0x1308A4, 0x000000C - -gUnk_081308B0:: @ 081308B0 - .incbin "baserom.gba", 0x1308B0, 0x000000C - -gUnk_081308BC:: @ 081308BC - .incbin "baserom.gba", 0x1308BC, 0x000000C - -gUnk_081308C8:: @ 081308C8 - .incbin "baserom.gba", 0x1308C8, 0x000000C - -gUnk_081308D4:: @ 081308D4 - .incbin "baserom.gba", 0x1308D4, 0x000000C - -gUnk_081308E0:: @ 081308E0 - .incbin "baserom.gba", 0x1308E0, 0x000000C - -gUnk_081308EC:: @ 081308EC - .incbin "baserom.gba", 0x1308EC, 0x000000C - -gUnk_081308F8:: @ 081308F8 - .incbin "baserom.gba", 0x1308F8, 0x0000007 - -gUnk_081308FF:: @ 081308FF - .incbin "baserom.gba", 0x1308FF, 0x0000005 - -gUnk_08130904:: @ 08130904 - .incbin "baserom.gba", 0x130904, 0x000000C - -gUnk_08130910:: @ 08130910 - .incbin "baserom.gba", 0x130910, 0x000000A - -gUnk_0813091A:: @ 0813091A - .incbin "baserom.gba", 0x13091A, 0x0000002 - -gUnk_0813091C:: @ 0813091C - .incbin "baserom.gba", 0x13091C, 0x000000C - -gUnk_08130928:: @ 08130928 - .incbin "baserom.gba", 0x130928, 0x000000C - -gUnk_08130934:: @ 08130934 - .incbin "baserom.gba", 0x130934, 0x000000C - -gUnk_08130940:: @ 08130940 - .incbin "baserom.gba", 0x130940, 0x000000C - -gUnk_0813094C:: @ 0813094C - .incbin "baserom.gba", 0x13094C, 0x0000010 - -gUnk_0813095C:: @ 0813095C - .incbin "baserom.gba", 0x13095C, 0x000000C - -gUnk_08130968:: @ 08130968 - .incbin "baserom.gba", 0x130968, 0x000000C - -gUnk_08130974:: @ 08130974 - .incbin "baserom.gba", 0x130974, 0x000000C - -gUnk_08130980:: @ 08130980 - .incbin "baserom.gba", 0x130980, 0x0000010 - -gUnk_08130990:: @ 08130990 - .incbin "baserom.gba", 0x130990, 0x000000C - -gUnk_0813099C:: @ 0813099C - .incbin "baserom.gba", 0x13099C, 0x000000C - -gUnk_081309A8:: @ 081309A8 - .incbin "baserom.gba", 0x1309A8, 0x000000C - -gUnk_081309B4:: @ 081309B4 - .incbin "baserom.gba", 0x1309B4, 0x000000C - -gUnk_081309C0:: @ 081309C0 - .incbin "baserom.gba", 0x1309C0, 0x000000C - -gUnk_081309CC:: @ 081309CC - .incbin "baserom.gba", 0x1309CC, 0x000000C - -gUnk_081309D8:: @ 081309D8 - .incbin "baserom.gba", 0x1309D8, 0x000000C - -gUnk_081309E4:: @ 081309E4 - .incbin "baserom.gba", 0x1309E4, 0x000000B - -gUnk_081309EF:: @ 081309EF - .incbin "baserom.gba", 0x1309EF, 0x0000001 - -gUnk_081309F0:: @ 081309F0 - .incbin "baserom.gba", 0x1309F0, 0x0000010 - -gUnk_08130A00:: @ 08130A00 - .incbin "baserom.gba", 0x130A00, 0x0000001 - -gUnk_08130A01:: @ 08130A01 - .incbin "baserom.gba", 0x130A01, 0x000000B - -gUnk_08130A0C:: @ 08130A0C - .incbin "baserom.gba", 0x130A0C, 0x000000C - -gUnk_08130A18:: @ 08130A18 - .incbin "baserom.gba", 0x130A18, 0x000000C - -gUnk_08130A24:: @ 08130A24 - .incbin "baserom.gba", 0x130A24, 0x0000010 - -gUnk_08130A34:: @ 08130A34 - .incbin "baserom.gba", 0x130A34, 0x000000C - -gUnk_08130A40:: @ 08130A40 - .incbin "baserom.gba", 0x130A40, 0x000000C - -gUnk_08130A4C:: @ 08130A4C - .incbin "baserom.gba", 0x130A4C, 0x000000C - -gUnk_08130A58:: @ 08130A58 - .incbin "baserom.gba", 0x130A58, 0x000000C - -gUnk_08130A64:: @ 08130A64 - .incbin "baserom.gba", 0x130A64, 0x0000010 - -gUnk_08130A74:: @ 08130A74 - .incbin "baserom.gba", 0x130A74, 0x000000C - -gUnk_08130A80:: @ 08130A80 - .incbin "baserom.gba", 0x130A80, 0x0000010 - -gUnk_08130A90:: @ 08130A90 - .incbin "baserom.gba", 0x130A90, 0x000000C - -gUnk_08130A9C:: @ 08130A9C - .incbin "baserom.gba", 0x130A9C, 0x000000C - -gUnk_08130AA8:: @ 08130AA8 - .incbin "baserom.gba", 0x130AA8, 0x000000C - -gUnk_08130AB4:: @ 08130AB4 - .incbin "baserom.gba", 0x130AB4, 0x000000C - -gUnk_08130AC0:: @ 08130AC0 - .incbin "baserom.gba", 0x130AC0, 0x000000C - -gUnk_08130ACC:: @ 08130ACC - .incbin "baserom.gba", 0x130ACC, 0x000000C - -gUnk_08130AD8:: @ 08130AD8 - .incbin "baserom.gba", 0x130AD8, 0x000000C - -gUnk_08130AE4:: @ 08130AE4 - .incbin "baserom.gba", 0x130AE4, 0x0000010 - -gUnk_08130AF4:: @ 08130AF4 - .incbin "baserom.gba", 0x130AF4, 0x000000C - -gUnk_08130B00:: @ 08130B00 - .incbin "baserom.gba", 0x130B00, 0x000000C - -gUnk_08130B0C:: @ 08130B0C - .incbin "baserom.gba", 0x130B0C, 0x000000C - -gUnk_08130B18:: @ 08130B18 - .incbin "baserom.gba", 0x130B18, 0x000000C - -gUnk_08130B24:: @ 08130B24 - .incbin "baserom.gba", 0x130B24, 0x000000C - -gUnk_08130B30:: @ 08130B30 - .incbin "baserom.gba", 0x130B30, 0x000000C - -gUnk_08130B3C:: @ 08130B3C - .incbin "baserom.gba", 0x130B3C, 0x0000010 - -gUnk_08130B4C:: @ 08130B4C - .incbin "baserom.gba", 0x130B4C, 0x000000C - -gUnk_08130B58:: @ 08130B58 - .incbin "baserom.gba", 0x130B58, 0x0000014 - -gUnk_08130B6C:: @ 08130B6C - .incbin "baserom.gba", 0x130B6C, 0x0000010 - -gUnk_08130B7C:: @ 08130B7C - .incbin "baserom.gba", 0x130B7C, 0x0000014 - -gUnk_08130B90:: @ 08130B90 - .incbin "baserom.gba", 0x130B90, 0x0000010 - -gUnk_08130BA0:: @ 08130BA0 - .incbin "baserom.gba", 0x130BA0, 0x000000C - -gUnk_08130BAC:: @ 08130BAC - .incbin "baserom.gba", 0x130BAC, 0x000000C - -gUnk_08130BB8:: @ 08130BB8 - .incbin "baserom.gba", 0x130BB8, 0x000000C - -gUnk_08130BC4:: @ 08130BC4 - .incbin "baserom.gba", 0x130BC4, 0x000000C - -gUnk_08130BD0:: @ 08130BD0 - .incbin "baserom.gba", 0x130BD0, 0x000000C - -gUnk_08130BDC:: @ 08130BDC - .incbin "baserom.gba", 0x130BDC, 0x000000C - -gUnk_08130BE8:: @ 08130BE8 - .incbin "baserom.gba", 0x130BE8, 0x000000C - -gUnk_08130BF4:: @ 08130BF4 - .incbin "baserom.gba", 0x130BF4, 0x000000F - -gUnk_08130C03:: @ 08130C03 - .incbin "baserom.gba", 0x130C03, 0x0000001 - -gUnk_08130C04:: @ 08130C04 - .incbin "baserom.gba", 0x130C04, 0x0000010 - -gUnk_08130C14:: @ 08130C14 - .incbin "baserom.gba", 0x130C14, 0x000000C - -gUnk_08130C20:: @ 08130C20 - .incbin "baserom.gba", 0x130C20, 0x000000C - -gUnk_08130C2C:: @ 08130C2C - .incbin "baserom.gba", 0x130C2C, 0x000000C - -gUnk_08130C38:: @ 08130C38 - .incbin "baserom.gba", 0x130C38, 0x000000C - -gUnk_08130C44:: @ 08130C44 - .incbin "baserom.gba", 0x130C44, 0x000000C - -gUnk_08130C50:: @ 08130C50 - .incbin "baserom.gba", 0x130C50, 0x000000C - -gUnk_08130C5C:: @ 08130C5C - .incbin "baserom.gba", 0x130C5C, 0x000000C - -gUnk_08130C68:: @ 08130C68 - .incbin "baserom.gba", 0x130C68, 0x000000C - -gUnk_08130C74:: @ 08130C74 - .incbin "baserom.gba", 0x130C74, 0x000000C - -gUnk_08130C80:: @ 08130C80 - .incbin "baserom.gba", 0x130C80, 0x000000C - -gUnk_08130C8C:: @ 08130C8C - .incbin "baserom.gba", 0x130C8C, 0x000000C - -gUnk_08130C98:: @ 08130C98 - .incbin "baserom.gba", 0x130C98, 0x000000C - -gUnk_08130CA4:: @ 08130CA4 - .incbin "baserom.gba", 0x130CA4, 0x000000C - -gUnk_08130CB0:: @ 08130CB0 - .incbin "baserom.gba", 0x130CB0, 0x000000C - -gUnk_08130CBC:: @ 08130CBC - .incbin "baserom.gba", 0x130CBC, 0x000000C - -gUnk_08130CC8:: @ 08130CC8 - .incbin "baserom.gba", 0x130CC8, 0x000000C - -gUnk_08130CD4:: @ 08130CD4 - .incbin "baserom.gba", 0x130CD4, 0x000000C - -gUnk_08130CE0:: @ 08130CE0 - .incbin "baserom.gba", 0x130CE0, 0x000000C - -gUnk_08130CEC:: @ 08130CEC - .incbin "baserom.gba", 0x130CEC, 0x000000C - -gUnk_08130CF8:: @ 08130CF8 - .incbin "baserom.gba", 0x130CF8, 0x000000C - -gUnk_08130D04:: @ 08130D04 - .incbin "baserom.gba", 0x130D04, 0x0000007 - -gUnk_08130D0B:: @ 08130D0B - .incbin "baserom.gba", 0x130D0B, 0x0000004 - -gUnk_08130D0F:: @ 08130D0F - .incbin "baserom.gba", 0x130D0F, 0x0000001 - -gUnk_08130D10:: @ 08130D10 - .incbin "baserom.gba", 0x130D10, 0x000000C - -gUnk_08130D1C:: @ 08130D1C - .incbin "baserom.gba", 0x130D1C, 0x000000C - -gUnk_08130D28:: @ 08130D28 - .incbin "baserom.gba", 0x130D28, 0x000000C - -gUnk_08130D34:: @ 08130D34 - .incbin "baserom.gba", 0x130D34, 0x000000C - -gUnk_08130D40:: @ 08130D40 - .incbin "baserom.gba", 0x130D40, 0x000000C - -gUnk_08130D4C:: @ 08130D4C - .incbin "baserom.gba", 0x130D4C, 0x000000C - -gUnk_08130D58:: @ 08130D58 - .incbin "baserom.gba", 0x130D58, 0x000000C - -gUnk_08130D64:: @ 08130D64 - .incbin "baserom.gba", 0x130D64, 0x000000C - -gUnk_08130D70:: @ 08130D70 - .incbin "baserom.gba", 0x130D70, 0x000000C - -gUnk_08130D7C:: @ 08130D7C - .incbin "baserom.gba", 0x130D7C, 0x000000C - -gUnk_08130D88:: @ 08130D88 - .incbin "baserom.gba", 0x130D88, 0x000000C - -gUnk_08130D94:: @ 08130D94 - .incbin "baserom.gba", 0x130D94, 0x000000C - -gUnk_08130DA0:: @ 08130DA0 - .incbin "baserom.gba", 0x130DA0, 0x000000C - -gUnk_08130DAC:: @ 08130DAC - .incbin "baserom.gba", 0x130DAC, 0x000000C - -gUnk_08130DB8:: @ 08130DB8 - .incbin "baserom.gba", 0x130DB8, 0x000000C - -gUnk_08130DC4:: @ 08130DC4 - .incbin "baserom.gba", 0x130DC4, 0x000000C - -gUnk_08130DD0:: @ 08130DD0 - .incbin "baserom.gba", 0x130DD0, 0x000000C - -gUnk_08130DDC:: @ 08130DDC - .incbin "baserom.gba", 0x130DDC, 0x000000C - -gUnk_08130DE8:: @ 08130DE8 - .incbin "baserom.gba", 0x130DE8, 0x000000C - -gUnk_08130DF4:: @ 08130DF4 - .incbin "baserom.gba", 0x130DF4, 0x000000C - -gUnk_08130E00:: @ 08130E00 - .incbin "baserom.gba", 0x130E00, 0x00000E6 - -gUnk_08130EE6:: @ 08130EE6 - .incbin "baserom.gba", 0x130EE6, 0x0000017 - -gUnk_08130EFD:: @ 08130EFD - .incbin "baserom.gba", 0x130EFD, 0x0000008 - -gUnk_08130F05:: @ 08130F05 - .incbin "baserom.gba", 0x130F05, 0x0000005 - -gUnk_08130F0A:: @ 08130F0A - .incbin "baserom.gba", 0x130F0A, 0x0000002 - -gUnk_08130F0C:: @ 08130F0C - .incbin "baserom.gba", 0x130F0C, 0x0000004 - -gUnk_08130F10:: @ 08130F10 - .incbin "baserom.gba", 0x130F10, 0x0000001 - -gUnk_08130F11:: @ 08130F11 - .incbin "baserom.gba", 0x130F11, 0x00000F4 - -gUnk_08131005:: @ 08131005 - .incbin "baserom.gba", 0x131005, 0x0000005 - -gUnk_0813100A:: @ 0813100A - .incbin "baserom.gba", 0x13100A, 0x0000026 - -gUnk_08131030:: @ 08131030 - .incbin "baserom.gba", 0x131030, 0x000000C - -gUnk_0813103C:: @ 0813103C - .incbin "baserom.gba", 0x13103C, 0x000000C - -gUnk_08131048:: @ 08131048 - .incbin "baserom.gba", 0x131048, 0x000000C - -gUnk_08131054:: @ 08131054 - .incbin "baserom.gba", 0x131054, 0x000000C - -gUnk_08131060:: @ 08131060 - .incbin "baserom.gba", 0x131060, 0x000000C - -gUnk_0813106C:: @ 0813106C - .incbin "baserom.gba", 0x13106C, 0x000000C - -gUnk_08131078:: @ 08131078 - .incbin "baserom.gba", 0x131078, 0x000000C - -gUnk_08131084:: @ 08131084 - .incbin "baserom.gba", 0x131084, 0x000000C - -gUnk_08131090:: @ 08131090 - .incbin "baserom.gba", 0x131090, 0x0000010 - -gUnk_081310A0:: @ 081310A0 - .incbin "baserom.gba", 0x1310A0, 0x000000C - -gUnk_081310AC:: @ 081310AC - .incbin "baserom.gba", 0x1310AC, 0x0000010 - -gUnk_081310BC:: @ 081310BC - .incbin "baserom.gba", 0x1310BC, 0x0000007 - -gUnk_081310C3:: @ 081310C3 - .incbin "baserom.gba", 0x1310C3, 0x0000009 - -gUnk_081310CC:: @ 081310CC - .incbin "baserom.gba", 0x1310CC, 0x000000C - -gUnk_081310D8:: @ 081310D8 - .incbin "baserom.gba", 0x1310D8, 0x000000C - -gUnk_081310E4:: @ 081310E4 - .incbin "baserom.gba", 0x1310E4, 0x000000C - -gUnk_081310F0:: @ 081310F0 - .incbin "baserom.gba", 0x1310F0, 0x0000005 - -gUnk_081310F5:: @ 081310F5 - .incbin "baserom.gba", 0x1310F5, 0x000000B - -gUnk_08131100:: @ 08131100 - .incbin "baserom.gba", 0x131100, 0x000000C - -gUnk_0813110C:: @ 0813110C - .incbin "baserom.gba", 0x13110C, 0x0000004 - -gUnk_08131110:: @ 08131110 - .incbin "baserom.gba", 0x131110, 0x000000C - -gUnk_0813111C:: @ 0813111C - .incbin "baserom.gba", 0x13111C, 0x0000010 - -gUnk_0813112C:: @ 0813112C - .incbin "baserom.gba", 0x13112C, 0x000000C - -gUnk_08131138:: @ 08131138 - .incbin "baserom.gba", 0x131138, 0x000000C - -gUnk_08131144:: @ 08131144 - .incbin "baserom.gba", 0x131144, 0x000000C - -gUnk_08131150:: @ 08131150 - .incbin "baserom.gba", 0x131150, 0x000000C - -gUnk_0813115C:: @ 0813115C - .incbin "baserom.gba", 0x13115C, 0x000000C - -gUnk_08131168:: @ 08131168 - .incbin "baserom.gba", 0x131168, 0x000000C - -gUnk_08131174:: @ 08131174 - .incbin "baserom.gba", 0x131174, 0x000000C - -gUnk_08131180:: @ 08131180 - .incbin "baserom.gba", 0x131180, 0x000000C - -gUnk_0813118C:: @ 0813118C - .incbin "baserom.gba", 0x13118C, 0x000000C - -gUnk_08131198:: @ 08131198 - .incbin "baserom.gba", 0x131198, 0x000000C - -gUnk_081311A4:: @ 081311A4 - .incbin "baserom.gba", 0x1311A4, 0x000000C - -gUnk_081311B0:: @ 081311B0 - .incbin "baserom.gba", 0x1311B0, 0x000000C - -gUnk_081311BC:: @ 081311BC - .incbin "baserom.gba", 0x1311BC, 0x0000010 - -gUnk_081311CC:: @ 081311CC - .incbin "baserom.gba", 0x1311CC, 0x000000C - -gUnk_081311D8:: @ 081311D8 - .incbin "baserom.gba", 0x1311D8, 0x000000C - -gUnk_081311E4:: @ 081311E4 - .incbin "baserom.gba", 0x1311E4, 0x0000010 - -gUnk_081311F4:: @ 081311F4 - .incbin "baserom.gba", 0x1311F4, 0x000000C - -gUnk_08131200:: @ 08131200 - .incbin "baserom.gba", 0x131200, 0x000000C - -gUnk_0813120C:: @ 0813120C - .incbin "baserom.gba", 0x13120C, 0x0000006 - -gUnk_08131212:: @ 08131212 - .incbin "baserom.gba", 0x131212, 0x0000002 - -gUnk_08131214:: @ 08131214 - .incbin "baserom.gba", 0x131214, 0x0000001 - -gUnk_08131215:: @ 08131215 - .incbin "baserom.gba", 0x131215, 0x0000003 - -gUnk_08131218:: @ 08131218 - .incbin "baserom.gba", 0x131218, 0x000000C - -gUnk_08131224:: @ 08131224 - .incbin "baserom.gba", 0x131224, 0x000000C - -gUnk_08131230:: @ 08131230 - .incbin "baserom.gba", 0x131230, 0x000000C - -gUnk_0813123C:: @ 0813123C - .incbin "baserom.gba", 0x13123C, 0x000000C - -gUnk_08131248:: @ 08131248 - .incbin "baserom.gba", 0x131248, 0x000000C - -gUnk_08131254:: @ 08131254 - .incbin "baserom.gba", 0x131254, 0x000000C - -gUnk_08131260:: @ 08131260 - .incbin "baserom.gba", 0x131260, 0x000000C - -gUnk_0813126C:: @ 0813126C - .incbin "baserom.gba", 0x13126C, 0x000000C - -gUnk_08131278:: @ 08131278 - .incbin "baserom.gba", 0x131278, 0x000000C - -gUnk_08131284:: @ 08131284 - .incbin "baserom.gba", 0x131284, 0x000000C - -gUnk_08131290:: @ 08131290 - .incbin "baserom.gba", 0x131290, 0x000000C - -gUnk_0813129C:: @ 0813129C - .incbin "baserom.gba", 0x13129C, 0x000000C - -gUnk_081312A8:: @ 081312A8 - .incbin "baserom.gba", 0x1312A8, 0x000000C - -gUnk_081312B4:: @ 081312B4 - .incbin "baserom.gba", 0x1312B4, 0x000000C - -gUnk_081312C0:: @ 081312C0 - .incbin "baserom.gba", 0x1312C0, 0x000000C - -gUnk_081312CC:: @ 081312CC - .incbin "baserom.gba", 0x1312CC, 0x000000C - -gUnk_081312D8:: @ 081312D8 - .incbin "baserom.gba", 0x1312D8, 0x000000C - -gUnk_081312E4:: @ 081312E4 - .incbin "baserom.gba", 0x1312E4, 0x000000C - -gUnk_081312F0:: @ 081312F0 - .incbin "baserom.gba", 0x1312F0, 0x000000C - -gUnk_081312FC:: @ 081312FC - .incbin "baserom.gba", 0x1312FC, 0x000000C - -gUnk_08131308:: @ 08131308 - .incbin "baserom.gba", 0x131308, 0x000000C - -gUnk_08131314:: @ 08131314 - .incbin "baserom.gba", 0x131314, 0x0000003 - -gUnk_08131317:: @ 08131317 - .incbin "baserom.gba", 0x131317, 0x0000001 - -gUnk_08131318:: @ 08131318 - .incbin "baserom.gba", 0x131318, 0x0000008 - -gUnk_08131320:: @ 08131320 - .incbin "baserom.gba", 0x131320, 0x000000C - -gUnk_0813132C:: @ 0813132C - .incbin "baserom.gba", 0x13132C, 0x000000C - -gUnk_08131338:: @ 08131338 - .incbin "baserom.gba", 0x131338, 0x000000C - -gUnk_08131344:: @ 08131344 - .incbin "baserom.gba", 0x131344, 0x000000C - -gUnk_08131350:: @ 08131350 - .incbin "baserom.gba", 0x131350, 0x000000C - -gUnk_0813135C:: @ 0813135C - .incbin "baserom.gba", 0x13135C, 0x000000C - -gUnk_08131368:: @ 08131368 - .incbin "baserom.gba", 0x131368, 0x000000C - -gUnk_08131374:: @ 08131374 - .incbin "baserom.gba", 0x131374, 0x000000C - -gUnk_08131380:: @ 08131380 - .incbin "baserom.gba", 0x131380, 0x000000C - -gUnk_0813138C:: @ 0813138C - .incbin "baserom.gba", 0x13138C, 0x0000010 - -gUnk_0813139C:: @ 0813139C - .incbin "baserom.gba", 0x13139C, 0x000000C - -gUnk_081313A8:: @ 081313A8 - .incbin "baserom.gba", 0x1313A8, 0x000000C - -gUnk_081313B4:: @ 081313B4 - .incbin "baserom.gba", 0x1313B4, 0x000000C - -gUnk_081313C0:: @ 081313C0 - .incbin "baserom.gba", 0x1313C0, 0x000000C - -gUnk_081313CC:: @ 081313CC - .incbin "baserom.gba", 0x1313CC, 0x000000C - -gUnk_081313D8:: @ 081313D8 - .incbin "baserom.gba", 0x1313D8, 0x000000C - -gUnk_081313E4:: @ 081313E4 - .incbin "baserom.gba", 0x1313E4, 0x000000C - -gUnk_081313F0:: @ 081313F0 - .incbin "baserom.gba", 0x1313F0, 0x000000C - -gUnk_081313FC:: @ 081313FC - .incbin "baserom.gba", 0x1313FC, 0x0000001 - -gUnk_081313FD:: @ 081313FD - .incbin "baserom.gba", 0x1313FD, 0x000000B - -gUnk_08131408:: @ 08131408 - .incbin "baserom.gba", 0x131408, 0x0000004 - -gUnk_0813140C:: @ 0813140C - .incbin "baserom.gba", 0x13140C, 0x0000004 - -gUnk_08131410:: @ 08131410 - .incbin "baserom.gba", 0x131410, 0x0000004 - -gUnk_08131414:: @ 08131414 - .incbin "baserom.gba", 0x131414, 0x000000C - -gUnk_08131420:: @ 08131420 - .incbin "baserom.gba", 0x131420, 0x000000C - -gUnk_0813142C:: @ 0813142C - .incbin "baserom.gba", 0x13142C, 0x0000004 - -gUnk_08131430:: @ 08131430 - .incbin "baserom.gba", 0x131430, 0x000000C - -gUnk_0813143C:: @ 0813143C - .incbin "baserom.gba", 0x13143C, 0x000000C - -gUnk_08131448:: @ 08131448 - .incbin "baserom.gba", 0x131448, 0x000000C - -gUnk_08131454:: @ 08131454 - .incbin "baserom.gba", 0x131454, 0x000000C - -gUnk_08131460:: @ 08131460 - .incbin "baserom.gba", 0x131460, 0x000000C - -gUnk_0813146C:: @ 0813146C - .incbin "baserom.gba", 0x13146C, 0x000000C - -gUnk_08131478:: @ 08131478 - .incbin "baserom.gba", 0x131478, 0x000000C - -gUnk_08131484:: @ 08131484 - .incbin "baserom.gba", 0x131484, 0x000000C - -gUnk_08131490:: @ 08131490 - .incbin "baserom.gba", 0x131490, 0x000000C - -gUnk_0813149C:: @ 0813149C - .incbin "baserom.gba", 0x13149C, 0x000000C - -gUnk_081314A8:: @ 081314A8 - .incbin "baserom.gba", 0x1314A8, 0x000000C - -gUnk_081314B4:: @ 081314B4 - .incbin "baserom.gba", 0x1314B4, 0x000000C - -gUnk_081314C0:: @ 081314C0 - .incbin "baserom.gba", 0x1314C0, 0x000000C - -gUnk_081314CC:: @ 081314CC - .incbin "baserom.gba", 0x1314CC, 0x000000C - -gUnk_081314D8:: @ 081314D8 - .incbin "baserom.gba", 0x1314D8, 0x000000C - -gUnk_081314E4:: @ 081314E4 - .incbin "baserom.gba", 0x1314E4, 0x000000C - -gUnk_081314F0:: @ 081314F0 - .incbin "baserom.gba", 0x1314F0, 0x000000C - -gUnk_081314FC:: @ 081314FC - .incbin "baserom.gba", 0x1314FC, 0x000000C - -gUnk_08131508:: @ 08131508 - .incbin "baserom.gba", 0x131508, 0x000000C - -gUnk_08131514:: @ 08131514 - .incbin "baserom.gba", 0x131514, 0x000000C - -gUnk_08131520:: @ 08131520 - .incbin "baserom.gba", 0x131520, 0x000000C - -gUnk_0813152C:: @ 0813152C - .incbin "baserom.gba", 0x13152C, 0x000000C - -gUnk_08131538:: @ 08131538 - .incbin "baserom.gba", 0x131538, 0x000000C - -gUnk_08131544:: @ 08131544 - .incbin "baserom.gba", 0x131544, 0x000000C - -gUnk_08131550:: @ 08131550 - .incbin "baserom.gba", 0x131550, 0x000000C - -gUnk_0813155C:: @ 0813155C - .incbin "baserom.gba", 0x13155C, 0x000000C - -gUnk_08131568:: @ 08131568 - .incbin "baserom.gba", 0x131568, 0x000000C - -gUnk_08131574:: @ 08131574 - .incbin "baserom.gba", 0x131574, 0x000000C - -gUnk_08131580:: @ 08131580 - .incbin "baserom.gba", 0x131580, 0x000000C - -gUnk_0813158C:: @ 0813158C - .incbin "baserom.gba", 0x13158C, 0x000000C - -gUnk_08131598:: @ 08131598 - .incbin "baserom.gba", 0x131598, 0x000000C - -gUnk_081315A4:: @ 081315A4 - .incbin "baserom.gba", 0x1315A4, 0x000000C - -gUnk_081315B0:: @ 081315B0 - .incbin "baserom.gba", 0x1315B0, 0x000000C - -gUnk_081315BC:: @ 081315BC - .incbin "baserom.gba", 0x1315BC, 0x000000C - -gUnk_081315C8:: @ 081315C8 - .incbin "baserom.gba", 0x1315C8, 0x000000C - -gUnk_081315D4:: @ 081315D4 - .incbin "baserom.gba", 0x1315D4, 0x0000009 - -gUnk_081315DD:: @ 081315DD - .incbin "baserom.gba", 0x1315DD, 0x0000003 - -gUnk_081315E0:: @ 081315E0 - .incbin "baserom.gba", 0x1315E0, 0x000000C - -gUnk_081315EC:: @ 081315EC - .incbin "baserom.gba", 0x1315EC, 0x000000C - -gUnk_081315F8:: @ 081315F8 - .incbin "baserom.gba", 0x1315F8, 0x000000C - -gUnk_08131604:: @ 08131604 - .incbin "baserom.gba", 0x131604, 0x000000C - -gUnk_08131610:: @ 08131610 - .incbin "baserom.gba", 0x131610, 0x000000B - -gUnk_0813161B:: @ 0813161B - .incbin "baserom.gba", 0x13161B, 0x0000001 - -gUnk_0813161C:: @ 0813161C - .incbin "baserom.gba", 0x13161C, 0x000000C - -gUnk_08131628:: @ 08131628 - .incbin "baserom.gba", 0x131628, 0x000000C - -gUnk_08131634:: @ 08131634 - .incbin "baserom.gba", 0x131634, 0x000000C - -gUnk_08131640:: @ 08131640 - .incbin "baserom.gba", 0x131640, 0x000000C - -gUnk_0813164C:: @ 0813164C - .incbin "baserom.gba", 0x13164C, 0x000000C - -gUnk_08131658:: @ 08131658 - .incbin "baserom.gba", 0x131658, 0x000000C - -gUnk_08131664:: @ 08131664 - .incbin "baserom.gba", 0x131664, 0x000000C - -gUnk_08131670:: @ 08131670 - .incbin "baserom.gba", 0x131670, 0x000000C - -gUnk_0813167C:: @ 0813167C - .incbin "baserom.gba", 0x13167C, 0x000000C - -gUnk_08131688:: @ 08131688 - .incbin "baserom.gba", 0x131688, 0x000000C - -gUnk_08131694:: @ 08131694 - .incbin "baserom.gba", 0x131694, 0x000000C - -gUnk_081316A0:: @ 081316A0 - .incbin "baserom.gba", 0x1316A0, 0x000004E - -gUnk_081316EE:: @ 081316EE - .incbin "baserom.gba", 0x1316EE, 0x000001A - -gUnk_08131708:: @ 08131708 - .incbin "baserom.gba", 0x131708, 0x0000008 - -gUnk_08131710:: @ 08131710 - .incbin "baserom.gba", 0x131710, 0x0000002 - -gUnk_08131712:: @ 08131712 - .incbin "baserom.gba", 0x131712, 0x0000001 - -gUnk_08131713:: @ 08131713 - .incbin "baserom.gba", 0x131713, 0x0000003 - -gUnk_08131716:: @ 08131716 - .incbin "baserom.gba", 0x131716, 0x0000009 - -gUnk_0813171F:: @ 0813171F - .incbin "baserom.gba", 0x13171F, 0x00000C3 - -gUnk_081317E2:: @ 081317E2 - .incbin "baserom.gba", 0x1317E2, 0x0000032 - -gUnk_08131814:: @ 08131814 - .incbin "baserom.gba", 0x131814, 0x0000001 - -gUnk_08131815:: @ 08131815 - .incbin "baserom.gba", 0x131815, 0x00000F7 - -gUnk_0813190C:: @ 0813190C - .incbin "baserom.gba", 0x13190C, 0x0000001 - -gUnk_0813190D:: @ 0813190D - .incbin "baserom.gba", 0x13190D, 0x0000008 - -gUnk_08131915:: @ 08131915 - .incbin "baserom.gba", 0x131915, 0x0000002 - -gUnk_08131917:: @ 08131917 - .incbin "baserom.gba", 0x131917, 0x0000001 - -gUnk_08131918:: @ 08131918 - .incbin "baserom.gba", 0x131918, 0x0000001 - -gUnk_08131919:: @ 08131919 - .incbin "baserom.gba", 0x131919, 0x0000004 - -gUnk_0813191D:: @ 0813191D - .incbin "baserom.gba", 0x13191D, 0x0000003 - -gUnk_08131920:: @ 08131920 - .incbin "baserom.gba", 0x131920, 0x0000008 - -gUnk_08131928:: @ 08131928 - .incbin "baserom.gba", 0x131928, 0x0000010 - -gUnk_08131938:: @ 08131938 - .incbin "baserom.gba", 0x131938, 0x0000010 - -gUnk_08131948:: @ 08131948 - .incbin "baserom.gba", 0x131948, 0x000000C - -gUnk_08131954:: @ 08131954 - .incbin "baserom.gba", 0x131954, 0x000000C - -gUnk_08131960:: @ 08131960 - .incbin "baserom.gba", 0x131960, 0x000000C - -gUnk_0813196C:: @ 0813196C - .incbin "baserom.gba", 0x13196C, 0x000000C - -gUnk_08131978:: @ 08131978 - .incbin "baserom.gba", 0x131978, 0x000000C - -gUnk_08131984:: @ 08131984 - .incbin "baserom.gba", 0x131984, 0x000000C - -gUnk_08131990:: @ 08131990 - .incbin "baserom.gba", 0x131990, 0x000000C - -gUnk_0813199C:: @ 0813199C - .incbin "baserom.gba", 0x13199C, 0x000000C - -gUnk_081319A8:: @ 081319A8 - .incbin "baserom.gba", 0x1319A8, 0x000000C - -gUnk_081319B4:: @ 081319B4 - .incbin "baserom.gba", 0x1319B4, 0x000000C - -gUnk_081319C0:: @ 081319C0 - .incbin "baserom.gba", 0x1319C0, 0x000000C - -gUnk_081319CC:: @ 081319CC - .incbin "baserom.gba", 0x1319CC, 0x000000C - -gUnk_081319D8:: @ 081319D8 - .incbin "baserom.gba", 0x1319D8, 0x000000C - -gUnk_081319E4:: @ 081319E4 - .incbin "baserom.gba", 0x1319E4, 0x0000014 - -gUnk_081319F8:: @ 081319F8 - .incbin "baserom.gba", 0x1319F8, 0x0000010 - -gUnk_08131A08:: @ 08131A08 - .incbin "baserom.gba", 0x131A08, 0x0000010 - -gUnk_08131A18:: @ 08131A18 - .incbin "baserom.gba", 0x131A18, 0x0000005 - -gUnk_08131A1D:: @ 08131A1D - .incbin "baserom.gba", 0x131A1D, 0x0000001 - -gUnk_08131A1E:: @ 08131A1E - .incbin "baserom.gba", 0x131A1E, 0x0000001 - -gUnk_08131A1F:: @ 08131A1F - .incbin "baserom.gba", 0x131A1F, 0x0000009 - -gUnk_08131A28:: @ 08131A28 - .incbin "baserom.gba", 0x131A28, 0x000000C - -gUnk_08131A34:: @ 08131A34 - .incbin "baserom.gba", 0x131A34, 0x000000C - -gUnk_08131A40:: @ 08131A40 - .incbin "baserom.gba", 0x131A40, 0x0000010 - -gUnk_08131A50:: @ 08131A50 - .incbin "baserom.gba", 0x131A50, 0x0000010 - -gUnk_08131A60:: @ 08131A60 - .incbin "baserom.gba", 0x131A60, 0x0000010 - -gUnk_08131A70:: @ 08131A70 - .incbin "baserom.gba", 0x131A70, 0x0000010 - -gUnk_08131A80:: @ 08131A80 - .incbin "baserom.gba", 0x131A80, 0x0000010 - -gUnk_08131A90:: @ 08131A90 - .incbin "baserom.gba", 0x131A90, 0x0000010 - -gUnk_08131AA0:: @ 08131AA0 - .incbin "baserom.gba", 0x131AA0, 0x0000014 - -gUnk_08131AB4:: @ 08131AB4 - .incbin "baserom.gba", 0x131AB4, 0x0000010 - -gUnk_08131AC4:: @ 08131AC4 - .incbin "baserom.gba", 0x131AC4, 0x0000014 - -gUnk_08131AD8:: @ 08131AD8 - .incbin "baserom.gba", 0x131AD8, 0x0000014 - -gUnk_08131AEC:: @ 08131AEC - .incbin "baserom.gba", 0x131AEC, 0x0000014 - -gUnk_08131B00:: @ 08131B00 - .incbin "baserom.gba", 0x131B00, 0x000000F - -gUnk_08131B0F:: @ 08131B0F - .incbin "baserom.gba", 0x131B0F, 0x0000001 - -gUnk_08131B10:: @ 08131B10 - .incbin "baserom.gba", 0x131B10, 0x0000008 - -gUnk_08131B18:: @ 08131B18 - .incbin "baserom.gba", 0x131B18, 0x0000001 - -gUnk_08131B19:: @ 08131B19 - .incbin "baserom.gba", 0x131B19, 0x0000003 - -gUnk_08131B1C:: @ 08131B1C - .incbin "baserom.gba", 0x131B1C, 0x0000004 - -gUnk_08131B20:: @ 08131B20 - .incbin "baserom.gba", 0x131B20, 0x0000002 - -gUnk_08131B22:: @ 08131B22 - .incbin "baserom.gba", 0x131B22, 0x0000002 - -gUnk_08131B24:: @ 08131B24 - .incbin "baserom.gba", 0x131B24, 0x0000010 - -gUnk_08131B34:: @ 08131B34 - .incbin "baserom.gba", 0x131B34, 0x0000010 - -gUnk_08131B44:: @ 08131B44 - .incbin "baserom.gba", 0x131B44, 0x0000010 - -gUnk_08131B54:: @ 08131B54 - .incbin "baserom.gba", 0x131B54, 0x0000010 - -gUnk_08131B64:: @ 08131B64 - .incbin "baserom.gba", 0x131B64, 0x000000C - -gUnk_08131B70:: @ 08131B70 - .incbin "baserom.gba", 0x131B70, 0x000000C - -gUnk_08131B7C:: @ 08131B7C - .incbin "baserom.gba", 0x131B7C, 0x000000C - -gUnk_08131B88:: @ 08131B88 - .incbin "baserom.gba", 0x131B88, 0x000000C - -gUnk_08131B94:: @ 08131B94 - .incbin "baserom.gba", 0x131B94, 0x000000C - -gUnk_08131BA0:: @ 08131BA0 - .incbin "baserom.gba", 0x131BA0, 0x000000C - -gUnk_08131BAC:: @ 08131BAC - .incbin "baserom.gba", 0x131BAC, 0x000000C - -gUnk_08131BB8:: @ 08131BB8 - .incbin "baserom.gba", 0x131BB8, 0x000000C - -gUnk_08131BC4:: @ 08131BC4 - .incbin "baserom.gba", 0x131BC4, 0x000000C - -gUnk_08131BD0:: @ 08131BD0 - .incbin "baserom.gba", 0x131BD0, 0x000000C - -gUnk_08131BDC:: @ 08131BDC - .incbin "baserom.gba", 0x131BDC, 0x000000C - -gUnk_08131BE8:: @ 08131BE8 - .incbin "baserom.gba", 0x131BE8, 0x0000010 - -gUnk_08131BF8:: @ 08131BF8 - .incbin "baserom.gba", 0x131BF8, 0x000000C - -gUnk_08131C04:: @ 08131C04 - .incbin "baserom.gba", 0x131C04, 0x000000C - -gUnk_08131C10:: @ 08131C10 - .incbin "baserom.gba", 0x131C10, 0x000000C - -gUnk_08131C1C:: @ 08131C1C - .incbin "baserom.gba", 0x131C1C, 0x0000002 - -gUnk_08131C1E:: @ 08131C1E - .incbin "baserom.gba", 0x131C1E, 0x0000005 - -gUnk_08131C23:: @ 08131C23 - .incbin "baserom.gba", 0x131C23, 0x0000002 - -gUnk_08131C25:: @ 08131C25 - .incbin "baserom.gba", 0x131C25, 0x0000003 - -gUnk_08131C28:: @ 08131C28 - .incbin "baserom.gba", 0x131C28, 0x000000C - -gUnk_08131C34:: @ 08131C34 - .incbin "baserom.gba", 0x131C34, 0x000000C - -gUnk_08131C40:: @ 08131C40 - .incbin "baserom.gba", 0x131C40, 0x0000010 - -gUnk_08131C50:: @ 08131C50 - .incbin "baserom.gba", 0x131C50, 0x000000C - -gUnk_08131C5C:: @ 08131C5C - .incbin "baserom.gba", 0x131C5C, 0x000000C - -gUnk_08131C68:: @ 08131C68 - .incbin "baserom.gba", 0x131C68, 0x000000C - -gUnk_08131C74:: @ 08131C74 - .incbin "baserom.gba", 0x131C74, 0x000000C - -gUnk_08131C80:: @ 08131C80 - .incbin "baserom.gba", 0x131C80, 0x000000C - -gUnk_08131C8C:: @ 08131C8C - .incbin "baserom.gba", 0x131C8C, 0x000000C - -gUnk_08131C98:: @ 08131C98 - .incbin "baserom.gba", 0x131C98, 0x0000010 - -gUnk_08131CA8:: @ 08131CA8 - .incbin "baserom.gba", 0x131CA8, 0x000000C - -gUnk_08131CB4:: @ 08131CB4 - .incbin "baserom.gba", 0x131CB4, 0x000000C - -gUnk_08131CC0:: @ 08131CC0 - .incbin "baserom.gba", 0x131CC0, 0x000000C - -gUnk_08131CCC:: @ 08131CCC - .incbin "baserom.gba", 0x131CCC, 0x000000C - -gUnk_08131CD8:: @ 08131CD8 - .incbin "baserom.gba", 0x131CD8, 0x000000C - -gUnk_08131CE4:: @ 08131CE4 - .incbin "baserom.gba", 0x131CE4, 0x000000C - -gUnk_08131CF0:: @ 08131CF0 - .incbin "baserom.gba", 0x131CF0, 0x000000C - -gUnk_08131CFC:: @ 08131CFC - .incbin "baserom.gba", 0x131CFC, 0x000000C - -gUnk_08131D08:: @ 08131D08 - .incbin "baserom.gba", 0x131D08, 0x000000C - -gUnk_08131D14:: @ 08131D14 - .incbin "baserom.gba", 0x131D14, 0x0000005 - -gUnk_08131D19:: @ 08131D19 - .incbin "baserom.gba", 0x131D19, 0x0000006 - -gUnk_08131D1F:: @ 08131D1F - .incbin "baserom.gba", 0x131D1F, 0x0000001 - -gUnk_08131D20:: @ 08131D20 - .incbin "baserom.gba", 0x131D20, 0x0000002 - -gUnk_08131D22:: @ 08131D22 - .incbin "baserom.gba", 0x131D22, 0x0000002 - -gUnk_08131D24:: @ 08131D24 - .incbin "baserom.gba", 0x131D24, 0x0000001 - -gUnk_08131D25:: @ 08131D25 - .incbin "baserom.gba", 0x131D25, 0x0000001 - -gUnk_08131D26:: @ 08131D26 - .incbin "baserom.gba", 0x131D26, 0x0000004 - -gUnk_08131D2A:: @ 08131D2A - .incbin "baserom.gba", 0x131D2A, 0x0000002 - -gUnk_08131D2C:: @ 08131D2C - .incbin "baserom.gba", 0x131D2C, 0x000000C - -gUnk_08131D38:: @ 08131D38 - .incbin "baserom.gba", 0x131D38, 0x000000C - -gUnk_08131D44:: @ 08131D44 - .incbin "baserom.gba", 0x131D44, 0x000000C - -gUnk_08131D50:: @ 08131D50 - .incbin "baserom.gba", 0x131D50, 0x000000C - -gUnk_08131D5C:: @ 08131D5C - .incbin "baserom.gba", 0x131D5C, 0x000000C - -gUnk_08131D68:: @ 08131D68 - .incbin "baserom.gba", 0x131D68, 0x000000C - -gUnk_08131D74:: @ 08131D74 - .incbin "baserom.gba", 0x131D74, 0x000000C - -gUnk_08131D80:: @ 08131D80 - .incbin "baserom.gba", 0x131D80, 0x000000C - -gUnk_08131D8C:: @ 08131D8C - .incbin "baserom.gba", 0x131D8C, 0x000000C - -gUnk_08131D98:: @ 08131D98 - .incbin "baserom.gba", 0x131D98, 0x000000C - -gUnk_08131DA4:: @ 08131DA4 - .incbin "baserom.gba", 0x131DA4, 0x000000C - -gUnk_08131DB0:: @ 08131DB0 - .incbin "baserom.gba", 0x131DB0, 0x000000C - -gUnk_08131DBC:: @ 08131DBC - .incbin "baserom.gba", 0x131DBC, 0x000000C - -gUnk_08131DC8:: @ 08131DC8 - .incbin "baserom.gba", 0x131DC8, 0x000000C - -gUnk_08131DD4:: @ 08131DD4 - .incbin "baserom.gba", 0x131DD4, 0x000000C - -gUnk_08131DE0:: @ 08131DE0 - .incbin "baserom.gba", 0x131DE0, 0x000000C - -gUnk_08131DEC:: @ 08131DEC - .incbin "baserom.gba", 0x131DEC, 0x0000003 - -gUnk_08131DEF:: @ 08131DEF - .incbin "baserom.gba", 0x131DEF, 0x0000009 - -gUnk_08131DF8:: @ 08131DF8 - .incbin "baserom.gba", 0x131DF8, 0x000000C - -gUnk_08131E04:: @ 08131E04 - .incbin "baserom.gba", 0x131E04, 0x000000C - -gUnk_08131E10:: @ 08131E10 - .incbin "baserom.gba", 0x131E10, 0x000000C - -gUnk_08131E1C:: @ 08131E1C - .incbin "baserom.gba", 0x131E1C, 0x000000B - -gUnk_08131E27:: @ 08131E27 - .incbin "baserom.gba", 0x131E27, 0x0000001 - -gUnk_08131E28:: @ 08131E28 - .incbin "baserom.gba", 0x131E28, 0x0000001 - -gUnk_08131E29:: @ 08131E29 - .incbin "baserom.gba", 0x131E29, 0x000000A - -gUnk_08131E33:: @ 08131E33 - .incbin "baserom.gba", 0x131E33, 0x0000001 - -gUnk_08131E34:: @ 08131E34 - .incbin "baserom.gba", 0x131E34, 0x000000C - -gUnk_08131E40:: @ 08131E40 - .incbin "baserom.gba", 0x131E40, 0x000000C - -gUnk_08131E4C:: @ 08131E4C - .incbin "baserom.gba", 0x131E4C, 0x000000C - -gUnk_08131E58:: @ 08131E58 - .incbin "baserom.gba", 0x131E58, 0x000000C - -gUnk_08131E64:: @ 08131E64 - .incbin "baserom.gba", 0x131E64, 0x000000C - -gUnk_08131E70:: @ 08131E70 - .incbin "baserom.gba", 0x131E70, 0x000000C - -gUnk_08131E7C:: @ 08131E7C - .incbin "baserom.gba", 0x131E7C, 0x000000C - -gUnk_08131E88:: @ 08131E88 - .incbin "baserom.gba", 0x131E88, 0x000000C - -gUnk_08131E94:: @ 08131E94 - .incbin "baserom.gba", 0x131E94, 0x000000C - -gUnk_08131EA0:: @ 08131EA0 - .incbin "baserom.gba", 0x131EA0, 0x000000C - -gUnk_08131EAC:: @ 08131EAC - .incbin "baserom.gba", 0x131EAC, 0x000000C - -gUnk_08131EB8:: @ 08131EB8 - .incbin "baserom.gba", 0x131EB8, 0x000000C - -gUnk_08131EC4:: @ 08131EC4 - .incbin "baserom.gba", 0x131EC4, 0x000000C - -gUnk_08131ED0:: @ 08131ED0 - .incbin "baserom.gba", 0x131ED0, 0x000000C - -gUnk_08131EDC:: @ 08131EDC - .incbin "baserom.gba", 0x131EDC, 0x000000C - -gUnk_08131EE8:: @ 08131EE8 - .incbin "baserom.gba", 0x131EE8, 0x000000C - -gUnk_08131EF4:: @ 08131EF4 - .incbin "baserom.gba", 0x131EF4, 0x000000C - -gUnk_08131F00:: @ 08131F00 - .incbin "baserom.gba", 0x131F00, 0x000000C - -gUnk_08131F0C:: @ 08131F0C - .incbin "baserom.gba", 0x131F0C, 0x000000C - -gUnk_08131F18:: @ 08131F18 - .incbin "baserom.gba", 0x131F18, 0x000000A - -gUnk_08131F22:: @ 08131F22 - .incbin "baserom.gba", 0x131F22, 0x0000002 - -gUnk_08131F24:: @ 08131F24 - .incbin "baserom.gba", 0x131F24, 0x0000007 - -gUnk_08131F2B:: @ 08131F2B - .incbin "baserom.gba", 0x131F2B, 0x0000004 - -gUnk_08131F2F:: @ 08131F2F - .incbin "baserom.gba", 0x131F2F, 0x0000001 - -gUnk_08131F30:: @ 08131F30 - .incbin "baserom.gba", 0x131F30, 0x0000002 - -gUnk_08131F32:: @ 08131F32 - .incbin "baserom.gba", 0x131F32, 0x000000A - -gUnk_08131F3C:: @ 08131F3C - .incbin "baserom.gba", 0x131F3C, 0x000000C - -gUnk_08131F48:: @ 08131F48 - .incbin "baserom.gba", 0x131F48, 0x000000C - -gUnk_08131F54:: @ 08131F54 - .incbin "baserom.gba", 0x131F54, 0x000000C - -gUnk_08131F60:: @ 08131F60 - .incbin "baserom.gba", 0x131F60, 0x000000C - -gUnk_08131F6C:: @ 08131F6C - .incbin "baserom.gba", 0x131F6C, 0x000000C - -gUnk_08131F78:: @ 08131F78 - .incbin "baserom.gba", 0x131F78, 0x000000C - -gUnk_08131F84:: @ 08131F84 - .incbin "baserom.gba", 0x131F84, 0x000000C - -gUnk_08131F90:: @ 08131F90 - .incbin "baserom.gba", 0x131F90, 0x000000C - -gUnk_08131F9C:: @ 08131F9C - .incbin "baserom.gba", 0x131F9C, 0x000000C - -gUnk_08131FA8:: @ 08131FA8 - .incbin "baserom.gba", 0x131FA8, 0x000000C - -gUnk_08131FB4:: @ 08131FB4 - .incbin "baserom.gba", 0x131FB4, 0x000000C - -gUnk_08131FC0:: @ 08131FC0 - .incbin "baserom.gba", 0x131FC0, 0x000000C - -gUnk_08131FCC:: @ 08131FCC - .incbin "baserom.gba", 0x131FCC, 0x000000C - -gUnk_08131FD8:: @ 08131FD8 - .incbin "baserom.gba", 0x131FD8, 0x000000C - -gUnk_08131FE4:: @ 08131FE4 - .incbin "baserom.gba", 0x131FE4, 0x000000C - -gUnk_08131FF0:: @ 08131FF0 - .incbin "baserom.gba", 0x131FF0, 0x000000C - -gUnk_08131FFC:: @ 08131FFC - .incbin "baserom.gba", 0x131FFC, 0x0000003 - -gUnk_08131FFF:: @ 08131FFF - .incbin "baserom.gba", 0x131FFF, 0x0000007 - -gUnk_08132006:: @ 08132006 - .incbin "baserom.gba", 0x132006, 0x0000002 - -gUnk_08132008:: @ 08132008 - .incbin "baserom.gba", 0x132008, 0x000000C - -gUnk_08132014:: @ 08132014 - .incbin "baserom.gba", 0x132014, 0x000000C - -gUnk_08132020:: @ 08132020 - .incbin "baserom.gba", 0x132020, 0x0000009 - -gUnk_08132029:: @ 08132029 - .incbin "baserom.gba", 0x132029, 0x0000001 - -gUnk_0813202A:: @ 0813202A - .incbin "baserom.gba", 0x13202A, 0x0000002 - -gUnk_0813202C:: @ 0813202C - .incbin "baserom.gba", 0x13202C, 0x0000001 - -gUnk_0813202D:: @ 0813202D - .incbin "baserom.gba", 0x13202D, 0x0000002 - -gUnk_0813202F:: @ 0813202F - .incbin "baserom.gba", 0x13202F, 0x0000009 - -gUnk_08132038:: @ 08132038 - .incbin "baserom.gba", 0x132038, 0x000000C - -gUnk_08132044:: @ 08132044 - .incbin "baserom.gba", 0x132044, 0x000000C - -gUnk_08132050:: @ 08132050 - .incbin "baserom.gba", 0x132050, 0x000000C - -gUnk_0813205C:: @ 0813205C - .incbin "baserom.gba", 0x13205C, 0x000000C - -gUnk_08132068:: @ 08132068 - .incbin "baserom.gba", 0x132068, 0x000000C - -gUnk_08132074:: @ 08132074 - .incbin "baserom.gba", 0x132074, 0x000000C - -gUnk_08132080:: @ 08132080 - .incbin "baserom.gba", 0x132080, 0x000000C - -gUnk_0813208C:: @ 0813208C - .incbin "baserom.gba", 0x13208C, 0x000001C - -gUnk_081320A8:: @ 081320A8 - .incbin "baserom.gba", 0x1320A8, 0x0000010 - -gUnk_081320B8:: @ 081320B8 - .incbin "baserom.gba", 0x1320B8, 0x000000C - -gUnk_081320C4:: @ 081320C4 - .incbin "baserom.gba", 0x1320C4, 0x0000008 - -gUnk_081320CC:: @ 081320CC - .incbin "baserom.gba", 0x1320CC, 0x0000008 - -gUnk_081320D4:: @ 081320D4 - .incbin "baserom.gba", 0x1320D4, 0x0000010 - -gUnk_081320E4:: @ 081320E4 - .incbin "baserom.gba", 0x1320E4, 0x000000C - -gUnk_081320F0:: @ 081320F0 - .incbin "baserom.gba", 0x1320F0, 0x000000C - -gUnk_081320FC:: @ 081320FC - .incbin "baserom.gba", 0x1320FC, 0x0000010 - -gUnk_0813210C:: @ 0813210C - .incbin "baserom.gba", 0x13210C, 0x0000113 - -gUnk_0813221F:: @ 0813221F - .incbin "baserom.gba", 0x13221F, 0x0000011 - -gUnk_08132230:: @ 08132230 - .incbin "baserom.gba", 0x132230, 0x0000002 - -gUnk_08132232:: @ 08132232 - .incbin "baserom.gba", 0x132232, 0x00000F2 - -gUnk_08132324:: @ 08132324 - .incbin "baserom.gba", 0x132324, 0x0000038 - -gUnk_0813235C:: @ 0813235C - .incbin "baserom.gba", 0x13235C, 0x0000050 - -gUnk_081323AC:: @ 081323AC - .incbin "baserom.gba", 0x1323AC, 0x0000030 - -gUnk_081323DC:: @ 081323DC - .incbin "baserom.gba", 0x1323DC, 0x0000030 - -gUnk_0813240C:: @ 0813240C - .incbin "baserom.gba", 0x13240C, 0x0000010 - -gUnk_0813241C:: @ 0813241C - .incbin "baserom.gba", 0x13241C, 0x0000010 - -gUnk_0813242C:: @ 0813242C - .incbin "baserom.gba", 0x13242C, 0x0000020 - -gUnk_0813244C:: @ 0813244C - .incbin "baserom.gba", 0x13244C, 0x0000040 - -gUnk_0813248C:: @ 0813248C - .incbin "baserom.gba", 0x13248C, 0x0000020 - -gUnk_081324AC:: @ 081324AC - .incbin "baserom.gba", 0x1324AC, 0x0000040 - -gUnk_081324EC:: @ 081324EC - .incbin "baserom.gba", 0x1324EC, 0x000001A - -gUnk_08132506:: @ 08132506 - .incbin "baserom.gba", 0x132506, 0x0000006 - -gUnk_0813250C:: @ 0813250C - .incbin "baserom.gba", 0x13250C, 0x0000020 - -gUnk_0813252C:: @ 0813252C - .incbin "baserom.gba", 0x13252C, 0x0000040 - -gUnk_0813256C:: @ 0813256C - .incbin "baserom.gba", 0x13256C, 0x0000050 - -gUnk_081325BC:: @ 081325BC - .incbin "baserom.gba", 0x1325BC, 0x0000065 - -gUnk_08132621:: @ 08132621 - .incbin "baserom.gba", 0x132621, 0x0000012 - -gUnk_08132633:: @ 08132633 - .incbin "baserom.gba", 0x132633, 0x0000069 - -gUnk_0813269C:: @ 0813269C - .incbin "baserom.gba", 0x13269C, 0x0000030 - -gUnk_081326CC:: @ 081326CC - .incbin "baserom.gba", 0x1326CC, 0x0000020 - -gUnk_081326EC:: @ 081326EC - .incbin "baserom.gba", 0x1326EC, 0x0000014 - -gUnk_08132700:: @ 08132700 - .incbin "baserom.gba", 0x132700, 0x0000014 - -gUnk_08132714:: @ 08132714 - .incbin "baserom.gba", 0x132714, 0x0000020 - -gUnk_08132734:: @ 08132734 - .incbin "baserom.gba", 0x132734, 0x0000001 - -gUnk_08132735:: @ 08132735 - .incbin "baserom.gba", 0x132735, 0x0000001 - -gUnk_08132736:: @ 08132736 - .incbin "baserom.gba", 0x132736, 0x000000E - -gUnk_08132744:: @ 08132744 - .incbin "baserom.gba", 0x132744, 0x0000010 - -gUnk_08132754:: @ 08132754 - .incbin "baserom.gba", 0x132754, 0x0000010 - -gUnk_08132764:: @ 08132764 - .incbin "baserom.gba", 0x132764, 0x0000010 - -gUnk_08132774:: @ 08132774 - .incbin "baserom.gba", 0x132774, 0x0000010 - -gUnk_08132784:: @ 08132784 - .incbin "baserom.gba", 0x132784, 0x0000010 - -gUnk_08132794:: @ 08132794 - .incbin "baserom.gba", 0x132794, 0x0000018 - -gUnk_081327AC:: @ 081327AC - .incbin "baserom.gba", 0x1327AC, 0x0000018 - -gUnk_081327C4:: @ 081327C4 - .incbin "baserom.gba", 0x1327C4, 0x0000018 - -gUnk_081327DC:: @ 081327DC - .incbin "baserom.gba", 0x1327DC, 0x0000034 - -gUnk_08132810:: @ 08132810 - .incbin "baserom.gba", 0x132810, 0x0000017 - -gUnk_08132827:: @ 08132827 - .incbin "baserom.gba", 0x132827, 0x00002B9 - -gUnk_08132AE0:: @ 08132AE0 - .incbin "baserom.gba", 0x132AE0, 0x000000A - -gUnk_08132AEA:: @ 08132AEA - .incbin "baserom.gba", 0x132AEA, 0x000000A - -gUnk_08132AF4:: @ 08132AF4 - .incbin "baserom.gba", 0x132AF4, 0x000000A - -gUnk_08132AFE:: @ 08132AFE - .incbin "baserom.gba", 0x132AFE, 0x000000E - -gUnk_08132B0C:: @ 08132B0C - .incbin "baserom.gba", 0x132B0C, 0x000000E - -gUnk_08132B1A:: @ 08132B1A - .incbin "baserom.gba", 0x132B1A, 0x000000E - -gUnk_08132B28:: @ 08132B28 - .incbin "baserom.gba", 0x132B28, 0x0000008 - -gUnk_08132B30:: @ 08132B30 - .incbin "baserom.gba", 0x132B30, 0x0000203 - -gUnk_08132D33:: @ 08132D33 - .incbin "baserom.gba", 0x132D33, 0x00002E6 - -gUnk_08133019:: @ 08133019 - .incbin "baserom.gba", 0x133019, 0x00000F8 - -gUnk_08133111:: @ 08133111 - .incbin "baserom.gba", 0x133111, 0x0000200 - -gUnk_08133311:: @ 08133311 - .incbin "baserom.gba", 0x133311, 0x0000022 - -gUnk_08133333:: @ 08133333 - .incbin "baserom.gba", 0x133333, 0x0000035 - -gUnk_08133368:: @ 08133368 - .incbin "baserom.gba", 0x133368, 0x00005B0 - -gUnk_08133918:: @ 08133918 - .incbin "baserom.gba", 0x133918, 0x0000020 - -gUnk_08133938:: @ 08133938 - .incbin "baserom.gba", 0x133938, 0x0000020 - -gUnk_08133958:: @ 08133958 - .incbin "baserom.gba", 0x133958, 0x0000020 - -gUnk_08133978:: @ 08133978 - .incbin "baserom.gba", 0x133978, 0x0000020 - -gUnk_08133998:: @ 08133998 - .incbin "baserom.gba", 0x133998, 0x0000020 - -gUnk_081339B8:: @ 081339B8 - .incbin "baserom.gba", 0x1339B8, 0x0000020 - -gUnk_081339D8:: @ 081339D8 - .incbin "baserom.gba", 0x1339D8, 0x0000020 - -gUnk_081339F8:: @ 081339F8 - .incbin "baserom.gba", 0x1339F8, 0x0000020 - -gUnk_08133A18:: @ 08133A18 - .incbin "baserom.gba", 0x133A18, 0x0000028 - -gUnk_08133A40:: @ 08133A40 - .incbin "baserom.gba", 0x133A40, 0x000001A - -gUnk_08133A5A:: @ 08133A5A - .incbin "baserom.gba", 0x133A5A, 0x000000D - -gUnk_08133A67:: @ 08133A67 - .incbin "baserom.gba", 0x133A67, 0x00004E1 - -gUnk_08133F48:: @ 08133F48 - .incbin "baserom.gba", 0x133F48, 0x0000080 - -gUnk_08133FC8:: @ 08133FC8 - .incbin "baserom.gba", 0x133FC8, 0x0000014 - -gUnk_08133FDC:: @ 08133FDC - .incbin "baserom.gba", 0x133FDC, 0x0000100 - -gUnk_081340DC:: @ 081340DC - .incbin "baserom.gba", 0x1340DC, 0x000012C - -gUnk_08134208:: @ 08134208 - .incbin "baserom.gba", 0x134208, 0x0000004 - -gUnk_0813420C:: @ 0813420C - .incbin "baserom.gba", 0x13420C, 0x00000DC - -gUnk_081342E8:: @ 081342E8 - .incbin "baserom.gba", 0x1342E8, 0x000004B - -gUnk_08134333:: @ 08134333 - .incbin "baserom.gba", 0x134333, 0x0000005 - -gUnk_08134338:: @ 08134338 - .incbin "baserom.gba", 0x134338, 0x0000008 - -gUnk_08134340:: @ 08134340 - .incbin "baserom.gba", 0x134340, 0x00000C8 - -gUnk_08134408:: @ 08134408 - .incbin "baserom.gba", 0x134408, 0x0000004 - -gUnk_0813440C:: @ 0813440C - .incbin "baserom.gba", 0x13440C, 0x0000032 - -gUnk_0813443E:: @ 0813443E - .incbin "baserom.gba", 0x13443E, 0x000000A - -gUnk_08134448:: @ 08134448 - .incbin "baserom.gba", 0x134448, 0x0000014 - -gUnk_0813445C:: @ 0813445C - .incbin "baserom.gba", 0x13445C, 0x0000028 - -gUnk_08134484:: @ 08134484 - .incbin "baserom.gba", 0x134484, 0x0000028 - -gUnk_081344AC:: @ 081344AC - .incbin "baserom.gba", 0x1344AC, 0x0000018 - -gUnk_081344C4:: @ 081344C4 - .incbin "baserom.gba", 0x1344C4, 0x00002D0 - -gUnk_08134794:: @ 08134794 - .incbin "baserom.gba", 0x134794, 0x0000004 - -gUnk_08134798:: @ 08134798 - .incbin "baserom.gba", 0x134798, 0x0000028 - -gUnk_081347C0:: @ 081347C0 - .incbin "baserom.gba", 0x1347C0, 0x0000004 - -gUnk_081347C4:: @ 081347C4 - .incbin "baserom.gba", 0x1347C4, 0x000003C - -gUnk_08134800:: @ 08134800 - .incbin "baserom.gba", 0x134800, 0x0000050 - -gUnk_08134850:: @ 08134850 - .incbin "baserom.gba", 0x134850, 0x00000B4 - -gUnk_08134904:: @ 08134904 - .incbin "baserom.gba", 0x134904, 0x0000064 - -gUnk_08134968:: @ 08134968 - .incbin "baserom.gba", 0x134968, 0x00000C8 - -gUnk_08134A30:: @ 08134A30 - .incbin "baserom.gba", 0x134A30, 0x0000014 - -gUnk_08134A44:: @ 08134A44 - .incbin "baserom.gba", 0x134A44, 0x0000028 - -gUnk_08134A6C:: @ 08134A6C - .incbin "baserom.gba", 0x134A6C, 0x00000A0 - -gUnk_08134B0C:: @ 08134B0C - .incbin "baserom.gba", 0x134B0C, 0x000003C - -gUnk_08134B48:: @ 08134B48 - .incbin "baserom.gba", 0x134B48, 0x0000028 - -gUnk_08134B70:: @ 08134B70 - .incbin "baserom.gba", 0x134B70, 0x000003C - -gUnk_08134BAC:: @ 08134BAC - .incbin "baserom.gba", 0x134BAC, 0x0000038 - -gUnk_08134BE4:: @ 08134BE4 - .incbin "baserom.gba", 0x134BE4, 0x00000A4 - -gUnk_08134C88:: @ 08134C88 - .incbin "baserom.gba", 0x134C88, 0x0000140 - -gUnk_08134DC8:: @ 08134DC8 - .incbin "baserom.gba", 0x134DC8, 0x00000DC - -gUnk_08134EA4:: @ 08134EA4 - .incbin "baserom.gba", 0x134EA4, 0x000003C - -gUnk_08134EE0:: @ 08134EE0 - .incbin "baserom.gba", 0x134EE0, 0x0000028 - -gUnk_08134F08:: @ 08134F08 - .incbin "baserom.gba", 0x134F08, 0x0000028 - -gUnk_08134F30:: @ 08134F30 - .incbin "baserom.gba", 0x134F30, 0x000008C - -gUnk_08134FBC:: @ 08134FBC - .incbin "baserom.gba", 0x134FBC, 0x000008C - -gUnk_08135048:: @ 08135048 - .incbin "baserom.gba", 0x135048, 0x0000028 - -gUnk_08135070:: @ 08135070 - .incbin "baserom.gba", 0x135070, 0x0000004 - -gUnk_08135074:: @ 08135074 - .incbin "baserom.gba", 0x135074, 0x0000028 - -gUnk_0813509C:: @ 0813509C - .incbin "baserom.gba", 0x13509C, 0x0000004 - -gUnk_081350A0:: @ 081350A0 - .incbin "baserom.gba", 0x1350A0, 0x00000C8 - -gUnk_08135168:: @ 08135168 - .incbin "baserom.gba", 0x135168, 0x0000028 - -gUnk_08135190:: @ 08135190 - .incbin "baserom.gba", 0x135190, 0x000003C - -gUnk_081351CC:: @ 081351CC - .incbin "baserom.gba", 0x1351CC, 0x0000008 - -gUnk_081351D4:: @ 081351D4 - .incbin "baserom.gba", 0x1351D4, 0x0000104 - -gUnk_081352D8:: @ 081352D8 - .incbin "baserom.gba", 0x1352D8, 0x0000004 - -gUnk_081352DC:: @ 081352DC - .incbin "baserom.gba", 0x1352DC, 0x0000028 - -gUnk_08135304:: @ 08135304 - .incbin "baserom.gba", 0x135304, 0x0000028 - -gUnk_0813532C:: @ 0813532C - .incbin "baserom.gba", 0x13532C, 0x0000028 - -gUnk_08135354:: @ 08135354 - .incbin "baserom.gba", 0x135354, 0x0000028 - -gUnk_0813537C:: @ 0813537C - .incbin "baserom.gba", 0x13537C, 0x0000028 - -gUnk_081353A4:: @ 081353A4 - .incbin "baserom.gba", 0x1353A4, 0x000003C - -gUnk_081353E0:: @ 081353E0 - .incbin "baserom.gba", 0x1353E0, 0x000003C - -gUnk_0813541C:: @ 0813541C - .incbin "baserom.gba", 0x13541C, 0x000003C - -gUnk_08135458:: @ 08135458 - .incbin "baserom.gba", 0x135458, 0x000003C - -gUnk_08135494:: @ 08135494 - .incbin "baserom.gba", 0x135494, 0x000003C - -gUnk_081354D0:: @ 081354D0 - .incbin "baserom.gba", 0x1354D0, 0x0000054 - -gUnk_08135524:: @ 08135524 - .incbin "baserom.gba", 0x135524, 0x0000028 - -gUnk_0813554C:: @ 0813554C - .incbin "baserom.gba", 0x13554C, 0x0000004 - -gUnk_08135550:: @ 08135550 - .incbin "baserom.gba", 0x135550, 0x0000028 - -gUnk_08135578:: @ 08135578 - .incbin "baserom.gba", 0x135578, 0x0000004 - -gUnk_0813557C:: @ 0813557C - .incbin "baserom.gba", 0x13557C, 0x0000118 - -gUnk_08135694:: @ 08135694 - .incbin "baserom.gba", 0x135694, 0x0000028 - -gUnk_081356BC:: @ 081356BC - .incbin "baserom.gba", 0x1356BC, 0x0000010 - -gUnk_081356CC:: @ 081356CC - .incbin "baserom.gba", 0x1356CC, 0x0000078 - -gUnk_08135744:: @ 08135744 - .incbin "baserom.gba", 0x135744, 0x0000004 - -gUnk_08135748:: @ 08135748 - .incbin "baserom.gba", 0x135748, 0x000002F - -gUnk_08135777:: @ 08135777 - .incbin "baserom.gba", 0x135777, 0x000000D - -gUnk_08135784:: @ 08135784 - .incbin "baserom.gba", 0x135784, 0x000003C - -gUnk_081357C0:: @ 081357C0 - .incbin "baserom.gba", 0x1357C0, 0x0000028 - -gUnk_081357E8:: @ 081357E8 - .incbin "baserom.gba", 0x1357E8, 0x0000028 - -gUnk_08135810:: @ 08135810 - .incbin "baserom.gba", 0x135810, 0x000003C - -gUnk_0813584C:: @ 0813584C - .incbin "baserom.gba", 0x13584C, 0x0000014 - -gUnk_08135860:: @ 08135860 - .incbin "baserom.gba", 0x135860, 0x0000028 - -gUnk_08135888:: @ 08135888 - .incbin "baserom.gba", 0x135888, 0x0000028 - -gUnk_081358B0:: @ 081358B0 - .incbin "baserom.gba", 0x1358B0, 0x000003C - -gUnk_081358EC:: @ 081358EC - .incbin "baserom.gba", 0x1358EC, 0x000003C - -gUnk_08135928:: @ 08135928 - .incbin "baserom.gba", 0x135928, 0x0000010 - -gUnk_08135938:: @ 08135938 - .incbin "baserom.gba", 0x135938, 0x000003C - -gUnk_08135974:: @ 08135974 - .incbin "baserom.gba", 0x135974, 0x0000010 - -gUnk_08135984:: @ 08135984 - .incbin "baserom.gba", 0x135984, 0x0000028 - -gUnk_081359AC:: @ 081359AC - .incbin "baserom.gba", 0x1359AC, 0x0000028 - -gUnk_081359D4:: @ 081359D4 - .incbin "baserom.gba", 0x1359D4, 0x000003C - -gUnk_08135A10:: @ 08135A10 - .incbin "baserom.gba", 0x135A10, 0x0000028 - -gUnk_08135A38:: @ 08135A38 - .incbin "baserom.gba", 0x135A38, 0x0000028 - -gUnk_08135A60:: @ 08135A60 - .incbin "baserom.gba", 0x135A60, 0x0000028 - -gUnk_08135A88:: @ 08135A88 - .incbin "baserom.gba", 0x135A88, 0x0000028 - -gUnk_08135AB0:: @ 08135AB0 - .incbin "baserom.gba", 0x135AB0, 0x0000028 - -gUnk_08135AD8:: @ 08135AD8 - .incbin "baserom.gba", 0x135AD8, 0x0000028 - -gUnk_08135B00:: @ 08135B00 - .incbin "baserom.gba", 0x135B00, 0x000003C - -gUnk_08135B3C:: @ 08135B3C - .incbin "baserom.gba", 0x135B3C, 0x0000028 - -gUnk_08135B64:: @ 08135B64 - .incbin "baserom.gba", 0x135B64, 0x0000028 - -gUnk_08135B8C:: @ 08135B8C - .incbin "baserom.gba", 0x135B8C, 0x0000028 - -gUnk_08135BB4:: @ 08135BB4 - .incbin "baserom.gba", 0x135BB4, 0x0000028 - -gUnk_08135BDC:: @ 08135BDC - .incbin "baserom.gba", 0x135BDC, 0x0000028 - -gUnk_08135C04:: @ 08135C04 - .incbin "baserom.gba", 0x135C04, 0x0000028 - -gUnk_08135C2C:: @ 08135C2C - .incbin "baserom.gba", 0x135C2C, 0x0000028 - -gUnk_08135C54:: @ 08135C54 - .incbin "baserom.gba", 0x135C54, 0x0000028 - -gUnk_08135C7C:: @ 08135C7C - .incbin "baserom.gba", 0x135C7C, 0x0000028 - -gUnk_08135CA4:: @ 08135CA4 - .incbin "baserom.gba", 0x135CA4, 0x0000028 - -gUnk_08135CCC:: @ 08135CCC - .incbin "baserom.gba", 0x135CCC, 0x0000028 - -gUnk_08135CF4:: @ 08135CF4 - .incbin "baserom.gba", 0x135CF4, 0x0000028 - -gUnk_08135D1C:: @ 08135D1C - .incbin "baserom.gba", 0x135D1C, 0x0000028 - -gUnk_08135D44:: @ 08135D44 - .incbin "baserom.gba", 0x135D44, 0x00000A0 - -gUnk_08135DE4:: @ 08135DE4 - .incbin "baserom.gba", 0x135DE4, 0x000008C - -gUnk_08135E70:: @ 08135E70 - .incbin "baserom.gba", 0x135E70, 0x00000B4 - -gUnk_08135F24:: @ 08135F24 - .incbin "baserom.gba", 0x135F24, 0x00000B4 - -gUnk_08135FD8:: @ 08135FD8 - .incbin "baserom.gba", 0x135FD8, 0x0000028 - -gUnk_08136000:: @ 08136000 - .incbin "baserom.gba", 0x136000, 0x0000028 - -gUnk_08136028:: @ 08136028 - .incbin "baserom.gba", 0x136028, 0x0000014 - -gUnk_0813603C:: @ 0813603C - .incbin "baserom.gba", 0x13603C, 0x0000050 - -gUnk_0813608C:: @ 0813608C - .incbin "baserom.gba", 0x13608C, 0x0000014 - -gUnk_081360A0:: @ 081360A0 - .incbin "baserom.gba", 0x1360A0, 0x0000028 - -gUnk_081360C8:: @ 081360C8 - .incbin "baserom.gba", 0x1360C8, 0x0000004 - -gUnk_081360CC:: @ 081360CC - .incbin "baserom.gba", 0x1360CC, 0x0000028 - -gUnk_081360F4:: @ 081360F4 - .incbin "baserom.gba", 0x1360F4, 0x0000028 - -gUnk_0813611C:: @ 0813611C - .incbin "baserom.gba", 0x13611C, 0x0000028 - -gUnk_08136144:: @ 08136144 - .incbin "baserom.gba", 0x136144, 0x0000028 - -gUnk_0813616C:: @ 0813616C - .incbin "baserom.gba", 0x13616C, 0x0000028 - -gUnk_08136194:: @ 08136194 - .incbin "baserom.gba", 0x136194, 0x0000028 - -gUnk_081361BC:: @ 081361BC - .incbin "baserom.gba", 0x1361BC, 0x0000028 - -gUnk_081361E4:: @ 081361E4 - .incbin "baserom.gba", 0x1361E4, 0x0000028 - -gUnk_0813620C:: @ 0813620C - .incbin "baserom.gba", 0x13620C, 0x0000028 - -gUnk_08136234:: @ 08136234 - .incbin "baserom.gba", 0x136234, 0x0000028 - -gUnk_0813625C:: @ 0813625C - .incbin "baserom.gba", 0x13625C, 0x0000028 - -gUnk_08136284:: @ 08136284 - .incbin "baserom.gba", 0x136284, 0x0000028 - -gUnk_081362AC:: @ 081362AC - .incbin "baserom.gba", 0x1362AC, 0x0000028 - -gUnk_081362D4:: @ 081362D4 - .incbin "baserom.gba", 0x1362D4, 0x000003C - -gUnk_08136310:: @ 08136310 - .incbin "baserom.gba", 0x136310, 0x0000028 - -gUnk_08136338:: @ 08136338 - .incbin "baserom.gba", 0x136338, 0x0000014 - -gUnk_0813634C:: @ 0813634C - .incbin "baserom.gba", 0x13634C, 0x0000028 - -gUnk_08136374:: @ 08136374 - .incbin "baserom.gba", 0x136374, 0x0000028 - -gUnk_0813639C:: @ 0813639C - .incbin "baserom.gba", 0x13639C, 0x00000C0 - -gUnk_0813645C:: @ 0813645C - .incbin "baserom.gba", 0x13645C, 0x0000028 - -gUnk_08136484:: @ 08136484 - .incbin "baserom.gba", 0x136484, 0x0000028 - -gUnk_081364AC:: @ 081364AC - .incbin "baserom.gba", 0x1364AC, 0x0000028 - -gUnk_081364D4:: @ 081364D4 - .incbin "baserom.gba", 0x1364D4, 0x0000028 - -gUnk_081364FC:: @ 081364FC - .incbin "baserom.gba", 0x1364FC, 0x0000028 - -gUnk_08136524:: @ 08136524 - .incbin "baserom.gba", 0x136524, 0x0000028 - -gUnk_0813654C:: @ 0813654C - .incbin "baserom.gba", 0x13654C, 0x0000040 - -gUnk_0813658C:: @ 0813658C - .incbin "baserom.gba", 0x13658C, 0x0000028 - -gUnk_081365B4:: @ 081365B4 - .incbin "baserom.gba", 0x1365B4, 0x0000028 - -gUnk_081365DC:: @ 081365DC - .incbin "baserom.gba", 0x1365DC, 0x0000028 - -gUnk_08136604:: @ 08136604 - .incbin "baserom.gba", 0x136604, 0x0000010 - -gUnk_08136614:: @ 08136614 - .incbin "baserom.gba", 0x136614, 0x0000028 - -gUnk_0813663C:: @ 0813663C - .incbin "baserom.gba", 0x13663C, 0x0000028 - -gUnk_08136664:: @ 08136664 - .incbin "baserom.gba", 0x136664, 0x0000028 - -gUnk_0813668C:: @ 0813668C - .incbin "baserom.gba", 0x13668C, 0x0000028 - -gUnk_081366B4:: @ 081366B4 - .incbin "baserom.gba", 0x1366B4, 0x0000028 - -gUnk_081366DC:: @ 081366DC - .incbin "baserom.gba", 0x1366DC, 0x000003C - -gUnk_08136718:: @ 08136718 - .incbin "baserom.gba", 0x136718, 0x000003C - -gUnk_08136754:: @ 08136754 - .incbin "baserom.gba", 0x136754, 0x0000028 - -gUnk_0813677C:: @ 0813677C - .incbin "baserom.gba", 0x13677C, 0x0000028 - -gUnk_081367A4:: @ 081367A4 - .incbin "baserom.gba", 0x1367A4, 0x0000040 - -gUnk_081367E4:: @ 081367E4 - .incbin "baserom.gba", 0x1367E4, 0x000003C - -gUnk_08136820:: @ 08136820 - .incbin "baserom.gba", 0x136820, 0x0000028 - -gUnk_08136848:: @ 08136848 - .incbin "baserom.gba", 0x136848, 0x000003C - -gUnk_08136884:: @ 08136884 - .incbin "baserom.gba", 0x136884, 0x000003C - -gUnk_081368C0:: @ 081368C0 - .incbin "baserom.gba", 0x1368C0, 0x0000078 - -gUnk_08136938:: @ 08136938 - .incbin "baserom.gba", 0x136938, 0x0000028 - -gUnk_08136960:: @ 08136960 - .incbin "baserom.gba", 0x136960, 0x0000028 - -gUnk_08136988:: @ 08136988 - .incbin "baserom.gba", 0x136988, 0x0000028 - -gUnk_081369B0:: @ 081369B0 - .incbin "baserom.gba", 0x1369B0, 0x0000028 - -gUnk_081369D8:: @ 081369D8 - .incbin "baserom.gba", 0x1369D8, 0x000003C - -gUnk_08136A14:: @ 08136A14 - .incbin "baserom.gba", 0x136A14, 0x000003C - -gUnk_08136A50:: @ 08136A50 - .incbin "baserom.gba", 0x136A50, 0x0000028 - -gUnk_08136A78:: @ 08136A78 - .incbin "baserom.gba", 0x136A78, 0x0000080 - -gUnk_08136AF8:: @ 08136AF8 - .incbin "baserom.gba", 0x136AF8, 0x0000028 - -gUnk_08136B20:: @ 08136B20 - .incbin "baserom.gba", 0x136B20, 0x000003C - -gUnk_08136B5C:: @ 08136B5C - .incbin "baserom.gba", 0x136B5C, 0x0000028 - -gUnk_08136B84:: @ 08136B84 - .incbin "baserom.gba", 0x136B84, 0x0000028 - -gUnk_08136BAC:: @ 08136BAC - .incbin "baserom.gba", 0x136BAC, 0x000003C - -gUnk_08136BE8:: @ 08136BE8 - .incbin "baserom.gba", 0x136BE8, 0x0000028 - -gUnk_08136C10:: @ 08136C10 - .incbin "baserom.gba", 0x136C10, 0x000003C - -gUnk_08136C4C:: @ 08136C4C - .incbin "baserom.gba", 0x136C4C, 0x000003C - -gUnk_08136C88:: @ 08136C88 - .incbin "baserom.gba", 0x136C88, 0x000003C - -gUnk_08136CC4:: @ 08136CC4 - .incbin "baserom.gba", 0x136CC4, 0x000003C - -gUnk_08136D00:: @ 08136D00 - .incbin "baserom.gba", 0x136D00, 0x0000028 - -gUnk_08136D28:: @ 08136D28 - .incbin "baserom.gba", 0x136D28, 0x000003C - -gUnk_08136D64:: @ 08136D64 - .incbin "baserom.gba", 0x136D64, 0x000003C - -gUnk_08136DA0:: @ 08136DA0 - .incbin "baserom.gba", 0x136DA0, 0x0000028 - -gUnk_08136DC8:: @ 08136DC8 - .incbin "baserom.gba", 0x136DC8, 0x000003C - -gUnk_08136E04:: @ 08136E04 - .incbin "baserom.gba", 0x136E04, 0x0000014 - -gUnk_08136E18:: @ 08136E18 - .incbin "baserom.gba", 0x136E18, 0x0000028 - -gUnk_08136E40:: @ 08136E40 - .incbin "baserom.gba", 0x136E40, 0x0000080 - -gUnk_08136EC0:: @ 08136EC0 - .incbin "baserom.gba", 0x136EC0, 0x0000028 - -gUnk_08136EE8:: @ 08136EE8 - .incbin "baserom.gba", 0x136EE8, 0x0000028 - -gUnk_08136F10:: @ 08136F10 - .incbin "baserom.gba", 0x136F10, 0x0000028 - -gUnk_08136F38:: @ 08136F38 - .incbin "baserom.gba", 0x136F38, 0x0000028 - -gUnk_08136F60:: @ 08136F60 - .incbin "baserom.gba", 0x136F60, 0x0000028 - -gUnk_08136F88:: @ 08136F88 - .incbin "baserom.gba", 0x136F88, 0x0000028 - -gUnk_08136FB0:: @ 08136FB0 - .incbin "baserom.gba", 0x136FB0, 0x0000028 - -gUnk_08136FD8:: @ 08136FD8 - .incbin "baserom.gba", 0x136FD8, 0x000002D - -gUnk_08137005:: @ 08137005 - .incbin "baserom.gba", 0x137005, 0x0000013 - -gUnk_08137018:: @ 08137018 - .incbin "baserom.gba", 0x137018, 0x0000028 - -gUnk_08137040:: @ 08137040 - .incbin "baserom.gba", 0x137040, 0x0000028 - -gUnk_08137068:: @ 08137068 - .incbin "baserom.gba", 0x137068, 0x0000028 - -gUnk_08137090:: @ 08137090 - .incbin "baserom.gba", 0x137090, 0x0000028 - -gUnk_081370B8:: @ 081370B8 - .incbin "baserom.gba", 0x1370B8, 0x0000028 - -gUnk_081370E0:: @ 081370E0 - .incbin "baserom.gba", 0x1370E0, 0x0000014 - -gUnk_081370F4:: @ 081370F4 - .incbin "baserom.gba", 0x1370F4, 0x0000028 - -gUnk_0813711C:: @ 0813711C - .incbin "baserom.gba", 0x13711C, 0x0000028 - -gUnk_08137144:: @ 08137144 - .incbin "baserom.gba", 0x137144, 0x0000028 - -gUnk_0813716C:: @ 0813716C - .incbin "baserom.gba", 0x13716C, 0x0000028 - -gUnk_08137194:: @ 08137194 - .incbin "baserom.gba", 0x137194, 0x0000028 - -gUnk_081371BC:: @ 081371BC - .incbin "baserom.gba", 0x1371BC, 0x0000028 - -gUnk_081371E4:: @ 081371E4 - .incbin "baserom.gba", 0x1371E4, 0x0000028 - -gUnk_0813720C:: @ 0813720C - .incbin "baserom.gba", 0x13720C, 0x0000028 - -gUnk_08137234:: @ 08137234 - .incbin "baserom.gba", 0x137234, 0x0000014 - -gUnk_08137248:: @ 08137248 - .incbin "baserom.gba", 0x137248, 0x0000060 - -gUnk_081372A8:: @ 081372A8 - .incbin "baserom.gba", 0x1372A8, 0x0000064 - -gUnk_0813730C:: @ 0813730C - .incbin "baserom.gba", 0x13730C, 0x000003C - -gUnk_08137348:: @ 08137348 - .incbin "baserom.gba", 0x137348, 0x000003C - -gUnk_08137384:: @ 08137384 - .incbin "baserom.gba", 0x137384, 0x000003C - -gUnk_081373C0:: @ 081373C0 - .incbin "baserom.gba", 0x1373C0, 0x0000028 - -gUnk_081373E8:: @ 081373E8 - .incbin "baserom.gba", 0x1373E8, 0x0000028 - -gUnk_08137410:: @ 08137410 - .incbin "baserom.gba", 0x137410, 0x000003C - -gUnk_0813744C:: @ 0813744C - .incbin "baserom.gba", 0x13744C, 0x000003C - -gUnk_08137488:: @ 08137488 - .incbin "baserom.gba", 0x137488, 0x0000028 - -gUnk_081374B0:: @ 081374B0 - .incbin "baserom.gba", 0x1374B0, 0x0000028 - -gUnk_081374D8:: @ 081374D8 - .incbin "baserom.gba", 0x1374D8, 0x000003C - -gUnk_08137514:: @ 08137514 - .incbin "baserom.gba", 0x137514, 0x000003C - -gUnk_08137550:: @ 08137550 - .incbin "baserom.gba", 0x137550, 0x000003C - -gUnk_0813758C:: @ 0813758C - .incbin "baserom.gba", 0x13758C, 0x0000028 - -gUnk_081375B4:: @ 081375B4 - .incbin "baserom.gba", 0x1375B4, 0x0000028 - -gUnk_081375DC:: @ 081375DC - .incbin "baserom.gba", 0x1375DC, 0x0000028 - -gUnk_08137604:: @ 08137604 - .incbin "baserom.gba", 0x137604, 0x000003C - -gUnk_08137640:: @ 08137640 - .incbin "baserom.gba", 0x137640, 0x0000044 - -gUnk_08137684:: @ 08137684 - .incbin "baserom.gba", 0x137684, 0x0000028 - -gUnk_081376AC:: @ 081376AC - .incbin "baserom.gba", 0x1376AC, 0x000003C - -gUnk_081376E8:: @ 081376E8 - .incbin "baserom.gba", 0x1376E8, 0x0000028 - -gUnk_08137710:: @ 08137710 - .incbin "baserom.gba", 0x137710, 0x000003C - -gUnk_0813774C:: @ 0813774C - .incbin "baserom.gba", 0x13774C, 0x0000028 - -gUnk_08137774:: @ 08137774 - .incbin "baserom.gba", 0x137774, 0x0000002 - -gUnk_08137776:: @ 08137776 - .incbin "baserom.gba", 0x137776, 0x0000001 - -gUnk_08137777:: @ 08137777 - .incbin "baserom.gba", 0x137777, 0x000001D - -gUnk_08137794:: @ 08137794 - .incbin "baserom.gba", 0x137794, 0x0000014 - -gUnk_081377A8:: @ 081377A8 - .incbin "baserom.gba", 0x1377A8, 0x0000028 - -gUnk_081377D0:: @ 081377D0 - .incbin "baserom.gba", 0x1377D0, 0x0000010 - -gUnk_081377E0:: @ 081377E0 - .incbin "baserom.gba", 0x1377E0, 0x0000028 - -gUnk_08137808:: @ 08137808 - .incbin "baserom.gba", 0x137808, 0x0000028 - -gUnk_08137830:: @ 08137830 - .incbin "baserom.gba", 0x137830, 0x0000028 - -gUnk_08137858:: @ 08137858 - .incbin "baserom.gba", 0x137858, 0x0000028 - -gUnk_08137880:: @ 08137880 - .incbin "baserom.gba", 0x137880, 0x0000028 - -gUnk_081378A8:: @ 081378A8 - .incbin "baserom.gba", 0x1378A8, 0x0000028 - -gUnk_081378D0:: @ 081378D0 - .incbin "baserom.gba", 0x1378D0, 0x0000028 - -gUnk_081378F8:: @ 081378F8 - .incbin "baserom.gba", 0x1378F8, 0x0000028 - -gUnk_08137920:: @ 08137920 - .incbin "baserom.gba", 0x137920, 0x0000028 - -gUnk_08137948:: @ 08137948 - .incbin "baserom.gba", 0x137948, 0x0000028 - -gUnk_08137970:: @ 08137970 - .incbin "baserom.gba", 0x137970, 0x0000028 - -gUnk_08137998:: @ 08137998 - .incbin "baserom.gba", 0x137998, 0x000002C - -gUnk_081379C4:: @ 081379C4 - .incbin "baserom.gba", 0x1379C4, 0x0000028 - -gUnk_081379EC:: @ 081379EC - .incbin "baserom.gba", 0x1379EC, 0x0000028 - -gUnk_08137A14:: @ 08137A14 - .incbin "baserom.gba", 0x137A14, 0x0000028 - -gUnk_08137A3C:: @ 08137A3C - .incbin "baserom.gba", 0x137A3C, 0x0000028 - -gUnk_08137A64:: @ 08137A64 - .incbin "baserom.gba", 0x137A64, 0x0000028 - -gUnk_08137A8C:: @ 08137A8C - .incbin "baserom.gba", 0x137A8C, 0x0000050 - -gUnk_08137ADC:: @ 08137ADC - .incbin "baserom.gba", 0x137ADC, 0x0000028 - -gUnk_08137B04:: @ 08137B04 - .incbin "baserom.gba", 0x137B04, 0x0000028 - -gUnk_08137B2C:: @ 08137B2C - .incbin "baserom.gba", 0x137B2C, 0x0000050 - -gUnk_08137B7C:: @ 08137B7C - .incbin "baserom.gba", 0x137B7C, 0x000003C - -gUnk_08137BB8:: @ 08137BB8 - .incbin "baserom.gba", 0x137BB8, 0x000003C - -gUnk_08137BF4:: @ 08137BF4 - .incbin "baserom.gba", 0x137BF4, 0x0000028 - -gUnk_08137C1C:: @ 08137C1C - .incbin "baserom.gba", 0x137C1C, 0x000003C - -gUnk_08137C58:: @ 08137C58 - .incbin "baserom.gba", 0x137C58, 0x0000010 - -gUnk_08137C68:: @ 08137C68 - .incbin "baserom.gba", 0x137C68, 0x000003C - -gUnk_08137CA4:: @ 08137CA4 - .incbin "baserom.gba", 0x137CA4, 0x0000028 - -gUnk_08137CCC:: @ 08137CCC - .incbin "baserom.gba", 0x137CCC, 0x0000008 - -gUnk_08137CD4:: @ 08137CD4 - .incbin "baserom.gba", 0x137CD4, 0x000003C - -gUnk_08137D10:: @ 08137D10 - .incbin "baserom.gba", 0x137D10, 0x000003C - -gUnk_08137D4C:: @ 08137D4C - .incbin "baserom.gba", 0x137D4C, 0x000003C - -gUnk_08137D88:: @ 08137D88 - .incbin "baserom.gba", 0x137D88, 0x000003C - -gUnk_08137DC4:: @ 08137DC4 - .incbin "baserom.gba", 0x137DC4, 0x0000010 - -gUnk_08137DD4:: @ 08137DD4 - .incbin "baserom.gba", 0x137DD4, 0x0000028 - -gUnk_08137DFC:: @ 08137DFC - .incbin "baserom.gba", 0x137DFC, 0x0000004 - -gUnk_08137E00:: @ 08137E00 - .incbin "baserom.gba", 0x137E00, 0x0000078 - -gUnk_08137E78:: @ 08137E78 - .incbin "baserom.gba", 0x137E78, 0x0000064 - -gUnk_08137EDC:: @ 08137EDC - .incbin "baserom.gba", 0x137EDC, 0x0000028 - -gUnk_08137F04:: @ 08137F04 - .incbin "baserom.gba", 0x137F04, 0x0000014 - -gUnk_08137F18:: @ 08137F18 - .incbin "baserom.gba", 0x137F18, 0x0000014 - -gUnk_08137F2C:: @ 08137F2C - .incbin "baserom.gba", 0x137F2C, 0x0000014 - -gUnk_08137F40:: @ 08137F40 - .incbin "baserom.gba", 0x137F40, 0x0000028 - -gUnk_08137F68:: @ 08137F68 - .incbin "baserom.gba", 0x137F68, 0x0000028 - -gUnk_08137F90:: @ 08137F90 - .incbin "baserom.gba", 0x137F90, 0x0000028 - -gUnk_08137FB8:: @ 08137FB8 - .incbin "baserom.gba", 0x137FB8, 0x0000014 - -gUnk_08137FCC:: @ 08137FCC - .incbin "baserom.gba", 0x137FCC, 0x0000028 - -gUnk_08137FF4:: @ 08137FF4 - .incbin "baserom.gba", 0x137FF4, 0x000003C - -gUnk_08138030:: @ 08138030 - .incbin "baserom.gba", 0x138030, 0x000003C - -gUnk_0813806C:: @ 0813806C - .incbin "baserom.gba", 0x13806C, 0x0000028 - -gUnk_08138094:: @ 08138094 - .incbin "baserom.gba", 0x138094, 0x0000028 - -gUnk_081380BC:: @ 081380BC - .incbin "baserom.gba", 0x1380BC, 0x0000028 - -gUnk_081380E4:: @ 081380E4 - .incbin "baserom.gba", 0x1380E4, 0x0000028 - -gUnk_0813810C:: @ 0813810C - .incbin "baserom.gba", 0x13810C, 0x0000028 - -gUnk_08138134:: @ 08138134 - .incbin "baserom.gba", 0x138134, 0x0000014 - -gUnk_08138148:: @ 08138148 - .incbin "baserom.gba", 0x138148, 0x000003C - -gUnk_08138184:: @ 08138184 - .incbin "baserom.gba", 0x138184, 0x0000028 - -gUnk_081381AC:: @ 081381AC - .incbin "baserom.gba", 0x1381AC, 0x0000028 - -gUnk_081381D4:: @ 081381D4 - .incbin "baserom.gba", 0x1381D4, 0x0000060 - -gUnk_08138234:: @ 08138234 - .incbin "baserom.gba", 0x138234, 0x0000050 - -gUnk_08138284:: @ 08138284 - .incbin "baserom.gba", 0x138284, 0x0000064 - -gUnk_081382E8:: @ 081382E8 - .incbin "baserom.gba", 0x1382E8, 0x000003C - -gUnk_08138324:: @ 08138324 - .incbin "baserom.gba", 0x138324, 0x000003C - -gUnk_08138360:: @ 08138360 - .incbin "baserom.gba", 0x138360, 0x0000028 - -gUnk_08138388:: @ 08138388 - .incbin "baserom.gba", 0x138388, 0x000003C - -gUnk_081383C4:: @ 081383C4 - .incbin "baserom.gba", 0x1383C4, 0x000003C - -gUnk_08138400:: @ 08138400 - .incbin "baserom.gba", 0x138400, 0x000003C - -gUnk_0813843C:: @ 0813843C - .incbin "baserom.gba", 0x13843C, 0x0000028 - -gUnk_08138464:: @ 08138464 - .incbin "baserom.gba", 0x138464, 0x0000040 - -gUnk_081384A4:: @ 081384A4 - .incbin "baserom.gba", 0x1384A4, 0x0000028 - -gUnk_081384CC:: @ 081384CC - .incbin "baserom.gba", 0x1384CC, 0x0000028 - -gUnk_081384F4:: @ 081384F4 - .incbin "baserom.gba", 0x1384F4, 0x0000008 - -gUnk_081384FC:: @ 081384FC - .incbin "baserom.gba", 0x1384FC, 0x0000028 - -gUnk_08138524:: @ 08138524 - .incbin "baserom.gba", 0x138524, 0x0000028 - -gUnk_0813854C:: @ 0813854C - .incbin "baserom.gba", 0x13854C, 0x0000028 - -gUnk_08138574:: @ 08138574 - .incbin "baserom.gba", 0x138574, 0x0000028 - -gUnk_0813859C:: @ 0813859C - .incbin "baserom.gba", 0x13859C, 0x0000028 - -gUnk_081385C4:: @ 081385C4 - .incbin "baserom.gba", 0x1385C4, 0x0000028 - -gUnk_081385EC:: @ 081385EC - .incbin "baserom.gba", 0x1385EC, 0x000003C - -gUnk_08138628:: @ 08138628 - .incbin "baserom.gba", 0x138628, 0x0000050 - -gUnk_08138678:: @ 08138678 - .incbin "baserom.gba", 0x138678, 0x0000028 - -gUnk_081386A0:: @ 081386A0 - .incbin "baserom.gba", 0x1386A0, 0x0000028 - -gUnk_081386C8:: @ 081386C8 - .incbin "baserom.gba", 0x1386C8, 0x0000028 - -gUnk_081386F0:: @ 081386F0 - .incbin "baserom.gba", 0x1386F0, 0x0000008 - -gUnk_081386F8:: @ 081386F8 - .incbin "baserom.gba", 0x1386F8, 0x0000028 - -gUnk_08138720:: @ 08138720 - .incbin "baserom.gba", 0x138720, 0x0000028 - -gUnk_08138748:: @ 08138748 - .incbin "baserom.gba", 0x138748, 0x0000008 - -gUnk_08138750:: @ 08138750 - .incbin "baserom.gba", 0x138750, 0x0000064 - -gUnk_081387B4:: @ 081387B4 - .incbin "baserom.gba", 0x1387B4, 0x000003C - -gUnk_081387F0:: @ 081387F0 - .incbin "baserom.gba", 0x1387F0, 0x0000008 - -gUnk_081387F8:: @ 081387F8 - .incbin "baserom.gba", 0x1387F8, 0x0000028 - -gUnk_08138820:: @ 08138820 - .incbin "baserom.gba", 0x138820, 0x0000028 - -gUnk_08138848:: @ 08138848 - .incbin "baserom.gba", 0x138848, 0x0000060 - -gUnk_081388A8:: @ 081388A8 - .incbin "baserom.gba", 0x1388A8, 0x0000028 - -gUnk_081388D0:: @ 081388D0 - .incbin "baserom.gba", 0x1388D0, 0x0000028 - -gUnk_081388F8:: @ 081388F8 - .incbin "baserom.gba", 0x1388F8, 0x0000008 - -gUnk_08138900:: @ 08138900 - .incbin "baserom.gba", 0x138900, 0x0000028 - -gUnk_08138928:: @ 08138928 - .incbin "baserom.gba", 0x138928, 0x0000028 - -gUnk_08138950:: @ 08138950 - .incbin "baserom.gba", 0x138950, 0x0000008 - -gUnk_08138958:: @ 08138958 - .incbin "baserom.gba", 0x138958, 0x0000024 - -gUnk_0813897C:: @ 0813897C - .incbin "baserom.gba", 0x13897C, 0x0000028 - -gUnk_081389A4:: @ 081389A4 - .incbin "baserom.gba", 0x1389A4, 0x0000014 - -gUnk_081389B8:: @ 081389B8 - .incbin "baserom.gba", 0x1389B8, 0x0000014 - -gUnk_081389CC:: @ 081389CC - .incbin "baserom.gba", 0x1389CC, 0x0000014 - -gUnk_081389E0:: @ 081389E0 - .incbin "baserom.gba", 0x1389E0, 0x0000014 - -gUnk_081389F4:: @ 081389F4 - .incbin "baserom.gba", 0x1389F4, 0x0000064 - -gUnk_08138A58:: @ 08138A58 - .incbin "baserom.gba", 0x138A58, 0x0000050 - -gUnk_08138AA8:: @ 08138AA8 - .incbin "baserom.gba", 0x138AA8, 0x0000028 - -gUnk_08138AD0:: @ 08138AD0 - .incbin "baserom.gba", 0x138AD0, 0x0000028 - -gUnk_08138AF8:: @ 08138AF8 - .incbin "baserom.gba", 0x138AF8, 0x0000050 - -gUnk_08138B48:: @ 08138B48 - .incbin "baserom.gba", 0x138B48, 0x0000084 - -gUnk_08138BCC:: @ 08138BCC - .incbin "baserom.gba", 0x138BCC, 0x0000004 - -gUnk_08138BD0:: @ 08138BD0 - .incbin "baserom.gba", 0x138BD0, 0x0000064 - -gUnk_08138C34:: @ 08138C34 - .incbin "baserom.gba", 0x138C34, 0x0000004 - -gUnk_08138C38:: @ 08138C38 - .incbin "baserom.gba", 0x138C38, 0x0000028 - -gUnk_08138C60:: @ 08138C60 - .incbin "baserom.gba", 0x138C60, 0x0000028 - -gUnk_08138C88:: @ 08138C88 - .incbin "baserom.gba", 0x138C88, 0x0000028 - -gUnk_08138CB0:: @ 08138CB0 - .incbin "baserom.gba", 0x138CB0, 0x0000028 - -gUnk_08138CD8:: @ 08138CD8 - .incbin "baserom.gba", 0x138CD8, 0x0000028 - -gUnk_08138D00:: @ 08138D00 - .incbin "baserom.gba", 0x138D00, 0x0000028 - -gUnk_08138D28:: @ 08138D28 - .incbin "baserom.gba", 0x138D28, 0x0000028 - -gUnk_08138D50:: @ 08138D50 - .incbin "baserom.gba", 0x138D50, 0x0000084 - -gUnk_08138DD4:: @ 08138DD4 - .incbin "baserom.gba", 0x138DD4, 0x0000028 - -gUnk_08138DFC:: @ 08138DFC - .incbin "baserom.gba", 0x138DFC, 0x000003C - -gUnk_08138E38:: @ 08138E38 - .incbin "baserom.gba", 0x138E38, 0x0000028 - -gUnk_08138E60:: @ 08138E60 - .incbin "baserom.gba", 0x138E60, 0x000003C - -gUnk_08138E9C:: @ 08138E9C - .incbin "baserom.gba", 0x138E9C, 0x0000028 - -gUnk_08138EC4:: @ 08138EC4 - .incbin "baserom.gba", 0x138EC4, 0x0000028 - -gUnk_08138EEC:: @ 08138EEC - .incbin "baserom.gba", 0x138EEC, 0x0000028 - -gUnk_08138F14:: @ 08138F14 - .incbin "baserom.gba", 0x138F14, 0x000003C - -gUnk_08138F50:: @ 08138F50 - .incbin "baserom.gba", 0x138F50, 0x0000028 - -gUnk_08138F78:: @ 08138F78 - .incbin "baserom.gba", 0x138F78, 0x0000028 - -gUnk_08138FA0:: @ 08138FA0 - .incbin "baserom.gba", 0x138FA0, 0x0000028 - -gUnk_08138FC8:: @ 08138FC8 - .incbin "baserom.gba", 0x138FC8, 0x000003C - -gUnk_08139004:: @ 08139004 - .incbin "baserom.gba", 0x139004, 0x000003C - -gUnk_08139040:: @ 08139040 - .incbin "baserom.gba", 0x139040, 0x000003C - -gUnk_0813907C:: @ 0813907C - .incbin "baserom.gba", 0x13907C, 0x000003C - -gUnk_081390B8:: @ 081390B8 - .incbin "baserom.gba", 0x1390B8, 0x0000028 - -gUnk_081390E0:: @ 081390E0 - .incbin "baserom.gba", 0x1390E0, 0x0000028 - -gUnk_08139108:: @ 08139108 - .incbin "baserom.gba", 0x139108, 0x00000A0 - -gUnk_081391A8:: @ 081391A8 - .incbin "baserom.gba", 0x1391A8, 0x0000028 - -gUnk_081391D0:: @ 081391D0 - .incbin "baserom.gba", 0x1391D0, 0x0000004 - -gUnk_081391D4:: @ 081391D4 - .incbin "baserom.gba", 0x1391D4, 0x0000028 - -gUnk_081391FC:: @ 081391FC - .incbin "baserom.gba", 0x1391FC, 0x0000008 - -gUnk_08139204:: @ 08139204 - .incbin "baserom.gba", 0x139204, 0x0000028 - -gUnk_0813922C:: @ 0813922C - .incbin "baserom.gba", 0x13922C, 0x0000028 - -gUnk_08139254:: @ 08139254 - .incbin "baserom.gba", 0x139254, 0x000003C - -gUnk_08139290:: @ 08139290 - .incbin "baserom.gba", 0x139290, 0x0000028 - -gUnk_081392B8:: @ 081392B8 - .incbin "baserom.gba", 0x1392B8, 0x0000028 - -gUnk_081392E0:: @ 081392E0 - .incbin "baserom.gba", 0x1392E0, 0x0000028 - -gUnk_08139308:: @ 08139308 - .incbin "baserom.gba", 0x139308, 0x0000028 - -gUnk_08139330:: @ 08139330 - .incbin "baserom.gba", 0x139330, 0x000003C - -gUnk_0813936C:: @ 0813936C - .incbin "baserom.gba", 0x13936C, 0x0000028 - -gUnk_08139394:: @ 08139394 - .incbin "baserom.gba", 0x139394, 0x0000028 - -gUnk_081393BC:: @ 081393BC - .incbin "baserom.gba", 0x1393BC, 0x0000078 - -gUnk_08139434:: @ 08139434 - .incbin "baserom.gba", 0x139434, 0x0000028 - -gUnk_0813945C:: @ 0813945C - .incbin "baserom.gba", 0x13945C, 0x0000028 - -gUnk_08139484:: @ 08139484 - .incbin "baserom.gba", 0x139484, 0x0000028 - -gUnk_081394AC:: @ 081394AC - .incbin "baserom.gba", 0x1394AC, 0x0000028 - -gUnk_081394D4:: @ 081394D4 - .incbin "baserom.gba", 0x1394D4, 0x0000028 - -gUnk_081394FC:: @ 081394FC - .incbin "baserom.gba", 0x1394FC, 0x000003C - -gUnk_08139538:: @ 08139538 - .incbin "baserom.gba", 0x139538, 0x0000028 - -gUnk_08139560:: @ 08139560 - .incbin "baserom.gba", 0x139560, 0x0000028 - -gUnk_08139588:: @ 08139588 - .incbin "baserom.gba", 0x139588, 0x0000028 - -gUnk_081395B0:: @ 081395B0 - .incbin "baserom.gba", 0x1395B0, 0x0000028 - -gUnk_081395D8:: @ 081395D8 - .incbin "baserom.gba", 0x1395D8, 0x0000100 - -gUnk_081396D8:: @ 081396D8 - .incbin "baserom.gba", 0x1396D8, 0x000003C - -gUnk_08139714:: @ 08139714 - .incbin "baserom.gba", 0x139714, 0x0000004 - -gUnk_08139718:: @ 08139718 - .incbin "baserom.gba", 0x139718, 0x0000014 - -gUnk_0813972C:: @ 0813972C - .incbin "baserom.gba", 0x13972C, 0x0000028 - -gUnk_08139754:: @ 08139754 - .incbin "baserom.gba", 0x139754, 0x000003C - -gUnk_08139790:: @ 08139790 - .incbin "baserom.gba", 0x139790, 0x0000028 - -gUnk_081397B8:: @ 081397B8 - .incbin "baserom.gba", 0x1397B8, 0x0000028 - -gUnk_081397E0:: @ 081397E0 - .incbin "baserom.gba", 0x1397E0, 0x0000024 - -gUnk_08139804:: @ 08139804 - .incbin "baserom.gba", 0x139804, 0x0000028 - -gUnk_0813982C:: @ 0813982C - .incbin "baserom.gba", 0x13982C, 0x0000028 - -gUnk_08139854:: @ 08139854 - .incbin "baserom.gba", 0x139854, 0x0000028 - -gUnk_0813987C:: @ 0813987C - .incbin "baserom.gba", 0x13987C, 0x0000028 - -gUnk_081398A4:: @ 081398A4 - .incbin "baserom.gba", 0x1398A4, 0x0000028 - -gUnk_081398CC:: @ 081398CC - .incbin "baserom.gba", 0x1398CC, 0x000003C - -gUnk_08139908:: @ 08139908 - .incbin "baserom.gba", 0x139908, 0x000003C - -gUnk_08139944:: @ 08139944 - .incbin "baserom.gba", 0x139944, 0x000003C - -gUnk_08139980:: @ 08139980 - .incbin "baserom.gba", 0x139980, 0x0000028 - -gUnk_081399A8:: @ 081399A8 - .incbin "baserom.gba", 0x1399A8, 0x0000028 - -gUnk_081399D0:: @ 081399D0 - .incbin "baserom.gba", 0x1399D0, 0x0000064 - -gUnk_08139A34:: @ 08139A34 - .incbin "baserom.gba", 0x139A34, 0x0000028 - -gUnk_08139A5C:: @ 08139A5C - .incbin "baserom.gba", 0x139A5C, 0x0000028 - -gUnk_08139A84:: @ 08139A84 - .incbin "baserom.gba", 0x139A84, 0x0000028 - -gUnk_08139AAC:: @ 08139AAC - .incbin "baserom.gba", 0x139AAC, 0x0000050 - -gUnk_08139AFC:: @ 08139AFC - .incbin "baserom.gba", 0x139AFC, 0x0000028 - -gUnk_08139B24:: @ 08139B24 - .incbin "baserom.gba", 0x139B24, 0x0000028 - -gUnk_08139B4C:: @ 08139B4C - .incbin "baserom.gba", 0x139B4C, 0x000003C - -gUnk_08139B88:: @ 08139B88 - .incbin "baserom.gba", 0x139B88, 0x000003C - -gUnk_08139BC4:: @ 08139BC4 - .incbin "baserom.gba", 0x139BC4, 0x0000028 - -gUnk_08139BEC:: @ 08139BEC - .incbin "baserom.gba", 0x139BEC, 0x000003C - -gUnk_08139C28:: @ 08139C28 - .incbin "baserom.gba", 0x139C28, 0x00000E4 - -gUnk_08139D0C:: @ 08139D0C - .incbin "baserom.gba", 0x139D0C, 0x0000050 - -gUnk_08139D5C:: @ 08139D5C - .incbin "baserom.gba", 0x139D5C, 0x0000028 - -gUnk_08139D84:: @ 08139D84 - .incbin "baserom.gba", 0x139D84, 0x0000028 - -gUnk_08139DAC:: @ 08139DAC - .incbin "baserom.gba", 0x139DAC, 0x0000028 - -gUnk_08139DD4:: @ 08139DD4 - .incbin "baserom.gba", 0x139DD4, 0x0000028 - -gUnk_08139DFC:: @ 08139DFC - .incbin "baserom.gba", 0x139DFC, 0x000003C - -gUnk_08139E38:: @ 08139E38 - .incbin "baserom.gba", 0x139E38, 0x000003C - -gUnk_08139E74:: @ 08139E74 - .incbin "baserom.gba", 0x139E74, 0x0000050 - -gUnk_08139EC4:: @ 08139EC4 - .incbin "baserom.gba", 0x139EC4, 0x0000050 - -gUnk_08139F14:: @ 08139F14 - .incbin "baserom.gba", 0x139F14, 0x000003C - -gUnk_08139F50:: @ 08139F50 - .incbin "baserom.gba", 0x139F50, 0x0000028 - -gUnk_08139F78:: @ 08139F78 - .incbin "baserom.gba", 0x139F78, 0x0000028 - -gUnk_08139FA0:: @ 08139FA0 - .incbin "baserom.gba", 0x139FA0, 0x0000050 - -gUnk_08139FF0:: @ 08139FF0 - .incbin "baserom.gba", 0x139FF0, 0x0000028 - -gUnk_0813A018:: @ 0813A018 - .incbin "baserom.gba", 0x13A018, 0x0000028 - -gUnk_0813A040:: @ 0813A040 - .incbin "baserom.gba", 0x13A040, 0x0000050 - -gUnk_0813A090:: @ 0813A090 - .incbin "baserom.gba", 0x13A090, 0x0000028 - -gUnk_0813A0B8:: @ 0813A0B8 - .incbin "baserom.gba", 0x13A0B8, 0x0000028 - -gUnk_0813A0E0:: @ 0813A0E0 - .incbin "baserom.gba", 0x13A0E0, 0x0000028 - -gUnk_0813A108:: @ 0813A108 - .incbin "baserom.gba", 0x13A108, 0x0000028 - -gUnk_0813A130:: @ 0813A130 - .incbin "baserom.gba", 0x13A130, 0x0000028 - -gUnk_0813A158:: @ 0813A158 - .incbin "baserom.gba", 0x13A158, 0x0000028 - -gUnk_0813A180:: @ 0813A180 - .incbin "baserom.gba", 0x13A180, 0x0000028 - -gUnk_0813A1A8:: @ 0813A1A8 - .incbin "baserom.gba", 0x13A1A8, 0x000001F - -gUnk_0813A1C7:: @ 0813A1C7 - .incbin "baserom.gba", 0x13A1C7, 0x0000009 - -gUnk_0813A1D0:: @ 0813A1D0 - .incbin "baserom.gba", 0x13A1D0, 0x0000028 - -gUnk_0813A1F8:: @ 0813A1F8 - .incbin "baserom.gba", 0x13A1F8, 0x0000028 - -gUnk_0813A220:: @ 0813A220 - .incbin "baserom.gba", 0x13A220, 0x000001F - -gUnk_0813A23F:: @ 0813A23F - .incbin "baserom.gba", 0x13A23F, 0x0000009 - -gUnk_0813A248:: @ 0813A248 - .incbin "baserom.gba", 0x13A248, 0x000003C - -gUnk_0813A284:: @ 0813A284 - .incbin "baserom.gba", 0x13A284, 0x0000028 - -gUnk_0813A2AC:: @ 0813A2AC - .incbin "baserom.gba", 0x13A2AC, 0x0000114 - -gUnk_0813A3C0:: @ 0813A3C0 - .incbin "baserom.gba", 0x13A3C0, 0x0000028 - -gUnk_0813A3E8:: @ 0813A3E8 - .incbin "baserom.gba", 0x13A3E8, 0x000003C - -gUnk_0813A424:: @ 0813A424 - .incbin "baserom.gba", 0x13A424, 0x0000028 - -gUnk_0813A44C:: @ 0813A44C - .incbin "baserom.gba", 0x13A44C, 0x0000028 - -gUnk_0813A474:: @ 0813A474 - .incbin "baserom.gba", 0x13A474, 0x000003C - -gUnk_0813A4B0:: @ 0813A4B0 - .incbin "baserom.gba", 0x13A4B0, 0x0000028 - -gUnk_0813A4D8:: @ 0813A4D8 - .incbin "baserom.gba", 0x13A4D8, 0x000003C - -gUnk_0813A514:: @ 0813A514 - .incbin "baserom.gba", 0x13A514, 0x0000028 - -gUnk_0813A53C:: @ 0813A53C - .incbin "baserom.gba", 0x13A53C, 0x0000020 - -gUnk_0813A55C:: @ 0813A55C - .incbin "baserom.gba", 0x13A55C, 0x0000028 - -gUnk_0813A584:: @ 0813A584 - .incbin "baserom.gba", 0x13A584, 0x0000028 - -gUnk_0813A5AC:: @ 0813A5AC - .incbin "baserom.gba", 0x13A5AC, 0x0000008 - -gUnk_0813A5B4:: @ 0813A5B4 - .incbin "baserom.gba", 0x13A5B4, 0x000003C - -gUnk_0813A5F0:: @ 0813A5F0 - .incbin "baserom.gba", 0x13A5F0, 0x0000004 - -gUnk_0813A5F4:: @ 0813A5F4 - .incbin "baserom.gba", 0x13A5F4, 0x000003C - -gUnk_0813A630:: @ 0813A630 - .incbin "baserom.gba", 0x13A630, 0x000003C - -gUnk_0813A66C:: @ 0813A66C - .incbin "baserom.gba", 0x13A66C, 0x0000078 - -gUnk_0813A6E4:: @ 0813A6E4 - .incbin "baserom.gba", 0x13A6E4, 0x0000020 - -gUnk_0813A704:: @ 0813A704 - .incbin "baserom.gba", 0x13A704, 0x000003C - -gUnk_0813A740:: @ 0813A740 - .incbin "baserom.gba", 0x13A740, 0x0000004 - -gUnk_0813A744:: @ 0813A744 - .incbin "baserom.gba", 0x13A744, 0x0000028 - -gUnk_0813A76C:: @ 0813A76C - .incbin "baserom.gba", 0x13A76C, 0x0000028 - -gUnk_0813A794:: @ 0813A794 - .incbin "baserom.gba", 0x13A794, 0x0000028 - -gUnk_0813A7BC:: @ 0813A7BC - .incbin "baserom.gba", 0x13A7BC, 0x0000028 - -gUnk_0813A7E4:: @ 0813A7E4 - .incbin "baserom.gba", 0x13A7E4, 0x000000C - -gUnk_0813A7F0:: @ 0813A7F0 - .incbin "baserom.gba", 0x13A7F0, 0x0000264 - -gUnk_0813AA54:: @ 0813AA54 - .incbin "baserom.gba", 0x13AA54, 0x0000014 - -gUnk_0813AA68:: @ 0813AA68 - .incbin "baserom.gba", 0x13AA68, 0x0000014 - -gUnk_0813AA7C:: @ 0813AA7C - .incbin "baserom.gba", 0x13AA7C, 0x0000014 - -gUnk_0813AA90:: @ 0813AA90 - .incbin "baserom.gba", 0x13AA90, 0x0000014 - -gUnk_0813AAA4:: @ 0813AAA4 - .incbin "baserom.gba", 0x13AAA4, 0x0000014 - -gUnk_0813AAB8:: @ 0813AAB8 - .incbin "baserom.gba", 0x13AAB8, 0x0000014 - -gUnk_0813AACC:: @ 0813AACC - .incbin "baserom.gba", 0x13AACC, 0x0000014 - -gUnk_0813AAE0:: @ 0813AAE0 - .incbin "baserom.gba", 0x13AAE0, 0x0000014 - -gUnk_0813AAF4:: @ 0813AAF4 - .incbin "baserom.gba", 0x13AAF4, 0x0000014 - -gUnk_0813AB08:: @ 0813AB08 - .incbin "baserom.gba", 0x13AB08, 0x0000014 - -gUnk_0813AB1C:: @ 0813AB1C - .incbin "baserom.gba", 0x13AB1C, 0x000003C - -gUnk_0813AB58:: @ 0813AB58 - .incbin "baserom.gba", 0x13AB58, 0x0000014 - -gUnk_0813AB6C:: @ 0813AB6C - .incbin "baserom.gba", 0x13AB6C, 0x0000014 - -gUnk_0813AB80:: @ 0813AB80 - .incbin "baserom.gba", 0x13AB80, 0x0000014 - -gUnk_0813AB94:: @ 0813AB94 - .incbin "baserom.gba", 0x13AB94, 0x0000014 - -gUnk_0813ABA8:: @ 0813ABA8 - .incbin "baserom.gba", 0x13ABA8, 0x0000014 - -gUnk_0813ABBC:: @ 0813ABBC - .incbin "baserom.gba", 0x13ABBC, 0x0000014 - -gUnk_0813ABD0:: @ 0813ABD0 - .incbin "baserom.gba", 0x13ABD0, 0x0000014 - -gUnk_0813ABE4:: @ 0813ABE4 - .incbin "baserom.gba", 0x13ABE4, 0x0000014 - -gUnk_0813ABF8:: @ 0813ABF8 - .incbin "baserom.gba", 0x13ABF8, 0x0000014 - -gUnk_0813AC0C:: @ 0813AC0C - .incbin "baserom.gba", 0x13AC0C, 0x0000014 - -gUnk_0813AC20:: @ 0813AC20 - .incbin "baserom.gba", 0x13AC20, 0x0000014 - -gUnk_0813AC34:: @ 0813AC34 - .incbin "baserom.gba", 0x13AC34, 0x0000014 - -gUnk_0813AC48:: @ 0813AC48 - .incbin "baserom.gba", 0x13AC48, 0x0000014 - -gUnk_0813AC5C:: @ 0813AC5C - .incbin "baserom.gba", 0x13AC5C, 0x0000014 - -gUnk_0813AC70:: @ 0813AC70 - .incbin "baserom.gba", 0x13AC70, 0x0000014 - -gUnk_0813AC84:: @ 0813AC84 - .incbin "baserom.gba", 0x13AC84, 0x0000014 - -gUnk_0813AC98:: @ 0813AC98 - .incbin "baserom.gba", 0x13AC98, 0x0000014 - -gUnk_0813ACAC:: @ 0813ACAC - .incbin "baserom.gba", 0x13ACAC, 0x0000014 - -gUnk_0813ACC0:: @ 0813ACC0 - .incbin "baserom.gba", 0x13ACC0, 0x0000014 - -gUnk_0813ACD4:: @ 0813ACD4 - .incbin "baserom.gba", 0x13ACD4, 0x0000014 - -gUnk_0813ACE8:: @ 0813ACE8 - .incbin "baserom.gba", 0x13ACE8, 0x0000014 - -gUnk_0813ACFC:: @ 0813ACFC - .incbin "baserom.gba", 0x13ACFC, 0x0000014 - -gUnk_0813AD10:: @ 0813AD10 - .incbin "baserom.gba", 0x13AD10, 0x0000014 - -gUnk_0813AD24:: @ 0813AD24 - .incbin "baserom.gba", 0x13AD24, 0x0000014 - -gUnk_0813AD38:: @ 0813AD38 - .incbin "baserom.gba", 0x13AD38, 0x0000014 - -gUnk_0813AD4C:: @ 0813AD4C - .incbin "baserom.gba", 0x13AD4C, 0x0000014 - -gUnk_0813AD60:: @ 0813AD60 - .incbin "baserom.gba", 0x13AD60, 0x0000014 - -gUnk_0813AD74:: @ 0813AD74 - .incbin "baserom.gba", 0x13AD74, 0x0000014 - -gUnk_0813AD88:: @ 0813AD88 - .incbin "baserom.gba", 0x13AD88, 0x0000064 - -gUnk_0813ADEC:: @ 0813ADEC - .incbin "baserom.gba", 0x13ADEC, 0x0000028 - -gUnk_0813AE14:: @ 0813AE14 - .incbin "baserom.gba", 0x13AE14, 0x00005F9 - -gUnk_0813B40D:: @ 0813B40D - .incbin "baserom.gba", 0x13B40D, 0x0002406 - -gUnk_0813D813:: @ 0813D813 - .incbin "baserom.gba", 0x13D813, 0x0000643 - -gUnk_0813DE56:: @ 0813DE56 - .incbin "baserom.gba", 0x13DE56, 0x0000168 - -gUnk_0813DFBE:: @ 0813DFBE - .incbin "baserom.gba", 0x13DFBE, 0x0000025 - -gUnk_0813DFE3:: @ 0813DFE3 - .incbin "baserom.gba", 0x13DFE3, 0x000021D - -gUnk_0813E200:: @ 0813E200 - .incbin "baserom.gba", 0x13E200, 0x0000608 - -gUnk_0813E808:: @ 0813E808 - .incbin "baserom.gba", 0x13E808, 0x00000F9 - -gUnk_0813E901:: @ 0813E901 - .incbin "baserom.gba", 0x13E901, 0x0000205 - -gUnk_0813EB06:: @ 0813EB06 - .incbin "baserom.gba", 0x13EB06, 0x00002E4 - -gUnk_0813EDEA:: @ 0813EDEA - .incbin "baserom.gba", 0x13EDEA, 0x0000208 - -gUnk_0813EFF2:: @ 0813EFF2 - .incbin "baserom.gba", 0x13EFF2, 0x000070F - -gUnk_0813F701:: @ 0813F701 - .incbin "baserom.gba", 0x13F701, 0x0000114 - -gUnk_0813F815:: @ 0813F815 - .incbin "baserom.gba", 0x13F815, 0x00006C3 - -gUnk_0813FED8:: @ 0813FED8 - .incbin "baserom.gba", 0x13FED8, 0x0000128 - -gUnk_08140000:: @ 08140000 - .incbin "baserom.gba", 0x140000, 0x0000001 - -gUnk_08140001:: @ 08140001 - .incbin "baserom.gba", 0x140001, 0x0000006 - -gUnk_08140007:: @ 08140007 - .incbin "baserom.gba", 0x140007, 0x0000001 - -gUnk_08140008:: @ 08140008 - .incbin "baserom.gba", 0x140008, 0x000000A - -gUnk_08140012:: @ 08140012 - .incbin "baserom.gba", 0x140012, 0x0000007 - -gUnk_08140019:: @ 08140019 - .incbin "baserom.gba", 0x140019, 0x0000001 - -gUnk_0814001A:: @ 0814001A - .incbin "baserom.gba", 0x14001A, 0x0000030 - -gUnk_0814004A:: @ 0814004A - .incbin "baserom.gba", 0x14004A, 0x0000010 - -gUnk_0814005A:: @ 0814005A - .incbin "baserom.gba", 0x14005A, 0x0000002 - -gUnk_0814005C:: @ 0814005C - .incbin "baserom.gba", 0x14005C, 0x0000002 - -gUnk_0814005E:: @ 0814005E - .incbin "baserom.gba", 0x14005E, 0x000000D - -gUnk_0814006B:: @ 0814006B - .incbin "baserom.gba", 0x14006B, 0x0000025 - -gUnk_08140090:: @ 08140090 - .incbin "baserom.gba", 0x140090, 0x000002E - -gUnk_081400BE:: @ 081400BE - .incbin "baserom.gba", 0x1400BE, 0x0000024 - -gUnk_081400E2:: @ 081400E2 - .incbin "baserom.gba", 0x1400E2, 0x000005E - -gUnk_08140140:: @ 08140140 - .incbin "baserom.gba", 0x140140, 0x0000083 - -gUnk_081401C3:: @ 081401C3 - .incbin "baserom.gba", 0x1401C3, 0x000003D - -gUnk_08140200:: @ 08140200 - .incbin "baserom.gba", 0x140200, 0x0000025 - -gUnk_08140225:: @ 08140225 - .incbin "baserom.gba", 0x140225, 0x00000AE - -gUnk_081402D3:: @ 081402D3 - .incbin "baserom.gba", 0x1402D3, 0x0000026 - -gUnk_081402F9:: @ 081402F9 - .incbin "baserom.gba", 0x1402F9, 0x0000007 - -gUnk_08140300:: @ 08140300 - .incbin "baserom.gba", 0x140300, 0x00000F4 - -gUnk_081403F4:: @ 081403F4 - .incbin "baserom.gba", 0x1403F4, 0x000000D - -gUnk_08140401:: @ 08140401 - .incbin "baserom.gba", 0x140401, 0x0000001 - -gUnk_08140402:: @ 08140402 - .incbin "baserom.gba", 0x140402, 0x0000062 - -gUnk_08140464:: @ 08140464 - .incbin "baserom.gba", 0x140464, 0x00000A1 - -gUnk_08140505:: @ 08140505 - .incbin "baserom.gba", 0x140505, 0x000017C - -gUnk_08140681:: @ 08140681 - .incbin "baserom.gba", 0x140681, 0x0000170 - -gUnk_081407F1:: @ 081407F1 - .incbin "baserom.gba", 0x1407F1, 0x0000016 - -gUnk_08140807:: @ 08140807 - .incbin "baserom.gba", 0x140807, 0x000000C - -gUnk_08140813:: @ 08140813 - .incbin "baserom.gba", 0x140813, 0x0000075 - -gUnk_08140888:: @ 08140888 - .incbin "baserom.gba", 0x140888, 0x0000075 - -gUnk_081408FD:: @ 081408FD - .incbin "baserom.gba", 0x1408FD, 0x0000106 - -gUnk_08140A03:: @ 08140A03 - .incbin "baserom.gba", 0x140A03, 0x00000E9 - -gUnk_08140AEC:: @ 08140AEC - .incbin "baserom.gba", 0x140AEC, 0x0000010 - -gUnk_08140AFC:: @ 08140AFC - .incbin "baserom.gba", 0x140AFC, 0x0000004 - -gUnk_08140B00:: @ 08140B00 - .incbin "baserom.gba", 0x140B00, 0x0000006 - -gUnk_08140B06:: @ 08140B06 - .incbin "baserom.gba", 0x140B06, 0x00000F1 - -gUnk_08140BF7:: @ 08140BF7 - .incbin "baserom.gba", 0x140BF7, 0x0000011 - -gUnk_08140C08:: @ 08140C08 - .incbin "baserom.gba", 0x140C08, 0x00000F0 - -gUnk_08140CF8:: @ 08140CF8 - .incbin "baserom.gba", 0x140CF8, 0x0000015 - -gUnk_08140D0D:: @ 08140D0D - .incbin "baserom.gba", 0x140D0D, 0x00000E9 - -gUnk_08140DF6:: @ 08140DF6 - .incbin "baserom.gba", 0x140DF6, 0x000010D - -gUnk_08140F03:: @ 08140F03 - .incbin "baserom.gba", 0x140F03, 0x0000004 - -gUnk_08140F07:: @ 08140F07 - .incbin "baserom.gba", 0x140F07, 0x0000002 - -gUnk_08140F09:: @ 08140F09 - .incbin "baserom.gba", 0x140F09, 0x0000007 - -gUnk_08140F10:: @ 08140F10 - .incbin "baserom.gba", 0x140F10, 0x00000F6 - -gUnk_08141006:: @ 08141006 - .incbin "baserom.gba", 0x141006, 0x0000110 - -gUnk_08141116:: @ 08141116 - .incbin "baserom.gba", 0x141116, 0x00000E6 - -gUnk_081411FC:: @ 081411FC - .incbin "baserom.gba", 0x1411FC, 0x0000005 - -gUnk_08141201:: @ 08141201 - .incbin "baserom.gba", 0x141201, 0x0000003 - -gUnk_08141204:: @ 08141204 - .incbin "baserom.gba", 0x141204, 0x0000101 - -gUnk_08141305:: @ 08141305 - .incbin "baserom.gba", 0x141305, 0x0000009 - -gUnk_0814130E:: @ 0814130E - .incbin "baserom.gba", 0x14130E, 0x000000B - -gUnk_08141319:: @ 08141319 - .incbin "baserom.gba", 0x141319, 0x00000E6 - -gUnk_081413FF:: @ 081413FF - .incbin "baserom.gba", 0x1413FF, 0x0000013 - -gUnk_08141412:: @ 08141412 - .incbin "baserom.gba", 0x141412, 0x00000F7 - -gUnk_08141509:: @ 08141509 - .incbin "baserom.gba", 0x141509, 0x0000001 - -gUnk_0814150A:: @ 0814150A - .incbin "baserom.gba", 0x14150A, 0x0000002 - -gUnk_0814150C:: @ 0814150C - .incbin "baserom.gba", 0x14150C, 0x0000004 - -gUnk_08141510:: @ 08141510 - .incbin "baserom.gba", 0x141510, 0x0000002 - -gUnk_08141512:: @ 08141512 - .incbin "baserom.gba", 0x141512, 0x0000002 - -gUnk_08141514:: @ 08141514 - .incbin "baserom.gba", 0x141514, 0x00000DD - -gUnk_081415F1:: @ 081415F1 - .incbin "baserom.gba", 0x1415F1, 0x000001A - -gUnk_0814160B:: @ 0814160B - .incbin "baserom.gba", 0x14160B, 0x0000002 - -gUnk_0814160D:: @ 0814160D - .incbin "baserom.gba", 0x14160D, 0x0000103 - -gUnk_08141710:: @ 08141710 - .incbin "baserom.gba", 0x141710, 0x0000005 - -gUnk_08141715:: @ 08141715 - .incbin "baserom.gba", 0x141715, 0x0000005 - -gUnk_0814171A:: @ 0814171A - .incbin "baserom.gba", 0x14171A, 0x0000001 - -gUnk_0814171B:: @ 0814171B - .incbin "baserom.gba", 0x14171B, 0x000000A - -gUnk_08141725:: @ 08141725 - .incbin "baserom.gba", 0x141725, 0x00000E2 - -gUnk_08141807:: @ 08141807 - .incbin "baserom.gba", 0x141807, 0x0000017 - -gUnk_0814181E:: @ 0814181E - .incbin "baserom.gba", 0x14181E, 0x00001F8 - -gUnk_08141A16:: @ 08141A16 - .incbin "baserom.gba", 0x141A16, 0x0000007 - -gUnk_08141A1D:: @ 08141A1D - .incbin "baserom.gba", 0x141A1D, 0x00000FB - -gUnk_08141B18:: @ 08141B18 - .incbin "baserom.gba", 0x141B18, 0x0000001 - -gUnk_08141B19:: @ 08141B19 - .incbin "baserom.gba", 0x141B19, 0x0000001 - -gUnk_08141B1A:: @ 08141B1A - .incbin "baserom.gba", 0x141B1A, 0x00000FA - -gUnk_08141C14:: @ 08141C14 - .incbin "baserom.gba", 0x141C14, 0x0000004 - -gUnk_08141C18:: @ 08141C18 - .incbin "baserom.gba", 0x141C18, 0x0000007 - -gUnk_08141C1F:: @ 08141C1F - .incbin "baserom.gba", 0x141C1F, 0x0000001 - -gUnk_08141C20:: @ 08141C20 - .incbin "baserom.gba", 0x141C20, 0x0000003 - -gUnk_08141C23:: @ 08141C23 - .incbin "baserom.gba", 0x141C23, 0x00000F2 - -gUnk_08141D15:: @ 08141D15 - .incbin "baserom.gba", 0x141D15, 0x0000004 - -gUnk_08141D19:: @ 08141D19 - .incbin "baserom.gba", 0x141D19, 0x0000007 - -gUnk_08141D20:: @ 08141D20 - .incbin "baserom.gba", 0x141D20, 0x0000002 - -gUnk_08141D22:: @ 08141D22 - .incbin "baserom.gba", 0x141D22, 0x0000001 - -gUnk_08141D23:: @ 08141D23 - .incbin "baserom.gba", 0x141D23, 0x0000001 - -gUnk_08141D24:: @ 08141D24 - .incbin "baserom.gba", 0x141D24, 0x00000FC - -gUnk_08141E20:: @ 08141E20 - .incbin "baserom.gba", 0x141E20, 0x0000001 - -gUnk_08141E21:: @ 08141E21 - .incbin "baserom.gba", 0x141E21, 0x0000005 - -gUnk_08141E26:: @ 08141E26 - .incbin "baserom.gba", 0x141E26, 0x00000FB - -gUnk_08141F21:: @ 08141F21 - .incbin "baserom.gba", 0x141F21, 0x0000003 - -gUnk_08141F24:: @ 08141F24 - .incbin "baserom.gba", 0x141F24, 0x0000005 - -gUnk_08141F29:: @ 08141F29 - .incbin "baserom.gba", 0x141F29, 0x00000F4 - -gUnk_0814201D:: @ 0814201D - .incbin "baserom.gba", 0x14201D, 0x0000007 - -gUnk_08142024:: @ 08142024 - .incbin "baserom.gba", 0x142024, 0x0000002 - -gUnk_08142026:: @ 08142026 - .incbin "baserom.gba", 0x142026, 0x0000001 - -gUnk_08142027:: @ 08142027 - .incbin "baserom.gba", 0x142027, 0x0000106 - -gUnk_0814212D:: @ 0814212D - .incbin "baserom.gba", 0x14212D, 0x00000C1 - -gUnk_081421EE:: @ 081421EE - .incbin "baserom.gba", 0x1421EE, 0x000003D - -gUnk_0814222B:: @ 0814222B - .incbin "baserom.gba", 0x14222B, 0x0000104 - -gUnk_0814232F:: @ 0814232F - .incbin "baserom.gba", 0x14232F, 0x0000002 - -gUnk_08142331:: @ 08142331 - .incbin "baserom.gba", 0x142331, 0x0000001 - -gUnk_08142332:: @ 08142332 - .incbin "baserom.gba", 0x142332, 0x00000F9 - -gUnk_0814242B:: @ 0814242B - .incbin "baserom.gba", 0x14242B, 0x0000005 - -gUnk_08142430:: @ 08142430 - .incbin "baserom.gba", 0x142430, 0x00000F2 - -gUnk_08142522:: @ 08142522 - .incbin "baserom.gba", 0x142522, 0x000000F - -gUnk_08142531:: @ 08142531 - .incbin "baserom.gba", 0x142531, 0x0000102 - -gUnk_08142633:: @ 08142633 - .incbin "baserom.gba", 0x142633, 0x00000F3 - -gUnk_08142726:: @ 08142726 - .incbin "baserom.gba", 0x142726, 0x000010F - -gUnk_08142835:: @ 08142835 - .incbin "baserom.gba", 0x142835, 0x0000208 - -gUnk_08142A3D:: @ 08142A3D - .incbin "baserom.gba", 0x142A3D, 0x00000E1 - -gUnk_08142B1E:: @ 08142B1E - .incbin "baserom.gba", 0x142B1E, 0x0000015 - -gUnk_08142B33:: @ 08142B33 - .incbin "baserom.gba", 0x142B33, 0x000030C - -gUnk_08142E3F:: @ 08142E3F - .incbin "baserom.gba", 0x142E3F, 0x00001D9 - -gUnk_08143018:: @ 08143018 - .incbin "baserom.gba", 0x143018, 0x0000030 - -gUnk_08143048:: @ 08143048 - .incbin "baserom.gba", 0x143048, 0x00001F3 - -gUnk_0814323B:: @ 0814323B - .incbin "baserom.gba", 0x14323B, 0x00000F8 - -gUnk_08143333:: @ 08143333 - .incbin "baserom.gba", 0x143333, 0x0000006 - -gUnk_08143339:: @ 08143339 - .incbin "baserom.gba", 0x143339, 0x00000D7 - -gUnk_08143410:: @ 08143410 - .incbin "baserom.gba", 0x143410, 0x000000D - -gUnk_0814341D:: @ 0814341D - .incbin "baserom.gba", 0x14341D, 0x0000433 - -gUnk_08143850:: @ 08143850 - .incbin "baserom.gba", 0x143850, 0x0000514 - -gUnk_08143D64:: @ 08143D64 - .incbin "baserom.gba", 0x143D64, 0x00003D1 - -gUnk_08144135:: @ 08144135 - .incbin "baserom.gba", 0x144135, 0x000360C - -gUnk_08147741:: @ 08147741 - .incbin "baserom.gba", 0x147741, 0x00064AC - -gUnk_0814DBED:: @ 0814DBED - .incbin "baserom.gba", 0x14DBED, 0x000012A - -gUnk_0814DD17:: @ 0814DD17 - .incbin "baserom.gba", 0x14DD17, 0x00004C0 - -gUnk_0814E1D7:: @ 0814E1D7 - .incbin "baserom.gba", 0x14E1D7, 0x0000031 - -gUnk_0814E208:: @ 0814E208 - .incbin "baserom.gba", 0x14E208, 0x0000300 - -gUnk_0814E508:: @ 0814E508 - .incbin "baserom.gba", 0x14E508, 0x00003EF - -gUnk_0814E8F7:: @ 0814E8F7 - .incbin "baserom.gba", 0x14E8F7, 0x0000309 - -gUnk_0814EC00:: @ 0814EC00 - .incbin "baserom.gba", 0x14EC00, 0x00001D7 - -gUnk_0814EDD7:: @ 0814EDD7 - .incbin "baserom.gba", 0x14EDD7, 0x000012A - -gUnk_0814EF01:: @ 0814EF01 - .incbin "baserom.gba", 0x14EF01, 0x0000002 - -gUnk_0814EF03:: @ 0814EF03 - .incbin "baserom.gba", 0x14EF03, 0x0000018 - -gUnk_0814EF1B:: @ 0814EF1B - .incbin "baserom.gba", 0x14EF1B, 0x00000E6 - -gUnk_0814F001:: @ 0814F001 - .incbin "baserom.gba", 0x14F001, 0x00000DA - -gUnk_0814F0DB:: @ 0814F0DB - .incbin "baserom.gba", 0x14F0DB, 0x0000148 - -gUnk_0814F223:: @ 0814F223 - .incbin "baserom.gba", 0x14F223, 0x00003CC - -gUnk_0814F5EF:: @ 0814F5EF - .incbin "baserom.gba", 0x14F5EF, 0x0000009 - -gUnk_0814F5F8:: @ 0814F5F8 - .incbin "baserom.gba", 0x14F5F8, 0x0000208 - -gUnk_0814F800:: @ 0814F800 - .incbin "baserom.gba", 0x14F800, 0x0000018 - -gUnk_0814F818:: @ 0814F818 - .incbin "baserom.gba", 0x14F818, 0x00000C9 - -gUnk_0814F8E1:: @ 0814F8E1 - .incbin "baserom.gba", 0x14F8E1, 0x0000010 - -gUnk_0814F8F1:: @ 0814F8F1 - .incbin "baserom.gba", 0x14F8F1, 0x0000007 - -gUnk_0814F8F8:: @ 0814F8F8 - .incbin "baserom.gba", 0x14F8F8, 0x00001F0 - -gUnk_0814FAE8:: @ 0814FAE8 - .incbin "baserom.gba", 0x14FAE8, 0x00000F2 - -gUnk_0814FBDA:: @ 0814FBDA - .incbin "baserom.gba", 0x14FBDA, 0x0000104 - -gUnk_0814FCDE:: @ 0814FCDE - .incbin "baserom.gba", 0x14FCDE, 0x000001A - -gUnk_0814FCF8:: @ 0814FCF8 - .incbin "baserom.gba", 0x14FCF8, 0x00000F6 - -gUnk_0814FDEE:: @ 0814FDEE - .incbin "baserom.gba", 0x14FDEE, 0x000000C - -gUnk_0814FDFA:: @ 0814FDFA - .incbin "baserom.gba", 0x14FDFA, 0x0000020 - -gUnk_0814FE1A:: @ 0814FE1A - .incbin "baserom.gba", 0x14FE1A, 0x0000020 - -gUnk_0814FE3A:: @ 0814FE3A - .incbin "baserom.gba", 0x14FE3A, 0x00000B2 - -gUnk_0814FEEC:: @ 0814FEEC - .incbin "baserom.gba", 0x14FEEC, 0x00000E2 - -gUnk_0814FFCE:: @ 0814FFCE - .incbin "baserom.gba", 0x14FFCE, 0x0000032 - -gUnk_08150000:: @ 08150000 - .incbin "baserom.gba", 0x150000, 0x0000003 - -gUnk_08150003:: @ 08150003 - .incbin "baserom.gba", 0x150003, 0x0000007 - -gUnk_0815000A:: @ 0815000A - .incbin "baserom.gba", 0x15000A, 0x0000009 - -gUnk_08150013:: @ 08150013 - .incbin "baserom.gba", 0x150013, 0x0000007 - -gUnk_0815001A:: @ 0815001A - .incbin "baserom.gba", 0x15001A, 0x0000010 - -gUnk_0815002A:: @ 0815002A - .incbin "baserom.gba", 0x15002A, 0x000000A - -gUnk_08150034:: @ 08150034 - .incbin "baserom.gba", 0x150034, 0x0000008 - -gUnk_0815003C:: @ 0815003C - .incbin "baserom.gba", 0x15003C, 0x0000004 - -gUnk_08150040:: @ 08150040 - .incbin "baserom.gba", 0x150040, 0x0000016 - -gUnk_08150056:: @ 08150056 - .incbin "baserom.gba", 0x150056, 0x000008F - -gUnk_081500E5:: @ 081500E5 - .incbin "baserom.gba", 0x1500E5, 0x0000006 - -gUnk_081500EB:: @ 081500EB - .incbin "baserom.gba", 0x1500EB, 0x000001F - -gUnk_0815010A:: @ 0815010A - .incbin "baserom.gba", 0x15010A, 0x0000028 - -gUnk_08150132:: @ 08150132 - .incbin "baserom.gba", 0x150132, 0x000000E - -gUnk_08150140:: @ 08150140 - .incbin "baserom.gba", 0x150140, 0x00001C0 - -gUnk_08150300:: @ 08150300 - .incbin "baserom.gba", 0x150300, 0x000001D - -gUnk_0815031D:: @ 0815031D - .incbin "baserom.gba", 0x15031D, 0x00000E4 - -gUnk_08150401:: @ 08150401 - .incbin "baserom.gba", 0x150401, 0x0000001 - -gUnk_08150402:: @ 08150402 - .incbin "baserom.gba", 0x150402, 0x000001B - -gUnk_0815041D:: @ 0815041D - .incbin "baserom.gba", 0x15041D, 0x0000027 - -gUnk_08150444:: @ 08150444 - .incbin "baserom.gba", 0x150444, 0x00001A6 - -gUnk_081505EA:: @ 081505EA - .incbin "baserom.gba", 0x1505EA, 0x0000017 - -gUnk_08150601:: @ 08150601 - .incbin "baserom.gba", 0x150601, 0x00000AD - -gUnk_081506AE:: @ 081506AE - .incbin "baserom.gba", 0x1506AE, 0x0000125 - -gUnk_081507D3:: @ 081507D3 - .incbin "baserom.gba", 0x1507D3, 0x0000028 - -gUnk_081507FB:: @ 081507FB - .incbin "baserom.gba", 0x1507FB, 0x0000009 - -gUnk_08150804:: @ 08150804 - .incbin "baserom.gba", 0x150804, 0x0000002 - -gUnk_08150806:: @ 08150806 - .incbin "baserom.gba", 0x150806, 0x000000E - -gUnk_08150814:: @ 08150814 - .incbin "baserom.gba", 0x150814, 0x00000DE - -gUnk_081508F2:: @ 081508F2 - .incbin "baserom.gba", 0x1508F2, 0x000000B - -gUnk_081508FD:: @ 081508FD - .incbin "baserom.gba", 0x1508FD, 0x000010F - -gUnk_08150A0C:: @ 08150A0C - .incbin "baserom.gba", 0x150A0C, 0x00000E6 - -gUnk_08150AF2:: @ 08150AF2 - .incbin "baserom.gba", 0x150AF2, 0x0000018 - -gUnk_08150B0A:: @ 08150B0A - .incbin "baserom.gba", 0x150B0A, 0x0000005 - -gUnk_08150B0F:: @ 08150B0F - .incbin "baserom.gba", 0x150B0F, 0x000000C - -gUnk_08150B1B:: @ 08150B1B - .incbin "baserom.gba", 0x150B1B, 0x00002E6 - -gUnk_08150E01:: @ 08150E01 - .incbin "baserom.gba", 0x150E01, 0x00000EE - -gUnk_08150EEF:: @ 08150EEF - .incbin "baserom.gba", 0x150EEF, 0x000001D - -gUnk_08150F0C:: @ 08150F0C - .incbin "baserom.gba", 0x150F0C, 0x00000EB - -gUnk_08150FF7:: @ 08150FF7 - .incbin "baserom.gba", 0x150FF7, 0x000000D - -gUnk_08151004:: @ 08151004 - .incbin "baserom.gba", 0x151004, 0x00000FC - -gUnk_08151100:: @ 08151100 - .incbin "baserom.gba", 0x151100, 0x0000007 - -gUnk_08151107:: @ 08151107 - .incbin "baserom.gba", 0x151107, 0x00000F2 - -gUnk_081511F9:: @ 081511F9 - .incbin "baserom.gba", 0x1511F9, 0x000000F - -gUnk_08151208:: @ 08151208 - .incbin "baserom.gba", 0x151208, 0x0000004 - -gUnk_0815120C:: @ 0815120C - .incbin "baserom.gba", 0x15120C, 0x00000FB - -gUnk_08151307:: @ 08151307 - .incbin "baserom.gba", 0x151307, 0x0000007 - -gUnk_0815130E:: @ 0815130E - .incbin "baserom.gba", 0x15130E, 0x00000ED - -gUnk_081513FB:: @ 081513FB - .incbin "baserom.gba", 0x1513FB, 0x000011D - -gUnk_08151518:: @ 08151518 - .incbin "baserom.gba", 0x151518, 0x0000054 - -gUnk_0815156C:: @ 0815156C - .incbin "baserom.gba", 0x15156C, 0x00000A0 - -gUnk_0815160C:: @ 0815160C - .incbin "baserom.gba", 0x15160C, 0x0000004 - -gUnk_08151610:: @ 08151610 - .incbin "baserom.gba", 0x151610, 0x0000007 - -gUnk_08151617:: @ 08151617 - .incbin "baserom.gba", 0x151617, 0x00000EC - -gUnk_08151703:: @ 08151703 - .incbin "baserom.gba", 0x151703, 0x0000010 - -gUnk_08151713:: @ 08151713 - .incbin "baserom.gba", 0x151713, 0x0000003 - -gUnk_08151716:: @ 08151716 - .incbin "baserom.gba", 0x151716, 0x000000F - -gUnk_08151725:: @ 08151725 - .incbin "baserom.gba", 0x151725, 0x00000ED - -gUnk_08151812:: @ 08151812 - .incbin "baserom.gba", 0x151812, 0x0000001 - -gUnk_08151813:: @ 08151813 - .incbin "baserom.gba", 0x151813, 0x0000002 - -gUnk_08151815:: @ 08151815 - .incbin "baserom.gba", 0x151815, 0x0000010 - -gUnk_08151825:: @ 08151825 - .incbin "baserom.gba", 0x151825, 0x00000EA - -gUnk_0815190F:: @ 0815190F - .incbin "baserom.gba", 0x15190F, 0x0000006 - -gUnk_08151915:: @ 08151915 - .incbin "baserom.gba", 0x151915, 0x00000FA - -gUnk_08151A0F:: @ 08151A0F - .incbin "baserom.gba", 0x151A0F, 0x000000B - -gUnk_08151A1A:: @ 08151A1A - .incbin "baserom.gba", 0x151A1A, 0x00000FB - -gUnk_08151B15:: @ 08151B15 - .incbin "baserom.gba", 0x151B15, 0x0000004 - -gUnk_08151B19:: @ 08151B19 - .incbin "baserom.gba", 0x151B19, 0x0000004 - -gUnk_08151B1D:: @ 08151B1D - .incbin "baserom.gba", 0x151B1D, 0x0000002 - -gUnk_08151B1F:: @ 08151B1F - .incbin "baserom.gba", 0x151B1F, 0x00000E9 - -gUnk_08151C08:: @ 08151C08 - .incbin "baserom.gba", 0x151C08, 0x0000015 - -gUnk_08151C1D:: @ 08151C1D - .incbin "baserom.gba", 0x151C1D, 0x0000004 - -gUnk_08151C21:: @ 08151C21 - .incbin "baserom.gba", 0x151C21, 0x0000004 - -gUnk_08151C25:: @ 08151C25 - .incbin "baserom.gba", 0x151C25, 0x00000F3 - -gUnk_08151D18:: @ 08151D18 - .incbin "baserom.gba", 0x151D18, 0x000000D - -gUnk_08151D25:: @ 08151D25 - .incbin "baserom.gba", 0x151D25, 0x00000FC - -gUnk_08151E21:: @ 08151E21 - .incbin "baserom.gba", 0x151E21, 0x0000005 - -gUnk_08151E26:: @ 08151E26 - .incbin "baserom.gba", 0x151E26, 0x00000FA - -gUnk_08151F20:: @ 08151F20 - .incbin "baserom.gba", 0x151F20, 0x0000003 - -gUnk_08151F23:: @ 08151F23 - .incbin "baserom.gba", 0x151F23, 0x0000002 - -gUnk_08151F25:: @ 08151F25 - .incbin "baserom.gba", 0x151F25, 0x00000FF - -gUnk_08152024:: @ 08152024 - .incbin "baserom.gba", 0x152024, 0x0000003 - -gUnk_08152027:: @ 08152027 - .incbin "baserom.gba", 0x152027, 0x0000001 - -gUnk_08152028:: @ 08152028 - .incbin "baserom.gba", 0x152028, 0x0000007 - -gUnk_0815202F:: @ 0815202F - .incbin "baserom.gba", 0x15202F, 0x0000027 - -gUnk_08152056:: @ 08152056 - .incbin "baserom.gba", 0x152056, 0x00000C3 - -gUnk_08152119:: @ 08152119 - .incbin "baserom.gba", 0x152119, 0x0000001 - -gUnk_0815211A:: @ 0815211A - .incbin "baserom.gba", 0x15211A, 0x0000009 - -gUnk_08152123:: @ 08152123 - .incbin "baserom.gba", 0x152123, 0x0000003 - -gUnk_08152126:: @ 08152126 - .incbin "baserom.gba", 0x152126, 0x0000009 - -gUnk_0815212F:: @ 0815212F - .incbin "baserom.gba", 0x15212F, 0x0000001 - -gUnk_08152130:: @ 08152130 - .incbin "baserom.gba", 0x152130, 0x00000E1 - -gUnk_08152211:: @ 08152211 - .incbin "baserom.gba", 0x152211, 0x0000007 - -gUnk_08152218:: @ 08152218 - .incbin "baserom.gba", 0x152218, 0x0000011 - -gUnk_08152229:: @ 08152229 - .incbin "baserom.gba", 0x152229, 0x0000008 - -gUnk_08152231:: @ 08152231 - .incbin "baserom.gba", 0x152231, 0x00000EF - -gUnk_08152320:: @ 08152320 - .incbin "baserom.gba", 0x152320, 0x000000C - -gUnk_0815232C:: @ 0815232C - .incbin "baserom.gba", 0x15232C, 0x0000005 - -gUnk_08152331:: @ 08152331 - .incbin "baserom.gba", 0x152331, 0x00000CD - -gUnk_081523FE:: @ 081523FE - .incbin "baserom.gba", 0x1523FE, 0x000002B - -gUnk_08152429:: @ 08152429 - .incbin "baserom.gba", 0x152429, 0x00000EE - -gUnk_08152517:: @ 08152517 - .incbin "baserom.gba", 0x152517, 0x0000126 - -gUnk_0815263D:: @ 0815263D - .incbin "baserom.gba", 0x15263D, 0x00000F8 - -gUnk_08152735:: @ 08152735 - .incbin "baserom.gba", 0x152735, 0x000030B - -gUnk_08152A40:: @ 08152A40 - .incbin "baserom.gba", 0x152A40, 0x00000CC - -gUnk_08152B0C:: @ 08152B0C - .incbin "baserom.gba", 0x152B0C, 0x0000027 - -gUnk_08152B33:: @ 08152B33 - .incbin "baserom.gba", 0x152B33, 0x00002E3 - -gUnk_08152E16:: @ 08152E16 - .incbin "baserom.gba", 0x152E16, 0x000012F - -gUnk_08152F45:: @ 08152F45 - .incbin "baserom.gba", 0x152F45, 0x0000A22 - -gUnk_08153967:: @ 08153967 - .incbin "baserom.gba", 0x153967, 0x00001EC - -gUnk_08153B53:: @ 08153B53 - .incbin "baserom.gba", 0x153B53, 0x0000BD3 - -gUnk_08154726:: @ 08154726 - .incbin "baserom.gba", 0x154726, 0x0001E50 - -gUnk_08156576:: @ 08156576 - .incbin "baserom.gba", 0x156576, 0x0000333 - -gUnk_081568A9:: @ 081568A9 - .incbin "baserom.gba", 0x1568A9, 0x00000FE - -gUnk_081569A7:: @ 081569A7 - .incbin "baserom.gba", 0x1569A7, 0x0001BDE - -gUnk_08158585:: @ 08158585 - .incbin "baserom.gba", 0x158585, 0x0002B24 - -gUnk_0815B0A9:: @ 0815B0A9 - .incbin "baserom.gba", 0x15B0A9, 0x0001251 - -gUnk_0815C2FA:: @ 0815C2FA - .incbin "baserom.gba", 0x15C2FA, 0x0002101 - -gUnk_0815E3FB:: @ 0815E3FB - .incbin "baserom.gba", 0x15E3FB, 0x0000CFD - -gUnk_0815F0F8:: @ 0815F0F8 - .incbin "baserom.gba", 0x15F0F8, 0x0000AF5 - -gUnk_0815FBED:: @ 0815FBED - .incbin "baserom.gba", 0x15FBED, 0x0000222 - -gUnk_0815FE0F:: @ 0815FE0F - .incbin "baserom.gba", 0x15FE0F, 0x00001F1 - -gUnk_08160000:: @ 08160000 - .incbin "baserom.gba", 0x160000, 0x0000009 - -gUnk_08160009:: @ 08160009 - .incbin "baserom.gba", 0x160009, 0x00000B8 - -gUnk_081600C1:: @ 081600C1 - .incbin "baserom.gba", 0x1600C1, 0x0000012 - -gUnk_081600D3:: @ 081600D3 - .incbin "baserom.gba", 0x1600D3, 0x000000C - -gUnk_081600DF:: @ 081600DF - .incbin "baserom.gba", 0x1600DF, 0x0000005 - -gUnk_081600E4:: @ 081600E4 - .incbin "baserom.gba", 0x1600E4, 0x0000224 - -gUnk_08160308:: @ 08160308 - .incbin "baserom.gba", 0x160308, 0x000009D - -gUnk_081603A5:: @ 081603A5 - .incbin "baserom.gba", 0x1603A5, 0x000006A - -gUnk_0816040F:: @ 0816040F - .incbin "baserom.gba", 0x16040F, 0x00004DD - -gUnk_081608EC:: @ 081608EC - .incbin "baserom.gba", 0x1608EC, 0x0000118 - -gUnk_08160A04:: @ 08160A04 - .incbin "baserom.gba", 0x160A04, 0x0000104 - -gUnk_08160B08:: @ 08160B08 - .incbin "baserom.gba", 0x160B08, 0x00001EB - -gUnk_08160CF3:: @ 08160CF3 - .incbin "baserom.gba", 0x160CF3, 0x000020E - -gUnk_08160F01:: @ 08160F01 - .incbin "baserom.gba", 0x160F01, 0x0000002 - -gUnk_08160F03:: @ 08160F03 - .incbin "baserom.gba", 0x160F03, 0x0000006 - -gUnk_08160F09:: @ 08160F09 - .incbin "baserom.gba", 0x160F09, 0x0000105 - -gUnk_0816100E:: @ 0816100E - .incbin "baserom.gba", 0x16100E, 0x00000EF - -gUnk_081610FD:: @ 081610FD - .incbin "baserom.gba", 0x1610FD, 0x0000007 - -gUnk_08161104:: @ 08161104 - .incbin "baserom.gba", 0x161104, 0x00000F8 - -gUnk_081611FC:: @ 081611FC - .incbin "baserom.gba", 0x1611FC, 0x000002D - -gUnk_08161229:: @ 08161229 - .incbin "baserom.gba", 0x161229, 0x000002B - -gUnk_08161254:: @ 08161254 - .incbin "baserom.gba", 0x161254, 0x0000097 - -gUnk_081612EB:: @ 081612EB - .incbin "baserom.gba", 0x1612EB, 0x000000F - -gUnk_081612FA:: @ 081612FA - .incbin "baserom.gba", 0x1612FA, 0x0000006 - -gUnk_08161300:: @ 08161300 - .incbin "baserom.gba", 0x161300, 0x00000E2 - -gUnk_081613E2:: @ 081613E2 - .incbin "baserom.gba", 0x1613E2, 0x0000041 - -gUnk_08161423:: @ 08161423 - .incbin "baserom.gba", 0x161423, 0x00002E8 - -gUnk_0816170B:: @ 0816170B - .incbin "baserom.gba", 0x16170B, 0x00000FD - -gUnk_08161808:: @ 08161808 - .incbin "baserom.gba", 0x161808, 0x0000006 - -gUnk_0816180E:: @ 0816180E - .incbin "baserom.gba", 0x16180E, 0x000000B - -gUnk_08161819:: @ 08161819 - .incbin "baserom.gba", 0x161819, 0x00000F2 - -gUnk_0816190B:: @ 0816190B - .incbin "baserom.gba", 0x16190B, 0x0000007 - -gUnk_08161912:: @ 08161912 - .incbin "baserom.gba", 0x161912, 0x0000102 - -gUnk_08161A14:: @ 08161A14 - .incbin "baserom.gba", 0x161A14, 0x0000002 - -gUnk_08161A16:: @ 08161A16 - .incbin "baserom.gba", 0x161A16, 0x000000A - -gUnk_08161A20:: @ 08161A20 - .incbin "baserom.gba", 0x161A20, 0x00000EC - -gUnk_08161B0C:: @ 08161B0C - .incbin "baserom.gba", 0x161B0C, 0x0000003 - -gUnk_08161B0F:: @ 08161B0F - .incbin "baserom.gba", 0x161B0F, 0x0000009 - -gUnk_08161B18:: @ 08161B18 - .incbin "baserom.gba", 0x161B18, 0x0000005 - -gUnk_08161B1D:: @ 08161B1D - .incbin "baserom.gba", 0x161B1D, 0x0000007 - -gUnk_08161B24:: @ 08161B24 - .incbin "baserom.gba", 0x161B24, 0x00000AC - -gUnk_08161BD0:: @ 08161BD0 - .incbin "baserom.gba", 0x161BD0, 0x000004F - -gUnk_08161C1F:: @ 08161C1F - .incbin "baserom.gba", 0x161C1F, 0x00000FB - -gUnk_08161D1A:: @ 08161D1A - .incbin "baserom.gba", 0x161D1A, 0x000001B - -gUnk_08161D35:: @ 08161D35 - .incbin "baserom.gba", 0x161D35, 0x00000CB - -gUnk_08161E00:: @ 08161E00 - .incbin "baserom.gba", 0x161E00, 0x0000017 - -gUnk_08161E17:: @ 08161E17 - .incbin "baserom.gba", 0x161E17, 0x00000D9 - -gUnk_08161EF0:: @ 08161EF0 - .incbin "baserom.gba", 0x161EF0, 0x000001D - -gUnk_08161F0D:: @ 08161F0D - .incbin "baserom.gba", 0x161F0D, 0x0000011 - -gUnk_08161F1E:: @ 08161F1E - .incbin "baserom.gba", 0x161F1E, 0x0000004 - -gUnk_08161F22:: @ 08161F22 - .incbin "baserom.gba", 0x161F22, 0x0000006 - -gUnk_08161F28:: @ 08161F28 - .incbin "baserom.gba", 0x161F28, 0x00000F5 - -gUnk_0816201D:: @ 0816201D - .incbin "baserom.gba", 0x16201D, 0x0000008 - -gUnk_08162025:: @ 08162025 - .incbin "baserom.gba", 0x162025, 0x0000005 - -gUnk_0816202A:: @ 0816202A - .incbin "baserom.gba", 0x16202A, 0x0000100 - -gUnk_0816212A:: @ 0816212A - .incbin "baserom.gba", 0x16212A, 0x00000ED - -gUnk_08162217:: @ 08162217 - .incbin "baserom.gba", 0x162217, 0x0000017 - -gUnk_0816222E:: @ 0816222E - .incbin "baserom.gba", 0x16222E, 0x00000F5 - -gUnk_08162323:: @ 08162323 - .incbin "baserom.gba", 0x162323, 0x0000001 - -gUnk_08162324:: @ 08162324 - .incbin "baserom.gba", 0x162324, 0x0000005 - -gUnk_08162329:: @ 08162329 - .incbin "baserom.gba", 0x162329, 0x0000004 - -gUnk_0816232D:: @ 0816232D - .incbin "baserom.gba", 0x16232D, 0x0000002 - -gUnk_0816232F:: @ 0816232F - .incbin "baserom.gba", 0x16232F, 0x0000002 - -gUnk_08162331:: @ 08162331 - .incbin "baserom.gba", 0x162331, 0x00001E9 - -gUnk_0816251A:: @ 0816251A - .incbin "baserom.gba", 0x16251A, 0x0000014 - -gUnk_0816252E:: @ 0816252E - .incbin "baserom.gba", 0x16252E, 0x0000106 - -gUnk_08162634:: @ 08162634 - .incbin "baserom.gba", 0x162634, 0x0000408 - -gUnk_08162A3C:: @ 08162A3C - .incbin "baserom.gba", 0x162A3C, 0x00000FD - -gUnk_08162B39:: @ 08162B39 - .incbin "baserom.gba", 0x162B39, 0x0000309 - -gUnk_08162E42:: @ 08162E42 - .incbin "baserom.gba", 0x162E42, 0x0000200 - -gUnk_08163042:: @ 08163042 - .incbin "baserom.gba", 0x163042, 0x00000EF - -gUnk_08163131:: @ 08163131 - .incbin "baserom.gba", 0x163131, 0x0000013 - -gUnk_08163144:: @ 08163144 - .incbin "baserom.gba", 0x163144, 0x00010BD - -gUnk_08164201:: @ 08164201 - .incbin "baserom.gba", 0x164201, 0x0001315 - -gUnk_08165516:: @ 08165516 - .incbin "baserom.gba", 0x165516, 0x000015F - -gUnk_08165675:: @ 08165675 - .incbin "baserom.gba", 0x165675, 0x0000BA8 - -gUnk_0816621D:: @ 0816621D - .incbin "baserom.gba", 0x16621D, 0x0001014 - -gUnk_08167231:: @ 08167231 - .incbin "baserom.gba", 0x167231, 0x0003DFE - -gUnk_0816B02F:: @ 0816B02F - .incbin "baserom.gba", 0x16B02F, 0x00037D2 - -gUnk_0816E801:: @ 0816E801 - .incbin "baserom.gba", 0x16E801, 0x0000523 - -gUnk_0816ED24:: @ 0816ED24 - .incbin "baserom.gba", 0x16ED24, 0x00002A1 - -gUnk_0816EFC5:: @ 0816EFC5 - .incbin "baserom.gba", 0x16EFC5, 0x0000232 - -gUnk_0816F1F7:: @ 0816F1F7 - .incbin "baserom.gba", 0x16F1F7, 0x00005DD - -gUnk_0816F7D4:: @ 0816F7D4 - .incbin "baserom.gba", 0x16F7D4, 0x000001C - -gUnk_0816F7F0:: @ 0816F7F0 - .incbin "baserom.gba", 0x16F7F0, 0x0000603 - -gUnk_0816FDF3:: @ 0816FDF3 - .incbin "baserom.gba", 0x16FDF3, 0x0000105 - -gUnk_0816FEF8:: @ 0816FEF8 - .incbin "baserom.gba", 0x16FEF8, 0x0000108 - -gUnk_08170000:: @ 08170000 - .incbin "baserom.gba", 0x170000, 0x000000D - -gUnk_0817000D:: @ 0817000D - .incbin "baserom.gba", 0x17000D, 0x0000005 - -gUnk_08170012:: @ 08170012 - .incbin "baserom.gba", 0x170012, 0x0000087 - -gUnk_08170099:: @ 08170099 - .incbin "baserom.gba", 0x170099, 0x0000051 - -gUnk_081700EA:: @ 081700EA - .incbin "baserom.gba", 0x1700EA, 0x000001D - -gUnk_08170107:: @ 08170107 - .incbin "baserom.gba", 0x170107, 0x0000039 - -gUnk_08170140:: @ 08170140 - .incbin "baserom.gba", 0x170140, 0x00001BA - -gUnk_081702FA:: @ 081702FA - .incbin "baserom.gba", 0x1702FA, 0x00000F7 - -gUnk_081703F1:: @ 081703F1 - .incbin "baserom.gba", 0x1703F1, 0x0000010 - -gUnk_08170401:: @ 08170401 - .incbin "baserom.gba", 0x170401, 0x000000F - -gUnk_08170410:: @ 08170410 - .incbin "baserom.gba", 0x170410, 0x000000D - -gUnk_0817041D:: @ 0817041D - .incbin "baserom.gba", 0x17041D, 0x0000303 - -gUnk_08170720:: @ 08170720 - .incbin "baserom.gba", 0x170720, 0x0000040 - -gUnk_08170760:: @ 08170760 - .incbin "baserom.gba", 0x170760, 0x0000045 - -gUnk_081707A5:: @ 081707A5 - .incbin "baserom.gba", 0x1707A5, 0x0000061 - -gUnk_08170806:: @ 08170806 - .incbin "baserom.gba", 0x170806, 0x0000108 - -gUnk_0817090E:: @ 0817090E - .incbin "baserom.gba", 0x17090E, 0x00001F1 - -gUnk_08170AFF:: @ 08170AFF - .incbin "baserom.gba", 0x170AFF, 0x0000106 - -gUnk_08170C05:: @ 08170C05 - .incbin "baserom.gba", 0x170C05, 0x00003F0 - -gUnk_08170FF5:: @ 08170FF5 - .incbin "baserom.gba", 0x170FF5, 0x0000012 - -gUnk_08171007:: @ 08171007 - .incbin "baserom.gba", 0x171007, 0x0000045 - -gUnk_0817104C:: @ 0817104C - .incbin "baserom.gba", 0x17104C, 0x000004E - -gUnk_0817109A:: @ 0817109A - .incbin "baserom.gba", 0x17109A, 0x0000068 - -gUnk_08171102:: @ 08171102 - .incbin "baserom.gba", 0x171102, 0x00000E9 - -gUnk_081711EB:: @ 081711EB - .incbin "baserom.gba", 0x1711EB, 0x000001B - -gUnk_08171206:: @ 08171206 - .incbin "baserom.gba", 0x171206, 0x000001B - -gUnk_08171221:: @ 08171221 - .incbin "baserom.gba", 0x171221, 0x00000E4 - -gUnk_08171305:: @ 08171305 - .incbin "baserom.gba", 0x171305, 0x0000149 - -gUnk_0817144E:: @ 0817144E - .incbin "baserom.gba", 0x17144E, 0x00000B3 - -gUnk_08171501:: @ 08171501 - .incbin "baserom.gba", 0x171501, 0x000000E - -gUnk_0817150F:: @ 0817150F - .incbin "baserom.gba", 0x17150F, 0x00000FE - -gUnk_0817160D:: @ 0817160D - .incbin "baserom.gba", 0x17160D, 0x0000014 - -gUnk_08171621:: @ 08171621 - .incbin "baserom.gba", 0x171621, 0x00003F5 - -gUnk_08171A16:: @ 08171A16 - .incbin "baserom.gba", 0x171A16, 0x00000FB - -gUnk_08171B11:: @ 08171B11 - .incbin "baserom.gba", 0x171B11, 0x000010A - -gUnk_08171C1B:: @ 08171C1B - .incbin "baserom.gba", 0x171C1B, 0x000015B - -gUnk_08171D76:: @ 08171D76 - .incbin "baserom.gba", 0x171D76, 0x00000AF - -gUnk_08171E25:: @ 08171E25 - .incbin "baserom.gba", 0x171E25, 0x00000DF - -gUnk_08171F04:: @ 08171F04 - .incbin "baserom.gba", 0x171F04, 0x000001A - -gUnk_08171F1E:: @ 08171F1E - .incbin "baserom.gba", 0x171F1E, 0x0000014 - -gUnk_08171F32:: @ 08171F32 - .incbin "baserom.gba", 0x171F32, 0x00000E5 - -gUnk_08172017:: @ 08172017 - .incbin "baserom.gba", 0x172017, 0x0000009 - -gUnk_08172020:: @ 08172020 - .incbin "baserom.gba", 0x172020, 0x0000001 - -gUnk_08172021:: @ 08172021 - .incbin "baserom.gba", 0x172021, 0x0000001 - -gUnk_08172022:: @ 08172022 - .incbin "baserom.gba", 0x172022, 0x000000B - -gUnk_0817202D:: @ 0817202D - .incbin "baserom.gba", 0x17202D, 0x0000032 - -gUnk_0817205F:: @ 0817205F - .incbin "baserom.gba", 0x17205F, 0x00000BB - -gUnk_0817211A:: @ 0817211A - .incbin "baserom.gba", 0x17211A, 0x000000A - -gUnk_08172124:: @ 08172124 - .incbin "baserom.gba", 0x172124, 0x0000001 - -gUnk_08172125:: @ 08172125 - .incbin "baserom.gba", 0x172125, 0x0000004 - -gUnk_08172129:: @ 08172129 - .incbin "baserom.gba", 0x172129, 0x000000A - -gUnk_08172133:: @ 08172133 - .incbin "baserom.gba", 0x172133, 0x00000F2 - -gUnk_08172225:: @ 08172225 - .incbin "baserom.gba", 0x172225, 0x0000001 - -gUnk_08172226:: @ 08172226 - .incbin "baserom.gba", 0x172226, 0x0000003 - -gUnk_08172229:: @ 08172229 - .incbin "baserom.gba", 0x172229, 0x0000001 - -gUnk_0817222A:: @ 0817222A - .incbin "baserom.gba", 0x17222A, 0x0000017 - -gUnk_08172241:: @ 08172241 - .incbin "baserom.gba", 0x172241, 0x00000DF - -gUnk_08172320:: @ 08172320 - .incbin "baserom.gba", 0x172320, 0x0000008 - -gUnk_08172328:: @ 08172328 - .incbin "baserom.gba", 0x172328, 0x0000206 - -gUnk_0817252E:: @ 0817252E - .incbin "baserom.gba", 0x17252E, 0x00000FE - -gUnk_0817262C:: @ 0817262C - .incbin "baserom.gba", 0x17262C, 0x0000009 - -gUnk_08172635:: @ 08172635 - .incbin "baserom.gba", 0x172635, 0x00000F1 - -gUnk_08172726:: @ 08172726 - .incbin "baserom.gba", 0x172726, 0x0000012 - -gUnk_08172738:: @ 08172738 - .incbin "baserom.gba", 0x172738, 0x00000E7 - -gUnk_0817281F:: @ 0817281F - .incbin "baserom.gba", 0x17281F, 0x0000016 - -gUnk_08172835:: @ 08172835 - .incbin "baserom.gba", 0x172835, 0x0000006 - -gUnk_0817283B:: @ 0817283B - .incbin "baserom.gba", 0x17283B, 0x00000E2 - -gUnk_0817291D:: @ 0817291D - .incbin "baserom.gba", 0x17291D, 0x000001C - -gUnk_08172939:: @ 08172939 - .incbin "baserom.gba", 0x172939, 0x00000EF - -gUnk_08172A28:: @ 08172A28 - .incbin "baserom.gba", 0x172A28, 0x000010F - -gUnk_08172B37:: @ 08172B37 - .incbin "baserom.gba", 0x172B37, 0x0000003 - -gUnk_08172B3A:: @ 08172B3A - .incbin "baserom.gba", 0x172B3A, 0x000051B - -gUnk_08173055:: @ 08173055 - .incbin "baserom.gba", 0x173055, 0x00003E9 - -gUnk_0817343E:: @ 0817343E - .incbin "baserom.gba", 0x17343E, 0x0000327 - -gUnk_08173765:: @ 08173765 - .incbin "baserom.gba", 0x173765, 0x00002C3 - -gUnk_08173A28:: @ 08173A28 - .incbin "baserom.gba", 0x173A28, 0x0000521 - -gUnk_08173F49:: @ 08173F49 - .incbin "baserom.gba", 0x173F49, 0x0000500 - -gUnk_08174449:: @ 08174449 - .incbin "baserom.gba", 0x174449, 0x0000203 - -gUnk_0817464C:: @ 0817464C - .incbin "baserom.gba", 0x17464C, 0x000071E - -gUnk_08174D6A:: @ 08174D6A - .incbin "baserom.gba", 0x174D6A, 0x00005AF - -gUnk_08175319:: @ 08175319 - .incbin "baserom.gba", 0x175319, 0x0002DF4 - -gUnk_0817810D:: @ 0817810D - .incbin "baserom.gba", 0x17810D, 0x000077B - -gUnk_08178888:: @ 08178888 - .incbin "baserom.gba", 0x178888, 0x000262F - -gUnk_0817AEB7:: @ 0817AEB7 - .incbin "baserom.gba", 0x17AEB7, 0x0003060 - -gUnk_0817DF17:: @ 0817DF17 - .incbin "baserom.gba", 0x17DF17, 0x0000028 - -gUnk_0817DF3F:: @ 0817DF3F - .incbin "baserom.gba", 0x17DF3F, 0x00007AE - -gUnk_0817E6ED:: @ 0817E6ED - .incbin "baserom.gba", 0x17E6ED, 0x00001C0 - -gUnk_0817E8AD:: @ 0817E8AD - .incbin "baserom.gba", 0x17E8AD, 0x0000B4D - -gUnk_0817F3FA:: @ 0817F3FA - .incbin "baserom.gba", 0x17F3FA, 0x0000804 - -gUnk_0817FBFE:: @ 0817FBFE - .incbin "baserom.gba", 0x17FBFE, 0x00000CA - -gUnk_0817FCC8:: @ 0817FCC8 - .incbin "baserom.gba", 0x17FCC8, 0x000024B - -gUnk_0817FF13:: @ 0817FF13 - .incbin "baserom.gba", 0x17FF13, 0x0000002 - -gUnk_0817FF15:: @ 0817FF15 - .incbin "baserom.gba", 0x17FF15, 0x00000EB - -gUnk_08180000:: @ 08180000 - .incbin "baserom.gba", 0x180000, 0x0000013 - -gUnk_08180013:: @ 08180013 - .incbin "baserom.gba", 0x180013, 0x000009D - -gUnk_081800B0:: @ 081800B0 - .incbin "baserom.gba", 0x1800B0, 0x0000040 - -gUnk_081800F0:: @ 081800F0 - .incbin "baserom.gba", 0x1800F0, 0x0000009 - -gUnk_081800F9:: @ 081800F9 - .incbin "baserom.gba", 0x1800F9, 0x0000007 - -gUnk_08180100:: @ 08180100 - .incbin "baserom.gba", 0x180100, 0x0000040 - -gUnk_08180140:: @ 08180140 - .incbin "baserom.gba", 0x180140, 0x00000C0 - -gUnk_08180200:: @ 08180200 - .incbin "baserom.gba", 0x180200, 0x000000F - -gUnk_0818020F:: @ 0818020F - .incbin "baserom.gba", 0x18020F, 0x0000097 - -gUnk_081802A6:: @ 081802A6 - .incbin "baserom.gba", 0x1802A6, 0x000009A - -gUnk_08180340:: @ 08180340 - .incbin "baserom.gba", 0x180340, 0x00002A1 - -gUnk_081805E1:: @ 081805E1 - .incbin "baserom.gba", 0x1805E1, 0x000010F - -gUnk_081806F0:: @ 081806F0 - .incbin "baserom.gba", 0x1806F0, 0x00000E0 - -gUnk_081807D0:: @ 081807D0 - .incbin "baserom.gba", 0x1807D0, 0x0000030 - -gUnk_08180800:: @ 08180800 - .incbin "baserom.gba", 0x180800, 0x0000003 - -gUnk_08180803:: @ 08180803 - .incbin "baserom.gba", 0x180803, 0x0000005 - -gUnk_08180808:: @ 08180808 - .incbin "baserom.gba", 0x180808, 0x00002F8 - -gUnk_08180B00:: @ 08180B00 - .incbin "baserom.gba", 0x180B00, 0x0000010 - -gUnk_08180B10:: @ 08180B10 - .incbin "baserom.gba", 0x180B10, 0x00000DF - -gUnk_08180BEF:: @ 08180BEF - .incbin "baserom.gba", 0x180BEF, 0x0000227 - -gUnk_08180E16:: @ 08180E16 - .incbin "baserom.gba", 0x180E16, 0x00001C4 - -gUnk_08180FDA:: @ 08180FDA - .incbin "baserom.gba", 0x180FDA, 0x0000017 - -gUnk_08180FF1:: @ 08180FF1 - .incbin "baserom.gba", 0x180FF1, 0x0000118 - -gUnk_08181109:: @ 08181109 - .incbin "baserom.gba", 0x181109, 0x00000FB - -gUnk_08181204:: @ 08181204 - .incbin "baserom.gba", 0x181204, 0x0000118 - -gUnk_0818131C:: @ 0818131C - .incbin "baserom.gba", 0x18131C, 0x00000FE - -gUnk_0818141A:: @ 0818141A - .incbin "baserom.gba", 0x18141A, 0x00000E1 - -gUnk_081814FB:: @ 081814FB - .incbin "baserom.gba", 0x1814FB, 0x000010A - -gUnk_08181605:: @ 08181605 - .incbin "baserom.gba", 0x181605, 0x0000008 - -gUnk_0818160D:: @ 0818160D - .incbin "baserom.gba", 0x18160D, 0x00000F7 - -gUnk_08181704:: @ 08181704 - .incbin "baserom.gba", 0x181704, 0x0000106 - -gUnk_0818180A:: @ 0818180A - .incbin "baserom.gba", 0x18180A, 0x0000107 - -gUnk_08181911:: @ 08181911 - .incbin "baserom.gba", 0x181911, 0x0000006 - -gUnk_08181917:: @ 08181917 - .incbin "baserom.gba", 0x181917, 0x0000001 - -gUnk_08181918:: @ 08181918 - .incbin "baserom.gba", 0x181918, 0x0000004 - -gUnk_0818191C:: @ 0818191C - .incbin "baserom.gba", 0x18191C, 0x00000B1 - -gUnk_081819CD:: @ 081819CD - .incbin "baserom.gba", 0x1819CD, 0x0000044 - -gUnk_08181A11:: @ 08181A11 - .incbin "baserom.gba", 0x181A11, 0x0000002 - -gUnk_08181A13:: @ 08181A13 - .incbin "baserom.gba", 0x181A13, 0x000000B - -gUnk_08181A1E:: @ 08181A1E - .incbin "baserom.gba", 0x181A1E, 0x00001E2 - -gUnk_08181C00:: @ 08181C00 - .incbin "baserom.gba", 0x181C00, 0x0000014 - -gUnk_08181C14:: @ 08181C14 - .incbin "baserom.gba", 0x181C14, 0x0000111 - -gUnk_08181D25:: @ 08181D25 - .incbin "baserom.gba", 0x181D25, 0x00000F7 - -gUnk_08181E1C:: @ 08181E1C - .incbin "baserom.gba", 0x181E1C, 0x00000FF - -gUnk_08181F1B:: @ 08181F1B - .incbin "baserom.gba", 0x181F1B, 0x00000E5 - -gUnk_08182000:: @ 08182000 - .incbin "baserom.gba", 0x182000, 0x0000019 - -gUnk_08182019:: @ 08182019 - .incbin "baserom.gba", 0x182019, 0x0000003 - -gUnk_0818201C:: @ 0818201C - .incbin "baserom.gba", 0x18201C, 0x0000003 - -gUnk_0818201F:: @ 0818201F - .incbin "baserom.gba", 0x18201F, 0x0000006 - -gUnk_08182025:: @ 08182025 - .incbin "baserom.gba", 0x182025, 0x0000001 - -gUnk_08182026:: @ 08182026 - .incbin "baserom.gba", 0x182026, 0x00000FE - -gUnk_08182124:: @ 08182124 - .incbin "baserom.gba", 0x182124, 0x0000001 - -gUnk_08182125:: @ 08182125 - .incbin "baserom.gba", 0x182125, 0x0000008 - -gUnk_0818212D:: @ 0818212D - .incbin "baserom.gba", 0x18212D, 0x00000F7 - -gUnk_08182224:: @ 08182224 - .incbin "baserom.gba", 0x182224, 0x0000001 - -gUnk_08182225:: @ 08182225 - .incbin "baserom.gba", 0x182225, 0x0000109 - -gUnk_0818232E:: @ 0818232E - .incbin "baserom.gba", 0x18232E, 0x00000DF - -gUnk_0818240D:: @ 0818240D - .incbin "baserom.gba", 0x18240D, 0x000001B - -gUnk_08182428:: @ 08182428 - .incbin "baserom.gba", 0x182428, 0x0000002 - -gUnk_0818242A:: @ 0818242A - .incbin "baserom.gba", 0x18242A, 0x0000104 - -gUnk_0818252E:: @ 0818252E - .incbin "baserom.gba", 0x18252E, 0x0000001 - -gUnk_0818252F:: @ 0818252F - .incbin "baserom.gba", 0x18252F, 0x0000004 - -gUnk_08182533:: @ 08182533 - .incbin "baserom.gba", 0x182533, 0x0000002 - -gUnk_08182535:: @ 08182535 - .incbin "baserom.gba", 0x182535, 0x00000E5 - -gUnk_0818261A:: @ 0818261A - .incbin "baserom.gba", 0x18261A, 0x0000014 - -gUnk_0818262E:: @ 0818262E - .incbin "baserom.gba", 0x18262E, 0x000000E - -gUnk_0818263C:: @ 0818263C - .incbin "baserom.gba", 0x18263C, 0x00000ED - -gUnk_08182729:: @ 08182729 - .incbin "baserom.gba", 0x182729, 0x00000D7 - -gUnk_08182800:: @ 08182800 - .incbin "baserom.gba", 0x182800, 0x0000230 - -gUnk_08182A30:: @ 08182A30 - .incbin "baserom.gba", 0x182A30, 0x000000B - -gUnk_08182A3B:: @ 08182A3B - .incbin "baserom.gba", 0x182A3B, 0x00002F5 - -gUnk_08182D30:: @ 08182D30 - .incbin "baserom.gba", 0x182D30, 0x000000F - -gUnk_08182D3F:: @ 08182D3F - .incbin "baserom.gba", 0x182D3F, 0x00000D7 - -gUnk_08182E16:: @ 08182E16 - .incbin "baserom.gba", 0x182E16, 0x000001E - -gUnk_08182E34:: @ 08182E34 - .incbin "baserom.gba", 0x182E34, 0x0000008 - -gUnk_08182E3C:: @ 08182E3C - .incbin "baserom.gba", 0x182E3C, 0x0000244 - -gUnk_08183080:: @ 08183080 - .incbin "baserom.gba", 0x183080, 0x00000CB - -gUnk_0818314B:: @ 0818314B - .incbin "baserom.gba", 0x18314B, 0x0000AB5 - -gUnk_08183C00:: @ 08183C00 - .incbin "baserom.gba", 0x183C00, 0x0000060 - -gUnk_08183C60:: @ 08183C60 - .incbin "baserom.gba", 0x183C60, 0x0001AA1 - -gUnk_08185701:: @ 08185701 - .incbin "baserom.gba", 0x185701, 0x0002900 - -gUnk_08188001:: @ 08188001 - .incbin "baserom.gba", 0x188001, 0x00049FD - -gUnk_0818C9FE:: @ 0818C9FE - .incbin "baserom.gba", 0x18C9FE, 0x0001221 - -gUnk_0818DC1F:: @ 0818DC1F - .incbin "baserom.gba", 0x18DC1F, 0x00001E2 - -gUnk_0818DE01:: @ 0818DE01 - .incbin "baserom.gba", 0x18DE01, 0x000019B - -gUnk_0818DF9C:: @ 0818DF9C - .incbin "baserom.gba", 0x18DF9C, 0x000115D - -gUnk_0818F0F9:: @ 0818F0F9 - .incbin "baserom.gba", 0x18F0F9, 0x0000140 - -gUnk_0818F239:: @ 0818F239 - .incbin "baserom.gba", 0x18F239, 0x00004DA - -gUnk_0818F713:: @ 0818F713 - .incbin "baserom.gba", 0x18F713, 0x00000EB - -gUnk_0818F7FE:: @ 0818F7FE - .incbin "baserom.gba", 0x18F7FE, 0x0000002 - -gUnk_0818F800:: @ 0818F800 - .incbin "baserom.gba", 0x18F800, 0x00000B8 - -gUnk_0818F8B8:: @ 0818F8B8 - .incbin "baserom.gba", 0x18F8B8, 0x0000424 - -gUnk_0818FCDC:: @ 0818FCDC - .incbin "baserom.gba", 0x18FCDC, 0x0000324 - -gUnk_08190000:: @ 08190000 - .incbin "baserom.gba", 0x190000, 0x0000001 - -gUnk_08190001:: @ 08190001 - .incbin "baserom.gba", 0x190001, 0x000000B - -gUnk_0819000C:: @ 0819000C - .incbin "baserom.gba", 0x19000C, 0x0000109 - -gUnk_08190115:: @ 08190115 - .incbin "baserom.gba", 0x190115, 0x00000D7 - -gUnk_081901EC:: @ 081901EC - .incbin "baserom.gba", 0x1901EC, 0x0000016 - -gUnk_08190202:: @ 08190202 - .incbin "baserom.gba", 0x190202, 0x000012D - -gUnk_0819032F:: @ 0819032F - .incbin "baserom.gba", 0x19032F, 0x00000D1 - -gUnk_08190400:: @ 08190400 - .incbin "baserom.gba", 0x190400, 0x0000080 - -gUnk_08190480:: @ 08190480 - .incbin "baserom.gba", 0x190480, 0x0000080 - -gUnk_08190500:: @ 08190500 - .incbin "baserom.gba", 0x190500, 0x000010D - -gUnk_0819060D:: @ 0819060D - .incbin "baserom.gba", 0x19060D, 0x0000200 - -gUnk_0819080D:: @ 0819080D - .incbin "baserom.gba", 0x19080D, 0x0000104 - -gUnk_08190911:: @ 08190911 - .incbin "baserom.gba", 0x190911, 0x00000DE - -gUnk_081909EF:: @ 081909EF - .incbin "baserom.gba", 0x1909EF, 0x00003F7 - -gUnk_08190DE6:: @ 08190DE6 - .incbin "baserom.gba", 0x190DE6, 0x0000021 - -gUnk_08190E07:: @ 08190E07 - .incbin "baserom.gba", 0x190E07, 0x000000C - -gUnk_08190E13:: @ 08190E13 - .incbin "baserom.gba", 0x190E13, 0x00000CF - -gUnk_08190EE2:: @ 08190EE2 - .incbin "baserom.gba", 0x190EE2, 0x0000034 - -gUnk_08190F16:: @ 08190F16 - .incbin "baserom.gba", 0x190F16, 0x00000E0 - -gUnk_08190FF6:: @ 08190FF6 - .incbin "baserom.gba", 0x190FF6, 0x0000062 - -gUnk_08191058:: @ 08191058 - .incbin "baserom.gba", 0x191058, 0x00000B6 - -gUnk_0819110E:: @ 0819110E - .incbin "baserom.gba", 0x19110E, 0x00000F3 - -gUnk_08191201:: @ 08191201 - .incbin "baserom.gba", 0x191201, 0x0000105 - -gUnk_08191306:: @ 08191306 - .incbin "baserom.gba", 0x191306, 0x000010C - -gUnk_08191412:: @ 08191412 - .incbin "baserom.gba", 0x191412, 0x0000006 - -gUnk_08191418:: @ 08191418 - .incbin "baserom.gba", 0x191418, 0x00000FE - -gUnk_08191516:: @ 08191516 - .incbin "baserom.gba", 0x191516, 0x00001D5 - -gUnk_081916EB:: @ 081916EB - .incbin "baserom.gba", 0x1916EB, 0x0000030 - -gUnk_0819171B:: @ 0819171B - .incbin "baserom.gba", 0x19171B, 0x0000001 - -gUnk_0819171C:: @ 0819171C - .incbin "baserom.gba", 0x19171C, 0x00001F3 - -gUnk_0819190F:: @ 0819190F - .incbin "baserom.gba", 0x19190F, 0x0000306 - -gUnk_08191C15:: @ 08191C15 - .incbin "baserom.gba", 0x191C15, 0x00000FA - -gUnk_08191D0F:: @ 08191D0F - .incbin "baserom.gba", 0x191D0F, 0x000000D - -gUnk_08191D1C:: @ 08191D1C - .incbin "baserom.gba", 0x191D1C, 0x0000001 - -gUnk_08191D1D:: @ 08191D1D - .incbin "baserom.gba", 0x191D1D, 0x00000FA - -gUnk_08191E17:: @ 08191E17 - .incbin "baserom.gba", 0x191E17, 0x00000F9 - -gUnk_08191F10:: @ 08191F10 - .incbin "baserom.gba", 0x191F10, 0x0000103 - -gUnk_08192013:: @ 08192013 - .incbin "baserom.gba", 0x192013, 0x000010D - -gUnk_08192120:: @ 08192120 - .incbin "baserom.gba", 0x192120, 0x0000009 - -gUnk_08192129:: @ 08192129 - .incbin "baserom.gba", 0x192129, 0x00000F8 - -gUnk_08192221:: @ 08192221 - .incbin "baserom.gba", 0x192221, 0x0000008 - -gUnk_08192229:: @ 08192229 - .incbin "baserom.gba", 0x192229, 0x000010B - -gUnk_08192334:: @ 08192334 - .incbin "baserom.gba", 0x192334, 0x00000AF - -gUnk_081923E3:: @ 081923E3 - .incbin "baserom.gba", 0x1923E3, 0x000003D - -gUnk_08192420:: @ 08192420 - .incbin "baserom.gba", 0x192420, 0x0000009 - -gUnk_08192429:: @ 08192429 - .incbin "baserom.gba", 0x192429, 0x0000001 - -gUnk_0819242A:: @ 0819242A - .incbin "baserom.gba", 0x19242A, 0x0000001 - -gUnk_0819242B:: @ 0819242B - .incbin "baserom.gba", 0x19242B, 0x00000E0 - -gUnk_0819250B:: @ 0819250B - .incbin "baserom.gba", 0x19250B, 0x0000005 - -gUnk_08192510:: @ 08192510 - .incbin "baserom.gba", 0x192510, 0x0000018 - -gUnk_08192528:: @ 08192528 - .incbin "baserom.gba", 0x192528, 0x0000012 - -gUnk_0819253A:: @ 0819253A - .incbin "baserom.gba", 0x19253A, 0x00000E9 - -gUnk_08192623:: @ 08192623 - .incbin "baserom.gba", 0x192623, 0x000000B - -gUnk_0819262E:: @ 0819262E - .incbin "baserom.gba", 0x19262E, 0x0000001 - -gUnk_0819262F:: @ 0819262F - .incbin "baserom.gba", 0x19262F, 0x0000204 - -gUnk_08192833:: @ 08192833 - .incbin "baserom.gba", 0x192833, 0x00000F8 - -gUnk_0819292B:: @ 0819292B - .incbin "baserom.gba", 0x19292B, 0x000000D - -gUnk_08192938:: @ 08192938 - .incbin "baserom.gba", 0x192938, 0x0000106 - -gUnk_08192A3E:: @ 08192A3E - .incbin "baserom.gba", 0x192A3E, 0x00000E1 - -gUnk_08192B1F:: @ 08192B1F - .incbin "baserom.gba", 0x192B1F, 0x000021C - -gUnk_08192D3B:: @ 08192D3B - .incbin "baserom.gba", 0x192D3B, 0x0000008 - -gUnk_08192D43:: @ 08192D43 - .incbin "baserom.gba", 0x192D43, 0x00000FC - -gUnk_08192E3F:: @ 08192E3F - .incbin "baserom.gba", 0x192E3F, 0x00000DB - -gUnk_08192F1A:: @ 08192F1A - .incbin "baserom.gba", 0x192F1A, 0x0000031 - -gUnk_08192F4B:: @ 08192F4B - .incbin "baserom.gba", 0x192F4B, 0x00000E3 - -gUnk_0819302E:: @ 0819302E - .incbin "baserom.gba", 0x19302E, 0x000000D - -gUnk_0819303B:: @ 0819303B - .incbin "baserom.gba", 0x19303B, 0x0000114 - -gUnk_0819314F:: @ 0819314F - .incbin "baserom.gba", 0x19314F, 0x00000F3 - -gUnk_08193242:: @ 08193242 - .incbin "baserom.gba", 0x193242, 0x00005E0 - -gUnk_08193822:: @ 08193822 - .incbin "baserom.gba", 0x193822, 0x0000125 - -gUnk_08193947:: @ 08193947 - .incbin "baserom.gba", 0x193947, 0x0000598 - -gUnk_08193EDF:: @ 08193EDF - .incbin "baserom.gba", 0x193EDF, 0x0000153 - -gUnk_08194032:: @ 08194032 - .incbin "baserom.gba", 0x194032, 0x0000D0F - -gUnk_08194D41:: @ 08194D41 - .incbin "baserom.gba", 0x194D41, 0x0003720 - -gUnk_08198461:: @ 08198461 - .incbin "baserom.gba", 0x198461, 0x00031B2 - -gUnk_0819B613:: @ 0819B613 - .incbin "baserom.gba", 0x19B613, 0x00004ED - -gUnk_0819BB00:: @ 0819BB00 - .incbin "baserom.gba", 0x19BB00, 0x0001C11 - -gUnk_0819D711:: @ 0819D711 - .incbin "baserom.gba", 0x19D711, 0x00011DA - -gUnk_0819E8EB:: @ 0819E8EB - .incbin "baserom.gba", 0x19E8EB, 0x0000CE4 - -gUnk_0819F5CF:: @ 0819F5CF - .incbin "baserom.gba", 0x19F5CF, 0x0000035 - -gUnk_0819F604:: @ 0819F604 - .incbin "baserom.gba", 0x19F604, 0x00000ED - -gUnk_0819F6F1:: @ 0819F6F1 - .incbin "baserom.gba", 0x19F6F1, 0x0000610 - -gUnk_0819FD01:: @ 0819FD01 - .incbin "baserom.gba", 0x19FD01, 0x0000116 - -gUnk_0819FE17:: @ 0819FE17 - .incbin "baserom.gba", 0x19FE17, 0x00001E9 - -gUnk_081A0000:: @ 081A0000 - .incbin "baserom.gba", 0x1A0000, 0x0000040 - -gUnk_081A0040:: @ 081A0040 - .incbin "baserom.gba", 0x1A0040, 0x0000061 - -gUnk_081A00A1:: @ 081A00A1 - .incbin "baserom.gba", 0x1A00A1, 0x000003E - -gUnk_081A00DF:: @ 081A00DF - .incbin "baserom.gba", 0x1A00DF, 0x0000021 - -gUnk_081A0100:: @ 081A0100 - .incbin "baserom.gba", 0x1A0100, 0x00001ED - -gUnk_081A02ED:: @ 081A02ED - .incbin "baserom.gba", 0x1A02ED, 0x000008B - -gUnk_081A0378:: @ 081A0378 - .incbin "baserom.gba", 0x1A0378, 0x00000A1 - -gUnk_081A0419:: @ 081A0419 - .incbin "baserom.gba", 0x1A0419, 0x0000040 - -gUnk_081A0459:: @ 081A0459 - .incbin "baserom.gba", 0x1A0459, 0x0000096 - -gUnk_081A04EF:: @ 081A04EF - .incbin "baserom.gba", 0x1A04EF, 0x000031A - -gUnk_081A0809:: @ 081A0809 - .incbin "baserom.gba", 0x1A0809, 0x0000010 - -gUnk_081A0819:: @ 081A0819 - .incbin "baserom.gba", 0x1A0819, 0x00003EF - -gUnk_081A0C08:: @ 081A0C08 - .incbin "baserom.gba", 0x1A0C08, 0x000010B - -gUnk_081A0D13:: @ 081A0D13 - .incbin "baserom.gba", 0x1A0D13, 0x00003D2 - -gUnk_081A10E5:: @ 081A10E5 - .incbin "baserom.gba", 0x1A10E5, 0x000011D - -gUnk_081A1202:: @ 081A1202 - .incbin "baserom.gba", 0x1A1202, 0x0000002 - -gUnk_081A1204:: @ 081A1204 - .incbin "baserom.gba", 0x1A1204, 0x000000A - -gUnk_081A120E:: @ 081A120E - .incbin "baserom.gba", 0x1A120E, 0x000020D - -gUnk_081A141B:: @ 081A141B - .incbin "baserom.gba", 0x1A141B, 0x000003B - -gUnk_081A1456:: @ 081A1456 - .incbin "baserom.gba", 0x1A1456, 0x00001B8 - -gUnk_081A160E:: @ 081A160E - .incbin "baserom.gba", 0x1A160E, 0x0000208 - -gUnk_081A1816:: @ 081A1816 - .incbin "baserom.gba", 0x1A1816, 0x00000EE - -gUnk_081A1904:: @ 081A1904 - .incbin "baserom.gba", 0x1A1904, 0x00001D4 - -gUnk_081A1AD8:: @ 081A1AD8 - .incbin "baserom.gba", 0x1A1AD8, 0x0000041 - -gUnk_081A1B19:: @ 081A1B19 - .incbin "baserom.gba", 0x1A1B19, 0x00001F5 - -gUnk_081A1D0E:: @ 081A1D0E - .incbin "baserom.gba", 0x1A1D0E, 0x00000F8 - -gUnk_081A1E06:: @ 081A1E06 - .incbin "baserom.gba", 0x1A1E06, 0x000000F - -gUnk_081A1E15:: @ 081A1E15 - .incbin "baserom.gba", 0x1A1E15, 0x00000FE - -gUnk_081A1F13:: @ 081A1F13 - .incbin "baserom.gba", 0x1A1F13, 0x00002F4 - -gUnk_081A2207:: @ 081A2207 - .incbin "baserom.gba", 0x1A2207, 0x000001E - -gUnk_081A2225:: @ 081A2225 - .incbin "baserom.gba", 0x1A2225, 0x00000E8 - -gUnk_081A230D:: @ 081A230D - .incbin "baserom.gba", 0x1A230D, 0x0000001 - -gUnk_081A230E:: @ 081A230E - .incbin "baserom.gba", 0x1A230E, 0x0000011 - -gUnk_081A231F:: @ 081A231F - .incbin "baserom.gba", 0x1A231F, 0x00001FB - -gUnk_081A251A:: @ 081A251A - .incbin "baserom.gba", 0x1A251A, 0x000000B - -gUnk_081A2525:: @ 081A2525 - .incbin "baserom.gba", 0x1A2525, 0x0000003 - -gUnk_081A2528:: @ 081A2528 - .incbin "baserom.gba", 0x1A2528, 0x000010D - -gUnk_081A2635:: @ 081A2635 - .incbin "baserom.gba", 0x1A2635, 0x00000F7 - -gUnk_081A272C:: @ 081A272C - .incbin "baserom.gba", 0x1A272C, 0x00000DE - -gUnk_081A280A:: @ 081A280A - .incbin "baserom.gba", 0x1A280A, 0x000001B - -gUnk_081A2825:: @ 081A2825 - .incbin "baserom.gba", 0x1A2825, 0x00000F8 - -gUnk_081A291D:: @ 081A291D - .incbin "baserom.gba", 0x1A291D, 0x0000010 - -gUnk_081A292D:: @ 081A292D - .incbin "baserom.gba", 0x1A292D, 0x0000002 - -gUnk_081A292F:: @ 081A292F - .incbin "baserom.gba", 0x1A292F, 0x0000002 - -gUnk_081A2931:: @ 081A2931 - .incbin "baserom.gba", 0x1A2931, 0x00000FA - -gUnk_081A2A2B:: @ 081A2A2B - .incbin "baserom.gba", 0x1A2A2B, 0x0000007 - -gUnk_081A2A32:: @ 081A2A32 - .incbin "baserom.gba", 0x1A2A32, 0x000000A - -gUnk_081A2A3C:: @ 081A2A3C - .incbin "baserom.gba", 0x1A2A3C, 0x00001D8 - -gUnk_081A2C14:: @ 081A2C14 - .incbin "baserom.gba", 0x1A2C14, 0x000052D - -gUnk_081A3141:: @ 081A3141 - .incbin "baserom.gba", 0x1A3141, 0x0000007 - -gUnk_081A3148:: @ 081A3148 - .incbin "baserom.gba", 0x1A3148, 0x0000002 - -gUnk_081A314A:: @ 081A314A - .incbin "baserom.gba", 0x1A314A, 0x00005FF - -gUnk_081A3749:: @ 081A3749 - .incbin "baserom.gba", 0x1A3749, 0x00000BA - -gUnk_081A3803:: @ 081A3803 - .incbin "baserom.gba", 0x1A3803, 0x000012A - -gUnk_081A392D:: @ 081A392D - .incbin "baserom.gba", 0x1A392D, 0x00007D7 - -gUnk_081A4104:: @ 081A4104 - .incbin "baserom.gba", 0x1A4104, 0x0000D46 - -gUnk_081A4E4A:: @ 081A4E4A - .incbin "baserom.gba", 0x1A4E4A, 0x0009FA9 - -gUnk_081AEDF3:: @ 081AEDF3 - .incbin "baserom.gba", 0x1AEDF3, 0x00000F5 - -gUnk_081AEEE8:: @ 081AEEE8 - .incbin "baserom.gba", 0x1AEEE8, 0x000022B - -gUnk_081AF113:: @ 081AF113 - .incbin "baserom.gba", 0x1AF113, 0x00001F4 - -gUnk_081AF307:: @ 081AF307 - .incbin "baserom.gba", 0x1AF307, 0x00008DE - -gUnk_081AFBE5:: @ 081AFBE5 - .incbin "baserom.gba", 0x1AFBE5, 0x0000319 - -gUnk_081AFEFE:: @ 081AFEFE - .incbin "baserom.gba", 0x1AFEFE, 0x00000DF - -gUnk_081AFFDD:: @ 081AFFDD - .incbin "baserom.gba", 0x1AFFDD, 0x000002B - -gUnk_081B0008:: @ 081B0008 - .incbin "baserom.gba", 0x1B0008, 0x00000E2 - -gUnk_081B00EA:: @ 081B00EA - .incbin "baserom.gba", 0x1B00EA, 0x0000004 - -gUnk_081B00EE:: @ 081B00EE - .incbin "baserom.gba", 0x1B00EE, 0x00000FB - -gUnk_081B01E9:: @ 081B01E9 - .incbin "baserom.gba", 0x1B01E9, 0x0000270 - -gUnk_081B0459:: @ 081B0459 - .incbin "baserom.gba", 0x1B0459, 0x00000A7 - -gUnk_081B0500:: @ 081B0500 - .incbin "baserom.gba", 0x1B0500, 0x0000103 - -gUnk_081B0603:: @ 081B0603 - .incbin "baserom.gba", 0x1B0603, 0x0000207 - -gUnk_081B080A:: @ 081B080A - .incbin "baserom.gba", 0x1B080A, 0x00002DE - -gUnk_081B0AE8:: @ 081B0AE8 - .incbin "baserom.gba", 0x1B0AE8, 0x0000133 - -gUnk_081B0C1B:: @ 081B0C1B - .incbin "baserom.gba", 0x1B0C1B, 0x00003D3 - -gUnk_081B0FEE:: @ 081B0FEE - .incbin "baserom.gba", 0x1B0FEE, 0x000032A - -gUnk_081B1318:: @ 081B1318 - .incbin "baserom.gba", 0x1B1318, 0x00000B4 - -gUnk_081B13CC:: @ 081B13CC - .incbin "baserom.gba", 0x1B13CC, 0x0000022 - -gUnk_081B13EE:: @ 081B13EE - .incbin "baserom.gba", 0x1B13EE, 0x000002E - -gUnk_081B141C:: @ 081B141C - .incbin "baserom.gba", 0x1B141C, 0x00000EC - -gUnk_081B1508:: @ 081B1508 - .incbin "baserom.gba", 0x1B1508, 0x000030D - -gUnk_081B1815:: @ 081B1815 - .incbin "baserom.gba", 0x1B1815, 0x00001F2 - -gUnk_081B1A07:: @ 081B1A07 - .incbin "baserom.gba", 0x1B1A07, 0x00001F9 - -gUnk_081B1C00:: @ 081B1C00 - .incbin "baserom.gba", 0x1B1C00, 0x0000005 - -gUnk_081B1C05:: @ 081B1C05 - .incbin "baserom.gba", 0x1B1C05, 0x000040C - -gUnk_081B2011:: @ 081B2011 - .incbin "baserom.gba", 0x1B2011, 0x0000012 - -gUnk_081B2023:: @ 081B2023 - .incbin "baserom.gba", 0x1B2023, 0x0000112 - -gUnk_081B2135:: @ 081B2135 - .incbin "baserom.gba", 0x1B2135, 0x00000FA - -gUnk_081B222F:: @ 081B222F - .incbin "baserom.gba", 0x1B222F, 0x00000ED - -gUnk_081B231C:: @ 081B231C - .incbin "baserom.gba", 0x1B231C, 0x0000103 - -gUnk_081B241F:: @ 081B241F - .incbin "baserom.gba", 0x1B241F, 0x0000116 - -gUnk_081B2535:: @ 081B2535 - .incbin "baserom.gba", 0x1B2535, 0x00000EC - -gUnk_081B2621:: @ 081B2621 - .incbin "baserom.gba", 0x1B2621, 0x000000E - -gUnk_081B262F:: @ 081B262F - .incbin "baserom.gba", 0x1B262F, 0x00000F6 - -gUnk_081B2725:: @ 081B2725 - .incbin "baserom.gba", 0x1B2725, 0x0000005 - -gUnk_081B272A:: @ 081B272A - .incbin "baserom.gba", 0x1B272A, 0x00000F8 - -gUnk_081B2822:: @ 081B2822 - .incbin "baserom.gba", 0x1B2822, 0x0000007 - -gUnk_081B2829:: @ 081B2829 - .incbin "baserom.gba", 0x1B2829, 0x0000108 - -gUnk_081B2931:: @ 081B2931 - .incbin "baserom.gba", 0x1B2931, 0x000000A - -gUnk_081B293B:: @ 081B293B - .incbin "baserom.gba", 0x1B293B, 0x00000E9 - -gUnk_081B2A24:: @ 081B2A24 - .incbin "baserom.gba", 0x1B2A24, 0x0000016 - -gUnk_081B2A3A:: @ 081B2A3A - .incbin "baserom.gba", 0x1B2A3A, 0x0000010 - -gUnk_081B2A4A:: @ 081B2A4A - .incbin "baserom.gba", 0x1B2A4A, 0x00006EB - -gUnk_081B3135:: @ 081B3135 - .incbin "baserom.gba", 0x1B3135, 0x0000010 - -gUnk_081B3145:: @ 081B3145 - .incbin "baserom.gba", 0x1B3145, 0x0000207 - -gUnk_081B334C:: @ 081B334C - .incbin "baserom.gba", 0x1B334C, 0x00004FC - -gUnk_081B3848:: @ 081B3848 - .incbin "baserom.gba", 0x1B3848, 0x0001DC7 - -gUnk_081B560F:: @ 081B560F - .incbin "baserom.gba", 0x1B560F, 0x0000D6D - -gUnk_081B637C:: @ 081B637C - .incbin "baserom.gba", 0x1B637C, 0x00048CF - -gUnk_081BAC4B:: @ 081BAC4B - .incbin "baserom.gba", 0x1BAC4B, 0x000078F - -gUnk_081BB3DA:: @ 081BB3DA - .incbin "baserom.gba", 0x1BB3DA, 0x000371E - -gUnk_081BEAF8:: @ 081BEAF8 - .incbin "baserom.gba", 0x1BEAF8, 0x0000316 - -gUnk_081BEE0E:: @ 081BEE0E - .incbin "baserom.gba", 0x1BEE0E, 0x0000DB6 - -gUnk_081BFBC4:: @ 081BFBC4 - .incbin "baserom.gba", 0x1BFBC4, 0x0000457 - -gUnk_081C001B:: @ 081C001B - .incbin "baserom.gba", 0x1C001B, 0x0000100 - -gUnk_081C011B:: @ 081C011B - .incbin "baserom.gba", 0x1C011B, 0x00000E5 - -gUnk_081C0200:: @ 081C0200 - .incbin "baserom.gba", 0x1C0200, 0x000061B - -gUnk_081C081B:: @ 081C081B - .incbin "baserom.gba", 0x1C081B, 0x00002E5 - -gUnk_081C0B00:: @ 081C0B00 - .incbin "baserom.gba", 0x1C0B00, 0x00002FA - -gUnk_081C0DFA:: @ 081C0DFA - .incbin "baserom.gba", 0x1C0DFA, 0x0000339 - -gUnk_081C1133:: @ 081C1133 - .incbin "baserom.gba", 0x1C1133, 0x00000CD - -gUnk_081C1200:: @ 081C1200 - .incbin "baserom.gba", 0x1C1200, 0x0000301 - -gUnk_081C1501:: @ 081C1501 - .incbin "baserom.gba", 0x1C1501, 0x000000A - -gUnk_081C150B:: @ 081C150B - .incbin "baserom.gba", 0x1C150B, 0x00000D3 - -gUnk_081C15DE:: @ 081C15DE - .incbin "baserom.gba", 0x1C15DE, 0x000002E - -gUnk_081C160C:: @ 081C160C - .incbin "baserom.gba", 0x1C160C, 0x0000006 - -gUnk_081C1612:: @ 081C1612 - .incbin "baserom.gba", 0x1C1612, 0x0000026 - -gUnk_081C1638:: @ 081C1638 - .incbin "baserom.gba", 0x1C1638, 0x00000E5 - -gUnk_081C171D:: @ 081C171D - .incbin "baserom.gba", 0x1C171D, 0x00000E5 - -gUnk_081C1802:: @ 081C1802 - .incbin "baserom.gba", 0x1C1802, 0x00001DB - -gUnk_081C19DD:: @ 081C19DD - .incbin "baserom.gba", 0x1C19DD, 0x0000123 - -gUnk_081C1B00:: @ 081C1B00 - .incbin "baserom.gba", 0x1C1B00, 0x0000221 - -gUnk_081C1D21:: @ 081C1D21 - .incbin "baserom.gba", 0x1C1D21, 0x0000006 - -gUnk_081C1D27:: @ 081C1D27 - .incbin "baserom.gba", 0x1C1D27, 0x00000DD - -gUnk_081C1E04:: @ 081C1E04 - .incbin "baserom.gba", 0x1C1E04, 0x0000001 - -gUnk_081C1E05:: @ 081C1E05 - .incbin "baserom.gba", 0x1C1E05, 0x0000112 - -gUnk_081C1F17:: @ 081C1F17 - .incbin "baserom.gba", 0x1C1F17, 0x0000001 - -gUnk_081C1F18:: @ 081C1F18 - .incbin "baserom.gba", 0x1C1F18, 0x000010B - -gUnk_081C2023:: @ 081C2023 - .incbin "baserom.gba", 0x1C2023, 0x000001B - -gUnk_081C203E:: @ 081C203E - .incbin "baserom.gba", 0x1C203E, 0x00000E4 - -gUnk_081C2122:: @ 081C2122 - .incbin "baserom.gba", 0x1C2122, 0x0000005 - -gUnk_081C2127:: @ 081C2127 - .incbin "baserom.gba", 0x1C2127, 0x00000E4 - -gUnk_081C220B:: @ 081C220B - .incbin "baserom.gba", 0x1C220B, 0x0000220 - -gUnk_081C242B:: @ 081C242B - .incbin "baserom.gba", 0x1C242B, 0x00000EE - -gUnk_081C2519:: @ 081C2519 - .incbin "baserom.gba", 0x1C2519, 0x000000F - -gUnk_081C2528:: @ 081C2528 - .incbin "baserom.gba", 0x1C2528, 0x00001FC - -gUnk_081C2724:: @ 081C2724 - .incbin "baserom.gba", 0x1C2724, 0x000000A - -gUnk_081C272E:: @ 081C272E - .incbin "baserom.gba", 0x1C272E, 0x00003FE - -gUnk_081C2B2C:: @ 081C2B2C - .incbin "baserom.gba", 0x1C2B2C, 0x0000006 - -gUnk_081C2B32:: @ 081C2B32 - .incbin "baserom.gba", 0x1C2B32, 0x00000F9 - -gUnk_081C2C2B:: @ 081C2C2B - .incbin "baserom.gba", 0x1C2C2B, 0x0000004 - -gUnk_081C2C2F:: @ 081C2C2F - .incbin "baserom.gba", 0x1C2C2F, 0x0000207 - -gUnk_081C2E36:: @ 081C2E36 - .incbin "baserom.gba", 0x1C2E36, 0x0000108 - -gUnk_081C2F3E:: @ 081C2F3E - .incbin "baserom.gba", 0x1C2F3E, 0x0000001 - -gUnk_081C2F3F:: @ 081C2F3F - .incbin "baserom.gba", 0x1C2F3F, 0x00000E4 - -gUnk_081C3023:: @ 081C3023 - .incbin "baserom.gba", 0x1C3023, 0x0000122 - -gUnk_081C3145:: @ 081C3145 - .incbin "baserom.gba", 0x1C3145, 0x0000102 - -gUnk_081C3247:: @ 081C3247 - .incbin "baserom.gba", 0x1C3247, 0x00000E5 - -gUnk_081C332C:: @ 081C332C - .incbin "baserom.gba", 0x1C332C, 0x000010E - -gUnk_081C343A:: @ 081C343A - .incbin "baserom.gba", 0x1C343A, 0x000010C - -gUnk_081C3546:: @ 081C3546 - .incbin "baserom.gba", 0x1C3546, 0x00004EF - -gUnk_081C3A35:: @ 081C3A35 - .incbin "baserom.gba", 0x1C3A35, 0x00005BF - -gUnk_081C3FF4:: @ 081C3FF4 - .incbin "baserom.gba", 0x1C3FF4, 0x0000162 - -gUnk_081C4156:: @ 081C4156 - .incbin "baserom.gba", 0x1C4156, 0x00002FE - -gUnk_081C4454:: @ 081C4454 - .incbin "baserom.gba", 0x1C4454, 0x0000BB3 - -gUnk_081C5007:: @ 081C5007 - .incbin "baserom.gba", 0x1C5007, 0x0000477 - -gUnk_081C547E:: @ 081C547E - .incbin "baserom.gba", 0x1C547E, 0x00020ED - -gUnk_081C756B:: @ 081C756B - .incbin "baserom.gba", 0x1C756B, 0x000149D - -gUnk_081C8A08:: @ 081C8A08 - .incbin "baserom.gba", 0x1C8A08, 0x000026C - -gUnk_081C8C74:: @ 081C8C74 - .incbin "baserom.gba", 0x1C8C74, 0x000573D - -gUnk_081CE3B1:: @ 081CE3B1 - .incbin "baserom.gba", 0x1CE3B1, 0x000003D - -gUnk_081CE3EE:: @ 081CE3EE - .incbin "baserom.gba", 0x1CE3EE, 0x0000DFE - -gUnk_081CF1EC:: @ 081CF1EC - .incbin "baserom.gba", 0x1CF1EC, 0x00002F9 - -gUnk_081CF4E5:: @ 081CF4E5 - .incbin "baserom.gba", 0x1CF4E5, 0x0000333 - -gUnk_081CF818:: @ 081CF818 - .incbin "baserom.gba", 0x1CF818, 0x0000008 - -gUnk_081CF820:: @ 081CF820 - .incbin "baserom.gba", 0x1CF820, 0x00007B1 - -gUnk_081CFFD1:: @ 081CFFD1 - .incbin "baserom.gba", 0x1CFFD1, 0x000002F - -gUnk_081D0000:: @ 081D0000 - .incbin "baserom.gba", 0x1D0000, 0x0000001 - -gUnk_081D0001:: @ 081D0001 - .incbin "baserom.gba", 0x1D0001, 0x0000006 - -gUnk_081D0007:: @ 081D0007 - .incbin "baserom.gba", 0x1D0007, 0x0000009 - -gUnk_081D0010:: @ 081D0010 - .incbin "baserom.gba", 0x1D0010, 0x000000A - -gUnk_081D001A:: @ 081D001A - .incbin "baserom.gba", 0x1D001A, 0x000001A - -gUnk_081D0034:: @ 081D0034 - .incbin "baserom.gba", 0x1D0034, 0x00000E0 - -gUnk_081D0114:: @ 081D0114 - .incbin "baserom.gba", 0x1D0114, 0x0000174 - -gUnk_081D0288:: @ 081D0288 - .incbin "baserom.gba", 0x1D0288, 0x0000179 - -gUnk_081D0401:: @ 081D0401 - .incbin "baserom.gba", 0x1D0401, 0x0000042 - -gUnk_081D0443:: @ 081D0443 - .incbin "baserom.gba", 0x1D0443, 0x00001BE - -gUnk_081D0601:: @ 081D0601 - .incbin "baserom.gba", 0x1D0601, 0x0000205 - -gUnk_081D0806:: @ 081D0806 - .incbin "baserom.gba", 0x1D0806, 0x0000303 - -gUnk_081D0B09:: @ 081D0B09 - .incbin "baserom.gba", 0x1D0B09, 0x00003FF - -gUnk_081D0F08:: @ 081D0F08 - .incbin "baserom.gba", 0x1D0F08, 0x000001E - -gUnk_081D0F26:: @ 081D0F26 - .incbin "baserom.gba", 0x1D0F26, 0x00000DE - -gUnk_081D1004:: @ 081D1004 - .incbin "baserom.gba", 0x1D1004, 0x0000003 - -gUnk_081D1007:: @ 081D1007 - .incbin "baserom.gba", 0x1D1007, 0x0000511 - -gUnk_081D1518:: @ 081D1518 - .incbin "baserom.gba", 0x1D1518, 0x00000E2 - -gUnk_081D15FA:: @ 081D15FA - .incbin "baserom.gba", 0x1D15FA, 0x0000018 - -gUnk_081D1612:: @ 081D1612 - .incbin "baserom.gba", 0x1D1612, 0x000011F - -gUnk_081D1731:: @ 081D1731 - .incbin "baserom.gba", 0x1D1731, 0x00000CC - -gUnk_081D17FD:: @ 081D17FD - .incbin "baserom.gba", 0x1D17FD, 0x0000013 - -gUnk_081D1810:: @ 081D1810 - .incbin "baserom.gba", 0x1D1810, 0x00003F3 - -gUnk_081D1C03:: @ 081D1C03 - .incbin "baserom.gba", 0x1D1C03, 0x0000001 - -gUnk_081D1C04:: @ 081D1C04 - .incbin "baserom.gba", 0x1D1C04, 0x0000019 - -gUnk_081D1C1D:: @ 081D1C1D - .incbin "baserom.gba", 0x1D1C1D, 0x00000F7 - -gUnk_081D1D14:: @ 081D1D14 - .incbin "baserom.gba", 0x1D1D14, 0x000010E - -gUnk_081D1E22:: @ 081D1E22 - .incbin "baserom.gba", 0x1D1E22, 0x00001DE - -gUnk_081D2000:: @ 081D2000 - .incbin "baserom.gba", 0x1D2000, 0x000000C - -gUnk_081D200C:: @ 081D200C - .incbin "baserom.gba", 0x1D200C, 0x0000026 - -gUnk_081D2032:: @ 081D2032 - .incbin "baserom.gba", 0x1D2032, 0x00001F1 - -gUnk_081D2223:: @ 081D2223 - .incbin "baserom.gba", 0x1D2223, 0x00000F5 - -gUnk_081D2318:: @ 081D2318 - .incbin "baserom.gba", 0x1D2318, 0x0000113 - -gUnk_081D242B:: @ 081D242B - .incbin "baserom.gba", 0x1D242B, 0x000000A - -gUnk_081D2435:: @ 081D2435 - .incbin "baserom.gba", 0x1D2435, 0x00001D6 - -gUnk_081D260B:: @ 081D260B - .incbin "baserom.gba", 0x1D260B, 0x00001E1 - -gUnk_081D27EC:: @ 081D27EC - .incbin "baserom.gba", 0x1D27EC, 0x0000043 - -gUnk_081D282F:: @ 081D282F - .incbin "baserom.gba", 0x1D282F, 0x00000E1 - -gUnk_081D2910:: @ 081D2910 - .incbin "baserom.gba", 0x1D2910, 0x0000315 - -gUnk_081D2C25:: @ 081D2C25 - .incbin "baserom.gba", 0x1D2C25, 0x0000119 - -gUnk_081D2D3E:: @ 081D2D3E - .incbin "baserom.gba", 0x1D2D3E, 0x0000235 - -gUnk_081D2F73:: @ 081D2F73 - .incbin "baserom.gba", 0x1D2F73, 0x00000C8 - -gUnk_081D303B:: @ 081D303B - .incbin "baserom.gba", 0x1D303B, 0x0000009 - -gUnk_081D3044:: @ 081D3044 - .incbin "baserom.gba", 0x1D3044, 0x00000E1 - -gUnk_081D3125:: @ 081D3125 - .incbin "baserom.gba", 0x1D3125, 0x00000F6 - -gUnk_081D321B:: @ 081D321B - .incbin "baserom.gba", 0x1D321B, 0x000021C - -gUnk_081D3437:: @ 081D3437 - .incbin "baserom.gba", 0x1D3437, 0x00004FC - -gUnk_081D3933:: @ 081D3933 - .incbin "baserom.gba", 0x1D3933, 0x0000331 - -gUnk_081D3C64:: @ 081D3C64 - .incbin "baserom.gba", 0x1D3C64, 0x00000C8 - -gUnk_081D3D2C:: @ 081D3D2C - .incbin "baserom.gba", 0x1D3D2C, 0x000103D - -gUnk_081D4D69:: @ 081D4D69 - .incbin "baserom.gba", 0x1D4D69, 0x00012FE - -gUnk_081D6067:: @ 081D6067 - .incbin "baserom.gba", 0x1D6067, 0x000160D - -gUnk_081D7674:: @ 081D7674 - .incbin "baserom.gba", 0x1D7674, 0x00029C0 - -gUnk_081DA034:: @ 081DA034 - .incbin "baserom.gba", 0x1DA034, 0x0003FBD - -gUnk_081DDFF1:: @ 081DDFF1 - .incbin "baserom.gba", 0x1DDFF1, 0x0000FFE - -gUnk_081DEFEF:: @ 081DEFEF - .incbin "baserom.gba", 0x1DEFEF, 0x0000845 - -gUnk_081DF834:: @ 081DF834 - .incbin "baserom.gba", 0x1DF834, 0x00004C6 - -gUnk_081DFCFA:: @ 081DFCFA - .incbin "baserom.gba", 0x1DFCFA, 0x00002CE - -gUnk_081DFFC8:: @ 081DFFC8 - .incbin "baserom.gba", 0x1DFFC8, 0x0000008 - -gUnk_081DFFD0:: @ 081DFFD0 - .incbin "baserom.gba", 0x1DFFD0, 0x0000030 - -gUnk_081E0000:: @ 081E0000 - .incbin "baserom.gba", 0x1E0000, 0x0000012 - -gUnk_081E0012:: @ 081E0012 - .incbin "baserom.gba", 0x1E0012, 0x0000008 - -gUnk_081E001A:: @ 081E001A - .incbin "baserom.gba", 0x1E001A, 0x00000D8 - -gUnk_081E00F2:: @ 081E00F2 - .incbin "baserom.gba", 0x1E00F2, 0x0000015 - -gUnk_081E0107:: @ 081E0107 - .incbin "baserom.gba", 0x1E0107, 0x0000016 - -gUnk_081E011D:: @ 081E011D - .incbin "baserom.gba", 0x1E011D, 0x00001B9 - -gUnk_081E02D6:: @ 081E02D6 - .incbin "baserom.gba", 0x1E02D6, 0x000002A - -gUnk_081E0300:: @ 081E0300 - .incbin "baserom.gba", 0x1E0300, 0x0000004 - -gUnk_081E0304:: @ 081E0304 - .incbin "baserom.gba", 0x1E0304, 0x0000109 - -gUnk_081E040D:: @ 081E040D - .incbin "baserom.gba", 0x1E040D, 0x00000DF - -gUnk_081E04EC:: @ 081E04EC - .incbin "baserom.gba", 0x1E04EC, 0x000027A - -gUnk_081E0766:: @ 081E0766 - .incbin "baserom.gba", 0x1E0766, 0x00001A9 - -gUnk_081E090F:: @ 081E090F - .incbin "baserom.gba", 0x1E090F, 0x00000D3 - -gUnk_081E09E2:: @ 081E09E2 - .incbin "baserom.gba", 0x1E09E2, 0x000001F - -gUnk_081E0A01:: @ 081E0A01 - .incbin "baserom.gba", 0x1E0A01, 0x0000120 - -gUnk_081E0B21:: @ 081E0B21 - .incbin "baserom.gba", 0x1E0B21, 0x00002CA - -gUnk_081E0DEB:: @ 081E0DEB - .incbin "baserom.gba", 0x1E0DEB, 0x00000FA - -gUnk_081E0EE5:: @ 081E0EE5 - .incbin "baserom.gba", 0x1E0EE5, 0x0000110 - -gUnk_081E0FF5:: @ 081E0FF5 - .incbin "baserom.gba", 0x1E0FF5, 0x0000040 - -gUnk_081E1035:: @ 081E1035 - .incbin "baserom.gba", 0x1E1035, 0x00002CA - -gUnk_081E12FF:: @ 081E12FF - .incbin "baserom.gba", 0x1E12FF, 0x0000001 - -gUnk_081E1300:: @ 081E1300 - .incbin "baserom.gba", 0x1E1300, 0x0000601 - -gUnk_081E1901:: @ 081E1901 - .incbin "baserom.gba", 0x1E1901, 0x000000E - -gUnk_081E190F:: @ 081E190F - .incbin "baserom.gba", 0x1E190F, 0x00000EA - -gUnk_081E19F9:: @ 081E19F9 - .incbin "baserom.gba", 0x1E19F9, 0x0000415 - -gUnk_081E1E0E:: @ 081E1E0E - .incbin "baserom.gba", 0x1E1E0E, 0x000020B - -gUnk_081E2019:: @ 081E2019 - .incbin "baserom.gba", 0x1E2019, 0x000010D - -gUnk_081E2126:: @ 081E2126 - .incbin "baserom.gba", 0x1E2126, 0x0000203 - -gUnk_081E2329:: @ 081E2329 - .incbin "baserom.gba", 0x1E2329, 0x000011C - -gUnk_081E2445:: @ 081E2445 - .incbin "baserom.gba", 0x1E2445, 0x00000D1 - -gUnk_081E2516:: @ 081E2516 - .incbin "baserom.gba", 0x1E2516, 0x00000E7 - -gUnk_081E25FD:: @ 081E25FD - .incbin "baserom.gba", 0x1E25FD, 0x0000120 - -gUnk_081E271D:: @ 081E271D - .incbin "baserom.gba", 0x1E271D, 0x00001E4 - -gUnk_081E2901:: @ 081E2901 - .incbin "baserom.gba", 0x1E2901, 0x0000024 - -gUnk_081E2925:: @ 081E2925 - .incbin "baserom.gba", 0x1E2925, 0x0000201 - -gUnk_081E2B26:: @ 081E2B26 - .incbin "baserom.gba", 0x1E2B26, 0x0000222 - -gUnk_081E2D48:: @ 081E2D48 - .incbin "baserom.gba", 0x1E2D48, 0x00000EB - -gUnk_081E2E33:: @ 081E2E33 - .incbin "baserom.gba", 0x1E2E33, 0x0000102 - -gUnk_081E2F35:: @ 081E2F35 - .incbin "baserom.gba", 0x1E2F35, 0x0000404 - -gUnk_081E3339:: @ 081E3339 - .incbin "baserom.gba", 0x1E3339, 0x00000FA - -gUnk_081E3433:: @ 081E3433 - .incbin "baserom.gba", 0x1E3433, 0x000010E - -gUnk_081E3541:: @ 081E3541 - .incbin "baserom.gba", 0x1E3541, 0x000010A - -gUnk_081E364B:: @ 081E364B - .incbin "baserom.gba", 0x1E364B, 0x00003F1 - -gUnk_081E3A3C:: @ 081E3A3C - .incbin "baserom.gba", 0x1E3A3C, 0x0000B11 - -gUnk_081E454D:: @ 081E454D - .incbin "baserom.gba", 0x1E454D, 0x00065B3 - -gUnk_081EAB00:: @ 081EAB00 - .incbin "baserom.gba", 0x1EAB00, 0x0001882 - -gUnk_081EC382:: @ 081EC382 - .incbin "baserom.gba", 0x1EC382, 0x0002445 - -gUnk_081EE7C7:: @ 081EE7C7 - .incbin "baserom.gba", 0x1EE7C7, 0x0001335 - -gUnk_081EFAFC:: @ 081EFAFC - .incbin "baserom.gba", 0x1EFAFC, 0x00003CC - -gUnk_081EFEC8:: @ 081EFEC8 - .incbin "baserom.gba", 0x1EFEC8, 0x0000138 - -gUnk_081F0000:: @ 081F0000 - .incbin "baserom.gba", 0x1F0000, 0x0000008 - -gUnk_081F0008:: @ 081F0008 - .incbin "baserom.gba", 0x1F0008, 0x0000001 - -gUnk_081F0009:: @ 081F0009 - .incbin "baserom.gba", 0x1F0009, 0x0000021 - -gUnk_081F002A:: @ 081F002A - .incbin "baserom.gba", 0x1F002A, 0x0000004 - -gUnk_081F002E:: @ 081F002E - .incbin "baserom.gba", 0x1F002E, 0x0000002 - -gUnk_081F0030:: @ 081F0030 - .incbin "baserom.gba", 0x1F0030, 0x000000F - -gUnk_081F003F:: @ 081F003F - .incbin "baserom.gba", 0x1F003F, 0x0000003 - -gUnk_081F0042:: @ 081F0042 - .incbin "baserom.gba", 0x1F0042, 0x000004A - -gUnk_081F008C:: @ 081F008C - .incbin "baserom.gba", 0x1F008C, 0x0000251 - -gUnk_081F02DD:: @ 081F02DD - .incbin "baserom.gba", 0x1F02DD, 0x000017C - -gUnk_081F0459:: @ 081F0459 - .incbin "baserom.gba", 0x1F0459, 0x00003A1 - -gUnk_081F07FA:: @ 081F07FA - .incbin "baserom.gba", 0x1F07FA, 0x0000824 - -gUnk_081F101E:: @ 081F101E - .incbin "baserom.gba", 0x1F101E, 0x0000015 - -gUnk_081F1033:: @ 081F1033 - .incbin "baserom.gba", 0x1F1033, 0x0000033 - -gUnk_081F1066:: @ 081F1066 - .incbin "baserom.gba", 0x1F1066, 0x0000102 - -gUnk_081F1168:: @ 081F1168 - .incbin "baserom.gba", 0x1F1168, 0x000017F - -gUnk_081F12E7:: @ 081F12E7 - .incbin "baserom.gba", 0x1F12E7, 0x00002F9 - -gUnk_081F15E0:: @ 081F15E0 - .incbin "baserom.gba", 0x1F15E0, 0x000025D - -gUnk_081F183D:: @ 081F183D - .incbin "baserom.gba", 0x1F183D, 0x00001E0 - -gUnk_081F1A1D:: @ 081F1A1D - .incbin "baserom.gba", 0x1F1A1D, 0x00000EE - -gUnk_081F1B0B:: @ 081F1B0B - .incbin "baserom.gba", 0x1F1B0B, 0x00002F5 - -gUnk_081F1E00:: @ 081F1E00 - .incbin "baserom.gba", 0x1F1E00, 0x000011D - -gUnk_081F1F1D:: @ 081F1F1D - .incbin "baserom.gba", 0x1F1F1D, 0x0000005 - -gUnk_081F1F22:: @ 081F1F22 - .incbin "baserom.gba", 0x1F1F22, 0x00000E1 - -gUnk_081F2003:: @ 081F2003 - .incbin "baserom.gba", 0x1F2003, 0x000001F - -gUnk_081F2022:: @ 081F2022 - .incbin "baserom.gba", 0x1F2022, 0x00000A4 - -gUnk_081F20C6:: @ 081F20C6 - .incbin "baserom.gba", 0x1F20C6, 0x0000062 - -gUnk_081F2128:: @ 081F2128 - .incbin "baserom.gba", 0x1F2128, 0x00000F1 - -gUnk_081F2219:: @ 081F2219 - .incbin "baserom.gba", 0x1F2219, 0x0000103 - -gUnk_081F231C:: @ 081F231C - .incbin "baserom.gba", 0x1F231C, 0x00001DB - -gUnk_081F24F7:: @ 081F24F7 - .incbin "baserom.gba", 0x1F24F7, 0x0000116 - -gUnk_081F260D:: @ 081F260D - .incbin "baserom.gba", 0x1F260D, 0x000021D - -gUnk_081F282A:: @ 081F282A - .incbin "baserom.gba", 0x1F282A, 0x00000F8 - -gUnk_081F2922:: @ 081F2922 - .incbin "baserom.gba", 0x1F2922, 0x0000127 - -gUnk_081F2A49:: @ 081F2A49 - .incbin "baserom.gba", 0x1F2A49, 0x00000F1 - -gUnk_081F2B3A:: @ 081F2B3A - .incbin "baserom.gba", 0x1F2B3A, 0x00001F5 - -gUnk_081F2D2F:: @ 081F2D2F - .incbin "baserom.gba", 0x1F2D2F, 0x0000200 - -gUnk_081F2F2F:: @ 081F2F2F - .incbin "baserom.gba", 0x1F2F2F, 0x000050E - -gUnk_081F343D:: @ 081F343D - .incbin "baserom.gba", 0x1F343D, 0x00000F1 - -gUnk_081F352E:: @ 081F352E - .incbin "baserom.gba", 0x1F352E, 0x0000204 - -gUnk_081F3732:: @ 081F3732 - .incbin "baserom.gba", 0x1F3732, 0x0000106 - -gUnk_081F3838:: @ 081F3838 - .incbin "baserom.gba", 0x1F3838, 0x0000009 - -gUnk_081F3841:: @ 081F3841 - .incbin "baserom.gba", 0x1F3841, 0x0000BF6 - -gUnk_081F4437:: @ 081F4437 - .incbin "baserom.gba", 0x1F4437, 0x0000023 - -gUnk_081F445A:: @ 081F445A - .incbin "baserom.gba", 0x1F445A, 0x0000CD8 - -gUnk_081F5132:: @ 081F5132 - .incbin "baserom.gba", 0x1F5132, 0x000049D - -gUnk_081F55CF:: @ 081F55CF - .incbin "baserom.gba", 0x1F55CF, 0x0004A36 - -gUnk_081FA005:: @ 081FA005 - .incbin "baserom.gba", 0x1FA005, 0x000107B - -gUnk_081FB080:: @ 081FB080 - .incbin "baserom.gba", 0x1FB080, 0x00028A2 - -gUnk_081FD922:: @ 081FD922 - .incbin "baserom.gba", 0x1FD922, 0x00014F3 - -gUnk_081FEE15:: @ 081FEE15 - .incbin "baserom.gba", 0x1FEE15, 0x000022A - -gUnk_081FF03F:: @ 081FF03F - .incbin "baserom.gba", 0x1FF03F, 0x0000175 - -gUnk_081FF1B4:: @ 081FF1B4 - .incbin "baserom.gba", 0x1FF1B4, 0x0000D2D - -gUnk_081FFEE1:: @ 081FFEE1 - .incbin "baserom.gba", 0x1FFEE1, 0x000011F - -gUnk_08200000:: @ 08200000 - .incbin "baserom.gba", 0x200000, 0x0000001 - -gUnk_08200001:: @ 08200001 - .incbin "baserom.gba", 0x200001, 0x0000010 - -gUnk_08200011:: @ 08200011 - .incbin "baserom.gba", 0x200011, 0x000000F - -gUnk_08200020:: @ 08200020 - .incbin "baserom.gba", 0x200020, 0x000001F - -gUnk_0820003F:: @ 0820003F - .incbin "baserom.gba", 0x20003F, 0x0000003 - -gUnk_08200042:: @ 08200042 - .incbin "baserom.gba", 0x200042, 0x0000072 - -gUnk_082000B4:: @ 082000B4 - .incbin "baserom.gba", 0x2000B4, 0x0000008 - -gUnk_082000BC:: @ 082000BC - .incbin "baserom.gba", 0x2000BC, 0x000005A - -gUnk_08200116:: @ 08200116 - .incbin "baserom.gba", 0x200116, 0x0000009 - -gUnk_0820011F:: @ 0820011F - .incbin "baserom.gba", 0x20011F, 0x0000012 - -gUnk_08200131:: @ 08200131 - .incbin "baserom.gba", 0x200131, 0x0000079 - -gUnk_082001AA:: @ 082001AA - .incbin "baserom.gba", 0x2001AA, 0x0000130 - -gUnk_082002DA:: @ 082002DA - .incbin "baserom.gba", 0x2002DA, 0x000015A - -gUnk_08200434:: @ 08200434 - .incbin "baserom.gba", 0x200434, 0x00000CC - -gUnk_08200500:: @ 08200500 - .incbin "baserom.gba", 0x200500, 0x0000020 - -gUnk_08200520:: @ 08200520 - .incbin "baserom.gba", 0x200520, 0x0000033 - -gUnk_08200553:: @ 08200553 - .incbin "baserom.gba", 0x200553, 0x00000AD - -gUnk_08200600:: @ 08200600 - .incbin "baserom.gba", 0x200600, 0x0000009 - -gUnk_08200609:: @ 08200609 - .incbin "baserom.gba", 0x200609, 0x0000027 - -gUnk_08200630:: @ 08200630 - .incbin "baserom.gba", 0x200630, 0x00000D0 - -gUnk_08200700:: @ 08200700 - .incbin "baserom.gba", 0x200700, 0x0000006 - -gUnk_08200706:: @ 08200706 - .incbin "baserom.gba", 0x200706, 0x000001A - -gUnk_08200720:: @ 08200720 - .incbin "baserom.gba", 0x200720, 0x0000030 - -gUnk_08200750:: @ 08200750 - .incbin "baserom.gba", 0x200750, 0x0000010 - -gUnk_08200760:: @ 08200760 - .incbin "baserom.gba", 0x200760, 0x0000020 - -gUnk_08200780:: @ 08200780 - .incbin "baserom.gba", 0x200780, 0x0000060 - -gUnk_082007E0:: @ 082007E0 - .incbin "baserom.gba", 0x2007E0, 0x0000020 - -gUnk_08200800:: @ 08200800 - .incbin "baserom.gba", 0x200800, 0x0000020 - -gUnk_08200820:: @ 08200820 - .incbin "baserom.gba", 0x200820, 0x0000110 - -gUnk_08200930:: @ 08200930 - .incbin "baserom.gba", 0x200930, 0x00001D0 - -gUnk_08200B00:: @ 08200B00 - .incbin "baserom.gba", 0x200B00, 0x0000100 - -gUnk_08200C00:: @ 08200C00 - .incbin "baserom.gba", 0x200C00, 0x00002E0 - -gUnk_08200EE0:: @ 08200EE0 - .incbin "baserom.gba", 0x200EE0, 0x0000020 - -gUnk_08200F00:: @ 08200F00 - .incbin "baserom.gba", 0x200F00, 0x0000040 - -gUnk_08200F40:: @ 08200F40 - .incbin "baserom.gba", 0x200F40, 0x00000E0 - -gUnk_08201020:: @ 08201020 - .incbin "baserom.gba", 0x201020, 0x00001EE - -gUnk_0820120E:: @ 0820120E - .incbin "baserom.gba", 0x20120E, 0x00000ED - -gUnk_082012FB:: @ 082012FB - .incbin "baserom.gba", 0x2012FB, 0x000000A - -gUnk_08201305:: @ 08201305 - .incbin "baserom.gba", 0x201305, 0x00003FB - -gUnk_08201700:: @ 08201700 - .incbin "baserom.gba", 0x201700, 0x0000010 - -gUnk_08201710:: @ 08201710 - .incbin "baserom.gba", 0x201710, 0x0000309 - -gUnk_08201A19:: @ 08201A19 - .incbin "baserom.gba", 0x201A19, 0x00000E2 - -gUnk_08201AFB:: @ 08201AFB - .incbin "baserom.gba", 0x201AFB, 0x00000DD - -gUnk_08201BD8:: @ 08201BD8 - .incbin "baserom.gba", 0x201BD8, 0x0000338 - -gUnk_08201F10:: @ 08201F10 - .incbin "baserom.gba", 0x201F10, 0x0000026 - -gUnk_08201F36:: @ 08201F36 - .incbin "baserom.gba", 0x201F36, 0x0000110 - -gUnk_08202046:: @ 08202046 - .incbin "baserom.gba", 0x202046, 0x000009A - -gUnk_082020E0:: @ 082020E0 - .incbin "baserom.gba", 0x2020E0, 0x0000120 - -gUnk_08202200:: @ 08202200 - .incbin "baserom.gba", 0x202200, 0x0000010 - -gUnk_08202210:: @ 08202210 - .incbin "baserom.gba", 0x202210, 0x0000001 - -gUnk_08202211:: @ 08202211 - .incbin "baserom.gba", 0x202211, 0x000000C - -gUnk_0820221D:: @ 0820221D - .incbin "baserom.gba", 0x20221D, 0x00000FD - -gUnk_0820231A:: @ 0820231A - .incbin "baserom.gba", 0x20231A, 0x00000F3 - -gUnk_0820240D:: @ 0820240D - .incbin "baserom.gba", 0x20240D, 0x00003B3 - -gUnk_082027C0:: @ 082027C0 - .incbin "baserom.gba", 0x2027C0, 0x0000070 - -gUnk_08202830:: @ 08202830 - .incbin "baserom.gba", 0x202830, 0x00000E7 - -gUnk_08202917:: @ 08202917 - .incbin "baserom.gba", 0x202917, 0x00000FF - -gUnk_08202A16:: @ 08202A16 - .incbin "baserom.gba", 0x202A16, 0x0000009 - -gUnk_08202A1F:: @ 08202A1F - .incbin "baserom.gba", 0x202A1F, 0x00001E4 - -gUnk_08202C03:: @ 08202C03 - .incbin "baserom.gba", 0x202C03, 0x0000144 - -gUnk_08202D47:: @ 08202D47 - .incbin "baserom.gba", 0x202D47, 0x00000EE - -gUnk_08202E35:: @ 08202E35 - .incbin "baserom.gba", 0x202E35, 0x00001FF - -gUnk_08203034:: @ 08203034 - .incbin "baserom.gba", 0x203034, 0x0000002 - -gUnk_08203036:: @ 08203036 - .incbin "baserom.gba", 0x203036, 0x00000FC - -gUnk_08203132:: @ 08203132 - .incbin "baserom.gba", 0x203132, 0x000010B - -gUnk_0820323D:: @ 0820323D - .incbin "baserom.gba", 0x20323D, 0x0000103 - -gUnk_08203340:: @ 08203340 - .incbin "baserom.gba", 0x203340, 0x00000C0 - -gUnk_08203400:: @ 08203400 - .incbin "baserom.gba", 0x203400, 0x000002E - -gUnk_0820342E:: @ 0820342E - .incbin "baserom.gba", 0x20342E, 0x0000003 - -gUnk_08203431:: @ 08203431 - .incbin "baserom.gba", 0x203431, 0x00000CF - -gUnk_08203500:: @ 08203500 - .incbin "baserom.gba", 0x203500, 0x0000044 - -gUnk_08203544:: @ 08203544 - .incbin "baserom.gba", 0x203544, 0x00001EB - -gUnk_0820372F:: @ 0820372F - .incbin "baserom.gba", 0x20372F, 0x000001B - -gUnk_0820374A:: @ 0820374A - .incbin "baserom.gba", 0x20374A, 0x00000B6 - -gUnk_08203800:: @ 08203800 - .incbin "baserom.gba", 0x203800, 0x0000001 - -gUnk_08203801:: @ 08203801 - .incbin "baserom.gba", 0x203801, 0x00002FF - -gUnk_08203B00:: @ 08203B00 - .incbin "baserom.gba", 0x203B00, 0x000021D - -gUnk_08203D1D:: @ 08203D1D - .incbin "baserom.gba", 0x203D1D, 0x0000036 - -gUnk_08203D53:: @ 08203D53 - .incbin "baserom.gba", 0x203D53, 0x00003AD - -gUnk_08204100:: @ 08204100 - .incbin "baserom.gba", 0x204100, 0x0000100 - -gUnk_08204200:: @ 08204200 - .incbin "baserom.gba", 0x204200, 0x0000087 - -gUnk_08204287:: @ 08204287 - .incbin "baserom.gba", 0x204287, 0x0000079 - -gUnk_08204300:: @ 08204300 - .incbin "baserom.gba", 0x204300, 0x0000306 - -gUnk_08204606:: @ 08204606 - .incbin "baserom.gba", 0x204606, 0x0000004 - -gUnk_0820460A:: @ 0820460A - .incbin "baserom.gba", 0x20460A, 0x0000026 - -gUnk_08204630:: @ 08204630 - .incbin "baserom.gba", 0x204630, 0x0000020 - -gUnk_08204650:: @ 08204650 - .incbin "baserom.gba", 0x204650, 0x00002B0 - -gUnk_08204900:: @ 08204900 - .incbin "baserom.gba", 0x204900, 0x0000100 - -gUnk_08204A00:: @ 08204A00 - .incbin "baserom.gba", 0x204A00, 0x0000200 - -gUnk_08204C00:: @ 08204C00 - .incbin "baserom.gba", 0x204C00, 0x0000300 - -gUnk_08204F00:: @ 08204F00 - .incbin "baserom.gba", 0x204F00, 0x0000010 - -gUnk_08204F10:: @ 08204F10 - .incbin "baserom.gba", 0x204F10, 0x00001F0 - -gUnk_08205100:: @ 08205100 - .incbin "baserom.gba", 0x205100, 0x0000100 - -gUnk_08205200:: @ 08205200 - .incbin "baserom.gba", 0x205200, 0x000006D - -gUnk_0820526D:: @ 0820526D - .incbin "baserom.gba", 0x20526D, 0x0000393 - -gUnk_08205600:: @ 08205600 - .incbin "baserom.gba", 0x205600, 0x0000020 - -gUnk_08205620:: @ 08205620 - .incbin "baserom.gba", 0x205620, 0x00003E0 - -gUnk_08205A00:: @ 08205A00 - .incbin "baserom.gba", 0x205A00, 0x00006E9 - -gUnk_082060E9:: @ 082060E9 - .incbin "baserom.gba", 0x2060E9, 0x000071E - -gUnk_08206807:: @ 08206807 - .incbin "baserom.gba", 0x206807, 0x00003F9 - -gUnk_08206C00:: @ 08206C00 - .incbin "baserom.gba", 0x206C00, 0x000007F - -gUnk_08206C7F:: @ 08206C7F - .incbin "baserom.gba", 0x206C7F, 0x0000282 - -gUnk_08206F01:: @ 08206F01 - .incbin "baserom.gba", 0x206F01, 0x000001F - -gUnk_08206F20:: @ 08206F20 - .incbin "baserom.gba", 0x206F20, 0x0000064 - -gUnk_08206F84:: @ 08206F84 - .incbin "baserom.gba", 0x206F84, 0x0000106 - -gUnk_0820708A:: @ 0820708A - .incbin "baserom.gba", 0x20708A, 0x000007D - -gUnk_08207107:: @ 08207107 - .incbin "baserom.gba", 0x207107, 0x000020D - -gUnk_08207314:: @ 08207314 - .incbin "baserom.gba", 0x207314, 0x0000025 - -gUnk_08207339:: @ 08207339 - .incbin "baserom.gba", 0x207339, 0x00004BC - -gUnk_082077F5:: @ 082077F5 - .incbin "baserom.gba", 0x2077F5, 0x000020C - -gUnk_08207A01:: @ 08207A01 - .incbin "baserom.gba", 0x207A01, 0x0000169 - -gUnk_08207B6A:: @ 08207B6A - .incbin "baserom.gba", 0x207B6A, 0x00003E2 - -gUnk_08207F4C:: @ 08207F4C - .incbin "baserom.gba", 0x207F4C, 0x000011E - -gUnk_0820806A:: @ 0820806A - .incbin "baserom.gba", 0x20806A, 0x0000596 - -gUnk_08208600:: @ 08208600 - .incbin "baserom.gba", 0x208600, 0x000010E - -gUnk_0820870E:: @ 0820870E - .incbin "baserom.gba", 0x20870E, 0x0000019 - -gUnk_08208727:: @ 08208727 - .incbin "baserom.gba", 0x208727, 0x000041C - -gUnk_08208B43:: @ 08208B43 - .incbin "baserom.gba", 0x208B43, 0x0000072 - -gUnk_08208BB5:: @ 08208BB5 - .incbin "baserom.gba", 0x208BB5, 0x0000052 - -gUnk_08208C07:: @ 08208C07 - .incbin "baserom.gba", 0x208C07, 0x000027A - -gUnk_08208E81:: @ 08208E81 - .incbin "baserom.gba", 0x208E81, 0x0000089 - -gUnk_08208F0A:: @ 08208F0A - .incbin "baserom.gba", 0x208F0A, 0x000007A - -gUnk_08208F84:: @ 08208F84 - .incbin "baserom.gba", 0x208F84, 0x0000170 - -gUnk_082090F4:: @ 082090F4 - .incbin "baserom.gba", 0x2090F4, 0x000020C - -gUnk_08209300:: @ 08209300 - .incbin "baserom.gba", 0x209300, 0x00000AE - -gUnk_082093AE:: @ 082093AE - .incbin "baserom.gba", 0x2093AE, 0x00001E7 - -gUnk_08209595:: @ 08209595 - .incbin "baserom.gba", 0x209595, 0x00000AD - -gUnk_08209642:: @ 08209642 - .incbin "baserom.gba", 0x209642, 0x0000247 - -gUnk_08209889:: @ 08209889 - .incbin "baserom.gba", 0x209889, 0x000002A - -gUnk_082098B3:: @ 082098B3 - .incbin "baserom.gba", 0x2098B3, 0x00000D5 - -gUnk_08209988:: @ 08209988 - .incbin "baserom.gba", 0x209988, 0x0000280 - -gUnk_08209C08:: @ 08209C08 - .incbin "baserom.gba", 0x209C08, 0x0000300 - -gUnk_08209F08:: @ 08209F08 - .incbin "baserom.gba", 0x209F08, 0x00006E1 - -gUnk_0820A5E9:: @ 0820A5E9 - .incbin "baserom.gba", 0x20A5E9, 0x000016E - -gUnk_0820A757:: @ 0820A757 - .incbin "baserom.gba", 0x20A757, 0x0000050 - -gUnk_0820A7A7:: @ 0820A7A7 - .incbin "baserom.gba", 0x20A7A7, 0x0000025 - -gUnk_0820A7CC:: @ 0820A7CC - .incbin "baserom.gba", 0x20A7CC, 0x0000009 - -gUnk_0820A7D5:: @ 0820A7D5 - .incbin "baserom.gba", 0x20A7D5, 0x0000033 - -gUnk_0820A808:: @ 0820A808 - .incbin "baserom.gba", 0x20A808, 0x0000148 - -gUnk_0820A950:: @ 0820A950 - .incbin "baserom.gba", 0x20A950, 0x0000238 - -gUnk_0820AB88:: @ 0820AB88 - .incbin "baserom.gba", 0x20AB88, 0x0000581 - -gUnk_0820B109:: @ 0820B109 - .incbin "baserom.gba", 0x20B109, 0x0000081 - -gUnk_0820B18A:: @ 0820B18A - .incbin "baserom.gba", 0x20B18A, 0x0000226 - -gUnk_0820B3B0:: @ 0820B3B0 - .incbin "baserom.gba", 0x20B3B0, 0x0000079 - -gUnk_0820B429:: @ 0820B429 - .incbin "baserom.gba", 0x20B429, 0x000012B - -gUnk_0820B554:: @ 0820B554 - .incbin "baserom.gba", 0x20B554, 0x00000C3 - -gUnk_0820B617:: @ 0820B617 - .incbin "baserom.gba", 0x20B617, 0x00000DE - -gUnk_0820B6F5:: @ 0820B6F5 - .incbin "baserom.gba", 0x20B6F5, 0x000020D - -gUnk_0820B902:: @ 0820B902 - .incbin "baserom.gba", 0x20B902, 0x0000005 - -gUnk_0820B907:: @ 0820B907 - .incbin "baserom.gba", 0x20B907, 0x0000103 - -gUnk_0820BA0A:: @ 0820BA0A - .incbin "baserom.gba", 0x20BA0A, 0x00001DC - -gUnk_0820BBE6:: @ 0820BBE6 - .incbin "baserom.gba", 0x20BBE6, 0x00002C9 - -gUnk_0820BEAF:: @ 0820BEAF - .incbin "baserom.gba", 0x20BEAF, 0x000007D - -gUnk_0820BF2C:: @ 0820BF2C - .incbin "baserom.gba", 0x20BF2C, 0x000008D - -gUnk_0820BFB9:: @ 0820BFB9 - .incbin "baserom.gba", 0x20BFB9, 0x0000039 - -gUnk_0820BFF2:: @ 0820BFF2 - .incbin "baserom.gba", 0x20BFF2, 0x0000069 - -gUnk_0820C05B:: @ 0820C05B - .incbin "baserom.gba", 0x20C05B, 0x00000C5 - -gUnk_0820C120:: @ 0820C120 - .incbin "baserom.gba", 0x20C120, 0x000029C - -gUnk_0820C3BC:: @ 0820C3BC - .incbin "baserom.gba", 0x20C3BC, 0x0000358 - -gUnk_0820C714:: @ 0820C714 - .incbin "baserom.gba", 0x20C714, 0x0000030 - -gUnk_0820C744:: @ 0820C744 - .incbin "baserom.gba", 0x20C744, 0x0000081 - -gUnk_0820C7C5:: @ 0820C7C5 - .incbin "baserom.gba", 0x20C7C5, 0x000008B - -gUnk_0820C850:: @ 0820C850 - .incbin "baserom.gba", 0x20C850, 0x00000B0 - -gUnk_0820C900:: @ 0820C900 - .incbin "baserom.gba", 0x20C900, 0x000053E - -gUnk_0820CE3E:: @ 0820CE3E - .incbin "baserom.gba", 0x20CE3E, 0x00000D9 - -gUnk_0820CF17:: @ 0820CF17 - .incbin "baserom.gba", 0x20CF17, 0x00002ED - -gUnk_0820D204:: @ 0820D204 - .incbin "baserom.gba", 0x20D204, 0x00002D6 - -gUnk_0820D4DA:: @ 0820D4DA - .incbin "baserom.gba", 0x20D4DA, 0x000012A - -gUnk_0820D604:: @ 0820D604 - .incbin "baserom.gba", 0x20D604, 0x00003D9 - -gUnk_0820D9DD:: @ 0820D9DD - .incbin "baserom.gba", 0x20D9DD, 0x00000EA - -gUnk_0820DAC7:: @ 0820DAC7 - .incbin "baserom.gba", 0x20DAC7, 0x0000123 - -gUnk_0820DBEA:: @ 0820DBEA - .incbin "baserom.gba", 0x20DBEA, 0x00000EA - -gUnk_0820DCD4:: @ 0820DCD4 - .incbin "baserom.gba", 0x20DCD4, 0x00000CD - -gUnk_0820DDA1:: @ 0820DDA1 - .incbin "baserom.gba", 0x20DDA1, 0x0000067 - -gUnk_0820DE08:: @ 0820DE08 - .incbin "baserom.gba", 0x20DE08, 0x0000193 - -gUnk_0820DF9B:: @ 0820DF9B - .incbin "baserom.gba", 0x20DF9B, 0x000016C - -gUnk_0820E107:: @ 0820E107 - .incbin "baserom.gba", 0x20E107, 0x000001C - -gUnk_0820E123:: @ 0820E123 - .incbin "baserom.gba", 0x20E123, 0x0000080 - -gUnk_0820E1A3:: @ 0820E1A3 - .incbin "baserom.gba", 0x20E1A3, 0x0000341 - -gUnk_0820E4E4:: @ 0820E4E4 - .incbin "baserom.gba", 0x20E4E4, 0x0000004 - -gUnk_0820E4E8:: @ 0820E4E8 - .incbin "baserom.gba", 0x20E4E8, 0x0000015 - -gUnk_0820E4FD:: @ 0820E4FD - .incbin "baserom.gba", 0x20E4FD, 0x000000E - -gUnk_0820E50B:: @ 0820E50B - .incbin "baserom.gba", 0x20E50B, 0x0000002 - -gUnk_0820E50D:: @ 0820E50D - .incbin "baserom.gba", 0x20E50D, 0x000008A - -gUnk_0820E597:: @ 0820E597 - .incbin "baserom.gba", 0x20E597, 0x0000250 - -gUnk_0820E7E7:: @ 0820E7E7 - .incbin "baserom.gba", 0x20E7E7, 0x0000102 - -gUnk_0820E8E9:: @ 0820E8E9 - .incbin "baserom.gba", 0x20E8E9, 0x000021A - -gUnk_0820EB03:: @ 0820EB03 - .incbin "baserom.gba", 0x20EB03, 0x000000C - -gUnk_0820EB0F:: @ 0820EB0F - .incbin "baserom.gba", 0x20EB0F, 0x0000075 - -gUnk_0820EB84:: @ 0820EB84 - .incbin "baserom.gba", 0x20EB84, 0x000009F - -gUnk_0820EC23:: @ 0820EC23 - .incbin "baserom.gba", 0x20EC23, 0x0000120 - -gUnk_0820ED43:: @ 0820ED43 - .incbin "baserom.gba", 0x20ED43, 0x0000021 - -gUnk_0820ED64:: @ 0820ED64 - .incbin "baserom.gba", 0x20ED64, 0x0000127 - -gUnk_0820EE8B:: @ 0820EE8B - .incbin "baserom.gba", 0x20EE8B, 0x0000175 - -gUnk_0820F000:: @ 0820F000 - .incbin "baserom.gba", 0x20F000, 0x00000E0 - -gUnk_0820F0E0:: @ 0820F0E0 - .incbin "baserom.gba", 0x20F0E0, 0x0000A4F - -gUnk_0820FB2F:: @ 0820FB2F - .incbin "baserom.gba", 0x20FB2F, 0x0000045 - -gUnk_0820FB74:: @ 0820FB74 - .incbin "baserom.gba", 0x20FB74, 0x0000388 - -gUnk_0820FEFC:: @ 0820FEFC - .incbin "baserom.gba", 0x20FEFC, 0x0000056 - -gUnk_0820FF52:: @ 0820FF52 - .incbin "baserom.gba", 0x20FF52, 0x000003B - -gUnk_0820FF8D:: @ 0820FF8D - .incbin "baserom.gba", 0x20FF8D, 0x0000019 - -gUnk_0820FFA6:: @ 0820FFA6 - .incbin "baserom.gba", 0x20FFA6, 0x000005A - -gUnk_08210000:: @ 08210000 - .incbin "baserom.gba", 0x210000, 0x0000024 - -gUnk_08210024:: @ 08210024 - .incbin "baserom.gba", 0x210024, 0x0000063 - -gUnk_08210087:: @ 08210087 - .incbin "baserom.gba", 0x210087, 0x0000052 - -gUnk_082100D9:: @ 082100D9 - .incbin "baserom.gba", 0x2100D9, 0x0000127 - -gUnk_08210200:: @ 08210200 - .incbin "baserom.gba", 0x210200, 0x0000120 - -gUnk_08210320:: @ 08210320 - .incbin "baserom.gba", 0x210320, 0x00001BC - -gUnk_082104DC:: @ 082104DC - .incbin "baserom.gba", 0x2104DC, 0x0000325 - -gUnk_08210801:: @ 08210801 - .incbin "baserom.gba", 0x210801, 0x00001E0 - -gUnk_082109E1:: @ 082109E1 - .incbin "baserom.gba", 0x2109E1, 0x000030A - -gUnk_08210CEB:: @ 08210CEB - .incbin "baserom.gba", 0x210CEB, 0x0000222 - -gUnk_08210F0D:: @ 08210F0D - .incbin "baserom.gba", 0x210F0D, 0x00000D3 - -gUnk_08210FE0:: @ 08210FE0 - .incbin "baserom.gba", 0x210FE0, 0x0000142 - -gUnk_08211122:: @ 08211122 - .incbin "baserom.gba", 0x211122, 0x0000133 - -gUnk_08211255:: @ 08211255 - .incbin "baserom.gba", 0x211255, 0x000000D - -gUnk_08211262:: @ 08211262 - .incbin "baserom.gba", 0x211262, 0x0000093 - -gUnk_082112F5:: @ 082112F5 - .incbin "baserom.gba", 0x2112F5, 0x0000838 - -gUnk_08211B2D:: @ 08211B2D - .incbin "baserom.gba", 0x211B2D, 0x00001CD - -gUnk_08211CFA:: @ 08211CFA - .incbin "baserom.gba", 0x211CFA, 0x000010C - -gUnk_08211E06:: @ 08211E06 - .incbin "baserom.gba", 0x211E06, 0x000029B - -gUnk_082120A1:: @ 082120A1 - .incbin "baserom.gba", 0x2120A1, 0x0000259 - -gUnk_082122FA:: @ 082122FA - .incbin "baserom.gba", 0x2122FA, 0x0000010 - -gUnk_0821230A:: @ 0821230A - .incbin "baserom.gba", 0x21230A, 0x0000723 - -gUnk_08212A2D:: @ 08212A2D - .incbin "baserom.gba", 0x212A2D, 0x00003F9 - -gUnk_08212E26:: @ 08212E26 - .incbin "baserom.gba", 0x212E26, 0x00000F2 - -gUnk_08212F18:: @ 08212F18 - .incbin "baserom.gba", 0x212F18, 0x0000116 - -gUnk_0821302E:: @ 0821302E - .incbin "baserom.gba", 0x21302E, 0x000000B - -gUnk_08213039:: @ 08213039 - .incbin "baserom.gba", 0x213039, 0x00000F3 - -gUnk_0821312C:: @ 0821312C - .incbin "baserom.gba", 0x21312C, 0x00001F6 - -gUnk_08213322:: @ 08213322 - .incbin "baserom.gba", 0x213322, 0x000001A - -gUnk_0821333C:: @ 0821333C - .incbin "baserom.gba", 0x21333C, 0x0000407 - -gUnk_08213743:: @ 08213743 - .incbin "baserom.gba", 0x213743, 0x0000312 - -gUnk_08213A55:: @ 08213A55 - .incbin "baserom.gba", 0x213A55, 0x00001EF - -gUnk_08213C44:: @ 08213C44 - .incbin "baserom.gba", 0x213C44, 0x0000010 - -gUnk_08213C54:: @ 08213C54 - .incbin "baserom.gba", 0x213C54, 0x00003AB - -gUnk_08213FFF:: @ 08213FFF - .incbin "baserom.gba", 0x213FFF, 0x0000108 - -gUnk_08214107:: @ 08214107 - .incbin "baserom.gba", 0x214107, 0x0000150 - -gUnk_08214257:: @ 08214257 - .incbin "baserom.gba", 0x214257, 0x0000001 - -gUnk_08214258:: @ 08214258 - .incbin "baserom.gba", 0x214258, 0x000035F - -gUnk_082145B7:: @ 082145B7 - .incbin "baserom.gba", 0x2145B7, 0x00005C7 - -gUnk_08214B7E:: @ 08214B7E - .incbin "baserom.gba", 0x214B7E, 0x0000C81 - -gUnk_082157FF:: @ 082157FF - .incbin "baserom.gba", 0x2157FF, 0x000377A - -gUnk_08218F79:: @ 08218F79 - .incbin "baserom.gba", 0x218F79, 0x000309F - -gUnk_0821C018:: @ 0821C018 - .incbin "baserom.gba", 0x21C018, 0x0002FE7 - -gUnk_0821EFFF:: @ 0821EFFF - .incbin "baserom.gba", 0x21EFFF, 0x00000F1 - -gUnk_0821F0F0:: @ 0821F0F0 - .incbin "baserom.gba", 0x21F0F0, 0x0000F11 - -gUnk_08220001:: @ 08220001 - .incbin "baserom.gba", 0x220001, 0x0000100 - -gUnk_08220101:: @ 08220101 - .incbin "baserom.gba", 0x220101, 0x0000002 - -gUnk_08220103:: @ 08220103 - .incbin "baserom.gba", 0x220103, 0x00001D2 - -gUnk_082202D5:: @ 082202D5 - .incbin "baserom.gba", 0x2202D5, 0x000002B - -gUnk_08220300:: @ 08220300 - .incbin "baserom.gba", 0x220300, 0x00002F7 - -gUnk_082205F7:: @ 082205F7 - .incbin "baserom.gba", 0x2205F7, 0x000073D - -gUnk_08220D34:: @ 08220D34 - .incbin "baserom.gba", 0x220D34, 0x00001BE - -gUnk_08220EF2:: @ 08220EF2 - .incbin "baserom.gba", 0x220EF2, 0x0000227 - -gUnk_08221119:: @ 08221119 - .incbin "baserom.gba", 0x221119, 0x00004E2 - -gUnk_082215FB:: @ 082215FB - .incbin "baserom.gba", 0x2215FB, 0x00003F6 - -gUnk_082219F1:: @ 082219F1 - .incbin "baserom.gba", 0x2219F1, 0x0000027 - -gUnk_08221A18:: @ 08221A18 - .incbin "baserom.gba", 0x221A18, 0x00001D6 - -gUnk_08221BEE:: @ 08221BEE - .incbin "baserom.gba", 0x221BEE, 0x0000212 - -gUnk_08221E00:: @ 08221E00 - .incbin "baserom.gba", 0x221E00, 0x00004EE - -gUnk_082222EE:: @ 082222EE - .incbin "baserom.gba", 0x2222EE, 0x0000056 - -gUnk_08222344:: @ 08222344 - .incbin "baserom.gba", 0x222344, 0x00000EF - -gUnk_08222433:: @ 08222433 - .incbin "baserom.gba", 0x222433, 0x0000055 - -gUnk_08222488:: @ 08222488 - .incbin "baserom.gba", 0x222488, 0x00001A5 - -gUnk_0822262D:: @ 0822262D - .incbin "baserom.gba", 0x22262D, 0x00004DA - -gUnk_08222B07:: @ 08222B07 - .incbin "baserom.gba", 0x222B07, 0x0000428 - -gUnk_08222F2F:: @ 08222F2F - .incbin "baserom.gba", 0x222F2F, 0x00000D8 - -gUnk_08223007:: @ 08223007 - .incbin "baserom.gba", 0x223007, 0x000022B - -gUnk_08223232:: @ 08223232 - .incbin "baserom.gba", 0x223232, 0x0000001 - -gUnk_08223233:: @ 08223233 - .incbin "baserom.gba", 0x223233, 0x0000210 - -gUnk_08223443:: @ 08223443 - .incbin "baserom.gba", 0x223443, 0x0000002 - -gUnk_08223445:: @ 08223445 - .incbin "baserom.gba", 0x223445, 0x000000E - -gUnk_08223453:: @ 08223453 - .incbin "baserom.gba", 0x223453, 0x00000D6 - -gUnk_08223529:: @ 08223529 - .incbin "baserom.gba", 0x223529, 0x0000014 - -gUnk_0822353D:: @ 0822353D - .incbin "baserom.gba", 0x22353D, 0x0000207 - -gUnk_08223744:: @ 08223744 - .incbin "baserom.gba", 0x223744, 0x0000E13 - -gUnk_08224557:: @ 08224557 - .incbin "baserom.gba", 0x224557, 0x00006F4 - -gUnk_08224C4B:: @ 08224C4B - .incbin "baserom.gba", 0x224C4B, 0x00002EA - -gUnk_08224F35:: @ 08224F35 - .incbin "baserom.gba", 0x224F35, 0x0000ED5 - -gUnk_08225E0A:: @ 08225E0A - .incbin "baserom.gba", 0x225E0A, 0x00021ED - -gUnk_08227FF7:: @ 08227FF7 - .incbin "baserom.gba", 0x227FF7, 0x0001014 - -gUnk_0822900B:: @ 0822900B - .incbin "baserom.gba", 0x22900B, 0x000019F - -gUnk_082291AA:: @ 082291AA - .incbin "baserom.gba", 0x2291AA, 0x0000B79 - -gUnk_08229D23:: @ 08229D23 - .incbin "baserom.gba", 0x229D23, 0x00007CB - -gUnk_0822A4EE:: @ 0822A4EE - .incbin "baserom.gba", 0x22A4EE, 0x0000F19 - -gUnk_0822B407:: @ 0822B407 - .incbin "baserom.gba", 0x22B407, 0x0002414 - -gUnk_0822D81B:: @ 0822D81B - .incbin "baserom.gba", 0x22D81B, 0x00013D5 - -gUnk_0822EBF0:: @ 0822EBF0 - .incbin "baserom.gba", 0x22EBF0, 0x0000413 - -gUnk_0822F003:: @ 0822F003 - .incbin "baserom.gba", 0x22F003, 0x0000401 - -gUnk_0822F404:: @ 0822F404 - .incbin "baserom.gba", 0x22F404, 0x00004CE - -gUnk_0822F8D2:: @ 0822F8D2 - .incbin "baserom.gba", 0x22F8D2, 0x0000010 - -gUnk_0822F8E2:: @ 0822F8E2 - .incbin "baserom.gba", 0x22F8E2, 0x00001D8 - -gUnk_0822FABA:: @ 0822FABA - .incbin "baserom.gba", 0x22FABA, 0x0000846 - -gUnk_08230300:: @ 08230300 - .incbin "baserom.gba", 0x230300, 0x00005A6 - -gUnk_082308A6:: @ 082308A6 - .incbin "baserom.gba", 0x2308A6, 0x0000038 - -gUnk_082308DE:: @ 082308DE - .incbin "baserom.gba", 0x2308DE, 0x0000347 - -gUnk_08230C25:: @ 08230C25 - .incbin "baserom.gba", 0x230C25, 0x00000B9 - -gUnk_08230CDE:: @ 08230CDE - .incbin "baserom.gba", 0x230CDE, 0x000060C - -gUnk_082312EA:: @ 082312EA - .incbin "baserom.gba", 0x2312EA, 0x0000424 - -gUnk_0823170E:: @ 0823170E - .incbin "baserom.gba", 0x23170E, 0x000052F - -gUnk_08231C3D:: @ 08231C3D - .incbin "baserom.gba", 0x231C3D, 0x00000D5 - -gUnk_08231D12:: @ 08231D12 - .incbin "baserom.gba", 0x231D12, 0x000000C - -gUnk_08231D1E:: @ 08231D1E - .incbin "baserom.gba", 0x231D1E, 0x00000F5 - -gUnk_08231E13:: @ 08231E13 - .incbin "baserom.gba", 0x231E13, 0x0000104 - -gUnk_08231F17:: @ 08231F17 - .incbin "baserom.gba", 0x231F17, 0x00001C1 - -gUnk_082320D8:: @ 082320D8 - .incbin "baserom.gba", 0x2320D8, 0x000015D - -gUnk_08232235:: @ 08232235 - .incbin "baserom.gba", 0x232235, 0x0000075 - -gUnk_082322AA:: @ 082322AA - .incbin "baserom.gba", 0x2322AA, 0x000015C - -gUnk_08232406:: @ 08232406 - .incbin "baserom.gba", 0x232406, 0x000003F - -gUnk_08232445:: @ 08232445 - .incbin "baserom.gba", 0x232445, 0x00001CB - -gUnk_08232610:: @ 08232610 - .incbin "baserom.gba", 0x232610, 0x000020C - -gUnk_0823281C:: @ 0823281C - .incbin "baserom.gba", 0x23281C, 0x00000F5 - -gUnk_08232911:: @ 08232911 - .incbin "baserom.gba", 0x232911, 0x000011C - -gUnk_08232A2D:: @ 08232A2D - .incbin "baserom.gba", 0x232A2D, 0x00000E1 - -gUnk_08232B0E:: @ 08232B0E - .incbin "baserom.gba", 0x232B0E, 0x000000F - -gUnk_08232B1D:: @ 08232B1D - .incbin "baserom.gba", 0x232B1D, 0x0000006 - -gUnk_08232B23:: @ 08232B23 - .incbin "baserom.gba", 0x232B23, 0x00001C8 - -gUnk_08232CEB:: @ 08232CEB - .incbin "baserom.gba", 0x232CEB, 0x000002D - -gUnk_08232D18:: @ 08232D18 - .incbin "baserom.gba", 0x232D18, 0x0000015 - -gUnk_08232D2D:: @ 08232D2D - .incbin "baserom.gba", 0x232D2D, 0x0000007 - -gUnk_08232D34:: @ 08232D34 - .incbin "baserom.gba", 0x232D34, 0x000015D - -gUnk_08232E91:: @ 08232E91 - .incbin "baserom.gba", 0x232E91, 0x000007C - -gUnk_08232F0D:: @ 08232F0D - .incbin "baserom.gba", 0x232F0D, 0x000000A - -gUnk_08232F17:: @ 08232F17 - .incbin "baserom.gba", 0x232F17, 0x000001F - -gUnk_08232F36:: @ 08232F36 - .incbin "baserom.gba", 0x232F36, 0x00000F3 - -gUnk_08233029:: @ 08233029 - .incbin "baserom.gba", 0x233029, 0x0000006 - -gUnk_0823302F:: @ 0823302F - .incbin "baserom.gba", 0x23302F, 0x0000008 - -gUnk_08233037:: @ 08233037 - .incbin "baserom.gba", 0x233037, 0x00001F4 - -gUnk_0823322B:: @ 0823322B - .incbin "baserom.gba", 0x23322B, 0x00000EB - -gUnk_08233316:: @ 08233316 - .incbin "baserom.gba", 0x233316, 0x000001D - -gUnk_08233333:: @ 08233333 - .incbin "baserom.gba", 0x233333, 0x0000002 - -gUnk_08233335:: @ 08233335 - .incbin "baserom.gba", 0x233335, 0x0000064 - -gUnk_08233399:: @ 08233399 - .incbin "baserom.gba", 0x233399, 0x000008A - -gUnk_08233423:: @ 08233423 - .incbin "baserom.gba", 0x233423, 0x000000E - -gUnk_08233431:: @ 08233431 - .incbin "baserom.gba", 0x233431, 0x0000003 - -gUnk_08233434:: @ 08233434 - .incbin "baserom.gba", 0x233434, 0x000020D - -gUnk_08233641:: @ 08233641 - .incbin "baserom.gba", 0x233641, 0x0000021 - -gUnk_08233662:: @ 08233662 - .incbin "baserom.gba", 0x233662, 0x00000D6 - -gUnk_08233738:: @ 08233738 - .incbin "baserom.gba", 0x233738, 0x0000103 - -gUnk_0823383B:: @ 0823383B - .incbin "baserom.gba", 0x23383B, 0x0000217 - -gUnk_08233A52:: @ 08233A52 - .incbin "baserom.gba", 0x233A52, 0x0000009 - -gUnk_08233A5B:: @ 08233A5B - .incbin "baserom.gba", 0x233A5B, 0x000012E - -gUnk_08233B89:: @ 08233B89 - .incbin "baserom.gba", 0x233B89, 0x00000BD - -gUnk_08233C46:: @ 08233C46 - .incbin "baserom.gba", 0x233C46, 0x000030F - -gUnk_08233F55:: @ 08233F55 - .incbin "baserom.gba", 0x233F55, 0x00002CC - -gUnk_08234221:: @ 08234221 - .incbin "baserom.gba", 0x234221, 0x000021A - -gUnk_0823443B:: @ 0823443B - .incbin "baserom.gba", 0x23443B, 0x0000207 - -gUnk_08234642:: @ 08234642 - .incbin "baserom.gba", 0x234642, 0x0000BA7 - -gUnk_082351E9:: @ 082351E9 - .incbin "baserom.gba", 0x2351E9, 0x0000265 - -gUnk_0823544E:: @ 0823544E - .incbin "baserom.gba", 0x23544E, 0x00005FF - -gUnk_08235A4D:: @ 08235A4D - .incbin "baserom.gba", 0x235A4D, 0x00009EE - -gUnk_0823643B:: @ 0823643B - .incbin "baserom.gba", 0x23643B, 0x0002AC8 - -gUnk_08238F03:: @ 08238F03 - .incbin "baserom.gba", 0x238F03, 0x0001BA6 - -gUnk_0823AAA9:: @ 0823AAA9 - .incbin "baserom.gba", 0x23AAA9, 0x0001C6C - -gUnk_0823C715:: @ 0823C715 - .incbin "baserom.gba", 0x23C715, 0x00013EF - -gUnk_0823DB04:: @ 0823DB04 - .incbin "baserom.gba", 0x23DB04, 0x0000FFC - -gUnk_0823EB00:: @ 0823EB00 - .incbin "baserom.gba", 0x23EB00, 0x0001109 - -gUnk_0823FC09:: @ 0823FC09 - .incbin "baserom.gba", 0x23FC09, 0x00003F7 - -gUnk_08240000:: @ 08240000 - .incbin "baserom.gba", 0x240000, 0x000000F - -gUnk_0824000F:: @ 0824000F - .incbin "baserom.gba", 0x24000F, 0x00000FA - -gUnk_08240109:: @ 08240109 - .incbin "baserom.gba", 0x240109, 0x000001A - -gUnk_08240123:: @ 08240123 - .incbin "baserom.gba", 0x240123, 0x00001DD - -gUnk_08240300:: @ 08240300 - .incbin "baserom.gba", 0x240300, 0x0000CE5 - -gUnk_08240FE5:: @ 08240FE5 - .incbin "baserom.gba", 0x240FE5, 0x000041A - -gUnk_082413FF:: @ 082413FF - .incbin "baserom.gba", 0x2413FF, 0x0000915 - -gUnk_08241D14:: @ 08241D14 - .incbin "baserom.gba", 0x241D14, 0x00002FF - -gUnk_08242013:: @ 08242013 - .incbin "baserom.gba", 0x242013, 0x00000E5 - -gUnk_082420F8:: @ 082420F8 - .incbin "baserom.gba", 0x2420F8, 0x000000C - -gUnk_08242104:: @ 08242104 - .incbin "baserom.gba", 0x242104, 0x000012E - -gUnk_08242232:: @ 08242232 - .incbin "baserom.gba", 0x242232, 0x00000A5 - -gUnk_082422D7:: @ 082422D7 - .incbin "baserom.gba", 0x2422D7, 0x000063F - -gUnk_08242916:: @ 08242916 - .incbin "baserom.gba", 0x242916, 0x0000122 - -gUnk_08242A38:: @ 08242A38 - .incbin "baserom.gba", 0x242A38, 0x00003E8 - -gUnk_08242E20:: @ 08242E20 - .incbin "baserom.gba", 0x242E20, 0x0000106 - -gUnk_08242F26:: @ 08242F26 - .incbin "baserom.gba", 0x242F26, 0x00001EB - -gUnk_08243111:: @ 08243111 - .incbin "baserom.gba", 0x243111, 0x0000121 - -gUnk_08243232:: @ 08243232 - .incbin "baserom.gba", 0x243232, 0x00006FB - -gUnk_0824392D:: @ 0824392D - .incbin "baserom.gba", 0x24392D, 0x0000016 - -gUnk_08243943:: @ 08243943 - .incbin "baserom.gba", 0x243943, 0x0000002 - -gUnk_08243945:: @ 08243945 - .incbin "baserom.gba", 0x243945, 0x0000202 - -gUnk_08243B47:: @ 08243B47 - .incbin "baserom.gba", 0x243B47, 0x0000002 - -gUnk_08243B49:: @ 08243B49 - .incbin "baserom.gba", 0x243B49, 0x000008D - -gUnk_08243BD6:: @ 08243BD6 - .incbin "baserom.gba", 0x243BD6, 0x0000267 - -gUnk_08243E3D:: @ 08243E3D - .incbin "baserom.gba", 0x243E3D, 0x000000F - -gUnk_08243E4C:: @ 08243E4C - .incbin "baserom.gba", 0x243E4C, 0x00000FC - -gUnk_08243F48:: @ 08243F48 - .incbin "baserom.gba", 0x243F48, 0x000032C - -gUnk_08244274:: @ 08244274 - .incbin "baserom.gba", 0x244274, 0x00000E1 - -gUnk_08244355:: @ 08244355 - .incbin "baserom.gba", 0x244355, 0x0000608 - -gUnk_0824495D:: @ 0824495D - .incbin "baserom.gba", 0x24495D, 0x0000BD8 - -gUnk_08245535:: @ 08245535 - .incbin "baserom.gba", 0x245535, 0x00005CB - -gUnk_08245B00:: @ 08245B00 - .incbin "baserom.gba", 0x245B00, 0x00019D4 - -gUnk_082474D4:: @ 082474D4 - .incbin "baserom.gba", 0x2474D4, 0x0004C0C - -gUnk_0824C0E0:: @ 0824C0E0 - .incbin "baserom.gba", 0x24C0E0, 0x00007C0 - -gUnk_0824C8A0:: @ 0824C8A0 - .incbin "baserom.gba", 0x24C8A0, 0x0001973 - -gUnk_0824E213:: @ 0824E213 - .incbin "baserom.gba", 0x24E213, 0x0000111 - -gUnk_0824E324:: @ 0824E324 - .incbin "baserom.gba", 0x24E324, 0x00001BF - -gUnk_0824E4E3:: @ 0824E4E3 - .incbin "baserom.gba", 0x24E4E3, 0x000031D - -gUnk_0824E800:: @ 0824E800 - .incbin "baserom.gba", 0x24E800, 0x00001B7 - -gUnk_0824E9B7:: @ 0824E9B7 - .incbin "baserom.gba", 0x24E9B7, 0x0001659 - -gUnk_08250010:: @ 08250010 - .incbin "baserom.gba", 0x250010, 0x0000030 - -gUnk_08250040:: @ 08250040 - .incbin "baserom.gba", 0x250040, 0x00000C7 - -gUnk_08250107:: @ 08250107 - .incbin "baserom.gba", 0x250107, 0x00002EF - -gUnk_082503F6:: @ 082503F6 - .incbin "baserom.gba", 0x2503F6, 0x000002E - -gUnk_08250424:: @ 08250424 - .incbin "baserom.gba", 0x250424, 0x0000C74 - -gUnk_08251098:: @ 08251098 - .incbin "baserom.gba", 0x251098, 0x0000071 - -gUnk_08251109:: @ 08251109 - .incbin "baserom.gba", 0x251109, 0x00002B3 - -gUnk_082513BC:: @ 082513BC - .incbin "baserom.gba", 0x2513BC, 0x0000B50 - -gUnk_08251F0C:: @ 08251F0C - .incbin "baserom.gba", 0x251F0C, 0x00001F9 - -gUnk_08252105:: @ 08252105 - .incbin "baserom.gba", 0x252105, 0x0000039 - -gUnk_0825213E:: @ 0825213E - .incbin "baserom.gba", 0x25213E, 0x00006DA - -gUnk_08252818:: @ 08252818 - .incbin "baserom.gba", 0x252818, 0x00008C2 - -gUnk_082530DA:: @ 082530DA - .incbin "baserom.gba", 0x2530DA, 0x0000259 - -gUnk_08253333:: @ 08253333 - .incbin "baserom.gba", 0x253333, 0x0000610 - -gUnk_08253943:: @ 08253943 - .incbin "baserom.gba", 0x253943, 0x00001FE - -gUnk_08253B41:: @ 08253B41 - .incbin "baserom.gba", 0x253B41, 0x0000109 - -gUnk_08253C4A:: @ 08253C4A - .incbin "baserom.gba", 0x253C4A, 0x0000309 - -gUnk_08253F53:: @ 08253F53 - .incbin "baserom.gba", 0x253F53, 0x0000503 - -gUnk_08254456:: @ 08254456 - .incbin "baserom.gba", 0x254456, 0x00010E5 - -gUnk_0825553B:: @ 0825553B - .incbin "baserom.gba", 0x25553B, 0x0000018 - -gUnk_08255553:: @ 08255553 - .incbin "baserom.gba", 0x255553, 0x0000068 - -gUnk_082555BB:: @ 082555BB - .incbin "baserom.gba", 0x2555BB, 0x0000FC3 - -gUnk_0825657E:: @ 0825657E - .incbin "baserom.gba", 0x25657E, 0x0007F37 - -gUnk_0825E4B5:: @ 0825E4B5 - .incbin "baserom.gba", 0x25E4B5, 0x0000344 - -gUnk_0825E7F9:: @ 0825E7F9 - .incbin "baserom.gba", 0x25E7F9, 0x0001808 - -gUnk_08260001:: @ 08260001 - .incbin "baserom.gba", 0x260001, 0x0000007 - -gUnk_08260008:: @ 08260008 - .incbin "baserom.gba", 0x260008, 0x0000038 - -gUnk_08260040:: @ 08260040 - .incbin "baserom.gba", 0x260040, 0x0000094 - -gUnk_082600D4:: @ 082600D4 - .incbin "baserom.gba", 0x2600D4, 0x0000300 - -gUnk_082603D4:: @ 082603D4 - .incbin "baserom.gba", 0x2603D4, 0x0000051 - -gUnk_08260425:: @ 08260425 - .incbin "baserom.gba", 0x260425, 0x0000034 - -gUnk_08260459:: @ 08260459 - .incbin "baserom.gba", 0x260459, 0x00002A9 - -gUnk_08260702:: @ 08260702 - .incbin "baserom.gba", 0x260702, 0x00004AE - -gUnk_08260BB0:: @ 08260BB0 - .incbin "baserom.gba", 0x260BB0, 0x0000348 - -gUnk_08260EF8:: @ 08260EF8 - .incbin "baserom.gba", 0x260EF8, 0x0000011 - -gUnk_08260F09:: @ 08260F09 - .incbin "baserom.gba", 0x260F09, 0x0000D6C - -gUnk_08261C75:: @ 08261C75 - .incbin "baserom.gba", 0x261C75, 0x000009E - -gUnk_08261D13:: @ 08261D13 - .incbin "baserom.gba", 0x261D13, 0x0000401 - -gUnk_08262114:: @ 08262114 - .incbin "baserom.gba", 0x262114, 0x00004F1 - -gUnk_08262605:: @ 08262605 - .incbin "baserom.gba", 0x262605, 0x0000316 - -gUnk_0826291B:: @ 0826291B - .incbin "baserom.gba", 0x26291B, 0x0000307 - -gUnk_08262C22:: @ 08262C22 - .incbin "baserom.gba", 0x262C22, 0x0000407 - -gUnk_08263029:: @ 08263029 - .incbin "baserom.gba", 0x263029, 0x00002FA - -gUnk_08263323:: @ 08263323 - .incbin "baserom.gba", 0x263323, 0x000051D - -gUnk_08263840:: @ 08263840 - .incbin "baserom.gba", 0x263840, 0x0000206 - -gUnk_08263A46:: @ 08263A46 - .incbin "baserom.gba", 0x263A46, 0x0000508 - -gUnk_08263F4E:: @ 08263F4E - .incbin "baserom.gba", 0x263F4E, 0x0000005 - -gUnk_08263F53:: @ 08263F53 - .incbin "baserom.gba", 0x263F53, 0x00001FD - -gUnk_08264150:: @ 08264150 - .incbin "baserom.gba", 0x264150, 0x00003E0 - -gUnk_08264530:: @ 08264530 - .incbin "baserom.gba", 0x264530, 0x0000335 - -gUnk_08264865:: @ 08264865 - .incbin "baserom.gba", 0x264865, 0x00002D8 - -gUnk_08264B3D:: @ 08264B3D - .incbin "baserom.gba", 0x264B3D, 0x000031C - -gUnk_08264E59:: @ 08264E59 - .incbin "baserom.gba", 0x264E59, 0x0000113 - -gUnk_08264F6C:: @ 08264F6C - .incbin "baserom.gba", 0x264F6C, 0x000835A - -gUnk_0826D2C6:: @ 0826D2C6 - .incbin "baserom.gba", 0x26D2C6, 0x0000530 - -gUnk_0826D7F6:: @ 0826D7F6 - .incbin "baserom.gba", 0x26D7F6, 0x0000990 - -gUnk_0826E186:: @ 0826E186 - .incbin "baserom.gba", 0x26E186, 0x0000C68 - -gUnk_0826EDEE:: @ 0826EDEE - .incbin "baserom.gba", 0x26EDEE, 0x00011FE - -gUnk_0826FFEC:: @ 0826FFEC - .incbin "baserom.gba", 0x26FFEC, 0x0000014 - -gUnk_08270000:: @ 08270000 - .incbin "baserom.gba", 0x270000, 0x0000001 - -gUnk_08270001:: @ 08270001 - .incbin "baserom.gba", 0x270001, 0x000000F - -gUnk_08270010:: @ 08270010 - .incbin "baserom.gba", 0x270010, 0x0000001 - -gUnk_08270011:: @ 08270011 - .incbin "baserom.gba", 0x270011, 0x00000E0 - -gUnk_082700F1:: @ 082700F1 - .incbin "baserom.gba", 0x2700F1, 0x00000E7 - -gUnk_082701D8:: @ 082701D8 - .incbin "baserom.gba", 0x2701D8, 0x000042E - -gUnk_08270606:: @ 08270606 - .incbin "baserom.gba", 0x270606, 0x000011A - -gUnk_08270720:: @ 08270720 - .incbin "baserom.gba", 0x270720, 0x00002CD - -gUnk_082709ED:: @ 082709ED - .incbin "baserom.gba", 0x2709ED, 0x000051C - -gUnk_08270F09:: @ 08270F09 - .incbin "baserom.gba", 0x270F09, 0x00000F8 - -gUnk_08271001:: @ 08271001 - .incbin "baserom.gba", 0x271001, 0x0000065 - -gUnk_08271066:: @ 08271066 - .incbin "baserom.gba", 0x271066, 0x000025C - -gUnk_082712C2:: @ 082712C2 - .incbin "baserom.gba", 0x2712C2, 0x0000033 - -gUnk_082712F5:: @ 082712F5 - .incbin "baserom.gba", 0x2712F5, 0x00001E8 - -gUnk_082714DD:: @ 082714DD - .incbin "baserom.gba", 0x2714DD, 0x0000A1E - -gUnk_08271EFB:: @ 08271EFB - .incbin "baserom.gba", 0x271EFB, 0x0000718 - -gUnk_08272613:: @ 08272613 - .incbin "baserom.gba", 0x272613, 0x0000204 - -gUnk_08272817:: @ 08272817 - .incbin "baserom.gba", 0x272817, 0x00000E1 - -gUnk_082728F8:: @ 082728F8 - .incbin "baserom.gba", 0x2728F8, 0x0000023 - -gUnk_0827291B:: @ 0827291B - .incbin "baserom.gba", 0x27291B, 0x00001F8 - -gUnk_08272B13:: @ 08272B13 - .incbin "baserom.gba", 0x272B13, 0x000024D - -gUnk_08272D60:: @ 08272D60 - .incbin "baserom.gba", 0x272D60, 0x00001CD - -gUnk_08272F2D:: @ 08272F2D - .incbin "baserom.gba", 0x272F2D, 0x00006F5 - -gUnk_08273622:: @ 08273622 - .incbin "baserom.gba", 0x273622, 0x000031C - -gUnk_0827393E:: @ 0827393E - .incbin "baserom.gba", 0x27393E, 0x000040F - -gUnk_08273D4D:: @ 08273D4D - .incbin "baserom.gba", 0x273D4D, 0x0000101 - -gUnk_08273E4E:: @ 08273E4E - .incbin "baserom.gba", 0x273E4E, 0x00003DC - -gUnk_0827422A:: @ 0827422A - .incbin "baserom.gba", 0x27422A, 0x0000422 - -gUnk_0827464C:: @ 0827464C - .incbin "baserom.gba", 0x27464C, 0x0000011 - -gUnk_0827465D:: @ 0827465D - .incbin "baserom.gba", 0x27465D, 0x0002CAE - -gUnk_0827730B:: @ 0827730B - .incbin "baserom.gba", 0x27730B, 0x0001D03 - -gUnk_0827900E:: @ 0827900E - .incbin "baserom.gba", 0x27900E, 0x0004412 - -gUnk_0827D420:: @ 0827D420 - .incbin "baserom.gba", 0x27D420, 0x0000FEC - -gUnk_0827E40C:: @ 0827E40C - .incbin "baserom.gba", 0x27E40C, 0x000120A - -gUnk_0827F616:: @ 0827F616 - .incbin "baserom.gba", 0x27F616, 0x00009F3 - -gUnk_08280009:: @ 08280009 - .incbin "baserom.gba", 0x280009, 0x000001E - -gUnk_08280027:: @ 08280027 - .incbin "baserom.gba", 0x280027, 0x0000F01 - -gUnk_08280F28:: @ 08280F28 - .incbin "baserom.gba", 0x280F28, 0x00003CB - -gUnk_082812F3:: @ 082812F3 - .incbin "baserom.gba", 0x2812F3, 0x0000F8E - -gUnk_08282281:: @ 08282281 - .incbin "baserom.gba", 0x282281, 0x0000679 - -gUnk_082828FA:: @ 082828FA - .incbin "baserom.gba", 0x2828FA, 0x000042E - -gUnk_08282D28:: @ 08282D28 - .incbin "baserom.gba", 0x282D28, 0x0000013 - -gUnk_08282D3B:: @ 08282D3B - .incbin "baserom.gba", 0x282D3B, 0x0000202 - -gUnk_08282F3D:: @ 08282F3D - .incbin "baserom.gba", 0x282F3D, 0x00002E1 - -gUnk_0828321E:: @ 0828321E - .incbin "baserom.gba", 0x28321E, 0x00003FB - -gUnk_08283619:: @ 08283619 - .incbin "baserom.gba", 0x283619, 0x0000A3A - -gUnk_08284053:: @ 08284053 - .incbin "baserom.gba", 0x284053, 0x0000301 - -gUnk_08284354:: @ 08284354 - .incbin "baserom.gba", 0x284354, 0x00000D9 - -gUnk_0828442D:: @ 0828442D - .incbin "baserom.gba", 0x28442D, 0x0000332 - -gUnk_0828475F:: @ 0828475F - .incbin "baserom.gba", 0x28475F, 0x00002F0 - -gUnk_08284A4F:: @ 08284A4F - .incbin "baserom.gba", 0x284A4F, 0x00015B1 - -gUnk_08286000:: @ 08286000 - .incbin "baserom.gba", 0x286000, 0x000016C - -gUnk_0828616C:: @ 0828616C - .incbin "baserom.gba", 0x28616C, 0x0008C48 - -gUnk_0828EDB4:: @ 0828EDB4 - .incbin "baserom.gba", 0x28EDB4, 0x0000826 - -gUnk_0828F5DA:: @ 0828F5DA - .incbin "baserom.gba", 0x28F5DA, 0x0001009 - -gUnk_082905E3:: @ 082905E3 - .incbin "baserom.gba", 0x2905E3, 0x000011D - -gUnk_08290700:: @ 08290700 - .incbin "baserom.gba", 0x290700, 0x00001EE - -gUnk_082908EE:: @ 082908EE - .incbin "baserom.gba", 0x2908EE, 0x0000017 - -gUnk_08290905:: @ 08290905 - .incbin "baserom.gba", 0x290905, 0x0000601 - -gUnk_08290F06:: @ 08290F06 - .incbin "baserom.gba", 0x290F06, 0x00006E5 - -gUnk_082915EB:: @ 082915EB - .incbin "baserom.gba", 0x2915EB, 0x0000303 - -gUnk_082918EE:: @ 082918EE - .incbin "baserom.gba", 0x2918EE, 0x000078F - -gUnk_0829207D:: @ 0829207D - .incbin "baserom.gba", 0x29207D, 0x0000192 - -gUnk_0829220F:: @ 0829220F - .incbin "baserom.gba", 0x29220F, 0x00005CF - -gUnk_082927DE:: @ 082927DE - .incbin "baserom.gba", 0x2927DE, 0x000003A - -gUnk_08292818:: @ 08292818 - .incbin "baserom.gba", 0x292818, 0x00001F4 - -gUnk_08292A0C:: @ 08292A0C - .incbin "baserom.gba", 0x292A0C, 0x000048D - -gUnk_08292E99:: @ 08292E99 - .incbin "baserom.gba", 0x292E99, 0x0000298 - -gUnk_08293131:: @ 08293131 - .incbin "baserom.gba", 0x293131, 0x0000C27 - -gUnk_08293D58:: @ 08293D58 - .incbin "baserom.gba", 0x293D58, 0x00002FC - -gUnk_08294054:: @ 08294054 - .incbin "baserom.gba", 0x294054, 0x00001FB - -gUnk_0829424F:: @ 0829424F - .incbin "baserom.gba", 0x29424F, 0x0000001 - -gUnk_08294250:: @ 08294250 - .incbin "baserom.gba", 0x294250, 0x000030E - -gUnk_0829455E:: @ 0829455E - .incbin "baserom.gba", 0x29455E, 0x00002F1 - -gUnk_0829484F:: @ 0829484F - .incbin "baserom.gba", 0x29484F, 0x0000205 - -gUnk_08294A54:: @ 08294A54 - .incbin "baserom.gba", 0x294A54, 0x0000106 - -gUnk_08294B5A:: @ 08294B5A - .incbin "baserom.gba", 0x294B5A, 0x00008CB - -gUnk_08295425:: @ 08295425 - .incbin "baserom.gba", 0x295425, 0x0000223 - -gUnk_08295648:: @ 08295648 - .incbin "baserom.gba", 0x295648, 0x0005ABB - -gUnk_0829B103:: @ 0829B103 - .incbin "baserom.gba", 0x29B103, 0x0002DE9 - -gUnk_0829DEEC:: @ 0829DEEC - .incbin "baserom.gba", 0x29DEEC, 0x0002114 - -gUnk_082A0000:: @ 082A0000 - .incbin "baserom.gba", 0x2A0000, 0x0000004 - -gUnk_082A0004:: @ 082A0004 - .incbin "baserom.gba", 0x2A0004, 0x0000005 - -gUnk_082A0009:: @ 082A0009 - .incbin "baserom.gba", 0x2A0009, 0x0000001 - -gUnk_082A000A:: @ 082A000A - .incbin "baserom.gba", 0x2A000A, 0x0000004 - -gUnk_082A000E:: @ 082A000E - .incbin "baserom.gba", 0x2A000E, 0x0000002 - -gUnk_082A0010:: @ 082A0010 - .incbin "baserom.gba", 0x2A0010, 0x0000008 - -gUnk_082A0018:: @ 082A0018 - .incbin "baserom.gba", 0x2A0018, 0x0000004 - -gUnk_082A001C:: @ 082A001C - .incbin "baserom.gba", 0x2A001C, 0x0000017 - -gUnk_082A0033:: @ 082A0033 - .incbin "baserom.gba", 0x2A0033, 0x000003F - -gUnk_082A0072:: @ 082A0072 - .incbin "baserom.gba", 0x2A0072, 0x000038F - -gUnk_082A0401:: @ 082A0401 - .incbin "baserom.gba", 0x2A0401, 0x000000F - -gUnk_082A0410:: @ 082A0410 - .incbin "baserom.gba", 0x2A0410, 0x0000024 - -gUnk_082A0434:: @ 082A0434 - .incbin "baserom.gba", 0x2A0434, 0x000000F - -gUnk_082A0443:: @ 082A0443 - .incbin "baserom.gba", 0x2A0443, 0x0000001 - -gUnk_082A0444:: @ 082A0444 - .incbin "baserom.gba", 0x2A0444, 0x0000010 - -gUnk_082A0454:: @ 082A0454 - .incbin "baserom.gba", 0x2A0454, 0x0000005 - -gUnk_082A0459:: @ 082A0459 - .incbin "baserom.gba", 0x2A0459, 0x000000A - -gUnk_082A0463:: @ 082A0463 - .incbin "baserom.gba", 0x2A0463, 0x0000025 - -gUnk_082A0488:: @ 082A0488 - .incbin "baserom.gba", 0x2A0488, 0x0000379 - -gUnk_082A0801:: @ 082A0801 - .incbin "baserom.gba", 0x2A0801, 0x0000004 - -gUnk_082A0805:: @ 082A0805 - .incbin "baserom.gba", 0x2A0805, 0x0000002 - -gUnk_082A0807:: @ 082A0807 - .incbin "baserom.gba", 0x2A0807, 0x0000022 - -gUnk_082A0829:: @ 082A0829 - .incbin "baserom.gba", 0x2A0829, 0x0000AB5 - -gUnk_082A12DE:: @ 082A12DE - .incbin "baserom.gba", 0x2A12DE, 0x0000106 - -gUnk_082A13E4:: @ 082A13E4 - .incbin "baserom.gba", 0x2A13E4, 0x0000437 - -gUnk_082A181B:: @ 082A181B - .incbin "baserom.gba", 0x2A181B, 0x00003BC - -gUnk_082A1BD7:: @ 082A1BD7 - .incbin "baserom.gba", 0x2A1BD7, 0x0000731 - -gUnk_082A2308:: @ 082A2308 - .incbin "baserom.gba", 0x2A2308, 0x00000F3 - -gUnk_082A23FB:: @ 082A23FB - .incbin "baserom.gba", 0x2A23FB, 0x0000309 - -gUnk_082A2704:: @ 082A2704 - .incbin "baserom.gba", 0x2A2704, 0x00001E5 - -gUnk_082A28E9:: @ 082A28E9 - .incbin "baserom.gba", 0x2A28E9, 0x0000831 - -gUnk_082A311A:: @ 082A311A - .incbin "baserom.gba", 0x2A311A, 0x000090E - -gUnk_082A3A28:: @ 082A3A28 - .incbin "baserom.gba", 0x2A3A28, 0x0000009 - -gUnk_082A3A31:: @ 082A3A31 - .incbin "baserom.gba", 0x2A3A31, 0x00003F4 - -gUnk_082A3E25:: @ 082A3E25 - .incbin "baserom.gba", 0x2A3E25, 0x0000108 - -gUnk_082A3F2D:: @ 082A3F2D - .incbin "baserom.gba", 0x2A3F2D, 0x000041A - -gUnk_082A4347:: @ 082A4347 - .incbin "baserom.gba", 0x2A4347, 0x000000E - -gUnk_082A4355:: @ 082A4355 - .incbin "baserom.gba", 0x2A4355, 0x00000ED - -gUnk_082A4442:: @ 082A4442 - .incbin "baserom.gba", 0x2A4442, 0x000000B - -gUnk_082A444D:: @ 082A444D - .incbin "baserom.gba", 0x2A444D, 0x00000F2 - -gUnk_082A453F:: @ 082A453F - .incbin "baserom.gba", 0x2A453F, 0x0000007 - -gUnk_082A4546:: @ 082A4546 - .incbin "baserom.gba", 0x2A4546, 0x000020E - -gUnk_082A4754:: @ 082A4754 - .incbin "baserom.gba", 0x2A4754, 0x000020E - -gUnk_082A4962:: @ 082A4962 - .incbin "baserom.gba", 0x2A4962, 0x00000D5 - -gUnk_082A4A37:: @ 082A4A37 - .incbin "baserom.gba", 0x2A4A37, 0x0000020 - -gUnk_082A4A57:: @ 082A4A57 - .incbin "baserom.gba", 0x2A4A57, 0x0000603 - -gUnk_082A505A:: @ 082A505A - .incbin "baserom.gba", 0x2A505A, 0x0005CB1 - -gUnk_082AAD0B:: @ 082AAD0B - .incbin "baserom.gba", 0x2AAD0B, 0x0000EAF - -gUnk_082ABBBA:: @ 082ABBBA - .incbin "baserom.gba", 0x2ABBBA, 0x0000332 - -gUnk_082ABEEC:: @ 082ABEEC - .incbin "baserom.gba", 0x2ABEEC, 0x000270A - -gUnk_082AE5F6:: @ 082AE5F6 - .incbin "baserom.gba", 0x2AE5F6, 0x000020F - -gUnk_082AE805:: @ 082AE805 - .incbin "baserom.gba", 0x2AE805, 0x000166B - -gUnk_082AFE70:: @ 082AFE70 - .incbin "baserom.gba", 0x2AFE70, 0x000015E - -gUnk_082AFFCE:: @ 082AFFCE - .incbin "baserom.gba", 0x2AFFCE, 0x0000F3B - -gUnk_082B0F09:: @ 082B0F09 - .incbin "baserom.gba", 0x2B0F09, 0x0000529 - -gUnk_082B1432:: @ 082B1432 - .incbin "baserom.gba", 0x2B1432, 0x00009BD - -gUnk_082B1DEF:: @ 082B1DEF - .incbin "baserom.gba", 0x2B1DEF, 0x000060F - -gUnk_082B23FE:: @ 082B23FE - .incbin "baserom.gba", 0x2B23FE, 0x00006E4 - -gUnk_082B2AE2:: @ 082B2AE2 - .incbin "baserom.gba", 0x2B2AE2, 0x000092E - -gUnk_082B3410:: @ 082B3410 - .incbin "baserom.gba", 0x2B3410, 0x0000234 - -gUnk_082B3644:: @ 082B3644 - .incbin "baserom.gba", 0x2B3644, 0x0000115 - -gUnk_082B3759:: @ 082B3759 - .incbin "baserom.gba", 0x2B3759, 0x00005E3 - -gUnk_082B3D3C:: @ 082B3D3C - .incbin "baserom.gba", 0x2B3D3C, 0x0000224 - -gUnk_082B3F60:: @ 082B3F60 - .incbin "baserom.gba", 0x2B3F60, 0x00005B4 - -gUnk_082B4514:: @ 082B4514 - .incbin "baserom.gba", 0x2B4514, 0x0000448 - -gUnk_082B495C:: @ 082B495C - .incbin "baserom.gba", 0x2B495C, 0x0000008 - -gUnk_082B4964:: @ 082B4964 - .incbin "baserom.gba", 0x2B4964, 0x0000A05 - -gUnk_082B5369:: @ 082B5369 - .incbin "baserom.gba", 0x2B5369, 0x0002C97 - -gUnk_082B8000:: @ 082B8000 - .incbin "baserom.gba", 0x2B8000, 0x0005C81 - -gUnk_082BDC81:: @ 082BDC81 - .incbin "baserom.gba", 0x2BDC81, 0x0001F3B - -gUnk_082BFBBC:: @ 082BFBBC - .incbin "baserom.gba", 0x2BFBBC, 0x00002C7 - -gUnk_082BFE83:: @ 082BFE83 - .incbin "baserom.gba", 0x2BFE83, 0x000017D - -gUnk_082C0000:: @ 082C0000 - .incbin "baserom.gba", 0x2C0000, 0x000003C - -gUnk_082C003C:: @ 082C003C - .incbin "baserom.gba", 0x2C003C, 0x0000024 - -gUnk_082C0060:: @ 082C0060 - .incbin "baserom.gba", 0x2C0060, 0x00000A7 - -gUnk_082C0107:: @ 082C0107 - .incbin "baserom.gba", 0x2C0107, 0x0000724 - -gUnk_082C082B:: @ 082C082B - .incbin "baserom.gba", 0x2C082B, 0x00002D5 - -gUnk_082C0B00:: @ 082C0B00 - .incbin "baserom.gba", 0x2C0B00, 0x0000406 - -gUnk_082C0F06:: @ 082C0F06 - .incbin "baserom.gba", 0x2C0F06, 0x00016FF - -gUnk_082C2605:: @ 082C2605 - .incbin "baserom.gba", 0x2C2605, 0x00002FE - -gUnk_082C2903:: @ 082C2903 - .incbin "baserom.gba", 0x2C2903, 0x0000E14 - -gUnk_082C3717:: @ 082C3717 - .incbin "baserom.gba", 0x2C3717, 0x0000225 - -gUnk_082C393C:: @ 082C393C - .incbin "baserom.gba", 0x2C393C, 0x00001DB - -gUnk_082C3B17:: @ 082C3B17 - .incbin "baserom.gba", 0x2C3B17, 0x000033A - -gUnk_082C3E51:: @ 082C3E51 - .incbin "baserom.gba", 0x2C3E51, 0x00005E6 - -gUnk_082C4437:: @ 082C4437 - .incbin "baserom.gba", 0x2C4437, 0x0001C39 - -gUnk_082C6070:: @ 082C6070 - .incbin "baserom.gba", 0x2C6070, 0x0000FB1 - -gUnk_082C7021:: @ 082C7021 - .incbin "baserom.gba", 0x2C7021, 0x0000AFF - -gUnk_082C7B20:: @ 082C7B20 - .incbin "baserom.gba", 0x2C7B20, 0x0004D18 - -gUnk_082CC838:: @ 082CC838 - .incbin "baserom.gba", 0x2CC838, 0x000249E - -gUnk_082CECD6:: @ 082CECD6 - .incbin "baserom.gba", 0x2CECD6, 0x000132A - -gUnk_082D0000:: @ 082D0000 - .incbin "baserom.gba", 0x2D0000, 0x000006E - -gUnk_082D006E:: @ 082D006E - .incbin "baserom.gba", 0x2D006E, 0x0000060 - -gUnk_082D00CE:: @ 082D00CE - .incbin "baserom.gba", 0x2D00CE, 0x0000171 - -gUnk_082D023F:: @ 082D023F - .incbin "baserom.gba", 0x2D023F, 0x0000204 - -gUnk_082D0443:: @ 082D0443 - .incbin "baserom.gba", 0x2D0443, 0x0000001 - -gUnk_082D0444:: @ 082D0444 - .incbin "baserom.gba", 0x2D0444, 0x0000015 - -gUnk_082D0459:: @ 082D0459 - .incbin "baserom.gba", 0x2D0459, 0x000002F - -gUnk_082D0488:: @ 082D0488 - .incbin "baserom.gba", 0x2D0488, 0x0000EA1 - -gUnk_082D1329:: @ 082D1329 - .incbin "baserom.gba", 0x2D1329, 0x0000716 - -gUnk_082D1A3F:: @ 082D1A3F - .incbin "baserom.gba", 0x2D1A3F, 0x0000AF1 - -gUnk_082D2530:: @ 082D2530 - .incbin "baserom.gba", 0x2D2530, 0x00001F5 - -gUnk_082D2725:: @ 082D2725 - .incbin "baserom.gba", 0x2D2725, 0x00003F6 - -gUnk_082D2B1B:: @ 082D2B1B - .incbin "baserom.gba", 0x2D2B1B, 0x00000F4 - -gUnk_082D2C0F:: @ 082D2C0F - .incbin "baserom.gba", 0x2D2C0F, 0x0000A1A - -gUnk_082D3629:: @ 082D3629 - .incbin "baserom.gba", 0x2D3629, 0x0000B0F - -gUnk_082D4138:: @ 082D4138 - .incbin "baserom.gba", 0x2D4138, 0x000075C - -gUnk_082D4894:: @ 082D4894 - .incbin "baserom.gba", 0x2D4894, 0x00004CD - -gUnk_082D4D61:: @ 082D4D61 - .incbin "baserom.gba", 0x2D4D61, 0x0000208 - -gUnk_082D4F69:: @ 082D4F69 - .incbin "baserom.gba", 0x2D4F69, 0x00004D7 - -gUnk_082D5440:: @ 082D5440 - .incbin "baserom.gba", 0x2D5440, 0x000012D - -gUnk_082D556D:: @ 082D556D - .incbin "baserom.gba", 0x2D556D, 0x00004ED - -gUnk_082D5A5A:: @ 082D5A5A - .incbin "baserom.gba", 0x2D5A5A, 0x00000FB - -gUnk_082D5B55:: @ 082D5B55 - .incbin "baserom.gba", 0x2D5B55, 0x0007F92 - -gUnk_082DDAE7:: @ 082DDAE7 - .incbin "baserom.gba", 0x2DDAE7, 0x00024E9 - -gUnk_082DFFD0:: @ 082DFFD0 - .incbin "baserom.gba", 0x2DFFD0, 0x000006C - -gUnk_082E003C:: @ 082E003C - .incbin "baserom.gba", 0x2E003C, 0x0000001 - -gUnk_082E003D:: @ 082E003D - .incbin "baserom.gba", 0x2E003D, 0x00010AA - -gUnk_082E10E7:: @ 082E10E7 - .incbin "baserom.gba", 0x2E10E7, 0x0000024 - -gUnk_082E110B:: @ 082E110B - .incbin "baserom.gba", 0x2E110B, 0x00003FE - -gUnk_082E1509:: @ 082E1509 - .incbin "baserom.gba", 0x2E1509, 0x0000211 - -gUnk_082E171A:: @ 082E171A - .incbin "baserom.gba", 0x2E171A, 0x0000AF8 - -gUnk_082E2212:: @ 082E2212 - .incbin "baserom.gba", 0x2E2212, 0x0000AE9 - -gUnk_082E2CFB:: @ 082E2CFB - .incbin "baserom.gba", 0x2E2CFB, 0x0001805 - -gUnk_082E4500:: @ 082E4500 - .incbin "baserom.gba", 0x2E4500, 0x000053A - -gUnk_082E4A3A:: @ 082E4A3A - .incbin "baserom.gba", 0x2E4A3A, 0x0000F1B - -gUnk_082E5955:: @ 082E5955 - .incbin "baserom.gba", 0x2E5955, 0x0000F9F - -gUnk_082E68F4:: @ 082E68F4 - .incbin "baserom.gba", 0x2E68F4, 0x0001081 - -gUnk_082E7975:: @ 082E7975 - .incbin "baserom.gba", 0x2E7975, 0x00003B4 - -gUnk_082E7D29:: @ 082E7D29 - .incbin "baserom.gba", 0x2E7D29, 0x00045C2 - -gUnk_082EC2EB:: @ 082EC2EB - .incbin "baserom.gba", 0x2EC2EB, 0x0002113 - -gUnk_082EE3FE:: @ 082EE3FE - .incbin "baserom.gba", 0x2EE3FE, 0x0000A23 - -gUnk_082EEE21:: @ 082EEE21 - .incbin "baserom.gba", 0x2EEE21, 0x00011DF - -gUnk_082F0000:: @ 082F0000 - .incbin "baserom.gba", 0x2F0000, 0x0000008 - -gUnk_082F0008:: @ 082F0008 - .incbin "baserom.gba", 0x2F0008, 0x0000008 - -gUnk_082F0010:: @ 082F0010 - .incbin "baserom.gba", 0x2F0010, 0x0000005 - -gUnk_082F0015:: @ 082F0015 - .incbin "baserom.gba", 0x2F0015, 0x0000009 - -gUnk_082F001E:: @ 082F001E - .incbin "baserom.gba", 0x2F001E, 0x00000B4 - -gUnk_082F00D2:: @ 082F00D2 - .incbin "baserom.gba", 0x2F00D2, 0x000002C - -gUnk_082F00FE:: @ 082F00FE - .incbin "baserom.gba", 0x2F00FE, 0x0000339 - -gUnk_082F0437:: @ 082F0437 - .incbin "baserom.gba", 0x2F0437, 0x0000022 - -gUnk_082F0459:: @ 082F0459 - .incbin "baserom.gba", 0x2F0459, 0x0000025 - -gUnk_082F047E:: @ 082F047E - .incbin "baserom.gba", 0x2F047E, 0x0000389 - -gUnk_082F0807:: @ 082F0807 - .incbin "baserom.gba", 0x2F0807, 0x00006FC - -gUnk_082F0F03:: @ 082F0F03 - .incbin "baserom.gba", 0x2F0F03, 0x0000600 - -gUnk_082F1503:: @ 082F1503 - .incbin "baserom.gba", 0x2F1503, 0x0000804 - -gUnk_082F1D07:: @ 082F1D07 - .incbin "baserom.gba", 0x2F1D07, 0x0000AED - -gUnk_082F27F4:: @ 082F27F4 - .incbin "baserom.gba", 0x2F27F4, 0x000031B - -gUnk_082F2B0F:: @ 082F2B0F - .incbin "baserom.gba", 0x2F2B0F, 0x0001265 - -gUnk_082F3D74:: @ 082F3D74 - .incbin "baserom.gba", 0x2F3D74, 0x000018F - -gUnk_082F3F03:: @ 082F3F03 - .incbin "baserom.gba", 0x2F3F03, 0x0000015 - -gUnk_082F3F18:: @ 082F3F18 - .incbin "baserom.gba", 0x2F3F18, 0x0000215 - -gUnk_082F412D:: @ 082F412D - .incbin "baserom.gba", 0x2F412D, 0x000030B - -gUnk_082F4438:: @ 082F4438 - .incbin "baserom.gba", 0x2F4438, 0x0000BCF - -gUnk_082F5007:: @ 082F5007 - .incbin "baserom.gba", 0x2F5007, 0x0000051 - -gUnk_082F5058:: @ 082F5058 - .incbin "baserom.gba", 0x2F5058, 0x00000B9 - -gUnk_082F5111:: @ 082F5111 - .incbin "baserom.gba", 0x2F5111, 0x000015B - -gUnk_082F526C:: @ 082F526C - .incbin "baserom.gba", 0x2F526C, 0x00079B8 - -gUnk_082FCC24:: @ 082FCC24 - .incbin "baserom.gba", 0x2FCC24, 0x00011D5 - -gUnk_082FDDF9:: @ 082FDDF9 - .incbin "baserom.gba", 0x2FDDF9, 0x00004E8 - -gUnk_082FE2E1:: @ 082FE2E1 - .incbin "baserom.gba", 0x2FE2E1, 0x0001CBE - -gUnk_082FFF9F:: @ 082FFF9F - .incbin "baserom.gba", 0x2FFF9F, 0x0000061 - -gUnk_08300000:: @ 08300000 - .incbin "baserom.gba", 0x300000, 0x0000009 - -gUnk_08300009:: @ 08300009 - .incbin "baserom.gba", 0x300009, 0x0000018 - -gUnk_08300021:: @ 08300021 - .incbin "baserom.gba", 0x300021, 0x0000104 - -gUnk_08300125:: @ 08300125 - .incbin "baserom.gba", 0x300125, 0x0000043 - -gUnk_08300168:: @ 08300168 - .incbin "baserom.gba", 0x300168, 0x0000239 - -gUnk_083003A1:: @ 083003A1 - .incbin "baserom.gba", 0x3003A1, 0x0000080 - -gUnk_08300421:: @ 08300421 - .incbin "baserom.gba", 0x300421, 0x00002FF - -gUnk_08300720:: @ 08300720 - .incbin "baserom.gba", 0x300720, 0x0000007 - -gUnk_08300727:: @ 08300727 - .incbin "baserom.gba", 0x300727, 0x0000009 - -gUnk_08300730:: @ 08300730 - .incbin "baserom.gba", 0x300730, 0x0000010 - -gUnk_08300740:: @ 08300740 - .incbin "baserom.gba", 0x300740, 0x0000010 - -gUnk_08300750:: @ 08300750 - .incbin "baserom.gba", 0x300750, 0x0000020 - -gUnk_08300770:: @ 08300770 - .incbin "baserom.gba", 0x300770, 0x0000040 - -gUnk_083007B0:: @ 083007B0 - .incbin "baserom.gba", 0x3007B0, 0x0000030 - -gUnk_083007E0:: @ 083007E0 - .incbin "baserom.gba", 0x3007E0, 0x0000028 - -gUnk_08300808:: @ 08300808 - .incbin "baserom.gba", 0x300808, 0x0000108 - -gUnk_08300910:: @ 08300910 - .incbin "baserom.gba", 0x300910, 0x0000104 - -gUnk_08300A14:: @ 08300A14 - .incbin "baserom.gba", 0x300A14, 0x00000ED - -gUnk_08300B01:: @ 08300B01 - .incbin "baserom.gba", 0x300B01, 0x0000560 - -gUnk_08301061:: @ 08301061 - .incbin "baserom.gba", 0x301061, 0x0000B00 - -gUnk_08301B61:: @ 08301B61 - .incbin "baserom.gba", 0x301B61, 0x0000240 - -gUnk_08301DA1:: @ 08301DA1 - .incbin "baserom.gba", 0x301DA1, 0x00001CF - -gUnk_08301F70:: @ 08301F70 - .incbin "baserom.gba", 0x301F70, 0x0000231 - -gUnk_083021A1:: @ 083021A1 - .incbin "baserom.gba", 0x3021A1, 0x0000268 - -gUnk_08302409:: @ 08302409 - .incbin "baserom.gba", 0x302409, 0x0000158 - -gUnk_08302561:: @ 08302561 - .incbin "baserom.gba", 0x302561, 0x0000140 - -gUnk_083026A1:: @ 083026A1 - .incbin "baserom.gba", 0x3026A1, 0x000006F - -gUnk_08302710:: @ 08302710 - .incbin "baserom.gba", 0x302710, 0x00001F5 - -gUnk_08302905:: @ 08302905 - .incbin "baserom.gba", 0x302905, 0x000003B - -gUnk_08302940:: @ 08302940 - .incbin "baserom.gba", 0x302940, 0x0000221 - -gUnk_08302B61:: @ 08302B61 - .incbin "baserom.gba", 0x302B61, 0x00000D6 - -gUnk_08302C37:: @ 08302C37 - .incbin "baserom.gba", 0x302C37, 0x00000D9 - -gUnk_08302D10:: @ 08302D10 - .incbin "baserom.gba", 0x302D10, 0x0000010 - -gUnk_08302D20:: @ 08302D20 - .incbin "baserom.gba", 0x302D20, 0x0000110 - -gUnk_08302E30:: @ 08302E30 - .incbin "baserom.gba", 0x302E30, 0x00000E1 - -gUnk_08302F11:: @ 08302F11 - .incbin "baserom.gba", 0x302F11, 0x00000FF - -gUnk_08303010:: @ 08303010 - .incbin "baserom.gba", 0x303010, 0x0000019 - -gUnk_08303029:: @ 08303029 - .incbin "baserom.gba", 0x303029, 0x0000078 - -gUnk_083030A1:: @ 083030A1 - .incbin "baserom.gba", 0x3030A1, 0x0000300 - -gUnk_083033A1:: @ 083033A1 - .incbin "baserom.gba", 0x3033A1, 0x0000067 - -gUnk_08303408:: @ 08303408 - .incbin "baserom.gba", 0x303408, 0x0000540 - -gUnk_08303948:: @ 08303948 - .incbin "baserom.gba", 0x303948, 0x00002FE - -gUnk_08303C46:: @ 08303C46 - .incbin "baserom.gba", 0x303C46, 0x00000E5 - -gUnk_08303D2B:: @ 08303D2B - .incbin "baserom.gba", 0x303D2B, 0x00002F6 - -gUnk_08304021:: @ 08304021 - .incbin "baserom.gba", 0x304021, 0x0000612 - -gUnk_08304633:: @ 08304633 - .incbin "baserom.gba", 0x304633, 0x0000143 - -gUnk_08304776:: @ 08304776 - .incbin "baserom.gba", 0x304776, 0x00002F2 - -gUnk_08304A68:: @ 08304A68 - .incbin "baserom.gba", 0x304A68, 0x00003F9 - -gUnk_08304E61:: @ 08304E61 - .incbin "baserom.gba", 0x304E61, 0x0000407 - -gUnk_08305268:: @ 08305268 - .incbin "baserom.gba", 0x305268, 0x0000002 - -gUnk_0830526A:: @ 0830526A - .incbin "baserom.gba", 0x30526A, 0x000050B - -gUnk_08305775:: @ 08305775 - .incbin "baserom.gba", 0x305775, 0x00007A0 - -gUnk_08305F15:: @ 08305F15 - .incbin "baserom.gba", 0x305F15, 0x000006E - -gUnk_08305F83:: @ 08305F83 - .incbin "baserom.gba", 0x305F83, 0x00005C5 - -gUnk_08306548:: @ 08306548 - .incbin "baserom.gba", 0x306548, 0x000023B - -gUnk_08306783:: @ 08306783 - .incbin "baserom.gba", 0x306783, 0x00001AD - -gUnk_08306930:: @ 08306930 - .incbin "baserom.gba", 0x306930, 0x0000757 - -gUnk_08307087:: @ 08307087 - .incbin "baserom.gba", 0x307087, 0x00004C8 - -gUnk_0830754F:: @ 0830754F - .incbin "baserom.gba", 0x30754F, 0x000000E - -gUnk_0830755D:: @ 0830755D - .incbin "baserom.gba", 0x30755D, 0x000021A - -gUnk_08307777:: @ 08307777 - .incbin "baserom.gba", 0x307777, 0x0000201 - -gUnk_08307978:: @ 08307978 - .incbin "baserom.gba", 0x307978, 0x000038F - -gUnk_08307D07:: @ 08307D07 - .incbin "baserom.gba", 0x307D07, 0x0000529 - -gUnk_08308230:: @ 08308230 - .incbin "baserom.gba", 0x308230, 0x00004E6 - -gUnk_08308716:: @ 08308716 - .incbin "baserom.gba", 0x308716, 0x00006F3 - -gUnk_08308E09:: @ 08308E09 - .incbin "baserom.gba", 0x308E09, 0x0000817 - -gUnk_08309620:: @ 08309620 - .incbin "baserom.gba", 0x309620, 0x000027A - -gUnk_0830989A:: @ 0830989A - .incbin "baserom.gba", 0x30989A, 0x00004C0 - -gUnk_08309D5A:: @ 08309D5A - .incbin "baserom.gba", 0x309D5A, 0x0000136 - -gUnk_08309E90:: @ 08309E90 - .incbin "baserom.gba", 0x309E90, 0x0000085 - -gUnk_08309F15:: @ 08309F15 - .incbin "baserom.gba", 0x309F15, 0x0000290 - -gUnk_0830A1A5:: @ 0830A1A5 - .incbin "baserom.gba", 0x30A1A5, 0x0000BC6 - -gUnk_0830AD6B:: @ 0830AD6B - .incbin "baserom.gba", 0x30AD6B, 0x000009C - -gUnk_0830AE07:: @ 0830AE07 - .incbin "baserom.gba", 0x30AE07, 0x00001D9 - -gUnk_0830AFE0:: @ 0830AFE0 - .incbin "baserom.gba", 0x30AFE0, 0x0000130 - -gUnk_0830B110:: @ 0830B110 - .incbin "baserom.gba", 0x30B110, 0x000006F - -gUnk_0830B17F:: @ 0830B17F - .incbin "baserom.gba", 0x30B17F, 0x0000137 - -gUnk_0830B2B6:: @ 0830B2B6 - .incbin "baserom.gba", 0x30B2B6, 0x0000062 - -gUnk_0830B318:: @ 0830B318 - .incbin "baserom.gba", 0x30B318, 0x0000090 - -gUnk_0830B3A8:: @ 0830B3A8 - .incbin "baserom.gba", 0x30B3A8, 0x000002C - -gUnk_0830B3D4:: @ 0830B3D4 - .incbin "baserom.gba", 0x30B3D4, 0x00000E0 - -gUnk_0830B4B4:: @ 0830B4B4 - .incbin "baserom.gba", 0x30B4B4, 0x0000005 - -gUnk_0830B4B9:: @ 0830B4B9 - .incbin "baserom.gba", 0x30B4B9, 0x00002F7 - -gUnk_0830B7B0:: @ 0830B7B0 - .incbin "baserom.gba", 0x30B7B0, 0x00000A2 - -gUnk_0830B852:: @ 0830B852 - .incbin "baserom.gba", 0x30B852, 0x000020F - -gUnk_0830BA61:: @ 0830BA61 - .incbin "baserom.gba", 0x30BA61, 0x0000360 - -gUnk_0830BDC1:: @ 0830BDC1 - .incbin "baserom.gba", 0x30BDC1, 0x0000046 - -gUnk_0830BE07:: @ 0830BE07 - .incbin "baserom.gba", 0x30BE07, 0x00000CD - -gUnk_0830BED4:: @ 0830BED4 - .incbin "baserom.gba", 0x30BED4, 0x000009F - -gUnk_0830BF73:: @ 0830BF73 - .incbin "baserom.gba", 0x30BF73, 0x00001D1 - -gUnk_0830C144:: @ 0830C144 - .incbin "baserom.gba", 0x30C144, 0x00006F0 - -gUnk_0830C834:: @ 0830C834 - .incbin "baserom.gba", 0x30C834, 0x00001C0 - -gUnk_0830C9F4:: @ 0830C9F4 - .incbin "baserom.gba", 0x30C9F4, 0x0000013 - -gUnk_0830CA07:: @ 0830CA07 - .incbin "baserom.gba", 0x30CA07, 0x00002E0 - -gUnk_0830CCE7:: @ 0830CCE7 - .incbin "baserom.gba", 0x30CCE7, 0x00002E5 - -gUnk_0830CFCC:: @ 0830CFCC - .incbin "baserom.gba", 0x30CFCC, 0x0000067 - -gUnk_0830D033:: @ 0830D033 - .incbin "baserom.gba", 0x30D033, 0x00002E5 - -gUnk_0830D318:: @ 0830D318 - .incbin "baserom.gba", 0x30D318, 0x0000100 - -gUnk_0830D418:: @ 0830D418 - .incbin "baserom.gba", 0x30D418, 0x00000B6 - -gUnk_0830D4CE:: @ 0830D4CE - .incbin "baserom.gba", 0x30D4CE, 0x0000003 - -gUnk_0830D4D1:: @ 0830D4D1 - .incbin "baserom.gba", 0x30D4D1, 0x000010B - -gUnk_0830D5DC:: @ 0830D5DC - .incbin "baserom.gba", 0x30D5DC, 0x000082C - -gUnk_0830DE08:: @ 0830DE08 - .incbin "baserom.gba", 0x30DE08, 0x0000608 - -gUnk_0830E410:: @ 0830E410 - .incbin "baserom.gba", 0x30E410, 0x0000739 - -gUnk_0830EB49:: @ 0830EB49 - .incbin "baserom.gba", 0x30EB49, 0x00000BA - -gUnk_0830EC03:: @ 0830EC03 - .incbin "baserom.gba", 0x30EC03, 0x0000010 - -gUnk_0830EC13:: @ 0830EC13 - .incbin "baserom.gba", 0x30EC13, 0x00003D4 - -gUnk_0830EFE7:: @ 0830EFE7 - .incbin "baserom.gba", 0x30EFE7, 0x00003FA - -gUnk_0830F3E1:: @ 0830F3E1 - .incbin "baserom.gba", 0x30F3E1, 0x000060B - -gUnk_0830F9EC:: @ 0830F9EC - .incbin "baserom.gba", 0x30F9EC, 0x0000141 - -gUnk_0830FB2D:: @ 0830FB2D - .incbin "baserom.gba", 0x30FB2D, 0x00001B8 - -gUnk_0830FCE5:: @ 0830FCE5 - .incbin "baserom.gba", 0x30FCE5, 0x0000122 - -gUnk_0830FE07:: @ 0830FE07 - .incbin "baserom.gba", 0x30FE07, 0x0000078 - -gUnk_0830FE7F:: @ 0830FE7F - .incbin "baserom.gba", 0x30FE7F, 0x0000016 - -gUnk_0830FE95:: @ 0830FE95 - .incbin "baserom.gba", 0x30FE95, 0x0000059 - -gUnk_0830FEEE:: @ 0830FEEE - .incbin "baserom.gba", 0x30FEEE, 0x0000019 - -gUnk_0830FF07:: @ 0830FF07 - .incbin "baserom.gba", 0x30FF07, 0x000004C - -gUnk_0830FF53:: @ 0830FF53 - .incbin "baserom.gba", 0x30FF53, 0x00000AD - -gUnk_08310000:: @ 08310000 - .incbin "baserom.gba", 0x310000, 0x0000001 - -gUnk_08310001:: @ 08310001 - .incbin "baserom.gba", 0x310001, 0x0000001 - -gUnk_08310002:: @ 08310002 - .incbin "baserom.gba", 0x310002, 0x0000001 - -gUnk_08310003:: @ 08310003 - .incbin "baserom.gba", 0x310003, 0x0000001 - -gUnk_08310004:: @ 08310004 - .incbin "baserom.gba", 0x310004, 0x0000001 - -gUnk_08310005:: @ 08310005 - .incbin "baserom.gba", 0x310005, 0x0000001 - -gUnk_08310006:: @ 08310006 - .incbin "baserom.gba", 0x310006, 0x0000001 - -gUnk_08310007:: @ 08310007 - .incbin "baserom.gba", 0x310007, 0x0000001 - -gUnk_08310008:: @ 08310008 - .incbin "baserom.gba", 0x310008, 0x0000003 - -gUnk_0831000B:: @ 0831000B - .incbin "baserom.gba", 0x31000B, 0x0000003 - -gUnk_0831000E:: @ 0831000E - .incbin "baserom.gba", 0x31000E, 0x0000001 - -gUnk_0831000F:: @ 0831000F - .incbin "baserom.gba", 0x31000F, 0x0000001 - -gUnk_08310010:: @ 08310010 - .incbin "baserom.gba", 0x310010, 0x0000004 - -gUnk_08310014:: @ 08310014 - .incbin "baserom.gba", 0x310014, 0x0000001 - -gUnk_08310015:: @ 08310015 - .incbin "baserom.gba", 0x310015, 0x000000B - -gUnk_08310020:: @ 08310020 - .incbin "baserom.gba", 0x310020, 0x0000003 - -gUnk_08310023:: @ 08310023 - .incbin "baserom.gba", 0x310023, 0x000000D - -gUnk_08310030:: @ 08310030 - .incbin "baserom.gba", 0x310030, 0x0000009 - -gUnk_08310039:: @ 08310039 - .incbin "baserom.gba", 0x310039, 0x000000A - -gUnk_08310043:: @ 08310043 - .incbin "baserom.gba", 0x310043, 0x000000D - -gUnk_08310050:: @ 08310050 - .incbin "baserom.gba", 0x310050, 0x0000003 - -gUnk_08310053:: @ 08310053 - .incbin "baserom.gba", 0x310053, 0x0000007 - -gUnk_0831005A:: @ 0831005A - .incbin "baserom.gba", 0x31005A, 0x0000002 - -gUnk_0831005C:: @ 0831005C - .incbin "baserom.gba", 0x31005C, 0x0000004 - -gUnk_08310060:: @ 08310060 - .incbin "baserom.gba", 0x310060, 0x0000008 - -gUnk_08310068:: @ 08310068 - .incbin "baserom.gba", 0x310068, 0x0000004 - -gUnk_0831006C:: @ 0831006C - .incbin "baserom.gba", 0x31006C, 0x0000006 - -gUnk_08310072:: @ 08310072 - .incbin "baserom.gba", 0x310072, 0x0000006 - -gUnk_08310078:: @ 08310078 - .incbin "baserom.gba", 0x310078, 0x0000007 - -gUnk_0831007F:: @ 0831007F - .incbin "baserom.gba", 0x31007F, 0x0000001 - -gUnk_08310080:: @ 08310080 - .incbin "baserom.gba", 0x310080, 0x0000014 - -gUnk_08310094:: @ 08310094 - .incbin "baserom.gba", 0x310094, 0x0000004 - -gUnk_08310098:: @ 08310098 - .incbin "baserom.gba", 0x310098, 0x0000035 - -gUnk_083100CD:: @ 083100CD - .incbin "baserom.gba", 0x3100CD, 0x000000B - -gUnk_083100D8:: @ 083100D8 - .incbin "baserom.gba", 0x3100D8, 0x000000A - -gUnk_083100E2:: @ 083100E2 - .incbin "baserom.gba", 0x3100E2, 0x0000029 - -gUnk_0831010B:: @ 0831010B - .incbin "baserom.gba", 0x31010B, 0x000006D - -gUnk_08310178:: @ 08310178 - .incbin "baserom.gba", 0x310178, 0x0000020 - -gUnk_08310198:: @ 08310198 - .incbin "baserom.gba", 0x310198, 0x0000032 - -gUnk_083101CA:: @ 083101CA - .incbin "baserom.gba", 0x3101CA, 0x000005E - -gUnk_08310228:: @ 08310228 - .incbin "baserom.gba", 0x310228, 0x0000058 - -gUnk_08310280:: @ 08310280 - .incbin "baserom.gba", 0x310280, 0x0000008 - -gUnk_08310288:: @ 08310288 - .incbin "baserom.gba", 0x310288, 0x0000010 - -gUnk_08310298:: @ 08310298 - .incbin "baserom.gba", 0x310298, 0x0000068 - -gUnk_08310300:: @ 08310300 - .incbin "baserom.gba", 0x310300, 0x0000050 - -gUnk_08310350:: @ 08310350 - .incbin "baserom.gba", 0x310350, 0x00000B2 - -gUnk_08310402:: @ 08310402 - .incbin "baserom.gba", 0x310402, 0x0000032 - -gUnk_08310434:: @ 08310434 - .incbin "baserom.gba", 0x310434, 0x0000003 - -gUnk_08310437:: @ 08310437 - .incbin "baserom.gba", 0x310437, 0x000000C - -gUnk_08310443:: @ 08310443 - .incbin "baserom.gba", 0x310443, 0x0000002 - -gUnk_08310445:: @ 08310445 - .incbin "baserom.gba", 0x310445, 0x0000004 - -gUnk_08310449:: @ 08310449 - .incbin "baserom.gba", 0x310449, 0x0000001 - -gUnk_0831044A:: @ 0831044A - .incbin "baserom.gba", 0x31044A, 0x0000001 - -gUnk_0831044B:: @ 0831044B - .incbin "baserom.gba", 0x31044B, 0x000000E - -gUnk_08310459:: @ 08310459 - .incbin "baserom.gba", 0x310459, 0x000000B - -gUnk_08310464:: @ 08310464 - .incbin "baserom.gba", 0x310464, 0x000001A - -gUnk_0831047E:: @ 0831047E - .incbin "baserom.gba", 0x31047E, 0x0000009 - -gUnk_08310487:: @ 08310487 - .incbin "baserom.gba", 0x310487, 0x0000001 - -gUnk_08310488:: @ 08310488 - .incbin "baserom.gba", 0x310488, 0x00002A8 - -gUnk_08310730:: @ 08310730 - .incbin "baserom.gba", 0x310730, 0x00000D0 - -gUnk_08310800:: @ 08310800 - .incbin "baserom.gba", 0x310800, 0x0000001 - -gUnk_08310801:: @ 08310801 - .incbin "baserom.gba", 0x310801, 0x0000003 - -gUnk_08310804:: @ 08310804 - .incbin "baserom.gba", 0x310804, 0x0000001 - -gUnk_08310805:: @ 08310805 - .incbin "baserom.gba", 0x310805, 0x0000001 - -gUnk_08310806:: @ 08310806 - .incbin "baserom.gba", 0x310806, 0x0000001 - -gUnk_08310807:: @ 08310807 - .incbin "baserom.gba", 0x310807, 0x0000002 - -gUnk_08310809:: @ 08310809 - .incbin "baserom.gba", 0x310809, 0x0000001 - -gUnk_0831080A:: @ 0831080A - .incbin "baserom.gba", 0x31080A, 0x0000003 - -gUnk_0831080D:: @ 0831080D - .incbin "baserom.gba", 0x31080D, 0x0000023 - -gUnk_08310830:: @ 08310830 - .incbin "baserom.gba", 0x310830, 0x00007BB - -gUnk_08310FEB:: @ 08310FEB - .incbin "baserom.gba", 0x310FEB, 0x0000218 - -gUnk_08311203:: @ 08311203 - .incbin "baserom.gba", 0x311203, 0x0000351 - -gUnk_08311554:: @ 08311554 - .incbin "baserom.gba", 0x311554, 0x00000BA - -gUnk_0831160E:: @ 0831160E - .incbin "baserom.gba", 0x31160E, 0x0000123 - -gUnk_08311731:: @ 08311731 - .incbin "baserom.gba", 0x311731, 0x00005DF - -gUnk_08311D10:: @ 08311D10 - .incbin "baserom.gba", 0x311D10, 0x00002F0 - -gUnk_08312000:: @ 08312000 - .incbin "baserom.gba", 0x312000, 0x000012D - -gUnk_0831212D:: @ 0831212D - .incbin "baserom.gba", 0x31212D, 0x00009D2 - -gUnk_08312AFF:: @ 08312AFF - .incbin "baserom.gba", 0x312AFF, 0x0000630 - -gUnk_0831312F:: @ 0831312F - .incbin "baserom.gba", 0x31312F, 0x00000DA - -gUnk_08313209:: @ 08313209 - .incbin "baserom.gba", 0x313209, 0x000024C - -gUnk_08313455:: @ 08313455 - .incbin "baserom.gba", 0x313455, 0x00002EF - -gUnk_08313744:: @ 08313744 - .incbin "baserom.gba", 0x313744, 0x00001D8 - -gUnk_0831391C:: @ 0831391C - .incbin "baserom.gba", 0x31391C, 0x00000E4 - -gUnk_08313A00:: @ 08313A00 - .incbin "baserom.gba", 0x313A00, 0x0000010 - -gUnk_08313A10:: @ 08313A10 - .incbin "baserom.gba", 0x313A10, 0x0000409 - -gUnk_08313E19:: @ 08313E19 - .incbin "baserom.gba", 0x313E19, 0x00005E8 - -gUnk_08314401:: @ 08314401 - .incbin "baserom.gba", 0x314401, 0x0000132 - -gUnk_08314533:: @ 08314533 - .incbin "baserom.gba", 0x314533, 0x0000220 - -gUnk_08314753:: @ 08314753 - .incbin "baserom.gba", 0x314753, 0x00005F2 - -gUnk_08314D45:: @ 08314D45 - .incbin "baserom.gba", 0x314D45, 0x00005FC - -gUnk_08315341:: @ 08315341 - .incbin "baserom.gba", 0x315341, 0x0000131 - -gUnk_08315472:: @ 08315472 - .incbin "baserom.gba", 0x315472, 0x00005FF - -gUnk_08315A71:: @ 08315A71 - .incbin "baserom.gba", 0x315A71, 0x00004FB - -gUnk_08315F6C:: @ 08315F6C - .incbin "baserom.gba", 0x315F6C, 0x0001B94 - -gUnk_08317B00:: @ 08317B00 - .incbin "baserom.gba", 0x317B00, 0x00026A1 - -gUnk_0831A1A1:: @ 0831A1A1 - .incbin "baserom.gba", 0x31A1A1, 0x0001993 - -gUnk_0831BB34:: @ 0831BB34 - .incbin "baserom.gba", 0x31BB34, 0x00009FB - -gUnk_0831C52F:: @ 0831C52F - .incbin "baserom.gba", 0x31C52F, 0x00012C6 - -gUnk_0831D7F5:: @ 0831D7F5 - .incbin "baserom.gba", 0x31D7F5, 0x0000720 - -gUnk_0831DF15:: @ 0831DF15 - .incbin "baserom.gba", 0x31DF15, 0x0000BF2 - -gUnk_0831EB07:: @ 0831EB07 - .incbin "baserom.gba", 0x31EB07, 0x00003DB - -gUnk_0831EEE2:: @ 0831EEE2 - .incbin "baserom.gba", 0x31EEE2, 0x000002B - -gUnk_0831EF0D:: @ 0831EF0D - .incbin "baserom.gba", 0x31EF0D, 0x00009E8 - -gUnk_0831F8F5:: @ 0831F8F5 - .incbin "baserom.gba", 0x31F8F5, 0x000069B - -gUnk_0831FF90:: @ 0831FF90 - .incbin "baserom.gba", 0x31FF90, 0x0000042 - -gUnk_0831FFD2:: @ 0831FFD2 - .incbin "baserom.gba", 0x31FFD2, 0x000000A - -gUnk_0831FFDC:: @ 0831FFDC - .incbin "baserom.gba", 0x31FFDC, 0x0000020 - -gUnk_0831FFFC:: @ 0831FFFC - .incbin "baserom.gba", 0x31FFFC, 0x0000004 - -gUnk_08320000:: @ 08320000 - .incbin "baserom.gba", 0x320000, 0x0000131 - -gUnk_08320131:: @ 08320131 - .incbin "baserom.gba", 0x320131, 0x00001CF - -gUnk_08320300:: @ 08320300 - .incbin "baserom.gba", 0x320300, 0x0000030 - -gUnk_08320330:: @ 08320330 - .incbin "baserom.gba", 0x320330, 0x00011AF - -gUnk_083214DF:: @ 083214DF - .incbin "baserom.gba", 0x3214DF, 0x0000921 - -gUnk_08321E00:: @ 08321E00 - .incbin "baserom.gba", 0x321E00, 0x00001EF - -gUnk_08321FEF:: @ 08321FEF - .incbin "baserom.gba", 0x321FEF, 0x0000114 - -gUnk_08322103:: @ 08322103 - .incbin "baserom.gba", 0x322103, 0x0000134 - -gUnk_08322237:: @ 08322237 - .incbin "baserom.gba", 0x322237, 0x0000062 - -gUnk_08322299:: @ 08322299 - .incbin "baserom.gba", 0x322299, 0x0000189 - -gUnk_08322422:: @ 08322422 - .incbin "baserom.gba", 0x322422, 0x0000034 - -gUnk_08322456:: @ 08322456 - .incbin "baserom.gba", 0x322456, 0x00001A2 - -gUnk_083225F8:: @ 083225F8 - .incbin "baserom.gba", 0x3225F8, 0x0000519 - -gUnk_08322B11:: @ 08322B11 - .incbin "baserom.gba", 0x322B11, 0x0000B0B - -gUnk_0832361C:: @ 0832361C - .incbin "baserom.gba", 0x32361C, 0x0000B23 - -gUnk_0832413F:: @ 0832413F - .incbin "baserom.gba", 0x32413F, 0x00008F8 - -gUnk_08324A37:: @ 08324A37 - .incbin "baserom.gba", 0x324A37, 0x00000AD - -gUnk_08324AE4:: @ 08324AE4 - .incbin "baserom.gba", 0x324AE4, 0x000018F - -gUnk_08324C73:: @ 08324C73 - .incbin "baserom.gba", 0x324C73, 0x00007FA - -gUnk_0832546D:: @ 0832546D - .incbin "baserom.gba", 0x32546D, 0x000041B - -gUnk_08325888:: @ 08325888 - .incbin "baserom.gba", 0x325888, 0x00010E9 - -gUnk_08326971:: @ 08326971 - .incbin "baserom.gba", 0x326971, 0x0002C90 - -gUnk_08329601:: @ 08329601 - .incbin "baserom.gba", 0x329601, 0x00053C2 - -gUnk_0832E9C3:: @ 0832E9C3 - .incbin "baserom.gba", 0x32E9C3, 0x0000540 - -gUnk_0832EF03:: @ 0832EF03 - .incbin "baserom.gba", 0x32EF03, 0x0000733 - -gUnk_0832F636:: @ 0832F636 - .incbin "baserom.gba", 0x32F636, 0x00005CA - -gUnk_0832FC00:: @ 0832FC00 - .incbin "baserom.gba", 0x32FC00, 0x00002EA - -gUnk_0832FEEA:: @ 0832FEEA - .incbin "baserom.gba", 0x32FEEA, 0x0000104 - -gUnk_0832FFEE:: @ 0832FFEE - .incbin "baserom.gba", 0x32FFEE, 0x0000055 - -gUnk_08330043:: @ 08330043 - .incbin "baserom.gba", 0x330043, 0x00000C4 - -gUnk_08330107:: @ 08330107 - .incbin "baserom.gba", 0x330107, 0x0000004 - -gUnk_0833010B:: @ 0833010B - .incbin "baserom.gba", 0x33010B, 0x0000119 - -gUnk_08330224:: @ 08330224 - .incbin "baserom.gba", 0x330224, 0x0000210 - -gUnk_08330434:: @ 08330434 - .incbin "baserom.gba", 0x330434, 0x00008B5 - -gUnk_08330CE9:: @ 08330CE9 - .incbin "baserom.gba", 0x330CE9, 0x0000213 - -gUnk_08330EFC:: @ 08330EFC - .incbin "baserom.gba", 0x330EFC, 0x0000007 - -gUnk_08330F03:: @ 08330F03 - .incbin "baserom.gba", 0x330F03, 0x0000C05 - -gUnk_08331B08:: @ 08331B08 - .incbin "baserom.gba", 0x331B08, 0x0000637 - -gUnk_0833213F:: @ 0833213F - .incbin "baserom.gba", 0x33213F, 0x0000049 - -gUnk_08332188:: @ 08332188 - .incbin "baserom.gba", 0x332188, 0x0000692 - -gUnk_0833281A:: @ 0833281A - .incbin "baserom.gba", 0x33281A, 0x0000913 - -gUnk_0833312D:: @ 0833312D - .incbin "baserom.gba", 0x33312D, 0x0000205 - -gUnk_08333332:: @ 08333332 - .incbin "baserom.gba", 0x333332, 0x0000001 - -gUnk_08333333:: @ 08333333 - .incbin "baserom.gba", 0x333333, 0x0000008 - -gUnk_0833333B:: @ 0833333B - .incbin "baserom.gba", 0x33333B, 0x00000F2 - -gUnk_0833342D:: @ 0833342D - .incbin "baserom.gba", 0x33342D, 0x00002F1 - -gUnk_0833371E:: @ 0833371E - .incbin "baserom.gba", 0x33371E, 0x00001F0 - -gUnk_0833390E:: @ 0833390E - .incbin "baserom.gba", 0x33390E, 0x0000122 - -gUnk_08333A30:: @ 08333A30 - .incbin "baserom.gba", 0x333A30, 0x00005E8 - -gUnk_08334018:: @ 08334018 - .incbin "baserom.gba", 0x334018, 0x00003E9 - -gUnk_08334401:: @ 08334401 - .incbin "baserom.gba", 0x334401, 0x000001F - -gUnk_08334420:: @ 08334420 - .incbin "baserom.gba", 0x334420, 0x00000BD - -gUnk_083344DD:: @ 083344DD - .incbin "baserom.gba", 0x3344DD, 0x0000558 - -gUnk_08334A35:: @ 08334A35 - .incbin "baserom.gba", 0x334A35, 0x0000646 - -gUnk_0833507B:: @ 0833507B - .incbin "baserom.gba", 0x33507B, 0x000054F - -gUnk_083355CA:: @ 083355CA - .incbin "baserom.gba", 0x3355CA, 0x0000CB3 - -gUnk_0833627D:: @ 0833627D - .incbin "baserom.gba", 0x33627D, 0x0000CF7 - -gUnk_08336F74:: @ 08336F74 - .incbin "baserom.gba", 0x336F74, 0x000008F - -gUnk_08337003:: @ 08337003 - .incbin "baserom.gba", 0x337003, 0x00002FD - -gUnk_08337300:: @ 08337300 - .incbin "baserom.gba", 0x337300, 0x0000C03 - -gUnk_08337F03:: @ 08337F03 - .incbin "baserom.gba", 0x337F03, 0x0000330 - -gUnk_08338233:: @ 08338233 - .incbin "baserom.gba", 0x338233, 0x0000650 - -gUnk_08338883:: @ 08338883 - .incbin "baserom.gba", 0x338883, 0x0001217 - -gUnk_08339A9A:: @ 08339A9A - .incbin "baserom.gba", 0x339A9A, 0x0000133 - -gUnk_08339BCD:: @ 08339BCD - .incbin "baserom.gba", 0x339BCD, 0x00009DC - -gUnk_0833A5A9:: @ 0833A5A9 - .incbin "baserom.gba", 0x33A5A9, 0x0000E5D - -gUnk_0833B406:: @ 0833B406 - .incbin "baserom.gba", 0x33B406, 0x0000706 - -gUnk_0833BB0C:: @ 0833BB0C - .incbin "baserom.gba", 0x33BB0C, 0x00033F6 - -gUnk_0833EF02:: @ 0833EF02 - .incbin "baserom.gba", 0x33EF02, 0x0000509 - -gUnk_0833F40B:: @ 0833F40B - .incbin "baserom.gba", 0x33F40B, 0x0000B2C - -gUnk_0833FF37:: @ 0833FF37 - .incbin "baserom.gba", 0x33FF37, 0x00003C9 - -gUnk_08340300:: @ 08340300 - .incbin "baserom.gba", 0x340300, 0x0000507 - -gUnk_08340807:: @ 08340807 - .incbin "baserom.gba", 0x340807, 0x00008F8 - -gUnk_083410FF:: @ 083410FF - .incbin "baserom.gba", 0x3410FF, 0x0000F48 - -gUnk_08342047:: @ 08342047 - .incbin "baserom.gba", 0x342047, 0x00003B2 - -gUnk_083423F9:: @ 083423F9 - .incbin "baserom.gba", 0x3423F9, 0x00000F1 - -gUnk_083424EA:: @ 083424EA - .incbin "baserom.gba", 0x3424EA, 0x0000D2E - -gUnk_08343218:: @ 08343218 - .incbin "baserom.gba", 0x343218, 0x00000F5 - -gUnk_0834330D:: @ 0834330D - .incbin "baserom.gba", 0x34330D, 0x0000024 - -gUnk_08343331:: @ 08343331 - .incbin "baserom.gba", 0x343331, 0x0000EE0 - -gUnk_08344211:: @ 08344211 - .incbin "baserom.gba", 0x344211, 0x0000233 - -gUnk_08344444:: @ 08344444 - .incbin "baserom.gba", 0x344444, 0x0000505 - -gUnk_08344949:: @ 08344949 - .incbin "baserom.gba", 0x344949, 0x000012E - -gUnk_08344A77:: @ 08344A77 - .incbin "baserom.gba", 0x344A77, 0x00008E5 - -gUnk_0834535C:: @ 0834535C - .incbin "baserom.gba", 0x34535C, 0x000031B - -gUnk_08345677:: @ 08345677 - .incbin "baserom.gba", 0x345677, 0x0000325 - -gUnk_0834599C:: @ 0834599C - .incbin "baserom.gba", 0x34599C, 0x0000575 - -gUnk_08345F11:: @ 08345F11 - .incbin "baserom.gba", 0x345F11, 0x0000617 - -gUnk_08346528:: @ 08346528 - .incbin "baserom.gba", 0x346528, 0x000012D - -gUnk_08346655:: @ 08346655 - .incbin "baserom.gba", 0x346655, 0x00007E0 - -gUnk_08346E35:: @ 08346E35 - .incbin "baserom.gba", 0x346E35, 0x000013B - -gUnk_08346F70:: @ 08346F70 - .incbin "baserom.gba", 0x346F70, 0x00007F7 - -gUnk_08347767:: @ 08347767 - .incbin "baserom.gba", 0x347767, 0x0000055 - -gUnk_083477BC:: @ 083477BC - .incbin "baserom.gba", 0x3477BC, 0x0003C5C - -gUnk_0834B418:: @ 0834B418 - .incbin "baserom.gba", 0x34B418, 0x0002D8B - -gUnk_0834E1A3:: @ 0834E1A3 - .incbin "baserom.gba", 0x34E1A3, 0x00006E6 - -gUnk_0834E889:: @ 0834E889 - .incbin "baserom.gba", 0x34E889, 0x0000A37 - -gUnk_0834F2C0:: @ 0834F2C0 - .incbin "baserom.gba", 0x34F2C0, 0x0000D50 - -gUnk_08350010:: @ 08350010 - .incbin "baserom.gba", 0x350010, 0x000003A - -gUnk_0835004A:: @ 0835004A - .incbin "baserom.gba", 0x35004A, 0x00002B6 - -gUnk_08350300:: @ 08350300 - .incbin "baserom.gba", 0x350300, 0x0000E3B - -gUnk_0835113B:: @ 0835113B - .incbin "baserom.gba", 0x35113B, 0x00008CB - -gUnk_08351A06:: @ 08351A06 - .incbin "baserom.gba", 0x351A06, 0x0001A93 - -gUnk_08353499:: @ 08353499 - .incbin "baserom.gba", 0x353499, 0x0000294 - -gUnk_0835372D:: @ 0835372D - .incbin "baserom.gba", 0x35372D, 0x00001E6 - -gUnk_08353913:: @ 08353913 - .incbin "baserom.gba", 0x353913, 0x0000705 - -gUnk_08354018:: @ 08354018 - .incbin "baserom.gba", 0x354018, 0x0000317 - -gUnk_0835432F:: @ 0835432F - .incbin "baserom.gba", 0x35432F, 0x000090A - -gUnk_08354C39:: @ 08354C39 - .incbin "baserom.gba", 0x354C39, 0x00007F6 - -gUnk_0835542F:: @ 0835542F - .incbin "baserom.gba", 0x35542F, 0x0000014 - -gUnk_08355443:: @ 08355443 - .incbin "baserom.gba", 0x355443, 0x0000234 - -gUnk_08355677:: @ 08355677 - .incbin "baserom.gba", 0x355677, 0x00009DE - -gUnk_08356055:: @ 08356055 - .incbin "baserom.gba", 0x356055, 0x0000526 - -gUnk_0835657B:: @ 0835657B - .incbin "baserom.gba", 0x35657B, 0x0001197 - -gUnk_08357712:: @ 08357712 - .incbin "baserom.gba", 0x357712, 0x0007B10 - -gUnk_0835F222:: @ 0835F222 - .incbin "baserom.gba", 0x35F222, 0x0000E9B - -gUnk_083600BD:: @ 083600BD - .incbin "baserom.gba", 0x3600BD, 0x0000410 - -gUnk_083604CD:: @ 083604CD - .incbin "baserom.gba", 0x3604CD, 0x0000053 - -gUnk_08360520:: @ 08360520 - .incbin "baserom.gba", 0x360520, 0x00003A0 - -gUnk_083608C0:: @ 083608C0 - .incbin "baserom.gba", 0x3608C0, 0x0001AF1 - -gUnk_083623B1:: @ 083623B1 - .incbin "baserom.gba", 0x3623B1, 0x0000639 - -gUnk_083629EA:: @ 083629EA - .incbin "baserom.gba", 0x3629EA, 0x0000128 - -gUnk_08362B12:: @ 08362B12 - .incbin "baserom.gba", 0x362B12, 0x0000001 - -gUnk_08362B13:: @ 08362B13 - .incbin "baserom.gba", 0x362B13, 0x00003F4 - -gUnk_08362F07:: @ 08362F07 - .incbin "baserom.gba", 0x362F07, 0x000140A - -gUnk_08364311:: @ 08364311 - .incbin "baserom.gba", 0x364311, 0x0000020 - -gUnk_08364331:: @ 08364331 - .incbin "baserom.gba", 0x364331, 0x000051C - -gUnk_0836484D:: @ 0836484D - .incbin "baserom.gba", 0x36484D, 0x00007E7 - -gUnk_08365034:: @ 08365034 - .incbin "baserom.gba", 0x365034, 0x00004EF - -gUnk_08365523:: @ 08365523 - .incbin "baserom.gba", 0x365523, 0x000013E - -gUnk_08365661:: @ 08365661 - .incbin "baserom.gba", 0x365661, 0x0000E16 - -gUnk_08366477:: @ 08366477 - .incbin "baserom.gba", 0x366477, 0x0006B6C - -gUnk_0836CFE3:: @ 0836CFE3 - .incbin "baserom.gba", 0x36CFE3, 0x0001E60 - -gUnk_0836EE43:: @ 0836EE43 - .incbin "baserom.gba", 0x36EE43, 0x00011CE - -gUnk_08370011:: @ 08370011 - .incbin "baserom.gba", 0x370011, 0x00005FF - -gUnk_08370610:: @ 08370610 - .incbin "baserom.gba", 0x370610, 0x0000701 - -gUnk_08370D11:: @ 08370D11 - .incbin "baserom.gba", 0x370D11, 0x0001404 - -gUnk_08372115:: @ 08372115 - .incbin "baserom.gba", 0x372115, 0x00019FB - -gUnk_08373B10:: @ 08373B10 - .incbin "baserom.gba", 0x373B10, 0x000131A - -gUnk_08374E2A:: @ 08374E2A - .incbin "baserom.gba", 0x374E2A, 0x00001D6 - -gUnk_08375000:: @ 08375000 - .incbin "baserom.gba", 0x375000, 0x0001841 - -gUnk_08376841:: @ 08376841 - .incbin "baserom.gba", 0x376841, 0x00066F7 - -gUnk_0837CF38:: @ 0837CF38 - .incbin "baserom.gba", 0x37CF38, 0x00012CE - -gUnk_0837E206:: @ 0837E206 - .incbin "baserom.gba", 0x37E206, 0x0001DFA - -gUnk_08380000:: @ 08380000 - .incbin "baserom.gba", 0x380000, 0x0000019 - -gUnk_08380019:: @ 08380019 - .incbin "baserom.gba", 0x380019, 0x0000023 - -gUnk_0838003C:: @ 0838003C - .incbin "baserom.gba", 0x38003C, 0x000001E - -gUnk_0838005A:: @ 0838005A - .incbin "baserom.gba", 0x38005A, 0x000001E - -gUnk_08380078:: @ 08380078 - .incbin "baserom.gba", 0x380078, 0x000007F - -gUnk_083800F7:: @ 083800F7 - .incbin "baserom.gba", 0x3800F7, 0x000030A - -gUnk_08380401:: @ 08380401 - .incbin "baserom.gba", 0x380401, 0x0000001 - -gUnk_08380402:: @ 08380402 - .incbin "baserom.gba", 0x380402, 0x0000057 - -gUnk_08380459:: @ 08380459 - .incbin "baserom.gba", 0x380459, 0x0000025 - -gUnk_0838047E:: @ 0838047E - .incbin "baserom.gba", 0x38047E, 0x0000009 - -gUnk_08380487:: @ 08380487 - .incbin "baserom.gba", 0x380487, 0x0000001 - -gUnk_08380488:: @ 08380488 - .incbin "baserom.gba", 0x380488, 0x0000380 - -gUnk_08380808:: @ 08380808 - .incbin "baserom.gba", 0x380808, 0x0000007 - -gUnk_0838080F:: @ 0838080F - .incbin "baserom.gba", 0x38080F, 0x0000152 - -gUnk_08380961:: @ 08380961 - .incbin "baserom.gba", 0x380961, 0x00005A8 - -gUnk_08380F09:: @ 08380F09 - .incbin "baserom.gba", 0x380F09, 0x00004DD - -gUnk_083813E6:: @ 083813E6 - .incbin "baserom.gba", 0x3813E6, 0x0001048 - -gUnk_0838242E:: @ 0838242E - .incbin "baserom.gba", 0x38242E, 0x00008E6 - -gUnk_08382D14:: @ 08382D14 - .incbin "baserom.gba", 0x382D14, 0x00008D5 - -gUnk_083835E9:: @ 083835E9 - .incbin "baserom.gba", 0x3835E9, 0x0000517 - -gUnk_08383B00:: @ 08383B00 - .incbin "baserom.gba", 0x383B00, 0x0000122 - -gUnk_08383C22:: @ 08383C22 - .incbin "baserom.gba", 0x383C22, 0x00004DE - -gUnk_08384100:: @ 08384100 - .incbin "baserom.gba", 0x384100, 0x0000341 - -gUnk_08384441:: @ 08384441 - .incbin "baserom.gba", 0x384441, 0x0000DC3 - -gUnk_08385204:: @ 08385204 - .incbin "baserom.gba", 0x385204, 0x0000B6B - -gUnk_08385D6F:: @ 08385D6F - .incbin "baserom.gba", 0x385D6F, 0x00006FB - -gUnk_0838646A:: @ 0838646A - .incbin "baserom.gba", 0x38646A, 0x000030C - -gUnk_08386776:: @ 08386776 - .incbin "baserom.gba", 0x386776, 0x0009889 - -gUnk_0838FFFF:: @ 0838FFFF - .incbin "baserom.gba", 0x38FFFF, 0x0000002 - -gUnk_08390001:: @ 08390001 - .incbin "baserom.gba", 0x390001, 0x00002DB - -gUnk_083902DC:: @ 083902DC - .incbin "baserom.gba", 0x3902DC, 0x00003A4 - -gUnk_08390680:: @ 08390680 - .incbin "baserom.gba", 0x390680, 0x0000180 - -gUnk_08390800:: @ 08390800 - .incbin "baserom.gba", 0x390800, 0x0000706 - -gUnk_08390F06:: @ 08390F06 - .incbin "baserom.gba", 0x390F06, 0x00014CE - -gUnk_083923D4:: @ 083923D4 - .incbin "baserom.gba", 0x3923D4, 0x000084A - -gUnk_08392C1E:: @ 08392C1E - .incbin "baserom.gba", 0x392C1E, 0x0001011 - -gUnk_08393C2F:: @ 08393C2F - .incbin "baserom.gba", 0x393C2F, 0x00004D1 - -gUnk_08394100:: @ 08394100 - .incbin "baserom.gba", 0x394100, 0x0001C00 - -gUnk_08395D00:: @ 08395D00 - .incbin "baserom.gba", 0x395D00, 0x000077B - -gUnk_0839647B:: @ 0839647B - .incbin "baserom.gba", 0x39647B, 0x0000303 - -gUnk_0839677E:: @ 0839677E - .incbin "baserom.gba", 0x39677E, 0x000870E - -gUnk_0839EE8C:: @ 0839EE8C - .incbin "baserom.gba", 0x39EE8C, 0x0000001 - -gUnk_0839EE8D:: @ 0839EE8D - .incbin "baserom.gba", 0x39EE8D, 0x000127A - -gUnk_083A0107:: @ 083A0107 - .incbin "baserom.gba", 0x3A0107, 0x0000669 - -gUnk_083A0770:: @ 083A0770 - .incbin "baserom.gba", 0x3A0770, 0x0003990 - -gUnk_083A4100:: @ 083A4100 - .incbin "baserom.gba", 0x3A4100, 0x0003D1D - -gUnk_083A7E1D:: @ 083A7E1D - .incbin "baserom.gba", 0x3A7E1D, 0x0002253 - -gUnk_083AA070:: @ 083AA070 - .incbin "baserom.gba", 0x3AA070, 0x0005F90 - -gUnk_083B0000:: @ 083B0000 - .incbin "baserom.gba", 0x3B0000, 0x0000001 - -gUnk_083B0001:: @ 083B0001 - .incbin "baserom.gba", 0x3B0001, 0x0000007 - -gUnk_083B0008:: @ 083B0008 - .incbin "baserom.gba", 0x3B0008, 0x0000178 - -gUnk_083B0180:: @ 083B0180 - .incbin "baserom.gba", 0x3B0180, 0x000069E - -gUnk_083B081E:: @ 083B081E - .incbin "baserom.gba", 0x3B081E, 0x000001C - -gUnk_083B083A:: @ 083B083A - .incbin "baserom.gba", 0x3B083A, 0x00006CC - -gUnk_083B0F06:: @ 083B0F06 - .incbin "baserom.gba", 0x3B0F06, 0x00012E0 - -gUnk_083B21E6:: @ 083B21E6 - .incbin "baserom.gba", 0x3B21E6, 0x0000E3E - -gUnk_083B3024:: @ 083B3024 - .incbin "baserom.gba", 0x3B3024, 0x00001DD - -gUnk_083B3201:: @ 083B3201 - .incbin "baserom.gba", 0x3B3201, 0x000061F - -gUnk_083B3820:: @ 083B3820 - .incbin "baserom.gba", 0x3B3820, 0x00008E0 - -gUnk_083B4100:: @ 083B4100 - .incbin "baserom.gba", 0x3B4100, 0x000024B - -gUnk_083B434B:: @ 083B434B - .incbin "baserom.gba", 0x3B434B, 0x0000074 - -gUnk_083B43BF:: @ 083B43BF - .incbin "baserom.gba", 0x3B43BF, 0x00024B8 - -gUnk_083B6877:: @ 083B6877 - .incbin "baserom.gba", 0x3B6877, 0x0009693 - -gUnk_083BFF0A:: @ 083BFF0A - .incbin "baserom.gba", 0x3BFF0A, 0x00000F6 - -gUnk_083C0000:: @ 083C0000 - .incbin "baserom.gba", 0x3C0000, 0x0000001 - -gUnk_083C0001:: @ 083C0001 - .incbin "baserom.gba", 0x3C0001, 0x000000B - -gUnk_083C000C:: @ 083C000C - .incbin "baserom.gba", 0x3C000C, 0x00013F4 - -gUnk_083C1400:: @ 083C1400 - .incbin "baserom.gba", 0x3C1400, 0x0000841 - -gUnk_083C1C41:: @ 083C1C41 - .incbin "baserom.gba", 0x3C1C41, 0x00009A8 - -gUnk_083C25E9:: @ 083C25E9 - .incbin "baserom.gba", 0x3C25E9, 0x00005D9 - -gUnk_083C2BC2:: @ 083C2BC2 - .incbin "baserom.gba", 0x3C2BC2, 0x0000620 - -gUnk_083C31E2:: @ 083C31E2 - .incbin "baserom.gba", 0x3C31E2, 0x0000968 - -gUnk_083C3B4A:: @ 083C3B4A - .incbin "baserom.gba", 0x3C3B4A, 0x00004B6 - -gUnk_083C4000:: @ 083C4000 - .incbin "baserom.gba", 0x3C4000, 0x0002236 - -gUnk_083C6236:: @ 083C6236 - .incbin "baserom.gba", 0x3C6236, 0x0000D44 - -gUnk_083C6F7A:: @ 083C6F7A - .incbin "baserom.gba", 0x3C6F7A, 0x00030A2 - -gUnk_083CA01C:: @ 083CA01C - .incbin "baserom.gba", 0x3CA01C, 0x00040BD - -gUnk_083CE0D9:: @ 083CE0D9 - .incbin "baserom.gba", 0x3CE0D9, 0x0001F27 - -gUnk_083D0000:: @ 083D0000 - .incbin "baserom.gba", 0x3D0000, 0x0000055 - -gUnk_083D0055:: @ 083D0055 - .incbin "baserom.gba", 0x3D0055, 0x000042B - -gUnk_083D0480:: @ 083D0480 - .incbin "baserom.gba", 0x3D0480, 0x00003BC - -gUnk_083D083C:: @ 083D083C - .incbin "baserom.gba", 0x3D083C, 0x00037C4 - -gUnk_083D4000:: @ 083D4000 - .incbin "baserom.gba", 0x3D4000, 0x000005C - -gUnk_083D405C:: @ 083D405C - .incbin "baserom.gba", 0x3D405C, 0x0001B06 - -gUnk_083D5B62:: @ 083D5B62 - .incbin "baserom.gba", 0x3D5B62, 0x000249E - -gUnk_083D8000:: @ 083D8000 - .incbin "baserom.gba", 0x3D8000, 0x0008000 - -gUnk_083E0000:: @ 083E0000 - .incbin "baserom.gba", 0x3E0000, 0x0000001 - -gUnk_083E0001:: @ 083E0001 - .incbin "baserom.gba", 0x3E0001, 0x0000F05 - -gUnk_083E0F06:: @ 083E0F06 - .incbin "baserom.gba", 0x3E0F06, 0x0000020 - -gUnk_083E0F26:: @ 083E0F26 - .incbin "baserom.gba", 0x3E0F26, 0x00019E6 - -gUnk_083E290C:: @ 083E290C - .incbin "baserom.gba", 0x3E290C, 0x00016F2 - -gUnk_083E3FFE:: @ 083E3FFE - .incbin "baserom.gba", 0x3E3FFE, 0x000006C - -gUnk_083E406A:: @ 083E406A - .incbin "baserom.gba", 0x3E406A, 0x000006A - -gUnk_083E40D4:: @ 083E40D4 - .incbin "baserom.gba", 0x3E40D4, 0x000133D - -gUnk_083E5411:: @ 083E5411 - .incbin "baserom.gba", 0x3E5411, 0x0000532 - -gUnk_083E5943:: @ 083E5943 - .incbin "baserom.gba", 0x3E5943, 0x00002E1 - -gUnk_083E5C24:: @ 083E5C24 - .incbin "baserom.gba", 0x3E5C24, 0x00029EC - -gUnk_083E8610:: @ 083E8610 - .incbin "baserom.gba", 0x3E8610, 0x00079F0 - -gUnk_083F0000:: @ 083F0000 - .incbin "baserom.gba", 0x3F0000, 0x0000001 - -gUnk_083F0001:: @ 083F0001 - .incbin "baserom.gba", 0x3F0001, 0x000003F - -gUnk_083F0040:: @ 083F0040 - .incbin "baserom.gba", 0x3F0040, 0x000037F - -gUnk_083F03BF:: @ 083F03BF - .incbin "baserom.gba", 0x3F03BF, 0x0002450 - -gUnk_083F280F:: @ 083F280F - .incbin "baserom.gba", 0x3F280F, 0x0000BC3 - -gUnk_083F33D2:: @ 083F33D2 - .incbin "baserom.gba", 0x3F33D2, 0x0000F67 - -gUnk_083F4339:: @ 083F4339 - .incbin "baserom.gba", 0x3F4339, 0x00000CE - -gUnk_083F4407:: @ 083F4407 - .incbin "baserom.gba", 0x3F4407, 0x0000BC8 - -gUnk_083F4FCF:: @ 083F4FCF - .incbin "baserom.gba", 0x3F4FCF, 0x0000035 - -gUnk_083F5004:: @ 083F5004 - .incbin "baserom.gba", 0x3F5004, 0x0000335 - -gUnk_083F5339:: @ 083F5339 - .incbin "baserom.gba", 0x3F5339, 0x000000A - -gUnk_083F5343:: @ 083F5343 - .incbin "baserom.gba", 0x3F5343, 0x0000D77 - -gUnk_083F60BA:: @ 083F60BA - .incbin "baserom.gba", 0x3F60BA, 0x0000051 - -gUnk_083F610B:: @ 083F610B - .incbin "baserom.gba", 0x3F610B, 0x0000057 - -gUnk_083F6162:: @ 083F6162 - .incbin "baserom.gba", 0x3F6162, 0x00006D5 - -gUnk_083F6837:: @ 083F6837 - .incbin "baserom.gba", 0x3F6837, 0x0000907 - -gUnk_083F713E:: @ 083F713E - .incbin "baserom.gba", 0x3F713E, 0x000033B - -gUnk_083F7479:: @ 083F7479 - .incbin "baserom.gba", 0x3F7479, 0x0000B8A - -gUnk_083F8003:: @ 083F8003 - .incbin "baserom.gba", 0x3F8003, 0x0001086 - -gUnk_083F9089:: @ 083F9089 - .incbin "baserom.gba", 0x3F9089, 0x0003334 - -gUnk_083FC3BD:: @ 083FC3BD - .incbin "baserom.gba", 0x3FC3BD, 0x0000D3C - -gUnk_083FD0F9:: @ 083FD0F9 - .incbin "baserom.gba", 0x3FD0F9, 0x0001DF3 - -gUnk_083FEEEC:: @ 083FEEEC - .incbin "baserom.gba", 0x3FEEEC, 0x0001114 - -gUnk_08400000:: @ 08400000 - .incbin "baserom.gba", 0x400000, 0x0000001 - -gUnk_08400001:: @ 08400001 - .incbin "baserom.gba", 0x400001, 0x0000003 - -gUnk_08400004:: @ 08400004 - .incbin "baserom.gba", 0x400004, 0x0000003 - -gUnk_08400007:: @ 08400007 - .incbin "baserom.gba", 0x400007, 0x0000003 - -gUnk_0840000A:: @ 0840000A - .incbin "baserom.gba", 0x40000A, 0x000001D - -gUnk_08400027:: @ 08400027 - .incbin "baserom.gba", 0x400027, 0x0000006 - -gUnk_0840002D:: @ 0840002D - .incbin "baserom.gba", 0x40002D, 0x0000050 - -gUnk_0840007D:: @ 0840007D - .incbin "baserom.gba", 0x40007D, 0x0000068 - -gUnk_084000E5:: @ 084000E5 - .incbin "baserom.gba", 0x4000E5, 0x0000001 - -gUnk_084000E6:: @ 084000E6 - .incbin "baserom.gba", 0x4000E6, 0x0000001 - -gUnk_084000E7:: @ 084000E7 - .incbin "baserom.gba", 0x4000E7, 0x0000009 - -gUnk_084000F0:: @ 084000F0 - .incbin "baserom.gba", 0x4000F0, 0x0000004 - -gUnk_084000F4:: @ 084000F4 - .incbin "baserom.gba", 0x4000F4, 0x0000002 - -gUnk_084000F6:: @ 084000F6 - .incbin "baserom.gba", 0x4000F6, 0x0000009 - -gUnk_084000FF:: @ 084000FF - .incbin "baserom.gba", 0x4000FF, 0x0000001 - -gUnk_08400100:: @ 08400100 - .incbin "baserom.gba", 0x400100, 0x0000030 - -gUnk_08400130:: @ 08400130 - .incbin "baserom.gba", 0x400130, 0x0000078 - -gUnk_084001A8:: @ 084001A8 - .incbin "baserom.gba", 0x4001A8, 0x000001C - -gUnk_084001C4:: @ 084001C4 - .incbin "baserom.gba", 0x4001C4, 0x0000026 - -gUnk_084001EA:: @ 084001EA - .incbin "baserom.gba", 0x4001EA, 0x000000E - -gUnk_084001F8:: @ 084001F8 - .incbin "baserom.gba", 0x4001F8, 0x0000219 - -gUnk_08400411:: @ 08400411 - .incbin "baserom.gba", 0x400411, 0x0000184 - -gUnk_08400595:: @ 08400595 - .incbin "baserom.gba", 0x400595, 0x000005B - -gUnk_084005F0:: @ 084005F0 - .incbin "baserom.gba", 0x4005F0, 0x0000015 - -gUnk_08400605:: @ 08400605 - .incbin "baserom.gba", 0x400605, 0x000000B - -gUnk_08400610:: @ 08400610 - .incbin "baserom.gba", 0x400610, 0x000002E - -gUnk_0840063E:: @ 0840063E - .incbin "baserom.gba", 0x40063E, 0x00000C2 - -gUnk_08400700:: @ 08400700 - .incbin "baserom.gba", 0x400700, 0x0000010 - -gUnk_08400710:: @ 08400710 - .incbin "baserom.gba", 0x400710, 0x0000020 - -gUnk_08400730:: @ 08400730 - .incbin "baserom.gba", 0x400730, 0x0000010 - -gUnk_08400740:: @ 08400740 - .incbin "baserom.gba", 0x400740, 0x000000A - -gUnk_0840074A:: @ 0840074A - .incbin "baserom.gba", 0x40074A, 0x0000006 - -gUnk_08400750:: @ 08400750 - .incbin "baserom.gba", 0x400750, 0x0000010 - -gUnk_08400760:: @ 08400760 - .incbin "baserom.gba", 0x400760, 0x0000080 - -gUnk_084007E0:: @ 084007E0 - .incbin "baserom.gba", 0x4007E0, 0x0000030 - -gUnk_08400810:: @ 08400810 - .incbin "baserom.gba", 0x400810, 0x0000014 - -gUnk_08400824:: @ 08400824 - .incbin "baserom.gba", 0x400824, 0x0000009 - -gUnk_0840082D:: @ 0840082D - .incbin "baserom.gba", 0x40082D, 0x0000009 - -gUnk_08400836:: @ 08400836 - .incbin "baserom.gba", 0x400836, 0x000000A - -gUnk_08400840:: @ 08400840 - .incbin "baserom.gba", 0x400840, 0x000005F - -gUnk_0840089F:: @ 0840089F - .incbin "baserom.gba", 0x40089F, 0x0000451 - -gUnk_08400CF0:: @ 08400CF0 - .incbin "baserom.gba", 0x400CF0, 0x0000210 - -gUnk_08400F00:: @ 08400F00 - .incbin "baserom.gba", 0x400F00, 0x0000029 - -gUnk_08400F29:: @ 08400F29 - .incbin "baserom.gba", 0x400F29, 0x0000013 - -gUnk_08400F3C:: @ 08400F3C - .incbin "baserom.gba", 0x400F3C, 0x0000008 - -gUnk_08400F44:: @ 08400F44 - .incbin "baserom.gba", 0x400F44, 0x0000195 - -gUnk_084010D9:: @ 084010D9 - .incbin "baserom.gba", 0x4010D9, 0x00001A8 - -gUnk_08401281:: @ 08401281 - .incbin "baserom.gba", 0x401281, 0x00000C0 - -gUnk_08401341:: @ 08401341 - .incbin "baserom.gba", 0x401341, 0x00007B7 - -gUnk_08401AF8:: @ 08401AF8 - .incbin "baserom.gba", 0x401AF8, 0x00004C8 - -gUnk_08401FC0:: @ 08401FC0 - .incbin "baserom.gba", 0x401FC0, 0x0000268 - -gUnk_08402228:: @ 08402228 - .incbin "baserom.gba", 0x402228, 0x0000518 - -gUnk_08402740:: @ 08402740 - .incbin "baserom.gba", 0x402740, 0x0000501 - -gUnk_08402C41:: @ 08402C41 - .incbin "baserom.gba", 0x402C41, 0x00002C7 - -gUnk_08402F08:: @ 08402F08 - .incbin "baserom.gba", 0x402F08, 0x00003F7 - -gUnk_084032FF:: @ 084032FF - .incbin "baserom.gba", 0x4032FF, 0x0000011 - -gUnk_08403310:: @ 08403310 - .incbin "baserom.gba", 0x403310, 0x0000553 - -gUnk_08403863:: @ 08403863 - .incbin "baserom.gba", 0x403863, 0x00007A0 - -gUnk_08404003:: @ 08404003 - .incbin "baserom.gba", 0x404003, 0x000001D - -gUnk_08404020:: @ 08404020 - .incbin "baserom.gba", 0x404020, 0x00001F0 - -gUnk_08404210:: @ 08404210 - .incbin "baserom.gba", 0x404210, 0x0000454 - -gUnk_08404664:: @ 08404664 - .incbin "baserom.gba", 0x404664, 0x000039C - -gUnk_08404A00:: @ 08404A00 - .incbin "baserom.gba", 0x404A00, 0x0000568 - -gUnk_08404F68:: @ 08404F68 - .incbin "baserom.gba", 0x404F68, 0x0000298 - -gUnk_08405200:: @ 08405200 - .incbin "baserom.gba", 0x405200, 0x0000227 - -gUnk_08405427:: @ 08405427 - .incbin "baserom.gba", 0x405427, 0x000061A - -gUnk_08405A41:: @ 08405A41 - .incbin "baserom.gba", 0x405A41, 0x0000614 - -gUnk_08406055:: @ 08406055 - .incbin "baserom.gba", 0x406055, 0x00000B3 - -gUnk_08406108:: @ 08406108 - .incbin "baserom.gba", 0x406108, 0x000021C - -gUnk_08406324:: @ 08406324 - .incbin "baserom.gba", 0x406324, 0x0000854 - -gUnk_08406B78:: @ 08406B78 - .incbin "baserom.gba", 0x406B78, 0x0000107 - -gUnk_08406C7F:: @ 08406C7F - .incbin "baserom.gba", 0x406C7F, 0x0000389 - -gUnk_08407008:: @ 08407008 - .incbin "baserom.gba", 0x407008, 0x0000C52 - -gUnk_08407C5A:: @ 08407C5A - .incbin "baserom.gba", 0x407C5A, 0x00002AD - -gUnk_08407F07:: @ 08407F07 - .incbin "baserom.gba", 0x407F07, 0x00003CA - -gUnk_084082D1:: @ 084082D1 - .incbin "baserom.gba", 0x4082D1, 0x000003D - -gUnk_0840830E:: @ 0840830E - .incbin "baserom.gba", 0x40830E, 0x000028A - -gUnk_08408598:: @ 08408598 - .incbin "baserom.gba", 0x408598, 0x00001A8 - -gUnk_08408740:: @ 08408740 - .incbin "baserom.gba", 0x408740, 0x00000C8 - -gUnk_08408808:: @ 08408808 - .incbin "baserom.gba", 0x408808, 0x00000FF - -gUnk_08408907:: @ 08408907 - .incbin "baserom.gba", 0x408907, 0x000018F - -gUnk_08408A96:: @ 08408A96 - .incbin "baserom.gba", 0x408A96, 0x00001E7 - -gUnk_08408C7D:: @ 08408C7D - .incbin "baserom.gba", 0x408C7D, 0x000024A - -gUnk_08408EC7:: @ 08408EC7 - .incbin "baserom.gba", 0x408EC7, 0x000007C - -gUnk_08408F43:: @ 08408F43 - .incbin "baserom.gba", 0x408F43, 0x00000C7 - -gUnk_0840900A:: @ 0840900A - .incbin "baserom.gba", 0x40900A, 0x0000155 - -gUnk_0840915F:: @ 0840915F - .incbin "baserom.gba", 0x40915F, 0x000011B - -gUnk_0840927A:: @ 0840927A - .incbin "baserom.gba", 0x40927A, 0x00002A3 - -gUnk_0840951D:: @ 0840951D - .incbin "baserom.gba", 0x40951D, 0x00004F4 - -gUnk_08409A11:: @ 08409A11 - .incbin "baserom.gba", 0x409A11, 0x0000739 - -gUnk_0840A14A:: @ 0840A14A - .incbin "baserom.gba", 0x40A14A, 0x000044D - -gUnk_0840A597:: @ 0840A597 - .incbin "baserom.gba", 0x40A597, 0x000036A - -gUnk_0840A901:: @ 0840A901 - .incbin "baserom.gba", 0x40A901, 0x0000189 - -gUnk_0840AA8A:: @ 0840AA8A - .incbin "baserom.gba", 0x40AA8A, 0x000043B - -gUnk_0840AEC5:: @ 0840AEC5 - .incbin "baserom.gba", 0x40AEC5, 0x0000074 - -gUnk_0840AF39:: @ 0840AF39 - .incbin "baserom.gba", 0x40AF39, 0x0000067 - -gUnk_0840AFA0:: @ 0840AFA0 - .incbin "baserom.gba", 0x40AFA0, 0x00000DF - -gUnk_0840B07F:: @ 0840B07F - .incbin "baserom.gba", 0x40B07F, 0x0000289 - -gUnk_0840B308:: @ 0840B308 - .incbin "baserom.gba", 0x40B308, 0x00002C7 - -gUnk_0840B5CF:: @ 0840B5CF - .incbin "baserom.gba", 0x40B5CF, 0x000007D - -gUnk_0840B64C:: @ 0840B64C - .incbin "baserom.gba", 0x40B64C, 0x0000098 - -gUnk_0840B6E4:: @ 0840B6E4 - .incbin "baserom.gba", 0x40B6E4, 0x00000D9 - -gUnk_0840B7BD:: @ 0840B7BD - .incbin "baserom.gba", 0x40B7BD, 0x0000243 - -gUnk_0840BA00:: @ 0840BA00 - .incbin "baserom.gba", 0x40BA00, 0x000073D - -gUnk_0840C13D:: @ 0840C13D - .incbin "baserom.gba", 0x40C13D, 0x0000446 - -gUnk_0840C583:: @ 0840C583 - .incbin "baserom.gba", 0x40C583, 0x0000042 - -gUnk_0840C5C5:: @ 0840C5C5 - .incbin "baserom.gba", 0x40C5C5, 0x000016E - -gUnk_0840C733:: @ 0840C733 - .incbin "baserom.gba", 0x40C733, 0x0000395 - -gUnk_0840CAC8:: @ 0840CAC8 - .incbin "baserom.gba", 0x40CAC8, 0x00000F3 - -gUnk_0840CBBB:: @ 0840CBBB - .incbin "baserom.gba", 0x40CBBB, 0x0000098 - -gUnk_0840CC53:: @ 0840CC53 - .incbin "baserom.gba", 0x40CC53, 0x000000F - -gUnk_0840CC62:: @ 0840CC62 - .incbin "baserom.gba", 0x40CC62, 0x0000027 - -gUnk_0840CC89:: @ 0840CC89 - .incbin "baserom.gba", 0x40CC89, 0x00002DD - -gUnk_0840CF66:: @ 0840CF66 - .incbin "baserom.gba", 0x40CF66, 0x0000136 - -gUnk_0840D09C:: @ 0840D09C - .incbin "baserom.gba", 0x40D09C, 0x00000C1 - -gUnk_0840D15D:: @ 0840D15D - .incbin "baserom.gba", 0x40D15D, 0x00001A4 - -gUnk_0840D301:: @ 0840D301 - .incbin "baserom.gba", 0x40D301, 0x000003E - -gUnk_0840D33F:: @ 0840D33F - .incbin "baserom.gba", 0x40D33F, 0x00003DA - -gUnk_0840D719:: @ 0840D719 - .incbin "baserom.gba", 0x40D719, 0x00003A3 - -gUnk_0840DABC:: @ 0840DABC - .incbin "baserom.gba", 0x40DABC, 0x000004C - -gUnk_0840DB08:: @ 0840DB08 - .incbin "baserom.gba", 0x40DB08, 0x000006F - -gUnk_0840DB77:: @ 0840DB77 - .incbin "baserom.gba", 0x40DB77, 0x0000002 - -gUnk_0840DB79:: @ 0840DB79 - .incbin "baserom.gba", 0x40DB79, 0x00000E6 - -gUnk_0840DC5F:: @ 0840DC5F - .incbin "baserom.gba", 0x40DC5F, 0x000001A - -gUnk_0840DC79:: @ 0840DC79 - .incbin "baserom.gba", 0x40DC79, 0x00000DE - -gUnk_0840DD57:: @ 0840DD57 - .incbin "baserom.gba", 0x40DD57, 0x00001F9 - -gUnk_0840DF50:: @ 0840DF50 - .incbin "baserom.gba", 0x40DF50, 0x0000214 - -gUnk_0840E164:: @ 0840E164 - .incbin "baserom.gba", 0x40E164, 0x0000290 - -gUnk_0840E3F4:: @ 0840E3F4 - .incbin "baserom.gba", 0x40E3F4, 0x0000204 - -gUnk_0840E5F8:: @ 0840E5F8 - .incbin "baserom.gba", 0x40E5F8, 0x0000098 - -gUnk_0840E690:: @ 0840E690 - .incbin "baserom.gba", 0x40E690, 0x000016F - -gUnk_0840E7FF:: @ 0840E7FF - .incbin "baserom.gba", 0x40E7FF, 0x00000CE - -gUnk_0840E8CD:: @ 0840E8CD - .incbin "baserom.gba", 0x40E8CD, 0x000002E - -gUnk_0840E8FB:: @ 0840E8FB - .incbin "baserom.gba", 0x40E8FB, 0x0000301 - -gUnk_0840EBFC:: @ 0840EBFC - .incbin "baserom.gba", 0x40EBFC, 0x00000FA - -gUnk_0840ECF6:: @ 0840ECF6 - .incbin "baserom.gba", 0x40ECF6, 0x0000006 - -gUnk_0840ECFC:: @ 0840ECFC - .incbin "baserom.gba", 0x40ECFC, 0x00000FC - -gUnk_0840EDF8:: @ 0840EDF8 - .incbin "baserom.gba", 0x40EDF8, 0x00000FF - -gUnk_0840EEF7:: @ 0840EEF7 - .incbin "baserom.gba", 0x40EEF7, 0x0000011 - -gUnk_0840EF08:: @ 0840EF08 - .incbin "baserom.gba", 0x40EF08, 0x00001D8 - -gUnk_0840F0E0:: @ 0840F0E0 - .incbin "baserom.gba", 0x40F0E0, 0x0000018 - -gUnk_0840F0F8:: @ 0840F0F8 - .incbin "baserom.gba", 0x40F0F8, 0x000000F - -gUnk_0840F107:: @ 0840F107 - .incbin "baserom.gba", 0x40F107, 0x00001E5 - -gUnk_0840F2EC:: @ 0840F2EC - .incbin "baserom.gba", 0x40F2EC, 0x0000264 - -gUnk_0840F550:: @ 0840F550 - .incbin "baserom.gba", 0x40F550, 0x00000A8 - -gUnk_0840F5F8:: @ 0840F5F8 - .incbin "baserom.gba", 0x40F5F8, 0x000013D - -gUnk_0840F735:: @ 0840F735 - .incbin "baserom.gba", 0x40F735, 0x00000C3 - -gUnk_0840F7F8:: @ 0840F7F8 - .incbin "baserom.gba", 0x40F7F8, 0x00002FC - -gUnk_0840FAF4:: @ 0840FAF4 - .incbin "baserom.gba", 0x40FAF4, 0x0000004 - -gUnk_0840FAF8:: @ 0840FAF8 - .incbin "baserom.gba", 0x40FAF8, 0x00000FE - -gUnk_0840FBF6:: @ 0840FBF6 - .incbin "baserom.gba", 0x40FBF6, 0x0000002 - -gUnk_0840FBF8:: @ 0840FBF8 - .incbin "baserom.gba", 0x40FBF8, 0x0000001 - -gUnk_0840FBF9:: @ 0840FBF9 - .incbin "baserom.gba", 0x40FBF9, 0x0000001 - -gUnk_0840FBFA:: @ 0840FBFA - .incbin "baserom.gba", 0x40FBFA, 0x00000FE - -gUnk_0840FCF8:: @ 0840FCF8 - .incbin "baserom.gba", 0x40FCF8, 0x0000002 - -gUnk_0840FCFA:: @ 0840FCFA - .incbin "baserom.gba", 0x40FCFA, 0x00000FE - -gUnk_0840FDF8:: @ 0840FDF8 - .incbin "baserom.gba", 0x40FDF8, 0x000000F - -gUnk_0840FE07:: @ 0840FE07 - .incbin "baserom.gba", 0x40FE07, 0x00001E2 - -gUnk_0840FFE9:: @ 0840FFE9 - .incbin "baserom.gba", 0x40FFE9, 0x000011E - -gUnk_08410107:: @ 08410107 - .incbin "baserom.gba", 0x410107, 0x000090A - -gUnk_08410A11:: @ 08410A11 - .incbin "baserom.gba", 0x410A11, 0x0000808 - -gUnk_08411219:: @ 08411219 - .incbin "baserom.gba", 0x411219, 0x00001EB - -gUnk_08411404:: @ 08411404 - .incbin "baserom.gba", 0x411404, 0x0001D1C - -gUnk_08413120:: @ 08413120 - .incbin "baserom.gba", 0x413120, 0x0000103 - -gUnk_08413223:: @ 08413223 - .incbin "baserom.gba", 0x413223, 0x000220F - -gUnk_08415432:: @ 08415432 - .incbin "baserom.gba", 0x415432, 0x00003CA - -gUnk_084157FC:: @ 084157FC - .incbin "baserom.gba", 0x4157FC, 0x0001676 - -gUnk_08416E72:: @ 08416E72 - .incbin "baserom.gba", 0x416E72, 0x00011CE - -gUnk_08418040:: @ 08418040 - .incbin "baserom.gba", 0x418040, 0x0000BD0 - -gUnk_08418C10:: @ 08418C10 - .incbin "baserom.gba", 0x418C10, 0x00032F8 - -gUnk_0841BF08:: @ 0841BF08 - .incbin "baserom.gba", 0x41BF08, 0x0002DD7 - -gUnk_0841ECDF:: @ 0841ECDF - .incbin "baserom.gba", 0x41ECDF, 0x0000319 - -gUnk_0841EFF8:: @ 0841EFF8 - .incbin "baserom.gba", 0x41EFF8, 0x00003F8 - -gUnk_0841F3F0:: @ 0841F3F0 - .incbin "baserom.gba", 0x41F3F0, 0x000000A - -gUnk_0841F3FA:: @ 0841F3FA - .incbin "baserom.gba", 0x41F3FA, 0x00001F6 - -gUnk_0841F5F0:: @ 0841F5F0 - .incbin "baserom.gba", 0x41F5F0, 0x00001FE - -gUnk_0841F7EE:: @ 0841F7EE - .incbin "baserom.gba", 0x41F7EE, 0x000010A - -gUnk_0841F8F8:: @ 0841F8F8 - .incbin "baserom.gba", 0x41F8F8, 0x0000100 - -gUnk_0841F9F8:: @ 0841F9F8 - .incbin "baserom.gba", 0x41F9F8, 0x0000100 - -gUnk_0841FAF8:: @ 0841FAF8 - .incbin "baserom.gba", 0x41FAF8, 0x0000508 - -gUnk_08420000:: @ 08420000 - .incbin "baserom.gba", 0x420000, 0x0000092 - -gUnk_08420092:: @ 08420092 - .incbin "baserom.gba", 0x420092, 0x00003A5 - -gUnk_08420437:: @ 08420437 - .incbin "baserom.gba", 0x420437, 0x0000005 - -gUnk_0842043C:: @ 0842043C - .incbin "baserom.gba", 0x42043C, 0x0000C91 - -gUnk_084210CD:: @ 084210CD - .incbin "baserom.gba", 0x4210CD, 0x0000058 - -gUnk_08421125:: @ 08421125 - .incbin "baserom.gba", 0x421125, 0x0001004 - -gUnk_08422129:: @ 08422129 - .incbin "baserom.gba", 0x422129, 0x0000049 - -gUnk_08422172:: @ 08422172 - .incbin "baserom.gba", 0x422172, 0x00007C4 - -gUnk_08422936:: @ 08422936 - .incbin "baserom.gba", 0x422936, 0x000039B - -gUnk_08422CD1:: @ 08422CD1 - .incbin "baserom.gba", 0x422CD1, 0x0001637 - -gUnk_08424308:: @ 08424308 - .incbin "baserom.gba", 0x424308, 0x0003B7D - -gUnk_08427E85:: @ 08427E85 - .incbin "baserom.gba", 0x427E85, 0x000017A - -gUnk_08427FFF:: @ 08427FFF - .incbin "baserom.gba", 0x427FFF, 0x0002A70 - -gUnk_0842AA6F:: @ 0842AA6F - .incbin "baserom.gba", 0x42AA6F, 0x0001AD6 - -gUnk_0842C545:: @ 0842C545 - .incbin "baserom.gba", 0x42C545, 0x0000D8E - -gUnk_0842D2D3:: @ 0842D2D3 - .incbin "baserom.gba", 0x42D2D3, 0x0002730 - -gUnk_0842FA03:: @ 0842FA03 - .incbin "baserom.gba", 0x42FA03, 0x00005FD - -gUnk_08430000:: @ 08430000 - .incbin "baserom.gba", 0x430000, 0x000009A - -gUnk_0843009A:: @ 0843009A - .incbin "baserom.gba", 0x43009A, 0x0000052 - -gUnk_084300EC:: @ 084300EC - .incbin "baserom.gba", 0x4300EC, 0x0000044 - -gUnk_08430130:: @ 08430130 - .incbin "baserom.gba", 0x430130, 0x00001D0 - -gUnk_08430300:: @ 08430300 - .incbin "baserom.gba", 0x430300, 0x0000142 - -gUnk_08430442:: @ 08430442 - .incbin "baserom.gba", 0x430442, 0x0000A62 - -gUnk_08430EA4:: @ 08430EA4 - .incbin "baserom.gba", 0x430EA4, 0x00001F1 - -gUnk_08431095:: @ 08431095 - .incbin "baserom.gba", 0x431095, 0x000016E - -gUnk_08431203:: @ 08431203 - .incbin "baserom.gba", 0x431203, 0x0000020 - -gUnk_08431223:: @ 08431223 - .incbin "baserom.gba", 0x431223, 0x000034D - -gUnk_08431570:: @ 08431570 - .incbin "baserom.gba", 0x431570, 0x0000490 - -gUnk_08431A00:: @ 08431A00 - .incbin "baserom.gba", 0x431A00, 0x00009E2 - -gUnk_084323E2:: @ 084323E2 - .incbin "baserom.gba", 0x4323E2, 0x0000E16 - -gUnk_084331F8:: @ 084331F8 - .incbin "baserom.gba", 0x4331F8, 0x000013B - -gUnk_08433333:: @ 08433333 - .incbin "baserom.gba", 0x433333, 0x0000001 - -gUnk_08433334:: @ 08433334 - .incbin "baserom.gba", 0x433334, 0x0000001 - -gUnk_08433335:: @ 08433335 - .incbin "baserom.gba", 0x433335, 0x0000FBC - -gUnk_084342F1:: @ 084342F1 - .incbin "baserom.gba", 0x4342F1, 0x0000663 - -gUnk_08434954:: @ 08434954 - .incbin "baserom.gba", 0x434954, 0x0000EAB - -gUnk_084357FF:: @ 084357FF - .incbin "baserom.gba", 0x4357FF, 0x000055E - -gUnk_08435D5D:: @ 08435D5D - .incbin "baserom.gba", 0x435D5D, 0x0000802 - -gUnk_0843655F:: @ 0843655F - .incbin "baserom.gba", 0x43655F, 0x0001288 - -gUnk_084377E7:: @ 084377E7 - .incbin "baserom.gba", 0x4377E7, 0x0000553 - -gUnk_08437D3A:: @ 08437D3A - .incbin "baserom.gba", 0x437D3A, 0x00000DC - -gUnk_08437E16:: @ 08437E16 - .incbin "baserom.gba", 0x437E16, 0x0000099 - -gUnk_08437EAF:: @ 08437EAF - .incbin "baserom.gba", 0x437EAF, 0x000014B - -gUnk_08437FFA:: @ 08437FFA - .incbin "baserom.gba", 0x437FFA, 0x0007B19 - -gUnk_0843FB13:: @ 0843FB13 - .incbin "baserom.gba", 0x43FB13, 0x0000495 - -gUnk_0843FFA8:: @ 0843FFA8 - .incbin "baserom.gba", 0x43FFA8, 0x0000082 - -gUnk_0844002A:: @ 0844002A - .incbin "baserom.gba", 0x44002A, 0x00001C2 - -gUnk_084401EC:: @ 084401EC - .incbin "baserom.gba", 0x4401EC, 0x0000A56 - -gUnk_08440C42:: @ 08440C42 - .incbin "baserom.gba", 0x440C42, 0x00004C0 - -gUnk_08441102:: @ 08441102 - .incbin "baserom.gba", 0x441102, 0x000000F - -gUnk_08441111:: @ 08441111 - .incbin "baserom.gba", 0x441111, 0x0000101 - -gUnk_08441212:: @ 08441212 - .incbin "baserom.gba", 0x441212, 0x0000117 - -gUnk_08441329:: @ 08441329 - .incbin "baserom.gba", 0x441329, 0x0000311 - -gUnk_0844163A:: @ 0844163A - .incbin "baserom.gba", 0x44163A, 0x00001EE - -gUnk_08441828:: @ 08441828 - .incbin "baserom.gba", 0x441828, 0x00003FC - -gUnk_08441C24:: @ 08441C24 - .incbin "baserom.gba", 0x441C24, 0x00001DD - -gUnk_08441E01:: @ 08441E01 - .incbin "baserom.gba", 0x441E01, 0x0000322 - -gUnk_08442123:: @ 08442123 - .incbin "baserom.gba", 0x442123, 0x000107D - -gUnk_084431A0:: @ 084431A0 - .incbin "baserom.gba", 0x4431A0, 0x0000083 - -gUnk_08443223:: @ 08443223 - .incbin "baserom.gba", 0x443223, 0x0000023 - -gUnk_08443246:: @ 08443246 - .incbin "baserom.gba", 0x443246, 0x00001C5 - -gUnk_0844340B:: @ 0844340B - .incbin "baserom.gba", 0x44340B, 0x0000F39 - -gUnk_08444344:: @ 08444344 - .incbin "baserom.gba", 0x444344, 0x00000F0 - -gUnk_08444434:: @ 08444434 - .incbin "baserom.gba", 0x444434, 0x000000E - -gUnk_08444442:: @ 08444442 - .incbin "baserom.gba", 0x444442, 0x0000002 - -gUnk_08444444:: @ 08444444 - .incbin "baserom.gba", 0x444444, 0x00000B9 - -gUnk_084444FD:: @ 084444FD - .incbin "baserom.gba", 0x4444FD, 0x0000097 - -gUnk_08444594:: @ 08444594 - .incbin "baserom.gba", 0x444594, 0x0000158 - -gUnk_084446EC:: @ 084446EC - .incbin "baserom.gba", 0x4446EC, 0x000003B - -gUnk_08444727:: @ 08444727 - .incbin "baserom.gba", 0x444727, 0x000051E - -gUnk_08444C45:: @ 08444C45 - .incbin "baserom.gba", 0x444C45, 0x00002A5 - -gUnk_08444EEA:: @ 08444EEA - .incbin "baserom.gba", 0x444EEA, 0x0000959 - -gUnk_08445843:: @ 08445843 - .incbin "baserom.gba", 0x445843, 0x00003E0 - -gUnk_08445C23:: @ 08445C23 - .incbin "baserom.gba", 0x445C23, 0x0000110 - -gUnk_08445D33:: @ 08445D33 - .incbin "baserom.gba", 0x445D33, 0x00000CD - -gUnk_08445E00:: @ 08445E00 - .incbin "baserom.gba", 0x445E00, 0x0000768 - -gUnk_08446568:: @ 08446568 - .incbin "baserom.gba", 0x446568, 0x000190A - -gUnk_08447E72:: @ 08447E72 - .incbin "baserom.gba", 0x447E72, 0x00000A2 - -gUnk_08447F14:: @ 08447F14 - .incbin "baserom.gba", 0x447F14, 0x0000232 - -gUnk_08448146:: @ 08448146 - .incbin "baserom.gba", 0x448146, 0x00004BA - -gUnk_08448600:: @ 08448600 - .incbin "baserom.gba", 0x448600, 0x000151A - -gUnk_08449B1A:: @ 08449B1A - .incbin "baserom.gba", 0x449B1A, 0x00009E6 - -gUnk_0844A500:: @ 0844A500 - .incbin "baserom.gba", 0x44A500, 0x0000E33 - -gUnk_0844B333:: @ 0844B333 - .incbin "baserom.gba", 0x44B333, 0x000211A - -gUnk_0844D44D:: @ 0844D44D - .incbin "baserom.gba", 0x44D44D, 0x00003B3 - -gUnk_0844D800:: @ 0844D800 - .incbin "baserom.gba", 0x44D800, 0x0001700 - -gUnk_0844EF00:: @ 0844EF00 - .incbin "baserom.gba", 0x44EF00, 0x000011F - -gUnk_0844F01F:: @ 0844F01F - .incbin "baserom.gba", 0x44F01F, 0x00000D9 - -gUnk_0844F0F8:: @ 0844F0F8 - .incbin "baserom.gba", 0x44F0F8, 0x0000A0B - -gUnk_0844FB03:: @ 0844FB03 - .incbin "baserom.gba", 0x44FB03, 0x000050D - -gUnk_08450010:: @ 08450010 - .incbin "baserom.gba", 0x450010, 0x00003F1 - -gUnk_08450401:: @ 08450401 - .incbin "baserom.gba", 0x450401, 0x0001D21 - -gUnk_08452122:: @ 08452122 - .incbin "baserom.gba", 0x452122, 0x00000FE - -gUnk_08452220:: @ 08452220 - .incbin "baserom.gba", 0x452220, 0x0000134 - -gUnk_08452354:: @ 08452354 - .incbin "baserom.gba", 0x452354, 0x0000DE1 - -gUnk_08453135:: @ 08453135 - .incbin "baserom.gba", 0x453135, 0x00000FF - -gUnk_08453234:: @ 08453234 - .incbin "baserom.gba", 0x453234, 0x00001D4 - -gUnk_08453408:: @ 08453408 - .incbin "baserom.gba", 0x453408, 0x000001C - -gUnk_08453424:: @ 08453424 - .incbin "baserom.gba", 0x453424, 0x00006DC - -gUnk_08453B00:: @ 08453B00 - .incbin "baserom.gba", 0x453B00, 0x00005E5 - -gUnk_084540E5:: @ 084540E5 - .incbin "baserom.gba", 0x4540E5, 0x000034F - -gUnk_08454434:: @ 08454434 - .incbin "baserom.gba", 0x454434, 0x000002A - -gUnk_0845445E:: @ 0845445E - .incbin "baserom.gba", 0x45445E, 0x0000093 - -gUnk_084544F1:: @ 084544F1 - .incbin "baserom.gba", 0x4544F1, 0x0000063 - -gUnk_08454554:: @ 08454554 - .incbin "baserom.gba", 0x454554, 0x0000BC2 - -gUnk_08455116:: @ 08455116 - .incbin "baserom.gba", 0x455116, 0x0000124 - -gUnk_0845523A:: @ 0845523A - .incbin "baserom.gba", 0x45523A, 0x00000E9 - -gUnk_08455323:: @ 08455323 - .incbin "baserom.gba", 0x455323, 0x0000221 - -gUnk_08455544:: @ 08455544 - .incbin "baserom.gba", 0x455544, 0x0000011 - -gUnk_08455555:: @ 08455555 - .incbin "baserom.gba", 0x455555, 0x00002B2 - -gUnk_08455807:: @ 08455807 - .incbin "baserom.gba", 0x455807, 0x0000E1C - -gUnk_08456623:: @ 08456623 - .incbin "baserom.gba", 0x456623, 0x000025B - -gUnk_0845687E:: @ 0845687E - .incbin "baserom.gba", 0x45687E, 0x000228A - -gUnk_08458B08:: @ 08458B08 - .incbin "baserom.gba", 0x458B08, 0x000323D - -gUnk_0845BD45:: @ 0845BD45 - .incbin "baserom.gba", 0x45BD45, 0x0000D65 - -gUnk_0845CAAA:: @ 0845CAAA - .incbin "baserom.gba", 0x45CAAA, 0x000075D - -gUnk_0845D207:: @ 0845D207 - .incbin "baserom.gba", 0x45D207, 0x0001127 - -gUnk_0845E32E:: @ 0845E32E - .incbin "baserom.gba", 0x45E32E, 0x00001D4 - -gUnk_0845E502:: @ 0845E502 - .incbin "baserom.gba", 0x45E502, 0x0000857 - -gUnk_0845ED59:: @ 0845ED59 - .incbin "baserom.gba", 0x45ED59, 0x0000181 - -gUnk_0845EEDA:: @ 0845EEDA - .incbin "baserom.gba", 0x45EEDA, 0x0000C1E - -gUnk_0845FAF8:: @ 0845FAF8 - .incbin "baserom.gba", 0x45FAF8, 0x0000688 - -gUnk_08460180:: @ 08460180 - .incbin "baserom.gba", 0x460180, 0x0000290 - -gUnk_08460410:: @ 08460410 - .incbin "baserom.gba", 0x460410, 0x0000D45 - -gUnk_08461155:: @ 08461155 - .incbin "baserom.gba", 0x461155, 0x00011F0 - -gUnk_08462345:: @ 08462345 - .incbin "baserom.gba", 0x462345, 0x00010C5 - -gUnk_0846340A:: @ 0846340A - .incbin "baserom.gba", 0x46340A, 0x0001BED - -gUnk_08464FF7:: @ 08464FF7 - .incbin "baserom.gba", 0x464FF7, 0x0000321 - -gUnk_08465318:: @ 08465318 - .incbin "baserom.gba", 0x465318, 0x000012D - -gUnk_08465445:: @ 08465445 - .incbin "baserom.gba", 0x465445, 0x0000FC4 - -gUnk_08466409:: @ 08466409 - .incbin "baserom.gba", 0x466409, 0x000025B - -gUnk_08466664:: @ 08466664 - .incbin "baserom.gba", 0x466664, 0x00003F4 - -gUnk_08466A58:: @ 08466A58 - .incbin "baserom.gba", 0x466A58, 0x00005CC - -gUnk_08467024:: @ 08467024 - .incbin "baserom.gba", 0x467024, 0x0001203 - -gUnk_08468227:: @ 08468227 - .incbin "baserom.gba", 0x468227, 0x00014C7 - -gUnk_084696EE:: @ 084696EE - .incbin "baserom.gba", 0x4696EE, 0x0006923 - -gUnk_08470011:: @ 08470011 - .incbin "baserom.gba", 0x470011, 0x000000C - -gUnk_0847001D:: @ 0847001D - .incbin "baserom.gba", 0x47001D, 0x000006B - -gUnk_08470088:: @ 08470088 - .incbin "baserom.gba", 0x470088, 0x0000378 - -gUnk_08470400:: @ 08470400 - .incbin "baserom.gba", 0x470400, 0x00010EE - -gUnk_084714EE:: @ 084714EE - .incbin "baserom.gba", 0x4714EE, 0x0000008 - -gUnk_084714F6:: @ 084714F6 - .incbin "baserom.gba", 0x4714F6, 0x0000009 - -gUnk_084714FF:: @ 084714FF - .incbin "baserom.gba", 0x4714FF, 0x00019D7 - -gUnk_08472ED6:: @ 08472ED6 - .incbin "baserom.gba", 0x472ED6, 0x00009E1 - -gUnk_084738B7:: @ 084738B7 - .incbin "baserom.gba", 0x4738B7, 0x0000E11 - -gUnk_084746C8:: @ 084746C8 - .incbin "baserom.gba", 0x4746C8, 0x00019FB - -gUnk_084760C3:: @ 084760C3 - .incbin "baserom.gba", 0x4760C3, 0x0009F3E - -gUnk_08480001:: @ 08480001 - .incbin "baserom.gba", 0x480001, 0x0000003 - -gUnk_08480004:: @ 08480004 - .incbin "baserom.gba", 0x480004, 0x0000103 - -gUnk_08480107:: @ 08480107 - .incbin "baserom.gba", 0x480107, 0x00003BB - -gUnk_084804C2:: @ 084804C2 - .incbin "baserom.gba", 0x4804C2, 0x0000346 - -gUnk_08480808:: @ 08480808 - .incbin "baserom.gba", 0x480808, 0x0000C67 - -gUnk_0848146F:: @ 0848146F - .incbin "baserom.gba", 0x48146F, 0x0001C83 - -gUnk_084830F2:: @ 084830F2 - .incbin "baserom.gba", 0x4830F2, 0x0002256 - -gUnk_08485348:: @ 08485348 - .incbin "baserom.gba", 0x485348, 0x0001E26 - -gUnk_0848716E:: @ 0848716E - .incbin "baserom.gba", 0x48716E, 0x0000CE6 - -gUnk_08487E54:: @ 08487E54 - .incbin "baserom.gba", 0x487E54, 0x00081B4 - -gUnk_08490008:: @ 08490008 - .incbin "baserom.gba", 0x490008, 0x00001D9 - -gUnk_084901E1:: @ 084901E1 - .incbin "baserom.gba", 0x4901E1, 0x0003368 - -gUnk_08493549:: @ 08493549 - .incbin "baserom.gba", 0x493549, 0x0002215 - -gUnk_0849575E:: @ 0849575E - .incbin "baserom.gba", 0x49575E, 0x0001618 - -gUnk_08496D76:: @ 08496D76 - .incbin "baserom.gba", 0x496D76, 0x0000D00 - -gUnk_08497A76:: @ 08497A76 - .incbin "baserom.gba", 0x497A76, 0x0001EEE - -gUnk_08499964:: @ 08499964 - .incbin "baserom.gba", 0x499964, 0x00009E5 - -gUnk_0849A349:: @ 0849A349 - .incbin "baserom.gba", 0x49A349, 0x0005DE7 - -gUnk_084A0130:: @ 084A0130 - .incbin "baserom.gba", 0x4A0130, 0x000026F - -gUnk_084A039F:: @ 084A039F - .incbin "baserom.gba", 0x4A039F, 0x000171F - -gUnk_084A1ABE:: @ 084A1ABE - .incbin "baserom.gba", 0x4A1ABE, 0x0001344 - -gUnk_084A2E02:: @ 084A2E02 - .incbin "baserom.gba", 0x4A2E02, 0x00018C6 - -gUnk_084A46C8:: @ 084A46C8 - .incbin "baserom.gba", 0x4A46C8, 0x0000669 - -gUnk_084A4D31:: @ 084A4D31 - .incbin "baserom.gba", 0x4A4D31, 0x00019F9 - -gUnk_084A672A:: @ 084A672A - .incbin "baserom.gba", 0x4A672A, 0x0000A4B - -gUnk_084A7175:: @ 084A7175 - .incbin "baserom.gba", 0x4A7175, 0x0000001 - -gUnk_084A7176:: @ 084A7176 - .incbin "baserom.gba", 0x4A7176, 0x00002F9 - -gUnk_084A746F:: @ 084A746F - .incbin "baserom.gba", 0x4A746F, 0x00009F9 - -gUnk_084A7E68:: @ 084A7E68 - .incbin "baserom.gba", 0x4A7E68, 0x0002BFC - -gUnk_084AAA64:: @ 084AAA64 - .incbin "baserom.gba", 0x4AAA64, 0x0005DE6 - -gUnk_084B084A:: @ 084B084A - .incbin "baserom.gba", 0x4B084A, 0x0000A8A - -gUnk_084B12D4:: @ 084B12D4 - .incbin "baserom.gba", 0x4B12D4, 0x00004EA - -gUnk_084B17BE:: @ 084B17BE - .incbin "baserom.gba", 0x4B17BE, 0x0000045 - -gUnk_084B1803:: @ 084B1803 - .incbin "baserom.gba", 0x4B1803, 0x00002DD - -gUnk_084B1AE0:: @ 084B1AE0 - .incbin "baserom.gba", 0x4B1AE0, 0x0001834 - -gUnk_084B3314:: @ 084B3314 - .incbin "baserom.gba", 0x4B3314, 0x0000F36 - -gUnk_084B424A:: @ 084B424A - .incbin "baserom.gba", 0x4B424A, 0x00005CA - -gUnk_084B4814:: @ 084B4814 - .incbin "baserom.gba", 0x4B4814, 0x00002DD - -gUnk_084B4AF1:: @ 084B4AF1 - .incbin "baserom.gba", 0x4B4AF1, 0x0002782 - -gUnk_084B7273:: @ 084B7273 - .incbin "baserom.gba", 0x4B7273, 0x00048B5 - -gUnk_084BBB28:: @ 084BBB28 - .incbin "baserom.gba", 0x4BBB28, 0x000064C - -gUnk_084BC174:: @ 084BC174 - .incbin "baserom.gba", 0x4BC174, 0x0003E94 - -gUnk_084C0008:: @ 084C0008 - .incbin "baserom.gba", 0x4C0008, 0x000049A - -gUnk_084C04A2:: @ 084C04A2 - .incbin "baserom.gba", 0x4C04A2, 0x000046F - -gUnk_084C0911:: @ 084C0911 - .incbin "baserom.gba", 0x4C0911, 0x000003B - -gUnk_084C094C:: @ 084C094C - .incbin "baserom.gba", 0x4C094C, 0x0001DB4 - -gUnk_084C2700:: @ 084C2700 - .incbin "baserom.gba", 0x4C2700, 0x0002503 - -gUnk_084C4C03:: @ 084C4C03 - .incbin "baserom.gba", 0x4C4C03, 0x000256A - -gUnk_084C716D:: @ 084C716D - .incbin "baserom.gba", 0x4C716D, 0x0000E92 - -gUnk_084C7FFF:: @ 084C7FFF - .incbin "baserom.gba", 0x4C7FFF, 0x00020B1 - -gUnk_084CA0B0:: @ 084CA0B0 - .incbin "baserom.gba", 0x4CA0B0, 0x0003251 - -gUnk_084CD301:: @ 084CD301 - .incbin "baserom.gba", 0x4CD301, 0x000070A - -gUnk_084CDA0B:: @ 084CDA0B - .incbin "baserom.gba", 0x4CDA0B, 0x00025F5 - -gUnk_084D0000:: @ 084D0000 - .incbin "baserom.gba", 0x4D0000, 0x0000004 - -gUnk_084D0004:: @ 084D0004 - .incbin "baserom.gba", 0x4D0004, 0x0000008 - -gUnk_084D000C:: @ 084D000C - .incbin "baserom.gba", 0x4D000C, 0x0000008 - -gUnk_084D0014:: @ 084D0014 - .incbin "baserom.gba", 0x4D0014, 0x0000064 - -gUnk_084D0078:: @ 084D0078 - .incbin "baserom.gba", 0x4D0078, 0x000001F - -gUnk_084D0097:: @ 084D0097 - .incbin "baserom.gba", 0x4D0097, 0x0000029 - -gUnk_084D00C0:: @ 084D00C0 - .incbin "baserom.gba", 0x4D00C0, 0x000036A - -gUnk_084D042A:: @ 084D042A - .incbin "baserom.gba", 0x4D042A, 0x000002F - -gUnk_084D0459:: @ 084D0459 - .incbin "baserom.gba", 0x4D0459, 0x0000ABD - -gUnk_084D0F16:: @ 084D0F16 - .incbin "baserom.gba", 0x4D0F16, 0x000232D - -gUnk_084D3243:: @ 084D3243 - .incbin "baserom.gba", 0x4D3243, 0x00042EE - -gUnk_084D7531:: @ 084D7531 - .incbin "baserom.gba", 0x4D7531, 0x0004C1C - -gUnk_084DC14D:: @ 084DC14D - .incbin "baserom.gba", 0x4DC14D, 0x0002EB2 - -gUnk_084DEFFF:: @ 084DEFFF - .incbin "baserom.gba", 0x4DEFFF, 0x0001001 - -gUnk_084E0000:: @ 084E0000 - .incbin "baserom.gba", 0x4E0000, 0x0000001 - -gUnk_084E0001:: @ 084E0001 - .incbin "baserom.gba", 0x4E0001, 0x000038F - -gUnk_084E0390:: @ 084E0390 - .incbin "baserom.gba", 0x4E0390, 0x0000D4D - -gUnk_084E10DD:: @ 084E10DD - .incbin "baserom.gba", 0x4E10DD, 0x00035EB - -gUnk_084E46C8:: @ 084E46C8 - .incbin "baserom.gba", 0x4E46C8, 0x0000587 - -gUnk_084E4C4F:: @ 084E4C4F - .incbin "baserom.gba", 0x4E4C4F, 0x00002B8 - -gUnk_084E4F07:: @ 084E4F07 - .incbin "baserom.gba", 0x4E4F07, 0x0002067 - -gUnk_084E6F6E:: @ 084E6F6E - .incbin "baserom.gba", 0x4E6F6E, 0x00009AA - -gUnk_084E7918:: @ 084E7918 - .incbin "baserom.gba", 0x4E7918, 0x0001C57 - -gUnk_084E956F:: @ 084E956F - .incbin "baserom.gba", 0x4E956F, 0x0000AC0 - -gUnk_084EA02F:: @ 084EA02F - .incbin "baserom.gba", 0x4EA02F, 0x0004ED0 - -gUnk_084EEEFF:: @ 084EEEFF - .incbin "baserom.gba", 0x4EEEFF, 0x00011F6 - -gUnk_084F00F5:: @ 084F00F5 - .incbin "baserom.gba", 0x4F00F5, 0x0000012 - -gUnk_084F0107:: @ 084F0107 - .incbin "baserom.gba", 0x4F0107, 0x0000747 - -gUnk_084F084E:: @ 084F084E - .incbin "baserom.gba", 0x4F084E, 0x00006B8 - -gUnk_084F0F06:: @ 084F0F06 - .incbin "baserom.gba", 0x4F0F06, 0x00010DB - -gUnk_084F1FE1:: @ 084F1FE1 - .incbin "baserom.gba", 0x4F1FE1, 0x000206D - -gUnk_084F404E:: @ 084F404E - .incbin "baserom.gba", 0x4F404E, 0x00010BB - -gUnk_084F5109:: @ 084F5109 - .incbin "baserom.gba", 0x4F5109, 0x0002316 - -gUnk_084F741F:: @ 084F741F - .incbin "baserom.gba", 0x4F741F, 0x0000B31 - -gUnk_084F7F50:: @ 084F7F50 - .incbin "baserom.gba", 0x4F7F50, 0x0007FB3 - -gUnk_084FFF03:: @ 084FFF03 - .incbin "baserom.gba", 0x4FFF03, 0x00000FD - -gUnk_08500000:: @ 08500000 - .incbin "baserom.gba", 0x500000, 0x0000002 - -gUnk_08500002:: @ 08500002 - .incbin "baserom.gba", 0x500002, 0x0000002 - -gUnk_08500004:: @ 08500004 - .incbin "baserom.gba", 0x500004, 0x0000002 - -gUnk_08500006:: @ 08500006 - .incbin "baserom.gba", 0x500006, 0x0000001 - -gUnk_08500007:: @ 08500007 - .incbin "baserom.gba", 0x500007, 0x0000001 - -gUnk_08500008:: @ 08500008 - .incbin "baserom.gba", 0x500008, 0x0000002 - -gUnk_0850000A:: @ 0850000A - .incbin "baserom.gba", 0x50000A, 0x0000001 - -gUnk_0850000B:: @ 0850000B - .incbin "baserom.gba", 0x50000B, 0x0000001 - -gUnk_0850000C:: @ 0850000C - .incbin "baserom.gba", 0x50000C, 0x0000001 - -gUnk_0850000D:: @ 0850000D - .incbin "baserom.gba", 0x50000D, 0x0000002 - -gUnk_0850000F:: @ 0850000F - .incbin "baserom.gba", 0x50000F, 0x0000001 - -gUnk_08500010:: @ 08500010 - .incbin "baserom.gba", 0x500010, 0x0000001 - -gUnk_08500011:: @ 08500011 - .incbin "baserom.gba", 0x500011, 0x0000003 - -gUnk_08500014:: @ 08500014 - .incbin "baserom.gba", 0x500014, 0x0000008 - -gUnk_0850001C:: @ 0850001C - .incbin "baserom.gba", 0x50001C, 0x0000002 - -gUnk_0850001E:: @ 0850001E - .incbin "baserom.gba", 0x50001E, 0x0000002 - -gUnk_08500020:: @ 08500020 - .incbin "baserom.gba", 0x500020, 0x000001C - -gUnk_0850003C:: @ 0850003C - .incbin "baserom.gba", 0x50003C, 0x0000014 - -gUnk_08500050:: @ 08500050 - .incbin "baserom.gba", 0x500050, 0x0000006 - -gUnk_08500056:: @ 08500056 - .incbin "baserom.gba", 0x500056, 0x000000B - -gUnk_08500061:: @ 08500061 - .incbin "baserom.gba", 0x500061, 0x0000001 - -gUnk_08500062:: @ 08500062 - .incbin "baserom.gba", 0x500062, 0x000000A - -gUnk_0850006C:: @ 0850006C - .incbin "baserom.gba", 0x50006C, 0x0000006 - -gUnk_08500072:: @ 08500072 - .incbin "baserom.gba", 0x500072, 0x000004E - -gUnk_085000C0:: @ 085000C0 - .incbin "baserom.gba", 0x5000C0, 0x0000030 - -gUnk_085000F0:: @ 085000F0 - .incbin "baserom.gba", 0x5000F0, 0x0000008 - -gUnk_085000F8:: @ 085000F8 - .incbin "baserom.gba", 0x5000F8, 0x0000007 - -gUnk_085000FF:: @ 085000FF - .incbin "baserom.gba", 0x5000FF, 0x0000001 - -gUnk_08500100:: @ 08500100 - .incbin "baserom.gba", 0x500100, 0x000001C - -gUnk_0850011C:: @ 0850011C - .incbin "baserom.gba", 0x50011C, 0x0000004 - -gUnk_08500120:: @ 08500120 - .incbin "baserom.gba", 0x500120, 0x0000010 - -gUnk_08500130:: @ 08500130 - .incbin "baserom.gba", 0x500130, 0x0000038 - -gUnk_08500168:: @ 08500168 - .incbin "baserom.gba", 0x500168, 0x0000018 - -gUnk_08500180:: @ 08500180 - .incbin "baserom.gba", 0x500180, 0x0000281 - -gUnk_08500401:: @ 08500401 - .incbin "baserom.gba", 0x500401, 0x0000042 - -gUnk_08500443:: @ 08500443 - .incbin "baserom.gba", 0x500443, 0x0000001 - -gUnk_08500444:: @ 08500444 - .incbin "baserom.gba", 0x500444, 0x0000015 - -gUnk_08500459:: @ 08500459 - .incbin "baserom.gba", 0x500459, 0x000000A - -gUnk_08500463:: @ 08500463 - .incbin "baserom.gba", 0x500463, 0x00001ED - -gUnk_08500650:: @ 08500650 - .incbin "baserom.gba", 0x500650, 0x00001B6 - -gUnk_08500806:: @ 08500806 - .incbin "baserom.gba", 0x500806, 0x0000001 - -gUnk_08500807:: @ 08500807 - .incbin "baserom.gba", 0x500807, 0x0000001 - -gUnk_08500808:: @ 08500808 - .incbin "baserom.gba", 0x500808, 0x0000049 - -gUnk_08500851:: @ 08500851 - .incbin "baserom.gba", 0x500851, 0x00000CA - -gUnk_0850091B:: @ 0850091B - .incbin "baserom.gba", 0x50091B, 0x0000036 - -gUnk_08500951:: @ 08500951 - .incbin "baserom.gba", 0x500951, 0x0000810 - -gUnk_08501161:: @ 08501161 - .incbin "baserom.gba", 0x501161, 0x00001C5 - -gUnk_08501326:: @ 08501326 - .incbin "baserom.gba", 0x501326, 0x000042B - -gUnk_08501751:: @ 08501751 - .incbin "baserom.gba", 0x501751, 0x00002C0 - -gUnk_08501A11:: @ 08501A11 - .incbin "baserom.gba", 0x501A11, 0x00002EF - -gUnk_08501D00:: @ 08501D00 - .incbin "baserom.gba", 0x501D00, 0x0000208 - -gUnk_08501F08:: @ 08501F08 - .incbin "baserom.gba", 0x501F08, 0x0001259 - -gUnk_08503161:: @ 08503161 - .incbin "baserom.gba", 0x503161, 0x00001DB - -gUnk_0850333C:: @ 0850333C - .incbin "baserom.gba", 0x50333C, 0x0001078 - -gUnk_085043B4:: @ 085043B4 - .incbin "baserom.gba", 0x5043B4, 0x0000050 - -gUnk_08504404:: @ 08504404 - .incbin "baserom.gba", 0x504404, 0x00002C4 - -gUnk_085046C8:: @ 085046C8 - .incbin "baserom.gba", 0x5046C8, 0x000016F - -gUnk_08504837:: @ 08504837 - .incbin "baserom.gba", 0x504837, 0x0000829 - -gUnk_08505060:: @ 08505060 - .incbin "baserom.gba", 0x505060, 0x0002206 - -gUnk_08507266:: @ 08507266 - .incbin "baserom.gba", 0x507266, 0x0000D2A - -gUnk_08507F90:: @ 08507F90 - .incbin "baserom.gba", 0x507F90, 0x0001B0F - -gUnk_08509A9F:: @ 08509A9F - .incbin "baserom.gba", 0x509A9F, 0x0000573 - -gUnk_0850A012:: @ 0850A012 - .incbin "baserom.gba", 0x50A012, 0x0001117 - -gUnk_0850B129:: @ 0850B129 - .incbin "baserom.gba", 0x50B129, 0x000107F - -gUnk_0850C1A8:: @ 0850C1A8 - .incbin "baserom.gba", 0x50C1A8, 0x000059D - -gUnk_0850C745:: @ 0850C745 - .incbin "baserom.gba", 0x50C745, 0x0000A8C - -gUnk_0850D1D1:: @ 0850D1D1 - .incbin "baserom.gba", 0x50D1D1, 0x000064D - -gUnk_0850D81E:: @ 0850D81E - .incbin "baserom.gba", 0x50D81E, 0x0000F5D - -gUnk_0850E77B:: @ 0850E77B - .incbin "baserom.gba", 0x50E77B, 0x0001175 - -gUnk_0850F8F0:: @ 0850F8F0 - .incbin "baserom.gba", 0x50F8F0, 0x0000101 - -gUnk_0850F9F1:: @ 0850F9F1 - .incbin "baserom.gba", 0x50F9F1, 0x00000FF - -gUnk_0850FAF0:: @ 0850FAF0 - .incbin "baserom.gba", 0x50FAF0, 0x0000100 - -gUnk_0850FBF0:: @ 0850FBF0 - .incbin "baserom.gba", 0x50FBF0, 0x0000100 - -gUnk_0850FCF0:: @ 0850FCF0 - .incbin "baserom.gba", 0x50FCF0, 0x0000100 - -gUnk_0850FDF0:: @ 0850FDF0 - .incbin "baserom.gba", 0x50FDF0, 0x00000FD - -gUnk_0850FEED:: @ 0850FEED - .incbin "baserom.gba", 0x50FEED, 0x0000001 - -gUnk_0850FEEE:: @ 0850FEEE - .incbin "baserom.gba", 0x50FEEE, 0x0000002 - -gUnk_0850FEF0:: @ 0850FEF0 - .incbin "baserom.gba", 0x50FEF0, 0x00000DE - -gUnk_0850FFCE:: @ 0850FFCE - .incbin "baserom.gba", 0x50FFCE, 0x0000022 - -gUnk_0850FFF0:: @ 0850FFF0 - .incbin "baserom.gba", 0x50FFF0, 0x0000008 - -gUnk_0850FFF8:: @ 0850FFF8 - .incbin "baserom.gba", 0x50FFF8, 0x0000002 - -gUnk_0850FFFA:: @ 0850FFFA - .incbin "baserom.gba", 0x50FFFA, 0x0000002 - -gUnk_0850FFFC:: @ 0850FFFC - .incbin "baserom.gba", 0x50FFFC, 0x0000005 - -gUnk_08510001:: @ 08510001 - .incbin "baserom.gba", 0x510001, 0x0000019 - -gUnk_0851001A:: @ 0851001A - .incbin "baserom.gba", 0x51001A, 0x0000136 - -gUnk_08510150:: @ 08510150 - .incbin "baserom.gba", 0x510150, 0x000012C - -gUnk_0851027C:: @ 0851027C - .incbin "baserom.gba", 0x51027C, 0x00000D4 - -gUnk_08510350:: @ 08510350 - .incbin "baserom.gba", 0x510350, 0x0001BE0 - -gUnk_08511F30:: @ 08511F30 - .incbin "baserom.gba", 0x511F30, 0x0000821 - -gUnk_08512751:: @ 08512751 - .incbin "baserom.gba", 0x512751, 0x00014F3 - -gUnk_08513C44:: @ 08513C44 - .incbin "baserom.gba", 0x513C44, 0x00002DC - -gUnk_08513F20:: @ 08513F20 - .incbin "baserom.gba", 0x513F20, 0x0001829 - -gUnk_08515749:: @ 08515749 - .incbin "baserom.gba", 0x515749, 0x0006DD6 - -gUnk_0851C51F:: @ 0851C51F - .incbin "baserom.gba", 0x51C51F, 0x00030C9 - -gUnk_0851F5E8:: @ 0851F5E8 - .incbin "baserom.gba", 0x51F5E8, 0x0000808 - -gUnk_0851FDF0:: @ 0851FDF0 - .incbin "baserom.gba", 0x51FDF0, 0x00000D9 - -gUnk_0851FEC9:: @ 0851FEC9 - .incbin "baserom.gba", 0x51FEC9, 0x00004C9 - -gUnk_08520392:: @ 08520392 - .incbin "baserom.gba", 0x520392, 0x0000070 - -gUnk_08520402:: @ 08520402 - .incbin "baserom.gba", 0x520402, 0x000004F - -gUnk_08520451:: @ 08520451 - .incbin "baserom.gba", 0x520451, 0x00002BF - -gUnk_08520710:: @ 08520710 - .incbin "baserom.gba", 0x520710, 0x00004B5 - -gUnk_08520BC5:: @ 08520BC5 - .incbin "baserom.gba", 0x520BC5, 0x000187F - -gUnk_08522444:: @ 08522444 - .incbin "baserom.gba", 0x522444, 0x0002001 - -gUnk_08524445:: @ 08524445 - .incbin "baserom.gba", 0x524445, 0x0000121 - -gUnk_08524566:: @ 08524566 - .incbin "baserom.gba", 0x524566, 0x000103C - -gUnk_085255A2:: @ 085255A2 - .incbin "baserom.gba", 0x5255A2, 0x0000A64 - -gUnk_08526006:: @ 08526006 - .incbin "baserom.gba", 0x526006, 0x0001E2C - -gUnk_08527E32:: @ 08527E32 - .incbin "baserom.gba", 0x527E32, 0x0000112 - -gUnk_08527F44:: @ 08527F44 - .incbin "baserom.gba", 0x527F44, 0x00027BD - -gUnk_0852A701:: @ 0852A701 - .incbin "baserom.gba", 0x52A701, 0x0002A02 - -gUnk_0852D103:: @ 0852D103 - .incbin "baserom.gba", 0x52D103, 0x000304F - -gUnk_08530152:: @ 08530152 - .incbin "baserom.gba", 0x530152, 0x00001AE - -gUnk_08530300:: @ 08530300 - .incbin "baserom.gba", 0x530300, 0x0000050 - -gUnk_08530350:: @ 08530350 - .incbin "baserom.gba", 0x530350, 0x0000FD2 - -gUnk_08531322:: @ 08531322 - .incbin "baserom.gba", 0x531322, 0x000099D - -gUnk_08531CBF:: @ 08531CBF - .incbin "baserom.gba", 0x531CBF, 0x0000E2D - -gUnk_08532AEC:: @ 08532AEC - .incbin "baserom.gba", 0x532AEC, 0x0000979 - -gUnk_08533465:: @ 08533465 - .incbin "baserom.gba", 0x533465, 0x00001EE - -gUnk_08533653:: @ 08533653 - .incbin "baserom.gba", 0x533653, 0x0000EE3 - -gUnk_08534536:: @ 08534536 - .incbin "baserom.gba", 0x534536, 0x0001C1C - -gUnk_08536152:: @ 08536152 - .incbin "baserom.gba", 0x536152, 0x0001301 - -gUnk_08537453:: @ 08537453 - .incbin "baserom.gba", 0x537453, 0x0008BB1 - -gUnk_08540004:: @ 08540004 - .incbin "baserom.gba", 0x540004, 0x00000EC - -gUnk_085400F0:: @ 085400F0 - .incbin "baserom.gba", 0x5400F0, 0x0000100 - -gUnk_085401F0:: @ 085401F0 - .incbin "baserom.gba", 0x5401F0, 0x00010CF - -gUnk_085412BF:: @ 085412BF - .incbin "baserom.gba", 0x5412BF, 0x0000076 - -gUnk_08541335:: @ 08541335 - .incbin "baserom.gba", 0x541335, 0x0001FCE - -gUnk_08543303:: @ 08543303 - .incbin "baserom.gba", 0x543303, 0x0000F25 - -gUnk_08544228:: @ 08544228 - .incbin "baserom.gba", 0x544228, 0x000003F - -gUnk_08544267:: @ 08544267 - .incbin "baserom.gba", 0x544267, 0x000009A - -gUnk_08544301:: @ 08544301 - .incbin "baserom.gba", 0x544301, 0x0001365 - -gUnk_08545666:: @ 08545666 - .incbin "baserom.gba", 0x545666, 0x0000F00 - -gUnk_08546566:: @ 08546566 - .incbin "baserom.gba", 0x546566, 0x00019E4 - -gUnk_08547F4A:: @ 08547F4A - .incbin "baserom.gba", 0x547F4A, 0x000092C - -gUnk_08548876:: @ 08548876 - .incbin "baserom.gba", 0x548876, 0x0004666 - -gUnk_0854CEDC:: @ 0854CEDC - .incbin "baserom.gba", 0x54CEDC, 0x0001011 - -gUnk_0854DEED:: @ 0854DEED - .incbin "baserom.gba", 0x54DEED, 0x0002114 - -gUnk_08550001:: @ 08550001 - .incbin "baserom.gba", 0x550001, 0x0000003 - -gUnk_08550004:: @ 08550004 - .incbin "baserom.gba", 0x550004, 0x000000C - -gUnk_08550010:: @ 08550010 - .incbin "baserom.gba", 0x550010, 0x0000044 - -gUnk_08550054:: @ 08550054 - .incbin "baserom.gba", 0x550054, 0x0000400 - -gUnk_08550454:: @ 08550454 - .incbin "baserom.gba", 0x550454, 0x00004FD - -gUnk_08550951:: @ 08550951 - .incbin "baserom.gba", 0x550951, 0x00013BF - -gUnk_08551D10:: @ 08551D10 - .incbin "baserom.gba", 0x551D10, 0x0000513 - -gUnk_08552223:: @ 08552223 - .incbin "baserom.gba", 0x552223, 0x00001E5 - -gUnk_08552408:: @ 08552408 - .incbin "baserom.gba", 0x552408, 0x0001C4C - -gUnk_08554054:: @ 08554054 - .incbin "baserom.gba", 0x554054, 0x0000200 - -gUnk_08554254:: @ 08554254 - .incbin "baserom.gba", 0x554254, 0x0000002 - -gUnk_08554256:: @ 08554256 - .incbin "baserom.gba", 0x554256, 0x00001AD - -gUnk_08554403:: @ 08554403 - .incbin "baserom.gba", 0x554403, 0x0000042 - -gUnk_08554445:: @ 08554445 - .incbin "baserom.gba", 0x554445, 0x0000630 - -gUnk_08554A75:: @ 08554A75 - .incbin "baserom.gba", 0x554A75, 0x00008AF - -gUnk_08555324:: @ 08555324 - .incbin "baserom.gba", 0x555324, 0x0000231 - -gUnk_08555555:: @ 08555555 - .incbin "baserom.gba", 0x555555, 0x000000D - -gUnk_08555562:: @ 08555562 - .incbin "baserom.gba", 0x555562, 0x0000503 - -gUnk_08555A65:: @ 08555A65 - .incbin "baserom.gba", 0x555A65, 0x0000BAB - -gUnk_08556610:: @ 08556610 - .incbin "baserom.gba", 0x556610, 0x000022B - -gUnk_0855683B:: @ 0855683B - .incbin "baserom.gba", 0x55683B, 0x0000519 - -gUnk_08556D54:: @ 08556D54 - .incbin "baserom.gba", 0x556D54, 0x0000183 - -gUnk_08556ED7:: @ 08556ED7 - .incbin "baserom.gba", 0x556ED7, 0x0000435 - -gUnk_0855730C:: @ 0855730C - .incbin "baserom.gba", 0x55730C, 0x0000A4F - -gUnk_08557D5B:: @ 08557D5B - .incbin "baserom.gba", 0x557D5B, 0x00014A7 - -gUnk_08559202:: @ 08559202 - .incbin "baserom.gba", 0x559202, 0x0005428 - -gUnk_0855E62A:: @ 0855E62A - .incbin "baserom.gba", 0x55E62A, 0x0000260 - -gUnk_0855E88A:: @ 0855E88A - .incbin "baserom.gba", 0x55E88A, 0x000177E - -gUnk_08560008:: @ 08560008 - .incbin "baserom.gba", 0x560008, 0x00000FF - -gUnk_08560107:: @ 08560107 - .incbin "baserom.gba", 0x560107, 0x0000258 - -gUnk_0856035F:: @ 0856035F - .incbin "baserom.gba", 0x56035F, 0x000154E - -gUnk_085618AD:: @ 085618AD - .incbin "baserom.gba", 0x5618AD, 0x0001BA9 - -gUnk_08563456:: @ 08563456 - .incbin "baserom.gba", 0x563456, 0x00008BA - -gUnk_08563D10:: @ 08563D10 - .incbin "baserom.gba", 0x563D10, 0x000071B - -gUnk_0856442B:: @ 0856442B - .incbin "baserom.gba", 0x56442B, 0x00002D5 - -gUnk_08564700:: @ 08564700 - .incbin "baserom.gba", 0x564700, 0x0000C1F - -gUnk_0856531F:: @ 0856531F - .incbin "baserom.gba", 0x56531F, 0x0000314 - -gUnk_08565633:: @ 08565633 - .incbin "baserom.gba", 0x565633, 0x0000F1E - -gUnk_08566551:: @ 08566551 - .incbin "baserom.gba", 0x566551, 0x00000D1 - -gUnk_08566622:: @ 08566622 - .incbin "baserom.gba", 0x566622, 0x0000DF3 - -gUnk_08567415:: @ 08567415 - .incbin "baserom.gba", 0x567415, 0x0000C02 - -gUnk_08568017:: @ 08568017 - .incbin "baserom.gba", 0x568017, 0x0000031 - -gUnk_08568048:: @ 08568048 - .incbin "baserom.gba", 0x568048, 0x00060DB - -gUnk_0856E123:: @ 0856E123 - .incbin "baserom.gba", 0x56E123, 0x0001EEE - -gUnk_08570011:: @ 08570011 - .incbin "baserom.gba", 0x570011, 0x00018E0 - -gUnk_085718F1:: @ 085718F1 - .incbin "baserom.gba", 0x5718F1, 0x000071F - -gUnk_08572010:: @ 08572010 - .incbin "baserom.gba", 0x572010, 0x0000679 - -gUnk_08572689:: @ 08572689 - .incbin "baserom.gba", 0x572689, 0x0000795 - -gUnk_08572E1E:: @ 08572E1E - .incbin "baserom.gba", 0x572E1E, 0x000123A - -gUnk_08574058:: @ 08574058 - .incbin "baserom.gba", 0x574058, 0x00021CC - -gUnk_08576224:: @ 08576224 - .incbin "baserom.gba", 0x576224, 0x0001408 - -gUnk_0857762C:: @ 0857762C - .incbin "baserom.gba", 0x57762C, 0x000135B - -gUnk_08578987:: @ 08578987 - .incbin "baserom.gba", 0x578987, 0x00036CB - -gUnk_0857C052:: @ 0857C052 - .incbin "baserom.gba", 0x57C052, 0x0003724 - -gUnk_0857F776:: @ 0857F776 - .incbin "baserom.gba", 0x57F776, 0x000088A - -gUnk_08580000:: @ 08580000 - .incbin "baserom.gba", 0x580000, 0x0000008 - -gUnk_08580008:: @ 08580008 - .incbin "baserom.gba", 0x580008, 0x000003E - -gUnk_08580046:: @ 08580046 - .incbin "baserom.gba", 0x580046, 0x0000030 - -gUnk_08580076:: @ 08580076 - .incbin "baserom.gba", 0x580076, 0x0000030 - -gUnk_085800A6:: @ 085800A6 - .incbin "baserom.gba", 0x5800A6, 0x00000AC - -gUnk_08580152:: @ 08580152 - .incbin "baserom.gba", 0x580152, 0x0000306 - -gUnk_08580458:: @ 08580458 - .incbin "baserom.gba", 0x580458, 0x00003B0 - -gUnk_08580808:: @ 08580808 - .incbin "baserom.gba", 0x580808, 0x000004F - -gUnk_08580857:: @ 08580857 - .incbin "baserom.gba", 0x580857, 0x0006E11 - -gUnk_08587668:: @ 08587668 - .incbin "baserom.gba", 0x587668, 0x00007F9 - -gUnk_08587E61:: @ 08587E61 - .incbin "baserom.gba", 0x587E61, 0x00081A0 - -gUnk_08590001:: @ 08590001 - .incbin "baserom.gba", 0x590001, 0x00000F1 - -gUnk_085900F2:: @ 085900F2 - .incbin "baserom.gba", 0x5900F2, 0x00007EF - -gUnk_085908E1:: @ 085908E1 - .incbin "baserom.gba", 0x5908E1, 0x0000CC9 - -gUnk_085915AA:: @ 085915AA - .incbin "baserom.gba", 0x5915AA, 0x00081CD - -gUnk_08599777:: @ 08599777 - .incbin "baserom.gba", 0x599777, 0x000184D - -gUnk_0859AFC4:: @ 0859AFC4 - .incbin "baserom.gba", 0x59AFC4, 0x000503C - -gUnk_085A0000:: @ 085A0000 - .incbin "baserom.gba", 0x5A0000, 0x0000001 - -gUnk_085A0001:: @ 085A0001 - .incbin "baserom.gba", 0x5A0001, 0x0000001 - -gUnk_085A0002:: @ 085A0002 - .incbin "baserom.gba", 0x5A0002, 0x0000006 - -gUnk_085A0008:: @ 085A0008 - .incbin "baserom.gba", 0x5A0008, 0x0000002 - -gUnk_085A000A:: @ 085A000A - .incbin "baserom.gba", 0x5A000A, 0x0000002 - -gUnk_085A000C:: @ 085A000C - .incbin "baserom.gba", 0x5A000C, 0x0000003 - -gUnk_085A000F:: @ 085A000F - .incbin "baserom.gba", 0x5A000F, 0x0000009 - -gUnk_085A0018:: @ 085A0018 - .incbin "baserom.gba", 0x5A0018, 0x0000006 - -gUnk_085A001E:: @ 085A001E - .incbin "baserom.gba", 0x5A001E, 0x0000001 - -gUnk_085A001F:: @ 085A001F - .incbin "baserom.gba", 0x5A001F, 0x000001D - -gUnk_085A003C:: @ 085A003C - .incbin "baserom.gba", 0x5A003C, 0x000001A - -gUnk_085A0056:: @ 085A0056 - .incbin "baserom.gba", 0x5A0056, 0x0000008 - -gUnk_085A005E:: @ 085A005E - .incbin "baserom.gba", 0x5A005E, 0x0000033 - -gUnk_085A0091:: @ 085A0091 - .incbin "baserom.gba", 0x5A0091, 0x000005F - -gUnk_085A00F0:: @ 085A00F0 - .incbin "baserom.gba", 0x5A00F0, 0x0000211 - -gUnk_085A0301:: @ 085A0301 - .incbin "baserom.gba", 0x5A0301, 0x0000100 - -gUnk_085A0401:: @ 085A0401 - .incbin "baserom.gba", 0x5A0401, 0x0000033 - -gUnk_085A0434:: @ 085A0434 - .incbin "baserom.gba", 0x5A0434, 0x000000F - -gUnk_085A0443:: @ 085A0443 - .incbin "baserom.gba", 0x5A0443, 0x0000006 - -gUnk_085A0449:: @ 085A0449 - .incbin "baserom.gba", 0x5A0449, 0x000001A - -gUnk_085A0463:: @ 085A0463 - .incbin "baserom.gba", 0x5A0463, 0x0000001 - -gUnk_085A0464:: @ 085A0464 - .incbin "baserom.gba", 0x5A0464, 0x00003A2 - -gUnk_085A0806:: @ 085A0806 - .incbin "baserom.gba", 0x5A0806, 0x000267A - -gUnk_085A2E80:: @ 085A2E80 - .incbin "baserom.gba", 0x5A2E80, 0x0001382 - -gUnk_085A4202:: @ 085A4202 - .incbin "baserom.gba", 0x5A4202, 0x0001CED - -gUnk_085A5EEF:: @ 085A5EEF - .incbin "baserom.gba", 0x5A5EEF, 0x0000037 - -gUnk_085A5F26:: @ 085A5F26 - .incbin "baserom.gba", 0x5A5F26, 0x00013FA - -gUnk_085A7320:: @ 085A7320 - .incbin "baserom.gba", 0x5A7320, 0x0002480 - -gUnk_085A97A0:: @ 085A97A0 - .incbin "baserom.gba", 0x5A97A0, 0x0000CA1 - -gUnk_085AA441:: @ 085AA441 - .incbin "baserom.gba", 0x5AA441, 0x0002B76 - -gUnk_085ACFB7:: @ 085ACFB7 - .incbin "baserom.gba", 0x5ACFB7, 0x0002FA5 - -gUnk_085AFF5C:: @ 085AFF5C - .incbin "baserom.gba", 0x5AFF5C, 0x000001C - -gUnk_085AFF78:: @ 085AFF78 - .incbin "baserom.gba", 0x5AFF78, 0x0000058 - -gUnk_085AFFD0:: @ 085AFFD0 - .incbin "baserom.gba", 0x5AFFD0, 0x0000030 - -gUnk_085B0000:: @ 085B0000 - .incbin "baserom.gba", 0x5B0000, 0x0000006 - -gUnk_085B0006:: @ 085B0006 - .incbin "baserom.gba", 0x5B0006, 0x0000004 - -gUnk_085B000A:: @ 085B000A - .incbin "baserom.gba", 0x5B000A, 0x0000002 - -gUnk_085B000C:: @ 085B000C - .incbin "baserom.gba", 0x5B000C, 0x0000002 - -gUnk_085B000E:: @ 085B000E - .incbin "baserom.gba", 0x5B000E, 0x000000E - -gUnk_085B001C:: @ 085B001C - .incbin "baserom.gba", 0x5B001C, 0x0000002 - -gUnk_085B001E:: @ 085B001E - .incbin "baserom.gba", 0x5B001E, 0x0000006 - -gUnk_085B0024:: @ 085B0024 - .incbin "baserom.gba", 0x5B0024, 0x0000012 - -gUnk_085B0036:: @ 085B0036 - .incbin "baserom.gba", 0x5B0036, 0x0000006 - -gUnk_085B003C:: @ 085B003C - .incbin "baserom.gba", 0x5B003C, 0x000000C - -gUnk_085B0048:: @ 085B0048 - .incbin "baserom.gba", 0x5B0048, 0x000000C - -gUnk_085B0054:: @ 085B0054 - .incbin "baserom.gba", 0x5B0054, 0x0000004 - -gUnk_085B0058:: @ 085B0058 - .incbin "baserom.gba", 0x5B0058, 0x000000C - -gUnk_085B0064:: @ 085B0064 - .incbin "baserom.gba", 0x5B0064, 0x0000001 - -gUnk_085B0065:: @ 085B0065 - .incbin "baserom.gba", 0x5B0065, 0x000000F - -gUnk_085B0074:: @ 085B0074 - .incbin "baserom.gba", 0x5B0074, 0x0000060 - -gUnk_085B00D4:: @ 085B00D4 - .incbin "baserom.gba", 0x5B00D4, 0x0000026 - -gUnk_085B00FA:: @ 085B00FA - .incbin "baserom.gba", 0x5B00FA, 0x0000308 - -gUnk_085B0402:: @ 085B0402 - .incbin "baserom.gba", 0x5B0402, 0x0000032 - -gUnk_085B0434:: @ 085B0434 - .incbin "baserom.gba", 0x5B0434, 0x0000015 - -gUnk_085B0449:: @ 085B0449 - .incbin "baserom.gba", 0x5B0449, 0x000001A - -gUnk_085B0463:: @ 085B0463 - .incbin "baserom.gba", 0x5B0463, 0x0000001 - -gUnk_085B0464:: @ 085B0464 - .incbin "baserom.gba", 0x5B0464, 0x00003A2 - -gUnk_085B0806:: @ 085B0806 - .incbin "baserom.gba", 0x5B0806, 0x0000001 - -gUnk_085B0807:: @ 085B0807 - .incbin "baserom.gba", 0x5B0807, 0x000088D - -gUnk_085B1094:: @ 085B1094 - .incbin "baserom.gba", 0x5B1094, 0x00030EC - -gUnk_085B4180:: @ 085B4180 - .incbin "baserom.gba", 0x5B4180, 0x0000EB5 - -gUnk_085B5035:: @ 085B5035 - .incbin "baserom.gba", 0x5B5035, 0x0000E8B - -gUnk_085B5EC0:: @ 085B5EC0 - .incbin "baserom.gba", 0x5B5EC0, 0x00000E0 - -gUnk_085B5FA0:: @ 085B5FA0 - .incbin "baserom.gba", 0x5B5FA0, 0x00000E0 - -gUnk_085B6080:: @ 085B6080 - .incbin "baserom.gba", 0x5B6080, 0x00000E0 - -gUnk_085B6160:: @ 085B6160 - .incbin "baserom.gba", 0x5B6160, 0x00000E0 - -gUnk_085B6240:: @ 085B6240 - .incbin "baserom.gba", 0x5B6240, 0x00000E0 - -gUnk_085B6320:: @ 085B6320 - .incbin "baserom.gba", 0x5B6320, 0x0000013 - -gUnk_085B6333:: @ 085B6333 - .incbin "baserom.gba", 0x5B6333, 0x00000CD - -gUnk_085B6400:: @ 085B6400 - .incbin "baserom.gba", 0x5B6400, 0x00000E0 - -gUnk_085B64E0:: @ 085B64E0 - .incbin "baserom.gba", 0x5B64E0, 0x00000E0 - -gUnk_085B65C0:: @ 085B65C0 - .incbin "baserom.gba", 0x5B65C0, 0x00000E0 - -gUnk_085B66A0:: @ 085B66A0 - .incbin "baserom.gba", 0x5B66A0, 0x00000E0 - -gUnk_085B6780:: @ 085B6780 - .incbin "baserom.gba", 0x5B6780, 0x00000E0 - -gUnk_085B6860:: @ 085B6860 - .incbin "baserom.gba", 0x5B6860, 0x00000E0 - -gUnk_085B6940:: @ 085B6940 - .incbin "baserom.gba", 0x5B6940, 0x00000E0 - -gUnk_085B6A20:: @ 085B6A20 - .incbin "baserom.gba", 0x5B6A20, 0x00000E0 - -gUnk_085B6B00:: @ 085B6B00 - .incbin "baserom.gba", 0x5B6B00, 0x00000E0 - -gUnk_085B6BE0:: @ 085B6BE0 - .incbin "baserom.gba", 0x5B6BE0, 0x00000E0 - -gUnk_085B6CC0:: @ 085B6CC0 - .incbin "baserom.gba", 0x5B6CC0, 0x00000E0 - -gUnk_085B6DA0:: @ 085B6DA0 - .incbin "baserom.gba", 0x5B6DA0, 0x00000E0 - -gUnk_085B6E80:: @ 085B6E80 - .incbin "baserom.gba", 0x5B6E80, 0x00000C6 - -gUnk_085B6F46:: @ 085B6F46 - .incbin "baserom.gba", 0x5B6F46, 0x000001A - -gUnk_085B6F60:: @ 085B6F60 - .incbin "baserom.gba", 0x5B6F60, 0x00000E0 - -gUnk_085B7040:: @ 085B7040 - .incbin "baserom.gba", 0x5B7040, 0x00000E0 - -gUnk_085B7120:: @ 085B7120 - .incbin "baserom.gba", 0x5B7120, 0x00000E0 - -gUnk_085B7200:: @ 085B7200 - .incbin "baserom.gba", 0x5B7200, 0x00000E0 - -gUnk_085B72E0:: @ 085B72E0 - .incbin "baserom.gba", 0x5B72E0, 0x00000E0 - -gUnk_085B73C0:: @ 085B73C0 - .incbin "baserom.gba", 0x5B73C0, 0x00000E0 - -gUnk_085B74A0:: @ 085B74A0 - .incbin "baserom.gba", 0x5B74A0, 0x00000E0 - -gUnk_085B7580:: @ 085B7580 - .incbin "baserom.gba", 0x5B7580, 0x00000E0 - -gUnk_085B7660:: @ 085B7660 - .incbin "baserom.gba", 0x5B7660, 0x00000E0 - -gUnk_085B7740:: @ 085B7740 - .incbin "baserom.gba", 0x5B7740, 0x00000E0 - -gUnk_085B7820:: @ 085B7820 - .incbin "baserom.gba", 0x5B7820, 0x00000E0 - -gUnk_085B7900:: @ 085B7900 - .incbin "baserom.gba", 0x5B7900, 0x00000E0 - -gUnk_085B79E0:: @ 085B79E0 - .incbin "baserom.gba", 0x5B79E0, 0x00000E0 - -gUnk_085B7AC0:: @ 085B7AC0 - .incbin "baserom.gba", 0x5B7AC0, 0x00000E0 - -gUnk_085B7BA0:: @ 085B7BA0 - .incbin "baserom.gba", 0x5B7BA0, 0x00000E0 - -gUnk_085B7C80:: @ 085B7C80 - .incbin "baserom.gba", 0x5B7C80, 0x00000E0 - -gUnk_085B7D60:: @ 085B7D60 - .incbin "baserom.gba", 0x5B7D60, 0x00000E0 - -gUnk_085B7E40:: @ 085B7E40 - .incbin "baserom.gba", 0x5B7E40, 0x00000E0 - -gUnk_085B7F20:: @ 085B7F20 - .incbin "baserom.gba", 0x5B7F20, 0x00000E0 - -gUnk_085B8000:: @ 085B8000 - .incbin "baserom.gba", 0x5B8000, 0x00000E0 - -gUnk_085B80E0:: @ 085B80E0 - .incbin "baserom.gba", 0x5B80E0, 0x00000E0 - -gUnk_085B81C0:: @ 085B81C0 - .incbin "baserom.gba", 0x5B81C0, 0x00000E0 - -gUnk_085B82A0:: @ 085B82A0 - .incbin "baserom.gba", 0x5B82A0, 0x00000E0 - -gUnk_085B8380:: @ 085B8380 - .incbin "baserom.gba", 0x5B8380, 0x00000E0 - -gUnk_085B8460:: @ 085B8460 - .incbin "baserom.gba", 0x5B8460, 0x00000E0 - -gUnk_085B8540:: @ 085B8540 - .incbin "baserom.gba", 0x5B8540, 0x00000E0 - -gUnk_085B8620:: @ 085B8620 - .incbin "baserom.gba", 0x5B8620, 0x00000E0 - -gUnk_085B8700:: @ 085B8700 - .incbin "baserom.gba", 0x5B8700, 0x00000E0 - -gUnk_085B87E0:: @ 085B87E0 - .incbin "baserom.gba", 0x5B87E0, 0x00000E0 - -gUnk_085B88C0:: @ 085B88C0 - .incbin "baserom.gba", 0x5B88C0, 0x0000120 - -gUnk_085B89E0:: @ 085B89E0 - .incbin "baserom.gba", 0x5B89E0, 0x00000E0 - -gUnk_085B8AC0:: @ 085B8AC0 - .incbin "baserom.gba", 0x5B8AC0, 0x00000E0 - -gUnk_085B8BA0:: @ 085B8BA0 - .incbin "baserom.gba", 0x5B8BA0, 0x00000E0 - -gUnk_085B8C80:: @ 085B8C80 - .incbin "baserom.gba", 0x5B8C80, 0x00000E0 - -gUnk_085B8D60:: @ 085B8D60 - .incbin "baserom.gba", 0x5B8D60, 0x00000E0 - -gUnk_085B8E40:: @ 085B8E40 - .incbin "baserom.gba", 0x5B8E40, 0x00000E0 - -gUnk_085B8F20:: @ 085B8F20 - .incbin "baserom.gba", 0x5B8F20, 0x00000E0 - -gUnk_085B9000:: @ 085B9000 - .incbin "baserom.gba", 0x5B9000, 0x00000E0 - -gUnk_085B90E0:: @ 085B90E0 - .incbin "baserom.gba", 0x5B90E0, 0x00000E0 - -gUnk_085B91C0:: @ 085B91C0 - .incbin "baserom.gba", 0x5B91C0, 0x00000E0 - -gUnk_085B92A0:: @ 085B92A0 - .incbin "baserom.gba", 0x5B92A0, 0x00000E0 - -gUnk_085B9380:: @ 085B9380 - .incbin "baserom.gba", 0x5B9380, 0x00000E0 - -gUnk_085B9460:: @ 085B9460 - .incbin "baserom.gba", 0x5B9460, 0x00000E0 - -gUnk_085B9540:: @ 085B9540 - .incbin "baserom.gba", 0x5B9540, 0x00000E0 - -gUnk_085B9620:: @ 085B9620 - .incbin "baserom.gba", 0x5B9620, 0x00000E0 - -gUnk_085B9700:: @ 085B9700 - .incbin "baserom.gba", 0x5B9700, 0x00000E0 - -gUnk_085B97E0:: @ 085B97E0 - .incbin "baserom.gba", 0x5B97E0, 0x00000E0 - -gUnk_085B98C0:: @ 085B98C0 - .incbin "baserom.gba", 0x5B98C0, 0x00000E0 - -gUnk_085B99A0:: @ 085B99A0 - .incbin "baserom.gba", 0x5B99A0, 0x00000E0 - -gUnk_085B9A80:: @ 085B9A80 - .incbin "baserom.gba", 0x5B9A80, 0x00000E0 - -gUnk_085B9B60:: @ 085B9B60 - .incbin "baserom.gba", 0x5B9B60, 0x00000E0 - -gUnk_085B9C40:: @ 085B9C40 - .incbin "baserom.gba", 0x5B9C40, 0x00000E0 - -gUnk_085B9D20:: @ 085B9D20 - .incbin "baserom.gba", 0x5B9D20, 0x00000E0 - -gUnk_085B9E00:: @ 085B9E00 - .incbin "baserom.gba", 0x5B9E00, 0x00000E0 - -gUnk_085B9EE0:: @ 085B9EE0 - .incbin "baserom.gba", 0x5B9EE0, 0x00000E0 - -gUnk_085B9FC0:: @ 085B9FC0 - .incbin "baserom.gba", 0x5B9FC0, 0x00000E0 - -gUnk_085BA0A0:: @ 085BA0A0 - .incbin "baserom.gba", 0x5BA0A0, 0x00000E0 - -gUnk_085BA180:: @ 085BA180 - .incbin "baserom.gba", 0x5BA180, 0x00000E0 - -gUnk_085BA260:: @ 085BA260 - .incbin "baserom.gba", 0x5BA260, 0x00000E0 - -gUnk_085BA340:: @ 085BA340 - .incbin "baserom.gba", 0x5BA340, 0x00000E0 - -gUnk_085BA420:: @ 085BA420 - .incbin "baserom.gba", 0x5BA420, 0x00000E0 - -gUnk_085BA500:: @ 085BA500 - .incbin "baserom.gba", 0x5BA500, 0x00000E0 - -gUnk_085BA5E0:: @ 085BA5E0 - .incbin "baserom.gba", 0x5BA5E0, 0x00000E0 - -gUnk_085BA6C0:: @ 085BA6C0 - .incbin "baserom.gba", 0x5BA6C0, 0x00000E0 - -gUnk_085BA7A0:: @ 085BA7A0 - .incbin "baserom.gba", 0x5BA7A0, 0x00000E0 - -gUnk_085BA880:: @ 085BA880 - .incbin "baserom.gba", 0x5BA880, 0x00000E0 - -gUnk_085BA960:: @ 085BA960 - .incbin "baserom.gba", 0x5BA960, 0x00000E0 - -gUnk_085BAA40:: @ 085BAA40 - .incbin "baserom.gba", 0x5BAA40, 0x00000E0 - -gUnk_085BAB20:: @ 085BAB20 - .incbin "baserom.gba", 0x5BAB20, 0x00000E0 - -gUnk_085BAC00:: @ 085BAC00 - .incbin "baserom.gba", 0x5BAC00, 0x00000E0 - -gUnk_085BACE0:: @ 085BACE0 - .incbin "baserom.gba", 0x5BACE0, 0x00000E0 - -gUnk_085BADC0:: @ 085BADC0 - .incbin "baserom.gba", 0x5BADC0, 0x00000E0 - -gUnk_085BAEA0:: @ 085BAEA0 - .incbin "baserom.gba", 0x5BAEA0, 0x00000E0 - -gUnk_085BAF80:: @ 085BAF80 - .incbin "baserom.gba", 0x5BAF80, 0x00000E0 - -gUnk_085BB060:: @ 085BB060 - .incbin "baserom.gba", 0x5BB060, 0x00000E0 - -gUnk_085BB140:: @ 085BB140 - .incbin "baserom.gba", 0x5BB140, 0x00000E0 - -gUnk_085BB220:: @ 085BB220 - .incbin "baserom.gba", 0x5BB220, 0x00000E0 - -gUnk_085BB300:: @ 085BB300 - .incbin "baserom.gba", 0x5BB300, 0x00000E0 - -gUnk_085BB3E0:: @ 085BB3E0 - .incbin "baserom.gba", 0x5BB3E0, 0x00000E0 - -gUnk_085BB4C0:: @ 085BB4C0 - .incbin "baserom.gba", 0x5BB4C0, 0x00000E0 - -gUnk_085BB5A0:: @ 085BB5A0 - .incbin "baserom.gba", 0x5BB5A0, 0x00000E0 - -gUnk_085BB680:: @ 085BB680 - .incbin "baserom.gba", 0x5BB680, 0x00000E0 - -gUnk_085BB760:: @ 085BB760 - .incbin "baserom.gba", 0x5BB760, 0x00000E0 - -gUnk_085BB840:: @ 085BB840 - .incbin "baserom.gba", 0x5BB840, 0x00000E0 - -gUnk_085BB920:: @ 085BB920 - .incbin "baserom.gba", 0x5BB920, 0x00000E0 - -gUnk_085BBA00:: @ 085BBA00 - .incbin "baserom.gba", 0x5BBA00, 0x00000E0 - -gUnk_085BBAE0:: @ 085BBAE0 - .incbin "baserom.gba", 0x5BBAE0, 0x00000E0 - -gUnk_085BBBC0:: @ 085BBBC0 - .incbin "baserom.gba", 0x5BBBC0, 0x00000E0 - -gUnk_085BBCA0:: @ 085BBCA0 - .incbin "baserom.gba", 0x5BBCA0, 0x00000E0 - -gUnk_085BBD80:: @ 085BBD80 - .incbin "baserom.gba", 0x5BBD80, 0x00000E0 - -gUnk_085BBE60:: @ 085BBE60 - .incbin "baserom.gba", 0x5BBE60, 0x00000E0 - -gUnk_085BBF40:: @ 085BBF40 - .incbin "baserom.gba", 0x5BBF40, 0x00000E0 - -gUnk_085BC020:: @ 085BC020 - .incbin "baserom.gba", 0x5BC020, 0x00000E0 - -gUnk_085BC100:: @ 085BC100 - .incbin "baserom.gba", 0x5BC100, 0x00000E0 - -gUnk_085BC1E0:: @ 085BC1E0 - .incbin "baserom.gba", 0x5BC1E0, 0x00000E0 - -gUnk_085BC2C0:: @ 085BC2C0 - .incbin "baserom.gba", 0x5BC2C0, 0x00000E0 - -gUnk_085BC3A0:: @ 085BC3A0 - .incbin "baserom.gba", 0x5BC3A0, 0x00000E0 - -gUnk_085BC480:: @ 085BC480 - .incbin "baserom.gba", 0x5BC480, 0x00000E0 - -gUnk_085BC560:: @ 085BC560 - .incbin "baserom.gba", 0x5BC560, 0x00000E0 - -gUnk_085BC640:: @ 085BC640 - .incbin "baserom.gba", 0x5BC640, 0x00000E0 - -gUnk_085BC720:: @ 085BC720 - .incbin "baserom.gba", 0x5BC720, 0x00000E0 - -gUnk_085BC800:: @ 085BC800 - .incbin "baserom.gba", 0x5BC800, 0x00000E0 - -gUnk_085BC8E0:: @ 085BC8E0 - .incbin "baserom.gba", 0x5BC8E0, 0x00000E0 - -gUnk_085BC9C0:: @ 085BC9C0 - .incbin "baserom.gba", 0x5BC9C0, 0x00000E0 - -gUnk_085BCAA0:: @ 085BCAA0 - .incbin "baserom.gba", 0x5BCAA0, 0x00000E0 - -gUnk_085BCB80:: @ 085BCB80 - .incbin "baserom.gba", 0x5BCB80, 0x00000E0 - -gUnk_085BCC60:: @ 085BCC60 - .incbin "baserom.gba", 0x5BCC60, 0x00000E0 - -gUnk_085BCD40:: @ 085BCD40 - .incbin "baserom.gba", 0x5BCD40, 0x00000E0 - -gUnk_085BCE20:: @ 085BCE20 - .incbin "baserom.gba", 0x5BCE20, 0x00000E0 - -gUnk_085BCF00:: @ 085BCF00 - .incbin "baserom.gba", 0x5BCF00, 0x00000E0 - -gUnk_085BCFE0:: @ 085BCFE0 - .incbin "baserom.gba", 0x5BCFE0, 0x00000E0 - -gUnk_085BD0C0:: @ 085BD0C0 - .incbin "baserom.gba", 0x5BD0C0, 0x00000E0 - -gUnk_085BD1A0:: @ 085BD1A0 - .incbin "baserom.gba", 0x5BD1A0, 0x00000E0 - -gUnk_085BD280:: @ 085BD280 - .incbin "baserom.gba", 0x5BD280, 0x00000E0 - -gUnk_085BD360:: @ 085BD360 - .incbin "baserom.gba", 0x5BD360, 0x00000A4 - -gUnk_085BD404:: @ 085BD404 - .incbin "baserom.gba", 0x5BD404, 0x000003C - -gUnk_085BD440:: @ 085BD440 - .incbin "baserom.gba", 0x5BD440, 0x00000E0 - -gUnk_085BD520:: @ 085BD520 - .incbin "baserom.gba", 0x5BD520, 0x00029D8 - -gUnk_085BFEF8:: @ 085BFEF8 - .incbin "baserom.gba", 0x5BFEF8, 0x000002E - -gUnk_085BFF26:: @ 085BFF26 - .incbin "baserom.gba", 0x5BFF26, 0x00000AE - -gUnk_085BFFD4:: @ 085BFFD4 - .incbin "baserom.gba", 0x5BFFD4, 0x0000024 - -gUnk_085BFFF8:: @ 085BFFF8 - .incbin "baserom.gba", 0x5BFFF8, 0x0000007 - -gUnk_085BFFFF:: @ 085BFFFF - .incbin "baserom.gba", 0x5BFFFF, 0x000081D - -gUnk_085C081C:: @ 085C081C - .incbin "baserom.gba", 0x5C081C, 0x0001163 - -gUnk_085C197F:: @ 085C197F - .incbin "baserom.gba", 0x5C197F, 0x00003D1 - -gUnk_085C1D50:: @ 085C1D50 - .incbin "baserom.gba", 0x5C1D50, 0x0000A0C - -gUnk_085C275C:: @ 085C275C - .incbin "baserom.gba", 0x5C275C, 0x0000AD6 - -gUnk_085C3232:: @ 085C3232 - .incbin "baserom.gba", 0x5C3232, 0x00008CE - -gUnk_085C3B00:: @ 085C3B00 - .incbin "baserom.gba", 0x5C3B00, 0x0000438 - -gUnk_085C3F38:: @ 085C3F38 - .incbin "baserom.gba", 0x5C3F38, 0x00006E8 - -gUnk_085C4620:: @ 085C4620 - .incbin "baserom.gba", 0x5C4620, 0x0000500 - -gUnk_085C4B20:: @ 085C4B20 - .incbin "baserom.gba", 0x5C4B20, 0x0000280 - -gUnk_085C4DA0:: @ 085C4DA0 - .incbin "baserom.gba", 0x5C4DA0, 0x00000C0 - -gUnk_085C4E60:: @ 085C4E60 - .incbin "baserom.gba", 0x5C4E60, 0x00000C0 - -gUnk_085C4F20:: @ 085C4F20 - .incbin "baserom.gba", 0x5C4F20, 0x00000C0 - -gUnk_085C4FE0:: @ 085C4FE0 - .incbin "baserom.gba", 0x5C4FE0, 0x000B021 - -gUnk_085D0001:: @ 085D0001 - .incbin "baserom.gba", 0x5D0001, 0x0000106 - -gUnk_085D0107:: @ 085D0107 - .incbin "baserom.gba", 0x5D0107, 0x0000055 - -gUnk_085D015C:: @ 085D015C - .incbin "baserom.gba", 0x5D015C, 0x000045B - -gUnk_085D05B7:: @ 085D05B7 - .incbin "baserom.gba", 0x5D05B7, 0x00003A6 - -gUnk_085D095D:: @ 085D095D - .incbin "baserom.gba", 0x5D095D, 0x0001E00 - -gUnk_085D275D:: @ 085D275D - .incbin "baserom.gba", 0x5D275D, 0x00009A3 - -gUnk_085D3100:: @ 085D3100 - .incbin "baserom.gba", 0x5D3100, 0x000DC31 - -gUnk_085E0D31:: @ 085E0D31 - .incbin "baserom.gba", 0x5E0D31, 0x00045BC - -gUnk_085E52ED:: @ 085E52ED - .incbin "baserom.gba", 0x5E52ED, 0x0004D8F - -gUnk_085EA07C:: @ 085EA07C - .incbin "baserom.gba", 0x5EA07C, 0x0005F84 - -gUnk_085F0000:: @ 085F0000 - .incbin "baserom.gba", 0x5F0000, 0x0000006 - -gUnk_085F0006:: @ 085F0006 - .incbin "baserom.gba", 0x5F0006, 0x0000002 - -gUnk_085F0008:: @ 085F0008 - .incbin "baserom.gba", 0x5F0008, 0x0000002 - -gUnk_085F000A:: @ 085F000A - .incbin "baserom.gba", 0x5F000A, 0x0000011 - -gUnk_085F001B:: @ 085F001B - .incbin "baserom.gba", 0x5F001B, 0x0000003 - -gUnk_085F001E:: @ 085F001E - .incbin "baserom.gba", 0x5F001E, 0x000001E - -gUnk_085F003C:: @ 085F003C - .incbin "baserom.gba", 0x5F003C, 0x0000036 - -gUnk_085F0072:: @ 085F0072 - .incbin "baserom.gba", 0x5F0072, 0x0000006 - -gUnk_085F0078:: @ 085F0078 - .incbin "baserom.gba", 0x5F0078, 0x0000014 - -gUnk_085F008C:: @ 085F008C - .incbin "baserom.gba", 0x5F008C, 0x0000376 - -gUnk_085F0402:: @ 085F0402 - .incbin "baserom.gba", 0x5F0402, 0x0000032 - -gUnk_085F0434:: @ 085F0434 - .incbin "baserom.gba", 0x5F0434, 0x000000F - -gUnk_085F0443:: @ 085F0443 - .incbin "baserom.gba", 0x5F0443, 0x0000008 - -gUnk_085F044B:: @ 085F044B - .incbin "baserom.gba", 0x5F044B, 0x000000E - -gUnk_085F0459:: @ 085F0459 - .incbin "baserom.gba", 0x5F0459, 0x0000005 - -gUnk_085F045E:: @ 085F045E - .incbin "baserom.gba", 0x5F045E, 0x00003A9 - -gUnk_085F0807:: @ 085F0807 - .incbin "baserom.gba", 0x5F0807, 0x0000057 - -gUnk_085F085E:: @ 085F085E - .incbin "baserom.gba", 0x5F085E, 0x000F259 - -gUnk_085FFAB7:: @ 085FFAB7 - .incbin "baserom.gba", 0x5FFAB7, 0x0000050 - -gUnk_085FFB07:: @ 085FFB07 - .incbin "baserom.gba", 0x5FFB07, 0x00004F8 - -gUnk_085FFFFF:: @ 085FFFFF - .incbin "baserom.gba", 0x5FFFFF, 0x0000001 - -gUnk_08600000:: @ 08600000 - .incbin "baserom.gba", 0x600000, 0x0000001 - -gUnk_08600001:: @ 08600001 - .incbin "baserom.gba", 0x600001, 0x0000005 - -gUnk_08600006:: @ 08600006 - .incbin "baserom.gba", 0x600006, 0x00000E3 - -gUnk_086000E9:: @ 086000E9 - .incbin "baserom.gba", 0x6000E9, 0x0000237 - -gUnk_08600320:: @ 08600320 - .incbin "baserom.gba", 0x600320, 0x0000314 - -gUnk_08600634:: @ 08600634 - .incbin "baserom.gba", 0x600634, 0x00000FC - -gUnk_08600730:: @ 08600730 - .incbin "baserom.gba", 0x600730, 0x00000D8 - -gUnk_08600808:: @ 08600808 - .incbin "baserom.gba", 0x600808, 0x0003458 - -gUnk_08603C60:: @ 08603C60 - .incbin "baserom.gba", 0x603C60, 0x000177E - -gUnk_086053DE:: @ 086053DE - .incbin "baserom.gba", 0x6053DE, 0x0000421 - -gUnk_086057FF:: @ 086057FF - .incbin "baserom.gba", 0x6057FF, 0x0000F04 - -gUnk_08606703:: @ 08606703 - .incbin "baserom.gba", 0x606703, 0x0000750 - -gUnk_08606E53:: @ 08606E53 - .incbin "baserom.gba", 0x606E53, 0x00010AD - -gUnk_08607F00:: @ 08607F00 - .incbin "baserom.gba", 0x607F00, 0x0000052 - -gUnk_08607F52:: @ 08607F52 - .incbin "baserom.gba", 0x607F52, 0x00009AE - -gUnk_08608900:: @ 08608900 - .incbin "baserom.gba", 0x608900, 0x0005BEA - -gUnk_0860E4EA:: @ 0860E4EA - .incbin "baserom.gba", 0x60E4EA, 0x0000D01 - -gUnk_0860F1EB:: @ 0860F1EB - .incbin "baserom.gba", 0x60F1EB, 0x0000405 - -gUnk_0860F5F0:: @ 0860F5F0 - .incbin "baserom.gba", 0x60F5F0, 0x0000300 - -gUnk_0860F8F0:: @ 0860F8F0 - .incbin "baserom.gba", 0x60F8F0, 0x000006B - -gUnk_0860F95B:: @ 0860F95B - .incbin "baserom.gba", 0x60F95B, 0x00003A8 - -gUnk_0860FD03:: @ 0860FD03 - .incbin "baserom.gba", 0x60FD03, 0x00002FD - -gUnk_08610000:: @ 08610000 - .incbin "baserom.gba", 0x610000, 0x0000002 - -gUnk_08610002:: @ 08610002 - .incbin "baserom.gba", 0x610002, 0x0000002 - -gUnk_08610004:: @ 08610004 - .incbin "baserom.gba", 0x610004, 0x0000001 - -gUnk_08610005:: @ 08610005 - .incbin "baserom.gba", 0x610005, 0x0000001 - -gUnk_08610006:: @ 08610006 - .incbin "baserom.gba", 0x610006, 0x0000001 - -gUnk_08610007:: @ 08610007 - .incbin "baserom.gba", 0x610007, 0x0000001 - -gUnk_08610008:: @ 08610008 - .incbin "baserom.gba", 0x610008, 0x0000002 - -gUnk_0861000A:: @ 0861000A - .incbin "baserom.gba", 0x61000A, 0x0000001 - -gUnk_0861000B:: @ 0861000B - .incbin "baserom.gba", 0x61000B, 0x0000004 - -gUnk_0861000F:: @ 0861000F - .incbin "baserom.gba", 0x61000F, 0x0000004 - -gUnk_08610013:: @ 08610013 - .incbin "baserom.gba", 0x610013, 0x0000001 - -gUnk_08610014:: @ 08610014 - .incbin "baserom.gba", 0x610014, 0x000000A - -gUnk_0861001E:: @ 0861001E - .incbin "baserom.gba", 0x61001E, 0x0000002 - -gUnk_08610020:: @ 08610020 - .incbin "baserom.gba", 0x610020, 0x0000006 - -gUnk_08610026:: @ 08610026 - .incbin "baserom.gba", 0x610026, 0x000000A - -gUnk_08610030:: @ 08610030 - .incbin "baserom.gba", 0x610030, 0x000000C - -gUnk_0861003C:: @ 0861003C - .incbin "baserom.gba", 0x61003C, 0x0000004 - -gUnk_08610040:: @ 08610040 - .incbin "baserom.gba", 0x610040, 0x000000A - -gUnk_0861004A:: @ 0861004A - .incbin "baserom.gba", 0x61004A, 0x0000006 - -gUnk_08610050:: @ 08610050 - .incbin "baserom.gba", 0x610050, 0x0000008 - -gUnk_08610058:: @ 08610058 - .incbin "baserom.gba", 0x610058, 0x0000002 - -gUnk_0861005A:: @ 0861005A - .incbin "baserom.gba", 0x61005A, 0x0000002 - -gUnk_0861005C:: @ 0861005C - .incbin "baserom.gba", 0x61005C, 0x0000004 - -gUnk_08610060:: @ 08610060 - .incbin "baserom.gba", 0x610060, 0x0000008 - -gUnk_08610068:: @ 08610068 - .incbin "baserom.gba", 0x610068, 0x000000E - -gUnk_08610076:: @ 08610076 - .incbin "baserom.gba", 0x610076, 0x0000002 - -gUnk_08610078:: @ 08610078 - .incbin "baserom.gba", 0x610078, 0x0000008 - -gUnk_08610080:: @ 08610080 - .incbin "baserom.gba", 0x610080, 0x0000010 - -gUnk_08610090:: @ 08610090 - .incbin "baserom.gba", 0x610090, 0x0000008 - -gUnk_08610098:: @ 08610098 - .incbin "baserom.gba", 0x610098, 0x0000010 - -gUnk_086100A8:: @ 086100A8 - .incbin "baserom.gba", 0x6100A8, 0x0000010 - -gUnk_086100B8:: @ 086100B8 - .incbin "baserom.gba", 0x6100B8, 0x0000048 - -gUnk_08610100:: @ 08610100 - .incbin "baserom.gba", 0x610100, 0x0000008 - -gUnk_08610108:: @ 08610108 - .incbin "baserom.gba", 0x610108, 0x0000014 - -gUnk_0861011C:: @ 0861011C - .incbin "baserom.gba", 0x61011C, 0x0000008 - -gUnk_08610124:: @ 08610124 - .incbin "baserom.gba", 0x610124, 0x000001C - -gUnk_08610140:: @ 08610140 - .incbin "baserom.gba", 0x610140, 0x0000008 - -gUnk_08610148:: @ 08610148 - .incbin "baserom.gba", 0x610148, 0x0000020 - -gUnk_08610168:: @ 08610168 - .incbin "baserom.gba", 0x610168, 0x0000018 - -gUnk_08610180:: @ 08610180 - .incbin "baserom.gba", 0x610180, 0x0000030 - -gUnk_086101B0:: @ 086101B0 - .incbin "baserom.gba", 0x6101B0, 0x0000010 - -gUnk_086101C0:: @ 086101C0 - .incbin "baserom.gba", 0x6101C0, 0x0000008 - -gUnk_086101C8:: @ 086101C8 - .incbin "baserom.gba", 0x6101C8, 0x0000040 - -gUnk_08610208:: @ 08610208 - .incbin "baserom.gba", 0x610208, 0x0000020 - -gUnk_08610228:: @ 08610228 - .incbin "baserom.gba", 0x610228, 0x0000010 - -gUnk_08610238:: @ 08610238 - .incbin "baserom.gba", 0x610238, 0x0000028 - -gUnk_08610260:: @ 08610260 - .incbin "baserom.gba", 0x610260, 0x0000010 - -gUnk_08610270:: @ 08610270 - .incbin "baserom.gba", 0x610270, 0x0000008 - -gUnk_08610278:: @ 08610278 - .incbin "baserom.gba", 0x610278, 0x0000010 - -gUnk_08610288:: @ 08610288 - .incbin "baserom.gba", 0x610288, 0x0000080 - -gUnk_08610308:: @ 08610308 - .incbin "baserom.gba", 0x610308, 0x0000018 - -gUnk_08610320:: @ 08610320 - .incbin "baserom.gba", 0x610320, 0x0000008 - -gUnk_08610328:: @ 08610328 - .incbin "baserom.gba", 0x610328, 0x0000008 - -gUnk_08610330:: @ 08610330 - .incbin "baserom.gba", 0x610330, 0x0000008 - -gUnk_08610338:: @ 08610338 - .incbin "baserom.gba", 0x610338, 0x0000010 - -gUnk_08610348:: @ 08610348 - .incbin "baserom.gba", 0x610348, 0x0000018 - -gUnk_08610360:: @ 08610360 - .incbin "baserom.gba", 0x610360, 0x0000038 - -gUnk_08610398:: @ 08610398 - .incbin "baserom.gba", 0x610398, 0x0000069 - -gUnk_08610401:: @ 08610401 - .incbin "baserom.gba", 0x610401, 0x0000001 - -gUnk_08610402:: @ 08610402 - .incbin "baserom.gba", 0x610402, 0x0000041 - -gUnk_08610443:: @ 08610443 - .incbin "baserom.gba", 0x610443, 0x0000001 - -gUnk_08610444:: @ 08610444 - .incbin "baserom.gba", 0x610444, 0x0000015 - -gUnk_08610459:: @ 08610459 - .incbin "baserom.gba", 0x610459, 0x0000057 - -gUnk_086104B0:: @ 086104B0 - .incbin "baserom.gba", 0x6104B0, 0x0000300 - -gUnk_086107B0:: @ 086107B0 - .incbin "baserom.gba", 0x6107B0, 0x0000055 - -gUnk_08610805:: @ 08610805 - .incbin "baserom.gba", 0x610805, 0x0000001 - -gUnk_08610806:: @ 08610806 - .incbin "baserom.gba", 0x610806, 0x0000001 - -gUnk_08610807:: @ 08610807 - .incbin "baserom.gba", 0x610807, 0x0000059 - -gUnk_08610860:: @ 08610860 - .incbin "baserom.gba", 0x610860, 0x000059E - -gUnk_08610DFE:: @ 08610DFE - .incbin "baserom.gba", 0x610DFE, 0x0002212 - -gUnk_08613010:: @ 08613010 - .incbin "baserom.gba", 0x613010, 0x0000334 - -gUnk_08613344:: @ 08613344 - .incbin "baserom.gba", 0x613344, 0x00065DE - -gUnk_08619922:: @ 08619922 - .incbin "baserom.gba", 0x619922, 0x00006DE - -gUnk_0861A000:: @ 0861A000 - .incbin "baserom.gba", 0x61A000, 0x0000BCC - -gUnk_0861ABCC:: @ 0861ABCC - .incbin "baserom.gba", 0x61ABCC, 0x0001181 - -gUnk_0861BD4D:: @ 0861BD4D - .incbin "baserom.gba", 0x61BD4D, 0x0005403 - -gUnk_08621150:: @ 08621150 - .incbin "baserom.gba", 0x621150, 0x00010D5 - -gUnk_08622225:: @ 08622225 - .incbin "baserom.gba", 0x622225, 0x0000020 - -gUnk_08622245:: @ 08622245 - .incbin "baserom.gba", 0x622245, 0x00001C2 - -gUnk_08622407:: @ 08622407 - .incbin "baserom.gba", 0x622407, 0x000203A - -gUnk_08624441:: @ 08624441 - .incbin "baserom.gba", 0x624441, 0x000A521 - -gUnk_0862E962:: @ 0862E962 - .incbin "baserom.gba", 0x62E962, 0x00016E1 - -gUnk_08630043:: @ 08630043 - .incbin "baserom.gba", 0x630043, 0x00000ED - -gUnk_08630130:: @ 08630130 - .incbin "baserom.gba", 0x630130, 0x0000312 - -gUnk_08630442:: @ 08630442 - .incbin "baserom.gba", 0x630442, 0x0000120 - -gUnk_08630562:: @ 08630562 - .incbin "baserom.gba", 0x630562, 0x00001B0 - -gUnk_08630712:: @ 08630712 - .incbin "baserom.gba", 0x630712, 0x0000150 - -gUnk_08630862:: @ 08630862 - .incbin "baserom.gba", 0x630862, 0x0005CC3 - -gUnk_08636525:: @ 08636525 - .incbin "baserom.gba", 0x636525, 0x0002D5C - -gUnk_08639281:: @ 08639281 - .incbin "baserom.gba", 0x639281, 0x0006E86 - -gUnk_08640107:: @ 08640107 - .incbin "baserom.gba", 0x640107, 0x0000219 - -gUnk_08640320:: @ 08640320 - .incbin "baserom.gba", 0x640320, 0x0000123 - -gUnk_08640443:: @ 08640443 - .incbin "baserom.gba", 0x640443, 0x0000B9E - -gUnk_08640FE1:: @ 08640FE1 - .incbin "baserom.gba", 0x640FE1, 0x0001296 - -gUnk_08642277:: @ 08642277 - .incbin "baserom.gba", 0x642277, 0x000218C - -gUnk_08644403:: @ 08644403 - .incbin "baserom.gba", 0x644403, 0x000081C - -gUnk_08644C1F:: @ 08644C1F - .incbin "baserom.gba", 0x644C1F, 0x0000914 - -gUnk_08645533:: @ 08645533 - .incbin "baserom.gba", 0x645533, 0x0000003 - -gUnk_08645536:: @ 08645536 - .incbin "baserom.gba", 0x645536, 0x00001EF - -gUnk_08645725:: @ 08645725 - .incbin "baserom.gba", 0x645725, 0x0005330 - -gUnk_0864AA55:: @ 0864AA55 - .incbin "baserom.gba", 0x64AA55, 0x00041B3 - -gUnk_0864EC08:: @ 0864EC08 - .incbin "baserom.gba", 0x64EC08, 0x00013F9 - -gUnk_08650001:: @ 08650001 - .incbin "baserom.gba", 0x650001, 0x000000F - -gUnk_08650010:: @ 08650010 - .incbin "baserom.gba", 0x650010, 0x0000030 - -gUnk_08650040:: @ 08650040 - .incbin "baserom.gba", 0x650040, 0x0000100 - -gUnk_08650140:: @ 08650140 - .incbin "baserom.gba", 0x650140, 0x00002C0 - -gUnk_08650400:: @ 08650400 - .incbin "baserom.gba", 0x650400, 0x0000064 - -gUnk_08650464:: @ 08650464 - .incbin "baserom.gba", 0x650464, 0x000069C - -gUnk_08650B00:: @ 08650B00 - .incbin "baserom.gba", 0x650B00, 0x0000400 - -gUnk_08650F00:: @ 08650F00 - .incbin "baserom.gba", 0x650F00, 0x0000003 - -gUnk_08650F03:: @ 08650F03 - .incbin "baserom.gba", 0x650F03, 0x000131F - -gUnk_08652222:: @ 08652222 - .incbin "baserom.gba", 0x652222, 0x00009F6 - -gUnk_08652C18:: @ 08652C18 - .incbin "baserom.gba", 0x652C18, 0x00006FC - -gUnk_08653314:: @ 08653314 - .incbin "baserom.gba", 0x653314, 0x00004EC - -gUnk_08653800:: @ 08653800 - .incbin "baserom.gba", 0x653800, 0x0001E43 - -gUnk_08655643:: @ 08655643 - .incbin "baserom.gba", 0x655643, 0x0002017 - -gUnk_0865765A:: @ 0865765A - .incbin "baserom.gba", 0x65765A, 0x00017AA - -gUnk_08658E04:: @ 08658E04 - .incbin "baserom.gba", 0x658E04, 0x000581F - -gUnk_0865E623:: @ 0865E623 - .incbin "baserom.gba", 0x65E623, 0x00019DD - -gUnk_08660000:: @ 08660000 - .incbin "baserom.gba", 0x660000, 0x0000006 - -gUnk_08660006:: @ 08660006 - .incbin "baserom.gba", 0x660006, 0x00002FA - -gUnk_08660300:: @ 08660300 - .incbin "baserom.gba", 0x660300, 0x00002B7 - -gUnk_086605B7:: @ 086605B7 - .incbin "baserom.gba", 0x6605B7, 0x00002AF - -gUnk_08660866:: @ 08660866 - .incbin "baserom.gba", 0x660866, 0x00012AA - -gUnk_08661B10:: @ 08661B10 - .incbin "baserom.gba", 0x661B10, 0x0000400 - -gUnk_08661F10:: @ 08661F10 - .incbin "baserom.gba", 0x661F10, 0x0000972 - -gUnk_08662882:: @ 08662882 - .incbin "baserom.gba", 0x662882, 0x0000BC1 - -gUnk_08663443:: @ 08663443 - .incbin "baserom.gba", 0x663443, 0x0000F4D - -gUnk_08664390:: @ 08664390 - .incbin "baserom.gba", 0x664390, 0x000003C - -gUnk_086643CC:: @ 086643CC - .incbin "baserom.gba", 0x6643CC, 0x0000067 - -gUnk_08664433:: @ 08664433 - .incbin "baserom.gba", 0x664433, 0x0000F11 - -gUnk_08665344:: @ 08665344 - .incbin "baserom.gba", 0x665344, 0x0000223 - -gUnk_08665567:: @ 08665567 - .incbin "baserom.gba", 0x665567, 0x0000DCD - -gUnk_08666334:: @ 08666334 - .incbin "baserom.gba", 0x666334, 0x000021F - -gUnk_08666553:: @ 08666553 - .incbin "baserom.gba", 0x666553, 0x00000AE - -gUnk_08666601:: @ 08666601 - .incbin "baserom.gba", 0x666601, 0x0000021 - -gUnk_08666622:: @ 08666622 - .incbin "baserom.gba", 0x666622, 0x0000044 - -gUnk_08666666:: @ 08666666 - .incbin "baserom.gba", 0x666666, 0x0000117 - -gUnk_0866677D:: @ 0866677D - .incbin "baserom.gba", 0x66677D, 0x00000A6 - -gUnk_08666823:: @ 08666823 - .incbin "baserom.gba", 0x666823, 0x0000DF3 - -gUnk_08667616:: @ 08667616 - .incbin "baserom.gba", 0x667616, 0x0000151 - -gUnk_08667767:: @ 08667767 - .incbin "baserom.gba", 0x667767, 0x0000748 - -gUnk_08667EAF:: @ 08667EAF - .incbin "baserom.gba", 0x667EAF, 0x0000151 - -gUnk_08668000:: @ 08668000 - .incbin "baserom.gba", 0x668000, 0x0001999 - -gUnk_08669999:: @ 08669999 - .incbin "baserom.gba", 0x669999, 0x000056F - -gUnk_08669F08:: @ 08669F08 - .incbin "baserom.gba", 0x669F08, 0x0000541 - -gUnk_0866A449:: @ 0866A449 - .incbin "baserom.gba", 0x66A449, 0x000185C - -gUnk_0866BCA5:: @ 0866BCA5 - .incbin "baserom.gba", 0x66BCA5, 0x0000292 - -gUnk_0866BF37:: @ 0866BF37 - .incbin "baserom.gba", 0x66BF37, 0x00023CC - -gUnk_0866E303:: @ 0866E303 - .incbin "baserom.gba", 0x66E303, 0x0000F20 - -gUnk_0866F223:: @ 0866F223 - .incbin "baserom.gba", 0x66F223, 0x0000DDD - -gUnk_08670000:: @ 08670000 - .incbin "baserom.gba", 0x670000, 0x0000001 - -gUnk_08670001:: @ 08670001 - .incbin "baserom.gba", 0x670001, 0x0000001 - -gUnk_08670002:: @ 08670002 - .incbin "baserom.gba", 0x670002, 0x0000002 - -gUnk_08670004:: @ 08670004 - .incbin "baserom.gba", 0x670004, 0x0000002 - -gUnk_08670006:: @ 08670006 - .incbin "baserom.gba", 0x670006, 0x0000001 - -gUnk_08670007:: @ 08670007 - .incbin "baserom.gba", 0x670007, 0x0000001 - -gUnk_08670008:: @ 08670008 - .incbin "baserom.gba", 0x670008, 0x0000002 - -gUnk_0867000A:: @ 0867000A - .incbin "baserom.gba", 0x67000A, 0x0000001 - -gUnk_0867000B:: @ 0867000B - .incbin "baserom.gba", 0x67000B, 0x0000004 - -gUnk_0867000F:: @ 0867000F - .incbin "baserom.gba", 0x67000F, 0x0000001 - -gUnk_08670010:: @ 08670010 - .incbin "baserom.gba", 0x670010, 0x0000001 - -gUnk_08670011:: @ 08670011 - .incbin "baserom.gba", 0x670011, 0x0000003 - -gUnk_08670014:: @ 08670014 - .incbin "baserom.gba", 0x670014, 0x0000004 - -gUnk_08670018:: @ 08670018 - .incbin "baserom.gba", 0x670018, 0x0000024 - -gUnk_0867003C:: @ 0867003C - .incbin "baserom.gba", 0x67003C, 0x000005A - -gUnk_08670096:: @ 08670096 - .incbin "baserom.gba", 0x670096, 0x0000002 - -gUnk_08670098:: @ 08670098 - .incbin "baserom.gba", 0x670098, 0x0000128 - -gUnk_086701C0:: @ 086701C0 - .incbin "baserom.gba", 0x6701C0, 0x0000018 - -gUnk_086701D8:: @ 086701D8 - .incbin "baserom.gba", 0x6701D8, 0x0000020 - -gUnk_086701F8:: @ 086701F8 - .incbin "baserom.gba", 0x6701F8, 0x0000028 - -gUnk_08670220:: @ 08670220 - .incbin "baserom.gba", 0x670220, 0x0000138 - -gUnk_08670358:: @ 08670358 - .incbin "baserom.gba", 0x670358, 0x00000A9 - -gUnk_08670401:: @ 08670401 - .incbin "baserom.gba", 0x670401, 0x0000043 - -gUnk_08670444:: @ 08670444 - .incbin "baserom.gba", 0x670444, 0x0000015 - -gUnk_08670459:: @ 08670459 - .incbin "baserom.gba", 0x670459, 0x00003AE - -gUnk_08670807:: @ 08670807 - .incbin "baserom.gba", 0x670807, 0x0000B4F - -gUnk_08671356:: @ 08671356 - .incbin "baserom.gba", 0x671356, 0x0002875 - -gUnk_08673BCB:: @ 08673BCB - .incbin "baserom.gba", 0x673BCB, 0x0000036 - -gUnk_08673C01:: @ 08673C01 - .incbin "baserom.gba", 0x673C01, 0x0001495 - -gUnk_08675096:: @ 08675096 - .incbin "baserom.gba", 0x675096, 0x000016A - -gUnk_08675200:: @ 08675200 - .incbin "baserom.gba", 0x675200, 0x0003688 - -gUnk_08678888:: @ 08678888 - .incbin "baserom.gba", 0x678888, 0x000010F - -gUnk_08678997:: @ 08678997 - .incbin "baserom.gba", 0x678997, 0x0001960 - -gUnk_0867A2F7:: @ 0867A2F7 - .incbin "baserom.gba", 0x67A2F7, 0x0002C5C - -gUnk_0867CF53:: @ 0867CF53 - .incbin "baserom.gba", 0x67CF53, 0x00030AD - -gUnk_08680000:: @ 08680000 - .incbin "baserom.gba", 0x680000, 0x00000FF - -gUnk_086800FF:: @ 086800FF - .incbin "baserom.gba", 0x6800FF, 0x0000768 - -gUnk_08680867:: @ 08680867 - .incbin "baserom.gba", 0x680867, 0x0000001 - -gUnk_08680868:: @ 08680868 - .incbin "baserom.gba", 0x680868, 0x0004CEE - -gUnk_08685556:: @ 08685556 - .incbin "baserom.gba", 0x685556, 0x00032C9 - -gUnk_0868881F:: @ 0868881F - .incbin "baserom.gba", 0x68881F, 0x000004B - -gUnk_0868886A:: @ 0868886A - .incbin "baserom.gba", 0x68886A, 0x0007796 - -gUnk_08690000:: @ 08690000 - .incbin "baserom.gba", 0x690000, 0x0000868 - -gUnk_08690868:: @ 08690868 - .incbin "baserom.gba", 0x690868, 0x0000FDA - -gUnk_08691842:: @ 08691842 - .incbin "baserom.gba", 0x691842, 0x0000CF8 - -gUnk_0869253A:: @ 0869253A - .incbin "baserom.gba", 0x69253A, 0x0000040 - -gUnk_0869257A:: @ 0869257A - .incbin "baserom.gba", 0x69257A, 0x0000060 - -gUnk_086925DA:: @ 086925DA - .incbin "baserom.gba", 0x6925DA, 0x0000040 - -gUnk_0869261A:: @ 0869261A - .incbin "baserom.gba", 0x69261A, 0x0000086 - -gUnk_086926A0:: @ 086926A0 - .incbin "baserom.gba", 0x6926A0, 0x000001A - -gUnk_086926BA:: @ 086926BA - .incbin "baserom.gba", 0x6926BA, 0x0000090 - -gUnk_0869274A:: @ 0869274A - .incbin "baserom.gba", 0x69274A, 0x0000009 - -gUnk_08692753:: @ 08692753 - .incbin "baserom.gba", 0x692753, 0x0000006 - -gUnk_08692759:: @ 08692759 - .incbin "baserom.gba", 0x692759, 0x0000027 - -gUnk_08692780:: @ 08692780 - .incbin "baserom.gba", 0x692780, 0x00000E0 - -gUnk_08692860:: @ 08692860 - .incbin "baserom.gba", 0x692860, 0x00000E0 - -gUnk_08692940:: @ 08692940 - .incbin "baserom.gba", 0x692940, 0x00000E0 - -gUnk_08692A20:: @ 08692A20 - .incbin "baserom.gba", 0x692A20, 0x00000E0 - -gUnk_08692B00:: @ 08692B00 - .incbin "baserom.gba", 0x692B00, 0x00000E0 - -gUnk_08692BE0:: @ 08692BE0 - .incbin "baserom.gba", 0x692BE0, 0x00000E0 - -gUnk_08692CC0:: @ 08692CC0 - .incbin "baserom.gba", 0x692CC0, 0x00000E0 - -gUnk_08692DA0:: @ 08692DA0 - .incbin "baserom.gba", 0x692DA0, 0x0000062 - -gUnk_08692E02:: @ 08692E02 - .incbin "baserom.gba", 0x692E02, 0x000007E - -gUnk_08692E80:: @ 08692E80 - .incbin "baserom.gba", 0x692E80, 0x00000E0 - -gUnk_08692F60:: @ 08692F60 - .incbin "baserom.gba", 0x692F60, 0x0000BE9 - -gUnk_08693B49:: @ 08693B49 - .incbin "baserom.gba", 0x693B49, 0x00001F1 - -gUnk_08693D3A:: @ 08693D3A - .incbin "baserom.gba", 0x693D3A, 0x000014C - -gUnk_08693E86:: @ 08693E86 - .incbin "baserom.gba", 0x693E86, 0x00000C3 - -gUnk_08693F49:: @ 08693F49 - .incbin "baserom.gba", 0x693F49, 0x0001800 - -gUnk_08695749:: @ 08695749 - .incbin "baserom.gba", 0x695749, 0x0000347 - -gUnk_08695A90:: @ 08695A90 - .incbin "baserom.gba", 0x695A90, 0x0000383 - -gUnk_08695E13:: @ 08695E13 - .incbin "baserom.gba", 0x695E13, 0x0000327 - -gUnk_0869613A:: @ 0869613A - .incbin "baserom.gba", 0x69613A, 0x000007C - -gUnk_086961B6:: @ 086961B6 - .incbin "baserom.gba", 0x6961B6, 0x0000DAA - -gUnk_08696F60:: @ 08696F60 - .incbin "baserom.gba", 0x696F60, 0x0000980 - -gUnk_086978E0:: @ 086978E0 - .incbin "baserom.gba", 0x6978E0, 0x0000668 - -gUnk_08697F48:: @ 08697F48 - .incbin "baserom.gba", 0x697F48, 0x0001998 - -gUnk_086998E0:: @ 086998E0 - .incbin "baserom.gba", 0x6998E0, 0x0006720 - -gUnk_086A0000:: @ 086A0000 - .incbin "baserom.gba", 0x6A0000, 0x000141A - -gUnk_086A141A:: @ 086A141A - .incbin "baserom.gba", 0x6A141A, 0x00004C6 - -gUnk_086A18E0:: @ 086A18E0 - .incbin "baserom.gba", 0x6A18E0, 0x0001180 - -gUnk_086A2A60:: @ 086A2A60 - .incbin "baserom.gba", 0x6A2A60, 0x0000480 - -gUnk_086A2EE0:: @ 086A2EE0 - .incbin "baserom.gba", 0x6A2EE0, 0x0001423 - -gUnk_086A4303:: @ 086A4303 - .incbin "baserom.gba", 0x6A4303, 0x0000C03 - -gUnk_086A4F06:: @ 086A4F06 - .incbin "baserom.gba", 0x6A4F06, 0x000281C - -gUnk_086A7722:: @ 086A7722 - .incbin "baserom.gba", 0x6A7722, 0x0000268 - -gUnk_086A798A:: @ 086A798A - .incbin "baserom.gba", 0x6A798A, 0x0002DEE - -gUnk_086AA778:: @ 086AA778 - .incbin "baserom.gba", 0x6AA778, 0x00002F0 - -gUnk_086AAA68:: @ 086AAA68 - .incbin "baserom.gba", 0x6AAA68, 0x0000478 - -gUnk_086AAEE0:: @ 086AAEE0 - .incbin "baserom.gba", 0x6AAEE0, 0x0004EC7 - -gUnk_086AFDA7:: @ 086AFDA7 - .incbin "baserom.gba", 0x6AFDA7, 0x0000272 - -gUnk_086B0019:: @ 086B0019 - .incbin "baserom.gba", 0x6B0019, 0x000002C - -gUnk_086B0045:: @ 086B0045 - .incbin "baserom.gba", 0x6B0045, 0x00000C2 - -gUnk_086B0107:: @ 086B0107 - .incbin "baserom.gba", 0x6B0107, 0x0000763 - -gUnk_086B086A:: @ 086B086A - .incbin "baserom.gba", 0x6B086A, 0x0001070 - -gUnk_086B18DA:: @ 086B18DA - .incbin "baserom.gba", 0x6B18DA, 0x000028A - -gUnk_086B1B64:: @ 086B1B64 - .incbin "baserom.gba", 0x6B1B64, 0x00003AC - -gUnk_086B1F10:: @ 086B1F10 - .incbin "baserom.gba", 0x6B1F10, 0x0000F0D - -gUnk_086B2E1D:: @ 086B2E1D - .incbin "baserom.gba", 0x6B2E1D, 0x00073E9 - -gUnk_086BA206:: @ 086BA206 - .incbin "baserom.gba", 0x6BA206, 0x0005E00 - -gUnk_086C0006:: @ 086C0006 - .incbin "baserom.gba", 0x6C0006, 0x00046C2 - -gUnk_086C46C8:: @ 086C46C8 - .incbin "baserom.gba", 0x6C46C8, 0x00025A5 - -gUnk_086C6C6D:: @ 086C6C6D - .incbin "baserom.gba", 0x6C6C6D, 0x000605F - -gUnk_086CCCCC:: @ 086CCCCC - .incbin "baserom.gba", 0x6CCCCC, 0x0003336 - -gUnk_086D0002:: @ 086D0002 - .incbin "baserom.gba", 0x6D0002, 0x000001C - -gUnk_086D001E:: @ 086D001E - .incbin "baserom.gba", 0x6D001E, 0x000013B - -gUnk_086D0159:: @ 086D0159 - .incbin "baserom.gba", 0x6D0159, 0x0000013 - -gUnk_086D016C:: @ 086D016C - .incbin "baserom.gba", 0x6D016C, 0x0000300 - -gUnk_086D046C:: @ 086D046C - .incbin "baserom.gba", 0x6D046C, 0x000039A - -gUnk_086D0806:: @ 086D0806 - .incbin "baserom.gba", 0x6D0806, 0x000001D - -gUnk_086D0823:: @ 086D0823 - .incbin "baserom.gba", 0x6D0823, 0x0001CE5 - -gUnk_086D2508:: @ 086D2508 - .incbin "baserom.gba", 0x6D2508, 0x0001C1D - -gUnk_086D4125:: @ 086D4125 - .incbin "baserom.gba", 0x6D4125, 0x00002E2 - -gUnk_086D4407:: @ 086D4407 - .incbin "baserom.gba", 0x6D4407, 0x0000059 - -gUnk_086D4460:: @ 086D4460 - .incbin "baserom.gba", 0x6D4460, 0x0000BA4 - -gUnk_086D5004:: @ 086D5004 - .incbin "baserom.gba", 0x6D5004, 0x0008965 - -gUnk_086DD969:: @ 086DD969 - .incbin "baserom.gba", 0x6DD969, 0x0000456 - -gUnk_086DDDBF:: @ 086DDDBF - .incbin "baserom.gba", 0x6DDDBF, 0x0000007 - -gUnk_086DDDC6:: @ 086DDDC6 - .incbin "baserom.gba", 0x6DDDC6, 0x000223E - -gUnk_086E0004:: @ 086E0004 - .incbin "baserom.gba", 0x6E0004, 0x000000C - -gUnk_086E0010:: @ 086E0010 - .incbin "baserom.gba", 0x6E0010, 0x000005D - -gUnk_086E006D:: @ 086E006D - .incbin "baserom.gba", 0x6E006D, 0x0000013 - -gUnk_086E0080:: @ 086E0080 - .incbin "baserom.gba", 0x6E0080, 0x0000080 - -gUnk_086E0100:: @ 086E0100 - .incbin "baserom.gba", 0x6E0100, 0x0000359 - -gUnk_086E0459:: @ 086E0459 - .incbin "baserom.gba", 0x6E0459, 0x0000414 - -gUnk_086E086D:: @ 086E086D - .incbin "baserom.gba", 0x6E086D, 0x000001D - -gUnk_086E088A:: @ 086E088A - .incbin "baserom.gba", 0x6E088A, 0x0001755 - -gUnk_086E1FDF:: @ 086E1FDF - .incbin "baserom.gba", 0x6E1FDF, 0x0000E23 - -gUnk_086E2E02:: @ 086E2E02 - .incbin "baserom.gba", 0x6E2E02, 0x000166D - -gUnk_086E446F:: @ 086E446F - .incbin "baserom.gba", 0x6E446F, 0x0000259 - -gUnk_086E46C8:: @ 086E46C8 - .incbin "baserom.gba", 0x6E46C8, 0x0003D98 - -gUnk_086E8460:: @ 086E8460 - .incbin "baserom.gba", 0x6E8460, 0x0007BA1 - -gUnk_086F0001:: @ 086F0001 - .incbin "baserom.gba", 0x6F0001, 0x0000001 - -gUnk_086F0002:: @ 086F0002 - .incbin "baserom.gba", 0x6F0002, 0x000001E - -gUnk_086F0020:: @ 086F0020 - .incbin "baserom.gba", 0x6F0020, 0x00000F0 - -gUnk_086F0110:: @ 086F0110 - .incbin "baserom.gba", 0x6F0110, 0x000000C - -gUnk_086F011C:: @ 086F011C - .incbin "baserom.gba", 0x6F011C, 0x000007E - -gUnk_086F019A:: @ 086F019A - .incbin "baserom.gba", 0x6F019A, 0x0000069 - -gUnk_086F0203:: @ 086F0203 - .incbin "baserom.gba", 0x6F0203, 0x00005FD - -gUnk_086F0800:: @ 086F0800 - .incbin "baserom.gba", 0x6F0800, 0x000001B - -gUnk_086F081B:: @ 086F081B - .incbin "baserom.gba", 0x6F081B, 0x00006EB - -gUnk_086F0F06:: @ 086F0F06 - .incbin "baserom.gba", 0x6F0F06, 0x00001AF - -gUnk_086F10B5:: @ 086F10B5 - .incbin "baserom.gba", 0x6F10B5, 0x000094A - -gUnk_086F19FF:: @ 086F19FF - .incbin "baserom.gba", 0x6F19FF, 0x0000C01 - -gUnk_086F2600:: @ 086F2600 - .incbin "baserom.gba", 0x6F2600, 0x000B121 - -gUnk_086FD721:: @ 086FD721 - .incbin "baserom.gba", 0x6FD721, 0x000238E - -gUnk_086FFAAF:: @ 086FFAAF - .incbin "baserom.gba", 0x6FFAAF, 0x0000551 - -gUnk_08700000:: @ 08700000 - .incbin "baserom.gba", 0x700000, 0x0000001 - -gUnk_08700001:: @ 08700001 - .incbin "baserom.gba", 0x700001, 0x0000003 - -gUnk_08700004:: @ 08700004 - .incbin "baserom.gba", 0x700004, 0x0000002 - -gUnk_08700006:: @ 08700006 - .incbin "baserom.gba", 0x700006, 0x000002A - -gUnk_08700030:: @ 08700030 - .incbin "baserom.gba", 0x700030, 0x000000C - -gUnk_0870003C:: @ 0870003C - .incbin "baserom.gba", 0x70003C, 0x00001C4 - -gUnk_08700200:: @ 08700200 - .incbin "baserom.gba", 0x700200, 0x0000051 - -gUnk_08700251:: @ 08700251 - .incbin "baserom.gba", 0x700251, 0x000019F - -gUnk_087003F0:: @ 087003F0 - .incbin "baserom.gba", 0x7003F0, 0x0000240 - -gUnk_08700630:: @ 08700630 - .incbin "baserom.gba", 0x700630, 0x00002C0 - -gUnk_087008F0:: @ 087008F0 - .incbin "baserom.gba", 0x7008F0, 0x00000D0 - -gUnk_087009C0:: @ 087009C0 - .incbin "baserom.gba", 0x7009C0, 0x0000119 - -gUnk_08700AD9:: @ 08700AD9 - .incbin "baserom.gba", 0x700AD9, 0x00000C7 - -gUnk_08700BA0:: @ 08700BA0 - .incbin "baserom.gba", 0x700BA0, 0x0001BD0 - -gUnk_08702770:: @ 08702770 - .incbin "baserom.gba", 0x702770, 0x00053AB - -gUnk_08707B1B:: @ 08707B1B - .incbin "baserom.gba", 0x707B1B, 0x00011EB - -gUnk_08708D06:: @ 08708D06 - .incbin "baserom.gba", 0x708D06, 0x000110B - -gUnk_08709E11:: @ 08709E11 - .incbin "baserom.gba", 0x709E11, 0x0002FF6 - -gUnk_0870CE07:: @ 0870CE07 - .incbin "baserom.gba", 0x70CE07, 0x00031F9 - -gUnk_08710000:: @ 08710000 - .incbin "baserom.gba", 0x710000, 0x0000020 - -gUnk_08710020:: @ 08710020 - .incbin "baserom.gba", 0x710020, 0x000001C - -gUnk_0871003C:: @ 0871003C - .incbin "baserom.gba", 0x71003C, 0x0000004 - -gUnk_08710040:: @ 08710040 - .incbin "baserom.gba", 0x710040, 0x00000DC - -gUnk_0871011C:: @ 0871011C - .incbin "baserom.gba", 0x71011C, 0x0000045 - -gUnk_08710161:: @ 08710161 - .incbin "baserom.gba", 0x710161, 0x000029F - -gUnk_08710400:: @ 08710400 - .incbin "baserom.gba", 0x710400, 0x0000091 - -gUnk_08710491:: @ 08710491 - .incbin "baserom.gba", 0x710491, 0x000026F - -gUnk_08710700:: @ 08710700 - .incbin "baserom.gba", 0x710700, 0x0000070 - -gUnk_08710770:: @ 08710770 - .incbin "baserom.gba", 0x710770, 0x0001811 - -gUnk_08711F81:: @ 08711F81 - .incbin "baserom.gba", 0x711F81, 0x00007F0 - -gUnk_08712771:: @ 08712771 - .incbin "baserom.gba", 0x712771, 0x00027A0 - -gUnk_08714F11:: @ 08714F11 - .incbin "baserom.gba", 0x714F11, 0x0003277 - -gUnk_08718188:: @ 08718188 - .incbin "baserom.gba", 0x718188, 0x0007E81 - -gUnk_08720009:: @ 08720009 - .incbin "baserom.gba", 0x720009, 0x00000FE - -gUnk_08720107:: @ 08720107 - .incbin "baserom.gba", 0x720107, 0x000016A - -gUnk_08720271:: @ 08720271 - .incbin "baserom.gba", 0x720271, 0x000048F - -gUnk_08720700:: @ 08720700 - .incbin "baserom.gba", 0x720700, 0x000014E - -gUnk_0872084E:: @ 0872084E - .incbin "baserom.gba", 0x72084E, 0x000048C - -gUnk_08720CDA:: @ 08720CDA - .incbin "baserom.gba", 0x720CDA, 0x000154B - -gUnk_08722225:: @ 08722225 - .incbin "baserom.gba", 0x722225, 0x000DDE2 - -gUnk_08730007:: @ 08730007 - .incbin "baserom.gba", 0x730007, 0x00001E9 - -gUnk_087301F0:: @ 087301F0 - .incbin "baserom.gba", 0x7301F0, 0x0000520 - -gUnk_08730710:: @ 08730710 - .incbin "baserom.gba", 0x730710, 0x0000063 - -gUnk_08730773:: @ 08730773 - .incbin "baserom.gba", 0x730773, 0x00020A0 - -gUnk_08732813:: @ 08732813 - .incbin "baserom.gba", 0x732813, 0x00006C1 - -gUnk_08732ED4:: @ 08732ED4 - .incbin "baserom.gba", 0x732ED4, 0x00021B6 - -gUnk_0873508A:: @ 0873508A - .incbin "baserom.gba", 0x73508A, 0x000AF86 - -gUnk_08740010:: @ 08740010 - .incbin "baserom.gba", 0x740010, 0x0000760 - -gUnk_08740770:: @ 08740770 - .incbin "baserom.gba", 0x740770, 0x0000200 - -gUnk_08740970:: @ 08740970 - .incbin "baserom.gba", 0x740970, 0x0000326 - -gUnk_08740C96:: @ 08740C96 - .incbin "baserom.gba", 0x740C96, 0x0003695 - -gUnk_0874432B:: @ 0874432B - .incbin "baserom.gba", 0x74432B, 0x0000118 - -gUnk_08744443:: @ 08744443 - .incbin "baserom.gba", 0x744443, 0x00001C0 - -gUnk_08744603:: @ 08744603 - .incbin "baserom.gba", 0x744603, 0x00065CA - -gUnk_0874ABCD:: @ 0874ABCD - .incbin "baserom.gba", 0x74ABCD, 0x000543B - -gUnk_08750008:: @ 08750008 - .incbin "baserom.gba", 0x750008, 0x00002F8 - -gUnk_08750300:: @ 08750300 - .incbin "baserom.gba", 0x750300, 0x0000074 - -gUnk_08750374:: @ 08750374 - .incbin "baserom.gba", 0x750374, 0x000048F - -gUnk_08750803:: @ 08750803 - .incbin "baserom.gba", 0x750803, 0x0000703 - -gUnk_08750F06:: @ 08750F06 - .incbin "baserom.gba", 0x750F06, 0x000344E - -gUnk_08754354:: @ 08754354 - .incbin "baserom.gba", 0x754354, 0x0000756 - -gUnk_08754AAA:: @ 08754AAA - .incbin "baserom.gba", 0x754AAA, 0x000C45C - -gUnk_08760F06:: @ 08760F06 - .incbin "baserom.gba", 0x760F06, 0x000120B - -gUnk_08762111:: @ 08762111 - .incbin "baserom.gba", 0x762111, 0x00015FB - -gUnk_0876370C:: @ 0876370C - .incbin "baserom.gba", 0x76370C, 0x00009C4 - -gUnk_087640D0:: @ 087640D0 - .incbin "baserom.gba", 0x7640D0, 0x0000496 - -gUnk_08764566:: @ 08764566 - .incbin "baserom.gba", 0x764566, 0x0000CC5 - -gUnk_0876522B:: @ 0876522B - .incbin "baserom.gba", 0x76522B, 0x000032B - -gUnk_08765556:: @ 08765556 - .incbin "baserom.gba", 0x765556, 0x0001110 - -gUnk_08766666:: @ 08766666 - .incbin "baserom.gba", 0x766666, 0x0000020 - -gUnk_08766686:: @ 08766686 - .incbin "baserom.gba", 0x766686, 0x0000021 - -gUnk_087666A7:: @ 087666A7 - .incbin "baserom.gba", 0x7666A7, 0x00008FA - -gUnk_08766FA1:: @ 08766FA1 - .incbin "baserom.gba", 0x766FA1, 0x0005D23 - -gUnk_0876CCC4:: @ 0876CCC4 - .incbin "baserom.gba", 0x76CCC4, 0x000110B - -gUnk_0876DDCF:: @ 0876DDCF - .incbin "baserom.gba", 0x76DDCF, 0x0002242 - -gUnk_08770011:: @ 08770011 - .incbin "baserom.gba", 0x770011, 0x00000A8 - -gUnk_087700B9:: @ 087700B9 - .incbin "baserom.gba", 0x7700B9, 0x0000287 - -gUnk_08770340:: @ 08770340 - .incbin "baserom.gba", 0x770340, 0x00000E2 - -gUnk_08770422:: @ 08770422 - .incbin "baserom.gba", 0x770422, 0x0000154 - -gUnk_08770576:: @ 08770576 - .incbin "baserom.gba", 0x770576, 0x0000300 - -gUnk_08770876:: @ 08770876 - .incbin "baserom.gba", 0x770876, 0x0000791 - -gUnk_08771007:: @ 08771007 - .incbin "baserom.gba", 0x771007, 0x000006E - -gUnk_08771075:: @ 08771075 - .incbin "baserom.gba", 0x771075, 0x0000B8B - -gUnk_08771C00:: @ 08771C00 - .incbin "baserom.gba", 0x771C00, 0x0005775 - -gUnk_08777375:: @ 08777375 - .incbin "baserom.gba", 0x777375, 0x00003F0 - -gUnk_08777765:: @ 08777765 - .incbin "baserom.gba", 0x777765, 0x0000011 - -gUnk_08777776:: @ 08777776 - .incbin "baserom.gba", 0x777776, 0x0000012 - -gUnk_08777788:: @ 08777788 - .incbin "baserom.gba", 0x777788, 0x0000877 - -gUnk_08777FFF:: @ 08777FFF - .incbin "baserom.gba", 0x777FFF, 0x0000067 - -gUnk_08778066:: @ 08778066 - .incbin "baserom.gba", 0x778066, 0x0000703 - -gUnk_08778769:: @ 08778769 - .incbin "baserom.gba", 0x778769, 0x0000E2C - -gUnk_08779595:: @ 08779595 - .incbin "baserom.gba", 0x779595, 0x000148E - -gUnk_0877AA23:: @ 0877AA23 - .incbin "baserom.gba", 0x77AA23, 0x0000017 - -gUnk_0877AA3A:: @ 0877AA3A - .incbin "baserom.gba", 0x77AA3A, 0x0000190 - -gUnk_0877ABCA:: @ 0877ABCA - .incbin "baserom.gba", 0x77ABCA, 0x0000537 - -gUnk_0877B101:: @ 0877B101 - .incbin "baserom.gba", 0x77B101, 0x000290E - -gUnk_0877DA0F:: @ 0877DA0F - .incbin "baserom.gba", 0x77DA0F, 0x0002649 - -gUnk_08780058:: @ 08780058 - .incbin "baserom.gba", 0x780058, 0x00000E8 - -gUnk_08780140:: @ 08780140 - .incbin "baserom.gba", 0x780140, 0x0000836 - -gUnk_08780976:: @ 08780976 - .incbin "baserom.gba", 0x780976, 0x000018A - -gUnk_08780B00:: @ 08780B00 - .incbin "baserom.gba", 0x780B00, 0x0006410 - -gUnk_08786F10:: @ 08786F10 - .incbin "baserom.gba", 0x786F10, 0x0000919 - -gUnk_08787829:: @ 08787829 - .incbin "baserom.gba", 0x787829, 0x000084E - -gUnk_08788077:: @ 08788077 - .incbin "baserom.gba", 0x788077, 0x00001CF - -gUnk_08788246:: @ 08788246 - .incbin "baserom.gba", 0x788246, 0x0001375 - -gUnk_087895BB:: @ 087895BB - .incbin "baserom.gba", 0x7895BB, 0x0000933 - -gUnk_08789EEE:: @ 08789EEE - .incbin "baserom.gba", 0x789EEE, 0x000610A - -gUnk_0878FFF8:: @ 0878FFF8 - .incbin "baserom.gba", 0x78FFF8, 0x0000008 - -gUnk_08790000:: @ 08790000 - .incbin "baserom.gba", 0x790000, 0x0000001 - -gUnk_08790001:: @ 08790001 - .incbin "baserom.gba", 0x790001, 0x0000001 - -gUnk_08790002:: @ 08790002 - .incbin "baserom.gba", 0x790002, 0x0000001 - -gUnk_08790003:: @ 08790003 - .incbin "baserom.gba", 0x790003, 0x0000001 - -gUnk_08790004:: @ 08790004 - .incbin "baserom.gba", 0x790004, 0x0000002 - -gUnk_08790006:: @ 08790006 - .incbin "baserom.gba", 0x790006, 0x0000001 - -gUnk_08790007:: @ 08790007 - .incbin "baserom.gba", 0x790007, 0x0000001 - -gUnk_08790008:: @ 08790008 - .incbin "baserom.gba", 0x790008, 0x0000002 - -gUnk_0879000A:: @ 0879000A - .incbin "baserom.gba", 0x79000A, 0x0000001 - -gUnk_0879000B:: @ 0879000B - .incbin "baserom.gba", 0x79000B, 0x0000004 - -gUnk_0879000F:: @ 0879000F - .incbin "baserom.gba", 0x79000F, 0x0000001 - -gUnk_08790010:: @ 08790010 - .incbin "baserom.gba", 0x790010, 0x0000003 - -gUnk_08790013:: @ 08790013 - .incbin "baserom.gba", 0x790013, 0x0000007 - -gUnk_0879001A:: @ 0879001A - .incbin "baserom.gba", 0x79001A, 0x0000004 - -gUnk_0879001E:: @ 0879001E - .incbin "baserom.gba", 0x79001E, 0x0000002 - -gUnk_08790020:: @ 08790020 - .incbin "baserom.gba", 0x790020, 0x000000C - -gUnk_0879002C:: @ 0879002C - .incbin "baserom.gba", 0x79002C, 0x0000010 - -gUnk_0879003C:: @ 0879003C - .incbin "baserom.gba", 0x79003C, 0x0000004 - -gUnk_08790040:: @ 08790040 - .incbin "baserom.gba", 0x790040, 0x0000008 - -gUnk_08790048:: @ 08790048 - .incbin "baserom.gba", 0x790048, 0x000000C - -gUnk_08790054:: @ 08790054 - .incbin "baserom.gba", 0x790054, 0x0000004 - -gUnk_08790058:: @ 08790058 - .incbin "baserom.gba", 0x790058, 0x0000002 - -gUnk_0879005A:: @ 0879005A - .incbin "baserom.gba", 0x79005A, 0x000000E - -gUnk_08790068:: @ 08790068 - .incbin "baserom.gba", 0x790068, 0x0000004 - -gUnk_0879006C:: @ 0879006C - .incbin "baserom.gba", 0x79006C, 0x000000C - -gUnk_08790078:: @ 08790078 - .incbin "baserom.gba", 0x790078, 0x0000008 - -gUnk_08790080:: @ 08790080 - .incbin "baserom.gba", 0x790080, 0x0000002 - -gUnk_08790082:: @ 08790082 - .incbin "baserom.gba", 0x790082, 0x000000A - -gUnk_0879008C:: @ 0879008C - .incbin "baserom.gba", 0x79008C, 0x0000009 - -gUnk_08790095:: @ 08790095 - .incbin "baserom.gba", 0x790095, 0x0000001 - -gUnk_08790096:: @ 08790096 - .incbin "baserom.gba", 0x790096, 0x0000022 - -gUnk_087900B8:: @ 087900B8 - .incbin "baserom.gba", 0x7900B8, 0x0000018 - -gUnk_087900D0:: @ 087900D0 - .incbin "baserom.gba", 0x7900D0, 0x0000019 - -gUnk_087900E9:: @ 087900E9 - .incbin "baserom.gba", 0x7900E9, 0x0000007 - -gUnk_087900F0:: @ 087900F0 - .incbin "baserom.gba", 0x7900F0, 0x0000001 - -gUnk_087900F1:: @ 087900F1 - .incbin "baserom.gba", 0x7900F1, 0x000000F - -gUnk_08790100:: @ 08790100 - .incbin "baserom.gba", 0x790100, 0x0000007 - -gUnk_08790107:: @ 08790107 - .incbin "baserom.gba", 0x790107, 0x000000A - -gUnk_08790111:: @ 08790111 - .incbin "baserom.gba", 0x790111, 0x000002F - -gUnk_08790140:: @ 08790140 - .incbin "baserom.gba", 0x790140, 0x0000040 - -gUnk_08790180:: @ 08790180 - .incbin "baserom.gba", 0x790180, 0x0000008 - -gUnk_08790188:: @ 08790188 - .incbin "baserom.gba", 0x790188, 0x0000008 - -gUnk_08790190:: @ 08790190 - .incbin "baserom.gba", 0x790190, 0x0000039 - -gUnk_087901C9:: @ 087901C9 - .incbin "baserom.gba", 0x7901C9, 0x000002A - -gUnk_087901F3:: @ 087901F3 - .incbin "baserom.gba", 0x7901F3, 0x000000D - -gUnk_08790200:: @ 08790200 - .incbin "baserom.gba", 0x790200, 0x0000201 - -gUnk_08790401:: @ 08790401 - .incbin "baserom.gba", 0x790401, 0x0000001 - -gUnk_08790402:: @ 08790402 - .incbin "baserom.gba", 0x790402, 0x0000041 - -gUnk_08790443:: @ 08790443 - .incbin "baserom.gba", 0x790443, 0x0000001 - -gUnk_08790444:: @ 08790444 - .incbin "baserom.gba", 0x790444, 0x0000006 - -gUnk_0879044A:: @ 0879044A - .incbin "baserom.gba", 0x79044A, 0x0000009 - -gUnk_08790453:: @ 08790453 - .incbin "baserom.gba", 0x790453, 0x0000006 - -gUnk_08790459:: @ 08790459 - .incbin "baserom.gba", 0x790459, 0x000000A - -gUnk_08790463:: @ 08790463 - .incbin "baserom.gba", 0x790463, 0x0000001 - -gUnk_08790464:: @ 08790464 - .incbin "baserom.gba", 0x790464, 0x0000024 - -gUnk_08790488:: @ 08790488 - .incbin "baserom.gba", 0x790488, 0x0000378 - -gUnk_08790800:: @ 08790800 - .incbin "baserom.gba", 0x790800, 0x0000001 - -gUnk_08790801:: @ 08790801 - .incbin "baserom.gba", 0x790801, 0x0000004 - -gUnk_08790805:: @ 08790805 - .incbin "baserom.gba", 0x790805, 0x0000001 - -gUnk_08790806:: @ 08790806 - .incbin "baserom.gba", 0x790806, 0x0000001 - -gUnk_08790807:: @ 08790807 - .incbin "baserom.gba", 0x790807, 0x0000003 - -gUnk_0879080A:: @ 0879080A - .incbin "baserom.gba", 0x79080A, 0x0000003 - -gUnk_0879080D:: @ 0879080D - .incbin "baserom.gba", 0x79080D, 0x0000002 - -gUnk_0879080F:: @ 0879080F - .incbin "baserom.gba", 0x79080F, 0x0000ABA - -gUnk_087912C9:: @ 087912C9 - .incbin "baserom.gba", 0x7912C9, 0x0000957 - -gUnk_08791C20:: @ 08791C20 - .incbin "baserom.gba", 0x791C20, 0x00023E0 - -gUnk_08794000:: @ 08794000 - .incbin "baserom.gba", 0x794000, 0x0000107 - -gUnk_08794107:: @ 08794107 - .incbin "baserom.gba", 0x794107, 0x0000FF9 - -gUnk_08795100:: @ 08795100 - .incbin "baserom.gba", 0x795100, 0x0001000 - -gUnk_08796100:: @ 08796100 - .incbin "baserom.gba", 0x796100, 0x0001879 - -gUnk_08797979:: @ 08797979 - .incbin "baserom.gba", 0x797979, 0x0000687 - -gUnk_08798000:: @ 08798000 - .incbin "baserom.gba", 0x798000, 0x0001992 - -gUnk_08799992:: @ 08799992 - .incbin "baserom.gba", 0x799992, 0x000008E - -gUnk_08799A20:: @ 08799A20 - .incbin "baserom.gba", 0x799A20, 0x00064DE - -gUnk_0879FEFE:: @ 0879FEFE - .incbin "baserom.gba", 0x79FEFE, 0x00000BA - -gUnk_0879FFB8:: @ 0879FFB8 - .incbin "baserom.gba", 0x79FFB8, 0x0000004 - -gUnk_0879FFBC:: @ 0879FFBC - .incbin "baserom.gba", 0x79FFBC, 0x0000010 - -gUnk_0879FFCC:: @ 0879FFCC - .incbin "baserom.gba", 0x79FFCC, 0x0000004 - -gUnk_0879FFD0:: @ 0879FFD0 - .incbin "baserom.gba", 0x79FFD0, 0x0000010 - -gUnk_0879FFE0:: @ 0879FFE0 - .incbin "baserom.gba", 0x79FFE0, 0x0000006 - -gUnk_0879FFE6:: @ 0879FFE6 - .incbin "baserom.gba", 0x79FFE6, 0x0000002 - -gUnk_0879FFE8:: @ 0879FFE8 - .incbin "baserom.gba", 0x79FFE8, 0x0000008 - -gUnk_0879FFF0:: @ 0879FFF0 - .incbin "baserom.gba", 0x79FFF0, 0x0000008 - -gUnk_0879FFF8:: @ 0879FFF8 - .incbin "baserom.gba", 0x79FFF8, 0x0000002 - -gUnk_0879FFFA:: @ 0879FFFA - .incbin "baserom.gba", 0x79FFFA, 0x0000005 - -gUnk_0879FFFF:: @ 0879FFFF - .incbin "baserom.gba", 0x79FFFF, 0x000007A - -gUnk_087A0079:: @ 087A0079 - .incbin "baserom.gba", 0x7A0079, 0x0001650 - -gUnk_087A16C9:: @ 087A16C9 - .incbin "baserom.gba", 0x7A16C9, 0x000A940 - -gUnk_087AC009:: @ 087AC009 - .incbin "baserom.gba", 0x7AC009, 0x0000DD4 - -gUnk_087ACDDD:: @ 087ACDDD - .incbin "baserom.gba", 0x7ACDDD, 0x0003223 - -gUnk_087B0000:: @ 087B0000 - .incbin "baserom.gba", 0x7B0000, 0x0000002 - -gUnk_087B0002:: @ 087B0002 - .incbin "baserom.gba", 0x7B0002, 0x0000002 - -gUnk_087B0004:: @ 087B0004 - .incbin "baserom.gba", 0x7B0004, 0x0000001 - -gUnk_087B0005:: @ 087B0005 - .incbin "baserom.gba", 0x7B0005, 0x0000002 - -gUnk_087B0007:: @ 087B0007 - .incbin "baserom.gba", 0x7B0007, 0x0000001 - -gUnk_087B0008:: @ 087B0008 - .incbin "baserom.gba", 0x7B0008, 0x0000001 - -gUnk_087B0009:: @ 087B0009 - .incbin "baserom.gba", 0x7B0009, 0x0000006 - -gUnk_087B000F:: @ 087B000F - .incbin "baserom.gba", 0x7B000F, 0x0000001 - -gUnk_087B0010:: @ 087B0010 - .incbin "baserom.gba", 0x7B0010, 0x0000002 - -gUnk_087B0012:: @ 087B0012 - .incbin "baserom.gba", 0x7B0012, 0x0000002 - -gUnk_087B0014:: @ 087B0014 - .incbin "baserom.gba", 0x7B0014, 0x0000002 - -gUnk_087B0016:: @ 087B0016 - .incbin "baserom.gba", 0x7B0016, 0x0000008 - -gUnk_087B001E:: @ 087B001E - .incbin "baserom.gba", 0x7B001E, 0x000000A - -gUnk_087B0028:: @ 087B0028 - .incbin "baserom.gba", 0x7B0028, 0x0000008 - -gUnk_087B0030:: @ 087B0030 - .incbin "baserom.gba", 0x7B0030, 0x000000C - -gUnk_087B003C:: @ 087B003C - .incbin "baserom.gba", 0x7B003C, 0x0000038 - -gUnk_087B0074:: @ 087B0074 - .incbin "baserom.gba", 0x7B0074, 0x0000004 - -gUnk_087B0078:: @ 087B0078 - .incbin "baserom.gba", 0x7B0078, 0x000001E - -gUnk_087B0096:: @ 087B0096 - .incbin "baserom.gba", 0x7B0096, 0x0000022 - -gUnk_087B00B8:: @ 087B00B8 - .incbin "baserom.gba", 0x7B00B8, 0x0000040 - -gUnk_087B00F8:: @ 087B00F8 - .incbin "baserom.gba", 0x7B00F8, 0x0000019 - -gUnk_087B0111:: @ 087B0111 - .incbin "baserom.gba", 0x7B0111, 0x000002B - -gUnk_087B013C:: @ 087B013C - .incbin "baserom.gba", 0x7B013C, 0x0000004 - -gUnk_087B0140:: @ 087B0140 - .incbin "baserom.gba", 0x7B0140, 0x0000087 - -gUnk_087B01C7:: @ 087B01C7 - .incbin "baserom.gba", 0x7B01C7, 0x00000B3 - -gUnk_087B027A:: @ 087B027A - .incbin "baserom.gba", 0x7B027A, 0x0000187 - -gUnk_087B0401:: @ 087B0401 - .incbin "baserom.gba", 0x7B0401, 0x0000001 - -gUnk_087B0402:: @ 087B0402 - .incbin "baserom.gba", 0x7B0402, 0x0000035 - -gUnk_087B0437:: @ 087B0437 - .incbin "baserom.gba", 0x7B0437, 0x0000008 - -gUnk_087B043F:: @ 087B043F - .incbin "baserom.gba", 0x7B043F, 0x000003F - -gUnk_087B047E:: @ 087B047E - .incbin "baserom.gba", 0x7B047E, 0x0000170 - -gUnk_087B05EE:: @ 087B05EE - .incbin "baserom.gba", 0x7B05EE, 0x0000212 - -gUnk_087B0800:: @ 087B0800 - .incbin "baserom.gba", 0x7B0800, 0x0000001 - -gUnk_087B0801:: @ 087B0801 - .incbin "baserom.gba", 0x7B0801, 0x0000003 - -gUnk_087B0804:: @ 087B0804 - .incbin "baserom.gba", 0x7B0804, 0x0000002 - -gUnk_087B0806:: @ 087B0806 - .incbin "baserom.gba", 0x7B0806, 0x0000001 - -gUnk_087B0807:: @ 087B0807 - .incbin "baserom.gba", 0x7B0807, 0x0000002 - -gUnk_087B0809:: @ 087B0809 - .incbin "baserom.gba", 0x7B0809, 0x000002A - -gUnk_087B0833:: @ 087B0833 - .incbin "baserom.gba", 0x7B0833, 0x0000047 - -gUnk_087B087A:: @ 087B087A - .incbin "baserom.gba", 0x7B087A, 0x0000ABE - -gUnk_087B1338:: @ 087B1338 - .incbin "baserom.gba", 0x7B1338, 0x0004EC5 - -gUnk_087B61FD:: @ 087B61FD - .incbin "baserom.gba", 0x7B61FD, 0x0006BE1 - -gUnk_087BCDDE:: @ 087BCDDE - .incbin "baserom.gba", 0x7BCDDE, 0x00020FF - -gUnk_087BEEDD:: @ 087BEEDD - .incbin "baserom.gba", 0x7BEEDD, 0x0001123 - -gUnk_087C0000:: @ 087C0000 - .incbin "baserom.gba", 0x7C0000, 0x0000004 - -gUnk_087C0004:: @ 087C0004 - .incbin "baserom.gba", 0x7C0004, 0x0000038 - -gUnk_087C003C:: @ 087C003C - .incbin "baserom.gba", 0x7C003C, 0x0000104 - -gUnk_087C0140:: @ 087C0140 - .incbin "baserom.gba", 0x7C0140, 0x00002C1 - -gUnk_087C0401:: @ 087C0401 - .incbin "baserom.gba", 0x7C0401, 0x0000036 - -gUnk_087C0437:: @ 087C0437 - .incbin "baserom.gba", 0x7C0437, 0x000000D - -gUnk_087C0444:: @ 087C0444 - .incbin "baserom.gba", 0x7C0444, 0x0000005 - -gUnk_087C0449:: @ 087C0449 - .incbin "baserom.gba", 0x7C0449, 0x0000010 - -gUnk_087C0459:: @ 087C0459 - .incbin "baserom.gba", 0x7C0459, 0x0000025 - -gUnk_087C047E:: @ 087C047E - .incbin "baserom.gba", 0x7C047E, 0x0000292 - -gUnk_087C0710:: @ 087C0710 - .incbin "baserom.gba", 0x7C0710, 0x0000024 - -gUnk_087C0734:: @ 087C0734 - .incbin "baserom.gba", 0x7C0734, 0x00000D1 - -gUnk_087C0805:: @ 087C0805 - .incbin "baserom.gba", 0x7C0805, 0x0000076 - -gUnk_087C087B:: @ 087C087B - .incbin "baserom.gba", 0x7C087B, 0x000F74F - -gUnk_087CFFCA:: @ 087CFFCA - .incbin "baserom.gba", 0x7CFFCA, 0x0000030 - -gUnk_087CFFFA:: @ 087CFFFA - .incbin "baserom.gba", 0x7CFFFA, 0x0006683 - -gUnk_087D667D:: @ 087D667D - .incbin "baserom.gba", 0x7D667D, 0x0002614 - -gUnk_087D8C91:: @ 087D8C91 - .incbin "baserom.gba", 0x7D8C91, 0x000739D - -gUnk_087E002E:: @ 087E002E - .incbin "baserom.gba", 0x7E002E, 0x00006D2 - -gUnk_087E0700:: @ 087E0700 - .incbin "baserom.gba", 0x7E0700, 0x0000598 - -gUnk_087E0C98:: @ 087E0C98 - .incbin "baserom.gba", 0x7E0C98, 0x000095B - -gUnk_087E15F3:: @ 087E15F3 - .incbin "baserom.gba", 0x7E15F3, 0x000A6BF - -gUnk_087EBCB2:: @ 087EBCB2 - .incbin "baserom.gba", 0x7EBCB2, 0x000323C - -gUnk_087EEEEE:: @ 087EEEEE - .incbin "baserom.gba", 0x7EEEEE, 0x000112A - -gUnk_087F0018:: @ 087F0018 - .incbin "baserom.gba", 0x7F0018, 0x0000064 - -gUnk_087F007C:: @ 087F007C - .incbin "baserom.gba", 0x7F007C, 0x0000260 - -gUnk_087F02DC:: @ 087F02DC - .incbin "baserom.gba", 0x7F02DC, 0x0000824 - -gUnk_087F0B00:: @ 087F0B00 - .incbin "baserom.gba", 0x7F0B00, 0x0000422 - -gUnk_087F0F22:: @ 087F0F22 - .incbin "baserom.gba", 0x7F0F22, 0x0000067 - -gUnk_087F0F89:: @ 087F0F89 - .incbin "baserom.gba", 0x7F0F89, 0x00000F6 - -gUnk_087F107F:: @ 087F107F - .incbin "baserom.gba", 0x7F107F, 0x0000020 - -gUnk_087F109F:: @ 087F109F - .incbin "baserom.gba", 0x7F109F, 0x0000003 - -gUnk_087F10A2:: @ 087F10A2 - .incbin "baserom.gba", 0x7F10A2, 0x000053F - -gUnk_087F15E1:: @ 087F15E1 - .incbin "baserom.gba", 0x7F15E1, 0x0001F74 - -gUnk_087F3555:: @ 087F3555 - .incbin "baserom.gba", 0x7F3555, 0x0002B9E - -gUnk_087F60F3:: @ 087F60F3 - .incbin "baserom.gba", 0x7F60F3, 0x0002643 - -gUnk_087F8736:: @ 087F8736 - .incbin "baserom.gba", 0x7F8736, 0x0003695 - -gUnk_087FBDCB:: @ 087FBDCB - .incbin "baserom.gba", 0x7FBDCB, 0x0000001 - -gUnk_087FBDCC:: @ 087FBDCC - .incbin "baserom.gba", 0x7FBDCC, 0x000023A - -gUnk_087FC006:: @ 087FC006 - .incbin "baserom.gba", 0x7FC006, 0x000310B - -gUnk_087FF111:: @ 087FF111 - .incbin "baserom.gba", 0x7FF111, 0x000011B - -gUnk_087FF22C:: @ 087FF22C - .incbin "baserom.gba", 0x7FF22C, 0x000066B - -gUnk_087FF897:: @ 087FF897 - .incbin "baserom.gba", 0x7FF897, 0x0000769 - -gUnk_08800000:: @ 08800000 - .incbin "baserom.gba", 0x800000, 0x0000002 - -gUnk_08800002:: @ 08800002 - .incbin "baserom.gba", 0x800002, 0x0000002 - -gUnk_08800004:: @ 08800004 - .incbin "baserom.gba", 0x800004, 0x0000002 - -gUnk_08800006:: @ 08800006 - .incbin "baserom.gba", 0x800006, 0x0000001 - -gUnk_08800007:: @ 08800007 - .incbin "baserom.gba", 0x800007, 0x0000001 - -gUnk_08800008:: @ 08800008 - .incbin "baserom.gba", 0x800008, 0x0000001 - -gUnk_08800009:: @ 08800009 - .incbin "baserom.gba", 0x800009, 0x0000001 - -gUnk_0880000A:: @ 0880000A - .incbin "baserom.gba", 0x80000A, 0x0000039 - -gUnk_08800043:: @ 08800043 - .incbin "baserom.gba", 0x800043, 0x000007D - -gUnk_088000C0:: @ 088000C0 - .incbin "baserom.gba", 0x8000C0, 0x0000047 - -gUnk_08800107:: @ 08800107 - .incbin "baserom.gba", 0x800107, 0x0000009 - -gUnk_08800110:: @ 08800110 - .incbin "baserom.gba", 0x800110, 0x0000324 - -gUnk_08800434:: @ 08800434 - .incbin "baserom.gba", 0x800434, 0x000000F - -gUnk_08800443:: @ 08800443 - .incbin "baserom.gba", 0x800443, 0x00001FD - -gUnk_08800640:: @ 08800640 - .incbin "baserom.gba", 0x800640, 0x00002B0 - -gUnk_088008F0:: @ 088008F0 - .incbin "baserom.gba", 0x8008F0, 0x00000F6 - -gUnk_088009E6:: @ 088009E6 - .incbin "baserom.gba", 0x8009E6, 0x0000242 - -gUnk_08800C28:: @ 08800C28 - .incbin "baserom.gba", 0x800C28, 0x0000FD8 - -gUnk_08801C00:: @ 08801C00 - .incbin "baserom.gba", 0x801C00, 0x0000B80 - -gUnk_08802780:: @ 08802780 - .incbin "baserom.gba", 0x802780, 0x0000EE3 - -gUnk_08803663:: @ 08803663 - .incbin "baserom.gba", 0x803663, 0x00009A1 - -gUnk_08804004:: @ 08804004 - .incbin "baserom.gba", 0x804004, 0x0000114 - -gUnk_08804118:: @ 08804118 - .incbin "baserom.gba", 0x804118, 0x000001A - -gUnk_08804132:: @ 08804132 - .incbin "baserom.gba", 0x804132, 0x0002501 - -gUnk_08806633:: @ 08806633 - .incbin "baserom.gba", 0x806633, 0x000101B - -gUnk_0880764E:: @ 0880764E - .incbin "baserom.gba", 0x80764E, 0x00004B9 - -gUnk_08807B07:: @ 08807B07 - .incbin "baserom.gba", 0x807B07, 0x0000C7A - -gUnk_08808781:: @ 08808781 - .incbin "baserom.gba", 0x808781, 0x000007F - -gUnk_08808800:: @ 08808800 - .incbin "baserom.gba", 0x808800, 0x0002C08 - -gUnk_0880B408:: @ 0880B408 - .incbin "baserom.gba", 0x80B408, 0x0000BFA - -gUnk_0880C002:: @ 0880C002 - .incbin "baserom.gba", 0x80C002, 0x00013EF - -gUnk_0880D3F1:: @ 0880D3F1 - .incbin "baserom.gba", 0x80D3F1, 0x0000986 - -gUnk_0880DD77:: @ 0880DD77 - .incbin "baserom.gba", 0x80DD77, 0x0000B90 - -gUnk_0880E907:: @ 0880E907 - .incbin "baserom.gba", 0x80E907, 0x00000F3 - -gUnk_0880E9FA:: @ 0880E9FA - .incbin "baserom.gba", 0x80E9FA, 0x000000E - -gUnk_0880EA08:: @ 0880EA08 - .incbin "baserom.gba", 0x80EA08, 0x00000F8 - -gUnk_0880EB00:: @ 0880EB00 - .incbin "baserom.gba", 0x80EB00, 0x0000008 - -gUnk_0880EB08:: @ 0880EB08 - .incbin "baserom.gba", 0x80EB08, 0x0000001 - -gUnk_0880EB09:: @ 0880EB09 - .incbin "baserom.gba", 0x80EB09, 0x0000001 - -gUnk_0880EB0A:: @ 0880EB0A - .incbin "baserom.gba", 0x80EB0A, 0x00000E1 - -gUnk_0880EBEB:: @ 0880EBEB - .incbin "baserom.gba", 0x80EBEB, 0x0000005 - -gUnk_0880EBF0:: @ 0880EBF0 - .incbin "baserom.gba", 0x80EBF0, 0x0000018 - -gUnk_0880EC08:: @ 0880EC08 - .incbin "baserom.gba", 0x80EC08, 0x0000003 - -gUnk_0880EC0B:: @ 0880EC0B - .incbin "baserom.gba", 0x80EC0B, 0x00000E5 - -gUnk_0880ECF0:: @ 0880ECF0 - .incbin "baserom.gba", 0x80ECF0, 0x000021A - -gUnk_0880EF0A:: @ 0880EF0A - .incbin "baserom.gba", 0x80EF0A, 0x00000E7 - -gUnk_0880EFF1:: @ 0880EFF1 - .incbin "baserom.gba", 0x80EFF1, 0x000000B - -gUnk_0880EFFC:: @ 0880EFFC - .incbin "baserom.gba", 0x80EFFC, 0x0000110 - -gUnk_0880F10C:: @ 0880F10C - .incbin "baserom.gba", 0x80F10C, 0x00001F8 - -gUnk_0880F304:: @ 0880F304 - .incbin "baserom.gba", 0x80F304, 0x00001F8 - -gUnk_0880F4FC:: @ 0880F4FC - .incbin "baserom.gba", 0x80F4FC, 0x000000B - -gUnk_0880F507:: @ 0880F507 - .incbin "baserom.gba", 0x80F507, 0x00003F1 - -gUnk_0880F8F8:: @ 0880F8F8 - .incbin "baserom.gba", 0x80F8F8, 0x0000304 - -gUnk_0880FBFC:: @ 0880FBFC - .incbin "baserom.gba", 0x80FBFC, 0x0000584 - -gUnk_08810180:: @ 08810180 - .incbin "baserom.gba", 0x810180, 0x0000601 - -gUnk_08810781:: @ 08810781 - .incbin "baserom.gba", 0x810781, 0x000017E - -gUnk_088108FF:: @ 088108FF - .incbin "baserom.gba", 0x8108FF, 0x0000E82 - -gUnk_08811781:: @ 08811781 - .incbin "baserom.gba", 0x811781, 0x000099F - -gUnk_08812120:: @ 08812120 - .incbin "baserom.gba", 0x812120, 0x0000C61 - -gUnk_08812D81:: @ 08812D81 - .incbin "baserom.gba", 0x812D81, 0x0001000 - -gUnk_08813D81:: @ 08813D81 - .incbin "baserom.gba", 0x813D81, 0x000027F - -gUnk_08814000:: @ 08814000 - .incbin "baserom.gba", 0x814000, 0x0000105 - -gUnk_08814105:: @ 08814105 - .incbin "baserom.gba", 0x814105, 0x000033F - -gUnk_08814444:: @ 08814444 - .incbin "baserom.gba", 0x814444, 0x00027BB - -gUnk_08816BFF:: @ 08816BFF - .incbin "baserom.gba", 0x816BFF, 0x0001569 - -gUnk_08818168:: @ 08818168 - .incbin "baserom.gba", 0x818168, 0x00006CC - -gUnk_08818834:: @ 08818834 - .incbin "baserom.gba", 0x818834, 0x00053A0 - -gUnk_0881DBD4:: @ 0881DBD4 - .incbin "baserom.gba", 0x81DBD4, 0x000092C - -gUnk_0881E500:: @ 0881E500 - .incbin "baserom.gba", 0x81E500, 0x0000481 - -gUnk_0881E981:: @ 0881E981 - .incbin "baserom.gba", 0x81E981, 0x0000373 - -gUnk_0881ECF4:: @ 0881ECF4 - .incbin "baserom.gba", 0x81ECF4, 0x000008C - -gUnk_0881ED80:: @ 0881ED80 - .incbin "baserom.gba", 0x81ED80, 0x0000D75 - -gUnk_0881FAF5:: @ 0881FAF5 - .incbin "baserom.gba", 0x81FAF5, 0x0000402 - -gUnk_0881FEF7:: @ 0881FEF7 - .incbin "baserom.gba", 0x81FEF7, 0x0000109 - -gUnk_08820000:: @ 08820000 - .incbin "baserom.gba", 0x820000, 0x0000008 - -gUnk_08820008:: @ 08820008 - .incbin "baserom.gba", 0x820008, 0x0000016 - -gUnk_0882001E:: @ 0882001E - .incbin "baserom.gba", 0x82001E, 0x0000081 - -gUnk_0882009F:: @ 0882009F - .incbin "baserom.gba", 0x82009F, 0x0000001 - -gUnk_088200A0:: @ 088200A0 - .incbin "baserom.gba", 0x8200A0, 0x0000013 - -gUnk_088200B3:: @ 088200B3 - .incbin "baserom.gba", 0x8200B3, 0x000025D - -gUnk_08820310:: @ 08820310 - .incbin "baserom.gba", 0x820310, 0x0000149 - -gUnk_08820459:: @ 08820459 - .incbin "baserom.gba", 0x820459, 0x00002AC - -gUnk_08820705:: @ 08820705 - .incbin "baserom.gba", 0x820705, 0x0000100 - -gUnk_08820805:: @ 08820805 - .incbin "baserom.gba", 0x820805, 0x0000001 - -gUnk_08820806:: @ 08820806 - .incbin "baserom.gba", 0x820806, 0x000054C - -gUnk_08820D52:: @ 08820D52 - .incbin "baserom.gba", 0x820D52, 0x00012AE - -gUnk_08822000:: @ 08822000 - .incbin "baserom.gba", 0x822000, 0x0000782 - -gUnk_08822782:: @ 08822782 - .incbin "baserom.gba", 0x822782, 0x0000400 - -gUnk_08822B82:: @ 08822B82 - .incbin "baserom.gba", 0x822B82, 0x00001A9 - -gUnk_08822D2B:: @ 08822D2B - .incbin "baserom.gba", 0x822D2B, 0x0000556 - -gUnk_08823281:: @ 08823281 - .incbin "baserom.gba", 0x823281, 0x0000D85 - -gUnk_08824006:: @ 08824006 - .incbin "baserom.gba", 0x824006, 0x0000550 - -gUnk_08824556:: @ 08824556 - .incbin "baserom.gba", 0x824556, 0x0000ACD - -gUnk_08825023:: @ 08825023 - .incbin "baserom.gba", 0x825023, 0x0000C52 - -gUnk_08825C75:: @ 08825C75 - .incbin "baserom.gba", 0x825C75, 0x000250C - -gUnk_08828181:: @ 08828181 - .incbin "baserom.gba", 0x828181, 0x00071B2 - -gUnk_0882F333:: @ 0882F333 - .incbin "baserom.gba", 0x82F333, 0x0000C8F - -gUnk_0882FFC2:: @ 0882FFC2 - .incbin "baserom.gba", 0x82FFC2, 0x000003E - -gUnk_08830000:: @ 08830000 - .incbin "baserom.gba", 0x830000, 0x0000004 - -gUnk_08830004:: @ 08830004 - .incbin "baserom.gba", 0x830004, 0x0000003 - -gUnk_08830007:: @ 08830007 - .incbin "baserom.gba", 0x830007, 0x0000001 - -gUnk_08830008:: @ 08830008 - .incbin "baserom.gba", 0x830008, 0x0000008 - -gUnk_08830010:: @ 08830010 - .incbin "baserom.gba", 0x830010, 0x0000432 - -gUnk_08830442:: @ 08830442 - .incbin "baserom.gba", 0x830442, 0x0002B41 - -gUnk_08832F83:: @ 08832F83 - .incbin "baserom.gba", 0x832F83, 0x0001574 - -gUnk_088344F7:: @ 088344F7 - .incbin "baserom.gba", 0x8344F7, 0x000006F - -gUnk_08834566:: @ 08834566 - .incbin "baserom.gba", 0x834566, 0x0006DAC - -gUnk_0883B312:: @ 0883B312 - .incbin "baserom.gba", 0x83B312, 0x00047EE - -gUnk_0883FB00:: @ 0883FB00 - .incbin "baserom.gba", 0x83FB00, 0x0000509 - -gUnk_08840009:: @ 08840009 - .incbin "baserom.gba", 0x840009, 0x0000011 - -gUnk_0884001A:: @ 0884001A - .incbin "baserom.gba", 0x84001A, 0x0000066 - -gUnk_08840080:: @ 08840080 - .incbin "baserom.gba", 0x840080, 0x00001E9 - -gUnk_08840269:: @ 08840269 - .incbin "baserom.gba", 0x840269, 0x0000128 - -gUnk_08840391:: @ 08840391 - .incbin "baserom.gba", 0x840391, 0x00000B2 - -gUnk_08840443:: @ 08840443 - .incbin "baserom.gba", 0x840443, 0x000021D - -gUnk_08840660:: @ 08840660 - .incbin "baserom.gba", 0x840660, 0x0000203 - -gUnk_08840863:: @ 08840863 - .incbin "baserom.gba", 0x840863, 0x0000129 - -gUnk_0884098C:: @ 0884098C - .incbin "baserom.gba", 0x84098C, 0x0000154 - -gUnk_08840AE0:: @ 08840AE0 - .incbin "baserom.gba", 0x840AE0, 0x00004C0 - -gUnk_08840FA0:: @ 08840FA0 - .incbin "baserom.gba", 0x840FA0, 0x0000500 - -gUnk_088414A0:: @ 088414A0 - .incbin "baserom.gba", 0x8414A0, 0x0000380 - -gUnk_08841820:: @ 08841820 - .incbin "baserom.gba", 0x841820, 0x00002C0 - -gUnk_08841AE0:: @ 08841AE0 - .incbin "baserom.gba", 0x841AE0, 0x00004E0 - -gUnk_08841FC0:: @ 08841FC0 - .incbin "baserom.gba", 0x841FC0, 0x000026C - -gUnk_0884222C:: @ 0884222C - .incbin "baserom.gba", 0x84222C, 0x00000B4 - -gUnk_088422E0:: @ 088422E0 - .incbin "baserom.gba", 0x8422E0, 0x0000DA0 - -gUnk_08843080:: @ 08843080 - .incbin "baserom.gba", 0x843080, 0x00002B3 - -gUnk_08843333:: @ 08843333 - .incbin "baserom.gba", 0x843333, 0x00001AF - -gUnk_088434E2:: @ 088434E2 - .incbin "baserom.gba", 0x8434E2, 0x00009FE - -gUnk_08843EE0:: @ 08843EE0 - .incbin "baserom.gba", 0x843EE0, 0x0000375 - -gUnk_08844255:: @ 08844255 - .incbin "baserom.gba", 0x844255, 0x00001F0 - -gUnk_08844445:: @ 08844445 - .incbin "baserom.gba", 0x844445, 0x000097B - -gUnk_08844DC0:: @ 08844DC0 - .incbin "baserom.gba", 0x844DC0, 0x0000795 - -gUnk_08845555:: @ 08845555 - .incbin "baserom.gba", 0x845555, 0x000064B - -gUnk_08845BA0:: @ 08845BA0 - .incbin "baserom.gba", 0x845BA0, 0x0001A00 - -gUnk_088475A0:: @ 088475A0 - .incbin "baserom.gba", 0x8475A0, 0x00002E7 - -gUnk_08847887:: @ 08847887 - .incbin "baserom.gba", 0x847887, 0x00007FE - -gUnk_08848085:: @ 08848085 - .incbin "baserom.gba", 0x848085, 0x0000EDB - -gUnk_08848F60:: @ 08848F60 - .incbin "baserom.gba", 0x848F60, 0x00010C0 - -gUnk_0884A020:: @ 0884A020 - .incbin "baserom.gba", 0x84A020, 0x00003E0 - -gUnk_0884A400:: @ 0884A400 - .incbin "baserom.gba", 0x84A400, 0x00003A0 - -gUnk_0884A7A0:: @ 0884A7A0 - .incbin "baserom.gba", 0x84A7A0, 0x0000360 - -gUnk_0884AB00:: @ 0884AB00 - .incbin "baserom.gba", 0x84AB00, 0x00000CD - -gUnk_0884ABCD:: @ 0884ABCD - .incbin "baserom.gba", 0x84ABCD, 0x0000AB3 - -gUnk_0884B680:: @ 0884B680 - .incbin "baserom.gba", 0x84B680, 0x00006B2 - -gUnk_0884BD32:: @ 0884BD32 - .incbin "baserom.gba", 0x84BD32, 0x000044E - -gUnk_0884C180:: @ 0884C180 - .incbin "baserom.gba", 0x84C180, 0x0000AE0 - -gUnk_0884CC60:: @ 0884CC60 - .incbin "baserom.gba", 0x84CC60, 0x0000480 - -gUnk_0884D0E0:: @ 0884D0E0 - .incbin "baserom.gba", 0x84D0E0, 0x0000320 - -gUnk_0884D400:: @ 0884D400 - .incbin "baserom.gba", 0x84D400, 0x0000360 - -gUnk_0884D760:: @ 0884D760 - .incbin "baserom.gba", 0x84D760, 0x00003A0 - -gUnk_0884DB00:: @ 0884DB00 - .incbin "baserom.gba", 0x84DB00, 0x0000400 - -gUnk_0884DF00:: @ 0884DF00 - .incbin "baserom.gba", 0x84DF00, 0x00006F0 - -gUnk_0884E5F0:: @ 0884E5F0 - .incbin "baserom.gba", 0x84E5F0, 0x00000F0 - -gUnk_0884E6E0:: @ 0884E6E0 - .incbin "baserom.gba", 0x84E6E0, 0x0000428 - -gUnk_0884EB08:: @ 0884EB08 - .incbin "baserom.gba", 0x84EB08, 0x0000100 - -gUnk_0884EC08:: @ 0884EC08 - .incbin "baserom.gba", 0x84EC08, 0x0000400 - -gUnk_0884F008:: @ 0884F008 - .incbin "baserom.gba", 0x84F008, 0x00000EC - -gUnk_0884F0F4:: @ 0884F0F4 - .incbin "baserom.gba", 0x84F0F4, 0x0000100 - -gUnk_0884F1F4:: @ 0884F1F4 - .incbin "baserom.gba", 0x84F1F4, 0x0000E0D - -gUnk_08850001:: @ 08850001 - .incbin "baserom.gba", 0x850001, 0x0000007 - -gUnk_08850008:: @ 08850008 - .incbin "baserom.gba", 0x850008, 0x000047D - -gUnk_08850485:: @ 08850485 - .incbin "baserom.gba", 0x850485, 0x00003FF - -gUnk_08850884:: @ 08850884 - .incbin "baserom.gba", 0x850884, 0x0000101 - -gUnk_08850985:: @ 08850985 - .incbin "baserom.gba", 0x850985, 0x000075B - -gUnk_088510E0:: @ 088510E0 - .incbin "baserom.gba", 0x8510E0, 0x00001B1 - -gUnk_08851291:: @ 08851291 - .incbin "baserom.gba", 0x851291, 0x00015F4 - -gUnk_08852885:: @ 08852885 - .incbin "baserom.gba", 0x852885, 0x0000100 - -gUnk_08852985:: @ 08852985 - .incbin "baserom.gba", 0x852985, 0x0001073 - -gUnk_088539F8:: @ 088539F8 - .incbin "baserom.gba", 0x8539F8, 0x00000E8 - -gUnk_08853AE0:: @ 08853AE0 - .incbin "baserom.gba", 0x853AE0, 0x0000FCA - -gUnk_08854AAA:: @ 08854AAA - .incbin "baserom.gba", 0x854AAA, 0x0000B10 - -gUnk_088555BA:: @ 088555BA - .incbin "baserom.gba", 0x8555BA, 0x0000F26 - -gUnk_088564E0:: @ 088564E0 - .incbin "baserom.gba", 0x8564E0, 0x00003C0 - -gUnk_088568A0:: @ 088568A0 - .incbin "baserom.gba", 0x8568A0, 0x0000380 - -gUnk_08856C20:: @ 08856C20 - .incbin "baserom.gba", 0x856C20, 0x0000380 - -gUnk_08856FA0:: @ 08856FA0 - .incbin "baserom.gba", 0x856FA0, 0x0000380 - -gUnk_08857320:: @ 08857320 - .incbin "baserom.gba", 0x857320, 0x0000560 - -gUnk_08857880:: @ 08857880 - .incbin "baserom.gba", 0x857880, 0x0000480 - -gUnk_08857D00:: @ 08857D00 - .incbin "baserom.gba", 0x857D00, 0x000030A - -gUnk_0885800A:: @ 0885800A - .incbin "baserom.gba", 0x85800A, 0x0000176 - -gUnk_08858180:: @ 08858180 - .incbin "baserom.gba", 0x858180, 0x0000500 - -gUnk_08858680:: @ 08858680 - .incbin "baserom.gba", 0x858680, 0x00014C0 - -gUnk_08859B40:: @ 08859B40 - .incbin "baserom.gba", 0x859B40, 0x0000660 - -gUnk_0885A1A0:: @ 0885A1A0 - .incbin "baserom.gba", 0x85A1A0, 0x0001080 - -gUnk_0885B220:: @ 0885B220 - .incbin "baserom.gba", 0x85B220, 0x0000800 - -gUnk_0885BA20:: @ 0885BA20 - .incbin "baserom.gba", 0x85BA20, 0x0000800 - -gUnk_0885C220:: @ 0885C220 - .incbin "baserom.gba", 0x85C220, 0x0000500 - -gUnk_0885C720:: @ 0885C720 - .incbin "baserom.gba", 0x85C720, 0x0000500 - -gUnk_0885CC20:: @ 0885CC20 - .incbin "baserom.gba", 0x85CC20, 0x0001BF3 - -gUnk_0885E813:: @ 0885E813 - .incbin "baserom.gba", 0x85E813, 0x00000E5 - -gUnk_0885E8F8:: @ 0885E8F8 - .incbin "baserom.gba", 0x85E8F8, 0x00013A8 - -gUnk_0885FCA0:: @ 0885FCA0 - .incbin "baserom.gba", 0x85FCA0, 0x0000362 - -gUnk_08860002:: @ 08860002 - .incbin "baserom.gba", 0x860002, 0x00000CB - -gUnk_088600CD:: @ 088600CD - .incbin "baserom.gba", 0x8600CD, 0x0000075 - -gUnk_08860142:: @ 08860142 - .incbin "baserom.gba", 0x860142, 0x00007C1 - -gUnk_08860903:: @ 08860903 - .incbin "baserom.gba", 0x860903, 0x0000383 - -gUnk_08860C86:: @ 08860C86 - .incbin "baserom.gba", 0x860C86, 0x000028A - -gUnk_08860F10:: @ 08860F10 - .incbin "baserom.gba", 0x860F10, 0x0001770 - -gUnk_08862680:: @ 08862680 - .incbin "baserom.gba", 0x862680, 0x0000413 - -gUnk_08862A93:: @ 08862A93 - .incbin "baserom.gba", 0x862A93, 0x0001974 - -gUnk_08864407:: @ 08864407 - .incbin "baserom.gba", 0x864407, 0x0001C79 - -gUnk_08866080:: @ 08866080 - .incbin "baserom.gba", 0x866080, 0x00006F7 - -gUnk_08866777:: @ 08866777 - .incbin "baserom.gba", 0x866777, 0x0000BDE - -gUnk_08867355:: @ 08867355 - .incbin "baserom.gba", 0x867355, 0x0001498 - -gUnk_088687ED:: @ 088687ED - .incbin "baserom.gba", 0x8687ED, 0x0000253 - -gUnk_08868A40:: @ 08868A40 - .incbin "baserom.gba", 0x868A40, 0x0001F58 - -gUnk_0886A998:: @ 0886A998 - .incbin "baserom.gba", 0x86A998, 0x0000156 - -gUnk_0886AAEE:: @ 0886AAEE - .incbin "baserom.gba", 0x86AAEE, 0x0000367 - -gUnk_0886AE55:: @ 0886AE55 - .incbin "baserom.gba", 0x86AE55, 0x0000009 - -gUnk_0886AE5E:: @ 0886AE5E - .incbin "baserom.gba", 0x86AE5E, 0x00010C2 - -gUnk_0886BF20:: @ 0886BF20 - .incbin "baserom.gba", 0x86BF20, 0x0003900 - -gUnk_0886F820:: @ 0886F820 - .incbin "baserom.gba", 0x86F820, 0x00007E7 - -gUnk_08870007:: @ 08870007 - .incbin "baserom.gba", 0x870007, 0x000000A - -gUnk_08870011:: @ 08870011 - .incbin "baserom.gba", 0x870011, 0x000005A - -gUnk_0887006B:: @ 0887006B - .incbin "baserom.gba", 0x87006B, 0x000001B - -gUnk_08870086:: @ 08870086 - .incbin "baserom.gba", 0x870086, 0x00001E9 - -gUnk_0887026F:: @ 0887026F - .incbin "baserom.gba", 0x87026F, 0x0002691 - -gUnk_08872900:: @ 08872900 - .incbin "baserom.gba", 0x872900, 0x0002C80 - -gUnk_08875580:: @ 08875580 - .incbin "baserom.gba", 0x875580, 0x0001A83 - -gUnk_08877003:: @ 08877003 - .incbin "baserom.gba", 0x877003, 0x0000663 - -gUnk_08877666:: @ 08877666 - .incbin "baserom.gba", 0x877666, 0x0000107 - -gUnk_0887776D:: @ 0887776D - .incbin "baserom.gba", 0x87776D, 0x0000072 - -gUnk_088777DF:: @ 088777DF - .incbin "baserom.gba", 0x8777DF, 0x0000011 - -gUnk_088777F0:: @ 088777F0 - .incbin "baserom.gba", 0x8777F0, 0x00010BF - -gUnk_088788AF:: @ 088788AF - .incbin "baserom.gba", 0x8788AF, 0x00001D1 - -gUnk_08878A80:: @ 08878A80 - .incbin "baserom.gba", 0x878A80, 0x000142B - -gUnk_08879EAB:: @ 08879EAB - .incbin "baserom.gba", 0x879EAB, 0x0001355 - -gUnk_0887B200:: @ 0887B200 - .incbin "baserom.gba", 0x87B200, 0x0002EA0 - -gUnk_0887E0A0:: @ 0887E0A0 - .incbin "baserom.gba", 0x87E0A0, 0x0000668 - -gUnk_0887E708:: @ 0887E708 - .incbin "baserom.gba", 0x87E708, 0x00018F8 - -gUnk_08880000:: @ 08880000 - .incbin "baserom.gba", 0x880000, 0x00000AA - -gUnk_088800AA:: @ 088800AA - .incbin "baserom.gba", 0x8800AA, 0x0000056 - -gUnk_08880100:: @ 08880100 - .incbin "baserom.gba", 0x880100, 0x0000087 - -gUnk_08880187:: @ 08880187 - .incbin "baserom.gba", 0x880187, 0x000028D - -gUnk_08880414:: @ 08880414 - .incbin "baserom.gba", 0x880414, 0x00003F4 - -gUnk_08880808:: @ 08880808 - .incbin "baserom.gba", 0x880808, 0x000098B - -gUnk_08881193:: @ 08881193 - .incbin "baserom.gba", 0x881193, 0x000022D - -gUnk_088813C0:: @ 088813C0 - .incbin "baserom.gba", 0x8813C0, 0x000050C - -gUnk_088818CC:: @ 088818CC - .incbin "baserom.gba", 0x8818CC, 0x0000975 - -gUnk_08882241:: @ 08882241 - .incbin "baserom.gba", 0x882241, 0x0000747 - -gUnk_08882988:: @ 08882988 - .incbin "baserom.gba", 0x882988, 0x0000A13 - -gUnk_0888339B:: @ 0888339B - .incbin "baserom.gba", 0x88339B, 0x0000B05 - -gUnk_08883EA0:: @ 08883EA0 - .incbin "baserom.gba", 0x883EA0, 0x0001F00 - -gUnk_08885DA0:: @ 08885DA0 - .incbin "baserom.gba", 0x885DA0, 0x00019D7 - -gUnk_08887777:: @ 08887777 - .incbin "baserom.gba", 0x887777, 0x0000889 - -gUnk_08888000:: @ 08888000 - .incbin "baserom.gba", 0x888000, 0x0000188 - -gUnk_08888188:: @ 08888188 - .incbin "baserom.gba", 0x888188, 0x0000414 - -gUnk_0888859C:: @ 0888859C - .incbin "baserom.gba", 0x88859C, 0x00001CA - -gUnk_08888766:: @ 08888766 - .incbin "baserom.gba", 0x888766, 0x000000A - -gUnk_08888770:: @ 08888770 - .incbin "baserom.gba", 0x888770, 0x0000090 - -gUnk_08888800:: @ 08888800 - .incbin "baserom.gba", 0x888800, 0x0000080 - -gUnk_08888880:: @ 08888880 - .incbin "baserom.gba", 0x888880, 0x0000008 - -gUnk_08888888:: @ 08888888 - .incbin "baserom.gba", 0x888888, 0x0000001 - -gUnk_08888889:: @ 08888889 - .incbin "baserom.gba", 0x888889, 0x0000010 - -gUnk_08888899:: @ 08888899 - .incbin "baserom.gba", 0x888899, 0x00000EF - -gUnk_08888988:: @ 08888988 - .incbin "baserom.gba", 0x888988, 0x0000012 - -gUnk_0888899A:: @ 0888899A - .incbin "baserom.gba", 0x88899A, 0x0000110 - -gUnk_08888AAA:: @ 08888AAA - .incbin "baserom.gba", 0x888AAA, 0x000043B - -gUnk_08888EE5:: @ 08888EE5 - .incbin "baserom.gba", 0x888EE5, 0x0000093 - -gUnk_08888F78:: @ 08888F78 - .incbin "baserom.gba", 0x888F78, 0x0000912 - -gUnk_0888988A:: @ 0888988A - .incbin "baserom.gba", 0x88988A, 0x0000076 - -gUnk_08889900:: @ 08889900 - .incbin "baserom.gba", 0x889900, 0x000008E - -gUnk_0888998E:: @ 0888998E - .incbin "baserom.gba", 0x88998E, 0x000000B - -gUnk_08889999:: @ 08889999 - .incbin "baserom.gba", 0x889999, 0x0000011 - -gUnk_088899AA:: @ 088899AA - .incbin "baserom.gba", 0x8899AA, 0x00003F6 - -gUnk_08889DA0:: @ 08889DA0 - .incbin "baserom.gba", 0x889DA0, 0x000014E - -gUnk_08889EEE:: @ 08889EEE - .incbin "baserom.gba", 0x889EEE, 0x0000BAC - -gUnk_0888AA9A:: @ 0888AA9A - .incbin "baserom.gba", 0x88AA9A, 0x0000066 - -gUnk_0888AB00:: @ 0888AB00 - .incbin "baserom.gba", 0x88AB00, 0x0000311 - -gUnk_0888AE11:: @ 0888AE11 - .incbin "baserom.gba", 0x88AE11, 0x00001F7 - -gUnk_0888B008:: @ 0888B008 - .incbin "baserom.gba", 0x88B008, 0x0002D18 - -gUnk_0888DD20:: @ 0888DD20 - .incbin "baserom.gba", 0x88DD20, 0x0000140 - -gUnk_0888DE60:: @ 0888DE60 - .incbin "baserom.gba", 0x88DE60, 0x0001B00 - -gUnk_0888F960:: @ 0888F960 - .incbin "baserom.gba", 0x88F960, 0x00006A0 - -gUnk_08890000:: @ 08890000 - .incbin "baserom.gba", 0x890000, 0x000003C - -gUnk_0889003C:: @ 0889003C - .incbin "baserom.gba", 0x89003C, 0x0000014 - -gUnk_08890050:: @ 08890050 - .incbin "baserom.gba", 0x890050, 0x0000028 - -gUnk_08890078:: @ 08890078 - .incbin "baserom.gba", 0x890078, 0x0000008 - -gUnk_08890080:: @ 08890080 - .incbin "baserom.gba", 0x890080, 0x0000034 - -gUnk_088900B4:: @ 088900B4 - .incbin "baserom.gba", 0x8900B4, 0x00000B4 - -gUnk_08890168:: @ 08890168 - .incbin "baserom.gba", 0x890168, 0x0000058 - -gUnk_088901C0:: @ 088901C0 - .incbin "baserom.gba", 0x8901C0, 0x0000098 - -gUnk_08890258:: @ 08890258 - .incbin "baserom.gba", 0x890258, 0x00001A9 - -gUnk_08890401:: @ 08890401 - .incbin "baserom.gba", 0x890401, 0x0000048 - -gUnk_08890449:: @ 08890449 - .incbin "baserom.gba", 0x890449, 0x0000010 - -gUnk_08890459:: @ 08890459 - .incbin "baserom.gba", 0x890459, 0x000001D - -gUnk_08890476:: @ 08890476 - .incbin "baserom.gba", 0x890476, 0x0000012 - -gUnk_08890488:: @ 08890488 - .incbin "baserom.gba", 0x890488, 0x0000378 - -gUnk_08890800:: @ 08890800 - .incbin "baserom.gba", 0x890800, 0x0000006 - -gUnk_08890806:: @ 08890806 - .incbin "baserom.gba", 0x890806, 0x0000001 - -gUnk_08890807:: @ 08890807 - .incbin "baserom.gba", 0x890807, 0x00000C5 - -gUnk_088908CC:: @ 088908CC - .incbin "baserom.gba", 0x8908CC, 0x000063A - -gUnk_08890F06:: @ 08890F06 - .incbin "baserom.gba", 0x890F06, 0x00000BA - -gUnk_08890FC0:: @ 08890FC0 - .incbin "baserom.gba", 0x890FC0, 0x000116E - -gUnk_0889212E:: @ 0889212E - .incbin "baserom.gba", 0x89212E, 0x0000B12 - -gUnk_08892C40:: @ 08892C40 - .incbin "baserom.gba", 0x892C40, 0x0002300 - -gUnk_08894F40:: @ 08894F40 - .incbin "baserom.gba", 0x894F40, 0x0001749 - -gUnk_08896689:: @ 08896689 - .incbin "baserom.gba", 0x896689, 0x0000D37 - -gUnk_088973C0:: @ 088973C0 - .incbin "baserom.gba", 0x8973C0, 0x0000440 - -gUnk_08897800:: @ 08897800 - .incbin "baserom.gba", 0x897800, 0x00008C0 - -gUnk_088980C0:: @ 088980C0 - .incbin "baserom.gba", 0x8980C0, 0x0000495 - -gUnk_08898555:: @ 08898555 - .incbin "baserom.gba", 0x898555, 0x0000445 - -gUnk_0889899A:: @ 0889899A - .incbin "baserom.gba", 0x89899A, 0x0000011 - -gUnk_088989AB:: @ 088989AB - .incbin "baserom.gba", 0x8989AB, 0x0000515 - -gUnk_08898EC0:: @ 08898EC0 - .incbin "baserom.gba", 0x898EC0, 0x00000B7 - -gUnk_08898F77:: @ 08898F77 - .incbin "baserom.gba", 0x898F77, 0x00002C9 - -gUnk_08899240:: @ 08899240 - .incbin "baserom.gba", 0x899240, 0x00004C0 - -gUnk_08899700:: @ 08899700 - .incbin "baserom.gba", 0x899700, 0x0000298 - -gUnk_08899998:: @ 08899998 - .incbin "baserom.gba", 0x899998, 0x0000001 - -gUnk_08899999:: @ 08899999 - .incbin "baserom.gba", 0x899999, 0x000004B - -gUnk_088999E4:: @ 088999E4 - .incbin "baserom.gba", 0x8999E4, 0x0000093 - -gUnk_08899A77:: @ 08899A77 - .incbin "baserom.gba", 0x899A77, 0x0000033 - -gUnk_08899AAA:: @ 08899AAA - .incbin "baserom.gba", 0x899AAA, 0x00000B6 - -gUnk_08899B60:: @ 08899B60 - .incbin "baserom.gba", 0x899B60, 0x00002E0 - -gUnk_08899E40:: @ 08899E40 - .incbin "baserom.gba", 0x899E40, 0x00007A0 - -gUnk_0889A5E0:: @ 0889A5E0 - .incbin "baserom.gba", 0x89A5E0, 0x0000300 - -gUnk_0889A8E0:: @ 0889A8E0 - .incbin "baserom.gba", 0x89A8E0, 0x00001BE - -gUnk_0889AA9E:: @ 0889AA9E - .incbin "baserom.gba", 0x89AA9E, 0x0000004 - -gUnk_0889AAA2:: @ 0889AAA2 - .incbin "baserom.gba", 0x89AAA2, 0x0000008 - -gUnk_0889AAAA:: @ 0889AAAA - .incbin "baserom.gba", 0x89AAAA, 0x0000001 - -gUnk_0889AAAB:: @ 0889AAAB - .incbin "baserom.gba", 0x89AAAB, 0x0000010 - -gUnk_0889AABB:: @ 0889AABB - .incbin "baserom.gba", 0x89AABB, 0x0000100 - -gUnk_0889ABBB:: @ 0889ABBB - .incbin "baserom.gba", 0x89ABBB, 0x0000001 - -gUnk_0889ABBC:: @ 0889ABBC - .incbin "baserom.gba", 0x89ABBC, 0x0000C24 - -gUnk_0889B7E0:: @ 0889B7E0 - .incbin "baserom.gba", 0x89B7E0, 0x0000360 - -gUnk_0889BB40:: @ 0889BB40 - .incbin "baserom.gba", 0x89BB40, 0x000018C - -gUnk_0889BCCC:: @ 0889BCCC - .incbin "baserom.gba", 0x89BCCC, 0x00005F4 - -gUnk_0889C2C0:: @ 0889C2C0 - .incbin "baserom.gba", 0x89C2C0, 0x0000400 - -gUnk_0889C6C0:: @ 0889C6C0 - .incbin "baserom.gba", 0x89C6C0, 0x000005C - -gUnk_0889C71C:: @ 0889C71C - .incbin "baserom.gba", 0x89C71C, 0x0000324 - -gUnk_0889CA40:: @ 0889CA40 - .incbin "baserom.gba", 0x89CA40, 0x00005B0 - -gUnk_0889CFF0:: @ 0889CFF0 - .incbin "baserom.gba", 0x89CFF0, 0x0000450 - -gUnk_0889D440:: @ 0889D440 - .incbin "baserom.gba", 0x89D440, 0x0000A00 - -gUnk_0889DE40:: @ 0889DE40 - .incbin "baserom.gba", 0x89DE40, 0x0000300 - -gUnk_0889E140:: @ 0889E140 - .incbin "baserom.gba", 0x89E140, 0x00003D1 - -gUnk_0889E511:: @ 0889E511 - .incbin "baserom.gba", 0x89E511, 0x00000EF - -gUnk_0889E600:: @ 0889E600 - .incbin "baserom.gba", 0x89E600, 0x00007C0 - -gUnk_0889EDC0:: @ 0889EDC0 - .incbin "baserom.gba", 0x89EDC0, 0x000012E - -gUnk_0889EEEE:: @ 0889EEEE - .incbin "baserom.gba", 0x89EEEE, 0x00009F2 - -gUnk_0889F8E0:: @ 0889F8E0 - .incbin "baserom.gba", 0x89F8E0, 0x00007D3 - -gUnk_088A00B3:: @ 088A00B3 - .incbin "baserom.gba", 0x8A00B3, 0x000000D - -gUnk_088A00C0:: @ 088A00C0 - .incbin "baserom.gba", 0x8A00C0, 0x0000360 - -gUnk_088A0420:: @ 088A0420 - .incbin "baserom.gba", 0x8A0420, 0x0000469 - -gUnk_088A0889:: @ 088A0889 - .incbin "baserom.gba", 0x8A0889, 0x0000024 - -gUnk_088A08AD:: @ 088A08AD - .incbin "baserom.gba", 0x8A08AD, 0x0000433 - -gUnk_088A0CE0:: @ 088A0CE0 - .incbin "baserom.gba", 0x8A0CE0, 0x000007F - -gUnk_088A0D5F:: @ 088A0D5F - .incbin "baserom.gba", 0x8A0D5F, 0x000062F - -gUnk_088A138E:: @ 088A138E - .incbin "baserom.gba", 0x8A138E, 0x0000112 - -gUnk_088A14A0:: @ 088A14A0 - .incbin "baserom.gba", 0x8A14A0, 0x0000DC0 - -gUnk_088A2260:: @ 088A2260 - .incbin "baserom.gba", 0x8A2260, 0x00000E5 - -gUnk_088A2345:: @ 088A2345 - .incbin "baserom.gba", 0x8A2345, 0x000021B - -gUnk_088A2560:: @ 088A2560 - .incbin "baserom.gba", 0x8A2560, 0x00002A8 - -gUnk_088A2808:: @ 088A2808 - .incbin "baserom.gba", 0x8A2808, 0x0000038 - -gUnk_088A2840:: @ 088A2840 - .incbin "baserom.gba", 0x8A2840, 0x0000500 - -gUnk_088A2D40:: @ 088A2D40 - .incbin "baserom.gba", 0x8A2D40, 0x00007C0 - -gUnk_088A3500:: @ 088A3500 - .incbin "baserom.gba", 0x8A3500, 0x0000300 - -gUnk_088A3800:: @ 088A3800 - .incbin "baserom.gba", 0x8A3800, 0x00007A0 - -gUnk_088A3FA0:: @ 088A3FA0 - .incbin "baserom.gba", 0x8A3FA0, 0x0000500 - -gUnk_088A44A0:: @ 088A44A0 - .incbin "baserom.gba", 0x8A44A0, 0x00003C0 - -gUnk_088A4860:: @ 088A4860 - .incbin "baserom.gba", 0x8A4860, 0x00009A0 - -gUnk_088A5200:: @ 088A5200 - .incbin "baserom.gba", 0x8A5200, 0x0000DC0 - -gUnk_088A5FC0:: @ 088A5FC0 - .incbin "baserom.gba", 0x8A5FC0, 0x00003A0 - -gUnk_088A6360:: @ 088A6360 - .incbin "baserom.gba", 0x8A6360, 0x0000980 - -gUnk_088A6CE0:: @ 088A6CE0 - .incbin "baserom.gba", 0x8A6CE0, 0x00007C0 - -gUnk_088A74A0:: @ 088A74A0 - .incbin "baserom.gba", 0x8A74A0, 0x0000408 - -gUnk_088A78A8:: @ 088A78A8 - .incbin "baserom.gba", 0x8A78A8, 0x0000139 - -gUnk_088A79E1:: @ 088A79E1 - .incbin "baserom.gba", 0x8A79E1, 0x00002DF - -gUnk_088A7CC0:: @ 088A7CC0 - .incbin "baserom.gba", 0x8A7CC0, 0x0000340 - -gUnk_088A8000:: @ 088A8000 - .incbin "baserom.gba", 0x8A8000, 0x0000500 - -gUnk_088A8500:: @ 088A8500 - .incbin "baserom.gba", 0x8A8500, 0x0000500 - -gUnk_088A8A00:: @ 088A8A00 - .incbin "baserom.gba", 0x8A8A00, 0x00001CA - -gUnk_088A8BCA:: @ 088A8BCA - .incbin "baserom.gba", 0x8A8BCA, 0x00005F6 - -gUnk_088A91C0:: @ 088A91C0 - .incbin "baserom.gba", 0x8A91C0, 0x0000660 - -gUnk_088A9820:: @ 088A9820 - .incbin "baserom.gba", 0x8A9820, 0x0000179 - -gUnk_088A9999:: @ 088A9999 - .incbin "baserom.gba", 0x8A9999, 0x0000247 - -gUnk_088A9BE0:: @ 088A9BE0 - .incbin "baserom.gba", 0x8A9BE0, 0x0000460 - -gUnk_088AA040:: @ 088AA040 - .incbin "baserom.gba", 0x8AA040, 0x0000380 - -gUnk_088AA3C0:: @ 088AA3C0 - .incbin "baserom.gba", 0x8AA3C0, 0x00004E0 - -gUnk_088AA8A0:: @ 088AA8A0 - .incbin "baserom.gba", 0x8AA8A0, 0x0000209 - -gUnk_088AAAA9:: @ 088AAAA9 - .incbin "baserom.gba", 0x8AAAA9, 0x0000137 - -gUnk_088AABE0:: @ 088AABE0 - .incbin "baserom.gba", 0x8AABE0, 0x00006A0 - -gUnk_088AB280:: @ 088AB280 - .incbin "baserom.gba", 0x8AB280, 0x00008A4 - -gUnk_088ABB24:: @ 088ABB24 - .incbin "baserom.gba", 0x8ABB24, 0x00000DC - -gUnk_088ABC00:: @ 088ABC00 - .incbin "baserom.gba", 0x8ABC00, 0x00001D6 - -gUnk_088ABDD6:: @ 088ABDD6 - .incbin "baserom.gba", 0x8ABDD6, 0x000040A - -gUnk_088AC1E0:: @ 088AC1E0 - .incbin "baserom.gba", 0x8AC1E0, 0x00008A0 - -gUnk_088ACA80:: @ 088ACA80 - .incbin "baserom.gba", 0x8ACA80, 0x000024B - -gUnk_088ACCCB:: @ 088ACCCB - .incbin "baserom.gba", 0x8ACCCB, 0x0000675 - -gUnk_088AD340:: @ 088AD340 - .incbin "baserom.gba", 0x8AD340, 0x00005A0 - -gUnk_088AD8E0:: @ 088AD8E0 - .incbin "baserom.gba", 0x8AD8E0, 0x0000620 - -gUnk_088ADF00:: @ 088ADF00 - .incbin "baserom.gba", 0x8ADF00, 0x0000F00 - -gUnk_088AEE00:: @ 088AEE00 - .incbin "baserom.gba", 0x8AEE00, 0x00000EE - -gUnk_088AEEEE:: @ 088AEEEE - .incbin "baserom.gba", 0x8AEEEE, 0x0000552 - -gUnk_088AF440:: @ 088AF440 - .incbin "baserom.gba", 0x8AF440, 0x00012C0 - -gUnk_088B0700:: @ 088B0700 - .incbin "baserom.gba", 0x8B0700, 0x000018A - -gUnk_088B088A:: @ 088B088A - .incbin "baserom.gba", 0x8B088A, 0x0001136 - -gUnk_088B19C0:: @ 088B19C0 - .incbin "baserom.gba", 0x8B19C0, 0x000076E - -gUnk_088B212E:: @ 088B212E - .incbin "baserom.gba", 0x8B212E, 0x0001032 - -gUnk_088B3160:: @ 088B3160 - .incbin "baserom.gba", 0x8B3160, 0x00019A0 - -gUnk_088B4B00:: @ 088B4B00 - .incbin "baserom.gba", 0x8B4B00, 0x0001300 - -gUnk_088B5E00:: @ 088B5E00 - .incbin "baserom.gba", 0x8B5E00, 0x0001EA0 - -gUnk_088B7CA0:: @ 088B7CA0 - .incbin "baserom.gba", 0x8B7CA0, 0x0001640 - -gUnk_088B92E0:: @ 088B92E0 - .incbin "baserom.gba", 0x8B92E0, 0x00010AB - -gUnk_088BA38B:: @ 088BA38B - .incbin "baserom.gba", 0x8BA38B, 0x0000715 - -gUnk_088BAAA0:: @ 088BAAA0 - .incbin "baserom.gba", 0x8BAAA0, 0x000001B - -gUnk_088BAABB:: @ 088BAABB - .incbin "baserom.gba", 0x8BAABB, 0x00000D0 - -gUnk_088BAB8B:: @ 088BAB8B - .incbin "baserom.gba", 0x8BAB8B, 0x0000D15 - -gUnk_088BB8A0:: @ 088BB8A0 - .incbin "baserom.gba", 0x8BB8A0, 0x0000580 - -gUnk_088BBE20:: @ 088BBE20 - .incbin "baserom.gba", 0x8BBE20, 0x0000C40 - -gUnk_088BCA60:: @ 088BCA60 - .incbin "baserom.gba", 0x8BCA60, 0x0001100 - -gUnk_088BDB60:: @ 088BDB60 - .incbin "baserom.gba", 0x8BDB60, 0x0001304 - -gUnk_088BEE64:: @ 088BEE64 - .incbin "baserom.gba", 0x8BEE64, 0x000127C - -gUnk_088C00E0:: @ 088C00E0 - .incbin "baserom.gba", 0x8C00E0, 0x0000220 - -gUnk_088C0300:: @ 088C0300 - .incbin "baserom.gba", 0x8C0300, 0x000035C - -gUnk_088C065C:: @ 088C065C - .incbin "baserom.gba", 0x8C065C, 0x00002A4 - -gUnk_088C0900:: @ 088C0900 - .incbin "baserom.gba", 0x8C0900, 0x000598C - -gUnk_088C628C:: @ 088C628C - .incbin "baserom.gba", 0x8C628C, 0x00003FC - -gUnk_088C6688:: @ 088C6688 - .incbin "baserom.gba", 0x8C6688, 0x00016A8 - -gUnk_088C7D30:: @ 088C7D30 - .incbin "baserom.gba", 0x8C7D30, 0x0007178 - -gUnk_088CEEA8:: @ 088CEEA8 - .incbin "baserom.gba", 0x8CEEA8, 0x0001162 - -gUnk_088D000A:: @ 088D000A - .incbin "baserom.gba", 0x8D000A, 0x0000982 - -gUnk_088D098C:: @ 088D098C - .incbin "baserom.gba", 0x8D098C, 0x0001A31 - -gUnk_088D23BD:: @ 088D23BD - .incbin "baserom.gba", 0x8D23BD, 0x0001343 - -gUnk_088D3700:: @ 088D3700 - .incbin "baserom.gba", 0x8D3700, 0x0000FC8 - -gUnk_088D46C8:: @ 088D46C8 - .incbin "baserom.gba", 0x8D46C8, 0x0002078 - -gUnk_088D6740:: @ 088D6740 - .incbin "baserom.gba", 0x8D6740, 0x00020F3 - -gUnk_088D8833:: @ 088D8833 - .incbin "baserom.gba", 0x8D8833, 0x0001AD5 - -gUnk_088DA308:: @ 088DA308 - .incbin "baserom.gba", 0x8DA308, 0x00030A4 - -gUnk_088DD3AC:: @ 088DD3AC - .incbin "baserom.gba", 0x8DD3AC, 0x0002C5B - -gUnk_088E0007:: @ 088E0007 - .incbin "baserom.gba", 0x8E0007, 0x0000088 - -gUnk_088E008F:: @ 088E008F - .incbin "baserom.gba", 0x8E008F, 0x0000075 - -gUnk_088E0104:: @ 088E0104 - .incbin "baserom.gba", 0x8E0104, 0x0000231 - -gUnk_088E0335:: @ 088E0335 - .incbin "baserom.gba", 0x8E0335, 0x0000159 - -gUnk_088E048E:: @ 088E048E - .incbin "baserom.gba", 0x8E048E, 0x0000FEB - -gUnk_088E1479:: @ 088E1479 - .incbin "baserom.gba", 0x8E1479, 0x0005A09 - -gUnk_088E6E82:: @ 088E6E82 - .incbin "baserom.gba", 0x8E6E82, 0x0000EF7 - -gUnk_088E7D79:: @ 088E7D79 - .incbin "baserom.gba", 0x8E7D79, 0x0004315 - -gUnk_088EC08E:: @ 088EC08E - .incbin "baserom.gba", 0x8EC08E, 0x0002E60 - -gUnk_088EEEEE:: @ 088EEEEE - .incbin "baserom.gba", 0x8EEEEE, 0x0001292 - -gUnk_088F0180:: @ 088F0180 - .incbin "baserom.gba", 0x8F0180, 0x000020D - -gUnk_088F038D:: @ 088F038D - .incbin "baserom.gba", 0x8F038D, 0x0000DC4 - -gUnk_088F1151:: @ 088F1151 - .incbin "baserom.gba", 0x8F1151, 0x000045D - -gUnk_088F15AE:: @ 088F15AE - .incbin "baserom.gba", 0x8F15AE, 0x0002FB8 - -gUnk_088F4566:: @ 088F4566 - .incbin "baserom.gba", 0x8F4566, 0x000119C - -gUnk_088F5702:: @ 088F5702 - .incbin "baserom.gba", 0x8F5702, 0x0005186 - -gUnk_088FA888:: @ 088FA888 - .incbin "baserom.gba", 0x8FA888, 0x0000107 - -gUnk_088FA98F:: @ 088FA98F - .incbin "baserom.gba", 0x8FA98F, 0x000422C - -gUnk_088FEBBB:: @ 088FEBBB - .incbin "baserom.gba", 0x8FEBBB, 0x0000BCD - -gUnk_088FF788:: @ 088FF788 - .incbin "baserom.gba", 0x8FF788, 0x0000878 - -gUnk_08900000:: @ 08900000 - .incbin "baserom.gba", 0x900000, 0x0000099 - -gUnk_08900099:: @ 08900099 - .incbin "baserom.gba", 0x900099, 0x0000035 - -gUnk_089000CE:: @ 089000CE - .incbin "baserom.gba", 0x9000CE, 0x0000042 - -gUnk_08900110:: @ 08900110 - .incbin "baserom.gba", 0x900110, 0x0000270 - -gUnk_08900380:: @ 08900380 - .incbin "baserom.gba", 0x900380, 0x00002A0 - -gUnk_08900620:: @ 08900620 - .incbin "baserom.gba", 0x900620, 0x0003D2B - -gUnk_0890434B:: @ 0890434B - .incbin "baserom.gba", 0x90434B, 0x0009DB3 - -gUnk_0890E0FE:: @ 0890E0FE - .incbin "baserom.gba", 0x90E0FE, 0x0000302 - -gUnk_0890E400:: @ 0890E400 - .incbin "baserom.gba", 0x90E400, 0x0000004 - -gUnk_0890E404:: @ 0890E404 - .incbin "baserom.gba", 0x90E404, 0x0000100 - -gUnk_0890E504:: @ 0890E504 - .incbin "baserom.gba", 0x90E504, 0x0000100 - -gUnk_0890E604:: @ 0890E604 - .incbin "baserom.gba", 0x90E604, 0x00002FB - -gUnk_0890E8FF:: @ 0890E8FF - .incbin "baserom.gba", 0x90E8FF, 0x00007E9 - -gUnk_0890F0E8:: @ 0890F0E8 - .incbin "baserom.gba", 0x90F0E8, 0x0000F18 - -gUnk_08910000:: @ 08910000 - .incbin "baserom.gba", 0x910000, 0x0000007 - -gUnk_08910007:: @ 08910007 - .incbin "baserom.gba", 0x910007, 0x00002F9 - -gUnk_08910300:: @ 08910300 - .incbin "baserom.gba", 0x910300, 0x0000168 - -gUnk_08910468:: @ 08910468 - .incbin "baserom.gba", 0x910468, 0x0000398 - -gUnk_08910800:: @ 08910800 - .incbin "baserom.gba", 0x910800, 0x0000090 - -gUnk_08910890:: @ 08910890 - .incbin "baserom.gba", 0x910890, 0x0000993 - -gUnk_08911223:: @ 08911223 - .incbin "baserom.gba", 0x911223, 0x0000776 - -gUnk_08911999:: @ 08911999 - .incbin "baserom.gba", 0x911999, 0x0000467 - -gUnk_08911E00:: @ 08911E00 - .incbin "baserom.gba", 0x911E00, 0x0002418 - -gUnk_08914218:: @ 08914218 - .incbin "baserom.gba", 0x914218, 0x000012E - -gUnk_08914346:: @ 08914346 - .incbin "baserom.gba", 0x914346, 0x00003BA - -gUnk_08914700:: @ 08914700 - .incbin "baserom.gba", 0x914700, 0x0002BFF - -gUnk_089172FF:: @ 089172FF - .incbin "baserom.gba", 0x9172FF, 0x0000589 - -gUnk_08917888:: @ 08917888 - .incbin "baserom.gba", 0x917888, 0x0000345 - -gUnk_08917BCD:: @ 08917BCD - .incbin "baserom.gba", 0x917BCD, 0x0000FBE - -gUnk_08918B8B:: @ 08918B8B - .incbin "baserom.gba", 0x918B8B, 0x000250E - -gUnk_0891B099:: @ 0891B099 - .incbin "baserom.gba", 0x91B099, 0x0000A11 - -gUnk_0891BAAA:: @ 0891BAAA - .incbin "baserom.gba", 0x91BAAA, 0x0002757 - -gUnk_0891E201:: @ 0891E201 - .incbin "baserom.gba", 0x91E201, 0x0001D00 - -gUnk_0891FF01:: @ 0891FF01 - .incbin "baserom.gba", 0x91FF01, 0x00000EF - -gUnk_0891FFF0:: @ 0891FFF0 - .incbin "baserom.gba", 0x91FFF0, 0x0000010 - -gUnk_08920000:: @ 08920000 - .incbin "baserom.gba", 0x920000, 0x0000120 - -gUnk_08920120:: @ 08920120 - .incbin "baserom.gba", 0x920120, 0x0000672 - -gUnk_08920792:: @ 08920792 - .incbin "baserom.gba", 0x920792, 0x00000FF - -gUnk_08920891:: @ 08920891 - .incbin "baserom.gba", 0x920891, 0x0000802 - -gUnk_08921093:: @ 08921093 - .incbin "baserom.gba", 0x921093, 0x00001F7 - -gUnk_0892128A:: @ 0892128A - .incbin "baserom.gba", 0x92128A, 0x0001B9F - -gUnk_08922E29:: @ 08922E29 - .incbin "baserom.gba", 0x922E29, 0x0004969 - -gUnk_08927792:: @ 08927792 - .incbin "baserom.gba", 0x927792, 0x0000305 - -gUnk_08927A97:: @ 08927A97 - .incbin "baserom.gba", 0x927A97, 0x0001520 - -gUnk_08928FB7:: @ 08928FB7 - .incbin "baserom.gba", 0x928FB7, 0x00003DA - -gUnk_08929391:: @ 08929391 - .incbin "baserom.gba", 0x929391, 0x00000C6 - -gUnk_08929457:: @ 08929457 - .incbin "baserom.gba", 0x929457, 0x0000879 - -gUnk_08929CD0:: @ 08929CD0 - .incbin "baserom.gba", 0x929CD0, 0x00001B9 - -gUnk_08929E89:: @ 08929E89 - .incbin "baserom.gba", 0x929E89, 0x0003465 - -gUnk_0892D2EE:: @ 0892D2EE - .incbin "baserom.gba", 0x92D2EE, 0x0000FAB - -gUnk_0892E299:: @ 0892E299 - .incbin "baserom.gba", 0x92E299, 0x00000F9 - -gUnk_0892E392:: @ 0892E392 - .incbin "baserom.gba", 0x92E392, 0x0000A90 - -gUnk_0892EE22:: @ 0892EE22 - .incbin "baserom.gba", 0x92EE22, 0x000000B - -gUnk_0892EE2D:: @ 0892EE2D - .incbin "baserom.gba", 0x92EE2D, 0x00011D3 - -gUnk_08930000:: @ 08930000 - .incbin "baserom.gba", 0x930000, 0x0000010 - -gUnk_08930010:: @ 08930010 - .incbin "baserom.gba", 0x930010, 0x0000773 - -gUnk_08930783:: @ 08930783 - .incbin "baserom.gba", 0x930783, 0x0000010 - -gUnk_08930793:: @ 08930793 - .incbin "baserom.gba", 0x930793, 0x00000FF - -gUnk_08930892:: @ 08930892 - .incbin "baserom.gba", 0x930892, 0x0001FB2 - -gUnk_08932844:: @ 08932844 - .incbin "baserom.gba", 0x932844, 0x00016BC - -gUnk_08933F00:: @ 08933F00 - .incbin "baserom.gba", 0x933F00, 0x0002200 - -gUnk_08936100:: @ 08936100 - .incbin "baserom.gba", 0x936100, 0x00020A6 - -gUnk_089381A6:: @ 089381A6 - .incbin "baserom.gba", 0x9381A6, 0x0000EC1 - -gUnk_08939067:: @ 08939067 - .incbin "baserom.gba", 0x939067, 0x000032C - -gUnk_08939393:: @ 08939393 - .incbin "baserom.gba", 0x939393, 0x00071F8 - -gUnk_0894058B:: @ 0894058B - .incbin "baserom.gba", 0x94058B, 0x0000308 - -gUnk_08940893:: @ 08940893 - .incbin "baserom.gba", 0x940893, 0x0000B9C - -gUnk_0894142F:: @ 0894142F - .incbin "baserom.gba", 0x94142F, 0x0000CD1 - -gUnk_08942100:: @ 08942100 - .incbin "baserom.gba", 0x942100, 0x0000267 - -gUnk_08942367:: @ 08942367 - .incbin "baserom.gba", 0x942367, 0x00010DF - -gUnk_08943446:: @ 08943446 - .incbin "baserom.gba", 0x943446, 0x0000DDB - -gUnk_08944221:: @ 08944221 - .incbin "baserom.gba", 0x944221, 0x00006DD - -gUnk_089448FE:: @ 089448FE - .incbin "baserom.gba", 0x9448FE, 0x0000C57 - -gUnk_08945555:: @ 08945555 - .incbin "baserom.gba", 0x945555, 0x0003F18 - -gUnk_0894946D:: @ 0894946D - .incbin "baserom.gba", 0x94946D, 0x0001760 - -gUnk_0894ABCD:: @ 0894ABCD - .incbin "baserom.gba", 0x94ABCD, 0x0001FEE - -gUnk_0894CBBB:: @ 0894CBBB - .incbin "baserom.gba", 0x94CBBB, 0x000344C - -gUnk_08950007:: @ 08950007 - .incbin "baserom.gba", 0x950007, 0x00008F9 - -gUnk_08950900:: @ 08950900 - .incbin "baserom.gba", 0x950900, 0x0002600 - -gUnk_08952F00:: @ 08952F00 - .incbin "baserom.gba", 0x952F00, 0x0000791 - -gUnk_08953691:: @ 08953691 - .incbin "baserom.gba", 0x953691, 0x000076F - -gUnk_08953E00:: @ 08953E00 - .incbin "baserom.gba", 0x953E00, 0x0001654 - -gUnk_08955454:: @ 08955454 - .incbin "baserom.gba", 0x955454, 0x00000F0 - -gUnk_08955544:: @ 08955544 - .incbin "baserom.gba", 0x955544, 0x0000011 - -gUnk_08955555:: @ 08955555 - .incbin "baserom.gba", 0x955555, 0x0003B72 - -gUnk_089590C7:: @ 089590C7 - .incbin "baserom.gba", 0x9590C7, 0x0001642 - -gUnk_0895A709:: @ 0895A709 - .incbin "baserom.gba", 0x95A709, 0x00058F7 - -gUnk_08960000:: @ 08960000 - .incbin "baserom.gba", 0x960000, 0x0000132 - -gUnk_08960132:: @ 08960132 - .incbin "baserom.gba", 0x960132, 0x0000B5E - -gUnk_08960C90:: @ 08960C90 - .incbin "baserom.gba", 0x960C90, 0x00000A4 - -gUnk_08960D34:: @ 08960D34 - .incbin "baserom.gba", 0x960D34, 0x00004E2 - -gUnk_08961216:: @ 08961216 - .incbin "baserom.gba", 0x961216, 0x000CBD8 - -gUnk_0896DDEE:: @ 0896DDEE - .incbin "baserom.gba", 0x96DDEE, 0x0002212 - -gUnk_08970000:: @ 08970000 - .incbin "baserom.gba", 0x970000, 0x000000A - -gUnk_0897000A:: @ 0897000A - .incbin "baserom.gba", 0x97000A, 0x0000009 - -gUnk_08970013:: @ 08970013 - .incbin "baserom.gba", 0x970013, 0x000002D - -gUnk_08970040:: @ 08970040 - .incbin "baserom.gba", 0x970040, 0x0000856 - -gUnk_08970896:: @ 08970896 - .incbin "baserom.gba", 0x970896, 0x000076B - -gUnk_08971001:: @ 08971001 - .incbin "baserom.gba", 0x971001, 0x000005A - -gUnk_0897105B:: @ 0897105B - .incbin "baserom.gba", 0x97105B, 0x0001D85 - -gUnk_08972DE0:: @ 08972DE0 - .incbin "baserom.gba", 0x972DE0, 0x0001553 - -gUnk_08974333:: @ 08974333 - .incbin "baserom.gba", 0x974333, 0x0001200 - -gUnk_08975533:: @ 08975533 - .incbin "baserom.gba", 0x975533, 0x00022AB - -gUnk_089777DE:: @ 089777DE - .incbin "baserom.gba", 0x9777DE, 0x0001DB0 - -gUnk_0897958E:: @ 0897958E - .incbin "baserom.gba", 0x97958E, 0x0001C62 - -gUnk_0897B1F0:: @ 0897B1F0 - .incbin "baserom.gba", 0x97B1F0, 0x00007A7 - -gUnk_0897B997:: @ 0897B997 - .incbin "baserom.gba", 0x97B997, 0x0004669 - -gUnk_08980000:: @ 08980000 - .incbin "baserom.gba", 0x980000, 0x0000012 - -gUnk_08980012:: @ 08980012 - .incbin "baserom.gba", 0x980012, 0x0000196 - -gUnk_089801A8:: @ 089801A8 - .incbin "baserom.gba", 0x9801A8, 0x0001769 - -gUnk_08981911:: @ 08981911 - .incbin "baserom.gba", 0x981911, 0x00018EF - -gUnk_08983200:: @ 08983200 - .incbin "baserom.gba", 0x983200, 0x00002AD - -gUnk_089834AD:: @ 089834AD - .incbin "baserom.gba", 0x9834AD, 0x00010A8 - -gUnk_08984555:: @ 08984555 - .incbin "baserom.gba", 0x984555, 0x0001AAB - -gUnk_08986000:: @ 08986000 - .incbin "baserom.gba", 0x986000, 0x000189E - -gUnk_0898789E:: @ 0898789E - .incbin "baserom.gba", 0x98789E, 0x0000074 - -gUnk_08987912:: @ 08987912 - .incbin "baserom.gba", 0x987912, 0x0000CEE - -gUnk_08988600:: @ 08988600 - .incbin "baserom.gba", 0x988600, 0x0000178 - -gUnk_08988778:: @ 08988778 - .incbin "baserom.gba", 0x988778, 0x0000110 - -gUnk_08988888:: @ 08988888 - .incbin "baserom.gba", 0x988888, 0x0000F77 - -gUnk_089897FF:: @ 089897FF - .incbin "baserom.gba", 0x9897FF, 0x000009F - -gUnk_0898989E:: @ 0898989E - .incbin "baserom.gba", 0x98989E, 0x000000C - -gUnk_089898AA:: @ 089898AA - .incbin "baserom.gba", 0x9898AA, 0x0000176 - -gUnk_08989A20:: @ 08989A20 - .incbin "baserom.gba", 0x989A20, 0x00004CE - -gUnk_08989EEE:: @ 08989EEE - .incbin "baserom.gba", 0x989EEE, 0x00011C9 - -gUnk_0898B0B7:: @ 0898B0B7 - .incbin "baserom.gba", 0x98B0B7, 0x00008D2 - -gUnk_0898B989:: @ 0898B989 - .incbin "baserom.gba", 0x98B989, 0x0001455 - -gUnk_0898CDDE:: @ 0898CDDE - .incbin "baserom.gba", 0x98CDDE, 0x0002222 - -gUnk_0898F000:: @ 0898F000 - .incbin "baserom.gba", 0x98F000, 0x0000799 - -gUnk_0898F799:: @ 0898F799 - .incbin "baserom.gba", 0x98F799, 0x0000755 - -gUnk_0898FEEE:: @ 0898FEEE - .incbin "baserom.gba", 0x98FEEE, 0x0000112 - -gUnk_08990000:: @ 08990000 - .incbin "baserom.gba", 0x990000, 0x000001B - -gUnk_0899001B:: @ 0899001B - .incbin "baserom.gba", 0x99001B, 0x00000B3 - -gUnk_089900CE:: @ 089900CE - .incbin "baserom.gba", 0x9900CE, 0x0000001 - -gUnk_089900CF:: @ 089900CF - .incbin "baserom.gba", 0x9900CF, 0x0000070 - -gUnk_0899013F:: @ 0899013F - .incbin "baserom.gba", 0x99013F, 0x0000001 - -gUnk_08990140:: @ 08990140 - .incbin "baserom.gba", 0x990140, 0x0000030 - -gUnk_08990170:: @ 08990170 - .incbin "baserom.gba", 0x990170, 0x0000098 - -gUnk_08990208:: @ 08990208 - .incbin "baserom.gba", 0x990208, 0x0000108 - -gUnk_08990310:: @ 08990310 - .incbin "baserom.gba", 0x990310, 0x00002F0 - -gUnk_08990600:: @ 08990600 - .incbin "baserom.gba", 0x990600, 0x0000400 - -gUnk_08990A00:: @ 08990A00 - .incbin "baserom.gba", 0x990A00, 0x000177A - -gUnk_0899217A:: @ 0899217A - .incbin "baserom.gba", 0x99217A, 0x0000C74 - -gUnk_08992DEE:: @ 08992DEE - .incbin "baserom.gba", 0x992DEE, 0x00000F4 - -gUnk_08992EE2:: @ 08992EE2 - .incbin "baserom.gba", 0x992EE2, 0x000000B - -gUnk_08992EED:: @ 08992EED - .incbin "baserom.gba", 0x992EED, 0x0000813 - -gUnk_08993700:: @ 08993700 - .incbin "baserom.gba", 0x993700, 0x0000B44 - -gUnk_08994244:: @ 08994244 - .incbin "baserom.gba", 0x994244, 0x0001311 - -gUnk_08995555:: @ 08995555 - .incbin "baserom.gba", 0x995555, 0x00019AB - -gUnk_08996F00:: @ 08996F00 - .incbin "baserom.gba", 0x996F00, 0x0000755 - -gUnk_08997655:: @ 08997655 - .incbin "baserom.gba", 0x997655, 0x000061C - -gUnk_08997C71:: @ 08997C71 - .incbin "baserom.gba", 0x997C71, 0x0000B27 - -gUnk_08998798:: @ 08998798 - .incbin "baserom.gba", 0x998798, 0x00000EF - -gUnk_08998887:: @ 08998887 - .incbin "baserom.gba", 0x998887, 0x0000001 - -gUnk_08998888:: @ 08998888 - .incbin "baserom.gba", 0x998888, 0x0000028 - -gUnk_089988B0:: @ 089988B0 - .incbin "baserom.gba", 0x9988B0, 0x00000A5 - -gUnk_08998955:: @ 08998955 - .incbin "baserom.gba", 0x998955, 0x0000034 - -gUnk_08998989:: @ 08998989 - .incbin "baserom.gba", 0x998989, 0x0000177 - -gUnk_08998B00:: @ 08998B00 - .incbin "baserom.gba", 0x998B00, 0x0000488 - -gUnk_08998F88:: @ 08998F88 - .incbin "baserom.gba", 0x998F88, 0x0000057 - -gUnk_08998FDF:: @ 08998FDF - .incbin "baserom.gba", 0x998FDF, 0x00002FF - -gUnk_089992DE:: @ 089992DE - .incbin "baserom.gba", 0x9992DE, 0x0000004 - -gUnk_089992E2:: @ 089992E2 - .incbin "baserom.gba", 0x9992E2, 0x000058E - -gUnk_08999870:: @ 08999870 - .incbin "baserom.gba", 0x999870, 0x0000004 - -gUnk_08999874:: @ 08999874 - .incbin "baserom.gba", 0x999874, 0x0000013 - -gUnk_08999887:: @ 08999887 - .incbin "baserom.gba", 0x999887, 0x0000013 - -gUnk_0899989A:: @ 0899989A - .incbin "baserom.gba", 0x99989A, 0x0000001 - -gUnk_0899989B:: @ 0899989B - .incbin "baserom.gba", 0x99989B, 0x0000066 - -gUnk_08999901:: @ 08999901 - .incbin "baserom.gba", 0x999901, 0x0000021 - -gUnk_08999922:: @ 08999922 - .incbin "baserom.gba", 0x999922, 0x000005E - -gUnk_08999980:: @ 08999980 - .incbin "baserom.gba", 0x999980, 0x0000007 - -gUnk_08999987:: @ 08999987 - .incbin "baserom.gba", 0x999987, 0x0000001 - -gUnk_08999988:: @ 08999988 - .incbin "baserom.gba", 0x999988, 0x0000001 - -gUnk_08999989:: @ 08999989 - .incbin "baserom.gba", 0x999989, 0x0000001 - -gUnk_0899998A:: @ 0899998A - .incbin "baserom.gba", 0x99998A, 0x000000E - -gUnk_08999998:: @ 08999998 - .incbin "baserom.gba", 0x999998, 0x0000001 - -gUnk_08999999:: @ 08999999 - .incbin "baserom.gba", 0x999999, 0x0000013 - -gUnk_089999AC:: @ 089999AC - .incbin "baserom.gba", 0x9999AC, 0x0000010 - -gUnk_089999BC:: @ 089999BC - .incbin "baserom.gba", 0x9999BC, 0x000003C - -gUnk_089999F8:: @ 089999F8 - .incbin "baserom.gba", 0x9999F8, 0x00000B2 - -gUnk_08999AAA:: @ 08999AAA - .incbin "baserom.gba", 0x999AAA, 0x0000056 - -gUnk_08999B00:: @ 08999B00 - .incbin "baserom.gba", 0x999B00, 0x00000CC - -gUnk_08999BCC:: @ 08999BCC - .incbin "baserom.gba", 0x999BCC, 0x00003BC - -gUnk_08999F88:: @ 08999F88 - .incbin "baserom.gba", 0x999F88, 0x00008AB - -gUnk_0899A833:: @ 0899A833 - .incbin "baserom.gba", 0x99A833, 0x0000201 - -gUnk_0899AA34:: @ 0899AA34 - .incbin "baserom.gba", 0x99AA34, 0x0000075 - -gUnk_0899AAA9:: @ 0899AAA9 - .incbin "baserom.gba", 0x99AAA9, 0x0000012 - -gUnk_0899AABB:: @ 0899AABB - .incbin "baserom.gba", 0x99AABB, 0x0000545 - -gUnk_0899B000:: @ 0899B000 - .incbin "baserom.gba", 0x99B000, 0x00003FF - -gUnk_0899B3FF:: @ 0899B3FF - .incbin "baserom.gba", 0x99B3FF, 0x000059A - -gUnk_0899B999:: @ 0899B999 - .incbin "baserom.gba", 0x99B999, 0x0000006 - -gUnk_0899B99F:: @ 0899B99F - .incbin "baserom.gba", 0x99B99F, 0x0000620 - -gUnk_0899BFBF:: @ 0899BFBF - .incbin "baserom.gba", 0x99BFBF, 0x000003A - -gUnk_0899BFF9:: @ 0899BFF9 - .incbin "baserom.gba", 0x99BFF9, 0x0000708 - -gUnk_0899C701:: @ 0899C701 - .incbin "baserom.gba", 0x99C701, 0x00027ED - -gUnk_0899EEEE:: @ 0899EEEE - .incbin "baserom.gba", 0x99EEEE, 0x000012D - -gUnk_0899F01B:: @ 0899F01B - .incbin "baserom.gba", 0x99F01B, 0x0000FE6 - -gUnk_089A0001:: @ 089A0001 - .incbin "baserom.gba", 0x9A0001, 0x0000087 - -gUnk_089A0088:: @ 089A0088 - .incbin "baserom.gba", 0x9A0088, 0x0000811 - -gUnk_089A0899:: @ 089A0899 - .incbin "baserom.gba", 0x9A0899, 0x00000F7 - -gUnk_089A0990:: @ 089A0990 - .incbin "baserom.gba", 0x9A0990, 0x0000B3C - -gUnk_089A14CC:: @ 089A14CC - .incbin "baserom.gba", 0x9A14CC, 0x0001B34 - -gUnk_089A3000:: @ 089A3000 - .incbin "baserom.gba", 0x9A3000, 0x0000D18 - -gUnk_089A3D18:: @ 089A3D18 - .incbin "baserom.gba", 0x9A3D18, 0x000073D - -gUnk_089A4455:: @ 089A4455 - .incbin "baserom.gba", 0x9A4455, 0x0001188 - -gUnk_089A55DD:: @ 089A55DD - .incbin "baserom.gba", 0x9A55DD, 0x0002E3B - -gUnk_089A8418:: @ 089A8418 - .incbin "baserom.gba", 0x9A8418, 0x00013E7 - -gUnk_089A97FF:: @ 089A97FF - .incbin "baserom.gba", 0x9A97FF, 0x000019A - -gUnk_089A9999:: @ 089A9999 - .incbin "baserom.gba", 0x9A9999, 0x0000101 - -gUnk_089A9A9A:: @ 089A9A9A - .incbin "baserom.gba", 0x9A9A9A, 0x0000F00 - -gUnk_089AA99A:: @ 089AA99A - .incbin "baserom.gba", 0x9AA99A, 0x0000089 - -gUnk_089AAA23:: @ 089AAA23 - .incbin "baserom.gba", 0x9AAA23, 0x0000087 - -gUnk_089AAAAA:: @ 089AAAAA - .incbin "baserom.gba", 0x9AAAAA, 0x0000111 - -gUnk_089AABBB:: @ 089AABBB - .incbin "baserom.gba", 0x9AABBB, 0x0000011 - -gUnk_089AABCC:: @ 089AABCC - .incbin "baserom.gba", 0x9AABCC, 0x0000FEF - -gUnk_089ABBBB:: @ 089ABBBB - .incbin "baserom.gba", 0x9ABBBB, 0x0000A33 - -gUnk_089AC5EE:: @ 089AC5EE - .incbin "baserom.gba", 0x9AC5EE, 0x00018ED - -gUnk_089ADEDB:: @ 089ADEDB - .incbin "baserom.gba", 0x9ADEDB, 0x0002125 - -gUnk_089B0000:: @ 089B0000 - .incbin "baserom.gba", 0x9B0000, 0x00002BC - -gUnk_089B02BC:: @ 089B02BC - .incbin "baserom.gba", 0x9B02BC, 0x0000054 - -gUnk_089B0310:: @ 089B0310 - .incbin "baserom.gba", 0x9B0310, 0x0000CF0 - -gUnk_089B1000:: @ 089B1000 - .incbin "baserom.gba", 0x9B1000, 0x0000D90 diff --git a/data/data_08121C58.s b/data/data_08121C58.s new file mode 100755 index 00000000..9c5f3788 --- /dev/null +++ b/data/data_08121C58.s @@ -0,0 +1,23303 @@ + .include "asm/macros.inc" + .include "constants/constants.inc" + + .section .rodata + .align 2 + +gUnk_08121C58:: @ 08121C58 + .incbin "baserom.gba", 0x121C58, 0x000000C + +gUnk_08121C64:: @ 08121C64 + .incbin "baserom.gba", 0x121C64, 0x0000068 + +gUnk_08121CCC:: @ 08121CCC + .incbin "baserom.gba", 0x121CCC, 0x0000008 + +gUnk_08121CD4:: @ 08121CD4 + .incbin "baserom.gba", 0x121CD4, 0x000003C + +gUnk_08121D10:: @ 08121D10 + .incbin "baserom.gba", 0x121D10, 0x0000008 + +gUnk_08121D18:: @ 08121D18 + .incbin "baserom.gba", 0x121D18, 0x0000020 + +gUnk_08121D38:: @ 08121D38 + .incbin "baserom.gba", 0x121D38, 0x0000010 + +gUnk_08121D48:: @ 08121D48 + .incbin "baserom.gba", 0x121D48, 0x000000C + +gUnk_08121D54:: @ 08121D54 + .incbin "baserom.gba", 0x121D54, 0x00000BD + +gUnk_08121E11:: @ 08121E11 + .incbin "baserom.gba", 0x121E11, 0x0000013 + +gUnk_08121E24:: @ 08121E24 + .incbin "baserom.gba", 0x121E24, 0x0000005 + +gUnk_08121E29:: @ 08121E29 + .incbin "baserom.gba", 0x121E29, 0x0000008 + +gUnk_08121E31:: @ 08121E31 + .incbin "baserom.gba", 0x121E31, 0x000001F + +gUnk_08121E50:: @ 08121E50 + .incbin "baserom.gba", 0x121E50, 0x000000C + +gUnk_08121E5C:: @ 08121E5C + .incbin "baserom.gba", 0x121E5C, 0x000002C + +gUnk_08121E88:: @ 08121E88 + .incbin "baserom.gba", 0x121E88, 0x0000010 + +gUnk_08121E98:: @ 08121E98 + .incbin "baserom.gba", 0x121E98, 0x0000008 + +gUnk_08121EA0:: @ 08121EA0 + .incbin "baserom.gba", 0x121EA0, 0x0000004 + +gUnk_08121EA4:: @ 08121EA4 + .incbin "baserom.gba", 0x121EA4, 0x000000C + +gUnk_08121EB0:: @ 08121EB0 + .incbin "baserom.gba", 0x121EB0, 0x0000003 + +gUnk_08121EB3:: @ 08121EB3 + .incbin "baserom.gba", 0x121EB3, 0x0000005 + +gUnk_08121EB8:: @ 08121EB8 + .incbin "baserom.gba", 0x121EB8, 0x0000020 + +gUnk_08121ED8:: @ 08121ED8 + .incbin "baserom.gba", 0x121ED8, 0x000000C + +gUnk_08121EE4:: @ 08121EE4 + .incbin "baserom.gba", 0x121EE4, 0x000000C + +gUnk_08121EF0:: @ 08121EF0 + .incbin "baserom.gba", 0x121EF0, 0x0000008 + +gUnk_08121EF8:: @ 08121EF8 + .incbin "baserom.gba", 0x121EF8, 0x0000036 + +gUnk_08121F2E:: @ 08121F2E + .incbin "baserom.gba", 0x121F2E, 0x00000D2 + +gUnk_08122000:: @ 08122000 + .incbin "baserom.gba", 0x122000, 0x000001C + +gUnk_0812201C:: @ 0812201C + .incbin "baserom.gba", 0x12201C, 0x0000016 + +gUnk_08122032:: @ 08122032 + .incbin "baserom.gba", 0x122032, 0x00000F6 + +gUnk_08122128:: @ 08122128 + .incbin "baserom.gba", 0x122128, 0x000000A + +gUnk_08122132:: @ 08122132 + .incbin "baserom.gba", 0x122132, 0x0000066 + +gUnk_08122198:: @ 08122198 + .incbin "baserom.gba", 0x122198, 0x0000010 + +gUnk_081221A8:: @ 081221A8 + .incbin "baserom.gba", 0x1221A8, 0x0000010 + +gUnk_081221B8:: @ 081221B8 + .incbin "baserom.gba", 0x1221B8, 0x0000010 + +gUnk_081221C8:: @ 081221C8 + .incbin "baserom.gba", 0x1221C8, 0x0000010 + +gUnk_081221D8:: @ 081221D8 + .incbin "baserom.gba", 0x1221D8, 0x0000010 + +gUnk_081221E8:: @ 081221E8 + .incbin "baserom.gba", 0x1221E8, 0x0000010 + +gUnk_081221F8:: @ 081221F8 + .incbin "baserom.gba", 0x1221F8, 0x0000010 + +gUnk_08122208:: @ 08122208 + .incbin "baserom.gba", 0x122208, 0x0000010 + +gUnk_08122218:: @ 08122218 + .incbin "baserom.gba", 0x122218, 0x0000008 + +gUnk_08122220:: @ 08122220 + .incbin "baserom.gba", 0x122220, 0x0000024 + +gUnk_08122244:: @ 08122244 + .incbin "baserom.gba", 0x122244, 0x0000010 + +gUnk_08122254:: @ 08122254 + .incbin "baserom.gba", 0x122254, 0x0000008 + +gUnk_0812225C:: @ 0812225C + .incbin "baserom.gba", 0x12225C, 0x0000008 + +gUnk_08122264:: @ 08122264 + .incbin "baserom.gba", 0x122264, 0x0000004 + +gUnk_08122268:: @ 08122268 + .incbin "baserom.gba", 0x122268, 0x0000004 + +gUnk_0812226C:: @ 0812226C + .incbin "baserom.gba", 0x12226C, 0x000000C + +gUnk_08122278:: @ 08122278 + .incbin "baserom.gba", 0x122278, 0x0000008 + +gUnk_08122280:: @ 08122280 + .incbin "baserom.gba", 0x122280, 0x0000008 + +gUnk_08122288:: @ 08122288 + .incbin "baserom.gba", 0x122288, 0x000000C + +gUnk_08122294:: @ 08122294 + .incbin "baserom.gba", 0x122294, 0x000000C + +gUnk_081222A0:: @ 081222A0 + .incbin "baserom.gba", 0x1222A0, 0x0000008 + +gUnk_081222A8:: @ 081222A8 + .incbin "baserom.gba", 0x1222A8, 0x0000008 + +gUnk_081222B0:: @ 081222B0 + .incbin "baserom.gba", 0x1222B0, 0x0000008 + +gUnk_081222B8:: @ 081222B8 + .incbin "baserom.gba", 0x1222B8, 0x0000008 + +gUnk_081222C0:: @ 081222C0 + .incbin "baserom.gba", 0x1222C0, 0x0000004 + +gUnk_081222C4:: @ 081222C4 + .incbin "baserom.gba", 0x1222C4, 0x0000004 + +gUnk_081222C8:: @ 081222C8 + .incbin "baserom.gba", 0x1222C8, 0x0000004 + +gUnk_081222CC:: @ 081222CC + .incbin "baserom.gba", 0x1222CC, 0x0000004 + +gUnk_081222D0:: @ 081222D0 + .incbin "baserom.gba", 0x1222D0, 0x0000004 + +gUnk_081222D4:: @ 081222D4 + .incbin "baserom.gba", 0x1222D4, 0x0000004 + +gUnk_081222D8:: @ 081222D8 + .incbin "baserom.gba", 0x1222D8, 0x0000004 + +gUnk_081222DC:: @ 081222DC + .incbin "baserom.gba", 0x1222DC, 0x0000004 + +gUnk_081222E0:: @ 081222E0 + .incbin "baserom.gba", 0x1222E0, 0x0000004 + +gUnk_081222E4:: @ 081222E4 + .incbin "baserom.gba", 0x1222E4, 0x0000004 + +gUnk_081222E8:: @ 081222E8 + .incbin "baserom.gba", 0x1222E8, 0x0000004 + +gUnk_081222EC:: @ 081222EC + .incbin "baserom.gba", 0x1222EC, 0x0000004 + +gUnk_081222F0:: @ 081222F0 + .incbin "baserom.gba", 0x1222F0, 0x0000004 + +gUnk_081222F4:: @ 081222F4 + .incbin "baserom.gba", 0x1222F4, 0x0000004 + +gUnk_081222F8:: @ 081222F8 + .incbin "baserom.gba", 0x1222F8, 0x0000004 + +gUnk_081222FC:: @ 081222FC + .incbin "baserom.gba", 0x1222FC, 0x0000004 + +gUnk_08122300:: @ 08122300 + .incbin "baserom.gba", 0x122300, 0x0000004 + +gUnk_08122304:: @ 08122304 + .incbin "baserom.gba", 0x122304, 0x0000004 + +gUnk_08122308:: @ 08122308 + .incbin "baserom.gba", 0x122308, 0x0000004 + +gUnk_0812230C:: @ 0812230C + .incbin "baserom.gba", 0x12230C, 0x0000004 + +gUnk_08122310:: @ 08122310 + .incbin "baserom.gba", 0x122310, 0x0000004 + +gUnk_08122314:: @ 08122314 + .incbin "baserom.gba", 0x122314, 0x0000004 + +gUnk_08122318:: @ 08122318 + .incbin "baserom.gba", 0x122318, 0x0000003 + +gUnk_0812231B:: @ 0812231B + .incbin "baserom.gba", 0x12231B, 0x0000001 + +gUnk_0812231C:: @ 0812231C + .incbin "baserom.gba", 0x12231C, 0x0000004 + +gUnk_08122320:: @ 08122320 + .incbin "baserom.gba", 0x122320, 0x0000004 + +gUnk_08122324:: @ 08122324 + .incbin "baserom.gba", 0x122324, 0x0000003 + +gUnk_08122327:: @ 08122327 + .incbin "baserom.gba", 0x122327, 0x0000001 + +gUnk_08122328:: @ 08122328 + .incbin "baserom.gba", 0x122328, 0x0000004 + +gUnk_0812232C:: @ 0812232C + .incbin "baserom.gba", 0x12232C, 0x0000004 + +gUnk_08122330:: @ 08122330 + .incbin "baserom.gba", 0x122330, 0x0000004 + +gUnk_08122334:: @ 08122334 + .incbin "baserom.gba", 0x122334, 0x0000011 + +gUnk_08122345:: @ 08122345 + .incbin "baserom.gba", 0x122345, 0x0000063 + +gUnk_081223A8:: @ 081223A8 + .incbin "baserom.gba", 0x1223A8, 0x0000020 + +gUnk_081223C8:: @ 081223C8 + .incbin "baserom.gba", 0x1223C8, 0x0000008 + +gUnk_081223D0:: @ 081223D0 + .incbin "baserom.gba", 0x1223D0, 0x0000008 + +gUnk_081223D8:: @ 081223D8 + .incbin "baserom.gba", 0x1223D8, 0x0000010 + +gUnk_081223E8:: @ 081223E8 + .incbin "baserom.gba", 0x1223E8, 0x000001A + +gUnk_08122402:: @ 08122402 + .incbin "baserom.gba", 0x122402, 0x000001A + +gUnk_0812241C:: @ 0812241C + .incbin "baserom.gba", 0x12241C, 0x0000011 + +gUnk_0812242D:: @ 0812242D + .incbin "baserom.gba", 0x12242D, 0x0000009 + +gUnk_08122436:: @ 08122436 + .incbin "baserom.gba", 0x122436, 0x000001A + +gUnk_08122450:: @ 08122450 + .incbin "baserom.gba", 0x122450, 0x0000009 + +gUnk_08122459:: @ 08122459 + .incbin "baserom.gba", 0x122459, 0x0000009 + +gUnk_08122462:: @ 08122462 + .incbin "baserom.gba", 0x122462, 0x0000009 + +gUnk_0812246B:: @ 0812246B + .incbin "baserom.gba", 0x12246B, 0x0000009 + +gUnk_08122474:: @ 08122474 + .incbin "baserom.gba", 0x122474, 0x0000015 + +gUnk_08122489:: @ 08122489 + .incbin "baserom.gba", 0x122489, 0x0000015 + +gUnk_0812249E:: @ 0812249E + .incbin "baserom.gba", 0x12249E, 0x0000015 + +gUnk_081224B3:: @ 081224B3 + .incbin "baserom.gba", 0x1224B3, 0x0000015 + +gUnk_081224C8:: @ 081224C8 + .incbin "baserom.gba", 0x1224C8, 0x0000019 + +gUnk_081224E1:: @ 081224E1 + .incbin "baserom.gba", 0x1224E1, 0x0000018 + +gUnk_081224F9:: @ 081224F9 + .incbin "baserom.gba", 0x1224F9, 0x0000018 + +gUnk_08122511:: @ 08122511 + .incbin "baserom.gba", 0x122511, 0x0000018 + +gUnk_08122529:: @ 08122529 + .incbin "baserom.gba", 0x122529, 0x0000005 + +gUnk_0812252E:: @ 0812252E + .incbin "baserom.gba", 0x12252E, 0x0000005 + +gUnk_08122533:: @ 08122533 + .incbin "baserom.gba", 0x122533, 0x0000005 + +gUnk_08122538:: @ 08122538 + .incbin "baserom.gba", 0x122538, 0x0000008 + +gUnk_08122540:: @ 08122540 + .incbin "baserom.gba", 0x122540, 0x0000050 + +ThoughtBubble_SFX:: @ 08122590 + .incbin "baserom.gba", 0x122590, 0x0000008 + +ThoughtBubble_Behaviors:: @ 08122598 + .incbin "baserom.gba", 0x122598, 0x0000008 + +gUnk_081225A0:: @ 081225A0 + .incbin "baserom.gba", 0x1225A0, 0x000001C + +gUnk_081225BC:: @ 081225BC + .incbin "baserom.gba", 0x1225BC, 0x000001C + +gUnk_081225D8:: @ 081225D8 + .incbin "baserom.gba", 0x1225D8, 0x000001C + +gUnk_081225F4:: @ 081225F4 + .incbin "baserom.gba", 0x1225F4, 0x0000010 + +gUnk_08122604:: @ 08122604 + .incbin "baserom.gba", 0x122604, 0x0000008 + +gUnk_0812260C:: @ 0812260C + .incbin "baserom.gba", 0x12260C, 0x0000010 + +gUnk_0812261C:: @ 0812261C + .incbin "baserom.gba", 0x12261C, 0x000000E + +gUnk_0812262A:: @ 0812262A + .incbin "baserom.gba", 0x12262A, 0x0000007 + +gUnk_08122631:: @ 08122631 + .incbin "baserom.gba", 0x122631, 0x0000007 + +gUnk_08122638:: @ 08122638 + .incbin "baserom.gba", 0x122638, 0x000000C + +gUnk_08122644:: @ 08122644 + .incbin "baserom.gba", 0x122644, 0x000000C + +gUnk_08122650:: @ 08122650 + .incbin "baserom.gba", 0x122650, 0x0000020 + +gUnk_08122670:: @ 08122670 + .incbin "baserom.gba", 0x122670, 0x0000014 + +gUnk_08122684:: @ 08122684 + .incbin "baserom.gba", 0x122684, 0x0000014 + +gUnk_08122698:: @ 08122698 + .incbin "baserom.gba", 0x122698, 0x000000C + +gUnk_081226A4:: @ 081226A4 + .incbin "baserom.gba", 0x1226A4, 0x0000004 + +gUnk_081226A8:: @ 081226A8 + .incbin "baserom.gba", 0x1226A8, 0x0000004 + +gUnk_081226AC:: @ 081226AC + .incbin "baserom.gba", 0x1226AC, 0x0000091 + +gUnk_0812273D:: @ 0812273D + .incbin "baserom.gba", 0x12273D, 0x0000005 + +gUnk_08122742:: @ 08122742 + .incbin "baserom.gba", 0x122742, 0x0000011 + +gUnk_08122753:: @ 08122753 + .incbin "baserom.gba", 0x122753, 0x0000011 + +gUnk_08122764:: @ 08122764 + .incbin "baserom.gba", 0x122764, 0x000001C + +gUnk_08122780:: @ 08122780 + .incbin "baserom.gba", 0x122780, 0x0000008 + +gUnk_08122788:: @ 08122788 + .incbin "baserom.gba", 0x122788, 0x000000C + +gUnk_08122794:: @ 08122794 + .incbin "baserom.gba", 0x122794, 0x0000008 + +gUnk_0812279C:: @ 0812279C + .incbin "baserom.gba", 0x12279C, 0x0000008 + +MaskActionFuncs:: @ 081227A4 + .incbin "baserom.gba", 0x1227A4, 0x0000010 + +gUnk_081227B4:: @ 081227B4 + .incbin "baserom.gba", 0x1227B4, 0x000000C + +gUnk_081227C0:: @ 081227C0 + .incbin "baserom.gba", 0x1227C0, 0x000000C + +gUnk_081227CC:: @ 081227CC + .incbin "baserom.gba", 0x1227CC, 0x0000020 + +gUnk_081227EC:: @ 081227EC + .incbin "baserom.gba", 0x1227EC, 0x0000008 + +gUnk_081227F4:: @ 081227F4 + .incbin "baserom.gba", 0x1227F4, 0x000000C + +gUnk_08122800:: @ 08122800 + .incbin "baserom.gba", 0x122800, 0x0000019 + +gUnk_08122819:: @ 08122819 + .incbin "baserom.gba", 0x122819, 0x000001B + +gUnk_08122834:: @ 08122834 + .incbin "baserom.gba", 0x122834, 0x0000008 + +gUnk_0812283C:: @ 0812283C + .incbin "baserom.gba", 0x12283C, 0x0000014 + +gUnk_08122850:: @ 08122850 + .incbin "baserom.gba", 0x122850, 0x0000012 + +gUnk_08122862:: @ 08122862 + .incbin "baserom.gba", 0x122862, 0x0000012 + +gUnk_08122874:: @ 08122874 + .incbin "baserom.gba", 0x122874, 0x0000012 + +gUnk_08122886:: @ 08122886 + .incbin "baserom.gba", 0x122886, 0x0000012 + +gUnk_08122898:: @ 08122898 + .incbin "baserom.gba", 0x122898, 0x0000010 + +gUnk_081228A8:: @ 081228A8 + .incbin "baserom.gba", 0x1228A8, 0x0000008 + +gUnk_081228B0:: @ 081228B0 + .incbin "baserom.gba", 0x1228B0, 0x0000008 + +gUnk_081228B8:: @ 081228B8 + .incbin "baserom.gba", 0x1228B8, 0x0000010 + +gUnk_081228C8:: @ 081228C8 + .incbin "baserom.gba", 0x1228C8, 0x0000008 + +gUnk_081228D0:: @ 081228D0 + .incbin "baserom.gba", 0x1228D0, 0x0000008 + +gUnk_081228D8:: @ 081228D8 + .incbin "baserom.gba", 0x1228D8, 0x0000008 + +gUnk_081228E0:: @ 081228E0 + .incbin "baserom.gba", 0x1228E0, 0x0000008 + +gUnk_081228E8:: @ 081228E8 + .incbin "baserom.gba", 0x1228E8, 0x0000008 + +gUnk_081228F0:: @ 081228F0 + .incbin "baserom.gba", 0x1228F0, 0x0000008 + +gUnk_081228F8:: @ 081228F8 + .incbin "baserom.gba", 0x1228F8, 0x0000026 + +gUnk_0812291E:: @ 0812291E + .incbin "baserom.gba", 0x12291E, 0x0000026 + +gUnk_08122944:: @ 08122944 + .incbin "baserom.gba", 0x122944, 0x000000C + +gUnk_08122950:: @ 08122950 + .incbin "baserom.gba", 0x122950, 0x000000C + +gUnk_0812295C:: @ 0812295C + .incbin "baserom.gba", 0x12295C, 0x0000008 + +gUnk_08122964:: @ 08122964 + .incbin "baserom.gba", 0x122964, 0x0000008 + +gUnk_0812296C:: @ 0812296C + .incbin "baserom.gba", 0x12296C, 0x0000010 + +gUnk_0812297C:: @ 0812297C + .incbin "baserom.gba", 0x12297C, 0x000000C + +gUnk_08122988:: @ 08122988 + .incbin "baserom.gba", 0x122988, 0x000001C + +gUnk_081229A4:: @ 081229A4 + .incbin "baserom.gba", 0x1229A4, 0x0000010 + +gUnk_081229B4:: @ 081229B4 + .incbin "baserom.gba", 0x1229B4, 0x0000008 + +gUnk_081229BC:: @ 081229BC + .incbin "baserom.gba", 0x1229BC, 0x0000014 + +gUnk_081229D0:: @ 081229D0 + .incbin "baserom.gba", 0x1229D0, 0x0000020 + +gUnk_081229F0:: @ 081229F0 + .incbin "baserom.gba", 0x1229F0, 0x0000020 + +gUnk_08122A10:: @ 08122A10 + .incbin "baserom.gba", 0x122A10, 0x0000008 + +gUnk_08122A18:: @ 08122A18 + .incbin "baserom.gba", 0x122A18, 0x0000008 + +gUnk_08122A20:: @ 08122A20 + .incbin "baserom.gba", 0x122A20, 0x0000008 + +gUnk_08122A28:: @ 08122A28 + .incbin "baserom.gba", 0x122A28, 0x000000C + +gUnk_08122A34:: @ 08122A34 + .incbin "baserom.gba", 0x122A34, 0x0000017 + +gUnk_08122A4B:: @ 08122A4B + .incbin "baserom.gba", 0x122A4B, 0x0000095 + +gUnk_08122AE0:: @ 08122AE0 + .incbin "baserom.gba", 0x122AE0, 0x0000008 + +gUnk_08122AE8:: @ 08122AE8 + .incbin "baserom.gba", 0x122AE8, 0x0000010 + +gUnk_08122AF8:: @ 08122AF8 + .incbin "baserom.gba", 0x122AF8, 0x0000008 + +gUnk_08122B00:: @ 08122B00 + .incbin "baserom.gba", 0x122B00, 0x000000E + +gUnk_08122B0E:: @ 08122B0E + .incbin "baserom.gba", 0x122B0E, 0x0000010 + +gUnk_08122B1E:: @ 08122B1E + .incbin "baserom.gba", 0x122B1E, 0x0000010 + +gUnk_08122B2E:: @ 08122B2E + .incbin "baserom.gba", 0x122B2E, 0x000000E + +gUnk_08122B3C:: @ 08122B3C + .incbin "baserom.gba", 0x122B3C, 0x0000010 + +gUnk_08122B4C:: @ 08122B4C + .incbin "baserom.gba", 0x122B4C, 0x0000001 + +gUnk_08122B4D:: @ 08122B4D + .incbin "baserom.gba", 0x122B4D, 0x0000008 + +gUnk_08122B55:: @ 08122B55 + .incbin "baserom.gba", 0x122B55, 0x000000F + +gUnk_08122B64:: @ 08122B64 + .incbin "baserom.gba", 0x122B64, 0x000000C + +gUnk_08122B70:: @ 08122B70 + .incbin "baserom.gba", 0x122B70, 0x0000005 + +gUnk_08122B75:: @ 08122B75 + .incbin "baserom.gba", 0x122B75, 0x0000005 + +gUnk_08122B7A:: @ 08122B7A + .incbin "baserom.gba", 0x122B7A, 0x0000005 + +gUnk_08122B7F:: @ 08122B7F + .incbin "baserom.gba", 0x122B7F, 0x0000005 + +gUnk_08122B84:: @ 08122B84 + .incbin "baserom.gba", 0x122B84, 0x0000005 + +gUnk_08122B89:: @ 08122B89 + .incbin "baserom.gba", 0x122B89, 0x0000005 + +gUnk_08122B8E:: @ 08122B8E + .incbin "baserom.gba", 0x122B8E, 0x0000005 + +gUnk_08122B93:: @ 08122B93 + .incbin "baserom.gba", 0x122B93, 0x0000005 + +gUnk_08122B98:: @ 08122B98 + .incbin "baserom.gba", 0x122B98, 0x0000019 + +gUnk_08122BB1:: @ 08122BB1 + .incbin "baserom.gba", 0x122BB1, 0x0000017 + +gUnk_08122BC8:: @ 08122BC8 + .incbin "baserom.gba", 0x122BC8, 0x000002C + +gUnk_08122BF4:: @ 08122BF4 + .incbin "baserom.gba", 0x122BF4, 0x0000009 + +gUnk_08122BFD:: @ 08122BFD + .incbin "baserom.gba", 0x122BFD, 0x0000009 + +gUnk_08122C06:: @ 08122C06 + .incbin "baserom.gba", 0x122C06, 0x0000005 + +gUnk_08122C0B:: @ 08122C0B + .incbin "baserom.gba", 0x122C0B, 0x0000069 + +gUnk_08122C74:: @ 08122C74 + .incbin "baserom.gba", 0x122C74, 0x0000015 + +gUnk_08122C89:: @ 08122C89 + .incbin "baserom.gba", 0x122C89, 0x0000007 + +gUnk_08122C90:: @ 08122C90 + .incbin "baserom.gba", 0x122C90, 0x000001C + +gUnk_08122CAC:: @ 08122CAC + .incbin "baserom.gba", 0x122CAC, 0x0000009 + +gUnk_08122CB5:: @ 08122CB5 + .incbin "baserom.gba", 0x122CB5, 0x0000007 + +gUnk_08122CBC:: @ 08122CBC + .incbin "baserom.gba", 0x122CBC, 0x000000C + +gUnk_08122CC8:: @ 08122CC8 + .incbin "baserom.gba", 0x122CC8, 0x0000009 + +gUnk_08122CD1:: @ 08122CD1 + .incbin "baserom.gba", 0x122CD1, 0x0000005 + +gUnk_08122CD6:: @ 08122CD6 + .incbin "baserom.gba", 0x122CD6, 0x0000005 + +gUnk_08122CDB:: @ 08122CDB + .incbin "baserom.gba", 0x122CDB, 0x0000009 + +gUnk_08122CE4:: @ 08122CE4 + .incbin "baserom.gba", 0x122CE4, 0x0000014 + +gUnk_08122CF8:: @ 08122CF8 + .incbin "baserom.gba", 0x122CF8, 0x0000005 + +gUnk_08122CFD:: @ 08122CFD + .incbin "baserom.gba", 0x122CFD, 0x0000007 + +gUnk_08122D04:: @ 08122D04 + .incbin "baserom.gba", 0x122D04, 0x0000004 + +gUnk_08122D08:: @ 08122D08 + .incbin "baserom.gba", 0x122D08, 0x0000008 + +gUnk_08122D10:: @ 08122D10 + .incbin "baserom.gba", 0x122D10, 0x0000009 + +gUnk_08122D19:: @ 08122D19 + .incbin "baserom.gba", 0x122D19, 0x0000009 + +gUnk_08122D22:: @ 08122D22 + .incbin "baserom.gba", 0x122D22, 0x0000009 + +gUnk_08122D2B:: @ 08122D2B + .incbin "baserom.gba", 0x122D2B, 0x0000004 + +gUnk_08122D2F:: @ 08122D2F + .incbin "baserom.gba", 0x122D2F, 0x0000005 + +gUnk_08122D34:: @ 08122D34 + .incbin "baserom.gba", 0x122D34, 0x0000021 + +gUnk_08122D55:: @ 08122D55 + .incbin "baserom.gba", 0x122D55, 0x0000021 + +gUnk_08122D76:: @ 08122D76 + .incbin "baserom.gba", 0x122D76, 0x0000021 + +gUnk_08122D97:: @ 08122D97 + .incbin "baserom.gba", 0x122D97, 0x0000021 + +gUnk_08122DB8:: @ 08122DB8 + .incbin "baserom.gba", 0x122DB8, 0x000000D + +gUnk_08122DC5:: @ 08122DC5 + .incbin "baserom.gba", 0x122DC5, 0x000000D + +gUnk_08122DD2:: @ 08122DD2 + .incbin "baserom.gba", 0x122DD2, 0x000000D + +gUnk_08122DDF:: @ 08122DDF + .incbin "baserom.gba", 0x122DDF, 0x000000D + +gUnk_08122DEC:: @ 08122DEC + .incbin "baserom.gba", 0x122DEC, 0x0000019 + +gUnk_08122E05:: @ 08122E05 + .incbin "baserom.gba", 0x122E05, 0x0000019 + +gUnk_08122E1E:: @ 08122E1E + .incbin "baserom.gba", 0x122E1E, 0x0000019 + +gUnk_08122E37:: @ 08122E37 + .incbin "baserom.gba", 0x122E37, 0x0000019 + +gUnk_08122E50:: @ 08122E50 + .incbin "baserom.gba", 0x122E50, 0x0000015 + +gUnk_08122E65:: @ 08122E65 + .incbin "baserom.gba", 0x122E65, 0x0000015 + +gUnk_08122E7A:: @ 08122E7A + .incbin "baserom.gba", 0x122E7A, 0x0000015 + +gUnk_08122E8F:: @ 08122E8F + .incbin "baserom.gba", 0x122E8F, 0x0000015 + +gUnk_08122EA4:: @ 08122EA4 + .incbin "baserom.gba", 0x122EA4, 0x0000009 + +gUnk_08122EAD:: @ 08122EAD + .incbin "baserom.gba", 0x122EAD, 0x0000023 + +gUnk_08122ED0:: @ 08122ED0 + .incbin "baserom.gba", 0x122ED0, 0x0000050 + +gUnk_08122F20:: @ 08122F20 + .incbin "baserom.gba", 0x122F20, 0x000000C + +gUnk_08122F2C:: @ 08122F2C + .incbin "baserom.gba", 0x122F2C, 0x0000005 + +gUnk_08122F31:: @ 08122F31 + .incbin "baserom.gba", 0x122F31, 0x0000021 + +gUnk_08122F52:: @ 08122F52 + .incbin "baserom.gba", 0x122F52, 0x0000005 + +gUnk_08122F57:: @ 08122F57 + .incbin "baserom.gba", 0x122F57, 0x0000021 + +gUnk_08122F78:: @ 08122F78 + .incbin "baserom.gba", 0x122F78, 0x0000005 + +gUnk_08122F7D:: @ 08122F7D + .incbin "baserom.gba", 0x122F7D, 0x0000021 + +gUnk_08122F9E:: @ 08122F9E + .incbin "baserom.gba", 0x122F9E, 0x0000005 + +gUnk_08122FA3:: @ 08122FA3 + .incbin "baserom.gba", 0x122FA3, 0x0000021 + +gUnk_08122FC4:: @ 08122FC4 + .incbin "baserom.gba", 0x122FC4, 0x0000005 + +gUnk_08122FC9:: @ 08122FC9 + .incbin "baserom.gba", 0x122FC9, 0x0000005 + +gUnk_08122FCE:: @ 08122FCE + .incbin "baserom.gba", 0x122FCE, 0x0000005 + +gUnk_08122FD3:: @ 08122FD3 + .incbin "baserom.gba", 0x122FD3, 0x0000059 + +gUnk_0812302C:: @ 0812302C + .incbin "baserom.gba", 0x12302C, 0x000002D + +gUnk_08123059:: @ 08123059 + .incbin "baserom.gba", 0x123059, 0x0000033 + +gUnk_0812308C:: @ 0812308C + .incbin "baserom.gba", 0x12308C, 0x000003C + +gUnk_081230C8:: @ 081230C8 + .incbin "baserom.gba", 0x1230C8, 0x0000054 + +gUnk_0812311C:: @ 0812311C + .incbin "baserom.gba", 0x12311C, 0x0000008 + +gUnk_08123124:: @ 08123124 + .incbin "baserom.gba", 0x123124, 0x0000005 + +gUnk_08123129:: @ 08123129 + .incbin "baserom.gba", 0x123129, 0x0000005 + +gUnk_0812312E:: @ 0812312E + .incbin "baserom.gba", 0x12312E, 0x0000012 + +gUnk_08123140:: @ 08123140 + .incbin "baserom.gba", 0x123140, 0x0000010 + +gUnk_08123150:: @ 08123150 + .incbin "baserom.gba", 0x123150, 0x0000010 + +gUnk_08123160:: @ 08123160 + .incbin "baserom.gba", 0x123160, 0x0000008 + +gUnk_08123168:: @ 08123168 + .incbin "baserom.gba", 0x123168, 0x000001C + +gUnk_08123184:: @ 08123184 + .incbin "baserom.gba", 0x123184, 0x0000008 + +gUnk_0812318C:: @ 0812318C + .incbin "baserom.gba", 0x12318C, 0x0000010 + +gUnk_0812319C:: @ 0812319C + .incbin "baserom.gba", 0x12319C, 0x0000004 + +gUnk_081231A0:: @ 081231A0 + .incbin "baserom.gba", 0x1231A0, 0x000000C + +gUnk_081231AC:: @ 081231AC + .incbin "baserom.gba", 0x1231AC, 0x0000002 + +gUnk_081231AE:: @ 081231AE + .incbin "baserom.gba", 0x1231AE, 0x0000006 + +gUnk_081231B4:: @ 081231B4 + .incbin "baserom.gba", 0x1231B4, 0x0000006 + +gUnk_081231BA:: @ 081231BA + .incbin "baserom.gba", 0x1231BA, 0x0000005 + +gUnk_081231BF:: @ 081231BF + .incbin "baserom.gba", 0x1231BF, 0x000000D + +gUnk_081231CC:: @ 081231CC + .incbin "baserom.gba", 0x1231CC, 0x0000009 + +gUnk_081231D5:: @ 081231D5 + .incbin "baserom.gba", 0x1231D5, 0x0000011 + +gUnk_081231E6:: @ 081231E6 + .incbin "baserom.gba", 0x1231E6, 0x0000015 + +gUnk_081231FB:: @ 081231FB + .incbin "baserom.gba", 0x1231FB, 0x0000009 + +gUnk_08123204:: @ 08123204 + .incbin "baserom.gba", 0x123204, 0x0000004 + +gUnk_08123208:: @ 08123208 + .incbin "baserom.gba", 0x123208, 0x0000034 + +gUnk_0812323C:: @ 0812323C + .incbin "baserom.gba", 0x12323C, 0x0000014 + +gUnk_08123250:: @ 08123250 + .incbin "baserom.gba", 0x123250, 0x0000014 + +gUnk_08123264:: @ 08123264 + .incbin "baserom.gba", 0x123264, 0x0000008 + +gUnk_0812326C:: @ 0812326C + .incbin "baserom.gba", 0x12326C, 0x0000008 + +gUnk_08123274:: @ 08123274 + .incbin "baserom.gba", 0x123274, 0x0000008 + +gUnk_0812327C:: @ 0812327C + .incbin "baserom.gba", 0x12327C, 0x000001C + +MineralWaterSourceActionFuncs:: @ 08123298 + .incbin "baserom.gba", 0x123298, 0x0000008 + +MineralWaterSourceParameters:: @ 081232A0 + .incbin "baserom.gba", 0x1232A0, 0x0000004 + +gUnk_081232A4:: @ 081232A4 + .incbin "baserom.gba", 0x1232A4, 0x0000008 + +gUnk_081232AC:: @ 081232AC + .incbin "baserom.gba", 0x1232AC, 0x0000014 + +gUnk_081232C0:: @ 081232C0 + .incbin "baserom.gba", 0x1232C0, 0x000001D + +gUnk_081232DD:: @ 081232DD + .incbin "baserom.gba", 0x1232DD, 0x0000001 + +gUnk_081232DE:: @ 081232DE + .incbin "baserom.gba", 0x1232DE, 0x0000006 + +gUnk_081232E4:: @ 081232E4 + .incbin "baserom.gba", 0x1232E4, 0x0000008 + +gUnk_081232EC:: @ 081232EC + .incbin "baserom.gba", 0x1232EC, 0x0000012 + +gUnk_081232FE:: @ 081232FE + .incbin "baserom.gba", 0x1232FE, 0x000001A + +gUnk_08123318:: @ 08123318 + .incbin "baserom.gba", 0x123318, 0x0000010 + +gUnk_08123328:: @ 08123328 + .incbin "baserom.gba", 0x123328, 0x0000008 + +gUnk_08123330:: @ 08123330 + .incbin "baserom.gba", 0x123330, 0x0000003 + +gUnk_08123333:: @ 08123333 + .incbin "baserom.gba", 0x123333, 0x0000011 + +gUnk_08123344:: @ 08123344 + .incbin "baserom.gba", 0x123344, 0x0000026 + +gUnk_0812336A:: @ 0812336A + .incbin "baserom.gba", 0x12336A, 0x000001A + +gUnk_08123384:: @ 08123384 + .incbin "baserom.gba", 0x123384, 0x0000008 + +gUnk_0812338C:: @ 0812338C + .incbin "baserom.gba", 0x12338C, 0x0000024 + +gUnk_081233B0:: @ 081233B0 + .incbin "baserom.gba", 0x1233B0, 0x0000008 + +gUnk_081233B8:: @ 081233B8 + .incbin "baserom.gba", 0x1233B8, 0x0000008 + +gUnk_081233C0:: @ 081233C0 + .incbin "baserom.gba", 0x1233C0, 0x0000050 + +gUnk_08123410:: @ 08123410 + .incbin "baserom.gba", 0x123410, 0x000000C + +gUnk_0812341C:: @ 0812341C + .incbin "baserom.gba", 0x12341C, 0x0000006 + +gUnk_08123422:: @ 08123422 + .incbin "baserom.gba", 0x123422, 0x0000019 + +gUnk_0812343B:: @ 0812343B + .incbin "baserom.gba", 0x12343B, 0x0000011 + +gUnk_0812344C:: @ 0812344C + .incbin "baserom.gba", 0x12344C, 0x0000028 + +gUnk_08123474:: @ 08123474 + .incbin "baserom.gba", 0x123474, 0x0000010 + +gUnk_08123484:: @ 08123484 + .incbin "baserom.gba", 0x123484, 0x0000010 + +gUnk_08123494:: @ 08123494 + .incbin "baserom.gba", 0x123494, 0x000000C + +gUnk_081234A0:: @ 081234A0 + .incbin "baserom.gba", 0x1234A0, 0x0000004 + +gUnk_081234A4:: @ 081234A4 + .incbin "baserom.gba", 0x1234A4, 0x0000008 + +gUnk_081234AC:: @ 081234AC + .incbin "baserom.gba", 0x1234AC, 0x0000008 + +gUnk_081234B4:: @ 081234B4 + .incbin "baserom.gba", 0x1234B4, 0x0000015 + +gUnk_081234C9:: @ 081234C9 + .incbin "baserom.gba", 0x1234C9, 0x0000017 + +gUnk_081234E0:: @ 081234E0 + .incbin "baserom.gba", 0x1234E0, 0x000000C + +gUnk_081234EC:: @ 081234EC + .incbin "baserom.gba", 0x1234EC, 0x0000008 + +gUnk_081234F4:: @ 081234F4 + .incbin "baserom.gba", 0x1234F4, 0x0000008 + +gUnk_081234FC:: @ 081234FC + .incbin "baserom.gba", 0x1234FC, 0x0000008 + +gUnk_08123504:: @ 08123504 + .incbin "baserom.gba", 0x123504, 0x0000008 + +gUnk_0812350C:: @ 0812350C + .incbin "baserom.gba", 0x12350C, 0x0000018 + +gUnk_08123524:: @ 08123524 + .incbin "baserom.gba", 0x123524, 0x000001C + +gUnk_08123540:: @ 08123540 + .incbin "baserom.gba", 0x123540, 0x0000018 + +gUnk_08123558:: @ 08123558 + .incbin "baserom.gba", 0x123558, 0x0000010 + +gUnk_08123568:: @ 08123568 + .incbin "baserom.gba", 0x123568, 0x000000C + +gUnk_08123574:: @ 08123574 + .incbin "baserom.gba", 0x123574, 0x0000006 + +gUnk_0812357A:: @ 0812357A + .incbin "baserom.gba", 0x12357A, 0x0000019 + +gUnk_08123593:: @ 08123593 + .incbin "baserom.gba", 0x123593, 0x0000019 + +gUnk_081235AC:: @ 081235AC + .incbin "baserom.gba", 0x1235AC, 0x0000005 + +gUnk_081235B1:: @ 081235B1 + .incbin "baserom.gba", 0x1235B1, 0x0000005 + +gUnk_081235B6:: @ 081235B6 + .incbin "baserom.gba", 0x1235B6, 0x0000035 + +gUnk_081235EB:: @ 081235EB + .incbin "baserom.gba", 0x1235EB, 0x0000035 + +gUnk_08123620:: @ 08123620 + .incbin "baserom.gba", 0x123620, 0x000001C + +gUnk_0812363C:: @ 0812363C + .incbin "baserom.gba", 0x12363C, 0x0000028 + +gUnk_08123664:: @ 08123664 + .incbin "baserom.gba", 0x123664, 0x0000008 + +gUnk_0812366C:: @ 0812366C + .incbin "baserom.gba", 0x12366C, 0x0000008 + +gUnk_08123674:: @ 08123674 + .incbin "baserom.gba", 0x123674, 0x0000008 + +gUnk_0812367C:: @ 0812367C + .incbin "baserom.gba", 0x12367C, 0x0000014 + +gUnk_08123690:: @ 08123690 + .incbin "baserom.gba", 0x123690, 0x0000008 + +gUnk_08123698:: @ 08123698 + .incbin "baserom.gba", 0x123698, 0x0000011 + +gUnk_081236A9:: @ 081236A9 + .incbin "baserom.gba", 0x1236A9, 0x0000011 + +gUnk_081236BA:: @ 081236BA + .incbin "baserom.gba", 0x1236BA, 0x0000012 + +gUnk_081236CC:: @ 081236CC + .incbin "baserom.gba", 0x1236CC, 0x0000010 + +gUnk_081236DC:: @ 081236DC + .incbin "baserom.gba", 0x1236DC, 0x000000C + +gUnk_081236E8:: @ 081236E8 + .incbin "baserom.gba", 0x1236E8, 0x0000004 + +gUnk_081236EC:: @ 081236EC + .incbin "baserom.gba", 0x1236EC, 0x0000008 + +gUnk_081236F4:: @ 081236F4 + .incbin "baserom.gba", 0x1236F4, 0x0000008 + +gUnk_081236FC:: @ 081236FC + .incbin "baserom.gba", 0x1236FC, 0x0000015 + +gUnk_08123711:: @ 08123711 + .incbin "baserom.gba", 0x123711, 0x0000017 + +gUnk_08123728:: @ 08123728 + .incbin "baserom.gba", 0x123728, 0x000000C + +gUnk_08123734:: @ 08123734 + .incbin "baserom.gba", 0x123734, 0x0000014 + +gUnk_08123748:: @ 08123748 + .incbin "baserom.gba", 0x123748, 0x0000008 + +gUnk_08123750:: @ 08123750 + .incbin "baserom.gba", 0x123750, 0x000001A + +gUnk_0812376A:: @ 0812376A + .incbin "baserom.gba", 0x12376A, 0x0000004 + +gUnk_0812376E:: @ 0812376E + .incbin "baserom.gba", 0x12376E, 0x0000004 + +gUnk_08123772:: @ 08123772 + .incbin "baserom.gba", 0x123772, 0x0000004 + +gUnk_08123776:: @ 08123776 + .incbin "baserom.gba", 0x123776, 0x0000016 + +gUnk_0812378C:: @ 0812378C + .incbin "baserom.gba", 0x12378C, 0x0000014 + +gUnk_081237A0:: @ 081237A0 + .incbin "baserom.gba", 0x1237A0, 0x0000010 + +gUnk_081237B0:: @ 081237B0 + .incbin "baserom.gba", 0x1237B0, 0x000000A + +gUnk_081237BA:: @ 081237BA + .incbin "baserom.gba", 0x1237BA, 0x0000004 + +gUnk_081237BE:: @ 081237BE + .incbin "baserom.gba", 0x1237BE, 0x0000004 + +gUnk_081237C2:: @ 081237C2 + .incbin "baserom.gba", 0x1237C2, 0x0000004 + +gUnk_081237C6:: @ 081237C6 + .incbin "baserom.gba", 0x1237C6, 0x0000004 + +gUnk_081237CA:: @ 081237CA + .incbin "baserom.gba", 0x1237CA, 0x0000016 + +gUnk_081237E0:: @ 081237E0 + .incbin "baserom.gba", 0x1237E0, 0x0000018 + +gUnk_081237F8:: @ 081237F8 + .incbin "baserom.gba", 0x1237F8, 0x0000014 + +gUnk_0812380C:: @ 0812380C + .incbin "baserom.gba", 0x12380C, 0x0000014 + +gUnk_08123820:: @ 08123820 + .incbin "baserom.gba", 0x123820, 0x0000014 + +gUnk_08123834:: @ 08123834 + .incbin "baserom.gba", 0x123834, 0x000000C + +gUnk_08123840:: @ 08123840 + .incbin "baserom.gba", 0x123840, 0x000000C + +gUnk_0812384C:: @ 0812384C + .incbin "baserom.gba", 0x12384C, 0x0000040 + +gUnk_0812388C:: @ 0812388C + .incbin "baserom.gba", 0x12388C, 0x0000014 + +gUnk_081238A0:: @ 081238A0 + .incbin "baserom.gba", 0x1238A0, 0x00003E0 + +gUnk_08123C80:: @ 08123C80 + .incbin "baserom.gba", 0x123C80, 0x0000010 + +gUnk_08123C90:: @ 08123C90 + .incbin "baserom.gba", 0x123C90, 0x0000028 + +gUnk_08123CB8:: @ 08123CB8 + .incbin "baserom.gba", 0x123CB8, 0x0000005 + +gUnk_08123CBD:: @ 08123CBD + .incbin "baserom.gba", 0x123CBD, 0x0000011 + +gUnk_08123CCE:: @ 08123CCE + .incbin "baserom.gba", 0x123CCE, 0x000001D + +gUnk_08123CEB:: @ 08123CEB + .incbin "baserom.gba", 0x123CEB, 0x0000029 + +gUnk_08123D14:: @ 08123D14 + .incbin "baserom.gba", 0x123D14, 0x0000014 + +gUnk_08123D28:: @ 08123D28 + .incbin "baserom.gba", 0x123D28, 0x0000020 + +gUnk_08123D48:: @ 08123D48 + .incbin "baserom.gba", 0x123D48, 0x0000004 + +gUnk_08123D4C:: @ 08123D4C + .incbin "baserom.gba", 0x123D4C, 0x000000C + +gUnk_08123D58:: @ 08123D58 + .incbin "baserom.gba", 0x123D58, 0x0000010 + +gUnk_08123D68:: @ 08123D68 + .incbin "baserom.gba", 0x123D68, 0x0000014 + +gUnk_08123D7C:: @ 08123D7C + .incbin "baserom.gba", 0x123D7C, 0x0000018 + +gUnk_08123D94:: @ 08123D94 + .incbin "baserom.gba", 0x123D94, 0x0000004 + +gUnk_08123D98:: @ 08123D98 + .incbin "baserom.gba", 0x123D98, 0x0000008 + +gUnk_08123DA0:: @ 08123DA0 + .incbin "baserom.gba", 0x123DA0, 0x0000014 + +gUnk_08123DB4:: @ 08123DB4 + .incbin "baserom.gba", 0x123DB4, 0x000000C + +gUnk_08123DC0:: @ 08123DC0 + .incbin "baserom.gba", 0x123DC0, 0x000000C + +gUnk_08123DCC:: @ 08123DCC + .incbin "baserom.gba", 0x123DCC, 0x0000008 + +gUnk_08123DD4:: @ 08123DD4 + .incbin "baserom.gba", 0x123DD4, 0x0000008 + +gUnk_08123DDC:: @ 08123DDC + .incbin "baserom.gba", 0x123DDC, 0x000001C + +gUnk_08123DF8:: @ 08123DF8 + .incbin "baserom.gba", 0x123DF8, 0x0000020 + +gUnk_08123E18:: @ 08123E18 + .incbin "baserom.gba", 0x123E18, 0x0000004 + +gUnk_08123E1C:: @ 08123E1C + .incbin "baserom.gba", 0x123E1C, 0x0000004 + +gUnk_08123E20:: @ 08123E20 + .incbin "baserom.gba", 0x123E20, 0x000000C + +gUnk_08123E2C:: @ 08123E2C + .incbin "baserom.gba", 0x123E2C, 0x000004C + +gUnk_08123E78:: @ 08123E78 + .incbin "baserom.gba", 0x123E78, 0x0000008 + +gUnk_08123E80:: @ 08123E80 + .incbin "baserom.gba", 0x123E80, 0x0000008 + +gUnk_08123E88:: @ 08123E88 + .incbin "baserom.gba", 0x123E88, 0x0000014 + +gUnk_08123E9C:: @ 08123E9C + .incbin "baserom.gba", 0x123E9C, 0x0000008 + +gUnk_08123EA4:: @ 08123EA4 + .incbin "baserom.gba", 0x123EA4, 0x0000014 + +gUnk_08123EB8:: @ 08123EB8 + .incbin "baserom.gba", 0x123EB8, 0x0000008 + +gUnk_08123EC0:: @ 08123EC0 + .incbin "baserom.gba", 0x123EC0, 0x000002C + +gUnk_08123EEC:: @ 08123EEC + .incbin "baserom.gba", 0x123EEC, 0x0000008 + +gUnk_08123EF4:: @ 08123EF4 + .incbin "baserom.gba", 0x123EF4, 0x0000008 + +gUnk_08123EFC:: @ 08123EFC + .incbin "baserom.gba", 0x123EFC, 0x0000008 + +gUnk_08123F04:: @ 08123F04 + .incbin "baserom.gba", 0x123F04, 0x0000008 + +gUnk_08123F0C:: @ 08123F0C + .incbin "baserom.gba", 0x123F0C, 0x0000014 + +gUnk_08123F20:: @ 08123F20 + .incbin "baserom.gba", 0x123F20, 0x0000008 + +gUnk_08123F28:: @ 08123F28 + .incbin "baserom.gba", 0x123F28, 0x0000021 + +gUnk_08123F49:: @ 08123F49 + .incbin "baserom.gba", 0x123F49, 0x0000019 + +gUnk_08123F62:: @ 08123F62 + .incbin "baserom.gba", 0x123F62, 0x0000019 + +gUnk_08123F7B:: @ 08123F7B + .incbin "baserom.gba", 0x123F7B, 0x0000021 + +gUnk_08123F9C:: @ 08123F9C + .incbin "baserom.gba", 0x123F9C, 0x0000014 + +gUnk_08123FB0:: @ 08123FB0 + .incbin "baserom.gba", 0x123FB0, 0x0000061 + +gUnk_08124011:: @ 08124011 + .incbin "baserom.gba", 0x124011, 0x000007B + +gUnk_0812408C:: @ 0812408C + .incbin "baserom.gba", 0x12408C, 0x0000024 + +gUnk_081240B0:: @ 081240B0 + .incbin "baserom.gba", 0x1240B0, 0x0000010 + +gUnk_081240C0:: @ 081240C0 + .incbin "baserom.gba", 0x1240C0, 0x0000018 + +gUnk_081240D8:: @ 081240D8 + .incbin "baserom.gba", 0x1240D8, 0x0000014 + +gUnk_081240EC:: @ 081240EC + .incbin "baserom.gba", 0x1240EC, 0x0000008 + +gUnk_081240F4:: @ 081240F4 + .incbin "baserom.gba", 0x1240F4, 0x000000C + +gUnk_08124100:: @ 08124100 + .incbin "baserom.gba", 0x124100, 0x0000018 + +gUnk_08124118:: @ 08124118 + .incbin "baserom.gba", 0x124118, 0x0000010 + +gUnk_08124128:: @ 08124128 + .incbin "baserom.gba", 0x124128, 0x0000005 + +gUnk_0812412D:: @ 0812412D + .incbin "baserom.gba", 0x12412D, 0x0000005 + +gUnk_08124132:: @ 08124132 + .incbin "baserom.gba", 0x124132, 0x0000014 + +gUnk_08124146:: @ 08124146 + .incbin "baserom.gba", 0x124146, 0x000000A + +gUnk_08124150:: @ 08124150 + .incbin "baserom.gba", 0x124150, 0x0000008 + +gUnk_08124158:: @ 08124158 + .incbin "baserom.gba", 0x124158, 0x0000020 + +gUnk_08124178:: @ 08124178 + .incbin "baserom.gba", 0x124178, 0x0000014 + +gUnk_0812418C:: @ 0812418C + .incbin "baserom.gba", 0x12418C, 0x0000008 + +gUnk_08124194:: @ 08124194 + .incbin "baserom.gba", 0x124194, 0x0000048 + +gUnk_081241DC:: @ 081241DC + .incbin "baserom.gba", 0x1241DC, 0x0000048 + +gUnk_08124224:: @ 08124224 + .incbin "baserom.gba", 0x124224, 0x0000048 + +gUnk_0812426C:: @ 0812426C + .incbin "baserom.gba", 0x12426C, 0x0000048 + +gUnk_081242B4:: @ 081242B4 + .incbin "baserom.gba", 0x1242B4, 0x0000014 + +gUnk_081242C8:: @ 081242C8 + .incbin "baserom.gba", 0x1242C8, 0x0000008 + +gUnk_081242D0:: @ 081242D0 + .incbin "baserom.gba", 0x1242D0, 0x0000008 + +gUnk_081242D8:: @ 081242D8 + .incbin "baserom.gba", 0x1242D8, 0x0000010 + +gUnk_081242E8:: @ 081242E8 + .incbin "baserom.gba", 0x1242E8, 0x000002C + +gUnk_08124314:: @ 08124314 + .incbin "baserom.gba", 0x124314, 0x000000C + +gUnk_08124320:: @ 08124320 + .incbin "baserom.gba", 0x124320, 0x0000028 + +gUnk_08124348:: @ 08124348 + .incbin "baserom.gba", 0x124348, 0x000000C + +gUnk_08124354:: @ 08124354 + .incbin "baserom.gba", 0x124354, 0x0000010 + +gUnk_08124364:: @ 08124364 + .incbin "baserom.gba", 0x124364, 0x0000050 + +gUnk_081243B4:: @ 081243B4 + .incbin "baserom.gba", 0x1243B4, 0x0000008 + +gUnk_081243BC:: @ 081243BC + .incbin "baserom.gba", 0x1243BC, 0x0000008 + +gUnk_081243C4:: @ 081243C4 + .incbin "baserom.gba", 0x1243C4, 0x0000010 + +gUnk_081243D4:: @ 081243D4 + .incbin "baserom.gba", 0x1243D4, 0x0000010 + +gUnk_081243E4:: @ 081243E4 + .incbin "baserom.gba", 0x1243E4, 0x0000008 + +gUnk_081243EC:: @ 081243EC + .incbin "baserom.gba", 0x1243EC, 0x0000008 + +gUnk_081243F4:: @ 081243F4 + .incbin "baserom.gba", 0x1243F4, 0x000003F + +gUnk_08124433:: @ 08124433 + .incbin "baserom.gba", 0x124433, 0x0000032 + +gUnk_08124465:: @ 08124465 + .incbin "baserom.gba", 0x124465, 0x0000071 + +gUnk_081244D6:: @ 081244D6 + .incbin "baserom.gba", 0x1244D6, 0x0000071 + +gUnk_08124547:: @ 08124547 + .incbin "baserom.gba", 0x124547, 0x0000071 + +gUnk_081245B8:: @ 081245B8 + .incbin "baserom.gba", 0x1245B8, 0x0000025 + +gUnk_081245DD:: @ 081245DD + .incbin "baserom.gba", 0x1245DD, 0x0000025 + +gUnk_08124602:: @ 08124602 + .incbin "baserom.gba", 0x124602, 0x0000025 + +gUnk_08124627:: @ 08124627 + .incbin "baserom.gba", 0x124627, 0x0000025 + +gUnk_0812464C:: @ 0812464C + .incbin "baserom.gba", 0x12464C, 0x0000024 + +gUnk_08124670:: @ 08124670 + .incbin "baserom.gba", 0x124670, 0x0000014 + +gUnk_08124684:: @ 08124684 + .incbin "baserom.gba", 0x124684, 0x0000008 + +gUnk_0812468C:: @ 0812468C + .incbin "baserom.gba", 0x12468C, 0x0000004 + +gUnk_08124690:: @ 08124690 + .incbin "baserom.gba", 0x124690, 0x0000004 + +gUnk_08124694:: @ 08124694 + .incbin "baserom.gba", 0x124694, 0x0000004 + +gUnk_08124698:: @ 08124698 + .incbin "baserom.gba", 0x124698, 0x0000010 + +gUnk_081246A8:: @ 081246A8 + .incbin "baserom.gba", 0x1246A8, 0x0000010 + +gUnk_081246B8:: @ 081246B8 + .incbin "baserom.gba", 0x1246B8, 0x0000010 + +gUnk_081246C8:: @ 081246C8 + .incbin "baserom.gba", 0x1246C8, 0x0000024 + +gUnk_081246EC:: @ 081246EC + .incbin "baserom.gba", 0x1246EC, 0x0000008 + +gUnk_081246F4:: @ 081246F4 + .incbin "baserom.gba", 0x1246F4, 0x0000010 + +gUnk_08124704:: @ 08124704 + .incbin "baserom.gba", 0x124704, 0x0000004 + +gUnk_08124708:: @ 08124708 + .incbin "baserom.gba", 0x124708, 0x000000A + +gUnk_08124712:: @ 08124712 + .incbin "baserom.gba", 0x124712, 0x0000031 + +gUnk_08124743:: @ 08124743 + .incbin "baserom.gba", 0x124743, 0x0000021 + +gUnk_08124764:: @ 08124764 + .incbin "baserom.gba", 0x124764, 0x0000024 + +gUnk_08124788:: @ 08124788 + .incbin "baserom.gba", 0x124788, 0x0000010 + +gUnk_08124798:: @ 08124798 + .incbin "baserom.gba", 0x124798, 0x0000008 + +gUnk_081247A0:: @ 081247A0 + .incbin "baserom.gba", 0x1247A0, 0x000000C + +gUnk_081247AC:: @ 081247AC + .incbin "baserom.gba", 0x1247AC, 0x0000014 + +gUnk_081247C0:: @ 081247C0 + .incbin "baserom.gba", 0x1247C0, 0x0000008 + +gUnk_081247C8:: @ 081247C8 + .incbin "baserom.gba", 0x1247C8, 0x0000008 + +gUnk_081247D0:: @ 081247D0 + .incbin "baserom.gba", 0x1247D0, 0x0000028 + +gUnk_081247F8:: @ 081247F8 + .incbin "baserom.gba", 0x1247F8, 0x0000008 + +gUnk_08124800:: @ 08124800 + .incbin "baserom.gba", 0x124800, 0x0000008 + +gUnk_08124808:: @ 08124808 + .incbin "baserom.gba", 0x124808, 0x0000014 + +gUnk_0812481C:: @ 0812481C + .incbin "baserom.gba", 0x12481C, 0x0000008 + +gUnk_08124824:: @ 08124824 + .incbin "baserom.gba", 0x124824, 0x000001C + +gUnk_08124840:: @ 08124840 + .incbin "baserom.gba", 0x124840, 0x000000C + +gUnk_0812484C:: @ 0812484C + .incbin "baserom.gba", 0x12484C, 0x0000004 + +gUnk_08124850:: @ 08124850 + .incbin "baserom.gba", 0x124850, 0x000000C + +gUnk_0812485C:: @ 0812485C + .incbin "baserom.gba", 0x12485C, 0x0000004 + +gUnk_08124860:: @ 08124860 + .incbin "baserom.gba", 0x124860, 0x0000008 + +gUnk_08124868:: @ 08124868 + .incbin "baserom.gba", 0x124868, 0x0000004 + +gUnk_0812486C:: @ 0812486C + .incbin "baserom.gba", 0x12486C, 0x000000C + +gUnk_08124878:: @ 08124878 + .incbin "baserom.gba", 0x124878, 0x0000018 + +gUnk_08124890:: @ 08124890 + .incbin "baserom.gba", 0x124890, 0x0000008 + +gUnk_08124898:: @ 08124898 + .incbin "baserom.gba", 0x124898, 0x000001C + +gUnk_081248B4:: @ 081248B4 + .incbin "baserom.gba", 0x1248B4, 0x0000008 + +gUnk_081248BC:: @ 081248BC + .incbin "baserom.gba", 0x1248BC, 0x0000008 + +gUnk_081248C4:: @ 081248C4 + .incbin "baserom.gba", 0x1248C4, 0x000000C + +gUnk_081248D0:: @ 081248D0 + .incbin "baserom.gba", 0x1248D0, 0x0000011 + +gUnk_081248E1:: @ 081248E1 + .incbin "baserom.gba", 0x1248E1, 0x0000011 + +gUnk_081248F2:: @ 081248F2 + .incbin "baserom.gba", 0x1248F2, 0x000001C + +gUnk_0812490E:: @ 0812490E + .incbin "baserom.gba", 0x12490E, 0x000001A + +gUnk_08124928:: @ 08124928 + .incbin "baserom.gba", 0x124928, 0x0000014 + +gUnk_0812493C:: @ 0812493C + .incbin "baserom.gba", 0x12493C, 0x0000014 + +gUnk_08124950:: @ 08124950 + .incbin "baserom.gba", 0x124950, 0x0000010 + +gUnk_08124960:: @ 08124960 + .incbin "baserom.gba", 0x124960, 0x0000005 + +gUnk_08124965:: @ 08124965 + .incbin "baserom.gba", 0x124965, 0x0000015 + +gUnk_0812497A:: @ 0812497A + .incbin "baserom.gba", 0x12497A, 0x000001A + +gUnk_08124994:: @ 08124994 + .incbin "baserom.gba", 0x124994, 0x000000C + +gUnk_081249A0:: @ 081249A0 + .incbin "baserom.gba", 0x1249A0, 0x000000C + +gUnk_081249AC:: @ 081249AC + .incbin "baserom.gba", 0x1249AC, 0x000000C + +gUnk_081249B8:: @ 081249B8 + .incbin "baserom.gba", 0x1249B8, 0x0000011 + +gUnk_081249C9:: @ 081249C9 + .incbin "baserom.gba", 0x1249C9, 0x0000011 + +gUnk_081249DA:: @ 081249DA + .incbin "baserom.gba", 0x1249DA, 0x0000011 + +gUnk_081249EB:: @ 081249EB + .incbin "baserom.gba", 0x1249EB, 0x0000011 + +gUnk_081249FC:: @ 081249FC + .incbin "baserom.gba", 0x1249FC, 0x0000014 + +gUnk_08124A10:: @ 08124A10 + .incbin "baserom.gba", 0x124A10, 0x0000008 + +gUnk_08124A18:: @ 08124A18 + .incbin "baserom.gba", 0x124A18, 0x0000008 + +gUnk_08124A20:: @ 08124A20 + .incbin "baserom.gba", 0x124A20, 0x000000C + +gUnk_08124A2C:: @ 08124A2C + .incbin "baserom.gba", 0x124A2C, 0x0000051 + +gUnk_08124A7D:: @ 08124A7D + .incbin "baserom.gba", 0x124A7D, 0x0000005 + +gUnk_08124A82:: @ 08124A82 + .incbin "baserom.gba", 0x124A82, 0x0000005 + +gUnk_08124A87:: @ 08124A87 + .incbin "baserom.gba", 0x124A87, 0x0000005 + +gUnk_08124A8C:: @ 08124A8C + .incbin "baserom.gba", 0x124A8C, 0x0000021 + +gUnk_08124AAD:: @ 08124AAD + .incbin "baserom.gba", 0x124AAD, 0x000004B + +gUnk_08124AF8:: @ 08124AF8 + .incbin "baserom.gba", 0x124AF8, 0x0000018 + +gUnk_08124B10:: @ 08124B10 + .incbin "baserom.gba", 0x124B10, 0x0000010 + +gUnk_08124B20:: @ 08124B20 + .incbin "baserom.gba", 0x124B20, 0x0000010 + +gUnk_08124B30:: @ 08124B30 + .incbin "baserom.gba", 0x124B30, 0x0000008 + +gUnk_08124B38:: @ 08124B38 + .incbin "baserom.gba", 0x124B38, 0x0000071 + +gUnk_08124BA9:: @ 08124BA9 + .incbin "baserom.gba", 0x124BA9, 0x0000053 + +gUnk_08124BFC:: @ 08124BFC + .incbin "baserom.gba", 0x124BFC, 0x000000C + +gUnk_08124C08:: @ 08124C08 + .incbin "baserom.gba", 0x124C08, 0x0000008 + +gUnk_08124C10:: @ 08124C10 + .incbin "baserom.gba", 0x124C10, 0x0000010 + +gUnk_08124C20:: @ 08124C20 + .incbin "baserom.gba", 0x124C20, 0x0000028 + +gUnk_08124C48:: @ 08124C48 + .incbin "baserom.gba", 0x124C48, 0x0000258 + +gUnk_08124EA0:: @ 08124EA0 + .incbin "baserom.gba", 0x124EA0, 0x0000028 + +gUnk_08124EC8:: @ 08124EC8 + .incbin "baserom.gba", 0x124EC8, 0x0000004 + +gUnk_08124ECC:: @ 08124ECC + .incbin "baserom.gba", 0x124ECC, 0x0000004 + +gUnk_08124ED0:: @ 08124ED0 + .incbin "baserom.gba", 0x124ED0, 0x0000028 + +gUnk_08124EF8:: @ 08124EF8 + .incbin "baserom.gba", 0x124EF8, 0x0000010 + +gUnk_08124F08:: @ 08124F08 + .incbin "baserom.gba", 0x124F08, 0x0000020 + +gUnk_08124F28:: @ 08124F28 + .incbin "baserom.gba", 0x124F28, 0x0000020 + +gUnk_08124F48:: @ 08124F48 + .incbin "baserom.gba", 0x124F48, 0x0000020 + +gUnk_08124F68:: @ 08124F68 + .incbin "baserom.gba", 0x124F68, 0x0000020 + +gUnk_08124F88:: @ 08124F88 + .incbin "baserom.gba", 0x124F88, 0x0000020 + +gUnk_08124FA8:: @ 08124FA8 + .incbin "baserom.gba", 0x124FA8, 0x0000020 + +gUnk_08124FC8:: @ 08124FC8 + .incbin "baserom.gba", 0x124FC8, 0x0000014 + +gUnk_08124FDC:: @ 08124FDC + .incbin "baserom.gba", 0x124FDC, 0x0000014 + +gUnk_08124FF0:: @ 08124FF0 + .incbin "baserom.gba", 0x124FF0, 0x0000020 + +gUnk_08125010:: @ 08125010 + .incbin "baserom.gba", 0x125010, 0x0000004 + +gUnk_08125014:: @ 08125014 + .incbin "baserom.gba", 0x125014, 0x0000028 + +gUnk_0812503C:: @ 0812503C + .incbin "baserom.gba", 0x12503C, 0x0000014 + +gUnk_08125050:: @ 08125050 + .incbin "baserom.gba", 0x125050, 0x000000C + +gUnk_0812505C:: @ 0812505C + .incbin "baserom.gba", 0x12505C, 0x000000C + +gUnk_08125068:: @ 08125068 + .incbin "baserom.gba", 0x125068, 0x0000014 + +gUnk_0812507C:: @ 0812507C + .incbin "baserom.gba", 0x12507C, 0x0000008 + +gUnk_08125084:: @ 08125084 + .incbin "baserom.gba", 0x125084, 0x0000080 + +gUnk_08125104:: @ 08125104 + .incbin "baserom.gba", 0x125104, 0x000000E + +gUnk_08125112:: @ 08125112 + .incbin "baserom.gba", 0x125112, 0x0000006 + +gUnk_08125118:: @ 08125118 + .incbin "baserom.gba", 0x125118, 0x00002C0 + +gUnk_081253D8:: @ 081253D8 + .incbin "baserom.gba", 0x1253D8, 0x0000020 + +gUnk_081253F8:: @ 081253F8 + .incbin "baserom.gba", 0x1253F8, 0x0000028 + +gUnk_08125420:: @ 08125420 + .incbin "baserom.gba", 0x125420, 0x0000018 + +gUnk_08125438:: @ 08125438 + .incbin "baserom.gba", 0x125438, 0x0000060 + +gUnk_08125498:: @ 08125498 + .incbin "baserom.gba", 0x125498, 0x0000050 + +gUnk_081254E8:: @ 081254E8 + .incbin "baserom.gba", 0x1254E8, 0x0000058 + +gUnk_08125540:: @ 08125540 + .incbin "baserom.gba", 0x125540, 0x0000118 + +gUnk_08125658:: @ 08125658 + .incbin "baserom.gba", 0x125658, 0x0000010 + +gUnk_08125668:: @ 08125668 + .incbin "baserom.gba", 0x125668, 0x0000030 + +gUnk_08125698:: @ 08125698 + .incbin "baserom.gba", 0x125698, 0x0000010 + +gUnk_081256A8:: @ 081256A8 + .incbin "baserom.gba", 0x1256A8, 0x0000028 + +gUnk_081256D0:: @ 081256D0 + .incbin "baserom.gba", 0x1256D0, 0x0000230 + +gUnk_08125900:: @ 08125900 + .incbin "baserom.gba", 0x125900, 0x0000018 + +gUnk_08125918:: @ 08125918 + .incbin "baserom.gba", 0x125918, 0x0000010 + +gUnk_08125928:: @ 08125928 + .incbin "baserom.gba", 0x125928, 0x0000018 + +gUnk_08125940:: @ 08125940 + .incbin "baserom.gba", 0x125940, 0x0000020 + +gUnk_08125960:: @ 08125960 + .incbin "baserom.gba", 0x125960, 0x0000048 + +gUnk_081259A8:: @ 081259A8 + .incbin "baserom.gba", 0x1259A8, 0x000006D + +gUnk_08125A15:: @ 08125A15 + .incbin "baserom.gba", 0x125A15, 0x00000EB + +gUnk_08125B00:: @ 08125B00 + .incbin "baserom.gba", 0x125B00, 0x0000020 + +gUnk_08125B20:: @ 08125B20 + .incbin "baserom.gba", 0x125B20, 0x0000030 + +gUnk_08125B50:: @ 08125B50 + .incbin "baserom.gba", 0x125B50, 0x0000020 + +gUnk_08125B70:: @ 08125B70 + .incbin "baserom.gba", 0x125B70, 0x00000A8 + +gUnk_08125C18:: @ 08125C18 + .incbin "baserom.gba", 0x125C18, 0x0000030 + +gUnk_08125C48:: @ 08125C48 + .incbin "baserom.gba", 0x125C48, 0x0000048 + +gUnk_08125C90:: @ 08125C90 + .incbin "baserom.gba", 0x125C90, 0x0000048 + +gUnk_08125CD8:: @ 08125CD8 + .incbin "baserom.gba", 0x125CD8, 0x0000090 + +gUnk_08125D68:: @ 08125D68 + .incbin "baserom.gba", 0x125D68, 0x0000048 + +gUnk_08125DB0:: @ 08125DB0 + .incbin "baserom.gba", 0x125DB0, 0x0000108 + +gUnk_08125EB8:: @ 08125EB8 + .incbin "baserom.gba", 0x125EB8, 0x0000018 + +gUnk_08125ED0:: @ 08125ED0 + .incbin "baserom.gba", 0x125ED0, 0x0000020 + +gUnk_08125EF0:: @ 08125EF0 + .incbin "baserom.gba", 0x125EF0, 0x0000020 + +gUnk_08125F10:: @ 08125F10 + .incbin "baserom.gba", 0x125F10, 0x0000010 + +gUnk_08125F20:: @ 08125F20 + .incbin "baserom.gba", 0x125F20, 0x0000018 + +gUnk_08125F38:: @ 08125F38 + .incbin "baserom.gba", 0x125F38, 0x0000010 + +gUnk_08125F48:: @ 08125F48 + .incbin "baserom.gba", 0x125F48, 0x0000030 + +gUnk_08125F78:: @ 08125F78 + .incbin "baserom.gba", 0x125F78, 0x0000018 + +gUnk_08125F90:: @ 08125F90 + .incbin "baserom.gba", 0x125F90, 0x0000010 + +gUnk_08125FA0:: @ 08125FA0 + .incbin "baserom.gba", 0x125FA0, 0x0000020 + +gUnk_08125FC0:: @ 08125FC0 + .incbin "baserom.gba", 0x125FC0, 0x0000028 + +gUnk_08125FE8:: @ 08125FE8 + .incbin "baserom.gba", 0x125FE8, 0x0000050 + +gUnk_08126038:: @ 08126038 + .incbin "baserom.gba", 0x126038, 0x0000018 + +gUnk_08126050:: @ 08126050 + .incbin "baserom.gba", 0x126050, 0x0000018 + +gUnk_08126068:: @ 08126068 + .incbin "baserom.gba", 0x126068, 0x0000040 + +gUnk_081260A8:: @ 081260A8 + .incbin "baserom.gba", 0x1260A8, 0x0000010 + +gUnk_081260B8:: @ 081260B8 + .incbin "baserom.gba", 0x1260B8, 0x0000058 + +gUnk_08126110:: @ 08126110 + .incbin "baserom.gba", 0x126110, 0x0000040 + +gUnk_08126150:: @ 08126150 + .incbin "baserom.gba", 0x126150, 0x0000030 + +gUnk_08126180:: @ 08126180 + .incbin "baserom.gba", 0x126180, 0x0000030 + +gUnk_081261B0:: @ 081261B0 + .incbin "baserom.gba", 0x1261B0, 0x0000018 + +gUnk_081261C8:: @ 081261C8 + .incbin "baserom.gba", 0x1261C8, 0x0000020 + +gUnk_081261E8:: @ 081261E8 + .incbin "baserom.gba", 0x1261E8, 0x0000010 + +gUnk_081261F8:: @ 081261F8 + .incbin "baserom.gba", 0x1261F8, 0x000001B + +gUnk_08126213:: @ 08126213 + .incbin "baserom.gba", 0x126213, 0x0000065 + +gUnk_08126278:: @ 08126278 + .incbin "baserom.gba", 0x126278, 0x0000020 + +gUnk_08126298:: @ 08126298 + .incbin "baserom.gba", 0x126298, 0x0000020 + +gUnk_081262B8:: @ 081262B8 + .incbin "baserom.gba", 0x1262B8, 0x0000018 + +gUnk_081262D0:: @ 081262D0 + .incbin "baserom.gba", 0x1262D0, 0x0000018 + +gUnk_081262E8:: @ 081262E8 + .incbin "baserom.gba", 0x1262E8, 0x0000048 + +gUnk_08126330:: @ 08126330 + .incbin "baserom.gba", 0x126330, 0x0000020 + +gUnk_08126350:: @ 08126350 + .incbin "baserom.gba", 0x126350, 0x0000010 + +gUnk_08126360:: @ 08126360 + .incbin "baserom.gba", 0x126360, 0x0000020 + +gUnk_08126380:: @ 08126380 + .incbin "baserom.gba", 0x126380, 0x0000028 + +gUnk_081263A8:: @ 081263A8 + .incbin "baserom.gba", 0x1263A8, 0x0000010 + +gUnk_081263B8:: @ 081263B8 + .incbin "baserom.gba", 0x1263B8, 0x0000010 + +gUnk_081263C8:: @ 081263C8 + .incbin "baserom.gba", 0x1263C8, 0x0000010 + +gUnk_081263D8:: @ 081263D8 + .incbin "baserom.gba", 0x1263D8, 0x0000010 + +gUnk_081263E8:: @ 081263E8 + .incbin "baserom.gba", 0x1263E8, 0x0000138 + +gUnk_08126520:: @ 08126520 + .incbin "baserom.gba", 0x126520, 0x000009C + +gUnk_081265BC:: @ 081265BC + .incbin "baserom.gba", 0x1265BC, 0x0000073 + +gUnk_0812662F:: @ 0812662F + .incbin "baserom.gba", 0x12662F, 0x0000169 + +gUnk_08126798:: @ 08126798 + .incbin "baserom.gba", 0x126798, 0x0000610 + +gUnk_08126DA8:: @ 08126DA8 + .incbin "baserom.gba", 0x126DA8, 0x00000C0 + +gUnk_08126E68:: @ 08126E68 + .incbin "baserom.gba", 0x126E68, 0x0000030 + +gUnk_08126E98:: @ 08126E98 + .incbin "baserom.gba", 0x126E98, 0x0000030 + +gUnk_08126EC8:: @ 08126EC8 + .incbin "baserom.gba", 0x126EC8, 0x0000010 + +gUnk_08126ED8:: @ 08126ED8 + .incbin "baserom.gba", 0x126ED8, 0x000000C + +gUnk_08126EE4:: @ 08126EE4 + .incbin "baserom.gba", 0x126EE4, 0x0000008 + +gUnk_08126EEC:: @ 08126EEC + .incbin "baserom.gba", 0x126EEC, 0x0000008 + +gUnk_08126EF4:: @ 08126EF4 + .incbin "baserom.gba", 0x126EF4, 0x0000004 + +gUnk_08126EF8:: @ 08126EF8 + .incbin "baserom.gba", 0x126EF8, 0x0000005 + +gUnk_08126EFD:: @ 08126EFD + .incbin "baserom.gba", 0x126EFD, 0x0000005 + +gUnk_08126F02:: @ 08126F02 + .incbin "baserom.gba", 0x126F02, 0x0000011 + +gUnk_08126F13:: @ 08126F13 + .incbin "baserom.gba", 0x126F13, 0x0000015 + +gUnk_08126F28:: @ 08126F28 + .incbin "baserom.gba", 0x126F28, 0x0000015 + +gUnk_08126F3D:: @ 08126F3D + .incbin "baserom.gba", 0x126F3D, 0x0000011 + +gUnk_08126F4E:: @ 08126F4E + .incbin "baserom.gba", 0x126F4E, 0x0000011 + +gUnk_08126F5F:: @ 08126F5F + .incbin "baserom.gba", 0x126F5F, 0x0000011 + +gUnk_08126F70:: @ 08126F70 + .incbin "baserom.gba", 0x126F70, 0x0000011 + +gUnk_08126F81:: @ 08126F81 + .incbin "baserom.gba", 0x126F81, 0x0000009 + +gUnk_08126F8A:: @ 08126F8A + .incbin "baserom.gba", 0x126F8A, 0x000000C + +gUnk_08126F96:: @ 08126F96 + .incbin "baserom.gba", 0x126F96, 0x000000D + +gUnk_08126FA3:: @ 08126FA3 + .incbin "baserom.gba", 0x126FA3, 0x0000010 + +gUnk_08126FB3:: @ 08126FB3 + .incbin "baserom.gba", 0x126FB3, 0x0000010 + +gUnk_08126FC3:: @ 08126FC3 + .incbin "baserom.gba", 0x126FC3, 0x0000021 + +gUnk_08126FE4:: @ 08126FE4 + .incbin "baserom.gba", 0x126FE4, 0x0000014 + +gUnk_08126FF8:: @ 08126FF8 + .incbin "baserom.gba", 0x126FF8, 0x0000021 + +gUnk_08127019:: @ 08127019 + .incbin "baserom.gba", 0x127019, 0x0000018 + +gUnk_08127031:: @ 08127031 + .incbin "baserom.gba", 0x127031, 0x0000015 + +gUnk_08127046:: @ 08127046 + .incbin "baserom.gba", 0x127046, 0x0000015 + +gUnk_0812705B:: @ 0812705B + .incbin "baserom.gba", 0x12705B, 0x000005C + +gUnk_081270B7:: @ 081270B7 + .incbin "baserom.gba", 0x1270B7, 0x0000029 + +gUnk_081270E0:: @ 081270E0 + .incbin "baserom.gba", 0x1270E0, 0x0000011 + +gUnk_081270F1:: @ 081270F1 + .incbin "baserom.gba", 0x1270F1, 0x0000005 + +gUnk_081270F6:: @ 081270F6 + .incbin "baserom.gba", 0x1270F6, 0x0000011 + +gUnk_08127107:: @ 08127107 + .incbin "baserom.gba", 0x127107, 0x0000011 + +gUnk_08127118:: @ 08127118 + .incbin "baserom.gba", 0x127118, 0x0000011 + +gUnk_08127129:: @ 08127129 + .incbin "baserom.gba", 0x127129, 0x0000011 + +gUnk_0812713A:: @ 0812713A + .incbin "baserom.gba", 0x12713A, 0x0000009 + +gUnk_08127143:: @ 08127143 + .incbin "baserom.gba", 0x127143, 0x0000009 + +gUnk_0812714C:: @ 0812714C + .incbin "baserom.gba", 0x12714C, 0x0000080 + +gUnk_081271CC:: @ 081271CC + .incbin "baserom.gba", 0x1271CC, 0x0000008 + +gUnk_081271D4:: @ 081271D4 + .incbin "baserom.gba", 0x1271D4, 0x0000008 + +gUnk_081271DC:: @ 081271DC + .incbin "baserom.gba", 0x1271DC, 0x0000044 + +gUnk_08127220:: @ 08127220 + .incbin "baserom.gba", 0x127220, 0x0000020 + +gUnk_08127240:: @ 08127240 + .incbin "baserom.gba", 0x127240, 0x0000010 + +gUnk_08127250:: @ 08127250 + .incbin "baserom.gba", 0x127250, 0x0000008 + +gUnk_08127258:: @ 08127258 + .incbin "baserom.gba", 0x127258, 0x0000008 + +gUnk_08127260:: @ 08127260 + .incbin "baserom.gba", 0x127260, 0x0000008 + +gUnk_08127268:: @ 08127268 + .incbin "baserom.gba", 0x127268, 0x0000008 + +gUnk_08127270:: @ 08127270 + .incbin "baserom.gba", 0x127270, 0x0000008 + +gUnk_08127278:: @ 08127278 + .incbin "baserom.gba", 0x127278, 0x0000008 + +gUnk_08127280:: @ 08127280 + .incbin "baserom.gba", 0x127280, 0x0000018 + +gUnk_08127298:: @ 08127298 + .incbin "baserom.gba", 0x127298, 0x0000018 + +gUnk_081272B0:: @ 081272B0 + .incbin "baserom.gba", 0x1272B0, 0x0000018 + +gUnk_081272C8:: @ 081272C8 + .incbin "baserom.gba", 0x1272C8, 0x0000018 + +gUnk_081272E0:: @ 081272E0 + .incbin "baserom.gba", 0x1272E0, 0x0000010 + +gUnk_081272F0:: @ 081272F0 + .incbin "baserom.gba", 0x1272F0, 0x0000354 + +gUnk_08127644:: @ 08127644 + .incbin "baserom.gba", 0x127644, 0x0000354 + +gUnk_08127998:: @ 08127998 + .incbin "baserom.gba", 0x127998, 0x0000354 + +gUnk_08127CEC:: @ 08127CEC + .incbin "baserom.gba", 0x127CEC, 0x0000014 + +gUnk_08127D00:: @ 08127D00 + .incbin "baserom.gba", 0x127D00, 0x0000010 + +gUnk_08127D10:: @ 08127D10 + .incbin "baserom.gba", 0x127D10, 0x0000020 + +gUnk_08127D30:: @ 08127D30 + .incbin "baserom.gba", 0x127D30, 0x0000264 + +gUnk_08127F94:: @ 08127F94 + .incbin "baserom.gba", 0x127F94, 0x0000090 + +gUnk_08128024:: @ 08128024 + .incbin "baserom.gba", 0x128024, 0x00000A0 + +gUnk_081280C4:: @ 081280C4 + .incbin "baserom.gba", 0x1280C4, 0x0000018 + +gUnk_081280DC:: @ 081280DC + .incbin "baserom.gba", 0x1280DC, 0x0000012 + +gUnk_081280EE:: @ 081280EE + .incbin "baserom.gba", 0x1280EE, 0x0000006 + +gUnk_081280F4:: @ 081280F4 + .incbin "baserom.gba", 0x1280F4, 0x000000C + +gUnk_08128100:: @ 08128100 + .incbin "baserom.gba", 0x128100, 0x0000010 + +gUnk_08128110:: @ 08128110 + .incbin "baserom.gba", 0x128110, 0x0000010 + +gUnk_08128120:: @ 08128120 + .incbin "baserom.gba", 0x128120, 0x000001C + +gUnk_0812813C:: @ 0812813C + .incbin "baserom.gba", 0x12813C, 0x0000010 + +gUnk_0812814C:: @ 0812814C + .incbin "baserom.gba", 0x12814C, 0x0000010 + +gUnk_0812815C:: @ 0812815C + .incbin "baserom.gba", 0x12815C, 0x0000010 + +gUnk_0812816C:: @ 0812816C + .incbin "baserom.gba", 0x12816C, 0x0000018 + +gUnk_08128184:: @ 08128184 + .incbin "baserom.gba", 0x128184, 0x000000C + +gUnk_08128190:: @ 08128190 + .incbin "baserom.gba", 0x128190, 0x0000018 + +gUnk_081281A8:: @ 081281A8 + .incbin "baserom.gba", 0x1281A8, 0x0000890 + +gUnk_08128A38:: @ 08128A38 + .incbin "baserom.gba", 0x128A38, 0x00000A0 + +gUnk_08128AD8:: @ 08128AD8 + .incbin "baserom.gba", 0x128AD8, 0x0000058 + +gUnk_08128B30:: @ 08128B30 + .incbin "baserom.gba", 0x128B30, 0x0000018 + +gUnk_08128B48:: @ 08128B48 + .incbin "baserom.gba", 0x128B48, 0x0000008 + +gUnk_08128B50:: @ 08128B50 + .incbin "baserom.gba", 0x128B50, 0x0000014 + +gUnk_08128B64:: @ 08128B64 + .incbin "baserom.gba", 0x128B64, 0x0000090 + +gUnk_08128BF4:: @ 08128BF4 + .incbin "baserom.gba", 0x128BF4, 0x0000004 + +gUnk_08128BF8:: @ 08128BF8 + .incbin "baserom.gba", 0x128BF8, 0x0000008 + +gUnk_08128C00:: @ 08128C00 + .incbin "baserom.gba", 0x128C00, 0x0000004 + +gUnk_08128C04:: @ 08128C04 + .incbin "baserom.gba", 0x128C04, 0x0000010 + +gUnk_08128C14:: @ 08128C14 + .incbin "baserom.gba", 0x128C14, 0x0000080 + +gUnk_08128C94:: @ 08128C94 + .incbin "baserom.gba", 0x128C94, 0x0000080 + +gUnk_08128D14:: @ 08128D14 + .incbin "baserom.gba", 0x128D14, 0x0000010 + +gUnk_08128D24:: @ 08128D24 + .incbin "baserom.gba", 0x128D24, 0x000000C + +gUnk_08128D30:: @ 08128D30 + .incbin "baserom.gba", 0x128D30, 0x0000008 + +gUnk_08128D38:: @ 08128D38 + .incbin "baserom.gba", 0x128D38, 0x0000004 + +gUnk_08128D3C:: @ 08128D3C + .incbin "baserom.gba", 0x128D3C, 0x0000007 + +gUnk_08128D43:: @ 08128D43 + .incbin "baserom.gba", 0x128D43, 0x000000E + +gUnk_08128D51:: @ 08128D51 + .incbin "baserom.gba", 0x128D51, 0x0000007 + +gUnk_08128D58:: @ 08128D58 + .incbin "baserom.gba", 0x128D58, 0x0000008 + +gUnk_08128D60:: @ 08128D60 + .incbin "baserom.gba", 0x128D60, 0x0000010 + +gUnk_08128D70:: @ 08128D70 + .incbin "baserom.gba", 0x128D70, 0x0000040 + +gUnk_08128DB0:: @ 08128DB0 + .incbin "baserom.gba", 0x128DB0, 0x0000008 + +gUnk_08128DB8:: @ 08128DB8 + .incbin "baserom.gba", 0x128DB8, 0x0000004 + +gUnk_08128DBC:: @ 08128DBC + .incbin "baserom.gba", 0x128DBC, 0x0000010 + +gUnk_08128DCC:: @ 08128DCC + .incbin "baserom.gba", 0x128DCC, 0x0000008 + +gUnk_08128DD4:: @ 08128DD4 + .incbin "baserom.gba", 0x128DD4, 0x0000004 + +gUnk_08128DD8:: @ 08128DD8 + .incbin "baserom.gba", 0x128DD8, 0x0000010 + +gUnk_08128DE8:: @ 08128DE8 + .incbin "baserom.gba", 0x128DE8, 0x0000088 + +gUnk_08128E70:: @ 08128E70 + .incbin "baserom.gba", 0x128E70, 0x0000008 + +gUnk_08128E78:: @ 08128E78 + .incbin "baserom.gba", 0x128E78, 0x0000008 + +gUnk_08128E80:: @ 08128E80 + .incbin "baserom.gba", 0x128E80, 0x0000004 + +gUnk_08128E84:: @ 08128E84 + .incbin "baserom.gba", 0x128E84, 0x0000010 + +gUnk_08128E94:: @ 08128E94 + .incbin "baserom.gba", 0x128E94, 0x0000088 + +gUnk_08128F1C:: @ 08128F1C + .incbin "baserom.gba", 0x128F1C, 0x0000008 + +gUnk_08128F24:: @ 08128F24 + .incbin "baserom.gba", 0x128F24, 0x0000014 + +gUnk_08128F38:: @ 08128F38 + .incbin "baserom.gba", 0x128F38, 0x0000014 + +gUnk_08128F4C:: @ 08128F4C + .incbin "baserom.gba", 0x128F4C, 0x000000C + +gUnk_08128F58:: @ 08128F58 + .incbin "baserom.gba", 0x128F58, 0x0000050 + +gUnk_08128FA8:: @ 08128FA8 + .incbin "baserom.gba", 0x128FA8, 0x0000018 + +gUnk_08128FC0:: @ 08128FC0 + .incbin "baserom.gba", 0x128FC0, 0x0000018 + +gUnk_08128FD8:: @ 08128FD8 + .incbin "baserom.gba", 0x128FD8, 0x0000018 + +gUnk_08128FF0:: @ 08128FF0 + .incbin "baserom.gba", 0x128FF0, 0x0000014 + +gUnk_08129004:: @ 08129004 + .incbin "baserom.gba", 0x129004, 0x0000018 + +gUnk_0812901C:: @ 0812901C + .incbin "baserom.gba", 0x12901C, 0x0000014 + +gUnk_08129030:: @ 08129030 + .incbin "baserom.gba", 0x129030, 0x000002C + +gUnk_0812905C:: @ 0812905C + .incbin "baserom.gba", 0x12905C, 0x000000C + +gUnk_08129068:: @ 08129068 + .incbin "baserom.gba", 0x129068, 0x0000004 + +gUnk_0812906C:: @ 0812906C + .incbin "baserom.gba", 0x12906C, 0x0000006 + +gUnk_08129072:: @ 08129072 + .incbin "baserom.gba", 0x129072, 0x000001C + +gUnk_0812908E:: @ 0812908E + .incbin "baserom.gba", 0x12908E, 0x0000008 + +gUnk_08129096:: @ 08129096 + .incbin "baserom.gba", 0x129096, 0x000024C + +gUnk_081292E2:: @ 081292E2 + .incbin "baserom.gba", 0x1292E2, 0x000003E + +gUnk_08129320:: @ 08129320 + .incbin "baserom.gba", 0x129320, 0x0000098 + +gUnk_081293B8:: @ 081293B8 + .incbin "baserom.gba", 0x1293B8, 0x0000014 + +gUnk_081293CC:: @ 081293CC + .incbin "baserom.gba", 0x1293CC, 0x0000014 + +gUnk_081293E0:: @ 081293E0 + .incbin "baserom.gba", 0x1293E0, 0x0000010 + +gUnk_081293F0:: @ 081293F0 + .incbin "baserom.gba", 0x1293F0, 0x0000010 + +gUnk_08129400:: @ 08129400 + .incbin "baserom.gba", 0x129400, 0x0000010 + +gUnk_08129410:: @ 08129410 + .incbin "baserom.gba", 0x129410, 0x0000010 + +gUnk_08129420:: @ 08129420 + .incbin "baserom.gba", 0x129420, 0x0000010 + +gUnk_08129430:: @ 08129430 + .incbin "baserom.gba", 0x129430, 0x0000008 + +gUnk_08129438:: @ 08129438 + .incbin "baserom.gba", 0x129438, 0x0000008 + +gUnk_08129440:: @ 08129440 + .incbin "baserom.gba", 0x129440, 0x0000008 + +gUnk_08129448:: @ 08129448 + .incbin "baserom.gba", 0x129448, 0x0000008 + +gUnk_08129450:: @ 08129450 + .incbin "baserom.gba", 0x129450, 0x0000008 + +gUnk_08129458:: @ 08129458 + .incbin "baserom.gba", 0x129458, 0x0000008 + +gUnk_08129460:: @ 08129460 + .incbin "baserom.gba", 0x129460, 0x0000018 + +gUnk_08129478:: @ 08129478 + .incbin "baserom.gba", 0x129478, 0x0000008 + +gUnk_08129480:: @ 08129480 + .incbin "baserom.gba", 0x129480, 0x0000008 + +gUnk_08129488:: @ 08129488 + .incbin "baserom.gba", 0x129488, 0x0000008 + +gUnk_08129490:: @ 08129490 + .incbin "baserom.gba", 0x129490, 0x0000008 + +gUnk_08129498:: @ 08129498 + .incbin "baserom.gba", 0x129498, 0x0000008 + +gUnk_081294A0:: @ 081294A0 + .incbin "baserom.gba", 0x1294A0, 0x0000008 + +gUnk_081294A8:: @ 081294A8 + .incbin "baserom.gba", 0x1294A8, 0x0000018 + +gUnk_081294C0:: @ 081294C0 + .incbin "baserom.gba", 0x1294C0, 0x0000008 + +gUnk_081294C8:: @ 081294C8 + .incbin "baserom.gba", 0x1294C8, 0x0000008 + +gUnk_081294D0:: @ 081294D0 + .incbin "baserom.gba", 0x1294D0, 0x0000008 + +gUnk_081294D8:: @ 081294D8 + .incbin "baserom.gba", 0x1294D8, 0x0000008 + +gUnk_081294E0:: @ 081294E0 + .incbin "baserom.gba", 0x1294E0, 0x0000008 + +gUnk_081294E8:: @ 081294E8 + .incbin "baserom.gba", 0x1294E8, 0x0000008 + +gUnk_081294F0:: @ 081294F0 + .incbin "baserom.gba", 0x1294F0, 0x0000018 + +gUnk_08129508:: @ 08129508 + .incbin "baserom.gba", 0x129508, 0x0000008 + +gUnk_08129510:: @ 08129510 + .incbin "baserom.gba", 0x129510, 0x0000008 + +gUnk_08129518:: @ 08129518 + .incbin "baserom.gba", 0x129518, 0x0000008 + +gUnk_08129520:: @ 08129520 + .incbin "baserom.gba", 0x129520, 0x0000008 + +gUnk_08129528:: @ 08129528 + .incbin "baserom.gba", 0x129528, 0x0000008 + +gUnk_08129530:: @ 08129530 + .incbin "baserom.gba", 0x129530, 0x0000008 + +gUnk_08129538:: @ 08129538 + .incbin "baserom.gba", 0x129538, 0x0000018 + +gUnk_08129550:: @ 08129550 + .incbin "baserom.gba", 0x129550, 0x0000008 + +gUnk_08129558:: @ 08129558 + .incbin "baserom.gba", 0x129558, 0x0000008 + +gUnk_08129560:: @ 08129560 + .incbin "baserom.gba", 0x129560, 0x0000008 + +gUnk_08129568:: @ 08129568 + .incbin "baserom.gba", 0x129568, 0x0000008 + +gUnk_08129570:: @ 08129570 + .incbin "baserom.gba", 0x129570, 0x0000008 + +gUnk_08129578:: @ 08129578 + .incbin "baserom.gba", 0x129578, 0x0000008 + +gUnk_08129580:: @ 08129580 + .incbin "baserom.gba", 0x129580, 0x0000008 + +gUnk_08129588:: @ 08129588 + .incbin "baserom.gba", 0x129588, 0x0000008 + +gUnk_08129590:: @ 08129590 + .incbin "baserom.gba", 0x129590, 0x0000008 + +gUnk_08129598:: @ 08129598 + .incbin "baserom.gba", 0x129598, 0x0000008 + +gUnk_081295A0:: @ 081295A0 + .incbin "baserom.gba", 0x1295A0, 0x0000008 + +gUnk_081295A8:: @ 081295A8 + .incbin "baserom.gba", 0x1295A8, 0x0000008 + +gUnk_081295B0:: @ 081295B0 + .incbin "baserom.gba", 0x1295B0, 0x0000008 + +gUnk_081295B8:: @ 081295B8 + .incbin "baserom.gba", 0x1295B8, 0x0000008 + +gUnk_081295C0:: @ 081295C0 + .incbin "baserom.gba", 0x1295C0, 0x0000008 + +gUnk_081295C8:: @ 081295C8 + .incbin "baserom.gba", 0x1295C8, 0x0000008 + +gUnk_081295D0:: @ 081295D0 + .incbin "baserom.gba", 0x1295D0, 0x0000014 + +gUnk_081295E4:: @ 081295E4 + .incbin "baserom.gba", 0x1295E4, 0x0000010 + +gUnk_081295F4:: @ 081295F4 + .incbin "baserom.gba", 0x1295F4, 0x0000010 + +gUnk_08129604:: @ 08129604 + .incbin "baserom.gba", 0x129604, 0x0000008 + +gUnk_0812960C:: @ 0812960C + .incbin "baserom.gba", 0x12960C, 0x0000014 + +gUnk_08129620:: @ 08129620 + .incbin "baserom.gba", 0x129620, 0x0000014 + +gUnk_08129634:: @ 08129634 + .incbin "baserom.gba", 0x129634, 0x0000014 + +gUnk_08129648:: @ 08129648 + .incbin "baserom.gba", 0x129648, 0x0000008 + +gUnk_08129650:: @ 08129650 + .incbin "baserom.gba", 0x129650, 0x0000014 + +gUnk_08129664:: @ 08129664 + .incbin "baserom.gba", 0x129664, 0x0000008 + +gUnk_0812966C:: @ 0812966C + .incbin "baserom.gba", 0x12966C, 0x0000084 + +gUnk_081296F0:: @ 081296F0 + .incbin "baserom.gba", 0x1296F0, 0x0000014 + +gUnk_08129704:: @ 08129704 + .incbin "baserom.gba", 0x129704, 0x0000014 + +gUnk_08129718:: @ 08129718 + .incbin "baserom.gba", 0x129718, 0x0000014 + +gUnk_0812972C:: @ 0812972C + .incbin "baserom.gba", 0x12972C, 0x0000008 + +gUnk_08129734:: @ 08129734 + .incbin "baserom.gba", 0x129734, 0x000000C + +gUnk_08129740:: @ 08129740 + .incbin "baserom.gba", 0x129740, 0x0000014 + +gUnk_08129754:: @ 08129754 + .incbin "baserom.gba", 0x129754, 0x0000010 + +gUnk_08129764:: @ 08129764 + .incbin "baserom.gba", 0x129764, 0x000000C + +gUnk_08129770:: @ 08129770 + .incbin "baserom.gba", 0x129770, 0x0000005 + +gUnk_08129775:: @ 08129775 + .incbin "baserom.gba", 0x129775, 0x000001B + +gUnk_08129790:: @ 08129790 + .incbin "baserom.gba", 0x129790, 0x000000C + +gUnk_0812979C:: @ 0812979C + .incbin "baserom.gba", 0x12979C, 0x0000010 + +gUnk_081297AC:: @ 081297AC + .incbin "baserom.gba", 0x1297AC, 0x0000009 + +gUnk_081297B5:: @ 081297B5 + .incbin "baserom.gba", 0x1297B5, 0x0000009 + +gUnk_081297BE:: @ 081297BE + .incbin "baserom.gba", 0x1297BE, 0x0000009 + +gUnk_081297C7:: @ 081297C7 + .incbin "baserom.gba", 0x1297C7, 0x0000009 + +gUnk_081297D0:: @ 081297D0 + .incbin "baserom.gba", 0x1297D0, 0x0000005 + +gUnk_081297D5:: @ 081297D5 + .incbin "baserom.gba", 0x1297D5, 0x0000005 + +gUnk_081297DA:: @ 081297DA + .incbin "baserom.gba", 0x1297DA, 0x0000005 + +gUnk_081297DF:: @ 081297DF + .incbin "baserom.gba", 0x1297DF, 0x0000005 + +gUnk_081297E4:: @ 081297E4 + .incbin "baserom.gba", 0x1297E4, 0x0000005 + +gUnk_081297E9:: @ 081297E9 + .incbin "baserom.gba", 0x1297E9, 0x0000005 + +gUnk_081297EE:: @ 081297EE + .incbin "baserom.gba", 0x1297EE, 0x0000005 + +gUnk_081297F3:: @ 081297F3 + .incbin "baserom.gba", 0x1297F3, 0x0000005 + +gUnk_081297F8:: @ 081297F8 + .incbin "baserom.gba", 0x1297F8, 0x0000034 + +gUnk_0812982C:: @ 0812982C + .incbin "baserom.gba", 0x12982C, 0x0000010 + +gUnk_0812983C:: @ 0812983C + .incbin "baserom.gba", 0x12983C, 0x0000009 + +gUnk_08129845:: @ 08129845 + .incbin "baserom.gba", 0x129845, 0x0000009 + +gUnk_0812984E:: @ 0812984E + .incbin "baserom.gba", 0x12984E, 0x0000009 + +gUnk_08129857:: @ 08129857 + .incbin "baserom.gba", 0x129857, 0x0000009 + +gUnk_08129860:: @ 08129860 + .incbin "baserom.gba", 0x129860, 0x000000D + +gUnk_0812986D:: @ 0812986D + .incbin "baserom.gba", 0x12986D, 0x000000D + +gUnk_0812987A:: @ 0812987A + .incbin "baserom.gba", 0x12987A, 0x000000D + +gUnk_08129887:: @ 08129887 + .incbin "baserom.gba", 0x129887, 0x000000D + +gUnk_08129894:: @ 08129894 + .incbin "baserom.gba", 0x129894, 0x0000024 + +gUnk_081298B8:: @ 081298B8 + .incbin "baserom.gba", 0x1298B8, 0x0000010 + +gUnk_081298C8:: @ 081298C8 + .incbin "baserom.gba", 0x1298C8, 0x0000009 + +gUnk_081298D1:: @ 081298D1 + .incbin "baserom.gba", 0x1298D1, 0x0000009 + +gUnk_081298DA:: @ 081298DA + .incbin "baserom.gba", 0x1298DA, 0x0000009 + +gUnk_081298E3:: @ 081298E3 + .incbin "baserom.gba", 0x1298E3, 0x0000009 + +gUnk_081298EC:: @ 081298EC + .incbin "baserom.gba", 0x1298EC, 0x0000011 + +gUnk_081298FD:: @ 081298FD + .incbin "baserom.gba", 0x1298FD, 0x0000011 + +gUnk_0812990E:: @ 0812990E + .incbin "baserom.gba", 0x12990E, 0x0000011 + +gUnk_0812991F:: @ 0812991F + .incbin "baserom.gba", 0x12991F, 0x0000011 + +gUnk_08129930:: @ 08129930 + .incbin "baserom.gba", 0x129930, 0x0000024 + +gUnk_08129954:: @ 08129954 + .incbin "baserom.gba", 0x129954, 0x0000014 + +gUnk_08129968:: @ 08129968 + .incbin "baserom.gba", 0x129968, 0x0000010 + +gUnk_08129978:: @ 08129978 + .incbin "baserom.gba", 0x129978, 0x0000008 + +gUnk_08129980:: @ 08129980 + .incbin "baserom.gba", 0x129980, 0x0000008 + +gUnk_08129988:: @ 08129988 + .incbin "baserom.gba", 0x129988, 0x0000010 + +gUnk_08129998:: @ 08129998 + .incbin "baserom.gba", 0x129998, 0x0000010 + +gUnk_081299A8:: @ 081299A8 + .incbin "baserom.gba", 0x1299A8, 0x0000008 + +gUnk_081299B0:: @ 081299B0 + .incbin "baserom.gba", 0x1299B0, 0x0000008 + +gUnk_081299B8:: @ 081299B8 + .incbin "baserom.gba", 0x1299B8, 0x0000008 + +gUnk_081299C0:: @ 081299C0 + .incbin "baserom.gba", 0x1299C0, 0x0000008 + +gUnk_081299C8:: @ 081299C8 + .incbin "baserom.gba", 0x1299C8, 0x0000008 + +gUnk_081299D0:: @ 081299D0 + .incbin "baserom.gba", 0x1299D0, 0x0000014 + +gUnk_081299E4:: @ 081299E4 + .incbin "baserom.gba", 0x1299E4, 0x0000014 + +gUnk_081299F8:: @ 081299F8 + .incbin "baserom.gba", 0x1299F8, 0x0000020 + +gUnk_08129A18:: @ 08129A18 + .incbin "baserom.gba", 0x129A18, 0x0000008 + +gUnk_08129A20:: @ 08129A20 + .incbin "baserom.gba", 0x129A20, 0x0000008 + +gUnk_08129A28:: @ 08129A28 + .incbin "baserom.gba", 0x129A28, 0x0000005 + +gUnk_08129A2D:: @ 08129A2D + .incbin "baserom.gba", 0x129A2D, 0x0000005 + +gUnk_08129A32:: @ 08129A32 + .incbin "baserom.gba", 0x129A32, 0x0000011 + +gUnk_08129A43:: @ 08129A43 + .incbin "baserom.gba", 0x129A43, 0x0000011 + +gUnk_08129A54:: @ 08129A54 + .incbin "baserom.gba", 0x129A54, 0x0000010 + +gUnk_08129A64:: @ 08129A64 + .incbin "baserom.gba", 0x129A64, 0x000000C + +gUnk_08129A70:: @ 08129A70 + .incbin "baserom.gba", 0x129A70, 0x0000019 + +gUnk_08129A89:: @ 08129A89 + .incbin "baserom.gba", 0x129A89, 0x0000027 + +gUnk_08129AB0:: @ 08129AB0 + .incbin "baserom.gba", 0x129AB0, 0x000000C + +gUnk_08129ABC:: @ 08129ABC + .incbin "baserom.gba", 0x129ABC, 0x0000014 + +gUnk_08129AD0:: @ 08129AD0 + .incbin "baserom.gba", 0x129AD0, 0x000000C + +gUnk_08129ADC:: @ 08129ADC + .incbin "baserom.gba", 0x129ADC, 0x0000004 + +gUnk_08129AE0:: @ 08129AE0 + .incbin "baserom.gba", 0x129AE0, 0x0000018 + +gUnk_08129AF8:: @ 08129AF8 + .incbin "baserom.gba", 0x129AF8, 0x0000010 + +gUnk_08129B08:: @ 08129B08 + .incbin "baserom.gba", 0x129B08, 0x0000018 + +gUnk_08129B20:: @ 08129B20 + .incbin "baserom.gba", 0x129B20, 0x0000030 + +gUnk_08129B50:: @ 08129B50 + .incbin "baserom.gba", 0x129B50, 0x0000008 + +gUnk_08129B58:: @ 08129B58 + .incbin "baserom.gba", 0x129B58, 0x0000018 + +gUnk_08129B70:: @ 08129B70 + .incbin "baserom.gba", 0x129B70, 0x0000008 + +gUnk_08129B78:: @ 08129B78 + .incbin "baserom.gba", 0x129B78, 0x000000C + +gUnk_08129B84:: @ 08129B84 + .incbin "baserom.gba", 0x129B84, 0x0000011 + +gUnk_08129B95:: @ 08129B95 + .incbin "baserom.gba", 0x129B95, 0x0000011 + +gUnk_08129BA6:: @ 08129BA6 + .incbin "baserom.gba", 0x129BA6, 0x0000011 + +gUnk_08129BB7:: @ 08129BB7 + .incbin "baserom.gba", 0x129BB7, 0x0000011 + +gUnk_08129BC8:: @ 08129BC8 + .incbin "baserom.gba", 0x129BC8, 0x0000024 + +gUnk_08129BEC:: @ 08129BEC + .incbin "baserom.gba", 0x129BEC, 0x0000014 + +gUnk_08129C00:: @ 08129C00 + .incbin "baserom.gba", 0x129C00, 0x0000008 + +gUnk_08129C08:: @ 08129C08 + .incbin "baserom.gba", 0x129C08, 0x000006C + +gUnk_08129C74:: @ 08129C74 + .incbin "baserom.gba", 0x129C74, 0x0000008 + +gUnk_08129C7C:: @ 08129C7C + .incbin "baserom.gba", 0x129C7C, 0x0000014 + +gUnk_08129C90:: @ 08129C90 + .incbin "baserom.gba", 0x129C90, 0x0000014 + +gUnk_08129CA4:: @ 08129CA4 + .incbin "baserom.gba", 0x129CA4, 0x0000008 + +gUnk_08129CAC:: @ 08129CAC + .incbin "baserom.gba", 0x129CAC, 0x0000008 + +gUnk_08129CB4:: @ 08129CB4 + .incbin "baserom.gba", 0x129CB4, 0x0000008 + +gUnk_08129CBC:: @ 08129CBC + .incbin "baserom.gba", 0x129CBC, 0x0000008 + +gUnk_08129CC4:: @ 08129CC4 + .incbin "baserom.gba", 0x129CC4, 0x0000008 + +gUnk_08129CCC:: @ 08129CCC + .incbin "baserom.gba", 0x129CCC, 0x0000008 + +gUnk_08129CD4:: @ 08129CD4 + .incbin "baserom.gba", 0x129CD4, 0x0000008 + +gUnk_08129CDC:: @ 08129CDC + .incbin "baserom.gba", 0x129CDC, 0x0000008 + +gUnk_08129CE4:: @ 08129CE4 + .incbin "baserom.gba", 0x129CE4, 0x0000008 + +gUnk_08129CEC:: @ 08129CEC + .incbin "baserom.gba", 0x129CEC, 0x0000008 + +gUnk_08129CF4:: @ 08129CF4 + .incbin "baserom.gba", 0x129CF4, 0x0000020 + +gUnk_08129D14:: @ 08129D14 + .incbin "baserom.gba", 0x129D14, 0x0000008 + +gUnk_08129D1C:: @ 08129D1C + .incbin "baserom.gba", 0x129D1C, 0x0000005 + +gUnk_08129D21:: @ 08129D21 + .incbin "baserom.gba", 0x129D21, 0x0000005 + +gUnk_08129D26:: @ 08129D26 + .incbin "baserom.gba", 0x129D26, 0x0000005 + +gUnk_08129D2B:: @ 08129D2B + .incbin "baserom.gba", 0x129D2B, 0x0000005 + +gUnk_08129D30:: @ 08129D30 + .incbin "baserom.gba", 0x129D30, 0x0000005 + +gUnk_08129D35:: @ 08129D35 + .incbin "baserom.gba", 0x129D35, 0x0000005 + +gUnk_08129D3A:: @ 08129D3A + .incbin "baserom.gba", 0x129D3A, 0x0000005 + +gUnk_08129D3F:: @ 08129D3F + .incbin "baserom.gba", 0x129D3F, 0x0000005 + +gUnk_08129D44:: @ 08129D44 + .incbin "baserom.gba", 0x129D44, 0x0000011 + +gUnk_08129D55:: @ 08129D55 + .incbin "baserom.gba", 0x129D55, 0x0000011 + +gUnk_08129D66:: @ 08129D66 + .incbin "baserom.gba", 0x129D66, 0x0000011 + +gUnk_08129D77:: @ 08129D77 + .incbin "baserom.gba", 0x129D77, 0x0000011 + +gUnk_08129D88:: @ 08129D88 + .incbin "baserom.gba", 0x129D88, 0x0000011 + +gUnk_08129D99:: @ 08129D99 + .incbin "baserom.gba", 0x129D99, 0x0000011 + +gUnk_08129DAA:: @ 08129DAA + .incbin "baserom.gba", 0x129DAA, 0x0000011 + +gUnk_08129DBB:: @ 08129DBB + .incbin "baserom.gba", 0x129DBB, 0x0000011 + +gUnk_08129DCC:: @ 08129DCC + .incbin "baserom.gba", 0x129DCC, 0x000000C + +gUnk_08129DD8:: @ 08129DD8 + .incbin "baserom.gba", 0x129DD8, 0x000000C + +gUnk_08129DE4:: @ 08129DE4 + .incbin "baserom.gba", 0x129DE4, 0x000000C + +gUnk_08129DF0:: @ 08129DF0 + .incbin "baserom.gba", 0x129DF0, 0x000000C + +gUnk_08129DFC:: @ 08129DFC + .incbin "baserom.gba", 0x129DFC, 0x000000C + +gUnk_08129E08:: @ 08129E08 + .incbin "baserom.gba", 0x129E08, 0x000000C + +gUnk_08129E14:: @ 08129E14 + .incbin "baserom.gba", 0x129E14, 0x000000C + +gUnk_08129E20:: @ 08129E20 + .incbin "baserom.gba", 0x129E20, 0x000000C + +gUnk_08129E2C:: @ 08129E2C + .incbin "baserom.gba", 0x129E2C, 0x0000021 + +gUnk_08129E4D:: @ 08129E4D + .incbin "baserom.gba", 0x129E4D, 0x0000021 + +gUnk_08129E6E:: @ 08129E6E + .incbin "baserom.gba", 0x129E6E, 0x0000021 + +gUnk_08129E8F:: @ 08129E8F + .incbin "baserom.gba", 0x129E8F, 0x0000021 + +gUnk_08129EB0:: @ 08129EB0 + .incbin "baserom.gba", 0x129EB0, 0x0000021 + +gUnk_08129ED1:: @ 08129ED1 + .incbin "baserom.gba", 0x129ED1, 0x0000021 + +gUnk_08129EF2:: @ 08129EF2 + .incbin "baserom.gba", 0x129EF2, 0x0000021 + +gUnk_08129F13:: @ 08129F13 + .incbin "baserom.gba", 0x129F13, 0x0000021 + +gUnk_08129F34:: @ 08129F34 + .incbin "baserom.gba", 0x129F34, 0x0000084 + +gUnk_08129FB8:: @ 08129FB8 + .incbin "baserom.gba", 0x129FB8, 0x0000018 + +gUnk_08129FD0:: @ 08129FD0 + .incbin "baserom.gba", 0x129FD0, 0x0000014 + +gUnk_08129FE4:: @ 08129FE4 + .incbin "baserom.gba", 0x129FE4, 0x0000014 + +gUnk_08129FF8:: @ 08129FF8 + .incbin "baserom.gba", 0x129FF8, 0x000000C + +gUnk_0812A004:: @ 0812A004 + .incbin "baserom.gba", 0x12A004, 0x0000010 + +gUnk_0812A014:: @ 0812A014 + .incbin "baserom.gba", 0x12A014, 0x0000018 + +gUnk_0812A02C:: @ 0812A02C + .incbin "baserom.gba", 0x12A02C, 0x0000010 + +gUnk_0812A03C:: @ 0812A03C + .incbin "baserom.gba", 0x12A03C, 0x0000010 + +gUnk_0812A04C:: @ 0812A04C + .incbin "baserom.gba", 0x12A04C, 0x0000010 + +gUnk_0812A05C:: @ 0812A05C + .incbin "baserom.gba", 0x12A05C, 0x0000008 + +gUnk_0812A064:: @ 0812A064 + .incbin "baserom.gba", 0x12A064, 0x0000008 + +gUnk_0812A06C:: @ 0812A06C + .incbin "baserom.gba", 0x12A06C, 0x0000008 + +gUnk_0812A074:: @ 0812A074 + .incbin "baserom.gba", 0x12A074, 0x0000010 + +gUnk_0812A084:: @ 0812A084 + .incbin "baserom.gba", 0x12A084, 0x0000008 + +gUnk_0812A08C:: @ 0812A08C + .incbin "baserom.gba", 0x12A08C, 0x0000004 + +gUnk_0812A090:: @ 0812A090 + .incbin "baserom.gba", 0x12A090, 0x0000004 + +gUnk_0812A094:: @ 0812A094 + .incbin "baserom.gba", 0x12A094, 0x0000004 + +gUnk_0812A098:: @ 0812A098 + .incbin "baserom.gba", 0x12A098, 0x0000004 + +gUnk_0812A09C:: @ 0812A09C + .incbin "baserom.gba", 0x12A09C, 0x000000C + +gUnk_0812A0A8:: @ 0812A0A8 + .incbin "baserom.gba", 0x12A0A8, 0x000000C + +gUnk_0812A0B4:: @ 0812A0B4 + .incbin "baserom.gba", 0x12A0B4, 0x000000C + +gUnk_0812A0C0:: @ 0812A0C0 + .incbin "baserom.gba", 0x12A0C0, 0x000000C + +gUnk_0812A0CC:: @ 0812A0CC + .incbin "baserom.gba", 0x12A0CC, 0x0000048 + +gUnk_0812A114:: @ 0812A114 + .incbin "baserom.gba", 0x12A114, 0x0000048 + +gUnk_0812A15C:: @ 0812A15C + .incbin "baserom.gba", 0x12A15C, 0x0000048 + +gUnk_0812A1A4:: @ 0812A1A4 + .incbin "baserom.gba", 0x12A1A4, 0x0000048 + +gUnk_0812A1EC:: @ 0812A1EC + .incbin "baserom.gba", 0x12A1EC, 0x0000024 + +gUnk_0812A210:: @ 0812A210 + .incbin "baserom.gba", 0x12A210, 0x0000024 + +gUnk_0812A234:: @ 0812A234 + .incbin "baserom.gba", 0x12A234, 0x0000024 + +gUnk_0812A258:: @ 0812A258 + .incbin "baserom.gba", 0x12A258, 0x0000024 + +gUnk_0812A27C:: @ 0812A27C + .incbin "baserom.gba", 0x12A27C, 0x000003C + +gUnk_0812A2B8:: @ 0812A2B8 + .incbin "baserom.gba", 0x12A2B8, 0x000003C + +gUnk_0812A2F4:: @ 0812A2F4 + .incbin "baserom.gba", 0x12A2F4, 0x000003C + +gUnk_0812A330:: @ 0812A330 + .incbin "baserom.gba", 0x12A330, 0x000003C + +gUnk_0812A36C:: @ 0812A36C + .incbin "baserom.gba", 0x12A36C, 0x0000054 + +gUnk_0812A3C0:: @ 0812A3C0 + .incbin "baserom.gba", 0x12A3C0, 0x0000014 + +gUnk_0812A3D4:: @ 0812A3D4 + .incbin "baserom.gba", 0x12A3D4, 0x000000C + +gUnk_0812A3E0:: @ 0812A3E0 + .incbin "baserom.gba", 0x12A3E0, 0x0000014 + +gUnk_0812A3F4:: @ 0812A3F4 + .incbin "baserom.gba", 0x12A3F4, 0x0000008 + +gUnk_0812A3FC:: @ 0812A3FC + .incbin "baserom.gba", 0x12A3FC, 0x0000014 + +gUnk_0812A410:: @ 0812A410 + .incbin "baserom.gba", 0x12A410, 0x0000008 + +gUnk_0812A418:: @ 0812A418 + .incbin "baserom.gba", 0x12A418, 0x0000018 + +gUnk_0812A430:: @ 0812A430 + .incbin "baserom.gba", 0x12A430, 0x0000010 + +gUnk_0812A440:: @ 0812A440 + .incbin "baserom.gba", 0x12A440, 0x000000C + +gUnk_0812A44C:: @ 0812A44C + .incbin "baserom.gba", 0x12A44C, 0x0000021 + +gUnk_0812A46D:: @ 0812A46D + .incbin "baserom.gba", 0x12A46D, 0x000001B + +gUnk_0812A488:: @ 0812A488 + .incbin "baserom.gba", 0x12A488, 0x000000C + +gUnk_0812A494:: @ 0812A494 + .incbin "baserom.gba", 0x12A494, 0x0000014 + +gUnk_0812A4A8:: @ 0812A4A8 + .incbin "baserom.gba", 0x12A4A8, 0x0000020 + +gUnk_0812A4C8:: @ 0812A4C8 + .incbin "baserom.gba", 0x12A4C8, 0x0000014 + +gUnk_0812A4DC:: @ 0812A4DC + .incbin "baserom.gba", 0x12A4DC, 0x0000010 + +gUnk_0812A4EC:: @ 0812A4EC + .incbin "baserom.gba", 0x12A4EC, 0x00000A0 + +gUnk_0812A58C:: @ 0812A58C + .incbin "baserom.gba", 0x12A58C, 0x0000014 + +gUnk_0812A5A0:: @ 0812A5A0 + .incbin "baserom.gba", 0x12A5A0, 0x000000C + +gUnk_0812A5AC:: @ 0812A5AC + .incbin "baserom.gba", 0x12A5AC, 0x000000D + +gUnk_0812A5B9:: @ 0812A5B9 + .incbin "baserom.gba", 0x12A5B9, 0x000000D + +gUnk_0812A5C6:: @ 0812A5C6 + .incbin "baserom.gba", 0x12A5C6, 0x000000E + +gUnk_0812A5D4:: @ 0812A5D4 + .incbin "baserom.gba", 0x12A5D4, 0x0000014 + +gUnk_0812A5E8:: @ 0812A5E8 + .incbin "baserom.gba", 0x12A5E8, 0x000000C + +gUnk_0812A5F4:: @ 0812A5F4 + .incbin "baserom.gba", 0x12A5F4, 0x0000020 + +gUnk_0812A614:: @ 0812A614 + .incbin "baserom.gba", 0x12A614, 0x0000008 + +gUnk_0812A61C:: @ 0812A61C + .incbin "baserom.gba", 0x12A61C, 0x0000008 + +gUnk_0812A624:: @ 0812A624 + .incbin "baserom.gba", 0x12A624, 0x0000008 + +gUnk_0812A62C:: @ 0812A62C + .incbin "baserom.gba", 0x12A62C, 0x0000008 + +gUnk_0812A634:: @ 0812A634 + .incbin "baserom.gba", 0x12A634, 0x0000008 + +gUnk_0812A63C:: @ 0812A63C + .incbin "baserom.gba", 0x12A63C, 0x0000020 + +gUnk_0812A65C:: @ 0812A65C + .incbin "baserom.gba", 0x12A65C, 0x0000009 + +gUnk_0812A665:: @ 0812A665 + .incbin "baserom.gba", 0x12A665, 0x0000009 + +gUnk_0812A66E:: @ 0812A66E + .incbin "baserom.gba", 0x12A66E, 0x0000009 + +gUnk_0812A677:: @ 0812A677 + .incbin "baserom.gba", 0x12A677, 0x0000009 + +gUnk_0812A680:: @ 0812A680 + .incbin "baserom.gba", 0x12A680, 0x0000009 + +gUnk_0812A689:: @ 0812A689 + .incbin "baserom.gba", 0x12A689, 0x000000B + +gUnk_0812A694:: @ 0812A694 + .incbin "baserom.gba", 0x12A694, 0x0000020 + +gUnk_0812A6B4:: @ 0812A6B4 + .incbin "baserom.gba", 0x12A6B4, 0x0000008 + +gUnk_0812A6BC:: @ 0812A6BC + .incbin "baserom.gba", 0x12A6BC, 0x0000008 + +gUnk_0812A6C4:: @ 0812A6C4 + .incbin "baserom.gba", 0x12A6C4, 0x0000008 + +gUnk_0812A6CC:: @ 0812A6CC + .incbin "baserom.gba", 0x12A6CC, 0x0000008 + +gUnk_0812A6D4:: @ 0812A6D4 + .incbin "baserom.gba", 0x12A6D4, 0x000000E + +gUnk_0812A6E2:: @ 0812A6E2 + .incbin "baserom.gba", 0x12A6E2, 0x000000D + +gUnk_0812A6EF:: @ 0812A6EF + .incbin "baserom.gba", 0x12A6EF, 0x000000D + +gUnk_0812A6FC:: @ 0812A6FC + .incbin "baserom.gba", 0x12A6FC, 0x000000D + +gUnk_0812A709:: @ 0812A709 + .incbin "baserom.gba", 0x12A709, 0x000000D + +gUnk_0812A716:: @ 0812A716 + .incbin "baserom.gba", 0x12A716, 0x000000D + +gUnk_0812A723:: @ 0812A723 + .incbin "baserom.gba", 0x12A723, 0x000000D + +gUnk_0812A730:: @ 0812A730 + .incbin "baserom.gba", 0x12A730, 0x000000D + +gUnk_0812A73D:: @ 0812A73D + .incbin "baserom.gba", 0x12A73D, 0x000000D + +gUnk_0812A74A:: @ 0812A74A + .incbin "baserom.gba", 0x12A74A, 0x000000D + +gUnk_0812A757:: @ 0812A757 + .incbin "baserom.gba", 0x12A757, 0x000000D + +gUnk_0812A764:: @ 0812A764 + .incbin "baserom.gba", 0x12A764, 0x000000D + +gUnk_0812A771:: @ 0812A771 + .incbin "baserom.gba", 0x12A771, 0x000000D + +gUnk_0812A77E:: @ 0812A77E + .incbin "baserom.gba", 0x12A77E, 0x000000D + +gUnk_0812A78B:: @ 0812A78B + .incbin "baserom.gba", 0x12A78B, 0x000000D + +gUnk_0812A798:: @ 0812A798 + .incbin "baserom.gba", 0x12A798, 0x000003C + +gUnk_0812A7D4:: @ 0812A7D4 + .incbin "baserom.gba", 0x12A7D4, 0x0000018 + +gUnk_0812A7EC:: @ 0812A7EC + .incbin "baserom.gba", 0x12A7EC, 0x000000C + +gUnk_0812A7F8:: @ 0812A7F8 + .incbin "baserom.gba", 0x12A7F8, 0x0000008 + +gUnk_0812A800:: @ 0812A800 + .incbin "baserom.gba", 0x12A800, 0x0000008 + +gUnk_0812A808:: @ 0812A808 + .incbin "baserom.gba", 0x12A808, 0x000000C + +gUnk_0812A814:: @ 0812A814 + .incbin "baserom.gba", 0x12A814, 0x0000011 + +gUnk_0812A825:: @ 0812A825 + .incbin "baserom.gba", 0x12A825, 0x000001B + +gUnk_0812A840:: @ 0812A840 + .incbin "baserom.gba", 0x12A840, 0x000000C + +gUnk_0812A84C:: @ 0812A84C + .incbin "baserom.gba", 0x12A84C, 0x0000014 + +gUnk_0812A860:: @ 0812A860 + .incbin "baserom.gba", 0x12A860, 0x0000011 + +gUnk_0812A871:: @ 0812A871 + .incbin "baserom.gba", 0x12A871, 0x0000059 + +gUnk_0812A8CA:: @ 0812A8CA + .incbin "baserom.gba", 0x12A8CA, 0x0000061 + +gUnk_0812A92B:: @ 0812A92B + .incbin "baserom.gba", 0x12A92B, 0x0000015 + +gUnk_0812A940:: @ 0812A940 + .incbin "baserom.gba", 0x12A940, 0x0000014 + +gUnk_0812A954:: @ 0812A954 + .incbin "baserom.gba", 0x12A954, 0x0000014 + +gUnk_0812A968:: @ 0812A968 + .incbin "baserom.gba", 0x12A968, 0x0000014 + +gUnk_0812A97C:: @ 0812A97C + .incbin "baserom.gba", 0x12A97C, 0x0000006 + +gUnk_0812A982:: @ 0812A982 + .incbin "baserom.gba", 0x12A982, 0x0000008 + +gUnk_0812A98A:: @ 0812A98A + .incbin "baserom.gba", 0x12A98A, 0x000000A + +gUnk_0812A994:: @ 0812A994 + .incbin "baserom.gba", 0x12A994, 0x0000014 + +gUnk_0812A9A8:: @ 0812A9A8 + .incbin "baserom.gba", 0x12A9A8, 0x000000C + +gUnk_0812A9B4:: @ 0812A9B4 + .incbin "baserom.gba", 0x12A9B4, 0x0000004 + +gUnk_0812A9B8:: @ 0812A9B8 + .incbin "baserom.gba", 0x12A9B8, 0x0000002 + +gUnk_0812A9BA:: @ 0812A9BA + .incbin "baserom.gba", 0x12A9BA, 0x0000006 + +gUnk_0812A9C0:: @ 0812A9C0 + .incbin "baserom.gba", 0x12A9C0, 0x0000018 + +gUnk_0812A9D8:: @ 0812A9D8 + .incbin "baserom.gba", 0x12A9D8, 0x0000014 + +gUnk_0812A9EC:: @ 0812A9EC + .incbin "baserom.gba", 0x12A9EC, 0x0000010 + +gUnk_0812A9FC:: @ 0812A9FC + .incbin "baserom.gba", 0x12A9FC, 0x0000035 + +gUnk_0812AA31:: @ 0812AA31 + .incbin "baserom.gba", 0x12AA31, 0x000001F + +gUnk_0812AA50:: @ 0812AA50 + .incbin "baserom.gba", 0x12AA50, 0x000000C + +gUnk_0812AA5C:: @ 0812AA5C + .incbin "baserom.gba", 0x12AA5C, 0x0000018 + +gUnk_0812AA74:: @ 0812AA74 + .incbin "baserom.gba", 0x12AA74, 0x000000C + +gUnk_0812AA80:: @ 0812AA80 + .incbin "baserom.gba", 0x12AA80, 0x0000008 + +gUnk_0812AA88:: @ 0812AA88 + .incbin "baserom.gba", 0x12AA88, 0x0000009 + +gUnk_0812AA91:: @ 0812AA91 + .incbin "baserom.gba", 0x12AA91, 0x0000009 + +gUnk_0812AA9A:: @ 0812AA9A + .incbin "baserom.gba", 0x12AA9A, 0x0000012 + +gUnk_0812AAAC:: @ 0812AAAC + .incbin "baserom.gba", 0x12AAAC, 0x0000010 + +gUnk_0812AABC:: @ 0812AABC + .incbin "baserom.gba", 0x12AABC, 0x0000004 + +gUnk_0812AAC0:: @ 0812AAC0 + .incbin "baserom.gba", 0x12AAC0, 0x0000008 + +gUnk_0812AAC8:: @ 0812AAC8 + .incbin "baserom.gba", 0x12AAC8, 0x0000008 + +gUnk_0812AAD0:: @ 0812AAD0 + .incbin "baserom.gba", 0x12AAD0, 0x0000008 + +gUnk_0812AAD8:: @ 0812AAD8 + .incbin "baserom.gba", 0x12AAD8, 0x0000010 + +gUnk_0812AAE8:: @ 0812AAE8 + .incbin "baserom.gba", 0x12AAE8, 0x000019C + +gUnk_0812AC84:: @ 0812AC84 + .incbin "baserom.gba", 0x12AC84, 0x0000004 + +gUnk_0812AC88:: @ 0812AC88 + .incbin "baserom.gba", 0x12AC88, 0x000000C + +gUnk_0812AC94:: @ 0812AC94 + .incbin "baserom.gba", 0x12AC94, 0x0000010 + +gUnk_0812ACA4:: @ 0812ACA4 + .incbin "baserom.gba", 0x12ACA4, 0x000000C + +gUnk_0812ACB0:: @ 0812ACB0 + .incbin "baserom.gba", 0x12ACB0, 0x0000010 + +gUnk_0812ACC0:: @ 0812ACC0 + .incbin "baserom.gba", 0x12ACC0, 0x000000C + +gUnk_0812ACCC:: @ 0812ACCC + .incbin "baserom.gba", 0x12ACCC, 0x000000C + +gUnk_0812ACD8:: @ 0812ACD8 + .incbin "baserom.gba", 0x12ACD8, 0x000000C + +gUnk_0812ACE4:: @ 0812ACE4 + .incbin "baserom.gba", 0x12ACE4, 0x000000C + +gUnk_0812ACF0:: @ 0812ACF0 + .incbin "baserom.gba", 0x12ACF0, 0x0000010 + +gUnk_0812AD00:: @ 0812AD00 + .incbin "baserom.gba", 0x12AD00, 0x000000C + +gUnk_0812AD0C:: @ 0812AD0C + .incbin "baserom.gba", 0x12AD0C, 0x0000014 + +gUnk_0812AD20:: @ 0812AD20 + .incbin "baserom.gba", 0x12AD20, 0x0000010 + +gUnk_0812AD30:: @ 0812AD30 + .incbin "baserom.gba", 0x12AD30, 0x0000010 + +gUnk_0812AD40:: @ 0812AD40 + .incbin "baserom.gba", 0x12AD40, 0x0000014 + +gUnk_0812AD54:: @ 0812AD54 + .incbin "baserom.gba", 0x12AD54, 0x0000010 + +gUnk_0812AD64:: @ 0812AD64 + .incbin "baserom.gba", 0x12AD64, 0x000000C + +gUnk_0812AD70:: @ 0812AD70 + .incbin "baserom.gba", 0x12AD70, 0x000000C + +gUnk_0812AD7C:: @ 0812AD7C + .incbin "baserom.gba", 0x12AD7C, 0x0000010 + +gUnk_0812AD8C:: @ 0812AD8C + .incbin "baserom.gba", 0x12AD8C, 0x000000C + +gUnk_0812AD98:: @ 0812AD98 + .incbin "baserom.gba", 0x12AD98, 0x0000008 + +gUnk_0812ADA0:: @ 0812ADA0 + .incbin "baserom.gba", 0x12ADA0, 0x0000010 + +gUnk_0812ADB0:: @ 0812ADB0 + .incbin "baserom.gba", 0x12ADB0, 0x000000C + +gUnk_0812ADBC:: @ 0812ADBC + .incbin "baserom.gba", 0x12ADBC, 0x0000010 + +gUnk_0812ADCC:: @ 0812ADCC + .incbin "baserom.gba", 0x12ADCC, 0x0000010 + +gUnk_0812ADDC:: @ 0812ADDC + .incbin "baserom.gba", 0x12ADDC, 0x0000010 + +gUnk_0812ADEC:: @ 0812ADEC + .incbin "baserom.gba", 0x12ADEC, 0x0000010 + +gUnk_0812ADFC:: @ 0812ADFC + .incbin "baserom.gba", 0x12ADFC, 0x0000010 + +gUnk_0812AE0C:: @ 0812AE0C + .incbin "baserom.gba", 0x12AE0C, 0x0000008 + +gUnk_0812AE14:: @ 0812AE14 + .incbin "baserom.gba", 0x12AE14, 0x0000010 + +gUnk_0812AE24:: @ 0812AE24 + .incbin "baserom.gba", 0x12AE24, 0x0000014 + +gUnk_0812AE38:: @ 0812AE38 + .incbin "baserom.gba", 0x12AE38, 0x0000010 + +gUnk_0812AE48:: @ 0812AE48 + .incbin "baserom.gba", 0x12AE48, 0x0000014 + +gUnk_0812AE5C:: @ 0812AE5C + .incbin "baserom.gba", 0x12AE5C, 0x0000002 + +gUnk_0812AE5E:: @ 0812AE5E + .incbin "baserom.gba", 0x12AE5E, 0x000000E + +gUnk_0812AE6C:: @ 0812AE6C + .incbin "baserom.gba", 0x12AE6C, 0x0000010 + +gUnk_0812AE7C:: @ 0812AE7C + .incbin "baserom.gba", 0x12AE7C, 0x0000010 + +gUnk_0812AE8C:: @ 0812AE8C + .incbin "baserom.gba", 0x12AE8C, 0x0000014 + +gUnk_0812AEA0:: @ 0812AEA0 + .incbin "baserom.gba", 0x12AEA0, 0x0000014 + +gUnk_0812AEB4:: @ 0812AEB4 + .incbin "baserom.gba", 0x12AEB4, 0x0000014 + +gUnk_0812AEC8:: @ 0812AEC8 + .incbin "baserom.gba", 0x12AEC8, 0x0000014 + +gUnk_0812AEDC:: @ 0812AEDC + .incbin "baserom.gba", 0x12AEDC, 0x0000008 + +gUnk_0812AEE4:: @ 0812AEE4 + .incbin "baserom.gba", 0x12AEE4, 0x0000008 + +gUnk_0812AEEC:: @ 0812AEEC + .incbin "baserom.gba", 0x12AEEC, 0x0000008 + +gUnk_0812AEF4:: @ 0812AEF4 + .incbin "baserom.gba", 0x12AEF4, 0x0000010 + +gUnk_0812AF04:: @ 0812AF04 + .incbin "baserom.gba", 0x12AF04, 0x000000C + +gUnk_0812AF10:: @ 0812AF10 + .incbin "baserom.gba", 0x12AF10, 0x000000C + +gUnk_0812AF1C:: @ 0812AF1C + .incbin "baserom.gba", 0x12AF1C, 0x000000C + +gUnk_0812AF28:: @ 0812AF28 + .incbin "baserom.gba", 0x12AF28, 0x000000C + +gUnk_0812AF34:: @ 0812AF34 + .incbin "baserom.gba", 0x12AF34, 0x000000C + +gUnk_0812AF40:: @ 0812AF40 + .incbin "baserom.gba", 0x12AF40, 0x000000C + +gUnk_0812AF4C:: @ 0812AF4C + .incbin "baserom.gba", 0x12AF4C, 0x000000C + +gUnk_0812AF58:: @ 0812AF58 + .incbin "baserom.gba", 0x12AF58, 0x000000C + +gUnk_0812AF64:: @ 0812AF64 + .incbin "baserom.gba", 0x12AF64, 0x000000C + +gUnk_0812AF70:: @ 0812AF70 + .incbin "baserom.gba", 0x12AF70, 0x0000014 + +gUnk_0812AF84:: @ 0812AF84 + .incbin "baserom.gba", 0x12AF84, 0x0000010 + +gUnk_0812AF94:: @ 0812AF94 + .incbin "baserom.gba", 0x12AF94, 0x0000010 + +gUnk_0812AFA4:: @ 0812AFA4 + .incbin "baserom.gba", 0x12AFA4, 0x0000014 + +gUnk_0812AFB8:: @ 0812AFB8 + .incbin "baserom.gba", 0x12AFB8, 0x0000014 + +gUnk_0812AFCC:: @ 0812AFCC + .incbin "baserom.gba", 0x12AFCC, 0x0000014 + +gUnk_0812AFE0:: @ 0812AFE0 + .incbin "baserom.gba", 0x12AFE0, 0x0000014 + +gUnk_0812AFF4:: @ 0812AFF4 + .incbin "baserom.gba", 0x12AFF4, 0x0000010 + +gUnk_0812B004:: @ 0812B004 + .incbin "baserom.gba", 0x12B004, 0x000000C + +gUnk_0812B010:: @ 0812B010 + .incbin "baserom.gba", 0x12B010, 0x0000008 + +gUnk_0812B018:: @ 0812B018 + .incbin "baserom.gba", 0x12B018, 0x0000010 + +gUnk_0812B028:: @ 0812B028 + .incbin "baserom.gba", 0x12B028, 0x000000C + +gUnk_0812B034:: @ 0812B034 + .incbin "baserom.gba", 0x12B034, 0x0000010 + +gUnk_0812B044:: @ 0812B044 + .incbin "baserom.gba", 0x12B044, 0x000000C + +gUnk_0812B050:: @ 0812B050 + .incbin "baserom.gba", 0x12B050, 0x000000C + +gUnk_0812B05C:: @ 0812B05C + .incbin "baserom.gba", 0x12B05C, 0x0000010 + +gUnk_0812B06C:: @ 0812B06C + .incbin "baserom.gba", 0x12B06C, 0x0000010 + +gUnk_0812B07C:: @ 0812B07C + .incbin "baserom.gba", 0x12B07C, 0x0000010 + +gUnk_0812B08C:: @ 0812B08C + .incbin "baserom.gba", 0x12B08C, 0x000000C + +gUnk_0812B098:: @ 0812B098 + .incbin "baserom.gba", 0x12B098, 0x0000008 + +gUnk_0812B0A0:: @ 0812B0A0 + .incbin "baserom.gba", 0x12B0A0, 0x000000C + +gUnk_0812B0AC:: @ 0812B0AC + .incbin "baserom.gba", 0x12B0AC, 0x0000010 + +gUnk_0812B0BC:: @ 0812B0BC + .incbin "baserom.gba", 0x12B0BC, 0x0000010 + +gUnk_0812B0CC:: @ 0812B0CC + .incbin "baserom.gba", 0x12B0CC, 0x0000010 + +gUnk_0812B0DC:: @ 0812B0DC + .incbin "baserom.gba", 0x12B0DC, 0x0000010 + +gUnk_0812B0EC:: @ 0812B0EC + .incbin "baserom.gba", 0x12B0EC, 0x0000010 + +gUnk_0812B0FC:: @ 0812B0FC + .incbin "baserom.gba", 0x12B0FC, 0x0000008 + +gUnk_0812B104:: @ 0812B104 + .incbin "baserom.gba", 0x12B104, 0x000000C + +gUnk_0812B110:: @ 0812B110 + .incbin "baserom.gba", 0x12B110, 0x000000C + +gUnk_0812B11C:: @ 0812B11C + .incbin "baserom.gba", 0x12B11C, 0x0000008 + +gUnk_0812B124:: @ 0812B124 + .incbin "baserom.gba", 0x12B124, 0x0000014 + +gUnk_0812B138:: @ 0812B138 + .incbin "baserom.gba", 0x12B138, 0x000000C + +gUnk_0812B144:: @ 0812B144 + .incbin "baserom.gba", 0x12B144, 0x000000C + +gUnk_0812B150:: @ 0812B150 + .incbin "baserom.gba", 0x12B150, 0x000000C + +gUnk_0812B15C:: @ 0812B15C + .incbin "baserom.gba", 0x12B15C, 0x000000C + +gUnk_0812B168:: @ 0812B168 + .incbin "baserom.gba", 0x12B168, 0x000000C + +gUnk_0812B174:: @ 0812B174 + .incbin "baserom.gba", 0x12B174, 0x000000C + +gUnk_0812B180:: @ 0812B180 + .incbin "baserom.gba", 0x12B180, 0x000000C + +gUnk_0812B18C:: @ 0812B18C + .incbin "baserom.gba", 0x12B18C, 0x000000C + +gUnk_0812B198:: @ 0812B198 + .incbin "baserom.gba", 0x12B198, 0x000000C + +gUnk_0812B1A4:: @ 0812B1A4 + .incbin "baserom.gba", 0x12B1A4, 0x000000C + +gUnk_0812B1B0:: @ 0812B1B0 + .incbin "baserom.gba", 0x12B1B0, 0x000000C + +gUnk_0812B1BC:: @ 0812B1BC + .incbin "baserom.gba", 0x12B1BC, 0x000000C + +gUnk_0812B1C8:: @ 0812B1C8 + .incbin "baserom.gba", 0x12B1C8, 0x000000C + +gUnk_0812B1D4:: @ 0812B1D4 + .incbin "baserom.gba", 0x12B1D4, 0x000000C + +gUnk_0812B1E0:: @ 0812B1E0 + .incbin "baserom.gba", 0x12B1E0, 0x000000C + +gUnk_0812B1EC:: @ 0812B1EC + .incbin "baserom.gba", 0x12B1EC, 0x000000C + +gUnk_0812B1F8:: @ 0812B1F8 + .incbin "baserom.gba", 0x12B1F8, 0x000000C + +gUnk_0812B204:: @ 0812B204 + .incbin "baserom.gba", 0x12B204, 0x0000400 + +gUnk_0812B604:: @ 0812B604 + .incbin "baserom.gba", 0x12B604, 0x0000008 + +gUnk_0812B60C:: @ 0812B60C + .incbin "baserom.gba", 0x12B60C, 0x0000008 + +gUnk_0812B614:: @ 0812B614 + .incbin "baserom.gba", 0x12B614, 0x0000008 + +gUnk_0812B61C:: @ 0812B61C + .incbin "baserom.gba", 0x12B61C, 0x0000008 + +gUnk_0812B624:: @ 0812B624 + .incbin "baserom.gba", 0x12B624, 0x0000014 + +gUnk_0812B638:: @ 0812B638 + .incbin "baserom.gba", 0x12B638, 0x0000014 + +gUnk_0812B64C:: @ 0812B64C + .incbin "baserom.gba", 0x12B64C, 0x0000010 + +gUnk_0812B65C:: @ 0812B65C + .incbin "baserom.gba", 0x12B65C, 0x0000010 + +gUnk_0812B66C:: @ 0812B66C + .incbin "baserom.gba", 0x12B66C, 0x0000010 + +gUnk_0812B67C:: @ 0812B67C + .incbin "baserom.gba", 0x12B67C, 0x0000010 + +gUnk_0812B68C:: @ 0812B68C + .incbin "baserom.gba", 0x12B68C, 0x0000014 + +gUnk_0812B6A0:: @ 0812B6A0 + .incbin "baserom.gba", 0x12B6A0, 0x0000014 + +gUnk_0812B6B4:: @ 0812B6B4 + .incbin "baserom.gba", 0x12B6B4, 0x0000014 + +gUnk_0812B6C8:: @ 0812B6C8 + .incbin "baserom.gba", 0x12B6C8, 0x0000014 + +gUnk_0812B6DC:: @ 0812B6DC + .incbin "baserom.gba", 0x12B6DC, 0x0000014 + +gUnk_0812B6F0:: @ 0812B6F0 + .incbin "baserom.gba", 0x12B6F0, 0x0000010 + +gUnk_0812B700:: @ 0812B700 + .incbin "baserom.gba", 0x12B700, 0x0000014 + +gUnk_0812B714:: @ 0812B714 + .incbin "baserom.gba", 0x12B714, 0x0000010 + +gUnk_0812B724:: @ 0812B724 + .incbin "baserom.gba", 0x12B724, 0x0000010 + +gUnk_0812B734:: @ 0812B734 + .incbin "baserom.gba", 0x12B734, 0x0000010 + +gUnk_0812B744:: @ 0812B744 + .incbin "baserom.gba", 0x12B744, 0x0000010 + +gUnk_0812B754:: @ 0812B754 + .incbin "baserom.gba", 0x12B754, 0x0000010 + +gUnk_0812B764:: @ 0812B764 + .incbin "baserom.gba", 0x12B764, 0x0000010 + +gUnk_0812B774:: @ 0812B774 + .incbin "baserom.gba", 0x12B774, 0x0000010 + +gUnk_0812B784:: @ 0812B784 + .incbin "baserom.gba", 0x12B784, 0x0000010 + +gUnk_0812B794:: @ 0812B794 + .incbin "baserom.gba", 0x12B794, 0x0000010 + +gUnk_0812B7A4:: @ 0812B7A4 + .incbin "baserom.gba", 0x12B7A4, 0x0000010 + +gUnk_0812B7B4:: @ 0812B7B4 + .incbin "baserom.gba", 0x12B7B4, 0x0000010 + +gUnk_0812B7C4:: @ 0812B7C4 + .incbin "baserom.gba", 0x12B7C4, 0x0000010 + +gUnk_0812B7D4:: @ 0812B7D4 + .incbin "baserom.gba", 0x12B7D4, 0x0000010 + +gUnk_0812B7E4:: @ 0812B7E4 + .incbin "baserom.gba", 0x12B7E4, 0x0000010 + +gUnk_0812B7F4:: @ 0812B7F4 + .incbin "baserom.gba", 0x12B7F4, 0x0000010 + +gUnk_0812B804:: @ 0812B804 + .incbin "baserom.gba", 0x12B804, 0x0000010 + +gUnk_0812B814:: @ 0812B814 + .incbin "baserom.gba", 0x12B814, 0x000000C + +gUnk_0812B820:: @ 0812B820 + .incbin "baserom.gba", 0x12B820, 0x0000010 + +gUnk_0812B830:: @ 0812B830 + .incbin "baserom.gba", 0x12B830, 0x0000010 + +gUnk_0812B840:: @ 0812B840 + .incbin "baserom.gba", 0x12B840, 0x0000010 + +gUnk_0812B850:: @ 0812B850 + .incbin "baserom.gba", 0x12B850, 0x0000010 + +gUnk_0812B860:: @ 0812B860 + .incbin "baserom.gba", 0x12B860, 0x0000010 + +gUnk_0812B870:: @ 0812B870 + .incbin "baserom.gba", 0x12B870, 0x0000010 + +gUnk_0812B880:: @ 0812B880 + .incbin "baserom.gba", 0x12B880, 0x0000010 + +gUnk_0812B890:: @ 0812B890 + .incbin "baserom.gba", 0x12B890, 0x0000010 + +gUnk_0812B8A0:: @ 0812B8A0 + .incbin "baserom.gba", 0x12B8A0, 0x0000010 + +gUnk_0812B8B0:: @ 0812B8B0 + .incbin "baserom.gba", 0x12B8B0, 0x000000C + +gUnk_0812B8BC:: @ 0812B8BC + .incbin "baserom.gba", 0x12B8BC, 0x0000010 + +gUnk_0812B8CC:: @ 0812B8CC + .incbin "baserom.gba", 0x12B8CC, 0x0000010 + +gUnk_0812B8DC:: @ 0812B8DC + .incbin "baserom.gba", 0x12B8DC, 0x0000010 + +gUnk_0812B8EC:: @ 0812B8EC + .incbin "baserom.gba", 0x12B8EC, 0x0000010 + +gUnk_0812B8FC:: @ 0812B8FC + .incbin "baserom.gba", 0x12B8FC, 0x0000010 + +gUnk_0812B90C:: @ 0812B90C + .incbin "baserom.gba", 0x12B90C, 0x0000010 + +gUnk_0812B91C:: @ 0812B91C + .incbin "baserom.gba", 0x12B91C, 0x000000C + +gUnk_0812B928:: @ 0812B928 + .incbin "baserom.gba", 0x12B928, 0x000000C + +gUnk_0812B934:: @ 0812B934 + .incbin "baserom.gba", 0x12B934, 0x000000C + +gUnk_0812B940:: @ 0812B940 + .incbin "baserom.gba", 0x12B940, 0x0000018 + +gUnk_0812B958:: @ 0812B958 + .incbin "baserom.gba", 0x12B958, 0x0000010 + +gUnk_0812B968:: @ 0812B968 + .incbin "baserom.gba", 0x12B968, 0x0000010 + +gUnk_0812B978:: @ 0812B978 + .incbin "baserom.gba", 0x12B978, 0x0000010 + +gUnk_0812B988:: @ 0812B988 + .incbin "baserom.gba", 0x12B988, 0x0000010 + +gUnk_0812B998:: @ 0812B998 + .incbin "baserom.gba", 0x12B998, 0x0000010 + +gUnk_0812B9A8:: @ 0812B9A8 + .incbin "baserom.gba", 0x12B9A8, 0x0000010 + +gUnk_0812B9B8:: @ 0812B9B8 + .incbin "baserom.gba", 0x12B9B8, 0x0000010 + +gUnk_0812B9C8:: @ 0812B9C8 + .incbin "baserom.gba", 0x12B9C8, 0x0000010 + +gUnk_0812B9D8:: @ 0812B9D8 + .incbin "baserom.gba", 0x12B9D8, 0x0000010 + +gUnk_0812B9E8:: @ 0812B9E8 + .incbin "baserom.gba", 0x12B9E8, 0x0000010 + +gUnk_0812B9F8:: @ 0812B9F8 + .incbin "baserom.gba", 0x12B9F8, 0x0000010 + +gUnk_0812BA08:: @ 0812BA08 + .incbin "baserom.gba", 0x12BA08, 0x0000010 + +gUnk_0812BA18:: @ 0812BA18 + .incbin "baserom.gba", 0x12BA18, 0x0000010 + +gUnk_0812BA28:: @ 0812BA28 + .incbin "baserom.gba", 0x12BA28, 0x0000010 + +gUnk_0812BA38:: @ 0812BA38 + .incbin "baserom.gba", 0x12BA38, 0x0000010 + +gUnk_0812BA48:: @ 0812BA48 + .incbin "baserom.gba", 0x12BA48, 0x0000010 + +gUnk_0812BA58:: @ 0812BA58 + .incbin "baserom.gba", 0x12BA58, 0x0000010 + +gUnk_0812BA68:: @ 0812BA68 + .incbin "baserom.gba", 0x12BA68, 0x0000010 + +gUnk_0812BA78:: @ 0812BA78 + .incbin "baserom.gba", 0x12BA78, 0x0000010 + +gUnk_0812BA88:: @ 0812BA88 + .incbin "baserom.gba", 0x12BA88, 0x0000003 + +gUnk_0812BA8B:: @ 0812BA8B + .incbin "baserom.gba", 0x12BA8B, 0x0000009 + +gUnk_0812BA94:: @ 0812BA94 + .incbin "baserom.gba", 0x12BA94, 0x000000C + +gUnk_0812BAA0:: @ 0812BAA0 + .incbin "baserom.gba", 0x12BAA0, 0x000000C + +gUnk_0812BAAC:: @ 0812BAAC + .incbin "baserom.gba", 0x12BAAC, 0x000000C + +gUnk_0812BAB8:: @ 0812BAB8 + .incbin "baserom.gba", 0x12BAB8, 0x000000C + +gUnk_0812BAC4:: @ 0812BAC4 + .incbin "baserom.gba", 0x12BAC4, 0x0000010 + +gUnk_0812BAD4:: @ 0812BAD4 + .incbin "baserom.gba", 0x12BAD4, 0x0000010 + +gUnk_0812BAE4:: @ 0812BAE4 + .incbin "baserom.gba", 0x12BAE4, 0x0000018 + +gUnk_0812BAFC:: @ 0812BAFC + .incbin "baserom.gba", 0x12BAFC, 0x0000010 + +gUnk_0812BB0C:: @ 0812BB0C + .incbin "baserom.gba", 0x12BB0C, 0x0000010 + +gUnk_0812BB1C:: @ 0812BB1C + .incbin "baserom.gba", 0x12BB1C, 0x0000010 + +gUnk_0812BB2C:: @ 0812BB2C + .incbin "baserom.gba", 0x12BB2C, 0x0000010 + +gUnk_0812BB3C:: @ 0812BB3C + .incbin "baserom.gba", 0x12BB3C, 0x0000010 + +gUnk_0812BB4C:: @ 0812BB4C + .incbin "baserom.gba", 0x12BB4C, 0x0000010 + +gUnk_0812BB5C:: @ 0812BB5C + .incbin "baserom.gba", 0x12BB5C, 0x0000010 + +gUnk_0812BB6C:: @ 0812BB6C + .incbin "baserom.gba", 0x12BB6C, 0x0000010 + +gUnk_0812BB7C:: @ 0812BB7C + .incbin "baserom.gba", 0x12BB7C, 0x0000010 + +gUnk_0812BB8C:: @ 0812BB8C + .incbin "baserom.gba", 0x12BB8C, 0x0000010 + +gUnk_0812BB9C:: @ 0812BB9C + .incbin "baserom.gba", 0x12BB9C, 0x0000010 + +gUnk_0812BBAC:: @ 0812BBAC + .incbin "baserom.gba", 0x12BBAC, 0x0000014 + +gUnk_0812BBC0:: @ 0812BBC0 + .incbin "baserom.gba", 0x12BBC0, 0x0000014 + +gUnk_0812BBD4:: @ 0812BBD4 + .incbin "baserom.gba", 0x12BBD4, 0x0000010 + +gUnk_0812BBE4:: @ 0812BBE4 + .incbin "baserom.gba", 0x12BBE4, 0x0000010 + +gUnk_0812BBF4:: @ 0812BBF4 + .incbin "baserom.gba", 0x12BBF4, 0x0000014 + +gUnk_0812BC08:: @ 0812BC08 + .incbin "baserom.gba", 0x12BC08, 0x0000010 + +gUnk_0812BC18:: @ 0812BC18 + .incbin "baserom.gba", 0x12BC18, 0x0000010 + +gUnk_0812BC28:: @ 0812BC28 + .incbin "baserom.gba", 0x12BC28, 0x000000A + +gUnk_0812BC32:: @ 0812BC32 + .incbin "baserom.gba", 0x12BC32, 0x0000006 + +gUnk_0812BC38:: @ 0812BC38 + .incbin "baserom.gba", 0x12BC38, 0x0000010 + +gUnk_0812BC48:: @ 0812BC48 + .incbin "baserom.gba", 0x12BC48, 0x0000010 + +gUnk_0812BC58:: @ 0812BC58 + .incbin "baserom.gba", 0x12BC58, 0x0000010 + +gUnk_0812BC68:: @ 0812BC68 + .incbin "baserom.gba", 0x12BC68, 0x0000010 + +gUnk_0812BC78:: @ 0812BC78 + .incbin "baserom.gba", 0x12BC78, 0x0000010 + +gUnk_0812BC88:: @ 0812BC88 + .incbin "baserom.gba", 0x12BC88, 0x0000010 + +gUnk_0812BC98:: @ 0812BC98 + .incbin "baserom.gba", 0x12BC98, 0x0000010 + +gUnk_0812BCA8:: @ 0812BCA8 + .incbin "baserom.gba", 0x12BCA8, 0x0000010 + +gUnk_0812BCB8:: @ 0812BCB8 + .incbin "baserom.gba", 0x12BCB8, 0x0000010 + +gUnk_0812BCC8:: @ 0812BCC8 + .incbin "baserom.gba", 0x12BCC8, 0x0000010 + +gUnk_0812BCD8:: @ 0812BCD8 + .incbin "baserom.gba", 0x12BCD8, 0x0000010 + +gUnk_0812BCE8:: @ 0812BCE8 + .incbin "baserom.gba", 0x12BCE8, 0x0000010 + +gUnk_0812BCF8:: @ 0812BCF8 + .incbin "baserom.gba", 0x12BCF8, 0x0000014 + +gUnk_0812BD0C:: @ 0812BD0C + .incbin "baserom.gba", 0x12BD0C, 0x0000014 + +gUnk_0812BD20:: @ 0812BD20 + .incbin "baserom.gba", 0x12BD20, 0x0000010 + +gUnk_0812BD30:: @ 0812BD30 + .incbin "baserom.gba", 0x12BD30, 0x0000014 + +gUnk_0812BD44:: @ 0812BD44 + .incbin "baserom.gba", 0x12BD44, 0x0000014 + +gUnk_0812BD58:: @ 0812BD58 + .incbin "baserom.gba", 0x12BD58, 0x0000014 + +gUnk_0812BD6C:: @ 0812BD6C + .incbin "baserom.gba", 0x12BD6C, 0x0000014 + +gUnk_0812BD80:: @ 0812BD80 + .incbin "baserom.gba", 0x12BD80, 0x0000014 + +gUnk_0812BD94:: @ 0812BD94 + .incbin "baserom.gba", 0x12BD94, 0x0000014 + +gUnk_0812BDA8:: @ 0812BDA8 + .incbin "baserom.gba", 0x12BDA8, 0x0000014 + +gUnk_0812BDBC:: @ 0812BDBC + .incbin "baserom.gba", 0x12BDBC, 0x0000014 + +gUnk_0812BDD0:: @ 0812BDD0 + .incbin "baserom.gba", 0x12BDD0, 0x0000014 + +gUnk_0812BDE4:: @ 0812BDE4 + .incbin "baserom.gba", 0x12BDE4, 0x0000010 + +gUnk_0812BDF4:: @ 0812BDF4 + .incbin "baserom.gba", 0x12BDF4, 0x0000010 + +gUnk_0812BE04:: @ 0812BE04 + .incbin "baserom.gba", 0x12BE04, 0x0000010 + +gUnk_0812BE14:: @ 0812BE14 + .incbin "baserom.gba", 0x12BE14, 0x0000010 + +gUnk_0812BE24:: @ 0812BE24 + .incbin "baserom.gba", 0x12BE24, 0x0000010 + +gUnk_0812BE34:: @ 0812BE34 + .incbin "baserom.gba", 0x12BE34, 0x0000010 + +gUnk_0812BE44:: @ 0812BE44 + .incbin "baserom.gba", 0x12BE44, 0x0000010 + +gUnk_0812BE54:: @ 0812BE54 + .incbin "baserom.gba", 0x12BE54, 0x0000014 + +gUnk_0812BE68:: @ 0812BE68 + .incbin "baserom.gba", 0x12BE68, 0x0000014 + +gUnk_0812BE7C:: @ 0812BE7C + .incbin "baserom.gba", 0x12BE7C, 0x0000014 + +gUnk_0812BE90:: @ 0812BE90 + .incbin "baserom.gba", 0x12BE90, 0x0000014 + +gUnk_0812BEA4:: @ 0812BEA4 + .incbin "baserom.gba", 0x12BEA4, 0x0000014 + +gUnk_0812BEB8:: @ 0812BEB8 + .incbin "baserom.gba", 0x12BEB8, 0x0000014 + +gUnk_0812BECC:: @ 0812BECC + .incbin "baserom.gba", 0x12BECC, 0x0000014 + +gUnk_0812BEE0:: @ 0812BEE0 + .incbin "baserom.gba", 0x12BEE0, 0x0000014 + +gUnk_0812BEF4:: @ 0812BEF4 + .incbin "baserom.gba", 0x12BEF4, 0x0000014 + +gUnk_0812BF08:: @ 0812BF08 + .incbin "baserom.gba", 0x12BF08, 0x0000014 + +gUnk_0812BF1C:: @ 0812BF1C + .incbin "baserom.gba", 0x12BF1C, 0x0000014 + +gUnk_0812BF30:: @ 0812BF30 + .incbin "baserom.gba", 0x12BF30, 0x0000014 + +gUnk_0812BF44:: @ 0812BF44 + .incbin "baserom.gba", 0x12BF44, 0x0000010 + +gUnk_0812BF54:: @ 0812BF54 + .incbin "baserom.gba", 0x12BF54, 0x0000010 + +gUnk_0812BF64:: @ 0812BF64 + .incbin "baserom.gba", 0x12BF64, 0x0000010 + +gUnk_0812BF74:: @ 0812BF74 + .incbin "baserom.gba", 0x12BF74, 0x0000014 + +gUnk_0812BF88:: @ 0812BF88 + .incbin "baserom.gba", 0x12BF88, 0x0000014 + +gUnk_0812BF9C:: @ 0812BF9C + .incbin "baserom.gba", 0x12BF9C, 0x0000014 + +gUnk_0812BFB0:: @ 0812BFB0 + .incbin "baserom.gba", 0x12BFB0, 0x0000014 + +gUnk_0812BFC4:: @ 0812BFC4 + .incbin "baserom.gba", 0x12BFC4, 0x0000014 + +gUnk_0812BFD8:: @ 0812BFD8 + .incbin "baserom.gba", 0x12BFD8, 0x0000014 + +gUnk_0812BFEC:: @ 0812BFEC + .incbin "baserom.gba", 0x12BFEC, 0x0000014 + +gUnk_0812C000:: @ 0812C000 + .incbin "baserom.gba", 0x12C000, 0x0000014 + +gUnk_0812C014:: @ 0812C014 + .incbin "baserom.gba", 0x12C014, 0x0000014 + +gUnk_0812C028:: @ 0812C028 + .incbin "baserom.gba", 0x12C028, 0x0000014 + +gUnk_0812C03C:: @ 0812C03C + .incbin "baserom.gba", 0x12C03C, 0x0000014 + +gUnk_0812C050:: @ 0812C050 + .incbin "baserom.gba", 0x12C050, 0x0000014 + +gUnk_0812C064:: @ 0812C064 + .incbin "baserom.gba", 0x12C064, 0x0000014 + +gUnk_0812C078:: @ 0812C078 + .incbin "baserom.gba", 0x12C078, 0x0000010 + +gUnk_0812C088:: @ 0812C088 + .incbin "baserom.gba", 0x12C088, 0x000000C + +gUnk_0812C094:: @ 0812C094 + .incbin "baserom.gba", 0x12C094, 0x0000010 + +gUnk_0812C0A4:: @ 0812C0A4 + .incbin "baserom.gba", 0x12C0A4, 0x0000010 + +gUnk_0812C0B4:: @ 0812C0B4 + .incbin "baserom.gba", 0x12C0B4, 0x0000010 + +gUnk_0812C0C4:: @ 0812C0C4 + .incbin "baserom.gba", 0x12C0C4, 0x0000010 + +gUnk_0812C0D4:: @ 0812C0D4 + .incbin "baserom.gba", 0x12C0D4, 0x0000010 + +gUnk_0812C0E4:: @ 0812C0E4 + .incbin "baserom.gba", 0x12C0E4, 0x0000010 + +gUnk_0812C0F4:: @ 0812C0F4 + .incbin "baserom.gba", 0x12C0F4, 0x0000014 + +gUnk_0812C108:: @ 0812C108 + .incbin "baserom.gba", 0x12C108, 0x0000014 + +gUnk_0812C11C:: @ 0812C11C + .incbin "baserom.gba", 0x12C11C, 0x0000014 + +gUnk_0812C130:: @ 0812C130 + .incbin "baserom.gba", 0x12C130, 0x000000C + +gUnk_0812C13C:: @ 0812C13C + .incbin "baserom.gba", 0x12C13C, 0x000000C + +gUnk_0812C148:: @ 0812C148 + .incbin "baserom.gba", 0x12C148, 0x000000C + +gUnk_0812C154:: @ 0812C154 + .incbin "baserom.gba", 0x12C154, 0x000000C + +gUnk_0812C160:: @ 0812C160 + .incbin "baserom.gba", 0x12C160, 0x000000C + +gUnk_0812C16C:: @ 0812C16C + .incbin "baserom.gba", 0x12C16C, 0x0000010 + +gUnk_0812C17C:: @ 0812C17C + .incbin "baserom.gba", 0x12C17C, 0x0000010 + +gUnk_0812C18C:: @ 0812C18C + .incbin "baserom.gba", 0x12C18C, 0x000000C + +gUnk_0812C198:: @ 0812C198 + .incbin "baserom.gba", 0x12C198, 0x0000010 + +gUnk_0812C1A8:: @ 0812C1A8 + .incbin "baserom.gba", 0x12C1A8, 0x0000010 + +gUnk_0812C1B8:: @ 0812C1B8 + .incbin "baserom.gba", 0x12C1B8, 0x0000010 + +gUnk_0812C1C8:: @ 0812C1C8 + .incbin "baserom.gba", 0x12C1C8, 0x0000010 + +gUnk_0812C1D8:: @ 0812C1D8 + .incbin "baserom.gba", 0x12C1D8, 0x0000010 + +gUnk_0812C1E8:: @ 0812C1E8 + .incbin "baserom.gba", 0x12C1E8, 0x000000C + +gUnk_0812C1F4:: @ 0812C1F4 + .incbin "baserom.gba", 0x12C1F4, 0x000000C + +gUnk_0812C200:: @ 0812C200 + .incbin "baserom.gba", 0x12C200, 0x000000C + +gUnk_0812C20C:: @ 0812C20C + .incbin "baserom.gba", 0x12C20C, 0x000000C + +gUnk_0812C218:: @ 0812C218 + .incbin "baserom.gba", 0x12C218, 0x0000010 + +gUnk_0812C228:: @ 0812C228 + .incbin "baserom.gba", 0x12C228, 0x000000C + +gUnk_0812C234:: @ 0812C234 + .incbin "baserom.gba", 0x12C234, 0x000000C + +gUnk_0812C240:: @ 0812C240 + .incbin "baserom.gba", 0x12C240, 0x0000014 + +gUnk_0812C254:: @ 0812C254 + .incbin "baserom.gba", 0x12C254, 0x000000C + +gUnk_0812C260:: @ 0812C260 + .incbin "baserom.gba", 0x12C260, 0x000000C + +gUnk_0812C26C:: @ 0812C26C + .incbin "baserom.gba", 0x12C26C, 0x0000010 + +gUnk_0812C27C:: @ 0812C27C + .incbin "baserom.gba", 0x12C27C, 0x0000010 + +gUnk_0812C28C:: @ 0812C28C + .incbin "baserom.gba", 0x12C28C, 0x000000C + +gUnk_0812C298:: @ 0812C298 + .incbin "baserom.gba", 0x12C298, 0x0000004 + +gUnk_0812C29C:: @ 0812C29C + .incbin "baserom.gba", 0x12C29C, 0x0000010 + +gUnk_0812C2AC:: @ 0812C2AC + .incbin "baserom.gba", 0x12C2AC, 0x0000010 + +gUnk_0812C2BC:: @ 0812C2BC + .incbin "baserom.gba", 0x12C2BC, 0x0000010 + +gUnk_0812C2CC:: @ 0812C2CC + .incbin "baserom.gba", 0x12C2CC, 0x000000C + +gUnk_0812C2D8:: @ 0812C2D8 + .incbin "baserom.gba", 0x12C2D8, 0x000000C + +gUnk_0812C2E4:: @ 0812C2E4 + .incbin "baserom.gba", 0x12C2E4, 0x000000C + +gUnk_0812C2F0:: @ 0812C2F0 + .incbin "baserom.gba", 0x12C2F0, 0x000000C + +gUnk_0812C2FC:: @ 0812C2FC + .incbin "baserom.gba", 0x12C2FC, 0x000000C + +gUnk_0812C308:: @ 0812C308 + .incbin "baserom.gba", 0x12C308, 0x000000C + +gUnk_0812C314:: @ 0812C314 + .incbin "baserom.gba", 0x12C314, 0x0000010 + +gUnk_0812C324:: @ 0812C324 + .incbin "baserom.gba", 0x12C324, 0x0000010 + +gUnk_0812C334:: @ 0812C334 + .incbin "baserom.gba", 0x12C334, 0x0000010 + +gUnk_0812C344:: @ 0812C344 + .incbin "baserom.gba", 0x12C344, 0x0000010 + +gUnk_0812C354:: @ 0812C354 + .incbin "baserom.gba", 0x12C354, 0x0000010 + +gUnk_0812C364:: @ 0812C364 + .incbin "baserom.gba", 0x12C364, 0x000000C + +gUnk_0812C370:: @ 0812C370 + .incbin "baserom.gba", 0x12C370, 0x000000C + +gUnk_0812C37C:: @ 0812C37C + .incbin "baserom.gba", 0x12C37C, 0x000000C + +gUnk_0812C388:: @ 0812C388 + .incbin "baserom.gba", 0x12C388, 0x000000C + +gUnk_0812C394:: @ 0812C394 + .incbin "baserom.gba", 0x12C394, 0x000000C + +gUnk_0812C3A0:: @ 0812C3A0 + .incbin "baserom.gba", 0x12C3A0, 0x000000C + +gUnk_0812C3AC:: @ 0812C3AC + .incbin "baserom.gba", 0x12C3AC, 0x0000010 + +gUnk_0812C3BC:: @ 0812C3BC + .incbin "baserom.gba", 0x12C3BC, 0x0000010 + +gUnk_0812C3CC:: @ 0812C3CC + .incbin "baserom.gba", 0x12C3CC, 0x0000010 + +gUnk_0812C3DC:: @ 0812C3DC + .incbin "baserom.gba", 0x12C3DC, 0x0000010 + +gUnk_0812C3EC:: @ 0812C3EC + .incbin "baserom.gba", 0x12C3EC, 0x0000010 + +gUnk_0812C3FC:: @ 0812C3FC + .incbin "baserom.gba", 0x12C3FC, 0x0000014 + +gUnk_0812C410:: @ 0812C410 + .incbin "baserom.gba", 0x12C410, 0x0000010 + +gUnk_0812C420:: @ 0812C420 + .incbin "baserom.gba", 0x12C420, 0x0000014 + +gUnk_0812C434:: @ 0812C434 + .incbin "baserom.gba", 0x12C434, 0x0000010 + +gUnk_0812C444:: @ 0812C444 + .incbin "baserom.gba", 0x12C444, 0x0000010 + +gUnk_0812C454:: @ 0812C454 + .incbin "baserom.gba", 0x12C454, 0x0000010 + +gUnk_0812C464:: @ 0812C464 + .incbin "baserom.gba", 0x12C464, 0x0000010 + +gUnk_0812C474:: @ 0812C474 + .incbin "baserom.gba", 0x12C474, 0x0000010 + +gUnk_0812C484:: @ 0812C484 + .incbin "baserom.gba", 0x12C484, 0x0000010 + +gUnk_0812C494:: @ 0812C494 + .incbin "baserom.gba", 0x12C494, 0x0000010 + +gUnk_0812C4A4:: @ 0812C4A4 + .incbin "baserom.gba", 0x12C4A4, 0x0000010 + +gUnk_0812C4B4:: @ 0812C4B4 + .incbin "baserom.gba", 0x12C4B4, 0x0000014 + +gUnk_0812C4C8:: @ 0812C4C8 + .incbin "baserom.gba", 0x12C4C8, 0x0000014 + +gUnk_0812C4DC:: @ 0812C4DC + .incbin "baserom.gba", 0x12C4DC, 0x0000010 + +gUnk_0812C4EC:: @ 0812C4EC + .incbin "baserom.gba", 0x12C4EC, 0x0000010 + +gUnk_0812C4FC:: @ 0812C4FC + .incbin "baserom.gba", 0x12C4FC, 0x0000010 + +gUnk_0812C50C:: @ 0812C50C + .incbin "baserom.gba", 0x12C50C, 0x0000010 + +gUnk_0812C51C:: @ 0812C51C + .incbin "baserom.gba", 0x12C51C, 0x0000010 + +gUnk_0812C52C:: @ 0812C52C + .incbin "baserom.gba", 0x12C52C, 0x0000010 + +gUnk_0812C53C:: @ 0812C53C + .incbin "baserom.gba", 0x12C53C, 0x0000010 + +gUnk_0812C54C:: @ 0812C54C + .incbin "baserom.gba", 0x12C54C, 0x0000014 + +gUnk_0812C560:: @ 0812C560 + .incbin "baserom.gba", 0x12C560, 0x0000010 + +gUnk_0812C570:: @ 0812C570 + .incbin "baserom.gba", 0x12C570, 0x0000010 + +gUnk_0812C580:: @ 0812C580 + .incbin "baserom.gba", 0x12C580, 0x0000010 + +gUnk_0812C590:: @ 0812C590 + .incbin "baserom.gba", 0x12C590, 0x0000010 + +gUnk_0812C5A0:: @ 0812C5A0 + .incbin "baserom.gba", 0x12C5A0, 0x0000010 + +gUnk_0812C5B0:: @ 0812C5B0 + .incbin "baserom.gba", 0x12C5B0, 0x0000010 + +gUnk_0812C5C0:: @ 0812C5C0 + .incbin "baserom.gba", 0x12C5C0, 0x0000010 + +gUnk_0812C5D0:: @ 0812C5D0 + .incbin "baserom.gba", 0x12C5D0, 0x0000010 + +gUnk_0812C5E0:: @ 0812C5E0 + .incbin "baserom.gba", 0x12C5E0, 0x0000010 + +gUnk_0812C5F0:: @ 0812C5F0 + .incbin "baserom.gba", 0x12C5F0, 0x00000C8 + +gUnk_0812C6B8:: @ 0812C6B8 + .incbin "baserom.gba", 0x12C6B8, 0x000029C + +gUnk_0812C954:: @ 0812C954 + .incbin "baserom.gba", 0x12C954, 0x0000008 + +gUnk_0812C95C:: @ 0812C95C + .incbin "baserom.gba", 0x12C95C, 0x0000008 + +gUnk_0812C964:: @ 0812C964 + .incbin "baserom.gba", 0x12C964, 0x0000008 + +gUnk_0812C96C:: @ 0812C96C + .incbin "baserom.gba", 0x12C96C, 0x0000008 + +gUnk_0812C974:: @ 0812C974 + .incbin "baserom.gba", 0x12C974, 0x0000008 + +gUnk_0812C97C:: @ 0812C97C + .incbin "baserom.gba", 0x12C97C, 0x0000010 + +gUnk_0812C98C:: @ 0812C98C + .incbin "baserom.gba", 0x12C98C, 0x0000010 + +gUnk_0812C99C:: @ 0812C99C + .incbin "baserom.gba", 0x12C99C, 0x0000010 + +gUnk_0812C9AC:: @ 0812C9AC + .incbin "baserom.gba", 0x12C9AC, 0x0000010 + +gUnk_0812C9BC:: @ 0812C9BC + .incbin "baserom.gba", 0x12C9BC, 0x0000010 + +gUnk_0812C9CC:: @ 0812C9CC + .incbin "baserom.gba", 0x12C9CC, 0x0000010 + +gUnk_0812C9DC:: @ 0812C9DC + .incbin "baserom.gba", 0x12C9DC, 0x0000010 + +gUnk_0812C9EC:: @ 0812C9EC + .incbin "baserom.gba", 0x12C9EC, 0x0000010 + +gUnk_0812C9FC:: @ 0812C9FC + .incbin "baserom.gba", 0x12C9FC, 0x0000010 + +gUnk_0812CA0C:: @ 0812CA0C + .incbin "baserom.gba", 0x12CA0C, 0x0000010 + +gUnk_0812CA1C:: @ 0812CA1C + .incbin "baserom.gba", 0x12CA1C, 0x0000010 + +gUnk_0812CA2C:: @ 0812CA2C + .incbin "baserom.gba", 0x12CA2C, 0x0000010 + +gUnk_0812CA3C:: @ 0812CA3C + .incbin "baserom.gba", 0x12CA3C, 0x0000014 + +gUnk_0812CA50:: @ 0812CA50 + .incbin "baserom.gba", 0x12CA50, 0x0000014 + +gUnk_0812CA64:: @ 0812CA64 + .incbin "baserom.gba", 0x12CA64, 0x0000014 + +gUnk_0812CA78:: @ 0812CA78 + .incbin "baserom.gba", 0x12CA78, 0x0000014 + +gUnk_0812CA8C:: @ 0812CA8C + .incbin "baserom.gba", 0x12CA8C, 0x0000014 + +gUnk_0812CAA0:: @ 0812CAA0 + .incbin "baserom.gba", 0x12CAA0, 0x0000014 + +gUnk_0812CAB4:: @ 0812CAB4 + .incbin "baserom.gba", 0x12CAB4, 0x0000014 + +gUnk_0812CAC8:: @ 0812CAC8 + .incbin "baserom.gba", 0x12CAC8, 0x0000014 + +gUnk_0812CADC:: @ 0812CADC + .incbin "baserom.gba", 0x12CADC, 0x0000014 + +gUnk_0812CAF0:: @ 0812CAF0 + .incbin "baserom.gba", 0x12CAF0, 0x0000014 + +gUnk_0812CB04:: @ 0812CB04 + .incbin "baserom.gba", 0x12CB04, 0x0000018 + +gUnk_0812CB1C:: @ 0812CB1C + .incbin "baserom.gba", 0x12CB1C, 0x0000014 + +gUnk_0812CB30:: @ 0812CB30 + .incbin "baserom.gba", 0x12CB30, 0x0000014 + +gUnk_0812CB44:: @ 0812CB44 + .incbin "baserom.gba", 0x12CB44, 0x0000014 + +gUnk_0812CB58:: @ 0812CB58 + .incbin "baserom.gba", 0x12CB58, 0x0000014 + +gUnk_0812CB6C:: @ 0812CB6C + .incbin "baserom.gba", 0x12CB6C, 0x0000014 + +gUnk_0812CB80:: @ 0812CB80 + .incbin "baserom.gba", 0x12CB80, 0x0000010 + +gUnk_0812CB90:: @ 0812CB90 + .incbin "baserom.gba", 0x12CB90, 0x0000010 + +gUnk_0812CBA0:: @ 0812CBA0 + .incbin "baserom.gba", 0x12CBA0, 0x0000014 + +gUnk_0812CBB4:: @ 0812CBB4 + .incbin "baserom.gba", 0x12CBB4, 0x000000C + +gUnk_0812CBC0:: @ 0812CBC0 + .incbin "baserom.gba", 0x12CBC0, 0x0000014 + +gUnk_0812CBD4:: @ 0812CBD4 + .incbin "baserom.gba", 0x12CBD4, 0x000000C + +gUnk_0812CBE0:: @ 0812CBE0 + .incbin "baserom.gba", 0x12CBE0, 0x0000010 + +gUnk_0812CBF0:: @ 0812CBF0 + .incbin "baserom.gba", 0x12CBF0, 0x0000010 + +gUnk_0812CC00:: @ 0812CC00 + .incbin "baserom.gba", 0x12CC00, 0x0000010 + +gUnk_0812CC10:: @ 0812CC10 + .incbin "baserom.gba", 0x12CC10, 0x0000010 + +gUnk_0812CC20:: @ 0812CC20 + .incbin "baserom.gba", 0x12CC20, 0x0000010 + +gUnk_0812CC30:: @ 0812CC30 + .incbin "baserom.gba", 0x12CC30, 0x0000010 + +gUnk_0812CC40:: @ 0812CC40 + .incbin "baserom.gba", 0x12CC40, 0x0000014 + +gUnk_0812CC54:: @ 0812CC54 + .incbin "baserom.gba", 0x12CC54, 0x0000010 + +gUnk_0812CC64:: @ 0812CC64 + .incbin "baserom.gba", 0x12CC64, 0x0000010 + +gUnk_0812CC74:: @ 0812CC74 + .incbin "baserom.gba", 0x12CC74, 0x0000010 + +gUnk_0812CC84:: @ 0812CC84 + .incbin "baserom.gba", 0x12CC84, 0x0000010 + +gUnk_0812CC94:: @ 0812CC94 + .incbin "baserom.gba", 0x12CC94, 0x0000010 + +gUnk_0812CCA4:: @ 0812CCA4 + .incbin "baserom.gba", 0x12CCA4, 0x0000010 + +gUnk_0812CCB4:: @ 0812CCB4 + .incbin "baserom.gba", 0x12CCB4, 0x0000010 + +gUnk_0812CCC4:: @ 0812CCC4 + .incbin "baserom.gba", 0x12CCC4, 0x0000010 + +gUnk_0812CCD4:: @ 0812CCD4 + .incbin "baserom.gba", 0x12CCD4, 0x0000014 + +gUnk_0812CCE8:: @ 0812CCE8 + .incbin "baserom.gba", 0x12CCE8, 0x0000014 + +gUnk_0812CCFC:: @ 0812CCFC + .incbin "baserom.gba", 0x12CCFC, 0x000000C + +gUnk_0812CD08:: @ 0812CD08 + .incbin "baserom.gba", 0x12CD08, 0x000000C + +gUnk_0812CD14:: @ 0812CD14 + .incbin "baserom.gba", 0x12CD14, 0x000000C + +gUnk_0812CD20:: @ 0812CD20 + .incbin "baserom.gba", 0x12CD20, 0x000000C + +gUnk_0812CD2C:: @ 0812CD2C + .incbin "baserom.gba", 0x12CD2C, 0x000000C + +gUnk_0812CD38:: @ 0812CD38 + .incbin "baserom.gba", 0x12CD38, 0x0000014 + +gUnk_0812CD4C:: @ 0812CD4C + .incbin "baserom.gba", 0x12CD4C, 0x0000014 + +gUnk_0812CD60:: @ 0812CD60 + .incbin "baserom.gba", 0x12CD60, 0x0000010 + +gUnk_0812CD70:: @ 0812CD70 + .incbin "baserom.gba", 0x12CD70, 0x0000010 + +gUnk_0812CD80:: @ 0812CD80 + .incbin "baserom.gba", 0x12CD80, 0x0000014 + +gUnk_0812CD94:: @ 0812CD94 + .incbin "baserom.gba", 0x12CD94, 0x0000010 + +gUnk_0812CDA4:: @ 0812CDA4 + .incbin "baserom.gba", 0x12CDA4, 0x0000014 + +gUnk_0812CDB8:: @ 0812CDB8 + .incbin "baserom.gba", 0x12CDB8, 0x0000010 + +gUnk_0812CDC8:: @ 0812CDC8 + .incbin "baserom.gba", 0x12CDC8, 0x0000014 + +gUnk_0812CDDC:: @ 0812CDDC + .incbin "baserom.gba", 0x12CDDC, 0x0000010 + +gUnk_0812CDEC:: @ 0812CDEC + .incbin "baserom.gba", 0x12CDEC, 0x0000018 + +gUnk_0812CE04:: @ 0812CE04 + .incbin "baserom.gba", 0x12CE04, 0x0000018 + +gUnk_0812CE1C:: @ 0812CE1C + .incbin "baserom.gba", 0x12CE1C, 0x0000010 + +gUnk_0812CE2C:: @ 0812CE2C + .incbin "baserom.gba", 0x12CE2C, 0x0000010 + +gUnk_0812CE3C:: @ 0812CE3C + .incbin "baserom.gba", 0x12CE3C, 0x0000010 + +gUnk_0812CE4C:: @ 0812CE4C + .incbin "baserom.gba", 0x12CE4C, 0x0000010 + +gUnk_0812CE5C:: @ 0812CE5C + .incbin "baserom.gba", 0x12CE5C, 0x0000010 + +gUnk_0812CE6C:: @ 0812CE6C + .incbin "baserom.gba", 0x12CE6C, 0x0000010 + +gUnk_0812CE7C:: @ 0812CE7C + .incbin "baserom.gba", 0x12CE7C, 0x0000010 + +gUnk_0812CE8C:: @ 0812CE8C + .incbin "baserom.gba", 0x12CE8C, 0x0000010 + +gUnk_0812CE9C:: @ 0812CE9C + .incbin "baserom.gba", 0x12CE9C, 0x0000010 + +gUnk_0812CEAC:: @ 0812CEAC + .incbin "baserom.gba", 0x12CEAC, 0x0000010 + +gUnk_0812CEBC:: @ 0812CEBC + .incbin "baserom.gba", 0x12CEBC, 0x0000010 + +gUnk_0812CECC:: @ 0812CECC + .incbin "baserom.gba", 0x12CECC, 0x0000010 + +gUnk_0812CEDC:: @ 0812CEDC + .incbin "baserom.gba", 0x12CEDC, 0x0000010 + +gUnk_0812CEEC:: @ 0812CEEC + .incbin "baserom.gba", 0x12CEEC, 0x000000C + +gUnk_0812CEF8:: @ 0812CEF8 + .incbin "baserom.gba", 0x12CEF8, 0x000000C + +gUnk_0812CF04:: @ 0812CF04 + .incbin "baserom.gba", 0x12CF04, 0x000000C + +gUnk_0812CF10:: @ 0812CF10 + .incbin "baserom.gba", 0x12CF10, 0x000000C + +gUnk_0812CF1C:: @ 0812CF1C + .incbin "baserom.gba", 0x12CF1C, 0x000000C + +gUnk_0812CF28:: @ 0812CF28 + .incbin "baserom.gba", 0x12CF28, 0x000000C + +gUnk_0812CF34:: @ 0812CF34 + .incbin "baserom.gba", 0x12CF34, 0x000000C + +gUnk_0812CF40:: @ 0812CF40 + .incbin "baserom.gba", 0x12CF40, 0x000000C + +gUnk_0812CF4C:: @ 0812CF4C + .incbin "baserom.gba", 0x12CF4C, 0x0000018 + +gUnk_0812CF64:: @ 0812CF64 + .incbin "baserom.gba", 0x12CF64, 0x0000010 + +gUnk_0812CF74:: @ 0812CF74 + .incbin "baserom.gba", 0x12CF74, 0x0000018 + +gUnk_0812CF8C:: @ 0812CF8C + .incbin "baserom.gba", 0x12CF8C, 0x0000014 + +gUnk_0812CFA0:: @ 0812CFA0 + .incbin "baserom.gba", 0x12CFA0, 0x0000018 + +gUnk_0812CFB8:: @ 0812CFB8 + .incbin "baserom.gba", 0x12CFB8, 0x0000010 + +gUnk_0812CFC8:: @ 0812CFC8 + .incbin "baserom.gba", 0x12CFC8, 0x0000014 + +gUnk_0812CFDC:: @ 0812CFDC + .incbin "baserom.gba", 0x12CFDC, 0x0000014 + +gUnk_0812CFF0:: @ 0812CFF0 + .incbin "baserom.gba", 0x12CFF0, 0x0000010 + +gUnk_0812D000:: @ 0812D000 + .incbin "baserom.gba", 0x12D000, 0x0000014 + +gUnk_0812D014:: @ 0812D014 + .incbin "baserom.gba", 0x12D014, 0x0000010 + +gUnk_0812D024:: @ 0812D024 + .incbin "baserom.gba", 0x12D024, 0x0000010 + +gUnk_0812D034:: @ 0812D034 + .incbin "baserom.gba", 0x12D034, 0x0000010 + +gUnk_0812D044:: @ 0812D044 + .incbin "baserom.gba", 0x12D044, 0x0000014 + +gUnk_0812D058:: @ 0812D058 + .incbin "baserom.gba", 0x12D058, 0x0000018 + +gUnk_0812D070:: @ 0812D070 + .incbin "baserom.gba", 0x12D070, 0x0000014 + +gUnk_0812D084:: @ 0812D084 + .incbin "baserom.gba", 0x12D084, 0x0000014 + +gUnk_0812D098:: @ 0812D098 + .incbin "baserom.gba", 0x12D098, 0x0000010 + +gUnk_0812D0A8:: @ 0812D0A8 + .incbin "baserom.gba", 0x12D0A8, 0x0000014 + +gUnk_0812D0BC:: @ 0812D0BC + .incbin "baserom.gba", 0x12D0BC, 0x0000010 + +gUnk_0812D0CC:: @ 0812D0CC + .incbin "baserom.gba", 0x12D0CC, 0x0000014 + +gUnk_0812D0E0:: @ 0812D0E0 + .incbin "baserom.gba", 0x12D0E0, 0x0000010 + +gUnk_0812D0F0:: @ 0812D0F0 + .incbin "baserom.gba", 0x12D0F0, 0x0000010 + +gUnk_0812D100:: @ 0812D100 + .incbin "baserom.gba", 0x12D100, 0x000000C + +gUnk_0812D10C:: @ 0812D10C + .incbin "baserom.gba", 0x12D10C, 0x0000010 + +gUnk_0812D11C:: @ 0812D11C + .incbin "baserom.gba", 0x12D11C, 0x0000010 + +gUnk_0812D12C:: @ 0812D12C + .incbin "baserom.gba", 0x12D12C, 0x0000010 + +gUnk_0812D13C:: @ 0812D13C + .incbin "baserom.gba", 0x12D13C, 0x000000C + +gUnk_0812D148:: @ 0812D148 + .incbin "baserom.gba", 0x12D148, 0x000000C + +gUnk_0812D154:: @ 0812D154 + .incbin "baserom.gba", 0x12D154, 0x0000010 + +gUnk_0812D164:: @ 0812D164 + .incbin "baserom.gba", 0x12D164, 0x0000010 + +gUnk_0812D174:: @ 0812D174 + .incbin "baserom.gba", 0x12D174, 0x0000010 + +gUnk_0812D184:: @ 0812D184 + .incbin "baserom.gba", 0x12D184, 0x0000010 + +gUnk_0812D194:: @ 0812D194 + .incbin "baserom.gba", 0x12D194, 0x0000010 + +gUnk_0812D1A4:: @ 0812D1A4 + .incbin "baserom.gba", 0x12D1A4, 0x0000010 + +gUnk_0812D1B4:: @ 0812D1B4 + .incbin "baserom.gba", 0x12D1B4, 0x0000010 + +gUnk_0812D1C4:: @ 0812D1C4 + .incbin "baserom.gba", 0x12D1C4, 0x0000010 + +gUnk_0812D1D4:: @ 0812D1D4 + .incbin "baserom.gba", 0x12D1D4, 0x0000010 + +gUnk_0812D1E4:: @ 0812D1E4 + .incbin "baserom.gba", 0x12D1E4, 0x0000010 + +gUnk_0812D1F4:: @ 0812D1F4 + .incbin "baserom.gba", 0x12D1F4, 0x0000010 + +gUnk_0812D204:: @ 0812D204 + .incbin "baserom.gba", 0x12D204, 0x0000010 + +gUnk_0812D214:: @ 0812D214 + .incbin "baserom.gba", 0x12D214, 0x0000010 + +gUnk_0812D224:: @ 0812D224 + .incbin "baserom.gba", 0x12D224, 0x0000010 + +gUnk_0812D234:: @ 0812D234 + .incbin "baserom.gba", 0x12D234, 0x0000010 + +gUnk_0812D244:: @ 0812D244 + .incbin "baserom.gba", 0x12D244, 0x0000010 + +gUnk_0812D254:: @ 0812D254 + .incbin "baserom.gba", 0x12D254, 0x0000010 + +gUnk_0812D264:: @ 0812D264 + .incbin "baserom.gba", 0x12D264, 0x0000010 + +gUnk_0812D274:: @ 0812D274 + .incbin "baserom.gba", 0x12D274, 0x0000010 + +gUnk_0812D284:: @ 0812D284 + .incbin "baserom.gba", 0x12D284, 0x000000C + +gUnk_0812D290:: @ 0812D290 + .incbin "baserom.gba", 0x12D290, 0x000000C + +gUnk_0812D29C:: @ 0812D29C + .incbin "baserom.gba", 0x12D29C, 0x000000C + +gUnk_0812D2A8:: @ 0812D2A8 + .incbin "baserom.gba", 0x12D2A8, 0x000000C + +gUnk_0812D2B4:: @ 0812D2B4 + .incbin "baserom.gba", 0x12D2B4, 0x000000C + +gUnk_0812D2C0:: @ 0812D2C0 + .incbin "baserom.gba", 0x12D2C0, 0x000000C + +gUnk_0812D2CC:: @ 0812D2CC + .incbin "baserom.gba", 0x12D2CC, 0x000000C + +gUnk_0812D2D8:: @ 0812D2D8 + .incbin "baserom.gba", 0x12D2D8, 0x000000C + +gUnk_0812D2E4:: @ 0812D2E4 + .incbin "baserom.gba", 0x12D2E4, 0x000000C + +gUnk_0812D2F0:: @ 0812D2F0 + .incbin "baserom.gba", 0x12D2F0, 0x000000C + +gUnk_0812D2FC:: @ 0812D2FC + .incbin "baserom.gba", 0x12D2FC, 0x000000C + +gUnk_0812D308:: @ 0812D308 + .incbin "baserom.gba", 0x12D308, 0x000000C + +gUnk_0812D314:: @ 0812D314 + .incbin "baserom.gba", 0x12D314, 0x000000C + +gUnk_0812D320:: @ 0812D320 + .incbin "baserom.gba", 0x12D320, 0x000000C + +gUnk_0812D32C:: @ 0812D32C + .incbin "baserom.gba", 0x12D32C, 0x000000C + +gUnk_0812D338:: @ 0812D338 + .incbin "baserom.gba", 0x12D338, 0x000000C + +gUnk_0812D344:: @ 0812D344 + .incbin "baserom.gba", 0x12D344, 0x000000C + +gUnk_0812D350:: @ 0812D350 + .incbin "baserom.gba", 0x12D350, 0x000000C + +gUnk_0812D35C:: @ 0812D35C + .incbin "baserom.gba", 0x12D35C, 0x000000C + +gUnk_0812D368:: @ 0812D368 + .incbin "baserom.gba", 0x12D368, 0x000000C + +gUnk_0812D374:: @ 0812D374 + .incbin "baserom.gba", 0x12D374, 0x000000C + +gUnk_0812D380:: @ 0812D380 + .incbin "baserom.gba", 0x12D380, 0x000000C + +gUnk_0812D38C:: @ 0812D38C + .incbin "baserom.gba", 0x12D38C, 0x000000C + +gUnk_0812D398:: @ 0812D398 + .incbin "baserom.gba", 0x12D398, 0x000000C + +gUnk_0812D3A4:: @ 0812D3A4 + .incbin "baserom.gba", 0x12D3A4, 0x000000C + +gUnk_0812D3B0:: @ 0812D3B0 + .incbin "baserom.gba", 0x12D3B0, 0x000000C + +gUnk_0812D3BC:: @ 0812D3BC + .incbin "baserom.gba", 0x12D3BC, 0x000000C + +gUnk_0812D3C8:: @ 0812D3C8 + .incbin "baserom.gba", 0x12D3C8, 0x0000014 + +gUnk_0812D3DC:: @ 0812D3DC + .incbin "baserom.gba", 0x12D3DC, 0x0000014 + +gUnk_0812D3F0:: @ 0812D3F0 + .incbin "baserom.gba", 0x12D3F0, 0x0000018 + +gUnk_0812D408:: @ 0812D408 + .incbin "baserom.gba", 0x12D408, 0x0000014 + +gUnk_0812D41C:: @ 0812D41C + .incbin "baserom.gba", 0x12D41C, 0x0000010 + +gUnk_0812D42C:: @ 0812D42C + .incbin "baserom.gba", 0x12D42C, 0x0000010 + +gUnk_0812D43C:: @ 0812D43C + .incbin "baserom.gba", 0x12D43C, 0x0000010 + +gUnk_0812D44C:: @ 0812D44C + .incbin "baserom.gba", 0x12D44C, 0x0000010 + +gUnk_0812D45C:: @ 0812D45C + .incbin "baserom.gba", 0x12D45C, 0x0000010 + +gUnk_0812D46C:: @ 0812D46C + .incbin "baserom.gba", 0x12D46C, 0x0000010 + +gUnk_0812D47C:: @ 0812D47C + .incbin "baserom.gba", 0x12D47C, 0x0000010 + +gUnk_0812D48C:: @ 0812D48C + .incbin "baserom.gba", 0x12D48C, 0x0000010 + +gUnk_0812D49C:: @ 0812D49C + .incbin "baserom.gba", 0x12D49C, 0x0000014 + +gUnk_0812D4B0:: @ 0812D4B0 + .incbin "baserom.gba", 0x12D4B0, 0x0000014 + +gUnk_0812D4C4:: @ 0812D4C4 + .incbin "baserom.gba", 0x12D4C4, 0x0000014 + +gUnk_0812D4D8:: @ 0812D4D8 + .incbin "baserom.gba", 0x12D4D8, 0x0000014 + +gUnk_0812D4EC:: @ 0812D4EC + .incbin "baserom.gba", 0x12D4EC, 0x0000014 + +gUnk_0812D500:: @ 0812D500 + .incbin "baserom.gba", 0x12D500, 0x000000C + +gUnk_0812D50C:: @ 0812D50C + .incbin "baserom.gba", 0x12D50C, 0x000000C + +gUnk_0812D518:: @ 0812D518 + .incbin "baserom.gba", 0x12D518, 0x000000C + +gUnk_0812D524:: @ 0812D524 + .incbin "baserom.gba", 0x12D524, 0x000000C + +gUnk_0812D530:: @ 0812D530 + .incbin "baserom.gba", 0x12D530, 0x0000010 + +gUnk_0812D540:: @ 0812D540 + .incbin "baserom.gba", 0x12D540, 0x0000010 + +gUnk_0812D550:: @ 0812D550 + .incbin "baserom.gba", 0x12D550, 0x0000010 + +gUnk_0812D560:: @ 0812D560 + .incbin "baserom.gba", 0x12D560, 0x0000010 + +gUnk_0812D570:: @ 0812D570 + .incbin "baserom.gba", 0x12D570, 0x0000010 + +gUnk_0812D580:: @ 0812D580 + .incbin "baserom.gba", 0x12D580, 0x0000010 + +gUnk_0812D590:: @ 0812D590 + .incbin "baserom.gba", 0x12D590, 0x0000010 + +gUnk_0812D5A0:: @ 0812D5A0 + .incbin "baserom.gba", 0x12D5A0, 0x0000010 + +gUnk_0812D5B0:: @ 0812D5B0 + .incbin "baserom.gba", 0x12D5B0, 0x0000010 + +gUnk_0812D5C0:: @ 0812D5C0 + .incbin "baserom.gba", 0x12D5C0, 0x0000010 + +gUnk_0812D5D0:: @ 0812D5D0 + .incbin "baserom.gba", 0x12D5D0, 0x0000010 + +gUnk_0812D5E0:: @ 0812D5E0 + .incbin "baserom.gba", 0x12D5E0, 0x0000010 + +gUnk_0812D5F0:: @ 0812D5F0 + .incbin "baserom.gba", 0x12D5F0, 0x0000010 + +gUnk_0812D600:: @ 0812D600 + .incbin "baserom.gba", 0x12D600, 0x0000010 + +gUnk_0812D610:: @ 0812D610 + .incbin "baserom.gba", 0x12D610, 0x0000010 + +gUnk_0812D620:: @ 0812D620 + .incbin "baserom.gba", 0x12D620, 0x0000010 + +gUnk_0812D630:: @ 0812D630 + .incbin "baserom.gba", 0x12D630, 0x0000010 + +gUnk_0812D640:: @ 0812D640 + .incbin "baserom.gba", 0x12D640, 0x0000018 + +gUnk_0812D658:: @ 0812D658 + .incbin "baserom.gba", 0x12D658, 0x0000018 + +gUnk_0812D670:: @ 0812D670 + .incbin "baserom.gba", 0x12D670, 0x0000018 + +gUnk_0812D688:: @ 0812D688 + .incbin "baserom.gba", 0x12D688, 0x0000340 + +gUnk_0812D9C8:: @ 0812D9C8 + .incbin "baserom.gba", 0x12D9C8, 0x0000008 + +gUnk_0812D9D0:: @ 0812D9D0 + .incbin "baserom.gba", 0x12D9D0, 0x0000018 + +gUnk_0812D9E8:: @ 0812D9E8 + .incbin "baserom.gba", 0x12D9E8, 0x000000C + +gUnk_0812D9F4:: @ 0812D9F4 + .incbin "baserom.gba", 0x12D9F4, 0x0000010 + +gUnk_0812DA04:: @ 0812DA04 + .incbin "baserom.gba", 0x12DA04, 0x0000010 + +gUnk_0812DA14:: @ 0812DA14 + .incbin "baserom.gba", 0x12DA14, 0x0000014 + +gUnk_0812DA28:: @ 0812DA28 + .incbin "baserom.gba", 0x12DA28, 0x0000018 + +gUnk_0812DA40:: @ 0812DA40 + .incbin "baserom.gba", 0x12DA40, 0x0000014 + +gUnk_0812DA54:: @ 0812DA54 + .incbin "baserom.gba", 0x12DA54, 0x0000014 + +gUnk_0812DA68:: @ 0812DA68 + .incbin "baserom.gba", 0x12DA68, 0x0000018 + +gUnk_0812DA80:: @ 0812DA80 + .incbin "baserom.gba", 0x12DA80, 0x0000018 + +gUnk_0812DA98:: @ 0812DA98 + .incbin "baserom.gba", 0x12DA98, 0x000000C + +gUnk_0812DAA4:: @ 0812DAA4 + .incbin "baserom.gba", 0x12DAA4, 0x000000C + +gUnk_0812DAB0:: @ 0812DAB0 + .incbin "baserom.gba", 0x12DAB0, 0x0000010 + +gUnk_0812DAC0:: @ 0812DAC0 + .incbin "baserom.gba", 0x12DAC0, 0x0000014 + +gUnk_0812DAD4:: @ 0812DAD4 + .incbin "baserom.gba", 0x12DAD4, 0x0000010 + +gUnk_0812DAE4:: @ 0812DAE4 + .incbin "baserom.gba", 0x12DAE4, 0x0000010 + +gUnk_0812DAF4:: @ 0812DAF4 + .incbin "baserom.gba", 0x12DAF4, 0x0000010 + +gUnk_0812DB04:: @ 0812DB04 + .incbin "baserom.gba", 0x12DB04, 0x0000010 + +gUnk_0812DB14:: @ 0812DB14 + .incbin "baserom.gba", 0x12DB14, 0x0000010 + +gUnk_0812DB24:: @ 0812DB24 + .incbin "baserom.gba", 0x12DB24, 0x0000010 + +gUnk_0812DB34:: @ 0812DB34 + .incbin "baserom.gba", 0x12DB34, 0x0000010 + +gUnk_0812DB44:: @ 0812DB44 + .incbin "baserom.gba", 0x12DB44, 0x0000010 + +gUnk_0812DB54:: @ 0812DB54 + .incbin "baserom.gba", 0x12DB54, 0x0000010 + +gUnk_0812DB64:: @ 0812DB64 + .incbin "baserom.gba", 0x12DB64, 0x0000010 + +gUnk_0812DB74:: @ 0812DB74 + .incbin "baserom.gba", 0x12DB74, 0x0000010 + +gUnk_0812DB84:: @ 0812DB84 + .incbin "baserom.gba", 0x12DB84, 0x0000010 + +gUnk_0812DB94:: @ 0812DB94 + .incbin "baserom.gba", 0x12DB94, 0x0000014 + +gUnk_0812DBA8:: @ 0812DBA8 + .incbin "baserom.gba", 0x12DBA8, 0x0000010 + +gUnk_0812DBB8:: @ 0812DBB8 + .incbin "baserom.gba", 0x12DBB8, 0x0000010 + +gUnk_0812DBC8:: @ 0812DBC8 + .incbin "baserom.gba", 0x12DBC8, 0x0000010 + +gUnk_0812DBD8:: @ 0812DBD8 + .incbin "baserom.gba", 0x12DBD8, 0x0000010 + +gUnk_0812DBE8:: @ 0812DBE8 + .incbin "baserom.gba", 0x12DBE8, 0x0000010 + +gUnk_0812DBF8:: @ 0812DBF8 + .incbin "baserom.gba", 0x12DBF8, 0x0000010 + +gUnk_0812DC08:: @ 0812DC08 + .incbin "baserom.gba", 0x12DC08, 0x0000010 + +gUnk_0812DC18:: @ 0812DC18 + .incbin "baserom.gba", 0x12DC18, 0x000000C + +gUnk_0812DC24:: @ 0812DC24 + .incbin "baserom.gba", 0x12DC24, 0x000000C + +gUnk_0812DC30:: @ 0812DC30 + .incbin "baserom.gba", 0x12DC30, 0x000000C + +gUnk_0812DC3C:: @ 0812DC3C + .incbin "baserom.gba", 0x12DC3C, 0x000000C + +gUnk_0812DC48:: @ 0812DC48 + .incbin "baserom.gba", 0x12DC48, 0x000000C + +gUnk_0812DC54:: @ 0812DC54 + .incbin "baserom.gba", 0x12DC54, 0x000000C + +gUnk_0812DC60:: @ 0812DC60 + .incbin "baserom.gba", 0x12DC60, 0x000000C + +gUnk_0812DC6C:: @ 0812DC6C + .incbin "baserom.gba", 0x12DC6C, 0x000000C + +gUnk_0812DC78:: @ 0812DC78 + .incbin "baserom.gba", 0x12DC78, 0x000000C + +gUnk_0812DC84:: @ 0812DC84 + .incbin "baserom.gba", 0x12DC84, 0x000000C + +gUnk_0812DC90:: @ 0812DC90 + .incbin "baserom.gba", 0x12DC90, 0x000000C + +gUnk_0812DC9C:: @ 0812DC9C + .incbin "baserom.gba", 0x12DC9C, 0x000000C + +gUnk_0812DCA8:: @ 0812DCA8 + .incbin "baserom.gba", 0x12DCA8, 0x000000C + +gUnk_0812DCB4:: @ 0812DCB4 + .incbin "baserom.gba", 0x12DCB4, 0x000000C + +gUnk_0812DCC0:: @ 0812DCC0 + .incbin "baserom.gba", 0x12DCC0, 0x000000C + +gUnk_0812DCCC:: @ 0812DCCC + .incbin "baserom.gba", 0x12DCCC, 0x000000C + +gUnk_0812DCD8:: @ 0812DCD8 + .incbin "baserom.gba", 0x12DCD8, 0x0000014 + +gUnk_0812DCEC:: @ 0812DCEC + .incbin "baserom.gba", 0x12DCEC, 0x0000014 + +gUnk_0812DD00:: @ 0812DD00 + .incbin "baserom.gba", 0x12DD00, 0x0000004 + +gUnk_0812DD04:: @ 0812DD04 + .incbin "baserom.gba", 0x12DD04, 0x0000008 + +gUnk_0812DD0C:: @ 0812DD0C + .incbin "baserom.gba", 0x12DD0C, 0x000000C + +gUnk_0812DD18:: @ 0812DD18 + .incbin "baserom.gba", 0x12DD18, 0x000000C + +gUnk_0812DD24:: @ 0812DD24 + .incbin "baserom.gba", 0x12DD24, 0x000000C + +gUnk_0812DD30:: @ 0812DD30 + .incbin "baserom.gba", 0x12DD30, 0x000000C + +gUnk_0812DD3C:: @ 0812DD3C + .incbin "baserom.gba", 0x12DD3C, 0x000000C + +gUnk_0812DD48:: @ 0812DD48 + .incbin "baserom.gba", 0x12DD48, 0x000000C + +gUnk_0812DD54:: @ 0812DD54 + .incbin "baserom.gba", 0x12DD54, 0x000000C + +gUnk_0812DD60:: @ 0812DD60 + .incbin "baserom.gba", 0x12DD60, 0x000000C + +gUnk_0812DD6C:: @ 0812DD6C + .incbin "baserom.gba", 0x12DD6C, 0x000000C + +gUnk_0812DD78:: @ 0812DD78 + .incbin "baserom.gba", 0x12DD78, 0x000000C + +gUnk_0812DD84:: @ 0812DD84 + .incbin "baserom.gba", 0x12DD84, 0x000000C + +gUnk_0812DD90:: @ 0812DD90 + .incbin "baserom.gba", 0x12DD90, 0x000000C + +gUnk_0812DD9C:: @ 0812DD9C + .incbin "baserom.gba", 0x12DD9C, 0x000000C + +gUnk_0812DDA8:: @ 0812DDA8 + .incbin "baserom.gba", 0x12DDA8, 0x000000C + +gUnk_0812DDB4:: @ 0812DDB4 + .incbin "baserom.gba", 0x12DDB4, 0x000000C + +gUnk_0812DDC0:: @ 0812DDC0 + .incbin "baserom.gba", 0x12DDC0, 0x000000C + +gUnk_0812DDCC:: @ 0812DDCC + .incbin "baserom.gba", 0x12DDCC, 0x0000014 + +gUnk_0812DDE0:: @ 0812DDE0 + .incbin "baserom.gba", 0x12DDE0, 0x0000014 + +gUnk_0812DDF4:: @ 0812DDF4 + .incbin "baserom.gba", 0x12DDF4, 0x0000014 + +gUnk_0812DE08:: @ 0812DE08 + .incbin "baserom.gba", 0x12DE08, 0x0000014 + +gUnk_0812DE1C:: @ 0812DE1C + .incbin "baserom.gba", 0x12DE1C, 0x0000014 + +gUnk_0812DE30:: @ 0812DE30 + .incbin "baserom.gba", 0x12DE30, 0x0000010 + +gUnk_0812DE40:: @ 0812DE40 + .incbin "baserom.gba", 0x12DE40, 0x0000014 + +gUnk_0812DE54:: @ 0812DE54 + .incbin "baserom.gba", 0x12DE54, 0x0000014 + +gUnk_0812DE68:: @ 0812DE68 + .incbin "baserom.gba", 0x12DE68, 0x0000014 + +gUnk_0812DE7C:: @ 0812DE7C + .incbin "baserom.gba", 0x12DE7C, 0x0000010 + +gUnk_0812DE8C:: @ 0812DE8C + .incbin "baserom.gba", 0x12DE8C, 0x0000018 + +gUnk_0812DEA4:: @ 0812DEA4 + .incbin "baserom.gba", 0x12DEA4, 0x000000C + +gUnk_0812DEB0:: @ 0812DEB0 + .incbin "baserom.gba", 0x12DEB0, 0x000000C + +gUnk_0812DEBC:: @ 0812DEBC + .incbin "baserom.gba", 0x12DEBC, 0x000000C + +gUnk_0812DEC8:: @ 0812DEC8 + .incbin "baserom.gba", 0x12DEC8, 0x000000C + +gUnk_0812DED4:: @ 0812DED4 + .incbin "baserom.gba", 0x12DED4, 0x000000C + +gUnk_0812DEE0:: @ 0812DEE0 + .incbin "baserom.gba", 0x12DEE0, 0x000000C + +gUnk_0812DEEC:: @ 0812DEEC + .incbin "baserom.gba", 0x12DEEC, 0x000000C + +gUnk_0812DEF8:: @ 0812DEF8 + .incbin "baserom.gba", 0x12DEF8, 0x000000C + +gUnk_0812DF04:: @ 0812DF04 + .incbin "baserom.gba", 0x12DF04, 0x000000C + +gUnk_0812DF10:: @ 0812DF10 + .incbin "baserom.gba", 0x12DF10, 0x000000C + +gUnk_0812DF1C:: @ 0812DF1C + .incbin "baserom.gba", 0x12DF1C, 0x000000C + +gUnk_0812DF28:: @ 0812DF28 + .incbin "baserom.gba", 0x12DF28, 0x000000C + +gUnk_0812DF34:: @ 0812DF34 + .incbin "baserom.gba", 0x12DF34, 0x000000C + +gUnk_0812DF40:: @ 0812DF40 + .incbin "baserom.gba", 0x12DF40, 0x000000C + +gUnk_0812DF4C:: @ 0812DF4C + .incbin "baserom.gba", 0x12DF4C, 0x000000C + +gUnk_0812DF58:: @ 0812DF58 + .incbin "baserom.gba", 0x12DF58, 0x000000C + +gUnk_0812DF64:: @ 0812DF64 + .incbin "baserom.gba", 0x12DF64, 0x000000C + +gUnk_0812DF70:: @ 0812DF70 + .incbin "baserom.gba", 0x12DF70, 0x0000010 + +gUnk_0812DF80:: @ 0812DF80 + .incbin "baserom.gba", 0x12DF80, 0x0000010 + +gUnk_0812DF90:: @ 0812DF90 + .incbin "baserom.gba", 0x12DF90, 0x0000010 + +gUnk_0812DFA0:: @ 0812DFA0 + .incbin "baserom.gba", 0x12DFA0, 0x0000010 + +gUnk_0812DFB0:: @ 0812DFB0 + .incbin "baserom.gba", 0x12DFB0, 0x0000010 + +gUnk_0812DFC0:: @ 0812DFC0 + .incbin "baserom.gba", 0x12DFC0, 0x0000010 + +gUnk_0812DFD0:: @ 0812DFD0 + .incbin "baserom.gba", 0x12DFD0, 0x0000010 + +gUnk_0812DFE0:: @ 0812DFE0 + .incbin "baserom.gba", 0x12DFE0, 0x0000010 + +gUnk_0812DFF0:: @ 0812DFF0 + .incbin "baserom.gba", 0x12DFF0, 0x0000010 + +gUnk_0812E000:: @ 0812E000 + .incbin "baserom.gba", 0x12E000, 0x0000010 + +gUnk_0812E010:: @ 0812E010 + .incbin "baserom.gba", 0x12E010, 0x0000010 + +gUnk_0812E020:: @ 0812E020 + .incbin "baserom.gba", 0x12E020, 0x0000010 + +gUnk_0812E030:: @ 0812E030 + .incbin "baserom.gba", 0x12E030, 0x0000010 + +gUnk_0812E040:: @ 0812E040 + .incbin "baserom.gba", 0x12E040, 0x0000010 + +gUnk_0812E050:: @ 0812E050 + .incbin "baserom.gba", 0x12E050, 0x0000010 + +gUnk_0812E060:: @ 0812E060 + .incbin "baserom.gba", 0x12E060, 0x0000010 + +gUnk_0812E070:: @ 0812E070 + .incbin "baserom.gba", 0x12E070, 0x0000010 + +gUnk_0812E080:: @ 0812E080 + .incbin "baserom.gba", 0x12E080, 0x0000010 + +gUnk_0812E090:: @ 0812E090 + .incbin "baserom.gba", 0x12E090, 0x0000010 + +gUnk_0812E0A0:: @ 0812E0A0 + .incbin "baserom.gba", 0x12E0A0, 0x0000010 + +gUnk_0812E0B0:: @ 0812E0B0 + .incbin "baserom.gba", 0x12E0B0, 0x0000010 + +gUnk_0812E0C0:: @ 0812E0C0 + .incbin "baserom.gba", 0x12E0C0, 0x0000010 + +gUnk_0812E0D0:: @ 0812E0D0 + .incbin "baserom.gba", 0x12E0D0, 0x0000010 + +gUnk_0812E0E0:: @ 0812E0E0 + .incbin "baserom.gba", 0x12E0E0, 0x0000010 + +gUnk_0812E0F0:: @ 0812E0F0 + .incbin "baserom.gba", 0x12E0F0, 0x0000010 + +gUnk_0812E100:: @ 0812E100 + .incbin "baserom.gba", 0x12E100, 0x0000010 + +gUnk_0812E110:: @ 0812E110 + .incbin "baserom.gba", 0x12E110, 0x0000010 + +gUnk_0812E120:: @ 0812E120 + .incbin "baserom.gba", 0x12E120, 0x0000010 + +gUnk_0812E130:: @ 0812E130 + .incbin "baserom.gba", 0x12E130, 0x0000010 + +gUnk_0812E140:: @ 0812E140 + .incbin "baserom.gba", 0x12E140, 0x0000010 + +gUnk_0812E150:: @ 0812E150 + .incbin "baserom.gba", 0x12E150, 0x0000010 + +gUnk_0812E160:: @ 0812E160 + .incbin "baserom.gba", 0x12E160, 0x0000010 + +gUnk_0812E170:: @ 0812E170 + .incbin "baserom.gba", 0x12E170, 0x0000010 + +gUnk_0812E180:: @ 0812E180 + .incbin "baserom.gba", 0x12E180, 0x0000010 + +gUnk_0812E190:: @ 0812E190 + .incbin "baserom.gba", 0x12E190, 0x0000010 + +gUnk_0812E1A0:: @ 0812E1A0 + .incbin "baserom.gba", 0x12E1A0, 0x0000010 + +gUnk_0812E1B0:: @ 0812E1B0 + .incbin "baserom.gba", 0x12E1B0, 0x0000010 + +gUnk_0812E1C0:: @ 0812E1C0 + .incbin "baserom.gba", 0x12E1C0, 0x0000010 + +gUnk_0812E1D0:: @ 0812E1D0 + .incbin "baserom.gba", 0x12E1D0, 0x0000010 + +gUnk_0812E1E0:: @ 0812E1E0 + .incbin "baserom.gba", 0x12E1E0, 0x0000010 + +gUnk_0812E1F0:: @ 0812E1F0 + .incbin "baserom.gba", 0x12E1F0, 0x0000010 + +gUnk_0812E200:: @ 0812E200 + .incbin "baserom.gba", 0x12E200, 0x0000010 + +gUnk_0812E210:: @ 0812E210 + .incbin "baserom.gba", 0x12E210, 0x0000010 + +gUnk_0812E220:: @ 0812E220 + .incbin "baserom.gba", 0x12E220, 0x0000010 + +gUnk_0812E230:: @ 0812E230 + .incbin "baserom.gba", 0x12E230, 0x0000010 + +gUnk_0812E240:: @ 0812E240 + .incbin "baserom.gba", 0x12E240, 0x0000010 + +gUnk_0812E250:: @ 0812E250 + .incbin "baserom.gba", 0x12E250, 0x0000010 + +gUnk_0812E260:: @ 0812E260 + .incbin "baserom.gba", 0x12E260, 0x0000010 + +gUnk_0812E270:: @ 0812E270 + .incbin "baserom.gba", 0x12E270, 0x0000010 + +gUnk_0812E280:: @ 0812E280 + .incbin "baserom.gba", 0x12E280, 0x0000010 + +gUnk_0812E290:: @ 0812E290 + .incbin "baserom.gba", 0x12E290, 0x0000010 + +gUnk_0812E2A0:: @ 0812E2A0 + .incbin "baserom.gba", 0x12E2A0, 0x0000010 + +gUnk_0812E2B0:: @ 0812E2B0 + .incbin "baserom.gba", 0x12E2B0, 0x000000C + +gUnk_0812E2BC:: @ 0812E2BC + .incbin "baserom.gba", 0x12E2BC, 0x0000010 + +gUnk_0812E2CC:: @ 0812E2CC + .incbin "baserom.gba", 0x12E2CC, 0x000000C + +gUnk_0812E2D8:: @ 0812E2D8 + .incbin "baserom.gba", 0x12E2D8, 0x000000C + +gUnk_0812E2E4:: @ 0812E2E4 + .incbin "baserom.gba", 0x12E2E4, 0x000000C + +gUnk_0812E2F0:: @ 0812E2F0 + .incbin "baserom.gba", 0x12E2F0, 0x000000C + +gUnk_0812E2FC:: @ 0812E2FC + .incbin "baserom.gba", 0x12E2FC, 0x0000010 + +gUnk_0812E30C:: @ 0812E30C + .incbin "baserom.gba", 0x12E30C, 0x0000010 + +gUnk_0812E31C:: @ 0812E31C + .incbin "baserom.gba", 0x12E31C, 0x0000010 + +gUnk_0812E32C:: @ 0812E32C + .incbin "baserom.gba", 0x12E32C, 0x0000010 + +gUnk_0812E33C:: @ 0812E33C + .incbin "baserom.gba", 0x12E33C, 0x0000010 + +gUnk_0812E34C:: @ 0812E34C + .incbin "baserom.gba", 0x12E34C, 0x0000010 + +gUnk_0812E35C:: @ 0812E35C + .incbin "baserom.gba", 0x12E35C, 0x0000010 + +gUnk_0812E36C:: @ 0812E36C + .incbin "baserom.gba", 0x12E36C, 0x0000010 + +gUnk_0812E37C:: @ 0812E37C + .incbin "baserom.gba", 0x12E37C, 0x0000010 + +gUnk_0812E38C:: @ 0812E38C + .incbin "baserom.gba", 0x12E38C, 0x0000010 + +gUnk_0812E39C:: @ 0812E39C + .incbin "baserom.gba", 0x12E39C, 0x0000010 + +gUnk_0812E3AC:: @ 0812E3AC + .incbin "baserom.gba", 0x12E3AC, 0x0000010 + +gUnk_0812E3BC:: @ 0812E3BC + .incbin "baserom.gba", 0x12E3BC, 0x0000010 + +gUnk_0812E3CC:: @ 0812E3CC + .incbin "baserom.gba", 0x12E3CC, 0x0000010 + +gUnk_0812E3DC:: @ 0812E3DC + .incbin "baserom.gba", 0x12E3DC, 0x0000010 + +gUnk_0812E3EC:: @ 0812E3EC + .incbin "baserom.gba", 0x12E3EC, 0x0000010 + +gUnk_0812E3FC:: @ 0812E3FC + .incbin "baserom.gba", 0x12E3FC, 0x0000010 + +gUnk_0812E40C:: @ 0812E40C + .incbin "baserom.gba", 0x12E40C, 0x0000010 + +gUnk_0812E41C:: @ 0812E41C + .incbin "baserom.gba", 0x12E41C, 0x0000010 + +gUnk_0812E42C:: @ 0812E42C + .incbin "baserom.gba", 0x12E42C, 0x0000010 + +gUnk_0812E43C:: @ 0812E43C + .incbin "baserom.gba", 0x12E43C, 0x0000010 + +gUnk_0812E44C:: @ 0812E44C + .incbin "baserom.gba", 0x12E44C, 0x0000010 + +gUnk_0812E45C:: @ 0812E45C + .incbin "baserom.gba", 0x12E45C, 0x0000010 + +gUnk_0812E46C:: @ 0812E46C + .incbin "baserom.gba", 0x12E46C, 0x0000014 + +gUnk_0812E480:: @ 0812E480 + .incbin "baserom.gba", 0x12E480, 0x0000014 + +gUnk_0812E494:: @ 0812E494 + .incbin "baserom.gba", 0x12E494, 0x0000014 + +gUnk_0812E4A8:: @ 0812E4A8 + .incbin "baserom.gba", 0x12E4A8, 0x0000014 + +gUnk_0812E4BC:: @ 0812E4BC + .incbin "baserom.gba", 0x12E4BC, 0x0000014 + +gUnk_0812E4D0:: @ 0812E4D0 + .incbin "baserom.gba", 0x12E4D0, 0x0000014 + +gUnk_0812E4E4:: @ 0812E4E4 + .incbin "baserom.gba", 0x12E4E4, 0x0000014 + +gUnk_0812E4F8:: @ 0812E4F8 + .incbin "baserom.gba", 0x12E4F8, 0x0000014 + +gUnk_0812E50C:: @ 0812E50C + .incbin "baserom.gba", 0x12E50C, 0x0000014 + +gUnk_0812E520:: @ 0812E520 + .incbin "baserom.gba", 0x12E520, 0x0000014 + +gUnk_0812E534:: @ 0812E534 + .incbin "baserom.gba", 0x12E534, 0x0000014 + +gUnk_0812E548:: @ 0812E548 + .incbin "baserom.gba", 0x12E548, 0x0000014 + +gUnk_0812E55C:: @ 0812E55C + .incbin "baserom.gba", 0x12E55C, 0x0000014 + +gUnk_0812E570:: @ 0812E570 + .incbin "baserom.gba", 0x12E570, 0x0000014 + +gUnk_0812E584:: @ 0812E584 + .incbin "baserom.gba", 0x12E584, 0x0000014 + +gUnk_0812E598:: @ 0812E598 + .incbin "baserom.gba", 0x12E598, 0x0000014 + +gUnk_0812E5AC:: @ 0812E5AC + .incbin "baserom.gba", 0x12E5AC, 0x0000014 + +gUnk_0812E5C0:: @ 0812E5C0 + .incbin "baserom.gba", 0x12E5C0, 0x0000014 + +gUnk_0812E5D4:: @ 0812E5D4 + .incbin "baserom.gba", 0x12E5D4, 0x0000014 + +gUnk_0812E5E8:: @ 0812E5E8 + .incbin "baserom.gba", 0x12E5E8, 0x0000014 + +gUnk_0812E5FC:: @ 0812E5FC + .incbin "baserom.gba", 0x12E5FC, 0x0000248 + +gUnk_0812E844:: @ 0812E844 + .incbin "baserom.gba", 0x12E844, 0x0000008 + +gUnk_0812E84C:: @ 0812E84C + .incbin "baserom.gba", 0x12E84C, 0x0000008 + +gUnk_0812E854:: @ 0812E854 + .incbin "baserom.gba", 0x12E854, 0x0000008 + +gUnk_0812E85C:: @ 0812E85C + .incbin "baserom.gba", 0x12E85C, 0x0000008 + +gUnk_0812E864:: @ 0812E864 + .incbin "baserom.gba", 0x12E864, 0x0000008 + +gUnk_0812E86C:: @ 0812E86C + .incbin "baserom.gba", 0x12E86C, 0x0000008 + +gUnk_0812E874:: @ 0812E874 + .incbin "baserom.gba", 0x12E874, 0x0000018 + +gUnk_0812E88C:: @ 0812E88C + .incbin "baserom.gba", 0x12E88C, 0x0000018 + +gUnk_0812E8A4:: @ 0812E8A4 + .incbin "baserom.gba", 0x12E8A4, 0x0000018 + +gUnk_0812E8BC:: @ 0812E8BC + .incbin "baserom.gba", 0x12E8BC, 0x0000010 + +gUnk_0812E8CC:: @ 0812E8CC + .incbin "baserom.gba", 0x12E8CC, 0x0000010 + +gUnk_0812E8DC:: @ 0812E8DC + .incbin "baserom.gba", 0x12E8DC, 0x0000018 + +gUnk_0812E8F4:: @ 0812E8F4 + .incbin "baserom.gba", 0x12E8F4, 0x0000009 + +gUnk_0812E8FD:: @ 0812E8FD + .incbin "baserom.gba", 0x12E8FD, 0x0000007 + +gUnk_0812E904:: @ 0812E904 + .incbin "baserom.gba", 0x12E904, 0x0000010 + +gUnk_0812E914:: @ 0812E914 + .incbin "baserom.gba", 0x12E914, 0x0000018 + +gUnk_0812E92C:: @ 0812E92C + .incbin "baserom.gba", 0x12E92C, 0x0000014 + +gUnk_0812E940:: @ 0812E940 + .incbin "baserom.gba", 0x12E940, 0x0000018 + +gUnk_0812E958:: @ 0812E958 + .incbin "baserom.gba", 0x12E958, 0x0000018 + +gUnk_0812E970:: @ 0812E970 + .incbin "baserom.gba", 0x12E970, 0x0000018 + +gUnk_0812E988:: @ 0812E988 + .incbin "baserom.gba", 0x12E988, 0x0000014 + +gUnk_0812E99C:: @ 0812E99C + .incbin "baserom.gba", 0x12E99C, 0x0000014 + +gUnk_0812E9B0:: @ 0812E9B0 + .incbin "baserom.gba", 0x12E9B0, 0x0000014 + +gUnk_0812E9C4:: @ 0812E9C4 + .incbin "baserom.gba", 0x12E9C4, 0x0000014 + +gUnk_0812E9D8:: @ 0812E9D8 + .incbin "baserom.gba", 0x12E9D8, 0x0000018 + +gUnk_0812E9F0:: @ 0812E9F0 + .incbin "baserom.gba", 0x12E9F0, 0x0000018 + +gUnk_0812EA08:: @ 0812EA08 + .incbin "baserom.gba", 0x12EA08, 0x0000018 + +gUnk_0812EA20:: @ 0812EA20 + .incbin "baserom.gba", 0x12EA20, 0x0000018 + +gUnk_0812EA38:: @ 0812EA38 + .incbin "baserom.gba", 0x12EA38, 0x0000018 + +gUnk_0812EA50:: @ 0812EA50 + .incbin "baserom.gba", 0x12EA50, 0x0000018 + +gUnk_0812EA68:: @ 0812EA68 + .incbin "baserom.gba", 0x12EA68, 0x0000018 + +gUnk_0812EA80:: @ 0812EA80 + .incbin "baserom.gba", 0x12EA80, 0x0000018 + +gUnk_0812EA98:: @ 0812EA98 + .incbin "baserom.gba", 0x12EA98, 0x0000018 + +gUnk_0812EAB0:: @ 0812EAB0 + .incbin "baserom.gba", 0x12EAB0, 0x000001C + +gUnk_0812EACC:: @ 0812EACC + .incbin "baserom.gba", 0x12EACC, 0x000000C + +gUnk_0812EAD8:: @ 0812EAD8 + .incbin "baserom.gba", 0x12EAD8, 0x0000010 + +gUnk_0812EAE8:: @ 0812EAE8 + .incbin "baserom.gba", 0x12EAE8, 0x000001C + +gUnk_0812EB04:: @ 0812EB04 + .incbin "baserom.gba", 0x12EB04, 0x0000018 + +gUnk_0812EB1C:: @ 0812EB1C + .incbin "baserom.gba", 0x12EB1C, 0x0000018 + +gUnk_0812EB34:: @ 0812EB34 + .incbin "baserom.gba", 0x12EB34, 0x000001C + +gUnk_0812EB50:: @ 0812EB50 + .incbin "baserom.gba", 0x12EB50, 0x000001C + +gUnk_0812EB6C:: @ 0812EB6C + .incbin "baserom.gba", 0x12EB6C, 0x000001C + +gUnk_0812EB88:: @ 0812EB88 + .incbin "baserom.gba", 0x12EB88, 0x000001C + +gUnk_0812EBA4:: @ 0812EBA4 + .incbin "baserom.gba", 0x12EBA4, 0x000001C + +gUnk_0812EBC0:: @ 0812EBC0 + .incbin "baserom.gba", 0x12EBC0, 0x0000018 + +gUnk_0812EBD8:: @ 0812EBD8 + .incbin "baserom.gba", 0x12EBD8, 0x0000018 + +gUnk_0812EBF0:: @ 0812EBF0 + .incbin "baserom.gba", 0x12EBF0, 0x0000018 + +gUnk_0812EC08:: @ 0812EC08 + .incbin "baserom.gba", 0x12EC08, 0x0000018 + +gUnk_0812EC20:: @ 0812EC20 + .incbin "baserom.gba", 0x12EC20, 0x0000014 + +gUnk_0812EC34:: @ 0812EC34 + .incbin "baserom.gba", 0x12EC34, 0x0000014 + +gUnk_0812EC48:: @ 0812EC48 + .incbin "baserom.gba", 0x12EC48, 0x0000018 + +gUnk_0812EC60:: @ 0812EC60 + .incbin "baserom.gba", 0x12EC60, 0x0000018 + +gUnk_0812EC78:: @ 0812EC78 + .incbin "baserom.gba", 0x12EC78, 0x0000018 + +gUnk_0812EC90:: @ 0812EC90 + .incbin "baserom.gba", 0x12EC90, 0x0000018 + +gUnk_0812ECA8:: @ 0812ECA8 + .incbin "baserom.gba", 0x12ECA8, 0x0000018 + +gUnk_0812ECC0:: @ 0812ECC0 + .incbin "baserom.gba", 0x12ECC0, 0x0000018 + +gUnk_0812ECD8:: @ 0812ECD8 + .incbin "baserom.gba", 0x12ECD8, 0x0000018 + +gUnk_0812ECF0:: @ 0812ECF0 + .incbin "baserom.gba", 0x12ECF0, 0x0000018 + +gUnk_0812ED08:: @ 0812ED08 + .incbin "baserom.gba", 0x12ED08, 0x0000018 + +gUnk_0812ED20:: @ 0812ED20 + .incbin "baserom.gba", 0x12ED20, 0x0000018 + +gUnk_0812ED38:: @ 0812ED38 + .incbin "baserom.gba", 0x12ED38, 0x0000018 + +gUnk_0812ED50:: @ 0812ED50 + .incbin "baserom.gba", 0x12ED50, 0x0000018 + +gUnk_0812ED68:: @ 0812ED68 + .incbin "baserom.gba", 0x12ED68, 0x0000018 + +gUnk_0812ED80:: @ 0812ED80 + .incbin "baserom.gba", 0x12ED80, 0x0000018 + +gUnk_0812ED98:: @ 0812ED98 + .incbin "baserom.gba", 0x12ED98, 0x0000018 + +gUnk_0812EDB0:: @ 0812EDB0 + .incbin "baserom.gba", 0x12EDB0, 0x0000018 + +gUnk_0812EDC8:: @ 0812EDC8 + .incbin "baserom.gba", 0x12EDC8, 0x0000018 + +gUnk_0812EDE0:: @ 0812EDE0 + .incbin "baserom.gba", 0x12EDE0, 0x0000018 + +gUnk_0812EDF8:: @ 0812EDF8 + .incbin "baserom.gba", 0x12EDF8, 0x0000018 + +gUnk_0812EE10:: @ 0812EE10 + .incbin "baserom.gba", 0x12EE10, 0x0000018 + +gUnk_0812EE28:: @ 0812EE28 + .incbin "baserom.gba", 0x12EE28, 0x0000018 + +gUnk_0812EE40:: @ 0812EE40 + .incbin "baserom.gba", 0x12EE40, 0x0000014 + +gUnk_0812EE54:: @ 0812EE54 + .incbin "baserom.gba", 0x12EE54, 0x0000014 + +gUnk_0812EE68:: @ 0812EE68 + .incbin "baserom.gba", 0x12EE68, 0x0000014 + +gUnk_0812EE7C:: @ 0812EE7C + .incbin "baserom.gba", 0x12EE7C, 0x0000014 + +gUnk_0812EE90:: @ 0812EE90 + .incbin "baserom.gba", 0x12EE90, 0x0000014 + +gUnk_0812EEA4:: @ 0812EEA4 + .incbin "baserom.gba", 0x12EEA4, 0x0000014 + +gUnk_0812EEB8:: @ 0812EEB8 + .incbin "baserom.gba", 0x12EEB8, 0x0000014 + +gUnk_0812EECC:: @ 0812EECC + .incbin "baserom.gba", 0x12EECC, 0x0000014 + +gUnk_0812EEE0:: @ 0812EEE0 + .incbin "baserom.gba", 0x12EEE0, 0x0000014 + +gUnk_0812EEF4:: @ 0812EEF4 + .incbin "baserom.gba", 0x12EEF4, 0x0000014 + +gUnk_0812EF08:: @ 0812EF08 + .incbin "baserom.gba", 0x12EF08, 0x0000014 + +gUnk_0812EF1C:: @ 0812EF1C + .incbin "baserom.gba", 0x12EF1C, 0x0000003 + +gUnk_0812EF1F:: @ 0812EF1F + .incbin "baserom.gba", 0x12EF1F, 0x0000011 + +gUnk_0812EF30:: @ 0812EF30 + .incbin "baserom.gba", 0x12EF30, 0x0000014 + +gUnk_0812EF44:: @ 0812EF44 + .incbin "baserom.gba", 0x12EF44, 0x0000018 + +gUnk_0812EF5C:: @ 0812EF5C + .incbin "baserom.gba", 0x12EF5C, 0x0000018 + +gUnk_0812EF74:: @ 0812EF74 + .incbin "baserom.gba", 0x12EF74, 0x0000018 + +gUnk_0812EF8C:: @ 0812EF8C + .incbin "baserom.gba", 0x12EF8C, 0x000001C + +gUnk_0812EFA8:: @ 0812EFA8 + .incbin "baserom.gba", 0x12EFA8, 0x0000018 + +gUnk_0812EFC0:: @ 0812EFC0 + .incbin "baserom.gba", 0x12EFC0, 0x0000018 + +gUnk_0812EFD8:: @ 0812EFD8 + .incbin "baserom.gba", 0x12EFD8, 0x0000018 + +gUnk_0812EFF0:: @ 0812EFF0 + .incbin "baserom.gba", 0x12EFF0, 0x0000018 + +gUnk_0812F008:: @ 0812F008 + .incbin "baserom.gba", 0x12F008, 0x0000018 + +gUnk_0812F020:: @ 0812F020 + .incbin "baserom.gba", 0x12F020, 0x0000018 + +gUnk_0812F038:: @ 0812F038 + .incbin "baserom.gba", 0x12F038, 0x0000018 + +gUnk_0812F050:: @ 0812F050 + .incbin "baserom.gba", 0x12F050, 0x0000018 + +gUnk_0812F068:: @ 0812F068 + .incbin "baserom.gba", 0x12F068, 0x0000018 + +gUnk_0812F080:: @ 0812F080 + .incbin "baserom.gba", 0x12F080, 0x0000018 + +gUnk_0812F098:: @ 0812F098 + .incbin "baserom.gba", 0x12F098, 0x0000018 + +gUnk_0812F0B0:: @ 0812F0B0 + .incbin "baserom.gba", 0x12F0B0, 0x0000018 + +gUnk_0812F0C8:: @ 0812F0C8 + .incbin "baserom.gba", 0x12F0C8, 0x0000018 + +gUnk_0812F0E0:: @ 0812F0E0 + .incbin "baserom.gba", 0x12F0E0, 0x0000018 + +gUnk_0812F0F8:: @ 0812F0F8 + .incbin "baserom.gba", 0x12F0F8, 0x0000018 + +gUnk_0812F110:: @ 0812F110 + .incbin "baserom.gba", 0x12F110, 0x0000018 + +gUnk_0812F128:: @ 0812F128 + .incbin "baserom.gba", 0x12F128, 0x0000018 + +gUnk_0812F140:: @ 0812F140 + .incbin "baserom.gba", 0x12F140, 0x0000018 + +gUnk_0812F158:: @ 0812F158 + .incbin "baserom.gba", 0x12F158, 0x0000018 + +gUnk_0812F170:: @ 0812F170 + .incbin "baserom.gba", 0x12F170, 0x0000018 + +gUnk_0812F188:: @ 0812F188 + .incbin "baserom.gba", 0x12F188, 0x0000018 + +gUnk_0812F1A0:: @ 0812F1A0 + .incbin "baserom.gba", 0x12F1A0, 0x0000018 + +gUnk_0812F1B8:: @ 0812F1B8 + .incbin "baserom.gba", 0x12F1B8, 0x0000018 + +gUnk_0812F1D0:: @ 0812F1D0 + .incbin "baserom.gba", 0x12F1D0, 0x0000018 + +gUnk_0812F1E8:: @ 0812F1E8 + .incbin "baserom.gba", 0x12F1E8, 0x0000018 + +gUnk_0812F200:: @ 0812F200 + .incbin "baserom.gba", 0x12F200, 0x0000018 + +gUnk_0812F218:: @ 0812F218 + .incbin "baserom.gba", 0x12F218, 0x0000018 + +gUnk_0812F230:: @ 0812F230 + .incbin "baserom.gba", 0x12F230, 0x0000018 + +gUnk_0812F248:: @ 0812F248 + .incbin "baserom.gba", 0x12F248, 0x0000018 + +gUnk_0812F260:: @ 0812F260 + .incbin "baserom.gba", 0x12F260, 0x0000018 + +gUnk_0812F278:: @ 0812F278 + .incbin "baserom.gba", 0x12F278, 0x0000018 + +gUnk_0812F290:: @ 0812F290 + .incbin "baserom.gba", 0x12F290, 0x0000018 + +gUnk_0812F2A8:: @ 0812F2A8 + .incbin "baserom.gba", 0x12F2A8, 0x0000018 + +gUnk_0812F2C0:: @ 0812F2C0 + .incbin "baserom.gba", 0x12F2C0, 0x0000018 + +gUnk_0812F2D8:: @ 0812F2D8 + .incbin "baserom.gba", 0x12F2D8, 0x0000018 + +gUnk_0812F2F0:: @ 0812F2F0 + .incbin "baserom.gba", 0x12F2F0, 0x0000018 + +gUnk_0812F308:: @ 0812F308 + .incbin "baserom.gba", 0x12F308, 0x0000018 + +gUnk_0812F320:: @ 0812F320 + .incbin "baserom.gba", 0x12F320, 0x0000018 + +gUnk_0812F338:: @ 0812F338 + .incbin "baserom.gba", 0x12F338, 0x0000018 + +gUnk_0812F350:: @ 0812F350 + .incbin "baserom.gba", 0x12F350, 0x0000018 + +gUnk_0812F368:: @ 0812F368 + .incbin "baserom.gba", 0x12F368, 0x0000018 + +gUnk_0812F380:: @ 0812F380 + .incbin "baserom.gba", 0x12F380, 0x0000018 + +gUnk_0812F398:: @ 0812F398 + .incbin "baserom.gba", 0x12F398, 0x0000018 + +gUnk_0812F3B0:: @ 0812F3B0 + .incbin "baserom.gba", 0x12F3B0, 0x0000018 + +gUnk_0812F3C8:: @ 0812F3C8 + .incbin "baserom.gba", 0x12F3C8, 0x0000018 + +gUnk_0812F3E0:: @ 0812F3E0 + .incbin "baserom.gba", 0x12F3E0, 0x0000018 + +gUnk_0812F3F8:: @ 0812F3F8 + .incbin "baserom.gba", 0x12F3F8, 0x0000018 + +gUnk_0812F410:: @ 0812F410 + .incbin "baserom.gba", 0x12F410, 0x0000018 + +gUnk_0812F428:: @ 0812F428 + .incbin "baserom.gba", 0x12F428, 0x0000018 + +gUnk_0812F440:: @ 0812F440 + .incbin "baserom.gba", 0x12F440, 0x0000018 + +gUnk_0812F458:: @ 0812F458 + .incbin "baserom.gba", 0x12F458, 0x0000018 + +gUnk_0812F470:: @ 0812F470 + .incbin "baserom.gba", 0x12F470, 0x0000014 + +gUnk_0812F484:: @ 0812F484 + .incbin "baserom.gba", 0x12F484, 0x0000010 + +gUnk_0812F494:: @ 0812F494 + .incbin "baserom.gba", 0x12F494, 0x0000170 + +gUnk_0812F604:: @ 0812F604 + .incbin "baserom.gba", 0x12F604, 0x0000010 + +gUnk_0812F614:: @ 0812F614 + .incbin "baserom.gba", 0x12F614, 0x0000010 + +gUnk_0812F624:: @ 0812F624 + .incbin "baserom.gba", 0x12F624, 0x000000C + +gUnk_0812F630:: @ 0812F630 + .incbin "baserom.gba", 0x12F630, 0x000000C + +gUnk_0812F63C:: @ 0812F63C + .incbin "baserom.gba", 0x12F63C, 0x000000C + +gUnk_0812F648:: @ 0812F648 + .incbin "baserom.gba", 0x12F648, 0x000000C + +gUnk_0812F654:: @ 0812F654 + .incbin "baserom.gba", 0x12F654, 0x0000010 + +gUnk_0812F664:: @ 0812F664 + .incbin "baserom.gba", 0x12F664, 0x000000C + +gUnk_0812F670:: @ 0812F670 + .incbin "baserom.gba", 0x12F670, 0x0000010 + +gUnk_0812F680:: @ 0812F680 + .incbin "baserom.gba", 0x12F680, 0x000000C + +gUnk_0812F68C:: @ 0812F68C + .incbin "baserom.gba", 0x12F68C, 0x000000C + +gUnk_0812F698:: @ 0812F698 + .incbin "baserom.gba", 0x12F698, 0x000000C + +gUnk_0812F6A4:: @ 0812F6A4 + .incbin "baserom.gba", 0x12F6A4, 0x000000C + +gUnk_0812F6B0:: @ 0812F6B0 + .incbin "baserom.gba", 0x12F6B0, 0x000000C + +gUnk_0812F6BC:: @ 0812F6BC + .incbin "baserom.gba", 0x12F6BC, 0x0000010 + +gUnk_0812F6CC:: @ 0812F6CC + .incbin "baserom.gba", 0x12F6CC, 0x0000010 + +gUnk_0812F6DC:: @ 0812F6DC + .incbin "baserom.gba", 0x12F6DC, 0x0000010 + +gUnk_0812F6EC:: @ 0812F6EC + .incbin "baserom.gba", 0x12F6EC, 0x000000C + +gUnk_0812F6F8:: @ 0812F6F8 + .incbin "baserom.gba", 0x12F6F8, 0x000000C + +gUnk_0812F704:: @ 0812F704 + .incbin "baserom.gba", 0x12F704, 0x000000C + +gUnk_0812F710:: @ 0812F710 + .incbin "baserom.gba", 0x12F710, 0x000000C + +gUnk_0812F71C:: @ 0812F71C + .incbin "baserom.gba", 0x12F71C, 0x000000C + +gUnk_0812F728:: @ 0812F728 + .incbin "baserom.gba", 0x12F728, 0x000000C + +gUnk_0812F734:: @ 0812F734 + .incbin "baserom.gba", 0x12F734, 0x000000C + +gUnk_0812F740:: @ 0812F740 + .incbin "baserom.gba", 0x12F740, 0x000000C + +gUnk_0812F74C:: @ 0812F74C + .incbin "baserom.gba", 0x12F74C, 0x000000C + +gUnk_0812F758:: @ 0812F758 + .incbin "baserom.gba", 0x12F758, 0x000000C + +gUnk_0812F764:: @ 0812F764 + .incbin "baserom.gba", 0x12F764, 0x000000C + +gUnk_0812F770:: @ 0812F770 + .incbin "baserom.gba", 0x12F770, 0x000000C + +gUnk_0812F77C:: @ 0812F77C + .incbin "baserom.gba", 0x12F77C, 0x000000C + +gUnk_0812F788:: @ 0812F788 + .incbin "baserom.gba", 0x12F788, 0x000000C + +gUnk_0812F794:: @ 0812F794 + .incbin "baserom.gba", 0x12F794, 0x0000010 + +gUnk_0812F7A4:: @ 0812F7A4 + .incbin "baserom.gba", 0x12F7A4, 0x000000C + +gUnk_0812F7B0:: @ 0812F7B0 + .incbin "baserom.gba", 0x12F7B0, 0x000000C + +gUnk_0812F7BC:: @ 0812F7BC + .incbin "baserom.gba", 0x12F7BC, 0x000000C + +gUnk_0812F7C8:: @ 0812F7C8 + .incbin "baserom.gba", 0x12F7C8, 0x0000010 + +gUnk_0812F7D8:: @ 0812F7D8 + .incbin "baserom.gba", 0x12F7D8, 0x000000C + +gUnk_0812F7E4:: @ 0812F7E4 + .incbin "baserom.gba", 0x12F7E4, 0x000000C + +gUnk_0812F7F0:: @ 0812F7F0 + .incbin "baserom.gba", 0x12F7F0, 0x000000C + +gUnk_0812F7FC:: @ 0812F7FC + .incbin "baserom.gba", 0x12F7FC, 0x000000C + +gUnk_0812F808:: @ 0812F808 + .incbin "baserom.gba", 0x12F808, 0x0000010 + +gUnk_0812F818:: @ 0812F818 + .incbin "baserom.gba", 0x12F818, 0x000000C + +gUnk_0812F824:: @ 0812F824 + .incbin "baserom.gba", 0x12F824, 0x0000010 + +gUnk_0812F834:: @ 0812F834 + .incbin "baserom.gba", 0x12F834, 0x000000C + +gUnk_0812F840:: @ 0812F840 + .incbin "baserom.gba", 0x12F840, 0x000000C + +gUnk_0812F84C:: @ 0812F84C + .incbin "baserom.gba", 0x12F84C, 0x000000C + +gUnk_0812F858:: @ 0812F858 + .incbin "baserom.gba", 0x12F858, 0x000000C + +gUnk_0812F864:: @ 0812F864 + .incbin "baserom.gba", 0x12F864, 0x000000C + +gUnk_0812F870:: @ 0812F870 + .incbin "baserom.gba", 0x12F870, 0x000000C + +gUnk_0812F87C:: @ 0812F87C + .incbin "baserom.gba", 0x12F87C, 0x0000010 + +gUnk_0812F88C:: @ 0812F88C + .incbin "baserom.gba", 0x12F88C, 0x000000C + +gUnk_0812F898:: @ 0812F898 + .incbin "baserom.gba", 0x12F898, 0x000000C + +gUnk_0812F8A4:: @ 0812F8A4 + .incbin "baserom.gba", 0x12F8A4, 0x000000C + +gUnk_0812F8B0:: @ 0812F8B0 + .incbin "baserom.gba", 0x12F8B0, 0x000000C + +gUnk_0812F8BC:: @ 0812F8BC + .incbin "baserom.gba", 0x12F8BC, 0x000000C + +gUnk_0812F8C8:: @ 0812F8C8 + .incbin "baserom.gba", 0x12F8C8, 0x000000C + +gUnk_0812F8D4:: @ 0812F8D4 + .incbin "baserom.gba", 0x12F8D4, 0x000000C + +gUnk_0812F8E0:: @ 0812F8E0 + .incbin "baserom.gba", 0x12F8E0, 0x000000C + +gUnk_0812F8EC:: @ 0812F8EC + .incbin "baserom.gba", 0x12F8EC, 0x0000008 + +gUnk_0812F8F4:: @ 0812F8F4 + .incbin "baserom.gba", 0x12F8F4, 0x0000001 + +gUnk_0812F8F5:: @ 0812F8F5 + .incbin "baserom.gba", 0x12F8F5, 0x0000003 + +gUnk_0812F8F8:: @ 0812F8F8 + .incbin "baserom.gba", 0x12F8F8, 0x000000C + +gUnk_0812F904:: @ 0812F904 + .incbin "baserom.gba", 0x12F904, 0x000000C + +gUnk_0812F910:: @ 0812F910 + .incbin "baserom.gba", 0x12F910, 0x000000C + +gUnk_0812F91C:: @ 0812F91C + .incbin "baserom.gba", 0x12F91C, 0x000000C + +gUnk_0812F928:: @ 0812F928 + .incbin "baserom.gba", 0x12F928, 0x000000C + +gUnk_0812F934:: @ 0812F934 + .incbin "baserom.gba", 0x12F934, 0x000000C + +gUnk_0812F940:: @ 0812F940 + .incbin "baserom.gba", 0x12F940, 0x000000C + +gUnk_0812F94C:: @ 0812F94C + .incbin "baserom.gba", 0x12F94C, 0x000000C + +gUnk_0812F958:: @ 0812F958 + .incbin "baserom.gba", 0x12F958, 0x000000C + +gUnk_0812F964:: @ 0812F964 + .incbin "baserom.gba", 0x12F964, 0x000000C + +gUnk_0812F970:: @ 0812F970 + .incbin "baserom.gba", 0x12F970, 0x000000C + +gUnk_0812F97C:: @ 0812F97C + .incbin "baserom.gba", 0x12F97C, 0x000000C + +gUnk_0812F988:: @ 0812F988 + .incbin "baserom.gba", 0x12F988, 0x000000C + +gUnk_0812F994:: @ 0812F994 + .incbin "baserom.gba", 0x12F994, 0x000000C + +gUnk_0812F9A0:: @ 0812F9A0 + .incbin "baserom.gba", 0x12F9A0, 0x000000C + +gUnk_0812F9AC:: @ 0812F9AC + .incbin "baserom.gba", 0x12F9AC, 0x000000C + +gUnk_0812F9B8:: @ 0812F9B8 + .incbin "baserom.gba", 0x12F9B8, 0x000000C + +gUnk_0812F9C4:: @ 0812F9C4 + .incbin "baserom.gba", 0x12F9C4, 0x000000C + +gUnk_0812F9D0:: @ 0812F9D0 + .incbin "baserom.gba", 0x12F9D0, 0x000000C + +gUnk_0812F9DC:: @ 0812F9DC + .incbin "baserom.gba", 0x12F9DC, 0x000000C + +gUnk_0812F9E8:: @ 0812F9E8 + .incbin "baserom.gba", 0x12F9E8, 0x000000C + +gUnk_0812F9F4:: @ 0812F9F4 + .incbin "baserom.gba", 0x12F9F4, 0x000000C + +gUnk_0812FA00:: @ 0812FA00 + .incbin "baserom.gba", 0x12FA00, 0x000000C + +gUnk_0812FA0C:: @ 0812FA0C + .incbin "baserom.gba", 0x12FA0C, 0x0000001 + +gUnk_0812FA0D:: @ 0812FA0D + .incbin "baserom.gba", 0x12FA0D, 0x000000B + +gUnk_0812FA18:: @ 0812FA18 + .incbin "baserom.gba", 0x12FA18, 0x000000C + +gUnk_0812FA24:: @ 0812FA24 + .incbin "baserom.gba", 0x12FA24, 0x000000C + +gUnk_0812FA30:: @ 0812FA30 + .incbin "baserom.gba", 0x12FA30, 0x00000CD + +gUnk_0812FAFD:: @ 0812FAFD + .incbin "baserom.gba", 0x12FAFD, 0x0000057 + +gUnk_0812FB54:: @ 0812FB54 + .incbin "baserom.gba", 0x12FB54, 0x0000010 + +gUnk_0812FB64:: @ 0812FB64 + .incbin "baserom.gba", 0x12FB64, 0x0000010 + +gUnk_0812FB74:: @ 0812FB74 + .incbin "baserom.gba", 0x12FB74, 0x000000C + +gUnk_0812FB80:: @ 0812FB80 + .incbin "baserom.gba", 0x12FB80, 0x000000C + +gUnk_0812FB8C:: @ 0812FB8C + .incbin "baserom.gba", 0x12FB8C, 0x000000C + +gUnk_0812FB98:: @ 0812FB98 + .incbin "baserom.gba", 0x12FB98, 0x000000C + +gUnk_0812FBA4:: @ 0812FBA4 + .incbin "baserom.gba", 0x12FBA4, 0x000000C + +gUnk_0812FBB0:: @ 0812FBB0 + .incbin "baserom.gba", 0x12FBB0, 0x000000C + +gUnk_0812FBBC:: @ 0812FBBC + .incbin "baserom.gba", 0x12FBBC, 0x000000C + +gUnk_0812FBC8:: @ 0812FBC8 + .incbin "baserom.gba", 0x12FBC8, 0x000000C + +gUnk_0812FBD4:: @ 0812FBD4 + .incbin "baserom.gba", 0x12FBD4, 0x0000010 + +gUnk_0812FBE4:: @ 0812FBE4 + .incbin "baserom.gba", 0x12FBE4, 0x000000C + +gUnk_0812FBF0:: @ 0812FBF0 + .incbin "baserom.gba", 0x12FBF0, 0x000000C + +gUnk_0812FBFC:: @ 0812FBFC + .incbin "baserom.gba", 0x12FBFC, 0x000000C + +gUnk_0812FC08:: @ 0812FC08 + .incbin "baserom.gba", 0x12FC08, 0x000000C + +gUnk_0812FC14:: @ 0812FC14 + .incbin "baserom.gba", 0x12FC14, 0x000000C + +gUnk_0812FC20:: @ 0812FC20 + .incbin "baserom.gba", 0x12FC20, 0x000000C + +gUnk_0812FC2C:: @ 0812FC2C + .incbin "baserom.gba", 0x12FC2C, 0x0000010 + +gUnk_0812FC3C:: @ 0812FC3C + .incbin "baserom.gba", 0x12FC3C, 0x000000C + +gUnk_0812FC48:: @ 0812FC48 + .incbin "baserom.gba", 0x12FC48, 0x000000C + +gUnk_0812FC54:: @ 0812FC54 + .incbin "baserom.gba", 0x12FC54, 0x000000C + +gUnk_0812FC60:: @ 0812FC60 + .incbin "baserom.gba", 0x12FC60, 0x000000C + +gUnk_0812FC6C:: @ 0812FC6C + .incbin "baserom.gba", 0x12FC6C, 0x000000C + +gUnk_0812FC78:: @ 0812FC78 + .incbin "baserom.gba", 0x12FC78, 0x000000C + +gUnk_0812FC84:: @ 0812FC84 + .incbin "baserom.gba", 0x12FC84, 0x000000C + +gUnk_0812FC90:: @ 0812FC90 + .incbin "baserom.gba", 0x12FC90, 0x000000C + +gUnk_0812FC9C:: @ 0812FC9C + .incbin "baserom.gba", 0x12FC9C, 0x000000C + +gUnk_0812FCA8:: @ 0812FCA8 + .incbin "baserom.gba", 0x12FCA8, 0x000000C + +gUnk_0812FCB4:: @ 0812FCB4 + .incbin "baserom.gba", 0x12FCB4, 0x000000C + +gUnk_0812FCC0:: @ 0812FCC0 + .incbin "baserom.gba", 0x12FCC0, 0x000000C + +gUnk_0812FCCC:: @ 0812FCCC + .incbin "baserom.gba", 0x12FCCC, 0x000000C + +gUnk_0812FCD8:: @ 0812FCD8 + .incbin "baserom.gba", 0x12FCD8, 0x000000C + +gUnk_0812FCE4:: @ 0812FCE4 + .incbin "baserom.gba", 0x12FCE4, 0x000000C + +gUnk_0812FCF0:: @ 0812FCF0 + .incbin "baserom.gba", 0x12FCF0, 0x0000010 + +gUnk_0812FD00:: @ 0812FD00 + .incbin "baserom.gba", 0x12FD00, 0x000000C + +gUnk_0812FD0C:: @ 0812FD0C + .incbin "baserom.gba", 0x12FD0C, 0x0000010 + +gUnk_0812FD1C:: @ 0812FD1C + .incbin "baserom.gba", 0x12FD1C, 0x000000C + +gUnk_0812FD28:: @ 0812FD28 + .incbin "baserom.gba", 0x12FD28, 0x000000C + +gUnk_0812FD34:: @ 0812FD34 + .incbin "baserom.gba", 0x12FD34, 0x0000010 + +gUnk_0812FD44:: @ 0812FD44 + .incbin "baserom.gba", 0x12FD44, 0x000000C + +gUnk_0812FD50:: @ 0812FD50 + .incbin "baserom.gba", 0x12FD50, 0x000000C + +gUnk_0812FD5C:: @ 0812FD5C + .incbin "baserom.gba", 0x12FD5C, 0x0000010 + +gUnk_0812FD6C:: @ 0812FD6C + .incbin "baserom.gba", 0x12FD6C, 0x000000C + +gUnk_0812FD78:: @ 0812FD78 + .incbin "baserom.gba", 0x12FD78, 0x000000C + +gUnk_0812FD84:: @ 0812FD84 + .incbin "baserom.gba", 0x12FD84, 0x000000C + +gUnk_0812FD90:: @ 0812FD90 + .incbin "baserom.gba", 0x12FD90, 0x000000C + +gUnk_0812FD9C:: @ 0812FD9C + .incbin "baserom.gba", 0x12FD9C, 0x000000C + +gUnk_0812FDA8:: @ 0812FDA8 + .incbin "baserom.gba", 0x12FDA8, 0x000000C + +gUnk_0812FDB4:: @ 0812FDB4 + .incbin "baserom.gba", 0x12FDB4, 0x000000C + +gUnk_0812FDC0:: @ 0812FDC0 + .incbin "baserom.gba", 0x12FDC0, 0x0000014 + +gUnk_0812FDD4:: @ 0812FDD4 + .incbin "baserom.gba", 0x12FDD4, 0x000000C + +gUnk_0812FDE0:: @ 0812FDE0 + .incbin "baserom.gba", 0x12FDE0, 0x000000C + +gUnk_0812FDEC:: @ 0812FDEC + .incbin "baserom.gba", 0x12FDEC, 0x000000C + +gUnk_0812FDF8:: @ 0812FDF8 + .incbin "baserom.gba", 0x12FDF8, 0x000000C + +gUnk_0812FE04:: @ 0812FE04 + .incbin "baserom.gba", 0x12FE04, 0x000000C + +gUnk_0812FE10:: @ 0812FE10 + .incbin "baserom.gba", 0x12FE10, 0x000000C + +gUnk_0812FE1C:: @ 0812FE1C + .incbin "baserom.gba", 0x12FE1C, 0x000000C + +gUnk_0812FE28:: @ 0812FE28 + .incbin "baserom.gba", 0x12FE28, 0x000000C + +gUnk_0812FE34:: @ 0812FE34 + .incbin "baserom.gba", 0x12FE34, 0x000000C + +gUnk_0812FE40:: @ 0812FE40 + .incbin "baserom.gba", 0x12FE40, 0x000000C + +gUnk_0812FE4C:: @ 0812FE4C + .incbin "baserom.gba", 0x12FE4C, 0x000000C + +gUnk_0812FE58:: @ 0812FE58 + .incbin "baserom.gba", 0x12FE58, 0x000000C + +gUnk_0812FE64:: @ 0812FE64 + .incbin "baserom.gba", 0x12FE64, 0x000000C + +gUnk_0812FE70:: @ 0812FE70 + .incbin "baserom.gba", 0x12FE70, 0x000000C + +gUnk_0812FE7C:: @ 0812FE7C + .incbin "baserom.gba", 0x12FE7C, 0x000000C + +gUnk_0812FE88:: @ 0812FE88 + .incbin "baserom.gba", 0x12FE88, 0x000000C + +gUnk_0812FE94:: @ 0812FE94 + .incbin "baserom.gba", 0x12FE94, 0x000000C + +gUnk_0812FEA0:: @ 0812FEA0 + .incbin "baserom.gba", 0x12FEA0, 0x00000B6 + +gUnk_0812FF56:: @ 0812FF56 + .incbin "baserom.gba", 0x12FF56, 0x0000048 + +gUnk_0812FF9E:: @ 0812FF9E + .incbin "baserom.gba", 0x12FF9E, 0x0000038 + +gUnk_0812FFD6:: @ 0812FFD6 + .incbin "baserom.gba", 0x12FFD6, 0x0000002 + +gUnk_0812FFD8:: @ 0812FFD8 + .incbin "baserom.gba", 0x12FFD8, 0x000000C + +gUnk_0812FFE4:: @ 0812FFE4 + .incbin "baserom.gba", 0x12FFE4, 0x000000C + +gUnk_0812FFF0:: @ 0812FFF0 + .incbin "baserom.gba", 0x12FFF0, 0x0000006 + +gUnk_0812FFF6:: @ 0812FFF6 + .incbin "baserom.gba", 0x12FFF6, 0x0000006 + +gUnk_0812FFFC:: @ 0812FFFC + .incbin "baserom.gba", 0x12FFFC, 0x0000003 + +gUnk_0812FFFF:: @ 0812FFFF + .incbin "baserom.gba", 0x12FFFF, 0x0000001 + +gUnk_08130000:: @ 08130000 + .incbin "baserom.gba", 0x130000, 0x0000002 + +gUnk_08130002:: @ 08130002 + .incbin "baserom.gba", 0x130002, 0x000000A + +gUnk_0813000C:: @ 0813000C + .incbin "baserom.gba", 0x13000C, 0x0000014 + +gUnk_08130020:: @ 08130020 + .incbin "baserom.gba", 0x130020, 0x000000C + +gUnk_0813002C:: @ 0813002C + .incbin "baserom.gba", 0x13002C, 0x000000C + +gUnk_08130038:: @ 08130038 + .incbin "baserom.gba", 0x130038, 0x000000C + +gUnk_08130044:: @ 08130044 + .incbin "baserom.gba", 0x130044, 0x0000009 + +gUnk_0813004D:: @ 0813004D + .incbin "baserom.gba", 0x13004D, 0x0000003 + +gUnk_08130050:: @ 08130050 + .incbin "baserom.gba", 0x130050, 0x0000010 + +gUnk_08130060:: @ 08130060 + .incbin "baserom.gba", 0x130060, 0x000000C + +gUnk_0813006C:: @ 0813006C + .incbin "baserom.gba", 0x13006C, 0x000000C + +gUnk_08130078:: @ 08130078 + .incbin "baserom.gba", 0x130078, 0x000000C + +gUnk_08130084:: @ 08130084 + .incbin "baserom.gba", 0x130084, 0x0000005 + +gUnk_08130089:: @ 08130089 + .incbin "baserom.gba", 0x130089, 0x0000007 + +gUnk_08130090:: @ 08130090 + .incbin "baserom.gba", 0x130090, 0x000000C + +gUnk_0813009C:: @ 0813009C + .incbin "baserom.gba", 0x13009C, 0x000000C + +gUnk_081300A8:: @ 081300A8 + .incbin "baserom.gba", 0x1300A8, 0x000000C + +gUnk_081300B4:: @ 081300B4 + .incbin "baserom.gba", 0x1300B4, 0x000000C + +gUnk_081300C0:: @ 081300C0 + .incbin "baserom.gba", 0x1300C0, 0x000000C + +gUnk_081300CC:: @ 081300CC + .incbin "baserom.gba", 0x1300CC, 0x000000C + +gUnk_081300D8:: @ 081300D8 + .incbin "baserom.gba", 0x1300D8, 0x000000C + +gUnk_081300E4:: @ 081300E4 + .incbin "baserom.gba", 0x1300E4, 0x0000010 + +gUnk_081300F4:: @ 081300F4 + .incbin "baserom.gba", 0x1300F4, 0x000000C + +gUnk_08130100:: @ 08130100 + .incbin "baserom.gba", 0x130100, 0x0000014 + +gUnk_08130114:: @ 08130114 + .incbin "baserom.gba", 0x130114, 0x0000010 + +gUnk_08130124:: @ 08130124 + .incbin "baserom.gba", 0x130124, 0x000000C + +gUnk_08130130:: @ 08130130 + .incbin "baserom.gba", 0x130130, 0x000000C + +gUnk_0813013C:: @ 0813013C + .incbin "baserom.gba", 0x13013C, 0x000000C + +gUnk_08130148:: @ 08130148 + .incbin "baserom.gba", 0x130148, 0x000000C + +gUnk_08130154:: @ 08130154 + .incbin "baserom.gba", 0x130154, 0x000000C + +gUnk_08130160:: @ 08130160 + .incbin "baserom.gba", 0x130160, 0x000000C + +gUnk_0813016C:: @ 0813016C + .incbin "baserom.gba", 0x13016C, 0x000000C + +gUnk_08130178:: @ 08130178 + .incbin "baserom.gba", 0x130178, 0x0000010 + +gUnk_08130188:: @ 08130188 + .incbin "baserom.gba", 0x130188, 0x000000C + +gUnk_08130194:: @ 08130194 + .incbin "baserom.gba", 0x130194, 0x000000C + +gUnk_081301A0:: @ 081301A0 + .incbin "baserom.gba", 0x1301A0, 0x0000010 + +gUnk_081301B0:: @ 081301B0 + .incbin "baserom.gba", 0x1301B0, 0x0000010 + +gUnk_081301C0:: @ 081301C0 + .incbin "baserom.gba", 0x1301C0, 0x0000010 + +gUnk_081301D0:: @ 081301D0 + .incbin "baserom.gba", 0x1301D0, 0x000000C + +gUnk_081301DC:: @ 081301DC + .incbin "baserom.gba", 0x1301DC, 0x000000C + +gUnk_081301E8:: @ 081301E8 + .incbin "baserom.gba", 0x1301E8, 0x0000006 + +gUnk_081301EE:: @ 081301EE + .incbin "baserom.gba", 0x1301EE, 0x0000006 + +gUnk_081301F4:: @ 081301F4 + .incbin "baserom.gba", 0x1301F4, 0x0000010 + +gUnk_08130204:: @ 08130204 + .incbin "baserom.gba", 0x130204, 0x0000002 + +gUnk_08130206:: @ 08130206 + .incbin "baserom.gba", 0x130206, 0x000000A + +gUnk_08130210:: @ 08130210 + .incbin "baserom.gba", 0x130210, 0x000000C + +gUnk_0813021C:: @ 0813021C + .incbin "baserom.gba", 0x13021C, 0x000000C + +gUnk_08130228:: @ 08130228 + .incbin "baserom.gba", 0x130228, 0x000000C + +gUnk_08130234:: @ 08130234 + .incbin "baserom.gba", 0x130234, 0x000000C + +gUnk_08130240:: @ 08130240 + .incbin "baserom.gba", 0x130240, 0x000000C + +gUnk_0813024C:: @ 0813024C + .incbin "baserom.gba", 0x13024C, 0x000000C + +gUnk_08130258:: @ 08130258 + .incbin "baserom.gba", 0x130258, 0x000000C + +gUnk_08130264:: @ 08130264 + .incbin "baserom.gba", 0x130264, 0x000000C + +gUnk_08130270:: @ 08130270 + .incbin "baserom.gba", 0x130270, 0x000000C + +gUnk_0813027C:: @ 0813027C + .incbin "baserom.gba", 0x13027C, 0x000000C + +gUnk_08130288:: @ 08130288 + .incbin "baserom.gba", 0x130288, 0x000000C + +gUnk_08130294:: @ 08130294 + .incbin "baserom.gba", 0x130294, 0x000000C + +gUnk_081302A0:: @ 081302A0 + .incbin "baserom.gba", 0x1302A0, 0x000000C + +gUnk_081302AC:: @ 081302AC + .incbin "baserom.gba", 0x1302AC, 0x000000C + +gUnk_081302B8:: @ 081302B8 + .incbin "baserom.gba", 0x1302B8, 0x000000C + +gUnk_081302C4:: @ 081302C4 + .incbin "baserom.gba", 0x1302C4, 0x000000C + +gUnk_081302D0:: @ 081302D0 + .incbin "baserom.gba", 0x1302D0, 0x000000C + +gUnk_081302DC:: @ 081302DC + .incbin "baserom.gba", 0x1302DC, 0x000000C + +gUnk_081302E8:: @ 081302E8 + .incbin "baserom.gba", 0x1302E8, 0x000000C + +gUnk_081302F4:: @ 081302F4 + .incbin "baserom.gba", 0x1302F4, 0x000000C + +gUnk_08130300:: @ 08130300 + .incbin "baserom.gba", 0x130300, 0x000000C + +gUnk_0813030C:: @ 0813030C + .incbin "baserom.gba", 0x13030C, 0x000000C + +gUnk_08130318:: @ 08130318 + .incbin "baserom.gba", 0x130318, 0x000000C + +gUnk_08130324:: @ 08130324 + .incbin "baserom.gba", 0x130324, 0x000000C + +gUnk_08130330:: @ 08130330 + .incbin "baserom.gba", 0x130330, 0x000000C + +gUnk_0813033C:: @ 0813033C + .incbin "baserom.gba", 0x13033C, 0x000000C + +gUnk_08130348:: @ 08130348 + .incbin "baserom.gba", 0x130348, 0x000000C + +gUnk_08130354:: @ 08130354 + .incbin "baserom.gba", 0x130354, 0x000000C + +gUnk_08130360:: @ 08130360 + .incbin "baserom.gba", 0x130360, 0x000000C + +gUnk_0813036C:: @ 0813036C + .incbin "baserom.gba", 0x13036C, 0x0000286 + +gUnk_081305F2:: @ 081305F2 + .incbin "baserom.gba", 0x1305F2, 0x000001A + +gUnk_0813060C:: @ 0813060C + .incbin "baserom.gba", 0x13060C, 0x0000010 + +gUnk_0813061C:: @ 0813061C + .incbin "baserom.gba", 0x13061C, 0x0000010 + +gUnk_0813062C:: @ 0813062C + .incbin "baserom.gba", 0x13062C, 0x000000C + +gUnk_08130638:: @ 08130638 + .incbin "baserom.gba", 0x130638, 0x000000C + +gUnk_08130644:: @ 08130644 + .incbin "baserom.gba", 0x130644, 0x000000C + +gUnk_08130650:: @ 08130650 + .incbin "baserom.gba", 0x130650, 0x000000C + +gUnk_0813065C:: @ 0813065C + .incbin "baserom.gba", 0x13065C, 0x000000C + +gUnk_08130668:: @ 08130668 + .incbin "baserom.gba", 0x130668, 0x000000C + +gUnk_08130674:: @ 08130674 + .incbin "baserom.gba", 0x130674, 0x000000C + +gUnk_08130680:: @ 08130680 + .incbin "baserom.gba", 0x130680, 0x000000C + +gUnk_0813068C:: @ 0813068C + .incbin "baserom.gba", 0x13068C, 0x000000C + +gUnk_08130698:: @ 08130698 + .incbin "baserom.gba", 0x130698, 0x000000C + +gUnk_081306A4:: @ 081306A4 + .incbin "baserom.gba", 0x1306A4, 0x000000C + +gUnk_081306B0:: @ 081306B0 + .incbin "baserom.gba", 0x1306B0, 0x000000C + +gUnk_081306BC:: @ 081306BC + .incbin "baserom.gba", 0x1306BC, 0x000000C + +gUnk_081306C8:: @ 081306C8 + .incbin "baserom.gba", 0x1306C8, 0x000000C + +gUnk_081306D4:: @ 081306D4 + .incbin "baserom.gba", 0x1306D4, 0x000000C + +gUnk_081306E0:: @ 081306E0 + .incbin "baserom.gba", 0x1306E0, 0x0000004 + +gUnk_081306E4:: @ 081306E4 + .incbin "baserom.gba", 0x1306E4, 0x0000008 + +gUnk_081306EC:: @ 081306EC + .incbin "baserom.gba", 0x1306EC, 0x000000C + +gUnk_081306F8:: @ 081306F8 + .incbin "baserom.gba", 0x1306F8, 0x000000C + +gUnk_08130704:: @ 08130704 + .incbin "baserom.gba", 0x130704, 0x000000C + +gUnk_08130710:: @ 08130710 + .incbin "baserom.gba", 0x130710, 0x000000C + +gUnk_0813071C:: @ 0813071C + .incbin "baserom.gba", 0x13071C, 0x000000C + +gUnk_08130728:: @ 08130728 + .incbin "baserom.gba", 0x130728, 0x000000C + +gUnk_08130734:: @ 08130734 + .incbin "baserom.gba", 0x130734, 0x000000C + +gUnk_08130740:: @ 08130740 + .incbin "baserom.gba", 0x130740, 0x000000C + +gUnk_0813074C:: @ 0813074C + .incbin "baserom.gba", 0x13074C, 0x000000C + +gUnk_08130758:: @ 08130758 + .incbin "baserom.gba", 0x130758, 0x000000C + +gUnk_08130764:: @ 08130764 + .incbin "baserom.gba", 0x130764, 0x000000C + +gUnk_08130770:: @ 08130770 + .incbin "baserom.gba", 0x130770, 0x000000C + +gUnk_0813077C:: @ 0813077C + .incbin "baserom.gba", 0x13077C, 0x000000C + +gUnk_08130788:: @ 08130788 + .incbin "baserom.gba", 0x130788, 0x0000010 + +gUnk_08130798:: @ 08130798 + .incbin "baserom.gba", 0x130798, 0x000000C + +gUnk_081307A4:: @ 081307A4 + .incbin "baserom.gba", 0x1307A4, 0x000000C + +gUnk_081307B0:: @ 081307B0 + .incbin "baserom.gba", 0x1307B0, 0x0000010 + +gUnk_081307C0:: @ 081307C0 + .incbin "baserom.gba", 0x1307C0, 0x0000010 + +gUnk_081307D0:: @ 081307D0 + .incbin "baserom.gba", 0x1307D0, 0x0000010 + +gUnk_081307E0:: @ 081307E0 + .incbin "baserom.gba", 0x1307E0, 0x000000C + +gUnk_081307EC:: @ 081307EC + .incbin "baserom.gba", 0x1307EC, 0x000000C + +gUnk_081307F8:: @ 081307F8 + .incbin "baserom.gba", 0x1307F8, 0x000000A + +gUnk_08130802:: @ 08130802 + .incbin "baserom.gba", 0x130802, 0x0000002 + +gUnk_08130804:: @ 08130804 + .incbin "baserom.gba", 0x130804, 0x0000009 + +gUnk_0813080D:: @ 0813080D + .incbin "baserom.gba", 0x13080D, 0x0000003 + +gUnk_08130810:: @ 08130810 + .incbin "baserom.gba", 0x130810, 0x000000C + +gUnk_0813081C:: @ 0813081C + .incbin "baserom.gba", 0x13081C, 0x000000C + +gUnk_08130828:: @ 08130828 + .incbin "baserom.gba", 0x130828, 0x000000C + +gUnk_08130834:: @ 08130834 + .incbin "baserom.gba", 0x130834, 0x000000C + +gUnk_08130840:: @ 08130840 + .incbin "baserom.gba", 0x130840, 0x000000C + +gUnk_0813084C:: @ 0813084C + .incbin "baserom.gba", 0x13084C, 0x000000C + +gUnk_08130858:: @ 08130858 + .incbin "baserom.gba", 0x130858, 0x000000C + +gUnk_08130864:: @ 08130864 + .incbin "baserom.gba", 0x130864, 0x000000C + +gUnk_08130870:: @ 08130870 + .incbin "baserom.gba", 0x130870, 0x000000C + +gUnk_0813087C:: @ 0813087C + .incbin "baserom.gba", 0x13087C, 0x0000010 + +gUnk_0813088C:: @ 0813088C + .incbin "baserom.gba", 0x13088C, 0x000000C + +gUnk_08130898:: @ 08130898 + .incbin "baserom.gba", 0x130898, 0x000000C + +gUnk_081308A4:: @ 081308A4 + .incbin "baserom.gba", 0x1308A4, 0x000000C + +gUnk_081308B0:: @ 081308B0 + .incbin "baserom.gba", 0x1308B0, 0x000000C + +gUnk_081308BC:: @ 081308BC + .incbin "baserom.gba", 0x1308BC, 0x000000C + +gUnk_081308C8:: @ 081308C8 + .incbin "baserom.gba", 0x1308C8, 0x000000C + +gUnk_081308D4:: @ 081308D4 + .incbin "baserom.gba", 0x1308D4, 0x000000C + +gUnk_081308E0:: @ 081308E0 + .incbin "baserom.gba", 0x1308E0, 0x000000C + +gUnk_081308EC:: @ 081308EC + .incbin "baserom.gba", 0x1308EC, 0x000000C + +gUnk_081308F8:: @ 081308F8 + .incbin "baserom.gba", 0x1308F8, 0x0000007 + +gUnk_081308FF:: @ 081308FF + .incbin "baserom.gba", 0x1308FF, 0x0000005 + +gUnk_08130904:: @ 08130904 + .incbin "baserom.gba", 0x130904, 0x000000C + +gUnk_08130910:: @ 08130910 + .incbin "baserom.gba", 0x130910, 0x000000A + +gUnk_0813091A:: @ 0813091A + .incbin "baserom.gba", 0x13091A, 0x0000002 + +gUnk_0813091C:: @ 0813091C + .incbin "baserom.gba", 0x13091C, 0x000000C + +gUnk_08130928:: @ 08130928 + .incbin "baserom.gba", 0x130928, 0x000000C + +gUnk_08130934:: @ 08130934 + .incbin "baserom.gba", 0x130934, 0x000000C + +gUnk_08130940:: @ 08130940 + .incbin "baserom.gba", 0x130940, 0x000000C + +gUnk_0813094C:: @ 0813094C + .incbin "baserom.gba", 0x13094C, 0x0000010 + +gUnk_0813095C:: @ 0813095C + .incbin "baserom.gba", 0x13095C, 0x000000C + +gUnk_08130968:: @ 08130968 + .incbin "baserom.gba", 0x130968, 0x000000C + +gUnk_08130974:: @ 08130974 + .incbin "baserom.gba", 0x130974, 0x000000C + +gUnk_08130980:: @ 08130980 + .incbin "baserom.gba", 0x130980, 0x0000010 + +gUnk_08130990:: @ 08130990 + .incbin "baserom.gba", 0x130990, 0x000000C + +gUnk_0813099C:: @ 0813099C + .incbin "baserom.gba", 0x13099C, 0x000000C + +gUnk_081309A8:: @ 081309A8 + .incbin "baserom.gba", 0x1309A8, 0x000000C + +gUnk_081309B4:: @ 081309B4 + .incbin "baserom.gba", 0x1309B4, 0x000000C + +gUnk_081309C0:: @ 081309C0 + .incbin "baserom.gba", 0x1309C0, 0x000000C + +gUnk_081309CC:: @ 081309CC + .incbin "baserom.gba", 0x1309CC, 0x000000C + +gUnk_081309D8:: @ 081309D8 + .incbin "baserom.gba", 0x1309D8, 0x000000C + +gUnk_081309E4:: @ 081309E4 + .incbin "baserom.gba", 0x1309E4, 0x000000B + +gUnk_081309EF:: @ 081309EF + .incbin "baserom.gba", 0x1309EF, 0x0000001 + +gUnk_081309F0:: @ 081309F0 + .incbin "baserom.gba", 0x1309F0, 0x0000010 + +gUnk_08130A00:: @ 08130A00 + .incbin "baserom.gba", 0x130A00, 0x0000001 + +gUnk_08130A01:: @ 08130A01 + .incbin "baserom.gba", 0x130A01, 0x000000B + +gUnk_08130A0C:: @ 08130A0C + .incbin "baserom.gba", 0x130A0C, 0x000000C + +gUnk_08130A18:: @ 08130A18 + .incbin "baserom.gba", 0x130A18, 0x000000C + +gUnk_08130A24:: @ 08130A24 + .incbin "baserom.gba", 0x130A24, 0x0000010 + +gUnk_08130A34:: @ 08130A34 + .incbin "baserom.gba", 0x130A34, 0x000000C + +gUnk_08130A40:: @ 08130A40 + .incbin "baserom.gba", 0x130A40, 0x000000C + +gUnk_08130A4C:: @ 08130A4C + .incbin "baserom.gba", 0x130A4C, 0x000000C + +gUnk_08130A58:: @ 08130A58 + .incbin "baserom.gba", 0x130A58, 0x000000C + +gUnk_08130A64:: @ 08130A64 + .incbin "baserom.gba", 0x130A64, 0x0000010 + +gUnk_08130A74:: @ 08130A74 + .incbin "baserom.gba", 0x130A74, 0x000000C + +gUnk_08130A80:: @ 08130A80 + .incbin "baserom.gba", 0x130A80, 0x0000010 + +gUnk_08130A90:: @ 08130A90 + .incbin "baserom.gba", 0x130A90, 0x000000C + +gUnk_08130A9C:: @ 08130A9C + .incbin "baserom.gba", 0x130A9C, 0x000000C + +gUnk_08130AA8:: @ 08130AA8 + .incbin "baserom.gba", 0x130AA8, 0x000000C + +gUnk_08130AB4:: @ 08130AB4 + .incbin "baserom.gba", 0x130AB4, 0x000000C + +gUnk_08130AC0:: @ 08130AC0 + .incbin "baserom.gba", 0x130AC0, 0x000000C + +gUnk_08130ACC:: @ 08130ACC + .incbin "baserom.gba", 0x130ACC, 0x000000C + +gUnk_08130AD8:: @ 08130AD8 + .incbin "baserom.gba", 0x130AD8, 0x000000C + +gUnk_08130AE4:: @ 08130AE4 + .incbin "baserom.gba", 0x130AE4, 0x0000010 + +gUnk_08130AF4:: @ 08130AF4 + .incbin "baserom.gba", 0x130AF4, 0x000000C + +gUnk_08130B00:: @ 08130B00 + .incbin "baserom.gba", 0x130B00, 0x000000C + +gUnk_08130B0C:: @ 08130B0C + .incbin "baserom.gba", 0x130B0C, 0x000000C + +gUnk_08130B18:: @ 08130B18 + .incbin "baserom.gba", 0x130B18, 0x000000C + +gUnk_08130B24:: @ 08130B24 + .incbin "baserom.gba", 0x130B24, 0x000000C + +gUnk_08130B30:: @ 08130B30 + .incbin "baserom.gba", 0x130B30, 0x000000C + +gUnk_08130B3C:: @ 08130B3C + .incbin "baserom.gba", 0x130B3C, 0x0000010 + +gUnk_08130B4C:: @ 08130B4C + .incbin "baserom.gba", 0x130B4C, 0x000000C + +gUnk_08130B58:: @ 08130B58 + .incbin "baserom.gba", 0x130B58, 0x0000014 + +gUnk_08130B6C:: @ 08130B6C + .incbin "baserom.gba", 0x130B6C, 0x0000010 + +gUnk_08130B7C:: @ 08130B7C + .incbin "baserom.gba", 0x130B7C, 0x0000014 + +gUnk_08130B90:: @ 08130B90 + .incbin "baserom.gba", 0x130B90, 0x0000010 + +gUnk_08130BA0:: @ 08130BA0 + .incbin "baserom.gba", 0x130BA0, 0x000000C + +gUnk_08130BAC:: @ 08130BAC + .incbin "baserom.gba", 0x130BAC, 0x000000C + +gUnk_08130BB8:: @ 08130BB8 + .incbin "baserom.gba", 0x130BB8, 0x000000C + +gUnk_08130BC4:: @ 08130BC4 + .incbin "baserom.gba", 0x130BC4, 0x000000C + +gUnk_08130BD0:: @ 08130BD0 + .incbin "baserom.gba", 0x130BD0, 0x000000C + +gUnk_08130BDC:: @ 08130BDC + .incbin "baserom.gba", 0x130BDC, 0x000000C + +gUnk_08130BE8:: @ 08130BE8 + .incbin "baserom.gba", 0x130BE8, 0x000000C + +gUnk_08130BF4:: @ 08130BF4 + .incbin "baserom.gba", 0x130BF4, 0x000000F + +gUnk_08130C03:: @ 08130C03 + .incbin "baserom.gba", 0x130C03, 0x0000001 + +gUnk_08130C04:: @ 08130C04 + .incbin "baserom.gba", 0x130C04, 0x0000010 + +gUnk_08130C14:: @ 08130C14 + .incbin "baserom.gba", 0x130C14, 0x000000C + +gUnk_08130C20:: @ 08130C20 + .incbin "baserom.gba", 0x130C20, 0x000000C + +gUnk_08130C2C:: @ 08130C2C + .incbin "baserom.gba", 0x130C2C, 0x000000C + +gUnk_08130C38:: @ 08130C38 + .incbin "baserom.gba", 0x130C38, 0x000000C + +gUnk_08130C44:: @ 08130C44 + .incbin "baserom.gba", 0x130C44, 0x000000C + +gUnk_08130C50:: @ 08130C50 + .incbin "baserom.gba", 0x130C50, 0x000000C + +gUnk_08130C5C:: @ 08130C5C + .incbin "baserom.gba", 0x130C5C, 0x000000C + +gUnk_08130C68:: @ 08130C68 + .incbin "baserom.gba", 0x130C68, 0x000000C + +gUnk_08130C74:: @ 08130C74 + .incbin "baserom.gba", 0x130C74, 0x000000C + +gUnk_08130C80:: @ 08130C80 + .incbin "baserom.gba", 0x130C80, 0x000000C + +gUnk_08130C8C:: @ 08130C8C + .incbin "baserom.gba", 0x130C8C, 0x000000C + +gUnk_08130C98:: @ 08130C98 + .incbin "baserom.gba", 0x130C98, 0x000000C + +gUnk_08130CA4:: @ 08130CA4 + .incbin "baserom.gba", 0x130CA4, 0x000000C + +gUnk_08130CB0:: @ 08130CB0 + .incbin "baserom.gba", 0x130CB0, 0x000000C + +gUnk_08130CBC:: @ 08130CBC + .incbin "baserom.gba", 0x130CBC, 0x000000C + +gUnk_08130CC8:: @ 08130CC8 + .incbin "baserom.gba", 0x130CC8, 0x000000C + +gUnk_08130CD4:: @ 08130CD4 + .incbin "baserom.gba", 0x130CD4, 0x000000C + +gUnk_08130CE0:: @ 08130CE0 + .incbin "baserom.gba", 0x130CE0, 0x000000C + +gUnk_08130CEC:: @ 08130CEC + .incbin "baserom.gba", 0x130CEC, 0x000000C + +gUnk_08130CF8:: @ 08130CF8 + .incbin "baserom.gba", 0x130CF8, 0x000000C + +gUnk_08130D04:: @ 08130D04 + .incbin "baserom.gba", 0x130D04, 0x0000007 + +gUnk_08130D0B:: @ 08130D0B + .incbin "baserom.gba", 0x130D0B, 0x0000004 + +gUnk_08130D0F:: @ 08130D0F + .incbin "baserom.gba", 0x130D0F, 0x0000001 + +gUnk_08130D10:: @ 08130D10 + .incbin "baserom.gba", 0x130D10, 0x000000C + +gUnk_08130D1C:: @ 08130D1C + .incbin "baserom.gba", 0x130D1C, 0x000000C + +gUnk_08130D28:: @ 08130D28 + .incbin "baserom.gba", 0x130D28, 0x000000C + +gUnk_08130D34:: @ 08130D34 + .incbin "baserom.gba", 0x130D34, 0x000000C + +gUnk_08130D40:: @ 08130D40 + .incbin "baserom.gba", 0x130D40, 0x000000C + +gUnk_08130D4C:: @ 08130D4C + .incbin "baserom.gba", 0x130D4C, 0x000000C + +gUnk_08130D58:: @ 08130D58 + .incbin "baserom.gba", 0x130D58, 0x000000C + +gUnk_08130D64:: @ 08130D64 + .incbin "baserom.gba", 0x130D64, 0x000000C + +gUnk_08130D70:: @ 08130D70 + .incbin "baserom.gba", 0x130D70, 0x000000C + +gUnk_08130D7C:: @ 08130D7C + .incbin "baserom.gba", 0x130D7C, 0x000000C + +gUnk_08130D88:: @ 08130D88 + .incbin "baserom.gba", 0x130D88, 0x000000C + +gUnk_08130D94:: @ 08130D94 + .incbin "baserom.gba", 0x130D94, 0x000000C + +gUnk_08130DA0:: @ 08130DA0 + .incbin "baserom.gba", 0x130DA0, 0x000000C + +gUnk_08130DAC:: @ 08130DAC + .incbin "baserom.gba", 0x130DAC, 0x000000C + +gUnk_08130DB8:: @ 08130DB8 + .incbin "baserom.gba", 0x130DB8, 0x000000C + +gUnk_08130DC4:: @ 08130DC4 + .incbin "baserom.gba", 0x130DC4, 0x000000C + +gUnk_08130DD0:: @ 08130DD0 + .incbin "baserom.gba", 0x130DD0, 0x000000C + +gUnk_08130DDC:: @ 08130DDC + .incbin "baserom.gba", 0x130DDC, 0x000000C + +gUnk_08130DE8:: @ 08130DE8 + .incbin "baserom.gba", 0x130DE8, 0x000000C + +gUnk_08130DF4:: @ 08130DF4 + .incbin "baserom.gba", 0x130DF4, 0x000000C + +gUnk_08130E00:: @ 08130E00 + .incbin "baserom.gba", 0x130E00, 0x00000E6 + +gUnk_08130EE6:: @ 08130EE6 + .incbin "baserom.gba", 0x130EE6, 0x0000017 + +gUnk_08130EFD:: @ 08130EFD + .incbin "baserom.gba", 0x130EFD, 0x0000008 + +gUnk_08130F05:: @ 08130F05 + .incbin "baserom.gba", 0x130F05, 0x0000005 + +gUnk_08130F0A:: @ 08130F0A + .incbin "baserom.gba", 0x130F0A, 0x0000002 + +gUnk_08130F0C:: @ 08130F0C + .incbin "baserom.gba", 0x130F0C, 0x0000004 + +gUnk_08130F10:: @ 08130F10 + .incbin "baserom.gba", 0x130F10, 0x0000001 + +gUnk_08130F11:: @ 08130F11 + .incbin "baserom.gba", 0x130F11, 0x00000F4 + +gUnk_08131005:: @ 08131005 + .incbin "baserom.gba", 0x131005, 0x0000005 + +gUnk_0813100A:: @ 0813100A + .incbin "baserom.gba", 0x13100A, 0x0000026 + +gUnk_08131030:: @ 08131030 + .incbin "baserom.gba", 0x131030, 0x000000C + +gUnk_0813103C:: @ 0813103C + .incbin "baserom.gba", 0x13103C, 0x000000C + +gUnk_08131048:: @ 08131048 + .incbin "baserom.gba", 0x131048, 0x000000C + +gUnk_08131054:: @ 08131054 + .incbin "baserom.gba", 0x131054, 0x000000C + +gUnk_08131060:: @ 08131060 + .incbin "baserom.gba", 0x131060, 0x000000C + +gUnk_0813106C:: @ 0813106C + .incbin "baserom.gba", 0x13106C, 0x000000C + +gUnk_08131078:: @ 08131078 + .incbin "baserom.gba", 0x131078, 0x000000C + +gUnk_08131084:: @ 08131084 + .incbin "baserom.gba", 0x131084, 0x000000C + +gUnk_08131090:: @ 08131090 + .incbin "baserom.gba", 0x131090, 0x0000010 + +gUnk_081310A0:: @ 081310A0 + .incbin "baserom.gba", 0x1310A0, 0x000000C + +gUnk_081310AC:: @ 081310AC + .incbin "baserom.gba", 0x1310AC, 0x0000010 + +gUnk_081310BC:: @ 081310BC + .incbin "baserom.gba", 0x1310BC, 0x0000007 + +gUnk_081310C3:: @ 081310C3 + .incbin "baserom.gba", 0x1310C3, 0x0000009 + +gUnk_081310CC:: @ 081310CC + .incbin "baserom.gba", 0x1310CC, 0x000000C + +gUnk_081310D8:: @ 081310D8 + .incbin "baserom.gba", 0x1310D8, 0x000000C + +gUnk_081310E4:: @ 081310E4 + .incbin "baserom.gba", 0x1310E4, 0x000000C + +gUnk_081310F0:: @ 081310F0 + .incbin "baserom.gba", 0x1310F0, 0x0000005 + +gUnk_081310F5:: @ 081310F5 + .incbin "baserom.gba", 0x1310F5, 0x000000B + +gUnk_08131100:: @ 08131100 + .incbin "baserom.gba", 0x131100, 0x000000C + +gUnk_0813110C:: @ 0813110C + .incbin "baserom.gba", 0x13110C, 0x0000004 + +gUnk_08131110:: @ 08131110 + .incbin "baserom.gba", 0x131110, 0x000000C + +gUnk_0813111C:: @ 0813111C + .incbin "baserom.gba", 0x13111C, 0x0000010 + +gUnk_0813112C:: @ 0813112C + .incbin "baserom.gba", 0x13112C, 0x000000C + +gUnk_08131138:: @ 08131138 + .incbin "baserom.gba", 0x131138, 0x000000C + +gUnk_08131144:: @ 08131144 + .incbin "baserom.gba", 0x131144, 0x000000C + +gUnk_08131150:: @ 08131150 + .incbin "baserom.gba", 0x131150, 0x000000C + +gUnk_0813115C:: @ 0813115C + .incbin "baserom.gba", 0x13115C, 0x000000C + +gUnk_08131168:: @ 08131168 + .incbin "baserom.gba", 0x131168, 0x000000C + +gUnk_08131174:: @ 08131174 + .incbin "baserom.gba", 0x131174, 0x000000C + +gUnk_08131180:: @ 08131180 + .incbin "baserom.gba", 0x131180, 0x000000C + +gUnk_0813118C:: @ 0813118C + .incbin "baserom.gba", 0x13118C, 0x000000C + +gUnk_08131198:: @ 08131198 + .incbin "baserom.gba", 0x131198, 0x000000C + +gUnk_081311A4:: @ 081311A4 + .incbin "baserom.gba", 0x1311A4, 0x000000C + +gUnk_081311B0:: @ 081311B0 + .incbin "baserom.gba", 0x1311B0, 0x000000C + +gUnk_081311BC:: @ 081311BC + .incbin "baserom.gba", 0x1311BC, 0x0000010 + +gUnk_081311CC:: @ 081311CC + .incbin "baserom.gba", 0x1311CC, 0x000000C + +gUnk_081311D8:: @ 081311D8 + .incbin "baserom.gba", 0x1311D8, 0x000000C + +gUnk_081311E4:: @ 081311E4 + .incbin "baserom.gba", 0x1311E4, 0x0000010 + +gUnk_081311F4:: @ 081311F4 + .incbin "baserom.gba", 0x1311F4, 0x000000C + +gUnk_08131200:: @ 08131200 + .incbin "baserom.gba", 0x131200, 0x000000C + +gUnk_0813120C:: @ 0813120C + .incbin "baserom.gba", 0x13120C, 0x0000006 + +gUnk_08131212:: @ 08131212 + .incbin "baserom.gba", 0x131212, 0x0000002 + +gUnk_08131214:: @ 08131214 + .incbin "baserom.gba", 0x131214, 0x0000001 + +gUnk_08131215:: @ 08131215 + .incbin "baserom.gba", 0x131215, 0x0000003 + +gUnk_08131218:: @ 08131218 + .incbin "baserom.gba", 0x131218, 0x000000C + +gUnk_08131224:: @ 08131224 + .incbin "baserom.gba", 0x131224, 0x000000C + +gUnk_08131230:: @ 08131230 + .incbin "baserom.gba", 0x131230, 0x000000C + +gUnk_0813123C:: @ 0813123C + .incbin "baserom.gba", 0x13123C, 0x000000C + +gUnk_08131248:: @ 08131248 + .incbin "baserom.gba", 0x131248, 0x000000C + +gUnk_08131254:: @ 08131254 + .incbin "baserom.gba", 0x131254, 0x000000C + +gUnk_08131260:: @ 08131260 + .incbin "baserom.gba", 0x131260, 0x000000C + +gUnk_0813126C:: @ 0813126C + .incbin "baserom.gba", 0x13126C, 0x000000C + +gUnk_08131278:: @ 08131278 + .incbin "baserom.gba", 0x131278, 0x000000C + +gUnk_08131284:: @ 08131284 + .incbin "baserom.gba", 0x131284, 0x000000C + +gUnk_08131290:: @ 08131290 + .incbin "baserom.gba", 0x131290, 0x000000C + +gUnk_0813129C:: @ 0813129C + .incbin "baserom.gba", 0x13129C, 0x000000C + +gUnk_081312A8:: @ 081312A8 + .incbin "baserom.gba", 0x1312A8, 0x000000C + +gUnk_081312B4:: @ 081312B4 + .incbin "baserom.gba", 0x1312B4, 0x000000C + +gUnk_081312C0:: @ 081312C0 + .incbin "baserom.gba", 0x1312C0, 0x000000C + +gUnk_081312CC:: @ 081312CC + .incbin "baserom.gba", 0x1312CC, 0x000000C + +gUnk_081312D8:: @ 081312D8 + .incbin "baserom.gba", 0x1312D8, 0x000000C + +gUnk_081312E4:: @ 081312E4 + .incbin "baserom.gba", 0x1312E4, 0x000000C + +gUnk_081312F0:: @ 081312F0 + .incbin "baserom.gba", 0x1312F0, 0x000000C + +gUnk_081312FC:: @ 081312FC + .incbin "baserom.gba", 0x1312FC, 0x000000C + +gUnk_08131308:: @ 08131308 + .incbin "baserom.gba", 0x131308, 0x000000C + +gUnk_08131314:: @ 08131314 + .incbin "baserom.gba", 0x131314, 0x0000003 + +gUnk_08131317:: @ 08131317 + .incbin "baserom.gba", 0x131317, 0x0000001 + +gUnk_08131318:: @ 08131318 + .incbin "baserom.gba", 0x131318, 0x0000008 + +gUnk_08131320:: @ 08131320 + .incbin "baserom.gba", 0x131320, 0x000000C + +gUnk_0813132C:: @ 0813132C + .incbin "baserom.gba", 0x13132C, 0x000000C + +gUnk_08131338:: @ 08131338 + .incbin "baserom.gba", 0x131338, 0x000000C + +gUnk_08131344:: @ 08131344 + .incbin "baserom.gba", 0x131344, 0x000000C + +gUnk_08131350:: @ 08131350 + .incbin "baserom.gba", 0x131350, 0x000000C + +gUnk_0813135C:: @ 0813135C + .incbin "baserom.gba", 0x13135C, 0x000000C + +gUnk_08131368:: @ 08131368 + .incbin "baserom.gba", 0x131368, 0x000000C + +gUnk_08131374:: @ 08131374 + .incbin "baserom.gba", 0x131374, 0x000000C + +gUnk_08131380:: @ 08131380 + .incbin "baserom.gba", 0x131380, 0x000000C + +gUnk_0813138C:: @ 0813138C + .incbin "baserom.gba", 0x13138C, 0x0000010 + +gUnk_0813139C:: @ 0813139C + .incbin "baserom.gba", 0x13139C, 0x000000C + +gUnk_081313A8:: @ 081313A8 + .incbin "baserom.gba", 0x1313A8, 0x000000C + +gUnk_081313B4:: @ 081313B4 + .incbin "baserom.gba", 0x1313B4, 0x000000C + +gUnk_081313C0:: @ 081313C0 + .incbin "baserom.gba", 0x1313C0, 0x000000C + +gUnk_081313CC:: @ 081313CC + .incbin "baserom.gba", 0x1313CC, 0x000000C + +gUnk_081313D8:: @ 081313D8 + .incbin "baserom.gba", 0x1313D8, 0x000000C + +gUnk_081313E4:: @ 081313E4 + .incbin "baserom.gba", 0x1313E4, 0x000000C + +gUnk_081313F0:: @ 081313F0 + .incbin "baserom.gba", 0x1313F0, 0x000000C + +gUnk_081313FC:: @ 081313FC + .incbin "baserom.gba", 0x1313FC, 0x0000001 + +gUnk_081313FD:: @ 081313FD + .incbin "baserom.gba", 0x1313FD, 0x000000B + +gUnk_08131408:: @ 08131408 + .incbin "baserom.gba", 0x131408, 0x0000004 + +gUnk_0813140C:: @ 0813140C + .incbin "baserom.gba", 0x13140C, 0x0000004 + +gUnk_08131410:: @ 08131410 + .incbin "baserom.gba", 0x131410, 0x0000004 + +gUnk_08131414:: @ 08131414 + .incbin "baserom.gba", 0x131414, 0x000000C + +gUnk_08131420:: @ 08131420 + .incbin "baserom.gba", 0x131420, 0x000000C + +gUnk_0813142C:: @ 0813142C + .incbin "baserom.gba", 0x13142C, 0x0000004 + +gUnk_08131430:: @ 08131430 + .incbin "baserom.gba", 0x131430, 0x000000C + +gUnk_0813143C:: @ 0813143C + .incbin "baserom.gba", 0x13143C, 0x000000C + +gUnk_08131448:: @ 08131448 + .incbin "baserom.gba", 0x131448, 0x000000C + +gUnk_08131454:: @ 08131454 + .incbin "baserom.gba", 0x131454, 0x000000C + +gUnk_08131460:: @ 08131460 + .incbin "baserom.gba", 0x131460, 0x000000C + +gUnk_0813146C:: @ 0813146C + .incbin "baserom.gba", 0x13146C, 0x000000C + +gUnk_08131478:: @ 08131478 + .incbin "baserom.gba", 0x131478, 0x000000C + +gUnk_08131484:: @ 08131484 + .incbin "baserom.gba", 0x131484, 0x000000C + +gUnk_08131490:: @ 08131490 + .incbin "baserom.gba", 0x131490, 0x000000C + +gUnk_0813149C:: @ 0813149C + .incbin "baserom.gba", 0x13149C, 0x000000C + +gUnk_081314A8:: @ 081314A8 + .incbin "baserom.gba", 0x1314A8, 0x000000C + +gUnk_081314B4:: @ 081314B4 + .incbin "baserom.gba", 0x1314B4, 0x000000C + +gUnk_081314C0:: @ 081314C0 + .incbin "baserom.gba", 0x1314C0, 0x000000C + +gUnk_081314CC:: @ 081314CC + .incbin "baserom.gba", 0x1314CC, 0x000000C + +gUnk_081314D8:: @ 081314D8 + .incbin "baserom.gba", 0x1314D8, 0x000000C + +gUnk_081314E4:: @ 081314E4 + .incbin "baserom.gba", 0x1314E4, 0x000000C + +gUnk_081314F0:: @ 081314F0 + .incbin "baserom.gba", 0x1314F0, 0x000000C + +gUnk_081314FC:: @ 081314FC + .incbin "baserom.gba", 0x1314FC, 0x000000C + +gUnk_08131508:: @ 08131508 + .incbin "baserom.gba", 0x131508, 0x000000C + +gUnk_08131514:: @ 08131514 + .incbin "baserom.gba", 0x131514, 0x000000C + +gUnk_08131520:: @ 08131520 + .incbin "baserom.gba", 0x131520, 0x000000C + +gUnk_0813152C:: @ 0813152C + .incbin "baserom.gba", 0x13152C, 0x000000C + +gUnk_08131538:: @ 08131538 + .incbin "baserom.gba", 0x131538, 0x000000C + +gUnk_08131544:: @ 08131544 + .incbin "baserom.gba", 0x131544, 0x000000C + +gUnk_08131550:: @ 08131550 + .incbin "baserom.gba", 0x131550, 0x000000C + +gUnk_0813155C:: @ 0813155C + .incbin "baserom.gba", 0x13155C, 0x000000C + +gUnk_08131568:: @ 08131568 + .incbin "baserom.gba", 0x131568, 0x000000C + +gUnk_08131574:: @ 08131574 + .incbin "baserom.gba", 0x131574, 0x000000C + +gUnk_08131580:: @ 08131580 + .incbin "baserom.gba", 0x131580, 0x000000C + +gUnk_0813158C:: @ 0813158C + .incbin "baserom.gba", 0x13158C, 0x000000C + +gUnk_08131598:: @ 08131598 + .incbin "baserom.gba", 0x131598, 0x000000C + +gUnk_081315A4:: @ 081315A4 + .incbin "baserom.gba", 0x1315A4, 0x000000C + +gUnk_081315B0:: @ 081315B0 + .incbin "baserom.gba", 0x1315B0, 0x000000C + +gUnk_081315BC:: @ 081315BC + .incbin "baserom.gba", 0x1315BC, 0x000000C + +gUnk_081315C8:: @ 081315C8 + .incbin "baserom.gba", 0x1315C8, 0x000000C + +gUnk_081315D4:: @ 081315D4 + .incbin "baserom.gba", 0x1315D4, 0x0000009 + +gUnk_081315DD:: @ 081315DD + .incbin "baserom.gba", 0x1315DD, 0x0000003 + +gUnk_081315E0:: @ 081315E0 + .incbin "baserom.gba", 0x1315E0, 0x000000C + +gUnk_081315EC:: @ 081315EC + .incbin "baserom.gba", 0x1315EC, 0x000000C + +gUnk_081315F8:: @ 081315F8 + .incbin "baserom.gba", 0x1315F8, 0x000000C + +gUnk_08131604:: @ 08131604 + .incbin "baserom.gba", 0x131604, 0x000000C + +gUnk_08131610:: @ 08131610 + .incbin "baserom.gba", 0x131610, 0x000000B + +gUnk_0813161B:: @ 0813161B + .incbin "baserom.gba", 0x13161B, 0x0000001 + +gUnk_0813161C:: @ 0813161C + .incbin "baserom.gba", 0x13161C, 0x000000C + +gUnk_08131628:: @ 08131628 + .incbin "baserom.gba", 0x131628, 0x000000C + +gUnk_08131634:: @ 08131634 + .incbin "baserom.gba", 0x131634, 0x000000C + +gUnk_08131640:: @ 08131640 + .incbin "baserom.gba", 0x131640, 0x000000C + +gUnk_0813164C:: @ 0813164C + .incbin "baserom.gba", 0x13164C, 0x000000C + +gUnk_08131658:: @ 08131658 + .incbin "baserom.gba", 0x131658, 0x000000C + +gUnk_08131664:: @ 08131664 + .incbin "baserom.gba", 0x131664, 0x000000C + +gUnk_08131670:: @ 08131670 + .incbin "baserom.gba", 0x131670, 0x000000C + +gUnk_0813167C:: @ 0813167C + .incbin "baserom.gba", 0x13167C, 0x000000C + +gUnk_08131688:: @ 08131688 + .incbin "baserom.gba", 0x131688, 0x000000C + +gUnk_08131694:: @ 08131694 + .incbin "baserom.gba", 0x131694, 0x000000C + +gUnk_081316A0:: @ 081316A0 + .incbin "baserom.gba", 0x1316A0, 0x000004E + +gUnk_081316EE:: @ 081316EE + .incbin "baserom.gba", 0x1316EE, 0x000001A + +gUnk_08131708:: @ 08131708 + .incbin "baserom.gba", 0x131708, 0x0000008 + +gUnk_08131710:: @ 08131710 + .incbin "baserom.gba", 0x131710, 0x0000002 + +gUnk_08131712:: @ 08131712 + .incbin "baserom.gba", 0x131712, 0x0000001 + +gUnk_08131713:: @ 08131713 + .incbin "baserom.gba", 0x131713, 0x0000003 + +gUnk_08131716:: @ 08131716 + .incbin "baserom.gba", 0x131716, 0x0000009 + +gUnk_0813171F:: @ 0813171F + .incbin "baserom.gba", 0x13171F, 0x00000C3 + +gUnk_081317E2:: @ 081317E2 + .incbin "baserom.gba", 0x1317E2, 0x0000032 + +gUnk_08131814:: @ 08131814 + .incbin "baserom.gba", 0x131814, 0x0000001 + +gUnk_08131815:: @ 08131815 + .incbin "baserom.gba", 0x131815, 0x00000F7 + +gUnk_0813190C:: @ 0813190C + .incbin "baserom.gba", 0x13190C, 0x0000001 + +gUnk_0813190D:: @ 0813190D + .incbin "baserom.gba", 0x13190D, 0x0000008 + +gUnk_08131915:: @ 08131915 + .incbin "baserom.gba", 0x131915, 0x0000002 + +gUnk_08131917:: @ 08131917 + .incbin "baserom.gba", 0x131917, 0x0000001 + +gUnk_08131918:: @ 08131918 + .incbin "baserom.gba", 0x131918, 0x0000001 + +gUnk_08131919:: @ 08131919 + .incbin "baserom.gba", 0x131919, 0x0000004 + +gUnk_0813191D:: @ 0813191D + .incbin "baserom.gba", 0x13191D, 0x0000003 + +gUnk_08131920:: @ 08131920 + .incbin "baserom.gba", 0x131920, 0x0000008 + +gUnk_08131928:: @ 08131928 + .incbin "baserom.gba", 0x131928, 0x0000010 + +gUnk_08131938:: @ 08131938 + .incbin "baserom.gba", 0x131938, 0x0000010 + +gUnk_08131948:: @ 08131948 + .incbin "baserom.gba", 0x131948, 0x000000C + +gUnk_08131954:: @ 08131954 + .incbin "baserom.gba", 0x131954, 0x000000C + +gUnk_08131960:: @ 08131960 + .incbin "baserom.gba", 0x131960, 0x000000C + +gUnk_0813196C:: @ 0813196C + .incbin "baserom.gba", 0x13196C, 0x000000C + +gUnk_08131978:: @ 08131978 + .incbin "baserom.gba", 0x131978, 0x000000C + +gUnk_08131984:: @ 08131984 + .incbin "baserom.gba", 0x131984, 0x000000C + +gUnk_08131990:: @ 08131990 + .incbin "baserom.gba", 0x131990, 0x000000C + +gUnk_0813199C:: @ 0813199C + .incbin "baserom.gba", 0x13199C, 0x000000C + +gUnk_081319A8:: @ 081319A8 + .incbin "baserom.gba", 0x1319A8, 0x000000C + +gUnk_081319B4:: @ 081319B4 + .incbin "baserom.gba", 0x1319B4, 0x000000C + +gUnk_081319C0:: @ 081319C0 + .incbin "baserom.gba", 0x1319C0, 0x000000C + +gUnk_081319CC:: @ 081319CC + .incbin "baserom.gba", 0x1319CC, 0x000000C + +gUnk_081319D8:: @ 081319D8 + .incbin "baserom.gba", 0x1319D8, 0x000000C + +gUnk_081319E4:: @ 081319E4 + .incbin "baserom.gba", 0x1319E4, 0x0000014 + +gUnk_081319F8:: @ 081319F8 + .incbin "baserom.gba", 0x1319F8, 0x0000010 + +gUnk_08131A08:: @ 08131A08 + .incbin "baserom.gba", 0x131A08, 0x0000010 + +gUnk_08131A18:: @ 08131A18 + .incbin "baserom.gba", 0x131A18, 0x0000005 + +gUnk_08131A1D:: @ 08131A1D + .incbin "baserom.gba", 0x131A1D, 0x0000001 + +gUnk_08131A1E:: @ 08131A1E + .incbin "baserom.gba", 0x131A1E, 0x0000001 + +gUnk_08131A1F:: @ 08131A1F + .incbin "baserom.gba", 0x131A1F, 0x0000009 + +gUnk_08131A28:: @ 08131A28 + .incbin "baserom.gba", 0x131A28, 0x000000C + +gUnk_08131A34:: @ 08131A34 + .incbin "baserom.gba", 0x131A34, 0x000000C + +gUnk_08131A40:: @ 08131A40 + .incbin "baserom.gba", 0x131A40, 0x0000010 + +gUnk_08131A50:: @ 08131A50 + .incbin "baserom.gba", 0x131A50, 0x0000010 + +gUnk_08131A60:: @ 08131A60 + .incbin "baserom.gba", 0x131A60, 0x0000010 + +gUnk_08131A70:: @ 08131A70 + .incbin "baserom.gba", 0x131A70, 0x0000010 + +gUnk_08131A80:: @ 08131A80 + .incbin "baserom.gba", 0x131A80, 0x0000010 + +gUnk_08131A90:: @ 08131A90 + .incbin "baserom.gba", 0x131A90, 0x0000010 + +gUnk_08131AA0:: @ 08131AA0 + .incbin "baserom.gba", 0x131AA0, 0x0000014 + +gUnk_08131AB4:: @ 08131AB4 + .incbin "baserom.gba", 0x131AB4, 0x0000010 + +gUnk_08131AC4:: @ 08131AC4 + .incbin "baserom.gba", 0x131AC4, 0x0000014 + +gUnk_08131AD8:: @ 08131AD8 + .incbin "baserom.gba", 0x131AD8, 0x0000014 + +gUnk_08131AEC:: @ 08131AEC + .incbin "baserom.gba", 0x131AEC, 0x0000014 + +gUnk_08131B00:: @ 08131B00 + .incbin "baserom.gba", 0x131B00, 0x000000F + +gUnk_08131B0F:: @ 08131B0F + .incbin "baserom.gba", 0x131B0F, 0x0000001 + +gUnk_08131B10:: @ 08131B10 + .incbin "baserom.gba", 0x131B10, 0x0000008 + +gUnk_08131B18:: @ 08131B18 + .incbin "baserom.gba", 0x131B18, 0x0000001 + +gUnk_08131B19:: @ 08131B19 + .incbin "baserom.gba", 0x131B19, 0x0000003 + +gUnk_08131B1C:: @ 08131B1C + .incbin "baserom.gba", 0x131B1C, 0x0000004 + +gUnk_08131B20:: @ 08131B20 + .incbin "baserom.gba", 0x131B20, 0x0000002 + +gUnk_08131B22:: @ 08131B22 + .incbin "baserom.gba", 0x131B22, 0x0000002 + +gUnk_08131B24:: @ 08131B24 + .incbin "baserom.gba", 0x131B24, 0x0000010 + +gUnk_08131B34:: @ 08131B34 + .incbin "baserom.gba", 0x131B34, 0x0000010 + +gUnk_08131B44:: @ 08131B44 + .incbin "baserom.gba", 0x131B44, 0x0000010 + +gUnk_08131B54:: @ 08131B54 + .incbin "baserom.gba", 0x131B54, 0x0000010 + +gUnk_08131B64:: @ 08131B64 + .incbin "baserom.gba", 0x131B64, 0x000000C + +gUnk_08131B70:: @ 08131B70 + .incbin "baserom.gba", 0x131B70, 0x000000C + +gUnk_08131B7C:: @ 08131B7C + .incbin "baserom.gba", 0x131B7C, 0x000000C + +gUnk_08131B88:: @ 08131B88 + .incbin "baserom.gba", 0x131B88, 0x000000C + +gUnk_08131B94:: @ 08131B94 + .incbin "baserom.gba", 0x131B94, 0x000000C + +gUnk_08131BA0:: @ 08131BA0 + .incbin "baserom.gba", 0x131BA0, 0x000000C + +gUnk_08131BAC:: @ 08131BAC + .incbin "baserom.gba", 0x131BAC, 0x000000C + +gUnk_08131BB8:: @ 08131BB8 + .incbin "baserom.gba", 0x131BB8, 0x000000C + +gUnk_08131BC4:: @ 08131BC4 + .incbin "baserom.gba", 0x131BC4, 0x000000C + +gUnk_08131BD0:: @ 08131BD0 + .incbin "baserom.gba", 0x131BD0, 0x000000C + +gUnk_08131BDC:: @ 08131BDC + .incbin "baserom.gba", 0x131BDC, 0x000000C + +gUnk_08131BE8:: @ 08131BE8 + .incbin "baserom.gba", 0x131BE8, 0x0000010 + +gUnk_08131BF8:: @ 08131BF8 + .incbin "baserom.gba", 0x131BF8, 0x000000C + +gUnk_08131C04:: @ 08131C04 + .incbin "baserom.gba", 0x131C04, 0x000000C + +gUnk_08131C10:: @ 08131C10 + .incbin "baserom.gba", 0x131C10, 0x000000C + +gUnk_08131C1C:: @ 08131C1C + .incbin "baserom.gba", 0x131C1C, 0x0000002 + +gUnk_08131C1E:: @ 08131C1E + .incbin "baserom.gba", 0x131C1E, 0x0000005 + +gUnk_08131C23:: @ 08131C23 + .incbin "baserom.gba", 0x131C23, 0x0000002 + +gUnk_08131C25:: @ 08131C25 + .incbin "baserom.gba", 0x131C25, 0x0000003 + +gUnk_08131C28:: @ 08131C28 + .incbin "baserom.gba", 0x131C28, 0x000000C + +gUnk_08131C34:: @ 08131C34 + .incbin "baserom.gba", 0x131C34, 0x000000C + +gUnk_08131C40:: @ 08131C40 + .incbin "baserom.gba", 0x131C40, 0x0000010 + +gUnk_08131C50:: @ 08131C50 + .incbin "baserom.gba", 0x131C50, 0x000000C + +gUnk_08131C5C:: @ 08131C5C + .incbin "baserom.gba", 0x131C5C, 0x000000C + +gUnk_08131C68:: @ 08131C68 + .incbin "baserom.gba", 0x131C68, 0x000000C + +gUnk_08131C74:: @ 08131C74 + .incbin "baserom.gba", 0x131C74, 0x000000C + +gUnk_08131C80:: @ 08131C80 + .incbin "baserom.gba", 0x131C80, 0x000000C + +gUnk_08131C8C:: @ 08131C8C + .incbin "baserom.gba", 0x131C8C, 0x000000C + +gUnk_08131C98:: @ 08131C98 + .incbin "baserom.gba", 0x131C98, 0x0000010 + +gUnk_08131CA8:: @ 08131CA8 + .incbin "baserom.gba", 0x131CA8, 0x000000C + +gUnk_08131CB4:: @ 08131CB4 + .incbin "baserom.gba", 0x131CB4, 0x000000C + +gUnk_08131CC0:: @ 08131CC0 + .incbin "baserom.gba", 0x131CC0, 0x000000C + +gUnk_08131CCC:: @ 08131CCC + .incbin "baserom.gba", 0x131CCC, 0x000000C + +gUnk_08131CD8:: @ 08131CD8 + .incbin "baserom.gba", 0x131CD8, 0x000000C + +gUnk_08131CE4:: @ 08131CE4 + .incbin "baserom.gba", 0x131CE4, 0x000000C + +gUnk_08131CF0:: @ 08131CF0 + .incbin "baserom.gba", 0x131CF0, 0x000000C + +gUnk_08131CFC:: @ 08131CFC + .incbin "baserom.gba", 0x131CFC, 0x000000C + +gUnk_08131D08:: @ 08131D08 + .incbin "baserom.gba", 0x131D08, 0x000000C + +gUnk_08131D14:: @ 08131D14 + .incbin "baserom.gba", 0x131D14, 0x0000005 + +gUnk_08131D19:: @ 08131D19 + .incbin "baserom.gba", 0x131D19, 0x0000006 + +gUnk_08131D1F:: @ 08131D1F + .incbin "baserom.gba", 0x131D1F, 0x0000001 + +gUnk_08131D20:: @ 08131D20 + .incbin "baserom.gba", 0x131D20, 0x0000002 + +gUnk_08131D22:: @ 08131D22 + .incbin "baserom.gba", 0x131D22, 0x0000002 + +gUnk_08131D24:: @ 08131D24 + .incbin "baserom.gba", 0x131D24, 0x0000001 + +gUnk_08131D25:: @ 08131D25 + .incbin "baserom.gba", 0x131D25, 0x0000001 + +gUnk_08131D26:: @ 08131D26 + .incbin "baserom.gba", 0x131D26, 0x0000004 + +gUnk_08131D2A:: @ 08131D2A + .incbin "baserom.gba", 0x131D2A, 0x0000002 + +gUnk_08131D2C:: @ 08131D2C + .incbin "baserom.gba", 0x131D2C, 0x000000C + +gUnk_08131D38:: @ 08131D38 + .incbin "baserom.gba", 0x131D38, 0x000000C + +gUnk_08131D44:: @ 08131D44 + .incbin "baserom.gba", 0x131D44, 0x000000C + +gUnk_08131D50:: @ 08131D50 + .incbin "baserom.gba", 0x131D50, 0x000000C + +gUnk_08131D5C:: @ 08131D5C + .incbin "baserom.gba", 0x131D5C, 0x000000C + +gUnk_08131D68:: @ 08131D68 + .incbin "baserom.gba", 0x131D68, 0x000000C + +gUnk_08131D74:: @ 08131D74 + .incbin "baserom.gba", 0x131D74, 0x000000C + +gUnk_08131D80:: @ 08131D80 + .incbin "baserom.gba", 0x131D80, 0x000000C + +gUnk_08131D8C:: @ 08131D8C + .incbin "baserom.gba", 0x131D8C, 0x000000C + +gUnk_08131D98:: @ 08131D98 + .incbin "baserom.gba", 0x131D98, 0x000000C + +gUnk_08131DA4:: @ 08131DA4 + .incbin "baserom.gba", 0x131DA4, 0x000000C + +gUnk_08131DB0:: @ 08131DB0 + .incbin "baserom.gba", 0x131DB0, 0x000000C + +gUnk_08131DBC:: @ 08131DBC + .incbin "baserom.gba", 0x131DBC, 0x000000C + +gUnk_08131DC8:: @ 08131DC8 + .incbin "baserom.gba", 0x131DC8, 0x000000C + +gUnk_08131DD4:: @ 08131DD4 + .incbin "baserom.gba", 0x131DD4, 0x000000C + +gUnk_08131DE0:: @ 08131DE0 + .incbin "baserom.gba", 0x131DE0, 0x000000C + +gUnk_08131DEC:: @ 08131DEC + .incbin "baserom.gba", 0x131DEC, 0x0000003 + +gUnk_08131DEF:: @ 08131DEF + .incbin "baserom.gba", 0x131DEF, 0x0000009 + +gUnk_08131DF8:: @ 08131DF8 + .incbin "baserom.gba", 0x131DF8, 0x000000C + +gUnk_08131E04:: @ 08131E04 + .incbin "baserom.gba", 0x131E04, 0x000000C + +gUnk_08131E10:: @ 08131E10 + .incbin "baserom.gba", 0x131E10, 0x000000C + +gUnk_08131E1C:: @ 08131E1C + .incbin "baserom.gba", 0x131E1C, 0x000000B + +gUnk_08131E27:: @ 08131E27 + .incbin "baserom.gba", 0x131E27, 0x0000001 + +gUnk_08131E28:: @ 08131E28 + .incbin "baserom.gba", 0x131E28, 0x0000001 + +gUnk_08131E29:: @ 08131E29 + .incbin "baserom.gba", 0x131E29, 0x000000A + +gUnk_08131E33:: @ 08131E33 + .incbin "baserom.gba", 0x131E33, 0x0000001 + +gUnk_08131E34:: @ 08131E34 + .incbin "baserom.gba", 0x131E34, 0x000000C + +gUnk_08131E40:: @ 08131E40 + .incbin "baserom.gba", 0x131E40, 0x000000C + +gUnk_08131E4C:: @ 08131E4C + .incbin "baserom.gba", 0x131E4C, 0x000000C + +gUnk_08131E58:: @ 08131E58 + .incbin "baserom.gba", 0x131E58, 0x000000C + +gUnk_08131E64:: @ 08131E64 + .incbin "baserom.gba", 0x131E64, 0x000000C + +gUnk_08131E70:: @ 08131E70 + .incbin "baserom.gba", 0x131E70, 0x000000C + +gUnk_08131E7C:: @ 08131E7C + .incbin "baserom.gba", 0x131E7C, 0x000000C + +gUnk_08131E88:: @ 08131E88 + .incbin "baserom.gba", 0x131E88, 0x000000C + +gUnk_08131E94:: @ 08131E94 + .incbin "baserom.gba", 0x131E94, 0x000000C + +gUnk_08131EA0:: @ 08131EA0 + .incbin "baserom.gba", 0x131EA0, 0x000000C + +gUnk_08131EAC:: @ 08131EAC + .incbin "baserom.gba", 0x131EAC, 0x000000C + +gUnk_08131EB8:: @ 08131EB8 + .incbin "baserom.gba", 0x131EB8, 0x000000C + +gUnk_08131EC4:: @ 08131EC4 + .incbin "baserom.gba", 0x131EC4, 0x000000C + +gUnk_08131ED0:: @ 08131ED0 + .incbin "baserom.gba", 0x131ED0, 0x000000C + +gUnk_08131EDC:: @ 08131EDC + .incbin "baserom.gba", 0x131EDC, 0x000000C + +gUnk_08131EE8:: @ 08131EE8 + .incbin "baserom.gba", 0x131EE8, 0x000000C + +gUnk_08131EF4:: @ 08131EF4 + .incbin "baserom.gba", 0x131EF4, 0x000000C + +gUnk_08131F00:: @ 08131F00 + .incbin "baserom.gba", 0x131F00, 0x000000C + +gUnk_08131F0C:: @ 08131F0C + .incbin "baserom.gba", 0x131F0C, 0x000000C + +gUnk_08131F18:: @ 08131F18 + .incbin "baserom.gba", 0x131F18, 0x000000A + +gUnk_08131F22:: @ 08131F22 + .incbin "baserom.gba", 0x131F22, 0x0000002 + +gUnk_08131F24:: @ 08131F24 + .incbin "baserom.gba", 0x131F24, 0x0000007 + +gUnk_08131F2B:: @ 08131F2B + .incbin "baserom.gba", 0x131F2B, 0x0000004 + +gUnk_08131F2F:: @ 08131F2F + .incbin "baserom.gba", 0x131F2F, 0x0000001 + +gUnk_08131F30:: @ 08131F30 + .incbin "baserom.gba", 0x131F30, 0x0000002 + +gUnk_08131F32:: @ 08131F32 + .incbin "baserom.gba", 0x131F32, 0x000000A + +gUnk_08131F3C:: @ 08131F3C + .incbin "baserom.gba", 0x131F3C, 0x000000C + +gUnk_08131F48:: @ 08131F48 + .incbin "baserom.gba", 0x131F48, 0x000000C + +gUnk_08131F54:: @ 08131F54 + .incbin "baserom.gba", 0x131F54, 0x000000C + +gUnk_08131F60:: @ 08131F60 + .incbin "baserom.gba", 0x131F60, 0x000000C + +gUnk_08131F6C:: @ 08131F6C + .incbin "baserom.gba", 0x131F6C, 0x000000C + +gUnk_08131F78:: @ 08131F78 + .incbin "baserom.gba", 0x131F78, 0x000000C + +gUnk_08131F84:: @ 08131F84 + .incbin "baserom.gba", 0x131F84, 0x000000C + +gUnk_08131F90:: @ 08131F90 + .incbin "baserom.gba", 0x131F90, 0x000000C + +gUnk_08131F9C:: @ 08131F9C + .incbin "baserom.gba", 0x131F9C, 0x000000C + +gUnk_08131FA8:: @ 08131FA8 + .incbin "baserom.gba", 0x131FA8, 0x000000C + +gUnk_08131FB4:: @ 08131FB4 + .incbin "baserom.gba", 0x131FB4, 0x000000C + +gUnk_08131FC0:: @ 08131FC0 + .incbin "baserom.gba", 0x131FC0, 0x000000C + +gUnk_08131FCC:: @ 08131FCC + .incbin "baserom.gba", 0x131FCC, 0x000000C + +gUnk_08131FD8:: @ 08131FD8 + .incbin "baserom.gba", 0x131FD8, 0x000000C + +gUnk_08131FE4:: @ 08131FE4 + .incbin "baserom.gba", 0x131FE4, 0x000000C + +gUnk_08131FF0:: @ 08131FF0 + .incbin "baserom.gba", 0x131FF0, 0x000000C + +gUnk_08131FFC:: @ 08131FFC + .incbin "baserom.gba", 0x131FFC, 0x0000003 + +gUnk_08131FFF:: @ 08131FFF + .incbin "baserom.gba", 0x131FFF, 0x0000007 + +gUnk_08132006:: @ 08132006 + .incbin "baserom.gba", 0x132006, 0x0000002 + +gUnk_08132008:: @ 08132008 + .incbin "baserom.gba", 0x132008, 0x000000C + +gUnk_08132014:: @ 08132014 + .incbin "baserom.gba", 0x132014, 0x000000C + +gUnk_08132020:: @ 08132020 + .incbin "baserom.gba", 0x132020, 0x0000009 + +gUnk_08132029:: @ 08132029 + .incbin "baserom.gba", 0x132029, 0x0000001 + +gUnk_0813202A:: @ 0813202A + .incbin "baserom.gba", 0x13202A, 0x0000002 + +gUnk_0813202C:: @ 0813202C + .incbin "baserom.gba", 0x13202C, 0x0000001 + +gUnk_0813202D:: @ 0813202D + .incbin "baserom.gba", 0x13202D, 0x0000002 + +gUnk_0813202F:: @ 0813202F + .incbin "baserom.gba", 0x13202F, 0x0000009 + +gUnk_08132038:: @ 08132038 + .incbin "baserom.gba", 0x132038, 0x000000C + +gUnk_08132044:: @ 08132044 + .incbin "baserom.gba", 0x132044, 0x000000C + +gUnk_08132050:: @ 08132050 + .incbin "baserom.gba", 0x132050, 0x000000C + +gUnk_0813205C:: @ 0813205C + .incbin "baserom.gba", 0x13205C, 0x000000C + +gUnk_08132068:: @ 08132068 + .incbin "baserom.gba", 0x132068, 0x000000C + +gUnk_08132074:: @ 08132074 + .incbin "baserom.gba", 0x132074, 0x000000C + +gUnk_08132080:: @ 08132080 + .incbin "baserom.gba", 0x132080, 0x000000C + +gUnk_0813208C:: @ 0813208C + .incbin "baserom.gba", 0x13208C, 0x000001C + +gUnk_081320A8:: @ 081320A8 + .incbin "baserom.gba", 0x1320A8, 0x0000010 + +gUnk_081320B8:: @ 081320B8 + .incbin "baserom.gba", 0x1320B8, 0x000000C + +gUnk_081320C4:: @ 081320C4 + .incbin "baserom.gba", 0x1320C4, 0x0000008 + +gUnk_081320CC:: @ 081320CC + .incbin "baserom.gba", 0x1320CC, 0x0000008 + +gUnk_081320D4:: @ 081320D4 + .incbin "baserom.gba", 0x1320D4, 0x0000010 + +gUnk_081320E4:: @ 081320E4 + .incbin "baserom.gba", 0x1320E4, 0x000000C + +gUnk_081320F0:: @ 081320F0 + .incbin "baserom.gba", 0x1320F0, 0x000000C + +gUnk_081320FC:: @ 081320FC + .incbin "baserom.gba", 0x1320FC, 0x0000010 + +gUnk_0813210C:: @ 0813210C + .incbin "baserom.gba", 0x13210C, 0x0000113 + +gUnk_0813221F:: @ 0813221F + .incbin "baserom.gba", 0x13221F, 0x0000011 + +gUnk_08132230:: @ 08132230 + .incbin "baserom.gba", 0x132230, 0x0000002 + +gUnk_08132232:: @ 08132232 + .incbin "baserom.gba", 0x132232, 0x00000F2 + +gUnk_08132324:: @ 08132324 + .incbin "baserom.gba", 0x132324, 0x0000038 + +gUnk_0813235C:: @ 0813235C + .incbin "baserom.gba", 0x13235C, 0x0000050 + +gUnk_081323AC:: @ 081323AC + .incbin "baserom.gba", 0x1323AC, 0x0000030 + +gUnk_081323DC:: @ 081323DC + .incbin "baserom.gba", 0x1323DC, 0x0000030 + +gUnk_0813240C:: @ 0813240C + .incbin "baserom.gba", 0x13240C, 0x0000010 + +gUnk_0813241C:: @ 0813241C + .incbin "baserom.gba", 0x13241C, 0x0000010 + +gUnk_0813242C:: @ 0813242C + .incbin "baserom.gba", 0x13242C, 0x0000020 + +gUnk_0813244C:: @ 0813244C + .incbin "baserom.gba", 0x13244C, 0x0000040 + +gUnk_0813248C:: @ 0813248C + .incbin "baserom.gba", 0x13248C, 0x0000020 + +gUnk_081324AC:: @ 081324AC + .incbin "baserom.gba", 0x1324AC, 0x0000040 + +gUnk_081324EC:: @ 081324EC + .incbin "baserom.gba", 0x1324EC, 0x000001A + +gUnk_08132506:: @ 08132506 + .incbin "baserom.gba", 0x132506, 0x0000006 + +gUnk_0813250C:: @ 0813250C + .incbin "baserom.gba", 0x13250C, 0x0000020 + +gUnk_0813252C:: @ 0813252C + .incbin "baserom.gba", 0x13252C, 0x0000040 + +gUnk_0813256C:: @ 0813256C + .incbin "baserom.gba", 0x13256C, 0x0000050 + +gUnk_081325BC:: @ 081325BC + .incbin "baserom.gba", 0x1325BC, 0x0000065 + +gUnk_08132621:: @ 08132621 + .incbin "baserom.gba", 0x132621, 0x0000012 + +gUnk_08132633:: @ 08132633 + .incbin "baserom.gba", 0x132633, 0x0000069 + +gUnk_0813269C:: @ 0813269C + .incbin "baserom.gba", 0x13269C, 0x0000030 + +gUnk_081326CC:: @ 081326CC + .incbin "baserom.gba", 0x1326CC, 0x0000020 + +gUnk_081326EC:: @ 081326EC + .incbin "baserom.gba", 0x1326EC, 0x0000014 + +gUnk_08132700:: @ 08132700 + .incbin "baserom.gba", 0x132700, 0x0000014 + +gUnk_08132714:: @ 08132714 + .incbin "baserom.gba", 0x132714, 0x0000020 + +gUnk_08132734:: @ 08132734 + .incbin "baserom.gba", 0x132734, 0x0000001 + +gUnk_08132735:: @ 08132735 + .incbin "baserom.gba", 0x132735, 0x0000001 + +gUnk_08132736:: @ 08132736 + .incbin "baserom.gba", 0x132736, 0x000000E + +gUnk_08132744:: @ 08132744 + .incbin "baserom.gba", 0x132744, 0x0000010 + +gUnk_08132754:: @ 08132754 + .incbin "baserom.gba", 0x132754, 0x0000010 + +gUnk_08132764:: @ 08132764 + .incbin "baserom.gba", 0x132764, 0x0000010 + +gUnk_08132774:: @ 08132774 + .incbin "baserom.gba", 0x132774, 0x0000010 + +gUnk_08132784:: @ 08132784 + .incbin "baserom.gba", 0x132784, 0x0000010 + +gUnk_08132794:: @ 08132794 + .incbin "baserom.gba", 0x132794, 0x0000018 + +gUnk_081327AC:: @ 081327AC + .incbin "baserom.gba", 0x1327AC, 0x0000018 + +gUnk_081327C4:: @ 081327C4 + .incbin "baserom.gba", 0x1327C4, 0x0000018 + +gUnk_081327DC:: @ 081327DC + .incbin "baserom.gba", 0x1327DC, 0x0000034 + +gUnk_08132810:: @ 08132810 + .incbin "baserom.gba", 0x132810, 0x0000017 + +gUnk_08132827:: @ 08132827 + .incbin "baserom.gba", 0x132827, 0x00002B9 + +gUnk_08132AE0:: @ 08132AE0 + .incbin "baserom.gba", 0x132AE0, 0x000000A + +gUnk_08132AEA:: @ 08132AEA + .incbin "baserom.gba", 0x132AEA, 0x000000A + +gUnk_08132AF4:: @ 08132AF4 + .incbin "baserom.gba", 0x132AF4, 0x000000A + +gUnk_08132AFE:: @ 08132AFE + .incbin "baserom.gba", 0x132AFE, 0x000000E + +gUnk_08132B0C:: @ 08132B0C + .incbin "baserom.gba", 0x132B0C, 0x000000E + +gUnk_08132B1A:: @ 08132B1A + .incbin "baserom.gba", 0x132B1A, 0x000000E + +gUnk_08132B28:: @ 08132B28 + .incbin "baserom.gba", 0x132B28, 0x0000008 + +gUnk_08132B30:: @ 08132B30 + .incbin "baserom.gba", 0x132B30, 0x0000203 + +gUnk_08132D33:: @ 08132D33 + .incbin "baserom.gba", 0x132D33, 0x00002E6 + +gUnk_08133019:: @ 08133019 + .incbin "baserom.gba", 0x133019, 0x00000F8 + +gUnk_08133111:: @ 08133111 + .incbin "baserom.gba", 0x133111, 0x0000200 + +gUnk_08133311:: @ 08133311 + .incbin "baserom.gba", 0x133311, 0x0000022 + +gUnk_08133333:: @ 08133333 + .incbin "baserom.gba", 0x133333, 0x0000035 + +gUnk_08133368:: @ 08133368 + .incbin "baserom.gba", 0x133368, 0x00005B0 + +gUnk_08133918:: @ 08133918 + .incbin "baserom.gba", 0x133918, 0x0000020 + +gUnk_08133938:: @ 08133938 + .incbin "baserom.gba", 0x133938, 0x0000020 + +gUnk_08133958:: @ 08133958 + .incbin "baserom.gba", 0x133958, 0x0000020 + +gUnk_08133978:: @ 08133978 + .incbin "baserom.gba", 0x133978, 0x0000020 + +gUnk_08133998:: @ 08133998 + .incbin "baserom.gba", 0x133998, 0x0000020 + +gUnk_081339B8:: @ 081339B8 + .incbin "baserom.gba", 0x1339B8, 0x0000020 + +gUnk_081339D8:: @ 081339D8 + .incbin "baserom.gba", 0x1339D8, 0x0000020 + +gUnk_081339F8:: @ 081339F8 + .incbin "baserom.gba", 0x1339F8, 0x0000020 + +gUnk_08133A18:: @ 08133A18 + .incbin "baserom.gba", 0x133A18, 0x0000028 + +gUnk_08133A40:: @ 08133A40 + .incbin "baserom.gba", 0x133A40, 0x000001A + +gUnk_08133A5A:: @ 08133A5A + .incbin "baserom.gba", 0x133A5A, 0x000000D + +gUnk_08133A67:: @ 08133A67 + .incbin "baserom.gba", 0x133A67, 0x00004E1 + +gUnk_08133F48:: @ 08133F48 + .incbin "baserom.gba", 0x133F48, 0x0000080 + +gUnk_08133FC8:: @ 08133FC8 + .incbin "baserom.gba", 0x133FC8, 0x0000014 + +gUnk_08133FDC:: @ 08133FDC + .incbin "baserom.gba", 0x133FDC, 0x0000100 + +gUnk_081340DC:: @ 081340DC + .incbin "baserom.gba", 0x1340DC, 0x000012C + +gUnk_08134208:: @ 08134208 + .incbin "baserom.gba", 0x134208, 0x0000004 + +gUnk_0813420C:: @ 0813420C + .incbin "baserom.gba", 0x13420C, 0x00000DC + +gUnk_081342E8:: @ 081342E8 + .incbin "baserom.gba", 0x1342E8, 0x000004B + +gUnk_08134333:: @ 08134333 + .incbin "baserom.gba", 0x134333, 0x0000005 + +gUnk_08134338:: @ 08134338 + .incbin "baserom.gba", 0x134338, 0x0000008 + +gUnk_08134340:: @ 08134340 + .incbin "baserom.gba", 0x134340, 0x00000C8 + +gUnk_08134408:: @ 08134408 + .incbin "baserom.gba", 0x134408, 0x0000004 + +gUnk_0813440C:: @ 0813440C + .incbin "baserom.gba", 0x13440C, 0x0000032 + +gUnk_0813443E:: @ 0813443E + .incbin "baserom.gba", 0x13443E, 0x000000A + +gUnk_08134448:: @ 08134448 + .incbin "baserom.gba", 0x134448, 0x0000014 + +gUnk_0813445C:: @ 0813445C + .incbin "baserom.gba", 0x13445C, 0x0000028 + +gUnk_08134484:: @ 08134484 + .incbin "baserom.gba", 0x134484, 0x0000028 + +gUnk_081344AC:: @ 081344AC + .incbin "baserom.gba", 0x1344AC, 0x0000018 + +gUnk_081344C4:: @ 081344C4 + .incbin "baserom.gba", 0x1344C4, 0x00002D0 + +gUnk_08134794:: @ 08134794 + .incbin "baserom.gba", 0x134794, 0x0000004 + +gUnk_08134798:: @ 08134798 + .incbin "baserom.gba", 0x134798, 0x0000028 + +gUnk_081347C0:: @ 081347C0 + .incbin "baserom.gba", 0x1347C0, 0x0000004 + +gUnk_081347C4:: @ 081347C4 + .incbin "baserom.gba", 0x1347C4, 0x000003C + +gUnk_08134800:: @ 08134800 + .incbin "baserom.gba", 0x134800, 0x0000050 + +gUnk_08134850:: @ 08134850 + .incbin "baserom.gba", 0x134850, 0x00000B4 + +gUnk_08134904:: @ 08134904 + .incbin "baserom.gba", 0x134904, 0x0000064 + +gUnk_08134968:: @ 08134968 + .incbin "baserom.gba", 0x134968, 0x00000C8 + +gUnk_08134A30:: @ 08134A30 + .incbin "baserom.gba", 0x134A30, 0x0000014 + +gUnk_08134A44:: @ 08134A44 + .incbin "baserom.gba", 0x134A44, 0x0000028 + +gUnk_08134A6C:: @ 08134A6C + .incbin "baserom.gba", 0x134A6C, 0x00000A0 + +gUnk_08134B0C:: @ 08134B0C + .incbin "baserom.gba", 0x134B0C, 0x000003C + +gUnk_08134B48:: @ 08134B48 + .incbin "baserom.gba", 0x134B48, 0x0000028 + +gUnk_08134B70:: @ 08134B70 + .incbin "baserom.gba", 0x134B70, 0x000003C + +gUnk_08134BAC:: @ 08134BAC + .incbin "baserom.gba", 0x134BAC, 0x0000038 + +gUnk_08134BE4:: @ 08134BE4 + .incbin "baserom.gba", 0x134BE4, 0x00000A4 + +gUnk_08134C88:: @ 08134C88 + .incbin "baserom.gba", 0x134C88, 0x0000140 + +gUnk_08134DC8:: @ 08134DC8 + .incbin "baserom.gba", 0x134DC8, 0x00000DC + +gUnk_08134EA4:: @ 08134EA4 + .incbin "baserom.gba", 0x134EA4, 0x000003C + +gUnk_08134EE0:: @ 08134EE0 + .incbin "baserom.gba", 0x134EE0, 0x0000028 + +gUnk_08134F08:: @ 08134F08 + .incbin "baserom.gba", 0x134F08, 0x0000028 + +gUnk_08134F30:: @ 08134F30 + .incbin "baserom.gba", 0x134F30, 0x000008C + +gUnk_08134FBC:: @ 08134FBC + .incbin "baserom.gba", 0x134FBC, 0x000008C + +gUnk_08135048:: @ 08135048 + .incbin "baserom.gba", 0x135048, 0x0000028 + +gUnk_08135070:: @ 08135070 + .incbin "baserom.gba", 0x135070, 0x0000004 + +gUnk_08135074:: @ 08135074 + .incbin "baserom.gba", 0x135074, 0x0000028 + +gUnk_0813509C:: @ 0813509C + .incbin "baserom.gba", 0x13509C, 0x0000004 + +gUnk_081350A0:: @ 081350A0 + .incbin "baserom.gba", 0x1350A0, 0x00000C8 + +gUnk_08135168:: @ 08135168 + .incbin "baserom.gba", 0x135168, 0x0000028 + +gUnk_08135190:: @ 08135190 + .incbin "baserom.gba", 0x135190, 0x000003C + +gUnk_081351CC:: @ 081351CC + .incbin "baserom.gba", 0x1351CC, 0x0000008 + +gUnk_081351D4:: @ 081351D4 + .incbin "baserom.gba", 0x1351D4, 0x0000104 + +gUnk_081352D8:: @ 081352D8 + .incbin "baserom.gba", 0x1352D8, 0x0000004 + +gUnk_081352DC:: @ 081352DC + .incbin "baserom.gba", 0x1352DC, 0x0000028 + +gUnk_08135304:: @ 08135304 + .incbin "baserom.gba", 0x135304, 0x0000028 + +gUnk_0813532C:: @ 0813532C + .incbin "baserom.gba", 0x13532C, 0x0000028 + +gUnk_08135354:: @ 08135354 + .incbin "baserom.gba", 0x135354, 0x0000028 + +gUnk_0813537C:: @ 0813537C + .incbin "baserom.gba", 0x13537C, 0x0000028 + +gUnk_081353A4:: @ 081353A4 + .incbin "baserom.gba", 0x1353A4, 0x000003C + +gUnk_081353E0:: @ 081353E0 + .incbin "baserom.gba", 0x1353E0, 0x000003C + +gUnk_0813541C:: @ 0813541C + .incbin "baserom.gba", 0x13541C, 0x000003C + +gUnk_08135458:: @ 08135458 + .incbin "baserom.gba", 0x135458, 0x000003C + +gUnk_08135494:: @ 08135494 + .incbin "baserom.gba", 0x135494, 0x000003C + +gUnk_081354D0:: @ 081354D0 + .incbin "baserom.gba", 0x1354D0, 0x0000054 + +gUnk_08135524:: @ 08135524 + .incbin "baserom.gba", 0x135524, 0x0000028 + +gUnk_0813554C:: @ 0813554C + .incbin "baserom.gba", 0x13554C, 0x0000004 + +gUnk_08135550:: @ 08135550 + .incbin "baserom.gba", 0x135550, 0x0000028 + +gUnk_08135578:: @ 08135578 + .incbin "baserom.gba", 0x135578, 0x0000004 + +gUnk_0813557C:: @ 0813557C + .incbin "baserom.gba", 0x13557C, 0x0000118 + +gUnk_08135694:: @ 08135694 + .incbin "baserom.gba", 0x135694, 0x0000028 + +gUnk_081356BC:: @ 081356BC + .incbin "baserom.gba", 0x1356BC, 0x0000010 + +gUnk_081356CC:: @ 081356CC + .incbin "baserom.gba", 0x1356CC, 0x0000078 + +gUnk_08135744:: @ 08135744 + .incbin "baserom.gba", 0x135744, 0x0000004 + +gUnk_08135748:: @ 08135748 + .incbin "baserom.gba", 0x135748, 0x000002F + +gUnk_08135777:: @ 08135777 + .incbin "baserom.gba", 0x135777, 0x000000D + +gUnk_08135784:: @ 08135784 + .incbin "baserom.gba", 0x135784, 0x000003C + +gUnk_081357C0:: @ 081357C0 + .incbin "baserom.gba", 0x1357C0, 0x0000028 + +gUnk_081357E8:: @ 081357E8 + .incbin "baserom.gba", 0x1357E8, 0x0000028 + +gUnk_08135810:: @ 08135810 + .incbin "baserom.gba", 0x135810, 0x000003C + +gUnk_0813584C:: @ 0813584C + .incbin "baserom.gba", 0x13584C, 0x0000014 + +gUnk_08135860:: @ 08135860 + .incbin "baserom.gba", 0x135860, 0x0000028 + +gUnk_08135888:: @ 08135888 + .incbin "baserom.gba", 0x135888, 0x0000028 + +gUnk_081358B0:: @ 081358B0 + .incbin "baserom.gba", 0x1358B0, 0x000003C + +gUnk_081358EC:: @ 081358EC + .incbin "baserom.gba", 0x1358EC, 0x000003C + +gUnk_08135928:: @ 08135928 + .incbin "baserom.gba", 0x135928, 0x0000010 + +gUnk_08135938:: @ 08135938 + .incbin "baserom.gba", 0x135938, 0x000003C + +gUnk_08135974:: @ 08135974 + .incbin "baserom.gba", 0x135974, 0x0000010 + +gUnk_08135984:: @ 08135984 + .incbin "baserom.gba", 0x135984, 0x0000028 + +gUnk_081359AC:: @ 081359AC + .incbin "baserom.gba", 0x1359AC, 0x0000028 + +gUnk_081359D4:: @ 081359D4 + .incbin "baserom.gba", 0x1359D4, 0x000003C + +gUnk_08135A10:: @ 08135A10 + .incbin "baserom.gba", 0x135A10, 0x0000028 + +gUnk_08135A38:: @ 08135A38 + .incbin "baserom.gba", 0x135A38, 0x0000028 + +gUnk_08135A60:: @ 08135A60 + .incbin "baserom.gba", 0x135A60, 0x0000028 + +gUnk_08135A88:: @ 08135A88 + .incbin "baserom.gba", 0x135A88, 0x0000028 + +gUnk_08135AB0:: @ 08135AB0 + .incbin "baserom.gba", 0x135AB0, 0x0000028 + +gUnk_08135AD8:: @ 08135AD8 + .incbin "baserom.gba", 0x135AD8, 0x0000028 + +gUnk_08135B00:: @ 08135B00 + .incbin "baserom.gba", 0x135B00, 0x000003C + +gUnk_08135B3C:: @ 08135B3C + .incbin "baserom.gba", 0x135B3C, 0x0000028 + +gUnk_08135B64:: @ 08135B64 + .incbin "baserom.gba", 0x135B64, 0x0000028 + +gUnk_08135B8C:: @ 08135B8C + .incbin "baserom.gba", 0x135B8C, 0x0000028 + +gUnk_08135BB4:: @ 08135BB4 + .incbin "baserom.gba", 0x135BB4, 0x0000028 + +gUnk_08135BDC:: @ 08135BDC + .incbin "baserom.gba", 0x135BDC, 0x0000028 + +gUnk_08135C04:: @ 08135C04 + .incbin "baserom.gba", 0x135C04, 0x0000028 + +gUnk_08135C2C:: @ 08135C2C + .incbin "baserom.gba", 0x135C2C, 0x0000028 + +gUnk_08135C54:: @ 08135C54 + .incbin "baserom.gba", 0x135C54, 0x0000028 + +gUnk_08135C7C:: @ 08135C7C + .incbin "baserom.gba", 0x135C7C, 0x0000028 + +gUnk_08135CA4:: @ 08135CA4 + .incbin "baserom.gba", 0x135CA4, 0x0000028 + +gUnk_08135CCC:: @ 08135CCC + .incbin "baserom.gba", 0x135CCC, 0x0000028 + +gUnk_08135CF4:: @ 08135CF4 + .incbin "baserom.gba", 0x135CF4, 0x0000028 + +gUnk_08135D1C:: @ 08135D1C + .incbin "baserom.gba", 0x135D1C, 0x0000028 + +gUnk_08135D44:: @ 08135D44 + .incbin "baserom.gba", 0x135D44, 0x00000A0 + +gUnk_08135DE4:: @ 08135DE4 + .incbin "baserom.gba", 0x135DE4, 0x000008C + +gUnk_08135E70:: @ 08135E70 + .incbin "baserom.gba", 0x135E70, 0x00000B4 + +gUnk_08135F24:: @ 08135F24 + .incbin "baserom.gba", 0x135F24, 0x00000B4 + +gUnk_08135FD8:: @ 08135FD8 + .incbin "baserom.gba", 0x135FD8, 0x0000028 + +gUnk_08136000:: @ 08136000 + .incbin "baserom.gba", 0x136000, 0x0000028 + +gUnk_08136028:: @ 08136028 + .incbin "baserom.gba", 0x136028, 0x0000014 + +gUnk_0813603C:: @ 0813603C + .incbin "baserom.gba", 0x13603C, 0x0000050 + +gUnk_0813608C:: @ 0813608C + .incbin "baserom.gba", 0x13608C, 0x0000014 + +gUnk_081360A0:: @ 081360A0 + .incbin "baserom.gba", 0x1360A0, 0x0000028 + +gUnk_081360C8:: @ 081360C8 + .incbin "baserom.gba", 0x1360C8, 0x0000004 + +gUnk_081360CC:: @ 081360CC + .incbin "baserom.gba", 0x1360CC, 0x0000028 + +gUnk_081360F4:: @ 081360F4 + .incbin "baserom.gba", 0x1360F4, 0x0000028 + +gUnk_0813611C:: @ 0813611C + .incbin "baserom.gba", 0x13611C, 0x0000028 + +gUnk_08136144:: @ 08136144 + .incbin "baserom.gba", 0x136144, 0x0000028 + +gUnk_0813616C:: @ 0813616C + .incbin "baserom.gba", 0x13616C, 0x0000028 + +gUnk_08136194:: @ 08136194 + .incbin "baserom.gba", 0x136194, 0x0000028 + +gUnk_081361BC:: @ 081361BC + .incbin "baserom.gba", 0x1361BC, 0x0000028 + +gUnk_081361E4:: @ 081361E4 + .incbin "baserom.gba", 0x1361E4, 0x0000028 + +gUnk_0813620C:: @ 0813620C + .incbin "baserom.gba", 0x13620C, 0x0000028 + +gUnk_08136234:: @ 08136234 + .incbin "baserom.gba", 0x136234, 0x0000028 + +gUnk_0813625C:: @ 0813625C + .incbin "baserom.gba", 0x13625C, 0x0000028 + +gUnk_08136284:: @ 08136284 + .incbin "baserom.gba", 0x136284, 0x0000028 + +gUnk_081362AC:: @ 081362AC + .incbin "baserom.gba", 0x1362AC, 0x0000028 + +gUnk_081362D4:: @ 081362D4 + .incbin "baserom.gba", 0x1362D4, 0x000003C + +gUnk_08136310:: @ 08136310 + .incbin "baserom.gba", 0x136310, 0x0000028 + +gUnk_08136338:: @ 08136338 + .incbin "baserom.gba", 0x136338, 0x0000014 + +gUnk_0813634C:: @ 0813634C + .incbin "baserom.gba", 0x13634C, 0x0000028 + +gUnk_08136374:: @ 08136374 + .incbin "baserom.gba", 0x136374, 0x0000028 + +gUnk_0813639C:: @ 0813639C + .incbin "baserom.gba", 0x13639C, 0x00000C0 + +gUnk_0813645C:: @ 0813645C + .incbin "baserom.gba", 0x13645C, 0x0000028 + +gUnk_08136484:: @ 08136484 + .incbin "baserom.gba", 0x136484, 0x0000028 + +gUnk_081364AC:: @ 081364AC + .incbin "baserom.gba", 0x1364AC, 0x0000028 + +gUnk_081364D4:: @ 081364D4 + .incbin "baserom.gba", 0x1364D4, 0x0000028 + +gUnk_081364FC:: @ 081364FC + .incbin "baserom.gba", 0x1364FC, 0x0000028 + +gUnk_08136524:: @ 08136524 + .incbin "baserom.gba", 0x136524, 0x0000028 + +gUnk_0813654C:: @ 0813654C + .incbin "baserom.gba", 0x13654C, 0x0000040 + +gUnk_0813658C:: @ 0813658C + .incbin "baserom.gba", 0x13658C, 0x0000028 + +gUnk_081365B4:: @ 081365B4 + .incbin "baserom.gba", 0x1365B4, 0x0000028 + +gUnk_081365DC:: @ 081365DC + .incbin "baserom.gba", 0x1365DC, 0x0000028 + +gUnk_08136604:: @ 08136604 + .incbin "baserom.gba", 0x136604, 0x0000010 + +gUnk_08136614:: @ 08136614 + .incbin "baserom.gba", 0x136614, 0x0000028 + +gUnk_0813663C:: @ 0813663C + .incbin "baserom.gba", 0x13663C, 0x0000028 + +gUnk_08136664:: @ 08136664 + .incbin "baserom.gba", 0x136664, 0x0000028 + +gUnk_0813668C:: @ 0813668C + .incbin "baserom.gba", 0x13668C, 0x0000028 + +gUnk_081366B4:: @ 081366B4 + .incbin "baserom.gba", 0x1366B4, 0x0000028 + +gUnk_081366DC:: @ 081366DC + .incbin "baserom.gba", 0x1366DC, 0x000003C + +gUnk_08136718:: @ 08136718 + .incbin "baserom.gba", 0x136718, 0x000003C + +gUnk_08136754:: @ 08136754 + .incbin "baserom.gba", 0x136754, 0x0000028 + +gUnk_0813677C:: @ 0813677C + .incbin "baserom.gba", 0x13677C, 0x0000028 + +gUnk_081367A4:: @ 081367A4 + .incbin "baserom.gba", 0x1367A4, 0x0000040 + +gUnk_081367E4:: @ 081367E4 + .incbin "baserom.gba", 0x1367E4, 0x000003C + +gUnk_08136820:: @ 08136820 + .incbin "baserom.gba", 0x136820, 0x0000028 + +gUnk_08136848:: @ 08136848 + .incbin "baserom.gba", 0x136848, 0x000003C + +gUnk_08136884:: @ 08136884 + .incbin "baserom.gba", 0x136884, 0x000003C + +gUnk_081368C0:: @ 081368C0 + .incbin "baserom.gba", 0x1368C0, 0x0000078 + +gUnk_08136938:: @ 08136938 + .incbin "baserom.gba", 0x136938, 0x0000028 + +gUnk_08136960:: @ 08136960 + .incbin "baserom.gba", 0x136960, 0x0000028 + +gUnk_08136988:: @ 08136988 + .incbin "baserom.gba", 0x136988, 0x0000028 + +gUnk_081369B0:: @ 081369B0 + .incbin "baserom.gba", 0x1369B0, 0x0000028 + +gUnk_081369D8:: @ 081369D8 + .incbin "baserom.gba", 0x1369D8, 0x000003C + +gUnk_08136A14:: @ 08136A14 + .incbin "baserom.gba", 0x136A14, 0x000003C + +gUnk_08136A50:: @ 08136A50 + .incbin "baserom.gba", 0x136A50, 0x0000028 + +gUnk_08136A78:: @ 08136A78 + .incbin "baserom.gba", 0x136A78, 0x0000080 + +gUnk_08136AF8:: @ 08136AF8 + .incbin "baserom.gba", 0x136AF8, 0x0000028 + +gUnk_08136B20:: @ 08136B20 + .incbin "baserom.gba", 0x136B20, 0x000003C + +gUnk_08136B5C:: @ 08136B5C + .incbin "baserom.gba", 0x136B5C, 0x0000028 + +gUnk_08136B84:: @ 08136B84 + .incbin "baserom.gba", 0x136B84, 0x0000028 + +gUnk_08136BAC:: @ 08136BAC + .incbin "baserom.gba", 0x136BAC, 0x000003C + +gUnk_08136BE8:: @ 08136BE8 + .incbin "baserom.gba", 0x136BE8, 0x0000028 + +gUnk_08136C10:: @ 08136C10 + .incbin "baserom.gba", 0x136C10, 0x000003C + +gUnk_08136C4C:: @ 08136C4C + .incbin "baserom.gba", 0x136C4C, 0x000003C + +gUnk_08136C88:: @ 08136C88 + .incbin "baserom.gba", 0x136C88, 0x000003C + +gUnk_08136CC4:: @ 08136CC4 + .incbin "baserom.gba", 0x136CC4, 0x000003C + +gUnk_08136D00:: @ 08136D00 + .incbin "baserom.gba", 0x136D00, 0x0000028 + +gUnk_08136D28:: @ 08136D28 + .incbin "baserom.gba", 0x136D28, 0x000003C + +gUnk_08136D64:: @ 08136D64 + .incbin "baserom.gba", 0x136D64, 0x000003C + +gUnk_08136DA0:: @ 08136DA0 + .incbin "baserom.gba", 0x136DA0, 0x0000028 + +gUnk_08136DC8:: @ 08136DC8 + .incbin "baserom.gba", 0x136DC8, 0x000003C + +gUnk_08136E04:: @ 08136E04 + .incbin "baserom.gba", 0x136E04, 0x0000014 + +gUnk_08136E18:: @ 08136E18 + .incbin "baserom.gba", 0x136E18, 0x0000028 + +gUnk_08136E40:: @ 08136E40 + .incbin "baserom.gba", 0x136E40, 0x0000080 + +gUnk_08136EC0:: @ 08136EC0 + .incbin "baserom.gba", 0x136EC0, 0x0000028 + +gUnk_08136EE8:: @ 08136EE8 + .incbin "baserom.gba", 0x136EE8, 0x0000028 + +gUnk_08136F10:: @ 08136F10 + .incbin "baserom.gba", 0x136F10, 0x0000028 + +gUnk_08136F38:: @ 08136F38 + .incbin "baserom.gba", 0x136F38, 0x0000028 + +gUnk_08136F60:: @ 08136F60 + .incbin "baserom.gba", 0x136F60, 0x0000028 + +gUnk_08136F88:: @ 08136F88 + .incbin "baserom.gba", 0x136F88, 0x0000028 + +gUnk_08136FB0:: @ 08136FB0 + .incbin "baserom.gba", 0x136FB0, 0x0000028 + +gUnk_08136FD8:: @ 08136FD8 + .incbin "baserom.gba", 0x136FD8, 0x000002D + +gUnk_08137005:: @ 08137005 + .incbin "baserom.gba", 0x137005, 0x0000013 + +gUnk_08137018:: @ 08137018 + .incbin "baserom.gba", 0x137018, 0x0000028 + +gUnk_08137040:: @ 08137040 + .incbin "baserom.gba", 0x137040, 0x0000028 + +gUnk_08137068:: @ 08137068 + .incbin "baserom.gba", 0x137068, 0x0000028 + +gUnk_08137090:: @ 08137090 + .incbin "baserom.gba", 0x137090, 0x0000028 + +gUnk_081370B8:: @ 081370B8 + .incbin "baserom.gba", 0x1370B8, 0x0000028 + +gUnk_081370E0:: @ 081370E0 + .incbin "baserom.gba", 0x1370E0, 0x0000014 + +gUnk_081370F4:: @ 081370F4 + .incbin "baserom.gba", 0x1370F4, 0x0000028 + +gUnk_0813711C:: @ 0813711C + .incbin "baserom.gba", 0x13711C, 0x0000028 + +gUnk_08137144:: @ 08137144 + .incbin "baserom.gba", 0x137144, 0x0000028 + +gUnk_0813716C:: @ 0813716C + .incbin "baserom.gba", 0x13716C, 0x0000028 + +gUnk_08137194:: @ 08137194 + .incbin "baserom.gba", 0x137194, 0x0000028 + +gUnk_081371BC:: @ 081371BC + .incbin "baserom.gba", 0x1371BC, 0x0000028 + +gUnk_081371E4:: @ 081371E4 + .incbin "baserom.gba", 0x1371E4, 0x0000028 + +gUnk_0813720C:: @ 0813720C + .incbin "baserom.gba", 0x13720C, 0x0000028 + +gUnk_08137234:: @ 08137234 + .incbin "baserom.gba", 0x137234, 0x0000014 + +gUnk_08137248:: @ 08137248 + .incbin "baserom.gba", 0x137248, 0x0000060 + +gUnk_081372A8:: @ 081372A8 + .incbin "baserom.gba", 0x1372A8, 0x0000064 + +gUnk_0813730C:: @ 0813730C + .incbin "baserom.gba", 0x13730C, 0x000003C + +gUnk_08137348:: @ 08137348 + .incbin "baserom.gba", 0x137348, 0x000003C + +gUnk_08137384:: @ 08137384 + .incbin "baserom.gba", 0x137384, 0x000003C + +gUnk_081373C0:: @ 081373C0 + .incbin "baserom.gba", 0x1373C0, 0x0000028 + +gUnk_081373E8:: @ 081373E8 + .incbin "baserom.gba", 0x1373E8, 0x0000028 + +gUnk_08137410:: @ 08137410 + .incbin "baserom.gba", 0x137410, 0x000003C + +gUnk_0813744C:: @ 0813744C + .incbin "baserom.gba", 0x13744C, 0x000003C + +gUnk_08137488:: @ 08137488 + .incbin "baserom.gba", 0x137488, 0x0000028 + +gUnk_081374B0:: @ 081374B0 + .incbin "baserom.gba", 0x1374B0, 0x0000028 + +gUnk_081374D8:: @ 081374D8 + .incbin "baserom.gba", 0x1374D8, 0x000003C + +gUnk_08137514:: @ 08137514 + .incbin "baserom.gba", 0x137514, 0x000003C + +gUnk_08137550:: @ 08137550 + .incbin "baserom.gba", 0x137550, 0x000003C + +gUnk_0813758C:: @ 0813758C + .incbin "baserom.gba", 0x13758C, 0x0000028 + +gUnk_081375B4:: @ 081375B4 + .incbin "baserom.gba", 0x1375B4, 0x0000028 + +gUnk_081375DC:: @ 081375DC + .incbin "baserom.gba", 0x1375DC, 0x0000028 + +gUnk_08137604:: @ 08137604 + .incbin "baserom.gba", 0x137604, 0x000003C + +gUnk_08137640:: @ 08137640 + .incbin "baserom.gba", 0x137640, 0x0000044 + +gUnk_08137684:: @ 08137684 + .incbin "baserom.gba", 0x137684, 0x0000028 + +gUnk_081376AC:: @ 081376AC + .incbin "baserom.gba", 0x1376AC, 0x000003C + +gUnk_081376E8:: @ 081376E8 + .incbin "baserom.gba", 0x1376E8, 0x0000028 + +gUnk_08137710:: @ 08137710 + .incbin "baserom.gba", 0x137710, 0x000003C + +gUnk_0813774C:: @ 0813774C + .incbin "baserom.gba", 0x13774C, 0x0000028 + +gUnk_08137774:: @ 08137774 + .incbin "baserom.gba", 0x137774, 0x0000002 + +gUnk_08137776:: @ 08137776 + .incbin "baserom.gba", 0x137776, 0x0000001 + +gUnk_08137777:: @ 08137777 + .incbin "baserom.gba", 0x137777, 0x000001D + +gUnk_08137794:: @ 08137794 + .incbin "baserom.gba", 0x137794, 0x0000014 + +gUnk_081377A8:: @ 081377A8 + .incbin "baserom.gba", 0x1377A8, 0x0000028 + +gUnk_081377D0:: @ 081377D0 + .incbin "baserom.gba", 0x1377D0, 0x0000010 + +gUnk_081377E0:: @ 081377E0 + .incbin "baserom.gba", 0x1377E0, 0x0000028 + +gUnk_08137808:: @ 08137808 + .incbin "baserom.gba", 0x137808, 0x0000028 + +gUnk_08137830:: @ 08137830 + .incbin "baserom.gba", 0x137830, 0x0000028 + +gUnk_08137858:: @ 08137858 + .incbin "baserom.gba", 0x137858, 0x0000028 + +gUnk_08137880:: @ 08137880 + .incbin "baserom.gba", 0x137880, 0x0000028 + +gUnk_081378A8:: @ 081378A8 + .incbin "baserom.gba", 0x1378A8, 0x0000028 + +gUnk_081378D0:: @ 081378D0 + .incbin "baserom.gba", 0x1378D0, 0x0000028 + +gUnk_081378F8:: @ 081378F8 + .incbin "baserom.gba", 0x1378F8, 0x0000028 + +gUnk_08137920:: @ 08137920 + .incbin "baserom.gba", 0x137920, 0x0000028 + +gUnk_08137948:: @ 08137948 + .incbin "baserom.gba", 0x137948, 0x0000028 + +gUnk_08137970:: @ 08137970 + .incbin "baserom.gba", 0x137970, 0x0000028 + +gUnk_08137998:: @ 08137998 + .incbin "baserom.gba", 0x137998, 0x000002C + +gUnk_081379C4:: @ 081379C4 + .incbin "baserom.gba", 0x1379C4, 0x0000028 + +gUnk_081379EC:: @ 081379EC + .incbin "baserom.gba", 0x1379EC, 0x0000028 + +gUnk_08137A14:: @ 08137A14 + .incbin "baserom.gba", 0x137A14, 0x0000028 + +gUnk_08137A3C:: @ 08137A3C + .incbin "baserom.gba", 0x137A3C, 0x0000028 + +gUnk_08137A64:: @ 08137A64 + .incbin "baserom.gba", 0x137A64, 0x0000028 + +gUnk_08137A8C:: @ 08137A8C + .incbin "baserom.gba", 0x137A8C, 0x0000050 + +gUnk_08137ADC:: @ 08137ADC + .incbin "baserom.gba", 0x137ADC, 0x0000028 + +gUnk_08137B04:: @ 08137B04 + .incbin "baserom.gba", 0x137B04, 0x0000028 + +gUnk_08137B2C:: @ 08137B2C + .incbin "baserom.gba", 0x137B2C, 0x0000050 + +gUnk_08137B7C:: @ 08137B7C + .incbin "baserom.gba", 0x137B7C, 0x000003C + +gUnk_08137BB8:: @ 08137BB8 + .incbin "baserom.gba", 0x137BB8, 0x000003C + +gUnk_08137BF4:: @ 08137BF4 + .incbin "baserom.gba", 0x137BF4, 0x0000028 + +gUnk_08137C1C:: @ 08137C1C + .incbin "baserom.gba", 0x137C1C, 0x000003C + +gUnk_08137C58:: @ 08137C58 + .incbin "baserom.gba", 0x137C58, 0x0000010 + +gUnk_08137C68:: @ 08137C68 + .incbin "baserom.gba", 0x137C68, 0x000003C + +gUnk_08137CA4:: @ 08137CA4 + .incbin "baserom.gba", 0x137CA4, 0x0000028 + +gUnk_08137CCC:: @ 08137CCC + .incbin "baserom.gba", 0x137CCC, 0x0000008 + +gUnk_08137CD4:: @ 08137CD4 + .incbin "baserom.gba", 0x137CD4, 0x000003C + +gUnk_08137D10:: @ 08137D10 + .incbin "baserom.gba", 0x137D10, 0x000003C + +gUnk_08137D4C:: @ 08137D4C + .incbin "baserom.gba", 0x137D4C, 0x000003C + +gUnk_08137D88:: @ 08137D88 + .incbin "baserom.gba", 0x137D88, 0x000003C + +gUnk_08137DC4:: @ 08137DC4 + .incbin "baserom.gba", 0x137DC4, 0x0000010 + +gUnk_08137DD4:: @ 08137DD4 + .incbin "baserom.gba", 0x137DD4, 0x0000028 + +gUnk_08137DFC:: @ 08137DFC + .incbin "baserom.gba", 0x137DFC, 0x0000004 + +gUnk_08137E00:: @ 08137E00 + .incbin "baserom.gba", 0x137E00, 0x0000078 + +gUnk_08137E78:: @ 08137E78 + .incbin "baserom.gba", 0x137E78, 0x0000064 + +gUnk_08137EDC:: @ 08137EDC + .incbin "baserom.gba", 0x137EDC, 0x0000028 + +gUnk_08137F04:: @ 08137F04 + .incbin "baserom.gba", 0x137F04, 0x0000014 + +gUnk_08137F18:: @ 08137F18 + .incbin "baserom.gba", 0x137F18, 0x0000014 + +gUnk_08137F2C:: @ 08137F2C + .incbin "baserom.gba", 0x137F2C, 0x0000014 + +gUnk_08137F40:: @ 08137F40 + .incbin "baserom.gba", 0x137F40, 0x0000028 + +gUnk_08137F68:: @ 08137F68 + .incbin "baserom.gba", 0x137F68, 0x0000028 + +gUnk_08137F90:: @ 08137F90 + .incbin "baserom.gba", 0x137F90, 0x0000028 + +gUnk_08137FB8:: @ 08137FB8 + .incbin "baserom.gba", 0x137FB8, 0x0000014 + +gUnk_08137FCC:: @ 08137FCC + .incbin "baserom.gba", 0x137FCC, 0x0000028 + +gUnk_08137FF4:: @ 08137FF4 + .incbin "baserom.gba", 0x137FF4, 0x000003C + +gUnk_08138030:: @ 08138030 + .incbin "baserom.gba", 0x138030, 0x000003C + +gUnk_0813806C:: @ 0813806C + .incbin "baserom.gba", 0x13806C, 0x0000028 + +gUnk_08138094:: @ 08138094 + .incbin "baserom.gba", 0x138094, 0x0000028 + +gUnk_081380BC:: @ 081380BC + .incbin "baserom.gba", 0x1380BC, 0x0000028 + +gUnk_081380E4:: @ 081380E4 + .incbin "baserom.gba", 0x1380E4, 0x0000028 + +gUnk_0813810C:: @ 0813810C + .incbin "baserom.gba", 0x13810C, 0x0000028 + +gUnk_08138134:: @ 08138134 + .incbin "baserom.gba", 0x138134, 0x0000014 + +gUnk_08138148:: @ 08138148 + .incbin "baserom.gba", 0x138148, 0x000003C + +gUnk_08138184:: @ 08138184 + .incbin "baserom.gba", 0x138184, 0x0000028 + +gUnk_081381AC:: @ 081381AC + .incbin "baserom.gba", 0x1381AC, 0x0000028 + +gUnk_081381D4:: @ 081381D4 + .incbin "baserom.gba", 0x1381D4, 0x0000060 + +gUnk_08138234:: @ 08138234 + .incbin "baserom.gba", 0x138234, 0x0000050 + +gUnk_08138284:: @ 08138284 + .incbin "baserom.gba", 0x138284, 0x0000064 + +gUnk_081382E8:: @ 081382E8 + .incbin "baserom.gba", 0x1382E8, 0x000003C + +gUnk_08138324:: @ 08138324 + .incbin "baserom.gba", 0x138324, 0x000003C + +gUnk_08138360:: @ 08138360 + .incbin "baserom.gba", 0x138360, 0x0000028 + +gUnk_08138388:: @ 08138388 + .incbin "baserom.gba", 0x138388, 0x000003C + +gUnk_081383C4:: @ 081383C4 + .incbin "baserom.gba", 0x1383C4, 0x000003C + +gUnk_08138400:: @ 08138400 + .incbin "baserom.gba", 0x138400, 0x000003C + +gUnk_0813843C:: @ 0813843C + .incbin "baserom.gba", 0x13843C, 0x0000028 + +gUnk_08138464:: @ 08138464 + .incbin "baserom.gba", 0x138464, 0x0000040 + +gUnk_081384A4:: @ 081384A4 + .incbin "baserom.gba", 0x1384A4, 0x0000028 + +gUnk_081384CC:: @ 081384CC + .incbin "baserom.gba", 0x1384CC, 0x0000028 + +gUnk_081384F4:: @ 081384F4 + .incbin "baserom.gba", 0x1384F4, 0x0000008 + +gUnk_081384FC:: @ 081384FC + .incbin "baserom.gba", 0x1384FC, 0x0000028 + +gUnk_08138524:: @ 08138524 + .incbin "baserom.gba", 0x138524, 0x0000028 + +gUnk_0813854C:: @ 0813854C + .incbin "baserom.gba", 0x13854C, 0x0000028 + +gUnk_08138574:: @ 08138574 + .incbin "baserom.gba", 0x138574, 0x0000028 + +gUnk_0813859C:: @ 0813859C + .incbin "baserom.gba", 0x13859C, 0x0000028 + +gUnk_081385C4:: @ 081385C4 + .incbin "baserom.gba", 0x1385C4, 0x0000028 + +gUnk_081385EC:: @ 081385EC + .incbin "baserom.gba", 0x1385EC, 0x000003C + +gUnk_08138628:: @ 08138628 + .incbin "baserom.gba", 0x138628, 0x0000050 + +gUnk_08138678:: @ 08138678 + .incbin "baserom.gba", 0x138678, 0x0000028 + +gUnk_081386A0:: @ 081386A0 + .incbin "baserom.gba", 0x1386A0, 0x0000028 + +gUnk_081386C8:: @ 081386C8 + .incbin "baserom.gba", 0x1386C8, 0x0000028 + +gUnk_081386F0:: @ 081386F0 + .incbin "baserom.gba", 0x1386F0, 0x0000008 + +gUnk_081386F8:: @ 081386F8 + .incbin "baserom.gba", 0x1386F8, 0x0000028 + +gUnk_08138720:: @ 08138720 + .incbin "baserom.gba", 0x138720, 0x0000028 + +gUnk_08138748:: @ 08138748 + .incbin "baserom.gba", 0x138748, 0x0000008 + +gUnk_08138750:: @ 08138750 + .incbin "baserom.gba", 0x138750, 0x0000064 + +gUnk_081387B4:: @ 081387B4 + .incbin "baserom.gba", 0x1387B4, 0x000003C + +gUnk_081387F0:: @ 081387F0 + .incbin "baserom.gba", 0x1387F0, 0x0000008 + +gUnk_081387F8:: @ 081387F8 + .incbin "baserom.gba", 0x1387F8, 0x0000028 + +gUnk_08138820:: @ 08138820 + .incbin "baserom.gba", 0x138820, 0x0000028 + +gUnk_08138848:: @ 08138848 + .incbin "baserom.gba", 0x138848, 0x0000060 + +gUnk_081388A8:: @ 081388A8 + .incbin "baserom.gba", 0x1388A8, 0x0000028 + +gUnk_081388D0:: @ 081388D0 + .incbin "baserom.gba", 0x1388D0, 0x0000028 + +gUnk_081388F8:: @ 081388F8 + .incbin "baserom.gba", 0x1388F8, 0x0000008 + +gUnk_08138900:: @ 08138900 + .incbin "baserom.gba", 0x138900, 0x0000028 + +gUnk_08138928:: @ 08138928 + .incbin "baserom.gba", 0x138928, 0x0000028 + +gUnk_08138950:: @ 08138950 + .incbin "baserom.gba", 0x138950, 0x0000008 + +gUnk_08138958:: @ 08138958 + .incbin "baserom.gba", 0x138958, 0x0000024 + +gUnk_0813897C:: @ 0813897C + .incbin "baserom.gba", 0x13897C, 0x0000028 + +gUnk_081389A4:: @ 081389A4 + .incbin "baserom.gba", 0x1389A4, 0x0000014 + +gUnk_081389B8:: @ 081389B8 + .incbin "baserom.gba", 0x1389B8, 0x0000014 + +gUnk_081389CC:: @ 081389CC + .incbin "baserom.gba", 0x1389CC, 0x0000014 + +gUnk_081389E0:: @ 081389E0 + .incbin "baserom.gba", 0x1389E0, 0x0000014 + +gUnk_081389F4:: @ 081389F4 + .incbin "baserom.gba", 0x1389F4, 0x0000064 + +gUnk_08138A58:: @ 08138A58 + .incbin "baserom.gba", 0x138A58, 0x0000050 + +gUnk_08138AA8:: @ 08138AA8 + .incbin "baserom.gba", 0x138AA8, 0x0000028 + +gUnk_08138AD0:: @ 08138AD0 + .incbin "baserom.gba", 0x138AD0, 0x0000028 + +gUnk_08138AF8:: @ 08138AF8 + .incbin "baserom.gba", 0x138AF8, 0x0000050 + +gUnk_08138B48:: @ 08138B48 + .incbin "baserom.gba", 0x138B48, 0x0000084 + +gUnk_08138BCC:: @ 08138BCC + .incbin "baserom.gba", 0x138BCC, 0x0000004 + +gUnk_08138BD0:: @ 08138BD0 + .incbin "baserom.gba", 0x138BD0, 0x0000064 + +gUnk_08138C34:: @ 08138C34 + .incbin "baserom.gba", 0x138C34, 0x0000004 + +gUnk_08138C38:: @ 08138C38 + .incbin "baserom.gba", 0x138C38, 0x0000028 + +gUnk_08138C60:: @ 08138C60 + .incbin "baserom.gba", 0x138C60, 0x0000028 + +gUnk_08138C88:: @ 08138C88 + .incbin "baserom.gba", 0x138C88, 0x0000028 + +gUnk_08138CB0:: @ 08138CB0 + .incbin "baserom.gba", 0x138CB0, 0x0000028 + +gUnk_08138CD8:: @ 08138CD8 + .incbin "baserom.gba", 0x138CD8, 0x0000028 + +gUnk_08138D00:: @ 08138D00 + .incbin "baserom.gba", 0x138D00, 0x0000028 + +gUnk_08138D28:: @ 08138D28 + .incbin "baserom.gba", 0x138D28, 0x0000028 + +gUnk_08138D50:: @ 08138D50 + .incbin "baserom.gba", 0x138D50, 0x0000084 + +gUnk_08138DD4:: @ 08138DD4 + .incbin "baserom.gba", 0x138DD4, 0x0000028 + +gUnk_08138DFC:: @ 08138DFC + .incbin "baserom.gba", 0x138DFC, 0x000003C + +gUnk_08138E38:: @ 08138E38 + .incbin "baserom.gba", 0x138E38, 0x0000028 + +gUnk_08138E60:: @ 08138E60 + .incbin "baserom.gba", 0x138E60, 0x000003C + +gUnk_08138E9C:: @ 08138E9C + .incbin "baserom.gba", 0x138E9C, 0x0000028 + +gUnk_08138EC4:: @ 08138EC4 + .incbin "baserom.gba", 0x138EC4, 0x0000028 + +gUnk_08138EEC:: @ 08138EEC + .incbin "baserom.gba", 0x138EEC, 0x0000028 + +gUnk_08138F14:: @ 08138F14 + .incbin "baserom.gba", 0x138F14, 0x000003C + +gUnk_08138F50:: @ 08138F50 + .incbin "baserom.gba", 0x138F50, 0x0000028 + +gUnk_08138F78:: @ 08138F78 + .incbin "baserom.gba", 0x138F78, 0x0000028 + +gUnk_08138FA0:: @ 08138FA0 + .incbin "baserom.gba", 0x138FA0, 0x0000028 + +gUnk_08138FC8:: @ 08138FC8 + .incbin "baserom.gba", 0x138FC8, 0x000003C + +gUnk_08139004:: @ 08139004 + .incbin "baserom.gba", 0x139004, 0x000003C + +gUnk_08139040:: @ 08139040 + .incbin "baserom.gba", 0x139040, 0x000003C + +gUnk_0813907C:: @ 0813907C + .incbin "baserom.gba", 0x13907C, 0x000003C + +gUnk_081390B8:: @ 081390B8 + .incbin "baserom.gba", 0x1390B8, 0x0000028 + +gUnk_081390E0:: @ 081390E0 + .incbin "baserom.gba", 0x1390E0, 0x0000028 + +gUnk_08139108:: @ 08139108 + .incbin "baserom.gba", 0x139108, 0x00000A0 + +gUnk_081391A8:: @ 081391A8 + .incbin "baserom.gba", 0x1391A8, 0x0000028 + +gUnk_081391D0:: @ 081391D0 + .incbin "baserom.gba", 0x1391D0, 0x0000004 + +gUnk_081391D4:: @ 081391D4 + .incbin "baserom.gba", 0x1391D4, 0x0000028 + +gUnk_081391FC:: @ 081391FC + .incbin "baserom.gba", 0x1391FC, 0x0000008 + +gUnk_08139204:: @ 08139204 + .incbin "baserom.gba", 0x139204, 0x0000028 + +gUnk_0813922C:: @ 0813922C + .incbin "baserom.gba", 0x13922C, 0x0000028 + +gUnk_08139254:: @ 08139254 + .incbin "baserom.gba", 0x139254, 0x000003C + +gUnk_08139290:: @ 08139290 + .incbin "baserom.gba", 0x139290, 0x0000028 + +gUnk_081392B8:: @ 081392B8 + .incbin "baserom.gba", 0x1392B8, 0x0000028 + +gUnk_081392E0:: @ 081392E0 + .incbin "baserom.gba", 0x1392E0, 0x0000028 + +gUnk_08139308:: @ 08139308 + .incbin "baserom.gba", 0x139308, 0x0000028 + +gUnk_08139330:: @ 08139330 + .incbin "baserom.gba", 0x139330, 0x000003C + +gUnk_0813936C:: @ 0813936C + .incbin "baserom.gba", 0x13936C, 0x0000028 + +gUnk_08139394:: @ 08139394 + .incbin "baserom.gba", 0x139394, 0x0000028 + +gUnk_081393BC:: @ 081393BC + .incbin "baserom.gba", 0x1393BC, 0x0000078 + +gUnk_08139434:: @ 08139434 + .incbin "baserom.gba", 0x139434, 0x0000028 + +gUnk_0813945C:: @ 0813945C + .incbin "baserom.gba", 0x13945C, 0x0000028 + +gUnk_08139484:: @ 08139484 + .incbin "baserom.gba", 0x139484, 0x0000028 + +gUnk_081394AC:: @ 081394AC + .incbin "baserom.gba", 0x1394AC, 0x0000028 + +gUnk_081394D4:: @ 081394D4 + .incbin "baserom.gba", 0x1394D4, 0x0000028 + +gUnk_081394FC:: @ 081394FC + .incbin "baserom.gba", 0x1394FC, 0x000003C + +gUnk_08139538:: @ 08139538 + .incbin "baserom.gba", 0x139538, 0x0000028 + +gUnk_08139560:: @ 08139560 + .incbin "baserom.gba", 0x139560, 0x0000028 + +gUnk_08139588:: @ 08139588 + .incbin "baserom.gba", 0x139588, 0x0000028 + +gUnk_081395B0:: @ 081395B0 + .incbin "baserom.gba", 0x1395B0, 0x0000028 + +gUnk_081395D8:: @ 081395D8 + .incbin "baserom.gba", 0x1395D8, 0x0000100 + +gUnk_081396D8:: @ 081396D8 + .incbin "baserom.gba", 0x1396D8, 0x000003C + +gUnk_08139714:: @ 08139714 + .incbin "baserom.gba", 0x139714, 0x0000004 + +gUnk_08139718:: @ 08139718 + .incbin "baserom.gba", 0x139718, 0x0000014 + +gUnk_0813972C:: @ 0813972C + .incbin "baserom.gba", 0x13972C, 0x0000028 + +gUnk_08139754:: @ 08139754 + .incbin "baserom.gba", 0x139754, 0x000003C + +gUnk_08139790:: @ 08139790 + .incbin "baserom.gba", 0x139790, 0x0000028 + +gUnk_081397B8:: @ 081397B8 + .incbin "baserom.gba", 0x1397B8, 0x0000028 + +gUnk_081397E0:: @ 081397E0 + .incbin "baserom.gba", 0x1397E0, 0x0000024 + +gUnk_08139804:: @ 08139804 + .incbin "baserom.gba", 0x139804, 0x0000028 + +gUnk_0813982C:: @ 0813982C + .incbin "baserom.gba", 0x13982C, 0x0000028 + +gUnk_08139854:: @ 08139854 + .incbin "baserom.gba", 0x139854, 0x0000028 + +gUnk_0813987C:: @ 0813987C + .incbin "baserom.gba", 0x13987C, 0x0000028 + +gUnk_081398A4:: @ 081398A4 + .incbin "baserom.gba", 0x1398A4, 0x0000028 + +gUnk_081398CC:: @ 081398CC + .incbin "baserom.gba", 0x1398CC, 0x000003C + +gUnk_08139908:: @ 08139908 + .incbin "baserom.gba", 0x139908, 0x000003C + +gUnk_08139944:: @ 08139944 + .incbin "baserom.gba", 0x139944, 0x000003C + +gUnk_08139980:: @ 08139980 + .incbin "baserom.gba", 0x139980, 0x0000028 + +gUnk_081399A8:: @ 081399A8 + .incbin "baserom.gba", 0x1399A8, 0x0000028 + +gUnk_081399D0:: @ 081399D0 + .incbin "baserom.gba", 0x1399D0, 0x0000064 + +gUnk_08139A34:: @ 08139A34 + .incbin "baserom.gba", 0x139A34, 0x0000028 + +gUnk_08139A5C:: @ 08139A5C + .incbin "baserom.gba", 0x139A5C, 0x0000028 + +gUnk_08139A84:: @ 08139A84 + .incbin "baserom.gba", 0x139A84, 0x0000028 + +gUnk_08139AAC:: @ 08139AAC + .incbin "baserom.gba", 0x139AAC, 0x0000050 + +gUnk_08139AFC:: @ 08139AFC + .incbin "baserom.gba", 0x139AFC, 0x0000028 + +gUnk_08139B24:: @ 08139B24 + .incbin "baserom.gba", 0x139B24, 0x0000028 + +gUnk_08139B4C:: @ 08139B4C + .incbin "baserom.gba", 0x139B4C, 0x000003C + +gUnk_08139B88:: @ 08139B88 + .incbin "baserom.gba", 0x139B88, 0x000003C + +gUnk_08139BC4:: @ 08139BC4 + .incbin "baserom.gba", 0x139BC4, 0x0000028 + +gUnk_08139BEC:: @ 08139BEC + .incbin "baserom.gba", 0x139BEC, 0x000003C + +gUnk_08139C28:: @ 08139C28 + .incbin "baserom.gba", 0x139C28, 0x00000E4 + +gUnk_08139D0C:: @ 08139D0C + .incbin "baserom.gba", 0x139D0C, 0x0000050 + +gUnk_08139D5C:: @ 08139D5C + .incbin "baserom.gba", 0x139D5C, 0x0000028 + +gUnk_08139D84:: @ 08139D84 + .incbin "baserom.gba", 0x139D84, 0x0000028 + +gUnk_08139DAC:: @ 08139DAC + .incbin "baserom.gba", 0x139DAC, 0x0000028 + +gUnk_08139DD4:: @ 08139DD4 + .incbin "baserom.gba", 0x139DD4, 0x0000028 + +gUnk_08139DFC:: @ 08139DFC + .incbin "baserom.gba", 0x139DFC, 0x000003C + +gUnk_08139E38:: @ 08139E38 + .incbin "baserom.gba", 0x139E38, 0x000003C + +gUnk_08139E74:: @ 08139E74 + .incbin "baserom.gba", 0x139E74, 0x0000050 + +gUnk_08139EC4:: @ 08139EC4 + .incbin "baserom.gba", 0x139EC4, 0x0000050 + +gUnk_08139F14:: @ 08139F14 + .incbin "baserom.gba", 0x139F14, 0x000003C + +gUnk_08139F50:: @ 08139F50 + .incbin "baserom.gba", 0x139F50, 0x0000028 + +gUnk_08139F78:: @ 08139F78 + .incbin "baserom.gba", 0x139F78, 0x0000028 + +gUnk_08139FA0:: @ 08139FA0 + .incbin "baserom.gba", 0x139FA0, 0x0000050 + +gUnk_08139FF0:: @ 08139FF0 + .incbin "baserom.gba", 0x139FF0, 0x0000028 + +gUnk_0813A018:: @ 0813A018 + .incbin "baserom.gba", 0x13A018, 0x0000028 + +gUnk_0813A040:: @ 0813A040 + .incbin "baserom.gba", 0x13A040, 0x0000050 + +gUnk_0813A090:: @ 0813A090 + .incbin "baserom.gba", 0x13A090, 0x0000028 + +gUnk_0813A0B8:: @ 0813A0B8 + .incbin "baserom.gba", 0x13A0B8, 0x0000028 + +gUnk_0813A0E0:: @ 0813A0E0 + .incbin "baserom.gba", 0x13A0E0, 0x0000028 + +gUnk_0813A108:: @ 0813A108 + .incbin "baserom.gba", 0x13A108, 0x0000028 + +gUnk_0813A130:: @ 0813A130 + .incbin "baserom.gba", 0x13A130, 0x0000028 + +gUnk_0813A158:: @ 0813A158 + .incbin "baserom.gba", 0x13A158, 0x0000028 + +gUnk_0813A180:: @ 0813A180 + .incbin "baserom.gba", 0x13A180, 0x0000028 + +gUnk_0813A1A8:: @ 0813A1A8 + .incbin "baserom.gba", 0x13A1A8, 0x000001F + +gUnk_0813A1C7:: @ 0813A1C7 + .incbin "baserom.gba", 0x13A1C7, 0x0000009 + +gUnk_0813A1D0:: @ 0813A1D0 + .incbin "baserom.gba", 0x13A1D0, 0x0000028 + +gUnk_0813A1F8:: @ 0813A1F8 + .incbin "baserom.gba", 0x13A1F8, 0x0000028 + +gUnk_0813A220:: @ 0813A220 + .incbin "baserom.gba", 0x13A220, 0x000001F + +gUnk_0813A23F:: @ 0813A23F + .incbin "baserom.gba", 0x13A23F, 0x0000009 + +gUnk_0813A248:: @ 0813A248 + .incbin "baserom.gba", 0x13A248, 0x000003C + +gUnk_0813A284:: @ 0813A284 + .incbin "baserom.gba", 0x13A284, 0x0000028 + +gUnk_0813A2AC:: @ 0813A2AC + .incbin "baserom.gba", 0x13A2AC, 0x0000114 + +gUnk_0813A3C0:: @ 0813A3C0 + .incbin "baserom.gba", 0x13A3C0, 0x0000028 + +gUnk_0813A3E8:: @ 0813A3E8 + .incbin "baserom.gba", 0x13A3E8, 0x000003C + +gUnk_0813A424:: @ 0813A424 + .incbin "baserom.gba", 0x13A424, 0x0000028 + +gUnk_0813A44C:: @ 0813A44C + .incbin "baserom.gba", 0x13A44C, 0x0000028 + +gUnk_0813A474:: @ 0813A474 + .incbin "baserom.gba", 0x13A474, 0x000003C + +gUnk_0813A4B0:: @ 0813A4B0 + .incbin "baserom.gba", 0x13A4B0, 0x0000028 + +gUnk_0813A4D8:: @ 0813A4D8 + .incbin "baserom.gba", 0x13A4D8, 0x000003C + +gUnk_0813A514:: @ 0813A514 + .incbin "baserom.gba", 0x13A514, 0x0000028 + +gUnk_0813A53C:: @ 0813A53C + .incbin "baserom.gba", 0x13A53C, 0x0000020 + +gUnk_0813A55C:: @ 0813A55C + .incbin "baserom.gba", 0x13A55C, 0x0000028 + +gUnk_0813A584:: @ 0813A584 + .incbin "baserom.gba", 0x13A584, 0x0000028 + +gUnk_0813A5AC:: @ 0813A5AC + .incbin "baserom.gba", 0x13A5AC, 0x0000008 + +gUnk_0813A5B4:: @ 0813A5B4 + .incbin "baserom.gba", 0x13A5B4, 0x000003C + +gUnk_0813A5F0:: @ 0813A5F0 + .incbin "baserom.gba", 0x13A5F0, 0x0000004 + +gUnk_0813A5F4:: @ 0813A5F4 + .incbin "baserom.gba", 0x13A5F4, 0x000003C + +gUnk_0813A630:: @ 0813A630 + .incbin "baserom.gba", 0x13A630, 0x000003C + +gUnk_0813A66C:: @ 0813A66C + .incbin "baserom.gba", 0x13A66C, 0x0000078 + +gUnk_0813A6E4:: @ 0813A6E4 + .incbin "baserom.gba", 0x13A6E4, 0x0000020 + +gUnk_0813A704:: @ 0813A704 + .incbin "baserom.gba", 0x13A704, 0x000003C + +gUnk_0813A740:: @ 0813A740 + .incbin "baserom.gba", 0x13A740, 0x0000004 + +gUnk_0813A744:: @ 0813A744 + .incbin "baserom.gba", 0x13A744, 0x0000028 + +gUnk_0813A76C:: @ 0813A76C + .incbin "baserom.gba", 0x13A76C, 0x0000028 + +gUnk_0813A794:: @ 0813A794 + .incbin "baserom.gba", 0x13A794, 0x0000028 + +gUnk_0813A7BC:: @ 0813A7BC + .incbin "baserom.gba", 0x13A7BC, 0x0000028 + +gUnk_0813A7E4:: @ 0813A7E4 + .incbin "baserom.gba", 0x13A7E4, 0x000000C + +gUnk_0813A7F0:: @ 0813A7F0 + .incbin "baserom.gba", 0x13A7F0, 0x0000264 + +gUnk_0813AA54:: @ 0813AA54 + .incbin "baserom.gba", 0x13AA54, 0x0000014 + +gUnk_0813AA68:: @ 0813AA68 + .incbin "baserom.gba", 0x13AA68, 0x0000014 + +gUnk_0813AA7C:: @ 0813AA7C + .incbin "baserom.gba", 0x13AA7C, 0x0000014 + +gUnk_0813AA90:: @ 0813AA90 + .incbin "baserom.gba", 0x13AA90, 0x0000014 + +gUnk_0813AAA4:: @ 0813AAA4 + .incbin "baserom.gba", 0x13AAA4, 0x0000014 + +gUnk_0813AAB8:: @ 0813AAB8 + .incbin "baserom.gba", 0x13AAB8, 0x0000014 + +gUnk_0813AACC:: @ 0813AACC + .incbin "baserom.gba", 0x13AACC, 0x0000014 + +gUnk_0813AAE0:: @ 0813AAE0 + .incbin "baserom.gba", 0x13AAE0, 0x0000014 + +gUnk_0813AAF4:: @ 0813AAF4 + .incbin "baserom.gba", 0x13AAF4, 0x0000014 + +gUnk_0813AB08:: @ 0813AB08 + .incbin "baserom.gba", 0x13AB08, 0x0000014 + +gUnk_0813AB1C:: @ 0813AB1C + .incbin "baserom.gba", 0x13AB1C, 0x000003C + +gUnk_0813AB58:: @ 0813AB58 + .incbin "baserom.gba", 0x13AB58, 0x0000014 + +gUnk_0813AB6C:: @ 0813AB6C + .incbin "baserom.gba", 0x13AB6C, 0x0000014 + +gUnk_0813AB80:: @ 0813AB80 + .incbin "baserom.gba", 0x13AB80, 0x0000014 + +gUnk_0813AB94:: @ 0813AB94 + .incbin "baserom.gba", 0x13AB94, 0x0000014 + +gUnk_0813ABA8:: @ 0813ABA8 + .incbin "baserom.gba", 0x13ABA8, 0x0000014 + +gUnk_0813ABBC:: @ 0813ABBC + .incbin "baserom.gba", 0x13ABBC, 0x0000014 + +gUnk_0813ABD0:: @ 0813ABD0 + .incbin "baserom.gba", 0x13ABD0, 0x0000014 + +gUnk_0813ABE4:: @ 0813ABE4 + .incbin "baserom.gba", 0x13ABE4, 0x0000014 + +gUnk_0813ABF8:: @ 0813ABF8 + .incbin "baserom.gba", 0x13ABF8, 0x0000014 + +gUnk_0813AC0C:: @ 0813AC0C + .incbin "baserom.gba", 0x13AC0C, 0x0000014 + +gUnk_0813AC20:: @ 0813AC20 + .incbin "baserom.gba", 0x13AC20, 0x0000014 + +gUnk_0813AC34:: @ 0813AC34 + .incbin "baserom.gba", 0x13AC34, 0x0000014 + +gUnk_0813AC48:: @ 0813AC48 + .incbin "baserom.gba", 0x13AC48, 0x0000014 + +gUnk_0813AC5C:: @ 0813AC5C + .incbin "baserom.gba", 0x13AC5C, 0x0000014 + +gUnk_0813AC70:: @ 0813AC70 + .incbin "baserom.gba", 0x13AC70, 0x0000014 + +gUnk_0813AC84:: @ 0813AC84 + .incbin "baserom.gba", 0x13AC84, 0x0000014 + +gUnk_0813AC98:: @ 0813AC98 + .incbin "baserom.gba", 0x13AC98, 0x0000014 + +gUnk_0813ACAC:: @ 0813ACAC + .incbin "baserom.gba", 0x13ACAC, 0x0000014 + +gUnk_0813ACC0:: @ 0813ACC0 + .incbin "baserom.gba", 0x13ACC0, 0x0000014 + +gUnk_0813ACD4:: @ 0813ACD4 + .incbin "baserom.gba", 0x13ACD4, 0x0000014 + +gUnk_0813ACE8:: @ 0813ACE8 + .incbin "baserom.gba", 0x13ACE8, 0x0000014 + +gUnk_0813ACFC:: @ 0813ACFC + .incbin "baserom.gba", 0x13ACFC, 0x0000014 + +gUnk_0813AD10:: @ 0813AD10 + .incbin "baserom.gba", 0x13AD10, 0x0000014 + +gUnk_0813AD24:: @ 0813AD24 + .incbin "baserom.gba", 0x13AD24, 0x0000014 + +gUnk_0813AD38:: @ 0813AD38 + .incbin "baserom.gba", 0x13AD38, 0x0000014 + +gUnk_0813AD4C:: @ 0813AD4C + .incbin "baserom.gba", 0x13AD4C, 0x0000014 + +gUnk_0813AD60:: @ 0813AD60 + .incbin "baserom.gba", 0x13AD60, 0x0000014 + +gUnk_0813AD74:: @ 0813AD74 + .incbin "baserom.gba", 0x13AD74, 0x0000014 + +gUnk_0813AD88:: @ 0813AD88 + .incbin "baserom.gba", 0x13AD88, 0x0000064 + +gUnk_0813ADEC:: @ 0813ADEC + .incbin "baserom.gba", 0x13ADEC, 0x0000028 + +gUnk_0813AE14:: @ 0813AE14 + .incbin "baserom.gba", 0x13AE14, 0x00005F9 + +gUnk_0813B40D:: @ 0813B40D + .incbin "baserom.gba", 0x13B40D, 0x0002406 + +gUnk_0813D813:: @ 0813D813 + .incbin "baserom.gba", 0x13D813, 0x0000643 + +gUnk_0813DE56:: @ 0813DE56 + .incbin "baserom.gba", 0x13DE56, 0x0000168 + +gUnk_0813DFBE:: @ 0813DFBE + .incbin "baserom.gba", 0x13DFBE, 0x0000025 + +gUnk_0813DFE3:: @ 0813DFE3 + .incbin "baserom.gba", 0x13DFE3, 0x000021D + +gUnk_0813E200:: @ 0813E200 + .incbin "baserom.gba", 0x13E200, 0x0000608 + +gUnk_0813E808:: @ 0813E808 + .incbin "baserom.gba", 0x13E808, 0x00000F9 + +gUnk_0813E901:: @ 0813E901 + .incbin "baserom.gba", 0x13E901, 0x0000205 + +gUnk_0813EB06:: @ 0813EB06 + .incbin "baserom.gba", 0x13EB06, 0x00002E4 + +gUnk_0813EDEA:: @ 0813EDEA + .incbin "baserom.gba", 0x13EDEA, 0x0000208 + +gUnk_0813EFF2:: @ 0813EFF2 + .incbin "baserom.gba", 0x13EFF2, 0x000070F + +gUnk_0813F701:: @ 0813F701 + .incbin "baserom.gba", 0x13F701, 0x0000114 + +gUnk_0813F815:: @ 0813F815 + .incbin "baserom.gba", 0x13F815, 0x00006C3 + +gUnk_0813FED8:: @ 0813FED8 + .incbin "baserom.gba", 0x13FED8, 0x0000128 + +gUnk_08140000:: @ 08140000 + .incbin "baserom.gba", 0x140000, 0x0000001 + +gUnk_08140001:: @ 08140001 + .incbin "baserom.gba", 0x140001, 0x0000006 + +gUnk_08140007:: @ 08140007 + .incbin "baserom.gba", 0x140007, 0x0000001 + +gUnk_08140008:: @ 08140008 + .incbin "baserom.gba", 0x140008, 0x000000A + +gUnk_08140012:: @ 08140012 + .incbin "baserom.gba", 0x140012, 0x0000007 + +gUnk_08140019:: @ 08140019 + .incbin "baserom.gba", 0x140019, 0x0000001 + +gUnk_0814001A:: @ 0814001A + .incbin "baserom.gba", 0x14001A, 0x0000030 + +gUnk_0814004A:: @ 0814004A + .incbin "baserom.gba", 0x14004A, 0x0000010 + +gUnk_0814005A:: @ 0814005A + .incbin "baserom.gba", 0x14005A, 0x0000002 + +gUnk_0814005C:: @ 0814005C + .incbin "baserom.gba", 0x14005C, 0x0000002 + +gUnk_0814005E:: @ 0814005E + .incbin "baserom.gba", 0x14005E, 0x000000D + +gUnk_0814006B:: @ 0814006B + .incbin "baserom.gba", 0x14006B, 0x0000025 + +gUnk_08140090:: @ 08140090 + .incbin "baserom.gba", 0x140090, 0x000002E + +gUnk_081400BE:: @ 081400BE + .incbin "baserom.gba", 0x1400BE, 0x0000024 + +gUnk_081400E2:: @ 081400E2 + .incbin "baserom.gba", 0x1400E2, 0x000005E + +gUnk_08140140:: @ 08140140 + .incbin "baserom.gba", 0x140140, 0x0000083 + +gUnk_081401C3:: @ 081401C3 + .incbin "baserom.gba", 0x1401C3, 0x000003D + +gUnk_08140200:: @ 08140200 + .incbin "baserom.gba", 0x140200, 0x0000025 + +gUnk_08140225:: @ 08140225 + .incbin "baserom.gba", 0x140225, 0x00000AE + +gUnk_081402D3:: @ 081402D3 + .incbin "baserom.gba", 0x1402D3, 0x0000026 + +gUnk_081402F9:: @ 081402F9 + .incbin "baserom.gba", 0x1402F9, 0x0000007 + +gUnk_08140300:: @ 08140300 + .incbin "baserom.gba", 0x140300, 0x00000F4 + +gUnk_081403F4:: @ 081403F4 + .incbin "baserom.gba", 0x1403F4, 0x000000D + +gUnk_08140401:: @ 08140401 + .incbin "baserom.gba", 0x140401, 0x0000001 + +gUnk_08140402:: @ 08140402 + .incbin "baserom.gba", 0x140402, 0x0000062 + +gUnk_08140464:: @ 08140464 + .incbin "baserom.gba", 0x140464, 0x00000A1 + +gUnk_08140505:: @ 08140505 + .incbin "baserom.gba", 0x140505, 0x000017C + +gUnk_08140681:: @ 08140681 + .incbin "baserom.gba", 0x140681, 0x0000170 + +gUnk_081407F1:: @ 081407F1 + .incbin "baserom.gba", 0x1407F1, 0x0000016 + +gUnk_08140807:: @ 08140807 + .incbin "baserom.gba", 0x140807, 0x000000C + +gUnk_08140813:: @ 08140813 + .incbin "baserom.gba", 0x140813, 0x0000075 + +gUnk_08140888:: @ 08140888 + .incbin "baserom.gba", 0x140888, 0x0000075 + +gUnk_081408FD:: @ 081408FD + .incbin "baserom.gba", 0x1408FD, 0x0000106 + +gUnk_08140A03:: @ 08140A03 + .incbin "baserom.gba", 0x140A03, 0x00000E9 + +gUnk_08140AEC:: @ 08140AEC + .incbin "baserom.gba", 0x140AEC, 0x0000010 + +gUnk_08140AFC:: @ 08140AFC + .incbin "baserom.gba", 0x140AFC, 0x0000004 + +gUnk_08140B00:: @ 08140B00 + .incbin "baserom.gba", 0x140B00, 0x0000006 + +gUnk_08140B06:: @ 08140B06 + .incbin "baserom.gba", 0x140B06, 0x00000F1 + +gUnk_08140BF7:: @ 08140BF7 + .incbin "baserom.gba", 0x140BF7, 0x0000011 + +gUnk_08140C08:: @ 08140C08 + .incbin "baserom.gba", 0x140C08, 0x00000F0 + +gUnk_08140CF8:: @ 08140CF8 + .incbin "baserom.gba", 0x140CF8, 0x0000015 + +gUnk_08140D0D:: @ 08140D0D + .incbin "baserom.gba", 0x140D0D, 0x00000E9 + +gUnk_08140DF6:: @ 08140DF6 + .incbin "baserom.gba", 0x140DF6, 0x000010D + +gUnk_08140F03:: @ 08140F03 + .incbin "baserom.gba", 0x140F03, 0x0000004 + +gUnk_08140F07:: @ 08140F07 + .incbin "baserom.gba", 0x140F07, 0x0000002 + +gUnk_08140F09:: @ 08140F09 + .incbin "baserom.gba", 0x140F09, 0x0000007 + +gUnk_08140F10:: @ 08140F10 + .incbin "baserom.gba", 0x140F10, 0x00000F6 + +gUnk_08141006:: @ 08141006 + .incbin "baserom.gba", 0x141006, 0x0000110 + +gUnk_08141116:: @ 08141116 + .incbin "baserom.gba", 0x141116, 0x00000E6 + +gUnk_081411FC:: @ 081411FC + .incbin "baserom.gba", 0x1411FC, 0x0000005 + +gUnk_08141201:: @ 08141201 + .incbin "baserom.gba", 0x141201, 0x0000003 + +gUnk_08141204:: @ 08141204 + .incbin "baserom.gba", 0x141204, 0x0000101 + +gUnk_08141305:: @ 08141305 + .incbin "baserom.gba", 0x141305, 0x0000009 + +gUnk_0814130E:: @ 0814130E + .incbin "baserom.gba", 0x14130E, 0x000000B + +gUnk_08141319:: @ 08141319 + .incbin "baserom.gba", 0x141319, 0x00000E6 + +gUnk_081413FF:: @ 081413FF + .incbin "baserom.gba", 0x1413FF, 0x0000013 + +gUnk_08141412:: @ 08141412 + .incbin "baserom.gba", 0x141412, 0x00000F7 + +gUnk_08141509:: @ 08141509 + .incbin "baserom.gba", 0x141509, 0x0000001 + +gUnk_0814150A:: @ 0814150A + .incbin "baserom.gba", 0x14150A, 0x0000002 + +gUnk_0814150C:: @ 0814150C + .incbin "baserom.gba", 0x14150C, 0x0000004 + +gUnk_08141510:: @ 08141510 + .incbin "baserom.gba", 0x141510, 0x0000002 + +gUnk_08141512:: @ 08141512 + .incbin "baserom.gba", 0x141512, 0x0000002 + +gUnk_08141514:: @ 08141514 + .incbin "baserom.gba", 0x141514, 0x00000DD + +gUnk_081415F1:: @ 081415F1 + .incbin "baserom.gba", 0x1415F1, 0x000001A + +gUnk_0814160B:: @ 0814160B + .incbin "baserom.gba", 0x14160B, 0x0000002 + +gUnk_0814160D:: @ 0814160D + .incbin "baserom.gba", 0x14160D, 0x0000103 + +gUnk_08141710:: @ 08141710 + .incbin "baserom.gba", 0x141710, 0x0000005 + +gUnk_08141715:: @ 08141715 + .incbin "baserom.gba", 0x141715, 0x0000005 + +gUnk_0814171A:: @ 0814171A + .incbin "baserom.gba", 0x14171A, 0x0000001 + +gUnk_0814171B:: @ 0814171B + .incbin "baserom.gba", 0x14171B, 0x000000A + +gUnk_08141725:: @ 08141725 + .incbin "baserom.gba", 0x141725, 0x00000E2 + +gUnk_08141807:: @ 08141807 + .incbin "baserom.gba", 0x141807, 0x0000017 + +gUnk_0814181E:: @ 0814181E + .incbin "baserom.gba", 0x14181E, 0x00001F8 + +gUnk_08141A16:: @ 08141A16 + .incbin "baserom.gba", 0x141A16, 0x0000007 + +gUnk_08141A1D:: @ 08141A1D + .incbin "baserom.gba", 0x141A1D, 0x00000FB + +gUnk_08141B18:: @ 08141B18 + .incbin "baserom.gba", 0x141B18, 0x0000001 + +gUnk_08141B19:: @ 08141B19 + .incbin "baserom.gba", 0x141B19, 0x0000001 + +gUnk_08141B1A:: @ 08141B1A + .incbin "baserom.gba", 0x141B1A, 0x00000FA + +gUnk_08141C14:: @ 08141C14 + .incbin "baserom.gba", 0x141C14, 0x0000004 + +gUnk_08141C18:: @ 08141C18 + .incbin "baserom.gba", 0x141C18, 0x0000007 + +gUnk_08141C1F:: @ 08141C1F + .incbin "baserom.gba", 0x141C1F, 0x0000001 + +gUnk_08141C20:: @ 08141C20 + .incbin "baserom.gba", 0x141C20, 0x0000003 + +gUnk_08141C23:: @ 08141C23 + .incbin "baserom.gba", 0x141C23, 0x00000F2 + +gUnk_08141D15:: @ 08141D15 + .incbin "baserom.gba", 0x141D15, 0x0000004 + +gUnk_08141D19:: @ 08141D19 + .incbin "baserom.gba", 0x141D19, 0x0000007 + +gUnk_08141D20:: @ 08141D20 + .incbin "baserom.gba", 0x141D20, 0x0000002 + +gUnk_08141D22:: @ 08141D22 + .incbin "baserom.gba", 0x141D22, 0x0000001 + +gUnk_08141D23:: @ 08141D23 + .incbin "baserom.gba", 0x141D23, 0x0000001 + +gUnk_08141D24:: @ 08141D24 + .incbin "baserom.gba", 0x141D24, 0x00000FC + +gUnk_08141E20:: @ 08141E20 + .incbin "baserom.gba", 0x141E20, 0x0000001 + +gUnk_08141E21:: @ 08141E21 + .incbin "baserom.gba", 0x141E21, 0x0000005 + +gUnk_08141E26:: @ 08141E26 + .incbin "baserom.gba", 0x141E26, 0x00000FB + +gUnk_08141F21:: @ 08141F21 + .incbin "baserom.gba", 0x141F21, 0x0000003 + +gUnk_08141F24:: @ 08141F24 + .incbin "baserom.gba", 0x141F24, 0x0000005 + +gUnk_08141F29:: @ 08141F29 + .incbin "baserom.gba", 0x141F29, 0x00000F4 + +gUnk_0814201D:: @ 0814201D + .incbin "baserom.gba", 0x14201D, 0x0000007 + +gUnk_08142024:: @ 08142024 + .incbin "baserom.gba", 0x142024, 0x0000002 + +gUnk_08142026:: @ 08142026 + .incbin "baserom.gba", 0x142026, 0x0000001 + +gUnk_08142027:: @ 08142027 + .incbin "baserom.gba", 0x142027, 0x0000106 + +gUnk_0814212D:: @ 0814212D + .incbin "baserom.gba", 0x14212D, 0x00000C1 + +gUnk_081421EE:: @ 081421EE + .incbin "baserom.gba", 0x1421EE, 0x000003D + +gUnk_0814222B:: @ 0814222B + .incbin "baserom.gba", 0x14222B, 0x0000104 + +gUnk_0814232F:: @ 0814232F + .incbin "baserom.gba", 0x14232F, 0x0000002 + +gUnk_08142331:: @ 08142331 + .incbin "baserom.gba", 0x142331, 0x0000001 + +gUnk_08142332:: @ 08142332 + .incbin "baserom.gba", 0x142332, 0x00000F9 + +gUnk_0814242B:: @ 0814242B + .incbin "baserom.gba", 0x14242B, 0x0000005 + +gUnk_08142430:: @ 08142430 + .incbin "baserom.gba", 0x142430, 0x00000F2 + +gUnk_08142522:: @ 08142522 + .incbin "baserom.gba", 0x142522, 0x000000F + +gUnk_08142531:: @ 08142531 + .incbin "baserom.gba", 0x142531, 0x0000102 + +gUnk_08142633:: @ 08142633 + .incbin "baserom.gba", 0x142633, 0x00000F3 + +gUnk_08142726:: @ 08142726 + .incbin "baserom.gba", 0x142726, 0x000010F + +gUnk_08142835:: @ 08142835 + .incbin "baserom.gba", 0x142835, 0x0000208 + +gUnk_08142A3D:: @ 08142A3D + .incbin "baserom.gba", 0x142A3D, 0x00000E1 + +gUnk_08142B1E:: @ 08142B1E + .incbin "baserom.gba", 0x142B1E, 0x0000015 + +gUnk_08142B33:: @ 08142B33 + .incbin "baserom.gba", 0x142B33, 0x000030C + +gUnk_08142E3F:: @ 08142E3F + .incbin "baserom.gba", 0x142E3F, 0x00001D9 + +gUnk_08143018:: @ 08143018 + .incbin "baserom.gba", 0x143018, 0x0000030 + +gUnk_08143048:: @ 08143048 + .incbin "baserom.gba", 0x143048, 0x00001F3 + +gUnk_0814323B:: @ 0814323B + .incbin "baserom.gba", 0x14323B, 0x00000F8 + +gUnk_08143333:: @ 08143333 + .incbin "baserom.gba", 0x143333, 0x0000006 + +gUnk_08143339:: @ 08143339 + .incbin "baserom.gba", 0x143339, 0x00000D7 + +gUnk_08143410:: @ 08143410 + .incbin "baserom.gba", 0x143410, 0x000000D + +gUnk_0814341D:: @ 0814341D + .incbin "baserom.gba", 0x14341D, 0x0000433 + +gUnk_08143850:: @ 08143850 + .incbin "baserom.gba", 0x143850, 0x0000514 + +gUnk_08143D64:: @ 08143D64 + .incbin "baserom.gba", 0x143D64, 0x00003D1 + +gUnk_08144135:: @ 08144135 + .incbin "baserom.gba", 0x144135, 0x000360C + +gUnk_08147741:: @ 08147741 + .incbin "baserom.gba", 0x147741, 0x00064AC + +gUnk_0814DBED:: @ 0814DBED + .incbin "baserom.gba", 0x14DBED, 0x000012A + +gUnk_0814DD17:: @ 0814DD17 + .incbin "baserom.gba", 0x14DD17, 0x00004C0 + +gUnk_0814E1D7:: @ 0814E1D7 + .incbin "baserom.gba", 0x14E1D7, 0x0000031 + +gUnk_0814E208:: @ 0814E208 + .incbin "baserom.gba", 0x14E208, 0x0000300 + +gUnk_0814E508:: @ 0814E508 + .incbin "baserom.gba", 0x14E508, 0x00003EF + +gUnk_0814E8F7:: @ 0814E8F7 + .incbin "baserom.gba", 0x14E8F7, 0x0000309 + +gUnk_0814EC00:: @ 0814EC00 + .incbin "baserom.gba", 0x14EC00, 0x00001D7 + +gUnk_0814EDD7:: @ 0814EDD7 + .incbin "baserom.gba", 0x14EDD7, 0x000012A + +gUnk_0814EF01:: @ 0814EF01 + .incbin "baserom.gba", 0x14EF01, 0x0000002 + +gUnk_0814EF03:: @ 0814EF03 + .incbin "baserom.gba", 0x14EF03, 0x0000018 + +gUnk_0814EF1B:: @ 0814EF1B + .incbin "baserom.gba", 0x14EF1B, 0x00000E6 + +gUnk_0814F001:: @ 0814F001 + .incbin "baserom.gba", 0x14F001, 0x00000DA + +gUnk_0814F0DB:: @ 0814F0DB + .incbin "baserom.gba", 0x14F0DB, 0x0000148 + +gUnk_0814F223:: @ 0814F223 + .incbin "baserom.gba", 0x14F223, 0x00003CC + +gUnk_0814F5EF:: @ 0814F5EF + .incbin "baserom.gba", 0x14F5EF, 0x0000009 + +gUnk_0814F5F8:: @ 0814F5F8 + .incbin "baserom.gba", 0x14F5F8, 0x0000208 + +gUnk_0814F800:: @ 0814F800 + .incbin "baserom.gba", 0x14F800, 0x0000018 + +gUnk_0814F818:: @ 0814F818 + .incbin "baserom.gba", 0x14F818, 0x00000C9 + +gUnk_0814F8E1:: @ 0814F8E1 + .incbin "baserom.gba", 0x14F8E1, 0x0000010 + +gUnk_0814F8F1:: @ 0814F8F1 + .incbin "baserom.gba", 0x14F8F1, 0x0000007 + +gUnk_0814F8F8:: @ 0814F8F8 + .incbin "baserom.gba", 0x14F8F8, 0x00001F0 + +gUnk_0814FAE8:: @ 0814FAE8 + .incbin "baserom.gba", 0x14FAE8, 0x00000F2 + +gUnk_0814FBDA:: @ 0814FBDA + .incbin "baserom.gba", 0x14FBDA, 0x0000104 + +gUnk_0814FCDE:: @ 0814FCDE + .incbin "baserom.gba", 0x14FCDE, 0x000001A + +gUnk_0814FCF8:: @ 0814FCF8 + .incbin "baserom.gba", 0x14FCF8, 0x00000F6 + +gUnk_0814FDEE:: @ 0814FDEE + .incbin "baserom.gba", 0x14FDEE, 0x000000C + +gUnk_0814FDFA:: @ 0814FDFA + .incbin "baserom.gba", 0x14FDFA, 0x0000020 + +gUnk_0814FE1A:: @ 0814FE1A + .incbin "baserom.gba", 0x14FE1A, 0x0000020 + +gUnk_0814FE3A:: @ 0814FE3A + .incbin "baserom.gba", 0x14FE3A, 0x00000B2 + +gUnk_0814FEEC:: @ 0814FEEC + .incbin "baserom.gba", 0x14FEEC, 0x00000E2 + +gUnk_0814FFCE:: @ 0814FFCE + .incbin "baserom.gba", 0x14FFCE, 0x0000032 + +gUnk_08150000:: @ 08150000 + .incbin "baserom.gba", 0x150000, 0x0000003 + +gUnk_08150003:: @ 08150003 + .incbin "baserom.gba", 0x150003, 0x0000007 + +gUnk_0815000A:: @ 0815000A + .incbin "baserom.gba", 0x15000A, 0x0000009 + +gUnk_08150013:: @ 08150013 + .incbin "baserom.gba", 0x150013, 0x0000007 + +gUnk_0815001A:: @ 0815001A + .incbin "baserom.gba", 0x15001A, 0x0000010 + +gUnk_0815002A:: @ 0815002A + .incbin "baserom.gba", 0x15002A, 0x000000A + +gUnk_08150034:: @ 08150034 + .incbin "baserom.gba", 0x150034, 0x0000008 + +gUnk_0815003C:: @ 0815003C + .incbin "baserom.gba", 0x15003C, 0x0000004 + +gUnk_08150040:: @ 08150040 + .incbin "baserom.gba", 0x150040, 0x0000016 + +gUnk_08150056:: @ 08150056 + .incbin "baserom.gba", 0x150056, 0x000008F + +gUnk_081500E5:: @ 081500E5 + .incbin "baserom.gba", 0x1500E5, 0x0000006 + +gUnk_081500EB:: @ 081500EB + .incbin "baserom.gba", 0x1500EB, 0x000001F + +gUnk_0815010A:: @ 0815010A + .incbin "baserom.gba", 0x15010A, 0x0000028 + +gUnk_08150132:: @ 08150132 + .incbin "baserom.gba", 0x150132, 0x000000E + +gUnk_08150140:: @ 08150140 + .incbin "baserom.gba", 0x150140, 0x00001C0 + +gUnk_08150300:: @ 08150300 + .incbin "baserom.gba", 0x150300, 0x000001D + +gUnk_0815031D:: @ 0815031D + .incbin "baserom.gba", 0x15031D, 0x00000E4 + +gUnk_08150401:: @ 08150401 + .incbin "baserom.gba", 0x150401, 0x0000001 + +gUnk_08150402:: @ 08150402 + .incbin "baserom.gba", 0x150402, 0x000001B + +gUnk_0815041D:: @ 0815041D + .incbin "baserom.gba", 0x15041D, 0x0000027 + +gUnk_08150444:: @ 08150444 + .incbin "baserom.gba", 0x150444, 0x00001A6 + +gUnk_081505EA:: @ 081505EA + .incbin "baserom.gba", 0x1505EA, 0x0000017 + +gUnk_08150601:: @ 08150601 + .incbin "baserom.gba", 0x150601, 0x00000AD + +gUnk_081506AE:: @ 081506AE + .incbin "baserom.gba", 0x1506AE, 0x0000125 + +gUnk_081507D3:: @ 081507D3 + .incbin "baserom.gba", 0x1507D3, 0x0000028 + +gUnk_081507FB:: @ 081507FB + .incbin "baserom.gba", 0x1507FB, 0x0000009 + +gUnk_08150804:: @ 08150804 + .incbin "baserom.gba", 0x150804, 0x0000002 + +gUnk_08150806:: @ 08150806 + .incbin "baserom.gba", 0x150806, 0x000000E + +gUnk_08150814:: @ 08150814 + .incbin "baserom.gba", 0x150814, 0x00000DE + +gUnk_081508F2:: @ 081508F2 + .incbin "baserom.gba", 0x1508F2, 0x000000B + +gUnk_081508FD:: @ 081508FD + .incbin "baserom.gba", 0x1508FD, 0x000010F + +gUnk_08150A0C:: @ 08150A0C + .incbin "baserom.gba", 0x150A0C, 0x00000E6 + +gUnk_08150AF2:: @ 08150AF2 + .incbin "baserom.gba", 0x150AF2, 0x0000018 + +gUnk_08150B0A:: @ 08150B0A + .incbin "baserom.gba", 0x150B0A, 0x0000005 + +gUnk_08150B0F:: @ 08150B0F + .incbin "baserom.gba", 0x150B0F, 0x000000C + +gUnk_08150B1B:: @ 08150B1B + .incbin "baserom.gba", 0x150B1B, 0x00002E6 + +gUnk_08150E01:: @ 08150E01 + .incbin "baserom.gba", 0x150E01, 0x00000EE + +gUnk_08150EEF:: @ 08150EEF + .incbin "baserom.gba", 0x150EEF, 0x000001D + +gUnk_08150F0C:: @ 08150F0C + .incbin "baserom.gba", 0x150F0C, 0x00000EB + +gUnk_08150FF7:: @ 08150FF7 + .incbin "baserom.gba", 0x150FF7, 0x000000D + +gUnk_08151004:: @ 08151004 + .incbin "baserom.gba", 0x151004, 0x00000FC + +gUnk_08151100:: @ 08151100 + .incbin "baserom.gba", 0x151100, 0x0000007 + +gUnk_08151107:: @ 08151107 + .incbin "baserom.gba", 0x151107, 0x00000F2 + +gUnk_081511F9:: @ 081511F9 + .incbin "baserom.gba", 0x1511F9, 0x000000F + +gUnk_08151208:: @ 08151208 + .incbin "baserom.gba", 0x151208, 0x0000004 + +gUnk_0815120C:: @ 0815120C + .incbin "baserom.gba", 0x15120C, 0x00000FB + +gUnk_08151307:: @ 08151307 + .incbin "baserom.gba", 0x151307, 0x0000007 + +gUnk_0815130E:: @ 0815130E + .incbin "baserom.gba", 0x15130E, 0x00000ED + +gUnk_081513FB:: @ 081513FB + .incbin "baserom.gba", 0x1513FB, 0x000011D + +gUnk_08151518:: @ 08151518 + .incbin "baserom.gba", 0x151518, 0x0000054 + +gUnk_0815156C:: @ 0815156C + .incbin "baserom.gba", 0x15156C, 0x00000A0 + +gUnk_0815160C:: @ 0815160C + .incbin "baserom.gba", 0x15160C, 0x0000004 + +gUnk_08151610:: @ 08151610 + .incbin "baserom.gba", 0x151610, 0x0000007 + +gUnk_08151617:: @ 08151617 + .incbin "baserom.gba", 0x151617, 0x00000EC + +gUnk_08151703:: @ 08151703 + .incbin "baserom.gba", 0x151703, 0x0000010 + +gUnk_08151713:: @ 08151713 + .incbin "baserom.gba", 0x151713, 0x0000003 + +gUnk_08151716:: @ 08151716 + .incbin "baserom.gba", 0x151716, 0x000000F + +gUnk_08151725:: @ 08151725 + .incbin "baserom.gba", 0x151725, 0x00000ED + +gUnk_08151812:: @ 08151812 + .incbin "baserom.gba", 0x151812, 0x0000001 + +gUnk_08151813:: @ 08151813 + .incbin "baserom.gba", 0x151813, 0x0000002 + +gUnk_08151815:: @ 08151815 + .incbin "baserom.gba", 0x151815, 0x0000010 + +gUnk_08151825:: @ 08151825 + .incbin "baserom.gba", 0x151825, 0x00000EA + +gUnk_0815190F:: @ 0815190F + .incbin "baserom.gba", 0x15190F, 0x0000006 + +gUnk_08151915:: @ 08151915 + .incbin "baserom.gba", 0x151915, 0x00000FA + +gUnk_08151A0F:: @ 08151A0F + .incbin "baserom.gba", 0x151A0F, 0x000000B + +gUnk_08151A1A:: @ 08151A1A + .incbin "baserom.gba", 0x151A1A, 0x00000FB + +gUnk_08151B15:: @ 08151B15 + .incbin "baserom.gba", 0x151B15, 0x0000004 + +gUnk_08151B19:: @ 08151B19 + .incbin "baserom.gba", 0x151B19, 0x0000004 + +gUnk_08151B1D:: @ 08151B1D + .incbin "baserom.gba", 0x151B1D, 0x0000002 + +gUnk_08151B1F:: @ 08151B1F + .incbin "baserom.gba", 0x151B1F, 0x00000E9 + +gUnk_08151C08:: @ 08151C08 + .incbin "baserom.gba", 0x151C08, 0x0000015 + +gUnk_08151C1D:: @ 08151C1D + .incbin "baserom.gba", 0x151C1D, 0x0000004 + +gUnk_08151C21:: @ 08151C21 + .incbin "baserom.gba", 0x151C21, 0x0000004 + +gUnk_08151C25:: @ 08151C25 + .incbin "baserom.gba", 0x151C25, 0x00000F3 + +gUnk_08151D18:: @ 08151D18 + .incbin "baserom.gba", 0x151D18, 0x000000D + +gUnk_08151D25:: @ 08151D25 + .incbin "baserom.gba", 0x151D25, 0x00000FC + +gUnk_08151E21:: @ 08151E21 + .incbin "baserom.gba", 0x151E21, 0x0000005 + +gUnk_08151E26:: @ 08151E26 + .incbin "baserom.gba", 0x151E26, 0x00000FA + +gUnk_08151F20:: @ 08151F20 + .incbin "baserom.gba", 0x151F20, 0x0000003 + +gUnk_08151F23:: @ 08151F23 + .incbin "baserom.gba", 0x151F23, 0x0000002 + +gUnk_08151F25:: @ 08151F25 + .incbin "baserom.gba", 0x151F25, 0x00000FF + +gUnk_08152024:: @ 08152024 + .incbin "baserom.gba", 0x152024, 0x0000003 + +gUnk_08152027:: @ 08152027 + .incbin "baserom.gba", 0x152027, 0x0000001 + +gUnk_08152028:: @ 08152028 + .incbin "baserom.gba", 0x152028, 0x0000007 + +gUnk_0815202F:: @ 0815202F + .incbin "baserom.gba", 0x15202F, 0x0000027 + +gUnk_08152056:: @ 08152056 + .incbin "baserom.gba", 0x152056, 0x00000C3 + +gUnk_08152119:: @ 08152119 + .incbin "baserom.gba", 0x152119, 0x0000001 + +gUnk_0815211A:: @ 0815211A + .incbin "baserom.gba", 0x15211A, 0x0000009 + +gUnk_08152123:: @ 08152123 + .incbin "baserom.gba", 0x152123, 0x0000003 + +gUnk_08152126:: @ 08152126 + .incbin "baserom.gba", 0x152126, 0x0000009 + +gUnk_0815212F:: @ 0815212F + .incbin "baserom.gba", 0x15212F, 0x0000001 + +gUnk_08152130:: @ 08152130 + .incbin "baserom.gba", 0x152130, 0x00000E1 + +gUnk_08152211:: @ 08152211 + .incbin "baserom.gba", 0x152211, 0x0000007 + +gUnk_08152218:: @ 08152218 + .incbin "baserom.gba", 0x152218, 0x0000011 + +gUnk_08152229:: @ 08152229 + .incbin "baserom.gba", 0x152229, 0x0000008 + +gUnk_08152231:: @ 08152231 + .incbin "baserom.gba", 0x152231, 0x00000EF + +gUnk_08152320:: @ 08152320 + .incbin "baserom.gba", 0x152320, 0x000000C + +gUnk_0815232C:: @ 0815232C + .incbin "baserom.gba", 0x15232C, 0x0000005 + +gUnk_08152331:: @ 08152331 + .incbin "baserom.gba", 0x152331, 0x00000CD + +gUnk_081523FE:: @ 081523FE + .incbin "baserom.gba", 0x1523FE, 0x000002B + +gUnk_08152429:: @ 08152429 + .incbin "baserom.gba", 0x152429, 0x00000EE + +gUnk_08152517:: @ 08152517 + .incbin "baserom.gba", 0x152517, 0x0000126 + +gUnk_0815263D:: @ 0815263D + .incbin "baserom.gba", 0x15263D, 0x00000F8 + +gUnk_08152735:: @ 08152735 + .incbin "baserom.gba", 0x152735, 0x000030B + +gUnk_08152A40:: @ 08152A40 + .incbin "baserom.gba", 0x152A40, 0x00000CC + +gUnk_08152B0C:: @ 08152B0C + .incbin "baserom.gba", 0x152B0C, 0x0000027 + +gUnk_08152B33:: @ 08152B33 + .incbin "baserom.gba", 0x152B33, 0x00002E3 + +gUnk_08152E16:: @ 08152E16 + .incbin "baserom.gba", 0x152E16, 0x000012F + +gUnk_08152F45:: @ 08152F45 + .incbin "baserom.gba", 0x152F45, 0x0000A22 + +gUnk_08153967:: @ 08153967 + .incbin "baserom.gba", 0x153967, 0x00001EC + +gUnk_08153B53:: @ 08153B53 + .incbin "baserom.gba", 0x153B53, 0x0000BD3 + +gUnk_08154726:: @ 08154726 + .incbin "baserom.gba", 0x154726, 0x0001E50 + +gUnk_08156576:: @ 08156576 + .incbin "baserom.gba", 0x156576, 0x0000333 + +gUnk_081568A9:: @ 081568A9 + .incbin "baserom.gba", 0x1568A9, 0x00000FE + +gUnk_081569A7:: @ 081569A7 + .incbin "baserom.gba", 0x1569A7, 0x0001BDE + +gUnk_08158585:: @ 08158585 + .incbin "baserom.gba", 0x158585, 0x0002B24 + +gUnk_0815B0A9:: @ 0815B0A9 + .incbin "baserom.gba", 0x15B0A9, 0x0001251 + +gUnk_0815C2FA:: @ 0815C2FA + .incbin "baserom.gba", 0x15C2FA, 0x0002101 + +gUnk_0815E3FB:: @ 0815E3FB + .incbin "baserom.gba", 0x15E3FB, 0x0000CFD + +gUnk_0815F0F8:: @ 0815F0F8 + .incbin "baserom.gba", 0x15F0F8, 0x0000AF5 + +gUnk_0815FBED:: @ 0815FBED + .incbin "baserom.gba", 0x15FBED, 0x0000222 + +gUnk_0815FE0F:: @ 0815FE0F + .incbin "baserom.gba", 0x15FE0F, 0x00001F1 + +gUnk_08160000:: @ 08160000 + .incbin "baserom.gba", 0x160000, 0x0000009 + +gUnk_08160009:: @ 08160009 + .incbin "baserom.gba", 0x160009, 0x00000B8 + +gUnk_081600C1:: @ 081600C1 + .incbin "baserom.gba", 0x1600C1, 0x0000012 + +gUnk_081600D3:: @ 081600D3 + .incbin "baserom.gba", 0x1600D3, 0x000000C + +gUnk_081600DF:: @ 081600DF + .incbin "baserom.gba", 0x1600DF, 0x0000005 + +gUnk_081600E4:: @ 081600E4 + .incbin "baserom.gba", 0x1600E4, 0x0000224 + +gUnk_08160308:: @ 08160308 + .incbin "baserom.gba", 0x160308, 0x000009D + +gUnk_081603A5:: @ 081603A5 + .incbin "baserom.gba", 0x1603A5, 0x000006A + +gUnk_0816040F:: @ 0816040F + .incbin "baserom.gba", 0x16040F, 0x00004DD + +gUnk_081608EC:: @ 081608EC + .incbin "baserom.gba", 0x1608EC, 0x0000118 + +gUnk_08160A04:: @ 08160A04 + .incbin "baserom.gba", 0x160A04, 0x0000104 + +gUnk_08160B08:: @ 08160B08 + .incbin "baserom.gba", 0x160B08, 0x00001EB + +gUnk_08160CF3:: @ 08160CF3 + .incbin "baserom.gba", 0x160CF3, 0x000020E + +gUnk_08160F01:: @ 08160F01 + .incbin "baserom.gba", 0x160F01, 0x0000002 + +gUnk_08160F03:: @ 08160F03 + .incbin "baserom.gba", 0x160F03, 0x0000006 + +gUnk_08160F09:: @ 08160F09 + .incbin "baserom.gba", 0x160F09, 0x0000105 + +gUnk_0816100E:: @ 0816100E + .incbin "baserom.gba", 0x16100E, 0x00000EF + +gUnk_081610FD:: @ 081610FD + .incbin "baserom.gba", 0x1610FD, 0x0000007 + +gUnk_08161104:: @ 08161104 + .incbin "baserom.gba", 0x161104, 0x00000F8 + +gUnk_081611FC:: @ 081611FC + .incbin "baserom.gba", 0x1611FC, 0x000002D + +gUnk_08161229:: @ 08161229 + .incbin "baserom.gba", 0x161229, 0x000002B + +gUnk_08161254:: @ 08161254 + .incbin "baserom.gba", 0x161254, 0x0000097 + +gUnk_081612EB:: @ 081612EB + .incbin "baserom.gba", 0x1612EB, 0x000000F + +gUnk_081612FA:: @ 081612FA + .incbin "baserom.gba", 0x1612FA, 0x0000006 + +gUnk_08161300:: @ 08161300 + .incbin "baserom.gba", 0x161300, 0x00000E2 + +gUnk_081613E2:: @ 081613E2 + .incbin "baserom.gba", 0x1613E2, 0x0000041 + +gUnk_08161423:: @ 08161423 + .incbin "baserom.gba", 0x161423, 0x00002E8 + +gUnk_0816170B:: @ 0816170B + .incbin "baserom.gba", 0x16170B, 0x00000FD + +gUnk_08161808:: @ 08161808 + .incbin "baserom.gba", 0x161808, 0x0000006 + +gUnk_0816180E:: @ 0816180E + .incbin "baserom.gba", 0x16180E, 0x000000B + +gUnk_08161819:: @ 08161819 + .incbin "baserom.gba", 0x161819, 0x00000F2 + +gUnk_0816190B:: @ 0816190B + .incbin "baserom.gba", 0x16190B, 0x0000007 + +gUnk_08161912:: @ 08161912 + .incbin "baserom.gba", 0x161912, 0x0000102 + +gUnk_08161A14:: @ 08161A14 + .incbin "baserom.gba", 0x161A14, 0x0000002 + +gUnk_08161A16:: @ 08161A16 + .incbin "baserom.gba", 0x161A16, 0x000000A + +gUnk_08161A20:: @ 08161A20 + .incbin "baserom.gba", 0x161A20, 0x00000EC + +gUnk_08161B0C:: @ 08161B0C + .incbin "baserom.gba", 0x161B0C, 0x0000003 + +gUnk_08161B0F:: @ 08161B0F + .incbin "baserom.gba", 0x161B0F, 0x0000009 + +gUnk_08161B18:: @ 08161B18 + .incbin "baserom.gba", 0x161B18, 0x0000005 + +gUnk_08161B1D:: @ 08161B1D + .incbin "baserom.gba", 0x161B1D, 0x0000007 + +gUnk_08161B24:: @ 08161B24 + .incbin "baserom.gba", 0x161B24, 0x00000AC + +gUnk_08161BD0:: @ 08161BD0 + .incbin "baserom.gba", 0x161BD0, 0x000004F + +gUnk_08161C1F:: @ 08161C1F + .incbin "baserom.gba", 0x161C1F, 0x00000FB + +gUnk_08161D1A:: @ 08161D1A + .incbin "baserom.gba", 0x161D1A, 0x000001B + +gUnk_08161D35:: @ 08161D35 + .incbin "baserom.gba", 0x161D35, 0x00000CB + +gUnk_08161E00:: @ 08161E00 + .incbin "baserom.gba", 0x161E00, 0x0000017 + +gUnk_08161E17:: @ 08161E17 + .incbin "baserom.gba", 0x161E17, 0x00000D9 + +gUnk_08161EF0:: @ 08161EF0 + .incbin "baserom.gba", 0x161EF0, 0x000001D + +gUnk_08161F0D:: @ 08161F0D + .incbin "baserom.gba", 0x161F0D, 0x0000011 + +gUnk_08161F1E:: @ 08161F1E + .incbin "baserom.gba", 0x161F1E, 0x0000004 + +gUnk_08161F22:: @ 08161F22 + .incbin "baserom.gba", 0x161F22, 0x0000006 + +gUnk_08161F28:: @ 08161F28 + .incbin "baserom.gba", 0x161F28, 0x00000F5 + +gUnk_0816201D:: @ 0816201D + .incbin "baserom.gba", 0x16201D, 0x0000008 + +gUnk_08162025:: @ 08162025 + .incbin "baserom.gba", 0x162025, 0x0000005 + +gUnk_0816202A:: @ 0816202A + .incbin "baserom.gba", 0x16202A, 0x0000100 + +gUnk_0816212A:: @ 0816212A + .incbin "baserom.gba", 0x16212A, 0x00000ED + +gUnk_08162217:: @ 08162217 + .incbin "baserom.gba", 0x162217, 0x0000017 + +gUnk_0816222E:: @ 0816222E + .incbin "baserom.gba", 0x16222E, 0x00000F5 + +gUnk_08162323:: @ 08162323 + .incbin "baserom.gba", 0x162323, 0x0000001 + +gUnk_08162324:: @ 08162324 + .incbin "baserom.gba", 0x162324, 0x0000005 + +gUnk_08162329:: @ 08162329 + .incbin "baserom.gba", 0x162329, 0x0000004 + +gUnk_0816232D:: @ 0816232D + .incbin "baserom.gba", 0x16232D, 0x0000002 + +gUnk_0816232F:: @ 0816232F + .incbin "baserom.gba", 0x16232F, 0x0000002 + +gUnk_08162331:: @ 08162331 + .incbin "baserom.gba", 0x162331, 0x00001E9 + +gUnk_0816251A:: @ 0816251A + .incbin "baserom.gba", 0x16251A, 0x0000014 + +gUnk_0816252E:: @ 0816252E + .incbin "baserom.gba", 0x16252E, 0x0000106 + +gUnk_08162634:: @ 08162634 + .incbin "baserom.gba", 0x162634, 0x0000408 + +gUnk_08162A3C:: @ 08162A3C + .incbin "baserom.gba", 0x162A3C, 0x00000FD + +gUnk_08162B39:: @ 08162B39 + .incbin "baserom.gba", 0x162B39, 0x0000309 + +gUnk_08162E42:: @ 08162E42 + .incbin "baserom.gba", 0x162E42, 0x0000200 + +gUnk_08163042:: @ 08163042 + .incbin "baserom.gba", 0x163042, 0x00000EF + +gUnk_08163131:: @ 08163131 + .incbin "baserom.gba", 0x163131, 0x0000013 + +gUnk_08163144:: @ 08163144 + .incbin "baserom.gba", 0x163144, 0x00010BD + +gUnk_08164201:: @ 08164201 + .incbin "baserom.gba", 0x164201, 0x0001315 + +gUnk_08165516:: @ 08165516 + .incbin "baserom.gba", 0x165516, 0x000015F + +gUnk_08165675:: @ 08165675 + .incbin "baserom.gba", 0x165675, 0x0000BA8 + +gUnk_0816621D:: @ 0816621D + .incbin "baserom.gba", 0x16621D, 0x0001014 + +gUnk_08167231:: @ 08167231 + .incbin "baserom.gba", 0x167231, 0x0003DFE + +gUnk_0816B02F:: @ 0816B02F + .incbin "baserom.gba", 0x16B02F, 0x00037D2 + +gUnk_0816E801:: @ 0816E801 + .incbin "baserom.gba", 0x16E801, 0x0000523 + +gUnk_0816ED24:: @ 0816ED24 + .incbin "baserom.gba", 0x16ED24, 0x00002A1 + +gUnk_0816EFC5:: @ 0816EFC5 + .incbin "baserom.gba", 0x16EFC5, 0x0000232 + +gUnk_0816F1F7:: @ 0816F1F7 + .incbin "baserom.gba", 0x16F1F7, 0x00005DD + +gUnk_0816F7D4:: @ 0816F7D4 + .incbin "baserom.gba", 0x16F7D4, 0x000001C + +gUnk_0816F7F0:: @ 0816F7F0 + .incbin "baserom.gba", 0x16F7F0, 0x0000603 + +gUnk_0816FDF3:: @ 0816FDF3 + .incbin "baserom.gba", 0x16FDF3, 0x0000105 + +gUnk_0816FEF8:: @ 0816FEF8 + .incbin "baserom.gba", 0x16FEF8, 0x0000108 + +gUnk_08170000:: @ 08170000 + .incbin "baserom.gba", 0x170000, 0x000000D + +gUnk_0817000D:: @ 0817000D + .incbin "baserom.gba", 0x17000D, 0x0000005 + +gUnk_08170012:: @ 08170012 + .incbin "baserom.gba", 0x170012, 0x0000087 + +gUnk_08170099:: @ 08170099 + .incbin "baserom.gba", 0x170099, 0x0000051 + +gUnk_081700EA:: @ 081700EA + .incbin "baserom.gba", 0x1700EA, 0x000001D + +gUnk_08170107:: @ 08170107 + .incbin "baserom.gba", 0x170107, 0x0000039 + +gUnk_08170140:: @ 08170140 + .incbin "baserom.gba", 0x170140, 0x00001BA + +gUnk_081702FA:: @ 081702FA + .incbin "baserom.gba", 0x1702FA, 0x00000F7 + +gUnk_081703F1:: @ 081703F1 + .incbin "baserom.gba", 0x1703F1, 0x0000010 + +gUnk_08170401:: @ 08170401 + .incbin "baserom.gba", 0x170401, 0x000000F + +gUnk_08170410:: @ 08170410 + .incbin "baserom.gba", 0x170410, 0x000000D + +gUnk_0817041D:: @ 0817041D + .incbin "baserom.gba", 0x17041D, 0x0000303 + +gUnk_08170720:: @ 08170720 + .incbin "baserom.gba", 0x170720, 0x0000040 + +gUnk_08170760:: @ 08170760 + .incbin "baserom.gba", 0x170760, 0x0000045 + +gUnk_081707A5:: @ 081707A5 + .incbin "baserom.gba", 0x1707A5, 0x0000061 + +gUnk_08170806:: @ 08170806 + .incbin "baserom.gba", 0x170806, 0x0000108 + +gUnk_0817090E:: @ 0817090E + .incbin "baserom.gba", 0x17090E, 0x00001F1 + +gUnk_08170AFF:: @ 08170AFF + .incbin "baserom.gba", 0x170AFF, 0x0000106 + +gUnk_08170C05:: @ 08170C05 + .incbin "baserom.gba", 0x170C05, 0x00003F0 + +gUnk_08170FF5:: @ 08170FF5 + .incbin "baserom.gba", 0x170FF5, 0x0000012 + +gUnk_08171007:: @ 08171007 + .incbin "baserom.gba", 0x171007, 0x0000045 + +gUnk_0817104C:: @ 0817104C + .incbin "baserom.gba", 0x17104C, 0x000004E + +gUnk_0817109A:: @ 0817109A + .incbin "baserom.gba", 0x17109A, 0x0000068 + +gUnk_08171102:: @ 08171102 + .incbin "baserom.gba", 0x171102, 0x00000E9 + +gUnk_081711EB:: @ 081711EB + .incbin "baserom.gba", 0x1711EB, 0x000001B + +gUnk_08171206:: @ 08171206 + .incbin "baserom.gba", 0x171206, 0x000001B + +gUnk_08171221:: @ 08171221 + .incbin "baserom.gba", 0x171221, 0x00000E4 + +gUnk_08171305:: @ 08171305 + .incbin "baserom.gba", 0x171305, 0x0000149 + +gUnk_0817144E:: @ 0817144E + .incbin "baserom.gba", 0x17144E, 0x00000B3 + +gUnk_08171501:: @ 08171501 + .incbin "baserom.gba", 0x171501, 0x000000E + +gUnk_0817150F:: @ 0817150F + .incbin "baserom.gba", 0x17150F, 0x00000FE + +gUnk_0817160D:: @ 0817160D + .incbin "baserom.gba", 0x17160D, 0x0000014 + +gUnk_08171621:: @ 08171621 + .incbin "baserom.gba", 0x171621, 0x00003F5 + +gUnk_08171A16:: @ 08171A16 + .incbin "baserom.gba", 0x171A16, 0x00000FB + +gUnk_08171B11:: @ 08171B11 + .incbin "baserom.gba", 0x171B11, 0x000010A + +gUnk_08171C1B:: @ 08171C1B + .incbin "baserom.gba", 0x171C1B, 0x000015B + +gUnk_08171D76:: @ 08171D76 + .incbin "baserom.gba", 0x171D76, 0x00000AF + +gUnk_08171E25:: @ 08171E25 + .incbin "baserom.gba", 0x171E25, 0x00000DF + +gUnk_08171F04:: @ 08171F04 + .incbin "baserom.gba", 0x171F04, 0x000001A + +gUnk_08171F1E:: @ 08171F1E + .incbin "baserom.gba", 0x171F1E, 0x0000014 + +gUnk_08171F32:: @ 08171F32 + .incbin "baserom.gba", 0x171F32, 0x00000E5 + +gUnk_08172017:: @ 08172017 + .incbin "baserom.gba", 0x172017, 0x0000009 + +gUnk_08172020:: @ 08172020 + .incbin "baserom.gba", 0x172020, 0x0000001 + +gUnk_08172021:: @ 08172021 + .incbin "baserom.gba", 0x172021, 0x0000001 + +gUnk_08172022:: @ 08172022 + .incbin "baserom.gba", 0x172022, 0x000000B + +gUnk_0817202D:: @ 0817202D + .incbin "baserom.gba", 0x17202D, 0x0000032 + +gUnk_0817205F:: @ 0817205F + .incbin "baserom.gba", 0x17205F, 0x00000BB + +gUnk_0817211A:: @ 0817211A + .incbin "baserom.gba", 0x17211A, 0x000000A + +gUnk_08172124:: @ 08172124 + .incbin "baserom.gba", 0x172124, 0x0000001 + +gUnk_08172125:: @ 08172125 + .incbin "baserom.gba", 0x172125, 0x0000004 + +gUnk_08172129:: @ 08172129 + .incbin "baserom.gba", 0x172129, 0x000000A + +gUnk_08172133:: @ 08172133 + .incbin "baserom.gba", 0x172133, 0x00000F2 + +gUnk_08172225:: @ 08172225 + .incbin "baserom.gba", 0x172225, 0x0000001 + +gUnk_08172226:: @ 08172226 + .incbin "baserom.gba", 0x172226, 0x0000003 + +gUnk_08172229:: @ 08172229 + .incbin "baserom.gba", 0x172229, 0x0000001 + +gUnk_0817222A:: @ 0817222A + .incbin "baserom.gba", 0x17222A, 0x0000017 + +gUnk_08172241:: @ 08172241 + .incbin "baserom.gba", 0x172241, 0x00000DF + +gUnk_08172320:: @ 08172320 + .incbin "baserom.gba", 0x172320, 0x0000008 + +gUnk_08172328:: @ 08172328 + .incbin "baserom.gba", 0x172328, 0x0000206 + +gUnk_0817252E:: @ 0817252E + .incbin "baserom.gba", 0x17252E, 0x00000FE + +gUnk_0817262C:: @ 0817262C + .incbin "baserom.gba", 0x17262C, 0x0000009 + +gUnk_08172635:: @ 08172635 + .incbin "baserom.gba", 0x172635, 0x00000F1 + +gUnk_08172726:: @ 08172726 + .incbin "baserom.gba", 0x172726, 0x0000012 + +gUnk_08172738:: @ 08172738 + .incbin "baserom.gba", 0x172738, 0x00000E7 + +gUnk_0817281F:: @ 0817281F + .incbin "baserom.gba", 0x17281F, 0x0000016 + +gUnk_08172835:: @ 08172835 + .incbin "baserom.gba", 0x172835, 0x0000006 + +gUnk_0817283B:: @ 0817283B + .incbin "baserom.gba", 0x17283B, 0x00000E2 + +gUnk_0817291D:: @ 0817291D + .incbin "baserom.gba", 0x17291D, 0x000001C + +gUnk_08172939:: @ 08172939 + .incbin "baserom.gba", 0x172939, 0x00000EF + +gUnk_08172A28:: @ 08172A28 + .incbin "baserom.gba", 0x172A28, 0x000010F + +gUnk_08172B37:: @ 08172B37 + .incbin "baserom.gba", 0x172B37, 0x0000003 + +gUnk_08172B3A:: @ 08172B3A + .incbin "baserom.gba", 0x172B3A, 0x000051B + +gUnk_08173055:: @ 08173055 + .incbin "baserom.gba", 0x173055, 0x00003E9 + +gUnk_0817343E:: @ 0817343E + .incbin "baserom.gba", 0x17343E, 0x0000327 + +gUnk_08173765:: @ 08173765 + .incbin "baserom.gba", 0x173765, 0x00002C3 + +gUnk_08173A28:: @ 08173A28 + .incbin "baserom.gba", 0x173A28, 0x0000521 + +gUnk_08173F49:: @ 08173F49 + .incbin "baserom.gba", 0x173F49, 0x0000500 + +gUnk_08174449:: @ 08174449 + .incbin "baserom.gba", 0x174449, 0x0000203 + +gUnk_0817464C:: @ 0817464C + .incbin "baserom.gba", 0x17464C, 0x000071E + +gUnk_08174D6A:: @ 08174D6A + .incbin "baserom.gba", 0x174D6A, 0x00005AF + +gUnk_08175319:: @ 08175319 + .incbin "baserom.gba", 0x175319, 0x0002DF4 + +gUnk_0817810D:: @ 0817810D + .incbin "baserom.gba", 0x17810D, 0x000077B + +gUnk_08178888:: @ 08178888 + .incbin "baserom.gba", 0x178888, 0x000262F + +gUnk_0817AEB7:: @ 0817AEB7 + .incbin "baserom.gba", 0x17AEB7, 0x0003060 + +gUnk_0817DF17:: @ 0817DF17 + .incbin "baserom.gba", 0x17DF17, 0x0000028 + +gUnk_0817DF3F:: @ 0817DF3F + .incbin "baserom.gba", 0x17DF3F, 0x00007AE + +gUnk_0817E6ED:: @ 0817E6ED + .incbin "baserom.gba", 0x17E6ED, 0x00001C0 + +gUnk_0817E8AD:: @ 0817E8AD + .incbin "baserom.gba", 0x17E8AD, 0x0000B4D + +gUnk_0817F3FA:: @ 0817F3FA + .incbin "baserom.gba", 0x17F3FA, 0x0000804 + +gUnk_0817FBFE:: @ 0817FBFE + .incbin "baserom.gba", 0x17FBFE, 0x00000CA + +gUnk_0817FCC8:: @ 0817FCC8 + .incbin "baserom.gba", 0x17FCC8, 0x000024B + +gUnk_0817FF13:: @ 0817FF13 + .incbin "baserom.gba", 0x17FF13, 0x0000002 + +gUnk_0817FF15:: @ 0817FF15 + .incbin "baserom.gba", 0x17FF15, 0x00000EB + +gUnk_08180000:: @ 08180000 + .incbin "baserom.gba", 0x180000, 0x0000013 + +gUnk_08180013:: @ 08180013 + .incbin "baserom.gba", 0x180013, 0x000009D + +gUnk_081800B0:: @ 081800B0 + .incbin "baserom.gba", 0x1800B0, 0x0000040 + +gUnk_081800F0:: @ 081800F0 + .incbin "baserom.gba", 0x1800F0, 0x0000009 + +gUnk_081800F9:: @ 081800F9 + .incbin "baserom.gba", 0x1800F9, 0x0000007 + +gUnk_08180100:: @ 08180100 + .incbin "baserom.gba", 0x180100, 0x0000040 + +gUnk_08180140:: @ 08180140 + .incbin "baserom.gba", 0x180140, 0x00000C0 + +gUnk_08180200:: @ 08180200 + .incbin "baserom.gba", 0x180200, 0x000000F + +gUnk_0818020F:: @ 0818020F + .incbin "baserom.gba", 0x18020F, 0x0000097 + +gUnk_081802A6:: @ 081802A6 + .incbin "baserom.gba", 0x1802A6, 0x000009A + +gUnk_08180340:: @ 08180340 + .incbin "baserom.gba", 0x180340, 0x00002A1 + +gUnk_081805E1:: @ 081805E1 + .incbin "baserom.gba", 0x1805E1, 0x000010F + +gUnk_081806F0:: @ 081806F0 + .incbin "baserom.gba", 0x1806F0, 0x00000E0 + +gUnk_081807D0:: @ 081807D0 + .incbin "baserom.gba", 0x1807D0, 0x0000030 + +gUnk_08180800:: @ 08180800 + .incbin "baserom.gba", 0x180800, 0x0000003 + +gUnk_08180803:: @ 08180803 + .incbin "baserom.gba", 0x180803, 0x0000005 + +gUnk_08180808:: @ 08180808 + .incbin "baserom.gba", 0x180808, 0x00002F8 + +gUnk_08180B00:: @ 08180B00 + .incbin "baserom.gba", 0x180B00, 0x0000010 + +gUnk_08180B10:: @ 08180B10 + .incbin "baserom.gba", 0x180B10, 0x00000DF + +gUnk_08180BEF:: @ 08180BEF + .incbin "baserom.gba", 0x180BEF, 0x0000227 + +gUnk_08180E16:: @ 08180E16 + .incbin "baserom.gba", 0x180E16, 0x00001C4 + +gUnk_08180FDA:: @ 08180FDA + .incbin "baserom.gba", 0x180FDA, 0x0000017 + +gUnk_08180FF1:: @ 08180FF1 + .incbin "baserom.gba", 0x180FF1, 0x0000118 + +gUnk_08181109:: @ 08181109 + .incbin "baserom.gba", 0x181109, 0x00000FB + +gUnk_08181204:: @ 08181204 + .incbin "baserom.gba", 0x181204, 0x0000118 + +gUnk_0818131C:: @ 0818131C + .incbin "baserom.gba", 0x18131C, 0x00000FE + +gUnk_0818141A:: @ 0818141A + .incbin "baserom.gba", 0x18141A, 0x00000E1 + +gUnk_081814FB:: @ 081814FB + .incbin "baserom.gba", 0x1814FB, 0x000010A + +gUnk_08181605:: @ 08181605 + .incbin "baserom.gba", 0x181605, 0x0000008 + +gUnk_0818160D:: @ 0818160D + .incbin "baserom.gba", 0x18160D, 0x00000F7 + +gUnk_08181704:: @ 08181704 + .incbin "baserom.gba", 0x181704, 0x0000106 + +gUnk_0818180A:: @ 0818180A + .incbin "baserom.gba", 0x18180A, 0x0000107 + +gUnk_08181911:: @ 08181911 + .incbin "baserom.gba", 0x181911, 0x0000006 + +gUnk_08181917:: @ 08181917 + .incbin "baserom.gba", 0x181917, 0x0000001 + +gUnk_08181918:: @ 08181918 + .incbin "baserom.gba", 0x181918, 0x0000004 + +gUnk_0818191C:: @ 0818191C + .incbin "baserom.gba", 0x18191C, 0x00000B1 + +gUnk_081819CD:: @ 081819CD + .incbin "baserom.gba", 0x1819CD, 0x0000044 + +gUnk_08181A11:: @ 08181A11 + .incbin "baserom.gba", 0x181A11, 0x0000002 + +gUnk_08181A13:: @ 08181A13 + .incbin "baserom.gba", 0x181A13, 0x000000B + +gUnk_08181A1E:: @ 08181A1E + .incbin "baserom.gba", 0x181A1E, 0x00001E2 + +gUnk_08181C00:: @ 08181C00 + .incbin "baserom.gba", 0x181C00, 0x0000014 + +gUnk_08181C14:: @ 08181C14 + .incbin "baserom.gba", 0x181C14, 0x0000111 + +gUnk_08181D25:: @ 08181D25 + .incbin "baserom.gba", 0x181D25, 0x00000F7 + +gUnk_08181E1C:: @ 08181E1C + .incbin "baserom.gba", 0x181E1C, 0x00000FF + +gUnk_08181F1B:: @ 08181F1B + .incbin "baserom.gba", 0x181F1B, 0x00000E5 + +gUnk_08182000:: @ 08182000 + .incbin "baserom.gba", 0x182000, 0x0000019 + +gUnk_08182019:: @ 08182019 + .incbin "baserom.gba", 0x182019, 0x0000003 + +gUnk_0818201C:: @ 0818201C + .incbin "baserom.gba", 0x18201C, 0x0000003 + +gUnk_0818201F:: @ 0818201F + .incbin "baserom.gba", 0x18201F, 0x0000006 + +gUnk_08182025:: @ 08182025 + .incbin "baserom.gba", 0x182025, 0x0000001 + +gUnk_08182026:: @ 08182026 + .incbin "baserom.gba", 0x182026, 0x00000FE + +gUnk_08182124:: @ 08182124 + .incbin "baserom.gba", 0x182124, 0x0000001 + +gUnk_08182125:: @ 08182125 + .incbin "baserom.gba", 0x182125, 0x0000008 + +gUnk_0818212D:: @ 0818212D + .incbin "baserom.gba", 0x18212D, 0x00000F7 + +gUnk_08182224:: @ 08182224 + .incbin "baserom.gba", 0x182224, 0x0000001 + +gUnk_08182225:: @ 08182225 + .incbin "baserom.gba", 0x182225, 0x0000109 + +gUnk_0818232E:: @ 0818232E + .incbin "baserom.gba", 0x18232E, 0x00000DF + +gUnk_0818240D:: @ 0818240D + .incbin "baserom.gba", 0x18240D, 0x000001B + +gUnk_08182428:: @ 08182428 + .incbin "baserom.gba", 0x182428, 0x0000002 + +gUnk_0818242A:: @ 0818242A + .incbin "baserom.gba", 0x18242A, 0x0000104 + +gUnk_0818252E:: @ 0818252E + .incbin "baserom.gba", 0x18252E, 0x0000001 + +gUnk_0818252F:: @ 0818252F + .incbin "baserom.gba", 0x18252F, 0x0000004 + +gUnk_08182533:: @ 08182533 + .incbin "baserom.gba", 0x182533, 0x0000002 + +gUnk_08182535:: @ 08182535 + .incbin "baserom.gba", 0x182535, 0x00000E5 + +gUnk_0818261A:: @ 0818261A + .incbin "baserom.gba", 0x18261A, 0x0000014 + +gUnk_0818262E:: @ 0818262E + .incbin "baserom.gba", 0x18262E, 0x000000E + +gUnk_0818263C:: @ 0818263C + .incbin "baserom.gba", 0x18263C, 0x00000ED + +gUnk_08182729:: @ 08182729 + .incbin "baserom.gba", 0x182729, 0x00000D7 + +gUnk_08182800:: @ 08182800 + .incbin "baserom.gba", 0x182800, 0x0000230 + +gUnk_08182A30:: @ 08182A30 + .incbin "baserom.gba", 0x182A30, 0x000000B + +gUnk_08182A3B:: @ 08182A3B + .incbin "baserom.gba", 0x182A3B, 0x00002F5 + +gUnk_08182D30:: @ 08182D30 + .incbin "baserom.gba", 0x182D30, 0x000000F + +gUnk_08182D3F:: @ 08182D3F + .incbin "baserom.gba", 0x182D3F, 0x00000D7 + +gUnk_08182E16:: @ 08182E16 + .incbin "baserom.gba", 0x182E16, 0x000001E + +gUnk_08182E34:: @ 08182E34 + .incbin "baserom.gba", 0x182E34, 0x0000008 + +gUnk_08182E3C:: @ 08182E3C + .incbin "baserom.gba", 0x182E3C, 0x0000244 + +gUnk_08183080:: @ 08183080 + .incbin "baserom.gba", 0x183080, 0x00000CB + +gUnk_0818314B:: @ 0818314B + .incbin "baserom.gba", 0x18314B, 0x0000AB5 + +gUnk_08183C00:: @ 08183C00 + .incbin "baserom.gba", 0x183C00, 0x0000060 + +gUnk_08183C60:: @ 08183C60 + .incbin "baserom.gba", 0x183C60, 0x0001AA1 + +gUnk_08185701:: @ 08185701 + .incbin "baserom.gba", 0x185701, 0x0002900 + +gUnk_08188001:: @ 08188001 + .incbin "baserom.gba", 0x188001, 0x00049FD + +gUnk_0818C9FE:: @ 0818C9FE + .incbin "baserom.gba", 0x18C9FE, 0x0001221 + +gUnk_0818DC1F:: @ 0818DC1F + .incbin "baserom.gba", 0x18DC1F, 0x00001E2 + +gUnk_0818DE01:: @ 0818DE01 + .incbin "baserom.gba", 0x18DE01, 0x000019B + +gUnk_0818DF9C:: @ 0818DF9C + .incbin "baserom.gba", 0x18DF9C, 0x000115D + +gUnk_0818F0F9:: @ 0818F0F9 + .incbin "baserom.gba", 0x18F0F9, 0x0000140 + +gUnk_0818F239:: @ 0818F239 + .incbin "baserom.gba", 0x18F239, 0x00004DA + +gUnk_0818F713:: @ 0818F713 + .incbin "baserom.gba", 0x18F713, 0x00000EB + +gUnk_0818F7FE:: @ 0818F7FE + .incbin "baserom.gba", 0x18F7FE, 0x0000002 + +gUnk_0818F800:: @ 0818F800 + .incbin "baserom.gba", 0x18F800, 0x00000B8 + +gUnk_0818F8B8:: @ 0818F8B8 + .incbin "baserom.gba", 0x18F8B8, 0x0000424 + +gUnk_0818FCDC:: @ 0818FCDC + .incbin "baserom.gba", 0x18FCDC, 0x0000324 + +gUnk_08190000:: @ 08190000 + .incbin "baserom.gba", 0x190000, 0x0000001 + +gUnk_08190001:: @ 08190001 + .incbin "baserom.gba", 0x190001, 0x000000B + +gUnk_0819000C:: @ 0819000C + .incbin "baserom.gba", 0x19000C, 0x0000109 + +gUnk_08190115:: @ 08190115 + .incbin "baserom.gba", 0x190115, 0x00000D7 + +gUnk_081901EC:: @ 081901EC + .incbin "baserom.gba", 0x1901EC, 0x0000016 + +gUnk_08190202:: @ 08190202 + .incbin "baserom.gba", 0x190202, 0x000012D + +gUnk_0819032F:: @ 0819032F + .incbin "baserom.gba", 0x19032F, 0x00000D1 + +gUnk_08190400:: @ 08190400 + .incbin "baserom.gba", 0x190400, 0x0000080 + +gUnk_08190480:: @ 08190480 + .incbin "baserom.gba", 0x190480, 0x0000080 + +gUnk_08190500:: @ 08190500 + .incbin "baserom.gba", 0x190500, 0x000010D + +gUnk_0819060D:: @ 0819060D + .incbin "baserom.gba", 0x19060D, 0x0000200 + +gUnk_0819080D:: @ 0819080D + .incbin "baserom.gba", 0x19080D, 0x0000104 + +gUnk_08190911:: @ 08190911 + .incbin "baserom.gba", 0x190911, 0x00000DE + +gUnk_081909EF:: @ 081909EF + .incbin "baserom.gba", 0x1909EF, 0x00003F7 + +gUnk_08190DE6:: @ 08190DE6 + .incbin "baserom.gba", 0x190DE6, 0x0000021 + +gUnk_08190E07:: @ 08190E07 + .incbin "baserom.gba", 0x190E07, 0x000000C + +gUnk_08190E13:: @ 08190E13 + .incbin "baserom.gba", 0x190E13, 0x00000CF + +gUnk_08190EE2:: @ 08190EE2 + .incbin "baserom.gba", 0x190EE2, 0x0000034 + +gUnk_08190F16:: @ 08190F16 + .incbin "baserom.gba", 0x190F16, 0x00000E0 + +gUnk_08190FF6:: @ 08190FF6 + .incbin "baserom.gba", 0x190FF6, 0x0000062 + +gUnk_08191058:: @ 08191058 + .incbin "baserom.gba", 0x191058, 0x00000B6 + +gUnk_0819110E:: @ 0819110E + .incbin "baserom.gba", 0x19110E, 0x00000F3 + +gUnk_08191201:: @ 08191201 + .incbin "baserom.gba", 0x191201, 0x0000105 + +gUnk_08191306:: @ 08191306 + .incbin "baserom.gba", 0x191306, 0x000010C + +gUnk_08191412:: @ 08191412 + .incbin "baserom.gba", 0x191412, 0x0000006 + +gUnk_08191418:: @ 08191418 + .incbin "baserom.gba", 0x191418, 0x00000FE + +gUnk_08191516:: @ 08191516 + .incbin "baserom.gba", 0x191516, 0x00001D5 + +gUnk_081916EB:: @ 081916EB + .incbin "baserom.gba", 0x1916EB, 0x0000030 + +gUnk_0819171B:: @ 0819171B + .incbin "baserom.gba", 0x19171B, 0x0000001 + +gUnk_0819171C:: @ 0819171C + .incbin "baserom.gba", 0x19171C, 0x00001F3 + +gUnk_0819190F:: @ 0819190F + .incbin "baserom.gba", 0x19190F, 0x0000306 + +gUnk_08191C15:: @ 08191C15 + .incbin "baserom.gba", 0x191C15, 0x00000FA + +gUnk_08191D0F:: @ 08191D0F + .incbin "baserom.gba", 0x191D0F, 0x000000D + +gUnk_08191D1C:: @ 08191D1C + .incbin "baserom.gba", 0x191D1C, 0x0000001 + +gUnk_08191D1D:: @ 08191D1D + .incbin "baserom.gba", 0x191D1D, 0x00000FA + +gUnk_08191E17:: @ 08191E17 + .incbin "baserom.gba", 0x191E17, 0x00000F9 + +gUnk_08191F10:: @ 08191F10 + .incbin "baserom.gba", 0x191F10, 0x0000103 + +gUnk_08192013:: @ 08192013 + .incbin "baserom.gba", 0x192013, 0x000010D + +gUnk_08192120:: @ 08192120 + .incbin "baserom.gba", 0x192120, 0x0000009 + +gUnk_08192129:: @ 08192129 + .incbin "baserom.gba", 0x192129, 0x00000F8 + +gUnk_08192221:: @ 08192221 + .incbin "baserom.gba", 0x192221, 0x0000008 + +gUnk_08192229:: @ 08192229 + .incbin "baserom.gba", 0x192229, 0x000010B + +gUnk_08192334:: @ 08192334 + .incbin "baserom.gba", 0x192334, 0x00000AF + +gUnk_081923E3:: @ 081923E3 + .incbin "baserom.gba", 0x1923E3, 0x000003D + +gUnk_08192420:: @ 08192420 + .incbin "baserom.gba", 0x192420, 0x0000009 + +gUnk_08192429:: @ 08192429 + .incbin "baserom.gba", 0x192429, 0x0000001 + +gUnk_0819242A:: @ 0819242A + .incbin "baserom.gba", 0x19242A, 0x0000001 + +gUnk_0819242B:: @ 0819242B + .incbin "baserom.gba", 0x19242B, 0x00000E0 + +gUnk_0819250B:: @ 0819250B + .incbin "baserom.gba", 0x19250B, 0x0000005 + +gUnk_08192510:: @ 08192510 + .incbin "baserom.gba", 0x192510, 0x0000018 + +gUnk_08192528:: @ 08192528 + .incbin "baserom.gba", 0x192528, 0x0000012 + +gUnk_0819253A:: @ 0819253A + .incbin "baserom.gba", 0x19253A, 0x00000E9 + +gUnk_08192623:: @ 08192623 + .incbin "baserom.gba", 0x192623, 0x000000B + +gUnk_0819262E:: @ 0819262E + .incbin "baserom.gba", 0x19262E, 0x0000001 + +gUnk_0819262F:: @ 0819262F + .incbin "baserom.gba", 0x19262F, 0x0000204 + +gUnk_08192833:: @ 08192833 + .incbin "baserom.gba", 0x192833, 0x00000F8 + +gUnk_0819292B:: @ 0819292B + .incbin "baserom.gba", 0x19292B, 0x000000D + +gUnk_08192938:: @ 08192938 + .incbin "baserom.gba", 0x192938, 0x0000106 + +gUnk_08192A3E:: @ 08192A3E + .incbin "baserom.gba", 0x192A3E, 0x00000E1 + +gUnk_08192B1F:: @ 08192B1F + .incbin "baserom.gba", 0x192B1F, 0x000021C + +gUnk_08192D3B:: @ 08192D3B + .incbin "baserom.gba", 0x192D3B, 0x0000008 + +gUnk_08192D43:: @ 08192D43 + .incbin "baserom.gba", 0x192D43, 0x00000FC + +gUnk_08192E3F:: @ 08192E3F + .incbin "baserom.gba", 0x192E3F, 0x00000DB + +gUnk_08192F1A:: @ 08192F1A + .incbin "baserom.gba", 0x192F1A, 0x0000031 + +gUnk_08192F4B:: @ 08192F4B + .incbin "baserom.gba", 0x192F4B, 0x00000E3 + +gUnk_0819302E:: @ 0819302E + .incbin "baserom.gba", 0x19302E, 0x000000D + +gUnk_0819303B:: @ 0819303B + .incbin "baserom.gba", 0x19303B, 0x0000114 + +gUnk_0819314F:: @ 0819314F + .incbin "baserom.gba", 0x19314F, 0x00000F3 + +gUnk_08193242:: @ 08193242 + .incbin "baserom.gba", 0x193242, 0x00005E0 + +gUnk_08193822:: @ 08193822 + .incbin "baserom.gba", 0x193822, 0x0000125 + +gUnk_08193947:: @ 08193947 + .incbin "baserom.gba", 0x193947, 0x0000598 + +gUnk_08193EDF:: @ 08193EDF + .incbin "baserom.gba", 0x193EDF, 0x0000153 + +gUnk_08194032:: @ 08194032 + .incbin "baserom.gba", 0x194032, 0x0000D0F + +gUnk_08194D41:: @ 08194D41 + .incbin "baserom.gba", 0x194D41, 0x0003720 + +gUnk_08198461:: @ 08198461 + .incbin "baserom.gba", 0x198461, 0x00031B2 + +gUnk_0819B613:: @ 0819B613 + .incbin "baserom.gba", 0x19B613, 0x00004ED + +gUnk_0819BB00:: @ 0819BB00 + .incbin "baserom.gba", 0x19BB00, 0x0001C11 + +gUnk_0819D711:: @ 0819D711 + .incbin "baserom.gba", 0x19D711, 0x00011DA + +gUnk_0819E8EB:: @ 0819E8EB + .incbin "baserom.gba", 0x19E8EB, 0x0000CE4 + +gUnk_0819F5CF:: @ 0819F5CF + .incbin "baserom.gba", 0x19F5CF, 0x0000035 + +gUnk_0819F604:: @ 0819F604 + .incbin "baserom.gba", 0x19F604, 0x00000ED + +gUnk_0819F6F1:: @ 0819F6F1 + .incbin "baserom.gba", 0x19F6F1, 0x0000610 + +gUnk_0819FD01:: @ 0819FD01 + .incbin "baserom.gba", 0x19FD01, 0x0000116 + +gUnk_0819FE17:: @ 0819FE17 + .incbin "baserom.gba", 0x19FE17, 0x00001E9 + +gUnk_081A0000:: @ 081A0000 + .incbin "baserom.gba", 0x1A0000, 0x0000040 + +gUnk_081A0040:: @ 081A0040 + .incbin "baserom.gba", 0x1A0040, 0x0000061 + +gUnk_081A00A1:: @ 081A00A1 + .incbin "baserom.gba", 0x1A00A1, 0x000003E + +gUnk_081A00DF:: @ 081A00DF + .incbin "baserom.gba", 0x1A00DF, 0x0000021 + +gUnk_081A0100:: @ 081A0100 + .incbin "baserom.gba", 0x1A0100, 0x00001ED + +gUnk_081A02ED:: @ 081A02ED + .incbin "baserom.gba", 0x1A02ED, 0x000008B + +gUnk_081A0378:: @ 081A0378 + .incbin "baserom.gba", 0x1A0378, 0x00000A1 + +gUnk_081A0419:: @ 081A0419 + .incbin "baserom.gba", 0x1A0419, 0x0000040 + +gUnk_081A0459:: @ 081A0459 + .incbin "baserom.gba", 0x1A0459, 0x0000096 + +gUnk_081A04EF:: @ 081A04EF + .incbin "baserom.gba", 0x1A04EF, 0x000031A + +gUnk_081A0809:: @ 081A0809 + .incbin "baserom.gba", 0x1A0809, 0x0000010 + +gUnk_081A0819:: @ 081A0819 + .incbin "baserom.gba", 0x1A0819, 0x00003EF + +gUnk_081A0C08:: @ 081A0C08 + .incbin "baserom.gba", 0x1A0C08, 0x000010B + +gUnk_081A0D13:: @ 081A0D13 + .incbin "baserom.gba", 0x1A0D13, 0x00003D2 + +gUnk_081A10E5:: @ 081A10E5 + .incbin "baserom.gba", 0x1A10E5, 0x000011D + +gUnk_081A1202:: @ 081A1202 + .incbin "baserom.gba", 0x1A1202, 0x0000002 + +gUnk_081A1204:: @ 081A1204 + .incbin "baserom.gba", 0x1A1204, 0x000000A + +gUnk_081A120E:: @ 081A120E + .incbin "baserom.gba", 0x1A120E, 0x000020D + +gUnk_081A141B:: @ 081A141B + .incbin "baserom.gba", 0x1A141B, 0x000003B + +gUnk_081A1456:: @ 081A1456 + .incbin "baserom.gba", 0x1A1456, 0x00001B8 + +gUnk_081A160E:: @ 081A160E + .incbin "baserom.gba", 0x1A160E, 0x0000208 + +gUnk_081A1816:: @ 081A1816 + .incbin "baserom.gba", 0x1A1816, 0x00000EE + +gUnk_081A1904:: @ 081A1904 + .incbin "baserom.gba", 0x1A1904, 0x00001D4 + +gUnk_081A1AD8:: @ 081A1AD8 + .incbin "baserom.gba", 0x1A1AD8, 0x0000041 + +gUnk_081A1B19:: @ 081A1B19 + .incbin "baserom.gba", 0x1A1B19, 0x00001F5 + +gUnk_081A1D0E:: @ 081A1D0E + .incbin "baserom.gba", 0x1A1D0E, 0x00000F8 + +gUnk_081A1E06:: @ 081A1E06 + .incbin "baserom.gba", 0x1A1E06, 0x000000F + +gUnk_081A1E15:: @ 081A1E15 + .incbin "baserom.gba", 0x1A1E15, 0x00000FE + +gUnk_081A1F13:: @ 081A1F13 + .incbin "baserom.gba", 0x1A1F13, 0x00002F4 + +gUnk_081A2207:: @ 081A2207 + .incbin "baserom.gba", 0x1A2207, 0x000001E + +gUnk_081A2225:: @ 081A2225 + .incbin "baserom.gba", 0x1A2225, 0x00000E8 + +gUnk_081A230D:: @ 081A230D + .incbin "baserom.gba", 0x1A230D, 0x0000001 + +gUnk_081A230E:: @ 081A230E + .incbin "baserom.gba", 0x1A230E, 0x0000011 + +gUnk_081A231F:: @ 081A231F + .incbin "baserom.gba", 0x1A231F, 0x00001FB + +gUnk_081A251A:: @ 081A251A + .incbin "baserom.gba", 0x1A251A, 0x000000B + +gUnk_081A2525:: @ 081A2525 + .incbin "baserom.gba", 0x1A2525, 0x0000003 + +gUnk_081A2528:: @ 081A2528 + .incbin "baserom.gba", 0x1A2528, 0x000010D + +gUnk_081A2635:: @ 081A2635 + .incbin "baserom.gba", 0x1A2635, 0x00000F7 + +gUnk_081A272C:: @ 081A272C + .incbin "baserom.gba", 0x1A272C, 0x00000DE + +gUnk_081A280A:: @ 081A280A + .incbin "baserom.gba", 0x1A280A, 0x000001B + +gUnk_081A2825:: @ 081A2825 + .incbin "baserom.gba", 0x1A2825, 0x00000F8 + +gUnk_081A291D:: @ 081A291D + .incbin "baserom.gba", 0x1A291D, 0x0000010 + +gUnk_081A292D:: @ 081A292D + .incbin "baserom.gba", 0x1A292D, 0x0000002 + +gUnk_081A292F:: @ 081A292F + .incbin "baserom.gba", 0x1A292F, 0x0000002 + +gUnk_081A2931:: @ 081A2931 + .incbin "baserom.gba", 0x1A2931, 0x00000FA + +gUnk_081A2A2B:: @ 081A2A2B + .incbin "baserom.gba", 0x1A2A2B, 0x0000007 + +gUnk_081A2A32:: @ 081A2A32 + .incbin "baserom.gba", 0x1A2A32, 0x000000A + +gUnk_081A2A3C:: @ 081A2A3C + .incbin "baserom.gba", 0x1A2A3C, 0x00001D8 + +gUnk_081A2C14:: @ 081A2C14 + .incbin "baserom.gba", 0x1A2C14, 0x000052D + +gUnk_081A3141:: @ 081A3141 + .incbin "baserom.gba", 0x1A3141, 0x0000007 + +gUnk_081A3148:: @ 081A3148 + .incbin "baserom.gba", 0x1A3148, 0x0000002 + +gUnk_081A314A:: @ 081A314A + .incbin "baserom.gba", 0x1A314A, 0x00005FF + +gUnk_081A3749:: @ 081A3749 + .incbin "baserom.gba", 0x1A3749, 0x00000BA + +gUnk_081A3803:: @ 081A3803 + .incbin "baserom.gba", 0x1A3803, 0x000012A + +gUnk_081A392D:: @ 081A392D + .incbin "baserom.gba", 0x1A392D, 0x00007D7 + +gUnk_081A4104:: @ 081A4104 + .incbin "baserom.gba", 0x1A4104, 0x0000D46 + +gUnk_081A4E4A:: @ 081A4E4A + .incbin "baserom.gba", 0x1A4E4A, 0x0009FA9 + +gUnk_081AEDF3:: @ 081AEDF3 + .incbin "baserom.gba", 0x1AEDF3, 0x00000F5 + +gUnk_081AEEE8:: @ 081AEEE8 + .incbin "baserom.gba", 0x1AEEE8, 0x000022B + +gUnk_081AF113:: @ 081AF113 + .incbin "baserom.gba", 0x1AF113, 0x00001F4 + +gUnk_081AF307:: @ 081AF307 + .incbin "baserom.gba", 0x1AF307, 0x00008DE + +gUnk_081AFBE5:: @ 081AFBE5 + .incbin "baserom.gba", 0x1AFBE5, 0x0000319 + +gUnk_081AFEFE:: @ 081AFEFE + .incbin "baserom.gba", 0x1AFEFE, 0x00000DF + +gUnk_081AFFDD:: @ 081AFFDD + .incbin "baserom.gba", 0x1AFFDD, 0x000002B + +gUnk_081B0008:: @ 081B0008 + .incbin "baserom.gba", 0x1B0008, 0x00000E2 + +gUnk_081B00EA:: @ 081B00EA + .incbin "baserom.gba", 0x1B00EA, 0x0000004 + +gUnk_081B00EE:: @ 081B00EE + .incbin "baserom.gba", 0x1B00EE, 0x00000FB + +gUnk_081B01E9:: @ 081B01E9 + .incbin "baserom.gba", 0x1B01E9, 0x0000270 + +gUnk_081B0459:: @ 081B0459 + .incbin "baserom.gba", 0x1B0459, 0x00000A7 + +gUnk_081B0500:: @ 081B0500 + .incbin "baserom.gba", 0x1B0500, 0x0000103 + +gUnk_081B0603:: @ 081B0603 + .incbin "baserom.gba", 0x1B0603, 0x0000207 + +gUnk_081B080A:: @ 081B080A + .incbin "baserom.gba", 0x1B080A, 0x00002DE + +gUnk_081B0AE8:: @ 081B0AE8 + .incbin "baserom.gba", 0x1B0AE8, 0x0000133 + +gUnk_081B0C1B:: @ 081B0C1B + .incbin "baserom.gba", 0x1B0C1B, 0x00003D3 + +gUnk_081B0FEE:: @ 081B0FEE + .incbin "baserom.gba", 0x1B0FEE, 0x000032A + +gUnk_081B1318:: @ 081B1318 + .incbin "baserom.gba", 0x1B1318, 0x00000B4 + +gUnk_081B13CC:: @ 081B13CC + .incbin "baserom.gba", 0x1B13CC, 0x0000022 + +gUnk_081B13EE:: @ 081B13EE + .incbin "baserom.gba", 0x1B13EE, 0x000002E + +gUnk_081B141C:: @ 081B141C + .incbin "baserom.gba", 0x1B141C, 0x00000EC + +gUnk_081B1508:: @ 081B1508 + .incbin "baserom.gba", 0x1B1508, 0x000030D + +gUnk_081B1815:: @ 081B1815 + .incbin "baserom.gba", 0x1B1815, 0x00001F2 + +gUnk_081B1A07:: @ 081B1A07 + .incbin "baserom.gba", 0x1B1A07, 0x00001F9 + +gUnk_081B1C00:: @ 081B1C00 + .incbin "baserom.gba", 0x1B1C00, 0x0000005 + +gUnk_081B1C05:: @ 081B1C05 + .incbin "baserom.gba", 0x1B1C05, 0x000040C + +gUnk_081B2011:: @ 081B2011 + .incbin "baserom.gba", 0x1B2011, 0x0000012 + +gUnk_081B2023:: @ 081B2023 + .incbin "baserom.gba", 0x1B2023, 0x0000112 + +gUnk_081B2135:: @ 081B2135 + .incbin "baserom.gba", 0x1B2135, 0x00000FA + +gUnk_081B222F:: @ 081B222F + .incbin "baserom.gba", 0x1B222F, 0x00000ED + +gUnk_081B231C:: @ 081B231C + .incbin "baserom.gba", 0x1B231C, 0x0000103 + +gUnk_081B241F:: @ 081B241F + .incbin "baserom.gba", 0x1B241F, 0x0000116 + +gUnk_081B2535:: @ 081B2535 + .incbin "baserom.gba", 0x1B2535, 0x00000EC + +gUnk_081B2621:: @ 081B2621 + .incbin "baserom.gba", 0x1B2621, 0x000000E + +gUnk_081B262F:: @ 081B262F + .incbin "baserom.gba", 0x1B262F, 0x00000F6 + +gUnk_081B2725:: @ 081B2725 + .incbin "baserom.gba", 0x1B2725, 0x0000005 + +gUnk_081B272A:: @ 081B272A + .incbin "baserom.gba", 0x1B272A, 0x00000F8 + +gUnk_081B2822:: @ 081B2822 + .incbin "baserom.gba", 0x1B2822, 0x0000007 + +gUnk_081B2829:: @ 081B2829 + .incbin "baserom.gba", 0x1B2829, 0x0000108 + +gUnk_081B2931:: @ 081B2931 + .incbin "baserom.gba", 0x1B2931, 0x000000A + +gUnk_081B293B:: @ 081B293B + .incbin "baserom.gba", 0x1B293B, 0x00000E9 + +gUnk_081B2A24:: @ 081B2A24 + .incbin "baserom.gba", 0x1B2A24, 0x0000016 + +gUnk_081B2A3A:: @ 081B2A3A + .incbin "baserom.gba", 0x1B2A3A, 0x0000010 + +gUnk_081B2A4A:: @ 081B2A4A + .incbin "baserom.gba", 0x1B2A4A, 0x00006EB + +gUnk_081B3135:: @ 081B3135 + .incbin "baserom.gba", 0x1B3135, 0x0000010 + +gUnk_081B3145:: @ 081B3145 + .incbin "baserom.gba", 0x1B3145, 0x0000207 + +gUnk_081B334C:: @ 081B334C + .incbin "baserom.gba", 0x1B334C, 0x00004FC + +gUnk_081B3848:: @ 081B3848 + .incbin "baserom.gba", 0x1B3848, 0x0001DC7 + +gUnk_081B560F:: @ 081B560F + .incbin "baserom.gba", 0x1B560F, 0x0000D6D + +gUnk_081B637C:: @ 081B637C + .incbin "baserom.gba", 0x1B637C, 0x00048CF + +gUnk_081BAC4B:: @ 081BAC4B + .incbin "baserom.gba", 0x1BAC4B, 0x000078F + +gUnk_081BB3DA:: @ 081BB3DA + .incbin "baserom.gba", 0x1BB3DA, 0x000371E + +gUnk_081BEAF8:: @ 081BEAF8 + .incbin "baserom.gba", 0x1BEAF8, 0x0000316 + +gUnk_081BEE0E:: @ 081BEE0E + .incbin "baserom.gba", 0x1BEE0E, 0x0000DB6 + +gUnk_081BFBC4:: @ 081BFBC4 + .incbin "baserom.gba", 0x1BFBC4, 0x0000457 + +gUnk_081C001B:: @ 081C001B + .incbin "baserom.gba", 0x1C001B, 0x0000100 + +gUnk_081C011B:: @ 081C011B + .incbin "baserom.gba", 0x1C011B, 0x00000E5 + +gUnk_081C0200:: @ 081C0200 + .incbin "baserom.gba", 0x1C0200, 0x000061B + +gUnk_081C081B:: @ 081C081B + .incbin "baserom.gba", 0x1C081B, 0x00002E5 + +gUnk_081C0B00:: @ 081C0B00 + .incbin "baserom.gba", 0x1C0B00, 0x00002FA + +gUnk_081C0DFA:: @ 081C0DFA + .incbin "baserom.gba", 0x1C0DFA, 0x0000339 + +gUnk_081C1133:: @ 081C1133 + .incbin "baserom.gba", 0x1C1133, 0x00000CD + +gUnk_081C1200:: @ 081C1200 + .incbin "baserom.gba", 0x1C1200, 0x0000301 + +gUnk_081C1501:: @ 081C1501 + .incbin "baserom.gba", 0x1C1501, 0x000000A + +gUnk_081C150B:: @ 081C150B + .incbin "baserom.gba", 0x1C150B, 0x00000D3 + +gUnk_081C15DE:: @ 081C15DE + .incbin "baserom.gba", 0x1C15DE, 0x000002E + +gUnk_081C160C:: @ 081C160C + .incbin "baserom.gba", 0x1C160C, 0x0000006 + +gUnk_081C1612:: @ 081C1612 + .incbin "baserom.gba", 0x1C1612, 0x0000026 + +gUnk_081C1638:: @ 081C1638 + .incbin "baserom.gba", 0x1C1638, 0x00000E5 + +gUnk_081C171D:: @ 081C171D + .incbin "baserom.gba", 0x1C171D, 0x00000E5 + +gUnk_081C1802:: @ 081C1802 + .incbin "baserom.gba", 0x1C1802, 0x00001DB + +gUnk_081C19DD:: @ 081C19DD + .incbin "baserom.gba", 0x1C19DD, 0x0000123 + +gUnk_081C1B00:: @ 081C1B00 + .incbin "baserom.gba", 0x1C1B00, 0x0000221 + +gUnk_081C1D21:: @ 081C1D21 + .incbin "baserom.gba", 0x1C1D21, 0x0000006 + +gUnk_081C1D27:: @ 081C1D27 + .incbin "baserom.gba", 0x1C1D27, 0x00000DD + +gUnk_081C1E04:: @ 081C1E04 + .incbin "baserom.gba", 0x1C1E04, 0x0000001 + +gUnk_081C1E05:: @ 081C1E05 + .incbin "baserom.gba", 0x1C1E05, 0x0000112 + +gUnk_081C1F17:: @ 081C1F17 + .incbin "baserom.gba", 0x1C1F17, 0x0000001 + +gUnk_081C1F18:: @ 081C1F18 + .incbin "baserom.gba", 0x1C1F18, 0x000010B + +gUnk_081C2023:: @ 081C2023 + .incbin "baserom.gba", 0x1C2023, 0x000001B + +gUnk_081C203E:: @ 081C203E + .incbin "baserom.gba", 0x1C203E, 0x00000E4 + +gUnk_081C2122:: @ 081C2122 + .incbin "baserom.gba", 0x1C2122, 0x0000005 + +gUnk_081C2127:: @ 081C2127 + .incbin "baserom.gba", 0x1C2127, 0x00000E4 + +gUnk_081C220B:: @ 081C220B + .incbin "baserom.gba", 0x1C220B, 0x0000220 + +gUnk_081C242B:: @ 081C242B + .incbin "baserom.gba", 0x1C242B, 0x00000EE + +gUnk_081C2519:: @ 081C2519 + .incbin "baserom.gba", 0x1C2519, 0x000000F + +gUnk_081C2528:: @ 081C2528 + .incbin "baserom.gba", 0x1C2528, 0x00001FC + +gUnk_081C2724:: @ 081C2724 + .incbin "baserom.gba", 0x1C2724, 0x000000A + +gUnk_081C272E:: @ 081C272E + .incbin "baserom.gba", 0x1C272E, 0x00003FE + +gUnk_081C2B2C:: @ 081C2B2C + .incbin "baserom.gba", 0x1C2B2C, 0x0000006 + +gUnk_081C2B32:: @ 081C2B32 + .incbin "baserom.gba", 0x1C2B32, 0x00000F9 + +gUnk_081C2C2B:: @ 081C2C2B + .incbin "baserom.gba", 0x1C2C2B, 0x0000004 + +gUnk_081C2C2F:: @ 081C2C2F + .incbin "baserom.gba", 0x1C2C2F, 0x0000207 + +gUnk_081C2E36:: @ 081C2E36 + .incbin "baserom.gba", 0x1C2E36, 0x0000108 + +gUnk_081C2F3E:: @ 081C2F3E + .incbin "baserom.gba", 0x1C2F3E, 0x0000001 + +gUnk_081C2F3F:: @ 081C2F3F + .incbin "baserom.gba", 0x1C2F3F, 0x00000E4 + +gUnk_081C3023:: @ 081C3023 + .incbin "baserom.gba", 0x1C3023, 0x0000122 + +gUnk_081C3145:: @ 081C3145 + .incbin "baserom.gba", 0x1C3145, 0x0000102 + +gUnk_081C3247:: @ 081C3247 + .incbin "baserom.gba", 0x1C3247, 0x00000E5 + +gUnk_081C332C:: @ 081C332C + .incbin "baserom.gba", 0x1C332C, 0x000010E + +gUnk_081C343A:: @ 081C343A + .incbin "baserom.gba", 0x1C343A, 0x000010C + +gUnk_081C3546:: @ 081C3546 + .incbin "baserom.gba", 0x1C3546, 0x00004EF + +gUnk_081C3A35:: @ 081C3A35 + .incbin "baserom.gba", 0x1C3A35, 0x00005BF + +gUnk_081C3FF4:: @ 081C3FF4 + .incbin "baserom.gba", 0x1C3FF4, 0x0000162 + +gUnk_081C4156:: @ 081C4156 + .incbin "baserom.gba", 0x1C4156, 0x00002FE + +gUnk_081C4454:: @ 081C4454 + .incbin "baserom.gba", 0x1C4454, 0x0000BB3 + +gUnk_081C5007:: @ 081C5007 + .incbin "baserom.gba", 0x1C5007, 0x0000477 + +gUnk_081C547E:: @ 081C547E + .incbin "baserom.gba", 0x1C547E, 0x00020ED + +gUnk_081C756B:: @ 081C756B + .incbin "baserom.gba", 0x1C756B, 0x000149D + +gUnk_081C8A08:: @ 081C8A08 + .incbin "baserom.gba", 0x1C8A08, 0x000026C + +gUnk_081C8C74:: @ 081C8C74 + .incbin "baserom.gba", 0x1C8C74, 0x000573D + +gUnk_081CE3B1:: @ 081CE3B1 + .incbin "baserom.gba", 0x1CE3B1, 0x000003D + +gUnk_081CE3EE:: @ 081CE3EE + .incbin "baserom.gba", 0x1CE3EE, 0x0000DFE + +gUnk_081CF1EC:: @ 081CF1EC + .incbin "baserom.gba", 0x1CF1EC, 0x00002F9 + +gUnk_081CF4E5:: @ 081CF4E5 + .incbin "baserom.gba", 0x1CF4E5, 0x0000333 + +gUnk_081CF818:: @ 081CF818 + .incbin "baserom.gba", 0x1CF818, 0x0000008 + +gUnk_081CF820:: @ 081CF820 + .incbin "baserom.gba", 0x1CF820, 0x00007B1 + +gUnk_081CFFD1:: @ 081CFFD1 + .incbin "baserom.gba", 0x1CFFD1, 0x000002F + +gUnk_081D0000:: @ 081D0000 + .incbin "baserom.gba", 0x1D0000, 0x0000001 + +gUnk_081D0001:: @ 081D0001 + .incbin "baserom.gba", 0x1D0001, 0x0000006 + +gUnk_081D0007:: @ 081D0007 + .incbin "baserom.gba", 0x1D0007, 0x0000009 + +gUnk_081D0010:: @ 081D0010 + .incbin "baserom.gba", 0x1D0010, 0x000000A + +gUnk_081D001A:: @ 081D001A + .incbin "baserom.gba", 0x1D001A, 0x000001A + +gUnk_081D0034:: @ 081D0034 + .incbin "baserom.gba", 0x1D0034, 0x00000E0 + +gUnk_081D0114:: @ 081D0114 + .incbin "baserom.gba", 0x1D0114, 0x0000174 + +gUnk_081D0288:: @ 081D0288 + .incbin "baserom.gba", 0x1D0288, 0x0000179 + +gUnk_081D0401:: @ 081D0401 + .incbin "baserom.gba", 0x1D0401, 0x0000042 + +gUnk_081D0443:: @ 081D0443 + .incbin "baserom.gba", 0x1D0443, 0x00001BE + +gUnk_081D0601:: @ 081D0601 + .incbin "baserom.gba", 0x1D0601, 0x0000205 + +gUnk_081D0806:: @ 081D0806 + .incbin "baserom.gba", 0x1D0806, 0x0000303 + +gUnk_081D0B09:: @ 081D0B09 + .incbin "baserom.gba", 0x1D0B09, 0x00003FF + +gUnk_081D0F08:: @ 081D0F08 + .incbin "baserom.gba", 0x1D0F08, 0x000001E + +gUnk_081D0F26:: @ 081D0F26 + .incbin "baserom.gba", 0x1D0F26, 0x00000DE + +gUnk_081D1004:: @ 081D1004 + .incbin "baserom.gba", 0x1D1004, 0x0000003 + +gUnk_081D1007:: @ 081D1007 + .incbin "baserom.gba", 0x1D1007, 0x0000511 + +gUnk_081D1518:: @ 081D1518 + .incbin "baserom.gba", 0x1D1518, 0x00000E2 + +gUnk_081D15FA:: @ 081D15FA + .incbin "baserom.gba", 0x1D15FA, 0x0000018 + +gUnk_081D1612:: @ 081D1612 + .incbin "baserom.gba", 0x1D1612, 0x000011F + +gUnk_081D1731:: @ 081D1731 + .incbin "baserom.gba", 0x1D1731, 0x00000CC + +gUnk_081D17FD:: @ 081D17FD + .incbin "baserom.gba", 0x1D17FD, 0x0000013 + +gUnk_081D1810:: @ 081D1810 + .incbin "baserom.gba", 0x1D1810, 0x00003F3 + +gUnk_081D1C03:: @ 081D1C03 + .incbin "baserom.gba", 0x1D1C03, 0x0000001 + +gUnk_081D1C04:: @ 081D1C04 + .incbin "baserom.gba", 0x1D1C04, 0x0000019 + +gUnk_081D1C1D:: @ 081D1C1D + .incbin "baserom.gba", 0x1D1C1D, 0x00000F7 + +gUnk_081D1D14:: @ 081D1D14 + .incbin "baserom.gba", 0x1D1D14, 0x000010E + +gUnk_081D1E22:: @ 081D1E22 + .incbin "baserom.gba", 0x1D1E22, 0x00001DE + +gUnk_081D2000:: @ 081D2000 + .incbin "baserom.gba", 0x1D2000, 0x000000C + +gUnk_081D200C:: @ 081D200C + .incbin "baserom.gba", 0x1D200C, 0x0000026 + +gUnk_081D2032:: @ 081D2032 + .incbin "baserom.gba", 0x1D2032, 0x00001F1 + +gUnk_081D2223:: @ 081D2223 + .incbin "baserom.gba", 0x1D2223, 0x00000F5 + +gUnk_081D2318:: @ 081D2318 + .incbin "baserom.gba", 0x1D2318, 0x0000113 + +gUnk_081D242B:: @ 081D242B + .incbin "baserom.gba", 0x1D242B, 0x000000A + +gUnk_081D2435:: @ 081D2435 + .incbin "baserom.gba", 0x1D2435, 0x00001D6 + +gUnk_081D260B:: @ 081D260B + .incbin "baserom.gba", 0x1D260B, 0x00001E1 + +gUnk_081D27EC:: @ 081D27EC + .incbin "baserom.gba", 0x1D27EC, 0x0000043 + +gUnk_081D282F:: @ 081D282F + .incbin "baserom.gba", 0x1D282F, 0x00000E1 + +gUnk_081D2910:: @ 081D2910 + .incbin "baserom.gba", 0x1D2910, 0x0000315 + +gUnk_081D2C25:: @ 081D2C25 + .incbin "baserom.gba", 0x1D2C25, 0x0000119 + +gUnk_081D2D3E:: @ 081D2D3E + .incbin "baserom.gba", 0x1D2D3E, 0x0000235 + +gUnk_081D2F73:: @ 081D2F73 + .incbin "baserom.gba", 0x1D2F73, 0x00000C8 + +gUnk_081D303B:: @ 081D303B + .incbin "baserom.gba", 0x1D303B, 0x0000009 + +gUnk_081D3044:: @ 081D3044 + .incbin "baserom.gba", 0x1D3044, 0x00000E1 + +gUnk_081D3125:: @ 081D3125 + .incbin "baserom.gba", 0x1D3125, 0x00000F6 + +gUnk_081D321B:: @ 081D321B + .incbin "baserom.gba", 0x1D321B, 0x000021C + +gUnk_081D3437:: @ 081D3437 + .incbin "baserom.gba", 0x1D3437, 0x00004FC + +gUnk_081D3933:: @ 081D3933 + .incbin "baserom.gba", 0x1D3933, 0x0000331 + +gUnk_081D3C64:: @ 081D3C64 + .incbin "baserom.gba", 0x1D3C64, 0x00000C8 + +gUnk_081D3D2C:: @ 081D3D2C + .incbin "baserom.gba", 0x1D3D2C, 0x000103D + +gUnk_081D4D69:: @ 081D4D69 + .incbin "baserom.gba", 0x1D4D69, 0x00012FE + +gUnk_081D6067:: @ 081D6067 + .incbin "baserom.gba", 0x1D6067, 0x000160D + +gUnk_081D7674:: @ 081D7674 + .incbin "baserom.gba", 0x1D7674, 0x00029C0 + +gUnk_081DA034:: @ 081DA034 + .incbin "baserom.gba", 0x1DA034, 0x0003FBD + +gUnk_081DDFF1:: @ 081DDFF1 + .incbin "baserom.gba", 0x1DDFF1, 0x0000FFE + +gUnk_081DEFEF:: @ 081DEFEF + .incbin "baserom.gba", 0x1DEFEF, 0x0000845 + +gUnk_081DF834:: @ 081DF834 + .incbin "baserom.gba", 0x1DF834, 0x00004C6 + +gUnk_081DFCFA:: @ 081DFCFA + .incbin "baserom.gba", 0x1DFCFA, 0x00002CE + +gUnk_081DFFC8:: @ 081DFFC8 + .incbin "baserom.gba", 0x1DFFC8, 0x0000008 + +gUnk_081DFFD0:: @ 081DFFD0 + .incbin "baserom.gba", 0x1DFFD0, 0x0000030 + +gUnk_081E0000:: @ 081E0000 + .incbin "baserom.gba", 0x1E0000, 0x0000012 + +gUnk_081E0012:: @ 081E0012 + .incbin "baserom.gba", 0x1E0012, 0x0000008 + +gUnk_081E001A:: @ 081E001A + .incbin "baserom.gba", 0x1E001A, 0x00000D8 + +gUnk_081E00F2:: @ 081E00F2 + .incbin "baserom.gba", 0x1E00F2, 0x0000015 + +gUnk_081E0107:: @ 081E0107 + .incbin "baserom.gba", 0x1E0107, 0x0000016 + +gUnk_081E011D:: @ 081E011D + .incbin "baserom.gba", 0x1E011D, 0x00001B9 + +gUnk_081E02D6:: @ 081E02D6 + .incbin "baserom.gba", 0x1E02D6, 0x000002A + +gUnk_081E0300:: @ 081E0300 + .incbin "baserom.gba", 0x1E0300, 0x0000004 + +gUnk_081E0304:: @ 081E0304 + .incbin "baserom.gba", 0x1E0304, 0x0000109 + +gUnk_081E040D:: @ 081E040D + .incbin "baserom.gba", 0x1E040D, 0x00000DF + +gUnk_081E04EC:: @ 081E04EC + .incbin "baserom.gba", 0x1E04EC, 0x000027A + +gUnk_081E0766:: @ 081E0766 + .incbin "baserom.gba", 0x1E0766, 0x00001A9 + +gUnk_081E090F:: @ 081E090F + .incbin "baserom.gba", 0x1E090F, 0x00000D3 + +gUnk_081E09E2:: @ 081E09E2 + .incbin "baserom.gba", 0x1E09E2, 0x000001F + +gUnk_081E0A01:: @ 081E0A01 + .incbin "baserom.gba", 0x1E0A01, 0x0000120 + +gUnk_081E0B21:: @ 081E0B21 + .incbin "baserom.gba", 0x1E0B21, 0x00002CA + +gUnk_081E0DEB:: @ 081E0DEB + .incbin "baserom.gba", 0x1E0DEB, 0x00000FA + +gUnk_081E0EE5:: @ 081E0EE5 + .incbin "baserom.gba", 0x1E0EE5, 0x0000110 + +gUnk_081E0FF5:: @ 081E0FF5 + .incbin "baserom.gba", 0x1E0FF5, 0x0000040 + +gUnk_081E1035:: @ 081E1035 + .incbin "baserom.gba", 0x1E1035, 0x00002CA + +gUnk_081E12FF:: @ 081E12FF + .incbin "baserom.gba", 0x1E12FF, 0x0000001 + +gUnk_081E1300:: @ 081E1300 + .incbin "baserom.gba", 0x1E1300, 0x0000601 + +gUnk_081E1901:: @ 081E1901 + .incbin "baserom.gba", 0x1E1901, 0x000000E + +gUnk_081E190F:: @ 081E190F + .incbin "baserom.gba", 0x1E190F, 0x00000EA + +gUnk_081E19F9:: @ 081E19F9 + .incbin "baserom.gba", 0x1E19F9, 0x0000415 + +gUnk_081E1E0E:: @ 081E1E0E + .incbin "baserom.gba", 0x1E1E0E, 0x000020B + +gUnk_081E2019:: @ 081E2019 + .incbin "baserom.gba", 0x1E2019, 0x000010D + +gUnk_081E2126:: @ 081E2126 + .incbin "baserom.gba", 0x1E2126, 0x0000203 + +gUnk_081E2329:: @ 081E2329 + .incbin "baserom.gba", 0x1E2329, 0x000011C + +gUnk_081E2445:: @ 081E2445 + .incbin "baserom.gba", 0x1E2445, 0x00000D1 + +gUnk_081E2516:: @ 081E2516 + .incbin "baserom.gba", 0x1E2516, 0x00000E7 + +gUnk_081E25FD:: @ 081E25FD + .incbin "baserom.gba", 0x1E25FD, 0x0000120 + +gUnk_081E271D:: @ 081E271D + .incbin "baserom.gba", 0x1E271D, 0x00001E4 + +gUnk_081E2901:: @ 081E2901 + .incbin "baserom.gba", 0x1E2901, 0x0000024 + +gUnk_081E2925:: @ 081E2925 + .incbin "baserom.gba", 0x1E2925, 0x0000201 + +gUnk_081E2B26:: @ 081E2B26 + .incbin "baserom.gba", 0x1E2B26, 0x0000222 + +gUnk_081E2D48:: @ 081E2D48 + .incbin "baserom.gba", 0x1E2D48, 0x00000EB + +gUnk_081E2E33:: @ 081E2E33 + .incbin "baserom.gba", 0x1E2E33, 0x0000102 + +gUnk_081E2F35:: @ 081E2F35 + .incbin "baserom.gba", 0x1E2F35, 0x0000404 + +gUnk_081E3339:: @ 081E3339 + .incbin "baserom.gba", 0x1E3339, 0x00000FA + +gUnk_081E3433:: @ 081E3433 + .incbin "baserom.gba", 0x1E3433, 0x000010E + +gUnk_081E3541:: @ 081E3541 + .incbin "baserom.gba", 0x1E3541, 0x000010A + +gUnk_081E364B:: @ 081E364B + .incbin "baserom.gba", 0x1E364B, 0x00003F1 + +gUnk_081E3A3C:: @ 081E3A3C + .incbin "baserom.gba", 0x1E3A3C, 0x0000B11 + +gUnk_081E454D:: @ 081E454D + .incbin "baserom.gba", 0x1E454D, 0x00065B3 + +gUnk_081EAB00:: @ 081EAB00 + .incbin "baserom.gba", 0x1EAB00, 0x0001882 + +gUnk_081EC382:: @ 081EC382 + .incbin "baserom.gba", 0x1EC382, 0x0002445 + +gUnk_081EE7C7:: @ 081EE7C7 + .incbin "baserom.gba", 0x1EE7C7, 0x0001335 + +gUnk_081EFAFC:: @ 081EFAFC + .incbin "baserom.gba", 0x1EFAFC, 0x00003CC + +gUnk_081EFEC8:: @ 081EFEC8 + .incbin "baserom.gba", 0x1EFEC8, 0x0000138 + +gUnk_081F0000:: @ 081F0000 + .incbin "baserom.gba", 0x1F0000, 0x0000008 + +gUnk_081F0008:: @ 081F0008 + .incbin "baserom.gba", 0x1F0008, 0x0000001 + +gUnk_081F0009:: @ 081F0009 + .incbin "baserom.gba", 0x1F0009, 0x0000021 + +gUnk_081F002A:: @ 081F002A + .incbin "baserom.gba", 0x1F002A, 0x0000004 + +gUnk_081F002E:: @ 081F002E + .incbin "baserom.gba", 0x1F002E, 0x0000002 + +gUnk_081F0030:: @ 081F0030 + .incbin "baserom.gba", 0x1F0030, 0x000000F + +gUnk_081F003F:: @ 081F003F + .incbin "baserom.gba", 0x1F003F, 0x0000003 + +gUnk_081F0042:: @ 081F0042 + .incbin "baserom.gba", 0x1F0042, 0x000004A + +gUnk_081F008C:: @ 081F008C + .incbin "baserom.gba", 0x1F008C, 0x0000251 + +gUnk_081F02DD:: @ 081F02DD + .incbin "baserom.gba", 0x1F02DD, 0x000017C + +gUnk_081F0459:: @ 081F0459 + .incbin "baserom.gba", 0x1F0459, 0x00003A1 + +gUnk_081F07FA:: @ 081F07FA + .incbin "baserom.gba", 0x1F07FA, 0x0000824 + +gUnk_081F101E:: @ 081F101E + .incbin "baserom.gba", 0x1F101E, 0x0000015 + +gUnk_081F1033:: @ 081F1033 + .incbin "baserom.gba", 0x1F1033, 0x0000033 + +gUnk_081F1066:: @ 081F1066 + .incbin "baserom.gba", 0x1F1066, 0x0000102 + +gUnk_081F1168:: @ 081F1168 + .incbin "baserom.gba", 0x1F1168, 0x000017F + +gUnk_081F12E7:: @ 081F12E7 + .incbin "baserom.gba", 0x1F12E7, 0x00002F9 + +gUnk_081F15E0:: @ 081F15E0 + .incbin "baserom.gba", 0x1F15E0, 0x000025D + +gUnk_081F183D:: @ 081F183D + .incbin "baserom.gba", 0x1F183D, 0x00001E0 + +gUnk_081F1A1D:: @ 081F1A1D + .incbin "baserom.gba", 0x1F1A1D, 0x00000EE + +gUnk_081F1B0B:: @ 081F1B0B + .incbin "baserom.gba", 0x1F1B0B, 0x00002F5 + +gUnk_081F1E00:: @ 081F1E00 + .incbin "baserom.gba", 0x1F1E00, 0x000011D + +gUnk_081F1F1D:: @ 081F1F1D + .incbin "baserom.gba", 0x1F1F1D, 0x0000005 + +gUnk_081F1F22:: @ 081F1F22 + .incbin "baserom.gba", 0x1F1F22, 0x00000E1 + +gUnk_081F2003:: @ 081F2003 + .incbin "baserom.gba", 0x1F2003, 0x000001F + +gUnk_081F2022:: @ 081F2022 + .incbin "baserom.gba", 0x1F2022, 0x00000A4 + +gUnk_081F20C6:: @ 081F20C6 + .incbin "baserom.gba", 0x1F20C6, 0x0000062 + +gUnk_081F2128:: @ 081F2128 + .incbin "baserom.gba", 0x1F2128, 0x00000F1 + +gUnk_081F2219:: @ 081F2219 + .incbin "baserom.gba", 0x1F2219, 0x0000103 + +gUnk_081F231C:: @ 081F231C + .incbin "baserom.gba", 0x1F231C, 0x00001DB + +gUnk_081F24F7:: @ 081F24F7 + .incbin "baserom.gba", 0x1F24F7, 0x0000116 + +gUnk_081F260D:: @ 081F260D + .incbin "baserom.gba", 0x1F260D, 0x000021D + +gUnk_081F282A:: @ 081F282A + .incbin "baserom.gba", 0x1F282A, 0x00000F8 + +gUnk_081F2922:: @ 081F2922 + .incbin "baserom.gba", 0x1F2922, 0x0000127 + +gUnk_081F2A49:: @ 081F2A49 + .incbin "baserom.gba", 0x1F2A49, 0x00000F1 + +gUnk_081F2B3A:: @ 081F2B3A + .incbin "baserom.gba", 0x1F2B3A, 0x00001F5 + +gUnk_081F2D2F:: @ 081F2D2F + .incbin "baserom.gba", 0x1F2D2F, 0x0000200 + +gUnk_081F2F2F:: @ 081F2F2F + .incbin "baserom.gba", 0x1F2F2F, 0x000050E + +gUnk_081F343D:: @ 081F343D + .incbin "baserom.gba", 0x1F343D, 0x00000F1 + +gUnk_081F352E:: @ 081F352E + .incbin "baserom.gba", 0x1F352E, 0x0000204 + +gUnk_081F3732:: @ 081F3732 + .incbin "baserom.gba", 0x1F3732, 0x0000106 + +gUnk_081F3838:: @ 081F3838 + .incbin "baserom.gba", 0x1F3838, 0x0000009 + +gUnk_081F3841:: @ 081F3841 + .incbin "baserom.gba", 0x1F3841, 0x0000BF6 + +gUnk_081F4437:: @ 081F4437 + .incbin "baserom.gba", 0x1F4437, 0x0000023 + +gUnk_081F445A:: @ 081F445A + .incbin "baserom.gba", 0x1F445A, 0x0000CD8 + +gUnk_081F5132:: @ 081F5132 + .incbin "baserom.gba", 0x1F5132, 0x000049D + +gUnk_081F55CF:: @ 081F55CF + .incbin "baserom.gba", 0x1F55CF, 0x0004A36 + +gUnk_081FA005:: @ 081FA005 + .incbin "baserom.gba", 0x1FA005, 0x000107B + +gUnk_081FB080:: @ 081FB080 + .incbin "baserom.gba", 0x1FB080, 0x00028A2 + +gUnk_081FD922:: @ 081FD922 + .incbin "baserom.gba", 0x1FD922, 0x00014F3 + +gUnk_081FEE15:: @ 081FEE15 + .incbin "baserom.gba", 0x1FEE15, 0x000022A + +gUnk_081FF03F:: @ 081FF03F + .incbin "baserom.gba", 0x1FF03F, 0x0000175 + +gUnk_081FF1B4:: @ 081FF1B4 + .incbin "baserom.gba", 0x1FF1B4, 0x0000D2D + +gUnk_081FFEE1:: @ 081FFEE1 + .incbin "baserom.gba", 0x1FFEE1, 0x000011F + +gUnk_08200000:: @ 08200000 + .incbin "baserom.gba", 0x200000, 0x0000001 + +gUnk_08200001:: @ 08200001 + .incbin "baserom.gba", 0x200001, 0x0000010 + +gUnk_08200011:: @ 08200011 + .incbin "baserom.gba", 0x200011, 0x000000F + +gUnk_08200020:: @ 08200020 + .incbin "baserom.gba", 0x200020, 0x000001F + +gUnk_0820003F:: @ 0820003F + .incbin "baserom.gba", 0x20003F, 0x0000003 + +gUnk_08200042:: @ 08200042 + .incbin "baserom.gba", 0x200042, 0x0000072 + +gUnk_082000B4:: @ 082000B4 + .incbin "baserom.gba", 0x2000B4, 0x0000008 + +gUnk_082000BC:: @ 082000BC + .incbin "baserom.gba", 0x2000BC, 0x000005A + +gUnk_08200116:: @ 08200116 + .incbin "baserom.gba", 0x200116, 0x0000009 + +gUnk_0820011F:: @ 0820011F + .incbin "baserom.gba", 0x20011F, 0x0000012 + +gUnk_08200131:: @ 08200131 + .incbin "baserom.gba", 0x200131, 0x0000079 + +gUnk_082001AA:: @ 082001AA + .incbin "baserom.gba", 0x2001AA, 0x0000130 + +gUnk_082002DA:: @ 082002DA + .incbin "baserom.gba", 0x2002DA, 0x000015A + +gUnk_08200434:: @ 08200434 + .incbin "baserom.gba", 0x200434, 0x00000CC + +gUnk_08200500:: @ 08200500 + .incbin "baserom.gba", 0x200500, 0x0000020 + +gUnk_08200520:: @ 08200520 + .incbin "baserom.gba", 0x200520, 0x0000033 + +gUnk_08200553:: @ 08200553 + .incbin "baserom.gba", 0x200553, 0x00000AD + +gUnk_08200600:: @ 08200600 + .incbin "baserom.gba", 0x200600, 0x0000009 + +gUnk_08200609:: @ 08200609 + .incbin "baserom.gba", 0x200609, 0x0000027 + +gUnk_08200630:: @ 08200630 + .incbin "baserom.gba", 0x200630, 0x00000D0 + +gUnk_08200700:: @ 08200700 + .incbin "baserom.gba", 0x200700, 0x0000006 + +gUnk_08200706:: @ 08200706 + .incbin "baserom.gba", 0x200706, 0x000001A + +gUnk_08200720:: @ 08200720 + .incbin "baserom.gba", 0x200720, 0x0000030 + +gUnk_08200750:: @ 08200750 + .incbin "baserom.gba", 0x200750, 0x0000010 + +gUnk_08200760:: @ 08200760 + .incbin "baserom.gba", 0x200760, 0x0000020 + +gUnk_08200780:: @ 08200780 + .incbin "baserom.gba", 0x200780, 0x0000060 + +gUnk_082007E0:: @ 082007E0 + .incbin "baserom.gba", 0x2007E0, 0x0000020 + +gUnk_08200800:: @ 08200800 + .incbin "baserom.gba", 0x200800, 0x0000020 + +gUnk_08200820:: @ 08200820 + .incbin "baserom.gba", 0x200820, 0x0000110 + +gUnk_08200930:: @ 08200930 + .incbin "baserom.gba", 0x200930, 0x00001D0 + +gUnk_08200B00:: @ 08200B00 + .incbin "baserom.gba", 0x200B00, 0x0000100 + +gUnk_08200C00:: @ 08200C00 + .incbin "baserom.gba", 0x200C00, 0x00002E0 + +gUnk_08200EE0:: @ 08200EE0 + .incbin "baserom.gba", 0x200EE0, 0x0000020 + +gUnk_08200F00:: @ 08200F00 + .incbin "baserom.gba", 0x200F00, 0x0000040 + +gUnk_08200F40:: @ 08200F40 + .incbin "baserom.gba", 0x200F40, 0x00000E0 + +gUnk_08201020:: @ 08201020 + .incbin "baserom.gba", 0x201020, 0x00001EE + +gUnk_0820120E:: @ 0820120E + .incbin "baserom.gba", 0x20120E, 0x00000ED + +gUnk_082012FB:: @ 082012FB + .incbin "baserom.gba", 0x2012FB, 0x000000A + +gUnk_08201305:: @ 08201305 + .incbin "baserom.gba", 0x201305, 0x00003FB + +gUnk_08201700:: @ 08201700 + .incbin "baserom.gba", 0x201700, 0x0000010 + +gUnk_08201710:: @ 08201710 + .incbin "baserom.gba", 0x201710, 0x0000309 + +gUnk_08201A19:: @ 08201A19 + .incbin "baserom.gba", 0x201A19, 0x00000E2 + +gUnk_08201AFB:: @ 08201AFB + .incbin "baserom.gba", 0x201AFB, 0x00000DD + +gUnk_08201BD8:: @ 08201BD8 + .incbin "baserom.gba", 0x201BD8, 0x0000338 + +gUnk_08201F10:: @ 08201F10 + .incbin "baserom.gba", 0x201F10, 0x0000026 + +gUnk_08201F36:: @ 08201F36 + .incbin "baserom.gba", 0x201F36, 0x0000110 + +gUnk_08202046:: @ 08202046 + .incbin "baserom.gba", 0x202046, 0x000009A + +gUnk_082020E0:: @ 082020E0 + .incbin "baserom.gba", 0x2020E0, 0x0000120 + +gUnk_08202200:: @ 08202200 + .incbin "baserom.gba", 0x202200, 0x0000010 + +gUnk_08202210:: @ 08202210 + .incbin "baserom.gba", 0x202210, 0x0000001 + +gUnk_08202211:: @ 08202211 + .incbin "baserom.gba", 0x202211, 0x000000C + +gUnk_0820221D:: @ 0820221D + .incbin "baserom.gba", 0x20221D, 0x00000FD + +gUnk_0820231A:: @ 0820231A + .incbin "baserom.gba", 0x20231A, 0x00000F3 + +gUnk_0820240D:: @ 0820240D + .incbin "baserom.gba", 0x20240D, 0x00003B3 + +gUnk_082027C0:: @ 082027C0 + .incbin "baserom.gba", 0x2027C0, 0x0000070 + +gUnk_08202830:: @ 08202830 + .incbin "baserom.gba", 0x202830, 0x00000E7 + +gUnk_08202917:: @ 08202917 + .incbin "baserom.gba", 0x202917, 0x00000FF + +gUnk_08202A16:: @ 08202A16 + .incbin "baserom.gba", 0x202A16, 0x0000009 + +gUnk_08202A1F:: @ 08202A1F + .incbin "baserom.gba", 0x202A1F, 0x00001E4 + +gUnk_08202C03:: @ 08202C03 + .incbin "baserom.gba", 0x202C03, 0x0000144 + +gUnk_08202D47:: @ 08202D47 + .incbin "baserom.gba", 0x202D47, 0x00000EE + +gUnk_08202E35:: @ 08202E35 + .incbin "baserom.gba", 0x202E35, 0x00001FF + +gUnk_08203034:: @ 08203034 + .incbin "baserom.gba", 0x203034, 0x0000002 + +gUnk_08203036:: @ 08203036 + .incbin "baserom.gba", 0x203036, 0x00000FC + +gUnk_08203132:: @ 08203132 + .incbin "baserom.gba", 0x203132, 0x000010B + +gUnk_0820323D:: @ 0820323D + .incbin "baserom.gba", 0x20323D, 0x0000103 + +gUnk_08203340:: @ 08203340 + .incbin "baserom.gba", 0x203340, 0x00000C0 + +gUnk_08203400:: @ 08203400 + .incbin "baserom.gba", 0x203400, 0x000002E + +gUnk_0820342E:: @ 0820342E + .incbin "baserom.gba", 0x20342E, 0x0000003 + +gUnk_08203431:: @ 08203431 + .incbin "baserom.gba", 0x203431, 0x00000CF + +gUnk_08203500:: @ 08203500 + .incbin "baserom.gba", 0x203500, 0x0000044 + +gUnk_08203544:: @ 08203544 + .incbin "baserom.gba", 0x203544, 0x00001EB + +gUnk_0820372F:: @ 0820372F + .incbin "baserom.gba", 0x20372F, 0x000001B + +gUnk_0820374A:: @ 0820374A + .incbin "baserom.gba", 0x20374A, 0x00000B6 + +gUnk_08203800:: @ 08203800 + .incbin "baserom.gba", 0x203800, 0x0000001 + +gUnk_08203801:: @ 08203801 + .incbin "baserom.gba", 0x203801, 0x00002FF + +gUnk_08203B00:: @ 08203B00 + .incbin "baserom.gba", 0x203B00, 0x000021D + +gUnk_08203D1D:: @ 08203D1D + .incbin "baserom.gba", 0x203D1D, 0x0000036 + +gUnk_08203D53:: @ 08203D53 + .incbin "baserom.gba", 0x203D53, 0x00003AD + +gUnk_08204100:: @ 08204100 + .incbin "baserom.gba", 0x204100, 0x0000100 + +gUnk_08204200:: @ 08204200 + .incbin "baserom.gba", 0x204200, 0x0000087 + +gUnk_08204287:: @ 08204287 + .incbin "baserom.gba", 0x204287, 0x0000079 + +gUnk_08204300:: @ 08204300 + .incbin "baserom.gba", 0x204300, 0x0000306 + +gUnk_08204606:: @ 08204606 + .incbin "baserom.gba", 0x204606, 0x0000004 + +gUnk_0820460A:: @ 0820460A + .incbin "baserom.gba", 0x20460A, 0x0000026 + +gUnk_08204630:: @ 08204630 + .incbin "baserom.gba", 0x204630, 0x0000020 + +gUnk_08204650:: @ 08204650 + .incbin "baserom.gba", 0x204650, 0x00002B0 + +gUnk_08204900:: @ 08204900 + .incbin "baserom.gba", 0x204900, 0x0000100 + +gUnk_08204A00:: @ 08204A00 + .incbin "baserom.gba", 0x204A00, 0x0000200 + +gUnk_08204C00:: @ 08204C00 + .incbin "baserom.gba", 0x204C00, 0x0000300 + +gUnk_08204F00:: @ 08204F00 + .incbin "baserom.gba", 0x204F00, 0x0000010 + +gUnk_08204F10:: @ 08204F10 + .incbin "baserom.gba", 0x204F10, 0x00001F0 + +gUnk_08205100:: @ 08205100 + .incbin "baserom.gba", 0x205100, 0x0000100 + +gUnk_08205200:: @ 08205200 + .incbin "baserom.gba", 0x205200, 0x000006D + +gUnk_0820526D:: @ 0820526D + .incbin "baserom.gba", 0x20526D, 0x0000393 + +gUnk_08205600:: @ 08205600 + .incbin "baserom.gba", 0x205600, 0x0000020 + +gUnk_08205620:: @ 08205620 + .incbin "baserom.gba", 0x205620, 0x00003E0 + +gUnk_08205A00:: @ 08205A00 + .incbin "baserom.gba", 0x205A00, 0x00006E9 + +gUnk_082060E9:: @ 082060E9 + .incbin "baserom.gba", 0x2060E9, 0x000071E + +gUnk_08206807:: @ 08206807 + .incbin "baserom.gba", 0x206807, 0x00003F9 + +gUnk_08206C00:: @ 08206C00 + .incbin "baserom.gba", 0x206C00, 0x000007F + +gUnk_08206C7F:: @ 08206C7F + .incbin "baserom.gba", 0x206C7F, 0x0000282 + +gUnk_08206F01:: @ 08206F01 + .incbin "baserom.gba", 0x206F01, 0x000001F + +gUnk_08206F20:: @ 08206F20 + .incbin "baserom.gba", 0x206F20, 0x0000064 + +gUnk_08206F84:: @ 08206F84 + .incbin "baserom.gba", 0x206F84, 0x0000106 + +gUnk_0820708A:: @ 0820708A + .incbin "baserom.gba", 0x20708A, 0x000007D + +gUnk_08207107:: @ 08207107 + .incbin "baserom.gba", 0x207107, 0x000020D + +gUnk_08207314:: @ 08207314 + .incbin "baserom.gba", 0x207314, 0x0000025 + +gUnk_08207339:: @ 08207339 + .incbin "baserom.gba", 0x207339, 0x00004BC + +gUnk_082077F5:: @ 082077F5 + .incbin "baserom.gba", 0x2077F5, 0x000020C + +gUnk_08207A01:: @ 08207A01 + .incbin "baserom.gba", 0x207A01, 0x0000169 + +gUnk_08207B6A:: @ 08207B6A + .incbin "baserom.gba", 0x207B6A, 0x00003E2 + +gUnk_08207F4C:: @ 08207F4C + .incbin "baserom.gba", 0x207F4C, 0x000011E + +gUnk_0820806A:: @ 0820806A + .incbin "baserom.gba", 0x20806A, 0x0000596 + +gUnk_08208600:: @ 08208600 + .incbin "baserom.gba", 0x208600, 0x000010E + +gUnk_0820870E:: @ 0820870E + .incbin "baserom.gba", 0x20870E, 0x0000019 + +gUnk_08208727:: @ 08208727 + .incbin "baserom.gba", 0x208727, 0x000041C + +gUnk_08208B43:: @ 08208B43 + .incbin "baserom.gba", 0x208B43, 0x0000072 + +gUnk_08208BB5:: @ 08208BB5 + .incbin "baserom.gba", 0x208BB5, 0x0000052 + +gUnk_08208C07:: @ 08208C07 + .incbin "baserom.gba", 0x208C07, 0x000027A + +gUnk_08208E81:: @ 08208E81 + .incbin "baserom.gba", 0x208E81, 0x0000089 + +gUnk_08208F0A:: @ 08208F0A + .incbin "baserom.gba", 0x208F0A, 0x000007A + +gUnk_08208F84:: @ 08208F84 + .incbin "baserom.gba", 0x208F84, 0x0000170 + +gUnk_082090F4:: @ 082090F4 + .incbin "baserom.gba", 0x2090F4, 0x000020C + +gUnk_08209300:: @ 08209300 + .incbin "baserom.gba", 0x209300, 0x00000AE + +gUnk_082093AE:: @ 082093AE + .incbin "baserom.gba", 0x2093AE, 0x00001E7 + +gUnk_08209595:: @ 08209595 + .incbin "baserom.gba", 0x209595, 0x00000AD + +gUnk_08209642:: @ 08209642 + .incbin "baserom.gba", 0x209642, 0x0000247 + +gUnk_08209889:: @ 08209889 + .incbin "baserom.gba", 0x209889, 0x000002A + +gUnk_082098B3:: @ 082098B3 + .incbin "baserom.gba", 0x2098B3, 0x00000D5 + +gUnk_08209988:: @ 08209988 + .incbin "baserom.gba", 0x209988, 0x0000280 + +gUnk_08209C08:: @ 08209C08 + .incbin "baserom.gba", 0x209C08, 0x0000300 + +gUnk_08209F08:: @ 08209F08 + .incbin "baserom.gba", 0x209F08, 0x00006E1 + +gUnk_0820A5E9:: @ 0820A5E9 + .incbin "baserom.gba", 0x20A5E9, 0x000016E + +gUnk_0820A757:: @ 0820A757 + .incbin "baserom.gba", 0x20A757, 0x0000050 + +gUnk_0820A7A7:: @ 0820A7A7 + .incbin "baserom.gba", 0x20A7A7, 0x0000025 + +gUnk_0820A7CC:: @ 0820A7CC + .incbin "baserom.gba", 0x20A7CC, 0x0000009 + +gUnk_0820A7D5:: @ 0820A7D5 + .incbin "baserom.gba", 0x20A7D5, 0x0000033 + +gUnk_0820A808:: @ 0820A808 + .incbin "baserom.gba", 0x20A808, 0x0000148 + +gUnk_0820A950:: @ 0820A950 + .incbin "baserom.gba", 0x20A950, 0x0000238 + +gUnk_0820AB88:: @ 0820AB88 + .incbin "baserom.gba", 0x20AB88, 0x0000581 + +gUnk_0820B109:: @ 0820B109 + .incbin "baserom.gba", 0x20B109, 0x0000081 + +gUnk_0820B18A:: @ 0820B18A + .incbin "baserom.gba", 0x20B18A, 0x0000226 + +gUnk_0820B3B0:: @ 0820B3B0 + .incbin "baserom.gba", 0x20B3B0, 0x0000079 + +gUnk_0820B429:: @ 0820B429 + .incbin "baserom.gba", 0x20B429, 0x000012B + +gUnk_0820B554:: @ 0820B554 + .incbin "baserom.gba", 0x20B554, 0x00000C3 + +gUnk_0820B617:: @ 0820B617 + .incbin "baserom.gba", 0x20B617, 0x00000DE + +gUnk_0820B6F5:: @ 0820B6F5 + .incbin "baserom.gba", 0x20B6F5, 0x000020D + +gUnk_0820B902:: @ 0820B902 + .incbin "baserom.gba", 0x20B902, 0x0000005 + +gUnk_0820B907:: @ 0820B907 + .incbin "baserom.gba", 0x20B907, 0x0000103 + +gUnk_0820BA0A:: @ 0820BA0A + .incbin "baserom.gba", 0x20BA0A, 0x00001DC + +gUnk_0820BBE6:: @ 0820BBE6 + .incbin "baserom.gba", 0x20BBE6, 0x00002C9 + +gUnk_0820BEAF:: @ 0820BEAF + .incbin "baserom.gba", 0x20BEAF, 0x000007D + +gUnk_0820BF2C:: @ 0820BF2C + .incbin "baserom.gba", 0x20BF2C, 0x000008D + +gUnk_0820BFB9:: @ 0820BFB9 + .incbin "baserom.gba", 0x20BFB9, 0x0000039 + +gUnk_0820BFF2:: @ 0820BFF2 + .incbin "baserom.gba", 0x20BFF2, 0x0000069 + +gUnk_0820C05B:: @ 0820C05B + .incbin "baserom.gba", 0x20C05B, 0x00000C5 + +gUnk_0820C120:: @ 0820C120 + .incbin "baserom.gba", 0x20C120, 0x000029C + +gUnk_0820C3BC:: @ 0820C3BC + .incbin "baserom.gba", 0x20C3BC, 0x0000358 + +gUnk_0820C714:: @ 0820C714 + .incbin "baserom.gba", 0x20C714, 0x0000030 + +gUnk_0820C744:: @ 0820C744 + .incbin "baserom.gba", 0x20C744, 0x0000081 + +gUnk_0820C7C5:: @ 0820C7C5 + .incbin "baserom.gba", 0x20C7C5, 0x000008B + +gUnk_0820C850:: @ 0820C850 + .incbin "baserom.gba", 0x20C850, 0x00000B0 + +gUnk_0820C900:: @ 0820C900 + .incbin "baserom.gba", 0x20C900, 0x000053E + +gUnk_0820CE3E:: @ 0820CE3E + .incbin "baserom.gba", 0x20CE3E, 0x00000D9 + +gUnk_0820CF17:: @ 0820CF17 + .incbin "baserom.gba", 0x20CF17, 0x00002ED + +gUnk_0820D204:: @ 0820D204 + .incbin "baserom.gba", 0x20D204, 0x00002D6 + +gUnk_0820D4DA:: @ 0820D4DA + .incbin "baserom.gba", 0x20D4DA, 0x000012A + +gUnk_0820D604:: @ 0820D604 + .incbin "baserom.gba", 0x20D604, 0x00003D9 + +gUnk_0820D9DD:: @ 0820D9DD + .incbin "baserom.gba", 0x20D9DD, 0x00000EA + +gUnk_0820DAC7:: @ 0820DAC7 + .incbin "baserom.gba", 0x20DAC7, 0x0000123 + +gUnk_0820DBEA:: @ 0820DBEA + .incbin "baserom.gba", 0x20DBEA, 0x00000EA + +gUnk_0820DCD4:: @ 0820DCD4 + .incbin "baserom.gba", 0x20DCD4, 0x00000CD + +gUnk_0820DDA1:: @ 0820DDA1 + .incbin "baserom.gba", 0x20DDA1, 0x0000067 + +gUnk_0820DE08:: @ 0820DE08 + .incbin "baserom.gba", 0x20DE08, 0x0000193 + +gUnk_0820DF9B:: @ 0820DF9B + .incbin "baserom.gba", 0x20DF9B, 0x000016C + +gUnk_0820E107:: @ 0820E107 + .incbin "baserom.gba", 0x20E107, 0x000001C + +gUnk_0820E123:: @ 0820E123 + .incbin "baserom.gba", 0x20E123, 0x0000080 + +gUnk_0820E1A3:: @ 0820E1A3 + .incbin "baserom.gba", 0x20E1A3, 0x0000341 + +gUnk_0820E4E4:: @ 0820E4E4 + .incbin "baserom.gba", 0x20E4E4, 0x0000004 + +gUnk_0820E4E8:: @ 0820E4E8 + .incbin "baserom.gba", 0x20E4E8, 0x0000015 + +gUnk_0820E4FD:: @ 0820E4FD + .incbin "baserom.gba", 0x20E4FD, 0x000000E + +gUnk_0820E50B:: @ 0820E50B + .incbin "baserom.gba", 0x20E50B, 0x0000002 + +gUnk_0820E50D:: @ 0820E50D + .incbin "baserom.gba", 0x20E50D, 0x000008A + +gUnk_0820E597:: @ 0820E597 + .incbin "baserom.gba", 0x20E597, 0x0000250 + +gUnk_0820E7E7:: @ 0820E7E7 + .incbin "baserom.gba", 0x20E7E7, 0x0000102 + +gUnk_0820E8E9:: @ 0820E8E9 + .incbin "baserom.gba", 0x20E8E9, 0x000021A + +gUnk_0820EB03:: @ 0820EB03 + .incbin "baserom.gba", 0x20EB03, 0x000000C + +gUnk_0820EB0F:: @ 0820EB0F + .incbin "baserom.gba", 0x20EB0F, 0x0000075 + +gUnk_0820EB84:: @ 0820EB84 + .incbin "baserom.gba", 0x20EB84, 0x000009F + +gUnk_0820EC23:: @ 0820EC23 + .incbin "baserom.gba", 0x20EC23, 0x0000120 + +gUnk_0820ED43:: @ 0820ED43 + .incbin "baserom.gba", 0x20ED43, 0x0000021 + +gUnk_0820ED64:: @ 0820ED64 + .incbin "baserom.gba", 0x20ED64, 0x0000127 + +gUnk_0820EE8B:: @ 0820EE8B + .incbin "baserom.gba", 0x20EE8B, 0x0000175 + +gUnk_0820F000:: @ 0820F000 + .incbin "baserom.gba", 0x20F000, 0x00000E0 + +gUnk_0820F0E0:: @ 0820F0E0 + .incbin "baserom.gba", 0x20F0E0, 0x0000A4F + +gUnk_0820FB2F:: @ 0820FB2F + .incbin "baserom.gba", 0x20FB2F, 0x0000045 + +gUnk_0820FB74:: @ 0820FB74 + .incbin "baserom.gba", 0x20FB74, 0x0000388 + +gUnk_0820FEFC:: @ 0820FEFC + .incbin "baserom.gba", 0x20FEFC, 0x0000056 + +gUnk_0820FF52:: @ 0820FF52 + .incbin "baserom.gba", 0x20FF52, 0x000003B + +gUnk_0820FF8D:: @ 0820FF8D + .incbin "baserom.gba", 0x20FF8D, 0x0000019 + +gUnk_0820FFA6:: @ 0820FFA6 + .incbin "baserom.gba", 0x20FFA6, 0x000005A + +gUnk_08210000:: @ 08210000 + .incbin "baserom.gba", 0x210000, 0x0000024 + +gUnk_08210024:: @ 08210024 + .incbin "baserom.gba", 0x210024, 0x0000063 + +gUnk_08210087:: @ 08210087 + .incbin "baserom.gba", 0x210087, 0x0000052 + +gUnk_082100D9:: @ 082100D9 + .incbin "baserom.gba", 0x2100D9, 0x0000127 + +gUnk_08210200:: @ 08210200 + .incbin "baserom.gba", 0x210200, 0x0000120 + +gUnk_08210320:: @ 08210320 + .incbin "baserom.gba", 0x210320, 0x00001BC + +gUnk_082104DC:: @ 082104DC + .incbin "baserom.gba", 0x2104DC, 0x0000325 + +gUnk_08210801:: @ 08210801 + .incbin "baserom.gba", 0x210801, 0x00001E0 + +gUnk_082109E1:: @ 082109E1 + .incbin "baserom.gba", 0x2109E1, 0x000030A + +gUnk_08210CEB:: @ 08210CEB + .incbin "baserom.gba", 0x210CEB, 0x0000222 + +gUnk_08210F0D:: @ 08210F0D + .incbin "baserom.gba", 0x210F0D, 0x00000D3 + +gUnk_08210FE0:: @ 08210FE0 + .incbin "baserom.gba", 0x210FE0, 0x0000142 + +gUnk_08211122:: @ 08211122 + .incbin "baserom.gba", 0x211122, 0x0000133 + +gUnk_08211255:: @ 08211255 + .incbin "baserom.gba", 0x211255, 0x000000D + +gUnk_08211262:: @ 08211262 + .incbin "baserom.gba", 0x211262, 0x0000093 + +gUnk_082112F5:: @ 082112F5 + .incbin "baserom.gba", 0x2112F5, 0x0000838 + +gUnk_08211B2D:: @ 08211B2D + .incbin "baserom.gba", 0x211B2D, 0x00001CD + +gUnk_08211CFA:: @ 08211CFA + .incbin "baserom.gba", 0x211CFA, 0x000010C + +gUnk_08211E06:: @ 08211E06 + .incbin "baserom.gba", 0x211E06, 0x000029B + +gUnk_082120A1:: @ 082120A1 + .incbin "baserom.gba", 0x2120A1, 0x0000259 + +gUnk_082122FA:: @ 082122FA + .incbin "baserom.gba", 0x2122FA, 0x0000010 + +gUnk_0821230A:: @ 0821230A + .incbin "baserom.gba", 0x21230A, 0x0000723 + +gUnk_08212A2D:: @ 08212A2D + .incbin "baserom.gba", 0x212A2D, 0x00003F9 + +gUnk_08212E26:: @ 08212E26 + .incbin "baserom.gba", 0x212E26, 0x00000F2 + +gUnk_08212F18:: @ 08212F18 + .incbin "baserom.gba", 0x212F18, 0x0000116 + +gUnk_0821302E:: @ 0821302E + .incbin "baserom.gba", 0x21302E, 0x000000B + +gUnk_08213039:: @ 08213039 + .incbin "baserom.gba", 0x213039, 0x00000F3 + +gUnk_0821312C:: @ 0821312C + .incbin "baserom.gba", 0x21312C, 0x00001F6 + +gUnk_08213322:: @ 08213322 + .incbin "baserom.gba", 0x213322, 0x000001A + +gUnk_0821333C:: @ 0821333C + .incbin "baserom.gba", 0x21333C, 0x0000407 + +gUnk_08213743:: @ 08213743 + .incbin "baserom.gba", 0x213743, 0x0000312 + +gUnk_08213A55:: @ 08213A55 + .incbin "baserom.gba", 0x213A55, 0x00001EF + +gUnk_08213C44:: @ 08213C44 + .incbin "baserom.gba", 0x213C44, 0x0000010 + +gUnk_08213C54:: @ 08213C54 + .incbin "baserom.gba", 0x213C54, 0x00003AB + +gUnk_08213FFF:: @ 08213FFF + .incbin "baserom.gba", 0x213FFF, 0x0000108 + +gUnk_08214107:: @ 08214107 + .incbin "baserom.gba", 0x214107, 0x0000150 + +gUnk_08214257:: @ 08214257 + .incbin "baserom.gba", 0x214257, 0x0000001 + +gUnk_08214258:: @ 08214258 + .incbin "baserom.gba", 0x214258, 0x000035F + +gUnk_082145B7:: @ 082145B7 + .incbin "baserom.gba", 0x2145B7, 0x00005C7 + +gUnk_08214B7E:: @ 08214B7E + .incbin "baserom.gba", 0x214B7E, 0x0000C81 + +gUnk_082157FF:: @ 082157FF + .incbin "baserom.gba", 0x2157FF, 0x000377A + +gUnk_08218F79:: @ 08218F79 + .incbin "baserom.gba", 0x218F79, 0x000309F + +gUnk_0821C018:: @ 0821C018 + .incbin "baserom.gba", 0x21C018, 0x0002FE7 + +gUnk_0821EFFF:: @ 0821EFFF + .incbin "baserom.gba", 0x21EFFF, 0x00000F1 + +gUnk_0821F0F0:: @ 0821F0F0 + .incbin "baserom.gba", 0x21F0F0, 0x0000F11 + +gUnk_08220001:: @ 08220001 + .incbin "baserom.gba", 0x220001, 0x0000100 + +gUnk_08220101:: @ 08220101 + .incbin "baserom.gba", 0x220101, 0x0000002 + +gUnk_08220103:: @ 08220103 + .incbin "baserom.gba", 0x220103, 0x00001D2 + +gUnk_082202D5:: @ 082202D5 + .incbin "baserom.gba", 0x2202D5, 0x000002B + +gUnk_08220300:: @ 08220300 + .incbin "baserom.gba", 0x220300, 0x00002F7 + +gUnk_082205F7:: @ 082205F7 + .incbin "baserom.gba", 0x2205F7, 0x000073D + +gUnk_08220D34:: @ 08220D34 + .incbin "baserom.gba", 0x220D34, 0x00001BE + +gUnk_08220EF2:: @ 08220EF2 + .incbin "baserom.gba", 0x220EF2, 0x0000227 + +gUnk_08221119:: @ 08221119 + .incbin "baserom.gba", 0x221119, 0x00004E2 + +gUnk_082215FB:: @ 082215FB + .incbin "baserom.gba", 0x2215FB, 0x00003F6 + +gUnk_082219F1:: @ 082219F1 + .incbin "baserom.gba", 0x2219F1, 0x0000027 + +gUnk_08221A18:: @ 08221A18 + .incbin "baserom.gba", 0x221A18, 0x00001D6 + +gUnk_08221BEE:: @ 08221BEE + .incbin "baserom.gba", 0x221BEE, 0x0000212 + +gUnk_08221E00:: @ 08221E00 + .incbin "baserom.gba", 0x221E00, 0x00004EE + +gUnk_082222EE:: @ 082222EE + .incbin "baserom.gba", 0x2222EE, 0x0000056 + +gUnk_08222344:: @ 08222344 + .incbin "baserom.gba", 0x222344, 0x00000EF + +gUnk_08222433:: @ 08222433 + .incbin "baserom.gba", 0x222433, 0x0000055 + +gUnk_08222488:: @ 08222488 + .incbin "baserom.gba", 0x222488, 0x00001A5 + +gUnk_0822262D:: @ 0822262D + .incbin "baserom.gba", 0x22262D, 0x00004DA + +gUnk_08222B07:: @ 08222B07 + .incbin "baserom.gba", 0x222B07, 0x0000428 + +gUnk_08222F2F:: @ 08222F2F + .incbin "baserom.gba", 0x222F2F, 0x00000D8 + +gUnk_08223007:: @ 08223007 + .incbin "baserom.gba", 0x223007, 0x000022B + +gUnk_08223232:: @ 08223232 + .incbin "baserom.gba", 0x223232, 0x0000001 + +gUnk_08223233:: @ 08223233 + .incbin "baserom.gba", 0x223233, 0x0000210 + +gUnk_08223443:: @ 08223443 + .incbin "baserom.gba", 0x223443, 0x0000002 + +gUnk_08223445:: @ 08223445 + .incbin "baserom.gba", 0x223445, 0x000000E + +gUnk_08223453:: @ 08223453 + .incbin "baserom.gba", 0x223453, 0x00000D6 + +gUnk_08223529:: @ 08223529 + .incbin "baserom.gba", 0x223529, 0x0000014 + +gUnk_0822353D:: @ 0822353D + .incbin "baserom.gba", 0x22353D, 0x0000207 + +gUnk_08223744:: @ 08223744 + .incbin "baserom.gba", 0x223744, 0x0000E13 + +gUnk_08224557:: @ 08224557 + .incbin "baserom.gba", 0x224557, 0x00006F4 + +gUnk_08224C4B:: @ 08224C4B + .incbin "baserom.gba", 0x224C4B, 0x00002EA + +gUnk_08224F35:: @ 08224F35 + .incbin "baserom.gba", 0x224F35, 0x0000ED5 + +gUnk_08225E0A:: @ 08225E0A + .incbin "baserom.gba", 0x225E0A, 0x00021ED + +gUnk_08227FF7:: @ 08227FF7 + .incbin "baserom.gba", 0x227FF7, 0x0001014 + +gUnk_0822900B:: @ 0822900B + .incbin "baserom.gba", 0x22900B, 0x000019F + +gUnk_082291AA:: @ 082291AA + .incbin "baserom.gba", 0x2291AA, 0x0000B79 + +gUnk_08229D23:: @ 08229D23 + .incbin "baserom.gba", 0x229D23, 0x00007CB + +gUnk_0822A4EE:: @ 0822A4EE + .incbin "baserom.gba", 0x22A4EE, 0x0000F19 + +gUnk_0822B407:: @ 0822B407 + .incbin "baserom.gba", 0x22B407, 0x0002414 + +gUnk_0822D81B:: @ 0822D81B + .incbin "baserom.gba", 0x22D81B, 0x00013D5 + +gUnk_0822EBF0:: @ 0822EBF0 + .incbin "baserom.gba", 0x22EBF0, 0x0000413 + +gUnk_0822F003:: @ 0822F003 + .incbin "baserom.gba", 0x22F003, 0x0000401 + +gUnk_0822F404:: @ 0822F404 + .incbin "baserom.gba", 0x22F404, 0x00004CE + +gUnk_0822F8D2:: @ 0822F8D2 + .incbin "baserom.gba", 0x22F8D2, 0x0000010 + +gUnk_0822F8E2:: @ 0822F8E2 + .incbin "baserom.gba", 0x22F8E2, 0x00001D8 + +gUnk_0822FABA:: @ 0822FABA + .incbin "baserom.gba", 0x22FABA, 0x0000846 + +gUnk_08230300:: @ 08230300 + .incbin "baserom.gba", 0x230300, 0x00005A6 + +gUnk_082308A6:: @ 082308A6 + .incbin "baserom.gba", 0x2308A6, 0x0000038 + +gUnk_082308DE:: @ 082308DE + .incbin "baserom.gba", 0x2308DE, 0x0000347 + +gUnk_08230C25:: @ 08230C25 + .incbin "baserom.gba", 0x230C25, 0x00000B9 + +gUnk_08230CDE:: @ 08230CDE + .incbin "baserom.gba", 0x230CDE, 0x000060C + +gUnk_082312EA:: @ 082312EA + .incbin "baserom.gba", 0x2312EA, 0x0000424 + +gUnk_0823170E:: @ 0823170E + .incbin "baserom.gba", 0x23170E, 0x000052F + +gUnk_08231C3D:: @ 08231C3D + .incbin "baserom.gba", 0x231C3D, 0x00000D5 + +gUnk_08231D12:: @ 08231D12 + .incbin "baserom.gba", 0x231D12, 0x000000C + +gUnk_08231D1E:: @ 08231D1E + .incbin "baserom.gba", 0x231D1E, 0x00000F5 + +gUnk_08231E13:: @ 08231E13 + .incbin "baserom.gba", 0x231E13, 0x0000104 + +gUnk_08231F17:: @ 08231F17 + .incbin "baserom.gba", 0x231F17, 0x00001C1 + +gUnk_082320D8:: @ 082320D8 + .incbin "baserom.gba", 0x2320D8, 0x000015D + +gUnk_08232235:: @ 08232235 + .incbin "baserom.gba", 0x232235, 0x0000075 + +gUnk_082322AA:: @ 082322AA + .incbin "baserom.gba", 0x2322AA, 0x000015C + +gUnk_08232406:: @ 08232406 + .incbin "baserom.gba", 0x232406, 0x000003F + +gUnk_08232445:: @ 08232445 + .incbin "baserom.gba", 0x232445, 0x00001CB + +gUnk_08232610:: @ 08232610 + .incbin "baserom.gba", 0x232610, 0x000020C + +gUnk_0823281C:: @ 0823281C + .incbin "baserom.gba", 0x23281C, 0x00000F5 + +gUnk_08232911:: @ 08232911 + .incbin "baserom.gba", 0x232911, 0x000011C + +gUnk_08232A2D:: @ 08232A2D + .incbin "baserom.gba", 0x232A2D, 0x00000E1 + +gUnk_08232B0E:: @ 08232B0E + .incbin "baserom.gba", 0x232B0E, 0x000000F + +gUnk_08232B1D:: @ 08232B1D + .incbin "baserom.gba", 0x232B1D, 0x0000006 + +gUnk_08232B23:: @ 08232B23 + .incbin "baserom.gba", 0x232B23, 0x00001C8 + +gUnk_08232CEB:: @ 08232CEB + .incbin "baserom.gba", 0x232CEB, 0x000002D + +gUnk_08232D18:: @ 08232D18 + .incbin "baserom.gba", 0x232D18, 0x0000015 + +gUnk_08232D2D:: @ 08232D2D + .incbin "baserom.gba", 0x232D2D, 0x0000007 + +gUnk_08232D34:: @ 08232D34 + .incbin "baserom.gba", 0x232D34, 0x000015D + +gUnk_08232E91:: @ 08232E91 + .incbin "baserom.gba", 0x232E91, 0x000007C + +gUnk_08232F0D:: @ 08232F0D + .incbin "baserom.gba", 0x232F0D, 0x000000A + +gUnk_08232F17:: @ 08232F17 + .incbin "baserom.gba", 0x232F17, 0x000001F + +gUnk_08232F36:: @ 08232F36 + .incbin "baserom.gba", 0x232F36, 0x00000F3 + +gUnk_08233029:: @ 08233029 + .incbin "baserom.gba", 0x233029, 0x0000006 + +gUnk_0823302F:: @ 0823302F + .incbin "baserom.gba", 0x23302F, 0x0000008 + +gUnk_08233037:: @ 08233037 + .incbin "baserom.gba", 0x233037, 0x00001F4 + +gUnk_0823322B:: @ 0823322B + .incbin "baserom.gba", 0x23322B, 0x00000EB + +gUnk_08233316:: @ 08233316 + .incbin "baserom.gba", 0x233316, 0x000001D + +gUnk_08233333:: @ 08233333 + .incbin "baserom.gba", 0x233333, 0x0000002 + +gUnk_08233335:: @ 08233335 + .incbin "baserom.gba", 0x233335, 0x0000064 + +gUnk_08233399:: @ 08233399 + .incbin "baserom.gba", 0x233399, 0x000008A + +gUnk_08233423:: @ 08233423 + .incbin "baserom.gba", 0x233423, 0x000000E + +gUnk_08233431:: @ 08233431 + .incbin "baserom.gba", 0x233431, 0x0000003 + +gUnk_08233434:: @ 08233434 + .incbin "baserom.gba", 0x233434, 0x000020D + +gUnk_08233641:: @ 08233641 + .incbin "baserom.gba", 0x233641, 0x0000021 + +gUnk_08233662:: @ 08233662 + .incbin "baserom.gba", 0x233662, 0x00000D6 + +gUnk_08233738:: @ 08233738 + .incbin "baserom.gba", 0x233738, 0x0000103 + +gUnk_0823383B:: @ 0823383B + .incbin "baserom.gba", 0x23383B, 0x0000217 + +gUnk_08233A52:: @ 08233A52 + .incbin "baserom.gba", 0x233A52, 0x0000009 + +gUnk_08233A5B:: @ 08233A5B + .incbin "baserom.gba", 0x233A5B, 0x000012E + +gUnk_08233B89:: @ 08233B89 + .incbin "baserom.gba", 0x233B89, 0x00000BD + +gUnk_08233C46:: @ 08233C46 + .incbin "baserom.gba", 0x233C46, 0x000030F + +gUnk_08233F55:: @ 08233F55 + .incbin "baserom.gba", 0x233F55, 0x00002CC + +gUnk_08234221:: @ 08234221 + .incbin "baserom.gba", 0x234221, 0x000021A + +gUnk_0823443B:: @ 0823443B + .incbin "baserom.gba", 0x23443B, 0x0000207 + +gUnk_08234642:: @ 08234642 + .incbin "baserom.gba", 0x234642, 0x0000BA7 + +gUnk_082351E9:: @ 082351E9 + .incbin "baserom.gba", 0x2351E9, 0x0000265 + +gUnk_0823544E:: @ 0823544E + .incbin "baserom.gba", 0x23544E, 0x00005FF + +gUnk_08235A4D:: @ 08235A4D + .incbin "baserom.gba", 0x235A4D, 0x00009EE + +gUnk_0823643B:: @ 0823643B + .incbin "baserom.gba", 0x23643B, 0x0002AC8 + +gUnk_08238F03:: @ 08238F03 + .incbin "baserom.gba", 0x238F03, 0x0001BA6 + +gUnk_0823AAA9:: @ 0823AAA9 + .incbin "baserom.gba", 0x23AAA9, 0x0001C6C + +gUnk_0823C715:: @ 0823C715 + .incbin "baserom.gba", 0x23C715, 0x00013EF + +gUnk_0823DB04:: @ 0823DB04 + .incbin "baserom.gba", 0x23DB04, 0x0000FFC + +gUnk_0823EB00:: @ 0823EB00 + .incbin "baserom.gba", 0x23EB00, 0x0001109 + +gUnk_0823FC09:: @ 0823FC09 + .incbin "baserom.gba", 0x23FC09, 0x00003F7 + +gUnk_08240000:: @ 08240000 + .incbin "baserom.gba", 0x240000, 0x000000F + +gUnk_0824000F:: @ 0824000F + .incbin "baserom.gba", 0x24000F, 0x00000FA + +gUnk_08240109:: @ 08240109 + .incbin "baserom.gba", 0x240109, 0x000001A + +gUnk_08240123:: @ 08240123 + .incbin "baserom.gba", 0x240123, 0x00001DD + +gUnk_08240300:: @ 08240300 + .incbin "baserom.gba", 0x240300, 0x0000CE5 + +gUnk_08240FE5:: @ 08240FE5 + .incbin "baserom.gba", 0x240FE5, 0x000041A + +gUnk_082413FF:: @ 082413FF + .incbin "baserom.gba", 0x2413FF, 0x0000915 + +gUnk_08241D14:: @ 08241D14 + .incbin "baserom.gba", 0x241D14, 0x00002FF + +gUnk_08242013:: @ 08242013 + .incbin "baserom.gba", 0x242013, 0x00000E5 + +gUnk_082420F8:: @ 082420F8 + .incbin "baserom.gba", 0x2420F8, 0x000000C + +gUnk_08242104:: @ 08242104 + .incbin "baserom.gba", 0x242104, 0x000012E + +gUnk_08242232:: @ 08242232 + .incbin "baserom.gba", 0x242232, 0x00000A5 + +gUnk_082422D7:: @ 082422D7 + .incbin "baserom.gba", 0x2422D7, 0x000063F + +gUnk_08242916:: @ 08242916 + .incbin "baserom.gba", 0x242916, 0x0000122 + +gUnk_08242A38:: @ 08242A38 + .incbin "baserom.gba", 0x242A38, 0x00003E8 + +gUnk_08242E20:: @ 08242E20 + .incbin "baserom.gba", 0x242E20, 0x0000106 + +gUnk_08242F26:: @ 08242F26 + .incbin "baserom.gba", 0x242F26, 0x00001EB + +gUnk_08243111:: @ 08243111 + .incbin "baserom.gba", 0x243111, 0x0000121 + +gUnk_08243232:: @ 08243232 + .incbin "baserom.gba", 0x243232, 0x00006FB + +gUnk_0824392D:: @ 0824392D + .incbin "baserom.gba", 0x24392D, 0x0000016 + +gUnk_08243943:: @ 08243943 + .incbin "baserom.gba", 0x243943, 0x0000002 + +gUnk_08243945:: @ 08243945 + .incbin "baserom.gba", 0x243945, 0x0000202 + +gUnk_08243B47:: @ 08243B47 + .incbin "baserom.gba", 0x243B47, 0x0000002 + +gUnk_08243B49:: @ 08243B49 + .incbin "baserom.gba", 0x243B49, 0x000008D + +gUnk_08243BD6:: @ 08243BD6 + .incbin "baserom.gba", 0x243BD6, 0x0000267 + +gUnk_08243E3D:: @ 08243E3D + .incbin "baserom.gba", 0x243E3D, 0x000000F + +gUnk_08243E4C:: @ 08243E4C + .incbin "baserom.gba", 0x243E4C, 0x00000FC + +gUnk_08243F48:: @ 08243F48 + .incbin "baserom.gba", 0x243F48, 0x000032C + +gUnk_08244274:: @ 08244274 + .incbin "baserom.gba", 0x244274, 0x00000E1 + +gUnk_08244355:: @ 08244355 + .incbin "baserom.gba", 0x244355, 0x0000608 + +gUnk_0824495D:: @ 0824495D + .incbin "baserom.gba", 0x24495D, 0x0000BD8 + +gUnk_08245535:: @ 08245535 + .incbin "baserom.gba", 0x245535, 0x00005CB + +gUnk_08245B00:: @ 08245B00 + .incbin "baserom.gba", 0x245B00, 0x00019D4 + +gUnk_082474D4:: @ 082474D4 + .incbin "baserom.gba", 0x2474D4, 0x0004C0C + +gUnk_0824C0E0:: @ 0824C0E0 + .incbin "baserom.gba", 0x24C0E0, 0x00007C0 + +gUnk_0824C8A0:: @ 0824C8A0 + .incbin "baserom.gba", 0x24C8A0, 0x0001973 + +gUnk_0824E213:: @ 0824E213 + .incbin "baserom.gba", 0x24E213, 0x0000111 + +gUnk_0824E324:: @ 0824E324 + .incbin "baserom.gba", 0x24E324, 0x00001BF + +gUnk_0824E4E3:: @ 0824E4E3 + .incbin "baserom.gba", 0x24E4E3, 0x000031D + +gUnk_0824E800:: @ 0824E800 + .incbin "baserom.gba", 0x24E800, 0x00001B7 + +gUnk_0824E9B7:: @ 0824E9B7 + .incbin "baserom.gba", 0x24E9B7, 0x0001659 + +gUnk_08250010:: @ 08250010 + .incbin "baserom.gba", 0x250010, 0x0000030 + +gUnk_08250040:: @ 08250040 + .incbin "baserom.gba", 0x250040, 0x00000C7 + +gUnk_08250107:: @ 08250107 + .incbin "baserom.gba", 0x250107, 0x00002EF + +gUnk_082503F6:: @ 082503F6 + .incbin "baserom.gba", 0x2503F6, 0x000002E + +gUnk_08250424:: @ 08250424 + .incbin "baserom.gba", 0x250424, 0x0000C74 + +gUnk_08251098:: @ 08251098 + .incbin "baserom.gba", 0x251098, 0x0000071 + +gUnk_08251109:: @ 08251109 + .incbin "baserom.gba", 0x251109, 0x00002B3 + +gUnk_082513BC:: @ 082513BC + .incbin "baserom.gba", 0x2513BC, 0x0000B50 + +gUnk_08251F0C:: @ 08251F0C + .incbin "baserom.gba", 0x251F0C, 0x00001F9 + +gUnk_08252105:: @ 08252105 + .incbin "baserom.gba", 0x252105, 0x0000039 + +gUnk_0825213E:: @ 0825213E + .incbin "baserom.gba", 0x25213E, 0x00006DA + +gUnk_08252818:: @ 08252818 + .incbin "baserom.gba", 0x252818, 0x00008C2 + +gUnk_082530DA:: @ 082530DA + .incbin "baserom.gba", 0x2530DA, 0x0000259 + +gUnk_08253333:: @ 08253333 + .incbin "baserom.gba", 0x253333, 0x0000610 + +gUnk_08253943:: @ 08253943 + .incbin "baserom.gba", 0x253943, 0x00001FE + +gUnk_08253B41:: @ 08253B41 + .incbin "baserom.gba", 0x253B41, 0x0000109 + +gUnk_08253C4A:: @ 08253C4A + .incbin "baserom.gba", 0x253C4A, 0x0000309 + +gUnk_08253F53:: @ 08253F53 + .incbin "baserom.gba", 0x253F53, 0x0000503 + +gUnk_08254456:: @ 08254456 + .incbin "baserom.gba", 0x254456, 0x00010E5 + +gUnk_0825553B:: @ 0825553B + .incbin "baserom.gba", 0x25553B, 0x0000018 + +gUnk_08255553:: @ 08255553 + .incbin "baserom.gba", 0x255553, 0x0000068 + +gUnk_082555BB:: @ 082555BB + .incbin "baserom.gba", 0x2555BB, 0x0000FC3 + +gUnk_0825657E:: @ 0825657E + .incbin "baserom.gba", 0x25657E, 0x0007F37 + +gUnk_0825E4B5:: @ 0825E4B5 + .incbin "baserom.gba", 0x25E4B5, 0x0000344 + +gUnk_0825E7F9:: @ 0825E7F9 + .incbin "baserom.gba", 0x25E7F9, 0x0001808 + +gUnk_08260001:: @ 08260001 + .incbin "baserom.gba", 0x260001, 0x0000007 + +gUnk_08260008:: @ 08260008 + .incbin "baserom.gba", 0x260008, 0x0000038 + +gUnk_08260040:: @ 08260040 + .incbin "baserom.gba", 0x260040, 0x0000094 + +gUnk_082600D4:: @ 082600D4 + .incbin "baserom.gba", 0x2600D4, 0x0000300 + +gUnk_082603D4:: @ 082603D4 + .incbin "baserom.gba", 0x2603D4, 0x0000051 + +gUnk_08260425:: @ 08260425 + .incbin "baserom.gba", 0x260425, 0x0000034 + +gUnk_08260459:: @ 08260459 + .incbin "baserom.gba", 0x260459, 0x00002A9 + +gUnk_08260702:: @ 08260702 + .incbin "baserom.gba", 0x260702, 0x00004AE + +gUnk_08260BB0:: @ 08260BB0 + .incbin "baserom.gba", 0x260BB0, 0x0000348 + +gUnk_08260EF8:: @ 08260EF8 + .incbin "baserom.gba", 0x260EF8, 0x0000011 + +gUnk_08260F09:: @ 08260F09 + .incbin "baserom.gba", 0x260F09, 0x0000D6C + +gUnk_08261C75:: @ 08261C75 + .incbin "baserom.gba", 0x261C75, 0x000009E + +gUnk_08261D13:: @ 08261D13 + .incbin "baserom.gba", 0x261D13, 0x0000401 + +gUnk_08262114:: @ 08262114 + .incbin "baserom.gba", 0x262114, 0x00004F1 + +gUnk_08262605:: @ 08262605 + .incbin "baserom.gba", 0x262605, 0x0000316 + +gUnk_0826291B:: @ 0826291B + .incbin "baserom.gba", 0x26291B, 0x0000307 + +gUnk_08262C22:: @ 08262C22 + .incbin "baserom.gba", 0x262C22, 0x0000407 + +gUnk_08263029:: @ 08263029 + .incbin "baserom.gba", 0x263029, 0x00002FA + +gUnk_08263323:: @ 08263323 + .incbin "baserom.gba", 0x263323, 0x000051D + +gUnk_08263840:: @ 08263840 + .incbin "baserom.gba", 0x263840, 0x0000206 + +gUnk_08263A46:: @ 08263A46 + .incbin "baserom.gba", 0x263A46, 0x0000508 + +gUnk_08263F4E:: @ 08263F4E + .incbin "baserom.gba", 0x263F4E, 0x0000005 + +gUnk_08263F53:: @ 08263F53 + .incbin "baserom.gba", 0x263F53, 0x00001FD + +gUnk_08264150:: @ 08264150 + .incbin "baserom.gba", 0x264150, 0x00003E0 + +gUnk_08264530:: @ 08264530 + .incbin "baserom.gba", 0x264530, 0x0000335 + +gUnk_08264865:: @ 08264865 + .incbin "baserom.gba", 0x264865, 0x00002D8 + +gUnk_08264B3D:: @ 08264B3D + .incbin "baserom.gba", 0x264B3D, 0x000031C + +gUnk_08264E59:: @ 08264E59 + .incbin "baserom.gba", 0x264E59, 0x0000113 + +gUnk_08264F6C:: @ 08264F6C + .incbin "baserom.gba", 0x264F6C, 0x000835A + +gUnk_0826D2C6:: @ 0826D2C6 + .incbin "baserom.gba", 0x26D2C6, 0x0000530 + +gUnk_0826D7F6:: @ 0826D7F6 + .incbin "baserom.gba", 0x26D7F6, 0x0000990 + +gUnk_0826E186:: @ 0826E186 + .incbin "baserom.gba", 0x26E186, 0x0000C68 + +gUnk_0826EDEE:: @ 0826EDEE + .incbin "baserom.gba", 0x26EDEE, 0x00011FE + +gUnk_0826FFEC:: @ 0826FFEC + .incbin "baserom.gba", 0x26FFEC, 0x0000014 + +gUnk_08270000:: @ 08270000 + .incbin "baserom.gba", 0x270000, 0x0000001 + +gUnk_08270001:: @ 08270001 + .incbin "baserom.gba", 0x270001, 0x000000F + +gUnk_08270010:: @ 08270010 + .incbin "baserom.gba", 0x270010, 0x0000001 + +gUnk_08270011:: @ 08270011 + .incbin "baserom.gba", 0x270011, 0x00000E0 + +gUnk_082700F1:: @ 082700F1 + .incbin "baserom.gba", 0x2700F1, 0x00000E7 + +gUnk_082701D8:: @ 082701D8 + .incbin "baserom.gba", 0x2701D8, 0x000042E + +gUnk_08270606:: @ 08270606 + .incbin "baserom.gba", 0x270606, 0x000011A + +gUnk_08270720:: @ 08270720 + .incbin "baserom.gba", 0x270720, 0x00002CD + +gUnk_082709ED:: @ 082709ED + .incbin "baserom.gba", 0x2709ED, 0x000051C + +gUnk_08270F09:: @ 08270F09 + .incbin "baserom.gba", 0x270F09, 0x00000F8 + +gUnk_08271001:: @ 08271001 + .incbin "baserom.gba", 0x271001, 0x0000065 + +gUnk_08271066:: @ 08271066 + .incbin "baserom.gba", 0x271066, 0x000025C + +gUnk_082712C2:: @ 082712C2 + .incbin "baserom.gba", 0x2712C2, 0x0000033 + +gUnk_082712F5:: @ 082712F5 + .incbin "baserom.gba", 0x2712F5, 0x00001E8 + +gUnk_082714DD:: @ 082714DD + .incbin "baserom.gba", 0x2714DD, 0x0000A1E + +gUnk_08271EFB:: @ 08271EFB + .incbin "baserom.gba", 0x271EFB, 0x0000718 + +gUnk_08272613:: @ 08272613 + .incbin "baserom.gba", 0x272613, 0x0000204 + +gUnk_08272817:: @ 08272817 + .incbin "baserom.gba", 0x272817, 0x00000E1 + +gUnk_082728F8:: @ 082728F8 + .incbin "baserom.gba", 0x2728F8, 0x0000023 + +gUnk_0827291B:: @ 0827291B + .incbin "baserom.gba", 0x27291B, 0x00001F8 + +gUnk_08272B13:: @ 08272B13 + .incbin "baserom.gba", 0x272B13, 0x000024D + +gUnk_08272D60:: @ 08272D60 + .incbin "baserom.gba", 0x272D60, 0x00001CD + +gUnk_08272F2D:: @ 08272F2D + .incbin "baserom.gba", 0x272F2D, 0x00006F5 + +gUnk_08273622:: @ 08273622 + .incbin "baserom.gba", 0x273622, 0x000031C + +gUnk_0827393E:: @ 0827393E + .incbin "baserom.gba", 0x27393E, 0x000040F + +gUnk_08273D4D:: @ 08273D4D + .incbin "baserom.gba", 0x273D4D, 0x0000101 + +gUnk_08273E4E:: @ 08273E4E + .incbin "baserom.gba", 0x273E4E, 0x00003DC + +gUnk_0827422A:: @ 0827422A + .incbin "baserom.gba", 0x27422A, 0x0000422 + +gUnk_0827464C:: @ 0827464C + .incbin "baserom.gba", 0x27464C, 0x0000011 + +gUnk_0827465D:: @ 0827465D + .incbin "baserom.gba", 0x27465D, 0x0002CAE + +gUnk_0827730B:: @ 0827730B + .incbin "baserom.gba", 0x27730B, 0x0001D03 + +gUnk_0827900E:: @ 0827900E + .incbin "baserom.gba", 0x27900E, 0x0004412 + +gUnk_0827D420:: @ 0827D420 + .incbin "baserom.gba", 0x27D420, 0x0000FEC + +gUnk_0827E40C:: @ 0827E40C + .incbin "baserom.gba", 0x27E40C, 0x000120A + +gUnk_0827F616:: @ 0827F616 + .incbin "baserom.gba", 0x27F616, 0x00009F3 + +gUnk_08280009:: @ 08280009 + .incbin "baserom.gba", 0x280009, 0x000001E + +gUnk_08280027:: @ 08280027 + .incbin "baserom.gba", 0x280027, 0x0000F01 + +gUnk_08280F28:: @ 08280F28 + .incbin "baserom.gba", 0x280F28, 0x00003CB + +gUnk_082812F3:: @ 082812F3 + .incbin "baserom.gba", 0x2812F3, 0x0000F8E + +gUnk_08282281:: @ 08282281 + .incbin "baserom.gba", 0x282281, 0x0000679 + +gUnk_082828FA:: @ 082828FA + .incbin "baserom.gba", 0x2828FA, 0x000042E + +gUnk_08282D28:: @ 08282D28 + .incbin "baserom.gba", 0x282D28, 0x0000013 + +gUnk_08282D3B:: @ 08282D3B + .incbin "baserom.gba", 0x282D3B, 0x0000202 + +gUnk_08282F3D:: @ 08282F3D + .incbin "baserom.gba", 0x282F3D, 0x00002E1 + +gUnk_0828321E:: @ 0828321E + .incbin "baserom.gba", 0x28321E, 0x00003FB + +gUnk_08283619:: @ 08283619 + .incbin "baserom.gba", 0x283619, 0x0000A3A + +gUnk_08284053:: @ 08284053 + .incbin "baserom.gba", 0x284053, 0x0000301 + +gUnk_08284354:: @ 08284354 + .incbin "baserom.gba", 0x284354, 0x00000D9 + +gUnk_0828442D:: @ 0828442D + .incbin "baserom.gba", 0x28442D, 0x0000332 + +gUnk_0828475F:: @ 0828475F + .incbin "baserom.gba", 0x28475F, 0x00002F0 + +gUnk_08284A4F:: @ 08284A4F + .incbin "baserom.gba", 0x284A4F, 0x00015B1 + +gUnk_08286000:: @ 08286000 + .incbin "baserom.gba", 0x286000, 0x000016C + +gUnk_0828616C:: @ 0828616C + .incbin "baserom.gba", 0x28616C, 0x0008C48 + +gUnk_0828EDB4:: @ 0828EDB4 + .incbin "baserom.gba", 0x28EDB4, 0x0000826 + +gUnk_0828F5DA:: @ 0828F5DA + .incbin "baserom.gba", 0x28F5DA, 0x0001009 + +gUnk_082905E3:: @ 082905E3 + .incbin "baserom.gba", 0x2905E3, 0x000011D + +gUnk_08290700:: @ 08290700 + .incbin "baserom.gba", 0x290700, 0x00001EE + +gUnk_082908EE:: @ 082908EE + .incbin "baserom.gba", 0x2908EE, 0x0000017 + +gUnk_08290905:: @ 08290905 + .incbin "baserom.gba", 0x290905, 0x0000601 + +gUnk_08290F06:: @ 08290F06 + .incbin "baserom.gba", 0x290F06, 0x00006E5 + +gUnk_082915EB:: @ 082915EB + .incbin "baserom.gba", 0x2915EB, 0x0000303 + +gUnk_082918EE:: @ 082918EE + .incbin "baserom.gba", 0x2918EE, 0x000078F + +gUnk_0829207D:: @ 0829207D + .incbin "baserom.gba", 0x29207D, 0x0000192 + +gUnk_0829220F:: @ 0829220F + .incbin "baserom.gba", 0x29220F, 0x00005CF + +gUnk_082927DE:: @ 082927DE + .incbin "baserom.gba", 0x2927DE, 0x000003A + +gUnk_08292818:: @ 08292818 + .incbin "baserom.gba", 0x292818, 0x00001F4 + +gUnk_08292A0C:: @ 08292A0C + .incbin "baserom.gba", 0x292A0C, 0x000048D + +gUnk_08292E99:: @ 08292E99 + .incbin "baserom.gba", 0x292E99, 0x0000298 + +gUnk_08293131:: @ 08293131 + .incbin "baserom.gba", 0x293131, 0x0000C27 + +gUnk_08293D58:: @ 08293D58 + .incbin "baserom.gba", 0x293D58, 0x00002FC + +gUnk_08294054:: @ 08294054 + .incbin "baserom.gba", 0x294054, 0x00001FB + +gUnk_0829424F:: @ 0829424F + .incbin "baserom.gba", 0x29424F, 0x0000001 + +gUnk_08294250:: @ 08294250 + .incbin "baserom.gba", 0x294250, 0x000030E + +gUnk_0829455E:: @ 0829455E + .incbin "baserom.gba", 0x29455E, 0x00002F1 + +gUnk_0829484F:: @ 0829484F + .incbin "baserom.gba", 0x29484F, 0x0000205 + +gUnk_08294A54:: @ 08294A54 + .incbin "baserom.gba", 0x294A54, 0x0000106 + +gUnk_08294B5A:: @ 08294B5A + .incbin "baserom.gba", 0x294B5A, 0x00008CB + +gUnk_08295425:: @ 08295425 + .incbin "baserom.gba", 0x295425, 0x0000223 + +gUnk_08295648:: @ 08295648 + .incbin "baserom.gba", 0x295648, 0x0005ABB + +gUnk_0829B103:: @ 0829B103 + .incbin "baserom.gba", 0x29B103, 0x0002DE9 + +gUnk_0829DEEC:: @ 0829DEEC + .incbin "baserom.gba", 0x29DEEC, 0x0002114 + +gUnk_082A0000:: @ 082A0000 + .incbin "baserom.gba", 0x2A0000, 0x0000004 + +gUnk_082A0004:: @ 082A0004 + .incbin "baserom.gba", 0x2A0004, 0x0000005 + +gUnk_082A0009:: @ 082A0009 + .incbin "baserom.gba", 0x2A0009, 0x0000001 + +gUnk_082A000A:: @ 082A000A + .incbin "baserom.gba", 0x2A000A, 0x0000004 + +gUnk_082A000E:: @ 082A000E + .incbin "baserom.gba", 0x2A000E, 0x0000002 + +gUnk_082A0010:: @ 082A0010 + .incbin "baserom.gba", 0x2A0010, 0x0000008 + +gUnk_082A0018:: @ 082A0018 + .incbin "baserom.gba", 0x2A0018, 0x0000004 + +gUnk_082A001C:: @ 082A001C + .incbin "baserom.gba", 0x2A001C, 0x0000017 + +gUnk_082A0033:: @ 082A0033 + .incbin "baserom.gba", 0x2A0033, 0x000003F + +gUnk_082A0072:: @ 082A0072 + .incbin "baserom.gba", 0x2A0072, 0x000038F + +gUnk_082A0401:: @ 082A0401 + .incbin "baserom.gba", 0x2A0401, 0x000000F + +gUnk_082A0410:: @ 082A0410 + .incbin "baserom.gba", 0x2A0410, 0x0000024 + +gUnk_082A0434:: @ 082A0434 + .incbin "baserom.gba", 0x2A0434, 0x000000F + +gUnk_082A0443:: @ 082A0443 + .incbin "baserom.gba", 0x2A0443, 0x0000001 + +gUnk_082A0444:: @ 082A0444 + .incbin "baserom.gba", 0x2A0444, 0x0000010 + +gUnk_082A0454:: @ 082A0454 + .incbin "baserom.gba", 0x2A0454, 0x0000005 + +gUnk_082A0459:: @ 082A0459 + .incbin "baserom.gba", 0x2A0459, 0x000000A + +gUnk_082A0463:: @ 082A0463 + .incbin "baserom.gba", 0x2A0463, 0x0000025 + +gUnk_082A0488:: @ 082A0488 + .incbin "baserom.gba", 0x2A0488, 0x0000379 + +gUnk_082A0801:: @ 082A0801 + .incbin "baserom.gba", 0x2A0801, 0x0000004 + +gUnk_082A0805:: @ 082A0805 + .incbin "baserom.gba", 0x2A0805, 0x0000002 + +gUnk_082A0807:: @ 082A0807 + .incbin "baserom.gba", 0x2A0807, 0x0000022 + +gUnk_082A0829:: @ 082A0829 + .incbin "baserom.gba", 0x2A0829, 0x0000AB5 + +gUnk_082A12DE:: @ 082A12DE + .incbin "baserom.gba", 0x2A12DE, 0x0000106 + +gUnk_082A13E4:: @ 082A13E4 + .incbin "baserom.gba", 0x2A13E4, 0x0000437 + +gUnk_082A181B:: @ 082A181B + .incbin "baserom.gba", 0x2A181B, 0x00003BC + +gUnk_082A1BD7:: @ 082A1BD7 + .incbin "baserom.gba", 0x2A1BD7, 0x0000731 + +gUnk_082A2308:: @ 082A2308 + .incbin "baserom.gba", 0x2A2308, 0x00000F3 + +gUnk_082A23FB:: @ 082A23FB + .incbin "baserom.gba", 0x2A23FB, 0x0000309 + +gUnk_082A2704:: @ 082A2704 + .incbin "baserom.gba", 0x2A2704, 0x00001E5 + +gUnk_082A28E9:: @ 082A28E9 + .incbin "baserom.gba", 0x2A28E9, 0x0000831 + +gUnk_082A311A:: @ 082A311A + .incbin "baserom.gba", 0x2A311A, 0x000090E + +gUnk_082A3A28:: @ 082A3A28 + .incbin "baserom.gba", 0x2A3A28, 0x0000009 + +gUnk_082A3A31:: @ 082A3A31 + .incbin "baserom.gba", 0x2A3A31, 0x00003F4 + +gUnk_082A3E25:: @ 082A3E25 + .incbin "baserom.gba", 0x2A3E25, 0x0000108 + +gUnk_082A3F2D:: @ 082A3F2D + .incbin "baserom.gba", 0x2A3F2D, 0x000041A + +gUnk_082A4347:: @ 082A4347 + .incbin "baserom.gba", 0x2A4347, 0x000000E + +gUnk_082A4355:: @ 082A4355 + .incbin "baserom.gba", 0x2A4355, 0x00000ED + +gUnk_082A4442:: @ 082A4442 + .incbin "baserom.gba", 0x2A4442, 0x000000B + +gUnk_082A444D:: @ 082A444D + .incbin "baserom.gba", 0x2A444D, 0x00000F2 + +gUnk_082A453F:: @ 082A453F + .incbin "baserom.gba", 0x2A453F, 0x0000007 + +gUnk_082A4546:: @ 082A4546 + .incbin "baserom.gba", 0x2A4546, 0x000020E + +gUnk_082A4754:: @ 082A4754 + .incbin "baserom.gba", 0x2A4754, 0x000020E + +gUnk_082A4962:: @ 082A4962 + .incbin "baserom.gba", 0x2A4962, 0x00000D5 + +gUnk_082A4A37:: @ 082A4A37 + .incbin "baserom.gba", 0x2A4A37, 0x0000020 + +gUnk_082A4A57:: @ 082A4A57 + .incbin "baserom.gba", 0x2A4A57, 0x0000603 + +gUnk_082A505A:: @ 082A505A + .incbin "baserom.gba", 0x2A505A, 0x0005CB1 + +gUnk_082AAD0B:: @ 082AAD0B + .incbin "baserom.gba", 0x2AAD0B, 0x0000EAF + +gUnk_082ABBBA:: @ 082ABBBA + .incbin "baserom.gba", 0x2ABBBA, 0x0000332 + +gUnk_082ABEEC:: @ 082ABEEC + .incbin "baserom.gba", 0x2ABEEC, 0x000270A + +gUnk_082AE5F6:: @ 082AE5F6 + .incbin "baserom.gba", 0x2AE5F6, 0x000020F + +gUnk_082AE805:: @ 082AE805 + .incbin "baserom.gba", 0x2AE805, 0x000166B + +gUnk_082AFE70:: @ 082AFE70 + .incbin "baserom.gba", 0x2AFE70, 0x000015E + +gUnk_082AFFCE:: @ 082AFFCE + .incbin "baserom.gba", 0x2AFFCE, 0x0000F3B + +gUnk_082B0F09:: @ 082B0F09 + .incbin "baserom.gba", 0x2B0F09, 0x0000529 + +gUnk_082B1432:: @ 082B1432 + .incbin "baserom.gba", 0x2B1432, 0x00009BD + +gUnk_082B1DEF:: @ 082B1DEF + .incbin "baserom.gba", 0x2B1DEF, 0x000060F + +gUnk_082B23FE:: @ 082B23FE + .incbin "baserom.gba", 0x2B23FE, 0x00006E4 + +gUnk_082B2AE2:: @ 082B2AE2 + .incbin "baserom.gba", 0x2B2AE2, 0x000092E + +gUnk_082B3410:: @ 082B3410 + .incbin "baserom.gba", 0x2B3410, 0x0000234 + +gUnk_082B3644:: @ 082B3644 + .incbin "baserom.gba", 0x2B3644, 0x0000115 + +gUnk_082B3759:: @ 082B3759 + .incbin "baserom.gba", 0x2B3759, 0x00005E3 + +gUnk_082B3D3C:: @ 082B3D3C + .incbin "baserom.gba", 0x2B3D3C, 0x0000224 + +gUnk_082B3F60:: @ 082B3F60 + .incbin "baserom.gba", 0x2B3F60, 0x00005B4 + +gUnk_082B4514:: @ 082B4514 + .incbin "baserom.gba", 0x2B4514, 0x0000448 + +gUnk_082B495C:: @ 082B495C + .incbin "baserom.gba", 0x2B495C, 0x0000008 + +gUnk_082B4964:: @ 082B4964 + .incbin "baserom.gba", 0x2B4964, 0x0000A05 + +gUnk_082B5369:: @ 082B5369 + .incbin "baserom.gba", 0x2B5369, 0x0002C97 + +gUnk_082B8000:: @ 082B8000 + .incbin "baserom.gba", 0x2B8000, 0x0005C81 + +gUnk_082BDC81:: @ 082BDC81 + .incbin "baserom.gba", 0x2BDC81, 0x0001F3B + +gUnk_082BFBBC:: @ 082BFBBC + .incbin "baserom.gba", 0x2BFBBC, 0x00002C7 + +gUnk_082BFE83:: @ 082BFE83 + .incbin "baserom.gba", 0x2BFE83, 0x000017D + +gUnk_082C0000:: @ 082C0000 + .incbin "baserom.gba", 0x2C0000, 0x000003C + +gUnk_082C003C:: @ 082C003C + .incbin "baserom.gba", 0x2C003C, 0x0000024 + +gUnk_082C0060:: @ 082C0060 + .incbin "baserom.gba", 0x2C0060, 0x00000A7 + +gUnk_082C0107:: @ 082C0107 + .incbin "baserom.gba", 0x2C0107, 0x0000724 + +gUnk_082C082B:: @ 082C082B + .incbin "baserom.gba", 0x2C082B, 0x00002D5 + +gUnk_082C0B00:: @ 082C0B00 + .incbin "baserom.gba", 0x2C0B00, 0x0000406 + +gUnk_082C0F06:: @ 082C0F06 + .incbin "baserom.gba", 0x2C0F06, 0x00016FF + +gUnk_082C2605:: @ 082C2605 + .incbin "baserom.gba", 0x2C2605, 0x00002FE + +gUnk_082C2903:: @ 082C2903 + .incbin "baserom.gba", 0x2C2903, 0x0000E14 + +gUnk_082C3717:: @ 082C3717 + .incbin "baserom.gba", 0x2C3717, 0x0000225 + +gUnk_082C393C:: @ 082C393C + .incbin "baserom.gba", 0x2C393C, 0x00001DB + +gUnk_082C3B17:: @ 082C3B17 + .incbin "baserom.gba", 0x2C3B17, 0x000033A + +gUnk_082C3E51:: @ 082C3E51 + .incbin "baserom.gba", 0x2C3E51, 0x00005E6 + +gUnk_082C4437:: @ 082C4437 + .incbin "baserom.gba", 0x2C4437, 0x0001C39 + +gUnk_082C6070:: @ 082C6070 + .incbin "baserom.gba", 0x2C6070, 0x0000FB1 + +gUnk_082C7021:: @ 082C7021 + .incbin "baserom.gba", 0x2C7021, 0x0000AFF + +gUnk_082C7B20:: @ 082C7B20 + .incbin "baserom.gba", 0x2C7B20, 0x0004D18 + +gUnk_082CC838:: @ 082CC838 + .incbin "baserom.gba", 0x2CC838, 0x000249E + +gUnk_082CECD6:: @ 082CECD6 + .incbin "baserom.gba", 0x2CECD6, 0x000132A + +gUnk_082D0000:: @ 082D0000 + .incbin "baserom.gba", 0x2D0000, 0x000006E + +gUnk_082D006E:: @ 082D006E + .incbin "baserom.gba", 0x2D006E, 0x0000060 + +gUnk_082D00CE:: @ 082D00CE + .incbin "baserom.gba", 0x2D00CE, 0x0000171 + +gUnk_082D023F:: @ 082D023F + .incbin "baserom.gba", 0x2D023F, 0x0000204 + +gUnk_082D0443:: @ 082D0443 + .incbin "baserom.gba", 0x2D0443, 0x0000001 + +gUnk_082D0444:: @ 082D0444 + .incbin "baserom.gba", 0x2D0444, 0x0000015 + +gUnk_082D0459:: @ 082D0459 + .incbin "baserom.gba", 0x2D0459, 0x000002F + +gUnk_082D0488:: @ 082D0488 + .incbin "baserom.gba", 0x2D0488, 0x0000EA1 + +gUnk_082D1329:: @ 082D1329 + .incbin "baserom.gba", 0x2D1329, 0x0000716 + +gUnk_082D1A3F:: @ 082D1A3F + .incbin "baserom.gba", 0x2D1A3F, 0x0000AF1 + +gUnk_082D2530:: @ 082D2530 + .incbin "baserom.gba", 0x2D2530, 0x00001F5 + +gUnk_082D2725:: @ 082D2725 + .incbin "baserom.gba", 0x2D2725, 0x00003F6 + +gUnk_082D2B1B:: @ 082D2B1B + .incbin "baserom.gba", 0x2D2B1B, 0x00000F4 + +gUnk_082D2C0F:: @ 082D2C0F + .incbin "baserom.gba", 0x2D2C0F, 0x0000A1A + +gUnk_082D3629:: @ 082D3629 + .incbin "baserom.gba", 0x2D3629, 0x0000B0F + +gUnk_082D4138:: @ 082D4138 + .incbin "baserom.gba", 0x2D4138, 0x000075C + +gUnk_082D4894:: @ 082D4894 + .incbin "baserom.gba", 0x2D4894, 0x00004CD + +gUnk_082D4D61:: @ 082D4D61 + .incbin "baserom.gba", 0x2D4D61, 0x0000208 + +gUnk_082D4F69:: @ 082D4F69 + .incbin "baserom.gba", 0x2D4F69, 0x00004D7 + +gUnk_082D5440:: @ 082D5440 + .incbin "baserom.gba", 0x2D5440, 0x000012D + +gUnk_082D556D:: @ 082D556D + .incbin "baserom.gba", 0x2D556D, 0x00004ED + +gUnk_082D5A5A:: @ 082D5A5A + .incbin "baserom.gba", 0x2D5A5A, 0x00000FB + +gUnk_082D5B55:: @ 082D5B55 + .incbin "baserom.gba", 0x2D5B55, 0x0007F92 + +gUnk_082DDAE7:: @ 082DDAE7 + .incbin "baserom.gba", 0x2DDAE7, 0x00024E9 + +gUnk_082DFFD0:: @ 082DFFD0 + .incbin "baserom.gba", 0x2DFFD0, 0x000006C + +gUnk_082E003C:: @ 082E003C + .incbin "baserom.gba", 0x2E003C, 0x0000001 + +gUnk_082E003D:: @ 082E003D + .incbin "baserom.gba", 0x2E003D, 0x00010AA + +gUnk_082E10E7:: @ 082E10E7 + .incbin "baserom.gba", 0x2E10E7, 0x0000024 + +gUnk_082E110B:: @ 082E110B + .incbin "baserom.gba", 0x2E110B, 0x00003FE + +gUnk_082E1509:: @ 082E1509 + .incbin "baserom.gba", 0x2E1509, 0x0000211 + +gUnk_082E171A:: @ 082E171A + .incbin "baserom.gba", 0x2E171A, 0x0000AF8 + +gUnk_082E2212:: @ 082E2212 + .incbin "baserom.gba", 0x2E2212, 0x0000AE9 + +gUnk_082E2CFB:: @ 082E2CFB + .incbin "baserom.gba", 0x2E2CFB, 0x0001805 + +gUnk_082E4500:: @ 082E4500 + .incbin "baserom.gba", 0x2E4500, 0x000053A + +gUnk_082E4A3A:: @ 082E4A3A + .incbin "baserom.gba", 0x2E4A3A, 0x0000F1B + +gUnk_082E5955:: @ 082E5955 + .incbin "baserom.gba", 0x2E5955, 0x0000F9F + +gUnk_082E68F4:: @ 082E68F4 + .incbin "baserom.gba", 0x2E68F4, 0x0001081 + +gUnk_082E7975:: @ 082E7975 + .incbin "baserom.gba", 0x2E7975, 0x00003B4 + +gUnk_082E7D29:: @ 082E7D29 + .incbin "baserom.gba", 0x2E7D29, 0x00045C2 + +gUnk_082EC2EB:: @ 082EC2EB + .incbin "baserom.gba", 0x2EC2EB, 0x0002113 + +gUnk_082EE3FE:: @ 082EE3FE + .incbin "baserom.gba", 0x2EE3FE, 0x0000A23 + +gUnk_082EEE21:: @ 082EEE21 + .incbin "baserom.gba", 0x2EEE21, 0x00011DF + +gUnk_082F0000:: @ 082F0000 + .incbin "baserom.gba", 0x2F0000, 0x0000008 + +gUnk_082F0008:: @ 082F0008 + .incbin "baserom.gba", 0x2F0008, 0x0000008 + +gUnk_082F0010:: @ 082F0010 + .incbin "baserom.gba", 0x2F0010, 0x0000005 + +gUnk_082F0015:: @ 082F0015 + .incbin "baserom.gba", 0x2F0015, 0x0000009 + +gUnk_082F001E:: @ 082F001E + .incbin "baserom.gba", 0x2F001E, 0x00000B4 + +gUnk_082F00D2:: @ 082F00D2 + .incbin "baserom.gba", 0x2F00D2, 0x000002C + +gUnk_082F00FE:: @ 082F00FE + .incbin "baserom.gba", 0x2F00FE, 0x0000339 + +gUnk_082F0437:: @ 082F0437 + .incbin "baserom.gba", 0x2F0437, 0x0000022 + +gUnk_082F0459:: @ 082F0459 + .incbin "baserom.gba", 0x2F0459, 0x0000025 + +gUnk_082F047E:: @ 082F047E + .incbin "baserom.gba", 0x2F047E, 0x0000389 + +gUnk_082F0807:: @ 082F0807 + .incbin "baserom.gba", 0x2F0807, 0x00006FC + +gUnk_082F0F03:: @ 082F0F03 + .incbin "baserom.gba", 0x2F0F03, 0x0000600 + +gUnk_082F1503:: @ 082F1503 + .incbin "baserom.gba", 0x2F1503, 0x0000804 + +gUnk_082F1D07:: @ 082F1D07 + .incbin "baserom.gba", 0x2F1D07, 0x0000AED + +gUnk_082F27F4:: @ 082F27F4 + .incbin "baserom.gba", 0x2F27F4, 0x000031B + +gUnk_082F2B0F:: @ 082F2B0F + .incbin "baserom.gba", 0x2F2B0F, 0x0001265 + +gUnk_082F3D74:: @ 082F3D74 + .incbin "baserom.gba", 0x2F3D74, 0x000018F + +gUnk_082F3F03:: @ 082F3F03 + .incbin "baserom.gba", 0x2F3F03, 0x0000015 + +gUnk_082F3F18:: @ 082F3F18 + .incbin "baserom.gba", 0x2F3F18, 0x0000215 + +gUnk_082F412D:: @ 082F412D + .incbin "baserom.gba", 0x2F412D, 0x000030B + +gUnk_082F4438:: @ 082F4438 + .incbin "baserom.gba", 0x2F4438, 0x0000BCF + +gUnk_082F5007:: @ 082F5007 + .incbin "baserom.gba", 0x2F5007, 0x0000051 + +gUnk_082F5058:: @ 082F5058 + .incbin "baserom.gba", 0x2F5058, 0x00000B9 + +gUnk_082F5111:: @ 082F5111 + .incbin "baserom.gba", 0x2F5111, 0x000015B + +gUnk_082F526C:: @ 082F526C + .incbin "baserom.gba", 0x2F526C, 0x00079B8 + +gUnk_082FCC24:: @ 082FCC24 + .incbin "baserom.gba", 0x2FCC24, 0x00011D5 + +gUnk_082FDDF9:: @ 082FDDF9 + .incbin "baserom.gba", 0x2FDDF9, 0x00004E8 + +gUnk_082FE2E1:: @ 082FE2E1 + .incbin "baserom.gba", 0x2FE2E1, 0x0001CBE + +gUnk_082FFF9F:: @ 082FFF9F + .incbin "baserom.gba", 0x2FFF9F, 0x0000061 + +gUnk_08300000:: @ 08300000 + .incbin "baserom.gba", 0x300000, 0x0000009 + +gUnk_08300009:: @ 08300009 + .incbin "baserom.gba", 0x300009, 0x0000018 + +gUnk_08300021:: @ 08300021 + .incbin "baserom.gba", 0x300021, 0x0000104 + +gUnk_08300125:: @ 08300125 + .incbin "baserom.gba", 0x300125, 0x0000043 + +gUnk_08300168:: @ 08300168 + .incbin "baserom.gba", 0x300168, 0x0000239 + +gUnk_083003A1:: @ 083003A1 + .incbin "baserom.gba", 0x3003A1, 0x0000080 + +gUnk_08300421:: @ 08300421 + .incbin "baserom.gba", 0x300421, 0x00002FF + +gUnk_08300720:: @ 08300720 + .incbin "baserom.gba", 0x300720, 0x0000007 + +gUnk_08300727:: @ 08300727 + .incbin "baserom.gba", 0x300727, 0x0000009 + +gUnk_08300730:: @ 08300730 + .incbin "baserom.gba", 0x300730, 0x0000010 + +gUnk_08300740:: @ 08300740 + .incbin "baserom.gba", 0x300740, 0x0000010 + +gUnk_08300750:: @ 08300750 + .incbin "baserom.gba", 0x300750, 0x0000020 + +gUnk_08300770:: @ 08300770 + .incbin "baserom.gba", 0x300770, 0x0000040 + +gUnk_083007B0:: @ 083007B0 + .incbin "baserom.gba", 0x3007B0, 0x0000030 + +gUnk_083007E0:: @ 083007E0 + .incbin "baserom.gba", 0x3007E0, 0x0000028 + +gUnk_08300808:: @ 08300808 + .incbin "baserom.gba", 0x300808, 0x0000108 + +gUnk_08300910:: @ 08300910 + .incbin "baserom.gba", 0x300910, 0x0000104 + +gUnk_08300A14:: @ 08300A14 + .incbin "baserom.gba", 0x300A14, 0x00000ED + +gUnk_08300B01:: @ 08300B01 + .incbin "baserom.gba", 0x300B01, 0x0000560 + +gUnk_08301061:: @ 08301061 + .incbin "baserom.gba", 0x301061, 0x0000B00 + +gUnk_08301B61:: @ 08301B61 + .incbin "baserom.gba", 0x301B61, 0x0000240 + +gUnk_08301DA1:: @ 08301DA1 + .incbin "baserom.gba", 0x301DA1, 0x00001CF + +gUnk_08301F70:: @ 08301F70 + .incbin "baserom.gba", 0x301F70, 0x0000231 + +gUnk_083021A1:: @ 083021A1 + .incbin "baserom.gba", 0x3021A1, 0x0000268 + +gUnk_08302409:: @ 08302409 + .incbin "baserom.gba", 0x302409, 0x0000158 + +gUnk_08302561:: @ 08302561 + .incbin "baserom.gba", 0x302561, 0x0000140 + +gUnk_083026A1:: @ 083026A1 + .incbin "baserom.gba", 0x3026A1, 0x000006F + +gUnk_08302710:: @ 08302710 + .incbin "baserom.gba", 0x302710, 0x00001F5 + +gUnk_08302905:: @ 08302905 + .incbin "baserom.gba", 0x302905, 0x000003B + +gUnk_08302940:: @ 08302940 + .incbin "baserom.gba", 0x302940, 0x0000221 + +gUnk_08302B61:: @ 08302B61 + .incbin "baserom.gba", 0x302B61, 0x00000D6 + +gUnk_08302C37:: @ 08302C37 + .incbin "baserom.gba", 0x302C37, 0x00000D9 + +gUnk_08302D10:: @ 08302D10 + .incbin "baserom.gba", 0x302D10, 0x0000010 + +gUnk_08302D20:: @ 08302D20 + .incbin "baserom.gba", 0x302D20, 0x0000110 + +gUnk_08302E30:: @ 08302E30 + .incbin "baserom.gba", 0x302E30, 0x00000E1 + +gUnk_08302F11:: @ 08302F11 + .incbin "baserom.gba", 0x302F11, 0x00000FF + +gUnk_08303010:: @ 08303010 + .incbin "baserom.gba", 0x303010, 0x0000019 + +gUnk_08303029:: @ 08303029 + .incbin "baserom.gba", 0x303029, 0x0000078 + +gUnk_083030A1:: @ 083030A1 + .incbin "baserom.gba", 0x3030A1, 0x0000300 + +gUnk_083033A1:: @ 083033A1 + .incbin "baserom.gba", 0x3033A1, 0x0000067 + +gUnk_08303408:: @ 08303408 + .incbin "baserom.gba", 0x303408, 0x0000540 + +gUnk_08303948:: @ 08303948 + .incbin "baserom.gba", 0x303948, 0x00002FE + +gUnk_08303C46:: @ 08303C46 + .incbin "baserom.gba", 0x303C46, 0x00000E5 + +gUnk_08303D2B:: @ 08303D2B + .incbin "baserom.gba", 0x303D2B, 0x00002F6 + +gUnk_08304021:: @ 08304021 + .incbin "baserom.gba", 0x304021, 0x0000612 + +gUnk_08304633:: @ 08304633 + .incbin "baserom.gba", 0x304633, 0x0000143 + +gUnk_08304776:: @ 08304776 + .incbin "baserom.gba", 0x304776, 0x00002F2 + +gUnk_08304A68:: @ 08304A68 + .incbin "baserom.gba", 0x304A68, 0x00003F9 + +gUnk_08304E61:: @ 08304E61 + .incbin "baserom.gba", 0x304E61, 0x0000407 + +gUnk_08305268:: @ 08305268 + .incbin "baserom.gba", 0x305268, 0x0000002 + +gUnk_0830526A:: @ 0830526A + .incbin "baserom.gba", 0x30526A, 0x000050B + +gUnk_08305775:: @ 08305775 + .incbin "baserom.gba", 0x305775, 0x00007A0 + +gUnk_08305F15:: @ 08305F15 + .incbin "baserom.gba", 0x305F15, 0x000006E + +gUnk_08305F83:: @ 08305F83 + .incbin "baserom.gba", 0x305F83, 0x00005C5 + +gUnk_08306548:: @ 08306548 + .incbin "baserom.gba", 0x306548, 0x000023B + +gUnk_08306783:: @ 08306783 + .incbin "baserom.gba", 0x306783, 0x00001AD + +gUnk_08306930:: @ 08306930 + .incbin "baserom.gba", 0x306930, 0x0000757 + +gUnk_08307087:: @ 08307087 + .incbin "baserom.gba", 0x307087, 0x00004C8 + +gUnk_0830754F:: @ 0830754F + .incbin "baserom.gba", 0x30754F, 0x000000E + +gUnk_0830755D:: @ 0830755D + .incbin "baserom.gba", 0x30755D, 0x000021A + +gUnk_08307777:: @ 08307777 + .incbin "baserom.gba", 0x307777, 0x0000201 + +gUnk_08307978:: @ 08307978 + .incbin "baserom.gba", 0x307978, 0x000038F + +gUnk_08307D07:: @ 08307D07 + .incbin "baserom.gba", 0x307D07, 0x0000529 + +gUnk_08308230:: @ 08308230 + .incbin "baserom.gba", 0x308230, 0x00004E6 + +gUnk_08308716:: @ 08308716 + .incbin "baserom.gba", 0x308716, 0x00006F3 + +gUnk_08308E09:: @ 08308E09 + .incbin "baserom.gba", 0x308E09, 0x0000817 + +gUnk_08309620:: @ 08309620 + .incbin "baserom.gba", 0x309620, 0x000027A + +gUnk_0830989A:: @ 0830989A + .incbin "baserom.gba", 0x30989A, 0x00004C0 + +gUnk_08309D5A:: @ 08309D5A + .incbin "baserom.gba", 0x309D5A, 0x0000136 + +gUnk_08309E90:: @ 08309E90 + .incbin "baserom.gba", 0x309E90, 0x0000085 + +gUnk_08309F15:: @ 08309F15 + .incbin "baserom.gba", 0x309F15, 0x0000290 + +gUnk_0830A1A5:: @ 0830A1A5 + .incbin "baserom.gba", 0x30A1A5, 0x0000BC6 + +gUnk_0830AD6B:: @ 0830AD6B + .incbin "baserom.gba", 0x30AD6B, 0x000009C + +gUnk_0830AE07:: @ 0830AE07 + .incbin "baserom.gba", 0x30AE07, 0x00001D9 + +gUnk_0830AFE0:: @ 0830AFE0 + .incbin "baserom.gba", 0x30AFE0, 0x0000130 + +gUnk_0830B110:: @ 0830B110 + .incbin "baserom.gba", 0x30B110, 0x000006F + +gUnk_0830B17F:: @ 0830B17F + .incbin "baserom.gba", 0x30B17F, 0x0000137 + +gUnk_0830B2B6:: @ 0830B2B6 + .incbin "baserom.gba", 0x30B2B6, 0x0000062 + +gUnk_0830B318:: @ 0830B318 + .incbin "baserom.gba", 0x30B318, 0x0000090 + +gUnk_0830B3A8:: @ 0830B3A8 + .incbin "baserom.gba", 0x30B3A8, 0x000002C + +gUnk_0830B3D4:: @ 0830B3D4 + .incbin "baserom.gba", 0x30B3D4, 0x00000E0 + +gUnk_0830B4B4:: @ 0830B4B4 + .incbin "baserom.gba", 0x30B4B4, 0x0000005 + +gUnk_0830B4B9:: @ 0830B4B9 + .incbin "baserom.gba", 0x30B4B9, 0x00002F7 + +gUnk_0830B7B0:: @ 0830B7B0 + .incbin "baserom.gba", 0x30B7B0, 0x00000A2 + +gUnk_0830B852:: @ 0830B852 + .incbin "baserom.gba", 0x30B852, 0x000020F + +gUnk_0830BA61:: @ 0830BA61 + .incbin "baserom.gba", 0x30BA61, 0x0000360 + +gUnk_0830BDC1:: @ 0830BDC1 + .incbin "baserom.gba", 0x30BDC1, 0x0000046 + +gUnk_0830BE07:: @ 0830BE07 + .incbin "baserom.gba", 0x30BE07, 0x00000CD + +gUnk_0830BED4:: @ 0830BED4 + .incbin "baserom.gba", 0x30BED4, 0x000009F + +gUnk_0830BF73:: @ 0830BF73 + .incbin "baserom.gba", 0x30BF73, 0x00001D1 + +gUnk_0830C144:: @ 0830C144 + .incbin "baserom.gba", 0x30C144, 0x00006F0 + +gUnk_0830C834:: @ 0830C834 + .incbin "baserom.gba", 0x30C834, 0x00001C0 + +gUnk_0830C9F4:: @ 0830C9F4 + .incbin "baserom.gba", 0x30C9F4, 0x0000013 + +gUnk_0830CA07:: @ 0830CA07 + .incbin "baserom.gba", 0x30CA07, 0x00002E0 + +gUnk_0830CCE7:: @ 0830CCE7 + .incbin "baserom.gba", 0x30CCE7, 0x00002E5 + +gUnk_0830CFCC:: @ 0830CFCC + .incbin "baserom.gba", 0x30CFCC, 0x0000067 + +gUnk_0830D033:: @ 0830D033 + .incbin "baserom.gba", 0x30D033, 0x00002E5 + +gUnk_0830D318:: @ 0830D318 + .incbin "baserom.gba", 0x30D318, 0x0000100 + +gUnk_0830D418:: @ 0830D418 + .incbin "baserom.gba", 0x30D418, 0x00000B6 + +gUnk_0830D4CE:: @ 0830D4CE + .incbin "baserom.gba", 0x30D4CE, 0x0000003 + +gUnk_0830D4D1:: @ 0830D4D1 + .incbin "baserom.gba", 0x30D4D1, 0x000010B + +gUnk_0830D5DC:: @ 0830D5DC + .incbin "baserom.gba", 0x30D5DC, 0x000082C + +gUnk_0830DE08:: @ 0830DE08 + .incbin "baserom.gba", 0x30DE08, 0x0000608 + +gUnk_0830E410:: @ 0830E410 + .incbin "baserom.gba", 0x30E410, 0x0000739 + +gUnk_0830EB49:: @ 0830EB49 + .incbin "baserom.gba", 0x30EB49, 0x00000BA + +gUnk_0830EC03:: @ 0830EC03 + .incbin "baserom.gba", 0x30EC03, 0x0000010 + +gUnk_0830EC13:: @ 0830EC13 + .incbin "baserom.gba", 0x30EC13, 0x00003D4 + +gUnk_0830EFE7:: @ 0830EFE7 + .incbin "baserom.gba", 0x30EFE7, 0x00003FA + +gUnk_0830F3E1:: @ 0830F3E1 + .incbin "baserom.gba", 0x30F3E1, 0x000060B + +gUnk_0830F9EC:: @ 0830F9EC + .incbin "baserom.gba", 0x30F9EC, 0x0000141 + +gUnk_0830FB2D:: @ 0830FB2D + .incbin "baserom.gba", 0x30FB2D, 0x00001B8 + +gUnk_0830FCE5:: @ 0830FCE5 + .incbin "baserom.gba", 0x30FCE5, 0x0000122 + +gUnk_0830FE07:: @ 0830FE07 + .incbin "baserom.gba", 0x30FE07, 0x0000078 + +gUnk_0830FE7F:: @ 0830FE7F + .incbin "baserom.gba", 0x30FE7F, 0x0000016 + +gUnk_0830FE95:: @ 0830FE95 + .incbin "baserom.gba", 0x30FE95, 0x0000059 + +gUnk_0830FEEE:: @ 0830FEEE + .incbin "baserom.gba", 0x30FEEE, 0x0000019 + +gUnk_0830FF07:: @ 0830FF07 + .incbin "baserom.gba", 0x30FF07, 0x000004C + +gUnk_0830FF53:: @ 0830FF53 + .incbin "baserom.gba", 0x30FF53, 0x00000AD + +gUnk_08310000:: @ 08310000 + .incbin "baserom.gba", 0x310000, 0x0000001 + +gUnk_08310001:: @ 08310001 + .incbin "baserom.gba", 0x310001, 0x0000001 + +gUnk_08310002:: @ 08310002 + .incbin "baserom.gba", 0x310002, 0x0000001 + +gUnk_08310003:: @ 08310003 + .incbin "baserom.gba", 0x310003, 0x0000001 + +gUnk_08310004:: @ 08310004 + .incbin "baserom.gba", 0x310004, 0x0000001 + +gUnk_08310005:: @ 08310005 + .incbin "baserom.gba", 0x310005, 0x0000001 + +gUnk_08310006:: @ 08310006 + .incbin "baserom.gba", 0x310006, 0x0000001 + +gUnk_08310007:: @ 08310007 + .incbin "baserom.gba", 0x310007, 0x0000001 + +gUnk_08310008:: @ 08310008 + .incbin "baserom.gba", 0x310008, 0x0000003 + +gUnk_0831000B:: @ 0831000B + .incbin "baserom.gba", 0x31000B, 0x0000003 + +gUnk_0831000E:: @ 0831000E + .incbin "baserom.gba", 0x31000E, 0x0000001 + +gUnk_0831000F:: @ 0831000F + .incbin "baserom.gba", 0x31000F, 0x0000001 + +gUnk_08310010:: @ 08310010 + .incbin "baserom.gba", 0x310010, 0x0000004 + +gUnk_08310014:: @ 08310014 + .incbin "baserom.gba", 0x310014, 0x0000001 + +gUnk_08310015:: @ 08310015 + .incbin "baserom.gba", 0x310015, 0x000000B + +gUnk_08310020:: @ 08310020 + .incbin "baserom.gba", 0x310020, 0x0000003 + +gUnk_08310023:: @ 08310023 + .incbin "baserom.gba", 0x310023, 0x000000D + +gUnk_08310030:: @ 08310030 + .incbin "baserom.gba", 0x310030, 0x0000009 + +gUnk_08310039:: @ 08310039 + .incbin "baserom.gba", 0x310039, 0x000000A + +gUnk_08310043:: @ 08310043 + .incbin "baserom.gba", 0x310043, 0x000000D + +gUnk_08310050:: @ 08310050 + .incbin "baserom.gba", 0x310050, 0x0000003 + +gUnk_08310053:: @ 08310053 + .incbin "baserom.gba", 0x310053, 0x0000007 + +gUnk_0831005A:: @ 0831005A + .incbin "baserom.gba", 0x31005A, 0x0000002 + +gUnk_0831005C:: @ 0831005C + .incbin "baserom.gba", 0x31005C, 0x0000004 + +gUnk_08310060:: @ 08310060 + .incbin "baserom.gba", 0x310060, 0x0000008 + +gUnk_08310068:: @ 08310068 + .incbin "baserom.gba", 0x310068, 0x0000004 + +gUnk_0831006C:: @ 0831006C + .incbin "baserom.gba", 0x31006C, 0x0000006 + +gUnk_08310072:: @ 08310072 + .incbin "baserom.gba", 0x310072, 0x0000006 + +gUnk_08310078:: @ 08310078 + .incbin "baserom.gba", 0x310078, 0x0000007 + +gUnk_0831007F:: @ 0831007F + .incbin "baserom.gba", 0x31007F, 0x0000001 + +gUnk_08310080:: @ 08310080 + .incbin "baserom.gba", 0x310080, 0x0000014 + +gUnk_08310094:: @ 08310094 + .incbin "baserom.gba", 0x310094, 0x0000004 + +gUnk_08310098:: @ 08310098 + .incbin "baserom.gba", 0x310098, 0x0000035 + +gUnk_083100CD:: @ 083100CD + .incbin "baserom.gba", 0x3100CD, 0x000000B + +gUnk_083100D8:: @ 083100D8 + .incbin "baserom.gba", 0x3100D8, 0x000000A + +gUnk_083100E2:: @ 083100E2 + .incbin "baserom.gba", 0x3100E2, 0x0000029 + +gUnk_0831010B:: @ 0831010B + .incbin "baserom.gba", 0x31010B, 0x000006D + +gUnk_08310178:: @ 08310178 + .incbin "baserom.gba", 0x310178, 0x0000020 + +gUnk_08310198:: @ 08310198 + .incbin "baserom.gba", 0x310198, 0x0000032 + +gUnk_083101CA:: @ 083101CA + .incbin "baserom.gba", 0x3101CA, 0x000005E + +gUnk_08310228:: @ 08310228 + .incbin "baserom.gba", 0x310228, 0x0000058 + +gUnk_08310280:: @ 08310280 + .incbin "baserom.gba", 0x310280, 0x0000008 + +gUnk_08310288:: @ 08310288 + .incbin "baserom.gba", 0x310288, 0x0000010 + +gUnk_08310298:: @ 08310298 + .incbin "baserom.gba", 0x310298, 0x0000068 + +gUnk_08310300:: @ 08310300 + .incbin "baserom.gba", 0x310300, 0x0000050 + +gUnk_08310350:: @ 08310350 + .incbin "baserom.gba", 0x310350, 0x00000B2 + +gUnk_08310402:: @ 08310402 + .incbin "baserom.gba", 0x310402, 0x0000032 + +gUnk_08310434:: @ 08310434 + .incbin "baserom.gba", 0x310434, 0x0000003 + +gUnk_08310437:: @ 08310437 + .incbin "baserom.gba", 0x310437, 0x000000C + +gUnk_08310443:: @ 08310443 + .incbin "baserom.gba", 0x310443, 0x0000002 + +gUnk_08310445:: @ 08310445 + .incbin "baserom.gba", 0x310445, 0x0000004 + +gUnk_08310449:: @ 08310449 + .incbin "baserom.gba", 0x310449, 0x0000001 + +gUnk_0831044A:: @ 0831044A + .incbin "baserom.gba", 0x31044A, 0x0000001 + +gUnk_0831044B:: @ 0831044B + .incbin "baserom.gba", 0x31044B, 0x000000E + +gUnk_08310459:: @ 08310459 + .incbin "baserom.gba", 0x310459, 0x000000B + +gUnk_08310464:: @ 08310464 + .incbin "baserom.gba", 0x310464, 0x000001A + +gUnk_0831047E:: @ 0831047E + .incbin "baserom.gba", 0x31047E, 0x0000009 + +gUnk_08310487:: @ 08310487 + .incbin "baserom.gba", 0x310487, 0x0000001 + +gUnk_08310488:: @ 08310488 + .incbin "baserom.gba", 0x310488, 0x00002A8 + +gUnk_08310730:: @ 08310730 + .incbin "baserom.gba", 0x310730, 0x00000D0 + +gUnk_08310800:: @ 08310800 + .incbin "baserom.gba", 0x310800, 0x0000001 + +gUnk_08310801:: @ 08310801 + .incbin "baserom.gba", 0x310801, 0x0000003 + +gUnk_08310804:: @ 08310804 + .incbin "baserom.gba", 0x310804, 0x0000001 + +gUnk_08310805:: @ 08310805 + .incbin "baserom.gba", 0x310805, 0x0000001 + +gUnk_08310806:: @ 08310806 + .incbin "baserom.gba", 0x310806, 0x0000001 + +gUnk_08310807:: @ 08310807 + .incbin "baserom.gba", 0x310807, 0x0000002 + +gUnk_08310809:: @ 08310809 + .incbin "baserom.gba", 0x310809, 0x0000001 + +gUnk_0831080A:: @ 0831080A + .incbin "baserom.gba", 0x31080A, 0x0000003 + +gUnk_0831080D:: @ 0831080D + .incbin "baserom.gba", 0x31080D, 0x0000023 + +gUnk_08310830:: @ 08310830 + .incbin "baserom.gba", 0x310830, 0x00007BB + +gUnk_08310FEB:: @ 08310FEB + .incbin "baserom.gba", 0x310FEB, 0x0000218 + +gUnk_08311203:: @ 08311203 + .incbin "baserom.gba", 0x311203, 0x0000351 + +gUnk_08311554:: @ 08311554 + .incbin "baserom.gba", 0x311554, 0x00000BA + +gUnk_0831160E:: @ 0831160E + .incbin "baserom.gba", 0x31160E, 0x0000123 + +gUnk_08311731:: @ 08311731 + .incbin "baserom.gba", 0x311731, 0x00005DF + +gUnk_08311D10:: @ 08311D10 + .incbin "baserom.gba", 0x311D10, 0x00002F0 + +gUnk_08312000:: @ 08312000 + .incbin "baserom.gba", 0x312000, 0x000012D + +gUnk_0831212D:: @ 0831212D + .incbin "baserom.gba", 0x31212D, 0x00009D2 + +gUnk_08312AFF:: @ 08312AFF + .incbin "baserom.gba", 0x312AFF, 0x0000630 + +gUnk_0831312F:: @ 0831312F + .incbin "baserom.gba", 0x31312F, 0x00000DA + +gUnk_08313209:: @ 08313209 + .incbin "baserom.gba", 0x313209, 0x000024C + +gUnk_08313455:: @ 08313455 + .incbin "baserom.gba", 0x313455, 0x00002EF + +gUnk_08313744:: @ 08313744 + .incbin "baserom.gba", 0x313744, 0x00001D8 + +gUnk_0831391C:: @ 0831391C + .incbin "baserom.gba", 0x31391C, 0x00000E4 + +gUnk_08313A00:: @ 08313A00 + .incbin "baserom.gba", 0x313A00, 0x0000010 + +gUnk_08313A10:: @ 08313A10 + .incbin "baserom.gba", 0x313A10, 0x0000409 + +gUnk_08313E19:: @ 08313E19 + .incbin "baserom.gba", 0x313E19, 0x00005E8 + +gUnk_08314401:: @ 08314401 + .incbin "baserom.gba", 0x314401, 0x0000132 + +gUnk_08314533:: @ 08314533 + .incbin "baserom.gba", 0x314533, 0x0000220 + +gUnk_08314753:: @ 08314753 + .incbin "baserom.gba", 0x314753, 0x00005F2 + +gUnk_08314D45:: @ 08314D45 + .incbin "baserom.gba", 0x314D45, 0x00005FC + +gUnk_08315341:: @ 08315341 + .incbin "baserom.gba", 0x315341, 0x0000131 + +gUnk_08315472:: @ 08315472 + .incbin "baserom.gba", 0x315472, 0x00005FF + +gUnk_08315A71:: @ 08315A71 + .incbin "baserom.gba", 0x315A71, 0x00004FB + +gUnk_08315F6C:: @ 08315F6C + .incbin "baserom.gba", 0x315F6C, 0x0001B94 + +gUnk_08317B00:: @ 08317B00 + .incbin "baserom.gba", 0x317B00, 0x00026A1 + +gUnk_0831A1A1:: @ 0831A1A1 + .incbin "baserom.gba", 0x31A1A1, 0x0001993 + +gUnk_0831BB34:: @ 0831BB34 + .incbin "baserom.gba", 0x31BB34, 0x00009FB + +gUnk_0831C52F:: @ 0831C52F + .incbin "baserom.gba", 0x31C52F, 0x00012C6 + +gUnk_0831D7F5:: @ 0831D7F5 + .incbin "baserom.gba", 0x31D7F5, 0x0000720 + +gUnk_0831DF15:: @ 0831DF15 + .incbin "baserom.gba", 0x31DF15, 0x0000BF2 + +gUnk_0831EB07:: @ 0831EB07 + .incbin "baserom.gba", 0x31EB07, 0x00003DB + +gUnk_0831EEE2:: @ 0831EEE2 + .incbin "baserom.gba", 0x31EEE2, 0x000002B + +gUnk_0831EF0D:: @ 0831EF0D + .incbin "baserom.gba", 0x31EF0D, 0x00009E8 + +gUnk_0831F8F5:: @ 0831F8F5 + .incbin "baserom.gba", 0x31F8F5, 0x000069B + +gUnk_0831FF90:: @ 0831FF90 + .incbin "baserom.gba", 0x31FF90, 0x0000042 + +gUnk_0831FFD2:: @ 0831FFD2 + .incbin "baserom.gba", 0x31FFD2, 0x000000A + +gUnk_0831FFDC:: @ 0831FFDC + .incbin "baserom.gba", 0x31FFDC, 0x0000020 + +gUnk_0831FFFC:: @ 0831FFFC + .incbin "baserom.gba", 0x31FFFC, 0x0000004 + +gUnk_08320000:: @ 08320000 + .incbin "baserom.gba", 0x320000, 0x0000131 + +gUnk_08320131:: @ 08320131 + .incbin "baserom.gba", 0x320131, 0x00001CF + +gUnk_08320300:: @ 08320300 + .incbin "baserom.gba", 0x320300, 0x0000030 + +gUnk_08320330:: @ 08320330 + .incbin "baserom.gba", 0x320330, 0x00011AF + +gUnk_083214DF:: @ 083214DF + .incbin "baserom.gba", 0x3214DF, 0x0000921 + +gUnk_08321E00:: @ 08321E00 + .incbin "baserom.gba", 0x321E00, 0x00001EF + +gUnk_08321FEF:: @ 08321FEF + .incbin "baserom.gba", 0x321FEF, 0x0000114 + +gUnk_08322103:: @ 08322103 + .incbin "baserom.gba", 0x322103, 0x0000134 + +gUnk_08322237:: @ 08322237 + .incbin "baserom.gba", 0x322237, 0x0000062 + +gUnk_08322299:: @ 08322299 + .incbin "baserom.gba", 0x322299, 0x0000189 + +gUnk_08322422:: @ 08322422 + .incbin "baserom.gba", 0x322422, 0x0000034 + +gUnk_08322456:: @ 08322456 + .incbin "baserom.gba", 0x322456, 0x00001A2 + +gUnk_083225F8:: @ 083225F8 + .incbin "baserom.gba", 0x3225F8, 0x0000519 + +gUnk_08322B11:: @ 08322B11 + .incbin "baserom.gba", 0x322B11, 0x0000B0B + +gUnk_0832361C:: @ 0832361C + .incbin "baserom.gba", 0x32361C, 0x0000B23 + +gUnk_0832413F:: @ 0832413F + .incbin "baserom.gba", 0x32413F, 0x00008F8 + +gUnk_08324A37:: @ 08324A37 + .incbin "baserom.gba", 0x324A37, 0x00000AD + +gUnk_08324AE4:: @ 08324AE4 + .incbin "baserom.gba", 0x324AE4, 0x000018F + +gUnk_08324C73:: @ 08324C73 + .incbin "baserom.gba", 0x324C73, 0x00007FA + +gUnk_0832546D:: @ 0832546D + .incbin "baserom.gba", 0x32546D, 0x000041B + +gUnk_08325888:: @ 08325888 + .incbin "baserom.gba", 0x325888, 0x00010E9 + +gUnk_08326971:: @ 08326971 + .incbin "baserom.gba", 0x326971, 0x0002C90 + +gUnk_08329601:: @ 08329601 + .incbin "baserom.gba", 0x329601, 0x00053C2 + +gUnk_0832E9C3:: @ 0832E9C3 + .incbin "baserom.gba", 0x32E9C3, 0x0000540 + +gUnk_0832EF03:: @ 0832EF03 + .incbin "baserom.gba", 0x32EF03, 0x0000733 + +gUnk_0832F636:: @ 0832F636 + .incbin "baserom.gba", 0x32F636, 0x00005CA + +gUnk_0832FC00:: @ 0832FC00 + .incbin "baserom.gba", 0x32FC00, 0x00002EA + +gUnk_0832FEEA:: @ 0832FEEA + .incbin "baserom.gba", 0x32FEEA, 0x0000104 + +gUnk_0832FFEE:: @ 0832FFEE + .incbin "baserom.gba", 0x32FFEE, 0x0000055 + +gUnk_08330043:: @ 08330043 + .incbin "baserom.gba", 0x330043, 0x00000C4 + +gUnk_08330107:: @ 08330107 + .incbin "baserom.gba", 0x330107, 0x0000004 + +gUnk_0833010B:: @ 0833010B + .incbin "baserom.gba", 0x33010B, 0x0000119 + +gUnk_08330224:: @ 08330224 + .incbin "baserom.gba", 0x330224, 0x0000210 + +gUnk_08330434:: @ 08330434 + .incbin "baserom.gba", 0x330434, 0x00008B5 + +gUnk_08330CE9:: @ 08330CE9 + .incbin "baserom.gba", 0x330CE9, 0x0000213 + +gUnk_08330EFC:: @ 08330EFC + .incbin "baserom.gba", 0x330EFC, 0x0000007 + +gUnk_08330F03:: @ 08330F03 + .incbin "baserom.gba", 0x330F03, 0x0000C05 + +gUnk_08331B08:: @ 08331B08 + .incbin "baserom.gba", 0x331B08, 0x0000637 + +gUnk_0833213F:: @ 0833213F + .incbin "baserom.gba", 0x33213F, 0x0000049 + +gUnk_08332188:: @ 08332188 + .incbin "baserom.gba", 0x332188, 0x0000692 + +gUnk_0833281A:: @ 0833281A + .incbin "baserom.gba", 0x33281A, 0x0000913 + +gUnk_0833312D:: @ 0833312D + .incbin "baserom.gba", 0x33312D, 0x0000205 + +gUnk_08333332:: @ 08333332 + .incbin "baserom.gba", 0x333332, 0x0000001 + +gUnk_08333333:: @ 08333333 + .incbin "baserom.gba", 0x333333, 0x0000008 + +gUnk_0833333B:: @ 0833333B + .incbin "baserom.gba", 0x33333B, 0x00000F2 + +gUnk_0833342D:: @ 0833342D + .incbin "baserom.gba", 0x33342D, 0x00002F1 + +gUnk_0833371E:: @ 0833371E + .incbin "baserom.gba", 0x33371E, 0x00001F0 + +gUnk_0833390E:: @ 0833390E + .incbin "baserom.gba", 0x33390E, 0x0000122 + +gUnk_08333A30:: @ 08333A30 + .incbin "baserom.gba", 0x333A30, 0x00005E8 + +gUnk_08334018:: @ 08334018 + .incbin "baserom.gba", 0x334018, 0x00003E9 + +gUnk_08334401:: @ 08334401 + .incbin "baserom.gba", 0x334401, 0x000001F + +gUnk_08334420:: @ 08334420 + .incbin "baserom.gba", 0x334420, 0x00000BD + +gUnk_083344DD:: @ 083344DD + .incbin "baserom.gba", 0x3344DD, 0x0000558 + +gUnk_08334A35:: @ 08334A35 + .incbin "baserom.gba", 0x334A35, 0x0000646 + +gUnk_0833507B:: @ 0833507B + .incbin "baserom.gba", 0x33507B, 0x000054F + +gUnk_083355CA:: @ 083355CA + .incbin "baserom.gba", 0x3355CA, 0x0000CB3 + +gUnk_0833627D:: @ 0833627D + .incbin "baserom.gba", 0x33627D, 0x0000CF7 + +gUnk_08336F74:: @ 08336F74 + .incbin "baserom.gba", 0x336F74, 0x000008F + +gUnk_08337003:: @ 08337003 + .incbin "baserom.gba", 0x337003, 0x00002FD + +gUnk_08337300:: @ 08337300 + .incbin "baserom.gba", 0x337300, 0x0000C03 + +gUnk_08337F03:: @ 08337F03 + .incbin "baserom.gba", 0x337F03, 0x0000330 + +gUnk_08338233:: @ 08338233 + .incbin "baserom.gba", 0x338233, 0x0000650 + +gUnk_08338883:: @ 08338883 + .incbin "baserom.gba", 0x338883, 0x0001217 + +gUnk_08339A9A:: @ 08339A9A + .incbin "baserom.gba", 0x339A9A, 0x0000133 + +gUnk_08339BCD:: @ 08339BCD + .incbin "baserom.gba", 0x339BCD, 0x00009DC + +gUnk_0833A5A9:: @ 0833A5A9 + .incbin "baserom.gba", 0x33A5A9, 0x0000E5D + +gUnk_0833B406:: @ 0833B406 + .incbin "baserom.gba", 0x33B406, 0x0000706 + +gUnk_0833BB0C:: @ 0833BB0C + .incbin "baserom.gba", 0x33BB0C, 0x00033F6 + +gUnk_0833EF02:: @ 0833EF02 + .incbin "baserom.gba", 0x33EF02, 0x0000509 + +gUnk_0833F40B:: @ 0833F40B + .incbin "baserom.gba", 0x33F40B, 0x0000B2C + +gUnk_0833FF37:: @ 0833FF37 + .incbin "baserom.gba", 0x33FF37, 0x00003C9 + +gUnk_08340300:: @ 08340300 + .incbin "baserom.gba", 0x340300, 0x0000507 + +gUnk_08340807:: @ 08340807 + .incbin "baserom.gba", 0x340807, 0x00008F8 + +gUnk_083410FF:: @ 083410FF + .incbin "baserom.gba", 0x3410FF, 0x0000F48 + +gUnk_08342047:: @ 08342047 + .incbin "baserom.gba", 0x342047, 0x00003B2 + +gUnk_083423F9:: @ 083423F9 + .incbin "baserom.gba", 0x3423F9, 0x00000F1 + +gUnk_083424EA:: @ 083424EA + .incbin "baserom.gba", 0x3424EA, 0x0000D2E + +gUnk_08343218:: @ 08343218 + .incbin "baserom.gba", 0x343218, 0x00000F5 + +gUnk_0834330D:: @ 0834330D + .incbin "baserom.gba", 0x34330D, 0x0000024 + +gUnk_08343331:: @ 08343331 + .incbin "baserom.gba", 0x343331, 0x0000EE0 + +gUnk_08344211:: @ 08344211 + .incbin "baserom.gba", 0x344211, 0x0000233 + +gUnk_08344444:: @ 08344444 + .incbin "baserom.gba", 0x344444, 0x0000505 + +gUnk_08344949:: @ 08344949 + .incbin "baserom.gba", 0x344949, 0x000012E + +gUnk_08344A77:: @ 08344A77 + .incbin "baserom.gba", 0x344A77, 0x00008E5 + +gUnk_0834535C:: @ 0834535C + .incbin "baserom.gba", 0x34535C, 0x000031B + +gUnk_08345677:: @ 08345677 + .incbin "baserom.gba", 0x345677, 0x0000325 + +gUnk_0834599C:: @ 0834599C + .incbin "baserom.gba", 0x34599C, 0x0000575 + +gUnk_08345F11:: @ 08345F11 + .incbin "baserom.gba", 0x345F11, 0x0000617 + +gUnk_08346528:: @ 08346528 + .incbin "baserom.gba", 0x346528, 0x000012D + +gUnk_08346655:: @ 08346655 + .incbin "baserom.gba", 0x346655, 0x00007E0 + +gUnk_08346E35:: @ 08346E35 + .incbin "baserom.gba", 0x346E35, 0x000013B + +gUnk_08346F70:: @ 08346F70 + .incbin "baserom.gba", 0x346F70, 0x00007F7 + +gUnk_08347767:: @ 08347767 + .incbin "baserom.gba", 0x347767, 0x0000055 + +gUnk_083477BC:: @ 083477BC + .incbin "baserom.gba", 0x3477BC, 0x0003C5C + +gUnk_0834B418:: @ 0834B418 + .incbin "baserom.gba", 0x34B418, 0x0002D8B + +gUnk_0834E1A3:: @ 0834E1A3 + .incbin "baserom.gba", 0x34E1A3, 0x00006E6 + +gUnk_0834E889:: @ 0834E889 + .incbin "baserom.gba", 0x34E889, 0x0000A37 + +gUnk_0834F2C0:: @ 0834F2C0 + .incbin "baserom.gba", 0x34F2C0, 0x0000D50 + +gUnk_08350010:: @ 08350010 + .incbin "baserom.gba", 0x350010, 0x000003A + +gUnk_0835004A:: @ 0835004A + .incbin "baserom.gba", 0x35004A, 0x00002B6 + +gUnk_08350300:: @ 08350300 + .incbin "baserom.gba", 0x350300, 0x0000E3B + +gUnk_0835113B:: @ 0835113B + .incbin "baserom.gba", 0x35113B, 0x00008CB + +gUnk_08351A06:: @ 08351A06 + .incbin "baserom.gba", 0x351A06, 0x0001A93 + +gUnk_08353499:: @ 08353499 + .incbin "baserom.gba", 0x353499, 0x0000294 + +gUnk_0835372D:: @ 0835372D + .incbin "baserom.gba", 0x35372D, 0x00001E6 + +gUnk_08353913:: @ 08353913 + .incbin "baserom.gba", 0x353913, 0x0000705 + +gUnk_08354018:: @ 08354018 + .incbin "baserom.gba", 0x354018, 0x0000317 + +gUnk_0835432F:: @ 0835432F + .incbin "baserom.gba", 0x35432F, 0x000090A + +gUnk_08354C39:: @ 08354C39 + .incbin "baserom.gba", 0x354C39, 0x00007F6 + +gUnk_0835542F:: @ 0835542F + .incbin "baserom.gba", 0x35542F, 0x0000014 + +gUnk_08355443:: @ 08355443 + .incbin "baserom.gba", 0x355443, 0x0000234 + +gUnk_08355677:: @ 08355677 + .incbin "baserom.gba", 0x355677, 0x00009DE + +gUnk_08356055:: @ 08356055 + .incbin "baserom.gba", 0x356055, 0x0000526 + +gUnk_0835657B:: @ 0835657B + .incbin "baserom.gba", 0x35657B, 0x0001197 + +gUnk_08357712:: @ 08357712 + .incbin "baserom.gba", 0x357712, 0x0007B10 + +gUnk_0835F222:: @ 0835F222 + .incbin "baserom.gba", 0x35F222, 0x0000E9B + +gUnk_083600BD:: @ 083600BD + .incbin "baserom.gba", 0x3600BD, 0x0000410 + +gUnk_083604CD:: @ 083604CD + .incbin "baserom.gba", 0x3604CD, 0x0000053 + +gUnk_08360520:: @ 08360520 + .incbin "baserom.gba", 0x360520, 0x00003A0 + +gUnk_083608C0:: @ 083608C0 + .incbin "baserom.gba", 0x3608C0, 0x0001AF1 + +gUnk_083623B1:: @ 083623B1 + .incbin "baserom.gba", 0x3623B1, 0x0000639 + +gUnk_083629EA:: @ 083629EA + .incbin "baserom.gba", 0x3629EA, 0x0000128 + +gUnk_08362B12:: @ 08362B12 + .incbin "baserom.gba", 0x362B12, 0x0000001 + +gUnk_08362B13:: @ 08362B13 + .incbin "baserom.gba", 0x362B13, 0x00003F4 + +gUnk_08362F07:: @ 08362F07 + .incbin "baserom.gba", 0x362F07, 0x000140A + +gUnk_08364311:: @ 08364311 + .incbin "baserom.gba", 0x364311, 0x0000020 + +gUnk_08364331:: @ 08364331 + .incbin "baserom.gba", 0x364331, 0x000051C + +gUnk_0836484D:: @ 0836484D + .incbin "baserom.gba", 0x36484D, 0x00007E7 + +gUnk_08365034:: @ 08365034 + .incbin "baserom.gba", 0x365034, 0x00004EF + +gUnk_08365523:: @ 08365523 + .incbin "baserom.gba", 0x365523, 0x000013E + +gUnk_08365661:: @ 08365661 + .incbin "baserom.gba", 0x365661, 0x0000E16 + +gUnk_08366477:: @ 08366477 + .incbin "baserom.gba", 0x366477, 0x0006B6C + +gUnk_0836CFE3:: @ 0836CFE3 + .incbin "baserom.gba", 0x36CFE3, 0x0001E60 + +gUnk_0836EE43:: @ 0836EE43 + .incbin "baserom.gba", 0x36EE43, 0x00011CE + +gUnk_08370011:: @ 08370011 + .incbin "baserom.gba", 0x370011, 0x00005FF + +gUnk_08370610:: @ 08370610 + .incbin "baserom.gba", 0x370610, 0x0000701 + +gUnk_08370D11:: @ 08370D11 + .incbin "baserom.gba", 0x370D11, 0x0001404 + +gUnk_08372115:: @ 08372115 + .incbin "baserom.gba", 0x372115, 0x00019FB + +gUnk_08373B10:: @ 08373B10 + .incbin "baserom.gba", 0x373B10, 0x000131A + +gUnk_08374E2A:: @ 08374E2A + .incbin "baserom.gba", 0x374E2A, 0x00001D6 + +gUnk_08375000:: @ 08375000 + .incbin "baserom.gba", 0x375000, 0x0001841 + +gUnk_08376841:: @ 08376841 + .incbin "baserom.gba", 0x376841, 0x00066F7 + +gUnk_0837CF38:: @ 0837CF38 + .incbin "baserom.gba", 0x37CF38, 0x00012CE + +gUnk_0837E206:: @ 0837E206 + .incbin "baserom.gba", 0x37E206, 0x0001DFA + +gUnk_08380000:: @ 08380000 + .incbin "baserom.gba", 0x380000, 0x0000019 + +gUnk_08380019:: @ 08380019 + .incbin "baserom.gba", 0x380019, 0x0000023 + +gUnk_0838003C:: @ 0838003C + .incbin "baserom.gba", 0x38003C, 0x000001E + +gUnk_0838005A:: @ 0838005A + .incbin "baserom.gba", 0x38005A, 0x000001E + +gUnk_08380078:: @ 08380078 + .incbin "baserom.gba", 0x380078, 0x000007F + +gUnk_083800F7:: @ 083800F7 + .incbin "baserom.gba", 0x3800F7, 0x000030A + +gUnk_08380401:: @ 08380401 + .incbin "baserom.gba", 0x380401, 0x0000001 + +gUnk_08380402:: @ 08380402 + .incbin "baserom.gba", 0x380402, 0x0000057 + +gUnk_08380459:: @ 08380459 + .incbin "baserom.gba", 0x380459, 0x0000025 + +gUnk_0838047E:: @ 0838047E + .incbin "baserom.gba", 0x38047E, 0x0000009 + +gUnk_08380487:: @ 08380487 + .incbin "baserom.gba", 0x380487, 0x0000001 + +gUnk_08380488:: @ 08380488 + .incbin "baserom.gba", 0x380488, 0x0000380 + +gUnk_08380808:: @ 08380808 + .incbin "baserom.gba", 0x380808, 0x0000007 + +gUnk_0838080F:: @ 0838080F + .incbin "baserom.gba", 0x38080F, 0x0000152 + +gUnk_08380961:: @ 08380961 + .incbin "baserom.gba", 0x380961, 0x00005A8 + +gUnk_08380F09:: @ 08380F09 + .incbin "baserom.gba", 0x380F09, 0x00004DD + +gUnk_083813E6:: @ 083813E6 + .incbin "baserom.gba", 0x3813E6, 0x0001048 + +gUnk_0838242E:: @ 0838242E + .incbin "baserom.gba", 0x38242E, 0x00008E6 + +gUnk_08382D14:: @ 08382D14 + .incbin "baserom.gba", 0x382D14, 0x00008D5 + +gUnk_083835E9:: @ 083835E9 + .incbin "baserom.gba", 0x3835E9, 0x0000517 + +gUnk_08383B00:: @ 08383B00 + .incbin "baserom.gba", 0x383B00, 0x0000122 + +gUnk_08383C22:: @ 08383C22 + .incbin "baserom.gba", 0x383C22, 0x00004DE + +gUnk_08384100:: @ 08384100 + .incbin "baserom.gba", 0x384100, 0x0000341 + +gUnk_08384441:: @ 08384441 + .incbin "baserom.gba", 0x384441, 0x0000DC3 + +gUnk_08385204:: @ 08385204 + .incbin "baserom.gba", 0x385204, 0x0000B6B + +gUnk_08385D6F:: @ 08385D6F + .incbin "baserom.gba", 0x385D6F, 0x00006FB + +gUnk_0838646A:: @ 0838646A + .incbin "baserom.gba", 0x38646A, 0x000030C + +gUnk_08386776:: @ 08386776 + .incbin "baserom.gba", 0x386776, 0x0009889 + +gUnk_0838FFFF:: @ 0838FFFF + .incbin "baserom.gba", 0x38FFFF, 0x0000002 + +gUnk_08390001:: @ 08390001 + .incbin "baserom.gba", 0x390001, 0x00002DB + +gUnk_083902DC:: @ 083902DC + .incbin "baserom.gba", 0x3902DC, 0x00003A4 + +gUnk_08390680:: @ 08390680 + .incbin "baserom.gba", 0x390680, 0x0000180 + +gUnk_08390800:: @ 08390800 + .incbin "baserom.gba", 0x390800, 0x0000706 + +gUnk_08390F06:: @ 08390F06 + .incbin "baserom.gba", 0x390F06, 0x00014CE + +gUnk_083923D4:: @ 083923D4 + .incbin "baserom.gba", 0x3923D4, 0x000084A + +gUnk_08392C1E:: @ 08392C1E + .incbin "baserom.gba", 0x392C1E, 0x0001011 + +gUnk_08393C2F:: @ 08393C2F + .incbin "baserom.gba", 0x393C2F, 0x00004D1 + +gUnk_08394100:: @ 08394100 + .incbin "baserom.gba", 0x394100, 0x0001C00 + +gUnk_08395D00:: @ 08395D00 + .incbin "baserom.gba", 0x395D00, 0x000077B + +gUnk_0839647B:: @ 0839647B + .incbin "baserom.gba", 0x39647B, 0x0000303 + +gUnk_0839677E:: @ 0839677E + .incbin "baserom.gba", 0x39677E, 0x000870E + +gUnk_0839EE8C:: @ 0839EE8C + .incbin "baserom.gba", 0x39EE8C, 0x0000001 + +gUnk_0839EE8D:: @ 0839EE8D + .incbin "baserom.gba", 0x39EE8D, 0x000127A + +gUnk_083A0107:: @ 083A0107 + .incbin "baserom.gba", 0x3A0107, 0x0000669 + +gUnk_083A0770:: @ 083A0770 + .incbin "baserom.gba", 0x3A0770, 0x0003990 + +gUnk_083A4100:: @ 083A4100 + .incbin "baserom.gba", 0x3A4100, 0x0003D1D + +gUnk_083A7E1D:: @ 083A7E1D + .incbin "baserom.gba", 0x3A7E1D, 0x0002253 + +gUnk_083AA070:: @ 083AA070 + .incbin "baserom.gba", 0x3AA070, 0x0005F90 + +gUnk_083B0000:: @ 083B0000 + .incbin "baserom.gba", 0x3B0000, 0x0000001 + +gUnk_083B0001:: @ 083B0001 + .incbin "baserom.gba", 0x3B0001, 0x0000007 + +gUnk_083B0008:: @ 083B0008 + .incbin "baserom.gba", 0x3B0008, 0x0000178 + +gUnk_083B0180:: @ 083B0180 + .incbin "baserom.gba", 0x3B0180, 0x000069E + +gUnk_083B081E:: @ 083B081E + .incbin "baserom.gba", 0x3B081E, 0x000001C + +gUnk_083B083A:: @ 083B083A + .incbin "baserom.gba", 0x3B083A, 0x00006CC + +gUnk_083B0F06:: @ 083B0F06 + .incbin "baserom.gba", 0x3B0F06, 0x00012E0 + +gUnk_083B21E6:: @ 083B21E6 + .incbin "baserom.gba", 0x3B21E6, 0x0000E3E + +gUnk_083B3024:: @ 083B3024 + .incbin "baserom.gba", 0x3B3024, 0x00001DD + +gUnk_083B3201:: @ 083B3201 + .incbin "baserom.gba", 0x3B3201, 0x000061F + +gUnk_083B3820:: @ 083B3820 + .incbin "baserom.gba", 0x3B3820, 0x00008E0 + +gUnk_083B4100:: @ 083B4100 + .incbin "baserom.gba", 0x3B4100, 0x000024B + +gUnk_083B434B:: @ 083B434B + .incbin "baserom.gba", 0x3B434B, 0x0000074 + +gUnk_083B43BF:: @ 083B43BF + .incbin "baserom.gba", 0x3B43BF, 0x00024B8 + +gUnk_083B6877:: @ 083B6877 + .incbin "baserom.gba", 0x3B6877, 0x0009693 + +gUnk_083BFF0A:: @ 083BFF0A + .incbin "baserom.gba", 0x3BFF0A, 0x00000F6 + +gUnk_083C0000:: @ 083C0000 + .incbin "baserom.gba", 0x3C0000, 0x0000001 + +gUnk_083C0001:: @ 083C0001 + .incbin "baserom.gba", 0x3C0001, 0x000000B + +gUnk_083C000C:: @ 083C000C + .incbin "baserom.gba", 0x3C000C, 0x00013F4 + +gUnk_083C1400:: @ 083C1400 + .incbin "baserom.gba", 0x3C1400, 0x0000841 + +gUnk_083C1C41:: @ 083C1C41 + .incbin "baserom.gba", 0x3C1C41, 0x00009A8 + +gUnk_083C25E9:: @ 083C25E9 + .incbin "baserom.gba", 0x3C25E9, 0x00005D9 + +gUnk_083C2BC2:: @ 083C2BC2 + .incbin "baserom.gba", 0x3C2BC2, 0x0000620 + +gUnk_083C31E2:: @ 083C31E2 + .incbin "baserom.gba", 0x3C31E2, 0x0000968 + +gUnk_083C3B4A:: @ 083C3B4A + .incbin "baserom.gba", 0x3C3B4A, 0x00004B6 + +gUnk_083C4000:: @ 083C4000 + .incbin "baserom.gba", 0x3C4000, 0x0002236 + +gUnk_083C6236:: @ 083C6236 + .incbin "baserom.gba", 0x3C6236, 0x0000D44 + +gUnk_083C6F7A:: @ 083C6F7A + .incbin "baserom.gba", 0x3C6F7A, 0x00030A2 + +gUnk_083CA01C:: @ 083CA01C + .incbin "baserom.gba", 0x3CA01C, 0x00040BD + +gUnk_083CE0D9:: @ 083CE0D9 + .incbin "baserom.gba", 0x3CE0D9, 0x0001F27 + +gUnk_083D0000:: @ 083D0000 + .incbin "baserom.gba", 0x3D0000, 0x0000055 + +gUnk_083D0055:: @ 083D0055 + .incbin "baserom.gba", 0x3D0055, 0x000042B + +gUnk_083D0480:: @ 083D0480 + .incbin "baserom.gba", 0x3D0480, 0x00003BC + +gUnk_083D083C:: @ 083D083C + .incbin "baserom.gba", 0x3D083C, 0x00037C4 + +gUnk_083D4000:: @ 083D4000 + .incbin "baserom.gba", 0x3D4000, 0x000005C + +gUnk_083D405C:: @ 083D405C + .incbin "baserom.gba", 0x3D405C, 0x0001B06 + +gUnk_083D5B62:: @ 083D5B62 + .incbin "baserom.gba", 0x3D5B62, 0x000249E + +gUnk_083D8000:: @ 083D8000 + .incbin "baserom.gba", 0x3D8000, 0x0008000 + +gUnk_083E0000:: @ 083E0000 + .incbin "baserom.gba", 0x3E0000, 0x0000001 + +gUnk_083E0001:: @ 083E0001 + .incbin "baserom.gba", 0x3E0001, 0x0000F05 + +gUnk_083E0F06:: @ 083E0F06 + .incbin "baserom.gba", 0x3E0F06, 0x0000020 + +gUnk_083E0F26:: @ 083E0F26 + .incbin "baserom.gba", 0x3E0F26, 0x00019E6 + +gUnk_083E290C:: @ 083E290C + .incbin "baserom.gba", 0x3E290C, 0x00016F2 + +gUnk_083E3FFE:: @ 083E3FFE + .incbin "baserom.gba", 0x3E3FFE, 0x000006C + +gUnk_083E406A:: @ 083E406A + .incbin "baserom.gba", 0x3E406A, 0x000006A + +gUnk_083E40D4:: @ 083E40D4 + .incbin "baserom.gba", 0x3E40D4, 0x000133D + +gUnk_083E5411:: @ 083E5411 + .incbin "baserom.gba", 0x3E5411, 0x0000532 + +gUnk_083E5943:: @ 083E5943 + .incbin "baserom.gba", 0x3E5943, 0x00002E1 + +gUnk_083E5C24:: @ 083E5C24 + .incbin "baserom.gba", 0x3E5C24, 0x00029EC + +gUnk_083E8610:: @ 083E8610 + .incbin "baserom.gba", 0x3E8610, 0x00079F0 + +gUnk_083F0000:: @ 083F0000 + .incbin "baserom.gba", 0x3F0000, 0x0000001 + +gUnk_083F0001:: @ 083F0001 + .incbin "baserom.gba", 0x3F0001, 0x000003F + +gUnk_083F0040:: @ 083F0040 + .incbin "baserom.gba", 0x3F0040, 0x000037F + +gUnk_083F03BF:: @ 083F03BF + .incbin "baserom.gba", 0x3F03BF, 0x0002450 + +gUnk_083F280F:: @ 083F280F + .incbin "baserom.gba", 0x3F280F, 0x0000BC3 + +gUnk_083F33D2:: @ 083F33D2 + .incbin "baserom.gba", 0x3F33D2, 0x0000F67 + +gUnk_083F4339:: @ 083F4339 + .incbin "baserom.gba", 0x3F4339, 0x00000CE + +gUnk_083F4407:: @ 083F4407 + .incbin "baserom.gba", 0x3F4407, 0x0000BC8 + +gUnk_083F4FCF:: @ 083F4FCF + .incbin "baserom.gba", 0x3F4FCF, 0x0000035 + +gUnk_083F5004:: @ 083F5004 + .incbin "baserom.gba", 0x3F5004, 0x0000335 + +gUnk_083F5339:: @ 083F5339 + .incbin "baserom.gba", 0x3F5339, 0x000000A + +gUnk_083F5343:: @ 083F5343 + .incbin "baserom.gba", 0x3F5343, 0x0000D77 + +gUnk_083F60BA:: @ 083F60BA + .incbin "baserom.gba", 0x3F60BA, 0x0000051 + +gUnk_083F610B:: @ 083F610B + .incbin "baserom.gba", 0x3F610B, 0x0000057 + +gUnk_083F6162:: @ 083F6162 + .incbin "baserom.gba", 0x3F6162, 0x00006D5 + +gUnk_083F6837:: @ 083F6837 + .incbin "baserom.gba", 0x3F6837, 0x0000907 + +gUnk_083F713E:: @ 083F713E + .incbin "baserom.gba", 0x3F713E, 0x000033B + +gUnk_083F7479:: @ 083F7479 + .incbin "baserom.gba", 0x3F7479, 0x0000B8A + +gUnk_083F8003:: @ 083F8003 + .incbin "baserom.gba", 0x3F8003, 0x0001086 + +gUnk_083F9089:: @ 083F9089 + .incbin "baserom.gba", 0x3F9089, 0x0003334 + +gUnk_083FC3BD:: @ 083FC3BD + .incbin "baserom.gba", 0x3FC3BD, 0x0000D3C + +gUnk_083FD0F9:: @ 083FD0F9 + .incbin "baserom.gba", 0x3FD0F9, 0x0001DF3 + +gUnk_083FEEEC:: @ 083FEEEC + .incbin "baserom.gba", 0x3FEEEC, 0x0001114 + +gUnk_08400000:: @ 08400000 + .incbin "baserom.gba", 0x400000, 0x0000001 + +gUnk_08400001:: @ 08400001 + .incbin "baserom.gba", 0x400001, 0x0000003 + +gUnk_08400004:: @ 08400004 + .incbin "baserom.gba", 0x400004, 0x0000003 + +gUnk_08400007:: @ 08400007 + .incbin "baserom.gba", 0x400007, 0x0000003 + +gUnk_0840000A:: @ 0840000A + .incbin "baserom.gba", 0x40000A, 0x000001D + +gUnk_08400027:: @ 08400027 + .incbin "baserom.gba", 0x400027, 0x0000006 + +gUnk_0840002D:: @ 0840002D + .incbin "baserom.gba", 0x40002D, 0x0000050 + +gUnk_0840007D:: @ 0840007D + .incbin "baserom.gba", 0x40007D, 0x0000068 + +gUnk_084000E5:: @ 084000E5 + .incbin "baserom.gba", 0x4000E5, 0x0000001 + +gUnk_084000E6:: @ 084000E6 + .incbin "baserom.gba", 0x4000E6, 0x0000001 + +gUnk_084000E7:: @ 084000E7 + .incbin "baserom.gba", 0x4000E7, 0x0000009 + +gUnk_084000F0:: @ 084000F0 + .incbin "baserom.gba", 0x4000F0, 0x0000004 + +gUnk_084000F4:: @ 084000F4 + .incbin "baserom.gba", 0x4000F4, 0x0000002 + +gUnk_084000F6:: @ 084000F6 + .incbin "baserom.gba", 0x4000F6, 0x0000009 + +gUnk_084000FF:: @ 084000FF + .incbin "baserom.gba", 0x4000FF, 0x0000001 + +gUnk_08400100:: @ 08400100 + .incbin "baserom.gba", 0x400100, 0x0000030 + +gUnk_08400130:: @ 08400130 + .incbin "baserom.gba", 0x400130, 0x0000078 + +gUnk_084001A8:: @ 084001A8 + .incbin "baserom.gba", 0x4001A8, 0x000001C + +gUnk_084001C4:: @ 084001C4 + .incbin "baserom.gba", 0x4001C4, 0x0000026 + +gUnk_084001EA:: @ 084001EA + .incbin "baserom.gba", 0x4001EA, 0x000000E + +gUnk_084001F8:: @ 084001F8 + .incbin "baserom.gba", 0x4001F8, 0x0000219 + +gUnk_08400411:: @ 08400411 + .incbin "baserom.gba", 0x400411, 0x0000184 + +gUnk_08400595:: @ 08400595 + .incbin "baserom.gba", 0x400595, 0x000005B + +gUnk_084005F0:: @ 084005F0 + .incbin "baserom.gba", 0x4005F0, 0x0000015 + +gUnk_08400605:: @ 08400605 + .incbin "baserom.gba", 0x400605, 0x000000B + +gUnk_08400610:: @ 08400610 + .incbin "baserom.gba", 0x400610, 0x000002E + +gUnk_0840063E:: @ 0840063E + .incbin "baserom.gba", 0x40063E, 0x00000C2 + +gUnk_08400700:: @ 08400700 + .incbin "baserom.gba", 0x400700, 0x0000010 + +gUnk_08400710:: @ 08400710 + .incbin "baserom.gba", 0x400710, 0x0000020 + +gUnk_08400730:: @ 08400730 + .incbin "baserom.gba", 0x400730, 0x0000010 + +gUnk_08400740:: @ 08400740 + .incbin "baserom.gba", 0x400740, 0x000000A + +gUnk_0840074A:: @ 0840074A + .incbin "baserom.gba", 0x40074A, 0x0000006 + +gUnk_08400750:: @ 08400750 + .incbin "baserom.gba", 0x400750, 0x0000010 + +gUnk_08400760:: @ 08400760 + .incbin "baserom.gba", 0x400760, 0x0000080 + +gUnk_084007E0:: @ 084007E0 + .incbin "baserom.gba", 0x4007E0, 0x0000030 + +gUnk_08400810:: @ 08400810 + .incbin "baserom.gba", 0x400810, 0x0000014 + +gUnk_08400824:: @ 08400824 + .incbin "baserom.gba", 0x400824, 0x0000009 + +gUnk_0840082D:: @ 0840082D + .incbin "baserom.gba", 0x40082D, 0x0000009 + +gUnk_08400836:: @ 08400836 + .incbin "baserom.gba", 0x400836, 0x000000A + +gUnk_08400840:: @ 08400840 + .incbin "baserom.gba", 0x400840, 0x000005F + +gUnk_0840089F:: @ 0840089F + .incbin "baserom.gba", 0x40089F, 0x0000451 + +gUnk_08400CF0:: @ 08400CF0 + .incbin "baserom.gba", 0x400CF0, 0x0000210 + +gUnk_08400F00:: @ 08400F00 + .incbin "baserom.gba", 0x400F00, 0x0000029 + +gUnk_08400F29:: @ 08400F29 + .incbin "baserom.gba", 0x400F29, 0x0000013 + +gUnk_08400F3C:: @ 08400F3C + .incbin "baserom.gba", 0x400F3C, 0x0000008 + +gUnk_08400F44:: @ 08400F44 + .incbin "baserom.gba", 0x400F44, 0x0000195 + +gUnk_084010D9:: @ 084010D9 + .incbin "baserom.gba", 0x4010D9, 0x00001A8 + +gUnk_08401281:: @ 08401281 + .incbin "baserom.gba", 0x401281, 0x00000C0 + +gUnk_08401341:: @ 08401341 + .incbin "baserom.gba", 0x401341, 0x00007B7 + +gUnk_08401AF8:: @ 08401AF8 + .incbin "baserom.gba", 0x401AF8, 0x00004C8 + +gUnk_08401FC0:: @ 08401FC0 + .incbin "baserom.gba", 0x401FC0, 0x0000268 + +gUnk_08402228:: @ 08402228 + .incbin "baserom.gba", 0x402228, 0x0000518 + +gUnk_08402740:: @ 08402740 + .incbin "baserom.gba", 0x402740, 0x0000501 + +gUnk_08402C41:: @ 08402C41 + .incbin "baserom.gba", 0x402C41, 0x00002C7 + +gUnk_08402F08:: @ 08402F08 + .incbin "baserom.gba", 0x402F08, 0x00003F7 + +gUnk_084032FF:: @ 084032FF + .incbin "baserom.gba", 0x4032FF, 0x0000011 + +gUnk_08403310:: @ 08403310 + .incbin "baserom.gba", 0x403310, 0x0000553 + +gUnk_08403863:: @ 08403863 + .incbin "baserom.gba", 0x403863, 0x00007A0 + +gUnk_08404003:: @ 08404003 + .incbin "baserom.gba", 0x404003, 0x000001D + +gUnk_08404020:: @ 08404020 + .incbin "baserom.gba", 0x404020, 0x00001F0 + +gUnk_08404210:: @ 08404210 + .incbin "baserom.gba", 0x404210, 0x0000454 + +gUnk_08404664:: @ 08404664 + .incbin "baserom.gba", 0x404664, 0x000039C + +gUnk_08404A00:: @ 08404A00 + .incbin "baserom.gba", 0x404A00, 0x0000568 + +gUnk_08404F68:: @ 08404F68 + .incbin "baserom.gba", 0x404F68, 0x0000298 + +gUnk_08405200:: @ 08405200 + .incbin "baserom.gba", 0x405200, 0x0000227 + +gUnk_08405427:: @ 08405427 + .incbin "baserom.gba", 0x405427, 0x000061A + +gUnk_08405A41:: @ 08405A41 + .incbin "baserom.gba", 0x405A41, 0x0000614 + +gUnk_08406055:: @ 08406055 + .incbin "baserom.gba", 0x406055, 0x00000B3 + +gUnk_08406108:: @ 08406108 + .incbin "baserom.gba", 0x406108, 0x000021C + +gUnk_08406324:: @ 08406324 + .incbin "baserom.gba", 0x406324, 0x0000854 + +gUnk_08406B78:: @ 08406B78 + .incbin "baserom.gba", 0x406B78, 0x0000107 + +gUnk_08406C7F:: @ 08406C7F + .incbin "baserom.gba", 0x406C7F, 0x0000389 + +gUnk_08407008:: @ 08407008 + .incbin "baserom.gba", 0x407008, 0x0000C52 + +gUnk_08407C5A:: @ 08407C5A + .incbin "baserom.gba", 0x407C5A, 0x00002AD + +gUnk_08407F07:: @ 08407F07 + .incbin "baserom.gba", 0x407F07, 0x00003CA + +gUnk_084082D1:: @ 084082D1 + .incbin "baserom.gba", 0x4082D1, 0x000003D + +gUnk_0840830E:: @ 0840830E + .incbin "baserom.gba", 0x40830E, 0x000028A + +gUnk_08408598:: @ 08408598 + .incbin "baserom.gba", 0x408598, 0x00001A8 + +gUnk_08408740:: @ 08408740 + .incbin "baserom.gba", 0x408740, 0x00000C8 + +gUnk_08408808:: @ 08408808 + .incbin "baserom.gba", 0x408808, 0x00000FF + +gUnk_08408907:: @ 08408907 + .incbin "baserom.gba", 0x408907, 0x000018F + +gUnk_08408A96:: @ 08408A96 + .incbin "baserom.gba", 0x408A96, 0x00001E7 + +gUnk_08408C7D:: @ 08408C7D + .incbin "baserom.gba", 0x408C7D, 0x000024A + +gUnk_08408EC7:: @ 08408EC7 + .incbin "baserom.gba", 0x408EC7, 0x000007C + +gUnk_08408F43:: @ 08408F43 + .incbin "baserom.gba", 0x408F43, 0x00000C7 + +gUnk_0840900A:: @ 0840900A + .incbin "baserom.gba", 0x40900A, 0x0000155 + +gUnk_0840915F:: @ 0840915F + .incbin "baserom.gba", 0x40915F, 0x000011B + +gUnk_0840927A:: @ 0840927A + .incbin "baserom.gba", 0x40927A, 0x00002A3 + +gUnk_0840951D:: @ 0840951D + .incbin "baserom.gba", 0x40951D, 0x00004F4 + +gUnk_08409A11:: @ 08409A11 + .incbin "baserom.gba", 0x409A11, 0x0000739 + +gUnk_0840A14A:: @ 0840A14A + .incbin "baserom.gba", 0x40A14A, 0x000044D + +gUnk_0840A597:: @ 0840A597 + .incbin "baserom.gba", 0x40A597, 0x000036A + +gUnk_0840A901:: @ 0840A901 + .incbin "baserom.gba", 0x40A901, 0x0000189 + +gUnk_0840AA8A:: @ 0840AA8A + .incbin "baserom.gba", 0x40AA8A, 0x000043B + +gUnk_0840AEC5:: @ 0840AEC5 + .incbin "baserom.gba", 0x40AEC5, 0x0000074 + +gUnk_0840AF39:: @ 0840AF39 + .incbin "baserom.gba", 0x40AF39, 0x0000067 + +gUnk_0840AFA0:: @ 0840AFA0 + .incbin "baserom.gba", 0x40AFA0, 0x00000DF + +gUnk_0840B07F:: @ 0840B07F + .incbin "baserom.gba", 0x40B07F, 0x0000289 + +gUnk_0840B308:: @ 0840B308 + .incbin "baserom.gba", 0x40B308, 0x00002C7 + +gUnk_0840B5CF:: @ 0840B5CF + .incbin "baserom.gba", 0x40B5CF, 0x000007D + +gUnk_0840B64C:: @ 0840B64C + .incbin "baserom.gba", 0x40B64C, 0x0000098 + +gUnk_0840B6E4:: @ 0840B6E4 + .incbin "baserom.gba", 0x40B6E4, 0x00000D9 + +gUnk_0840B7BD:: @ 0840B7BD + .incbin "baserom.gba", 0x40B7BD, 0x0000243 + +gUnk_0840BA00:: @ 0840BA00 + .incbin "baserom.gba", 0x40BA00, 0x000073D + +gUnk_0840C13D:: @ 0840C13D + .incbin "baserom.gba", 0x40C13D, 0x0000446 + +gUnk_0840C583:: @ 0840C583 + .incbin "baserom.gba", 0x40C583, 0x0000042 + +gUnk_0840C5C5:: @ 0840C5C5 + .incbin "baserom.gba", 0x40C5C5, 0x000016E + +gUnk_0840C733:: @ 0840C733 + .incbin "baserom.gba", 0x40C733, 0x0000395 + +gUnk_0840CAC8:: @ 0840CAC8 + .incbin "baserom.gba", 0x40CAC8, 0x00000F3 + +gUnk_0840CBBB:: @ 0840CBBB + .incbin "baserom.gba", 0x40CBBB, 0x0000098 + +gUnk_0840CC53:: @ 0840CC53 + .incbin "baserom.gba", 0x40CC53, 0x000000F + +gUnk_0840CC62:: @ 0840CC62 + .incbin "baserom.gba", 0x40CC62, 0x0000027 + +gUnk_0840CC89:: @ 0840CC89 + .incbin "baserom.gba", 0x40CC89, 0x00002DD + +gUnk_0840CF66:: @ 0840CF66 + .incbin "baserom.gba", 0x40CF66, 0x0000136 + +gUnk_0840D09C:: @ 0840D09C + .incbin "baserom.gba", 0x40D09C, 0x00000C1 + +gUnk_0840D15D:: @ 0840D15D + .incbin "baserom.gba", 0x40D15D, 0x00001A4 + +gUnk_0840D301:: @ 0840D301 + .incbin "baserom.gba", 0x40D301, 0x000003E + +gUnk_0840D33F:: @ 0840D33F + .incbin "baserom.gba", 0x40D33F, 0x00003DA + +gUnk_0840D719:: @ 0840D719 + .incbin "baserom.gba", 0x40D719, 0x00003A3 + +gUnk_0840DABC:: @ 0840DABC + .incbin "baserom.gba", 0x40DABC, 0x000004C + +gUnk_0840DB08:: @ 0840DB08 + .incbin "baserom.gba", 0x40DB08, 0x000006F + +gUnk_0840DB77:: @ 0840DB77 + .incbin "baserom.gba", 0x40DB77, 0x0000002 + +gUnk_0840DB79:: @ 0840DB79 + .incbin "baserom.gba", 0x40DB79, 0x00000E6 + +gUnk_0840DC5F:: @ 0840DC5F + .incbin "baserom.gba", 0x40DC5F, 0x000001A + +gUnk_0840DC79:: @ 0840DC79 + .incbin "baserom.gba", 0x40DC79, 0x00000DE + +gUnk_0840DD57:: @ 0840DD57 + .incbin "baserom.gba", 0x40DD57, 0x00001F9 + +gUnk_0840DF50:: @ 0840DF50 + .incbin "baserom.gba", 0x40DF50, 0x0000214 + +gUnk_0840E164:: @ 0840E164 + .incbin "baserom.gba", 0x40E164, 0x0000290 + +gUnk_0840E3F4:: @ 0840E3F4 + .incbin "baserom.gba", 0x40E3F4, 0x0000204 + +gUnk_0840E5F8:: @ 0840E5F8 + .incbin "baserom.gba", 0x40E5F8, 0x0000098 + +gUnk_0840E690:: @ 0840E690 + .incbin "baserom.gba", 0x40E690, 0x000016F + +gUnk_0840E7FF:: @ 0840E7FF + .incbin "baserom.gba", 0x40E7FF, 0x00000CE + +gUnk_0840E8CD:: @ 0840E8CD + .incbin "baserom.gba", 0x40E8CD, 0x000002E + +gUnk_0840E8FB:: @ 0840E8FB + .incbin "baserom.gba", 0x40E8FB, 0x0000301 + +gUnk_0840EBFC:: @ 0840EBFC + .incbin "baserom.gba", 0x40EBFC, 0x00000FA + +gUnk_0840ECF6:: @ 0840ECF6 + .incbin "baserom.gba", 0x40ECF6, 0x0000006 + +gUnk_0840ECFC:: @ 0840ECFC + .incbin "baserom.gba", 0x40ECFC, 0x00000FC + +gUnk_0840EDF8:: @ 0840EDF8 + .incbin "baserom.gba", 0x40EDF8, 0x00000FF + +gUnk_0840EEF7:: @ 0840EEF7 + .incbin "baserom.gba", 0x40EEF7, 0x0000011 + +gUnk_0840EF08:: @ 0840EF08 + .incbin "baserom.gba", 0x40EF08, 0x00001D8 + +gUnk_0840F0E0:: @ 0840F0E0 + .incbin "baserom.gba", 0x40F0E0, 0x0000018 + +gUnk_0840F0F8:: @ 0840F0F8 + .incbin "baserom.gba", 0x40F0F8, 0x000000F + +gUnk_0840F107:: @ 0840F107 + .incbin "baserom.gba", 0x40F107, 0x00001E5 + +gUnk_0840F2EC:: @ 0840F2EC + .incbin "baserom.gba", 0x40F2EC, 0x0000264 + +gUnk_0840F550:: @ 0840F550 + .incbin "baserom.gba", 0x40F550, 0x00000A8 + +gUnk_0840F5F8:: @ 0840F5F8 + .incbin "baserom.gba", 0x40F5F8, 0x000013D + +gUnk_0840F735:: @ 0840F735 + .incbin "baserom.gba", 0x40F735, 0x00000C3 + +gUnk_0840F7F8:: @ 0840F7F8 + .incbin "baserom.gba", 0x40F7F8, 0x00002FC + +gUnk_0840FAF4:: @ 0840FAF4 + .incbin "baserom.gba", 0x40FAF4, 0x0000004 + +gUnk_0840FAF8:: @ 0840FAF8 + .incbin "baserom.gba", 0x40FAF8, 0x00000FE + +gUnk_0840FBF6:: @ 0840FBF6 + .incbin "baserom.gba", 0x40FBF6, 0x0000002 + +gUnk_0840FBF8:: @ 0840FBF8 + .incbin "baserom.gba", 0x40FBF8, 0x0000001 + +gUnk_0840FBF9:: @ 0840FBF9 + .incbin "baserom.gba", 0x40FBF9, 0x0000001 + +gUnk_0840FBFA:: @ 0840FBFA + .incbin "baserom.gba", 0x40FBFA, 0x00000FE + +gUnk_0840FCF8:: @ 0840FCF8 + .incbin "baserom.gba", 0x40FCF8, 0x0000002 + +gUnk_0840FCFA:: @ 0840FCFA + .incbin "baserom.gba", 0x40FCFA, 0x00000FE + +gUnk_0840FDF8:: @ 0840FDF8 + .incbin "baserom.gba", 0x40FDF8, 0x000000F + +gUnk_0840FE07:: @ 0840FE07 + .incbin "baserom.gba", 0x40FE07, 0x00001E2 + +gUnk_0840FFE9:: @ 0840FFE9 + .incbin "baserom.gba", 0x40FFE9, 0x000011E + +gUnk_08410107:: @ 08410107 + .incbin "baserom.gba", 0x410107, 0x000090A + +gUnk_08410A11:: @ 08410A11 + .incbin "baserom.gba", 0x410A11, 0x0000808 + +gUnk_08411219:: @ 08411219 + .incbin "baserom.gba", 0x411219, 0x00001EB + +gUnk_08411404:: @ 08411404 + .incbin "baserom.gba", 0x411404, 0x0001D1C + +gUnk_08413120:: @ 08413120 + .incbin "baserom.gba", 0x413120, 0x0000103 + +gUnk_08413223:: @ 08413223 + .incbin "baserom.gba", 0x413223, 0x000220F + +gUnk_08415432:: @ 08415432 + .incbin "baserom.gba", 0x415432, 0x00003CA + +gUnk_084157FC:: @ 084157FC + .incbin "baserom.gba", 0x4157FC, 0x0001676 + +gUnk_08416E72:: @ 08416E72 + .incbin "baserom.gba", 0x416E72, 0x00011CE + +gUnk_08418040:: @ 08418040 + .incbin "baserom.gba", 0x418040, 0x0000BD0 + +gUnk_08418C10:: @ 08418C10 + .incbin "baserom.gba", 0x418C10, 0x00032F8 + +gUnk_0841BF08:: @ 0841BF08 + .incbin "baserom.gba", 0x41BF08, 0x0002DD7 + +gUnk_0841ECDF:: @ 0841ECDF + .incbin "baserom.gba", 0x41ECDF, 0x0000319 + +gUnk_0841EFF8:: @ 0841EFF8 + .incbin "baserom.gba", 0x41EFF8, 0x00003F8 + +gUnk_0841F3F0:: @ 0841F3F0 + .incbin "baserom.gba", 0x41F3F0, 0x000000A + +gUnk_0841F3FA:: @ 0841F3FA + .incbin "baserom.gba", 0x41F3FA, 0x00001F6 + +gUnk_0841F5F0:: @ 0841F5F0 + .incbin "baserom.gba", 0x41F5F0, 0x00001FE + +gUnk_0841F7EE:: @ 0841F7EE + .incbin "baserom.gba", 0x41F7EE, 0x000010A + +gUnk_0841F8F8:: @ 0841F8F8 + .incbin "baserom.gba", 0x41F8F8, 0x0000100 + +gUnk_0841F9F8:: @ 0841F9F8 + .incbin "baserom.gba", 0x41F9F8, 0x0000100 + +gUnk_0841FAF8:: @ 0841FAF8 + .incbin "baserom.gba", 0x41FAF8, 0x0000508 + +gUnk_08420000:: @ 08420000 + .incbin "baserom.gba", 0x420000, 0x0000092 + +gUnk_08420092:: @ 08420092 + .incbin "baserom.gba", 0x420092, 0x00003A5 + +gUnk_08420437:: @ 08420437 + .incbin "baserom.gba", 0x420437, 0x0000005 + +gUnk_0842043C:: @ 0842043C + .incbin "baserom.gba", 0x42043C, 0x0000C91 + +gUnk_084210CD:: @ 084210CD + .incbin "baserom.gba", 0x4210CD, 0x0000058 + +gUnk_08421125:: @ 08421125 + .incbin "baserom.gba", 0x421125, 0x0001004 + +gUnk_08422129:: @ 08422129 + .incbin "baserom.gba", 0x422129, 0x0000049 + +gUnk_08422172:: @ 08422172 + .incbin "baserom.gba", 0x422172, 0x00007C4 + +gUnk_08422936:: @ 08422936 + .incbin "baserom.gba", 0x422936, 0x000039B + +gUnk_08422CD1:: @ 08422CD1 + .incbin "baserom.gba", 0x422CD1, 0x0001637 + +gUnk_08424308:: @ 08424308 + .incbin "baserom.gba", 0x424308, 0x0003B7D + +gUnk_08427E85:: @ 08427E85 + .incbin "baserom.gba", 0x427E85, 0x000017A + +gUnk_08427FFF:: @ 08427FFF + .incbin "baserom.gba", 0x427FFF, 0x0002A70 + +gUnk_0842AA6F:: @ 0842AA6F + .incbin "baserom.gba", 0x42AA6F, 0x0001AD6 + +gUnk_0842C545:: @ 0842C545 + .incbin "baserom.gba", 0x42C545, 0x0000D8E + +gUnk_0842D2D3:: @ 0842D2D3 + .incbin "baserom.gba", 0x42D2D3, 0x0002730 + +gUnk_0842FA03:: @ 0842FA03 + .incbin "baserom.gba", 0x42FA03, 0x00005FD + +gUnk_08430000:: @ 08430000 + .incbin "baserom.gba", 0x430000, 0x000009A + +gUnk_0843009A:: @ 0843009A + .incbin "baserom.gba", 0x43009A, 0x0000052 + +gUnk_084300EC:: @ 084300EC + .incbin "baserom.gba", 0x4300EC, 0x0000044 + +gUnk_08430130:: @ 08430130 + .incbin "baserom.gba", 0x430130, 0x00001D0 + +gUnk_08430300:: @ 08430300 + .incbin "baserom.gba", 0x430300, 0x0000142 + +gUnk_08430442:: @ 08430442 + .incbin "baserom.gba", 0x430442, 0x0000A62 + +gUnk_08430EA4:: @ 08430EA4 + .incbin "baserom.gba", 0x430EA4, 0x00001F1 + +gUnk_08431095:: @ 08431095 + .incbin "baserom.gba", 0x431095, 0x000016E + +gUnk_08431203:: @ 08431203 + .incbin "baserom.gba", 0x431203, 0x0000020 + +gUnk_08431223:: @ 08431223 + .incbin "baserom.gba", 0x431223, 0x000034D + +gUnk_08431570:: @ 08431570 + .incbin "baserom.gba", 0x431570, 0x0000490 + +gUnk_08431A00:: @ 08431A00 + .incbin "baserom.gba", 0x431A00, 0x00009E2 + +gUnk_084323E2:: @ 084323E2 + .incbin "baserom.gba", 0x4323E2, 0x0000E16 + +gUnk_084331F8:: @ 084331F8 + .incbin "baserom.gba", 0x4331F8, 0x000013B + +gUnk_08433333:: @ 08433333 + .incbin "baserom.gba", 0x433333, 0x0000001 + +gUnk_08433334:: @ 08433334 + .incbin "baserom.gba", 0x433334, 0x0000001 + +gUnk_08433335:: @ 08433335 + .incbin "baserom.gba", 0x433335, 0x0000FBC + +gUnk_084342F1:: @ 084342F1 + .incbin "baserom.gba", 0x4342F1, 0x0000663 + +gUnk_08434954:: @ 08434954 + .incbin "baserom.gba", 0x434954, 0x0000EAB + +gUnk_084357FF:: @ 084357FF + .incbin "baserom.gba", 0x4357FF, 0x000055E + +gUnk_08435D5D:: @ 08435D5D + .incbin "baserom.gba", 0x435D5D, 0x0000802 + +gUnk_0843655F:: @ 0843655F + .incbin "baserom.gba", 0x43655F, 0x0001288 + +gUnk_084377E7:: @ 084377E7 + .incbin "baserom.gba", 0x4377E7, 0x0000553 + +gUnk_08437D3A:: @ 08437D3A + .incbin "baserom.gba", 0x437D3A, 0x00000DC + +gUnk_08437E16:: @ 08437E16 + .incbin "baserom.gba", 0x437E16, 0x0000099 + +gUnk_08437EAF:: @ 08437EAF + .incbin "baserom.gba", 0x437EAF, 0x000014B + +gUnk_08437FFA:: @ 08437FFA + .incbin "baserom.gba", 0x437FFA, 0x0007B19 + +gUnk_0843FB13:: @ 0843FB13 + .incbin "baserom.gba", 0x43FB13, 0x0000495 + +gUnk_0843FFA8:: @ 0843FFA8 + .incbin "baserom.gba", 0x43FFA8, 0x0000082 + +gUnk_0844002A:: @ 0844002A + .incbin "baserom.gba", 0x44002A, 0x00001C2 + +gUnk_084401EC:: @ 084401EC + .incbin "baserom.gba", 0x4401EC, 0x0000A56 + +gUnk_08440C42:: @ 08440C42 + .incbin "baserom.gba", 0x440C42, 0x00004C0 + +gUnk_08441102:: @ 08441102 + .incbin "baserom.gba", 0x441102, 0x000000F + +gUnk_08441111:: @ 08441111 + .incbin "baserom.gba", 0x441111, 0x0000101 + +gUnk_08441212:: @ 08441212 + .incbin "baserom.gba", 0x441212, 0x0000117 + +gUnk_08441329:: @ 08441329 + .incbin "baserom.gba", 0x441329, 0x0000311 + +gUnk_0844163A:: @ 0844163A + .incbin "baserom.gba", 0x44163A, 0x00001EE + +gUnk_08441828:: @ 08441828 + .incbin "baserom.gba", 0x441828, 0x00003FC + +gUnk_08441C24:: @ 08441C24 + .incbin "baserom.gba", 0x441C24, 0x00001DD + +gUnk_08441E01:: @ 08441E01 + .incbin "baserom.gba", 0x441E01, 0x0000322 + +gUnk_08442123:: @ 08442123 + .incbin "baserom.gba", 0x442123, 0x000107D + +gUnk_084431A0:: @ 084431A0 + .incbin "baserom.gba", 0x4431A0, 0x0000083 + +gUnk_08443223:: @ 08443223 + .incbin "baserom.gba", 0x443223, 0x0000023 + +gUnk_08443246:: @ 08443246 + .incbin "baserom.gba", 0x443246, 0x00001C5 + +gUnk_0844340B:: @ 0844340B + .incbin "baserom.gba", 0x44340B, 0x0000F39 + +gUnk_08444344:: @ 08444344 + .incbin "baserom.gba", 0x444344, 0x00000F0 + +gUnk_08444434:: @ 08444434 + .incbin "baserom.gba", 0x444434, 0x000000E + +gUnk_08444442:: @ 08444442 + .incbin "baserom.gba", 0x444442, 0x0000002 + +gUnk_08444444:: @ 08444444 + .incbin "baserom.gba", 0x444444, 0x00000B9 + +gUnk_084444FD:: @ 084444FD + .incbin "baserom.gba", 0x4444FD, 0x0000097 + +gUnk_08444594:: @ 08444594 + .incbin "baserom.gba", 0x444594, 0x0000158 + +gUnk_084446EC:: @ 084446EC + .incbin "baserom.gba", 0x4446EC, 0x000003B + +gUnk_08444727:: @ 08444727 + .incbin "baserom.gba", 0x444727, 0x000051E + +gUnk_08444C45:: @ 08444C45 + .incbin "baserom.gba", 0x444C45, 0x00002A5 + +gUnk_08444EEA:: @ 08444EEA + .incbin "baserom.gba", 0x444EEA, 0x0000959 + +gUnk_08445843:: @ 08445843 + .incbin "baserom.gba", 0x445843, 0x00003E0 + +gUnk_08445C23:: @ 08445C23 + .incbin "baserom.gba", 0x445C23, 0x0000110 + +gUnk_08445D33:: @ 08445D33 + .incbin "baserom.gba", 0x445D33, 0x00000CD + +gUnk_08445E00:: @ 08445E00 + .incbin "baserom.gba", 0x445E00, 0x0000768 + +gUnk_08446568:: @ 08446568 + .incbin "baserom.gba", 0x446568, 0x000190A + +gUnk_08447E72:: @ 08447E72 + .incbin "baserom.gba", 0x447E72, 0x00000A2 + +gUnk_08447F14:: @ 08447F14 + .incbin "baserom.gba", 0x447F14, 0x0000232 + +gUnk_08448146:: @ 08448146 + .incbin "baserom.gba", 0x448146, 0x00004BA + +gUnk_08448600:: @ 08448600 + .incbin "baserom.gba", 0x448600, 0x000151A + +gUnk_08449B1A:: @ 08449B1A + .incbin "baserom.gba", 0x449B1A, 0x00009E6 + +gUnk_0844A500:: @ 0844A500 + .incbin "baserom.gba", 0x44A500, 0x0000E33 + +gUnk_0844B333:: @ 0844B333 + .incbin "baserom.gba", 0x44B333, 0x000211A + +gUnk_0844D44D:: @ 0844D44D + .incbin "baserom.gba", 0x44D44D, 0x00003B3 + +gUnk_0844D800:: @ 0844D800 + .incbin "baserom.gba", 0x44D800, 0x0001700 + +gUnk_0844EF00:: @ 0844EF00 + .incbin "baserom.gba", 0x44EF00, 0x000011F + +gUnk_0844F01F:: @ 0844F01F + .incbin "baserom.gba", 0x44F01F, 0x00000D9 + +gUnk_0844F0F8:: @ 0844F0F8 + .incbin "baserom.gba", 0x44F0F8, 0x0000A0B + +gUnk_0844FB03:: @ 0844FB03 + .incbin "baserom.gba", 0x44FB03, 0x000050D + +gUnk_08450010:: @ 08450010 + .incbin "baserom.gba", 0x450010, 0x00003F1 + +gUnk_08450401:: @ 08450401 + .incbin "baserom.gba", 0x450401, 0x0001D21 + +gUnk_08452122:: @ 08452122 + .incbin "baserom.gba", 0x452122, 0x00000FE + +gUnk_08452220:: @ 08452220 + .incbin "baserom.gba", 0x452220, 0x0000134 + +gUnk_08452354:: @ 08452354 + .incbin "baserom.gba", 0x452354, 0x0000DE1 + +gUnk_08453135:: @ 08453135 + .incbin "baserom.gba", 0x453135, 0x00000FF + +gUnk_08453234:: @ 08453234 + .incbin "baserom.gba", 0x453234, 0x00001D4 + +gUnk_08453408:: @ 08453408 + .incbin "baserom.gba", 0x453408, 0x000001C + +gUnk_08453424:: @ 08453424 + .incbin "baserom.gba", 0x453424, 0x00006DC + +gUnk_08453B00:: @ 08453B00 + .incbin "baserom.gba", 0x453B00, 0x00005E5 + +gUnk_084540E5:: @ 084540E5 + .incbin "baserom.gba", 0x4540E5, 0x000034F + +gUnk_08454434:: @ 08454434 + .incbin "baserom.gba", 0x454434, 0x000002A + +gUnk_0845445E:: @ 0845445E + .incbin "baserom.gba", 0x45445E, 0x0000093 + +gUnk_084544F1:: @ 084544F1 + .incbin "baserom.gba", 0x4544F1, 0x0000063 + +gUnk_08454554:: @ 08454554 + .incbin "baserom.gba", 0x454554, 0x0000BC2 + +gUnk_08455116:: @ 08455116 + .incbin "baserom.gba", 0x455116, 0x0000124 + +gUnk_0845523A:: @ 0845523A + .incbin "baserom.gba", 0x45523A, 0x00000E9 + +gUnk_08455323:: @ 08455323 + .incbin "baserom.gba", 0x455323, 0x0000221 + +gUnk_08455544:: @ 08455544 + .incbin "baserom.gba", 0x455544, 0x0000011 + +gUnk_08455555:: @ 08455555 + .incbin "baserom.gba", 0x455555, 0x00002B2 + +gUnk_08455807:: @ 08455807 + .incbin "baserom.gba", 0x455807, 0x0000E1C + +gUnk_08456623:: @ 08456623 + .incbin "baserom.gba", 0x456623, 0x000025B + +gUnk_0845687E:: @ 0845687E + .incbin "baserom.gba", 0x45687E, 0x000228A + +gUnk_08458B08:: @ 08458B08 + .incbin "baserom.gba", 0x458B08, 0x000323D + +gUnk_0845BD45:: @ 0845BD45 + .incbin "baserom.gba", 0x45BD45, 0x0000D65 + +gUnk_0845CAAA:: @ 0845CAAA + .incbin "baserom.gba", 0x45CAAA, 0x000075D + +gUnk_0845D207:: @ 0845D207 + .incbin "baserom.gba", 0x45D207, 0x0001127 + +gUnk_0845E32E:: @ 0845E32E + .incbin "baserom.gba", 0x45E32E, 0x00001D4 + +gUnk_0845E502:: @ 0845E502 + .incbin "baserom.gba", 0x45E502, 0x0000857 + +gUnk_0845ED59:: @ 0845ED59 + .incbin "baserom.gba", 0x45ED59, 0x0000181 + +gUnk_0845EEDA:: @ 0845EEDA + .incbin "baserom.gba", 0x45EEDA, 0x0000C1E + +gUnk_0845FAF8:: @ 0845FAF8 + .incbin "baserom.gba", 0x45FAF8, 0x0000688 + +gUnk_08460180:: @ 08460180 + .incbin "baserom.gba", 0x460180, 0x0000290 + +gUnk_08460410:: @ 08460410 + .incbin "baserom.gba", 0x460410, 0x0000D45 + +gUnk_08461155:: @ 08461155 + .incbin "baserom.gba", 0x461155, 0x00011F0 + +gUnk_08462345:: @ 08462345 + .incbin "baserom.gba", 0x462345, 0x00010C5 + +gUnk_0846340A:: @ 0846340A + .incbin "baserom.gba", 0x46340A, 0x0001BED + +gUnk_08464FF7:: @ 08464FF7 + .incbin "baserom.gba", 0x464FF7, 0x0000321 + +gUnk_08465318:: @ 08465318 + .incbin "baserom.gba", 0x465318, 0x000012D + +gUnk_08465445:: @ 08465445 + .incbin "baserom.gba", 0x465445, 0x0000FC4 + +gUnk_08466409:: @ 08466409 + .incbin "baserom.gba", 0x466409, 0x000025B + +gUnk_08466664:: @ 08466664 + .incbin "baserom.gba", 0x466664, 0x00003F4 + +gUnk_08466A58:: @ 08466A58 + .incbin "baserom.gba", 0x466A58, 0x00005CC + +gUnk_08467024:: @ 08467024 + .incbin "baserom.gba", 0x467024, 0x0001203 + +gUnk_08468227:: @ 08468227 + .incbin "baserom.gba", 0x468227, 0x00014C7 + +gUnk_084696EE:: @ 084696EE + .incbin "baserom.gba", 0x4696EE, 0x0006923 + +gUnk_08470011:: @ 08470011 + .incbin "baserom.gba", 0x470011, 0x000000C + +gUnk_0847001D:: @ 0847001D + .incbin "baserom.gba", 0x47001D, 0x000006B + +gUnk_08470088:: @ 08470088 + .incbin "baserom.gba", 0x470088, 0x0000378 + +gUnk_08470400:: @ 08470400 + .incbin "baserom.gba", 0x470400, 0x00010EE + +gUnk_084714EE:: @ 084714EE + .incbin "baserom.gba", 0x4714EE, 0x0000008 + +gUnk_084714F6:: @ 084714F6 + .incbin "baserom.gba", 0x4714F6, 0x0000009 + +gUnk_084714FF:: @ 084714FF + .incbin "baserom.gba", 0x4714FF, 0x00019D7 + +gUnk_08472ED6:: @ 08472ED6 + .incbin "baserom.gba", 0x472ED6, 0x00009E1 + +gUnk_084738B7:: @ 084738B7 + .incbin "baserom.gba", 0x4738B7, 0x0000E11 + +gUnk_084746C8:: @ 084746C8 + .incbin "baserom.gba", 0x4746C8, 0x00019FB + +gUnk_084760C3:: @ 084760C3 + .incbin "baserom.gba", 0x4760C3, 0x0009F3E + +gUnk_08480001:: @ 08480001 + .incbin "baserom.gba", 0x480001, 0x0000003 + +gUnk_08480004:: @ 08480004 + .incbin "baserom.gba", 0x480004, 0x0000103 + +gUnk_08480107:: @ 08480107 + .incbin "baserom.gba", 0x480107, 0x00003BB + +gUnk_084804C2:: @ 084804C2 + .incbin "baserom.gba", 0x4804C2, 0x0000346 + +gUnk_08480808:: @ 08480808 + .incbin "baserom.gba", 0x480808, 0x0000C67 + +gUnk_0848146F:: @ 0848146F + .incbin "baserom.gba", 0x48146F, 0x0001C83 + +gUnk_084830F2:: @ 084830F2 + .incbin "baserom.gba", 0x4830F2, 0x0002256 + +gUnk_08485348:: @ 08485348 + .incbin "baserom.gba", 0x485348, 0x0001E26 + +gUnk_0848716E:: @ 0848716E + .incbin "baserom.gba", 0x48716E, 0x0000CE6 + +gUnk_08487E54:: @ 08487E54 + .incbin "baserom.gba", 0x487E54, 0x00081B4 + +gUnk_08490008:: @ 08490008 + .incbin "baserom.gba", 0x490008, 0x00001D9 + +gUnk_084901E1:: @ 084901E1 + .incbin "baserom.gba", 0x4901E1, 0x0003368 + +gUnk_08493549:: @ 08493549 + .incbin "baserom.gba", 0x493549, 0x0002215 + +gUnk_0849575E:: @ 0849575E + .incbin "baserom.gba", 0x49575E, 0x0001618 + +gUnk_08496D76:: @ 08496D76 + .incbin "baserom.gba", 0x496D76, 0x0000D00 + +gUnk_08497A76:: @ 08497A76 + .incbin "baserom.gba", 0x497A76, 0x0001EEE + +gUnk_08499964:: @ 08499964 + .incbin "baserom.gba", 0x499964, 0x00009E5 + +gUnk_0849A349:: @ 0849A349 + .incbin "baserom.gba", 0x49A349, 0x0005DE7 + +gUnk_084A0130:: @ 084A0130 + .incbin "baserom.gba", 0x4A0130, 0x000026F + +gUnk_084A039F:: @ 084A039F + .incbin "baserom.gba", 0x4A039F, 0x000171F + +gUnk_084A1ABE:: @ 084A1ABE + .incbin "baserom.gba", 0x4A1ABE, 0x0001344 + +gUnk_084A2E02:: @ 084A2E02 + .incbin "baserom.gba", 0x4A2E02, 0x00018C6 + +gUnk_084A46C8:: @ 084A46C8 + .incbin "baserom.gba", 0x4A46C8, 0x0000669 + +gUnk_084A4D31:: @ 084A4D31 + .incbin "baserom.gba", 0x4A4D31, 0x00019F9 + +gUnk_084A672A:: @ 084A672A + .incbin "baserom.gba", 0x4A672A, 0x0000A4B + +gUnk_084A7175:: @ 084A7175 + .incbin "baserom.gba", 0x4A7175, 0x0000001 + +gUnk_084A7176:: @ 084A7176 + .incbin "baserom.gba", 0x4A7176, 0x00002F9 + +gUnk_084A746F:: @ 084A746F + .incbin "baserom.gba", 0x4A746F, 0x00009F9 + +gUnk_084A7E68:: @ 084A7E68 + .incbin "baserom.gba", 0x4A7E68, 0x0002BFC + +gUnk_084AAA64:: @ 084AAA64 + .incbin "baserom.gba", 0x4AAA64, 0x0005DE6 + +gUnk_084B084A:: @ 084B084A + .incbin "baserom.gba", 0x4B084A, 0x0000A8A + +gUnk_084B12D4:: @ 084B12D4 + .incbin "baserom.gba", 0x4B12D4, 0x00004EA + +gUnk_084B17BE:: @ 084B17BE + .incbin "baserom.gba", 0x4B17BE, 0x0000045 + +gUnk_084B1803:: @ 084B1803 + .incbin "baserom.gba", 0x4B1803, 0x00002DD + +gUnk_084B1AE0:: @ 084B1AE0 + .incbin "baserom.gba", 0x4B1AE0, 0x0001834 + +gUnk_084B3314:: @ 084B3314 + .incbin "baserom.gba", 0x4B3314, 0x0000F36 + +gUnk_084B424A:: @ 084B424A + .incbin "baserom.gba", 0x4B424A, 0x00005CA + +gUnk_084B4814:: @ 084B4814 + .incbin "baserom.gba", 0x4B4814, 0x00002DD + +gUnk_084B4AF1:: @ 084B4AF1 + .incbin "baserom.gba", 0x4B4AF1, 0x0002782 + +gUnk_084B7273:: @ 084B7273 + .incbin "baserom.gba", 0x4B7273, 0x00048B5 + +gUnk_084BBB28:: @ 084BBB28 + .incbin "baserom.gba", 0x4BBB28, 0x000064C + +gUnk_084BC174:: @ 084BC174 + .incbin "baserom.gba", 0x4BC174, 0x0003E94 + +gUnk_084C0008:: @ 084C0008 + .incbin "baserom.gba", 0x4C0008, 0x000049A + +gUnk_084C04A2:: @ 084C04A2 + .incbin "baserom.gba", 0x4C04A2, 0x000046F + +gUnk_084C0911:: @ 084C0911 + .incbin "baserom.gba", 0x4C0911, 0x000003B + +gUnk_084C094C:: @ 084C094C + .incbin "baserom.gba", 0x4C094C, 0x0001DB4 + +gUnk_084C2700:: @ 084C2700 + .incbin "baserom.gba", 0x4C2700, 0x0002503 + +gUnk_084C4C03:: @ 084C4C03 + .incbin "baserom.gba", 0x4C4C03, 0x000256A + +gUnk_084C716D:: @ 084C716D + .incbin "baserom.gba", 0x4C716D, 0x0000E92 + +gUnk_084C7FFF:: @ 084C7FFF + .incbin "baserom.gba", 0x4C7FFF, 0x00020B1 + +gUnk_084CA0B0:: @ 084CA0B0 + .incbin "baserom.gba", 0x4CA0B0, 0x0003251 + +gUnk_084CD301:: @ 084CD301 + .incbin "baserom.gba", 0x4CD301, 0x000070A + +gUnk_084CDA0B:: @ 084CDA0B + .incbin "baserom.gba", 0x4CDA0B, 0x00025F5 + +gUnk_084D0000:: @ 084D0000 + .incbin "baserom.gba", 0x4D0000, 0x0000004 + +gUnk_084D0004:: @ 084D0004 + .incbin "baserom.gba", 0x4D0004, 0x0000008 + +gUnk_084D000C:: @ 084D000C + .incbin "baserom.gba", 0x4D000C, 0x0000008 + +gUnk_084D0014:: @ 084D0014 + .incbin "baserom.gba", 0x4D0014, 0x0000064 + +gUnk_084D0078:: @ 084D0078 + .incbin "baserom.gba", 0x4D0078, 0x000001F + +gUnk_084D0097:: @ 084D0097 + .incbin "baserom.gba", 0x4D0097, 0x0000029 + +gUnk_084D00C0:: @ 084D00C0 + .incbin "baserom.gba", 0x4D00C0, 0x000036A + +gUnk_084D042A:: @ 084D042A + .incbin "baserom.gba", 0x4D042A, 0x000002F + +gUnk_084D0459:: @ 084D0459 + .incbin "baserom.gba", 0x4D0459, 0x0000ABD + +gUnk_084D0F16:: @ 084D0F16 + .incbin "baserom.gba", 0x4D0F16, 0x000232D + +gUnk_084D3243:: @ 084D3243 + .incbin "baserom.gba", 0x4D3243, 0x00042EE + +gUnk_084D7531:: @ 084D7531 + .incbin "baserom.gba", 0x4D7531, 0x0004C1C + +gUnk_084DC14D:: @ 084DC14D + .incbin "baserom.gba", 0x4DC14D, 0x0002EB2 + +gUnk_084DEFFF:: @ 084DEFFF + .incbin "baserom.gba", 0x4DEFFF, 0x0001001 + +gUnk_084E0000:: @ 084E0000 + .incbin "baserom.gba", 0x4E0000, 0x0000001 + +gUnk_084E0001:: @ 084E0001 + .incbin "baserom.gba", 0x4E0001, 0x000038F + +gUnk_084E0390:: @ 084E0390 + .incbin "baserom.gba", 0x4E0390, 0x0000D4D + +gUnk_084E10DD:: @ 084E10DD + .incbin "baserom.gba", 0x4E10DD, 0x00035EB + +gUnk_084E46C8:: @ 084E46C8 + .incbin "baserom.gba", 0x4E46C8, 0x0000587 + +gUnk_084E4C4F:: @ 084E4C4F + .incbin "baserom.gba", 0x4E4C4F, 0x00002B8 + +gUnk_084E4F07:: @ 084E4F07 + .incbin "baserom.gba", 0x4E4F07, 0x0002067 + +gUnk_084E6F6E:: @ 084E6F6E + .incbin "baserom.gba", 0x4E6F6E, 0x00009AA + +gUnk_084E7918:: @ 084E7918 + .incbin "baserom.gba", 0x4E7918, 0x0001C57 + +gUnk_084E956F:: @ 084E956F + .incbin "baserom.gba", 0x4E956F, 0x0000AC0 + +gUnk_084EA02F:: @ 084EA02F + .incbin "baserom.gba", 0x4EA02F, 0x0004ED0 + +gUnk_084EEEFF:: @ 084EEEFF + .incbin "baserom.gba", 0x4EEEFF, 0x00011F6 + +gUnk_084F00F5:: @ 084F00F5 + .incbin "baserom.gba", 0x4F00F5, 0x0000012 + +gUnk_084F0107:: @ 084F0107 + .incbin "baserom.gba", 0x4F0107, 0x0000747 + +gUnk_084F084E:: @ 084F084E + .incbin "baserom.gba", 0x4F084E, 0x00006B8 + +gUnk_084F0F06:: @ 084F0F06 + .incbin "baserom.gba", 0x4F0F06, 0x00010DB + +gUnk_084F1FE1:: @ 084F1FE1 + .incbin "baserom.gba", 0x4F1FE1, 0x000206D + +gUnk_084F404E:: @ 084F404E + .incbin "baserom.gba", 0x4F404E, 0x00010BB + +gUnk_084F5109:: @ 084F5109 + .incbin "baserom.gba", 0x4F5109, 0x0002316 + +gUnk_084F741F:: @ 084F741F + .incbin "baserom.gba", 0x4F741F, 0x0000B31 + +gUnk_084F7F50:: @ 084F7F50 + .incbin "baserom.gba", 0x4F7F50, 0x0007FB3 + +gUnk_084FFF03:: @ 084FFF03 + .incbin "baserom.gba", 0x4FFF03, 0x00000FD + +gUnk_08500000:: @ 08500000 + .incbin "baserom.gba", 0x500000, 0x0000002 + +gUnk_08500002:: @ 08500002 + .incbin "baserom.gba", 0x500002, 0x0000002 + +gUnk_08500004:: @ 08500004 + .incbin "baserom.gba", 0x500004, 0x0000002 + +gUnk_08500006:: @ 08500006 + .incbin "baserom.gba", 0x500006, 0x0000001 + +gUnk_08500007:: @ 08500007 + .incbin "baserom.gba", 0x500007, 0x0000001 + +gUnk_08500008:: @ 08500008 + .incbin "baserom.gba", 0x500008, 0x0000002 + +gUnk_0850000A:: @ 0850000A + .incbin "baserom.gba", 0x50000A, 0x0000001 + +gUnk_0850000B:: @ 0850000B + .incbin "baserom.gba", 0x50000B, 0x0000001 + +gUnk_0850000C:: @ 0850000C + .incbin "baserom.gba", 0x50000C, 0x0000001 + +gUnk_0850000D:: @ 0850000D + .incbin "baserom.gba", 0x50000D, 0x0000002 + +gUnk_0850000F:: @ 0850000F + .incbin "baserom.gba", 0x50000F, 0x0000001 + +gUnk_08500010:: @ 08500010 + .incbin "baserom.gba", 0x500010, 0x0000001 + +gUnk_08500011:: @ 08500011 + .incbin "baserom.gba", 0x500011, 0x0000003 + +gUnk_08500014:: @ 08500014 + .incbin "baserom.gba", 0x500014, 0x0000008 + +gUnk_0850001C:: @ 0850001C + .incbin "baserom.gba", 0x50001C, 0x0000002 + +gUnk_0850001E:: @ 0850001E + .incbin "baserom.gba", 0x50001E, 0x0000002 + +gUnk_08500020:: @ 08500020 + .incbin "baserom.gba", 0x500020, 0x000001C + +gUnk_0850003C:: @ 0850003C + .incbin "baserom.gba", 0x50003C, 0x0000014 + +gUnk_08500050:: @ 08500050 + .incbin "baserom.gba", 0x500050, 0x0000006 + +gUnk_08500056:: @ 08500056 + .incbin "baserom.gba", 0x500056, 0x000000B + +gUnk_08500061:: @ 08500061 + .incbin "baserom.gba", 0x500061, 0x0000001 + +gUnk_08500062:: @ 08500062 + .incbin "baserom.gba", 0x500062, 0x000000A + +gUnk_0850006C:: @ 0850006C + .incbin "baserom.gba", 0x50006C, 0x0000006 + +gUnk_08500072:: @ 08500072 + .incbin "baserom.gba", 0x500072, 0x000004E + +gUnk_085000C0:: @ 085000C0 + .incbin "baserom.gba", 0x5000C0, 0x0000030 + +gUnk_085000F0:: @ 085000F0 + .incbin "baserom.gba", 0x5000F0, 0x0000008 + +gUnk_085000F8:: @ 085000F8 + .incbin "baserom.gba", 0x5000F8, 0x0000007 + +gUnk_085000FF:: @ 085000FF + .incbin "baserom.gba", 0x5000FF, 0x0000001 + +gUnk_08500100:: @ 08500100 + .incbin "baserom.gba", 0x500100, 0x000001C + +gUnk_0850011C:: @ 0850011C + .incbin "baserom.gba", 0x50011C, 0x0000004 + +gUnk_08500120:: @ 08500120 + .incbin "baserom.gba", 0x500120, 0x0000010 + +gUnk_08500130:: @ 08500130 + .incbin "baserom.gba", 0x500130, 0x0000038 + +gUnk_08500168:: @ 08500168 + .incbin "baserom.gba", 0x500168, 0x0000018 + +gUnk_08500180:: @ 08500180 + .incbin "baserom.gba", 0x500180, 0x0000281 + +gUnk_08500401:: @ 08500401 + .incbin "baserom.gba", 0x500401, 0x0000042 + +gUnk_08500443:: @ 08500443 + .incbin "baserom.gba", 0x500443, 0x0000001 + +gUnk_08500444:: @ 08500444 + .incbin "baserom.gba", 0x500444, 0x0000015 + +gUnk_08500459:: @ 08500459 + .incbin "baserom.gba", 0x500459, 0x000000A + +gUnk_08500463:: @ 08500463 + .incbin "baserom.gba", 0x500463, 0x00001ED + +gUnk_08500650:: @ 08500650 + .incbin "baserom.gba", 0x500650, 0x00001B6 + +gUnk_08500806:: @ 08500806 + .incbin "baserom.gba", 0x500806, 0x0000001 + +gUnk_08500807:: @ 08500807 + .incbin "baserom.gba", 0x500807, 0x0000001 + +gUnk_08500808:: @ 08500808 + .incbin "baserom.gba", 0x500808, 0x0000049 + +gUnk_08500851:: @ 08500851 + .incbin "baserom.gba", 0x500851, 0x00000CA + +gUnk_0850091B:: @ 0850091B + .incbin "baserom.gba", 0x50091B, 0x0000036 + +gUnk_08500951:: @ 08500951 + .incbin "baserom.gba", 0x500951, 0x0000810 + +gUnk_08501161:: @ 08501161 + .incbin "baserom.gba", 0x501161, 0x00001C5 + +gUnk_08501326:: @ 08501326 + .incbin "baserom.gba", 0x501326, 0x000042B + +gUnk_08501751:: @ 08501751 + .incbin "baserom.gba", 0x501751, 0x00002C0 + +gUnk_08501A11:: @ 08501A11 + .incbin "baserom.gba", 0x501A11, 0x00002EF + +gUnk_08501D00:: @ 08501D00 + .incbin "baserom.gba", 0x501D00, 0x0000208 + +gUnk_08501F08:: @ 08501F08 + .incbin "baserom.gba", 0x501F08, 0x0001259 + +gUnk_08503161:: @ 08503161 + .incbin "baserom.gba", 0x503161, 0x00001DB + +gUnk_0850333C:: @ 0850333C + .incbin "baserom.gba", 0x50333C, 0x0001078 + +gUnk_085043B4:: @ 085043B4 + .incbin "baserom.gba", 0x5043B4, 0x0000050 + +gUnk_08504404:: @ 08504404 + .incbin "baserom.gba", 0x504404, 0x00002C4 + +gUnk_085046C8:: @ 085046C8 + .incbin "baserom.gba", 0x5046C8, 0x000016F + +gUnk_08504837:: @ 08504837 + .incbin "baserom.gba", 0x504837, 0x0000829 + +gUnk_08505060:: @ 08505060 + .incbin "baserom.gba", 0x505060, 0x0002206 + +gUnk_08507266:: @ 08507266 + .incbin "baserom.gba", 0x507266, 0x0000D2A + +gUnk_08507F90:: @ 08507F90 + .incbin "baserom.gba", 0x507F90, 0x0001B0F + +gUnk_08509A9F:: @ 08509A9F + .incbin "baserom.gba", 0x509A9F, 0x0000573 + +gUnk_0850A012:: @ 0850A012 + .incbin "baserom.gba", 0x50A012, 0x0001117 + +gUnk_0850B129:: @ 0850B129 + .incbin "baserom.gba", 0x50B129, 0x000107F + +gUnk_0850C1A8:: @ 0850C1A8 + .incbin "baserom.gba", 0x50C1A8, 0x000059D + +gUnk_0850C745:: @ 0850C745 + .incbin "baserom.gba", 0x50C745, 0x0000A8C + +gUnk_0850D1D1:: @ 0850D1D1 + .incbin "baserom.gba", 0x50D1D1, 0x000064D + +gUnk_0850D81E:: @ 0850D81E + .incbin "baserom.gba", 0x50D81E, 0x0000F5D + +gUnk_0850E77B:: @ 0850E77B + .incbin "baserom.gba", 0x50E77B, 0x0001175 + +gUnk_0850F8F0:: @ 0850F8F0 + .incbin "baserom.gba", 0x50F8F0, 0x0000101 + +gUnk_0850F9F1:: @ 0850F9F1 + .incbin "baserom.gba", 0x50F9F1, 0x00000FF + +gUnk_0850FAF0:: @ 0850FAF0 + .incbin "baserom.gba", 0x50FAF0, 0x0000100 + +gUnk_0850FBF0:: @ 0850FBF0 + .incbin "baserom.gba", 0x50FBF0, 0x0000100 + +gUnk_0850FCF0:: @ 0850FCF0 + .incbin "baserom.gba", 0x50FCF0, 0x0000100 + +gUnk_0850FDF0:: @ 0850FDF0 + .incbin "baserom.gba", 0x50FDF0, 0x00000FD + +gUnk_0850FEED:: @ 0850FEED + .incbin "baserom.gba", 0x50FEED, 0x0000001 + +gUnk_0850FEEE:: @ 0850FEEE + .incbin "baserom.gba", 0x50FEEE, 0x0000002 + +gUnk_0850FEF0:: @ 0850FEF0 + .incbin "baserom.gba", 0x50FEF0, 0x00000DE + +gUnk_0850FFCE:: @ 0850FFCE + .incbin "baserom.gba", 0x50FFCE, 0x0000022 + +gUnk_0850FFF0:: @ 0850FFF0 + .incbin "baserom.gba", 0x50FFF0, 0x0000008 + +gUnk_0850FFF8:: @ 0850FFF8 + .incbin "baserom.gba", 0x50FFF8, 0x0000002 + +gUnk_0850FFFA:: @ 0850FFFA + .incbin "baserom.gba", 0x50FFFA, 0x0000002 + +gUnk_0850FFFC:: @ 0850FFFC + .incbin "baserom.gba", 0x50FFFC, 0x0000005 + +gUnk_08510001:: @ 08510001 + .incbin "baserom.gba", 0x510001, 0x0000019 + +gUnk_0851001A:: @ 0851001A + .incbin "baserom.gba", 0x51001A, 0x0000136 + +gUnk_08510150:: @ 08510150 + .incbin "baserom.gba", 0x510150, 0x000012C + +gUnk_0851027C:: @ 0851027C + .incbin "baserom.gba", 0x51027C, 0x00000D4 + +gUnk_08510350:: @ 08510350 + .incbin "baserom.gba", 0x510350, 0x0001BE0 + +gUnk_08511F30:: @ 08511F30 + .incbin "baserom.gba", 0x511F30, 0x0000821 + +gUnk_08512751:: @ 08512751 + .incbin "baserom.gba", 0x512751, 0x00014F3 + +gUnk_08513C44:: @ 08513C44 + .incbin "baserom.gba", 0x513C44, 0x00002DC + +gUnk_08513F20:: @ 08513F20 + .incbin "baserom.gba", 0x513F20, 0x0001829 + +gUnk_08515749:: @ 08515749 + .incbin "baserom.gba", 0x515749, 0x0006DD6 + +gUnk_0851C51F:: @ 0851C51F + .incbin "baserom.gba", 0x51C51F, 0x00030C9 + +gUnk_0851F5E8:: @ 0851F5E8 + .incbin "baserom.gba", 0x51F5E8, 0x0000808 + +gUnk_0851FDF0:: @ 0851FDF0 + .incbin "baserom.gba", 0x51FDF0, 0x00000D9 + +gUnk_0851FEC9:: @ 0851FEC9 + .incbin "baserom.gba", 0x51FEC9, 0x00004C9 + +gUnk_08520392:: @ 08520392 + .incbin "baserom.gba", 0x520392, 0x0000070 + +gUnk_08520402:: @ 08520402 + .incbin "baserom.gba", 0x520402, 0x000004F + +gUnk_08520451:: @ 08520451 + .incbin "baserom.gba", 0x520451, 0x00002BF + +gUnk_08520710:: @ 08520710 + .incbin "baserom.gba", 0x520710, 0x00004B5 + +gUnk_08520BC5:: @ 08520BC5 + .incbin "baserom.gba", 0x520BC5, 0x000187F + +gUnk_08522444:: @ 08522444 + .incbin "baserom.gba", 0x522444, 0x0002001 + +gUnk_08524445:: @ 08524445 + .incbin "baserom.gba", 0x524445, 0x0000121 + +gUnk_08524566:: @ 08524566 + .incbin "baserom.gba", 0x524566, 0x000103C + +gUnk_085255A2:: @ 085255A2 + .incbin "baserom.gba", 0x5255A2, 0x0000A64 + +gUnk_08526006:: @ 08526006 + .incbin "baserom.gba", 0x526006, 0x0001E2C + +gUnk_08527E32:: @ 08527E32 + .incbin "baserom.gba", 0x527E32, 0x0000112 + +gUnk_08527F44:: @ 08527F44 + .incbin "baserom.gba", 0x527F44, 0x00027BD + +gUnk_0852A701:: @ 0852A701 + .incbin "baserom.gba", 0x52A701, 0x0002A02 + +gUnk_0852D103:: @ 0852D103 + .incbin "baserom.gba", 0x52D103, 0x000304F + +gUnk_08530152:: @ 08530152 + .incbin "baserom.gba", 0x530152, 0x00001AE + +gUnk_08530300:: @ 08530300 + .incbin "baserom.gba", 0x530300, 0x0000050 + +gUnk_08530350:: @ 08530350 + .incbin "baserom.gba", 0x530350, 0x0000FD2 + +gUnk_08531322:: @ 08531322 + .incbin "baserom.gba", 0x531322, 0x000099D + +gUnk_08531CBF:: @ 08531CBF + .incbin "baserom.gba", 0x531CBF, 0x0000E2D + +gUnk_08532AEC:: @ 08532AEC + .incbin "baserom.gba", 0x532AEC, 0x0000979 + +gUnk_08533465:: @ 08533465 + .incbin "baserom.gba", 0x533465, 0x00001EE + +gUnk_08533653:: @ 08533653 + .incbin "baserom.gba", 0x533653, 0x0000EE3 + +gUnk_08534536:: @ 08534536 + .incbin "baserom.gba", 0x534536, 0x0001C1C + +gUnk_08536152:: @ 08536152 + .incbin "baserom.gba", 0x536152, 0x0001301 + +gUnk_08537453:: @ 08537453 + .incbin "baserom.gba", 0x537453, 0x0008BB1 + +gUnk_08540004:: @ 08540004 + .incbin "baserom.gba", 0x540004, 0x00000EC + +gUnk_085400F0:: @ 085400F0 + .incbin "baserom.gba", 0x5400F0, 0x0000100 + +gUnk_085401F0:: @ 085401F0 + .incbin "baserom.gba", 0x5401F0, 0x00010CF + +gUnk_085412BF:: @ 085412BF + .incbin "baserom.gba", 0x5412BF, 0x0000076 + +gUnk_08541335:: @ 08541335 + .incbin "baserom.gba", 0x541335, 0x0001FCE + +gUnk_08543303:: @ 08543303 + .incbin "baserom.gba", 0x543303, 0x0000F25 + +gUnk_08544228:: @ 08544228 + .incbin "baserom.gba", 0x544228, 0x000003F + +gUnk_08544267:: @ 08544267 + .incbin "baserom.gba", 0x544267, 0x000009A + +gUnk_08544301:: @ 08544301 + .incbin "baserom.gba", 0x544301, 0x0001365 + +gUnk_08545666:: @ 08545666 + .incbin "baserom.gba", 0x545666, 0x0000F00 + +gUnk_08546566:: @ 08546566 + .incbin "baserom.gba", 0x546566, 0x00019E4 + +gUnk_08547F4A:: @ 08547F4A + .incbin "baserom.gba", 0x547F4A, 0x000092C + +gUnk_08548876:: @ 08548876 + .incbin "baserom.gba", 0x548876, 0x0004666 + +gUnk_0854CEDC:: @ 0854CEDC + .incbin "baserom.gba", 0x54CEDC, 0x0001011 + +gUnk_0854DEED:: @ 0854DEED + .incbin "baserom.gba", 0x54DEED, 0x0002114 + +gUnk_08550001:: @ 08550001 + .incbin "baserom.gba", 0x550001, 0x0000003 + +gUnk_08550004:: @ 08550004 + .incbin "baserom.gba", 0x550004, 0x000000C + +gUnk_08550010:: @ 08550010 + .incbin "baserom.gba", 0x550010, 0x0000044 + +gUnk_08550054:: @ 08550054 + .incbin "baserom.gba", 0x550054, 0x0000400 + +gUnk_08550454:: @ 08550454 + .incbin "baserom.gba", 0x550454, 0x00004FD + +gUnk_08550951:: @ 08550951 + .incbin "baserom.gba", 0x550951, 0x00013BF + +gUnk_08551D10:: @ 08551D10 + .incbin "baserom.gba", 0x551D10, 0x0000513 + +gUnk_08552223:: @ 08552223 + .incbin "baserom.gba", 0x552223, 0x00001E5 + +gUnk_08552408:: @ 08552408 + .incbin "baserom.gba", 0x552408, 0x0001C4C + +gUnk_08554054:: @ 08554054 + .incbin "baserom.gba", 0x554054, 0x0000200 + +gUnk_08554254:: @ 08554254 + .incbin "baserom.gba", 0x554254, 0x0000002 + +gUnk_08554256:: @ 08554256 + .incbin "baserom.gba", 0x554256, 0x00001AD + +gUnk_08554403:: @ 08554403 + .incbin "baserom.gba", 0x554403, 0x0000042 + +gUnk_08554445:: @ 08554445 + .incbin "baserom.gba", 0x554445, 0x0000630 + +gUnk_08554A75:: @ 08554A75 + .incbin "baserom.gba", 0x554A75, 0x00008AF + +gUnk_08555324:: @ 08555324 + .incbin "baserom.gba", 0x555324, 0x0000231 + +gUnk_08555555:: @ 08555555 + .incbin "baserom.gba", 0x555555, 0x000000D + +gUnk_08555562:: @ 08555562 + .incbin "baserom.gba", 0x555562, 0x0000503 + +gUnk_08555A65:: @ 08555A65 + .incbin "baserom.gba", 0x555A65, 0x0000BAB + +gUnk_08556610:: @ 08556610 + .incbin "baserom.gba", 0x556610, 0x000022B + +gUnk_0855683B:: @ 0855683B + .incbin "baserom.gba", 0x55683B, 0x0000519 + +gUnk_08556D54:: @ 08556D54 + .incbin "baserom.gba", 0x556D54, 0x0000183 + +gUnk_08556ED7:: @ 08556ED7 + .incbin "baserom.gba", 0x556ED7, 0x0000435 + +gUnk_0855730C:: @ 0855730C + .incbin "baserom.gba", 0x55730C, 0x0000A4F + +gUnk_08557D5B:: @ 08557D5B + .incbin "baserom.gba", 0x557D5B, 0x00014A7 + +gUnk_08559202:: @ 08559202 + .incbin "baserom.gba", 0x559202, 0x0005428 + +gUnk_0855E62A:: @ 0855E62A + .incbin "baserom.gba", 0x55E62A, 0x0000260 + +gUnk_0855E88A:: @ 0855E88A + .incbin "baserom.gba", 0x55E88A, 0x000177E + +gUnk_08560008:: @ 08560008 + .incbin "baserom.gba", 0x560008, 0x00000FF + +gUnk_08560107:: @ 08560107 + .incbin "baserom.gba", 0x560107, 0x0000258 + +gUnk_0856035F:: @ 0856035F + .incbin "baserom.gba", 0x56035F, 0x000154E + +gUnk_085618AD:: @ 085618AD + .incbin "baserom.gba", 0x5618AD, 0x0001BA9 + +gUnk_08563456:: @ 08563456 + .incbin "baserom.gba", 0x563456, 0x00008BA + +gUnk_08563D10:: @ 08563D10 + .incbin "baserom.gba", 0x563D10, 0x000071B + +gUnk_0856442B:: @ 0856442B + .incbin "baserom.gba", 0x56442B, 0x00002D5 + +gUnk_08564700:: @ 08564700 + .incbin "baserom.gba", 0x564700, 0x0000C1F + +gUnk_0856531F:: @ 0856531F + .incbin "baserom.gba", 0x56531F, 0x0000314 + +gUnk_08565633:: @ 08565633 + .incbin "baserom.gba", 0x565633, 0x0000F1E + +gUnk_08566551:: @ 08566551 + .incbin "baserom.gba", 0x566551, 0x00000D1 + +gUnk_08566622:: @ 08566622 + .incbin "baserom.gba", 0x566622, 0x0000DF3 + +gUnk_08567415:: @ 08567415 + .incbin "baserom.gba", 0x567415, 0x0000C02 + +gUnk_08568017:: @ 08568017 + .incbin "baserom.gba", 0x568017, 0x0000031 + +gUnk_08568048:: @ 08568048 + .incbin "baserom.gba", 0x568048, 0x00060DB + +gUnk_0856E123:: @ 0856E123 + .incbin "baserom.gba", 0x56E123, 0x0001EEE + +gUnk_08570011:: @ 08570011 + .incbin "baserom.gba", 0x570011, 0x00018E0 + +gUnk_085718F1:: @ 085718F1 + .incbin "baserom.gba", 0x5718F1, 0x000071F + +gUnk_08572010:: @ 08572010 + .incbin "baserom.gba", 0x572010, 0x0000679 + +gUnk_08572689:: @ 08572689 + .incbin "baserom.gba", 0x572689, 0x0000795 + +gUnk_08572E1E:: @ 08572E1E + .incbin "baserom.gba", 0x572E1E, 0x000123A + +gUnk_08574058:: @ 08574058 + .incbin "baserom.gba", 0x574058, 0x00021CC + +gUnk_08576224:: @ 08576224 + .incbin "baserom.gba", 0x576224, 0x0001408 + +gUnk_0857762C:: @ 0857762C + .incbin "baserom.gba", 0x57762C, 0x000135B + +gUnk_08578987:: @ 08578987 + .incbin "baserom.gba", 0x578987, 0x00036CB + +gUnk_0857C052:: @ 0857C052 + .incbin "baserom.gba", 0x57C052, 0x0003724 + +gUnk_0857F776:: @ 0857F776 + .incbin "baserom.gba", 0x57F776, 0x000088A + +gUnk_08580000:: @ 08580000 + .incbin "baserom.gba", 0x580000, 0x0000008 + +gUnk_08580008:: @ 08580008 + .incbin "baserom.gba", 0x580008, 0x000003E + +gUnk_08580046:: @ 08580046 + .incbin "baserom.gba", 0x580046, 0x0000030 + +gUnk_08580076:: @ 08580076 + .incbin "baserom.gba", 0x580076, 0x0000030 + +gUnk_085800A6:: @ 085800A6 + .incbin "baserom.gba", 0x5800A6, 0x00000AC + +gUnk_08580152:: @ 08580152 + .incbin "baserom.gba", 0x580152, 0x0000306 + +gUnk_08580458:: @ 08580458 + .incbin "baserom.gba", 0x580458, 0x00003B0 + +gUnk_08580808:: @ 08580808 + .incbin "baserom.gba", 0x580808, 0x000004F + +gUnk_08580857:: @ 08580857 + .incbin "baserom.gba", 0x580857, 0x0006E11 + +gUnk_08587668:: @ 08587668 + .incbin "baserom.gba", 0x587668, 0x00007F9 + +gUnk_08587E61:: @ 08587E61 + .incbin "baserom.gba", 0x587E61, 0x00081A0 + +gUnk_08590001:: @ 08590001 + .incbin "baserom.gba", 0x590001, 0x00000F1 + +gUnk_085900F2:: @ 085900F2 + .incbin "baserom.gba", 0x5900F2, 0x00007EF + +gUnk_085908E1:: @ 085908E1 + .incbin "baserom.gba", 0x5908E1, 0x0000CC9 + +gUnk_085915AA:: @ 085915AA + .incbin "baserom.gba", 0x5915AA, 0x00081CD + +gUnk_08599777:: @ 08599777 + .incbin "baserom.gba", 0x599777, 0x000184D + +gUnk_0859AFC4:: @ 0859AFC4 + .incbin "baserom.gba", 0x59AFC4, 0x000503C + +gUnk_085A0000:: @ 085A0000 + .incbin "baserom.gba", 0x5A0000, 0x0000001 + +gUnk_085A0001:: @ 085A0001 + .incbin "baserom.gba", 0x5A0001, 0x0000001 + +gUnk_085A0002:: @ 085A0002 + .incbin "baserom.gba", 0x5A0002, 0x0000006 + +gUnk_085A0008:: @ 085A0008 + .incbin "baserom.gba", 0x5A0008, 0x0000002 + +gUnk_085A000A:: @ 085A000A + .incbin "baserom.gba", 0x5A000A, 0x0000002 + +gUnk_085A000C:: @ 085A000C + .incbin "baserom.gba", 0x5A000C, 0x0000003 + +gUnk_085A000F:: @ 085A000F + .incbin "baserom.gba", 0x5A000F, 0x0000009 + +gUnk_085A0018:: @ 085A0018 + .incbin "baserom.gba", 0x5A0018, 0x0000006 + +gUnk_085A001E:: @ 085A001E + .incbin "baserom.gba", 0x5A001E, 0x0000001 + +gUnk_085A001F:: @ 085A001F + .incbin "baserom.gba", 0x5A001F, 0x000001D + +gUnk_085A003C:: @ 085A003C + .incbin "baserom.gba", 0x5A003C, 0x000001A + +gUnk_085A0056:: @ 085A0056 + .incbin "baserom.gba", 0x5A0056, 0x0000008 + +gUnk_085A005E:: @ 085A005E + .incbin "baserom.gba", 0x5A005E, 0x0000033 + +gUnk_085A0091:: @ 085A0091 + .incbin "baserom.gba", 0x5A0091, 0x000005F + +gUnk_085A00F0:: @ 085A00F0 + .incbin "baserom.gba", 0x5A00F0, 0x0000211 + +gUnk_085A0301:: @ 085A0301 + .incbin "baserom.gba", 0x5A0301, 0x0000100 + +gUnk_085A0401:: @ 085A0401 + .incbin "baserom.gba", 0x5A0401, 0x0000033 + +gUnk_085A0434:: @ 085A0434 + .incbin "baserom.gba", 0x5A0434, 0x000000F + +gUnk_085A0443:: @ 085A0443 + .incbin "baserom.gba", 0x5A0443, 0x0000006 + +gUnk_085A0449:: @ 085A0449 + .incbin "baserom.gba", 0x5A0449, 0x000001A + +gUnk_085A0463:: @ 085A0463 + .incbin "baserom.gba", 0x5A0463, 0x0000001 + +gUnk_085A0464:: @ 085A0464 + .incbin "baserom.gba", 0x5A0464, 0x00003A2 + +gUnk_085A0806:: @ 085A0806 + .incbin "baserom.gba", 0x5A0806, 0x000267A + +gUnk_085A2E80:: @ 085A2E80 + .incbin "baserom.gba", 0x5A2E80, 0x0001382 + +gUnk_085A4202:: @ 085A4202 + .incbin "baserom.gba", 0x5A4202, 0x0001CED + +gUnk_085A5EEF:: @ 085A5EEF + .incbin "baserom.gba", 0x5A5EEF, 0x0000037 + +gUnk_085A5F26:: @ 085A5F26 + .incbin "baserom.gba", 0x5A5F26, 0x00013FA + +gUnk_085A7320:: @ 085A7320 + .incbin "baserom.gba", 0x5A7320, 0x0002480 + +gUnk_085A97A0:: @ 085A97A0 + .incbin "baserom.gba", 0x5A97A0, 0x0000CA1 + +gUnk_085AA441:: @ 085AA441 + .incbin "baserom.gba", 0x5AA441, 0x0002B76 + +gUnk_085ACFB7:: @ 085ACFB7 + .incbin "baserom.gba", 0x5ACFB7, 0x0002FA5 + +gUnk_085AFF5C:: @ 085AFF5C + .incbin "baserom.gba", 0x5AFF5C, 0x000001C + +gUnk_085AFF78:: @ 085AFF78 + .incbin "baserom.gba", 0x5AFF78, 0x0000058 + +gUnk_085AFFD0:: @ 085AFFD0 + .incbin "baserom.gba", 0x5AFFD0, 0x0000030 + +gUnk_085B0000:: @ 085B0000 + .incbin "baserom.gba", 0x5B0000, 0x0000006 + +gUnk_085B0006:: @ 085B0006 + .incbin "baserom.gba", 0x5B0006, 0x0000004 + +gUnk_085B000A:: @ 085B000A + .incbin "baserom.gba", 0x5B000A, 0x0000002 + +gUnk_085B000C:: @ 085B000C + .incbin "baserom.gba", 0x5B000C, 0x0000002 + +gUnk_085B000E:: @ 085B000E + .incbin "baserom.gba", 0x5B000E, 0x000000E + +gUnk_085B001C:: @ 085B001C + .incbin "baserom.gba", 0x5B001C, 0x0000002 + +gUnk_085B001E:: @ 085B001E + .incbin "baserom.gba", 0x5B001E, 0x0000006 + +gUnk_085B0024:: @ 085B0024 + .incbin "baserom.gba", 0x5B0024, 0x0000012 + +gUnk_085B0036:: @ 085B0036 + .incbin "baserom.gba", 0x5B0036, 0x0000006 + +gUnk_085B003C:: @ 085B003C + .incbin "baserom.gba", 0x5B003C, 0x000000C + +gUnk_085B0048:: @ 085B0048 + .incbin "baserom.gba", 0x5B0048, 0x000000C + +gUnk_085B0054:: @ 085B0054 + .incbin "baserom.gba", 0x5B0054, 0x0000004 + +gUnk_085B0058:: @ 085B0058 + .incbin "baserom.gba", 0x5B0058, 0x000000C + +gUnk_085B0064:: @ 085B0064 + .incbin "baserom.gba", 0x5B0064, 0x0000001 + +gUnk_085B0065:: @ 085B0065 + .incbin "baserom.gba", 0x5B0065, 0x000000F + +gUnk_085B0074:: @ 085B0074 + .incbin "baserom.gba", 0x5B0074, 0x0000060 + +gUnk_085B00D4:: @ 085B00D4 + .incbin "baserom.gba", 0x5B00D4, 0x0000026 + +gUnk_085B00FA:: @ 085B00FA + .incbin "baserom.gba", 0x5B00FA, 0x0000308 + +gUnk_085B0402:: @ 085B0402 + .incbin "baserom.gba", 0x5B0402, 0x0000032 + +gUnk_085B0434:: @ 085B0434 + .incbin "baserom.gba", 0x5B0434, 0x0000015 + +gUnk_085B0449:: @ 085B0449 + .incbin "baserom.gba", 0x5B0449, 0x000001A + +gUnk_085B0463:: @ 085B0463 + .incbin "baserom.gba", 0x5B0463, 0x0000001 + +gUnk_085B0464:: @ 085B0464 + .incbin "baserom.gba", 0x5B0464, 0x00003A2 + +gUnk_085B0806:: @ 085B0806 + .incbin "baserom.gba", 0x5B0806, 0x0000001 + +gUnk_085B0807:: @ 085B0807 + .incbin "baserom.gba", 0x5B0807, 0x000088D + +gUnk_085B1094:: @ 085B1094 + .incbin "baserom.gba", 0x5B1094, 0x00030EC + +gUnk_085B4180:: @ 085B4180 + .incbin "baserom.gba", 0x5B4180, 0x0000EB5 + +gUnk_085B5035:: @ 085B5035 + .incbin "baserom.gba", 0x5B5035, 0x0000E8B + +gUnk_085B5EC0:: @ 085B5EC0 + .incbin "baserom.gba", 0x5B5EC0, 0x00000E0 + +gUnk_085B5FA0:: @ 085B5FA0 + .incbin "baserom.gba", 0x5B5FA0, 0x00000E0 + +gUnk_085B6080:: @ 085B6080 + .incbin "baserom.gba", 0x5B6080, 0x00000E0 + +gUnk_085B6160:: @ 085B6160 + .incbin "baserom.gba", 0x5B6160, 0x00000E0 + +gUnk_085B6240:: @ 085B6240 + .incbin "baserom.gba", 0x5B6240, 0x00000E0 + +gUnk_085B6320:: @ 085B6320 + .incbin "baserom.gba", 0x5B6320, 0x0000013 + +gUnk_085B6333:: @ 085B6333 + .incbin "baserom.gba", 0x5B6333, 0x00000CD + +gUnk_085B6400:: @ 085B6400 + .incbin "baserom.gba", 0x5B6400, 0x00000E0 + +gUnk_085B64E0:: @ 085B64E0 + .incbin "baserom.gba", 0x5B64E0, 0x00000E0 + +gUnk_085B65C0:: @ 085B65C0 + .incbin "baserom.gba", 0x5B65C0, 0x00000E0 + +gUnk_085B66A0:: @ 085B66A0 + .incbin "baserom.gba", 0x5B66A0, 0x00000E0 + +gUnk_085B6780:: @ 085B6780 + .incbin "baserom.gba", 0x5B6780, 0x00000E0 + +gUnk_085B6860:: @ 085B6860 + .incbin "baserom.gba", 0x5B6860, 0x00000E0 + +gUnk_085B6940:: @ 085B6940 + .incbin "baserom.gba", 0x5B6940, 0x00000E0 + +gUnk_085B6A20:: @ 085B6A20 + .incbin "baserom.gba", 0x5B6A20, 0x00000E0 + +gUnk_085B6B00:: @ 085B6B00 + .incbin "baserom.gba", 0x5B6B00, 0x00000E0 + +gUnk_085B6BE0:: @ 085B6BE0 + .incbin "baserom.gba", 0x5B6BE0, 0x00000E0 + +gUnk_085B6CC0:: @ 085B6CC0 + .incbin "baserom.gba", 0x5B6CC0, 0x00000E0 + +gUnk_085B6DA0:: @ 085B6DA0 + .incbin "baserom.gba", 0x5B6DA0, 0x00000E0 + +gUnk_085B6E80:: @ 085B6E80 + .incbin "baserom.gba", 0x5B6E80, 0x00000C6 + +gUnk_085B6F46:: @ 085B6F46 + .incbin "baserom.gba", 0x5B6F46, 0x000001A + +gUnk_085B6F60:: @ 085B6F60 + .incbin "baserom.gba", 0x5B6F60, 0x00000E0 + +gUnk_085B7040:: @ 085B7040 + .incbin "baserom.gba", 0x5B7040, 0x00000E0 + +gUnk_085B7120:: @ 085B7120 + .incbin "baserom.gba", 0x5B7120, 0x00000E0 + +gUnk_085B7200:: @ 085B7200 + .incbin "baserom.gba", 0x5B7200, 0x00000E0 + +gUnk_085B72E0:: @ 085B72E0 + .incbin "baserom.gba", 0x5B72E0, 0x00000E0 + +gUnk_085B73C0:: @ 085B73C0 + .incbin "baserom.gba", 0x5B73C0, 0x00000E0 + +gUnk_085B74A0:: @ 085B74A0 + .incbin "baserom.gba", 0x5B74A0, 0x00000E0 + +gUnk_085B7580:: @ 085B7580 + .incbin "baserom.gba", 0x5B7580, 0x00000E0 + +gUnk_085B7660:: @ 085B7660 + .incbin "baserom.gba", 0x5B7660, 0x00000E0 + +gUnk_085B7740:: @ 085B7740 + .incbin "baserom.gba", 0x5B7740, 0x00000E0 + +gUnk_085B7820:: @ 085B7820 + .incbin "baserom.gba", 0x5B7820, 0x00000E0 + +gUnk_085B7900:: @ 085B7900 + .incbin "baserom.gba", 0x5B7900, 0x00000E0 + +gUnk_085B79E0:: @ 085B79E0 + .incbin "baserom.gba", 0x5B79E0, 0x00000E0 + +gUnk_085B7AC0:: @ 085B7AC0 + .incbin "baserom.gba", 0x5B7AC0, 0x00000E0 + +gUnk_085B7BA0:: @ 085B7BA0 + .incbin "baserom.gba", 0x5B7BA0, 0x00000E0 + +gUnk_085B7C80:: @ 085B7C80 + .incbin "baserom.gba", 0x5B7C80, 0x00000E0 + +gUnk_085B7D60:: @ 085B7D60 + .incbin "baserom.gba", 0x5B7D60, 0x00000E0 + +gUnk_085B7E40:: @ 085B7E40 + .incbin "baserom.gba", 0x5B7E40, 0x00000E0 + +gUnk_085B7F20:: @ 085B7F20 + .incbin "baserom.gba", 0x5B7F20, 0x00000E0 + +gUnk_085B8000:: @ 085B8000 + .incbin "baserom.gba", 0x5B8000, 0x00000E0 + +gUnk_085B80E0:: @ 085B80E0 + .incbin "baserom.gba", 0x5B80E0, 0x00000E0 + +gUnk_085B81C0:: @ 085B81C0 + .incbin "baserom.gba", 0x5B81C0, 0x00000E0 + +gUnk_085B82A0:: @ 085B82A0 + .incbin "baserom.gba", 0x5B82A0, 0x00000E0 + +gUnk_085B8380:: @ 085B8380 + .incbin "baserom.gba", 0x5B8380, 0x00000E0 + +gUnk_085B8460:: @ 085B8460 + .incbin "baserom.gba", 0x5B8460, 0x00000E0 + +gUnk_085B8540:: @ 085B8540 + .incbin "baserom.gba", 0x5B8540, 0x00000E0 + +gUnk_085B8620:: @ 085B8620 + .incbin "baserom.gba", 0x5B8620, 0x00000E0 + +gUnk_085B8700:: @ 085B8700 + .incbin "baserom.gba", 0x5B8700, 0x00000E0 + +gUnk_085B87E0:: @ 085B87E0 + .incbin "baserom.gba", 0x5B87E0, 0x00000E0 + +gUnk_085B88C0:: @ 085B88C0 + .incbin "baserom.gba", 0x5B88C0, 0x0000120 + +gUnk_085B89E0:: @ 085B89E0 + .incbin "baserom.gba", 0x5B89E0, 0x00000E0 + +gUnk_085B8AC0:: @ 085B8AC0 + .incbin "baserom.gba", 0x5B8AC0, 0x00000E0 + +gUnk_085B8BA0:: @ 085B8BA0 + .incbin "baserom.gba", 0x5B8BA0, 0x00000E0 + +gUnk_085B8C80:: @ 085B8C80 + .incbin "baserom.gba", 0x5B8C80, 0x00000E0 + +gUnk_085B8D60:: @ 085B8D60 + .incbin "baserom.gba", 0x5B8D60, 0x00000E0 + +gUnk_085B8E40:: @ 085B8E40 + .incbin "baserom.gba", 0x5B8E40, 0x00000E0 + +gUnk_085B8F20:: @ 085B8F20 + .incbin "baserom.gba", 0x5B8F20, 0x00000E0 + +gUnk_085B9000:: @ 085B9000 + .incbin "baserom.gba", 0x5B9000, 0x00000E0 + +gUnk_085B90E0:: @ 085B90E0 + .incbin "baserom.gba", 0x5B90E0, 0x00000E0 + +gUnk_085B91C0:: @ 085B91C0 + .incbin "baserom.gba", 0x5B91C0, 0x00000E0 + +gUnk_085B92A0:: @ 085B92A0 + .incbin "baserom.gba", 0x5B92A0, 0x00000E0 + +gUnk_085B9380:: @ 085B9380 + .incbin "baserom.gba", 0x5B9380, 0x00000E0 + +gUnk_085B9460:: @ 085B9460 + .incbin "baserom.gba", 0x5B9460, 0x00000E0 + +gUnk_085B9540:: @ 085B9540 + .incbin "baserom.gba", 0x5B9540, 0x00000E0 + +gUnk_085B9620:: @ 085B9620 + .incbin "baserom.gba", 0x5B9620, 0x00000E0 + +gUnk_085B9700:: @ 085B9700 + .incbin "baserom.gba", 0x5B9700, 0x00000E0 + +gUnk_085B97E0:: @ 085B97E0 + .incbin "baserom.gba", 0x5B97E0, 0x00000E0 + +gUnk_085B98C0:: @ 085B98C0 + .incbin "baserom.gba", 0x5B98C0, 0x00000E0 + +gUnk_085B99A0:: @ 085B99A0 + .incbin "baserom.gba", 0x5B99A0, 0x00000E0 + +gUnk_085B9A80:: @ 085B9A80 + .incbin "baserom.gba", 0x5B9A80, 0x00000E0 + +gUnk_085B9B60:: @ 085B9B60 + .incbin "baserom.gba", 0x5B9B60, 0x00000E0 + +gUnk_085B9C40:: @ 085B9C40 + .incbin "baserom.gba", 0x5B9C40, 0x00000E0 + +gUnk_085B9D20:: @ 085B9D20 + .incbin "baserom.gba", 0x5B9D20, 0x00000E0 + +gUnk_085B9E00:: @ 085B9E00 + .incbin "baserom.gba", 0x5B9E00, 0x00000E0 + +gUnk_085B9EE0:: @ 085B9EE0 + .incbin "baserom.gba", 0x5B9EE0, 0x00000E0 + +gUnk_085B9FC0:: @ 085B9FC0 + .incbin "baserom.gba", 0x5B9FC0, 0x00000E0 + +gUnk_085BA0A0:: @ 085BA0A0 + .incbin "baserom.gba", 0x5BA0A0, 0x00000E0 + +gUnk_085BA180:: @ 085BA180 + .incbin "baserom.gba", 0x5BA180, 0x00000E0 + +gUnk_085BA260:: @ 085BA260 + .incbin "baserom.gba", 0x5BA260, 0x00000E0 + +gUnk_085BA340:: @ 085BA340 + .incbin "baserom.gba", 0x5BA340, 0x00000E0 + +gUnk_085BA420:: @ 085BA420 + .incbin "baserom.gba", 0x5BA420, 0x00000E0 + +gUnk_085BA500:: @ 085BA500 + .incbin "baserom.gba", 0x5BA500, 0x00000E0 + +gUnk_085BA5E0:: @ 085BA5E0 + .incbin "baserom.gba", 0x5BA5E0, 0x00000E0 + +gUnk_085BA6C0:: @ 085BA6C0 + .incbin "baserom.gba", 0x5BA6C0, 0x00000E0 + +gUnk_085BA7A0:: @ 085BA7A0 + .incbin "baserom.gba", 0x5BA7A0, 0x00000E0 + +gUnk_085BA880:: @ 085BA880 + .incbin "baserom.gba", 0x5BA880, 0x00000E0 + +gUnk_085BA960:: @ 085BA960 + .incbin "baserom.gba", 0x5BA960, 0x00000E0 + +gUnk_085BAA40:: @ 085BAA40 + .incbin "baserom.gba", 0x5BAA40, 0x00000E0 + +gUnk_085BAB20:: @ 085BAB20 + .incbin "baserom.gba", 0x5BAB20, 0x00000E0 + +gUnk_085BAC00:: @ 085BAC00 + .incbin "baserom.gba", 0x5BAC00, 0x00000E0 + +gUnk_085BACE0:: @ 085BACE0 + .incbin "baserom.gba", 0x5BACE0, 0x00000E0 + +gUnk_085BADC0:: @ 085BADC0 + .incbin "baserom.gba", 0x5BADC0, 0x00000E0 + +gUnk_085BAEA0:: @ 085BAEA0 + .incbin "baserom.gba", 0x5BAEA0, 0x00000E0 + +gUnk_085BAF80:: @ 085BAF80 + .incbin "baserom.gba", 0x5BAF80, 0x00000E0 + +gUnk_085BB060:: @ 085BB060 + .incbin "baserom.gba", 0x5BB060, 0x00000E0 + +gUnk_085BB140:: @ 085BB140 + .incbin "baserom.gba", 0x5BB140, 0x00000E0 + +gUnk_085BB220:: @ 085BB220 + .incbin "baserom.gba", 0x5BB220, 0x00000E0 + +gUnk_085BB300:: @ 085BB300 + .incbin "baserom.gba", 0x5BB300, 0x00000E0 + +gUnk_085BB3E0:: @ 085BB3E0 + .incbin "baserom.gba", 0x5BB3E0, 0x00000E0 + +gUnk_085BB4C0:: @ 085BB4C0 + .incbin "baserom.gba", 0x5BB4C0, 0x00000E0 + +gUnk_085BB5A0:: @ 085BB5A0 + .incbin "baserom.gba", 0x5BB5A0, 0x00000E0 + +gUnk_085BB680:: @ 085BB680 + .incbin "baserom.gba", 0x5BB680, 0x00000E0 + +gUnk_085BB760:: @ 085BB760 + .incbin "baserom.gba", 0x5BB760, 0x00000E0 + +gUnk_085BB840:: @ 085BB840 + .incbin "baserom.gba", 0x5BB840, 0x00000E0 + +gUnk_085BB920:: @ 085BB920 + .incbin "baserom.gba", 0x5BB920, 0x00000E0 + +gUnk_085BBA00:: @ 085BBA00 + .incbin "baserom.gba", 0x5BBA00, 0x00000E0 + +gUnk_085BBAE0:: @ 085BBAE0 + .incbin "baserom.gba", 0x5BBAE0, 0x00000E0 + +gUnk_085BBBC0:: @ 085BBBC0 + .incbin "baserom.gba", 0x5BBBC0, 0x00000E0 + +gUnk_085BBCA0:: @ 085BBCA0 + .incbin "baserom.gba", 0x5BBCA0, 0x00000E0 + +gUnk_085BBD80:: @ 085BBD80 + .incbin "baserom.gba", 0x5BBD80, 0x00000E0 + +gUnk_085BBE60:: @ 085BBE60 + .incbin "baserom.gba", 0x5BBE60, 0x00000E0 + +gUnk_085BBF40:: @ 085BBF40 + .incbin "baserom.gba", 0x5BBF40, 0x00000E0 + +gUnk_085BC020:: @ 085BC020 + .incbin "baserom.gba", 0x5BC020, 0x00000E0 + +gUnk_085BC100:: @ 085BC100 + .incbin "baserom.gba", 0x5BC100, 0x00000E0 + +gUnk_085BC1E0:: @ 085BC1E0 + .incbin "baserom.gba", 0x5BC1E0, 0x00000E0 + +gUnk_085BC2C0:: @ 085BC2C0 + .incbin "baserom.gba", 0x5BC2C0, 0x00000E0 + +gUnk_085BC3A0:: @ 085BC3A0 + .incbin "baserom.gba", 0x5BC3A0, 0x00000E0 + +gUnk_085BC480:: @ 085BC480 + .incbin "baserom.gba", 0x5BC480, 0x00000E0 + +gUnk_085BC560:: @ 085BC560 + .incbin "baserom.gba", 0x5BC560, 0x00000E0 + +gUnk_085BC640:: @ 085BC640 + .incbin "baserom.gba", 0x5BC640, 0x00000E0 + +gUnk_085BC720:: @ 085BC720 + .incbin "baserom.gba", 0x5BC720, 0x00000E0 + +gUnk_085BC800:: @ 085BC800 + .incbin "baserom.gba", 0x5BC800, 0x00000E0 + +gUnk_085BC8E0:: @ 085BC8E0 + .incbin "baserom.gba", 0x5BC8E0, 0x00000E0 + +gUnk_085BC9C0:: @ 085BC9C0 + .incbin "baserom.gba", 0x5BC9C0, 0x00000E0 + +gUnk_085BCAA0:: @ 085BCAA0 + .incbin "baserom.gba", 0x5BCAA0, 0x00000E0 + +gUnk_085BCB80:: @ 085BCB80 + .incbin "baserom.gba", 0x5BCB80, 0x00000E0 + +gUnk_085BCC60:: @ 085BCC60 + .incbin "baserom.gba", 0x5BCC60, 0x00000E0 + +gUnk_085BCD40:: @ 085BCD40 + .incbin "baserom.gba", 0x5BCD40, 0x00000E0 + +gUnk_085BCE20:: @ 085BCE20 + .incbin "baserom.gba", 0x5BCE20, 0x00000E0 + +gUnk_085BCF00:: @ 085BCF00 + .incbin "baserom.gba", 0x5BCF00, 0x00000E0 + +gUnk_085BCFE0:: @ 085BCFE0 + .incbin "baserom.gba", 0x5BCFE0, 0x00000E0 + +gUnk_085BD0C0:: @ 085BD0C0 + .incbin "baserom.gba", 0x5BD0C0, 0x00000E0 + +gUnk_085BD1A0:: @ 085BD1A0 + .incbin "baserom.gba", 0x5BD1A0, 0x00000E0 + +gUnk_085BD280:: @ 085BD280 + .incbin "baserom.gba", 0x5BD280, 0x00000E0 + +gUnk_085BD360:: @ 085BD360 + .incbin "baserom.gba", 0x5BD360, 0x00000A4 + +gUnk_085BD404:: @ 085BD404 + .incbin "baserom.gba", 0x5BD404, 0x000003C + +gUnk_085BD440:: @ 085BD440 + .incbin "baserom.gba", 0x5BD440, 0x00000E0 + +gUnk_085BD520:: @ 085BD520 + .incbin "baserom.gba", 0x5BD520, 0x00029D8 + +gUnk_085BFEF8:: @ 085BFEF8 + .incbin "baserom.gba", 0x5BFEF8, 0x000002E + +gUnk_085BFF26:: @ 085BFF26 + .incbin "baserom.gba", 0x5BFF26, 0x00000AE + +gUnk_085BFFD4:: @ 085BFFD4 + .incbin "baserom.gba", 0x5BFFD4, 0x0000024 + +gUnk_085BFFF8:: @ 085BFFF8 + .incbin "baserom.gba", 0x5BFFF8, 0x0000007 + +gUnk_085BFFFF:: @ 085BFFFF + .incbin "baserom.gba", 0x5BFFFF, 0x000081D + +gUnk_085C081C:: @ 085C081C + .incbin "baserom.gba", 0x5C081C, 0x0001163 + +gUnk_085C197F:: @ 085C197F + .incbin "baserom.gba", 0x5C197F, 0x00003D1 + +gUnk_085C1D50:: @ 085C1D50 + .incbin "baserom.gba", 0x5C1D50, 0x0000A0C + +gUnk_085C275C:: @ 085C275C + .incbin "baserom.gba", 0x5C275C, 0x0000AD6 + +gUnk_085C3232:: @ 085C3232 + .incbin "baserom.gba", 0x5C3232, 0x00008CE + +gUnk_085C3B00:: @ 085C3B00 + .incbin "baserom.gba", 0x5C3B00, 0x0000438 + +gUnk_085C3F38:: @ 085C3F38 + .incbin "baserom.gba", 0x5C3F38, 0x00006E8 + +gUnk_085C4620:: @ 085C4620 + .incbin "baserom.gba", 0x5C4620, 0x0000500 + +gUnk_085C4B20:: @ 085C4B20 + .incbin "baserom.gba", 0x5C4B20, 0x0000280 + +gUnk_085C4DA0:: @ 085C4DA0 + .incbin "baserom.gba", 0x5C4DA0, 0x00000C0 + +gUnk_085C4E60:: @ 085C4E60 + .incbin "baserom.gba", 0x5C4E60, 0x00000C0 + +gUnk_085C4F20:: @ 085C4F20 + .incbin "baserom.gba", 0x5C4F20, 0x00000C0 + +gUnk_085C4FE0:: @ 085C4FE0 + .incbin "baserom.gba", 0x5C4FE0, 0x000B021 + +gUnk_085D0001:: @ 085D0001 + .incbin "baserom.gba", 0x5D0001, 0x0000106 + +gUnk_085D0107:: @ 085D0107 + .incbin "baserom.gba", 0x5D0107, 0x0000055 + +gUnk_085D015C:: @ 085D015C + .incbin "baserom.gba", 0x5D015C, 0x000045B + +gUnk_085D05B7:: @ 085D05B7 + .incbin "baserom.gba", 0x5D05B7, 0x00003A6 + +gUnk_085D095D:: @ 085D095D + .incbin "baserom.gba", 0x5D095D, 0x0001E00 + +gUnk_085D275D:: @ 085D275D + .incbin "baserom.gba", 0x5D275D, 0x00009A3 + +gUnk_085D3100:: @ 085D3100 + .incbin "baserom.gba", 0x5D3100, 0x000DC31 + +gUnk_085E0D31:: @ 085E0D31 + .incbin "baserom.gba", 0x5E0D31, 0x00045BC + +gUnk_085E52ED:: @ 085E52ED + .incbin "baserom.gba", 0x5E52ED, 0x0004D8F + +gUnk_085EA07C:: @ 085EA07C + .incbin "baserom.gba", 0x5EA07C, 0x0005F84 + +gUnk_085F0000:: @ 085F0000 + .incbin "baserom.gba", 0x5F0000, 0x0000006 + +gUnk_085F0006:: @ 085F0006 + .incbin "baserom.gba", 0x5F0006, 0x0000002 + +gUnk_085F0008:: @ 085F0008 + .incbin "baserom.gba", 0x5F0008, 0x0000002 + +gUnk_085F000A:: @ 085F000A + .incbin "baserom.gba", 0x5F000A, 0x0000011 + +gUnk_085F001B:: @ 085F001B + .incbin "baserom.gba", 0x5F001B, 0x0000003 + +gUnk_085F001E:: @ 085F001E + .incbin "baserom.gba", 0x5F001E, 0x000001E + +gUnk_085F003C:: @ 085F003C + .incbin "baserom.gba", 0x5F003C, 0x0000036 + +gUnk_085F0072:: @ 085F0072 + .incbin "baserom.gba", 0x5F0072, 0x0000006 + +gUnk_085F0078:: @ 085F0078 + .incbin "baserom.gba", 0x5F0078, 0x0000014 + +gUnk_085F008C:: @ 085F008C + .incbin "baserom.gba", 0x5F008C, 0x0000376 + +gUnk_085F0402:: @ 085F0402 + .incbin "baserom.gba", 0x5F0402, 0x0000032 + +gUnk_085F0434:: @ 085F0434 + .incbin "baserom.gba", 0x5F0434, 0x000000F + +gUnk_085F0443:: @ 085F0443 + .incbin "baserom.gba", 0x5F0443, 0x0000008 + +gUnk_085F044B:: @ 085F044B + .incbin "baserom.gba", 0x5F044B, 0x000000E + +gUnk_085F0459:: @ 085F0459 + .incbin "baserom.gba", 0x5F0459, 0x0000005 + +gUnk_085F045E:: @ 085F045E + .incbin "baserom.gba", 0x5F045E, 0x00003A9 + +gUnk_085F0807:: @ 085F0807 + .incbin "baserom.gba", 0x5F0807, 0x0000057 + +gUnk_085F085E:: @ 085F085E + .incbin "baserom.gba", 0x5F085E, 0x000F259 + +gUnk_085FFAB7:: @ 085FFAB7 + .incbin "baserom.gba", 0x5FFAB7, 0x0000050 + +gUnk_085FFB07:: @ 085FFB07 + .incbin "baserom.gba", 0x5FFB07, 0x00004F8 + +gUnk_085FFFFF:: @ 085FFFFF + .incbin "baserom.gba", 0x5FFFFF, 0x0000001 + +gUnk_08600000:: @ 08600000 + .incbin "baserom.gba", 0x600000, 0x0000001 + +gUnk_08600001:: @ 08600001 + .incbin "baserom.gba", 0x600001, 0x0000005 + +gUnk_08600006:: @ 08600006 + .incbin "baserom.gba", 0x600006, 0x00000E3 + +gUnk_086000E9:: @ 086000E9 + .incbin "baserom.gba", 0x6000E9, 0x0000237 + +gUnk_08600320:: @ 08600320 + .incbin "baserom.gba", 0x600320, 0x0000314 + +gUnk_08600634:: @ 08600634 + .incbin "baserom.gba", 0x600634, 0x00000FC + +gUnk_08600730:: @ 08600730 + .incbin "baserom.gba", 0x600730, 0x00000D8 + +gUnk_08600808:: @ 08600808 + .incbin "baserom.gba", 0x600808, 0x0003458 + +gUnk_08603C60:: @ 08603C60 + .incbin "baserom.gba", 0x603C60, 0x000177E + +gUnk_086053DE:: @ 086053DE + .incbin "baserom.gba", 0x6053DE, 0x0000421 + +gUnk_086057FF:: @ 086057FF + .incbin "baserom.gba", 0x6057FF, 0x0000F04 + +gUnk_08606703:: @ 08606703 + .incbin "baserom.gba", 0x606703, 0x0000750 + +gUnk_08606E53:: @ 08606E53 + .incbin "baserom.gba", 0x606E53, 0x00010AD + +gUnk_08607F00:: @ 08607F00 + .incbin "baserom.gba", 0x607F00, 0x0000052 + +gUnk_08607F52:: @ 08607F52 + .incbin "baserom.gba", 0x607F52, 0x00009AE + +gUnk_08608900:: @ 08608900 + .incbin "baserom.gba", 0x608900, 0x0005BEA + +gUnk_0860E4EA:: @ 0860E4EA + .incbin "baserom.gba", 0x60E4EA, 0x0000D01 + +gUnk_0860F1EB:: @ 0860F1EB + .incbin "baserom.gba", 0x60F1EB, 0x0000405 + +gUnk_0860F5F0:: @ 0860F5F0 + .incbin "baserom.gba", 0x60F5F0, 0x0000300 + +gUnk_0860F8F0:: @ 0860F8F0 + .incbin "baserom.gba", 0x60F8F0, 0x000006B + +gUnk_0860F95B:: @ 0860F95B + .incbin "baserom.gba", 0x60F95B, 0x00003A8 + +gUnk_0860FD03:: @ 0860FD03 + .incbin "baserom.gba", 0x60FD03, 0x00002FD + +gUnk_08610000:: @ 08610000 + .incbin "baserom.gba", 0x610000, 0x0000002 + +gUnk_08610002:: @ 08610002 + .incbin "baserom.gba", 0x610002, 0x0000002 + +gUnk_08610004:: @ 08610004 + .incbin "baserom.gba", 0x610004, 0x0000001 + +gUnk_08610005:: @ 08610005 + .incbin "baserom.gba", 0x610005, 0x0000001 + +gUnk_08610006:: @ 08610006 + .incbin "baserom.gba", 0x610006, 0x0000001 + +gUnk_08610007:: @ 08610007 + .incbin "baserom.gba", 0x610007, 0x0000001 + +gUnk_08610008:: @ 08610008 + .incbin "baserom.gba", 0x610008, 0x0000002 + +gUnk_0861000A:: @ 0861000A + .incbin "baserom.gba", 0x61000A, 0x0000001 + +gUnk_0861000B:: @ 0861000B + .incbin "baserom.gba", 0x61000B, 0x0000004 + +gUnk_0861000F:: @ 0861000F + .incbin "baserom.gba", 0x61000F, 0x0000004 + +gUnk_08610013:: @ 08610013 + .incbin "baserom.gba", 0x610013, 0x0000001 + +gUnk_08610014:: @ 08610014 + .incbin "baserom.gba", 0x610014, 0x000000A + +gUnk_0861001E:: @ 0861001E + .incbin "baserom.gba", 0x61001E, 0x0000002 + +gUnk_08610020:: @ 08610020 + .incbin "baserom.gba", 0x610020, 0x0000006 + +gUnk_08610026:: @ 08610026 + .incbin "baserom.gba", 0x610026, 0x000000A + +gUnk_08610030:: @ 08610030 + .incbin "baserom.gba", 0x610030, 0x000000C + +gUnk_0861003C:: @ 0861003C + .incbin "baserom.gba", 0x61003C, 0x0000004 + +gUnk_08610040:: @ 08610040 + .incbin "baserom.gba", 0x610040, 0x000000A + +gUnk_0861004A:: @ 0861004A + .incbin "baserom.gba", 0x61004A, 0x0000006 + +gUnk_08610050:: @ 08610050 + .incbin "baserom.gba", 0x610050, 0x0000008 + +gUnk_08610058:: @ 08610058 + .incbin "baserom.gba", 0x610058, 0x0000002 + +gUnk_0861005A:: @ 0861005A + .incbin "baserom.gba", 0x61005A, 0x0000002 + +gUnk_0861005C:: @ 0861005C + .incbin "baserom.gba", 0x61005C, 0x0000004 + +gUnk_08610060:: @ 08610060 + .incbin "baserom.gba", 0x610060, 0x0000008 + +gUnk_08610068:: @ 08610068 + .incbin "baserom.gba", 0x610068, 0x000000E + +gUnk_08610076:: @ 08610076 + .incbin "baserom.gba", 0x610076, 0x0000002 + +gUnk_08610078:: @ 08610078 + .incbin "baserom.gba", 0x610078, 0x0000008 + +gUnk_08610080:: @ 08610080 + .incbin "baserom.gba", 0x610080, 0x0000010 + +gUnk_08610090:: @ 08610090 + .incbin "baserom.gba", 0x610090, 0x0000008 + +gUnk_08610098:: @ 08610098 + .incbin "baserom.gba", 0x610098, 0x0000010 + +gUnk_086100A8:: @ 086100A8 + .incbin "baserom.gba", 0x6100A8, 0x0000010 + +gUnk_086100B8:: @ 086100B8 + .incbin "baserom.gba", 0x6100B8, 0x0000048 + +gUnk_08610100:: @ 08610100 + .incbin "baserom.gba", 0x610100, 0x0000008 + +gUnk_08610108:: @ 08610108 + .incbin "baserom.gba", 0x610108, 0x0000014 + +gUnk_0861011C:: @ 0861011C + .incbin "baserom.gba", 0x61011C, 0x0000008 + +gUnk_08610124:: @ 08610124 + .incbin "baserom.gba", 0x610124, 0x000001C + +gUnk_08610140:: @ 08610140 + .incbin "baserom.gba", 0x610140, 0x0000008 + +gUnk_08610148:: @ 08610148 + .incbin "baserom.gba", 0x610148, 0x0000020 + +gUnk_08610168:: @ 08610168 + .incbin "baserom.gba", 0x610168, 0x0000018 + +gUnk_08610180:: @ 08610180 + .incbin "baserom.gba", 0x610180, 0x0000030 + +gUnk_086101B0:: @ 086101B0 + .incbin "baserom.gba", 0x6101B0, 0x0000010 + +gUnk_086101C0:: @ 086101C0 + .incbin "baserom.gba", 0x6101C0, 0x0000008 + +gUnk_086101C8:: @ 086101C8 + .incbin "baserom.gba", 0x6101C8, 0x0000040 + +gUnk_08610208:: @ 08610208 + .incbin "baserom.gba", 0x610208, 0x0000020 + +gUnk_08610228:: @ 08610228 + .incbin "baserom.gba", 0x610228, 0x0000010 + +gUnk_08610238:: @ 08610238 + .incbin "baserom.gba", 0x610238, 0x0000028 + +gUnk_08610260:: @ 08610260 + .incbin "baserom.gba", 0x610260, 0x0000010 + +gUnk_08610270:: @ 08610270 + .incbin "baserom.gba", 0x610270, 0x0000008 + +gUnk_08610278:: @ 08610278 + .incbin "baserom.gba", 0x610278, 0x0000010 + +gUnk_08610288:: @ 08610288 + .incbin "baserom.gba", 0x610288, 0x0000080 + +gUnk_08610308:: @ 08610308 + .incbin "baserom.gba", 0x610308, 0x0000018 + +gUnk_08610320:: @ 08610320 + .incbin "baserom.gba", 0x610320, 0x0000008 + +gUnk_08610328:: @ 08610328 + .incbin "baserom.gba", 0x610328, 0x0000008 + +gUnk_08610330:: @ 08610330 + .incbin "baserom.gba", 0x610330, 0x0000008 + +gUnk_08610338:: @ 08610338 + .incbin "baserom.gba", 0x610338, 0x0000010 + +gUnk_08610348:: @ 08610348 + .incbin "baserom.gba", 0x610348, 0x0000018 + +gUnk_08610360:: @ 08610360 + .incbin "baserom.gba", 0x610360, 0x0000038 + +gUnk_08610398:: @ 08610398 + .incbin "baserom.gba", 0x610398, 0x0000069 + +gUnk_08610401:: @ 08610401 + .incbin "baserom.gba", 0x610401, 0x0000001 + +gUnk_08610402:: @ 08610402 + .incbin "baserom.gba", 0x610402, 0x0000041 + +gUnk_08610443:: @ 08610443 + .incbin "baserom.gba", 0x610443, 0x0000001 + +gUnk_08610444:: @ 08610444 + .incbin "baserom.gba", 0x610444, 0x0000015 + +gUnk_08610459:: @ 08610459 + .incbin "baserom.gba", 0x610459, 0x0000057 + +gUnk_086104B0:: @ 086104B0 + .incbin "baserom.gba", 0x6104B0, 0x0000300 + +gUnk_086107B0:: @ 086107B0 + .incbin "baserom.gba", 0x6107B0, 0x0000055 + +gUnk_08610805:: @ 08610805 + .incbin "baserom.gba", 0x610805, 0x0000001 + +gUnk_08610806:: @ 08610806 + .incbin "baserom.gba", 0x610806, 0x0000001 + +gUnk_08610807:: @ 08610807 + .incbin "baserom.gba", 0x610807, 0x0000059 + +gUnk_08610860:: @ 08610860 + .incbin "baserom.gba", 0x610860, 0x000059E + +gUnk_08610DFE:: @ 08610DFE + .incbin "baserom.gba", 0x610DFE, 0x0002212 + +gUnk_08613010:: @ 08613010 + .incbin "baserom.gba", 0x613010, 0x0000334 + +gUnk_08613344:: @ 08613344 + .incbin "baserom.gba", 0x613344, 0x00065DE + +gUnk_08619922:: @ 08619922 + .incbin "baserom.gba", 0x619922, 0x00006DE + +gUnk_0861A000:: @ 0861A000 + .incbin "baserom.gba", 0x61A000, 0x0000BCC + +gUnk_0861ABCC:: @ 0861ABCC + .incbin "baserom.gba", 0x61ABCC, 0x0001181 + +gUnk_0861BD4D:: @ 0861BD4D + .incbin "baserom.gba", 0x61BD4D, 0x0005403 + +gUnk_08621150:: @ 08621150 + .incbin "baserom.gba", 0x621150, 0x00010D5 + +gUnk_08622225:: @ 08622225 + .incbin "baserom.gba", 0x622225, 0x0000020 + +gUnk_08622245:: @ 08622245 + .incbin "baserom.gba", 0x622245, 0x00001C2 + +gUnk_08622407:: @ 08622407 + .incbin "baserom.gba", 0x622407, 0x000203A + +gUnk_08624441:: @ 08624441 + .incbin "baserom.gba", 0x624441, 0x000A521 + +gUnk_0862E962:: @ 0862E962 + .incbin "baserom.gba", 0x62E962, 0x00016E1 + +gUnk_08630043:: @ 08630043 + .incbin "baserom.gba", 0x630043, 0x00000ED + +gUnk_08630130:: @ 08630130 + .incbin "baserom.gba", 0x630130, 0x0000312 + +gUnk_08630442:: @ 08630442 + .incbin "baserom.gba", 0x630442, 0x0000120 + +gUnk_08630562:: @ 08630562 + .incbin "baserom.gba", 0x630562, 0x00001B0 + +gUnk_08630712:: @ 08630712 + .incbin "baserom.gba", 0x630712, 0x0000150 + +gUnk_08630862:: @ 08630862 + .incbin "baserom.gba", 0x630862, 0x0005CC3 + +gUnk_08636525:: @ 08636525 + .incbin "baserom.gba", 0x636525, 0x0002D5C + +gUnk_08639281:: @ 08639281 + .incbin "baserom.gba", 0x639281, 0x0006E86 + +gUnk_08640107:: @ 08640107 + .incbin "baserom.gba", 0x640107, 0x0000219 + +gUnk_08640320:: @ 08640320 + .incbin "baserom.gba", 0x640320, 0x0000123 + +gUnk_08640443:: @ 08640443 + .incbin "baserom.gba", 0x640443, 0x0000B9E + +gUnk_08640FE1:: @ 08640FE1 + .incbin "baserom.gba", 0x640FE1, 0x0001296 + +gUnk_08642277:: @ 08642277 + .incbin "baserom.gba", 0x642277, 0x000218C + +gUnk_08644403:: @ 08644403 + .incbin "baserom.gba", 0x644403, 0x000081C + +gUnk_08644C1F:: @ 08644C1F + .incbin "baserom.gba", 0x644C1F, 0x0000914 + +gUnk_08645533:: @ 08645533 + .incbin "baserom.gba", 0x645533, 0x0000003 + +gUnk_08645536:: @ 08645536 + .incbin "baserom.gba", 0x645536, 0x00001EF + +gUnk_08645725:: @ 08645725 + .incbin "baserom.gba", 0x645725, 0x0005330 + +gUnk_0864AA55:: @ 0864AA55 + .incbin "baserom.gba", 0x64AA55, 0x00041B3 + +gUnk_0864EC08:: @ 0864EC08 + .incbin "baserom.gba", 0x64EC08, 0x00013F9 + +gUnk_08650001:: @ 08650001 + .incbin "baserom.gba", 0x650001, 0x000000F + +gUnk_08650010:: @ 08650010 + .incbin "baserom.gba", 0x650010, 0x0000030 + +gUnk_08650040:: @ 08650040 + .incbin "baserom.gba", 0x650040, 0x0000100 + +gUnk_08650140:: @ 08650140 + .incbin "baserom.gba", 0x650140, 0x00002C0 + +gUnk_08650400:: @ 08650400 + .incbin "baserom.gba", 0x650400, 0x0000064 + +gUnk_08650464:: @ 08650464 + .incbin "baserom.gba", 0x650464, 0x000069C + +gUnk_08650B00:: @ 08650B00 + .incbin "baserom.gba", 0x650B00, 0x0000400 + +gUnk_08650F00:: @ 08650F00 + .incbin "baserom.gba", 0x650F00, 0x0000003 + +gUnk_08650F03:: @ 08650F03 + .incbin "baserom.gba", 0x650F03, 0x000131F + +gUnk_08652222:: @ 08652222 + .incbin "baserom.gba", 0x652222, 0x00009F6 + +gUnk_08652C18:: @ 08652C18 + .incbin "baserom.gba", 0x652C18, 0x00006FC + +gUnk_08653314:: @ 08653314 + .incbin "baserom.gba", 0x653314, 0x00004EC + +gUnk_08653800:: @ 08653800 + .incbin "baserom.gba", 0x653800, 0x0001E43 + +gUnk_08655643:: @ 08655643 + .incbin "baserom.gba", 0x655643, 0x0002017 + +gUnk_0865765A:: @ 0865765A + .incbin "baserom.gba", 0x65765A, 0x00017AA + +gUnk_08658E04:: @ 08658E04 + .incbin "baserom.gba", 0x658E04, 0x000581F + +gUnk_0865E623:: @ 0865E623 + .incbin "baserom.gba", 0x65E623, 0x00019DD + +gUnk_08660000:: @ 08660000 + .incbin "baserom.gba", 0x660000, 0x0000006 + +gUnk_08660006:: @ 08660006 + .incbin "baserom.gba", 0x660006, 0x00002FA + +gUnk_08660300:: @ 08660300 + .incbin "baserom.gba", 0x660300, 0x00002B7 + +gUnk_086605B7:: @ 086605B7 + .incbin "baserom.gba", 0x6605B7, 0x00002AF + +gUnk_08660866:: @ 08660866 + .incbin "baserom.gba", 0x660866, 0x00012AA + +gUnk_08661B10:: @ 08661B10 + .incbin "baserom.gba", 0x661B10, 0x0000400 + +gUnk_08661F10:: @ 08661F10 + .incbin "baserom.gba", 0x661F10, 0x0000972 + +gUnk_08662882:: @ 08662882 + .incbin "baserom.gba", 0x662882, 0x0000BC1 + +gUnk_08663443:: @ 08663443 + .incbin "baserom.gba", 0x663443, 0x0000F4D + +gUnk_08664390:: @ 08664390 + .incbin "baserom.gba", 0x664390, 0x000003C + +gUnk_086643CC:: @ 086643CC + .incbin "baserom.gba", 0x6643CC, 0x0000067 + +gUnk_08664433:: @ 08664433 + .incbin "baserom.gba", 0x664433, 0x0000F11 + +gUnk_08665344:: @ 08665344 + .incbin "baserom.gba", 0x665344, 0x0000223 + +gUnk_08665567:: @ 08665567 + .incbin "baserom.gba", 0x665567, 0x0000DCD + +gUnk_08666334:: @ 08666334 + .incbin "baserom.gba", 0x666334, 0x000021F + +gUnk_08666553:: @ 08666553 + .incbin "baserom.gba", 0x666553, 0x00000AE + +gUnk_08666601:: @ 08666601 + .incbin "baserom.gba", 0x666601, 0x0000021 + +gUnk_08666622:: @ 08666622 + .incbin "baserom.gba", 0x666622, 0x0000044 + +gUnk_08666666:: @ 08666666 + .incbin "baserom.gba", 0x666666, 0x0000117 + +gUnk_0866677D:: @ 0866677D + .incbin "baserom.gba", 0x66677D, 0x00000A6 + +gUnk_08666823:: @ 08666823 + .incbin "baserom.gba", 0x666823, 0x0000DF3 + +gUnk_08667616:: @ 08667616 + .incbin "baserom.gba", 0x667616, 0x0000151 + +gUnk_08667767:: @ 08667767 + .incbin "baserom.gba", 0x667767, 0x0000748 + +gUnk_08667EAF:: @ 08667EAF + .incbin "baserom.gba", 0x667EAF, 0x0000151 + +gUnk_08668000:: @ 08668000 + .incbin "baserom.gba", 0x668000, 0x0001999 + +gUnk_08669999:: @ 08669999 + .incbin "baserom.gba", 0x669999, 0x000056F + +gUnk_08669F08:: @ 08669F08 + .incbin "baserom.gba", 0x669F08, 0x0000541 + +gUnk_0866A449:: @ 0866A449 + .incbin "baserom.gba", 0x66A449, 0x000185C + +gUnk_0866BCA5:: @ 0866BCA5 + .incbin "baserom.gba", 0x66BCA5, 0x0000292 + +gUnk_0866BF37:: @ 0866BF37 + .incbin "baserom.gba", 0x66BF37, 0x00023CC + +gUnk_0866E303:: @ 0866E303 + .incbin "baserom.gba", 0x66E303, 0x0000F20 + +gUnk_0866F223:: @ 0866F223 + .incbin "baserom.gba", 0x66F223, 0x0000DDD + +gUnk_08670000:: @ 08670000 + .incbin "baserom.gba", 0x670000, 0x0000001 + +gUnk_08670001:: @ 08670001 + .incbin "baserom.gba", 0x670001, 0x0000001 + +gUnk_08670002:: @ 08670002 + .incbin "baserom.gba", 0x670002, 0x0000002 + +gUnk_08670004:: @ 08670004 + .incbin "baserom.gba", 0x670004, 0x0000002 + +gUnk_08670006:: @ 08670006 + .incbin "baserom.gba", 0x670006, 0x0000001 + +gUnk_08670007:: @ 08670007 + .incbin "baserom.gba", 0x670007, 0x0000001 + +gUnk_08670008:: @ 08670008 + .incbin "baserom.gba", 0x670008, 0x0000002 + +gUnk_0867000A:: @ 0867000A + .incbin "baserom.gba", 0x67000A, 0x0000001 + +gUnk_0867000B:: @ 0867000B + .incbin "baserom.gba", 0x67000B, 0x0000004 + +gUnk_0867000F:: @ 0867000F + .incbin "baserom.gba", 0x67000F, 0x0000001 + +gUnk_08670010:: @ 08670010 + .incbin "baserom.gba", 0x670010, 0x0000001 + +gUnk_08670011:: @ 08670011 + .incbin "baserom.gba", 0x670011, 0x0000003 + +gUnk_08670014:: @ 08670014 + .incbin "baserom.gba", 0x670014, 0x0000004 + +gUnk_08670018:: @ 08670018 + .incbin "baserom.gba", 0x670018, 0x0000024 + +gUnk_0867003C:: @ 0867003C + .incbin "baserom.gba", 0x67003C, 0x000005A + +gUnk_08670096:: @ 08670096 + .incbin "baserom.gba", 0x670096, 0x0000002 + +gUnk_08670098:: @ 08670098 + .incbin "baserom.gba", 0x670098, 0x0000128 + +gUnk_086701C0:: @ 086701C0 + .incbin "baserom.gba", 0x6701C0, 0x0000018 + +gUnk_086701D8:: @ 086701D8 + .incbin "baserom.gba", 0x6701D8, 0x0000020 + +gUnk_086701F8:: @ 086701F8 + .incbin "baserom.gba", 0x6701F8, 0x0000028 + +gUnk_08670220:: @ 08670220 + .incbin "baserom.gba", 0x670220, 0x0000138 + +gUnk_08670358:: @ 08670358 + .incbin "baserom.gba", 0x670358, 0x00000A9 + +gUnk_08670401:: @ 08670401 + .incbin "baserom.gba", 0x670401, 0x0000043 + +gUnk_08670444:: @ 08670444 + .incbin "baserom.gba", 0x670444, 0x0000015 + +gUnk_08670459:: @ 08670459 + .incbin "baserom.gba", 0x670459, 0x00003AE + +gUnk_08670807:: @ 08670807 + .incbin "baserom.gba", 0x670807, 0x0000B4F + +gUnk_08671356:: @ 08671356 + .incbin "baserom.gba", 0x671356, 0x0002875 + +gUnk_08673BCB:: @ 08673BCB + .incbin "baserom.gba", 0x673BCB, 0x0000036 + +gUnk_08673C01:: @ 08673C01 + .incbin "baserom.gba", 0x673C01, 0x0001495 + +gUnk_08675096:: @ 08675096 + .incbin "baserom.gba", 0x675096, 0x000016A + +gUnk_08675200:: @ 08675200 + .incbin "baserom.gba", 0x675200, 0x0003688 + +gUnk_08678888:: @ 08678888 + .incbin "baserom.gba", 0x678888, 0x000010F + +gUnk_08678997:: @ 08678997 + .incbin "baserom.gba", 0x678997, 0x0001960 + +gUnk_0867A2F7:: @ 0867A2F7 + .incbin "baserom.gba", 0x67A2F7, 0x0002C5C + +gUnk_0867CF53:: @ 0867CF53 + .incbin "baserom.gba", 0x67CF53, 0x00030AD + +gUnk_08680000:: @ 08680000 + .incbin "baserom.gba", 0x680000, 0x00000FF + +gUnk_086800FF:: @ 086800FF + .incbin "baserom.gba", 0x6800FF, 0x0000768 + +gUnk_08680867:: @ 08680867 + .incbin "baserom.gba", 0x680867, 0x0000001 + +gUnk_08680868:: @ 08680868 + .incbin "baserom.gba", 0x680868, 0x0004CEE + +gUnk_08685556:: @ 08685556 + .incbin "baserom.gba", 0x685556, 0x00032C9 + +gUnk_0868881F:: @ 0868881F + .incbin "baserom.gba", 0x68881F, 0x000004B + +gUnk_0868886A:: @ 0868886A + .incbin "baserom.gba", 0x68886A, 0x0007796 + +gUnk_08690000:: @ 08690000 + .incbin "baserom.gba", 0x690000, 0x0000868 + +gUnk_08690868:: @ 08690868 + .incbin "baserom.gba", 0x690868, 0x0000FDA + +gUnk_08691842:: @ 08691842 + .incbin "baserom.gba", 0x691842, 0x0000CF8 + +gUnk_0869253A:: @ 0869253A + .incbin "baserom.gba", 0x69253A, 0x0000040 + +gUnk_0869257A:: @ 0869257A + .incbin "baserom.gba", 0x69257A, 0x0000060 + +gUnk_086925DA:: @ 086925DA + .incbin "baserom.gba", 0x6925DA, 0x0000040 + +gUnk_0869261A:: @ 0869261A + .incbin "baserom.gba", 0x69261A, 0x0000086 + +gUnk_086926A0:: @ 086926A0 + .incbin "baserom.gba", 0x6926A0, 0x000001A + +gUnk_086926BA:: @ 086926BA + .incbin "baserom.gba", 0x6926BA, 0x0000090 + +gUnk_0869274A:: @ 0869274A + .incbin "baserom.gba", 0x69274A, 0x0000009 + +gUnk_08692753:: @ 08692753 + .incbin "baserom.gba", 0x692753, 0x0000006 + +gUnk_08692759:: @ 08692759 + .incbin "baserom.gba", 0x692759, 0x0000027 + +gUnk_08692780:: @ 08692780 + .incbin "baserom.gba", 0x692780, 0x00000E0 + +gUnk_08692860:: @ 08692860 + .incbin "baserom.gba", 0x692860, 0x00000E0 + +gUnk_08692940:: @ 08692940 + .incbin "baserom.gba", 0x692940, 0x00000E0 + +gUnk_08692A20:: @ 08692A20 + .incbin "baserom.gba", 0x692A20, 0x00000E0 + +gUnk_08692B00:: @ 08692B00 + .incbin "baserom.gba", 0x692B00, 0x00000E0 + +gUnk_08692BE0:: @ 08692BE0 + .incbin "baserom.gba", 0x692BE0, 0x00000E0 + +gUnk_08692CC0:: @ 08692CC0 + .incbin "baserom.gba", 0x692CC0, 0x00000E0 + +gUnk_08692DA0:: @ 08692DA0 + .incbin "baserom.gba", 0x692DA0, 0x0000062 + +gUnk_08692E02:: @ 08692E02 + .incbin "baserom.gba", 0x692E02, 0x000007E + +gUnk_08692E80:: @ 08692E80 + .incbin "baserom.gba", 0x692E80, 0x00000E0 + +gUnk_08692F60:: @ 08692F60 + .incbin "baserom.gba", 0x692F60, 0x0000BE9 + +gUnk_08693B49:: @ 08693B49 + .incbin "baserom.gba", 0x693B49, 0x00001F1 + +gUnk_08693D3A:: @ 08693D3A + .incbin "baserom.gba", 0x693D3A, 0x000014C + +gUnk_08693E86:: @ 08693E86 + .incbin "baserom.gba", 0x693E86, 0x00000C3 + +gUnk_08693F49:: @ 08693F49 + .incbin "baserom.gba", 0x693F49, 0x0001800 + +gUnk_08695749:: @ 08695749 + .incbin "baserom.gba", 0x695749, 0x0000347 + +gUnk_08695A90:: @ 08695A90 + .incbin "baserom.gba", 0x695A90, 0x0000383 + +gUnk_08695E13:: @ 08695E13 + .incbin "baserom.gba", 0x695E13, 0x0000327 + +gUnk_0869613A:: @ 0869613A + .incbin "baserom.gba", 0x69613A, 0x000007C + +gUnk_086961B6:: @ 086961B6 + .incbin "baserom.gba", 0x6961B6, 0x0000DAA + +gUnk_08696F60:: @ 08696F60 + .incbin "baserom.gba", 0x696F60, 0x0000980 + +gUnk_086978E0:: @ 086978E0 + .incbin "baserom.gba", 0x6978E0, 0x0000668 + +gUnk_08697F48:: @ 08697F48 + .incbin "baserom.gba", 0x697F48, 0x0001998 + +gUnk_086998E0:: @ 086998E0 + .incbin "baserom.gba", 0x6998E0, 0x0006720 + +gUnk_086A0000:: @ 086A0000 + .incbin "baserom.gba", 0x6A0000, 0x000141A + +gUnk_086A141A:: @ 086A141A + .incbin "baserom.gba", 0x6A141A, 0x00004C6 + +gUnk_086A18E0:: @ 086A18E0 + .incbin "baserom.gba", 0x6A18E0, 0x0001180 + +gUnk_086A2A60:: @ 086A2A60 + .incbin "baserom.gba", 0x6A2A60, 0x0000480 + +gUnk_086A2EE0:: @ 086A2EE0 + .incbin "baserom.gba", 0x6A2EE0, 0x0001423 + +gUnk_086A4303:: @ 086A4303 + .incbin "baserom.gba", 0x6A4303, 0x0000C03 + +gUnk_086A4F06:: @ 086A4F06 + .incbin "baserom.gba", 0x6A4F06, 0x000281C + +gUnk_086A7722:: @ 086A7722 + .incbin "baserom.gba", 0x6A7722, 0x0000268 + +gUnk_086A798A:: @ 086A798A + .incbin "baserom.gba", 0x6A798A, 0x0002DEE + +gUnk_086AA778:: @ 086AA778 + .incbin "baserom.gba", 0x6AA778, 0x00002F0 + +gUnk_086AAA68:: @ 086AAA68 + .incbin "baserom.gba", 0x6AAA68, 0x0000478 + +gUnk_086AAEE0:: @ 086AAEE0 + .incbin "baserom.gba", 0x6AAEE0, 0x0004EC7 + +gUnk_086AFDA7:: @ 086AFDA7 + .incbin "baserom.gba", 0x6AFDA7, 0x0000272 + +gUnk_086B0019:: @ 086B0019 + .incbin "baserom.gba", 0x6B0019, 0x000002C + +gUnk_086B0045:: @ 086B0045 + .incbin "baserom.gba", 0x6B0045, 0x00000C2 + +gUnk_086B0107:: @ 086B0107 + .incbin "baserom.gba", 0x6B0107, 0x0000763 + +gUnk_086B086A:: @ 086B086A + .incbin "baserom.gba", 0x6B086A, 0x0001070 + +gUnk_086B18DA:: @ 086B18DA + .incbin "baserom.gba", 0x6B18DA, 0x000028A + +gUnk_086B1B64:: @ 086B1B64 + .incbin "baserom.gba", 0x6B1B64, 0x00003AC + +gUnk_086B1F10:: @ 086B1F10 + .incbin "baserom.gba", 0x6B1F10, 0x0000F0D + +gUnk_086B2E1D:: @ 086B2E1D + .incbin "baserom.gba", 0x6B2E1D, 0x00073E9 + +gUnk_086BA206:: @ 086BA206 + .incbin "baserom.gba", 0x6BA206, 0x0005E00 + +gUnk_086C0006:: @ 086C0006 + .incbin "baserom.gba", 0x6C0006, 0x00046C2 + +gUnk_086C46C8:: @ 086C46C8 + .incbin "baserom.gba", 0x6C46C8, 0x00025A5 + +gUnk_086C6C6D:: @ 086C6C6D + .incbin "baserom.gba", 0x6C6C6D, 0x000605F + +gUnk_086CCCCC:: @ 086CCCCC + .incbin "baserom.gba", 0x6CCCCC, 0x0003336 + +gUnk_086D0002:: @ 086D0002 + .incbin "baserom.gba", 0x6D0002, 0x000001C + +gUnk_086D001E:: @ 086D001E + .incbin "baserom.gba", 0x6D001E, 0x000013B + +gUnk_086D0159:: @ 086D0159 + .incbin "baserom.gba", 0x6D0159, 0x0000013 + +gUnk_086D016C:: @ 086D016C + .incbin "baserom.gba", 0x6D016C, 0x0000300 + +gUnk_086D046C:: @ 086D046C + .incbin "baserom.gba", 0x6D046C, 0x000039A + +gUnk_086D0806:: @ 086D0806 + .incbin "baserom.gba", 0x6D0806, 0x000001D + +gUnk_086D0823:: @ 086D0823 + .incbin "baserom.gba", 0x6D0823, 0x0001CE5 + +gUnk_086D2508:: @ 086D2508 + .incbin "baserom.gba", 0x6D2508, 0x0001C1D + +gUnk_086D4125:: @ 086D4125 + .incbin "baserom.gba", 0x6D4125, 0x00002E2 + +gUnk_086D4407:: @ 086D4407 + .incbin "baserom.gba", 0x6D4407, 0x0000059 + +gUnk_086D4460:: @ 086D4460 + .incbin "baserom.gba", 0x6D4460, 0x0000BA4 + +gUnk_086D5004:: @ 086D5004 + .incbin "baserom.gba", 0x6D5004, 0x0008965 + +gUnk_086DD969:: @ 086DD969 + .incbin "baserom.gba", 0x6DD969, 0x0000456 + +gUnk_086DDDBF:: @ 086DDDBF + .incbin "baserom.gba", 0x6DDDBF, 0x0000007 + +gUnk_086DDDC6:: @ 086DDDC6 + .incbin "baserom.gba", 0x6DDDC6, 0x000223E + +gUnk_086E0004:: @ 086E0004 + .incbin "baserom.gba", 0x6E0004, 0x000000C + +gUnk_086E0010:: @ 086E0010 + .incbin "baserom.gba", 0x6E0010, 0x000005D + +gUnk_086E006D:: @ 086E006D + .incbin "baserom.gba", 0x6E006D, 0x0000013 + +gUnk_086E0080:: @ 086E0080 + .incbin "baserom.gba", 0x6E0080, 0x0000080 + +gUnk_086E0100:: @ 086E0100 + .incbin "baserom.gba", 0x6E0100, 0x0000359 + +gUnk_086E0459:: @ 086E0459 + .incbin "baserom.gba", 0x6E0459, 0x0000414 + +gUnk_086E086D:: @ 086E086D + .incbin "baserom.gba", 0x6E086D, 0x000001D + +gUnk_086E088A:: @ 086E088A + .incbin "baserom.gba", 0x6E088A, 0x0001755 + +gUnk_086E1FDF:: @ 086E1FDF + .incbin "baserom.gba", 0x6E1FDF, 0x0000E23 + +gUnk_086E2E02:: @ 086E2E02 + .incbin "baserom.gba", 0x6E2E02, 0x000166D + +gUnk_086E446F:: @ 086E446F + .incbin "baserom.gba", 0x6E446F, 0x0000259 + +gUnk_086E46C8:: @ 086E46C8 + .incbin "baserom.gba", 0x6E46C8, 0x0003D98 + +gUnk_086E8460:: @ 086E8460 + .incbin "baserom.gba", 0x6E8460, 0x0007BA1 + +gUnk_086F0001:: @ 086F0001 + .incbin "baserom.gba", 0x6F0001, 0x0000001 + +gUnk_086F0002:: @ 086F0002 + .incbin "baserom.gba", 0x6F0002, 0x000001E + +gUnk_086F0020:: @ 086F0020 + .incbin "baserom.gba", 0x6F0020, 0x00000F0 + +gUnk_086F0110:: @ 086F0110 + .incbin "baserom.gba", 0x6F0110, 0x000000C + +gUnk_086F011C:: @ 086F011C + .incbin "baserom.gba", 0x6F011C, 0x000007E + +gUnk_086F019A:: @ 086F019A + .incbin "baserom.gba", 0x6F019A, 0x0000069 + +gUnk_086F0203:: @ 086F0203 + .incbin "baserom.gba", 0x6F0203, 0x00005FD + +gUnk_086F0800:: @ 086F0800 + .incbin "baserom.gba", 0x6F0800, 0x000001B + +gUnk_086F081B:: @ 086F081B + .incbin "baserom.gba", 0x6F081B, 0x00006EB + +gUnk_086F0F06:: @ 086F0F06 + .incbin "baserom.gba", 0x6F0F06, 0x00001AF + +gUnk_086F10B5:: @ 086F10B5 + .incbin "baserom.gba", 0x6F10B5, 0x000094A + +gUnk_086F19FF:: @ 086F19FF + .incbin "baserom.gba", 0x6F19FF, 0x0000C01 + +gUnk_086F2600:: @ 086F2600 + .incbin "baserom.gba", 0x6F2600, 0x000B121 + +gUnk_086FD721:: @ 086FD721 + .incbin "baserom.gba", 0x6FD721, 0x000238E + +gUnk_086FFAAF:: @ 086FFAAF + .incbin "baserom.gba", 0x6FFAAF, 0x0000551 + +gUnk_08700000:: @ 08700000 + .incbin "baserom.gba", 0x700000, 0x0000001 + +gUnk_08700001:: @ 08700001 + .incbin "baserom.gba", 0x700001, 0x0000003 + +gUnk_08700004:: @ 08700004 + .incbin "baserom.gba", 0x700004, 0x0000002 + +gUnk_08700006:: @ 08700006 + .incbin "baserom.gba", 0x700006, 0x000002A + +gUnk_08700030:: @ 08700030 + .incbin "baserom.gba", 0x700030, 0x000000C + +gUnk_0870003C:: @ 0870003C + .incbin "baserom.gba", 0x70003C, 0x00001C4 + +gUnk_08700200:: @ 08700200 + .incbin "baserom.gba", 0x700200, 0x0000051 + +gUnk_08700251:: @ 08700251 + .incbin "baserom.gba", 0x700251, 0x000019F + +gUnk_087003F0:: @ 087003F0 + .incbin "baserom.gba", 0x7003F0, 0x0000240 + +gUnk_08700630:: @ 08700630 + .incbin "baserom.gba", 0x700630, 0x00002C0 + +gUnk_087008F0:: @ 087008F0 + .incbin "baserom.gba", 0x7008F0, 0x00000D0 + +gUnk_087009C0:: @ 087009C0 + .incbin "baserom.gba", 0x7009C0, 0x0000119 + +gUnk_08700AD9:: @ 08700AD9 + .incbin "baserom.gba", 0x700AD9, 0x00000C7 + +gUnk_08700BA0:: @ 08700BA0 + .incbin "baserom.gba", 0x700BA0, 0x0001BD0 + +gUnk_08702770:: @ 08702770 + .incbin "baserom.gba", 0x702770, 0x00053AB + +gUnk_08707B1B:: @ 08707B1B + .incbin "baserom.gba", 0x707B1B, 0x00011EB + +gUnk_08708D06:: @ 08708D06 + .incbin "baserom.gba", 0x708D06, 0x000110B + +gUnk_08709E11:: @ 08709E11 + .incbin "baserom.gba", 0x709E11, 0x0002FF6 + +gUnk_0870CE07:: @ 0870CE07 + .incbin "baserom.gba", 0x70CE07, 0x00031F9 + +gUnk_08710000:: @ 08710000 + .incbin "baserom.gba", 0x710000, 0x0000020 + +gUnk_08710020:: @ 08710020 + .incbin "baserom.gba", 0x710020, 0x000001C + +gUnk_0871003C:: @ 0871003C + .incbin "baserom.gba", 0x71003C, 0x0000004 + +gUnk_08710040:: @ 08710040 + .incbin "baserom.gba", 0x710040, 0x00000DC + +gUnk_0871011C:: @ 0871011C + .incbin "baserom.gba", 0x71011C, 0x0000045 + +gUnk_08710161:: @ 08710161 + .incbin "baserom.gba", 0x710161, 0x000029F + +gUnk_08710400:: @ 08710400 + .incbin "baserom.gba", 0x710400, 0x0000091 + +gUnk_08710491:: @ 08710491 + .incbin "baserom.gba", 0x710491, 0x000026F + +gUnk_08710700:: @ 08710700 + .incbin "baserom.gba", 0x710700, 0x0000070 + +gUnk_08710770:: @ 08710770 + .incbin "baserom.gba", 0x710770, 0x0001811 + +gUnk_08711F81:: @ 08711F81 + .incbin "baserom.gba", 0x711F81, 0x00007F0 + +gUnk_08712771:: @ 08712771 + .incbin "baserom.gba", 0x712771, 0x00027A0 + +gUnk_08714F11:: @ 08714F11 + .incbin "baserom.gba", 0x714F11, 0x0003277 + +gUnk_08718188:: @ 08718188 + .incbin "baserom.gba", 0x718188, 0x0007E81 + +gUnk_08720009:: @ 08720009 + .incbin "baserom.gba", 0x720009, 0x00000FE + +gUnk_08720107:: @ 08720107 + .incbin "baserom.gba", 0x720107, 0x000016A + +gUnk_08720271:: @ 08720271 + .incbin "baserom.gba", 0x720271, 0x000048F + +gUnk_08720700:: @ 08720700 + .incbin "baserom.gba", 0x720700, 0x000014E + +gUnk_0872084E:: @ 0872084E + .incbin "baserom.gba", 0x72084E, 0x000048C + +gUnk_08720CDA:: @ 08720CDA + .incbin "baserom.gba", 0x720CDA, 0x000154B + +gUnk_08722225:: @ 08722225 + .incbin "baserom.gba", 0x722225, 0x000DDE2 + +gUnk_08730007:: @ 08730007 + .incbin "baserom.gba", 0x730007, 0x00001E9 + +gUnk_087301F0:: @ 087301F0 + .incbin "baserom.gba", 0x7301F0, 0x0000520 + +gUnk_08730710:: @ 08730710 + .incbin "baserom.gba", 0x730710, 0x0000063 + +gUnk_08730773:: @ 08730773 + .incbin "baserom.gba", 0x730773, 0x00020A0 + +gUnk_08732813:: @ 08732813 + .incbin "baserom.gba", 0x732813, 0x00006C1 + +gUnk_08732ED4:: @ 08732ED4 + .incbin "baserom.gba", 0x732ED4, 0x00021B6 + +gUnk_0873508A:: @ 0873508A + .incbin "baserom.gba", 0x73508A, 0x000AF86 + +gUnk_08740010:: @ 08740010 + .incbin "baserom.gba", 0x740010, 0x0000760 + +gUnk_08740770:: @ 08740770 + .incbin "baserom.gba", 0x740770, 0x0000200 + +gUnk_08740970:: @ 08740970 + .incbin "baserom.gba", 0x740970, 0x0000326 + +gUnk_08740C96:: @ 08740C96 + .incbin "baserom.gba", 0x740C96, 0x0003695 + +gUnk_0874432B:: @ 0874432B + .incbin "baserom.gba", 0x74432B, 0x0000118 + +gUnk_08744443:: @ 08744443 + .incbin "baserom.gba", 0x744443, 0x00001C0 + +gUnk_08744603:: @ 08744603 + .incbin "baserom.gba", 0x744603, 0x00065CA + +gUnk_0874ABCD:: @ 0874ABCD + .incbin "baserom.gba", 0x74ABCD, 0x000543B + +gUnk_08750008:: @ 08750008 + .incbin "baserom.gba", 0x750008, 0x00002F8 + +gUnk_08750300:: @ 08750300 + .incbin "baserom.gba", 0x750300, 0x0000074 + +gUnk_08750374:: @ 08750374 + .incbin "baserom.gba", 0x750374, 0x000048F + +gUnk_08750803:: @ 08750803 + .incbin "baserom.gba", 0x750803, 0x0000703 + +gUnk_08750F06:: @ 08750F06 + .incbin "baserom.gba", 0x750F06, 0x000344E + +gUnk_08754354:: @ 08754354 + .incbin "baserom.gba", 0x754354, 0x0000756 + +gUnk_08754AAA:: @ 08754AAA + .incbin "baserom.gba", 0x754AAA, 0x000C45C + +gUnk_08760F06:: @ 08760F06 + .incbin "baserom.gba", 0x760F06, 0x000120B + +gUnk_08762111:: @ 08762111 + .incbin "baserom.gba", 0x762111, 0x00015FB + +gUnk_0876370C:: @ 0876370C + .incbin "baserom.gba", 0x76370C, 0x00009C4 + +gUnk_087640D0:: @ 087640D0 + .incbin "baserom.gba", 0x7640D0, 0x0000496 + +gUnk_08764566:: @ 08764566 + .incbin "baserom.gba", 0x764566, 0x0000CC5 + +gUnk_0876522B:: @ 0876522B + .incbin "baserom.gba", 0x76522B, 0x000032B + +gUnk_08765556:: @ 08765556 + .incbin "baserom.gba", 0x765556, 0x0001110 + +gUnk_08766666:: @ 08766666 + .incbin "baserom.gba", 0x766666, 0x0000020 + +gUnk_08766686:: @ 08766686 + .incbin "baserom.gba", 0x766686, 0x0000021 + +gUnk_087666A7:: @ 087666A7 + .incbin "baserom.gba", 0x7666A7, 0x00008FA + +gUnk_08766FA1:: @ 08766FA1 + .incbin "baserom.gba", 0x766FA1, 0x0005D23 + +gUnk_0876CCC4:: @ 0876CCC4 + .incbin "baserom.gba", 0x76CCC4, 0x000110B + +gUnk_0876DDCF:: @ 0876DDCF + .incbin "baserom.gba", 0x76DDCF, 0x0002242 + +gUnk_08770011:: @ 08770011 + .incbin "baserom.gba", 0x770011, 0x00000A8 + +gUnk_087700B9:: @ 087700B9 + .incbin "baserom.gba", 0x7700B9, 0x0000287 + +gUnk_08770340:: @ 08770340 + .incbin "baserom.gba", 0x770340, 0x00000E2 + +gUnk_08770422:: @ 08770422 + .incbin "baserom.gba", 0x770422, 0x0000154 + +gUnk_08770576:: @ 08770576 + .incbin "baserom.gba", 0x770576, 0x0000300 + +gUnk_08770876:: @ 08770876 + .incbin "baserom.gba", 0x770876, 0x0000791 + +gUnk_08771007:: @ 08771007 + .incbin "baserom.gba", 0x771007, 0x000006E + +gUnk_08771075:: @ 08771075 + .incbin "baserom.gba", 0x771075, 0x0000B8B + +gUnk_08771C00:: @ 08771C00 + .incbin "baserom.gba", 0x771C00, 0x0005775 + +gUnk_08777375:: @ 08777375 + .incbin "baserom.gba", 0x777375, 0x00003F0 + +gUnk_08777765:: @ 08777765 + .incbin "baserom.gba", 0x777765, 0x0000011 + +gUnk_08777776:: @ 08777776 + .incbin "baserom.gba", 0x777776, 0x0000012 + +gUnk_08777788:: @ 08777788 + .incbin "baserom.gba", 0x777788, 0x0000877 + +gUnk_08777FFF:: @ 08777FFF + .incbin "baserom.gba", 0x777FFF, 0x0000067 + +gUnk_08778066:: @ 08778066 + .incbin "baserom.gba", 0x778066, 0x0000703 + +gUnk_08778769:: @ 08778769 + .incbin "baserom.gba", 0x778769, 0x0000E2C + +gUnk_08779595:: @ 08779595 + .incbin "baserom.gba", 0x779595, 0x000148E + +gUnk_0877AA23:: @ 0877AA23 + .incbin "baserom.gba", 0x77AA23, 0x0000017 + +gUnk_0877AA3A:: @ 0877AA3A + .incbin "baserom.gba", 0x77AA3A, 0x0000190 + +gUnk_0877ABCA:: @ 0877ABCA + .incbin "baserom.gba", 0x77ABCA, 0x0000537 + +gUnk_0877B101:: @ 0877B101 + .incbin "baserom.gba", 0x77B101, 0x000290E + +gUnk_0877DA0F:: @ 0877DA0F + .incbin "baserom.gba", 0x77DA0F, 0x0002649 + +gUnk_08780058:: @ 08780058 + .incbin "baserom.gba", 0x780058, 0x00000E8 + +gUnk_08780140:: @ 08780140 + .incbin "baserom.gba", 0x780140, 0x0000836 + +gUnk_08780976:: @ 08780976 + .incbin "baserom.gba", 0x780976, 0x000018A + +gUnk_08780B00:: @ 08780B00 + .incbin "baserom.gba", 0x780B00, 0x0006410 + +gUnk_08786F10:: @ 08786F10 + .incbin "baserom.gba", 0x786F10, 0x0000919 + +gUnk_08787829:: @ 08787829 + .incbin "baserom.gba", 0x787829, 0x000084E + +gUnk_08788077:: @ 08788077 + .incbin "baserom.gba", 0x788077, 0x00001CF + +gUnk_08788246:: @ 08788246 + .incbin "baserom.gba", 0x788246, 0x0001375 + +gUnk_087895BB:: @ 087895BB + .incbin "baserom.gba", 0x7895BB, 0x0000933 + +gUnk_08789EEE:: @ 08789EEE + .incbin "baserom.gba", 0x789EEE, 0x000610A + +gUnk_0878FFF8:: @ 0878FFF8 + .incbin "baserom.gba", 0x78FFF8, 0x0000008 + +gUnk_08790000:: @ 08790000 + .incbin "baserom.gba", 0x790000, 0x0000001 + +gUnk_08790001:: @ 08790001 + .incbin "baserom.gba", 0x790001, 0x0000001 + +gUnk_08790002:: @ 08790002 + .incbin "baserom.gba", 0x790002, 0x0000001 + +gUnk_08790003:: @ 08790003 + .incbin "baserom.gba", 0x790003, 0x0000001 + +gUnk_08790004:: @ 08790004 + .incbin "baserom.gba", 0x790004, 0x0000002 + +gUnk_08790006:: @ 08790006 + .incbin "baserom.gba", 0x790006, 0x0000001 + +gUnk_08790007:: @ 08790007 + .incbin "baserom.gba", 0x790007, 0x0000001 + +gUnk_08790008:: @ 08790008 + .incbin "baserom.gba", 0x790008, 0x0000002 + +gUnk_0879000A:: @ 0879000A + .incbin "baserom.gba", 0x79000A, 0x0000001 + +gUnk_0879000B:: @ 0879000B + .incbin "baserom.gba", 0x79000B, 0x0000004 + +gUnk_0879000F:: @ 0879000F + .incbin "baserom.gba", 0x79000F, 0x0000001 + +gUnk_08790010:: @ 08790010 + .incbin "baserom.gba", 0x790010, 0x0000003 + +gUnk_08790013:: @ 08790013 + .incbin "baserom.gba", 0x790013, 0x0000007 + +gUnk_0879001A:: @ 0879001A + .incbin "baserom.gba", 0x79001A, 0x0000004 + +gUnk_0879001E:: @ 0879001E + .incbin "baserom.gba", 0x79001E, 0x0000002 + +gUnk_08790020:: @ 08790020 + .incbin "baserom.gba", 0x790020, 0x000000C + +gUnk_0879002C:: @ 0879002C + .incbin "baserom.gba", 0x79002C, 0x0000010 + +gUnk_0879003C:: @ 0879003C + .incbin "baserom.gba", 0x79003C, 0x0000004 + +gUnk_08790040:: @ 08790040 + .incbin "baserom.gba", 0x790040, 0x0000008 + +gUnk_08790048:: @ 08790048 + .incbin "baserom.gba", 0x790048, 0x000000C + +gUnk_08790054:: @ 08790054 + .incbin "baserom.gba", 0x790054, 0x0000004 + +gUnk_08790058:: @ 08790058 + .incbin "baserom.gba", 0x790058, 0x0000002 + +gUnk_0879005A:: @ 0879005A + .incbin "baserom.gba", 0x79005A, 0x000000E + +gUnk_08790068:: @ 08790068 + .incbin "baserom.gba", 0x790068, 0x0000004 + +gUnk_0879006C:: @ 0879006C + .incbin "baserom.gba", 0x79006C, 0x000000C + +gUnk_08790078:: @ 08790078 + .incbin "baserom.gba", 0x790078, 0x0000008 + +gUnk_08790080:: @ 08790080 + .incbin "baserom.gba", 0x790080, 0x0000002 + +gUnk_08790082:: @ 08790082 + .incbin "baserom.gba", 0x790082, 0x000000A + +gUnk_0879008C:: @ 0879008C + .incbin "baserom.gba", 0x79008C, 0x0000009 + +gUnk_08790095:: @ 08790095 + .incbin "baserom.gba", 0x790095, 0x0000001 + +gUnk_08790096:: @ 08790096 + .incbin "baserom.gba", 0x790096, 0x0000022 + +gUnk_087900B8:: @ 087900B8 + .incbin "baserom.gba", 0x7900B8, 0x0000018 + +gUnk_087900D0:: @ 087900D0 + .incbin "baserom.gba", 0x7900D0, 0x0000019 + +gUnk_087900E9:: @ 087900E9 + .incbin "baserom.gba", 0x7900E9, 0x0000007 + +gUnk_087900F0:: @ 087900F0 + .incbin "baserom.gba", 0x7900F0, 0x0000001 + +gUnk_087900F1:: @ 087900F1 + .incbin "baserom.gba", 0x7900F1, 0x000000F + +gUnk_08790100:: @ 08790100 + .incbin "baserom.gba", 0x790100, 0x0000007 + +gUnk_08790107:: @ 08790107 + .incbin "baserom.gba", 0x790107, 0x000000A + +gUnk_08790111:: @ 08790111 + .incbin "baserom.gba", 0x790111, 0x000002F + +gUnk_08790140:: @ 08790140 + .incbin "baserom.gba", 0x790140, 0x0000040 + +gUnk_08790180:: @ 08790180 + .incbin "baserom.gba", 0x790180, 0x0000008 + +gUnk_08790188:: @ 08790188 + .incbin "baserom.gba", 0x790188, 0x0000008 + +gUnk_08790190:: @ 08790190 + .incbin "baserom.gba", 0x790190, 0x0000039 + +gUnk_087901C9:: @ 087901C9 + .incbin "baserom.gba", 0x7901C9, 0x000002A + +gUnk_087901F3:: @ 087901F3 + .incbin "baserom.gba", 0x7901F3, 0x000000D + +gUnk_08790200:: @ 08790200 + .incbin "baserom.gba", 0x790200, 0x0000201 + +gUnk_08790401:: @ 08790401 + .incbin "baserom.gba", 0x790401, 0x0000001 + +gUnk_08790402:: @ 08790402 + .incbin "baserom.gba", 0x790402, 0x0000041 + +gUnk_08790443:: @ 08790443 + .incbin "baserom.gba", 0x790443, 0x0000001 + +gUnk_08790444:: @ 08790444 + .incbin "baserom.gba", 0x790444, 0x0000006 + +gUnk_0879044A:: @ 0879044A + .incbin "baserom.gba", 0x79044A, 0x0000009 + +gUnk_08790453:: @ 08790453 + .incbin "baserom.gba", 0x790453, 0x0000006 + +gUnk_08790459:: @ 08790459 + .incbin "baserom.gba", 0x790459, 0x000000A + +gUnk_08790463:: @ 08790463 + .incbin "baserom.gba", 0x790463, 0x0000001 + +gUnk_08790464:: @ 08790464 + .incbin "baserom.gba", 0x790464, 0x0000024 + +gUnk_08790488:: @ 08790488 + .incbin "baserom.gba", 0x790488, 0x0000378 + +gUnk_08790800:: @ 08790800 + .incbin "baserom.gba", 0x790800, 0x0000001 + +gUnk_08790801:: @ 08790801 + .incbin "baserom.gba", 0x790801, 0x0000004 + +gUnk_08790805:: @ 08790805 + .incbin "baserom.gba", 0x790805, 0x0000001 + +gUnk_08790806:: @ 08790806 + .incbin "baserom.gba", 0x790806, 0x0000001 + +gUnk_08790807:: @ 08790807 + .incbin "baserom.gba", 0x790807, 0x0000003 + +gUnk_0879080A:: @ 0879080A + .incbin "baserom.gba", 0x79080A, 0x0000003 + +gUnk_0879080D:: @ 0879080D + .incbin "baserom.gba", 0x79080D, 0x0000002 + +gUnk_0879080F:: @ 0879080F + .incbin "baserom.gba", 0x79080F, 0x0000ABA + +gUnk_087912C9:: @ 087912C9 + .incbin "baserom.gba", 0x7912C9, 0x0000957 + +gUnk_08791C20:: @ 08791C20 + .incbin "baserom.gba", 0x791C20, 0x00023E0 + +gUnk_08794000:: @ 08794000 + .incbin "baserom.gba", 0x794000, 0x0000107 + +gUnk_08794107:: @ 08794107 + .incbin "baserom.gba", 0x794107, 0x0000FF9 + +gUnk_08795100:: @ 08795100 + .incbin "baserom.gba", 0x795100, 0x0001000 + +gUnk_08796100:: @ 08796100 + .incbin "baserom.gba", 0x796100, 0x0001879 + +gUnk_08797979:: @ 08797979 + .incbin "baserom.gba", 0x797979, 0x0000687 + +gUnk_08798000:: @ 08798000 + .incbin "baserom.gba", 0x798000, 0x0001992 + +gUnk_08799992:: @ 08799992 + .incbin "baserom.gba", 0x799992, 0x000008E + +gUnk_08799A20:: @ 08799A20 + .incbin "baserom.gba", 0x799A20, 0x00064DE + +gUnk_0879FEFE:: @ 0879FEFE + .incbin "baserom.gba", 0x79FEFE, 0x00000BA + +gUnk_0879FFB8:: @ 0879FFB8 + .incbin "baserom.gba", 0x79FFB8, 0x0000004 + +gUnk_0879FFBC:: @ 0879FFBC + .incbin "baserom.gba", 0x79FFBC, 0x0000010 + +gUnk_0879FFCC:: @ 0879FFCC + .incbin "baserom.gba", 0x79FFCC, 0x0000004 + +gUnk_0879FFD0:: @ 0879FFD0 + .incbin "baserom.gba", 0x79FFD0, 0x0000010 + +gUnk_0879FFE0:: @ 0879FFE0 + .incbin "baserom.gba", 0x79FFE0, 0x0000006 + +gUnk_0879FFE6:: @ 0879FFE6 + .incbin "baserom.gba", 0x79FFE6, 0x0000002 + +gUnk_0879FFE8:: @ 0879FFE8 + .incbin "baserom.gba", 0x79FFE8, 0x0000008 + +gUnk_0879FFF0:: @ 0879FFF0 + .incbin "baserom.gba", 0x79FFF0, 0x0000008 + +gUnk_0879FFF8:: @ 0879FFF8 + .incbin "baserom.gba", 0x79FFF8, 0x0000002 + +gUnk_0879FFFA:: @ 0879FFFA + .incbin "baserom.gba", 0x79FFFA, 0x0000005 + +gUnk_0879FFFF:: @ 0879FFFF + .incbin "baserom.gba", 0x79FFFF, 0x000007A + +gUnk_087A0079:: @ 087A0079 + .incbin "baserom.gba", 0x7A0079, 0x0001650 + +gUnk_087A16C9:: @ 087A16C9 + .incbin "baserom.gba", 0x7A16C9, 0x000A940 + +gUnk_087AC009:: @ 087AC009 + .incbin "baserom.gba", 0x7AC009, 0x0000DD4 + +gUnk_087ACDDD:: @ 087ACDDD + .incbin "baserom.gba", 0x7ACDDD, 0x0003223 + +gUnk_087B0000:: @ 087B0000 + .incbin "baserom.gba", 0x7B0000, 0x0000002 + +gUnk_087B0002:: @ 087B0002 + .incbin "baserom.gba", 0x7B0002, 0x0000002 + +gUnk_087B0004:: @ 087B0004 + .incbin "baserom.gba", 0x7B0004, 0x0000001 + +gUnk_087B0005:: @ 087B0005 + .incbin "baserom.gba", 0x7B0005, 0x0000002 + +gUnk_087B0007:: @ 087B0007 + .incbin "baserom.gba", 0x7B0007, 0x0000001 + +gUnk_087B0008:: @ 087B0008 + .incbin "baserom.gba", 0x7B0008, 0x0000001 + +gUnk_087B0009:: @ 087B0009 + .incbin "baserom.gba", 0x7B0009, 0x0000006 + +gUnk_087B000F:: @ 087B000F + .incbin "baserom.gba", 0x7B000F, 0x0000001 + +gUnk_087B0010:: @ 087B0010 + .incbin "baserom.gba", 0x7B0010, 0x0000002 + +gUnk_087B0012:: @ 087B0012 + .incbin "baserom.gba", 0x7B0012, 0x0000002 + +gUnk_087B0014:: @ 087B0014 + .incbin "baserom.gba", 0x7B0014, 0x0000002 + +gUnk_087B0016:: @ 087B0016 + .incbin "baserom.gba", 0x7B0016, 0x0000008 + +gUnk_087B001E:: @ 087B001E + .incbin "baserom.gba", 0x7B001E, 0x000000A + +gUnk_087B0028:: @ 087B0028 + .incbin "baserom.gba", 0x7B0028, 0x0000008 + +gUnk_087B0030:: @ 087B0030 + .incbin "baserom.gba", 0x7B0030, 0x000000C + +gUnk_087B003C:: @ 087B003C + .incbin "baserom.gba", 0x7B003C, 0x0000038 + +gUnk_087B0074:: @ 087B0074 + .incbin "baserom.gba", 0x7B0074, 0x0000004 + +gUnk_087B0078:: @ 087B0078 + .incbin "baserom.gba", 0x7B0078, 0x000001E + +gUnk_087B0096:: @ 087B0096 + .incbin "baserom.gba", 0x7B0096, 0x0000022 + +gUnk_087B00B8:: @ 087B00B8 + .incbin "baserom.gba", 0x7B00B8, 0x0000040 + +gUnk_087B00F8:: @ 087B00F8 + .incbin "baserom.gba", 0x7B00F8, 0x0000019 + +gUnk_087B0111:: @ 087B0111 + .incbin "baserom.gba", 0x7B0111, 0x000002B + +gUnk_087B013C:: @ 087B013C + .incbin "baserom.gba", 0x7B013C, 0x0000004 + +gUnk_087B0140:: @ 087B0140 + .incbin "baserom.gba", 0x7B0140, 0x0000087 + +gUnk_087B01C7:: @ 087B01C7 + .incbin "baserom.gba", 0x7B01C7, 0x00000B3 + +gUnk_087B027A:: @ 087B027A + .incbin "baserom.gba", 0x7B027A, 0x0000187 + +gUnk_087B0401:: @ 087B0401 + .incbin "baserom.gba", 0x7B0401, 0x0000001 + +gUnk_087B0402:: @ 087B0402 + .incbin "baserom.gba", 0x7B0402, 0x0000035 + +gUnk_087B0437:: @ 087B0437 + .incbin "baserom.gba", 0x7B0437, 0x0000008 + +gUnk_087B043F:: @ 087B043F + .incbin "baserom.gba", 0x7B043F, 0x000003F + +gUnk_087B047E:: @ 087B047E + .incbin "baserom.gba", 0x7B047E, 0x0000170 + +gUnk_087B05EE:: @ 087B05EE + .incbin "baserom.gba", 0x7B05EE, 0x0000212 + +gUnk_087B0800:: @ 087B0800 + .incbin "baserom.gba", 0x7B0800, 0x0000001 + +gUnk_087B0801:: @ 087B0801 + .incbin "baserom.gba", 0x7B0801, 0x0000003 + +gUnk_087B0804:: @ 087B0804 + .incbin "baserom.gba", 0x7B0804, 0x0000002 + +gUnk_087B0806:: @ 087B0806 + .incbin "baserom.gba", 0x7B0806, 0x0000001 + +gUnk_087B0807:: @ 087B0807 + .incbin "baserom.gba", 0x7B0807, 0x0000002 + +gUnk_087B0809:: @ 087B0809 + .incbin "baserom.gba", 0x7B0809, 0x000002A + +gUnk_087B0833:: @ 087B0833 + .incbin "baserom.gba", 0x7B0833, 0x0000047 + +gUnk_087B087A:: @ 087B087A + .incbin "baserom.gba", 0x7B087A, 0x0000ABE + +gUnk_087B1338:: @ 087B1338 + .incbin "baserom.gba", 0x7B1338, 0x0004EC5 + +gUnk_087B61FD:: @ 087B61FD + .incbin "baserom.gba", 0x7B61FD, 0x0006BE1 + +gUnk_087BCDDE:: @ 087BCDDE + .incbin "baserom.gba", 0x7BCDDE, 0x00020FF + +gUnk_087BEEDD:: @ 087BEEDD + .incbin "baserom.gba", 0x7BEEDD, 0x0001123 + +gUnk_087C0000:: @ 087C0000 + .incbin "baserom.gba", 0x7C0000, 0x0000004 + +gUnk_087C0004:: @ 087C0004 + .incbin "baserom.gba", 0x7C0004, 0x0000038 + +gUnk_087C003C:: @ 087C003C + .incbin "baserom.gba", 0x7C003C, 0x0000104 + +gUnk_087C0140:: @ 087C0140 + .incbin "baserom.gba", 0x7C0140, 0x00002C1 + +gUnk_087C0401:: @ 087C0401 + .incbin "baserom.gba", 0x7C0401, 0x0000036 + +gUnk_087C0437:: @ 087C0437 + .incbin "baserom.gba", 0x7C0437, 0x000000D + +gUnk_087C0444:: @ 087C0444 + .incbin "baserom.gba", 0x7C0444, 0x0000005 + +gUnk_087C0449:: @ 087C0449 + .incbin "baserom.gba", 0x7C0449, 0x0000010 + +gUnk_087C0459:: @ 087C0459 + .incbin "baserom.gba", 0x7C0459, 0x0000025 + +gUnk_087C047E:: @ 087C047E + .incbin "baserom.gba", 0x7C047E, 0x0000292 + +gUnk_087C0710:: @ 087C0710 + .incbin "baserom.gba", 0x7C0710, 0x0000024 + +gUnk_087C0734:: @ 087C0734 + .incbin "baserom.gba", 0x7C0734, 0x00000D1 + +gUnk_087C0805:: @ 087C0805 + .incbin "baserom.gba", 0x7C0805, 0x0000076 + +gUnk_087C087B:: @ 087C087B + .incbin "baserom.gba", 0x7C087B, 0x000F74F + +gUnk_087CFFCA:: @ 087CFFCA + .incbin "baserom.gba", 0x7CFFCA, 0x0000030 + +gUnk_087CFFFA:: @ 087CFFFA + .incbin "baserom.gba", 0x7CFFFA, 0x0006683 + +gUnk_087D667D:: @ 087D667D + .incbin "baserom.gba", 0x7D667D, 0x0002614 + +gUnk_087D8C91:: @ 087D8C91 + .incbin "baserom.gba", 0x7D8C91, 0x000739D + +gUnk_087E002E:: @ 087E002E + .incbin "baserom.gba", 0x7E002E, 0x00006D2 + +gUnk_087E0700:: @ 087E0700 + .incbin "baserom.gba", 0x7E0700, 0x0000598 + +gUnk_087E0C98:: @ 087E0C98 + .incbin "baserom.gba", 0x7E0C98, 0x000095B + +gUnk_087E15F3:: @ 087E15F3 + .incbin "baserom.gba", 0x7E15F3, 0x000A6BF + +gUnk_087EBCB2:: @ 087EBCB2 + .incbin "baserom.gba", 0x7EBCB2, 0x000323C + +gUnk_087EEEEE:: @ 087EEEEE + .incbin "baserom.gba", 0x7EEEEE, 0x000112A + +gUnk_087F0018:: @ 087F0018 + .incbin "baserom.gba", 0x7F0018, 0x0000064 + +gUnk_087F007C:: @ 087F007C + .incbin "baserom.gba", 0x7F007C, 0x0000260 + +gUnk_087F02DC:: @ 087F02DC + .incbin "baserom.gba", 0x7F02DC, 0x0000824 + +gUnk_087F0B00:: @ 087F0B00 + .incbin "baserom.gba", 0x7F0B00, 0x0000422 + +gUnk_087F0F22:: @ 087F0F22 + .incbin "baserom.gba", 0x7F0F22, 0x0000067 + +gUnk_087F0F89:: @ 087F0F89 + .incbin "baserom.gba", 0x7F0F89, 0x00000F6 + +gUnk_087F107F:: @ 087F107F + .incbin "baserom.gba", 0x7F107F, 0x0000020 + +gUnk_087F109F:: @ 087F109F + .incbin "baserom.gba", 0x7F109F, 0x0000003 + +gUnk_087F10A2:: @ 087F10A2 + .incbin "baserom.gba", 0x7F10A2, 0x000053F + +gUnk_087F15E1:: @ 087F15E1 + .incbin "baserom.gba", 0x7F15E1, 0x0001F74 + +gUnk_087F3555:: @ 087F3555 + .incbin "baserom.gba", 0x7F3555, 0x0002B9E + +gUnk_087F60F3:: @ 087F60F3 + .incbin "baserom.gba", 0x7F60F3, 0x0002643 + +gUnk_087F8736:: @ 087F8736 + .incbin "baserom.gba", 0x7F8736, 0x0003695 + +gUnk_087FBDCB:: @ 087FBDCB + .incbin "baserom.gba", 0x7FBDCB, 0x0000001 + +gUnk_087FBDCC:: @ 087FBDCC + .incbin "baserom.gba", 0x7FBDCC, 0x000023A + +gUnk_087FC006:: @ 087FC006 + .incbin "baserom.gba", 0x7FC006, 0x000310B + +gUnk_087FF111:: @ 087FF111 + .incbin "baserom.gba", 0x7FF111, 0x000011B + +gUnk_087FF22C:: @ 087FF22C + .incbin "baserom.gba", 0x7FF22C, 0x000066B + +gUnk_087FF897:: @ 087FF897 + .incbin "baserom.gba", 0x7FF897, 0x0000769 + +gUnk_08800000:: @ 08800000 + .incbin "baserom.gba", 0x800000, 0x0000002 + +gUnk_08800002:: @ 08800002 + .incbin "baserom.gba", 0x800002, 0x0000002 + +gUnk_08800004:: @ 08800004 + .incbin "baserom.gba", 0x800004, 0x0000002 + +gUnk_08800006:: @ 08800006 + .incbin "baserom.gba", 0x800006, 0x0000001 + +gUnk_08800007:: @ 08800007 + .incbin "baserom.gba", 0x800007, 0x0000001 + +gUnk_08800008:: @ 08800008 + .incbin "baserom.gba", 0x800008, 0x0000001 + +gUnk_08800009:: @ 08800009 + .incbin "baserom.gba", 0x800009, 0x0000001 + +gUnk_0880000A:: @ 0880000A + .incbin "baserom.gba", 0x80000A, 0x0000039 + +gUnk_08800043:: @ 08800043 + .incbin "baserom.gba", 0x800043, 0x000007D + +gUnk_088000C0:: @ 088000C0 + .incbin "baserom.gba", 0x8000C0, 0x0000047 + +gUnk_08800107:: @ 08800107 + .incbin "baserom.gba", 0x800107, 0x0000009 + +gUnk_08800110:: @ 08800110 + .incbin "baserom.gba", 0x800110, 0x0000324 + +gUnk_08800434:: @ 08800434 + .incbin "baserom.gba", 0x800434, 0x000000F + +gUnk_08800443:: @ 08800443 + .incbin "baserom.gba", 0x800443, 0x00001FD + +gUnk_08800640:: @ 08800640 + .incbin "baserom.gba", 0x800640, 0x00002B0 + +gUnk_088008F0:: @ 088008F0 + .incbin "baserom.gba", 0x8008F0, 0x00000F6 + +gUnk_088009E6:: @ 088009E6 + .incbin "baserom.gba", 0x8009E6, 0x0000242 + +gUnk_08800C28:: @ 08800C28 + .incbin "baserom.gba", 0x800C28, 0x0000FD8 + +gUnk_08801C00:: @ 08801C00 + .incbin "baserom.gba", 0x801C00, 0x0000B80 + +gUnk_08802780:: @ 08802780 + .incbin "baserom.gba", 0x802780, 0x0000EE3 + +gUnk_08803663:: @ 08803663 + .incbin "baserom.gba", 0x803663, 0x00009A1 + +gUnk_08804004:: @ 08804004 + .incbin "baserom.gba", 0x804004, 0x0000114 + +gUnk_08804118:: @ 08804118 + .incbin "baserom.gba", 0x804118, 0x000001A + +gUnk_08804132:: @ 08804132 + .incbin "baserom.gba", 0x804132, 0x0002501 + +gUnk_08806633:: @ 08806633 + .incbin "baserom.gba", 0x806633, 0x000101B + +gUnk_0880764E:: @ 0880764E + .incbin "baserom.gba", 0x80764E, 0x00004B9 + +gUnk_08807B07:: @ 08807B07 + .incbin "baserom.gba", 0x807B07, 0x0000C7A + +gUnk_08808781:: @ 08808781 + .incbin "baserom.gba", 0x808781, 0x000007F + +gUnk_08808800:: @ 08808800 + .incbin "baserom.gba", 0x808800, 0x0002C08 + +gUnk_0880B408:: @ 0880B408 + .incbin "baserom.gba", 0x80B408, 0x0000BFA + +gUnk_0880C002:: @ 0880C002 + .incbin "baserom.gba", 0x80C002, 0x00013EF + +gUnk_0880D3F1:: @ 0880D3F1 + .incbin "baserom.gba", 0x80D3F1, 0x0000986 + +gUnk_0880DD77:: @ 0880DD77 + .incbin "baserom.gba", 0x80DD77, 0x0000B90 + +gUnk_0880E907:: @ 0880E907 + .incbin "baserom.gba", 0x80E907, 0x00000F3 + +gUnk_0880E9FA:: @ 0880E9FA + .incbin "baserom.gba", 0x80E9FA, 0x000000E + +gUnk_0880EA08:: @ 0880EA08 + .incbin "baserom.gba", 0x80EA08, 0x00000F8 + +gUnk_0880EB00:: @ 0880EB00 + .incbin "baserom.gba", 0x80EB00, 0x0000008 + +gUnk_0880EB08:: @ 0880EB08 + .incbin "baserom.gba", 0x80EB08, 0x0000001 + +gUnk_0880EB09:: @ 0880EB09 + .incbin "baserom.gba", 0x80EB09, 0x0000001 + +gUnk_0880EB0A:: @ 0880EB0A + .incbin "baserom.gba", 0x80EB0A, 0x00000E1 + +gUnk_0880EBEB:: @ 0880EBEB + .incbin "baserom.gba", 0x80EBEB, 0x0000005 + +gUnk_0880EBF0:: @ 0880EBF0 + .incbin "baserom.gba", 0x80EBF0, 0x0000018 + +gUnk_0880EC08:: @ 0880EC08 + .incbin "baserom.gba", 0x80EC08, 0x0000003 + +gUnk_0880EC0B:: @ 0880EC0B + .incbin "baserom.gba", 0x80EC0B, 0x00000E5 + +gUnk_0880ECF0:: @ 0880ECF0 + .incbin "baserom.gba", 0x80ECF0, 0x000021A + +gUnk_0880EF0A:: @ 0880EF0A + .incbin "baserom.gba", 0x80EF0A, 0x00000E7 + +gUnk_0880EFF1:: @ 0880EFF1 + .incbin "baserom.gba", 0x80EFF1, 0x000000B + +gUnk_0880EFFC:: @ 0880EFFC + .incbin "baserom.gba", 0x80EFFC, 0x0000110 + +gUnk_0880F10C:: @ 0880F10C + .incbin "baserom.gba", 0x80F10C, 0x00001F8 + +gUnk_0880F304:: @ 0880F304 + .incbin "baserom.gba", 0x80F304, 0x00001F8 + +gUnk_0880F4FC:: @ 0880F4FC + .incbin "baserom.gba", 0x80F4FC, 0x000000B + +gUnk_0880F507:: @ 0880F507 + .incbin "baserom.gba", 0x80F507, 0x00003F1 + +gUnk_0880F8F8:: @ 0880F8F8 + .incbin "baserom.gba", 0x80F8F8, 0x0000304 + +gUnk_0880FBFC:: @ 0880FBFC + .incbin "baserom.gba", 0x80FBFC, 0x0000584 + +gUnk_08810180:: @ 08810180 + .incbin "baserom.gba", 0x810180, 0x0000601 + +gUnk_08810781:: @ 08810781 + .incbin "baserom.gba", 0x810781, 0x000017E + +gUnk_088108FF:: @ 088108FF + .incbin "baserom.gba", 0x8108FF, 0x0000E82 + +gUnk_08811781:: @ 08811781 + .incbin "baserom.gba", 0x811781, 0x000099F + +gUnk_08812120:: @ 08812120 + .incbin "baserom.gba", 0x812120, 0x0000C61 + +gUnk_08812D81:: @ 08812D81 + .incbin "baserom.gba", 0x812D81, 0x0001000 + +gUnk_08813D81:: @ 08813D81 + .incbin "baserom.gba", 0x813D81, 0x000027F + +gUnk_08814000:: @ 08814000 + .incbin "baserom.gba", 0x814000, 0x0000105 + +gUnk_08814105:: @ 08814105 + .incbin "baserom.gba", 0x814105, 0x000033F + +gUnk_08814444:: @ 08814444 + .incbin "baserom.gba", 0x814444, 0x00027BB + +gUnk_08816BFF:: @ 08816BFF + .incbin "baserom.gba", 0x816BFF, 0x0001569 + +gUnk_08818168:: @ 08818168 + .incbin "baserom.gba", 0x818168, 0x00006CC + +gUnk_08818834:: @ 08818834 + .incbin "baserom.gba", 0x818834, 0x00053A0 + +gUnk_0881DBD4:: @ 0881DBD4 + .incbin "baserom.gba", 0x81DBD4, 0x000092C + +gUnk_0881E500:: @ 0881E500 + .incbin "baserom.gba", 0x81E500, 0x0000481 + +gUnk_0881E981:: @ 0881E981 + .incbin "baserom.gba", 0x81E981, 0x0000373 + +gUnk_0881ECF4:: @ 0881ECF4 + .incbin "baserom.gba", 0x81ECF4, 0x000008C + +gUnk_0881ED80:: @ 0881ED80 + .incbin "baserom.gba", 0x81ED80, 0x0000D75 + +gUnk_0881FAF5:: @ 0881FAF5 + .incbin "baserom.gba", 0x81FAF5, 0x0000402 + +gUnk_0881FEF7:: @ 0881FEF7 + .incbin "baserom.gba", 0x81FEF7, 0x0000109 + +gUnk_08820000:: @ 08820000 + .incbin "baserom.gba", 0x820000, 0x0000008 + +gUnk_08820008:: @ 08820008 + .incbin "baserom.gba", 0x820008, 0x0000016 + +gUnk_0882001E:: @ 0882001E + .incbin "baserom.gba", 0x82001E, 0x0000081 + +gUnk_0882009F:: @ 0882009F + .incbin "baserom.gba", 0x82009F, 0x0000001 + +gUnk_088200A0:: @ 088200A0 + .incbin "baserom.gba", 0x8200A0, 0x0000013 + +gUnk_088200B3:: @ 088200B3 + .incbin "baserom.gba", 0x8200B3, 0x000025D + +gUnk_08820310:: @ 08820310 + .incbin "baserom.gba", 0x820310, 0x0000149 + +gUnk_08820459:: @ 08820459 + .incbin "baserom.gba", 0x820459, 0x00002AC + +gUnk_08820705:: @ 08820705 + .incbin "baserom.gba", 0x820705, 0x0000100 + +gUnk_08820805:: @ 08820805 + .incbin "baserom.gba", 0x820805, 0x0000001 + +gUnk_08820806:: @ 08820806 + .incbin "baserom.gba", 0x820806, 0x000054C + +gUnk_08820D52:: @ 08820D52 + .incbin "baserom.gba", 0x820D52, 0x00012AE + +gUnk_08822000:: @ 08822000 + .incbin "baserom.gba", 0x822000, 0x0000782 + +gUnk_08822782:: @ 08822782 + .incbin "baserom.gba", 0x822782, 0x0000400 + +gUnk_08822B82:: @ 08822B82 + .incbin "baserom.gba", 0x822B82, 0x00001A9 + +gUnk_08822D2B:: @ 08822D2B + .incbin "baserom.gba", 0x822D2B, 0x0000556 + +gUnk_08823281:: @ 08823281 + .incbin "baserom.gba", 0x823281, 0x0000D85 + +gUnk_08824006:: @ 08824006 + .incbin "baserom.gba", 0x824006, 0x0000550 + +gUnk_08824556:: @ 08824556 + .incbin "baserom.gba", 0x824556, 0x0000ACD + +gUnk_08825023:: @ 08825023 + .incbin "baserom.gba", 0x825023, 0x0000C52 + +gUnk_08825C75:: @ 08825C75 + .incbin "baserom.gba", 0x825C75, 0x000250C + +gUnk_08828181:: @ 08828181 + .incbin "baserom.gba", 0x828181, 0x00071B2 + +gUnk_0882F333:: @ 0882F333 + .incbin "baserom.gba", 0x82F333, 0x0000C8F + +gUnk_0882FFC2:: @ 0882FFC2 + .incbin "baserom.gba", 0x82FFC2, 0x000003E + +gUnk_08830000:: @ 08830000 + .incbin "baserom.gba", 0x830000, 0x0000004 + +gUnk_08830004:: @ 08830004 + .incbin "baserom.gba", 0x830004, 0x0000003 + +gUnk_08830007:: @ 08830007 + .incbin "baserom.gba", 0x830007, 0x0000001 + +gUnk_08830008:: @ 08830008 + .incbin "baserom.gba", 0x830008, 0x0000008 + +gUnk_08830010:: @ 08830010 + .incbin "baserom.gba", 0x830010, 0x0000432 + +gUnk_08830442:: @ 08830442 + .incbin "baserom.gba", 0x830442, 0x0002B41 + +gUnk_08832F83:: @ 08832F83 + .incbin "baserom.gba", 0x832F83, 0x0001574 + +gUnk_088344F7:: @ 088344F7 + .incbin "baserom.gba", 0x8344F7, 0x000006F + +gUnk_08834566:: @ 08834566 + .incbin "baserom.gba", 0x834566, 0x0006DAC + +gUnk_0883B312:: @ 0883B312 + .incbin "baserom.gba", 0x83B312, 0x00047EE + +gUnk_0883FB00:: @ 0883FB00 + .incbin "baserom.gba", 0x83FB00, 0x0000509 + +gUnk_08840009:: @ 08840009 + .incbin "baserom.gba", 0x840009, 0x0000011 + +gUnk_0884001A:: @ 0884001A + .incbin "baserom.gba", 0x84001A, 0x0000066 + +gUnk_08840080:: @ 08840080 + .incbin "baserom.gba", 0x840080, 0x00001E9 + +gUnk_08840269:: @ 08840269 + .incbin "baserom.gba", 0x840269, 0x0000128 + +gUnk_08840391:: @ 08840391 + .incbin "baserom.gba", 0x840391, 0x00000B2 + +gUnk_08840443:: @ 08840443 + .incbin "baserom.gba", 0x840443, 0x000021D + +gUnk_08840660:: @ 08840660 + .incbin "baserom.gba", 0x840660, 0x0000203 + +gUnk_08840863:: @ 08840863 + .incbin "baserom.gba", 0x840863, 0x0000129 + +gUnk_0884098C:: @ 0884098C + .incbin "baserom.gba", 0x84098C, 0x0000154 + +gUnk_08840AE0:: @ 08840AE0 + .incbin "baserom.gba", 0x840AE0, 0x00004C0 + +gUnk_08840FA0:: @ 08840FA0 + .incbin "baserom.gba", 0x840FA0, 0x0000500 + +gUnk_088414A0:: @ 088414A0 + .incbin "baserom.gba", 0x8414A0, 0x0000380 + +gUnk_08841820:: @ 08841820 + .incbin "baserom.gba", 0x841820, 0x00002C0 + +gUnk_08841AE0:: @ 08841AE0 + .incbin "baserom.gba", 0x841AE0, 0x00004E0 + +gUnk_08841FC0:: @ 08841FC0 + .incbin "baserom.gba", 0x841FC0, 0x000026C + +gUnk_0884222C:: @ 0884222C + .incbin "baserom.gba", 0x84222C, 0x00000B4 + +gUnk_088422E0:: @ 088422E0 + .incbin "baserom.gba", 0x8422E0, 0x0000DA0 + +gUnk_08843080:: @ 08843080 + .incbin "baserom.gba", 0x843080, 0x00002B3 + +gUnk_08843333:: @ 08843333 + .incbin "baserom.gba", 0x843333, 0x00001AF + +gUnk_088434E2:: @ 088434E2 + .incbin "baserom.gba", 0x8434E2, 0x00009FE + +gUnk_08843EE0:: @ 08843EE0 + .incbin "baserom.gba", 0x843EE0, 0x0000375 + +gUnk_08844255:: @ 08844255 + .incbin "baserom.gba", 0x844255, 0x00001F0 + +gUnk_08844445:: @ 08844445 + .incbin "baserom.gba", 0x844445, 0x000097B + +gUnk_08844DC0:: @ 08844DC0 + .incbin "baserom.gba", 0x844DC0, 0x0000795 + +gUnk_08845555:: @ 08845555 + .incbin "baserom.gba", 0x845555, 0x000064B + +gUnk_08845BA0:: @ 08845BA0 + .incbin "baserom.gba", 0x845BA0, 0x0001A00 + +gUnk_088475A0:: @ 088475A0 + .incbin "baserom.gba", 0x8475A0, 0x00002E7 + +gUnk_08847887:: @ 08847887 + .incbin "baserom.gba", 0x847887, 0x00007FE + +gUnk_08848085:: @ 08848085 + .incbin "baserom.gba", 0x848085, 0x0000EDB + +gUnk_08848F60:: @ 08848F60 + .incbin "baserom.gba", 0x848F60, 0x00010C0 + +gUnk_0884A020:: @ 0884A020 + .incbin "baserom.gba", 0x84A020, 0x00003E0 + +gUnk_0884A400:: @ 0884A400 + .incbin "baserom.gba", 0x84A400, 0x00003A0 + +gUnk_0884A7A0:: @ 0884A7A0 + .incbin "baserom.gba", 0x84A7A0, 0x0000360 + +gUnk_0884AB00:: @ 0884AB00 + .incbin "baserom.gba", 0x84AB00, 0x00000CD + +gUnk_0884ABCD:: @ 0884ABCD + .incbin "baserom.gba", 0x84ABCD, 0x0000AB3 + +gUnk_0884B680:: @ 0884B680 + .incbin "baserom.gba", 0x84B680, 0x00006B2 + +gUnk_0884BD32:: @ 0884BD32 + .incbin "baserom.gba", 0x84BD32, 0x000044E + +gUnk_0884C180:: @ 0884C180 + .incbin "baserom.gba", 0x84C180, 0x0000AE0 + +gUnk_0884CC60:: @ 0884CC60 + .incbin "baserom.gba", 0x84CC60, 0x0000480 + +gUnk_0884D0E0:: @ 0884D0E0 + .incbin "baserom.gba", 0x84D0E0, 0x0000320 + +gUnk_0884D400:: @ 0884D400 + .incbin "baserom.gba", 0x84D400, 0x0000360 + +gUnk_0884D760:: @ 0884D760 + .incbin "baserom.gba", 0x84D760, 0x00003A0 + +gUnk_0884DB00:: @ 0884DB00 + .incbin "baserom.gba", 0x84DB00, 0x0000400 + +gUnk_0884DF00:: @ 0884DF00 + .incbin "baserom.gba", 0x84DF00, 0x00006F0 + +gUnk_0884E5F0:: @ 0884E5F0 + .incbin "baserom.gba", 0x84E5F0, 0x00000F0 + +gUnk_0884E6E0:: @ 0884E6E0 + .incbin "baserom.gba", 0x84E6E0, 0x0000428 + +gUnk_0884EB08:: @ 0884EB08 + .incbin "baserom.gba", 0x84EB08, 0x0000100 + +gUnk_0884EC08:: @ 0884EC08 + .incbin "baserom.gba", 0x84EC08, 0x0000400 + +gUnk_0884F008:: @ 0884F008 + .incbin "baserom.gba", 0x84F008, 0x00000EC + +gUnk_0884F0F4:: @ 0884F0F4 + .incbin "baserom.gba", 0x84F0F4, 0x0000100 + +gUnk_0884F1F4:: @ 0884F1F4 + .incbin "baserom.gba", 0x84F1F4, 0x0000E0D + +gUnk_08850001:: @ 08850001 + .incbin "baserom.gba", 0x850001, 0x0000007 + +gUnk_08850008:: @ 08850008 + .incbin "baserom.gba", 0x850008, 0x000047D + +gUnk_08850485:: @ 08850485 + .incbin "baserom.gba", 0x850485, 0x00003FF + +gUnk_08850884:: @ 08850884 + .incbin "baserom.gba", 0x850884, 0x0000101 + +gUnk_08850985:: @ 08850985 + .incbin "baserom.gba", 0x850985, 0x000075B + +gUnk_088510E0:: @ 088510E0 + .incbin "baserom.gba", 0x8510E0, 0x00001B1 + +gUnk_08851291:: @ 08851291 + .incbin "baserom.gba", 0x851291, 0x00015F4 + +gUnk_08852885:: @ 08852885 + .incbin "baserom.gba", 0x852885, 0x0000100 + +gUnk_08852985:: @ 08852985 + .incbin "baserom.gba", 0x852985, 0x0001073 + +gUnk_088539F8:: @ 088539F8 + .incbin "baserom.gba", 0x8539F8, 0x00000E8 + +gUnk_08853AE0:: @ 08853AE0 + .incbin "baserom.gba", 0x853AE0, 0x0000FCA + +gUnk_08854AAA:: @ 08854AAA + .incbin "baserom.gba", 0x854AAA, 0x0000B10 + +gUnk_088555BA:: @ 088555BA + .incbin "baserom.gba", 0x8555BA, 0x0000F26 + +gUnk_088564E0:: @ 088564E0 + .incbin "baserom.gba", 0x8564E0, 0x00003C0 + +gUnk_088568A0:: @ 088568A0 + .incbin "baserom.gba", 0x8568A0, 0x0000380 + +gUnk_08856C20:: @ 08856C20 + .incbin "baserom.gba", 0x856C20, 0x0000380 + +gUnk_08856FA0:: @ 08856FA0 + .incbin "baserom.gba", 0x856FA0, 0x0000380 + +gUnk_08857320:: @ 08857320 + .incbin "baserom.gba", 0x857320, 0x0000560 + +gUnk_08857880:: @ 08857880 + .incbin "baserom.gba", 0x857880, 0x0000480 + +gUnk_08857D00:: @ 08857D00 + .incbin "baserom.gba", 0x857D00, 0x000030A + +gUnk_0885800A:: @ 0885800A + .incbin "baserom.gba", 0x85800A, 0x0000176 + +gUnk_08858180:: @ 08858180 + .incbin "baserom.gba", 0x858180, 0x0000500 + +gUnk_08858680:: @ 08858680 + .incbin "baserom.gba", 0x858680, 0x00014C0 + +gUnk_08859B40:: @ 08859B40 + .incbin "baserom.gba", 0x859B40, 0x0000660 + +gUnk_0885A1A0:: @ 0885A1A0 + .incbin "baserom.gba", 0x85A1A0, 0x0001080 + +gUnk_0885B220:: @ 0885B220 + .incbin "baserom.gba", 0x85B220, 0x0000800 + +gUnk_0885BA20:: @ 0885BA20 + .incbin "baserom.gba", 0x85BA20, 0x0000800 + +gUnk_0885C220:: @ 0885C220 + .incbin "baserom.gba", 0x85C220, 0x0000500 + +gUnk_0885C720:: @ 0885C720 + .incbin "baserom.gba", 0x85C720, 0x0000500 + +gUnk_0885CC20:: @ 0885CC20 + .incbin "baserom.gba", 0x85CC20, 0x0001BF3 + +gUnk_0885E813:: @ 0885E813 + .incbin "baserom.gba", 0x85E813, 0x00000E5 + +gUnk_0885E8F8:: @ 0885E8F8 + .incbin "baserom.gba", 0x85E8F8, 0x00013A8 + +gUnk_0885FCA0:: @ 0885FCA0 + .incbin "baserom.gba", 0x85FCA0, 0x0000362 + +gUnk_08860002:: @ 08860002 + .incbin "baserom.gba", 0x860002, 0x00000CB + +gUnk_088600CD:: @ 088600CD + .incbin "baserom.gba", 0x8600CD, 0x0000075 + +gUnk_08860142:: @ 08860142 + .incbin "baserom.gba", 0x860142, 0x00007C1 + +gUnk_08860903:: @ 08860903 + .incbin "baserom.gba", 0x860903, 0x0000383 + +gUnk_08860C86:: @ 08860C86 + .incbin "baserom.gba", 0x860C86, 0x000028A + +gUnk_08860F10:: @ 08860F10 + .incbin "baserom.gba", 0x860F10, 0x0001770 + +gUnk_08862680:: @ 08862680 + .incbin "baserom.gba", 0x862680, 0x0000413 + +gUnk_08862A93:: @ 08862A93 + .incbin "baserom.gba", 0x862A93, 0x0001974 + +gUnk_08864407:: @ 08864407 + .incbin "baserom.gba", 0x864407, 0x0001C79 + +gUnk_08866080:: @ 08866080 + .incbin "baserom.gba", 0x866080, 0x00006F7 + +gUnk_08866777:: @ 08866777 + .incbin "baserom.gba", 0x866777, 0x0000BDE + +gUnk_08867355:: @ 08867355 + .incbin "baserom.gba", 0x867355, 0x0001498 + +gUnk_088687ED:: @ 088687ED + .incbin "baserom.gba", 0x8687ED, 0x0000253 + +gUnk_08868A40:: @ 08868A40 + .incbin "baserom.gba", 0x868A40, 0x0001F58 + +gUnk_0886A998:: @ 0886A998 + .incbin "baserom.gba", 0x86A998, 0x0000156 + +gUnk_0886AAEE:: @ 0886AAEE + .incbin "baserom.gba", 0x86AAEE, 0x0000367 + +gUnk_0886AE55:: @ 0886AE55 + .incbin "baserom.gba", 0x86AE55, 0x0000009 + +gUnk_0886AE5E:: @ 0886AE5E + .incbin "baserom.gba", 0x86AE5E, 0x00010C2 + +gUnk_0886BF20:: @ 0886BF20 + .incbin "baserom.gba", 0x86BF20, 0x0003900 + +gUnk_0886F820:: @ 0886F820 + .incbin "baserom.gba", 0x86F820, 0x00007E7 + +gUnk_08870007:: @ 08870007 + .incbin "baserom.gba", 0x870007, 0x000000A + +gUnk_08870011:: @ 08870011 + .incbin "baserom.gba", 0x870011, 0x000005A + +gUnk_0887006B:: @ 0887006B + .incbin "baserom.gba", 0x87006B, 0x000001B + +gUnk_08870086:: @ 08870086 + .incbin "baserom.gba", 0x870086, 0x00001E9 + +gUnk_0887026F:: @ 0887026F + .incbin "baserom.gba", 0x87026F, 0x0002691 + +gUnk_08872900:: @ 08872900 + .incbin "baserom.gba", 0x872900, 0x0002C80 + +gUnk_08875580:: @ 08875580 + .incbin "baserom.gba", 0x875580, 0x0001A83 + +gUnk_08877003:: @ 08877003 + .incbin "baserom.gba", 0x877003, 0x0000663 + +gUnk_08877666:: @ 08877666 + .incbin "baserom.gba", 0x877666, 0x0000107 + +gUnk_0887776D:: @ 0887776D + .incbin "baserom.gba", 0x87776D, 0x0000072 + +gUnk_088777DF:: @ 088777DF + .incbin "baserom.gba", 0x8777DF, 0x0000011 + +gUnk_088777F0:: @ 088777F0 + .incbin "baserom.gba", 0x8777F0, 0x00010BF + +gUnk_088788AF:: @ 088788AF + .incbin "baserom.gba", 0x8788AF, 0x00001D1 + +gUnk_08878A80:: @ 08878A80 + .incbin "baserom.gba", 0x878A80, 0x000142B + +gUnk_08879EAB:: @ 08879EAB + .incbin "baserom.gba", 0x879EAB, 0x0001355 + +gUnk_0887B200:: @ 0887B200 + .incbin "baserom.gba", 0x87B200, 0x0002EA0 + +gUnk_0887E0A0:: @ 0887E0A0 + .incbin "baserom.gba", 0x87E0A0, 0x0000668 + +gUnk_0887E708:: @ 0887E708 + .incbin "baserom.gba", 0x87E708, 0x00018F8 + +gUnk_08880000:: @ 08880000 + .incbin "baserom.gba", 0x880000, 0x00000AA + +gUnk_088800AA:: @ 088800AA + .incbin "baserom.gba", 0x8800AA, 0x0000056 + +gUnk_08880100:: @ 08880100 + .incbin "baserom.gba", 0x880100, 0x0000087 + +gUnk_08880187:: @ 08880187 + .incbin "baserom.gba", 0x880187, 0x000028D + +gUnk_08880414:: @ 08880414 + .incbin "baserom.gba", 0x880414, 0x00003F4 + +gUnk_08880808:: @ 08880808 + .incbin "baserom.gba", 0x880808, 0x000098B + +gUnk_08881193:: @ 08881193 + .incbin "baserom.gba", 0x881193, 0x000022D + +gUnk_088813C0:: @ 088813C0 + .incbin "baserom.gba", 0x8813C0, 0x000050C + +gUnk_088818CC:: @ 088818CC + .incbin "baserom.gba", 0x8818CC, 0x0000975 + +gUnk_08882241:: @ 08882241 + .incbin "baserom.gba", 0x882241, 0x0000747 + +gUnk_08882988:: @ 08882988 + .incbin "baserom.gba", 0x882988, 0x0000A13 + +gUnk_0888339B:: @ 0888339B + .incbin "baserom.gba", 0x88339B, 0x0000B05 + +gUnk_08883EA0:: @ 08883EA0 + .incbin "baserom.gba", 0x883EA0, 0x0001F00 + +gUnk_08885DA0:: @ 08885DA0 + .incbin "baserom.gba", 0x885DA0, 0x00019D7 + +gUnk_08887777:: @ 08887777 + .incbin "baserom.gba", 0x887777, 0x0000889 + +gUnk_08888000:: @ 08888000 + .incbin "baserom.gba", 0x888000, 0x0000188 + +gUnk_08888188:: @ 08888188 + .incbin "baserom.gba", 0x888188, 0x0000414 + +gUnk_0888859C:: @ 0888859C + .incbin "baserom.gba", 0x88859C, 0x00001CA + +gUnk_08888766:: @ 08888766 + .incbin "baserom.gba", 0x888766, 0x000000A + +gUnk_08888770:: @ 08888770 + .incbin "baserom.gba", 0x888770, 0x0000090 + +gUnk_08888800:: @ 08888800 + .incbin "baserom.gba", 0x888800, 0x0000080 + +gUnk_08888880:: @ 08888880 + .incbin "baserom.gba", 0x888880, 0x0000008 + +gUnk_08888888:: @ 08888888 + .incbin "baserom.gba", 0x888888, 0x0000001 + +gUnk_08888889:: @ 08888889 + .incbin "baserom.gba", 0x888889, 0x0000010 + +gUnk_08888899:: @ 08888899 + .incbin "baserom.gba", 0x888899, 0x00000EF + +gUnk_08888988:: @ 08888988 + .incbin "baserom.gba", 0x888988, 0x0000012 + +gUnk_0888899A:: @ 0888899A + .incbin "baserom.gba", 0x88899A, 0x0000110 + +gUnk_08888AAA:: @ 08888AAA + .incbin "baserom.gba", 0x888AAA, 0x000043B + +gUnk_08888EE5:: @ 08888EE5 + .incbin "baserom.gba", 0x888EE5, 0x0000093 + +gUnk_08888F78:: @ 08888F78 + .incbin "baserom.gba", 0x888F78, 0x0000912 + +gUnk_0888988A:: @ 0888988A + .incbin "baserom.gba", 0x88988A, 0x0000076 + +gUnk_08889900:: @ 08889900 + .incbin "baserom.gba", 0x889900, 0x000008E + +gUnk_0888998E:: @ 0888998E + .incbin "baserom.gba", 0x88998E, 0x000000B + +gUnk_08889999:: @ 08889999 + .incbin "baserom.gba", 0x889999, 0x0000011 + +gUnk_088899AA:: @ 088899AA + .incbin "baserom.gba", 0x8899AA, 0x00003F6 + +gUnk_08889DA0:: @ 08889DA0 + .incbin "baserom.gba", 0x889DA0, 0x000014E + +gUnk_08889EEE:: @ 08889EEE + .incbin "baserom.gba", 0x889EEE, 0x0000BAC + +gUnk_0888AA9A:: @ 0888AA9A + .incbin "baserom.gba", 0x88AA9A, 0x0000066 + +gUnk_0888AB00:: @ 0888AB00 + .incbin "baserom.gba", 0x88AB00, 0x0000311 + +gUnk_0888AE11:: @ 0888AE11 + .incbin "baserom.gba", 0x88AE11, 0x00001F7 + +gUnk_0888B008:: @ 0888B008 + .incbin "baserom.gba", 0x88B008, 0x0002D18 + +gUnk_0888DD20:: @ 0888DD20 + .incbin "baserom.gba", 0x88DD20, 0x0000140 + +gUnk_0888DE60:: @ 0888DE60 + .incbin "baserom.gba", 0x88DE60, 0x0001B00 + +gUnk_0888F960:: @ 0888F960 + .incbin "baserom.gba", 0x88F960, 0x00006A0 + +gUnk_08890000:: @ 08890000 + .incbin "baserom.gba", 0x890000, 0x000003C + +gUnk_0889003C:: @ 0889003C + .incbin "baserom.gba", 0x89003C, 0x0000014 + +gUnk_08890050:: @ 08890050 + .incbin "baserom.gba", 0x890050, 0x0000028 + +gUnk_08890078:: @ 08890078 + .incbin "baserom.gba", 0x890078, 0x0000008 + +gUnk_08890080:: @ 08890080 + .incbin "baserom.gba", 0x890080, 0x0000034 + +gUnk_088900B4:: @ 088900B4 + .incbin "baserom.gba", 0x8900B4, 0x00000B4 + +gUnk_08890168:: @ 08890168 + .incbin "baserom.gba", 0x890168, 0x0000058 + +gUnk_088901C0:: @ 088901C0 + .incbin "baserom.gba", 0x8901C0, 0x0000098 + +gUnk_08890258:: @ 08890258 + .incbin "baserom.gba", 0x890258, 0x00001A9 + +gUnk_08890401:: @ 08890401 + .incbin "baserom.gba", 0x890401, 0x0000048 + +gUnk_08890449:: @ 08890449 + .incbin "baserom.gba", 0x890449, 0x0000010 + +gUnk_08890459:: @ 08890459 + .incbin "baserom.gba", 0x890459, 0x000001D + +gUnk_08890476:: @ 08890476 + .incbin "baserom.gba", 0x890476, 0x0000012 + +gUnk_08890488:: @ 08890488 + .incbin "baserom.gba", 0x890488, 0x0000378 + +gUnk_08890800:: @ 08890800 + .incbin "baserom.gba", 0x890800, 0x0000006 + +gUnk_08890806:: @ 08890806 + .incbin "baserom.gba", 0x890806, 0x0000001 + +gUnk_08890807:: @ 08890807 + .incbin "baserom.gba", 0x890807, 0x00000C5 + +gUnk_088908CC:: @ 088908CC + .incbin "baserom.gba", 0x8908CC, 0x000063A + +gUnk_08890F06:: @ 08890F06 + .incbin "baserom.gba", 0x890F06, 0x00000BA + +gUnk_08890FC0:: @ 08890FC0 + .incbin "baserom.gba", 0x890FC0, 0x000116E + +gUnk_0889212E:: @ 0889212E + .incbin "baserom.gba", 0x89212E, 0x0000B12 + +gUnk_08892C40:: @ 08892C40 + .incbin "baserom.gba", 0x892C40, 0x0002300 + +gUnk_08894F40:: @ 08894F40 + .incbin "baserom.gba", 0x894F40, 0x0001749 + +gUnk_08896689:: @ 08896689 + .incbin "baserom.gba", 0x896689, 0x0000D37 + +gUnk_088973C0:: @ 088973C0 + .incbin "baserom.gba", 0x8973C0, 0x0000440 + +gUnk_08897800:: @ 08897800 + .incbin "baserom.gba", 0x897800, 0x00008C0 + +gUnk_088980C0:: @ 088980C0 + .incbin "baserom.gba", 0x8980C0, 0x0000495 + +gUnk_08898555:: @ 08898555 + .incbin "baserom.gba", 0x898555, 0x0000445 + +gUnk_0889899A:: @ 0889899A + .incbin "baserom.gba", 0x89899A, 0x0000011 + +gUnk_088989AB:: @ 088989AB + .incbin "baserom.gba", 0x8989AB, 0x0000515 + +gUnk_08898EC0:: @ 08898EC0 + .incbin "baserom.gba", 0x898EC0, 0x00000B7 + +gUnk_08898F77:: @ 08898F77 + .incbin "baserom.gba", 0x898F77, 0x00002C9 + +gUnk_08899240:: @ 08899240 + .incbin "baserom.gba", 0x899240, 0x00004C0 + +gUnk_08899700:: @ 08899700 + .incbin "baserom.gba", 0x899700, 0x0000298 + +gUnk_08899998:: @ 08899998 + .incbin "baserom.gba", 0x899998, 0x0000001 + +gUnk_08899999:: @ 08899999 + .incbin "baserom.gba", 0x899999, 0x000004B + +gUnk_088999E4:: @ 088999E4 + .incbin "baserom.gba", 0x8999E4, 0x0000093 + +gUnk_08899A77:: @ 08899A77 + .incbin "baserom.gba", 0x899A77, 0x0000033 + +gUnk_08899AAA:: @ 08899AAA + .incbin "baserom.gba", 0x899AAA, 0x00000B6 + +gUnk_08899B60:: @ 08899B60 + .incbin "baserom.gba", 0x899B60, 0x00002E0 + +gUnk_08899E40:: @ 08899E40 + .incbin "baserom.gba", 0x899E40, 0x00007A0 + +gUnk_0889A5E0:: @ 0889A5E0 + .incbin "baserom.gba", 0x89A5E0, 0x0000300 + +gUnk_0889A8E0:: @ 0889A8E0 + .incbin "baserom.gba", 0x89A8E0, 0x00001BE + +gUnk_0889AA9E:: @ 0889AA9E + .incbin "baserom.gba", 0x89AA9E, 0x0000004 + +gUnk_0889AAA2:: @ 0889AAA2 + .incbin "baserom.gba", 0x89AAA2, 0x0000008 + +gUnk_0889AAAA:: @ 0889AAAA + .incbin "baserom.gba", 0x89AAAA, 0x0000001 + +gUnk_0889AAAB:: @ 0889AAAB + .incbin "baserom.gba", 0x89AAAB, 0x0000010 + +gUnk_0889AABB:: @ 0889AABB + .incbin "baserom.gba", 0x89AABB, 0x0000100 + +gUnk_0889ABBB:: @ 0889ABBB + .incbin "baserom.gba", 0x89ABBB, 0x0000001 + +gUnk_0889ABBC:: @ 0889ABBC + .incbin "baserom.gba", 0x89ABBC, 0x0000C24 + +gUnk_0889B7E0:: @ 0889B7E0 + .incbin "baserom.gba", 0x89B7E0, 0x0000360 + +gUnk_0889BB40:: @ 0889BB40 + .incbin "baserom.gba", 0x89BB40, 0x000018C + +gUnk_0889BCCC:: @ 0889BCCC + .incbin "baserom.gba", 0x89BCCC, 0x00005F4 + +gUnk_0889C2C0:: @ 0889C2C0 + .incbin "baserom.gba", 0x89C2C0, 0x0000400 + +gUnk_0889C6C0:: @ 0889C6C0 + .incbin "baserom.gba", 0x89C6C0, 0x000005C + +gUnk_0889C71C:: @ 0889C71C + .incbin "baserom.gba", 0x89C71C, 0x0000324 + +gUnk_0889CA40:: @ 0889CA40 + .incbin "baserom.gba", 0x89CA40, 0x00005B0 + +gUnk_0889CFF0:: @ 0889CFF0 + .incbin "baserom.gba", 0x89CFF0, 0x0000450 + +gUnk_0889D440:: @ 0889D440 + .incbin "baserom.gba", 0x89D440, 0x0000A00 + +gUnk_0889DE40:: @ 0889DE40 + .incbin "baserom.gba", 0x89DE40, 0x0000300 + +gUnk_0889E140:: @ 0889E140 + .incbin "baserom.gba", 0x89E140, 0x00003D1 + +gUnk_0889E511:: @ 0889E511 + .incbin "baserom.gba", 0x89E511, 0x00000EF + +gUnk_0889E600:: @ 0889E600 + .incbin "baserom.gba", 0x89E600, 0x00007C0 + +gUnk_0889EDC0:: @ 0889EDC0 + .incbin "baserom.gba", 0x89EDC0, 0x000012E + +gUnk_0889EEEE:: @ 0889EEEE + .incbin "baserom.gba", 0x89EEEE, 0x00009F2 + +gUnk_0889F8E0:: @ 0889F8E0 + .incbin "baserom.gba", 0x89F8E0, 0x00007D3 + +gUnk_088A00B3:: @ 088A00B3 + .incbin "baserom.gba", 0x8A00B3, 0x000000D + +gUnk_088A00C0:: @ 088A00C0 + .incbin "baserom.gba", 0x8A00C0, 0x0000360 + +gUnk_088A0420:: @ 088A0420 + .incbin "baserom.gba", 0x8A0420, 0x0000469 + +gUnk_088A0889:: @ 088A0889 + .incbin "baserom.gba", 0x8A0889, 0x0000024 + +gUnk_088A08AD:: @ 088A08AD + .incbin "baserom.gba", 0x8A08AD, 0x0000433 + +gUnk_088A0CE0:: @ 088A0CE0 + .incbin "baserom.gba", 0x8A0CE0, 0x000007F + +gUnk_088A0D5F:: @ 088A0D5F + .incbin "baserom.gba", 0x8A0D5F, 0x000062F + +gUnk_088A138E:: @ 088A138E + .incbin "baserom.gba", 0x8A138E, 0x0000112 + +gUnk_088A14A0:: @ 088A14A0 + .incbin "baserom.gba", 0x8A14A0, 0x0000DC0 + +gUnk_088A2260:: @ 088A2260 + .incbin "baserom.gba", 0x8A2260, 0x00000E5 + +gUnk_088A2345:: @ 088A2345 + .incbin "baserom.gba", 0x8A2345, 0x000021B + +gUnk_088A2560:: @ 088A2560 + .incbin "baserom.gba", 0x8A2560, 0x00002A8 + +gUnk_088A2808:: @ 088A2808 + .incbin "baserom.gba", 0x8A2808, 0x0000038 + +gUnk_088A2840:: @ 088A2840 + .incbin "baserom.gba", 0x8A2840, 0x0000500 + +gUnk_088A2D40:: @ 088A2D40 + .incbin "baserom.gba", 0x8A2D40, 0x00007C0 + +gUnk_088A3500:: @ 088A3500 + .incbin "baserom.gba", 0x8A3500, 0x0000300 + +gUnk_088A3800:: @ 088A3800 + .incbin "baserom.gba", 0x8A3800, 0x00007A0 + +gUnk_088A3FA0:: @ 088A3FA0 + .incbin "baserom.gba", 0x8A3FA0, 0x0000500 + +gUnk_088A44A0:: @ 088A44A0 + .incbin "baserom.gba", 0x8A44A0, 0x00003C0 + +gUnk_088A4860:: @ 088A4860 + .incbin "baserom.gba", 0x8A4860, 0x00009A0 + +gUnk_088A5200:: @ 088A5200 + .incbin "baserom.gba", 0x8A5200, 0x0000DC0 + +gUnk_088A5FC0:: @ 088A5FC0 + .incbin "baserom.gba", 0x8A5FC0, 0x00003A0 + +gUnk_088A6360:: @ 088A6360 + .incbin "baserom.gba", 0x8A6360, 0x0000980 + +gUnk_088A6CE0:: @ 088A6CE0 + .incbin "baserom.gba", 0x8A6CE0, 0x00007C0 + +gUnk_088A74A0:: @ 088A74A0 + .incbin "baserom.gba", 0x8A74A0, 0x0000408 + +gUnk_088A78A8:: @ 088A78A8 + .incbin "baserom.gba", 0x8A78A8, 0x0000139 + +gUnk_088A79E1:: @ 088A79E1 + .incbin "baserom.gba", 0x8A79E1, 0x00002DF + +gUnk_088A7CC0:: @ 088A7CC0 + .incbin "baserom.gba", 0x8A7CC0, 0x0000340 + +gUnk_088A8000:: @ 088A8000 + .incbin "baserom.gba", 0x8A8000, 0x0000500 + +gUnk_088A8500:: @ 088A8500 + .incbin "baserom.gba", 0x8A8500, 0x0000500 + +gUnk_088A8A00:: @ 088A8A00 + .incbin "baserom.gba", 0x8A8A00, 0x00001CA + +gUnk_088A8BCA:: @ 088A8BCA + .incbin "baserom.gba", 0x8A8BCA, 0x00005F6 + +gUnk_088A91C0:: @ 088A91C0 + .incbin "baserom.gba", 0x8A91C0, 0x0000660 + +gUnk_088A9820:: @ 088A9820 + .incbin "baserom.gba", 0x8A9820, 0x0000179 + +gUnk_088A9999:: @ 088A9999 + .incbin "baserom.gba", 0x8A9999, 0x0000247 + +gUnk_088A9BE0:: @ 088A9BE0 + .incbin "baserom.gba", 0x8A9BE0, 0x0000460 + +gUnk_088AA040:: @ 088AA040 + .incbin "baserom.gba", 0x8AA040, 0x0000380 + +gUnk_088AA3C0:: @ 088AA3C0 + .incbin "baserom.gba", 0x8AA3C0, 0x00004E0 + +gUnk_088AA8A0:: @ 088AA8A0 + .incbin "baserom.gba", 0x8AA8A0, 0x0000209 + +gUnk_088AAAA9:: @ 088AAAA9 + .incbin "baserom.gba", 0x8AAAA9, 0x0000137 + +gUnk_088AABE0:: @ 088AABE0 + .incbin "baserom.gba", 0x8AABE0, 0x00006A0 + +gUnk_088AB280:: @ 088AB280 + .incbin "baserom.gba", 0x8AB280, 0x00008A4 + +gUnk_088ABB24:: @ 088ABB24 + .incbin "baserom.gba", 0x8ABB24, 0x00000DC + +gUnk_088ABC00:: @ 088ABC00 + .incbin "baserom.gba", 0x8ABC00, 0x00001D6 + +gUnk_088ABDD6:: @ 088ABDD6 + .incbin "baserom.gba", 0x8ABDD6, 0x000040A + +gUnk_088AC1E0:: @ 088AC1E0 + .incbin "baserom.gba", 0x8AC1E0, 0x00008A0 + +gUnk_088ACA80:: @ 088ACA80 + .incbin "baserom.gba", 0x8ACA80, 0x000024B + +gUnk_088ACCCB:: @ 088ACCCB + .incbin "baserom.gba", 0x8ACCCB, 0x0000675 + +gUnk_088AD340:: @ 088AD340 + .incbin "baserom.gba", 0x8AD340, 0x00005A0 + +gUnk_088AD8E0:: @ 088AD8E0 + .incbin "baserom.gba", 0x8AD8E0, 0x0000620 + +gUnk_088ADF00:: @ 088ADF00 + .incbin "baserom.gba", 0x8ADF00, 0x0000F00 + +gUnk_088AEE00:: @ 088AEE00 + .incbin "baserom.gba", 0x8AEE00, 0x00000EE + +gUnk_088AEEEE:: @ 088AEEEE + .incbin "baserom.gba", 0x8AEEEE, 0x0000552 + +gUnk_088AF440:: @ 088AF440 + .incbin "baserom.gba", 0x8AF440, 0x00012C0 + +gUnk_088B0700:: @ 088B0700 + .incbin "baserom.gba", 0x8B0700, 0x000018A + +gUnk_088B088A:: @ 088B088A + .incbin "baserom.gba", 0x8B088A, 0x0001136 + +gUnk_088B19C0:: @ 088B19C0 + .incbin "baserom.gba", 0x8B19C0, 0x000076E + +gUnk_088B212E:: @ 088B212E + .incbin "baserom.gba", 0x8B212E, 0x0001032 + +gUnk_088B3160:: @ 088B3160 + .incbin "baserom.gba", 0x8B3160, 0x00019A0 + +gUnk_088B4B00:: @ 088B4B00 + .incbin "baserom.gba", 0x8B4B00, 0x0001300 + +gUnk_088B5E00:: @ 088B5E00 + .incbin "baserom.gba", 0x8B5E00, 0x0001EA0 + +gUnk_088B7CA0:: @ 088B7CA0 + .incbin "baserom.gba", 0x8B7CA0, 0x0001640 + +gUnk_088B92E0:: @ 088B92E0 + .incbin "baserom.gba", 0x8B92E0, 0x00010AB + +gUnk_088BA38B:: @ 088BA38B + .incbin "baserom.gba", 0x8BA38B, 0x0000715 + +gUnk_088BAAA0:: @ 088BAAA0 + .incbin "baserom.gba", 0x8BAAA0, 0x000001B + +gUnk_088BAABB:: @ 088BAABB + .incbin "baserom.gba", 0x8BAABB, 0x00000D0 + +gUnk_088BAB8B:: @ 088BAB8B + .incbin "baserom.gba", 0x8BAB8B, 0x0000D15 + +gUnk_088BB8A0:: @ 088BB8A0 + .incbin "baserom.gba", 0x8BB8A0, 0x0000580 + +gUnk_088BBE20:: @ 088BBE20 + .incbin "baserom.gba", 0x8BBE20, 0x0000C40 + +gUnk_088BCA60:: @ 088BCA60 + .incbin "baserom.gba", 0x8BCA60, 0x0001100 + +gUnk_088BDB60:: @ 088BDB60 + .incbin "baserom.gba", 0x8BDB60, 0x0001304 + +gUnk_088BEE64:: @ 088BEE64 + .incbin "baserom.gba", 0x8BEE64, 0x000127C + +gUnk_088C00E0:: @ 088C00E0 + .incbin "baserom.gba", 0x8C00E0, 0x0000220 + +gUnk_088C0300:: @ 088C0300 + .incbin "baserom.gba", 0x8C0300, 0x000035C + +gUnk_088C065C:: @ 088C065C + .incbin "baserom.gba", 0x8C065C, 0x00002A4 + +gUnk_088C0900:: @ 088C0900 + .incbin "baserom.gba", 0x8C0900, 0x000598C + +gUnk_088C628C:: @ 088C628C + .incbin "baserom.gba", 0x8C628C, 0x00003FC + +gUnk_088C6688:: @ 088C6688 + .incbin "baserom.gba", 0x8C6688, 0x00016A8 + +gUnk_088C7D30:: @ 088C7D30 + .incbin "baserom.gba", 0x8C7D30, 0x0007178 + +gUnk_088CEEA8:: @ 088CEEA8 + .incbin "baserom.gba", 0x8CEEA8, 0x0001162 + +gUnk_088D000A:: @ 088D000A + .incbin "baserom.gba", 0x8D000A, 0x0000982 + +gUnk_088D098C:: @ 088D098C + .incbin "baserom.gba", 0x8D098C, 0x0001A31 + +gUnk_088D23BD:: @ 088D23BD + .incbin "baserom.gba", 0x8D23BD, 0x0001343 + +gUnk_088D3700:: @ 088D3700 + .incbin "baserom.gba", 0x8D3700, 0x0000FC8 + +gUnk_088D46C8:: @ 088D46C8 + .incbin "baserom.gba", 0x8D46C8, 0x0002078 + +gUnk_088D6740:: @ 088D6740 + .incbin "baserom.gba", 0x8D6740, 0x00020F3 + +gUnk_088D8833:: @ 088D8833 + .incbin "baserom.gba", 0x8D8833, 0x0001AD5 + +gUnk_088DA308:: @ 088DA308 + .incbin "baserom.gba", 0x8DA308, 0x00030A4 + +gUnk_088DD3AC:: @ 088DD3AC + .incbin "baserom.gba", 0x8DD3AC, 0x0002C5B + +gUnk_088E0007:: @ 088E0007 + .incbin "baserom.gba", 0x8E0007, 0x0000088 + +gUnk_088E008F:: @ 088E008F + .incbin "baserom.gba", 0x8E008F, 0x0000075 + +gUnk_088E0104:: @ 088E0104 + .incbin "baserom.gba", 0x8E0104, 0x0000231 + +gUnk_088E0335:: @ 088E0335 + .incbin "baserom.gba", 0x8E0335, 0x0000159 + +gUnk_088E048E:: @ 088E048E + .incbin "baserom.gba", 0x8E048E, 0x0000FEB + +gUnk_088E1479:: @ 088E1479 + .incbin "baserom.gba", 0x8E1479, 0x0005A09 + +gUnk_088E6E82:: @ 088E6E82 + .incbin "baserom.gba", 0x8E6E82, 0x0000EF7 + +gUnk_088E7D79:: @ 088E7D79 + .incbin "baserom.gba", 0x8E7D79, 0x0004315 + +gUnk_088EC08E:: @ 088EC08E + .incbin "baserom.gba", 0x8EC08E, 0x0002E60 + +gUnk_088EEEEE:: @ 088EEEEE + .incbin "baserom.gba", 0x8EEEEE, 0x0001292 + +gUnk_088F0180:: @ 088F0180 + .incbin "baserom.gba", 0x8F0180, 0x000020D + +gUnk_088F038D:: @ 088F038D + .incbin "baserom.gba", 0x8F038D, 0x0000DC4 + +gUnk_088F1151:: @ 088F1151 + .incbin "baserom.gba", 0x8F1151, 0x000045D + +gUnk_088F15AE:: @ 088F15AE + .incbin "baserom.gba", 0x8F15AE, 0x0002FB8 + +gUnk_088F4566:: @ 088F4566 + .incbin "baserom.gba", 0x8F4566, 0x000119C + +gUnk_088F5702:: @ 088F5702 + .incbin "baserom.gba", 0x8F5702, 0x0005186 + +gUnk_088FA888:: @ 088FA888 + .incbin "baserom.gba", 0x8FA888, 0x0000107 + +gUnk_088FA98F:: @ 088FA98F + .incbin "baserom.gba", 0x8FA98F, 0x000422C + +gUnk_088FEBBB:: @ 088FEBBB + .incbin "baserom.gba", 0x8FEBBB, 0x0000BCD + +gUnk_088FF788:: @ 088FF788 + .incbin "baserom.gba", 0x8FF788, 0x0000878 + +gUnk_08900000:: @ 08900000 + .incbin "baserom.gba", 0x900000, 0x0000099 + +gUnk_08900099:: @ 08900099 + .incbin "baserom.gba", 0x900099, 0x0000035 + +gUnk_089000CE:: @ 089000CE + .incbin "baserom.gba", 0x9000CE, 0x0000042 + +gUnk_08900110:: @ 08900110 + .incbin "baserom.gba", 0x900110, 0x0000270 + +gUnk_08900380:: @ 08900380 + .incbin "baserom.gba", 0x900380, 0x00002A0 + +gUnk_08900620:: @ 08900620 + .incbin "baserom.gba", 0x900620, 0x0003D2B + +gUnk_0890434B:: @ 0890434B + .incbin "baserom.gba", 0x90434B, 0x0009DB3 + +gUnk_0890E0FE:: @ 0890E0FE + .incbin "baserom.gba", 0x90E0FE, 0x0000302 + +gUnk_0890E400:: @ 0890E400 + .incbin "baserom.gba", 0x90E400, 0x0000004 + +gUnk_0890E404:: @ 0890E404 + .incbin "baserom.gba", 0x90E404, 0x0000100 + +gUnk_0890E504:: @ 0890E504 + .incbin "baserom.gba", 0x90E504, 0x0000100 + +gUnk_0890E604:: @ 0890E604 + .incbin "baserom.gba", 0x90E604, 0x00002FB + +gUnk_0890E8FF:: @ 0890E8FF + .incbin "baserom.gba", 0x90E8FF, 0x00007E9 + +gUnk_0890F0E8:: @ 0890F0E8 + .incbin "baserom.gba", 0x90F0E8, 0x0000F18 + +gUnk_08910000:: @ 08910000 + .incbin "baserom.gba", 0x910000, 0x0000007 + +gUnk_08910007:: @ 08910007 + .incbin "baserom.gba", 0x910007, 0x00002F9 + +gUnk_08910300:: @ 08910300 + .incbin "baserom.gba", 0x910300, 0x0000168 + +gUnk_08910468:: @ 08910468 + .incbin "baserom.gba", 0x910468, 0x0000398 + +gUnk_08910800:: @ 08910800 + .incbin "baserom.gba", 0x910800, 0x0000090 + +gUnk_08910890:: @ 08910890 + .incbin "baserom.gba", 0x910890, 0x0000993 + +gUnk_08911223:: @ 08911223 + .incbin "baserom.gba", 0x911223, 0x0000776 + +gUnk_08911999:: @ 08911999 + .incbin "baserom.gba", 0x911999, 0x0000467 + +gUnk_08911E00:: @ 08911E00 + .incbin "baserom.gba", 0x911E00, 0x0002418 + +gUnk_08914218:: @ 08914218 + .incbin "baserom.gba", 0x914218, 0x000012E + +gUnk_08914346:: @ 08914346 + .incbin "baserom.gba", 0x914346, 0x00003BA + +gUnk_08914700:: @ 08914700 + .incbin "baserom.gba", 0x914700, 0x0002BFF + +gUnk_089172FF:: @ 089172FF + .incbin "baserom.gba", 0x9172FF, 0x0000589 + +gUnk_08917888:: @ 08917888 + .incbin "baserom.gba", 0x917888, 0x0000345 + +gUnk_08917BCD:: @ 08917BCD + .incbin "baserom.gba", 0x917BCD, 0x0000FBE + +gUnk_08918B8B:: @ 08918B8B + .incbin "baserom.gba", 0x918B8B, 0x000250E + +gUnk_0891B099:: @ 0891B099 + .incbin "baserom.gba", 0x91B099, 0x0000A11 + +gUnk_0891BAAA:: @ 0891BAAA + .incbin "baserom.gba", 0x91BAAA, 0x0002757 + +gUnk_0891E201:: @ 0891E201 + .incbin "baserom.gba", 0x91E201, 0x0001D00 + +gUnk_0891FF01:: @ 0891FF01 + .incbin "baserom.gba", 0x91FF01, 0x00000EF + +gUnk_0891FFF0:: @ 0891FFF0 + .incbin "baserom.gba", 0x91FFF0, 0x0000010 + +gUnk_08920000:: @ 08920000 + .incbin "baserom.gba", 0x920000, 0x0000120 + +gUnk_08920120:: @ 08920120 + .incbin "baserom.gba", 0x920120, 0x0000672 + +gUnk_08920792:: @ 08920792 + .incbin "baserom.gba", 0x920792, 0x00000FF + +gUnk_08920891:: @ 08920891 + .incbin "baserom.gba", 0x920891, 0x0000802 + +gUnk_08921093:: @ 08921093 + .incbin "baserom.gba", 0x921093, 0x00001F7 + +gUnk_0892128A:: @ 0892128A + .incbin "baserom.gba", 0x92128A, 0x0001B9F + +gUnk_08922E29:: @ 08922E29 + .incbin "baserom.gba", 0x922E29, 0x0004969 + +gUnk_08927792:: @ 08927792 + .incbin "baserom.gba", 0x927792, 0x0000305 + +gUnk_08927A97:: @ 08927A97 + .incbin "baserom.gba", 0x927A97, 0x0001520 + +gUnk_08928FB7:: @ 08928FB7 + .incbin "baserom.gba", 0x928FB7, 0x00003DA + +gUnk_08929391:: @ 08929391 + .incbin "baserom.gba", 0x929391, 0x00000C6 + +gUnk_08929457:: @ 08929457 + .incbin "baserom.gba", 0x929457, 0x0000879 + +gUnk_08929CD0:: @ 08929CD0 + .incbin "baserom.gba", 0x929CD0, 0x00001B9 + +gUnk_08929E89:: @ 08929E89 + .incbin "baserom.gba", 0x929E89, 0x0003465 + +gUnk_0892D2EE:: @ 0892D2EE + .incbin "baserom.gba", 0x92D2EE, 0x0000FAB + +gUnk_0892E299:: @ 0892E299 + .incbin "baserom.gba", 0x92E299, 0x00000F9 + +gUnk_0892E392:: @ 0892E392 + .incbin "baserom.gba", 0x92E392, 0x0000A90 + +gUnk_0892EE22:: @ 0892EE22 + .incbin "baserom.gba", 0x92EE22, 0x000000B + +gUnk_0892EE2D:: @ 0892EE2D + .incbin "baserom.gba", 0x92EE2D, 0x00011D3 + +gUnk_08930000:: @ 08930000 + .incbin "baserom.gba", 0x930000, 0x0000010 + +gUnk_08930010:: @ 08930010 + .incbin "baserom.gba", 0x930010, 0x0000773 + +gUnk_08930783:: @ 08930783 + .incbin "baserom.gba", 0x930783, 0x0000010 + +gUnk_08930793:: @ 08930793 + .incbin "baserom.gba", 0x930793, 0x00000FF + +gUnk_08930892:: @ 08930892 + .incbin "baserom.gba", 0x930892, 0x0001FB2 + +gUnk_08932844:: @ 08932844 + .incbin "baserom.gba", 0x932844, 0x00016BC + +gUnk_08933F00:: @ 08933F00 + .incbin "baserom.gba", 0x933F00, 0x0002200 + +gUnk_08936100:: @ 08936100 + .incbin "baserom.gba", 0x936100, 0x00020A6 + +gUnk_089381A6:: @ 089381A6 + .incbin "baserom.gba", 0x9381A6, 0x0000EC1 + +gUnk_08939067:: @ 08939067 + .incbin "baserom.gba", 0x939067, 0x000032C + +gUnk_08939393:: @ 08939393 + .incbin "baserom.gba", 0x939393, 0x00071F8 + +gUnk_0894058B:: @ 0894058B + .incbin "baserom.gba", 0x94058B, 0x0000308 + +gUnk_08940893:: @ 08940893 + .incbin "baserom.gba", 0x940893, 0x0000B9C + +gUnk_0894142F:: @ 0894142F + .incbin "baserom.gba", 0x94142F, 0x0000CD1 + +gUnk_08942100:: @ 08942100 + .incbin "baserom.gba", 0x942100, 0x0000267 + +gUnk_08942367:: @ 08942367 + .incbin "baserom.gba", 0x942367, 0x00010DF + +gUnk_08943446:: @ 08943446 + .incbin "baserom.gba", 0x943446, 0x0000DDB + +gUnk_08944221:: @ 08944221 + .incbin "baserom.gba", 0x944221, 0x00006DD + +gUnk_089448FE:: @ 089448FE + .incbin "baserom.gba", 0x9448FE, 0x0000C57 + +gUnk_08945555:: @ 08945555 + .incbin "baserom.gba", 0x945555, 0x0003F18 + +gUnk_0894946D:: @ 0894946D + .incbin "baserom.gba", 0x94946D, 0x0001760 + +gUnk_0894ABCD:: @ 0894ABCD + .incbin "baserom.gba", 0x94ABCD, 0x0001FEE + +gUnk_0894CBBB:: @ 0894CBBB + .incbin "baserom.gba", 0x94CBBB, 0x000344C + +gUnk_08950007:: @ 08950007 + .incbin "baserom.gba", 0x950007, 0x00008F9 + +gUnk_08950900:: @ 08950900 + .incbin "baserom.gba", 0x950900, 0x0002600 + +gUnk_08952F00:: @ 08952F00 + .incbin "baserom.gba", 0x952F00, 0x0000791 + +gUnk_08953691:: @ 08953691 + .incbin "baserom.gba", 0x953691, 0x000076F + +gUnk_08953E00:: @ 08953E00 + .incbin "baserom.gba", 0x953E00, 0x0001654 + +gUnk_08955454:: @ 08955454 + .incbin "baserom.gba", 0x955454, 0x00000F0 + +gUnk_08955544:: @ 08955544 + .incbin "baserom.gba", 0x955544, 0x0000011 + +gUnk_08955555:: @ 08955555 + .incbin "baserom.gba", 0x955555, 0x0003B72 + +gUnk_089590C7:: @ 089590C7 + .incbin "baserom.gba", 0x9590C7, 0x0001642 + +gUnk_0895A709:: @ 0895A709 + .incbin "baserom.gba", 0x95A709, 0x00058F7 + +gUnk_08960000:: @ 08960000 + .incbin "baserom.gba", 0x960000, 0x0000132 + +gUnk_08960132:: @ 08960132 + .incbin "baserom.gba", 0x960132, 0x0000B5E + +gUnk_08960C90:: @ 08960C90 + .incbin "baserom.gba", 0x960C90, 0x00000A4 + +gUnk_08960D34:: @ 08960D34 + .incbin "baserom.gba", 0x960D34, 0x00004E2 + +gUnk_08961216:: @ 08961216 + .incbin "baserom.gba", 0x961216, 0x000CBD8 + +gUnk_0896DDEE:: @ 0896DDEE + .incbin "baserom.gba", 0x96DDEE, 0x0002212 + +gUnk_08970000:: @ 08970000 + .incbin "baserom.gba", 0x970000, 0x000000A + +gUnk_0897000A:: @ 0897000A + .incbin "baserom.gba", 0x97000A, 0x0000009 + +gUnk_08970013:: @ 08970013 + .incbin "baserom.gba", 0x970013, 0x000002D + +gUnk_08970040:: @ 08970040 + .incbin "baserom.gba", 0x970040, 0x0000856 + +gUnk_08970896:: @ 08970896 + .incbin "baserom.gba", 0x970896, 0x000076B + +gUnk_08971001:: @ 08971001 + .incbin "baserom.gba", 0x971001, 0x000005A + +gUnk_0897105B:: @ 0897105B + .incbin "baserom.gba", 0x97105B, 0x0001D85 + +gUnk_08972DE0:: @ 08972DE0 + .incbin "baserom.gba", 0x972DE0, 0x0001553 + +gUnk_08974333:: @ 08974333 + .incbin "baserom.gba", 0x974333, 0x0001200 + +gUnk_08975533:: @ 08975533 + .incbin "baserom.gba", 0x975533, 0x00022AB + +gUnk_089777DE:: @ 089777DE + .incbin "baserom.gba", 0x9777DE, 0x0001DB0 + +gUnk_0897958E:: @ 0897958E + .incbin "baserom.gba", 0x97958E, 0x0001C62 + +gUnk_0897B1F0:: @ 0897B1F0 + .incbin "baserom.gba", 0x97B1F0, 0x00007A7 + +gUnk_0897B997:: @ 0897B997 + .incbin "baserom.gba", 0x97B997, 0x0004669 + +gUnk_08980000:: @ 08980000 + .incbin "baserom.gba", 0x980000, 0x0000012 + +gUnk_08980012:: @ 08980012 + .incbin "baserom.gba", 0x980012, 0x0000196 + +gUnk_089801A8:: @ 089801A8 + .incbin "baserom.gba", 0x9801A8, 0x0001769 + +gUnk_08981911:: @ 08981911 + .incbin "baserom.gba", 0x981911, 0x00018EF + +gUnk_08983200:: @ 08983200 + .incbin "baserom.gba", 0x983200, 0x00002AD + +gUnk_089834AD:: @ 089834AD + .incbin "baserom.gba", 0x9834AD, 0x00010A8 + +gUnk_08984555:: @ 08984555 + .incbin "baserom.gba", 0x984555, 0x0001AAB + +gUnk_08986000:: @ 08986000 + .incbin "baserom.gba", 0x986000, 0x000189E + +gUnk_0898789E:: @ 0898789E + .incbin "baserom.gba", 0x98789E, 0x0000074 + +gUnk_08987912:: @ 08987912 + .incbin "baserom.gba", 0x987912, 0x0000CEE + +gUnk_08988600:: @ 08988600 + .incbin "baserom.gba", 0x988600, 0x0000178 + +gUnk_08988778:: @ 08988778 + .incbin "baserom.gba", 0x988778, 0x0000110 + +gUnk_08988888:: @ 08988888 + .incbin "baserom.gba", 0x988888, 0x0000F77 + +gUnk_089897FF:: @ 089897FF + .incbin "baserom.gba", 0x9897FF, 0x000009F + +gUnk_0898989E:: @ 0898989E + .incbin "baserom.gba", 0x98989E, 0x000000C + +gUnk_089898AA:: @ 089898AA + .incbin "baserom.gba", 0x9898AA, 0x0000176 + +gUnk_08989A20:: @ 08989A20 + .incbin "baserom.gba", 0x989A20, 0x00004CE + +gUnk_08989EEE:: @ 08989EEE + .incbin "baserom.gba", 0x989EEE, 0x00011C9 + +gUnk_0898B0B7:: @ 0898B0B7 + .incbin "baserom.gba", 0x98B0B7, 0x00008D2 + +gUnk_0898B989:: @ 0898B989 + .incbin "baserom.gba", 0x98B989, 0x0001455 + +gUnk_0898CDDE:: @ 0898CDDE + .incbin "baserom.gba", 0x98CDDE, 0x0002222 + +gUnk_0898F000:: @ 0898F000 + .incbin "baserom.gba", 0x98F000, 0x0000799 + +gUnk_0898F799:: @ 0898F799 + .incbin "baserom.gba", 0x98F799, 0x0000755 + +gUnk_0898FEEE:: @ 0898FEEE + .incbin "baserom.gba", 0x98FEEE, 0x0000112 + +gUnk_08990000:: @ 08990000 + .incbin "baserom.gba", 0x990000, 0x000001B + +gUnk_0899001B:: @ 0899001B + .incbin "baserom.gba", 0x99001B, 0x00000B3 + +gUnk_089900CE:: @ 089900CE + .incbin "baserom.gba", 0x9900CE, 0x0000001 + +gUnk_089900CF:: @ 089900CF + .incbin "baserom.gba", 0x9900CF, 0x0000070 + +gUnk_0899013F:: @ 0899013F + .incbin "baserom.gba", 0x99013F, 0x0000001 + +gUnk_08990140:: @ 08990140 + .incbin "baserom.gba", 0x990140, 0x0000030 + +gUnk_08990170:: @ 08990170 + .incbin "baserom.gba", 0x990170, 0x0000098 + +gUnk_08990208:: @ 08990208 + .incbin "baserom.gba", 0x990208, 0x0000108 + +gUnk_08990310:: @ 08990310 + .incbin "baserom.gba", 0x990310, 0x00002F0 + +gUnk_08990600:: @ 08990600 + .incbin "baserom.gba", 0x990600, 0x0000400 + +gUnk_08990A00:: @ 08990A00 + .incbin "baserom.gba", 0x990A00, 0x000177A + +gUnk_0899217A:: @ 0899217A + .incbin "baserom.gba", 0x99217A, 0x0000C74 + +gUnk_08992DEE:: @ 08992DEE + .incbin "baserom.gba", 0x992DEE, 0x00000F4 + +gUnk_08992EE2:: @ 08992EE2 + .incbin "baserom.gba", 0x992EE2, 0x000000B + +gUnk_08992EED:: @ 08992EED + .incbin "baserom.gba", 0x992EED, 0x0000813 + +gUnk_08993700:: @ 08993700 + .incbin "baserom.gba", 0x993700, 0x0000B44 + +gUnk_08994244:: @ 08994244 + .incbin "baserom.gba", 0x994244, 0x0001311 + +gUnk_08995555:: @ 08995555 + .incbin "baserom.gba", 0x995555, 0x00019AB + +gUnk_08996F00:: @ 08996F00 + .incbin "baserom.gba", 0x996F00, 0x0000755 + +gUnk_08997655:: @ 08997655 + .incbin "baserom.gba", 0x997655, 0x000061C + +gUnk_08997C71:: @ 08997C71 + .incbin "baserom.gba", 0x997C71, 0x0000B27 + +gUnk_08998798:: @ 08998798 + .incbin "baserom.gba", 0x998798, 0x00000EF + +gUnk_08998887:: @ 08998887 + .incbin "baserom.gba", 0x998887, 0x0000001 + +gUnk_08998888:: @ 08998888 + .incbin "baserom.gba", 0x998888, 0x0000028 + +gUnk_089988B0:: @ 089988B0 + .incbin "baserom.gba", 0x9988B0, 0x00000A5 + +gUnk_08998955:: @ 08998955 + .incbin "baserom.gba", 0x998955, 0x0000034 + +gUnk_08998989:: @ 08998989 + .incbin "baserom.gba", 0x998989, 0x0000177 + +gUnk_08998B00:: @ 08998B00 + .incbin "baserom.gba", 0x998B00, 0x0000488 + +gUnk_08998F88:: @ 08998F88 + .incbin "baserom.gba", 0x998F88, 0x0000057 + +gUnk_08998FDF:: @ 08998FDF + .incbin "baserom.gba", 0x998FDF, 0x00002FF + +gUnk_089992DE:: @ 089992DE + .incbin "baserom.gba", 0x9992DE, 0x0000004 + +gUnk_089992E2:: @ 089992E2 + .incbin "baserom.gba", 0x9992E2, 0x000058E + +gUnk_08999870:: @ 08999870 + .incbin "baserom.gba", 0x999870, 0x0000004 + +gUnk_08999874:: @ 08999874 + .incbin "baserom.gba", 0x999874, 0x0000013 + +gUnk_08999887:: @ 08999887 + .incbin "baserom.gba", 0x999887, 0x0000013 + +gUnk_0899989A:: @ 0899989A + .incbin "baserom.gba", 0x99989A, 0x0000001 + +gUnk_0899989B:: @ 0899989B + .incbin "baserom.gba", 0x99989B, 0x0000066 + +gUnk_08999901:: @ 08999901 + .incbin "baserom.gba", 0x999901, 0x0000021 + +gUnk_08999922:: @ 08999922 + .incbin "baserom.gba", 0x999922, 0x000005E + +gUnk_08999980:: @ 08999980 + .incbin "baserom.gba", 0x999980, 0x0000007 + +gUnk_08999987:: @ 08999987 + .incbin "baserom.gba", 0x999987, 0x0000001 + +gUnk_08999988:: @ 08999988 + .incbin "baserom.gba", 0x999988, 0x0000001 + +gUnk_08999989:: @ 08999989 + .incbin "baserom.gba", 0x999989, 0x0000001 + +gUnk_0899998A:: @ 0899998A + .incbin "baserom.gba", 0x99998A, 0x000000E + +gUnk_08999998:: @ 08999998 + .incbin "baserom.gba", 0x999998, 0x0000001 + +gUnk_08999999:: @ 08999999 + .incbin "baserom.gba", 0x999999, 0x0000013 + +gUnk_089999AC:: @ 089999AC + .incbin "baserom.gba", 0x9999AC, 0x0000010 + +gUnk_089999BC:: @ 089999BC + .incbin "baserom.gba", 0x9999BC, 0x000003C + +gUnk_089999F8:: @ 089999F8 + .incbin "baserom.gba", 0x9999F8, 0x00000B2 + +gUnk_08999AAA:: @ 08999AAA + .incbin "baserom.gba", 0x999AAA, 0x0000056 + +gUnk_08999B00:: @ 08999B00 + .incbin "baserom.gba", 0x999B00, 0x00000CC + +gUnk_08999BCC:: @ 08999BCC + .incbin "baserom.gba", 0x999BCC, 0x00003BC + +gUnk_08999F88:: @ 08999F88 + .incbin "baserom.gba", 0x999F88, 0x00008AB + +gUnk_0899A833:: @ 0899A833 + .incbin "baserom.gba", 0x99A833, 0x0000201 + +gUnk_0899AA34:: @ 0899AA34 + .incbin "baserom.gba", 0x99AA34, 0x0000075 + +gUnk_0899AAA9:: @ 0899AAA9 + .incbin "baserom.gba", 0x99AAA9, 0x0000012 + +gUnk_0899AABB:: @ 0899AABB + .incbin "baserom.gba", 0x99AABB, 0x0000545 + +gUnk_0899B000:: @ 0899B000 + .incbin "baserom.gba", 0x99B000, 0x00003FF + +gUnk_0899B3FF:: @ 0899B3FF + .incbin "baserom.gba", 0x99B3FF, 0x000059A + +gUnk_0899B999:: @ 0899B999 + .incbin "baserom.gba", 0x99B999, 0x0000006 + +gUnk_0899B99F:: @ 0899B99F + .incbin "baserom.gba", 0x99B99F, 0x0000620 + +gUnk_0899BFBF:: @ 0899BFBF + .incbin "baserom.gba", 0x99BFBF, 0x000003A + +gUnk_0899BFF9:: @ 0899BFF9 + .incbin "baserom.gba", 0x99BFF9, 0x0000708 + +gUnk_0899C701:: @ 0899C701 + .incbin "baserom.gba", 0x99C701, 0x00027ED + +gUnk_0899EEEE:: @ 0899EEEE + .incbin "baserom.gba", 0x99EEEE, 0x000012D + +gUnk_0899F01B:: @ 0899F01B + .incbin "baserom.gba", 0x99F01B, 0x0000FE6 + +gUnk_089A0001:: @ 089A0001 + .incbin "baserom.gba", 0x9A0001, 0x0000087 + +gUnk_089A0088:: @ 089A0088 + .incbin "baserom.gba", 0x9A0088, 0x0000811 + +gUnk_089A0899:: @ 089A0899 + .incbin "baserom.gba", 0x9A0899, 0x00000F7 + +gUnk_089A0990:: @ 089A0990 + .incbin "baserom.gba", 0x9A0990, 0x0000B3C + +gUnk_089A14CC:: @ 089A14CC + .incbin "baserom.gba", 0x9A14CC, 0x0001B34 + +gUnk_089A3000:: @ 089A3000 + .incbin "baserom.gba", 0x9A3000, 0x0000D18 + +gUnk_089A3D18:: @ 089A3D18 + .incbin "baserom.gba", 0x9A3D18, 0x000073D + +gUnk_089A4455:: @ 089A4455 + .incbin "baserom.gba", 0x9A4455, 0x0001188 + +gUnk_089A55DD:: @ 089A55DD + .incbin "baserom.gba", 0x9A55DD, 0x0002E3B + +gUnk_089A8418:: @ 089A8418 + .incbin "baserom.gba", 0x9A8418, 0x00013E7 + +gUnk_089A97FF:: @ 089A97FF + .incbin "baserom.gba", 0x9A97FF, 0x000019A + +gUnk_089A9999:: @ 089A9999 + .incbin "baserom.gba", 0x9A9999, 0x0000101 + +gUnk_089A9A9A:: @ 089A9A9A + .incbin "baserom.gba", 0x9A9A9A, 0x0000F00 + +gUnk_089AA99A:: @ 089AA99A + .incbin "baserom.gba", 0x9AA99A, 0x0000089 + +gUnk_089AAA23:: @ 089AAA23 + .incbin "baserom.gba", 0x9AAA23, 0x0000087 + +gUnk_089AAAAA:: @ 089AAAAA + .incbin "baserom.gba", 0x9AAAAA, 0x0000111 + +gUnk_089AABBB:: @ 089AABBB + .incbin "baserom.gba", 0x9AABBB, 0x0000011 + +gUnk_089AABCC:: @ 089AABCC + .incbin "baserom.gba", 0x9AABCC, 0x0000FEF + +gUnk_089ABBBB:: @ 089ABBBB + .incbin "baserom.gba", 0x9ABBBB, 0x0000A33 + +gUnk_089AC5EE:: @ 089AC5EE + .incbin "baserom.gba", 0x9AC5EE, 0x00018ED + +gUnk_089ADEDB:: @ 089ADEDB + .incbin "baserom.gba", 0x9ADEDB, 0x0002125 + +gUnk_089B0000:: @ 089B0000 + .incbin "baserom.gba", 0x9B0000, 0x00002BC + +gUnk_089B02BC:: @ 089B02BC + .incbin "baserom.gba", 0x9B02BC, 0x0000054 + +gUnk_089B0310:: @ 089B0310 + .incbin "baserom.gba", 0x9B0310, 0x0000CF0 + +gUnk_089B1000:: @ 089B1000 + .incbin "baserom.gba", 0x9B1000, 0x0000D90 diff --git a/linker.ld b/linker.ld index 7714d9f2..33520d1c 100644 --- a/linker.ld +++ b/linker.ld @@ -741,7 +741,6 @@ SECTIONS { asm/object45.o(.text); asm/giantBookLadder.o(.text); src/object/heartContainer.o(.text); - asm/heartContainer.o(.text); asm/object48.o(.text); src/object/object49.o(.text); asm/object49.o(.text); @@ -917,6 +916,8 @@ SECTIONS { src/object/greatFairy.o(.rodata); data/greatFairyAnimations.o(.rodata); data/data_081208A0.o(.rodata); + src/object/heartContainer.o(.rodata); + data/data_08121C58.o(.rodata); data/strings.o(.rodata); data/data_089FC6C4.o(.rodata); } >rom diff --git a/src/object/heartContainer.c b/src/object/heartContainer.c index 10714a8e..b32b1981 100644 --- a/src/object/heartContainer.c +++ b/src/object/heartContainer.c @@ -1,21 +1,33 @@ #include "global.h" #include "entity.h" #include "flags.h" +#include "functions.h" extern void DeleteThisEntity(); -extern void sub_0808E714(Entity*); +extern void sub_08080CB4(Entity*); +extern int sub_08017850(Entity*); +extern void CreateItemEntity(u32, u32, u32); -extern void (*const gUnk_08121C48[])(Entity*); +static void sub_0808E6A0(Entity*); +static void sub_0808E6E4(Entity*); +static void sub_0808E714(Entity*); +static void sub_0808E764(Entity*); + +static void (*const gHeartContainerActions[])(Entity*) = { + sub_0808E6A0, + sub_0808E6E4, + sub_0808E714, + sub_0808E764, +}; extern BoundingBox gUnk_08121C58; void HeartContainer(Entity* this) { - gUnk_08121C48[this->action](this); + gHeartContainerActions[this->action](this); } -void sub_0808E6A0(Entity* this) { - - if (CheckFlags(*(u16*)&this->cutsceneBeh)) { +static void sub_0808E6A0(Entity* this) { + if (CheckFlags(this->cutsceneBeh.HWORD)) { DeleteThisEntity(); } this->action = 1; @@ -26,7 +38,7 @@ void sub_0808E6A0(Entity* this) { this->scriptedScene = 3; } -void sub_0808E6E4(Entity* this) { +static void sub_0808E6E4(Entity* this) { if (CheckFlags(this->field_0x86)) { this->action = 2; this->spriteSettings.b.draw = 1; @@ -34,3 +46,26 @@ void sub_0808E6E4(Entity* this) { sub_0808E714(this); } } + +static void sub_0808E714(Entity* this) { + int var0 = 0x400 - this->field_0xf * 8; + if (var0 > 0x100) { + this->field_0xf++; + sub_0805EC9C(this, var0, var0, 0); + } else { + this->action = 3; + this->field_0x3c |= 0x10; + sub_0805EC60(this); + PlaySFX(0x141); + } + sub_08080CB4(this); +} + +static void sub_0808E764(Entity* this) { + sub_08080CB4(this); + if (!(gLinkState.flags.all & 0x80) && sub_08017850(this)) { + SetFlag(this->cutsceneBeh.HWORD); + CreateItemEntity(0x62, 0, 0); + DeleteThisEntity(); + } +} From b4a34e01bfee05b081f35844b08c9abb2e5ef9a4 Mon Sep 17 00:00:00 2001 From: theo3 Date: Mon, 3 Aug 2020 12:15:05 -0700 Subject: [PATCH 068/158] object2A.c ok --- asm/code_08016DF8.s | 6 +- asm/code_08070698.s | 32 +- asm/code_080732D0.s | 16 +- asm/code_08076C80.s | 2 +- asm/code_08078778.s | 2 +- asm/code_0807CC3C.s | 2 +- asm/code_080A5574.s | 4 +- asm/ghini.s | 2 +- asm/gibdo.s | 2 +- asm/itemForSale.s | 2 +- asm/likeLike.s | 2 +- asm/lilypadLarge.s | 2 +- asm/mazaalBracelet.s | 2 +- asm/minecart.s | 644 --------------------- asm/non_matching/minecart/sub_080919AC.inc | 287 +++++++++ asm/object2A.s | 87 --- asm/pesto.s | 2 +- asm/respawnLink.s | 4 +- asm/stairsInteract.s | 2 +- asm/vaatiProjectile.s | 2 +- include/functions.h | 8 +- linker.ld | 2 + src/enemy/rupeeLike.c | 2 +- src/object/minecart.c | 225 +++++++ src/object/object2A.c | 40 ++ 25 files changed, 604 insertions(+), 777 deletions(-) create mode 100644 asm/non_matching/minecart/sub_080919AC.inc create mode 100644 src/object/minecart.c create mode 100644 src/object/object2A.c diff --git a/asm/code_08016DF8.s b/asm/code_08016DF8.s index 7b4a1a12..d630fab9 100644 --- a/asm/code_08016DF8.s +++ b/asm/code_08016DF8.s @@ -296,7 +296,7 @@ _0801702E: ands r0, r1 cmp r0, #0 beq _08017046 - bl sub_08077B2C + bl ResetLink _08017046: ldr r0, [r4, #0x30] movs r1, #0x80 @@ -521,7 +521,7 @@ sub_080171F0: @ 0x080171F0 ldrb r0, [r4, #0x1a] cmp r0, #0 beq _08017202 - bl sub_08077B2C + bl ResetLink _08017202: ldrb r0, [r4, #0x14] cmp r0, #0 @@ -2415,7 +2415,7 @@ _08017FC2: adds r1, #0x3d movs r0, #0xf8 strb r0, [r1] - bl sub_08077B2C + bl ResetLink movs r0, #1 b _08018020 _08018002: diff --git a/asm/code_08070698.s b/asm/code_08070698.s index 2e64ca42..eabdd297 100644 --- a/asm/code_08070698.s +++ b/asm/code_08070698.s @@ -178,7 +178,7 @@ _080707F8: _08070800: ldr r0, _08070814 @ =gLinkEntity bl sub_0806F948 - bl sub_08077B2C + bl ResetLink adds r0, r5, #0 bl sub_08077698 b _08070BE4 @@ -307,7 +307,7 @@ _080708E4: ldrb r0, [r0, #6] cmp r0, #0 bne _08070902 - bl sub_08077B2C + bl ResetLink _08070902: ldr r0, [r4, #0x30] ands r0, r6 @@ -757,7 +757,7 @@ _08070C7E: rsbs r0, r0, #0 ands r0, r1 strb r0, [r2] - bl sub_08077B2C + bl ResetLink bl sub_0807A108 movs r0, #0x7b bl PlaySFX @@ -896,7 +896,7 @@ _08070DA2: movs r0, #0xa6 lsls r0, r0, #1 bl PlaySFX - bl sub_08077B2C + bl ResetLink bl sub_08078F60 pop {r4, pc} .align 2, 0 @@ -1200,7 +1200,7 @@ _08071004: _08071008: movs r0, #1 strb r0, [r4, #0xd] - bl sub_08077B2C + bl ResetLink bl sub_08078F60 pop {r4, pc} .align 2, 0 @@ -1303,7 +1303,7 @@ sub_080710A8: @ 0x080710A8 ands r3, r0 cmp r3, #0 bne _080710FA - bl sub_08077B2C + bl ResetLink ldr r0, [r5, #0x30] movs r1, #8 ands r0, r1 @@ -1567,7 +1567,7 @@ _080712E0: _080712E2: strh r0, [r5, #8] _080712E4: - bl sub_08077B2C + bl ResetLink pop {r4, r5, pc} .align 2, 0 _080712EC: .4byte 0x0000044C @@ -2329,7 +2329,7 @@ _0807189C: .4byte gUnk_0811BAD4 sub_080718A0: @ 0x080718A0 push {r4, r5, lr} adds r4, r0, #0 - bl sub_08077B2C + bl ResetLink ldr r0, _080718EC @ =gUnk_03000B80 adds r0, #0x63 movs r1, #0 @@ -2846,7 +2846,7 @@ _08071C5A: strb r3, [r2, #6] adds r0, r4, #0 bl sub_0800451C - bl sub_08077B2C + bl ResetLink movs r0, #0x87 bl PlaySFX _08071C9C: @@ -3127,7 +3127,7 @@ _08071EAC: .4byte gUnk_0811BB48 sub_08071EB0: @ 0x08071EB0 push {r4, lr} adds r4, r0, #0 - bl sub_08077B2C + bl ResetLink adds r0, r4, #0 movs r1, #0xe bl CreatePlayerBomb @@ -3367,7 +3367,7 @@ sub_08072064: @ 0x08072064 lsls r0, r0, #8 orrs r1, r0 strh r1, [r2, #8] - bl sub_08077B2C + bl ResetLink pop {pc} .align 2, 0 _08072094: .4byte gLinkState @@ -3478,7 +3478,7 @@ _08072154: lsls r0, r0, #1 _08072158: strh r0, [r2, #8] - bl sub_08077B2C + bl ResetLink adds r0, r4, #0 bl sub_08072168 pop {r4, pc} @@ -3723,7 +3723,7 @@ _08072332: ldr r1, _08072350 @ =0x00000401 orrs r0, r1 str r0, [r5, #0x30] - bl sub_08077B2C + bl ResetLink movs r0, #0x92 lsls r0, r0, #1 bl PlaySFX @@ -4132,7 +4132,7 @@ _0807266E: movs r0, #1 strb r0, [r4, #0xd] strb r1, [r4, #0xe] - bl sub_08077B2C + bl ResetLink ldr r3, [r5, #0x30] movs r0, #0x80 ands r0, r3 @@ -4626,7 +4626,7 @@ _08072A14: orrs r1, r2 ldrb r2, [r6] bl SetTile - bl sub_08077B2C + bl ResetLink adds r0, r5, #0 bl sub_08072A60 movs r0, #0x81 @@ -5015,7 +5015,7 @@ _08072D30: movs r0, #5 strb r0, [r4, #0xe] strb r1, [r4, #0xf] - bl sub_08077B2C + bl ResetLink _08072D4E: pop {r4, pc} .align 2, 0 diff --git a/asm/code_080732D0.s b/asm/code_080732D0.s index 77d8d944..dc1ead63 100644 --- a/asm/code_080732D0.s +++ b/asm/code_080732D0.s @@ -247,7 +247,7 @@ sub_08073468: @ 0x08073468 movs r3, #0 bl CreateObjectWithParent _080734AC: - bl sub_08077B2C + bl ResetLink ldr r0, [r4, #0x20] cmp r0, #0 bgt _080734C0 @@ -1639,7 +1639,7 @@ sub_08073F04: @ 0x08073F04 rsbs r1, r1, #0 ands r0, r1 str r0, [r2, #0x30] - bl sub_08077B2C + bl ResetLink pop {pc} .align 2, 0 _08073F48: .4byte gLinkState @@ -2025,7 +2025,7 @@ sub_08074200: @ 0x08074200 ldrb r0, [r4, #0xc] cmp r0, #3 beq _08074226 - bl sub_08077B2C + bl ResetLink ldr r1, _08074228 @ =gLinkState movs r0, #3 strb r0, [r1, #0xc] @@ -2270,7 +2270,7 @@ sub_080743A4: @ 0x080743A4 strb r1, [r0, #0x10] adds r0, #0x42 strb r3, [r0] - bl sub_08077B2C + bl ResetLink pop {pc} .align 2, 0 _080743D0: .4byte gLinkState @@ -2873,7 +2873,7 @@ _08074840: _08074862: ldr r0, _080748B0 @ =0x000001A5 bl PlaySFX - bl sub_08077B2C + bl ResetLink _0807486C: ldr r5, _080748AC @ =gLinkState adds r4, r5, #0 @@ -3040,7 +3040,7 @@ sub_0807496C: @ 0x0807496C adds r1, #0x38 movs r0, #3 strb r0, [r1] - bl sub_08077B2C + bl ResetLink _080749A2: pop {r4, pc} .align 2, 0 @@ -3124,7 +3124,7 @@ _08074A34: strh r0, [r5, #8] strb r1, [r4, #0x15] _08074A3C: - bl sub_08077B2C + bl ResetLink _08074A40: pop {r4, r5, pc} .align 2, 0 @@ -3367,7 +3367,7 @@ _08074BF4: .4byte gLinkState sub_08074BF8: @ 0x08074BF8 push {r4, lr} adds r4, r0, #0 - bl sub_08077B2C + bl ResetLink adds r2, r4, #0 adds r2, #0x29 ldrb r1, [r2] diff --git a/asm/code_08076C80.s b/asm/code_08076C80.s index cf1c87bf..2b1a0501 100644 --- a/asm/code_08076C80.s +++ b/asm/code_08076C80.s @@ -1716,6 +1716,6 @@ _08077B1C: .4byte 0xFF7FFFFF thumb_func_start sub_08077B20 sub_08077B20: @ 0x08077B20 push {lr} - bl sub_08077B2C + bl ResetLink bl sub_08077AEC pop {pc} \ No newline at end of file diff --git a/asm/code_08078778.s b/asm/code_08078778.s index 56747830..5475dc74 100644 --- a/asm/code_08078778.s +++ b/asm/code_08078778.s @@ -1497,7 +1497,7 @@ _08079374: ldrb r0, [r4, #2] cmp r0, #0 bne _080793CA - bl sub_08077B2C + bl ResetLink ldr r0, [r4, #0x30] movs r1, #8 ands r0, r1 diff --git a/asm/code_0807CC3C.s b/asm/code_0807CC3C.s index 7c2185ce..6732a77c 100644 --- a/asm/code_0807CC3C.s +++ b/asm/code_0807CC3C.s @@ -7062,7 +7062,7 @@ sub_0807FF6C: @ 0x0807FF6C strh r1, [r0] adds r0, #4 strh r1, [r0] - bl sub_08077B2C + bl ResetLink bl sub_080791D0 ldr r0, _0807FFCC @ =gUnk_03004030 ldrb r0, [r0, #8] diff --git a/asm/code_080A5574.s b/asm/code_080A5574.s index 1655baf1..6b4f2d40 100644 --- a/asm/code_080A5574.s +++ b/asm/code_080A5574.s @@ -11392,7 +11392,7 @@ _080AAC84: adds r1, r4, #0 bl ResolveEntityOnTop _080AAC8C: - bl sub_08077B2C + bl ResetLink ldr r2, _080AACB4 @ =gLinkState ldrb r1, [r2, #0x1a] movs r0, #0x80 @@ -11863,7 +11863,7 @@ _080AAFE0: _080AAFFC: .4byte gLinkEntity _080AB000: .4byte gLinkState _080AB004: - bl sub_08077B2C + bl ResetLink ldr r2, _080AB02C @ =gLinkState ldrb r1, [r2, #0x1a] movs r0, #0x80 diff --git a/asm/ghini.s b/asm/ghini.s index ee0c58bc..f8dd37b6 100644 --- a/asm/ghini.s +++ b/asm/ghini.s @@ -986,7 +986,7 @@ _0803F734: .4byte 0x0000FFFE sub_0803F738: @ 0x0803F738 push {r4, lr} adds r4, r0, #0 - bl sub_08077B2C + bl ResetLink ldr r2, _0803F768 @ =gLinkState ldrb r1, [r2, #0x1a] movs r0, #0x80 diff --git a/asm/gibdo.s b/asm/gibdo.s index f74e786a..7581fab4 100644 --- a/asm/gibdo.s +++ b/asm/gibdo.s @@ -328,7 +328,7 @@ sub_080376D0: @ 0x080376D0 bl sub_080379EC cmp r0, #0 bne _0803773A - bl sub_08077B2C + bl ResetLink ldr r2, _08037724 @ =gLinkState ldrb r1, [r2, #0x1a] movs r0, #0x80 diff --git a/asm/itemForSale.s b/asm/itemForSale.s index 6c82a3af..52c82031 100644 --- a/asm/itemForSale.s +++ b/asm/itemForSale.s @@ -133,7 +133,7 @@ _080818F0: movs r0, #1 strb r0, [r4, #0xd] bl sub_08078B48 - bl sub_08077B2C + bl ResetLink ldr r1, _08081924 @ =gLinkState movs r0, #4 strb r0, [r1, #5] diff --git a/asm/likeLike.s b/asm/likeLike.s index cd07a3ec..81490b51 100644 --- a/asm/likeLike.s +++ b/asm/likeLike.s @@ -439,7 +439,7 @@ _0802808E: .align 2, 0 _08028098: .4byte gUnk_02002A40 _0802809C: - bl sub_08077B2C + bl ResetLink ldr r2, _08028104 @ =gLinkState ldrb r1, [r2, #0x1a] movs r0, #0x80 diff --git a/asm/lilypadLarge.s b/asm/lilypadLarge.s index 5bda9660..86828bd3 100644 --- a/asm/lilypadLarge.s +++ b/asm/lilypadLarge.s @@ -1317,7 +1317,7 @@ _08085EBE: beq _08085EE8 bl DeleteEntity _08085EE8: - bl sub_08077B2C + bl ResetLink pop {pc} .align 2, 0 _08085EF0: .4byte gLinkEntity diff --git a/asm/mazaalBracelet.s b/asm/mazaalBracelet.s index 26460b6b..04664b4f 100644 --- a/asm/mazaalBracelet.s +++ b/asm/mazaalBracelet.s @@ -3046,7 +3046,7 @@ _0803B820: .4byte gLinkEntity sub_0803B824: @ 0x0803B824 push {r4, r5, lr} adds r5, r0, #0 - bl sub_08077B2C + bl ResetLink ldr r2, _0803B864 @ =gLinkState ldrb r1, [r2, #0x1a] movs r0, #0x80 diff --git a/asm/minecart.s b/asm/minecart.s index 1075a035..f06f5240 100644 --- a/asm/minecart.s +++ b/asm/minecart.s @@ -6,650 +6,6 @@ .text - - thumb_func_start Minecart -Minecart: @ 0x080916CC - push {r4, lr} - adds r4, r0, #0 - ldr r1, _080916E8 @ =gUnk_081223A8 - ldrb r0, [r4, #0xc] - lsls r0, r0, #2 - adds r0, r0, r1 - ldr r1, [r0] - adds r0, r4, #0 - bl _call_via_r1 - adds r4, #0x41 - movs r0, #0 - strb r0, [r4] - pop {r4, pc} - .align 2, 0 -_080916E8: .4byte gUnk_081223A8 - - thumb_func_start sub_080916EC -sub_080916EC: @ 0x080916EC - push {r4, r5, r6, r7, lr} - adds r6, r0, #0 - ldrb r0, [r6, #0xe] - lsls r0, r0, #3 - ldr r1, _080917C8 @ =gUnk_030010EC - adds r7, r0, r1 - adds r0, r6, #0 - adds r0, #0x84 - str r7, [r0] - ldr r0, _080917CC @ =gRoomControls - ldrb r0, [r0, #5] - ldrb r1, [r7, #4] - cmp r0, r1 - bne _08091716 - ldr r0, _080917D0 @ =gLinkState - ldr r0, [r0, #0x30] - movs r1, #0x80 - lsls r1, r1, #5 - ands r0, r1 - cmp r0, #0 - beq _0809171A -_08091716: - bl DeleteThisEntity -_0809171A: - ldr r4, _080917CC @ =gRoomControls - ldrh r1, [r7] - movs r5, #0x3f - adds r0, r5, #0 - ands r0, r1 - lsls r0, r0, #4 - ldrh r2, [r4, #6] - adds r0, r0, r2 - adds r0, #8 - strh r0, [r6, #0x2e] - ldrh r1, [r7] - movs r0, #0xfc - lsls r0, r0, #4 - ands r0, r1 - lsrs r0, r0, #2 - ldrh r3, [r4, #8] - adds r0, r0, r3 - adds r0, #8 - strh r0, [r6, #0x32] - ldrb r0, [r7, #5] - strb r0, [r6, #0x14] - ldrb r0, [r7, #6] - strb r0, [r6, #0xb] - movs r2, #1 - strb r2, [r6, #0xc] - ldr r0, _080917D4 @ =gUnk_080FD310 - str r0, [r6, #0x48] - ldrb r1, [r6, #0x10] - movs r0, #0x80 - orrs r0, r1 - strb r0, [r6, #0x10] - adds r0, r6, #0 - adds r0, #0x3f - strb r2, [r0] - adds r1, r6, #0 - adds r1, #0x3c - movs r0, #0x47 - strb r0, [r1] - adds r1, #4 - movs r0, #0x44 - strb r0, [r1] - subs r1, #5 - movs r0, #0x80 - strb r0, [r1] - ldrb r0, [r6, #0x14] - lsls r0, r0, #3 - strb r0, [r6, #0x15] - movs r0, #0xe0 - lsls r0, r0, #3 - strh r0, [r6, #0x24] - adds r2, r6, #0 - adds r2, #0x29 - ldrb r1, [r2] - movs r0, #0x39 - rsbs r0, r0, #0 - ands r0, r1 - movs r1, #0x18 - orrs r0, r1 - strb r0, [r2] - ldrb r1, [r6, #0x14] - adds r1, #4 - ldrb r0, [r6, #0xb] - adds r1, r1, r0 - adds r0, r6, #0 - bl InitAnimationForceUpdate - ldr r0, _080917D8 @ =0x00004022 - movs r2, #0x2e - ldrsh r1, [r6, r2] - ldrh r2, [r4, #6] - subs r1, r1, r2 - asrs r1, r1, #4 - ands r1, r5 - movs r3, #0x32 - ldrsh r2, [r6, r3] - ldrh r3, [r4, #8] - subs r2, r2, r3 - asrs r2, r2, #4 - ands r2, r5 - lsls r2, r2, #6 - orrs r1, r2 - adds r2, r6, #0 - adds r2, #0x38 - ldrb r2, [r2] - bl SetTile - pop {r4, r5, r6, r7, pc} - .align 2, 0 -_080917C8: .4byte gUnk_030010EC -_080917CC: .4byte gRoomControls -_080917D0: .4byte gLinkState -_080917D4: .4byte gUnk_080FD310 -_080917D8: .4byte 0x00004022 - - thumb_func_start sub_080917DC -sub_080917DC: @ 0x080917DC - push {r4, lr} - adds r4, r0, #0 - adds r0, #0x41 - ldrb r1, [r0] - movs r0, #0x7f - ands r0, r1 - cmp r0, #0x1d - bne _08091810 - movs r0, #0xa8 - lsls r0, r0, #0xa - str r0, [r4, #0x20] - movs r0, #7 - strb r0, [r4, #0xc] - ldrb r1, [r4, #0x14] - adds r1, #4 - ldrb r0, [r4, #0xb] - adds r1, r1, r0 - adds r0, r4, #0 - bl InitAnimationForceUpdate - ldr r0, _0809180C @ =0x0000013B - bl PlaySFX - b _080918A0 - .align 2, 0 -_0809180C: .4byte 0x0000013B -_08091810: - adds r0, r4, #0 - bl sub_0800445C - cmp r0, #0 - beq _0809184A - ldr r2, _08091840 @ =gLinkState - ldr r0, [r2, #0x30] - ldr r1, _08091844 @ =0x00040080 - ands r0, r1 - cmp r0, #0 - bne _08091848 - ldrb r0, [r2, #0x1c] - cmp r0, #0 - bne _08091848 - ldrb r0, [r2, #5] - cmp r0, #0 - bne _08091848 - ldrb r0, [r2, #2] - cmp r0, #0 - bne _08091848 - ldrb r0, [r4, #0xe] - adds r0, #1 - b _0809184A - .align 2, 0 -_08091840: .4byte gLinkState -_08091844: .4byte 0x00040080 -_08091848: - movs r0, #0 -_0809184A: - strb r0, [r4, #0xe] - ldrb r0, [r4, #0xb] - cmp r0, #0 - bne _0809189C - ldrb r0, [r4, #0xe] - cmp r0, #8 - bls _080918A0 - ldrb r0, [r4, #0xc] - adds r0, #1 - strb r0, [r4, #0xc] - ldr r2, _08091894 @ =gLinkState - movs r0, #0x81 - strb r0, [r2, #2] - ldr r0, [r2, #0x30] - movs r1, #0x80 - lsls r1, r1, #0x13 - orrs r0, r1 - str r0, [r2, #0x30] - ldr r1, _08091898 @ =gLinkEntity - movs r0, #0x80 - lsls r0, r0, #0xa - str r0, [r1, #0x20] - movs r0, #0x80 - lsls r0, r0, #1 - strh r0, [r1, #0x24] - ldrb r2, [r1, #0x10] - movs r0, #0x7f - ands r0, r2 - strb r0, [r1, #0x10] - bl sub_08077B2C - bl sub_0807A108 - movs r0, #0x7c - bl PlaySFX - b _080918A0 - .align 2, 0 -_08091894: .4byte gLinkState -_08091898: .4byte gLinkEntity -_0809189C: - movs r0, #0 - strb r0, [r4, #0xe] -_080918A0: - pop {r4, pc} - .align 2, 0 - - thumb_func_start sub_080918A4 -sub_080918A4: @ 0x080918A4 - push {r4, r5, lr} - adds r4, r0, #0 - ldr r5, _08091964 @ =gLinkEntity - adds r1, r5, #0 - movs r2, #2 - movs r3, #2 - bl sub_080041A0 - cmp r0, #0 - beq _08091974 - ldrh r0, [r4, #0x2e] - strh r0, [r5, #0x2e] - ldrh r0, [r4, #0x32] - strh r0, [r5, #0x32] - movs r0, #0x36 - ldrsh r1, [r5, r0] - movs r0, #0x10 - rsbs r0, r0, #0 - cmp r1, r0 - ble _0809197E - ldr r0, [r5, #0x20] - cmp r0, #0 - bge _080919A4 - ldrb r0, [r4, #0x14] - lsls r0, r0, #1 - strb r0, [r5, #0x14] - ldr r2, _08091968 @ =gLinkState - ldr r0, [r2, #0x30] - movs r1, #0x80 - lsls r1, r1, #0x13 - eors r0, r1 - movs r1, #0x80 - lsls r1, r1, #5 - orrs r0, r1 - str r0, [r2, #0x30] - ldrb r0, [r4, #0xc] - adds r0, #1 - strb r0, [r4, #0xc] - movs r0, #1 - strb r0, [r4, #0xf] - ldrb r0, [r4, #0x10] - movs r2, #0x20 - orrs r0, r2 - strb r0, [r4, #0x10] - adds r1, r4, #0 - adds r1, #0x3f - movs r0, #0x97 - strb r0, [r1] - adds r0, r5, #0 - adds r0, #0x3c - ldrb r0, [r0] - adds r0, #1 - subs r1, #3 - orrs r0, r2 - strb r0, [r1] - adds r0, r5, #0 - adds r0, #0x3b - ldrb r0, [r0] - adds r2, r4, #0 - adds r2, #0x3b - strb r0, [r2] - adds r1, #4 - movs r0, #0x18 - strb r0, [r1] - adds r1, #4 - movs r0, #8 - strb r0, [r1] - adds r0, r4, #0 - bl sub_0801766C - movs r1, #0x2e - ldrsh r0, [r4, r1] - ldr r2, _0809196C @ =gRoomControls - ldrh r1, [r2, #6] - subs r0, r0, r1 - asrs r0, r0, #4 - movs r3, #0x3f - ands r0, r3 - movs r5, #0x32 - ldrsh r1, [r4, r5] - ldrh r2, [r2, #8] - subs r1, r1, r2 - asrs r1, r1, #4 - ands r1, r3 - lsls r1, r1, #6 - orrs r0, r1 - adds r1, r4, #0 - adds r1, #0x38 - ldrb r1, [r1] - bl sub_0807BA8C - ldr r0, _08091970 @ =0x00000137 - bl PlaySFX - b _0809197E - .align 2, 0 -_08091964: .4byte gLinkEntity -_08091968: .4byte gLinkState -_0809196C: .4byte gRoomControls -_08091970: .4byte 0x00000137 -_08091974: - adds r0, r5, #0 - adds r1, r4, #0 - bl GetFacingDirection - strb r0, [r5, #0x15] -_0809197E: - ldr r3, _080919A8 @ =gLinkEntity - ldr r0, [r3, #0x20] - cmp r0, #0 - bge _080919A4 - adds r0, r4, #0 - adds r0, #0x29 - ldrb r1, [r0] - lsls r1, r1, #0x1d - lsrs r1, r1, #0x1d - subs r1, #1 - adds r3, #0x29 - movs r0, #7 - ands r1, r0 - ldrb r2, [r3] - movs r0, #8 - rsbs r0, r0, #0 - ands r0, r2 - orrs r0, r1 - strb r0, [r3] -_080919A4: - pop {r4, r5, pc} - .align 2, 0 -_080919A8: .4byte gLinkEntity - - thumb_func_start sub_080919AC -sub_080919AC: @ 0x080919AC - push {r4, r5, r6, r7, lr} - mov r7, r8 - push {r7} - adds r5, r0, #0 - ldr r1, _080919D4 @ =gRoomControls - movs r0, #0 - mov r8, r0 - movs r0, #7 - strb r0, [r1, #0xe] - ldr r0, _080919D8 @ =gLinkState - ldr r0, [r0, #0x30] - movs r1, #0x80 - lsls r1, r1, #5 - ands r0, r1 - cmp r0, #0 - bne _080919DC - movs r0, #1 - strb r0, [r5, #0xc] - b _08091C04 - .align 2, 0 -_080919D4: .4byte gRoomControls -_080919D8: .4byte gLinkState -_080919DC: - ldr r4, _08091A14 @ =gLinkEntity - adds r6, r4, #0 - adds r6, #0x5a - ldrb r1, [r6] - movs r7, #0xf - adds r0, r7, #0 - ands r0, r1 - cmp r0, #0 - bne _08091A22 - ldrb r1, [r5, #0x10] - movs r0, #0x7f - ands r0, r1 - strb r0, [r5, #0x10] - adds r0, r5, #0 - adds r1, r4, #0 - bl CopyPosition - ldrb r1, [r6] - movs r0, #0xf0 - ands r0, r1 - cmp r0, #0x10 - bne _08091A18 - adds r1, r5, #0 - adds r1, #0x63 - movs r0, #1 - strb r0, [r1] - b _08091C04 - .align 2, 0 -_08091A14: .4byte gLinkEntity -_08091A18: - adds r0, r5, #0 - adds r0, #0x63 - mov r1, r8 - strb r1, [r0] - b _08091C04 -_08091A22: - ldrb r0, [r5, #0x10] - movs r1, #0x80 - orrs r0, r1 - strb r0, [r5, #0x10] - mov r0, r8 - strh r0, [r4, #0x24] - adds r0, r5, #0 - bl sub_0806F69C - adds r0, r5, #0 - adds r1, r4, #0 - bl CopyPosition - adds r0, r5, #0 - adds r0, #0x29 - ldrb r1, [r0] - lsls r1, r1, #0x1d - lsrs r1, r1, #0x1d - subs r1, #1 - adds r3, r4, #0 - adds r3, #0x29 - movs r0, #7 - ands r1, r0 - ldrb r2, [r3] - movs r0, #8 - rsbs r0, r0, #0 - ands r0, r2 - orrs r0, r1 - strb r0, [r3] - adds r0, r5, #0 - bl sub_08091DDC - cmp r0, #0 - beq _08091A68 - b _08091C04 -_08091A68: - ldr r0, _08091AD8 @ =gUnk_030010A0 - ldr r0, [r0] - ands r0, r7 - cmp r0, #0 - bne _08091A7A - movs r0, #0x9c - lsls r0, r0, #1 - bl PlaySFX -_08091A7A: - ldrb r0, [r5, #0xf] - subs r0, #1 - strb r0, [r5, #0xf] - lsls r0, r0, #0x18 - lsrs r0, r0, #0x18 - cmp r0, #0xff - bne _08091A92 - movs r0, #0x7b - bl PlaySFX - movs r0, #0x3c - strb r0, [r5, #0xf] -_08091A92: - ldr r2, _08091ADC @ =gUnk_081223C8 - ldrb r0, [r5, #0x14] - lsls r0, r0, #1 - adds r1, r0, r2 - ldrb r1, [r1] - lsls r1, r1, #0x18 - asrs r1, r1, #0x18 - adds r0, #1 - adds r0, r0, r2 - movs r2, #0 - ldrsb r2, [r0, r2] - adds r0, r5, #0 - bl sub_080002B4 - adds r4, r0, #0 - ldr r1, _08091AE0 @ =gUnk_081223D8 - ldrb r0, [r5, #0x14] - lsls r0, r0, #2 - adds r0, r0, r1 - ldr r1, [r0] - adds r0, r4, #0 - bl sub_08007DD6 - cmp r0, #0 - bne _08091AE4 - ldrb r0, [r5, #0x15] - movs r1, #0x10 - eors r0, r1 - strb r0, [r5, #0x15] - ldrb r0, [r5, #0x14] - movs r1, #2 - eors r0, r1 - strb r0, [r5, #0x14] - b _08091BD8 - .align 2, 0 -_08091AD8: .4byte gUnk_030010A0 -_08091ADC: .4byte gUnk_081223C8 -_08091AE0: .4byte gUnk_081223D8 -_08091AE4: - adds r0, r4, #0 - subs r0, #0x64 - cmp r0, #0xb - bhi _08091BD8 - lsls r0, r0, #2 - ldr r1, _08091AF8 @ =_08091AFC - adds r0, r0, r1 - ldr r0, [r0] - mov pc, r0 - .align 2, 0 -_08091AF8: .4byte _08091AFC -_08091AFC: @ jump table - .4byte _08091B2C @ case 0 - .4byte _08091BD8 @ case 1 - .4byte _08091BD8 @ case 2 - .4byte _08091BB8 @ case 3 - .4byte _08091BB8 @ case 4 - .4byte _08091BB8 @ case 5 - .4byte _08091BB8 @ case 6 - .4byte _08091BD8 @ case 7 - .4byte _08091BB8 @ case 8 - .4byte _08091BB8 @ case 9 - .4byte _08091BB8 @ case 10 - .4byte _08091BB8 @ case 11 -_08091B2C: - ldrb r1, [r5, #0x10] - movs r0, #0xdf - ands r0, r1 - strb r0, [r5, #0x10] - adds r1, r5, #0 - adds r1, #0x3f - movs r0, #1 - strb r0, [r1] - subs r1, #3 - movs r0, #0x47 - strb r0, [r1] - adds r1, #4 - movs r0, #0x44 - strb r0, [r1] - subs r1, #5 - movs r4, #0x80 - movs r0, #0x80 - strb r0, [r1] - movs r0, #6 - strb r0, [r5, #0xc] - adds r0, r5, #0 - bl sub_08017744 - ldr r2, _08091BAC @ =gLinkState - movs r0, #0x41 - strb r0, [r2, #2] - ldr r0, [r2, #0x30] - movs r1, #0x80 - lsls r1, r1, #5 - eors r0, r1 - movs r1, #0x80 - lsls r1, r1, #0x13 - orrs r0, r1 - str r0, [r2, #0x30] - ldr r1, _08091BB0 @ =gLinkEntity - movs r0, #0x80 - lsls r0, r0, #0xa - str r0, [r1, #0x20] - movs r0, #0x80 - lsls r0, r0, #2 - strh r0, [r1, #0x24] - ldrb r0, [r5, #0x14] - lsls r0, r0, #1 - strb r0, [r1, #0x14] - ldrb r0, [r5, #0x15] - strb r0, [r1, #0x15] - ldrb r0, [r1, #0x10] - orrs r4, r0 - strb r4, [r1, #0x10] - adds r0, r5, #0 - bl sub_08004168 - ldrb r1, [r5, #0x14] - adds r1, #0xc - adds r0, r5, #0 - bl InitAnimationForceUpdate - movs r0, #0x78 - bl PlaySFX - ldr r0, _08091BB4 @ =0x00000139 - bl PlaySFX - b _08091C04 - .align 2, 0 -_08091BAC: .4byte gLinkState -_08091BB0: .4byte gLinkEntity -_08091BB4: .4byte 0x00000139 -_08091BB8: - adds r0, r5, #0 - bl sub_080002B8 - cmp r4, r0 - bne _08091BD8 - adds r0, r5, #0 - bl sub_08091C0C - ldr r1, _08091BD4 @ =gLinkEntity - ldrb r0, [r5, #0x14] - lsls r0, r0, #1 - strb r0, [r1, #0x14] - b _08091C04 - .align 2, 0 -_08091BD4: .4byte gLinkEntity -_08091BD8: - ldr r2, _08091BF8 @ =gLinkEntity - ldrb r0, [r5, #0x14] - lsls r1, r0, #1 - strb r1, [r2, #0x14] - adds r1, r5, #0 - adds r1, #0x58 - ldrb r1, [r1] - lsls r0, r0, #0x18 - lsrs r0, r0, #0x18 - cmp r1, r0 - bne _08091BFC - adds r0, r5, #0 - bl UpdateAnimationSingleFrame - b _08091C04 - .align 2, 0 -_08091BF8: .4byte gLinkEntity -_08091BFC: - ldrb r1, [r5, #0x14] - adds r0, r5, #0 - bl InitAnimationForceUpdate -_08091C04: - pop {r3} - mov r8, r3 - pop {r4, r5, r6, r7, pc} - .align 2, 0 - thumb_func_start sub_08091C0C sub_08091C0C: @ 0x08091C0C push {r4, lr} diff --git a/asm/non_matching/minecart/sub_080919AC.inc b/asm/non_matching/minecart/sub_080919AC.inc new file mode 100644 index 00000000..e7c12d24 --- /dev/null +++ b/asm/non_matching/minecart/sub_080919AC.inc @@ -0,0 +1,287 @@ + .include "asm/macros.inc" + + .include "constants/constants.inc" + + .syntax unified + + .text + + .syntax unified + push {r4, r5, r6, r7, lr} + mov r7, r8 + push {r7} + adds r5, r0, #0 + ldr r1, _080919D4 @ =gRoomControls + movs r0, #0 + mov r8, r0 + movs r0, #7 + strb r0, [r1, #0xe] + ldr r0, _080919D8 @ =gLinkState + ldr r0, [r0, #0x30] + movs r1, #0x80 + lsls r1, r1, #5 + ands r0, r1 + cmp r0, #0 + bne _080919DC + movs r0, #1 + strb r0, [r5, #0xc] + b _08091C04 + .align 2, 0 +_080919D4: .4byte gRoomControls +_080919D8: .4byte gLinkState +_080919DC: + ldr r4, _08091A14 @ =gLinkEntity + adds r6, r4, #0 + adds r6, #0x5a + ldrb r1, [r6] + movs r7, #0xf + adds r0, r7, #0 + ands r0, r1 + cmp r0, #0 + bne _08091A22 + ldrb r1, [r5, #0x10] + movs r0, #0x7f + ands r0, r1 + strb r0, [r5, #0x10] + adds r0, r5, #0 + adds r1, r4, #0 + bl CopyPosition + ldrb r1, [r6] + movs r0, #0xf0 + ands r0, r1 + cmp r0, #0x10 + bne _08091A18 + adds r1, r5, #0 + adds r1, #0x63 + movs r0, #1 + strb r0, [r1] + b _08091C04 + .align 2, 0 +_08091A14: .4byte gLinkEntity +_08091A18: + adds r0, r5, #0 + adds r0, #0x63 + mov r1, r8 + strb r1, [r0] + b _08091C04 +_08091A22: + ldrb r0, [r5, #0x10] + movs r1, #0x80 + orrs r0, r1 + strb r0, [r5, #0x10] + mov r0, r8 + strh r0, [r4, #0x24] + adds r0, r5, #0 + bl sub_0806F69C + adds r0, r5, #0 + adds r1, r4, #0 + bl CopyPosition + adds r0, r5, #0 + adds r0, #0x29 + ldrb r1, [r0] + lsls r1, r1, #0x1d + lsrs r1, r1, #0x1d + subs r1, #1 + adds r3, r4, #0 + adds r3, #0x29 + movs r0, #7 + ands r1, r0 + ldrb r2, [r3] + movs r0, #8 + rsbs r0, r0, #0 + ands r0, r2 + orrs r0, r1 + strb r0, [r3] + adds r0, r5, #0 + bl sub_08091DDC + cmp r0, #0 + beq _08091A68 + b _08091C04 +_08091A68: + ldr r0, _08091AD8 @ =gUnk_030010A0 + ldr r0, [r0] + ands r0, r7 + cmp r0, #0 + bne _08091A7A + movs r0, #0x9c + lsls r0, r0, #1 + bl PlaySFX +_08091A7A: + ldrb r0, [r5, #0xf] + subs r0, #1 + strb r0, [r5, #0xf] + lsls r0, r0, #0x18 + lsrs r0, r0, #0x18 + cmp r0, #0xff + bne _08091A92 + movs r0, #0x7b + bl PlaySFX + movs r0, #0x3c + strb r0, [r5, #0xf] +_08091A92: + ldr r2, _08091ADC @ =gUnk_081223C8 + ldrb r0, [r5, #0x14] + lsls r0, r0, #1 + adds r1, r0, r2 + ldrb r1, [r1] + lsls r1, r1, #0x18 + asrs r1, r1, #0x18 + adds r0, #1 + adds r0, r0, r2 + movs r2, #0 + ldrsb r2, [r0, r2] + adds r0, r5, #0 + bl sub_080002B4 + adds r4, r0, #0 + ldr r1, _08091AE0 @ =gUnk_081223D8 + ldrb r0, [r5, #0x14] + lsls r0, r0, #2 + adds r0, r0, r1 + ldr r1, [r0] + adds r0, r4, #0 + bl sub_08007DD6 + cmp r0, #0 + bne _08091AE4 + ldrb r0, [r5, #0x15] + movs r1, #0x10 + eors r0, r1 + strb r0, [r5, #0x15] + ldrb r0, [r5, #0x14] + movs r1, #2 + eors r0, r1 + strb r0, [r5, #0x14] + b _08091BD8 + .align 2, 0 +_08091AD8: .4byte gUnk_030010A0 +_08091ADC: .4byte gUnk_081223C8 +_08091AE0: .4byte gUnk_081223D8 +_08091AE4: + adds r0, r4, #0 + subs r0, #0x64 + cmp r0, #0xb + bhi _08091BD8 + lsls r0, r0, #2 + ldr r1, _08091AF8 @ =_08091AFC + adds r0, r0, r1 + ldr r0, [r0] + mov pc, r0 + .align 2, 0 +_08091AF8: .4byte _08091AFC +_08091AFC: @ jump table + .4byte _08091B2C @ case 0 + .4byte _08091BD8 @ case 1 + .4byte _08091BD8 @ case 2 + .4byte _08091BB8 @ case 3 + .4byte _08091BB8 @ case 4 + .4byte _08091BB8 @ case 5 + .4byte _08091BB8 @ case 6 + .4byte _08091BD8 @ case 7 + .4byte _08091BB8 @ case 8 + .4byte _08091BB8 @ case 9 + .4byte _08091BB8 @ case 10 + .4byte _08091BB8 @ case 11 +_08091B2C: + ldrb r1, [r5, #0x10] + movs r0, #0xdf + ands r0, r1 + strb r0, [r5, #0x10] + adds r1, r5, #0 + adds r1, #0x3f + movs r0, #1 + strb r0, [r1] + subs r1, #3 + movs r0, #0x47 + strb r0, [r1] + adds r1, #4 + movs r0, #0x44 + strb r0, [r1] + subs r1, #5 + movs r4, #0x80 + movs r0, #0x80 + strb r0, [r1] + movs r0, #6 + strb r0, [r5, #0xc] + adds r0, r5, #0 + bl sub_08017744 + ldr r2, _08091BAC @ =gLinkState + movs r0, #0x41 + strb r0, [r2, #2] + ldr r0, [r2, #0x30] + movs r1, #0x80 + lsls r1, r1, #5 + eors r0, r1 + movs r1, #0x80 + lsls r1, r1, #0x13 + orrs r0, r1 + str r0, [r2, #0x30] + ldr r1, _08091BB0 @ =gLinkEntity + movs r0, #0x80 + lsls r0, r0, #0xa + str r0, [r1, #0x20] + movs r0, #0x80 + lsls r0, r0, #2 + strh r0, [r1, #0x24] + ldrb r0, [r5, #0x14] + lsls r0, r0, #1 + strb r0, [r1, #0x14] + ldrb r0, [r5, #0x15] + strb r0, [r1, #0x15] + ldrb r0, [r1, #0x10] + orrs r4, r0 + strb r4, [r1, #0x10] + adds r0, r5, #0 + bl sub_08004168 + ldrb r1, [r5, #0x14] + adds r1, #0xc + adds r0, r5, #0 + bl InitAnimationForceUpdate + movs r0, #0x78 + bl PlaySFX + ldr r0, _08091BB4 @ =0x00000139 + bl PlaySFX + b _08091C04 + .align 2, 0 +_08091BAC: .4byte gLinkState +_08091BB0: .4byte gLinkEntity +_08091BB4: .4byte 0x00000139 +_08091BB8: + adds r0, r5, #0 + bl sub_080002B8 + cmp r4, r0 + bne _08091BD8 + adds r0, r5, #0 + bl sub_08091C0C + ldr r1, _08091BD4 @ =gLinkEntity + ldrb r0, [r5, #0x14] + lsls r0, r0, #1 + strb r0, [r1, #0x14] + b _08091C04 + .align 2, 0 +_08091BD4: .4byte gLinkEntity +_08091BD8: + ldr r2, _08091BF8 @ =gLinkEntity + ldrb r0, [r5, #0x14] + lsls r1, r0, #1 + strb r1, [r2, #0x14] + adds r1, r5, #0 + adds r1, #0x58 + ldrb r1, [r1] + lsls r0, r0, #0x18 + lsrs r0, r0, #0x18 + cmp r1, r0 + bne _08091BFC + adds r0, r5, #0 + bl UpdateAnimationSingleFrame + b _08091C04 + .align 2, 0 +_08091BF8: .4byte gLinkEntity +_08091BFC: + ldrb r1, [r5, #0x14] + adds r0, r5, #0 + bl InitAnimationForceUpdate +_08091C04: + pop {r3} + mov r8, r3 + pop {r4, r5, r6, r7, pc} + .align 2, 0 + .syntax divided \ No newline at end of file diff --git a/asm/object2A.s b/asm/object2A.s index 8376c2d4..d9d563b0 100644 --- a/asm/object2A.s +++ b/asm/object2A.s @@ -7,93 +7,6 @@ .text - thumb_func_start Object2A -Object2A: @ 0x08089B00 - push {lr} - ldr r2, _08089B14 @ =gUnk_08120DD0 - ldrb r1, [r0, #0xc] - lsls r1, r1, #2 - adds r1, r1, r2 - ldr r1, [r1] - bl _call_via_r1 - pop {pc} - .align 2, 0 -_08089B14: .4byte gUnk_08120DD0 - - thumb_func_start sub_08089B18 -sub_08089B18: @ 0x08089B18 - push {r4, r5, r6, lr} - adds r4, r0, #0 - movs r2, #1 - movs r6, #1 - strb r6, [r4, #0xc] - ldrb r1, [r4, #0x18] - movs r5, #4 - rsbs r5, r5, #0 - adds r0, r5, #0 - ands r0, r1 - orrs r0, r2 - strb r0, [r4, #0x18] - ldrb r0, [r4, #0xb] - cmp r0, #0 - beq _08089B38 - strb r0, [r4, #0xe] -_08089B38: - adds r0, r4, #0 - movs r1, #0 - bl InitializeAnimation - ldrb r0, [r4, #0xa] - cmp r0, #2 - beq _08089B66 - cmp r0, #2 - bgt _08089B50 - cmp r0, #1 - beq _08089B5A - b _08089B96 -_08089B50: - cmp r0, #3 - beq _08089B72 - cmp r0, #4 - beq _08089B7C - b _08089B96 -_08089B5A: - ldrh r0, [r4, #0x32] - subs r0, #8 - strh r0, [r4, #0x32] - movs r0, #0x28 - strb r0, [r4, #0xe] - b _08089B96 -_08089B66: - movs r0, #0xf - strb r0, [r4, #0xe] - adds r0, r4, #0 - bl sub_08004168 - b _08089B96 -_08089B72: - ldr r0, [r4, #0x50] - adds r1, r4, #0 - bl CopyPosition - b _08089B96 -_08089B7C: - adds r0, r4, #0 - adds r0, #0x86 - ldrh r0, [r0] - bl CheckFlags - cmp r0, #0 - bne _08089B96 - ldrb r1, [r4, #0x18] - adds r0, r5, #0 - ands r0, r1 - strb r0, [r4, #0x18] - strb r6, [r4, #0xd] - b _08089B9E -_08089B96: - movs r0, #0x92 - lsls r0, r0, #1 - bl sub_08004488 -_08089B9E: - pop {r4, r5, r6, pc} - thumb_func_start sub_08089BA0 sub_08089BA0: @ 0x08089BA0 push {r4, r5, r6, lr} diff --git a/asm/pesto.s b/asm/pesto.s index 5e5b2c14..0ca10a24 100644 --- a/asm/pesto.s +++ b/asm/pesto.s @@ -2096,7 +2096,7 @@ _08024E9A: _08024EC8: .4byte gUnk_02002A40 _08024ECC: ldr r6, _08024F48 @ =gLinkEntity - bl sub_08077B2C + bl ResetLink ldr r2, _08024F4C @ =gLinkState ldr r0, [r2, #0x30] movs r1, #0x80 diff --git a/asm/respawnLink.s b/asm/respawnLink.s index 75e1650b..92951a5e 100644 --- a/asm/respawnLink.s +++ b/asm/respawnLink.s @@ -6,8 +6,8 @@ .text - thumb_func_start sub_08077B2C -sub_08077B2C: @ 0x08077B2C + thumb_func_start ResetLink +ResetLink: @ 0x08077B2C push {r4, r5, lr} movs r4, #0 ldr r5, _08077B88 @ =gUnk_03000B80 diff --git a/asm/stairsInteract.s b/asm/stairsInteract.s index 4d78fe0e..5c7e720c 100644 --- a/asm/stairsInteract.s +++ b/asm/stairsInteract.s @@ -123,7 +123,7 @@ _080732B8: movs r0, #0 str r0, [r1, #0x30] bl sub_0807A108 - bl sub_08077B2C + bl ResetLink pop {r4, r5, r6, r7, pc} .align 2, 0 _080732CC: .4byte gRoomControls diff --git a/asm/vaatiProjectile.s b/asm/vaatiProjectile.s index 7f6c4e80..3a23e2f8 100644 --- a/asm/vaatiProjectile.s +++ b/asm/vaatiProjectile.s @@ -507,7 +507,7 @@ _0803E442: sub_0803E444: @ 0x0803E444 push {r4, lr} adds r4, r0, #0 - bl sub_08077B2C + bl ResetLink ldr r2, _0803E478 @ =gLinkState ldrb r1, [r2, #0x1a] movs r0, #0x80 diff --git a/include/functions.h b/include/functions.h index 00a7e4a6..40ebac66 100644 --- a/include/functions.h +++ b/include/functions.h @@ -195,9 +195,13 @@ extern void sub_08001290(Entity*, u32); extern void sub_08004488(u32); extern void sub_08004596(Entity*, u32); extern u32 sub_0807953C(void); -extern void sub_08077B2C(void); +extern void ResetLink(void); extern void sub_080A29BC(Entity*); extern void sub_080AE068(Entity*); extern Entity* sub_0805E8D4(void); extern void sub_0805EA2C(Entity*, u32); -#endif +extern u32 sub_0800445C(Entity*); +extern void sub_0807A108(void); +extern void sub_0801766C(Entity*); +extern void sub_08004168(Entity*); +#endif \ No newline at end of file diff --git a/linker.ld b/linker.ld index c47ce28d..22b50e7c 100644 --- a/linker.ld +++ b/linker.ld @@ -710,6 +710,7 @@ SECTIONS { asm/pushableStatue.o(.text); asm/object28.o(.text); asm/object29.o(.text); + src/object/object2A.o(.text); asm/object2A.o(.text); asm/object2B.o(.text); asm/beanstalk.o(.text); @@ -759,6 +760,7 @@ SECTIONS { asm/object52.o(.text); asm/object53.o(.text); asm/pullableLever.o(.text); + src/object/minecart.o(.text); asm/minecart.o(.text); src/object/thoughtBubble.o(.text); asm/hiddenLadderDown.o(.text); diff --git a/src/enemy/rupeeLike.c b/src/enemy/rupeeLike.c index 5b6bd3e5..009b8789 100644 --- a/src/enemy/rupeeLike.c +++ b/src/enemy/rupeeLike.c @@ -161,7 +161,7 @@ void sub_0802953C(Entity* this) { if (((this->field_0xf > 0x2d) || (gUnk_02002A40.stats.rupees == 0)) && (this->actionDelay == 0)) { sub_080296D8(this); } else { - sub_08077B2C(); + ResetLink(); gLinkState.field_0x1a[0] |= 0x80; PositionRelative(this, &gLinkEntity, 0, 0x10000); pbVar3 = GetSpriteSubEntryOffsetDataPointer((u16)this->spriteIndex, this->frameIndex); diff --git a/src/object/minecart.c b/src/object/minecart.c new file mode 100644 index 00000000..eff15d3a --- /dev/null +++ b/src/object/minecart.c @@ -0,0 +1,225 @@ +#include "global.h" +#include "entity.h" +#include "functions.h" +#include "room.h" + +typedef struct { + u16 field_0x0; + u16 field_0x2; + u8 field_0x4; + u8 field_0x5; + u8 field_0x6; + u8 field_0x7; +} struct_030010EC; + +extern void (*const gUnk_081223A8[])(Entity*); + +extern struct_030010EC gUnk_030010EC[]; +extern BoundingBox gUnk_080FD310; + +void Minecart(Entity* this) { + gUnk_081223A8[this->action](this); + this->bitfield = 0; +} + +void sub_080916EC(Entity* this) { + struct_030010EC* unk = &gUnk_030010EC[this->actionDelay]; + + *(struct_030010EC**)&this->cutsceneBeh.HWORD = unk; + if ((gRoomControls.roomID != unk->field_0x4) || (gLinkState.flags.all & 0x1000) != 0) { + DeleteThisEntity(); + } + this->x.HALF.HI = gRoomControls.roomOriginX + ((unk->field_0x0 & 0x3f) << 4) + 8; + this->y.HALF.HI = gRoomControls.roomOriginY + ((unk->field_0x0 & 0xfc << 4) >> 2) + 8; + this->animationState = unk->field_0x5; + this->entityType.parameter = unk->field_0x6; + this->action = 1; + this->boundingBox = &gUnk_080FD310; + this->flags |= 0x80; + this->damageType = 1; + this->field_0x3c = 0x47; + this->field_0x40 = 0x44; + this->flags2 = 0x80; + this->direction = this->animationState << 3; + this->nonPlanarMovement = 0x700; + this->spritePriority.b1 = 3; + InitAnimationForceUpdate(this, this->entityType.parameter + 4 + this->animationState); + SetTile(0x4022, COORD_TO_TILE(this), this->collisionLayer); +} + +void sub_080917DC(Entity* this) { + + if ((this->bitfield & 0x7f) == 0x1d) { + this->field_0x20 = 0x2a000; + this->action = 7; + InitAnimationForceUpdate(this, this->entityType.parameter + 4 + this->animationState); + PlaySFX(0x13b); + } else { + if (sub_0800445C(this) != 0) { + if (((gLinkState.flags.all & 0x40080) == 0) && (gLinkState.field_0x1c == 0) && + (gLinkState.heldObject == 0) && (gLinkState.jumpStatus == 0)) { + this->actionDelay++; + } else { + this->actionDelay = 0; + } + } else { + this->actionDelay = 0; + } + if ((this->entityType).parameter == 0) { + if (8 < this->actionDelay) { + this->action = this->action + 1; + gLinkState.jumpStatus = 0x81; + gLinkState.flags.all |= 0x4000000; + gLinkEntity.field_0x20 = 0x20000; + gLinkEntity.nonPlanarMovement = 0x100; + gLinkEntity.flags &= 0x7f; + ResetLink(); + sub_0807A108(); + PlaySFX(0x7c); + } + } else { + this->actionDelay = 0; + } + } +} + +void sub_080918A4(Entity *this) +{ + if (sub_080041A0(this, &gLinkEntity, 2, 2) != 0) { + gLinkEntity.x.HALF.HI = this->x.HALF.HI; + gLinkEntity.y.HALF.HI = this->y.HALF.HI; + if (gLinkEntity.height.HALF.HI > -0x10) { + if ((s32)gLinkEntity.field_0x20 > -1) { + return; + } + gLinkEntity.animationState = this->animationState << 1; + gLinkState.flags.all = (gLinkState.flags.all ^ 0x4000000) | 0x1000; + this->action++; + this->field_0xf = 1; + this->flags |= 0x20; + this->damageType = 0x97; + this->field_0x3c = (gLinkEntity.field_0x3c + 1) | 0x20; + this->flags2 = gLinkEntity.flags2; + this->field_0x40 = 0x18; + this->field_0x44 = 8; + sub_0801766C(this); + sub_0807BA8C(COORD_TO_TILE(this), this->collisionLayer); + PlaySFX(0x137); + } + } + else { + gLinkEntity.direction = GetFacingDirection(&gLinkEntity, this); + } + if (gLinkEntity.field_0x20 < 0) { + gLinkEntity.spritePriority.b0 = this->spritePriority.b0 - 1; + } +} + +#if 0 + +typedef struct { + u8 field_0x0; + u8 field_0x1; +} struct_081223C8; + +extern struct_081223C8 gUnk_081223C8[]; + +extern u32 gUnk_081223D8[]; + +void sub_080919AC(Entity *this) +{ + u32 iVar2; + u32 uVar3; + u32 uVar4; + struct_081223C8* temp; + + gRoomControls.unk5 = 7; + if ((gLinkState.flags.all & 0x1000) == 0) { + this->action = 1; + } + else { + if ((gLinkEntity.frames.all & 0xf) == 0) { + this->flags = this->flags & 0x7f; + CopyPosition(this,&gLinkEntity); + if ((gLinkEntity.frames.all & 0xf0) == 0x10) { + this->spriteOffsetY = 1; + } + else { + this->spriteOffsetY = 0; + } + } + else { + this->flags = this->flags | 0x80; + gLinkEntity.nonPlanarMovement = 0; + sub_0806F69C(this); + CopyPosition(this,&gLinkEntity); + gLinkEntity.spritePriority.b0 = this->spritePriority.b0 - 1; + if (!sub_08091DDC(this)) { + if ((gUnk_030010A0.field_0x0 & 0xf) == 0) { + PlaySFX(0x138); + } + + if (--this->field_0xf == 0xff) { + PlaySFX(0x7b); + this->field_0xf = 0x3c; + } + uVar3 = sub_03005800(this, gUnk_081223C8[this->animationState].field_0x0, gUnk_081223C8[this->animationState].field_0x1); + iVar2 = sub_08007DD6(uVar3, gUnk_081223D8[this->animationState]); + if (iVar2 == 0) { + this->direction = this->direction ^ 0x10; + this->animationState = this->animationState ^ 2; + } + else { + switch(uVar3) { + case 100: + this->flags = this->flags & 0xdf; + this->damageType = 1; + this->field_0x3c = 0x47; + this->field_0x40 = 0x44; + this->flags2 = 0x80; + this->action = 6; + sub_08017744(this); + gLinkState.jumpStatus = 0x41; + gLinkState.flags.all = (gLinkState.flags.all ^ 0x1000) | 0x4000000; + gLinkEntity.field_0x20 = 0x20000; + gLinkEntity.nonPlanarMovement = 0x200; + gLinkEntity.animationState = this->animationState << 1; + gLinkEntity.direction = this->direction; + gLinkEntity.flags |= 0x80; + sub_08004168(this); + InitAnimationForceUpdate(this, this->animationState + 0xc); + PlaySFX(0x78); + PlaySFX(0x139); + return; + case 0x67: + case 0x68: + case 0x69: + case 0x6a: + case 0x6c: + case 0x6d: + case 0x6e: + case 0x6f: + if (uVar3 == sub_080002B8()) { + sub_08091C0C(this); + gLinkEntity.animationState *= 2; + return; + } + } + } + gLinkEntity.animationState *= 2; + if (this->animIndex == this->animationState) { + UpdateAnimationSingleFrame(this); + } + else { + InitAnimationForceUpdate(this, this->animationState); + } + } + } + } +} +#else +NAKED +void sub_080919AC(Entity *this) { + asm(".include \"asm/non_matching/minecart/sub_080919AC.inc\""); +} +#endif \ No newline at end of file diff --git a/src/object/object2A.c b/src/object/object2A.c new file mode 100644 index 00000000..d8f30b54 --- /dev/null +++ b/src/object/object2A.c @@ -0,0 +1,40 @@ +#include "global.h" +#include "entity.h" +#include "functions.h" +#include "flags.h" + +extern void (*const gUnk_08120DD0[])(Entity*); + +void Object2A(Entity* this) { + gUnk_08120DD0[this->action](this); +} + +void sub_08089B18(Entity *this) +{ + this->action = 1; + this->spriteSettings.b.draw = TRUE; + if (this->entityType.parameter != 0) { + this->actionDelay = this->entityType.parameter; + } + InitializeAnimation(this, 0); + switch (this->entityType.form) { + case 1: + this->y.HALF.HI -= 8; + this->actionDelay = 0x28; + break; + case 2: + this->actionDelay = 0xf; + sub_08004168(this); + break; + case 3: + CopyPosition(this->parent, this); + break; + case 4: + if (!CheckFlags(this->field_0x86)) { + this->spriteSettings.b.draw = FALSE; + this->previousActionFlag = 1; + return; + } + } + sub_08004488(0x124); +} \ No newline at end of file From 5aa18bbf93eaa432dcb92960f4a0c6c5aa766c84 Mon Sep 17 00:00:00 2001 From: theo3 Date: Mon, 3 Aug 2020 13:24:18 -0700 Subject: [PATCH 069/158] commented arm func calls --- asm/code_08000108.s | 28 +++++++++++++++++++++++++++- 1 file changed, 27 insertions(+), 1 deletion(-) diff --git a/asm/code_08000108.s b/asm/code_08000108.s index cf176c84..a1f855fd 100644 --- a/asm/code_08000108.s +++ b/asm/code_08000108.s @@ -167,136 +167,162 @@ gUnk_08000278:: .4byte gUnk_02016654 .4byte gUnk_02030EB4 +@ call 0x80B19CC thumb_func_start sub_08000288 sub_08000288: @ 0x08000288 ldr r3, _080002F4 @ =gUnk_03005740 bx r3 +@ call 0x80B19D8 thumb_func_start sub_0800028C sub_0800028C: @ 0x0800028C ldr r3, _080002F8 @ =gUnk_0300574C bx r3 +@ call 0x80B19EC thumb_func_start sub_08000290 sub_08000290: @ 0x08000290 ldr r3, _080002FC @ =gUnk_03005760 bx r3 +@ call 0x80B19FC thumb_func_start sub_08000294 sub_08000294: @ 0x08000294 ldr r3, _08000300 @ =gUnk_03005770 bx r3 +@ call 0x80B1A04 thumb_func_start sub_08000298 sub_08000298: @ 0x08000298 ldr r3, _08000304 @ =gUnk_03005778 bx r3 +@ call 0x80B1A0C thumb_func_start sub_0800029C sub_0800029C: @ 0x0800029C ldr r3, _08000308 @ =gUnk_03005780 bx r3 +@ call 0x080B1A28 thumb_func_start GetTileTypeByEntity GetTileTypeByEntity: @ 0x080002A0 ldr r3, _0800030C @ =gUnk_0300579C bx r3 +@ call 0x080B1A34 thumb_func_start GetTileTypeByPos GetTileTypeByPos: @ 0x080002A4 ldr r3, _08000310 @ =gUnk_030057A8 bx r3 +@ call 0x080B1A48 thumb_func_start sub_080002A8 sub_080002A8: @ 0x080002A8 ldr r3, _08000314 @ =gUnk_030057BC bx r3 +@ call 0x080B1A58 thumb_func_start sub_080002AC sub_080002AC: @ 0x080002AC ldr r3, _08000318 @ =gUnk_030057CC bx r3 +@ call 0x080B1A60 thumb_func_start GetTileType GetTileType: @ 0x080002B0 ldr r3, _0800031C @ =gUnk_030057D4 bx r3 +@ call 0x080B1A8C thumb_func_start sub_080002B4 sub_080002B4: @ 0x080002B4 ldr r3, _08000320 @ =gUnk_03005800 bx r3 +@ call 0x080B1AA8 thumb_func_start sub_080002B8 sub_080002B8: @ 0x080002B8 ldr r3, _08000324 @ =gUnk_0300581C bx r3 +@ call 0x080B1AB4 thumb_func_start sub_080002BC sub_080002BC: @ 0x080002BC ldr r3, _08000328 @ =gUnk_03005828 bx r3 +@ call 0x080B1AC8 thumb_func_start sub_080002C0 sub_080002C0: @ 0x080002C0 ldr r3, _0800032C @ =gUnk_0300583C bx r3 +@ call 0x080B1AD8 thumb_func_start sub_080002C4 sub_080002C4: @ 0x080002C4 ldr r3, _08000330 @ =gUnk_0300584C bx r3 +@ call 0x080B1AE0 thumb_func_start sub_080002C8 sub_080002C8: @ 0x080002C8 ldr r3, _08000334 @ =gUnk_03005854 bx r3 +@ call 0x080B1AF0 thumb_func_start sub_080002CC sub_080002CC: @ 0x080002CC ldr r3, _08000338 @ =gUnk_03005864 bx r3 +@ call 0x080B1B0C thumb_func_start sub_080002D0 sub_080002D0: @ 0x080002D0 ldr r3, _0800033C @ =gUnk_03005880 bx r3 - +@ call 0x080B1B18 thumb_func_start sub_080002D4 sub_080002D4: @ 0x080002D4 ldr r3, _08000340 @ =gUnk_0300588C bx r3 +@ call 0x080B1B2C thumb_func_start sub_080002D8 sub_080002D8: @ 0x080002D8 ldr r3, _08000344 @ =gUnk_030058A0 bx r3 +@ call 0x080B1B3C thumb_func_start sub_080002DC sub_080002DC: @ 0x080002DC ldr r3, _08000348 @ =gUnk_030058B0 bx r3 +@ call 0x080B1B44 thumb_func_start sub_080002E0 sub_080002E0: @ 0x080002E0 ldr r3, _0800034C @ =gUnk_030058B8 bx r3 +@ call 0x080B1B54 thumb_func_start sub_080002E4 sub_080002E4: @ 0x080002E4 ldr r3, _08000350 @ =gUnk_030058C8 bx r3 +@ call 0x080B1B68 thumb_func_start sub_080002E8 sub_080002E8: @ 0x080002E8 ldr r3, _08000354 @ =gUnk_030058DC bx r3 +@ call 0x080B1B84 thumb_func_start sub_080002EC sub_080002EC: @ 0x080002EC ldr r3, _08000358 @ =gUnk_030058F8 bx r3 +@ call 0x080B1BA4 thumb_func_start sub_080002F0 sub_080002F0: @ 0x080002F0 ldr r3, _0800035C @ =gUnk_03005918 From c74456f175c7c87096f72fdccb329c01f314abbc Mon Sep 17 00:00:00 2001 From: Marcus Huderle Date: Sun, 2 Aug 2020 20:02:39 -0500 Subject: [PATCH 070/158] Decompile oject48.c --- asm/greatFairy/sub_080872AC.inc | 38 - asm/object48.s | 1244 ------------------------------- include/entity.h | 13 +- include/global.h | 3 + include/menu.h | 11 +- include/npc.h | 21 +- include/position.h | 1 + include/readKeyInput.h | 16 +- include/structures.h | 24 +- linker.ld | 2 +- src/code_08077B98.c | 6 +- src/enemy/lakitu.c | 4 - src/enemy/miniFireballGuy.c | 2 +- src/enemy/rupeeLike.c | 1 + src/input.c | 29 +- src/introSetTransition.c | 13 +- src/loadRoom.c | 2 +- src/npc/anju.c | 4 +- src/npc/bladeBrothers.c | 12 +- src/npc/carpenter.c | 6 +- src/npc/cow.c | 10 +- src/npc/dampe.c | 4 +- src/npc/epona.c | 10 +- src/npc/festari.c | 4 +- src/npc/forestMinish.c | 14 +- src/npc/gentari.c | 4 +- src/npc/librari.c | 4 +- src/npc/malon.c | 4 +- src/npc/mayorHagen.c | 10 +- src/npc/melari.c | 4 +- src/npc/mutoh.c | 6 +- src/npc/postman.c | 28 +- src/npc/smith.c | 6 +- src/npc/talon.c | 14 +- src/npc/teachers.c | 10 +- src/npc/townMinish.c | 22 +- src/npc/townsperson.c | 16 +- src/npc/windTribespeople.c | 6 +- src/object/cloud.c | 14 +- src/object/greatFairy.c | 13 +- src/object/object48.c | 544 ++++++++++++++ src/object/object49.c | 2 +- src/room.c | 59 +- src/sub_0801D754.c | 8 +- src/sub_080A3B84.c | 2 +- 45 files changed, 758 insertions(+), 1512 deletions(-) delete mode 100644 asm/greatFairy/sub_080872AC.inc delete mode 100644 asm/object48.s create mode 100755 src/object/object48.c diff --git a/asm/greatFairy/sub_080872AC.inc b/asm/greatFairy/sub_080872AC.inc deleted file mode 100644 index a4c842c5..00000000 --- a/asm/greatFairy/sub_080872AC.inc +++ /dev/null @@ -1,38 +0,0 @@ - .syntax unified - push {r4, lr} - adds r4, r0, #0 - ldrb r1, [r4, #0x18] - movs r0, #4 - rsbs r0, r0, #0 - ands r0, r1 - movs r1, #1 - orrs r0, r1 - strb r0, [r4, #0x18] - ldrb r1, [r4, #0x1b] - movs r2, #0x3f - adds r0, r2, #0 - ands r0, r1 - movs r1, #0x40 - orrs r0, r1 - strb r0, [r4, #0x1b] - ldrb r0, [r4, #0x19] - ands r2, r0 - strb r2, [r4, #0x19] - ldrh r1, [r4, #0x2e] - adds r0, r4, #0 - adds r0, #0x68 - strh r1, [r0] - ldrh r0, [r4, #0x32] - adds r1, r4, #0 - adds r1, #0x6a - strh r0, [r1] - bl Random - movs r1, #0x1f - ands r0, r1 - strb r0, [r4, #0x15] - movs r0, #0x20 - strh r0, [r4, #0x24] - adds r0, r4, #0 - bl GreatFairy_InitializeAnimation - pop {r4, pc} - .syntax divided \ No newline at end of file diff --git a/asm/object48.s b/asm/object48.s deleted file mode 100644 index 6fa30149..00000000 --- a/asm/object48.s +++ /dev/null @@ -1,1244 +0,0 @@ - .include "asm/macros.inc" - - .include "constants/constants.inc" - - .syntax unified - - .text - - - thumb_func_start Object48 -Object48: @ 0x0808E7A0 - push {r4, lr} - adds r4, r0, #0 - adds r0, #0x45 - ldrb r0, [r0] - cmp r0, #0 - bne _0808E7B2 - adds r0, r4, #0 - bl sub_0808EFF0 -_0808E7B2: - ldr r1, _0808E7D4 @ =gUnk_08121C64 - ldrb r0, [r4, #0xa] - lsls r0, r0, #2 - adds r0, r0, r1 - ldr r1, [r0] - adds r0, r4, #0 - bl _call_via_r1 - adds r0, r4, #0 - adds r0, #0x58 - ldrb r0, [r0] - cmp r0, #0x3f - bhi _0808E7D2 - adds r0, r4, #0 - bl UpdateAnimationSingleFrame -_0808E7D2: - pop {r4, pc} - .align 2, 0 -_0808E7D4: .4byte gUnk_08121C64 - - thumb_func_start sub_0808E7D8 -sub_0808E7D8: @ 0x0808E7D8 - push {lr} - ldr r2, _0808E7EC @ =gUnk_08121CCC - ldrb r1, [r0, #0xc] - lsls r1, r1, #2 - adds r1, r1, r2 - ldr r1, [r1] - bl _call_via_r1 - pop {pc} - .align 2, 0 -_0808E7EC: .4byte gUnk_08121CCC - - thumb_func_start sub_0808E7F0 -sub_0808E7F0: @ 0x0808E7F0 - push {r4, lr} - adds r4, r0, #0 - movs r1, #1 - movs r2, #2 - bl sub_080AE008 - ldrb r0, [r4, #0x1a] - movs r1, #0xf - orrs r0, r1 - strb r0, [r4, #0x1a] - ldrb r1, [r4, #0x18] - movs r0, #4 - rsbs r0, r0, #0 - ands r0, r1 - strb r0, [r4, #0x18] - movs r0, #0xff - strb r0, [r4, #0xb] - movs r0, #1 - strb r0, [r4, #0xc] - pop {r4, pc} - - thumb_func_start sub_0808E818 -sub_0808E818: @ 0x0808E818 - push {r4, r5, r6, lr} - adds r4, r0, #0 - bl sub_0808E950 - cmp r0, #0 - bne _0808E840 - movs r1, #1 - rsbs r1, r1, #0 - strb r1, [r4, #0xb] - adds r0, r4, #0 - adds r0, #0x68 - strh r1, [r0] - adds r0, #2 - strh r1, [r0] - ldrb r1, [r4, #0x18] - movs r0, #4 - rsbs r0, r0, #0 - ands r0, r1 - strb r0, [r4, #0x18] - b _0808E94E -_0808E840: - ldr r0, _0808E8C0 @ =gUnk_02019EE0 - ldrb r1, [r0, #6] - ldrb r0, [r4, #0xb] - adds r6, r4, #0 - adds r6, #0x68 - adds r5, r4, #0 - adds r5, #0x70 - cmp r0, r1 - beq _0808E894 - strb r1, [r4, #0xb] - movs r0, #0x14 - bl CheckGlobalFlag - movs r2, #0x80 - lsls r2, r2, #1 - adds r1, r2, #0 - cmp r0, #0 - bne _0808E86A - movs r0, #0x80 - lsls r0, r0, #3 - adds r1, r0, #0 -_0808E86A: - strh r1, [r6] - movs r0, #4 - strb r0, [r5] - movs r0, #2 - strb r0, [r4, #0x14] - movs r0, #1 - bl sub_0807A094 - ldr r1, _0808E8C4 @ =gUnk_08133368 - subs r0, #0x16 - lsls r0, r0, #2 - adds r0, r0, r1 - ldr r0, [r0] - ldr r1, _0808E8C8 @ =0x00FFFFFF - ands r0, r1 - ldr r1, _0808E8CC @ =gUnk_085A2E80 - adds r0, r0, r1 - movs r1, #0x1f - movs r2, #1 - bl sub_0801D754 -_0808E894: - ldr r0, _0808E8D0 @ =gUnk_02032EC0 - ldrb r2, [r0, #2] - cmp r2, #0 - bne _0808E904 - ldr r3, _0808E8D4 @ =gUnk_03000FF0 - ldrh r1, [r3] - movs r0, #0x80 - lsls r0, r0, #2 - ands r0, r1 - cmp r0, #0 - beq _0808E904 - ldrh r1, [r3, #2] - cmp r1, #0x20 - beq _0808E8F2 - cmp r1, #0x20 - bgt _0808E8D8 - cmp r1, #2 - beq _0808E8F8 - cmp r1, #0x10 - beq _0808E8E6 - b _0808E904 - .align 2, 0 -_0808E8C0: .4byte gUnk_02019EE0 -_0808E8C4: .4byte gUnk_08133368 -_0808E8C8: .4byte 0x00FFFFFF -_0808E8CC: .4byte gUnk_085A2E80 -_0808E8D0: .4byte gUnk_02032EC0 -_0808E8D4: .4byte gUnk_03000FF0 -_0808E8D8: - cmp r1, #0x40 - beq _0808E8E2 - cmp r1, #0x80 - beq _0808E8EC - b _0808E904 -_0808E8E2: - strb r2, [r4, #0x14] - b _0808E904 -_0808E8E6: - movs r0, #1 - strb r0, [r4, #0x14] - b _0808E904 -_0808E8EC: - movs r0, #2 - strb r0, [r4, #0x14] - b _0808E904 -_0808E8F2: - movs r0, #3 - strb r0, [r4, #0x14] - b _0808E904 -_0808E8F8: - ldrb r0, [r5] - movs r1, #0 - cmp r0, #0 - bne _0808E902 - movs r1, #4 -_0808E902: - strb r1, [r5] -_0808E904: - movs r2, #0 - ldrb r0, [r4, #0x14] - cmp r0, #3 - bne _0808E90E - movs r2, #1 -_0808E90E: - lsls r2, r2, #6 - ldrb r1, [r4, #0x18] - movs r0, #0x41 - rsbs r0, r0, #0 - ands r0, r1 - orrs r0, r2 - strb r0, [r4, #0x18] - ldrh r0, [r6] - ldrb r1, [r5] - adds r0, r0, r1 - ldrb r2, [r4, #0x14] - adds r1, r0, r2 - adds r2, r4, #0 - adds r2, #0x6a - ldrh r0, [r2] - cmp r0, r1 - beq _0808E940 - strh r1, [r2] - lsrs r0, r1, #8 - strh r0, [r4, #0x12] - lsls r1, r1, #0x18 - lsrs r1, r1, #0x18 - adds r0, r4, #0 - bl InitAnimationForceUpdate -_0808E940: - ldrb r0, [r4, #0x18] - movs r1, #4 - rsbs r1, r1, #0 - ands r1, r0 - movs r0, #2 - orrs r1, r0 - strb r1, [r4, #0x18] -_0808E94E: - pop {r4, r5, r6, pc} - - thumb_func_start sub_0808E950 -sub_0808E950: @ 0x0808E950 - push {lr} - movs r2, #0 - ldr r0, _0808E980 @ =gUnk_02032EC0 - ldrb r0, [r0, #2] - cmp r0, #0 - beq _0808E968 - cmp r0, #0 - blt _0808E97C - cmp r0, #7 - bgt _0808E97C - cmp r0, #4 - blt _0808E97C -_0808E968: - ldr r0, _0808E984 @ =gUnk_02019EE0 - adds r1, r0, #0 - adds r1, #8 - ldrb r0, [r0, #6] - adds r1, r1, r0 - movs r0, #0 - ldrsb r0, [r1, r0] - cmp r0, #1 - bne _0808E97C - movs r2, #1 -_0808E97C: - adds r0, r2, #0 - pop {pc} - .align 2, 0 -_0808E980: .4byte gUnk_02032EC0 -_0808E984: .4byte gUnk_02019EE0 - - thumb_func_start sub_0808E988 -sub_0808E988: @ 0x0808E988 - push {r4, r5, lr} - adds r5, r0, #0 - ldrb r0, [r5, #0xc] - cmp r0, #0 - bne _0808E9AA - movs r0, #1 - strb r0, [r5, #0xc] - movs r0, #0xa1 - lsls r0, r0, #1 - strh r0, [r5, #0x12] - movs r0, #0xff - strb r0, [r5, #0xb] - adds r0, r5, #0 - movs r1, #1 - movs r2, #3 - bl sub_080AE008 -_0808E9AA: - bl sub_0808E950 - cmp r0, #0 - beq _0808E9E8 - movs r4, #6 - b _0808E9BC -_0808E9B6: - subs r4, #1 - cmp r4, #0 - beq _0808E9E8 -_0808E9BC: - adds r0, r4, #0 - bl GetInventoryValue - cmp r0, #0 - beq _0808E9B6 - cmp r4, #0 - beq _0808E9E8 - ldrb r0, [r5, #0xb] - cmp r0, r4 - beq _0808E9D8 - adds r0, r5, #0 - adds r1, r4, #0 - bl InitAnimationForceUpdate -_0808E9D8: - ldrb r0, [r5, #0x18] - movs r1, #4 - rsbs r1, r1, #0 - ands r1, r0 - movs r0, #2 - orrs r1, r0 - strb r1, [r5, #0x18] - b _0808E9F2 -_0808E9E8: - ldrb r1, [r5, #0x18] - movs r0, #4 - rsbs r0, r0, #0 - ands r0, r1 - strb r0, [r5, #0x18] -_0808E9F2: - pop {r4, r5, pc} - - thumb_func_start sub_0808E9F4 -sub_0808E9F4: @ 0x0808E9F4 - push {r4, lr} - adds r4, r0, #0 - bl sub_0808E950 - cmp r0, #0 - beq _0808EA1C - ldr r0, _0808EA18 @ =gUnk_02002A40 - ldrb r0, [r0, #6] - cmp r0, #0 - beq _0808EA1C - ldrb r0, [r4, #0x18] - movs r1, #4 - rsbs r1, r1, #0 - ands r1, r0 - movs r0, #2 - orrs r1, r0 - strb r1, [r4, #0x18] - b _0808EA26 - .align 2, 0 -_0808EA18: .4byte gUnk_02002A40 -_0808EA1C: - ldrb r1, [r4, #0x18] - movs r0, #4 - rsbs r0, r0, #0 - ands r0, r1 - strb r0, [r4, #0x18] -_0808EA26: - pop {r4, pc} - - thumb_func_start sub_0808EA28 -sub_0808EA28: @ 0x0808EA28 - push {r4, lr} - adds r4, r0, #0 - ldrb r0, [r4, #0xa] - cmp r0, #3 - bne _0808EA56 - movs r0, #0x80 - lsls r0, r0, #0x12 - ldrb r0, [r0, #7] - cmp r0, #1 - bls _0808EA4C - ldrb r0, [r4, #0x18] - movs r1, #4 - rsbs r1, r1, #0 - ands r1, r0 - movs r0, #2 - orrs r1, r0 - strb r1, [r4, #0x18] - b _0808EA56 -_0808EA4C: - ldrb r1, [r4, #0x18] - movs r0, #4 - rsbs r0, r0, #0 - ands r0, r1 - strb r0, [r4, #0x18] -_0808EA56: - ldr r2, _0808EA68 @ =gUnk_02019EE0 - ldrb r1, [r4, #0xa] - ldrb r0, [r2, #6] - cmp r1, r0 - bne _0808EA6C - movs r3, #0xc - movs r2, #1 - b _0808EA88 - .align 2, 0 -_0808EA68: .4byte gUnk_02019EE0 -_0808EA6C: - ldr r0, _0808EA80 @ =gUnk_02032EC0 - ldrb r0, [r0, #2] - cmp r0, #5 - bne _0808EA84 - ldrb r2, [r2, #7] - cmp r1, r2 - bne _0808EA84 - movs r3, #0xd - b _0808EA86 - .align 2, 0 -_0808EA80: .4byte gUnk_02032EC0 -_0808EA84: - movs r3, #0xe -_0808EA86: - movs r2, #2 -_0808EA88: - ldrb r1, [r4, #0x1a] - movs r0, #0x10 - rsbs r0, r0, #0 - ands r0, r1 - orrs r0, r3 - strb r0, [r4, #0x1a] - lsls r2, r2, #6 - ldrb r1, [r4, #0x19] - movs r0, #0x3f - ands r0, r1 - orrs r0, r2 - strb r0, [r4, #0x19] - adds r0, r4, #0 - bl sub_0808EABC - adds r0, r4, #0 - bl sub_0808EF6C - ldr r2, _0808EAB8 @ =gUnk_02019EE0 - ldrb r1, [r2] - orrs r0, r1 - strb r0, [r2] - pop {r4, pc} - .align 2, 0 -_0808EAB8: .4byte gUnk_02019EE0 - - thumb_func_start sub_0808EABC -sub_0808EABC: @ 0x0808EABC - push {r4, r5, lr} - adds r5, r0, #0 - movs r4, #0x48 - rsbs r4, r4, #0 - ldrb r1, [r5, #0xa] - lsls r0, r1, #5 - adds r2, r0, #0 - adds r2, #0x28 - movs r3, #0 - ldr r0, _0808EAEC @ =gUnk_02019EE0 - ldrb r0, [r0, #6] - cmp r0, r1 - bne _0808EAD8 - movs r3, #1 -_0808EAD8: - ldr r0, _0808EAF0 @ =gUnk_02032EC0 - ldrb r0, [r0, #2] - cmp r0, #7 - bhi _0808EB60 - lsls r0, r0, #2 - ldr r1, _0808EAF4 @ =_0808EAF8 - adds r0, r0, r1 - ldr r0, [r0] - mov pc, r0 - .align 2, 0 -_0808EAEC: .4byte gUnk_02019EE0 -_0808EAF0: .4byte gUnk_02032EC0 -_0808EAF4: .4byte _0808EAF8 -_0808EAF8: @ jump table - .4byte _0808EB18 @ case 0 - .4byte _0808EB60 @ case 1 - .4byte _0808EB56 @ case 2 - .4byte _0808EB1C @ case 3 - .4byte _0808EB1C @ case 4 - .4byte _0808EB26 @ case 5 - .4byte _0808EB1C @ case 6 - .4byte _0808EB1C @ case 7 -_0808EB18: - movs r4, #0x18 - b _0808EB68 -_0808EB1C: - cmp r3, #0 - beq _0808EB68 - movs r4, #0x2a - movs r2, #0x38 - b _0808EB68 -_0808EB26: - ldr r3, _0808EB3C @ =gMenu - adds r0, r3, #0 - adds r0, #0x10 - ldrb r1, [r5, #0xa] - adds r0, r0, r1 - ldrb r1, [r0] - cmp r1, #0 - bne _0808EB40 - movs r4, #0x2a - movs r2, #0x28 - b _0808EB68 - .align 2, 0 -_0808EB3C: .4byte gMenu -_0808EB40: - cmp r1, #0 - blt _0808EB68 - cmp r1, #2 - bgt _0808EB68 - movs r4, #0x14 - movs r2, #0x90 - ldrb r0, [r3, #0x16] - subs r0, r0, r1 - lsls r0, r0, #5 - subs r2, r2, r0 - b _0808EB68 -_0808EB56: - cmp r3, #0 - beq _0808EB68 - movs r4, #0x1a - movs r2, #0x2a - b _0808EB68 -_0808EB60: - cmp r3, #0 - beq _0808EB68 - movs r4, #8 - movs r2, #0x23 -_0808EB68: - adds r0, r5, #0 - adds r0, #0x68 - strh r4, [r0] - adds r0, #2 - strh r2, [r0] - pop {r4, r5, pc} - - thumb_func_start sub_0808EB74 -sub_0808EB74: @ 0x0808EB74 - push {r4, lr} - adds r4, r0, #0 - ldr r0, _0808EBA8 @ =gUnk_02019EE0 - ldrb r0, [r0, #6] - bl sub_0808EC80 - adds r3, r0, #0 - cmp r3, #0 - beq _0808EBAC - ldr r0, [r3, #0x2c] - str r0, [r4, #0x2c] - ldr r0, [r3, #0x30] - str r0, [r4, #0x30] - ldrb r1, [r3, #0x19] - lsrs r1, r1, #6 - lsls r1, r1, #6 - ldrb r2, [r4, #0x19] - movs r0, #0x3f - ands r0, r2 - orrs r0, r1 - strb r0, [r4, #0x19] - adds r0, r3, #0 - adds r1, r4, #0 - bl sub_0806FAD8 - b _0808EBB4 - .align 2, 0 -_0808EBA8: .4byte gUnk_02019EE0 -_0808EBAC: - movs r0, #0xf0 - lsls r0, r0, #8 - strh r0, [r4, #0x2e] - strh r0, [r4, #0x32] -_0808EBB4: - pop {r4, pc} - .align 2, 0 - - thumb_func_start sub_0808EBB8 -sub_0808EBB8: @ 0x0808EBB8 - push {r4, r5, r6, r7, lr} - adds r7, r0, #0 - ldr r0, _0808EBD0 @ =gUnk_02032EC0 - ldrb r0, [r0, #2] - subs r0, #2 - cmp r0, #5 - bhi _0808EC1C - lsls r0, r0, #2 - ldr r1, _0808EBD4 @ =_0808EBD8 - adds r0, r0, r1 - ldr r0, [r0] - mov pc, r0 - .align 2, 0 -_0808EBD0: .4byte gUnk_02032EC0 -_0808EBD4: .4byte _0808EBD8 -_0808EBD8: @ jump table - .4byte _0808EC18 @ case 0 - .4byte _0808EC1C @ case 1 - .4byte _0808EBF0 @ case 2 - .4byte _0808EBFC @ case 3 - .4byte _0808EC00 @ case 4 - .4byte _0808EC14 @ case 5 -_0808EBF0: - ldr r0, _0808EBF8 @ =gMenu - ldrb r0, [r0, #1] - adds r1, r0, #4 - b _0808EC1E - .align 2, 0 -_0808EBF8: .4byte gMenu -_0808EBFC: - movs r1, #2 - b _0808EC1E -_0808EC00: - ldr r0, _0808EC10 @ =gMenu - ldrb r0, [r0, #1] - movs r1, #6 - cmp r0, #0 - bne _0808EC1E - movs r1, #7 - b _0808EC1E - .align 2, 0 -_0808EC10: .4byte gMenu -_0808EC14: - movs r1, #4 - b _0808EC1E -_0808EC18: - movs r1, #1 - b _0808EC1E -_0808EC1C: - movs r1, #0 -_0808EC1E: - movs r5, #0xf0 - lsls r5, r5, #8 - adds r6, r5, #0 - cmp r1, #1 - beq _0808EC32 - cmp r1, #1 - blo _0808EC76 - cmp r1, #2 - beq _0808EC42 - b _0808EC4C -_0808EC32: - movs r0, #0x80 - lsls r0, r0, #0x12 - ldrb r0, [r0, #7] - lsls r0, r0, #4 - adds r5, r0, #0 - adds r5, #0x18 - movs r6, #0x70 - b _0808EC76 -_0808EC42: - ldr r0, _0808EC7C @ =gUnk_02019EE0 - ldrb r1, [r0, #7] - cmp r1, #4 - bne _0808EC4C - movs r1, #7 -_0808EC4C: - adds r0, r1, #0 - bl sub_0808EC80 - adds r4, r0, #0 - cmp r4, #0 - beq _0808EC76 - adds r1, r7, #0 - bl sub_0806FAD8 - ldrb r0, [r4, #0x19] - lsrs r0, r0, #6 - lsls r0, r0, #6 - ldrb r2, [r7, #0x19] - movs r1, #0x3f - ands r1, r2 - orrs r1, r0 - strb r1, [r7, #0x19] - movs r0, #0x2e - ldrsh r6, [r4, r0] - movs r0, #0x32 - ldrsh r5, [r4, r0] -_0808EC76: - strh r6, [r7, #0x2e] - strh r5, [r7, #0x32] - pop {r4, r5, r6, r7, pc} - .align 2, 0 -_0808EC7C: .4byte gUnk_02019EE0 - - thumb_func_start sub_0808EC80 -sub_0808EC80: @ 0x0808EC80 - push {r4, r5, r6, lr} - adds r4, r0, #0 - ldr r3, _0808ECA4 @ =gUnk_03003DA0 - ldr r2, [r3, #4] - cmp r2, r3 - beq _0808ECB6 - ldr r6, _0808ECA8 @ =0x0000FFFF - ldr r5, _0808ECAC @ =0x00004806 -_0808EC90: - ldrh r1, [r2, #8] - adds r0, r6, #0 - ands r0, r1 - cmp r0, r5 - bne _0808ECB0 - ldrb r0, [r2, #0xa] - cmp r4, r0 - bne _0808ECB0 - adds r0, r2, #0 - b _0808ECB8 - .align 2, 0 -_0808ECA4: .4byte gUnk_03003DA0 -_0808ECA8: .4byte 0x0000FFFF -_0808ECAC: .4byte 0x00004806 -_0808ECB0: - ldr r2, [r2, #4] - cmp r2, r3 - bne _0808EC90 -_0808ECB6: - movs r0, #0 -_0808ECB8: - pop {r4, r5, r6, pc} - .align 2, 0 - - thumb_func_start sub_0808ECBC -sub_0808ECBC: @ 0x0808ECBC - push {r4, lr} - adds r3, r0, #0 - ldr r0, _0808ECD8 @ =gMenu - ldrb r4, [r0, #1] - ldr r0, _0808ECDC @ =gUnk_02032EC0 - ldrb r0, [r0, #2] - cmp r0, #5 - beq _0808ECEE - cmp r0, #5 - bgt _0808ECE0 - cmp r0, #4 - beq _0808ECEA - b _0808ED04 - .align 2, 0 -_0808ECD8: .4byte gMenu -_0808ECDC: .4byte gUnk_02032EC0 -_0808ECE0: - cmp r0, #6 - beq _0808ECFC - cmp r0, #7 - beq _0808ED00 - b _0808ED04 -_0808ECEA: - movs r0, #1 - b _0808ED06 -_0808ECEE: - ldr r0, _0808ECF8 @ =gUnk_02019EE0 - ldrb r4, [r0, #7] - movs r0, #2 - b _0808ED06 - .align 2, 0 -_0808ECF8: .4byte gUnk_02019EE0 -_0808ECFC: - movs r0, #3 - b _0808ED06 -_0808ED00: - movs r0, #4 - b _0808ED06 -_0808ED04: - movs r0, #0 -_0808ED06: - ldrb r2, [r3, #0xa] - subs r2, #4 - lsls r1, r0, #1 - adds r1, r1, r0 - lsls r1, r1, #2 - lsls r0, r2, #1 - adds r0, r0, r2 - ldr r2, _0808ED3C @ =gUnk_08121CD4 - adds r0, r0, r2 - adds r1, r1, r0 - ldrb r2, [r1, #1] - adds r0, r3, #0 - adds r0, #0x68 - strh r2, [r0] - ldrb r0, [r1, #2] - adds r2, r3, #0 - adds r2, #0x6a - strh r0, [r2] - ldrb r0, [r1] - cmp r0, r4 - bne _0808ED40 - ldrb r0, [r3, #0x1a] - movs r1, #0x10 - rsbs r1, r1, #0 - ands r1, r0 - movs r0, #0xd - b _0808ED4A - .align 2, 0 -_0808ED3C: .4byte gUnk_08121CD4 -_0808ED40: - ldrb r0, [r3, #0x1a] - movs r1, #0x10 - rsbs r1, r1, #0 - ands r1, r0 - movs r0, #0xe -_0808ED4A: - orrs r1, r0 - strb r1, [r3, #0x1a] - adds r0, r3, #0 - bl sub_0808EF6C - ldr r2, _0808ED60 @ =gUnk_02019EE0 - ldrb r1, [r2] - orrs r0, r1 - strb r0, [r2] - pop {r4, pc} - .align 2, 0 -_0808ED60: .4byte gUnk_02019EE0 - - thumb_func_start sub_0808ED64 -sub_0808ED64: @ 0x0808ED64 - push {lr} - adds r2, r0, #0 - movs r3, #0xff - ldr r0, _0808ED90 @ =gUnk_02032EC0 - ldrb r0, [r0, #2] - cmp r0, #1 - bne _0808ED8A - ldr r1, _0808ED94 @ =gMenu - ldrb r0, [r1, #0x11] - cmp r0, #5 - beq _0808ED8A - ldrb r0, [r1, #0x10] - lsls r0, r0, #4 - adds r0, #0x1c - strh r0, [r2, #0x2e] - ldrb r0, [r1, #0x11] - lsls r0, r0, #4 - adds r3, r0, #0 - adds r3, #0x3a -_0808ED8A: - strh r3, [r2, #0x32] - pop {pc} - .align 2, 0 -_0808ED90: .4byte gUnk_02032EC0 -_0808ED94: .4byte gMenu - - thumb_func_start sub_0808ED98 -sub_0808ED98: @ 0x0808ED98 - push {lr} - adds r3, r0, #0 - ldr r0, _0808EDB4 @ =gUnk_02032EC0 - ldrb r0, [r0, #2] - cmp r0, #1 - beq _0808EDB8 - adds r1, r3, #0 - adds r1, #0x68 - movs r0, #0x1b - strh r0, [r1] - movs r1, #0xa - rsbs r1, r1, #0 - b _0808EDCE - .align 2, 0 -_0808EDB4: .4byte gUnk_02032EC0 -_0808EDB8: - ldr r0, _0808EDF8 @ =gMenu - ldrb r0, [r0, #0x13] - cmp r0, #5 - bls _0808EDC2 - movs r0, #5 -_0808EDC2: - lsls r0, r0, #3 - adds r0, #0x1b - adds r1, r3, #0 - adds r1, #0x68 - strh r0, [r1] - movs r1, #0x18 -_0808EDCE: - strh r1, [r3, #0x32] - adds r0, r3, #0 - adds r0, #0x6a - strh r1, [r0] - ldrb r0, [r3, #0xf] - adds r0, #1 - strb r0, [r3, #0xf] - ldr r2, _0808EDFC @ =gUnk_08121D10 - ldrb r0, [r3, #0xf] - lsrs r0, r0, #2 - movs r1, #7 - ands r0, r1 - adds r0, r0, r2 - ldrb r0, [r0] - adds r1, r3, #0 - adds r1, #0x63 - strb r0, [r1] - adds r0, r3, #0 - bl sub_0808EF6C - pop {pc} - .align 2, 0 -_0808EDF8: .4byte gMenu -_0808EDFC: .4byte gUnk_08121D10 - - thumb_func_start sub_0808EE00 -sub_0808EE00: @ 0x0808EE00 - push {r4, r5, lr} - adds r4, r0, #0 - movs r0, #0x80 - lsls r0, r0, #0x12 - ldrb r0, [r0, #7] - rsbs r2, r0, #0 - orrs r2, r0 - lsrs r2, r2, #0x1f - ldrb r0, [r4, #0xa] - adds r5, r0, #0 - subs r5, #0xa - ldr r1, _0808EE48 @ =gUnk_08121D38 - lsls r0, r2, #3 - adds r0, r5, r0 - adds r0, r0, r1 - ldrb r0, [r0] - strb r0, [r4, #0x1e] - ldr r3, _0808EE4C @ =gUnk_08121D18 - lsls r0, r5, #1 - lsls r1, r2, #4 - adds r0, r0, r1 - adds r0, r0, r3 - ldrh r1, [r0] - strh r1, [r4, #0x2e] - adds r0, r4, #0 - adds r0, #0x68 - strh r1, [r0] - subs r5, r5, r2 - ldr r0, _0808EE50 @ =gUnk_02032EC0 - ldrb r0, [r0, #2] - cmp r0, #1 - beq _0808EE54 - movs r5, #0x80 - movs r1, #0xb0 - b _0808EE56 - .align 2, 0 -_0808EE48: .4byte gUnk_08121D38 -_0808EE4C: .4byte gUnk_08121D18 -_0808EE50: .4byte gUnk_02032EC0 -_0808EE54: - movs r1, #0x8c -_0808EE56: - adds r0, r4, #0 - adds r0, #0x6a - strh r1, [r0] - ldr r1, _0808EE8C @ =gMenu - ldrb r0, [r1, #0x11] - movs r2, #9 - cmp r0, #5 - bne _0808EE6E - ldrb r1, [r1, #0x12] - cmp r5, r1 - bne _0808EE6E - movs r2, #0xb -_0808EE6E: - ldrb r1, [r4, #0x1a] - movs r0, #0x10 - rsbs r0, r0, #0 - ands r0, r1 - orrs r0, r2 - strb r0, [r4, #0x1a] - adds r0, r4, #0 - bl sub_0808EF6C - ldr r2, _0808EE90 @ =gUnk_02019EE0 - ldrb r1, [r2] - orrs r0, r1 - strb r0, [r2] - pop {r4, r5, pc} - .align 2, 0 -_0808EE8C: .4byte gMenu -_0808EE90: .4byte gUnk_02019EE0 - - thumb_func_start nullsub_522 -nullsub_522: @ 0x0808EE94 - bx lr - .align 2, 0 - - thumb_func_start sub_0808EE98 -sub_0808EE98: @ 0x0808EE98 - push {lr} - adds r3, r0, #0 - ldr r0, _0808EEBC @ =gUnk_02032EC0 - ldrb r1, [r0, #2] - strb r1, [r3, #0xe] - ldr r2, _0808EEC0 @ =gUnk_08121D48 - ldrb r0, [r3, #0xe] - adds r0, r0, r2 - ldrb r0, [r0] - strb r0, [r3, #0x1e] - lsls r1, r1, #0x18 - lsrs r1, r1, #0x18 - cmp r1, #2 - beq _0808EEC4 - adds r1, r3, #0 - adds r1, #0x68 - movs r0, #0x60 - b _0808EECA - .align 2, 0 -_0808EEBC: .4byte gUnk_02032EC0 -_0808EEC0: .4byte gUnk_08121D48 -_0808EEC4: - adds r1, r3, #0 - adds r1, #0x68 - ldr r0, _0808EED4 @ =0x0000FFA0 -_0808EECA: - strh r0, [r1] - adds r0, r3, #0 - bl sub_0808EF6C - pop {pc} - .align 2, 0 -_0808EED4: .4byte 0x0000FFA0 - - thumb_func_start sub_0808EED8 -sub_0808EED8: @ 0x0808EED8 - push {lr} - adds r2, r0, #0 - ldr r0, _0808EEF0 @ =gUnk_02032EC0 - ldrb r0, [r0, #2] - cmp r0, #3 - beq _0808EEF4 - ldrb r1, [r2, #0x18] - movs r0, #4 - rsbs r0, r0, #0 - ands r0, r1 - strb r0, [r2, #0x18] - b _0808EF1E - .align 2, 0 -_0808EEF0: .4byte gUnk_02032EC0 -_0808EEF4: - ldrb r1, [r2, #0x18] - movs r0, #4 - rsbs r0, r0, #0 - ands r0, r1 - movs r1, #2 - orrs r0, r1 - strb r0, [r2, #0x18] - ldrb r1, [r2, #0xa] - subs r1, #0x13 - ldr r0, _0808EF20 @ =gMenu - ldrb r0, [r0, #1] - movs r3, #3 - cmp r0, r1 - bne _0808EF12 - movs r3, #4 -_0808EF12: - ldrb r1, [r2, #0x1a] - movs r0, #0x10 - rsbs r0, r0, #0 - ands r0, r1 - orrs r0, r3 - strb r0, [r2, #0x1a] -_0808EF1E: - pop {pc} - .align 2, 0 -_0808EF20: .4byte gMenu - - thumb_func_start sub_0808EF24 -sub_0808EF24: @ 0x0808EF24 - push {lr} - adds r2, r0, #0 - ldr r0, _0808EF3C @ =gUnk_02032EC0 - ldrb r0, [r0, #2] - cmp r0, #3 - beq _0808EF40 - ldrb r1, [r2, #0x18] - movs r0, #4 - rsbs r0, r0, #0 - ands r0, r1 - strb r0, [r2, #0x18] - b _0808EF68 - .align 2, 0 -_0808EF3C: .4byte gUnk_02032EC0 -_0808EF40: - ldrb r1, [r2, #0x18] - movs r0, #4 - rsbs r0, r0, #0 - ands r0, r1 - movs r1, #2 - orrs r0, r1 - strb r0, [r2, #0x18] - ldrb r0, [r2, #0xa] - cmp r0, #0x15 - bne _0808EF5C - movs r0, #0x80 - lsls r0, r0, #0x12 - ldrb r1, [r0, #5] - b _0808EF62 -_0808EF5C: - movs r0, #0x80 - lsls r0, r0, #0x12 - ldrb r1, [r0, #6] -_0808EF62: - ldrb r0, [r2, #0x1f] - adds r0, r0, r1 - strb r0, [r2, #0x1e] -_0808EF68: - pop {pc} - .align 2, 0 - - thumb_func_start sub_0808EF6C -sub_0808EF6C: @ 0x0808EF6C - push {r4, r5, r6, lr} - adds r5, r0, #0 - adds r0, #0x68 - movs r2, #0 - ldrsh r1, [r0, r2] - movs r2, #0x2e - ldrsh r0, [r5, r2] - subs r6, r1, r0 - adds r0, r6, #0 - cmp r6, #0 - bge _0808EF84 - rsbs r0, r6, #0 -_0808EF84: - cmp r0, #1 - bhi _0808EF8E - lsls r0, r1, #0x10 - str r0, [r5, #0x2c] - movs r6, #0 -_0808EF8E: - adds r0, r5, #0 - adds r0, #0x6a - movs r2, #0 - ldrsh r1, [r0, r2] - movs r2, #0x32 - ldrsh r0, [r5, r2] - subs r4, r1, r0 - adds r0, r4, #0 - cmp r4, #0 - bge _0808EFA4 - rsbs r0, r4, #0 -_0808EFA4: - cmp r0, #1 - bhi _0808EFAE - lsls r0, r1, #0x10 - str r0, [r5, #0x30] - movs r4, #0 -_0808EFAE: - adds r0, r6, #0 - orrs r0, r4 - cmp r0, #0 - bne _0808EFBA - movs r0, #0 - b _0808EFEC -_0808EFBA: - adds r0, r6, #0 - adds r1, r4, #0 - bl sub_080041EC - adds r1, r0, #0 - adds r0, #0x80 - lsls r1, r1, #4 - adds r1, r0, r1 - adds r0, r5, #0 - adds r0, #0x6c - ldrh r0, [r0] - cmp r0, r1 - bge _0808EFD6 - adds r1, r0, #0 -_0808EFD6: - strh r1, [r5, #0x24] - adds r0, r6, #0 - adds r1, r4, #0 - bl sub_080045DA - lsrs r0, r0, #3 - strb r0, [r5, #0x15] - adds r0, r5, #0 - bl sub_0806F69C - movs r0, #1 -_0808EFEC: - pop {r4, r5, r6, pc} - .align 2, 0 - - thumb_func_start sub_0808EFF0 -sub_0808EFF0: @ 0x0808EFF0 - push {r4, r5, lr} - mov ip, r0 - ldrb r1, [r0, #0x18] - movs r0, #4 - rsbs r0, r0, #0 - ands r0, r1 - movs r1, #2 - orrs r0, r1 - mov r1, ip - strb r0, [r1, #0x18] - movs r0, #0x80 - lsls r0, r0, #3 - strh r0, [r1, #0x24] - adds r1, #0x45 - movs r0, #1 - strb r0, [r1] - movs r0, #0xff - mov r3, ip - strb r0, [r3, #0x1e] - adds r1, #0x13 - movs r0, #1 - rsbs r0, r0, #0 - strb r0, [r1] - ldrb r4, [r3, #0xa] - lsls r4, r4, #3 - ldr r0, _0808F094 @ =gUnk_08121D54 - adds r4, r4, r0 - ldrh r0, [r4, #2] - strh r0, [r3, #0x2e] - ldrh r1, [r4, #2] - mov r0, ip - adds r0, #0x68 - strh r1, [r0] - ldrh r0, [r4, #4] - strh r0, [r3, #0x32] - ldrh r0, [r4, #4] - mov r1, ip - adds r1, #0x6a - strh r0, [r1] - ldrb r1, [r4, #6] - lsls r1, r1, #0x1d - lsrs r1, r1, #0x17 - ldrb r3, [r3, #0x19] - movs r2, #0x3f - adds r0, r2, #0 - ands r0, r3 - orrs r0, r1 - mov r1, ip - strb r0, [r1, #0x19] - ldrb r1, [r4, #6] - lsls r1, r1, #0x1a - mov r5, ip - adds r5, #0x29 - lsrs r1, r1, #0x1d - ldrb r3, [r5] - movs r0, #8 - rsbs r0, r0, #0 - ands r0, r3 - orrs r0, r1 - strb r0, [r5] - ldrb r0, [r4, #6] - lsrs r0, r0, #6 - lsls r0, r0, #6 - mov r3, ip - ldrb r1, [r3, #0x1b] - ands r2, r1 - orrs r2, r0 - strb r2, [r3, #0x1b] - ldrh r1, [r4] - mov r0, ip - adds r0, #0x6c - strh r1, [r0] - ldrb r1, [r4, #7] - movs r0, #0x80 - ands r0, r1 - cmp r0, #0 - beq _0808F098 - movs r0, #0x7f - ands r1, r0 - strb r1, [r3, #0x1e] - strb r1, [r3, #0x1f] - b _0808F09E - .align 2, 0 -_0808F094: .4byte gUnk_08121D54 -_0808F098: - mov r0, ip - bl InitAnimationForceUpdate -_0808F09E: - pop {r4, r5, pc} diff --git a/include/entity.h b/include/entity.h index b3121fd3..e717c9e1 100644 --- a/include/entity.h +++ b/include/entity.h @@ -27,7 +27,7 @@ typedef struct { typedef struct Entity { /*0x00*/ u32* field_0x0; - /*0x04*/ u32* field_0x4; + /*0x04*/ struct Entity* field_0x4; /*0x08*/ EntityType entityType; /*0x0c*/ u8 action; /*0x0d*/ u8 previousActionFlag; @@ -124,13 +124,11 @@ typedef struct Entity { /*0x5c*/ Frame* animPtr; /*0x60*/ u16 spriteVramOffset; /*0x62*/ u8 spriteOffsetX; - /*0x64*/ u8 spriteOffsetY; + /*0x63*/ u8 spriteOffsetY; /*0x64*/ u32* otherEntity; - /*0x68*/ u8 field_0x68; - /*0x69*/ u8 field_0x69; + /*0x68*/ union SplitHWord field_0x68; /*0x6a*/ union SplitHWord field_0x6a; - /*0x6c*/ u8 field_0x6c; - /*0x6d*/ u8 field_0x6d; + /*0x6c*/ union SplitHWord field_0x6c; /*0x6e*/ u8 filler4[2]; /*0x70*/ union SplitWord field_0x70; /*0x74*/ u16 field_0x74; @@ -171,4 +169,7 @@ extern void SetSpriteSubEntryOffsetData2(Entity*, u32, u32); extern u32 GetFacingDirection(Entity*, Entity*); extern void DeleteThisEntity(); + +extern Entity gUnk_03003DA0; + #endif diff --git a/include/global.h b/include/global.h index 6738b6b8..49f06d58 100644 --- a/include/global.h +++ b/include/global.h @@ -64,6 +64,9 @@ union SplitWord { struct { s16 LO, HI; } HALF; + struct { + u8 byte0, byte1, byte2, byte3; + } BYTES; }; union SplitHWord { diff --git a/include/menu.h b/include/menu.h index 7da2a591..93b77591 100644 --- a/include/menu.h +++ b/include/menu.h @@ -27,9 +27,14 @@ typedef struct { u8 overlayType; u8 storyPanelIndex; u16 transitionTimer; - u8 field_0xa[8]; - u8 field_0x11; - u8 field_0x12[0x16]; + u8 fillerA[0x6]; + u8 unk10[2]; + u8 field_0x12; + u8 unk13; + u8 filler14[0x2]; + u8 unk16; + u8 filler17[0x13]; + u8 unk2a; u32 field_0x2c; } Menu; diff --git a/include/npc.h b/include/npc.h index 314a5869..7b95e745 100644 --- a/include/npc.h +++ b/include/npc.h @@ -170,19 +170,22 @@ extern void Phonograph(Entity*); extern void NPC58(Entity*); extern void NPC58_Head(Entity*); - extern u32 UpdateFuseInteraction(Entity*); extern void ShowNPCDialogue(Entity*, u32*); typedef struct { - /*0x000*/ u8 filler[8]; - /*0x008*/ u8 unk; - /*0x009*/ u8 filler2[0x47]; - /*0x050*/ u32 unk2; - /*0x051*/ u8 filler3[0x54]; - /*0x0a8*/ Stats stats; - /*0x0d0*/ u8 filler4[0x3c0]; - /*0x490*/ u32 unk3; + /*0x000*/ u8 filler0[0x6]; + /*0x006*/ u8 unk6; + /*0x007*/ u8 unk7; + /*0x008*/ u8 unk8; + /*0x009*/ u8 field_0x9[0x34]; + /*0x040*/ u32 windcrests; + /*0x044*/ u8 filler44[0xC]; + /*0x050*/ u32 unk50; + /*0x054*/ u8 filler54[0x54]; + /*0x0A8*/ Stats stats; + /*0x0D0*/ u8 filler4[0x3c0]; + /*0x490*/ u32 unk490; } struct_02002A40; extern struct_02002A40 gUnk_02002A40; diff --git a/include/position.h b/include/position.h index bc860826..d0acb275 100644 --- a/include/position.h +++ b/include/position.h @@ -9,5 +9,6 @@ void PositionEntityOnTop(Entity*, Entity*); void PositionRelative(Entity*, Entity*, s32, s32); void sub_0806FA90(Entity*, Entity*, s32, s32); void ResolveEntityOnTop(Entity*, Entity*); +void sub_0806FAD8(Entity*, Entity*); #endif \ No newline at end of file diff --git a/include/readKeyInput.h b/include/readKeyInput.h index 27114243..04711bcd 100644 --- a/include/readKeyInput.h +++ b/include/readKeyInput.h @@ -1,9 +1,9 @@ -struct Input { - u16 unk0; - u16 unk1; - u16 unk2; - u8 unk3; - u8 unk4; -}; +typedef struct { + u16 heldKeys; + u16 newKeys; + u16 unk4; + u8 unk6; + u8 unk7; +} Input; -// void ReadKeyInput(void); +extern Input gUnk_03000FF0; diff --git a/include/structures.h b/include/structures.h index fb96345d..eea1a2be 100644 --- a/include/structures.h +++ b/include/structures.h @@ -6,15 +6,14 @@ #include "link.h" typedef struct { - u8 filler[8]; - u8 field_0x8; - u8 field_0x9[0x34]; - u32 windcrests; - u8 field_0x44[0x64]; - Stats stats; -} struct_02002A40; + char header[4]; + u8 saveFile; + u8 field_0x5; + u8 brightnessPref; + u8 gameLanguage; +} struct_02000000; -extern struct_02002A40 gUnk_02002A40; +extern struct_02000000 gUnk_02000000; typedef struct { u8 field_0x0[8]; @@ -39,5 +38,14 @@ typedef struct { extern struct_030010A0 gUnk_030010A0; +typedef struct { + /*0x00*/ u8 unk0; + /*0x01*/ u8 filler1[0x5]; + /*0x06*/ u8 unk6; + /*0x07*/ u8 unk7; + /*0x08*/ s8 unk8[0x10]; // ?? unclear know how large this is +} struct_02019EE0; + +extern struct_02019EE0 gUnk_02019EE0; #endif \ No newline at end of file diff --git a/linker.ld b/linker.ld index 8720510b..c81b5bc8 100644 --- a/linker.ld +++ b/linker.ld @@ -744,7 +744,7 @@ SECTIONS { asm/object45.o(.text); asm/giantBookLadder.o(.text); src/object/heartContainer.o(.text); - asm/object48.o(.text); + src/object/object48.o(.text); src/object/object49.o(.text); asm/object49.o(.text); asm/backgroundCloud.o(.text); diff --git a/src/code_08077B98.c b/src/code_08077B98.c index c908595b..a29e2c22 100644 --- a/src/code_08077B98.c +++ b/src/code_08077B98.c @@ -83,7 +83,7 @@ void* sub_08077C54(UnkItemStruct* unk) item->entityType.type = 8; item->flags = 0xa0; item->parent = (Entity*)unk; - item->field_0x68 = unk->field_0x1; + item->field_0x68.HALF.LO = unk->field_0x1; sub_0805EA2C(item, 2); } return item; @@ -111,7 +111,7 @@ Entity * CreatePlayerItem(u32 subtype, u32 form, u32 parameter, u32 unk) (ent->entityType).subtype = subtype; (ent->entityType).form = form; (ent->entityType).parameter = parameter; - ent->field_0x68 = unk; + ent->field_0x68.HALF.LO = unk; sub_0805EA2C(ent, 2); } return ent; @@ -128,7 +128,7 @@ Entity * sub_08077CF8(u32 subtype, u32 form, u32 parameter, u32 unk) (ent->entityType).subtype = subtype; (ent->entityType).form = form; (ent->entityType).parameter = parameter; - ent->field_0x68 = unk; + ent->field_0x68.HALF.LO = unk; sub_0805EA2C(ent, 2); } return ent; diff --git a/src/enemy/lakitu.c b/src/enemy/lakitu.c index 9189c525..146523f0 100644 --- a/src/enemy/lakitu.c +++ b/src/enemy/lakitu.c @@ -31,10 +31,6 @@ extern void sub_0804A720(Entity *); extern void sub_0803CA84(Entity *, u32); extern bool32 sub_0803CA4C(Entity *); -// Many functions -extern void UpdateAnimationSingleFrame(Entity *); -extern void InitAnimationForceUpdate(Entity *, u32); - // sub_0803C918 extern u32 sub_0803CB04(Entity *); diff --git a/src/enemy/miniFireballGuy.c b/src/enemy/miniFireballGuy.c index d7bdc540..820381c4 100644 --- a/src/enemy/miniFireballGuy.c +++ b/src/enemy/miniFireballGuy.c @@ -31,7 +31,7 @@ void sub_080455D4(Entity *this) void sub_080455E4(Entity *this) { if ((this != this->parent) && (this->parent != NULL)) { - this->field_0x6c = this->field_0x6c & 0x7f; + this->field_0x6c.HALF.LO &= 0x7f; this->parent->attachedEntity = this->attachedEntity; this->attachedEntity->parent = this->parent; } diff --git a/src/enemy/rupeeLike.c b/src/enemy/rupeeLike.c index 009b8789..cbd991c4 100644 --- a/src/enemy/rupeeLike.c +++ b/src/enemy/rupeeLike.c @@ -2,6 +2,7 @@ #include "entity.h" #include "enemy.h" #include "functions.h" +#include "npc.h" #include "structures.h" #include "link.h" diff --git a/src/input.c b/src/input.c index df5b2290..438a6e6b 100644 --- a/src/input.c +++ b/src/input.c @@ -1,18 +1,9 @@ #include "global.h" #include "entity.h" - -typedef struct { - u16 field_0x0; - u16 field_0x2; - u16 field_0x4; - u8 field_0x6; - u8 field_0x7; -} Input; +#include "readKeyInput.h" void StoreKeyInput(Input *pkeyInput, u32 ioKeyInput); -extern Input gUnk_03000FF0; - void ReadKeyInput(void) { u32 reg = ~*(u16*)0x04000130 & 0x3FF; @@ -23,22 +14,22 @@ void ReadKeyInput(void) void StoreKeyInput(Input *input, u32 ioKeyInput) { u32 difference; - u32 temp = input->field_0x0; + u32 temp = input->heldKeys; difference = ioKeyInput & ~temp; - input->field_0x2 = difference; + input->newKeys = difference; if (ioKeyInput == temp) { - if (--input->field_0x7 == 0) { - input->field_0x7 = 4; - input->field_0x4 = ioKeyInput; + if (--input->unk7 == 0) { + input->unk7 = 4; + input->unk4 = ioKeyInput; } else { - input->field_0x4 = 0; + input->unk4 = 0; } } else { - input->field_0x7 = 0x14; - input->field_0x4 = difference; + input->unk7 = 0x14; + input->unk4 = difference; } - input->field_0x0 = ioKeyInput; + input->heldKeys = ioKeyInput; } \ No newline at end of file diff --git a/src/introSetTransition.c b/src/introSetTransition.c index 32bb02c3..33f0e62c 100644 --- a/src/introSetTransition.c +++ b/src/introSetTransition.c @@ -4,6 +4,7 @@ #include "entity.h" #include "functions.h" #include "screen.h" +#include "structures.h" extern void (*const gUnk_081320F0[])(); @@ -17,14 +18,6 @@ typedef struct { extern struct_03000FD0 gUnk_03000FD0; -typedef struct { - char header[4]; - u8 saveFile; - u8 field_0x5; - u8 brightnessPref; - u8 gameLanguage; -} struct_02000000; - typedef struct { u8 filler[5]; u8 field_0x5; @@ -111,7 +104,7 @@ void sub_080AD474(void) int iVar2; u32 uVar3; - gMenu.field_0x11++; + gMenu.field_0x12++; switch (gMenu.menuType) { case 0: gMenu.menuType = 1; @@ -230,7 +223,7 @@ void sub_080AD6AC(void) switch (gMenu.overlayType) { case 0: if (gUnk_03000FD0.field_0x0 == 0) { - if ((gMenu.field_0x11 & 1) == 0) { + if ((gMenu.field_0x12 & 1) == 0) { gScreen.bg2.bg0Control++; } diff --git a/src/loadRoom.c b/src/loadRoom.c index ebc66264..86749a52 100644 --- a/src/loadRoom.c +++ b/src/loadRoom.c @@ -39,7 +39,7 @@ void sub_0804B058(EntityData* dat) { if (sub_08049D1C(uVar2) != 0) { ent = CreateEntity(dat); if ((ent != NULL) && ((ent->entityType).type == 3)) { - ent->field_0x6c = uVar2 | 0x80; + ent->field_0x6c.HALF.LO = uVar2 | 0x80; } } } else { diff --git a/src/npc/anju.c b/src/npc/anju.c index e1b7e4e8..19e5a7a2 100644 --- a/src/npc/anju.c +++ b/src/npc/anju.c @@ -44,8 +44,8 @@ void Anju(Entity *this) void sub_0806C354(Entity *this) { - this->field_0x68 = sub_0801E99C(); - sub_08078784(this,this->field_0x68); + this->field_0x68.HALF.LO = sub_0801E99C(); + sub_08078784(this, this->field_0x68.HALF.LO); } void Anju_Fusion(Entity *this) diff --git a/src/npc/bladeBrothers.c b/src/npc/bladeBrothers.c index bcd9fa62..051d8836 100644 --- a/src/npc/bladeBrothers.c +++ b/src/npc/bladeBrothers.c @@ -123,8 +123,8 @@ void sub_08068ADC(Entity* this) { void sub_08068AFC(Entity* this) { this->action = 1; this->spriteSettings.b.draw = 1; - *(u8*)&this->field_0x68 = sub_0801E99C(this); - sub_08078784(this, *(u8*)&this->field_0x68); + this->field_0x68.HALF.LO = sub_0801E99C(this); + sub_08078784(this, this->field_0x68.HALF.LO); sub_0807DD50(this); } @@ -161,14 +161,14 @@ void sub_08068B84(Entity* this) { void sub_08068BB4(Entity* this) { u32 item = gUnk_02002A40.stats.itemOnA; - this->field_0x69 = item; + this->field_0x68.HALF.HI = item; item = gUnk_02002A40.stats.itemOnB; - *(&this->field_0x69 + 1) = item; + *(&this->field_0x68.HALF.HI + 1) = item; } void sub_08068BD0(Entity* this) { - ForceEquipItem(this->field_0x69, 0); - ForceEquipItem(*(u8*)(&this->field_0x69 + 1), 1); + ForceEquipItem(this->field_0x68.HALF.HI, 0); + ForceEquipItem(*(u8*)(&this->field_0x68.HALF.HI + 1), 1); } void sub_08068BEC(Entity* this, u32 unused) { diff --git a/src/npc/carpenter.c b/src/npc/carpenter.c index b0608f6d..bbf9a1ed 100644 --- a/src/npc/carpenter.c +++ b/src/npc/carpenter.c @@ -26,7 +26,7 @@ void Carpenter(Entity* this) { if (!LoadExtraSpriteData(this, gUnk_08110CA8 + this->entityType.form * 4)) break; this->action = 1; - this->field_0x69 = 0; + this->field_0x68.HALF.HI = 0; sub_0805E3A0(this, 2); sub_0807DD64(this); @@ -34,7 +34,7 @@ void Carpenter(Entity* this) { if (this->interactType == 2) { this->action = 2; this->interactType = 0; - this->field_0x69 = this->animIndex; + this->field_0x68.HALF.HI = this->animIndex; InitializeAnimation(this, sub_0806F5A4(GetFacingDirection(this, &gLinkEntity)) + 4 + (this->entityType.form * 8)); sub_0806F118(this); } else { @@ -47,7 +47,7 @@ void Carpenter(Entity* this) { if (!UpdateFuseInteraction(this)) break; this->action = 1; - InitializeAnimation(this, this->field_0x69); + InitializeAnimation(this, this->field_0x68.HALF.HI); break; } } diff --git a/src/npc/cow.c b/src/npc/cow.c index e9df0918..ed448997 100644 --- a/src/npc/cow.c +++ b/src/npc/cow.c @@ -34,7 +34,7 @@ void sub_08068FC0(Entity* ent) { ent->animationState = ent->entityType.parameter; ent->nonPlanarMovement = 0x40; - ent->field_0x6d = 0xFF; + ent->field_0x6c.HALF.HI = 0xFF; r2 = sub_0805ACC0(ent); if (r2 == 0) { @@ -51,7 +51,7 @@ void sub_08068FC0(Entity* ent) { *(u16*)&ent->field_0x68 = var1; ent->field_0x6a.HWORD = r2; } - ent->field_0x6c = sub_0801E99C(ent); + ent->field_0x6c.HALF.LO = sub_0801E99C(ent); InitAnimationForceUpdate(ent, ent->animationState + 4); } @@ -194,15 +194,15 @@ void sub_0806920C(Entity* ent) { u32 var0 = gLinkState.flags.all & 0x80; u32 var1 = -var0 >> 0x1F; - if (var1 != ent->field_0x6d) { + if (var1 != ent->field_0x6c.HALF.HI) { if (var1 == 0) { sub_08078778(ent); } else { - sub_080787A8(ent, ent->field_0x6c); + sub_080787A8(ent, ent->field_0x6c.HALF.LO); } } - ent->field_0x6d = var1; + ent->field_0x6c.HALF.HI = var1; } // Check if player interacting diff --git a/src/npc/dampe.c b/src/npc/dampe.c index b7947c32..8e9707a7 100644 --- a/src/npc/dampe.c +++ b/src/npc/dampe.c @@ -52,8 +52,8 @@ void Dampe(Entity* this) { } void sub_0806BE3C(Entity* this) { - this->field_0x68 = sub_0801E99C(); - sub_08078784(this, this->field_0x68); + this->field_0x68.HALF.LO = sub_0801E99C(); + sub_08078784(this, this->field_0x68.HALF.LO); } void Dampe_Fusion(Entity* this) { diff --git a/src/npc/epona.c b/src/npc/epona.c index 617867b6..51e2da86 100644 --- a/src/npc/epona.c +++ b/src/npc/epona.c @@ -20,8 +20,8 @@ void sub_080659B8(Entity* this) { this->action = 1; this->spriteSettings.b.draw = 1; this->animationState = 6; - this->field_0x69 = -1; - this->field_0x68 = sub_0801E99C(this); + this->field_0x68.HALF.HI = -1; + this->field_0x68.HALF.LO = sub_0801E99C(this); InitAnimationForceUpdate(this, this->animationState / 2); } @@ -57,14 +57,14 @@ void sub_08065A64(Entity* this) { u32 uVar2; uVar2 = -(gLinkState.flags.all & 0x80) >> 0x1f; - if (uVar2 != this->field_0x69) { + if (uVar2 != this->field_0x68.HALF.HI) { if (uVar2 == 0) { sub_08078778(this); } else { - sub_080787A8(this, this->field_0x68); + sub_080787A8(this, this->field_0x68.HALF.LO); } } - this->field_0x69 = uVar2; + this->field_0x68.HALF.HI = uVar2; } void sub_08065AA4(Entity* this) { diff --git a/src/npc/festari.c b/src/npc/festari.c index ff64ccd6..b362359e 100644 --- a/src/npc/festari.c +++ b/src/npc/festari.c @@ -25,8 +25,8 @@ void sub_0805FE10(Entity *this) this->action = 1; this->spriteSettings.b.draw = TRUE; sub_0805E3A0(this, 2); - this->field_0x68 = sub_0801E99C(this); - sub_08078784(this, this->field_0x68); + this->field_0x68.HALF.LO = sub_0801E99C(this); + sub_08078784(this, this->field_0x68.HALF.LO); sub_0807DD50(this); } diff --git a/src/npc/forestMinish.c b/src/npc/forestMinish.c index 8fb7da7b..32b9c77a 100644 --- a/src/npc/forestMinish.c +++ b/src/npc/forestMinish.c @@ -38,7 +38,7 @@ void ForestMinish(Entity* this) { if (LoadExtraSpriteData(this, &gUnk_0810A348)) { this->action = 1; this->spriteSettings.b.draw = TRUE; - this->field_0x69 = this->animationState = this->actionDelay << 1; + this->field_0x68.HALF.HI = this->animationState = this->actionDelay << 1; this->actionDelay = 0; sub_0805E3A0(this, 2); StartCutscene(this, gUnk_08109D18[this->entityType.parameter]); @@ -66,8 +66,8 @@ void ForestMinish(Entity* this) { } void sub_08060090(Entity* this) { - this->field_0x68 = sub_0801E99C(this); - sub_08078784(this, this->field_0x68); + this->field_0x68.HALF.LO = sub_0801E99C(this); + sub_08078784(this, this->field_0x68.HALF.LO); } void ForestMinish_Head(Entity* this) { @@ -129,8 +129,8 @@ void sub_08060158(Entity *this) this->actionDelay = 2; iVar4 = sub_0806EDD8(this, 0x20, 0x20); if (iVar4 < 0) { - this->animationState = this->field_0x69; - iVar4 = this->field_0x69 << 2; + this->animationState = this->field_0x68.HALF.HI; + iVar4 = this->field_0x68.HALF.HI << 2; } temp = (this->animationState >> 1) * 0x20 + (iVar4 >> 1) * 2; bVar1 = gUnk_08109C98[temp]; @@ -257,7 +257,7 @@ void sub_08060318(void) void sub_08060340(void) { - gUnk_02002A40.unk3 = gUnk_02002A40.unk2; + gUnk_02002A40.unk490 = gUnk_02002A40.unk50; } u32 sub_08060354(void) @@ -265,7 +265,7 @@ u32 sub_08060354(void) u32 iVar1; s32 iVar2; - iVar2 = gUnk_02002A40.unk2 - gUnk_02002A40.unk3; + iVar2 = gUnk_02002A40.unk50 - gUnk_02002A40.unk490; if (CheckGlobalFlag(DRUG_1) == 0) { if (4 < iVar2) { return 0x8444; diff --git a/src/npc/gentari.c b/src/npc/gentari.c index f41a7438..31b3bdc4 100644 --- a/src/npc/gentari.c +++ b/src/npc/gentari.c @@ -18,8 +18,8 @@ void Gentari(Entity *this) this->action = 1; this->spriteSettings.b.draw = TRUE; sub_0805E3A0(this, 2); - this->field_0x68 = sub_0801E99C(this); - sub_08078784(this, this->field_0x68); + this->field_0x68.HALF.LO = sub_0801E99C(this); + sub_08078784(this, this->field_0x68.HALF.LO); sub_0807DD50(this); break; case 1: diff --git a/src/npc/librari.c b/src/npc/librari.c index 77b48bb6..5725f1ea 100644 --- a/src/npc/librari.c +++ b/src/npc/librari.c @@ -13,8 +13,8 @@ void Librari(Entity* this) { this->action = 1; this->spriteSettings.b.draw = TRUE; this->animationState = this->actionDelay; - this->field_0x68 = sub_0801E99C(this); - sub_08078784(this, this->field_0x68); + this->field_0x68.HALF.LO = sub_0801E99C(this); + sub_08078784(this, this->field_0x68.HALF.LO); sub_0805E3A0(this, 2); sub_0807DD50(this); break; diff --git a/src/npc/malon.c b/src/npc/malon.c index de484cc4..4a599435 100644 --- a/src/npc/malon.c +++ b/src/npc/malon.c @@ -32,8 +32,8 @@ void sub_08065888(Entity* this) { this->action = 1; this->spriteSettings.b.draw = 1; this->animationState = 4; - this->field_0x68 = sub_0801E99C(this); - sub_08078784(this, this->field_0x68); + this->field_0x68.HALF.LO = sub_0801E99C(this); + sub_08078784(this, this->field_0x68.HALF.LO); sub_0807DD50(this); } diff --git a/src/npc/mayorHagen.c b/src/npc/mayorHagen.c index 1eb0ff64..bedf82be 100644 --- a/src/npc/mayorHagen.c +++ b/src/npc/mayorHagen.c @@ -28,8 +28,8 @@ void MayorHagen(Entity *this) switch (this->action) { case 0: this->action = 1; - this->field_0x69 = 0; - this->field_0x68 = sub_0801E99C(this); + this->field_0x68.HALF.HI = 0; + this->field_0x68.HALF.LO = sub_0801E99C(this); sub_0805E3A0(this, 2); sub_0807DD50(this); break; @@ -38,7 +38,7 @@ void MayorHagen(Entity *this) if (v == 2) { this->action = v; this->interactType = 0; - this->field_0x69 = this->animIndex; + this->field_0x68.HALF.HI = this->animIndex; InitAnimationForceUpdate(this,4 + sub_0806F5A4(GetFacingDirection(this, &gLinkEntity))); sub_0806F118(this); break; @@ -50,7 +50,7 @@ void MayorHagen(Entity *this) case 2: if (UpdateFuseInteraction(this)) { this->action = 1; - InitAnimationForceUpdate(this, this->field_0x69); + InitAnimationForceUpdate(this, this->field_0x68.HALF.HI); } } } @@ -65,7 +65,7 @@ void sub_0806CE80(Entity *this) { u32 v; u32 v2; - v = gUnk_02002A40.filler[8]; + v = gUnk_02002A40.unk8; if (v == 5) { //flippers if (GetInventoryValue(0x46) == 0) { diff --git a/src/npc/melari.c b/src/npc/melari.c index ae906fd5..a4cce8f6 100644 --- a/src/npc/melari.c +++ b/src/npc/melari.c @@ -111,8 +111,8 @@ void sub_08068780(Entity* this) { } void sub_08068884(Entity* this) { - this->field_0x68 = sub_0801E99C(this); - sub_08078784(this, this->field_0x68); + this->field_0x68.HALF.LO = sub_0801E99C(this); + sub_08078784(this, this->field_0x68.HALF.LO); } void Melari_Head(Entity* this) { diff --git a/src/npc/mutoh.c b/src/npc/mutoh.c index 46256dbe..d9d54769 100644 --- a/src/npc/mutoh.c +++ b/src/npc/mutoh.c @@ -75,13 +75,13 @@ void sub_080670B4(Entity *this) void sub_080670E4(Entity *this) { - ShowNPCDialogue(this, &gUnk_08110C10[gUnk_02002A40.unk * 2]); + ShowNPCDialogue(this, &gUnk_08110C10[gUnk_02002A40.unk8 * 2]); } void sub_08067100(Entity *this) { - this->field_0x68 = sub_0801E99C(this); - sub_08078784(this, this->field_0x68); + this->field_0x68.HALF.LO = sub_0801E99C(this); + sub_08078784(this, this->field_0x68.HALF.LO); } void Mutoh_Fusion(Entity *this) diff --git a/src/npc/postman.c b/src/npc/postman.c index b3a51dba..e2ed44c8 100644 --- a/src/npc/postman.c +++ b/src/npc/postman.c @@ -125,11 +125,11 @@ void sub_08060528(Entity *this) case 0: this->action = 1; this->spriteSettings.b.draw = TRUE; - this->field_0x68 = 0; - this->field_0x69 = 0; + this->field_0x68.HALF.LO = 0; + this->field_0x68.HALF.HI = 0; this->field_0x6a.HWORD = 0; - this->field_0x6d = 0; - this->field_0x6c = sub_0801E99C(this); + this->field_0x6c.HALF.HI = 0; + this->field_0x6c.HALF.LO = sub_0801E99C(this); sub_0807DD50(this); break; case 1: @@ -170,7 +170,7 @@ void sub_08060528(Entity *this) if ((s16)this->field_0x6a.HWORD > 0x12b) { this->field_0x6a.HWORD = 0; this->field_0x20 = 0x20000; - this->field_0x6d = 1; + this->field_0x6c.HALF.HI = 1; sub_080788E0(this); sub_08004488(0x7c); } @@ -179,8 +179,8 @@ void sub_08060528(Entity *this) } } sub_08003FC4(this, 0x1800); - if (((this->field_0x6d != 0) && (this->field_0x20 == 0)) && this->height.WORD == 0) { - this->field_0x6d = 0; + if (((this->field_0x6c.HALF.HI != 0) && (this->field_0x20 == 0)) && this->height.WORD == 0) { + this->field_0x6c.HALF.HI = 0; sub_080606C0(this); } if ((-1 < this->height.WORD) && @@ -192,15 +192,15 @@ void sub_08060528(Entity *this) void sub_080606C0(Entity *this) { - this->field_0x6c = sub_0801E99C(this); - sub_08078784(this, this->field_0x6c); + this->field_0x6c.HALF.LO = sub_0801E99C(this); + sub_08078784(this, this->field_0x6c.HALF.LO); } void sub_080606D8(Entity* this) { s32 iVar1; - iVar1 = gUnk_02002A40.unk - 2; + iVar1 = gUnk_02002A40.unk8 - 2; if (iVar1 < 0) { iVar1 = 0; } @@ -211,8 +211,8 @@ void sub_080606D8(Entity* this) void sub_08060700(Entity *arg0, u32 arg1) { sub_0807DEDC(arg0,arg1, - gUnk_0810A918[gUnk_0810A66C[arg0->field_0x69][arg0->field_0x68] * 4 + gRoomControls.roomOriginX], - gUnk_0810A918[gUnk_0810A66C[arg0->field_0x69][arg0->field_0x68] * 4 + gRoomControls.roomOriginY + 2]); + gUnk_0810A918[gUnk_0810A66C[arg0->field_0x68.HALF.HI][arg0->field_0x68.HALF.LO] * 4 + gRoomControls.roomOriginX], + gUnk_0810A918[gUnk_0810A66C[arg0->field_0x68.HALF.HI][arg0->field_0x68.HALF.LO] * 4 + gRoomControls.roomOriginY + 2]); gUnk_02033280.unk |= 1; } #endif @@ -222,6 +222,6 @@ NAKED void sub_08060700(Entity *arg0, u32 arg1) { void sub_0806075C(Entity *this) { - this->field_0x68 = 0xb; - this->field_0x69 = 0xff; + this->field_0x68.HALF.LO = 0xb; + this->field_0x68.HALF.HI = 0xff; } \ No newline at end of file diff --git a/src/npc/smith.c b/src/npc/smith.c index 744bd8e2..ef3b80ac 100644 --- a/src/npc/smith.c +++ b/src/npc/smith.c @@ -98,7 +98,7 @@ void sub_080660EC(Entity *this) { if (LoadExtraSpriteData(this, &gUnk_08110354) != 0) { this->action = 1; - this->field_0x68 = sub_0801E99C(this); + this->field_0x68.HALF.LO = sub_0801E99C(this); InitAnimationForceUpdate(this, 2); } } @@ -140,7 +140,7 @@ void sub_08066178(Entity *this) if (LoadExtraSpriteData(this, &gUnk_08110354) != 0) { this->action = 1; this->spriteSettings.b.draw = 1; - this->field_0x68 = sub_0801E99C(this); + this->field_0x68.HALF.LO = sub_0801E99C(this); sub_0807DD50(this); } } @@ -207,7 +207,7 @@ void sub_08066274(u32 arg0) void sub_08066288(Entity *arg0) { - sub_08078784(arg0, arg0->field_0x68); + sub_08078784(arg0, arg0->field_0x68.HALF.LO); } void Smith_Fusion(Entity *this) diff --git a/src/npc/talon.c b/src/npc/talon.c index 01449c06..5b01b650 100644 --- a/src/npc/talon.c +++ b/src/npc/talon.c @@ -64,15 +64,15 @@ void sub_08065608(Entity* this) { if (LoadExtraSpriteData(this, &gUnk_0810FEB0) != 0) { this->action = 1; this->spriteSettings.b.draw = 1; - this->field_0x68 = sub_0801E99C(this); - sub_08078784(this, this->field_0x68); + this->field_0x68.HALF.LO = sub_0801E99C(this); + sub_08078784(this, this->field_0x68.HALF.LO); sub_0807DD50(this); } } void sub_08065648(Entity* this) { if (this->interactType == 2) { - this->field_0x69 = this->action; + this->field_0x68.HALF.HI = this->action; this->action = 4; this->interactType = 0; sub_0806F118(this); @@ -83,14 +83,14 @@ void sub_08065648(Entity* this) { void sub_08065680(Entity* this) { if (UpdateFuseInteraction() != 0) { - this->action = this->field_0x69; + this->action = this->field_0x68.HALF.HI; InitAnimationForceUpdate(this, this->field_0x6a.HALF.LO); } } void sub_080656A4(Entity* this) { if ((gTextBox.doTextBox & 0x7F) == 0) { - this->action = this->field_0x69; + this->action = this->field_0x68.HALF.HI; InitAnimationForceUpdate(this, this->field_0x6a.HALF.LO); } UpdateAnimationSingleFrame(this); @@ -98,7 +98,7 @@ void sub_080656A4(Entity* this) { void sub_080656D4(Entity* this) { if (this->interactType == 2) { - this->field_0x69 = this->action; + this->field_0x68.HALF.HI = this->action; this->action = 4; this->interactType = 0; sub_0806F118(this); @@ -109,7 +109,7 @@ void sub_080656D4(Entity* this) { StartCutscene(this, &gUnk_0800B41C); goto label2; } else { - this->field_0x69 = this->action; + this->field_0x68.HALF.HI = this->action; this->action = 3; this->interactType = 0; TextboxNoOverlap(*(u32*)(*(u32*)&this->cutsceneBeh.HWORD + 4), this); diff --git a/src/npc/teachers.c b/src/npc/teachers.c index a82bdadd..1a98617f 100644 --- a/src/npc/teachers.c +++ b/src/npc/teachers.c @@ -30,7 +30,7 @@ void Teachers(Entity* this) { this->action = 1; this->spriteSettings.b.draw = TRUE; this->animationState = this->actionDelay; - this->field_0x69 = 0; + this->field_0x68.HALF.HI = 0; sub_0805E3A0(this, 2); sub_0807DD50(this); } @@ -39,7 +39,7 @@ void Teachers(Entity* this) { if (this->interactType == 2) { this->action = 2; this->interactType = 0; - this->field_0x69 = this->animIndex; + this->field_0x68.HALF.HI = this->animIndex; InitializeAnimation(this, (this->animIndex & -4) + sub_0806F5A4(GetFacingDirection(this, &gLinkEntity))); sub_0806F118(this); @@ -50,15 +50,15 @@ void Teachers(Entity* this) { case 2: if (UpdateFuseInteraction(this)) { this->action = 1; - InitializeAnimation(this, this->field_0x69); + InitializeAnimation(this, this->field_0x68.HALF.HI); } } } void sub_0806C674(Entity *this) { - this->field_0x68 = sub_0801E99C(); - sub_08078784(this, this->field_0x68); + this->field_0x68.HALF.LO = sub_0801E99C(); + sub_08078784(this, this->field_0x68.HALF.LO); } void Teachers_Head(Entity *this) diff --git a/src/npc/townMinish.c b/src/npc/townMinish.c index c47a2a3f..d6595f2b 100644 --- a/src/npc/townMinish.c +++ b/src/npc/townMinish.c @@ -39,7 +39,7 @@ void sub_0806ABFC(Entity *this) this->animationState = this->field_0x6a.HALF.LO << 1; animationState = this->animationState; - this->field_0x69 = animationState << 2; + this->field_0x68.HALF.HI = animationState << 2; this->actionDelay = 0; } @@ -48,7 +48,7 @@ void sub_0806ABFC(Entity *this) /*void sub_0806AC3C(Entity *this) { if (this->field_0x58 <= 3) { s32 unk; - u8 field_0x69; + u8 field_0x68; Entity *link = &gLinkEntity; if (sub_080041A0(this, link, 0x18, 0x18)) { @@ -58,24 +58,24 @@ void sub_0806ABFC(Entity *this) unk = this->animationState << 2; } - field_0x69 = this->field_0x69; + field_0x68.HALF.HI = this->field_0x68.HALF.HI; - if (unk != field_0x69) { + if (unk != field_0x68.HALF.HI) { s32 temp; - if (((unk - field_0x69) & 0x1f) <= 0xf) { - field_0x69--; + if (((unk - field_0x68.HALF.HI) & 0x1f) <= 0xf) { + field_0x68.HALF.HI--; } else { - field_0x69++; + field_0x68.HALF.HI++; } - temp = field_0x69; - this->field_0x69 = temp & 0x1f; + temp = field_0x68.HALF.HI; + this->field_0x68.HALF.HI = temp & 0x1f; } - if (!(this->field_0x69 & 7)) { - this->animationState = sub_0806F5B0(this->field_0x69); + if (!(this->field_0x68.HALF.HI & 7)) { + this->animationState = sub_0806F5B0(this->field_0x68.HALF.HI); UpdateSprite(this, (this->animationState >> 1) ^ 2); } } diff --git a/src/npc/townsperson.c b/src/npc/townsperson.c index a10aed22..c0b1dd76 100644 --- a/src/npc/townsperson.c +++ b/src/npc/townsperson.c @@ -123,7 +123,7 @@ void sub_08061CEC(Entity* this) { this->action = 1; this->spriteSettings.b.draw = TRUE; this->animationState = this->actionDelay; - this->field_0x69 = 0xff; + this->field_0x68.HALF.HI = 0xff; uVar2 = sub_0805ACC0(this); if (uVar2 == 0) { this->field_0x6a.HWORD = this->x.HALF.HI; @@ -132,7 +132,7 @@ void sub_08061CEC(Entity* this) { this->field_0x6a.HWORD = (uVar2 >> 0x10); } *(u16*)&this->field_0x6c = uVar2; - this->field_0x68 = sub_0801E99C(this); + this->field_0x68.HALF.LO = sub_0801E99C(this); sub_0807DD64(this); sub_08061D64(this); } @@ -143,7 +143,7 @@ void sub_08061D64(Entity* this) { this->action = 3; this->interactType = 0; sub_0806F118(this); - this->field_0x69 = this->animIndex; + this->field_0x68.HALF.HI = this->animIndex; InitializeAnimation(this, (this->animIndex & -4) + sub_0806F5A4(GetFacingDirection(this, &gLinkEntity))); } else { sub_0807DDAC(this, 0); @@ -156,7 +156,7 @@ void sub_08061D64(Entity* this) { this->action = 2; this->interactType = 0; sub_08062048(this); - this->field_0x69 = this->animIndex; + this->field_0x68.HALF.HI = this->animIndex; InitializeAnimation(this, (this->animIndex & -4) + sub_0806F5A4(GetFacingDirection(this, &gLinkEntity))); } } @@ -166,7 +166,7 @@ void sub_08061E24(Entity* this) { GetNextFrame(this); if ((gTextBox.doTextBox & 0x7f) == 0) { this->action = 1; - InitializeAnimation(this, this->field_0x69); + InitializeAnimation(this, this->field_0x68.HALF.HI); } } @@ -174,13 +174,13 @@ void sub_08061E50(Entity* this) { if (UpdateFuseInteraction(this) != 0) { this->action = 1; - InitializeAnimation(this, this->field_0x69); + InitializeAnimation(this, this->field_0x68.HALF.HI); } } void sub_08061E70(Entity* this) { if ((this->entityType).subtype == 6) { - sub_08078784(this, this->field_0x68); + sub_08078784(this, this->field_0x68.HALF.LO); } else { sub_08078778(this); } @@ -300,7 +300,7 @@ void sub_08062048(Entity *this) int iVar1; if ((this->entityType).subtype == 6) { - iVar1 = gUnk_02002A40.unk - 2; + iVar1 = gUnk_02002A40.unk8 - 2; if (iVar1 < 0) { iVar1 = 0; } diff --git a/src/npc/windTribespeople.c b/src/npc/windTribespeople.c index b95db3d4..60f9905b 100644 --- a/src/npc/windTribespeople.c +++ b/src/npc/windTribespeople.c @@ -78,8 +78,8 @@ void sub_0806C870(Entity *this) u8 bVar1; bVar1 = sub_0801E99C(); - this->field_0x68 = bVar1; - sub_08078784(this, this->field_0x68); + this->field_0x68.HALF.LO = bVar1; + sub_08078784(this, this->field_0x68.HALF.LO); } void WindTribespeople_Head(Entity *this) @@ -122,7 +122,7 @@ void sub_0806C90C(Entity *param_1,Entity *param_2) void sub_0806C928(Entity *this) { - ShowNPCDialogue(this, &gUnk_08113ABC[gUnk_02002A40.unk * 2]); + ShowNPCDialogue(this, &gUnk_08113ABC[gUnk_02002A40.unk8 * 2]); } void sub_0806C944(Entity *this) diff --git a/src/object/cloud.c b/src/object/cloud.c index c55e0d57..6ca000ac 100644 --- a/src/object/cloud.c +++ b/src/object/cloud.c @@ -47,7 +47,7 @@ void sub_0809F514(Entity* this) { this->action = 1; this->actionDelay = 120; this->spriteSettings.b.draw = 0; - *(u8*)&this->field_0x68 = 12; + this->field_0x68.HALF.LO = 12; gRoomControls.cameraTarget = this; gUnk_02034490 = 255; sub_0809F7BC(this); @@ -81,7 +81,7 @@ void sub_0809F5B0(Entity* this) { void sub_0809F5DC(Entity* this) { this->action = 1; this->spriteSettings.b.draw = 0; - *(u8*)&this->field_0x68 = 12; + this->field_0x68.HALF.LO = 12; } void sub_0809F5F0(Entity* this) { @@ -195,14 +195,8 @@ void sub_0809F7BC(Entity* this) { } void sub_0809F7F4(Entity* this) { - u8 cVar1; - u8* puVar2; - - puVar2 = (u8*)&this->field_0x68; - *puVar2 -= 1; - - if (*puVar2 == 0) { - *puVar2 = 12; + if (--this->field_0x68.HALF.LO == 0) { + this->field_0x68.HALF.LO = 12; PlaySFX(388); } } diff --git a/src/object/greatFairy.c b/src/object/greatFairy.c index 21edd60f..4e2c4d40 100644 --- a/src/object/greatFairy.c +++ b/src/object/greatFairy.c @@ -459,23 +459,16 @@ void sub_08087294(Entity* this) { gUnk_081207A4[this->action](this); } -#ifdef NON_MATCHING void sub_080872AC(Entity* this) { this->spriteSettings.b.draw = 1; this->spriteOrientation.flipY = 1; - this->spriteRendering.b0 = 0; - this->field_0x68 = (u16)(this->x).HALF.HI; - this->field_0x6a = (u16)(this->y).HALF.HI; + this->spriteRendering.b3 = 0; + this->field_0x68.HWORD = this->x.HALF.HI; + this->field_0x6a.HWORD = this->y.HALF.HI; this->direction = (u8)Random() & 0x1F; this->nonPlanarMovement = 32; GreatFairy_InitializeAnimation(this); } -#else -NAKED -void sub_080872AC(Entity* this) { - asm(".include \"asm/greatFairy/sub_080872AC.inc\""); -} -#endif //clang-format off void (*const GreatFairy_Main[])(Entity*) = { diff --git a/src/object/object48.c b/src/object/object48.c new file mode 100755 index 00000000..c2a25071 --- /dev/null +++ b/src/object/object48.c @@ -0,0 +1,544 @@ +#include "global.h" +#include "entity.h" +#include "flags.h" +#include "functions.h" +#include "main.h" +#include "menu.h" +#include "npc.h" +#include "position.h" +#include "readKeyInput.h" +#include "structures.h" + +extern bool32 sub_080AE008(Entity*, int, int); +extern int sub_0807A094(int); +extern u32 sub_0801D754(const u8*, u8, u8); +extern u32 sub_080041EC(int, int); +extern u32 sub_080045DA(int, int); + +static bool32 sub_0808E950(void); +static void sub_0808EABC(Entity*); +static Entity* sub_0808EC80(int); +static u32 sub_0808EF6C(Entity*); +static void sub_0808EFF0(Entity*); + +typedef struct { + u8 unk0; + u8 unk1; + u8 unk2; +} PACKED struct_08121CD4; + +typedef struct { + u16 unk0; + u16 unk2; + u16 unk4; + u8 unk6_0 : 3; + u8 unk6_3 : 3; + u8 unk6_6 : 2; + u8 unk7; +} struct_08121D54; + +extern void (*const gUnk_08121C64[])(Entity*); +extern void (*const gUnk_08121CCC[])(Entity*); +extern const int gUnk_08133368[]; +extern const u8 gUnk_085A2E80[]; +extern const struct_08121CD4 gUnk_08121CD4[][4]; +extern const u8 gUnk_08121D10[]; +extern const u8 gUnk_08121D38[][8]; +extern const u16 gUnk_08121D18[][8]; +extern const u8 gUnk_08121D48[]; +extern const struct_08121D54 gUnk_08121D54[]; + +void Object48(Entity* this) { + if (this->currentHealth == 0) { + sub_0808EFF0(this); + } + gUnk_08121C64[this->entityType.form](this); + if (this->animIndex < 64) { + UpdateAnimationSingleFrame(this); + } +} + +void sub_0808E7D8(Entity* this) { + gUnk_08121CCC[this->action](this); +} + +void sub_0808E7F0(Entity* this) { + sub_080AE008(this, 1, 2); + this->palette.b.b0 = 0xF; + this->spriteSettings.b.draw = 0; + this->entityType.parameter = 0xFF; + this->action = 1; +} + +void sub_0808E818(Entity* this) { + u32 var0; + u32 var1; + + if (!sub_0808E950()) { + int var2 = -1; + this->entityType.parameter = var2; + this->field_0x68.HWORD = var2; + this->field_0x6a.HWORD = var2; + this->spriteSettings.b.draw = 0; + return; + } + + if (this->entityType.parameter != gUnk_02019EE0.unk6) { + this->entityType.parameter = gUnk_02019EE0.unk6; + this->field_0x68.HWORD = CheckGlobalFlag(EZERO_1ST) == 0 ? 0x400 : 0x100; + this->field_0x70.BYTES.byte0 = 4; + this->animationState = 2; + var1 = gUnk_08133368[sub_0807A094(1) - 22] & 0xFFFFFF; + sub_0801D754(&gUnk_085A2E80[var1], 31, 1); + } + + if (gUnk_02032EC0.transitionType == 0) { + if (gUnk_03000FF0.heldKeys & L_BUTTON) { + switch (gUnk_03000FF0.newKeys) { + case DPAD_UP: + this->animationState = 0; + break; + case DPAD_RIGHT: + this->animationState = 1; + break; + case DPAD_DOWN: + this->animationState = 2; + break; + case DPAD_LEFT: + this->animationState = 3; + break; + case B_BUTTON: + this->field_0x70.BYTES.byte0 = this->field_0x70.BYTES.byte0 ? 0 : 4; + break; + } + } + } + + this->spriteSettings.b.flipX = this->animationState == 3; + var0 = this->field_0x68.HWORD + this->field_0x70.BYTES.byte0 + this->animationState; + if (this->field_0x6a.HWORD != var0) { + this->field_0x6a.HWORD = var0; + this->spriteIndex = var0 >> 8; + InitAnimationForceUpdate(this, (u8)var0); + } + + this->spriteSettings.b.draw = 2; +} + +static bool32 sub_0808E950(void) { + bool32 result = FALSE; + switch (gUnk_02032EC0.transitionType) { + case 0: + case 4: + case 5: + case 6: + case 7: + result = gUnk_02019EE0.unk8[gUnk_02019EE0.unk6] == 1; + break; + } + return result; +} + +void sub_0808E988(Entity* this) { + if (this->action == 0) { + this->action = 1; + this->spriteIndex = 0x142; + this->entityType.parameter = 0xFF; + sub_080AE008(this, 1, 3); + } + + if (sub_0808E950()) { + int i; + for (i = 6; i != 0; i--) { + if (GetInventoryValue(i)) { + break; + } + } + + if (i != 0) { + if (this->entityType.parameter != i) { + InitAnimationForceUpdate(this, i); + } + this->spriteSettings.b.draw = 2; + return; + } + } + + this->spriteSettings.b.draw = 0; +} + +void sub_0808E9F4(Entity* this) { + if (sub_0808E950() && gUnk_02002A40.unk6) { + this->spriteSettings.b.draw = 2; + } else { + this->spriteSettings.b.draw = 0; + } +} + +void sub_0808EA28(Entity* this) { + u32 var0; + u32 var1; + + if (this->entityType.form == 3) { + if (((struct_02000000 *)0x2000000)->gameLanguage > 1) { + this->spriteSettings.b.draw = 2; + } else { + this->spriteSettings.b.draw = 0; + } + } + + if (this->entityType.form == gUnk_02019EE0.unk6) { + var0 = 12; + var1 = 1; + } else { + if (gUnk_02032EC0.transitionType == 5 && this->entityType.form == gUnk_02019EE0.unk7) { + var0 = 13; + var1 = 2; + } else { + var0 = 14; + var1 = 2; + } + } + + this->palette.b.b0 = var0; + this->spriteRendering.b3 = var1; + sub_0808EABC(this); + gUnk_02019EE0.unk0 |= sub_0808EF6C(this); +} + +void sub_0808EABC(Entity* this) { + int var0 = -72; + int var1 = this->entityType.form * 32 + 40; + int var2 = gUnk_02019EE0.unk6 == this->entityType.form; + switch (gUnk_02032EC0.transitionType) { + case 0: + var0 = 24; + break; + case 3: + case 4: + case 6: + case 7: + if (var2) { + var0 = 42; + var1 = 56; + } + break; + case 5: + switch (gMenu.unk10[this->entityType.form]) { + case 0: + var0 = 42; + var1 = 40; + break; + case 1: + case 2: + var0 = 20; + var1 = 144; + var1 -= (gMenu.unk16 - gMenu.unk10[this->entityType.form]) * 32; + break; + } + break; + case 2: + if (var2) { + var0 = 26; + var1 = 42; + } + break; + default: + if (var2) { + var0 = 8; + var1 = 35; + } + break; + } + + this->field_0x68.HWORD = var0; + this->field_0x6a.HWORD = var1; +} + +void sub_0808EB74(Entity* this) { + Entity* entity = sub_0808EC80(gUnk_02019EE0.unk6); + if (entity) { + this->x.WORD = entity->x.WORD; + this->y.WORD = entity->y.WORD; + this->spriteRendering.b3 = entity->spriteRendering.b3; + sub_0806FAD8(entity, this); + } else { + this->x.HALF.HI = 0xF000; + this->y.HALF.HI = 0xF000; + } +} + +void sub_0808EBB8(Entity* this) { + u32 var0; + u32 x, y; + Entity* entity; + + switch (gUnk_02032EC0.transitionType) { + case 4: + var0 = gMenu.field_0x1 + 4; + break; + case 5: + var0 = 2; + break; + case 6: + var0 = gMenu.field_0x1 == 0 ? 7 : 6; + break; + case 7: + var0 = 4; + break; + case 2: + var0 = 1; + break; + default: + var0 = 0; + break; + } + + x = y = 0xF000; + switch (var0) { + case 0: + break; + case 1: + y = ((struct_02000000 *)0x2000000)->gameLanguage * 16 + 24; + x = 112; + break; + case 2: + var0 = gUnk_02019EE0.unk7; + if (var0 == 4) { + var0 = 7; + } + // Fall through + default: + entity = sub_0808EC80(var0); + if (entity) { + sub_0806FAD8(entity, this); + this->spriteRendering.b3 = entity->spriteRendering.b3; + x = entity->x.HALF.HI; + y = entity->y.HALF.HI; + } + break; + } + + this->x.HALF.HI = x; + this->y.HALF.HI = y; +} + +static Entity* sub_0808EC80(int form) { + Entity* entityA = &gUnk_03003DA0; + Entity* entityB = entityA->field_0x4; + while (entityB != entityA) { + if ((entityB->entityType.type == 0x6 && entityB->entityType.subtype == 0x48) && + form == entityB->entityType.form) { + return entityB; + } + entityB = entityB->field_0x4; + } + return NULL; +} + +void sub_0808ECBC(Entity* this) { + int var0; + int var1; + int var2; + const struct_08121CD4* var3; + + var0 = gMenu.field_0x1; + switch (gUnk_02032EC0.transitionType) { + case 4: + var1 = 1; + break; + case 5: + var0 = gUnk_02019EE0.unk7; + var1 = 2; + break; + case 6: + var1 = 3; + break; + case 7: + var1 = 4; + break; + default: + var1 = 0; + break; + } + + var2 = this->entityType.form - 4; + var3 = &gUnk_08121CD4[var1][var2]; + this->field_0x68.HWORD = var3->unk1; + this->field_0x6a.HWORD = var3->unk2; + if (var3->unk0 == var0) { + this->palette.b.b0 = 13; + } else { + this->palette.b.b0 = 14; + } + + gUnk_02019EE0.unk0 |= sub_0808EF6C(this); +} + +void sub_0808ED64(Entity* this) { + int y = 255; + if (gUnk_02032EC0.transitionType == 1 && gMenu.unk10[1] != 5) { + this->x.HALF.HI = gMenu.unk10[0] * 16 + 28; + y = gMenu.unk10[1] * 16 + 58; + } + this->y.HALF.HI = y; +} + +void sub_0808ED98(Entity* this) { + int y; + if (gUnk_02032EC0.transitionType != 1) { + this->field_0x68.HWORD = 27; + y = -10; + } else { + u32 var0 = gMenu.unk13; + if (var0 > 5) { + var0 = 5; + } + this->field_0x68.HWORD = var0 * 8 + 27; + y = 24; + } + + this->y.HALF.HI = y; + this->field_0x6a.HWORD = y; + this->field_0xf++; + this->spriteOffsetY = gUnk_08121D10[(this->field_0xf / 4) & 0x7]; + sub_0808EF6C(this); +} + +void sub_0808EE00(Entity* this) { + int var0, var1, var2; + + var0 = ((struct_02000000 *)0x2000000)->gameLanguage != 0; + var1 = this->entityType.form - 10; + this->frameIndex = gUnk_08121D38[var0][var1]; + this->x.HALF.HI = gUnk_08121D18[var0][var1]; + this->field_0x68.HWORD = gUnk_08121D18[var0][var1]; + var1 -= var0; + if (gUnk_02032EC0.transitionType != 1) { + var1 = 128; + var2 = 176; + } else { + var2 = 140; + } + + this->field_0x6a.HWORD = var2; + this->palette.b.b0 = gMenu.unk10[1] == 5 && var1 == gMenu.field_0x12 ? 11 : 9; + gUnk_02019EE0.unk0 |= sub_0808EF6C(this); +} + +void nullsub_522(Entity* this) { + +} + +void sub_0808EE98(Entity* this) { + this->actionDelay = gUnk_02032EC0.transitionType; + this->frameIndex = gUnk_08121D48[this->actionDelay]; + if (this->actionDelay != 2) { + this->field_0x68.HWORD = 96; + } else { + this->field_0x68.HWORD = -96; + } + sub_0808EF6C(this); +} + +void sub_0808EED8(Entity* this) { + int var0; + if (gUnk_02032EC0.transitionType != 3) { + this->spriteSettings.b.draw = 0; + } else { + this->spriteSettings.b.draw = 2; + var0 = this->entityType.form - 19; + this->palette.b.b0 = gMenu.field_0x1 == var0 ? 4 : 3; + } +} + +void sub_0808EF24(Entity* this) { + int var0; + if (gUnk_02032EC0.transitionType != 3) { + this->spriteSettings.b.draw = 0; + } else { + this->spriteSettings.b.draw = 2; + if (this->entityType.form == 21) { + var0 = ((struct_02000000 *)0x2000000)->field_0x5; + } else { + var0 = ((struct_02000000 *)0x2000000)->brightnessPref; + } + this->frameIndex = this->lastFrameIndex + var0; + } +} + +static u32 sub_0808EF6C(Entity* this) { + int var0; + u32 var1; + int var2; + u32 var3; + int var4; + s16 var5; + s16 var6; + int var7; + + var6 = this->field_0x68.HWORD; + var0 = var6 - this->x.HALF.HI; + var1 = var0; + if (var0 < 0) { + var1 = -var0; + } + if (var1 < 2) { + this->x.WORD = var6 << 16; + var0 = 0; + } + + var5 = this->field_0x6a.HWORD; + var2 = var5 - this->y.HALF.HI; + var3 = var2; + if (var2 < 0) { + var3 = -var2; + } + if (var3 < 2) { + this->y.WORD = var5 << 16; + var2 = 0; + } + + if ((var0 | var2) == 0) { + return 0; + } + + var4 = var7 = sub_080041EC(var0, var2); + var4 += 128; + var7 = var4 + var7 * 16; + if (this->field_0x6c.HWORD < var7) { + var7 = this->field_0x6c.HWORD; + } + this->nonPlanarMovement = var7; + this->direction = sub_080045DA(var0, var2) >> 3; + sub_0806F69C(this); + return 1; +} + +static void sub_0808EFF0(Entity* this) { + const struct_08121D54* var0; + int var1; + + this->spriteSettings.b.draw = 2; + this->nonPlanarMovement = 0x400; + this->currentHealth = 1; + this->frameIndex = 0xFF; + this->animIndex = 0xFF; + var0 = &gUnk_08121D54[this->entityType.form]; + this->x.HALF.HI = var0->unk2; + this->field_0x68.HWORD = var0->unk2; + this->y.HALF.HI = var0->unk4; + this->field_0x6a.HWORD = var0->unk4; + this->spriteRendering.b3 = var0->unk6_0; + this->spritePriority.b0 = var0->unk6_3; + this->spriteOrientation.flipY = var0->unk6_6; + this->field_0x6c.HWORD = var0->unk0; + var1 = var0->unk7; + if (var1 & 0x80) { + var1 &= 0x7F; + this->frameIndex = var1; + this->lastFrameIndex = var1; + } else { + InitAnimationForceUpdate(this, var1); + } +} diff --git a/src/object/object49.c b/src/object/object49.c index d9551953..a586e520 100644 --- a/src/object/object49.c +++ b/src/object/object49.c @@ -114,7 +114,7 @@ void sub_0808F244(Entity *this) *(u32 *)&this->field_0x78 = 0x100 - this->parent->height.HALF.HI; *(u32 *)&this->field_0x70.WORD = *((u8 *)&this->parent->field_0x7c + 3); sub_0808F2B0(this); - if ((this->parent->field_0x6d & 2) != 0) { + if ((this->parent->field_0x6c.HALF.HI & 2) != 0) { DeleteThisEntity(); } } diff --git a/src/room.c b/src/room.c index 0bef2ef3..df30ec9e 100644 --- a/src/room.c +++ b/src/room.c @@ -4,6 +4,7 @@ #include "room.h" #include "functions.h" #include "flags.h" +#include "npc.h" #include "link.h" #include "screen.h" #include "main.h" @@ -345,7 +346,7 @@ extern EntityData gUnk_080D6734; extern EntityData gUnk_080D66F4; void sub_0804B738(void) { - if (gUnk_02002A40.field_0x8 > 4) { + if (gUnk_02002A40.unk8 > 4) { LoadRoomEntityList(&gUnk_080D6714); } // flippers @@ -363,7 +364,7 @@ u32 sub_0804B788() { extern EntityData gUnk_080D6924; void sub_0804B78C(void) { - if (gUnk_02002A40.field_0x8 > 7) { + if (gUnk_02002A40.unk8 > 7) { LoadRoomEntityList(&gUnk_080D6924); } } @@ -465,7 +466,7 @@ extern EntityData UpperInn_Din; void sub_0804B938(void) { int iVar1; - if (gUnk_02002A40.field_0x8 < 4) + if (gUnk_02002A40.unk8 < 4) return; if (CheckGlobalFlag(RENTED_HOUSE_DIN)) { @@ -515,7 +516,7 @@ u32 sub_0804BA08() { extern EntityData gUnk_080D7038; void sub_0804BA0C(void) { - if (gUnk_02002A40.field_0x8 < 8) { + if (gUnk_02002A40.unk8 < 8) { LoadRoomEntityList(&gUnk_080D7038); } if (gRoomVars.filler[0] == 0) { @@ -535,13 +536,13 @@ extern EntityData gUnk_080D71F0; void sub_0804BA44(void) { - if (gUnk_02002A40.field_0x8 == 6) + if (gUnk_02002A40.unk8 == 6) LoadRoomEntityList(&gUnk_080D7140); - if (gUnk_02002A40.field_0x8 == 7) + if (gUnk_02002A40.unk8 == 7) LoadRoomEntityList(&gUnk_080D7170); - if ((gUnk_02002A40.field_0x8 < 8) || (LoadRoomEntityList(&gUnk_080D71A0), gUnk_02002A40.field_0x8 < 8)) + if ((gUnk_02002A40.unk8 < 8) || (LoadRoomEntityList(&gUnk_080D71A0), gUnk_02002A40.unk8 < 8)) LoadRoomEntityList(&gUnk_080D71D0); else LoadRoomEntityList(&gUnk_080D71F0); @@ -1449,7 +1450,7 @@ extern EntityData gUnk_080DB238; void sub_0804C664(void) { - if (gUnk_02002A40.field_0x8 > 8) + if (gUnk_02002A40.unk8 > 8) LoadRoomEntityList(&gUnk_080DB238); sub_0801AFE4(); @@ -2120,10 +2121,10 @@ u32 sub_0804CC6C() { } void sub_0804CC70(void) { - if (gUnk_02002A40.filler[7] == 0) { + if (gUnk_02002A40.unk7 == 0) { goto a; } - if (gUnk_02002A40.filler[7] != 2) { + if (gUnk_02002A40.unk7 != 2) { a: SetTileType(0x90, 0x20b, 1); SetTileType(0x90, 0x411, 1); @@ -4233,7 +4234,7 @@ void LoadHyruleTown(void) { sub_08054570(); sub_08059D18(); SetTileType(0x176, 0x66b, 1); - if (gUnk_02002A40.field_0x8 == 1) { + if (gUnk_02002A40.unk8 == 1) { sub_0801D000(0); } else { sub_08018C58(0xdb4); @@ -4258,7 +4259,7 @@ void LoadHyruleTown(void) { } else { LoadRoomEntityList(&gUnk_080EECBC); } - if (CheckKinstoneFused(0x1b) && (gUnk_02002A40.field_0x8 > 3)) { + if (CheckKinstoneFused(0x1b) && (gUnk_02002A40.unk8 > 3)) { if (!CheckGlobalFlag(NEW_HOUSE_DIN) && !CheckGlobalFlag(NEW_HOUSE_NAYRU) && !CheckGlobalFlag(NEW_HOUSE_FARORE)) { if (!CheckGlobalFlag(RENTED_HOUSE_DIN) && !CheckGlobalFlag(RENTED_HOUSE_NAYRU) && !CheckGlobalFlag(RENTED_HOUSE_FARORE)) { LoadRoomEntityList(&gUnk_080EE95C); @@ -4282,7 +4283,7 @@ void LoadHyruleTown(void) { } else { LoadRoomEntityList(&gUnk_080EE9DC); } - if ((gUnk_02002A40.field_0x8 > 4) && !CheckKinstoneFused(0xb) && + if ((gUnk_02002A40.unk8 > 4) && !CheckKinstoneFused(0xb) && (CheckGlobalFlag(RENTED_HOUSE_DIN) || CheckGlobalFlag(RENTED_HOUSE_NAYRU) || CheckGlobalFlag(RENTED_HOUSE_FARORE))) { LoadRoomEntityList(&gUnk_080EEA5C); } @@ -4290,10 +4291,10 @@ void LoadHyruleTown(void) { if (!CheckLocalFlag(0xd0) && GetInventoryValue(0x14)) { LoadRoomEntityList(&gUnk_080EEABC); } - if ((gUnk_02002A40.field_0x8 > 3) && CheckGlobalFlag(INLOCK)) { + if ((gUnk_02002A40.unk8 > 3) && CheckGlobalFlag(INLOCK)) { LoadRoomEntityList(&gUnk_080EEA7C); } - if ((gUnk_02002A40.field_0x8 < 6) && !CheckGlobalFlag(MIZUKAKI_START)) { + if ((gUnk_02002A40.unk8 < 6) && !CheckGlobalFlag(MIZUKAKI_START)) { LoadRoomEntityList(&gUnk_080EEA9C); } if ((gUnk_02002A40.windcrests & 0x8000000) == 0) { @@ -4552,7 +4553,7 @@ extern EntityData gUnk_080F236C; void sub_0804E52C(void) { - if (gUnk_02002A40.field_0x8 > 7) { + if (gUnk_02002A40.unk8 > 7) { LoadRoomEntityList(&gUnk_080F23BC); } // flippers @@ -4575,7 +4576,7 @@ extern EntityData gUnk_080F2600; void sub_0804E574(void) { - switch (gUnk_02002A40.field_0x8) { + switch (gUnk_02002A40.unk8) { case 0: case 2: case 4: @@ -4816,7 +4817,7 @@ void sub_0804E8FC(void) if (!CheckGlobalFlag(INLOCK)) { LoadRoomEntityList(&gUnk_080F36FC); } - else if (gUnk_02002A40.field_0x8 < 4) { + else if (gUnk_02002A40.unk8 < 4) { LoadRoomEntityList(&gUnk_080F3604); } } @@ -4882,7 +4883,7 @@ void sub_0804E9D0(void) if (CheckKinstoneFused(0x12)) { LoadRoomEntityList(&gUnk_080F3C94); } - if ((gUnk_02002A40.field_0x8 > 3) && CheckGlobalFlag(TINGLE_TALK1ST)) { + if ((gUnk_02002A40.unk8 > 3) && CheckGlobalFlag(TINGLE_TALK1ST)) { LoadRoomEntityList(&gUnk_080F3C44); } SetTile(0x4091, 0x590, 1); @@ -5270,7 +5271,7 @@ extern u32 gUnk_08011C50; void sub_0804EFF8(void) { - if (gUnk_02002A40.field_0x8 > 7) { + if (gUnk_02002A40.unk8 > 7) { LoadRoomEntityList(&gUnk_080F5DD0); } if (CheckGlobalFlag(MAROYA_WAKEUP)) { @@ -5302,7 +5303,7 @@ extern EntityData gUnk_080F5F78; void sub_0804F050(void) { - if (gUnk_02002A40.field_0x8 > 4) { + if (gUnk_02002A40.unk8 > 4) { LoadRoomEntityList(&gUnk_080F5F38); } if (!CheckLocalFlag(0x92)) { @@ -5503,7 +5504,7 @@ void sub_0804F25C(void) if ((gUnk_02002A40.windcrests & 0x40000000) == 0) { LoadRoomEntityList(&gUnk_080F70D8); } - if (gUnk_02002A40.field_0x8 > 3) { + if (gUnk_02002A40.unk8 > 3) { LoadRoomEntityList(&gUnk_080F7088); } } @@ -5549,7 +5550,7 @@ extern EntityData gUnk_080F7550; void sub_0804F330(void) { sub_0805ADD8(0); - if (gUnk_02002A40.field_0x8 > 3) { + if (gUnk_02002A40.unk8 > 3) { LoadRoomEntityList(&gUnk_080F7500); } if (GetInventoryValue(0x11) && !GetInventoryValue(0x12)) { @@ -5591,7 +5592,7 @@ void sub_0804F3B0(void) SetTile(0x4072, 0xd88, 1); SetTile(0x4096, 0xdc8, 1); } - if ((gUnk_02002A40.field_0x8 > 3) && CheckGlobalFlag(TINGLE_TALK1ST)) { + if ((gUnk_02002A40.unk8 > 3) && CheckGlobalFlag(TINGLE_TALK1ST)) { LoadRoomEntityList(&gUnk_080F78A0); } } @@ -5818,7 +5819,7 @@ extern EntityData gUnk_080F806C; void sub_0804FA00(void) { sub_0805ADD8(0); - if ((gUnk_02002A40.field_0x8 > 3) && CheckGlobalFlag(TINGLE_TALK1ST)) { + if ((gUnk_02002A40.unk8 > 3) && CheckGlobalFlag(TINGLE_TALK1ST)) { LoadRoomEntityList(&gUnk_080F806C); } } @@ -6547,14 +6548,6 @@ u32 sub_0804FF7C() { void nullsub_106() {} -typedef struct { - char header[4]; - u8 saveFile; - u8 field_0x5; - u8 brightnessPref; -} struct_02000000; - -extern struct_02000000 gUnk_02000000; void sub_0804FF84(u32 arg0) { diff --git a/src/sub_0801D754.c b/src/sub_0801D754.c index f2bab6f9..dad57fa1 100644 --- a/src/sub_0801D754.c +++ b/src/sub_0801D754.c @@ -1,7 +1,9 @@ #include "global.h" +extern u8 gUnk_020176E0; + extern void sub_0807C960(); -extern u32 sub_0801D754(u32, u8, u8); +extern u32 sub_0801D754(const u8*, u8, u8); u32 sub_0807C9D8(u32* a1) { u32* v1; // r5@1 @@ -10,6 +12,6 @@ u32 sub_0807C9D8(u32* a1) { sub_0807C960(0x6004000, *a1); sub_0807C960(0x6000000, v1[1]); sub_0807C960(0x6008000, v1[2]); - sub_0807C960(0x20176E0, v1[3]); - return sub_0801D754(0x20176E0, 2, 13); + sub_0807C960(&gUnk_020176E0, v1[3]); + return sub_0801D754(&gUnk_020176E0, 2, 13); } diff --git a/src/sub_080A3B84.c b/src/sub_080A3B84.c index 80eff685..f45daa40 100644 --- a/src/sub_080A3B84.c +++ b/src/sub_080A3B84.c @@ -29,7 +29,7 @@ void sub_080A3BD0(void) s32 iVar2; gMenu.field_0x1 = 1; - gMenu.field_0x12[0x17] = 0; + gMenu.unk2a = 0; sub_080A4D34(); LoadPalettesByPaletteGroupIndex(0xcb); sub_0801D7EC(0x75); From bd9e7c8616f7ace2a583495c97fcd8ea4ba2ef83 Mon Sep 17 00:00:00 2001 From: theo3 Date: Mon, 3 Aug 2020 21:32:25 -0700 Subject: [PATCH 071/158] labeled params for arm call funcs --- asm/code_08000108.s | 74 +++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 74 insertions(+) diff --git a/asm/code_08000108.s b/asm/code_08000108.s index a1f855fd..2e6cc668 100644 --- a/asm/code_08000108.s +++ b/asm/code_08000108.s @@ -168,165 +168,239 @@ gUnk_08000278:: .4byte gUnk_02030EB4 @ call 0x80B19CC +@ ======== +@ Unused? Doesn't seem to be called by anything in Ghidra. thumb_func_start sub_08000288 sub_08000288: @ 0x08000288 ldr r3, _080002F4 @ =gUnk_03005740 bx r3 @ call 0x80B19D8 +@ ======== +@ Unused? Doesn't seem to be called by anything in Ghidra. thumb_func_start sub_0800028C sub_0800028C: @ 0x0800028C ldr r3, _080002F8 @ =gUnk_0300574C bx r3 @ call 0x80B19EC +@ ======== +@ Unused? Doesn't seem to be called by anything in Ghidra. thumb_func_start sub_08000290 sub_08000290: @ 0x08000290 ldr r3, _080002FC @ =gUnk_03005760 bx r3 @ call 0x80B19FC +@ ======== +@ Unused? Doesn't seem to be called by anything in Ghidra. thumb_func_start sub_08000294 sub_08000294: @ 0x08000294 ldr r3, _08000300 @ =gUnk_03005770 bx r3 @ call 0x80B1A04 +@ ======== +@ Unused? Doesn't seem to be called by anything in Ghidra. thumb_func_start sub_08000298 sub_08000298: @ 0x08000298 ldr r3, _08000304 @ =gUnk_03005778 bx r3 @ call 0x80B1A0C +@ r0: entity* +@ r1: s32 +@ r2: s32 thumb_func_start sub_0800029C sub_0800029C: @ 0x0800029C ldr r3, _08000308 @ =gUnk_03005780 bx r3 @ call 0x080B1A28 +@ r0: entity +@ return: u32 (tileType) thumb_func_start GetTileTypeByEntity GetTileTypeByEntity: @ 0x080002A0 ldr r3, _0800030C @ =gUnk_0300579C bx r3 @ call 0x080B1A34 +@ r0: s32 (xPos) +@ r1: s32 (yPos) +@ r2: u32 (layer) +@ return: u32 (tileType) thumb_func_start GetTileTypeByPos GetTileTypeByPos: @ 0x080002A4 ldr r3, _08000310 @ =gUnk_030057A8 bx r3 @ call 0x080B1A48 +@ r0: s32 (xPos) +@ r1: s32 (yPos) +@ r2: u32 (layer) thumb_func_start sub_080002A8 sub_080002A8: @ 0x080002A8 ldr r3, _08000314 @ =gUnk_030057BC bx r3 @ call 0x080B1A58 +@ r0: s32 (xPos) +@ r1: s32 (yPos) +@ r2: u32 (layer) thumb_func_start sub_080002AC sub_080002AC: @ 0x080002AC ldr r3, _08000318 @ =gUnk_030057CC bx r3 @ call 0x080B1A60 +@ r0: u32 (tileIndex) +@ r1: u32 (layer) +@ return: u32 (tileType) thumb_func_start GetTileType GetTileType: @ 0x080002B0 ldr r3, _0800031C @ =gUnk_030057D4 bx r3 @ call 0x080B1A8C +@ r0: Entity* +@ r1: u32 +@ r2: u32 thumb_func_start sub_080002B4 sub_080002B4: @ 0x080002B4 ldr r3, _08000320 @ =gUnk_03005800 bx r3 @ call 0x080B1AA8 +@ r0: +@ r1: +@ r2: +@ return: +@ ======== +@ Called every frame a pot is thrown, every frame the screen is sliding in a transition, and once when entering stairs. thumb_func_start sub_080002B8 sub_080002B8: @ 0x080002B8 ldr r3, _08000324 @ =gUnk_0300581C bx r3 @ call 0x080B1AB4 +@ r0: s32 (xPos) +@ r1: s32 (yPos) +@ r2: u32 (layer) thumb_func_start sub_080002BC sub_080002BC: @ 0x080002BC ldr r3, _08000328 @ =gUnk_03005828 bx r3 @ call 0x080B1AC8 +@ r0: u32 +@ r1: u32 +@ r2: u32 +@ return: ??? thumb_func_start sub_080002C0 sub_080002C0: @ 0x080002C0 ldr r3, _0800032C @ =gUnk_0300583C bx r3 @ call 0x080B1AD8 +@ r0: Entity* +@ r1: s32 (xOffset) +@ r2: s32 (yOffset) +@ ======== +@ Unused? Doesn't seem to be called by anything in Ghidra. thumb_func_start sub_080002C4 sub_080002C4: @ 0x080002C4 ldr r3, _08000330 @ =gUnk_0300584C bx r3 @ call 0x080B1AE0 +@ r0: u32 (tileIndex) +@ r1: u32 (layer) thumb_func_start sub_080002C8 sub_080002C8: @ 0x080002C8 ldr r3, _08000334 @ =gUnk_03005854 bx r3 @ call 0x080B1AF0 +@ r0: Entity* +@ r1: ??? +@ r2: ??? thumb_func_start sub_080002CC sub_080002CC: @ 0x080002CC ldr r3, _08000338 @ =gUnk_03005864 bx r3 @ call 0x080B1B0C +@ r0: Entity* thumb_func_start sub_080002D0 sub_080002D0: @ 0x080002D0 ldr r3, _0800033C @ =gUnk_03005880 bx r3 + @ call 0x080B1B18 +@ r0: s32 (xPos) +@ r1: s32 (yPos) +@ r2: u32 (layer) thumb_func_start sub_080002D4 sub_080002D4: @ 0x080002D4 ldr r3, _08000340 @ =gUnk_0300588C bx r3 @ call 0x080B1B2C +@ ======== +@ Unused? Doesn't seem to be called by anything in Ghidra. thumb_func_start sub_080002D8 sub_080002D8: @ 0x080002D8 ldr r3, _08000344 @ =gUnk_030058A0 bx r3 @ call 0x080B1B3C +@ ======== +@ Unused? Doesn't seem to be called by anything in Ghidra. thumb_func_start sub_080002DC sub_080002DC: @ 0x080002DC ldr r3, _08000348 @ =gUnk_030058B0 bx r3 @ call 0x080B1B44 +@ ======== +@ Unused? Doesn't seem to be called by anything in Ghidra. thumb_func_start sub_080002E0 sub_080002E0: @ 0x080002E0 ldr r3, _0800034C @ =gUnk_030058B8 bx r3 @ call 0x080B1B54 +@ r0: u32 (tileIndex) thumb_func_start sub_080002E4 sub_080002E4: @ 0x080002E4 ldr r3, _08000350 @ =gUnk_030058C8 bx r3 @ call 0x080B1B68 +@ ======== +@ Unused? Doesn't seem to be called by anything in Ghidra. thumb_func_start sub_080002E8 sub_080002E8: @ 0x080002E8 ldr r3, _08000354 @ =gUnk_030058DC bx r3 @ call 0x080B1B84 +@ r0: u32 (tileIndex) +@ r1: u32 (layer) thumb_func_start sub_080002EC sub_080002EC: @ 0x080002EC ldr r3, _08000358 @ =gUnk_030058F8 bx r3 @ call 0x080B1BA4 +@ r0: u32 (tileIndex) +@ r1: u32 (layer) +@ r2: ??? thumb_func_start sub_080002F0 sub_080002F0: @ 0x080002F0 ldr r3, _0800035C @ =gUnk_03005918 bx r3 + _080002F4: .4byte gUnk_03005740 _080002F8: .4byte gUnk_0300574C _080002FC: .4byte gUnk_03005760 From 778577d6ebb6519397e13b0c8f47b886f02ff232 Mon Sep 17 00:00:00 2001 From: Kevin Tavukciyan Date: Tue, 4 Aug 2020 16:52:06 -0500 Subject: [PATCH 072/158] Decompile minishLight.c --- asm/minishLight.s | 81 ---------------------------------------- linker.ld | 2 +- src/object/minishLight.c | 40 ++++++++++++++++++++ 3 files changed, 41 insertions(+), 82 deletions(-) delete mode 100644 asm/minishLight.s create mode 100644 src/object/minishLight.c diff --git a/asm/minishLight.s b/asm/minishLight.s deleted file mode 100644 index f824b8a3..00000000 --- a/asm/minishLight.s +++ /dev/null @@ -1,81 +0,0 @@ - .include "asm/macros.inc" - - .include "constants/constants.inc" - - .syntax unified - - .text - - - thumb_func_start MinishLight -MinishLight: @ 0x0809F828 - push {lr} - ldr r2, _0809F83C @ =gUnk_081247F8 - ldrb r1, [r0, #0xc] - lsls r1, r1, #2 - adds r1, r1, r2 - ldr r1, [r1] - bl _call_via_r1 - pop {pc} - .align 2, 0 -_0809F83C: .4byte gUnk_081247F8 - - thumb_func_start sub_0809F840 -sub_0809F840: @ 0x0809F840 - push {lr} - adds r2, r0, #0 - movs r1, #0 - movs r0, #1 - strb r0, [r2, #0xc] - strb r1, [r2, #0x1e] - movs r0, #0x20 - strb r0, [r2, #0xe] - strb r1, [r2, #0xf] - ldrb r0, [r2, #0xb] - cmp r0, #0 - beq _0809F860 - ldrb r0, [r2, #0x18] - movs r1, #0x40 - orrs r0, r1 - strb r0, [r2, #0x18] -_0809F860: - adds r0, r2, #0 - bl UpdateSpriteForCollisionLayer - pop {pc} - - thumb_func_start sub_0809F868 -sub_0809F868: @ 0x0809F868 - push {lr} - adds r1, r0, #0 - ldrb r0, [r1, #0xe] - subs r0, #1 - strb r0, [r1, #0xe] - movs r2, #0xff - lsls r0, r0, #0x18 - cmp r0, #0 - bne _0809F8A2 - ldrb r0, [r1, #0xf] - cmp r0, #0 - bne _0809F890 - ldrb r0, [r1, #0x1e] - adds r0, #1 - strb r0, [r1, #0x1e] - ands r0, r2 - cmp r0, #3 - bne _0809F89E - movs r0, #1 - b _0809F89C -_0809F890: - ldrb r0, [r1, #0x1e] - subs r0, #1 - strb r0, [r1, #0x1e] - ands r0, r2 - cmp r0, #0 - bne _0809F89E -_0809F89C: - strb r0, [r1, #0xf] -_0809F89E: - movs r0, #0x20 - strb r0, [r1, #0xe] -_0809F8A2: - pop {pc} diff --git a/linker.ld b/linker.ld index 8720510b..864d4c11 100644 --- a/linker.ld +++ b/linker.ld @@ -839,7 +839,7 @@ SECTIONS { src/object/palaceArchway.o(.text); asm/objectA2.o(.text); src/object/cloud.o(.text); - asm/minishLight.o(.text); + src/object/minishLight.o(.text); asm/objectA5.o(.text); asm/objectA6.o(.text); asm/objectA7.o(.text); diff --git a/src/object/minishLight.c b/src/object/minishLight.c new file mode 100644 index 00000000..8982a49a --- /dev/null +++ b/src/object/minishLight.c @@ -0,0 +1,40 @@ +#include "global.h" +#include "entity.h" + +extern void (* const gUnk_081247F8[])(Entity*); + +void MinishLight(Entity* this) +{ + gUnk_081247F8[this->action](this); +} + +void sub_0809F840(Entity* this) +{ + this->action = 1; + this->frameIndex = 0; + this->actionDelay = 0x20; + this->field_0xf = 0; + + if (this->entityType.parameter != 0) + { + this->spriteSettings.b.flipX = 1; + } + + UpdateSpriteForCollisionLayer(this); +} + +void sub_0809F868(Entity* this) +{ + if (--this->actionDelay == 0) { + if (this->field_0xf == 0) { + if (++this->frameIndex == 3) { + this->field_0xf = 1; + } + } else { + if (--this->frameIndex == 0) { + this->field_0xf = 0; + } + } + this->actionDelay = 32; + } +} From 261ec334a0bedbeb3f4340d22173bcb4dec78e6f Mon Sep 17 00:00:00 2001 From: theo3 Date: Tue, 4 Aug 2020 17:10:55 -0700 Subject: [PATCH 073/158] def ScreenTransition --- asm/armos.s | 4 +- asm/bigBarrel.s | 4 +- asm/bigGoron.s | 4 +- asm/bossDoor.s | 4 +- asm/castorWildsStatue.s | 4 +- asm/chuchuBoss.s | 14 ++--- asm/code_08016B30.s | 2 +- asm/code_08016DF8.s | 4 +- asm/code_08018500.s | 4 +- asm/code_08019444.s | 8 +-- asm/code_0801C85C.s | 4 +- asm/code_0801D79C.s | 12 ++-- asm/code_08049CD4.s | 4 +- asm/code_0804AA84.s | 4 +- asm/code_08050038.s | 24 ++++---- asm/code_080526F8.s | 68 +++++++++++----------- asm/code_0805436C.s | 4 +- asm/code_0805E744.s | 4 +- asm/code_0806FA6C.s | 4 +- asm/code_08070698.s | 8 +-- asm/code_080732D0.s | 24 ++++---- asm/code_08078778.s | 20 +++---- asm/code_0807B9B8.s | 12 ++-- asm/code_0807CC3C.s | 65 +++------------------ asm/code_080A3480.s | 12 ++-- asm/code_080A3BD0.s | 4 +- asm/code_080A5574.s | 40 ++++++------- asm/code_080AD90C.s | 4 +- asm/enemy5F.s | 8 +-- asm/ezloCap.s | 4 +- asm/gleerok.s | 20 +++---- asm/guardWithSpear.s | 8 +-- asm/gyorgChild.s | 4 +- asm/initializeLink.s | 16 ++--- asm/itemOnGround.s | 8 +-- asm/lilypadLarge.s | 8 +-- asm/manager1.s | 8 +-- asm/manager10.s | 4 +- asm/manager1A.s | 4 +- asm/manager22.s | 4 +- asm/manager32.s | 4 +- asm/manager34.s | 4 +- asm/manager37.s | 8 +-- asm/manager4.s | 4 +- asm/managerC.s | 8 +-- asm/mazaalBracelet.s | 8 +-- asm/mazaalHead.s | 16 ++--- asm/mazaalMacro.s | 28 ++++----- asm/moldworm.s | 4 +- asm/non_matching/bigGoron/sub_0806CF30.inc | 4 +- asm/non_matching/minecart/sub_080919AC.inc | 4 +- asm/non_matching/sub_0804C258.inc | 4 +- asm/non_matching/sub_0804DE00.inc | 4 +- asm/non_matching/sub_08054524.inc | 4 +- asm/npc5.s | 4 +- asm/object17.s | 4 +- asm/object3E.s | 12 ++-- asm/object43.s | 8 +-- asm/object49.s | 4 +- asm/object6A.s | 8 +-- asm/object89.s | 8 +-- asm/object8E.s | 20 +++---- asm/object91.s | 16 ++--- asm/objectA8.s | 4 +- asm/objectBA.s | 8 +-- asm/octorokBoss.s | 40 ++++++------- asm/peahat.s | 4 +- asm/picolyteBottles.s | 16 ++--- asm/rem.s | 12 ++-- asm/sturgeon.s | 4 +- asm/updateBackgroundRegisters.s | 4 +- asm/vaati.s | 4 +- asm/vaatiArm.s | 40 ++++++------- asm/vaatiEyesMacro.s | 12 ++-- asm/vaatiProjectile.s | 4 +- asm/vaatiWrath.s | 28 ++++----- asm/warpPoint.s | 4 +- asm/windTribeTeleporter.s | 28 ++++----- asm/wizzrobeIce.s | 16 ++--- include/functions.h | 1 + include/global.h | 17 ++---- include/structures.h | 36 +++++++++--- linker.ld | 3 +- src/code_0805436C.c | 6 +- src/code_0807CC3C.c | 25 ++++++++ src/code_0808091C.c | 4 +- src/manager/manager27.c | 8 +-- src/npc/bigGoron.c | 4 +- src/npc/bladeBrothers.c | 8 +-- src/npc/goronMerchant.c | 4 +- src/npc/guard.c | 6 +- src/npc/simon.c | 8 +-- src/npc/syrup.c | 4 +- src/object/cloud.c | 8 +-- src/object/mask.c | 4 +- src/object/minecart.c | 2 +- src/object/treeHidingPortal.c | 4 +- src/room.c | 36 ++++++------ src/sub_0805E374.c | 4 +- src/sub_080A3B84.c | 4 +- 100 files changed, 536 insertions(+), 541 deletions(-) create mode 100644 src/code_0807CC3C.c diff --git a/asm/armos.s b/asm/armos.s index f8c539ab..faa79196 100644 --- a/asm/armos.s +++ b/asm/armos.s @@ -1014,7 +1014,7 @@ _0803088E: strb r0, [r2] ldr r0, [r5, #0x7c] bl DoExitTransition - ldr r0, _08030938 @ =gUnk_030010A0 + ldr r0, _08030938 @ =gScreenTransition adds r1, r5, #0 adds r1, #0x80 ldrb r1, [r1] @@ -1027,7 +1027,7 @@ _08030928: .4byte gLinkState _0803092C: .4byte gRoomControls _08030930: .4byte 0x00004049 _08030934: .4byte gLinkEntity -_08030938: .4byte gUnk_030010A0 +_08030938: .4byte gScreenTransition _0803093C: ldr r0, _0803094C @ =0x00004022 mov r3, r8 diff --git a/asm/bigBarrel.s b/asm/bigBarrel.s index caa4d348..8613c9ae 100644 --- a/asm/bigBarrel.s +++ b/asm/bigBarrel.s @@ -586,7 +586,7 @@ _08088E94: .align 2, 0 _08088EB0: .4byte gRoomVars _08088EB4: - ldr r0, _08088F18 @ =gUnk_030010A0 + ldr r0, _08088F18 @ =gScreenTransition ldr r0, [r0] movs r1, #7 ands r0, r1 @@ -635,7 +635,7 @@ _08088EB4: _08088F14: pop {r4, pc} .align 2, 0 -_08088F18: .4byte gUnk_030010A0 +_08088F18: .4byte gScreenTransition _08088F1C: .4byte gUnk_08120C52 thumb_func_start sub_08088F20 diff --git a/asm/bigGoron.s b/asm/bigGoron.s index e170d36e..1b89658f 100644 --- a/asm/bigGoron.s +++ b/asm/bigGoron.s @@ -570,7 +570,7 @@ _0806D45E: adds r0, r4, #0 bl sub_0807DDE4 _0806D46C: - ldr r0, _0806D4A8 @ =gUnk_030010A0 + ldr r0, _0806D4A8 @ =gScreenTransition ldr r0, [r0] movs r1, #1 ands r0, r1 @@ -599,7 +599,7 @@ _0806D46C: strb r0, [r2] b _0806D4BE .align 2, 0 -_0806D4A8: .4byte gUnk_030010A0 +_0806D4A8: .4byte gScreenTransition _0806D4AC: adds r1, r4, #0 adds r1, #0x63 diff --git a/asm/bossDoor.s b/asm/bossDoor.s index b32e5517..11ecdf34 100644 --- a/asm/bossDoor.s +++ b/asm/bossDoor.s @@ -196,7 +196,7 @@ sub_0808C348: @ 0x0808C348 ands r0, r1 cmp r0, #0 bne _0808C37C - ldr r0, _0808C374 @ =gUnk_030010A0 + ldr r0, _0808C374 @ =gScreenTransition ldr r0, [r0] movs r1, #3 ands r0, r1 @@ -209,7 +209,7 @@ _0808C36A: bl GetNextFrame b _0808C382 .align 2, 0 -_0808C374: .4byte gUnk_030010A0 +_0808C374: .4byte gScreenTransition _0808C378: .4byte 0x00000185 _0808C37C: adds r0, r4, #0 diff --git a/asm/castorWildsStatue.s b/asm/castorWildsStatue.s index a1e005b6..cb22f84d 100644 --- a/asm/castorWildsStatue.s +++ b/asm/castorWildsStatue.s @@ -45,7 +45,7 @@ _080673BC: .4byte gUnk_08110E4C sub_080673C0: @ 0x080673C0 push {lr} adds r2, r0, #0 - ldr r0, _080673D4 @ =gUnk_030010A0 + ldr r0, _080673D4 @ =gScreenTransition adds r0, #0x2c ldrb r0, [r0] cmp r0, #0 @@ -53,7 +53,7 @@ sub_080673C0: @ 0x080673C0 movs r0, #3 b _080673DA .align 2, 0 -_080673D4: .4byte gUnk_030010A0 +_080673D4: .4byte gScreenTransition _080673D8: movs r0, #1 _080673DA: diff --git a/asm/chuchuBoss.s b/asm/chuchuBoss.s index f9542429..8544335a 100644 --- a/asm/chuchuBoss.s +++ b/asm/chuchuBoss.s @@ -1366,7 +1366,7 @@ _080266B0: strh r0, [r4, #0x24] b _08026742 _080266D6: - ldr r0, _08026700 @ =gUnk_030010A0 + ldr r0, _08026700 @ =gScreenTransition ldr r0, [r0] movs r1, #0x7f ands r0, r1 @@ -1387,7 +1387,7 @@ _080266EC: lsls r0, r0, #1 b _0802670A .align 2, 0 -_08026700: .4byte gUnk_030010A0 +_08026700: .4byte gScreenTransition _08026704: .4byte gLinkEntity _08026708: movs r0, #0xc0 @@ -1396,7 +1396,7 @@ _0802670A: ldrb r0, [r4, #0xe] cmp r0, #0 beq _0802672C - ldr r0, _0802674C @ =gUnk_030010A0 + ldr r0, _0802674C @ =gScreenTransition ldr r0, [r0] movs r1, #7 ands r0, r1 @@ -1427,7 +1427,7 @@ _08026748: add sp, #4 pop {r4, r5, pc} .align 2, 0 -_0802674C: .4byte gUnk_030010A0 +_0802674C: .4byte gScreenTransition thumb_func_start sub_08026750 sub_08026750: @ 0x08026750 @@ -2643,7 +2643,7 @@ sub_08027064: @ 0x08027064 ldrb r0, [r0] cmp r0, #0xa beq _08027098 - ldr r0, _080270C8 @ =gUnk_030010A0 + ldr r0, _080270C8 @ =gScreenTransition ldr r0, [r0] movs r1, #0xf ands r0, r1 @@ -2666,7 +2666,7 @@ _08027098: ldrsh r2, [r0, r1] cmp r4, r2 beq _080270E0 - ldr r0, _080270C8 @ =gUnk_030010A0 + ldr r0, _080270C8 @ =gScreenTransition ldr r1, [r0] movs r0, #0xf ands r1, r0 @@ -2677,7 +2677,7 @@ _08027098: strb r1, [r3, #0xc] b _080270D4 .align 2, 0 -_080270C8: .4byte gUnk_030010A0 +_080270C8: .4byte gScreenTransition _080270CC: .4byte gLinkEntity _080270D0: movs r0, #0x10 diff --git a/asm/code_08016B30.s b/asm/code_08016B30.s index d1e25baf..147aa712 100644 --- a/asm/code_08016B30.s +++ b/asm/code_08016B30.s @@ -53,7 +53,7 @@ sub_08016B6C: @ 0x08016B6C ldrb r0, [r5] cmp r0, #0 bne _08016BA6 - bl sub_08016CF4 + bl UpdateBackgroundRegisters ldr r0, _08016BCC @ =gUnk_03000FBC str r0, [r4] ldr r0, _08016BD0 @ =gUnk_02022730 diff --git a/asm/code_08016DF8.s b/asm/code_08016DF8.s index d630fab9..ed16796d 100644 --- a/asm/code_08016DF8.s +++ b/asm/code_08016DF8.s @@ -391,7 +391,7 @@ _080170E8: ldrb r0, [r0, #1] cmp r0, #0 bne _08017112 - ldr r0, _08017134 @ =gUnk_030010A0 + ldr r0, _08017134 @ =gScreenTransition ldr r0, [r0] movs r1, #0x5a bl __modsi3 @@ -414,7 +414,7 @@ _08017124: .4byte gTextBox _08017128: .4byte gRoomVars _0801712C: .4byte gUnk_02002A40 _08017130: .4byte gUnk_0200AF00 -_08017134: .4byte gUnk_030010A0 +_08017134: .4byte gScreenTransition _08017138: .4byte 0x0000011F _0801713C: adds r1, r0, #0 diff --git a/asm/code_08018500.s b/asm/code_08018500.s index 79dad55e..c7bd93ff 100644 --- a/asm/code_08018500.s +++ b/asm/code_08018500.s @@ -167,7 +167,7 @@ sub_0801862C: @ 0x0801862C movs r2, #0 movs r0, #0x16 strb r0, [r1, #0xc] - ldr r5, _08018650 @ =gUnk_030010A0 + ldr r5, _08018650 @ =gScreenTransition adds r0, r5, #0 adds r0, #0x35 strb r2, [r0] @@ -180,7 +180,7 @@ sub_0801862C: @ 0x0801862C b _0801868C .align 2, 0 _0801864C: .4byte gLinkState -_08018650: .4byte gUnk_030010A0 +_08018650: .4byte gScreenTransition _08018654: .4byte gUnk_02033AB8 _08018658: ldrb r0, [r4, #2] diff --git a/asm/code_08019444.s b/asm/code_08019444.s index 86d0a0d8..16eb23b0 100644 --- a/asm/code_08019444.s +++ b/asm/code_08019444.s @@ -3451,7 +3451,7 @@ sub_0801AE44: @ 0x0801AE44 _0801AE5A: bl sub_080809D4 bl sub_080805F8 - ldr r0, _0801AEE4 @ =gUnk_030010A0 + ldr r0, _0801AEE4 @ =gScreenTransition adds r0, #0x2d ldrb r0, [r0] cmp r0, #0 @@ -3513,7 +3513,7 @@ _0801AED0: b _0801AF10 .align 2, 0 _0801AEE0: .4byte gRoomControls -_0801AEE4: .4byte gUnk_030010A0 +_0801AEE4: .4byte gScreenTransition _0801AEE8: .4byte gArea _0801AEEC: .4byte 0x0600F000 _0801AEF0: .4byte gUnk_03004030 @@ -3567,7 +3567,7 @@ sub_0801AF48: @ 0x0801AF48 ldr r0, _0801AF7C @ =0x00003FFF cmp r4, r0 bhi _0801AF7A - ldr r0, _0801AF80 @ =gUnk_030010A0 + ldr r0, _0801AF80 @ =gScreenTransition adds r0, #0x30 ldrb r0, [r0] cmp r0, #0 @@ -3589,7 +3589,7 @@ _0801AF7A: pop {r4, r5, r6, pc} .align 2, 0 _0801AF7C: .4byte 0x00003FFF -_0801AF80: .4byte gUnk_030010A0 +_0801AF80: .4byte gScreenTransition _0801AF84: .4byte gRoomVars _0801AF88: .4byte gUnk_0200B240 diff --git a/asm/code_0801C85C.s b/asm/code_0801C85C.s index 598c3b14..61848c56 100644 --- a/asm/code_0801C85C.s +++ b/asm/code_0801C85C.s @@ -1039,7 +1039,7 @@ _0801CFFC: .4byte 0x0000FFFF sub_0801D000: @ 0x0801D000 push {lr} adds r2, r0, #0 - ldr r0, _0801D024 @ =gUnk_030010A0 + ldr r0, _0801D024 @ =gScreenTransition movs r1, #0 cmp r2, #0 beq _0801D00E @@ -1054,7 +1054,7 @@ _0801D00E: bl sub_0801CFD0 b _0801D03A .align 2, 0 -_0801D024: .4byte gUnk_030010A0 +_0801D024: .4byte gScreenTransition _0801D028: ldr r3, _0801D03C @ =gUnk_02001A3C ldrb r1, [r3] diff --git a/asm/code_0801D79C.s b/asm/code_0801D79C.s index 6fdf451e..3bd3bf75 100644 --- a/asm/code_0801D79C.s +++ b/asm/code_0801D79C.s @@ -542,12 +542,12 @@ _0801DB90: .4byte 0x0000FFFF thumb_func_start sub_0801DB94 sub_0801DB94: @ 0x0801DB94 - ldr r0, _0801DB9C @ =gUnk_030010A0 + ldr r0, _0801DB9C @ =gScreenTransition ldrh r0, [r0, #0x1e] lsrs r0, r0, #0xb bx lr .align 2, 0 -_0801DB9C: .4byte gUnk_030010A0 +_0801DB9C: .4byte gScreenTransition thumb_func_start sub_0801DBA0 sub_0801DBA0: @ 0x0801DBA0 @@ -563,7 +563,7 @@ sub_0801DBA0: @ 0x0801DBA0 bl _DmaZero movs r0, #1 strb r0, [r5] - ldr r2, _0801DBE4 @ =gUnk_030010A0 + ldr r2, _0801DBE4 @ =gScreenTransition ldrh r0, [r2, #0x1c] lsrs r0, r0, #4 movs r1, #0x7f @@ -585,7 +585,7 @@ sub_0801DBA0: @ 0x0801DBA0 ldr r6, [r4] b _0801DD3A .align 2, 0 -_0801DBE4: .4byte gUnk_030010A0 +_0801DBE4: .4byte gScreenTransition _0801DBE8: .4byte gUnk_080C9C50 _0801DBEC: .4byte gArea _0801DBF0: @@ -736,7 +736,7 @@ _0801DCF8: strb r0, [r5, #2] adds r5, #3 _0801DD16: - ldr r2, _0801DD54 @ =gUnk_030010A0 + ldr r2, _0801DD54 @ =gScreenTransition ldrh r0, [r6] ldrh r1, [r2, #0x16] cmp r0, r1 @@ -769,7 +769,7 @@ _0801DD42: .align 2, 0 _0801DD4C: .4byte gArea _0801DD50: .4byte gUnk_0811E214 -_0801DD54: .4byte gUnk_030010A0 +_0801DD54: .4byte gScreenTransition thumb_func_start sub_0801DD58 sub_0801DD58: @ 0x0801DD58 diff --git a/asm/code_08049CD4.s b/asm/code_08049CD4.s index d415811d..18f22491 100644 --- a/asm/code_08049CD4.s +++ b/asm/code_08049CD4.s @@ -1567,7 +1567,7 @@ _0804A81C: ldrb r0, [r5, #9] cmp r0, #0x37 bne _0804A84A - ldr r0, _0804A85C @ =gUnk_030010A0 + ldr r0, _0804A85C @ =gScreenTransition adds r0, #0x39 ldrb r0, [r0] cmp r0, #0 @@ -1580,7 +1580,7 @@ _0804A84A: bl DeleteThisEntity b _0804A982 .align 2, 0 -_0804A85C: .4byte gUnk_030010A0 +_0804A85C: .4byte gScreenTransition _0804A860: .4byte 0x80100000 _0804A864: adds r4, r5, #0 diff --git a/asm/code_0804AA84.s b/asm/code_0804AA84.s index 630f8984..1e8b6570 100644 --- a/asm/code_0804AA84.s +++ b/asm/code_0804AA84.s @@ -248,7 +248,7 @@ sub_0804AD6C: @ 0x0804AD6C push {r4, r5, r6, lr} mov r6, r8 push {r6} - ldr r3, _0804ADD0 @ =gUnk_030010A0 + ldr r3, _0804ADD0 @ =gScreenTransition movs r1, #0 movs r6, #1 strb r6, [r3, #8] @@ -293,6 +293,6 @@ sub_0804AD6C: @ 0x0804AD6C mov r8, r3 pop {r4, r5, r6, pc} .align 2, 0 -_0804ADD0: .4byte gUnk_030010A0 +_0804ADD0: .4byte gScreenTransition _0804ADD4: .4byte gArea _0804ADD8: .4byte gUnk_080D4140 diff --git a/asm/code_08050038.s b/asm/code_08050038.s index 24320ebe..3f48d62d 100644 --- a/asm/code_08050038.s +++ b/asm/code_08050038.s @@ -3107,7 +3107,7 @@ _08051984: .4byte 0x000004B4 thumb_func_start sub_08051988 sub_08051988: @ 0x08051988 push {lr} - ldr r1, _080519A4 @ =gUnk_030010A0 + ldr r1, _080519A4 @ =gScreenTransition ldr r0, [r1] adds r0, #1 str r0, [r1] @@ -3120,7 +3120,7 @@ sub_08051988: @ 0x08051988 bl _call_via_r0 pop {pc} .align 2, 0 -_080519A4: .4byte gUnk_030010A0 +_080519A4: .4byte gScreenTransition _080519A8: .4byte gUnk_080FC9D8 _080519AC: .4byte gUnk_03001000 @@ -3137,7 +3137,7 @@ sub_080519B0: @ 0x080519B0 bl sub_0801DA7C bl sub_080A7124 bl sub_0807059C - ldr r4, _08051A08 @ =gUnk_030010A0 + ldr r4, _08051A08 @ =gScreenTransition adds r0, r4, #0 movs r1, #0xb0 bl _DmaZero @@ -3160,7 +3160,7 @@ _08051A02: pop {r4, r5, pc} .align 2, 0 _08051A04: .4byte gUnk_03000FD0 -_08051A08: .4byte gUnk_030010A0 +_08051A08: .4byte gScreenTransition _08051A0C: .4byte gUnk_02002AC8 _08051A10: .4byte gUnk_03001000 @@ -3188,7 +3188,7 @@ sub_08051A14: @ 0x08051A14 bl sub_0801CFA8 bl sub_0806FD8C ldr r2, _08051A80 @ =gRoomControls - ldr r1, _08051A84 @ =gUnk_030010A0 + ldr r1, _08051A84 @ =gScreenTransition ldrb r0, [r1, #0xc] strb r0, [r2, #4] ldrb r0, [r1, #0xd] @@ -3207,7 +3207,7 @@ _08051A74: .4byte gUnk_03000000 _08051A78: .4byte 0x00000B74 _08051A7C: .4byte gUnk_02032EC0 _08051A80: .4byte gRoomControls -_08051A84: .4byte gUnk_030010A0 +_08051A84: .4byte gScreenTransition _08051A88: .4byte gUnk_02024490 _08051A8C: .4byte gUnk_03001000 @@ -3238,7 +3238,7 @@ InitializeNewRoom: @ 0x08051AAC ldr r1, _08051AE8 @ =gUnk_03001000 movs r0, #1 strb r0, [r1, #4] - ldr r0, _08051AEC @ =gUnk_030010A0 + ldr r0, _08051AEC @ =gScreenTransition strb r2, [r0, #8] strb r2, [r0, #4] strb r2, [r0, #5] @@ -3252,7 +3252,7 @@ InitializeNewRoom: @ 0x08051AAC .align 2, 0 _08051AE4: .4byte gScreen _08051AE8: .4byte gUnk_03001000 -_08051AEC: .4byte gUnk_030010A0 +_08051AEC: .4byte gScreenTransition thumb_func_start sub_08051AF0 sub_08051AF0: @ 0x08051AF0 @@ -3470,14 +3470,14 @@ sub_08051CF0: @ 0x08051CF0 bl sub_0801DA90 strb r6, [r5, #3] strb r4, [r5, #4] - ldr r0, _08051D28 @ =gUnk_030010A0 + ldr r0, _08051D28 @ =gScreenTransition strb r6, [r0, #8] _08051D1E: pop {r4, r5, r6, pc} .align 2, 0 _08051D20: .4byte gUnk_03001000 _08051D24: .4byte gUnk_03000FD0 -_08051D28: .4byte gUnk_030010A0 +_08051D28: .4byte gScreenTransition thumb_func_start sub_08051D2C sub_08051D2C: @ 0x08051D2C @@ -3546,7 +3546,7 @@ _08051DC8: .4byte gRoomVars sub_08051DCC: @ 0x08051DCC push {r4, lr} ldr r1, _08051DFC @ =gRoomControls - ldr r4, _08051E00 @ =gUnk_030010A0 + ldr r4, _08051E00 @ =gScreenTransition ldrb r0, [r4, #0xc] strb r0, [r1, #4] ldrb r0, [r4, #0xd] @@ -3563,7 +3563,7 @@ sub_08051DCC: @ 0x08051DCC pop {r4, pc} .align 2, 0 _08051DFC: .4byte gRoomControls -_08051E00: .4byte gUnk_030010A0 +_08051E00: .4byte gScreenTransition thumb_func_start sub_08051E04 sub_08051E04: @ 0x08051E04 diff --git a/asm/code_080526F8.s b/asm/code_080526F8.s index 43807c93..9e43fbd2 100644 --- a/asm/code_080526F8.s +++ b/asm/code_080526F8.s @@ -236,14 +236,14 @@ _080528B0: .4byte 0x00000864 thumb_func_start sub_080528B4 sub_080528B4: @ 0x080528B4 push {lr} - ldr r0, _080528C4 @ =gUnk_030010A0 + ldr r0, _080528C4 @ =gScreenTransition ldrb r0, [r0, #5] cmp r0, #0 bne _080528C8 movs r0, #0 b _080528E6 .align 2, 0 -_080528C4: .4byte gUnk_030010A0 +_080528C4: .4byte gScreenTransition _080528C8: bl sub_0804FFE4 ldr r1, _080528E8 @ =gUnk_03001000 @@ -289,7 +289,7 @@ _08052918: .4byte 0x00000888 thumb_func_start sub_0805291C sub_0805291C: @ 0x0805291C push {r4, lr} - ldr r4, _08052948 @ =gUnk_030010A0 + ldr r4, _08052948 @ =gScreenTransition ldrb r0, [r4, #8] cmp r0, #0 beq _080529F4 @@ -310,7 +310,7 @@ sub_0805291C: @ 0x0805291C strb r0, [r4, #8] b _080529F6 .align 2, 0 -_08052948: .4byte gUnk_030010A0 +_08052948: .4byte gScreenTransition _0805294C: .4byte gUnk_02002A40 _08052950: .4byte gLinkState _08052954: @@ -394,7 +394,7 @@ _080529F6: thumb_func_start sub_080529F8 sub_080529F8: @ 0x080529F8 push {r4, r5, r6, lr} - ldr r1, _08052A34 @ =gUnk_030010A0 + ldr r1, _08052A34 @ =gScreenTransition ldrh r4, [r1, #0xa] ldr r2, _08052A38 @ =gUnk_080FCAD6 ldrh r0, [r2] @@ -426,7 +426,7 @@ _08052A30: movs r0, #1 b _08052A4A .align 2, 0 -_08052A34: .4byte gUnk_030010A0 +_08052A34: .4byte gScreenTransition _08052A38: .4byte gUnk_080FCAD6 _08052A3C: .4byte gLinkState _08052A40: @@ -442,7 +442,7 @@ _08052A4A: thumb_func_start sub_08052A4C sub_08052A4C: @ 0x08052A4C push {r4, r5, lr} - ldr r2, _08052A88 @ =gUnk_030010A0 + ldr r2, _08052A88 @ =gScreenTransition movs r0, #1 strb r0, [r2, #8] ldr r5, _08052A8C @ =gLinkEntity @@ -471,14 +471,14 @@ sub_08052A4C: @ 0x08052A4C strb r0, [r2, #0xd] pop {r4, r5, pc} .align 2, 0 -_08052A88: .4byte gUnk_030010A0 +_08052A88: .4byte gScreenTransition _08052A8C: .4byte gLinkEntity _08052A90: .4byte gRoomControls thumb_func_start sub_08052A94 sub_08052A94: @ 0x08052A94 push {lr} - ldr r0, _08052AAC @ =gUnk_030010A0 + ldr r0, _08052AAC @ =gScreenTransition ldrb r0, [r0, #9] subs r0, #1 cmp r0, #8 @@ -489,7 +489,7 @@ sub_08052A94: @ 0x08052A94 ldr r0, [r0] mov pc, r0 .align 2, 0 -_08052AAC: .4byte gUnk_030010A0 +_08052AAC: .4byte gScreenTransition _08052AB0: .4byte _08052AB4 _08052AB4: @ jump table .4byte _08052AD8 @ case 0 @@ -618,7 +618,7 @@ _08052BB4: thumb_func_start sub_08052BB8 sub_08052BB8: @ 0x08052BB8 push {lr} - ldr r0, _08052BE0 @ =gUnk_030010A0 + ldr r0, _08052BE0 @ =gScreenTransition adds r2, r0, #0 adds r2, #0x35 ldrb r1, [r2] @@ -638,7 +638,7 @@ sub_08052BB8: @ 0x08052BB8 movs r2, #1 b _08052BEE .align 2, 0 -_08052BE0: .4byte gUnk_030010A0 +_08052BE0: .4byte gScreenTransition _08052BE4: .4byte gLinkEntity _08052BE8: .4byte gRoomControls _08052BEC: @@ -652,7 +652,7 @@ _08052BEE: thumb_func_start sub_08052BF8 sub_08052BF8: @ 0x08052BF8 push {lr} - ldr r2, _08052C34 @ =gUnk_030010A0 + ldr r2, _08052C34 @ =gScreenTransition adds r1, r2, #0 adds r1, #0x31 ldrb r0, [r1] @@ -680,7 +680,7 @@ sub_08052BF8: @ 0x08052BF8 _08052C30: pop {pc} .align 2, 0 -_08052C34: .4byte gUnk_030010A0 +_08052C34: .4byte gScreenTransition _08052C38: .4byte gArea thumb_func_start sub_08052C3C @@ -713,7 +713,7 @@ sub_08052C5C: @ 0x08052C5C bl sub_08052620 cmp r0, #0 beq _08052C84 - ldr r2, _08052C7C @ =gUnk_030010A0 + ldr r2, _08052C7C @ =gScreenTransition ldr r1, _08052C80 @ =gLinkEntity ldrh r0, [r1, #0x2e] strh r0, [r2, #0x20] @@ -721,13 +721,13 @@ sub_08052C5C: @ 0x08052C5C strh r0, [r2, #0x22] b _08052C98 .align 2, 0 -_08052C7C: .4byte gUnk_030010A0 +_08052C7C: .4byte gScreenTransition _08052C80: .4byte gLinkEntity _08052C84: bl CheckIsDungeon cmp r0, #0 beq _08052C98 - ldr r2, _08052C9C @ =gUnk_030010A0 + ldr r2, _08052C9C @ =gScreenTransition ldr r1, _08052CA0 @ =gLinkEntity ldrh r0, [r1, #0x2e] strh r0, [r2, #0x1c] @@ -736,7 +736,7 @@ _08052C84: _08052C98: pop {pc} .align 2, 0 -_08052C9C: .4byte gUnk_030010A0 +_08052C9C: .4byte gScreenTransition _08052CA0: .4byte gLinkEntity thumb_func_start sub_08052CA4 @@ -750,7 +750,7 @@ sub_08052CA4: @ 0x08052CA4 lsls r4, r4, #1 ldr r1, [r0] adds r1, r1, r4 - ldr r4, _08052CCC @ =gUnk_030010A0 + ldr r4, _08052CCC @ =gScreenTransition ldrh r0, [r1] adds r0, r0, r2 strh r0, [r4, #0x20] @@ -760,7 +760,7 @@ sub_08052CA4: @ 0x08052CA4 pop {r4, pc} .align 2, 0 _08052CC8: .4byte gUnk_0811E214 -_08052CCC: .4byte gUnk_030010A0 +_08052CCC: .4byte gScreenTransition thumb_func_start sub_08052CD0 sub_08052CD0: @ 0x08052CD0 @@ -773,7 +773,7 @@ sub_08052CD0: @ 0x08052CD0 lsls r4, r4, #1 ldr r1, [r0] adds r1, r1, r4 - ldr r4, _08052CF8 @ =gUnk_030010A0 + ldr r4, _08052CF8 @ =gScreenTransition ldrh r0, [r1] adds r0, r0, r2 strh r0, [r4, #0x1c] @@ -783,7 +783,7 @@ sub_08052CD0: @ 0x08052CD0 pop {r4, pc} .align 2, 0 _08052CF4: .4byte gUnk_0811E214 -_08052CF8: .4byte gUnk_030010A0 +_08052CF8: .4byte gScreenTransition thumb_func_start sub_08052CFC sub_08052CFC: @ 0x08052CFC @@ -1343,7 +1343,7 @@ _08053154: ldrb r2, [r0, #1] cmp r2, #0 beq _0805316C - ldr r0, _08053174 @ =gUnk_030010A0 + ldr r0, _08053174 @ =gScreenTransition adds r0, #0x2e ldrb r1, [r0] eors r1, r2 @@ -1356,7 +1356,7 @@ _0805316E: pop {pc} .align 2, 0 _08053170: .4byte gArea -_08053174: .4byte gUnk_030010A0 +_08053174: .4byte gScreenTransition thumb_func_start sub_08053178 sub_08053178: @ 0x08053178 @@ -1364,7 +1364,7 @@ sub_08053178: @ 0x08053178 bl sub_08053144 cmp r0, #0 beq _080531E6 - ldr r0, _080531E8 @ =gUnk_030010A0 + ldr r0, _080531E8 @ =gScreenTransition ldr r5, _080531EC @ =gArea ldrb r1, [r5, #1] adds r0, #0x2e @@ -1410,7 +1410,7 @@ _080531DC: _080531E6: pop {r4, r5, pc} .align 2, 0 -_080531E8: .4byte gUnk_030010A0 +_080531E8: .4byte gScreenTransition _080531EC: .4byte gArea _080531F0: .4byte gRoomVars _080531F4: .4byte gUnk_02002AA0 @@ -1458,7 +1458,7 @@ _0805324C: .4byte gRoomControls thumb_func_start sub_08053250 sub_08053250: @ 0x08053250 push {r4, lr} - ldr r0, _0805328C @ =gUnk_030010A0 + ldr r0, _0805328C @ =gScreenTransition movs r1, #0 strb r1, [r0, #0xf] ldr r3, _08053290 @ =gLinkEntity @@ -1486,7 +1486,7 @@ sub_08053250: @ 0x08053250 bl sub_0801D66C pop {r4, pc} .align 2, 0 -_0805328C: .4byte gUnk_030010A0 +_0805328C: .4byte gScreenTransition _08053290: .4byte gLinkEntity _08053294: .4byte gRoomControls _08053298: .4byte gUnk_02002AC8 @@ -1541,7 +1541,7 @@ sub_080532E4: @ 0x080532E4 movs r3, #0xa5 lsls r3, r3, #1 adds r2, r0, r3 - ldr r1, _0805331C @ =gUnk_030010A0 + ldr r1, _0805331C @ =gScreenTransition movs r0, #0x58 strb r0, [r1, #0x16] movs r0, #0x21 @@ -1561,7 +1561,7 @@ sub_080532E4: @ 0x080532E4 bx lr .align 2, 0 _08053318: .4byte gUnk_0811E214 -_0805331C: .4byte gUnk_030010A0 +_0805331C: .4byte gScreenTransition thumb_func_start sub_08053320 sub_08053320: @ 0x08053320 @@ -2277,7 +2277,7 @@ sub_08053894: @ 0x08053894 _080538B4: .4byte gUnk_03000FD0 _080538B8: .4byte gMenu _080538BC: - ldr r0, _080538FC @ =gUnk_030010A0 + ldr r0, _080538FC @ =gScreenTransition ldr r0, [r0] movs r1, #1 ands r0, r1 @@ -2310,7 +2310,7 @@ _080538E4: _080538F8: pop {r4, pc} .align 2, 0 -_080538FC: .4byte gUnk_030010A0 +_080538FC: .4byte gScreenTransition _08053900: .4byte gScreen thumb_func_start sub_08053904 @@ -2335,7 +2335,7 @@ sub_08053904: @ 0x08053904 _08053924: .4byte gUnk_03000FD0 _08053928: .4byte gMenu _0805392C: - ldr r0, _0805396C @ =gUnk_030010A0 + ldr r0, _0805396C @ =gScreenTransition ldr r0, [r0] movs r1, #1 ands r0, r1 @@ -2368,7 +2368,7 @@ _08053954: _08053968: pop {r4, pc} .align 2, 0 -_0805396C: .4byte gUnk_030010A0 +_0805396C: .4byte gScreenTransition _08053970: .4byte gScreen thumb_func_start sub_08053974 diff --git a/asm/code_0805436C.s b/asm/code_0805436C.s index 0d6f007f..960c0bf3 100644 --- a/asm/code_0805436C.s +++ b/asm/code_0805436C.s @@ -1269,7 +1269,7 @@ sub_0805524C: @ 0x0805524C .align 2, 0 _08055270: .4byte gMenu _08055274: - ldr r0, _080552A4 @ =gUnk_030010A0 + ldr r0, _080552A4 @ =gScreenTransition ldr r0, [r0] movs r1, #7 ands r0, r1 @@ -1293,7 +1293,7 @@ _08055274: strh r0, [r1] b _080552D6 .align 2, 0 -_080552A4: .4byte gUnk_030010A0 +_080552A4: .4byte gScreenTransition _080552A8: .4byte gUnk_080FF204 _080552AC: .4byte 0x0000FFFF _080552B0: .4byte gScreen diff --git a/asm/code_0805E744.s b/asm/code_0805E744.s index c57c1fd1..5f06dd29 100644 --- a/asm/code_0805E744.s +++ b/asm/code_0805E744.s @@ -1043,7 +1043,7 @@ _0805EE82: thumb_func_start sub_0805EE88 sub_0805EE88: @ 0x0805EE88 push {lr} - ldr r1, _0805EEB0 @ =gUnk_030010A0 + ldr r1, _0805EEB0 @ =gScreenTransition adds r0, r1, #0 adds r0, #0x2f ldrb r0, [r0] @@ -1062,7 +1062,7 @@ sub_0805EE88: @ 0x0805EE88 _0805EEAC: pop {pc} .align 2, 0 -_0805EEB0: .4byte gUnk_030010A0 +_0805EEB0: .4byte gScreenTransition thumb_func_start sub_0805EEB4 sub_0805EEB4: @ 0x0805EEB4 diff --git a/asm/code_0806FA6C.s b/asm/code_0806FA6C.s index 7764e708..1f153b44 100644 --- a/asm/code_0806FA6C.s +++ b/asm/code_0806FA6C.s @@ -106,7 +106,7 @@ _0806FBB2: sub_0806FBB4: @ 0x0806FBB4 push {lr} adds r1, r0, #0 - ldr r0, _0806FBD0 @ =gUnk_030010A0 + ldr r0, _0806FBD0 @ =gScreenTransition ldrb r0, [r0, #5] cmp r0, #0 bne _0806FBC8 @@ -120,7 +120,7 @@ _0806FBC8: _0806FBCC: pop {pc} .align 2, 0 -_0806FBD0: .4byte gUnk_030010A0 +_0806FBD0: .4byte gScreenTransition _0806FBD4: .4byte gLinkState thumb_func_start sub_0806FBD8 diff --git a/asm/code_08070698.s b/asm/code_08070698.s index eabdd297..b6e53ed6 100644 --- a/asm/code_08070698.s +++ b/asm/code_08070698.s @@ -650,7 +650,7 @@ _08070BC8: ldrb r0, [r0] cmp r0, #0 beq _08070BE4 - ldr r0, _08070BE8 @ =gUnk_030010A0 + ldr r0, _08070BE8 @ =gScreenTransition ldr r0, [r0] movs r1, #7 ands r0, r1 @@ -661,7 +661,7 @@ _08070BC8: _08070BE4: pop {r4, r5, r6, r7, pc} .align 2, 0 -_08070BE8: .4byte gUnk_030010A0 +_08070BE8: .4byte gScreenTransition thumb_func_start sub_08070BEC sub_08070BEC: @ 0x08070BEC @@ -2955,13 +2955,13 @@ _08071D3A: _08071D6C: .4byte gUnk_02002A40 _08071D70: .4byte gLinkState _08071D74: - ldr r1, _08071D7C @ =gUnk_030010A0 + ldr r1, _08071D7C @ =gScreenTransition movs r0, #1 strb r0, [r1, #5] _08071D7A: pop {r4, r5, pc} .align 2, 0 -_08071D7C: .4byte gUnk_030010A0 +_08071D7C: .4byte gScreenTransition thumb_func_start sub_08071D80 sub_08071D80: @ 0x08071D80 diff --git a/asm/code_080732D0.s b/asm/code_080732D0.s index dc1ead63..f675fcf8 100644 --- a/asm/code_080732D0.s +++ b/asm/code_080732D0.s @@ -706,7 +706,7 @@ _08073808: .4byte gLinkState sub_0807380C: @ 0x0807380C push {r4, lr} adds r4, r0, #0 - ldr r0, _08073854 @ =gUnk_030010A0 + ldr r0, _08073854 @ =gScreenTransition ldr r0, [r0] movs r1, #3 ands r0, r1 @@ -740,7 +740,7 @@ _0807382A: bl sub_08003FC4 b _0807387A .align 2, 0 -_08073854: .4byte gUnk_030010A0 +_08073854: .4byte gScreenTransition _08073858: .4byte gLinkState _0807385C: .4byte gUnk_0811BC38 _08073860: @@ -767,7 +767,7 @@ _0807387A: sub_08073884: @ 0x08073884 push {r4, lr} adds r4, r0, #0 - ldr r0, _080738DC @ =gUnk_030010A0 + ldr r0, _080738DC @ =gScreenTransition ldr r0, [r0] movs r1, #1 ands r0, r1 @@ -809,7 +809,7 @@ _080738A2: bl DoExitTransition b _080738F0 .align 2, 0 -_080738DC: .4byte gUnk_030010A0 +_080738DC: .4byte gScreenTransition _080738E0: .4byte gLinkState _080738E4: .4byte gUnk_0811BC40 _080738E8: .4byte gUnk_0813AD88 @@ -1346,7 +1346,7 @@ sub_08073C80: @ 0x08073C80 ldr r0, _08073D0C @ =gRoomControls str r4, [r0, #0x30] bl sub_080809D4 - ldr r1, _08073D10 @ =gUnk_030010A0 + ldr r1, _08073D10 @ =gScreenTransition ldrb r0, [r1, #0xf] cmp r0, #9 bne _08073D14 @@ -1362,7 +1362,7 @@ _08073D00: .4byte gLinkState _08073D04: .4byte 0x00000C18 _08073D08: .4byte gUnk_0811BC80 _08073D0C: .4byte gRoomControls -_08073D10: .4byte gUnk_030010A0 +_08073D10: .4byte gScreenTransition _08073D14: movs r0, #4 movs r1, #0 @@ -2708,7 +2708,7 @@ _08074714: .align 2, 0 _0807471C: .4byte 0x00000161 _08074720: - ldr r0, _08074760 @ =gUnk_030010A0 + ldr r0, _08074760 @ =gScreenTransition ldr r0, [r0] movs r1, #0xf ands r0, r1 @@ -2741,7 +2741,7 @@ _08074732: strb r0, [r1] b _08074792 .align 2, 0 -_08074760: .4byte gUnk_030010A0 +_08074760: .4byte gScreenTransition _08074764: .4byte 0x00000161 _08074768: .4byte gLinkState _0807476C: @@ -5168,7 +5168,7 @@ _08075962: lsls r0, r0, #2 strh r0, [r4, #0x24] bl sub_08079E08 - ldr r0, _08075994 @ =gUnk_030010A0 + ldr r0, _08075994 @ =gScreenTransition ldr r0, [r0] movs r1, #3 ands r0, r1 @@ -5181,7 +5181,7 @@ _08075962: b _080759B2 .align 2, 0 _08075990: .4byte gLinkEntity -_08075994: .4byte gUnk_030010A0 +_08075994: .4byte gScreenTransition _08075998: ldrb r1, [r4, #0xe] adds r0, r2, #0 @@ -6613,7 +6613,7 @@ sub_08076488: @ 0x08076488 ands r0, r1 cmp r0, #0x10 bne _080764B8 - ldr r0, _080764F8 @ =gUnk_030010A0 + ldr r0, _080764F8 @ =gScreenTransition ldr r0, [r0] movs r1, #1 ands r0, r1 @@ -6651,7 +6651,7 @@ _080764B8: strb r6, [r4, #0xf] b _08076508 .align 2, 0 -_080764F8: .4byte gUnk_030010A0 +_080764F8: .4byte gScreenTransition _080764FC: .4byte gLinkEntity _08076500: .4byte gLinkState _08076504: diff --git a/asm/code_08078778.s b/asm/code_08078778.s index 5475dc74..70aa7420 100644 --- a/asm/code_08078778.s +++ b/asm/code_08078778.s @@ -310,14 +310,14 @@ sub_08078AA8: @ 0x08078AA8 ldr r3, _08078AB8 @ =gLinkState movs r2, #0x16 strb r2, [r3, #0xc] - ldr r2, _08078ABC @ =gUnk_030010A0 + ldr r2, _08078ABC @ =gScreenTransition strh r0, [r2, #0x36] adds r2, #0x35 strb r1, [r2] bx lr .align 2, 0 _08078AB8: .4byte gLinkState -_08078ABC: .4byte gUnk_030010A0 +_08078ABC: .4byte gScreenTransition thumb_func_start sub_08078AC0 sub_08078AC0: @ 0x08078AC0 @@ -736,7 +736,7 @@ _08078DE0: ands r0, r1 cmp r0, #2 bne _08078E82 - ldr r0, _08078E38 @ =gUnk_030010A0 + ldr r0, _08078E38 @ =gScreenTransition ldr r1, [r0] movs r0, #3 ands r1, r0 @@ -747,7 +747,7 @@ _08078DE0: b _08078E82 .align 2, 0 _08078E34: .4byte gLinkState -_08078E38: .4byte gUnk_030010A0 +_08078E38: .4byte gScreenTransition _08078E3C: ldrh r0, [r4, #0x2e] adds r0, #1 @@ -5097,7 +5097,7 @@ _0807AEA8: ands r0, r1 cmp r0, #0 beq _0807AECC - ldr r0, _0807AEC8 @ =gUnk_030010A0 + ldr r0, _0807AEC8 @ =gScreenTransition ldr r0, [r0] movs r1, #0xf ands r0, r1 @@ -5108,9 +5108,9 @@ _0807AEA8: bl sub_080A2A84 b _0807AEDE .align 2, 0 -_0807AEC8: .4byte gUnk_030010A0 +_0807AEC8: .4byte gScreenTransition _0807AECC: - ldr r0, _0807AEE0 @ =gUnk_030010A0 + ldr r0, _0807AEE0 @ =gScreenTransition ldr r0, [r0] movs r1, #7 ands r0, r1 @@ -5121,7 +5121,7 @@ _0807AECC: _0807AEDE: pop {r4, pc} .align 2, 0 -_0807AEE0: .4byte gUnk_030010A0 +_0807AEE0: .4byte gScreenTransition thumb_func_start sub_0807AEE4 sub_0807AEE4: @ 0x0807AEE4 @@ -5510,7 +5510,7 @@ sub_0807B1A8: @ 0x0807B1A8 ldr r1, [r0] adds r0, r4, #0 bl _call_via_r1 - ldr r0, _0807B1D8 @ =gUnk_030010A0 + ldr r0, _0807B1D8 @ =gScreenTransition ldr r0, [r0] movs r1, #7 ands r0, r1 @@ -5522,7 +5522,7 @@ _0807B1D0: pop {r4, pc} .align 2, 0 _0807B1D4: .4byte gUnk_0811C298 -_0807B1D8: .4byte gUnk_030010A0 +_0807B1D8: .4byte gScreenTransition thumb_func_start sub_0807B1DC sub_0807B1DC: @ 0x0807B1DC diff --git a/asm/code_0807B9B8.s b/asm/code_0807B9B8.s index 24a845bd..f0d37f9c 100644 --- a/asm/code_0807B9B8.s +++ b/asm/code_0807B9B8.s @@ -1003,7 +1003,7 @@ _0807C178: movs r3, #1 mov sb, r3 _0807C184: - ldr r0, _0807C1B0 @ =gUnk_030010A0 + ldr r0, _0807C1B0 @ =gScreenTransition adds r0, #0x2d ldrb r0, [r0] cmp r0, #0 @@ -1024,7 +1024,7 @@ _0807C184: bl sub_0801D66C b _0807C26C .align 2, 0 -_0807C1B0: .4byte gUnk_030010A0 +_0807C1B0: .4byte gScreenTransition _0807C1B4: .4byte gUnk_02025EB4 _0807C1B8: .4byte gUnk_0200B654 _0807C1BC: @@ -1859,7 +1859,7 @@ _0807C85C: .4byte gUnk_02000070 thumb_func_start sub_0807C860 sub_0807C860: @ 0x0807C860 push {r4, lr} - ldr r0, _0807C88C @ =gUnk_030010A0 + ldr r0, _0807C88C @ =gScreenTransition adds r0, #0x2d movs r1, #1 strb r1, [r0] @@ -1879,14 +1879,14 @@ sub_0807C860: @ 0x0807C860 bl sub_0801D66C pop {r4, pc} .align 2, 0 -_0807C88C: .4byte gUnk_030010A0 +_0807C88C: .4byte gScreenTransition _0807C890: .4byte gUnk_02025EB4 _0807C894: .4byte gUnk_0200B654 thumb_func_start sub_0807C898 sub_0807C898: @ 0x0807C898 push {r4, r5, lr} - ldr r4, _0807C8AC @ =gUnk_030010A0 + ldr r4, _0807C8AC @ =gScreenTransition adds r4, #0x2d movs r5, #0 movs r0, #2 @@ -1895,7 +1895,7 @@ sub_0807C898: @ 0x0807C898 strb r5, [r4] pop {r4, r5, pc} .align 2, 0 -_0807C8AC: .4byte gUnk_030010A0 +_0807C8AC: .4byte gScreenTransition thumb_func_start sub_0807C8B0 sub_0807C8B0: @ 0x0807C8B0 diff --git a/asm/code_0807CC3C.s b/asm/code_0807CC3C.s index 6732a77c..79a102ff 100644 --- a/asm/code_0807CC3C.s +++ b/asm/code_0807CC3C.s @@ -2303,7 +2303,7 @@ _0807DE1E: bl sub_0800445C b _0807DDEC _0807DE26: - ldr r0, _0807DE40 @ =gUnk_030010A0 + ldr r0, _0807DE40 @ =gScreenTransition ldr r0, [r0] movs r1, #3 ands r0, r1 @@ -2317,9 +2317,9 @@ _0807DE26: strb r0, [r4, #0xf] b _0807DDEC .align 2, 0 -_0807DE40: .4byte gUnk_030010A0 +_0807DE40: .4byte gScreenTransition _0807DE44: - ldr r0, _0807DE68 @ =gUnk_030010A0 + ldr r0, _0807DE68 @ =gScreenTransition ldr r0, [r0] movs r1, #1 ands r0, r1 @@ -2336,7 +2336,7 @@ _0807DE44: strb r0, [r1] b _0807DDEC .align 2, 0 -_0807DE68: .4byte gUnk_030010A0 +_0807DE68: .4byte gScreenTransition _0807DE6C: .4byte gUnk_0811E510 _0807DE70: adds r0, r4, #0 @@ -6989,7 +6989,7 @@ _0807FF18: .4byte gUnk_02000070 sub_0807FF1C: @ 0x0807FF1C push {lr} adds r2, r0, #0 - ldr r0, _0807FF4C @ =gUnk_030010A0 + ldr r0, _0807FF4C @ =gScreenTransition ldr r0, [r0] movs r1, #1 ands r0, r1 @@ -7011,7 +7011,7 @@ sub_0807FF1C: @ 0x0807FF1C _0807FF48: pop {pc} .align 2, 0 -_0807FF4C: .4byte gUnk_030010A0 +_0807FF4C: .4byte gScreenTransition _0807FF50: .4byte gUnk_02000070 thumb_func_start sub_0807FF54 @@ -8165,7 +8165,7 @@ _0808083E: DoExitTransition: @ 0x08080840 push {r4, lr} adds r4, r0, #0 - ldr r0, _0808085C @ =gUnk_030010A0 + ldr r0, _0808085C @ =gScreenTransition movs r1, #1 strb r1, [r0, #8] adds r2, r0, #0 @@ -8177,7 +8177,7 @@ DoExitTransition: @ 0x08080840 strh r1, [r2, #4] b _08080872 .align 2, 0 -_0808085C: .4byte gUnk_030010A0 +_0808085C: .4byte gScreenTransition _08080860: .4byte 0x000003FF _08080864: ldr r0, _08080880 @ =gRoomControls @@ -8233,51 +8233,4 @@ _080808B8: .align 2, 0 _080808CC: .4byte gRoomControls _080808D0: .4byte 0xFFFF8000 -_080808D4: .4byte gUnk_0811E7C4 - - thumb_func_start sub_080808D8 -sub_080808D8: @ 0x080808D8 - ldr r1, _080808E0 @ =gUnk_030010A0 - movs r0, #0 - strb r0, [r1, #9] - bx lr - .align 2, 0 -_080808E0: .4byte gUnk_030010A0 - - thumb_func_start sub_080808E4 -sub_080808E4: @ 0x080808E4 - push {r4, lr} - ldr r4, _080808F8 @ =gUnk_030010A0 - ldrb r0, [r4, #0xc] - bl sub_08052638 - cmp r0, #0 - beq _080808FC - movs r0, #0 - b _080808FE - .align 2, 0 -_080808F8: .4byte gUnk_030010A0 -_080808FC: - movs r0, #5 -_080808FE: - strb r0, [r4, #9] - pop {r4, pc} - .align 2, 0 - - thumb_func_start sub_08080904 -sub_08080904: @ 0x08080904 - ldr r1, _0808090C @ =gUnk_030010A0 - movs r0, #1 - strb r0, [r1, #9] - bx lr - .align 2, 0 -_0808090C: .4byte gUnk_030010A0 - - thumb_func_start sub_08080910 -sub_08080910: @ 0x08080910 - ldr r1, _08080918 @ =gUnk_030010A0 - movs r0, #1 - strb r0, [r1, #9] - bx lr - .align 2, 0 -_08080918: .4byte gUnk_030010A0 - +_080808D4: .4byte gUnk_0811E7C4 \ No newline at end of file diff --git a/asm/code_080A3480.s b/asm/code_080A3480.s index 62f25b35..4b5ad21e 100644 --- a/asm/code_080A3480.s +++ b/asm/code_080A3480.s @@ -204,7 +204,7 @@ _080A35DC: .4byte gUnk_02021EE0 thumb_func_start sub_080A35E0 sub_080A35E0: @ 0x080A35E0 push {lr} - ldr r1, _080A35FC @ =gUnk_030010A0 + ldr r1, _080A35FC @ =gScreenTransition ldr r0, [r1] adds r0, #1 str r0, [r1] @@ -217,7 +217,7 @@ sub_080A35E0: @ 0x080A35E0 bl _call_via_r0 pop {pc} .align 2, 0 -_080A35FC: .4byte gUnk_030010A0 +_080A35FC: .4byte gScreenTransition _080A3600: .4byte gUnk_08127D00 _080A3604: .4byte gUnk_03001000 @@ -437,7 +437,7 @@ _080A37C4: ldrb r0, [r0] cmp r0, #0 bne _080A385E - ldr r0, _080A37FC @ =gUnk_030010A0 + ldr r0, _080A37FC @ =gScreenTransition ldr r0, [r0] ands r0, r1 cmp r0, #0 @@ -461,7 +461,7 @@ _080A37C4: b _080A383C .align 2, 0 _080A37F8: .4byte gUnk_03000FD0 -_080A37FC: .4byte gUnk_030010A0 +_080A37FC: .4byte gScreenTransition _080A3800: .4byte gScreen _080A3804: ldrh r0, [r4, #8] @@ -472,7 +472,7 @@ _080A3804: bne _080A385E b _080A383C _080A3812: - ldr r0, _080A3844 @ =gUnk_030010A0 + ldr r0, _080A3844 @ =gScreenTransition ldr r0, [r0] movs r1, #1 ands r0, r1 @@ -499,7 +499,7 @@ _080A383C: strb r0, [r4, #6] b _080A385E .align 2, 0 -_080A3844: .4byte gUnk_030010A0 +_080A3844: .4byte gScreenTransition _080A3848: .4byte gScreen _080A384C: ldr r1, _080A3860 @ =gUnk_03000FD0 diff --git a/asm/code_080A3BD0.s b/asm/code_080A3BD0.s index 3cd69ca3..5bd2a20a 100644 --- a/asm/code_080A3BD0.s +++ b/asm/code_080A3BD0.s @@ -2418,7 +2418,7 @@ _080A4F38: adds r1, #1 cmp r1, #0xd ble _080A4F38 - ldr r1, _080A4F94 @ =gUnk_030010A0 + ldr r1, _080A4F94 @ =gScreenTransition ldrh r0, [r1, #0x20] ldrh r1, [r1, #0x22] bl sub_080A6A80 @@ -2452,7 +2452,7 @@ _080A4F66: pop {r4, pc} .align 2, 0 _080A4F90: .4byte gUnk_02034492 -_080A4F94: .4byte gUnk_030010A0 +_080A4F94: .4byte gScreenTransition _080A4F98: .4byte gUnk_02034490 _080A4F9C: .4byte gUnk_08128A38 diff --git a/asm/code_080A5574.s b/asm/code_080A5574.s index 6b4f2d40..e6f6a7cc 100644 --- a/asm/code_080A5574.s +++ b/asm/code_080A5574.s @@ -1818,7 +1818,7 @@ _080A6392: ands r0, r1 cmp r0, #0 bne _080A63EA - ldr r4, _080A6428 @ =gUnk_030010A0 + ldr r4, _080A6428 @ =gScreenTransition ldrh r1, [r4, #0x20] lsls r0, r1, #2 adds r0, r0, r1 @@ -1874,7 +1874,7 @@ _080A63EA: .align 2, 0 _080A6420: .4byte gMenu _080A6424: .4byte gUnk_03001010 -_080A6428: .4byte gUnk_030010A0 +_080A6428: .4byte gScreenTransition _080A642C: .4byte gLinkState _080A6430: .4byte 0x000001FB _080A6434: .4byte gUnk_08128DE8 @@ -2468,7 +2468,7 @@ sub_080A68D4: @ 0x080A68D4 beq _080A68E6 movs r4, #0x65 _080A68E6: - ldr r1, _080A6910 @ =gUnk_030010A0 + ldr r1, _080A6910 @ =gScreenTransition ldrh r0, [r1, #0x20] ldrh r1, [r1, #0x22] ldr r2, _080A6914 @ =0x000001FB @@ -2486,7 +2486,7 @@ _080A68E6: b _080A693A .align 2, 0 _080A690C: .4byte gLinkState -_080A6910: .4byte gUnk_030010A0 +_080A6910: .4byte gScreenTransition _080A6914: .4byte 0x000001FB _080A6918: .4byte gUnk_02002A40 _080A691C: .4byte gUnk_08128F58 @@ -2800,7 +2800,7 @@ sub_080A6B04: @ 0x080A6B04 beq _080A6B84 movs r2, #0x65 _080A6B84: - ldr r1, _080A6C10 @ =gUnk_030010A0 + ldr r1, _080A6C10 @ =gScreenTransition ldrh r0, [r1, #0x20] ldrh r1, [r1, #0x22] ldr r4, _080A6C14 @ =0x000001FB @@ -2859,7 +2859,7 @@ _080A6C00: .4byte 0x0000475F _080A6C04: .4byte 0x00005001 _080A6C08: .4byte gUnk_02001A40 _080A6C0C: .4byte gLinkState -_080A6C10: .4byte gUnk_030010A0 +_080A6C10: .4byte gScreenTransition _080A6C14: .4byte 0x000001FB _080A6C18: .4byte gUnk_08128E94 @@ -3718,7 +3718,7 @@ sub_080A7250: @ 0x080A7250 bl sub_0805E958 adds r1, r4, #0 subs r1, #0x54 - ldr r0, _080A7314 @ =gUnk_030010A0 + ldr r0, _080A7314 @ =gScreenTransition adds r0, #0x2f ldrb r0, [r0] strb r0, [r1, #0xd] @@ -3751,7 +3751,7 @@ _080A7304: .4byte gUnk_02001A00 _080A7308: .4byte gRoomControls _080A730C: .4byte gUnk_03000420 _080A7310: .4byte gUnk_02033280 -_080A7314: .4byte gUnk_030010A0 +_080A7314: .4byte gScreenTransition _080A7318: .4byte gLinkState _080A731C: .4byte gUnk_02017654 _080A7320: .4byte gUnk_02025EB0 @@ -3793,7 +3793,7 @@ sub_080A7328: @ 0x080A7328 ldr r1, _080A73A0 @ =gUnk_02032EC0 movs r0, #2 strb r0, [r1] - ldr r0, _080A73A4 @ =gUnk_030010A0 + ldr r0, _080A73A4 @ =gScreenTransition adds r0, #0x30 strb r2, [r0] _080A7384: @@ -3806,7 +3806,7 @@ _080A7394: .4byte gUnk_03000420 _080A7398: .4byte gUnk_02033280 _080A739C: .4byte gUnk_02024490 _080A73A0: .4byte gUnk_02032EC0 -_080A73A4: .4byte gUnk_030010A0 +_080A73A4: .4byte gScreenTransition thumb_func_start sub_080A73A8 sub_080A73A8: @ 0x080A73A8 @@ -3917,14 +3917,14 @@ _080A74AE: movs r2, #0 movs r0, #4 strb r0, [r1] - ldr r0, _080A74C4 @ =gUnk_030010A0 + ldr r0, _080A74C4 @ =gScreenTransition adds r0, #0x30 strb r2, [r0] _080A74BC: pop {r4, r5, pc} .align 2, 0 _080A74C0: .4byte gUnk_02032EC0 -_080A74C4: .4byte gUnk_030010A0 +_080A74C4: .4byte gScreenTransition thumb_func_start sub_080A74C8 sub_080A74C8: @ 0x080A74C8 @@ -4450,7 +4450,7 @@ sub_080A78B8: @ 0x080A78B8 ldrb r0, [r6, #0x1e] subs r0, #0x6a strb r0, [r4, #0x1e] - ldr r0, _080A78EC @ =gUnk_030010A0 + ldr r0, _080A78EC @ =gScreenTransition ldr r0, [r0] movs r1, #4 ands r0, r1 @@ -4462,7 +4462,7 @@ sub_080A78B8: @ 0x080A78B8 b _080A78F2 .align 2, 0 _080A78E8: .4byte gLinkState -_080A78EC: .4byte gUnk_030010A0 +_080A78EC: .4byte gScreenTransition _080A78F0: ldrb r1, [r4, #0x1e] _080A78F2: @@ -7418,7 +7418,7 @@ _080A8E8E: adds r2, r0, #0 ldr r0, _080A8EC4 @ =0x000001FF ands r2, r0 - ldr r0, _080A8EC8 @ =gUnk_030010A0 + ldr r0, _080A8EC8 @ =gScreenTransition ldr r0, [r0] ands r0, r6 cmp r0, #0 @@ -7428,7 +7428,7 @@ _080A8E8E: .align 2, 0 _080A8EC0: .4byte gLinkEntity _080A8EC4: .4byte 0x000001FF -_080A8EC8: .4byte gUnk_030010A0 +_080A8EC8: .4byte gScreenTransition _080A8ECC: subs r4, r4, r2 _080A8ECE: @@ -12353,7 +12353,7 @@ sub_080AB318: @ 0x080AB318 adds r1, r0, #0 ldr r0, _080AB3E4 @ =0x000001FF ands r1, r0 - ldr r0, _080AB3E8 @ =gUnk_030010A0 + ldr r0, _080AB3E8 @ =gScreenTransition ldr r0, [r0] mov r2, r8 ands r0, r2 @@ -12371,7 +12371,7 @@ _080AB3D8: .4byte 0xFFFF0000 _080AB3DC: .4byte gRoomControls _080AB3E0: .4byte 0x000001B5 _080AB3E4: .4byte 0x000001FF -_080AB3E8: .4byte gUnk_030010A0 +_080AB3E8: .4byte gScreenTransition _080AB3EC: subs r4, r4, r1 cmp r4, #0x1f @@ -15673,7 +15673,7 @@ sub_080ACC78: @ 0x080ACC78 push {r4, r5, r6, r7, lr} adds r4, r0, #0 ldrb r2, [r4, #0xa] - ldr r0, _080ACD20 @ =gUnk_030010A0 + ldr r0, _080ACD20 @ =gScreenTransition ldr r0, [r0] adds r0, r2, r0 movs r1, #1 @@ -15756,7 +15756,7 @@ _080ACD08: movs r0, #2 b _080ACD32 .align 2, 0 -_080ACD20: .4byte gUnk_030010A0 +_080ACD20: .4byte gScreenTransition _080ACD24: .4byte gUnk_0812AAAC _080ACD28: ldr r0, _080ACD74 @ =gUnk_0812AABC diff --git a/asm/code_080AD90C.s b/asm/code_080AD90C.s index a2259a48..4e859ff6 100644 --- a/asm/code_080AD90C.s +++ b/asm/code_080AD90C.s @@ -95,7 +95,7 @@ _080AD9AC: .4byte 0x00000427 sub_080AD9B0: @ 0x080AD9B0 push {lr} ldr r2, _080AD9F4 @ =gUnk_03000000 - ldr r0, _080AD9F8 @ =gUnk_030010A0 + ldr r0, _080AD9F8 @ =gScreenTransition adds r0, #0x2f ldrb r0, [r0] movs r1, #0 @@ -129,7 +129,7 @@ _080AD9C2: pop {pc} .align 2, 0 _080AD9F4: .4byte gUnk_03000000 -_080AD9F8: .4byte gUnk_030010A0 +_080AD9F8: .4byte gScreenTransition _080AD9FC: .4byte gRoomControls _080ADA00: .4byte gUnk_03006164 diff --git a/asm/enemy5F.s b/asm/enemy5F.s index 76911902..8421f5c4 100644 --- a/asm/enemy5F.s +++ b/asm/enemy5F.s @@ -32,7 +32,7 @@ _080482E8: .4byte gUnk_080D1D48 sub_080482EC: @ 0x080482EC push {r4, lr} adds r4, r0, #0 - ldr r0, _08048310 @ =gUnk_030010A0 + ldr r0, _08048310 @ =gScreenTransition adds r0, #0x38 ldrb r1, [r0] movs r2, #1 @@ -47,7 +47,7 @@ sub_080482EC: @ 0x080482EC bl InitializeAnimation b _08048326 .align 2, 0 -_08048310: .4byte gUnk_030010A0 +_08048310: .4byte gScreenTransition _08048314: strb r2, [r4, #0xc] adds r0, r4, #0 @@ -90,7 +90,7 @@ sub_0804835C: @ 0x0804835C push {r4, lr} adds r4, r0, #0 bl sub_080485D8 - ldr r0, _08048384 @ =gUnk_030010A0 + ldr r0, _08048384 @ =gScreenTransition adds r0, #0x39 ldrb r1, [r0] movs r2, #3 @@ -108,7 +108,7 @@ sub_0804835C: @ 0x0804835C _08048382: pop {r4, pc} .align 2, 0 -_08048384: .4byte gUnk_030010A0 +_08048384: .4byte gScreenTransition thumb_func_start sub_08048388 sub_08048388: @ 0x08048388 diff --git a/asm/ezloCap.s b/asm/ezloCap.s index e36c453b..13ef9565 100644 --- a/asm/ezloCap.s +++ b/asm/ezloCap.s @@ -584,7 +584,7 @@ _0806DCB6: thumb_func_start sub_0806DCC0 sub_0806DCC0: @ 0x0806DCC0 - ldr r0, _0806DCD0 @ =gUnk_030010A0 + ldr r0, _0806DCD0 @ =gScreenTransition movs r1, #0xf9 lsls r1, r1, #3 strh r1, [r0, #0x20] @@ -592,7 +592,7 @@ sub_0806DCC0: @ 0x0806DCC0 strh r1, [r0, #0x22] bx lr .align 2, 0 -_0806DCD0: .4byte gUnk_030010A0 +_0806DCD0: .4byte gScreenTransition thumb_func_start NPC4E_Fusion NPC4E_Fusion: @ 0x0806DCD4 diff --git a/asm/gleerok.s b/asm/gleerok.s index 82ff48dc..02f3d5b2 100644 --- a/asm/gleerok.s +++ b/asm/gleerok.s @@ -364,7 +364,7 @@ _0802D2D0: movs r2, #0x40 bl sub_0802EA68 _0802D2E4: - ldr r5, _0802D338 @ =gUnk_030010A0 + ldr r5, _0802D338 @ =gScreenTransition ldr r0, [r5] movs r1, #0x1f ands r0, r1 @@ -405,7 +405,7 @@ _0802D32E: _0802D334: pop {r4, r5, pc} .align 2, 0 -_0802D338: .4byte gUnk_030010A0 +_0802D338: .4byte gScreenTransition thumb_func_start sub_0802D33C sub_0802D33C: @ 0x0802D33C @@ -957,7 +957,7 @@ _0802D77A: sub_0802D77C: @ 0x0802D77C push {r4, r5, lr} adds r5, r0, #0 - ldr r0, _0802D7B0 @ =gUnk_030010A0 + ldr r0, _0802D7B0 @ =gScreenTransition ldr r4, [r0] movs r0, #1 ands r4, r0 @@ -981,7 +981,7 @@ sub_0802D77C: @ 0x0802D77C _0802D7AC: pop {r4, r5, pc} .align 2, 0 -_0802D7B0: .4byte gUnk_030010A0 +_0802D7B0: .4byte gScreenTransition thumb_func_start sub_0802D7B4 sub_0802D7B4: @ 0x0802D7B4 @@ -1230,7 +1230,7 @@ _0802D99C: bl DeleteThisEntity b _0802DB7E _0802D9A2: - ldr r0, _0802D9F4 @ =gUnk_030010A0 + ldr r0, _0802D9F4 @ =gScreenTransition ldr r0, [r0] movs r1, #1 ands r0, r1 @@ -1272,9 +1272,9 @@ _0802D9CE: str r1, [r0] b _0802D99C .align 2, 0 -_0802D9F4: .4byte gUnk_030010A0 +_0802D9F4: .4byte gScreenTransition _0802D9F8: - ldr r0, _0802DA50 @ =gUnk_030010A0 + ldr r0, _0802DA50 @ =gScreenTransition ldr r0, [r0] movs r1, #1 ands r0, r1 @@ -1319,7 +1319,7 @@ _0802DA24: str r1, [r0] b _0802D99C .align 2, 0 -_0802DA50: .4byte gUnk_030010A0 +_0802DA50: .4byte gScreenTransition _0802DA54: adds r0, r4, #0 adds r0, #0x74 @@ -2607,7 +2607,7 @@ _0802E400: .align 2, 0 _0802E408: .4byte gLinkEntity _0802E40C: - ldr r0, _0802E42C @ =gUnk_030010A0 + ldr r0, _0802E42C @ =gScreenTransition ldr r0, [r0] movs r1, #0xf ands r0, r1 @@ -2623,7 +2623,7 @@ _0802E422: _0802E428: pop {r4, r5, r6, pc} .align 2, 0 -_0802E42C: .4byte gUnk_030010A0 +_0802E42C: .4byte gScreenTransition thumb_func_start sub_0802E430 sub_0802E430: @ 0x0802E430 diff --git a/asm/guardWithSpear.s b/asm/guardWithSpear.s index 745374ba..0c8417d3 100644 --- a/asm/guardWithSpear.s +++ b/asm/guardWithSpear.s @@ -227,7 +227,7 @@ _080641E6: lsls r0, r0, #1 cmp r1, r0 ble _08064222 - ldr r0, _080642B4 @ =gUnk_030010A0 + ldr r0, _080642B4 @ =gScreenTransition ldr r0, [r0] movs r1, #6 bl __modsi3 @@ -304,7 +304,7 @@ _080642AC: pop {r4, r5, r6, pc} .align 2, 0 _080642B0: .4byte gLinkEntity -_080642B4: .4byte gUnk_030010A0 +_080642B4: .4byte gScreenTransition thumb_func_start sub_080642B8 sub_080642B8: @ 0x080642B8 @@ -372,7 +372,7 @@ _08064306: lsls r0, r0, #1 cmp r1, r0 ble _08064342 - ldr r0, _080643D4 @ =gUnk_030010A0 + ldr r0, _080643D4 @ =gScreenTransition ldr r0, [r0] movs r1, #6 bl __modsi3 @@ -449,7 +449,7 @@ _080643CC: pop {r4, r5, r6, pc} .align 2, 0 _080643D0: .4byte gLinkEntity -_080643D4: .4byte gUnk_030010A0 +_080643D4: .4byte gScreenTransition thumb_func_start sub_080643D8 sub_080643D8: @ 0x080643D8 diff --git a/asm/gyorgChild.s b/asm/gyorgChild.s index 54351bef..9850cc4c 100644 --- a/asm/gyorgChild.s +++ b/asm/gyorgChild.s @@ -11,7 +11,7 @@ GyorgChild: @ 0x08048640 push {r4, r5, lr} adds r5, r0, #0 - ldr r0, _0804867C @ =gUnk_030010A0 + ldr r0, _0804867C @ =gScreenTransition adds r0, #0x39 ldrb r2, [r0] cmp r2, #0 @@ -38,7 +38,7 @@ _08048664: bl _call_via_r1 pop {r4, r5, pc} .align 2, 0 -_0804867C: .4byte gUnk_030010A0 +_0804867C: .4byte gScreenTransition _08048680: .4byte gUnk_080D1E6C thumb_func_start sub_08048684 diff --git a/asm/initializeLink.s b/asm/initializeLink.s index b219c8dd..192b979f 100644 --- a/asm/initializeLink.s +++ b/asm/initializeLink.s @@ -26,7 +26,7 @@ InitializeLink: @ 0x080524A8 ldr r0, _0805251C @ =gRoomControls str r4, [r0, #0x30] ldr r1, _08052520 @ =gUnk_080FCAC8 - ldr r5, _08052524 @ =gUnk_030010A0 + ldr r5, _08052524 @ =gScreenTransition ldrb r0, [r5, #0xf] adds r0, r0, r1 ldrb r0, [r0] @@ -56,7 +56,7 @@ _08052514: .4byte gLinkState _08052518: .4byte gLinkEntity _0805251C: .4byte gRoomControls _08052520: .4byte gUnk_080FCAC8 -_08052524: .4byte gUnk_030010A0 +_08052524: .4byte gScreenTransition _08052528: .4byte _0805252C _0805252C: @ jump table .4byte _08052558 @ case 0 @@ -81,7 +81,7 @@ _08052564: adds r0, #0x38 movs r1, #0x10 strb r1, [r0] - ldr r1, _08052580 @ =gUnk_030010A0 + ldr r1, _08052580 @ =gScreenTransition ldrb r0, [r1, #0xe] lsls r0, r0, #2 strb r0, [r4, #0x15] @@ -92,21 +92,21 @@ _08052576: b _080525C2 .align 2, 0 _0805257C: .4byte gLinkState -_08052580: .4byte gUnk_030010A0 +_08052580: .4byte gScreenTransition _08052584: ldr r1, _08052598 @ =gLinkState adds r2, r1, #0 adds r2, #0x38 movs r0, #1 strb r0, [r2] - ldr r2, _0805259C @ =gUnk_030010A0 + ldr r2, _0805259C @ =gScreenTransition ldrb r0, [r2, #0xf] adds r1, #0x39 strb r0, [r1] b _080525C2 .align 2, 0 _08052598: .4byte gLinkState -_0805259C: .4byte gUnk_030010A0 +_0805259C: .4byte gScreenTransition _080525A0: ldr r0, _080525A8 @ =gLinkState adds r0, #0x38 @@ -128,7 +128,7 @@ _080525B8: _080525BE: strb r1, [r0] _080525C0: - ldr r2, _08052618 @ =gUnk_030010A0 + ldr r2, _08052618 @ =gScreenTransition _080525C2: movs r0, #1 strb r0, [r4, #8] @@ -170,5 +170,5 @@ _080525C2: pop {r4, r5, r6, pc} .align 2, 0 _08052614: .4byte gLinkState -_08052618: .4byte gUnk_030010A0 +_08052618: .4byte gScreenTransition _0805261C: .4byte gUnk_02002A40 diff --git a/asm/itemOnGround.s b/asm/itemOnGround.s index 835a13ca..aaf987cc 100644 --- a/asm/itemOnGround.s +++ b/asm/itemOnGround.s @@ -216,7 +216,7 @@ _08080AFA: adds r0, r5, #0 adds r1, r6, #0 bl sub_080002A8 - ldr r1, _08080B48 @ =gUnk_030010A0 + ldr r1, _08080B48 @ =gScreenTransition strh r0, [r1, #0xa] cmp r4, #0x3f beq _08080B50 @@ -228,7 +228,7 @@ _08080AFA: blo _08080B5C b _08080B50 .align 2, 0 -_08080B48: .4byte gUnk_030010A0 +_08080B48: .4byte gScreenTransition _08080B4C: cmp r4, #0xf1 bne _08080B5C @@ -538,7 +538,7 @@ _08080DB4: bl ResolveEntityOnTop b _08080E00 _08080DEE: - ldr r0, _08080E04 @ =gUnk_030010A0 + ldr r0, _08080E04 @ =gScreenTransition ldr r0, [r0] movs r1, #0xf ands r0, r1 @@ -549,7 +549,7 @@ _08080DEE: _08080E00: pop {r4, r5, pc} .align 2, 0 -_08080E04: .4byte gUnk_030010A0 +_08080E04: .4byte gScreenTransition thumb_func_start ItemOnGround ItemOnGround: @ 0x08080E08 diff --git a/asm/lilypadLarge.s b/asm/lilypadLarge.s index 86828bd3..0657df02 100644 --- a/asm/lilypadLarge.s +++ b/asm/lilypadLarge.s @@ -417,7 +417,7 @@ _080857F6: _08085806: str r1, [r7, #0x6c] _08085808: - ldr r0, _080858B0 @ =gUnk_030010A0 + ldr r0, _080858B0 @ =gScreenTransition ldr r0, [r0] movs r1, #0xf ands r0, r1 @@ -495,7 +495,7 @@ _08085884: .align 2, 0 _080858A8: .4byte gSineTable _080858AC: .4byte 0xFFFF0000 -_080858B0: .4byte gUnk_030010A0 +_080858B0: .4byte gScreenTransition _080858B4: .4byte 0x00000FFF _080858B8: movs r0, #0 @@ -679,7 +679,7 @@ _080859E6: bl sub_08085D60 b _08085A0A _080859F4: - ldr r0, _08085A18 @ =gUnk_030010A0 + ldr r0, _08085A18 @ =gScreenTransition ldr r0, [r0] movs r1, #0x1f ands r0, r1 @@ -696,7 +696,7 @@ _08085A0A: mov r8, r3 pop {r4, r5, r6, r7, pc} .align 2, 0 -_08085A18: .4byte gUnk_030010A0 +_08085A18: .4byte gScreenTransition thumb_func_start sub_08085A1C sub_08085A1C: @ 0x08085A1C diff --git a/asm/manager1.s b/asm/manager1.s index 435e67ad..c9530794 100644 --- a/asm/manager1.s +++ b/asm/manager1.s @@ -334,7 +334,7 @@ sub_080573AC: @ 0x080573AC adds r0, r0, r2 strh r0, [r5, #0x30] ldr r2, _08057444 @ =gSineTable - ldr r4, _08057448 @ =gUnk_030010A0 + ldr r4, _08057448 @ =gScreenTransition ldr r1, [r4] ldrb r0, [r4] adds r0, #0x40 @@ -378,7 +378,7 @@ _08057438: .4byte 0xFFFFE000 _0805743C: .4byte 0xFFFFF000 _08057440: .4byte gScreen _08057444: .4byte gSineTable -_08057448: .4byte gUnk_030010A0 +_08057448: .4byte gScreenTransition _0805744C: .4byte gUnk_08107C30 thumb_func_start sub_08057450 @@ -417,7 +417,7 @@ _0805748A: adds r0, r3, #0 adds r0, #0x22 ldrb r0, [r0] - ldr r5, _08057510 @ =gUnk_030010A0 + ldr r5, _08057510 @ =gScreenTransition cmp r0, #0 bne _080574BE ldr r0, [r5] @@ -480,6 +480,6 @@ _08057502: _08057504: .4byte gScreen _08057508: .4byte gRoomControls _0805750C: .4byte gUnk_02001A40 -_08057510: .4byte gUnk_030010A0 +_08057510: .4byte gScreenTransition _08057514: .4byte gUnk_08107C30 _08057518: .4byte gUnk_085B4180 diff --git a/asm/manager10.s b/asm/manager10.s index 501c21e7..2a3fed1d 100644 --- a/asm/manager10.s +++ b/asm/manager10.s @@ -192,7 +192,7 @@ _080596DC: .4byte gUnk_085A7320 sub_080596E0: @ 0x080596E0 push {r4, r5, r6, lr} adds r4, r0, #0 - ldr r0, _08059730 @ =gUnk_030010A0 + ldr r0, _08059730 @ =gScreenTransition ldr r0, [r0] movs r1, #7 ands r0, r1 @@ -230,7 +230,7 @@ _080596FC: str r1, [r0] b _08059764 .align 2, 0 -_08059730: .4byte gUnk_030010A0 +_08059730: .4byte gScreenTransition _08059734: .4byte gScreen _08059738: .4byte gUnk_08108390 _0805973C: .4byte gUnk_0200B650 diff --git a/asm/manager1A.s b/asm/manager1A.s index 7163e018..fad93017 100644 --- a/asm/manager1A.s +++ b/asm/manager1A.s @@ -251,7 +251,7 @@ _0805B20C: thumb_func_start sub_0805B210 sub_0805B210: @ 0x0805B210 push {r4, r5, lr} - ldr r2, _0805B248 @ =gUnk_030010A0 + ldr r2, _0805B248 @ =gScreenTransition movs r1, #1 strb r1, [r2, #8] strb r1, [r2, #9] @@ -279,7 +279,7 @@ sub_0805B210: @ 0x0805B210 movs r0, #6 b _0805B256 .align 2, 0 -_0805B248: .4byte gUnk_030010A0 +_0805B248: .4byte gScreenTransition _0805B24C: .4byte gUnk_08108764 _0805B250: .4byte gLinkState _0805B254: diff --git a/asm/manager22.s b/asm/manager22.s index 8cd27864..8f0bdb43 100644 --- a/asm/manager22.s +++ b/asm/manager22.s @@ -130,7 +130,7 @@ _0805B9EC: .4byte 0x0000DFFF _0805B9F0: .4byte gLinkState _0805B9F4: .4byte gArea _0805B9F8: - ldr r0, _0805BA24 @ =gUnk_030010A0 + ldr r0, _0805BA24 @ =gScreenTransition ldr r0, [r0] movs r1, #3 ands r0, r1 @@ -151,7 +151,7 @@ _0805B9F8: bl sub_0801E154 b _0805BA42 .align 2, 0 -_0805BA24: .4byte gUnk_030010A0 +_0805BA24: .4byte gScreenTransition _0805BA28: .4byte gSineTable _0805BA2C: movs r0, #0 diff --git a/asm/manager32.s b/asm/manager32.s index 1737fe7a..4faba7eb 100644 --- a/asm/manager32.s +++ b/asm/manager32.s @@ -17,7 +17,7 @@ sub_0805D7A4: @ 0x0805D7A4 ldr r1, [r0] adds r0, r4, #0 bl _call_via_r1 - ldr r0, _0805D7D8 @ =gUnk_030010A0 + ldr r0, _0805D7D8 @ =gScreenTransition ldr r0, [r0] lsls r0, r0, #4 str r0, [r4, #0x24] @@ -30,7 +30,7 @@ sub_0805D7A4: @ 0x0805D7A4 pop {r4, pc} .align 2, 0 _0805D7D4: .4byte gUnk_08108D7C -_0805D7D8: .4byte gUnk_030010A0 +_0805D7D8: .4byte gScreenTransition thumb_func_start sub_0805D7DC sub_0805D7DC: @ 0x0805D7DC diff --git a/asm/manager34.s b/asm/manager34.s index 5ccd5177..91446d18 100644 --- a/asm/manager34.s +++ b/asm/manager34.s @@ -27,7 +27,7 @@ _0805DBB0: .4byte gUnk_08108D8C sub_0805DBB4: @ 0x0805DBB4 movs r1, #1 strb r1, [r0, #0xc] - ldr r1, _0805DBC8 @ =gUnk_030010A0 + ldr r1, _0805DBC8 @ =gScreenTransition adds r1, #0x3d ldrb r2, [r1] lsls r1, r2, #4 @@ -36,7 +36,7 @@ sub_0805DBB4: @ 0x0805DBB4 strh r1, [r0, #0x20] bx lr .align 2, 0 -_0805DBC8: .4byte gUnk_030010A0 +_0805DBC8: .4byte gScreenTransition thumb_func_start sub_0805DBCC sub_0805DBCC: @ 0x0805DBCC diff --git a/asm/manager37.s b/asm/manager37.s index f9dca8f3..5ae4d78f 100644 --- a/asm/manager37.s +++ b/asm/manager37.s @@ -45,7 +45,7 @@ _0805DE7A: movs r1, #0 movs r0, #1 strb r0, [r4, #0xc] - ldr r2, _0805DEAC @ =gUnk_030010A0 + ldr r2, _0805DEAC @ =gScreenTransition adds r0, r2, #0 adds r0, #0x38 strb r1, [r0] @@ -67,7 +67,7 @@ _0805DE7A: str r1, [r0] pop {r4, pc} .align 2, 0 -_0805DEAC: .4byte gUnk_030010A0 +_0805DEAC: .4byte gScreenTransition _0805DEB0: .4byte gUnk_02002A40 _0805DEB4: .4byte 0x00001194 @@ -266,7 +266,7 @@ sub_0805E000: @ 0x0805E000 strb r5, [r0] adds r0, r4, #0 bl UpdateSpriteForCollisionLayer - ldr r0, _0805E068 @ =gUnk_030010A0 + ldr r0, _0805E068 @ =gScreenTransition adds r0, #0x38 ldrb r1, [r0] adds r0, r5, #0 @@ -293,7 +293,7 @@ _0805E062: pop {r4, r5, r6, pc} .align 2, 0 _0805E064: .4byte gRoomControls -_0805E068: .4byte gUnk_030010A0 +_0805E068: .4byte gScreenTransition _0805E06C: .4byte gArea _0805E070: .4byte 0x00000864 _0805E074: .4byte 0x80010000 diff --git a/asm/manager4.s b/asm/manager4.s index 0462c59c..f579829c 100644 --- a/asm/manager4.s +++ b/asm/manager4.s @@ -249,7 +249,7 @@ sub_08057A18: @ 0x08057A18 ldr r3, _08057A98 @ =gRoomControls ldrb r0, [r3, #4] strb r0, [r6, #9] - ldr r1, _08057A9C @ =gUnk_030010A0 + ldr r1, _08057A9C @ =gScreenTransition ldrb r0, [r5, #4] strb r0, [r1, #0xc] ldrb r0, [r5, #5] @@ -303,7 +303,7 @@ _08057A86: .align 2, 0 _08057A94: .4byte gUnk_03004030 _08057A98: .4byte gRoomControls -_08057A9C: .4byte gUnk_030010A0 +_08057A9C: .4byte gScreenTransition _08057AA0: .4byte gLinkEntity _08057AA4: .4byte gUnk_02034480 diff --git a/asm/managerC.s b/asm/managerC.s index bb3acdb3..80f37976 100644 --- a/asm/managerC.s +++ b/asm/managerC.s @@ -70,7 +70,7 @@ sub_080588CC: @ 0x080588CC bl sub_08058CFC adds r0, r4, #0 bl sub_08058A04 - ldr r0, _080588E8 @ =gUnk_030010A0 + ldr r0, _080588E8 @ =gScreenTransition ldrb r0, [r0, #8] cmp r0, #0 beq _080588EC @@ -78,7 +78,7 @@ sub_080588CC: @ 0x080588CC strb r0, [r4, #0xc] b _080588F2 .align 2, 0 -_080588E8: .4byte gUnk_030010A0 +_080588E8: .4byte gScreenTransition _080588EC: adds r0, r4, #0 bl sub_080588F8 @@ -413,7 +413,7 @@ _08058B58: .4byte gRoomControls thumb_func_start sub_08058B5C sub_08058B5C: @ 0x08058B5C push {r4, r5, lr} - ldr r3, _08058BB4 @ =gUnk_030010A0 + ldr r3, _08058BB4 @ =gScreenTransition movs r0, #0 movs r4, #1 strb r4, [r3, #8] @@ -455,7 +455,7 @@ sub_08058B5C: @ 0x08058B5C bl PlaySFX pop {r4, r5, pc} .align 2, 0 -_08058BB4: .4byte gUnk_030010A0 +_08058BB4: .4byte gScreenTransition _08058BB8: .4byte gRoomControls _08058BBC: .4byte gUnk_081082E8 _08058BC0: .4byte gUnk_02002A40 diff --git a/asm/mazaalBracelet.s b/asm/mazaalBracelet.s index 04664b4f..e5d95297 100644 --- a/asm/mazaalBracelet.s +++ b/asm/mazaalBracelet.s @@ -233,7 +233,7 @@ _0803A2CC: adds r1, r4, #0 bl PositionRelative _0803A310: - ldr r0, _0803A350 @ =gUnk_030010A0 + ldr r0, _0803A350 @ =gScreenTransition adds r0, #0x38 ldrb r0, [r0] cmp r0, #0 @@ -263,7 +263,7 @@ _0803A310: b _0803A360 .align 2, 0 _0803A34C: .4byte 0xFFF00000 -_0803A350: .4byte gUnk_030010A0 +_0803A350: .4byte gScreenTransition _0803A354: movs r0, #1 strb r0, [r4, #0xc] @@ -3166,7 +3166,7 @@ _0803B90C: .4byte gUnk_080CFD20 sub_0803B910: @ 0x0803B910 push {r4, lr} adds r4, r0, #0 - ldr r0, _0803B940 @ =gUnk_030010A0 + ldr r0, _0803B940 @ =gScreenTransition adds r0, #0x38 ldrb r0, [r0] cmp r0, #0 @@ -3188,7 +3188,7 @@ sub_0803B910: @ 0x0803B910 bl sub_0803BA8C b _0803B950 .align 2, 0 -_0803B940: .4byte gUnk_030010A0 +_0803B940: .4byte gScreenTransition _0803B944: movs r0, #1 strb r0, [r4, #0xc] diff --git a/asm/mazaalHead.s b/asm/mazaalHead.s index 03b77b40..ea96d43f 100644 --- a/asm/mazaalHead.s +++ b/asm/mazaalHead.s @@ -74,7 +74,7 @@ sub_08033F3C: @ 0x08033F3C ldrb r0, [r0] cmp r0, #0x42 bhi _08033FFA - ldr r0, _08033F68 @ =gUnk_030010A0 + ldr r0, _08033F68 @ =gScreenTransition adds r0, #0x38 ldrb r0, [r0] cmp r0, #0 @@ -88,7 +88,7 @@ sub_08033F3C: @ 0x08033F3C b _08033F70 .align 2, 0 _08033F64: .4byte gUnk_03003DBC -_08033F68: .4byte gUnk_030010A0 +_08033F68: .4byte gScreenTransition _08033F6C: movs r0, #1 strb r0, [r4, #0xc] @@ -122,7 +122,7 @@ _08033F70: movs r2, #0 bl CreateObject str r4, [r0, #0x50] - ldr r0, _08033FD0 @ =gUnk_030010A0 + ldr r0, _08033FD0 @ =gScreenTransition adds r0, #0x39 ldrb r1, [r0] cmp r1, #0 @@ -138,7 +138,7 @@ _08033F70: strb r0, [r4, #0x10] b _08033FFA .align 2, 0 -_08033FD0: .4byte gUnk_030010A0 +_08033FD0: .4byte gScreenTransition _08033FD4: movs r0, #0x44 movs r1, #0 @@ -732,7 +732,7 @@ sub_0803443C: @ 0x0803443C adds r1, #0x7d movs r0, #0 strb r0, [r1] - ldr r0, _0803445C @ =gUnk_030010A0 + ldr r0, _0803445C @ =gScreenTransition adds r0, #0x39 ldrb r0, [r0] cmp r0, #0x1e @@ -741,7 +741,7 @@ sub_0803443C: @ 0x0803443C bl sub_080344BC b _08034472 .align 2, 0 -_0803445C: .4byte gUnk_030010A0 +_0803445C: .4byte gScreenTransition _08034460: cmp r0, #0x3c bhi _0803446C @@ -1831,7 +1831,7 @@ sub_08034C00: @ 0x08034C00 bl CheckPlayerInRegion cmp r0, #0 beq _08034C5A - ldr r0, _08034C4C @ =gUnk_030010A0 + ldr r0, _08034C4C @ =gScreenTransition adds r0, #0x39 ldrb r0, [r0] cmp r0, #0x3c @@ -1842,7 +1842,7 @@ sub_08034C00: @ 0x08034C00 .align 2, 0 _08034C44: .4byte gLinkState _08034C48: .4byte gRoomControls -_08034C4C: .4byte gUnk_030010A0 +_08034C4C: .4byte gScreenTransition _08034C50: .4byte gUnk_080CED88 _08034C54: ldr r0, _08034C5C @ =gUnk_080CED9C diff --git a/asm/mazaalMacro.s b/asm/mazaalMacro.s index d294485a..5d4ff187 100644 --- a/asm/mazaalMacro.s +++ b/asm/mazaalMacro.s @@ -193,7 +193,7 @@ _08034DC4: sub_08034DC8: @ 0x08034DC8 push {r4, r5, lr} adds r4, r0, #0 - ldr r0, _08034E10 @ =gUnk_030010A0 + ldr r0, _08034E10 @ =gScreenTransition adds r0, #0x39 ldrb r0, [r0] cmp r0, #0 @@ -226,7 +226,7 @@ sub_08034DC8: @ 0x08034DC8 _08034E0E: pop {r4, r5, pc} .align 2, 0 -_08034E10: .4byte gUnk_030010A0 +_08034E10: .4byte gScreenTransition _08034E14: .4byte gRoomControls thumb_func_start sub_08034E18 @@ -290,7 +290,7 @@ sub_08034E68: @ 0x08034E68 adds r0, r4, #0 bl sub_08035120 _08034E8A: - ldr r0, _08034EB0 @ =gUnk_030010A0 + ldr r0, _08034EB0 @ =gScreenTransition adds r0, #0x39 ldrb r0, [r0] cmp r0, #0 @@ -308,7 +308,7 @@ _08034E8A: str r0, [r1] b _08034EBC .align 2, 0 -_08034EB0: .4byte gUnk_030010A0 +_08034EB0: .4byte gScreenTransition _08034EB4: .4byte gUnk_08012E20 _08034EB8: bl DeleteThisEntity @@ -411,7 +411,7 @@ _08034F6C: .4byte gUnk_0813ABA8 sub_08034F70: @ 0x08034F70 push {lr} adds r2, r0, #0 - ldr r0, _08034F8C @ =gUnk_030010A0 + ldr r0, _08034F8C @ =gScreenTransition adds r0, #0x39 ldrb r0, [r0] adds r1, r2, #0 @@ -424,7 +424,7 @@ sub_08034F70: @ 0x08034F70 movs r0, #0 b _08034F9A .align 2, 0 -_08034F8C: .4byte gUnk_030010A0 +_08034F8C: .4byte gScreenTransition _08034F90: cmp r0, #0x1e bls _08034F98 @@ -496,12 +496,12 @@ _08035008: adds r5, r0, #0 cmp r1, #0x3b bhi _08035040 - ldr r0, _0803501C @ =gUnk_030010A0 + ldr r0, _0803501C @ =gScreenTransition adds r0, #0x39 movs r1, #0x3c b _08035032 .align 2, 0 -_0803501C: .4byte gUnk_030010A0 +_0803501C: .4byte gScreenTransition _08035020: adds r0, r4, #0 adds r0, #0x45 @@ -509,7 +509,7 @@ _08035020: adds r5, r0, #0 cmp r1, #0x1d bhi _08035040 - ldr r0, _0803503C @ =gUnk_030010A0 + ldr r0, _0803503C @ =gScreenTransition adds r0, #0x39 movs r1, #0x1e _08035032: @@ -518,16 +518,16 @@ _08035032: bl sub_08035050 b _08035048 .align 2, 0 -_0803503C: .4byte gUnk_030010A0 +_0803503C: .4byte gScreenTransition _08035040: - ldr r0, _0803504C @ =gUnk_030010A0 + ldr r0, _0803504C @ =gScreenTransition ldrb r1, [r5] adds r0, #0x39 strb r1, [r0] _08035048: pop {r4, r5, r6, pc} .align 2, 0 -_0803504C: .4byte gUnk_030010A0 +_0803504C: .4byte gScreenTransition thumb_func_start sub_08035050 sub_08035050: @ 0x08035050 @@ -585,7 +585,7 @@ _080350A6: lsrs r0, r0, #4 cmp r6, r0 beq _080350A6 - ldr r2, _080350DC @ =gUnk_030010A0 + ldr r2, _080350DC @ =gScreenTransition adds r2, #0x38 ldrb r1, [r2] movs r0, #0xf @@ -603,7 +603,7 @@ _080350D0: b _080350F2 .align 2, 0 _080350D8: .4byte gUnk_030010D8 -_080350DC: .4byte gUnk_030010A0 +_080350DC: .4byte gScreenTransition _080350E0: .4byte gUnk_080CEECC _080350E4: .4byte gRoomControls _080350E8: diff --git a/asm/moldworm.s b/asm/moldworm.s index 3db9e88b..3b33afac 100644 --- a/asm/moldworm.s +++ b/asm/moldworm.s @@ -549,7 +549,7 @@ _08023440: subs r0, #1 strb r0, [r1] _08023460: - ldr r0, _080234A0 @ =gUnk_030010A0 + ldr r0, _080234A0 @ =gScreenTransition ldr r0, [r0] movs r1, #7 ands r0, r1 @@ -579,7 +579,7 @@ _08023460: _0802349C: pop {r4, r5, r6, pc} .align 2, 0 -_080234A0: .4byte gUnk_030010A0 +_080234A0: .4byte gScreenTransition thumb_func_start sub_080234A4 sub_080234A4: @ 0x080234A4 diff --git a/asm/non_matching/bigGoron/sub_0806CF30.inc b/asm/non_matching/bigGoron/sub_0806CF30.inc index fa2f17e7..49f33c3c 100644 --- a/asm/non_matching/bigGoron/sub_0806CF30.inc +++ b/asm/non_matching/bigGoron/sub_0806CF30.inc @@ -40,7 +40,7 @@ _0806CF6C: bgt _0806D000 cmp r0, #0 blt _0806D000 - ldr r0, _0806CFCC @ =gUnk_030010A0 + ldr r0, _0806CFCC @ =gScreenTransition ldr r0, [r0] movs r1, #3 ands r0, r1 @@ -83,7 +83,7 @@ _0806CFA8: strh r0, [r5, #0x2e] b _0806D000 .align 2, 0 -_0806CFCC: .4byte gUnk_030010A0 +_0806CFCC: .4byte gScreenTransition _0806CFD0: .4byte gLinkEntity _0806CFD4: ldrb r0, [r5, #0xe] diff --git a/asm/non_matching/minecart/sub_080919AC.inc b/asm/non_matching/minecart/sub_080919AC.inc index e7c12d24..a3dfeadd 100644 --- a/asm/non_matching/minecart/sub_080919AC.inc +++ b/asm/non_matching/minecart/sub_080919AC.inc @@ -98,7 +98,7 @@ _08091A22: beq _08091A68 b _08091C04 _08091A68: - ldr r0, _08091AD8 @ =gUnk_030010A0 + ldr r0, _08091AD8 @ =gScreenTransition ldr r0, [r0] ands r0, r7 cmp r0, #0 @@ -152,7 +152,7 @@ _08091A92: strb r0, [r5, #0x14] b _08091BD8 .align 2, 0 -_08091AD8: .4byte gUnk_030010A0 +_08091AD8: .4byte gScreenTransition _08091ADC: .4byte gUnk_081223C8 _08091AE0: .4byte gUnk_081223D8 _08091AE4: diff --git a/asm/non_matching/sub_0804C258.inc b/asm/non_matching/sub_0804C258.inc index 74581376..24790e4a 100644 --- a/asm/non_matching/sub_0804C258.inc +++ b/asm/non_matching/sub_0804C258.inc @@ -10,7 +10,7 @@ movs r0, #0xf ands r2, r0 strb r2, [r3, #0xd] - ldr r0, _0804C28C @ =gUnk_030010A0 + ldr r0, _0804C28C @ =gScreenTransition ldrb r0, [r0, #0xe] cmp r0, #4 bne _0804C284 @@ -24,5 +24,5 @@ _0804C284: pop {pc} .align 2, 0 _0804C288: .4byte gArea -_0804C28C: .4byte gUnk_030010A0 +_0804C28C: .4byte gScreenTransition .syntax divided \ No newline at end of file diff --git a/asm/non_matching/sub_0804DE00.inc b/asm/non_matching/sub_0804DE00.inc index c3227533..bf30a2b1 100644 --- a/asm/non_matching/sub_0804DE00.inc +++ b/asm/non_matching/sub_0804DE00.inc @@ -60,7 +60,7 @@ _0804DE5C: strh r5, [r0, #4] ldr r0, [r4] strh r6, [r0, #6] - ldr r1, _0804DEC0 @ =gUnk_030010A0 + ldr r1, _0804DEC0 @ =gScreenTransition ldr r0, [r4] ldrh r0, [r0] lsrs r0, r0, #1 @@ -80,7 +80,7 @@ _0804DE5C: _0804DEB4: .4byte gArea _0804DEB8: .4byte 0x0000085C _0804DEBC: .4byte gRoomControls -_0804DEC0: .4byte gUnk_030010A0 +_0804DEC0: .4byte gScreenTransition _0804DEC4: movs r0, #6 movs r1, #0x10 diff --git a/asm/non_matching/sub_08054524.inc b/asm/non_matching/sub_08054524.inc index 7246268a..fd079ac9 100644 --- a/asm/non_matching/sub_08054524.inc +++ b/asm/non_matching/sub_08054524.inc @@ -4,7 +4,7 @@ ldrb r1, [r0, #1] cmp r1, #0 bne _08054534 - ldr r0, _08054554 @ =gUnk_030010A0 + ldr r0, _08054554 @ =gScreenTransition adds r0, #0x2e ldrb r1, [r0] _08054534: @@ -24,7 +24,7 @@ _0805453A: pop {pc} .align 2, 0 _08054550: .4byte gArea -_08054554: .4byte gUnk_030010A0 +_08054554: .4byte gScreenTransition _08054558: .4byte gUnk_080FE1C6 _0805455C: .4byte gUnk_080015BC _08054560: .4byte gUnk_02034398 diff --git a/asm/npc5.s b/asm/npc5.s index 770ffb42..36baa15a 100644 --- a/asm/npc5.s +++ b/asm/npc5.s @@ -2315,7 +2315,7 @@ sub_08061B58: @ 0x08061B58 movs r1, #2 bl InitAnimationForceUpdate _08061B6E: - ldr r0, _08061B88 @ =gUnk_030010A0 + ldr r0, _08061B88 @ =gScreenTransition adds r0, #0x2c ldrb r0, [r0] cmp r0, #2 @@ -2327,4 +2327,4 @@ _08061B7E: bl sub_0806FD3C pop {r4, pc} .align 2, 0 -_08061B88: .4byte gUnk_030010A0 +_08061B88: .4byte gScreenTransition diff --git a/asm/object17.s b/asm/object17.s index 5751e135..93768f63 100644 --- a/asm/object17.s +++ b/asm/object17.s @@ -84,7 +84,7 @@ sub_08086234: @ 0x08086234 ldrb r0, [r4, #0xa] cmp r0, #0 beq _08086258 - ldr r0, _08086254 @ =gUnk_030010A0 + ldr r0, _08086254 @ =gScreenTransition ldr r0, [r0] movs r1, #1 ands r0, r1 @@ -94,7 +94,7 @@ sub_08086234: @ 0x08086234 bl GetNextFrame b _0808625E .align 2, 0 -_08086254: .4byte gUnk_030010A0 +_08086254: .4byte gScreenTransition _08086258: adds r0, r4, #0 bl GetNextFrame diff --git a/asm/object3E.s b/asm/object3E.s index fbc0c6ff..16fea14e 100644 --- a/asm/object3E.s +++ b/asm/object3E.s @@ -171,7 +171,7 @@ _0808D1AE: _0808D1F4: .4byte 0x00004069 _0808D1F8: .4byte gRoomControls _0808D1FC: - ldr r0, _0808D274 @ =gUnk_030010A0 + ldr r0, _0808D274 @ =gScreenTransition ldr r3, [r0] movs r0, #3 ands r3, r0 @@ -233,7 +233,7 @@ _0808D24E: _0808D272: pop {r4, r5, r6, pc} .align 2, 0 -_0808D274: .4byte gUnk_030010A0 +_0808D274: .4byte gScreenTransition _0808D278: .4byte gScreen _0808D27C: .4byte gUnk_08121704 @@ -339,7 +339,7 @@ _0808D31C: ldrsh r0, [r4, r1] cmp r5, r0 beq _0808D350 - ldr r0, _0808D358 @ =gUnk_030010A0 + ldr r0, _0808D358 @ =gScreenTransition ldr r0, [r0] movs r1, #8 ands r0, r1 @@ -351,7 +351,7 @@ _0808D350: pop {r4, r5, pc} .align 2, 0 _0808D354: .4byte gRoomControls -_0808D358: .4byte gUnk_030010A0 +_0808D358: .4byte gScreenTransition _0808D35C: .4byte 0x0000010F thumb_func_start sub_0808D360 @@ -585,7 +585,7 @@ _0808D514: .4byte 0x00004069 sub_0808D518: @ 0x0808D518 push {r4, r5, r6, lr} adds r5, r0, #0 - ldr r0, _0808D58C @ =gUnk_030010A0 + ldr r0, _0808D58C @ =gScreenTransition ldr r2, [r0] movs r0, #3 ands r2, r0 @@ -642,7 +642,7 @@ sub_0808D518: @ 0x0808D518 _0808D58A: pop {r4, r5, r6, pc} .align 2, 0 -_0808D58C: .4byte gUnk_030010A0 +_0808D58C: .4byte gScreenTransition _0808D590: .4byte gScreen _0808D594: .4byte 0x00004069 _0808D598: .4byte gRoomControls diff --git a/asm/object43.s b/asm/object43.s index 4e66c681..57064728 100644 --- a/asm/object43.s +++ b/asm/object43.s @@ -240,7 +240,7 @@ _0808E084: ldrh r0, [r5] cmp r0, #0 beq _0808E0BC - ldr r0, _0808E0B8 @ =gUnk_030010A0 + ldr r0, _0808E0B8 @ =gScreenTransition ldr r1, [r0] movs r0, #0x1f ands r1, r0 @@ -260,7 +260,7 @@ _0808E084: strb r1, [r0] b _0808E0E4 .align 2, 0 -_0808E0B8: .4byte gUnk_030010A0 +_0808E0B8: .4byte gScreenTransition _0808E0BC: ldr r0, _0808E140 @ =0x00000115 bl sub_08004488 @@ -446,7 +446,7 @@ sub_0808E208: @ 0x0808E208 ldrb r0, [r0, #0x1b] cmp r0, #0 beq _0808E248 - ldr r0, _0808E244 @ =gUnk_030010A0 + ldr r0, _0808E244 @ =gScreenTransition ldr r0, [r0] movs r1, #3 ands r0, r1 @@ -464,7 +464,7 @@ sub_0808E208: @ 0x0808E208 b _0808E24C .align 2, 0 _0808E240: .4byte gLinkState -_0808E244: .4byte gUnk_030010A0 +_0808E244: .4byte gScreenTransition _0808E248: bl DeleteThisEntity _0808E24C: diff --git a/asm/object49.s b/asm/object49.s index ec40a8a9..968070dd 100644 --- a/asm/object49.s +++ b/asm/object49.s @@ -173,7 +173,7 @@ sub_0808F498: @ 0x0808F498 bl sub_0806F3E4 cmp r0, #0 beq _0808F4C2 - ldr r0, _0808F4E4 @ =gUnk_030010A0 + ldr r0, _0808F4E4 @ =gScreenTransition ldr r0, [r0] movs r1, #0xf ands r0, r1 @@ -200,7 +200,7 @@ _0808F4D4: bl DeleteThisEntity b _0808F550 .align 2, 0 -_0808F4E4: .4byte gUnk_030010A0 +_0808F4E4: .4byte gScreenTransition _0808F4E8: .4byte gLinkState _0808F4EC: movs r0, #1 diff --git a/asm/object6A.s b/asm/object6A.s index 7d20335b..92e359c4 100644 --- a/asm/object6A.s +++ b/asm/object6A.s @@ -545,7 +545,7 @@ sub_08094E30: @ 0x08094E30 ldrb r0, [r4, #0xb] cmp r0, #0 bne _08094E88 - ldr r0, _08094E80 @ =gUnk_030010A0 + ldr r0, _08094E80 @ =gScreenTransition ldr r0, [r0] movs r1, #0x1f ands r0, r1 @@ -577,7 +577,7 @@ _08094E5A: strh r1, [r5, #0x32] b _08094F94 .align 2, 0 -_08094E80: .4byte gUnk_030010A0 +_08094E80: .4byte gScreenTransition _08094E84: .4byte gRoomControls _08094E88: cmp r0, #1 @@ -1654,7 +1654,7 @@ _080956E2: adds r0, r5, #0 bl GetNextFrame ldrb r0, [r5, #0xb] - ldr r1, _08095724 @ =gUnk_030010A0 + ldr r1, _08095724 @ =gScreenTransition ldr r1, [r1] adds r0, r0, r1 movs r1, #0xf @@ -1682,7 +1682,7 @@ _080956FE: bl DeleteThisEntity b _0809572C .align 2, 0 -_08095724: .4byte gUnk_030010A0 +_08095724: .4byte gScreenTransition _08095728: bl DeleteThisEntity _0809572C: diff --git a/asm/object89.s b/asm/object89.s index 92d513a3..0e67239c 100644 --- a/asm/object89.s +++ b/asm/object89.s @@ -44,7 +44,7 @@ _0809AB22: adds r1, r4, #0 bl CopyPosition str r4, [r5, #0x54] - ldr r2, _0809AB68 @ =gUnk_030010A0 + ldr r2, _0809AB68 @ =gScreenTransition adds r0, r2, #0 adds r0, #0x38 ldrb r1, [r0] @@ -67,7 +67,7 @@ _0809AB52: bl sub_080809D4 b _0809AB9C .align 2, 0 -_0809AB68: .4byte gUnk_030010A0 +_0809AB68: .4byte gScreenTransition _0809AB6C: .4byte gRoomControls _0809AB70: movs r0, #1 @@ -253,7 +253,7 @@ sub_0809ACA0: @ 0x0809ACA0 ldr r1, [r2, #0x54] movs r0, #6 strb r0, [r1, #0xd] - ldr r0, _0809ACC8 @ =gUnk_030010A0 + ldr r0, _0809ACC8 @ =gScreenTransition adds r0, #0x38 movs r1, #0xf1 strb r1, [r0] @@ -262,7 +262,7 @@ sub_0809ACA0: @ 0x0809ACA0 _0809ACC4: pop {pc} .align 2, 0 -_0809ACC8: .4byte gUnk_030010A0 +_0809ACC8: .4byte gScreenTransition thumb_func_start sub_0809ACCC sub_0809ACCC: @ 0x0809ACCC diff --git a/asm/object8E.s b/asm/object8E.s index 7457eca6..0ab1f65e 100644 --- a/asm/object8E.s +++ b/asm/object8E.s @@ -90,7 +90,7 @@ _0809B8D8: ldrb r0, [r4, #0xf] cmp r0, #0x1f bhi _0809B914 - ldr r5, _0809B90C @ =gUnk_030010A0 + ldr r5, _0809B90C @ =gScreenTransition ldr r0, [r5] movs r1, #0x1f ands r0, r1 @@ -113,7 +113,7 @@ _0809B8F0: bl sub_0809B97C b _0809B972 .align 2, 0 -_0809B90C: .4byte gUnk_030010A0 +_0809B90C: .4byte gScreenTransition _0809B910: .4byte 0x00000133 _0809B914: movs r0, #2 @@ -273,7 +273,7 @@ _0809BA40: ldrb r0, [r4, #0xf] cmp r0, #0 beq _0809BA7C - ldr r5, _0809BA74 @ =gUnk_030010A0 + ldr r5, _0809BA74 @ =gScreenTransition ldr r0, [r5] movs r1, #0x1f ands r0, r1 @@ -296,7 +296,7 @@ _0809BA58: bl sub_0809B97C b _0809BAC2 .align 2, 0 -_0809BA74: .4byte gUnk_030010A0 +_0809BA74: .4byte gScreenTransition _0809BA78: .4byte 0x00000133 _0809BA7C: movs r0, #2 @@ -436,7 +436,7 @@ _0809BB88: ldrh r0, [r5] cmp r0, #0xdf bhi _0809BBC4 - ldr r4, _0809BBBC @ =gUnk_030010A0 + ldr r4, _0809BBBC @ =gScreenTransition ldr r0, [r4] movs r1, #0x1f ands r0, r1 @@ -456,7 +456,7 @@ _0809BBA6: b _0809BC68 .align 2, 0 _0809BBB8: .4byte gScreen -_0809BBBC: .4byte gUnk_030010A0 +_0809BBBC: .4byte gScreenTransition _0809BBC0: .4byte 0x00000133 _0809BBC4: movs r0, #2 @@ -631,7 +631,7 @@ _0809BD20: ldrb r0, [r4, #0xd] cmp r0, #0 beq _0809BD64 - ldr r6, _0809BD58 @ =gUnk_030010A0 + ldr r6, _0809BD58 @ =gScreenTransition ldr r0, [r6] movs r1, #0x1f ands r0, r1 @@ -656,7 +656,7 @@ _0809BD38: strh r0, [r1] b _0809BDAE .align 2, 0 -_0809BD58: .4byte gUnk_030010A0 +_0809BD58: .4byte gScreenTransition _0809BD5C: .4byte 0x00000133 _0809BD60: .4byte gScreen _0809BD64: @@ -753,7 +753,7 @@ _0809BE0C: lsls r0, r0, #0x18 cmp r0, #0 beq _0809BE34 - ldr r0, _0809BE2C @ =gUnk_030010A0 + ldr r0, _0809BE2C @ =gScreenTransition ldr r0, [r0] movs r1, #0x1f ands r0, r1 @@ -763,7 +763,7 @@ _0809BE0C: bl PlaySFX b _0809BE70 .align 2, 0 -_0809BE2C: .4byte gUnk_030010A0 +_0809BE2C: .4byte gScreenTransition _0809BE30: .4byte 0x00000133 _0809BE34: movs r0, #2 diff --git a/asm/object91.s b/asm/object91.s index bbd0f8a0..e2e8dac9 100644 --- a/asm/object91.s +++ b/asm/object91.s @@ -463,7 +463,7 @@ _0809C74A: ldrb r0, [r5, #0xf] cmp r0, #0 beq _0809C7BC - ldr r0, _0809C7AC @ =gUnk_030010A0 + ldr r0, _0809C7AC @ =gScreenTransition ldr r0, [r0] movs r1, #7 ands r0, r1 @@ -502,7 +502,7 @@ _0809C7A0: b _0809C7BC .align 2, 0 _0809C7A8: .4byte gUnk_08123DF8 -_0809C7AC: .4byte gUnk_030010A0 +_0809C7AC: .4byte gScreenTransition _0809C7B0: .4byte 0xFFFFD000 _0809C7B4: ldr r0, [r5, #0x50] @@ -776,7 +776,7 @@ sub_0809C988: @ 0x0809C988 strb r0, [r2, #0xb] b _0809C9DC _0809C9AC: - ldr r0, _0809C9C8 @ =gUnk_030010A0 + ldr r0, _0809C9C8 @ =gScreenTransition ldr r0, [r0] movs r1, #8 ands r0, r1 @@ -791,7 +791,7 @@ _0809C9AC: subs r0, #4 b _0809C9DA .align 2, 0 -_0809C9C8: .4byte gUnk_030010A0 +_0809C9C8: .4byte gScreenTransition _0809C9CC: adds r0, r2, #0 adds r0, #0x84 @@ -810,7 +810,7 @@ _0809C9DC: sub_0809C9E0: @ 0x0809C9E0 push {r4, r5, r6, r7, lr} adds r4, r0, #0 - ldr r0, _0809CA04 @ =gUnk_030010A0 + ldr r0, _0809CA04 @ =gScreenTransition ldr r1, [r0] movs r2, #2 ands r1, r2 @@ -826,7 +826,7 @@ sub_0809C9E0: @ 0x0809C9E0 subs r0, #8 b _0809CA16 .align 2, 0 -_0809CA04: .4byte gUnk_030010A0 +_0809CA04: .4byte gScreenTransition _0809CA08: adds r2, r4, #0 adds r2, #0x84 @@ -971,7 +971,7 @@ sub_0809CAC8: @ 0x0809CAC8 movs r0, #7 strb r0, [r5, #0xd] _0809CB26: - ldr r0, _0809CB44 @ =gUnk_030010A0 + ldr r0, _0809CB44 @ =gScreenTransition ldr r0, [r0] movs r1, #0xf ands r0, r1 @@ -984,7 +984,7 @@ _0809CB38: .align 2, 0 _0809CB3C: .4byte gRoomControls _0809CB40: .4byte gLinkEntity -_0809CB44: .4byte gUnk_030010A0 +_0809CB44: .4byte gScreenTransition _0809CB48: .4byte 0x00000163 thumb_func_start sub_0809CB4C diff --git a/asm/objectA8.s b/asm/objectA8.s index 01fbc139..2cb3b745 100644 --- a/asm/objectA8.s +++ b/asm/objectA8.s @@ -283,7 +283,7 @@ _0809FCAC: ldrb r0, [r4, #0xa] cmp r0, #0 bne _0809FCF8 - ldr r0, _0809FCFC @ =gUnk_030010A0 + ldr r0, _0809FCFC @ =gScreenTransition ldr r0, [r0] movs r1, #1 ands r0, r1 @@ -314,7 +314,7 @@ _0809FCE0: _0809FCF8: pop {r4, r5, pc} .align 2, 0 -_0809FCFC: .4byte gUnk_030010A0 +_0809FCFC: .4byte gScreenTransition thumb_func_start sub_0809FD00 sub_0809FD00: @ 0x0809FD00 diff --git a/asm/objectBA.s b/asm/objectBA.s index e85896f3..5be0b70d 100644 --- a/asm/objectBA.s +++ b/asm/objectBA.s @@ -133,7 +133,7 @@ _080A171E: strh r1, [r0] adds r0, #2 strh r1, [r0] - ldr r0, _080A1838 @ =gUnk_030010A0 + ldr r0, _080A1838 @ =gScreenTransition adds r0, #0x39 mov r2, sb strb r2, [r0] @@ -173,7 +173,7 @@ _080A1828: .4byte gUnk_03003DBC _080A182C: .4byte gRoomControls _080A1830: .4byte gScreen _080A1834: .4byte 0x00001E07 -_080A1838: .4byte gUnk_030010A0 +_080A1838: .4byte gScreenTransition _080A183C: .4byte gLinkState _080A1840: .4byte 0x80100000 _080A1844: .4byte gArea @@ -598,7 +598,7 @@ sub_080A1B4C: @ 0x080A1B4C _080A1B80: movs r6, #0 strh r7, [r5] - ldr r0, _080A1BF0 @ =gUnk_030010A0 + ldr r0, _080A1BF0 @ =gScreenTransition adds r0, #0x39 strb r6, [r0] bl sub_08079F8C @@ -650,7 +650,7 @@ _080A1BD0: strh r0, [r2, #0x18] pop {r4, r5, r6, r7, pc} .align 2, 0 -_080A1BF0: .4byte gUnk_030010A0 +_080A1BF0: .4byte gScreenTransition _080A1BF4: .4byte gLinkEntity _080A1BF8: .4byte gLinkState _080A1BFC: .4byte 0xFFFDFFFF diff --git a/asm/octorokBoss.s b/asm/octorokBoss.s index b62b5d36..1dd73bfd 100644 --- a/asm/octorokBoss.s +++ b/asm/octorokBoss.s @@ -333,7 +333,7 @@ _0803540E: cmp r4, #0 bne _0803540E _08035438: - ldr r1, _080354AC @ =gUnk_030010A0 + ldr r1, _080354AC @ =gScreenTransition ldr r0, [r1] movs r1, #2 ands r0, r1 @@ -387,7 +387,7 @@ _08035456: bl InitAnimationForceUpdate b _080354DC .align 2, 0 -_080354AC: .4byte gUnk_030010A0 +_080354AC: .4byte gScreenTransition _080354B0: adds r1, r5, #0 adds r1, #0x3f @@ -635,7 +635,7 @@ _08035616: ldrb r0, [r1] cmp r0, #0 bne _080356EC - ldr r0, _080356E8 @ =gUnk_030010A0 + ldr r0, _080356E8 @ =gScreenTransition ldr r0, [r0] movs r1, #0xf ands r0, r1 @@ -677,7 +677,7 @@ _080356B2: b _080356F0 .align 2, 0 _080356E4: .4byte gSineTable -_080356E8: .4byte gUnk_030010A0 +_080356E8: .4byte gScreenTransition _080356EC: subs r0, #1 strb r0, [r1] @@ -1749,7 +1749,7 @@ _08035F16: beq _08035F48 subs r0, #1 strb r0, [r1, #6] - ldr r0, _08035F74 @ =gUnk_030010A0 + ldr r0, _08035F74 @ =gScreenTransition ldr r0, [r0] movs r1, #3 ands r0, r1 @@ -1781,7 +1781,7 @@ _08035F6C: mov r8, r3 pop {r4, r5, r6, r7, pc} .align 2, 0 -_08035F74: .4byte gUnk_030010A0 +_08035F74: .4byte gScreenTransition _08035F78: .4byte gUnk_080CF0C4 thumb_func_start sub_08035F7C @@ -2273,7 +2273,7 @@ _08036300: sub_08036304: @ 0x08036304 push {lr} mov ip, r0 - ldr r0, _08036328 @ =gUnk_030010A0 + ldr r0, _08036328 @ =gScreenTransition ldr r0, [r0] movs r1, #2 ands r0, r1 @@ -2289,7 +2289,7 @@ sub_08036304: @ 0x08036304 strh r0, [r1] b _08036350 .align 2, 0 -_08036328: .4byte gUnk_030010A0 +_08036328: .4byte gScreenTransition _0803632C: mov r2, ip adds r2, #0x84 @@ -2483,7 +2483,7 @@ _080364A4: ands r1, r0 str r1, [r2, #0x30] _080364AA: - ldr r0, _080364C8 @ =gUnk_030010A0 + ldr r0, _080364C8 @ =gScreenTransition ldr r0, [r0] movs r1, #3 ands r0, r1 @@ -2497,7 +2497,7 @@ _080364AA: b _0803657A .align 2, 0 _080364C4: .4byte 0xFFFFF7FF -_080364C8: .4byte gUnk_030010A0 +_080364C8: .4byte gScreenTransition _080364CC: adds r0, r4, #0 adds r0, #0x7c @@ -2726,7 +2726,7 @@ _08036678: movs r0, #1 rsbs r0, r0, #0 bl sub_0805308C - ldr r0, _080366B0 @ =gUnk_030010A0 + ldr r0, _080366B0 @ =gScreenTransition ldr r1, [r0] movs r0, #3 ands r0, r1 @@ -2748,7 +2748,7 @@ _080366A0: _080366AC: pop {r4, r5, pc} .align 2, 0 -_080366B0: .4byte gUnk_030010A0 +_080366B0: .4byte gScreenTransition thumb_func_start sub_080366B4 sub_080366B4: @ 0x080366B4 @@ -2770,7 +2770,7 @@ sub_080366B4: @ 0x080366B4 _080366D4: subs r0, #1 strb r0, [r2] - ldr r0, _08036708 @ =gUnk_030010A0 + ldr r0, _08036708 @ =gScreenTransition ldr r0, [r0] movs r1, #3 ands r0, r1 @@ -2795,7 +2795,7 @@ _080366D4: _08036706: pop {r4, pc} .align 2, 0 -_08036708: .4byte gUnk_030010A0 +_08036708: .4byte gScreenTransition thumb_func_start sub_0803670C sub_0803670C: @ 0x0803670C @@ -2816,7 +2816,7 @@ sub_0803670C: @ 0x0803670C beq _08036746 subs r0, #1 strb r0, [r1, #6] - ldr r0, _08036760 @ =gUnk_030010A0 + ldr r0, _08036760 @ =gScreenTransition ldr r0, [r0] movs r1, #7 ands r0, r1 @@ -2839,7 +2839,7 @@ _08036746: pop {r4, pc} .align 2, 0 _0803675C: .4byte gUnk_080CF100 -_08036760: .4byte gUnk_030010A0 +_08036760: .4byte gScreenTransition thumb_func_start sub_08036764 sub_08036764: @ 0x08036764 @@ -2963,7 +2963,7 @@ _0803683A: movs r0, #0 strb r0, [r1] _08036852: - ldr r0, _08036868 @ =gUnk_030010A0 + ldr r0, _08036868 @ =gScreenTransition ldr r0, [r0] movs r1, #0x1f ands r0, r1 @@ -2974,7 +2974,7 @@ _08036852: _08036864: pop {r4, r5, pc} .align 2, 0 -_08036868: .4byte gUnk_030010A0 +_08036868: .4byte gScreenTransition _0803686C: .4byte 0x00000159 thumb_func_start sub_08036870 @@ -3953,7 +3953,7 @@ _08036FA8: sub_08036FAC: @ 0x08036FAC push {lr} adds r2, r0, #0 - ldr r0, _08036FD0 @ =gUnk_030010A0 + ldr r0, _08036FD0 @ =gScreenTransition ldr r0, [r0] ands r0, r1 cmp r0, #0 @@ -3969,7 +3969,7 @@ sub_08036FAC: @ 0x08036FAC bl PlaySFX b _08036FDE .align 2, 0 -_08036FD0: .4byte gUnk_030010A0 +_08036FD0: .4byte gScreenTransition _08036FD4: .4byte 0x00000163 _08036FD8: ldr r0, _08036FE0 @ =0x000001B1 diff --git a/asm/peahat.s b/asm/peahat.s index cb26fd33..35197070 100644 --- a/asm/peahat.s +++ b/asm/peahat.s @@ -469,7 +469,7 @@ _080202B4: adds r0, #4 strh r0, [r4, #0x24] _080202C8: - ldr r0, _080202F0 @ =gUnk_030010A0 + ldr r0, _080202F0 @ =gScreenTransition ldr r0, [r0] movs r1, #3 ands r0, r1 @@ -487,7 +487,7 @@ _080202E6: bl sub_080AEFE0 b _080202FE .align 2, 0 -_080202F0: .4byte gUnk_030010A0 +_080202F0: .4byte gScreenTransition _080202F4: .4byte gUnk_020000B0 _080202F8: adds r0, r4, #0 diff --git a/asm/picolyteBottles.s b/asm/picolyteBottles.s index ba37bb92..27471fa9 100644 --- a/asm/picolyteBottles.s +++ b/asm/picolyteBottles.s @@ -65,7 +65,7 @@ sub_0806DF00: @ 0x0806DF00 adds r0, #2 movs r1, #0xa strh r1, [r0] - ldr r0, _0806DF58 @ =gUnk_030010A0 + ldr r0, _0806DF58 @ =gScreenTransition strh r1, [r0, #6] adds r0, r4, #0 bl sub_0806E014 @@ -73,7 +73,7 @@ sub_0806DF00: @ 0x0806DF00 bl sub_0807DD50 b _0806DF6E .align 2, 0 -_0806DF58: .4byte gUnk_030010A0 +_0806DF58: .4byte gScreenTransition _0806DF5C: ldr r0, _0806DF70 @ =gUnk_080FD150 str r0, [r4, #0x48] @@ -389,7 +389,7 @@ _0806E1AC: ldr r0, _0806E1D4 @ =0x0000421C bl TextboxNoOverlapFollow _0806E1C0: - ldr r1, _0806E1D8 @ =gUnk_030010A0 + ldr r1, _0806E1D8 @ =gScreenTransition ldrh r0, [r4] strh r0, [r1, #6] ldr r2, _0806E1DC @ =gUnk_02033280 @@ -400,7 +400,7 @@ _0806E1C0: pop {r4, r5, pc} .align 2, 0 _0806E1D4: .4byte 0x0000421C -_0806E1D8: .4byte gUnk_030010A0 +_0806E1D8: .4byte gScreenTransition _0806E1DC: .4byte gUnk_02033280 thumb_func_start sub_0806E1E0 @@ -428,7 +428,7 @@ _0806E208: .4byte gUnk_0813AD4C thumb_func_start sub_0806E20C sub_0806E20C: @ 0x0806E20C push {r4, lr} - ldr r4, _0806E224 @ =gUnk_030010A0 + ldr r4, _0806E224 @ =gScreenTransition ldrh r0, [r4, #6] cmp r0, #0 beq _0806E230 @@ -439,7 +439,7 @@ sub_0806E20C: @ 0x0806E20C str r0, [r1, #0x10] b _0806E236 .align 2, 0 -_0806E224: .4byte gUnk_030010A0 +_0806E224: .4byte gScreenTransition _0806E228: .4byte 0x0000421F _0806E22C: .4byte gTextBox _0806E230: @@ -453,7 +453,7 @@ _0806E238: .4byte 0x00004220 thumb_func_start sub_0806E23C sub_0806E23C: @ 0x0806E23C push {lr} - ldr r1, _0806E24C @ =gUnk_030010A0 + ldr r1, _0806E24C @ =gScreenTransition ldrh r0, [r1, #6] cmp r0, #0 beq _0806E24A @@ -461,7 +461,7 @@ sub_0806E23C: @ 0x0806E23C _0806E24A: pop {pc} .align 2, 0 -_0806E24C: .4byte gUnk_030010A0 +_0806E24C: .4byte gScreenTransition thumb_func_start sub_0806E250 sub_0806E250: @ 0x0806E250 diff --git a/asm/rem.s b/asm/rem.s index c52753d1..8e31e8c7 100644 --- a/asm/rem.s +++ b/asm/rem.s @@ -421,7 +421,7 @@ _0806A6E4: strb r1, [r0] b _0806A75A _0806A724: - ldr r0, _0806A780 @ =gUnk_030010A0 + ldr r0, _0806A780 @ =gScreenTransition ldr r0, [r0] movs r1, #3 ands r0, r1 @@ -469,9 +469,9 @@ _0806A75A: strb r1, [r0] b _0806A82A .align 2, 0 -_0806A780: .4byte gUnk_030010A0 +_0806A780: .4byte gScreenTransition _0806A784: - ldr r0, _0806A7C4 @ =gUnk_030010A0 + ldr r0, _0806A7C4 @ =gScreenTransition ldr r0, [r0] lsrs r0, r0, #4 movs r1, #3 @@ -506,7 +506,7 @@ _0806A7BA: strb r0, [r3] b _0806A82A .align 2, 0 -_0806A7C4: .4byte gUnk_030010A0 +_0806A7C4: .4byte gScreenTransition _0806A7C8: adds r2, r4, #0 adds r2, #0x29 @@ -835,7 +835,7 @@ sub_0806AA18: @ 0x0806AA18 .align 2, 0 _0806AA28: .4byte 0x00004408 _0806AA2C: - ldr r0, _0806AA48 @ =gUnk_030010A0 + ldr r0, _0806AA48 @ =gScreenTransition ldr r0, [r0] movs r1, #1 ands r0, r1 @@ -849,7 +849,7 @@ _0806AA3C: bl TextboxNoOverlap pop {pc} .align 2, 0 -_0806AA48: .4byte gUnk_030010A0 +_0806AA48: .4byte gScreenTransition _0806AA4C: .4byte 0x0000440D thumb_func_start sub_0806AA50 diff --git a/asm/sturgeon.s b/asm/sturgeon.s index 34a9e992..e6413097 100644 --- a/asm/sturgeon.s +++ b/asm/sturgeon.s @@ -275,7 +275,7 @@ sub_08064C9C: @ 0x08064C9C ldrb r0, [r2, #0xe] cmp r0, #0 beq _08064CB8 - ldr r0, _08064CBC @ =gUnk_030010A0 + ldr r0, _08064CBC @ =gScreenTransition ldr r0, [r0] movs r1, #3 ands r0, r1 @@ -286,7 +286,7 @@ sub_08064C9C: @ 0x08064C9C _08064CB8: pop {pc} .align 2, 0 -_08064CBC: .4byte gUnk_030010A0 +_08064CBC: .4byte gScreenTransition thumb_func_start sub_08064CC0 sub_08064CC0: @ 0x08064CC0 diff --git a/asm/updateBackgroundRegisters.s b/asm/updateBackgroundRegisters.s index 4825e56e..a529894e 100644 --- a/asm/updateBackgroundRegisters.s +++ b/asm/updateBackgroundRegisters.s @@ -5,8 +5,8 @@ .text - thumb_func_start sub_08016CF4 -sub_08016CF4: @ 0x08016CF4 + thumb_func_start UpdateBackgroundRegisters +UpdateBackgroundRegisters: @ 0x08016CF4 ldr r3, _08016DF0 @ =gScreen ldrh r1, [r3] ldrh r0, [r3, #6] diff --git a/asm/vaati.s b/asm/vaati.s index 3a8f92d7..172ccc8b 100644 --- a/asm/vaati.s +++ b/asm/vaati.s @@ -78,7 +78,7 @@ sub_08066ACC: @ 0x08066ACC asrs r0, r0, #0x18 cmp r0, #0 beq _08066AF6 - ldr r0, _08066B1C @ =gUnk_030010A0 + ldr r0, _08066B1C @ =gScreenTransition ldr r0, [r0] movs r1, #3 ands r0, r1 @@ -105,7 +105,7 @@ _08066AF6: b _08066B66 .align 2, 0 _08066B18: .4byte sub_08066B74 -_08066B1C: .4byte gUnk_030010A0 +_08066B1C: .4byte gScreenTransition _08066B20: cmp r2, #3 beq _08066B40 diff --git a/asm/vaatiArm.s b/asm/vaatiArm.s index eb8ad3e5..0ebd0163 100644 --- a/asm/vaatiArm.s +++ b/asm/vaatiArm.s @@ -75,7 +75,7 @@ sub_080425B4: @ 0x080425B4 strb r1, [r0] adds r0, #1 strb r1, [r0] - ldr r5, _08042614 @ =gUnk_030010A0 + ldr r5, _08042614 @ =gScreenTransition adds r0, r5, #0 adds r0, #0x38 ldrb r0, [r0] @@ -109,7 +109,7 @@ sub_080425B4: @ 0x080425B4 strb r0, [r4, #0xd] b _0804264C .align 2, 0 -_08042614: .4byte gUnk_030010A0 +_08042614: .4byte gScreenTransition _08042618: movs r0, #8 strb r0, [r4, #0xc] @@ -2479,7 +2479,7 @@ sub_08043770: @ 0x08043770 bne _080437D8 ldr r0, [r2, #0x64] ldr r3, [r0, #0x14] - ldr r0, _080437AC @ =gUnk_030010A0 + ldr r0, _080437AC @ =gScreenTransition adds r5, r0, #0 adds r5, #0x39 ldrb r1, [r5] @@ -2499,7 +2499,7 @@ _0804379A: movs r0, #0xfe b _080437B8 .align 2, 0 -_080437AC: .4byte gUnk_030010A0 +_080437AC: .4byte gScreenTransition _080437B0: ldr r0, [r3, #0x64] str r4, [r0, #0x18] @@ -3173,7 +3173,7 @@ sub_08043C98: @ 0x08043C98 _08043CB4: adds r0, r3, #0 bl sub_08043D08 - ldr r0, _08043CCC @ =gUnk_030010A0 + ldr r0, _08043CCC @ =gScreenTransition adds r0, #0x38 ldrb r2, [r0] movs r1, #2 @@ -3182,7 +3182,7 @@ _08043CB4: movs r0, #1 b _08043CD2 .align 2, 0 -_08043CCC: .4byte gUnk_030010A0 +_08043CCC: .4byte gScreenTransition _08043CD0: movs r0, #0 _08043CD2: @@ -3332,7 +3332,7 @@ sub_08043DB0: @ 0x08043DB0 beq _08043EAC ldr r0, _08043E50 @ =gUnk_080D13EC bl DoExitTransition - ldr r4, _08043E54 @ =gUnk_030010A0 + ldr r4, _08043E54 @ =gScreenTransition adds r0, r4, #0 adds r0, #0x39 ldrb r1, [r0] @@ -3382,7 +3382,7 @@ _08043DFE: _08043E48: .4byte gLinkState _08043E4C: .4byte gRoomControls _08043E50: .4byte gUnk_080D13EC -_08043E54: .4byte gUnk_030010A0 +_08043E54: .4byte gScreenTransition _08043E58: movs r1, #0x88 lsls r1, r1, #1 @@ -3401,7 +3401,7 @@ _08043E70: ldr r3, [r0, #0x18] cmp r3, #0 beq _08043E90 - ldr r1, _08043E8C @ =gUnk_030010A0 + ldr r1, _08043E8C @ =gScreenTransition ldrh r2, [r3, #0x2e] adds r0, r1, #0 adds r0, #0x48 @@ -3411,9 +3411,9 @@ _08043E70: strh r0, [r1] b _08043EAC .align 2, 0 -_08043E8C: .4byte gUnk_030010A0 +_08043E8C: .4byte gScreenTransition _08043E90: - ldr r2, _08043EB0 @ =gUnk_030010A0 + ldr r2, _08043EB0 @ =gScreenTransition ldr r3, _08043EB4 @ =gRoomControls movs r1, #0x88 lsls r1, r1, #1 @@ -3430,7 +3430,7 @@ _08043E90: _08043EAC: pop {r4, r5, r6, pc} .align 2, 0 -_08043EB0: .4byte gUnk_030010A0 +_08043EB0: .4byte gScreenTransition _08043EB4: .4byte gRoomControls thumb_func_start sub_08043EB8 @@ -3521,14 +3521,14 @@ sub_08043EB8: @ 0x08043EB8 ldrb r0, [r7, #0xb] cmp r0, #0 bne _08043F74 - ldr r1, _08043F70 @ =gUnk_030010A0 + ldr r1, _08043F70 @ =gScreenTransition adds r0, r1, #0 adds r0, #0x44 b _08043F7A .align 2, 0 -_08043F70: .4byte gUnk_030010A0 +_08043F70: .4byte gScreenTransition _08043F74: - ldr r1, _08043F8C @ =gUnk_030010A0 + ldr r1, _08043F8C @ =gScreenTransition adds r0, r1, #0 adds r0, #0x48 _08043F7A: @@ -3541,7 +3541,7 @@ _08043F7A: adds r0, #0x46 b _08043F94 .align 2, 0 -_08043F8C: .4byte gUnk_030010A0 +_08043F8C: .4byte gScreenTransition _08043F90: adds r0, r1, #0 adds r0, #0x4a @@ -3673,7 +3673,7 @@ sub_08044078: @ 0x08044078 ldrb r0, [r4, #0xa] cmp r0, #3 bne _080440AC - ldr r3, _080440B8 @ =gUnk_030010A0 + ldr r3, _080440B8 @ =gScreenTransition adds r0, r3, #0 adds r0, #0x38 ldrb r1, [r0] @@ -3695,7 +3695,7 @@ _080440AC: bl InitializeAnimation b _080440C4 .align 2, 0 -_080440B8: .4byte gUnk_030010A0 +_080440B8: .4byte gScreenTransition _080440BC: adds r0, r4, #0 movs r1, #0x11 @@ -3714,7 +3714,7 @@ sub_080440CC: @ 0x080440CC bne _08044110 movs r0, #1 strb r0, [r4, #0xc] - ldr r2, _08044104 @ =gUnk_030010A0 + ldr r2, _08044104 @ =gScreenTransition adds r1, r2, #0 adds r1, #0x38 ldrb r1, [r1] @@ -3734,7 +3734,7 @@ sub_080440CC: @ 0x080440CC bl InitializeAnimation b _08044110 .align 2, 0 -_08044104: .4byte gUnk_030010A0 +_08044104: .4byte gScreenTransition _08044108: adds r0, r4, #0 movs r1, #0x11 diff --git a/asm/vaatiEyesMacro.s b/asm/vaatiEyesMacro.s index ba21e690..111f7431 100644 --- a/asm/vaatiEyesMacro.s +++ b/asm/vaatiEyesMacro.s @@ -60,7 +60,7 @@ sub_0802ECC0: @ 0x0802ECC0 adds r0, #0x45 ldrb r1, [r0] adds r5, r0, #0 - ldr r3, _0802ED00 @ =gUnk_030010A0 + ldr r3, _0802ED00 @ =gScreenTransition cmp r1, #0 bne _0802ECEE adds r2, r3, #0 @@ -84,7 +84,7 @@ _0802ECEE: adds r0, #0x3a b _0802ED0E .align 2, 0 -_0802ED00: .4byte gUnk_030010A0 +_0802ED00: .4byte gScreenTransition _0802ED04: .4byte gRoomControls _0802ED08: ldrb r1, [r5] @@ -187,15 +187,15 @@ sub_0802ED8C: @ 0x0802ED8C ldrb r0, [r0, #5] cmp r0, #0 bne _0802EDDC - ldr r0, _0802EDD8 @ =gUnk_030010A0 + ldr r0, _0802EDD8 @ =gScreenTransition adds r0, #0x3a b _0802EDE0 .align 2, 0 _0802EDD0: .4byte gUnk_03003DBC _0802EDD4: .4byte gRoomControls -_0802EDD8: .4byte gUnk_030010A0 +_0802EDD8: .4byte gScreenTransition _0802EDDC: - ldr r0, _0802EE0C @ =gUnk_030010A0 + ldr r0, _0802EE0C @ =gScreenTransition adds r0, #0x3b _0802EDE0: ldrb r0, [r0] @@ -218,7 +218,7 @@ _0802EDE0: _0802EE0A: pop {r4, pc} .align 2, 0 -_0802EE0C: .4byte gUnk_030010A0 +_0802EE0C: .4byte gScreenTransition thumb_func_start sub_0802EE10 sub_0802EE10: @ 0x0802EE10 diff --git a/asm/vaatiProjectile.s b/asm/vaatiProjectile.s index 3a23e2f8..b1e67640 100644 --- a/asm/vaatiProjectile.s +++ b/asm/vaatiProjectile.s @@ -557,7 +557,7 @@ _0803E49E: sub_0803E4A0: @ 0x0803E4A0 push {lr} adds r1, r0, #0 - ldr r0, _0803E4B8 @ =gUnk_030010A0 + ldr r0, _0803E4B8 @ =gScreenTransition adds r0, #0x39 ldrb r0, [r0] cmp r0, #0 @@ -568,7 +568,7 @@ sub_0803E4A0: @ 0x0803E4A0 movs r0, #0 b _0803E4D6 .align 2, 0 -_0803E4B8: .4byte gUnk_030010A0 +_0803E4B8: .4byte gScreenTransition _0803E4BC: adds r0, r1, #0 adds r0, #0x45 diff --git a/asm/vaatiWrath.s b/asm/vaatiWrath.s index f96d5d64..df92529a 100644 --- a/asm/vaatiWrath.s +++ b/asm/vaatiWrath.s @@ -82,7 +82,7 @@ _080413BC: .4byte gUnk_080D0E2C sub_080413C0: @ 0x080413C0 push {r4, r5, r6, r7, lr} adds r4, r0, #0 - ldr r7, _080413F8 @ =gUnk_030010A0 + ldr r7, _080413F8 @ =gScreenTransition adds r0, r7, #0 adds r0, #0x38 ldrb r0, [r0] @@ -107,14 +107,14 @@ sub_080413C0: @ 0x080413C0 strb r6, [r4, #0xd] b _08041404 .align 2, 0 -_080413F8: .4byte gUnk_030010A0 +_080413F8: .4byte gScreenTransition _080413FC: movs r0, #2 strb r0, [r4, #0xc] movs r0, #0x3c strb r0, [r4, #0xe] _08041404: - ldr r0, _0804141C @ =gUnk_030010A0 + ldr r0, _0804141C @ =gScreenTransition adds r1, r0, #0 adds r1, #0x40 ldrh r1, [r1] @@ -126,7 +126,7 @@ _08041404: bl sub_08042004 b _0804144A .align 2, 0 -_0804141C: .4byte gUnk_030010A0 +_0804141C: .4byte gScreenTransition _08041420: adds r0, r4, #0 bl sub_08041ED4 @@ -315,7 +315,7 @@ _08041592: strb r0, [r4, #0xd] movs r0, #0x1e strb r0, [r4, #0xe] - ldr r1, _080415BC @ =gUnk_030010A0 + ldr r1, _080415BC @ =gScreenTransition adds r1, #0x38 ldrb r2, [r1] movs r0, #1 @@ -330,7 +330,7 @@ _08041592: strb r1, [r0] b _080415E6 .align 2, 0 -_080415BC: .4byte gUnk_030010A0 +_080415BC: .4byte gScreenTransition _080415C0: .4byte gRoomControls _080415C4: .4byte gLinkEntity _080415C8: .4byte gLinkState @@ -540,7 +540,7 @@ _08041748: adds r2, r1, #0 cmp r2, #2 bne _080417AA - ldr r0, _0804179C @ =gUnk_030010A0 + ldr r0, _0804179C @ =gScreenTransition adds r0, #0x39 ldrb r1, [r0] movs r0, #3 @@ -572,7 +572,7 @@ _08041748: bl InitializeAnimation b _080417AA .align 2, 0 -_0804179C: .4byte gUnk_030010A0 +_0804179C: .4byte gScreenTransition _080417A0: .4byte gRoomControls _080417A4: strb r2, [r5, #0xc] @@ -1580,7 +1580,7 @@ _08041F88: .4byte gUnk_03003DBC _08041F8C: ldr r7, [r5, #0x64] movs r4, #0 - ldr r0, _08041FC0 @ =gUnk_030010A0 + ldr r0, _08041FC0 @ =gScreenTransition adds r0, #0x39 ldrb r0, [r0] asrs r0, r6 @@ -1603,7 +1603,7 @@ _08041FB6: str r4, [r7, #0x14] b _08041FC6 .align 2, 0 -_08041FC0: .4byte gUnk_030010A0 +_08041FC0: .4byte gScreenTransition _08041FC4: str r4, [r7, #0x18] _08041FC6: @@ -1895,7 +1895,7 @@ _080421C0: ands r0, r5 cmp r0, #0 beq _080421F4 - ldr r0, _080421F0 @ =gUnk_030010A0 + ldr r0, _080421F0 @ =gScreenTransition adds r0, #0x39 ldrb r1, [r0] movs r0, #0xc @@ -1907,7 +1907,7 @@ _080421C0: strb r5, [r6] b _08042212 .align 2, 0 -_080421F0: .4byte gUnk_030010A0 +_080421F0: .4byte gScreenTransition _080421F4: adds r1, r4, #0 adds r1, #0x7e @@ -2133,7 +2133,7 @@ sub_0804235C: @ 0x0804235C thumb_func_start sub_080423A4 sub_080423A4: @ 0x080423A4 push {r4, lr} - ldr r0, _080423CC @ =gUnk_030010A0 + ldr r0, _080423CC @ =gScreenTransition adds r4, r0, #0 adds r4, #0x38 ldrb r1, [r4] @@ -2152,7 +2152,7 @@ sub_080423A4: @ 0x080423A4 str r0, [r1] b _0804241C .align 2, 0 -_080423CC: .4byte gUnk_030010A0 +_080423CC: .4byte gScreenTransition _080423D0: .4byte gUnk_02002A40 _080423D4: ldr r2, _08042420 @ =gLinkState diff --git a/asm/warpPoint.s b/asm/warpPoint.s index 4ab7b1ed..1c537321 100644 --- a/asm/warpPoint.s +++ b/asm/warpPoint.s @@ -317,7 +317,7 @@ sub_0808B684: @ 0x0808B684 lsrs r2, r0, #0x18 cmp r2, #0 bne _0808B6E8 - ldr r3, _0808B6E4 @ =gUnk_030010A0 + ldr r3, _0808B6E4 @ =gScreenTransition movs r0, #1 strb r0, [r3, #8] strb r2, [r3, #9] @@ -355,7 +355,7 @@ sub_0808B684: @ 0x0808B684 strb r0, [r3, #9] b _0808B736 .align 2, 0 -_0808B6E4: .4byte gUnk_030010A0 +_0808B6E4: .4byte gScreenTransition _0808B6E8: movs r0, #0x60 ands r0, r1 diff --git a/asm/windTribeTeleporter.s b/asm/windTribeTeleporter.s index ddae0a9f..44a400f8 100644 --- a/asm/windTribeTeleporter.s +++ b/asm/windTribeTeleporter.s @@ -162,12 +162,12 @@ _080A1038: bl PlaySFX b _080A10D4 _080A1056: - ldr r0, _080A1060 @ =gUnk_030010A0 + ldr r0, _080A1060 @ =gScreenTransition ldr r0, [r0] movs r1, #7 b _080A10C2 .align 2, 0 -_080A1060: .4byte gUnk_030010A0 +_080A1060: .4byte gScreenTransition _080A1064: ldrb r0, [r4, #0xe] subs r0, #1 @@ -183,11 +183,11 @@ _080A1070: strb r0, [r4, #0xe] b _080A10D4 _080A107C: - ldr r0, _080A1084 @ =gUnk_030010A0 + ldr r0, _080A1084 @ =gScreenTransition ldr r0, [r0] b _080A10C2 .align 2, 0 -_080A1084: .4byte gUnk_030010A0 +_080A1084: .4byte gScreenTransition _080A1088: ldrb r0, [r4, #0xe] subs r0, #1 @@ -214,7 +214,7 @@ _080A10A2: _080A10B4: .4byte gRoomControls _080A10B8: .4byte gUnk_0813ADEC _080A10BC: - ldr r0, _080A10D8 @ =gUnk_030010A0 + ldr r0, _080A10D8 @ =gScreenTransition ldr r0, [r0] movs r1, #1 _080A10C2: @@ -230,7 +230,7 @@ _080A10C2: _080A10D4: pop {r4, pc} .align 2, 0 -_080A10D8: .4byte gUnk_030010A0 +_080A10D8: .4byte gScreenTransition _080A10DC: .4byte gLinkEntity thumb_func_start sub_080A10E0 @@ -266,11 +266,11 @@ _080A110E: lsls r0, r0, #0x18 cmp r0, #0 beq _080A1130 - ldr r0, _080A1120 @ =gUnk_030010A0 + ldr r0, _080A1120 @ =gScreenTransition ldr r0, [r0] b _080A1162 .align 2, 0 -_080A1120: .4byte gUnk_030010A0 +_080A1120: .4byte gScreenTransition _080A1124: ldrb r0, [r2, #0xe] subs r0, #1 @@ -286,12 +286,12 @@ _080A1130: strb r0, [r2, #0xe] b _080A11BA _080A113C: - ldr r0, _080A1144 @ =gUnk_030010A0 + ldr r0, _080A1144 @ =gScreenTransition ldr r0, [r0] movs r1, #3 b _080A1162 .align 2, 0 -_080A1144: .4byte gUnk_030010A0 +_080A1144: .4byte gScreenTransition _080A1148: ldrb r0, [r2, #0xe] subs r0, #1 @@ -304,7 +304,7 @@ _080A1148: strb r0, [r2, #0xd] b _080A11BA _080A115C: - ldr r0, _080A1178 @ =gUnk_030010A0 + ldr r0, _080A1178 @ =gScreenTransition ldr r0, [r0] movs r1, #7 _080A1162: @@ -319,14 +319,14 @@ _080A1162: strb r1, [r0, #0x14] b _080A11BA .align 2, 0 -_080A1178: .4byte gUnk_030010A0 +_080A1178: .4byte gScreenTransition _080A117C: .4byte gLinkEntity _080A1180: ldr r4, _080A11A0 @ =gLinkEntity ldrb r3, [r4, #0x14] cmp r3, #4 beq _080A11A8 - ldr r0, _080A11A4 @ =gUnk_030010A0 + ldr r0, _080A11A4 @ =gScreenTransition ldr r0, [r0] movs r1, #7 ands r0, r1 @@ -339,7 +339,7 @@ _080A1180: b _080A11BA .align 2, 0 _080A11A0: .4byte gLinkEntity -_080A11A4: .4byte gUnk_030010A0 +_080A11A4: .4byte gScreenTransition _080A11A8: movs r0, #0 movs r1, #1 diff --git a/asm/wizzrobeIce.s b/asm/wizzrobeIce.s index 46e0ab6a..7f92bd73 100644 --- a/asm/wizzrobeIce.s +++ b/asm/wizzrobeIce.s @@ -394,7 +394,7 @@ _080300C0: .4byte gUnk_0300110C thumb_func_start sub_080300C4 sub_080300C4: @ 0x080300C4 push {lr} - ldr r2, _080300E4 @ =gUnk_030010A0 + ldr r2, _080300E4 @ =gScreenTransition adds r0, r2, #0 adds r0, #0xae ldrh r0, [r0] @@ -410,12 +410,12 @@ sub_080300C4: @ 0x080300C4 _080300E2: pop {pc} .align 2, 0 -_080300E4: .4byte gUnk_030010A0 +_080300E4: .4byte gScreenTransition thumb_func_start sub_080300E8 sub_080300E8: @ 0x080300E8 push {lr} - ldr r1, _08030110 @ =gUnk_030010A0 + ldr r1, _08030110 @ =gScreenTransition adds r3, r1, #0 adds r3, #0xae ldrh r0, [r3] @@ -435,14 +435,14 @@ sub_080300E8: @ 0x080300E8 _0803010C: pop {pc} .align 2, 0 -_08030110: .4byte gUnk_030010A0 +_08030110: .4byte gScreenTransition _08030114: .4byte gLinkEntity thumb_func_start sub_08030118 sub_08030118: @ 0x08030118 push {lr} adds r2, r0, #0 - ldr r0, _0803013C @ =gUnk_030010A0 + ldr r0, _0803013C @ =gScreenTransition adds r0, #0xac ldrh r0, [r0] asrs r0, r2 @@ -457,7 +457,7 @@ sub_08030118: @ 0x08030118 bl SetLocalFlagByOffset b _0803014C .align 2, 0 -_0803013C: .4byte gUnk_030010A0 +_0803013C: .4byte gScreenTransition _08030140: movs r0, #0xc0 lsls r0, r0, #2 @@ -472,7 +472,7 @@ _0803014C: sub_08030150: @ 0x08030150 push {r4, r5, lr} mov ip, r0 - ldr r2, _08030194 @ =gUnk_030010A0 + ldr r2, _08030194 @ =gScreenTransition adds r5, r2, #0 adds r5, #0xac mov r3, ip @@ -504,4 +504,4 @@ sub_08030150: @ 0x08030150 strh r1, [r0] pop {r4, r5, pc} .align 2, 0 -_08030194: .4byte gUnk_030010A0 +_08030194: .4byte gScreenTransition diff --git a/include/functions.h b/include/functions.h index 40ebac66..56b28ea6 100644 --- a/include/functions.h +++ b/include/functions.h @@ -204,4 +204,5 @@ extern u32 sub_0800445C(Entity*); extern void sub_0807A108(void); extern void sub_0801766C(Entity*); extern void sub_08004168(Entity*); +extern u32 sub_08052638(u32); #endif \ No newline at end of file diff --git a/include/global.h b/include/global.h index 6738b6b8..28a0769c 100644 --- a/include/global.h +++ b/include/global.h @@ -47,17 +47,12 @@ #define min(a, b) ((a) < (b) ? (a) : (b)) #define max(a, b) ((a) >= (b) ? (a) : (b)) -struct Coords16 -{ - s16 x; - s16 y; -} PACKED; - -struct UCoords16 -{ - u16 x; - u16 y; -}; +typedef union { + s32 WORD; + struct { + s16 x, y; + } HALF; +} Coords; union SplitWord { s32 WORD; diff --git a/include/structures.h b/include/structures.h index fb96345d..2ca783bf 100644 --- a/include/structures.h +++ b/include/structures.h @@ -17,12 +17,19 @@ typedef struct { extern struct_02002A40 gUnk_02002A40; typedef struct { - u8 field_0x0[8]; - u8 field_0x8; - u8 field_0x9; - u8 field_0xa[6]; - union SplitWord field_0x10; - u8 field_0x14[0xc]; + u16 frameCount; // regular frame count? does anything reset it? + u8 field_0x2[6]; + bool8 transitioningOut; + u8 transitionType; // transition when changing areas + u8 field_0xa; + u8 field_0xb; + u8 areaID; + u8 roomID; + u8 animState; + u8 field_0xf; + Coords startPos; + u16 collisionLayer; + u8 field_0x14[0xa]; u16 field_0x20; u16 field_0x22; u8 field_0x24[0x14]; @@ -35,9 +42,22 @@ typedef struct { u16 field_0x46; u16 field_0x48; u16 field_0x4a; -} struct_030010A0; +} ScreenTransition; -extern struct_030010A0 gUnk_030010A0; +extern ScreenTransition gScreenTransition; +typedef struct { + u16 transitionType; + u8 field_0x2[4]; + s16 playerXPos; + s16 playerYPos; + u8 field_0xa; + u8 areaID; + u8 roomID; + u8 collisionLayer; + u8 field_0xe; + u8 playerAnimState; + u16 transitionSFX; +} ScreenTransitionData; #endif \ No newline at end of file diff --git a/linker.ld b/linker.ld index 8720510b..53af056b 100644 --- a/linker.ld +++ b/linker.ld @@ -174,7 +174,7 @@ SECTIONS { . = 0x00001000; gUnk_03001000 = .; . = 0x00001010; gUnk_03001010 = .; . = 0x00001020; gUnk_03001020 = .; - . = 0x000010A0; gUnk_030010A0 = .; + . = 0x000010A0; gScreenTransition = .; . = 0x000010AC; gUnk_030010AC = .; . = 0x000010D8; gUnk_030010D8 = .; . = 0x000010EC; gUnk_030010EC = .; @@ -664,6 +664,7 @@ SECTIONS { asm/code_0807CAA0.o(.text); src/flags.o(.text); asm/code_0807CC3C.o(.text); + src/code_0807CC3C.o(.text); src/code_0808091C.o(.text); /* objects */ asm/itemOnGround.o(.text); diff --git a/src/code_0805436C.c b/src/code_0805436C.c index 92175a3c..cc81546c 100644 --- a/src/code_0805436C.c +++ b/src/code_0805436C.c @@ -17,11 +17,11 @@ typedef struct { typedef struct { u8 filler[0x2e]; u8 unk; -} struct_030010A0; +} ScreenTransition; extern struct_02002A40 gUnk_02002A40; extern struct_080FD5B4 gUnk_080FD5B4[]; -extern struct_030010A0 gUnk_030010A0; +extern ScreenTransition gScreenTransition; extern u8 gUnk_0200AF13; extern u8 gUnk_0200AF14; @@ -154,7 +154,7 @@ void sub_08054524(void) { bVar1 = gArea.locationIndex; if (gArea.locationIndex == 0) { - bVar1 = gUnk_030010A0.unk; + bVar1 = gScreenTransition.unk; } if (bVar1 > 0x16) { bVar1 = 0; diff --git a/src/code_0807CC3C.c b/src/code_0807CC3C.c new file mode 100644 index 00000000..e9b9f8f5 --- /dev/null +++ b/src/code_0807CC3C.c @@ -0,0 +1,25 @@ +#include "global.h" +#include "entity.h" +#include "structures.h" +#include "functions.h" + +void sub_080808D8(void) { + gScreenTransition.transitionType = 0; +} + +void sub_080808E4(void) { + + if (sub_08052638(gScreenTransition.areaID)) { + gScreenTransition.transitionType = 0; + } else { + gScreenTransition.transitionType = 5; + } +} + +void sub_08080904(void) { + gScreenTransition.transitionType = 1; +} + +void sub_08080910(void) { + gScreenTransition.transitionType = 1; +} \ No newline at end of file diff --git a/src/code_0808091C.c b/src/code_0808091C.c index 3ba2096e..1607ddf0 100644 --- a/src/code_0808091C.c +++ b/src/code_0808091C.c @@ -6,7 +6,7 @@ extern void sub_0805E5A8(); extern RoomControls gRoomControls; extern u32 gUnk_0200B650; extern u32 gUnk_02025EB0; -extern u8 gUnk_030010A0[10]; +extern u8 gScreenTransition[10]; extern void DoExitTransition(Entity*); extern void sub_080809D4(); @@ -15,7 +15,7 @@ void sub_0808091C(Entity* param_1, u32 param_2) { DoExitTransition(param_1); - gUnk_030010A0[9] = param_2; + gScreenTransition[9] = param_2; return; } diff --git a/src/manager/manager27.c b/src/manager/manager27.c index db5bd8b6..a4f4fda8 100644 --- a/src/manager/manager27.c +++ b/src/manager/manager27.c @@ -6,13 +6,13 @@ typedef struct { u8 filler[0xAC]; u16 unk; -} struct_030010A0; +} ScreenTransition; extern u32 sub_0805C920(Entity*); extern void LoadPalettesByPaletteGroupIndex(u32); extern void (*const gUnk_08108D10[])(Entity*); -extern struct_030010A0 gUnk_030010A0; +extern ScreenTransition gScreenTransition; extern u8 gUnk_08108D20[]; void Manager27(Entity *this) @@ -20,10 +20,10 @@ void Manager27(Entity *this) gUnk_08108D10[this->action](this); if (CheckLocalFlagByOffset(0x300, this->entityType.form + 0x67)) { - gUnk_030010A0.unk |= (1 << (this->entityType).form); + gScreenTransition.unk |= (1 << (this->entityType).form); } else { - gUnk_030010A0.unk &= ~(1 << (this->entityType).form); + gScreenTransition.unk &= ~(1 << (this->entityType).form); } } diff --git a/src/npc/bigGoron.c b/src/npc/bigGoron.c index 0d6b9f3f..5096dfa0 100644 --- a/src/npc/bigGoron.c +++ b/src/npc/bigGoron.c @@ -5,7 +5,7 @@ extern void (*gUnk_081140D4[])(Entity*); extern u16 gUnk_081140CC[]; -extern u32 gUnk_030010A0; +extern u32 gScreenTransition; extern void sub_0805E3A0(Entity*, u32); extern void sub_0806D0B0(Entity*); extern void sub_0807DD64(Entity*); @@ -40,7 +40,7 @@ void sub_0806CF30(Entity* this) { if (this->previousActionFlag != 2) { if (this->previousActionFlag < 3) { - if ((gUnk_030010A0 & 3) == 0) { + if ((gScreenTransition & 3) == 0) { iVar3 = this->x.HALF.HI; if (gLinkEntity.x.HALF.HI < iVar3) { if ((this->field_0x68 - 32) < iVar3) { diff --git a/src/npc/bladeBrothers.c b/src/npc/bladeBrothers.c index bcd9fa62..71456fe1 100644 --- a/src/npc/bladeBrothers.c +++ b/src/npc/bladeBrothers.c @@ -9,7 +9,7 @@ typedef struct { /*0x00*/ u8 filler[0x2C]; /*0x2C*/ u8 unk; -} struct_030010A0; +} ScreenTransition; typedef struct { u8 filler[0xa8]; @@ -20,7 +20,7 @@ typedef struct { extern void (*gUnk_081115C0[])(Entity*); extern void (*gUnk_081115D0[])(Entity*); -extern struct_030010A0 gUnk_030010A0; +extern ScreenTransition gScreenTransition; extern u16 gUnk_081115DC[]; extern u8 gUnk_08111618[]; extern u32* gUnk_081115EC[]; @@ -60,7 +60,7 @@ void sub_08068A1C(Entity* this) { int offset; (this->entityType).parameter = (this->entityType).form; - if (gUnk_030010A0.unk != 0) { + if (gScreenTransition.unk != 0) { offset = 6; bVar1 = 3; @@ -114,7 +114,7 @@ void sub_08068AA4(Entity* this) { } void sub_08068ADC(Entity* this) { - if (gUnk_030010A0.unk == 2) { + if (gScreenTransition.unk == 2) { GetNextFrame(this); } sub_0806FD3C(this); diff --git a/src/npc/goronMerchant.c b/src/npc/goronMerchant.c index 8cda93ec..94736676 100644 --- a/src/npc/goronMerchant.c +++ b/src/npc/goronMerchant.c @@ -27,7 +27,7 @@ void GoronMerchant(Entity *this) void sub_08069584(Entity *this) { - if (gUnk_030010A0.field_0x24[8] != 0) { + if (gScreenTransition.field_0x24[8] != 0) { this->action = 3; } else { @@ -65,7 +65,7 @@ void sub_080695E8(Entity *this) void sub_0806961C(Entity *this) { - if (gUnk_030010A0.field_0x24[8] == 2) { + if (gScreenTransition.field_0x24[8] == 2) { UpdateAnimationSingleFrame(this); } sub_0806FD3C(this); diff --git a/src/npc/guard.c b/src/npc/guard.c index 765a89dd..a2cd0b25 100644 --- a/src/npc/guard.c +++ b/src/npc/guard.c @@ -13,7 +13,7 @@ typedef struct { typedef struct { u8 filler[8]; u8 unk; -} struct_030010A0; +} ScreenTransition; typedef struct { u32 unk; @@ -38,7 +38,7 @@ extern void (*const gUnk_0810F550[])(Entity*); extern u8 gUnk_03003DBC; extern SpriteLoadData gUnk_0810F524[]; extern void* gUnk_0810F6BC[]; -extern struct_030010A0 gUnk_030010A0; +extern ScreenTransition gScreenTransition; void Guard(Entity *this) { @@ -175,7 +175,7 @@ void sub_08064030(Entity *arg0,Entity *arg1) void sub_08064044(void) { - gUnk_030010A0.unk = 1; + gScreenTransition.unk = 1; } void sub_08064050(Entity *arg0, struct_08064050 *arg1) diff --git a/src/npc/simon.c b/src/npc/simon.c index 911fd745..73e6da35 100644 --- a/src/npc/simon.c +++ b/src/npc/simon.c @@ -7,7 +7,7 @@ typedef struct { u8 filler[9]; u8 unk; -} struct_030010A0; +} ScreenTransition; typedef struct { u8 filler[4]; @@ -21,7 +21,7 @@ extern void DoFade(u32, u32); extern void gUnk_0813AD60; extern void gUnk_0813AD74; -extern struct_030010A0 gUnk_030010A0; +extern ScreenTransition gScreenTransition; void Simon(Entity *this) { @@ -37,7 +37,7 @@ void Simon(Entity *this) void sub_0806C224(void) { DoExitTransition(&gUnk_0813AD60); - gUnk_030010A0.unk = 6; + gScreenTransition.unk = 6; } void Simon_CreateChest(Entity *this) @@ -51,7 +51,7 @@ void sub_0806C280(void) { SetGlobalFlag(MAROYA_WAKEUP); DoExitTransition(&gUnk_0813AD74); - gUnk_030010A0.unk = 6; + gScreenTransition.unk = 6; } void sub_0806C2A0(u32 *param_1,struct_0806C2A0 *param_2) diff --git a/src/npc/syrup.c b/src/npc/syrup.c index da3f69e8..58a3cb61 100644 --- a/src/npc/syrup.c +++ b/src/npc/syrup.c @@ -11,7 +11,7 @@ extern void (*gUnk_081121D4[])(Entity*); extern SpriteLoadData gUnk_081121C4; extern SpriteLoadData gUnk_081121B4; -extern u32 gUnk_030010A0; +extern u32 gScreenTransition; extern void sub_0807DD94(Entity*, u32); extern void sub_0806A26C(Entity*); extern void sub_080042BA(Entity*, u32); @@ -42,7 +42,7 @@ void sub_0806A234(Entity *this) { sub_0807DD94(this, 0); if ((this->field_0x82.HWORD & 4) != 0) { - if ((gUnk_030010A0 & 7) == 0) { + if ((gScreenTransition & 7) == 0) { sub_0806A26C(this); } sub_080042BA(this, 2); diff --git a/src/object/cloud.c b/src/object/cloud.c index c55e0d57..5314d9a4 100644 --- a/src/object/cloud.c +++ b/src/object/cloud.c @@ -23,7 +23,7 @@ extern void PositionEntityOnTop(Entity*, Entity*); extern void sub_0807BB68(u32*, u32, u32); extern u8 gUnk_02034490; -extern u32 gUnk_030010A0; +extern u32 gScreenTransition; extern void* gUnk_080DD750; extern Entity gLinkEntity; extern LinkState gLinkState; @@ -62,7 +62,7 @@ void sub_0809F548(Entity* this) { sub_0809F814((((this->x.HALF.HI - gRoomControls.roomOriginX) >> 4) & 63) | (((this->y.HALF.HI - gRoomControls.roomOriginY) >> 4) & 63) << 6); } else { - if ((gUnk_030010A0 & 7) == 0) { + if ((gScreenTransition & 7) == 0) { sub_0809F7BC(this); } sub_0809F7F4(this); @@ -110,7 +110,7 @@ void sub_0809F61C(Entity* this) { sub_0809F814((((this->x.HALF.HI - gRoomControls.roomOriginX) >> 4) & 63) | (((this->y.HALF.HI - gRoomControls.roomOriginY) >> 4) & 63) << 6); } else { - if ((gUnk_030010A0 & 7) == 0) { + if ((gScreenTransition & 7) == 0) { sub_0809F7BC(this); } sub_0809F7F4(this); @@ -145,7 +145,7 @@ void sub_0809F700(Entity* this) { this->actionDelay = (Random() & 30) + 8; this->flags = this->flags | 12; } - if ((gUnk_030010A0 & 3) == 0) { + if ((gScreenTransition & 3) == 0) { uVar2 = Random(); this->spriteOffsetX = gUnk_081247C0[uVar2 & 7]; this->spriteOffsetY = gUnk_081247C0[uVar2 >> 4 & 7]; diff --git a/src/object/mask.c b/src/object/mask.c index 6dd866c9..033039e4 100644 --- a/src/object/mask.c +++ b/src/object/mask.c @@ -4,7 +4,7 @@ #include "random.h" extern Entity gLinkEntity; -extern u16 gUnk_030010A0[]; +extern u16 gScreenTransition[]; extern void (*MaskActionFuncs[])(Entity *); @@ -36,7 +36,7 @@ void sub_080929A4(Entity *this) { switch (this->entityType.parameter & 0xC0) { case 0x40: - field_0x0a = gUnk_030010A0[0x5]; + field_0x0a = gScreenTransition[0x5]; switch (field_0x0a) { case 0x44D ... 0x44F: diff --git a/src/object/minecart.c b/src/object/minecart.c index eff15d3a..5bf59c5d 100644 --- a/src/object/minecart.c +++ b/src/object/minecart.c @@ -155,7 +155,7 @@ void sub_080919AC(Entity *this) CopyPosition(this,&gLinkEntity); gLinkEntity.spritePriority.b0 = this->spritePriority.b0 - 1; if (!sub_08091DDC(this)) { - if ((gUnk_030010A0.field_0x0 & 0xf) == 0) { + if ((gScreenTransition.field_0x0 & 0xf) == 0) { PlaySFX(0x138); } diff --git a/src/object/treeHidingPortal.c b/src/object/treeHidingPortal.c index 8bab5747..5b8522b3 100644 --- a/src/object/treeHidingPortal.c +++ b/src/object/treeHidingPortal.c @@ -15,7 +15,7 @@ extern void CreateMinishEntrance(u32 tile); extern void (*const gUnk_08124354[])(Entity*); -extern u32 gUnk_030010A0; +extern u32 gScreenTransition; extern s16 gUnk_08124364[]; void TreeHidingPortal(Entity* this) { @@ -36,7 +36,7 @@ void sub_0809E86C(Entity* this) { if (sub_0800419C(this, &gLinkEntity, 0x30, 0x30)) { if (CheckGlobalFlag(EZERO_1ST)) { - if (((gUnk_030010A0 & 3) == 0)) { + if (((gScreenTransition & 3) == 0)) { sub_080A2B80(this); } } diff --git a/src/room.c b/src/room.c index 0bef2ef3..9c7a6b6f 100644 --- a/src/room.c +++ b/src/room.c @@ -233,7 +233,7 @@ extern EntityData gUnk_080D6210; void sub_0804B5BC(void) { - if ((u16)gUnk_030010A0.field_0x10.HALF.HI > 0x40) + if ((u16)gScreenTransition.startPos.HALF.y > 0x40) LoadRoomEntityList(&gUnk_080D6210); } @@ -640,7 +640,7 @@ void sub_0804bc38(void) { u32 sub_0804BC50(void) { if (!CheckLocalFlag(0x9f)) { - gUnk_030010A0.field_0xa[5] = 5; + gScreenTransition.field_0xf = 5; ClearGlobalFlag(ZELDA_CHASE); } return 1; @@ -1023,7 +1023,7 @@ void sub_0804C018(void) { SetTile(0x4072, 0xc47, 1); if (CheckGlobalFlag(MAZE_CLEAR)) - if (gUnk_030010A0.field_0x10.WORD == 0x2780078) + if (gScreenTransition.startPos.WORD == 0x2780078) // todo: wtf PlaySFX(0x72); ClearGlobalFlag(MAZE_CLEAR); @@ -2444,8 +2444,8 @@ u32 sub_0804CF40() { } void sub_0804CF44(void) { - gUnk_030010A0.field_0x38 = 0; - gUnk_030010A0.field_0x39 = 0x5a; + gScreenTransition.field_0x38 = 0; + gScreenTransition.field_0x39 = 0x5a; } u32 sub_0804CF5C() { @@ -2520,10 +2520,10 @@ u32 sub_0804CFAC() { void sub_0804CFB0(void) { if (!CheckFlags(0x31)) { - if (gUnk_030010A0.field_0x38 == 0) { + if (gScreenTransition.field_0x38 == 0) { PlaySFX(0x80100000); } else { - if (gUnk_030010A0.field_0x39 == 0) { + if (gScreenTransition.field_0x39 == 0) { PlaySFX(0x80050000); sub_08078A90(3); } @@ -3508,16 +3508,16 @@ u32 sub_0804D6EC() { void sub_0804D6F0(void) { sub_0805D3C8(0); - if ((gUnk_030010A0.field_0x38 & 1) && gUnk_030010A0.field_0x39) { - if (gUnk_030010A0.field_0x3c == 1) { - gLinkEntity.x.HALF.HI = gUnk_030010A0.field_0x48; - gLinkEntity.y.HALF.HI = gUnk_030010A0.field_0x4a + 8; + if ((gScreenTransition.field_0x38 & 1) && gScreenTransition.field_0x39) { + if (gScreenTransition.field_0x3c == 1) { + gLinkEntity.x.HALF.HI = gScreenTransition.field_0x48; + gLinkEntity.y.HALF.HI = gScreenTransition.field_0x4a + 8; } else { - if (gUnk_030010A0.field_0x3c) { + if (gScreenTransition.field_0x3c) { return; } - gLinkEntity.x.HALF.HI = gUnk_030010A0.field_0x44; - gLinkEntity.y.HALF.HI = gUnk_030010A0.field_0x46 + 8; + gLinkEntity.x.HALF.HI = gScreenTransition.field_0x44; + gLinkEntity.y.HALF.HI = gScreenTransition.field_0x46 + 8; } } } @@ -4536,7 +4536,7 @@ void sub_0804E4E4(void) if (!GetInventoryValue(0x3a) && CheckGlobalFlag(MIZUKAKI_HARIFALL)) { LoadRoomEntityList(&gUnk_080F2194); } - if (gUnk_030010A0.field_0xa[5] == 1) { + if (gScreenTransition.field_0xf == 1) { LoadRoomEntityList(&gUnk_080F21B4); } } @@ -4852,8 +4852,8 @@ void sub_0804E954(void) if (!GetInventoryValue(0x46) && CheckGlobalFlag(MIZUKAKI_START) && !GetInventoryValue(0x3b)) { LoadRoomEntityList(&gUnk_080F3A48); } - gUnk_030010A0.field_0x20 = 0xf28; - gUnk_030010A0.field_0x22 = 0x82d; + gScreenTransition.field_0x20 = 0xf28; + gScreenTransition.field_0x22 = 0x82d; } extern u32 gUnk_080F3D44; @@ -5260,7 +5260,7 @@ void nullsub_398() {} u32 sub_0804EFDC(void) { if (CheckGlobalFlag(MAROYA_WAKEUP)) { - gUnk_030010A0.field_0xa[5] = 5; + gScreenTransition.field_0xf = 5; } return 1; } diff --git a/src/sub_0805E374.c b/src/sub_0805E374.c index 38b30e94..ebad1b0e 100644 --- a/src/sub_0805E374.c +++ b/src/sub_0805E374.c @@ -1,10 +1,10 @@ #include "entity.h" extern Entity* sub_0805E3A0(Entity*, u32); -extern u8 gUnk_030010A0[]; +extern u8 gScreenTransition[]; extern u8 gUnk_081091F8[]; extern u8 gUnk_081091EE[]; Entity* sub_0805E374(Entity* param_1) { - u8 r3 = gUnk_030010A0[0x2C]; + u8 r3 = gScreenTransition[0x2C]; u8* array = gUnk_081091F8; if (r3 != '\x02') { diff --git a/src/sub_080A3B84.c b/src/sub_080A3B84.c index 80eff685..da4e5ce1 100644 --- a/src/sub_080A3B84.c +++ b/src/sub_080A3B84.c @@ -8,7 +8,7 @@ extern void (*const gUnk_081280C4[])(); void DrawKinstoneMenu(void) { - gUnk_030010A0.field_0x24[8] = 2; + gScreenTransition.field_0x24[8] = 2; sub_080AD90C(); gUnk_081280C4[gMenu.menuType](); sub_080A3B74(); @@ -18,7 +18,7 @@ void DrawKinstoneMenu(void) sub_0805E5C0(); sub_080AD9B0(); sub_080AD918(); - gUnk_030010A0.field_0x24[8] = 0; + gScreenTransition.field_0x24[8] = 0; } extern void gUnk_081280DC; From a155f257201bd4fad7f85e9f355bd66214e05ef7 Mon Sep 17 00:00:00 2001 From: Marcus Huderle Date: Tue, 4 Aug 2020 19:32:04 -0500 Subject: [PATCH 074/158] Decompile houseDoorExterior.c --- asm/houseDoorExterior.s | 418 --------------------------------- include/entity.h | 3 +- include/functions.h | 1 + linker.ld | 2 +- src/object/houseDoorExterior.c | 187 +++++++++++++++ 5 files changed, 191 insertions(+), 420 deletions(-) delete mode 100644 asm/houseDoorExterior.s create mode 100755 src/object/houseDoorExterior.c diff --git a/asm/houseDoorExterior.s b/asm/houseDoorExterior.s deleted file mode 100644 index 50b7a415..00000000 --- a/asm/houseDoorExterior.s +++ /dev/null @@ -1,418 +0,0 @@ - .include "asm/macros.inc" - - .include "constants/constants.inc" - - .syntax unified - - .text - - thumb_func_start HouseDoorExterior -HouseDoorExterior: @ 0x080866C0 - push {lr} - ldr r2, _080866D4 @ =gUnk_081206B4 - ldrb r1, [r0, #0xb] - lsls r1, r1, #2 - adds r1, r1, r2 - ldr r1, [r1] - bl _call_via_r1 - pop {pc} - .align 2, 0 -_080866D4: .4byte gUnk_081206B4 - - thumb_func_start sub_080866D8 -sub_080866D8: @ 0x080866D8 - push {r4, r5, r6, r7, lr} - mov r7, sb - mov r6, r8 - push {r6, r7} - adds r6, r0, #0 - ldrb r1, [r6, #0xc] - cmp r1, #0 - bne _080866FE - movs r0, #1 - strb r0, [r6, #0xc] - str r1, [r6, #0x68] - ldrb r1, [r6, #0xe] - adds r0, r6, #0 - adds r0, #0x6c - strb r1, [r0] - adds r0, r6, #0 - movs r1, #6 - bl sub_0805E3A0 -_080866FE: - adds r0, r6, #0 - adds r0, #0x6c - ldrb r0, [r0] - bl GetCurrentRoomProperty - adds r5, r0, #0 - movs r0, #0 - mov r8, r0 - ldrh r0, [r5] - ldr r1, _080867C4 @ =0x0000FFFF - cmp r0, r1 - beq _080867BA - mov sb, r1 -_08086718: - movs r7, #1 - mov r1, r8 - lsls r7, r1 - ldr r0, [r6, #0x68] - ands r0, r7 - cmp r0, #0 - bne _080867A8 - ldrb r0, [r5, #5] - bl sub_080867CC - cmp r0, #0 - beq _080867A8 - ldrh r0, [r5] - ldrh r1, [r5, #2] - movs r2, #0x20 - movs r3, #0x20 - bl sub_080562CC - cmp r0, #0 - beq _080867A8 - ldrb r1, [r5, #7] - ldrb r2, [r5, #6] - movs r0, #0x19 - bl CreateObject - adds r4, r0, #0 - cmp r4, #0 - beq _080867A8 - adds r0, #0x6c - mov r2, r8 - strb r2, [r0] - ldr r1, _080867C8 @ =gRoomControls - ldrh r0, [r5] - ldrh r2, [r1, #6] - adds r0, r0, r2 - adds r0, #0x10 - strh r0, [r4, #0x2e] - ldrh r0, [r5, #2] - ldrh r1, [r1, #8] - adds r0, r0, r1 - adds r0, #0x20 - strh r0, [r4, #0x32] - str r6, [r4, #0x50] - ldrh r1, [r5] - adds r0, r4, #0 - adds r0, #0x68 - strh r1, [r0] - ldrh r0, [r5, #2] - adds r1, r4, #0 - adds r1, #0x6a - strh r0, [r1] - ldrb r1, [r5, #4] - adds r0, r4, #0 - adds r0, #0x38 - strb r1, [r0] - ldrb r0, [r5, #5] - strb r0, [r4, #0xd] - adds r0, r4, #0 - bl UpdateSpriteForCollisionLayer - ldr r0, [r6, #0x68] - orrs r0, r7 - str r0, [r6, #0x68] - ldr r1, [r5, #8] - cmp r1, #0 - beq _080867A8 - adds r0, r4, #0 - bl StartCutscene - adds r1, r4, #0 - adds r1, #0x84 - str r0, [r1] -_080867A8: - adds r5, #0xc - movs r0, #1 - add r8, r0 - ldrh r0, [r5] - cmp r0, sb - beq _080867BA - mov r1, r8 - cmp r1, #0x1f - bls _08086718 -_080867BA: - pop {r3, r4} - mov r8, r3 - mov sb, r4 - pop {r4, r5, r6, r7, pc} - .align 2, 0 -_080867C4: .4byte 0x0000FFFF -_080867C8: .4byte gRoomControls - - thumb_func_start sub_080867CC -sub_080867CC: @ 0x080867CC - push {lr} - cmp r0, #0 - beq _080867DE - cmp r0, #2 - bne _080867DE - movs r0, #0x18 - bl CheckGlobalFlag - b _080867E0 -_080867DE: - movs r0, #1 -_080867E0: - pop {pc} - .align 2, 0 - - thumb_func_start sub_080867E4 -sub_080867E4: @ 0x080867E4 - push {r4, lr} - adds r4, r0, #0 - adds r0, #0x68 - ldrh r0, [r0] - adds r1, r4, #0 - adds r1, #0x6a - ldrh r1, [r1] - movs r2, #0x20 - movs r3, #0x20 - bl sub_080562CC - cmp r0, #0 - bne _08086814 - ldr r2, [r4, #0x50] - adds r0, r4, #0 - adds r0, #0x6c - movs r1, #1 - ldrb r0, [r0] - lsls r1, r0 - ldr r0, [r2, #0x68] - bics r0, r1 - str r0, [r2, #0x68] - bl DeleteThisEntity -_08086814: - adds r0, r4, #0 - bl sub_0808681C - pop {r4, pc} - - thumb_func_start sub_0808681C -sub_0808681C: @ 0x0808681C - push {r4, r5, lr} - adds r5, r0, #0 - ldrb r4, [r5, #0xc] - cmp r4, #0 - beq _0808682C - cmp r4, #1 - beq _08086868 - b _0808688C -_0808682C: - movs r2, #1 - movs r0, #1 - strb r0, [r5, #0xc] - movs r0, #8 - strb r0, [r5, #0xe] - ldrb r1, [r5, #0x18] - subs r0, #0xc - ands r0, r1 - orrs r0, r2 - strb r0, [r5, #0x18] - strb r4, [r5, #0x1e] - ldr r0, _08086864 @ =gUnk_081206AC - str r0, [r5, #0x48] - ldrb r1, [r5, #0xd] - cmp r1, #1 - bne _08086852 - movs r0, #2 - strb r0, [r5, #0xc] - strb r1, [r5, #0x1e] -_08086852: - ldrb r1, [r5, #0x10] - movs r2, #2 - adds r0, r2, #0 - ands r0, r1 - cmp r0, #0 - beq _080868AA - strb r2, [r5, #0xc] - b _0808688C - .align 2, 0 -_08086864: .4byte gUnk_081206AC -_08086868: - adds r0, r5, #0 - bl sub_08086954 - lsls r0, r0, #0x18 - cmp r0, #0 - bne _0808688C - ldrb r0, [r5, #0xc] - adds r0, #1 - strb r0, [r5, #0xc] - strb r4, [r5, #0x1e] - movs r0, #0x10 - movs r1, #0 - movs r2, #1 - bl sub_08078AC0 - ldr r0, _080868AC @ =0x00000111 - bl PlaySFX -_0808688C: - ldrb r1, [r5, #0x10] - movs r0, #2 - ands r0, r1 - cmp r0, #0 - beq _080868AA - adds r4, r5, #0 - adds r4, #0x84 - ldr r1, [r4] - adds r0, r5, #0 - bl ExecuteScriptCommandSet - ldr r1, [r4] - adds r0, r5, #0 - bl sub_080868EC -_080868AA: - pop {r4, r5, pc} - .align 2, 0 -_080868AC: .4byte 0x00000111 - - thumb_func_start sub_080868B0 -sub_080868B0: @ 0x080868B0 - push {r4, r5, lr} - adds r5, r0, #0 - ldrb r0, [r5, #0xc] - cmp r0, #0 - bne _080868D2 - movs r2, #1 - movs r0, #1 - strb r0, [r5, #0xc] - ldrb r1, [r5, #0x18] - subs r0, #5 - ands r0, r1 - orrs r0, r2 - strb r0, [r5, #0x18] - ldr r0, _080868E8 @ =gUnk_081206AC - str r0, [r5, #0x48] - movs r0, #8 - strb r0, [r5, #0xe] -_080868D2: - adds r4, r5, #0 - adds r4, #0x84 - ldr r1, [r4] - adds r0, r5, #0 - bl ExecuteScriptCommandSet - ldr r1, [r4] - adds r0, r5, #0 - bl sub_080868EC - pop {r4, r5, pc} - .align 2, 0 -_080868E8: .4byte gUnk_081206AC - - thumb_func_start sub_080868EC -sub_080868EC: @ 0x080868EC - push {r4, r5, lr} - adds r3, r0, #0 - ldr r2, [r1, #8] - movs r0, #0 - str r0, [r1, #8] - cmp r2, #0 - beq _0808691E - movs r5, #0x80 - lsls r5, r5, #1 - movs r4, #0 - movs r1, #1 -_08086902: - mvns r0, r2 - adds r0, #1 - ands r0, r2 - eors r2, r0 - cmp r0, #0x80 - beq _08086914 - cmp r0, r5 - beq _08086918 - b _0808691A -_08086914: - strb r4, [r3, #0x1e] - b _0808691A -_08086918: - strb r1, [r3, #0x1e] -_0808691A: - cmp r2, #0 - bne _08086902 -_0808691E: - ldrb r0, [r3, #0x1e] - cmp r0, #0 - bne _0808692A - adds r0, r3, #0 - bl sub_0800445C -_0808692A: - pop {r4, r5, pc} - - thumb_func_start sub_0808692C -sub_0808692C: @ 0x0808692C - push {lr} - adds r2, r0, #0 - ldrb r1, [r2, #0x10] - movs r0, #0xfd - ands r0, r1 - strb r0, [r2, #0x10] - movs r0, #2 - strb r0, [r2, #0xb] - ldrb r0, [r2, #0x1e] - movs r1, #2 - cmp r0, #0 - bne _08086946 - movs r1, #1 -_08086946: - strb r1, [r2, #0xc] - movs r0, #0 - strb r0, [r2, #0xd] - movs r0, #8 - strb r0, [r2, #0xe] - pop {pc} - .align 2, 0 - - thumb_func_start sub_08086954 -sub_08086954: @ 0x08086954 - push {r4, lr} - adds r4, r0, #0 - bl sub_0800445C - cmp r0, #0 - beq _0808699C - adds r0, r4, #0 - movs r1, #6 - movs r2, #0x14 - bl sub_0806ED9C - cmp r0, #0 - blt _080869A0 - ldr r0, _08086994 @ =gLinkEntity - ldrb r0, [r0, #0x14] - cmp r0, #0 - bne _080869A0 - ldr r2, _08086998 @ =gLinkState - adds r0, r2, #0 - adds r0, #0x90 - ldrh r1, [r0] - movs r0, #0x80 - lsls r0, r0, #3 - cmp r1, r0 - bne _080869A0 - ldrb r0, [r2, #2] - cmp r0, #0 - bne _080869A0 - ldrb r0, [r4, #0xe] - subs r0, #1 - b _0808699E - .align 2, 0 -_08086994: .4byte gLinkEntity -_08086998: .4byte gLinkState -_0808699C: - movs r0, #8 -_0808699E: - strb r0, [r4, #0xe] -_080869A0: - ldrb r0, [r4, #0xe] - pop {r4, pc} - - thumb_func_start sub_080869A4 -sub_080869A4: @ 0x080869A4 - push {r4, r5, lr} - adds r4, r0, #0 - adds r5, r1, #0 - movs r0, #0 - str r0, [r5, #0x14] - adds r0, r4, #0 - bl sub_08086954 - lsls r0, r0, #0x18 - cmp r0, #0 - bne _080869C2 - movs r0, #8 - strb r0, [r4, #0xe] - movs r0, #1 - str r0, [r5, #0x14] -_080869C2: - pop {r4, r5, pc} \ No newline at end of file diff --git a/include/entity.h b/include/entity.h index e717c9e1..03dd4772 100644 --- a/include/entity.h +++ b/include/entity.h @@ -26,7 +26,8 @@ typedef struct { } BoundingBox; typedef struct Entity { - /*0x00*/ u32* field_0x0; + /*0x00*/ u16 unk0; + /*0x02*/ u8 filler2[0x2]; /*0x04*/ struct Entity* field_0x4; /*0x08*/ EntityType entityType; /*0x0c*/ u8 action; diff --git a/include/functions.h b/include/functions.h index 40ebac66..da093417 100644 --- a/include/functions.h +++ b/include/functions.h @@ -204,4 +204,5 @@ extern u32 sub_0800445C(Entity*); extern void sub_0807A108(void); extern void sub_0801766C(Entity*); extern void sub_08004168(Entity*); +extern void ExecuteScriptCommandSet(Entity*, void *); #endif \ No newline at end of file diff --git a/linker.ld b/linker.ld index f652d64f..2bec115f 100644 --- a/linker.ld +++ b/linker.ld @@ -692,7 +692,7 @@ SECTIONS { asm/floatingPlatform.o(.text); asm/object17.o(.text); asm/evilSpirit.o(.text); - asm/houseDoorExterior.o(.text); + src/object/houseDoorExterior.o(.text); src/object/object1A.o(.text); src/object/greatFairy.o(.text); asm/greatFairy.o(.text); diff --git a/src/object/houseDoorExterior.c b/src/object/houseDoorExterior.c new file mode 100755 index 00000000..c68f6b23 --- /dev/null +++ b/src/object/houseDoorExterior.c @@ -0,0 +1,187 @@ +#include "global.h" +#include "entity.h" +#include "flags.h" +#include "functions.h" +#include "room.h" + +typedef struct { + /*0x00*/ u16 unk0; + /*0x02*/ u16 unk2; + /*0x04*/ u8 unk4; + /*0x05*/ u8 unk5; + /*0x06*/ u8 unk6; + /*0x07*/ u8 unk7; + /*0x08*/ u8 *unk8; +} unk_DoorProperty; + +typedef struct { + /*0x00*/ u8 filler0[0x8]; + /*0x08*/ u32 unk8; +} unk_80868EC; + +static void sub_080868EC(Entity* entity, unk_80868EC* arg1); +static bool32 sub_080867CC(u32); +static void sub_0808681C(Entity*); +static u8 sub_08086954(Entity*); + +extern u32 sub_080562CC(u32, u32, u32, u32); +extern void sub_08078AC0(u32, u32, u32); +extern void* GetCurrentRoomProperty(u8); + +extern void (*const gUnk_081206B4[])(Entity*); +extern BoundingBox gUnk_081206AC; // TODO: should be const + +void HouseDoorExterior(Entity* this) { + gUnk_081206B4[this->entityType.parameter](this); +} + +void sub_080866D8(Entity* this) { + unk_DoorProperty* prop; + Entity* entity; + u32 i; + + if (this->action == 0) { + this->action = 1; + *((u32 *)(&this->field_0x68)) = 0; + this->field_0x6c.HALF.LO = this->actionDelay; + sub_0805E3A0(this, 6); + } + + prop = GetCurrentRoomProperty(this->field_0x6c.HALF.LO); + for (i = 0; prop->unk0 != 0xFFFF && i < 32; prop++, i++) { + int mask = 1 << i; + if ((*((u32 *)(&this->field_0x68)) & mask) == 0 && + sub_080867CC(prop->unk5) && + sub_080562CC(prop->unk0, prop->unk2, 32, 32)) { + entity = CreateObject(0x19, prop->unk7, prop->unk6); + if (entity) { + entity->field_0x6c.HALF.LO = i; + entity->x.HALF.HI = gRoomControls.roomOriginX + prop->unk0 + 16; + entity->y.HALF.HI = gRoomControls.roomOriginY + prop->unk2 + 32; + entity->parent = this; + entity->field_0x68.HWORD = prop->unk0; + entity->field_0x6a.HWORD = prop->unk2; + entity->collisionLayer = prop->unk4; + entity->previousActionFlag = prop->unk5; + UpdateSpriteForCollisionLayer(entity); + *((u32 *)(&this->field_0x68)) |= mask; + if (prop->unk8) { + *((u32 **)(&entity->cutsceneBeh)) = StartCutscene(entity, prop->unk8); + } + } + } + } +} + +static bool32 sub_080867CC(u32 arg0) { + if (arg0 == 0) { + return TRUE; + } + if (arg0 != 2) { + return TRUE; + } + return CheckGlobalFlag(TATEKAKE_HOUSE); +} + +void sub_080867E4(Entity* this) { + if (!sub_080562CC(this->field_0x68.HWORD, this->field_0x6a.HWORD, 32, 32)) { + *((u32 *)(&this->parent->field_0x68)) = *((u32 *)(&this->parent->field_0x68)) & ~(1 << this->field_0x6c.HALF.LO); + DeleteThisEntity(); + } + sub_0808681C(this); +} + +static void sub_0808681C(Entity* this) { + switch (this->action) { + case 0: + this->action = 1; + this->actionDelay = 8; + this->spriteSettings.b.draw = 1; + this->frameIndex = 0; + this->boundingBox = &gUnk_081206AC; + if (this->previousActionFlag == 1) { + this->action = 2; + this->frameIndex = 1; + } + if (this->flags & 0x2) { + this->action = 2; + } + break; + case 1: + if (!sub_08086954(this)) { + this->action++; + this->frameIndex = 1; + sub_08078AC0(16, 0, 1); + PlaySFX(0x111); + } + break; + } + + if (this->flags & 0x2) { + ExecuteScriptCommandSet(this, *(u32 **)&this->cutsceneBeh); + sub_080868EC(this, *(void **)&this->cutsceneBeh); + } +} + +void sub_080868B0(Entity* this) { + if (this->action == 0) { + this->action = 1; + this->spriteSettings.b.draw = 1; + this->boundingBox = &gUnk_081206AC; + this->actionDelay = 8; + } + ExecuteScriptCommandSet(this, *(u32 **)&this->cutsceneBeh); + sub_080868EC(this, *(void **)&this->cutsceneBeh); +} + +static void sub_080868EC(Entity* entity, unk_80868EC* arg1) { + u32 var0 = arg1->unk8; + arg1->unk8 = 0; + while (var0 != 0) { + u32 rightMostSetBit = var0 & (~var0 + 1); + var0 ^= rightMostSetBit; + switch (rightMostSetBit) { + case 0x80: + entity->frameIndex = 0; + break; + case 0x100: + entity->frameIndex = 1; + break; + } + } + + if (entity->frameIndex == 0) { + sub_0800445C(entity); + } +} + +void sub_0808692C(Entity* this) { + this->flags &= 0xFD; + this->entityType.parameter = 2; + this->action = this->frameIndex == 0 ? 1 : 2; + this->previousActionFlag = 0; + this->actionDelay = 8; +} + +static u8 sub_08086954(Entity* this) { + if (sub_0800445C(this)) { + if (sub_0806ED9C(this, 6, 20) >= 0 && + gLinkEntity.animationState == 0 && + (u16)gLinkState.field_0x90.HALF.LO == 0x400 && + gLinkState.jumpStatus == 0) { + this->actionDelay--; + } + } else { + this->actionDelay = 8; + } + return this->actionDelay; +} + +// TODO: Second arg is some unknown struct. +void sub_080869A4(Entity* entityA, u32* entityB) { + entityB[5] = 0; + if (!sub_08086954(entityA)) { + entityA->actionDelay = 8; + entityB[5] = 1; + } +} From 682483414209c8d5d1b90cf40f91cf51d62319e8 Mon Sep 17 00:00:00 2001 From: theo3 Date: Tue, 4 Aug 2020 23:55:39 -0700 Subject: [PATCH 075/158] struct_02002A40 -> structures.h --- asm/code_0807CC3C.s | 231 ------------------------------------- hyrulefield.sna | Bin 0 -> 84890 bytes include/functions.h | 14 +++ include/main.h | 1 - include/menu.h | 3 +- include/npc.h | 17 --- include/structures.h | 45 ++++++-- linker.ld | 3 +- src/code_0807CC3C.c | 126 +++++++++++++++++--- src/code_080808D8.c | 25 ++++ src/manager/manager27.c | 10 +- src/npc/bladeBrothers.c | 16 +-- src/npc/forestMinish.c | 1 + src/npc/mayorHagen.c | 2 + src/npc/mutoh.c | 1 + src/npc/postman.c | 1 + src/npc/simon.c | 10 +- src/npc/townsperson.c | 1 + src/npc/windTribespeople.c | 1 + src/object/windcrest.c | 6 - src/room.c | 4 +- 21 files changed, 208 insertions(+), 310 deletions(-) create mode 100644 hyrulefield.sna create mode 100644 src/code_080808D8.c diff --git a/asm/code_0807CC3C.s b/asm/code_0807CC3C.s index 79a102ff..4ededc8c 100644 --- a/asm/code_0807CC3C.s +++ b/asm/code_0807CC3C.s @@ -5,237 +5,6 @@ .text - thumb_func_start sub_0807CD9C -sub_0807CD9C: @ 0x0807CD9C - push {lr} - bl sub_080530C8 - pop {pc} - - thumb_func_start sub_0807CDA4 -sub_0807CDA4: @ 0x0807CDA4 - push {lr} - ldr r2, _0807CDB8 @ =gUnk_0811E478 - ldr r1, _0807CDBC @ =gMenu - ldrb r1, [r1, #7] - lsls r1, r1, #2 - adds r1, r1, r2 - ldr r1, [r1] - bl _call_via_r1 - pop {pc} - .align 2, 0 -_0807CDB8: .4byte gUnk_0811E478 -_0807CDBC: .4byte gMenu - - thumb_func_start sub_0807CDC0 -sub_0807CDC0: @ 0x0807CDC0 - push {lr} - ldr r0, _0807CDE0 @ =gUnk_02021EE0 - ldrh r1, [r0, #0xa] - subs r1, #8 - strh r1, [r0, #0xa] - movs r1, #8 - ldrsh r0, [r0, r1] - cmp r0, #0 - bgt _0807CDDC - ldr r0, _0807CDE4 @ =gMenu - movs r1, #8 - strh r1, [r0, #0xa] - movs r1, #1 - strb r1, [r0, #7] -_0807CDDC: - movs r0, #0 - pop {pc} - .align 2, 0 -_0807CDE0: .4byte gUnk_02021EE0 -_0807CDE4: .4byte gMenu - - thumb_func_start sub_0807CDE8 -sub_0807CDE8: @ 0x0807CDE8 - push {r4, r5, lr} - adds r4, r0, #0 - ldr r1, _0807CE08 @ =gMenu - ldrh r0, [r1, #0xa] - cmp r0, #0 - bne _0807CE4C - bl sub_0805616C - cmp r4, #1 - beq _0807CE20 - cmp r4, #1 - blo _0807CE0C - cmp r4, #2 - beq _0807CE2E - b _0807CE38 - .align 2, 0 -_0807CE08: .4byte gMenu -_0807CE0C: - movs r0, #0x80 - lsls r0, r0, #0x12 - ldrb r0, [r0, #4] - ldr r1, _0807CE1C @ =gUnk_02002A40 - bl sub_0807CF08 - b _0807CE36 - .align 2, 0 -_0807CE1C: .4byte gUnk_02002A40 -_0807CE20: - movs r0, #0x80 - lsls r0, r0, #0x12 - ldrb r0, [r0, #4] - bl sub_0807CF48 - movs r5, #1 - b _0807CE38 -_0807CE2E: - movs r0, #0x80 - lsls r0, r0, #0x12 - bl sub_0807CF10 -_0807CE36: - adds r5, r0, #0 -_0807CE38: - ldr r1, _0807CE48 @ =gMenu - strh r5, [r1, #0xa] - movs r0, #2 - strb r0, [r1, #7] - bl sub_08056208 - b _0807CE50 - .align 2, 0 -_0807CE48: .4byte gMenu -_0807CE4C: - subs r0, #1 - strh r0, [r1, #0xa] -_0807CE50: - movs r0, #0 - pop {r4, r5, pc} - - thumb_func_start sub_0807CE54 -sub_0807CE54: @ 0x0807CE54 - push {r4, r5, lr} - movs r4, #0 - ldr r2, _0807CE88 @ =gUnk_02021EE0 - ldrh r0, [r2, #0xa] - adds r0, #8 - strh r0, [r2, #0xa] - ldrh r3, [r2, #6] - movs r5, #6 - ldrsh r1, [r2, r5] - lsls r0, r0, #0x10 - asrs r0, r0, #0x10 - cmp r1, r0 - bgt _0807CE84 - strh r3, [r2, #0xa] - bl sub_08050384 - ldr r0, _0807CE8C @ =gMenu - movs r1, #0 - strb r1, [r0, #7] - ldrh r0, [r0, #0xa] - subs r4, #1 - cmp r0, #1 - bne _0807CE84 - movs r4, #1 -_0807CE84: - adds r0, r4, #0 - pop {r4, r5, pc} - .align 2, 0 -_0807CE88: .4byte gUnk_02021EE0 -_0807CE8C: .4byte gMenu - - thumb_func_start sub_0807CE90 -sub_0807CE90: @ 0x0807CE90 - push {r4, r5, r6, lr} - movs r0, #0x40 - bl sub_080B1520 - movs r0, #4 - bl sub_0807D1C4 - adds r4, r0, #0 - movs r5, #0 - ldrh r0, [r4, #6] - ldr r6, _0807CF04 @ =gUnk_0811E484 - ldrh r2, [r4] - adds r1, r6, #0 - bl sub_0807D24C - cmp r0, #0 - bne _0807CEB4 - movs r5, #1 -_0807CEB4: - ldrh r0, [r4, #8] - ldrh r2, [r4] - adds r1, r6, #0 - bl sub_0807D24C - cmp r0, #0 - bne _0807CEC4 - adds r5, #2 -_0807CEC4: - cmp r5, #0 - beq _0807CEFE - cmp r5, #3 - bne _0807CEEA - movs r0, #5 - bl sub_0807CF68 - movs r0, #3 - bl sub_0807CF68 - movs r0, #2 - bl sub_0807CF68 - movs r0, #1 - bl sub_0807CF68 - movs r0, #0 - bl sub_0807CF68 -_0807CEEA: - ldrh r0, [r4, #8] - ldrh r2, [r4] - adds r1, r6, #0 - bl sub_0807D20C - ldrh r0, [r4, #6] - ldrh r2, [r4] - adds r1, r6, #0 - bl sub_0807D20C -_0807CEFE: - movs r0, #1 - pop {r4, r5, r6, pc} - .align 2, 0 -_0807CF04: .4byte gUnk_0811E484 - - thumb_func_start sub_0807CF08 -sub_0807CF08: @ 0x0807CF08 - push {lr} - bl sub_0807CF88 - pop {pc} - - thumb_func_start sub_0807CF10 -sub_0807CF10: @ 0x0807CF10 - push {lr} - adds r1, r0, #0 - movs r0, #3 - bl sub_0807CF88 - pop {pc} - - thumb_func_start sub_0807CF1C -sub_0807CF1C: @ 0x0807CF1C - push {lr} - adds r1, r0, #0 - movs r0, #5 - bl sub_0807CF88 - pop {pc} - - thumb_func_start sub_0807CF28 -sub_0807CF28: @ 0x0807CF28 - push {lr} - bl sub_0807D008 - pop {pc} - - thumb_func_start sub_0807CF30 -sub_0807CF30: @ 0x0807CF30 - push {lr} - adds r1, r0, #0 - movs r0, #3 - bl sub_0807D008 - pop {pc} - - thumb_func_start sub_0807CF3C -sub_0807CF3C: @ 0x0807CF3C - push {lr} - adds r1, r0, #0 - movs r0, #5 - bl sub_0807D008 - pop {pc} - thumb_func_start sub_0807CF48 sub_0807CF48: @ 0x0807CF48 push {r4, r5, lr} diff --git a/hyrulefield.sna b/hyrulefield.sna new file mode 100644 index 0000000000000000000000000000000000000000..0f6a50b4ee5c910e6223eab8b211da66c87278d3 GIT binary patch literal 84890 zcma&Nc|cNGAMk$x6}QA{CRL}I>i)Z0I-)gQ~{!wM}Di7?Uj3W zO|P=gRmb29X|w3KFrv^ zciYCG-}XYYr$cvWzl`c9_0}vQKz_Iab_Z@;fA+^e+Y^Qd+nz-Fx3wN_t;xeJ*0K zfaCn%wr&4yofFY<{`Q4X!1jQ13H1eYoa0|_VT@=L%rCODQ$nk@2mU%Hb?rh@AZdOe zgR-)6!S>@T7rgpy+pWONLK5W9^cy)+=>{p4?^7c({Ru6-Znmk0v%(hl-XCIro4MV+ zb z$XU{Uk*5^)ZdMgcbN_L3pmO%B3Nm5(`9$YlLT}GY55FiIFUj(lx8IlG(u z%K6eSWKU;T+Sydcmfo8#=8eurFBMk1W>F7}{4vpKCz4wPep8a$34}Ef*}Zkb$1ST4 zrx9P;EIrokMmXwx$#DXqlJHpQBHcMf>AE7+ydTu;PElUXa8$LNO6b$h&zJRW zOP?P=Al!5cs3L5i8*|ZLG55EHzXkqT=N0rJzj)sK-&FbUGZu7jjUJ`+*yFSST1t;T zuyCf%L$GkwcK7P6`9^O+!+Zb;7lE@Imi$w4rvF%YG+_)>bAJUn(td^YSYH5U00lnF zs9HdqKs?<*m||2dUhlLMOD5|gA5%$EyPPEB&n#gVptzl)EFkBd);w@G$O4t2SF-z{ZGs%cYU zKa+P&6+?QW=6KDqn&f(L?Ds##8RBzdTaL5sdGRSpg2Z2%Ak`x~kU*{v%EA5^iBttj z`@#6k^EKycGHU)LJ|-7HqCJxR(g*C3(mm3HoPpHE2-gLr&E4#FP)g|YtB0y=Ir*kU z$tr20REJCQiw~u!mN~OLR*7rm(pFmDSmc7AG|`g$-NLwa&Y24qLOK!a0P`U85c4qe z$P8>W#5^iK9CIkJ9Gt-!7 zm|6`HN@t#B{vl3}ITMo>b2`RWLD?B9-cSBO9wBCk!@_D9HT!EqYl0|%9tD?TZ%A4) z_mvE;LGEjH2Wg>Ux;}ZI<`vm03oS*hA3jI%3HK=mscxj%u!Io@%~ofoh@Z7u6zF^Sh)-l+fLv z%h5U+Ub#WzRO3|>RIVyFmHX&qv`C?nwSH{<)cUzqWQq=+$s)l`$NVfyRm)V%RV%i7 zp!|1+2J}pAc8EAwOEo69*FH`)9#bOHA%hi`OnrpzikSn?5+fR4Z6qz!H`FNj5sK|T z4a<|1t!xoXq&wVLiT+~;gl6R{OR|FHr#pNVq}^5clDtqeV&^k7mF7SJ;w%bAk87vt z_}Wv130R$xvf02wmn}C00v~Y180?KEk8l&BWZ>e9VRMZI6vG;l;xz1rNU}jc5KBcg zFM2Bh9HHLS@(r;DT?R%sj4(*sqL(YESn6nO5OoR%4sr>&#;PNug@gz(a$zy&Ev#4! z#I2wQ`p}nLc&_k#;e|qOA*V1**A=ei+MubZmwRLDmsWBiazPKfS~?A|GQaS_VbA~- zJ}fLQY8WPfL?gzOioLyyw!ba6`T#e zs+;;bGYyJ|^U-9$PZGkr_ni(jzDrhuV{%2_)ip_x?9uzU&F{$O6d3gE!lqmeGQ#Rb zvb?YO#4%8!5|*fh3i3H)K4@Uiw;Yw@noatEI3&*oe2lijAY6=Gm#1kuK!b0mFH3Y) zz7gcbo}%BR_G`rDFTpXiz~b?JU=oXb(4+%KdZIBE3o%fPaF5Fy>S+V$?^v?JGS4!b zh4PU>UqBIOp$1KKyAv1ulP*-t(+rnDLq##_KN}fz23YA}AL?%)ieWx~OvnTJ93p;% zk01GE4t{75KO*k7lv2cRYP*y^pI>j*Qa=m-G#oXRgH~j~6lK)83|+BUz--pfVQ8{% zV_%RA+z?R|v`z3(DlJr6h1l_(e-LRNX5>7*FI?O`Cs9PP#pr66_wLZv|65r{EvbNY zh;Q-zQk*kLL;9zJ%V=_6ej&(R0X_JinhH^wiPGOrdXImF^vS;ry#o$;p{P$%?BEI- z5FbXt2D(0}mNHg54&*+Tqe#BIA!#ADEYS{yl^*5BWbob{pM7-08M?0rF}#v?1UOJJ z>SG;UW90iVuo{jCPF^6s2gd59sc!o3Tmr4P00TGL=> zU(;221lbGCLDvklkpQ1%KvT8;=C|@4OH`j?QG9|ashGbZ-*+f{hGGB$G_cUT2EVMc z+|u-C*90sBbZfc5gY_ZaT>5j@64XTj_?p;Z8ErlC9a}Y8I=^f!K(ziKPd@?e)`*+F zqD_YD?{y?KY7Ma2sPPpti#7%YiP!h_kxsC!fi3)T97adsTMfE!1w{K3Y@BLv1iz4M zP=Ii#T5NvE8whPer#jPhqWGP^yaZ$9X37n;%lj3~1L!`e`vOxwd^fk?b7~<)Jq#dE3Kn7wsNW(u`7QsJ- zs~&ZNfj{B|RNcWi14NsSCEF&i1$r9o2Cu4!9?N)+H*WxLNHO?eg|HS#+L+#9vDam4Qwk-yZB@?*+NKZ(EOO$wM# z&PE!s(~~eT9?ofq50y03c%W5VrPLpj`?g97+mQIACPWKI7&E>H8I&Lz6C=HqXILJT z-fSg&>X{|b;{8oaa|QSNMR`%JfZ*O z`oX&_uXBegy=Txf0sO_x==Ot@&x6 zb<4PXQuDYkf$mmg3E##+i}5s0u25q1x1@271l72ito3et4^SY|L?0_f1Tm6Gv_54W zWo={qabQO;nILW8IWUQ*h(1=Ks$?REILbQJ`m{CWW5CQYd!n-?BjIziKc)~p-;UQ7Q=07smCG=ks+GLCvu2sJ*Pc828kHNkP{ z_mP0ovZiH?Dhi!0*UVUsC7%W4bI^I{0>tH)m@fWFuaQ0)f+K7R)=3{?iE{{Z3G;43 zxu3XIDS6qEeuM|mL#PG8YAzM)lu)cJb?^SqF z!&XQY5OMuZQAc{mOmMOo^6Zyi8oB128lBM=Y7d!{m>*-N&be1GG`yKUKlW#G^bd;*BHSv9y7ub z@sGLOo8J5-LUM;X`MYQOh z1sMr;*g3FiVsdmt#$5n5Q8VGD z9o-JJ{J;y})S9MMfcT&(S}~`Ur2z`C3EOB#bKL zmUGeXhV7J=;J8VIk>J0k&7~h4aQ+E7_lRI^)e98=dH||jzUIG{&O)c(N1huGW}?&e zXin{-#8-w|Jaaui6mv+S#VsF%JDnM}{95nUWi5R`++z*G5p6pKv8M!WXVObvf(q6`<4F>sY54C7XfFi^~L7QE8#|WAh zw|x-VkXuRX@=I&jRdyn9B2h~0hUbaoEfk#pFjYL5-byp z4##aiw1)eEHZW}U;4G;Qw|t&1&9qKZNbJqN^E>Nrl+#Wh6uEdl#w{PWdOxRXj_1c9 zbflN8mUhLbBv`%8Z^TRh(eT1A{cKAqu_NwmHx7tA^c=_rB12C|QC74^?5zy)CGi1* z-H|X#y=>&~xYo zw7kXdJrAONj)h^F{PBt!_l*670m2|*h;WeP5g`;92)Hwx14f$&W|UwdU<3fjH$al6nFdawDoS|}%MhfH zg7bOj-wx6wEFiGZzUIAKhWVr$2I-x_29tTt+U?*oQ9)E4!E110E3u8(PV6A6iJv%Z zJA<6~o!FH{yiB|TdDTz&*h2h4>>>72>j06cA!>qNqm1gJvqCc z_=WgQNmNX}23`}T#5Z-s#t*Q{li1Yxj;M8x81;%+`+?X%{Mt>t;*WaQ5X*_rh{BFk zM^r+50jz)>v6NU=<*AsQUqO6ML`1|&qIjq8OGP#D=`yN{O}#o6Y^zRxR;AX`zB6H0 zaIn^IM5XjwHVp*BeIhF1_9^19H+euRzDN2iFByVJf0OQ$_@u|AN2C(cLwsi6!-4@) z9@#dBKu;mrc@R7a6A53*thVIa26g*6%YK|y{u|CAJZ?j`pgc{h8}x|ym{>v-5GzD8 zl22(16ziU^kNcbBiS>|s$r>^sx_};=UK@=KG$O7qp1hyDg&aAIIiXN8gZwKwg1nW? zBu9~>$uZ=ey8QVzSzXtAe0To3-R28-tC}#$;o* zL2Z0G&KRB)+j|cVxI!W)vVp86TgZK6BiT$gkr=}lW5X{GKRAZI(Hfbx>CsgDeu zCaX*?KMzuEDegGF4TW&>G0ZrI>BlhV7$zXYtiwjNSZ+UWn0U;tc=3~ck~RN-kbxHj znHpN_TZbzleJkVv_YCulVP-K(HCi=qcu;V5G0ZiF`Nc5X7-ks5tYnyp4D*udU@m^n zjDNYwFdrFaC$m*P_zyk7!ps|{VNwILzja>SPfN#Hh>+DV>=>pQ!@vV48pzDd8M{FD zpmc9S^xR^2A)t_cP#ar^Yxgg$*?LOqa0TB@{e~G^__I-oHCP);yM|Zr3xMQi^+i2} ztOT9Q-Bg1dO#~)eiv4XEzZi7sxQ4&ro33M#E?u50&B&av#E85XsDlRb-00Zk$-YKv znTZB%f<2OPx{zOZuka#|3#AmM7XDTEcj5g)USUUdAUH=QCDR`K3n7N#0(YW?R>SAK zFp}-8I1v^o)Q{oM@H9BDSjh-j#R!BH0ov7!HES8`7!iy}#(KtvjJRxw!DO6bY-DT- z(5UJ@q!*km_@ltD8qN%5>}Mo1JR!(~!w6%fFj5%@7zY`r8EK3|5VW}J(3wLA4uu^$ zeJJ(N?~G%NKN%T}<88l@gZ{pRzk;Pf9{cV#?l>kQ7$RGjIS(O4*k}PhqFPCmH%Hdyj-Wv+Oug zjOZ9fY_QhTz-K&q%qYR78?U8YPkEN|Jmp48PRfgvvXq-Cxhdr-6-HVNlyWO2FGZMw zqy#R8IvZ2Iq!?0+DPL2XQcPj^eI|cPX||-aq{ve+Jhdt;1LU!%8}j`MLJRy0Ru=5X z?`~>AK*6eluz~{xfd#7z4i+3LSW~ceoYg%0g2M$zBHHTP>wT=>53QWFDl~!_DO>=* zVj6;2wx^g;(VZUs+wzkOI0Y$A5ae9ID@ZLkT~JtXyCALLOhHk>or28GA@}Y=ALYz- z%=OHp%-@+Cm|ABD+Q>Y{JkH$2+{`?|Jjo1V{>lvB!puxp1Z>^L{B5i41kdfv9VcRT z9_zGz5_2qO7jt(^0`u81n=*wsEp#$epe#@oND8V7TB{3csHw5%JJbc8_!yc0VE)Pc zi}^P*gL#g5pZS1!o_T@!kXg*KgCHiCnaSicA2Ba7FEJl8OPE>A%kB6zSD06s|1h62 zvzgbJrOao{>&zR>=gb#O=+{2{f4*jZXLd2)FyAuE@kO<6<`3pO=6hxjvzJ-R{J_*O zwahy06yt`z&kanYJsE0b4lxbPFU+q@Bh!?A#FLmPW{Hz-XHqKJVwk=6&-K2nnzBX^ zQL~4+SL6qYLYVuQ7!xq*%qFJ!8?%`Sy+o`~riIy3&y+EBOg;1C>Ww5v<|k&qCIKEDIUOP^7hM6wrrHlSYu=So+zvC2p&UB25 z1A0f6E&H7K{4j#Y90I5~hOeCJ~+uJve_~pnX_!9Y>sTMY?N%YY@TfX zS!Eyaka ztMZf5YTSOb^I$GEs_}QS{_RF1=Le#B@vQ{7Jom? zPl}}u@hKftgJ@`+kR16d*dMVJqu#Vrow9I90OWC@Cd(>8Wyt}-e!+4ps7+k5s+1u( zP%0`BJ?$*9{e#-){PL;dB?RtqSt4Xk>{Qwr`Jb;!Lb=9J?Q5HxV@08*kf8Iahrm|g zQ94xsiOkew$vH{BPz}V3H?ARUfb8D$Jyq;mb{g`lxQUHdh4bv zuX^)J^3rpLXQxEnaUmd^^Ez5B!wTy7b>4Bo>F{41~cqibO$uTDqa8^TTb4Yt^{02q9x~;L>oH`_hBd*)iB81F)&WD%U34(5> zId_$O2WvJL+P(-zY$AjuQn$51vs^?!s)UNS`BLB4Q70$Boq5I8nCxY$XqsTXU_&SS zXN>BI&EQY{b4a?9HkgrUGq@!byGDEVlC3)Tcr7;fMeEVhqbIa^i;up8nZDzWM>NuJ zzI%E+7}4f&d+P44bHcVBSxxN=Fs(7awnU<--Q2GI*etRAMK}WOUQy>ZafZM{3?E+? zwjwg=&;@D^`*3q`FU56X3+O5F=(s_(pZ+V!uFavW%EnFATT*BVK@8YmbgcRcb%g7I za|@@>7_;Z4zrBMNjCT^u_&VS+G~3zM4^+wE2D=Y=4Q$!12CIpj)wg6-4S6zA1N5=d zBi_Rm`XG{xl8%y8%GMt7J-uB&qwM%P**4edr87#Ot=Y?))%z&eJk3F~^&3`bOEiWd z!Umyi^vkpaL@c$hbW=4b$j)EnNp^bJ!qqyZgcwK5wtM%S!S!eNwRUjk5MMc zX4>-G8ma(y!aYiiWJ>l}u)DSOq$q;n=?tc;~ zUg2;ORZw`kFs<-*VNt{@aIg?kq#MuuUul#wqpzB8B&nQklgy))oXfy6dV($GHVGZ= zawgov4I`;maw0IY11ZvTi~|Msb6X2YP@~faYc3Mq&MKNsXan_H!=H=>h>gVMyQq`YBGnvfaU9O~>XgB03RR zR95h|_~7e%c5b_|t!$e~Kyu52LM?tjJ!Ri3h*KIy*Whd&&{;Pu{KlpkC({qUos^j%}h#++e~(>6`o zJn8bJGagP;wv(WXi)MeBx0faly1a10N+Gq^M`GDPwXrI@IIDl|bzdJ%Uf*l?RHGx~ z9Fqd?1pj=52`@MJ6ysptvIg`MA;Tfh4$svS$&=1|*Uw-F-0;bP{IC-n2G`p-O{ILN zgl##<{sVSBt%CTD4bJp&a#Hl>@nIlCMt!;38xp;myLRxvi|89{$E6oHj|qEm%6hj| z=NaGd9gD(q5|>2;iPn<(xj_UMC(9_r#YrUO%(m*(?~oJ=FP;Za4=pmw*(8E|hM!sPH1E^S zgFrh7LE7(O+b8d+*|9Fz?xzv1qo*#OY2&yi!q5aQoV8o(F(FK7b5Q6AjTtp7X$$$EOwr#2is-z1xXBfkxUA0xfp*gxY#~ z$Bf!Js%*SvqVEifzLb#XBVPu#0eo&H2h5SKI=^dcOah!WB7T(HXoR`}C*IE?8lmxH zwARz=Cpw-Sddw%p5_S=%L6;#D^n!45mmL(Ur|cQCl+*~Qc>R_FB|@A0q2%8nF}MuQ z<7+Bfum}o=(pKz_dUzM2)IY;JjuU=-01)G*Ooku3LG<8$Q(BVAVn;PNSt}> z$Jbu^W*W1vuBBK}uUz(6?(Cj*i7X~XUd%j8n(NHHaNeYtGVd{VWAB~2 z<`bW(5OfUs9Xbjffeu55po35t#DMmb;qQI)z0e*C)Cr)SP%yL|`VHC&ZGnOaP+ZSO zXg#zRS`Dp&RziM|FEnI%ELw5~FSr*#^B^B+1~e6#40%8kpr0W}k`BNCrz?~3l^-a? zD%q)INr}9)rL?*9Tj@7Jv!F#F7r4hf=0?p2r+rIkB~B@?kHH>eiHA5(XMS%Pm$2li zQ4rgkvn(i=_QHNLcnc99>_`@ZQmoWcikAMEbkPqLSOl1W@i0B)%Zr>30VPXImX*}* z9RkhE1ivnM-yG%rmwwFWJk2AjfKlYWr%t>bemzr48Sf4BcrAdAp?AMR{?F zx!Zjy>W?QEC7va)te#Oly?R=;NnjSpm8Rh5TN=)NIeT(_&GM2JNH0%Fv%2tbvEUcM zBEe#Kgm_`;f>N(catEbd)FD!OI74btrzom2x-zkHRdr%@%)X9{$ztbp@Xy+R^dgo! z7>606QQx)I?73JKG^ToSXO+6DqpH0sD3{x{ZD@4ug2R*_OG=Wl1Z#{UBXx1D7S6qf78?#8 zx#sgVJUV$|)~;%DwN15k_40+aYdTg`iJ$g2d=HNk9heAlwu*L%c8m6ib}sIp7_u}! zujp2hT&$K{P_X8B;sInzrB|hQ<8QMTiC4)2J)?LIJsn(6Nwunv7cmn=i2>+D zZ=^_A^o_sloZ97uwI8%JMJZB=T19Q56&zEb?dg!p!_^_x{x`#3oOEuiG+m3hZk_B0 zMcjzUiMSbIFTNR-6Lll%depV3opIig?zFjj^RenhhoJhls@5u1m9lD*P~{jiW@5Fg zh&!|7H^Fl!FkhYNbQ^Ig@XGpd0u?qF1((v*5*_ryQBL3xIV6r1XDX4Ski1w|xxRW` z^-LjfLwrbOXVM`nV*ay;=MgU=$|A}mDx%7x%A#IGJ&$6Ybhm#N6<5s|c~Sw*JOfWF zu}UMQ5z`3AXPx{h4N8l=Rc$vZZ^_Fww|IHHoeg~%+Li2uCWkCWS;n2TVdQ`AurJI$`#?oJDa)8Y2-{V{@5x=Kzn_kf#L?Sa+|EodnSt%`rO#(?^z}=Ypr#0O1R7zn z0ke~%&?s}1DQa4_Bg}BJuO+E7?w>!r>lU?l`2Z(=ifP|agE73NGTyk~ZF*MxSx$df z%9#5_H zj-DGD9UDn!svB0^iKk_B-_-ZRvlb(}gQp*MKQ6d+eQ%8Y(g&pzCUK)NRjNV6ieE9J zc1d`=apcE9gCXXfw9W37>r!>`(#U0zweC9lvgoDJB15x9$qMFu%hKgmEPs@~q~(0V z$vdA#{9wV3{NQ?Z`j5Ztv-YoPUiTLktFiwDJ9abA9Deb<@tE7^$pPp`4 z96c_2Y;-AxhA5^8r<5#uj&5^$qMp$*LoRATKh34Z2`ZikmNw+Ozj!!3A8Rlq^EkYe z){b}*FO_$Lm*Xf8E5|;Kq~#Xvlq9q;;%PF?9(P@33dGUOH&`ksQL}zLnxv^-9-efL z%h8BOx_&9z_2Wr-p00ghX3OX=!fR^=u4s0d3QpX}3s$)2=-0w4*!jE$^$4hdSIB$8 zD;w*JEy{(XqbiExTB=Rs^hoa$t+{l$2glb-e%L{{C*ghYAd5fnIK(L5{)ax7*8WCw zq3>h)tLCb0mIuq9#(ul$aw6JT(VIq2#zeeIo|q@$i3%$Vn-;wenQmP}31K(7%ZqmC zYfO8Dh0S85pS9k>7k&$0_hwJeIy-Q2?}b`zN5hMw_Cjmy_&}#sy6N--!~T( z-7Y$cOTELp%ezx1y?|8lIH*lHPqMx`^Z+cdv?9%`2rg#ZJnjBOe~n9pNM~7yc#( zsyA>%o{N)#LhRdEXs9=GDrQiydQgv?F>DyDAF6-!Ai&UG)K=8NQy&fS&RY#>*ziTxD(z%~!}WcNtX{ zSVbQkBXems@&~fMPK@=Q!R6NWh3PCTM`7NY0T;tz@8#O_<2X} zetQ>9t?4Ux50+y8XwrIC9bO9d)`!SXEOFfX*}8?jaq@t6jnODfauL?Zk4@iWF^>-m z>grP_{xKx4?mirHHg>*oPD?51>f@Kj33GPFQhHhS!l&teNuODt`7L3VCzA$^L%|ey z)-6p_U+T{wzGPXg&%nGS`@A$wXcPJ~fA$>uk3PO}K?wyk)NNuRH|ultUQWc%H$OYT z1Mc00ZjWorkpu&ar{_l+DQtUmi~g=&&tb`Ky>$?1E577Vdj~}24M|9c?3uwpm(n^k zLt|}8x611)%0ZXg!OvX-g-U$e7q)6%;5?&fg{-bGsIO~+5T$jc1KOv7L-v&3$h~Sw zoM9*glr8r8(i+|&%&wr$CD*eTpmb|Fy`uH-_!kG}9h|pCNojQvRuiz8`}#MdHTyMe z-wUzvp_aeQW<>jK#y9o-H|MA*g9_xSgN3X+%fcM6pM}euX*616*BY-`Ku@+0Qhg5q zmeg)UYYsaoRU7AB%7g35-~kq~&{Eyns7@U)=&Rpj_6V8#Iou!&?oh+3_#@blBMp{R zeWlj8oOQI*gv`C9e;?bnkmvVD*%t(v}Flcds`h zZkGeC+ru%;hduT{^+Ky1>W=%z{N+mvyCwlvCQeV@)71}u_<1K=b8E?p&zjIr*`ORb7v?n>jSB2`k7eHf^i5!c3Uxx2m1>L9%_VS_#rebcCppJK;=mPH}Pso-J4A5Q8UwKVqifMiGYPC)} zGNE=ix%yJgC8@s7cdp#+$Ni)qU&_6N4ZZkG?fhEbRR68Md7Q!bX}9H~oMlr_15*77 zE#~680;yc~!L4_{xyV#R#Yf{x>E+9UD}oSe=$<|vw}{K@ZyXvhnt0|15}?Xj_Id@; z^yiRAR{N!nOX?$eW1T#*-^Qwq3$B(Gp8sY3)y}22!cFz&9`kH+Jz8(6SHEdN(&L56 zCs3OXSFAzTcuHqZ)!Ph}cFspBBycH_D`x$myZ(}Ulb4%4 zYdYQx06!*2%$cPE2t^@*>sT(%~)HT;E~+td`l zXxR~34&N(+n@#;u&@*xc(v!e$*VOqN_Jq#cpIeIZ`*=Bq6g=yrWBVz4RWCBW36LfI zpN26(NO^i64DPqS7@dS2OBALWjY$i9?{Dha^1;Y@@{0Ox;Q7)H7kRylrTXWtU-IOt zB)DsZ{0GYSXGM+1)4Vq{tCt)0#^O7&lZ$T%hN;1Dp^oxTqB95eoU-o3W?V<|HSjFB zyfJ*cw*fJ*XJzX5ln)$^GkfP4jC_`psu0iXLM^-%1I50^`rFNJpQhE6(yZRuED$Ud z{9By!FR-@YwO2cA)_?IvQz_zxTE5ihbC0nhVURUep4ZdL9nkPwVP|S{6`s;jdX%RI zUXiQr%jc0EEhu>qgT5CwJ{UAh&k>lc6YfRaZ9aTiu6woxog691zi1>)~ zuOQ;Tg0gTyA~Sp07X6Km0r@)I2SAhWpT9T|;z-E}y8UV@c)>ESu;GvyOnqxMtuv=3{=q9Rx(q&Q zf?$TD%?v7SLqqvkAP;iIl1LMNXDf_3E7~pqp6tl4yPR2S*(D zHgnWvBlwR<1UD%jluB(Lk?)f{etlx|WH>%u6=VxUfg<65V-&^%JQVp{!E6m`9UWPy zFY6J+!}c}b!!1TuBwb%^+Ed*Me>as58Ybo=TS`s8dx&P^;its*k=>Jr>XBBqPo|el zWu}{Vy=VzeqUleBY|TyLwj){_V9p?+&o$we@tRhaO7hI&U8FflYjxp+mHA!W@~EvC`aZ!9~R4BIa7IAPOMvuC(tC zKhbMc7omY%=BB*>GTAPSh4(3ZhrkayH!zt zMRO)llIj8fR=>S|M{qsg9b}Z{X^p0IY4{zT30huoSKi)G7XA4Xc|z&OH%ncg3Z8O} zJo@Ap4tdll`LYlB3$D(;+E{Da)P2`zzRAw^!E(Ck-tCL?Zg_~ci>tc=R zVVD6g{L}7&v{pp5B1Srp3SKv8{=uG0&q!4_FSQLl5`^q!Ag-%UH9xKYhu*06FC8sJ zF4S_gV3Qy6l9JbNy)FDe-yxY}uwwHu(&^}4GQYs$E_qVKAG;BwJIwx&okRYIWT+061L@gtQCSkrUpM^Kd0)`<@Mft zsul7*{P~u9Z_;&7T8C20Y4@c;yV+x@jW@g6fHdhW(nS#YI7zOGuLch1eOEVq-uO9a zp5>~LOLo0R zYhIfU|0aL`R|{QTmu|SO~Gl5~lW^aP>vX-(r7fo?haM? zxRw2kmPl#6tCKVDy~S(pXbr!;L2=)6RZbwDq-w%QMvyTSJdV1IT7bm);<+nV;8ME^ zrZ+C5h+`jgm*vO@_z8(Fahzbzg~U!zX{z5W=s8=HlB zM85FP%BXet#ZOa~DD+AK;wyvJn#Gz4JBV2%?3hr01Rm`(eW;=0qc9w~uMy|K#rlWB zN>H;*bE16Fsn-e916dBG*O0hU-K}?t0@Tmc?UxmT78^rRzFtwjE@(2pP9~g~H3_bj z=#eONq}jKfZz*osudD^pY=b=Z75<=ByV0qoYqoxK6!y>RRpoo)OFJsQ&=r>G+P8gD z?wNGs7TbSe52t#-reRXjSalpy({P=f-T+kkT4Q3zP>6wD zB!9EwwZ6JWO7AMam_T98(9qQ^xKF;A-nD9y0Xyb7M=Jjp_spUFy!W3Lg=un9Fcnnk z`Q={wn?qxxELxq4ChIwDYDu^^Tt)|B+2vmJ5X1q+J|bvQOW`k?P!?&~pRxC2XVgl9 zVlAGl*j8%#%Fqk6e;JU__bs=m5_B17%O7J(p9J3^za(<69EgYR53aal`2{v53GWBk z7k(-_e$X=EHoa>^R__OqJ1Lu(ZOV|+{80XP?n=M@xd_gHs2z7RiS$b`%bkHDI)|G#z?#YpIqtbNAZr=tf%T;9iP<*x z8lU%vabj}H9eCyy?MBmGT&S^q)4I&X@oFRv_?U#L?#Qd2Rf*gf8(7-AXQ;#SxB2(l zy4XKjxNp7nduqc6oFeBS_j7L4x~MgMO>9cM4sNIQn-06E`A?gZTB=_o&x~FxY}7Q2zs`w z!be$*e9;4yY(F_G(Vo&ioO&#Ov`7n7_MHDj+JQ~5aw5GVvGq(XX=o~PjvgS~wiFXr zU=5)dSuWJCjwR_ged`WZwX){czSF3~2Z0O1zecs1I=qmGmv6(NRi1X&8L!`F!}5W< zxffz(cs|;dH#(?$@QrEn8|e{XqW7}{<;(MKh6AM`=%EvRnmpZ%F48S~V!5K(uWzqN z{mH$PKfJE^k05=uB~l;klK(DDQeoc$eArI_Fosv$;fV2c@HVB{;MF@nZAiV?#*=NO>`+lDHob&z(ACeGAcGmS<-|w~jN{d~B&v;5K zt!YZQg#_V?#0W{9MO{Tv*$aEECKmE5LTYBqj2;ts%Y-Pw#oh((on@0sbB8~v9H9gM zFh4=i+Eim9y;+V_whzgk zzAIGk)|_2X&`L2G3w)pT;nC-WUg~j@1ShLGt9Sfsf(L)$VTt{00p8^8(A#Qf>LU?2 zh1{L6)mgsM?l$kX1(_*AyA2+F&Wpby$;HO*PTg$AGs#nC#6IqiZCd+TT z-p*Jov{0L*G6_8G<)F&F>`=D>$33-fwcG5!KXVHtoXo9@xHX@Eh`$i+0(+a3#oq9E zJB~c?9E3^_9R_2)UJKaNb}n7 zz;Ua}q+79mAbYqW${dp4h_`lwtMS}EKpz@s++^voK|8qa#$ODs{N_6meI zijnUHB+5BGGh|=wMYq5B`|57Cs!(0aN2Ua%h0lJj)fKhW0a4GfZ2n*YyCR@_Q2_+` zZdUn^*fM$vqd$ap{Hl8)9^GckAp%dLyHK}oA?nM>lIKu`;aa5sS#<_^UMGZ)Vg&?te;FUs{i$7_v3d!~ndvC&5V1rcUto~S!RT8Na=>(Md?W#SQdvK{L ze0d1^pCR?{0d+-gc`i!AbT(GGMWriZSu%BS>*U*(M=WGOF*hSuvZs4ZauqVy%pFU* z*{E|mD@eRWytC)TsPNqQ-71iudfE#v8mm*2@)0x1)Mc|}la5^zCV3KIsvy9kCPhCWnNnp|*Gkutfn^L!21S9d1`8lxZ>u)L=3pQ@ZXvLpZ{-M4))x_War`eEa zgkO~s0m0vn7%rb>ijS=xDHw>5pzcNzYWMvrypvQUkSK3@Oq|~&AV!-Cl&KT;WfbAi z1XA1D6SGLP?a2is+j5ZbwVrn|I;g{NpyJxv`6IousGadv|GTr!i&wz1Qs;>SOPeOmT>l+zJ1t*L>;JTHYn z>ItMqKo1VoUxlFlO8DWtEe3;y(F@7;IVcQ-0#RfM{0azH^L|qe8q@}2wm|>?87kng zLH(1XGJd;F6r%c1fC>U>s{b9L`cHsr*bsvLCq#8riAt*1_7=ZtFUz-~-@}BZd4`i(}g}%7T!lNOWslE^eN9_JZs+Qt5kqkf)#HU7RvPY!TeC%rO7c0vbNe<#BH!l zR8d`vn4YV)hxe)kY1pj%o^${E3jIVPul}#i6xFJ=wLd>#9LQ9^(SvPvN9-5O_r$lF zT;AYw)J2>@Rry0KaM<*Wo!Fr>-d!sqHiED}>Hmyi{Tsg`YB*6u5v+cswzpx+yaL4i ze;L3z#K9Qv) z0c~hd5`*OYV z=qCDuUiUEk6ZFD6VBCr+*%A1w*!ddAA1w+P1g)^8fvAY-+-_!(I6qusIC%AHSA8Q| z6>}4VLZje=-m=_>AZ55$>#hT$0E{PTC{kLX6U`Pv$%rdL^bueAkY2T`4q z=qcF`k}$d*osG@GZrVde&32-{p^bU>;V$%dbT_(ZrSi`g6J~1bzc@^zXVA0g!$qID zvM4!2R?_@hcpVJNom)~%IqOlM)XrP|jE7ijF?yIbbO&12VQGD1d;d0w^#lDAJ%S!Z z|3Z(U$05?1aYbzm8k2rpBL<6c*r?_+NXLI7jX6bop{-?U=%;86SQGwWY1%Q-E{BoF zSSq95>0op*?L#Z`n^wfwZ<1d`FQEnKC$3Dk@4!w=zUZH|@+dZXRxRqb}~)k8BWix8%LTe-rQ3!0}fD2>&ZM)VKcRw|%4 z=zw#B>70=trIy_b=Khs^NkyyBgVag<6uuo_6L`tLu>rkdu&gew@BB-xFJ%0zLH!$e zoKd@}ae|3XOX#y{H+D^0>hMZ}{m(-eAY%~DD_RS!i*f(+#u~;49CQ&R8o5AlHh>?* z_l?$&dH5CY^M1HM+mf$9-~3qcOAI9xQPI{~`5KLx?=lE5m32653)z9l9|>}bgdA?w zY>u+&IE4nuMk+LcpTW=K=kUGmWoFZOkBIT_#KHJU`zGoxI-XFM8Qcy%?-n)wT_HCp z+qh=)#4c#}&X1p92cQ6ej2c~y+1Yyj{M$Km4c!l`Bdn>tBbJf_wI#d|>%5D>WG#2C z&Mz0taD8%Sn(P)A6zS=(A8kQh!B|!>`7>;R2T6-9b0i zr#aC5A6n*fDoyMQQ>k@~GBLm8IRAJEFZggWHxvqk!Y2wSf2=o03BUeIsSa4zzW0d@ z!xQ`MCQlD-^zLAm@|nH*f%R{&Ze9^xM%fbvM?X6WkK9TUJI^qKE74ouBWl;6s*_-6 zYj48@Vg=E178-1yZu)63{Zc8S(6#C3%|c>E+;e{czWw3}s|#-=+A9V;ifmhwmQKXA zvz%x=#A;pA$Kz%CjNJy(aPHxcju|<>iWi<{cdv~kfm*~0^N=4wmR=U8)Q%-kcW*F5 zUHm20_ZIzr-M6K4w=5>y?MRSq*vavLwJ)Q4Uv_)jtBJ!_)%Fqr3Y6tLYeWU>keT`= zNm!lh8J94OcX31|_mmySqf$_}QCR;U#=Ee)v94G*Y>I#G*&-SE`nS77R#uW1RZYGp zO<=}8gqo2o@x7;IS_afS}U=5O%!GRNA;s4Ud{GhK?1bCayCY7JZ6sF%Uy ztly(&gY(v3RDoBoX?XxHa9Cf5Qx2Y3wfGU{g5>n3AGYIFVR1vjOE>IF*@I)Rm7$HO zQz$Q#Hp&-70jP;uFgxaA+PEC74J*Qge6PpXLO2V4*D1*g>JkZh&Iu@pA% zdg~lGwI=qKUEM_)_d(2*tA0c3HDowkpxr(@y3uY#=9$I}E>>6`5>;IhbU7d?3Y-ELhGAy;+1E z&(ElqVK1fiv9dr%7vgDc!mC0jRjG-fwVQ;0@bzs#$Hf>HH>n}l9Hc53^7C_~de=81?5QQ;K71@AWD;XC1q38!{# z9(`A?oV3x@#IionpD%N0oj0l)pL5?c$b;}GmG^>BF64SVAF5q!Xm1;oQpn$vr3$$m z^~B&Xc#Ih41ZE%Vhc5pf2Y>(E1-FarbM#7+>Sdp~1)uLf{3gvtZWwLsCQYmx)eKc} zMfwRC+ui)g^%#N|K?$RbQNegm;vZ|-axDV2>IklqLnNpTz@J1(NC@f8Nhl)%8;Om= zMq{a1+tIbtb)g8$W@GQ{+4d9EQBLR|!R1>l>-sd^Cj`EYZzGG&^|}cN`LW{Y7(|75 z1DlAwiM@qQ!ct@&Ywohe*GKf-JTW17d&$1bffcg#@nt`+`SLNAq@|b)Uv3sQNAcW3 z!&C^{ZHDUN5cYtoly+Tt+(T>zwxaeG>Jj!aHWT|AsY6>rR**Hs`?irs3JU30uQ2FZ zg0k$EK_s&+_;9^Nn^B&C;99Ba-BoJoQ>h9)!#>Bpz~*BMu%0(hYjd_kN1*TzHGmp;M z3faHPYzpGaH=?la>4$a4hu6z0LCW=y&UmXqFvi(G%8hp7*$2-@Y}X^J=H>X0r}0S{ zp6}8gAAWJHo>UUGbEQ(_NV=dtR7@7$s9(ZS|k3pjX3u81<$70-j1Ielug#h4b_{&(??blH*8pnJ&^zAkz zSlA^X>6=xg@M+W(x0^5CtXj2uaA*Ch?Ns?s@*QW~83)Kc?$a$jk;^v2`Q;w`ZVR#T z@4NZJ7ehzma7W)X8LBpf@sl*3NBA#jEaD&c5S=Kt?SX9TKwbant}QytHUytd@J4=5 zB>zC2O)BE1^8wozB8Y5}jzmoxNQV0_G#s7mI+tq6IrbHDv{RgFQ-Xc!i9Fj4W>vkG zI4C>2=lL1b%IKxpP7~5th3B{LHi2=G@BI`jf`Ouyj^@FwZjNf#;cvc zYWsy+EQBHx<26$&*BhUqUaDyCeuXR1v8(=eF{zT!pFSV7pc2h6S;ngczQD?U8|mEW zEl_t|x65LKmUddl^i_A)UeeWVUl6t8F{#a#cvTmx<~JQH@y5s}RXt10)Mj|gx53xx z?H(UJABirvGoS`coYaRGy|2EvIasCA zWCkC~P@X+^fOxO{_^DqZ7Fr|tbi8*D%Xp~Uy|P_ls2oq8PgKpBB(|di%*zjHNjRK@ z?hkJ$v_HNRvGwIfbsyI28K7sd~_%KTi)R;F&F zZ+@{Vn!nTCs4nv|Zaa1d_VCi1Bw>lLuq$c0Q!X;47sxNPBGk?#V<)#pe^0CA_>u&# z1RHh=j0)zr%>9g9%>bSZ5$?y_8~;Txl_ec;AfTc?1rkj)ery(l35bVoU(DZ%6U%7K zl?lBZl$h9D%=8ZAzRd*sXI0ouIbr5r2?+bFV>weSt%S)&{=SS9!)F#uY_S73rL;^5 ze-8y;MHLRZD(s&2G=0nWN$b+Q@$Q10JPrd(WKLl|AXpEL@ekkR>irdMx?Z5F`l;#? z)JbUE%YSkbgA5k#dhsp$9^qnNMT44Yy{Xu`vDKYFYx_UoiC9FSvO!^%pYfHP8&PC?*2d^{@NtFK*`Ym`a=E&>iBmRcEwtq7v zAX%h%$!V(z3t2;`UmCBthddJ+hAmXspjjhSf*A6U{T9K>^~`$;=Pz7E zy3bBmVUZ89Hq_3vxEX%cpn}48Ppwq8@&RpQfoBiK#DP!r1d_%jC}yS>?#@6cYm&|_ zRO~*7Os%`g+k=deGz%7bG-SnjF-z#rREjXIy8z01Oj@Av$9`R!q*7|4#z&A34+}Jr zU!)Hw+CQ-cA<-~(771PK37w#h=mfPt_MVkLhOF#ag*=>3@>C`8kb#{q7le`o{4OMI zx@xvgo{fB{1g^C%O$`6nS}j74$2|7PV%3Bx0T~%mS3!0Zm<(Q)fXG|t$j!E%&u3#t z&mshe$?17bl6EK(Am~|u?F0zOq458Mx&U)!%%3Lz5IT72{YG7KhN%-k-Fb^$*Gq?k z>+HxG-GeAG$R|vMy8mMC(}W`@Hc7=uD2Pz^ zU(AgUQEggjhI_Ne?;p&?wWt3DFt@zwL2kS~9Q`lqelUCRaXrfSY@63liZKTI59&g= zubJ)tVs4n>R@6VJdzZ*R3Q)JS7JdpqH`~nj764tIasS~>H1yze!egHdWpxOBqUSo&!l`M;o>D&BD8KcE{V+o+>gW-(Y0lr)9wKAj0c|Ss?xkx*D1p>jCI42R#L#=OXiU@&j47ckKSbiQl*jaHtpqr(Tv_#e>KR_@b<)~y*Wg#QoFwX~tA0MMN} zYn=kg>+8gPQ}>6~VKll)b$@QXb^(pCE54>7h2ebpFX$%gQRE__D4XC;=>Gs+%l3;> z)A;u8h>(OZa%9sqv6YUGo6LK(5qdWNU(l7L$O%NC8yE;B{|4Qn)Saf;Vj7h>Id+Bf zgO3|MORB9Kofc}x_>UU%9(ttX)3ye`x{w$fiZLUvoAY&tSGm)iCxTI<$<)AnjrT{% zUcW(CFU(KVp)4@Bn`BB2__80jItTK7ld#LKF3|s>Acx5?u2w&(?XJUu5%bP}Kv!@s ztbGHyLD)VykAwmUFlUasqI!0 zO8vYPoHA8~t3(6P?JV^iG8a%~_CmC?_U44AH{ZOoeOdeXd1_I3_H+D@_J{_;p1pY3 z^`WsukY89@QPK=g*v{Q(>I4k2x7O)Rw;79{PkjeKcSWGAVb0P8`=8ksl09w+H!A+4 zNBASlj@|dKw)J`{0MI>d6ITL2_rsj<0Z-cYun2UuI?FO7UwDSTEKX0t0nlY6UCwZE zC*`gIoZPLsJShaA%WvoQia>XMtPMsb{{~&y{mln=tOxc4))TAme)bpu-M-*~FxSS* z4^?;0>qW*cnRgQ!9WBl7$6Z=bYv&fUi9ok?xsSj1d09}02z3A6mO;JbqtXCCx3Q0j z#{7`_yv-(7<(j<+bOSRE-?!W3c}&gVQJ%k~1)$T5)X8Ow4nfx(ie~sffIFSk{2c)9 zuc`0gdLqa97jmtUPb*{s`ef7tOkB+*)?SMmHIQyp@3<8cddynsan}DcX?ev(yUr? zWZZxXhJEoL!2M*Uqy->XSat(hOAWM>ccsWGAIVu|GZaU;ueqykBQ|1>#wPKPajnrCY876>at3r2g{rPl5Ma5bBMP=|9~vm0!W zXjN^Pn$r&Za*KL1-hB0NM&vnKJ;{1u&8{=9_Lw#G9T!4lWgNQSG2P84douKi{c2&u z6;HM%jWn!(`j}t9Cd#r)g@e{EeWbcP$V$Gr&$`~zU&+1khBd~9V$>+sN>&g76^W8+D_)*SZ}dtO`c;`Q*s%7$g&{(sk- zWX4;Ac~LR*i@!<#GW8$8odvg(Q5ExSc3+PP!fljk-bC4Rn9 zW>ljkyuEz|x}feyW_dgTBc4fk3y;R;t^XHrS*>wg+s3z+LhjjKfiDRn7$aEs7|ApLLp>DQ~wvvw#Zev1Ov%^?JV7m0E7GE>eaRMe?ZnqQxuDA(-tuoXV zDj<+bY|pBuhxkuOl^lXq~y! z8!@9i_PhC?nl{P_$h?e0;(q~`<5SrQ@D>4>3mv-(75jGF=&cOEeAo_fHzI)HJ< z0pnVR0LFa`7`GHKuJv=kxZ9@z@*H5?)UNSK0LESYx=^*$C7-FKv7ub49l~CmGLg~l z?dh4=={q4b4llSia7Nl687}@_eolwj5OHN>iWsG$N0l8%VL!#zxyyc-3lH`dL$2=M z)hm4y-@9_I+}TL_Y&yHnY`-Z4xWf=?CFMUrp))m4-Gi zAE-|lm_6mV^!?_CMR>5F!-ByswMc9KQDZeuX4(1R`~~&10p=&x5EM?ryBhwwWQGrW zn&vaSN4VEKDeqI!DfZH%HKb*Qo}aMs^!N_q^d0`iO1m(I@3(n!m;tqd`q9r|zVEd7KrlBh^AL2{S?06brZBD|UJaieAr}rhNSh2lqd;etjDWH?1eWweEhK0`!LUD+_6eyYHlP<;@52xH zZbgd&j~ybl#rfi1Py|LD;-Y&q;79Od!b?fy?#$x)%p@(L0!;7AGd1#sPs_hrT$=^w z;BHd`Bq8B|PlX|JDK{w>elqNaE0lN&|Fv9Nr3(KI;{;EyaW?~d!PfQ56G@yrDp-8d z(Y4#6`EIs5+KI8H&0x>$Q*g&K2Dr>OO*?cKinm635hbEeJwZq-gSpB=)|j|2L8Gbx zeVp0}D^(p5O5Rr-Y=6g%YM7I>^7d$0PEg-=0UmUcrbx08Gx2u{lIQ=7ooZaND&20y zXBh{Ckl^r66O1Wl9oV8(q4|xQVaze>F&i*Nc>`2b?sUkXqfYnJ(fpF_+ArV-<26Es zHPA!>yj>S9oW=Q(hJNI;&beCG!^K9W1nh!Qq znIeI6AsEl3A~gS%L)6@{D0*Vl^5c+Mg+ekagd?w{wP~ z>>Gt<-9kcFh}}Dve2ZqpFb1&(V@8Vbt!h`^{BrD{Hwk*^a^wet1_c-{?W6TN{OZDv zy3I~EN`BJ|X?eLT^3z9d=B2o4LyWLfyBs%E8j4vw(D5^mo{_n-@q%D&J=gB!V}5jZ zyJlCOfBSd07*=HCvZ7zl=zYmW1ZTjw??%n3vU(_r712u02$3|pL zqa!ghXb1VBHMU`99{pOFu|S_GQdg$Tq-B8C@udulJ>(w2>BkQj{s`d?zG#gNMTejb zF-w_4r;#G{aH_@Q1Y3+)H!IH50=G334(K>q5?Fb|A150;~)*GTPfj5B71->`roEUJu0itM91rjuIX&u#E*W{g)C{2lIwTY2lL?O%tk z21a*8f5r?j<9p}*zObT(BIrW#S>fCHOhf_SH;bQCMgLjWHT|0c=#%u0RIVJ zLwArOuERIrMEE9rYii4)L{jTS5diF%&pHXdzPqC5e(kNuy-=e7s;7{sE7`ja7ng1ekB=B?o|9VHExakAdC9vsNVW zOUrtSC?%9KN@ejoES!KR;i>3n`P5(MZ?;=id?yz#8$uj&)Oyqg)JBwO7sV1)LxNdW zC~K4r$`)mZvPY4ine_w*lq1Rs<&1Jc@z4tjn^9Yg(U8_w)Hc+1)DF~6)GpL+)F``R zS*mIyA+LmscrAfa%^6PgbJSB*K4vBrSM)b35B1F5Gcl8^KP>SA^%trD7)JSSTpd*5 zE7TK|G8?&^fl5a`&YsAGIP)kzY60~Cm40GhSBFbO(NS5s zsC!FS@Z4pT5QU&Z4uoN

X4e54kg_*|+}g*QZg_Q?iW~^9A{E(?X*le1_DViGDQV zH!U2?@1aiNgiVhHei>#CRJEK0$QLEDwL`sB)Opke)J4=;)E}sGC_mIb&uM7sy^>F)1KF6f^k&`w{yI+lXz#e#3TQzhk?x zJ=hWKC=)1PvA?im*m3LXzscbdjxwFdklLV3(Y)%{H3-7l;I`qm z<96V7;*Q{s;*Q~tljar|whV6}C?iyqAjm}|Z9C-JB7zW8mw4YyXnZYu{Ix7v7Jyexi|H3XUB z<$>pR12Ecd!mHp{;Vtnb+<|2(J_0y#L-M4cnB90+yc^yFe**7`zkt7p2b~n#d1)cW z2Bm{eEMJ1xVE+2XZwLA+*e zO;ga~o0-`9ASl=tTPlP!Afmsl1)Prgg87OG*zyYv^m*Y*24JK08_0@K!E(KePnCWM zcBFXlEnEuf?nu%}&l_I$8GpD%4#M^;98e$fdw;EM!vvxOH*)1R`E5#P4y!_t{28U~^4pcp%AZwgSLjff zSKupb(}o5_l?GA!z|Gt*?9T+1WJZ?LHHjF(3I|cUK~zKl@x_+ploVQmwrsO_%fCJU zRv`r0hPT{qPECo?r5V$7V~icl*#ktBqd90JnrmWW1c@y-Tb{SPXxU@F*Bm8VCFXBV zF@OH`#n;5IH@~W&V(qr!m0KX%-T9uD%ery8S-RP}pzDA7AyrHl)b*2{V-^pz9B#SP z64G+ezQ%bXsO3rMTrzOPV&4?tC{fHho+0y)>dm3{@mO0Ex`jUWCgLNeraG z%Sj|JxB{f8IY5dkiua3B_$Qh@o1>el&2`G(JP*DCTENWLhm*QUgYTRLf8D*e3^Zoj zsGl5^SEo*Il?gC#J@l0z8FLVdx!!W4+AHV zEL!)pu5xut^;8@6qodMG6>MWL24&*7l&S ztnE!(thLXeXWNP9He!b7B2SPyS8xaM$!^QmQDGcx%~H;iyQb#&IqOSS>ytoW4fEFX z(Yve{r{|?d){D`L)oU3gG`da-$!ps%DD|_{%(m#3$19Q&W2u=;K5>29;d`GDuVfqF z>6xtAtQOiTv|{#(?CB?pG+FJFdZ+ZR=*1hJG>kXAVrcOqaJ1!RHC1J*Dg!*PN`Jv; zVwLh7y0>aWN5{{<6|(nakEto-tu(Q%#?|{#J+1!RP&{O-ohIrOfez5^x3~Ll^KN6}=Bq?`V5KSg zMRQ5<{#*mYxFg$iCGk$KC-357WL&ZoZj1WopmbCEGw#~vROi?WM3c>_E)ToMwh;p{|>jK6%jnagUIDR7!j+R4LX>0LWrr(CvNeMbdB;Iu%;eC5^Ml0Q_< zZhyS--C0t-U&hhPqQoK9DRo&V7U!5MexB~)(e`6-^AaIH<;x$>Yt+^#KAo)O@!37h z{MDwn{Lv59uO{3~b2dOT8Jjz*^UoLbx@cmsspHhqrSH5p?ugeA*I?l<`}n`iLb#b4 zSI#AGPA^Tqd99+Fl7`f~KV6wvu4i8nD(pBCva|d4EO7+4ZVu;XnIO$J?6BZjQ2qBs zNVdljs|^iO#W+*NFKMrGKGVMB_*76puOJ{HvVupY#MzXx3iGqi$SvMY&Q8g8NU~GB z>BzX2pEpCB&r!}LoL?|en7CtE@G3brrYUs85uyr#TqM1`hEx5(W<-(+=e z$N2*P%9f<_4C-1Yw)e7Fg0}lB+G|4^F^ksrGDrEz=bZ36!+SyMP=8D6)>Plr(`j4M zPN(^%sXwmQ^4+Ktj5Jzi^b01kC#xeGoOQZ%H5>C9h^d`31{n^fvoz_fxs@`#bY=QX z&TxveuQL>Pgua5VL~o~UqEA%yayHV7X(ql#C*0W!8?*8sHB5fV;yp4?Ns;Z|p~X{v zvTwr*K{CNYG54BQknV z6oT%1@IJbOu=AZ(hr^f)=&@^lJX{88cH9uP3Pf#yZ9V;vs3sz6b};e+2K&Pqsii@g z90+eS$jM8|w!@r3L=}=(MX!r$9WteWP^w6zWa})t2Fw!+MXwzUZBB`r6i6}JvCT(V zBvQ^jT*FkkiVRwFCc1_)Hv5frWce?U#-w^wwiy=czAo0Q#A%dL_1}Cg`c_0q99VDF zIk9s3&g*OIVO|2MzU_q^L`8-r9yy zWokM5m)(l?6j_PUgh@pfg_{aD7FsHJUsEbf*;S+25^rxMcB@E!hg8Yt{a)|tiVY0$ zEW+ACQ8gV@%JZ@FM);(<({#%sP%aOV@-hMjIg#JZ;Ev=iskN_7fYtc*UY%8bt^Td^ zLyJm3Zk@em@mju+LArQjOIq~#KbUcen_g?wcqkOM1jiQnta<~bSUMl2hZQZ*j}-X> z#r7jQ=yKA5p{W>1l!}3Xsd!;+<+Z6~U!&KrivpeT9NBD9QwV4pDo$h@^w~}bWy|9f znx~4UbutK(t7lVe+L~8`F;G(RAxaw0m>x_&+{G)Yr-#t{W2!WOJ1sY)7$}tL`98L} z!E3B+>n2M~i=y7s-9(;-k5vITy=T+5=~wD?e6PJ;TI$Mh_)juJ%7T13B zaTi3GJ67`}^c3W6!S#X0qyQH-0uGRozPFpWN9sYdkT{@m7|6C=f zkhnyBJUDb=HTS%B)URsmD>By&-mV5`W^9i%e4Ay&RhnvWT(iTo7&)z9#hzAu3UXj# zinJ9_hMDH>bzEbv3D=doZ{VRY!uoLajoKpxZ26~~ayC|7 z6+XyWpJSe5nv5ymxr2)z{LX*t;FPg*2Wvbw>Pmb-mu8nwQsT#Vl0qU)XkDe6&8YHK z&T(NQ4|!fHNUQ{=8_I{NJ;#%G$s?s z5Z^4?gnXEGgr-Idr5&Y>t(Jj~(ZXoqwBs~AS_BPJ@g{v<}>mf+MS>|Xo zYc>lx2uG`#*o@|CmvOy%y&y77?&Dr%>!8T!0WS;$-iu@`dC+Uf3rEJ2hrNDyiIIPL zjd)3rExJ`9N%E-IFE1&wG&wLZ`EE_sB~ab+ZJAPY`9iX8)@q2y*nH1Ou`mc@^1+Y)6`Tyqdg*9Q-k9crAGyqjgMMJRt75i+#W) z4@xw70G?N|ZML&-CN&q@c5CyH8J_XWBBE9zsb#7~V%)ldVqpKnrO(g`sA*;TRC+tP zmc6RI9bBv4QZApn5b6h^{Jkh%$zCa50k=0oUOHZ>L0)&f?s^4#g?QcbO1njG<#Sp& z(;UJuS-@d5GbR|5O;yoiWg zO^nQkX7f5_2^AJcv)a02(uO~I%Qq`DLr|ocIdeU;d401f!;G3v}q@ALpFygNZK2i9xIoR@|hQ_d!;WNTbWz7Z6(c*4Z}f7>o3T z)Ye7M>x#w-=)p9JFGdIYolz^oMz5}Tvp;La&VC(X|Is6aU##Vq^(N1cyr;yakG_N? zU`QmB6}ewULRsK{1>V@T!0{?EToeHTf2_#$I?4dzPltFE%(exi*ibgWr^_M{sBOGd zbr7(uru&Om6E72V?)yIg3es3Db6E+IgjBo^;1EirA`PkqpHi2O)EWSFqsXf$vcUp` zghZ-Vkr7s;YZa+p#ej`fq30BC}yEw5?-F%aGze{ z9}7W?BK4?904mateghKF3gA+PE`0|wP?3tX>$i+lBm@OA(h6eh;aZu?Xu*;DB6TZJ zssiWpQy_2^iB&~%R*@dnpmt@g&tK6}B28+U&(K`lcM5)7JLKbuSpl#;7g#U)t5HP$ zPm!r}*?;+xrey^lqG$$*OrRoX=i()`po!4DdC2nQ%w8wjjTi}0mqA8d3M8dJ=bRaJMtuB?hI(ShPeYtn&n&##B zm|H-1!T_QY@t2a5vXWRa32>5EQbDgLk?*fUSuo?*bAkWTiegoK4iYR}5*aXoW7Bws z@{#_zKHgrAZbla>ld9$g$Eu*G{Hkt;9&r8v;s9hhSp*1n6sc~SI3ke_!F7hxLYtzs zO4>Nhux%}}JEa5@UA#|A4Wp)@2F&0N-eldPyFoq;Jhvp562Q>jblw>Wn-aKsdc8Y6SDCWS4`t?#U2bL#GAw$$H&t?c60rE{n4e# z4t-TMDSbo3wwSGjKS%sWajIVRzx=tEliGP6%> zVZX*;3@fdZE|O^sP-^DxoxKs~FWRwHWo7?lh^SlXPLJ>++dW8!A(?PnJml zXO~#nHuk161l`iCB8EIefnm;AZ($2PVrakaWUMPJVXQ5YuIpe}Ud64iwu-U#c2AeH ziD7QLYxi{9T}{P|XEk!HfKd5IM`Dg1ivd>~>nF54nj&KbBb{-dp~O&TJf;0bYoNWO zjl$OO-?V46_p}c=Pjc#W>T=+qxv2nJAVasZbjB@N_t0>?gi5P7>Bxq3xw_CWMQ);L zOn5}6Tv6@c{c`)mh6X1#yH1_MvBLJz+Nq;!o4a3iPadD<=Ix>R(PYhMVhjCp`~mvO zdd@wydgG9wyA(FFJy$=+L2vHoBl@14CI?PcU&Kj=SPY6&x4G7__Ec>k`%s_rO!5Kt z!Gn1JrzDZx`xGdQFBec_qeOjrpdHr~+JsqYQ9s_=b_Ok;^PpPt^Yk9VCHCQ;*-l%I z?#Xshq9)o5ZaXu^M}s2)f01^ct0g*_jD)bm*jgn%13NFW$!y*|>;** z2V3x2)H&n;EnL9=o@aqs79afK{%`ZF^4sP0mz;V?YOR@(TxWG)ByH6e)^kKdJ#wvA zZLpvJ6Rw2*Uh>iEB{}=xckOR@m0t5wL}AIE`6Zlz_^4r68Xh^Kqeqp3l0~vY;1CoE z3x7KVcjxOgv36hNxYRn=o{U){S=RbEvt8IeY^!Za0VnHDmGDT_snhkN+w`k2{#$Fe z)Sj;Ot#x8Yu0f0M-)iN+-NN3=_GO<&>POSh;1`p(9u?X}j;6=G>Df7MFjQanF)t$K zZ0O}yYWVSdaEQ#Ze1U)X@po;+$g{q(pp|m2df9)W3aOvrcKpGx*>p)3tK?ei_X%y7 z;=HeVx3hpXc_G5R*S5wzqTa+^w|3X=aES@Y3$^>$e(zj`NtAlmfC;5MzDnzY6%aP5 zZF6h1&`AAI8%8ovZbt;^Co)!7S6MCA0k446)V6wmiuf%<%i2hfl_z?+=h=}S7I?fP z+n-HwWAEt(@}_-H?js|&2Q<%cv^w8zNm{Ut8Z8kP2M93jj8s15t6*?;R$ z*HjNNl<&RyRBic7hpD~n1)u0Ys)>BTH{W+M)2Avd7u|kL)64I^WSq8d?b>YoSrX*2 zgSVYYOV9`)kB}z7AvdJAI>Nz4vVZ6zX%Gd`bV#koT93Dew??$Ow|cZjwnnv{*zr)x zr9HZp+DdAl5UfyE_2ZkAfa9bg*^`$%TS?y@v_5Qo(^}S=5w{0e03NlLw^p=1Zq011 zY^`ebY$x@sPOS|DNjOWBuU!L3_`K@W}D~j%ifn~mM5LH7qN6hlrMQ)e`vVm(!OSNUpacIpdE3L zSn#0)ES(Q;pyYY3`IUrMv|Lt2#c*OdIvUrnT;{~tnL!g*IPn}`&S}n7P6Ee=v3=?c zIN~`*_fO7Q&L5m>oa>x(ob#L;oWxZMCga(4Oyj2PNz-m;tp}{=(ZppuWAY)&=jEhmSQ%ci~p`%fD<$RGs$#rd1_j`N=L zjPsoHf%B0=@$Z=pEb2kaj7gQ;E@Bo#mljXm;3e{&@t*Um&ifnL*&Ec zU~)xn(!#aOJ~w0?a-8>KAcp37v!L#BmL}3pT2>as@?OC9 zrv^^-pJH*r_m5Zi#e`{j*3kRO1EY&o!DLz55Mc{*E7O;GnmN%^B0TaIIR=Tl%_30j z9V(7#z%*ovG4VtlD(a$@ULm;4pm%@sm`=!+AuYk zf+`%O$+TtKF}0XPrahC?Ma8P9FjbkBOe-&0f{rXx+1uTl>>?W zfS52-o2kP@G0{w2rXI@?%73NvO8XKLNYWujh4*LnFT_?E)Ru2!R(RK2o=0sjKlA!* z;0{M{S%-Ey{^5AeahKz6$McRC93>nj9alT9ag=hDc3kVY&T(@EG@OasT)O$yW+yXe zGjB5=GZ!=Ms*|!O?M`moN8V2kFdZJZCI>n&9ht}0)-6*9^0|LHEFL|@))Qfz20b#~=iV=(Rs20yk!+DHBEYGn2hqX72YhwBT zJ-d^T1wvMqAb~7wZU_Wa_9PGlj~fWMoa2#z2zvA=2nZ;WU{F9%KwLmkg8MG+s3-wZ zQBgr~7f8Y?O9*>_ke=pu@BPo6J9i$;yygMbO_6kWRnuMdt@_mGeR0O~duA|BUaDBT z(H8iR1^dh}QH^Zb0tM{u@v0NH7eBm`MXD|By7=m%*hd@;TmF{9Uc9g|2y6jzeC_n> z_vHhiy1(>8>Bmx4>3~hxV71x?NO}VgMSUu5EFCHxE^V5F-KZRahdV(x5=bhsk&cs; zZ?sM%yt#Uu_xI2J^IF?dx35b!tITSRo|x@4@eC+Jqh13zV7~lIJha0g@2vjYiYHR7 z9+u&Ts(c$SYbGy_Z!J6$ZyzCY%Y?Eo8_owRHrrPzE1$f>RnGr31^kSIUIHeM;zZ4& z&DC?~5>6PK-dPtFT=B}|=OEX#pleT|NV!io?fyDuheG&v7{^51;M&ebCK2r`rO;^) zk0C<)m>OMYajc{UO3}T(Nq)IYPv2hkcLBK^db7;P$aR^+fqSm5IMX|#c{_;faF5gr z=Dzcr9E0@aI)IBj3eDsGdXCS2oltjArngxKxPu9Tit>WZH49abp|*!hAbk(d(s7#Z z^`v#51DE!N8{h1S5#v{|wzeU?*)AlDIQ|;X|lMb#*IdmeC_8KCOo!)0; z{JBG1I2X{_oqYY^#fzdX&$OGLPww<)dY(N3I8G0Erb7zUd}O<67x}AV$Qrf+X}+${ z>L9r4$0f*M1KG89U!ZEP?R=mzaj9zl^68USM)MV--`}UMk?ZWCYN|2}@w?h6qc^0J z8E2;==R-e3AX6kQ1P9%9Fg=Q~SNnezoHXl}gHP>?p$FIX^)fT`9H1Tt-CW$wab*W{ zU$3Zw@qjY-f?C}I+#jtRN^x)bDXxKf?2T@}g*qWUV!&Jn+y#fRvxLf|hb;XI=X=$2 zq5c+c-FuHlq-tczd?=3f+4XfRbPj$QUN3o)TM=P96*gSyJ{^|K+xG_gHvd(fsCO}Q z`Zl~;uO|%Hd}LhoL)!)+FG0)3myfoIx^^azJg4GEJ;hEk5_D=D*4LeV-hEu>Kqnb{ zYQwa~-uSS)2d9>KksM8%aQenCj`S@x7NtC2H_01ICY?w!1=Wc7<756w>EJp<8RDxBn>!m(j$}45Mm74N#!4ehGFk~H`H4^l zU?ErzVV(mi?Z)}?F%%4x{sRMkLSq@z?2ysDDNZ^eV>JIL0`Y?}8l)d+08F0u&T|Kl zAPqbPO3G3>fn#XQ-usII&(-ZqkysD~)&sLY;j}N8f;iy%^SfL$s+KI4O7u}pDq10eO18i%m5YH(Bx8-5gqesBW42ECz|L$ zfZsNY(r?O8IN&U_X9+T3a!cK8lV#a4q%s^Ww+=#}P|PS4LDc?wm{tPr&UZDc?1;)Uakby{XtDMIq7-k)kK{!THTLTy=hEYin@mR%~ zwBJETGfc&pntg4sqe}xG#3S$r@agz8yac}=FSpA5I;}=KVe1Vt2_$T}OR?RYog`pE zya8752NkQ{Nfhy_3wx}_qcMYSu&mU0KX)5HjFP zN2KoIZ;TudOnSz4GczDb9NI#1ZoZ|5^}4N>ZKCT1Pf$sNXaMT>ttlx)Qh)>Z&-<7F zlmI9YJA#kD^e3nQn%#YztGDXNb#r8;@kdrNyX380ovKm_90LU47;iKm zp{ag>G3KT-lr=9WeNzHVUO~{aBto^PJjM$^_VD-Q3CUuwOe`avm{&+mA$dyy`d$)Y zsLU%jP?xcMUkg^C4jDwEkny#d-FkYc?=RR0MV_ZIiouQ~>rGwV_zG1{{Pk!w=tLND z7im8rYipuP!@JC8Lf=Pp6j^78PkW0WX2_ zjH0Zr)WW2UE>-is&wa?dP^~d*BVrq=A;3T2u1G21ndp1&Y7;~d%?Z3cFR)HrxwfkI z43^|6YF)Q>U24(vN$k$8$IzM29$-ag_}Q0-nxS{{VMK6X1A1Dt3|Eb;oYq3~;jh%H zVs^$l&C z-n_=0pP*eH!_uLTkYmHUer~7EVIE}O!i^Q{^SLP+s1|Bem?EZt>5@Tk@!lz}8?%1Z z$_d8xrMh@7WN`U1wE2fd`YT0Q$ge+$4@MM zXs;)e)!zki76y2RsRX)V%R$I+OZ1le5wNY4B(S?TO;?FOg=IESWco>VwsvQs_C9?F zq;6BAJCu|=g$P6))Jd-5$Il@(MAV-yjT-oxEj&7)-<#E+AuR*SdMz5{#vUuSZAjIv zqTl%2dJ^h<*9&o`ca;HB=-sQll*uqO`d|EKhXS4HW4%gl;S_oY<|GuUX57&Js`Pjs z$7_I9Lz5{em1x%hZD(W`q+PDN?gojDePzhG3Rz6$MAAZZAS7&HIS!8L%c%Zx5l7E5 zw*&&cXOG=Js0&;b*eZoKzUMlP(wV( zWH6UsEaetzh+n5cOSwGWApeMbF5r?|17IkTfCu}Z2XSj1L z%QB!U12qGm^2@vw3#qwej(R(F~{xpA_)B% z61H>AXl7NzVYc!dz4I-A!))W(C%rov`fic$D`!n|oH%~m&JoG>rBzK_nzCz7tOm1* z=ll&aw8Ge1v8|vbx+K#Td+_u)Z5kiB@oGd>&3#^H(^}e4&g5 zCt)**7ywM+wMjexcn26<$2>*>#O?qIP>~8C?}yj&W??hxeaU4!TRv9&-V>GLf(1VF z^pmmPC}ZF*5A~J@APC@oDvu4i@L~YrR%{ZM?#bK2ix2=YyeQZ7lSwPUby5V&p+93g zvCE-K6?hSMlqp{4P~79#P~-B4qci?3W*#n11UFK_ifuyeISdV zuOfn&v=EJ>LTNOZkkJ>qu8qc0g{>_9b=iG(0t{eyuz0<#-R z>pL$eVF5#gsUiyjph-gf&TM)1cIk~BTQKW&+% zPBK?8B{YDZDK*w;ndovx-U8hX9)rP=KEm(z2AE~bkqAEv1Dj{qD}W;df$*W13G_a! zm%(Nbm{Qa_&A@v^z#`P%8`^cSe+%7$NzyNHEiZ)C&0OxJ*~(SBEYEKOVPl%J<^212 z|Hc9}8|0au@|dp${Kq4>qWIiTNJ}?{TG5%kd;9}cmDa4%fC10Q?b%jXoZii_zOy(Y z1J^$OwXiP;<5ogV@`{!`;Iw<72c={bq_Sn`QN>YW9ysgfB3JNk?blQn;EP$6=utAj z-+nS4FcE{9tH@Zhm&^%-(sG&br|zO!tdc zzYdEo{M!k;Rv(ia5IuOSmQ2Aya^JENG||BosJ%WESQRN|m@T_Raz+;$WGobbqXDm0y&qf{w7-l6aTus+Mh0GS*gUv%1VL#{{nBl?7Tpch z+_H`5yS$KQt*$M2;8v?^wkL^v;KjDX6yc%Y`O9S5gF{wr#>Ci{o72tsfplOxA3>A> zM@#WoaV}jmPmHQ6pLTf+%mK0Gyevf0Wi6ZBV|-AA4J_=SBPt&6r2x9FM4b>Gubvq*VZ zDJpunoY8I7dp8Y~A?iW(W8L==_ms9ehIp^+uuK%GK^Q`{s*(eD_eKI+kh2lB78L_^ z6Sb2|E@-2v5oiRIf0e-HJdZ{4PAk+2(t{|xk;?N`Skm?&h9D;bru~m1&U7Y&svzpby9y>w51_)Mg%mD{;}s6T0>Cf%ud~zAr1Q$r^+K zsI_{UxdmS8aN(UQpJcJ;Da{NS>3O$q%QOX+>-QxP1sKfcmmVB3?a{}Ny>%&(hO8)E zZM|coKCPB+hC=@?BOJl&vh?M8>OGN~#g6(17j%9PU?SG#-gsBOIkAO_Ru>(B7e z5etM^@Dt{vKMpn3fG>PgayX0#%po;VTD19~Ra^ex1KH=RNX;P>)4B|ELa0-P^xYwR zcc9A=d2m&mF)b-m>@Z!VDU_dGOTmk_YilPdLnF0Mu53nD+y8WU-1@eS2Q1nlTNW6T zB21AZz7IUV9i6(-j#df z@T%X;T|!md8q2)rPYTbXuYn)_cx6L=x$_L>caiw<^MYs+t`Kt0jV_-UtdQxb3xvER z@Al}k*KP=}#dOEKagB7WN1wg*d+&=jYS*$pfq4DUxXH!XJg)5BkkxrCxP2l&XwR0r zI3&blGOjpq12uV81!vXEBm71xsuOCZuNHRJf?$}U-Jd7eqt2~h>g%=zB7pz3eY1ea z2!I)UvFK4VQ%LS5_!!l5kO){QKLz*w`D%XV6-$|^*#(SKp%;&tN7zjbyHYOHFv|>0 zP;#XFzAb<)_r8#=tw@z-KfMgMeKImOQP-okA}E^iUk4KTi0#k7rI!wHGPRRInV{n+w_lKAuwCNULXbm)KXlMbPi02bxQL= zHu?hSD=z^O$~NgW)6oZLSOiOal8owkW(`PN+ZY<1nEK3w3F9m*1G0Swf{)v0F&!zJ8WPvj0t&AM4mG z%wrUTD0%(&7@P57g<1XL7kv3y5GQ|gT3qZDU5CTh);WkbwdKf<$Zwr4Q(#_}?~v*1 zIzF`FnvS=zqJOMce!$@2rOd!Rvclo!$$oN1+p)L4O4MRiae4=h>HL?3Hro*cy?YFT zg(a?1OR$;ea;p>I8C#;3ValKi@sg}1N0*#lg3y=&*b16|@V{|eE-V4qfE8eEDN|GY zF_BARUi?D`=-meO{B4MBz+A9CXcOBxgKriA)a#$;&9-J$ML0e%q|c8lbH>ak*R!xb z2#*WMd7v*VW=%}@0kkESXm+*N$^ea}p@>Sr2q9nLK=`P}P3T9EVlr2U8W>=U^apX} z=_m1lpti~=c4}La0phCr09Y{1|wB6RVILbt5Z4jVz+e-W-`jY21v`X!Y!pkJvfp^Z^mvW;>X{PJt z!wk9xP>4P_-(t{f-bw#P{JzK^S>nbNRP{P^tF@+(E4oT_94G#xv9gaFwpb{*tO;w_ zA{he5`o||VOe`Rt8tCrnQmIv=lM~v>@zK%Y;c<-ym3NLhJux*ttQu4g4UcGA!EgE) z6S^5yUr#$Uj`G1?9-Nv|kCnfq-_%U-gB${MLt{e#$9;=t5~)ujkPu^KE6)My_U_*U z{k<>()Iy9v6Y%2?RXkQ==AFKB7&x-YabEBC=i3}6k<*w zt!aR6oM1M~j7UHndU?tM1Z!>_8z1QFA08MiHJ(qHoP@Nf!%mUz(>jE$=WZE74+(oM zB0%>qc##o4$DPF>VWg+0Z(u+@(ugYlH89#cEY_nXO~@!Yd3orvUhUX42wNs$VhRP} zqhnJW&b`_`iPjxb^n_23xrToUA7d`7xP0uThMv7l@VjQKn`p3gQy6Y=)-cA?KDHK{Sef-1`w7#<$3*xx3#z9PvV>VYmX;&Lg*U>5!K{R}$G&cx=o*ss5@d+>K}XYQQ( ziN(D!<8g0uaN5yv0Ik>yK9Mr`?6hu51C zPDmSN{l$F*(+y(#ZUJl#g)$(M4R9kbIG)IugRV|L;tB;HUL`4^4J98)Bd(Qoc{2Ou zOoE9q9yE7ZVm_(vo2+Y?IKD-U{xLZcKXGtf%!d~HS%)r)o1A355cW(zZwENi(`jL! zlQudL&U+s*m1V@2OiwouHZJPx?WW*2pHj#XP=P%vA3F63rNRiu+=fIgX-vbiyEDH)c{@l7}6P+vOSPX@)$$2&Hv1#jl zgk(6p5w&o6!&MyhGx!f`s9#+>BF96^?d--eFJ0s11{UYGFBo>)f9&&E44!JGXJ9m} z|6R2pN%8og^^vR7UEQ(&nBVQ{t!J8z_f5DuVRH?~`Scq8fs0idc>CFq=XR04l!A%P z^CjEB-8hol)_pPXHveLR&Qi&eJkHXd+h_Vx(@gX3VGfp3UDGea_TH!iQ|Q>tr&uo> z-z2%`vorCl48WPuPX6`wp0~Fr*$xBhRqe zExP^FVHg7^N5=m1g>HbGNNtMPBM{us3$SFQ)9KXI{T>K>Y1RksN^sYTkrK?@z)T|d zV_2pPDm4|m224D23}|V!4~hoY1(dD76?&ro7(N0#k@(Gnlgguf8lEIDS67aO<=pt& zNi=9MB~HFzI&He-yEH^Q)U2)6IpBG5zYd-s3j>(jH;jq;xeMDwb+>mgSLH(cx*iqnXI*txmeC20K-GqgqJ63txt8TOoFgTbzG05MJjm>>6UwnT{VE1|VsQIL1gzR0rCh z+~ZLRK`$$Jd(97G?X~z~raI_>B*uX0_UkJoI)s=3Qc<3{@6E?|%Od&&% zB1%XN7j7>fwMmi714sVSr8?^FRQ9t(#%06iHjprQJ5*IldUbnD6iY|XX!3-=^rpk6 zZd>IJYweltwpN0!Os(9h%Qb)!`yd&tprD5^r$rfDfd;;* zw--qN&3PR=7KVsf^Gz42a?y)m#P@LlSB*bCiMb6rK>TGVbb)UzGp1cVCs$O16n#)s z3UUV3jpv5@Lw^}gg8{4&rnXpnIDUPBFmEFQ`hXeUgXaW#Pc+0-)K>f$R2z^0 zbZisKm090$ms+oQjzAa^gpSoE9SXfW!ATJ zRk*-5OBRaJW~Eg?ul042c&$^qC&)V5rC>OrK6UXm{`0YNW<;QRO>c6IdjpPuSXrj1 zCzUL;VdB*F)?Q3Ivh3#LL)X(xSV2vv9W&59i<=0#>*Ae0E|^48AV3Rg$pmezwT z#3(7McO7C%Tv0Tlq{#2n#~ttheD@G-g^v48lhu2NlYRu!B`2+>4Mb- z=gp2gQX9ejU0_AT{2}Fwj@U(>2!H$Ed}1ypulq-#FLnv=XPbxqamm+)!j8D4j3k~z zRcvt+Ny!lsV#%Hucs)VV;uo8=U>@=Xrg?kx}Dr* z1;3TQh`)w6Sq`F^Upr#n{#_?eBgCD>1FIFmhZ47%+`DVVeIH@k!1UMFhJVGhMSZ{H zcyhtekz&6h&;5!en@FavdQ3e>PqE+1G;@-ero5Cv^BaBdZTP!} zkB+^tporxoxf{!z^pBV9W#%3EO#?bul0xzl+!q}D$ zG)8U}RYr0oDq0<1v@z;Czwd9WsE(!1Q3T*yt0y9WCdv+{rJAeSqr`Zbwz`a2uHH(1 z_ccaQzJK|&ECuxK=*eML#cma}N0&MsR6L!)Tmc4+ZZ}ICtJYh70n}nFwsLDfn^4Ss*emIm;z3}M;-TgNm9c`uUV zqyQ!5?dd`Fs>0tDZ)azBWPdmpdLvVbOGI~`u6VF%32LLNctGQip4yQSAJq zJ0;MGW;JecxcUrYRqh2_K+XRqiH&C>FuUikZqpBN%=awEE(mUOdG6Ct`t_AKuu=Ye zb-n*$S7Ks@ChrrvM8=E~HU=J$>j_&s-8~PO@z>GTDggHoiEH)W!L+(r1FpW2K7LVE zp549;d#dCHcY_;FB&Jk-8`@Eoa-?rQ((;3yqeQ65=vt$o_M70JlbG($gwJDqm1hbW zDIDA*7M``X+jwVOoBs2*Z}C#ApH)s+1;&W(n85hDkIEmF{CZ@bLN*0%3sPzh7_OG1 zQob>Rnal_uykn60nuH|BO+I2Dq|-qA3R=rsa~3GZthps-?@uUL`b(k!Gq<@hm}g!+ zs6@SzuN_{w#P;{19WDFkDsD%q)0@iY^crob@!NpH z^Al^jeXHW_&tYNMNrNqARIdaF$qU{&P|+$ zjUGMaC}u-DDD_c>CwrUgv(i%cn?BXocdEAd?jXFk-EzIooi~DRD|r51ZH#&B6)UQUZ$h_+AS;*FApkPu1T}n^8WoX3+F$4ZDP?n zms(U{Q~PlDi=<=i$Qa|URe_=Tgb#C-6K`EMrv8I>m7N<6qy)a}_|9(fOVWej;j?-A zW6r);Za=pABW1DZRo;i$UWcb?3q;jzj@4@=@66it9RkD zh4*fl^^$yjx-Pt2McTkkSm((jj(@M3XGu(O9a}QBe>m8p%ZAjZ!9q1bOoTZ4Xzowh z`GRL;43l>6<5?fxi>gg~zL6XYK6WL0Hj*!UZ5Jyq^%b?ha7svSah{{+T47&|OsOIF z(i~Urdh-!YEAFr^QylX(i8it19Shvwo0bp?uK)JqX}VI4IGKDv!P|sU#++B7M$T}q z7R(=tLniiOO#NAhre?AJ-hIO3zN zEtmGr>iTJTHd|GvDM+x~wy8S)E?Ica%IoVZmVWcRcU`}e^jf5c8Sm+FsZ=dDtlps*it*jv8&#f{-R$}7 z>r}*R$LV!BVL#fty7tz%?g)BSIHxd)fjN!D)0Fr#**vpArHuM!!4Vq-7VnX4HFluO z@JM-(;o@B>NT4w1EBzHymR*%&;RrlGwp96<`9t1B`m^}w<5g|@DIaj*6tKuZV@VO- ziY@-L0~yz#z01e+cuyUex3MEfYHsSWujU#Oh#kMvcq?8EI7b{s7pf&NDS+R(zYc0mx~`wIxNIrgF+vhpFIoPyg>7&%938 z0CiESAKwY4u}O13&cTWrdbhuGyXdj7DS5H!=~6m6S>3#;K9MGQy+-)+Ky8-)!$8Wf)Fp3pnWO`*I=vfL4qY=e3=CN3M?{Wje_1tY zQH;?$mkcvuWhB9nIR8%WBnk0HtmAYbJif*Ud&@~MIv@y%!3=)C5U_G4Y7Y669t&^n zI9>#Vh9R7pE(zbB$fu)p`z2a`dQHLkOo=P@-s4JEvBdRdPn{JVd&^^ygjwUiU_X!P znpI%I!%C7eGq5D)v+8sv@AJGRw~IH796Finp2;LRV3H|IS5j=+-{#M|MPInZ2v)4kR)2w?63f>3G`qi*|xNL&uLDakah?3e&q#e})DG9Xi%wBu2TPi_AuS zwku0n>TC3p$%Disf%w0;h@+b{4AsfNGOoAb6!irp7w}dYrfx?fW^`8Hr?;V`s+ge>1RwDDhO1u)gR#uQKZ5@97VE zGu=S~CKkuE%P9WT=q__) z#+cr!S+JP!0Ejg>SR+v|SJBVUT9nDBo2?I{^9Q%7vHQ>IY`9DRv2YRUVHWsY1yGKj z-Qj=Q&Q3K?8WNe+85@WvR;%CuPMY^Ofc*bQyRmdtUDU9U|>N4VM+RaB^GXufxglf-i-qwgIvQwBtis( zZ1H61JRdknH*c$e33rZnu@Po=2n34hFJ-*+vwXOtdPOF$cqbO^DtTmqgCPk&*lA(ROSDrN@YzTfB8&F&1O_BA7=Lc zQ_`6o;QxV(`QMnB@So!m{|gxNzo3}#x@Ky`p2YtF#{4fRCQ!c$aEOEZ4YS?Lt!}3p z{&y&5$ugeS4xr90T;S>4y0~D@6(f>GqD>$mKxl159LC~5YzW?sf3Ds1a~neAa>!{h zBV}!H^4g-mFzzV&y5Lj6PlG4ZMxslM;A@gSOua;(WB=YQeu>#%#hY5=uF)J=59XLH zuw8%Jd*dqZ;8oc{K@m_`hu-*l>8ghx10*&$Uh3#n>;o7X|)oT zNdaub>4Qvy&Ef^$IUBgGtHKUmM;}{g?(=+l8Fn}KSH3;Bjf)>~D)L4Thqd4%a(2PG zt>a#ZJg97$!!3s~?zBGysINj%tWMSvHpc3(-6!qOZoPS_zNZ{cFMA6D;{Pq$5?QQ^ zA;D7?Id(2Pr;`u|QTogtXMW}0t$K0ikD6TO+TCB+P|-xnnMr)OL*Rl>>ee(4BlOhx#K9G@dIdk{! zjKt`S%*2D4MM>;%ctQ*jOJ+yyHi?SHS2HE1WRu`Senr z6g*v+`Sj_NYgf_ViX>OBCuU}6))b@#CT2zNjtcM0spXlF^WCt%QRMLZ8St=nbS!!c zCGYl=3}l4OABp5Z*4HmL=3s($e=qpkESyOyOpK0>;(G>oWn7JJ|4eH-nRs$HrjKut zVaD2gBoST;*s(ivf2+W+@M=_vEi(~K%VTC;yB3>Kcyih9aL*XO-P;Y1ZrwwPcFmMv zcgOb4S;=$8N|jtiU0t6O^ikW;PR@vFRn;l95R+l?Cn*Dv57-BXhAv?H3O;cxR#z{j zM^aiSKAA+Ux3eJBPms~aD)hU6IUOqqiP?D0(-@SvqCN>+s7h=5g$;f#RxBi7CvfR^ zVfi^z8=O?C7FMR8Y~g|hO7?&XLN)mi*(EN)>W$n16=OVfG#=bCxm5P$!J^Uyc6J%Tm;U} zs$SbaBb-(JR9e$QUmq7|7ay;GKSjEr&W=)?TL%`*L3nR%S9x=MM;x*^*gL*#*UYmk z2U`3LHVKEVtT?q#&Zsn^Sp4w72Ist9s%q`410Y-JLgtX2GOCyW#Yw=SvIJ}^iWS*+ zD#HTm0e1Zz8fufUcC|789GV`)i1#04kZx|u*ZQ62GdJJm@#1=Jrisp7o40d^Edo+r33MaH@|@j600Pw>oJ*{-Us3CO#Kk z3URkQ_1Qu}Pk&AEy}Hy5aAvbYe@QAr!rAGzE-oR@&bd>ZL)IVD#Q28XNlaMc=lMB& zi=S_nuS;kDLiWP_F)kRF=0Mx4v0l*aWX$`;y#q~#?0|tm)ygxBd~#79Cbpd^o*&fX zXW_{h^cA$9x^5_N#=0d~a|C>kezes32!qtiC+8Ty3b(qkSZuxe(s@S#`w@RI%EtC` z@3S^&p-aMf_rKDwc5k;{Kxx64Mb=aKwE_&z$*K#g^4N44Opl1-vtC+69QFOdroE^= zkkO*DWH+$;PjzRV9U4sk?v*~s8I;JQMh5$J_I6O%8RV_A$&9>P!!pPzYSEyi&1xT? zzxu748^m-Qe%XJR!oZ_t5l!)Di$caxywT5BAI+R4LEPIEMTNSo_T`yGM$>C(6l&+$qDpEGl(litmfSH&JxvKFe*gx~dqrag zbrN~?9o_^Fi~LIJ(Ch3Xp=!h0l3St00TmV2$9-oj_^E_=bH$2mFW!s(7MIw&3%jiCiqTM3 zam*|T8Z9oag?8rg)eZ`mljaxxTJw4%wO{vrpl8xyV3utFW}vl2bINPLJY7=H@O2)k zK@YxtW{`ZRbzo@e`~KgMJK^|mo%I?!EJhci`%&=E&J|s6$7H${mn$FPCcaL;e)eHK z3p%eqOUG7o$z>|MPXwLAVo@n6#nXfSc@^&Db4&1fE+o@_MYGB|-tPR4kkxkB=H{#` zup+2YwPT=dLDT~Fr(oNrd9CFRtzf@o)}~utgmP6m&zgOE zz@3inuxx0!S9|3H7i!=Py<_;jB;0NMa&hiM%*ITdJ)!!~a@MD2tDW};rEId}wQ<1B zCI6lJ9Z=-vYfJ6VQApn7gA@Z z@KB@8=TPCRDWOi1J$Yx~SxvL_g-(8<$rkUDDS?<+9(8wMNh;98JiD;jEBEB%T&S^U zUV)PVxXoe6C(`Ftf`o4O^qb^^-GHr>puE~*v6IKEQ>j+UOwwwDE!O20NL(B6pR5<^ zdit0WmPzw{!}oE2dVJm+I44nJ-N1tVP^>9fhxw!yOJ)w!g{AQQf&TtuimS>~mJXzEFc% z)M>jt#uRFmWxWyA$;qnHQ+CrNVhP`RN1)A0@_RnYi7(*uEk1(+jw^G+%i!RsfwWkj z!1#sXUE>=uB!-D`NF86pG$M0L-iL{v=%!Kfi2j{p2QxFb9864vtCW_J^mD-0F5Pv@ z*8x>?;`Xy~q&+8^*;8F^wNe2YRrqI9OY?wErFtj`8z|MhGi=axCBL!iZ$8qaT-wm& zIhv3apsj8tFKB_ApE9Jp#l@n*V)+MW%TF!+_Ws}f&Mr`O1e-WMN1pEuz7}se(sn0n ziqn|(b@;mdd^~eAdCQPzcXNq(89&jI(fO&rgvCB-QEv`=@C_&1>-MyNKd6HI6Q-E& zQob`GZrl?n2cgoG5bfzJuH3$2YRNl%zQD)jSiWPX$0onD>rPLpMf~i8(rcRfOiq1K zA>>_DP~?<~x)q(3B?ELjy^*e1iC|!3=LnOtzoMLOnnEZyOx$&RCrBc@9D(m+Y{#*hDMUmPE=pI z6UBJAgzITzR8vJ6xBhd`kIvDKh~vrP=}W{z*T^H`XU4Pz#9nq56iM>sSQQriy0_W; zD);uNWoMj!PV3j-|J=#tTUnB6Q^3=d%(U3t#8O(|4o#TFqK@#o;;h1_ntF!d^5v60 z1P(SxkPsCzSJTA|G)p9eK1O0<*F>#xaqj6{nHsV=^i+cEpWSxVf6q~)F0Kx=Ub)uo zHc@ctYS|i!3rfqUJJ-?G68u{MrE8Gyd(`fbB-s7q&M&2#dZMiS*t0w_6sDF*Ad}8K z^>lKcok~jaWmBX&g_j9)h_8tXCx>e;F0M6+A`i`(5W5O7AXzfPguBTH!!yjKA!|;jS!9_vn>_BNFdEXkrEG;B5gnX$P;A-xC#?0aebIh4XS^`6oE;M= z>+??{&p4k6K2wy|ppbG(t=??4z);qQ4Rx2+^=^Fcv)Q}`Zat-cHA@`^*LJanuk4`k z<(T}oYe#y9Bms=3s#8VRdL^z`F>f#)r>@A}5Pn>%os~Aru>%QI(a2d{L88eqlRDVsJTs^+h#o2TN+L!1@)L6;t^wh(Ar{sSD67@`Zf_Y0)!8wR>`LN! zN0PSPvj+P47HkUVA)`iOW%`W&i!P}t3C;Lj9b5S>uRX3voX_NT=dV`3 zl71jZHVwSoYk6kalJcGXk)0y>)%twHSH6)n_OB8n{-8v>kn9^mrbG^{ztskPb~CIF zYW8&rJtM)dij2rhJ4QQZrg2%eB5moH*t|m8HRDU(E=zk57?)XxF%D!0_e{waGS`Mz6!x{Tc1mvAaR-+a3>Fgn48Rc;Y+m25?i3^bxr zhOaL8>Y53?<1`x7X8Q*&28&Kz8@j$ic60M)}J>4LOcjpaGL5k$r>9U*F4>W zSu<4Q{+u0%?78I=Tfbl>b(du1-TMQbEy)t2LCTqV&z^LBtXQ0hS%1ryoOiO*ZR7ly z)E54UPK?{!UZWF4AC90!`_+~rI6The7v7WPQ0}%p*1qqO)N<;QNvBzNpR_>{4ZF8S z9>L%m=q&U0hP|)LU*|cYuid<6v579&>dZL#o<5}xt-RJUSb8*=;^5pio0~Y$#k@7- zfW;)owL!ARxW)VppI3NiN|#xz1HPKd37@^ z!OA!xyAJNcUXdJO8Tn#*!#XxDR<*4riOZgS3jOr=<>z3;>gFc?!%DZodz18{sm!y@ zmO+1OYssRH!L?-Qtz;;lmX=+}*K_X zHLRvO^EP@iH@8M#yVo&N?-8^;o%_WJ(=U-O3=v#0qIi1W!7UD{<-11tSO>=jV)lmm zwGZ;qF6Lgs1mEd^aL7e!>GF>iIf+D6Qe1+<(RGqF(%28KQJZ(?xwW}0l3RTF={cYL@YZ^{|=x)fIQoV{5bh4rO)0*D=Awud!l>K~cR> z#`$|i#NG#%v%eIVZg9a2u6B`V+nK8)e+)V$DepP0aaNZkIg})6N@Q*kgTd1+r9u2v z^p@xlU-$L0$xsuo39(U2Qer#*k43tB{|8g=8P&x4Mty@I!6T#sf{>1a4M+j$AtVtz zDm|dbLJNsqQ6Tgdlpsp6Ql!`^Dt0LBVN+-I6+PusnCdI(BGW)fxhgR^8CQ;Sd*nJ>0>}Sd z7@Y|#kAa$aF&-n63aE4&b&{}ZycsIe(WAcCIL#AjzQk0Uh>b0!KOjeUDN><>o2|mgOjig4}z1U z4Vk+nX*{TEkc6eBqbSR^q{D!4P%!)o$f}sd?tb}!!faI@2DwJARx4O%K91O^SeiI` zc%Hg(sR_a;1%;-YM{d4o?T@#zOoe+xYN1dF(JLzn*y-r$PS>FDd9->-=CK9LF6MfU?OFw?US{a(Ko7- zIJ;@42B@Ngt+y1+0zy0uQ!oGg?2cKJ za8@KwDn!8*%16!|8B0#N$?8^^S{0#X(-wn4YK~;bsl@euA_G6f+uMA26J4KdNHt(Vi3q2;&YcSHf| z)XnFEe7Pb2AX*X#@%PR3uibE zrqRZ6TrSHgh%?^=oFFaH|Ep5yF48jb57U@cO8D0mt6AuQjSct>V(RPozA3}iXa#dW zY~^eo*qRkQct!bzP^1_&j6aZ;wNA;Ou1u}0Oq5Mdlsv7PEZGNEcc`kY0?<0=c&OUi zWCMABJJ#M;9?-I65@fP45utl$URRa(aJsL(9o61oTnFpxLhbAGMth&6$(PbrZ^N)T{LHp42FU3z~o|BO(gS^*nRkXz5s!2_<4CB zc3>8ZqDSr3J4h4?!V}VK+Nla;`MR{3=VgI~8W-xI0&9*w=xfJgg*7W08dyOOnT!+e z5Wok8?H+4xUw{#9_IhZ*iNq~$E|Kw;25N!!c0Kqsn7u@^PJkQ6Xkck{e4B@nVFR@U zAd(Cytsf7OojW&z{*HPa)k->yxw+qdN565i#*it&>r$m1kV@bv(>no=G{fUYt%rz9 zy2DTIg;pH+tU*=9V@c6&asF^PY}O51#e!eUd`ItpI=|EdC)kW^jjO%|7X97gnZUw?9MR0uf{Ir8t!aH69GRg zbWwY)_gGG8e-;rJD*wlYc6+u&e*_n4ZvTV$C+LqVUNJ)KrPI!V2N!m-5A3v<2@Qj~ z<~kZ8HyZ|U$lP7*7+Yr-Eu#*VM8mM1xTnxtmX3~-YL}PDHeCfhVHSB)v%XeicRy*D zReXT|ss00tKqfViJ?RM2`+{OJU=Dn7Q`zVaI1Jsf&HxuMIdeFIL ziVOn&kLjgtK)M|L&$v<3fZEDBqpXGhJJZNh`3p; ztJ;adiiUoyYr5?%n`r4Nt>?jp2BBN1=L9+_S%E}C;StBt-1~-OJ1pu~ibOnv97y?5 zaIm4)t|P-dy2jpTxvq`-zzWF(I}dZVE`wt61g{3}WwF(#9e;_|jkgQla5Jh4jr8fJ zpLk=~?)ByJ))zcvFX`AlQdA zc$%%FF0o^WVm*EY)*%#(VLlI}I8RN$X~?_ZH6?=Y*zcO{Cx?XEYB&Cn@ZG`RHV3eY zGn@13j(atB!MtCP44;LghM6puH_Cneip9nGXxkh&9Rq(Z+>zlCv~JV&%?wBCyBj0@ zIohq&ms5#EtoP;ff2g*R&uIt*e7|XZLNa6J5}X?5_hY$+unV@qFn8YkOjC^qj@piA zc=#FGP@igp3ONXtxj7-!=|d}mQ)An)-Vn~t8PRYVi4Il+dj{yhBE~!KzH_hyS%*Ix zp_?brzCBmjnnm|SWG7^kk`3v%K+PsC=G^EB`tDa++lh7jYB77jb_60=N#9@z@Qkhfk% z5(R^Vi;qw+nCraS&o=ENZP?If8LzNzMvbNf{E)(A?no=NIBY`y*tw^JSah%QCYBU5 zHnN+_+OFe~mZ->^D0wCkJ5E5ee35kR$=GShp2k>gGI9ps>C%r&kh3UB6W@T0c03Ig zfZ?%cWiP{kIx2Bils1_3SNB;(GGy;Bf))WCdU_xMZHm73*6NqAf0?~j81}%S7ouVJ z6@Aumw|d95ht@kW@80c(H&FlRlWLD94DZuO72Y}49@>q4%1x%YazhF!fLx)0s)-xv;PIt=b;>RYfx zR7?Zv?LSO^M$_vkrRAY<`#&~J%MwYY!3rYdtve2t%LrD^H(*4ZGo-4n*8j5= z!sFs6)s9hh`)DHFOlH0H+07{^zG>|UmY7~VL~8hQegh*@%lL=6Jv-TQ!?s68O8VsM z)WR7(1mV!mbrpmG^7RMp$fS+kGFXOB94|}hadL118evCK{8dBZU40oTx*4F9)_r&k zfBM=1(KhJKp3;)6?CpNki0(nxIf1U>xw8#6#FShu$fz#C0IA6*V27cue!?M8E1H-d z0R`g_my2jJQlc@*=t^dL4^_i`qwpyUiM*I!l9Do>WEXziGLcUVbQq`O>;!$nzl8OF zObw%jjT&Gn`lacXD}nx|=ONl^aItBd-?8EnoBl~?WIo6{e)mPTAw zNDyc*Li%rjIs5FEHZb~mS*N7(&_jJ*5dkSjNlTfwQhSouP^cVJ?%!7ODeb| zCFpAW5)3z`5`ZQ__%RN2CT2nTIh)%9YOv>LqZMaM926(3nx8Aq_6hA3X90yC-e_P@ zn~_|UWf0f=HOA9g!b!QkZwj{Bza+;tBpiZ3ApGb|&i*=iF35=&o(~uDXLY98}pKHDDrog8~Xc)DFh8< z@~r{dJHAe`4m*pQ*ToA{L=q6chs7=w%5S9&l~KcZwwHXu!s~X&n6ZPy_$i^#bQn84 zrC^!sKY@`4^0{B%6TxAU$HnbBI<64ytm2_-DPioebH)zf=^ynf%B!74#7|$Jz$nWL zMx3s=c?36%q7CiOa%fR~pIoKA8ro*#2h)F549a>@=%|v#$5O+X0r9wAQ+-(sIyIlA{QY`@?1bO!AS= z-^i%vhr>n$wON;P_LoWun9^fDh^uZkBSBQ$2pzijF7$JbD!3 zf~xG3VvOAzrRZDP=|v#w8E*QmxOf+ybyiznHb>m1aTkWoKE_>$KTt}%q$XZUtbGf}J0F?K?eLgx?N((3Ez%QsS4Hjg&`=QF)$)-Cl{NDrwK znUG(-$RIGS)iFvGoT)G$tQ>E8WMtHI^zO^COYPvho55Oh$@X`QBoc;lqEg}!NmbNa zP8BDLoq&m7^ET`Rn`6!oQ44z$2Hkg#$W_-2V6iRLvAf@LxLd9M(Lc&L!J$G=DJ=m% zuH4KXkNumLmtB)Md^c@OekRZs1z~@WiTIOv;hOrNKc_R^TS1h}_|fk#$%=nbo?OZb z?k~O+-2Lg%aiBn>gXcQRcXSAVc9!hyGwL@}->(e6QY3@_hWA$v^~sbHf(BqyLsB1$ zZ!tLc|E=M$|5V5bq(ROy!bISjA zIm;+lW^F4&_=ecb+LqW%Lp`nL4a?~pKEwb;2omkr)tQCxq;$hAdf#D5&J>cTepXGb zhiMSI%G5ncCA^CG=ENJ1*B;F3sAV0H)6vKbs&3Mz6W$Uw^%e0r{@|t%^)>PTX#=Z3 zS@mjlbwzG*Zb!Q^yF8~fyS%jYABzc%($dwkjjCpAN`cCX%7S9s38ll8UYABjN=;v1 zd6aYHud`eGnmT+{ZfS1LGyA;aziV#uivggbdU=(vx1VqJXN_0RrBpk=2fr#ylT3G3 zP?(z>4ABPK6j7jP$8^BvZ()IQ4@ZM1#&J2xpIXfk&(y)}|0GN?^9Dn#f*Z5|JgeRS zfjU-ioF5`8l21BDsqD%=Ua`kdvAK#rC^_N(-`D-#TJ|FVS7|Wt#3nSRq+l2ec;! zVT(XpZ{u?e2S41@^qJ#j9Iga9Cf)_}#^m5V?! zcOA12}c#Z^A6 z>@Sbj2tCz5SFfcp*5AL%pKYbG0lcBV#i~f`)5sO2Q(yI?M5|mQgZa<={zKizraT!+ zB@lC*YmjKz1OLk@>2~1gZjU2P_OsJ)qPWenzC%8}L(O?n&@qJT+fmo3Wj7>PSgcYJ z$myF%UYbLv3Vi~oEG65OZrC7gL|!LpXj5~)@>-l5=%3(ke1?Nh!~EHd+6NUj=&m*clyAePL|oJC}zC1U^DXr)NH|AYEwl*Mf{ zk-*0q!1Zy@+d;0wd+)Tvrs@CA)>!H^+y198$mx6zs)Y~2o?{1*`nZiWS9__v%)Er&){+-ytF#TuhvYkMl`pb!d!fJI!bBun&DF|wJ4(#vExMi}qpY#S}(|did-89PFyae-wrjWL=KW}F4q?$ zXo%&a2j~wAaY7gfdw*HBs)+0p%JJ{P*6q_6rFC`uD_5@kQw|y8149vMy!0aIrL*c) zi7UQP(6!VbGH(2$@2Lob2}%@xugvP5eZ?TwzVb?85GcHsFC+QHU#(zkZX!=HVyBuO8CY_hbXfe@K~yv zY=ZFe&`H5Q6E{V0gj6P@odV6yJ*I;N+2qVbC>;0qVGuc---Sa`5 zj2!har6!(9*iIuOZZrhPUcjk#R*Z6rz;)VDS^OL>v^FFwHuUC~6jLi+aY^Th@_g0( z3b0mX;)H!gagj^m_sYu?Q--+@-%%4?5?`@O$)nhK)xEB_-Be9;N-yPJBG_aia#Q$E zJZlvW6+!SNz%FjgPEZ)BaOR8JIO@YiKiB^+;CH3{4I(bs+i#pu$J!Gib_WMb8z-c(+)2BQ9t4+P1 zdM!&-*c6J+U*CujPm=UTGCpv4boN@ySB`LH8^p!nNEt!6h0zW!!E8PYmx%e)Y z)W^BHxFCJA@6E~1iC2tg`eW$!5q$hj$8Hu)C{15RvSlsB1-v2oo zUrqYK_i#7lEU=E^Qq}5q$G}`$+YTzIk|rh5Ek@2=r{%f%j-^12@zFr_xA8 zqL63ZCScf(u9#`1;#uCkph-nHtB%eS1Pry=cg8U;3U-deJnxaB8R1R#X7kfR*+(Yx zLpxl3YKm7(&VfgMCtu0R(plq7y~87U-pY_sm)j82cUNcnmz4K_gqeze^(tQMS(_ zbnMy@_L8T`ZV0iMNbgr3c_Rh~@XzlEfjWhXQRF5p>N3i(zMEo(=rb|I<2!`zNI|EZ z+Ca5y8f-5JR*N7KZx$ZLzFq+GUaAPx@C4ab}jRXxuy1YL+(XLC-Q`mIeWWsaR0704$v z0;)^o{`->|!s_P9=Eo5!c=*#V)A&TC9Z#!PKTK2!&3I>3OXRE4wu^ZVIje2LvB}5k za@jy2QY00pzLQS0NrCGJ@|@?p)&7S^ex!Uu$#DfZb5(laHNVA2c3Sh z^-jdi$tcTrw<64~d@k$hMJL|h2xO&$hYI^}R3$6*#FEOZ)l{XAOF$}4jnKrDq#8ST zzN22kEtPD2asQ46ZCmBGg6z|TI=yoK?3%{I=|xn7`?qt9!N(sh=c>Vuv&<6bFjY$> z<0S_yJ_TZuHRdab>Mk=ScZ=_4rwkQ(3scj627n8B20u%T6C@>YBvNK}XKQ*-eqYj9 znM5o9L+W#$($%>_p~P5HW$cIP<4NXhP|x^VOK?}W25`5uiNZHeE~WVxYA-e6pE>II z>*%~fq^0Y$wJP5zn6V!oj<)|k+1aTig5Dvu*-1g^Q_|KJtI#zViNr)cJZ)#E;1w`5 z&uoPATUp9JrOe(T(@uLsx}&8XnF+McZly7NSCc0I#UuldMKxd|(L|CX`3>;(qhh?% zfP?=pV3v<3n##5>!^h*+Y(PRE^ir`nUE2$x1d`0O{$B96udQ$)L_tkV_nm`s^JIeA z3RGX@y={EaQw1%NSOS#Z%Z+U7|4<3DrM;UxmZs0rS1#%jwpC3%sjP0R)G+6}ud3K% z@~fm}eoAf+|Nqi^+1JveIBferK=nMd^{3JBv+4eAJ&S@YLY77QOv}8&Gh8Zm<37qH)-}YMP{@ z|7uc@ZFEs$;*M9ekA-|;VnKWY&p6$5*|?)9Ey%a!1GPqMoHaDq@fR80oFz~1?~7H1 zq>D_5mQCmRrp4C(zT0S=opmehwU;iBRc&f&GOJPh$#_TKMJyq5+xSZ6d8d-pZG<*u z>!mH-hb2P<9je2eS_>w-6KiOKhgl!RgYf;T`Dht)tO)EIsy0s%;fz9Ia@$Asw~ee< zs8gO^>f1W9J;`2V&JgA)<7w)0AS{kPb~fS{#TAadVZg1=BcFc;JHi9I^<#_m?l0AtWFIE|#A79EVfFsDc2Wn6yEERs9%X?VqU zAgct`C&0W?R~N!jAh6ByFGb>)l17iR)iG+l697R8rM+^U%HtEe9vJRCx*Lcx7+(%Hy)t zoU29*skl^fRtjI!Q}|9I{rE}lKxg;>q7S^$AEDLO7j&mev$OA;*t2pn`GfkUHshJN z$}4BJHe?rPb3guDR8gr6?XVX1_fPx+epS7%p01nwWB7j-pVd}d^W!2^-}}} zdj~bGDOZkynf1%qr$n(sM&j?X%e<`trxvJ(8xH>gx-g%nfvBvpFMWNk3rb3rvmv{@ zHirc5GCIGDwZRdSY*2}C+_mTR*s80P4$S5A_MgM3B|T@l+YcN|CuoN`xd&o?LJGAk zw1SdWV4`cT_gBpODHqSuv{{&eoyjzAAlIB6#EQ1kX{OU~dUSFglNQ=%1+v2M56)8B zrYWMblHqMUU43%G`WBmg zvBJ2l9SIp(;9mk{?WscnSUT1YY0^_>wN-$6WnTlyTs2oGQ-5gIwc8ss_+n5(R9<6< zs3|n?6Z}~{6i3E)z^r*19*TQS;G0+0;J9=Hh02Ab6}O`Zfz2nUg)0+E&AZ>5hFOzS z)Ny@C)N)yx70TdKnS_Ki8Nv`duqHJIz3CIu(p&ruHU;e+^-svlKa{XsGjw;_O~}=1 z-D@*#dtPRoO3%C5*cMvZ$P+!4es3RVCzwmLh+@4Me+~I9$oi`MN4tDM<%pl z`1dPIcZ@y?Erl7H+84J<+-)kO_<8e{E8*z&vfg`l`unY0w|=RddVyUHzxsDzlOs$Z zl+n1CJ+#^`+I!Z1Hsq3ACfM6O>}NS65D9Z`WET7cQ!_%I9R?zg#pVc8cJq@&I}^9C zMC0PP?q^pZVAnaOx39MRbcnYLsF2EHf1@ZTvbe7FxrKQe+WU<6LYH>T0DD*CKKr>{ z!*I&4Cxq*Rw^Ukv35`_42`qB(;V`~kH$krvqcfYCm2$B_g{^Y5`+~E($UZL(8> zC{|C)Jj`5c*r_qo9KHz)G|@`&|0SDtcv=)=T}868NNjPC_?sYmBQ~B;`T_rPttASn ze)vzLaECi9Y*kQE#Wh!p*<7R2Iw9!|ziLV^&T2flVOSG&k zEv+hEY`3rMK`v?%_8f!6M7I@}vQjSSR>|{qL02q$T=@mMVQ+K9@v)NZ>X2LTG0N1^ z{F*gQbR5YUdTd9K^=ZfA9Xle!GVq|!kBvy)bM)6>c87OIe0av*4s*8A2xV#Q8>@xl zEGzk7oTGJn$}A@*+y_-{eJzDbrj~aHlQ~4s*3L)oMxXSQ`HZM?y&aiUkW{fQWOlWB z=Ybbah*k^!6nd4l?m4{C+Ie1}r(P1Mi0Kdx3QVkQK1>iPdv@ES1O>A>7AND!#P?W0f&U2gnHw#)upO++4>t0;mTF~r+ z96=5?>&WzNK;kK!eNo$w^p?B|YWY?hejs!mZjWJABbVo=Rpod~E4Gea^}^28?`jpz z%lv>xm*(Fh#_f=D(#!lkZ;etXw_uBL+epi~L(J!j(ivfuesvgQw*2|Wf*+%$Dby+D z%G{h{pe#0y`-v9A=N8he^Z2kypV{T%`v^OJ&Oj9I5&Qa%yh7wO#wrsDYYe&IAH3TL z6zorm$hfq%J+&R7AdB9)Mkld#bj~;C-#xhS;Y$O?*T9Rx3{Oe|(bap)R~TecmnwCTDN$9hY_sr}L?T30U6v zS(kP)?2FcBrbGU!p2$AY|@wQ=^}VXUk`?u3IBp1Nd#y78u1MX zu%ld}hl@NtX;2bq?Yxnuu1Lwq*5jG+u~`INydEOySWcJT={%Jv91DtSfWtS!J`8Pp z2it;W-COc4Uh=In@BpDhx3|4xfCJRu#g+^gPR%HPgW()Kwa;;AS|M!ee$jvJFh8~6 z45YwY1p@jO>cfDCaL9py+SMD@Sp){1ZPcg?Gjc@6hh8RQgS-@3T>gkqPAH7C&A?BG z>a)vxmj%|*!UCoHk1E;Qiy0JVlzyOoeY;aT_nSVs+>FoD>YVP7bCR>#+nf-swrcLj zTAF1z+oaE5<*o0qN;c}vU+YRul#D=S@u=s4;oVd(W3O%XDuU%*`U>5$%JOu(CLL6Z zvFH6ywX9QqViTr?7GGq$t`VChr_v+$j-|rZ1N)u$&+powd9-^;XqUS8y%Qr<>9_CH zDiE@~f*cjW=t&ZwufJ~^-Jq8#7~5Swu#_aU7uoVN39 z^-2DAPq~t1S^>*B`OW42qv<4&X+A!$MC3ktXsWHNN#(_qlq94~(d;k$8%kkf zO6psZWUa#1;o*82ncVPifp7Tm9C*I^ERCKbOrN6sLoLcmKcE<$6v}<($H$vwDGd+D z5GkL>mr<2g_qOb#?ub*u3fmPk(KNo62Nj`T*@zIO9&N&m-rj+?%Se`o!%j*Jjj0w1 z&TiyvTv%Q4T_Tn_s9LWW)*41h|1+wJ`Z;{<8IedlVVXXc*|5Ev@frfrgk8-gCrn&a zuKNmq=V)-Bl&^L7NmTKMwUeoMQq9FRNAdXux&%6c9-lVm=uM-K>w2*5m|H{6SG{`K zh;*K`sx-_*O3q z!*cKHITYfI3rmg%acyC&t6sZW-fphttef`h+z^bSENW$QzyWkPrsT{H6!NRYjJqQM znG)9Qu%LJYO~c+Gd3Jq$->f0$R^`C$38WOFxOE=Oy^Wr?4i|#IPm4~+O_j>`lIumH z0_D~HXF}f%%)jX#e5GPj?bLQ)HSLOIUP>{z+mSpw>k3g$-A$)^?PbER=_U#Gw%Se6 zhM*>rsTLvWfo-maXqUD%-?V~0K4R_=fTJC1W9G-IZVjh*5E%z^pQ+GF|^Ru#U zXG7B_z=GRNPTK=ouS{hPeM_zo@mJRK?nQo>uec@GG;|~w8qIP6e0PzzK$^M~Zflt>^RKGvEQL<< zV*LiXzCYeK#wy<#YCj#Ps}|FipPg*=xQ%fn;9DK`jwn>H(x60%uf*R^s z_!5w4EaxxPUer`FPOD7qFsW43@GNan9;R*<6~_BR`Q@ccThc326kEySq8`!Ee9O;L z%{BL*eC@k71BJA-w7e{^RBw4w`n3sa*Z%l%1ICQp`?#dH@|UJPNbg;)J#@qf$5AN! z-_*`oU)$TXC0?k8V!*T{X%c&{Ms*neM0%EVx7xIsEos zT_<|LahCD+MT{DZ>CaOw{$eU!Pt^+E?C7WF{+Sx)zQNhg>EV_xa|NNX#Z%3Q`JMvgH`k{@^hVlB2-AOir)0`cu#1(>-Ymt>U}LH9=(GYn6!w{w60 zWiY(%Y*B0Q_V&EHeVZ}KtL6acjW5%cDV?)z@O(5j(A{kfV&HCfds8~3V$JvT$0{XhS^O8N z#R#-g;-!iz6QPY3Pxq3kX-(J9?xoZ%Rn}pl#<{qGyu--cj#MSxGj%3%N!5;%np4}- zlf!M}w`Ea2_bF|Utv>v64vvwkK%Mno?cJSgh`%G7FppnxBk#fTemhLD}tRl>zt77 ze=(=Z`SfLcaL92C6~|7oBv(#`Cq9e{CtN$4!y!$t?~yz8$ILl;tXfOodcnZwjwTan zm03F#DK)5De4eM~%Jriou9qy%sgIbcn2|kwZ{_(6thQ3tf82d&>*kpT7Ml^YvYrnS z`LKuA$uh2zXkJDiU%c~HM;v*mD4N~(o4kZUeln*sYO8ziDXqD_Nm8j7``*U5UV-yG_|9-#Q0=z5PW2 zQDERl?^YvdVZR_&46-)f(Sn<$wVhXf0opA|I%H$~Xt~--8L-?ps92S*J-dv(22qE? zl%53aIb_jYzaba+YO1UZ_*=e&!rIeTb8QbKsKXI(nsb%x76wA>ftSl|Q0mly-%yOh z0$zgRE3FHs37) z%eUd9pvFXQumw?lo#BS_+oNqU%+y@oSWjL;J6n4`o%@LZqdXps6RX^umHKL&n^9E# zD0hnP1CWG(g@JR9JMoy^O6LX=F&wQd4=y5Gf9@YhLiQ-gvgKNKVv4aIG-9b~ONmwS zbc;MN2hWd?j_0VY+sJafz*EXh%r?%snw^r3(^e?*DSRcS6NpdZ63=UKpQtb5g85Eta-MaWFh{L+W`r9ucFjC1B?`*V{p zU2-!QE$f?8)G+&%uoM#O`m)+&4Fzj4NQKzV*vwa`MFY)*Dt(!_( z`S@?0wU{t%7J}~-&P|++z%OdzI?PB9Q#Gse?P8T)XSMwvHv| zKoL~9%wWoj0C(5!I_73n*c`jjC1Im;7~3~CAfLPG?JK!A$6GPQ8}VTj^O(O89qV6n zZi<$)SR<2)Ao%sm2B)=K&KFsGF0nvnKoZ^DshIa*h6z2=-l^@+JZtxh1I0Sc&-fgE zYwB0sSswsnr%l-Sv7u)cyqKLY5iLwDyJKxeK51=ubE=wE2~-IJ1TRBjbK`*B`H5ek znW$_?$52@$=<%(=R0tqmpvaSvvJWveX+d_e?nmQpjzPLdDHYS4<^08%P;;g4@-y=_ z5+J!CQNch??iv3fd_Ou96!CBRfAJb!4|<`2qFSTP!l(7Cvv}RevBm=Gh)AGV(gts=_icG zm6T)m`PM+UkWgo(Ms5#rcd^n?CHKIESN7l_)ml$5EYxRGrEq>oIP4YO1YNwP1CRC1@G#bI<3<*CY~6|18F_10e;Zsp zuUl9*rvN5M9h#)@57$#lUzP?M@D_A?aAdp`s!sC4^zOm};QN9FPF2$%&Oj64ZW3-JAHx z&vz!}!R(%_N6O>Ue`+oXCQPK!HD)fO!7dZ^usm+)=Q>I{k{} zyy=p6Jni-bCy32a08@q;;lf^(;lk*?T@8wS@6CAJ>7_yxA30(qxB8|5BGf4ygd6^; zdG!-VTJvafyIw`;#ON2l-3L;JRCKxHJ{ekrL}7++z+)^J`xBd%!wNwHGoPR{7SH!QO76- z)qv~6*a5X$VE<^wyDKsP{y+Zz!`bLTWS@9l;n)8~03c!UJ#-ku5~!nrSL*iu+|UZM z-tY4b>L9On_fp_dkuWF}6SFRi`x~@34g(&F4`Sbb1sU=tggdM#lt-r4_WvF7W}1^c zVeTY^@iu6B9d#9>An|BkMQv&~fWalQqt`R1)g_E=yEe{)tZ-YFG4|4okX* zRA^HypqY1@r!=+VPUpH+_d^dPkDAo`JgkxV%W&H4tFxh{PG0qA$X;lNbF5o}8J`@Tb z7Y{h2ps_+F`}lwQ1dv~#K><>z3{p-4ME{q!BC9)1<7qq%P2w}zibrEg#-wff*#Qon;!zN z1~-h8;{euoOa*=@JFCiozS~sIkZ#IS#3>LFsJ0s`NPS+pn*zI{^ofCEw@}Nm8w;Ej z`W#0>c8oNTb zRlk0y)=@3`nR~Y%1tTl;lZLkFs+A0{0t1m!zgRJmvq(DMopBsQYXnO-FV`>>>a7XDa_Kf^CY8zJ($wI2Z=1Yuh-^#+u7c~_IDY^m{*jQ$A_J>B=P?SQM-&dteB4RsCPQ|qw0S3H<>Eo_`% z>?Cd-3YoqM;dK(DkI*8c{-{7d=k7lYW30BwL(UDv=zHXjSgRU*&f);`Vmz>R2M zz$#Q{fhXmx&SfasXc!~$Vn)kAX6i~?JBJ}*%W6hf ze7ixtJNNn3p{MH9dOyDTtp;@e1wy@1Q^KvTP)$KZqWV=KQtpfOX2ip7>@dRphkHk# z2o)xe!oGnxsL`yF?QdqHLMx>rg#z#!|Ev7@He1+qSjbTnQt`}0H=pT^cUZ0-6TJ_X zg)ep*lqm~D-(1&d%K$}8lKj)lx@#gK)W+NXqr#Rg2inhR`y7C^gOsyeMaZL14YH6} z^eMPJ`Pbf#$nQFq{q4UJw`7?nv-4y>sedH9A6idxTaKGs`$f9})11(jY6^Z`SKsbm zuB+EB9d(!%!t#4t`h_Pa9z_B2iPOKGMEBG?uky6BMRlexp9zFkV1Ai$jMND?-}tTC z@%ue?k_XlnKiG%4-`8$h^=AtA-9;_D^s%ek-&oi7YF_i-#gB%Y7=>&8?Bx73laCmB zz02D&ZR98@zA}pD14s{Aq2|_ z^3D>~`Gui1;P)9p+z=uz^UW?U2XWAEZl}K17YsLkCtr)}G<)4ylfFw+!XywI5rKTK zpy8O?rC}iI$@EQOn?wCJ?OG2z->&||FNgv6)(X^t9fe}mHYg3gbaD#f6(;U7;)IBm z2K2dx8!(|h${4OsSK)3w)WFhqJ&T@5^6+TSqeuRy9|jTwK4E1bg1;g!zPoR;@`$|i zqcUy+vstbK*Zh7f01Hp7Ywnbv`fEZ`>-m7vTGp4|+@4y%GPiP9z zGa%>`Ux^a7nbrf9rU0j`CAC2CHBLD2p{MG({62Q?&xjr8ca{~kq7I(#6^-37sGt7W z^4`4fFV5OlI1Lkp7{*GOJHJ=@|dM*`NMusF#p!KbP9e6{j3f0e^bGlaLni(SB}H(eEOfSG-J-?1Mz z^`C_94HRAsG&wGs>$PSI0L5!sDAes;kZpdmk7*BMCpo4p_S$x|ePLWJ_4)an(uKlONy6Nn`rPOeRuVwB2)6_R4YVD)-P3p z%*eHL3{qE>ARnRox<5>{3UV0XqRI8uh|i{CrPWi(B>nY}fG7NFK$JzPgB&u+ixTiG zv*p70N?N#HK^&xPA%g}$l1?T!%!pq7OjcxtXgWrGfz5Ul?qo znZ8EnTE$MvXRv~ee}Eu^k(tH#s0hfmFWO=sLGYnlFE+eLw>zn~_R5YaD@LQwJy8TydOM;f=7xjGi}2uK}PYW}f|wx0GcyA3qhxx~FE`C7_AYCxML z4As=X7!&?pKJk8(A_62wA*j0kPl{a0858-f$q)BtPY4Q^0}INfKH+xArJ2)ik@WAI z-h+Tf)R1N4WZ|D`&1wi9Q}sgBpOQZ8G^-JwdhuuxMMzrmwyjoxCg%`BuWk(x2|K)G zaDSry12q>jNB@HoQ)Z8Tfl0oj(b6+3=uXNR_7J9Cwu^F+ry*o}H8jRO{?j|HS*dql z-smz%p8<6D%`2{YQ&5ntcy+8~r$l^5*HeYr$$z7G1C(%XF+fO;U8L;tRO2p91-mWR zd`m1XJKr09x*3nUb+(^yMz`ixb_^7hlD)LJhkP6=Ok*LZ(EKmYz_2NQ!meLJUvC3oNNmH&>!XcHG@<7V*XXvS!aq=+f>c3`vFF@EyZc`RC#bU4{yY zv0En!N@jW)1R?Hvsz|mcs>pwREf@spsb&ujwkivPGr}n!7T8d<0Hx5wsFT8W9s6@o z=(JM1Wf2gDx(|qXy79Hj%BWhQ0jd=>T_WIh$=0!rs+y+HrVag{^4>fusWprj-YAOm z2DQ{uL9lE_0ZTIl1k)z9(&p64qjgRvwNkKBNK7zGZB!eK>QttdmJOyRYNqByWuvpG znGI-KbtmO>SBi}Cn zRq`VgyXlJMO4no+0f$o;B)MFLqpqX&Z###_!h}`Nu^6x3PS03yr-*cD7${$F{k!j@9gLLRy_C09&&Ep5^%}9 zmlus)87}_|D=;l@7;JF3`L14m)Aa~k-+Ts}jH4#sS&OE!P^gpU#7vaGLz00;pM#&H zpT~vO(a*IbuWhCJi3DrO0F{=z>Fb7bf}_qfVBpNxOODTL1oe*WozbQ~RI9n!{Zz+$ zzcflafB!QsFI^CGJJ9;wL*|S%4z+_a%d?M42d2Ce5C3S~V;I*sX#Md&W)kzhb_DB1 z(#U&zdk(sF)^BwS6=h}8MeuNBSP9umgO;m}-D;>{ z7DCxRjSx;-s!{zw*(y_=#aGPk)nibjdRHiyCBAojbpe2@eZ{=VqG>_X!Y0cmt0wCv zeAC+pB@fbP7-uxhKFi<6YTZ{JFwnn(kjd+f-F|TEf&RRjz|M}@!{H;<>-%`rPiv=i zKkJ5(CsSWe)ecFVV*OyAqEEf-%6B*&(!Y|fPV@YsOlwl>O=_IwF8(~F{tSP%)1C@Y zo8M%1dNy>L?quFdy-d5jpz(+jlQeD^y6lP*e&U5g-rLt^ z5+N)Yb3GZ5^aIWL@O|{{%(92@y9vF=Q9mWsyVVEvLZx6W5)y7VS0|n3-q}xwPblfK z{t>4+FcTi$d7RPlp#6d0XaDw35GIf@2f`234^DoLtY{kPT_OoZbs&MyeJOVbUP2xcG5Jm|UGd-rGFuNl2%6GAJyWjxGCO7F}fP(PRFD8=_l ztgO{W?XP+Ae~!)WpHdsGf|GCNxk@IAwQ1L>*GF8G(@Ofc<@%D&+q7hfK-ydKD>Kjg z^VE-Nqh$5ix7K2QquR|@wn(;EW)pBV04*cRNHROw^nC>JbSGH@FpwF_jAXhpJ(<1? z>`5_(bpqe&04roGWvgUMWy@qpA}*D_QMJTW#+x7l^JMc822Nv{iOh_lUZTL#WR5cU zYZ9d+n5hCF&FkPUH8@S@mSZ&NL7ga>hAgG)6b6HAh5M_+ z$6TCC&M?LbO<*e{qcXCl3@y`=Y0D&?Ap8y)f9Duksjr4cR4z)D8yrVR)JD9UQb|6Y zP?h=)za+mzix5bDDS06&kUW>1?d(E&*$O4;LP>e&Yl->UQ+XL_67~9~HTJ*rfLG5X z`I1ifc9`qh(}YyXHOW5L7F;Vp4#CSWcvg@er{s0LN~^?WO=T3c4|d^Sze6Gmg#~X4n3h1z^MV%z zFAJ_0@XBwhFW@VsYQsBHJGI$5_&o1j2CRiqq^;`$(MrzLnia4i4{Z1j#?yV}CsYnj zuQl;%u8PlAp~@NISZJOp1VjOqa1e9=3WttECpE>&LkFQlPy}=Wiaauge_daXb|h$( zsl=x?87qodv)DvS$&Thb{(Fu*5Mw6j-6{&2%8Lj5Czt3&u7Hcb)kp zECq|J;dg(aeAL+D?5N@If!*f6-A}`4<2F-l@+5wheOP}w)|B)P-{j8JK_w-bU?DO< zSZfE+ZDELoR}jW=qkBvY0lKk*=7V>j`rzpBc-^YcP5J=)3(iMD#rrU+V?Gor^#ba| zOPs>S$J`93l&sYw!;%Z2`8dL0@Y!BRl6BGEzTL;ro_Cz^H`|^CB(f|IF;37<(kv~} z03$fflNHr}gqkQ*I!Rm;n9vqxc&WpbBav7VLdG!L0OCb zh52+%&M|kGs7{Nb#22VDGDC%}Ol!71a3MpJ1EGpLP&+#yO#%r`3Wr?YNN)O(q)t|m z_C^9_HY?cvTsj{*!}^>yPa>~idGI&V@<=*cOb(Mz&6-t zapFvHf<0KVL*5X+*E~pjw{dBuxw8Ejy2k^p$qU~Tz-IVmwk(>THR0yWzDq%$_g!be z>Go%=+o0U+$9(a`$0JZ-{e`{yw?9dizdn4^A}?!ptx3^sh3AaLfdR|56k-V&fGonK{x5l*3y0fqU z8jm_{WM>&JN=VKrM!;@G9P~+!_V0z(A&XB|juxF*tr)Ws99o?kSB(N8BqIQD!=_S1 z*QdimG7tbfI`dFQNQh|55FC{TeJ1AoqlkfqEnt}`t8hZm_p?5g^ z>+&ZNM^86kTQ7Mjw0SD7Ohb zo4VdHNHYXImeJR!2!4|O;w5R=c;oBxa5+C_ zM~WbIwX0dAU%b#j=I`gXE$W28+}#~BwEr|4Ez?dUPzjQ;buyL{lMulq$}e54J7pec z%SL7=`mOhma5h++Wo2o%SVtLnDmz=8{YcEzo5|CCe0W*%@wPK~zn9a{0uN;IJLB3D z@cdEIXEK~Og0i6E*-OcQShSZipHR;);iGd7n4e@ygnyKzUV_E{S>NhlR|llS;hYr`y*(G_Mnj}G2J+y`!L`}oOp-(!1+x}k zoxYyKSAf~TQ%}9T%GKMS9^J04?s&e?V#eX_;?3X+?8ZsG>hQFf8NG=;!5Vpb5XdxM zoCQQ!)$2jatW26P!GG^J!4>?M_jZZVXT7C{%M^)^HJ!4Z&HLgL_AGX2T+nnRZ`;E; zOH7la$T;$N!Qj`|l_%e6)?$yQZ0UhKBB6VmBiz;yz>M54H8u_{ydK9YUaLCg%`*MbO}1KSt;gUUvnj+SJx!+ zb6<4c?bIx}gBL~-^gE%S6F+RgNuP6)aJubc86~IfFALMD4>2G3a+4FMtAk=0)())F zWKCplY{xWB7gf{=dKLVOFZzPe_)4ZHi^3v!=vWZg(R}SL^co|LCE-F5w^Bzz5S{!> z#5?V2$=;<3XP`>|Q>5+u`JT#QJah9Ba;FkcFxdUpq5U-XKGfb=tmPG&CTirK;p-oQ z@Kkvi>1ARkw_L;17{iTCRj-*XmG@ux{>UkJb>)3)${1F)lOtoK&k_Am{q zaow1RiK7~ulxTkYKCs0y%-+6YgkZ#4XchsUO%Y6@ZABH@7P!9Tq+1I73BNTrMl8qv z>oGXG1H zMjsHbi2cZGgonr9*OfWHEB|8@TNN@OXMw(Im>4HZ_)Cr}7k+JblRrg-b0rU-) z10^kRp^=TT9re@EHhR(u!kg7Oi-{EXe;2&3nT{_r#;%Gq^r6h2TAH9i*x(a&gJeb) zmu|m&=D4lkcv~eF*D-wx8syCG8(lN#so{Vv6K5Y@SFV5*hQiPVrXLpjunDdpe3@rw zr7+J1d@8Sw>y?|`v&++~czSM7C-mt;Ha|Rt`6X8#5`|IBRUR|-?D`$6^CG#9&tGxf z@}O>VADAcV!w4U4;qZ-Wr8}fk`?`)OcSL=66Gr(~VEXGAQ72oE3c&G+|ab33pWkIPKE?w8suZ4{b!u2%%b8`TsE>pVa~Fv!GLyg`a;jDUaofd0<``e zUBN3zxAr^TJSuI;!PL)^xsh4v<&|BH(7igLZ)ZLvO3~K6mZ(&3G_NGdRVB*+GO1c< z9#8h8^*TbBA;l`_oAZrLunkNc4V$kbkcj;j!4t-=TJ`1paO^zCvh?V(<^1l>iMT7cy^| zoxqQcHRkow#Lu>_9!c(C^(aDO1J_}zazBfHbE^XzrdwuL-cG#I!-K0horNO7n}I!3 zSaLlqTGy-8=V4XfltAUub^GZ~^fhsfJ1yyh7=zMJ5DV zv|;43;MBDLQLS#lc%x7)j{1}i>*3iMqIZ#&=!B4U_{r)SH0m=9;YArts>{`sECka% zjhD_p+fM^S6=22@2hsX?1Vd-)43e2tCZ^2re#3$<75LJ&rvu)`t1 zx{8| zwqKMzsVj}Ait1=2|4wVeQ9>j0zjdbJt6Jw%-BKf-p$KEz<*!ioevauDw_J?Tl`fBe zIM!?+5*gYGvcT3|cQkj{*ntyt$INWgQPx(>ul`N*4sBrVE=t{*n%=XEX(YRj!7=>^ zSKC+^1p}*KQ!FbpA}Ah6i`wy%IHWP4oDN3^i6&2DuXl0|gP0G@`9bUL_l*Qie(>uJ zPteP+ASuIyFb~q8NSIT=fS->tiW#E%6cVN;T;PXVg;y^QN#U|R*U1j2(0C$7*kri6 zjtntSvI!vB!9G1SniCBNao?@v3l67GA&iv$JYmr3O4nwZ-i79Vh$Bo7M8iP}#?8HP z2nfq7o5jTt7FOOhqTpRWC3-`D;8*IHpG-g${N=;VT3kYq$eQV4Y>V;?4YP@JkVpDC%)IS^E;u}e(UgB7<$7S^F>h=& z0G7G!ud@33dV?)d+C7%+pO#qrW^+Rh(>>wE4L7>nXy41@ShZAV5AQ>99Xf%jH4Nkr zH#813px4=1*5?B4CEE87nYXs<58c;xMrXG^txZGlhDI8sjWhI--UxB#fSuX0wHw{D zo7IZo*7pOdJe6Ld$+a21Z2VrhI@dInrN+O*k7W=21~1S3gS|!_ZfZL{3 zPUylz5S*u^j?NQrdy`$EsgYIBbjsp2=D-)4O7!;9Z&B*y*}bCj+M(RG-}dfUxTU3i z_0fQSC5OI5$`m?j!L_+VbFFH<7e-CPY70hoNh7G@|8_BQpI;5h!PPg`J&llp>5=M# znL_-bbH&T96z2|hYP%98v+4ntCBes^J{`HgQxpKrbp-ojEF>_PNwl%-XdKa~&e`x$ zlJ{}US_;3uq1PnQm;9{W{|gE%pN=^*G9pSpvbGenXn&|&@G-x-O%$5NJcUiWNb?0g|&&+9zpP?;*^vU`9Jcp42bdd9KpR*AM+Vj5e9m$NVMC2ft6i+8CC z`l0{wTub?aLQx{DuI4rJc2^SC&xP_PLq$Kd%qA12!e|jZtPw;4%V3yKKr?y#4E>}+ zLhtLY{H%MGBbDbtF)p6`>wNliDRxi(%?v{LcTS?{M#hyO7ce)YEhz&}*!(#7{MQWq zR8t}*D`Ss31$7g_zbSdsW`IFm)vGO91Oiy`V^I$DMp6r99cx}`^n>(oOI_MOQl2Ze z>vZkgLYV<0w&8|e!^}6-yx;e+DLc|==L5Z(Uts#) zmX31rZY|wa;_M~268s!KW*Bx6uwmLf!oyKavR5Cj@!zk>(Hl}PheUidxHs-@OTXSx z9vHr>$}f4ct+2oAH;vFU+Kr?D?#VqMGK)qSBR?mQI^_1_Bas()1W?ij5AE!z-f3k1 zlcLF;b(#vAbsBgdfhTtVs2Zk>?mL(BFWG%M%#!&W3X;Po#l_bRMqd#|$*<}*S(2$N z!<%as_$6jLi;y{d>4~yvHwvy0zFa;PA$D0mST#=AzW6ldnmhNe<4&+P2YZ1HBvsX| zqW;r!ehmzbws0bbseU?Dg-IUaGiHxyw7&hfct&PtbZF{oawE3GTfN?*$LuWvy}j6= zn@l1R-QRFb<^*2hHKwLqBJBpp+}BnCL)!lY(Vlk)IA3jb z7#&sH3F)x=+P{hGTFIXycys#wd`Tx^_q12nh&9zLd_F~edftG$HrDX+C;PponTTG>*mP)lJV)}z_q?T zWb%@IBd$WjO|&rxey|YU1Oggya7YLc#>vn&M^|#gkf241$XsTxd3_4vhE0Y9*#Yij z;Gbwk3WuXKx#Lt5B}(9G{~SLO@_SXgMu;#2Oh`B!IvI9O(gz+61tE&?O!GyW?m@7| zUQ^Wjqf*n|R?jzCW@Fr^9YF4X5ka%3unVp7@l@fNE~K1jw-il60VV__Da*T&B^K%7 z+mXmP^n1e#>kMGi_^(HATHCm_F*8DpYn$l%YtKvpBSvby;|Sc+&^r8c^QZ39t&@-A zjUL+%w=|!F3j_ zCf_^u?O*OxJA=bpUGYY}Ym3g#zVer^NSXt+=FYT@>AoYwDdnqnZC9$cnJK0;#B)BN zI9pGdT?bCLsAf$r9eq0u|A4=6h}P(x92^b@BS_3#MZ$pg(#7ZH1Q^dZWn*znZJWzD zn^B@yt@hC468^ewfzvLW20VS>Lb~BUc*q!>uOMKFxKZoy=|-}d`Va+k@OnmC;(|B} z`!pfwyDlgNtihmp&~3x(@85Lq-?jnWKM3I!@YWlLFqOeqv|}2-TBmO@S{4SGYXyM{ z8-;NUZLc6?;7wU8?}FfP0=Aq6DFp1Jsnt7xdK`XJMy40#O^+RTXz`i?yn`zB^kfHj z6|R2at-J~Kp#)s!zt zKVkAH4lHXHeuTn*2U`NDJV+rCFI@g5d8A1$-r6z;*j8Bomwb6|uTRoV8m?`(fSUhl z0a*P}zFpBBK(}mBFRX^^yC0_Dex3B?5kW|?m+NWdp3OG~-KZTW6w&p&tR^}}!@2fr zQ;LOk#hd(X5Lz$sCXekE+r;epeTP#|$twLC^fCK-?(2A*0sQ@6#M_ylt#H@#(DTQ< z;zFAC+wHeHI`v2A2CCw!>wJ=TTp4pvVDqMl9vanL^Mii2tVKuW&j+dF30GcoQ79ee zC^N{u0pUw^X!^Q;OL*ZvkL!hdD+S6a>x9>Sp-_-{eEo92l7$tUi3Bw2fS>se&Ip8S!hqVthZ4sE_P=pJqPpQTZ zqF1%k?~1b?qB0;C8-cx0Rl3w*YI`IAE82(zg2YGs~IcyIV*F;rv-)r(Q?)Enk>ud{c???;+rR`TZQdMev~g7r!uA(ejODMP>gT;+IKe#x!>k zi5G@mNUgpU+#XFvR_^$s$iMfIVijT|k^|#c#P3h5!oK4bKM&0-_X|M{VuJI}ZlQYo z-j#s&^BC2X=SUyYZE1ue({>v5O^x5Gq|ki3(V(2lX)yKJiBuEgz1<&=k&rg(N|THD zrPZJE*8FCDJ7c^*`4-5+iJyOOc z3ETY*>%Lv{_wQ3c690ybMoYTaQh(;K{S`JA|4M1BKawB4aOl7qw{fFNLyG7JQTHWN z116QcV`_u2NgMOY0R7TJ?_eta6|1d)E(A{zt<#svU3EZN);vZoB_{v=>Q|4pFsyI* zBiyXrqYGaII6Yabx)c1dQMNp}Mw{l23HF_({S>U#AyNF~2ahoyCx~#dTR@qKiDI=E zCEDcmWJq2mlIMw2&M%@KS+i?Ro%k3OY#n&%;+|*G<(BcUNH*L}?%?v5ZA{}v{K8<) z!O^71sMI_Dn^&Zf7W}ouinVgjxWM6JoDII~LQ|&= zDsqJ-*`mp#P4c-=xXx>*mg2Q!e*>5i&EUb|r=+v+MCLzK@!Se1(6wPFfHA#emASy; z7gB+SDgS(jGaZ&O8Rk4^3@5q~Vid0XtkEV0AyG9k*s9QJLMI_4B|Rg8c`r1KtNfJqcPI#Ms}w|aF7D3~CogD%;IH5U6$BqT zQ0~t`7t8_P^6i;|U22-(G>eHy8l)$ZfWH9KpMZ*#1Nt0nHdi z@+Yhxz&Vl#)|47Ie-EA4mc2GIj~9`7uJ*X+K{il~$NqQ-DJtLT-z$$(wN?k*6TgoE z?ifbt4NUf(qdlt;_>PWZttvNY9g$O_ega``%G;c@NFh5uXZfE0i@*(Xc@$LgM(nZMEZ7i7~cp- z$1|{>E$>>T54k;g_uhd$v=G`jS1hTs2J718j~7^-UbnvUZ2eQk)UHr$T)6giUp*iw z>KDlC|D{Zy&r3Yg10lQPG&{FX8rJr0_7Lxz~OIFa}Lcp()pslMzWP6#*9sOVc;x1b`0a`oBudL zQWYpJB6Q!QOKuj*JR9&jDXr4EZ_`tkZDp9}H;}Fs!n8TE6q(`(%p*WMBzz5q1<`d` z3cB_b?7>Yl;qu1L-_m&FId%p+MGaZK4T7H6#W{nJD8l&}BO$2T^%fouGI_WnebOhC zUUY8c9&a*iaOa5Wn3EOm)chdga8?|By(!3ho%;`kw~CtOX}cBQRGQ4h8X$Pjf==BM z2UrPw?sd+JSV}thh*?u$nhBHT;AuKo+TjxDA_@U~Oih%KAl&?-IiB0K_E^0T{~N)u zJL}FIy-<8m@c5^5je^V4{`qZ85!j`u;ed6b5vAZ{>O26?acM${;d~w^FCT9v$)AB= z;tpNccl!OsOTinpb9?NN$14Jhdr}YvlvM)~366d56oLKU!N4JgJ77VzS=g6|YrQXl zXd0AEvvn72NvNR@mBnn-otLLpQ6peLyhE6niK$J0J=CnKO=e($xccPq{@=0uwB()K zMQNEgJ5fNaLrO;U*1pV?{`w?XlvA#`&nPft2TsfA9x?;6O@ib0IBgel@8&t^*g$#p zs^T1FWF{uhT5t_zoDpA+^WhJ*GaN# zTXF%$dDL7>LkZZH-B4Sr-`>!y-;mR)pM9+SDoWa*mpxmeC(Y@Yy>ubd6ROS8KC2hs z3e`TetCD6Hsj%laZ+)%@8aAE$!Y&|m`Bc@m|e%CF~|803FHjD#xa`J^) z-GyqNKl%<|hl2)e4@PH1`u`OYdDuVXFCjuh$MJ~245#_;TpSUXn6Q&e7`D&)%YQ<6 zN+9Kc_%mlx#Z`juQ@k;YSY_ZtWhVwWoc?!u$o0QcbnhM5abz(uC|wj9c;4rkOQl_0 zT*!_i*RPzr-|8QAdd_d@#8gW65gafvey6+Z#HOyXz{$X!pEY$S14B9PxsQHvYPB28 z!N9a12v=H&h;?*&$2m^@3aOGSFxW%k?vC6YkLfxWdM&hhYo}tutiGVc?gBpjY1EfP zvuDRzPOLdv5zB3`nuL>gpYi0WyXQi^Qu?LCmBiM9yqvt*hWkv*Iu&kl?f3TL9D{9+ z;EcqLA`+BH51y;pf4`UTbjIT=8OmFMb1;SBd-M+}AelTb1j_!tHcJVWTu`6Dz*49b zj@Pf+J0n^0*SQ6Cy8{pkNPcl~^Hycg$g$9buX*INd}lZL$cS1!@?*oQUtIW+k-_Ij zkhrC}=>*7XY#(YBG7WwW4Al+G8#pC#a-1O5_wCS=#^DBnHcH;0-}tnhi>&L%7i2CM z50*sawaO&cPFBwKytq+8VOmA3lo@P+&LN)lsuAk5CclY@lHteZ?9)>-rKh>`v0S5uj|1cj zKcDSP>Aii@9N(s6__FJ0)f=7Li~pJkd}p$GD@+Uw#BcWoMbHRjgM)#KaU+&{9v$+= zNtoUT<`F?-x2?%P0bhjwPJtzwD0&M=iKylU|LJ3R>39X$J_xsU3zUBOGI3*BQOn$M zx{+i_=h~wj?Q)@JOQSGjI97gvX+K=fsauy~)YIw6x#Q(Rpn7;7N38G;pK$bT+qsuwAdN zR!j5#Xh-gO5j6MB(LzMHRk(lK!N&I|YEqyEYV7ahODdQjhYW__y6}6)^`X`Z*W31b z;fsUQC3Vlt{WxUbsHT!;-Cl(Q}38A(_~yb6{}Zop`YMrnXhoQH`lX zDKUMqfw4zF);SSMDmx(gksn(|`39FhwcXL)ip|chbrIbiEB!zK$_Jhf$g>ZDM0l`t z%*5zk=~INZP>0a@H1i-9)0N!#QLZS8F$f?41>*z#!F#`=gjN25&Aw;qm(D3 zFB%EfDm*ztyz19LLu>oMlQr$(zJrZJ8*cFl7ew5MzA<5n_qDJ8zNA#BSkILs9}{l@e*0N*)aNEgsU3yyoOJ zRN8Rn-P+c-4Uuo0j;`JAoRBCy3I1xnKv0!r#hx=45 zwN4Q!v5of@^F%zIM1I$laEb?QOz}SIX=Ci*^#(^a#z){q7*zRLaz&@Xb4W5SFL9LA z?>I9JjsJe&>3<W;Oj?=(v7M4dKL7sRGM z!+dg-AN|YCYv}$le3^UG+MWk^;Qv`7g6#1@Ne42%gqR|q z#HordOZTY^q@?u@9kuo-h_qQqkv5BtGnh+Na}GnEozmG{X3anBjt)JWXS*wBMn+Vn z{t_?`b>gj_c&I&hzYud*KG6PU_UdWbzoFu-8TS0)Mm@Yh{OE~m8@uUX+lP;N1g6*v zBA}gX^0J{1eG(=1Zq?H)!9?&3c=xEMOLhqlhr>uA)h@dOA_3GiQ-^R|99C7Q@Ul{; zWaN(U8UkwU4oUljNHfTJeqDy3YEBT_d|0^tEvZ&tUJma(6qV`XGj=A)KE>XL>Rdx` zr>||DtHyy~X%CS;?h(-UY+RFe#FtnqiCIz&=WD-S>H1^I_O>3@W%`NPJE6*_MuY9O zZ*r~-X?wIB3X6nJ=9k=hd&&37AR5Gh?Y~tor`)`>agAQ2It$g?d2M!XFZ-T0T0JmQ z^HR82!;1Y-#{Sz>OHo@(eL|19GG#gq?0b4*g@h>t2yTZl*m5w=EnJd!XnZ1`%uc(s z-A1oP71}ywK9tLYvV~Q-b*C>E9p^V|ADrE`Lyt!mKc!ecgqxpK+ALw04A##|czK+6 zgcz}U+l0T7KhYp;A_Ve(x^Ts_D|ZIDfLLtQvP9h6ezs<&y|&Ti;7Gi}dtkE2bzHPG7|Aa7buTo+J{ zFCX(BVJde3d22Bf-g&p4UcOZN)mbEFUYI5z%pu12-X+V#pdM1uMktZ;>3ZpTOJ7e- z5&k(hpcg6N*4C*c7#E)6EN>vvd*XEvvLhp)tx;S(fB?8N7=VU5LxU|u`|V}>yX+=D zM!OH$q&cy>>4v8;KTXJtJ1hU%N(A0b@S(5$bOliH&p52BGYZRemVGHYj71w3i|d5^ zXQ4$o!Ox@OnzM_ur)^|};+*2cSke6Yk~^=gUJQEbBpE?Z@8`DGLQmQ|Ig zil$wTQLt=j6d%z6ESp58!ARaZhbm&f!%TOI{XJOg26vZztnV2)Zg4->@o%gE*z?HV zFm5qQwY0U~P|VibB!CF4`ya_<`Q+t}*5kh5=)Jx)V1LW=X;<;UJFGLZq|x3$bC(Y} zyKRd^c*t$P+(&vm|0|ej9F|)nmFrE&?EbX9q^)F3a8CGkt$LuoWcX z#1Qb1>cmr%)OC5anN2C-h9CLSkLd7|j}5Apcmv9VHfrIF{~UiZgRiP@HI$yhdwn+~ zYBQNS6gHc{+HdPF^ez*-Qz#|4R#)dG>pcPEN`fv;!*Aw`6)84?&m=W9;OaUo+wQ(v z5j&S_u&X`&TG{A%jpQ2-CD3vF$pN5zE_Vhpq?6v(wly!(cI|GMMe|-YDyW%x6DP2k zNDcM~>7tD-#l)jr=_f3YHJIWy@Yo% z=cv(a^p_U7Lb~QSWf^p0ESF+J!BEAPNK1YJ5 zM_WN^p!EbBgltCD^ys-ECEaD;nmBtPTm0dmlqEicO)@PiAuZZ*8aQyexw!&t=`Q*} z_+(U)OU-39*RJ36)tPv)o%p0R((;=jbSKq8hEFLC((-zlPn`X-K87$E&%jM=Ta1G#1`t|IaY;qUP{9JHXs95+Ba zm;tn>WbElEfwT5F%wLFvYYgwMJsAan4{&Ge9t@wafGO2;;E<+F@ayf4o;q{)Q`HS& ztql!71%0OnOWN{Fx~c%vI{1c-3Sk8&D<->FjhMF&e_31h!Lp&gRUgJl^_}Y|H(<@{ zenKgZ*q1ZeT|EVD#~b>FPfKn|Rj`--{v|u=ZxVi)BULYB9U&L#QLajhPd29bc=%0y zU4z|q->+?|S=BREQ`4Muc>Ie3n5onJyzE;hoXr%NBCHzQaoKtFLouH(-=5y(qwO$b zX{~Un&(=G`P_F6J6na9<9lyWsmNsX&795_f)t+w1@aNP=a-oTx_*5{u6XwtGhj`q2 z=)x3(UmnB}*`+%JLBhG$DXfez4iz9&)(bHJhZhYTSN_nuoLKE}Jv?!0vd&pMkxa55 z9hRHNQ#DxVVN0{$5ayKnE08)Pct9lEj#XcJ&DEsQ@Yq06Ok~7M3#2IkTwCGj0+{kr z%hi}mquS7bTpM>}88p0suEUhdM}`ltaXH*!v!{Kgd$rp^C^fz)BKBu>jKo46^qSAr zB4`koq@rCkp6^Xp0Utj%R_qF2X-NENX`97TGWSfrNm3Fzi5{mf0KPJUm9010&!L8Z zHS*Q+_wdhN&a!694G#K(Jq$nJRIb}j_8ouite zCI0xKRiMoiYiD_{yoc~)fzhSskDmAr4rgElu0i#kJEiU~k!j6SNl+Pi0{{T&86su( zfF6$dN6up+A1s(!$iFC!KMJHM@Q*|kfSwlSkHqNzk-8>-BuGN!y!(jQ;lteW=L<-9 z0055v5oiFw0ZwQk00K3P1vmi6XDnvw@NGKpGaGb(uM9mFWYakhc+NoAG5}VYO&J<6 zVGvO?MmP|31Vn*n*D($=4zhu8MhI328E--D5^Fg1JeWHw_nqicEqb6kpEWAfF$TMY z5J=IE$5+?^jK?tRe;>~O9L@jXK(_mBqW&3(<{zsdIa~nX1ArOO3G)~L9)jsGsD#xp zMumc5O_+}W2Jy;ZMBRy~@rW8xXsQu43Q@y|8b;I*q6QK5A9NuYQS%WsZyfnCm}TIO zMVX>Lme%M48s;ivOoXM=5+fM_tz)3_w;VF{aZ%&cpEoM8-@E8HpPX@21Knf;wXxb4 zkL^;uQs>FiP7%`kG4GwW(#3OFjG_vyvm3q?VSt=8|9>~c|98J`-}b-!ivDAhfEGW;56Nd3g}FZ1CQ&-HX6t`mXKdBY=XAz@^@>1=KyPE%3J z?ufqHGuO{o!;1r;Hg7`h4rTy=+_P#1j~&)DHwR!0diH-BZzf%ZLU8gVoiH5uf79TI zA7I1}O2iKs#1F`e4^ve=dbM#_EK_AJ}(=i~e5xBk5T2Nj{z=l}o! literal 0 HcmV?d00001 diff --git a/include/functions.h b/include/functions.h index 56b28ea6..773655e3 100644 --- a/include/functions.h +++ b/include/functions.h @@ -6,6 +6,7 @@ #include "entity.h" #include "position.h" #include "link.h" +#include "structures.h" // Identified - to be sorted into header files extern u32 Random(void); @@ -205,4 +206,17 @@ extern void sub_0807A108(void); extern void sub_0801766C(Entity*); extern void sub_08004168(Entity*); extern u32 sub_08052638(u32); +extern void sub_0805616C(); +extern u32 sub_0807CF08(u32, u8*); +extern void sub_0807CF48(u32); +extern u32 sub_0807CF10(u8 *); +extern void sub_08056208(); +extern void sub_08050384(); +extern void sub_080B1520(u32); +extern struct_0807D1C4* sub_0807D1C4(u32); +extern u32 sub_0807D24C(u32, char*, u32); +extern void sub_0807CF68(u32); +extern void sub_0807D20C(u32, char*, u32); +extern u32 sub_0807CF88(u32, u8*); +extern u32 sub_0807D008(u32, void*); #endif \ No newline at end of file diff --git a/include/main.h b/include/main.h index 16888e29..4cceb41e 100644 --- a/include/main.h +++ b/include/main.h @@ -45,7 +45,6 @@ extern UI gUnk_02032EC0; extern s32 sub_08055F70(); extern s32 sub_080A3204(s32); -extern s32 sub_0805616C(s32); extern s32 sub_0807CE90(s32); extern s32 sub_080560B8(s32); extern void sub_08056208(s32); diff --git a/include/menu.h b/include/menu.h index 93b77591..7ac003dd 100644 --- a/include/menu.h +++ b/include/menu.h @@ -27,7 +27,8 @@ typedef struct { u8 overlayType; u8 storyPanelIndex; u16 transitionTimer; - u8 fillerA[0x6]; + u16 field_0xa; + u8 field_0xc[0x4]; u8 unk10[2]; u8 field_0x12; u8 unk13; diff --git a/include/npc.h b/include/npc.h index 7b95e745..103df393 100644 --- a/include/npc.h +++ b/include/npc.h @@ -173,22 +173,5 @@ extern void NPC58_Head(Entity*); extern u32 UpdateFuseInteraction(Entity*); extern void ShowNPCDialogue(Entity*, u32*); -typedef struct { - /*0x000*/ u8 filler0[0x6]; - /*0x006*/ u8 unk6; - /*0x007*/ u8 unk7; - /*0x008*/ u8 unk8; - /*0x009*/ u8 field_0x9[0x34]; - /*0x040*/ u32 windcrests; - /*0x044*/ u8 filler44[0xC]; - /*0x050*/ u32 unk50; - /*0x054*/ u8 filler54[0x54]; - /*0x0A8*/ Stats stats; - /*0x0D0*/ u8 filler4[0x3c0]; - /*0x490*/ u32 unk490; -} struct_02002A40; - -extern struct_02002A40 gUnk_02002A40; - #endif \ No newline at end of file diff --git a/include/structures.h b/include/structures.h index 1f042416..ff29f0da 100644 --- a/include/structures.h +++ b/include/structures.h @@ -13,21 +13,48 @@ typedef struct { u8 gameLanguage; } struct_02000000; -extern struct_02000000 gUnk_02000000; +typedef struct { + u16 field_0x0; + u16 field_0x2; + u16 field_0x4; + u16 field_0x6; + u16 field_0x8; + u16 field_0xa; +} struct_0807D1C4; + +#define gUnk_02000000 ((struct_02000000*)(0x2000000)) +//extern struct_02000000 gUnk_02000000; typedef struct { - u16 frameCount; // regular frame count? does anything reset it? + /*0x000*/ u8 filler0[0x6]; + /*0x006*/ u8 unk6; + /*0x007*/ u8 unk7; + /*0x008*/ u8 unk8; + /*0x009*/ u8 field_0x9[0x34]; + /*0x040*/ u32 windcrests; + /*0x044*/ u8 filler44[0xC]; + /*0x050*/ u32 unk50; + /*0x054*/ u8 filler54[0x54]; + /*0x0A8*/ Stats stats; + /*0x0D0*/ u8 filler4[0x3c0]; + /*0x490*/ u32 unk490; +} struct_02002A40; + +extern struct_02002A40 gUnk_02002A40; + +typedef struct { + u16 frameCount; // regular frame count? does anything reset it? u8 field_0x2[6]; bool8 transitioningOut; u8 transitionType; // transition when changing areas - u8 field_0xa; + u8 field_0xa; // seems to be a tile type u8 field_0xb; u8 areaID; u8 roomID; - u8 animState; + u8 playerState; u8 field_0xf; - Coords startPos; - u16 collisionLayer; + Coords playerStartPos; + u16 playerLayer; u8 field_0x14[0xa]; u16 field_0x20; u16 field_0x22; @@ -41,6 +68,8 @@ typedef struct { u16 field_0x46; u16 field_0x48; u16 field_0x4a; + u8 field_0x4c[0x60]; + u16 field_0xac; } ScreenTransition; extern ScreenTransition gScreenTransition; @@ -53,9 +82,9 @@ typedef struct { u8 field_0xa; u8 areaID; u8 roomID; - u8 collisionLayer; + u8 playerLayer; u8 field_0xe; - u8 playerAnimState; + u8 playerState; u16 transitionSFX; } ScreenTransitionData; diff --git a/linker.ld b/linker.ld index 618c284b..f2c52dd1 100644 --- a/linker.ld +++ b/linker.ld @@ -663,8 +663,9 @@ SECTIONS { asm/getInventoryValue.o(.text); asm/code_0807CAA0.o(.text); src/flags.o(.text); - asm/code_0807CC3C.o(.text); src/code_0807CC3C.o(.text); + asm/code_0807CC3C.o(.text); + src/code_080808D8.o(.text); src/code_0808091C.o(.text); /* objects */ asm/itemOnGround.o(.text); diff --git a/src/code_0807CC3C.c b/src/code_0807CC3C.c index e9b9f8f5..b5b1c4ee 100644 --- a/src/code_0807CC3C.c +++ b/src/code_0807CC3C.c @@ -1,25 +1,125 @@ #include "global.h" #include "entity.h" -#include "structures.h" #include "functions.h" +#include "menu.h" +#include "structures.h" -void sub_080808D8(void) { - gScreenTransition.transitionType = 0; +extern void (*const gUnk_0811E478[])(u32); + +extern s16 gUnk_02021EE0[6]; + +void sub_0807CD9C() { + sub_080530C8(); } -void sub_080808E4(void) { +void sub_0807CDA4(u32 arg0) { + gUnk_0811E478[gMenu.storyPanelIndex](arg0); +} - if (sub_08052638(gScreenTransition.areaID)) { - gScreenTransition.transitionType = 0; - } else { - gScreenTransition.transitionType = 5; +u32 sub_0807CDC0(void) { + gUnk_02021EE0[5] -= 8; + if (gUnk_02021EE0[4] <= 0) { + gMenu.field_0xa = 8; + gMenu.storyPanelIndex = 1; } + return 0; } -void sub_08080904(void) { - gScreenTransition.transitionType = 1; +u32 sub_0807CDE8(u32 arg0) { + u32 temp; + + if (gMenu.field_0xa == 0) { + sub_0805616C(); + switch (arg0) { + case 0: + temp = sub_0807CF08(gUnk_02000000->saveFile, gUnk_02002A40.filler0); + break; + case 1: + sub_0807CF48(gUnk_02000000->saveFile); + temp = 1; + break; + case 2: + temp = sub_0807CF10((u8*)gUnk_02000000->header); + break; + } + gMenu.field_0xa = temp; + gMenu.storyPanelIndex = 2; + sub_08056208(); + } else { + gMenu.field_0xa--; + } + return 0; } -void sub_08080910(void) { - gScreenTransition.transitionType = 1; -} \ No newline at end of file +s32 sub_0807CE54(void) { + u32 uVar1; + + uVar1 = 0; + gUnk_02021EE0[5] += 8; + if (gUnk_02021EE0[3] <= gUnk_02021EE0[5]) { + gUnk_02021EE0[5] = gUnk_02021EE0[3]; + sub_08050384(); + gMenu.storyPanelIndex = 0; + if (gMenu.field_0xa == 1) { + uVar1 = 1; + } else { + uVar1 = -1; + } + } + return uVar1; +} + +extern char gUnk_0811E484[]; + +u32 sub_0807CE90(void) +{ + struct_0807D1C4 *puVar1; + int iVar2; + int iVar3; + + sub_080B1520(0x40); + puVar1 = sub_0807D1C4(4); + iVar3 = 0; + if (sub_0807D24C(puVar1->field_0x6, gUnk_0811E484, puVar1->field_0x0) == 0) { + iVar3 += 1; + } + if (sub_0807D24C(puVar1->field_0x8, gUnk_0811E484, puVar1->field_0x0) == 0) { + iVar3 += 2; + } + if (iVar3 != 0) { + if (iVar3 == 3) { + sub_0807CF68(5); + sub_0807CF68(3); + sub_0807CF68(2); + sub_0807CF68(1); + sub_0807CF68(0); + } + sub_0807D20C(puVar1->field_0x8, gUnk_0811E484, puVar1->field_0x0); + sub_0807D20C(puVar1->field_0x6, gUnk_0811E484, puVar1->field_0x0); + } + return 1; +} + +u32 sub_0807CF08(u32 arg0, u8* arg1) { + return sub_0807CF88(arg0, arg1); +} + +u32 sub_0807CF10(u8* arg0) { + return sub_0807CF88(3, arg0); +} + +u32 sub_0807CF1C(u8* arg0) { + return sub_0807CF88(5, arg0); +} + +u32 sub_0807CF28(u32 arg0, void* arg1) { + return sub_0807D008(arg0, arg1); +} + +u32 sub_0807CF30(void* arg0) { + return sub_0807D008(3, arg0); +} + +u32 sub_0807CF3C(void* arg0) { + return sub_0807D008(5, arg0); +} diff --git a/src/code_080808D8.c b/src/code_080808D8.c new file mode 100644 index 00000000..e9b9f8f5 --- /dev/null +++ b/src/code_080808D8.c @@ -0,0 +1,25 @@ +#include "global.h" +#include "entity.h" +#include "structures.h" +#include "functions.h" + +void sub_080808D8(void) { + gScreenTransition.transitionType = 0; +} + +void sub_080808E4(void) { + + if (sub_08052638(gScreenTransition.areaID)) { + gScreenTransition.transitionType = 0; + } else { + gScreenTransition.transitionType = 5; + } +} + +void sub_08080904(void) { + gScreenTransition.transitionType = 1; +} + +void sub_08080910(void) { + gScreenTransition.transitionType = 1; +} \ No newline at end of file diff --git a/src/manager/manager27.c b/src/manager/manager27.c index a4f4fda8..57952513 100644 --- a/src/manager/manager27.c +++ b/src/manager/manager27.c @@ -3,16 +3,10 @@ #include "flags.h" #include "functions.h" -typedef struct { - u8 filler[0xAC]; - u16 unk; -} ScreenTransition; - extern u32 sub_0805C920(Entity*); extern void LoadPalettesByPaletteGroupIndex(u32); extern void (*const gUnk_08108D10[])(Entity*); -extern ScreenTransition gScreenTransition; extern u8 gUnk_08108D20[]; void Manager27(Entity *this) @@ -20,10 +14,10 @@ void Manager27(Entity *this) gUnk_08108D10[this->action](this); if (CheckLocalFlagByOffset(0x300, this->entityType.form + 0x67)) { - gScreenTransition.unk |= (1 << (this->entityType).form); + gScreenTransition.field_0xac |= (1 << (this->entityType).form); } else { - gScreenTransition.unk &= ~(1 << (this->entityType).form); + gScreenTransition.field_0xac &= ~(1 << (this->entityType).form); } } diff --git a/src/npc/bladeBrothers.c b/src/npc/bladeBrothers.c index 09c942e7..3ebb104f 100644 --- a/src/npc/bladeBrothers.c +++ b/src/npc/bladeBrothers.c @@ -6,25 +6,13 @@ #include "room.h" #include "textbox.h" -typedef struct { - /*0x00*/ u8 filler[0x2C]; - /*0x2C*/ u8 unk; -} ScreenTransition; - -typedef struct { - u8 filler[0xa8]; - Stats stats; -} struct_02002A40; - extern void (*gUnk_081115C0[])(Entity*); extern void (*gUnk_081115D0[])(Entity*); -extern ScreenTransition gScreenTransition; extern u16 gUnk_081115DC[]; extern u8 gUnk_08111618[]; extern u32* gUnk_081115EC[]; -extern struct_02002A40 gUnk_02002A40; extern u8 gUnk_08111623[]; extern u8 gUnk_0811162B[]; extern u16 gUnk_08111664[]; @@ -60,7 +48,7 @@ void sub_08068A1C(Entity* this) { int offset; (this->entityType).parameter = (this->entityType).form; - if (gScreenTransition.unk != 0) { + if (gScreenTransition.field_0x24[8] != 0) { offset = 6; bVar1 = 3; @@ -114,7 +102,7 @@ void sub_08068AA4(Entity* this) { } void sub_08068ADC(Entity* this) { - if (gScreenTransition.unk == 2) { + if (gScreenTransition.field_0x24[8] == 2) { GetNextFrame(this); } sub_0806FD3C(this); diff --git a/src/npc/forestMinish.c b/src/npc/forestMinish.c index 32b9c77a..7d0daab7 100644 --- a/src/npc/forestMinish.c +++ b/src/npc/forestMinish.c @@ -4,6 +4,7 @@ #include "flags.h" #include "textbox.h" #include "link.h" +#include "structures.h" extern void sub_0805E3A0(Entity*, u32); extern void StartCutscene(Entity*, void*); diff --git a/src/npc/mayorHagen.c b/src/npc/mayorHagen.c index bedf82be..9c9cbe51 100644 --- a/src/npc/mayorHagen.c +++ b/src/npc/mayorHagen.c @@ -6,6 +6,8 @@ #include "sprite.h" #include "textbox.h" #include "npc.h" +#include "structures.h" + extern void sub_0807DD50(Entity*); extern u32 sub_0806F5A4(u32); extern void sub_0806F118(Entity*); diff --git a/src/npc/mutoh.c b/src/npc/mutoh.c index d9d54769..e20d6ea6 100644 --- a/src/npc/mutoh.c +++ b/src/npc/mutoh.c @@ -4,6 +4,7 @@ #include "flags.h" #include "textbox.h" #include "npc.h" +#include "structures.h" extern void sub_0805E3A0(Entity*, u32); extern void sub_0807DD50(Entity*); diff --git a/src/npc/postman.c b/src/npc/postman.c index e2ed44c8..6df8f21b 100644 --- a/src/npc/postman.c +++ b/src/npc/postman.c @@ -3,6 +3,7 @@ #include "npc.h" #include "textbox.h" #include "link.h" +#include "structures.h" typedef struct { u8 filler[7]; diff --git a/src/npc/simon.c b/src/npc/simon.c index 73e6da35..d30b869a 100644 --- a/src/npc/simon.c +++ b/src/npc/simon.c @@ -4,11 +4,6 @@ #include "room.h" #include "flags.h" -typedef struct { - u8 filler[9]; - u8 unk; -} ScreenTransition; - typedef struct { u8 filler[4]; u32 unk; @@ -21,7 +16,6 @@ extern void DoFade(u32, u32); extern void gUnk_0813AD60; extern void gUnk_0813AD74; -extern ScreenTransition gScreenTransition; void Simon(Entity *this) { @@ -37,7 +31,7 @@ void Simon(Entity *this) void sub_0806C224(void) { DoExitTransition(&gUnk_0813AD60); - gScreenTransition.unk = 6; + gScreenTransition.transitionType = 6; } void Simon_CreateChest(Entity *this) @@ -51,7 +45,7 @@ void sub_0806C280(void) { SetGlobalFlag(MAROYA_WAKEUP); DoExitTransition(&gUnk_0813AD74); - gScreenTransition.unk = 6; + gScreenTransition.transitionType = 6; } void sub_0806C2A0(u32 *param_1,struct_0806C2A0 *param_2) diff --git a/src/npc/townsperson.c b/src/npc/townsperson.c index c0b1dd76..60748042 100644 --- a/src/npc/townsperson.c +++ b/src/npc/townsperson.c @@ -4,6 +4,7 @@ #include "link.h" #include "textbox.h" #include "flags.h" +#include "structures.h" typedef struct { u8 frame1; diff --git a/src/npc/windTribespeople.c b/src/npc/windTribespeople.c index 60f9905b..620483b3 100644 --- a/src/npc/windTribespeople.c +++ b/src/npc/windTribespeople.c @@ -3,6 +3,7 @@ #include "npc.h" #include "textbox.h" #include "flags.h" +#include "structures.h" extern u32 LoadExtraSpriteData(Entity*, SpriteLoadData*); extern void sub_0807DD50(Entity*); diff --git a/src/object/windcrest.c b/src/object/windcrest.c index 231eb425..3b883f4e 100644 --- a/src/object/windcrest.c +++ b/src/object/windcrest.c @@ -2,11 +2,6 @@ #include "entity.h" #include "functions.h" -typedef struct { - u8 filler[64]; - u32 windcrests; -} struct_02002A40; - extern void sub_0807DD64(Entity*); extern void sub_0807DDAC(Entity*, u32); extern void sub_0807DDE4(Entity*); @@ -15,7 +10,6 @@ extern void PlaySFX(u32); extern Entity* CreateFx (Entity*, u32, u32); extern u8 gUnk_08125010; -extern struct_02002A40 gUnk_02002A40; void Windcrest(Entity *this) { diff --git a/src/room.c b/src/room.c index 202a5bf9..4246c675 100644 --- a/src/room.c +++ b/src/room.c @@ -234,7 +234,7 @@ extern EntityData gUnk_080D6210; void sub_0804B5BC(void) { - if ((u16)gScreenTransition.startPos.HALF.y > 0x40) + if ((u16)gScreenTransition.playerStartPos.HALF.y > 0x40) LoadRoomEntityList(&gUnk_080D6210); } @@ -1024,7 +1024,7 @@ void sub_0804C018(void) { SetTile(0x4072, 0xc47, 1); if (CheckGlobalFlag(MAZE_CLEAR)) - if (gScreenTransition.startPos.WORD == 0x2780078) // todo: wtf + if (gScreenTransition.playerStartPos.WORD == 0x2780078) // todo: wtf PlaySFX(0x72); ClearGlobalFlag(MAZE_CLEAR); From 9705996f787772c736d9753b8fba755ab2a821f5 Mon Sep 17 00:00:00 2001 From: theo3 Date: Wed, 5 Aug 2020 00:19:44 -0700 Subject: [PATCH 076/158] rescinded entity changes, other fixes --- include/entity.h | 3 +-- include/functions.h | 2 +- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/include/entity.h b/include/entity.h index 03dd4772..e717c9e1 100644 --- a/include/entity.h +++ b/include/entity.h @@ -26,8 +26,7 @@ typedef struct { } BoundingBox; typedef struct Entity { - /*0x00*/ u16 unk0; - /*0x02*/ u8 filler2[0x2]; + /*0x00*/ u32* field_0x0; /*0x04*/ struct Entity* field_0x4; /*0x08*/ EntityType entityType; /*0x0c*/ u8 action; diff --git a/include/functions.h b/include/functions.h index da093417..fadb770d 100644 --- a/include/functions.h +++ b/include/functions.h @@ -39,6 +39,7 @@ extern void UpdateAnimationVariableFrames(Entity*, u32); extern void CopyPositionAndSpriteOffset(Entity*, Entity*); extern u8* GetSpriteSubEntryOffsetDataPointer(u32, u32); extern u32 LoadFixedGFX(Entity*, u32); +extern void ExecuteScriptCommandSet(Entity*, void *); // Unidentified extern void sub_0806ED78(Entity*); @@ -204,5 +205,4 @@ extern u32 sub_0800445C(Entity*); extern void sub_0807A108(void); extern void sub_0801766C(Entity*); extern void sub_08004168(Entity*); -extern void ExecuteScriptCommandSet(Entity*, void *); #endif \ No newline at end of file From 1002af33602ddf1dbe2e8dd9500622516e02ca41 Mon Sep 17 00:00:00 2001 From: theo3 Date: Wed, 5 Aug 2020 00:43:06 -0700 Subject: [PATCH 077/158] oops --- .gitignore | 1 + hyrulefield.sna | Bin 84890 -> 0 bytes 2 files changed, 1 insertion(+) delete mode 100644 hyrulefield.sna diff --git a/.gitignore b/.gitignore index babe0b21..d1b99ebd 100644 --- a/.gitignore +++ b/.gitignore @@ -62,3 +62,4 @@ types_*.taghl !sound/programmable_wave_samples/*.pcm _Deparsed_XSubs.pm *.py +*.sna \ No newline at end of file diff --git a/hyrulefield.sna b/hyrulefield.sna deleted file mode 100644 index 0f6a50b4ee5c910e6223eab8b211da66c87278d3..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 84890 zcma&Nc|cNGAMk$x6}QA{CRL}I>i)Z0I-)gQ~{!wM}Di7?Uj3W zO|P=gRmb29X|w3KFrv^ zciYCG-}XYYr$cvWzl`c9_0}vQKz_Iab_Z@;fA+^e+Y^Qd+nz-Fx3wN_t;xeJ*0K zfaCn%wr&4yofFY<{`Q4X!1jQ13H1eYoa0|_VT@=L%rCODQ$nk@2mU%Hb?rh@AZdOe zgR-)6!S>@T7rgpy+pWONLK5W9^cy)+=>{p4?^7c({Ru6-Znmk0v%(hl-XCIro4MV+ zb z$XU{Uk*5^)ZdMgcbN_L3pmO%B3Nm5(`9$YlLT}GY55FiIFUj(lx8IlG(u z%K6eSWKU;T+Sydcmfo8#=8eurFBMk1W>F7}{4vpKCz4wPep8a$34}Ef*}Zkb$1ST4 zrx9P;EIrokMmXwx$#DXqlJHpQBHcMf>AE7+ydTu;PElUXa8$LNO6b$h&zJRW zOP?P=Al!5cs3L5i8*|ZLG55EHzXkqT=N0rJzj)sK-&FbUGZu7jjUJ`+*yFSST1t;T zuyCf%L$GkwcK7P6`9^O+!+Zb;7lE@Imi$w4rvF%YG+_)>bAJUn(td^YSYH5U00lnF zs9HdqKs?<*m||2dUhlLMOD5|gA5%$EyPPEB&n#gVptzl)EFkBd);w@G$O4t2SF-z{ZGs%cYU zKa+P&6+?QW=6KDqn&f(L?Ds##8RBzdTaL5sdGRSpg2Z2%Ak`x~kU*{v%EA5^iBttj z`@#6k^EKycGHU)LJ|-7HqCJxR(g*C3(mm3HoPpHE2-gLr&E4#FP)g|YtB0y=Ir*kU z$tr20REJCQiw~u!mN~OLR*7rm(pFmDSmc7AG|`g$-NLwa&Y24qLOK!a0P`U85c4qe z$P8>W#5^iK9CIkJ9Gt-!7 zm|6`HN@t#B{vl3}ITMo>b2`RWLD?B9-cSBO9wBCk!@_D9HT!EqYl0|%9tD?TZ%A4) z_mvE;LGEjH2Wg>Ux;}ZI<`vm03oS*hA3jI%3HK=mscxj%u!Io@%~ofoh@Z7u6zF^Sh)-l+fLv z%h5U+Ub#WzRO3|>RIVyFmHX&qv`C?nwSH{<)cUzqWQq=+$s)l`$NVfyRm)V%RV%i7 zp!|1+2J}pAc8EAwOEo69*FH`)9#bOHA%hi`OnrpzikSn?5+fR4Z6qz!H`FNj5sK|T z4a<|1t!xoXq&wVLiT+~;gl6R{OR|FHr#pNVq}^5clDtqeV&^k7mF7SJ;w%bAk87vt z_}Wv130R$xvf02wmn}C00v~Y180?KEk8l&BWZ>e9VRMZI6vG;l;xz1rNU}jc5KBcg zFM2Bh9HHLS@(r;DT?R%sj4(*sqL(YESn6nO5OoR%4sr>&#;PNug@gz(a$zy&Ev#4! z#I2wQ`p}nLc&_k#;e|qOA*V1**A=ei+MubZmwRLDmsWBiazPKfS~?A|GQaS_VbA~- zJ}fLQY8WPfL?gzOioLyyw!ba6`T#e zs+;;bGYyJ|^U-9$PZGkr_ni(jzDrhuV{%2_)ip_x?9uzU&F{$O6d3gE!lqmeGQ#Rb zvb?YO#4%8!5|*fh3i3H)K4@Uiw;Yw@noatEI3&*oe2lijAY6=Gm#1kuK!b0mFH3Y) zz7gcbo}%BR_G`rDFTpXiz~b?JU=oXb(4+%KdZIBE3o%fPaF5Fy>S+V$?^v?JGS4!b zh4PU>UqBIOp$1KKyAv1ulP*-t(+rnDLq##_KN}fz23YA}AL?%)ieWx~OvnTJ93p;% zk01GE4t{75KO*k7lv2cRYP*y^pI>j*Qa=m-G#oXRgH~j~6lK)83|+BUz--pfVQ8{% zV_%RA+z?R|v`z3(DlJr6h1l_(e-LRNX5>7*FI?O`Cs9PP#pr66_wLZv|65r{EvbNY zh;Q-zQk*kLL;9zJ%V=_6ej&(R0X_JinhH^wiPGOrdXImF^vS;ry#o$;p{P$%?BEI- z5FbXt2D(0}mNHg54&*+Tqe#BIA!#ADEYS{yl^*5BWbob{pM7-08M?0rF}#v?1UOJJ z>SG;UW90iVuo{jCPF^6s2gd59sc!o3Tmr4P00TGL=> zU(;221lbGCLDvklkpQ1%KvT8;=C|@4OH`j?QG9|ashGbZ-*+f{hGGB$G_cUT2EVMc z+|u-C*90sBbZfc5gY_ZaT>5j@64XTj_?p;Z8ErlC9a}Y8I=^f!K(ziKPd@?e)`*+F zqD_YD?{y?KY7Ma2sPPpti#7%YiP!h_kxsC!fi3)T97adsTMfE!1w{K3Y@BLv1iz4M zP=Ii#T5NvE8whPer#jPhqWGP^yaZ$9X37n;%lj3~1L!`e`vOxwd^fk?b7~<)Jq#dE3Kn7wsNW(u`7QsJ- zs~&ZNfj{B|RNcWi14NsSCEF&i1$r9o2Cu4!9?N)+H*WxLNHO?eg|HS#+L+#9vDam4Qwk-yZB@?*+NKZ(EOO$wM# z&PE!s(~~eT9?ofq50y03c%W5VrPLpj`?g97+mQIACPWKI7&E>H8I&Lz6C=HqXILJT z-fSg&>X{|b;{8oaa|QSNMR`%JfZ*O z`oX&_uXBegy=Txf0sO_x==Ot@&x6 zb<4PXQuDYkf$mmg3E##+i}5s0u25q1x1@271l72ito3et4^SY|L?0_f1Tm6Gv_54W zWo={qabQO;nILW8IWUQ*h(1=Ks$?REILbQJ`m{CWW5CQYd!n-?BjIziKc)~p-;UQ7Q=07smCG=ks+GLCvu2sJ*Pc828kHNkP{ z_mP0ovZiH?Dhi!0*UVUsC7%W4bI^I{0>tH)m@fWFuaQ0)f+K7R)=3{?iE{{Z3G;43 zxu3XIDS6qEeuM|mL#PG8YAzM)lu)cJb?^SqF z!&XQY5OMuZQAc{mOmMOo^6Zyi8oB128lBM=Y7d!{m>*-N&be1GG`yKUKlW#G^bd;*BHSv9y7ub z@sGLOo8J5-LUM;X`MYQOh z1sMr;*g3FiVsdmt#$5n5Q8VGD z9o-JJ{J;y})S9MMfcT&(S}~`Ur2z`C3EOB#bKL zmUGeXhV7J=;J8VIk>J0k&7~h4aQ+E7_lRI^)e98=dH||jzUIG{&O)c(N1huGW}?&e zXin{-#8-w|Jaaui6mv+S#VsF%JDnM}{95nUWi5R`++z*G5p6pKv8M!WXVObvf(q6`<4F>sY54C7XfFi^~L7QE8#|WAh zw|x-VkXuRX@=I&jRdyn9B2h~0hUbaoEfk#pFjYL5-byp z4##aiw1)eEHZW}U;4G;Qw|t&1&9qKZNbJqN^E>Nrl+#Wh6uEdl#w{PWdOxRXj_1c9 zbflN8mUhLbBv`%8Z^TRh(eT1A{cKAqu_NwmHx7tA^c=_rB12C|QC74^?5zy)CGi1* z-H|X#y=>&~xYo zw7kXdJrAONj)h^F{PBt!_l*670m2|*h;WeP5g`;92)Hwx14f$&W|UwdU<3fjH$al6nFdawDoS|}%MhfH zg7bOj-wx6wEFiGZzUIAKhWVr$2I-x_29tTt+U?*oQ9)E4!E110E3u8(PV6A6iJv%Z zJA<6~o!FH{yiB|TdDTz&*h2h4>>>72>j06cA!>qNqm1gJvqCc z_=WgQNmNX}23`}T#5Z-s#t*Q{li1Yxj;M8x81;%+`+?X%{Mt>t;*WaQ5X*_rh{BFk zM^r+50jz)>v6NU=<*AsQUqO6ML`1|&qIjq8OGP#D=`yN{O}#o6Y^zRxR;AX`zB6H0 zaIn^IM5XjwHVp*BeIhF1_9^19H+euRzDN2iFByVJf0OQ$_@u|AN2C(cLwsi6!-4@) z9@#dBKu;mrc@R7a6A53*thVIa26g*6%YK|y{u|CAJZ?j`pgc{h8}x|ym{>v-5GzD8 zl22(16ziU^kNcbBiS>|s$r>^sx_};=UK@=KG$O7qp1hyDg&aAIIiXN8gZwKwg1nW? zBu9~>$uZ=ey8QVzSzXtAe0To3-R28-tC}#$;o* zL2Z0G&KRB)+j|cVxI!W)vVp86TgZK6BiT$gkr=}lW5X{GKRAZI(Hfbx>CsgDeu zCaX*?KMzuEDegGF4TW&>G0ZrI>BlhV7$zXYtiwjNSZ+UWn0U;tc=3~ck~RN-kbxHj znHpN_TZbzleJkVv_YCulVP-K(HCi=qcu;V5G0ZiF`Nc5X7-ks5tYnyp4D*udU@m^n zjDNYwFdrFaC$m*P_zyk7!ps|{VNwILzja>SPfN#Hh>+DV>=>pQ!@vV48pzDd8M{FD zpmc9S^xR^2A)t_cP#ar^Yxgg$*?LOqa0TB@{e~G^__I-oHCP);yM|Zr3xMQi^+i2} ztOT9Q-Bg1dO#~)eiv4XEzZi7sxQ4&ro33M#E?u50&B&av#E85XsDlRb-00Zk$-YKv znTZB%f<2OPx{zOZuka#|3#AmM7XDTEcj5g)USUUdAUH=QCDR`K3n7N#0(YW?R>SAK zFp}-8I1v^o)Q{oM@H9BDSjh-j#R!BH0ov7!HES8`7!iy}#(KtvjJRxw!DO6bY-DT- z(5UJ@q!*km_@ltD8qN%5>}Mo1JR!(~!w6%fFj5%@7zY`r8EK3|5VW}J(3wLA4uu^$ zeJJ(N?~G%NKN%T}<88l@gZ{pRzk;Pf9{cV#?l>kQ7$RGjIS(O4*k}PhqFPCmH%Hdyj-Wv+Oug zjOZ9fY_QhTz-K&q%qYR78?U8YPkEN|Jmp48PRfgvvXq-Cxhdr-6-HVNlyWO2FGZMw zqy#R8IvZ2Iq!?0+DPL2XQcPj^eI|cPX||-aq{ve+Jhdt;1LU!%8}j`MLJRy0Ru=5X z?`~>AK*6eluz~{xfd#7z4i+3LSW~ceoYg%0g2M$zBHHTP>wT=>53QWFDl~!_DO>=* zVj6;2wx^g;(VZUs+wzkOI0Y$A5ae9ID@ZLkT~JtXyCALLOhHk>or28GA@}Y=ALYz- z%=OHp%-@+Cm|ABD+Q>Y{JkH$2+{`?|Jjo1V{>lvB!puxp1Z>^L{B5i41kdfv9VcRT z9_zGz5_2qO7jt(^0`u81n=*wsEp#$epe#@oND8V7TB{3csHw5%JJbc8_!yc0VE)Pc zi}^P*gL#g5pZS1!o_T@!kXg*KgCHiCnaSicA2Ba7FEJl8OPE>A%kB6zSD06s|1h62 zvzgbJrOao{>&zR>=gb#O=+{2{f4*jZXLd2)FyAuE@kO<6<`3pO=6hxjvzJ-R{J_*O zwahy06yt`z&kanYJsE0b4lxbPFU+q@Bh!?A#FLmPW{Hz-XHqKJVwk=6&-K2nnzBX^ zQL~4+SL6qYLYVuQ7!xq*%qFJ!8?%`Sy+o`~riIy3&y+EBOg;1C>Ww5v<|k&qCIKEDIUOP^7hM6wrrHlSYu=So+zvC2p&UB25 z1A0f6E&H7K{4j#Y90I5~hOeCJ~+uJve_~pnX_!9Y>sTMY?N%YY@TfX zS!Eyaka ztMZf5YTSOb^I$GEs_}QS{_RF1=Le#B@vQ{7Jom? zPl}}u@hKftgJ@`+kR16d*dMVJqu#Vrow9I90OWC@Cd(>8Wyt}-e!+4ps7+k5s+1u( zP%0`BJ?$*9{e#-){PL;dB?RtqSt4Xk>{Qwr`Jb;!Lb=9J?Q5HxV@08*kf8Iahrm|g zQ94xsiOkew$vH{BPz}V3H?ARUfb8D$Jyq;mb{g`lxQUHdh4bv zuX^)J^3rpLXQxEnaUmd^^Ez5B!wTy7b>4Bo>F{41~cqibO$uTDqa8^TTb4Yt^{02q9x~;L>oH`_hBd*)iB81F)&WD%U34(5> zId_$O2WvJL+P(-zY$AjuQn$51vs^?!s)UNS`BLB4Q70$Boq5I8nCxY$XqsTXU_&SS zXN>BI&EQY{b4a?9HkgrUGq@!byGDEVlC3)Tcr7;fMeEVhqbIa^i;up8nZDzWM>NuJ zzI%E+7}4f&d+P44bHcVBSxxN=Fs(7awnU<--Q2GI*etRAMK}WOUQy>ZafZM{3?E+? zwjwg=&;@D^`*3q`FU56X3+O5F=(s_(pZ+V!uFavW%EnFATT*BVK@8YmbgcRcb%g7I za|@@>7_;Z4zrBMNjCT^u_&VS+G~3zM4^+wE2D=Y=4Q$!12CIpj)wg6-4S6zA1N5=d zBi_Rm`XG{xl8%y8%GMt7J-uB&qwM%P**4edr87#Ot=Y?))%z&eJk3F~^&3`bOEiWd z!Umyi^vkpaL@c$hbW=4b$j)EnNp^bJ!qqyZgcwK5wtM%S!S!eNwRUjk5MMc zX4>-G8ma(y!aYiiWJ>l}u)DSOq$q;n=?tc;~ zUg2;ORZw`kFs<-*VNt{@aIg?kq#MuuUul#wqpzB8B&nQklgy))oXfy6dV($GHVGZ= zawgov4I`;maw0IY11ZvTi~|Msb6X2YP@~faYc3Mq&MKNsXan_H!=H=>h>gVMyQq`YBGnvfaU9O~>XgB03RR zR95h|_~7e%c5b_|t!$e~Kyu52LM?tjJ!Ri3h*KIy*Whd&&{;Pu{KlpkC({qUos^j%}h#++e~(>6`o zJn8bJGagP;wv(WXi)MeBx0faly1a10N+Gq^M`GDPwXrI@IIDl|bzdJ%Uf*l?RHGx~ z9Fqd?1pj=52`@MJ6ysptvIg`MA;Tfh4$svS$&=1|*Uw-F-0;bP{IC-n2G`p-O{ILN zgl##<{sVSBt%CTD4bJp&a#Hl>@nIlCMt!;38xp;myLRxvi|89{$E6oHj|qEm%6hj| z=NaGd9gD(q5|>2;iPn<(xj_UMC(9_r#YrUO%(m*(?~oJ=FP;Za4=pmw*(8E|hM!sPH1E^S zgFrh7LE7(O+b8d+*|9Fz?xzv1qo*#OY2&yi!q5aQoV8o(F(FK7b5Q6AjTtp7X$$$EOwr#2is-z1xXBfkxUA0xfp*gxY#~ z$Bf!Js%*SvqVEifzLb#XBVPu#0eo&H2h5SKI=^dcOah!WB7T(HXoR`}C*IE?8lmxH zwARz=Cpw-Sddw%p5_S=%L6;#D^n!45mmL(Ur|cQCl+*~Qc>R_FB|@A0q2%8nF}MuQ z<7+Bfum}o=(pKz_dUzM2)IY;JjuU=-01)G*Ooku3LG<8$Q(BVAVn;PNSt}> z$Jbu^W*W1vuBBK}uUz(6?(Cj*i7X~XUd%j8n(NHHaNeYtGVd{VWAB~2 z<`bW(5OfUs9Xbjffeu55po35t#DMmb;qQI)z0e*C)Cr)SP%yL|`VHC&ZGnOaP+ZSO zXg#zRS`Dp&RziM|FEnI%ELw5~FSr*#^B^B+1~e6#40%8kpr0W}k`BNCrz?~3l^-a? zD%q)INr}9)rL?*9Tj@7Jv!F#F7r4hf=0?p2r+rIkB~B@?kHH>eiHA5(XMS%Pm$2li zQ4rgkvn(i=_QHNLcnc99>_`@ZQmoWcikAMEbkPqLSOl1W@i0B)%Zr>30VPXImX*}* z9RkhE1ivnM-yG%rmwwFWJk2AjfKlYWr%t>bemzr48Sf4BcrAdAp?AMR{?F zx!Zjy>W?QEC7va)te#Oly?R=;NnjSpm8Rh5TN=)NIeT(_&GM2JNH0%Fv%2tbvEUcM zBEe#Kgm_`;f>N(catEbd)FD!OI74btrzom2x-zkHRdr%@%)X9{$ztbp@Xy+R^dgo! z7>606QQx)I?73JKG^ToSXO+6DqpH0sD3{x{ZD@4ug2R*_OG=Wl1Z#{UBXx1D7S6qf78?#8 zx#sgVJUV$|)~;%DwN15k_40+aYdTg`iJ$g2d=HNk9heAlwu*L%c8m6ib}sIp7_u}! zujp2hT&$K{P_X8B;sInzrB|hQ<8QMTiC4)2J)?LIJsn(6Nwunv7cmn=i2>+D zZ=^_A^o_sloZ97uwI8%JMJZB=T19Q56&zEb?dg!p!_^_x{x`#3oOEuiG+m3hZk_B0 zMcjzUiMSbIFTNR-6Lll%depV3opIig?zFjj^RenhhoJhls@5u1m9lD*P~{jiW@5Fg zh&!|7H^Fl!FkhYNbQ^Ig@XGpd0u?qF1((v*5*_ryQBL3xIV6r1XDX4Ski1w|xxRW` z^-LjfLwrbOXVM`nV*ay;=MgU=$|A}mDx%7x%A#IGJ&$6Ybhm#N6<5s|c~Sw*JOfWF zu}UMQ5z`3AXPx{h4N8l=Rc$vZZ^_Fww|IHHoeg~%+Li2uCWkCWS;n2TVdQ`AurJI$`#?oJDa)8Y2-{V{@5x=Kzn_kf#L?Sa+|EodnSt%`rO#(?^z}=Ypr#0O1R7zn z0ke~%&?s}1DQa4_Bg}BJuO+E7?w>!r>lU?l`2Z(=ifP|agE73NGTyk~ZF*MxSx$df z%9#5_H zj-DGD9UDn!svB0^iKk_B-_-ZRvlb(}gQp*MKQ6d+eQ%8Y(g&pzCUK)NRjNV6ieE9J zc1d`=apcE9gCXXfw9W37>r!>`(#U0zweC9lvgoDJB15x9$qMFu%hKgmEPs@~q~(0V z$vdA#{9wV3{NQ?Z`j5Ztv-YoPUiTLktFiwDJ9abA9Deb<@tE7^$pPp`4 z96c_2Y;-AxhA5^8r<5#uj&5^$qMp$*LoRATKh34Z2`ZikmNw+Ozj!!3A8Rlq^EkYe z){b}*FO_$Lm*Xf8E5|;Kq~#Xvlq9q;;%PF?9(P@33dGUOH&`ksQL}zLnxv^-9-efL z%h8BOx_&9z_2Wr-p00ghX3OX=!fR^=u4s0d3QpX}3s$)2=-0w4*!jE$^$4hdSIB$8 zD;w*JEy{(XqbiExTB=Rs^hoa$t+{l$2glb-e%L{{C*ghYAd5fnIK(L5{)ax7*8WCw zq3>h)tLCb0mIuq9#(ul$aw6JT(VIq2#zeeIo|q@$i3%$Vn-;wenQmP}31K(7%ZqmC zYfO8Dh0S85pS9k>7k&$0_hwJeIy-Q2?}b`zN5hMw_Cjmy_&}#sy6N--!~T( z-7Y$cOTELp%ezx1y?|8lIH*lHPqMx`^Z+cdv?9%`2rg#ZJnjBOe~n9pNM~7yc#( zsyA>%o{N)#LhRdEXs9=GDrQiydQgv?F>DyDAF6-!Ai&UG)K=8NQy&fS&RY#>*ziTxD(z%~!}WcNtX{ zSVbQkBXems@&~fMPK@=Q!R6NWh3PCTM`7NY0T;tz@8#O_<2X} zetQ>9t?4Ux50+y8XwrIC9bO9d)`!SXEOFfX*}8?jaq@t6jnODfauL?Zk4@iWF^>-m z>grP_{xKx4?mirHHg>*oPD?51>f@Kj33GPFQhHhS!l&teNuODt`7L3VCzA$^L%|ey z)-6p_U+T{wzGPXg&%nGS`@A$wXcPJ~fA$>uk3PO}K?wyk)NNuRH|ultUQWc%H$OYT z1Mc00ZjWorkpu&ar{_l+DQtUmi~g=&&tb`Ky>$?1E577Vdj~}24M|9c?3uwpm(n^k zLt|}8x611)%0ZXg!OvX-g-U$e7q)6%;5?&fg{-bGsIO~+5T$jc1KOv7L-v&3$h~Sw zoM9*glr8r8(i+|&%&wr$CD*eTpmb|Fy`uH-_!kG}9h|pCNojQvRuiz8`}#MdHTyMe z-wUzvp_aeQW<>jK#y9o-H|MA*g9_xSgN3X+%fcM6pM}euX*616*BY-`Ku@+0Qhg5q zmeg)UYYsaoRU7AB%7g35-~kq~&{Eyns7@U)=&Rpj_6V8#Iou!&?oh+3_#@blBMp{R zeWlj8oOQI*gv`C9e;?bnkmvVD*%t(v}Flcds`h zZkGeC+ru%;hduT{^+Ky1>W=%z{N+mvyCwlvCQeV@)71}u_<1K=b8E?p&zjIr*`ORb7v?n>jSB2`k7eHf^i5!c3Uxx2m1>L9%_VS_#rebcCppJK;=mPH}Pso-J4A5Q8UwKVqifMiGYPC)} zGNE=ix%yJgC8@s7cdp#+$Ni)qU&_6N4ZZkG?fhEbRR68Md7Q!bX}9H~oMlr_15*77 zE#~680;yc~!L4_{xyV#R#Yf{x>E+9UD}oSe=$<|vw}{K@ZyXvhnt0|15}?Xj_Id@; z^yiRAR{N!nOX?$eW1T#*-^Qwq3$B(Gp8sY3)y}22!cFz&9`kH+Jz8(6SHEdN(&L56 zCs3OXSFAzTcuHqZ)!Ph}cFspBBycH_D`x$myZ(}Ulb4%4 zYdYQx06!*2%$cPE2t^@*>sT(%~)HT;E~+td`l zXxR~34&N(+n@#;u&@*xc(v!e$*VOqN_Jq#cpIeIZ`*=Bq6g=yrWBVz4RWCBW36LfI zpN26(NO^i64DPqS7@dS2OBALWjY$i9?{Dha^1;Y@@{0Ox;Q7)H7kRylrTXWtU-IOt zB)DsZ{0GYSXGM+1)4Vq{tCt)0#^O7&lZ$T%hN;1Dp^oxTqB95eoU-o3W?V<|HSjFB zyfJ*cw*fJ*XJzX5ln)$^GkfP4jC_`psu0iXLM^-%1I50^`rFNJpQhE6(yZRuED$Ud z{9By!FR-@YwO2cA)_?IvQz_zxTE5ihbC0nhVURUep4ZdL9nkPwVP|S{6`s;jdX%RI zUXiQr%jc0EEhu>qgT5CwJ{UAh&k>lc6YfRaZ9aTiu6woxog691zi1>)~ zuOQ;Tg0gTyA~Sp07X6Km0r@)I2SAhWpT9T|;z-E}y8UV@c)>ESu;GvyOnqxMtuv=3{=q9Rx(q&Q zf?$TD%?v7SLqqvkAP;iIl1LMNXDf_3E7~pqp6tl4yPR2S*(D zHgnWvBlwR<1UD%jluB(Lk?)f{etlx|WH>%u6=VxUfg<65V-&^%JQVp{!E6m`9UWPy zFY6J+!}c}b!!1TuBwb%^+Ed*Me>as58Ybo=TS`s8dx&P^;its*k=>Jr>XBBqPo|el zWu}{Vy=VzeqUleBY|TyLwj){_V9p?+&o$we@tRhaO7hI&U8FflYjxp+mHA!W@~EvC`aZ!9~R4BIa7IAPOMvuC(tC zKhbMc7omY%=BB*>GTAPSh4(3ZhrkayH!zt zMRO)llIj8fR=>S|M{qsg9b}Z{X^p0IY4{zT30huoSKi)G7XA4Xc|z&OH%ncg3Z8O} zJo@Ap4tdll`LYlB3$D(;+E{Da)P2`zzRAw^!E(Ck-tCL?Zg_~ci>tc=R zVVD6g{L}7&v{pp5B1Srp3SKv8{=uG0&q!4_FSQLl5`^q!Ag-%UH9xKYhu*06FC8sJ zF4S_gV3Qy6l9JbNy)FDe-yxY}uwwHu(&^}4GQYs$E_qVKAG;BwJIwx&okRYIWT+061L@gtQCSkrUpM^Kd0)`<@Mft zsul7*{P~u9Z_;&7T8C20Y4@c;yV+x@jW@g6fHdhW(nS#YI7zOGuLch1eOEVq-uO9a zp5>~LOLo0R zYhIfU|0aL`R|{QTmu|SO~Gl5~lW^aP>vX-(r7fo?haM? zxRw2kmPl#6tCKVDy~S(pXbr!;L2=)6RZbwDq-w%QMvyTSJdV1IT7bm);<+nV;8ME^ zrZ+C5h+`jgm*vO@_z8(Fahzbzg~U!zX{z5W=s8=HlB zM85FP%BXet#ZOa~DD+AK;wyvJn#Gz4JBV2%?3hr01Rm`(eW;=0qc9w~uMy|K#rlWB zN>H;*bE16Fsn-e916dBG*O0hU-K}?t0@Tmc?UxmT78^rRzFtwjE@(2pP9~g~H3_bj z=#eONq}jKfZz*osudD^pY=b=Z75<=ByV0qoYqoxK6!y>RRpoo)OFJsQ&=r>G+P8gD z?wNGs7TbSe52t#-reRXjSalpy({P=f-T+kkT4Q3zP>6wD zB!9EwwZ6JWO7AMam_T98(9qQ^xKF;A-nD9y0Xyb7M=Jjp_spUFy!W3Lg=un9Fcnnk z`Q={wn?qxxELxq4ChIwDYDu^^Tt)|B+2vmJ5X1q+J|bvQOW`k?P!?&~pRxC2XVgl9 zVlAGl*j8%#%Fqk6e;JU__bs=m5_B17%O7J(p9J3^za(<69EgYR53aal`2{v53GWBk z7k(-_e$X=EHoa>^R__OqJ1Lu(ZOV|+{80XP?n=M@xd_gHs2z7RiS$b`%bkHDI)|G#z?#YpIqtbNAZr=tf%T;9iP<*x z8lU%vabj}H9eCyy?MBmGT&S^q)4I&X@oFRv_?U#L?#Qd2Rf*gf8(7-AXQ;#SxB2(l zy4XKjxNp7nduqc6oFeBS_j7L4x~MgMO>9cM4sNIQn-06E`A?gZTB=_o&x~FxY}7Q2zs`w z!be$*e9;4yY(F_G(Vo&ioO&#Ov`7n7_MHDj+JQ~5aw5GVvGq(XX=o~PjvgS~wiFXr zU=5)dSuWJCjwR_ged`WZwX){czSF3~2Z0O1zecs1I=qmGmv6(NRi1X&8L!`F!}5W< zxffz(cs|;dH#(?$@QrEn8|e{XqW7}{<;(MKh6AM`=%EvRnmpZ%F48S~V!5K(uWzqN z{mH$PKfJE^k05=uB~l;klK(DDQeoc$eArI_Fosv$;fV2c@HVB{;MF@nZAiV?#*=NO>`+lDHob&z(ACeGAcGmS<-|w~jN{d~B&v;5K zt!YZQg#_V?#0W{9MO{Tv*$aEECKmE5LTYBqj2;ts%Y-Pw#oh((on@0sbB8~v9H9gM zFh4=i+Eim9y;+V_whzgk zzAIGk)|_2X&`L2G3w)pT;nC-WUg~j@1ShLGt9Sfsf(L)$VTt{00p8^8(A#Qf>LU?2 zh1{L6)mgsM?l$kX1(_*AyA2+F&Wpby$;HO*PTg$AGs#nC#6IqiZCd+TT z-p*Jov{0L*G6_8G<)F&F>`=D>$33-fwcG5!KXVHtoXo9@xHX@Eh`$i+0(+a3#oq9E zJB~c?9E3^_9R_2)UJKaNb}n7 zz;Ua}q+79mAbYqW${dp4h_`lwtMS}EKpz@s++^voK|8qa#$ODs{N_6meI zijnUHB+5BGGh|=wMYq5B`|57Cs!(0aN2Ua%h0lJj)fKhW0a4GfZ2n*YyCR@_Q2_+` zZdUn^*fM$vqd$ap{Hl8)9^GckAp%dLyHK}oA?nM>lIKu`;aa5sS#<_^UMGZ)Vg&?te;FUs{i$7_v3d!~ndvC&5V1rcUto~S!RT8Na=>(Md?W#SQdvK{L ze0d1^pCR?{0d+-gc`i!AbT(GGMWriZSu%BS>*U*(M=WGOF*hSuvZs4ZauqVy%pFU* z*{E|mD@eRWytC)TsPNqQ-71iudfE#v8mm*2@)0x1)Mc|}la5^zCV3KIsvy9kCPhCWnNnp|*Gkutfn^L!21S9d1`8lxZ>u)L=3pQ@ZXvLpZ{-M4))x_War`eEa zgkO~s0m0vn7%rb>ijS=xDHw>5pzcNzYWMvrypvQUkSK3@Oq|~&AV!-Cl&KT;WfbAi z1XA1D6SGLP?a2is+j5ZbwVrn|I;g{NpyJxv`6IousGadv|GTr!i&wz1Qs;>SOPeOmT>l+zJ1t*L>;JTHYn z>ItMqKo1VoUxlFlO8DWtEe3;y(F@7;IVcQ-0#RfM{0azH^L|qe8q@}2wm|>?87kng zLH(1XGJd;F6r%c1fC>U>s{b9L`cHsr*bsvLCq#8riAt*1_7=ZtFUz-~-@}BZd4`i(}g}%7T!lNOWslE^eN9_JZs+Qt5kqkf)#HU7RvPY!TeC%rO7c0vbNe<#BH!l zR8d`vn4YV)hxe)kY1pj%o^${E3jIVPul}#i6xFJ=wLd>#9LQ9^(SvPvN9-5O_r$lF zT;AYw)J2>@Rry0KaM<*Wo!Fr>-d!sqHiED}>Hmyi{Tsg`YB*6u5v+cswzpx+yaL4i ze;L3z#K9Qv) z0c~hd5`*OYV z=qCDuUiUEk6ZFD6VBCr+*%A1w*!ddAA1w+P1g)^8fvAY-+-_!(I6qusIC%AHSA8Q| z6>}4VLZje=-m=_>AZ55$>#hT$0E{PTC{kLX6U`Pv$%rdL^bueAkY2T`4q z=qcF`k}$d*osG@GZrVde&32-{p^bU>;V$%dbT_(ZrSi`g6J~1bzc@^zXVA0g!$qID zvM4!2R?_@hcpVJNom)~%IqOlM)XrP|jE7ijF?yIbbO&12VQGD1d;d0w^#lDAJ%S!Z z|3Z(U$05?1aYbzm8k2rpBL<6c*r?_+NXLI7jX6bop{-?U=%;86SQGwWY1%Q-E{BoF zSSq95>0op*?L#Z`n^wfwZ<1d`FQEnKC$3Dk@4!w=zUZH|@+dZXRxRqb}~)k8BWix8%LTe-rQ3!0}fD2>&ZM)VKcRw|%4 z=zw#B>70=trIy_b=Khs^NkyyBgVag<6uuo_6L`tLu>rkdu&gew@BB-xFJ%0zLH!$e zoKd@}ae|3XOX#y{H+D^0>hMZ}{m(-eAY%~DD_RS!i*f(+#u~;49CQ&R8o5AlHh>?* z_l?$&dH5CY^M1HM+mf$9-~3qcOAI9xQPI{~`5KLx?=lE5m32653)z9l9|>}bgdA?w zY>u+&IE4nuMk+LcpTW=K=kUGmWoFZOkBIT_#KHJU`zGoxI-XFM8Qcy%?-n)wT_HCp z+qh=)#4c#}&X1p92cQ6ej2c~y+1Yyj{M$Km4c!l`Bdn>tBbJf_wI#d|>%5D>WG#2C z&Mz0taD8%Sn(P)A6zS=(A8kQh!B|!>`7>;R2T6-9b0i zr#aC5A6n*fDoyMQQ>k@~GBLm8IRAJEFZggWHxvqk!Y2wSf2=o03BUeIsSa4zzW0d@ z!xQ`MCQlD-^zLAm@|nH*f%R{&Ze9^xM%fbvM?X6WkK9TUJI^qKE74ouBWl;6s*_-6 zYj48@Vg=E178-1yZu)63{Zc8S(6#C3%|c>E+;e{czWw3}s|#-=+A9V;ifmhwmQKXA zvz%x=#A;pA$Kz%CjNJy(aPHxcju|<>iWi<{cdv~kfm*~0^N=4wmR=U8)Q%-kcW*F5 zUHm20_ZIzr-M6K4w=5>y?MRSq*vavLwJ)Q4Uv_)jtBJ!_)%Fqr3Y6tLYeWU>keT`= zNm!lh8J94OcX31|_mmySqf$_}QCR;U#=Ee)v94G*Y>I#G*&-SE`nS77R#uW1RZYGp zO<=}8gqo2o@x7;IS_afS}U=5O%!GRNA;s4Ud{GhK?1bCayCY7JZ6sF%Uy ztly(&gY(v3RDoBoX?XxHa9Cf5Qx2Y3wfGU{g5>n3AGYIFVR1vjOE>IF*@I)Rm7$HO zQz$Q#Hp&-70jP;uFgxaA+PEC74J*Qge6PpXLO2V4*D1*g>JkZh&Iu@pA% zdg~lGwI=qKUEM_)_d(2*tA0c3HDowkpxr(@y3uY#=9$I}E>>6`5>;IhbU7d?3Y-ELhGAy;+1E z&(ElqVK1fiv9dr%7vgDc!mC0jRjG-fwVQ;0@bzs#$Hf>HH>n}l9Hc53^7C_~de=81?5QQ;K71@AWD;XC1q38!{# z9(`A?oV3x@#IionpD%N0oj0l)pL5?c$b;}GmG^>BF64SVAF5q!Xm1;oQpn$vr3$$m z^~B&Xc#Ih41ZE%Vhc5pf2Y>(E1-FarbM#7+>Sdp~1)uLf{3gvtZWwLsCQYmx)eKc} zMfwRC+ui)g^%#N|K?$RbQNegm;vZ|-axDV2>IklqLnNpTz@J1(NC@f8Nhl)%8;Om= zMq{a1+tIbtb)g8$W@GQ{+4d9EQBLR|!R1>l>-sd^Cj`EYZzGG&^|}cN`LW{Y7(|75 z1DlAwiM@qQ!ct@&Ywohe*GKf-JTW17d&$1bffcg#@nt`+`SLNAq@|b)Uv3sQNAcW3 z!&C^{ZHDUN5cYtoly+Tt+(T>zwxaeG>Jj!aHWT|AsY6>rR**Hs`?irs3JU30uQ2FZ zg0k$EK_s&+_;9^Nn^B&C;99Ba-BoJoQ>h9)!#>Bpz~*BMu%0(hYjd_kN1*TzHGmp;M z3faHPYzpGaH=?la>4$a4hu6z0LCW=y&UmXqFvi(G%8hp7*$2-@Y}X^J=H>X0r}0S{ zp6}8gAAWJHo>UUGbEQ(_NV=dtR7@7$s9(ZS|k3pjX3u81<$70-j1Ielug#h4b_{&(??blH*8pnJ&^zAkz zSlA^X>6=xg@M+W(x0^5CtXj2uaA*Ch?Ns?s@*QW~83)Kc?$a$jk;^v2`Q;w`ZVR#T z@4NZJ7ehzma7W)X8LBpf@sl*3NBA#jEaD&c5S=Kt?SX9TKwbant}QytHUytd@J4=5 zB>zC2O)BE1^8wozB8Y5}jzmoxNQV0_G#s7mI+tq6IrbHDv{RgFQ-Xc!i9Fj4W>vkG zI4C>2=lL1b%IKxpP7~5th3B{LHi2=G@BI`jf`Ouyj^@FwZjNf#;cvc zYWsy+EQBHx<26$&*BhUqUaDyCeuXR1v8(=eF{zT!pFSV7pc2h6S;ngczQD?U8|mEW zEl_t|x65LKmUddl^i_A)UeeWVUl6t8F{#a#cvTmx<~JQH@y5s}RXt10)Mj|gx53xx z?H(UJABirvGoS`coYaRGy|2EvIasCA zWCkC~P@X+^fOxO{_^DqZ7Fr|tbi8*D%Xp~Uy|P_ls2oq8PgKpBB(|di%*zjHNjRK@ z?hkJ$v_HNRvGwIfbsyI28K7sd~_%KTi)R;F&F zZ+@{Vn!nTCs4nv|Zaa1d_VCi1Bw>lLuq$c0Q!X;47sxNPBGk?#V<)#pe^0CA_>u&# z1RHh=j0)zr%>9g9%>bSZ5$?y_8~;Txl_ec;AfTc?1rkj)ery(l35bVoU(DZ%6U%7K zl?lBZl$h9D%=8ZAzRd*sXI0ouIbr5r2?+bFV>weSt%S)&{=SS9!)F#uY_S73rL;^5 ze-8y;MHLRZD(s&2G=0nWN$b+Q@$Q10JPrd(WKLl|AXpEL@ekkR>irdMx?Z5F`l;#? z)JbUE%YSkbgA5k#dhsp$9^qnNMT44Yy{Xu`vDKYFYx_UoiC9FSvO!^%pYfHP8&PC?*2d^{@NtFK*`Ym`a=E&>iBmRcEwtq7v zAX%h%$!V(z3t2;`UmCBthddJ+hAmXspjjhSf*A6U{T9K>^~`$;=Pz7E zy3bBmVUZ89Hq_3vxEX%cpn}48Ppwq8@&RpQfoBiK#DP!r1d_%jC}yS>?#@6cYm&|_ zRO~*7Os%`g+k=deGz%7bG-SnjF-z#rREjXIy8z01Oj@Av$9`R!q*7|4#z&A34+}Jr zU!)Hw+CQ-cA<-~(771PK37w#h=mfPt_MVkLhOF#ag*=>3@>C`8kb#{q7le`o{4OMI zx@xvgo{fB{1g^C%O$`6nS}j74$2|7PV%3Bx0T~%mS3!0Zm<(Q)fXG|t$j!E%&u3#t z&mshe$?17bl6EK(Am~|u?F0zOq458Mx&U)!%%3Lz5IT72{YG7KhN%-k-Fb^$*Gq?k z>+HxG-GeAG$R|vMy8mMC(}W`@Hc7=uD2Pz^ zU(AgUQEggjhI_Ne?;p&?wWt3DFt@zwL2kS~9Q`lqelUCRaXrfSY@63liZKTI59&g= zubJ)tVs4n>R@6VJdzZ*R3Q)JS7JdpqH`~nj764tIasS~>H1yze!egHdWpxOBqUSo&!l`M;o>D&BD8KcE{V+o+>gW-(Y0lr)9wKAj0c|Ss?xkx*D1p>jCI42R#L#=OXiU@&j47ckKSbiQl*jaHtpqr(Tv_#e>KR_@b<)~y*Wg#QoFwX~tA0MMN} zYn=kg>+8gPQ}>6~VKll)b$@QXb^(pCE54>7h2ebpFX$%gQRE__D4XC;=>Gs+%l3;> z)A;u8h>(OZa%9sqv6YUGo6LK(5qdWNU(l7L$O%NC8yE;B{|4Qn)Saf;Vj7h>Id+Bf zgO3|MORB9Kofc}x_>UU%9(ttX)3ye`x{w$fiZLUvoAY&tSGm)iCxTI<$<)AnjrT{% zUcW(CFU(KVp)4@Bn`BB2__80jItTK7ld#LKF3|s>Acx5?u2w&(?XJUu5%bP}Kv!@s ztbGHyLD)VykAwmUFlUasqI!0 zO8vYPoHA8~t3(6P?JV^iG8a%~_CmC?_U44AH{ZOoeOdeXd1_I3_H+D@_J{_;p1pY3 z^`WsukY89@QPK=g*v{Q(>I4k2x7O)Rw;79{PkjeKcSWGAVb0P8`=8ksl09w+H!A+4 zNBASlj@|dKw)J`{0MI>d6ITL2_rsj<0Z-cYun2UuI?FO7UwDSTEKX0t0nlY6UCwZE zC*`gIoZPLsJShaA%WvoQia>XMtPMsb{{~&y{mln=tOxc4))TAme)bpu-M-*~FxSS* z4^?;0>qW*cnRgQ!9WBl7$6Z=bYv&fUi9ok?xsSj1d09}02z3A6mO;JbqtXCCx3Q0j z#{7`_yv-(7<(j<+bOSRE-?!W3c}&gVQJ%k~1)$T5)X8Ow4nfx(ie~sffIFSk{2c)9 zuc`0gdLqa97jmtUPb*{s`ef7tOkB+*)?SMmHIQyp@3<8cddynsan}DcX?ev(yUr? zWZZxXhJEoL!2M*Uqy->XSat(hOAWM>ccsWGAIVu|GZaU;ueqykBQ|1>#wPKPajnrCY876>at3r2g{rPl5Ma5bBMP=|9~vm0!W zXjN^Pn$r&Za*KL1-hB0NM&vnKJ;{1u&8{=9_Lw#G9T!4lWgNQSG2P84douKi{c2&u z6;HM%jWn!(`j}t9Cd#r)g@e{EeWbcP$V$Gr&$`~zU&+1khBd~9V$>+sN>&g76^W8+D_)*SZ}dtO`c;`Q*s%7$g&{(sk- zWX4;Ac~LR*i@!<#GW8$8odvg(Q5ExSc3+PP!fljk-bC4Rn9 zW>ljkyuEz|x}feyW_dgTBc4fk3y;R;t^XHrS*>wg+s3z+LhjjKfiDRn7$aEs7|ApLLp>DQ~wvvw#Zev1Ov%^?JV7m0E7GE>eaRMe?ZnqQxuDA(-tuoXV zDj<+bY|pBuhxkuOl^lXq~y! z8!@9i_PhC?nl{P_$h?e0;(q~`<5SrQ@D>4>3mv-(75jGF=&cOEeAo_fHzI)HJ< z0pnVR0LFa`7`GHKuJv=kxZ9@z@*H5?)UNSK0LESYx=^*$C7-FKv7ub49l~CmGLg~l z?dh4=={q4b4llSia7Nl687}@_eolwj5OHN>iWsG$N0l8%VL!#zxyyc-3lH`dL$2=M z)hm4y-@9_I+}TL_Y&yHnY`-Z4xWf=?CFMUrp))m4-Gi zAE-|lm_6mV^!?_CMR>5F!-ByswMc9KQDZeuX4(1R`~~&10p=&x5EM?ryBhwwWQGrW zn&vaSN4VEKDeqI!DfZH%HKb*Qo}aMs^!N_q^d0`iO1m(I@3(n!m;tqd`q9r|zVEd7KrlBh^AL2{S?06brZBD|UJaieAr}rhNSh2lqd;etjDWH?1eWweEhK0`!LUD+_6eyYHlP<;@52xH zZbgd&j~ybl#rfi1Py|LD;-Y&q;79Od!b?fy?#$x)%p@(L0!;7AGd1#sPs_hrT$=^w z;BHd`Bq8B|PlX|JDK{w>elqNaE0lN&|Fv9Nr3(KI;{;EyaW?~d!PfQ56G@yrDp-8d z(Y4#6`EIs5+KI8H&0x>$Q*g&K2Dr>OO*?cKinm635hbEeJwZq-gSpB=)|j|2L8Gbx zeVp0}D^(p5O5Rr-Y=6g%YM7I>^7d$0PEg-=0UmUcrbx08Gx2u{lIQ=7ooZaND&20y zXBh{Ckl^r66O1Wl9oV8(q4|xQVaze>F&i*Nc>`2b?sUkXqfYnJ(fpF_+ArV-<26Es zHPA!>yj>S9oW=Q(hJNI;&beCG!^K9W1nh!Qq znIeI6AsEl3A~gS%L)6@{D0*Vl^5c+Mg+ekagd?w{wP~ z>>Gt<-9kcFh}}Dve2ZqpFb1&(V@8Vbt!h`^{BrD{Hwk*^a^wet1_c-{?W6TN{OZDv zy3I~EN`BJ|X?eLT^3z9d=B2o4LyWLfyBs%E8j4vw(D5^mo{_n-@q%D&J=gB!V}5jZ zyJlCOfBSd07*=HCvZ7zl=zYmW1ZTjw??%n3vU(_r712u02$3|pL zqa!ghXb1VBHMU`99{pOFu|S_GQdg$Tq-B8C@udulJ>(w2>BkQj{s`d?zG#gNMTejb zF-w_4r;#G{aH_@Q1Y3+)H!IH50=G334(K>q5?Fb|A150;~)*GTPfj5B71->`roEUJu0itM91rjuIX&u#E*W{g)C{2lIwTY2lL?O%tk z21a*8f5r?j<9p}*zObT(BIrW#S>fCHOhf_SH;bQCMgLjWHT|0c=#%u0RIVJ zLwArOuERIrMEE9rYii4)L{jTS5diF%&pHXdzPqC5e(kNuy-=e7s;7{sE7`ja7ng1ekB=B?o|9VHExakAdC9vsNVW zOUrtSC?%9KN@ejoES!KR;i>3n`P5(MZ?;=id?yz#8$uj&)Oyqg)JBwO7sV1)LxNdW zC~K4r$`)mZvPY4ine_w*lq1Rs<&1Jc@z4tjn^9Yg(U8_w)Hc+1)DF~6)GpL+)F``R zS*mIyA+LmscrAfa%^6PgbJSB*K4vBrSM)b35B1F5Gcl8^KP>SA^%trD7)JSSTpd*5 zE7TK|G8?&^fl5a`&YsAGIP)kzY60~Cm40GhSBFbO(NS5s zsC!FS@Z4pT5QU&Z4uoN

X4e54kg_*|+}g*QZg_Q?iW~^9A{E(?X*le1_DViGDQV zH!U2?@1aiNgiVhHei>#CRJEK0$QLEDwL`sB)Opke)J4=;)E}sGC_mIb&uM7sy^>F)1KF6f^k&`w{yI+lXz#e#3TQzhk?x zJ=hWKC=)1PvA?im*m3LXzscbdjxwFdklLV3(Y)%{H3-7l;I`qm z<96V7;*Q{s;*Q~tljar|whV6}C?iyqAjm}|Z9C-JB7zW8mw4YyXnZYu{Ix7v7Jyexi|H3XUB z<$>pR12Ecd!mHp{;Vtnb+<|2(J_0y#L-M4cnB90+yc^yFe**7`zkt7p2b~n#d1)cW z2Bm{eEMJ1xVE+2XZwLA+*e zO;ga~o0-`9ASl=tTPlP!Afmsl1)Prgg87OG*zyYv^m*Y*24JK08_0@K!E(KePnCWM zcBFXlEnEuf?nu%}&l_I$8GpD%4#M^;98e$fdw;EM!vvxOH*)1R`E5#P4y!_t{28U~^4pcp%AZwgSLjff zSKupb(}o5_l?GA!z|Gt*?9T+1WJZ?LHHjF(3I|cUK~zKl@x_+ploVQmwrsO_%fCJU zRv`r0hPT{qPECo?r5V$7V~icl*#ktBqd90JnrmWW1c@y-Tb{SPXxU@F*Bm8VCFXBV zF@OH`#n;5IH@~W&V(qr!m0KX%-T9uD%ery8S-RP}pzDA7AyrHl)b*2{V-^pz9B#SP z64G+ezQ%bXsO3rMTrzOPV&4?tC{fHho+0y)>dm3{@mO0Ex`jUWCgLNeraG z%Sj|JxB{f8IY5dkiua3B_$Qh@o1>el&2`G(JP*DCTENWLhm*QUgYTRLf8D*e3^Zoj zsGl5^SEo*Il?gC#J@l0z8FLVdx!!W4+AHV zEL!)pu5xut^;8@6qodMG6>MWL24&*7l&S ztnE!(thLXeXWNP9He!b7B2SPyS8xaM$!^QmQDGcx%~H;iyQb#&IqOSS>ytoW4fEFX z(Yve{r{|?d){D`L)oU3gG`da-$!ps%DD|_{%(m#3$19Q&W2u=;K5>29;d`GDuVfqF z>6xtAtQOiTv|{#(?CB?pG+FJFdZ+ZR=*1hJG>kXAVrcOqaJ1!RHC1J*Dg!*PN`Jv; zVwLh7y0>aWN5{{<6|(nakEto-tu(Q%#?|{#J+1!RP&{O-ohIrOfez5^x3~Ll^KN6}=Bq?`V5KSg zMRQ5<{#*mYxFg$iCGk$KC-357WL&ZoZj1WopmbCEGw#~vROi?WM3c>_E)ToMwh;p{|>jK6%jnagUIDR7!j+R4LX>0LWrr(CvNeMbdB;Iu%;eC5^Ml0Q_< zZhyS--C0t-U&hhPqQoK9DRo&V7U!5MexB~)(e`6-^AaIH<;x$>Yt+^#KAo)O@!37h z{MDwn{Lv59uO{3~b2dOT8Jjz*^UoLbx@cmsspHhqrSH5p?ugeA*I?l<`}n`iLb#b4 zSI#AGPA^Tqd99+Fl7`f~KV6wvu4i8nD(pBCva|d4EO7+4ZVu;XnIO$J?6BZjQ2qBs zNVdljs|^iO#W+*NFKMrGKGVMB_*76puOJ{HvVupY#MzXx3iGqi$SvMY&Q8g8NU~GB z>BzX2pEpCB&r!}LoL?|en7CtE@G3brrYUs85uyr#TqM1`hEx5(W<-(+=e z$N2*P%9f<_4C-1Yw)e7Fg0}lB+G|4^F^ksrGDrEz=bZ36!+SyMP=8D6)>Plr(`j4M zPN(^%sXwmQ^4+Ktj5Jzi^b01kC#xeGoOQZ%H5>C9h^d`31{n^fvoz_fxs@`#bY=QX z&TxveuQL>Pgua5VL~o~UqEA%yayHV7X(ql#C*0W!8?*8sHB5fV;yp4?Ns;Z|p~X{v zvTwr*K{CNYG54BQknV z6oT%1@IJbOu=AZ(hr^f)=&@^lJX{88cH9uP3Pf#yZ9V;vs3sz6b};e+2K&Pqsii@g z90+eS$jM8|w!@r3L=}=(MX!r$9WteWP^w6zWa})t2Fw!+MXwzUZBB`r6i6}JvCT(V zBvQ^jT*FkkiVRwFCc1_)Hv5frWce?U#-w^wwiy=czAo0Q#A%dL_1}Cg`c_0q99VDF zIk9s3&g*OIVO|2MzU_q^L`8-r9yy zWokM5m)(l?6j_PUgh@pfg_{aD7FsHJUsEbf*;S+25^rxMcB@E!hg8Yt{a)|tiVY0$ zEW+ACQ8gV@%JZ@FM);(<({#%sP%aOV@-hMjIg#JZ;Ev=iskN_7fYtc*UY%8bt^Td^ zLyJm3Zk@em@mju+LArQjOIq~#KbUcen_g?wcqkOM1jiQnta<~bSUMl2hZQZ*j}-X> z#r7jQ=yKA5p{W>1l!}3Xsd!;+<+Z6~U!&KrivpeT9NBD9QwV4pDo$h@^w~}bWy|9f znx~4UbutK(t7lVe+L~8`F;G(RAxaw0m>x_&+{G)Yr-#t{W2!WOJ1sY)7$}tL`98L} z!E3B+>n2M~i=y7s-9(;-k5vITy=T+5=~wD?e6PJ;TI$Mh_)juJ%7T13B zaTi3GJ67`}^c3W6!S#X0qyQH-0uGRozPFpWN9sYdkT{@m7|6C=f zkhnyBJUDb=HTS%B)URsmD>By&-mV5`W^9i%e4Ay&RhnvWT(iTo7&)z9#hzAu3UXj# zinJ9_hMDH>bzEbv3D=doZ{VRY!uoLajoKpxZ26~~ayC|7 z6+XyWpJSe5nv5ymxr2)z{LX*t;FPg*2Wvbw>Pmb-mu8nwQsT#Vl0qU)XkDe6&8YHK z&T(NQ4|!fHNUQ{=8_I{NJ;#%G$s?s z5Z^4?gnXEGgr-Idr5&Y>t(Jj~(ZXoqwBs~AS_BPJ@g{v<}>mf+MS>|Xo zYc>lx2uG`#*o@|CmvOy%y&y77?&Dr%>!8T!0WS;$-iu@`dC+Uf3rEJ2hrNDyiIIPL zjd)3rExJ`9N%E-IFE1&wG&wLZ`EE_sB~ab+ZJAPY`9iX8)@q2y*nH1Ou`mc@^1+Y)6`Tyqdg*9Q-k9crAGyqjgMMJRt75i+#W) z4@xw70G?N|ZML&-CN&q@c5CyH8J_XWBBE9zsb#7~V%)ldVqpKnrO(g`sA*;TRC+tP zmc6RI9bBv4QZApn5b6h^{Jkh%$zCa50k=0oUOHZ>L0)&f?s^4#g?QcbO1njG<#Sp& z(;UJuS-@d5GbR|5O;yoiWg zO^nQkX7f5_2^AJcv)a02(uO~I%Qq`DLr|ocIdeU;d401f!;G3v}q@ALpFygNZK2i9xIoR@|hQ_d!;WNTbWz7Z6(c*4Z}f7>o3T z)Ye7M>x#w-=)p9JFGdIYolz^oMz5}Tvp;La&VC(X|Is6aU##Vq^(N1cyr;yakG_N? zU`QmB6}ewULRsK{1>V@T!0{?EToeHTf2_#$I?4dzPltFE%(exi*ibgWr^_M{sBOGd zbr7(uru&Om6E72V?)yIg3es3Db6E+IgjBo^;1EirA`PkqpHi2O)EWSFqsXf$vcUp` zghZ-Vkr7s;YZa+p#ej`fq30BC}yEw5?-F%aGze{ z9}7W?BK4?904mateghKF3gA+PE`0|wP?3tX>$i+lBm@OA(h6eh;aZu?Xu*;DB6TZJ zssiWpQy_2^iB&~%R*@dnpmt@g&tK6}B28+U&(K`lcM5)7JLKbuSpl#;7g#U)t5HP$ zPm!r}*?;+xrey^lqG$$*OrRoX=i()`po!4DdC2nQ%w8wjjTi}0mqA8d3M8dJ=bRaJMtuB?hI(ShPeYtn&n&##B zm|H-1!T_QY@t2a5vXWRa32>5EQbDgLk?*fUSuo?*bAkWTiegoK4iYR}5*aXoW7Bws z@{#_zKHgrAZbla>ld9$g$Eu*G{Hkt;9&r8v;s9hhSp*1n6sc~SI3ke_!F7hxLYtzs zO4>Nhux%}}JEa5@UA#|A4Wp)@2F&0N-eldPyFoq;Jhvp562Q>jblw>Wn-aKsdc8Y6SDCWS4`t?#U2bL#GAw$$H&t?c60rE{n4e# z4t-TMDSbo3wwSGjKS%sWajIVRzx=tEliGP6%> zVZX*;3@fdZE|O^sP-^DxoxKs~FWRwHWo7?lh^SlXPLJ>++dW8!A(?PnJml zXO~#nHuk161l`iCB8EIefnm;AZ($2PVrakaWUMPJVXQ5YuIpe}Ud64iwu-U#c2AeH ziD7QLYxi{9T}{P|XEk!HfKd5IM`Dg1ivd>~>nF54nj&KbBb{-dp~O&TJf;0bYoNWO zjl$OO-?V46_p}c=Pjc#W>T=+qxv2nJAVasZbjB@N_t0>?gi5P7>Bxq3xw_CWMQ);L zOn5}6Tv6@c{c`)mh6X1#yH1_MvBLJz+Nq;!o4a3iPadD<=Ix>R(PYhMVhjCp`~mvO zdd@wydgG9wyA(FFJy$=+L2vHoBl@14CI?PcU&Kj=SPY6&x4G7__Ec>k`%s_rO!5Kt z!Gn1JrzDZx`xGdQFBec_qeOjrpdHr~+JsqYQ9s_=b_Ok;^PpPt^Yk9VCHCQ;*-l%I z?#Xshq9)o5ZaXu^M}s2)f01^ct0g*_jD)bm*jgn%13NFW$!y*|>;** z2V3x2)H&n;EnL9=o@aqs79afK{%`ZF^4sP0mz;V?YOR@(TxWG)ByH6e)^kKdJ#wvA zZLpvJ6Rw2*Uh>iEB{}=xckOR@m0t5wL}AIE`6Zlz_^4r68Xh^Kqeqp3l0~vY;1CoE z3x7KVcjxOgv36hNxYRn=o{U){S=RbEvt8IeY^!Za0VnHDmGDT_snhkN+w`k2{#$Fe z)Sj;Ot#x8Yu0f0M-)iN+-NN3=_GO<&>POSh;1`p(9u?X}j;6=G>Df7MFjQanF)t$K zZ0O}yYWVSdaEQ#Ze1U)X@po;+$g{q(pp|m2df9)W3aOvrcKpGx*>p)3tK?ei_X%y7 z;=HeVx3hpXc_G5R*S5wzqTa+^w|3X=aES@Y3$^>$e(zj`NtAlmfC;5MzDnzY6%aP5 zZF6h1&`AAI8%8ovZbt;^Co)!7S6MCA0k446)V6wmiuf%<%i2hfl_z?+=h=}S7I?fP z+n-HwWAEt(@}_-H?js|&2Q<%cv^w8zNm{Ut8Z8kP2M93jj8s15t6*?;R$ z*HjNNl<&RyRBic7hpD~n1)u0Ys)>BTH{W+M)2Avd7u|kL)64I^WSq8d?b>YoSrX*2 zgSVYYOV9`)kB}z7AvdJAI>Nz4vVZ6zX%Gd`bV#koT93Dew??$Ow|cZjwnnv{*zr)x zr9HZp+DdAl5UfyE_2ZkAfa9bg*^`$%TS?y@v_5Qo(^}S=5w{0e03NlLw^p=1Zq011 zY^`ebY$x@sPOS|DNjOWBuU!L3_`K@W}D~j%ifn~mM5LH7qN6hlrMQ)e`vVm(!OSNUpacIpdE3L zSn#0)ES(Q;pyYY3`IUrMv|Lt2#c*OdIvUrnT;{~tnL!g*IPn}`&S}n7P6Ee=v3=?c zIN~`*_fO7Q&L5m>oa>x(ob#L;oWxZMCga(4Oyj2PNz-m;tp}{=(ZppuWAY)&=jEhmSQ%ci~p`%fD<$RGs$#rd1_j`N=L zjPsoHf%B0=@$Z=pEb2kaj7gQ;E@Bo#mljXm;3e{&@t*Um&ifnL*&Ec zU~)xn(!#aOJ~w0?a-8>KAcp37v!L#BmL}3pT2>as@?OC9 zrv^^-pJH*r_m5Zi#e`{j*3kRO1EY&o!DLz55Mc{*E7O;GnmN%^B0TaIIR=Tl%_30j z9V(7#z%*ovG4VtlD(a$@ULm;4pm%@sm`=!+AuYk zf+`%O$+TtKF}0XPrahC?Ma8P9FjbkBOe-&0f{rXx+1uTl>>?W zfS52-o2kP@G0{w2rXI@?%73NvO8XKLNYWujh4*LnFT_?E)Ru2!R(RK2o=0sjKlA!* z;0{M{S%-Ey{^5AeahKz6$McRC93>nj9alT9ag=hDc3kVY&T(@EG@OasT)O$yW+yXe zGjB5=GZ!=Ms*|!O?M`moN8V2kFdZJZCI>n&9ht}0)-6*9^0|LHEFL|@))Qfz20b#~=iV=(Rs20yk!+DHBEYGn2hqX72YhwBT zJ-d^T1wvMqAb~7wZU_Wa_9PGlj~fWMoa2#z2zvA=2nZ;WU{F9%KwLmkg8MG+s3-wZ zQBgr~7f8Y?O9*>_ke=pu@BPo6J9i$;yygMbO_6kWRnuMdt@_mGeR0O~duA|BUaDBT z(H8iR1^dh}QH^Zb0tM{u@v0NH7eBm`MXD|By7=m%*hd@;TmF{9Uc9g|2y6jzeC_n> z_vHhiy1(>8>Bmx4>3~hxV71x?NO}VgMSUu5EFCHxE^V5F-KZRahdV(x5=bhsk&cs; zZ?sM%yt#Uu_xI2J^IF?dx35b!tITSRo|x@4@eC+Jqh13zV7~lIJha0g@2vjYiYHR7 z9+u&Ts(c$SYbGy_Z!J6$ZyzCY%Y?Eo8_owRHrrPzE1$f>RnGr31^kSIUIHeM;zZ4& z&DC?~5>6PK-dPtFT=B}|=OEX#pleT|NV!io?fyDuheG&v7{^51;M&ebCK2r`rO;^) zk0C<)m>OMYajc{UO3}T(Nq)IYPv2hkcLBK^db7;P$aR^+fqSm5IMX|#c{_;faF5gr z=Dzcr9E0@aI)IBj3eDsGdXCS2oltjArngxKxPu9Tit>WZH49abp|*!hAbk(d(s7#Z z^`v#51DE!N8{h1S5#v{|wzeU?*)AlDIQ|;X|lMb#*IdmeC_8KCOo!)0; z{JBG1I2X{_oqYY^#fzdX&$OGLPww<)dY(N3I8G0Erb7zUd}O<67x}AV$Qrf+X}+${ z>L9r4$0f*M1KG89U!ZEP?R=mzaj9zl^68USM)MV--`}UMk?ZWCYN|2}@w?h6qc^0J z8E2;==R-e3AX6kQ1P9%9Fg=Q~SNnezoHXl}gHP>?p$FIX^)fT`9H1Tt-CW$wab*W{ zU$3Zw@qjY-f?C}I+#jtRN^x)bDXxKf?2T@}g*qWUV!&Jn+y#fRvxLf|hb;XI=X=$2 zq5c+c-FuHlq-tczd?=3f+4XfRbPj$QUN3o)TM=P96*gSyJ{^|K+xG_gHvd(fsCO}Q z`Zl~;uO|%Hd}LhoL)!)+FG0)3myfoIx^^azJg4GEJ;hEk5_D=D*4LeV-hEu>Kqnb{ zYQwa~-uSS)2d9>KksM8%aQenCj`S@x7NtC2H_01ICY?w!1=Wc7<756w>EJp<8RDxBn>!m(j$}45Mm74N#!4ehGFk~H`H4^l zU?ErzVV(mi?Z)}?F%%4x{sRMkLSq@z?2ysDDNZ^eV>JIL0`Y?}8l)d+08F0u&T|Kl zAPqbPO3G3>fn#XQ-usII&(-ZqkysD~)&sLY;j}N8f;iy%^SfL$s+KI4O7u}pDq10eO18i%m5YH(Bx8-5gqesBW42ECz|L$ zfZsNY(r?O8IN&U_X9+T3a!cK8lV#a4q%s^Ww+=#}P|PS4LDc?wm{tPr&UZDc?1;)Uakby{XtDMIq7-k)kK{!THTLTy=hEYin@mR%~ zwBJETGfc&pntg4sqe}xG#3S$r@agz8yac}=FSpA5I;}=KVe1Vt2_$T}OR?RYog`pE zya8752NkQ{Nfhy_3wx}_qcMYSu&mU0KX)5HjFP zN2KoIZ;TudOnSz4GczDb9NI#1ZoZ|5^}4N>ZKCT1Pf$sNXaMT>ttlx)Qh)>Z&-<7F zlmI9YJA#kD^e3nQn%#YztGDXNb#r8;@kdrNyX380ovKm_90LU47;iKm zp{ag>G3KT-lr=9WeNzHVUO~{aBto^PJjM$^_VD-Q3CUuwOe`avm{&+mA$dyy`d$)Y zsLU%jP?xcMUkg^C4jDwEkny#d-FkYc?=RR0MV_ZIiouQ~>rGwV_zG1{{Pk!w=tLND z7im8rYipuP!@JC8Lf=Pp6j^78PkW0WX2_ zjH0Zr)WW2UE>-is&wa?dP^~d*BVrq=A;3T2u1G21ndp1&Y7;~d%?Z3cFR)HrxwfkI z43^|6YF)Q>U24(vN$k$8$IzM29$-ag_}Q0-nxS{{VMK6X1A1Dt3|Eb;oYq3~;jh%H zVs^$l&C z-n_=0pP*eH!_uLTkYmHUer~7EVIE}O!i^Q{^SLP+s1|Bem?EZt>5@Tk@!lz}8?%1Z z$_d8xrMh@7WN`U1wE2fd`YT0Q$ge+$4@MM zXs;)e)!zki76y2RsRX)V%R$I+OZ1le5wNY4B(S?TO;?FOg=IESWco>VwsvQs_C9?F zq;6BAJCu|=g$P6))Jd-5$Il@(MAV-yjT-oxEj&7)-<#E+AuR*SdMz5{#vUuSZAjIv zqTl%2dJ^h<*9&o`ca;HB=-sQll*uqO`d|EKhXS4HW4%gl;S_oY<|GuUX57&Js`Pjs z$7_I9Lz5{em1x%hZD(W`q+PDN?gojDePzhG3Rz6$MAAZZAS7&HIS!8L%c%Zx5l7E5 zw*&&cXOG=Js0&;b*eZoKzUMlP(wV( zWH6UsEaetzh+n5cOSwGWApeMbF5r?|17IkTfCu}Z2XSj1L z%QB!U12qGm^2@vw3#qwej(R(F~{xpA_)B% z61H>AXl7NzVYc!dz4I-A!))W(C%rov`fic$D`!n|oH%~m&JoG>rBzK_nzCz7tOm1* z=ll&aw8Ge1v8|vbx+K#Td+_u)Z5kiB@oGd>&3#^H(^}e4&g5 zCt)**7ywM+wMjexcn26<$2>*>#O?qIP>~8C?}yj&W??hxeaU4!TRv9&-V>GLf(1VF z^pmmPC}ZF*5A~J@APC@oDvu4i@L~YrR%{ZM?#bK2ix2=YyeQZ7lSwPUby5V&p+93g zvCE-K6?hSMlqp{4P~79#P~-B4qci?3W*#n11UFK_ifuyeISdV zuOfn&v=EJ>LTNOZkkJ>qu8qc0g{>_9b=iG(0t{eyuz0<#-R z>pL$eVF5#gsUiyjph-gf&TM)1cIk~BTQKW&+% zPBK?8B{YDZDK*w;ndovx-U8hX9)rP=KEm(z2AE~bkqAEv1Dj{qD}W;df$*W13G_a! zm%(Nbm{Qa_&A@v^z#`P%8`^cSe+%7$NzyNHEiZ)C&0OxJ*~(SBEYEKOVPl%J<^212 z|Hc9}8|0au@|dp${Kq4>qWIiTNJ}?{TG5%kd;9}cmDa4%fC10Q?b%jXoZii_zOy(Y z1J^$OwXiP;<5ogV@`{!`;Iw<72c={bq_Sn`QN>YW9ysgfB3JNk?blQn;EP$6=utAj z-+nS4FcE{9tH@Zhm&^%-(sG&br|zO!tdc zzYdEo{M!k;Rv(ia5IuOSmQ2Aya^JENG||BosJ%WESQRN|m@T_Raz+;$WGobbqXDm0y&qf{w7-l6aTus+Mh0GS*gUv%1VL#{{nBl?7Tpch z+_H`5yS$KQt*$M2;8v?^wkL^v;KjDX6yc%Y`O9S5gF{wr#>Ci{o72tsfplOxA3>A> zM@#WoaV}jmPmHQ6pLTf+%mK0Gyevf0Wi6ZBV|-AA4J_=SBPt&6r2x9FM4b>Gubvq*VZ zDJpunoY8I7dp8Y~A?iW(W8L==_ms9ehIp^+uuK%GK^Q`{s*(eD_eKI+kh2lB78L_^ z6Sb2|E@-2v5oiRIf0e-HJdZ{4PAk+2(t{|xk;?N`Skm?&h9D;bru~m1&U7Y&svzpby9y>w51_)Mg%mD{;}s6T0>Cf%ud~zAr1Q$r^+K zsI_{UxdmS8aN(UQpJcJ;Da{NS>3O$q%QOX+>-QxP1sKfcmmVB3?a{}Ny>%&(hO8)E zZM|coKCPB+hC=@?BOJl&vh?M8>OGN~#g6(17j%9PU?SG#-gsBOIkAO_Ru>(B7e z5etM^@Dt{vKMpn3fG>PgayX0#%po;VTD19~Ra^ex1KH=RNX;P>)4B|ELa0-P^xYwR zcc9A=d2m&mF)b-m>@Z!VDU_dGOTmk_YilPdLnF0Mu53nD+y8WU-1@eS2Q1nlTNW6T zB21AZz7IUV9i6(-j#df z@T%X;T|!md8q2)rPYTbXuYn)_cx6L=x$_L>caiw<^MYs+t`Kt0jV_-UtdQxb3xvER z@Al}k*KP=}#dOEKagB7WN1wg*d+&=jYS*$pfq4DUxXH!XJg)5BkkxrCxP2l&XwR0r zI3&blGOjpq12uV81!vXEBm71xsuOCZuNHRJf?$}U-Jd7eqt2~h>g%=zB7pz3eY1ea z2!I)UvFK4VQ%LS5_!!l5kO){QKLz*w`D%XV6-$|^*#(SKp%;&tN7zjbyHYOHFv|>0 zP;#XFzAb<)_r8#=tw@z-KfMgMeKImOQP-okA}E^iUk4KTi0#k7rI!wHGPRRInV{n+w_lKAuwCNULXbm)KXlMbPi02bxQL= zHu?hSD=z^O$~NgW)6oZLSOiOal8owkW(`PN+ZY<1nEK3w3F9m*1G0Swf{)v0F&!zJ8WPvj0t&AM4mG z%wrUTD0%(&7@P57g<1XL7kv3y5GQ|gT3qZDU5CTh);WkbwdKf<$Zwr4Q(#_}?~v*1 zIzF`FnvS=zqJOMce!$@2rOd!Rvclo!$$oN1+p)L4O4MRiae4=h>HL?3Hro*cy?YFT zg(a?1OR$;ea;p>I8C#;3ValKi@sg}1N0*#lg3y=&*b16|@V{|eE-V4qfE8eEDN|GY zF_BARUi?D`=-meO{B4MBz+A9CXcOBxgKriA)a#$;&9-J$ML0e%q|c8lbH>ak*R!xb z2#*WMd7v*VW=%}@0kkESXm+*N$^ea}p@>Sr2q9nLK=`P}P3T9EVlr2U8W>=U^apX} z=_m1lpti~=c4}La0phCr09Y{1|wB6RVILbt5Z4jVz+e-W-`jY21v`X!Y!pkJvfp^Z^mvW;>X{PJt z!wk9xP>4P_-(t{f-bw#P{JzK^S>nbNRP{P^tF@+(E4oT_94G#xv9gaFwpb{*tO;w_ zA{he5`o||VOe`Rt8tCrnQmIv=lM~v>@zK%Y;c<-ym3NLhJux*ttQu4g4UcGA!EgE) z6S^5yUr#$Uj`G1?9-Nv|kCnfq-_%U-gB${MLt{e#$9;=t5~)ujkPu^KE6)My_U_*U z{k<>()Iy9v6Y%2?RXkQ==AFKB7&x-YabEBC=i3}6k<*w zt!aR6oM1M~j7UHndU?tM1Z!>_8z1QFA08MiHJ(qHoP@Nf!%mUz(>jE$=WZE74+(oM zB0%>qc##o4$DPF>VWg+0Z(u+@(ugYlH89#cEY_nXO~@!Yd3orvUhUX42wNs$VhRP} zqhnJW&b`_`iPjxb^n_23xrToUA7d`7xP0uThMv7l@VjQKn`p3gQy6Y=)-cA?KDHK{Sef-1`w7#<$3*xx3#z9PvV>VYmX;&Lg*U>5!K{R}$G&cx=o*ss5@d+>K}XYQQ( ziN(D!<8g0uaN5yv0Ik>yK9Mr`?6hu51C zPDmSN{l$F*(+y(#ZUJl#g)$(M4R9kbIG)IugRV|L;tB;HUL`4^4J98)Bd(Qoc{2Ou zOoE9q9yE7ZVm_(vo2+Y?IKD-U{xLZcKXGtf%!d~HS%)r)o1A355cW(zZwENi(`jL! zlQudL&U+s*m1V@2OiwouHZJPx?WW*2pHj#XP=P%vA3F63rNRiu+=fIgX-vbiyEDH)c{@l7}6P+vOSPX@)$$2&Hv1#jl zgk(6p5w&o6!&MyhGx!f`s9#+>BF96^?d--eFJ0s11{UYGFBo>)f9&&E44!JGXJ9m} z|6R2pN%8og^^vR7UEQ(&nBVQ{t!J8z_f5DuVRH?~`Scq8fs0idc>CFq=XR04l!A%P z^CjEB-8hol)_pPXHveLR&Qi&eJkHXd+h_Vx(@gX3VGfp3UDGea_TH!iQ|Q>tr&uo> z-z2%`vorCl48WPuPX6`wp0~Fr*$xBhRqe zExP^FVHg7^N5=m1g>HbGNNtMPBM{us3$SFQ)9KXI{T>K>Y1RksN^sYTkrK?@z)T|d zV_2pPDm4|m224D23}|V!4~hoY1(dD76?&ro7(N0#k@(Gnlgguf8lEIDS67aO<=pt& zNi=9MB~HFzI&He-yEH^Q)U2)6IpBG5zYd-s3j>(jH;jq;xeMDwb+>mgSLH(cx*iqnXI*txmeC20K-GqgqJ63txt8TOoFgTbzG05MJjm>>6UwnT{VE1|VsQIL1gzR0rCh z+~ZLRK`$$Jd(97G?X~z~raI_>B*uX0_UkJoI)s=3Qc<3{@6E?|%Od&&% zB1%XN7j7>fwMmi714sVSr8?^FRQ9t(#%06iHjprQJ5*IldUbnD6iY|XX!3-=^rpk6 zZd>IJYweltwpN0!Os(9h%Qb)!`yd&tprD5^r$rfDfd;;* zw--qN&3PR=7KVsf^Gz42a?y)m#P@LlSB*bCiMb6rK>TGVbb)UzGp1cVCs$O16n#)s z3UUV3jpv5@Lw^}gg8{4&rnXpnIDUPBFmEFQ`hXeUgXaW#Pc+0-)K>f$R2z^0 zbZisKm090$ms+oQjzAa^gpSoE9SXfW!ATJ zRk*-5OBRaJW~Eg?ul042c&$^qC&)V5rC>OrK6UXm{`0YNW<;QRO>c6IdjpPuSXrj1 zCzUL;VdB*F)?Q3Ivh3#LL)X(xSV2vv9W&59i<=0#>*Ae0E|^48AV3Rg$pmezwT z#3(7McO7C%Tv0Tlq{#2n#~ttheD@G-g^v48lhu2NlYRu!B`2+>4Mb- z=gp2gQX9ejU0_AT{2}Fwj@U(>2!H$Ed}1ypulq-#FLnv=XPbxqamm+)!j8D4j3k~z zRcvt+Ny!lsV#%Hucs)VV;uo8=U>@=Xrg?kx}Dr* z1;3TQh`)w6Sq`F^Upr#n{#_?eBgCD>1FIFmhZ47%+`DVVeIH@k!1UMFhJVGhMSZ{H zcyhtekz&6h&;5!en@FavdQ3e>PqE+1G;@-ero5Cv^BaBdZTP!} zkB+^tporxoxf{!z^pBV9W#%3EO#?bul0xzl+!q}D$ zG)8U}RYr0oDq0<1v@z;Czwd9WsE(!1Q3T*yt0y9WCdv+{rJAeSqr`Zbwz`a2uHH(1 z_ccaQzJK|&ECuxK=*eML#cma}N0&MsR6L!)Tmc4+ZZ}ICtJYh70n}nFwsLDfn^4Ss*emIm;z3}M;-TgNm9c`uUV zqyQ!5?dd`Fs>0tDZ)azBWPdmpdLvVbOGI~`u6VF%32LLNctGQip4yQSAJq zJ0;MGW;JecxcUrYRqh2_K+XRqiH&C>FuUikZqpBN%=awEE(mUOdG6Ct`t_AKuu=Ye zb-n*$S7Ks@ChrrvM8=E~HU=J$>j_&s-8~PO@z>GTDggHoiEH)W!L+(r1FpW2K7LVE zp549;d#dCHcY_;FB&Jk-8`@Eoa-?rQ((;3yqeQ65=vt$o_M70JlbG($gwJDqm1hbW zDIDA*7M``X+jwVOoBs2*Z}C#ApH)s+1;&W(n85hDkIEmF{CZ@bLN*0%3sPzh7_OG1 zQob>Rnal_uykn60nuH|BO+I2Dq|-qA3R=rsa~3GZthps-?@uUL`b(k!Gq<@hm}g!+ zs6@SzuN_{w#P;{19WDFkDsD%q)0@iY^crob@!NpH z^Al^jeXHW_&tYNMNrNqARIdaF$qU{&P|+$ zjUGMaC}u-DDD_c>CwrUgv(i%cn?BXocdEAd?jXFk-EzIooi~DRD|r51ZH#&B6)UQUZ$h_+AS;*FApkPu1T}n^8WoX3+F$4ZDP?n zms(U{Q~PlDi=<=i$Qa|URe_=Tgb#C-6K`EMrv8I>m7N<6qy)a}_|9(fOVWej;j?-A zW6r);Za=pABW1DZRo;i$UWcb?3q;jzj@4@=@66it9RkD zh4*fl^^$yjx-Pt2McTkkSm((jj(@M3XGu(O9a}QBe>m8p%ZAjZ!9q1bOoTZ4Xzowh z`GRL;43l>6<5?fxi>gg~zL6XYK6WL0Hj*!UZ5Jyq^%b?ha7svSah{{+T47&|OsOIF z(i~Urdh-!YEAFr^QylX(i8it19Shvwo0bp?uK)JqX}VI4IGKDv!P|sU#++B7M$T}q z7R(=tLniiOO#NAhre?AJ-hIO3zN zEtmGr>iTJTHd|GvDM+x~wy8S)E?Ica%IoVZmVWcRcU`}e^jf5c8Sm+FsZ=dDtlps*it*jv8&#f{-R$}7 z>r}*R$LV!BVL#fty7tz%?g)BSIHxd)fjN!D)0Fr#**vpArHuM!!4Vq-7VnX4HFluO z@JM-(;o@B>NT4w1EBzHymR*%&;RrlGwp96<`9t1B`m^}w<5g|@DIaj*6tKuZV@VO- ziY@-L0~yz#z01e+cuyUex3MEfYHsSWujU#Oh#kMvcq?8EI7b{s7pf&NDS+R(zYc0mx~`wIxNIrgF+vhpFIoPyg>7&%938 z0CiESAKwY4u}O13&cTWrdbhuGyXdj7DS5H!=~6m6S>3#;K9MGQy+-)+Ky8-)!$8Wf)Fp3pnWO`*I=vfL4qY=e3=CN3M?{Wje_1tY zQH;?$mkcvuWhB9nIR8%WBnk0HtmAYbJif*Ud&@~MIv@y%!3=)C5U_G4Y7Y669t&^n zI9>#Vh9R7pE(zbB$fu)p`z2a`dQHLkOo=P@-s4JEvBdRdPn{JVd&^^ygjwUiU_X!P znpI%I!%C7eGq5D)v+8sv@AJGRw~IH796Finp2;LRV3H|IS5j=+-{#M|MPInZ2v)4kR)2w?63f>3G`qi*|xNL&uLDakah?3e&q#e})DG9Xi%wBu2TPi_AuS zwku0n>TC3p$%Disf%w0;h@+b{4AsfNGOoAb6!irp7w}dYrfx?fW^`8Hr?;V`s+ge>1RwDDhO1u)gR#uQKZ5@97VE zGu=S~CKkuE%P9WT=q__) z#+cr!S+JP!0Ejg>SR+v|SJBVUT9nDBo2?I{^9Q%7vHQ>IY`9DRv2YRUVHWsY1yGKj z-Qj=Q&Q3K?8WNe+85@WvR;%CuPMY^Ofc*bQyRmdtUDU9U|>N4VM+RaB^GXufxglf-i-qwgIvQwBtis( zZ1H61JRdknH*c$e33rZnu@Po=2n34hFJ-*+vwXOtdPOF$cqbO^DtTmqgCPk&*lA(ROSDrN@YzTfB8&F&1O_BA7=Lc zQ_`6o;QxV(`QMnB@So!m{|gxNzo3}#x@Ky`p2YtF#{4fRCQ!c$aEOEZ4YS?Lt!}3p z{&y&5$ugeS4xr90T;S>4y0~D@6(f>GqD>$mKxl159LC~5YzW?sf3Ds1a~neAa>!{h zBV}!H^4g-mFzzV&y5Lj6PlG4ZMxslM;A@gSOua;(WB=YQeu>#%#hY5=uF)J=59XLH zuw8%Jd*dqZ;8oc{K@m_`hu-*l>8ghx10*&$Uh3#n>;o7X|)oT zNdaub>4Qvy&Ef^$IUBgGtHKUmM;}{g?(=+l8Fn}KSH3;Bjf)>~D)L4Thqd4%a(2PG zt>a#ZJg97$!!3s~?zBGysINj%tWMSvHpc3(-6!qOZoPS_zNZ{cFMA6D;{Pq$5?QQ^ zA;D7?Id(2Pr;`u|QTogtXMW}0t$K0ikD6TO+TCB+P|-xnnMr)OL*Rl>>ee(4BlOhx#K9G@dIdk{! zjKt`S%*2D4MM>;%ctQ*jOJ+yyHi?SHS2HE1WRu`Senr z6g*v+`Sj_NYgf_ViX>OBCuU}6))b@#CT2zNjtcM0spXlF^WCt%QRMLZ8St=nbS!!c zCGYl=3}l4OABp5Z*4HmL=3s($e=qpkESyOyOpK0>;(G>oWn7JJ|4eH-nRs$HrjKut zVaD2gBoST;*s(ivf2+W+@M=_vEi(~K%VTC;yB3>Kcyih9aL*XO-P;Y1ZrwwPcFmMv zcgOb4S;=$8N|jtiU0t6O^ikW;PR@vFRn;l95R+l?Cn*Dv57-BXhAv?H3O;cxR#z{j zM^aiSKAA+Ux3eJBPms~aD)hU6IUOqqiP?D0(-@SvqCN>+s7h=5g$;f#RxBi7CvfR^ zVfi^z8=O?C7FMR8Y~g|hO7?&XLN)mi*(EN)>W$n16=OVfG#=bCxm5P$!J^Uyc6J%Tm;U} zs$SbaBb-(JR9e$QUmq7|7ay;GKSjEr&W=)?TL%`*L3nR%S9x=MM;x*^*gL*#*UYmk z2U`3LHVKEVtT?q#&Zsn^Sp4w72Ist9s%q`410Y-JLgtX2GOCyW#Yw=SvIJ}^iWS*+ zD#HTm0e1Zz8fufUcC|789GV`)i1#04kZx|u*ZQ62GdJJm@#1=Jrisp7o40d^Edo+r33MaH@|@j600Pw>oJ*{-Us3CO#Kk z3URkQ_1Qu}Pk&AEy}Hy5aAvbYe@QAr!rAGzE-oR@&bd>ZL)IVD#Q28XNlaMc=lMB& zi=S_nuS;kDLiWP_F)kRF=0Mx4v0l*aWX$`;y#q~#?0|tm)ygxBd~#79Cbpd^o*&fX zXW_{h^cA$9x^5_N#=0d~a|C>kezes32!qtiC+8Ty3b(qkSZuxe(s@S#`w@RI%EtC` z@3S^&p-aMf_rKDwc5k;{Kxx64Mb=aKwE_&z$*K#g^4N44Opl1-vtC+69QFOdroE^= zkkO*DWH+$;PjzRV9U4sk?v*~s8I;JQMh5$J_I6O%8RV_A$&9>P!!pPzYSEyi&1xT? zzxu748^m-Qe%XJR!oZ_t5l!)Di$caxywT5BAI+R4LEPIEMTNSo_T`yGM$>C(6l&+$qDpEGl(litmfSH&JxvKFe*gx~dqrag zbrN~?9o_^Fi~LIJ(Ch3Xp=!h0l3St00TmV2$9-oj_^E_=bH$2mFW!s(7MIw&3%jiCiqTM3 zam*|T8Z9oag?8rg)eZ`mljaxxTJw4%wO{vrpl8xyV3utFW}vl2bINPLJY7=H@O2)k zK@YxtW{`ZRbzo@e`~KgMJK^|mo%I?!EJhci`%&=E&J|s6$7H${mn$FPCcaL;e)eHK z3p%eqOUG7o$z>|MPXwLAVo@n6#nXfSc@^&Db4&1fE+o@_MYGB|-tPR4kkxkB=H{#` zup+2YwPT=dLDT~Fr(oNrd9CFRtzf@o)}~utgmP6m&zgOE zz@3inuxx0!S9|3H7i!=Py<_;jB;0NMa&hiM%*ITdJ)!!~a@MD2tDW};rEId}wQ<1B zCI6lJ9Z=-vYfJ6VQApn7gA@Z z@KB@8=TPCRDWOi1J$Yx~SxvL_g-(8<$rkUDDS?<+9(8wMNh;98JiD;jEBEB%T&S^U zUV)PVxXoe6C(`Ftf`o4O^qb^^-GHr>puE~*v6IKEQ>j+UOwwwDE!O20NL(B6pR5<^ zdit0WmPzw{!}oE2dVJm+I44nJ-N1tVP^>9fhxw!yOJ)w!g{AQQf&TtuimS>~mJXzEFc% z)M>jt#uRFmWxWyA$;qnHQ+CrNVhP`RN1)A0@_RnYi7(*uEk1(+jw^G+%i!RsfwWkj z!1#sXUE>=uB!-D`NF86pG$M0L-iL{v=%!Kfi2j{p2QxFb9864vtCW_J^mD-0F5Pv@ z*8x>?;`Xy~q&+8^*;8F^wNe2YRrqI9OY?wErFtj`8z|MhGi=axCBL!iZ$8qaT-wm& zIhv3apsj8tFKB_ApE9Jp#l@n*V)+MW%TF!+_Ws}f&Mr`O1e-WMN1pEuz7}se(sn0n ziqn|(b@;mdd^~eAdCQPzcXNq(89&jI(fO&rgvCB-QEv`=@C_&1>-MyNKd6HI6Q-E& zQob`GZrl?n2cgoG5bfzJuH3$2YRNl%zQD)jSiWPX$0onD>rPLpMf~i8(rcRfOiq1K zA>>_DP~?<~x)q(3B?ELjy^*e1iC|!3=LnOtzoMLOnnEZyOx$&RCrBc@9D(m+Y{#*hDMUmPE=pI z6UBJAgzITzR8vJ6xBhd`kIvDKh~vrP=}W{z*T^H`XU4Pz#9nq56iM>sSQQriy0_W; zD);uNWoMj!PV3j-|J=#tTUnB6Q^3=d%(U3t#8O(|4o#TFqK@#o;;h1_ntF!d^5v60 z1P(SxkPsCzSJTA|G)p9eK1O0<*F>#xaqj6{nHsV=^i+cEpWSxVf6q~)F0Kx=Ub)uo zHc@ctYS|i!3rfqUJJ-?G68u{MrE8Gyd(`fbB-s7q&M&2#dZMiS*t0w_6sDF*Ad}8K z^>lKcok~jaWmBX&g_j9)h_8tXCx>e;F0M6+A`i`(5W5O7AXzfPguBTH!!yjKA!|;jS!9_vn>_BNFdEXkrEG;B5gnX$P;A-xC#?0aebIh4XS^`6oE;M= z>+??{&p4k6K2wy|ppbG(t=??4z);qQ4Rx2+^=^Fcv)Q}`Zat-cHA@`^*LJanuk4`k z<(T}oYe#y9Bms=3s#8VRdL^z`F>f#)r>@A}5Pn>%os~Aru>%QI(a2d{L88eqlRDVsJTs^+h#o2TN+L!1@)L6;t^wh(Ar{sSD67@`Zf_Y0)!8wR>`LN! zN0PSPvj+P47HkUVA)`iOW%`W&i!P}t3C;Lj9b5S>uRX3voX_NT=dV`3 zl71jZHVwSoYk6kalJcGXk)0y>)%twHSH6)n_OB8n{-8v>kn9^mrbG^{ztskPb~CIF zYW8&rJtM)dij2rhJ4QQZrg2%eB5moH*t|m8HRDU(E=zk57?)XxF%D!0_e{waGS`Mz6!x{Tc1mvAaR-+a3>Fgn48Rc;Y+m25?i3^bxr zhOaL8>Y53?<1`x7X8Q*&28&Kz8@j$ic60M)}J>4LOcjpaGL5k$r>9U*F4>W zSu<4Q{+u0%?78I=Tfbl>b(du1-TMQbEy)t2LCTqV&z^LBtXQ0hS%1ryoOiO*ZR7ly z)E54UPK?{!UZWF4AC90!`_+~rI6The7v7WPQ0}%p*1qqO)N<;QNvBzNpR_>{4ZF8S z9>L%m=q&U0hP|)LU*|cYuid<6v579&>dZL#o<5}xt-RJUSb8*=;^5pio0~Y$#k@7- zfW;)owL!ARxW)VppI3NiN|#xz1HPKd37@^ z!OA!xyAJNcUXdJO8Tn#*!#XxDR<*4riOZgS3jOr=<>z3;>gFc?!%DZodz18{sm!y@ zmO+1OYssRH!L?-Qtz;;lmX=+}*K_X zHLRvO^EP@iH@8M#yVo&N?-8^;o%_WJ(=U-O3=v#0qIi1W!7UD{<-11tSO>=jV)lmm zwGZ;qF6Lgs1mEd^aL7e!>GF>iIf+D6Qe1+<(RGqF(%28KQJZ(?xwW}0l3RTF={cYL@YZ^{|=x)fIQoV{5bh4rO)0*D=Awud!l>K~cR> z#`$|i#NG#%v%eIVZg9a2u6B`V+nK8)e+)V$DepP0aaNZkIg})6N@Q*kgTd1+r9u2v z^p@xlU-$L0$xsuo39(U2Qer#*k43tB{|8g=8P&x4Mty@I!6T#sf{>1a4M+j$AtVtz zDm|dbLJNsqQ6Tgdlpsp6Ql!`^Dt0LBVN+-I6+PusnCdI(BGW)fxhgR^8CQ;Sd*nJ>0>}Sd z7@Y|#kAa$aF&-n63aE4&b&{}ZycsIe(WAcCIL#AjzQk0Uh>b0!KOjeUDN><>o2|mgOjig4}z1U z4Vk+nX*{TEkc6eBqbSR^q{D!4P%!)o$f}sd?tb}!!faI@2DwJARx4O%K91O^SeiI` zc%Hg(sR_a;1%;-YM{d4o?T@#zOoe+xYN1dF(JLzn*y-r$PS>FDd9->-=CK9LF6MfU?OFw?US{a(Ko7- zIJ;@42B@Ngt+y1+0zy0uQ!oGg?2cKJ za8@KwDn!8*%16!|8B0#N$?8^^S{0#X(-wn4YK~;bsl@euA_G6f+uMA26J4KdNHt(Vi3q2;&YcSHf| z)XnFEe7Pb2AX*X#@%PR3uibE zrqRZ6TrSHgh%?^=oFFaH|Ep5yF48jb57U@cO8D0mt6AuQjSct>V(RPozA3}iXa#dW zY~^eo*qRkQct!bzP^1_&j6aZ;wNA;Ou1u}0Oq5Mdlsv7PEZGNEcc`kY0?<0=c&OUi zWCMABJJ#M;9?-I65@fP45utl$URRa(aJsL(9o61oTnFpxLhbAGMth&6$(PbrZ^N)T{LHp42FU3z~o|BO(gS^*nRkXz5s!2_<4CB zc3>8ZqDSr3J4h4?!V}VK+Nla;`MR{3=VgI~8W-xI0&9*w=xfJgg*7W08dyOOnT!+e z5Wok8?H+4xUw{#9_IhZ*iNq~$E|Kw;25N!!c0Kqsn7u@^PJkQ6Xkck{e4B@nVFR@U zAd(Cytsf7OojW&z{*HPa)k->yxw+qdN565i#*it&>r$m1kV@bv(>no=G{fUYt%rz9 zy2DTIg;pH+tU*=9V@c6&asF^PY}O51#e!eUd`ItpI=|EdC)kW^jjO%|7X97gnZUw?9MR0uf{Ir8t!aH69GRg zbWwY)_gGG8e-;rJD*wlYc6+u&e*_n4ZvTV$C+LqVUNJ)KrPI!V2N!m-5A3v<2@Qj~ z<~kZ8HyZ|U$lP7*7+Yr-Eu#*VM8mM1xTnxtmX3~-YL}PDHeCfhVHSB)v%XeicRy*D zReXT|ss00tKqfViJ?RM2`+{OJU=Dn7Q`zVaI1Jsf&HxuMIdeFIL ziVOn&kLjgtK)M|L&$v<3fZEDBqpXGhJJZNh`3p; ztJ;adiiUoyYr5?%n`r4Nt>?jp2BBN1=L9+_S%E}C;StBt-1~-OJ1pu~ibOnv97y?5 zaIm4)t|P-dy2jpTxvq`-zzWF(I}dZVE`wt61g{3}WwF(#9e;_|jkgQla5Jh4jr8fJ zpLk=~?)ByJ))zcvFX`AlQdA zc$%%FF0o^WVm*EY)*%#(VLlI}I8RN$X~?_ZH6?=Y*zcO{Cx?XEYB&Cn@ZG`RHV3eY zGn@13j(atB!MtCP44;LghM6puH_Cneip9nGXxkh&9Rq(Z+>zlCv~JV&%?wBCyBj0@ zIohq&ms5#EtoP;ff2g*R&uIt*e7|XZLNa6J5}X?5_hY$+unV@qFn8YkOjC^qj@piA zc=#FGP@igp3ONXtxj7-!=|d}mQ)An)-Vn~t8PRYVi4Il+dj{yhBE~!KzH_hyS%*Ix zp_?brzCBmjnnm|SWG7^kk`3v%K+PsC=G^EB`tDa++lh7jYB77jb_60=N#9@z@Qkhfk% z5(R^Vi;qw+nCraS&o=ENZP?If8LzNzMvbNf{E)(A?no=NIBY`y*tw^JSah%QCYBU5 zHnN+_+OFe~mZ->^D0wCkJ5E5ee35kR$=GShp2k>gGI9ps>C%r&kh3UB6W@T0c03Ig zfZ?%cWiP{kIx2Bils1_3SNB;(GGy;Bf))WCdU_xMZHm73*6NqAf0?~j81}%S7ouVJ z6@Aumw|d95ht@kW@80c(H&FlRlWLD94DZuO72Y}49@>q4%1x%YazhF!fLx)0s)-xv;PIt=b;>RYfx zR7?Zv?LSO^M$_vkrRAY<`#&~J%MwYY!3rYdtve2t%LrD^H(*4ZGo-4n*8j5= z!sFs6)s9hh`)DHFOlH0H+07{^zG>|UmY7~VL~8hQegh*@%lL=6Jv-TQ!?s68O8VsM z)WR7(1mV!mbrpmG^7RMp$fS+kGFXOB94|}hadL118evCK{8dBZU40oTx*4F9)_r&k zfBM=1(KhJKp3;)6?CpNki0(nxIf1U>xw8#6#FShu$fz#C0IA6*V27cue!?M8E1H-d z0R`g_my2jJQlc@*=t^dL4^_i`qwpyUiM*I!l9Do>WEXziGLcUVbQq`O>;!$nzl8OF zObw%jjT&Gn`lacXD}nx|=ONl^aItBd-?8EnoBl~?WIo6{e)mPTAw zNDyc*Li%rjIs5FEHZb~mS*N7(&_jJ*5dkSjNlTfwQhSouP^cVJ?%!7ODeb| zCFpAW5)3z`5`ZQ__%RN2CT2nTIh)%9YOv>LqZMaM926(3nx8Aq_6hA3X90yC-e_P@ zn~_|UWf0f=HOA9g!b!QkZwj{Bza+;tBpiZ3ApGb|&i*=iF35=&o(~uDXLY98}pKHDDrog8~Xc)DFh8< z@~r{dJHAe`4m*pQ*ToA{L=q6chs7=w%5S9&l~KcZwwHXu!s~X&n6ZPy_$i^#bQn84 zrC^!sKY@`4^0{B%6TxAU$HnbBI<64ytm2_-DPioebH)zf=^ynf%B!74#7|$Jz$nWL zMx3s=c?36%q7CiOa%fR~pIoKA8ro*#2h)F549a>@=%|v#$5O+X0r9wAQ+-(sIyIlA{QY`@?1bO!AS= z-^i%vhr>n$wON;P_LoWun9^fDh^uZkBSBQ$2pzijF7$JbD!3 zf~xG3VvOAzrRZDP=|v#w8E*QmxOf+ybyiznHb>m1aTkWoKE_>$KTt}%q$XZUtbGf}J0F?K?eLgx?N((3Ez%QsS4Hjg&`=QF)$)-Cl{NDrwK znUG(-$RIGS)iFvGoT)G$tQ>E8WMtHI^zO^COYPvho55Oh$@X`QBoc;lqEg}!NmbNa zP8BDLoq&m7^ET`Rn`6!oQ44z$2Hkg#$W_-2V6iRLvAf@LxLd9M(Lc&L!J$G=DJ=m% zuH4KXkNumLmtB)Md^c@OekRZs1z~@WiTIOv;hOrNKc_R^TS1h}_|fk#$%=nbo?OZb z?k~O+-2Lg%aiBn>gXcQRcXSAVc9!hyGwL@}->(e6QY3@_hWA$v^~sbHf(BqyLsB1$ zZ!tLc|E=M$|5V5bq(ROy!bISjA zIm;+lW^F4&_=ecb+LqW%Lp`nL4a?~pKEwb;2omkr)tQCxq;$hAdf#D5&J>cTepXGb zhiMSI%G5ncCA^CG=ENJ1*B;F3sAV0H)6vKbs&3Mz6W$Uw^%e0r{@|t%^)>PTX#=Z3 zS@mjlbwzG*Zb!Q^yF8~fyS%jYABzc%($dwkjjCpAN`cCX%7S9s38ll8UYABjN=;v1 zd6aYHud`eGnmT+{ZfS1LGyA;aziV#uivggbdU=(vx1VqJXN_0RrBpk=2fr#ylT3G3 zP?(z>4ABPK6j7jP$8^BvZ()IQ4@ZM1#&J2xpIXfk&(y)}|0GN?^9Dn#f*Z5|JgeRS zfjU-ioF5`8l21BDsqD%=Ua`kdvAK#rC^_N(-`D-#TJ|FVS7|Wt#3nSRq+l2ec;! zVT(XpZ{u?e2S41@^qJ#j9Iga9Cf)_}#^m5V?! zcOA12}c#Z^A6 z>@Sbj2tCz5SFfcp*5AL%pKYbG0lcBV#i~f`)5sO2Q(yI?M5|mQgZa<={zKizraT!+ zB@lC*YmjKz1OLk@>2~1gZjU2P_OsJ)qPWenzC%8}L(O?n&@qJT+fmo3Wj7>PSgcYJ z$myF%UYbLv3Vi~oEG65OZrC7gL|!LpXj5~)@>-l5=%3(ke1?Nh!~EHd+6NUj=&m*clyAePL|oJC}zC1U^DXr)NH|AYEwl*Mf{ zk-*0q!1Zy@+d;0wd+)Tvrs@CA)>!H^+y198$mx6zs)Y~2o?{1*`nZiWS9__v%)Er&){+-ytF#TuhvYkMl`pb!d!fJI!bBun&DF|wJ4(#vExMi}qpY#S}(|did-89PFyae-wrjWL=KW}F4q?$ zXo%&a2j~wAaY7gfdw*HBs)+0p%JJ{P*6q_6rFC`uD_5@kQw|y8149vMy!0aIrL*c) zi7UQP(6!VbGH(2$@2Lob2}%@xugvP5eZ?TwzVb?85GcHsFC+QHU#(zkZX!=HVyBuO8CY_hbXfe@K~yv zY=ZFe&`H5Q6E{V0gj6P@odV6yJ*I;N+2qVbC>;0qVGuc---Sa`5 zj2!har6!(9*iIuOZZrhPUcjk#R*Z6rz;)VDS^OL>v^FFwHuUC~6jLi+aY^Th@_g0( z3b0mX;)H!gagj^m_sYu?Q--+@-%%4?5?`@O$)nhK)xEB_-Be9;N-yPJBG_aia#Q$E zJZlvW6+!SNz%FjgPEZ)BaOR8JIO@YiKiB^+;CH3{4I(bs+i#pu$J!Gib_WMb8z-c(+)2BQ9t4+P1 zdM!&-*c6J+U*CujPm=UTGCpv4boN@ySB`LH8^p!nNEt!6h0zW!!E8PYmx%e)Y z)W^BHxFCJA@6E~1iC2tg`eW$!5q$hj$8Hu)C{15RvSlsB1-v2oo zUrqYK_i#7lEU=E^Qq}5q$G}`$+YTzIk|rh5Ek@2=r{%f%j-^12@zFr_xA8 zqL63ZCScf(u9#`1;#uCkph-nHtB%eS1Pry=cg8U;3U-deJnxaB8R1R#X7kfR*+(Yx zLpxl3YKm7(&VfgMCtu0R(plq7y~87U-pY_sm)j82cUNcnmz4K_gqeze^(tQMS(_ zbnMy@_L8T`ZV0iMNbgr3c_Rh~@XzlEfjWhXQRF5p>N3i(zMEo(=rb|I<2!`zNI|EZ z+Ca5y8f-5JR*N7KZx$ZLzFq+GUaAPx@C4ab}jRXxuy1YL+(XLC-Q`mIeWWsaR0704$v z0;)^o{`->|!s_P9=Eo5!c=*#V)A&TC9Z#!PKTK2!&3I>3OXRE4wu^ZVIje2LvB}5k za@jy2QY00pzLQS0NrCGJ@|@?p)&7S^ex!Uu$#DfZb5(laHNVA2c3Sh z^-jdi$tcTrw<64~d@k$hMJL|h2xO&$hYI^}R3$6*#FEOZ)l{XAOF$}4jnKrDq#8ST zzN22kEtPD2asQ46ZCmBGg6z|TI=yoK?3%{I=|xn7`?qt9!N(sh=c>Vuv&<6bFjY$> z<0S_yJ_TZuHRdab>Mk=ScZ=_4rwkQ(3scj627n8B20u%T6C@>YBvNK}XKQ*-eqYj9 znM5o9L+W#$($%>_p~P5HW$cIP<4NXhP|x^VOK?}W25`5uiNZHeE~WVxYA-e6pE>II z>*%~fq^0Y$wJP5zn6V!oj<)|k+1aTig5Dvu*-1g^Q_|KJtI#zViNr)cJZ)#E;1w`5 z&uoPATUp9JrOe(T(@uLsx}&8XnF+McZly7NSCc0I#UuldMKxd|(L|CX`3>;(qhh?% zfP?=pV3v<3n##5>!^h*+Y(PRE^ir`nUE2$x1d`0O{$B96udQ$)L_tkV_nm`s^JIeA z3RGX@y={EaQw1%NSOS#Z%Z+U7|4<3DrM;UxmZs0rS1#%jwpC3%sjP0R)G+6}ud3K% z@~fm}eoAf+|Nqi^+1JveIBferK=nMd^{3JBv+4eAJ&S@YLY77QOv}8&Gh8Zm<37qH)-}YMP{@ z|7uc@ZFEs$;*M9ekA-|;VnKWY&p6$5*|?)9Ey%a!1GPqMoHaDq@fR80oFz~1?~7H1 zq>D_5mQCmRrp4C(zT0S=opmehwU;iBRc&f&GOJPh$#_TKMJyq5+xSZ6d8d-pZG<*u z>!mH-hb2P<9je2eS_>w-6KiOKhgl!RgYf;T`Dht)tO)EIsy0s%;fz9Ia@$Asw~ee< zs8gO^>f1W9J;`2V&JgA)<7w)0AS{kPb~fS{#TAadVZg1=BcFc;JHi9I^<#_m?l0AtWFIE|#A79EVfFsDc2Wn6yEERs9%X?VqU zAgct`C&0W?R~N!jAh6ByFGb>)l17iR)iG+l697R8rM+^U%HtEe9vJRCx*Lcx7+(%Hy)t zoU29*skl^fRtjI!Q}|9I{rE}lKxg;>q7S^$AEDLO7j&mev$OA;*t2pn`GfkUHshJN z$}4BJHe?rPb3guDR8gr6?XVX1_fPx+epS7%p01nwWB7j-pVd}d^W!2^-}}} zdj~bGDOZkynf1%qr$n(sM&j?X%e<`trxvJ(8xH>gx-g%nfvBvpFMWNk3rb3rvmv{@ zHirc5GCIGDwZRdSY*2}C+_mTR*s80P4$S5A_MgM3B|T@l+YcN|CuoN`xd&o?LJGAk zw1SdWV4`cT_gBpODHqSuv{{&eoyjzAAlIB6#EQ1kX{OU~dUSFglNQ=%1+v2M56)8B zrYWMblHqMUU43%G`WBmg zvBJ2l9SIp(;9mk{?WscnSUT1YY0^_>wN-$6WnTlyTs2oGQ-5gIwc8ss_+n5(R9<6< zs3|n?6Z}~{6i3E)z^r*19*TQS;G0+0;J9=Hh02Ab6}O`Zfz2nUg)0+E&AZ>5hFOzS z)Ny@C)N)yx70TdKnS_Ki8Nv`duqHJIz3CIu(p&ruHU;e+^-svlKa{XsGjw;_O~}=1 z-D@*#dtPRoO3%C5*cMvZ$P+!4es3RVCzwmLh+@4Me+~I9$oi`MN4tDM<%pl z`1dPIcZ@y?Erl7H+84J<+-)kO_<8e{E8*z&vfg`l`unY0w|=RddVyUHzxsDzlOs$Z zl+n1CJ+#^`+I!Z1Hsq3ACfM6O>}NS65D9Z`WET7cQ!_%I9R?zg#pVc8cJq@&I}^9C zMC0PP?q^pZVAnaOx39MRbcnYLsF2EHf1@ZTvbe7FxrKQe+WU<6LYH>T0DD*CKKr>{ z!*I&4Cxq*Rw^Ukv35`_42`qB(;V`~kH$krvqcfYCm2$B_g{^Y5`+~E($UZL(8> zC{|C)Jj`5c*r_qo9KHz)G|@`&|0SDtcv=)=T}868NNjPC_?sYmBQ~B;`T_rPttASn ze)vzLaECi9Y*kQE#Wh!p*<7R2Iw9!|ziLV^&T2flVOSG&k zEv+hEY`3rMK`v?%_8f!6M7I@}vQjSSR>|{qL02q$T=@mMVQ+K9@v)NZ>X2LTG0N1^ z{F*gQbR5YUdTd9K^=ZfA9Xle!GVq|!kBvy)bM)6>c87OIe0av*4s*8A2xV#Q8>@xl zEGzk7oTGJn$}A@*+y_-{eJzDbrj~aHlQ~4s*3L)oMxXSQ`HZM?y&aiUkW{fQWOlWB z=Ybbah*k^!6nd4l?m4{C+Ie1}r(P1Mi0Kdx3QVkQK1>iPdv@ES1O>A>7AND!#P?W0f&U2gnHw#)upO++4>t0;mTF~r+ z96=5?>&WzNK;kK!eNo$w^p?B|YWY?hejs!mZjWJABbVo=Rpod~E4Gea^}^28?`jpz z%lv>xm*(Fh#_f=D(#!lkZ;etXw_uBL+epi~L(J!j(ivfuesvgQw*2|Wf*+%$Dby+D z%G{h{pe#0y`-v9A=N8he^Z2kypV{T%`v^OJ&Oj9I5&Qa%yh7wO#wrsDYYe&IAH3TL z6zorm$hfq%J+&R7AdB9)Mkld#bj~;C-#xhS;Y$O?*T9Rx3{Oe|(bap)R~TecmnwCTDN$9hY_sr}L?T30U6v zS(kP)?2FcBrbGU!p2$AY|@wQ=^}VXUk`?u3IBp1Nd#y78u1MX zu%ld}hl@NtX;2bq?Yxnuu1Lwq*5jG+u~`INydEOySWcJT={%Jv91DtSfWtS!J`8Pp z2it;W-COc4Uh=In@BpDhx3|4xfCJRu#g+^gPR%HPgW()Kwa;;AS|M!ee$jvJFh8~6 z45YwY1p@jO>cfDCaL9py+SMD@Sp){1ZPcg?Gjc@6hh8RQgS-@3T>gkqPAH7C&A?BG z>a)vxmj%|*!UCoHk1E;Qiy0JVlzyOoeY;aT_nSVs+>FoD>YVP7bCR>#+nf-swrcLj zTAF1z+oaE5<*o0qN;c}vU+YRul#D=S@u=s4;oVd(W3O%XDuU%*`U>5$%JOu(CLL6Z zvFH6ywX9QqViTr?7GGq$t`VChr_v+$j-|rZ1N)u$&+powd9-^;XqUS8y%Qr<>9_CH zDiE@~f*cjW=t&ZwufJ~^-Jq8#7~5Swu#_aU7uoVN39 z^-2DAPq~t1S^>*B`OW42qv<4&X+A!$MC3ktXsWHNN#(_qlq94~(d;k$8%kkf zO6psZWUa#1;o*82ncVPifp7Tm9C*I^ERCKbOrN6sLoLcmKcE<$6v}<($H$vwDGd+D z5GkL>mr<2g_qOb#?ub*u3fmPk(KNo62Nj`T*@zIO9&N&m-rj+?%Se`o!%j*Jjj0w1 z&TiyvTv%Q4T_Tn_s9LWW)*41h|1+wJ`Z;{<8IedlVVXXc*|5Ev@frfrgk8-gCrn&a zuKNmq=V)-Bl&^L7NmTKMwUeoMQq9FRNAdXux&%6c9-lVm=uM-K>w2*5m|H{6SG{`K zh;*K`sx-_*O3q z!*cKHITYfI3rmg%acyC&t6sZW-fphttef`h+z^bSENW$QzyWkPrsT{H6!NRYjJqQM znG)9Qu%LJYO~c+Gd3Jq$->f0$R^`C$38WOFxOE=Oy^Wr?4i|#IPm4~+O_j>`lIumH z0_D~HXF}f%%)jX#e5GPj?bLQ)HSLOIUP>{z+mSpw>k3g$-A$)^?PbER=_U#Gw%Se6 zhM*>rsTLvWfo-maXqUD%-?V~0K4R_=fTJC1W9G-IZVjh*5E%z^pQ+GF|^Ru#U zXG7B_z=GRNPTK=ouS{hPeM_zo@mJRK?nQo>uec@GG;|~w8qIP6e0PzzK$^M~Zflt>^RKGvEQL<< zV*LiXzCYeK#wy<#YCj#Ps}|FipPg*=xQ%fn;9DK`jwn>H(x60%uf*R^s z_!5w4EaxxPUer`FPOD7qFsW43@GNan9;R*<6~_BR`Q@ccThc326kEySq8`!Ee9O;L z%{BL*eC@k71BJA-w7e{^RBw4w`n3sa*Z%l%1ICQp`?#dH@|UJPNbg;)J#@qf$5AN! z-_*`oU)$TXC0?k8V!*T{X%c&{Ms*neM0%EVx7xIsEos zT_<|LahCD+MT{DZ>CaOw{$eU!Pt^+E?C7WF{+Sx)zQNhg>EV_xa|NNX#Z%3Q`JMvgH`k{@^hVlB2-AOir)0`cu#1(>-Ymt>U}LH9=(GYn6!w{w60 zWiY(%Y*B0Q_V&EHeVZ}KtL6acjW5%cDV?)z@O(5j(A{kfV&HCfds8~3V$JvT$0{XhS^O8N z#R#-g;-!iz6QPY3Pxq3kX-(J9?xoZ%Rn}pl#<{qGyu--cj#MSxGj%3%N!5;%np4}- zlf!M}w`Ea2_bF|Utv>v64vvwkK%Mno?cJSgh`%G7FppnxBk#fTemhLD}tRl>zt77 ze=(=Z`SfLcaL92C6~|7oBv(#`Cq9e{CtN$4!y!$t?~yz8$ILl;tXfOodcnZwjwTan zm03F#DK)5De4eM~%Jriou9qy%sgIbcn2|kwZ{_(6thQ3tf82d&>*kpT7Ml^YvYrnS z`LKuA$uh2zXkJDiU%c~HM;v*mD4N~(o4kZUeln*sYO8ziDXqD_Nm8j7``*U5UV-yG_|9-#Q0=z5PW2 zQDERl?^YvdVZR_&46-)f(Sn<$wVhXf0opA|I%H$~Xt~--8L-?ps92S*J-dv(22qE? zl%53aIb_jYzaba+YO1UZ_*=e&!rIeTb8QbKsKXI(nsb%x76wA>ftSl|Q0mly-%yOh z0$zgRE3FHs37) z%eUd9pvFXQumw?lo#BS_+oNqU%+y@oSWjL;J6n4`o%@LZqdXps6RX^umHKL&n^9E# zD0hnP1CWG(g@JR9JMoy^O6LX=F&wQd4=y5Gf9@YhLiQ-gvgKNKVv4aIG-9b~ONmwS zbc;MN2hWd?j_0VY+sJafz*EXh%r?%snw^r3(^e?*DSRcS6NpdZ63=UKpQtb5g85Eta-MaWFh{L+W`r9ucFjC1B?`*V{p zU2-!QE$f?8)G+&%uoM#O`m)+&4Fzj4NQKzV*vwa`MFY)*Dt(!_( z`S@?0wU{t%7J}~-&P|++z%OdzI?PB9Q#Gse?P8T)XSMwvHv| zKoL~9%wWoj0C(5!I_73n*c`jjC1Im;7~3~CAfLPG?JK!A$6GPQ8}VTj^O(O89qV6n zZi<$)SR<2)Ao%sm2B)=K&KFsGF0nvnKoZ^DshIa*h6z2=-l^@+JZtxh1I0Sc&-fgE zYwB0sSswsnr%l-Sv7u)cyqKLY5iLwDyJKxeK51=ubE=wE2~-IJ1TRBjbK`*B`H5ek znW$_?$52@$=<%(=R0tqmpvaSvvJWveX+d_e?nmQpjzPLdDHYS4<^08%P;;g4@-y=_ z5+J!CQNch??iv3fd_Ou96!CBRfAJb!4|<`2qFSTP!l(7Cvv}RevBm=Gh)AGV(gts=_icG zm6T)m`PM+UkWgo(Ms5#rcd^n?CHKIESN7l_)ml$5EYxRGrEq>oIP4YO1YNwP1CRC1@G#bI<3<*CY~6|18F_10e;Zsp zuUl9*rvN5M9h#)@57$#lUzP?M@D_A?aAdp`s!sC4^zOm};QN9FPF2$%&Oj64ZW3-JAHx z&vz!}!R(%_N6O>Ue`+oXCQPK!HD)fO!7dZ^usm+)=Q>I{k{} zyy=p6Jni-bCy32a08@q;;lf^(;lk*?T@8wS@6CAJ>7_yxA30(qxB8|5BGf4ygd6^; zdG!-VTJvafyIw`;#ON2l-3L;JRCKxHJ{ekrL}7++z+)^J`xBd%!wNwHGoPR{7SH!QO76- z)qv~6*a5X$VE<^wyDKsP{y+Zz!`bLTWS@9l;n)8~03c!UJ#-ku5~!nrSL*iu+|UZM z-tY4b>L9On_fp_dkuWF}6SFRi`x~@34g(&F4`Sbb1sU=tggdM#lt-r4_WvF7W}1^c zVeTY^@iu6B9d#9>An|BkMQv&~fWalQqt`R1)g_E=yEe{)tZ-YFG4|4okX* zRA^HypqY1@r!=+VPUpH+_d^dPkDAo`JgkxV%W&H4tFxh{PG0qA$X;lNbF5o}8J`@Tb z7Y{h2ps_+F`}lwQ1dv~#K><>z3{p-4ME{q!BC9)1<7qq%P2w}zibrEg#-wff*#Qon;!zN z1~-h8;{euoOa*=@JFCiozS~sIkZ#IS#3>LFsJ0s`NPS+pn*zI{^ofCEw@}Nm8w;Ej z`W#0>c8oNTb zRlk0y)=@3`nR~Y%1tTl;lZLkFs+A0{0t1m!zgRJmvq(DMopBsQYXnO-FV`>>>a7XDa_Kf^CY8zJ($wI2Z=1Yuh-^#+u7c~_IDY^m{*jQ$A_J>B=P?SQM-&dteB4RsCPQ|qw0S3H<>Eo_`% z>?Cd-3YoqM;dK(DkI*8c{-{7d=k7lYW30BwL(UDv=zHXjSgRU*&f);`Vmz>R2M zz$#Q{fhXmx&SfasXc!~$Vn)kAX6i~?JBJ}*%W6hf ze7ixtJNNn3p{MH9dOyDTtp;@e1wy@1Q^KvTP)$KZqWV=KQtpfOX2ip7>@dRphkHk# z2o)xe!oGnxsL`yF?QdqHLMx>rg#z#!|Ev7@He1+qSjbTnQt`}0H=pT^cUZ0-6TJ_X zg)ep*lqm~D-(1&d%K$}8lKj)lx@#gK)W+NXqr#Rg2inhR`y7C^gOsyeMaZL14YH6} z^eMPJ`Pbf#$nQFq{q4UJw`7?nv-4y>sedH9A6idxTaKGs`$f9})11(jY6^Z`SKsbm zuB+EB9d(!%!t#4t`h_Pa9z_B2iPOKGMEBG?uky6BMRlexp9zFkV1Ai$jMND?-}tTC z@%ue?k_XlnKiG%4-`8$h^=AtA-9;_D^s%ek-&oi7YF_i-#gB%Y7=>&8?Bx73laCmB zz02D&ZR98@zA}pD14s{Aq2|_ z^3D>~`Gui1;P)9p+z=uz^UW?U2XWAEZl}K17YsLkCtr)}G<)4ylfFw+!XywI5rKTK zpy8O?rC}iI$@EQOn?wCJ?OG2z->&||FNgv6)(X^t9fe}mHYg3gbaD#f6(;U7;)IBm z2K2dx8!(|h${4OsSK)3w)WFhqJ&T@5^6+TSqeuRy9|jTwK4E1bg1;g!zPoR;@`$|i zqcUy+vstbK*Zh7f01Hp7Ywnbv`fEZ`>-m7vTGp4|+@4y%GPiP9z zGa%>`Ux^a7nbrf9rU0j`CAC2CHBLD2p{MG({62Q?&xjr8ca{~kq7I(#6^-37sGt7W z^4`4fFV5OlI1Lkp7{*GOJHJ=@|dM*`NMusF#p!KbP9e6{j3f0e^bGlaLni(SB}H(eEOfSG-J-?1Mz z^`C_94HRAsG&wGs>$PSI0L5!sDAes;kZpdmk7*BMCpo4p_S$x|ePLWJ_4)an(uKlONy6Nn`rPOeRuVwB2)6_R4YVD)-P3p z%*eHL3{qE>ARnRox<5>{3UV0XqRI8uh|i{CrPWi(B>nY}fG7NFK$JzPgB&u+ixTiG zv*p70N?N#HK^&xPA%g}$l1?T!%!pq7OjcxtXgWrGfz5Ul?qo znZ8EnTE$MvXRv~ee}Eu^k(tH#s0hfmFWO=sLGYnlFE+eLw>zn~_R5YaD@LQwJy8TydOM;f=7xjGi}2uK}PYW}f|wx0GcyA3qhxx~FE`C7_AYCxML z4As=X7!&?pKJk8(A_62wA*j0kPl{a0858-f$q)BtPY4Q^0}INfKH+xArJ2)ik@WAI z-h+Tf)R1N4WZ|D`&1wi9Q}sgBpOQZ8G^-JwdhuuxMMzrmwyjoxCg%`BuWk(x2|K)G zaDSry12q>jNB@HoQ)Z8Tfl0oj(b6+3=uXNR_7J9Cwu^F+ry*o}H8jRO{?j|HS*dql z-smz%p8<6D%`2{YQ&5ntcy+8~r$l^5*HeYr$$z7G1C(%XF+fO;U8L;tRO2p91-mWR zd`m1XJKr09x*3nUb+(^yMz`ixb_^7hlD)LJhkP6=Ok*LZ(EKmYz_2NQ!meLJUvC3oNNmH&>!XcHG@<7V*XXvS!aq=+f>c3`vFF@EyZc`RC#bU4{yY zv0En!N@jW)1R?Hvsz|mcs>pwREf@spsb&ujwkivPGr}n!7T8d<0Hx5wsFT8W9s6@o z=(JM1Wf2gDx(|qXy79Hj%BWhQ0jd=>T_WIh$=0!rs+y+HrVag{^4>fusWprj-YAOm z2DQ{uL9lE_0ZTIl1k)z9(&p64qjgRvwNkKBNK7zGZB!eK>QttdmJOyRYNqByWuvpG znGI-KbtmO>SBi}Cn zRq`VgyXlJMO4no+0f$o;B)MFLqpqX&Z###_!h}`Nu^6x3PS03yr-*cD7${$F{k!j@9gLLRy_C09&&Ep5^%}9 zmlus)87}_|D=;l@7;JF3`L14m)Aa~k-+Ts}jH4#sS&OE!P^gpU#7vaGLz00;pM#&H zpT~vO(a*IbuWhCJi3DrO0F{=z>Fb7bf}_qfVBpNxOODTL1oe*WozbQ~RI9n!{Zz+$ zzcflafB!QsFI^CGJJ9;wL*|S%4z+_a%d?M42d2Ce5C3S~V;I*sX#Md&W)kzhb_DB1 z(#U&zdk(sF)^BwS6=h}8MeuNBSP9umgO;m}-D;>{ z7DCxRjSx;-s!{zw*(y_=#aGPk)nibjdRHiyCBAojbpe2@eZ{=VqG>_X!Y0cmt0wCv zeAC+pB@fbP7-uxhKFi<6YTZ{JFwnn(kjd+f-F|TEf&RRjz|M}@!{H;<>-%`rPiv=i zKkJ5(CsSWe)ecFVV*OyAqEEf-%6B*&(!Y|fPV@YsOlwl>O=_IwF8(~F{tSP%)1C@Y zo8M%1dNy>L?quFdy-d5jpz(+jlQeD^y6lP*e&U5g-rLt^ z5+N)Yb3GZ5^aIWL@O|{{%(92@y9vF=Q9mWsyVVEvLZx6W5)y7VS0|n3-q}xwPblfK z{t>4+FcTi$d7RPlp#6d0XaDw35GIf@2f`234^DoLtY{kPT_OoZbs&MyeJOVbUP2xcG5Jm|UGd-rGFuNl2%6GAJyWjxGCO7F}fP(PRFD8=_l ztgO{W?XP+Ae~!)WpHdsGf|GCNxk@IAwQ1L>*GF8G(@Ofc<@%D&+q7hfK-ydKD>Kjg z^VE-Nqh$5ix7K2QquR|@wn(;EW)pBV04*cRNHROw^nC>JbSGH@FpwF_jAXhpJ(<1? z>`5_(bpqe&04roGWvgUMWy@qpA}*D_QMJTW#+x7l^JMc822Nv{iOh_lUZTL#WR5cU zYZ9d+n5hCF&FkPUH8@S@mSZ&NL7ga>hAgG)6b6HAh5M_+ z$6TCC&M?LbO<*e{qcXCl3@y`=Y0D&?Ap8y)f9Duksjr4cR4z)D8yrVR)JD9UQb|6Y zP?h=)za+mzix5bDDS06&kUW>1?d(E&*$O4;LP>e&Yl->UQ+XL_67~9~HTJ*rfLG5X z`I1ifc9`qh(}YyXHOW5L7F;Vp4#CSWcvg@er{s0LN~^?WO=T3c4|d^Sze6Gmg#~X4n3h1z^MV%z zFAJ_0@XBwhFW@VsYQsBHJGI$5_&o1j2CRiqq^;`$(MrzLnia4i4{Z1j#?yV}CsYnj zuQl;%u8PlAp~@NISZJOp1VjOqa1e9=3WttECpE>&LkFQlPy}=Wiaauge_daXb|h$( zsl=x?87qodv)DvS$&Thb{(Fu*5Mw6j-6{&2%8Lj5Czt3&u7Hcb)kp zECq|J;dg(aeAL+D?5N@If!*f6-A}`4<2F-l@+5wheOP}w)|B)P-{j8JK_w-bU?DO< zSZfE+ZDELoR}jW=qkBvY0lKk*=7V>j`rzpBc-^YcP5J=)3(iMD#rrU+V?Gor^#ba| zOPs>S$J`93l&sYw!;%Z2`8dL0@Y!BRl6BGEzTL;ro_Cz^H`|^CB(f|IF;37<(kv~} z03$fflNHr}gqkQ*I!Rm;n9vqxc&WpbBav7VLdG!L0OCb zh52+%&M|kGs7{Nb#22VDGDC%}Ol!71a3MpJ1EGpLP&+#yO#%r`3Wr?YNN)O(q)t|m z_C^9_HY?cvTsj{*!}^>yPa>~idGI&V@<=*cOb(Mz&6-t zapFvHf<0KVL*5X+*E~pjw{dBuxw8Ejy2k^p$qU~Tz-IVmwk(>THR0yWzDq%$_g!be z>Go%=+o0U+$9(a`$0JZ-{e`{yw?9dizdn4^A}?!ptx3^sh3AaLfdR|56k-V&fGonK{x5l*3y0fqU z8jm_{WM>&JN=VKrM!;@G9P~+!_V0z(A&XB|juxF*tr)Ws99o?kSB(N8BqIQD!=_S1 z*QdimG7tbfI`dFQNQh|55FC{TeJ1AoqlkfqEnt}`t8hZm_p?5g^ z>+&ZNM^86kTQ7Mjw0SD7Ohb zo4VdHNHYXImeJR!2!4|O;w5R=c;oBxa5+C_ zM~WbIwX0dAU%b#j=I`gXE$W28+}#~BwEr|4Ez?dUPzjQ;buyL{lMulq$}e54J7pec z%SL7=`mOhma5h++Wo2o%SVtLnDmz=8{YcEzo5|CCe0W*%@wPK~zn9a{0uN;IJLB3D z@cdEIXEK~Og0i6E*-OcQShSZipHR;);iGd7n4e@ygnyKzUV_E{S>NhlR|llS;hYr`y*(G_Mnj}G2J+y`!L`}oOp-(!1+x}k zoxYyKSAf~TQ%}9T%GKMS9^J04?s&e?V#eX_;?3X+?8ZsG>hQFf8NG=;!5Vpb5XdxM zoCQQ!)$2jatW26P!GG^J!4>?M_jZZVXT7C{%M^)^HJ!4Z&HLgL_AGX2T+nnRZ`;E; zOH7la$T;$N!Qj`|l_%e6)?$yQZ0UhKBB6VmBiz;yz>M54H8u_{ydK9YUaLCg%`*MbO}1KSt;gUUvnj+SJx!+ zb6<4c?bIx}gBL~-^gE%S6F+RgNuP6)aJubc86~IfFALMD4>2G3a+4FMtAk=0)())F zWKCplY{xWB7gf{=dKLVOFZzPe_)4ZHi^3v!=vWZg(R}SL^co|LCE-F5w^Bzz5S{!> z#5?V2$=;<3XP`>|Q>5+u`JT#QJah9Ba;FkcFxdUpq5U-XKGfb=tmPG&CTirK;p-oQ z@Kkvi>1ARkw_L;17{iTCRj-*XmG@ux{>UkJb>)3)${1F)lOtoK&k_Am{q zaow1RiK7~ulxTkYKCs0y%-+6YgkZ#4XchsUO%Y6@ZABH@7P!9Tq+1I73BNTrMl8qv z>oGXG1H zMjsHbi2cZGgonr9*OfWHEB|8@TNN@OXMw(Im>4HZ_)Cr}7k+JblRrg-b0rU-) z10^kRp^=TT9re@EHhR(u!kg7Oi-{EXe;2&3nT{_r#;%Gq^r6h2TAH9i*x(a&gJeb) zmu|m&=D4lkcv~eF*D-wx8syCG8(lN#so{Vv6K5Y@SFV5*hQiPVrXLpjunDdpe3@rw zr7+J1d@8Sw>y?|`v&++~czSM7C-mt;Ha|Rt`6X8#5`|IBRUR|-?D`$6^CG#9&tGxf z@}O>VADAcV!w4U4;qZ-Wr8}fk`?`)OcSL=66Gr(~VEXGAQ72oE3c&G+|ab33pWkIPKE?w8suZ4{b!u2%%b8`TsE>pVa~Fv!GLyg`a;jDUaofd0<``e zUBN3zxAr^TJSuI;!PL)^xsh4v<&|BH(7igLZ)ZLvO3~K6mZ(&3G_NGdRVB*+GO1c< z9#8h8^*TbBA;l`_oAZrLunkNc4V$kbkcj;j!4t-=TJ`1paO^zCvh?V(<^1l>iMT7cy^| zoxqQcHRkow#Lu>_9!c(C^(aDO1J_}zazBfHbE^XzrdwuL-cG#I!-K0horNO7n}I!3 zSaLlqTGy-8=V4XfltAUub^GZ~^fhsfJ1yyh7=zMJ5DV zv|;43;MBDLQLS#lc%x7)j{1}i>*3iMqIZ#&=!B4U_{r)SH0m=9;YArts>{`sECka% zjhD_p+fM^S6=22@2hsX?1Vd-)43e2tCZ^2re#3$<75LJ&rvu)`t1 zx{8| zwqKMzsVj}Ait1=2|4wVeQ9>j0zjdbJt6Jw%-BKf-p$KEz<*!ioevauDw_J?Tl`fBe zIM!?+5*gYGvcT3|cQkj{*ntyt$INWgQPx(>ul`N*4sBrVE=t{*n%=XEX(YRj!7=>^ zSKC+^1p}*KQ!FbpA}Ah6i`wy%IHWP4oDN3^i6&2DuXl0|gP0G@`9bUL_l*Qie(>uJ zPteP+ASuIyFb~q8NSIT=fS->tiW#E%6cVN;T;PXVg;y^QN#U|R*U1j2(0C$7*kri6 zjtntSvI!vB!9G1SniCBNao?@v3l67GA&iv$JYmr3O4nwZ-i79Vh$Bo7M8iP}#?8HP z2nfq7o5jTt7FOOhqTpRWC3-`D;8*IHpG-g${N=;VT3kYq$eQV4Y>V;?4YP@JkVpDC%)IS^E;u}e(UgB7<$7S^F>h=& z0G7G!ud@33dV?)d+C7%+pO#qrW^+Rh(>>wE4L7>nXy41@ShZAV5AQ>99Xf%jH4Nkr zH#813px4=1*5?B4CEE87nYXs<58c;xMrXG^txZGlhDI8sjWhI--UxB#fSuX0wHw{D zo7IZo*7pOdJe6Ld$+a21Z2VrhI@dInrN+O*k7W=21~1S3gS|!_ZfZL{3 zPUylz5S*u^j?NQrdy`$EsgYIBbjsp2=D-)4O7!;9Z&B*y*}bCj+M(RG-}dfUxTU3i z_0fQSC5OI5$`m?j!L_+VbFFH<7e-CPY70hoNh7G@|8_BQpI;5h!PPg`J&llp>5=M# znL_-bbH&T96z2|hYP%98v+4ntCBes^J{`HgQxpKrbp-ojEF>_PNwl%-XdKa~&e`x$ zlJ{}US_;3uq1PnQm;9{W{|gE%pN=^*G9pSpvbGenXn&|&@G-x-O%$5NJcUiWNb?0g|&&+9zpP?;*^vU`9Jcp42bdd9KpR*AM+Vj5e9m$NVMC2ft6i+8CC z`l0{wTub?aLQx{DuI4rJc2^SC&xP_PLq$Kd%qA12!e|jZtPw;4%V3yKKr?y#4E>}+ zLhtLY{H%MGBbDbtF)p6`>wNliDRxi(%?v{LcTS?{M#hyO7ce)YEhz&}*!(#7{MQWq zR8t}*D`Ss31$7g_zbSdsW`IFm)vGO91Oiy`V^I$DMp6r99cx}`^n>(oOI_MOQl2Ze z>vZkgLYV<0w&8|e!^}6-yx;e+DLc|==L5Z(Uts#) zmX31rZY|wa;_M~268s!KW*Bx6uwmLf!oyKavR5Cj@!zk>(Hl}PheUidxHs-@OTXSx z9vHr>$}f4ct+2oAH;vFU+Kr?D?#VqMGK)qSBR?mQI^_1_Bas()1W?ij5AE!z-f3k1 zlcLF;b(#vAbsBgdfhTtVs2Zk>?mL(BFWG%M%#!&W3X;Po#l_bRMqd#|$*<}*S(2$N z!<%as_$6jLi;y{d>4~yvHwvy0zFa;PA$D0mST#=AzW6ldnmhNe<4&+P2YZ1HBvsX| zqW;r!ehmzbws0bbseU?Dg-IUaGiHxyw7&hfct&PtbZF{oawE3GTfN?*$LuWvy}j6= zn@l1R-QRFb<^*2hHKwLqBJBpp+}BnCL)!lY(Vlk)IA3jb z7#&sH3F)x=+P{hGTFIXycys#wd`Tx^_q12nh&9zLd_F~edftG$HrDX+C;PponTTG>*mP)lJV)}z_q?T zWb%@IBd$WjO|&rxey|YU1Oggya7YLc#>vn&M^|#gkf241$XsTxd3_4vhE0Y9*#Yij z;Gbwk3WuXKx#Lt5B}(9G{~SLO@_SXgMu;#2Oh`B!IvI9O(gz+61tE&?O!GyW?m@7| zUQ^Wjqf*n|R?jzCW@Fr^9YF4X5ka%3unVp7@l@fNE~K1jw-il60VV__Da*T&B^K%7 z+mXmP^n1e#>kMGi_^(HATHCm_F*8DpYn$l%YtKvpBSvby;|Sc+&^r8c^QZ39t&@-A zjUL+%w=|!F3j_ zCf_^u?O*OxJA=bpUGYY}Ym3g#zVer^NSXt+=FYT@>AoYwDdnqnZC9$cnJK0;#B)BN zI9pGdT?bCLsAf$r9eq0u|A4=6h}P(x92^b@BS_3#MZ$pg(#7ZH1Q^dZWn*znZJWzD zn^B@yt@hC468^ewfzvLW20VS>Lb~BUc*q!>uOMKFxKZoy=|-}d`Va+k@OnmC;(|B} z`!pfwyDlgNtihmp&~3x(@85Lq-?jnWKM3I!@YWlLFqOeqv|}2-TBmO@S{4SGYXyM{ z8-;NUZLc6?;7wU8?}FfP0=Aq6DFp1Jsnt7xdK`XJMy40#O^+RTXz`i?yn`zB^kfHj z6|R2at-J~Kp#)s!zt zKVkAH4lHXHeuTn*2U`NDJV+rCFI@g5d8A1$-r6z;*j8Bomwb6|uTRoV8m?`(fSUhl z0a*P}zFpBBK(}mBFRX^^yC0_Dex3B?5kW|?m+NWdp3OG~-KZTW6w&p&tR^}}!@2fr zQ;LOk#hd(X5Lz$sCXekE+r;epeTP#|$twLC^fCK-?(2A*0sQ@6#M_ylt#H@#(DTQ< z;zFAC+wHeHI`v2A2CCw!>wJ=TTp4pvVDqMl9vanL^Mii2tVKuW&j+dF30GcoQ79ee zC^N{u0pUw^X!^Q;OL*ZvkL!hdD+S6a>x9>Sp-_-{eEo92l7$tUi3Bw2fS>se&Ip8S!hqVthZ4sE_P=pJqPpQTZ zqF1%k?~1b?qB0;C8-cx0Rl3w*YI`IAE82(zg2YGs~IcyIV*F;rv-)r(Q?)Enk>ud{c???;+rR`TZQdMev~g7r!uA(ejODMP>gT;+IKe#x!>k zi5G@mNUgpU+#XFvR_^$s$iMfIVijT|k^|#c#P3h5!oK4bKM&0-_X|M{VuJI}ZlQYo z-j#s&^BC2X=SUyYZE1ue({>v5O^x5Gq|ki3(V(2lX)yKJiBuEgz1<&=k&rg(N|THD zrPZJE*8FCDJ7c^*`4-5+iJyOOc z3ETY*>%Lv{_wQ3c690ybMoYTaQh(;K{S`JA|4M1BKawB4aOl7qw{fFNLyG7JQTHWN z116QcV`_u2NgMOY0R7TJ?_eta6|1d)E(A{zt<#svU3EZN);vZoB_{v=>Q|4pFsyI* zBiyXrqYGaII6Yabx)c1dQMNp}Mw{l23HF_({S>U#AyNF~2ahoyCx~#dTR@qKiDI=E zCEDcmWJq2mlIMw2&M%@KS+i?Ro%k3OY#n&%;+|*G<(BcUNH*L}?%?v5ZA{}v{K8<) z!O^71sMI_Dn^&Zf7W}ouinVgjxWM6JoDII~LQ|&= zDsqJ-*`mp#P4c-=xXx>*mg2Q!e*>5i&EUb|r=+v+MCLzK@!Se1(6wPFfHA#emASy; z7gB+SDgS(jGaZ&O8Rk4^3@5q~Vid0XtkEV0AyG9k*s9QJLMI_4B|Rg8c`r1KtNfJqcPI#Ms}w|aF7D3~CogD%;IH5U6$BqT zQ0~t`7t8_P^6i;|U22-(G>eHy8l)$ZfWH9KpMZ*#1Nt0nHdi z@+Yhxz&Vl#)|47Ie-EA4mc2GIj~9`7uJ*X+K{il~$NqQ-DJtLT-z$$(wN?k*6TgoE z?ifbt4NUf(qdlt;_>PWZttvNY9g$O_ega``%G;c@NFh5uXZfE0i@*(Xc@$LgM(nZMEZ7i7~cp- z$1|{>E$>>T54k;g_uhd$v=G`jS1hTs2J718j~7^-UbnvUZ2eQk)UHr$T)6giUp*iw z>KDlC|D{Zy&r3Yg10lQPG&{FX8rJr0_7Lxz~OIFa}Lcp()pslMzWP6#*9sOVc;x1b`0a`oBudL zQWYpJB6Q!QOKuj*JR9&jDXr4EZ_`tkZDp9}H;}Fs!n8TE6q(`(%p*WMBzz5q1<`d` z3cB_b?7>Yl;qu1L-_m&FId%p+MGaZK4T7H6#W{nJD8l&}BO$2T^%fouGI_WnebOhC zUUY8c9&a*iaOa5Wn3EOm)chdga8?|By(!3ho%;`kw~CtOX}cBQRGQ4h8X$Pjf==BM z2UrPw?sd+JSV}thh*?u$nhBHT;AuKo+TjxDA_@U~Oih%KAl&?-IiB0K_E^0T{~N)u zJL}FIy-<8m@c5^5je^V4{`qZ85!j`u;ed6b5vAZ{>O26?acM${;d~w^FCT9v$)AB= z;tpNccl!OsOTinpb9?NN$14Jhdr}YvlvM)~366d56oLKU!N4JgJ77VzS=g6|YrQXl zXd0AEvvn72NvNR@mBnn-otLLpQ6peLyhE6niK$J0J=CnKO=e($xccPq{@=0uwB()K zMQNEgJ5fNaLrO;U*1pV?{`w?XlvA#`&nPft2TsfA9x?;6O@ib0IBgel@8&t^*g$#p zs^T1FWF{uhT5t_zoDpA+^WhJ*GaN# zTXF%$dDL7>LkZZH-B4Sr-`>!y-;mR)pM9+SDoWa*mpxmeC(Y@Yy>ubd6ROS8KC2hs z3e`TetCD6Hsj%laZ+)%@8aAE$!Y&|m`Bc@m|e%CF~|803FHjD#xa`J^) z-GyqNKl%<|hl2)e4@PH1`u`OYdDuVXFCjuh$MJ~245#_;TpSUXn6Q&e7`D&)%YQ<6 zN+9Kc_%mlx#Z`juQ@k;YSY_ZtWhVwWoc?!u$o0QcbnhM5abz(uC|wj9c;4rkOQl_0 zT*!_i*RPzr-|8QAdd_d@#8gW65gafvey6+Z#HOyXz{$X!pEY$S14B9PxsQHvYPB28 z!N9a12v=H&h;?*&$2m^@3aOGSFxW%k?vC6YkLfxWdM&hhYo}tutiGVc?gBpjY1EfP zvuDRzPOLdv5zB3`nuL>gpYi0WyXQi^Qu?LCmBiM9yqvt*hWkv*Iu&kl?f3TL9D{9+ z;EcqLA`+BH51y;pf4`UTbjIT=8OmFMb1;SBd-M+}AelTb1j_!tHcJVWTu`6Dz*49b zj@Pf+J0n^0*SQ6Cy8{pkNPcl~^Hycg$g$9buX*INd}lZL$cS1!@?*oQUtIW+k-_Ij zkhrC}=>*7XY#(YBG7WwW4Al+G8#pC#a-1O5_wCS=#^DBnHcH;0-}tnhi>&L%7i2CM z50*sawaO&cPFBwKytq+8VOmA3lo@P+&LN)lsuAk5CclY@lHteZ?9)>-rKh>`v0S5uj|1cj zKcDSP>Aii@9N(s6__FJ0)f=7Li~pJkd}p$GD@+Uw#BcWoMbHRjgM)#KaU+&{9v$+= zNtoUT<`F?-x2?%P0bhjwPJtzwD0&M=iKylU|LJ3R>39X$J_xsU3zUBOGI3*BQOn$M zx{+i_=h~wj?Q)@JOQSGjI97gvX+K=fsauy~)YIw6x#Q(Rpn7;7N38G;pK$bT+qsuwAdN zR!j5#Xh-gO5j6MB(LzMHRk(lK!N&I|YEqyEYV7ahODdQjhYW__y6}6)^`X`Z*W31b z;fsUQC3Vlt{WxUbsHT!;-Cl(Q}38A(_~yb6{}Zop`YMrnXhoQH`lX zDKUMqfw4zF);SSMDmx(gksn(|`39FhwcXL)ip|chbrIbiEB!zK$_Jhf$g>ZDM0l`t z%*5zk=~INZP>0a@H1i-9)0N!#QLZS8F$f?41>*z#!F#`=gjN25&Aw;qm(D3 zFB%EfDm*ztyz19LLu>oMlQr$(zJrZJ8*cFl7ew5MzA<5n_qDJ8zNA#BSkILs9}{l@e*0N*)aNEgsU3yyoOJ zRN8Rn-P+c-4Uuo0j;`JAoRBCy3I1xnKv0!r#hx=45 zwN4Q!v5of@^F%zIM1I$laEb?QOz}SIX=Ci*^#(^a#z){q7*zRLaz&@Xb4W5SFL9LA z?>I9JjsJe&>3<W;Oj?=(v7M4dKL7sRGM z!+dg-AN|YCYv}$le3^UG+MWk^;Qv`7g6#1@Ne42%gqR|q z#HordOZTY^q@?u@9kuo-h_qQqkv5BtGnh+Na}GnEozmG{X3anBjt)JWXS*wBMn+Vn z{t_?`b>gj_c&I&hzYud*KG6PU_UdWbzoFu-8TS0)Mm@Yh{OE~m8@uUX+lP;N1g6*v zBA}gX^0J{1eG(=1Zq?H)!9?&3c=xEMOLhqlhr>uA)h@dOA_3GiQ-^R|99C7Q@Ul{; zWaN(U8UkwU4oUljNHfTJeqDy3YEBT_d|0^tEvZ&tUJma(6qV`XGj=A)KE>XL>Rdx` zr>||DtHyy~X%CS;?h(-UY+RFe#FtnqiCIz&=WD-S>H1^I_O>3@W%`NPJE6*_MuY9O zZ*r~-X?wIB3X6nJ=9k=hd&&37AR5Gh?Y~tor`)`>agAQ2It$g?d2M!XFZ-T0T0JmQ z^HR82!;1Y-#{Sz>OHo@(eL|19GG#gq?0b4*g@h>t2yTZl*m5w=EnJd!XnZ1`%uc(s z-A1oP71}ywK9tLYvV~Q-b*C>E9p^V|ADrE`Lyt!mKc!ecgqxpK+ALw04A##|czK+6 zgcz}U+l0T7KhYp;A_Ve(x^Ts_D|ZIDfLLtQvP9h6ezs<&y|&Ti;7Gi}dtkE2bzHPG7|Aa7buTo+J{ zFCX(BVJde3d22Bf-g&p4UcOZN)mbEFUYI5z%pu12-X+V#pdM1uMktZ;>3ZpTOJ7e- z5&k(hpcg6N*4C*c7#E)6EN>vvd*XEvvLhp)tx;S(fB?8N7=VU5LxU|u`|V}>yX+=D zM!OH$q&cy>>4v8;KTXJtJ1hU%N(A0b@S(5$bOliH&p52BGYZRemVGHYj71w3i|d5^ zXQ4$o!Ox@OnzM_ur)^|};+*2cSke6Yk~^=gUJQEbBpE?Z@8`DGLQmQ|Ig zil$wTQLt=j6d%z6ESp58!ARaZhbm&f!%TOI{XJOg26vZztnV2)Zg4->@o%gE*z?HV zFm5qQwY0U~P|VibB!CF4`ya_<`Q+t}*5kh5=)Jx)V1LW=X;<;UJFGLZq|x3$bC(Y} zyKRd^c*t$P+(&vm|0|ej9F|)nmFrE&?EbX9q^)F3a8CGkt$LuoWcX z#1Qb1>cmr%)OC5anN2C-h9CLSkLd7|j}5Apcmv9VHfrIF{~UiZgRiP@HI$yhdwn+~ zYBQNS6gHc{+HdPF^ez*-Qz#|4R#)dG>pcPEN`fv;!*Aw`6)84?&m=W9;OaUo+wQ(v z5j&S_u&X`&TG{A%jpQ2-CD3vF$pN5zE_Vhpq?6v(wly!(cI|GMMe|-YDyW%x6DP2k zNDcM~>7tD-#l)jr=_f3YHJIWy@Yo% z=cv(a^p_U7Lb~QSWf^p0ESF+J!BEAPNK1YJ5 zM_WN^p!EbBgltCD^ys-ECEaD;nmBtPTm0dmlqEicO)@PiAuZZ*8aQyexw!&t=`Q*} z_+(U)OU-39*RJ36)tPv)o%p0R((;=jbSKq8hEFLC((-zlPn`X-K87$E&%jM=Ta1G#1`t|IaY;qUP{9JHXs95+Ba zm;tn>WbElEfwT5F%wLFvYYgwMJsAan4{&Ge9t@wafGO2;;E<+F@ayf4o;q{)Q`HS& ztql!71%0OnOWN{Fx~c%vI{1c-3Sk8&D<->FjhMF&e_31h!Lp&gRUgJl^_}Y|H(<@{ zenKgZ*q1ZeT|EVD#~b>FPfKn|Rj`--{v|u=ZxVi)BULYB9U&L#QLajhPd29bc=%0y zU4z|q->+?|S=BREQ`4Muc>Ie3n5onJyzE;hoXr%NBCHzQaoKtFLouH(-=5y(qwO$b zX{~Un&(=G`P_F6J6na9<9lyWsmNsX&795_f)t+w1@aNP=a-oTx_*5{u6XwtGhj`q2 z=)x3(UmnB}*`+%JLBhG$DXfez4iz9&)(bHJhZhYTSN_nuoLKE}Jv?!0vd&pMkxa55 z9hRHNQ#DxVVN0{$5ayKnE08)Pct9lEj#XcJ&DEsQ@Yq06Ok~7M3#2IkTwCGj0+{kr z%hi}mquS7bTpM>}88p0suEUhdM}`ltaXH*!v!{Kgd$rp^C^fz)BKBu>jKo46^qSAr zB4`koq@rCkp6^Xp0Utj%R_qF2X-NENX`97TGWSfrNm3Fzi5{mf0KPJUm9010&!L8Z zHS*Q+_wdhN&a!694G#K(Jq$nJRIb}j_8ouite zCI0xKRiMoiYiD_{yoc~)fzhSskDmAr4rgElu0i#kJEiU~k!j6SNl+Pi0{{T&86su( zfF6$dN6up+A1s(!$iFC!KMJHM@Q*|kfSwlSkHqNzk-8>-BuGN!y!(jQ;lteW=L<-9 z0055v5oiFw0ZwQk00K3P1vmi6XDnvw@NGKpGaGb(uM9mFWYakhc+NoAG5}VYO&J<6 zVGvO?MmP|31Vn*n*D($=4zhu8MhI328E--D5^Fg1JeWHw_nqicEqb6kpEWAfF$TMY z5J=IE$5+?^jK?tRe;>~O9L@jXK(_mBqW&3(<{zsdIa~nX1ArOO3G)~L9)jsGsD#xp zMumc5O_+}W2Jy;ZMBRy~@rW8xXsQu43Q@y|8b;I*q6QK5A9NuYQS%WsZyfnCm}TIO zMVX>Lme%M48s;ivOoXM=5+fM_tz)3_w;VF{aZ%&cpEoM8-@E8HpPX@21Knf;wXxb4 zkL^;uQs>FiP7%`kG4GwW(#3OFjG_vyvm3q?VSt=8|9>~c|98J`-}b-!ivDAhfEGW;56Nd3g}FZ1CQ&-HX6t`mXKdBY=XAz@^@>1=KyPE%3J z?ufqHGuO{o!;1r;Hg7`h4rTy=+_P#1j~&)DHwR!0diH-BZzf%ZLU8gVoiH5uf79TI zA7I1}O2iKs#1F`e4^ve=dbM#_EK_AJ}(=i~e5xBk5T2Nj{z=l}o! From b4513a1b4f8d671ce42829cee79a3b01ace1c4e9 Mon Sep 17 00:00:00 2001 From: Behemoth Date: Wed, 5 Aug 2020 17:34:18 +0200 Subject: [PATCH 078/158] add some entity functions --- asm/code_0805E744.s | 154 +------------------------------------------- linker.ld | 3 +- src/entity.c | 130 +++++++++++++++++++++++++++++++++++++ 3 files changed, 133 insertions(+), 154 deletions(-) create mode 100644 src/entity.c diff --git a/asm/code_0805E744.s b/asm/code_0805E744.s index c57c1fd1..ae443c87 100644 --- a/asm/code_0805E744.s +++ b/asm/code_0805E744.s @@ -5,158 +5,6 @@ .text - thumb_func_start sub_0805E744 -sub_0805E744: @ 0x0805E744 - push {lr} - ldr r1, _0805E760 @ =gUnk_030011E8 - movs r0, #0xee - lsls r0, r0, #2 - adds r2, r1, r0 -_0805E74E: - ldr r0, [r1] - cmp r0, #0 - beq _0805E764 - adds r1, #0x88 - cmp r1, r2 - blo _0805E74E - movs r0, #0 - b _0805E766 - .align 2, 0 -_0805E760: .4byte gUnk_030011E8 -_0805E764: - adds r0, r1, #0 -_0805E766: - pop {pc} - - thumb_func_start sub_0805E768 -sub_0805E768: @ 0x0805E768 - push {lr} - ldr r1, _0805E778 @ =GetEmptyEntity - cmp r0, #9 - bne _0805E772 - ldr r1, _0805E77C @ =sub_0805E8D4 -_0805E772: - bl _call_via_r1 - pop {pc} - .align 2, 0 -_0805E778: .4byte GetEmptyEntity -_0805E77C: .4byte sub_0805E8D4 - - thumb_func_start DeleteThisEntity -DeleteThisEntity: @ 0x0805E780 - push {lr} - ldr r0, _0805E794 @ =gUnk_03003DD0 - ldr r0, [r0, #8] - bl sub_0805E79C - ldr r0, _0805E798 @ =gUnk_03005F24 - bl _call_via_r0 - pop {pc} - .align 2, 0 -_0805E794: .4byte gUnk_03003DD0 -_0805E798: .4byte gUnk_03005F24 - - thumb_func_start sub_0805E79C -sub_0805E79C: @ 0x0805E79C - push {lr} - adds r1, r0, #0 - ldrb r0, [r1, #8] - ldr r2, _0805E7B4 @ =DeleteEntity - cmp r0, #9 - bne _0805E7AA - ldr r2, _0805E7B8 @ =sub_0805E900 -_0805E7AA: - adds r0, r1, #0 - bl _call_via_r2 - pop {pc} - .align 2, 0 -_0805E7B4: .4byte DeleteEntity -_0805E7B8: .4byte sub_0805E900 - - thumb_func_start DeleteEntity -DeleteEntity: @ 0x0805E7BC - push {r4, r5, lr} - adds r4, r0, #0 - ldr r0, [r4, #4] - cmp r0, #0 - beq _0805E84A - adds r0, r4, #0 - bl sub_080AE068 - adds r0, r4, #0 - bl sub_0801D230 - adds r0, r4, #0 - bl sub_0806FE84 - adds r0, r4, #0 - bl sub_080788E0 - adds r0, r4, #0 - bl sub_08078954 - adds r0, r4, #0 - bl sub_0805EC60 - adds r0, r4, #0 - bl sub_08017744 - adds r0, r4, #0 - bl sub_0805E92C - adds r0, r4, #0 - bl sub_0807DB08 - adds r0, r4, #0 - bl sub_0806FBEC - ldr r0, [r4, #0x64] - bl sub_0801DA0C - movs r5, #0 - str r5, [r4, #0x64] - ldrb r0, [r4, #8] - cmp r0, #3 - bne _0805E818 - adds r0, r4, #0 - bl sub_0804AA1C -_0805E818: - ldrb r1, [r4, #0x10] - movs r0, #0x7f - ands r0, r1 - strb r0, [r4, #0x10] - ldrb r1, [r4, #0x18] - movs r0, #4 - rsbs r0, r0, #0 - ands r0, r1 - strb r0, [r4, #0x18] - adds r0, r4, #0 - adds r0, #0x3c - strb r5, [r0] - adds r0, #5 - strb r5, [r0] - adds r0, #1 - strb r5, [r0] - adds r0, #3 - strb r5, [r0] - adds r0, r4, #0 - bl sub_0805EA98 - str r5, [r4, #4] - movs r0, #1 - rsbs r0, r0, #0 - str r0, [r4] -_0805E84A: - pop {r4, r5, pc} - - thumb_func_start sub_0805E84C -sub_0805E84C: @ 0x0805E84C - push {r4, r5, lr} - ldr r4, _0805E86C @ =gLinkEntity - movs r0, #0xaa - lsls r0, r0, #6 - adds r5, r4, r0 -_0805E856: - ldr r0, [r4] - cmp r0, #0 - bge _0805E862 - adds r0, r4, #0 - bl sub_0805E870 -_0805E862: - adds r4, #0x88 - cmp r4, r5 - blo _0805E856 - pop {r4, r5, pc} - .align 2, 0 -_0805E86C: .4byte gLinkEntity - thumb_func_start sub_0805E870 sub_0805E870: @ 0x0805E870 sub sp, #4 @@ -2934,4 +2782,4 @@ _0805FD1C: bl DeleteThisEntity _0805FD20: pop {r4, r5, pc} - .align 2, 0 + .align 2, 0 \ No newline at end of file diff --git a/linker.ld b/linker.ld index 8720510b..6758bc9c 100644 --- a/linker.ld +++ b/linker.ld @@ -530,7 +530,8 @@ SECTIONS { src/sub_0805E3A0.o(.text); asm/code_0805E3B0.o(.text); asm/getEmptyEntity.o(.text); - asm/code_0805E744.o(.text); + src/entity.o(.text); + asm/code_0805E84C.o(.text); /* npcs */ src/npc/gentari.o(.text); src/npc/festari.o(.text); diff --git a/src/entity.c b/src/entity.c new file mode 100644 index 00000000..6030b7ac --- /dev/null +++ b/src/entity.c @@ -0,0 +1,130 @@ +#include "global.h" +#include "entity.h" + +extern Entity gUnk_030011E8[7]; + +Entity* sub_0805E744(void) + +{ + Entity* pEVar1 = gUnk_030011E8; + int i = 0; + + do { + if (pEVar1->field_0x0 == NULL) { + return pEVar1; + } + pEVar1 = pEVar1 + 1; + } while (pEVar1 < &gUnk_030011E8[7]); + return NULL; +} + +extern Entity* GetEmptyEntity(); +extern Entity* sub_0805E8D4(); + +Entity* sub_0805E768(int type) + +{ + Entity* (*getter)(void) = NULL; + if (type == 9) { + getter = sub_0805E8D4; + } else { + getter = GetEmptyEntity; + } + return getter(); +} +typedef struct { + int field_0x0; + int field_0x4; + Entity* field_0x8; + int field_0xc; +} struct_03003DD0; + +extern struct_03003DD0 gUnk_03003DD0; +extern u32 _call_via_r0(u32*); +extern void gUnk_03005F24(); +extern void sub_0805E79C(Entity*); + +void DeleteThisEntity(void) + +{ + sub_0805E79C(gUnk_03003DD0.field_0x8); + _call_via_r0((u32*)&gUnk_03005F24); + return; +} + +extern void DeleteEntity(Entity*); +extern void sub_0805E900(Entity*); + +void sub_0805E79C(Entity* ent) + +{ + void (*deleter)(Entity*) = NULL; + if (ent->entityType.type == 9) { + deleter = sub_0805E900; + } else { + deleter = DeleteEntity; + } + deleter(ent); +} + +extern void sub_080AE068(); +extern void sub_0801D230(); +extern void sub_0806FE84(); +extern void sub_080788E0(); +extern void sub_08078954(); +extern void sub_0805EC60(); +extern void sub_08017744(); +extern void sub_0805E92C(); +extern void sub_0807DB08(); +extern void sub_0806FBEC(); +extern void sub_0801DA0C(); +extern void sub_0804AA1C(); +extern void sub_0805EA98(); // Unlink + +void DeleteEntity(Entity* ent) + +{ + if (ent->field_0x4) { + sub_080AE068(ent); + sub_0801D230(ent); + sub_0806FE84(ent); + sub_080788E0(ent); + sub_08078954(ent); + sub_0805EC60(ent); + sub_08017744(ent); + sub_0805E92C(ent); + sub_0807DB08(ent); + sub_0806FBEC(ent); + sub_0801DA0C(ent->otherEntity); + ent->otherEntity = NULL; + if ((ent->entityType).type == '\x03') { + sub_0804AA1C(ent); + } + ent->flags = ent->flags & 0x7f; + ent->spriteSettings = ent->spriteSettings; + ent->spriteSettings.b.draw = 0; + ent->field_0x3c = 0; + ent->bitfield = 0; + ent->field_0x42 = 0; + ent->currentHealth = 0; + sub_0805EA98(ent); + ent->field_0x4 = NULL; + ent->field_0x0 = (u32*)0xffffffff; + } +} + +extern Entity gLinkEntity; +void sub_0805E870(Entity*); + +void sub_0805E84C(void) + +{ + Entity* pEVar1 = &gLinkEntity; + do { + if ((int)pEVar1->field_0x0 < 0) { + sub_0805E870(pEVar1); + } + pEVar1 = pEVar1 + 1; + } while (pEVar1 < (&gLinkEntity + 80)); + return; +} From 1cbdcf5a36f09f569e2a0925e050d1a065ff58a9 Mon Sep 17 00:00:00 2001 From: Marcus Huderle Date: Wed, 5 Aug 2020 17:46:53 -0500 Subject: [PATCH 079/158] Finish decompiling object49.c --- asm/object49.s | 377 ------------------------------------ include/functions.h | 4 +- include/structures.h | 4 +- linker.ld | 1 - src/enemy/lakitu.c | 8 +- src/enemy/miniFireballGuy.c | 8 +- src/npc/postman.c | 2 +- src/npc/zelda.c | 3 +- src/object/object49.c | 167 ++++++++++++++-- 9 files changed, 165 insertions(+), 409 deletions(-) delete mode 100644 asm/object49.s diff --git a/asm/object49.s b/asm/object49.s deleted file mode 100644 index 968070dd..00000000 --- a/asm/object49.s +++ /dev/null @@ -1,377 +0,0 @@ - .include "asm/macros.inc" - - .include "constants/constants.inc" - - .syntax unified - - .text - - thumb_func_start sub_0808F370 -sub_0808F370: @ 0x0808F370 - push {r4, lr} - adds r4, r0, #0 - ldrb r1, [r4, #0xc] - cmp r1, #0 - bne _0808F388 - ldr r0, [r4, #0x50] - ldrb r0, [r0, #0xd] - cmp r0, #1 - bne _0808F3DA - strb r0, [r4, #0xc] - str r1, [r4, #0x70] - b _0808F3CC -_0808F388: - ldr r0, [r4, #0x50] - ldrb r0, [r0, #0xd] - subs r0, #1 - lsls r0, r0, #0x18 - lsrs r0, r0, #0x18 - cmp r0, #4 - bhi _0808F3D4 - ldr r0, [r4, #0x70] - cmp r0, #0 - bne _0808F3C4 - ldr r0, [r4, #0x74] - subs r0, #1 - str r0, [r4, #0x74] - movs r1, #1 - rsbs r1, r1, #0 - cmp r0, r1 - bne _0808F3DA - bl Random - ldr r2, _0808F3C0 @ =gUnk_08121EA0 - movs r1, #1 - ands r1, r0 - lsls r1, r1, #1 - adds r1, r1, r2 - ldrh r0, [r1] - str r0, [r4, #0x70] - b _0808F3DA - .align 2, 0 -_0808F3C0: .4byte gUnk_08121EA0 -_0808F3C4: - subs r0, #1 - str r0, [r4, #0x70] - cmp r0, #0 - bne _0808F3DA -_0808F3CC: - adds r0, r4, #0 - bl sub_0808F5EC - b _0808F3DA -_0808F3D4: - movs r0, #0 - strb r0, [r4, #0xc] - str r0, [r4, #0x74] -_0808F3DA: - pop {r4, pc} - - thumb_func_start sub_0808F3DC -sub_0808F3DC: @ 0x0808F3DC - push {r4, lr} - adds r4, r0, #0 - ldrb r0, [r4, #0xc] - cmp r0, #0 - bne _0808F438 - ldrb r1, [r4, #0x18] - movs r0, #4 - rsbs r0, r0, #0 - ands r0, r1 - movs r1, #1 - orrs r0, r1 - strb r0, [r4, #0x18] - movs r0, #1 - strb r0, [r4, #0xc] - movs r0, #0x78 - strb r0, [r4, #0xe] - ldrb r1, [r4, #0xa] - adds r1, #1 - adds r0, r4, #0 - bl InitializeAnimation - ldrb r0, [r4, #0xa] - cmp r0, #8 - beq _0808F41A - cmp r0, #7 - bne _0808F42E - ldr r0, [r4, #0x54] - adds r1, r4, #0 - bl sub_0806FAD8 - b _0808F494 -_0808F41A: - ldr r0, [r4, #0x54] - adds r0, #0x3f - ldrb r0, [r0] - adds r1, r4, #0 - adds r1, #0x3f - strb r0, [r1] - ldr r0, [r4, #0x54] - adds r0, #0x3f - movs r1, #0x7e - strb r1, [r0] -_0808F42E: - ldr r0, [r4, #0x54] - adds r1, r4, #0 - bl ResolveEntityOnTop - b _0808F494 -_0808F438: - ldr r0, [r4, #0x50] - ldr r0, [r0, #0x74] - cmp r0, #0 - bne _0808F456 - ldrb r0, [r4, #0xa] - cmp r0, #8 - bne _0808F452 - ldr r0, [r4, #0x54] - adds r1, r4, #0 - adds r1, #0x3f - ldrb r1, [r1] - adds r0, #0x3f - strb r1, [r0] -_0808F452: - bl DeleteThisEntity -_0808F456: - ldrb r0, [r4, #0xa] - cmp r0, #5 - bne _0808F486 - adds r0, r4, #0 - adds r0, #0x5a - ldrb r1, [r0] - movs r0, #1 - ands r0, r1 - cmp r0, #0 - beq _0808F486 - ldr r0, [r4, #0x54] - movs r1, #0x49 - movs r2, #8 - movs r3, #0 - bl CreateObjectWithParent - adds r1, r0, #0 - cmp r1, #0 - beq _0808F486 - ldr r0, [r4, #0x50] - str r0, [r1, #0x50] - ldr r0, [r4, #0x50] - ldr r0, [r0, #0x50] - str r0, [r1, #0x54] -_0808F486: - adds r0, r4, #0 - bl GetNextFrame - ldr r0, [r4, #0x54] - adds r1, r4, #0 - bl CopyPositionAndSpriteOffset -_0808F494: - pop {r4, pc} - .align 2, 0 - - thumb_func_start sub_0808F498 -sub_0808F498: @ 0x0808F498 - push {r4, r5, r6, lr} - adds r5, r0, #0 - ldrb r0, [r5, #0xc] - cmp r0, #0 - beq _0808F4EC - adds r0, r5, #0 - bl sub_0806F3E4 - cmp r0, #0 - beq _0808F4C2 - ldr r0, _0808F4E4 @ =gScreenTransition - ldr r0, [r0] - movs r1, #0xf - ands r0, r1 - cmp r0, #0 - bne _0808F4BE - movs r0, #0xef - bl PlaySFX -_0808F4BE: - bl DeleteThisEntity -_0808F4C2: - ldrb r0, [r5, #0xe] - subs r0, #1 - strb r0, [r5, #0xe] - lsls r0, r0, #0x18 - lsrs r0, r0, #0x18 - cmp r0, #0xff - bne _0808F4D4 - bl DeleteThisEntity -_0808F4D4: - ldr r0, _0808F4E8 @ =gLinkState - ldrb r0, [r0, #0x1c] - cmp r0, #1 - beq _0808F550 - bl DeleteThisEntity - b _0808F550 - .align 2, 0 -_0808F4E4: .4byte gScreenTransition -_0808F4E8: .4byte gLinkState -_0808F4EC: - movs r0, #1 - strb r0, [r5, #0xc] - movs r0, #0x40 - strb r0, [r5, #0xe] - ldrb r0, [r5, #0xb] - movs r6, #0x2b - cmp r0, #0 - beq _0808F4FE - movs r6, #0x2c -_0808F4FE: - ldr r0, [r5, #0x50] - ldr r0, [r0, #0x48] - ldrb r1, [r0, #6] - ldrh r0, [r5, #0x2e] - subs r0, r0, r1 - strh r0, [r5, #0x2e] - bl Random - ldr r4, [r5, #0x50] - ldr r1, [r4, #0x48] - ldrb r1, [r1, #6] - lsls r1, r1, #1 - bl __modsi3 - ldrh r1, [r5, #0x2e] - adds r1, r1, r0 - strh r1, [r5, #0x2e] - ldr r0, [r4, #0x48] - ldrb r1, [r0, #7] - ldrh r0, [r5, #0x32] - subs r0, r0, r1 - strh r0, [r5, #0x32] - bl Random - ldr r1, [r5, #0x50] - ldr r1, [r1, #0x48] - ldrb r1, [r1, #7] - lsls r1, r1, #1 - bl __modsi3 - ldrh r1, [r5, #0x32] - adds r1, r1, r0 - strh r1, [r5, #0x32] - adds r0, r5, #0 - adds r1, r6, #0 - bl sub_0801D2B4 - adds r0, r5, #0 - movs r1, #4 - bl InitializeAnimation -_0808F550: - pop {r4, r5, r6, pc} - .align 2, 0 - - thumb_func_start sub_0808F554 -sub_0808F554: @ 0x0808F554 - push {r4, r5, lr} - adds r5, r0, #0 - ldr r0, [r5, #0x50] - adds r1, r5, #0 - bl CopyPositionAndSpriteOffset - adds r1, r5, #0 - adds r1, #0x63 - ldrb r0, [r1] - subs r0, #0x18 - strb r0, [r1] - ldr r0, [r5, #0x50] - adds r1, r0, #0 - adds r1, #0x62 - movs r0, #0 - ldrsb r0, [r1, r0] - cmp r0, #0 - beq _0808F588 - adds r2, r5, #0 - adds r2, #0x62 - lsrs r1, r0, #0x1f - adds r0, r0, r1 - asrs r0, r0, #1 - ldrb r1, [r2] - adds r0, r0, r1 - strb r0, [r2] -_0808F588: - ldrb r0, [r5, #0xc] - cmp r0, #0 - beq _0808F5AC - adds r1, r5, #0 - adds r1, #0x84 - ldr r0, [r1] - cmp r0, #0 - beq _0808F5A4 - subs r0, #1 - str r0, [r1] - cmp r0, #0 - bne _0808F5A4 - bl DeleteThisEntity -_0808F5A4: - adds r0, r5, #0 - bl GetNextFrame - b _0808F5E8 -_0808F5AC: - movs r0, #1 - strb r0, [r5, #0xc] - ldr r4, [r5, #0x50] - ldrb r2, [r4, #0x19] - lsrs r2, r2, #6 - lsls r2, r2, #6 - ldrb r3, [r5, #0x19] - movs r1, #0x3f - adds r0, r1, #0 - ands r0, r3 - orrs r0, r2 - strb r0, [r5, #0x19] - ldrb r0, [r4, #0x1b] - lsrs r0, r0, #6 - lsls r0, r0, #6 - ldrb r2, [r5, #0x1b] - ands r1, r2 - orrs r1, r0 - strb r1, [r5, #0x1b] - adds r2, r5, #0 - adds r2, #0x29 - ldrb r1, [r2] - movs r0, #8 - rsbs r0, r0, #0 - ands r0, r1 - strb r0, [r2] - adds r0, r5, #0 - movs r1, #3 - bl InitializeAnimation -_0808F5E8: - pop {r4, r5, pc} - .align 2, 0 - - thumb_func_start sub_0808F5EC -sub_0808F5EC: @ 0x0808F5EC - push {r4, lr} - adds r4, r0, #0 - ldr r0, [r4, #0x54] - movs r1, #0x49 - movs r2, #5 - movs r3, #0 - bl CreateObjectWithParent - adds r1, r0, #0 - cmp r1, #0 - beq _0808F608 - str r4, [r1, #0x50] - ldr r0, [r4, #0x54] - str r0, [r1, #0x54] -_0808F608: - ldr r0, [r4, #0x54] - movs r1, #0x49 - movs r2, #6 - movs r3, #0 - bl CreateObjectWithParent - adds r1, r0, #0 - cmp r1, #0 - beq _0808F620 - str r4, [r1, #0x50] - ldr r0, [r4, #0x54] - str r0, [r1, #0x54] -_0808F620: - ldr r0, [r4, #0x54] - movs r1, #0x49 - movs r2, #7 - movs r3, #0 - bl CreateObjectWithParent - adds r1, r0, #0 - cmp r1, #0 - beq _0808F638 - str r4, [r1, #0x50] - ldr r0, [r4, #0x54] - str r0, [r1, #0x54] -_0808F638: - movs r0, #0x96 - lsls r0, r0, #2 - str r0, [r4, #0x74] - pop {r4, pc} diff --git a/include/functions.h b/include/functions.h index acf20f1f..9796376b 100644 --- a/include/functions.h +++ b/include/functions.h @@ -57,7 +57,7 @@ extern void sub_080791D0(); extern void sub_0805EC9C(); extern void sub_0805EC60(); extern void sub_080873D0(); -extern void sub_080045D4(); +extern u8 sub_080045D4(s16, s16, u16, u16); extern void sub_0806F69C(); extern void sub_0805E3A0(Entity*, u32); extern void sub_0806D0B0(Entity*); @@ -191,7 +191,7 @@ extern void sub_0801E738(u32); extern void sub_080A70AC(void*); extern void sub_080A7114(u32); extern void sub_08001242(void); -extern void sub_08003FC4(Entity*, u32); +extern u32 sub_08003FC4(Entity*, u32); extern u8 sub_080043E8(Entity*); extern void sub_08001290(Entity*, u32); extern void sub_08004488(u32); diff --git a/include/structures.h b/include/structures.h index ff29f0da..69e6e65a 100644 --- a/include/structures.h +++ b/include/structures.h @@ -43,8 +43,8 @@ typedef struct { extern struct_02002A40 gUnk_02002A40; typedef struct { - u16 frameCount; // regular frame count? does anything reset it? - u8 field_0x2[6]; + u32 frameCount; // regular frame count? does anything reset it? + u8 field_0x4[0x4]; bool8 transitioningOut; u8 transitionType; // transition when changing areas u8 field_0xa; // seems to be a tile type diff --git a/linker.ld b/linker.ld index d0de7636..2b36cabf 100644 --- a/linker.ld +++ b/linker.ld @@ -748,7 +748,6 @@ SECTIONS { src/object/heartContainer.o(.text); src/object/object48.o(.text); src/object/object49.o(.text); - asm/object49.o(.text); asm/backgroundCloud.o(.text); asm/object4B.o(.text); asm/pushableFurniture.o(.text); diff --git a/src/enemy/lakitu.c b/src/enemy/lakitu.c index 146523f0..94dbd2f4 100644 --- a/src/enemy/lakitu.c +++ b/src/enemy/lakitu.c @@ -1,12 +1,12 @@ #include "global.h" #include "entity.h" +#include "functions.h" #include "trig.h" #include "random.h" #include "link.h" // Lakitu extern void EnemyFunctionHandler(Entity *, void (*const funcs[])(Entity*)); -extern void SetChildOffset(Entity *, u32, u32, u32); // sub_0803C758 extern void sub_0803CAD0(Entity *); @@ -41,7 +41,6 @@ extern void sub_0803CB64(Entity *); extern void sub_0803CB34(Entity *); // sub_0803CA0C -extern u32 sub_08003FC4(Entity *, u32); extern void sub_0803CC08(Entity *this); // sub_0803CA4C @@ -51,12 +50,7 @@ extern u32 sub_080041A0(Entity *, Entity *, u32, u32); // sub_0803CA84 extern u32 GetFacingDirection(Entity *, Entity *); -// sub_0803CAD0 -extern u8 sub_080045D4(s16, s16, u16, u16); -extern void sub_080AEFE0(Entity *); - // sub_0803CB64 -extern void PositionRelative(Entity *, Entity *, u32, u32); extern void sub_08004488(u32); typedef struct { diff --git a/src/enemy/miniFireballGuy.c b/src/enemy/miniFireballGuy.c index 820381c4..a4c169d7 100644 --- a/src/enemy/miniFireballGuy.c +++ b/src/enemy/miniFireballGuy.c @@ -1,13 +1,11 @@ #include "global.h" #include "entity.h" +#include "functions.h" extern void EnemyFunctionHandler(Entity*, void (*const func[])(Entity*)); -extern void sub_0804AA30(Entity*, void (*const func[][])(Entity*)); extern void sub_0804A7D4(Entity*); extern void sub_0804A720(Entity*); extern void sub_08045678(Entity*); -extern void sub_080AEFE0(void); -extern u32 sub_08003FC4(Entity*, u32); extern void sub_08045678(Entity*); extern void (*const gUnk_080D1868[])(Entity*); @@ -25,7 +23,7 @@ void sub_080455BC(Entity *this) void sub_080455D4(Entity *this) { - sub_0804AA30(this, &gUnk_080D1868); + sub_0804AA30(this, gUnk_080D1868); } void sub_080455E4(Entity *this) @@ -53,7 +51,7 @@ void sub_08045618(Entity *this) void sub_08045654(Entity *this) { - sub_080AEFE0(); + sub_080AEFE0(this); GetNextFrame(this); if (sub_08003FC4(this, 0x1800) == 0) { sub_08045678(this); diff --git a/src/npc/postman.c b/src/npc/postman.c index 6df8f21b..d920cba8 100644 --- a/src/npc/postman.c +++ b/src/npc/postman.c @@ -1,5 +1,6 @@ #include "global.h" #include "entity.h" +#include "functions.h" #include "npc.h" #include "textbox.h" #include "link.h" @@ -28,7 +29,6 @@ extern void sub_080606D8(Entity*); extern void sub_0807DD94(Entity*, u32); extern void sub_080788E0(Entity*); extern void sub_08004488(u32); -extern void sub_08003FC4(Entity*, u32); extern void sub_080606C0(Entity*); extern void sub_0800451C(Entity*); extern void sub_08078784(Entity*, u32); diff --git a/src/npc/zelda.c b/src/npc/zelda.c index 087e8fe8..43a8e36f 100644 --- a/src/npc/zelda.c +++ b/src/npc/zelda.c @@ -1,5 +1,6 @@ #include "global.h" #include "entity.h" +#include "functions.h" #include "room.h" #include "flags.h" @@ -16,10 +17,8 @@ void DeleteThisEntity(void); extern Entity* GetEntityByType(u32, u32); extern void sub_080686C4(Entity*, Entity*); extern void sub_0806F62C(Entity*, u32, u32); -extern u32 sub_08003FC4(Entity*, u32); extern void PlaySFX(u32); extern void SetTileType(u32, u32, u32); -extern void sub_0807BA8C(u16, u32); extern Entity gLinkEntity; extern RoomControls gRoomControls; diff --git a/src/object/object49.c b/src/object/object49.c index a586e520..925e47ea 100644 --- a/src/object/object49.c +++ b/src/object/object49.c @@ -1,19 +1,22 @@ #include "global.h" #include "entity.h" +#include "functions.h" +#include "position.h" +#include "random.h" +#include "structures.h" + +static void sub_0808F2B0(Entity*); +static void sub_0808F14C(Entity*); +static void sub_0808F244(Entity*); -extern u32 Random(void); -extern void sub_0808F2B0(Entity*); -extern u32 sub_08003FC4(Entity*, u32); -void sub_0808F14C(Entity*); -extern void PlaySFX(u32); extern void sub_0806FCF4(Entity*, u32, u32, u32); -extern void sub_0808F244(Entity*); -extern void sub_0805EC9C(Entity*, u32, u32, u32); +extern void sub_0808F5EC(Entity*); +extern bool32 sub_0806F3E4(Entity *); extern void (*const gUnk_08121E5C[])(Entity*); extern void (*const gUnk_08121E88[])(Entity*); extern void (*const gUnk_08121E98[])(Entity*); - +extern const u16 gUnk_08121EA0[]; void Object49(Entity* this) { gUnk_08121E5C[this->entityType.form](this); @@ -52,7 +55,7 @@ void sub_0808F0D0(Entity* this) { sub_0808F14C(this); } -void sub_0808F14C(Entity* this) { +static void sub_0808F14C(Entity* this) { sub_0808F2B0(this); if (sub_08003FC4(this, 0x2000) == 0) { this->action++; @@ -103,7 +106,7 @@ void sub_0808F1F8(Entity *this) sub_0808F244(this); } -void sub_0808F244(Entity *this) +static void sub_0808F244(Entity *this) { this->spriteSettings.b.draw = this->parent->spriteSettings.b.draw; @@ -119,7 +122,7 @@ void sub_0808F244(Entity *this) } } -void sub_0808F2B0(Entity *this) +static void sub_0808F2B0(Entity *this) { sub_0805EC9C(this, *(u32 *)&this->field_0x74, *(u32 *)&this->field_0x78, this->field_0x70.WORD); } @@ -152,4 +155,144 @@ void sub_0808F2C0(Entity *this) if (this->action == 0xff) { DeleteThisEntity(); } -} \ No newline at end of file +} + +void sub_0808F370(Entity* this) { + if (this->action == 0) { + if (this->parent->previousActionFlag == 1) { + this->action = 1; + this->field_0x70.WORD = 0; + sub_0808F5EC(this); + } + } else { + u8 flag = this->parent->previousActionFlag - 1; + if (flag < 5) { + if (this->field_0x70.WORD == 0) { + if (--(*(u32 *)&this->field_0x74) == -1) { + this->field_0x70.WORD = gUnk_08121EA0[Random() & 1]; + } + } else { + if (--this->field_0x70.WORD == 0) { + sub_0808F5EC(this); + } + } + } else { + this->action = 0; + *(u32 *)&this->field_0x74 = 0; + } + } +} + +void sub_0808F3DC(Entity* this) { + if (this->action == 0) { + this->spriteSettings.b.draw = 1; + this->action = 1; + this->actionDelay = 120; + InitializeAnimation(this, this->entityType.form + 1); + // TODO: This block of code might supposed to be a switch statement. + if (this->entityType.form != 8) { + if (this->entityType.form == 7) { + sub_0806FAD8(this->attachedEntity, this); + return; + } + } else { + this->damageType = this->attachedEntity->damageType; + this->attachedEntity->damageType = 0x7E; + } + ResolveEntityOnTop(this->attachedEntity, this); + } else { + if (*(u32 *)&this->parent->field_0x74 == 0) { + if (this->entityType.form == 8) { + this->attachedEntity->damageType = this->damageType; + } + DeleteThisEntity(); + } + + if (this->entityType.form == 5 && this->frames.b.f0) { + Entity* entity = CreateObjectWithParent(this->attachedEntity, 0x49, 8, 0); + if (entity) { + entity->parent = this->parent; + entity->attachedEntity = this->parent->parent; + } + } + + GetNextFrame(this); + CopyPositionAndSpriteOffset(this->attachedEntity, this); + } +} + +void sub_0808F498(Entity* this) { + u32 var0; + + if (this->action != 0) { + if (sub_0806F3E4(this)) { + if (gScreenTransition.frameCount % 16 == 0) { + PlaySFX(0xEF); + } + DeleteThisEntity(); + } + + if (--this->actionDelay == 0xFF) { + DeleteThisEntity(); + } + + if (gLinkState.field_0x1c != 1) { + DeleteThisEntity(); + } + } else { + this->action = 1; + this->actionDelay = 64; + var0 = this->entityType.parameter != 0 ? 44 : 43; + this->x.HALF.HI -= this->parent->boundingBox->field_0x6; + this->x.HALF.HI += (s32)Random() % (this->parent->boundingBox->field_0x6 * 2); + this->y.HALF.HI -= this->parent->boundingBox->field_0x7; + this->y.HALF.HI += (s32)Random() % (this->parent->boundingBox->field_0x7 * 2); + sub_0801D2B4(this, var0); + InitializeAnimation(this, 4); + } +} + +void sub_0808F554(Entity* this) { + CopyPositionAndSpriteOffset(this->parent, this); + this->spriteOffsetY -= 24; + if ((s8)this->parent->spriteOffsetX != 0) { + this->spriteOffsetX += (s8)this->parent->spriteOffsetX / 2; + } + + if (this->action != 0) { + if (*(u32 *)&this->cutsceneBeh) { + if (--(*(u32 *)&this->cutsceneBeh) == 0) { + DeleteThisEntity(); + } + } + GetNextFrame(this); + } else { + this->action = 1; + this->spriteRendering.b3 = this->parent->spriteRendering.b3; + this->spriteOrientation.flipY = this->parent->spriteOrientation.flipY; + this->spritePriority.b0 = 0; + InitializeAnimation(this, 3); + } +} + +void sub_0808F5EC(Entity* this) { + Entity* entity = CreateObjectWithParent(this->attachedEntity, 0x49, 5, 0); + if (entity) { + entity->parent = this; + entity->attachedEntity = this->attachedEntity; + } + + entity = CreateObjectWithParent(this->attachedEntity, 0x49, 6, 0); + if (entity) { + entity->parent = this; + entity->attachedEntity = this->attachedEntity; + } + + entity = CreateObjectWithParent(this->attachedEntity, 0x49, 7, 0); + if (entity) { + entity->parent = this; + entity->attachedEntity = this->attachedEntity; + } + + *(u32 *)&this->field_0x74 = 600; +} From acdc85a61dce2edcfcf19face76b3376976db42d Mon Sep 17 00:00:00 2001 From: Marcus Huderle Date: Wed, 5 Aug 2020 17:47:00 -0500 Subject: [PATCH 080/158] Match MainLoop() --- asm/non_matching/mainLoop.inc | 115 ---------------------------------- include/main.h | 43 ++++++------- include/structures.h | 8 +++ src/introSetTransition.c | 16 ++--- src/mainLoop.c | 109 ++++++++++---------------------- 5 files changed, 69 insertions(+), 222 deletions(-) delete mode 100644 asm/non_matching/mainLoop.inc diff --git a/asm/non_matching/mainLoop.inc b/asm/non_matching/mainLoop.inc deleted file mode 100644 index 24e3f299..00000000 --- a/asm/non_matching/mainLoop.inc +++ /dev/null @@ -1,115 +0,0 @@ - .include "asm/macros.inc" - .include "constants/constants.inc" - - .syntax unified - - .text - - push {r4, r5, r6, lr} - bl sub_08055F70 - bl sub_080A3204 - bl sub_0805616C - bl sub_0807CE90 - bl sub_080560B8 - bl sub_08056208 - ldr r1, _08055EEC @ =gUnk_02000010 - movs r0, #0xc1 - strb r0, [r1, #4] - bl sub_0804FFE4 - ldr r1, _08055EF0 @ =0x040000D4 - movs r0, #0xa0 - lsls r0, r0, #0x13 - str r0, [r1] - ldr r0, _08055EF4 @ =gUnk_020176A0 - str r0, [r1, #4] - ldr r0, _08055EF8 @ =0x84000080 - str r0, [r1, #8] - ldr r0, [r1, #8] - movs r0, #1 - bl sub_0804FF84 - bl sub_08056418 - bl sub_080ADD30 - ldr r1, _08055EFC @ =gRand - ldr r0, _08055F00 @ =0x01234567 - str r0, [r1] - ldr r4, _08055F04 @ =gUnk_03001000 - adds r0, r4, #0 - movs r1, #0x10 - bl _DmaZero - movs r0, #0 - bl sub_08056010 - adds r6, r4, #0 -_08055EC8: - bl ReadKeyInput - bl sub_08055FF4 - cmp r0, #0 - beq _08055ED8 - bl sub_080560A8 -_08055ED8: - ldrb r0, [r6, #1] - ldr r1, _08055F04 @ =gUnk_03001000 - cmp r0, #0 - beq _08055F08 - cmp r0, #1 - bne _08055F08 - bl sub_08056260 - b _08055F64 - .align 2, 0 -_08055EEC: .4byte gUnk_02000010 -_08055EF0: .4byte 0x040000D4 -_08055EF4: .4byte gUnk_020176A0 -_08055EF8: .4byte 0x84000080 -_08055EFC: .4byte gRand -_08055F00: .4byte 0x01234567 -_08055F04: .4byte gUnk_03001000 -_08055F08: - ldrb r0, [r1, #8] - cmp r0, #0 - beq _08055F22 - ldr r4, _08055F34 @ =gUnk_03001000 - movs r5, #0xff -_08055F12: - bl VBlankIntrWait - ldrb r0, [r4, #8] - subs r0, #1 - strb r0, [r4, #8] - ands r0, r5 - cmp r0, #0 - bne _08055F12 -_08055F22: - ldr r1, _08055F34 @ =gUnk_03001000 - ldrb r0, [r1, #9] - cmp r0, #0 - beq _08055F44 - subs r0, #1 - strb r0, [r1, #9] - ldrb r4, [r1, #0xa] - b _08055F3C - .align 2, 0 -_08055F34: .4byte gUnk_03001000 -_08055F38: - bl VBlankIntrWait -_08055F3C: - adds r0, r4, #0 - subs r4, #1 - cmp r0, #0 - bgt _08055F38 -_08055F44: - ldrh r0, [r6, #0xc] - adds r0, #1 - strh r0, [r6, #0xc] - ldr r1, _08055F6C @ =gUnk_08100CBC - ldrb r0, [r6, #2] - lsls r0, r0, #2 - adds r0, r0, r1 - ldr r0, [r0] - bl _call_via_r0 - bl sub_08056458 - bl sub_08050154 - bl sub_080A3480 -_08055F64: - bl sub_08016E78 - b _08055EC8 - .align 2, 0 -_08055F6C: .4byte gUnk_08100CBC - .syntax divided \ No newline at end of file diff --git a/include/main.h b/include/main.h index 4cceb41e..c98a1e9a 100644 --- a/include/main.h +++ b/include/main.h @@ -17,13 +17,16 @@ typedef struct { // 0x03001000 typedef struct { u8 interruptFlag; u8 field_0x1; + u8 loadType; u8 funcIndex; - u8 field_0x3; u8 transition; u8 field_0x5; u8 muteAudio; - u8 field_0x8; + u8 field_0x7; u8 countdown; + u8 field_0x9; + u8 field_0xa; + u16 ticks; } Main; typedef struct { @@ -43,27 +46,25 @@ extern UI gUnk_02032EC0; -extern s32 sub_08055F70(); -extern s32 sub_080A3204(s32); -extern s32 sub_0807CE90(s32); -extern s32 sub_080560B8(s32); -extern void sub_08056208(s32); -extern void sub_0804FFE4(); -extern s32 sub_08056418(); -extern void sub_080ADD30(s32); +extern void sub_08055F70(void); +extern void sub_080A3204(void); +extern void sub_0807CE90(void); +extern void sub_080560B8(void); +extern void sub_08056208(void); +extern void sub_0804FFE4(void); +extern void sub_08056418(void); +extern void sub_080ADD30(void); -extern s32 sub_08056010(s32); -extern s32 sub_08016E78(s32); -extern s32 ReadKeyInput(); -extern s32 sub_08055FF4(u8); -extern void sub_080560A8(); -extern s32 sub_08056260(); +extern void sub_08056010(u32); +extern void sub_08016E78(void); +extern void ReadKeyInput(void); +extern u32 sub_08055FF4(void); +extern void sub_080560A8(void); +extern void sub_08056260(void); extern void VBlankIntrWait(); extern s32 _call_via_r0(s32); -extern s32 sub_08056458(s32); -extern s32 sub_08050154(s32); -extern s32 sub_080A3480(s32); +extern void sub_08056458(void); +extern void sub_08050154(void); +extern void sub_080A3480(void); -extern s32 gRand; -extern s32 gUnk_08100CBC; #endif \ No newline at end of file diff --git a/include/structures.h b/include/structures.h index 69e6e65a..f3ca87d5 100644 --- a/include/structures.h +++ b/include/structures.h @@ -25,6 +25,14 @@ typedef struct { #define gUnk_02000000 ((struct_02000000*)(0x2000000)) //extern struct_02000000 gUnk_02000000; +typedef struct { + u8 filler0[0x4]; + u8 field_0x4; + u8 field_0x5; +} struct_02000010; + +extern struct_02000010 gUnk_02000010; + typedef struct { /*0x000*/ u8 filler0[0x6]; /*0x006*/ u8 unk6; diff --git a/src/introSetTransition.c b/src/introSetTransition.c index 33f0e62c..ea42ecd9 100644 --- a/src/introSetTransition.c +++ b/src/introSetTransition.c @@ -18,17 +18,10 @@ typedef struct { extern struct_03000FD0 gUnk_03000FD0; -typedef struct { - u8 filler[5]; - u8 field_0x5; -} struct_02000010; - -extern struct_02000010 gUnk_02000010; - u32 IntroSetTransition(u32 transition) { gUnk_02032EC0.transitionType = transition; - gUnk_03001000.field_0x3 = 2; + gUnk_03001000.funcIndex = 2; _DmaZero((u32 *)&gMenu, 48); DoFade(7, 8); } @@ -36,7 +29,7 @@ u32 IntroSetTransition(u32 transition) void sub_080AD380() { sub_080AD90C(); - switch (gUnk_03001000.field_0x3) { + switch (gUnk_03001000.funcIndex) { case 0: sub_08056418(); _DmaZero(&gUnk_02032EC0, 0x3b4); @@ -50,7 +43,7 @@ void sub_080AD380() return; } sub_0801DA90(1); - gUnk_03001000.field_0x3 = 1; + gUnk_03001000.funcIndex = 1; break; } sub_080AD918(); @@ -112,7 +105,8 @@ void sub_080AD474(void) gMenu.transitionTimer = 0x1e; gMenu.field_0x4 = 7; EraseAllEntities(); - sub_080ADD30(sub_0801CFA8(0)); + sub_0801CFA8(0); + sub_080ADD30(); gUnk_02024490 = 1; sub_0801D7EC(2); if (((struct_02000000*)0x2000000)->gameLanguage == 0) { diff --git a/src/mainLoop.c b/src/mainLoop.c index 4e07b882..0d04e5a8 100644 --- a/src/mainLoop.c +++ b/src/mainLoop.c @@ -1,58 +1,17 @@ #include "global.h" +#include "functions.h" #include "main.h" +#include "random.h" -#if 0 - -typedef struct { - u8 interruptFlag; - u8 field_0x1; - u8 loadType; - u8 funcIndex; - u8 transition; - u16 field_0x5; - u8 muteAudio; - u8 field_0x8; - u8 countdown; - u8 field_0xa; - u8 field_0xb; - u16 ticks; - u8 field_0xe; - u8 field_0xf; -} MainStruct; - -extern void sub_08055F70(void); -extern void sub_080A3204(void); -extern void sub_0805616C(void); -extern void sub_0807CE90(void); -extern void sub_080560B8(void); -extern void sub_08056208(void); -extern void sub_0804FFE4(void); extern void sub_0804FF84(u32); -extern void sub_08056418(void); -extern void sub_080ADD30(void); extern void _DmaZero(void*, u32); -extern void sub_08056010(u32); -extern void ReadKeyInput(); -extern u32 sub_08055FF4(); -extern void sub_080560A8(void); -extern void sub_08056458(void); -extern void sub_08050154(void); -extern void sub_080A3480(void); -extern void sub_08016E78(void); -extern void sub_08056260(void); -extern u8 gUnk_02000014; extern u32 gUnk_020176A0; -extern u32 gRand; -extern MainStruct gUnk_03001000; -extern void (*gUnk_08100CBC[])(); +extern const void (*gUnk_08100CBC[])(); extern void VBlankInterruptWait(void); void MainLoop(void) { - bool32 codeInputted; - u8 cVar1; - u32 uVar2; - MainStruct *s; + int var0; sub_08055F70(); sub_080A3204(); @@ -60,49 +19,49 @@ void MainLoop(void) { sub_0807CE90(); sub_080560B8(); sub_08056208(); - gUnk_02000014 = 193; + gUnk_02000010.field_0x4 = 193; sub_0804FFE4(); DmaSet(3, 0x5000000U, &gUnk_020176A0, 0x84000080U); sub_0804FF84(1); sub_08056418(); sub_080ADD30(); gRand = 0x1234567; - s = &gUnk_03001000; - _DmaZero(s, 16); + _DmaZero(&gUnk_03001000, 16); sub_08056010(0); while (1) { ReadKeyInput(); - codeInputted = sub_08055FF4(); - if (codeInputted) { + if (sub_08055FF4()) { sub_080560A8(); } - if ((s->field_0x1 != 0) || (s->field_0x1 == 1)) { - sub_08056260(); - } else if (s->field_0x8 != 0) { - while (--s->field_0x8) { - VBlankInterruptWait(); + + switch (gUnk_03001000.field_0x1) { + case 1: + sub_08056260(); + break; + case 0: + default: + if (gUnk_03001000.countdown != 0) { + do { + VBlankIntrWait(); + } while (--gUnk_03001000.countdown); } - } - if (s->countdown != 0) { - s->countdown--; - uVar2 = s->field_0xa; - while (uVar2 > 0) { - VBlankIntrWait(); - uVar2--; + + if (gUnk_03001000.field_0x9 != 0) { + gUnk_03001000.field_0x9--; + var0 = gUnk_03001000.field_0xa; + while (var0-- > 0) { + VBlankIntrWait(); + } } - } - s->ticks++; - gUnk_08100CBC[s->loadType](); - sub_08056458(); - sub_08050154(); - sub_080A3480(); + + gUnk_03001000.ticks++; + gUnk_08100CBC[gUnk_03001000.loadType](); + sub_08056458(); + sub_08050154(); + sub_080A3480(); + break; } + sub_08016E78(); -} - -#endif - -NAKED -void MainLoop(void) { - asm(".include \"asm/non_matching/mainLoop.inc\""); + } } From 946de7529d7496fa5c7a0d35caca425eb834386a Mon Sep 17 00:00:00 2001 From: Marcus Huderle Date: Wed, 5 Aug 2020 17:47:03 -0500 Subject: [PATCH 081/158] Dump Nintendo + Capcom intro screen graphics --- data/data_08121C58.s | 19 +++++++++++++++++-- graphics/intro/capcom.pal | 19 +++++++++++++++++++ graphics/intro/nintendo.pal | 19 +++++++++++++++++++ graphics/intro/nintendo_capcom.png | Bin 0 -> 1613 bytes graphics_file_rules.mk | 4 ++++ 5 files changed, 59 insertions(+), 2 deletions(-) create mode 100644 graphics/intro/capcom.pal create mode 100644 graphics/intro/nintendo.pal create mode 100644 graphics/intro/nintendo_capcom.png diff --git a/data/data_08121C58.s b/data/data_08121C58.s index 9c5f3788..a691f57a 100755 --- a/data/data_08121C58.s +++ b/data/data_08121C58.s @@ -19322,7 +19322,16 @@ gUnk_085BD440:: @ 085BD440 .incbin "baserom.gba", 0x5BD440, 0x00000E0 gUnk_085BD520:: @ 085BD520 - .incbin "baserom.gba", 0x5BD520, 0x00029D8 + .incbin "baserom.gba", 0x5BD520, 0x0000100 + +gUnk_085BD620:: @ 085BD620 + .incbin "graphics/intro/capcom.gbapal" + +gUnk_085BD640:: @ 085BD640 + .incbin "graphics/intro/nintendo.gbapal" + +gUnk_085BD660:: @ 085BD660 + .incbin "baserom.gba", 0x5BD660, 0x0002898 gUnk_085BFEF8:: @ 085BFEF8 .incbin "baserom.gba", 0x5BFEF8, 0x000002E @@ -22535,7 +22544,13 @@ gUnk_088C065C:: @ 088C065C .incbin "baserom.gba", 0x8C065C, 0x00002A4 gUnk_088C0900:: @ 088C0900 - .incbin "baserom.gba", 0x8C0900, 0x000598C + .incbin "baserom.gba", 0x8C0900, 0x0001980 + +gUnk_088C2280:: @ 088C2280 + .incbin "graphics/intro/nintendo_capcom.4bpp" + +gUnk_088C31E0:: @ 088C31E0 + .incbin "baserom.gba", 0x8C31E0, 0x00030AC gUnk_088C628C:: @ 088C628C .incbin "baserom.gba", 0x8C628C, 0x00003FC diff --git a/graphics/intro/capcom.pal b/graphics/intro/capcom.pal new file mode 100644 index 00000000..97dc7b18 --- /dev/null +++ b/graphics/intro/capcom.pal @@ -0,0 +1,19 @@ +JASC-PAL +0100 +16 +255 255 255 +41 0 238 +74 115 180 +98 131 123 +139 156 106 +205 164 24 +238 197 49 +255 230 0 +106 139 189 +164 172 197 +213 213 222 +0 0 0 +0 0 0 +0 0 0 +0 0 0 +0 0 0 diff --git a/graphics/intro/nintendo.pal b/graphics/intro/nintendo.pal new file mode 100644 index 00000000..32b3f094 --- /dev/null +++ b/graphics/intro/nintendo.pal @@ -0,0 +1,19 @@ +JASC-PAL +0100 +16 +255 255 255 +255 57 0 +255 98 8 +255 131 41 +255 156 74 +255 180 115 +255 205 156 +255 238 213 +255 255 255 +255 156 74 +255 180 115 +255 205 156 +255 238 213 +0 0 0 +0 0 0 +255 222 0 diff --git a/graphics/intro/nintendo_capcom.png b/graphics/intro/nintendo_capcom.png new file mode 100644 index 0000000000000000000000000000000000000000..15439c4c4a12da78cff2fb83baf656b083d205d2 GIT binary patch literal 1613 zcmV-T2D15yP)ZzjM<_6vySx_zLo*D99cfDZ!>yJi*LdWsV87N+vO_ZLrf4N7|IK4UUc~ z*Fk5`HMzNlnd`2*|0w?f_kHil#)Je0hn-2Z+LiZx_WjzomX)`EX{Giz|Mn9a9;J-P zo62hMv+Q>skoG~wF7Wj`YyKJcWO6S5pVj0O{fZx7TGm}GJmhyFC~|MA5ABM4qRRX; zW|8M@>E1U1M&r?0NcS0_Z#o_)7uH5A z2^*$eQ2;nZ*MUVOW})^ydA3Z)F@wI*AarF__5=Vdo8Y?u)e+pV!T?493TpzBz#9<; z0>C+886c7l09^CBWz+|2IlyBESdt{l%3cOrM_&WH41(QJXWYq-sjL89PqPYwAU-&N zXaRTtSN9!ty{iE2h5!&f&jH-I2A%}9-)QSJz}O~?4C7$*B($Gp*&CuJ0C<#k;e8g+o!n?C~gfV@UkX7&{6)~>4a1*7~P}w zPH@C1Vs~sgwMs;52m)zQDgdvxDWmzumz}W63||05^z1XhZWH?kzywl{$;Ie8(%$o9 zTE}J_j2=yV`Jn>L9&r|)BB`$-BDaH0Y_S4>WZ$QECEyJdpfL|a6IM-h1>h~Y3jjA8 zk<9>OY_f$EvV{cMkZ=|Z#50SqJ&s_z zN6HBcaCVF+Saw326ZF(slU~oXA-YX+>V?E%DD}{=3THSt zOlWZ!MIa9Kr}Hqhd97;zBUeku8|C!pfHhHIhhk0N&*HA6Gmlg zIT6{}*);%c?XmcP05sJEOFp292%EHb`T~G|;%zt_xIRdA){%+?rHR`Y`ApcUSj(x{ zmc#Wb0OAf&umD&@0Ub@`5Y1Du6nnN5VD zMbTFQ5b--O<{V(+FXsXE!Sg%=zQ49)ORYJ9zDarNO{HQj&kG_sjyG|>26`ML6K3Ne z$esibv$qhrbt)&sHeQho4nvYro1>?#$MFxezdn4>N?jTk6Dt)Y@zbX*JSKTTqE-GB z4mGvd8xv30?)iN1RpxhxuNzPNjFRk6RdA_Ns#tw<2=CYXLcnQ%P|oiTHvrtaD8;=X z6bDQTv+~R`2IXfsmHUFk!@!&B-Qfm+pHY@mO+v1KW|?GN0eIIJHXl>x-_*d*xR`K_ zo%rX4LKy%t0Gj6tASH5`ejDJnS2NrTxW+#5riEDnCKzy*JC|{*q_&a%%>cK*obo Date: Wed, 5 Aug 2020 17:47:06 -0500 Subject: [PATCH 082/158] Decompile some more of mainLoop.c --- asm/code_08050038.s | 8 ++-- asm/code_080526F8.s | 2 +- asm/code_08055FF4.s | 101 ------------------------------------------- asm/code_0805E744.s | 2 +- asm/code_0807CC3C.s | 2 +- asm/code_080A3480.s | 2 +- asm/sub_08055F70.s | 60 ------------------------- data/data_080B2A70.s | 2 + include/main.h | 17 +++++--- linker.ld | 1 - src/code_0804AA84.c | 19 +------- src/input.c | 21 ++++----- src/mainLoop.c | 79 ++++++++++++++++++++++++++++++--- src/sub_080AD834.c | 11 ++--- 14 files changed, 108 insertions(+), 219 deletions(-) delete mode 100644 asm/sub_08055F70.s diff --git a/asm/code_08050038.s b/asm/code_08050038.s index 3f48d62d..6a621a70 100644 --- a/asm/code_08050038.s +++ b/asm/code_08050038.s @@ -593,7 +593,7 @@ sub_0805060C: @ 0x0805060C cmp r0, #0 bne _0805061C movs r0, #2 - bl sub_08056010 + bl InitScreen _0805061C: pop {pc} .align 2, 0 @@ -3486,7 +3486,7 @@ sub_08051D2C: @ 0x08051D2C movs r1, #8 bl DoFade movs r0, #3 - bl sub_08056010 + bl InitScreen pop {pc} .align 2, 0 @@ -4270,12 +4270,12 @@ _080523AC: cmp r0, #0 bne _080523C8 movs r0, #2 - bl sub_08056010 + bl InitScreen b _080523CC .align 2, 0 _080523C4: .4byte gUnk_03000FD0 _080523C8: - bl sub_080560A8 + bl DoSoftReset _080523CC: pop {r4, pc} .align 2, 0 diff --git a/asm/code_080526F8.s b/asm/code_080526F8.s index 9e43fbd2..81b19e6a 100644 --- a/asm/code_080526F8.s +++ b/asm/code_080526F8.s @@ -2755,7 +2755,7 @@ sub_08053C60: @ 0x08053C60 ldr r0, _08053C80 @ =0x80100000 bl PlaySFX movs r0, #3 - bl sub_08056010 + bl InitScreen pop {pc} .align 2, 0 _08053C80: .4byte 0x80100000 diff --git a/asm/code_08055FF4.s b/asm/code_08055FF4.s index 2be77ac1..0ce62bc1 100644 --- a/asm/code_08055FF4.s +++ b/asm/code_08055FF4.s @@ -4,107 +4,6 @@ .syntax unified .text - - thumb_func_start sub_08055FF4 -sub_08055FF4: @ 0x08055FF4 - push {lr} - movs r2, #0 - ldr r0, _0805600C @ =gUnk_03000FF0 - ldrh r1, [r0] - movs r0, #0xf - ands r0, r1 - cmp r0, #0xf - bne _08056006 - movs r2, #1 -_08056006: - adds r0, r2, #0 - pop {pc} - .align 2, 0 -_0805600C: .4byte gUnk_03000FF0 - - thumb_func_start sub_08056010 -sub_08056010: @ 0x08056010 - ldr r1, _0805601C @ =gUnk_03001000 - movs r2, #0 - strb r0, [r1, #2] - strb r2, [r1, #3] - strb r2, [r1, #4] - bx lr - .align 2, 0 -_0805601C: .4byte gUnk_03001000 - - thumb_func_start sub_08056020 -sub_08056020: @ 0x08056020 - push {r4, lr} - ldr r2, _08056088 @ =0x04000208 - movs r1, #0 - strh r1, [r2] - ldr r0, _0805608C @ =0x04000200 - strh r1, [r0] - ldr r0, _08056090 @ =0x04000004 - strh r1, [r0] - ldr r0, _08056094 @ =0x04000202 - strh r1, [r0] - strh r1, [r2] - ldr r1, _08056098 @ =0x040000B0 - ldrh r2, [r1, #0xa] - ldr r4, _0805609C @ =0x0000C5FF - adds r0, r4, #0 - ands r0, r2 - strh r0, [r1, #0xa] - ldrh r2, [r1, #0xa] - ldr r3, _080560A0 @ =0x00007FFF - adds r0, r3, #0 - ands r0, r2 - strh r0, [r1, #0xa] - ldrh r0, [r1, #0xa] - adds r1, #0xc - ldrh r2, [r1, #0xa] - adds r0, r4, #0 - ands r0, r2 - strh r0, [r1, #0xa] - ldrh r2, [r1, #0xa] - adds r0, r3, #0 - ands r0, r2 - strh r0, [r1, #0xa] - ldrh r0, [r1, #0xa] - adds r1, #0xc - ldrh r2, [r1, #0xa] - adds r0, r4, #0 - ands r0, r2 - strh r0, [r1, #0xa] - ldrh r2, [r1, #0xa] - adds r0, r3, #0 - ands r0, r2 - strh r0, [r1, #0xa] - ldrh r0, [r1, #0xa] - ldr r0, _080560A4 @ =0x040000D4 - ldrh r1, [r0, #0xa] - ands r4, r1 - strh r4, [r0, #0xa] - ldrh r1, [r0, #0xa] - ands r3, r1 - strh r3, [r0, #0xa] - ldrh r0, [r0, #0xa] - pop {r4, pc} - .align 2, 0 -_08056088: .4byte 0x04000208 -_0805608C: .4byte 0x04000200 -_08056090: .4byte 0x04000004 -_08056094: .4byte 0x04000202 -_08056098: .4byte 0x040000B0 -_0805609C: .4byte 0x0000C5FF -_080560A0: .4byte 0x00007FFF -_080560A4: .4byte 0x040000D4 - - thumb_func_start sub_080560A8 -sub_080560A8: @ 0x080560A8 - push {lr} - bl sub_08056020 - movs r0, #0xde - bl SoftReset - pop {pc} - .align 2, 0 thumb_func_start sub_080560B8 sub_080560B8: @ 0x080560B8 diff --git a/asm/code_0805E744.s b/asm/code_0805E744.s index 5f06dd29..1e196837 100644 --- a/asm/code_0805E744.s +++ b/asm/code_0805E744.s @@ -2771,7 +2771,7 @@ _0805FBC0: .4byte gScreen sub_0805FBC4: @ 0x0805FBC4 push {lr} movs r0, #0 - bl sub_08056010 + bl InitScreen pop {pc} .align 2, 0 diff --git a/asm/code_0807CC3C.s b/asm/code_0807CC3C.s index 4ededc8c..61f52c24 100644 --- a/asm/code_0807CC3C.s +++ b/asm/code_0807CC3C.s @@ -6253,7 +6253,7 @@ _0807FB90: .4byte gLinkEntity sub_0807FB94: @ 0x0807FB94 push {lr} movs r0, #4 - bl sub_08056010 + bl InitScreen pop {pc} .align 2, 0 diff --git a/asm/code_080A3480.s b/asm/code_080A3480.s index 4b5ad21e..c629c34d 100644 --- a/asm/code_080A3480.s +++ b/asm/code_080A3480.s @@ -661,7 +661,7 @@ sub_080A3980: @ 0x080A3980 ldrb r0, [r0] cmp r0, #0 bne _080A398E - bl sub_080560A8 + bl DoSoftReset _080A398E: pop {pc} .align 2, 0 diff --git a/asm/sub_08055F70.s b/asm/sub_08055F70.s deleted file mode 100644 index 5cb4e821..00000000 --- a/asm/sub_08055F70.s +++ /dev/null @@ -1,60 +0,0 @@ - .include "asm/macros.inc" - .include "constants/constants.inc" - - .syntax unified - - .text - - thumb_func_start sub_08055F70 -sub_08055F70: @ 0x08055F70 - push {lr} - bl sub_08056020 - movs r0, #0xfe - bl RegisterRamReset - movs r1, #0xa0 - lsls r1, r1, #0x13 - ldr r2, _08055FC8 @ =0x00007FFF - adds r0, r2, #0 - strh r0, [r1] - ldr r1, _08055FCC @ =0x04000204 - ldr r2, _08055FD0 @ =0x00004014 - adds r0, r2, #0 - strh r0, [r1] - ldr r2, _08055FD4 @ =0x0003FFD0 - ldr r0, _08055FD8 @ =gUnk_02000030 - adds r1, r2, #0 - bl _DmaZero - ldr r0, _08055FDC @ =gUnk_080B2CD8 - ldr r3, _08055FE0 @ =sub_080B197C - subs r2, r0, r3 - cmp r2, #0 - beq _08055FAA - ldr r1, _08055FE4 @ =gUnk_030056F0 - adds r0, r3, #0 - bl sub_0801D66C -_08055FAA: - ldr r0, _08055FE8 @ =gUnk_080B2CD8 - ldr r3, _08055FEC @ =gUnk_080B2CD8 - subs r2, r0, r3 - cmp r2, #0 - beq _08055FBC - ldr r1, _08055FF0 @ =gUnk_02038560 - adds r0, r3, #0 - bl sub_0801D66C -_08055FBC: - movs r0, #0 - bl sub_0801DA90 - bl sub_08016B34 - pop {pc} - .align 2, 0 -_08055FC8: .4byte 0x00007FFF -_08055FCC: .4byte 0x04000204 -_08055FD0: .4byte 0x00004014 -_08055FD4: .4byte 0x0003FFD0 -_08055FD8: .4byte gUnk_02000030 -_08055FDC: .4byte gUnk_080B2CD8 -_08055FE0: .4byte sub_080B197C -_08055FE4: .4byte gUnk_030056F0 -_08055FE8: .4byte gUnk_080B2CD8 -_08055FEC: .4byte gUnk_080B2CD8 -_08055FF0: .4byte gUnk_02038560 diff --git a/data/data_080B2A70.s b/data/data_080B2A70.s index bee9d349..b90f8e8e 100644 --- a/data/data_080B2A70.s +++ b/data/data_080B2A70.s @@ -8,4 +8,6 @@ gUnk_080B2A70:: @ 080B2A70 .incbin "baserom.gba", 0x0B2A70, 0x0000268 gUnk_080B2CD8:: @ 080B2CD8 +gUnk_080B2CD8_2:: @ 080B2CD8 +gUnk_080B2CD8_3:: @ 080B2CD8 .incbin "baserom.gba", 0x0B2CD8, 0x0000010 \ No newline at end of file diff --git a/include/main.h b/include/main.h index c98a1e9a..4a58a344 100644 --- a/include/main.h +++ b/include/main.h @@ -14,10 +14,18 @@ typedef struct { // 0x03001000 u32 spritePriority; } MainStruct; +enum { + SCREEN_INTRO, + SCREEN_CHOOSE_FILE, + SCREEN_GAMEPLAY, + SCREEN_GAME_OVER, + SCREEN_CREDITS, +}; + typedef struct { u8 interruptFlag; u8 field_0x1; - u8 loadType; + u8 screen; u8 funcIndex; u8 transition; u8 field_0x5; @@ -45,8 +53,6 @@ extern Main gUnk_03001000; extern UI gUnk_02032EC0; - -extern void sub_08055F70(void); extern void sub_080A3204(void); extern void sub_0807CE90(void); extern void sub_080560B8(void); @@ -55,11 +61,10 @@ extern void sub_0804FFE4(void); extern void sub_08056418(void); extern void sub_080ADD30(void); -extern void sub_08056010(u32); +extern void InitScreen(u32); extern void sub_08016E78(void); extern void ReadKeyInput(void); -extern u32 sub_08055FF4(void); -extern void sub_080560A8(void); +extern void DoSoftReset(void); extern void sub_08056260(void); extern void VBlankIntrWait(); extern s32 _call_via_r0(s32); diff --git a/linker.ld b/linker.ld index 2b36cabf..07210c60 100644 --- a/linker.ld +++ b/linker.ld @@ -462,7 +462,6 @@ SECTIONS { src/sub_08055E08.o(.text); asm/sub_08055E24.o(.text); src/mainLoop.o(.text); - asm/sub_08055F70.o(.text); asm/code_08055FF4.o(.text); src/textbox.o(.text); asm/code_08056418.o(.text); diff --git a/src/code_0804AA84.c b/src/code_0804AA84.c index 5eddfc28..f861d4f0 100644 --- a/src/code_0804AA84.c +++ b/src/code_0804AA84.c @@ -1,26 +1,10 @@ #include "global.h" #include "entity.h" #include "area.h" +#include "main.h" #include "functions.h" #include "screen.h" -typedef struct { - u8 interruptFlag; - u8 field_0x1; - u8 loadType; - u8 funcIndex; - u8 transition; - u16 field_0x5; - u8 muteAudio; - u8 field_0x8; - u8 countdown; - u8 field_0xa; - u8 field_0xb; - u8 ticks; - u8 field_0xe; - u8 field_0xf; -} Main; - typedef struct { u8 filler [18]; u32 unk; @@ -32,7 +16,6 @@ extern void (*const gUnk_080D4120[])(); extern void (*const gUnk_080D412C[])(); -extern Main gUnk_03001000; extern struct_02018EB0 gUnk_02018EB0; extern u8 gUnk_03000FD0; diff --git a/src/input.c b/src/input.c index 438a6e6b..101a3ac6 100644 --- a/src/input.c +++ b/src/input.c @@ -2,26 +2,23 @@ #include "entity.h" #include "readKeyInput.h" -void StoreKeyInput(Input *pkeyInput, u32 ioKeyInput); +static void StoreKeyInput(Input*, u32); void ReadKeyInput(void) { - u32 reg = ~*(u16*)0x04000130 & 0x3FF; - Input* input = &gUnk_03000FF0; - StoreKeyInput(input, reg); + u32 keyInput = ~REG_KEYINPUT & KEYS_MASK; + StoreKeyInput(&gUnk_03000FF0, keyInput); } -void StoreKeyInput(Input *input, u32 ioKeyInput) +static void StoreKeyInput(Input *input, u32 keyInput) { - u32 difference; - u32 temp = input->heldKeys; - - difference = ioKeyInput & ~temp; + u32 heldKeys = input->heldKeys; + u32 difference = keyInput & ~heldKeys; input->newKeys = difference; - if (ioKeyInput == temp) { + if (keyInput == heldKeys) { if (--input->unk7 == 0) { input->unk7 = 4; - input->unk4 = ioKeyInput; + input->unk4 = keyInput; } else { input->unk4 = 0; @@ -31,5 +28,5 @@ void StoreKeyInput(Input *input, u32 ioKeyInput) input->unk7 = 0x14; input->unk4 = difference; } - input->heldKeys = ioKeyInput; + input->heldKeys = keyInput; } \ No newline at end of file diff --git a/src/mainLoop.c b/src/mainLoop.c index 0d04e5a8..f1c8df1c 100644 --- a/src/mainLoop.c +++ b/src/mainLoop.c @@ -2,13 +2,18 @@ #include "functions.h" #include "main.h" #include "random.h" +#include "readKeyInput.h" extern void sub_0804FF84(u32); -extern void _DmaZero(void*, u32); - extern u32 gUnk_020176A0; extern const void (*gUnk_08100CBC[])(); extern void VBlankInterruptWait(void); +extern void DisableInterruptsAndDMA(void); +extern void sub_0801D66C(void*, u8*, int); +extern void sub_08016B34(void); + +static void sub_08055F70(void); +static bool32 SoftResetKeysPressed(void); void MainLoop(void) { int var0; @@ -27,11 +32,11 @@ void MainLoop(void) { sub_080ADD30(); gRand = 0x1234567; _DmaZero(&gUnk_03001000, 16); - sub_08056010(0); + InitScreen(SCREEN_INTRO); while (1) { ReadKeyInput(); - if (sub_08055FF4()) { - sub_080560A8(); + if (SoftResetKeysPressed()) { + DoSoftReset(); } switch (gUnk_03001000.field_0x1) { @@ -55,7 +60,7 @@ void MainLoop(void) { } gUnk_03001000.ticks++; - gUnk_08100CBC[gUnk_03001000.loadType](); + gUnk_08100CBC[gUnk_03001000.screen](); sub_08056458(); sub_08050154(); sub_080A3480(); @@ -65,3 +70,65 @@ void MainLoop(void) { sub_08016E78(); } } + +// Interrupt handlers that are loaded into RAM. +extern u8 sub_080B197C[]; +extern u8 gUnk_030056F0[]; +extern u8 gUnk_02038560[]; +extern u8 gUnk_080B2CD8[]; +extern u8 gUnk_080B2CD8_2[]; +extern u8 gUnk_080B2CD8_3[]; +extern u8 gUnk_02000030[]; + +static void sub_08055F70(void) { + u32 size; + + DisableInterruptsAndDMA(); + RegisterRamReset(RESET_ALL & ~RESET_EWRAM); + *(vu16 *)BG_PLTT = 0x7FFF; + REG_WAITCNT = WAITCNT_PREFETCH_ENABLE | WAITCNT_WS0_S_1 | WAITCNT_WS0_N_3; + size = 0x3FFD0; + _DmaZero(gUnk_02000030, size); + size = (u32)gUnk_080B2CD8 - (u32)sub_080B197C; + if (size != 0) { + sub_0801D66C(sub_080B197C, gUnk_030056F0, size); + } + + size = (u32)gUnk_080B2CD8_2 - (u32)gUnk_080B2CD8_3; + if (size != 0) { + sub_0801D66C(gUnk_080B2CD8_3, gUnk_02038560, size); + } + + sub_0801DA90(0); + sub_08016B34(); +} + +#define SOFT_RESET_KEYS (A_BUTTON | B_BUTTON | SELECT_BUTTON | START_BUTTON) + +static bool32 SoftResetKeysPressed(void) { + return (gUnk_03000FF0.heldKeys & SOFT_RESET_KEYS) == SOFT_RESET_KEYS; +} + +void InitScreen(u32 screen) { + gUnk_03001000.screen = screen; + gUnk_03001000.funcIndex = 0; + gUnk_03001000.transition = 0; +} + +void DisableInterruptsAndDMA(void) { + REG_IME = 0; + REG_IE = 0; + REG_DISPSTAT = 0; + REG_IF = 0; + REG_IME = 0; + + DmaStop(0); + DmaStop(1); + DmaStop(2); + DmaStop(3); +} + +void DoSoftReset(void) { + DisableInterruptsAndDMA(); + SoftReset(RESET_ALL & ~(RESET_EWRAM | RESET_SIO_REGS)); +} diff --git a/src/sub_080AD834.c b/src/sub_080AD834.c index b7b01918..9b1dd87b 100644 --- a/src/sub_080AD834.c +++ b/src/sub_080AD834.c @@ -1,13 +1,10 @@ #include "global.h" +#include "main.h" -extern void sub_08056010(u32); extern u8 gUnk_03000FD0; -void sub_080AD834(void) - -{ - if (gUnk_03000FD0 == '\0') { - sub_08056010(1); +void sub_080AD834(void) { + if (gUnk_03000FD0 == 0) { + InitScreen(SCREEN_CHOOSE_FILE); } - return; } From 83e6edf470500c5b8cb6b14736b4d45bd79364bd Mon Sep 17 00:00:00 2001 From: theo3 Date: Wed, 5 Aug 2020 20:47:10 -0700 Subject: [PATCH 083/158] wisp.c OK --- asm/code_0807B9B8.s | 33 +- asm/code_0807CC3C.s | 32 -- asm/wisp.s | 335 ------------------ asm/zeldaFollower.s | 55 --- baserom.gba.pal | Bin 0 -> 100 bytes baserom.gba.spr | Bin 0 -> 3592 bytes graphics/gameover.pal | 19 + graphics/gameover.png | Bin 0 -> 904 bytes include/functions.h | 10 +- include/link.h | 9 +- linker.ld | 4 +- src/code_0807CC3C.c | 25 +- src/code_080808D8.c | 25 -- src/code_0808091C.c | 30 +- src/enemy/bombPeahat.c | 1 - src/enemy/wisp.c | 149 ++++++++ src/npc/zeldaFollower.c | 25 ++ src/room.c | 2 +- src/sub_0807C998.c | 19 +- tools/gbagfx/link.pal | 19 + .../minishmaker-license.txt | 0 21 files changed, 300 insertions(+), 492 deletions(-) delete mode 100644 asm/wisp.s create mode 100644 baserom.gba.pal create mode 100644 baserom.gba.spr create mode 100644 graphics/gameover.pal create mode 100644 graphics/gameover.png delete mode 100644 src/code_080808D8.c create mode 100644 src/enemy/wisp.c create mode 100644 src/npc/zeldaFollower.c create mode 100644 tools/gbagfx/link.pal rename minishmaker-license.txt => tools/minishmaker-license.txt (100%) diff --git a/asm/code_0807B9B8.s b/asm/code_0807B9B8.s index f0d37f9c..83800962 100644 --- a/asm/code_0807B9B8.s +++ b/asm/code_0807B9B8.s @@ -1994,35 +1994,4 @@ _0807C956: mov r8, r3 mov sb, r4 pop {r4, r5, r6, r7, pc} - .align 2, 0 - - thumb_func_start sub_0807C960 -sub_0807C960: @ 0x0807C960 - push {lr} - adds r2, r0, #0 - movs r0, #1 - rsbs r0, r0, #0 - cmp r1, r0 - beq _0807C994 - ldr r0, _0807C984 @ =0x7FFFFFFF - ands r0, r1 - ldr r1, _0807C988 @ =gUnk_08324AE4 - adds r1, r0, r1 - lsrs r0, r2, #0x18 - cmp r0, #6 - bne _0807C98C - adds r0, r1, #0 - adds r1, r2, #0 - bl LZ77UnCompVram - b _0807C994 - .align 2, 0 -_0807C984: .4byte 0x7FFFFFFF -_0807C988: .4byte gUnk_08324AE4 -_0807C98C: - adds r0, r1, #0 - adds r1, r2, #0 - bl LZ77UnCompWram -_0807C994: - pop {pc} - .align 2, 0 - \ No newline at end of file + .align 2, 0 \ No newline at end of file diff --git a/asm/code_0807CC3C.s b/asm/code_0807CC3C.s index 4ededc8c..87939789 100644 --- a/asm/code_0807CC3C.s +++ b/asm/code_0807CC3C.s @@ -5,38 +5,6 @@ .text - thumb_func_start sub_0807CF48 -sub_0807CF48: @ 0x0807CF48 - push {r4, r5, lr} - bl sub_0807D1C4 - adds r4, r0, #0 - ldrh r0, [r4, #4] - ldr r5, _0807CF64 @ =gUnk_0811E4AC - adds r1, r5, #0 - bl sub_0807D184 - ldrh r0, [r4, #2] - adds r1, r5, #0 - bl sub_0807D184 - pop {r4, r5, pc} - .align 2, 0 -_0807CF64: .4byte gUnk_0811E4AC - - thumb_func_start sub_0807CF68 -sub_0807CF68: @ 0x0807CF68 - push {r4, r5, lr} - bl sub_0807D1C4 - adds r4, r0, #0 - ldr r5, _0807CF84 @ =gUnk_0811E4A4 - ldrh r0, [r4, #4] - adds r1, r5, #0 - bl sub_0807D184 - ldrh r0, [r4, #2] - adds r1, r5, #0 - bl sub_0807D184 - pop {r4, r5, pc} - .align 2, 0 -_0807CF84: .4byte gUnk_0811E4A4 - thumb_func_start sub_0807CF88 sub_0807CF88: @ 0x0807CF88 push {r4, r5, r6, r7, lr} diff --git a/asm/wisp.s b/asm/wisp.s deleted file mode 100644 index ac62efac..00000000 --- a/asm/wisp.s +++ /dev/null @@ -1,335 +0,0 @@ - .include "asm/macros.inc" - - .include "constants/constants.inc" - - .syntax unified - - .text - - - thumb_func_start Wisp -Wisp: @ 0x0803353C - push {lr} - ldr r1, _08033548 @ =gUnk_080CEB74 - bl EnemyFunctionHandler - pop {pc} - .align 2, 0 -_08033548: .4byte gUnk_080CEB74 - - thumb_func_start sub_0803354C -sub_0803354C: @ 0x0803354C - push {lr} - ldr r2, _08033560 @ =gUnk_080CEB8C - ldrb r1, [r0, #0xc] - lsls r1, r1, #2 - adds r1, r1, r2 - ldr r1, [r1] - bl _call_via_r1 - pop {pc} - .align 2, 0 -_08033560: .4byte gUnk_080CEB8C - - thumb_func_start sub_08033564 -sub_08033564: @ 0x08033564 - push {r4, lr} - adds r4, r0, #0 - adds r0, #0x41 - ldrb r1, [r0] - movs r0, #0x80 - ands r0, r1 - cmp r0, #0 - beq _08033628 - movs r0, #0x3f - ands r0, r1 - cmp r0, #0xe - beq _080335E4 - cmp r0, #0xe - bgt _08033586 - cmp r0, #0 - beq _08033590 - b _08033628 -_08033586: - cmp r0, #0x14 - beq _080335EE - cmp r0, #0x15 - beq _080335E4 - b _08033628 -_08033590: - movs r0, #2 - strb r0, [r4, #0xc] - ldrb r1, [r4, #0x18] - subs r0, #6 - ands r0, r1 - strb r0, [r4, #0x18] - ldrb r1, [r4, #0x10] - movs r0, #0x7f - ands r0, r1 - strb r0, [r4, #0x10] - adds r1, r4, #0 - adds r1, #0x7c - movs r0, #0x9f - lsls r0, r0, #2 - strh r0, [r1] - ldr r2, _080335DC @ =gLinkState - ldr r0, [r2, #0x30] - movs r1, #0x80 - lsls r1, r1, #7 - orrs r0, r1 - str r0, [r2, #0x30] - ldr r1, _080335E0 @ =gUnk_02002A40 - ldrb r2, [r4, #0xa] - adds r0, r2, #1 - adds r3, r1, #0 - adds r3, #0xba - strb r0, [r3] - adds r1, #0xc8 - movs r0, #0x96 - lsls r0, r0, #2 - strh r0, [r1] - lsls r2, r2, #0x18 - cmp r2, #0 - beq _08033628 - bl DeleteThisEntity - b _08033628 - .align 2, 0 -_080335DC: .4byte gLinkState -_080335E0: .4byte gUnk_02002A40 -_080335E4: - adds r1, r4, #0 - adds r1, #0x45 - movs r0, #0 - strb r0, [r1] - b _08033628 -_080335EE: - ldrb r1, [r4, #0x10] - movs r0, #0x7f - ands r0, r1 - movs r1, #0 - strb r0, [r4, #0x10] - adds r0, r4, #0 - adds r0, #0x3d - strb r1, [r0] - ldrb r1, [r4, #0x18] - movs r0, #4 - rsbs r0, r0, #0 - ands r0, r1 - strb r0, [r4, #0x18] - adds r0, r4, #0 - movs r1, #2 - movs r2, #0 - bl CreateFx - adds r1, r0, #0 - cmp r1, #0 - beq _08033624 - str r1, [r4, #0x54] - movs r0, #0xe - strb r0, [r4, #0xe] - adds r0, r4, #0 - bl CopyPosition -_08033624: - bl DeleteThisEntity -_08033628: - pop {r4, pc} - .align 2, 0 - - thumb_func_start sub_0803362C -sub_0803362C: @ 0x0803362C - push {r4, lr} - adds r4, r0, #0 - bl sub_0806F520 - cmp r0, #0 - beq _08033648 - ldr r0, _0803364C @ =gUnk_080CEB98 - ldrb r1, [r4, #0xd] - lsls r1, r1, #2 - adds r1, r1, r0 - ldr r1, [r1] - adds r0, r4, #0 - bl _call_via_r1 -_08033648: - pop {r4, pc} - .align 2, 0 -_0803364C: .4byte gUnk_080CEB98 - - thumb_func_start sub_08033650 -sub_08033650: @ 0x08033650 - movs r1, #2 - strb r1, [r0, #0xd] - bx lr - .align 2, 0 - - thumb_func_start sub_08033658 -sub_08033658: @ 0x08033658 - push {lr} - bl sub_0806F4E8 - pop {pc} - - thumb_func_start sub_08033660 -sub_08033660: @ 0x08033660 - push {r4, lr} - adds r4, r0, #0 - bl sub_0806F3E4 - cmp r0, #0 - beq _08033672 - adds r0, r4, #0 - bl sub_0804A7D4 -_08033672: - pop {r4, pc} - - thumb_func_start sub_08033674 -sub_08033674: @ 0x08033674 - push {r4, lr} - adds r4, r0, #0 - bl sub_0804A720 - movs r0, #0 - strb r0, [r4, #0xe] - movs r0, #1 - strb r0, [r4, #0xc] - strb r0, [r4, #0x1c] - ldrh r1, [r4, #0x2e] - adds r0, r4, #0 - adds r0, #0x80 - strh r1, [r0] - ldrh r0, [r4, #0x32] - adds r1, r4, #0 - adds r1, #0x82 - strh r0, [r1] - adds r0, r4, #0 - bl sub_08033744 - ldrb r1, [r4, #0xb] - adds r0, r4, #0 - bl InitializeAnimation - pop {r4, pc} - .align 2, 0 - - thumb_func_start sub_080336A8 -sub_080336A8: @ 0x080336A8 - push {r4, lr} - adds r4, r0, #0 - ldrb r0, [r4, #0xe] - subs r0, #1 - strb r0, [r4, #0xe] - lsls r0, r0, #0x18 - cmp r0, #0 - bne _080336C0 - adds r0, r4, #0 - bl sub_08033744 - b _080336CE -_080336C0: - ldrh r0, [r4, #0x2a] - cmp r0, #0 - beq _080336CE - adds r1, r0, #0 - adds r0, r4, #0 - bl sub_0800417E -_080336CE: - adds r0, r4, #0 - bl sub_080AEF88 - adds r0, r4, #0 - bl GetNextFrame - pop {r4, pc} - - thumb_func_start sub_080336DC -sub_080336DC: @ 0x080336DC - push {lr} - adds r2, r0, #0 - adds r1, r2, #0 - adds r1, #0x7c - ldrh r0, [r1] - subs r0, #1 - strh r0, [r1] - lsls r0, r0, #0x10 - lsrs r0, r0, #0x10 - cmp r0, #0xc - beq _0803371E - cmp r0, #0xc - bgt _080336FC - cmp r0, #0 - beq _0803372E - b _08033740 -_080336FC: - cmp r0, #0x18 - beq _08033716 - cmp r0, #0x24 - bne _08033740 - adds r0, r2, #0 - adds r0, #0x80 - ldrh r0, [r0] - strh r0, [r2, #0x2e] - adds r0, r2, #0 - adds r0, #0x82 - ldrh r0, [r0] - strh r0, [r2, #0x32] - b _08033740 -_08033716: - adds r0, r2, #0 - bl sub_080A29BC - b _08033740 -_0803371E: - ldrb r0, [r2, #0x18] - movs r1, #4 - rsbs r1, r1, #0 - ands r1, r0 - movs r0, #1 - orrs r1, r0 - strb r1, [r2, #0x18] - b _08033740 -_0803372E: - movs r0, #1 - strb r0, [r2, #0xc] - ldrb r1, [r2, #0x10] - movs r0, #0x80 - orrs r0, r1 - strb r0, [r2, #0x10] - adds r0, r2, #0 - bl sub_08033744 -_08033740: - pop {pc} - .align 2, 0 - - thumb_func_start sub_08033744 -sub_08033744: @ 0x08033744 - push {r4, r5, r6, lr} - adds r6, r0, #0 - bl Random - adds r5, r0, #0 - movs r0, #0xff - ands r5, r0 - ldr r1, _0803378C @ =gUnk_080CEBA4 - movs r0, #0x70 - ands r0, r5 - lsrs r0, r0, #4 - adds r0, r0, r1 - ldrb r0, [r0] - strb r0, [r6, #0xe] - movs r0, #0xc - ands r0, r5 - lsls r4, r0, #1 - adds r0, r6, #0 - bl sub_08049FA0 - cmp r0, #0 - bne _08033796 - movs r0, #3 - ands r0, r5 - cmp r0, #0 - beq _08033796 - adds r0, r6, #0 - bl sub_08049EE4 - adds r4, r0, #0 - movs r0, #0x80 - ands r5, r0 - cmp r5, #0 - beq _08033790 - adds r4, #4 - b _08033792 - .align 2, 0 -_0803378C: .4byte gUnk_080CEBA4 -_08033790: - adds r4, #0x1c -_08033792: - movs r0, #0x18 - ands r4, r0 -_08033796: - strb r4, [r6, #0x15] - pop {r4, r5, r6, pc} - .align 2, 0 diff --git a/asm/zeldaFollower.s b/asm/zeldaFollower.s index a85b9394..42000df5 100644 --- a/asm/zeldaFollower.s +++ b/asm/zeldaFollower.s @@ -6,61 +6,6 @@ .text - - thumb_func_start ZeldaFollower -ZeldaFollower: @ 0x080682B0 - push {r4, lr} - adds r4, r0, #0 - ldrb r0, [r4, #0xc] - adds r2, r0, #0 - cmp r2, #0 - bne _080682F4 - adds r0, #1 - strb r0, [r4, #0xc] - ldrb r1, [r4, #0x18] - movs r0, #4 - rsbs r0, r0, #0 - ands r0, r1 - movs r1, #1 - orrs r0, r1 - strb r0, [r4, #0x18] - movs r0, #4 - strb r0, [r4, #0x14] - adds r0, r4, #0 - adds r0, #0x68 - strb r2, [r0] - adds r0, #1 - strb r2, [r0] - adds r0, r4, #0 - movs r1, #2 - bl sub_0805E3A0 - adds r0, r4, #0 - movs r1, #0 - bl InitAnimationForceUpdate - adds r0, r4, #0 - movs r1, #0 - bl sub_0806854C -_080682F4: - adds r0, r4, #0 - adds r0, #0x68 - ldrb r0, [r0] - lsls r0, r0, #0x18 - asrs r0, r0, #0x18 - cmp r0, #0 - beq _0806830A - adds r0, r4, #0 - bl sub_08068318 - b _08068314 -_0806830A: - ldrb r1, [r4, #0x18] - movs r0, #4 - rsbs r0, r0, #0 - ands r0, r1 - strb r0, [r4, #0x18] -_08068314: - pop {r4, pc} - .align 2, 0 - thumb_func_start sub_08068318 sub_08068318: @ 0x08068318 push {r4, r5, r6, r7, lr} diff --git a/baserom.gba.pal b/baserom.gba.pal new file mode 100644 index 0000000000000000000000000000000000000000..0d552603df0d988e1cc87fe8844003ac427a0470 GIT binary patch literal 100 zcmb1fVUQ5g;pUh$nOj0>3b#ZY5H|twBOqS1kXzyv5Qi<|mZ$>aTOfKhw*=Q3Ziy@) u-gcE+!s;5gM8Zpc2|Xr3iA(B25^K~AC3rsiNC0p-TwG zF>=XegA7f}EppLija<$Vjgy|u3>A}A>?o1qr6Mmy>8btx@qRtu+wb|kUeD|IdY&gw zrC_m_f@j5Eq0=fT7oUqjoq{dmfS<$cv)Z{H%iOQNN?~y-9p-RM7`K14vLfFytpE636FPVAF<&BnG@T@`{JND zDm*$>Oc!&-GO<={7S{)5Uoq*d>?+>iBb5zB(b<7l(n7= zic!(ONn)Y=gUpEgLS5%cQkN$oA9+$U>`BxAdD1Q_MH>9u0NxYG@G) zj!8`rgk^yjPNNs4qCU=xCb3O4RC&?6-HW9M zyikAUMcFkkPJZjfCGomW%SAEYTgw`8M0omWDHeM~-V81E;*eOlS&O4pi^rd}{8LOm zpyhe-p6ER&{Yg3sSL!G`pyNqVE-FN&s1~cmI#DBPMV)9Cj*oRb*QaCq86D0+9hXLR ze0NL7FJkI#9UVXGDEL)Jz%*~ZndQytdEN|(5ius7GI>)a<}`V;Q!ESd;fDwxx>I~m z75ng~MLrxBSB2Ljvsn{9o3l}~iN7$LTV8XxrJchak^Jf$E-snNp1;m#eqbn5fbNkTuX>afFF%U;t>2R*EW#$9 z2@B_&ufn--IUMCkIPYH#$76<``C`&cJ&~gMAw8!>=R7@c8}$qn>bWA+&*|B*QP0K( zJ^kXUur=!WeUqMFzSQG!PEW9i5&wHl&kgaT_}z7xn{1#+fqwrTp zGj5C~BtIJ0nrIg6h^D(cn$io=7?md415JeInsAnwsC>>u_bLxj!7s*jOwL$~cmy#<9RN4!0(bIrS@?eh{a#YmnbacKfM&n9rZK7mWy6BzACK>61MhI_*43}EDEIL+M=~->1e7%*VjaEL`Y9;qInfc7h(C1d}d|{>a zw3Uwst&ELW=^C?g^tP2|LmEefGC7Uu_B5ih(`ZuI!jr_(0}#LuETIGv%V(_uwAZB6M^zmv`uas1nK{BNgI7G$GU^gnE4 zW{!=%d>i2|8{;K51~%DnZ?$o(%|`D<8@ENkhz(zFI~k&8x}9pPo%h5EyPc1gOTJ#> z7wpV>!%la*of{%xr=4@%b~-+>Q+LYFKg7+mb_Rd7qx#K`X|jVrKL;!4Iq;8kkS%Is z9E>h<(E5ynjuj3nn;mQyciwRD(}xZw4m$|?9|z$#92AS5aR;X+W#IWh1`fXrhGu4P zQTPUB$a^+}PD=(~iknNMw;_YQdos9mD1+qF8SJ~8!SSh19+>7tX>xKW-AVOQC;jzK z+S?^R>ty1FlZx-0sDE&xz2zkHw&eGn^!&dQ)2~wh&B>4=Q=VfcWf_?qU6M)2>zOqF zEt8u^G8ya7#Ccibu}o?dS#djL%~NtIQ{~bhm`im`E`K-Yay&Pe);Du$ zZp%fnCzp_8xg>v^%b@7j=iw^JBk1uwPSi-eHIJU{d33br(f4T{myYEzuFR)zNU3IU?QY|z6AyNItplARzSmx1vI}Uy?&{GQy^!f zkP^Q_S^^5?927F#Sjh3W3mG_E$nML9sFg*G=M*u#z6iyuMVNOLvHC<2wHJ$M|GtP0 zog3p!H?0r3Sv1$px<}mfncP&m-S}3!8C&mWZ;M;L6K?AExyiocrZcRVj)lc6j3}l# zs~F$q#kd=bX*yqw;$kt%OU1N|N^QKD<9CZOP84(hp3MFxHDw81(@F?>poC7(67~r{ zO$kcx64VctFdAIKP-qGJ+e>(SS}C<#7PDE@iF(l>UJ*@Vt7sP6M2pxiTE&~9UF;AY zVwc!0-W7Yr`=V3q6J6qf=oSY>k2oYkXO-g!ET=^*nO)8Y$Chv^e<_E0m*TT{8E2wa zaOP?8t5{gYjOA6Vs;r`TMHMmClCP{{&swpriuc5x4OKk!b2WWFD+y0sg}Q9D{CBUR zEOjGUXKKi5dx6lWUZgbaB@}VBC_WJxn^2q)i#DV9S}gwqmu|nzjA;!lTH45#WsO`F u^OiSqW8o{*e$hmSUmN#D(DXJ+#ejbsJ;6IU=+{GIOb=7zPSR^T&A$O@b4XGE literal 0 HcmV?d00001 diff --git a/graphics/gameover.pal b/graphics/gameover.pal new file mode 100644 index 00000000..32050439 --- /dev/null +++ b/graphics/gameover.pal @@ -0,0 +1,19 @@ +JASC-PAL +0100 +16 +255 255 172 +255 0 255 +255 0 255 +255 0 255 +255 0 255 +255 0 255 +255 0 255 +255 0 255 +255 0 255 +255 230 0 +255 172 16 +246 115 0 +238 65 0 +230 0 0 +180 65 90 +0 0 90 diff --git a/graphics/gameover.png b/graphics/gameover.png new file mode 100644 index 0000000000000000000000000000000000000000..f82d6e33ec3775c9f105f6247b43f44d92a2f65d GIT binary patch literal 904 zcmV;319$w1P)S^xlA>6n150009M zNklMI$ITOk8DdLL+x$1D$xly za%w=mYa5*(^ zt~TcY6!hfWP)4AnYQVWV0bW{4ci`ZJ1Fs0cpVA9pvf~^rHPph=V3_(Uh*tpc&W`NH zgu9G-R62_axus+ia$Eg`wY-R0#0xajRRXxat&?})i1Rf83c9StJL;<>k|Z2LBuQLv ztZ4)ZJ9j5Zz*!eIl7Q20azO%4t22ru;ACG%5^(a0B;Z5{mLZavbM0J=WCTzHIW{4Z z)xeSA`Vb$ZTrxhqpz3GD$9SuF7ZolS^{BiaIsk3sZYUW+(*Yj1C7KdM9`+J|2au`~ z=++tM{&=n%*lY0K9A?OLLz^A#yTb&W2!wlE;;a$aQbwKW;Lr(xuMrPTK{HU=Y>(Ur z;3nX*M&MQj{hER9fbw$9>3IguSB{8$HkAQRj|e~rUZJu%v1SQxtJQtpecP4R#`&%x zEAjgaYOG_L;%WQZ3czP23BW9YJ?E+5Ks~ACv5LDz48oOfANuL_oB$-c$s@p51Dya> zQs^1@*hD+HqUh|^BtT;N13>HKE_aHJ>9r`r-*+uw`w|UYEc0?yx=)HvXRTO&e z>X#s)d*;4>q^+py_1o`U3?wD~#5OrypwJH~a8twIcPu#WPFdP9%^y|-uAe_dqg&qg zUXMG)?lt|!3vsU=#C|}~e365F7Tc@d)y{2CTDYN+J)28^cYx5(aV|8r`rO9}#C;wy zOB#ES1*PsyoMIFcW^@v{|3qCOhZtrpte8*~jtC8DWGxb3dy;6@M3M|fOd>fwNqa~- z1p?%n0?TkvKc%;*$CJ10H@=!y!cRHAB5WN+9qYWP9{_AxKYC1#`WVyH`8lu@d5ec+ z2Tu>j7juz7dJ6BrvkaKhmU06Fc`_*TDMvXM1E_K%wy;rsA-`YP(pr4KK#(field_0x4, gUnk_0811E4AC); + sub_0807D184(temp->field_0x2, gUnk_0811E4AC); +} + +void sub_0807CF68(u32 arg0) +{ + struct_0807D1C4 *temp; + char* str; + + temp = sub_0807D1C4(arg0); + str = gUnk_0811E4A4; + sub_0807D184(temp->field_0x4, str); + sub_0807D184(temp->field_0x2, str); +} \ No newline at end of file diff --git a/src/code_080808D8.c b/src/code_080808D8.c deleted file mode 100644 index e9b9f8f5..00000000 --- a/src/code_080808D8.c +++ /dev/null @@ -1,25 +0,0 @@ -#include "global.h" -#include "entity.h" -#include "structures.h" -#include "functions.h" - -void sub_080808D8(void) { - gScreenTransition.transitionType = 0; -} - -void sub_080808E4(void) { - - if (sub_08052638(gScreenTransition.areaID)) { - gScreenTransition.transitionType = 0; - } else { - gScreenTransition.transitionType = 5; - } -} - -void sub_08080904(void) { - gScreenTransition.transitionType = 1; -} - -void sub_08080910(void) { - gScreenTransition.transitionType = 1; -} \ No newline at end of file diff --git a/src/code_0808091C.c b/src/code_0808091C.c index 1607ddf0..dcb86728 100644 --- a/src/code_0808091C.c +++ b/src/code_0808091C.c @@ -1,4 +1,7 @@ #include "global.h" +#include "entity.h" +#include "structures.h" +#include "functions.h" #include "room.h" extern void sub_0805E5A8(); @@ -6,16 +9,35 @@ extern void sub_0805E5A8(); extern RoomControls gRoomControls; extern u32 gUnk_0200B650; extern u32 gUnk_02025EB0; -extern u8 gScreenTransition[10]; -extern void DoExitTransition(Entity*); +extern void DoExitTransition(ScreenTransitionData*); extern void sub_080809D4(); -void sub_0808091C(Entity* param_1, u32 param_2) +void sub_080808D8(void) { + gScreenTransition.transitionType = 0; +} +void sub_080808E4(void) { + + if (sub_08052638(gScreenTransition.areaID)) { + gScreenTransition.transitionType = 0; + } else { + gScreenTransition.transitionType = 5; + } +} + +void sub_08080904(void) { + gScreenTransition.transitionType = 1; +} + +void sub_08080910(void) { + gScreenTransition.transitionType = 1; +} + +void sub_0808091C(ScreenTransitionData* param_1, u32 param_2) { DoExitTransition(param_1); - gScreenTransition[9] = param_2; + gScreenTransition.transitionType = param_2; return; } diff --git a/src/enemy/bombPeahat.c b/src/enemy/bombPeahat.c index da782b85..1dc3d30f 100644 --- a/src/enemy/bombPeahat.c +++ b/src/enemy/bombPeahat.c @@ -8,7 +8,6 @@ extern u32 GetNextFunction(Entity*); extern void sub_0802AD54(Entity*); extern void sub_0802B048(Entity*); extern void sub_0806F4E8(Entity*); -extern void sub_0806F3E4(Entity*); extern void (*const gUnk_080012C8[])(Entity*); extern void (*const gUnk_080CD0F0[])(Entity*); diff --git a/src/enemy/wisp.c b/src/enemy/wisp.c new file mode 100644 index 00000000..d6729201 --- /dev/null +++ b/src/enemy/wisp.c @@ -0,0 +1,149 @@ +#include "global.h" +#include "entity.h" +#include "enemy.h" +#include "structures.h" +#include "link.h" +#include "functions.h" + +extern void (*const gUnk_080CEB74[])(Entity*); +extern void (*const gUnk_080CEB8C[])(Entity*); +extern void (*const gUnk_080CEB98[])(Entity*); + +extern u8 gUnk_080CEBA4[]; + +void Wisp(Entity* this) { + EnemyFunctionHandler(this, gUnk_080CEB74); +} + +void sub_0803354C(Entity* this) { + gUnk_080CEB8C[this->action](this); +} + +void sub_08033564(Entity* this) { + u32 bits; + Entity* ent; + + bits = this->bitfield; + if ((bits & 0x80) == 0) { + return; + } + + switch ((s32)bits & 0x3f) { + case 0: + this->action = 2; + this->spriteSettings.b.draw = FALSE; + this->flags &= 0x7f; + this->field_0x7c.HALF.LO = 0x27c; + gLinkState.flags.all |= 0x4000; + gUnk_02002A40.stats.filler2[4] = this->entityType.form + 1; + gUnk_02002A40.stats.field_0x20 = 600; + if (this->entityType.form == 0) { + break; + } + DeleteThisEntity(); + break; + case 0xe: + case 0x15: + this->currentHealth = 0; + break; + case 0x14: + this->flags &= 0x7f; + this->hurtBlinkTime = 0; + this->spriteSettings.b.draw = FALSE; + ent = CreateFx(this, 2, 0); + if (ent != NULL) { + this->attachedEntity = ent; + this->actionDelay = 0xe; + CopyPosition(this, ent); + } + DeleteThisEntity(); + break; + } +} + +void sub_0803362C(Entity* this) { + if (sub_0806F520() != 0) { + gUnk_080CEB98[this->previousActionFlag](this); + } +} + +void sub_08033650(Entity* this) { + this->previousActionFlag = 2; +} + +void sub_08033658(Entity* this) { + sub_0806F4E8(); +} + +void sub_08033660(Entity* this) { + if (sub_0806F3E4(this)) { + sub_0804A7D4(this); + } +} + +void sub_08033674(Entity* this) { + sub_0804A720(this); + this->actionDelay = 0; + this->action = 1; + this->filler[0] = 1; + this->field_0x80.HWORD = this->x.HALF.HI; + this->field_0x82.HWORD = this->y.HALF.HI; + sub_08033744(this); + InitializeAnimation(this, this->entityType.parameter); +} + +void sub_080336A8(Entity* this) { + if (--this->actionDelay == 0) { + sub_08033744(this); + } else if (this->collisions != 0) { + sub_0800417E(this, this->collisions); + } + sub_080AEF88(this); + GetNextFrame(this); +} + +void sub_080336DC(Entity* this) { + switch ((u16)-- this->field_0x7c.HALF.LO) { + case 0x24: + this->x.HALF.HI = this->field_0x80.HWORD; + this->y.HALF.HI = this->field_0x82.HWORD; + break; + case 0x18: + sub_080A29BC(this); + break; + case 0xc: + this->spriteSettings.b.draw = TRUE; + break; + case 0x0: + this->action = 1; + this->flags |= 0x80; + sub_08033744(this); + break; + } +} + +void sub_08033744(Entity* this) { + u32 temp; + u32 rand = (u32)Random() % 256; + + // 8 potential options + this->actionDelay = gUnk_080CEBA4[(rand & 0x70) >> 4]; + + // 4 potential options + temp = ((rand & 0xc) * 2); + + // 75% chance to pass + if ((sub_08049FA0(this) == 0) && ((rand % 4) != 0)) { + temp = sub_08049EE4(this); + + // 50% chance to pass + if ((rand & 0x80) != 0) { + temp += 0x4; + temp &= 0x18; + } else { + temp += 0x1c; + temp &= 0x18; + } + } + this->direction = temp; +} \ No newline at end of file diff --git a/src/npc/zeldaFollower.c b/src/npc/zeldaFollower.c new file mode 100644 index 00000000..3dec4d10 --- /dev/null +++ b/src/npc/zeldaFollower.c @@ -0,0 +1,25 @@ +#include "global.h" +#include "entity.h" +#include "functions.h" + +extern void sub_08068318(Entity*); +extern void sub_0806854C(Entity*, u32); + +void ZeldaFollower(Entity *this) +{ + if (this->action == 0) { + this->action++; + this->spriteSettings.b.draw = TRUE; + this->animationState = 4; + this->field_0x68.HALF.LO = 0; + this->field_0x68.HALF.HI = 0; + sub_0805E3A0(this, 2); + InitAnimationForceUpdate(this, 0); + sub_0806854C(this, 0); + } + if ((s8)this->field_0x68.HALF.LO != 0) { + sub_08068318(this); + } else { + this->spriteSettings.b.draw = FALSE; + } +} \ No newline at end of file diff --git a/src/room.c b/src/room.c index 4246c675..7d9e46d4 100644 --- a/src/room.c +++ b/src/room.c @@ -665,7 +665,7 @@ void sub_0804BC70(void) { } } -extern u32 gUnk_0813AB80; +extern ScreenTransitionData gUnk_0813AB80; void sub_0804BCDC() { sub_0808091C(&gUnk_0813AB80, 4); diff --git a/src/sub_0807C998.c b/src/sub_0807C998.c index a1d16fdf..bc31e322 100644 --- a/src/sub_0807C998.c +++ b/src/sub_0807C998.c @@ -1,12 +1,29 @@ #include "global.h" +#include "entity.h" extern void sub_0807C960(); extern u32 gUnk_0202CEB4; extern u32 gUnk_02012654; +extern u8 gUnk_08324AE4; + +void sub_0807C960(void* dest, u32 offset) +{ + void* temp; + + if (offset != -1) { + temp = &gUnk_08324AE4 + (offset & 0x7fffffff); + if ((u32)dest >> 0x18 == 6) { + LZ77UnCompVram(temp, (void *)dest); + } + else { + LZ77UnCompWram(temp, (void *)dest); + } + } +} void sub_0807C998(u32* a1) { sub_0807C960(&gUnk_0202CEB4, a1[0]); sub_0807C960(&gUnk_0202CEB4 - 0x800, a1[1]); sub_0807C960(&gUnk_02012654, a1[2]); sub_0807C960(&gUnk_02012654 - 0x800, a1[3]); -} +} \ No newline at end of file diff --git a/tools/gbagfx/link.pal b/tools/gbagfx/link.pal new file mode 100644 index 00000000..f7ee0b1d --- /dev/null +++ b/tools/gbagfx/link.pal @@ -0,0 +1,19 @@ +JASC-PAL +0100 +16 +65 180 139 +222 41 41 +123 16 41 +16 123 41 +65 164 41 +16 255 8 +49 82 255 +189 255 164 +222 172 82 +255 255 0 +115 65 32 +164 123 65 +213 180 139 +255 230 189 +255 255 255 +0 0 0 diff --git a/minishmaker-license.txt b/tools/minishmaker-license.txt similarity index 100% rename from minishmaker-license.txt rename to tools/minishmaker-license.txt From b235f9ae3e291a0fcf330440241700730262bfd6 Mon Sep 17 00:00:00 2001 From: notyouraveragehooman <65437533+notyouraveragehooman@users.noreply.github.com> Date: Wed, 5 Aug 2020 21:01:23 -0700 Subject: [PATCH 084/158] Update README.md --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index f8ea57d6..04250606 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ # The Legend of Zelda: The Minish Cap -**Progress:** [⬛⬜⬜⬜⬜⬜⬜⬜⬜⬜⬜⬜⬜⬜⬜⬜⬜⬜⬜⬜] 5% +**Progress:** [⬛⬛⬜⬜⬜⬜⬜⬜⬜⬜⬜⬜⬜⬜⬜⬜⬜⬜⬜⬜] 10% ```diff - WARNING! - From 6250d7ce7218ed94cad33e52ab9f85ab52fa757e Mon Sep 17 00:00:00 2001 From: Behemoth Date: Thu, 6 Aug 2020 21:00:49 +0200 Subject: [PATCH 085/158] more entity stuff --- asm/code_0805E744.s | 530 -------------------------------------------- include/area.h | 4 + include/entity.h | 2 +- linker.ld | 2 +- src/entity.c | 339 +++++++++++++++++++++++++++- 5 files changed, 333 insertions(+), 544 deletions(-) diff --git a/asm/code_0805E744.s b/asm/code_0805E744.s index a4ec55ca..d1fca8c7 100644 --- a/asm/code_0805E744.s +++ b/asm/code_0805E744.s @@ -5,536 +5,6 @@ .text - thumb_func_start sub_0805E870 -sub_0805E870: @ 0x0805E870 - sub sp, #4 - movs r1, #0 - str r1, [sp] - ldr r1, _0805E890 @ =0x040000D4 - mov r2, sp - str r2, [r1] - str r0, [r1, #4] - ldr r0, _0805E894 @ =0x85000022 - str r0, [r1, #8] - ldr r0, [r1, #8] - ldr r1, _0805E898 @ =gUnk_03003DBC - ldrb r0, [r1] - subs r0, #1 - strb r0, [r1] - add sp, #4 - bx lr - .align 2, 0 -_0805E890: .4byte 0x040000D4 -_0805E894: .4byte 0x85000022 -_0805E898: .4byte gUnk_03003DBC - - thumb_func_start sub_0805E89C -sub_0805E89C: @ 0x0805E89C - push {r4, r5, r6, lr} - ldr r5, _0805E8CC @ =gUnk_03003D70 - ldr r0, [r5, #4] - cmp r0, #0 - beq _0805E8C8 -_0805E8A6: - ldr r0, [r5, #4] - adds r6, r5, #0 - adds r6, #8 - cmp r0, r5 - beq _0805E8BC -_0805E8B0: - ldr r4, [r0, #4] - bl sub_0805E79C - adds r0, r4, #0 - cmp r0, r5 - bne _0805E8B0 -_0805E8BC: - adds r5, r6, #0 - ldr r0, _0805E8D0 @ =gUnk_03003DB8 - cmp r5, r0 - blo _0805E8A6 - bl sub_0805E84C -_0805E8C8: - pop {r4, r5, r6, pc} - .align 2, 0 -_0805E8CC: .4byte gUnk_03003D70 -_0805E8D0: .4byte gUnk_03003DB8 - - thumb_func_start sub_0805E8D4 -sub_0805E8D4: @ 0x0805E8D4 - push {lr} - ldr r1, _0805E8F0 @ =gUnk_02033290 - movs r2, #0x80 - lsls r2, r2, #4 - adds r0, r1, r2 - cmp r1, r0 - bhs _0805E8FA - adds r2, r0, #0 -_0805E8E4: - ldr r0, [r1] - cmp r0, #0 - bne _0805E8F4 - adds r0, r1, #0 - b _0805E8FC - .align 2, 0 -_0805E8F0: .4byte gUnk_02033290 -_0805E8F4: - adds r1, #0x40 - cmp r1, r2 - blo _0805E8E4 -_0805E8FA: - movs r0, #0 -_0805E8FC: - pop {pc} - .align 2, 0 - - thumb_func_start sub_0805E900 -sub_0805E900: @ 0x0805E900 - push {r4, lr} - adds r4, r0, #0 - ldr r0, [r4, #4] - cmp r0, #0 - beq _0805E926 - adds r0, r4, #0 - bl sub_0805E92C - adds r0, r4, #0 - bl sub_0805EA98 - adds r0, r4, #0 - movs r1, #0x40 - bl _DmaZero - ldr r1, _0805E928 @ =gUnk_020354B4 - ldrb r0, [r1] - subs r0, #1 - strb r0, [r1] -_0805E926: - pop {r4, pc} - .align 2, 0 -_0805E928: .4byte gUnk_020354B4 - - thumb_func_start sub_0805E92C -sub_0805E92C: @ 0x0805E92C - push {lr} - ldr r2, _0805E94C @ =gArea - ldr r1, _0805E950 @ =0x00000888 - adds r3, r2, r1 - ldr r1, [r3] - cmp r0, r1 - bne _0805E94A - movs r0, #0 - str r0, [r3] - ldr r3, _0805E954 @ =0x0000088C - adds r1, r2, r3 - str r0, [r1] - adds r3, #4 - adds r1, r2, r3 - str r0, [r1] -_0805E94A: - pop {pc} - .align 2, 0 -_0805E94C: .4byte gArea -_0805E950: .4byte 0x00000888 -_0805E954: .4byte 0x0000088C - - thumb_func_start sub_0805E958 -sub_0805E958: @ 0x0805E958 - push {lr} - ldr r0, _0805E96C @ =gUnk_03003D70 - ldr r1, _0805E970 @ =gUnk_020369F0 - movs r2, #0x48 - bl sub_0801D66C - bl sub_0805E98C - pop {pc} - .align 2, 0 -_0805E96C: .4byte gUnk_03003D70 -_0805E970: .4byte gUnk_020369F0 - - thumb_func_start sub_0805E974 -sub_0805E974: @ 0x0805E974 - push {lr} - ldr r0, _0805E984 @ =gUnk_020369F0 - ldr r1, _0805E988 @ =gUnk_03003D70 - movs r2, #0x48 - bl sub_0801D66C - pop {pc} - .align 2, 0 -_0805E984: .4byte gUnk_020369F0 -_0805E988: .4byte gUnk_03003D70 - - thumb_func_start sub_0805E98C -sub_0805E98C: @ 0x0805E98C - push {lr} - ldr r0, _0805E9A4 @ =gUnk_03003D70 - adds r1, r0, #0 - adds r1, #0x48 - cmp r0, r1 - bhs _0805E9A2 -_0805E998: - str r0, [r0] - str r0, [r0, #4] - adds r0, #8 - cmp r0, r1 - blo _0805E998 -_0805E9A2: - pop {pc} - .align 2, 0 -_0805E9A4: .4byte gUnk_03003D70 - - thumb_func_start sub_0805E9A8 -sub_0805E9A8: @ 0x0805E9A8 - push {r4, r5, r6, r7, lr} - mov r7, r8 - push {r7} - ldr r3, _0805E9F0 @ =gUnk_03003D70 - movs r7, #0x10 - movs r0, #0x48 - adds r0, r0, r3 - mov r8, r0 -_0805E9B8: - ldr r2, [r3, #4] - adds r4, r3, #0 - adds r4, #8 - cmp r2, r3 - beq _0805E9E2 - movs r6, #0xfd - movs r5, #0x20 -_0805E9C6: - ldrb r0, [r2, #0x10] - adds r1, r6, #0 - ands r1, r0 - strb r1, [r2, #0x10] - adds r0, r1, #0 - ands r0, r5 - cmp r0, #0 - bne _0805E9DC - adds r0, r1, #0 - orrs r0, r7 - strb r0, [r2, #0x10] -_0805E9DC: - ldr r2, [r2, #4] - cmp r2, r3 - bne _0805E9C6 -_0805E9E2: - adds r3, r4, #0 - cmp r3, r8 - blo _0805E9B8 - pop {r3} - mov r8, r3 - pop {r4, r5, r6, r7, pc} - .align 2, 0 -_0805E9F0: .4byte gUnk_03003D70 - - thumb_func_start sub_0805E9F4 -sub_0805E9F4: @ 0x0805E9F4 - push {r4, r5, r6, lr} - ldr r5, _0805EA24 @ =gUnk_03003D70 -_0805E9F8: - ldr r2, [r5, #4] - adds r6, r5, #0 - adds r6, #8 - cmp r2, r5 - beq _0805EA1A -_0805EA02: - ldr r4, [r2, #4] - ldrb r1, [r2, #0x10] - movs r0, #0x10 - ands r0, r1 - cmp r0, #0 - beq _0805EA14 - adds r0, r2, #0 - bl sub_0805E79C -_0805EA14: - adds r2, r4, #0 - cmp r2, r5 - bne _0805EA02 -_0805EA1A: - adds r5, r6, #0 - ldr r0, _0805EA28 @ =gUnk_03003DB8 - cmp r5, r0 - blo _0805E9F8 - pop {r4, r5, r6, pc} - .align 2, 0 -_0805EA24: .4byte gUnk_03003D70 -_0805EA28: .4byte gUnk_03003DB8 - - thumb_func_start sub_0805EA2C -sub_0805EA2C: @ 0x0805EA2C - push {lr} - adds r2, r0, #0 - lsls r1, r1, #3 - ldr r0, _0805EA5C @ =gUnk_03003D70 - adds r1, r1, r0 - str r1, [r2, #4] - ldr r0, [r1] - str r0, [r2] - str r2, [r0, #4] - str r2, [r1] - ldrb r0, [r2, #8] - cmp r0, #9 - beq _0805EA64 - adds r3, r2, #0 - adds r3, #0x29 - ldrb r1, [r3] - movs r0, #8 - rsbs r0, r0, #0 - ands r0, r1 - movs r1, #4 - orrs r0, r1 - strb r0, [r3] - ldr r1, _0805EA60 @ =gUnk_03003DBC - b _0805EA66 - .align 2, 0 -_0805EA5C: .4byte gUnk_03003D70 -_0805EA60: .4byte gUnk_03003DBC -_0805EA64: - ldr r1, _0805EA74 @ =gUnk_020354B4 -_0805EA66: - ldrb r0, [r1] - adds r0, #1 - strb r0, [r1] - adds r0, r2, #0 - bl sub_0805E374 - pop {pc} - .align 2, 0 -_0805EA74: .4byte gUnk_020354B4 - - thumb_func_start sub_0805EA78 -sub_0805EA78: @ 0x0805EA78 - push {r4, r5, lr} - adds r5, r0, #0 - adds r4, r1, #0 - bl sub_0805EA98 - lsls r4, r4, #3 - ldr r0, _0805EA94 @ =gUnk_03003D70 - adds r4, r4, r0 - str r4, [r5] - ldr r0, [r4, #4] - str r0, [r5, #4] - str r5, [r0] - str r5, [r4, #4] - pop {r4, r5, pc} - .align 2, 0 -_0805EA94: .4byte gUnk_03003D70 - - thumb_func_start sub_0805EA98 -sub_0805EA98: @ 0x0805EA98 - push {lr} - adds r2, r0, #0 - ldr r1, _0805EAB8 @ =gUnk_03003DD0 - ldr r0, [r1, #8] - cmp r2, r0 - bne _0805EAA8 - ldr r0, [r2] - str r0, [r1, #8] -_0805EAA8: - ldr r1, [r2] - ldr r0, [r2, #4] - str r0, [r1, #4] - ldr r1, [r2, #4] - ldr r0, [r2] - str r0, [r1] - pop {pc} - .align 2, 0 -_0805EAB8: .4byte gUnk_03003DD0 - - thumb_func_start sub_0805EABC -sub_0805EABC: @ 0x0805EABC - push {r4, r5, r6, r7, lr} - adds r6, r0, #0 - ldr r4, _0805EAE8 @ =gUnk_03003D70 - adds r7, r4, #0 - adds r7, #0x48 -_0805EAC6: - ldr r3, [r4, #4] - cmp r3, r4 - beq _0805EAF6 - ldr r5, _0805EAEC @ =0x0000FFFF -_0805EACE: - cmp r3, r6 - beq _0805EAF0 - ldrh r0, [r3, #8] - ldrh r2, [r6, #8] - adds r1, r5, #0 - ands r1, r0 - adds r0, r5, #0 - ands r0, r2 - cmp r1, r0 - bne _0805EAF0 - movs r0, #1 - b _0805EAFE - .align 2, 0 -_0805EAE8: .4byte gUnk_03003D70 -_0805EAEC: .4byte 0x0000FFFF -_0805EAF0: - ldr r3, [r3, #4] - cmp r3, r4 - bne _0805EACE -_0805EAF6: - adds r4, #8 - cmp r4, r7 - blo _0805EAC6 - movs r0, #0 -_0805EAFE: - pop {r4, r5, r6, r7, pc} - - thumb_func_start sub_0805EB00 -sub_0805EB00: @ 0x0805EB00 - push {r4, lr} - adds r3, r0, #0 - lsls r2, r2, #3 - ldr r0, _0805EB28 @ =gUnk_03003D70 - adds r2, r2, r0 - ldr r0, [r2, #4] - cmp r0, r2 - beq _0805EB22 -_0805EB10: - ldrb r4, [r0, #8] - cmp r3, r4 - bne _0805EB1C - ldrb r4, [r0, #9] - cmp r1, r4 - beq _0805EB24 -_0805EB1C: - ldr r0, [r0, #4] - cmp r0, r2 - bne _0805EB10 -_0805EB22: - movs r0, #0 -_0805EB24: - pop {r4, pc} - .align 2, 0 -_0805EB28: .4byte gUnk_03003D70 - - thumb_func_start sub_0805EB2C -sub_0805EB2C: @ 0x0805EB2C - push {r4, r5, r6, lr} - adds r4, r0, #0 - ldr r5, [sp, #0x10] - lsls r2, r2, #3 - ldr r0, _0805EB60 @ =gUnk_03003D70 - adds r2, r2, r0 - ldr r0, [r2, #4] - cmp r0, r2 - beq _0805EB5C -_0805EB3E: - ldrb r6, [r0, #8] - cmp r4, r6 - bne _0805EB56 - ldrb r6, [r0, #9] - cmp r1, r6 - bne _0805EB56 - ldrb r6, [r0, #0xa] - cmp r3, r6 - bne _0805EB56 - ldrb r6, [r0, #0xb] - cmp r5, r6 - beq _0805EB5E -_0805EB56: - ldr r0, [r0, #4] - cmp r0, r2 - bne _0805EB3E -_0805EB5C: - movs r0, #0 -_0805EB5E: - pop {r4, r5, r6, pc} - .align 2, 0 -_0805EB60: .4byte gUnk_03003D70 - - thumb_func_start sub_0805EB64 -sub_0805EB64: @ 0x0805EB64 - push {r4, r5, lr} - adds r4, r0, #0 - lsls r1, r1, #3 - ldr r0, _0805EB88 @ =gUnk_03003D70 - adds r3, r1, r0 - ldr r2, [r4, #4] - cmp r2, r3 - beq _0805EB96 - ldr r5, _0805EB8C @ =0x0000FFFF - ldrh r4, [r4, #8] -_0805EB78: - ldrh r1, [r2, #8] - adds r0, r5, #0 - ands r0, r1 - cmp r0, r4 - bne _0805EB90 - adds r0, r2, #0 - b _0805EB98 - .align 2, 0 -_0805EB88: .4byte gUnk_03003D70 -_0805EB8C: .4byte 0x0000FFFF -_0805EB90: - ldr r2, [r2, #4] - cmp r2, r3 - bne _0805EB78 -_0805EB96: - movs r0, #0 -_0805EB98: - pop {r4, r5, pc} - .align 2, 0 - - thumb_func_start sub_0805EB9C -sub_0805EB9C: @ 0x0805EB9C - push {r4, r5, lr} - adds r3, r0, #0 - ldr r2, _0805EBC8 @ =gUnk_03003D70 - adds r4, r2, #0 - adds r4, #0x48 -_0805EBA6: - ldr r0, [r2, #4] - cmp r0, r2 - beq _0805EBBE -_0805EBAC: - ldrb r5, [r0, #8] - cmp r3, r5 - bne _0805EBB8 - ldrb r5, [r0, #9] - cmp r1, r5 - beq _0805EBC6 -_0805EBB8: - ldr r0, [r0, #4] - cmp r0, r2 - bne _0805EBAC -_0805EBBE: - adds r2, #8 - cmp r2, r4 - blo _0805EBA6 - movs r0, #0 -_0805EBC6: - pop {r4, r5, pc} - .align 2, 0 -_0805EBC8: .4byte gUnk_03003D70 - - thumb_func_start sub_0805EBCC -sub_0805EBCC: @ 0x0805EBCC - push {r4, r5, r6, lr} - ldr r5, _0805EBFC @ =gUnk_03003D70 -_0805EBD0: - ldr r1, [r5, #4] - adds r6, r5, #0 - adds r6, #8 - cmp r1, r5 - beq _0805EBEE -_0805EBDA: - ldr r4, [r1, #4] - ldrb r0, [r1, #8] - cmp r0, #3 - bne _0805EBE8 - adds r0, r1, #0 - bl DeleteEntity -_0805EBE8: - adds r1, r4, #0 - cmp r1, r5 - bne _0805EBDA -_0805EBEE: - adds r5, r6, #0 - ldr r0, _0805EC00 @ =gUnk_03003DB8 - cmp r5, r0 - blo _0805EBD0 - bl sub_0805E84C - pop {r4, r5, r6, pc} - .align 2, 0 -_0805EBFC: .4byte gUnk_03003D70 -_0805EC00: .4byte gUnk_03003DB8 - thumb_func_start sub_0805EC04 sub_0805EC04: @ 0x0805EC04 push {r4, r5, r6, r7, lr} diff --git a/include/area.h b/include/area.h index ce0b325c..e705944d 100644 --- a/include/area.h +++ b/include/area.h @@ -17,6 +17,10 @@ typedef struct { u8 filler4[0x835]; u32 musicIndex; u32 pMusicIndex; + u8 filler5[0x20]; + u32 unk2; + u32 unk3; + u32 unk4; } Area; extern Area gArea; diff --git a/include/entity.h b/include/entity.h index e717c9e1..0b76eaa5 100644 --- a/include/entity.h +++ b/include/entity.h @@ -26,7 +26,7 @@ typedef struct { } BoundingBox; typedef struct Entity { - /*0x00*/ u32* field_0x0; + /*0x00*/ struct Entity* field_0x0; /*0x04*/ struct Entity* field_0x4; /*0x08*/ EntityType entityType; /*0x0c*/ u8 action; diff --git a/linker.ld b/linker.ld index eb042eea..820bdbf1 100644 --- a/linker.ld +++ b/linker.ld @@ -531,7 +531,7 @@ SECTIONS { asm/code_0805E3B0.o(.text); asm/getEmptyEntity.o(.text); src/entity.o(.text); - asm/code_0805E84C.o(.text); + asm/code_0805E744.o(.text); /* npcs */ src/npc/gentari.o(.text); src/npc/festari.o(.text); diff --git a/src/entity.c b/src/entity.c index 6030b7ac..d1e87ff8 100644 --- a/src/entity.c +++ b/src/entity.c @@ -1,6 +1,13 @@ #include "global.h" #include "entity.h" +typedef struct OtherEntity { + struct OtherEntity* prev; + struct OtherEntity* next; + Entity* field_0x8; + u8 field_0xC[0x34]; +} OtherEntity; + extern Entity gUnk_030011E8[7]; Entity* sub_0805E744(void) @@ -19,16 +26,18 @@ Entity* sub_0805E744(void) } extern Entity* GetEmptyEntity(); -extern Entity* sub_0805E8D4(); +OtherEntity* sub_0805E8D4(); -Entity* sub_0805E768(int type) +typedef void* (*Getter)(void); + +void* sub_0805E768(int type) { - Entity* (*getter)(void) = NULL; + Getter getter = NULL; if (type == 9) { - getter = sub_0805E8D4; + getter = (Getter)sub_0805E8D4; } else { - getter = GetEmptyEntity; + getter = (Getter)GetEmptyEntity; } return getter(); } @@ -41,7 +50,7 @@ typedef struct { extern struct_03003DD0 gUnk_03003DD0; extern u32 _call_via_r0(u32*); -extern void gUnk_03005F24(); +extern u32 gUnk_03005F24; extern void sub_0805E79C(Entity*); void DeleteThisEntity(void) @@ -52,17 +61,19 @@ void DeleteThisEntity(void) return; } -extern void DeleteEntity(Entity*); -extern void sub_0805E900(Entity*); +void DeleteEntity(Entity*); +void sub_0805E900(OtherEntity*); + +typedef void (*Deleter)(void*); void sub_0805E79C(Entity* ent) { - void (*deleter)(Entity*) = NULL; + Deleter deleter = NULL; if (ent->entityType.type == 9) { - deleter = sub_0805E900; + deleter = (Deleter)sub_0805E900; } else { - deleter = DeleteEntity; + deleter = (Deleter)DeleteEntity; } deleter(ent); } @@ -109,7 +120,7 @@ void DeleteEntity(Entity* ent) ent->currentHealth = 0; sub_0805EA98(ent); ent->field_0x4 = NULL; - ent->field_0x0 = (u32*)0xffffffff; + ent->field_0x0 = (Entity*)0xffffffff; } } @@ -128,3 +139,307 @@ void sub_0805E84C(void) } while (pEVar1 < (&gLinkEntity + 80)); return; } + +extern u8 gUnk_03003DBC; + +void sub_0805E870(Entity* ent) + +{ + DmaClear32(3, ent, sizeof(Entity)); + gUnk_03003DBC--; +} + +typedef struct struct_03003D70 { + void* field_0x0; + void* field_0x4; +} struct_03003D70; + +extern struct_03003D70 gUnk_03003D70[9]; +extern EntityType gUnk_03003DB8; + +void sub_0805E89C(void) + +{ + Entity* pEVar1; + Entity* next; + struct_03003D70* it; + + it = gUnk_03003D70; + if (it->field_0x4 != 0) { + do { + next = it->field_0x4; + while (pEVar1 = next, (u32)pEVar1 != (u32)it) { + next = pEVar1->field_0x4; + sub_0805E79C(pEVar1); + } + it++; + } while (it < (gUnk_03003D70 + 9)); + sub_0805E84C(); + } +} + +extern OtherEntity gUnk_02033290; + +OtherEntity* sub_0805E8D4(void) + +{ + OtherEntity* it; + for (it = &gUnk_02033290; it < (&gUnk_02033290 + 32); it++) { + if (it->prev == 0) { + return it; + } + } + return NULL; +} + +extern void _DmaZero(void*, u32); +extern u8 gUnk_020354B4; + +void sub_0805E900(OtherEntity* ent) + +{ + if (!ent->next) + return; + + sub_0805E92C(ent); + sub_0805EA98(ent); + _DmaZero(ent, 0x40); + gUnk_020354B4--; +} + +#include "area.h" + +void sub_0805E92C(u32 param_1) + +{ + if (param_1 == gArea.unk2) { + gArea.unk2 = 0; + gArea.unk3 = 0; + gArea.unk4 = 0; + } +} + +extern Entity gUnk_020369F0; +extern void sub_0801D66C(void* dst, void* src, size_t size); // dma copy +extern void sub_0805E98C(void); + +void sub_0805E958(void) + +{ + sub_0801D66C(&gUnk_03003D70, &gUnk_020369F0, 0x48); + sub_0805E98C(); +} + +void sub_0805E974(void) + +{ + sub_0801D66C(&gUnk_020369F0, &gUnk_03003D70, 0x48); +} + +void sub_0805E98C(void) + +{ + struct_03003D70* it; + + for (it = gUnk_03003D70; it < &gUnk_03003D70[9]; it++) { + it->field_0x0 = it; + it->field_0x4 = (Entity*)it; + } +} + +void sub_0805E9A8(void) + +{ + Entity* entry; + struct_03003D70* it; + + it = gUnk_03003D70; + do { + for (entry = (Entity*)it->field_0x4; (u32)entry != (u32)it; entry = entry->field_0x4) { + entry->flags &= 0xfd; + if ((entry->flags & 0x20) == 0) { + entry->flags |= 0x10; + } + } + it++; + } while (it < (gUnk_03003D70 + 9)); +} + +void sub_0805E9F4(void) + +{ + Entity* pEVar1; + Entity* next; + struct_03003D70* it; + + it = gUnk_03003D70; + do { + next = it->field_0x4; + while (pEVar1 = next, (u32)pEVar1 != (u32)it) { + next = pEVar1->field_0x4; + if ((pEVar1->flags & 0x10) != 0) { + sub_0805E79C(pEVar1); + } + } + it++; + } while (it < (gUnk_03003D70 + 9)); +} + +extern void sub_0805E374(Entity*); + +void sub_0805EA2C(Entity* ent, int kind) + +{ + Entity* pEVar1; + struct_03003D70* pEVar2; + + pEVar2 = (gUnk_03003D70 + kind); + ent->field_0x4 = (Entity*)pEVar2; + pEVar1 = pEVar2->field_0x0; + ent->field_0x0 = pEVar1; + pEVar1->field_0x4 = ent; + pEVar2->field_0x0 = ent; + if ((ent->entityType).type != 9) { + ent->spritePriority.b0 = 4; + gUnk_03003DBC++; + } else { + gUnk_020354B4++; + } + sub_0805E374(ent); +} + +void sub_0805EA78(Entity* ent, int kind) + +{ + struct_03003D70* it; + + sub_0805EA98(ent); + it = &gUnk_03003D70[kind]; + ent->field_0x0 = (Entity*)it; + ent->field_0x4 = it->field_0x4; + ((Entity*)it->field_0x4)->field_0x0 = ent; + it->field_0x4 = ent; +} + +void sub_0805EA98(Entity* ent) + +{ + if (ent == gUnk_03003DD0.field_0x8) { + gUnk_03003DD0.field_0x8 = ent->field_0x0; + } + ent->field_0x0->field_0x4 = ent->field_0x4; + ent->field_0x4->field_0x0 = ent->field_0x0; +} + +int sub_0805EABC(Entity* ent) + +{ + Entity* psVar1; + struct_03003D70 *it, *end; + + it = gUnk_03003D70; + end = (gUnk_03003D70 + 9); + do { + psVar1 = (Entity*)it->field_0x4; + while ((u32)psVar1 != (u32)it) { + if ((u32)psVar1 != (u32)ent && psVar1->entityType.type == ent->entityType.type && + psVar1->entityType.subtype == ent->entityType.subtype) { + return 1; + } + psVar1 = psVar1->field_0x4; + } + it++; + } while (it < end); + + return 0; +} + +Entity* sub_0805EB00(int type, int subtype, int kind) + +{ + Entity* it; + struct_03003D70* node; + + node = &gUnk_03003D70[kind]; + it = (Entity*)node->field_0x4; + while ((u32)it != (u32)node) { + if ((type == (it->entityType).type) && (subtype == (it->entityType).subtype)) + return it; + it = it->field_0x4; + } + return NULL; +} + +Entity* sub_0805EB2C(int type, int subtype, int kind, int form, int parameter) + +{ + Entity* it; + struct_03003D70* node; + + node = &gUnk_03003D70[kind]; + it = (Entity*)node->field_0x4; + while ((u32)it != (u32)node) { + if (type == it->entityType.type && subtype == it->entityType.subtype && form == it->entityType.form && + parameter == it->entityType.parameter) + return it; + it = it->field_0x4; + } + return NULL; +} + +Entity* sub_0805EB64(Entity* ent, int kind) + +{ + Entity* it; + struct_03003D70* end; + + end = &gUnk_03003D70[kind]; + it = ent->field_0x4; + while ((u32)it != (u32)end) { + if (it->entityType.type == ent->entityType.type && it->entityType.subtype == ent->entityType.subtype) + return it; + it = it->field_0x4; + } + return NULL; +} + +Entity* sub_0805EB9C(int type, int subtype) + +{ + Entity* it2; + struct_03003D70 *it, *end; + + it = gUnk_03003D70; + end = (gUnk_03003D70 + 9); + do { + it2 = (Entity*)it->field_0x4; + while ((u32)it2 != (u32)it) { + if ((type == (it2->entityType).type) && (subtype == (it2->entityType).subtype)) + return it2; + it2 = it2->field_0x4; + } + it++; + } while (it < end); + + return 0; +} + +void sub_0805EBCC(void) + +{ + Entity* pEVar1; + Entity* next; + struct_03003D70* it; + + it = gUnk_03003D70; + do { + next = it->field_0x4; + while (pEVar1 = next, (u32)pEVar1 != (u32)it) { + next = pEVar1->field_0x4; + if (pEVar1->entityType.type == 3) + DeleteEntity(pEVar1); + } + it++; + } while (it < (gUnk_03003D70 + 9)); + sub_0805E84C(); +} From a8819bc449d1c401e2cceb8c168aeeaaf2b83505 Mon Sep 17 00:00:00 2001 From: Behemoth Date: Thu, 6 Aug 2020 22:35:07 +0200 Subject: [PATCH 086/158] remove leftover assignment --- src/entity.c | 1 - 1 file changed, 1 deletion(-) diff --git a/src/entity.c b/src/entity.c index d1e87ff8..37de67e6 100644 --- a/src/entity.c +++ b/src/entity.c @@ -112,7 +112,6 @@ void DeleteEntity(Entity* ent) sub_0804AA1C(ent); } ent->flags = ent->flags & 0x7f; - ent->spriteSettings = ent->spriteSettings; ent->spriteSettings.b.draw = 0; ent->field_0x3c = 0; ent->bitfield = 0; From 2a36c16cf7ee7bbd8c1ae86d56dbe4d6441231dc Mon Sep 17 00:00:00 2001 From: Behemoth Date: Thu, 6 Aug 2020 23:27:46 +0200 Subject: [PATCH 087/158] cleanup --- src/entity.c | 121 +++++++++++++++++++++------------------------------ 1 file changed, 50 insertions(+), 71 deletions(-) diff --git a/src/entity.c b/src/entity.c index 37de67e6..deedca95 100644 --- a/src/entity.c +++ b/src/entity.c @@ -13,15 +13,14 @@ extern Entity gUnk_030011E8[7]; Entity* sub_0805E744(void) { - Entity* pEVar1 = gUnk_030011E8; - int i = 0; + Entity* ent = gUnk_030011E8; do { - if (pEVar1->field_0x0 == NULL) { - return pEVar1; + if (ent->field_0x0 == NULL) { + return ent; } - pEVar1 = pEVar1 + 1; - } while (pEVar1 < &gUnk_030011E8[7]); + } while (ent++, ent < &gUnk_030011E8[7]); + return NULL; } @@ -129,13 +128,12 @@ void sub_0805E870(Entity*); void sub_0805E84C(void) { - Entity* pEVar1 = &gLinkEntity; + Entity* ent = &gLinkEntity; do { - if ((int)pEVar1->field_0x0 < 0) { - sub_0805E870(pEVar1); + if ((int)ent->field_0x0 < 0) { + sub_0805E870(ent); } - pEVar1 = pEVar1 + 1; - } while (pEVar1 < (&gLinkEntity + 80)); + } while (ent++, ent < (&gLinkEntity + 80)); return; } @@ -159,20 +157,18 @@ extern EntityType gUnk_03003DB8; void sub_0805E89C(void) { - Entity* pEVar1; + Entity* ent; Entity* next; struct_03003D70* it; it = gUnk_03003D70; - if (it->field_0x4 != 0) { + if (it->field_0x4) { do { - next = it->field_0x4; - while (pEVar1 = next, (u32)pEVar1 != (u32)it) { - next = pEVar1->field_0x4; - sub_0805E79C(pEVar1); + for (ent = it->field_0x4; (u32)ent != (u32)it; ent = next) { + next = ent->field_0x4; + sub_0805E79C(ent); } - it++; - } while (it < (gUnk_03003D70 + 9)); + } while (it++, it < (gUnk_03003D70 + 9)); sub_0805E84C(); } } @@ -254,34 +250,30 @@ void sub_0805E9A8(void) it = gUnk_03003D70; do { - for (entry = (Entity*)it->field_0x4; (u32)entry != (u32)it; entry = entry->field_0x4) { + for (entry = it->field_0x4; (u32)entry != (u32)it; entry = entry->field_0x4) { entry->flags &= 0xfd; if ((entry->flags & 0x20) == 0) { entry->flags |= 0x10; } } - it++; - } while (it < (gUnk_03003D70 + 9)); + } while (it++, it < (gUnk_03003D70 + 9)); } void sub_0805E9F4(void) { - Entity* pEVar1; + Entity* ent; Entity* next; struct_03003D70* it; it = gUnk_03003D70; do { - next = it->field_0x4; - while (pEVar1 = next, (u32)pEVar1 != (u32)it) { - next = pEVar1->field_0x4; - if ((pEVar1->flags & 0x10) != 0) { - sub_0805E79C(pEVar1); - } + for (ent = it->field_0x4; (u32)ent != (u32)it; ent = next) { + next = ent->field_0x4; + if (ent->flags & 0x10) + sub_0805E79C(ent); } - it++; - } while (it < (gUnk_03003D70 + 9)); + } while (it++, it < (gUnk_03003D70 + 9)); } extern void sub_0805E374(Entity*); @@ -289,16 +281,16 @@ extern void sub_0805E374(Entity*); void sub_0805EA2C(Entity* ent, int kind) { - Entity* pEVar1; - struct_03003D70* pEVar2; + Entity* prev; + struct_03003D70* next; - pEVar2 = (gUnk_03003D70 + kind); - ent->field_0x4 = (Entity*)pEVar2; - pEVar1 = pEVar2->field_0x0; - ent->field_0x0 = pEVar1; - pEVar1->field_0x4 = ent; - pEVar2->field_0x0 = ent; - if ((ent->entityType).type != 9) { + next = (gUnk_03003D70 + kind); + ent->field_0x4 = (Entity*)next; + prev = next->field_0x0; + ent->field_0x0 = prev; + prev->field_0x4 = ent; + next->field_0x0 = ent; + if (ent->entityType.type != 9) { ent->spritePriority.b0 = 4; gUnk_03003DBC++; } else { @@ -333,22 +325,19 @@ void sub_0805EA98(Entity* ent) int sub_0805EABC(Entity* ent) { - Entity* psVar1; + Entity* ent2; struct_03003D70 *it, *end; it = gUnk_03003D70; end = (gUnk_03003D70 + 9); do { - psVar1 = (Entity*)it->field_0x4; - while ((u32)psVar1 != (u32)it) { - if ((u32)psVar1 != (u32)ent && psVar1->entityType.type == ent->entityType.type && - psVar1->entityType.subtype == ent->entityType.subtype) { + for (ent2 = (Entity*)it->field_0x4; (u32)ent2 != (u32)it; ent2 = ent2->field_0x4) { + if ((u32)ent2 != (u32)ent && ent2->entityType.type == ent->entityType.type && + ent2->entityType.subtype == ent->entityType.subtype) { return 1; } - psVar1 = psVar1->field_0x4; } - it++; - } while (it < end); + } while (it++, it < end); return 0; } @@ -360,11 +349,9 @@ Entity* sub_0805EB00(int type, int subtype, int kind) struct_03003D70* node; node = &gUnk_03003D70[kind]; - it = (Entity*)node->field_0x4; - while ((u32)it != (u32)node) { - if ((type == (it->entityType).type) && (subtype == (it->entityType).subtype)) + for (it = node->field_0x4; (u32)it != (u32)node; it = it->field_0x4) { + if (type == it->entityType.type && subtype == it->entityType.subtype) return it; - it = it->field_0x4; } return NULL; } @@ -376,12 +363,11 @@ Entity* sub_0805EB2C(int type, int subtype, int kind, int form, int parameter) struct_03003D70* node; node = &gUnk_03003D70[kind]; - it = (Entity*)node->field_0x4; - while ((u32)it != (u32)node) { + node = &gUnk_03003D70[kind]; + for (it = node->field_0x4; (u32)it != (u32)node; it = it->field_0x4) { if (type == it->entityType.type && subtype == it->entityType.subtype && form == it->entityType.form && parameter == it->entityType.parameter) return it; - it = it->field_0x4; } return NULL; } @@ -393,11 +379,9 @@ Entity* sub_0805EB64(Entity* ent, int kind) struct_03003D70* end; end = &gUnk_03003D70[kind]; - it = ent->field_0x4; - while ((u32)it != (u32)end) { + for (it = ent->field_0x4; (u32)it != (u32)end; it = it->field_0x4) { if (it->entityType.type == ent->entityType.type && it->entityType.subtype == ent->entityType.subtype) return it; - it = it->field_0x4; } return NULL; } @@ -411,14 +395,11 @@ Entity* sub_0805EB9C(int type, int subtype) it = gUnk_03003D70; end = (gUnk_03003D70 + 9); do { - it2 = (Entity*)it->field_0x4; - while ((u32)it2 != (u32)it) { + for (it2 = (Entity*)it->field_0x4; (u32)it2 != (u32)it; it2 = it2->field_0x4) { if ((type == (it2->entityType).type) && (subtype == (it2->entityType).subtype)) return it2; - it2 = it2->field_0x4; } - it++; - } while (it < end); + } while (it++, it < end); return 0; } @@ -426,19 +407,17 @@ Entity* sub_0805EB9C(int type, int subtype) void sub_0805EBCC(void) { - Entity* pEVar1; + Entity* ent; Entity* next; struct_03003D70* it; it = gUnk_03003D70; do { - next = it->field_0x4; - while (pEVar1 = next, (u32)pEVar1 != (u32)it) { - next = pEVar1->field_0x4; - if (pEVar1->entityType.type == 3) - DeleteEntity(pEVar1); + for (ent = it->field_0x4; (u32)ent != (u32)it; ent = next) { + next = ent->field_0x4; + if (ent->entityType.type == 3) + DeleteEntity(ent); } - it++; - } while (it < (gUnk_03003D70 + 9)); + } while (it++, it < (gUnk_03003D70 + 9)); sub_0805E84C(); } From 7d6faac955f6111f658f7b480ed884d3c6d09cf9 Mon Sep 17 00:00:00 2001 From: theo3 Date: Thu, 6 Aug 2020 15:43:54 -0700 Subject: [PATCH 088/158] remove extra sprite data --- baserom.gba.pal | Bin 100 -> 0 bytes baserom.gba.spr | Bin 3592 -> 0 bytes 2 files changed, 0 insertions(+), 0 deletions(-) delete mode 100644 baserom.gba.pal delete mode 100644 baserom.gba.spr diff --git a/baserom.gba.pal b/baserom.gba.pal deleted file mode 100644 index 0d552603df0d988e1cc87fe8844003ac427a0470..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 100 zcmb1fVUQ5g;pUh$nOj0>3b#ZY5H|twBOqS1kXzyv5Qi<|mZ$>aTOfKhw*=Q3Ziy@) u-gcE+!s;5gM8Zpc2|Xr3iA(B25^K~AC3rsiNC0p-TwG zF>=XegA7f}EppLija<$Vjgy|u3>A}A>?o1qr6Mmy>8btx@qRtu+wb|kUeD|IdY&gw zrC_m_f@j5Eq0=fT7oUqjoq{dmfS<$cv)Z{H%iOQNN?~y-9p-RM7`K14vLfFytpE636FPVAF<&BnG@T@`{JND zDm*$>Oc!&-GO<={7S{)5Uoq*d>?+>iBb5zB(b<7l(n7= zic!(ONn)Y=gUpEgLS5%cQkN$oA9+$U>`BxAdD1Q_MH>9u0NxYG@G) zj!8`rgk^yjPNNs4qCU=xCb3O4RC&?6-HW9M zyikAUMcFkkPJZjfCGomW%SAEYTgw`8M0omWDHeM~-V81E;*eOlS&O4pi^rd}{8LOm zpyhe-p6ER&{Yg3sSL!G`pyNqVE-FN&s1~cmI#DBPMV)9Cj*oRb*QaCq86D0+9hXLR ze0NL7FJkI#9UVXGDEL)Jz%*~ZndQytdEN|(5ius7GI>)a<}`V;Q!ESd;fDwxx>I~m z75ng~MLrxBSB2Ljvsn{9o3l}~iN7$LTV8XxrJchak^Jf$E-snNp1;m#eqbn5fbNkTuX>afFF%U;t>2R*EW#$9 z2@B_&ufn--IUMCkIPYH#$76<``C`&cJ&~gMAw8!>=R7@c8}$qn>bWA+&*|B*QP0K( zJ^kXUur=!WeUqMFzSQG!PEW9i5&wHl&kgaT_}z7xn{1#+fqwrTp zGj5C~BtIJ0nrIg6h^D(cn$io=7?md415JeInsAnwsC>>u_bLxj!7s*jOwL$~cmy#<9RN4!0(bIrS@?eh{a#YmnbacKfM&n9rZK7mWy6BzACK>61MhI_*43}EDEIL+M=~->1e7%*VjaEL`Y9;qInfc7h(C1d}d|{>a zw3Uwst&ELW=^C?g^tP2|LmEefGC7Uu_B5ih(`ZuI!jr_(0}#LuETIGv%V(_uwAZB6M^zmv`uas1nK{BNgI7G$GU^gnE4 zW{!=%d>i2|8{;K51~%DnZ?$o(%|`D<8@ENkhz(zFI~k&8x}9pPo%h5EyPc1gOTJ#> z7wpV>!%la*of{%xr=4@%b~-+>Q+LYFKg7+mb_Rd7qx#K`X|jVrKL;!4Iq;8kkS%Is z9E>h<(E5ynjuj3nn;mQyciwRD(}xZw4m$|?9|z$#92AS5aR;X+W#IWh1`fXrhGu4P zQTPUB$a^+}PD=(~iknNMw;_YQdos9mD1+qF8SJ~8!SSh19+>7tX>xKW-AVOQC;jzK z+S?^R>ty1FlZx-0sDE&xz2zkHw&eGn^!&dQ)2~wh&B>4=Q=VfcWf_?qU6M)2>zOqF zEt8u^G8ya7#Ccibu}o?dS#djL%~NtIQ{~bhm`im`E`K-Yay&Pe);Du$ zZp%fnCzp_8xg>v^%b@7j=iw^JBk1uwPSi-eHIJU{d33br(f4T{myYEzuFR)zNU3IU?QY|z6AyNItplARzSmx1vI}Uy?&{GQy^!f zkP^Q_S^^5?927F#Sjh3W3mG_E$nML9sFg*G=M*u#z6iyuMVNOLvHC<2wHJ$M|GtP0 zog3p!H?0r3Sv1$px<}mfncP&m-S}3!8C&mWZ;M;L6K?AExyiocrZcRVj)lc6j3}l# zs~F$q#kd=bX*yqw;$kt%OU1N|N^QKD<9CZOP84(hp3MFxHDw81(@F?>poC7(67~r{ zO$kcx64VctFdAIKP-qGJ+e>(SS}C<#7PDE@iF(l>UJ*@Vt7sP6M2pxiTE&~9UF;AY zVwc!0-W7Yr`=V3q6J6qf=oSY>k2oYkXO-g!ET=^*nO)8Y$Chv^e<_E0m*TT{8E2wa zaOP?8t5{gYjOA6Vs;r`TMHMmClCP{{&swpriuc5x4OKk!b2WWFD+y0sg}Q9D{CBUR zEOjGUXKKi5dx6lWUZgbaB@}VBC_WJxn^2q)i#DV9S}gwqmu|nzjA;!lTH45#WsO`F u^OiSqW8o{*e$hmSUmN#D(DXJ+#ejbsJ;6IU=+{GIOb=7zPSR^T&A$O@b4XGE From ea7ff581cd5a3b0563cb87af8b7e65483e3e4719 Mon Sep 17 00:00:00 2001 From: Behemoth Date: Fri, 7 Aug 2020 19:15:11 +0200 Subject: [PATCH 089/158] rename asm --- asm/{code_0805E744.s => code_0805EC04.s} | 0 1 file changed, 0 insertions(+), 0 deletions(-) rename asm/{code_0805E744.s => code_0805EC04.s} (100%) diff --git a/asm/code_0805E744.s b/asm/code_0805EC04.s similarity index 100% rename from asm/code_0805E744.s rename to asm/code_0805EC04.s From b3b7d65c7980c8f65f134b5dec2038f5502bcddc Mon Sep 17 00:00:00 2001 From: Behemoth Date: Fri, 7 Aug 2020 19:16:57 +0200 Subject: [PATCH 090/158] fix linker --- linker.ld | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/linker.ld b/linker.ld index b5d32309..ef1ede16 100644 --- a/linker.ld +++ b/linker.ld @@ -530,7 +530,7 @@ SECTIONS { asm/code_0805E3B0.o(.text); asm/getEmptyEntity.o(.text); src/entity.o(.text); - asm/code_0805E744.o(.text); + asm/code_0805EC04.o(.text); /* npcs */ src/npc/gentari.o(.text); src/npc/festari.o(.text); From eae5cb65219bccac66baeb3f1c49b2242da64a88 Mon Sep 17 00:00:00 2001 From: Marcus Huderle Date: Fri, 7 Aug 2020 16:46:56 -0500 Subject: [PATCH 091/158] Match asm/non_matching/postman/sub_08060700.inc --- asm/non_matching/postman/sub_08060700.inc | 51 ----------------------- src/npc/postman.c | 34 ++++++++------- 2 files changed, 19 insertions(+), 66 deletions(-) delete mode 100644 asm/non_matching/postman/sub_08060700.inc diff --git a/asm/non_matching/postman/sub_08060700.inc b/asm/non_matching/postman/sub_08060700.inc deleted file mode 100644 index 326e221b..00000000 --- a/asm/non_matching/postman/sub_08060700.inc +++ /dev/null @@ -1,51 +0,0 @@ - .include "asm/macros.inc" - - .include "constants/constants.inc" - - .syntax unified - - .text - - push {r4, r5, lr} - ldr r3, _0806074C @ =gUnk_0810A918 - adds r2, r0, #0 - adds r2, #0x68 - ldrb r2, [r2] - lsls r2, r2, #0x18 - asrs r2, r2, #0x18 - lsls r2, r2, #2 - adds r2, r2, r3 - ldr r2, [r2] - adds r3, r0, #0 - adds r3, #0x69 - ldrb r3, [r3] - lsls r3, r3, #0x18 - asrs r3, r3, #0x18 - adds r2, r2, r3 - movs r3, #0 - ldrsb r3, [r2, r3] - lsls r3, r3, #2 - ldr r2, _08060750 @ =gUnk_0810A66C - adds r3, r3, r2 - ldr r4, _08060754 @ =gRoomControls - movs r5, #0 - ldrsh r2, [r3, r5] - ldrh r5, [r4, #6] - adds r2, r2, r5 - movs r5, #2 - ldrsh r3, [r3, r5] - ldrh r4, [r4, #8] - adds r3, r3, r4 - bl sub_0807DEDC - ldr r2, _08060758 @ =gUnk_02033280 - ldrb r1, [r2, #7] - movs r0, #1 - orrs r0, r1 - strb r0, [r2, #7] - pop {r4, r5, pc} - .align 2, 0 -_0806074C: .4byte gUnk_0810A918 -_08060750: .4byte gUnk_0810A66C -_08060754: .4byte gRoomControls -_08060758: .4byte gUnk_02033280 - .syntax divided \ No newline at end of file diff --git a/src/npc/postman.c b/src/npc/postman.c index d920cba8..c26dc457 100644 --- a/src/npc/postman.c +++ b/src/npc/postman.c @@ -4,6 +4,7 @@ #include "npc.h" #include "textbox.h" #include "link.h" +#include "room.h" #include "structures.h" typedef struct { @@ -34,10 +35,16 @@ extern void sub_0800451C(Entity*); extern void sub_08078784(Entity*, u32); extern void sub_0807DEDC(Entity*, u32, u32, u32); +typedef struct { + s16 x; + s16 y; +} Coords16; + +extern Coords16 gUnk_0810A66C[]; +extern s8* gUnk_0810A918[]; + extern void (*const gUnk_0810AA24[])(Entity*); extern u32 gUnk_0810AA30[]; -extern u32** gUnk_0810A66C; -extern u32 gUnk_0810A918[]; extern struct_02033280 gUnk_02033280; void Postman(Entity* this) { @@ -208,21 +215,18 @@ void sub_080606D8(Entity* this) ShowNPCDialogue(this, &gUnk_0810AA30[iVar1 * 2]); } -#if 0 -void sub_08060700(Entity *arg0, u32 arg1) +void sub_08060700(Entity *entity, u32 arg1) { - sub_0807DEDC(arg0,arg1, - gUnk_0810A918[gUnk_0810A66C[arg0->field_0x68.HALF.HI][arg0->field_0x68.HALF.LO] * 4 + gRoomControls.roomOriginX], - gUnk_0810A918[gUnk_0810A66C[arg0->field_0x68.HALF.HI][arg0->field_0x68.HALF.LO] * 4 + gRoomControls.roomOriginY + 2]); - gUnk_02033280.unk |= 1; -} -#endif -NAKED void sub_08060700(Entity *arg0, u32 arg1) { - asm(".include \"asm/non_matching/postman/sub_08060700.inc\""); + s8* var0 = gUnk_0810A918[(s8)entity->field_0x68.HALF.LO]; + Coords16* coords = &gUnk_0810A66C[var0[(s8)entity->field_0x68.HALF.HI]]; + u32 x = coords->x + gRoomControls.roomOriginX; + u32 y = coords->y + gRoomControls.roomOriginY; + sub_0807DEDC(entity, arg1, x, y); + gUnk_02033280.unk |= 1; } void sub_0806075C(Entity *this) { - this->field_0x68.HALF.LO = 0xb; - this->field_0x68.HALF.HI = 0xff; -} \ No newline at end of file + this->field_0x68.HALF.LO = 0xb; + this->field_0x68.HALF.HI = 0xff; +} From 57198666432a4ab60588f7aed33cdd5f2b84ae93 Mon Sep 17 00:00:00 2001 From: Marcus Huderle Date: Fri, 7 Aug 2020 17:33:23 -0500 Subject: [PATCH 092/158] Match bigGoron/sub_0806CF30 --- asm/non_matching/bigGoron/sub_0806CF30.inc | 115 --------------------- src/npc/bigGoron.c | 54 ++++------ 2 files changed, 21 insertions(+), 148 deletions(-) delete mode 100644 asm/non_matching/bigGoron/sub_0806CF30.inc diff --git a/asm/non_matching/bigGoron/sub_0806CF30.inc b/asm/non_matching/bigGoron/sub_0806CF30.inc deleted file mode 100644 index 49f33c3c..00000000 --- a/asm/non_matching/bigGoron/sub_0806CF30.inc +++ /dev/null @@ -1,115 +0,0 @@ - .include "asm/macros.inc" - - .include "constants/constants.inc" - - .syntax unified - - .text - - push {r4, r5, lr} - adds r5, r0, #0 - ldrb r0, [r5, #0xc] - cmp r0, #0 - bne _0806CF5E - movs r0, #1 - strb r0, [r5, #0xc] - strb r0, [r5, #0xd] - ldrh r1, [r5, #0x2e] - adds r0, r5, #0 - adds r0, #0x68 - strh r1, [r0] - adds r0, r5, #0 - movs r1, #2 - bl sub_0805E3A0 - adds r0, r5, #0 - bl sub_0806D0B0 - adds r0, r5, #0 - bl sub_0807DD64 - b _0806CF6C -_0806CF5E: - adds r0, r5, #0 - movs r1, #0 - bl sub_0807DDAC - adds r0, r5, #0 - bl sub_0807DDE4 -_0806CF6C: - ldrb r0, [r5, #0xd] - cmp r0, #2 - beq _0806CFD4 - cmp r0, #2 - bgt _0806D000 - cmp r0, #0 - blt _0806D000 - ldr r0, _0806CFCC @ =gScreenTransition - ldr r0, [r0] - movs r1, #3 - ands r0, r1 - cmp r0, #0 - bne _0806D000 - ldr r0, _0806CFD0 @ =gLinkEntity - movs r1, #0x2e - ldrsh r2, [r0, r1] - ldrh r3, [r5, #0x2e] - movs r4, #0x2e - ldrsh r1, [r5, r4] - adds r4, r0, #0 - cmp r2, r1 - bge _0806CFA8 - adds r0, r5, #0 - adds r0, #0x68 - ldrh r0, [r0] - subs r0, #0x20 - cmp r0, r1 - bge _0806CFA8 - subs r0, r3, #1 - strh r0, [r5, #0x2e] -_0806CFA8: - movs r3, #0x2e - ldrsh r1, [r4, r3] - ldrh r2, [r5, #0x2e] - movs r4, #0x2e - ldrsh r0, [r5, r4] - cmp r1, r0 - ble _0806D000 - adds r0, r5, #0 - adds r0, #0x68 - ldrh r0, [r0] - adds r0, #0x20 - movs r3, #0x2e - ldrsh r1, [r5, r3] - cmp r0, r1 - ble _0806D000 - adds r0, r2, #1 - strh r0, [r5, #0x2e] - b _0806D000 - .align 2, 0 -_0806CFCC: .4byte gScreenTransition -_0806CFD0: .4byte gLinkEntity -_0806CFD4: - ldrb r0, [r5, #0xe] - subs r0, #1 - strb r0, [r5, #0xe] - lsls r0, r0, #0x18 - cmp r0, #0 - bne _0806D000 - bl Random - adds r4, r0, #0 - ldr r1, _0806D008 @ =gUnk_081140CC - movs r0, #3 - ands r0, r4 - lsls r0, r0, #1 - adds r0, r0, r1 - ldrh r0, [r0] - bl PlaySFX - movs r0, #7 - ands r4, r0 - lsls r4, r4, #4 - adds r4, #0x80 - strb r4, [r5, #0xe] -_0806D000: - adds r0, r5, #0 - bl sub_0806D02C - pop {r4, r5, pc} - .align 2, 0 -_0806D008: .4byte gUnk_081140CC - .syntax divided \ No newline at end of file diff --git a/src/npc/bigGoron.c b/src/npc/bigGoron.c index 5096dfa0..3b3a5101 100644 --- a/src/npc/bigGoron.c +++ b/src/npc/bigGoron.c @@ -1,11 +1,11 @@ #include "global.h" #include "entity.h" #include "link.h" +#include "structures.h" extern void (*gUnk_081140D4[])(Entity*); extern u16 gUnk_081140CC[]; -extern u32 gScreenTransition; extern void sub_0805E3A0(Entity*, u32); extern void sub_0806D0B0(Entity*); extern void sub_0807DD64(Entity*); @@ -20,16 +20,11 @@ void BigGoron(Entity* this) { gUnk_081140D4[this->entityType.form](this); } -#ifdef NON_MATCHING void sub_0806CF30(Entity* this) { - u8 bVar1; - u32 uVar2; - int iVar3; - if (this->action == 0) { this->action = 1; this->previousActionFlag = 1; - this->field_0x68 = (this->x).HALF.HI; + this->field_0x68.HWORD = this->x.HALF.HI; sub_0805E3A0(this, 2); sub_0806D0B0(this); sub_0807DD64(this); @@ -37,39 +32,32 @@ void sub_0806CF30(Entity* this) { sub_0807DDAC(this, 0); sub_0807DDE4(this); } - if (this->previousActionFlag != 2) { - if (this->previousActionFlag < 3) { - if ((gScreenTransition & 3) == 0) { - iVar3 = this->x.HALF.HI; - if (gLinkEntity.x.HALF.HI < iVar3) { - if ((this->field_0x68 - 32) < iVar3) { - this->x.HALF.HI = -1; - } + switch (this->previousActionFlag) { + case 0: + case 1: + if (gScreenTransition.frameCount % 4 == 0) { + if (gLinkEntity.x.HALF.HI < this->x.HALF.HI && this->field_0x68.HWORD - 32 < this->x.HALF.HI) { + this->x.HALF.HI--; } - if (this->x.HALF.HI > gLinkEntity.x.HALF.HI) { - if (this->x.HALF.HI < (this->field_0x68 + 32)) { - this->x.HALF.HI += 1; - } + if (gLinkEntity.x.HALF.HI > this->x.HALF.HI && this->field_0x68.HWORD + 32 > this->x.HALF.HI) { + this->x.HALF.HI++; } } - } - } else { - bVar1 = this->actionDelay -= 1; - if (bVar1 == 0) { - uVar2 = Random(); - PlaySFX(gUnk_081140CC[uVar2 & 3]); - this->actionDelay = ((u8)uVar2 & 7) * 10 + 128; - } + break; + case 2: + if (--this->actionDelay == 0) { + u32 uVar2 = Random(); + PlaySFX(gUnk_081140CC[uVar2 % 4]); + this->actionDelay = ((u8)uVar2 & 7) * 16; + this->actionDelay += 128; + } + break; + case 3: + break; } sub_0806D02C(this); } -#else -NAKED -void sub_0806CF30(Entity* this) { - asm(".include \"asm/non_matching/bigGoron/sub_0806CF30.inc\""); -} -#endif void sub_0806D00C(Entity* this) { Entity* pEVar1; From 5963472d01c0789b3c4b85c7a62a8643cd19fdca Mon Sep 17 00:00:00 2001 From: Marcus Huderle Date: Fri, 7 Aug 2020 17:38:08 -0500 Subject: [PATCH 093/158] Match cloud/sub_0809F770 --- asm/non_matching/cloud/sub_0809F770.inc | 45 ------------------------- src/object/cloud.c | 19 ++++------- 2 files changed, 6 insertions(+), 58 deletions(-) delete mode 100644 asm/non_matching/cloud/sub_0809F770.inc diff --git a/asm/non_matching/cloud/sub_0809F770.inc b/asm/non_matching/cloud/sub_0809F770.inc deleted file mode 100644 index a2c06235..00000000 --- a/asm/non_matching/cloud/sub_0809F770.inc +++ /dev/null @@ -1,45 +0,0 @@ - .include "asm/macros.inc" - - .include "constants/constants.inc" - - .syntax unified - - .text - - push {r4, r5, lr} - adds r5, r0, #0 - movs r0, #0xa3 - movs r1, #1 - movs r2, #0 - bl CreateObject - adds r4, r0, #0 - cmp r4, #0 - beq _0809F7B6 - adds r0, r5, #0 - adds r1, r4, #0 - bl PositionEntityOnTop - bl Random - ldrh r2, [r4, #0x2e] - subs r2, #0x10 - movs r3, #0x1f - adds r1, r0, #0 - ands r1, r3 - adds r2, r2, r1 - strh r2, [r4, #0x2e] - ldrh r2, [r4, #0x32] - subs r2, #0x10 - asrs r1, r0, #8 - ands r1, r3 - adds r2, r2, r1 - strh r2, [r4, #0x32] - asrs r0, r0, #0x10 - movs r1, #3 - ands r0, r1 - strb r0, [r4, #0x1e] - movs r0, #0xff - strb r0, [r4, #0x15] -_0809F7B6: - adds r0, r4, #0 - pop {r4, r5, pc} - .align 2, 0 - .syntax divided \ No newline at end of file diff --git a/src/object/cloud.c b/src/object/cloud.c index 96ffc659..54fa6621 100644 --- a/src/object/cloud.c +++ b/src/object/cloud.c @@ -156,28 +156,21 @@ void sub_0809F700(Entity* this) { } } -#ifdef NON_MATCHING Entity* sub_0809F770(Entity* this) { Entity* cloud; - s32 uVar1; + int uVar1; cloud = CreateObject(163, 1, 0); - if (cloud != NULL) { + if (cloud) { PositionEntityOnTop(this, cloud); uVar1 = Random(); - cloud->x.HALF.HI = ((cloud->x.HALF.HI - 16) + (uVar1 >> 0)) & 31; - cloud->y.HALF.HI = ((cloud->y.HALF.HI - 16) + (uVar1 >> 8)) & 31; - cloud->animationList = (u8)(uVar1 >> 16) & 3; - cloud->direction = 255; + cloud->x.HALF.HI += ((uVar1 >> 0) & 31) - 16; + cloud->y.HALF.HI += ((uVar1 >> 8) & 31) - 16; + cloud->frameIndex = (uVar1 >> 16) & 3; + cloud->direction = 0xFF; } return cloud; } -#else -NAKED -Entity* sub_0809F770(Entity* this) { - asm(".include \"asm/non_matching/cloud/sub_0809F770.inc\""); -} -#endif void sub_0809F7BC(Entity* this) { Entity* cloud; From 122084a78eb0a1e474fc791153f054529eebb606 Mon Sep 17 00:00:00 2001 From: Marcus Huderle Date: Fri, 7 Aug 2020 17:45:48 -0500 Subject: [PATCH 094/158] Match festari/sub_0805FE48 --- asm/non_matching/festari/sub_0805FE48.inc | 110 ---------------------- src/npc/festari.c | 84 ++++++++--------- 2 files changed, 40 insertions(+), 154 deletions(-) delete mode 100644 asm/non_matching/festari/sub_0805FE48.inc diff --git a/asm/non_matching/festari/sub_0805FE48.inc b/asm/non_matching/festari/sub_0805FE48.inc deleted file mode 100644 index 0f7ff560..00000000 --- a/asm/non_matching/festari/sub_0805FE48.inc +++ /dev/null @@ -1,110 +0,0 @@ - .include "asm/macros.inc" - - .include "constants/constants.inc" - - .syntax unified - - .text - - push {r4, r5, r6, r7, lr} - adds r5, r0, #0 - adds r2, r5, #0 - adds r2, #0x39 - movs r1, #0 - ldrsb r1, [r2, r1] - cmp r1, #2 - bne _0805FE80 - movs r0, #0 - strb r1, [r5, #0xc] - strb r0, [r2] - ldr r1, _0805FE7C @ =gLinkEntity - adds r0, r5, #0 - bl GetFacingDirection - bl sub_0806F5A4 - adds r1, r0, #0 - adds r0, r5, #0 - bl InitAnimationForceUpdate - adds r0, r5, #0 - bl sub_0806F118 - b _0805FF14 - .align 2, 0 -_0805FE7C: .4byte gLinkEntity -_0805FE80: - adds r4, r5, #0 - adds r4, #0x84 - ldr r1, [r4] - adds r0, r5, #0 - bl ExecuteScriptCommandSet - ldr r1, [r4] - adds r0, r5, #0 - bl sub_0805FF2C - adds r0, r5, #0 - adds r0, #0x80 - ldrh r3, [r0] - adds r7, r0, #0 - adds r6, r5, #0 - adds r6, #0x82 - cmp r3, #7 - bhi _0805FEC6 - ldrh r1, [r6] - movs r0, #1 - ands r0, r1 - cmp r0, #0 - beq _0805FEBA - movs r1, #0xfc - ands r1, r3 - ldrb r0, [r5, #0xf] - lsrs r0, r0, #1 - adds r3, r1, r0 - b _0805FEC6 -_0805FEBA: - movs r0, #0xfc - ands r0, r3 - ldrb r2, [r5, #0x14] - lsrs r1, r2, #1 - adds r3, r0, r1 - strb r2, [r5, #0xf] -_0805FEC6: - adds r4, r5, #0 - adds r4, #0x58 - ldrb r0, [r4] - cmp r3, r0 - beq _0805FED8 - adds r0, r5, #0 - adds r1, r3, #0 - bl InitAnimationForceUpdate -_0805FED8: - adds r0, r5, #0 - bl UpdateAnimationSingleFrame - adds r0, r5, #0 - adds r0, #0x5a - ldrb r1, [r0] - movs r0, #0x80 - ands r0, r1 - cmp r0, #0 - beq _0805FF02 - ldrb r0, [r4] - cmp r0, #8 - beq _0805FEFE - cmp r0, #8 - blt _0805FF02 - cmp r0, #0xc - bgt _0805FF02 - cmp r0, #0xa - blt _0805FF02 -_0805FEFE: - movs r0, #0 - strh r0, [r7] -_0805FF02: - ldrh r1, [r6] - mvns r0, r1 - adds r0, #1 - ands r1, r0 - cmp r1, #2 - bne _0805FF14 - adds r0, r5, #0 - bl sub_0806ED78 -_0805FF14: - pop {r4, r5, r6, r7, pc} - .align 2, 0 - .syntax divided \ No newline at end of file diff --git a/src/npc/festari.c b/src/npc/festari.c index b362359e..310db3fa 100644 --- a/src/npc/festari.c +++ b/src/npc/festari.c @@ -1,5 +1,6 @@ #include "global.h" #include "entity.h" +#include "functions.h" #include "npc.h" #include "link.h" @@ -30,58 +31,53 @@ void sub_0805FE10(Entity *this) sub_0807DD50(this); } -#if NON_MATCHING void sub_0805FE48(Entity *this) { - u8 bVar1; - u16 uVar2; - u32 uVar3; - u32 uVar4; + u8 bVar1; + u16 uVar2; + u32 uVar3; + u32 uVar4; - if (this->interactType == 2) { - this->action = 2; - this->interactType = 0; - InitAnimationForceUpdate(this, sub_0806F5A4(GetFacingDirection(this, &gLinkEntity))); - sub_0806F118(this); - } - else { - ExecuteScriptCommandSet(this, *(void **)&this->cutsceneBeh); - sub_0805FF2C(this, *(void **)&this->cutsceneBeh); - if (this->field_0x80 < 8) { - if ((this->field_0x82 & 1) != 0) { - uVar4 = (uVar4 & 0xfc) + (this->field_0xf >> 1); - } - else { - uVar4 = (uVar4 & 0xfc) + (this->animationState >> 1); - this->field_0xf = this->animationState; - } + if (this->interactType == 2) { + this->action = 2; + this->interactType = 0; + InitAnimationForceUpdate(this, sub_0806F5A4(GetFacingDirection(this, &gLinkEntity))); + sub_0806F118(this); } - if (uVar4 != this->animIndex) { - InitAnimationForceUpdate(this, uVar4); - } - UpdateAnimationSingleFrame(this); + else { + ExecuteScriptCommandSet(this, *(void **)&this->cutsceneBeh); + sub_0805FF2C(this, *(void **)&this->cutsceneBeh); + uVar4 = this->field_0x80.HWORD; + if (uVar4 < 8) { + if ((this->field_0x82.HWORD & 1) != 0) { + uVar4 = (uVar4 & 0xfc) + (this->field_0xf >> 1); + } + else { + uVar4 = (uVar4 & 0xfc) + (this->animationState >> 1); + this->field_0xf = this->animationState; + } + } + if (uVar4 != this->animIndex) { + InitAnimationForceUpdate(this, uVar4); + } + UpdateAnimationSingleFrame(this); - if (this->frames.b.f3) - { - switch (this->animIndex) { - case 8: - case 10: - case 11: - case 12: - this->field_0x80 = 0; + if (this->frames.b.f3) + { + switch (this->animIndex) { + case 8: + case 10: + case 11: + case 12: + this->field_0x80.HWORD = 0; + break; + } + } + if ((this->field_0x82.HWORD & (~this->field_0x82.HWORD + 1)) == 2) { + sub_0806ED78(this); } } - if ((this->field_0x82 & (~this->field_0x82 + 1)) == 2) { - sub_0806ED78(this); - } - } } -#else -NAKED -void sub_0805FE48(Entity *this) { - asm(".include \"asm/non_matching/festari/sub_0805FE48.inc\""); -} -#endif void sub_0805FF18(Entity *this) { From d21e39060f74769183fd66315a99906ed539a0a5 Mon Sep 17 00:00:00 2001 From: Ibot02 Date: Sat, 8 Aug 2020 02:18:04 +0200 Subject: [PATCH 095/158] manager6.c ok --- asm/manager6.s | 87 ------------------------------------------ linker.ld | 2 +- src/manager/manager6.c | 49 ++++++++++++++++++++++++ 3 files changed, 50 insertions(+), 88 deletions(-) delete mode 100644 asm/manager6.s create mode 100644 src/manager/manager6.c diff --git a/asm/manager6.s b/asm/manager6.s deleted file mode 100644 index 34066ffa..00000000 --- a/asm/manager6.s +++ /dev/null @@ -1,87 +0,0 @@ - .include "asm/macros.inc" - - .include "constants/constants.inc" - - .syntax unified - - .text - - thumb_func_start sub_08057CB4 -sub_08057CB4: @ 0x08057CB4 - push {r4, r5, r6, lr} - adds r4, r0, #0 - ldrb r0, [r4, #0xc] - cmp r0, #0 - bne _08057CD6 - movs r0, #1 - strb r0, [r4, #0xc] - ldrb r0, [r4, #0xa] - bl GetCurrentRoomProperty - str r0, [r4, #0x20] - cmp r0, #0 - bne _08057CD6 - adds r0, r4, #0 - bl sub_0805E900 - b _08057D42 -_08057CD6: - ldrb r0, [r4, #0xe] - cmp r0, #0 - beq _08057CE4 - ldr r0, _08057D44 @ =gLinkState - ldrb r0, [r0, #0x12] - cmp r0, #0x1e - bne _08057D42 -_08057CE4: - ldr r4, [r4, #0x20] - ldrh r0, [r4] - ldr r1, _08057D48 @ =0x0000FFFF - cmp r0, r1 - beq _08057D42 - ldr r5, _08057D4C @ =gLinkEntity - adds r6, r1, #0 -_08057CF2: - ldrb r2, [r4, #7] - movs r0, #3 - ands r0, r2 - adds r1, r5, #0 - adds r1, #0x38 - ldrb r1, [r1] - ands r0, r1 - cmp r0, #0 - beq _08057D3A - ldr r0, _08057D44 @ =gLinkState - ldr r0, [r0, #0x30] - movs r1, #0x80 - ands r0, r1 - cmp r0, #0 - bne _08057D18 - movs r0, #0x10 - ands r0, r2 - cmp r0, #0 - beq _08057D3A -_08057D18: - ldrh r0, [r4] - ldrh r1, [r4, #2] - ldrb r2, [r4, #4] - ldrb r3, [r4, #5] - bl CheckPlayerInRegion - cmp r0, #0 - beq _08057D3A - movs r1, #0x36 - ldrsh r0, [r5, r1] - cmp r0, #0 - bne _08057D3A - ldrb r0, [r4, #6] - bl GetCurrentRoomProperty - bl DoExitTransition -_08057D3A: - adds r4, #8 - ldrh r0, [r4] - cmp r0, r6 - bne _08057CF2 -_08057D42: - pop {r4, r5, r6, pc} - .align 2, 0 -_08057D44: .4byte gLinkState -_08057D48: .4byte 0x0000FFFF -_08057D4C: .4byte gLinkEntity diff --git a/linker.ld b/linker.ld index 024820ac..24d6147c 100644 --- a/linker.ld +++ b/linker.ld @@ -472,7 +472,7 @@ SECTIONS { asm/manager3.o(.text); asm/manager4.o(.text); asm/manager5.o(.text); - asm/manager6.o(.text); + src/manager/manager6.o(.text); asm/manager7.o(.text); asm/manager8.o(.text); asm/manager9.o(.text); diff --git a/src/manager/manager6.c b/src/manager/manager6.c new file mode 100644 index 00000000..4532cce1 --- /dev/null +++ b/src/manager/manager6.c @@ -0,0 +1,49 @@ +#include "global.h" +#include "entity.h" +#include "link.h" + +extern void* GetCurrentRoomProperty(u8); +extern u32 CheckPlayerInRegion(u16, u16, u8, u8); +extern void DoExitTransition(void*); +extern void sub_0805E900(Entity*); + +typedef struct { + u16 field_0x00; + u16 field_0x02; + u8 field_0x04; + u8 field_0x05; + u8 field_0x06; + union { + u8 all; + struct { + u8 layer : 2; + u8 unk1 : 2; + u8 unk2 : 1; + u8 unk3 : 3; + } PACKED b; + } PACKED field_0x07; +} unknownStruct; + +void sub_08057CB4(Entity * this) { + u32 tmp; + unknownStruct* i; + if (this->action == 0){ + this->action = 1; + this->field_0x20 = (s32) GetCurrentRoomProperty(this->entityType.form); + if (this->field_0x20 == 0) { + sub_0805E900(this); + return; + } + } + if (this->actionDelay == 0 || gLinkState.field_0x10[2] == 0x1e) { + for (i = ((unknownStruct*) this->field_0x20);i->field_0x00 != 0xFFFF; i++) { + tmp = (i->field_0x07.all & 0x3); + if (((tmp & (gLinkEntity.collisionLayer)) != 0) && + (((gLinkState.flags.all & 0x80) != 0) || ((i->field_0x07.b.unk2) != 0)) && + (CheckPlayerInRegion(i->field_0x00,i->field_0x02,i->field_0x04,i->field_0x05) != 0) && + (gLinkEntity.height.HALF.HI == 0)) { + DoExitTransition(GetCurrentRoomProperty(i->field_0x06)); + } + } + } +} From 6bf6cc2d6a7f4753ea2559cc6d6b8d1dd146ba44 Mon Sep 17 00:00:00 2001 From: Ibot02 Date: Sat, 8 Aug 2020 02:57:52 +0200 Subject: [PATCH 096/158] Added manager.h Moved the unknown struct from manager6.c to new header manager.h --- include/manager.h | 23 +++++++++++++++++++++++ src/manager/manager6.c | 22 +++------------------- 2 files changed, 26 insertions(+), 19 deletions(-) create mode 100644 include/manager.h diff --git a/include/manager.h b/include/manager.h new file mode 100644 index 00000000..66b1c363 --- /dev/null +++ b/include/manager.h @@ -0,0 +1,23 @@ +#ifndef MANAGER_H +#define MANAGER_H + +#include "global.h" + +typedef struct { + u16 field_0x00; + u16 field_0x02; + u8 field_0x04; + u8 field_0x05; + u8 field_0x06; + union { + u8 all; + struct { + u8 layer : 2; + u8 unk1 : 2; + u8 unk2 : 1; + u8 unk3 : 3; + } PACKED b; + } PACKED field_0x07; +} UnkManagerHelperStruct; + +#endif diff --git a/src/manager/manager6.c b/src/manager/manager6.c index 4532cce1..deb44026 100644 --- a/src/manager/manager6.c +++ b/src/manager/manager6.c @@ -1,32 +1,16 @@ #include "global.h" #include "entity.h" #include "link.h" +#include "manager.h" extern void* GetCurrentRoomProperty(u8); extern u32 CheckPlayerInRegion(u16, u16, u8, u8); extern void DoExitTransition(void*); extern void sub_0805E900(Entity*); -typedef struct { - u16 field_0x00; - u16 field_0x02; - u8 field_0x04; - u8 field_0x05; - u8 field_0x06; - union { - u8 all; - struct { - u8 layer : 2; - u8 unk1 : 2; - u8 unk2 : 1; - u8 unk3 : 3; - } PACKED b; - } PACKED field_0x07; -} unknownStruct; - void sub_08057CB4(Entity * this) { u32 tmp; - unknownStruct* i; + UnkManagerHelperStruct* i; if (this->action == 0){ this->action = 1; this->field_0x20 = (s32) GetCurrentRoomProperty(this->entityType.form); @@ -36,7 +20,7 @@ void sub_08057CB4(Entity * this) { } } if (this->actionDelay == 0 || gLinkState.field_0x10[2] == 0x1e) { - for (i = ((unknownStruct*) this->field_0x20);i->field_0x00 != 0xFFFF; i++) { + for (i = ((UnkManagerHelperStruct*) this->field_0x20);i->field_0x00 != 0xFFFF; i++) { tmp = (i->field_0x07.all & 0x3); if (((tmp & (gLinkEntity.collisionLayer)) != 0) && (((gLinkState.flags.all & 0x80) != 0) || ((i->field_0x07.b.unk2) != 0)) && From 2c0b39832e30964515fdfad3e1a3e3047fbd17d7 Mon Sep 17 00:00:00 2001 From: Marcus Huderle Date: Sat, 8 Aug 2020 09:06:54 -0500 Subject: [PATCH 097/158] Match keaton/sub_08032574 --- asm/non_matching/keaton/sub_08032574.inc | 50 ------------------------ src/enemy/keaton.c | 30 ++++++-------- 2 files changed, 13 insertions(+), 67 deletions(-) delete mode 100644 asm/non_matching/keaton/sub_08032574.inc diff --git a/asm/non_matching/keaton/sub_08032574.inc b/asm/non_matching/keaton/sub_08032574.inc deleted file mode 100644 index c6caea9d..00000000 --- a/asm/non_matching/keaton/sub_08032574.inc +++ /dev/null @@ -1,50 +0,0 @@ - .include "asm/macros.inc" - - .include "constants/constants.inc" - - .syntax unified - - .text - - push {r4, r5, lr} - adds r4, r0, #0 - ldr r0, [r4, #0x54] - cmp r0, #0 - beq _0803258A - adds r0, #0x41 - ldrb r1, [r0] - movs r0, #0x80 - ands r0, r1 - cmp r0, #0 - bne _080325A4 -_0803258A: - adds r5, r4, #0 - adds r5, #0x76 - ldrh r0, [r5] - subs r0, #1 - strh r0, [r5] - lsls r0, r0, #0x10 - cmp r0, #0 - beq _080325A4 - adds r0, r4, #0 - bl sub_080AEFE0 - cmp r0, #0 - bne _080325AC -_080325A4: - adds r0, r4, #0 - bl sub_0803275C - b _080325C2 -_080325AC: - adds r0, r4, #0 - bl UpdateAnimationSingleFrame - ldrh r1, [r5] - movs r0, #7 - ands r0, r1 - cmp r0, #0 - bne _080325C2 - adds r0, r4, #0 - bl sub_08032794 -_080325C2: - pop {r4, r5, pc} - .align 2, 0 - .syntax divided diff --git a/src/enemy/keaton.c b/src/enemy/keaton.c index 7c960ac7..b30c65df 100644 --- a/src/enemy/keaton.c +++ b/src/enemy/keaton.c @@ -115,26 +115,22 @@ void sub_080324FC(Entity* this) { } } -#if NON_MATCHING // r4-r5 register swap void sub_08032574(Entity* this) { - if (this->attachedEntity == NULL || !(this->attachedEntity->bitfield & 0x80)) { - (this->field_0x76)--; - if ((this->field_0x76 == 0) || (sub_080AEFE0(this) == 0)) { - sub_0803275C(this); - } else { - UpdateAnimationSingleFrame(this); - if (!(this->field_0x76 & 0x7)) { - sub_08032794(this); - } - } + if (this->attachedEntity && (this->attachedEntity->bitfield & 0x80)) { + sub_0803275C(this); + return; + } + + if (--this->field_0x76 == 0 || !sub_080AEFE0(this)) { + sub_0803275C(this); + return; + } + + UpdateAnimationSingleFrame(this); + if ((this->field_0x76 & 0x7) == 0) { + sub_08032794(this); } } -#else -NAKED -void sub_08032574(Entity* this) { - asm(".include \"asm/non_matching/keaton/sub_08032574.inc\""); -} -#endif void sub_080325C4(Entity* this) { this->actionDelay--; From b3dc734ad8a809a378c00fabf988bf5298ce8f98 Mon Sep 17 00:00:00 2001 From: Ibot02 Date: Sat, 8 Aug 2020 17:01:13 +0200 Subject: [PATCH 098/158] partial managerA.c ok first three functions decomped --- asm/managerA.s | 74 ------------------------------------------ include/manager.h | 17 ++++++++++ linker.ld | 1 + src/manager/managerA.c | 39 ++++++++++++++++++++++ 4 files changed, 57 insertions(+), 74 deletions(-) create mode 100644 src/manager/managerA.c diff --git a/asm/managerA.s b/asm/managerA.s index d021ac06..badce571 100644 --- a/asm/managerA.s +++ b/asm/managerA.s @@ -6,80 +6,6 @@ .text - thumb_func_start sub_08058380 -sub_08058380: @ 0x08058380 - push {lr} - ldr r2, _08058394 @ =gUnk_081081F4 - ldrb r1, [r0, #0xc] - lsls r1, r1, #2 - adds r1, r1, r2 - ldr r1, [r1] - bl _call_via_r1 - pop {pc} - .align 2, 0 -_08058394: .4byte gUnk_081081F4 - - thumb_func_start sub_08058398 -sub_08058398: @ 0x08058398 - push {r4, lr} - adds r4, r0, #0 - ldrh r0, [r4, #0x3c] - bl CheckFlags - cmp r0, #0 - beq _080583AA - bl DeleteThisEntity -_080583AA: - adds r0, r4, #0 - adds r0, #0x3a - ldrb r1, [r0] - lsls r1, r1, #3 - strh r1, [r4, #0x24] - adds r0, #1 - ldrb r2, [r0] - lsls r2, r2, #3 - strh r2, [r4, #0x26] - subs r0, #3 - ldrb r0, [r0] - lsls r0, r0, #4 - adds r1, r1, r0 - strh r1, [r4, #0x20] - adds r0, r4, #0 - adds r0, #0x39 - ldrb r0, [r0] - lsls r0, r0, #4 - adds r2, r2, r0 - strh r2, [r4, #0x22] - adds r0, r4, #0 - movs r1, #6 - bl sub_0805E3A0 - ldrh r0, [r4, #0x3e] - cmp r0, #0 - bne _080583E4 - movs r0, #2 - b _080583E6 -_080583E4: - movs r0, #1 -_080583E6: - strb r0, [r4, #0xc] - pop {r4, pc} - .align 2, 0 - - thumb_func_start sub_080583EC -sub_080583EC: @ 0x080583EC - push {r4, lr} - adds r4, r0, #0 - ldrh r0, [r4, #0x3e] - bl CheckFlags - cmp r0, #0 - beq _08058404 - movs r0, #2 - strb r0, [r4, #0xc] - adds r0, r4, #0 - bl sub_08058408 -_08058404: - pop {r4, pc} - .align 2, 0 - thumb_func_start sub_08058408 sub_08058408: @ 0x08058408 push {r4, r5, r6, lr} diff --git a/include/manager.h b/include/manager.h index 66b1c363..f640e419 100644 --- a/include/manager.h +++ b/include/manager.h @@ -3,6 +3,23 @@ #include "global.h" +typedef struct { + u8 unk_00[0x0c]; + u8 unk_0c; + u8 unk_0d[0x13]; + u16 unk_20; + u16 unk_22; + u16 unk_24; + u16 unk_26; + u8 unk_28[0x10]; + u8 unk_38; + u8 unk_39; + u8 unk_3a; + u8 unk_3b; + u16 unk_3c; + u16 unk_3e; +} Manager; + typedef struct { u16 field_0x00; u16 field_0x02; diff --git a/linker.ld b/linker.ld index d8c259aa..2a2dee1b 100644 --- a/linker.ld +++ b/linker.ld @@ -476,6 +476,7 @@ SECTIONS { asm/manager7.o(.text); asm/manager8.o(.text); asm/manager9.o(.text); + src/manager/managerA.o(.text); asm/managerA.o(.text); asm/managerB.o(.text); asm/managerC.o(.text); diff --git a/src/manager/managerA.c b/src/manager/managerA.c new file mode 100644 index 00000000..35729c55 --- /dev/null +++ b/src/manager/managerA.c @@ -0,0 +1,39 @@ +#include "global.h" +#include "entity.h" + +extern void (*gUnk_081081F4[])(Entity*); + +void sub_08058380(Entity* this) { + gUnk_081081F4[this->action](this); +} + + +extern u32 CheckFlags(u32); +extern void DeleteThisEntity(); +extern void sub_0805E3A0(Manager*, u32); + +void sub_08058398(Manager* this) { + + if (CheckFlags(this->unk_3c) != 0) { + DeleteThisEntity(); + } + this->unk_24 = this->unk_3a<<3; + this->unk_26 = this->unk_3b<<3; + this->unk_20 = this->unk_24 + (this->unk_38<<4); + this->unk_22 = this->unk_26 + (this->unk_39<<4); + sub_0805E3A0(this, 0x06); + if (this->unk_3e == 0) { + this->unk_0c = 2; + } else { + this->unk_0c = 1; + } +} + +extern void sub_08058408(Manager* this); + +void sub_080583EC(Manager* this) { + if (CheckFlags(this->unk_3e) != 0) { + this->unk_0c = 2; + sub_08058408(this); + } +} From 57acabe4c25d913ac9315e25dba9d68e0548e544 Mon Sep 17 00:00:00 2001 From: Marcus Huderle Date: Sat, 8 Aug 2020 10:06:40 -0500 Subject: [PATCH 099/158] Match minecart/sub_080919AC --- asm/non_matching/minecart/sub_080919AC.inc | 287 --------------------- src/object/minecart.c | 187 +++++++------- 2 files changed, 89 insertions(+), 385 deletions(-) delete mode 100644 asm/non_matching/minecart/sub_080919AC.inc diff --git a/asm/non_matching/minecart/sub_080919AC.inc b/asm/non_matching/minecart/sub_080919AC.inc deleted file mode 100644 index a3dfeadd..00000000 --- a/asm/non_matching/minecart/sub_080919AC.inc +++ /dev/null @@ -1,287 +0,0 @@ - .include "asm/macros.inc" - - .include "constants/constants.inc" - - .syntax unified - - .text - - .syntax unified - push {r4, r5, r6, r7, lr} - mov r7, r8 - push {r7} - adds r5, r0, #0 - ldr r1, _080919D4 @ =gRoomControls - movs r0, #0 - mov r8, r0 - movs r0, #7 - strb r0, [r1, #0xe] - ldr r0, _080919D8 @ =gLinkState - ldr r0, [r0, #0x30] - movs r1, #0x80 - lsls r1, r1, #5 - ands r0, r1 - cmp r0, #0 - bne _080919DC - movs r0, #1 - strb r0, [r5, #0xc] - b _08091C04 - .align 2, 0 -_080919D4: .4byte gRoomControls -_080919D8: .4byte gLinkState -_080919DC: - ldr r4, _08091A14 @ =gLinkEntity - adds r6, r4, #0 - adds r6, #0x5a - ldrb r1, [r6] - movs r7, #0xf - adds r0, r7, #0 - ands r0, r1 - cmp r0, #0 - bne _08091A22 - ldrb r1, [r5, #0x10] - movs r0, #0x7f - ands r0, r1 - strb r0, [r5, #0x10] - adds r0, r5, #0 - adds r1, r4, #0 - bl CopyPosition - ldrb r1, [r6] - movs r0, #0xf0 - ands r0, r1 - cmp r0, #0x10 - bne _08091A18 - adds r1, r5, #0 - adds r1, #0x63 - movs r0, #1 - strb r0, [r1] - b _08091C04 - .align 2, 0 -_08091A14: .4byte gLinkEntity -_08091A18: - adds r0, r5, #0 - adds r0, #0x63 - mov r1, r8 - strb r1, [r0] - b _08091C04 -_08091A22: - ldrb r0, [r5, #0x10] - movs r1, #0x80 - orrs r0, r1 - strb r0, [r5, #0x10] - mov r0, r8 - strh r0, [r4, #0x24] - adds r0, r5, #0 - bl sub_0806F69C - adds r0, r5, #0 - adds r1, r4, #0 - bl CopyPosition - adds r0, r5, #0 - adds r0, #0x29 - ldrb r1, [r0] - lsls r1, r1, #0x1d - lsrs r1, r1, #0x1d - subs r1, #1 - adds r3, r4, #0 - adds r3, #0x29 - movs r0, #7 - ands r1, r0 - ldrb r2, [r3] - movs r0, #8 - rsbs r0, r0, #0 - ands r0, r2 - orrs r0, r1 - strb r0, [r3] - adds r0, r5, #0 - bl sub_08091DDC - cmp r0, #0 - beq _08091A68 - b _08091C04 -_08091A68: - ldr r0, _08091AD8 @ =gScreenTransition - ldr r0, [r0] - ands r0, r7 - cmp r0, #0 - bne _08091A7A - movs r0, #0x9c - lsls r0, r0, #1 - bl PlaySFX -_08091A7A: - ldrb r0, [r5, #0xf] - subs r0, #1 - strb r0, [r5, #0xf] - lsls r0, r0, #0x18 - lsrs r0, r0, #0x18 - cmp r0, #0xff - bne _08091A92 - movs r0, #0x7b - bl PlaySFX - movs r0, #0x3c - strb r0, [r5, #0xf] -_08091A92: - ldr r2, _08091ADC @ =gUnk_081223C8 - ldrb r0, [r5, #0x14] - lsls r0, r0, #1 - adds r1, r0, r2 - ldrb r1, [r1] - lsls r1, r1, #0x18 - asrs r1, r1, #0x18 - adds r0, #1 - adds r0, r0, r2 - movs r2, #0 - ldrsb r2, [r0, r2] - adds r0, r5, #0 - bl sub_080002B4 - adds r4, r0, #0 - ldr r1, _08091AE0 @ =gUnk_081223D8 - ldrb r0, [r5, #0x14] - lsls r0, r0, #2 - adds r0, r0, r1 - ldr r1, [r0] - adds r0, r4, #0 - bl sub_08007DD6 - cmp r0, #0 - bne _08091AE4 - ldrb r0, [r5, #0x15] - movs r1, #0x10 - eors r0, r1 - strb r0, [r5, #0x15] - ldrb r0, [r5, #0x14] - movs r1, #2 - eors r0, r1 - strb r0, [r5, #0x14] - b _08091BD8 - .align 2, 0 -_08091AD8: .4byte gScreenTransition -_08091ADC: .4byte gUnk_081223C8 -_08091AE0: .4byte gUnk_081223D8 -_08091AE4: - adds r0, r4, #0 - subs r0, #0x64 - cmp r0, #0xb - bhi _08091BD8 - lsls r0, r0, #2 - ldr r1, _08091AF8 @ =_08091AFC - adds r0, r0, r1 - ldr r0, [r0] - mov pc, r0 - .align 2, 0 -_08091AF8: .4byte _08091AFC -_08091AFC: @ jump table - .4byte _08091B2C @ case 0 - .4byte _08091BD8 @ case 1 - .4byte _08091BD8 @ case 2 - .4byte _08091BB8 @ case 3 - .4byte _08091BB8 @ case 4 - .4byte _08091BB8 @ case 5 - .4byte _08091BB8 @ case 6 - .4byte _08091BD8 @ case 7 - .4byte _08091BB8 @ case 8 - .4byte _08091BB8 @ case 9 - .4byte _08091BB8 @ case 10 - .4byte _08091BB8 @ case 11 -_08091B2C: - ldrb r1, [r5, #0x10] - movs r0, #0xdf - ands r0, r1 - strb r0, [r5, #0x10] - adds r1, r5, #0 - adds r1, #0x3f - movs r0, #1 - strb r0, [r1] - subs r1, #3 - movs r0, #0x47 - strb r0, [r1] - adds r1, #4 - movs r0, #0x44 - strb r0, [r1] - subs r1, #5 - movs r4, #0x80 - movs r0, #0x80 - strb r0, [r1] - movs r0, #6 - strb r0, [r5, #0xc] - adds r0, r5, #0 - bl sub_08017744 - ldr r2, _08091BAC @ =gLinkState - movs r0, #0x41 - strb r0, [r2, #2] - ldr r0, [r2, #0x30] - movs r1, #0x80 - lsls r1, r1, #5 - eors r0, r1 - movs r1, #0x80 - lsls r1, r1, #0x13 - orrs r0, r1 - str r0, [r2, #0x30] - ldr r1, _08091BB0 @ =gLinkEntity - movs r0, #0x80 - lsls r0, r0, #0xa - str r0, [r1, #0x20] - movs r0, #0x80 - lsls r0, r0, #2 - strh r0, [r1, #0x24] - ldrb r0, [r5, #0x14] - lsls r0, r0, #1 - strb r0, [r1, #0x14] - ldrb r0, [r5, #0x15] - strb r0, [r1, #0x15] - ldrb r0, [r1, #0x10] - orrs r4, r0 - strb r4, [r1, #0x10] - adds r0, r5, #0 - bl sub_08004168 - ldrb r1, [r5, #0x14] - adds r1, #0xc - adds r0, r5, #0 - bl InitAnimationForceUpdate - movs r0, #0x78 - bl PlaySFX - ldr r0, _08091BB4 @ =0x00000139 - bl PlaySFX - b _08091C04 - .align 2, 0 -_08091BAC: .4byte gLinkState -_08091BB0: .4byte gLinkEntity -_08091BB4: .4byte 0x00000139 -_08091BB8: - adds r0, r5, #0 - bl sub_080002B8 - cmp r4, r0 - bne _08091BD8 - adds r0, r5, #0 - bl sub_08091C0C - ldr r1, _08091BD4 @ =gLinkEntity - ldrb r0, [r5, #0x14] - lsls r0, r0, #1 - strb r0, [r1, #0x14] - b _08091C04 - .align 2, 0 -_08091BD4: .4byte gLinkEntity -_08091BD8: - ldr r2, _08091BF8 @ =gLinkEntity - ldrb r0, [r5, #0x14] - lsls r1, r0, #1 - strb r1, [r2, #0x14] - adds r1, r5, #0 - adds r1, #0x58 - ldrb r1, [r1] - lsls r0, r0, #0x18 - lsrs r0, r0, #0x18 - cmp r1, r0 - bne _08091BFC - adds r0, r5, #0 - bl UpdateAnimationSingleFrame - b _08091C04 - .align 2, 0 -_08091BF8: .4byte gLinkEntity -_08091BFC: - ldrb r1, [r5, #0x14] - adds r0, r5, #0 - bl InitAnimationForceUpdate -_08091C04: - pop {r3} - mov r8, r3 - pop {r4, r5, r6, r7, pc} - .align 2, 0 - .syntax divided \ No newline at end of file diff --git a/src/object/minecart.c b/src/object/minecart.c index 5bf59c5d..bc434ff7 100644 --- a/src/object/minecart.c +++ b/src/object/minecart.c @@ -3,6 +3,13 @@ #include "functions.h" #include "room.h" +extern u32 sub_08091DDC(Entity*); +extern u32 sub_080002B4(Entity*, u32, u32); +extern u32 sub_08007DD6(u32, u32); +extern void sub_08017744(Entity*); +extern u32 sub_080002B8(Entity*); +extern void sub_08091C0C(Entity*); + typedef struct { u16 field_0x0; u16 field_0x2; @@ -17,6 +24,9 @@ extern void (*const gUnk_081223A8[])(Entity*); extern struct_030010EC gUnk_030010EC[]; extern BoundingBox gUnk_080FD310; +extern const s8 gUnk_081223C8[]; +extern const u32 gUnk_081223D8[]; + void Minecart(Entity* this) { gUnk_081223A8[this->action](this); this->bitfield = 0; @@ -115,111 +125,92 @@ void sub_080918A4(Entity *this) } } -#if 0 - -typedef struct { - u8 field_0x0; - u8 field_0x1; -} struct_081223C8; - -extern struct_081223C8 gUnk_081223C8[]; - -extern u32 gUnk_081223D8[]; - void sub_080919AC(Entity *this) { - u32 iVar2; - u32 uVar3; - u32 uVar4; - struct_081223C8* temp; + u32 iVar2; + u32 uVar3; - gRoomControls.unk5 = 7; - if ((gLinkState.flags.all & 0x1000) == 0) { - this->action = 1; - } - else { - if ((gLinkEntity.frames.all & 0xf) == 0) { - this->flags = this->flags & 0x7f; - CopyPosition(this,&gLinkEntity); - if ((gLinkEntity.frames.all & 0xf0) == 0x10) { - this->spriteOffsetY = 1; - } - else { - this->spriteOffsetY = 0; - } + gRoomControls.unk5 = 7; + if ((gLinkState.flags.all & 0x1000) == 0) { + this->action = 1; + return; } - else { - this->flags = this->flags | 0x80; - gLinkEntity.nonPlanarMovement = 0; - sub_0806F69C(this); - CopyPosition(this,&gLinkEntity); - gLinkEntity.spritePriority.b0 = this->spritePriority.b0 - 1; - if (!sub_08091DDC(this)) { - if ((gScreenTransition.field_0x0 & 0xf) == 0) { - PlaySFX(0x138); - } - if (--this->field_0xf == 0xff) { - PlaySFX(0x7b); - this->field_0xf = 0x3c; + if ((gLinkEntity.frames.all & 0xf) == 0) { + this->flags = this->flags & 0x7f; + CopyPosition(this,&gLinkEntity); + if ((gLinkEntity.frames.all & 0xf0) == 0x10) { + this->spriteOffsetY = 1; + } else { + this->spriteOffsetY = 0; } - uVar3 = sub_03005800(this, gUnk_081223C8[this->animationState].field_0x0, gUnk_081223C8[this->animationState].field_0x1); - iVar2 = sub_08007DD6(uVar3, gUnk_081223D8[this->animationState]); - if (iVar2 == 0) { - this->direction = this->direction ^ 0x10; - this->animationState = this->animationState ^ 2; - } - else { - switch(uVar3) { - case 100: - this->flags = this->flags & 0xdf; - this->damageType = 1; - this->field_0x3c = 0x47; - this->field_0x40 = 0x44; - this->flags2 = 0x80; - this->action = 6; - sub_08017744(this); - gLinkState.jumpStatus = 0x41; - gLinkState.flags.all = (gLinkState.flags.all ^ 0x1000) | 0x4000000; - gLinkEntity.field_0x20 = 0x20000; - gLinkEntity.nonPlanarMovement = 0x200; - gLinkEntity.animationState = this->animationState << 1; - gLinkEntity.direction = this->direction; - gLinkEntity.flags |= 0x80; - sub_08004168(this); - InitAnimationForceUpdate(this, this->animationState + 0xc); - PlaySFX(0x78); - PlaySFX(0x139); - return; - case 0x67: - case 0x68: - case 0x69: - case 0x6a: - case 0x6c: - case 0x6d: - case 0x6e: - case 0x6f: - if (uVar3 == sub_080002B8()) { - sub_08091C0C(this); - gLinkEntity.animationState *= 2; - return; - } + } else { + this->flags = this->flags | 0x80; + gLinkEntity.nonPlanarMovement = 0; + sub_0806F69C(this); + CopyPosition(this,&gLinkEntity); + gLinkEntity.spritePriority.b0 = this->spritePriority.b0 - 1; + if (!sub_08091DDC(this)) { + if ((gScreenTransition.frameCount & 0xf) == 0) { + PlaySFX(0x138); + } + + if (--this->field_0xf == 0xff) { + PlaySFX(0x7b); + this->field_0xf = 0x3c; + } + + uVar3 = sub_080002B4(this, gUnk_081223C8[this->animationState * 2], gUnk_081223C8[this->animationState * 2 + 1]); + iVar2 = sub_08007DD6(uVar3, gUnk_081223D8[this->animationState]); + if (iVar2 == 0) { + this->direction = this->direction ^ 0x10; + this->animationState = this->animationState ^ 2; + } else { + switch (uVar3) { + case 0x64: + this->flags = this->flags & 0xdf; + this->damageType = 1; + this->field_0x3c = 0x47; + this->field_0x40 = 0x44; + this->flags2 = 0x80; + this->action = 6; + sub_08017744(this); + gLinkState.jumpStatus = 0x41; + gLinkState.flags.all = (gLinkState.flags.all ^ 0x1000) | 0x4000000; + gLinkEntity.field_0x20 = 0x20000; + gLinkEntity.nonPlanarMovement = 0x200; + gLinkEntity.animationState = this->animationState << 1; + gLinkEntity.direction = this->direction; + gLinkEntity.flags |= 0x80; + sub_08004168(this); + InitAnimationForceUpdate(this, this->animationState + 0xc); + PlaySFX(0x78); + PlaySFX(0x139); + return; + case 0x67: + case 0x68: + case 0x69: + case 0x6a: + case 0x6c: + case 0x6d: + case 0x6e: + case 0x6f: + if (uVar3 == sub_080002B8(this)) { + sub_08091C0C(this); + gLinkEntity.animationState = this->animationState << 1; + return; + } + break; + } + } + + gLinkEntity.animationState = this->animationState << 1; + if (this->animIndex == this->animationState) { + UpdateAnimationSingleFrame(this); + } + else { + InitAnimationForceUpdate(this, this->animationState); } } - gLinkEntity.animationState *= 2; - if (this->animIndex == this->animationState) { - UpdateAnimationSingleFrame(this); - } - else { - InitAnimationForceUpdate(this, this->animationState); - } - } } - } } -#else -NAKED -void sub_080919AC(Entity *this) { - asm(".include \"asm/non_matching/minecart/sub_080919AC.inc\""); -} -#endif \ No newline at end of file From d53fdf3f473728c2e399253beb4e65838f5dfd56 Mon Sep 17 00:00:00 2001 From: Marcus Huderle Date: Sat, 8 Aug 2020 10:54:50 -0500 Subject: [PATCH 100/158] Match railtrack/sub_080854A8 --- asm/non_matching/railtrack/sub_080854A8.inc | 36 --------------------- src/object/railtrack.c | 24 +++++++++++--- 2 files changed, 20 insertions(+), 40 deletions(-) delete mode 100644 asm/non_matching/railtrack/sub_080854A8.inc diff --git a/asm/non_matching/railtrack/sub_080854A8.inc b/asm/non_matching/railtrack/sub_080854A8.inc deleted file mode 100644 index aa5bed89..00000000 --- a/asm/non_matching/railtrack/sub_080854A8.inc +++ /dev/null @@ -1,36 +0,0 @@ - .syntax unified - push {r4, lr} - ldr r2, _080854E0 @ =gUnk_081205E0 - ldrb r1, [r0, #0x14] - lsrs r1, r1, #1 - lsls r1, r1, #1 - adds r2, r1, r2 - ldrh r3, [r2] - adds r4, r3, #0 - ldr r2, _080854E4 @ =gUnk_080B4488 - adds r1, r1, r2 - ldr r2, [r0, #0x70] - movs r0, #0 - ldrsb r0, [r1, r0] - lsls r1, r0, #1 - subs r0, r2, r1 - ldrh r0, [r0] - cmp r3, r0 - bne _080854E8 - ldrh r0, [r2] - cmp r3, r0 - bne _080854E8 - adds r0, r1, r2 - ldrh r0, [r0] - cmp r4, r0 - bne _080854E8 - movs r0, #0 - b _080854EA - .align 2, 0 -_080854E0: .4byte gUnk_081205E0 -_080854E4: .4byte gUnk_080B4488 -_080854E8: - movs r0, #1 -_080854EA: - pop {r4, pc} - .syntax divided \ No newline at end of file diff --git a/src/object/railtrack.c b/src/object/railtrack.c index 95c418f4..f2e9a10a 100644 --- a/src/object/railtrack.c +++ b/src/object/railtrack.c @@ -12,8 +12,8 @@ extern void SetTile(u32, u32, u32); extern void (*const gUnk_081205D0[])(Entity*); +extern s8 gUnk_080B4488[][2]; extern u16 gUnk_081205E0[]; -extern s8 gUnk_080B4488[]; void Railtrack(Entity* this) { gUnk_081205D0[this->action](this); @@ -135,14 +135,30 @@ void sub_0808543C(Entity *this) u32 uVar2; s8 temp; - temp = gUnk_080B4488[(this->animationState >> 1) << 1]; + temp = gUnk_080B4488[this->animationState / 2][0]; uVar2 = COORD_TO_TILE(this); SetTile(this->field_0x74, uVar2 - temp, this->collisionLayer); SetTile(this->field_0x76, uVar2, this->collisionLayer); SetTile(this->field_0x78.HWORD, uVar2 + temp, this->collisionLayer); } -NAKED u32 sub_080854A8(Entity *this) { - asm(".include \"asm/non_matching/railtrack/sub_080854A8.inc\""); + u16 var0; + u16* var1; + s8* var2; + + var0 = gUnk_081205E0[this->animationState / 2]; + var2 = gUnk_080B4488[this->animationState / 2]; + var1 = (u16 *)this->field_0x70.WORD; + if (var0 != *(var1 - var2[0])) { + return TRUE; + } + if (var0 != *var1) { + return TRUE; + } + if (var0 != *(var1 + var2[0])) { + return TRUE; + } + + return FALSE; } \ No newline at end of file From 50a10e854900d783678da9086093531c41be6fcc Mon Sep 17 00:00:00 2001 From: Behemoth Date: Sat, 8 Aug 2020 19:17:22 +0200 Subject: [PATCH 101/158] non-matching guard --- asm/non_matching/guard/sub_08063D44.inc | 69 ------ asm/non_matching/guard/sub_08063E90.inc | 73 ------ src/npc/guard.c | 312 ++++++++++++++---------- 3 files changed, 178 insertions(+), 276 deletions(-) delete mode 100644 asm/non_matching/guard/sub_08063D44.inc delete mode 100644 asm/non_matching/guard/sub_08063E90.inc diff --git a/asm/non_matching/guard/sub_08063D44.inc b/asm/non_matching/guard/sub_08063D44.inc deleted file mode 100644 index 201f79c0..00000000 --- a/asm/non_matching/guard/sub_08063D44.inc +++ /dev/null @@ -1,69 +0,0 @@ - .include "asm/macros.inc" - - .include "constants/constants.inc" - - .syntax unified - - .text - - push {r4, lr} - adds r4, r0, #0 - ldr r0, _08063DA0 @ =gUnk_03003DBC - ldrb r0, [r0] - cmp r0, #0x46 - bhi _08063DC6 - ldrb r0, [r4, #9] - movs r1, #0x15 - eors r0, r1 - rsbs r1, r0, #0 - orrs r1, r0 - lsrs r1, r1, #0x1f - lsls r1, r1, #4 - ldr r0, _08063DA4 @ =gUnk_0810F524 - adds r1, r1, r0 - adds r0, r4, #0 - bl LoadExtraSpriteData - cmp r0, #0 - beq _08063DC6 - adds r0, r4, #0 - movs r1, #4 - bl InitializeAnimation - ldr r0, _08063DA8 @ =gUnk_0810F6BC - ldrb r1, [r4, #0xa] - lsls r1, r1, #2 - adds r1, r1, r0 - ldr r1, [r1] - adds r0, r4, #0 - movs r2, #0 - bl sub_0806EE04 - ldrb r0, [r4, #0xa] - cmp r0, #0 - blt _08063DB6 - cmp r0, #3 - bgt _08063DAC - movs r0, #0xc - bl sub_080A7EE0 - str r4, [r0, #0x50] - movs r1, #0x3c - strb r1, [r0, #0xf] - b _08063DB6 - .align 2, 0 -_08063DA0: .4byte gUnk_03003DBC -_08063DA4: .4byte gUnk_0810F524 -_08063DA8: .4byte gUnk_0810F6BC -_08063DAC: - cmp r0, #5 - bgt _08063DB6 - adds r0, r4, #0 - bl sub_08078778 -_08063DB6: - ldrb r0, [r4, #0xc] - adds r0, #1 - movs r1, #0 - strb r0, [r4, #0xc] - strb r1, [r4, #0xa] - adds r0, r4, #0 - bl sub_08063DC8 -_08063DC6: - pop {r4, pc} - .syntax divided \ No newline at end of file diff --git a/asm/non_matching/guard/sub_08063E90.inc b/asm/non_matching/guard/sub_08063E90.inc deleted file mode 100644 index 76e3d4a5..00000000 --- a/asm/non_matching/guard/sub_08063E90.inc +++ /dev/null @@ -1,73 +0,0 @@ - .syntax unified - push {r4, lr} - adds r4, r0, #0 - ldrb r0, [r4, #9] - movs r1, #0x15 - eors r0, r1 - rsbs r1, r0, #0 - orrs r1, r0 - lsrs r1, r1, #0x1f - lsls r1, r1, #4 - ldr r0, _08063EC8 @ =gUnk_0810F524 - adds r1, r1, r0 - adds r0, r4, #0 - bl LoadExtraSpriteData - cmp r0, #0 - beq _08063F1E - ldrb r0, [r4, #0xc] - adds r0, #1 - strb r0, [r4, #0xc] - ldrb r1, [r4, #0xe] - cmp r1, #0 - beq _08063ECC - adds r1, r4, #0 - adds r1, #0x70 - movs r0, #8 - strb r0, [r1] - b _08063ED2 - .align 2, 0 -_08063EC8: .4byte gUnk_0810F524 -_08063ECC: - adds r0, r4, #0 - adds r0, #0x70 - strb r1, [r0] -_08063ED2: - movs r0, #0 - strb r0, [r4, #0xe] - adds r0, r4, #0 - bl sub_0805ACC0 - adds r2, r0, #0 - cmp r2, #0 - bne _08063EF2 - ldrh r0, [r4, #0x2e] - adds r1, r4, #0 - adds r1, #0x68 - strh r0, [r1] - ldrh r0, [r4, #0x32] - adds r1, #2 - strh r0, [r1] - b _08063EFE -_08063EF2: - lsrs r1, r2, #0x10 - adds r0, r4, #0 - adds r0, #0x68 - strh r1, [r0] - adds r0, #2 - strh r2, [r0] -_08063EFE: - adds r1, r4, #0 - adds r1, #0x71 - movs r0, #0 - strb r0, [r1] - subs r1, #0x39 - movs r0, #1 - strb r0, [r1] - adds r0, r4, #0 - bl UpdateSpriteForCollisionLayer - adds r0, r4, #0 - bl sub_0807DD64 - adds r0, r4, #0 - bl sub_08063F20 -_08063F1E: - pop {r4, pc} - .syntax divided \ No newline at end of file diff --git a/src/npc/guard.c b/src/npc/guard.c index a2cd0b25..60fa3fb4 100644 --- a/src/npc/guard.c +++ b/src/npc/guard.c @@ -30,6 +30,12 @@ extern u32 sub_0805ACC0(Entity*); extern void sub_0807DDAC(Entity*, u32); extern void sub_0807DDE4(Entity*); extern void sub_0807000C(Entity*); +extern void sub_0806EE04(Entity*, void*, u32); +extern Entity* sub_080A7EE0(int); +extern void sub_08078778(Entity*); +extern void sub_0807DD64(Entity*); +void sub_08063DC8(Entity*); +void sub_08063F20(Entity*); extern void (*const gUnk_0810F544[])(Entity*); extern void (*const gUnk_0810F550[])(Entity*); @@ -40,157 +46,195 @@ extern SpriteLoadData gUnk_0810F524[]; extern void* gUnk_0810F6BC[]; extern ScreenTransition gScreenTransition; -void Guard(Entity *this) -{ - if ((this->flags & 2) != 0) { - gUnk_0810F544[this->action](this); - } - else { - sub_08063D24(this); - } +void Guard(Entity* this) { + if ((this->flags & 2) != 0) { + gUnk_0810F544[this->action](this); + } else { + sub_08063D24(this); + } } -void sub_08063D24(Entity *this) -{ - gUnk_0810F550[this->action](this); - sub_0806ED78(this); +void sub_08063D24(Entity* this) { + gUnk_0810F550[this->action](this); + sub_0806ED78(this); } -NAKED void sub_08063D44(Entity* this) { - asm(".include \"asm/non_matching/guard/sub_08063D44.inc\""); -} + Entity* ent; + u32 temp, idx; -void sub_08063DC8(Entity *this) -{ - if ((this->entityType).form == 0xff) { - this->action = 2; - this->actionDelay = 0x1e; - this->animationState = sub_0806F5A4(GetFacingDirection(this,&gLinkEntity)); - InitAnimationForceUpdate(this, this->animationState + 4); - } - else { - sub_0806EE20(this); - if (this->field_0x3e != this->animationState) { - this->animationState = this->field_0x3e; - InitializeAnimation(this, this->animationState + 4); + if (gUnk_03003DBC > 0x46) + return; + + temp = this->entityType.subtype; + temp ^= 0x15; + idx = ((-temp | temp) >> 0x1f) * 4; + if (!LoadExtraSpriteData(this, &gUnk_0810F524[idx])) + return; + + InitializeAnimation(this, 4); + sub_0806EE04(this, gUnk_0810F6BC[this->entityType.form], 0); + switch (this->entityType.form) { + case 0 ... 3: + ent = sub_080A7EE0(0xc); + ent->parent = this; + ent->field_0xf = 0x3c; + break; + case 4 ... 5: + sub_08078778(this); + break; } - else { - GetNextFrame(this); - } - if (this->interactType != 0) { - this->action = 3; - this->interactType = 0; - InitializeAnimation(this, sub_0806F5A4(GetFacingDirection(this,&gLinkEntity))); - sub_08064428(this); - } - } -} - -void sub_08063E54(Entity *this) -{ - if (--this->actionDelay == 0) { - SetRoomFlag(0xf); - } -} - -void sub_08063E6C(Entity *this) -{ - if ((gTextBox.doTextBox & 0x7f) == 0) { - this->action = 1; - InitializeAnimation(this, this->animationState + 4); - } -} - -NAKED -void sub_08063E90(Entity* this) { - asm(".include \"asm/non_matching/guard/sub_08063E90.inc\""); -} - -void sub_08063F20(Entity *this) -{ - sub_0807DDAC(this, 0); - sub_0807DDE4(this); - GetNextFrame(this); - if (this->interactType != 0) { this->action++; - this->interactType = 0; - InitializeAnimation(this, sub_0806F5A4(GetFacingDirection(this, &gLinkEntity)) + *(s8 *)&this->field_0x70); - sub_08064428(this); - } + this->entityType.form = 0; + sub_08063DC8(this); } -void sub_08063F78(Entity *this) -{ - if ((gTextBox.doTextBox & 0x7f) == 0) { - this->action = this->action - 1; - InitializeAnimation(this,(this->animationState >> 1) + 4 + *(s8 *)&this->field_0x70); - } -} - -void Guard_Head(Entity *this) -{ - u8 bVar1; - u32 uVar2; - u32 pbVar3; - u32 uVar4; - u32 pbVar5; - - uVar2 = this->frames.all & 0x3f; - pbVar5 = (this->frameIndex & 0x3f); - uVar4 = this->frameSpriteSettings & 0x3f; - if ((this->entityType).subtype == 0x15) { - if ((this->frameIndex & 0x40) != 0) { - pbVar5 = pbVar5 + 0x21; - pbVar3 = 0xffffffff; - uVar4 = 0; +void sub_08063DC8(Entity* this) { + if ((this->entityType).form == 0xff) { + this->action = 2; + this->actionDelay = 0x1e; + this->animationState = sub_0806F5A4(GetFacingDirection(this, &gLinkEntity)); + InitAnimationForceUpdate(this, this->animationState + 4); + } else { + sub_0806EE20(this); + if (this->field_0x3e != this->animationState) { + this->animationState = this->field_0x3e; + InitializeAnimation(this, this->animationState + 4); + } else { + GetNextFrame(this); + } + if (this->interactType != 0) { + this->action = 3; + this->interactType = 0; + InitializeAnimation(this, sub_0806F5A4(GetFacingDirection(this, &gLinkEntity))); + sub_08064428(this); + } } - else { - pbVar3 = (uVar2 + 0x19); - if ((this->frameSpriteSettings & 0x3f) != 0) { - uVar4 += 0x1f; - } +} + +void sub_08063E54(Entity* this) { + if (--this->actionDelay == 0) { + SetRoomFlag(0xf); } - } - else { - pbVar3 = (uVar2 + 0x46); - pbVar5 = pbVar5 + 0x2d; - if ((this->frameSpriteSettings & 0x3f) != 0) { - uVar4 += 0x4c; +} + +void sub_08063E6C(Entity* this) { + if ((gTextBox.doTextBox & 0x7f) == 0) { + this->action = 1; + InitializeAnimation(this, this->animationState + 4); } - } - uVar4--; - SetExtraSpriteFrame(this, 0, pbVar3); - SetExtraSpriteFrame(this, 1, pbVar5); - SetExtraSpriteFrame(this, 2, uVar4); - SetSpriteSubEntryOffsetData1(this, 1, 0); - SetSpriteSubEntryOffsetData2(this, 1, 2); - sub_0807000C(this); } -void sub_08064030(Entity *arg0,Entity *arg1) -{ - *(u32*)&arg1->animationState = (-gRoomVars.greatFairyState | gRoomVars.greatFairyState) >> 0x1f; +void sub_08063E90(Entity* this) { + Entity* ent; + u32 temp, idx; + u32 unk; + + temp = this->entityType.subtype; + temp ^= 0x15; + idx = ((-temp | temp) >> 0x1f) * 4; + if (!LoadExtraSpriteData(this, &gUnk_0810F524[idx])) + return; + + this->action++; + if (this->actionDelay) { + this->field_0x70.BYTES.byte0 = 8; + } else { + this->field_0x70.BYTES.byte0 = 0; + } + this->actionDelay = 0; + + unk = sub_0805ACC0(this); + if (unk == 0) { + this->field_0x68.HWORD = this->x.HALF.HI; + this->field_0x6a.HWORD = this->y.HALF.HI; + } else { + this->field_0x68.HWORD = unk >> 0x10; + this->field_0x6a.HWORD = unk; + } + this->field_0x70.BYTES.byte1 = 0; + this->collisionLayer = 1; + UpdateSpriteForCollisionLayer(this); + sub_0807DD64(this); + sub_08063F20(this); } -void sub_08064044(void) -{ - gScreenTransition.unk = 1; +void sub_08063F20(Entity* this) { + sub_0807DDAC(this, 0); + sub_0807DDE4(this); + GetNextFrame(this); + if (this->interactType != 0) { + this->action++; + this->interactType = 0; + InitializeAnimation(this, sub_0806F5A4(GetFacingDirection(this, &gLinkEntity)) + *(s8*)&this->field_0x70); + sub_08064428(this); + } } -void sub_08064050(Entity *arg0, struct_08064050 *arg1) -{ - u32 unk; - - arg1->unk2 = 0; - switch (arg0->entityType.parameter) { - case 0x11: - arg1->unk2 = 1; - break; - case 0x12: - arg1->unk2 = 2; - break; - case 0x13: - arg1->unk2 = 3; - } +void sub_08063F78(Entity* this) { + if ((gTextBox.doTextBox & 0x7f) == 0) { + this->action = this->action - 1; + InitializeAnimation(this, (this->animationState >> 1) + 4 + *(s8*)&this->field_0x70); + } +} + +void Guard_Head(Entity* this) { + u8 bVar1; + u32 uVar2; + u32 pbVar3; + u32 uVar4; + u32 pbVar5; + + uVar2 = this->frames.all & 0x3f; + pbVar5 = (this->frameIndex & 0x3f); + uVar4 = this->frameSpriteSettings & 0x3f; + if ((this->entityType).subtype == 0x15) { + if ((this->frameIndex & 0x40) != 0) { + pbVar5 = pbVar5 + 0x21; + pbVar3 = 0xffffffff; + uVar4 = 0; + } else { + pbVar3 = (uVar2 + 0x19); + if ((this->frameSpriteSettings & 0x3f) != 0) { + uVar4 += 0x1f; + } + } + } else { + pbVar3 = (uVar2 + 0x46); + pbVar5 = pbVar5 + 0x2d; + if ((this->frameSpriteSettings & 0x3f) != 0) { + uVar4 += 0x4c; + } + } + uVar4--; + SetExtraSpriteFrame(this, 0, pbVar3); + SetExtraSpriteFrame(this, 1, pbVar5); + SetExtraSpriteFrame(this, 2, uVar4); + SetSpriteSubEntryOffsetData1(this, 1, 0); + SetSpriteSubEntryOffsetData2(this, 1, 2); + sub_0807000C(this); +} + +void sub_08064030(Entity* arg0, Entity* arg1) { + *(u32*)&arg1->animationState = (-gRoomVars.greatFairyState | gRoomVars.greatFairyState) >> 0x1f; +} + +void sub_08064044(void) { + gScreenTransition.unk = 1; +} + +void sub_08064050(Entity* arg0, struct_08064050* arg1) { + u32 unk; + + arg1->unk2 = 0; + switch (arg0->entityType.parameter) { + case 0x11: + arg1->unk2 = 1; + break; + case 0x12: + arg1->unk2 = 2; + break; + case 0x13: + arg1->unk2 = 3; + } } \ No newline at end of file From 4a04881d095f8c1754cbde764da43fa614455cf5 Mon Sep 17 00:00:00 2001 From: Behemoth Date: Sat, 8 Aug 2020 19:17:42 +0200 Subject: [PATCH 102/158] non-matching leever --- asm/non_matching/leever/sub_0801FED4.inc | 72 ------- src/enemy/leever.c | 263 ++++++++++------------- 2 files changed, 118 insertions(+), 217 deletions(-) delete mode 100644 asm/non_matching/leever/sub_0801FED4.inc diff --git a/asm/non_matching/leever/sub_0801FED4.inc b/asm/non_matching/leever/sub_0801FED4.inc deleted file mode 100644 index 70d3ea26..00000000 --- a/asm/non_matching/leever/sub_0801FED4.inc +++ /dev/null @@ -1,72 +0,0 @@ - .include "asm/macros.inc" - - .include "constants/constants.inc" - - .syntax unified - - .text - - push {r4, lr} - adds r4, r0, #0 - movs r1, #1 - bl sub_08049FDC - cmp r0, #0 - bne _0801FEEA - adds r1, r4, #0 - adds r1, #0x74 - movs r0, #1 - strh r0, [r1] -_0801FEEA: - adds r0, r4, #0 - adds r0, #0x5a - ldrb r0, [r0] - movs r2, #0xf - adds r1, r2, #0 - ands r1, r0 - lsls r1, r1, #5 - strh r1, [r4, #0x24] - ldrb r0, [r4, #0xa] - cmp r0, #0 - bne _0801FF28 - ldrb r1, [r4, #0xf] - adds r0, r1, #1 - strb r0, [r4, #0xf] - adds r0, r2, #0 - ands r0, r1 - cmp r0, #0 - bne _0801FF4E - ldr r0, _0801FF24 @ =gUnk_020000B0 - ldr r1, [r0] - adds r0, r4, #0 - bl sub_0800132C - adds r1, r0, #0 - adds r0, r4, #0 - bl sub_08004596 - b _0801FF4E - .align 2, 0 -_0801FF24: .4byte gUnk_020000B0 -_0801FF28: - adds r0, r1, #0 - adds r0, #0x40 - strh r0, [r4, #0x24] - ldrb r1, [r4, #0xf] - adds r0, r1, #1 - strb r0, [r4, #0xf] - movs r0, #7 - ands r0, r1 - cmp r0, #0 - bne _0801FF4E - ldr r0, _0801FF58 @ =gUnk_020000B0 - ldr r1, [r0] - adds r0, r4, #0 - bl sub_0800132C - adds r1, r0, #0 - adds r0, r4, #0 - bl sub_08004596 -_0801FF4E: - adds r0, r4, #0 - bl sub_080AEF88 - pop {r4, pc} - .align 2, 0 -_0801FF58: .4byte gUnk_020000B0 -.syntax divided \ No newline at end of file diff --git a/src/enemy/leever.c b/src/enemy/leever.c index baefa4fd..93db5f00 100644 --- a/src/enemy/leever.c +++ b/src/enemy/leever.c @@ -22,115 +22,100 @@ extern Entity* gUnk_020000B0; extern u8 gUnk_080CA4C8[]; extern u16 gUnk_080CA4CA[]; extern s16 gSineTable[]; -void Leever(Entity *this) -{ - EnemyFunctionHandler(this, gUnk_080CA49C); - SetChildOffset(this, 0, 1, -0x10); +void Leever(Entity* this) { + EnemyFunctionHandler(this, gUnk_080CA49C); + SetChildOffset(this, 0, 1, -0x10); } -void sub_0801FC28(Entity *this) -{ - gUnk_080CA4B4[this->action](this); +void sub_0801FC28(Entity* this) { + gUnk_080CA4B4[this->action](this); } -void sub_0801FC40(Entity *this) -{ - if (this->bitfield == 0x80) { - if (this->action == 3) { - this->field_0x74 = 1; +void sub_0801FC40(Entity* this) { + if (this->bitfield == 0x80) { + if (this->action == 3) { + this->field_0x74 = 1; + } + } else { + if (this->field_0x43 != 0) { + sub_0804A9FC(this, 0x1c); + } } - } - else { - if (this->field_0x43 != 0) { - sub_0804A9FC(this, 0x1c); - } - } - sub_0804AA30(this, gUnk_080CA49C); + sub_0804AA30(this, gUnk_080CA49C); } -void sub_0801FC7C(Entity *this) -{ - if ((this->entityType).form == 0) { - sub_0804A7D4(this); - } - else { - CreateDeathFx(this, 0xf1, 0); - } -} - -void sub_0801FC9C(Entity *this) -{ - sub_0804A720(this); - this->action = 1; - this->actionDelay = Random(); -} - -void sub_0801FCB0(Entity *this) -{ - if (--this->actionDelay == 0) { - if (sub_0801FE68(this, Random() & 0x1f) != 0) { - this->action = 2; - this->spriteSettings.b.draw = TRUE; - this->direction = (GetFacingDirection(this, gUnk_020000B0) + gUnk_080CA4C8[Random() & 1]) & 0x1f; - InitializeAnimation(this, 0); - UpdateSpriteForCollisionLayer(this); - } - else { - this->actionDelay = (Random() & 0x18) + 8; - } - } -} - -void sub_0801FD2C(Entity *this) -{ - - GetNextFrame(this); - - if (this->frames.b.f3 != 0) { - this->action = 3; - if (this->entityType.form == 0) { - this->field_0x74 = 0xb4; - } - else { - this->field_0x74 = 0x6e; - } - InitializeAnimation(this,2); - } - else if (this->frames.b.f0 != 0) { - this->frames.all &= 0xfe; - this->flags |= 0x80; +void sub_0801FC7C(Entity* this) { + if ((this->entityType).form == 0) { + sub_0804A7D4(this); + } else { + CreateDeathFx(this, 0xf1, 0); } } -void sub_0801FD80(Entity *this) -{ - - sub_0801FED4(this); - GetNextFrame(this); - - if (--this->field_0x74 == 0) { - this->action = 4; - this->flags &= 0x7f; - InitializeAnimation(this, 1); - } -} - -void sub_0801FDB4(Entity *this) -{ - sub_0801FED4(this); - GetNextFrame(this); - if ((this->frames.b.f3) != 0) { +void sub_0801FC9C(Entity* this) { + sub_0804A720(this); this->action = 1; - this->actionDelay = 0xf0; - this->spriteSettings.b.draw = FALSE; - } + this->actionDelay = Random(); } -u32 sub_0801FDE4(Entity *ent, s32 x, s32 y) -{ +void sub_0801FCB0(Entity* this) { + if (--this->actionDelay == 0) { + if (sub_0801FE68(this, Random() & 0x1f) != 0) { + this->action = 2; + this->spriteSettings.b.draw = TRUE; + this->direction = (GetFacingDirection(this, gUnk_020000B0) + gUnk_080CA4C8[Random() & 1]) & 0x1f; + InitializeAnimation(this, 0); + UpdateSpriteForCollisionLayer(this); + } else { + this->actionDelay = (Random() & 0x18) + 8; + } + } +} + +void sub_0801FD2C(Entity* this) { + + GetNextFrame(this); + + if (this->frames.b.f3 != 0) { + this->action = 3; + if (this->entityType.form == 0) { + this->field_0x74 = 0xb4; + } else { + this->field_0x74 = 0x6e; + } + InitializeAnimation(this, 2); + } else if (this->frames.b.f0 != 0) { + this->frames.all &= 0xfe; + this->flags |= 0x80; + } +} + +void sub_0801FD80(Entity* this) { + + sub_0801FED4(this); + GetNextFrame(this); + + if (--this->field_0x74 == 0) { + this->action = 4; + this->flags &= 0x7f; + InitializeAnimation(this, 1); + } +} + +void sub_0801FDB4(Entity* this) { + sub_0801FED4(this); + GetNextFrame(this); + if ((this->frames.b.f3) != 0) { + this->action = 1; + this->actionDelay = 0xf0; + this->spriteSettings.b.draw = FALSE; + } +} + +u32 sub_0801FDE4(Entity* ent, s32 x, s32 y) { u32 uVar3; - u16 *puVar4; - + u16* puVar4; + if (sub_080002D4(x, y, gUnk_020000B0->collisionLayer) != 0) { return 0; } else { @@ -147,60 +132,48 @@ u32 sub_0801FDE4(Entity *ent, s32 x, s32 y) } } -bool32 sub_0801FE68(Entity *ent, s32 arg2) -{ - s32 sin, cos; - s32 x, y; - u32 i; +bool32 sub_0801FE68(Entity* ent, s32 arg2) { + s32 sin, cos; + s32 x, y; + u32 i; - - if (sub_08049FDC(ent, 1) == 0) { - return 0; - } - else { - x = gUnk_020000B0->x.WORD; - y = gUnk_020000B0->y.WORD; - sin = gSineTable[arg2 * 8] << 11; - cos = gSineTable[arg2 * 8 + 0x40] << 11; - for (i = 0; i < 8; i++) { - x += sin; - y += -cos; - if (sub_0801FDE4(ent, x >> 0x10, y >> 0x10) == 0) { - return 0; - } + if (sub_08049FDC(ent, 1) == 0) { + return 0; + } else { + x = gUnk_020000B0->x.WORD; + y = gUnk_020000B0->y.WORD; + sin = gSineTable[arg2 * 8] << 11; + cos = gSineTable[arg2 * 8 + 0x40] << 11; + for (i = 0; i < 8; i++) { + x += sin; + y += -cos; + if (sub_0801FDE4(ent, x >> 0x10, y >> 0x10) == 0) { + return 0; + } + } + return 1; } - return 1; - } } -#if NON_MATCHING -void sub_0801FED4(Entity *this) -{ - s16 sVar2; - - if (sub_08049FDC(this, 1) == 0) { - this->field_0x74 = 1; - } - sVar2 = (this->frames.all & 0xf) * 0x20; - this->nonPlanarMovement = sVar2; - if (this->entityType.form == 0) { - this->field_0xf++; - if ((this->field_0xf & 0xf) == 0) { - sub_08004596(this, sub_0800132C(this, gUnk_020000B0)); +extern u32 sub_0800132C(Entity*, Entity*); + +void sub_0801FED4(Entity* this) { + s16 sVar2; + + if (sub_08049FDC(this, 1) == 0) { + this->field_0x74 = 1; } - } - else { - this->nonPlanarMovement = sVar2 + 0x40; - this->field_0xf++; - if ((this->field_0xf & 0x7) == 0) { - sub_08004596(this, sub_0800132C(this, gUnk_020000B0)); + sVar2 = (this->frames.all & 0xf) * 0x20; + this->nonPlanarMovement = sVar2; + if (this->entityType.form == 0) { + if ((this->field_0xf++ & 0xf) == 0) { + sub_08004596(this, sub_0800132C(this, gUnk_020000B0)); + } + } else { + this->nonPlanarMovement = sVar2 + 0x40; + if ((this->field_0xf++ & 0x7) == 0) { + sub_08004596(this, sub_0800132C(this, gUnk_020000B0)); + } } - } - sub_080AEF88(this); + sub_080AEF88(this); } -#else -NAKED -void sub_0801FED4(Entity *this) { - asm(".include \"asm/non_matching/leever/sub_0801FED4.inc\""); -} -#endif \ No newline at end of file From 65b4f30266c2c3f32e124800e1ea389ea87880ae Mon Sep 17 00:00:00 2001 From: theo3 Date: Sat, 8 Aug 2020 13:21:09 -0700 Subject: [PATCH 103/158] a bit more strings --- charmap.txt | 57 +- data/data_089FC6C4.s | 3 + data/strings.s | 2192 ++++++++++++++++++++++++++++++++++++++++-- data/strings_wip.txt | 171 +--- 4 files changed, 2191 insertions(+), 232 deletions(-) diff --git a/charmap.txt b/charmap.txt index 960ff778..cc729a02 100644 --- a/charmap.txt +++ b/charmap.txt @@ -101,6 +101,7 @@ UNK_0105 = 01 05 UNK_0106 = 01 06 UNK_0107 = 01 07 COLOR = 02 @ use a color listed below right after +UNK_0300DB = 03 00 DB UNK_03005F = 03 00 5F UNK_03008D = 03 00 8D UNK_03008E = 03 00 8E @@ -180,6 +181,7 @@ UNK_03020C = 03 02 0C UNK_03020D = 03 02 0D UNK_03020E = 03 02 0E UNK_03021A = 03 02 1A +UNK_0300CC = 03 00 CC @ UNK_030D = 03 0D @ UNK_0412 = 04 12 UNK_0413 = 04 13 @@ -190,7 +192,12 @@ UNK_041006 = 04 10 06 UNK_041007 = 04 10 07 UNK_04100C = 04 10 0C UNK_041206 = 04 12 06 +UNK_041506 = 04 15 06 CHOICE_UNK = 05 1D 06 +CHOICE_3003 = 05 30 03 +CHOICE_3109 = 05 31 09 +CHOICE_310A = 05 31 0A +CHOICE_310B = 05 31 0B CHOICE_030D = 05 03 0D CHOICE_0309 = 05 03 09 CHOICE_0301 = 05 03 01 @@ -248,9 +255,33 @@ CHOICE_058F = 05 05 8F CHOICE_057C = 05 05 7C CHOICE_057D = 05 05 7D CHOICE_057E = 05 05 7E +CHOICE_2C0C = 05 2C 0C +CHOICE_2C17 = 05 2C 17 +CHOICE_2C1D = 05 2C 1D +CHOICE_2D0A = 05 2D 0A +CHOICE_311A = 05 31 1A +CHOICE_3120 = 05 31 20 +CHOICE_3126 = 05 31 26 +CHOICE_3208 = 05 32 08 +CHOICE_465F = 05 46 5F +CHOICE_463F = 05 46 3F +CHOICE_4636 = 05 46 36 +CHOICE_460B = 05 46 0B +CHOICE_4613 = 05 46 13 +CHOICE_461B = 05 46 1B +CHOICE_4624 = 05 46 24 +CHOICE_462D = 05 46 2D +CHOICE_4603 = 05 46 03 +CHOICE_4006 = 05 40 06 +CHOICE_4205 = 05 42 05 +CHOICE_4219 = 05 42 19 +CHOICE_421A = 05 42 1A +CHOICE_431E = 05 43 1E +CHOICE_4317 = 05 43 17 PLAYER = 06 00 STR_VAR_1 = 06 01 STR_VAR_2 = 06 02 +STR_VAR_3 = 06 03 UNK_070584 = 07 05 84 UNK_070506 = 07 05 06 UNK_070585 = 07 05 85 @@ -269,12 +300,33 @@ UNK_072913 = 07 29 13 UNK_072915 = 07 29 15 UNK_072B0F = 07 2B 0F UNK_072C14 = 07 2C 14 +UNK_072D00 = 07 2D 00 +UNK_073102 = 07 31 02 +UNK_07310E = 07 31 0E +UNK_073128 = 07 31 28 +UNK_073129 = 07 31 29 +UNK_07312A = 07 31 2A +UNK_074902 = 07 49 02 +UNK_074A04 = 07 4A 04 +UNK_074667 = 07 46 67 +UNK_074666 = 07 46 66 +UNK_074660 = 07 46 60 +UNK_074661 = 07 46 61 +UNK_074662 = 07 46 62 +UNK_074663 = 07 46 63 +UNK_074664 = 07 46 64 +UNK_074665 = 07 46 65 +UNK_074502 = 07 45 02 +UNK_074506 = 07 45 06 +UNK_074302 = 07 43 02 +UNK_074402 = 07 44 02 UNK_08FF = 08 FF BUTTON_A = 0C 00 BUTTON_B = 0C 01 LEFT = 0C 02 RIGHT = 0C 03 -UNK_BUTTON = 0C05 +BUTTON_UP = 0C 04 +UNK_BUTTON = 0C 05 DPAD = 0C 08 T_07 = 0F 07 T_08 = 0F 08 @@ -289,12 +341,15 @@ T_10 = 0F 10 T_11 = 0F 11 '&' = 0F 0D '/' = 0F 15 +SYM_SHELL = 0F 12 SYM_UNK = 0F 16 +SYM_UNK2 = 0F 1F @ colors WHITE = 00 GREEN = 01 RED = 02 YELLOW = 03 +BLUE = 04 @ sound and music diff --git a/data/data_089FC6C4.s b/data/data_089FC6C4.s index 49abd2e9..dff47dfe 100644 --- a/data/data_089FC6C4.s +++ b/data/data_089FC6C4.s @@ -4,6 +4,9 @@ .section .rodata .align 2 +gUnk_089FB780:: @ 089FB780 + .incbin "baserom.gba", 0x9FB780, 0x0000F44 + gUnk_089FC6C4:: @ 089FC6C4 .incbin "baserom.gba", 0x9FC6C4, 0x0000090 diff --git a/data/strings.s b/data/strings.s index 439d207e..dd55a9ba 100644 --- a/data/strings.s +++ b/data/strings.s @@ -5305,23 +5305,354 @@ gUnk_089B9555:: @ 089B9555 .string "I had no intentions of selling it, but\n" .string "you DO seem desperate.\n" .string "I'll tell you what... I'" -gUnk_089DEE20:: @ 089DEE20 - .incbin "baserom.gba", 0x9DEE20, 0x00011F7 - -gUnk_089E0017:: @ 089E0017 - .incbin "baserom.gba", 0x9E0017, 0x00002E9 - -gUnk_089E0300:: @ 089E0300 - .incbin "baserom.gba", 0x9E0300, 0x0000455 - -gUnk_089E0755:: @ 089E0755 - .incbin "baserom.gba", 0x9E0755, 0x00004AD - -gUnk_089E0C02:: @ 089E0C02 - .incbin "baserom.gba", 0x9E0C02, 0x00008FD + .string "ll sell you\n" + .string "that {COLOR}{GREEN}bottle {COLOR}{WHITE}for {STR_VAR_1} Rupees!\n" + .string "{UNK_072C14}$" + .string "Oh, the {COLOR}{GREEN}quiver{COLOR}{WHITE}? Yes, it's {STR_VAR_1} Rupees!\n" + .string "It holds many {COLOR}{GREEN}arrows{COLOR}{WHITE}, as you can see.\n" + .string "{UNK_072C14}$" + .string "{COLOR}{GREEN}10 arrows{COLOR}{WHITE} for {STR_VAR_1} Rupees.\n" + .string "An astounding bargain, you'll agree.\n" + .string "{UNK_072C14}$" + .string "{COLOR}{GREEN}30 bombs{COLOR}{WHITE} for {STR_VAR_1} Rupees! Yes,\n" + .string "for you, I give you my bulk rate!\n" + .string "{UNK_072C14}$" + .string "{COLOR}{GREEN}30 arrows {COLOR}{WHITE}for {STR_VAR_1} Rupees!\n" + .string "You can't beat that with a stick!\n" + .string "{UNK_072C14}$" + .string "You {COLOR}{YELLOW}already have a fine shield{COLOR}{WHITE}!\n" + .string "Honestly, who needs TWO {COLOR}{GREEN}shields{COLOR}{WHITE}?!$" + .string "{UNK_0301F4}Ah, my friend, you're far too clever by\n" + .string "half, but you won't be haggling with me!$" + .string "Why do you bother shopping if you're\n" + .string "not going to have enough Rupees?\n" + .string "When you have more money, perhaps\n" + .string "we can discuss this further.$" + .string "You don't seem to have enough room\n" + .string "for anything more. Hm. A pity.$" + .string "{UNK_0301F4}Much obliged, my good lad! Please,\n" + .string "do not hesitate to stop by again!$" + .string "{UNK_0301F4}Well! You ARE a big spender,\n" + .string "aren't you? Thank you!$" + .string "{UNK_0301F4}Have I told you how much I appreciate\n" + .string "your continued patronage?\n" + .string "Because I do.$" + .string "{UNK_0301F4}Hello! Is anyone back there?\n" + .string "No? Ah, well... I guess not.\n" + .string "How odd.$" + .string "{UNK_0301F4}Egad! I knew there was someone here!\n" + .string "When did you find your way back here?\n" + .string "This area is for employees only. That is\n" + .string "to say, me and me alone!$" + .string "Will you buy it?\n" + .string "{CHOICE_FF}Buy {CHOICE_2C0C}Don't buy$" + .string "$" + .string "{UNK_0301F4}I'm sorry, my good lad, but\n" + .string "that is not for sale!\n" + .string "That bottle contains food\n" + .string "for my dear little dog, Fifi...\n" + .string "What? You just want the {COLOR}{GREEN}bottle{COLOR}{WHITE}?\n" + .string "That's highly unusual...\n" + .string "Well, fine. If you feed Fifi, then\n" + .string "I guess {COLOR}{YELLOW}you can have the bottle{COLOR}{WHITE}.\n" + .string "How does that sound?\n" + .string " {CHOICE_FF}I'll do it {CHOICE_2C17}No, thanks$" + .string "Fine, fine. It's up to you.$" + .string "Excellent, excellent. He's at my\n" + .string "home right now. Thank you SO much.$" + .string "Allow me to mark the location of my\n" + .string "home here on your map.$" + .string "Bring whatever piece you like.\n" + .string "\n" + .string "The shape you like is simply\n" + .string "a matter of personal taste, goro!$" + .string "All gone! Come again.$" + .string "Yes, Kinstones!\n" + .string "Each one is different, goro!\n" + .string "This Kinstone costs {STR_VAR_1} Rupees. \n" + .string " {CHOICE_FF}Buy {CHOICE_2C1D}Don't buy$" + .string "No deal? Goro! Too bad! But come\n" + .string "again. I will always have good pieces!$" + .string "You don't have enough Rupees...\n" + .string "Come back with more money, goro.$" + .string "You have too many pieces! I can't\n" + .string "sell you any until you make room!$" + .string "Thank you, goro. Come back anytime\n" + .string "and buy the rest!$" + .string "No more, no more, but come back\n" + .string "again. I promise to find more, goro!$" + .string "I believe there should be a {COLOR}{YELLOW}doggie\n" + .string "dish{COLOR}{WHITE} for my dog back at my house.\n" + .string "Just face the {COLOR}{YELLOW}dish{COLOR}{WHITE} and press {RIGHT} to\n" + .string "dump the food into little Fifi's bowl.$" + .string "{UNK_0300D1}My master, {COLOR}{RED}Stockwell{COLOR}{WHITE}, has been coming\n" + .string "home far too late to play with me...\n" + .string "I'm so lonely.$" + .string "That {COLOR}{GREEN}boomerang{COLOR}{WHITE} is a real bargain\n" + .string "at {STR_VAR_1} Rupees.\n" + .string "{UNK_072C14}$" + .string "That {COLOR}{GREEN}big bomb bag{COLOR}{WHITE} is a real bargain\n" + .string "at {STR_VAR_1} Rupees.\n" + .string "{UNK_072C14}$" + .byte 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0x38, 0x00, 0x00, 0x00, 0x4b, 0x00, 0x00, 0x00, 0xc9, 0x00, 0x00, 0x00, 0x36, 0x01, 0x00, 0x00, 0xf3, 0x01, 0x00, 0x00, 0x7b, 0x02, 0x00, 0x00, 0x27, 0x03, 0x00, 0x00, 0x51, 0x03, 0x00, 0x00, 0x1d, 0x04, 0x00, 0x00, 0x80, 0x04, 0x00, 0x00, 0x11, 0x05, 0x00, 0x00, 0x5c, 0x05, 0x00, 0x00, 0xe0, 0x05, 0x00, 0x00, 0x47, 0x06, 0x00, 0x00 + .string "{CHOICE_FF}Buy {CHOICE_2D0A}Don't buy$" + .string "Ahh, welcome.\n" + .string "\n" + .string "Care for some of Granny's\n" + .string "homemade {COLOR}{GREEN}blue potion{COLOR}{WHITE}?\n" + .string "One sip, and you're full of energy!\n" + .string "Please, look around...$" + .string "That's Granny's homemade\n" + .string "{COLOR}{GREEN}blue potion{COLOR}{WHITE}, my dear!\n" + .string "I'll fill your bottle for 60 Rupees.\n" + .string "What do you say?\n" + .string "{UNK_072D00}$" + .string "Ever heard of Granny's\n" + .string "homemade {COLOR}{GREEN}blue potion{COLOR}{WHITE}?\n" + .string "One sip, and you're full of energy!\n" + .string "\n" + .string "Fill a {COLOR}{GREEN}bottle {COLOR}{WHITE}and carry it around with\n" + .string "you! After all, it's only 60 Rupees!\n" + .string "Will you buy some?\n" + .string "{UNK_072D00}$" + .string "Granny's stuff is the best! This is my\n" + .string "traditional {COLOR}{GREEN}red potion{COLOR}{WHITE}!\n" + .string "Shall I fill your {COLOR}{GREEN}bottle{COLOR}{WHITE} for...\n" + .string "150 Rupees? What do you say?\n" + .string "{UNK_072D00}$" + .string "Once you've tried my new {COLOR}{GREEN}red potion{COLOR}{WHITE},\n" + .string "you'll never go back to the {COLOR}{GREEN}blue{COLOR}{WHITE} stuff!\n" + .string "Shall I fill your {COLOR}{GREEN}bottle {COLOR}{WHITE}for 150 Rupees?\n" + .string "What do you say, my pretty young boy?\n" + .string "{UNK_072D00}$" + .string "Come back when you need more...\n" + .string "Hehehehe!$" + .string "Ah, yes! A fine choice, my dear!\n" + .string "That's a limited-time article!\n" + .string "One whiff, and you're wide-awake! That\n" + .string "is why it's called a {COLOR}{GREEN}wake-up mushroom{COLOR}{WHITE}!\n" + .string "Would you like to buy it for 60 Rupees?\n" + .string "{CHOICE_FF}Buy {CHOICE_FF}Don't buy$" + .string "You've got an eye for fine goods!\n" + .string "\n" + .string "That, my dear, is my highly regarded,\n" + .string "homemade {COLOR}{GREEN}blue potion{COLOR}{WHITE}!$" + .string "Ahh, welcome.\n" + .string "\n" + .string "Back for Granny's famous {COLOR}{GREEN}red{COLOR}{WHITE}\n" + .string "and {COLOR}{GREEN}blue potions{COLOR}{WHITE}?\n" + .string "One sip, and you're full of energy!\n" + .string "Which do you like, deary, red or blue?$" + .string "None for you? Well, remember that when\n" + .string "you run out of pep later! Hehehehe!$" + .string "I can't sell it to you!\n" + .string "You don't have enough Rupees!\n" + .string "Come back when you've got the money!\n" + .string "My potions are always waiting!\n" + .string "Hehehehe!$" + .string "You {COLOR}{YELLOW}don't have an empty bottle{COLOR}{WHITE} that I\n" + .string "can fill with medicine!\n" + .string "Come back with an {COLOR}{GREEN}empty bottle{COLOR}{WHITE}!\n" + .string "$" + .string "Heheheh... Just face the sleepy\n" + .string "snoozer and press {RIGHT}...\n" + .string "That'll pop his eyes right open!\n" + .string "POP!$" + .byte 0xff, 0xff, 0xff, 0x68, 0x00, 0x00, 0x00, 0x69, 0x00, 0x00, 0x00, 0x7b, 0x00, 0x00, 0x00, 0x93, 0x00, 0x00, 0x00, 0xa6, 0x00, 0x00, 0x00, 0xb9, 0x00, 0x00, 0x00, 0xd3, 0x00, 0x00, 0x00, 0xee, 0x00, 0x00, 0x00, 0xff, 0x00, 0x00, 0x00, 0x18, 0x01, 0x00, 0x00, 0x2c, 0x01, 0x00, 0x00, 0x40, 0x01, 0x00, 0x00, 0x5a, 0x01, 0x00, 0x00, 0x6c, 0x01, 0x00, 0x00, 0x87, 0x01, 0x00, 0x00, 0x9b, 0x01, 0x00, 0x00, 0xb5, 0x01, 0x00, 0x00, 0xc7, 0x01, 0x00, 0x00, 0xdf, 0x01, 0x00, 0x00, 0xf3, 0x01, 0x00, 0x00, 0x0a, 0x02, 0x00, 0x00, 0x22, 0x02, 0x00, 0x00, 0x3d, 0x02, 0x00, 0x00, 0x56, 0x02, 0x00, 0x00, 0x72, 0x02, 0x00, 0x00, 0x8c, 0x02, 0x00, 0x00, 0x00 + .string "Wallet 300 Rupees$" + .string "Arrow Quiver 300 Rupees$" + .string "10 Bombs 30 Rupees$" + .string "30 Bombs 80 Rupees$" + .string "10 Remote Bombs 40 Rupees$" + .string "30 Remote Bombs 100 Rupees$" + .string "Shield 40 Rupees$" + .string "Mirror Shield 350 Rupees$" + .string "10 Arrows 20 Rupees$" + .string "30 Arrows 50 Rupees$" + .string "Figurine Ticket 15 Rupees$" + .string "Bottle 200 Rupees$" + .string "Magic Boomerang" + .string " 350 Rupees$" + .string "Fire Rod 350 Rupees$" + .string "Sleeping Shroom 50 Rupees$" + .string "Brioche 10 Rupees$" + .string "Slice of Cake 10 Rupees$" + .string "Croissant 20 Rupees$" + .string "Slice of Pie 20 Rupees$" + .string "Red Top Piece 30 Rupees$" + .string "Red Bottom Piece 30 Rupees$" + .string "Blue Top Piece 30 Rupees$" + .string "Blue Bottom Piece 30 Rupees$" + .string "Green Top Piece 30 Rupees$" + .string "Dog Food$" + .byte 0xff, 0xff, 0xff, 0x6c, 0x00, 0x00, 0x00, 0x6d, 0x00, 0x00, 0x00, 0xfe, 0x00, 0x00, 0x00, 0x44, 0x01, 0x00, 0x00, 0xb2, 0x01, 0x00, 0x00, 0xf9, 0x01, 0x00, 0x00, 0x87, 0x02, 0x00, 0x00, 0x88, 0x02, 0x00, 0x00, 0x6f, 0x03, 0x00, 0x00, 0xa1, 0x03, 0x00, 0x00, 0xdd, 0x03, 0x00, 0x00, 0x88, 0x04, 0x00, 0x00, 0xb8, 0x07, 0x00, 0x00, 0x44, 0x08, 0x00, 0x00, 0xb1, 0x08, 0x00, 0x00, 0xb9, 0x09, 0x00, 0x00, 0x10, 0x0a, 0x00, 0x00, 0xe0, 0x0a, 0x00, 0x00, 0xc3, 0x0b, 0x00, 0x00, 0x6b, 0x0c, 0x00, 0x00, 0xbc, 0x0c, 0x00, 0x00, 0x80, 0x0d, 0x00, 0x00, 0x07, 0x0e, 0x00, 0x00, 0x3e, 0x10, 0x00, 0x00, 0xb0, 0x11, 0x00, 0x00, 0xf7, 0x11, 0x00, 0x00, 0x74, 0x12, 0x00, 0x00, 0x00 + .string "In my youth, I was called {COLOR}{RED}Gregal the\n" + .string "Great{COLOR}{WHITE}! I was even a little famous...\n" + .string "But lately my limbs have grown heavy,\n" + .string "and I can't even stand up...$" + .string "Goodness! We rarely get visitors here.\n" + .string "Tell me, how did you get here?$" + .string "I can't believe {COLOR}{RED}old Gregal{COLOR}{WHITE} is sick.\n" + .string "He was looking so healthy.\n" + .string "I guess something just took\n" + .string "hold of him...$" + .string "Nobody believes me, but I " + .string "saw a ghost\n" + .string "that has taken hold of Granddad!$" + .string "Once, my grandfather used something\n" + .string "called a {COLOR}{GREEN}Gust Jar{COLOR}{WHITE} to fight monsters...\n" + .string "He was a miiiighty hero, they say.\n" + .string "But now he's sick in bed...$" + .string "$" + .string "What? An evil spirit had taken hold of\n" + .string "me? And you drove it away?\n" + .string "You... You might be right!... I can\n" + .string "already feel my energy returning!\n" + .string "I'll be able to get out of bed soon!\n" + .string "What's your name? ...{PLAYER}?\n" + .string "Thank you, my boy. You saved me.$" + .string "If you're in the area, come by for\n" + .string "a quick visit!$" + .string "If you find yourself in the area again,\n" + .string "drop by and see us.$" + .string "Well, well, well!\n" + .string "\n" + .string "Look at how the color has come back to\n" + .string "his face! How can I ever thank you?\n" + .string "I still have a hard time believing he'd\n" + .string "been possessed by a monster, though.$" + .string "Welcome, welcome. Long, long ago, and\n" + .string "then an age before that...\n" + .string "Our tribe abandoned the place you call\n" + .string "the {COLOR}{RED}Wind Ruins{COLOR}{WHITE}...\n" + .string "With our magic, we moved our palace up\n" + .string "into the skies. We are the {COLOR}{RED}Wind Tribe{COLOR}{WHITE}.\n" + .string "We have been watching, and we know all\n" + .string "that happens on your surface world.\n" + .string "We know a small boy collects {COLOR}{GREEN}elements\n" + .string "{COLOR}{WHITE}to lift the curse from a princess.{COLOR}{GREEN}\n" + .string "{COLOR}{WHITE}We know of {COLOR}{RED}Vaati {COLOR}{WHITE}and his evil acts...\n" + .string "The" + .string " winds tell us these things.{COLOR}{RED}\n" + .string "{COLOR}{WHITE}The {COLOR}{GREEN}Wind Element{COLOR}{WHITE} that you seek lies\n" + .string "deep in the {COLOR}{RED}Palace of Winds {COLOR}{WHITE}above me.\n" + .string "{COLOR}{YELLOW}When the blade has been infused with\n" + .string "the four elements, the way to the\n" + .string "light force shall open.{COLOR}{WHITE} So it is told\n" + .string "in the legends of the Wind Tribe.\n" + .string "Vaati himself may already know this.\n" + .string "\n" + .string "Surface dwellers are not permitted to\n" + .string "enter our palace, but you are special.\n" + .string "You may continue to the roof.$" + .string "There is a {COLOR}{YELLOW}tornado {COLOR}{WHITE}atop this house.\n" + .string "Enter it to go to the {COLOR}{RED}Palace of Winds{COLOR}{WHITE}.\n" + .string "Revive the sacred blade and\n" + .string "rescue the princess quickly.$" + .string "Oh, it's {PLAYER}!\n" + .string "Thank you for your help earlier!\n" + .string "I've got something else good for you,\n" + .string "so here, please take it!$" + .string "Ohh, if it isn't old {PLAYER}!\n" + .string "\n" + .string "My quest to match Kinstones has taken\n" + .string "me all the way up here.\n" + .string "I'm not sure you've noticed yet, but\n" + .string "we're on top of the clouds!\n" + .string "The Wind Tribe lives here!\n" + .string "\n" + .string "They protect the path to the {COLOR}{RED}Palace\n" + .string "of Winds{COLOR}{WHITE}, where the {COLOR}{GREEN}Wind Element{COLOR}{WHITE} lies!$" + .string "Well, well, well!\n" + .string "{PLAYER}!\n" + .string "Thanks for helping! Because of you, my\n" + .string "gramps is all better now!$" + .string "We of the Wind Tribe are very skilled\n" + .string "at finding {COLOR}{GREEN}Kinstone pieces{COLOR}{WHITE}. \n" + .string "So skilled in fact, that we have more of\n" + .string "them than we can manage!\n" + .string "We can't even store them all. I wish\n" + .string "someone would ta" + .string "ke a few from us.$" + .string "Oh, it's you!\n" + .string "\n" + .string "I thought I'd never make it back here,\n" + .string "but thanks to your Kinstone, I did!\n" + .string "If you're looking for something, go talk\n" + .string "to the elderly woman on the 4th floor.\n" + .string "The winds carry all sort of valuable\n" + .string "information to her.$" + .string "There is a device in the {COLOR}{RED}palace {COLOR}{WHITE}that\n" + .string "allows one to fly in the sky.\n" + .string "When I get bigger, I want to explore\n" + .string "the {COLOR}{RED}palace {COLOR}{WHITE}and find it...\n" + .string "But I'm too scared right now!$" + .string "Up on the roof, there's a huge whirlwind\n" + .string "that can take you up to the {COLOR}{RED}palace{COLOR}{WHITE}.$" + .string "In this tower dwell the people of the\n" + .string "Wind Tribe.\n" + .string "We left your surface world long ago to\n" + .string "serve a greater duty.\n" + .string "We now protect the gate to the {COLOR}{RED}Palace\n" + .string "of Winds{COLOR}{WHITE}, where the {COLOR}{GREEN}Wind Element{COLOR}{WHITE} lies.$" + .string "Although we are of the Wind Tribe, we,\n" + .string "too, once lived on the surface.\n" + .string "Once, the place you call the {COLOR}{RED}Wind Ruins{COLOR}{WHITE}\n" + .string "was, to us, a home.$" + .string "Wahh! You surprised me!\n" + .string "\n" + .string "Normally, surface dwellers can't walk\n" + .string "on the clouds like we do!\n" + .string "My sister and I went to the {COLOR}{YELLOW}Picori\n" + .string "Festival{COLOR}{WHITE} in Hyrule Town,\n" + .string "and when we came back, there\n" + .string "were monsters everywhere!\n" + .string "I bet if I could just fuse a {COLOR}{GREEN}Kinstone{COLOR}{WHITE},\n" + .string "I could call a good homeward wind...\n" + .string "But there are monsters about, so I\n" + .string "can't search for Kinstones.\n" + .string "And even if I could, I still can't\n" + .string "find anyone to fuse them with!\n" + .string "But you look pretty strong!\n" + .string "\n" + .string "Do you think you could maybe search\n" + .string "for {COLOR}{GREEN}Kinstones {COLOR}{WHITE}for me?\n" + .string "If you do, I'll tell you about a good\n" + .string "spot for {COLOR}{YELLOW}fusing{COLOR}{WHITE}!$" + .string "Oh, this is bad. This is really bad...\n" + .string "\n" + .string "Oh, hey! Wow... Look at that!\n" + .string "\n" + .string "I've never seen a surface dweller walk\n" + .string "on clouds before!\n" + .string "You must be quite pure of heart!\n" + .string "\n" + .string "Maybe one such as you would listen to\n" + .string "my tale of woe.\n" + .string "You see, I went down to the surface\n" + .string "with my sister for the {COLOR}{YELLOW}Picori Festival{COLOR}{WHITE}...\n" + .string "But on our way home, we lost the wind\n" + .string "entirely! Now, we can't get home!$" + .string "I hear that {COLOR}{GREEN}Kinstone pieces {COLOR}{WHITE}are\n" + .string "sometimes hidden among the clouds!$" + .string "The {COLOR}{RED}Picori Festival {COLOR}{WHITE}in Hyrule Town was\n" + .string "really fun and all...\n" + .string "But how unlucky to be stranded here,\n" + .string "unable to return home!$" + .string "This is the home of the {COLOR}{RED}Wind Tribe{COLOR}{WHITE}.\n" + .string "We left the surface long ago.\n" + .string "Now, we guard the entrance to the\n" + .string "{COLOR}{RED}Palace of Winds{COLOR}{WHITE}...\n" + .string "...In this palace, the {COLOR}{GREEN}Wind\n" + .string "Element {COLOR}{WHITE}resides.\n" + .string "But...that hole you just came out of...\n" + .string "Does that lead to the world below?\n" + .string "Oh, it appeared after you {COLOR}{YELLOW}fused\n" + .string "Kinstones{COLOR}{WHITE}? That's amazing.$" + .byte 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0x54, 0x00, 0x00, 0x00, 0x55, 0x00, 0x00, 0x00, 0xb8, 0x00, 0x00, 0x00, 0x1a, 0x01, 0x00 gUnk_089E14FF:: @ 089E14FF - .incbin "baserom.gba", 0x9E14FF, 0x0001811 + .incbin "baserom.gba", 0x9E14FF, 0x1811 gUnk_089E2D10:: @ 089E2D10 .incbin "baserom.gba", 0x9E2D10, 0x0004F8E @@ -5340,55 +5671,1782 @@ gUnk_089EB89D:: @ 089EB89D gUnk_089EC66B:: @ 089EC66B .incbin "baserom.gba", 0x9EC66B, 0x000282D - -gUnk_089EEE98:: @ 089EEE98 - .incbin "baserom.gba", 0x9EEE98, 0x000004C - -gUnk_089EEEE4:: @ 089EEEE4 - .incbin "baserom.gba", 0x9EEEE4, 0x000000A - -gUnk_089EEEEE:: @ 089EEEEE - .incbin "baserom.gba", 0x9EEEEE, 0x0000008 - -gUnk_089EEEF6:: @ 089EEEF6 - .incbin "baserom.gba", 0x9EEEF6, 0x000110A - -gUnk_089F0000:: @ 089F0000 - .incbin "baserom.gba", 0x9F0000, 0x0000009 - -gUnk_089F0009:: @ 089F0009 - .incbin "baserom.gba", 0x9F0009, 0x0000049 - -gUnk_089F0052:: @ 089F0052 - .incbin "baserom.gba", 0x9F0052, 0x0000638 - -gUnk_089F068A:: @ 089F068A - .incbin "baserom.gba", 0x9F068A, 0x00001A8 - -gUnk_089F0832:: @ 089F0832 - .incbin "baserom.gba", 0x9F0832, 0x00017D5 - -gUnk_089F2007:: @ 089F2007 - .incbin "baserom.gba", 0x9F2007, 0x0000312 - -gUnk_089F2319:: @ 089F2319 - .incbin "baserom.gba", 0x9F2319, 0x000012C - -gUnk_089F2445:: @ 089F2445 - .incbin "baserom.gba", 0x9F2445, 0x0002110 - -gUnk_089F4555:: @ 089F4555 - .incbin "baserom.gba", 0x9F4555, 0x0004081 - -gUnk_089F85D6:: @ 089F85D6 - .incbin "baserom.gba", 0x9F85D6, 0x00009B4 - -gUnk_089F8F8A:: @ 089F8F8A - .incbin "baserom.gba", 0x9F8F8A, 0x00027F6 - -gUnk_089FB780:: @ 089FB780 - .incbin "baserom.gba", 0x9FB780, 0x0000F44 - - - - + .string "n sometime! If I'm\n" + .string "awake, I'll fuse {COLOR}{YELLOW}Kinstones{COLOR}{WHITE} with you!$" + .string "I know! Do you want to {COLOR}{YELLOW}fuse Kins" + .string "tones{COLOR}{WHITE}\n" + .string "with me? I have a very special one!$" + .string "I'm really blazing away on these shoes\n" + .string "for Princess Zelda!$" + .string "?!\n" + .string "Huh? What now?!\n" + .string "There are more new shoes!\n" + .string "You probably won't believe this, but...\n" + .string "I have a strange habit of making\n" + .string "shoes in my sleep!\n" + .string "So you must have come here because\n" + .string "you want some of my shoes, right?\n" + .string "Tell you what: because you were nice\n" + .string "enough to wake me, you can have 'em!\n" + .string "Hold on a sec, though. I just want\n" + .string "to finish this one last bit...$" + .string "$" + .string "{UNK_030204}Those {COLOR}{GREEN}Pegasus Boots {COLOR}{WHITE}will make you\n" + .string "want to dash everywhere!\n" + .string "It's really fun to run headlong into\n" + .string "stuff and really shake things up!$" + .string "{UNK_0301FC}My {COLOR}{GREEN}Pegasus Boots {COLOR}{WHITE}are so comfortable!\n" + .string "\n" + .string "They'll make your little piggies\n" + .string "squeal with delight!$" + .string "{UNK_0301F8}Thanks for wearing my shoes with such\n" + .string "pride, valued customer!$" + .string "$" + .string "$" + .string "$" + .string "$" + .string "$" + .string "$" + .string "$" + .string "$" + .string "$" + .string "{UNK_030204}Hey, hey! You're {PLAYER}, right?\n" + .string "\n" + .string "You're the one who brought the sword\n" + .string "to {COLOR}{RED}Master Melari{COLOR}{WHITE}!\n" + .string "You're on a quest to help the princess,\n" + .string "aren't you?\n" + .string "I wish I could go on a quest, but\n" + .string "then who'd make {COLOR}{RED}Rem{COLOR}{WHITE}'s shoes for him?$" + .string "{UNK_0301FC}Ho, ho! You need {COLOR}{GREEN}Pegasus Boots{COLOR}{WHITE}?\n" + .string "Why, you're just in time!\n" + .string "We made a pair just now while\n" + .string "{COLOR}{RED}Rem {COLOR}{WHITE}was sleeping.\n" + .string "But only {COLOR}{RED}Rem {COLOR}{WHITE}can put the\n" + .string "finishing touches on them...$" + .string "{UNK_0301F8}Ha, ha! That sleepyhead {COLOR}{RED}Rem {COLOR}{WHITE}is nearly\n" + .string "impossible to wake up...\n" + .string "If you want to wake him, you'll need\n" + .string "to get an item from {COLOR}{RED}Syrup{COLOR}{WHITE}'s hut.\n" + .string "It's a little bit of a trek, but\n" + .string "we'll mark it on your map for you.$" + .string "{UNK_030204}Hey, hey! {COLOR}{RED}Rem {COLOR}{WHITE}has some other urgent\n" + .string "business he should be working on...\n" + .string "So please, wake him up as soon as\n" + .string "you can! Time's a-wastin'!$" + .string "{UNK_0301FA}Ho, ho! We've done all we can with\n" + .string "these shoes.\n" + .string "You'll need to go to {COLOR}{RED}Syrup{COLOR}{WHITE}'s hut so\n" + .string "Rem can put on the finishing touches.$" + .string "{UNK_0301F8}Ha, ha! {COLOR}{RED}Syrup{COLOR}{WHITE}'s hut is north of the\n" + .string "{COLOR}{RED}Minish Woods{COLOR}{WHITE}. Just check your {COLOR}{GREEN}map{COLOR}{WHITE}.$" + .string "I'll make you shoes! So why don't you\n" + .string "come back later?$" + .string "The magic hag may have something\n" + .string "good.$" + .string "Sometimes we help him make shoes.$" + .string "$" + .byte 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xc0, 0x00, 0x00, 0x00, 0xc1, 0x00, 0x00, 0x00, 0x4b, 0x01, 0x00, 0x00, 0x8c, 0x01, 0x00, 0x00, 0xc1, 0x01, 0x00, 0x00, 0xf0, 0x01, 0x00, 0x00, 0x3b, 0x02, 0x00, 0x00, 0x59, 0x02, 0x00, 0x00, 0xc2, 0x02, 0x00, 0x00, 0xdb, 0x02, 0x00, 0x00, 0x0e, 0x03, 0x00, 0x00, 0x30, 0x03, 0x00, 0x00, 0x75, 0x03, 0x00, 0x00, 0xa6, 0x03, 0x00, 0x00, 0xf2, 0x03, 0x00, 0x00, 0x20, 0x05, 0x00, 0x00, 0x5e, 0x05, 0x00, 0x00, 0x6c, 0x05, 0x00, 0x00, 0x74, 0x05, 0x00, 0x00, 0x84, 0x05, 0x00, 0x00, 0xc0, 0x05, 0x00, 0x00, 0xfa, 0x05, 0x00, 0x00, 0x38, 0x06, 0x00, 0x00, 0x0d, 0x07, 0x00, 0x00, 0xff, 0x07, 0x00, 0x00, 0xb5, 0x08, 0x00, 0x00, 0x03, 0x09, 0x00, 0x00, 0x75, 0x09, 0x00, 0x00, 0x4a, 0x0a, 0x00, 0x00, 0xf0, 0x0a, 0x00, 0x00, 0x15, 0x0b, 0x00, 0x00, 0x30, 0x0b, 0x00, 0x00, 0xb0, 0x0b, 0x00, 0x00, 0xcd, 0x0b, 0x00, 0x00, 0xea, 0x0b, 0x00, 0x00, 0x1e, 0x0c, 0x00, 0x00, 0x4a, 0x0c, 0x00, 0x00, 0x94, 0x0c, 0x00, 0x00, 0xf3, 0x0c, 0x00, 0x00, 0x3c, 0x0d, 0x00, 0x00, 0x8a, 0x0d, 0x00, 0x00, 0x8b, 0x0d, 0x00, 0x00, 0x8c, 0x0d, 0x00, 0x00, 0x8d, 0x0d, 0x00, 0x00, 0x8e, 0x0d, 0x00, 0x00, 0x8f, 0x0d, 0x00, 0x00, 0x90, 0x0d, 0x00, 0x00, 0x91, 0x0d, 0x00, 0x00, 0x00 + .string "Hi there, and welcome to the\n" + .string "Happy Hearth! Need a rest, kid?\n" + .string "Well, we can take care of that--and\n" + .string "even throw in a {COLOR}{GREEN}present {COLOR}{WHITE}to boot!\n" + .string "{UNK_074502}$" + .string "{CHOICE_FF}Forget it {CHOICE_FF}{STR_VAR_1} Rupee room\n" + .string "{CHOICE_FF}{STR_VAR_2} Rupee room {CHOICE_FF}{STR_VAR_3} Rupee room$" + .string "...Right. {STR_VAR_1} Rupees.\n" + .string "The cheap room it is, then.\n" + .string "{UNK_074506}$" + .string "Yessir!\n" + .string "{STR_VAR_1} Rupees gets you a regular room!\n" + .string "{UNK_074506}$" + .string "Well now! Come from a good family, do\n" + .string "we? A luxury room for {STR_VAR_1} Rupees!\n" + .string "{UNK_074506}$" + .string "All payment up front, please!$" + .string "What's this?!\n" + .string "Son, you've got no cash!\n" + .string "Come back when you grow up\n" + .string "and get a job!\n" + .string "Now off with you! Shoo!$" + .string "Thanks!\n" + .string "Enjoy your stay!$" + .string "Ho, now! You don't want to stay?\n" + .string "Well, come again!$" + .string "That's the exit!\n" + .string "Enjoy your stay!$" + .string "And how was your stay?\n" + .string "Did you find your present?\n" + .string "Please come again!$" + .string "It seems you really get what\n" + .string "you pay for here...$" + .string "But I guess you don't really know the\n" + .string "difference until you try each room...$" + .string "Hey, what do you know about that\n" + .string "{COLOR}{GREEN}light force{COLOR}{WHITE} stuff?\n" + .string "People are saying it's some kind of\n" + .string "treasure that can grant you any wish.\n" + .string "Anyway, now the king's in a big huff\n" + .string "trying to find it.\n" + .string "It's strange, though. He never struck\n" + .string "me as the greedy type before.\n" + .string "It's almost like he's a different\n" + .string "person now...$" + .string "What's with the king lately?\n" + .string "He was never like that before...$" + .string "Yaaay! Yaaay!$" + .string "Waaait!$" + .string "Hey!!! Wait up!$" + .string "It's so nice to be here at last!\n" + .string "And such a big town it is!$" + .string "Staying in this inn forever\n" + .string "would start to be a bother...$" + .string "We need to find a nice, quiet place\n" + .string "where we can settle down.$" + .string "The {COLOR}{RED}king {COLOR}{WHITE}is just terrible lately!\n" + .string "Things are going crazy around here!\n" + .string "Would you believe a guard came into my\n" + .string "house the other day?\n" + .string "It's true! And get this! He demanded\n" + .string "that I give him some kind of {QT}{COLOR}{GREEN}force{COLOR}{WHITE}{QT}!$" + .string "Normal people can't enter the\n" + .string "{COLOR}{RED}Royal Valley{COLOR}{WHITE}.\n" + .string "There's a cryptic forest that leads\n" + .string "into it, and people get lost there.\n" + .string "The secret to finding your way through\n" + .string "is reading all the signs!\n" + .string "You'll never make it unless you read\n" + .string "each one carefully.$" + .string "You want to go to the tomb of\n" + .string "{COLOR}{RED}King Gustaf of Hyrule{COLOR}{WHITE}?\n" + .string "Then you'd probably better talk\n" + .string "to {COLOR}{RED}Dampé{COLOR}{WHITE}.\n" + .string "He's the gravedigger at the cemetery.\n" + .string "Nobody knows the {COLOR}{RED}Royal Crypt {COLOR}{WHITE}better!$" + .string "Have you stayed in the best room yet?\n" + .string "I'm trying to figure out where to stay.$" + .string "The source of water in Hyrule? You\n" + .string "must mean the spring at {COLOR}{RED}Veil Falls{COLOR}{WHITE}.\n" + .string "That's where all our water comes from.$" + .string "I can't say this in front of the kids...\n" + .string "I don't want to alarm them, you know?\n" + .string "But...{COLOR}{RED}H" + .string "yrule Castle {COLOR}{WHITE}has been looking\n" + .string "pretty weird lately.\n" + .string "I can't say exactly " + .string "what it is, though.\n" + .string "It's just...different. Strange.$" + .string "I saw it! I saw it with my own two eyes!\n" + .string "\n" + .string "There were monsters inside\n" + .string "of {COLOR}{RED}Hyrule Castle{COLOR}{WHITE}!\n" + .string "I've heard rumors that some people who\n" + .string "went to the castle never came back!$" + .string "School let out early today!\n" + .string "Lucky!{T_0B}$" + .string "Hey! Wait up! Wait for me!$" + .string "I've got no choice.\n" + .string "I guess I'll take shelter here...\n" + .string "I know I can hold my own, but those are\n" + .string "some fierce monsters out there...$" + .string "My mom's a wife, not a wolf.$" + .string "My mom's a wife, not a fife!$" + .string "I can't believe she found a place!\n" + .string "I am so jealous.$" + .string "Maybe I should go pay her\n" + .string "a visit sometime.$" + .string "Things just aren't the same around\n" + .string "here now that it's just the two of us.$" + .string "I hate being here all alone!\n" + .string "\n" + .string "I wish I could find a nice place\n" + .string "to live, like the others did...$" + .string "It's no fun being here alone. Maybe\n" + .string "I should look for a nice house, too.$" + .string "Being all alone is...well, lonely. I'm\n" + .string "going to find myself a nice home, too.$" + .byte 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xa0, 0x01, 0x00, 0x00, 0xa1, 0x01, 0x00, 0x00, 0x32, 0x02, 0x00, 0x00, 0x71, 0x02, 0x00, 0x00, 0x9b, 0x03, 0x00, 0x00, 0xba, 0x04, 0x00, 0x00, 0xe9, 0x04, 0x00, 0x00, 0xbc, 0x05, 0x00, 0x00, 0x3c, 0x06, 0x00, 0x00, 0x3d, 0x06, 0x00, 0x00, 0xcb, 0x06, 0x00, 0x00, 0x0c, 0x07, 0x00, 0x00, 0xd8, 0x07, 0x00, 0x00, 0x38, 0x09, 0x00, 0x00, 0x67, 0x09, 0x00, 0x00, 0xff, 0x09, 0x00, 0x00, 0x33, 0x0a, 0x00, 0x00, 0x34, 0x0a, 0x00, 0x00, 0xae, 0x0a, 0x00, 0x00, 0xed, 0x0a, 0x00, 0x00, 0xc8, 0x0b, 0x00, 0x00, 0x1d, 0x0d, 0x00, 0x00, 0x4c, 0x0d, 0x00, 0x00, 0xe8, 0x0d, 0x00, 0x00, 0x21, 0x0e, 0x00, 0x00, 0x22, 0x0e, 0x00, 0x00, 0x95, 0x0e, 0x00, 0x00, 0xd4, 0x0e, 0x00, 0x00, 0xe1, 0x0f, 0x00, 0x00, 0xe2, 0x10, 0x00, 0x00, 0x11, 0x11, 0x00, 0x00, 0xaa, 0x11, 0x00, 0x00, 0x01, 0x12, 0x00, 0x00, 0x02, 0x12, 0x00, 0x00, 0x03, 0x12, 0x00, 0x00, 0x9f, 0x12, 0x00, 0x00, 0xde, 0x12, 0x00, 0x00, 0xca, 0x13, 0x00, 0x00, 0xe1, 0x14, 0x00, 0x00, 0x10, 0x15, 0x00, 0x00, 0xa9, 0x15, 0x00, 0x00, 0x56, 0x16, 0x00, 0x00, 0x57, 0x16, 0x00, 0x00, 0x58, 0x16, 0x00, 0x00, 0xed, 0x16, 0x00, 0x00, 0x2c, 0x17, 0x00, 0x00, 0x25, 0x18, 0x00, 0x00, 0x46, 0x19, 0x00, 0x00, 0x75, 0x19, 0x00, 0x00, 0x0e, 0x1a, 0x00, 0x00, 0x95, 0x1a, 0x00, 0x00, 0x72, 0x1b, 0x00, 0x00, 0x73, 0x1b, 0x00, 0x00, 0x08, 0x1c, 0x00, 0x00, 0x47, 0x1c, 0x00, 0x00, 0x4f, 0x1d, 0x00, 0x00, 0x60, 0x1e, 0x00, 0x00, 0x8f, 0x1e, 0x00, 0x00, 0x28, 0x1f, 0x00, 0x00, 0xb6, 0x1f, 0x00, 0x00, 0x9f, 0x20, 0x00, 0x00, 0xa0, 0x20, 0x00, 0x00, 0x71, 0x21, 0x00, 0x00, 0xb0, 0x21, 0x00, 0x00, 0xe3, 0x22, 0x00, 0x00, 0xe8, 0x23, 0x00, 0x00, 0x17, 0x24, 0x00, 0x00, 0xee, 0x24, 0x00, 0x00, 0x8b, 0x25, 0x00, 0x00, 0xc4, 0x26, 0x00, 0x00, 0xc5, 0x26, 0x00, 0x00, 0x74, 0x27, 0x00, 0x00, 0xb3, 0x27, 0x00, 0x00, 0xf4, 0x28, 0x00, 0x00, 0x9f, 0x29, 0x00, 0x00, 0xa0, 0x29, 0x00, 0x00, 0xa1, 0x29, 0x00, 0x00, 0xa2, 0x29, 0x00, 0x00, 0xa3, 0x29, 0x00, 0x00, 0xa4, 0x29, 0x00, 0x00, 0xa5, 0x29, 0x00, 0x00, 0x53, 0x2a, 0x00, 0x00, 0x92, 0x2a, 0x00, 0x00, 0xb2, 0x2b, 0x00, 0x00, 0x75, 0x2c, 0x00, 0x00, 0x76, 0x2c, 0x00, 0x00, 0x77, 0x2c, 0x00, 0x00, 0x78, 0x2c, 0x00, 0x00, 0x79, 0x2c, 0x00, 0x00, 0x7a, 0x2c, 0x00, 0x00, 0x7b, 0x2c, 0x00, 0x00, 0x3d, 0x2d, 0x00, 0x00, 0x7c, 0x2d, 0x00, 0x00, 0x9f, 0x2f, 0x00, 0x00, 0x80, 0x30, 0x00, 0x00, 0xc4, 0x31, 0x00, 0x00, 0xe7, 0x31, 0x00, 0x00, 0x62, 0x32, 0x00, 0x00, 0x8e, 0x32, 0x00, 0x00, 0xd0, 0x32, 0x00, 0x00, 0x3a, 0x33, 0x00, 0x00, 0x81, 0x33, 0x00, 0x00, 0xc3, 0x33, 0x00, 0x00, 0x20, 0x34, 0x00, 0x00, 0x00, 0x03, 0x00, 0xd0 + .string "I am {COLOR}{RED}Swiftblade{COLOR}{WHITE}, finest swordsman\n" + .string "in all of Hyrule!\n" + .string "If you {COLOR}{YELLOW}train {COLOR}{WHITE}with me, I guarantee that\n" + .string "you will increase your skill dramatically!$" + .string "So? Would you like to {COLOR}{YELLOW}train {COLOR}{WHITE}here?\n" + .string " {CHOICE_FF}Please {CHOICE_465F}No, thanks$" + .string "We shall start with the most basic\n" + .string "of all techniques!\n" + .string "I shall" + .string " teach you...the {COLOR}{GREEN}Spin Attack{COLOR}{WHITE}!\n" + .string "{COLOR}{GREEN}\n" + .string "{COLOR}{YELLOW}First!!{COLOR}{WHITE}\n" + .string "Press and hold your sword button...\n" + .string "{COLOR}{YELLOW}Second!!{COLOR}{WHITE}\n" + .string "Build up enough power...\n" + .string "{COLOR}{YELLOW}Third!!{COLOR}{WHITE}\n" + .string "Releeeease your destructive might!!\n" + .string "That's all, young swordsman!!\n" + .string "\n" + .string "Do you understand?\n" + .string " {CHOICE_FF}Yes {CHOICE_4603}No$" + .string "Haha! Very good!\n" + .string "You are a very quick student.\n" + .string "But one must FEEL the technique,\n" + .string "not just hear about it!\n" + .string "That's why I will now possess your body\n" + .string "so as to demonstrate the technique!\n" + .string "I call " + .string "this the {COLOR}{YELLOW}Swiftblade Possession\n" + .string "technique{COLOR}{WHITE} of training!\n" + .string "Watch this!!\n" + .string "Urrngh!!\n" + .string "Poe...Zeh...SHUN!!!$" + .string "Phew...\n" + .string "Now! You must try it {COLOR}{YELLOW}yourself{COLOR}{WHITE}!\n" + .string "{UNK_074660}$" + .string "Yes!! Fine work! You're a quick study.\n" + .string "I will now give you this {COLOR}{GREEN}Tiger Scroll{COLOR}{WHITE}!\n" + .string "If you ever forget this technique,\n" + .string "you can review it with this {COLOR}{GREEN}scroll{COLOR}{WHITE}!\n" + .string "You may view it anytime from\n" + .string "the Quest Status screen!$" + .string "There are no more techniques I can\n" + .string "teach you {COLOR}{YELLOW}with your current sword{COLOR}{WHITE}!{COLOR}{YELLOW}\n" + .string "{COLOR}{WHITE}Come again when you have\n" + .string "{COLOR}{GREEN}a new sword{COLOR}{WHITE} in hand!$" + .string "$" + .string "{UNK_0300D0}Mn! A new {COLOR}{GREEN}sword{COLOR}{WHITE}! Fantastic! And you\n" + .string "seem to have acquired new skills with it!\n" + .string "Yes! I am ready to {COLOR}{YELLOW}train {COLOR}{WHITE}you again,\n" + .string "young swordsman!$" + .string "So? Will you accept this new {COLOR}{YELLOW}training{COLOR}{WHITE}?\n" + .string " {CHOICE_FF}Yes {CHOICE_465F}No, thanks$" + .string "I will now teach you a technique called\n" + .string "the Rock Breaker, so pay attention!\n" + .string "{COLOR}{YELLOW}First!!{COLOR}{WHITE}\n" + .string "Swing your sword to break pots!\n" + .string "Actually, that's all there is, young\n" + .string "swordsman!!\n" + .string "Do you understand?\n" + .string " {CHOICE_FF}Yes {CHOICE_460B}No$" + .string "Yes! Haha! Good!\n" + .string "\n" + .string "If you had said you didn't understand,\n" + .string "I would have serious doubts about you!\n" + .string "Yes, but one must feel the technique,\n" + .string "not just hear about it!\n" + .string "That's why I will now possess your body\n" + .string "so as to demonstrate the technique!\n" + .string "That is the secret of the {COLOR}{YELLOW}Swiftblade\n" + .string "Possession technique{COLOR}{WHITE} of training!\n" + .string "Watch this!!\n" + .string "Gunnghh!!\n" + .string "Poe...Zeh...SHUN!!!$" + .string "Phew...\n" + .string "Now! You must try it {COLOR}{YELLOW}yourself{COLOR}{WHITE}!\n" + .string "{UNK_074661}$" + .string "Yes!! Fine work! Fantastic, even!\n" + .string "I will now give you this {COLOR}{GREEN}Tiger Scroll{COLOR}{WHITE}!\n" + .string "If you ever forget this technique,\n" + .string "you can review it with this {COLOR}{GREEN}scroll{COLOR}{WHITE}!$" + .string "Come again when you learn\n" + .string "to {COLOR}{YELLOW}run like the wind{COLOR}{WHITE}!$" + .string "$" + .string "{UNK_0300D0}Ah! Yes! You have the {COLOR}{GREEN}Pegasus Boots{COLOR}{WHITE}!\n" + .string "And you seem to have more skill, too!\n" + .string "Yes! I am ready to {COLOR}{YELLOW}train {COLOR}{WHITE}you again!$" + .string "So? Would you like to {COLOR}{YELLOW}train {COLOR}{WHITE}here?\n" + .string " {CHOICE_FF}Please {CHOICE_465F}No, thanks$" + .string "You will now learn a new technique,\n" + .string "the {COLOR}{GREEN}Dash Attack{COLOR}{WHITE}!\n" + .string "{COLOR}{YELLOW}First!!{COLOR}{WHITE}\n" + .string "Equip the Pegasus Boots!\n" + .string "{COLOR}{YELLOW}Second!!{COLOR}{WHITE}\n" + .string "Equip your sword!\n" + .string "{COLOR}{YELLOW}Third!!{COLOR}{WHITE}\n" + .string "Run like crazy!\n" + .string "That's all, young swordsman!!\n" + .string "\n" + .string "Do you understand?\n" + .string " {CHOICE_FF}Yes {CHOICE_4613}No$" + .string "Yes! Yes!\n" + .string "You are my finest student!\n" + .string "Just equip your sword and the Pegasus\n" + .string "Boots to any button you like!\n" + .string "But one must feel the technique,\n" + .string "not just hear about it!\n" + .string "That's why I will now possess your body\n" + .string "so as to demonstrate the technique!\n" + .string "This is the {COLOR}{YELLOW}Swiftblade Possession\n" + .string "technique{COLOR}{WHITE} of training!\n" + .string "Watch this!!\n" + .string "Urrngh!!\n" + .string "Poe...Zeh...SHUN!!!$" + .string "Phew...\n" + .string "Now! You must try it {COLOR}{YELLOW}yourself{COLOR}{WHITE}!\n" + .string "{UNK_074662}$" + .string "Yes!! Fine work! You learn quickly!\n" + .string "I will now give you this {COLOR}{GREEN}Tiger Scroll{COLOR}{WHITE}!\n" + .string "If you ever forget this technique,\n" + .string "you can learn again from this {COLOR}{GREEN}scroll{COLOR}{WHITE}!$" + .string "Come again when {COLOR}{YELLOW}you can jump farther\n" + .string "{COLOR}{WHITE}than any other!$" + .string "$" + .string "{UNK_0300D0}Aha! Yes! You have the {COLOR}{GREEN}Roc's Cape{COLOR}{WHITE}!\n" + .string "And you have acquired new skill!\n" + .string "Yes! I am ready to {COLOR}{YELLOW}train {COLOR}{WHITE}you again!$" + .string "So? Would you like to {COLOR}{YELLOW}train {COLOR}{WHITE}here?\n" + .string " {CHOICE_FF}Please {CHOICE_465F}No, thanks$" + .string "Now I will teach you a new technique,\n" + .string "the {COLOR}{GREEN}Down Thrust{COLOR}{WHITE}!\n" + .string "{COLOR}{YELLOW}First!!{COLOR}{WHITE}\n" + .string "Equip the Roc's Cape!!\n" + .string "{COLOR}{YELLOW}Second!!{COLOR}{WHITE}\n" + .string "Equip the sword!!\n" + .string "{COLOR}{YELLOW}Third!!{COLOR}{WHITE}\n" + .string "Jump!! Then...\n" + .string "{COLOR}{YELLOW}Fourth!!{COLOR}{WHITE}\n" + .string "At your jump's peak, swing the sword!\n" + .string "That's all, young swordsman!!\n" + .string "\n" + .string "Do you understand?\n" + .string " {CHOICE_FF}Yes {CHOICE_461B}No$" + .string "Yes! You see it, do you not?!\n" + .string "\n" + .string "But one must feel the technique,\n" + .string "not just hear about it!\n" + .string "That's why I will now possess your body\n" + .string "so as to demonstrate the technique!\n" + .string "Witness...the {COLOR}{YELLOW}Swiftblade Possession\n" + .string "technique{COLOR}{WHITE} of training!\n" + .string "Urrngh!!\n" + .string "\n" + .string "Poe...Zeh...SHUN!!!$" + .string "Phew...\n" + .string "Now! You must try it {COLOR}{YELLOW}yourself{COLOR}{WHITE}!\n" + .string "{UNK_074663}$" + .string "Yes!! Fine work! You know the way!\n" + .string "I will now give you this {COLOR}{GREEN}Tiger Scroll{COLOR}{WHITE}!\n" + .string "If you ever forget this technique,\n" + .string "you can review it with this {COLOR}{GREEN}scroll{COLOR}{WHITE}!$" + .string "Ha! There is nothing more I can teach\n" + .string "you, young master!\n" + .string "Now, you must train yourself!$" + .string "$" + .string "$" + .string "{UNK_0300D0}Believe not what others tell you! I am\n" + .string "the true master swordsman of Hyrule!\n" + .string "My name is {COLOR}{RED}Grayblade{COLOR}{WHITE}, and if you {COLOR}{YELLOW}train{COLOR}{WHITE}\n" + .string "with me, you will learn much!$" + .string "So? Would you like to {COLOR}{YELLOW}train {COLOR}{WHITE}here?\n" + .string " {CHOICE_FF}Please {CHOICE_465F}No, thanks$" + .string "You will learn the amazing\n" + .string "{COLOR}{GREEN}Roll Attack{COLOR}{WHITE}!!{COLOR}{GREEN}\n" + .string "{COLOR}{YELLOW}First!!{COLOR}{WHITE}\n" + .string "Roll with {DPAD} and {RIGHT}...\n" + .string "{COLOR}{YELLOW}Second!!{COLOR}{WHITE}\n" + .string "As soon as you get up...\n" + .string "{COLOR}{YELLOW}Third!!{COLOR}{WHITE}\n" + .string "Scream {QT}Hiyaa!{QT} and swing your sword!\n" + .string "That's all, young swordsman!!\n" + .string "\n" + .string "Do you understand?\n" + .string " {CHOICE_FF}Yes {CHOICE_4624}No$" + .string "Hoho! Well answered!\n" + .string "You have much promise!\n" + .string "But one must feel the technique,\n" + .string "not just hear about it!\n" + .string "That's why I will now possess your body\n" + .string "so as to demonstrate the technique!\n" + .string "This is the {COLOR}{YELLOW}Grayblade Possession\n" + .string "technique{COLOR}{WHITE} of training!\n" + .string "Watch this!!\n" + .string "Urrngh!!\n" + .string "Poe...Zeh...SHUN!!!$" + .string "Phew...\n" + .string "Now! You must try it {COLOR}{YELLOW}yourself{COLOR}{WHITE}!\n" + .string "{UNK_074664}$" + .string "Yes!! Fine work! You know the way!\n" + .string "I will now give you this {COLOR}{GREEN}Tiger Scroll{COLOR}{WHITE}!\n" + .string "If you ever forget this technique,\n" + .string "you can review it with this {COLOR}{GREEN}scroll{COLOR}{WHITE}!$" + .string "Now, there is nothing left for me\n" + .string "to teach you.\n" + .string "Your training must continue within\n" + .string "the realm of your MIND...\n" + .string "After all, the way of the sword requires\n" + .string "much discipline!! Yes!$" + .string "$" + .string "$" + .string "{UNK_0300D0}You are in the presence of the true\n" + .string "master swordsman of Hyrule,{COLOR}{RED} Grimblade{COLOR}{WHITE}!\n" + .string "If you {COLOR}{YELLOW}train {COLOR}{WHITE}with me, you will become\n" + .string "a true master swordsman!$" + .string "So? Would you like to {COLOR}{YELLOW}train {COLOR}{WHITE}here?\n" + .string " {CHOICE_FF}Please {CHOICE_465F}No, thanks$" + .string "You will learn the meaning of power\n" + .string "with this technique, the {COLOR}{GREEN}Sword Beam{COLOR}{WHITE}!{COLOR}{GREEN}\n" + .string "{COLOR}{YELLOW}First!!{COLOR}{WHITE}\n" + .string "When your hearts are full...\n" + .string "{COLOR}{YELLOW}Second!!{COLOR}{WHITE}\n" + .string "Swing your mighty sword!!!\n" + .string "That's...really all there is to it,\n" + .string "young swordsman!!\n" + .string "Do you understand?\n" + .string " {CHOICE_FF}Yes {CHOICE_462D}No$" + .string "But this is only the beginning!\n" + .string "Now comes the real thing!\n" + .string "One must feel the technique,\n" + .string "not just hear about it!\n" + .string "That's why I will now possess your body\n" + .string "so as to demonstrate the technique!\n" + .string "This is the {COLOR}{YELLOW}Grimblade Possession\n" + .string "technique{COLOR}{WHITE} of training!\n" + .string "Watch this!!\n" + .string "Urrngh!!\n" + .string "Poe...Zeh...SHUN!!!$" + .string "Phew...\n" + .string "Now! You must try it {COLOR}{YELLOW}yourself{COLOR}{WHITE}!\n" + .string "{UNK_074665}$" + .string "Yes!! Fine work! You know the way!\n" + .string "I will now give you this {COLOR}{GREEN}Tiger Scroll{COLOR}{WHITE}!\n" + .string "If you ever forget this technique,\n" + .string "you can review it with this {COLOR}{GREEN}scroll{COLOR}{WHITE}!$" + .string "Now there is nothing more that\n" + .string "I can teach you!!\n" + .string "Your training from now on is\n" + .string "all in your mind!!\n" + .string "The way of the sword is eternal! Yes!$" + .string "{UNK_0300D0}You have found the true master\n" + .string "swordsman of Hyrule,{COLOR}{RED} Grimblade{COLOR}{WHITE}!\n" + .string "If you {COLOR}{YELLOW}train {COLOR}{WHITE}with me, I will teach you\n" + .string "skills you've never imagined!\n" + .string "But the room is dark, and I cannot see\n" + .string "your face! We cannot train like this!!$" + .string "$" + .string "{UNK_0300D0}You have found the true master\n" + .string "swordsman of Hyrule,{COLOR}{RED} Waveblade{COLOR}{WHITE}!\n" + .string "If you {COLOR}{YELLOW}train {COLOR}{WHITE}with me, I will teach you\n" + .string "skills that will make you a master!$" + .string "So? Would you like to {COLOR}{YELLOW}train {COLOR}{WHITE}her" + .string "e?\n" + .string " {CHOICE_FF}Please {CHOICE_465F}No, thanks$" + .string "Now you will learn a dangerous\n" + .string "technique for desperate times!\n" + .string "The {COLOR}{GREEN}Peril Beam{COLOR}{WHITE}!\n" + .string "\n" + .string "{COLOR}{YELLOW}First!!{COLOR}{WHITE}\n" + .string "You must have only one heart left...\n" + .string "{COLOR}{YELLOW}Second!! {COLOR}{WHITE}Use your last ounce of\n" + .string "strength to swing your sword!\n" + .string "That's all, young swordsman!!\n" + .string "\n" + .string "Do you understand?\n" + .string " {CHOICE_FF}Yes {CHOICE_4636}No$" + .string "So...\n" + .string "There is no turning back now...\n" + .string "For one must feel the technique,\n" + .string "not just hear about it!\n" + .string "That's why I will now possess your body\n" + .string "so as to demonstrate the technique!\n" + .string "This is the {COLOR}{YELLOW}Waveblade Possession\n" + .string "technique{COLOR}{WHITE} of training!\n" + .string "Watch this!!\n" + .string "Urrngh!!\n" + .string "Poe...Zeh...SHUN!!!$" + .string "Phew...\n" + .string "Now! You must try it {COLOR}{YELLOW}yourself{COLOR}{WHITE}!\n" + .string "{UNK_074666}$" + .string "Yes!! Fine work!\n" + .string "You know the way!\n" + .string "I will now give you this {COLOR}{GREEN}Tiger Scroll{COLOR}{WHITE}!\n" + .string "If you ever forget this technique,\n" + .string "you can review it with this {COLOR}{GREEN}scroll{COLOR}{WHITE}!$" + .string "Now there is nothing " + .string "more that\n" + .string "I can teach you!!\n" + .string "Your training from now on is\n" + .string "all in your mind!!\n" + .string "The way of the sword leads\n" + .string "ever upward! Yes!$" + .string "You have found the true master\n" + .string "swordsman of Hyrule,{COLOR}{RED} Waveblade{COLOR}{WHITE}!\n" + .string "If you {COLOR}{YELLOW}train {COLOR}{WHITE}with me, I will teach\n" + .string "you things you've never seen!\n" + .string "Hmn?\n" + .string "\n" + .string "It seems you are not ready\n" + .string "to train h" + .string "ere!\n" + .string "Come back when you have\n" + .string "{COLOR}{GREEN}more than 10 hearts{COLOR}{WHITE}!$" + .string "$" + .string "{UNK_0300D0}Though my body may perish, I am still\n" + .string "the true master swordsman of Hyrule...\n" + .string "{COLOR}{RED}Swiftblade the First, Spirit of the\n" + .string "Swordsman{COLOR}{WHITE}!\n" + .string "If you {COLOR}{YELLOW}train {COLOR}{WHITE}with me, I will teach you\n" + .string "skills that are out of this world!$" + .string "So? Would you like to {COLOR}{YELLOW}train {COLOR}{WHITE}here?\n" + .string " {CHOICE_FF}Please {CHOICE_465F}No, thanks$" + .string "This is a technique that only I have\n" + .string "mastered...\n" + .string "Only one who holds the sacred blade\n" + .string "can perform...the {COLOR}{GREEN}Great Spin Attack{COLOR}{WHITE}!{COLOR}{GREEN}\n" + .string "{COLOR}{YELLOW}First!!{COLOR}{WHITE}\n" + .string "Do a Spin Attack...\n" + .string "{COLOR}{YELLOW}Second!!{COLOR}{WHITE}\n" + .string "Press the button repeatedly!\n" + .string "Repeatedly! Repeatedly, do you hear\n" + .string "me? That's all, young swordsman!!\n" + .string "Do you understand?\n" + .string " {CHOICE_FF}Yes {CHOICE_463F}No$" + .string "Wohohoho!\n" + .string "But it is not so easy!\n" + .string "One must feel the technique,\n" + .string "not just hear about it!\n" + .string "That's why I will now possess your body\n" + .string "so as to demonstrate the technique!\n" + .string "This is the {COLOR}{YELLOW}Spooky Possession\n" + .string "technique{COLOR}{WHITE} of training!\n" + .string "Watch this!!\n" + .string "Urrngh!!\n" + .string "Poe...Zeh...SHUN!!!$" + .string "Phew...\n" + .string "Now! You must try it {COLOR}{YELLOW}yourself{COLOR}{WHITE}!\n" + .string "{UNK_074667}$" + .string "Yes!! Fine work!\n" + .string "You know the way!\n" + .string "You have passed the test of\n" + .string "{COLOR}{RED}Swiftblade the First {COLOR}{WHITE}with such ease!\n" + .string "I will now give you this {COLOR}{GREEN}Tiger Scroll{COLOR}{WHITE}!\n" + .string "\n" + .string "If you ever forget this technique,\n" + .string "you can review this {COLOR}{GREEN}scroll{COLOR}{WHITE}!$" + .string "Now there is nothing more that\n" + .string "I can teach you!!\n" + .string "Your training from now on is\n" + .string "all in your mind!!\n" + .string "The way begins with the sword and ends\n" + .string "with the sword! Yes!$" + .string "{UNK_0300D0}Though my body may perish, I am still\n" + .string "the true master swordsman of Hyrule...\n" + .string "{COLOR}{RED}Swiftblade the First, Spirit of the\n" + .string "Swordsman{COLOR}{WHITE}!\n" + .string "If you {COLOR}{YELLOW}train {COLOR}{WHITE}with me, I will teach you\n" + .string "skills that are out of this world!\n" + .string "Hmn?\n" + .string "\n" + .string "It seems you are not yet ready\n" + .string "to train with me!\n" + .string "Come back when you have\n" + .string "{COLOR}{GREEN}all 7 Tiger Scrolls{COLOR}{WHITE}!$" + .string "$" + .string "{UNK_0300D0}Swordsmanship is spirit!\n" + .string "\n" + .string "I am the finest or maybe second-finest\n" + .string "swordsman in all of Hyrule, {COLOR}{RED}Scarblade{COLOR}{WHITE}!\n" + .string "{COLOR}{YELLOW}Training {COLOR}{WHITE}with me will forever\n" + .string "transform your swordsmanship!$" + .string "So? Would you like to {COLOR}{YELLOW}train {COLOR}{WHITE}here?\n" + .string " {CHOICE_FF}Please {CHOICE_465F}No, thanks$" + .string "Yes!\n" + .string "Then I will teach you how to more\n" + .string "quickly unleash your {COLOR}{GREEN}Spin Attack{COLOR}{WHITE},\n" + .string "which you have already learned!\n" + .string "I take visualization {COLOR}{YELLOW}training {COLOR}{WHITE}very\n" + .string "seriously, I'll have you know!\n" + .string "Now, quietly close your eyes...\n" + .string "\n" + .string "Visualize {COLOR}{YELLOW}your sword moving at an\n" + .string "unthinkable speed{COLOR}{WHITE}...\n" + .string "Wuoooooohhhh!!!!{COLOR}{YELLOW}\n" + .string "\n" + .string "{COLOR}{WHITE}SSSSSSPINNNNNNNNINNNNNNG...$" + .string "Mnuhhh...\n" + .string "\n" + .string "Now, you can perform your Spin Attack\n" + .string "{COLOR}{YELLOW}much faster{COLOR}{WHITE}, my student!{COLOR}{YELLOW}\n" + .string "{COLOR}{WHITE}This is the heart of the sword!\n" + .string "\n" + .string "All begins with belief...\n" + .string "Commit yourself to the blade!$" + .string "$" + .string "$" + .string "$" + .string "$" + .string "$" + .string "$" + .string "{UNK_0300D0}The spirit and the sword are one!\n" + .string "\n" + .string "I am the nearly best swordsman\n" + .string "in Hyrule, {COLOR}{RED}Splitblade{COLOR}{WHITE}!\n" + .string "If you {COLOR}{YELLOW}train {COLOR}{WHITE}with me, you will discover\n" + .string "the secrets of your hidden power!$" + .string "So? Would you like to {COLOR}{YELLOW}train {COLOR}{WHITE}here?\n" + .string " {CHOICE_FF}Please {CHOICE_465F}No, thanks$" + .string "Mnnh!\n" + .string "\n" + .string "Now I will teach you how to fill your\n" + .string "{COLOR}{GREEN}Split Gauge{COLOR}{WHITE} faster than ever!\n" + .string "I take visualization {COLOR}{YELLOW}training {COLOR}{WHITE}very\n" + .string "seriously, I'll have you know!\n" + .string "Now, quietly close your eyes...\n" + .string "\n" + .string "Visualize {COLOR}{YELLOW}your body splitting even\n" + .string "faster than ever before{COLOR}{WHITE}...\n" + .string "Wuoooooohhhh!!!!{COLOR}{YELLOW}\n" + .string "\n" + .string "{COLOR}{WHITE}Spuh--Liii--TING!$" + .string "Mnuhhh...\n" + .string "\n" + .string "Now you will {COLOR}{YELLOW}fill your Split\n" + .string "Gauge much faster{COLOR}{WHITE}, my student!{COLOR}{YELLOW}\n" + .string "{COLOR}{WHITE}This is the truth of the sword!\n" + .string "\n" + .string "And truth is almost the exact opposite\n" + .string "of not-truth!\n" + .string "Commit yourself to the blade!$" + .string "$" + .string "$" + .string "$" + .string "$" + .string "$" + .string "$" + .string "{UNK_0300D0}Mastery of the sword is mastery\n" + .string "of the soul!\n" + .string "I am kinda like almost the best\n" + .string "swordsman in Hyrule, {COLOR}{RED}Greatblade{COLOR}{WHITE}!\n" + .string "{COLOR}{YELLOW}Training {COLOR}{WHITE}with me will totally change\n" + .string "your sword skill forever and stuff!$" + .string "So? Would you like to {COLOR}{YELLOW}train {COLOR}{WHITE}here?\n" + .string " {CHOICE_FF}Please {CHOICE_465F}No, thanks$" + .string "Yes!\n" + .string "All right, I'll teach you how to prolong\n" + .string "the duration of the {COLOR}{GREEN}Great Spin Attack{COLOR}{WHITE},\n" + .string "which you have already learned!\n" + .string "I take visualization {COLOR}{YELLOW}training {COLOR}{WHITE}very\n" + .string "seriously, I'll have you know!\n" + .string "Now, quietly close your eyes...\n" + .string "\n" + .string "Visualize {COLOR}{YELLOW}your sword continuing to move\n" + .string "longer than ever possible{COLOR}{WHITE}...\n" + .string "Wuoooooohhhh!!!!\n" + .string "{COLOR}{YELLOW}\n" + .string "{COLOR}{WHITE}SSSSSSPINNNNNNNNINNNNNNG...{COLOR}{YELLOW}\n" + .string "{COLOR}{WHITE}SSSSSSPINNNNNNNNINNNNNNG...\n" + .string "SSSSSSPINNNNNNNNINNNNNNG...\n" + .string "SSSSSSPINNNNNNNNINNNNNNG...\n" + .string "SSSSSSPINNNNNNNNINNNNNNG...\n" + .string "SSSSSSPINNNNNNNNINNNNNNG...\n" + .string "SSSSSSPINNNNNNNNINNNNNNG...\n" + .string "SSSSSSPINNNNNNNNINNNNNNG!!!$" + .string "Mnuhhh...\n" + .string "\n" + .string "Now your Great Spin Attack will last\n" + .string "{COLOR}{YELLOW}longer than before{COLOR}{WHITE}, my student!{COLOR}{YELLOW}\n" + .string "{COLOR}{WHITE}This is the truth of the sword!\n" + .string "\n" + .string "When you doubt another, you bring\n" + .string "clouds into the mind's skies!\n" + .string "Commit yourself to the blade and stuff!$" + .string "Mastery of the sword is mastery\n" + .string "of the soul!\n" + .string "I am kinda like almost the best\n" + .string "swordsman in Hyrule, {COLOR}{RED}Greatblade{COLOR}{WHITE}!\n" + .string "{COLOR}{YELLOW}Training {COLOR}{WHITE}with me will totally change\n" + .string "your sword skill forever and stuff!\n" + .string "Hmn?\n" + .string "\n" + .string "Dude... I don't think you're even\n" + .string "ready to train here!\n" + .string "Come back when you have learned the\n" + .string "{COLOR}{GREEN}highest technique{COLOR}{WHITE} of the sword!$" + .string "Is that so? Then you go now! Shoo!$" + .string "Press and hold your sword button.\n" + .string "Build up enough power.\n" + .string "Then, release your destructive might!!\n" + .string "That's all there is to it!$" + .string "Break the pots with your sword!\n" + .string "That's all!$" + .string "Equip the Pegasus Boots and your\n" + .string "sword, and then run like crazy!!$" + .string "Equip the Roc's Cape and the sword!!\n" + .string "Jump!!\n" + .string "When you reach your jump's peak,\n" + .string "swing the sword! That's all!$" + .string "Roll with {DPAD} and {RIGHT}, and then swing\n" + .string "your sword as you start to get up!$" + .string "When your hearts are full...swing your\n" + .string "sword with all your might!$" + .string "When you have only one heart left...\n" + .string "\n" + .string "Swing the sword with the last\n" + .string "of your waning strength!$" + .string "Perform a Spin Attack...and hit the\n" + .string "button! Again! Again! Again! Again!$" + .byte 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xb8, 0x00, 0x00, 0x00, 0xb9, 0x00, 0x00, 0x00, 0x73, 0x01, 0x00, 0x00, 0xa0, 0x01, 0x00, 0x00, 0xd2, 0x01, 0x00, 0x00, 0x20, 0x02, 0x00, 0x00, 0x21, 0x02, 0x00, 0x00, 0x75, 0x02, 0x00, 0x00, 0x9b, 0x02, 0x00, 0x00, 0xb5, 0x02, 0x00, 0x00, 0xf9, 0x02, 0x00, 0x00, 0xfa, 0x02, 0x00, 0x00, 0x70, 0x03, 0x00, 0x00, 0xb9, 0x03, 0x00, 0x00, 0xff, 0x03, 0x00, 0x00, 0x5c, 0x04, 0x00, 0x00, 0x91, 0x04, 0x00, 0x00, 0x5f, 0x05, 0x00, 0x00, 0x9d, 0x05, 0x00, 0x00, 0xdb, 0x05, 0x00, 0x00, 0x19, 0x06, 0x00, 0x00, 0x9f, 0x06, 0x00, 0x00, 0xf1, 0x06, 0x00, 0x00, 0x35, 0x07, 0x00, 0x00, 0x49, 0x07, 0x00, 0x00, 0x8d, 0x07, 0x00, 0x00, 0x8e, 0x07, 0x00, 0x00, 0xd4, 0x07, 0x00, 0x00, 0x0b, 0x08, 0x00, 0x00, 0x53, 0x08, 0x00, 0x00, 0x80, 0x08, 0x00, 0x00, 0x81, 0x08, 0x00, 0x00, 0xe5, 0x08, 0x00, 0x00, 0x28, 0x09, 0x00, 0x00, 0x7a, 0x09, 0x00, 0x00, 0xb5, 0x09, 0x00, 0x00, 0xb6, 0x09, 0x00, 0x00, 0x91, 0x0a, 0x00, 0x00, 0xc6, 0x0b, 0x00, 0x00, 0x6e, 0x0c, 0x00, 0x00, 0xfa, 0x0c, 0x00, 0x00, 0x80, 0x0d, 0x00, 0x00, 0xf0, 0x0d, 0x00, 0x00, 0x4f, 0x0e, 0x00, 0x00, 0xac, 0x0e, 0x00, 0x00, 0xad, 0x0e, 0x00, 0x00, 0x00 + .string "{UNK_0301FC}If you want to get across the swamp,\n" + .string "you need to be swift on your feet.\n" + .string "You know, a friend of mine makes shoes\n" + .string "in Hyrule's shoe shop.\n" + .string "I'm pretty sure he can make\n" + .string "{COLOR}{GREEN}Pegasus Boots{COLOR}{WHITE}...$" + .string "{UNK_0301FB}Would you like to fuse\n" + .string "Kinstones with me?$" + .string "{UNK_0301FE}You don't want to? You don't\n" + .string "even want to try?$" + .string "{UNK_0301FF}We did it! They fit perfectly! You know\n" + .string "what that means? Good luck for us!$" + .string "$" + .string "{UNK_0301F7}I found some amazingly rare {COLOR}{GREEN}Kinstone{COLOR}{WHITE}\n" + .string "pieces! At least, I think they're rare!$" + .string "{UNK_0301F8}Oh?! You want to fuse pieces? Yay!$" + .string "{UNK_0301F9}You don't want to try?$" + .string "{UNK_0301FA}Look at that! A perfect match!\n" + .string "I can't wait to see what happens!$" + .string "$" + .string "{UNK_0301FE}Hmmm... I found a {COLOR}{GREEN}Kinstone {COLOR}{WHITE}piece over\n" + .string "there.\n" + .string "I've never seen anything like it.\n" + .string "It must be a really rare one...$" + .string "{UNK_0301FF}You want to fuse pieces? Do you think\n" + .string "you have one that matches mine?$" + .string "{UNK_0301FD}Mmmm... I guess it's hard to find\n" + .string "a match for such a rare piece...$" + .string "{UNK_0301FB}Hmm! It fits perfectly!\n" + .string "\n" + .string "How could you have a piece that fits\n" + .string "my ultra-rare one so well!?$" + .string "{UNK_0301FB}I think this is a really\n" + .string "rare {COLOR}{GREEN}Kinstone piece{COLOR}{WHITE}!$" + .string "{UNK_030205}Hey, look at this {COLOR}{GREEN}Kinstone piece{COLOR}{WHITE}!\n" + .string "Have you ever seen one like this?\n" + .string "What? You don't know what a {COLOR}{GREEN}Kinstone\n" + .string "piece{COLOR}{WHITE} is? Well, tell you what...\n" + .string "Why don't you come back and see me\n" + .string "when you get one, OK?$" + .string "{UNK_030200}What's that? You want to {COLOR}{YELLOW}fuse\n" + .string "Kinstone pieces{COLOR}{WHITE} with me?$" + .string "{UNK_0301FA}I guess it's hard to find\n" + .string "a match for such a rare piece...$" + .string "{UNK_0301F9}Whaa! It fits! You must have had\n" + .string "a really rare piece, too!$" + .string "{UNK_0301FD}What? You don't know what a {COLOR}{GREEN}Kinstone\n" + .string "piece{COLOR}{WHITE} is? Well, tell you what...\n" + .string "Why don't you come back and see me\n" + .string "when you get one, OK?$" + .string "{UNK_0301FA}A visitor! How rare... I don't have much\n" + .string "to offer, but you're welcome to stay.$" + .string "{UNK_030200}What's that? You want to fuse\n" + .string "{COLOR}{GREEN}Kinstone pieces {COLOR}{WHITE}with me? Sure.$" + .string "{UNK_030201}You're quitting?$" + .string "{UNK_030202}We did it! They fit perfectly!\n" + .string "Maybe I'll get some luck finally!$" + .string "$" + .string "{UNK_030205}You moved the rock for me? Great!\n" + .string "I thought I'd never get outside!$" + .string "{UNK_0301FE}Oh, you want to fuse with me?\n" + .string "Now let's see here...$" + .string "{UNK_0301FB}I guess it'll be a while before I find\n" + .string "a piece that fits this one...$" + .string "{UNK_0301FC}Look! They fit!\n" + .string "How lucky! Amazing, even!$" + .string "$" + .string "{UNK_0301F9}What's your problem?\n" + .string "\n" + .string "Mmmm! You're staring at my amazingly\n" + .string "rare {COLOR}{GREEN}Kinstone piece{COLOR}{WHITE}, aren't you?!$" + .string "{UNK_0301FA}How dare you! You want to fuse\n" + .string "my precious {COLOR}{GREEN}Kinstone piece{COLOR}{WHITE}?!$" + .string "{UNK_0301FD}Phew... Sweet little {COLOR}{GREEN}Kinstone piece{COLOR}{WHITE}.\n" + .string "It's OK. No one's gonna hurt you...{T_0B}$" + .string "{UNK_030202}Ahh... They fit...\n" + .string "My poor little {COLOR}{GREEN}Kinstone piece{COLOR}{WHITE}...$" + .string "$" + .string "{UNK_030203}Hey! Your clothes... You must be\n" + .string "human! Oh, I just LOVE human fashion!\n" + .string "I just can't help feeling that humans\n" + .string "are more sophisticated than {COLOR}{RED}Minish{COLOR}{WHITE}.\n" + .string "You know, I even think some other\n" + .string "{COLOR}{RED}Minish {COLOR}{WHITE}feel that way, too...$" + .string "{UNK_030202}Water is life for {COLOR}{YELLOW}Crenel Beans{COLOR}{WHITE}!{COLOR}{YELLOW}\n" + .string "\n" + .string "{COLOR}{WHITE}The blue beans grow when you pour\n" + .string "{COLOR}{GREEN}water {COLOR}{WHITE}on them...\n" + .string "But the green beans like\n" + .string "{COLOR}{GREEN}Mt. Crenel Mineral Water{COLOR}{WHITE}.{COLOR}{YELLOW}\n" + .string "{COLOR}{GREEN}Mt. Crenel Mineral Water {COLOR}{WHITE}can be found\n" + .string "only in a spring here on {COLOR}{RED}Mount Crenel{COLOR}{WHITE}.\n" + .string "Well, really, the spring is closer to\n" + .string "the base of {COLOR}{RED}Mount Crenel{COLOR}{WHITE}.$" + .string "{UNK_030201}These {COLOR}{RED}soldier statues{COLOR}{YELLOW} {COLOR}{WHITE}here were built\n" + .string "by the Minish ages ago to help humans.\n" + .string "It's kind of a secret, but there's a\n" + .string "switch inside that {COLOR}{YELLOW}turns them on or off{COLOR}{WHITE}.$" + .string "{UNK_030201}Go get the {COLOR}{GREEN}flippers {COLOR}{WHITE}from the {COLOR}{RED}Minish\n" + .string "elder {COLOR}{WHITE}who lives in the library.\n" + .string "They'll make it so you can swim\n" + .string "through the water with ease.$" + .string "{UNK_030204}Can you solv" + .string "e my riddle?\n" + .string "\n" + .string "{COLOR}{YELLOW}Splish, splash, the sound of water.\n" + .string "He lives in the answer house.{COLOR}{WHITE}\n" + .string "I wonder if you'll meet my friend?$" + .string "{UNK_030204}{COLOR}{YELLOW}A fearsome, unfriendly feline...\n" + .string "The answer lives here!{COLOR}{WHITE}\n" + .string "You did well to come this far.\n" + .string "Please take this.$" + .string "{UNK_030204}{COLOR}{YELLOW}Man, woman, or middle?\n" + .string "He lives in the answer house.{COLOR}{WHITE}\n" + .string "I wonder if you'll meet my friend?$" + .string "{UNK_030204}{COLOR}{YELLOW}That meow is mighty!\n" + .string "He lives in the answer house.{COLOR}{WHITE}\n" + .string "I wonder if you'll meet my friend?$" + .string "$" + .string "{UNK_0301FB}I gave you my last {COLOR}{GREEN}Kinstone piece{COLOR}{WHITE}\n" + .string "a while ago! But I'll go look for more.$" + .byte 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0x24, 0x00, 0x00, 0x00, 0x25, 0x00, 0x00, 0x00, 0xd9, 0x01, 0x00, 0x00, 0x97, 0x02, 0x00, 0x00, 0x4a, 0x03, 0x00, 0x00, 0xa6, 0x03, 0x00, 0x00, 0x38, 0x04, 0x00, 0x00, 0x7a, 0x04, 0x00, 0x00, 0xc5, 0x04, 0x00, 0x00, 0x00 + .string "{UNK_0301FC}Oh, ho! A visitor! How rare!\n" + .string "\n" + .string "But you have found me, the\n" + .string "wisest of the wisest of the wise!\n" + .string "You what? You want to enter the\n" + .string "{COLOR}{YELLOW}temple you can see in the lake{COLOR}{WHITE}?\n" + .string "They call that place the {COLOR}{RED}Temple of\n" + .string "Droplets{COLOR}{WHITE}.\n" + .string "I have heard rumors that one Minish\n" + .string "actually did find a way in, long ago...\n" + .string "That Minish is {COLOR}{RED}Elder Librari{COLOR}{WHITE}, and he is\n" + .string "in semi-retirement in the town library.\n" + .string "The library should be opening soon.\n" + .string "Perhaps you can go find him.$" + .string "{UNK_0301FB}Yes, the elder Librari once found an\n" + .string "entrance to the Temple of Droplets.\n" + .string "And now, he lives in the town library!\n" + .string "\n" + .string "And this is all the wisdom of the wisest\n" + .string "of the wise I have to offer you!$" + .string "{UNK_030205}So you met with elder Librari?!\n" + .string "\n" + .string "And he said that he really HAS been\n" + .string "inside of the Temple of Droplets?\n" + .string "I knew it! Once again, my wisdom has\n" + .string "surpassed the wisdom of the wisest!$" + .string "{UNK_0301FE}I have lots of wise and thought-\n" + .string "provoking information...\n" + .string "But nothing for you right now.$" + .string "{UNK_030203}Hello! How nice to have a visitor!{T_0B}\n" + .string "\n" + .string "But...I'm having some trouble!\n" + .string "\n" + .string "They've changed the room around, and\n" + .string "now I can't get into the fireplace!$" + .string "{UNK_030202}They've changed the room around!\n" + .string "It's terrible now! So gauche!$" + .string "{UNK_030203}Thank you! Now I can climb in through\n" + .string "the fireplace and get some sleep!$" + .string "$" + .byte 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0x5c, 0x00, 0x00, 0x00, 0x5d, 0x00, 0x00, 0x00, 0x26, 0x01, 0x00, 0x00, 0xdc, 0x01, 0x00, 0x00, 0x93, 0x02, 0x00, 0x00, 0x44, 0x03, 0x00, 0x00, 0x45, 0x03, 0x00, 0x00, 0x09, 0x04, 0x00, 0x00, 0xe4, 0x04, 0x00, 0x00, 0xe5, 0x05, 0x00, 0x00, 0xe6, 0x05, 0x00, 0x00, 0xe7, 0x05, 0x00, 0x00, 0xe8, 0x05, 0x00, 0x00, 0x8c, 0x06, 0x00, 0x00, 0xd9, 0x06, 0x00, 0x00, 0x55, 0x07, 0x00, 0x00, 0x14, 0x08, 0x00, 0x00, 0x9a, 0x08, 0x00, 0x00, 0xdd, 0x08, 0x00, 0x00, 0x31, 0x09, 0x00, 0x00, 0x87, 0x09, 0x00, 0x00, 0xad, 0x09, 0x00, 0x00, 0xee, 0x09, 0x00, 0x00, 0x00 + .string "Welcome to the library!\n" + .string "\n" + .string "Say, aren't you Smith's grandson,\n" + .string "{PLAYER}?\n" + .string "Hm? The books missing from the\n" + .string "bookshelf on the second floor?\n" + .string "Yes, they've been checked out for\n" + .string "quite a while. They're VERY overdue!\n" + .string "{UNK_074902}\n" + .string "$" + .string "Take {COLOR}{GREEN}A Hyrulean Bestiary{COLOR}{WHITE}, for\n" + .string "example. Been gone for ages.\n" + .string "Checked out by {COLOR}{YELLOW}a girl with a cat{COLOR}{WHITE}. She\n" + .string "said she had a new cat at her house.\n" + .string "Wanted to learn more about it, she did.$" + .string "The next overdue book is...\n" + .string "Let's see...\n" + .string "Ah, yes! Of course...{COLOR}{GREEN}Legend of the\n" + .string "Picori{COLOR}{WHITE}! It's been out forever!\n" + .string "It was checked out by a somewhat\n" + .string "{COLOR}{YELLOW}absentminded scholar{COLOR}{WHITE}, I believe...$" + .string "And the last book we still need\n" + .string "is {COLOR}{GREEN}A History of Masks{COLOR}{WHITE}.\n" + .string "I think it was checked out by {COLOR}{RED}Hagen{COLOR}{WHITE},\n" + .string "the mayor.\n" + .string "How could he keep a library book\n" + .string "so long! He's a public official!$" + .string "$" + .string "Hey! Look at that! Our long-lost copy\n" + .string "of {COLOR}{GREEN}A Hyrulean Bestiary{COLOR}{WHITE}!\n" + .string "{PLAYER}, are you returning\n" + .string "this book?! Thank you so much!\n" + .string "I can't begin to describe how much I'm\n" + .string "looking forward to putting this back!$" + .string "Oh my goodness, will you look at that!\n" + .string "\n" + .string "It's our copy of {COLOR}{GREEN}Legend of the Picori{COLOR}{WHITE}!\n" + .string "It's been checked out for so long!\n" + .string "{PLAYER}, you deserve a medal\n" + .string "for all this!\n" + .string "I am moved... Deeply, deeply moved\n" + .string "by this thoughtful gesture!$" + .string "Would you look at that! I can't believe\n" + .string "it! It's our copy of {COLOR}{GREEN}A History of Masks{COLOR}{WHITE}!\n" + .string "That mayor of ours is a real piece of\n" + .string "work, isn't he?\n" + .string "It must have been quite a challenge\n" + .string "to get this back from him.\n" + .string "You are my new favorite person,\n" + .string "{PLAYER}! Thank you so much!$" + .string "$" + .string "$" + .string "$" + .string "You know, {PLAYER}, you've now\n" + .string "returned all of our overdue books!\n" + .string "Now I can finally get that bookshelf\n" + .string "on the second floor in order!\n" + .string "Hey, {COLOR}{RED}Sturgeon{COLOR}{WHITE}! Books to shelve!!$" + .string "Yes, yes! Here I am! I'm here! I'll have\n" + .string "these books put away lickety-split!$" + .string "{UNK_0300DB}Sometimes, these books move on their\n" + .string "own! I've seen it with my own two eyes!\n" + .string "An' don't tell me I'm crazy!\n" + .string "I ain't crazy!$" + .string "Say, {COLOR}{RED}Sturgeon{COLOR}{WHITE}, on the second floor,\n" + .string "has been acting a little strange.\n" + .string "He keeps babbling about the books\n" + .string "moving around on their own!\n" + .string "Do you think maybe we have rats\n" + .string "or something up there?$" + .string "I'm in charge of checking out books,\n" + .string "so it's not my problem.\n" + .string "Still, I feel really bad for the girl\n" + .string "over there in charge of returns...$" + .string "Folks don't come up here so often.\n" + .string "I get a touch lonely on my own.$" + .string "Welcome to the library!\n" + .string "\n" + .string "Hey! Aren't you Smith's grandson,\n" + .string "{PLAYER}? Enjoy your browsing!$" + .string "The bookshelves are back in order!\n" + .string "Ah, I feel so...so...renewed!\n" + .string "Enjoy your browsing!$" + .string "Wonder what I should check out today.$" + .string "Oh ho ho! All the books are back\n" + .string "on the shelves! Isn't it grand!$" + .string "$" + .byte 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xa0, 0x00, 0x00, 0x00, 0xa1, 0x00, 0x00, 0x00, 0x18, 0x02, 0x00, 0x00, 0x19, 0x02, 0x00, 0x00, 0xdd, 0x02, 0x00, 0x00, 0x0a, 0x03, 0x00, 0x00, 0xab, 0x03, 0x00, 0x00, 0xca, 0x03, 0x00, 0x00, 0xdf, 0x03, 0x00, 0x00, 0xf4, 0x03, 0x00, 0x00, 0xe2, 0x04, 0x00, 0x00, 0xf7, 0x04, 0x00, 0x00, 0x8f, 0x05, 0x00, 0x00, 0xcc, 0x05, 0x00, 0x00, 0xe1, 0x05, 0x00, 0x00, 0xf6, 0x05, 0x00, 0x00, 0x0b, 0x06, 0x00, 0x00, 0x20, 0x06, 0x00, 0x00, 0x30, 0x07, 0x00, 0x00, 0x45, 0x07, 0x00, 0x00, 0x5c, 0x08, 0x00, 0x00, 0x71, 0x08, 0x00, 0x00, 0x86, 0x08, 0x00, 0x00, 0x9b, 0x08, 0x00, 0x00, 0xb0, 0x08, 0x00, 0x00, 0xc5, 0x08, 0x00, 0x00, 0x91, 0x0a, 0x00, 0x00, 0xdc, 0x0a, 0x00, 0x00, 0xf1, 0x0a, 0x00, 0x00, 0x06, 0x0b, 0x00, 0x00, 0x1b, 0x0b, 0x00, 0x00, 0x30, 0x0b, 0x00, 0x00, 0x45, 0x0b, 0x00, 0x00, 0x5a, 0x0b, 0x00, 0x00, 0x6f, 0x0b, 0x00, 0x00, 0xa2, 0x0c, 0x00, 0x00, 0x14, 0x0d, 0x00, 0x00, 0x8a, 0x0d, 0x00, 0x00, 0xb5, 0x0d, 0x00, 0x00, 0x6e, 0x0e, 0x00, 0x00, 0x00 + .string "{UNK_0301FD}Hey, hey, hey! This is no good!\n" + .string "No good at all!\n" + .string "The humans have {COLOR}{YELLOW}checked some books\n" + .string "out of the library{COLOR}{WHITE}!\n" + .string "Thanks to them, none of us can get\n" + .string "back to {COLOR}{RED}Elder Librari{COLOR}{WHITE}...\n" + .string "How will he get by all alone?\n" + .string "I'm so worried...\n" + .string "I'm sure the {COLOR}{RED}librarian{COLOR}{WHITE} knows something\n" + .string "about where those books went...\n" + .string "I wish I were big. Why, I'd walk right\n" + .string "up and ask her where those books went!$" + .string "$" + .string "{UNK_0301FD}Hey, hey, hey! Listen up! Listen good!\n" + .string "The books are back now!\n" + .string "It's true! It's true! Haha!\n" + .string "Now we can get back to {COLOR}{RED}Elder Librari{COLOR}{WHITE}!\n" + .string "So you brought the books back?\n" + .string "Good for you! Thank you!\n" + .string "{UNK_074A04}$" + .string "{UNK_0301FE}Please take this as a\n" + .string "sign of our thanks!$" + .string "{UNK_030200}I'd better get back to {COLOR}{RED}Elder Librari{COLOR}{WHITE}\n" + .string "now! He'll be wondering where I am.\n" + .string "Especially now that I can climb over the\n" + .string "books, right? I mean, it's so easy now!$" + .string "{UNK_030205}Thanks again for your help!$" + .string "KOBITO{SYM_UNK2}HONDANA{SYM_UNK2}007$" + .string "KOBITO{SYM_UNK2}HONDANA{SYM_UNK2}008$" + .string "{UNK_0301F7}What a great combo!\n" + .string "\n" + .string "You're going to meet\n" + .string "{COLOR}{RED}Elder Librari{COLOR}{WHITE} and {COLOR}{RED}Jotori{COLOR}{WHITE}?\n" + .string "Oh, and how about Librari's long,\n" + .string "boring adventure stories? Haha!\n" + .string "Talk about thrilling! Har har!\n" + .string "\n" + .string "Well, if you're going over there,\n" + .string "just climb over the books!$" + .string "KOBITO{SYM_UNK2}HONDANA{SYM_UNK2}010$" + .string "{UNK_0301F8}We can't get up the shelf, because\n" + .string "some human checked that book out!\n" + .string "But at least we don't have to listen to\n" + .string "{COLOR}{RED}Elder Librari{COLOR}{WHITE}'s boring old stories!$" + .string "{UNK_0301F9}Ahh, it's so nice to have all my little\n" + .string "books in a row!{T_0B}$" + .string "KOBITO{SYM_UNK2}HONDANA{SYM_UNK2}013$" + .string "KOBITO{SYM_UNK2}HONDANA{SYM_UNK2}014$" + .string "KOBITO{SYM_UNK2}HONDANA{SYM_UNK2}015$" + .string "KOBITO{SYM_UNK2}HONDANA{SYM_UNK2}016$" + .string "{UNK_030205}I am {COLOR}{RED}Jotori{COLOR}{WHITE}, one of {COLOR}{RED}Librari{COLOR}{WHITE}'s students!\n" + .string "\n" + .string "And to be perfectly honest, I think\n" + .string "that {COLOR}{RED}Librari{COLOR}{WHITE}'s adventure stories are...\n" + .string "{UNK_0301FD}The best!!\n" + .string "No, really!\n" + .string "I may be a mental giant, but I have\n" + .string "the body of just a tiny Minish lad...\n" + .string "That's why I really admire strong folk!$" + .string "KOBITO{SYM_UNK2}HONDANA{SYM_UNK2}018$" + .string "{UNK_0301FD}Oh! So you passed the trial and\n" + .string "returned with {COLOR}{RED}Elder Librari{COLOR}{WHITE}'s flippers?\n" + .string "I'm so jealous!\n" + .string "I'm not much for exercise myself...\n" + .string "But if you're going on an adventure,\n" + .string "there's no one better to learn from!\n" + .string "Ah, that {COLOR}{RED}Elder Librari{COLOR}{WHITE}! He's so manly!\n" + .string "So brave! And so full of FIRE!$" + .string "KOBITO{SYM_UNK2}HONDANA{SYM_UNK2}020$" + .string "KOBITO{SYM_UNK2}HONDANA{SYM_UNK2}021$" + .string "KOBITO{SYM_UNK2}HONDANA{SYM_UNK2}022$" + .string "KOBITO{SYM_UNK2}HONDANA{SYM_UNK2}023$" + .string "KOBITO{SYM_UNK2}HONDANA{SYM_UNK2}024$" + .string "{UNK_03020D}Wohohoho! What business have you\n" + .string "with old {COLOR}{RED}Librari{COLOR}{WHITE}?\n" + .string "But! Before you ask, please allow me\n" + .string "to introduce myself.\n" + .string "Wohohoho! Ahem, aheeeeem...\n" + .string "\n" + .string "My name is {COLOR}{RED}Librari{COLOR}{WHITE}, and I have lived\n" + .string "many long years.\n" + .string "So many, in fact, that I've rather\n" + .string "forgotten how old I am!\n" + .string "But when I was young, oh,\n" + .string "I crossed mountain and sea!\n" + .string "I had many great adventures, but now\n" + .string "I stay here and teach students.\n" + .string "Yes, I enjoy my life of quiet study.\n" + .string "I have so many stories yet to tell...$" + .string "{UNK_03020D}Yes, you are speaking to the world-\n" + .string "famous treasure-hunter {COLOR}{RED}Librari{COLOR}{WHITE}!$" + .string "KOBITO{SYM_UNK2}HONDANA{SYM_UNK2}027$" + .string "KOBITO{SYM_UNK2}HONDANA{SYM_UNK2}028$" + .string "KOBITO{SYM_UNK2}HONDANA{SYM_UNK2}029$" + .string "KOBITO{SYM_UNK2}HONDANA{SYM_UNK2}030$" + .string "KOBITO{SYM_UNK2}HONDANA{SYM_UNK2}031$" + .string "KOBITO{SYM_UNK2}HONDANA{SYM_UNK2}032$" + .string "KOBITO{SYM_UNK2}HONDANA{SYM_UNK2}033$" + .string "{UNK_03020D}Wohohoho! Oh?\n" + .string "A visitor after many long weeks!\n" + .string "Even {COLOR}{RED}Jotari{COLOR}{WHITE} has been away so long,\n" + .string "I've grown almost...lonely.\n" + .string "...But what is it? What do you need?\n" + .string "\n" + .string "Hm? You want to visit the {COLOR}{RED}Temple of\n" + .string "Droplets{COLOR}{WHITE}?\n" + .string "Very well... You are the first such\n" + .string "brave person in a long while!\n" + .string "Stand on the clover in front of me!$" + .string "{UNK_03020D}Hrmm?\n" + .string "What's this? What's this?\n" + .string "You want me to cut to the chase and\n" + .string "tell you about the {COLOR}{RED}Temple of Droplets{COLOR}{WHITE}?$" + .string "{UNK_03020D}All right, all right. You kids today...\n" + .string "No patience for an old man.\n" + .string "Well, just stand right there, like\n" + .string "I told you!$" + .string "Wohoho!\n" + .string "Now...OPEN, secret mystery panel!!$" + .string "Wohoho! Wasn't that fun?\n" + .string "Now then...\n" + .string "It's up to you to pass this {COLOR}{YELLOW}trial {COLOR}{WHITE}safely\n" + .string "and recover the {COLOR}{GREEN}item {COLOR}{WHITE}you require.\n" + .string "Oh, what fun! I do so love the real\n" + .string "nitty-gritty of adventuring!$" + .string "{UNK_03020D}Well done, indeed! Why, you're almost\n" + .string "as spry as I was at that age!$" + .byte 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xa4, 0x00, 0x00, 0x00, 0xa5, 0x00, 0x00, 0x00, 0xbd, 0x00, 0x00, 0x00, 0xf0, 0x00, 0x00, 0x00, 0x22, 0x01, 0x00, 0x00, 0x52, 0x01, 0x00, 0x00, 0x7d, 0x01, 0x00, 0x00, 0x9f, 0x01, 0x00, 0x00, 0xc5, 0x01, 0x00, 0x00, 0xdc, 0x01, 0x00, 0x00, 0xf4, 0x01, 0x00, 0x00, 0x36, 0x02, 0x00, 0x00, 0x65, 0x02, 0x00, 0x00, 0xa0, 0x02, 0x00, 0x00, 0xbd, 0x02, 0x00, 0x00, 0xd6, 0x02, 0x00, 0x00, 0x19, 0x03, 0x00, 0x00, 0x60, 0x03, 0x00, 0x00, 0x78, 0x03, 0x00, 0x00, 0xa6, 0x03, 0x00, 0x00, 0xf1, 0x03, 0x00, 0x00, 0x35, 0x04, 0x00, 0x00, 0x6a, 0x04, 0x00, 0x00, 0xa6, 0x04, 0x00, 0x00, 0xe8, 0x04, 0x00, 0x00, 0x3b, 0x05, 0x00, 0x00, 0x4d, 0x05, 0x00, 0x00, 0x5f, 0x05, 0x00, 0x00, 0x71, 0x05, 0x00, 0x00, 0x83, 0x05, 0x00, 0x00, 0x95, 0x05, 0x00, 0x00, 0xa7, 0x05, 0x00, 0x00, 0x41, 0x06, 0x00, 0x00, 0x93, 0x06, 0x00, 0x00, 0xd4, 0x06, 0x00, 0x00, 0xca, 0x07, 0x00, 0x00, 0x62, 0x08, 0x00, 0x00, 0xcc, 0x08, 0x00, 0x00, 0x15, 0x09, 0x00, 0x00, 0x4e, 0x09, 0x00, 0x00, 0x60, 0x09, 0x00, 0x00, 0x00 + .string "{UNK_0301F7}What a nice smell...$" + .string "{UNK_0301FB}I like those red hats the Forest Minish\n" + .string "wear...$" + .string "{UNK_0301F8}I like these blue hats the Town\n" + .string "Minish wear...$" + .string "{UNK_0301FD}The {COLOR}{RED}Forest Minish{COLOR}{WHITE}\n" + .string "have come for a visit.$" + .string "{UNK_0301FF}I knew the city life would be exciting!$" + .string "{UNK_030201}Everyone here is so refined...$" + .string "{UNK_030202}I get hungry just from that smell!$" + .string "{UNK_0301FC}I want a red hat...$" + .string "{UNK_0301FC}I want a blue hat...$" + .string "{UNK_0301FF}Our reunion with the {COLOR}{RED}Forest Minish{COLOR}{WHITE} is\n" + .string "still in full swing!$" + .string "{UNK_030201}We're getting more refined just\n" + .string "BEING here!$" + .string "{UNK_030201}Maybe I should just stay here and\n" + .string "never go back home...$" + .string "{UNK_030205}What a wonderful smell...$" + .string "{UNK_030203}We just love bread...$" + .string "{UNK_030202}Sometimes I sneak off with a little\n" + .string "nibble of leftover bread.{T_0B}$" + .string "{UNK_030200}The bread {COLOR}{RED}Wheaton {COLOR}{WHITE}makes has got\n" + .string "to be the best bread in Hyrule!$" + .string "{UNK_0301FB}Isn't {COLOR}{RED}Pita {COLOR}{WHITE}cute?$" + .string "{UNK_0301FF}Every one of their breads is\n" + .string "so delicious!$" + .string "{UNK_0301FE}Those two newlyweds are being more\n" + .string "fresh than this fresh-baked bread!{T_0B}$" + .string "{UNK_0301FA}It's such a thrill coming up here from\n" + .string "below, just like PSHOOOO!$" + .string "{UNK_0301FD}Fewer and fewer people are coming\n" + .string "to buy bread...$" + .string "{UNK_0301FC}I can't believe how dangerous\n" + .string "it's gotten around here...$" + .string "{UNK_0301FB}Now more than ever, we all need to get\n" + .string "some good-luck bread!{T_0B}$" + .string "{UNK_0301FE}I like eating leftovers, but I just wish\n" + .string "business were going better for them...$" + .string "KOBITO{SYM_UNK2}HARI{SYM_UNK2}025$" + .string "KOBITO{SYM_UNK2}HARI{SYM_UNK2}026$" + .string "KOBITO{SYM_UNK2}HARI{SYM_UNK2}027$" + .string "KOBITO{SYM_UNK2}HARI{SYM_UNK2}028$" + .string "KOBITO{SYM_UNK2}HARI{SYM_UNK2}029$" + .string "KOBITO{SYM_UNK2}HARI{SYM_UNK2}030$" + .string "{UNK_0301F8}Hmmm! I see! Oh, that makes sense!\n" + .string "...Human books are so interesting!\n" + .string "And that guy {COLOR}{RED}Dr. Left{COLOR}{WHITE} living down there\n" + .string "has great taste in reading material!$" + .string "{UNK_0301F9}I'm almost done with this book. I should\n" + .string "go nab another of the doctor's books.$" + .string "{UNK_0301FA}I would love to read something a little\n" + .string "more romantic next...$" + .string "{UNK_0301FB}Ho! Ha! Hey!!\n" + .string "\n" + .string "Phew... I want to {COLOR}{YELLOW}return this book by\n" + .string "dropping it down below{COLOR}{WHITE}.\n" + .string "It's impossible without some\n" + .string "extra weight here...\n" + .string "But my brother is so busy with a book\n" + .string "of his own that he won't help me out!\n" + .string "Maybe I can do it if I try again...$" + .string "{UNK_0301FC}I think my brother is going to finish\n" + .string "that book he's reading soon.\n" + .string "I bet I'll have to return that one, too.\n" + .string "Guess I'd better put on a little weight!$" + .string "{UNK_0301FE}My brother loves reading books!\n" + .string "\n" + .string "And I love pushing my brother's books\n" + .string "off the rafters to return them!$" + .string "{UNK_030201}It's a bit dusty up here, huh?\n" + .string "Maybe I should do a little cleaning...$" + .string "{UNK_030202}Thanks for cleaning up!\n" + .string "Now, all that dust is gone!{T_0B}$" + .string "KOBITO{SYM_UNK2}HARI{SYM_UNK2}039$" + .string "KOBITO{SYM_UNK2}HARI{SYM_UNK2}040$" + .byte 0xff, 0xff, 0x5c, 0x00, 0x00, 0x00, 0x6d, 0x00, 0x00, 0x00, 0x71, 0x01, 0x00, 0x00, 0x31, 0x02, 0x00, 0x00, 0xd3, 0x02, 0x00, 0x00, 0x20, 0x03, 0x00, 0x00, 0x8a, 0x03, 0x00, 0x00, 0xce, 0x03, 0x00, 0x00, 0x95, 0x04, 0x00, 0x00, 0x31, 0x05, 0x00, 0x00, 0xd4, 0x05, 0x00, 0x00, 0x02, 0x06, 0x00, 0x00, 0x44, 0x06, 0x00, 0x00, 0xaf, 0x06, 0x00, 0x00, 0x84, 0x07, 0x00, 0x00, 0x26, 0x08, 0x00, 0x00, 0x9a, 0x08, 0x00, 0x00, 0x1d, 0x09, 0x00, 0x00, 0xa7, 0x09, 0x00, 0x00, 0x38, 0x0a, 0x00, 0x00, 0x49, 0x0a, 0x00, 0x00, 0xdf, 0x0a, 0x00, 0x00, 0x12, 0x0b, 0x00, 0x00 + .string "SHICYO{SYM_UNK2}TEI{SYM_UNK2}000$" + .string "Aherrrm herrmmm!\n" + .string "I am {COLOR}{RED}Hagen{COLOR}{WHITE}, mayor of this fair town!\n" + .string "Mayors are usually very important and\n" + .string "busy folk, I'll have you know...\n" + .string "But I still have a hobby, of course!\n" + .string "I collect unusual masks!\n" + .string "I just love them!\n" + .string "They're beautiful!\n" + .string "Simply magnificent, I tell you!$" + .string "Aherrm!\n" + .string "\n" + .string "Yes! That's me, {COLOR}{RED}Hagen{COLOR}{WHITE}.\n" + .string "I am mayor of this town.\n" + .string "What's that? You want a book?\n" + .string "{COLOR}{GREEN}A History of Masks{COLOR}{WHITE}?\n" + .string "And you say I checked it out,\n" + .string "do you? Yes, indeed I did...\n" + .string "Or wait... Did I?$" + .string "Ahh, you seem to have found the book,\n" + .string "safe and sound and in fine shape!\n" + .string "But only because you listened to my\n" + .string "masks like a good little boy, right?\n" + .string "War har har har!$" + .string "I'm going to have to pick up volume 2.\n" + .string "That last book was just getting good!$" + .string "{UNK_0301FE}The person living here is the mayor,\n" + .string "very important you know.\n" + .string "Doesn't it all just sound so...official?$" + .string "{UNK_0301F8}The mayor likes strange masks.\n" + .string "Sometimes, he even makes his own.$" + .string "{UNK_0301FD}The mayor took off for his {COLOR}{RED}cabin by the\n" + .string "lake{COLOR}{WHITE} clutching a {COLOR}{GREEN}book{COLOR}{WHITE}. We saw him go...\n" + .string "But after the chest was opened, the\n" + .string "road to {COLOR}{RED}Minish Woods{COLOR}{WHITE} was blocked.\n" + .string "You won't be able to get through.$" + .string "{UNK_0301F6}When the {COLOR}{RED}mayor {COLOR}{WHITE}came back, he didn't\n" + .string "have that {COLOR}{GREEN}book {COLOR}{WHITE}anymore.\n" + .string "I'm sure he just left it at his {COLOR}{RED}lakeside\n" + .string "cabin{COLOR}{WHITE}. He's pretty forgetful like that.$" + .string "{UNK_0301FC}You want to go to the cabin\n" + .string "by the lake?\n" + .string "Well, let me just mark\n" + .string "it here on your {COLOR}{GREEN}map{COLOR}{WHITE}.\n" + .string "Err... Yes! There. It's right here.\n" + .string "You should be able to find it now.$" + .string "{UNK_0301FD}So the {COLOR}{GREEN}book {COLOR}{WHITE}WAS at the {COLOR}{RED}lake{COLOR}{WHITE}, then.$" + .string "{UNK_0301F9}Ah, but I do love our absentminded\n" + .string "old mayor. He's a fine man.$" + .string "You know, these masks see everything\n" + .string "that goes on in my private life.\n" + .string "Maybe you should just ask my masks!\n" + .string "$" + .string "I think I've finally got a good grasp\n" + .string "of how things run in {COLOR}{RED}Hyrule{COLOR}{WHITE}.\n" + .string "Things run so smoothly around here,\n" + .string "and I haven't even done a thing!\n" + .string "I wonder how much better this place\n" + .string "would be if I actually did anything!$" + .string "Aherrm!! That hole in the garden leads\n" + .string "to a shelter of sorts.\n" + .string "But it's not like I'm trying to run off\n" + .string "and save myself alone or anything!\n" + .string "Just keep that in mind!\n" + .string "$" + .string "I'm thinking of ways to increase the\n" + .string "library's budget to buy more books.\n" + .string "Especially the ones about masks,\n" + .string "you know.$" + .string "I may look somewhat idle to you,\n" + .string "but no, sir!\n" + .string "I will be working terrifically hard as\n" + .string "soon as you leave.\n" + .string "You can bet on that! Hoho!$" + .string "These are the times that really test my\n" + .string "mettle as a mayor, I tell you.\n" + .string "Hyrule is my responsibility to the last.\n" + .string "Everyone to the shelters!$" + .string "Monsters are coming!\n" + .string "Everyone stay indoors!\n" + .string "Oh, that doesn't apply to you, my boy!\n" + .string "You go get 'em, {PLAYER}!\n" + .string "Your sword and bravery\n" + .string "will save the day!$" + .string "SHICYO{SYM_UNK2}TEI{SYM_UNK2}019$" + .string "I hope I don't sound like I'm bragging,\n" + .string "but I have a cabin at {COLOR}{RED}Lake Hylia{COLOR}{WHITE}.\n" + .string "It's a gorgeous little place where I go\n" + .string "to enjoy my hobby, mask making.$" + .string "{UNK_0301F9}That {COLOR}{RED}cabin by the lake{COLOR}{WHITE} is\n" + .string "really quite far.$" + .string "{UNK_0301FD}The mayor wouldn't be nearly so\n" + .string "charming if he weren't so carefree.$" + .byte 0xff, 0xff, 0xff, 0x40, 0x00, 0x00, 0x00, 0x4a, 0x00, 0x00, 0x00, 0xc9, 0x00, 0x00, 0x00, 0x30, 0x01, 0x00, 0x00, 0x3a, 0x01, 0x00, 0x00, 0x44, 0x01, 0x00, 0x00, 0xce, 0x02, 0x00, 0x00, 0x33, 0x03, 0x00, 0x00, 0xc4, 0x04, 0x00, 0x00, 0x6f, 0x06, 0x00, 0x00, 0xe7, 0x06, 0x00, 0x00, 0x2a, 0x07, 0x00, 0x00, 0xc7, 0x08, 0x00, 0x00, 0xae, 0x09, 0x00, 0x00, 0xd9, 0x09, 0x00, 0x00, 0x2c, 0x0a, 0x00, 0x00 + .string "LEFT{SYM_UNK2}000$" + .string "What is all of this!?\n" + .string "I'm busy, don't you see that?\n" + .string "Do not disturb my research! If you have\n" + .string "no business, begone! You heard me!$" + .string "What, huh?\n" + .string "A book? From the library?\n" + .string "Ah, yes...of course. I knew this\n" + .string "day would come. Please, come in.$" + .string "LEFT{SYM_UNK2}003$" + .string "LEFT{SYM_UNK2}004$" + .string "I am a researcher of Picori legend\n" + .string "and lore. My name is {COLOR}{YELLOW}Dr. Left{COLOR}{WHITE}.\n" + .string "You're here about that book,\n" + .string "{COLOR}{GREEN}Legend of the Picori{COLOR}{WHITE}, aren't you?\n" + .string "Well, I hate to say this, but I haven't\n" + .string "seen it in several days.\n" + .string "Perhaps a mischievous little mouse\n" + .string "has taken it?\n" + .string "Well, I'm sure it's in this house\n" + .string "somewhere. I just don't know where.\n" + .string "But I'm very busy right now, so why\n" + .string "don't you just look for it yourself?$" + .string "A book fell with a {QT}THUD!{QT} a little\n" + .string "while ago.\n" + .string "It gave me such a shock that\n" + .string "my heart skipped a beat!$" + .string "You found and returned the book for\n" + .string "me, did you? I'm very grateful.\n" + .string "Here, let me tell you something\n" + .string "interesting as thanks.\n" + .string "You see, the Minish did not always live\n" + .string "in our world.\n" + .string "No, they came through a secret portal\n" + .string "many ages ago from their world to ours!\n" + .string "But don't tell anyone! It's a valuable\n" + .string "bit of knowledge that only I know!\n" + .string "And I gleaned it only after hours of\n" + .string "study from an incredibly old book.$" + .string "So you've come to hear more about the\n" + .string "Minish, have you?\n" + .string "Well, I can part with one more tidbit,\n" + .string "I suppose... It could be useful.\n" + .string "The portal linking us to the Minish\n" + .string "world opens only once every 100 years.\n" + .string "That means the Minish here now are\n" + .string "descendants of those who came before.\n" + .string "That's right! Those Minish came here\n" + .string "100 years ago, or even longer ago!\n" + .string "Now that the portal is open this year,\n" + .string "perhaps new Minish will come through...$" + .string "The more I study the Minish, the closer\n" + .string "I feel to them!\n" + .string "It's almost as if they were right\n" + .string "here with me, all the time...$" + .string "I never leave my house, whether there\n" + .string "are monsters outside or not!$" + .string "Hey, do you know the clues that reveal\n" + .string "the location of the treasure?\n" + .string "{COLOR}{YELLOW}Cross the bridge that spans\n" + .string "the rapid flow...\n" + .string "Through the land of\n" + .string "the fearsome beast...\n" + .string "Until you reach\n" + .string "the misty falls...\n" + .string "The treasure sleeps on the other side\n" + .string "of the secret entrance there...{COLOR}{WHITE}\n" + .string "They say it's a magical tool that allows\n" + .string "even little people to push big things!\n" + .string "According to the legend, you're\n" + .string "supposed to start from this house!$" + .string "{UNK_0301FB}Ahh... What should I do? Should I stay\n" + .string "or go? If I go, there could be...\n" + .string "...What's that?\n" + .string "\n" + .string "You've already found the {COLOR}{GREEN}bracelet {COLOR}{WHITE}that\n" + .string "makes one strong?!\n" + .string "Ahhh, I knew it! I'd been stumped on\n" + .string "that for so long! I knew I'd lose out!$" + .string "{UNK_0301FC}You're so brave!\n" + .string "I really respect that!$" + .string "{UNK_0301FD}Have you been using the {COLOR}{GREEN}bracelet {COLOR}{WHITE}that\n" + .string "makes you strong? Must come in handy!$" + .string "Oh, look! You've found it! Could I ask\n" + .string "you to return that {COLOR}{GREEN}book {COLOR}{WHITE}for me, lad?$" + .byte 0xff, 0xff, 0xff, 0xff, 0xd0, 0x00, 0x00, 0x00, 0xd1, 0x00, 0x00, 0x00, 0x0f, 0x01, 0x00, 0x00, 0x43, 0x01, 0x00, 0x00, 0x4b, 0x01, 0x00, 0x00, 0x7b, 0x01, 0x00, 0x00, 0xc8, 0x01, 0x00, 0x00, 0x01, 0x02, 0x00, 0x00, 0xed, 0x02, 0x00, 0x00, 0xad, 0x03, 0x00, 0x00, 0x45, 0x04, 0x00, 0x00, 0x90, 0x05, 0x00, 0x00, 0xf5, 0x05, 0x00, 0x00, 0xf6, 0x05, 0x00, 0x00, 0xf7, 0x05, 0x00, 0x00, 0x49, 0x06, 0x00, 0x00, 0x67, 0x06, 0x00, 0x00, 0xcc, 0x06, 0x00, 0x00, 0x80, 0x07, 0x00, 0x00, 0x81, 0x07, 0x00, 0x00, 0x8c, 0x07, 0x00, 0x00, 0x97, 0x07, 0x00, 0x00, 0xba, 0x07, 0x00, 0x00, 0x0c, 0x08, 0x00, 0x00, 0x20, 0x08, 0x00, 0x00, 0x2a, 0x08, 0x00, 0x00, 0x7f, 0x08, 0x00, 0x00, 0xb7, 0x08, 0x00, 0x00, 0xe6, 0x08, 0x00, 0x00, 0x33, 0x09, 0x00, 0x00, 0xb0, 0x09, 0x00, 0x00, 0x03, 0x0a, 0x00, 0x00, 0x47, 0x0a, 0x00, 0x00, 0x88, 0x0a, 0x00, 0x00, 0xd0, 0x0a, 0x00, 0x00, 0x41, 0x0b, 0x00, 0x00, 0x76, 0x0b, 0x00, 0x00, 0xc0, 0x0b, 0x00, 0x00, 0x2b, 0x0c, 0x00, 0x00, 0x80, 0x0c, 0x00, 0x00, 0x19, 0x0d, 0x00, 0x00, 0x81, 0x0d, 0x00, 0x00, 0x82, 0x0d, 0x00, 0x00, 0x83, 0x0d, 0x00, 0x00, 0xc1, 0x0d, 0x00, 0x00, 0xf9, 0x0d, 0x00, 0x00, 0x0d, 0x0e, 0x00, 0x00, 0x3a, 0x0e, 0x00, 0x00, 0x7a, 0x0e, 0x00, 0x00, 0xc8, 0x0e, 0x00, 0x00, 0x26, 0x0f, 0x00, 0x00, 0x76, 0x0f, 0x00, 0x00, 0x00 + .string "Hey.\n" + .string "What do you want?\n" + .string "My sister's not here.\n" + .string "She's at school.$" + .string "You have a weird hat. Where can\n" + .string "I get one of those?$" + .string "Aaaarf!$" + .string "My dog's real smart.\n" + .string "And a little spoiled, too.$" + .string "{COLOR}{RED}Julietta{COLOR}{WHITE}, from next door, went\n" + .string "back" + .string " home...\n" + .string "But I'll see her tomorrow!{T_0B}$" + .string "My sister's back now.\n" + .string "I guess she's supposed to stay in.$" + .string "{UNK_0300D1}Awooo! Hot! Awoo!\n" + .string "{COLOR}{YELLOW}The fireplace is too hot!{COLOR}{WHITE}\n" + .string "My master won't come home, 'cuz he's\n" + .string "head over heels for the girl next door.\n" + .string "But when he puts the fire out, then\n" + .string "sometimes mice come out...\n" + .string "I hate mice, so either way,\n" + .string "I'm never happy!$" + .string "{UNK_0300D1}It's too hot! Arf...\n" + .string "{COLOR}{YELLOW}The fireplace is too hot...{COLOR}{WHITE}\n" + .string "Now there are even more people in here,\n" + .string "and it's getting too hot to bear!\n" + .string "What will it take to cool this place\n" + .string "down!? Pant, pant, pant!$" + .string "{UNK_0300D1}Thanks, arf!\n" + .string "You put out the fire.\n" + .string "But I'm still miffed at my master!\n" + .string "\n" + .string "I can't believe how long he's been\n" + .string "hanging out with his girlfriend!\n" + .string "Arf! Arf!$" + .string "Huh? A {COLOR}{GREEN}book {COLOR}{WHITE}from the {COLOR}{RED}library{COLOR}{WHITE}?\n" + .string "\n" + .string "{COLOR}{GREEN}A Hyrulean Bestiary{COLOR}{WHITE}, is that the one?\n" + .string "Yeah, I checked it out a while ago.\n" + .string "You came all this way to get it?\n" + .string "Wow! You're one dedicated librarian!\n" + .string "But... I don't know how to tell you\n" + .string "this, but it's back at my house.\n" + .string "Would you mind going there to get it?\n" + .string "I just can't leave right now, see...$" + .string "They say the king's been weird lately.\n" + .string "\n" + .string "But that doesn't really have anything\n" + .string "to do with our love...$" + .string "$" + .string "$" + .string "I'm writing a letter right now, so I\n" + .string "don't have any time to play with you.\n" + .string "Sorry.$" + .string "You returned my book?\n" + .string "Thanks!$" + .string "They say the king's been weird lately.\n" + .string "\n" + .string "But that doesn't really have anything\n" + .string "to do with our love...$" + .string "You ought to be careful when you're\n" + .string "running around! You're awfully tiny!\n" + .string "And not all dogs and cats are nice,\n" + .string "like me. Woof!\n" + .string "Some of them might even take a swipe\n" + .string "at you, arf! Rarf!$" + .string "$" + .string "MINKA{SYM_UNK2}019$" + .string "MINKA{SYM_UNK2}020$" + .string "Oh, hello.\n" + .string "My brother's at school.$" + .string "I'm writing a letter right now, so I\n" + .string "don't have any time to play with you.\n" + .string "Sorry.$" + .string "{UNK_0300D2}Meowry-meowww!!!$" + .string "{UNK_0300D2}Sssss!$" + .string "My family is all very close. Same with\n" + .string "{COLOR}{RED}Romio{COLOR}{WHITE}'s family next door, too.\n" + .string "Hee hee!{T_0B}$" + .string "My brother's back. Now, he's not\n" + .string "allowed out anymore...$" + .string "Dear Mom,\n" + .string "Gone to Julietta's house. Back soon.$" + .string "{UNK_030202}It's really dangerous up ahead! You\n" + .string "can't just charge through recklessly!$" + .string "{UNK_030202}Hey, I've heard about you... So you're\n" + .string "gonna go ahead, are you?\n" + .string "Well, onward to glory then!\n" + .string "Just don't die out there, OK?$" + .string "{UNK_030202}You made it through that den of evil\n" + .string "and came back alive?!\n" + .string "Amazing! Whoo! Whoo!$" + .string "I come from a faraway land. You\n" + .string "can tell by my clothing, can't you?$" + .string "This place isn't so bad once you get\n" + .string "used to it. I like it here.$" + .string "In this cool climate, my clothes are\n" + .string "a little on the unprotective side.$" + .string "I'm thinking about calling my family\n" + .string "over soon.\n" + .string "Living with your feet on the ground\n" + .string "is not so bad, I've decided.$" + .string "So you've been to my " + .string "hometown?\n" + .string "It's great, isn't it?$" + .string "Monsters could attack at any time.\n" + .string "Maybe I shouldn't call my family over.$" + .string "{UNK_0301FF}I really like this house. This is the\n" + .string "best place in this whole human town!\n" + .string "I want to stay here forever.$" + .string "{UNK_0301FF}This place is getting a little run-down.\n" + .string "I'm thinking about rebuilding the place.$" + .string "{UNK_0301FF}Welcome!\n" + .string "\n" + .string "This is my new house! Ah... Don't\n" + .string "you just love that new-house smell?\n" + .string "And I was JUST thinking about building\n" + .string "a new house, so this is great!$" + .string "{UNK_0301FF}Imagine moving from a musty old\n" + .string "mushroom to a fabulous house like this!\n" + .string "It's like a dream come true!$" + .string "$" + .string "$" + .string "Well, I suppose I'd better get dinner\n" + .string "started! Hmm hm hmmm!{T_0B}$" + .string "Oooh, scary... Well, as long as nothing\n" + .string "else happens...$" + .string "What's a moss-ster?$" + .string "It's so boring not being\n" + .string "able to go outside.$" + .string "{UNK_030200}The boss might seem rough, but he's\n" + .string "a real softy at heart...$" + .string "{UNK_030200}The boss is a real refined fella, right?\n" + .string "Anybody what's smart can see dat!$" + .string "{UNK_030200}I would like to apprentice to the boss,\n" + .string "too, but he barely even notices me...\n" + .string "It's so sad.$" + .string "{UNK_030200}They call him Punch Mutoh because he's\n" + .string "like a real punchy fella and all dat.$" + .string "{UNK_030200}The boss is the number-one builder in\n" + .string "town. You need a building, you see him.$" + .byte 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0x98, 0x01, 0x00, 0x00, 0x30, 0x02, 0x00, 0x00, 0x80, 0x02, 0x00, 0x00, 0xcc, 0x02, 0x00, 0x00, 0xef, 0x02, 0x00, 0x00, 0x54, 0x03, 0x00, 0x00, 0xb7, 0x03, 0x00, 0x00, 0x8d, 0x04, 0x00, 0x00, 0xa3, 0x04, 0x00, 0x00, 0x00, 0x05, 0x00, 0x00, 0x2a, 0x05, 0x00, 0x00, 0xab, 0x05, 0x00, 0x00, 0xfb, 0x05, 0x00, 0x00, 0x1a, 0x06, 0x00, 0x00, 0x35, 0x06, 0x00, 0x00, 0x6b, 0x06, 0x00, 0x00, 0x92, 0x06, 0x00, 0x00, 0x34, 0x07, 0x00, 0x00, 0x4f, 0x07, 0x00, 0x00, 0xd0, 0x07, 0x00, 0x00, 0x1e, 0x08, 0x00, 0x00, 0x71, 0x08, 0x00, 0x00, 0xc1, 0x08, 0x00, 0x00, 0x08, 0x09, 0x00, 0x00, 0x30, 0x09, 0x00, 0x00, 0xb0, 0x09, 0x00, 0x00, 0xff, 0x09, 0x00, 0x00, 0x1b, 0x0a, 0x00, 0x00, 0x41, 0x0a, 0x00, 0x00, 0x81, 0x0a, 0x00, 0x00, 0xa5, 0x0a, 0x00, 0x00, 0x1d, 0x0b, 0x00, 0x00, 0x78, 0x0b, 0x00, 0x00, 0xef, 0x0b, 0x00, 0x00, 0x40, 0x0c, 0x00, 0x00, 0x68, 0x0c, 0x00, 0x00, 0xa8, 0x0c, 0x00, 0x00, 0x1e, 0x0d, 0x00, 0x00, 0x63, 0x0d, 0x00, 0x00, 0x93, 0x0d, 0x00, 0x00, 0xc1, 0x0d, 0x00, 0x00, 0x14, 0x0e, 0x00, 0x00, 0x66, 0x0e, 0x00, 0x00, 0x19, 0x0f, 0x00, 0x00, 0x75, 0x0f, 0x00, 0x00, 0xdf, 0x0f, 0x00, 0x00, 0x07, 0x10, 0x00, 0x00, 0x2c, 0x10, 0x00, 0x00, 0x52, 0x10, 0x00, 0x00, 0xe6, 0x10, 0x00, 0x00, 0x49, 0x11, 0x00, 0x00, 0x6c, 0x11, 0x00, 0x00, 0x94, 0x11, 0x00, 0x00, 0xf2, 0x11, 0x00, 0x00, 0x44, 0x12, 0x00, 0x00, 0xed, 0x12, 0x00, 0x00, 0x6e, 0x13, 0x00, 0x00, 0xd2, 0x13, 0x00, 0x00, 0x03, 0x14, 0x00, 0x00, 0x1a, 0x14, 0x00, 0x00, 0x56, 0x14, 0x00, 0x00, 0xe3, 0x14, 0x00, 0x00, 0x3f, 0x15, 0x00, 0x00, 0x53, 0x15, 0x00, 0x00, 0x90, 0x15, 0x00, 0x00, 0x06, 0x16, 0x00, 0x00, 0x24, 0x16, 0x00, 0x00, 0xba, 0x16, 0x00, 0x00, 0x0e, 0x17, 0x00, 0x00, 0x8e, 0x17, 0x00, 0x00, 0xdb, 0x17, 0x00, 0x00, 0x6d, 0x18, 0x00, 0x00, 0xce, 0x18, 0x00, 0x00, 0xe5, 0x18, 0x00, 0x00, 0x0f, 0x19, 0x00, 0x00, 0x98, 0x19, 0x00, 0x00, 0xc5, 0x19, 0x00, 0x00, 0x00, 0x1a, 0x00, 0x00, 0x84, 0x1a, 0x00, 0x00, 0xfe, 0x1a, 0x00, 0x00, 0x45, 0x1b, 0x00, 0x00, 0x46, 0x1b, 0x00, 0x00, 0xc5, 0x1b, 0x00, 0x00, 0x48, 0x1c, 0x00, 0x00, 0xc5, 0x1c, 0x00, 0x00, 0x21, 0x1d, 0x00, 0x00, 0xb4, 0x1d, 0x00, 0x00, 0x4c, 0x1e, 0x00, 0x00, 0x1f, 0x1f, 0x00, 0x00, 0xae, 0x1f, 0x00, 0x00, 0x92, 0x20, 0x00, 0x00, 0x64, 0x21, 0x00, 0x00, 0xdd, 0x21, 0x00, 0x00, 0x2b, 0x22, 0x00, 0x00, 0x9e, 0x22, 0x00, 0x00, 0x55, 0x23, 0x00, 0x00, 0x56, 0x23, 0x00, 0x00, 0x57, 0x23, 0x00, 0x00, 0x58, 0x23, 0x00, 0x00, 0x59, 0x23, 0x00, 0x00, 0x5a, 0x23, 0x00, 0x00, 0x5b, 0x23, 0x00, 0x00 + .string "We do our best to make this a nice,\n" + .string "cozy place, where people can relax.\n" + .string "My ideal cafe is a place where everyone\n" + .string "can just let it all hang out. Ah, yeah.$" + .string "My ideal cafe is a place where everyone\n" + .string "can just let it all hang out. Ah, yeah.$" + .string "We hear all sorts of interesting gossip\n" + .string "in here. Stop by from time to time.$" + .string "Make yourself at home...\n" + .string "Heehee...$" + .string "I am a laid-back, easygoing kind\n" + .string "of guy. Not a care in the world.\n" + .string "And that's just the way I like it!$" + .string "He who can enjoy a nice cup of\n" + .string "steaming hot tea at his leisure...\n" + .string "is truly master of his own time.$" + .string "Let me tell you something that\n" + .string "might come in handy someday.\n" + .string "You can move bookcases and stuff.\n" + .string "Try to {COLOR}{YELLOW}push and pull different things{COLOR}{WHITE}...\n" + .string "After all, you're young! You should\n" + .string "be trying all kinds of new things! Ha!$" + .string "I'm one smart cookie!$" + .string "Cheers! Yaay! Cheers!\n" + .string "Raise your milk for a toast!\n" + .string "I wonder what I should have for\n" + .string "dinner...$" + .string "I wonder what I should have for\n" + .string "dinner...$" + .string "Everyone's so relaxed here.\n" + .string "That's a good thing.\n" + .string "My ideal cafe is a place where everyone\n" + .string "can just let it all hang out. Ah, yeah.$" + .string "My ideal cafe is a place where everyone\n" + .string "can just let it all hang out. Ah, yeah.$" + .string "Welcoooooome!\n" + .string "Nice to see you!$" + .string "Take a load off.\n" + .string "Heehee...$" + .string "This is my special time...\n" + .string "\n" + .string "Just me and my cuppa joe.$" + .string "Well, I don't actually drink coffee...$" + .string "It seems the {COLOR}{RED}king {COLOR}{WHITE}has commanded all of\n" + .string "the guards to search for magic power.\n" + .string "Folks say that this {QT}{COLOR}{GREEN}light force{COLOR}{WHITE}{QT} will\n" + .string "grant any wish, but I don't buy it...$" + .string "I know all kinds of stuff.$" + .string "Cheers! Yaay! Cheers!\n" + .string "Raise your millk for a toast!\n" + .string "Can't we just have the same thing for\n" + .string "dinner tonight that we had last night?$" + .string "I wonder if we can't just have the same\n" + .string "thing for dinner we had last night...$" + .string "{UNK_0301F8}This cafe is so busy. You can hear all\n" + .string "sorts of stuff from all the people here.$" + .string "{UNK_0301F8}It's just right for people like us who\n" + .string "thrive on the hustle and bustle, huh?$" + .string "{UNK_0301F8}It's hard not to get stepped on when\n" + .string "there are so many people here.$" + .string "{UNK_0301F8}And adults can't even see us, right?$" + .string "Everyone's so relaxed here.\n" + .string "That's a good thing.\n" + .string "My ideal cafe is a place where everyone\n" + .string "can relax, relax, and relax some more.$" + .string "My ideal cafe is a place where everyone\n" + .string "can relax, relax, and relax some more.$" + .string "Hey there, sweety!\n" + .string "Welcome!$" + .string "Just sit anywhere you like,\n" + .string "heehee...$" + .string "Talking only to oneself...\n" + .string "\n" + .string "is an exercise in eloquent silence.$" + .string "I wonder if that makes any sense...$" + .string "The {COLOR}{RED}king {COLOR}{WHITE}was always such a nice man,\n" + .string "but lately, he's been such a brute...\n" + .string "I wonder what happened to him?\n" + .string "Hohoho...$" + .string "Maybe a monster crawled in his skin and\n" + .string "is parading around as the real {COLOR}{RED}king{COLOR}{WHITE}!\n" + .string "Hohohoho!$" + .string "Cheers! Yaay! Cheers!\n" + .string "Raise your milk for a toast!\n" + .string "Would they even notice if I made the\n" + .string "same thing for dinner tonight?$" + .string "I wonder...\n" + .string "\n" + .string "Would they even notice if I made the\n" + .string "same thing for dinner tonight?$" + .string "{UNK_0301F8}Welcome back, honey!\n" + .string "Good to see ya!$" + .string "{UNK_0301F8}The old lady in front of this house\n" + .string "drinks nothing but milk.$" + .string "Everyone's so relaxed here.\n" + .string "That's a good thing.\n" + .string "A place you don't ever want to leave.\n" + .string "That's my idea of a good cafe.$" + .string "A place you don't ever want to leave.\n" + .string "That's my idea of a good cafe.$" + .string "Welcome back, you!\n" + .string "You're my favorite customer!$" + .string "So you've been good lately?\n" + .string "Gooood, heehee...$" + .string "You can tell all of your deepest\n" + .string "secrets to a wall.\n" + .string "The wall will never talk back.$" + .string "But I've found if you talk to 'em right,\n" + .string "walls will give up all sorts of secrets!$" + .string "You're going to the {COLOR}{RED}Royal Valley{COLOR}{WHITE}?\n" + .string "I hear that place is haunted...\n" + .string "But there's a secret entrance that will\n" + .string "get you there from {COLOR}{RED}Hyrule Field{COLOR}{WHITE}.\n" + .string "I mean, that's what I've heard.$" + .string "That place is dark even in the daytime.\n" + .string "\n" + .string "And you know how ghosts love\n" + .string "the dark! Hohohoho...$" + .string "Cheers! Yaay! Cheers!\n" + .string "Raise your milk for a toast!\n" + .string "Hey, I know... Why don't we just have\n" + .string "milk for dinner?$" + .string "Why can't we just have\n" + .string "milk for dinner?$" + .string "{UNK_0301F8}Oh, hey there...\n" + .string "Good to see you.$" + .string "{UNK_0301F8}We Minish all get along very well.$" + .string "Everyone's so relaxed here.\n" + .string "That's a good thing.\n" + .string "A place where you're so familiar that\n" + .string "you don't even have to order.\n" + .string "That's my idea of a good cafe.$" + .string "A place where you're so familiar that\n" + .string "you don't even have to order.\n" + .string "That's my idea of a good cafe.$" + .string "Howdy, hon.\n" + .string "Glad to see you again.$" + .string "Aren't you looking manly now!\n" + .string "Heehee...$" + .string "Actually, there is a VERY GOOD reason\n" + .string "I cannot stand...\n" + .string "What would you do if I told you that?$" + .string "What is truth?\n" + .string "\n" + .string "When we understand this, then we will\n" + .string "conquer even time itself...$" + .string "The{COLOR}{RED} source of the flow{COLOR}{WHITE}? Well, that's\n" + .string "easy. It's talking about water!\n" + .string "The water flowing into {COLOR}{RED}town {COLOR}{WHITE}and into\n" + .string "the {COLOR}{RED}lake {COLOR}{WHITE}all comes from the same place.\n" + .string "Hohohoh...$" + .string "If you're looking for the {COLOR}{RED}source of\n" + .string "the flow{COLOR}{WHITE}...\n" + .string "Well, you'd better make sure you're\n" + .string "well equipped is all I'm sayin'! Hohoho!$" + .string "Cheers! Yaay! Cheers!\n" + .string "Raise your milk for a toast!\n" + .string "I wonder...do we even need to eat\n" + .string "dinner at all?$" + .string "I wonder...do we even need to eat\n" + .string "dinner at all?$" + .string "{UNK_0301F8}Welcome, sugar pie!$" + .string "{UNK_0301F8}It's so convenient to live in a human\n" + .string "house as a Minish.$" + .string "Everyone's so relaxed here.\n" + .string "That's a good thing.\n" + .string "A place where you can relax despite\n" + .string "what's going on outside.\n" + .string "That's my idea of a good cafe.$" + .string "A place where you can relax despite\n" + .string "what's going on outside.\n" + .string "That's my idea of a good cafe.$" + .string "Heeeey!\n" + .string "Weeeelcome!$" + .string "You're turning into a fine little man,\n" + .string "aren't you! Heehee...$" + .string "Though I am nondescript, you notice me\n" + .string "and talk to me.\n" + .string "That makes me the prize, and you\n" + .string "are the winner of that prize!$" + .string "Someday, you will understand.$" + .string "I hear a guard who was looking for the\n" + .string "{COLOR}{GREEN}light force {COLOR}{WHITE}got thrown in the dungeon!\n" + .string "Why, the {COLOR}{RED}king {COLOR}{WHITE}is hardly worthy of being\n" + .string "called {QT}noble{QT} anymore!$" + .string "But I should be careful, lest I be jailed\n" + .string "myself just for criticizing the {COLOR}{RED}king{COLOR}{WHITE}!$" + .string "Cheers! Yaay! Cheers!\n" + .string "Raise your milk for a toast!\n" + .string "It's not like the world would come to an\n" + .string "end if I didn't make dinner, right?$" + .string "It's not like the world would come to an\n" + .string "end if I didn't make dinner, right?$" + .string "Everyone's so relaxed here.\n" + .string "That's a good thing.\n" + .string "A place where you could happily let the\n" + .string "world crumble around you.\n" + .string "That's my idea of a good cafe.$" + .string "A place where you could happily let the\n" + .string "world crumble around you.\n" + .string "That's my idea of a good cafe.$" + .string "Hey there!\n" + .string "Doin' well?$" + .string "We're counting on you, young man!\n" + .string "Heehee!$" + .string "Everything with a beginning\n" + .string "also has an end.\n" + .string "To put it another way, all things move\n" + .string "toward their end...\n" + .string "Even from the moment they begin.$" + .string "The end is near.\n" + .string "For me, as well as for you.$" + .string "{COLOR}{RED}Hyrule Castle{COLOR}{WHITE} is covered in darkness.\n" + .string "This is the end.$" + .string "I never imagined something like this\n" + .string "would happen in my lifetime.\n" + .string "I wonder if the {COLOR}{RED}Picori {COLOR}{WHITE}will show up\n" + .string "and help us once again...$" + .string "Cheers! Yaay! Cheers!\n" + .string "Raise your milk for a toast!\n" + .string "I never knew that failing to make\n" + .string "dinner would have such consequences!$" + .string "I never knew that failing to make\n" + .string "dinner would have such consequences!$" + .string "$" + .string "Just try fusing {COLOR}{YELLOW}Kinstone pieces{COLOR}{WHITE} with\n" + .string "lots of people.\n" + .string "There are a lot of people out there\n" + .string "looking for someone to fuse with.$" + .string "You'd be surprised to find who--and\n" + .string "what--you can {COLOR}{YELLOW}fuse Kinstones {COLOR}{WHITE}with!\n" + .string "Yeah, you've got a lot of fusing in\n" + .string "your future, pal...$" + .string "I recommend visiting {COLOR}{YELLOW}places you've\n" + .string "already been{COLOR}{WHITE}.\n" + .string "You may then be able to fuse Kinstone\n" + .string "pieces in those places, you know?$" + .string "You can get special items by fusing\n" + .string "{COLOR}{YELLOW}Kinstone pieces{COLOR}{WHITE}!\n" + .string "Don't miss out on the opportunity!$" + .string "There's a {COLOR}{RED}group of lovely young ladies\n" + .string "{COLOR}{WHITE}visiting Hyrule...\n" + .string "Maybe I'll get a chance to talk to them\n" + .string "if I offer to fuse {COLOR}{YELLOW}Kinstone pieces{COLOR}{WHITE}. Heh.$" + .string "I hear there's a wall in {COLOR}{RED}Minish Woods{COLOR}{WHITE}\n" + .string "with a spot for a {COLOR}{YELLOW}Kinstone piece{COLOR}{WHITE}.\n" + .string "I'm sure you can find other places\n" + .string "where you can place Kinstone pieces.$" + .string "Do you know of the {COLOR}{RED}Goron Cave{COLOR}{WHITE}? It's a\n" + .string "tunnel that the {COLOR}{RED}Gorons {COLOR}{WHITE}are digging.\n" + .string "And if you can get all the way to the\n" + .string "cave's end and place a {COLOR}{YELLOW}Kinstone{COLOR}{WHITE}...\n" + .string "Well, why don't I just let you try it\n" + .string "for yourself!$" + .string "I hear you can fuse {COLOR}{YELLOW}Kinstone pieces{COLOR}{WHITE}\n" + .string "with the {COLOR}{RED}ghost {COLOR}{WHITE}in the {COLOR}{RED}Royal Crypt{COLOR}{WHITE}.\n" + .string "Or at least so I hear. I'm too scared\n" + .string "to find out for sure.$" + .string "You can't always just charge straight\n" + .string "ahead to new places in life, you know.\n" + .string "You need to go back to places you've\n" + .string "already been and reflect on things.\n" + .string "Who knows? That quiet reflection may\n" + .string "give you a chance to {COLOR}{YELLOW}fuse Kinstones{COLOR}{WHITE}!$" + .string "You know, fusing {COLOR}{YELLOW}Kinstone pieces{COLOR}{WHITE} can\n" + .string "get you more than mere {COLOR}{GREEN}Rupees{COLOR}{WHITE}...\n" + .string "It can call new people to a place or\n" + .string "even change the way the town looks.\n" + .string "And all those things can lead\n" + .string "to happiness as well, right?$" + .string "Are you enjoying fusing {COLOR}{YELLOW}Kinstone\n" + .string "pieces{COLOR}{WHITE}?\n" + .string "Fusing can bring happiness to you and\n" + .string "your fusing buddy! That's what I say!$" + .string "I wonder what happens if you fuse all\n" + .string "of the Kinstones a person is holding...$" + .string "{COLOR}{RED}Hyrule Castle{COLOR}{WHITE} has fallen to the\n" + .string "darkness...\n" + .string "I suppose this is no time to be fusing\n" + .string "{COLOR}{YELLOW}Kinstone pieces{COLOR}{WHITE}, is it?$" + .string "Nonsense! Maybe we need it now more\n" + .string "than ever before!\n" + .string "Fusing {COLOR}{YELLOW}Kinstone pieces{COLOR}{WHITE} can bring\n" + .string "people happiness!\n" + .string "This is the true motive for fusing, my\n" + .string "friend! Not Rupees, but happiness!$" + .byte 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0x00, 0x0d, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 diff --git a/data/strings_wip.txt b/data/strings_wip.txt index c3d50e64..7ec71388 100644 --- a/data/strings_wip.txt +++ b/data/strings_wip.txt @@ -1,67 +1,20 @@ - .include "asm/macros.inc" - .include "constants/constants.inc" - - .section .rodata - .align 2 - - - - - - - - -gUnk_089DEE20:: @ 089DEE20 -@ replacing .incbin "baserom.gba", 0x009dee20, 0x11f7 -.data 6c6c2073656c6c20796f750a74686174200201626f74746c65200200666f7220060120527570656573210a072c14004f682c2074686520020171756976657202003f205965732c206974277320060120527570656573210a497420686f6c6473206d616e792002016172726f777302002c20617320796f752063616e207365652e0a072c140002013130206172726f7773020020666f72200601205275706565732e0a416e206173746f756e64696e67206261726761696e2c20796f75276c6c2061677265652e0a072c14000201333020626f6d6273020020666f722006012052757065657321205965732c0a666f7220796f752c2049206769766520796f75206d792062756c6b2072617465210a072c140002013330206172726f7773200200666f7220060120527570656573210a596f752063616e2774206265617420746861742077697468206120737469636b210a072c1400596f75200203616c7265616479206861766520612066696e6520736869656c640200210a486f6e6573746c792c2077686f206e656564732054574f200201736869656c647302003f21000301f441682c206d7920667269656e642c20796f752772652066617220746f6f20636c657665722062790a68616c662c2062757420796f7520776f6e277420626520686167676c696e672077697468206d65210057687920646f20796f7520626f746865722073686f7070696e6720696620796f752772650a6e6f7420676f696e6720746f206861766520656e6f756768205275706565733f0a5768656e20796f752068617665206d6f7265206d6f6e65792c20706572686170730a77652063616e2064697363757373207468697320667572746865722e00596f7520646f6e2774207365656d20746f206861766520656e6f75676820726f6f6d0a666f7220616e797468696e67206d6f72652e20486d2e204120706974792e000301f44d756368206f626c696765642c206d7920676f6f64206c61642120506c656173652c0a646f206e6f7420686573697461746520746f2073746f7020627920616761696e21000301f457656c6c2120596f7520415245206120626967207370656e6465722c0a6172656e277420796f753f205468616e6b20796f7521000301f448617665204920746f6c6420796f7520686f77206d756368204920617070726563696174650a796f757220636f6e74696e75656420706174726f6e6167653f0a42656361757365204920646f2e000301f448656c6c6f2120497320616e796f6e65206261636b2074686572653f0a4e6f3f2041682c2077656c6c2e2e2e2049206775657373206e6f742e0a486f77206f64642e000301f445676164212049206b6e65772074686572652077617320736f6d656f6e652068657265210a5768656e2064696420796f752066696e6420796f757220776179206261636b20686572653f0a54686973206172656120697320666f7220656d706c6f79656573206f6e6c792e20546861742069730a746f207361792c206d6520616e64206d6520616c6f6e65210057696c6c20796f75206275792069743f0a05ff42757920052c0c446f6e27742062757900000301f449276d20736f7272792c206d7920676f6f64206c61642c206275740a74686174206973206e6f7420666f722073616c65210a5468617420626f74746c6520636f6e7461696e7320666f6f640a666f72206d792064656172206c6974746c6520646f672c20466966692e2e2e0a576861743f20596f75206a7573742077616e7420746865200201626f74746c6502003f0a54686174277320686967686c7920756e757375616c2e2e2e0a57656c6c2c2066696e652e20496620796f75206665656420466966692c207468656e0a49206775657373200203796f752063616e20686176652074686520626f74746c6502002e0a486f7720646f6573207468617420736f756e643f0a202005ff49276c6c20646f20697420052c174e6f2c207468616e6b730046696e652c2066696e652e204974277320757020746f20796f752e00457863656c6c656e742c20657863656c6c656e742e2048652773206174206d790a686f6d65207269676874206e6f772e205468616e6b20796f7520534f206d7563682e00416c6c6f77206d6520746f206d61726b20746865206c6f636174696f6e206f66206d790a686f6d652068657265206f6e20796f7572206d61702e004272696e6720776861746576657220706965636520796f75206c696b652e0a0a54686520736861706520796f75206c696b652069732073696d706c790a61206d6174746572206f6620706572736f6e616c2074617374652c20676f726f2100416c6c20676f6e652120436f6d6520616761696e2e005965732c204b696e73746f6e6573210a45616368206f6e6520697320646966666572656e742c20676f726f210a54686973204b696e73746f6e6520636f737473200601205275706565732e200a2005ff42757920052c1d446f6e277420627579004e6f206465616c3f20476f726f2120546f6f20626164212042757420636f6d650a616761696e2e20492077696c6c20616c77617973206861766520676f6f64207069656365732100596f7520646f6e2774206861766520656e6f756768205275706565732e2e2e0a436f6d65206261636b2077697468206d6f7265206d6f6e65792c20676f726f2e00596f75206861766520746f6f206d616e79207069656365732120492063616e27740a73656c6c20796f7520616e7920756e74696c20796f75206d616b6520726f6f6d21005468616e6b20796f752c20676f726f2e20436f6d65206261636b20616e7974696d650a616e642062757920746865207265737421004e6f206d6f72652c206e6f206d6f72652c2062757420636f6d65206261636b0a616761696e2e20492070726f6d69736520746f2066696e64206d6f72652c20676f726f2100492062656c696576652074686572652073686f756c642062652061200203646f676769650a64697368020020666f72206d7920646f67206261636b206174206d7920686f7573652e0a4a75737420666163652074686520020364697368020020616e64207072657373200c0320746f0a64756d702074686520666f6f6420696e746f206c6974746c652046696669277320626f776c2e000300d14d79206d61737465722c20020253746f636b77656c6c02002c20686173206265656e20636f6d696e670a686f6d652066617220746f6f206c61746520746f20706c61792077697468206d652e2e2e0a49276d20736f206c6f6e656c792e0054686174200201626f6f6d6572616e6702002069732061207265616c206261726761696e0a6174200601205275706565732e0a072c14005468617420020162696720626f6d622062616702002069732061207265616c206261726761696e0a6174200601205275706565732e0a072c1400 - -ffffffffffffff380000004b000000c900000036010000f30100007b02000027030000510300001d04000080040000110500005c050000e0050000470600000 - -5ff42757920052d0a446f6e277420627579004168682c2077656c636f6d652e0a0a4361726520666f7220736f6d65206f66204772616e6e7927730a686f6d656d616465200201626c756520706f74696f6e02003f0a4f6e65207369702c20616e6420796f752772652066756c6c206f6620656e65726779210a506c656173652c206c6f6f6b2061726f756e642e2e2e00546861742773204772616e6e79277320686f6d656d6164650a0201626c756520706f74696f6e02002c206d792064656172210a49276c6c2066696c6c20796f757220626f74746c6520666f72203630205275706565732e0a5768617420646f20796f75207361793f0a072d000045766572206865617264206f66204772616e6e7927730a686f6d656d616465200201626c756520706f74696f6e02003f0a4f6e65207369702c20616e6420796f752772652066756c6c206f6620656e65726779210a0a46696c6c2061200201626f74746c65200200616e642063617272792069742061726f756e6420776974680a796f752120416674657220616c6c2c2069742773206f6e6c7920363020527570656573210a57696c6c20796f752062757920736f6d653f0a072d00004772616e6e792773207374756666206973207468652062657374212054686973206973206d790a747261646974696f6e616c20020172656420706f74696f6e0200210a5368616c6c20492066696c6c20796f7572200201626f74746c65020020666f722e2e2e0a313530205275706565733f205768617420646f20796f75207361793f0a072d00004f6e636520796f75277665207472696564206d79206e657720020172656420706f74696f6e02002c0a796f75276c6c206e6576657220676f206261636b20746f20746865200201626c75650200207374756666210a5368616c6c20492066696c6c20796f7572200201626f74746c65200200666f7220313530205275706565733f0a5768617420646f20796f75207361792c206d792070726574747920796f756e6720626f793f0a072d0000436f6d65206261636b207768656e20796f75206e656564206d6f72652e2e2e0a4865686568656865210041682c207965732120412066696e652063686f6963652c206d792064656172210a5468617427732061206c696d697465642d74696d652061727469636c65210a4f6e652077686966662c20616e6420796f7527726520776964652d6177616b652120546861740a69732077687920697427732063616c6c6564206120020177616b652d7570206d757368726f6f6d0200210a576f756c6420796f75206c696b6520746f2062757920697420666f72203630205275706565733f0a05ff4275792005ff446f6e27742062757900596f7527766520676f7420616e2065796520666f722066696e6520676f6f6473210a0a546861742c206d7920646561722c206973206d7920686967686c792072656761726465642c0a686f6d656d616465200201626c756520706f74696f6e020021004168682c2077656c636f6d652e0a0a4261636b20666f72204772616e6e7927732066616d6f757320020172656402000a616e64200201626c756520706f74696f6e7302003f0a4f6e65207369702c20616e6420796f752772652066756c6c206f6620656e65726779210a576869636820646f20796f75206c696b652c2064656172792c20726564206f7220626c75653f004e6f6e6520666f7220796f753f2057656c6c2c2072656d656d6265722074686174207768656e0a796f752072756e206f7574206f6620706570206c61746572212048656865686568652100492063616e27742073656c6c20697420746f20796f75210a596f7520646f6e2774206861766520656e6f75676820527570656573210a436f6d65206261636b207768656e20796f7527766520676f7420746865206d6f6e6579210a4d7920706f74696f6e732061726520616c776179732077616974696e67210a48656865686568652100596f75200203646f6e2774206861766520616e20656d70747920626f74746c650200207468617420490a63616e2066696c6c2077697468206d65646963696e65210a436f6d65206261636b207769746820616e200201656d70747920626f74746c650200210a00486568656865682e2e2e204a75737420666163652074686520736c656570790a736e6f6f7a657220616e64207072657373200c032e2e2e0a54686174276c6c20706f70206869732065796573207269676874206f70656e210a504f502100 - -ffffff68000000690000007b00000093000000a6000000b9000000d3000000ee000000ff000000180100002c010000400100005a0100006c010000870100009b010000b5010000c7010000df010000f30100000a020000220200003d02000056020000720200008c02000000 - -57616c6c65742033303020527570656573004172726f7720517569766572203330302052757065657300313020426f6d62732033302052757065657300333020426f6d6273203830205275706565730031302052656d6f746520426f6d6273203430205275706565730033302052656d6f746520426f6d6273203130302052757065657300536869656c6420343020527570656573004d6972726f7220536869656c642033353020527570656573003130204172726f777320323020527570656573003330204172726f777320353020527570656573004669677572696e65205469636b65742031352052757065657300426f74746c652032303020527570656573004d6167696320426f6f6d6572616e67 - -gUnk_089E0017:: @ 089E0017 -@ replacing .incbin "baserom.gba", 0x009e0017, 0x2e9 -.data 2033353020527570656573004669726520526f64203335302052757065657300536c656570696e67205368726f6f6d20353020527570656573004272696f6368652031302052757065657300536c696365206f662043616b65203130205275706565730043726f697373616e742032302052757065657300536c696365206f6620506965203230205275706565730052656420546f70205069656365203330205275706565730052656420426f74746f6d2050696563652033302052757065657300426c756520546f702050696563652033302052757065657300426c756520426f74746f6d2050696563652033302052757065657300477265656e20546f702050696563652033302052757065657300446f6720466f6f6400 - -ffffff6c0000006d000000fe00000044010000b2010000f901000087020000880200006f030000a1030000dd03000088040000b807000044080000b1080000b9090000100a0000e00a0000c30b00006b0c0000bc0c0000800d0000070e00003e100000b0110000f71100007412000000 - -496e206d7920796f7574682c2049207761732063616c6c656420020247726567616c207468650a4772656174020021204920776173206576656e2061206c6974746c652066616d6f75732e2e2e0a427574206c6174656c79206d79206c696d627320686176652067726f776e2068656176792c0a616e6420492063616e2774206576656e207374616e642075702e2e2e00476f6f646e6573732120576520726172656c79206765742076697369746f727320686572652e0a54656c6c206d652c20686f772064696420796f752067657420686572653f00492063616e27742062656c696576652002026f6c642047726567616c0200206973207369636b2e0a486520776173206c6f6f6b696e6720736f206865616c7468792e0a4920677565737320736f6d657468696e67206a75737420746f6f6b0a686f6c64206f662068696d2e2e2e004e6f626f64792062656c6965766573206d652c20627574204920 - -gUnk_089E0300:: @ 089E0300 -@ replacing .incbin "baserom.gba", 0x009e0300, 0x455 -.data 73617720612067686f73740a74686174206861732074616b656e20686f6c64206f66204772616e6464616421004f6e63652c206d79206772616e64666174686572207573656420736f6d657468696e670a63616c6c6564206120020147757374204a6172020020746f206669676874206d6f6e73746572732e2e2e0a4865207761732061206d6969696967687479206865726f2c2074686579207361792e0a427574206e6f772068652773207369636b20696e206265642e2e2e0000576861743f20416e206576696c20737069726974206861642074616b656e20686f6c64206f660a6d653f20416e6420796f752064726f766520697420617761793f0a596f752e2e2e20596f75206d69676874206265207269676874212e2e2e20492063616e0a616c7265616479206665656c206d7920656e657267792072657475726e696e67210a49276c6c2062652061626c6520746f20676574206f7574206f662062656420736f6f6e210a57686174277320796f7572206e616d653f202e2e2e06003f0a5468616e6b20796f752c206d7920626f792e20596f75207361766564206d652e00496620796f7527726520696e2074686520617265612c20636f6d6520627920666f720a6120717569636b2076697369742100496620796f752066696e6420796f757273656c6620696e20746865206172656120616761696e2c0a64726f7020627920616e64207365652075732e0057656c6c2c2077656c6c2c2077656c6c210a0a4c6f6f6b20617420686f772074686520636f6c6f722068617320636f6d65206261636b20746f0a68697320666163652120486f772063616e20492065766572207468616e6b20796f753f0a49207374696c6c2068617665206120686172642074696d652062656c696576696e6720686527640a6265656e20706f737365737365642062792061206d6f6e737465722c2074686f7567682e0057656c636f6d652c2077656c636f6d652e204c6f6e672c206c6f6e672061676f2c20616e640a7468656e20616e20616765206265666f726520746861742e2e2e0a4f7572207472696265206162616e646f6e65642074686520706c61636520796f752063616c6c0a74686520020257696e64205275696e7302002e2e2e0a57697468206f7572206d616769632c207765206d6f766564206f75722070616c6163652075700a696e746f2074686520736b6965732e205765206172652074686520020257696e6420547269626502002e0a57652068617665206265656e207761746368696e672c20616e64207765206b6e6f7720616c6c0a746861742068617070656e73206f6e20796f7572207375726661636520776f726c642e0a5765206b6e6f77206120736d616c6c20626f7920636f6c6c65637473200201656c656d656e74730a0200746f206c696674207468652063757273652066726f6d2061207072696e636573732e02010a02005765206b6e6f77206f662002025661617469200200616e6420686973206576696c20616374732e2e2e0a546865 - -gUnk_089E0755:: @ 089E0755 -@ replacing .incbin "baserom.gba", 0x009e0755, 0x4ad -.data 2077696e64732074656c6c207573207468657365207468696e67732e02020a020054686520020157696e6420456c656d656e740200207468617420796f75207365656b206c6965730a6465657020696e2074686520020250616c616365206f662057696e647320020061626f7665206d652e0a02035768656e2074686520626c61646520686173206265656e20696e667573656420776974680a74686520666f757220656c656d656e74732c207468652077617920746f207468650a6c6967687420666f726365207368616c6c206f70656e2e020020536f20697420697320746f6c640a696e20746865206c6567656e6473206f66207468652057696e642054726962652e0a56616174692068696d73656c66206d617920616c7265616479206b6e6f7720746869732e0a0a53757266616365206477656c6c65727320617265206e6f74207065726d697474656420746f0a656e746572206f75722070616c6163652c2062757420796f7520617265207370656369616c2e0a596f75206d617920636f6e74696e756520746f2074686520726f6f662e0054686572652069732061200203746f726e61646f20020061746f70207468697320686f7573652e0a456e74657220697420746f20676f20746f2074686520020250616c616365206f662057696e647302002e0a526576697665207468652073616372656420626c61646520616e640a72657363756520746865207072696e6365737320717569636b6c792e004f682c2069742773200600210a5468616e6b20796f7520666f7220796f75722068656c70206561726c696572210a4927766520676f7420736f6d657468696e6720656c736520676f6f6420666f7220796f752c0a736f20686572652c20706c656173652074616b6520697421004f68682c2069662069742069736e2774206f6c64200600210a0a4d7920717565737420746f206d61746368204b696e73746f6e6573206861732074616b656e0a6d6520616c6c207468652077617920757020686572652e0a49276d206e6f74207375726520796f75277665206e6f7469636564207965742c206275740a7765277265206f6e20746f70206f662074686520636c6f756473210a5468652057696e64205472696265206c697665732068657265210a0a546865792070726f7465637420746865207061746820746f2074686520020250616c6163650a6f662057696e647302002c2077686572652074686520020157696e6420456c656d656e740200206c696573210057656c6c2c2077656c6c2c2077656c6c210a0600210a5468616e6b7320666f722068656c70696e67212042656361757365206f6620796f752c206d790a6772616d707320697320616c6c20626574746572206e6f7721005765206f66207468652057696e6420547269626520617265207665727920736b696c6c65640a61742066696e64696e672002014b696e73746f6e652070696563657302002e200a536f20736b696c6c656420696e20666163742c20746861742077652068617665206d6f7265206f660a7468656d207468616e2077652063616e206d616e616765210a57652063616e2774206576656e2073746f7265207468656d20616c6c2e204920776973680a736f6d656f6e6520776f756c64207461 - -gUnk_089E0C02:: @ 089E0C02 -@ replacing .incbin "baserom.gba", 0x009e0c02, 0x8fd -.data 6b652061206665772066726f6d2075732e004f682c206974277320796f75210a0a492074686f7567687420492764206e65766572206d616b65206974206261636b20686572652c0a627574207468616e6b7320746f20796f7572204b696e73746f6e652c204920646964210a496620796f75277265206c6f6f6b696e6720666f7220736f6d657468696e672c20676f2074616c6b0a746f2074686520656c6465726c7920776f6d616e206f6e207468652034746820666c6f6f722e0a5468652077696e647320636172727920616c6c20736f7274206f662076616c7561626c650a696e666f726d6174696f6e20746f206865722e00546865726520697320612064657669636520696e2074686520020270616c616365200200746861740a616c6c6f7773206f6e6520746f20666c7920696e2074686520736b792e0a5768656e204920676574206269676765722c20492077616e7420746f206578706c6f72650a74686520020270616c616365200200616e642066696e642069742e2e2e0a4275742049276d20746f6f20736361726564207269676874206e6f7721005570206f6e2074686520726f6f662c20746865726527732061206875676520776869726c77696e640a746861742063616e2074616b6520796f7520757020746f2074686520020270616c61636502002e00496e207468697320746f776572206477656c6c207468652070656f706c65206f66207468650a57696e642054726962652e0a5765206c65667420796f7572207375726661636520776f726c64206c6f6e672061676f20746f0a73657276652061206772656174657220647574792e0a5765206e6f772070726f7465637420746865206761746520746f2074686520020250616c6163650a6f662057696e647302002c2077686572652074686520020157696e6420456c656d656e740200206c6965732e00416c74686f75676820776520617265206f66207468652057696e642054726962652c2077652c0a746f6f2c206f6e6365206c69766564206f6e2074686520737572666163652e0a4f6e63652c2074686520706c61636520796f752063616c6c2074686520020257696e64205275696e7302000a7761732c20746f2075732c206120686f6d652e00576168682120596f7520737572707269736564206d65210a0a4e6f726d616c6c792c2073757266616365206477656c6c6572732063616e27742077616c6b0a6f6e2074686520636c6f756473206c696b6520776520646f210a4d792073697374657220616e6420492077656e7420746f207468652002035069636f72690a466573746976616c020020696e20487972756c6520546f776e2c0a616e64207768656e2077652063616d65206261636b2c2074686572650a77657265206d6f6e73746572732065766572797768657265210a4920626574206966204920636f756c64206a757374206675736520612002014b696e73746f6e6502002c0a4920636f756c642063616c6c206120676f6f6420686f6d65776172642077696e642e2e2e0a42757420746865726520617265206d6f6e73746572732061626f75742c20736f20490a63616e27742073656172636820666f72204b696e73746f6e65732e0a416e64206576656e206966204920636f756c642c2049207374696c6c2063616e27740a66696e6420616e796f6e6520746f2066757365207468656d2077697468210a42757420796f75206c6f6f6b20707265747479207374726f6e67210a0a446f20796f75207468696e6b20796f7520636f756c64206d61796265207365617263680a666f722002014b696e73746f6e6573200200666f72206d653f0a496620796f7520646f2c2049276c6c2074656c6c20796f752061626f7574206120676f6f640a73706f7420666f72200203667573696e67020021004f682c2074686973206973206261642e2054686973206973207265616c6c79206261642e2e2e0a0a4f682c206865792120576f772e2e2e204c6f6f6b2061742074686174210a0a49277665206e65766572207365656e20612073757266616365206477656c6c65722077616c6b0a6f6e20636c6f756473206265666f7265210a596f75206d7573742062652071756974652070757265206f66206865617274210a0a4d61796265206f6e65207375636820617320796f7520776f756c64206c697374656e20746f0a6d792074616c65206f6620776f652e0a596f75207365652c20492077656e7420646f776e20746f2074686520737572666163650a77697468206d792073697374657220666f72207468652002035069636f726920466573746976616c02002e2e2e0a427574206f6e206f75722077617920686f6d652c207765206c6f7374207468652077696e640a656e746972656c7921204e6f772c2077652063616e27742067657420686f6d65210049206865617220746861742002014b696e73746f6e65207069656365732002006172650a736f6d6574696d65732068696464656e20616d6f6e672074686520636c6f75647321005468652002025069636f726920466573746976616c200200696e20487972756c6520546f776e207761730a7265616c6c792066756e20616e6420616c6c2e2e2e0a42757420686f7720756e6c75636b7920746f20626520737472616e64656420686572652c0a756e61626c6520746f2072657475726e20686f6d652100546869732069732074686520686f6d65206f662074686520020257696e6420547269626502002e0a5765206c656674207468652073757266616365206c6f6e672061676f2e0a4e6f772c2077652067756172642074686520656e7472616e636520746f207468650a020250616c616365206f662057696e647302002e2e2e0a2e2e2e496e20746869732070616c6163652c2074686520020157696e640a456c656d656e74200200726573696465732e0a4275742e2e2e7468617420686f6c6520796f75206a7573742063616d65206f7574206f662e2e2e0a446f65732074686174206c65616420746f2074686520776f726c642062656c6f773f0a4f682c20697420617070656172656420616674657220796f7520020366757365640a4b696e73746f6e657302003f2054686174277320616d617a696e672e00 - -ffffffffffffffffffffffffffff5400000055000000b80000001a0100 - gUnk_089E14FF:: @ 089E14FF @ replacing .incbin "baserom.gba", 0x009e14ff, 0x1811 .data 004201000058010000d50100000b020000430200004a0200004b0200004c0200004d020000690200006a0200006b0200006c0200006d0200006e0200006f0200007002000000 -4f682c206e6f21205468697320697320686f727269626c65210a4d7920637563636f73206861766520676f7474656e206f7574210a43616e20796f75206361746368207468656d20666f72206d653f0a05ff49276c6c2068656c7021200530034e6f0054727920746f206361746368200602206f66207468656d2077697468696e0a0601207365636f6e64732c20706c656173652e0a416e6420796f752063616e277420676f20696e746f206275696c64696e67730a6f72206c6561766520746f776e21005265616c6c793f20436f6d65206f6e2c0a77687920776f6e277420796f752068656c70206d653f0054696d652773207570210a5468617427732069742100486d6d6d2e2057656c6c2c206974206c6f6f6b73206c696b652049276d207374696c6c206d697373696e670a61206c6f74206f6620637563636f732e2e2e0a427574207468616e6b7320616e7977617921204d6179626520796f752063616e0a68656c70206f757420616761696e20616e6f746865722074696d652e00596f75206861766520746f20636174636820060220637563636f730a696e200601207365636f6e64732120476f6f64206c75636b2100596f7520676f74200601205275706565732120446f65736e27742069740a6665656c20676f6f6420746f2068656c70206f74686572733f00041506010414000000005468616e6b73210a48657265277320796f7572207265776172642e000000000000000000 +4f682c206e6f21205468697320697320686f727269626c65210a4d7920637563636f73206861766520676f7474656e206f7574210a43616e20796f75206361746368207468656d20666f72206d653f0a05ff49276c6c2068656c7021200530034e6f0054727920746f206361746368200602206f66207468656d2077697468696e0a0601207365636f6e64732c20706c656173652e0a416e6420796f752063616e277420676f20696e746f206275696c64696e67730a6f72206c6561766520746f776e21005265616c6c793f20436f6d65206f6e2c0a77687920776f6e277420796f752068656c70206d653f0054696d652773207570210a5468617427732069742100486d6d6d2e2057656c6c2c206974206c6f6f6b73206c696b652049276d207374696c6c206d697373696e670a61206c6f74206f6620637563636f732e2e2e0a427574207468616e6b7320616e7977617921204d6179626520796f752063616e0a68656c70206f757420616761696e20616e6f746865722074696d652e00596f75206861766520746f20636174636820060220637563636f730a696e200601207365636f6e64732120476f6f64206c75636b2100596f7520676f74200601205275706565732120446f65736e27742069740a6665656c20676f6f6420746f2068656c70206f74686572733f00041506010414000000005468616e6b73210a48657265277320796f7572207265776172642e00 -ffffffcc000000cd00000061020000a4020000d10200000203000034030000640300008a030000a8030000d60300001f0400005704000073040000ee040000330500006005000089050000bb050000e10500000a0600003d060000b3060000ec0600002e0700006707000093070000b7070000fe070000290800006b080000a4080000cf080000f30800003a09000085090000c7090000000a00002b0a00004f0a00009a0a0000f90a0000580b0000b70b0000b80b0000b90b0000ba0b0000bb0b0000bc0b0000bd0b0000be0b000000 +0000000000000000ffffffcc000000cd00000061020000a4020000d10200000203000034030000640300008a030000a8030000d60300001f0400005704000073040000ee040000330500006005000089050000bb050000e10500000a0600003d060000b3060000ec0600002e0700006707000093070000b7070000fe070000290800006b080000a4080000cf080000f30800003a09000085090000c7090000000a00002b0a00004f0a00009a0a0000f90a0000580b0000b70b0000b80b0000b90b0000ba0b0000bb0b0000bc0b0000bd0b0000be0b000000 -576861743f205768617420646f20796f752077616e743f20576879206172650a796f7520626f74686572696e67206d652c206b69643f0a4875683f204f682c206d79206e616d65277320476f726d616e2e2049276d20747279696e670a6d792068616e64206174207265616c206573746174652e0a5475726e73206f75742c2069742773206120746f74616c207061696e2e204c696b652072696768740a6e6f772c2049276d206c6f6f6b696e6720666f7220612074656e616e742c20796f75207365653f0a42757420746865207468696e672069732c20492063616e206f6e6c792072656e7420746f20610a776f6d616e2c2073696e676c65206f63637570616e63792e0a546f6f206d616e792074656e616e747320776f756c64206d616b65207468650a706c6163652064697274792e20416e6420746865792764206265206c6f75642e0a49206c696b65207468696e6773206e69636520616e642071756965742c207365653f0a416e64207468697320697320616c6c206a75737420746f6f206d75636820686173736c652e0a07310200496620796f752066696e6420616e796f6e652077686f2063616e2072656e7420746869730a706c6163652c20776f756c6420796f75206c6574206d65206b6e6f773f004f682120596f752068617665206120686f75736520746f2073686f77206d653f0a05ff596573200531094e6f004f682120596f7527766520666f756e64206d65206120686f75736520746f2072656e743f0a05ff5965732005310a4e6f004f682120596f752772652073686f77696e67206d6520616e20656d70747920686f7573653f0a05ff5965732005310b4e6f005265616c6c793f205468616e6b73210a492077616e7420746f20676f20736565206974207269676874206177617921005468616e6b73210a492063616e2774207761697420746f20636865636b206974206f757421005468616e6b73210a49276c6c20676574207269676874206f6e20697421004f682e2e2e2057656c6c2c206c6574206d65206b6e6f772069660a796f75206865617220616e797468696e672e004f682c20636f6d65206f6e21212057656c6c2c20796f75204841564520746f2074656c6c0a6d6520696620796f7520686561722061626f757420616e797468696e6720676f6f6421004865792c20776879206e6f743f212057656c6c2c206c6574206d65206b6e6f770a696620736f6d657468696e6720636f6d6573207570210049276c6c206275696c6420686572652c2049207468696e6b2e2e2e004e69636520686f7573652c206875682c206b69643f0a49742773206272616e642d7370616e6b696e27206e65772c20492074656c6c207961210a4275742049206a757374206e65656420616e6f746865722074656e616e742c0a612073696e676c6520776f6d616e2c206c696b65206265666f72652e0a07310e0057656c6c2c20696620796f75206b6e6f7720616e79206e69636520796f756e670a6c6164696573206e656564696e67206120686f6d652c206c6574206d65206b6e6f7721004f682120596f752068617665206120686f75736520746f2073686f77206d653f0a05ff596573200531094e6f004f682120596f7527766520666f756e64206d65206120686f7573653f0a05ff5965732005310a4e6f004f682120596f752772652073686f77696e67206d6520616e20656d70747920686f7573653f0a05ff5965732005310b4e6f005265616c6c793f0a4f682c20616e64206974277320736f206e69636520616e64206e657721004f682c20666162756c6f7573210a416e64206974277320736f20636c65616e20616e64206e6577210057686f6121205468616e6b732120416e6420697427732061206e65770a686f75736520616e642065766572797468696e67210049277665206c696e656420757020612073697a61626c652070696c65206f6620636173680a66726f6d206d792072656e74616c2070726f706572746965732e2e2e0a4d6179626520492073686f756c64207374617274206272656564696e6720706574730a6e6578742e204d6f6f68616861686121004f682c2068656c6c6f2c2006002e204920737572650a646f206c6f766520697420686572652e205468616e6b7320616761696e210a07312800496620796f752065766572206e6565642061200201636861726d02002c0a49276c6c206769766520796f7520616e6f746865722c20736f206a7573742061736b210057616e742061200201636861726d200200666f7220796f757220626f74746c653f0a05ff506c656173652005311a4e6f2c207468616e6b7300416c6c2072696768742120546865726520796f7520676f210a436f6d65206261636b20616e7974696d6521004f4b2e2e2e20427574206665656c206672656520746f2061736b20616e7974696d6521004f682c20796f7520646f6e2774206861766520616e20656d70747920626f74746c652e0a57656c6c2c20636f6d65206261636b207768656e20796f752068617665206f6e652e0057656c636f6d652c200600210a49207265616c6c79206c6f7665207468697320686f757365210a07312900496620796f752065766572206e6565642061200201636861726d02002c0a49276c6c206769766520796f7520616e6f746865722c20736f206a7573742061736b210057616e742061200201636861726d200200666f7220796f757220626f74746c653f0a05ff506c65617365200531204e6f2c207468616e6b7300416c6c20726967687421205468657265206974206973210a436f6d65206261636b20616e7974696d6521004f4b2e2e2e20427574206665656c206672656520746f2061736b20616e7974696d6521004f682c20796f7520646f6e2774206861766520616e20656d70747920626f74746c652e0a57656c6c2c20636f6d65206261636b207768656e20796f752068617665206f6e652e004f682c20060021205468616e6b7320666f7220636f6d696e67212049206c6f76650a7468697320706c6163652c20616e642049206f776520697420616c6c20746f20796f75210a07312a00496620796f752065766572206e6565642061200201636861726d02002c0a49276c6c206769766520796f7520616e6f746865722c20736f206a7573742061736b210057616e742061200201636861726d200200666f7220796f757220626f74746c653f0a05ff506c65617365200531264e6f2c207468616e6b7300416c6c20726967687421205468657265206974206973210a436f6d65206261636b20616e7974696d6521004f4b2e2e2e20427574206665656c206672656520746f2061736b20616e7974696d6521004f682c20796f7520646f6e2774206861766520616e200203656d70747920626f74746c6502002e0a57656c6c2c20636f6d65206261636b207768656e20796f752068617665206f6e652e00496620796f75206861766520616e20656d70747920626f74746c652c20492063616e207075740a6f6e65206f66206d7920686f6d656d616465200201636861726d73200200696e73696465210a4a7573742061736b20616e7974696d652100496620796f75206861766520616e20656d70747920626f74746c652c20492063616e207075740a6f6e65206f66206d7920686f6d656d616465200201636861726d73200200696e73696465210a4a7573742061736b20616e7974696d652100496620796f75206861766520616e20656d70747920626f74746c652c20492063616e207075740a6f6e65206f66206d7920686f6d656d616465200201636861726d73200200696e73696465210a4a7573742061736b20616e7974696d6521000000000000000000 +576861743f205768617420646f20796f752077616e743f20576879206172650a796f7520626f74686572696e67206d652c206b69643f0a4875683f204f682c206d79206e616d65277320476f726d616e2e2049276d20747279696e670a6d792068616e64206174207265616c206573746174652e0a5475726e73206f75742c2069742773206120746f74616c207061696e2e204c696b652072696768740a6e6f772c2049276d206c6f6f6b696e6720666f7220612074656e616e742c20796f75207365653f0a42757420746865207468696e672069732c20492063616e206f6e6c792072656e7420746f20610a776f6d616e2c2073696e676c65206f63637570616e63792e0a546f6f206d616e792074656e616e747320776f756c64206d616b65207468650a706c6163652064697274792e20416e6420746865792764206265206c6f75642e0a49206c696b65207468696e6773206e69636520616e642071756965742c207365653f0a416e64207468697320697320616c6c206a75737420746f6f206d75636820686173736c652e0a07310200496620796f752066696e6420616e796f6e652077686f2063616e2072656e7420746869730a706c6163652c20776f756c6420796f75206c6574206d65206b6e6f773f004f682120596f752068617665206120686f75736520746f2073686f77206d653f0a05ff596573200531094e6f004f682120596f7527766520666f756e64206d65206120686f75736520746f2072656e743f0a05ff5965732005310a4e6f004f682120596f752772652073686f77696e67206d6520616e20656d70747920686f7573653f0a05ff5965732005310b4e6f005265616c6c793f205468616e6b73210a492077616e7420746f20676f20736565206974207269676874206177617921005468616e6b73210a492063616e2774207761697420746f20636865636b206974206f757421005468616e6b73210a49276c6c20676574207269676874206f6e20697421004f682e2e2e2057656c6c2c206c6574206d65206b6e6f772069660a796f75206865617220616e797468696e672e004f682c20636f6d65206f6e21212057656c6c2c20796f75204841564520746f2074656c6c0a6d6520696620796f7520686561722061626f757420616e797468696e6720676f6f6421004865792c20776879206e6f743f212057656c6c2c206c6574206d65206b6e6f770a696620736f6d657468696e6720636f6d6573207570210049276c6c206275696c6420686572652c2049207468696e6b2e2e2e004e69636520686f7573652c206875682c206b69643f0a49742773206272616e642d7370616e6b696e27206e65772c20492074656c6c207961210a4275742049206a757374206e65656420616e6f746865722074656e616e742c0a612073696e676c6520776f6d616e2c206c696b65206265666f72652e0a07310e0057656c6c2c20696620796f75206b6e6f7720616e79206e69636520796f756e670a6c6164696573206e656564696e67206120686f6d652c206c6574206d65206b6e6f7721004f682120596f752068617665206120686f75736520746f2073686f77206d653f0a05ff596573200531094e6f004f682120596f7527766520666f756e64206d65206120686f7573653f0a05ff5965732005310a4e6f004f682120596f752772652073686f77696e67206d6520616e20656d70747920686f7573653f0a05ff5965732005310b4e6f005265616c6c793f0a4f682c20616e64206974277320736f206e69636520616e64206e657721004f682c20666162756c6f7573210a416e64206974277320736f20636c65616e20616e64206e6577210057686f6121205468616e6b732120416e6420697427732061206e65770a686f75736520616e642065766572797468696e67210049277665206c696e656420757020612073697a61626c652070696c65206f6620636173680a66726f6d206d792072656e74616c2070726f706572746965732e2e2e0a4d6179626520492073686f756c64207374617274206272656564696e6720706574730a6e6578742e204d6f6f68616861686121004f682c2068656c6c6f2c2006002e204920737572650a646f206c6f766520697420686572652e205468616e6b7320616761696e210a07312800496620796f752065766572206e6565642061200201636861726d02002c0a49276c6c206769766520796f7520616e6f746865722c20736f206a7573742061736b210057616e742061200201636861726d200200666f7220796f757220626f74746c653f0a05ff506c656173652005311a4e6f2c207468616e6b7300416c6c2072696768742120546865726520796f7520676f210a436f6d65206261636b20616e7974696d6521004f4b2e2e2e20427574206665656c206672656520746f2061736b20616e7974696d6521004f682c20796f7520646f6e2774206861766520616e20656d70747920626f74746c652e0a57656c6c2c20636f6d65206261636b207768656e20796f752068617665206f6e652e0057656c636f6d652c200600210a49207265616c6c79206c6f7665207468697320686f757365210a07312900496620796f752065766572206e6565642061200201636861726d02002c0a49276c6c206769766520796f7520616e6f746865722c20736f206a7573742061736b210057616e742061200201636861726d200200666f7220796f757220626f74746c653f0a05ff506c65617365200531204e6f2c207468616e6b7300416c6c20726967687421205468657265206974206973210a436f6d65206261636b20616e7974696d6521004f4b2e2e2e20427574206665656c206672656520746f2061736b20616e7974696d6521004f682c20796f7520646f6e2774206861766520616e20656d70747920626f74746c652e0a57656c6c2c20636f6d65206261636b207768656e20796f752068617665206f6e652e004f682c20060021205468616e6b7320666f7220636f6d696e67212049206c6f76650a7468697320706c6163652c20616e642049206f776520697420616c6c20746f20796f75210a07312a00496620796f752065766572206e6565642061200201636861726d02002c0a49276c6c206769766520796f7520616e6f746865722c20736f206a7573742061736b210057616e742061200201636861726d200200666f7220796f757220626f74746c653f0a05ff506c65617365200531264e6f2c207468616e6b7300416c6c20726967687421205468657265206974206973210a436f6d65206261636b20616e7974696d6521004f4b2e2e2e20427574206665656c206672656520746f2061736b20616e7974696d6521004f682c20796f7520646f6e2774206861766520616e200203656d70747920626f74746c6502002e0a57656c6c2c20636f6d65206261636b207768656e20796f752068617665206f6e652e00496620796f75206861766520616e20656d70747920626f74746c652c20492063616e207075740a6f6e65206f66206d7920686f6d656d616465200201636861726d73200200696e73696465210a4a7573742061736b20616e7974696d652100496620796f75206861766520616e20656d70747920626f74746c652c20492063616e207075740a6f6e65206f66206d7920686f6d656d616465200201636861726d73200200696e73696465210a4a7573742061736b20616e7974696d652100496620796f75206861766520616e20656d70747920626f74746c652c20492063616e207075740a6f6e65206f66206d7920686f6d656d616465200201636861726d73200200696e73696465210a4a7573742061736b20616e7974696d652100 -ffffffffffffffffffffffffff3000000031000000460100001d020000f902000083040000a0050000e206000024070000b1070000030800000408000000 +0000000000000000ffffffffffffffffffffffffff3000000031000000460100001d020000f902000083040000a0050000e206000024070000b1070000030800000408000000 4f682c2077656c636f6d65206261636b2c2006002e204d792c206275740a796f75277265206c6f6f6b696e6720736f206d756368207374726f6e676572210a496620796f75206765742074697265642c206a75737420676f20616865616420616e640a74616b652061206e617020757073746169727320696e20796f757220726f6f6d2e0a49276d2062757379206d616b696e672073776f72647320666f72207468650a67756172647320746f206b65657020746865206d6f6e7374657273206174206261792e0a492077697368204920636f756c6420646f206d6f72652c2062757420666f72206e6f772c0a7765206e65656420796f7520746f20736176652002025072696e63657373205a656c646102002e004865792c2006002e2045766572792074696d6520492073656520796f752c0a796f75207365656d206d6f726520616e64206d6f726520636f6e666964656e74210a5361792c206861766520796f75206265656e20746f20020252656d27732053686f650a53686f7002003f204869732073686f6573207265616c6c79206172652074686520626573742e0a49276d2073757265207468657920636f756c642068656c7020796f75206f6e20796f75720a71756573742e2057687920646f6e277420796f7520676976652068696d20612076697369743f004865792c2006002e20596f75277265206c6f6f6b696e6720736f0a6d75636820746f756768657220746865736520646179732e2e2e0a5361792c206861766520796f75206265656e20746f0a7468652002026c6962726172792002007965743f02020a02004927766520686561726420736f6d65206b69647320736179207468617420746865792776650a7365656e205069636f72692074686572652e2e2e0a492074686f75676874206d61796265207468617420776f756c642068656c700a796f75206f6e2074686973207175657374206f6620796f7572732e0057656c636f6d65206261636b2c2006002e2049206665656c206c696b650a69742773206265656e20736f206c6f6e672073696e636520796f752076697369746564210a4c6f6f6b73206c696b6520796f75206e65656420746f2066696e640a6a757374206f6e65206d6f7265200201656c656d656e7402002e205361792e2e2e0a4861766520796f75206265656e20746f20746865200203526f79616c2056616c6c657902002c0a77657374206f6620487972756c6520436173746c653f0a596f75207573656420746f2062652061626c6520746f206765742074686572650a656173696c792066726f6d2002025472696c627920486967686c616e647302002e0a4e6f7761646179732c20686f77657665722c20796f75206861766520746f2074616b650a6120736563726574207061746820746f206765742074686572652e0a49276d20737572652069742077617320746f2074686520020377657374206f660a746865206e6f72746865726e2070617274206f6620487972756c65204669656c6402002e2e2e0041682c2049276d20736f20676c616420796f7527766520636f6d650a746f20736565206d652c2006002e0a596f75206c6f6f6b206c696b6520796f75277665206265656e206a7573740a61626f7574206576657279776865726520696e20487972756c652c206875683f0a427574207361792e2e2e0a4861766520796f75206265656e20746f2002025665696c2046616c6c7302003f0a492068656172206e6f206f6e6520686173206576657220666f756e64207468650a736f75726365206f662077617465722074686174206665656473207468652066616c6c732e0a536f2069662074686174277320776865726520796f7527726520676f696e672c0a70726f6d697365206d6520796f75276c6c206265206361726566756c210049276d20736f20676c616420796f7527726520736166652c2006002e0a0a4920686561722074686174207465727269626c65207468696e6773206172650a68617070656e696e67206f766572206174020220487972756c6520436173746c6502002e0a427920746865207761792e2e2e02020a0a02004861766520796f75206265656e207573696e6720616c6c206f66207468650a02016974656d73200200796f7527766520666f756e6420736f206661723f0a496620796f752067657420737475636b20736f6d6577686572652c20796f75276c6c0a6e65656420746f2074727920657665727920747269636b20796f7527766520676f74210a4a75737420747279207573696e672065766572797468696e6720696e20796f75720a696e76656e746f72792c204f4b3f20596f75276c6c20736f7274206974206f75742e2e2e004865792c206172656e277420796f752074697265643f0a0a446f20796f752077616e7420746f2074616b65206120726573743f0a05ff5965732020200532084e6f00576861742c20796f75277265206365727461696e3f20426f792c206b6964732074686573650a646179732073757265206172652066756c6c206f66206265616e732e2e2e0a49276d20616c6c207475636b65726564206f75742c20616e6420616c6c204920646f2069730a726964652061726f756e64206f6e20796f7572206865616420616c6c2064617921004f686868682c2079656168210a0a5468617420776173206a75737420776861742049206e656564656420746f0a676574206261636b20696e20746865206669676874210a4c6574277320676f2c20060021000000 @@ -73,6 +26,9 @@ fffffffffffffffffffffffffff4000000f5000000950100003302000080020000ca030000680400 4a757374206265636175736520796f752068617665206120020173776f7264 + +@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ + gUnk_089E2D10:: @ 089E2D10 @ replacing .incbin "baserom.gba", 0x009e2d10, 0x4f8e .data 200200616e640a0201736869656c64200200646f65736e2774206d65616e20796f75276c6c2062652073616665210a492063616e2774206c657420796f7520676f206f757420746865726520616c6f6e6521204e6f740a756e74696c20796f75206b6e6f7720736f6d6520020373776f726420746563686e697175657302002e00486f20686f210a536f2c20796f75277665206c6561726e6564207468652002015370696e2041747461636b02003f0a49742773207374696c6c2064616e6765726f75732c206275742e2e2e6d617962650a796f752063616e2068616e646c652069742e0a57656c6c2c206c657427732073656520686f7720796f7520646f2e0a53686f77206d6520746861742002015370696e2041747461636b020021004e6f772074686174207761732061207265616c0a63656e74656e6e69616c2063656c6562726174696f6e210a5468617420666573746976616c207761732074686520626573742065766572210049276d20736f206c75636b79212054686174207761736e2774206a75737420616e79206f6c640a666573746976616c2e2049742077617320612063656e74656e6e69616c20666573746976616c210a49742066616c6c732045584143544c59206f6e20746865203130302d79656172206d61726b210a0a546865726520776f6e277420626520616e6f74686572206f6e6520756e74696c2049276d2e2e2e0a4c657427732073656520686572652e2e2e20596f772120313138207965617273206f6c64213f0a4a65657a2c20616d2049206576656e20676f6e6e612062652061726f756e6420746f0a73656520746865206e6578742063656e74656e6e69616c20666573746976616c3f0a41682c20737572652e20576879206e6f743f204974276c6c2067697665206d650a736f6d657468696e6720746f206c6f6f6b20666f727761726420746f210054686520746f776e20697320717569657420656e6f7567682c206275742070617374207468650a67617465732c20746865726520617265206d6f6e73746572732065766572797768657265210a596f752073686f756c6420766973697420020253746f636b77656c6c27732073686f70200200616e640a676574206f7574666974746564206265666f726520796f7520676f206f75742074686572652e004c6174656c792c2074686520776f6f64732068617665206265656e2066696c6c65640a77697468206e61737479206d6f6e73746572732e0a457665722073696e63652074686520636865737420776173206f70656e65642c20697427730a6265656e20616c6c20746f7073792d74757276792061726f756e6420686572652e004d656f6f6f772e2e2e00526f7772727221000059656168210a54686174277320746865206f6e65210a42757420746865726520617265206d6f6e7374657273206f75742074686572652c206b6964210a596f75206a757374206d616b65207375726520796f75277265206361726566756c2e00546865726520617265206d6f6e7374657273206f75742074686572652c206b6964210a596f75206a757374206d616b65207375726520796f75277265206361726566756c2e0000000000000000000000427567676564792d627567676564792d424f4f210a0a44696420492073636172652079613f004b69647320617265206a757374206e61747572616c6c7920736361726564206f660a67686f7374732c20796f75206b6e6f7720776861742049206d65616e3f004172662120417266206172662100497427732061206c6f742065617369657220666f72206d65206e6f74206265696e670a616e796f6e652773207065742e0a4920646f6e2774206861766520746f20776169742061726f756e6420666f72206d65616c2d0a74696d65732e2049206a7573742065617420776861746576657220492063616e2066696e64210044696420796f75207365652074686520746f75726e616d656e74213f0a49742077617320696e6372656469626c65210a4920776173206f7574206f66206d79207365617420616e64206368656572696e670a6265666f72652049206576656e206b6e65772069742100492063616e2774207761697420666f72206e657874207965617227730a746f75726e616d656e7421205768656e277320697420737570706f73656420746f2062653f00596f772120546861742073776f72642d6669676874696e6720746f75726e616d656e740a77617320736f206578636974696e67210a4f682c206966206f6e6c79206d792068757362616e6420776572652074616c656e7465640a656e6f75676820746f20636f6d706574652e2e2e004576656e2049276d2061206265747465722073776f726466696768746572207468616e0a6d792068757362616e642069732e0a48652063616e2774206576656e2068616e646c65206120627574746572206b6e696665210049207265616c6c792077616e6e6120706c617920612067616d652c2062757420746869730a706c6163652069736e2774206f70656e207965742e0a492067756573732049206a75737420676f74206865726520746f6f206561726c792e2e2e0054686973207374616c6c206973206b696e64206f662064697274792e204920677565737320746861740a67757920776f6e27742062652073657474696e67207570206865726520746f6461792e2e2e00486d6d2e2e2e204e6f7468696e67206275742066727569747320616e6420766567676965732e0a576861742073686f756c64204920636f6f6b20746f6e696768743f004865792c2068657921204672657368206672756974210a47657420796f757220667265736820667275697420686572652100436f6d65206f6e20757020616e642074616b652061206c6f6f6b2c20666f6c6b73210a0a4f6e65207768696666206f6620746865736520737765657420616e642064656c6963696f75730a6672756974732c20616e6420796f75276c6c20626520736f6c642120436f6d65206f6e2075702100486f7764792c20686f7764792120436f6d652067657420796f75722066726573680a766567676965732c2067726f776e2062792045656e696520616e64204d65656e6965210a546865792772652066726573686572207468616e2066726573682c20666f6c6b73210a416e64207468657927726520676f6f6420666f7220796f752c20746f6f2100446f6e277420666f7267657420746f2065617420796f75722076656767696573210a4576657279626f6479206e6565647320612062616c616e6365642064696574210049206a757374206c6f6f6f6f76652073686f7070696e67210f0b0a0a4f682c20616e642049206d7573746e277420666f7267657420746f2062757920736f6d65206f660a7468617420020173757270726973652d66696c6c656420627265616420020066726f6d205069746121004f68212049206a7573742072656d656d6265726564210a0a49206e65656420746f207069636b207570206120626f74746c65206f660a02014c6f6e204c6f6e204d696c6b0200206f6e207468652077617920686f6d65210000004865792c20796f752077616e6e61206b6e6f77207768617420492068656172643f20490a68656172642074686174206f6e6c79206b6964732063616e20736565207468652002025069636f7269020021004920776f6e6465722069662077652063616e20736565207468652002025069636f726902002c20746f6f2e004865792c20492077616e6e6120736565207468652002025069636f726902002c20746f6f210a43616e20493f2043616e20493f204875683f2043616e20493f004865792c2002025069636f726902002120486f2c2002025069636f72690200210a436f6d65206f757420616e6420706c6179207769746820757321000049207468696e6b20746865206d61796f7220697320646f696e6720612066696e65206a6f622c0a6e6f206d617474657220776861742070656f706c652073617921004920776f6e27742073617920616e797468696e672c206576656e20696620796f750a6469672061206875676520686f6c6520696e206d792067617264656e2e0041772e2e2e204974206c6f6f6b73206c696b65207468657927726520686176696e672066756e20696e0a74686572652e20492077697368204920636f756c6420706c61792077697468207468656d2e2e2e00492063616e2774207761697420756e74696c2049276d2062696720656e6f75676820746f20676f0a746f207363686f6f6c20616e6420686176652066756e20414c4c207468652074696d652100536f7272792c2062757420492063616e2774206c657420796f7520706173732e0a546865726520617265206d6f6e7374657273206f75742074686572652100576527726520776f726b696e6720686572652e20536f7272792c206275742077650a63616e2774206c657420796f7520706173732e0a536f7272792e0057656c6c2c2069662069742069736e2774200600210a497420495320676f6f6420746f2073656520796f7520616761696e2e0a5363686f6f6c20697320696e2073657373696f6e207269676874206e6f772c0a736f2049276d2061667261696420492063616e2774206c657420796f7520696e2e00576527726520696e20746865206d6964646c65206f662061207665727920696d706f7274616e740a636c617373207269676874206e6f772c20736f20796f75206d6179206e6f7420656e7465722e005468657265277320616e206f6c64206c6567656e64207468617420736f6d657468696e670a6269672077696c6c2068617070656e207768656e20487972756c6527732062656c6c2072696e67732e0045766572796f6e6520697320616672616964206f662077686174206974206d696768740a6d65616e20746f2072696e67207468652062656c6c2c20736f20746865792061766f69642069742e00492063616d6520746f20636865636b206f7574206120626f6f6b2c0a6275742074686579277265206e6f74206f70656e207965742e0a48616868682e2e2e2057656c6c2c20616765206272696e67732070617469656e63652c0a736f6e6e792e20492063616e20776169742e005468652002025377696674626c616465205363686f6f6c020020696e2074686520736f75746820656e640a6f6620746f776e206973207265616c6c7920617765736f6d652e0a54686520746561636865722c2002025377696674626c61646502002c2068617320616e0a616d617a696e676c7920646972656374207465616368696e67207374796c652e0a492077697368204920636f756c6420747261696e2074686572652e2e2e005468652002025377696674626c616465205363686f6f6c020020696e2074686520736f75746820656e640a6f6620746f776e206973207265616c6c7920617765736f6d652e0a54686520746561636865722c2002025377696674626c61646502002c2068617320616e0a616d617a696e676c7920646972656374207465616368696e67207374796c652e0a492077697368204920636f756c6420747261696e2074686572652e2e2e0052727272722e2e2e41524620415246210041726620617266206172662100 @@ -157,117 +113,4 @@ ffffffffffffffffffff98000000990000001c01000063010000780100001f020000b30200008403 0300cc205768757a7a613f21204f682c2077656c636f6d65210a57656c636f6d6520746f20020252656d27732053686f652053686f700200210a4c6174656c792c207768656e6576657220492074616b652061206e61702c20616c6c206d790a73686f65732061726520646f6e65207768656e20492077616b65207570210a07440200596f75206b6e6f772c20696620492063616e206d616b652073686f657320696e206d790a736c6565702c2049206d75737420626520696e20746865207269676874206a6f6221004d6d6d6d6d6e756d6e756d6e756d6e756d2e2e2e00576861612d2d210a0a5768617420697320746861742074657272696679696e676c792062616420736d656c6c213f0a412077616b652d7570206d757368726f6f6d3f210a492073686f756c6420686176652067756573736564210a536f20796f7520776f6b65206d652075703f0a5468616e6b732c2049206a7573742072656d656d6265726564204920686176650a736f6d657468696e6720757267656e7420746f20646f2100416e6420746865726520776520676f2e2e2e0a486572652c2074616b652074686573652e0a54686f736520617265206d79207370656369616c2002015065676173757320426f6f74730200210a0a5468657927726520736f206c696768742c20796f75276c6c206665656c206c696b6520796f752772650a70726163746963616c6c792077616c6b696e67206f6e2061697221004f6f682c2049206e65656420746f20687572727920757020616e64206765740a776f726b696e67206f6e2074686174207370656369616c206f726465722e2e2e0a546865206b696e672061736b6564206d6520746f206d616b6520736f6d650a73686f657320666f72205072696e63657373205a656c64612c20796f75207365652e0a5468616e6b7320666f722077616b696e67206d652075702e20436f6d65206261636b2069660a492063616e20657665722068656c7020796f7520776974682073686f652070726f626c656d732e0049206e65656420746f20687572727920757020616e64206d616b652074686f73650a73686f657320666f72205072696e63657373205a656c646121005768757a7a613f21204f682c2077656c636f6d65210a57656c636f6d6520746f20020252656d27732053686f652053686f700200210a49206d757374206861766520646f7a6564206f666620616761696e2e2e2e0a54696d6520746f206d616b65207468652073686f65732100005468616e6b20796f7520666f722077616b696e67206d65207570206561726c6965722e0a0a4f682c207361792c20796f7520776f756c646e27742077616e7420746f200203667573650a4b696e73746f6e6573020120020077697468206d652c20776f756c6420796f753f0a49206861766520612076657279207370656369616c2002014b696e73746f6e6520706965636502002100436f6d6520736565206d652061676169 -gUnk_089EEE98:: @ 089EEE98 -@ replacing .incbin "baserom.gba", 0x009eee98, 0x4c -.data 6e20736f6d6574696d65212049662049276d0a6177616b652c2049276c6c20667573652002034b696e73746f6e65730200207769746820796f75210049206b6e6f772120446f20796f752077 - -gUnk_089EEEE4:: @ 089EEEE4 -@ replacing .incbin "baserom.gba", 0x009eeee4, 0xa -.data 616e7420746f20020366 - -gUnk_089EEEEE:: @ 089EEEEE -@ replacing .incbin "baserom.gba", 0x009eeeee, 0x8 -.data 757365204b696e73 - -gUnk_089EEEF6:: @ 089EEEF6 -@ replacing .incbin "baserom.gba", 0x009eeef6, 0x110a -.data 746f6e657302000a77697468206d653f2049206861766520612076657279207370656369616c206f6e65210049276d207265616c6c7920626c617a696e672061776179206f6e2074686573652073686f65730a666f72205072696e63657373205a656c646121003f210a4875683f2057686174206e6f773f210a546865726520617265206d6f7265206e65772073686f6573210a596f752070726f6261626c7920776f6e27742062656c6965766520746869732c206275742e2e2e0a492068617665206120737472616e6765206861626974206f66206d616b696e670a73686f657320696e206d7920736c656570210a536f20796f75206d757374206861766520636f6d65206865726520626563617573650a796f752077616e7420736f6d65206f66206d792073686f65732c2072696768743f0a54656c6c20796f7520776861743a206265636175736520796f752077657265206e6963650a656e6f75676820746f2077616b65206d652c20796f752063616e20686176652027656d210a486f6c64206f6e2061207365632c2074686f7567682e2049206a7573742077616e740a746f2066696e6973682074686973206f6e65206c617374206269742e2e2e000003020454686f73652002015065676173757320426f6f747320020077696c6c206d616b6520796f750a77616e7420746f20646173682065766572797768657265210a49742773207265616c6c792066756e20746f2072756e20686561646c6f6e6720696e746f0a737475666620616e64207265616c6c79207368616b65207468696e677320757021000301fc4d792002015065676173757320426f6f747320020061726520736f20636f6d666f727461626c65210a0a54686579276c6c206d616b6520796f7572206c6974746c6520706967676965730a73717565616c20776974682064656c6967687421000301f85468616e6b7320666f722077656172696e67206d792073686f6573207769746820737563680a70726964652c2076616c75656420637573746f6d657221000000000000000000000302044865792c206865792120596f752772652006002c2072696768743f0a0a596f7527726520746865206f6e652077686f2062726f75676874207468652073776f72640a746f2002024d6173746572204d656c6172690200210a596f75277265206f6e206120717565737420746f2068656c7020746865207072696e636573732c0a6172656e277420796f753f0a492077697368204920636f756c6420676f206f6e20612071756573742c206275740a7468656e2077686f2764206d616b6520020252656d020027732073686f657320666f722068696d3f000301fc486f2c20686f2120596f75206e6565642002015065676173757320426f6f747302003f0a5768792c20796f75277265206a75737420696e2074696d65210a5765206d61646520612070616972206a757374206e6f77207768696c650a020252656d20020077617320736c656570696e672e0a427574206f6e6c7920020252656d20020063616e20707574207468650a66696e697368696e6720746f7563686573206f6e207468656d2e2e2e000301f848612c20686121205468617420736c656570796865616420020252656d2002006973206e6561726c790a696d706f737369626c6520746f2077616b652075702e2e2e0a496620796f752077616e7420746f2077616b652068696d2c20796f75276c6c206e6565640a746f2067657420616e206974656d2066726f6d200202537972757002002773206875742e0a497427732061206c6974746c6520626974206f662061207472656b2c206275740a7765276c6c206d61726b206974206f6e20796f7572206d617020666f7220796f752e000302044865792c206865792120020252656d20020068617320736f6d65206f7468657220757267656e740a627573696e6573732068652073686f756c6420626520776f726b696e67206f6e2e2e2e0a536f20706c656173652c2077616b652068696d20757020617320736f6f6e2061730a796f752063616e212054696d65277320612d77617374696e2721000301fa486f2c20686f2120576527766520646f6e6520616c6c2077652063616e20776974680a74686573652073686f65732e0a596f75276c6c206e65656420746f20676f20746f2002025379727570020027732068757420736f0a52656d2063616e20707574206f6e207468652066696e697368696e6720746f75636865732e000301f848612c2068612120020253797275700200277320687574206973206e6f727468206f66207468650a02024d696e69736820576f6f647302002e204a75737420636865636b20796f75722002016d617002002e0049276c6c206d616b6520796f752073686f65732120536f2077687920646f6e277420796f750a636f6d65206261636b206c617465723f00546865206d6167696320686167206d6179206861766520736f6d657468696e670a676f6f642e00536f6d6574696d65732077652068656c702068696d206d616b652073686f65732e0000 - -ffffffffffffffffffffffffffc0000000c10000004b0100008c010000c1010000f00100003b02000059020000c2020000db0200000e0300003003000075030000a6030000f2030000200500005e0500006c0500007405000084050000c0050000fa050000380600000d070000ff070000b508000003090000750900004a0a0000f00a0000150b0000300b0000b00b0000cd0b0000ea0b00001e0c00004a0c0000940c0000f30c00003c0d00008a0d00008b0d00008c0d00008d0d00008e0d00008f0d0000900d0000910d000000 - -48692074686572652c20616e642077656c636f6d6520746f207468650a48617070792048656172746821204e656564206120726573742c206b69643f0a57656c6c2c2077652063616e2074616b652063617265206f6620746861742d2d616e640a6576656e207468726f7720696e206120020170726573656e74200200746f20626f6f74210a0745020005ff466f7267657420697420202020202005ff060120527570656520726f6f6d0a05ff060220527570656520726f6f6d2005ff060320527570656520726f6f6d002e2e2e52696768742e200601205275706565732e0a54686520636865617020726f6f6d2069742069732c207468656e2e0a07450600596573736972210a060120527570656573206765747320796f75206120726567756c617220726f6f6d210a0745060057656c6c206e6f772120436f6d652066726f6d206120676f6f642066616d696c792c20646f0a77653f2041206c757875727920726f6f6d20666f7220060120527570656573210a07450600416c6c207061796d656e742075702066726f6e742c20706c65617365210057686174277320746869733f210a536f6e2c20796f7527766520676f74206e6f2063617368210a436f6d65206261636b207768656e20796f752067726f772075700a616e64206765742061206a6f62210a4e6f77206f6666207769746820796f75212053686f6f21005468616e6b73210a456e6a6f7920796f757220737461792100486f2c206e6f772120596f7520646f6e27742077616e7420746f20737461793f0a57656c6c2c20636f6d6520616761696e2100546861742773207468652065786974210a456e6a6f7920796f757220737461792100416e6420686f772077617320796f757220737461793f0a44696420796f752066696e6420796f75722070726573656e743f0a506c6561736520636f6d6520616761696e21004974207365656d7320796f75207265616c6c792067657420776861740a796f752070617920666f7220686572652e2e2e00427574204920677565737320796f7520646f6e2774207265616c6c79206b6e6f77207468650a646966666572656e636520756e74696c20796f7520747279206561636820726f6f6d2e2e2e004865792c207768617420646f20796f75206b6e6f772061626f757420746861740a02016c6967687420666f72636502002073747566663f0a50656f706c652061726520736179696e67206974277320736f6d65206b696e64206f660a747265617375726520746861742063616e206772616e7420796f7520616e7920776973682e0a416e797761792c206e6f7720746865206b696e67277320696e20612062696720687566660a747279696e6720746f2066696e642069742e0a4974277320737472616e67652c2074686f7567682e204865206e657665722073747275636b0a6d6520617320746865206772656564792074797065206265666f72652e0a4974277320616c6d6f7374206c696b652068652773206120646966666572656e740a706572736f6e206e6f772e2e2e00576861742773207769746820746865206b696e67206c6174656c793f0a486520776173206e65766572206c696b652074686174206265666f72652e2e2e0059616161792120596161617921005761616169742100486579212121205761697420757021004974277320736f206e69636520746f2062652068657265206174206c617374210a416e64207375636820612062696720746f776e206974206973210053746179696e6720696e207468697320696e6e20666f72657665720a776f756c6420737461727420746f206265206120626f746865722e2e2e005765206e65656420746f2066696e642061206e6963652c20717569657420706c6163650a77686572652077652063616e20736574746c6520646f776e2e005468652002026b696e672002006973206a757374207465727269626c65206c6174656c79210a5468696e67732061726520676f696e67206372617a792061726f756e642068657265210a576f756c6420796f752062656c6965766520612067756172642063616d6520696e746f206d790a686f75736520746865206f74686572206461793f0a4974277320747275652120416e64206765742074686973212048652064656d616e6465640a74686174204920676976652068696d20736f6d65206b696e64206f6620220201666f72636502002221004e6f726d616c2070656f706c652063616e277420656e746572207468650a0202526f79616c2056616c6c657902002e0a546865726527732061206372797074696320666f726573742074686174206c656164730a696e746f2069742c20616e642070656f706c6520676574206c6f73742074686572652e0a5468652073656372657420746f2066696e64696e6720796f757220776179207468726f7567680a69732072656164696e6720616c6c20746865207369676e73210a596f75276c6c206e65766572206d616b6520697420756e6c65737320796f7520726561640a65616368206f6e65206361726566756c6c792e00596f752077616e7420746f20676f20746f2074686520746f6d62206f660a02024b696e6720477573746166206f6620487972756c6502003f0a5468656e20796f7527642070726f6261626c79206265747465722074616c6b0a746f20020244616d70e902002e0a4865277320746865206772617665646967676572206174207468652063656d65746572792e0a4e6f626f6479206b6e6f777320746865200202526f79616c20437279707420020062657474657221004861766520796f752073746179656420696e20746865206265737420726f6f6d207965743f0a49276d20747279696e6720746f20666967757265206f757420776865726520746f20737461792e0054686520736f75726365206f6620776174657220696e20487972756c653f20596f750a6d757374206d65616e2074686520737072696e672061742002025665696c2046616c6c7302002e0a54686174277320776865726520616c6c206f757220776174657220636f6d65732066726f6d2e00492063616e277420736179207468697320696e2066726f6e74206f6620746865206b6964732e2e2e0a4920646f6e27742077616e7420746f20616c61726d207468656d2c20796f75206b6e6f773f0a - -gUnk_089F0000:: @ 089F0000 -@ replacing .incbin "baserom.gba", 0x009f0000, 0x9 -.data 4275742e2e2e020248 - -gUnk_089F0009:: @ 089F0009 -@ replacing .incbin "baserom.gba", 0x009f0009, 0x49 -.data 7972756c6520436173746c65200200686173206265656e206c6f6f6b696e670a707265747479207765697264206c6174656c792e0a492063616e2774207361792065786163746c7920 - -gUnk_089F0052:: @ 089F0052 -@ replacing .incbin "baserom.gba", 0x009f0052, 0x638 -.data 776861742069742069732c2074686f7567682e0a49742773206a7573742e2e2e646966666572656e742e20537472616e67652e004920736177206974212049207361772069742077697468206d79206f776e2074776f2065796573210a0a54686572652077657265206d6f6e737465727320696e736964650a6f66200202487972756c6520436173746c650200210a492776652068656172642072756d6f7273207468617420736f6d652070656f706c652077686f0a77656e7420746f2074686520636173746c65206e657665722063616d65206261636b21005363686f6f6c206c6574206f7574206561726c7920746f646179210a4c75636b79210f0b0048657921205761697420757021205761697420666f72206d6521004927766520676f74206e6f2063686f6963652e0a492067756573732049276c6c2074616b65207368656c74657220686572652e2e2e0a49206b6e6f7720492063616e20686f6c64206d79206f776e2c206275742074686f7365206172650a736f6d6520666965726365206d6f6e7374657273206f75742074686572652e2e2e004d79206d6f6d2773206120776966652c206e6f74206120776f6c662e004d79206d6f6d2773206120776966652c206e6f74206120666966652100492063616e27742062656c696576652073686520666f756e64206120706c616365210a4920616d20736f206a65616c6f75732e004d6179626520492073686f756c6420676f20706179206865720a6120766973697420736f6d6574696d652e005468696e6773206a757374206172656e2774207468652073616d652061726f756e640a68657265206e6f7720746861742069742773206a757374207468652074776f206f662075732e00492068617465206265696e67206865726520616c6c20616c6f6e65210a0a492077697368204920636f756c642066696e642061206e69636520706c6163650a746f206c6976652c206c696b6520746865206f7468657273206469642e2e2e0049742773206e6f2066756e206265696e67206865726520616c6f6e652e204d617962650a492073686f756c64206c6f6f6b20666f722061206e69636520686f7573652c20746f6f2e004265696e6720616c6c20616c6f6e652069732e2e2e77656c6c2c206c6f6e656c792e2049276d0a676f696e6720746f2066696e64206d7973656c662061206e69636520686f6d652c20746f6f2e000000000000000000 - -ffffffffffffffffffffffffffffa0010000a101000032020000710200009b030000ba040000e9040000bc0500003c0600003d060000cb0600000c070000d80700003809000067090000ff090000330a0000340a0000ae0a0000ed0a0000c80b00001d0d00004c0d0000e80d0000210e0000220e0000950e0000d40e0000e10f0000e210000011110000aa1100000112000002120000031200009f120000de120000ca130000e114000010150000a9150000561600005716000058160000ed1600002c1700002518000046190000751900000e1a0000951a0000721b0000731b0000081c0000471c00004f1d0000601e00008f1e0000281f0000b61f00009f200000a020000071210000b0210000e3220000e823000017240000ee2400008b250000c4260000c526000074270000b3270000f42800009f290000a0290000a1290000a2290000a3290000a4290000a5290000532a0000922a0000b22b0000752c0000762c0000772c0000782c0000792c00007a2c00007b2c00003d2d00007c2d00009f2f000080300000c4310000e7310000623200008e320000d03200003a33000081330000c333000020340000000300d0 - -4920616d2002025377696674626c61646502002c2066696e6573742073776f7264736d616e0a696e20616c6c206f6620487972756c65210a496620796f75200203747261696e20020077697468206d652c20492067756172616e74656520746861740a796f752077696c6c20696e63726561736520796f757220736b696c6c206472616d61746963616c6c792100536f3f20576f756c6420796f75206c696b6520746f200203747261696e200200686572653f0a202005ff506c656173652005465f4e6f2c207468616e6b73005765207368616c6c207374617274207769746820746865206d6f73742062617369630a6f6620616c6c20746563686e6971756573210a49207368616c6c - -gUnk_089F068A:: @ 089F068A -@ replacing .incbin "baserom.gba", 0x009f068a, 0x1a8 -.data 20746561636820796f752e2e2e7468652002015370696e2041747461636b0200210a02010a02034669727374212102000a507265737320616e6420686f6c6420796f75722073776f726420627574746f6e2e2e2e0a02035365636f6e64212102000a4275696c6420757020656e6f75676820706f7765722e2e2e0a02035468697264212102000a52656c6565656561736520796f7572206465737472756374697665206d6967687421210a54686174277320616c6c2c20796f756e672073776f7264736d616e21210a0a446f20796f7520756e6465727374616e643f0a202005ff5965732020200546034e6f004861686121205665727920676f6f64210a596f75206172652061207665727920717569636b2073747564656e742e0a427574206f6e65206d757374204645454c2074686520746563686e697175652c0a6e6f74206a75737420686561722061626f7574206974210a5468617427732077687920492077696c6c206e6f7720706f737365737320796f757220626f64790a736f20617320746f2064656d6f6e7374726174652074686520746563686e69717565210a492063616c6c20 - -gUnk_089F0832:: @ 089F0832 -@ replacing .incbin "baserom.gba", 0x009f0832, 0x17d5 -.data 74686973207468652002035377696674626c61646520506f7373657373696f6e0a746563686e697175650200206f6620747261696e696e67210a5761746368207468697321210a5572726e676821210a506f652e2e2e5a65682e2e2e5348554e21212100506865772e2e2e0a4e6f772120596f75206d75737420747279206974200203796f757273656c660200210a0746600059657321212046696e6520776f726b2120596f75277265206120717569636b2073747564792e0a492077696c6c206e6f77206769766520796f7520746869732002015469676572205363726f6c6c0200210a496620796f75206576657220666f72676574207468697320746563686e697175652c0a796f752063616e20726576696577206974207769746820746869732002017363726f6c6c0200210a596f75206d6179207669657720697420616e7974696d652066726f6d0a746865205175657374205374617475732073637265656e2100546865726520617265206e6f206d6f726520746563686e697175657320492063616e0a746561636820796f752002037769746820796f75722063757272656e742073776f726402002102030a0200436f6d6520616761696e207768656e20796f7520686176650a020161206e65772073776f7264020020696e2068616e642100000300d04d6e212041206e657720020173776f72640200212046616e7461737469632120416e6420796f750a7365656d20746f2068617665206163717569726564206e657720736b696c6c732077697468206974210a59657321204920616d20726561647920746f200203747261696e200200796f7520616761696e2c0a796f756e672073776f7264736d616e2100536f3f2057696c6c20796f75206163636570742074686973206e6577200203747261696e696e6702003f0a202005ff5965732005465f4e6f2c207468616e6b7300492077696c6c206e6f7720746561636820796f75206120746563686e697175652063616c6c65640a74686520526f636b20427265616b65722c20736f2070617920617474656e74696f6e210a02034669727374212102000a5377696e6720796f75722073776f726420746f20627265616b20706f7473210a41637475616c6c792c2074686174277320616c6c2074686572652069732c20796f756e670a73776f7264736d616e21210a446f20796f7520756e6465727374616e643f0a202005ff59657320202005460b4e6f005965732120486168612120476f6f64210a0a496620796f7520686164207361696420796f75206469646e277420756e6465727374616e642c0a4920776f756c64206861766520736572696f757320646f756274732061626f757420796f75210a5965732c20627574206f6e65206d757374206665656c2074686520746563686e697175652c0a6e6f74206a75737420686561722061626f7574206974210a5468617427732077687920492077696c6c206e6f7720706f737365737320796f757220626f64790a736f20617320746f2064656d6f6e7374726174652074686520746563686e69717565210a546861742069732074686520736563726574206f66207468652002035377696674626c6164650a506f7373657373696f6e20746563686e697175650200206f6620747261696e696e67210a5761746368207468697321210a47756e6e67686821210a506f652e2e2e5a65682e2e2e5348554e21212100506865772e2e2e0a4e6f772120596f75206d75737420747279206974200203796f757273656c660200210a0746610059657321212046696e6520776f726b212046616e7461737469632c206576656e210a492077696c6c206e6f77206769766520796f7520746869732002015469676572205363726f6c6c0200210a496620796f75206576657220666f72676574207468697320746563686e697175652c0a796f752063616e20726576696577206974207769746820746869732002017363726f6c6c02002100436f6d6520616761696e207768656e20796f75206c6561726e0a746f20020372756e206c696b65207468652077696e6402002100000300d0416821205965732120596f752068617665207468652002015065676173757320426f6f74730200210a416e6420796f75207365656d20746f2068617665206d6f726520736b696c6c2c20746f6f210a59657321204920616d20726561647920746f200203747261696e200200796f7520616761696e2100536f3f20576f756c6420796f75206c696b6520746f200203747261696e200200686572653f0a202005ff506c656173652005465f4e6f2c207468616e6b7300596f752077696c6c206e6f77206c6561726e2061206e657720746563686e697175652c0a746865200201446173682041747461636b0200210a02034669727374212102000a457175697020746865205065676173757320426f6f7473210a02035365636f6e64212102000a457175697020796f75722073776f7264210a02035468697264212102000a52756e206c696b65206372617a79210a54686174277320616c6c2c20796f756e672073776f7264736d616e21210a0a446f20796f7520756e6465727374616e643f0a202005ff5965732020200546134e6f005965732120596573210a596f7520617265206d792066696e6573742073747564656e74210a4a75737420657175697020796f75722073776f726420616e642074686520506567617375730a426f6f747320746f20616e7920627574746f6e20796f75206c696b65210a427574206f6e65206d757374206665656c2074686520746563686e697175652c0a6e6f74206a75737420686561722061626f7574206974210a5468617427732077687920492077696c6c206e6f7720706f737365737320796f757220626f64790a736f20617320746f2064656d6f6e7374726174652074686520746563686e69717565210a54686973206973207468652002035377696674626c61646520506f7373657373696f6e0a746563686e697175650200206f6620747261696e696e67210a5761746368207468697321210a5572726e676821210a506f652e2e2e5a65682e2e2e5348554e21212100506865772e2e2e0a4e6f772120596f75206d75737420747279206974200203796f757273656c660200210a0746620059657321212046696e6520776f726b2120596f75206c6561726e20717569636b6c79210a492077696c6c206e6f77206769766520796f7520746869732002015469676572205363726f6c6c0200210a496620796f75206576657220666f72676574207468697320746563686e697175652c0a796f752063616e206c6561726e20616761696e2066726f6d20746869732002017363726f6c6c02002100436f6d6520616761696e207768656e200203796f752063616e206a756d7020666172746865720a02007468616e20616e79206f746865722100000300d041686121205965732120596f75206861766520746865200201526f63277320436170650200210a416e6420796f752068617665206163717569726564206e657720736b696c6c210a59657321204920616d20726561647920746f200203747261696e200200796f7520616761696e2100536f3f20576f756c6420796f75206c696b6520746f200203747261696e200200686572653f0a202005ff506c656173652005465f4e6f2c207468616e6b73004e6f7720492077696c6c20746561636820796f752061206e657720746563686e697175652c0a746865200201446f776e205468727573740200210a02034669727374212102000a45717569702074686520526f632773204361706521210a02035365636f6e64212102000a4571756970207468652073776f726421210a02035468697264212102000a4a756d702121205468656e2e2e2e0a0203466f75727468212102000a417420796f7572206a756d702773207065616b2c207377696e67207468652073776f7264210a54686174277320616c6c2c20796f756e672073776f7264736d616e21210a0a446f20796f7520756e6465727374616e643f0a202005ff59657320202005461b4e6f005965732120596f75207365652069742c20646f20796f75206e6f743f210a0a427574206f6e65206d757374206665656c2074686520746563686e697175652c0a6e6f74206a75737420686561722061626f7574206974210a5468617427732077687920492077696c6c206e6f7720706f737365737320796f757220626f64790a736f20617320746f2064656d6f6e7374726174652074686520746563686e69717565210a5769746e6573732e2e2e7468652002035377696674626c61646520506f7373657373696f6e0a746563686e697175650200206f6620747261696e696e67210a5572726e676821210a0a506f652e2e2e5a65682e2e2e5348554e21212100506865772e2e2e0a4e6f772120596f75206d75737420747279206974200203796f757273656c660200210a0746630059657321212046696e6520776f726b2120596f75206b6e6f772074686520776179210a492077696c6c206e6f77206769766520796f7520746869732002015469676572205363726f6c6c0200210a496620796f75206576657220666f72676574207468697320746563686e697175652c0a796f752063616e20726576696577206974207769746820746869732002017363726f6c6c02002100486121205468657265206973206e6f7468696e67206d6f726520492063616e2074656163680a796f752c20796f756e67206d6173746572210a4e6f772c20796f75206d75737420747261696e20796f757273656c66210000000300d042656c69657665206e6f742077686174206f74686572732074656c6c20796f7521204920616d0a7468652074727565206d61737465722073776f7264736d616e206f6620487972756c65210a4d79206e616d6520697320020247726179626c61646502002c20616e6420696620796f75200203747261696e02000a77697468206d652c20796f752077696c6c206c6561726e206d7563682100536f3f20576f756c6420796f75206c696b6520746f200203747261696e200200686572653f0a202005ff506c656173652005465f4e6f2c207468616e6b7300596f752077696c6c206c6561726e2074686520616d617a696e670a0201526f6c6c2041747461636b0200212102010a02034669727374212102000a526f6c6c2077697468200c0820616e64200c032e2e2e0a02035365636f6e64212102000a417320736f6f6e20617320796f75206765742075702e2e2e0a02035468697264212102000a53637265616d20224869796161212220616e64207377696e6720796f75722073776f7264210a54686174277320616c6c2c20796f756e672073776f7264736d616e21210a0a446f20796f7520756e6465727374616e643f0a202005ff5965732020200546244e6f00486f686f212057656c6c20616e737765726564210a596f752068617665206d7563682070726f6d697365210a427574206f6e65206d757374206665656c2074686520746563686e697175652c0a6e6f74206a75737420686561722061626f7574206974210a5468617427732077687920492077696c6c206e6f7720706f737365737320796f757220626f64790a736f20617320746f2064656d6f6e7374726174652074686520746563686e69717565210a546869732069732074686520020347726179626c61646520506f7373657373696f6e0a746563686e697175650200206f6620747261696e696e67210a5761746368207468697321210a5572726e676821210a506f652e2e2e5a65682e2e2e5348554e21212100506865772e2e2e0a4e6f772120596f75206d75737420747279206974200203796f757273656c660200210a0746640059657321212046696e6520776f726b2120596f75206b6e6f772074686520776179210a492077696c6c206e6f77206769766520796f7520746869732002015469676572205363726f6c6c0200210a496620796f75206576657220666f72676574207468697320746563686e697175652c0a796f752063616e20726576696577206974207769746820746869732002017363726f6c6c020021004e6f772c207468657265206973206e6f7468696e67206c65667420666f72206d650a746f20746561636820796f752e0a596f757220747261696e696e67206d75737420636f6e74696e75652077697468696e0a746865207265616c6d206f6620796f7572204d494e442e2e2e0a416674657220616c6c2c2074686520776179206f66207468652073776f72642072657175697265730a6d756368206469736369706c696e65212120596573210000000300d0596f752061726520696e207468652070726573656e6365206f662074686520747275650a6d61737465722073776f7264736d616e206f6620487972756c652c0202204772696d626c6164650200210a496620796f75200203747261696e20020077697468206d652c20796f752077696c6c206265636f6d650a612074727565206d61737465722073776f7264736d616e2100536f3f20576f756c6420796f75206c696b6520746f200203747261696e200200686572653f0a202005ff506c656173652005465f4e6f2c207468616e6b7300596f752077696c6c206c6561726e20746865206d65616e696e67206f6620706f7765720a77697468207468697320746563686e697175652c2074686520020153776f7264204265616d02002102010a02034669727374212102000a5768656e20796f757220686561727473206172652066756c6c2e2e2e0a02035365636f6e64212102000a5377696e6720796f7572206d69676874792073776f72642121210a5468617427732e2e2e7265616c6c7920616c6c20746865726520697320746f2069742c0a796f756e672073776f7264736d616e21210a446f20796f7520756e6465727374616e643f0a202005ff59657320202005462d4e6f004275742074686973206973206f6e6c792074686520626567696e6e696e67210a4e6f7720636f6d657320746865207265616c207468696e67210a4f6e65206d757374206665656c2074686520746563686e697175652c0a6e6f74206a75737420686561722061626f7574206974210a5468617427732077687920492077696c6c206e6f7720706f737365737320796f757220626f64790a736f20617320746f2064656d6f6e7374726174652074686520746563686e69717565210a54686973206973207468652002034772696d626c61646520506f7373657373696f6e0a746563686e697175650200206f6620747261696e696e67210a5761746368207468697321210a5572726e676821210a506f652e2e2e5a65682e2e2e5348554e21212100506865772e2e2e0a4e6f772120596f75206d75737420747279206974200203796f757273656c660200210a0746650059657321212046696e6520776f726b2120596f75206b6e6f772074686520776179210a492077696c6c206e6f77206769766520796f7520746869732002015469676572205363726f6c6c0200210a496620796f75206576657220666f72676574207468697320746563686e697175652c0a796f752063616e20726576696577206974207769746820746869732002017363726f6c6c020021004e6f77207468657265206973206e6f7468696e67206d6f726520746861740a492063616e20746561636820796f7521210a596f757220747261696e696e672066726f6d206e6f77206f6e2069730a616c6c20696e20796f7572206d696e6421210a54686520776179206f66207468652073776f726420697320657465726e616c212059657321000300d0596f75206861766520666f756e64207468652074727565206d61737465720a73776f7264736d616e206f6620487972756c652c0202204772696d626c6164650200210a496620796f75200203747261696e20020077697468206d652c20492077696c6c20746561636820796f750a736b696c6c7320796f75277665206e6576657220696d6167696e6564210a4275742074686520726f6f6d206973206461726b2c20616e6420492063616e6e6f74207365650a796f75722066616365212057652063616e6e6f7420747261696e206c696b652074686973212100000300d0596f75206861766520666f756e64207468652074727565206d61737465720a73776f7264736d616e206f6620487972756c652c02022057617665626c6164650200210a496620796f75200203747261696e20020077697468206d652c20492077696c6c20746561636820796f750a736b696c6c7320746861742077696c6c206d616b6520796f752061206d61737465722100536f3f20576f756c6420796f75206c696b6520746f200203747261696e200200686572 - -gUnk_089F2007:: @ 089F2007 -@ replacing .incbin "baserom.gba", 0x009f2007, 0x312 -.data 653f0a202005ff506c656173652005465f4e6f2c207468616e6b73004e6f7720796f752077696c6c206c6561726e20612064616e6765726f75730a746563686e6971756520666f72206465737065726174652074696d6573210a546865200201506572696c204265616d0200210a0a02034669727374212102000a596f75206d7573742068617665206f6e6c79206f6e65206865617274206c6566742e2e2e0a02035365636f6e64212120020055736520796f7572206c617374206f756e6365206f660a737472656e67746820746f207377696e6720796f75722073776f7264210a54686174277320616c6c2c20796f756e672073776f7264736d616e21210a0a446f20796f7520756e6465727374616e643f0a202005ff5965732020200546364e6f00536f2e2e2e0a5468657265206973206e6f207475726e696e67206261636b206e6f772e2e2e0a466f72206f6e65206d757374206665656c2074686520746563686e697175652c0a6e6f74206a75737420686561722061626f7574206974210a5468617427732077687920492077696c6c206e6f7720706f737365737320796f757220626f64790a736f20617320746f2064656d6f6e7374726174652074686520746563686e69717565210a546869732069732074686520020357617665626c61646520506f7373657373696f6e0a746563686e697175650200206f6620747261696e696e67210a5761746368207468697321210a5572726e676821210a506f652e2e2e5a65682e2e2e5348554e21212100506865772e2e2e0a4e6f772120596f75206d75737420747279206974200203796f757273656c660200210a0746660059657321212046696e6520776f726b210a596f75206b6e6f772074686520776179210a492077696c6c206e6f77206769766520796f7520746869732002015469676572205363726f6c6c0200210a496620796f75206576657220666f72676574207468697320746563686e697175652c0a796f752063616e20726576696577206974207769746820746869732002017363726f6c6c020021004e6f77207468657265206973206e6f7468696e6720 - -gUnk_089F2319:: @ 089F2319 -@ replacing .incbin "baserom.gba", 0x009f2319, 0x12c -.data 6d6f726520746861740a492063616e20746561636820796f7521210a596f757220747261696e696e672066726f6d206e6f77206f6e2069730a616c6c20696e20796f7572206d696e6421210a54686520776179206f66207468652073776f7264206c656164730a657665722075707761726421205965732100596f75206861766520666f756e64207468652074727565206d61737465720a73776f7264736d616e206f6620487972756c652c02022057617665626c6164650200210a496620796f75200203747261696e20020077697468206d652c20492077696c6c2074656163680a796f75207468696e677320796f75277665206e65766572207365656e210a486d6e3f0a0a4974207365656d7320796f7520617265206e6f742072656164790a746f20747261696e2068 - -gUnk_089F2445:: @ 089F2445 -@ replacing .incbin "baserom.gba", 0x009f2445, 0x2110 -.data 657265210a436f6d65206261636b207768656e20796f7520686176650a02016d6f7265207468616e2031302068656172747302002100000300d054686f756768206d7920626f6479206d6179207065726973682c204920616d207374696c6c0a7468652074727565206d61737465722073776f7264736d616e206f6620487972756c652e2e2e0a02025377696674626c616465207468652046697273742c20537069726974206f66207468650a53776f7264736d616e0200210a496620796f75200203747261696e20020077697468206d652c20492077696c6c20746561636820796f750a736b696c6c73207468617420617265206f7574206f66207468697320776f726c642100536f3f20576f756c6420796f75206c696b6520746f200203747261696e200200686572653f0a202005ff506c656173652005465f4e6f2c207468616e6b730054686973206973206120746563686e697175652074686174206f6e6c79204920686176650a6d617374657265642e2e2e0a4f6e6c79206f6e652077686f20686f6c6473207468652073616372656420626c6164650a63616e20706572666f726d2e2e2e7468652002014772656174205370696e2041747461636b02002102010a02034669727374212102000a446f2061205370696e2041747461636b2e2e2e0a02035365636f6e64212102000a50726573732074686520627574746f6e2072657065617465646c79210a52657065617465646c79212052657065617465646c792c20646f20796f7520686561720a6d653f2054686174277320616c6c2c20796f756e672073776f7264736d616e21210a446f20796f7520756e6465727374616e643f0a202005ff59657320202005463f4e6f00576f686f686f686f210a427574206974206973206e6f7420736f2065617379210a4f6e65206d757374206665656c2074686520746563686e697175652c0a6e6f74206a75737420686561722061626f7574206974210a5468617427732077687920492077696c6c206e6f7720706f737365737320796f757220626f64790a736f20617320746f2064656d6f6e7374726174652074686520746563686e69717565210a546869732069732074686520020353706f6f6b7920506f7373657373696f6e0a746563686e697175650200206f6620747261696e696e67210a5761746368207468697321210a5572726e676821210a506f652e2e2e5a65682e2e2e5348554e21212100506865772e2e2e0a4e6f772120596f75206d75737420747279206974200203796f757273656c660200210a0746670059657321212046696e6520776f726b210a596f75206b6e6f772074686520776179210a596f75206861766520706173736564207468652074657374206f660a02025377696674626c616465207468652046697273742002007769746820737563682065617365210a492077696c6c206e6f77206769766520796f7520746869732002015469676572205363726f6c6c0200210a0a496620796f75206576657220666f72676574207468697320746563686e697175652c0a796f752063616e2072657669657720746869732002017363726f6c6c020021004e6f77207468657265206973206e6f7468696e67206d6f726520746861740a492063616e20746561636820796f7521210a596f757220747261696e696e672066726f6d206e6f77206f6e2069730a616c6c20696e20796f7572206d696e6421210a5468652077617920626567696e732077697468207468652073776f726420616e6420656e64730a77697468207468652073776f7264212059657321000300d054686f756768206d7920626f6479206d6179207065726973682c204920616d207374696c6c0a7468652074727565206d61737465722073776f7264736d616e206f6620487972756c652e2e2e0a02025377696674626c616465207468652046697273742c20537069726974206f66207468650a53776f7264736d616e0200210a496620796f75200203747261696e20020077697468206d652c20492077696c6c20746561636820796f750a736b696c6c73207468617420617265206f7574206f66207468697320776f726c64210a486d6e3f0a0a4974207365656d7320796f7520617265206e6f74207965742072656164790a746f20747261696e2077697468206d65210a436f6d65206261636b207768656e20796f7520686176650a0201616c6c2037205469676572205363726f6c6c7302002100000300d053776f7264736d616e7368697020697320737069726974210a0a4920616d207468652066696e657374206f72206d61796265207365636f6e642d66696e6573740a73776f7264736d616e20696e20616c6c206f6620487972756c652c20020253636172626c6164650200210a0203547261696e696e6720020077697468206d652077696c6c20666f72657665720a7472616e73666f726d20796f75722073776f7264736d616e736869702100536f3f20576f756c6420796f75206c696b6520746f200203747261696e200200686572653f0a202005ff506c656173652005465f4e6f2c207468616e6b7300596573210a5468656e20492077696c6c20746561636820796f7520686f7720746f206d6f72650a717569636b6c7920756e6c6561736820796f75722002015370696e2041747461636b02002c0a776869636820796f75206861766520616c7265616479206c6561726e6564210a492074616b652076697375616c697a6174696f6e200203747261696e696e67200200766572790a736572696f75736c792c2049276c6c206861766520796f75206b6e6f77210a4e6f772c2071756965746c7920636c6f736520796f757220657965732e2e2e0a0a56697375616c697a65200203796f75722073776f7264206d6f76696e6720617420616e0a756e7468696e6b61626c6520737065656402002e2e2e0a57756f6f6f6f6f6f686868682121212102030a0a020053535353535350494e4e4e4e4e4e4e4e494e4e4e4e4e4e472e2e2e004d6e756868682e2e2e0a0a4e6f772c20796f752063616e20706572666f726d20796f7572205370696e2041747461636b0a02036d7563682066617374657202002c206d792073747564656e742102030a02005468697320697320746865206865617274206f66207468652073776f7264210a0a416c6c20626567696e7320776974682062656c6965662e2e2e0a436f6d6d697420796f757273656c6620746f2074686520626c61646521000000000000000300d05468652073706972697420616e64207468652073776f726420617265206f6e65210a0a4920616d20746865206e6561726c7920626573742073776f7264736d616e0a696e20487972756c652c20020253706c6974626c6164650200210a496620796f75200203747261696e20020077697468206d652c20796f752077696c6c20646973636f7665720a7468652073656372657473206f6620796f75722068696464656e20706f7765722100536f3f20576f756c6420796f75206c696b6520746f200203747261696e200200686572653f0a202005ff506c656173652005465f4e6f2c207468616e6b73004d6e6e68210a0a4e6f7720492077696c6c20746561636820796f7520686f7720746f2066696c6c20796f75720a020153706c6974204761756765020020666173746572207468616e2065766572210a492074616b652076697375616c697a6174696f6e200203747261696e696e67200200766572790a736572696f75736c792c2049276c6c206861766520796f75206b6e6f77210a4e6f772c2071756965746c7920636c6f736520796f757220657965732e2e2e0a0a56697375616c697a65200203796f757220626f64792073706c697474696e67206576656e0a666173746572207468616e2065766572206265666f726502002e2e2e0a57756f6f6f6f6f6f686868682121212102030a0a0200537075682d2d4c6969692d2d54494e4721004d6e756868682e2e2e0a0a4e6f7720796f752077696c6c20020366696c6c20796f75722053706c69740a4761756765206d7563682066617374657202002c206d792073747564656e742102030a02005468697320697320746865207472757468206f66207468652073776f7264210a0a416e6420747275746820697320616c6d6f737420746865206578616374206f70706f736974650a6f66206e6f742d7472757468210a436f6d6d697420796f757273656c6620746f2074686520626c61646521000000000000000300d04d617374657279206f66207468652073776f7264206973206d6173746572790a6f662074686520736f756c210a4920616d206b696e6461206c696b6520616c6d6f73742074686520626573740a73776f7264736d616e20696e20487972756c652c2002024772656174626c6164650200210a0203547261696e696e6720020077697468206d652077696c6c20746f74616c6c79206368616e67650a796f75722073776f726420736b696c6c20666f726576657220616e642073747566662100536f3f20576f756c6420796f75206c696b6520746f200203747261696e200200686572653f0a202005ff506c656173652005465f4e6f2c207468616e6b7300596573210a416c6c2072696768742c2049276c6c20746561636820796f7520686f7720746f2070726f6c6f6e670a746865206475726174696f6e206f66207468652002014772656174205370696e2041747461636b02002c0a776869636820796f75206861766520616c7265616479206c6561726e6564210a492074616b652076697375616c697a6174696f6e200203747261696e696e67200200766572790a736572696f75736c792c2049276c6c206861766520796f75206b6e6f77210a4e6f772c2071756965746c7920636c6f736520796f757220657965732e2e2e0a0a56697375616c697a65200203796f75722073776f726420636f6e74696e75696e6720746f206d6f76650a6c6f6e676572207468616e206576657220706f737369626c6502002e2e2e0a57756f6f6f6f6f6f68686868212121210a02030a020053535353535350494e4e4e4e4e4e4e4e494e4e4e4e4e4e472e2e2e02030a020053535353535350494e4e4e4e4e4e4e4e494e4e4e4e4e4e472e2e2e0a53535353535350494e4e4e4e4e4e4e4e494e4e4e4e4e4e472e2e2e0a53535353535350494e4e4e4e4e4e4e4e494e4e4e4e4e4e472e2e2e0a53535353535350494e4e4e4e4e4e4e4e494e4e4e4e4e4e472e2e2e0a53535353535350494e4e4e4e4e4e4e4e494e4e4e4e4e4e472e2e2e0a53535353535350494e4e4e4e4e4e4e4e494e4e4e4e4e4e472e2e2e0a53535353535350494e4e4e4e4e4e4e4e494e4e4e4e4e4e47212121004d6e756868682e2e2e0a0a4e6f7720796f7572204772656174205370696e2041747461636b2077696c6c206c6173740a02036c6f6e676572207468616e206265666f726502002c206d792073747564656e742102030a02005468697320697320746865207472757468206f66207468652073776f7264210a0a5768656e20796f7520646f75627420616e6f746865722c20796f75206272696e670a636c6f75647320696e746f20746865206d696e64277320736b696573210a436f6d6d697420796f757273656c6620746f2074686520626c61646520616e6420737475666621004d617374657279206f66207468652073776f7264206973206d6173746572790a6f662074686520736f756c210a4920616d206b696e6461206c696b6520616c6d6f73742074686520626573740a73776f7264736d616e20696e20487972756c652c2002024772656174626c6164650200210a0203547261696e696e6720020077697468206d652077696c6c20746f74616c6c79206368616e67650a796f75722073776f726420736b696c6c20666f726576657220616e64207374756666210a486d6e3f0a0a447564652e2e2e204920646f6e2774207468696e6b20796f75277265206576656e0a726561647920746f20747261696e2068657265210a436f6d65206261636b207768656e20796f752068617665206c6561726e6564207468650a02016869676865737420746563686e697175650200206f66207468652073776f726421004973207468617420736f3f205468656e20796f7520676f206e6f77212053686f6f2100507265737320616e6420686f6c6420796f75722073776f726420627574746f6e2e0a4275696c6420757020656e6f75676820706f7765722e0a5468656e2c2072656c6561736520796f7572206465737472756374697665206d6967687421210a54686174277320616c6c20746865726520697320746f2069742100427265616b2074686520706f7473207769746820796f75722073776f7264210a54686174277320616c6c2100457175697020746865205065676173757320426f6f747320616e6420796f75720a73776f72642c20616e64207468656e2072756e206c696b65206372617a7921210045717569702074686520526f632773204361706520616e64207468652073776f726421210a4a756d7021210a5768656e20796f7520726561636820796f7572206a756d702773207065616b2c0a7377696e67207468652073776f7264212054686174277320616c6c2100526f6c6c2077697468200c0820616e64200c032c20616e64207468656e207377696e670a796f75722073776f726420617320796f7520737461727420746f2067657420757021005768656e20796f757220686561727473206172652066756c6c2e2e2e7377696e6720796f75720a73776f7264207769746820616c6c20796f7572206d6967687421005768656e20796f752068617665206f6e6c79206f6e65206865617274206c6566742e2e2e0a0a5377696e67207468652073776f7264207769746820746865206c6173740a6f6620796f75722077616e696e6720737472656e6774682100506572666f726d2061205370696e2041747461636b2e2e2e616e6420686974207468650a627574746f6e2120416761696e2120416761696e2120416761696e2120416761696e2100 - -ffffffffffffffffb8000000b900000073010000a0010000d20100002002000021020000750200009b020000b5020000f9020000fa02000070030000b9030000ff0300005c040000910400005f0500009d050000db050000190600009f060000f106000035070000490700008d0700008e070000d40700000b080000530800008008000081080000e5080000280900007a090000b5090000b6090000910a0000c60b00006e0c0000fa0c0000800d0000f00d00004f0e0000ac0e0000ad0e000000 - -0301fc496620796f752077616e7420746f20676574206163726f737320746865207377616d702c0a796f75206e65656420746f206265207377696674206f6e20796f757220666565742e0a596f75206b6e6f772c206120667269656e64206f66206d696e65206d616b65732073686f65730a696e20487972756c6527732073686f652073686f702e0a49276d2070726574747920737572652068652063616e206d616b650a02015065676173757320426f6f747302002e2e2e000301fb576f756c6420796f75206c696b6520746f20667573650a4b696e73746f6e65732077697468206d653f000301fe596f7520646f6e27742077616e7420746f3f20596f7520646f6e27740a6576656e2077616e7420746f207472793f000301ff5765206469642069742120546865792066697420706572666563746c792120596f75206b6e6f770a776861742074686174206d65616e733f20476f6f64206c75636b20666f722075732100000301f74920666f756e6420736f6d6520616d617a696e676c7920726172652002014b696e73746f6e6502000a70696563657321204174206c656173742c2049207468696e6b2074686579277265207261726521000301f84f683f2120596f752077616e7420746f2066757365207069656365733f2059617921000301f9596f7520646f6e27742077616e7420746f207472793f000301fa4c6f6f6b20617420746861742120412070657266656374206d61746368210a492063616e2774207761697420746f2073656520776861742068617070656e732100000301fe486d6d6d2e2e2e204920666f756e6420612002014b696e73746f6e652002007069656365206f7665720a74686572652e0a49277665206e65766572207365656e20616e797468696e67206c696b652069742e0a4974206d7573742062652061207265616c6c792072617265206f6e652e2e2e000301ff596f752077616e7420746f2066757365207069656365733f20446f20796f75207468696e6b0a796f752068617665206f6e652074686174206d617463686573206d696e653f000301fd4d6d6d6d2e2e2e20492067756573732069742773206861726420746f2066696e640a61206d6174636820666f722073756368206120726172652070696563652e2e2e000301fb486d6d21204974206669747320706572666563746c79210a0a486f7720636f756c6420796f7520686176652061207069656365207468617420666974730a6d7920756c7472612d72617265206f6e6520736f2077656c6c213f000301fb49207468696e6b20746869732069732061207265616c6c790a726172652002014b696e73746f6e65207069656365020021000302054865792c206c6f6f6b20617420746869732002014b696e73746f6e652070696563650200210a4861766520796f752065766572207365656e206f6e65206c696b6520746869733f0a576861743f20596f7520646f6e2774206b6e6f77207768617420612002014b696e73746f6e650a706965636502002069733f2057656c6c2c2074656c6c20796f7520776861742e2e2e0a57687920646f6e277420796f7520636f6d65206261636b20616e6420736565206d650a7768656e20796f7520676574206f6e652c204f4b3f0003020057686174277320746861743f20596f752077616e7420746f200203667573650a4b696e73746f6e652070696563657302002077697468206d653f000301fa492067756573732069742773206861726420746f2066696e640a61206d6174636820666f722073756368206120726172652070696563652e2e2e000301f9576861612120497420666974732120596f75206d7573742068617665206861640a61207265616c6c7920726172652070696563652c20746f6f21000301fd576861743f20596f7520646f6e2774206b6e6f77207768617420612002014b696e73746f6e650a706965636502002069733f2057656c6c2c2074656c6c20796f7520776861742e2e2e0a57687920646f6e277420796f7520636f6d65206261636b20616e6420736565206d650a7768656e20796f7520676574206f6e652c204f4b3f000301fa412076697369746f722120486f7720726172652e2e2e204920646f6e27742068617665206d7563680a746f206f666665722c2062757420796f752772652077656c636f6d6520746f20737461792e0003020057686174277320746861743f20596f752077616e7420746f20667573650a02014b696e73746f6e652070696563657320020077697468206d653f20537572652e00030201596f75277265207175697474696e673f000302025765206469642069742120546865792066697420706572666563746c79210a4d617962652049276c6c2067657420736f6d65206c75636b2066696e616c6c79210000030205596f75206d6f7665642074686520726f636b20666f72206d653f204772656174210a492074686f7567687420492764206e6576657220676574206f75747369646521000301fe4f682c20796f752077616e7420746f20667573652077697468206d653f0a4e6f77206c657427732073656520686572652e2e2e000301fb49206775657373206974276c6c2062652061207768696c65206265666f726520492066696e640a61207069656365207468617420666974732074686973206f6e652e2e2e000301fc4c6f6f6b21205468657920666974210a486f77206c75636b792120416d617a696e672c206576656e2100000301f957686174277320796f75722070726f626c656d3f0a0a4d6d6d6d2120596f752772652073746172696e67206174206d7920616d617a696e676c790a726172652002014b696e73746f6e6520706965636502002c206172656e277420796f753f21000301fa486f77206461726520796f752120596f752077616e7420746f20667573650a6d792070726563696f75732002014b696e73746f6e6520706965636502003f21000301fd506865772e2e2e205377656574206c6974746c652002014b696e73746f6e6520706965636502002e0a49742773204f4b2e204e6f206f6e65277320676f6e6e61206875727420796f752e2e2e0f0b000302024168682e2e2e2054686579206669742e2e2e0a4d7920706f6f72206c6974746c652002014b696e73746f6e6520706965636502002e2e2e00000302034865792120596f757220636c6f746865732e2e2e20596f75206d7573742062650a68756d616e21204f682c2049206a757374204c4f56452068756d616e2066617368696f6e210a49206a7573742063616e27742068656c70206665656c696e6720746861742068756d616e730a617265206d6f726520736f7068697374696361746564207468616e2002024d696e69736802002e0a596f75206b6e6f772c2049206576656e207468696e6b20736f6d65206f746865720a02024d696e6973682002006665656c2074686174207761792c20746f6f2e2e2e000302025761746572206973206c69666520666f722002034372656e656c204265616e7302002102030a0a020054686520626c7565206265616e732067726f77207768656e20796f7520706f75720a020177617465722002006f6e207468656d2e2e2e0a4275742074686520677265656e206265616e73206c696b650a02014d742e204372656e656c204d696e6572616c20576174657202002e02030a02014d742e204372656e656c204d696e6572616c20576174657220020063616e20626520666f756e640a6f6e6c7920696e206120737072696e672068657265206f6e2002024d6f756e74204372656e656c02002e0a57656c6c2c207265616c6c792c2074686520737072696e6720697320636c6f73657220746f0a7468652062617365206f662002024d6f756e74204372656e656c02002e000302015468657365200202736f6c6469657220737461747565730203200200686572652077657265206275696c740a627920746865204d696e69736820616765732061676f20746f2068656c702068756d616e732e0a49742773206b696e64206f662061207365637265742c20627574207468657265277320610a73776974636820696e7369646520746861742002037475726e73207468656d206f6e206f72206f666602002e00030201476f2067657420746865200201666c69707065727320020066726f6d207468652002024d696e6973680a656c64657220020077686f206c6976657320696e20746865206c6962726172792e0a54686579276c6c206d616b6520697420736f20796f752063616e207377696d0a7468726f75676820746865207761746572207769746820656173652e0003020443616e20796f7520736f6c76 - -gUnk_089F4555:: @ 089F4555 -@ replacing .incbin "baserom.gba", 0x009f4555, 0x4081 -.data 65206d7920726964646c653f0a0a020353706c6973682c2073706c6173682c2074686520736f756e64206f662077617465722e0a4865206c6976657320696e2074686520616e7377657220686f7573652e02000a4920776f6e64657220696620796f75276c6c206d656574206d7920667269656e643f000302040203412066656172736f6d652c20756e667269656e646c792066656c696e652e2e2e0a54686520616e73776572206c6976657320686572652102000a596f75206469642077656c6c20746f20636f6d652074686973206661722e0a506c656173652074616b6520746869732e0003020402034d616e2c20776f6d616e2c206f72206d6964646c653f0a4865206c6976657320696e2074686520616e7377657220686f7573652e02000a4920776f6e64657220696620796f75276c6c206d656574206d7920667269656e643f00030204020354686174206d656f77206973206d6967687479210a4865206c6976657320696e2074686520616e7377657220686f7573652e02000a4920776f6e64657220696620796f75276c6c206d656574206d7920667269656e643f00000301fb49206761766520796f75206d79206c6173742002014b696e73746f6e6520706965636502000a61207768696c652061676f21204275742049276c6c20676f206c6f6f6b20666f72206d6f72652e00 - -ffffffffffffffffffff2400000025000000d9010000970200004a030000a6030000380400007a040000c504000000 - -0301fc4f682c20686f2120412076697369746f722120486f772072617265210a0a42757420796f75206861766520666f756e64206d652c207468650a776973657374206f662074686520776973657374206f66207468652077697365210a596f7520776861743f20596f752077616e7420746f20656e746572207468650a020374656d706c6520796f752063616e2073656520696e20746865206c616b6502003f0a546865792063616c6c207468617420706c6163652074686520020254656d706c65206f660a44726f706c65747302002e0a4920686176652068656172642072756d6f72732074686174206f6e65204d696e6973680a61637475616c6c79206469642066696e6420612077617920696e2c206c6f6e672061676f2e2e2e0a54686174204d696e697368206973200202456c646572204c69627261726902002c20616e642068652069730a696e2073656d692d7265746972656d656e7420696e2074686520746f776e206c6962726172792e0a546865206c6962726172792073686f756c64206265206f70656e696e6720736f6f6e2e0a5065726861707320796f752063616e20676f2066696e642068696d2e000301fb5965732c2074686520656c646572204c696272617269206f6e636520666f756e6420616e0a656e7472616e636520746f207468652054656d706c65206f662044726f706c6574732e0a416e64206e6f772c206865206c6976657320696e2074686520746f776e206c696272617279210a0a416e64207468697320697320616c6c2074686520776973646f6d206f6620746865207769736573740a6f662074686520776973652049206861766520746f206f6666657220796f752100030205536f20796f75206d6574207769746820656c646572204c6962726172693f210a0a416e6420686520736169642074686174206865207265616c6c7920484153206265656e0a696e73696465206f66207468652054656d706c65206f662044726f706c6574733f0a49206b6e657720697421204f6e636520616761696e2c206d7920776973646f6d206861730a7375727061737365642074686520776973646f6d206f66207468652077697365737421000301fe492068617665206c6f7473206f66207769736520616e642074686f756768742d0a70726f766f6b696e6720696e666f726d6174696f6e2e2e2e0a427574206e6f7468696e6720666f7220796f75207269676874206e6f772e0003020348656c6c6f2120486f77206e69636520746f206861766520612076697369746f72210f0b0a0a4275742e2e2e49276d20686176696e6720736f6d652074726f75626c65210a0a54686579277665206368616e6765642074686520726f6f6d2061726f756e642c20616e640a6e6f7720492063616e27742067657420696e746f207468652066697265706c616365210003020254686579277665206368616e6765642074686520726f6f6d2061726f756e64210a49742773207465727269626c65206e6f772120536f2067617563686521000302035468616e6b20796f7521204e6f7720492063616e20636c696d6220696e207468726f7567680a7468652066697265706c61636520616e642067657420736f6d6520736c656570210000 - -ffffffffffffffffffffffffffff5c0000005d00000026010000dc01000093020000440300004503000009040000e4040000e5050000e6050000e7050000e80500008c060000d906000055070000140800009a080000dd0800003109000087090000ad090000ee09000000 - -57656c636f6d6520746f20746865206c696272617279210a0a5361792c206172656e277420796f7520536d6974682773206772616e64736f6e2c0a06003f0a486d3f2054686520626f6f6b73206d697373696e672066726f6d207468650a626f6f6b7368656c66206f6e20746865207365636f6e6420666c6f6f723f0a5965732c2074686579277665206265656e20636865636b6564206f757420666f720a71756974652061207768696c652e20546865792772652056455259206f766572647565210a0749020a0054616b652002014120487972756c65616e20426573746961727902002c20666f720a6578616d706c652e204265656e20676f6e6520666f7220616765732e0a436865636b6564206f757420627920020361206769726c207769746820612063617402002e205368650a7361696420736865206861642061206e6577206361742061742068657220686f7573652e0a57616e74656420746f206c6561726e206d6f72652061626f75742069742c20736865206469642e00546865206e657874206f76657264756520626f6f6b2069732e2e2e0a4c65742773207365652e2e2e0a41682c2079657321204f6620636f757273652e2e2e02014c6567656e64206f66207468650a5069636f72690200212049742773206265656e206f757420666f7265766572210a49742077617320636865636b6564206f7574206279206120736f6d65776861740a0203616273656e746d696e646564207363686f6c617202002c20492062656c696576652e2e2e00416e6420746865206c61737420626f6f6b207765207374696c6c206e6565640a69732002014120486973746f7279206f66204d61736b7302002e0a49207468696e6b2069742077617320636865636b6564206f7574206279200202486167656e02002c0a746865206d61796f722e0a486f7720636f756c64206865206b6565702061206c69627261727920626f6f6b0a736f206c6f6e672120486527732061207075626c6963206f6666696369616c21000048657921204c6f6f6b206174207468617421204f7572206c6f6e672d6c6f737420636f70790a6f662002014120487972756c65616e2042657374696172790200210a06002c2061726520796f752072657475726e696e670a7468697320626f6f6b3f21205468616e6b20796f7520736f206d756368210a492063616e277420626567696e20746f20646573637269626520686f77206d7563682049276d0a6c6f6f6b696e6720666f727761726420746f2070757474696e672074686973206261636b21004f68206d7920676f6f646e6573732c2077696c6c20796f75206c6f6f6b2061742074686174210a0a49742773206f757220636f7079206f662002014c6567656e64206f6620746865205069636f72690200210a49742773206265656e20636865636b6564206f757420666f7220736f206c6f6e67210a06002c20796f7520646573657276652061206d6564616c0a666f7220616c6c2074686973210a4920616d206d6f7665642e2e2e20446565706c792c20646565706c79206d6f7665640a627920746869732074686f7567687466756c20676573747572652100576f756c6420796f75206c6f6f6b20617420746861742120492063616e27742062656c696576650a6974212049742773206f757220636f7079206f662002014120486973746f7279206f66204d61736b730200210a54686174206d61796f72206f66206f7572732069732061207265616c207069656365206f660a776f726b2c2069736e27742068653f0a4974206d7573742068617665206265656e2071756974652061206368616c6c656e67650a746f206765742074686973206261636b2066726f6d2068696d2e0a596f7520617265206d79206e6577206661766f7269746520706572736f6e2c0a060021205468616e6b20796f7520736f206d7563682100000000596f75206b6e6f772c2006002c20796f75277665206e6f770a72657475726e656420616c6c206f66206f7572206f76657264756520626f6f6b73210a4e6f7720492063616e2066696e616c6c7920676574207468617420626f6f6b7368656c660a6f6e20746865207365636f6e6420666c6f6f7220696e206f72646572210a4865792c2002025374757267656f6e02002120426f6f6b7320746f207368656c76652121005965732c20796573212048657265204920616d212049276d2068657265212049276c6c20686176650a746865736520626f6f6b73207075742061776179206c69636b6574792d73706c697421000300db536f6d6574696d65732c20746865736520626f6f6b73206d6f7665206f6e2074686569720a6f776e212049277665207365656e2069742077697468206d79206f776e2074776f2065796573210a416e2720646f6e27742074656c6c206d652049276d206372617a79210a492061696e2774206372617a7921005361792c2002025374757267656f6e02002c206f6e20746865207365636f6e6420666c6f6f722c0a686173206265656e20616374696e672061206c6974746c6520737472616e67652e0a4865206b6565707320626162626c696e672061626f75742074686520626f6f6b730a6d6f76696e672061726f756e64206f6e207468656972206f776e210a446f20796f75207468696e6b206d61796265207765206861766520726174730a6f7220736f6d657468696e672075702074686572653f0049276d20696e20636861726765206f6620636865636b696e67206f757420626f6f6b732c0a736f2069742773206e6f74206d792070726f626c656d2e0a5374696c6c2c2049206665656c207265616c6c792062616420666f7220746865206769726c0a6f76657220746865726520696e20636861726765206f662072657475726e732e2e2e00466f6c6b7320646f6e277420636f6d65207570206865726520736f206f6674656e2e0a4920676574206120746f756368206c6f6e656c79206f6e206d79206f776e2e0057656c636f6d6520746f20746865206c696272617279210a0a48657921204172656e277420796f7520536d6974682773206772616e64736f6e2c0a06003f20456e6a6f7920796f75722062726f7773696e67210054686520626f6f6b7368656c76657320617265206261636b20696e206f72646572210a41682c2049206665656c20736f2e2e2e736f2e2e2e72656e65776564210a456e6a6f7920796f75722062726f7773696e672100576f6e646572207768617420492073686f756c6420636865636b206f757420746f6461792e004f6820686f20686f2120416c6c2074686520626f6f6b7320617265206261636b0a6f6e20746865207368656c766573212049736e2774206974206772616e64210000 - -ffffffffffffffffffffffffffa0000000a10000001802000019020000dd0200000a030000ab030000ca030000df030000f4030000e2040000f70400008f050000cc050000e1050000f60500000b0600002006000030070000450700005c08000071080000860800009b080000b0080000c5080000910a0000dc0a0000f10a0000060b00001b0b0000300b0000450b00005a0b00006f0b0000a20c0000140d00008a0d0000b50d00006e0e000000 - -0301fd4865792c206865792c20686579212054686973206973206e6f20676f6f64210a4e6f20676f6f6420617420616c6c210a5468652068756d616e732068617665200203636865636b656420736f6d6520626f6f6b730a6f7574206f6620746865206c6962726172790200210a5468616e6b7320746f207468656d2c206e6f6e65206f662075732063616e206765740a6261636b20746f200202456c646572204c69627261726902002e2e2e0a486f772077696c6c2068652067657420627920616c6c20616c6f6e653f0a49276d20736f20776f72726965642e2e2e0a49276d2073757265207468652002026c696272617269616e0200206b6e6f777320736f6d657468696e670a61626f75742077686572652074686f736520626f6f6b732077656e742e2e2e0a49207769736820492077657265206269672e205768792c204927642077616c6b2072696768740a757020616e642061736b206865722077686572652074686f736520626f6f6b732077656e742100000301fd4865792c206865792c2068657921204c697374656e20757021204c697374656e20676f6f64210a54686520626f6f6b7320617265206261636b206e6f77210a4974277320747275652120497427732074727565212048616861210a4e6f772077652063616e20676574206261636b20746f200202456c646572204c6962726172690200210a536f20796f752062726f756768742074686520626f6f6b73206261636b3f0a476f6f6420666f7220796f7521205468616e6b20796f75210a074a04000301fe506c656173652074616b65207468697320617320610a7369676e206f66206f7572207468616e6b7321000302004927642062657474657220676574206261636b20746f200202456c646572204c69627261726902000a6e6f7721204865276c6c20626520776f6e646572696e67207768657265204920616d2e0a457370656369616c6c79206e6f77207468617420492063616e20636c696d62206f766572207468650a626f6f6b732c2072696768743f2049206d65616e2c206974277320736f2065617379206e6f7721000302055468616e6b7320616761696e20666f7220796f75722068656c7021004b4f4249544f0f1f484f4e44414e410f1f303037004b4f4249544f0f1f484f4e44414e410f1f303038000301f757686174206120677265617420636f6d626f210a0a596f7527726520676f696e6720746f206d6565740a0202456c646572204c696272617269020020616e642002024a6f746f726902003f0a4f682c20616e6420686f772061626f7574204c6962726172692773206c6f6e672c0a626f72696e6720616476656e747572652073746f726965733f2048616861210a54616c6b2061626f757420746872696c6c696e67212048617220686172210a0a57656c6c2c20696620796f7527726520676f696e67206f7665722074686572652c0a6a75737420636c696d62206f7665722074686520626f6f6b7321004b4f4249544f0f1f484f4e44414e410f1f303130000301f857652063616e27742067657420757020746865207368656c662c20626563617573650a736f6d652068756d616e20636865636b6564207468617420626f6f6b206f7574210a427574206174206c6561737420776520646f6e2774206861766520746f206c697374656e20746f0a0202456c646572204c6962726172690200277320626f72696e67206f6c642073746f7269657321000301f94168682c206974277320736f206e69636520746f206861766520616c6c206d79206c6974746c650a626f6f6b7320696e206120726f77210f0b004b4f4249544f0f1f484f4e44414e410f1f303133004b4f4249544f0f1f484f4e44414e410f1f303134004b4f4249544f0f1f484f4e44414e410f1f303135004b4f4249544f0f1f484f4e44414e410f1f303136000302054920616d2002024a6f746f726902002c206f6e65206f662002024c696272617269020027732073747564656e7473210a0a416e6420746f20626520706572666563746c7920686f6e6573742c2049207468696e6b0a746861742002024c6962726172690200277320616476656e747572652073746f72696573206172652e2e2e0a0301fd546865206265737421210a4e6f2c207265616c6c79210a49206d61792062652061206d656e74616c206769616e742c20627574204920686176650a74686520626f6479206f66206a75737420612074696e79204d696e697368206c61642e2e2e0a546861742773207768792049207265616c6c792061646d697265207374726f6e6720666f6c6b21004b4f4249544f0f1f484f4e44414e410f1f303138000301fd4f682120536f20796f75207061737365642074686520747269616c20616e640a72657475726e65642077697468200202456c646572204c6962726172690200277320666c6970706572733f0a49276d20736f206a65616c6f7573210a49276d206e6f74206d75636820666f72206578657263697365206d7973656c662e2e2e0a42757420696620796f7527726520676f696e67206f6e20616e20616476656e747572652c0a74686572652773206e6f206f6e652062657474657220746f206c6561726e2066726f6d210a41682c2074686174200202456c646572204c696272617269020021204865277320736f206d616e6c79210a536f2062726176652120416e6420736f2066756c6c206f66204649524521004b4f4249544f0f1f484f4e44414e410f1f303230004b4f4249544f0f1f484f4e44414e410f1f303231004b4f4249544f0f1f484f4e44414e410f1f303232004b4f4249544f0f1f484f4e44414e410f1f303233004b4f4249544f0f1f484f4e44414e410f1f3032340003020d576f686f686f686f21205768617420627573696e657373206861766520796f750a77697468206f6c642002024c69627261726902003f0a42757421204265666f726520796f752061736b2c20706c6561736520616c6c6f77206d650a746f20696e74726f64756365206d7973656c662e0a576f686f686f686f21204168656d2c20616865656565656d2e2e2e0a0a4d79206e616d652069732002024c69627261726902002c20616e6420492068617665206c697665640a6d616e79206c6f6e672079656172732e0a536f206d616e792c20696e20666163742c20746861742049277665207261746865720a666f72676f7474656e20686f77206f6c64204920616d210a427574207768656e20492077617320796f756e672c206f682c0a492063726f73736564206d6f756e7461696e20616e6420736561210a4920686164206d616e7920677265617420616476656e74757265732c20627574206e6f770a492073746179206865726520616e642074656163682073747564656e74732e0a5965732c204920656e6a6f79206d79206c696665206f662071756965742073747564792e0a49206861766520736f206d616e792073746f726965732079657420746f2074656c6c2e2e2e0003020d5965732c20796f752061726520737065616b696e6720746f2074686520776f726c642d0a66616d6f75732074726561737572652d68756e7465722002024c696272617269020021004b4f4249544f0f1f484f4e44414e410f1f303237004b4f4249544f0f1f484f4e44414e410f1f303238004b4f4249544f0f1f484f4e44414e410f1f303239004b4f4249544f0f1f484f4e44414e410f1f303330004b4f4249544f0f1f484f4e44414e410f1f303331004b4f4249544f0f1f484f4e44414e410f1f303332004b4f4249544f0f1f484f4e44414e410f1f3033330003020d576f686f686f686f21204f683f0a412076697369746f72206166746572206d616e79206c6f6e67207765656b73210a4576656e2002024a6f74617269020020686173206265656e206177617920736f206c6f6e672c0a492776652067726f776e20616c6d6f73742e2e2e6c6f6e656c792e0a2e2e2e42757420776861742069732069743f205768617420646f20796f75206e6565643f0a0a486d3f20596f752077616e7420746f2076697369742074686520020254656d706c65206f660a44726f706c65747302003f0a566572792077656c6c2e2e2e20596f75206172652074686520666972737420737563680a627261766520706572736f6e20696e2061206c6f6e67207768696c65210a5374616e64206f6e2074686520636c6f76657220696e2066726f6e74206f66206d65210003020d48726d6d3f0a57686174277320746869733f2057686174277320746869733f0a596f752077616e74206d6520746f2063757420746f2074686520636861736520616e640a74656c6c20796f752061626f75742074686520020254656d706c65206f662044726f706c65747302003f0003020d416c6c2072696768742c20616c6c2072696768742e20596f75206b69647320746f6461792e2e2e0a4e6f2070617469656e636520666f7220616e206f6c64206d616e2e0a57656c6c2c206a757374207374616e642072696768742074686572652c206c696b650a4920746f6c6420796f752100576f686f686f210a4e6f772e2e2e4f50454e2c20736563726574206d7973746572792070616e656c212100576f686f686f21205761736e277420746861742066756e3f0a4e6f77207468656e2e2e2e0a4974277320757020746f20796f7520746f20706173732074686973200203747269616c200200736166656c790a616e64207265636f766572207468652002016974656d200200796f7520726571756972652e0a4f682c20776861742066756e21204920646f20736f206c6f766520746865207265616c0a6e697474792d677269747479206f6620616476656e747572696e67210003020d57656c6c20646f6e652c20696e6465656421205768792c20796f7527726520616c6d6f73740a617320737072792061732049207761732061742074686174206167652100 - -ffffffffffffffffffffffa4000000a5000000bd000000f000000022010000520100007d0100009f010000c5010000dc010000f40100003602000065020000a0020000bd020000d6020000190300006003000078030000a6030000f1030000350400006a040000a6040000e80400003b0500004d0500005f050000710500008305000095050000a70500004106000093060000d4060000ca07000062080000cc080000150900004e0900006009000000 - -0301f7576861742061206e69636520736d656c6c2e2e2e000301fb49206c696b652074686f73652072656420686174732074686520466f72657374204d696e6973680a776561722e2e2e000301f849206c696b6520746865736520626c756520686174732074686520546f776e0a4d696e69736820776561722e2e2e000301fd546865200202466f72657374204d696e69736802000a6861766520636f6d6520666f7220612076697369742e000301ff49206b6e6577207468652063697479206c69666520776f756c64206265206578636974696e67210003020145766572796f6e65206865726520697320736f20726566696e65642e2e2e0003020249206765742068756e677279206a7573742066726f6d207468617420736d656c6c21000301fc492077616e74206120726564206861742e2e2e000301fc492077616e74206120626c7565206861742e2e2e000301ff4f7572207265756e696f6e207769746820746865200202466f72657374204d696e69736802002069730a7374696c6c20696e2066756c6c207377696e67210003020157652772652067657474696e67206d6f726520726566696e6564206a7573740a4245494e47206865726521000302014d6179626520492073686f756c64206a7573742073746179206865726520616e640a6e6576657220676f206261636b20686f6d652e2e2e0003020557686174206120776f6e64657266756c20736d656c6c2e2e2e000302035765206a757374206c6f76652062726561642e2e2e00030202536f6d6574696d6573204920736e65616b206f666620776974682061206c6974746c650a6e6962626c65206f66206c6566746f7665722062726561642e0f0b0003020054686520627265616420020257686561746f6e2002006d616b65732068617320676f740a746f20626520746865206265737420627265616420696e20487972756c6521000301fb49736e277420020250697461200200637574653f000301ff4576657279206f6e65206f66207468656972206272656164732069730a736f2064656c6963696f757321000301fe54686f73652074776f206e65776c797765647320617265206265696e67206d6f72650a6672657368207468616e20746869732066726573682d62616b6564206272656164210f0b000301fa497427732073756368206120746872696c6c20636f6d696e6720757020686572652066726f6d0a62656c6f772c206a757374206c696b65205053484f4f4f4f21000301fd466577657220616e642066657765722070656f706c652061726520636f6d696e670a746f206275792062726561642e2e2e000301fc492063616e27742062656c6965766520686f772064616e6765726f75730a6974277320676f7474656e2061726f756e6420686572652e2e2e000301fb4e6f77206d6f7265207468616e20657665722c20776520616c6c206e65656420746f206765740a736f6d6520676f6f642d6c75636b206272656164210f0b000301fe49206c696b6520656174696e67206c6566746f766572732c206275742049206a75737420776973680a627573696e657373207765726520676f696e672062657474657220666f72207468656d2e2e2e004b4f4249544f0f1f484152490f1f303235004b4f4249544f0f1f484152490f1f303236004b4f4249544f0f1f484152490f1f303237004b4f4249544f0f1f484152490f1f303238004b4f4249544f0f1f484152490f1f303239004b4f4249544f0f1f484152490f1f303330000301f8486d6d6d2120492073656521204f682c2074686174206d616b65732073656e7365210a2e2e2e48756d616e20626f6f6b732061726520736f20696e746572657374696e67210a416e6420746861742067757920020244722e204c6566740200206c6976696e6720646f776e2074686572650a68617320677265617420746173746520696e2072656164696e67206d6174657269616c21000301f949276d20616c6d6f737420646f6e652077697468207468697320626f6f6b2e20492073686f756c640a676f206e616220616e6f74686572206f662074686520646f63746f72277320626f6f6b732e000301fa4920776f756c64206c6f766520746f207265616420736f6d657468696e672061206c6974746c650a6d6f726520726f6d616e746963206e6578742e2e2e000301fb486f21204861212048657921210a0a506865772e2e2e20492077616e7420746f20020372657475726e207468697320626f6f6b2062790a64726f7070696e6720697420646f776e2062656c6f7702002e0a4974277320696d706f737369626c6520776974686f757420736f6d650a65787472612077656967687420686572652e2e2e0a427574206d792062726f7468657220697320736f20627573792077697468206120626f6f6b0a6f6620686973206f776e207468617420686520776f6e27742068656c70206d65206f7574210a4d6179626520492063616e20646f20697420696620492074727920616761696e2e2e2e000301fc49207468696e6b206d792062726f7468657220697320676f696e6720746f2066696e6973680a7468617420626f6f6b20686527732072656164696e6720736f6f6e2e0a49206265742049276c6c206861766520746f2072657475726e2074686174206f6e652c20746f6f2e0a4775657373204927642062657474657220707574206f6e2061206c6974746c652077656967687421000301fe4d792062726f74686572206c6f7665732072656164696e6720626f6f6b73210a0a416e642049206c6f76652070757368696e67206d792062726f74686572277320626f6f6b730a6f666620746865207261667465727320746f2072657475726e207468656d21000302014974277320612062697420647573747920757020686572652c206875683f0a4d6179626520492073686f756c6420646f2061206c6974746c6520636c65616e696e672e2e2e000302025468616e6b7320666f7220636c65616e696e67207570210a4e6f772c20616c6c2074686174206475737420697320676f6e65210f0b004b4f4249544f0f1f484152490f1f303339004b4f4249544f0f1f484152490f1f30343000 - -ffff5c0000006d0000007101000031020000d3020000200300008a030000ce0300009504000031050000d40500000206000044060000af06000084070000260800009a0800001d090000a7090000380a0000490a0000df0a0000120b0000 - -53484943594f0f1f5445490f1f303030004168657272726d20686572726d6d6d210a4920616d200202486167656e02002c206d61796f72206f662074686973206661697220746f776e210a4d61796f72732061726520757375616c6c79207665727920696d706f7274616e7420616e640a6275737920666f6c6b2c2049276c6c206861766520796f75206b6e6f772e2e2e0a4275742049207374696c6c2068617665206120686f6262792c206f6620636f75727365210a4920636f6c6c65637420756e757375616c206d61736b73210a49206a757374206c6f7665207468656d210a546865792772652062656175746966756c210a53696d706c79206d61676e69666963656e742c20492074656c6c20796f75210041686572726d210a0a5965732120546861742773206d652c200202486167656e02002e0a4920616d206d61796f72206f66207468697320746f776e2e0a57686174277320746861743f20596f752077616e74206120626f6f6b3f0a02014120486973746f7279206f66204d61736b7302003f0a416e6420796f7520736179204920636865636b6564206974206f75742c0a646f20796f753f205965732c20696e646565642049206469642e2e2e0a4f7220776169742e2e2e2044696420493f004168682c20796f75207365656d20746f206861766520666f756e642074686520626f6f6b2c0a7361666520616e6420736f756e6420616e6420696e2066696e65207368617065210a427574206f6e6c79206265636175736520796f75206c697374656e656420746f206d790a6d61736b73206c696b65206120676f6f64206c6974746c6520626f792c2072696768743f0a576172206861722068617220686172210049276d20676f696e6720746f206861766520746f207069636b20757020766f6c756d6520322e0a54686174206c61737420626f6f6b20776173206a7573742067657474696e6720676f6f6421000301fe54686520706572736f6e206c6976696e67206865726520697320746865206d61796f722c0a7665727920696d706f7274616e7420796f75206b6e6f772e0a446f65736e277420697420616c6c206a75737420736f756e6420736f2e2e2e6f6666696369616c3f000301f8546865206d61796f72206c696b657320737472616e6765206d61736b732e0a536f6d6574696d65732c206865206576656e206d616b657320686973206f776e2e000301fd546865206d61796f7220746f6f6b206f666620666f7220686973200202636162696e206279207468650a6c616b65020020636c75746368696e672061200201626f6f6b02002e205765207361772068696d20676f2e2e2e0a4275742061667465722074686520636865737420776173206f70656e65642c207468650a726f616420746f2002024d696e69736820576f6f647302002077617320626c6f636b65642e0a596f7520776f6e27742062652061626c6520746f20676574207468726f7567682e000301f65768656e207468652002026d61796f7220020063616d65206261636b2c206865206469646e27740a686176652074686174200201626f6f6b200200616e796d6f72652e0a49276d2073757265206865206a757374206c656674206974206174206869732002026c616b65736964650a636162696e02002e20486527732070726574747920666f7267657466756c206c696b6520746861742e000301fc596f752077616e7420746f20676f20746f2074686520636162696e0a627920746865206c616b653f0a57656c6c2c206c6574206d65206a757374206d61726b0a69742068657265206f6e20796f75722002016d617002002e0a4572722e2e2e20596573212054686572652e204974277320726967687420686572652e0a596f752073686f756c642062652061626c6520746f2066696e64206974206e6f772e000301fd536f20746865200201626f6f6b200200574153206174207468652002026c616b6502002c207468656e2e000301f941682c20627574204920646f206c6f7665206f757220616273656e746d696e6465640a6f6c64206d61796f722e204865277320612066696e65206d616e2e00596f75206b6e6f772c207468657365206d61736b73207365652065766572797468696e670a7468617420676f6573206f6e20696e206d792070726976617465206c6966652e0a4d6179626520796f752073686f756c64206a7573742061736b206d79206d61736b73210a0049207468696e6b20492776652066696e616c6c7920676f74206120676f6f642067726173700a6f6620686f77207468696e67732072756e20696e200202487972756c6502002e0a5468696e67732072756e20736f20736d6f6f74686c792061726f756e6420686572652c0a616e64204920686176656e2774206576656e20646f6e652061207468696e67210a4920776f6e64657220686f77206d75636820626574746572207468697320706c6163650a776f756c6420626520696620492061637475616c6c792064696420616e797468696e67210041686572726d2121205468617420686f6c6520696e207468652067617264656e206c656164730a746f2061207368656c746572206f6620736f7274732e0a4275742069742773206e6f74206c696b652049276d20747279696e6720746f2072756e206f66660a616e642073617665206d7973656c6620616c6f6e65206f7220616e797468696e67210a4a757374206b656570207468617420696e206d696e64210a0049276d207468696e6b696e67206f66207761797320746f20696e637265617365207468650a6c69627261727927732062756467657420746f20627579206d6f726520626f6f6b732e0a457370656369616c6c7920746865206f6e65732061626f7574206d61736b732c0a796f75206b6e6f772e0049206d6179206c6f6f6b20736f6d65776861742069646c6520746f20796f752c0a627574206e6f2c20736972210a492077696c6c20626520776f726b696e67207465727269666963616c6c7920686172642061730a736f6f6e20617320796f75206c656176652e0a596f752063616e20626574206f6e20746861742120486f686f2100546865736520617265207468652074696d65732074686174207265616c6c792074657374206d790a6d6574746c652061732061206d61796f722c20492074656c6c20796f752e0a487972756c65206973206d7920726573706f6e736962696c69747920746f20746865206c6173742e0a45766572796f6e6520746f20746865207368656c7465727321004d6f6e73746572732061726520636f6d696e67210a45766572796f6e65207374617920696e646f6f7273210a4f682c207468617420646f65736e2774206170706c7920746f20796f752c206d7920626f79210a596f7520676f206765742027656d2c200600210a596f75722073776f726420616e6420627261766572790a77696c6c20736176652074686520646179210053484943594f0f1f5445490f1f303139004920686f7065204920646f6e277420736f756e64206c696b652049276d206272616767696e672c0a62757420492068617665206120636162696e2061742002024c616b652048796c696102002e0a49742773206120676f7267656f7573206c6974746c6520706c616365207768657265204920676f0a746f20656e6a6f79206d7920686f6262792c206d61736b206d616b696e672e000301f954686174200202636162696e20627920746865206c616b6502002069730a7265616c6c79207175697465206661722e000301fd546865206d61796f7220776f756c646e2774206265206e6561726c7920736f0a636861726d696e6720696620686520776572656e277420736f2063617265667265652e00 - -ffffff400000004a000000c9000000300100003a01000044010000ce02000033030000c40400006f060000e70600002a070000c7080000ae090000d90900002c0a0000 - -4c4546540f1f303030005768617420697320616c6c206f662074686973213f0a49276d20627573792c20646f6e277420796f752073656520746861743f0a446f206e6f742064697374757262206d792072657365617263682120496620796f7520686176650a6e6f20627573696e6573732c206265676f6e652120596f75206865617264206d652100576861742c206875683f0a4120626f6f6b3f2046726f6d20746865206c6962726172793f0a41682c207965732e2e2e6f6620636f757273652e2049206b6e657720746869730a64617920776f756c6420636f6d652e20506c656173652c20636f6d6520696e2e004c4546540f1f303033004c4546540f1f303034004920616d20612072657365617263686572206f66205069636f7269206c6567656e640a616e64206c6f72652e204d79206e616d6520697320020344722e204c65667402002e0a596f7527726520686572652061626f7574207468617420626f6f6b2c0a02014c6567656e64206f6620746865205069636f726902002c206172656e277420796f753f0a57656c6c2c2049206861746520746f2073617920746869732c20627574204920686176656e27740a7365656e20697420696e207365766572616c20646179732e0a506572686170732061206d697363686965766f7573206c6974746c65206d6f7573650a6861732074616b656e2069743f0a57656c6c2c2049276d2073757265206974277320696e207468697320686f7573650a736f6d6577686572652e2049206a75737420646f6e2774206b6e6f772077686572652e0a4275742049276d20766572792062757379207269676874206e6f772c20736f207768790a646f6e277420796f75206a757374206c6f6f6b20666f7220697420796f757273656c663f004120626f6f6b2066656c6c2077697468206120225448554421222061206c6974746c650a7768696c652061676f2e0a49742067617665206d65207375636820612073686f636b20746861740a6d7920686561727420736b6970706564206120626561742100596f7520666f756e6420616e642072657475726e65642074686520626f6f6b20666f720a6d652c2064696420796f753f2049276d207665727920677261746566756c2e0a486572652c206c6574206d652074656c6c20796f7520736f6d657468696e670a696e746572657374696e67206173207468616e6b732e0a596f75207365652c20746865204d696e69736820646964206e6f7420616c77617973206c6976650a696e206f757220776f726c642e0a4e6f2c20746865792063616d65207468726f75676820612073656372657420706f7274616c0a6d616e7920616765732061676f2066726f6d20746865697220776f726c6420746f206f757273210a42757420646f6e27742074656c6c20616e796f6e6521204974277320612076616c7561626c650a626974206f66206b6e6f776c656467652074686174206f6e6c792049206b6e6f77210a416e64204920676c65616e6564206974206f6e6c7920616674657220686f757273206f660a73747564792066726f6d20616e20696e6372656469626c79206f6c6420626f6f6b2e00536f20796f7527766520636f6d6520746f2068656172206d6f72652061626f7574207468650a4d696e6973682c206861766520796f753f0a57656c6c2c20492063616e20706172742077697468206f6e65206d6f7265207469646269742c0a4920737570706f73652e2e2e20497420636f756c642062652075736566756c2e0a54686520706f7274616c206c696e6b696e6720757320746f20746865204d696e6973680a776f726c64206f70656e73206f6e6c79206f6e6365206576657279203130302079656172732e0a54686174206d65616e7320746865204d696e6973682068657265206e6f77206172650a64657363656e64616e7473206f662074686f73652077686f2063616d65206265666f72652e0a546861742773207269676874212054686f7365204d696e6973682063616d6520686572650a3130302079656172732061676f2c206f72206576656e206c6f6e6765722061676f210a4e6f7720746861742074686520706f7274616c206973206f70656e207468697320796561722c0a70657268617073206e6577204d696e6973682077696c6c20636f6d65207468726f7567682e2e2e00546865206d6f7265204920737475647920746865204d696e6973682c2074686520636c6f7365720a49206665656c20746f207468656d210a4974277320616c6d6f7374206173206966207468657920776572652072696768740a686572652077697468206d652c20616c6c207468652074696d652e2e2e0049206e65766572206c65617665206d7920686f7573652c20776865746865722074686572650a617265206d6f6e7374657273206f757473696465206f72206e6f7421004865792c20646f20796f75206b6e6f772074686520636c75657320746861742072657665616c0a746865206c6f636174696f6e206f66207468652074726561737572653f0a020343726f737320746865206272696467652074686174207370616e730a74686520726170696420666c6f772e2e2e0a5468726f75676820746865206c616e64206f660a7468652066656172736f6d652062656173742e2e2e0a556e74696c20796f752072656163680a746865206d697374792066616c6c732e2e2e0a54686520747265617375726520736c65657073206f6e20746865206f7468657220736964650a6f66207468652073656372657420656e7472616e63652074686572652e2e2e02000a546865792073617920697427732061206d61676963616c20746f6f6c207468617420616c6c6f77730a6576656e206c6974746c652070656f706c6520746f207075736820626967207468696e6773210a4163636f7264696e6720746f20746865206c6567656e642c20796f752772650a737570706f73656420746f2073746172742066726f6d207468697320686f75736521000301fb4168682e2e2e20576861742073686f756c64204920646f3f2053686f756c64204920737461790a6f7220676f3f204966204920676f2c20746865726520636f756c642062652e2e2e0a2e2e2e57686174277320746861743f0a0a596f7527766520616c726561647920666f756e642074686520020162726163656c6574200200746861740a6d616b6573206f6e65207374726f6e673f210a416868682c2049206b6e65772069742120492764206265656e207374756d706564206f6e0a7468617420666f7220736f206c6f6e67212049206b6e657720492764206c6f7365206f757421000301fc596f7527726520736f206272617665210a49207265616c6c792072657370656374207468617421000301fd4861766520796f75206265656e207573696e672074686520020162726163656c6574200200746861740a6d616b657320796f75207374726f6e673f204d75737420636f6d6520696e2068616e647921004f682c206c6f6f6b2120596f7527766520666f756e642069742120436f756c6420492061736b0a796f7520746f2072657475726e2074686174200201626f6f6b200200666f72206d652c206c61643f00 - -ffffffffd0000000d10000000f010000430100004b0100007b010000c801000001020000ed020000ad0300004504000090050000f5050000f6050000f70500004906000067060000cc06000080070000810700008c07000097070000ba0700000c080000200800002a0800007f080000b7080000e608000033090000b0090000030a0000470a0000880a0000d00a0000410b0000760b0000c00b00002b0c0000800c0000190d0000810d0000820d0000830d0000c10d0000f90d00000d0e00003a0e00007a0e0000c80e0000260f0000760f000000 - -4865792e0a5768617420646f20796f752077616e743f0a4d79207369737465722773206e6f7420686572652e0a5368652773206174207363686f6f6c2e00596f7520686176652061207765697264206861742e2057686572652063616e0a4920676574206f6e65206f662074686f73653f0041616161726621004d7920646f672773207265616c20736d6172742e0a416e642061206c6974746c652073706f696c65642c20746f6f2e0002024a756c696574746102002c2066726f6d206e65787420646f6f722c2077656e740a6261636b - -gUnk_089F85D6:: @ 089F85D6 -@ replacing .incbin "baserom.gba", 0x009f85d6, 0x9b4 -.data 20686f6d652e2e2e0a4275742049276c6c207365652068657220746f6d6f72726f77210f0b004d79207369737465722773206261636b206e6f772e0a4920677565737320736865277320737570706f73656420746f207374617920696e2e000300d141776f6f6f2120486f74212041776f6f210a02035468652066697265706c61636520697320746f6f20686f742102000a4d79206d617374657220776f6e277420636f6d6520686f6d652c202763757a20686527730a68656164206f766572206865656c7320666f7220746865206769726c206e65787420646f6f722e0a427574207768656e2068652070757473207468652066697265206f75742c207468656e0a736f6d6574696d6573206d69636520636f6d65206f75742e2e2e0a492068617465206d6963652c20736f20656974686572207761792c0a49276d206e6576657220686170707921000300d14974277320746f6f20686f7421204172662e2e2e0a02035468652066697265706c61636520697320746f6f20686f742e2e2e02000a4e6f7720746865726520617265206576656e206d6f72652070656f706c6520696e20686572652c0a616e6420697427732067657474696e6720746f6f20686f7420746f2062656172210a576861742077696c6c2069742074616b6520746f20636f6f6c207468697320706c6163650a646f776e213f2050616e742c2070616e742c2070616e7421000300d15468616e6b732c20617266210a596f7520707574206f75742074686520666972652e0a4275742049276d207374696c6c206d6966666564206174206d79206d6173746572210a0a492063616e27742062656c6965766520686f77206c6f6e672068652773206265656e0a68616e67696e67206f7574207769746820686973206769726c667269656e64210a417266212041726621004875683f2041200201626f6f6b20020066726f6d207468652002026c69627261727902003f0a0a02014120487972756c65616e20426573746961727902002c206973207468617420746865206f6e653f0a596561682c204920636865636b6564206974206f75742061207768696c652061676f2e0a596f752063616d6520616c6c20746869732077617920746f206765742069743f0a576f772120596f75277265206f6e6520646564696361746564206c696272617269616e210a4275742e2e2e204920646f6e2774206b6e6f7720686f7720746f2074656c6c20796f750a746869732c206275742069742773206261636b206174206d7920686f7573652e0a576f756c6420796f75206d696e6420676f696e6720746865726520746f206765742069743f0a49206a7573742063616e2774206c65617665207269676874206e6f772c207365652e2e2e00546865792073617920746865206b696e672773206265656e207765697264206c6174656c792e0a0a427574207468617420646f65736e2774207265616c6c79206861766520616e797468696e670a746f20646f2077697468206f7572206c6f76652e2e2e00000049276d2077726974696e672061206c6574746572207269676874206e6f772c20736f20490a646f6e2774206861766520616e792074696d6520746f20706c6179207769746820796f752e0a536f7272792e00596f752072657475726e6564206d7920626f6f6b3f0a5468616e6b732100546865792073617920746865206b696e672773206265656e207765697264206c6174656c792e0a0a427574207468617420646f65736e2774207265616c6c79206861766520616e797468696e670a746f20646f2077697468206f7572206c6f76652e2e2e00596f75206f7567687420746f206265206361726566756c207768656e20796f752772650a72756e6e696e672061726f756e642120596f7527726520617766756c6c792074696e79210a416e64206e6f7420616c6c20646f677320616e64206361747320617265206e6963652c0a6c696b65206d652e20576f6f66210a536f6d65206f66207468656d206d69676874206576656e2074616b6520612073776970650a617420796f752c206172662120526172662100004d494e4b410f1f303139004d494e4b410f1f303230004f682c2068656c6c6f2e0a4d792062726f746865722773206174207363686f6f6c2e0049276d2077726974696e672061206c6574746572207269676874206e6f772c20736f20490a646f6e2774206861766520616e792074696d6520746f20706c6179207769746820796f752e0a536f7272792e000300d24d656f7772792d6d656f777777212121000300d2537373737321004d792066616d696c7920697320616c6c207665727920636c6f73652e2053616d6520776974680a0202526f6d696f020027732066616d696c79206e65787420646f6f722c20746f6f2e0a48656520686565210f0b004d792062726f746865722773206261636b2e204e6f772c2068652773206e6f740a616c6c6f776564206f757420616e796d6f72652e2e2e0044656172204d6f6d2c0a476f6e6520746f204a756c6965747461277320686f7573652e204261636b20736f6f6e2e0003020249742773207265616c6c792064616e6765726f75732075702061686561642120596f750a63616e2774206a75737420636861726765207468726f756768207265636b6c6573736c7921000302024865792c20492776652068656172642061626f757420796f752e2e2e20536f20796f752772650a676f6e6e6120676f2061686561642c2061726520796f753f0a57656c6c2c206f6e7761726420746f20676c6f7279207468656e210a4a75737420646f6e277420646965206f75742074686572652c204f4b3f00030202596f75206d616465206974207468726f75676820746861742064656e206f66206576696c0a616e642063616d65206261636b20616c6976653f210a416d617a696e67212057686f6f212057686f6f21004920636f6d652066726f6d20612066617261776179206c616e642e20596f750a63616e2074656c6c206279206d7920636c6f7468696e672c2063616e277420796f753f005468697320706c6163652069736e277420736f20626164206f6e636520796f75206765740a7573656420746f2069742e2049206c696b6520697420686572652e00496e207468697320636f6f6c20636c696d6174652c206d7920636c6f74686573206172650a61206c6974746c65206f6e2074686520756e70726f7465637469766520736964652e0049276d207468696e6b696e672061626f75742063616c6c696e67206d792066616d696c790a6f76657220736f6f6e2e0a4c6976696e67207769746820796f75722066656574206f6e207468652067726f756e640a6973206e6f7420736f206261642c204927766520646563696465642e00536f20796f75277665206265656e20746f206d7920 - -gUnk_089F8F8A:: @ 089F8F8A -@ replacing .incbin "baserom.gba", 0x009f8f8a, 0x27f6 -.data 686f6d65746f776e3f0a497427732067726561742c2069736e27742069743f004d6f6e737465727320636f756c642061747461636b20617420616e792074696d652e0a4d6179626520492073686f756c646e27742063616c6c206d792066616d696c79206f7665722e000301ff49207265616c6c79206c696b65207468697320686f7573652e2054686973206973207468650a6265737420706c61636520696e20746869732077686f6c652068756d616e20746f776e210a492077616e7420746f2073746179206865726520666f72657665722e000301ff5468697320706c6163652069732067657474696e672061206c6974746c652072756e2d646f776e2e0a49276d207468696e6b696e672061626f75742072656275696c64696e672074686520706c6163652e000301ff57656c636f6d65210a0a54686973206973206d79206e657720686f757365212041682e2e2e20446f6e27740a796f75206a757374206c6f76652074686174206e65772d686f75736520736d656c6c3f0a416e64204920776173204a555354207468696e6b696e672061626f7574206275696c64696e670a61206e657720686f7573652c20736f207468697320697320677265617421000301ff496d6167696e65206d6f76696e672066726f6d2061206d75737479206f6c640a6d757368726f6f6d20746f206120666162756c6f757320686f757365206c696b652074686973210a49742773206c696b65206120647265616d20636f6d6520747275652100000057656c6c2c204920737570706f73652049276420626574746572206765742064696e6e65720a737461727465642120486d6d20686d20686d6d6d210f0b004f6f6f682c2073636172792e2e2e2057656c6c2c206173206c6f6e67206173206e6f7468696e670a656c73652068617070656e732e2e2e005768617427732061206d6f73732d737465723f004974277320736f20626f72696e67206e6f74206265696e670a61626c6520746f20676f206f7574736964652e0003020054686520626f7373206d69676874207365656d20726f7567682c2062757420686527730a61207265616c20736f6674792061742068656172742e2e2e0003020054686520626f73732069732061207265616c20726566696e65642066656c6c612c2072696768743f0a416e79626f64792077686174277320736d6172742063616e207365652064617421000302004920776f756c64206c696b6520746f2061707072656e7469636520746f2074686520626f73732c0a746f6f2c2062757420686520626172656c79206576656e206e6f7469636573206d652e2e2e0a4974277320736f207361642e00030200546865792063616c6c2068696d2050756e6368204d75746f68206265636175736520686527730a6c696b652061207265616c2070756e6368792066656c6c6120616e6420616c6c206461742e0003020054686520626f737320697320746865206e756d6265722d6f6e65206275696c64657220696e0a746f776e2e20596f75206e6565642061206275696c64696e672c20796f75207365652068696d2e00 - -ffffffffffffffffff980100003002000080020000cc020000ef02000054030000b70300008d040000a3040000000500002a050000ab050000fb0500001a060000350600006b06000092060000340700004f070000d00700001e08000071080000c10800000809000030090000b0090000ff0900001b0a0000410a0000810a0000a50a00001d0b0000780b0000ef0b0000400c0000680c0000a80c00001e0d0000630d0000930d0000c10d0000140e0000660e0000190f0000750f0000df0f0000071000002c10000052100000e6100000491100006c11000094110000f211000044120000ed1200006e130000d2130000031400001a14000056140000e31400003f15000053150000901500000616000024160000ba1600000e1700008e170000db1700006d180000ce180000e51800000f19000098190000c5190000001a0000841a0000fe1a0000451b0000461b0000c51b0000481c0000c51c0000211d0000b41d00004c1e00001f1f0000ae1f00009220000064210000dd2100002b2200009e22000055230000562300005723000058230000592300005a2300005b230000 - -576520646f206f7572206265737420746f206d616b6520746869732061206e6963652c0a636f7a7920706c6163652c2077686572652070656f706c652063616e2072656c61782e0a4d7920696465616c2063616665206973206120706c6163652077686572652065766572796f6e650a63616e206a757374206c657420697420616c6c2068616e67206f75742e2041682c20796561682e004d7920696465616c2063616665206973206120706c6163652077686572652065766572796f6e650a63616e206a757374206c657420697420616c6c2068616e67206f75742e2041682c20796561682e005765206865617220616c6c20736f727473206f6620696e746572657374696e6720676f737369700a696e20686572652e2053746f702062792066726f6d2074696d6520746f2074696d652e004d616b6520796f757273656c6620617420686f6d652e2e2e0a4865656865652e2e2e004920616d2061206c6169642d6261636b2c2065617379676f696e67206b696e640a6f66206775792e204e6f742061206361726520696e2074686520776f726c642e0a416e6420746861742773206a75737420746865207761792049206c696b65206974210048652077686f2063616e20656e6a6f792061206e69636520637570206f660a737465616d696e6720686f742074656120617420686973206c6569737572652e2e2e0a6973207472756c79206d6173746572206f6620686973206f776e2074696d652e004c6574206d652074656c6c20796f7520736f6d657468696e6720746861740a6d6967687420636f6d6520696e2068616e647920736f6d656461792e0a596f752063616e206d6f766520626f6f6b636173657320616e642073747566662e0a54727920746f2002037075736820616e642070756c6c20646966666572656e74207468696e677302002e2e2e0a416674657220616c6c2c20796f7527726520796f756e672120596f752073686f756c640a626520747279696e6720616c6c206b696e6473206f66206e6577207468696e677321204861210049276d206f6e6520736d61727420636f6f6b696521004368656572732120596161792120436865657273210a526169736520796f7572206d696c6b20666f72206120746f617374210a4920776f6e646572207768617420492073686f756c64206861766520666f720a64696e6e65722e2e2e004920776f6e646572207768617420492073686f756c64206861766520666f720a64696e6e65722e2e2e0045766572796f6e65277320736f2072656c6178656420686572652e0a546861742773206120676f6f64207468696e672e0a4d7920696465616c2063616665206973206120706c6163652077686572652065766572796f6e650a63616e206a757374206c657420697420616c6c2068616e67206f75742e2041682c20796561682e004d7920696465616c2063616665206973206120706c6163652077686572652065766572796f6e650a63616e206a757374206c657420697420616c6c2068616e67206f75742e2041682c20796561682e0057656c636f6f6f6f6f6f6d65210a4e69636520746f2073656520796f75210054616b652061206c6f6164206f66662e0a4865656865652e2e2e0054686973206973206d79207370656369616c2074696d652e2e2e0a0a4a757374206d6520616e64206d79206375707061206a6f652e0057656c6c2c204920646f6e27742061637475616c6c79206472696e6b20636f666665652e2e2e004974207365656d73207468652002026b696e6720020068617320636f6d6d616e64656420616c6c206f660a7468652067756172647320746f2073656172636820666f72206d6167696320706f7765722e0a466f6c6b732073617920746861742074686973202202016c6967687420666f7263650200222077696c6c0a6772616e7420616e7920776973682c20627574204920646f6e2774206275792069742e2e2e0049206b6e6f7720616c6c206b696e6473206f662073747566662e004368656572732120596161792120436865657273210a526169736520796f7572206d696c6c6b20666f72206120746f617374210a43616e2774207765206a7573742068617665207468652073616d65207468696e6720666f720a64696e6e657220746f6e69676874207468617420776520686164206c617374206e696768743f004920776f6e6465722069662077652063616e2774206a7573742068617665207468652073616d650a7468696e6720666f722064696e6e657220776520686164206c617374206e696768742e2e2e000301f854686973206361666520697320736f20627573792e20596f752063616e206865617220616c6c0a736f727473206f662073747566662066726f6d20616c6c207468652070656f706c6520686572652e000301f849742773206a75737420726967687420666f722070656f706c65206c696b652075732077686f0a746872697665206f6e2074686520687573746c6520616e6420627573746c652c206875683f000301f8497427732068617264206e6f7420746f206765742073746570706564206f6e207768656e0a74686572652061726520736f206d616e792070656f706c6520686572652e000301f8416e64206164756c74732063616e2774206576656e207365652075732c2072696768743f0045766572796f6e65277320736f2072656c6178656420686572652e0a546861742773206120676f6f64207468696e672e0a4d7920696465616c2063616665206973206120706c6163652077686572652065766572796f6e650a63616e2072656c61782c2072656c61782c20616e642072656c617820736f6d65206d6f72652e004d7920696465616c2063616665206973206120706c6163652077686572652065766572796f6e650a63616e2072656c61782c2072656c61782c20616e642072656c617820736f6d65206d6f72652e004865792074686572652c20737765657479210a57656c636f6d6521004a7573742073697420616e79776865726520796f75206c696b652c0a6865656865652e2e2e0054616c6b696e67206f6e6c7920746f206f6e6573656c662e2e2e0a0a697320616e20657865726369736520696e20656c6f7175656e742073696c656e63652e004920776f6e6465722069662074686174206d616b657320616e792073656e73652e2e2e005468652002026b696e6720020077617320616c7761797320737563682061206e696365206d616e2c0a627574206c6174656c792c2068652773206265656e207375636820612062727574652e2e2e0a4920776f6e64657220776861742068617070656e656420746f2068696d3f0a486f686f686f2e2e2e004d617962652061206d6f6e7374657220637261776c656420696e2068697320736b696e20616e640a6973207061726164696e672061726f756e6420617320746865207265616c2002026b696e670200210a486f686f686f686f21004368656572732120596161792120436865657273210a526169736520796f7572206d696c6b20666f72206120746f617374210a576f756c642074686579206576656e206e6f746963652069662049206d616465207468650a73616d65207468696e6720666f722064696e6e657220746f6e696768743f004920776f6e6465722e2e2e0a0a576f756c642074686579206576656e206e6f746963652069662049206d616465207468650a73616d65207468696e6720666f722064696e6e657220746f6e696768743f000301f857656c636f6d65206261636b2c20686f6e6579210a476f6f6420746f2073656520796121000301f8546865206f6c64206c61647920696e2066726f6e74206f66207468697320686f7573650a6472696e6b73206e6f7468696e6720627574206d696c6b2e0045766572796f6e65277320736f2072656c6178656420686572652e0a546861742773206120676f6f64207468696e672e0a4120706c61636520796f7520646f6e277420657665722077616e7420746f206c656176652e0a546861742773206d792069646561206f66206120676f6f6420636166652e004120706c61636520796f7520646f6e277420657665722077616e7420746f206c656176652e0a546861742773206d792069646561206f66206120676f6f6420636166652e0057656c636f6d65206261636b2c20796f75210a596f75277265206d79206661766f7269746520637573746f6d65722100536f20796f75277665206265656e20676f6f64206c6174656c793f0a476f6f6f6f642c206865656865652e2e2e00596f752063616e2074656c6c20616c6c206f6620796f757220646565706573740a7365637265747320746f20612077616c6c2e0a5468652077616c6c2077696c6c206e657665722074616c6b206261636b2e00427574204927766520666f756e6420696620796f752074616c6b20746f2027656d2072696768742c0a77616c6c732077696c6c206769766520757020616c6c20736f727473206f6620736563726574732100596f7527726520676f696e6720746f20746865200202526f79616c2056616c6c657902003f0a492068656172207468617420706c616365206973206861756e7465642e2e2e0a427574207468657265277320612073656372657420656e7472616e636520746861742077696c6c0a67657420796f752074686572652066726f6d200202487972756c65204669656c6402002e0a49206d65616e2c20746861742773207768617420492776652068656172642e005468617420706c616365206973206461726b206576656e20696e207468652064617974696d652e0a0a416e6420796f75206b6e6f7720686f772067686f737473206c6f76650a746865206461726b2120486f686f686f686f2e2e2e004368656572732120596161792120436865657273210a526169736520796f7572206d696c6b20666f72206120746f617374210a4865792c2049206b6e6f772e2e2e2057687920646f6e2774207765206a75737420686176650a6d696c6b20666f722064696e6e65723f005768792063616e2774207765206a75737420686176650a6d696c6b20666f722064696e6e65723f000301f84f682c206865792074686572652e2e2e0a476f6f6420746f2073656520796f752e000301f85765204d696e69736820616c6c2067657420616c6f6e6720766572792077656c6c2e0045766572796f6e65277320736f2072656c6178656420686572652e0a546861742773206120676f6f64207468696e672e0a4120706c61636520776865726520796f7527726520736f2066616d696c69617220746861740a796f7520646f6e2774206576656e206861766520746f206f726465722e0a546861742773206d792069646561206f66206120676f6f6420636166652e004120706c61636520776865726520796f7527726520736f2066616d696c69617220746861740a796f7520646f6e2774206576656e206861766520746f206f726465722e0a546861742773206d792069646561206f66206120676f6f6420636166652e00486f7764792c20686f6e2e0a476c616420746f2073656520796f7520616761696e2e004172656e277420796f75206c6f6f6b696e67206d616e6c79206e6f77210a4865656865652e2e2e0041637475616c6c792c2074686572652069732061205645525920474f4f4420726561736f6e0a492063616e6e6f74207374616e642e2e2e0a5768617420776f756c6420796f7520646f206966204920746f6c6420796f7520746861743f00576861742069732074727574683f0a0a5768656e20776520756e6465727374616e6420746869732c207468656e2077652077696c6c0a636f6e71756572206576656e2074696d6520697473656c662e2e2e00546865020220736f75726365206f662074686520666c6f7702003f2057656c6c2c207468617427730a656173792e20497427732074616c6b696e672061626f7574207761746572210a54686520776174657220666c6f77696e6720696e746f200202746f776e200200616e6420696e746f0a7468652002026c616b65200200616c6c20636f6d65732066726f6d207468652073616d6520706c6163652e0a486f686f686f682e2e2e00496620796f75277265206c6f6f6b696e6720666f7220746865200202736f75726365206f660a74686520666c6f7702002e2e2e0a57656c6c2c20796f75276420626574746572206d616b65207375726520796f752772650a77656c6c20657175697070656420697320616c6c2049276d20736179696e272120486f686f686f21004368656572732120596161792120436865657273210a526169736520796f7572206d696c6b20666f72206120746f617374210a4920776f6e6465722e2e2e646f207765206576656e206e65656420746f206561740a64696e6e657220617420616c6c3f004920776f6e6465722e2e2e646f207765206576656e206e65656420746f206561740a64696e6e657220617420616c6c3f000301f857656c636f6d652c2073756761722070696521000301f84974277320736f20636f6e76656e69656e7420746f206c69766520696e20612068756d616e0a686f7573652061732061204d696e6973682e0045766572796f6e65277320736f2072656c6178656420686572652e0a546861742773206120676f6f64207468696e672e0a4120706c61636520776865726520796f752063616e2072656c617820646573706974650a77686174277320676f696e67206f6e206f7574736964652e0a546861742773206d792069646561206f66206120676f6f6420636166652e004120706c61636520776865726520796f752063616e2072656c617820646573706974650a77686174277320676f696e67206f6e206f7574736964652e0a546861742773206d792069646561206f66206120676f6f6420636166652e00486565656579210a57656565656c636f6d652100596f75277265207475726e696e6720696e746f20612066696e65206c6974746c65206d616e2c0a6172656e277420796f7521204865656865652e2e2e0054686f756768204920616d206e6f6e64657363726970742c20796f75206e6f74696365206d650a616e642074616c6b20746f206d652e0a54686174206d616b6573206d6520746865207072697a652c20616e6420796f750a617265207468652077696e6e6572206f662074686174207072697a652100536f6d656461792c20796f752077696c6c20756e6465727374616e642e0049206865617220612067756172642077686f20776173206c6f6f6b696e6720666f72207468650a02016c6967687420666f726365200200676f74207468726f776e20696e207468652064756e67656f6e210a5768792c207468652002026b696e67200200697320686172646c7920776f72746879206f66206265696e670a63616c6c656420226e6f626c652220616e796d6f7265210042757420492073686f756c64206265206361726566756c2c206c6573742049206265206a61696c65640a6d7973656c66206a75737420666f7220637269746963697a696e67207468652002026b696e67020021004368656572732120596161792120436865657273210a526169736520796f7572206d696c6b20666f72206120746f617374210a49742773206e6f74206c696b652074686520776f726c6420776f756c6420636f6d6520746f20616e0a656e642069662049206469646e2774206d616b652064696e6e65722c2072696768743f0049742773206e6f74206c696b652074686520776f726c6420776f756c6420636f6d6520746f20616e0a656e642069662049206469646e2774206d616b652064696e6e65722c2072696768743f0045766572796f6e65277320736f2072656c6178656420686572652e0a546861742773206120676f6f64207468696e672e0a4120706c61636520776865726520796f7520636f756c642068617070696c79206c6574207468650a776f726c64206372756d626c652061726f756e6420796f752e0a546861742773206d792069646561206f66206120676f6f6420636166652e004120706c61636520776865726520796f7520636f756c642068617070696c79206c6574207468650a776f726c64206372756d626c652061726f756e6420796f752e0a546861742773206d792069646561206f66206120676f6f6420636166652e00486579207468657265210a446f696e272077656c6c3f00576527726520636f756e74696e67206f6e20796f752c20796f756e67206d616e210a486565686565210045766572797468696e672077697468206120626567696e6e696e670a616c736f2068617320616e20656e642e0a546f2070757420697420616e6f74686572207761792c20616c6c207468696e6773206d6f76650a746f7761726420746865697220656e642e2e2e0a4576656e2066726f6d20746865206d6f6d656e74207468657920626567696e2e0054686520656e64206973206e6561722e0a466f72206d652c2061732077656c6c20617320666f7220796f752e000202487972756c6520436173746c65020020697320636f766572656420696e206461726b6e6573732e0a546869732069732074686520656e642e0049206e6576657220696d6167696e656420736f6d657468696e67206c696b6520746869730a776f756c642068617070656e20696e206d79206c69666574696d652e0a4920776f6e646572206966207468652002025069636f726920020077696c6c2073686f772075700a616e642068656c70207573206f6e636520616761696e2e2e2e004368656572732120596161792120436865657273210a526169736520796f7572206d696c6b20666f72206120746f617374210a49206e65766572206b6e65772074686174206661696c696e6720746f206d616b650a64696e6e657220776f756c642068617665207375636820636f6e73657175656e636573210049206e65766572206b6e65772074686174206661696c696e6720746f206d616b650a64696e6e657220776f756c642068617665207375636820636f6e73657175656e6365732100004a7573742074727920667573696e672002034b696e73746f6e6520706965636573020020776974680a6c6f7473206f662070656f706c652e0a5468657265206172652061206c6f74206f662070656f706c65206f75742074686572650a6c6f6f6b696e6720666f7220736f6d656f6e6520746f206675736520776974682e00596f7527642062652073757270726973656420746f2066696e642077686f2d2d616e640a776861742d2d796f752063616e20020366757365204b696e73746f6e657320020077697468210a596561682c20796f7527766520676f742061206c6f74206f6620667573696e6720696e0a796f7572206675747572652c2070616c2e2e2e0049207265636f6d6d656e64207669736974696e67200203706c6163657320796f752776650a616c7265616479206265656e02002e0a596f75206d6179207468656e2062652061626c6520746f2066757365204b696e73746f6e650a70696563657320696e2074686f736520706c616365732c20796f75206b6e6f773f00596f752063616e20676574207370656369616c206974656d7320627920667573696e670a02034b696e73746f6e65207069656365730200210a446f6e2774206d697373206f7574206f6e20746865206f70706f7274756e697479210054686572652773206120020267726f7570206f66206c6f76656c7920796f756e67206c61646965730a02007669736974696e6720487972756c652e2e2e0a4d617962652049276c6c206765742061206368616e636520746f2074616c6b20746f207468656d0a69662049206f6666657220746f20667573652002034b696e73746f6e652070696563657302002e204865682e00492068656172207468657265277320612077616c6c20696e2002024d696e69736820576f6f647302000a7769746820612073706f7420666f7220612002034b696e73746f6e6520706965636502002e0a49276d207375726520796f752063616e2066696e64206f7468657220706c616365730a776865726520796f752063616e20706c616365204b696e73746f6e65207069656365732e00446f20796f75206b6e6f77206f6620746865200202476f726f6e204361766502003f204974277320610a74756e6e656c207468617420746865200202476f726f6e732002006172652064696767696e672e0a416e6420696620796f752063616e2067657420616c6c207468652077617920746f207468650a63617665277320656e6420616e6420706c61636520612002034b696e73746f6e6502002e2e2e0a57656c6c2c2077687920646f6e27742049206a757374206c657420796f75207472792069740a666f7220796f757273656c66210049206865617220796f752063616e20667573652002034b696e73746f6e652070696563657302000a776974682074686520020267686f7374200200696e20746865200202526f79616c20437279707402002e0a4f72206174206c6561737420736f204920686561722e2049276d20746f6f207363617265640a746f2066696e64206f757420666f7220737572652e00596f752063616e277420616c77617973206a757374206368617267652073747261696768740a616865616420746f206e657720706c6163657320696e206c6966652c20796f75206b6e6f772e0a596f75206e65656420746f20676f206261636b20746f20706c6163657320796f752776650a616c7265616479206265656e20616e64207265666c656374206f6e207468696e67732e0a57686f206b6e6f77733f2054686174207175696574207265666c656374696f6e206d61790a6769766520796f752061206368616e636520746f20020366757365204b696e73746f6e657302002100596f75206b6e6f772c20667573696e672002034b696e73746f6e652070696563657302002063616e0a67657420796f75206d6f7265207468616e206d65726520020152757065657302002e2e2e0a49742063616e2063616c6c206e65772070656f706c6520746f206120706c616365206f720a6576656e206368616e676520746865207761792074686520746f776e206c6f6f6b732e0a416e6420616c6c2074686f7365207468696e67732063616e206c6561640a746f2068617070696e6573732061732077656c6c2c2072696768743f0041726520796f7520656e6a6f79696e6720667573696e672002034b696e73746f6e650a70696563657302003f0a467573696e672063616e206272696e672068617070696e65737320746f20796f7520616e640a796f757220667573696e672062756464792120546861742773207768617420492073617921004920776f6e64657220776861742068617070656e7320696620796f75206675736520616c6c0a6f6620746865204b696e73746f6e6573206120706572736f6e20697320686f6c64696e672e2e2e000202487972756c6520436173746c650200206861732066616c6c656e20746f207468650a6461726b6e6573732e2e2e0a4920737570706f73652074686973206973206e6f2074696d6520746f20626520667573696e670a02034b696e73746f6e652070696563657302002c2069732069743f004e6f6e73656e736521204d61796265207765206e656564206974206e6f77206d6f72650a7468616e2065766572206265666f7265210a467573696e672002034b696e73746f6e652070696563657302002063616e206272696e670a70656f706c652068617070696e657373210a54686973206973207468652074727565206d6f7469766520666f7220667573696e672c206d790a667269656e6421204e6f74205275706565732c206275742068617070696e657373210000000000000000 - -ffffffffffffffffffffffffffffffff000d0000000000000000000000000000 - -gUnk_089FB780:: @ 089FB780 -@ replacing .incbin "baserom.gba", 0x009fb780, 0xf44 -.data 1004100468044e05ee05bf06680468046804680410046804680410044e0568046804680410041004100468041004680410041004b807c50705080e0810042a08680410041004100410044608100410041004100468049108100410041004df081004ff0810041004100410041004100407091e09680466091004050a390a430a710a10041004860aa90aa90ac60aea0a020b020b1004100410041004170b080b410b4d0b5f0b6b0b720b810b8b0b10041004910b1004100410041004100410041004100468046804100410041004990b1004cd0be10b1004020c1004100410041004100410041004100410041004100410041004100410041004100410041004100410041004100410041004100410041004100410044d0c5f0c10047f0c10041004100410041004100410041004860c10041004c60c10041004100410041004100410046804680410041004680410041004100410041004100410041004680410041004100410041004100410041004100410041004100410041004100410041004100410041004100410041004100410041004100410041004d30c100410041004dc0c100410041004100410041004100410041004100410041004100410041004100410041004100410041004100410041004100410041004100410041004100410041004100410041004100410041004100410041004100410041004100410041004100410041004100410041004100410041004100410041004100410041004100410041004100410041004100410041004100410041004100410041004100410041004100410041004100410041004e10c1004100410041004100410041004100410041004100410041004100410041004100410041004100410041004100410044e05100410041004100410041004100410041004100410041004100410041004100410041004100410041004100410041004100410041004100410041004100410041004100410041004100410041004100410041004100410041004100410041004100410041004100410041004100410041004100410041004100410041004100410041004100410041004100410041004100410041004100410041004100410041004100410041004100410041004100410041004100410041004100410041004100410041004100410041004100410041004100410041004100410041004100410041004100410041004100410041004100410041004100410041004100410041004100410041004100410041004100410041004100410041004100410041004100410041004100410041004100410041004100410041004100410041004100410041004100410041004100410041004100410041004100410041004100410041004100410041004100468041004100468041004100410041004000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000102030000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000040506000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001020300000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000040506000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000010708090a0b0c0d0e0f00000010101010000000000000000000000000000000000000000000000000001111121310111213100000000000000000000000000000000000141415161718191a1b000000000000001c1c000000000000000000000000000000000000000000000000011d011e0000000000000000000000000000000000000000000000000101010100000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001f20212223242526272800292a1f2b2c2d2e2f30310000000013101012131313101032333435363738393a3b133c19193d3d000000000000000000000000000000000000000013101012131313101032333435363738393a3b133c19193d3d00000000000000001011111011111011110000000000000010111110111110111100000000000000111010101010111100000000000000003e3e3f3e3e3e000000000000003e0015404001151515404001151501151501151512131312131312131301151501151501151501151501151511010101151501151501151515404015404015404001151501151511010141424241424241424243434444434341424241424241424243000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000004245454142424142424641464142424046404642454541424241424242454541424241424200004700480049004a004b000000000000000000000000000000000000000000000000000000004c4040400000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000004d4e4e4d4d00000000004f50515252534f505152525300000000000017545556555457571754555655545757000000000000000000000000111001100111100110011110011001000000000000461558595959590115000000000000000000000000000000000000000000000000000040115a5b5b5b5b121000000000000000000000000000000000000000005c5d5d5e5f606162636464655c66626700000000000000000000000000000000000000006868696a6b6b6b6c6d6d6e000000000000000000000000001111111111111111110000000000000000000000001515151515151515151515000000000000000000000000000000000000000000000000000000000000006f6f6f0000000000000000001213131213131213130000000000000000001310101310101310100000001310101300000015404015404001151500000000000070717273747570000000101111100000131213124e4d4e4d00000000000000767778797a7b7c00000000000000000000000000000000000000000000000000000000000000000000000000000000000000007d007e0000000000000000000000767f768076804e000000000000818281838184850000000000008687867c860042000000000000000000000000000000000000000000000000000000000000000000000000808080174d4e174d4e174d4e174d4e174d4e174d4e1288764e898a8b4d8c8d8e120000000000001213131213131213138f900000000000000015404640464015919291929111110111011115110000000000000000000000000000000000888e00000000000000000000000000000000000000000000000000000093930000000000000000000000000000000000000000000000000000000000000000000000868686868686868686868686861311101294000000004142004241000000000000000000000000000000000000000000000000000000420000ff0000000000f9000000e9000000ea0000fff8000007ec000007ee00000000fff60000fdf8000000f8000005ee000002ec000000f10000fcf5000001f0000002f300f7000000f8000000f5000000f6000003f9000000fa000003f0000000f10000fef3000001f4000004f1000005f50000ec0c0000fff9000001f90000faf50000f9f40000f8f30000f9f20000faf10000fbf20000fcf30000fbf40000f7ea0000f7ec0000fbf80000faf70000fbf50000faf4000004ee000005ef000006f0000006f1000006ee000000f6f8f900f7f9fa00f7f8fb00f508f900f607fa00f608fa00f6fbf800f7fcfa00f7fafa00f6f8f601f7000001f50000020200000203000000fb000000fd000000fe0000fffd0cfc00fd0cfc00ff000000fc0000000007fe000000ff0000f9fe000000fe0000f9fd02f6000000f3000000f20000fbf9ef00fcf9ef00fdf8ef00fdf7ef00fcf8ef0001f1000001f0000001ef000001f20000fdfb0000fefa0000f9f70000fcf6000000ec00f400eb00f301eb01f401ec00f401ed00f501edfff500edfff5ffec00f4ffeb00f300eb01f400ed00f5ffedfff500f8faf901f8f9f901f8f7f701f8f7f600f800fc00f900fd01f800fc00f000f800faf7fc00fbf7fe00fcf6fe00fbf6fc00fcf7fc00fbf6fb00ef000004f3000008f7000008fb000008ff000004ff000000030000edfd0000edfe000000ee000000f0000007f4000007f3000007f5000005f3000004f20000000200000001000000ec0000f6ff000005e8000003ec00000004000000e8000000ed0000fff50000fef50000fffa0000fffb0000f0ed000000f40000 - - - - From 001bf63c6159ef4e281d44fd54c751fecf362705 Mon Sep 17 00:00:00 2001 From: theo3 Date: Sat, 8 Aug 2020 13:59:05 -0700 Subject: [PATCH 104/158] initializeLink.c OK --- asm/initializeLink.s | 174 ------------------------------------------- include/functions.h | 3 + include/structures.h | 3 +- linker.ld | 4 +- src/area.c | 11 +++ src/initializeLink.c | 68 +++++++++++++++++ src/sub_08052620.c | 7 -- src/sub_08052638.c | 10 --- 8 files changed, 85 insertions(+), 195 deletions(-) delete mode 100644 asm/initializeLink.s create mode 100644 src/initializeLink.c delete mode 100644 src/sub_08052620.c delete mode 100644 src/sub_08052638.c diff --git a/asm/initializeLink.s b/asm/initializeLink.s deleted file mode 100644 index 192b979f..00000000 --- a/asm/initializeLink.s +++ /dev/null @@ -1,174 +0,0 @@ - .include "asm/macros.inc" - .text - .syntax unified - - thumb_func_start InitializeLink -InitializeLink: @ 0x080524A8 - push {r4, r5, r6, lr} - bl sub_080784C8 - ldr r0, _08052510 @ =gUnk_03000B80 - movs r1, #0x70 - bl _DmaZero - ldr r6, _08052514 @ =gLinkState - adds r0, r6, #0 - movs r1, #0xb0 - bl _DmaZero - movs r0, #1 - rsbs r0, r0, #0 - adds r1, r6, #0 - adds r1, #0x40 - movs r2, #0x40 - bl _DmaFill32 - ldr r4, _08052518 @ =gLinkEntity - adds r0, r4, #0 - movs r1, #0x88 - bl _DmaZero - ldr r0, _0805251C @ =gRoomControls - str r4, [r0, #0x30] - ldr r1, _08052520 @ =gUnk_080FCAC8 - ldr r5, _08052524 @ =gScreenTransition - ldrb r0, [r5, #0xf] - adds r0, r0, r1 - ldrb r0, [r0] - strb r0, [r6, #0xc] - movs r0, #0x14 - bl CheckGlobalFlag - cmp r0, #0 - bne _080524FA - ldr r0, [r6, #0x30] - movs r1, #8 - orrs r0, r1 - str r0, [r6, #0x30] -_080524FA: - ldrb r0, [r5, #0xf] - subs r0, #2 - adds r2, r5, #0 - cmp r0, #0xa - bhi _080525C2 - lsls r0, r0, #2 - ldr r1, _08052528 @ =_0805252C - adds r0, r0, r1 - ldr r0, [r0] - mov pc, r0 - .align 2, 0 -_08052510: .4byte gUnk_03000B80 -_08052514: .4byte gLinkState -_08052518: .4byte gLinkEntity -_0805251C: .4byte gRoomControls -_08052520: .4byte gUnk_080FCAC8 -_08052524: .4byte gScreenTransition -_08052528: .4byte _0805252C -_0805252C: @ jump table - .4byte _08052558 @ case 0 - .4byte _08052576 @ case 1 - .4byte _08052564 @ case 2 - .4byte _080525C2 @ case 3 - .4byte _08052558 @ case 4 - .4byte _08052584 @ case 5 - .4byte _08052584 @ case 6 - .4byte _080525C2 @ case 7 - .4byte _080525A0 @ case 8 - .4byte _080525AC @ case 9 - .4byte _080525B8 @ case 10 -_08052558: - ldr r0, _08052560 @ =0x0000FF40 - strh r0, [r4, #0x36] - b _080525C0 - .align 2, 0 -_08052560: .4byte 0x0000FF40 -_08052564: - ldr r0, _0805257C @ =gLinkState - adds r0, #0x38 - movs r1, #0x10 - strb r1, [r0] - ldr r1, _08052580 @ =gScreenTransition - ldrb r0, [r1, #0xe] - lsls r0, r0, #2 - strb r0, [r4, #0x15] - adds r2, r1, #0 -_08052576: - movs r0, #0xe0 - strh r0, [r4, #0x24] - b _080525C2 - .align 2, 0 -_0805257C: .4byte gLinkState -_08052580: .4byte gScreenTransition -_08052584: - ldr r1, _08052598 @ =gLinkState - adds r2, r1, #0 - adds r2, #0x38 - movs r0, #1 - strb r0, [r2] - ldr r2, _0805259C @ =gScreenTransition - ldrb r0, [r2, #0xf] - adds r1, #0x39 - strb r0, [r1] - b _080525C2 - .align 2, 0 -_08052598: .4byte gLinkState -_0805259C: .4byte gScreenTransition -_080525A0: - ldr r0, _080525A8 @ =gLinkState - adds r0, #0x38 - movs r1, #1 - b _080525BE - .align 2, 0 -_080525A8: .4byte gLinkState -_080525AC: - ldr r0, _080525B4 @ =gLinkState - adds r0, #0x38 - movs r1, #3 - b _080525BE - .align 2, 0 -_080525B4: .4byte gLinkState -_080525B8: - ldr r0, _08052614 @ =gLinkState - adds r0, #0x38 - movs r1, #4 -_080525BE: - strb r1, [r0] -_080525C0: - ldr r2, _08052618 @ =gScreenTransition -_080525C2: - movs r0, #1 - strb r0, [r4, #8] - ldrb r1, [r4, #0x10] - movs r0, #0xa0 - orrs r0, r1 - strb r0, [r4, #0x10] - adds r3, r4, #0 - adds r3, #0x29 - ldrb r1, [r3] - movs r0, #8 - rsbs r0, r0, #0 - ands r0, r1 - movs r1, #4 - orrs r0, r1 - strb r0, [r3] - ldr r0, _0805261C @ =gUnk_02002A40 - adds r0, #0xaa - ldrb r0, [r0] - adds r1, r4, #0 - adds r1, #0x45 - strb r0, [r1] - ldrh r0, [r2, #0x10] - strh r0, [r4, #0x2e] - ldrh r0, [r2, #0x12] - strh r0, [r4, #0x32] - ldrb r0, [r2, #0xe] - strb r0, [r4, #0x14] - ldrb r1, [r2, #0x14] - adds r0, r4, #0 - adds r0, #0x38 - strb r1, [r0] - adds r0, r4, #0 - bl UpdateSpriteForCollisionLayer - adds r0, r4, #0 - movs r1, #1 - bl sub_0805EA2C - bl sub_08017640 - pop {r4, r5, r6, pc} - .align 2, 0 -_08052614: .4byte gLinkState -_08052618: .4byte gScreenTransition -_0805261C: .4byte gUnk_02002A40 diff --git a/include/functions.h b/include/functions.h index dcfcf70d..27050f59 100644 --- a/include/functions.h +++ b/include/functions.h @@ -41,6 +41,7 @@ extern void CopyPositionAndSpriteOffset(Entity*, Entity*); extern u8* GetSpriteSubEntryOffsetDataPointer(u32, u32); extern u32 LoadFixedGFX(Entity*, u32); extern void ExecuteScriptCommandSet(Entity*, void *); +extern void _DmaFill32(u32, void*, u32); // Unidentified extern void sub_0806ED78(Entity*); @@ -228,4 +229,6 @@ extern u32 sub_0806F3E4(Entity*); extern void sub_0804A7D4(Entity*); extern void sub_08033744(Entity*); extern void sub_0800417E(Entity*, u32); +extern void sub_080784C8(); +extern void sub_08017640(); #endif \ No newline at end of file diff --git a/include/structures.h b/include/structures.h index f3ca87d5..73bbd510 100644 --- a/include/structures.h +++ b/include/structures.h @@ -62,7 +62,8 @@ typedef struct { u8 playerState; u8 field_0xf; Coords playerStartPos; - u16 playerLayer; + u8 playerLayer; + u8 field_0x13; u8 field_0x14[0xa]; u16 field_0x20; u16 field_0x22; diff --git a/linker.ld b/linker.ld index d8c259aa..5199531f 100644 --- a/linker.ld +++ b/linker.ld @@ -448,9 +448,7 @@ SECTIONS { src/sub_08050024.o(.text); asm/code_08050038.o(.text); asm/sub_08052418.o(.text); - asm/initializeLink.o(.text); - src/sub_08052620.o(.text); - src/sub_08052638.o(.text); + src/initializeLink.o(.text); src/area.o(.text); src/modHealth.o(.text); src/modRupees.o(.text); diff --git a/src/area.c b/src/area.c index 4616248c..92a7ed24 100644 --- a/src/area.c +++ b/src/area.c @@ -1,6 +1,17 @@ #include "global.h" +#include "entity.h" extern u8 gArea; +extern u8 gUnk_08127D30[]; + +bool32 sub_08052620(u32 r0) { + return gArea == 0x81; +} + +bool32 sub_08052638(u32 r0) { + + return gUnk_08127D30[r0 * 4] == 0x81; +} u32 sub_08052654() { return (gArea >> 7) & 1; diff --git a/src/initializeLink.c b/src/initializeLink.c new file mode 100644 index 00000000..16be6528 --- /dev/null +++ b/src/initializeLink.c @@ -0,0 +1,68 @@ +#include "global.h" +#include "entity.h" +#include "link.h" +#include "structures.h" +#include "functions.h" +#include "room.h" +#include "flags.h" + +extern u32 gUnk_03000B80; +extern u32 gUnk_03003FC0; + +extern Entity gLinkEntity; + +extern u8 gUnk_080FCAC8[]; + +void InitializeLink(void) +{ + Entity* pl; + + sub_080784C8(); + _DmaZero((void *)&gUnk_03000B80, 0x70); + _DmaZero((void *)&gLinkState, 0xb0); + + _DmaFill32(0xffffffff, &gLinkState.field_0x40, 0x40); + pl = &gLinkEntity; + _DmaZero((void *)pl, 0x88); + gRoomControls.cameraTarget = pl; + gLinkState.linkAction = gUnk_080FCAC8[gScreenTransition.field_0xf]; + if (!CheckGlobalFlag(0x14)) { + gLinkState.flags.all |= 8; + } + switch (gScreenTransition.field_0xf) { + case 0x2: + case 0x6: + pl->height.HALF.HI = -0xc0; + break; + case 0x4: + gLinkState.field_0x34[4] = 0x10; + pl->direction = gScreenTransition.playerState << 2; + case 0x3: + pl->nonPlanarMovement = 0xe0; + break; + case 0x7: + case 0x8: + gLinkState.field_0x34[4] = 1; + gLinkState.field_0x34[5] = gScreenTransition.field_0xf; + break; + case 0xa: + gLinkState.field_0x34[4] = 1; + break; + case 0xb: + gLinkState.field_0x34[4] = 3; + break; + case 0xc: + gLinkState.field_0x34[4] = 4; + } + pl->entityType.type = 1; + pl->flags |= 0xa0; + pl->spritePriority.b0 = 4; + pl->currentHealth = gUnk_02002A40.stats.health; + pl->x.HALF.HI = gScreenTransition.playerStartPos.HALF.x; + pl->y.HALF.HI = gScreenTransition.playerStartPos.HALF.y; + pl->animationState = gScreenTransition.playerState; + pl->collisionLayer = gScreenTransition.playerLayer; + UpdateSpriteForCollisionLayer(pl); + sub_0805EA2C(pl, 1); + sub_08017640(); +} \ No newline at end of file diff --git a/src/sub_08052620.c b/src/sub_08052620.c deleted file mode 100644 index c4ec163a..00000000 --- a/src/sub_08052620.c +++ /dev/null @@ -1,7 +0,0 @@ -#include "global.h" - -extern u8 gArea; - -bool32 sub_08052620(u32 r0) { - return gArea == 0x81; -} diff --git a/src/sub_08052638.c b/src/sub_08052638.c deleted file mode 100644 index 987572d8..00000000 --- a/src/sub_08052638.c +++ /dev/null @@ -1,10 +0,0 @@ -#include "global.h" - -extern u8 gUnk_08127D30[69]; - -u32 sub_08052638(u32 r0) { - // u32 r1 = gUnk_08127D30; - // u32 r1 = gUnk_08127D30; - - return gUnk_08127D30[r0 * 4] == 129; -} From 0cb4a64f67e94bcdd9c511ae30a422839a5f173b Mon Sep 17 00:00:00 2001 From: theo3 Date: Sat, 8 Aug 2020 14:15:46 -0700 Subject: [PATCH 105/158] fix calcrom to accept strings.s --- calcrom.pl | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/calcrom.pl b/calcrom.pl index 7472ab23..8de8661b 100644 --- a/calcrom.pl +++ b/calcrom.pl @@ -58,7 +58,13 @@ while (my $line = <$file>) } elsif ($dir eq 'data') { - $data += $size; + if ($basename =~ /(strings)/) + { + $srcdata += $size; + } + else { + $data += $size; + } } } } From 6a68cca275c05355743fad27e40835953430d40e Mon Sep 17 00:00:00 2001 From: Marcus Huderle Date: Sat, 8 Aug 2020 16:49:10 -0500 Subject: [PATCH 106/158] Start decompiling pot.c --- asm/pot.s | 532 ----------------------------------------- include/entity.h | 5 +- include/functions.h | 2 +- include/link.h | 4 +- linker.ld | 1 + src/enemy/bombPeahat.c | 2 +- src/enemy/keese.c | 2 +- src/enemy/octorok.c | 2 +- src/enemy/rupeeLike.c | 2 +- src/enemy/smallPesto.c | 2 +- src/enemy/wisp.c | 2 +- src/object/pot.c | 169 +++++++++++++ 12 files changed, 182 insertions(+), 543 deletions(-) create mode 100755 src/object/pot.c diff --git a/asm/pot.s b/asm/pot.s index e24373d3..68d9597e 100644 --- a/asm/pot.s +++ b/asm/pot.s @@ -6,538 +6,6 @@ .text - - thumb_func_start Pot -Pot: @ 0x0808220C - push {r4, lr} - adds r4, r0, #0 - ldr r1, _08082228 @ =gUnk_0811F090 - ldrb r0, [r4, #0xc] - lsls r0, r0, #2 - adds r0, r0, r1 - ldr r1, [r0] - adds r0, r4, #0 - bl _call_via_r1 - adds r4, #0x41 - movs r0, #0 - strb r0, [r4] - pop {r4, pc} - .align 2, 0 -_08082228: .4byte gUnk_0811F090 - - thumb_func_start sub_0808222C -sub_0808222C: @ 0x0808222C - push {r4, r5, r6, r7, lr} - mov r7, r8 - push {r7} - adds r4, r0, #0 - ldrb r0, [r4, #0xb] - cmp r0, #1 - bne _0808224C - adds r0, r4, #0 - adds r0, #0x86 - ldrh r0, [r0] - bl CheckFlags - cmp r0, #0 - beq _0808224C - bl DeleteThisEntity -_0808224C: - movs r2, #1 - strb r2, [r4, #0xc] - ldr r0, _08082308 @ =gUnk_080FD338 - str r0, [r4, #0x48] - movs r1, #0 - movs r0, #0x80 - strh r0, [r4, #0x24] - ldrh r0, [r4, #0x32] - adds r0, #3 - strh r0, [r4, #0x32] - strb r1, [r4, #0x16] - ldrb r1, [r4, #0x10] - movs r0, #0x80 - orrs r0, r1 - strb r0, [r4, #0x10] - adds r0, r4, #0 - adds r0, #0x45 - strb r2, [r0] - adds r1, r4, #0 - adds r1, #0x3c - movs r0, #7 - strb r0, [r1] - adds r1, #3 - movs r0, #0x6e - strb r0, [r1] - subs r1, #4 - movs r0, #0x84 - strb r0, [r1] - movs r0, #0x12 - strb r0, [r4, #0x1c] - adds r5, r4, #0 - adds r5, #0x38 - ldrb r0, [r5] - cmp r0, #0 - bne _08082298 - adds r0, r4, #0 - bl sub_08016A30 -_08082298: - movs r1, #0x2e - ldrsh r0, [r4, r1] - ldr r7, _0808230C @ =gRoomControls - ldrh r1, [r7, #6] - subs r0, r0, r1 - asrs r0, r0, #4 - movs r6, #0x3f - ands r0, r6 - movs r2, #0x32 - ldrsh r1, [r4, r2] - ldrh r2, [r7, #8] - subs r1, r1, r2 - asrs r1, r1, #4 - ands r1, r6 - lsls r1, r1, #6 - orrs r0, r1 - ldrb r1, [r5] - bl sub_080001DA - adds r1, r4, #0 - adds r1, #0x70 - strh r0, [r1] - lsls r0, r0, #0x10 - lsrs r0, r0, #0x10 - movs r1, #0x80 - lsls r1, r1, #7 - mov r8, r1 - cmp r0, r8 - bne _080822D6 - bl DeleteThisEntity -_080822D6: - movs r2, #0x2e - ldrsh r1, [r4, r2] - ldrh r0, [r7, #6] - subs r1, r1, r0 - asrs r1, r1, #4 - ands r1, r6 - movs r2, #0x32 - ldrsh r0, [r4, r2] - ldrh r2, [r7, #8] - subs r0, r0, r2 - asrs r0, r0, #4 - ands r0, r6 - lsls r0, r0, #6 - orrs r1, r0 - ldrb r2, [r5] - mov r0, r8 - bl SetTile - adds r0, r4, #0 - movs r1, #5 - bl InitializeAnimation - pop {r3} - mov r8, r3 - pop {r4, r5, r6, r7, pc} - .align 2, 0 -_08082308: .4byte gUnk_080FD338 -_0808230C: .4byte gRoomControls - - thumb_func_start sub_08082310 -sub_08082310: @ 0x08082310 - push {r4, r5, r6, r7, lr} - adds r5, r0, #0 - adds r0, #0x41 - ldrb r0, [r0] - movs r6, #0x7f - adds r1, r6, #0 - ands r1, r0 - cmp r1, #0x13 - beq _08082342 - cmp r1, #0x1d - beq _0808234C - adds r0, r5, #0 - bl GetTileTypeByEntity - adds r4, r0, #0 - movs r0, #0x80 - lsls r0, r0, #7 - cmp r4, r0 - bne _08082338 - b _080824F0 -_08082338: - adds r0, #1 - cmp r4, r0 - bhs _08082340 - b _08082484 -_08082340: - b _080823C4 -_08082342: - movs r1, #0 - movs r0, #3 - strb r0, [r5, #0xc] - strb r1, [r5, #0xd] - b _080824F6 -_0808234C: - adds r0, r5, #0 - adds r0, #0x70 - ldrh r0, [r0] - movs r2, #0x2e - ldrsh r1, [r5, r2] - ldr r3, _080823C0 @ =gRoomControls - ldrh r2, [r3, #6] - subs r1, r1, r2 - asrs r1, r1, #4 - movs r4, #0x3f - ands r1, r4 - movs r7, #0x32 - ldrsh r2, [r5, r7] - ldrh r3, [r3, #8] - subs r2, r2, r3 - asrs r2, r2, #4 - ands r2, r4 - lsls r2, r2, #6 - orrs r1, r2 - adds r2, r5, #0 - adds r2, #0x38 - ldrb r2, [r2] - bl SetTile - movs r1, #0 - movs r0, #5 - strb r0, [r5, #0xc] - movs r0, #0xa8 - lsls r0, r0, #0xa - str r0, [r5, #0x20] - adds r0, r5, #0 - adds r0, #0x63 - strb r1, [r0] - ldrb r1, [r5, #0x18] - movs r0, #0x31 - rsbs r0, r0, #0 - ands r0, r1 - movs r1, #0x10 - orrs r0, r1 - strb r0, [r5, #0x18] - adds r2, r5, #0 - adds r2, #0x29 - ldrb r1, [r2] - movs r0, #0x39 - rsbs r0, r0, #0 - ands r0, r1 - movs r1, #0x18 - orrs r0, r1 - strb r0, [r2] - ldrb r1, [r5, #0x10] - adds r0, r6, #0 - ands r0, r1 - strb r0, [r5, #0x10] - adds r0, r5, #0 - bl sub_08082824 - b _080824F6 - .align 2, 0 -_080823C0: .4byte gRoomControls -_080823C4: - ldr r0, _080823D4 @ =0x00004004 - cmp r4, r0 - bls _080823D8 - adds r0, #0x63 - cmp r4, r0 - beq _08082448 - b _08082484 - .align 2, 0 -_080823D4: .4byte 0x00004004 -_080823D8: - ldr r1, _08082438 @ =0xFFFFBFFF - adds r0, r4, r1 - lsls r0, r0, #3 - strb r0, [r5, #0x15] - movs r0, #0x20 - strb r0, [r5, #0xe] - movs r0, #4 - strb r0, [r5, #0xc] - ldr r0, _0808243C @ =gLinkState - ldr r0, [r0, #0x30] - movs r1, #0x80 - ands r0, r1 - cmp r0, #0 - beq _08082400 - ldrh r0, [r5, #0x24] - lsls r0, r0, #0x10 - asrs r0, r0, #0x11 - strh r0, [r5, #0x24] - movs r0, #0x40 - strb r0, [r5, #0xe] -_08082400: - adds r0, r5, #0 - adds r0, #0x70 - ldrh r0, [r0] - movs r2, #0x2e - ldrsh r1, [r5, r2] - ldr r3, _08082440 @ =gRoomControls - ldrh r2, [r3, #6] - subs r1, r1, r2 - asrs r1, r1, #4 - movs r4, #0x3f - ands r1, r4 - movs r6, #0x32 - ldrsh r2, [r5, r6] - ldrh r3, [r3, #8] - subs r2, r2, r3 - asrs r2, r2, #4 - ands r2, r4 - lsls r2, r2, #6 - orrs r1, r2 - adds r2, r5, #0 - adds r2, #0x38 - ldrb r2, [r2] - bl SetTile - ldr r0, _08082444 @ =0x0000010F - bl sub_08004488 - b _080824F6 - .align 2, 0 -_08082438: .4byte 0xFFFFBFFF -_0808243C: .4byte gLinkState -_08082440: .4byte gRoomControls -_08082444: .4byte 0x0000010F -_08082448: - adds r0, r5, #0 - adds r0, #0x70 - ldrh r0, [r0] - movs r7, #0x2e - ldrsh r1, [r5, r7] - ldr r3, _08082480 @ =gRoomControls - ldrh r2, [r3, #6] - subs r1, r1, r2 - asrs r1, r1, #4 - movs r4, #0x3f - ands r1, r4 - movs r6, #0x32 - ldrsh r2, [r5, r6] - ldrh r3, [r3, #8] - subs r2, r2, r3 - asrs r2, r2, #4 - ands r2, r4 - lsls r2, r2, #6 - orrs r1, r2 - adds r2, r5, #0 - adds r2, #0x38 - ldrb r2, [r2] - bl SetTile - bl DeleteThisEntity - b _080824F6 - .align 2, 0 -_08082480: .4byte gRoomControls -_08082484: - adds r0, r5, #0 - bl sub_080002B8 - cmp r0, #0xd - bne _0808249A - adds r0, r5, #0 - movs r1, #0 - movs r2, #0 - bl CreateFx - b _080824D8 -_0808249A: - ldr r0, _080824E4 @ =0x00004005 - cmp r4, r0 - bne _080824D8 - ldr r0, _080824E8 @ =gLinkState - adds r0, #0xab - movs r1, #4 - strb r1, [r0] - adds r0, r5, #0 - adds r0, #0x70 - ldrh r0, [r0] - movs r7, #0x2e - ldrsh r1, [r5, r7] - ldr r3, _080824EC @ =gRoomControls - ldrh r2, [r3, #6] - subs r1, r1, r2 - asrs r1, r1, #4 - movs r4, #0x3f - ands r1, r4 - movs r6, #0x32 - ldrsh r2, [r5, r6] - ldrh r3, [r3, #8] - subs r2, r2, r3 - asrs r2, r2, #4 - ands r2, r4 - lsls r2, r2, #6 - orrs r1, r2 - adds r2, r5, #0 - adds r2, #0x38 - ldrb r2, [r2] - bl SetTile -_080824D8: - adds r0, r5, #0 - movs r1, #0 - bl sub_08082850 - b _080824F6 - .align 2, 0 -_080824E4: .4byte 0x00004005 -_080824E8: .4byte gLinkState -_080824EC: .4byte gRoomControls -_080824F0: - adds r0, r5, #0 - bl sub_08078930 -_080824F6: - pop {r4, r5, r6, r7, pc} - - thumb_func_start sub_080824F8 -sub_080824F8: @ 0x080824F8 - push {lr} - ldr r2, _0808250C @ =gUnk_0811F0A8 - ldrb r1, [r0, #0xd] - lsls r1, r1, #2 - adds r1, r1, r2 - ldr r1, [r1] - bl _call_via_r1 - pop {pc} - .align 2, 0 -_0808250C: .4byte gUnk_0811F0A8 - - thumb_func_start sub_08082510 -sub_08082510: @ 0x08082510 - push {r4, r5, r6, lr} - adds r5, r0, #0 - ldrb r1, [r5, #0x10] - movs r0, #0x80 - movs r2, #0 - orrs r0, r1 - strb r0, [r5, #0x10] - ldr r0, _08082578 @ =gUnk_080FD340 - str r0, [r5, #0x48] - adds r1, r5, #0 - adds r1, #0x3c - movs r0, #7 - strb r0, [r1] - adds r1, #3 - movs r0, #1 - strb r0, [r1] - ldr r0, _0808257C @ =gLinkEntity - adds r0, #0x3b - ldrb r0, [r0] - subs r1, #4 - strb r0, [r1] - adds r0, r5, #0 - adds r0, #0x63 - strb r2, [r0] - adds r0, #0xd - ldrh r0, [r0] - movs r2, #0x2e - ldrsh r1, [r5, r2] - ldr r3, _08082580 @ =gRoomControls - ldrh r2, [r3, #6] - subs r1, r1, r2 - asrs r1, r1, #4 - movs r4, #0x3f - ands r1, r4 - movs r6, #0x32 - ldrsh r2, [r5, r6] - ldrh r3, [r3, #8] - subs r2, r2, r3 - asrs r2, r2, #4 - ands r2, r4 - lsls r2, r2, #6 - orrs r1, r2 - adds r2, r5, #0 - adds r2, #0x38 - ldrb r2, [r2] - bl SetTile - ldrb r0, [r5, #0xd] - adds r0, #1 - strb r0, [r5, #0xd] - pop {r4, r5, r6, pc} - .align 2, 0 -_08082578: .4byte gUnk_080FD340 -_0808257C: .4byte gLinkEntity -_08082580: .4byte gRoomControls - - thumb_func_start nullsub_511 -nullsub_511: @ 0x08082584 - bx lr - .align 2, 0 - - thumb_func_start sub_08082588 -sub_08082588: @ 0x08082588 - adds r0, #0x29 - ldrb r2, [r0] - movs r1, #0x39 - rsbs r1, r1, #0 - ands r1, r2 - movs r2, #0x18 - orrs r1, r2 - strb r1, [r0] - bx lr - .align 2, 0 - - thumb_func_start sub_0808259C -sub_0808259C: @ 0x0808259C - push {r4, lr} - adds r4, r0, #0 - bl sub_080043E8 - cmp r0, #2 - beq _080825B8 - cmp r0, #2 - bhi _080825B2 - cmp r0, #1 - beq _080825BE - b _080825D0 -_080825B2: - cmp r0, #3 - beq _080825C4 - b _080825D0 -_080825B8: - adds r0, r4, #0 - movs r1, #0xb - b _080825C8 -_080825BE: - adds r0, r4, #0 - movs r1, #0 - b _080825C8 -_080825C4: - adds r0, r4, #0 - movs r1, #0xc -_080825C8: - movs r2, #0 - bl CreateFx - b _080825E0 -_080825D0: - ldr r1, _080825DC @ =gLinkEntity - adds r0, r4, #0 - bl sub_08082850 - b _080825E4 - .align 2, 0 -_080825DC: .4byte gLinkEntity -_080825E0: - bl DeleteThisEntity -_080825E4: - pop {r4, pc} - .align 2, 0 - - thumb_func_start sub_080825E8 -sub_080825E8: @ 0x080825E8 - push {lr} - bl DeleteThisEntity - pop {pc} - - thumb_func_start sub_080825F0 -sub_080825F0: @ 0x080825F0 - push {lr} - adds r1, r0, #0 - ldr r0, _08082604 @ =gLinkState - ldrb r0, [r0, #5] - cmp r0, #0 - bne _08082602 - adds r0, r1, #0 - bl sub_08082608 -_08082602: - pop {pc} - .align 2, 0 -_08082604: .4byte gLinkState - - thumb_func_start sub_08082608 -sub_08082608: @ 0x08082608 - movs r2, #0 - movs r1, #1 - strb r1, [r0, #0xc] - strb r2, [r0, #0xd] - bx lr - .align 2, 0 - thumb_func_start sub_08082614 sub_08082614: @ 0x08082614 push {r4, r5, r6, r7, lr} diff --git a/include/entity.h b/include/entity.h index 0b76eaa5..bc27562f 100644 --- a/include/entity.h +++ b/include/entity.h @@ -47,8 +47,7 @@ typedef struct Entity { /* */ u8 draw : 2; // 1-2 /* */ u8 ss2 : 1; // 4 /* */ u8 ss3 : 1; // 8 - /* */ u8 bigShadow : 1; //0x10 - /* */ u8 giantShadow : 1; //0x20 + /* */ u8 shadow : 2; //0x10 /* */ u8 flipX : 1; //0x40 /* */ u8 flipY : 1; //0x80 /* */ } PACKED b; @@ -71,7 +70,7 @@ typedef struct Entity { /* */ u8 flipX : 2; //0x10 /* */ u8 flipY : 2; //0x40 /* */ } PACKED spriteOrientation; - /*0x1c*/ u8 filler[1]; + /*0x1c*/ u8 field_0x1c; /*0x1d*/ u8 field_0x1d; /*0x1e*/ u8 frameIndex; /*0x1f*/ u8 lastFrameIndex; diff --git a/include/functions.h b/include/functions.h index dcfcf70d..f4db40c4 100644 --- a/include/functions.h +++ b/include/functions.h @@ -192,7 +192,7 @@ extern void sub_080A70AC(void*); extern void sub_080A7114(u32); extern void sub_08001242(void); extern u32 sub_08003FC4(Entity*, u32); -extern u8 sub_080043E8(Entity*); +extern u32 sub_080043E8(Entity*); extern void sub_08001290(Entity*, u32); extern void sub_08004488(u32); extern void sub_08004596(Entity*, u32); diff --git a/include/link.h b/include/link.h index 5a7a73a2..93075787 100644 --- a/include/link.h +++ b/include/link.h @@ -35,7 +35,9 @@ typedef struct { /* */ u32 noMinishCap : 1; /* */ u32 pullingState : 1; /* */ u32 windyState : 1; - /* */ u32 filler10 : 4; + /* */ u32 filler6 : 1; + /* */ u32 unk7 : 1; + /* */ u32 filler8 : 2; /* */ u32 slipperyState : 1; /* */ u32 filler11 : 5; /* */ u32 filler11b : 16; diff --git a/linker.ld b/linker.ld index d8c259aa..e9a2b4a7 100644 --- a/linker.ld +++ b/linker.ld @@ -673,6 +673,7 @@ SECTIONS { asm/itemForSale.o(.text); asm/button.o(.text); asm/object4.o(.text); + src/object/pot.o(.text); asm/pot.o(.text); asm/object6.o(.text); asm/blockPushed.o(.text); diff --git a/src/enemy/bombPeahat.c b/src/enemy/bombPeahat.c index 1dc3d30f..176480a0 100644 --- a/src/enemy/bombPeahat.c +++ b/src/enemy/bombPeahat.c @@ -57,7 +57,7 @@ void sub_0802A8C8(Entity* this) void sub_0802A8E0(Entity *this) { this->previousActionFlag = 1; - this->filler[1] = 0x3c; + this->field_0x1d = 0x3c; } void sub_0802A8EC(Entity *this) diff --git a/src/enemy/keese.c b/src/enemy/keese.c index ea25214b..d9dd7991 100644 --- a/src/enemy/keese.c +++ b/src/enemy/keese.c @@ -73,7 +73,7 @@ void sub_08021DF0(Entity *this) this->height.HALF.HI = -0x10; } this->direction = Random() & 0x1f; - this->filler[0] = 1; + this->field_0x1c = 1; this->spritePriority.b0 = 3; this->collisionLayer = 3; UpdateSpriteForCollisionLayer(this); diff --git a/src/enemy/octorok.c b/src/enemy/octorok.c index 57fc25e3..a5b63f96 100644 --- a/src/enemy/octorok.c +++ b/src/enemy/octorok.c @@ -62,7 +62,7 @@ void sub_0801EB2C(Entity* ent) { void sub_0801EB68(Entity* ent) { ent->previousActionFlag = 1; - ent->filler[1] = 60; + ent->field_0x1d = 60; } void sub_0801EB74(Entity* ent) { diff --git a/src/enemy/rupeeLike.c b/src/enemy/rupeeLike.c index cbd991c4..79f127e0 100644 --- a/src/enemy/rupeeLike.c +++ b/src/enemy/rupeeLike.c @@ -25,7 +25,7 @@ void RupeeLike(Entity* this) { u32 uVar1; if (this->entityType.parameter == 0) { - uVar1 = sub_080043E8(this); + uVar1 = (u8)sub_080043E8(this); if (uVar1 != 0) { if (this->action == 4) { sub_080296D8(this); diff --git a/src/enemy/smallPesto.c b/src/enemy/smallPesto.c index c29fe80c..94eb8822 100644 --- a/src/enemy/smallPesto.c +++ b/src/enemy/smallPesto.c @@ -46,7 +46,7 @@ void sub_0803169C(Entity *this) void sub_080316DC(Entity *this) { this->previousActionFlag = 1; - this->filler[1] = 0x3c; + this->field_0x1d = 0x3c; } void sub_080316E8(Entity *this) diff --git a/src/enemy/wisp.c b/src/enemy/wisp.c index d6729201..9b95541c 100644 --- a/src/enemy/wisp.c +++ b/src/enemy/wisp.c @@ -85,7 +85,7 @@ void sub_08033674(Entity* this) { sub_0804A720(this); this->actionDelay = 0; this->action = 1; - this->filler[0] = 1; + this->field_0x1c = 1; this->field_0x80.HWORD = this->x.HALF.HI; this->field_0x82.HWORD = this->y.HALF.HI; sub_08033744(this); diff --git a/src/object/pot.c b/src/object/pot.c new file mode 100755 index 00000000..25d82b50 --- /dev/null +++ b/src/object/pot.c @@ -0,0 +1,169 @@ +#include "global.h" +#include "entity.h" +#include "functions.h" +#include "flags.h" +#include "link.h" +#include "room.h" + +extern void (*const gUnk_0811F090[])(Entity*); +extern void (*const gUnk_0811F0A8[])(Entity*); + +extern BoundingBox gUnk_080FD338; // TODO: should be const +extern BoundingBox gUnk_080FD340; // TODO: should be const + +extern u32 sub_08016A30(Entity*); +extern u32 sub_080001DA(u32, u32); +extern u32 GetTileTypeByEntity(Entity*); +extern void sub_08078930(Entity*); +extern void sub_08082824(Entity*); +extern u32 sub_080002B8(Entity*); +extern void sub_08082850(Entity*, Entity*); +extern void sub_08082608(Entity*); + +void Pot(Entity* this) { + gUnk_0811F090[this->action](this); + this->bitfield = 0; +} + +void sub_0808222C(Entity* this) { + if (this->entityType.parameter == 1 && CheckFlags(this->field_0x86)) { + DeleteThisEntity(); + } + + this->action = 1; + this->boundingBox = &gUnk_080FD338; + this->nonPlanarMovement = 0x80; + this->y.HALF.HI += 3; + this->possibleBool = 0; + this->flags |= 0x80; + this->currentHealth = 1; + this->field_0x3c = 7; + this->damageType = 0x6E; + this->flags2 = 0x84; + this->field_0x1c = 0x12; + if (this->collisionLayer == 0) { + sub_08016A30(this); + } + + this->field_0x70.HALF.LO = sub_080001DA(COORD_TO_TILE(this), this->collisionLayer); + if ((u16)this->field_0x70.HALF.LO == 0x4000) { + DeleteThisEntity(); + } + + SetTile(0x4000, COORD_TO_TILE(this), this->collisionLayer); + InitializeAnimation(this, 5); +} + +void sub_08082310(Entity* this) { + u32 tileType; + u32 var0 = this->bitfield & 0x7F; + switch (var0) { + case 0x13: + this->action = 3; + this->previousActionFlag = 0; + break; + case 0x1D: + SetTile((u16)this->field_0x70.HALF.LO, COORD_TO_TILE(this), this->collisionLayer); + this->action = 5; + this->field_0x20 = 0x2A000; + this->spriteOffsetY = 0; + this->spriteSettings.b.shadow = 1; + this->spritePriority.b1 = 3; + this->flags &= 0x7F; + sub_08082824(this); + break; + default: + tileType = GetTileTypeByEntity(this); + if (tileType != 0x4000) { + switch (tileType) { + case 0x4004: + case 0x4003: + case 0x4002: + case 0x4001: + this->direction = (tileType - 0x4001) * 8; + this->actionDelay = 32; + this->action = 4; + if (gLinkState.flags.all & 0x80) { + this->nonPlanarMovement >>= 1; + this->actionDelay = 64; + } + SetTile((u16)this->field_0x70.HALF.LO, COORD_TO_TILE(this), this->collisionLayer); + sub_08004488(0x10F); + break; + case 0x4067: + SetTile((u16)this->field_0x70.HALF.LO, COORD_TO_TILE(this), this->collisionLayer); + DeleteThisEntity(); + break; + default: + if (sub_080002B8(this) == 13) { + CreateFx(this, 0, 0); + } else if (tileType == 0x4005) { + gLinkState.field_0xab = 4; + SetTile((u16)this->field_0x70.HALF.LO, COORD_TO_TILE(this), this->collisionLayer); + } + sub_08082850(this, NULL); + break; + } + } else { + sub_08078930(this); + } + break; + } +} + +void sub_080824F8(Entity* this) { + gUnk_0811F0A8[this->previousActionFlag](this); +} + +void sub_08082510(Entity* this) { + this->flags |= 0x80; + this->boundingBox = &gUnk_080FD340; + this->field_0x3c = 7; + this->damageType = 1; + this->flags2 = gLinkEntity.flags2; + this->spriteOffsetY = 0; + SetTile((u16)this->field_0x70.HALF.LO, COORD_TO_TILE(this), this->collisionLayer); + this->previousActionFlag++; +} + + +void nullsub_511(Entity* this) { +} + +void sub_08082588(Entity* this) { + this->spritePriority.b1 = 3; +} + +void sub_0808259C(Entity* this) { + switch (sub_080043E8(this)) { + case 2: + CreateFx(this, 11, 0); + break; + case 1: + CreateFx(this, 0, 0); + break; + case 3: + CreateFx(this, 12, 0); + break; + default: + sub_08082850(this, &gLinkEntity); + return; + } + + DeleteThisEntity(); +} + +void sub_080825E8(Entity* this) { + DeleteThisEntity(); +} + +void sub_080825F0(Entity* this) { + if (gLinkState.heldObject == 0) { + sub_08082608(this); + } +} + +void sub_08082608(Entity* this) { + this->action = 1; + this->previousActionFlag = 0; +} From ac67812a254a71f6face762b96a2849ef4e9ea76 Mon Sep 17 00:00:00 2001 From: theo3 Date: Sat, 8 Aug 2020 14:59:11 -0700 Subject: [PATCH 107/158] renamed all occurences of "link" to "player" --- asm/armos.s | 12 +- asm/bakerOven.s | 4 +- asm/beanstalk.s | 16 +- asm/beetle.s | 24 +- asm/bigGoron.s | 8 +- asm/bigPushableLever.s | 8 +- asm/bigVortex.s | 8 +- asm/bird.s | 34 +- asm/bobomb.s | 20 +- asm/bombPeahat.s | 4 +- asm/book.s | 20 +- asm/bossDoor.s | 4 +- asm/bowUse.s | 22 +- asm/brocco.s | 4 +- asm/businessScrub.s | 4 +- asm/businessScrubPrologue.s | 12 +- asm/button.s | 24 +- asm/castleMaid.s | 4 +- asm/cat.s | 24 +- asm/cellOverwriteSet.s | 8 +- asm/chestSpawner.s | 8 +- asm/chuchuBoss.s | 52 +- asm/code_080011C4.s | 4 +- asm/code_080043E8.s | 8 +- asm/code_0800857C.s | 52 +- asm/code_08016DF8.s | 146 ++-- asm/code_08018500.s | 4 +- asm/code_08019444.s | 292 +++---- asm/code_0801C85C.s | 10 +- asm/code_08049CD4.s | 32 +- asm/code_08050038.s | 14 +- asm/code_080526F8.s | 44 +- asm/code_0805436C.s | 14 +- asm/code_0805E3B0.s | 12 +- asm/code_0805EC04.s | 20 +- asm/code_0806ED78.s | 58 +- asm/code_0806FA6C.s | 40 +- asm/code_08070698.s | 524 ++++++------- asm/code_080732D0.s | 752 +++++++++---------- asm/code_08076C80.s | 194 ++--- asm/code_08077B98.s | 56 +- asm/code_08078778.s | 566 +++++++------- asm/code_0807B9B8.s | 8 +- asm/code_0807CC3C.s | 224 +++--- asm/code_080A29BC.s | 60 +- asm/code_080A5574.s | 272 +++---- asm/code_080AD90C.s | 48 +- asm/createBowEntity.s | 8 +- asm/crenalBeanSprout.s | 36 +- asm/cucco.s | 4 +- asm/cuccoAggr.s | 12 +- asm/cuccoChick.s | 4 +- asm/cuccoChickAggr.s | 8 +- asm/din.s | 4 +- asm/dog.s | 36 +- asm/dust.s | 22 +- asm/enemy50.s | 12 +- asm/enemy64.s | 32 +- asm/evilSpirit.s | 16 +- asm/ezloCap.s | 16 +- asm/fairy.s | 12 +- asm/fallingBoulder.s | 4 +- asm/fan.s | 8 +- asm/farore.s | 4 +- asm/figurineDevice.s | 12 +- asm/floatingPlatform.s | 8 +- asm/flyingPot.s | 8 +- asm/flyingSkull.s | 24 +- asm/fourElements.s | 8 +- asm/furniture.s | 12 +- asm/getEmptyEntity.s | 4 +- asm/ghini.s | 30 +- asm/ghostBrothers.s | 4 +- asm/giantTwig.s | 12 +- asm/gibdo.s | 22 +- asm/gina.s | 4 +- asm/gleerok.s | 80 +- asm/greatFairy.s | 4 +- asm/gregal.s | 4 +- asm/guardWithSpear.s | 36 +- asm/gyorgChild.s | 8 +- asm/gyorgFemale.s | 16 +- asm/gyorgFemaleEye.s | 4 +- asm/gyorgFemaleMouth.s | 8 +- asm/gyorgMale.s | 42 +- asm/helmasaur.s | 4 +- asm/houseDoorInterior.s | 8 +- asm/hurdyGurdyMan.s | 8 +- asm/item11.s | 4 +- asm/itemForSale.s | 34 +- asm/itemOnGround.s | 28 +- asm/jarPortal.s | 4 +- asm/kid.s | 24 +- asm/kingDaltus.s | 4 +- asm/ladderHoleInBookshelf.s | 12 +- asm/ladderUp.s | 8 +- asm/lavaPlatform.s | 20 +- asm/likeLike.s | 22 +- asm/lilypadLarge.s | 92 +-- asm/lilypadSmall.s | 8 +- asm/lockedDoor.s | 16 +- asm/macroBook.s | 8 +- asm/{macroLink.s => macroPlayer.s} | 4 +- asm/mama.s | 4 +- asm/manager1.s | 4 +- asm/manager10.s | 8 +- asm/manager15.s | 12 +- asm/manager1A.s | 12 +- asm/manager22.s | 12 +- asm/manager26.s | 12 +- asm/manager2C.s | 4 +- asm/manager2D.s | 4 +- asm/manager3.s | 8 +- asm/manager30.s | 8 +- asm/manager33.s | 8 +- asm/manager37.s | 8 +- asm/manager39.s | 4 +- asm/manager4.s | 12 +- asm/managerA.s | 24 +- asm/managerC.s | 24 +- asm/managerF.s | 24 +- asm/mazaalBracelet.s | 52 +- asm/mazaalHead.s | 24 +- asm/minecart.s | 28 +- asm/minecartDoor.s | 32 +- asm/minishSizedEntrance.s | 8 +- asm/ministerPotho.s | 4 +- asm/moldworm.s | 34 +- asm/mountainMinish.s | 8 +- asm/nayru.s | 4 +- asm/non_matching/code_0805457C.inc | 4 +- asm/non_matching/smith/smith.inc | 4 +- asm/non_matching/sub_08077D38.inc | 12 +- asm/npc23.s | 24 +- asm/npc5.s | 36 +- asm/object10.s | 30 +- asm/object11.s | 12 +- asm/object17.s | 8 +- asm/object1E.s | 8 +- asm/object1F.s | 8 +- asm/object21.s | 4 +- asm/object24.s | 8 +- asm/object29.s | 24 +- asm/object35.s | 4 +- asm/object36.s | 8 +- asm/object37.s | 4 +- asm/object4.s | 12 +- asm/object42.s | 16 +- asm/object43.s | 38 +- asm/object5A.s | 4 +- asm/object6.s | 16 +- asm/object61.s | 32 +- asm/object64.s | 4 +- asm/object67.s | 4 +- asm/object68.s | 12 +- asm/object6A.s | 32 +- asm/object70.s | 24 +- asm/object79.s | 16 +- asm/object80.s | 8 +- asm/object81.s | 4 +- asm/object87.s | 4 +- asm/object89.s | 8 +- asm/object8B.s | 4 +- asm/object8E.s | 36 +- asm/object9.s | 8 +- asm/object91.s | 4 +- asm/object96.s | 16 +- asm/object97.s | 24 +- asm/objectA8.s | 20 +- asm/objectAB.s | 12 +- asm/objectB5.s | 4 +- asm/objectB9.s | 4 +- asm/objectBA.s | 62 +- asm/objectBlockingStairs.s | 20 +- asm/objectC1.s | 12 +- asm/objectOnPillar.s | 14 +- asm/objectOnSpinyBeetle.s | 24 +- asm/ocarina.s | 20 +- asm/ocarinaUpdate.s | 8 +- asm/octorokBoss.s | 60 +- asm/octorokGolden.s | 12 +- asm/percy.s | 12 +- asm/pesto.s | 50 +- asm/picolyteBottles.s | 4 +- asm/pina.s | 4 +- asm/postman.s | 8 +- asm/pot.s | 36 +- asm/pullableLever.s | 14 +- asm/pullableMushroom.s | 44 +- asm/pushableFurniture.s | 20 +- asm/pushableGrave.s | 4 +- asm/pushableLever.s | 8 +- asm/pushableStatue.s | 24 +- asm/{respawnLink.s => respawnPlayer.s} | 12 +- asm/rockChuchu.s | 4 +- asm/rollobite.s | 8 +- asm/ropeGolden.s | 12 +- asm/sittingPerson.s | 4 +- asm/smallTownMinish.s | 4 +- asm/specialFx.s | 4 +- asm/spinyBeetle.s | 20 +- asm/stairsInteract.s | 10 +- asm/stalfos.s | 8 +- asm/steam.s | 4 +- asm/stockwell.s | 4 +- asm/sturgeon.s | 4 +- asm/sub_080A276C.s | 8 +- asm/tingleSiblings.s | 4 +- asm/townMinish.s | 10 +- asm/treeHidingPortal.s | 4 +- asm/treeItem.s | 4 +- asm/vaatiArm.s | 12 +- asm/vaatiEyesMacro.s | 8 +- asm/vaatiProjectile.s | 34 +- asm/vaatiRebornEnemy.s | 16 +- asm/vaatiTransfigured.s | 8 +- asm/vaatiWrath.s | 36 +- asm/wallMaster.s | 20 +- asm/wallMaster2.s | 16 +- asm/warpPoint.s | 38 +- asm/waterDrop.s | 4 +- asm/whirlwind.s | 22 +- asm/windTribeTeleporter.s | 28 +- asm/wizzrobeFire.s | 4 +- asm/wizzrobeIce.s | 8 +- asm/wizzrobeWind.s | 4 +- asm/zeldaFollower.s | 20 +- include/functions.h | 4 +- include/greatFairy.h | 2 +- include/item.h | 2 +- include/npc.h | 2 +- include/object.h | 2 +- include/{link.h => player.h} | 12 +- include/structures.h | 2 +- linker.ld | 10 +- src/code_0805436C.c | 2 +- src/code_08077B98.c | 8 +- src/code_08077DF4.c | 54 +- src/enemy/bombPeahat.c | 6 +- src/enemy/keese.c | 6 +- src/enemy/lakitu.c | 10 +- src/enemy/lakituCloud.c | 4 +- src/enemy/rupeeLike.c | 40 +- src/enemy/wisp.c | 4 +- src/entity.c | 6 +- src/{initializeLink.c => initializePlayer.c} | 28 +- src/item.c | 40 +- src/item11.c | 28 +- src/manager/manager6.c | 10 +- src/modHealth.c | 4 +- src/modRupees.c | 2 +- src/npc/anju.c | 4 +- src/npc/beedle.c | 8 +- src/npc/bigGoron.c | 6 +- src/npc/bladeBrothers.c | 10 +- src/npc/carpenter.c | 4 +- src/npc/cow.c | 8 +- src/npc/dampe.c | 4 +- src/npc/epona.c | 8 +- src/npc/festari.c | 4 +- src/npc/forestMinish.c | 2 +- src/npc/gentari.c | 4 +- src/npc/guard.c | 8 +- src/npc/malon.c | 4 +- src/npc/mayorHagen.c | 4 +- src/npc/moblinLady.c | 2 +- src/npc/mutoh.c | 4 +- src/npc/postman.c | 8 +- src/npc/smith.c | 2 +- src/npc/talon.c | 4 +- src/npc/teachers.c | 4 +- src/npc/townMinish.c | 2 +- src/npc/townsperson.c | 6 +- src/npc/zelda.c | 4 +- src/object.c | 2 +- src/object/cloud.c | 10 +- src/object/greatFairy.c | 4 +- src/object/heartContainer.c | 2 +- src/object/houseDoorExterior.c | 6 +- src/object/mask.c | 10 +- src/object/minecart.c | 74 +- src/object/object49.c | 2 +- src/object/object86.c | 12 +- src/object/objectA8.c | 4 +- src/object/treeHidingPortal.c | 4 +- src/object/well.c | 6 +- src/room.c | 40 +- 287 files changed, 3534 insertions(+), 3534 deletions(-) rename asm/{macroLink.s => macroPlayer.s} (99%) rename asm/{respawnLink.s => respawnPlayer.s} (83%) rename include/{link.h => player.h} (94%) rename src/{initializeLink.c => initializePlayer.c} (67%) diff --git a/asm/armos.s b/asm/armos.s index faa79196..0f55d73d 100644 --- a/asm/armos.s +++ b/asm/armos.s @@ -46,7 +46,7 @@ sub_080301D4: @ 0x080301D4 cmp r0, #1 bne _080301EE ldr r1, [r4, #0x4c] - ldr r0, _08030238 @ =gLinkEntity + ldr r0, _08030238 @ =gPlayerEntity cmp r1, r0 bne _080301EE adds r1, r4, #0 @@ -89,7 +89,7 @@ _08030228: bl sub_0804AA30 pop {r4, r5, r6, pc} .align 2, 0 -_08030238: .4byte gLinkEntity +_08030238: .4byte gPlayerEntity _0803023C: .4byte gUnk_080CE124 thumb_func_start sub_08030240 @@ -942,7 +942,7 @@ sub_0803086C: @ 0x0803086C bne _08030880 b _0803099C _08030880: - ldr r0, _08030928 @ =gLinkState + ldr r0, _08030928 @ =gPlayerState ldr r0, [r0, #0x30] movs r1, #0x80 ands r0, r1 @@ -1003,7 +1003,7 @@ _0803088E: bl CheckPlayerInRegion cmp r0, #0 beq _0803098A - ldr r2, _08030934 @ =gLinkEntity + ldr r2, _08030934 @ =gPlayerEntity adds r2, #0x29 ldrb r1, [r2] movs r0, #8 @@ -1023,10 +1023,10 @@ _0803088E: movs r0, #1 b _0803099E .align 2, 0 -_08030928: .4byte gLinkState +_08030928: .4byte gPlayerState _0803092C: .4byte gRoomControls _08030930: .4byte 0x00004049 -_08030934: .4byte gLinkEntity +_08030934: .4byte gPlayerEntity _08030938: .4byte gScreenTransition _0803093C: ldr r0, _0803094C @ =0x00004022 diff --git a/asm/bakerOven.s b/asm/bakerOven.s index afb026d5..48b0511a 100644 --- a/asm/bakerOven.s +++ b/asm/bakerOven.s @@ -142,7 +142,7 @@ _0809CD56: ldrb r0, [r4, #0xf] cmp r0, #0 bne _0809CDAC - ldr r5, _0809CDB0 @ =gLinkEntity + ldr r5, _0809CDB0 @ =gPlayerEntity adds r6, r5, #0 adds r6, #0x3d movs r0, #0 @@ -182,7 +182,7 @@ _0809CD56: _0809CDAC: pop {r4, r5, r6, pc} .align 2, 0 -_0809CDB0: .4byte gLinkEntity +_0809CDB0: .4byte gPlayerEntity thumb_func_start sub_0809CDB4 sub_0809CDB4: @ 0x0809CDB4 diff --git a/asm/beanstalk.s b/asm/beanstalk.s index d2317249..d702554a 100644 --- a/asm/beanstalk.s +++ b/asm/beanstalk.s @@ -552,11 +552,11 @@ _0808A0F6: ble _0808A0FC b _0808A202 _0808A0FC: - ldr r0, _0808A118 @ =gLinkState + ldr r0, _0808A118 @ =gPlayerState ldrb r0, [r0, #0x12] cmp r0, #0x1e bne _0808A1DA - ldr r1, _0808A11C @ =gLinkEntity + ldr r1, _0808A11C @ =gPlayerEntity adds r0, r5, #0 movs r2, #0 movs r3, #8 @@ -565,8 +565,8 @@ _0808A0FC: beq _0808A1DC b _0808A1B0 .align 2, 0 -_0808A118: .4byte gLinkState -_0808A11C: .4byte gLinkEntity +_0808A118: .4byte gPlayerState +_0808A11C: .4byte gPlayerEntity _0808A120: ldrb r0, [r5, #0xe] cmp r0, #0 @@ -826,7 +826,7 @@ sub_0808A2F0: @ 0x0808A2F0 adds r1, #0x72 strh r0, [r1] _0808A316: - ldr r3, _0808A38C @ =gLinkEntity + ldr r3, _0808A38C @ =gPlayerEntity ldrb r1, [r3, #0x1b] lsrs r1, r1, #6 lsls r1, r1, #6 @@ -844,7 +844,7 @@ _0808A316: ands r0, r2 orrs r0, r1 strb r0, [r5, #0x19] - ldr r0, _0808A390 @ =gLinkState + ldr r0, _0808A390 @ =gPlayerState ldrb r0, [r0, #0x12] cmp r0, #0x1e bne _0808A39C @@ -884,8 +884,8 @@ _0808A316: bl SetTile b _0808A3EC .align 2, 0 -_0808A38C: .4byte gLinkEntity -_0808A390: .4byte gLinkState +_0808A38C: .4byte gPlayerEntity +_0808A390: .4byte gPlayerState _0808A394: .4byte 0x00004014 _0808A398: .4byte gRoomControls _0808A39C: diff --git a/asm/beetle.s b/asm/beetle.s index a5215475..9bdbd6d4 100644 --- a/asm/beetle.s +++ b/asm/beetle.s @@ -41,7 +41,7 @@ sub_08021780: @ 0x08021780 beq _080217F4 b _080217FA _08021792: - ldr r0, _080217A4 @ =gLinkState + ldr r0, _080217A4 @ =gPlayerState adds r0, #0xa8 ldrb r0, [r0] cmp r0, #0x18 @@ -50,7 +50,7 @@ _08021792: bl sub_08021768 b _080217FA .align 2, 0 -_080217A4: .4byte gLinkState +_080217A4: .4byte gPlayerState _080217A8: movs r1, #0 movs r0, #5 @@ -71,7 +71,7 @@ _080217A8: movs r1, #3 orrs r0, r1 strb r0, [r2] - ldr r0, _080217EC @ =gLinkEntity + ldr r0, _080217EC @ =gPlayerEntity adds r1, r4, #0 bl CopyPositionAndSpriteOffset ldr r0, _080217F0 @ =0x0000FFFF @@ -85,7 +85,7 @@ _080217A8: bl InitializeAnimation b _080217FA .align 2, 0 -_080217EC: .4byte gLinkEntity +_080217EC: .4byte gPlayerEntity _080217F0: .4byte 0x0000FFFF _080217F4: adds r0, r4, #0 @@ -376,7 +376,7 @@ sub_08021A10: @ 0x08021A10 push {r4, lr} adds r4, r0, #0 bl GetNextFrame - ldr r1, _08021A60 @ =gLinkEntity + ldr r1, _08021A60 @ =gPlayerEntity adds r0, r4, #0 movs r2, #0x78 movs r3, #0x50 @@ -409,7 +409,7 @@ sub_08021A10: @ 0x08021A10 _08021A5E: pop {r4, pc} .align 2, 0 -_08021A60: .4byte gLinkEntity +_08021A60: .4byte gPlayerEntity thumb_func_start sub_08021A64 sub_08021A64: @ 0x08021A64 @@ -542,7 +542,7 @@ _08021B60: sub_08021B64: @ 0x08021B64 push {r4, r5, r6, lr} adds r4, r0, #0 - ldr r0, _08021B88 @ =gLinkState + ldr r0, _08021B88 @ =gPlayerState ldr r1, [r0, #0x30] movs r2, #4 ands r1, r2 @@ -558,7 +558,7 @@ sub_08021B64: @ 0x08021B64 bl InitializeAnimation b _08021C4E .align 2, 0 -_08021B88: .4byte gLinkState +_08021B88: .4byte gPlayerState _08021B8C: movs r5, #1 adds r0, r6, #0 @@ -603,7 +603,7 @@ _08021BC8: adds r0, r4, #0 adds r0, #0x87 strb r5, [r0] - ldr r2, _08021BEC @ =gLinkEntity + ldr r2, _08021BEC @ =gPlayerEntity ldrb r1, [r2, #0x15] adds r0, r1, #0 cmp r0, #0xff @@ -611,7 +611,7 @@ _08021BC8: movs r0, #0x10 b _08021BF6 .align 2, 0 -_08021BEC: .4byte gLinkEntity +_08021BEC: .4byte gPlayerEntity _08021BF0: ldrb r0, [r2, #0x14] lsls r0, r0, #2 @@ -637,7 +637,7 @@ _08021C04: ldrb r0, [r1] adds r0, #1 strb r0, [r1] - ldr r0, _08021C50 @ =gLinkEntity + ldr r0, _08021C50 @ =gPlayerEntity adds r1, r4, #0 bl CopyPositionAndSpriteOffset ldr r2, _08021C54 @ =gUnk_080CB5E4 @@ -662,7 +662,7 @@ _08021C04: _08021C4E: pop {r4, r5, r6, pc} .align 2, 0 -_08021C50: .4byte gLinkEntity +_08021C50: .4byte gPlayerEntity _08021C54: .4byte gUnk_080CB5E4 thumb_func_start sub_08021C58 diff --git a/asm/bigGoron.s b/asm/bigGoron.s index 1b89658f..9cba6a4a 100644 --- a/asm/bigGoron.s +++ b/asm/bigGoron.s @@ -1058,7 +1058,7 @@ sub_0806D7C4: @ 0x0806D7C4 sub sp, #4 adds r4, r0, #0 adds r5, r1, #0 - ldr r1, _0806D800 @ =gLinkEntity + ldr r1, _0806D800 @ =gPlayerEntity ldrh r0, [r1, #0x2e] movs r2, #0 strh r0, [r4, #0x2e] @@ -1084,7 +1084,7 @@ _0806D7FC: add sp, #4 pop {r4, r5, pc} .align 2, 0 -_0806D800: .4byte gLinkEntity +_0806D800: .4byte gPlayerEntity thumb_func_start sub_0806D804 sub_0806D804: @ 0x0806D804 @@ -1115,7 +1115,7 @@ sub_0806D804: @ 0x0806D804 ands r0, r1 strb r0, [r2] _0806D83A: - ldr r0, _0806D854 @ =gLinkEntity + ldr r0, _0806D854 @ =gPlayerEntity movs r1, #0x2e ldrsh r2, [r0, r1] movs r1, #0x32 @@ -1127,7 +1127,7 @@ _0806D83A: add sp, #4 pop {r4, r5, pc} .align 2, 0 -_0806D854: .4byte gLinkEntity +_0806D854: .4byte gPlayerEntity thumb_func_start sub_0806D858 sub_0806D858: @ 0x0806D858 diff --git a/asm/bigPushableLever.s b/asm/bigPushableLever.s index 5a6f2d72..3edb8811 100644 --- a/asm/bigPushableLever.s +++ b/asm/bigPushableLever.s @@ -73,7 +73,7 @@ sub_08098F14: @ 0x08098F14 bl sub_08079F8C cmp r0, #0 beq _08098F84 - ldr r2, _08098F88 @ =gLinkState + ldr r2, _08098F88 @ =gPlayerState movs r0, #0x98 strb r0, [r2, #6] movs r0, #5 @@ -82,7 +82,7 @@ sub_08098F14: @ 0x08098F14 movs r1, #1 orrs r0, r1 str r0, [r2, #0x30] - ldr r1, _08098F8C @ =gLinkEntity + ldr r1, _08098F8C @ =gPlayerEntity strh r6, [r1, #0x2c] strh r6, [r1, #0x30] ldrb r0, [r1, #0x14] @@ -91,8 +91,8 @@ sub_08098F14: @ 0x08098F14 _08098F84: pop {r4, r5, r6, pc} .align 2, 0 -_08098F88: .4byte gLinkState -_08098F8C: .4byte gLinkEntity +_08098F88: .4byte gPlayerState +_08098F8C: .4byte gPlayerEntity thumb_func_start sub_08098F90 sub_08098F90: @ 0x08098F90 diff --git a/asm/bigVortex.s b/asm/bigVortex.s index 3d1d3a1b..a60b28ea 100644 --- a/asm/bigVortex.s +++ b/asm/bigVortex.s @@ -123,7 +123,7 @@ _08098DC2: sub_08098DC4: @ 0x08098DC4 push {r4, r5, r6, lr} adds r5, r0, #0 - ldr r6, _08098E2C @ =gLinkEntity + ldr r6, _08098E2C @ =gPlayerEntity adds r1, r6, #0 movs r2, #8 movs r3, #8 @@ -144,7 +144,7 @@ sub_08098DC4: @ 0x08098DC4 adds r0, r5, #0 adds r1, r6, #0 bl ResolveEntityOnTop - ldr r1, _08098E30 @ =gLinkState + ldr r1, _08098E30 @ =gPlayerState movs r0, #0x1f strb r0, [r1, #0xc] adds r0, r1, #0 @@ -168,8 +168,8 @@ _08098E24: bl UpdateAnimationSingleFrame pop {r4, r5, r6, pc} .align 2, 0 -_08098E2C: .4byte gLinkEntity -_08098E30: .4byte gLinkState +_08098E2C: .4byte gPlayerEntity +_08098E30: .4byte gPlayerState thumb_func_start sub_08098E34 sub_08098E34: @ 0x08098E34 diff --git a/asm/bird.s b/asm/bird.s index 3e5549cb..dae30ccc 100644 --- a/asm/bird.s +++ b/asm/bird.s @@ -277,7 +277,7 @@ sub_0809D10C: @ 0x0809D10C sub_0809D130: @ 0x0809D130 push {lr} adds r2, r0, #0 - ldr r0, _0809D148 @ =gLinkState + ldr r0, _0809D148 @ =gPlayerState ldr r0, [r0, #0x30] movs r1, #0x80 ands r0, r1 @@ -287,7 +287,7 @@ sub_0809D130: @ 0x0809D130 bl sub_0800445C b _0809D170 .align 2, 0 -_0809D148: .4byte gLinkState +_0809D148: .4byte gPlayerState _0809D14C: adds r0, r2, #0 bl sub_08017850 @@ -384,7 +384,7 @@ sub_0809D1F0: @ 0x0809D1F0 cmp r0, #1 beq _0809D2B0 bl sub_08078B48 - ldr r2, _0809D220 @ =gLinkEntity + ldr r2, _0809D220 @ =gPlayerEntity ldrb r1, [r2, #0x18] movs r0, #4 rsbs r0, r0, #0 @@ -395,7 +395,7 @@ sub_0809D1F0: @ 0x0809D1F0 mov r8, r1 b _0809D3A8 .align 2, 0 -_0809D220: .4byte gLinkEntity +_0809D220: .4byte gPlayerEntity _0809D224: ldrb r1, [r5, #0xe] cmp r1, #0 @@ -440,7 +440,7 @@ _0809D234: ldr r0, _0809D2A4 @ =gRoomControls ldrh r0, [r0, #0xa] strh r0, [r5, #0x2e] - ldr r0, _0809D2A8 @ =gLinkEntity + ldr r0, _0809D2A8 @ =gPlayerEntity ldrh r0, [r0, #0x32] strh r0, [r5, #0x32] mov r3, sb @@ -460,10 +460,10 @@ _0809D234: .align 2, 0 _0809D2A0: .4byte 0xFFEC0000 _0809D2A4: .4byte gRoomControls -_0809D2A8: .4byte gLinkEntity +_0809D2A8: .4byte gPlayerEntity _0809D2AC: .4byte 0x00000123 _0809D2B0: - ldr r6, _0809D430 @ =gLinkEntity + ldr r6, _0809D430 @ =gPlayerEntity adds r0, r6, #0 adds r0, #0x38 ldrb r1, [r0] @@ -504,7 +504,7 @@ _0809D2D6: beq _0809D3A8 cmp r0, #9 beq _0809D3A8 - ldr r7, _0809D438 @ =gLinkState + ldr r7, _0809D438 @ =gPlayerState adds r0, r7, #0 adds r0, #0xa8 ldrb r0, [r0] @@ -594,7 +594,7 @@ _0809D3A8: ldr r4, [r5, #0x54] cmp r4, #0 beq _0809D454 - ldr r2, _0809D430 @ =gLinkEntity + ldr r2, _0809D430 @ =gPlayerEntity movs r3, #0x2e ldrsh r1, [r2, r3] movs r3, #0x2e @@ -647,9 +647,9 @@ _0809D3DA: strb r1, [r4, #0x1b] b _0809D454 .align 2, 0 -_0809D430: .4byte gLinkEntity +_0809D430: .4byte gPlayerEntity _0809D434: .4byte gTextBox -_0809D438: .4byte gLinkState +_0809D438: .4byte gPlayerState _0809D43C: .4byte gUnk_03003DC0 _0809D440: .4byte gUnk_02034490 _0809D444: .4byte 0xFFF80000 @@ -751,7 +751,7 @@ sub_0809D498: @ 0x0809D498 ldr r0, _0809D53C @ =gRoomControls ldrh r0, [r0, #0xa] strh r0, [r5, #0x2e] - ldr r0, _0809D540 @ =gLinkEntity + ldr r0, _0809D540 @ =gPlayerEntity ldrh r0, [r0, #0x32] strh r0, [r5, #0x32] ldr r0, _0809D544 @ =0x00000123 @@ -773,14 +773,14 @@ sub_0809D498: @ 0x0809D498 _0809D534: .4byte 0xFFFD8000 _0809D538: .4byte 0xFFB4C000 _0809D53C: .4byte gRoomControls -_0809D540: .4byte gLinkEntity +_0809D540: .4byte gPlayerEntity _0809D544: .4byte 0x00000123 _0809D548: adds r7, r5, #0 adds r7, #0x68 cmp r0, #1 bne _0809D62E - ldr r6, _0809D658 @ =gLinkEntity + ldr r6, _0809D658 @ =gPlayerEntity ldrb r1, [r6, #0x18] movs r0, #4 rsbs r0, r0, #0 @@ -904,7 +904,7 @@ _0809D652: mov r8, r3 pop {r4, r5, r6, r7, pc} .align 2, 0 -_0809D658: .4byte gLinkEntity +_0809D658: .4byte gPlayerEntity _0809D65C: .4byte 0xFFF80000 _0809D660: .4byte gRoomControls _0809D664: .4byte gUnk_02034490 @@ -914,7 +914,7 @@ _0809D668: .4byte gUnk_0800B0AC sub_0809D66C: @ 0x0809D66C push {r4, lr} adds r4, r0, #0 - ldr r0, _0809D694 @ =gLinkEntity + ldr r0, _0809D694 @ =gPlayerEntity ldrb r1, [r0, #0x1a] lsls r1, r1, #0x1c lsrs r1, r1, #0x1c @@ -933,7 +933,7 @@ sub_0809D66C: @ 0x0809D66C beq _0809D6A2 b _0809D6FE .align 2, 0 -_0809D694: .4byte gLinkEntity +_0809D694: .4byte gPlayerEntity _0809D698: cmp r0, #2 beq _0809D6F4 diff --git a/asm/bobomb.s b/asm/bobomb.s index 91e41cd7..13cc7b13 100644 --- a/asm/bobomb.s +++ b/asm/bobomb.s @@ -86,13 +86,13 @@ _0802C70C: adds r1, #0x42 movs r0, #0 strb r0, [r1] - ldr r0, _0802C728 @ =gLinkEntity + ldr r0, _0802C728 @ =gPlayerEntity adds r0, #0x42 movs r1, #4 strb r1, [r0] b _0802C7A6 .align 2, 0 -_0802C728: .4byte gLinkEntity +_0802C728: .4byte gPlayerEntity _0802C72C: movs r1, #0 movs r0, #3 @@ -258,7 +258,7 @@ sub_0802C83C: @ 0x0802C83C bne _0802C884 movs r0, #3 strb r0, [r4, #0xc] - ldr r0, _0802C86C @ =gLinkEntity + ldr r0, _0802C86C @ =gPlayerEntity ldrb r0, [r0, #0x14] movs r1, #6 ands r1, r0 @@ -268,7 +268,7 @@ sub_0802C83C: @ 0x0802C83C beq _0802C876 b _0802C87C .align 2, 0 -_0802C86C: .4byte gLinkEntity +_0802C86C: .4byte gPlayerEntity _0802C870: ldrh r0, [r4, #0x2e] subs r0, #6 @@ -495,7 +495,7 @@ sub_0802C9D0: @ 0x0802C9D0 sub_0802CA10: @ 0x0802CA10 push {r4, lr} adds r4, r0, #0 - ldr r0, _0802CA30 @ =gLinkState + ldr r0, _0802CA30 @ =gPlayerState ldrb r0, [r0, #5] cmp r0, #5 beq _0802CA42 @@ -509,7 +509,7 @@ sub_0802CA10: @ 0x0802CA10 bl sub_0802CBC4 b _0802CA66 .align 2, 0 -_0802CA30: .4byte gLinkState +_0802CA30: .4byte gPlayerState _0802CA34: adds r0, r4, #0 bl sub_0802CC18 @@ -521,7 +521,7 @@ _0802CA42: adds r1, #0x83 movs r0, #2 strb r0, [r1] - ldr r0, _0802CA68 @ =gLinkEntity + ldr r0, _0802CA68 @ =gPlayerEntity ldrb r0, [r0, #0x14] lsls r0, r0, #2 movs r1, #4 @@ -536,7 +536,7 @@ _0802CA42: _0802CA66: pop {r4, pc} .align 2, 0 -_0802CA68: .4byte gLinkEntity +_0802CA68: .4byte gPlayerEntity thumb_func_start sub_0802CA6C sub_0802CA6C: @ 0x0802CA6C @@ -594,7 +594,7 @@ sub_0802CA94: @ 0x0802CA94 strb r0, [r1] subs r1, #2 strb r0, [r1] - ldr r0, _0802CAF4 @ =gLinkEntity + ldr r0, _0802CAF4 @ =gPlayerEntity ldrb r1, [r0, #0x14] lsls r1, r1, #2 movs r0, #4 @@ -609,7 +609,7 @@ sub_0802CA94: @ 0x0802CA94 bl InitializeAnimation pop {pc} .align 2, 0 -_0802CAF4: .4byte gLinkEntity +_0802CAF4: .4byte gPlayerEntity thumb_func_start sub_0802CAF8 sub_0802CAF8: @ 0x0802CAF8 diff --git a/asm/bombPeahat.s b/asm/bombPeahat.s index 86b5a143..cb6928ae 100644 --- a/asm/bombPeahat.s +++ b/asm/bombPeahat.s @@ -1110,7 +1110,7 @@ _0802B10E: ldrb r0, [r4, #0xd] cmp r0, #1 bne _0802B12E - ldr r0, _0802B188 @ =gLinkState + ldr r0, _0802B188 @ =gPlayerState strb r1, [r0, #5] _0802B12E: adds r0, r4, #0 @@ -1157,7 +1157,7 @@ _0802B16C: strb r0, [r1] b _0802B19E .align 2, 0 -_0802B188: .4byte gLinkState +_0802B188: .4byte gPlayerState _0802B18C: .4byte gUnk_080CD17C _0802B190: adds r0, r4, #0 diff --git a/asm/book.s b/asm/book.s index 07893253..992ba2c0 100644 --- a/asm/book.s +++ b/asm/book.s @@ -174,7 +174,7 @@ _0809B4C0: strh r0, [r4, #0x24] movs r0, #0x10 strb r0, [r4, #0x15] - ldr r2, _0809B510 @ =gLinkState + ldr r2, _0809B510 @ =gPlayerState movs r0, #0x9e strb r0, [r2, #6] movs r0, #5 @@ -183,7 +183,7 @@ _0809B4C0: movs r1, #1 orrs r0, r1 str r0, [r2, #0x30] - ldr r1, _0809B514 @ =gLinkEntity + ldr r1, _0809B514 @ =gPlayerEntity strh r3, [r1, #0x2c] strh r3, [r1, #0x30] ldrb r0, [r1, #0x14] @@ -193,8 +193,8 @@ _0809B4C0: bl sub_08004488 b _0809B520 .align 2, 0 -_0809B510: .4byte gLinkState -_0809B514: .4byte gLinkEntity +_0809B510: .4byte gPlayerState +_0809B514: .4byte gPlayerEntity _0809B518: .4byte 0x0000010F _0809B51C: movs r0, #0x16 @@ -283,7 +283,7 @@ _0809B5B0: sub_0809B5B4: @ 0x0809B5B4 push {r4, lr} adds r4, r0, #0 - ldr r0, _0809B5CC @ =gLinkState + ldr r0, _0809B5CC @ =gPlayerState ldr r0, [r0, #0x30] movs r1, #0x80 ands r0, r1 @@ -293,7 +293,7 @@ sub_0809B5B4: @ 0x0809B5B4 bl sub_0800445C b _0809B5EA .align 2, 0 -_0809B5CC: .4byte gLinkState +_0809B5CC: .4byte gPlayerState _0809B5D0: adds r0, r4, #0 bl sub_08017850 @@ -396,14 +396,14 @@ _0809B684: .4byte gTextBox thumb_func_start sub_0809B688 sub_0809B688: @ 0x0809B688 push {lr} - ldr r1, _0809B6A8 @ =gLinkEntity + ldr r1, _0809B6A8 @ =gPlayerEntity movs r2, #6 movs r3, #0xc bl sub_080041A0 adds r1, r0, #0 cmp r1, #1 bne _0809B6A4 - ldr r0, _0809B6AC @ =gLinkState + ldr r0, _0809B6AC @ =gPlayerState ldrb r0, [r0, #0xd] cmp r0, #0x10 beq _0809B6A4 @@ -412,8 +412,8 @@ _0809B6A4: adds r0, r1, #0 pop {pc} .align 2, 0 -_0809B6A8: .4byte gLinkEntity -_0809B6AC: .4byte gLinkState +_0809B6A8: .4byte gPlayerEntity +_0809B6AC: .4byte gPlayerState thumb_func_start sub_0809B6B0 sub_0809B6B0: @ 0x0809B6B0 diff --git a/asm/bossDoor.s b/asm/bossDoor.s index 11ecdf34..50bdfbad 100644 --- a/asm/bossDoor.s +++ b/asm/bossDoor.s @@ -235,7 +235,7 @@ sub_0808C384: @ 0x0808C384 movs r1, #0 movs r2, #1 bl sub_08078AC0 - ldr r1, _0808C3B8 @ =gLinkEntity + ldr r1, _0808C3B8 @ =gPlayerEntity ldrb r0, [r4, #0xa] lsls r0, r0, #3 strb r0, [r1, #0x15] @@ -244,7 +244,7 @@ _0808C3B0: _0808C3B4: pop {r4, pc} .align 2, 0 -_0808C3B8: .4byte gLinkEntity +_0808C3B8: .4byte gPlayerEntity thumb_func_start sub_0808C3BC sub_0808C3BC: @ 0x0808C3BC diff --git a/asm/bowUse.s b/asm/bowUse.s index 13219953..e6079a26 100644 --- a/asm/bowUse.s +++ b/asm/bowUse.s @@ -104,7 +104,7 @@ _0801921A: ands r1, r3 lsls r1, r1, #6 orrs r0, r1 - ldr r1, _0801928C @ =gLinkEntity + ldr r1, _0801928C @ =gPlayerEntity adds r1, #0x38 ldrb r1, [r1] movs r2, #0x80 @@ -141,7 +141,7 @@ _0801921A: b _080192A2 .align 2, 0 _08019288: .4byte gRoomControls -_0801928C: .4byte gLinkEntity +_0801928C: .4byte gPlayerEntity _08019290: .4byte gUnk_08003E44 _08019294: adds r0, r4, #0 @@ -238,7 +238,7 @@ _08019336: strb r0, [r4, #0x18] b _08019402 _0801934A: - ldr r1, _0801938C @ =gLinkState + ldr r1, _0801938C @ =gPlayerState ldr r0, [r1, #0x2c] cmp r0, r4 bne _0801935E @@ -259,7 +259,7 @@ _08019368: ldrb r0, [r0] cmp r0, #0xa bne _08019398 - ldr r0, _0801938C @ =gLinkState + ldr r0, _0801938C @ =gPlayerState adds r2, r0, #0 adds r2, #0x21 ldrb r0, [r2] @@ -272,7 +272,7 @@ _08019368: strb r0, [r2] b _08019398 .align 2, 0 -_0801938C: .4byte gLinkState +_0801938C: .4byte gPlayerState _08019390: adds r1, r4, #0 adds r1, #0x40 @@ -285,7 +285,7 @@ _08019398: ldrb r1, [r4, #0x1e] ldr r2, [r4, #0x78] subs r1, r1, r2 - ldr r0, _08019408 @ =gLinkEntity + ldr r0, _08019408 @ =gPlayerEntity ldrb r0, [r0, #0x1e] cmp r1, r0 beq _080193C2 @@ -301,7 +301,7 @@ _080193B8: adds r0, r4, #0 bl sub_080042D0 _080193C2: - ldr r0, _08019408 @ =gLinkEntity + ldr r0, _08019408 @ =gPlayerEntity adds r0, #0x5a ldrb r1, [r0] movs r0, #1 @@ -319,7 +319,7 @@ _080193C2: bl CreatePlayerItem cmp r0, #0 beq _080193FA - ldr r2, _0801940C @ =gLinkState + ldr r2, _0801940C @ =gPlayerState ldrb r1, [r2, #4] movs r0, #0x80 orrs r0, r1 @@ -328,12 +328,12 @@ _080193C2: rsbs r0, r0, #0 bl ModArrows _080193FA: - ldr r1, _08019408 @ =gLinkEntity + ldr r1, _08019408 @ =gPlayerEntity adds r0, r4, #0 bl sub_08078E84 _08019402: pop {r4, r5, r6, r7, pc} .align 2, 0 _08019404: .4byte gUnk_02002A40 -_08019408: .4byte gLinkEntity -_0801940C: .4byte gLinkState \ No newline at end of file +_08019408: .4byte gPlayerEntity +_0801940C: .4byte gPlayerState \ No newline at end of file diff --git a/asm/brocco.s b/asm/brocco.s index 34dc7917..4473f3c9 100644 --- a/asm/brocco.s +++ b/asm/brocco.s @@ -192,7 +192,7 @@ _08063662: adds r1, r4, #0 adds r1, #0x69 strb r0, [r1] - ldr r1, _080636A0 @ =gLinkEntity + ldr r1, _080636A0 @ =gPlayerEntity adds r0, r4, #0 bl GetFacingDirection bl sub_0806F5A4 @@ -204,7 +204,7 @@ _08063662: bl sub_0806F118 b _080636D4 .align 2, 0 -_080636A0: .4byte gLinkEntity +_080636A0: .4byte gPlayerEntity _080636A4: adds r0, r4, #0 movs r1, #0 diff --git a/asm/businessScrub.s b/asm/businessScrub.s index 1a681b03..130660f9 100644 --- a/asm/businessScrub.s +++ b/asm/businessScrub.s @@ -631,7 +631,7 @@ _08028DE4: .4byte 0x00002903 sub_08028DE8: @ 0x08028DE8 push {r4, lr} adds r4, r0, #0 - ldr r0, _08028E08 @ =gLinkEntity + ldr r0, _08028E08 @ =gPlayerEntity ldrb r0, [r0, #0xc] cmp r0, #8 bne _08028E0C @@ -645,7 +645,7 @@ sub_08028DE8: @ 0x08028DE8 strb r0, [r4] b _08028E3A .align 2, 0 -_08028E08: .4byte gLinkEntity +_08028E08: .4byte gPlayerEntity _08028E0C: ldr r0, _08028E3C @ =0x00002902 bl TextboxNoOverlapFollow diff --git a/asm/businessScrubPrologue.s b/asm/businessScrubPrologue.s index 4cfb8803..b307d3c5 100644 --- a/asm/businessScrubPrologue.s +++ b/asm/businessScrubPrologue.s @@ -80,7 +80,7 @@ sub_08045BC8: @ 0x08045BC8 subs r0, #8 strh r0, [r1, #0x36] _08045C16: - ldr r0, _08045C30 @ =gLinkState + ldr r0, _08045C30 @ =gPlayerState adds r0, #0x27 movs r1, #0xff strb r1, [r0] @@ -92,7 +92,7 @@ _08045C16: _08045C2C: pop {r4, pc} .align 2, 0 -_08045C30: .4byte gLinkState +_08045C30: .4byte gPlayerState _08045C34: .4byte 0x000001BB thumb_func_start nullsub_174 @@ -341,7 +341,7 @@ _08045E12: sub_08045E14: @ 0x08045E14 push {r4, lr} adds r4, r0, #0 - ldr r0, _08045E2C @ =gLinkState + ldr r0, _08045E2C @ =gPlayerState adds r0, #0x27 movs r1, #0xff strb r1, [r0] @@ -352,7 +352,7 @@ sub_08045E14: @ 0x08045E14 beq _08045E70 b _08045EBA .align 2, 0 -_08045E2C: .4byte gLinkState +_08045E2C: .4byte gPlayerState _08045E30: ldrb r0, [r4, #0xe] cmp r0, #0 @@ -667,7 +667,7 @@ _08046074: .4byte gUnk_080D1A3E sub_08046078: @ 0x08046078 push {r4, r5, r6, r7, lr} adds r7, r0, #0 - ldr r0, _08046114 @ =gLinkState + ldr r0, _08046114 @ =gPlayerState adds r0, #0x27 movs r1, #0 strb r1, [r0] @@ -737,7 +737,7 @@ _0804610C: bl sub_0804AA1C pop {r4, r5, r6, r7, pc} .align 2, 0 -_08046114: .4byte gLinkState +_08046114: .4byte gPlayerState _08046118: .4byte gUnk_080D1A4E _0804611C: .4byte gRoomControls _08046120: .4byte 0x000007A2 diff --git a/asm/button.s b/asm/button.s index 7271ac7c..044a9d1a 100644 --- a/asm/button.s +++ b/asm/button.s @@ -172,7 +172,7 @@ sub_08081BE0: @ 0x08081BE0 strb r0, [r4, #0xc] movs r0, #1 strb r0, [r4, #0xf] - ldr r1, _08081C1C @ =gLinkState + ldr r1, _08081C1C @ =gPlayerState ldrb r0, [r1, #5] cmp r0, #2 beq _08081C16 @@ -188,7 +188,7 @@ _08081C16: strb r0, [r4, #0xe] b _08081C2C .align 2, 0 -_08081C1C: .4byte gLinkState +_08081C1C: .4byte gPlayerState _08081C20: movs r0, #8 strb r0, [r4, #0xe] @@ -389,19 +389,19 @@ _08081D8E: bl sub_08081E0C cmp r0, #0 beq _08081DB4 - ldr r0, _08081DAC @ =gLinkState + ldr r0, _08081DAC @ =gPlayerState ldr r0, [r0, #0x30] movs r1, #0x90 ands r0, r1 cmp r0, #0 bne _08081E06 - ldr r6, _08081DB0 @ =gLinkEntity + ldr r6, _08081DB0 @ =gPlayerEntity b _08081E06 .align 2, 0 -_08081DAC: .4byte gLinkState -_08081DB0: .4byte gLinkEntity +_08081DAC: .4byte gPlayerState +_08081DB0: .4byte gPlayerEntity _08081DB4: - ldr r0, _08081DD8 @ =gLinkState + ldr r0, _08081DD8 @ =gPlayerState ldr r0, [r0, #0x30] movs r1, #0x80 lsls r1, r1, #0xf @@ -419,7 +419,7 @@ _08081DB4: ldr r6, [r5] b _08081E06 .align 2, 0 -_08081DD8: .4byte gLinkState +_08081DD8: .4byte gPlayerState _08081DDC: .4byte gUnk_03004040 _08081DE0: ldr r1, [r5, #4] @@ -450,7 +450,7 @@ _08081E0A: sub_08081E0C: @ 0x08081E0C push {r4, r5, lr} adds r4, r0, #0 - ldr r5, _08081E28 @ =gLinkEntity + ldr r5, _08081E28 @ =gPlayerEntity movs r1, #0x36 ldrsh r0, [r5, r1] cmp r0, #0 @@ -462,7 +462,7 @@ _08081E22: movs r0, #0 b _08081E38 .align 2, 0 -_08081E28: .4byte gLinkEntity +_08081E28: .4byte gPlayerEntity _08081E2C: adds r0, r4, #0 adds r1, r5, #0 @@ -711,7 +711,7 @@ sub_08081FF8: @ 0x08081FF8 push {r4, r5, r6, lr} adds r4, r0, #0 ldr r1, [r4, #0x54] - ldr r0, _08082038 @ =gLinkEntity + ldr r0, _08082038 @ =gPlayerEntity cmp r1, r0 bne _08082036 adds r0, r1, #0 @@ -741,5 +741,5 @@ _0808202E: _08082036: pop {r4, r5, r6, pc} .align 2, 0 -_08082038: .4byte gLinkEntity +_08082038: .4byte gPlayerEntity _0808203C: .4byte gUnk_03004040 diff --git a/asm/castleMaid.s b/asm/castleMaid.s index 20c03bd5..4eaebcec 100644 --- a/asm/castleMaid.s +++ b/asm/castleMaid.s @@ -142,7 +142,7 @@ _080645EA: movs r1, #0 strb r0, [r4, #0xc] strb r1, [r2] - ldr r1, _08064628 @ =gLinkEntity + ldr r1, _08064628 @ =gPlayerEntity adds r0, r4, #0 bl GetFacingDirection bl sub_0806F5A4 @@ -155,7 +155,7 @@ _080645EA: bl _call_via_r0 b _0806463C .align 2, 0 -_08064628: .4byte gLinkEntity +_08064628: .4byte gPlayerEntity _0806462C: ldr r0, _08064640 @ =gTextBox ldrb r1, [r0] diff --git a/asm/cat.s b/asm/cat.s index 6d94d261..2b3282f7 100644 --- a/asm/cat.s +++ b/asm/cat.s @@ -37,7 +37,7 @@ sub_080677EC: @ 0x080677EC adds r1, #0x2e movs r0, #0xff strb r0, [r1] - ldr r0, _0806783C @ =gLinkEntity + ldr r0, _0806783C @ =gPlayerEntity movs r2, #0x2e ldrsh r1, [r4, r2] movs r2, #0x2e @@ -49,7 +49,7 @@ sub_080677EC: @ 0x080677EC orrs r0, r1 b _08067848 .align 2, 0 -_0806783C: .4byte gLinkEntity +_0806783C: .4byte gPlayerEntity _08067840: ldrb r1, [r4, #0x18] movs r0, #0x41 @@ -500,7 +500,7 @@ sub_08067B80: @ 0x08067B80 bl InitAnimationForceUpdate adds r0, r5, #0 bl sub_08067DDC - ldr r0, _08067BC4 @ =gLinkEntity + ldr r0, _08067BC4 @ =gPlayerEntity movs r2, #0x2e ldrsh r1, [r5, r2] movs r2, #0x2e @@ -512,7 +512,7 @@ sub_08067B80: @ 0x08067B80 orrs r0, r1 b _08067BD0 .align 2, 0 -_08067BC4: .4byte gLinkEntity +_08067BC4: .4byte gPlayerEntity _08067BC8: ldrb r1, [r5, #0x18] movs r0, #0x41 @@ -533,7 +533,7 @@ sub_08067BD4: @ 0x08067BD4 movs r1, #0x2e ldrsh r0, [r2, r1] subs r0, #4 - ldr r1, _08067BF8 @ =gLinkEntity + ldr r1, _08067BF8 @ =gPlayerEntity movs r4, #0x2e ldrsh r1, [r1, r4] cmp r0, r1 @@ -543,12 +543,12 @@ sub_08067BD4: @ 0x08067BD4 ands r0, r3 b _08067C10 .align 2, 0 -_08067BF8: .4byte gLinkEntity +_08067BF8: .4byte gPlayerEntity _08067BFC: movs r1, #0x2e ldrsh r0, [r2, r1] adds r0, #4 - ldr r1, _08067C14 @ =gLinkEntity + ldr r1, _08067C14 @ =gPlayerEntity movs r4, #0x2e ldrsh r1, [r1, r4] cmp r0, r1 @@ -560,7 +560,7 @@ _08067C10: _08067C12: pop {r4, pc} .align 2, 0 -_08067C14: .4byte gLinkEntity +_08067C14: .4byte gPlayerEntity thumb_func_start sub_08067C18 sub_08067C18: @ 0x08067C18 @@ -591,7 +591,7 @@ sub_08067C24: @ 0x08067C24 sub_08067C44: @ 0x08067C44 push {r4, r5, lr} adds r4, r0, #0 - ldr r0, _08067C6C @ =gLinkState + ldr r0, _08067C6C @ =gPlayerState ldr r0, [r0, #0x30] movs r1, #0x80 ands r0, r1 @@ -608,7 +608,7 @@ sub_08067C44: @ 0x08067C44 bl sub_08078778 b _08067C7C .align 2, 0 -_08067C6C: .4byte gLinkState +_08067C6C: .4byte gPlayerState _08067C70: adds r0, r4, #0 adds r0, #0x68 @@ -625,7 +625,7 @@ _08067C7C: adds r5, r0, #0 cmp r1, #0 beq _08067D1C - ldr r1, _08067CB4 @ =gLinkEntity + ldr r1, _08067CB4 @ =gPlayerEntity adds r0, r4, #0 bl sub_0806FCA0 adds r2, r0, #0 @@ -644,7 +644,7 @@ _08067CA6: bl InitAnimationForceUpdate b _08067CEC .align 2, 0 -_08067CB4: .4byte gLinkEntity +_08067CB4: .4byte gPlayerEntity _08067CB8: cmp r2, #1 bne _08067CC4 diff --git a/asm/cellOverwriteSet.s b/asm/cellOverwriteSet.s index 9910455d..58b0c171 100644 --- a/asm/cellOverwriteSet.s +++ b/asm/cellOverwriteSet.s @@ -14,7 +14,7 @@ CellOverwriteSet: @ 0x0801BEF8 mov r5, r8 push {r5, r6, r7} mov r8, r0 - ldr r7, _0801BFF0 @ =gLinkEntity + ldr r7, _0801BFF0 @ =gPlayerEntity ldrb r0, [r0, #0xc] cmp r0, #0 bne _0801BF62 @@ -61,7 +61,7 @@ CellOverwriteSet: @ 0x0801BEF8 adds r0, #1 strb r0, [r1, #0xc] _0801BF62: - ldr r2, _0801BFFC @ =gLinkState + ldr r2, _0801BFFC @ =gPlayerState mov sb, r2 ldrb r1, [r2, #0x1a] movs r0, #0x80 @@ -133,10 +133,10 @@ _0801BFDA: strb r0, [r1] b _0801C0D4 .align 2, 0 -_0801BFF0: .4byte gLinkEntity +_0801BFF0: .4byte gPlayerEntity _0801BFF4: .4byte gUnk_080B7B6C _0801BFF8: .4byte gRoomControls -_0801BFFC: .4byte gLinkState +_0801BFFC: .4byte gPlayerState _0801C000: .4byte gUnk_03000FF0 _0801C004: ldrh r2, [r6, #2] diff --git a/asm/chestSpawner.s b/asm/chestSpawner.s index bed7ffa9..2d5c6661 100644 --- a/asm/chestSpawner.s +++ b/asm/chestSpawner.s @@ -158,7 +158,7 @@ sub_08083F14: @ 0x08083F14 .align 2, 0 _08083F74: .4byte gScreen _08083F78: - ldr r5, _08083FA0 @ =gLinkEntity + ldr r5, _08083FA0 @ =gPlayerEntity adds r0, r4, #0 adds r1, r5, #0 movs r2, #0x10 @@ -177,12 +177,12 @@ _08083F98: strb r0, [r4, #0xd] b _08083FE6 .align 2, 0 -_08083FA0: .4byte gLinkEntity +_08083FA0: .4byte gPlayerEntity _08083FA4: ldrb r0, [r4, #0xa] cmp r0, #5 beq _08083FB2 - ldr r0, _08083FC8 @ =gLinkEntity + ldr r0, _08083FC8 @ =gPlayerEntity ldrb r0, [r0, #0xc] cmp r0, #1 bne _08083FE6 @@ -198,7 +198,7 @@ _08083FB2: bl PlaySFX b _08083FE6 .align 2, 0 -_08083FC8: .4byte gLinkEntity +_08083FC8: .4byte gPlayerEntity _08083FCC: ldr r1, _08083FE8 @ =gUnk_02034490 movs r0, #0 diff --git a/asm/chuchuBoss.s b/asm/chuchuBoss.s index 8544335a..0ad8aaca 100644 --- a/asm/chuchuBoss.s +++ b/asm/chuchuBoss.s @@ -584,14 +584,14 @@ _080260EA: cmp r0, #0xff bne _08026106 ldr r1, _08026108 @ =gRoomControls - ldr r0, _0802610C @ =gLinkEntity + ldr r0, _0802610C @ =gPlayerEntity str r0, [r1, #0x30] bl DeleteThisEntity _08026106: pop {r4, pc} .align 2, 0 _08026108: .4byte gRoomControls -_0802610C: .4byte gLinkEntity +_0802610C: .4byte gPlayerEntity thumb_func_start sub_08026110 sub_08026110: @ 0x08026110 @@ -791,7 +791,7 @@ sub_0802626C: @ 0x0802626C adds r1, r1, r2 ldr r1, [r1] bl _call_via_r1 - ldr r0, _080262A4 @ =gLinkEntity + ldr r0, _080262A4 @ =gPlayerEntity ldrb r0, [r0, #0xc] cmp r0, #0x17 beq _08026298 @@ -803,7 +803,7 @@ _08026298: .align 2, 0 _0802629C: .4byte gUnk_02034490 _080262A0: .4byte gUnk_080CC20C -_080262A4: .4byte gLinkEntity +_080262A4: .4byte gPlayerEntity thumb_func_start sub_080262A8 sub_080262A8: @ 0x080262A8 @@ -829,7 +829,7 @@ sub_080262A8: @ 0x080262A8 ldrb r0, [r4, #0xb] cmp r0, #0 bne _080262EC - ldr r1, _080262E8 @ =gLinkState + ldr r1, _080262E8 @ =gPlayerState movs r0, #0x82 lsls r0, r0, #1 strh r0, [r1, #8] @@ -839,7 +839,7 @@ sub_080262A8: @ 0x080262A8 strb r5, [r0, #3] b _0802631A .align 2, 0 -_080262E8: .4byte gLinkState +_080262E8: .4byte gPlayerState _080262EC: adds r0, r4, #0 adds r0, #0x7c @@ -853,7 +853,7 @@ _080262EC: ldr r1, [r0] movs r0, #3 strb r0, [r1, #3] - ldr r0, _0802631C @ =gLinkEntity + ldr r0, _0802631C @ =gPlayerEntity strb r6, [r0, #0x14] ldr r0, _08026320 @ =gRoomControls str r4, [r0, #0x30] @@ -866,7 +866,7 @@ _080262EC: _0802631A: pop {r4, r5, r6, pc} .align 2, 0 -_0802631C: .4byte gLinkEntity +_0802631C: .4byte gPlayerEntity _08026320: .4byte gRoomControls _08026324: .4byte 0x00004022 @@ -874,7 +874,7 @@ _08026324: .4byte 0x00004022 sub_08026328: @ 0x08026328 push {lr} adds r2, r0, #0 - ldr r0, _08026354 @ =gLinkEntity + ldr r0, _08026354 @ =gPlayerEntity ldrb r0, [r0, #0xc] cmp r0, #0x17 beq _08026352 @@ -895,13 +895,13 @@ sub_08026328: @ 0x08026328 _08026352: pop {pc} .align 2, 0 -_08026354: .4byte gLinkEntity +_08026354: .4byte gPlayerEntity thumb_func_start sub_08026358 sub_08026358: @ 0x08026358 push {r4, lr} adds r3, r0, #0 - ldr r4, _08026398 @ =gLinkEntity + ldr r4, _08026398 @ =gPlayerEntity ldrb r0, [r4, #0xc] cmp r0, #0xf beq _080263B0 @@ -932,7 +932,7 @@ sub_08026358: @ 0x08026358 strb r0, [r1, #0xe] b _080263B0 .align 2, 0 -_08026398: .4byte gLinkEntity +_08026398: .4byte gPlayerEntity _0802639C: .4byte gRoomControls _080263A0: cmp r2, #0x60 @@ -1145,7 +1145,7 @@ sub_0802650C: @ 0x0802650C adds r0, #1 strb r0, [r1, #3] ldr r1, _08026534 @ =gRoomControls - ldr r0, _08026538 @ =gLinkEntity + ldr r0, _08026538 @ =gPlayerEntity str r0, [r1, #0x30] _0802652C: adds r0, r2, #0 @@ -1153,7 +1153,7 @@ _0802652C: pop {pc} .align 2, 0 _08026534: .4byte gRoomControls -_08026538: .4byte gLinkEntity +_08026538: .4byte gPlayerEntity thumb_func_start sub_0802653C sub_0802653C: @ 0x0802653C @@ -1221,7 +1221,7 @@ _0802659C: adds r4, #0x7c movs r0, #0x3c strb r0, [r4] - ldr r1, _080265E4 @ =gLinkEntity + ldr r1, _080265E4 @ =gPlayerEntity adds r0, r5, #0 bl GetFacingDirection strb r0, [r5, #0x15] @@ -1239,7 +1239,7 @@ _0802659C: adds r0, #0x10 b _080265EE .align 2, 0 -_080265E4: .4byte gLinkEntity +_080265E4: .4byte gPlayerEntity _080265E8: adds r1, r5, #0 adds r1, #0x80 @@ -1372,7 +1372,7 @@ _080266D6: ands r0, r1 cmp r0, #0 bne _080266EC - ldr r1, _08026704 @ =gLinkEntity + ldr r1, _08026704 @ =gPlayerEntity adds r0, r4, #0 bl GetFacingDirection strb r0, [r4, #0x15] @@ -1388,7 +1388,7 @@ _080266EC: b _0802670A .align 2, 0 _08026700: .4byte gScreenTransition -_08026704: .4byte gLinkEntity +_08026704: .4byte gPlayerEntity _08026708: movs r0, #0xc0 _0802670A: @@ -1549,7 +1549,7 @@ _08026820: strh r0, [r5] b _08026860 _08026830: - ldr r1, _08026868 @ =gLinkEntity + ldr r1, _08026868 @ =gPlayerEntity adds r0, r4, #0 bl GetFacingDirection strb r0, [r4, #0x15] @@ -1575,7 +1575,7 @@ _08026860: bl sub_080277F8 pop {r4, r5, r6, r7, pc} .align 2, 0 -_08026868: .4byte gLinkEntity +_08026868: .4byte gPlayerEntity thumb_func_start sub_0802686C sub_0802686C: @ 0x0802686C @@ -2659,7 +2659,7 @@ _08027098: adds r7, r0, #0 cmp r1, #0 beq _080270E0 - ldr r0, _080270CC @ =gLinkEntity + ldr r0, _080270CC @ =gPlayerEntity movs r2, #0x32 ldrsh r4, [r5, r2] movs r1, #0x32 @@ -2678,7 +2678,7 @@ _08027098: b _080270D4 .align 2, 0 _080270C8: .4byte gScreenTransition -_080270CC: .4byte gLinkEntity +_080270CC: .4byte gPlayerEntity _080270D0: movs r0, #0x10 strb r0, [r3, #0xc] @@ -2789,7 +2789,7 @@ _08027152: ldrb r0, [r0, #3] cmp r0, #1 bls _080271B2 - ldr r0, _080271DC @ =gLinkEntity + ldr r0, _080271DC @ =gPlayerEntity movs r2, #0x2e ldrsh r1, [r5, r2] movs r2, #0x2e @@ -2821,7 +2821,7 @@ _080271C0: movs r0, #0xf b _080271FC .align 2, 0 -_080271DC: .4byte gLinkEntity +_080271DC: .4byte gPlayerEntity _080271E0: adds r0, r1, #1 strb r0, [r2, #3] @@ -4186,7 +4186,7 @@ _08027C22: ldrb r0, [r6, #0x15] lsrs r0, r0, #2 strb r0, [r6, #0x14] - ldr r0, _08027C44 @ =gLinkEntity + ldr r0, _08027C44 @ =gPlayerEntity movs r2, #0x32 ldrsh r1, [r6, r2] movs r2, #0x32 @@ -4201,7 +4201,7 @@ _08027C22: movs r0, #0 b _08027C50 .align 2, 0 -_08027C44: .4byte gLinkEntity +_08027C44: .4byte gPlayerEntity _08027C48: adds r0, r6, #0 adds r0, #0x84 diff --git a/asm/code_080011C4.s b/asm/code_080011C4.s index 6296d255..5a8f8ec1 100644 --- a/asm/code_080011C4.s +++ b/asm/code_080011C4.s @@ -1404,7 +1404,7 @@ _0800293A: CheckPlayerInRegion: @ 0x0800293E push {r4, r5, r6, r7, lr} ldr r4, _080029AC @ =gRoomControls - ldr r7, _080029B0 @ =gLinkEntity + ldr r7, _080029B0 @ =gPlayerEntity ldrh r6, [r4, #6] ldrh r5, [r7, #0x2e] subs r5, r5, r6 @@ -1444,4 +1444,4 @@ _080029A0: .4byte 0x0000E040 _080029A4: .4byte 0x00000E20 _080029A8: .4byte gRoomControls _080029AC: .4byte gRoomControls -_080029B0: .4byte gLinkEntity +_080029B0: .4byte gPlayerEntity diff --git a/asm/code_080043E8.s b/asm/code_080043E8.s index b6284815..0a6fd073 100644 --- a/asm/code_080043E8.s +++ b/asm/code_080043E8.s @@ -64,7 +64,7 @@ sub_0800445C: @ 0x0800445C bl sub_08079F8C cmp r0, #0 beq _08004482 - ldr r5, _080044D8 @ =gLinkEntity + ldr r5, _080044D8 @ =gPlayerEntity adds r0, r4, #0 adds r1, r5, #0 bl sub_08004484 @@ -113,7 +113,7 @@ _080044AC: non_word_aligned_thumb_func_start sub_080044AE sub_080044AE: @ 0x080044AE push {lr} - ldr r3, _080044E8 @ =gLinkEntity + ldr r3, _080044E8 @ =gPlayerEntity cmp r0, r3 beq _080044CC push {r0, r1, r2} @@ -132,11 +132,11 @@ _080044CC: bl sub_08079E58 b _080044C8 .align 2, 0 -_080044D8: .4byte gLinkEntity +_080044D8: .4byte gPlayerEntity _080044DC: .4byte gUnk_03005FF0 _080044E0: .4byte gUnk_02024048 _080044E4: .4byte gUnk_02021F20 -_080044E8: .4byte gLinkEntity +_080044E8: .4byte gPlayerEntity thumb_func_start sub_080044EC sub_080044EC: @ 0x080044EC diff --git a/asm/code_0800857C.s b/asm/code_0800857C.s index 5d66e4b3..2cd3657b 100644 --- a/asm/code_0800857C.s +++ b/asm/code_0800857C.s @@ -16,7 +16,7 @@ sub_0800857C: @ 0x0800857C ldrb r1, [r0, #0xb] lsrs r1, r1, #8 bhs _0800859C - ldr r1, _08008888 @ =gLinkState + ldr r1, _08008888 @ =gPlayerState ldrb r1, [r1, #2] movs r2, #0x80 ands r1, r2 @@ -52,7 +52,7 @@ sub_080085B0: @ 0x080085B0 thumb_func_start sub_080085CC sub_080085CC: @ 0x080085CC push {lr} - ldr r2, _0800888C @ =gLinkState + ldr r2, _0800888C @ =gPlayerState ldr r1, _08008890 @ =gUnk_080083FC movs r3, #0x26 ldrb r3, [r2, r3] @@ -78,7 +78,7 @@ _080085E6: ands r2, r3 bne _0800861A ldr r1, _080088A4 @ =gUnk_080084BC - ldr r3, _080088A8 @ =gLinkState + ldr r3, _080088A8 @ =gPlayerState ldrb r2, [r3, #0x1c] orrs r2, r2 bne _0800861A @@ -179,7 +179,7 @@ sub_080086B4: @ 0x080086B4 mov r7, fp push {r4, r5, r6, r7} mov fp, r2 - ldr r2, _080088BC @ =gLinkEntity + ldr r2, _080088BC @ =gPlayerEntity mov r8, r2 bl sub_080086D8 pop {r4, r5, r6, r7} @@ -208,7 +208,7 @@ sub_080086D8: @ 0x080086D8 ldrb r2, [r0, r1] push {r2} mov r0, r8 - ldr r1, _080088C8 @ =gLinkState + ldr r1, _080088C8 @ =gPlayerState movs r2, #0x26 ldrb r2, [r1, r2] cmp r2, #0 @@ -428,23 +428,23 @@ _0800887E: adds r0, r5, #0 pop {r4, r5, r6, r7, pc} .align 2, 0 -_08008888: .4byte gLinkState -_0800888C: .4byte gLinkState +_08008888: .4byte gPlayerState +_0800888C: .4byte gPlayerState _08008890: .4byte gUnk_080083FC _08008894: .4byte gUnk_0800839C _08008898: .4byte gUnk_0800845C _0800889C: .4byte 0x01000000 _080088A0: .4byte gUnk_0800833C _080088A4: .4byte gUnk_080084BC -_080088A8: .4byte gLinkState +_080088A8: .4byte gPlayerState _080088AC: .4byte gUnk_0800851C _080088B0: .4byte gUnk_080082DC _080088B4: .4byte gUnk_03000BF6 _080088B8: .4byte gUnk_03000BF8 -_080088BC: .4byte gLinkEntity +_080088BC: .4byte gPlayerEntity _080088C0: .4byte 0x000003F0 _080088C4: .4byte gUnk_08000248 -_080088C8: .4byte gLinkState +_080088C8: .4byte gPlayerState _080088CC: .4byte gUnk_0800823C _080088D0: .4byte gUnk_08007DF4 _080088D4: .4byte gRoomControls @@ -487,13 +487,13 @@ sub_08008936: @ 0x08008936 ldrb r2, [r0, #0x14] lsrs r2, r2, #1 lsls r2, r2, #3 - ldr r1, _08008A68 @ =gLinkState + ldr r1, _08008A68 @ =gPlayerState b _08008960 non_word_aligned_thumb_func_start sub_08008942 sub_08008942: @ 0x08008942 push {lr} - ldr r1, _08008A6C @ =gLinkState + ldr r1, _08008A6C @ =gPlayerState ldrb r2, [r1, #7] ldrb r3, [r1, #0xa] orrs r2, r3 @@ -502,7 +502,7 @@ sub_08008942: @ 0x08008942 b _08008956 _08008952: push {lr} - ldr r1, _08008A70 @ =gLinkState + ldr r1, _08008A70 @ =gPlayerState _08008956: movs r3, #0x15 strb r2, [r0, r3] @@ -559,7 +559,7 @@ _080089A8: ldrsb r3, [r4, r3] bl sub_08008A46 _080089C0: - ldr r1, _08008A80 @ =gLinkState + ldr r1, _08008A80 @ =gPlayerState movs r4, #0x8c movs r2, #8 ldrsh r3, [r1, r4] @@ -636,7 +636,7 @@ _08008A3E: non_word_aligned_thumb_func_start sub_08008A46 sub_08008A46: @ 0x08008A46 push {lr} - ldr r1, _08008A84 @ =gLinkState + ldr r1, _08008A84 @ =gPlayerState movs r4, #0x8c ldrsh r5, [r1, r4] adds r5, r5, r2 @@ -651,14 +651,14 @@ _08008A60: strh r3, [r1] pop {pc} .align 2, 0 -_08008A68: .4byte gLinkState -_08008A6C: .4byte gLinkState -_08008A70: .4byte gLinkState +_08008A68: .4byte gPlayerState +_08008A6C: .4byte gPlayerState +_08008A70: .4byte gPlayerState _08008A74: .4byte _080088FC _08008A78: .4byte _080088EC _08008A7C: .4byte _0800890C -_08008A80: .4byte gLinkState -_08008A84: .4byte gLinkState +_08008A80: .4byte gPlayerState +_08008A84: .4byte gPlayerState thumb_func_start sub_08008A88 sub_08008A88: @ 0x08008A88 @@ -681,7 +681,7 @@ _08008A9C: thumb_func_start sub_08008AA0 sub_08008AA0: @ 0x08008AA0 push {r4, r5, lr} - ldr r1, _08008B40 @ =gLinkState + ldr r1, _08008B40 @ =gPlayerState ldrb r2, [r1, #0x12] cmp r2, #1 beq _08008AC4 @@ -704,7 +704,7 @@ _08008AC4: non_word_aligned_thumb_func_start sub_08008AC6 sub_08008AC6: @ 0x08008AC6 push {r0, lr} - ldr r1, _08008B48 @ =gLinkState + ldr r1, _08008B48 @ =gPlayerState movs r3, #0x26 ldrb r2, [r1, r3] movs r3, #0xf @@ -760,7 +760,7 @@ _08008B20: non_word_aligned_thumb_func_start sub_08008B22 sub_08008B22: @ 0x08008B22 push {lr} - ldr r0, _08008B58 @ =gLinkEntity + ldr r0, _08008B58 @ =gPlayerEntity bl sub_08008B02 adds r0, r2, #0 pop {pc} @@ -774,13 +774,13 @@ sub_08008B2E: @ 0x08008B2E .align 2, 0 _08008B38: .4byte 0x00000180 _08008B3C: .4byte 0xFFFFFE80 -_08008B40: .4byte gLinkState +_08008B40: .4byte gPlayerState _08008B44: .4byte gSineTable -_08008B48: .4byte gLinkState +_08008B48: .4byte gPlayerState _08008B4C: .4byte gUnk_02000020 _08008B50: .4byte 0x00004000 _08008B54: .4byte gUnk_08007CAC -_08008B58: .4byte gLinkEntity +_08008B58: .4byte gPlayerEntity gUnk_08008B5C:: @ 08008B5C .incbin "baserom.gba", 0x008B5C, 0x0000034 diff --git a/asm/code_08016DF8.s b/asm/code_08016DF8.s index ed16796d..69973edf 100644 --- a/asm/code_08016DF8.s +++ b/asm/code_08016DF8.s @@ -166,7 +166,7 @@ sub_08016F28: @ 0x08016F28 ldrb r0, [r0] cmp r0, #0 beq _08016F4C - ldr r0, _08016F48 @ =gLinkState + ldr r0, _08016F48 @ =gPlayerState ldr r1, [r0, #0x30] movs r2, #0x80 lsls r2, r2, #7 @@ -174,9 +174,9 @@ sub_08016F28: @ 0x08016F28 b _08016F54 .align 2, 0 _08016F44: .4byte gUnk_02002A40 -_08016F48: .4byte gLinkState +_08016F48: .4byte gPlayerState _08016F4C: - ldr r0, _08016F98 @ =gLinkState + ldr r0, _08016F98 @ =gPlayerState ldr r1, [r0, #0x30] ldr r2, _08016F9C @ =0xFFFFBFFF ands r1, r2 @@ -186,7 +186,7 @@ _08016F54: bl sub_0805E3B0 cmp r0, #0 bne _08016FDC - ldr r5, _08016F98 @ =gLinkState + ldr r5, _08016F98 @ =gPlayerState ldr r0, [r5, #0x30] movs r1, #0x80 lsls r1, r1, #0xc @@ -213,7 +213,7 @@ _08016F54: strb r0, [r4, #0x10] b _08016FB4 .align 2, 0 -_08016F98: .4byte gLinkState +_08016F98: .4byte gPlayerState _08016F9C: .4byte 0xFFFFBFFF _08016FA0: .4byte 0xFFF7FFFF _08016FA4: @@ -268,7 +268,7 @@ sub_08016FF4: @ 0x08016FF4 strb r1, [r2] adds r0, #0x2e strb r1, [r0] - ldr r2, _080170A4 @ =gLinkEntity + ldr r2, _080170A4 @ =gPlayerEntity adds r0, r2, #0 adds r0, #0x41 ldrb r1, [r0] @@ -286,7 +286,7 @@ sub_08016FF4: @ 0x08016FF4 movs r0, #0x86 bl PlaySFX _0801702E: - ldr r4, _080170A8 @ =gLinkState + ldr r4, _080170A8 @ =gPlayerState ldr r0, [r4, #0x30] ldr r1, _080170AC @ =0xFDFFFDFF ands r0, r1 @@ -296,7 +296,7 @@ _0801702E: ands r0, r1 cmp r0, #0 beq _08017046 - bl ResetLink + bl ResetPlayer _08017046: ldr r0, [r4, #0x30] movs r1, #0x80 @@ -320,7 +320,7 @@ _0801706E: ldr r0, _080170B0 @ =gUnk_03003DF0 movs r4, #0 strb r4, [r0] - ldr r2, _080170A8 @ =gLinkState + ldr r2, _080170A8 @ =gPlayerState adds r1, r2, #0 adds r1, #0x27 ldrb r0, [r1] @@ -345,8 +345,8 @@ _08017084: b _080171EA .align 2, 0 _080170A0: .4byte gUnk_0200AF00 -_080170A4: .4byte gLinkEntity -_080170A8: .4byte gLinkState +_080170A4: .4byte gPlayerEntity +_080170A8: .4byte gPlayerState _080170AC: .4byte 0xFDFFFDFF _080170B0: .4byte gUnk_03003DF0 _080170B4: @@ -517,11 +517,11 @@ sub_080171F0: @ 0x080171F0 push {r4, r5, r6, r7, lr} mov r7, r8 push {r7} - ldr r4, _080172DC @ =gLinkState + ldr r4, _080172DC @ =gPlayerState ldrb r0, [r4, #0x1a] cmp r0, #0 beq _08017202 - bl ResetLink + bl ResetPlayer _08017202: ldrb r0, [r4, #0x14] cmp r0, #0 @@ -529,7 +529,7 @@ _08017202: subs r0, #1 strb r0, [r4, #0x14] _0801720C: - ldr r6, _080172E0 @ =gLinkEntity + ldr r6, _080172E0 @ =gPlayerEntity adds r1, r6, #0 adds r1, #0x7a ldrh r0, [r1] @@ -634,8 +634,8 @@ _080172CC: orrs r0, r1 b _080172FA .align 2, 0 -_080172DC: .4byte gLinkState -_080172E0: .4byte gLinkEntity +_080172DC: .4byte gPlayerState +_080172E0: .4byte gPlayerEntity _080172E4: .4byte 0xFFFEFFFF _080172E8: .4byte gUnk_0200AF00 _080172EC: .4byte gUnk_03003BE0 @@ -646,10 +646,10 @@ _080172F4: ands r0, r1 _080172FA: str r0, [r4, #0x30] - ldr r4, _08017330 @ =gLinkEntity + ldr r4, _08017330 @ =gPlayerEntity adds r0, r4, #0 bl sub_0807A8D8 - ldr r0, _08017334 @ =gLinkState + ldr r0, _08017334 @ =gPlayerState ldrb r1, [r0, #2] movs r0, #0xc0 ands r0, r1 @@ -672,8 +672,8 @@ _08017322: bx r0 .align 2, 0 _0801732C: .4byte 0xDFFFFFFF -_08017330: .4byte gLinkEntity -_08017334: .4byte gLinkState +_08017330: .4byte gPlayerEntity +_08017334: .4byte gPlayerState thumb_func_start sub_08017338 sub_08017338: @ 0x08017338 @@ -779,7 +779,7 @@ _080173CE: ldrh r1, [r3, #6] cmp r1, #0 bne _0801741C - ldr r2, _08017418 @ =gLinkEntity + ldr r2, _08017418 @ =gPlayerEntity adds r0, r2, #0 adds r0, #0x60 ldrh r1, [r0] @@ -791,14 +791,14 @@ _080173CE: .align 2, 0 _08017410: .4byte gUnk_08126DA8 _08017414: .4byte gUnk_08126ED8 -_08017418: .4byte gLinkEntity +_08017418: .4byte gPlayerEntity _0801741C: ldr r0, _0801749C @ =0x000003FF ands r0, r1 mov r1, ip adds r1, #0x60 strh r0, [r1] - ldr r5, _080174A0 @ =gLinkEntity + ldr r5, _080174A0 @ =gPlayerEntity _08017428: mov r3, ip ldrb r0, [r3, #0x14] @@ -860,7 +860,7 @@ _08017438: bx r0 .align 2, 0 _0801749C: .4byte 0x000003FF -_080174A0: .4byte gLinkEntity +_080174A0: .4byte gPlayerEntity thumb_func_start sub_080174A4 sub_080174A4: @ 0x080174A4 @@ -1047,12 +1047,12 @@ _08017602: cmp r0, #0 bne _08017638 ldr r1, _08017628 @ =gUnk_030059F0 - ldr r0, _0801762C @ =gLinkState + ldr r0, _0801762C @ =gPlayerState adds r0, #0x8b ldrb r0, [r0] cmp r0, #0 beq _08017634 - ldr r4, _08017630 @ =gLinkEntity + ldr r4, _08017630 @ =gPlayerEntity ldrb r5, [r4, #0x10] movs r0, #0x7f ands r0, r5 @@ -1063,8 +1063,8 @@ _08017602: .align 2, 0 _08017624: .4byte gUnk_03003DC0 _08017628: .4byte gUnk_030059F0 -_0801762C: .4byte gLinkState -_08017630: .4byte gLinkEntity +_0801762C: .4byte gPlayerState +_08017630: .4byte gPlayerEntity _08017634: bl _call_via_r1 _08017638: @@ -1085,7 +1085,7 @@ sub_08017640: @ 0x08017640 str r4, [r0] str r4, [r4] str r4, [r4, #4] - ldr r0, _08017668 @ =gLinkEntity + ldr r0, _08017668 @ =gPlayerEntity str r0, [r4, #8] pop {r4} pop {r0} @@ -1093,7 +1093,7 @@ sub_08017640: @ 0x08017640 .align 2, 0 _08017660: .4byte gUnk_03003C70 _08017664: .4byte gUnk_02018EA0 -_08017668: .4byte gLinkEntity +_08017668: .4byte gPlayerEntity thumb_func_start sub_0801766C sub_0801766C: @ 0x0801766C @@ -1376,7 +1376,7 @@ sub_08017850: @ 0x08017850 movs r0, #0 b _08017868 _08017860: - ldr r1, _08017870 @ =gLinkEntity + ldr r1, _08017870 @ =gPlayerEntity adds r0, r4, #0 bl sub_080177A0 _08017868: @@ -1384,7 +1384,7 @@ _08017868: pop {r1} bx r1 .align 2, 0 -_08017870: .4byte gLinkEntity +_08017870: .4byte gPlayerEntity thumb_func_start sub_08017874 sub_08017874: @ 0x08017874 @@ -1570,7 +1570,7 @@ sub_08017940: @ 0x08017940 bl UpdateSpriteForCollisionLayer _080179CC: movs r1, #0 - ldr r0, _080179E8 @ =gLinkEntity + ldr r0, _080179E8 @ =gPlayerEntity cmp r5, r0 beq _080179DA cmp r4, r0 @@ -1585,7 +1585,7 @@ _080179E0: pop {r0} bx r0 .align 2, 0 -_080179E8: .4byte gLinkEntity +_080179E8: .4byte gPlayerEntity thumb_func_start sub_080179EC sub_080179EC: @ 0x080179EC @@ -1754,7 +1754,7 @@ sub_08017B1C: @ 0x08017B1C push {lr} adds r2, r0, #0 adds r3, r1, #0 - ldr r0, _08017B38 @ =gLinkState + ldr r0, _08017B38 @ =gPlayerState ldrb r1, [r0, #0x1e] movs r0, #0x60 ands r0, r1 @@ -1766,7 +1766,7 @@ sub_08017B1C: @ 0x08017B1C strb r0, [r3, #0x10] b _08017B52 .align 2, 0 -_08017B38: .4byte gLinkState +_08017B38: .4byte gPlayerState _08017B3C: adds r1, r2, #0 adds r1, #0x42 @@ -1800,7 +1800,7 @@ sub_08017B58: @ 0x08017B58 ldrb r1, [r2, #0x1d] cmp r1, #0 beq _08017BA2 - ldr r0, _08017B94 @ =gLinkState + ldr r0, _08017B94 @ =gPlayerState ldrb r0, [r0, #0x1d] subs r0, r1, r0 movs r1, #0 @@ -1816,7 +1816,7 @@ sub_08017B58: @ 0x08017B58 strh r1, [r0] b _08017BA2 .align 2, 0 -_08017B94: .4byte gLinkState +_08017B94: .4byte gPlayerState _08017B98: strb r0, [r2, #0xd] ldrb r0, [r3] @@ -1845,7 +1845,7 @@ sub_08017BBC: @ 0x08017BBC adds r4, r0, #0 adds r6, r1, #0 adds r7, r2, #0 - ldr r5, _08017C38 @ =gLinkState + ldr r5, _08017C38 @ =gPlayerState ldr r0, [r5, #0x30] ldr r1, _08017C3C @ =0x00001481 ands r0, r1 @@ -1903,7 +1903,7 @@ _08017C2E: pop {r1} bx r1 .align 2, 0 -_08017C38: .4byte gLinkState +_08017C38: .4byte gPlayerState _08017C3C: .4byte 0x00001481 thumb_func_start sub_08017C40 @@ -1911,7 +1911,7 @@ sub_08017C40: @ 0x08017C40 push {r4, r5, r6, lr} adds r4, r0, #0 adds r5, r1, #0 - ldr r6, _08017CB4 @ =gLinkState + ldr r6, _08017CB4 @ =gPlayerState ldr r0, [r6, #0x30] ldr r1, _08017CB8 @ =0x00001881 ands r0, r1 @@ -1968,7 +1968,7 @@ _08017CAA: pop {r1} bx r1 .align 2, 0 -_08017CB4: .4byte gLinkState +_08017CB4: .4byte gPlayerState _08017CB8: .4byte 0x00001881 thumb_func_start sub_08017CBC @@ -2033,7 +2033,7 @@ _08017D1E: sub_08017D28: @ 0x08017D28 push {lr} adds r3, r0, #0 - ldr r2, _08017D68 @ =gLinkState + ldr r2, _08017D68 @ =gPlayerState movs r0, #1 strb r0, [r2, #0x1a] adds r2, r3, #0 @@ -2064,7 +2064,7 @@ _08017D60: pop {r1} bx r1 .align 2, 0 -_08017D68: .4byte gLinkState +_08017D68: .4byte gPlayerState thumb_func_start sub_08017D6C sub_08017D6C: @ 0x08017D6C @@ -2147,7 +2147,7 @@ _08017DFC: movs r0, #4 _08017DFE: strb r0, [r1] - ldr r4, _08017E34 @ =gLinkEntity + ldr r4, _08017E34 @ =gPlayerEntity adds r0, r4, #0 adds r1, r5, #0 bl sub_08017874 @@ -2158,7 +2158,7 @@ _08017DFE: adds r2, #0x3d movs r0, #0xf4 strb r0, [r2] - ldr r0, _08017E38 @ =gLinkState + ldr r0, _08017E38 @ =gPlayerState ldr r0, [r0, #0x30] movs r1, #0x80 ands r0, r1 @@ -2172,8 +2172,8 @@ _08017DFE: strb r0, [r1] b _08017E6E .align 2, 0 -_08017E34: .4byte gLinkEntity -_08017E38: .4byte gLinkState +_08017E34: .4byte gPlayerEntity +_08017E38: .4byte gPlayerState _08017E3C: adds r0, r5, #0 adds r0, #0x40 @@ -2253,7 +2253,7 @@ sub_08017EB0: @ 0x08017EB0 movs r0, #0 b _08017F36 _08017EC4: - ldr r6, _08017EF8 @ =gLinkEntity + ldr r6, _08017EF8 @ =gPlayerEntity cmp r2, r6 bne _08017EFC ldrb r4, [r5] @@ -2278,7 +2278,7 @@ _08017EC4: strh r0, [r1] b _08017F22 .align 2, 0 -_08017EF8: .4byte gLinkEntity +_08017EF8: .4byte gPlayerEntity _08017EFC: ldrh r1, [r2, #8] movs r0, #0xa1 @@ -2331,13 +2331,13 @@ sub_08017F40: @ 0x08017F40 ldrb r6, [r0] cmp r6, #0 bne _0801800A - ldr r0, _08017FAC @ =gLinkEntity + ldr r0, _08017FAC @ =gPlayerEntity cmp r4, r0 bne _08018002 bl sub_08079F8C cmp r0, #0 beq _0801801E - ldr r2, _08017FB0 @ =gLinkState + ldr r2, _08017FB0 @ =gPlayerState ldr r3, [r2, #0x30] movs r0, #0x80 ands r0, r3 @@ -2377,8 +2377,8 @@ _08017F9A: bl PositionRelative b _08017FC2 .align 2, 0 -_08017FAC: .4byte gLinkEntity -_08017FB0: .4byte gLinkState +_08017FAC: .4byte gPlayerEntity +_08017FB0: .4byte gPlayerState _08017FB4: movs r3, #0x80 lsls r3, r3, #9 @@ -2415,7 +2415,7 @@ _08017FC2: adds r1, #0x3d movs r0, #0xf8 strb r0, [r1] - bl ResetLink + bl ResetPlayer movs r0, #1 b _08018020 _08018002: @@ -2427,7 +2427,7 @@ _0801800A: ldrb r0, [r5, #8] cmp r0, #3 bne _0801801E - ldr r0, _08018028 @ =gLinkEntity + ldr r0, _08018028 @ =gPlayerEntity cmp r4, r0 bne _0801801E adds r0, r5, #0 @@ -2440,7 +2440,7 @@ _08018020: pop {r1} bx r1 .align 2, 0 -_08018028: .4byte gLinkEntity +_08018028: .4byte gPlayerEntity thumb_func_start sub_0801802C sub_0801802C: @ 0x0801802C @@ -2620,13 +2620,13 @@ sub_08018168: @ 0x08018168 ldrb r5, [r0] cmp r5, #0 bne _08018208 - ldr r0, _080181F4 @ =gLinkEntity + ldr r0, _080181F4 @ =gPlayerEntity cmp r4, r0 bne _08018200 bl sub_08079F8C cmp r0, #0 beq _0801821C - ldr r2, _080181F8 @ =gLinkState + ldr r2, _080181F8 @ =gPlayerState ldr r3, [r2, #0x30] ldr r0, _080181FC @ =0x00040080 ands r0, r3 @@ -2681,8 +2681,8 @@ sub_08018168: @ 0x08018168 movs r0, #1 b _0801821E .align 2, 0 -_080181F4: .4byte gLinkEntity -_080181F8: .4byte gLinkState +_080181F4: .4byte gPlayerEntity +_080181F8: .4byte gPlayerState _080181FC: .4byte 0x00040080 _08018200: adds r0, r4, #0 @@ -2693,7 +2693,7 @@ _08018208: ldrb r0, [r6, #8] cmp r0, #3 bne _0801821C - ldr r0, _08018224 @ =gLinkEntity + ldr r0, _08018224 @ =gPlayerEntity cmp r4, r0 bne _0801821C adds r0, r6, #0 @@ -2706,14 +2706,14 @@ _0801821E: pop {r1} bx r1 .align 2, 0 -_08018224: .4byte gLinkEntity +_08018224: .4byte gPlayerEntity thumb_func_start sub_08018228 sub_08018228: @ 0x08018228 push {r4, r5, lr} adds r4, r0, #0 adds r5, r1, #0 - ldr r0, _0801824C @ =gLinkEntity + ldr r0, _0801824C @ =gPlayerEntity cmp r4, r0 bne _08018244 bl sub_08079F8C @@ -2728,7 +2728,7 @@ _08018244: pop {r1} bx r1 .align 2, 0 -_0801824C: .4byte gLinkEntity +_0801824C: .4byte gPlayerEntity thumb_func_start sub_08018250 sub_08018250: @ 0x08018250 @@ -2766,13 +2766,13 @@ _08018280: sub_08018288: @ 0x08018288 push {lr} adds r1, r0, #0 - ldr r0, _08018298 @ =gLinkEntity + ldr r0, _08018298 @ =gPlayerEntity cmp r1, r0 bne _0801829C bl sub_0807AFE8 b _080182A2 .align 2, 0 -_08018298: .4byte gLinkEntity +_08018298: .4byte gPlayerEntity _0801829C: adds r1, #0x45 movs r0, #0 @@ -2852,7 +2852,7 @@ sub_08018308: @ 0x08018308 ldrb r0, [r4, #8] cmp r0, #3 bne _08018338 - ldr r0, _0801835C @ =gLinkEntity + ldr r0, _0801835C @ =gPlayerEntity cmp r6, r0 bne _08018338 adds r0, r4, #0 @@ -2865,7 +2865,7 @@ _08018338: lsls r0, r0, #3 cmp r1, r0 bne _08018360 - ldr r0, _0801835C @ =gLinkEntity + ldr r0, _0801835C @ =gPlayerEntity ldrb r2, [r0, #0x14] mov r0, r8 adds r0, #4 @@ -2879,7 +2879,7 @@ _08018338: movs r0, #0 b _080184F0 .align 2, 0 -_0801835C: .4byte gLinkEntity +_0801835C: .4byte gPlayerEntity _08018360: cmp r3, #0 bne _08018408 @@ -3074,7 +3074,7 @@ _080184BA: _080184CE: cmp r0, #5 bne _080184DA - ldr r0, _080184FC @ =gLinkEntity + ldr r0, _080184FC @ =gPlayerEntity adds r0, #0x3d movs r1, #0x80 strb r1, [r0] @@ -3085,7 +3085,7 @@ _080184DA: ldrb r0, [r6, #9] cmp r0, #5 bne _080184EE - ldr r0, _080184FC @ =gLinkEntity + ldr r0, _080184FC @ =gPlayerEntity adds r0, #0x3d movs r1, #0x80 strb r1, [r0] @@ -3098,4 +3098,4 @@ _080184F0: pop {r1} bx r1 .align 2, 0 -_080184FC: .4byte gLinkEntity \ No newline at end of file +_080184FC: .4byte gPlayerEntity \ No newline at end of file diff --git a/asm/code_08018500.s b/asm/code_08018500.s index c7bd93ff..663f9662 100644 --- a/asm/code_08018500.s +++ b/asm/code_08018500.s @@ -163,7 +163,7 @@ _08018628: .4byte gUnk_080B3D20 thumb_func_start sub_0801862C sub_0801862C: @ 0x0801862C push {r4, r5, lr} - ldr r1, _0801864C @ =gLinkState + ldr r1, _0801864C @ =gPlayerState movs r2, #0 movs r0, #0x16 strb r0, [r1, #0xc] @@ -179,7 +179,7 @@ sub_0801862C: @ 0x0801862C strh r0, [r5, #0x36] b _0801868C .align 2, 0 -_0801864C: .4byte gLinkState +_0801864C: .4byte gPlayerState _08018650: .4byte gScreenTransition _08018654: .4byte gUnk_02033AB8 _08018658: diff --git a/asm/code_08019444.s b/asm/code_08019444.s index 16eb23b0..21215e60 100644 --- a/asm/code_08019444.s +++ b/asm/code_08019444.s @@ -56,7 +56,7 @@ _08019494: .4byte gUnk_080B43F4 sub_08019498: @ 0x08019498 push {r4, r5, lr} adds r5, r0, #0 - ldr r4, _08019504 @ =gLinkEntity + ldr r4, _08019504 @ =gPlayerEntity adds r0, r4, #0 adds r1, r5, #0 bl CopyPosition @@ -108,7 +108,7 @@ _080194E6: beq _08019516 b _0801954E .align 2, 0 -_08019504: .4byte gLinkEntity +_08019504: .4byte gPlayerEntity _08019508: .4byte gUnk_080B4408 _0801950C: cmp r0, #4 @@ -209,7 +209,7 @@ _080195B0: ands r1, r3 lsls r1, r1, #6 orrs r0, r1 - ldr r1, _08019630 @ =gLinkEntity + ldr r1, _08019630 @ =gPlayerEntity adds r1, #0x38 ldrb r1, [r1] movs r2, #0x80 @@ -251,7 +251,7 @@ _0801961A: b _0801963C .align 2, 0 _0801962C: .4byte gRoomControls -_08019630: .4byte gLinkEntity +_08019630: .4byte gPlayerEntity _08019634: .4byte gUnk_08003E44 _08019638: bl DeleteThisEntity @@ -518,7 +518,7 @@ sub_08019840: @ 0x08019840 mov r7, sb mov r6, r8 push {r6, r7} - ldr r0, _0801985C @ =gLinkState + ldr r0, _0801985C @ =gPlayerState adds r2, r0, #0 adds r2, #0xa8 ldrb r1, [r2] @@ -529,7 +529,7 @@ sub_08019840: @ 0x08019840 ldrb r0, [r0] b _08019862 .align 2, 0 -_0801985C: .4byte gLinkState +_0801985C: .4byte gPlayerState _08019860: ldrb r0, [r2] _08019862: @@ -550,7 +550,7 @@ _08019878: bl _0801A2A4 _08019880: ldrb r0, [r7, #0x1e] - ldr r1, _08019898 @ =gLinkEntity + ldr r1, _08019898 @ =gPlayerEntity mov sb, r1 cmp r0, #0 bne _08019890 @@ -562,7 +562,7 @@ _08019890: ldrb r4, [r2, #0x15] b _0801989E .align 2, 0 -_08019898: .4byte gLinkEntity +_08019898: .4byte gPlayerEntity _0801989C: ldrb r4, [r7, #0xd] _0801989E: @@ -664,15 +664,15 @@ _08019960: .4byte gRoomControls _08019964: .4byte gUnk_080B4490 _08019968: .4byte 0x00010002 _0801996C: - ldr r1, _08019978 @ =gLinkEntity + ldr r1, _08019978 @ =gPlayerEntity lsls r0, r4, #3 strb r0, [r1, #0x15] movs r0, #0xf bl _0801A2A6 .align 2, 0 -_08019978: .4byte gLinkEntity +_08019978: .4byte gPlayerEntity _0801997C: - ldr r4, _080199DC @ =gLinkEntity + ldr r4, _080199DC @ =gPlayerEntity adds r5, r4, #0 adds r5, #0x38 ldrb r0, [r5] @@ -718,14 +718,14 @@ _0801997C: adds r4, r0, #0 b _080199EE .align 2, 0 -_080199DC: .4byte gLinkEntity +_080199DC: .4byte gPlayerEntity _080199E0: .4byte gUnk_080B4468 _080199E4: .4byte gRoomControls _080199E8: .4byte 0x00003FFF _080199EC: adds r4, r6, #0 _080199EE: - ldr r5, _08019A28 @ =gLinkEntity + ldr r5, _08019A28 @ =gPlayerEntity ldrb r1, [r5, #0x14] adds r3, r1, #0 ldr r0, _08019A2C @ =0x00004036 @@ -758,7 +758,7 @@ _08019A1C: _08019A22: bl _0801A2A4 .align 2, 0 -_08019A28: .4byte gLinkEntity +_08019A28: .4byte gPlayerEntity _08019A2C: .4byte 0x00004036 _08019A30: cmp r4, #0x5b @@ -838,7 +838,7 @@ _08019AA4: adds r1, r3, #0 adds r0, r0, r1 strh r0, [r2] - ldr r2, _08019ADC @ =gLinkState + ldr r2, _08019ADC @ =gPlayerState ldr r1, [r2, #0x30] movs r0, #0x80 ands r1, r0 @@ -852,7 +852,7 @@ _08019AD0: .align 2, 0 _08019AD4: .4byte 0x0000401B _08019AD8: .4byte 0x00004030 -_08019ADC: .4byte gLinkState +_08019ADC: .4byte gPlayerState _08019AE0: ldr r0, _08019B04 @ =0x00004053 cmp r4, r0 @@ -963,7 +963,7 @@ _08019B88: ldr r4, _08019BB0 @ =0x00004001 adds r0, r0, r4 strh r0, [r1] - ldr r2, _08019BB4 @ =gLinkState + ldr r2, _08019BB4 @ =gPlayerState ldr r0, [r2, #0x30] movs r1, #0x80 ands r0, r1 @@ -976,9 +976,9 @@ _08019BAA: b _0801A0FA .align 2, 0 _08019BB0: .4byte 0x00004001 -_08019BB4: .4byte gLinkState +_08019BB4: .4byte gPlayerState _08019BB8: - ldr r1, _08019C50 @ =gLinkState + ldr r1, _08019C50 @ =gPlayerState ldr r0, [r1, #0x30] movs r2, #0x80 ands r0, r2 @@ -1058,7 +1058,7 @@ _08019C38: strh r0, [r5, #0x32] b _08019C64 .align 2, 0 -_08019C50: .4byte gLinkState +_08019C50: .4byte gPlayerState _08019C54: .4byte gUnk_080B4478 _08019C58: .4byte gRoomControls _08019C5C: @@ -1091,7 +1091,7 @@ _08019C80: adds r0, r0, r4 movs r3, #0 strh r0, [r1] - ldr r1, _08019CBC @ =gLinkState + ldr r1, _08019CBC @ =gPlayerState movs r0, #0xa0 strb r0, [r1, #6] movs r0, #5 @@ -1110,9 +1110,9 @@ _08019C80: b _0801A2A6 .align 2, 0 _08019CB8: .4byte 0x0000401C -_08019CBC: .4byte gLinkState +_08019CBC: .4byte gPlayerState _08019CC0: - ldr r0, _08019CF8 @ =gLinkState + ldr r0, _08019CF8 @ =gPlayerState adds r2, r0, #0 adds r2, #0x35 ldrb r1, [r2] @@ -1143,9 +1143,9 @@ _08019CF4: movs r0, #1 b _0801A2A6 .align 2, 0 -_08019CF8: .4byte gLinkState +_08019CF8: .4byte gPlayerState _08019CFC: - ldr r2, _08019D40 @ =gLinkState + ldr r2, _08019D40 @ =gPlayerState ldr r0, [r2, #0x30] movs r1, #0x80 ands r0, r1 @@ -1182,14 +1182,14 @@ _08019D2C: movs r0, #1 b _0801A2A6 .align 2, 0 -_08019D40: .4byte gLinkState +_08019D40: .4byte gPlayerState _08019D44: .4byte gUnk_0200AF00 _08019D48: cmp r3, #0 beq _08019D4E b _0801A2A4 _08019D4E: - ldr r2, _08019D8C @ =gLinkState + ldr r2, _08019D8C @ =gPlayerState ldr r0, [r2, #0x30] movs r1, #0x81 lsls r1, r1, #7 @@ -1221,7 +1221,7 @@ _08019D76: movs r0, #2 b _0801A2A6 .align 2, 0 -_08019D8C: .4byte gLinkState +_08019D8C: .4byte gPlayerState _08019D90: .4byte gUnk_0200AF00 _08019D94: bl sub_08052734 @@ -1233,7 +1233,7 @@ _08019D9E: adds r0, #0x2d movs r1, #6 strb r1, [r0] - ldr r2, _08019DD0 @ =gLinkState + ldr r2, _08019DD0 @ =gPlayerState adds r0, r2, #0 adds r0, #0x92 ldrh r1, [r0] @@ -1254,9 +1254,9 @@ _08019DB8: b _0801A2A6 .align 2, 0 _08019DCC: .4byte gUnk_0200AF00 -_08019DD0: .4byte gLinkState +_08019DD0: .4byte gPlayerState _08019DD4: - ldr r4, _08019E3C @ =gLinkState + ldr r4, _08019E3C @ =gPlayerState ldr r0, [r4, #0x30] movs r1, #0x80 lsls r1, r1, #7 @@ -1275,7 +1275,7 @@ _08019DEE: beq _08019DF6 b _0801A2A4 _08019DF6: - ldr r2, _08019E40 @ =gLinkEntity + ldr r2, _08019E40 @ =gPlayerEntity ldrb r0, [r2, #0x14] lsls r0, r0, #2 ldrb r3, [r4, #0xd] @@ -1313,8 +1313,8 @@ _08019E18: movs r0, #1 b _0801A2A6 .align 2, 0 -_08019E3C: .4byte gLinkState -_08019E40: .4byte gLinkEntity +_08019E3C: .4byte gPlayerState +_08019E40: .4byte gPlayerEntity _08019E44: mov r0, r8 adds r1, r7, #0 @@ -1350,7 +1350,7 @@ _08019E84: mov r0, r8 adds r0, #4 adds r0, r0, r1 - ldr r2, _08019EBC @ =gLinkEntity + ldr r2, _08019EBC @ =gPlayerEntity ldrb r1, [r2, #0x14] lsrs r1, r1, #1 ldr r3, _08019EC0 @ =0x0000400C @@ -1358,7 +1358,7 @@ _08019E84: strh r1, [r0] mov sb, r2 _08019E98: - ldr r2, _08019EC4 @ =gLinkState + ldr r2, _08019EC4 @ =gPlayerState movs r3, #0 movs r0, #0xa0 strb r0, [r2, #6] @@ -1377,9 +1377,9 @@ _08019E98: movs r0, #1 b _0801A2A6 .align 2, 0 -_08019EBC: .4byte gLinkEntity +_08019EBC: .4byte gPlayerEntity _08019EC0: .4byte 0x0000400C -_08019EC4: .4byte gLinkState +_08019EC4: .4byte gPlayerState _08019EC8: mov r0, r8 adds r1, r7, #0 @@ -1399,7 +1399,7 @@ _08019ED8: adds r0, r0, r2 movs r3, #0 strh r0, [r1] - ldr r2, _08019F08 @ =gLinkState + ldr r2, _08019F08 @ =gPlayerState movs r0, #0x98 strb r0, [r2, #6] movs r0, #5 @@ -1413,7 +1413,7 @@ _08019ED8: b _0801A228 .align 2, 0 _08019F04: .4byte 0x0000405B -_08019F08: .4byte gLinkState +_08019F08: .4byte gPlayerState _08019F0C: mov r0, r8 adds r1, r7, #0 @@ -1433,7 +1433,7 @@ _08019F1C: adds r0, r0, r3 movs r3, #0 strh r0, [r1] - ldr r2, _08019F4C @ =gLinkState + ldr r2, _08019F4C @ =gPlayerState movs r0, #0xa0 strb r0, [r2, #6] movs r0, #5 @@ -1447,13 +1447,13 @@ _08019F1C: b _0801A228 .align 2, 0 _08019F48: .4byte 0x00004037 -_08019F4C: .4byte gLinkState +_08019F4C: .4byte gPlayerState _08019F50: cmp r3, #0 beq _08019F56 b _0801A2A4 _08019F56: - ldr r2, _08019FA0 @ =gLinkState + ldr r2, _08019FA0 @ =gPlayerState adds r0, r2, #0 adds r0, #0x35 ldrb r0, [r0] @@ -1492,10 +1492,10 @@ _08019F7C: strh r3, [r5, #0x30] b _0801A228 .align 2, 0 -_08019FA0: .4byte gLinkState +_08019FA0: .4byte gPlayerState _08019FA4: .4byte 0x0000403F _08019FA8: - ldr r0, _0801A07C @ =gLinkState + ldr r0, _0801A07C @ =gPlayerState adds r0, #0x35 ldrb r1, [r0] movs r0, #0x80 @@ -1564,7 +1564,7 @@ _0801A018: bne _0801A02A b _0801A2A4 _0801A02A: - ldr r3, _0801A08C @ =gLinkEntity + ldr r3, _0801A08C @ =gPlayerEntity ldrb r0, [r3, #0x14] lsls r0, r0, #2 movs r4, #0 @@ -1592,7 +1592,7 @@ _0801A02A: adds r0, r5, #0 adds r0, #0x38 strb r1, [r0] - ldr r2, _0801A07C @ =gLinkState + ldr r2, _0801A07C @ =gPlayerState movs r0, #0xa0 strb r0, [r2, #6] movs r0, #5 @@ -1606,11 +1606,11 @@ _0801A02A: ldrb r0, [r5, #0x15] b _0801A0B6 .align 2, 0 -_0801A07C: .4byte gLinkState +_0801A07C: .4byte gPlayerState _0801A080: .4byte 0x0000FFFF _0801A084: .4byte 0x00000FFF _0801A088: .4byte gUnk_03004040 -_0801A08C: .4byte gLinkEntity +_0801A08C: .4byte gPlayerEntity _0801A090: .4byte gRoomControls _0801A094: movs r0, #0xa0 @@ -1654,7 +1654,7 @@ _0801A0CC: ldr r4, _0801A0F0 @ =0x0000404B adds r0, r0, r4 strh r0, [r1] - ldr r2, _0801A0F4 @ =gLinkState + ldr r2, _0801A0F4 @ =gPlayerState ldr r0, [r2, #0x30] movs r1, #0x80 ands r0, r1 @@ -1665,7 +1665,7 @@ _0801A0CC: b _0801A0FA .align 2, 0 _0801A0F0: .4byte 0x0000404B -_0801A0F4: .4byte gLinkState +_0801A0F4: .4byte gPlayerState _0801A0F8: movs r0, #0xa0 _0801A0FA: @@ -1677,7 +1677,7 @@ _0801A0FA: movs r1, #1 orrs r0, r1 str r0, [r7, #0x30] - ldr r1, _0801A11C @ =gLinkEntity + ldr r1, _0801A11C @ =gPlayerEntity strh r2, [r1, #0x2c] strh r2, [r1, #0x30] ldrb r0, [r1, #0x14] @@ -1686,9 +1686,9 @@ _0801A0FA: movs r0, #1 b _0801A2A6 .align 2, 0 -_0801A11C: .4byte gLinkEntity +_0801A11C: .4byte gPlayerEntity _0801A120: - ldr r0, _0801A134 @ =gLinkState + ldr r0, _0801A134 @ =gPlayerState adds r0, #0x35 ldrb r0, [r0] cmp r0, #0 @@ -1699,10 +1699,10 @@ _0801A12C: adds r1, r5, #0 b _0801A28C .align 2, 0 -_0801A134: .4byte gLinkState +_0801A134: .4byte gPlayerState _0801A138: .4byte 0x00004054 _0801A13C: - ldr r0, _0801A150 @ =gLinkState + ldr r0, _0801A150 @ =gPlayerState adds r0, #0x35 ldrb r0, [r0] cmp r0, #6 @@ -1713,12 +1713,12 @@ _0801A148: adds r1, r5, #0 b _0801A28C .align 2, 0 -_0801A150: .4byte gLinkState +_0801A150: .4byte gPlayerState _0801A154: .4byte 0x00004054 _0801A158: subs r7, #1 _0801A15A: - ldr r0, _0801A190 @ =gLinkState + ldr r0, _0801A190 @ =gPlayerState adds r0, #0x35 ldrb r0, [r0] cmp r0, #0 @@ -1749,12 +1749,12 @@ _0801A186: bls _0801A178 b _0801A2A4 .align 2, 0 -_0801A190: .4byte gLinkState +_0801A190: .4byte gPlayerState _0801A194: .4byte gUnk_03004040 _0801A198: subs r7, #0x40 _0801A19A: - ldr r0, _0801A1CC @ =gLinkState + ldr r0, _0801A1CC @ =gPlayerState adds r0, #0x35 ldrb r0, [r0] cmp r0, #6 @@ -1781,14 +1781,14 @@ _0801A1B6: bls _0801A1B6 b _0801A2A4 .align 2, 0 -_0801A1CC: .4byte gLinkState +_0801A1CC: .4byte gPlayerState _0801A1D0: .4byte gUnk_03004040 _0801A1D4: movs r0, #2 ands r0, r1 cmp r0, #0 beq _0801A2A4 - ldr r6, _0801A234 @ =gLinkState + ldr r6, _0801A234 @ =gPlayerState adds r0, r6, #0 adds r0, #0x35 ldrb r0, [r0] @@ -1832,12 +1832,12 @@ _0801A228: movs r0, #1 b _0801A2A6 .align 2, 0 -_0801A234: .4byte gLinkState +_0801A234: .4byte gPlayerState _0801A238: .4byte 0x00004074 _0801A23C: cmp r3, #4 bne _0801A2A4 - ldr r1, _0801A280 @ =gLinkState + ldr r1, _0801A280 @ =gPlayerState adds r0, r1, #0 adds r0, #0x35 ldrb r0, [r0] @@ -1867,11 +1867,11 @@ _0801A23C: movs r0, #1 b _0801A2A6 .align 2, 0 -_0801A280: .4byte gLinkState +_0801A280: .4byte gPlayerState _0801A284: .4byte 0x00004074 _0801A288: ldr r0, _0801A29C @ =0x00004059 - ldr r1, _0801A2A0 @ =gLinkEntity + ldr r1, _0801A2A0 @ =gPlayerEntity _0801A28C: adds r1, #0x38 ldrb r2, [r1] @@ -1881,7 +1881,7 @@ _0801A28C: b _0801A2A6 .align 2, 0 _0801A29C: .4byte 0x00004059 -_0801A2A0: .4byte gLinkEntity +_0801A2A0: .4byte gPlayerEntity _0801A2A4: movs r0, #0 _0801A2A6: @@ -1898,13 +1898,13 @@ sub_0801A2B0: @ 0x0801A2B0 adds r4, r1, #0 adds r6, r2, #0 ldr r1, _0801A31C @ =gUnk_080B4488 - ldr r2, _0801A320 @ =gLinkEntity + ldr r2, _0801A320 @ =gPlayerEntity ldrb r0, [r2, #0x14] lsrs r0, r0, #1 lsls r0, r0, #1 adds r0, r0, r1 ldrh r3, [r0] - ldr r1, _0801A324 @ =gLinkState + ldr r1, _0801A324 @ =gPlayerState adds r0, r1, #0 adds r0, #0x35 ldrb r0, [r0] @@ -1946,8 +1946,8 @@ sub_0801A2B0: @ 0x0801A2B0 b _0801A32C .align 2, 0 _0801A31C: .4byte gUnk_080B4488 -_0801A320: .4byte gLinkEntity -_0801A324: .4byte gLinkState +_0801A320: .4byte gPlayerEntity +_0801A324: .4byte gPlayerState _0801A328: cmp r1, #0x74 beq _0801A36C @@ -1994,7 +1994,7 @@ sub_0801A370: @ 0x0801A370 push {r7} mov r8, r0 adds r4, r1, #0 - ldr r5, _0801A3C8 @ =gLinkEntity + ldr r5, _0801A3C8 @ =gPlayerEntity ldrb r1, [r5, #0x14] movs r0, #2 ands r0, r1 @@ -2032,7 +2032,7 @@ _0801A3C4: movs r0, #1 b _0801A450 .align 2, 0 -_0801A3C8: .4byte gLinkEntity +_0801A3C8: .4byte gPlayerEntity _0801A3CC: .4byte gUnk_080B4488 _0801A3D0: .4byte 0x0000402B _0801A3D4: @@ -2044,7 +2044,7 @@ _0801A3D6: ldrb r0, [r0] cmp r0, #0x46 beq _0801A44E - ldr r0, _0801A410 @ =gLinkEntity + ldr r0, _0801A410 @ =gPlayerEntity adds r0, #0x38 ldrb r1, [r0] adds r0, r4, #0 @@ -2065,7 +2065,7 @@ _0801A3D6: b _0801A418 .align 2, 0 _0801A40C: .4byte 0x00001F84 -_0801A410: .4byte gLinkEntity +_0801A410: .4byte gPlayerEntity _0801A414: cmp r0, #0x74 beq _0801A44E @@ -2117,7 +2117,7 @@ sub_0801A458: @ 0x0801A458 adds r5, r1, #0 mov r8, r2 ldr r0, _0801A4A4 @ =gUnk_080B4488 - ldr r6, _0801A4A8 @ =gLinkEntity + ldr r6, _0801A4A8 @ =gPlayerEntity ldrb r1, [r6, #0x14] lsrs r1, r1, #1 lsls r1, r1, #1 @@ -2147,7 +2147,7 @@ sub_0801A458: @ 0x0801A458 b _0801A4B0 .align 2, 0 _0801A4A4: .4byte gUnk_080B4488 -_0801A4A8: .4byte gLinkEntity +_0801A4A8: .4byte gPlayerEntity _0801A4AC: cmp r0, #0x74 beq _0801A4F0 @@ -2192,7 +2192,7 @@ _0801A4F2: thumb_func_start sub_0801A4F8 sub_0801A4F8: @ 0x0801A4F8 push {r4, r5, lr} - ldr r4, _0801A538 @ =gLinkState + ldr r4, _0801A538 @ =gPlayerState ldr r0, [r4, #0x30] movs r5, #0x80 ands r0, r5 @@ -2207,7 +2207,7 @@ sub_0801A4F8: @ 0x0801A4F8 ands r0, r1 cmp r0, #0 bne _0801A564 - ldr r2, _0801A53C @ =gLinkEntity + ldr r2, _0801A53C @ =gPlayerEntity ldrb r0, [r2, #0x15] cmp r1, r0 bne _0801A564 @@ -2222,8 +2222,8 @@ sub_0801A4F8: @ 0x0801A4F8 ldrh r0, [r2, #0x2a] b _0801A55E .align 2, 0 -_0801A538: .4byte gLinkState -_0801A53C: .4byte gLinkEntity +_0801A538: .4byte gPlayerState +_0801A53C: .4byte gPlayerEntity _0801A540: .4byte gUnk_080B44A0 _0801A544: adds r0, r4, #0 @@ -2235,7 +2235,7 @@ _0801A544: ands r0, r1 cmp r0, #0 bne _0801A564 - ldr r0, _0801A568 @ =gLinkEntity + ldr r0, _0801A568 @ =gPlayerEntity adds r0, #0x5a ldrb r1, [r0] movs r0, #1 @@ -2247,7 +2247,7 @@ _0801A564: movs r0, #0 b _0801A56E .align 2, 0 -_0801A568: .4byte gLinkEntity +_0801A568: .4byte gPlayerEntity _0801A56C: movs r0, #1 _0801A56E: @@ -2804,7 +2804,7 @@ _0801A97C: .4byte 0x0000FFFF thumb_func_start sub_0801A980 sub_0801A980: @ 0x0801A980 push {r4, r5, r6, r7, lr} - ldr r4, _0801A9E0 @ =gLinkEntity + ldr r4, _0801A9E0 @ =gPlayerEntity adds r6, r4, #0 adds r6, #0x38 ldrb r0, [r6] @@ -2850,7 +2850,7 @@ _0801A9DC: movs r0, #0 pop {r4, r5, r6, r7, pc} .align 2, 0 -_0801A9E0: .4byte gLinkEntity +_0801A9E0: .4byte gPlayerEntity _0801A9E4: .4byte gUnk_080B44A8 _0801A9E8: .4byte gRoomControls _0801A9EC: .4byte 0x00003FFF @@ -2899,13 +2899,13 @@ _0801AA40: cmp r2, #0 beq _0801AA54 _0801AA44: - ldr r0, _0801AA50 @ =gLinkEntity + ldr r0, _0801AA50 @ =gPlayerEntity adds r1, r4, #0 adds r2, r3, #0 bl sub_0801AA58 b _0801AA56 .align 2, 0 -_0801AA50: .4byte gLinkEntity +_0801AA50: .4byte gPlayerEntity _0801AA54: movs r0, #0 _0801AA56: @@ -2974,7 +2974,7 @@ _0801AA94: adds r0, r4, #0 adds r0, #0x38 strb r1, [r0] - ldr r2, _0801AAFC @ =gLinkState + ldr r2, _0801AAFC @ =gPlayerState movs r0, #0xa0 strb r0, [r2, #6] movs r0, #5 @@ -2992,7 +2992,7 @@ _0801AA94: _0801AAF0: .4byte gUnk_080B4488 _0801AAF4: .4byte 0x00002004 _0801AAF8: .4byte gRoomControls -_0801AAFC: .4byte gLinkState +_0801AAFC: .4byte gPlayerState _0801AB00: movs r0, #0 _0801AB02: @@ -3936,7 +3936,7 @@ _0801B1E4: ldrb r0, [r4, #0xd] cmp r0, #1 bne _0801B204 - ldr r0, _0801B244 @ =gLinkState + ldr r0, _0801B244 @ =gPlayerState strb r1, [r0, #5] _0801B204: movs r0, #3 @@ -3968,7 +3968,7 @@ _0801B204: bl sub_0801B418 b _0801B24E .align 2, 0 -_0801B244: .4byte gLinkState +_0801B244: .4byte gPlayerState _0801B248: adds r0, r4, #0 bl sub_0801B3A4 @@ -4071,7 +4071,7 @@ _0801B2F6: _0801B2FA: movs r5, #0 _0801B2FC: - ldr r0, _0801B314 @ =gLinkState + ldr r0, _0801B314 @ =gPlayerState adds r0, #0x92 ldrh r0, [r0] ands r5, r0 @@ -4084,7 +4084,7 @@ _0801B2FC: _0801B310: pop {r4, r5, pc} .align 2, 0 -_0801B314: .4byte gLinkState +_0801B314: .4byte gPlayerState thumb_func_start sub_0801B318 sub_0801B318: @ 0x0801B318 @@ -4338,7 +4338,7 @@ _0801B4C4: .4byte 0xFFFFE000 sub_0801B4C8: @ 0x0801B4C8 push {r4, r5, lr} adds r4, r0, #0 - ldr r3, _0801B52C @ =gLinkState + ldr r3, _0801B52C @ =gPlayerState str r4, [r3, #0x2c] movs r2, #0 movs r0, #1 @@ -4354,7 +4354,7 @@ sub_0801B4C8: @ 0x0801B4C8 adds r1, #0x58 movs r0, #0xb strb r0, [r1] - ldr r5, _0801B534 @ =gLinkEntity + ldr r5, _0801B534 @ =gPlayerEntity str r5, [r4, #0x50] adds r0, r4, #0 adds r0, #0x86 @@ -4388,9 +4388,9 @@ _0801B518: movs r0, #0x3c b _0801B540 .align 2, 0 -_0801B52C: .4byte gLinkState +_0801B52C: .4byte gPlayerState _0801B530: .4byte gUnk_081271CC -_0801B534: .4byte gLinkEntity +_0801B534: .4byte gPlayerEntity _0801B538: movs r0, #0x80 lsls r0, r0, #2 @@ -4437,7 +4437,7 @@ sub_0801B584: @ 0x0801B584 push {r4, r5, r6, r7, lr} adds r6, r0, #0 bl sub_0801B804 - ldr r1, _0801B5F8 @ =gLinkState + ldr r1, _0801B5F8 @ =gPlayerState ldrb r0, [r1, #4] cmp r0, #0 beq _0801B5A8 @@ -4447,12 +4447,12 @@ sub_0801B584: @ 0x0801B584 ldr r0, [r1, #0x2c] cmp r0, r6 bne _0801B5B4 - ldr r0, _0801B5FC @ =gLinkEntity + ldr r0, _0801B5FC @ =gPlayerEntity ldrb r0, [r0, #0xc] cmp r0, #1 beq _0801B5B8 _0801B5A8: - ldr r1, _0801B5F8 @ =gLinkState + ldr r1, _0801B5F8 @ =gPlayerState ldr r0, [r1, #0x2c] cmp r0, r6 bne _0801B5B4 @@ -4461,7 +4461,7 @@ _0801B5A8: _0801B5B4: bl DeleteThisEntity _0801B5B8: - ldr r7, _0801B5FC @ =gLinkEntity + ldr r7, _0801B5FC @ =gPlayerEntity adds r0, r7, #0 adds r0, #0x5a ldrb r1, [r0] @@ -4494,8 +4494,8 @@ _0801B5EE: bl sub_08078E84 b _0801B674 .align 2, 0 -_0801B5F8: .4byte gLinkState -_0801B5FC: .4byte gLinkEntity +_0801B5F8: .4byte gPlayerState +_0801B5FC: .4byte gPlayerEntity _0801B600: movs r5, #0 movs r0, #2 @@ -4549,7 +4549,7 @@ _0801B600: adds r0, r6, #0 movs r1, #0 bl InitializeAnimation - ldr r0, _0801B67C @ =gLinkState + ldr r0, _0801B67C @ =gPlayerState str r5, [r0, #0x2c] ldrb r1, [r0, #4] orrs r4, r1 @@ -4558,7 +4558,7 @@ _0801B674: pop {r4, r5, r6, r7, pc} .align 2, 0 _0801B678: .4byte gUnk_080B7826 -_0801B67C: .4byte gLinkState +_0801B67C: .4byte gPlayerState thumb_func_start sub_0801B680 sub_0801B680: @ 0x0801B680 @@ -4575,7 +4575,7 @@ sub_0801B680: @ 0x0801B680 ldrb r0, [r0] cmp r0, #0 bne _0801B6DC - ldr r3, _0801B6C4 @ =gLinkState + ldr r3, _0801B6C4 @ =gPlayerState ldrb r1, [r3, #0xd] movs r0, #0x80 ands r0, r1 @@ -4596,7 +4596,7 @@ sub_0801B680: @ 0x0801B680 adds r0, #0x40 b _0801B6D0 .align 2, 0 -_0801B6C4: .4byte gLinkState +_0801B6C4: .4byte gPlayerState _0801B6C8: adds r1, r4, #0 adds r1, #0x82 @@ -4642,7 +4642,7 @@ _0801B6FE: ands r1, r3 lsls r1, r1, #6 orrs r0, r1 - ldr r1, _0801B784 @ =gLinkEntity + ldr r1, _0801B784 @ =gPlayerEntity adds r1, #0x38 ldrb r1, [r1] movs r2, #0x80 @@ -4694,7 +4694,7 @@ _0801B76C: b _0801B792 .align 2, 0 _0801B780: .4byte gRoomControls -_0801B784: .4byte gLinkEntity +_0801B784: .4byte gPlayerEntity _0801B788: .4byte gUnk_08003E44 _0801B78C: movs r0, #0xc @@ -4739,7 +4739,7 @@ _0801B7BC: adds r0, #8 strh r0, [r5, #0x24] _0801B7D4: - ldr r4, _0801B800 @ =gLinkEntity + ldr r4, _0801B800 @ =gPlayerEntity adds r0, r5, #0 adds r1, r4, #0 bl GetFacingDirection @@ -4758,7 +4758,7 @@ _0801B7FA: pop {r4, r5, pc} .align 2, 0 _0801B7FC: .4byte 0x0000027F -_0801B800: .4byte gLinkEntity +_0801B800: .4byte gPlayerEntity thumb_func_start sub_0801B804 sub_0801B804: @ 0x0801B804 @@ -4782,7 +4782,7 @@ _0801B820: _0801B824: movs r4, #0 _0801B826: - ldr r3, _0801B850 @ =gLinkState + ldr r3, _0801B850 @ =gPlayerState adds r0, r3, #0 adds r0, #0x90 ldrh r0, [r0] @@ -4803,7 +4803,7 @@ _0801B826: strb r1, [r3, #0xb] b _0801B862 .align 2, 0 -_0801B850: .4byte gLinkState +_0801B850: .4byte gPlayerState _0801B854: ldrb r1, [r3, #0xa] movs r0, #0x80 @@ -4860,7 +4860,7 @@ _0801B8AC: .4byte gUnk_080B7840 sub_0801B8B0: @ 0x0801B8B0 push {r4, lr} adds r4, r0, #0 - ldr r1, _0801B8F0 @ =gLinkState + ldr r1, _0801B8F0 @ =gPlayerState ldrb r0, [r1, #0x1e] cmp r0, #0 beq _0801B8F4 @@ -4887,7 +4887,7 @@ sub_0801B8B0: @ 0x0801B8B0 bl sub_0801B8FC b _0801B8F8 .align 2, 0 -_0801B8F0: .4byte gLinkState +_0801B8F0: .4byte gPlayerState _0801B8F4: bl DeleteThisEntity _0801B8F8: @@ -4897,14 +4897,14 @@ _0801B8F8: thumb_func_start sub_0801B8FC sub_0801B8FC: @ 0x0801B8FC push {lr} - ldr r1, _0801B90C @ =gLinkState + ldr r1, _0801B90C @ =gPlayerState ldr r2, [r1, #0x2c] cmp r2, r0 beq _0801B910 bl DeleteThisEntity b _0801B934 .align 2, 0 -_0801B90C: .4byte gLinkState +_0801B90C: .4byte gPlayerState _0801B910: ldrb r0, [r1, #0x1e] cmp r0, #0 @@ -4936,7 +4936,7 @@ sub_0801B938: @ 0x0801B938 ands r0, r1 cmp r0, #0 beq _0801B960 - ldr r3, _0801B95C @ =gLinkEntity + ldr r3, _0801B95C @ =gPlayerEntity ldrb r1, [r3, #0x18] lsls r1, r1, #0x19 lsrs r1, r1, #0x1f @@ -4947,9 +4947,9 @@ sub_0801B938: @ 0x0801B938 subs r0, #0x42 b _0801B96E .align 2, 0 -_0801B95C: .4byte gLinkEntity +_0801B95C: .4byte gPlayerEntity _0801B960: - ldr r3, _0801B998 @ =gLinkEntity + ldr r3, _0801B998 @ =gPlayerEntity ldrb r0, [r3, #0x18] movs r1, #0x40 ands r1, r0 @@ -4977,7 +4977,7 @@ _0801B96E: bl sub_080042D0 b _0801B9A0 .align 2, 0 -_0801B998: .4byte gLinkEntity +_0801B998: .4byte gPlayerEntity _0801B99C: movs r0, #0xff strb r0, [r4, #0x1e] @@ -4991,7 +4991,7 @@ _0801B9A0: lsls r3, r3, #1 ldr r0, _0801B9E4 @ =gUnk_080B7848 adds r3, r3, r0 - ldr r0, _0801B9E8 @ =gLinkState + ldr r0, _0801B9E8 @ =gPlayerState adds r0, #0xac ldrh r0, [r0] movs r1, #8 @@ -5007,15 +5007,15 @@ _0801B9A0: asrs r3, r3, #0x18 adds r0, r4, #0 bl sub_08008782 - ldr r1, _0801B9EC @ =gLinkEntity + ldr r1, _0801B9EC @ =gPlayerEntity adds r0, r4, #0 bl sub_08078E84 pop {r4, pc} .align 2, 0 _0801B9E0: .4byte gUnk_080B7850 _0801B9E4: .4byte gUnk_080B7848 -_0801B9E8: .4byte gLinkState -_0801B9EC: .4byte gLinkEntity +_0801B9E8: .4byte gPlayerState +_0801B9EC: .4byte gPlayerEntity thumb_func_start sub_0801B9F0 sub_0801B9F0: @ 0x0801B9F0 @@ -5100,7 +5100,7 @@ _0801BA9C: movs r0, #0x80 orrs r0, r1 strb r0, [r4, #0x10] - ldr r1, _0801BAF4 @ =gLinkEntity + ldr r1, _0801BAF4 @ =gPlayerEntity adds r0, r1, #0 adds r0, #0x3c ldrb r0, [r0] @@ -5133,7 +5133,7 @@ _0801BA9C: bl PlaySFX b _0801BB0A .align 2, 0 -_0801BAF4: .4byte gLinkEntity +_0801BAF4: .4byte gPlayerEntity _0801BAF8: movs r0, #0xd5 strb r0, [r4, #0xe] @@ -5150,7 +5150,7 @@ _0801BB0A: strb r0, [r4, #0xc] movs r0, #0xff strb r0, [r4, #0x1e] - ldr r0, _0801BB28 @ =gLinkState + ldr r0, _0801BB28 @ =gPlayerState str r4, [r0, #0x2c] adds r0, r4, #0 movs r1, #1 @@ -5161,13 +5161,13 @@ _0801BB0A: _0801BB26: pop {r4, pc} .align 2, 0 -_0801BB28: .4byte gLinkState +_0801BB28: .4byte gPlayerState thumb_func_start sub_0801BB2C sub_0801BB2C: @ 0x0801BB2C push {r4, r5, lr} adds r5, r0, #0 - ldr r0, _0801BB88 @ =gLinkState + ldr r0, _0801BB88 @ =gPlayerState ldr r0, [r0, #0x2c] cmp r0, r5 beq _0801BB68 @@ -5193,7 +5193,7 @@ sub_0801BB2C: @ 0x0801BB2C _0801BB64: bl DeleteThisEntity _0801BB68: - ldr r1, _0801BB90 @ =gLinkEntity + ldr r1, _0801BB90 @ =gPlayerEntity adds r0, r5, #0 bl sub_0801BDE8 adds r0, r5, #0 @@ -5208,9 +5208,9 @@ _0801BB68: ldr r0, [r0] mov pc, r0 .align 2, 0 -_0801BB88: .4byte gLinkState +_0801BB88: .4byte gPlayerState _0801BB8C: .4byte 0x00000109 -_0801BB90: .4byte gLinkEntity +_0801BB90: .4byte gPlayerEntity _0801BB94: .4byte _0801BB98 _0801BB98: @ jump table .4byte _0801BBE0 @ case 0 @@ -5236,7 +5236,7 @@ _0801BBE0: bl sub_0801BC0C b _0801BC0A _0801BBE8: - ldr r0, _0801BC00 @ =gLinkEntity + ldr r0, _0801BC00 @ =gPlayerEntity adds r1, r0, #0 adds r1, #0x5a ldrb r0, [r1] @@ -5248,7 +5248,7 @@ _0801BBE8: bl sub_0801BC14 b _0801BC0A .align 2, 0 -_0801BC00: .4byte gLinkEntity +_0801BC00: .4byte gPlayerEntity _0801BC04: adds r0, r5, #0 bl sub_0801BCB4 @@ -5337,7 +5337,7 @@ _0801BCB0: .4byte gUnk_02002A40 sub_0801BCB4: @ 0x0801BCB4 push {r4, r5, lr} adds r4, r0, #0 - ldr r0, _0801BCEC @ =gLinkEntity + ldr r0, _0801BCEC @ =gPlayerEntity adds r0, #0x5a ldrb r0, [r0] cmp r0, #1 @@ -5364,7 +5364,7 @@ _0801BCDA: ldr r0, [r0] mov pc, r0 .align 2, 0 -_0801BCEC: .4byte gLinkEntity +_0801BCEC: .4byte gPlayerEntity _0801BCF0: .4byte _0801BCF4 _0801BCF4: @ jump table .4byte _0801BD24 @ case 0 @@ -5415,7 +5415,7 @@ _0801BD54: ldr r0, _0801BD8C @ =0x000001CF bl PlaySFX _0801BD6C: - ldr r0, _0801BD90 @ =gLinkEntity + ldr r0, _0801BD90 @ =gPlayerEntity adds r0, #0x5a ldrb r0, [r0] cmp r0, #2 @@ -5431,7 +5431,7 @@ _0801BD6C: .align 2, 0 _0801BD88: .4byte gUnk_02002A40 _0801BD8C: .4byte 0x000001CF -_0801BD90: .4byte gLinkEntity +_0801BD90: .4byte gPlayerEntity _0801BD94: adds r0, r4, #0 movs r1, #0x68 @@ -5446,7 +5446,7 @@ _0801BDA2: movs r3, #1 bl CreateObjectWithParent _0801BDAE: - ldr r0, _0801BDC8 @ =gLinkEntity + ldr r0, _0801BDC8 @ =gPlayerEntity adds r0, #0x5a ldrb r0, [r0] cmp r0, #3 @@ -5460,7 +5460,7 @@ _0801BDAE: beq _0801BDDA b _0801BDE6 .align 2, 0 -_0801BDC8: .4byte gLinkEntity +_0801BDC8: .4byte gPlayerEntity _0801BDCC: adds r0, r4, #0 movs r1, #0x68 @@ -5511,12 +5511,12 @@ _0801BE0A: ands r0, r2 orrs r0, r1 strb r0, [r4, #0x18] - ldr r1, _0801BE34 @ =gLinkEntity + ldr r1, _0801BE34 @ =gPlayerEntity adds r0, r4, #0 bl sub_08078E84 pop {r4, r5, pc} .align 2, 0 -_0801BE34: .4byte gLinkEntity +_0801BE34: .4byte gPlayerEntity thumb_func_start sub_0801BE38 sub_0801BE38: @ 0x0801BE38 @@ -5575,7 +5575,7 @@ _0801BE8C: ldr r1, [r4, #0x48] ldrb r0, [r2, #3] strb r0, [r1, #7] - ldr r0, _0801BEF0 @ =gLinkEntity + ldr r0, _0801BEF0 @ =gPlayerEntity adds r0, #0x5a ldrb r0, [r0] movs r1, #0xf @@ -5611,7 +5611,7 @@ _0801BEDE: cmp r0, #0x20 beq _0801BEEE _0801BEE4: - ldr r2, _0801BEF0 @ =gLinkEntity + ldr r2, _0801BEF0 @ =gPlayerEntity ldrb r1, [r2, #0x10] movs r0, #0x7f ands r0, r1 @@ -5619,5 +5619,5 @@ _0801BEE4: _0801BEEE: pop {r4, pc} .align 2, 0 -_0801BEF0: .4byte gLinkEntity +_0801BEF0: .4byte gPlayerEntity _0801BEF4: .4byte gUnk_080B7878 \ No newline at end of file diff --git a/asm/code_0801C85C.s b/asm/code_0801C85C.s index 61848c56..bd6022ca 100644 --- a/asm/code_0801C85C.s +++ b/asm/code_0801C85C.s @@ -16,7 +16,7 @@ sub_0801C85C: @ 0x0801C85C ands r0, r1 cmp r0, #0 bne _0801C878 - ldr r0, _0801C888 @ =gLinkState + ldr r0, _0801C888 @ =gPlayerState adds r0, #0xa0 ldrb r1, [r0] rsbs r0, r1, #0 @@ -29,7 +29,7 @@ _0801C878: b _0801C984 .align 2, 0 _0801C884: .4byte gUnk_0200AF00 -_0801C888: .4byte gLinkState +_0801C888: .4byte gPlayerState _0801C88C: ldrb r0, [r5, #4] ldr r4, _0801C92C @ =gUnk_02034D30 @@ -37,7 +37,7 @@ _0801C88C: bls _0801C896 adds r4, #0x40 _0801C896: - ldr r0, _0801C930 @ =gLinkState + ldr r0, _0801C930 @ =gPlayerState adds r0, #0xa4 movs r1, #0 ldrsh r0, [r0, r1] @@ -100,7 +100,7 @@ _0801C90C: ldr r0, _0801C94C @ =gScreen strh r6, [r0, #0xe] _0801C910: - ldr r0, _0801C930 @ =gLinkState + ldr r0, _0801C930 @ =gPlayerState adds r0, #0xa0 ldrb r0, [r0] cmp r0, #5 @@ -116,7 +116,7 @@ _0801C910: b _0801C956 .align 2, 0 _0801C92C: .4byte gUnk_02034D30 -_0801C930: .4byte gLinkState +_0801C930: .4byte gPlayerState _0801C934: .4byte 0x0000F016 _0801C938: .4byte 0x0000F416 _0801C93C: .4byte 0x040000D4 diff --git a/asm/code_08049CD4.s b/asm/code_08049CD4.s index 18f22491..3d3a0085 100644 --- a/asm/code_08049CD4.s +++ b/asm/code_08049CD4.s @@ -183,7 +183,7 @@ _08049E14: .4byte gUnk_080D3BE8 thumb_func_start sub_08049E18 sub_08049E18: @ 0x08049E18 push {lr} - ldr r1, _08049E38 @ =gLinkState + ldr r1, _08049E38 @ =gPlayerState adds r0, r1, #0 adds r0, #0x3c ldrb r0, [r0] @@ -195,14 +195,14 @@ sub_08049E18: @ 0x08049E18 cmp r0, #0 bne _08049E48 ldr r1, _08049E40 @ =gUnk_020000B0 - ldr r0, _08049E44 @ =gLinkEntity + ldr r0, _08049E44 @ =gPlayerEntity str r0, [r1] b _08049E4A .align 2, 0 -_08049E38: .4byte gLinkState +_08049E38: .4byte gPlayerState _08049E3C: .4byte 0x22189B75 _08049E40: .4byte gUnk_020000B0 -_08049E44: .4byte gLinkEntity +_08049E44: .4byte gPlayerEntity _08049E48: movs r0, #0 _08049E4A: @@ -211,7 +211,7 @@ _08049E4A: thumb_func_start sub_08049E4C sub_08049E4C: @ 0x08049E4C push {lr} - ldr r1, _08049E6C @ =gLinkState + ldr r1, _08049E6C @ =gPlayerState adds r0, r1, #0 adds r0, #0x3c ldrb r0, [r0] @@ -223,14 +223,14 @@ sub_08049E4C: @ 0x08049E4C cmp r0, #0 bne _08049E7C ldr r1, _08049E74 @ =gUnk_020000B0 - ldr r0, _08049E78 @ =gLinkEntity + ldr r0, _08049E78 @ =gPlayerEntity str r0, [r1] b _08049E7E .align 2, 0 -_08049E6C: .4byte gLinkState +_08049E6C: .4byte gPlayerState _08049E70: .4byte 0x22189BF5 _08049E74: .4byte gUnk_020000B0 -_08049E78: .4byte gLinkEntity +_08049E78: .4byte gPlayerEntity _08049E7C: movs r0, #0 _08049E7E: @@ -239,7 +239,7 @@ _08049E7E: thumb_func_start sub_08049E80 sub_08049E80: @ 0x08049E80 push {lr} - ldr r1, _08049E9C @ =gLinkState + ldr r1, _08049E9C @ =gPlayerState adds r0, r1, #0 adds r0, #0x3c ldrb r0, [r0] @@ -254,21 +254,21 @@ _08049E98: movs r0, #0 b _08049EA6 .align 2, 0 -_08049E9C: .4byte gLinkState +_08049E9C: .4byte gPlayerState _08049EA0: ldr r1, _08049EA8 @ =gUnk_020000B0 - ldr r0, _08049EAC @ =gLinkEntity + ldr r0, _08049EAC @ =gPlayerEntity str r0, [r1] _08049EA6: pop {pc} .align 2, 0 _08049EA8: .4byte gUnk_020000B0 -_08049EAC: .4byte gLinkEntity +_08049EAC: .4byte gPlayerEntity thumb_func_start sub_08049EB0 sub_08049EB0: @ 0x08049EB0 push {lr} - ldr r1, _08049ED0 @ =gLinkState + ldr r1, _08049ED0 @ =gPlayerState adds r0, r1, #0 adds r0, #0x3c ldrb r0, [r0] @@ -280,14 +280,14 @@ sub_08049EB0: @ 0x08049EB0 cmp r0, #0 bne _08049EE0 ldr r1, _08049ED8 @ =gUnk_020000B0 - ldr r0, _08049EDC @ =gLinkEntity + ldr r0, _08049EDC @ =gPlayerEntity str r0, [r1] b _08049EE2 .align 2, 0 -_08049ED0: .4byte gLinkState +_08049ED0: .4byte gPlayerState _08049ED4: .4byte 0x00080190 _08049ED8: .4byte gUnk_020000B0 -_08049EDC: .4byte gLinkEntity +_08049EDC: .4byte gPlayerEntity _08049EE0: movs r0, #0 _08049EE2: diff --git a/asm/code_08050038.s b/asm/code_08050038.s index 6a621a70..23d50993 100644 --- a/asm/code_08050038.s +++ b/asm/code_08050038.s @@ -3399,7 +3399,7 @@ _08051C60: .4byte gTextBox _08051C64: .4byte gUnk_03003DC0 _08051C68: .4byte gRoomControls _08051C6C: - ldr r0, _08051C80 @ =gLinkState + ldr r0, _08051C80 @ =gPlayerState movs r1, #0x17 strb r1, [r0, #0xc] ldr r0, _08051C84 @ =gUnk_03001000 @@ -3408,10 +3408,10 @@ _08051C6C: bl sub_08051D98 b _08051C9C .align 2, 0 -_08051C80: .4byte gLinkState +_08051C80: .4byte gPlayerState _08051C84: .4byte gUnk_03001000 _08051C88: - ldr r1, _08051CA0 @ =gLinkState + ldr r1, _08051CA0 @ =gPlayerState movs r0, #0x17 strb r0, [r1, #0xc] ldr r1, _08051CA4 @ =gUnk_03001000 @@ -3422,7 +3422,7 @@ _08051C88: _08051C9C: pop {pc} .align 2, 0 -_08051CA0: .4byte gLinkState +_08051CA0: .4byte gPlayerState _08051CA4: .4byte gUnk_03001000 thumb_func_start sub_08051CA8 @@ -3496,7 +3496,7 @@ InitializeEntities: @ 0x08051D40 bl sub_08052EA0 bl sub_0804AF90 bl sub_0804AFDC - bl InitializeLink + bl InitializePlayer ldr r1, _08051D90 @ =gUnk_03004030 movs r0, #0 str r0, [r1] @@ -3571,7 +3571,7 @@ sub_08051E04: @ 0x08051E04 bl sub_08052620 cmp r0, #0 beq _08051E60 - ldr r1, _08051E2C @ =gLinkEntity + ldr r1, _08051E2C @ =gPlayerEntity movs r2, #0x2e ldrsh r0, [r1, r2] cmp r0, #0 @@ -3589,7 +3589,7 @@ _08051E26: ldr r3, _08051E30 @ =gUnk_08127F94 b _08051E36 .align 2, 0 -_08051E2C: .4byte gLinkEntity +_08051E2C: .4byte gPlayerEntity _08051E30: .4byte gUnk_08127F94 _08051E34: adds r3, #8 diff --git a/asm/code_080526F8.s b/asm/code_080526F8.s index 81b19e6a..cc33cc77 100644 --- a/asm/code_080526F8.s +++ b/asm/code_080526F8.s @@ -298,7 +298,7 @@ sub_0805291C: @ 0x0805291C ldrb r0, [r0] cmp r0, #0 beq _080529F4 - ldr r0, _08052950 @ =gLinkState + ldr r0, _08052950 @ =gPlayerState adds r0, #0xa8 ldrb r0, [r0] cmp r0, #0x12 @@ -312,7 +312,7 @@ sub_0805291C: @ 0x0805291C .align 2, 0 _08052948: .4byte gScreenTransition _0805294C: .4byte gUnk_02002A40 -_08052950: .4byte gLinkState +_08052950: .4byte gPlayerState _08052954: ldrb r0, [r4, #9] subs r0, #1 @@ -400,7 +400,7 @@ sub_080529F8: @ 0x080529F8 ldrh r0, [r2] cmp r0, #0 beq _08052A48 - ldr r3, _08052A3C @ =gLinkState + ldr r3, _08052A3C @ =gPlayerState movs r6, #0 movs r0, #0x39 adds r0, r0, r3 @@ -428,7 +428,7 @@ _08052A30: .align 2, 0 _08052A34: .4byte gScreenTransition _08052A38: .4byte gUnk_080FCAD6 -_08052A3C: .4byte gLinkState +_08052A3C: .4byte gPlayerState _08052A40: adds r2, #4 ldrh r0, [r2] @@ -445,7 +445,7 @@ sub_08052A4C: @ 0x08052A4C ldr r2, _08052A88 @ =gScreenTransition movs r0, #1 strb r0, [r2, #8] - ldr r5, _08052A8C @ =gLinkEntity + ldr r5, _08052A8C @ =gPlayerEntity ldr r3, _08052A90 @ =gRoomControls ldrh r0, [r5, #0x2e] ldrh r1, [r3, #6] @@ -472,7 +472,7 @@ sub_08052A4C: @ 0x08052A4C pop {r4, r5, pc} .align 2, 0 _08052A88: .4byte gScreenTransition -_08052A8C: .4byte gLinkEntity +_08052A8C: .4byte gPlayerEntity _08052A90: .4byte gRoomControls thumb_func_start sub_08052A94 @@ -552,7 +552,7 @@ sub_08052B24: @ 0x08052B24 ands r0, r1 cmp r0, #0 beq _08052B8A - ldr r2, _08052B94 @ =gLinkState + ldr r2, _08052B94 @ =gPlayerState adds r0, r2, #0 adds r0, #0x8b ldrb r0, [r0] @@ -580,7 +580,7 @@ sub_08052B24: @ 0x08052B24 ldr r0, [r2, #0x2c] cmp r0, #0 bne _08052B8A - ldr r1, _08052BA0 @ =gLinkEntity + ldr r1, _08052BA0 @ =gPlayerEntity adds r0, r1, #0 adds r0, #0x7a ldrh r0, [r0] @@ -601,10 +601,10 @@ _08052B8A: b _08052BB4 .align 2, 0 _08052B90: .4byte gUnk_03000FF0 -_08052B94: .4byte gLinkState +_08052B94: .4byte gPlayerState _08052B98: .4byte gUnk_02034490 _08052B9C: .4byte gUnk_0200AF00 -_08052BA0: .4byte gLinkEntity +_08052BA0: .4byte gPlayerEntity _08052BA4: bl sub_0801862C movs r0, #0x13 @@ -625,7 +625,7 @@ sub_08052BB8: @ 0x08052BB8 adds r3, r0, #0 cmp r1, #0 bne _08052BEC - ldr r0, _08052BE4 @ =gLinkEntity + ldr r0, _08052BE4 @ =gPlayerEntity movs r2, #0x32 ldrsh r1, [r0, r2] ldr r0, _08052BE8 @ =gRoomControls @@ -639,7 +639,7 @@ sub_08052BB8: @ 0x08052BB8 b _08052BEE .align 2, 0 _08052BE0: .4byte gScreenTransition -_08052BE4: .4byte gLinkEntity +_08052BE4: .4byte gPlayerEntity _08052BE8: .4byte gRoomControls _08052BEC: ldrb r2, [r2] @@ -714,7 +714,7 @@ sub_08052C5C: @ 0x08052C5C cmp r0, #0 beq _08052C84 ldr r2, _08052C7C @ =gScreenTransition - ldr r1, _08052C80 @ =gLinkEntity + ldr r1, _08052C80 @ =gPlayerEntity ldrh r0, [r1, #0x2e] strh r0, [r2, #0x20] ldrh r0, [r1, #0x32] @@ -722,13 +722,13 @@ sub_08052C5C: @ 0x08052C5C b _08052C98 .align 2, 0 _08052C7C: .4byte gScreenTransition -_08052C80: .4byte gLinkEntity +_08052C80: .4byte gPlayerEntity _08052C84: bl CheckIsDungeon cmp r0, #0 beq _08052C98 ldr r2, _08052C9C @ =gScreenTransition - ldr r1, _08052CA0 @ =gLinkEntity + ldr r1, _08052CA0 @ =gPlayerEntity ldrh r0, [r1, #0x2e] strh r0, [r2, #0x1c] ldrh r0, [r1, #0x32] @@ -737,7 +737,7 @@ _08052C98: pop {pc} .align 2, 0 _08052C9C: .4byte gScreenTransition -_08052CA0: .4byte gLinkEntity +_08052CA0: .4byte gPlayerEntity thumb_func_start sub_08052CA4 sub_08052CA4: @ 0x08052CA4 @@ -1418,8 +1418,8 @@ _080531F4: .4byte gUnk_02002AA0 thumb_func_start sub_080531F8 sub_080531F8: @ 0x080531F8 push {r4, r5, lr} - ldr r1, _0805323C @ =gLinkState - ldr r4, _08053240 @ =gLinkEntity + ldr r1, _0805323C @ =gPlayerState + ldr r4, _08053240 @ =gPlayerEntity ldrh r0, [r4, #0x2e] strh r0, [r1, #0x16] ldrh r0, [r4, #0x32] @@ -1449,8 +1449,8 @@ sub_080531F8: @ 0x080531F8 _08053238: pop {r4, r5, pc} .align 2, 0 -_0805323C: .4byte gLinkState -_08053240: .4byte gLinkEntity +_0805323C: .4byte gPlayerState +_08053240: .4byte gPlayerEntity _08053244: .4byte gUnk_030010AC _08053248: .4byte gUnk_02002AC8 _0805324C: .4byte gRoomControls @@ -1461,7 +1461,7 @@ sub_08053250: @ 0x08053250 ldr r0, _0805328C @ =gScreenTransition movs r1, #0 strb r1, [r0, #0xf] - ldr r3, _08053290 @ =gLinkEntity + ldr r3, _08053290 @ =gPlayerEntity ldr r4, _08053294 @ =gRoomControls ldrh r1, [r3, #0x2e] ldrh r2, [r4, #6] @@ -1487,7 +1487,7 @@ sub_08053250: @ 0x08053250 pop {r4, pc} .align 2, 0 _0805328C: .4byte gScreenTransition -_08053290: .4byte gLinkEntity +_08053290: .4byte gPlayerEntity _08053294: .4byte gRoomControls _08053298: .4byte gUnk_02002AC8 diff --git a/asm/code_0805436C.s b/asm/code_0805436C.s index 960c0bf3..0272467d 100644 --- a/asm/code_0805436C.s +++ b/asm/code_0805436C.s @@ -252,7 +252,7 @@ sub_08054A60: @ 0x08054A60 subs r1, #1 movs r0, #0x80 strb r0, [r1] - ldr r0, _08054AC4 @ =gLinkEntity + ldr r0, _08054AC4 @ =gPlayerEntity ldrb r1, [r0, #0x14] movs r0, #0xe ands r0, r1 @@ -273,13 +273,13 @@ _08054AAC: bl sub_08054AC8 pop {r4, pc} .align 2, 0 -_08054AC4: .4byte gLinkEntity +_08054AC4: .4byte gPlayerEntity thumb_func_start sub_08054AC8 sub_08054AC8: @ 0x08054AC8 push {r4, r5, r6, r7, lr} adds r4, r0, #0 - ldr r5, _08054B14 @ =gLinkEntity + ldr r5, _08054B14 @ =gPlayerEntity ldrb r1, [r5, #0x14] movs r0, #0xe ands r0, r1 @@ -317,7 +317,7 @@ _08054B06: strb r0, [r4, #0x10] b _08054B68 .align 2, 0 -_08054B14: .4byte gLinkEntity +_08054B14: .4byte gPlayerEntity _08054B18: .4byte gUnk_080FEEB0 _08054B1C: ldrb r0, [r4, #0x10] @@ -366,7 +366,7 @@ _08054B68: ldrb r0, [r4, #0x1e] cmp r0, #0xff beq _08054BE8 - ldr r0, _08054BF4 @ =gLinkEntity + ldr r0, _08054BF4 @ =gPlayerEntity ldrb r0, [r0, #0x18] lsls r0, r0, #0x1e cmp r0, #0 @@ -421,12 +421,12 @@ _08054B68: adds r0, #0x63 strb r1, [r0] _08054BE8: - ldr r1, _08054BF4 @ =gLinkEntity + ldr r1, _08054BF4 @ =gPlayerEntity adds r0, r4, #0 bl sub_08078E84 b _08054C00 .align 2, 0 -_08054BF4: .4byte gLinkEntity +_08054BF4: .4byte gPlayerEntity _08054BF8: .4byte gUnk_080FEEB0 _08054BFC: bl DeleteThisEntity diff --git a/asm/code_0805E3B0.s b/asm/code_0805E3B0.s index f7c384c4..9b1b8201 100644 --- a/asm/code_0805E3B0.s +++ b/asm/code_0805E3B0.s @@ -252,7 +252,7 @@ sub_0805E544: @ 0x0805E544 movs r3, #6 movs r0, #6 strb r0, [r1] - ldr r2, _0805E560 @ =gLinkEntity + ldr r2, _0805E560 @ =gPlayerEntity ldrb r1, [r2, #0x11] subs r0, #0x16 ands r0, r1 @@ -261,14 +261,14 @@ sub_0805E544: @ 0x0805E544 bx lr .align 2, 0 _0805E55C: .4byte gUnk_03003DC0 -_0805E560: .4byte gLinkEntity +_0805E560: .4byte gPlayerEntity thumb_func_start UnfreezeTime UnfreezeTime: @ 0x0805E564 ldr r1, _0805E57C @ =gUnk_03003DC0 movs r0, #0 strb r0, [r1] - ldr r2, _0805E580 @ =gLinkEntity + ldr r2, _0805E580 @ =gPlayerEntity ldrb r1, [r2, #0x11] subs r0, #0x10 ands r0, r1 @@ -278,7 +278,7 @@ UnfreezeTime: @ 0x0805E564 bx lr .align 2, 0 _0805E57C: .4byte gUnk_03003DC0 -_0805E580: .4byte gLinkEntity +_0805E580: .4byte gPlayerEntity thumb_func_start sub_0805E584 sub_0805E584: @ 0x0805E584 @@ -361,7 +361,7 @@ EraseAllEntities: @ 0x0805E60C ldr r0, _0805E654 @ =gUnk_03003DC0 movs r1, #0xc bl _DmaZero - ldr r0, _0805E658 @ =gLinkEntity + ldr r0, _0805E658 @ =gPlayerEntity movs r1, #0xaa lsls r1, r1, #6 bl _DmaZero @@ -389,7 +389,7 @@ EraseAllEntities: @ 0x0805E60C pop {pc} .align 2, 0 _0805E654: .4byte gUnk_03003DC0 -_0805E658: .4byte gLinkEntity +_0805E658: .4byte gPlayerEntity _0805E65C: .4byte gUnk_02033290 _0805E660: .4byte gUnk_03003DBC _0805E664: .4byte gUnk_020354B4 diff --git a/asm/code_0805EC04.s b/asm/code_0805EC04.s index 2dc3e2e7..1df1ae7b 100644 --- a/asm/code_0805EC04.s +++ b/asm/code_0805EC04.s @@ -152,7 +152,7 @@ _0805ED10: .4byte 0x00000427 thumb_func_start sub_0805ED14 sub_0805ED14: @ 0x0805ED14 - ldr r2, _0805ED2C @ =gLinkState + ldr r2, _0805ED2C @ =gPlayerState adds r1, r2, #0 adds r1, #0x9c str r0, [r1] @@ -164,12 +164,12 @@ sub_0805ED14: @ 0x0805ED14 strh r1, [r0] bx lr .align 2, 0 -_0805ED2C: .4byte gLinkState +_0805ED2C: .4byte gPlayerState thumb_func_start sub_0805ED30 sub_0805ED30: @ 0x0805ED30 push {r4, lr} - ldr r2, _0805ED50 @ =gLinkState + ldr r2, _0805ED50 @ =gPlayerState adds r0, r2, #0 adds r0, #0x9c ldr r0, [r0] @@ -185,7 +185,7 @@ sub_0805ED30: @ 0x0805ED30 movs r4, #0 b _0805ED62 .align 2, 0 -_0805ED50: .4byte gLinkState +_0805ED50: .4byte gPlayerState _0805ED54: cmp r0, #2 beq _0805ED5E @@ -258,7 +258,7 @@ _0805EDC6: _0805EDCA: adds r0, r1, #0 bl sub_0805EE04 - ldr r3, _0805EDFC @ =gLinkState + ldr r3, _0805EDFC @ =gPlayerState adds r1, r3, #0 adds r1, #0x90 ldrh r2, [r1] @@ -279,7 +279,7 @@ _0805EDCA: pop {r4, pc} .align 2, 0 _0805EDF8: .4byte gUnk_03000FF0 -_0805EDFC: .4byte gLinkState +_0805EDFC: .4byte gPlayerState _0805EE00: .4byte gUnk_08109202 thumb_func_start sub_0805EE04 @@ -2110,7 +2110,7 @@ _0805FBE4: .4byte gUnk_08109AC8 sub_0805FBE8: @ 0x0805FBE8 push {r4, r5, lr} adds r5, r0, #0 - ldr r4, _0805FC68 @ =gLinkEntity + ldr r4, _0805FC68 @ =gPlayerEntity adds r0, r4, #0 adds r1, r5, #0 bl CopyPosition @@ -2167,7 +2167,7 @@ _0805FC36: bl PlaySFX pop {r4, r5, pc} .align 2, 0 -_0805FC68: .4byte gLinkEntity +_0805FC68: .4byte gPlayerEntity _0805FC6C: .4byte gUnk_08109AD0 _0805FC70: .4byte 0x0000013F @@ -2211,7 +2211,7 @@ _0805FCA4: ands r1, r3 lsls r1, r1, #6 orrs r0, r1 - ldr r1, _0805FD14 @ =gLinkEntity + ldr r1, _0805FD14 @ =gPlayerEntity adds r1, #0x38 ldrb r1, [r1] movs r2, #0x80 @@ -2246,7 +2246,7 @@ _0805FCF6: b _0805FD20 .align 2, 0 _0805FD10: .4byte gRoomControls -_0805FD14: .4byte gLinkEntity +_0805FD14: .4byte gPlayerEntity _0805FD18: .4byte gUnk_08003E44 _0805FD1C: bl DeleteThisEntity diff --git a/asm/code_0806ED78.s b/asm/code_0806ED78.s index 6efd6e68..c5e24be4 100644 --- a/asm/code_0806ED78.s +++ b/asm/code_0806ED78.s @@ -13,7 +13,7 @@ sub_0806ED78: @ 0x0806ED78 adds r4, r0, #0 cmp r4, #0 beq _0806ED94 - ldr r0, _0806ED98 @ =gLinkState + ldr r0, _0806ED98 @ =gPlayerState ldrb r1, [r0, #0x1e] movs r0, #0x40 ands r0, r1 @@ -24,7 +24,7 @@ _0806ED94: adds r0, r4, #0 pop {r4, pc} .align 2, 0 -_0806ED98: .4byte gLinkState +_0806ED98: .4byte gPlayerState thumb_func_start sub_0806ED9C sub_0806ED9C: @ 0x0806ED9C @@ -34,7 +34,7 @@ sub_0806ED9C: @ 0x0806ED9C adds r3, r2, #0 movs r6, #1 rsbs r6, r6, #0 - ldr r1, _0806EDC0 @ =gLinkEntity + ldr r1, _0806EDC0 @ =gPlayerEntity adds r2, r4, #0 bl sub_080041A0 cmp r0, #0 @@ -46,17 +46,17 @@ _0806EDBC: adds r0, r6, #0 pop {r4, r5, r6, pc} .align 2, 0 -_0806EDC0: .4byte gLinkEntity +_0806EDC0: .4byte gPlayerEntity thumb_func_start GetAnimationState GetAnimationState: @ 0x0806EDC4 push {lr} - ldr r1, _0806EDD4 @ =gLinkEntity + ldr r1, _0806EDD4 @ =gPlayerEntity bl GetFacingDirection bl sub_0806F5A4 pop {pc} .align 2, 0 -_0806EDD4: .4byte gLinkEntity +_0806EDD4: .4byte gPlayerEntity thumb_func_start sub_0806EDD8 sub_0806EDD8: @ 0x0806EDD8 @@ -66,7 +66,7 @@ sub_0806EDD8: @ 0x0806EDD8 adds r3, r2, #0 movs r7, #1 rsbs r7, r7, #0 - ldr r6, _0806EE00 @ =gLinkEntity + ldr r6, _0806EE00 @ =gPlayerEntity adds r1, r6, #0 adds r2, r4, #0 bl sub_080041A0 @@ -80,7 +80,7 @@ _0806EDFC: adds r0, r7, #0 pop {r4, r5, r6, r7, pc} .align 2, 0 -_0806EE00: .4byte gLinkEntity +_0806EE00: .4byte gPlayerEntity thumb_func_start sub_0806EE04 sub_0806EE04: @ 0x0806EE04 @@ -127,7 +127,7 @@ _0806EE4C: adds r1, #0x46 movs r0, #8 strh r0, [r1] - ldr r1, _0806EE6C @ =gLinkEntity + ldr r1, _0806EE6C @ =gPlayerEntity adds r0, r4, #0 bl GetFacingDirection bl sub_0806F5A4 @@ -139,7 +139,7 @@ _0806EE66: _0806EE68: pop {r4, pc} .align 2, 0 -_0806EE6C: .4byte gLinkEntity +_0806EE6C: .4byte gPlayerEntity thumb_func_start sub_0806EE70 sub_0806EE70: @ 0x0806EE70 @@ -548,14 +548,14 @@ sub_0806F118: @ 0x0806F118 ldrh r3, [r0, #4] adds r0, r4, #0 bl sub_0801DFB4 - ldr r0, _0806F144 @ =gLinkState + ldr r0, _0806F144 @ =gPlayerState adds r0, #0x8b movs r1, #3 strb r1, [r0] pop {r4, pc} .align 2, 0 _0806F140: .4byte gUnk_08001A7C -_0806F144: .4byte gLinkState +_0806F144: .4byte gPlayerState thumb_func_start UpdateFuseInteraction UpdateFuseInteraction: @ 0x0806F148 @@ -574,14 +574,14 @@ UpdateFuseInteraction: @ 0x0806F148 .align 2, 0 _0806F164: .4byte gUnk_02022740 _0806F168: - ldr r0, _0806F184 @ =gLinkState + ldr r0, _0806F184 @ =gPlayerState adds r0, #0x8b movs r1, #3 strb r1, [r0] movs r4, #1 _0806F172: bl sub_0807919C - ldr r0, _0806F184 @ =gLinkState + ldr r0, _0806F184 @ =gPlayerState adds r0, #0x8b movs r1, #1 strb r1, [r0] @@ -589,7 +589,7 @@ _0806F17E: adds r0, r4, #0 pop {r4, pc} .align 2, 0 -_0806F184: .4byte gLinkState +_0806F184: .4byte gPlayerState thumb_func_start sub_0806F188 sub_0806F188: @ 0x0806F188 @@ -801,7 +801,7 @@ _0806F332: movs r0, #0 b _0806F34E _0806F336: - ldr r0, _0806F348 @ =gLinkState + ldr r0, _0806F348 @ =gPlayerState ldr r0, [r0, #0x30] movs r1, #0x80 ands r0, r1 @@ -811,7 +811,7 @@ _0806F342: ldrh r0, [r6, #6] b _0806F34E .align 2, 0 -_0806F348: .4byte gLinkState +_0806F348: .4byte gPlayerState _0806F34C: ldrh r0, [r6, #4] _0806F34E: @@ -863,7 +863,7 @@ _0806F398: .4byte gArea sub_0806F39C: @ 0x0806F39C push {r4, lr} adds r3, r0, #0 - ldr r2, _0806F3B8 @ =gLinkEntity + ldr r2, _0806F3B8 @ =gPlayerEntity ldrb r1, [r2, #0x14] movs r0, #2 ands r0, r1 @@ -876,7 +876,7 @@ sub_0806F39C: @ 0x0806F39C ldrsh r0, [r4, r2] b _0806F3C4 .align 2, 0 -_0806F3B8: .4byte gLinkEntity +_0806F3B8: .4byte gPlayerEntity _0806F3BC: movs r0, #0x32 ldrsh r1, [r3, r0] @@ -907,7 +907,7 @@ sub_0806F3E4: @ 0x0806F3E4 push {r4, r5, r6, lr} sub sp, #0x88 adds r5, r0, #0 - ldr r2, _0806F408 @ =gLinkState + ldr r2, _0806F408 @ =gPlayerState ldrb r1, [r2, #0x1c] movs r0, #0x7f ands r0, r1 @@ -922,7 +922,7 @@ sub_0806F3E4: @ 0x0806F3E4 beq _0806F416 b _0806F410 .align 2, 0 -_0806F408: .4byte gLinkState +_0806F408: .4byte gPlayerState _0806F40C: cmp r0, #3 beq _0806F42A @@ -959,7 +959,7 @@ _0806F436: bls _0806F444 strh r1, [r2] _0806F444: - ldr r6, _0806F4BC @ =gLinkEntity + ldr r6, _0806F4BC @ =gPlayerEntity ldrb r0, [r6, #0x14] movs r1, #0xe ands r1, r0 @@ -999,7 +999,7 @@ _0806F444: movs r0, #3 strb r0, [r5, #0xd] str r5, [r6, #0x70] - ldr r1, _0806F4C4 @ =gLinkState + ldr r1, _0806F4C4 @ =gPlayerState movs r0, #7 strb r0, [r1, #0x1c] movs r0, #0x11 @@ -1016,13 +1016,13 @@ _0806F4B4: bl PlaySFX b _0806F4D8 .align 2, 0 -_0806F4BC: .4byte gLinkEntity +_0806F4BC: .4byte gPlayerEntity _0806F4C0: .4byte gUnk_08126EE4 -_0806F4C4: .4byte gLinkState +_0806F4C4: .4byte gPlayerState _0806F4C8: cmp r1, #1 bne _0806F4D8 - ldr r0, _0806F4DC @ =gLinkState + ldr r0, _0806F4DC @ =gPlayerState ldr r0, [r0, #0x2c] strb r1, [r0, #0xa] movs r0, #0xef @@ -1031,7 +1031,7 @@ _0806F4D8: movs r0, #1 b _0806F4E2 .align 2, 0 -_0806F4DC: .4byte gLinkState +_0806F4DC: .4byte gPlayerState _0806F4E0: movs r0, #0 _0806F4E2: @@ -1657,7 +1657,7 @@ _0806F944: sub_0806F948: @ 0x0806F948 push {r4, lr} adds r4, r0, #0 - ldr r1, _0806F974 @ =gLinkState + ldr r1, _0806F974 @ =gPlayerState ldrb r0, [r1, #0xd] cmp r0, #0xff beq _0806F994 @@ -1677,7 +1677,7 @@ sub_0806F948: @ 0x0806F948 adds r0, r2, #0 b _0806F996 .align 2, 0 -_0806F974: .4byte gLinkState +_0806F974: .4byte gPlayerState _0806F978: movs r2, #0 cmp r3, #4 diff --git a/asm/code_0806FA6C.s b/asm/code_0806FA6C.s index 1f153b44..d948543c 100644 --- a/asm/code_0806FA6C.s +++ b/asm/code_0806FA6C.s @@ -110,7 +110,7 @@ sub_0806FBB4: @ 0x0806FBB4 ldrb r0, [r0, #5] cmp r0, #0 bne _0806FBC8 - ldr r0, _0806FBD4 @ =gLinkState + ldr r0, _0806FBD4 @ =gPlayerState ldrb r0, [r0, #5] cmp r0, #0 bne _0806FBCC @@ -121,7 +121,7 @@ _0806FBCC: pop {pc} .align 2, 0 _0806FBD0: .4byte gScreenTransition -_0806FBD4: .4byte gLinkState +_0806FBD4: .4byte gPlayerState thumb_func_start sub_0806FBD8 sub_0806FBD8: @ 0x0806FBD8 @@ -148,7 +148,7 @@ sub_0806FBEC: @ 0x0806FBEC sub_0806FBFC: @ 0x0806FBFC push {r4, r5, r6, lr} adds r5, r3, #0 - ldr r4, _0806FC20 @ =gLinkEntity + ldr r4, _0806FC20 @ =gPlayerEntity movs r6, #0x2e ldrsh r3, [r4, r6] subs r3, r3, r0 @@ -165,7 +165,7 @@ _0806FC1A: adds r0, r1, #0 pop {r4, r5, r6, pc} .align 2, 0 -_0806FC20: .4byte gLinkEntity +_0806FC20: .4byte gPlayerEntity thumb_func_start sub_0806FC24 sub_0806FC24: @ 0x0806FC24 @@ -353,7 +353,7 @@ sub_0806FD3C: @ 0x0806FD3C sub_0806FD54: @ 0x0806FD54 push {r4, lr} adds r3, r0, #0 - ldr r0, _0806FD6C @ =gLinkState + ldr r0, _0806FD6C @ =gPlayerState ldr r0, [r0, #0x30] movs r1, #0x80 lsls r1, r1, #0x10 @@ -363,9 +363,9 @@ sub_0806FD54: @ 0x0806FD54 movs r0, #0 b _0806FD84 .align 2, 0 -_0806FD6C: .4byte gLinkState +_0806FD6C: .4byte gPlayerState _0806FD70: - ldr r0, _0806FD88 @ =gLinkEntity + ldr r0, _0806FD88 @ =gPlayerEntity movs r2, #0x2e ldrsh r1, [r0, r2] movs r4, #0x32 @@ -377,7 +377,7 @@ _0806FD70: _0806FD84: pop {r4, pc} .align 2, 0 -_0806FD88: .4byte gLinkEntity +_0806FD88: .4byte gPlayerEntity thumb_func_start sub_0806FD8C sub_0806FD8C: @ 0x0806FD8C @@ -885,7 +885,7 @@ sub_08070100: @ 0x08070100 movs r0, #0xf0 lsls r0, r0, #1 str r0, [r5, #0x78] - ldr r2, _0807017C @ =gLinkEntity + ldr r2, _0807017C @ =gPlayerEntity ldr r1, _08070180 @ =gUnk_0811B9A0 ldrb r0, [r5, #0x14] adds r0, r0, r1 @@ -921,7 +921,7 @@ sub_08070100: @ 0x08070100 strb r3, [r5, #0xa] b _0807018C .align 2, 0 -_0807017C: .4byte gLinkEntity +_0807017C: .4byte gPlayerEntity _08070180: .4byte gUnk_0811B9A0 _08070184: .4byte gUnk_0811B9D0 _08070188: @@ -1062,7 +1062,7 @@ _08070280: ands r1, r6 lsls r1, r1, #6 orrs r0, r1 - ldr r1, _08070358 @ =gLinkEntity + ldr r1, _08070358 @ =gPlayerEntity adds r1, #0x38 ldrb r1, [r1] movs r2, #0x80 @@ -1148,7 +1148,7 @@ _08070280: b _0807037A .align 2, 0 _08070354: .4byte gRoomControls -_08070358: .4byte gLinkEntity +_08070358: .4byte gPlayerEntity _0807035C: .4byte gUnk_08003E44 _08070360: .4byte 0x00004020 _08070364: @@ -1368,13 +1368,13 @@ sub_080704D4: @ 0x080704D4 sub_080704FC: @ 0x080704FC push {r4, r5, lr} adds r4, r0, #0 - ldr r5, _0807052C @ =gLinkEntity + ldr r5, _0807052C @ =gPlayerEntity adds r0, r5, #0 adds r0, #0x5a ldrb r2, [r0] movs r0, #0x80 ands r0, r2 - ldr r1, _08070530 @ =gLinkState + ldr r1, _08070530 @ =gPlayerState cmp r0, #0 bne _08070518 ldr r0, [r1, #0x2c] @@ -1391,8 +1391,8 @@ _08070522: bl DeleteEntity b _08070566 .align 2, 0 -_0807052C: .4byte gLinkEntity -_08070530: .4byte gLinkState +_0807052C: .4byte gPlayerEntity +_08070530: .4byte gPlayerState _08070534: movs r0, #0xf ands r0, r2 @@ -1420,7 +1420,7 @@ _08070562: movs r0, #0xff strb r0, [r4, #0x1e] _08070566: - ldr r2, _08070580 @ =gLinkEntity + ldr r2, _08070580 @ =gPlayerEntity ldrb r1, [r2, #0x14] movs r0, #2 ands r0, r1 @@ -1433,7 +1433,7 @@ _08070566: eors r2, r0 b _0807058A .align 2, 0 -_08070580: .4byte gLinkEntity +_08070580: .4byte gPlayerEntity _08070584: ldrb r0, [r2, #0x18] lsls r0, r0, #0x19 @@ -1493,7 +1493,7 @@ sub_080705AC: @ 0x080705AC ldrb r0, [r0] cmp r0, #0 beq _08070674 - ldr r1, _08070628 @ =gLinkState + ldr r1, _08070628 @ =gPlayerState adds r0, r1, #0 adds r0, #0x8b ldrb r0, [r0] @@ -1518,7 +1518,7 @@ _08070618: .4byte gUnk_03000FD0 _0807061C: .4byte gUnk_02034490 _08070620: .4byte gTextBox _08070624: .4byte gUnk_02002A40 -_08070628: .4byte gLinkState +_08070628: .4byte gPlayerState _0807062C: .4byte gUnk_03003DC0 _08070630: ldrb r0, [r2] diff --git a/asm/code_08070698.s b/asm/code_08070698.s index b6e53ed6..762cec47 100644 --- a/asm/code_08070698.s +++ b/asm/code_08070698.s @@ -11,10 +11,10 @@ sub_08070698: @ 0x08070698 push {r4, r5, r6, lr} sub sp, #4 adds r4, r0, #0 - ldr r6, _08070788 @ =gLinkState + ldr r6, _08070788 @ =gPlayerState movs r0, #0xff strb r0, [r6] - ldr r1, _0807078C @ =gLinkEntity + ldr r1, _0807078C @ =gPlayerEntity ldrh r0, [r1, #0x2e] strh r0, [r6, #0x16] ldrh r0, [r1, #0x32] @@ -117,15 +117,15 @@ _08070784: add sp, #4 pop {r4, r5, r6, pc} .align 2, 0 -_08070788: .4byte gLinkState -_0807078C: .4byte gLinkEntity +_08070788: .4byte gPlayerState +_0807078C: .4byte gPlayerEntity _08070790: .4byte gUnk_08114F88 thumb_func_start sub_08070794 sub_08070794: @ 0x08070794 push {r4, r5, r6, r7, lr} adds r5, r0, #0 - ldr r6, _080707F0 @ =gLinkState + ldr r6, _080707F0 @ =gPlayerState adds r3, r6, #0 adds r3, #0xa8 movs r4, #0 @@ -164,26 +164,26 @@ sub_08070794: @ 0x08070794 ldrh r0, [r5, #0x12] cmp r0, #2 bne _080707F8 - ldr r0, _080707F4 @ =gLinkEntity + ldr r0, _080707F4 @ =gPlayerEntity bl UpdateAnimationSingleFrame b _08070800 .align 2, 0 -_080707F0: .4byte gLinkState -_080707F4: .4byte gLinkEntity +_080707F0: .4byte gPlayerState +_080707F4: .4byte gPlayerEntity _080707F8: movs r0, #0x97 lsls r0, r0, #2 mov r1, ip strh r0, [r1, #8] _08070800: - ldr r0, _08070814 @ =gLinkEntity + ldr r0, _08070814 @ =gPlayerEntity bl sub_0806F948 - bl ResetLink + bl ResetPlayer adds r0, r5, #0 bl sub_08077698 b _08070BE4 .align 2, 0 -_08070814: .4byte gLinkEntity +_08070814: .4byte gPlayerEntity _08070818: movs r0, #0x80 lsls r0, r0, #5 @@ -265,7 +265,7 @@ _080708A6: _080708AA: strh r0, [r5, #0x24] _080708AC: - ldr r4, _08070918 @ =gLinkState + ldr r4, _08070918 @ =gPlayerState ldrb r0, [r4, #6] movs r1, #0x80 orrs r1, r0 @@ -307,7 +307,7 @@ _080708E4: ldrb r0, [r0, #6] cmp r0, #0 bne _08070902 - bl ResetLink + bl ResetPlayer _08070902: ldr r0, [r4, #0x30] ands r0, r6 @@ -319,11 +319,11 @@ _0807090C: bl sub_08078EFC b _08070BE4 .align 2, 0 -_08070918: .4byte gLinkState +_08070918: .4byte gPlayerState _0807091C: .4byte 0x10000002 _08070920: .4byte gRoomVars _08070924: - ldr r0, _0807094C @ =gLinkState + ldr r0, _0807094C @ =gPlayerState ldr r1, [r0, #0x30] ldr r2, _08070950 @ =0x00041635 ands r1, r2 @@ -343,7 +343,7 @@ _08070940: ldr r0, [r0] mov pc, r0 .align 2, 0 -_0807094C: .4byte gLinkState +_0807094C: .4byte gPlayerState _08070950: .4byte 0x00041635 _08070954: .4byte _08070958 _08070958: @ jump table @@ -364,21 +364,21 @@ _08070958: @ jump table .4byte _08070BE4 @ case 14 .4byte _080709B4 @ case 15 _08070998: - ldr r0, _080709A4 @ =gLinkState + ldr r0, _080709A4 @ =gPlayerState ldrb r1, [r0, #6] movs r2, #0x80 eors r1, r2 strb r1, [r0, #6] b _080709D8 .align 2, 0 -_080709A4: .4byte gLinkState +_080709A4: .4byte gPlayerState _080709A8: - ldr r1, _080709B0 @ =gLinkState + ldr r1, _080709B0 @ =gPlayerState movs r0, #0x80 strb r0, [r1, #6] b _080709D8 .align 2, 0 -_080709B0: .4byte gLinkState +_080709B0: .4byte gPlayerState _080709B4: ldrb r1, [r5, #0x10] movs r0, #0x7f @@ -387,7 +387,7 @@ _080709B4: bl sub_080797EC b _08070BE4 _080709C2: - ldr r0, _080709D4 @ =gLinkState + ldr r0, _080709D4 @ =gPlayerState ldrb r1, [r0, #6] movs r2, #0x80 eors r1, r2 @@ -395,7 +395,7 @@ _080709C2: bl sub_080797EC b _08070BE4 .align 2, 0 -_080709D4: .4byte gLinkState +_080709D4: .4byte gPlayerState _080709D8: adds r1, r5, #0 adds r1, #0x3c @@ -423,7 +423,7 @@ _080709FC: b _08070BE4 _08070A0C: bl sub_080792D8 - ldr r4, _08070A78 @ =gLinkState + ldr r4, _08070A78 @ =gPlayerState ldrb r1, [r4, #2] ldrb r0, [r4, #0xa] orrs r0, r1 @@ -473,7 +473,7 @@ _08070A42: bl sub_08008926 b _08070A80 .align 2, 0 -_08070A78: .4byte gLinkState +_08070A78: .4byte gPlayerState _08070A7C: movs r0, #0xff strb r0, [r5, #0x15] @@ -488,7 +488,7 @@ _08070A80: beq _08070A94 b _08070BE4 _08070A94: - ldr r0, _08070AA8 @ =gLinkState + ldr r0, _08070AA8 @ =gPlayerState ldrb r0, [r0, #4] cmp r0, #0 beq _08070A9E @@ -498,7 +498,7 @@ _08070A9E: bl UpdateAnimationSingleFrame b _08070BE4 .align 2, 0 -_08070AA8: .4byte gLinkState +_08070AA8: .4byte gPlayerState _08070AAC: adds r0, r5, #0 adds r0, #0x42 @@ -559,7 +559,7 @@ _08070B18: adds r0, r5, #0 bl sub_08008AA0 _08070B1E: - ldr r2, _08070BB8 @ =gLinkState + ldr r2, _08070BB8 @ =gPlayerState ldrb r1, [r2, #0x1b] movs r0, #0x10 ands r0, r1 @@ -589,7 +589,7 @@ _08070B52: bl sub_0807A108 _08070B56: movs r4, #0 - ldr r3, _08070BB8 @ =gLinkState + ldr r3, _08070BB8 @ =gPlayerState ldrb r2, [r3, #7] ldrb r0, [r5, #0x15] orrs r0, r2 @@ -626,7 +626,7 @@ _08070B8E: ldrb r0, [r7] cmp r0, #0 bne _08070BE4 - ldr r1, _08070BB8 @ =gLinkState + ldr r1, _08070BB8 @ =gPlayerState ldrb r0, [r1, #0xb] cmp r0, #0 bne _08070BE4 @@ -637,7 +637,7 @@ _08070B8E: bl sub_0806F948 b _08070BE4 .align 2, 0 -_08070BB8: .4byte gLinkState +_08070BB8: .4byte gPlayerState _08070BBC: ldr r0, [r4, #0x2c] cmp r0, #0 @@ -687,7 +687,7 @@ _08070C0E: thumb_func_start sub_08070C10 sub_08070C10: @ 0x08070C10 push {lr} - ldr r2, _08070C34 @ =gLinkState + ldr r2, _08070C34 @ =gPlayerState movs r1, #0xff strb r1, [r2, #0xd] movs r1, #0x80 @@ -703,7 +703,7 @@ sub_08070C10: @ 0x08070C10 bl _call_via_r1 pop {pc} .align 2, 0 -_08070C34: .4byte gLinkState +_08070C34: .4byte gPlayerState _08070C38: .4byte gUnk_0811BA60 thumb_func_start sub_08070C3C @@ -711,7 +711,7 @@ sub_08070C3C: @ 0x08070C3C push {r4, lr} adds r4, r0, #0 bl sub_08004168 - ldr r2, _08070C64 @ =gLinkState + ldr r2, _08070C64 @ =gPlayerState ldr r1, [r2, #0x30] movs r0, #5 orrs r1, r0 @@ -728,7 +728,7 @@ sub_08070C3C: @ 0x08070C3C lsls r0, r0, #1 b _08070C7E .align 2, 0 -_08070C64: .4byte gLinkState +_08070C64: .4byte gPlayerState _08070C68: .4byte 0xFFFFFBFF _08070C6C: movs r0, #8 @@ -757,7 +757,7 @@ _08070C7E: rsbs r0, r0, #0 ands r0, r1 strb r0, [r2] - bl ResetLink + bl ResetPlayer bl sub_0807A108 movs r0, #0x7b bl PlaySFX @@ -781,7 +781,7 @@ sub_08070CB4: @ 0x08070CB4 ldr r0, _08070CF4 @ =gUnk_02002A40 adds r0, #0xaa ldrb r0, [r0] - ldr r4, _08070CF8 @ =gLinkState + ldr r4, _08070CF8 @ =gPlayerState cmp r0, #0 beq _08070CFC ldr r1, [r4, #0x30] @@ -801,7 +801,7 @@ sub_08070CB4: @ 0x08070CB4 b _08070D1A .align 2, 0 _08070CF4: .4byte gUnk_02002A40 -_08070CF8: .4byte gLinkState +_08070CF8: .4byte gPlayerState _08070CFC: ldr r0, [r4, #0x30] ldr r1, _08070D1C @ =0xFFFF7FFB @@ -859,7 +859,7 @@ sub_08070D38: @ 0x08070D38 ldrb r0, [r2, #0xd] adds r0, #1 strb r0, [r2, #0xd] - ldr r3, _08070D94 @ =gLinkState + ldr r3, _08070D94 @ =gPlayerState adds r0, r3, #0 adds r0, #0x38 ldrb r0, [r0] @@ -882,7 +882,7 @@ sub_08070D38: @ 0x08070D38 bl sub_08080964 b _08070DA2 .align 2, 0 -_08070D94: .4byte gLinkState +_08070D94: .4byte gPlayerState _08070D98: ldr r0, _08070DBC @ =0x00000C18 strh r0, [r3, #8] @@ -890,18 +890,18 @@ _08070D98: lsls r0, r0, #9 str r0, [r2, #0x20] _08070DA2: - ldr r0, _08070DC0 @ =gLinkState + ldr r0, _08070DC0 @ =gPlayerState movs r1, #0x80 strb r1, [r0, #2] movs r0, #0xa6 lsls r0, r0, #1 bl PlaySFX - bl ResetLink + bl ResetPlayer bl sub_08078F60 pop {r4, pc} .align 2, 0 _08070DBC: .4byte 0x00000C18 -_08070DC0: .4byte gLinkState +_08070DC0: .4byte gPlayerState thumb_func_start sub_08070DC4 sub_08070DC4: @ 0x08070DC4 @@ -921,7 +921,7 @@ sub_08070DC4: @ 0x08070DC4 bl sub_08003FC4 cmp r0, #0 bne _08070E76 - ldr r6, _08070E18 @ =gLinkState + ldr r6, _08070E18 @ =gPlayerState strb r0, [r6, #2] bl sub_08078EFC adds r5, r0, #0 @@ -940,7 +940,7 @@ _08070E10: bl sub_080791D0 b _08070E76 .align 2, 0 -_08070E18: .4byte gLinkState +_08070E18: .4byte gPlayerState _08070E1C: ldrb r0, [r4, #0xe] subs r0, #1 @@ -977,7 +977,7 @@ _08070E56: ldrb r0, [r4, #0xd] adds r0, #1 strb r0, [r4, #0xd] - ldr r2, _08070E78 @ =gLinkState + ldr r2, _08070E78 @ =gPlayerState ldr r0, [r2, #0x30] movs r1, #0x80 ands r0, r1 @@ -989,7 +989,7 @@ _08070E56: _08070E76: pop {r4, r5, r6, pc} .align 2, 0 -_08070E78: .4byte gLinkState +_08070E78: .4byte gPlayerState thumb_func_start sub_08070E7C sub_08070E7C: @ 0x08070E7C @@ -1001,13 +1001,13 @@ sub_08070E7C: @ 0x08070E7C lsrs r1, r1, #0x18 cmp r1, #0 bne _08070E94 - ldr r0, _08070E98 @ =gLinkState + ldr r0, _08070E98 @ =gPlayerState strb r1, [r0, #2] bl sub_080791D0 _08070E94: pop {pc} .align 2, 0 -_08070E98: .4byte gLinkState +_08070E98: .4byte gPlayerState thumb_func_start sub_08070E9C sub_08070E9C: @ 0x08070E9C @@ -1019,7 +1019,7 @@ sub_08070E9C: @ 0x08070E9C bl sub_08056360 b _08070ED2 _08070EAE: - ldr r1, _08070ED4 @ =gLinkState + ldr r1, _08070ED4 @ =gPlayerState adds r2, r1, #0 adds r2, #0x27 movs r0, #4 @@ -1038,7 +1038,7 @@ _08070EAE: _08070ED2: pop {r4, pc} .align 2, 0 -_08070ED4: .4byte gLinkState +_08070ED4: .4byte gPlayerState _08070ED8: .4byte gUnk_0811BA74 thumb_func_start sub_08070EDC @@ -1061,7 +1061,7 @@ sub_08070EDC: @ 0x08070EDC movs r0, #1 strb r0, [r2, #0xd] _08070EFE: - ldr r2, _08070F14 @ =gLinkState + ldr r2, _08070F14 @ =gPlayerState ldr r0, [r2, #0x30] movs r1, #0x80 ands r0, r1 @@ -1071,7 +1071,7 @@ _08070EFE: b _08070F1C .align 2, 0 _08070F10: .4byte gTextBox -_08070F14: .4byte gLinkState +_08070F14: .4byte gPlayerState _08070F18: ldr r0, _08070F20 @ =0x00000C18 strh r0, [r2, #8] @@ -1108,7 +1108,7 @@ _08070F4C: .4byte gTextBox sub_08070F50: @ 0x08070F50 push {r4, r5, lr} adds r4, r0, #0 - ldr r0, _08070F9C @ =gLinkState + ldr r0, _08070F9C @ =gPlayerState adds r0, #0xa8 movs r1, #0x15 strb r1, [r0] @@ -1143,7 +1143,7 @@ sub_08070F50: @ 0x08070F50 _08070F9A: pop {r4, r5, pc} .align 2, 0 -_08070F9C: .4byte gLinkState +_08070F9C: .4byte gPlayerState _08070FA0: .4byte gUnk_0811BA7C thumb_func_start sub_08070FA4 @@ -1158,7 +1158,7 @@ sub_08070FA4: @ 0x08070FA4 movs r1, #0 movs r0, #4 strb r0, [r4, #0x14] - ldr r3, _08070FE8 @ =gLinkState + ldr r3, _08070FE8 @ =gPlayerState ldr r2, [r3, #0x30] movs r0, #1 orrs r2, r0 @@ -1182,7 +1182,7 @@ sub_08070FA4: @ 0x08070FA4 adds r1, #3 b _08071004 .align 2, 0 -_08070FE8: .4byte gLinkState +_08070FE8: .4byte gPlayerState _08070FEC: .4byte 0x0000045B _08070FF0: adds r0, r3, #0 @@ -1195,17 +1195,17 @@ _08070FF0: movs r1, #0xb8 lsls r1, r1, #2 _08071004: - ldr r0, _0807101C @ =gLinkState + ldr r0, _0807101C @ =gPlayerState strh r1, [r0, #8] _08071008: movs r0, #1 strb r0, [r4, #0xd] - bl ResetLink + bl ResetPlayer bl sub_08078F60 pop {r4, pc} .align 2, 0 _08071018: .4byte 0x000001B9 -_0807101C: .4byte gLinkState +_0807101C: .4byte gPlayerState thumb_func_start sub_08071020 sub_08071020: @ 0x08071020 @@ -1250,19 +1250,19 @@ sub_08071038: @ 0x08071038 subs r0, #5 movs r1, #0xf8 strb r1, [r0] - ldr r0, _08071080 @ =gLinkState + ldr r0, _08071080 @ =gPlayerState strb r2, [r0, #2] bl sub_080791D0 _08071078: pop {r4, pc} .align 2, 0 _0807107C: .4byte gTextBox -_08071080: .4byte gLinkState +_08071080: .4byte gPlayerState thumb_func_start sub_08071084 sub_08071084: @ 0x08071084 push {lr} - ldr r1, _080710A0 @ =gLinkState + ldr r1, _080710A0 @ =gPlayerState adds r1, #0xa8 movs r2, #0xb strb r2, [r1] @@ -1274,7 +1274,7 @@ sub_08071084: @ 0x08071084 bl _call_via_r1 pop {pc} .align 2, 0 -_080710A0: .4byte gLinkState +_080710A0: .4byte gPlayerState _080710A4: .4byte gUnk_0811BA88 thumb_func_start sub_080710A8 @@ -1285,7 +1285,7 @@ sub_080710A8: @ 0x080710A8 adds r0, #1 movs r2, #0 strb r0, [r4, #0xd] - ldr r1, _080710EC @ =gLinkState + ldr r1, _080710EC @ =gPlayerState ldr r3, [r1, #0x30] movs r0, #1 orrs r3, r0 @@ -1303,7 +1303,7 @@ sub_080710A8: @ 0x080710A8 ands r3, r0 cmp r3, #0 bne _080710FA - bl ResetLink + bl ResetPlayer ldr r0, [r5, #0x30] movs r1, #8 ands r0, r1 @@ -1313,7 +1313,7 @@ sub_080710A8: @ 0x080710A8 lsls r0, r0, #3 b _080710F8 .align 2, 0 -_080710EC: .4byte gLinkState +_080710EC: .4byte gPlayerState _080710F0: .4byte 0xFFFFF3FF _080710F4: movs r0, #0x81 @@ -1352,7 +1352,7 @@ sub_08071130: @ 0x08071130 bl sub_08078EFC cmp r0, #0 bne _08071206 - ldr r6, _080711B4 @ =gLinkState + ldr r6, _080711B4 @ =gPlayerState ldrb r0, [r6, #0x1b] cmp r0, #0 bne _08071158 @@ -1406,7 +1406,7 @@ _080711AC: bl sub_080791D0 b _08071206 .align 2, 0 -_080711B4: .4byte gLinkState +_080711B4: .4byte gPlayerState _080711B8: movs r0, #6 strb r0, [r5, #0xe] @@ -1455,7 +1455,7 @@ _08071206: sub_08071208: @ 0x08071208 push {r4, lr} adds r4, r0, #0 - ldr r2, _08071244 @ =gLinkState + ldr r2, _08071244 @ =gPlayerState ldrb r1, [r2, #5] ldrb r0, [r2, #0xb] orrs r0, r1 @@ -1476,19 +1476,19 @@ _08071228: lsrs r0, r0, #0x18 cmp r0, #0xff bne _08071240 - ldr r1, _08071244 @ =gLinkState + ldr r1, _08071244 @ =gPlayerState movs r0, #0 strb r0, [r1, #2] bl sub_080791D0 _08071240: pop {r4, pc} .align 2, 0 -_08071244: .4byte gLinkState +_08071244: .4byte gPlayerState thumb_func_start sub_08071248 sub_08071248: @ 0x08071248 push {lr} - ldr r3, _08071274 @ =gLinkState + ldr r3, _08071274 @ =gPlayerState adds r2, r3, #0 adds r2, #0xa8 movs r1, #0x16 @@ -1509,7 +1509,7 @@ sub_08071248: @ 0x08071248 bl _call_via_r1 pop {pc} .align 2, 0 -_08071274: .4byte gLinkState +_08071274: .4byte gPlayerState _08071278: .4byte gUnk_0811BA94 thumb_func_start sub_0807127C @@ -1524,7 +1524,7 @@ sub_0807127C: @ 0x0807127C subs r0, #0x3a ands r0, r1 strb r0, [r2] - ldr r5, _080712AC @ =gLinkState + ldr r5, _080712AC @ =gPlayerState ldr r1, [r5, #0x30] movs r0, #0x80 ands r0, r1 @@ -1538,7 +1538,7 @@ sub_0807127C: @ 0x0807127C bl PlaySFX b _080712E4 .align 2, 0 -_080712AC: .4byte gLinkState +_080712AC: .4byte gPlayerState _080712B0: .4byte 0x00000C19 _080712B4: movs r0, #0x80 @@ -1567,7 +1567,7 @@ _080712E0: _080712E2: strh r0, [r5, #8] _080712E4: - bl ResetLink + bl ResetPlayer pop {r4, r5, pc} .align 2, 0 _080712EC: .4byte 0x0000044C @@ -1578,7 +1578,7 @@ sub_080712F0: @ 0x080712F0 adds r4, r0, #0 bl UpdateAnimationSingleFrame movs r5, #0 - ldr r3, _08071314 @ =gLinkState + ldr r3, _08071314 @ =gPlayerState ldr r0, [r3, #0x30] movs r2, #0x80 ands r0, r2 @@ -1592,7 +1592,7 @@ sub_080712F0: @ 0x080712F0 bne _0807133E b _08071342 .align 2, 0 -_08071314: .4byte gLinkState +_08071314: .4byte gPlayerState _08071318: adds r0, r4, #0 adds r0, #0x5a @@ -1637,7 +1637,7 @@ _08071342: rsbs r0, r0, #0 ands r0, r1 strb r0, [r4, #0x18] - ldr r2, _0807137C @ =gLinkState + ldr r2, _0807137C @ =gPlayerState ldr r0, [r2, #0x30] movs r1, #5 rsbs r1, r1, #0 @@ -1647,13 +1647,13 @@ _08071342: _0807137A: pop {r4, r5, pc} .align 2, 0 -_0807137C: .4byte gLinkState +_0807137C: .4byte gPlayerState thumb_func_start sub_08071380 sub_08071380: @ 0x08071380 push {r4, r5, lr} adds r4, r0, #0 - ldr r5, _080713E8 @ =gLinkState + ldr r5, _080713E8 @ =gPlayerState adds r1, r5, #0 adds r1, #0xa8 movs r0, #0xe @@ -1701,7 +1701,7 @@ _080713D0: bl PlaySFX b _080713FC .align 2, 0 -_080713E8: .4byte gLinkState +_080713E8: .4byte gPlayerState _080713EC: .4byte gUnk_0811BA9C _080713F0: .4byte gUnk_03000FF0 _080713F4: .4byte gArea @@ -1751,7 +1751,7 @@ _08071444: bl sub_08073904 adds r0, r4, #0 bl UpdateAnimationSingleFrame - ldr r2, _080714A0 @ =gLinkState + ldr r2, _080714A0 @ =gPlayerState ldrb r0, [r2, #2] cmp r0, #0 bne _0807147C @@ -1793,7 +1793,7 @@ _0807149A: pop {r4, r5, pc} .align 2, 0 _0807149C: .4byte gArea -_080714A0: .4byte gLinkState +_080714A0: .4byte gPlayerState _080714A4: .4byte 0x0000052C thumb_func_start sub_080714A8 @@ -1806,10 +1806,10 @@ sub_080714A8: @ 0x080714A8 bgt _080714BE cmp r0, #4 blt _080714BE - ldr r0, _08071528 @ =gLinkEntity + ldr r0, _08071528 @ =gPlayerEntity bl sub_0806F948 _080714BE: - ldr r3, _0807152C @ =gLinkState + ldr r3, _0807152C @ =gPlayerState ldrb r1, [r3, #0xd] movs r0, #0x84 ands r0, r1 @@ -1863,8 +1863,8 @@ _08071516: b _0807156A .align 2, 0 _08071524: .4byte gArea -_08071528: .4byte gLinkEntity -_0807152C: .4byte gLinkState +_08071528: .4byte gPlayerEntity +_0807152C: .4byte gPlayerState _08071530: .4byte 0x0000080C _08071534: .4byte 0x0000041C _08071538: @@ -1910,7 +1910,7 @@ sub_0807156C: @ 0x0807156C strb r1, [r0, #0xd] movs r1, #0x1e strb r1, [r0, #0xf] - ldr r2, _080715A8 @ =gLinkState + ldr r2, _080715A8 @ =gPlayerState movs r1, #0xe7 lsls r1, r1, #3 strh r1, [r2, #8] @@ -1924,7 +1924,7 @@ sub_0807156C: @ 0x0807156C .align 2, 0 _080715A0: .4byte gRoomControls _080715A4: .4byte gUnk_02034490 -_080715A8: .4byte gLinkState +_080715A8: .4byte gPlayerState thumb_func_start sub_080715AC sub_080715AC: @ 0x080715AC @@ -1935,7 +1935,7 @@ sub_080715AC: @ 0x080715AC bne _080715CC adds r0, r4, #0 bl UpdateAnimationSingleFrame - ldr r0, _080715D0 @ =gLinkState + ldr r0, _080715D0 @ =gPlayerState ldr r0, [r0, #0x30] movs r1, #0x80 ands r0, r1 @@ -1946,7 +1946,7 @@ sub_080715AC: @ 0x080715AC _080715CC: pop {r4, pc} .align 2, 0 -_080715D0: .4byte gLinkState +_080715D0: .4byte gPlayerState thumb_func_start sub_080715D4 sub_080715D4: @ 0x080715D4 @@ -1980,7 +1980,7 @@ sub_080715D4: @ 0x080715D4 adds r1, r2, #0 movs r3, #0 bl sub_0805EC9C - ldr r2, _08071628 @ =gLinkState + ldr r2, _08071628 @ =gPlayerState ldr r0, _0807162C @ =0x000002C3 strh r0, [r2, #8] ldr r0, [r2, #0x30] @@ -1991,7 +1991,7 @@ sub_080715D4: @ 0x080715D4 bl PlaySFX pop {pc} .align 2, 0 -_08071628: .4byte gLinkState +_08071628: .4byte gPlayerState _0807162C: .4byte 0x000002C3 _08071630: .4byte 0x0000016F @@ -2276,7 +2276,7 @@ sub_080717F8: @ 0x080717F8 movs r1, #9 strb r1, [r0, #0xc] strb r4, [r0, #0xd] - ldr r3, _0807185C @ =gLinkState + ldr r3, _0807185C @ =gPlayerState ldr r1, [r3, #0x30] movs r2, #0x21 rsbs r2, r2, #0 @@ -2291,7 +2291,7 @@ sub_080717F8: @ 0x080717F8 _08071850: .4byte gArea _08071854: .4byte gUnk_0811BAC4 _08071858: .4byte gUnk_02034490 -_0807185C: .4byte gLinkState +_0807185C: .4byte gPlayerState thumb_func_start sub_08071860 sub_08071860: @ 0x08071860 @@ -2304,7 +2304,7 @@ sub_08071860: @ 0x08071860 bl sub_08071A6C b _08071896 _08071876: - ldr r0, _08071898 @ =gLinkState + ldr r0, _08071898 @ =gPlayerState adds r0, #0xa8 movs r1, #0x13 strb r1, [r0] @@ -2322,14 +2322,14 @@ _08071876: _08071896: pop {r4, pc} .align 2, 0 -_08071898: .4byte gLinkState +_08071898: .4byte gPlayerState _0807189C: .4byte gUnk_0811BAD4 thumb_func_start sub_080718A0 sub_080718A0: @ 0x080718A0 push {r4, r5, lr} adds r4, r0, #0 - bl ResetLink + bl ResetPlayer ldr r0, _080718EC @ =gUnk_03000B80 adds r0, #0x63 movs r1, #0 @@ -2346,7 +2346,7 @@ sub_080718A0: @ 0x080718A0 ands r0, r1 orrs r0, r2 strb r0, [r4, #0x11] - ldr r5, _080718F4 @ =gLinkState + ldr r5, _080718F4 @ =gPlayerState ldr r0, [r5, #0x30] movs r1, #0x80 ands r0, r1 @@ -2365,7 +2365,7 @@ sub_080718A0: @ 0x080718A0 .align 2, 0 _080718EC: .4byte gUnk_03000B80 _080718F0: .4byte gUnk_03003DC0 -_080718F4: .4byte gLinkState +_080718F4: .4byte gPlayerState _080718F8: ldrb r0, [r5, #2] cmp r0, #0 @@ -2430,14 +2430,14 @@ sub_0807193C: @ 0x0807193C ldrb r0, [r4, #0x14] cmp r0, #2 bne _0807197C - ldr r1, _08071978 @ =gLinkState + ldr r1, _08071978 @ =gPlayerState movs r0, #0xf3 lsls r0, r0, #2 b _08071980 .align 2, 0 -_08071978: .4byte gLinkState +_08071978: .4byte gPlayerState _0807197C: - ldr r1, _08071988 @ =gLinkState + ldr r1, _08071988 @ =gPlayerState ldr r0, _0807198C @ =0x000003C7 _08071980: strh r0, [r1, #8] @@ -2445,7 +2445,7 @@ _08071980: _08071986: pop {r4, pc} .align 2, 0 -_08071988: .4byte gLinkState +_08071988: .4byte gPlayerState _0807198C: .4byte 0x000003C7 thumb_func_start sub_08071990 @@ -2461,7 +2461,7 @@ sub_08071990: @ 0x08071990 ldrb r0, [r2, #0xd] adds r0, #1 strb r0, [r2, #0xd] - ldr r3, _080719C4 @ =gLinkState + ldr r3, _080719C4 @ =gPlayerState ldr r0, [r3, #0x30] movs r1, #0x80 ands r0, r1 @@ -2475,7 +2475,7 @@ sub_08071990: @ 0x08071990 b _08071A4A .align 2, 0 _080719C0: .4byte gTextBox -_080719C4: .4byte gLinkState +_080719C4: .4byte gPlayerState _080719C8: .4byte 0x000003CD _080719CC: ldr r0, _080719D4 @ =0x000003C9 @@ -2488,7 +2488,7 @@ _080719D8: bl sub_08079258 b _08071A4A _080719E2: - ldr r4, _08071A20 @ =gLinkState + ldr r4, _08071A20 @ =gPlayerState ldr r0, [r4, #0x30] movs r1, #0x80 ands r0, r1 @@ -2520,7 +2520,7 @@ _080719F8: strh r0, [r4, #8] b _08071A4A .align 2, 0 -_08071A20: .4byte gLinkState +_08071A20: .4byte gPlayerState _08071A24: adds r0, r3, #0 adds r0, #0xc7 @@ -2565,7 +2565,7 @@ sub_08071A6C: @ 0x08071A6C ldr r1, _08071A84 @ =gUnk_03003DC0 movs r0, #0 strb r0, [r1] - ldr r3, _08071A88 @ =gLinkEntity + ldr r3, _08071A88 @ =gPlayerEntity ldrb r1, [r3, #0x11] lsrs r2, r1, #4 subs r0, #0x10 @@ -2575,12 +2575,12 @@ sub_08071A6C: @ 0x08071A6C bx lr .align 2, 0 _08071A84: .4byte gUnk_03003DC0 -_08071A88: .4byte gLinkEntity +_08071A88: .4byte gPlayerEntity thumb_func_start sub_08071A8C sub_08071A8C: @ 0x08071A8C push {lr} - ldr r1, _08071AA8 @ =gLinkState + ldr r1, _08071AA8 @ =gPlayerState adds r1, #0xa8 movs r2, #0x19 strb r2, [r1] @@ -2592,7 +2592,7 @@ sub_08071A8C: @ 0x08071A8C bl _call_via_r1 pop {pc} .align 2, 0 -_08071AA8: .4byte gLinkState +_08071AA8: .4byte gPlayerState _08071AAC: .4byte gUnk_0811BAE4 thumb_func_start sub_08071AB0 @@ -2602,7 +2602,7 @@ sub_08071AB0: @ 0x08071AB0 ldrb r0, [r3, #0xd] adds r0, #1 strb r0, [r3, #0xd] - ldr r1, _08071AD8 @ =gLinkState + ldr r1, _08071AD8 @ =gPlayerState ldr r2, [r1, #0x30] movs r0, #1 orrs r2, r0 @@ -2617,7 +2617,7 @@ sub_08071AB0: @ 0x08071AB0 strb r4, [r3, #0xf] b _08071AE8 .align 2, 0 -_08071AD8: .4byte gLinkState +_08071AD8: .4byte gPlayerState _08071ADC: movs r0, #0x80 ands r2, r0 @@ -2635,7 +2635,7 @@ _08071AE8: sub_08071AF0: @ 0x08071AF0 push {r4, r5, lr} adds r4, r0, #0 - ldr r5, _08071B34 @ =gLinkState + ldr r5, _08071B34 @ =gPlayerState adds r0, r5, #0 adds r0, #0x80 movs r1, #0 @@ -2667,7 +2667,7 @@ sub_08071AF0: @ 0x08071AF0 strb r0, [r4, #0xe] b _08071B58 .align 2, 0 -_08071B34: .4byte gLinkState +_08071B34: .4byte gPlayerState _08071B38: .4byte gUnk_0811BAF0 _08071B3C: ldrb r0, [r4, #0xd] @@ -2695,7 +2695,7 @@ _08071B5C: sub_08071B60: @ 0x08071B60 push {r4, r5, lr} adds r4, r0, #0 - ldr r5, _08071BAC @ =gLinkState + ldr r5, _08071BAC @ =gPlayerState movs r2, #0 movs r0, #2 strb r0, [r5, #6] @@ -2730,7 +2730,7 @@ sub_08071B60: @ 0x08071B60 _08071BA8: pop {r4, r5, pc} .align 2, 0 -_08071BAC: .4byte gLinkState +_08071BAC: .4byte gPlayerState thumb_func_start sub_08071BB0 sub_08071BB0: @ 0x08071BB0 @@ -2745,20 +2745,20 @@ sub_08071BB0: @ 0x08071BB0 adds r1, r1, r2 ldr r1, [r1] bl _call_via_r1 - ldr r0, _08071BD8 @ =gLinkState + ldr r0, _08071BD8 @ =gPlayerState adds r0, #0xa8 movs r1, #0x12 strb r1, [r0] pop {pc} .align 2, 0 _08071BD4: .4byte gUnk_0811BB2C -_08071BD8: .4byte gLinkState +_08071BD8: .4byte gPlayerState thumb_func_start sub_08071BDC sub_08071BDC: @ 0x08071BDC push {r4, r5, lr} adds r4, r0, #0 - ldr r5, _08071C10 @ =gLinkState + ldr r5, _08071C10 @ =gPlayerState ldr r0, [r5, #0x30] movs r1, #0x88 lsls r1, r1, #1 @@ -2781,7 +2781,7 @@ sub_08071BDC: @ 0x08071BDC strh r0, [r5, #8] b _08071C9C .align 2, 0 -_08071C10: .4byte gLinkState +_08071C10: .4byte gPlayerState _08071C14: movs r0, #0x81 lsls r0, r0, #4 @@ -2819,7 +2819,7 @@ _08071C4C: beq _08071C5A ldr r0, _08071CA0 @ =0x00000459 _08071C5A: - ldr r2, _08071CA4 @ =gLinkState + ldr r2, _08071CA4 @ =gPlayerState movs r3, #0 strh r0, [r2, #8] ldr r0, [r2, #0x30] @@ -2846,14 +2846,14 @@ _08071C5A: strb r3, [r2, #6] adds r0, r4, #0 bl sub_0800451C - bl ResetLink + bl ResetPlayer movs r0, #0x87 bl PlaySFX _08071C9C: pop {r4, r5, pc} .align 2, 0 _08071CA0: .4byte 0x00000459 -_08071CA4: .4byte gLinkState +_08071CA4: .4byte gPlayerState _08071CA8: .4byte 0xFEDBF2FE thumb_func_start sub_08071CAC @@ -2869,7 +2869,7 @@ sub_08071CAC: @ 0x08071CAC ands r0, r1 cmp r0, #0 beq _08071CFE - ldr r1, _08071CE0 @ =gLinkState + ldr r1, _08071CE0 @ =gPlayerState ldr r2, [r1, #0x30] adds r0, r2, #0 ands r0, r3 @@ -2883,7 +2883,7 @@ sub_08071CAC: @ 0x08071CAC ldr r0, _08071CE8 @ =0x0000045A b _08071CEE .align 2, 0 -_08071CE0: .4byte gLinkState +_08071CE0: .4byte gPlayerState _08071CE4: .4byte 0x000002BD _08071CE8: .4byte 0x0000045A _08071CEC: @@ -2935,7 +2935,7 @@ _08071D3A: movs r2, #0 movs r0, #3 strb r0, [r5, #0xd] - ldr r1, _08071D70 @ =gLinkState + ldr r1, _08071D70 @ =gPlayerState adds r0, r1, #0 adds r0, #0x3c strb r2, [r0] @@ -2953,7 +2953,7 @@ _08071D3A: b _08071D7A .align 2, 0 _08071D6C: .4byte gUnk_02002A40 -_08071D70: .4byte gLinkState +_08071D70: .4byte gPlayerState _08071D74: ldr r1, _08071D7C @ =gScreenTransition movs r0, #1 @@ -2968,7 +2968,7 @@ sub_08071D80: @ 0x08071D80 push {r4, r5, lr} adds r4, r0, #0 bl UpdateAnimationSingleFrame - ldr r5, _08071DB4 @ =gLinkState + ldr r5, _08071DB4 @ =gPlayerState movs r0, #1 strb r0, [r5, #0x14] adds r0, r4, #0 @@ -2989,7 +2989,7 @@ sub_08071D80: @ 0x08071D80 _08071DB2: pop {r4, r5, pc} .align 2, 0 -_08071DB4: .4byte gLinkState +_08071DB4: .4byte gPlayerState thumb_func_start sub_08071DB8 sub_08071DB8: @ 0x08071DB8 @@ -3008,7 +3008,7 @@ _08071DCC: .4byte gUnk_0811BB3C sub_08071DD0: @ 0x08071DD0 push {lr} adds r2, r0, #0 - ldr r1, _08071DF4 @ =gLinkState + ldr r1, _08071DF4 @ =gPlayerState adds r0, r1, #0 adds r0, #0x38 ldrb r0, [r0] @@ -3025,7 +3025,7 @@ sub_08071DD0: @ 0x08071DD0 adds r0, #0xfe b _08071E00 .align 2, 0 -_08071DF4: .4byte gLinkState +_08071DF4: .4byte gPlayerState _08071DF8: movs r0, #1 strb r0, [r2, #0xd] @@ -3042,7 +3042,7 @@ sub_08071E04: @ 0x08071E04 ldr r0, [r4, #0x34] cmp r0, #0 beq _08071E38 - ldr r5, _08071E34 @ =gLinkState + ldr r5, _08071E34 @ =gPlayerState ldrb r0, [r5, #0x14] cmp r0, #0 bne _08071E38 @@ -3060,7 +3060,7 @@ sub_08071E04: @ 0x08071E04 bl sub_080791BC b _08071E72 .align 2, 0 -_08071E34: .4byte gLinkState +_08071E34: .4byte gPlayerState _08071E38: adds r0, r4, #0 bl UpdateAnimationSingleFrame @@ -3127,13 +3127,13 @@ _08071EAC: .4byte gUnk_0811BB48 sub_08071EB0: @ 0x08071EB0 push {r4, lr} adds r4, r0, #0 - bl ResetLink + bl ResetPlayer adds r0, r4, #0 movs r1, #0xe bl CreatePlayerBomb cmp r0, #0 beq _08071F12 - ldr r3, _08071EE4 @ =gLinkState + ldr r3, _08071EE4 @ =gPlayerState adds r2, r3, #0 adds r2, #0x38 ldrb r1, [r2] @@ -3149,7 +3149,7 @@ sub_08071EB0: @ 0x08071EB0 strh r0, [r3, #8] b _08071F12 .align 2, 0 -_08071EE4: .4byte gLinkState +_08071EE4: .4byte gPlayerState _08071EE8: .4byte 0x00000614 _08071EEC: cmp r0, #0x20 @@ -3184,14 +3184,14 @@ sub_08071F14: @ 0x08071F14 ands r0, r1 cmp r0, #0 beq _08071F32 - ldr r1, _08071F34 @ =gLinkState + ldr r1, _08071F34 @ =gPlayerState movs r0, #0 str r0, [r1, #0x2c] bl sub_0807921C _08071F32: pop {r4, pc} .align 2, 0 -_08071F34: .4byte gLinkState +_08071F34: .4byte gPlayerState thumb_func_start sub_08071F38 sub_08071F38: @ 0x08071F38 @@ -3218,7 +3218,7 @@ sub_08071F50: @ 0x08071F50 ldrb r1, [r0, #0xd] adds r1, #1 strb r1, [r0, #0xd] - ldr r1, _08071F78 @ =gLinkState + ldr r1, _08071F78 @ =gPlayerState movs r0, #0xa5 lsls r0, r0, #2 strh r0, [r1, #8] @@ -3227,7 +3227,7 @@ sub_08071F50: @ 0x08071F50 bl PlaySFX pop {pc} .align 2, 0 -_08071F78: .4byte gLinkState +_08071F78: .4byte gPlayerState _08071F7C: .4byte 0x00000195 thumb_func_start sub_08071F80 @@ -3242,7 +3242,7 @@ sub_08071F80: @ 0x08071F80 bne _08071FB8 adds r0, r4, #0 bl UpdateSpriteForCollisionLayer - ldr r0, _08071FB4 @ =gLinkState + ldr r0, _08071FB4 @ =gPlayerState strb r5, [r0, #2] ldrb r0, [r0, #0x14] cmp r0, #0 @@ -3254,7 +3254,7 @@ sub_08071F80: @ 0x08071F80 bl sub_08072008 b _08072004 .align 2, 0 -_08071FB4: .4byte gLinkState +_08071FB4: .4byte gPlayerState _08071FB8: bl sub_08079B24 cmp r0, #0 @@ -3263,7 +3263,7 @@ _08071FB8: bl sub_08079708 b _08071FFE _08071FC8: - ldr r0, _08071FEC @ =gLinkState + ldr r0, _08071FEC @ =gPlayerState ldr r0, [r0, #0x30] movs r1, #0x80 lsls r1, r1, #4 @@ -3281,7 +3281,7 @@ _08071FC8: movs r0, #2 b _08071FF4 .align 2, 0 -_08071FEC: .4byte gLinkState +_08071FEC: .4byte gPlayerState _08071FF0: adds r1, r4, #0 adds r1, #0x62 @@ -3317,7 +3317,7 @@ sub_08072008: @ 0x08072008 adds r0, r3, #0 adds r0, #0x62 strb r2, [r0] - ldr r2, _08072044 @ =gLinkState + ldr r2, _08072044 @ =gPlayerState ldr r0, [r2, #0x30] ldr r1, _08072048 @ =0xFFFFF7FE ands r0, r1 @@ -3329,7 +3329,7 @@ sub_08072008: @ 0x08072008 bl sub_080791BC pop {pc} .align 2, 0 -_08072044: .4byte gLinkState +_08072044: .4byte gPlayerState _08072048: .4byte 0xFFFFF7FE thumb_func_start sub_0807204C @@ -3354,7 +3354,7 @@ sub_08072064: @ 0x08072064 movs r1, #0x7f ands r1, r2 strb r1, [r0, #0x10] - ldr r2, _08072094 @ =gLinkState + ldr r2, _08072094 @ =gPlayerState adds r1, r2, #0 adds r1, #0x3a ldrb r1, [r1] @@ -3367,10 +3367,10 @@ sub_08072064: @ 0x08072064 lsls r0, r0, #8 orrs r1, r0 strh r1, [r2, #8] - bl ResetLink + bl ResetPlayer pop {pc} .align 2, 0 -_08072094: .4byte gLinkState +_08072094: .4byte gPlayerState thumb_func_start sub_08072098 sub_08072098: @ 0x08072098 @@ -3443,7 +3443,7 @@ sub_08072100: @ 0x08072100 strh r0, [r4, #0x24] ldr r0, _08072148 @ =gUnk_08114F88 str r0, [r4, #0x48] - ldr r2, _0807214C @ =gLinkState + ldr r2, _0807214C @ =gPlayerState adds r0, r2, #0 adds r0, #0x38 ldrb r0, [r0] @@ -3471,14 +3471,14 @@ _0807213A: b _08072158 .align 2, 0 _08072148: .4byte gUnk_08114F88 -_0807214C: .4byte gLinkState +_0807214C: .4byte gPlayerState _08072150: .4byte 0x00000404 _08072154: movs r0, #0x82 lsls r0, r0, #1 _08072158: strh r0, [r2, #8] - bl ResetLink + bl ResetPlayer adds r0, r4, #0 bl sub_08072168 pop {r4, pc} @@ -3504,7 +3504,7 @@ sub_08072168: @ 0x08072168 _0807218A: adds r0, r4, #0 bl sub_08003FC4 - ldr r0, _080721A4 @ =gLinkState + ldr r0, _080721A4 @ =gPlayerState adds r0, #0x3a ldrb r0, [r0] cmp r0, #0 @@ -3513,11 +3513,11 @@ _0807218A: bl sub_0806F69C b _080721AC .align 2, 0 -_080721A4: .4byte gLinkState +_080721A4: .4byte gPlayerState _080721A8: bl sub_08079E08 _080721AC: - ldr r1, _080721E0 @ =gLinkState + ldr r1, _080721E0 @ =gPlayerState ldrb r0, [r4, #0x15] strb r0, [r1, #0xd] bl sub_08019840 @@ -3542,12 +3542,12 @@ _080721AC: _080721DE: pop {r4, pc} .align 2, 0 -_080721E0: .4byte gLinkState +_080721E0: .4byte gPlayerState thumb_func_start sub_080721E4 sub_080721E4: @ 0x080721E4 push {lr} - ldr r1, _08072208 @ =gLinkState + ldr r1, _08072208 @ =gPlayerState adds r1, #0xa8 movs r2, #0x1a strb r2, [r1] @@ -3563,7 +3563,7 @@ sub_080721E4: @ 0x080721E4 strb r1, [r0] pop {pc} .align 2, 0 -_08072208: .4byte gLinkState +_08072208: .4byte gPlayerState _0807220C: .4byte gUnk_0811BB68 _08072210: .4byte gUnk_0200AF00 @@ -3575,7 +3575,7 @@ sub_08072214: @ 0x08072214 strb r0, [r3, #0xd] movs r0, #0x80 strh r0, [r3, #0x24] - ldr r2, _08072244 @ =gLinkState + ldr r2, _08072244 @ =gPlayerState adds r0, r2, #0 adds r0, #0x38 ldrb r0, [r0] @@ -3594,7 +3594,7 @@ sub_08072214: @ 0x08072214 lsls r0, r0, #2 b _0807224A .align 2, 0 -_08072244: .4byte gLinkState +_08072244: .4byte gPlayerState _08072248: ldr r0, _0807225C @ =0x00000944 _0807224A: @@ -3613,7 +3613,7 @@ _0807225C: .4byte 0x00000944 sub_08072260: @ 0x08072260 push {r4, r5, lr} adds r4, r0, #0 - ldr r5, _0807229C @ =gLinkState + ldr r5, _0807229C @ =gPlayerState adds r1, r5, #0 adds r1, #0x80 movs r0, #0 @@ -3640,7 +3640,7 @@ sub_08072260: @ 0x08072260 lsls r0, r0, #2 b _080722A2 .align 2, 0 -_0807229C: .4byte gLinkState +_0807229C: .4byte gPlayerState _080722A0: ldr r0, _080722B4 @ =0x00000944 _080722A2: @@ -3658,7 +3658,7 @@ _080722B4: .4byte 0x00000944 thumb_func_start sub_080722B8 sub_080722B8: @ 0x080722B8 push {lr} - ldr r1, _080722D4 @ =gLinkState + ldr r1, _080722D4 @ =gPlayerState adds r1, #0xa8 movs r2, #0xa strb r2, [r1] @@ -3670,7 +3670,7 @@ sub_080722B8: @ 0x080722B8 bl _call_via_r1 pop {pc} .align 2, 0 -_080722D4: .4byte gLinkState +_080722D4: .4byte gPlayerState _080722D8: .4byte gUnk_0811BB70 thumb_func_start sub_080722DC @@ -3681,7 +3681,7 @@ sub_080722DC: @ 0x080722DC movs r0, #0x7f ands r0, r1 strb r0, [r4, #0x10] - ldr r2, _08072318 @ =gLinkState + ldr r2, _08072318 @ =gPlayerState ldr r0, [r2, #0x30] movs r1, #0x80 ands r0, r1 @@ -3705,7 +3705,7 @@ _0807230E: strh r0, [r5, #8] b _08072332 .align 2, 0 -_08072318: .4byte gLinkState +_08072318: .4byte gPlayerState _0807231C: ldrb r1, [r4, #0x18] movs r0, #4 @@ -3723,7 +3723,7 @@ _08072332: ldr r1, _08072350 @ =0x00000401 orrs r0, r1 str r0, [r5, #0x30] - bl ResetLink + bl ResetPlayer movs r0, #0x92 lsls r0, r0, #1 bl PlaySFX @@ -3766,7 +3766,7 @@ sub_08072354: @ 0x08072354 strb r0, [r4, #0xd] movs r0, #0x3c strb r0, [r4, #0xe] - ldr r2, _080723C4 @ =gLinkState + ldr r2, _080723C4 @ =gPlayerState ldr r0, _080723C8 @ =0x000002C1 strh r0, [r2, #8] ldr r0, [r2, #0x30] @@ -3785,7 +3785,7 @@ sub_08072354: @ 0x08072354 _080723C0: pop {r4, pc} .align 2, 0 -_080723C4: .4byte gLinkState +_080723C4: .4byte gPlayerState _080723C8: .4byte 0x000002C1 _080723CC: .4byte 0xFFFFFBFF @@ -3841,7 +3841,7 @@ sub_0807240C: @ 0x0807240C adds r1, #0x3d movs r0, #0x14 strb r0, [r1] - ldr r2, _0807244C @ =gLinkState + ldr r2, _0807244C @ =gPlayerState ldr r0, [r2, #0x30] ldr r1, _08072450 @ =0xFFFFFBFF ands r0, r1 @@ -3853,7 +3853,7 @@ sub_0807240C: @ 0x0807240C _08072448: pop {pc} .align 2, 0 -_0807244C: .4byte gLinkState +_0807244C: .4byte gPlayerState _08072450: .4byte 0xFFFFFBFF thumb_func_start sub_08072454 @@ -3874,7 +3874,7 @@ sub_0807246C: @ 0x0807246C push {lr} movs r1, #1 strb r1, [r0, #0xd] - ldr r2, _0807248C @ =gLinkState + ldr r2, _0807248C @ =gPlayerState adds r1, r2, #0 adds r1, #0x38 ldrb r1, [r1] @@ -3886,7 +3886,7 @@ sub_0807246C: @ 0x0807246C bl PlaySFX pop {pc} .align 2, 0 -_0807248C: .4byte gLinkState +_0807248C: .4byte gPlayerState thumb_func_start sub_08072490 sub_08072490: @ 0x08072490 @@ -3941,7 +3941,7 @@ sub_080724DC: @ 0x080724DC bl sub_080002B8 cmp r0, #0x29 beq _0807254C - ldr r1, _08072530 @ =gLinkState + ldr r1, _08072530 @ =gPlayerState adds r0, r1, #0 adds r0, #0x89 ldrb r0, [r0] @@ -3970,10 +3970,10 @@ _08072512: bl sub_080728AC b _08072588 .align 2, 0 -_08072530: .4byte gLinkState +_08072530: .4byte gPlayerState _08072534: .4byte gRoomControls _08072538: - ldr r0, _08072548 @ =gLinkState + ldr r0, _08072548 @ =gPlayerState ldrb r0, [r0, #0x1c] cmp r0, #0 bne _08072588 @@ -3981,7 +3981,7 @@ _08072538: bl UpdateAnimationSingleFrame b _08072588 .align 2, 0 -_08072548: .4byte gLinkState +_08072548: .4byte gPlayerState _0807254C: ldrb r0, [r4, #0x18] movs r1, #3 @@ -3993,7 +3993,7 @@ _0807254C: ldrb r0, [r0] cmp r0, #0 bne _08072588 - ldr r2, _08072574 @ =gLinkState + ldr r2, _08072574 @ =gPlayerState ldr r0, [r2, #0x30] movs r1, #0x80 ands r0, r1 @@ -4003,7 +4003,7 @@ _0807254C: b _08072580 .align 2, 0 _08072570: .4byte gRoomVars -_08072574: .4byte gLinkState +_08072574: .4byte gPlayerState _08072578: .4byte 0x00000C18 _0807257C: movs r0, #0x82 @@ -4033,8 +4033,8 @@ sub_0807258C: @ 0x0807258C bl sub_080797C4 cmp r0, #0 beq _080725DC - ldr r2, _080725D4 @ =gLinkState - ldr r1, _080725D8 @ =gLinkEntity + ldr r2, _080725D4 @ =gPlayerState + ldr r1, _080725D8 @ =gPlayerEntity ldrh r0, [r1, #0x2e] strh r0, [r2, #0x16] ldrh r0, [r1, #0x32] @@ -4051,15 +4051,15 @@ sub_0807258C: @ 0x0807258C b _08072604 .align 2, 0 _080725D0: .4byte gRoomControls -_080725D4: .4byte gLinkState -_080725D8: .4byte gLinkEntity +_080725D4: .4byte gPlayerState +_080725D8: .4byte gPlayerEntity _080725DC: adds r0, r4, #0 bl UpdateAnimationSingleFrame b _08072604 _080725E4: - ldr r2, _08072624 @ =gLinkState - ldr r1, _08072628 @ =gLinkEntity + ldr r2, _08072624 @ =gPlayerState + ldr r1, _08072628 @ =gPlayerEntity ldrh r0, [r1, #0x2e] strh r0, [r2, #0x16] ldrh r0, [r1, #0x32] @@ -4074,7 +4074,7 @@ _080725E4: adds r0, r4, #0 bl sub_080728AC _08072604: - ldr r1, _08072624 @ =gLinkState + ldr r1, _08072624 @ =gPlayerState adds r0, r1, #0 adds r0, #0x89 ldrb r0, [r0] @@ -4090,13 +4090,13 @@ _08072604: _08072620: pop {r4, pc} .align 2, 0 -_08072624: .4byte gLinkState -_08072628: .4byte gLinkEntity +_08072624: .4byte gPlayerState +_08072628: .4byte gPlayerEntity thumb_func_start sub_0807262C sub_0807262C: @ 0x0807262C push {lr} - ldr r1, _08072648 @ =gLinkState + ldr r1, _08072648 @ =gPlayerState adds r1, #0xa8 movs r2, #9 strb r2, [r1] @@ -4108,21 +4108,21 @@ sub_0807262C: @ 0x0807262C bl _call_via_r1 pop {pc} .align 2, 0 -_08072648: .4byte gLinkState +_08072648: .4byte gPlayerState _0807264C: .4byte gUnk_0811BB90 thumb_func_start sub_08072650 sub_08072650: @ 0x08072650 push {r4, r5, lr} adds r4, r0, #0 - ldr r5, _08072698 @ =gLinkState + ldr r5, _08072698 @ =gPlayerState ldr r0, [r5, #0x30] movs r1, #0x80 lsls r1, r1, #0xe ands r0, r1 cmp r0, #0 bne _0807266E - ldr r0, _0807269C @ =gLinkEntity + ldr r0, _0807269C @ =gPlayerEntity bl sub_0806F948 ldrb r0, [r4, #0x14] lsls r0, r0, #2 @@ -4132,7 +4132,7 @@ _0807266E: movs r0, #1 strb r0, [r4, #0xd] strb r1, [r4, #0xe] - bl ResetLink + bl ResetPlayer ldr r3, [r5, #0x30] movs r0, #0x80 ands r0, r3 @@ -4148,8 +4148,8 @@ _0807266E: ldr r0, _080726A0 @ =0x00000C08 b _080726BE .align 2, 0 -_08072698: .4byte gLinkState -_0807269C: .4byte gLinkEntity +_08072698: .4byte gPlayerState +_0807269C: .4byte gPlayerEntity _080726A0: .4byte 0x00000C08 _080726A4: adds r0, r4, #0 @@ -4168,7 +4168,7 @@ _080726BA: lsls r0, r0, #2 _080726BE: strh r0, [r5, #8] - ldr r2, _080726E0 @ =gLinkState + ldr r2, _080726E0 @ =gPlayerState ldr r0, [r2, #0x30] movs r1, #0x80 lsls r1, r1, #0xb @@ -4183,7 +4183,7 @@ _080726BE: bl PlaySFX b _080726EA .align 2, 0 -_080726E0: .4byte gLinkState +_080726E0: .4byte gPlayerState _080726E4: movs r0, #0x78 bl PlaySFX @@ -4197,7 +4197,7 @@ _080726EA: sub_080726F4: @ 0x080726F4 push {r4, r5, lr} adds r4, r0, #0 - ldr r3, _08072744 @ =gLinkState + ldr r3, _08072744 @ =gPlayerState ldr r2, [r3, #0x30] movs r0, #0xc0 lsls r0, r0, #0xc @@ -4236,7 +4236,7 @@ _08072730: _08072740: b _080727E0 .align 2, 0 -_08072744: .4byte gLinkState +_08072744: .4byte gPlayerState _08072748: .4byte 0xFFFBFFFF _0807274C: ldrb r1, [r4, #0x14] @@ -4244,7 +4244,7 @@ _0807274C: ands r0, r1 lsls r0, r0, #2 strb r0, [r4, #0x15] - ldr r0, _080727A0 @ =gLinkState + ldr r0, _080727A0 @ =gPlayerState ldr r0, [r0, #0x30] movs r1, #0x80 ands r0, r1 @@ -4257,14 +4257,14 @@ _0807274C: lsrs r0, r0, #0x18 cmp r0, #0xff bne _0807277E - ldr r0, _080727A4 @ =gLinkEntity + ldr r0, _080727A4 @ =gPlayerEntity movs r1, #0x11 movs r2, #0x40 bl CreateFx movs r0, #4 strb r0, [r4, #0xe] _0807277E: - ldr r5, _080727A0 @ =gLinkState + ldr r5, _080727A0 @ =gPlayerState ldr r0, [r5, #0x30] movs r1, #2 ands r0, r1 @@ -4281,8 +4281,8 @@ _0807278E: str r0, [r5, #0x30] b _080728A0 .align 2, 0 -_080727A0: .4byte gLinkState -_080727A4: .4byte gLinkEntity +_080727A0: .4byte gPlayerState +_080727A4: .4byte gPlayerEntity _080727A8: .4byte 0xFFFBFFFF _080727AC: ldr r1, [r5, #0x30] @@ -4372,7 +4372,7 @@ _08072844: ands r0, r1 cmp r0, #0 bne _08072860 - ldr r0, _080728A4 @ =gLinkState + ldr r0, _080728A4 @ =gPlayerState ldr r1, [r0, #0x30] movs r0, #0x80 ands r1, r0 @@ -4395,7 +4395,7 @@ _08072870: ands r0, r1 cmp r0, #0 bne _08072882 - ldr r0, _080728A4 @ =gLinkState + ldr r0, _080728A4 @ =gPlayerState ldrb r0, [r0, #4] cmp r0, #0 beq _08072886 @@ -4407,7 +4407,7 @@ _08072886: ands r0, r1 cmp r0, #0 beq _0807289A - ldr r0, _080728A4 @ =gLinkState + ldr r0, _080728A4 @ =gPlayerState ldr r1, [r0, #0x30] ldr r2, _080728A8 @ =0xFFDBFFFF ands r1, r2 @@ -4418,7 +4418,7 @@ _0807289A: _080728A0: pop {r4, r5, pc} .align 2, 0 -_080728A4: .4byte gLinkState +_080728A4: .4byte gPlayerState _080728A8: .4byte 0xFFDBFFFF thumb_func_start sub_080728AC @@ -4426,7 +4426,7 @@ sub_080728AC: @ 0x080728AC push {r4, r5, lr} adds r4, r0, #0 bl sub_08079938 - ldr r0, _080728C8 @ =gLinkState + ldr r0, _080728C8 @ =gPlayerState ldr r0, [r0, #0x30] movs r1, #0x80 ands r0, r1 @@ -4436,11 +4436,11 @@ sub_080728AC: @ 0x080728AC bl sub_0807B068 b _080728D0 .align 2, 0 -_080728C8: .4byte gLinkState +_080728C8: .4byte gPlayerState _080728CC: bl sub_08078F60 _080728D0: - ldr r1, _08072940 @ =gLinkState + ldr r1, _08072940 @ =gPlayerState adds r0, r1, #0 adds r0, #0x26 ldrb r0, [r0] @@ -4455,7 +4455,7 @@ _080728E0: adds r3, r0, #0 cmp r5, #0 bne _080728F6 - ldr r0, _08072944 @ =gLinkEntity + ldr r0, _08072944 @ =gPlayerEntity ldrb r1, [r0, #0x18] movs r2, #3 orrs r1, r2 @@ -4465,7 +4465,7 @@ _080728F6: ands r0, r3 cmp r0, #0 bne _08072910 - ldr r2, _08072944 @ =gLinkEntity + ldr r2, _08072944 @ =gPlayerEntity adds r2, #0x29 ldrb r1, [r2] movs r0, #0x39 @@ -4490,7 +4490,7 @@ _08072910: _08072928: bl sub_080791D0 _0807292C: - ldr r0, _08072940 @ =gLinkState + ldr r0, _08072940 @ =gPlayerState ldr r0, [r0, #0x30] movs r1, #2 ands r0, r1 @@ -4500,14 +4500,14 @@ _0807292C: _0807293C: pop {r4, r5, pc} .align 2, 0 -_08072940: .4byte gLinkState -_08072944: .4byte gLinkEntity +_08072940: .4byte gPlayerState +_08072944: .4byte gPlayerEntity _08072948: .4byte gRoomControls thumb_func_start sub_0807294C sub_0807294C: @ 0x0807294C push {lr} - ldr r1, _08072968 @ =gLinkState + ldr r1, _08072968 @ =gPlayerState adds r1, #0xa8 movs r2, #0x17 strb r2, [r1] @@ -4519,7 +4519,7 @@ sub_0807294C: @ 0x0807294C bl _call_via_r1 pop {pc} .align 2, 0 -_08072968: .4byte gLinkState +_08072968: .4byte gPlayerState _0807296C: .4byte gUnk_0811BB98 thumb_func_start sub_08072970 @@ -4560,7 +4560,7 @@ sub_08072970: @ 0x08072970 ands r0, r1 strb r0, [r2] strb r3, [r5, #0xe] - ldr r2, _080729D8 @ =gLinkState + ldr r2, _080729D8 @ =gPlayerState ldr r0, [r2, #0x30] movs r1, #0x80 lsls r1, r1, #0xd @@ -4577,7 +4577,7 @@ sub_08072970: @ 0x08072970 adds r6, #0x38 b _08072A14 .align 2, 0 -_080729D8: .4byte gLinkState +_080729D8: .4byte gPlayerState _080729DC: ldr r0, _08072A50 @ =0x0000061C strh r0, [r2, #8] @@ -4626,7 +4626,7 @@ _08072A14: orrs r1, r2 ldrb r2, [r6] bl SetTile - bl ResetLink + bl ResetPlayer adds r0, r5, #0 bl sub_08072A60 movs r0, #0x81 @@ -4663,17 +4663,17 @@ sub_08072A60: @ 0x08072A60 movs r1, #8 orrs r0, r1 strb r0, [r2] - ldr r1, _08072A94 @ =gLinkState + ldr r1, _08072A94 @ =gPlayerState ldr r0, _08072A98 @ =0x00000624 strh r0, [r1, #8] b _08072ACA .align 2, 0 -_08072A94: .4byte gLinkState +_08072A94: .4byte gPlayerState _08072A98: .4byte 0x00000624 _08072A9C: movs r0, #2 strb r0, [r2, #0xd] - ldr r2, _08072AB4 @ =gLinkState + ldr r2, _08072AB4 @ =gPlayerState ldr r0, [r2, #0x30] movs r1, #8 ands r0, r1 @@ -4683,7 +4683,7 @@ _08072A9C: strh r0, [r2, #8] b _08072ACA .align 2, 0 -_08072AB4: .4byte gLinkState +_08072AB4: .4byte gPlayerState _08072AB8: .4byte 0x00000954 _08072ABC: movs r0, #0xc4 @@ -4700,7 +4700,7 @@ _08072ACA: sub_08072ACC: @ 0x08072ACC push {r4, r5, lr} adds r4, r0, #0 - ldr r5, _08072AE0 @ =gLinkState + ldr r5, _08072AE0 @ =gPlayerState ldrb r3, [r5, #0xd] lsls r2, r3, #0x18 lsrs r0, r2, #0x18 @@ -4709,7 +4709,7 @@ sub_08072ACC: @ 0x08072ACC movs r0, #0 b _08072B56 .align 2, 0 -_08072AE0: .4byte gLinkState +_08072AE0: .4byte gPlayerState _08072AE4: ldrb r1, [r4, #0xf] cmp r1, #7 @@ -4843,7 +4843,7 @@ _08072B82: ldr r0, [r5, #0x34] subs r0, #1 str r0, [r5, #0x34] - ldr r1, _08072C0C @ =gLinkState + ldr r1, _08072C0C @ =gPlayerState movs r0, #0x41 strb r0, [r1, #2] movs r2, #0xc @@ -4856,7 +4856,7 @@ _08072B82: .align 2, 0 _08072C04: .4byte 0x00004021 _08072C08: .4byte gRoomControls -_08072C0C: .4byte gLinkState +_08072C0C: .4byte gPlayerState _08072C10: bl sub_08052620 cmp r0, #0 @@ -4874,7 +4874,7 @@ _08072C1E: movs r0, #0x80 lsls r0, r0, #1 strh r0, [r5, #0x24] - ldr r1, _08072C44 @ =gLinkState + ldr r1, _08072C44 @ =gPlayerState movs r0, #0x81 lsls r0, r0, #4 strh r0, [r1, #8] @@ -4883,7 +4883,7 @@ _08072C1E: _08072C40: pop {r4, r5, r6, pc} .align 2, 0 -_08072C44: .4byte gLinkState +_08072C44: .4byte gPlayerState thumb_func_start sub_08072C48 sub_08072C48: @ 0x08072C48 @@ -4901,7 +4901,7 @@ sub_08072C48: @ 0x08072C48 adds r0, r4, #0 movs r1, #7 bl sub_08008790 - ldr r4, _08072C90 @ =gLinkState + ldr r4, _08072C90 @ =gPlayerState ldrb r0, [r4, #0x14] cmp r0, #0 beq _08072C94 @@ -4918,7 +4918,7 @@ sub_08072C48: @ 0x08072C48 bl sub_080791BC b _08072C98 .align 2, 0 -_08072C90: .4byte gLinkState +_08072C90: .4byte gPlayerState _08072C94: bl sub_0807921C _08072C98: @@ -4928,7 +4928,7 @@ _08072C98: thumb_func_start sub_08072C9C sub_08072C9C: @ 0x08072C9C push {lr} - ldr r1, _08072CB8 @ =gLinkState + ldr r1, _08072CB8 @ =gPlayerState adds r1, #0xa8 movs r2, #0x11 strb r2, [r1] @@ -4940,7 +4940,7 @@ sub_08072C9C: @ 0x08072C9C bl _call_via_r1 pop {pc} .align 2, 0 -_08072CB8: .4byte gLinkState +_08072CB8: .4byte gPlayerState _08072CBC: .4byte gUnk_0811BBAC thumb_func_start sub_08072CC0 @@ -4951,7 +4951,7 @@ sub_08072CC0: @ 0x08072CC0 movs r1, #0x7f ands r1, r2 strb r1, [r0, #0x10] - ldr r3, _08072CF4 @ =gLinkState + ldr r3, _08072CF4 @ =gPlayerState adds r1, r3, #0 adds r1, #0x3a ldrb r1, [r1] @@ -4971,7 +4971,7 @@ sub_08072CC0: @ 0x08072CC0 strb r2, [r3, #5] bx lr .align 2, 0 -_08072CF4: .4byte gLinkState +_08072CF4: .4byte gPlayerState _08072CF8: .4byte 0x00000524 thumb_func_start sub_08072CFC @@ -4993,7 +4993,7 @@ sub_08072CFC: @ 0x08072CFC _08072D1C: movs r0, #2 strb r0, [r4, #0xd] - ldr r2, _08072D50 @ =gLinkState + ldr r2, _08072D50 @ =gPlayerState adds r1, r2, #0 adds r1, #0x38 ldrb r0, [r1] @@ -5015,11 +5015,11 @@ _08072D30: movs r0, #5 strb r0, [r4, #0xe] strb r1, [r4, #0xf] - bl ResetLink + bl ResetPlayer _08072D4E: pop {r4, pc} .align 2, 0 -_08072D50: .4byte gLinkState +_08072D50: .4byte gPlayerState thumb_func_start sub_08072D54 sub_08072D54: @ 0x08072D54 @@ -5063,7 +5063,7 @@ _08072D9C: b _08072E6C _08072DA6: ldr r1, _08072DC8 @ =gUnk_0811BBD4 - ldr r0, _08072DCC @ =gLinkEntity + ldr r0, _08072DCC @ =gPlayerEntity ldrb r0, [r0, #0x14] lsrs r0, r0, #1 lsls r0, r0, #2 @@ -5079,10 +5079,10 @@ _08072DA6: b _08072E6C .align 2, 0 _08072DC8: .4byte gUnk_0811BBD4 -_08072DCC: .4byte gLinkEntity +_08072DCC: .4byte gPlayerEntity _08072DD0: ldr r1, _08072DEC @ =gUnk_0811BBD4 - ldr r0, _08072DF0 @ =gLinkEntity + ldr r0, _08072DF0 @ =gPlayerEntity ldrb r0, [r0, #0x14] lsrs r0, r0, #1 lsls r0, r0, #2 @@ -5096,7 +5096,7 @@ _08072DD0: b _08072E6C .align 2, 0 _08072DEC: .4byte gUnk_0811BBD4 -_08072DF0: .4byte gLinkEntity +_08072DF0: .4byte gPlayerEntity _08072DF4: movs r0, #2 strb r0, [r4, #0xf] @@ -5107,7 +5107,7 @@ _08072DFA: eors r0, r5 strb r0, [r4, #0x14] ldr r1, _08072E28 @ =gUnk_0811BBD4 - ldr r0, _08072E2C @ =gLinkEntity + ldr r0, _08072E2C @ =gPlayerEntity ldrb r0, [r0, #0x14] lsrs r0, r0, #1 lsls r0, r0, #2 @@ -5127,14 +5127,14 @@ _08072E22: b _08072E6A .align 2, 0 _08072E28: .4byte gUnk_0811BBD4 -_08072E2C: .4byte gLinkEntity +_08072E2C: .4byte gPlayerEntity _08072E30: ldrb r0, [r4, #0x14] movs r1, #4 eors r0, r1 strb r0, [r4, #0x14] ldr r1, _08072E58 @ =gUnk_0811BBD4 - ldr r0, _08072E5C @ =gLinkEntity + ldr r0, _08072E5C @ =gPlayerEntity ldrb r0, [r0, #0x14] lsrs r0, r0, #1 lsls r0, r0, #2 @@ -5149,7 +5149,7 @@ _08072E30: b _08072E64 .align 2, 0 _08072E58: .4byte gUnk_0811BBD4 -_08072E5C: .4byte gLinkEntity +_08072E5C: .4byte gPlayerEntity _08072E60: movs r0, #4 strb r0, [r4, #0xf] @@ -5197,7 +5197,7 @@ _08072EB0: adds r0, r4, #0 movs r1, #7 bl sub_08008790 - ldr r5, _08072EDC @ =gLinkState + ldr r5, _08072EDC @ =gPlayerState ldrb r0, [r5, #0x14] cmp r0, #0 beq _08072EE0 @@ -5214,7 +5214,7 @@ _08072EB0: bl sub_080791BC b _08072F10 .align 2, 0 -_08072EDC: .4byte gLinkState +_08072EDC: .4byte gPlayerState _08072EE0: ldr r0, [r5, #0x30] movs r1, #8 @@ -5270,7 +5270,7 @@ sub_08072F34: @ 0x08072F34 bl sub_08078EFC cmp r0, #0 bne _08072F86 - ldr r6, _08072F88 @ =gLinkState + ldr r6, _08072F88 @ =gPlayerState adds r1, r6, #0 adds r1, #0xa8 movs r0, #0x18 @@ -5305,7 +5305,7 @@ sub_08072F34: @ 0x08072F34 _08072F86: pop {r4, r5, r6, pc} .align 2, 0 -_08072F88: .4byte gLinkState +_08072F88: .4byte gPlayerState _08072F8C: .4byte gUnk_0811BBE4 _08072F90: .4byte 0x000002CF @@ -5313,7 +5313,7 @@ _08072F90: .4byte 0x000002CF sub_08072F94: @ 0x08072F94 push {r4, lr} adds r4, r0, #0 - ldr r0, _08072FB4 @ =gLinkState + ldr r0, _08072FB4 @ =gPlayerState ldrb r1, [r0, #0x12] adds r3, r0, #0 cmp r1, #0x1e @@ -5328,7 +5328,7 @@ _08072FAE: bl sub_0807921C b _0807308C .align 2, 0 -_08072FB4: .4byte gLinkState +_08072FB4: .4byte gPlayerState _08072FB8: adds r2, r4, #0 adds r2, #0x29 @@ -5475,7 +5475,7 @@ sub_08073094: @ 0x08073094 bl sub_08019840 cmp r0, #0 bne _080731A4 - ldr r0, _08073100 @ =gLinkState + ldr r0, _08073100 @ =gPlayerState ldrb r1, [r0, #6] movs r2, #0x80 eors r1, r2 @@ -5490,7 +5490,7 @@ _080730DE: bl sub_08078EFC cmp r0, #0 bne _080731A4 - ldr r1, _08073100 @ =gLinkState + ldr r1, _08073100 @ =gPlayerState ldrb r0, [r1, #0x12] subs r0, #0x19 adds r2, r1, #0 @@ -5503,7 +5503,7 @@ _080730DE: mov pc, r0 .align 2, 0 _080730FC: .4byte gUnk_0811BBEC -_08073100: .4byte gLinkState +_08073100: .4byte gPlayerState _08073104: .4byte _08073108 _08073108: @ jump table .4byte _0807316C @ case 0 @@ -5570,7 +5570,7 @@ _080731A4: sub_080731A8: @ 0x080731A8 push {r4, lr} adds r4, r0, #0 - ldr r0, _080731D0 @ =gLinkState + ldr r0, _080731D0 @ =gPlayerState adds r0, #0xa8 movs r1, #0x1c strb r1, [r0] @@ -5586,5 +5586,5 @@ sub_080731A8: @ 0x080731A8 bl _call_via_r1 pop {r4, pc} .align 2, 0 -_080731D0: .4byte gLinkState +_080731D0: .4byte gPlayerState _080731D4: .4byte gUnk_0811BBF8 diff --git a/asm/code_080732D0.s b/asm/code_080732D0.s index f675fcf8..6068b8b1 100644 --- a/asm/code_080732D0.s +++ b/asm/code_080732D0.s @@ -31,7 +31,7 @@ _080732EE: movs r2, #1 movs r3, #0 bl CreateObjectWithParent - ldr r0, _08073318 @ =gLinkState + ldr r0, _08073318 @ =gPlayerState adds r0, #0x39 ldrb r0, [r0] cmp r0, #7 @@ -40,7 +40,7 @@ _080732EE: bl PlaySFX b _08073328 .align 2, 0 -_08073318: .4byte gLinkState +_08073318: .4byte gPlayerState _0807331C: .4byte 0x00000187 _08073320: movs r0, #0xc4 @@ -55,7 +55,7 @@ sub_0807332C: @ 0x0807332C push {r4, lr} adds r4, r0, #0 bl UpdateAnimationSingleFrame - ldr r0, _08073344 @ =gLinkState + ldr r0, _08073344 @ =gPlayerState adds r0, #0x39 ldrb r0, [r0] cmp r0, #7 @@ -63,7 +63,7 @@ sub_0807332C: @ 0x0807332C movs r0, #0 b _0807334A .align 2, 0 -_08073344: .4byte gLinkState +_08073344: .4byte gPlayerState _08073348: movs r0, #0x1c _0807334A: @@ -73,7 +73,7 @@ _0807334A: ands r0, r1 cmp r0, #0xf beq _08073386 - ldr r0, _08073368 @ =gLinkState + ldr r0, _08073368 @ =gPlayerState adds r0, #0x39 ldrb r0, [r0] cmp r0, #7 @@ -83,7 +83,7 @@ _0807334A: movs r0, #4 b _0807337C .align 2, 0 -_08073368: .4byte gLinkState +_08073368: .4byte gPlayerState _0807336C: movs r0, #6 strb r0, [r4, #0x14] @@ -100,7 +100,7 @@ _0807337E: bl sub_0806F69C b _080733B6 _08073386: - ldr r0, _0807339C @ =gLinkState + ldr r0, _0807339C @ =gPlayerState adds r0, #0x38 ldrb r0, [r0] cmp r0, #0 @@ -110,7 +110,7 @@ _08073386: bl sub_080791BC b _080733B6 .align 2, 0 -_0807339C: .4byte gLinkState +_0807339C: .4byte gPlayerState _080733A0: .4byte gRoomControls _080733A4: ldr r0, _080733B8 @ =gUnk_03001000 @@ -194,7 +194,7 @@ sub_08073420: @ 0x08073420 ands r1, r0 orrs r1, r2 strb r1, [r4, #0x19] - ldr r0, _08073460 @ =gLinkState + ldr r0, _08073460 @ =gPlayerState adds r0, #0xa8 movs r1, #8 strb r1, [r0] @@ -208,14 +208,14 @@ sub_08073420: @ 0x08073420 _0807345E: pop {r4, pc} .align 2, 0 -_08073460: .4byte gLinkState +_08073460: .4byte gPlayerState _08073464: .4byte gUnk_0811BC08 thumb_func_start sub_08073468 sub_08073468: @ 0x08073468 push {r4, r5, lr} adds r4, r0, #0 - ldr r5, _080734CC @ =gLinkState + ldr r5, _080734CC @ =gPlayerState movs r1, #0 movs r0, #0xe0 lsls r0, r0, #3 @@ -247,7 +247,7 @@ sub_08073468: @ 0x08073468 movs r3, #0 bl CreateObjectWithParent _080734AC: - bl ResetLink + bl ResetPlayer ldr r0, [r4, #0x20] cmp r0, #0 bgt _080734C0 @@ -264,7 +264,7 @@ _080734C0: _080734C8: pop {r4, r5, pc} .align 2, 0 -_080734CC: .4byte gLinkState +_080734CC: .4byte gPlayerState _080734D0: .4byte 0xFFFF0000 thumb_func_start sub_080734D4 @@ -276,7 +276,7 @@ sub_080734D4: @ 0x080734D4 ldr r0, [r4, #0x20] cmp r0, #0 bgt _080734EE - ldr r0, _08073500 @ =gLinkState + ldr r0, _08073500 @ =gPlayerState adds r0, #0x38 ldrb r0, [r0] cmp r0, #1 @@ -292,7 +292,7 @@ _080734FA: pop {r4, pc} .align 2, 0 _080734FC: .4byte 0xFFFFF000 -_08073500: .4byte gLinkState +_08073500: .4byte gPlayerState thumb_func_start sub_08073504 sub_08073504: @ 0x08073504 @@ -331,7 +331,7 @@ _08073516: strb r2, [r0] subs r0, #1 strb r2, [r0] - ldr r0, _08073580 @ =gLinkState + ldr r0, _08073580 @ =gPlayerState movs r1, #0xe1 lsls r1, r1, #3 strh r1, [r0, #8] @@ -357,13 +357,13 @@ _08073576: bl UpdateAnimationSingleFrame pop {r4, pc} .align 2, 0 -_08073580: .4byte gLinkState +_08073580: .4byte gPlayerState thumb_func_start sub_08073584 sub_08073584: @ 0x08073584 push {r4, r5, r6, lr} adds r4, r0, #0 - ldr r2, _080735DC @ =gLinkState + ldr r2, _080735DC @ =gPlayerState adds r0, r2, #0 adds r0, #0x92 ldrh r1, [r0] @@ -404,7 +404,7 @@ _080735C0: strh r0, [r6, #8] b _08073794 .align 2, 0 -_080735DC: .4byte gLinkState +_080735DC: .4byte gPlayerState _080735E0: ldr r0, _0807360C @ =gUnk_0200AF00 adds r0, #0x2f @@ -443,7 +443,7 @@ _08073620: .4byte gArea _08073624: strh r5, [r4, #0x24] _08073626: - ldr r3, _08073650 @ =gLinkState + ldr r3, _08073650 @ =gPlayerState ldrb r1, [r3, #0xd] movs r0, #0x80 ands r0, r1 @@ -464,7 +464,7 @@ _08073626: subs r0, #0x20 b _08073658 .align 2, 0 -_08073650: .4byte gLinkState +_08073650: .4byte gPlayerState _08073654: ldr r0, [r2] adds r0, #0x20 @@ -517,7 +517,7 @@ _08073696: _080736A8: strb r3, [r4, #0x14] movs r5, #0 - ldr r1, _080736E4 @ =gLinkState + ldr r1, _080736E4 @ =gPlayerState ldrb r2, [r1, #0xd] lsrs r3, r2, #2 mov r6, ip @@ -547,7 +547,7 @@ _080736CA: movs r5, #2 b _080736FA .align 2, 0 -_080736E4: .4byte gLinkState +_080736E4: .4byte gPlayerState _080736E8: movs r0, #6 ands r0, r3 @@ -618,7 +618,7 @@ _08073762: rsbs r0, r0, #0 cmp r1, r0 bne _08073784 - ldr r2, _08073780 @ =gLinkState + ldr r2, _08073780 @ =gPlayerState ldrb r1, [r2, #2] movs r0, #0x40 orrs r0, r1 @@ -626,7 +626,7 @@ _08073762: bl sub_0807921C b _08073794 .align 2, 0 -_08073780: .4byte gLinkState +_08073780: .4byte gPlayerState _08073784: adds r0, r1, #0 movs r1, #0x14 @@ -691,7 +691,7 @@ _080737E4: bl sub_080002D0 cmp r0, #0 bne _08073804 - ldr r2, _08073808 @ =gLinkState + ldr r2, _08073808 @ =gPlayerState ldrb r1, [r2, #2] movs r0, #0x40 orrs r0, r1 @@ -700,7 +700,7 @@ _080737E4: _08073804: pop {r4, pc} .align 2, 0 -_08073808: .4byte gLinkState +_08073808: .4byte gPlayerState thumb_func_start sub_0807380C sub_0807380C: @ 0x0807380C @@ -720,7 +720,7 @@ sub_0807380C: @ 0x0807380C lsls r0, r0, #2 strb r0, [r4, #0x15] _0807382A: - ldr r2, _08073858 @ =gLinkState + ldr r2, _08073858 @ =gPlayerState ldr r1, _0807385C @ =gUnk_0811BC38 ldrb r0, [r4, #0x14] lsrs r0, r0, #1 @@ -741,7 +741,7 @@ _0807382A: b _0807387A .align 2, 0 _08073854: .4byte gScreenTransition -_08073858: .4byte gLinkState +_08073858: .4byte gPlayerState _0807385C: .4byte gUnk_0811BC38 _08073860: ldrb r0, [r4, #0xe] @@ -781,7 +781,7 @@ sub_08073884: @ 0x08073884 lsls r0, r0, #2 strb r0, [r4, #0x15] _080738A2: - ldr r2, _080738E0 @ =gLinkState + ldr r2, _080738E0 @ =gPlayerState ldr r1, _080738E4 @ =gUnk_0811BC40 ldrb r0, [r4, #0x14] lsrs r0, r0, #1 @@ -810,7 +810,7 @@ _080738A2: b _080738F0 .align 2, 0 _080738DC: .4byte gScreenTransition -_080738E0: .4byte gLinkState +_080738E0: .4byte gPlayerState _080738E4: .4byte gUnk_0811BC40 _080738E8: .4byte gUnk_0813AD88 _080738EC: @@ -829,7 +829,7 @@ _08073900: .4byte 0xFFFFE800 sub_08073904: @ 0x08073904 push {lr} ldr r3, _0807391C @ =gUnk_0811BC48 - ldr r1, _08073920 @ =gLinkState + ldr r1, _08073920 @ =gPlayerState ldrb r2, [r1, #2] movs r1, #7 ands r1, r2 @@ -840,13 +840,13 @@ sub_08073904: @ 0x08073904 pop {pc} .align 2, 0 _0807391C: .4byte gUnk_0811BC48 -_08073920: .4byte gLinkState +_08073920: .4byte gPlayerState thumb_func_start sub_08073924 sub_08073924: @ 0x08073924 push {r4, lr} adds r4, r0, #0 - ldr r2, _08073964 @ =gLinkState + ldr r2, _08073964 @ =gPlayerState ldr r0, [r2, #0x30] movs r1, #0x80 lsls r1, r1, #0xb @@ -876,13 +876,13 @@ sub_08073924: @ 0x08073924 _08073962: pop {r4, pc} .align 2, 0 -_08073964: .4byte gLinkState +_08073964: .4byte gPlayerState thumb_func_start sub_08073968 sub_08073968: @ 0x08073968 push {r4, r5, lr} adds r5, r0, #0 - ldr r4, _08073998 @ =gLinkState + ldr r4, _08073998 @ =gPlayerState ldrb r1, [r4, #2] movs r0, #0xc0 ands r0, r1 @@ -905,7 +905,7 @@ _0807397C: ldr r0, _0807399C @ =0x0000041C b _080739BA .align 2, 0 -_08073998: .4byte gLinkState +_08073998: .4byte gPlayerState _0807399C: .4byte 0x0000041C _080739A0: movs r0, #0x80 @@ -925,7 +925,7 @@ _080739B8: _080739BA: strh r0, [r4, #8] _080739BC: - ldr r0, _080739E8 @ =gLinkState + ldr r0, _080739E8 @ =gPlayerState ldrb r1, [r0, #2] movs r0, #0xc0 ands r0, r1 @@ -937,7 +937,7 @@ _080739CE: movs r0, #0x7c bl PlaySFX _080739D4: - ldr r2, _080739E8 @ =gLinkState + ldr r2, _080739E8 @ =gPlayerState ldrb r1, [r2, #2] movs r0, #0xf8 ands r0, r1 @@ -947,13 +947,13 @@ _080739D4: pop {r4, r5, pc} .align 2, 0 _080739E4: .4byte 0x0000080C -_080739E8: .4byte gLinkState +_080739E8: .4byte gPlayerState thumb_func_start sub_080739EC sub_080739EC: @ 0x080739EC push {r4, r5, lr} adds r4, r0, #0 - ldr r1, _08073A14 @ =gLinkState + ldr r1, _08073A14 @ =gPlayerState ldrb r2, [r1, #2] movs r0, #0xc0 ands r0, r2 @@ -973,7 +973,7 @@ _08073A0E: lsls r2, r2, #6 b _08073A48 .align 2, 0 -_08073A14: .4byte gLinkState +_08073A14: .4byte gPlayerState _08073A18: movs r2, #0xc rsbs r2, r2, #0 @@ -1057,11 +1057,11 @@ _08073AAE: adds r0, r4, #0 bl sub_08073B60 _08073AB4: - ldr r0, _08073ACC @ =gLinkEntity + ldr r0, _08073ACC @ =gPlayerEntity ldr r0, [r0, #0x34] cmp r0, #0 beq _08073AC8 - ldr r1, _08073AD0 @ =gLinkState + ldr r1, _08073AD0 @ =gPlayerState movs r0, #0 strb r0, [r1, #2] adds r0, r4, #0 @@ -1069,8 +1069,8 @@ _08073AB4: _08073AC8: pop {r4, pc} .align 2, 0 -_08073ACC: .4byte gLinkEntity -_08073AD0: .4byte gLinkState +_08073ACC: .4byte gPlayerEntity +_08073AD0: .4byte gPlayerState thumb_func_start sub_08073AD4 sub_08073AD4: @ 0x08073AD4 @@ -1094,7 +1094,7 @@ sub_08073AD4: @ 0x08073AD4 orrs r1, r2 strb r1, [r4, #0x19] _08073AFA: - ldr r6, _08073B48 @ =gLinkState + ldr r6, _08073B48 @ =gPlayerState ldrb r5, [r6, #2] movs r0, #0xc1 rsbs r0, r0, #0 @@ -1120,7 +1120,7 @@ _08073AFA: adds r0, r4, #0 bl sub_08073B60 _08073B32: - ldr r2, _08073B48 @ =gLinkState + ldr r2, _08073B48 @ =gPlayerState adds r0, r5, #1 strb r0, [r2, #2] ldr r0, [r2, #0x30] @@ -1131,7 +1131,7 @@ _08073B32: ldr r0, _08073B4C @ =0x00000424 b _08073B54 .align 2, 0 -_08073B48: .4byte gLinkState +_08073B48: .4byte gPlayerState _08073B4C: .4byte 0x00000424 _08073B50: movs r0, #0x82 @@ -1148,7 +1148,7 @@ _08073B5C: sub_08073B60: @ 0x08073B60 push {r4, r5, lr} adds r5, r0, #0 - ldr r4, _08073B88 @ =gLinkState + ldr r4, _08073B88 @ =gPlayerState movs r0, #0 strb r0, [r4, #0x1b] strb r0, [r4, #4] @@ -1165,13 +1165,13 @@ sub_08073B60: @ 0x08073B60 _08073B86: pop {r4, r5, pc} .align 2, 0 -_08073B88: .4byte gLinkState +_08073B88: .4byte gPlayerState thumb_func_start sub_08073B8C sub_08073B8C: @ 0x08073B8C push {r4, r5, lr} adds r4, r0, #0 - ldr r5, _08073BCC @ =gLinkState + ldr r5, _08073BCC @ =gPlayerState ldrb r0, [r5, #4] cmp r0, #0 beq _08073C04 @@ -1201,7 +1201,7 @@ _08073BB8: strb r0, [r4, #0xe] b _08073C28 .align 2, 0 -_08073BCC: .4byte gLinkState +_08073BCC: .4byte gPlayerState _08073BD0: movs r1, #0x80 lsls r1, r1, #7 @@ -1232,7 +1232,7 @@ _08073C04: bl sub_08073B60 b _08073C28 _08073C0C: - ldr r1, _08073C2C @ =gLinkState + ldr r1, _08073C2C @ =gPlayerState ldrb r0, [r1, #2] adds r0, #1 strb r0, [r1, #2] @@ -1247,13 +1247,13 @@ _08073C0C: _08073C28: pop {r4, r5, pc} .align 2, 0 -_08073C2C: .4byte gLinkState +_08073C2C: .4byte gPlayerState thumb_func_start sub_08073C30 sub_08073C30: @ 0x08073C30 push {lr} adds r2, r0, #0 - ldr r0, _08073C54 @ =gLinkState + ldr r0, _08073C54 @ =gPlayerState ldrb r0, [r0, #4] cmp r0, #0 beq _08073C4A @@ -1269,7 +1269,7 @@ _08073C4A: bl sub_08073B60 b _08073C66 .align 2, 0 -_08073C54: .4byte gLinkState +_08073C54: .4byte gPlayerState _08073C58: ldrb r0, [r2, #0x10] movs r1, #0x80 @@ -1297,7 +1297,7 @@ _08073C7C: .4byte gUnk_0811BC60 sub_08073C80: @ 0x08073C80 push {r4, r5, r6, r7, lr} adds r4, r0, #0 - ldr r2, _08073D00 @ =gLinkState + ldr r2, _08073D00 @ =gPlayerState ldr r0, [r2, #0x30] movs r1, #0x80 orrs r0, r1 @@ -1358,7 +1358,7 @@ sub_08073C80: @ 0x08073C80 strb r6, [r4, #0xd] b _08073D1E .align 2, 0 -_08073D00: .4byte gLinkState +_08073D00: .4byte gPlayerState _08073D04: .4byte 0x00000C18 _08073D08: .4byte gUnk_0811BC80 _08073D0C: .4byte gRoomControls @@ -1377,7 +1377,7 @@ sub_08073D20: @ 0x08073D20 mov r7, r8 push {r7} adds r4, r0, #0 - ldr r5, _08073D70 @ =gLinkState + ldr r5, _08073D70 @ =gPlayerState movs r0, #0xa8 adds r0, r0, r5 mov r8, r0 @@ -1412,7 +1412,7 @@ _08073D60: bl sub_08079708 b _08073EFC .align 2, 0 -_08073D70: .4byte gLinkState +_08073D70: .4byte gPlayerState _08073D74: bl sub_08078EFC adds r6, r0, #0 @@ -1504,10 +1504,10 @@ _08073E10: adds r1, r0, #0 cmp r1, #0 bne _08073E32 - ldr r0, _08073E74 @ =gLinkState + ldr r0, _08073E74 @ =gPlayerState strb r1, [r0, #2] _08073E32: - ldr r2, _08073E74 @ =gLinkState + ldr r2, _08073E74 @ =gPlayerState ldrb r1, [r2, #7] movs r3, #0x80 adds r0, r3, #0 @@ -1538,7 +1538,7 @@ _08073E32: bl sub_08079E08 b _08073E90 .align 2, 0 -_08073E74: .4byte gLinkState +_08073E74: .4byte gPlayerState _08073E78: ldrb r1, [r2, #0xd] strb r1, [r4, #0x15] @@ -1552,7 +1552,7 @@ _08073E78: strb r0, [r1] bl sub_08079E08 _08073E90: - ldr r5, _08073EF0 @ =gLinkState + ldr r5, _08073EF0 @ =gPlayerState ldrb r0, [r5, #0xb] cmp r0, #0 bne _08073E9E @@ -1595,7 +1595,7 @@ _08073EDC: bl sub_08008AC6 b _08073EFC .align 2, 0 -_08073EF0: .4byte gLinkState +_08073EF0: .4byte gPlayerState _08073EF4: adds r1, r5, #0 adds r1, #0xa8 @@ -1633,16 +1633,16 @@ sub_08073F04: @ 0x08073F04 movs r1, #0x80 lsls r1, r1, #1 strh r1, [r0, #0x24] - ldr r2, _08073F48 @ =gLinkState + ldr r2, _08073F48 @ =gPlayerState ldr r0, [r2, #0x30] movs r1, #0x81 rsbs r1, r1, #0 ands r0, r1 str r0, [r2, #0x30] - bl ResetLink + bl ResetPlayer pop {pc} .align 2, 0 -_08073F48: .4byte gLinkState +_08073F48: .4byte gPlayerState thumb_func_start sub_08073F4C sub_08073F4C: @ 0x08073F4C @@ -1703,13 +1703,13 @@ _08073F88: strb r0, [r4, #0x19] adds r0, r4, #0 bl sub_08074018 - ldr r1, _08073FC8 @ =gLinkState + ldr r1, _08073FC8 @ =gPlayerState ldr r0, _08073FCC @ =0x0000073C strh r0, [r1, #8] _08073FC6: pop {r4, r5, pc} .align 2, 0 -_08073FC8: .4byte gLinkState +_08073FC8: .4byte gPlayerState _08073FCC: .4byte 0x0000073C thumb_func_start sub_08073FD0 @@ -1833,7 +1833,7 @@ sub_08074060: @ 0x08074060 movs r0, #0x80 lsls r0, r0, #0xa str r0, [r4, #0x20] - ldr r1, _080740C8 @ =gLinkState + ldr r1, _080740C8 @ =gPlayerState ldr r0, _080740CC @ =0x0000080C strh r0, [r1, #8] adds r0, r4, #0 @@ -1841,7 +1841,7 @@ sub_08074060: @ 0x08074060 b _080740D6 .align 2, 0 _080740C4: .4byte gUnk_08114F88 -_080740C8: .4byte gLinkState +_080740C8: .4byte gPlayerState _080740CC: .4byte 0x0000080C _080740D0: adds r0, r4, #0 @@ -1976,7 +1976,7 @@ _080741C2: thumb_func_start sub_080741C4 sub_080741C4: @ 0x080741C4 push {lr} - ldr r0, _080741F0 @ =gLinkState + ldr r0, _080741F0 @ =gPlayerState ldrb r1, [r0, #2] adds r2, r0, #0 cmp r1, #0 @@ -1986,7 +1986,7 @@ sub_080741C4: @ 0x080741C4 cmp r0, #3 bne _080741E0 _080741D8: - ldr r0, _080741F4 @ =gLinkEntity + ldr r0, _080741F4 @ =gPlayerEntity ldr r0, [r0, #0x34] cmp r0, #0 beq _080741F8 @@ -1999,8 +1999,8 @@ _080741E0: movs r0, #1 b _080741FA .align 2, 0 -_080741F0: .4byte gLinkState -_080741F4: .4byte gLinkEntity +_080741F0: .4byte gPlayerState +_080741F4: .4byte gPlayerEntity _080741F8: movs r0, #0 _080741FA: @@ -2025,14 +2025,14 @@ sub_08074200: @ 0x08074200 ldrb r0, [r4, #0xc] cmp r0, #3 beq _08074226 - bl ResetLink - ldr r1, _08074228 @ =gLinkState + bl ResetPlayer + ldr r1, _08074228 @ =gPlayerState movs r0, #3 strb r0, [r1, #0xc] _08074226: pop {r4, pc} .align 2, 0 -_08074228: .4byte gLinkState +_08074228: .4byte gPlayerState thumb_func_start sub_0807422C sub_0807422C: @ 0x0807422C @@ -2056,7 +2056,7 @@ sub_08074244: @ 0x08074244 adds r4, r0, #0 adds r6, r1, #0 adds r7, r2, #0 - ldr r5, _0807428C @ =gLinkState + ldr r5, _0807428C @ =gPlayerState ldrb r0, [r5, #0x12] subs r0, #0x28 lsls r0, r0, #0x18 @@ -2088,7 +2088,7 @@ _08074278: ldrb r0, [r5, #0xd] b _08074294 .align 2, 0 -_0807428C: .4byte gLinkState +_0807428C: .4byte gPlayerState _08074290: ldrb r0, [r4, #0x14] lsls r0, r0, #2 @@ -2098,7 +2098,7 @@ _08074294: cmp r7, r0 beq _080742A6 _0807429C: - ldr r1, _080742A8 @ =gLinkState + ldr r1, _080742A8 @ =gPlayerState adds r1, #0x80 ldrh r0, [r1] subs r0, #0x50 @@ -2106,13 +2106,13 @@ _0807429C: _080742A6: pop {r4, r5, r6, r7, pc} .align 2, 0 -_080742A8: .4byte gLinkState +_080742A8: .4byte gPlayerState thumb_func_start sub_080742AC sub_080742AC: @ 0x080742AC push {lr} adds r2, r0, #0 - ldr r0, _080742E0 @ =gLinkState + ldr r0, _080742E0 @ =gPlayerState adds r1, r0, #0 adds r1, #0x26 ldrb r0, [r1] @@ -2137,7 +2137,7 @@ _080742C0: strb r0, [r2] pop {pc} .align 2, 0 -_080742E0: .4byte gLinkState +_080742E0: .4byte gPlayerState thumb_func_start sub_080742E4 sub_080742E4: @ 0x080742E4 @@ -2146,7 +2146,7 @@ sub_080742E4: @ 0x080742E4 bl sub_080741C4 cmp r0, #0 bne _0807430E - ldr r2, _08074310 @ =gLinkState + ldr r2, _08074310 @ =gPlayerState ldr r0, [r2, #0x30] movs r1, #0x80 ands r0, r1 @@ -2163,7 +2163,7 @@ sub_080742E4: @ 0x080742E4 _0807430E: pop {r4, pc} .align 2, 0 -_08074310: .4byte gLinkState +_08074310: .4byte gPlayerState thumb_func_start sub_08074314 sub_08074314: @ 0x08074314 @@ -2252,7 +2252,7 @@ _080743A0: thumb_func_start sub_080743A4 sub_080743A4: @ 0x080743A4 push {lr} - ldr r3, _080743D0 @ =gLinkState + ldr r3, _080743D0 @ =gPlayerState ldr r1, [r3, #0x30] movs r2, #0x40 orrs r1, r2 @@ -2270,10 +2270,10 @@ sub_080743A4: @ 0x080743A4 strb r1, [r0, #0x10] adds r0, #0x42 strb r3, [r0] - bl ResetLink + bl ResetPlayer pop {pc} .align 2, 0 -_080743D0: .4byte gLinkState +_080743D0: .4byte gPlayerState thumb_func_start sub_080743D4 sub_080743D4: @ 0x080743D4 @@ -2297,7 +2297,7 @@ sub_080743D4: @ 0x080743D4 strh r0, [r5, #0x24] movs r0, #0x10 strb r0, [r5, #0x15] - ldr r2, _08074418 @ =gLinkState + ldr r2, _08074418 @ =gPlayerState ldrb r1, [r2, #0xa] movs r0, #0x80 orrs r0, r1 @@ -2308,13 +2308,13 @@ sub_080743D4: @ 0x080743D4 _08074416: pop {r4, r5, pc} .align 2, 0 -_08074418: .4byte gLinkState +_08074418: .4byte gPlayerState thumb_func_start sub_0807441C sub_0807441C: @ 0x0807441C push {r4, r5, r6, r7, lr} adds r7, r0, #0 - ldr r0, _08074440 @ =gLinkState + ldr r0, _08074440 @ =gPlayerState adds r0, #0xa0 ldrb r0, [r0] cmp r0, #4 @@ -2329,7 +2329,7 @@ sub_0807441C: @ 0x0807441C ldrb r0, [r4] b _0807444E .align 2, 0 -_08074440: .4byte gLinkState +_08074440: .4byte gPlayerState _08074444: .4byte gUnk_02002A40 _08074448: adds r0, r6, #0 @@ -2403,7 +2403,7 @@ _080744A6: .align 2, 0 _080744D0: .4byte gUnk_03004040 _080744D4: - ldr r2, _08074504 @ =gLinkState + ldr r2, _08074504 @ =gPlayerState ldrb r1, [r2, #0x1b] movs r0, #0x80 orrs r0, r1 @@ -2428,7 +2428,7 @@ _080744D4: _08074502: pop {r4, r5, r6, r7, pc} .align 2, 0 -_08074504: .4byte gLinkState +_08074504: .4byte gPlayerState _08074508: .4byte 0xFFF00000 thumb_func_start sub_0807450C @@ -2438,7 +2438,7 @@ sub_0807450C: @ 0x0807450C bl sub_080741C4 cmp r0, #0 bne _0807457A - ldr r7, _0807457C @ =gLinkState + ldr r7, _0807457C @ =gPlayerState ldrb r0, [r7, #0x14] cmp r0, #0 bne _0807457A @@ -2487,7 +2487,7 @@ _08074568: _0807457A: pop {r4, r5, r6, r7, pc} .align 2, 0 -_0807457C: .4byte gLinkState +_0807457C: .4byte gPlayerState _08074580: .4byte 0x0000FFF0 thumb_func_start sub_08074584 @@ -2497,7 +2497,7 @@ sub_08074584: @ 0x08074584 bl sub_080741C4 cmp r0, #0 bne _080745AC - ldr r0, _080745B0 @ =gLinkState + ldr r0, _080745B0 @ =gPlayerState adds r0, #0x35 ldrb r1, [r0] movs r0, #0x80 @@ -2514,7 +2514,7 @@ _080745A8: _080745AC: pop {r4, pc} .align 2, 0 -_080745B0: .4byte gLinkState +_080745B0: .4byte gPlayerState thumb_func_start sub_080745B4 sub_080745B4: @ 0x080745B4 @@ -2523,7 +2523,7 @@ sub_080745B4: @ 0x080745B4 bl sub_080741C4 cmp r0, #0 bne _08074636 - ldr r0, _080745E4 @ =gLinkState + ldr r0, _080745E4 @ =gPlayerState mov ip, r0 ldr r3, [r0, #0x30] movs r0, #0x80 @@ -2540,7 +2540,7 @@ sub_080745B4: @ 0x080745B4 bl sub_0807479C b _08074636 .align 2, 0 -_080745E4: .4byte gLinkState +_080745E4: .4byte gPlayerState _080745E8: mov r5, ip adds r5, #0x26 @@ -2589,7 +2589,7 @@ _08074636: sub_08074638: @ 0x08074638 push {r4, r5, lr} adds r4, r0, #0 - ldr r0, _08074674 @ =gLinkState + ldr r0, _08074674 @ =gPlayerState adds r5, r0, #0 adds r5, #0x26 ldrb r0, [r5] @@ -2618,7 +2618,7 @@ sub_08074638: @ 0x08074638 _08074670: pop {r4, r5, pc} .align 2, 0 -_08074674: .4byte gLinkState +_08074674: .4byte gPlayerState thumb_func_start sub_08074678 sub_08074678: @ 0x08074678 @@ -2627,12 +2627,12 @@ sub_08074678: @ 0x08074678 bl sub_080741C4 cmp r0, #0 beq _08074690 - ldr r0, _0807468C @ =gLinkState + ldr r0, _0807468C @ =gPlayerState movs r1, #0 strb r1, [r0, #0x11] b _080746CE .align 2, 0 -_0807468C: .4byte gLinkState +_0807468C: .4byte gPlayerState _08074690: adds r0, r4, #0 adds r0, #0x45 @@ -2644,13 +2644,13 @@ _08074690: adds r1, r0, #0 cmp r1, #0 bne _080746B0 - ldr r0, _080746AC @ =gLinkState + ldr r0, _080746AC @ =gPlayerState strb r1, [r0, #0x11] b _080746CE .align 2, 0 -_080746AC: .4byte gLinkState +_080746AC: .4byte gPlayerState _080746B0: - ldr r3, _080746D4 @ =gLinkState + ldr r3, _080746D4 @ =gPlayerState ldr r1, [r3, #0x30] movs r0, #0x80 ands r1, r0 @@ -2670,11 +2670,11 @@ _080746CE: strb r1, [r0] b _08074792 .align 2, 0 -_080746D4: .4byte gLinkState +_080746D4: .4byte gPlayerState _080746D8: bl sub_08077B20 _080746DC: - ldr r1, _08074700 @ =gLinkState + ldr r1, _08074700 @ =gPlayerState adds r0, r1, #0 adds r0, #0x37 ldrb r0, [r0] @@ -2691,7 +2691,7 @@ _080746DC: bl CreateFx b _08074714 .align 2, 0 -_08074700: .4byte gLinkState +_08074700: .4byte gPlayerState _08074704: adds r0, r1, #0 adds r0, #0x92 @@ -2717,7 +2717,7 @@ _08074720: ldr r0, _08074764 @ =0x00000161 bl PlaySFX _08074732: - ldr r2, _08074768 @ =gLinkState + ldr r2, _08074768 @ =gPlayerState adds r1, r2, #0 adds r1, #0x80 ldrh r0, [r1] @@ -2743,9 +2743,9 @@ _08074732: .align 2, 0 _08074760: .4byte gScreenTransition _08074764: .4byte 0x00000161 -_08074768: .4byte gLinkState +_08074768: .4byte gPlayerState _0807476C: - ldr r2, _08074794 @ =gLinkState + ldr r2, _08074794 @ =gPlayerState ldr r0, [r2, #0x30] ldr r1, _08074798 @ =0xFFFBFFFF ands r0, r1 @@ -2764,7 +2764,7 @@ _0807476C: _08074792: pop {r4, pc} .align 2, 0 -_08074794: .4byte gLinkState +_08074794: .4byte gPlayerState _08074798: .4byte 0xFFFBFFFF thumb_func_start sub_0807479C @@ -2775,7 +2775,7 @@ sub_0807479C: @ 0x0807479C adds r2, r0, #0 cmp r2, #0 bne _08074804 - ldr r1, _080747C0 @ =gLinkState + ldr r1, _080747C0 @ =gPlayerState ldrb r0, [r1, #0x14] adds r3, r1, #0 cmp r0, #0 @@ -2786,7 +2786,7 @@ sub_0807479C: @ 0x0807479C strb r0, [r1] b _080747E6 .align 2, 0 -_080747C0: .4byte gLinkState +_080747C0: .4byte gPlayerState _080747C4: adds r0, r3, #0 adds r0, #0x26 @@ -2834,7 +2834,7 @@ sub_08074808: @ 0x08074808 adds r3, r0, #0 cmp r3, #1 bne _080748B8 - ldr r1, _08074838 @ =gLinkState + ldr r1, _08074838 @ =gPlayerState adds r2, r1, #0 adds r2, #0x26 ldrb r0, [r2] @@ -2849,7 +2849,7 @@ sub_08074808: @ 0x08074808 strb r3, [r2] b _08074840 .align 2, 0 -_08074838: .4byte gLinkState +_08074838: .4byte gPlayerState _0807483C: movs r0, #8 strb r0, [r2] @@ -2857,7 +2857,7 @@ _08074840: movs r1, #0 movs r0, #0 strh r0, [r6, #0x24] - ldr r0, _080748AC @ =gLinkState + ldr r0, _080748AC @ =gPlayerState adds r2, r0, #0 adds r2, #0x89 strb r1, [r2] @@ -2873,9 +2873,9 @@ _08074840: _08074862: ldr r0, _080748B0 @ =0x000001A5 bl PlaySFX - bl ResetLink + bl ResetPlayer _0807486C: - ldr r5, _080748AC @ =gLinkState + ldr r5, _080748AC @ =gPlayerState adds r4, r5, #0 adds r4, #0x26 ldrb r1, [r4] @@ -2907,28 +2907,28 @@ _0807488A: strh r7, [r1] b _080748BE .align 2, 0 -_080748AC: .4byte gLinkState +_080748AC: .4byte gPlayerState _080748B0: .4byte 0x000001A5 _080748B4: .4byte 0xFFFFF3FF _080748B8: - ldr r1, _080748C0 @ =gLinkState + ldr r1, _080748C0 @ =gPlayerState movs r0, #0x14 strb r0, [r1, #0xc] _080748BE: pop {r4, r5, r6, r7, pc} .align 2, 0 -_080748C0: .4byte gLinkState +_080748C0: .4byte gPlayerState thumb_func_start sub_080748C4 sub_080748C4: @ 0x080748C4 - ldr r1, _080748D0 @ =gLinkState + ldr r1, _080748D0 @ =gPlayerState adds r1, #0x3f ldrb r0, [r1] subs r0, #2 strb r0, [r1] bx lr .align 2, 0 -_080748D0: .4byte gLinkState +_080748D0: .4byte gPlayerState thumb_func_start sub_080748D4 sub_080748D4: @ 0x080748D4 @@ -2951,7 +2951,7 @@ sub_080748DC: @ 0x080748DC ldrh r0, [r4, #0x32] adds r0, #0xc strh r0, [r4, #0x32] - ldr r0, _08074914 @ =gLinkState + ldr r0, _08074914 @ =gPlayerState ldr r0, [r0, #0x30] movs r1, #0x80 ands r0, r1 @@ -2966,7 +2966,7 @@ _0807490A: _08074910: pop {r4, pc} .align 2, 0 -_08074914: .4byte gLinkState +_08074914: .4byte gPlayerState thumb_func_start sub_08074918 sub_08074918: @ 0x08074918 @@ -2979,13 +2979,13 @@ sub_08074918: @ 0x08074918 bl sub_08079C30 cmp r0, #0 beq _08074934 - ldr r1, _08074938 @ =gLinkState + ldr r1, _08074938 @ =gPlayerState movs r0, #0x11 strb r0, [r1, #0xc] _08074934: pop {r4, pc} .align 2, 0 -_08074938: .4byte gLinkState +_08074938: .4byte gPlayerState thumb_func_start sub_0807493C sub_0807493C: @ 0x0807493C @@ -3007,12 +3007,12 @@ _08074952: movs r2, #0 orrs r0, r1 strh r0, [r4, #0x32] - ldr r0, _08074968 @ =gLinkState + ldr r0, _08074968 @ =gPlayerState strb r2, [r0, #0x12] _08074966: pop {r4, pc} .align 2, 0 -_08074968: .4byte gLinkState +_08074968: .4byte gPlayerState thumb_func_start sub_0807496C sub_0807496C: @ 0x0807496C @@ -3022,7 +3022,7 @@ sub_0807496C: @ 0x0807496C adds r3, r0, #0 cmp r3, #0 bne _080749A2 - ldr r0, _080749A4 @ =gLinkState + ldr r0, _080749A4 @ =gPlayerState strb r3, [r0, #2] ldrb r2, [r4, #0x19] movs r1, #0x3f @@ -3040,11 +3040,11 @@ sub_0807496C: @ 0x0807496C adds r1, #0x38 movs r0, #3 strb r0, [r1] - bl ResetLink + bl ResetPlayer _080749A2: pop {r4, pc} .align 2, 0 -_080749A4: .4byte gLinkState +_080749A4: .4byte gPlayerState thumb_func_start sub_080749A8 sub_080749A8: @ 0x080749A8 @@ -3064,12 +3064,12 @@ _080749BE: ands r0, r1 movs r1, #0 strh r0, [r4, #0x32] - ldr r0, _080749D0 @ =gLinkState + ldr r0, _080749D0 @ =gPlayerState strb r1, [r0, #0x12] _080749CE: pop {r4, pc} .align 2, 0 -_080749D0: .4byte gLinkState +_080749D0: .4byte gPlayerState thumb_func_start sub_080749D4 sub_080749D4: @ 0x080749D4 @@ -3095,7 +3095,7 @@ sub_080749D4: @ 0x080749D4 adds r1, #0x38 movs r0, #3 strb r0, [r1] - ldr r5, _08074A2C @ =gLinkState + ldr r5, _08074A2C @ =gPlayerState adds r0, r5, #0 adds r0, #0x26 strb r3, [r0] @@ -3116,7 +3116,7 @@ sub_080749D4: @ 0x080749D4 strb r0, [r4, #0x15] b _08074A3C .align 2, 0 -_08074A2C: .4byte gLinkState +_08074A2C: .4byte gPlayerState _08074A30: .4byte 0x000002D3 _08074A34: movs r1, #0 @@ -3124,7 +3124,7 @@ _08074A34: strh r0, [r5, #8] strb r1, [r4, #0x15] _08074A3C: - bl ResetLink + bl ResetPlayer _08074A40: pop {r4, r5, pc} .align 2, 0 @@ -3134,7 +3134,7 @@ _08074A44: .4byte 0x000002D6 sub_08074A48: @ 0x08074A48 push {r4, r5, lr} adds r4, r0, #0 - ldr r5, _08074A90 @ =gLinkState + ldr r5, _08074A90 @ =gPlayerState adds r0, r5, #0 adds r0, #0x26 ldrb r1, [r0] @@ -3142,7 +3142,7 @@ sub_08074A48: @ 0x08074A48 ands r0, r1 cmp r0, #0 beq _08074A86 - ldr r0, _08074A94 @ =gLinkEntity + ldr r0, _08074A94 @ =gPlayerEntity movs r1, #0 movs r2, #0x54 movs r3, #0 @@ -3165,8 +3165,8 @@ _08074A86: bl sub_0807479C pop {r4, r5, pc} .align 2, 0 -_08074A90: .4byte gLinkState -_08074A94: .4byte gLinkEntity +_08074A90: .4byte gPlayerState +_08074A94: .4byte gPlayerEntity thumb_func_start nullsub_504 nullsub_504: @ 0x08074A98 @@ -3180,7 +3180,7 @@ sub_08074A9C: @ 0x08074A9C bl sub_080741C4 cmp r0, #0 bne _08074AF0 - ldr r2, _08074AE0 @ =gLinkState + ldr r2, _08074AE0 @ =gPlayerState adds r0, r2, #0 adds r0, #0x80 ldrh r1, [r0] @@ -3208,7 +3208,7 @@ _08074ACA: bl CreateObjectWithParent b _08074AF0 .align 2, 0 -_08074AE0: .4byte gLinkState +_08074AE0: .4byte gPlayerState _08074AE4: adds r0, r4, #0 movs r1, #0x21 @@ -3223,14 +3223,14 @@ _08074AF0: sub_08074AF4: @ 0x08074AF4 push {lr} adds r3, r0, #0 - ldr r1, _08074B04 @ =gLinkState + ldr r1, _08074B04 @ =gPlayerState ldrb r0, [r1, #0x1e] cmp r0, #0 bne _08074B08 ldrb r2, [r1, #0xd] b _08074B0C .align 2, 0 -_08074B04: .4byte gLinkState +_08074B04: .4byte gPlayerState _08074B08: ldrb r0, [r3, #0x14] lsls r2, r0, #2 @@ -3245,7 +3245,7 @@ _08074B0C: sub_08074B18: @ 0x08074B18 push {r4, r5, lr} adds r5, r0, #0 - ldr r4, _08074B40 @ =gLinkState + ldr r4, _08074B40 @ =gPlayerState ldrb r0, [r4, #0x14] cmp r0, #0 bne _08074B48 @@ -3261,7 +3261,7 @@ sub_08074B18: @ 0x08074B18 bl sub_08074200 b _08074B48 .align 2, 0 -_08074B40: .4byte gLinkState +_08074B40: .4byte gPlayerState _08074B44: movs r0, #0x1a strb r0, [r4, #0xc] @@ -3276,7 +3276,7 @@ sub_08074B4C: @ 0x08074B4C bl sub_080741C4 cmp r0, #0 bne _08074B6E - ldr r0, _08074B70 @ =gLinkState + ldr r0, _08074B70 @ =gPlayerState ldr r1, [r0, #0x30] movs r0, #0x80 ands r1, r0 @@ -3289,7 +3289,7 @@ sub_08074B4C: @ 0x08074B4C _08074B6E: pop {r4, pc} .align 2, 0 -_08074B70: .4byte gLinkState +_08074B70: .4byte gPlayerState thumb_func_start sub_08074B74 sub_08074B74: @ 0x08074B74 @@ -3298,7 +3298,7 @@ sub_08074B74: @ 0x08074B74 bl sub_080741C4 cmp r0, #0 bne _08074B9A - ldr r0, _08074B9C @ =gLinkState + ldr r0, _08074B9C @ =gPlayerState ldr r0, [r0, #0x30] movs r1, #0x80 ands r0, r1 @@ -3313,7 +3313,7 @@ sub_08074B74: @ 0x08074B74 _08074B9A: pop {r4, pc} .align 2, 0 -_08074B9C: .4byte gLinkState +_08074B9C: .4byte gPlayerState thumb_func_start sub_08074BA0 sub_08074BA0: @ 0x08074BA0 @@ -3322,7 +3322,7 @@ sub_08074BA0: @ 0x08074BA0 bl sub_080741C4 cmp r0, #0 bne _08074BC6 - ldr r0, _08074BC8 @ =gLinkState + ldr r0, _08074BC8 @ =gPlayerState ldr r0, [r0, #0x30] movs r1, #0x80 ands r0, r1 @@ -3337,7 +3337,7 @@ sub_08074BA0: @ 0x08074BA0 _08074BC6: pop {r4, pc} .align 2, 0 -_08074BC8: .4byte gLinkState +_08074BC8: .4byte gPlayerState thumb_func_start sub_08074BCC sub_08074BCC: @ 0x08074BCC @@ -3346,7 +3346,7 @@ sub_08074BCC: @ 0x08074BCC bl sub_080741C4 cmp r0, #0 bne _08074BF2 - ldr r0, _08074BF4 @ =gLinkState + ldr r0, _08074BF4 @ =gPlayerState ldr r0, [r0, #0x30] movs r1, #0x80 ands r0, r1 @@ -3361,13 +3361,13 @@ sub_08074BCC: @ 0x08074BCC _08074BF2: pop {r4, pc} .align 2, 0 -_08074BF4: .4byte gLinkState +_08074BF4: .4byte gPlayerState thumb_func_start sub_08074BF8 sub_08074BF8: @ 0x08074BF8 push {r4, lr} adds r4, r0, #0 - bl ResetLink + bl ResetPlayer adds r2, r4, #0 adds r2, #0x29 ldrb r1, [r2] @@ -3378,7 +3378,7 @@ sub_08074BF8: @ 0x08074BF8 movs r0, #0xa0 lsls r0, r0, #1 strh r0, [r4, #0x24] - ldr r1, _08074C40 @ =gLinkState + ldr r1, _08074C40 @ =gPlayerState ldr r0, [r1, #0x30] movs r2, #0x80 lsls r2, r2, #0x12 @@ -3399,7 +3399,7 @@ sub_08074BF8: @ 0x08074BF8 bl sub_0806F69C pop {r4, pc} .align 2, 0 -_08074C40: .4byte gLinkState +_08074C40: .4byte gPlayerState thumb_func_start sub_08074C44 sub_08074C44: @ 0x08074C44 @@ -3428,7 +3428,7 @@ sub_08074C68: @ 0x08074C68 adds r6, #0x68 movs r2, #0 strb r2, [r6] - ldr r5, _08074CA0 @ =gLinkState + ldr r5, _08074CA0 @ =gPlayerState adds r0, r5, #0 adds r0, #0x38 ldrb r3, [r0] @@ -3448,7 +3448,7 @@ sub_08074C68: @ 0x08074C68 bl sub_08074CF8 b _08074CF2 .align 2, 0 -_08074CA0: .4byte gLinkState +_08074CA0: .4byte gPlayerState _08074CA4: .4byte gUnk_02022750 _08074CA8: ldrb r1, [r4, #0x18] @@ -3632,7 +3632,7 @@ _08074DE0: _08074DEA: b _08074EF0 _08074DEC: - ldr r2, _08074E00 @ =gLinkState + ldr r2, _08074E00 @ =gPlayerState ldr r0, [r2, #0x30] movs r1, #8 ands r0, r1 @@ -3643,12 +3643,12 @@ _08074DEC: strh r0, [r2, #8] b _08074EF0 .align 2, 0 -_08074E00: .4byte gLinkState +_08074E00: .4byte gPlayerState _08074E04: strh r7, [r2, #8] b _08074EF0 _08074E08: - ldr r2, _08074E1C @ =gLinkState + ldr r2, _08074E1C @ =gPlayerState ldr r0, [r2, #0x30] movs r1, #8 ands r0, r1 @@ -3658,7 +3658,7 @@ _08074E08: strh r0, [r2, #8] b _08074EF0 .align 2, 0 -_08074E1C: .4byte gLinkState +_08074E1C: .4byte gPlayerState _08074E20: .4byte 0x00000404 _08074E24: movs r0, #0x82 @@ -3666,7 +3666,7 @@ _08074E24: strh r0, [r2, #8] b _08074EF0 _08074E2C: - ldr r1, _08074E3C @ =gLinkState + ldr r1, _08074E3C @ =gPlayerState ldr r0, [r1, #0x30] ands r0, r2 cmp r0, #0 @@ -3674,7 +3674,7 @@ _08074E2C: ldr r0, _08074E40 @ =0x0000041C b _08074E46 .align 2, 0 -_08074E3C: .4byte gLinkState +_08074E3C: .4byte gPlayerState _08074E40: .4byte 0x0000041C _08074E44: ldr r0, _08074E50 @ =0x0000080C @@ -3831,13 +3831,13 @@ sub_08074F44: @ 0x08074F44 ldrb r1, [r0] adds r1, #1 strb r1, [r0] - ldr r0, _08074F74 @ =gLinkEntity + ldr r0, _08074F74 @ =gPlayerEntity ldr r0, [r0, #0x6c] cmp r0, #0 beq _08074F5A bl DeleteEntity _08074F5A: - ldr r2, _08074F78 @ =gLinkState + ldr r2, _08074F78 @ =gPlayerState adds r0, r2, #0 adds r0, #0x39 ldrb r0, [r0] @@ -3851,8 +3851,8 @@ _08074F5A: str r0, [r2, #0x30] b _08074F84 .align 2, 0 -_08074F74: .4byte gLinkEntity -_08074F78: .4byte gLinkState +_08074F74: .4byte gPlayerEntity +_08074F78: .4byte gPlayerState _08074F7C: .4byte 0x0000073B _08074F80: ldr r0, _08074F88 @ =0x00000737 @@ -3894,7 +3894,7 @@ _08074FAC: strb r0, [r4, #0xe] movs r0, #4 strb r0, [r4, #0x14] - ldr r1, _08074FE0 @ =gLinkState + ldr r1, _08074FE0 @ =gPlayerState adds r0, r1, #0 adds r0, #0x39 ldrb r0, [r0] @@ -3905,7 +3905,7 @@ _08074FAC: b _08074FE8 .align 2, 0 _08074FDC: .4byte gUnk_02033280 -_08074FE0: .4byte gLinkState +_08074FE0: .4byte gPlayerState _08074FE4: movs r0, #0x80 lsls r0, r0, #1 @@ -3932,14 +3932,14 @@ sub_08074FEC: @ 0x08074FEC strb r0, [r1] movs r0, #4 strb r0, [r4, #0xe] - ldr r0, _08075018 @ =gLinkState + ldr r0, _08075018 @ =gPlayerState adds r0, #0x3a ldrb r0, [r0] strb r0, [r4, #0x14] _08075016: pop {r4, pc} .align 2, 0 -_08075018: .4byte gLinkState +_08075018: .4byte gPlayerState thumb_func_start sub_0807501C sub_0807501C: @ 0x0807501C @@ -3951,7 +3951,7 @@ sub_0807501C: @ 0x0807501C lsls r0, r0, #0x18 cmp r0, #0 bne _08075086 - ldr r1, _08075044 @ =gLinkState + ldr r1, _08075044 @ =gPlayerState adds r0, r1, #0 adds r0, #0x3a ldrb r0, [r0] @@ -3964,7 +3964,7 @@ sub_0807501C: @ 0x0807501C ldr r0, _08075048 @ =0x0000041C b _0807504E .align 2, 0 -_08075044: .4byte gLinkState +_08075044: .4byte gPlayerState _08075048: .4byte 0x0000041C _0807504C: ldr r0, _08075088 @ =0x0000080C @@ -4016,7 +4016,7 @@ sub_0807508C: @ 0x0807508C bl sub_0806F69C b _080750F2 _080750AA: - ldr r2, _080750BC @ =gLinkState + ldr r2, _080750BC @ =gPlayerState adds r0, r2, #0 adds r0, #0x39 ldrb r0, [r0] @@ -4026,7 +4026,7 @@ _080750AA: lsls r0, r0, #3 b _080750CE .align 2, 0 -_080750BC: .4byte gLinkState +_080750BC: .4byte gPlayerState _080750C0: ldr r0, [r2, #0x30] movs r1, #9 @@ -4082,7 +4082,7 @@ sub_08075110: @ 0x08075110 ldrb r1, [r0, #0x14] strb r1, [r0, #0xf] strb r3, [r0, #0x14] - ldr r2, _08075134 @ =gLinkState + ldr r2, _08075134 @ =gPlayerState ldr r0, _08075138 @ =0x00000734 strh r0, [r2, #8] ldr r0, [r2, #0x30] @@ -4092,7 +4092,7 @@ sub_08075110: @ 0x08075110 str r0, [r2, #0x30] bx lr .align 2, 0 -_08075134: .4byte gLinkState +_08075134: .4byte gPlayerState _08075138: .4byte 0x00000734 thumb_func_start sub_0807513C @@ -4151,13 +4151,13 @@ sub_0807518C: @ 0x0807518C ldrb r0, [r1] adds r0, #1 strb r0, [r1] - ldr r1, _080751AC @ =gLinkState + ldr r1, _080751AC @ =gPlayerState ldr r0, _080751B0 @ =0x000003C9 strh r0, [r1, #8] _080751AA: pop {pc} .align 2, 0 -_080751AC: .4byte gLinkState +_080751AC: .4byte gPlayerState _080751B0: .4byte 0x000003C9 thumb_func_start sub_080751B4 @@ -4180,14 +4180,14 @@ sub_080751B4: @ 0x080751B4 adds r0, r4, #0 adds r0, #0x68 strb r1, [r0] - ldr r1, _080751E4 @ =gLinkState + ldr r1, _080751E4 @ =gPlayerState movs r0, #0x80 lsls r0, r0, #1 strh r0, [r1, #8] _080751E2: pop {r4, pc} .align 2, 0 -_080751E4: .4byte gLinkState +_080751E4: .4byte gPlayerState thumb_func_start sub_080751E8 sub_080751E8: @ 0x080751E8 @@ -4200,10 +4200,10 @@ sub_080751E8: @ 0x080751E8 movs r1, #0x24 bl _DmaZero str r6, [r4] - ldr r0, _08075234 @ =gLinkEntity + ldr r0, _08075234 @ =gPlayerEntity adds r0, #0x84 str r4, [r0] - ldr r2, _08075238 @ =gLinkState + ldr r2, _08075238 @ =gPlayerState movs r1, #0 movs r0, #0x1c strb r0, [r2, #0xc] @@ -4227,14 +4227,14 @@ sub_080751E8: @ 0x080751E8 b _08075244 .align 2, 0 _08075230: .4byte gUnk_02022750 -_08075234: .4byte gLinkEntity -_08075238: .4byte gLinkState +_08075234: .4byte gPlayerEntity +_08075238: .4byte gPlayerState _0807523C: .4byte gUnk_08009ECC _08075240: strb r4, [r3] ldr r6, _08075290 @ =gUnk_08009EF0 _08075244: - ldr r0, _08075294 @ =gLinkState + ldr r0, _08075294 @ =gPlayerState adds r0, #0x39 ldrb r0, [r0] movs r1, #0 @@ -4248,14 +4248,14 @@ _08075252: adds r4, r0, #0 cmp r4, #0 beq _08075270 - ldr r0, _08075298 @ =gLinkEntity + ldr r0, _08075298 @ =gPlayerEntity adds r1, r4, #0 bl CopyPosition adds r0, r4, #0 adds r1, r6, #0 bl StartCutscene _08075270: - ldr r4, _08075298 @ =gLinkEntity + ldr r4, _08075298 @ =gPlayerEntity movs r1, #0xe rsbs r1, r1, #0 movs r2, #0x1c @@ -4271,8 +4271,8 @@ _0807528C: pop {r4, r5, r6, r7, pc} .align 2, 0 _08075290: .4byte gUnk_08009EF0 -_08075294: .4byte gLinkState -_08075298: .4byte gLinkEntity +_08075294: .4byte gPlayerState +_08075298: .4byte gPlayerEntity thumb_func_start sub_0807529C sub_0807529C: @ 0x0807529C @@ -4345,7 +4345,7 @@ DebugItem: @ 0x08075300 thumb_func_start Sword Sword: @ 0x08075314 push {lr} - ldr r2, _08075330 @ =gLinkState + ldr r2, _08075330 @ =gPlayerState adds r2, #0xa8 movs r3, #2 strb r3, [r2] @@ -4357,7 +4357,7 @@ Sword: @ 0x08075314 bl _call_via_r2 pop {pc} .align 2, 0 -_08075330: .4byte gLinkState +_08075330: .4byte gPlayerState _08075334: .4byte gUnk_0811BD44 thumb_func_start sub_08075338 @@ -4365,7 +4365,7 @@ sub_08075338: @ 0x08075338 push {r4, r5, r6, r7, lr} adds r5, r0, #0 adds r7, r1, #0 - ldr r4, _0807536C @ =gLinkState + ldr r4, _0807536C @ =gPlayerState ldr r1, [r4, #0x30] movs r3, #0x80 adds r0, r1, #0 @@ -4386,7 +4386,7 @@ sub_08075338: @ 0x08075338 bl PlaySFX b _080754B4 .align 2, 0 -_0807536C: .4byte gLinkState +_0807536C: .4byte gPlayerState _08075370: ldrb r2, [r4, #2] cmp r2, #0 @@ -4400,7 +4400,7 @@ _08075370: ands r0, r2 cmp r0, #0 bne _080753E4 - ldr r3, _080753D4 @ =gLinkEntity + ldr r3, _080753D4 @ =gPlayerEntity ldr r1, [r3, #0x20] ldr r0, _080753D8 @ =0x00017FFF cmp r1, r0 @@ -4437,10 +4437,10 @@ _08075370: bl sub_08075898 b _080754B4 .align 2, 0 -_080753D4: .4byte gLinkEntity +_080753D4: .4byte gPlayerEntity _080753D8: .4byte 0x00017FFF _080753DC: - ldr r2, _080753F0 @ =gLinkEntity + ldr r2, _080753F0 @ =gPlayerEntity ldr r0, [r2, #0x34] cmp r0, #0 beq _080753F4 @@ -4450,7 +4450,7 @@ _080753E4: bl sub_080759B8 b _080754B4 .align 2, 0 -_080753F0: .4byte gLinkEntity +_080753F0: .4byte gPlayerEntity _080753F4: movs r6, #0x80 lsls r6, r6, #0xb @@ -4552,7 +4552,7 @@ sub_080754B8: @ 0x080754B8 push {r4, r5, r6, r7, lr} adds r4, r0, #0 adds r6, r1, #0 - ldr r7, _080754D4 @ =gLinkState + ldr r7, _080754D4 @ =gPlayerState ldrb r1, [r7, #0x1b] movs r0, #0x80 ands r0, r1 @@ -4563,7 +4563,7 @@ sub_080754B8: @ 0x080754B8 bl sub_08075694 b _0807557E .align 2, 0 -_080754D4: .4byte gLinkState +_080754D4: .4byte gPlayerState _080754D8: ldrb r0, [r7, #4] cmp r0, #0 @@ -4578,7 +4578,7 @@ _080754D8: ands r0, r1 strb r0, [r4, #9] _080754F2: - ldr r0, _0807552C @ =gLinkEntity + ldr r0, _0807552C @ =gPlayerEntity adds r0, #0x5b ldrb r1, [r0] movs r0, #1 @@ -4605,7 +4605,7 @@ _080754F2: movs r0, #5 b _08075536 .align 2, 0 -_0807552C: .4byte gLinkEntity +_0807552C: .4byte gPlayerEntity _08075530: adds r1, r7, #0 adds r1, #0xab @@ -4619,7 +4619,7 @@ _08075538: ands r0, r1 cmp r0, #0 beq _0807557E - ldr r1, _08075568 @ =gLinkState + ldr r1, _08075568 @ =gPlayerState ldr r0, [r1, #0x30] ands r0, r2 cmp r0, #0 @@ -4637,7 +4637,7 @@ _0807555C: bl sub_080759B8 b _0807557E .align 2, 0 -_08075568: .4byte gLinkState +_08075568: .4byte gPlayerState _0807556C: adds r0, r4, #0 adds r1, r6, #0 @@ -4658,7 +4658,7 @@ sub_08075580: @ 0x08075580 bl sub_08077EFC cmp r0, #0 beq _080755E6 - ldr r2, _080755C8 @ =gLinkState + ldr r2, _080755C8 @ =gPlayerState ldrb r3, [r2, #2] cmp r3, #0 bne _080755E6 @@ -4687,7 +4687,7 @@ sub_08075580: @ 0x08075580 movs r0, #0x28 b _080755CE .align 2, 0 -_080755C8: .4byte gLinkState +_080755C8: .4byte gPlayerState _080755CC: movs r0, #0x50 _080755CE: @@ -4720,7 +4720,7 @@ sub_080755F0: @ 0x080755F0 bl sub_08077EC8 cmp r0, #0 bne _0807564A - ldr r2, _08075634 @ =gLinkState + ldr r2, _08075634 @ =gPlayerState ldrb r3, [r2, #0x1b] ldrb r0, [r2, #4] orrs r0, r3 @@ -4743,7 +4743,7 @@ sub_080755F0: @ 0x080755F0 strb r0, [r2, #0x1b] b _0807564A .align 2, 0 -_08075634: .4byte gLinkState +_08075634: .4byte gPlayerState _08075638: adds r0, r4, #0 adds r1, r5, #0 @@ -4761,7 +4761,7 @@ sub_0807564C: @ 0x0807564C push {r4, r5, r6, lr} adds r4, r0, #0 adds r6, r1, #0 - ldr r5, _08075668 @ =gLinkState + ldr r5, _08075668 @ =gPlayerState ldrb r1, [r5, #0x1b] ldrb r0, [r5, #4] orrs r0, r1 @@ -4772,7 +4772,7 @@ sub_0807564C: @ 0x0807564C bl sub_080759B8 b _08075692 .align 2, 0 -_08075668: .4byte gLinkState +_08075668: .4byte gPlayerState _0807566C: adds r0, r4, #0 bl sub_08077EC8 @@ -4801,7 +4801,7 @@ sub_08075694: @ 0x08075694 adds r5, r1, #0 movs r3, #1 strb r3, [r4, #7] - ldr r2, _080756C4 @ =gLinkState + ldr r2, _080756C4 @ =gPlayerState ldr r1, [r2, #0x30] movs r0, #0x80 lsls r0, r0, #0x14 @@ -4819,7 +4819,7 @@ sub_08075694: @ 0x08075694 bl sub_08077DF4 b _080756E0 .align 2, 0 -_080756C4: .4byte gLinkState +_080756C4: .4byte gPlayerState _080756C8: .4byte 0xF7FFFFFF _080756CC: .4byte 0xFFFBFFFF _080756D0: @@ -4831,7 +4831,7 @@ _080756D0: adds r0, r4, #0 bl sub_08077DF4 _080756E0: - ldr r2, _08075730 @ =gLinkState + ldr r2, _08075730 @ =gPlayerState movs r0, #8 asrs r0, r5 ldrb r1, [r2, #0xa] @@ -4841,7 +4841,7 @@ _080756E0: strb r0, [r4, #4] movs r0, #6 strb r0, [r4, #0xf] - ldr r0, _08075734 @ =gLinkEntity + ldr r0, _08075734 @ =gPlayerEntity adds r0, #0x40 movs r1, #0x1e strb r1, [r0] @@ -4870,15 +4870,15 @@ _08075726: bl PlaySFX pop {r4, r5, pc} .align 2, 0 -_08075730: .4byte gLinkState -_08075734: .4byte gLinkEntity +_08075730: .4byte gPlayerState +_08075734: .4byte gPlayerEntity thumb_func_start sub_08075738 sub_08075738: @ 0x08075738 push {r4, r5, r6, r7, lr} adds r4, r0, #0 adds r6, r1, #0 - ldr r5, _08075750 @ =gLinkState + ldr r5, _08075750 @ =gPlayerState ldrb r0, [r5, #4] cmp r0, #0 bne _08075754 @@ -4886,7 +4886,7 @@ sub_08075738: @ 0x08075738 bl sub_080759B8 b _0807588C .align 2, 0 -_08075750: .4byte gLinkState +_08075750: .4byte gPlayerState _08075754: adds r0, r4, #0 bl UpdateItemAnim @@ -4910,7 +4910,7 @@ _08075768: bne _08075780 strb r1, [r4, #0xb] _08075780: - ldr r1, _080757D0 @ =gLinkEntity + ldr r1, _080757D0 @ =gPlayerEntity ldrb r0, [r4, #0xb] strb r0, [r1, #0x15] movs r0, #0xc0 @@ -4952,9 +4952,9 @@ _080757C6: bl sub_080759B8 b _0807588C .align 2, 0 -_080757D0: .4byte gLinkEntity +_080757D0: .4byte gPlayerEntity _080757D4: - ldr r7, _08075890 @ =gLinkEntity + ldr r7, _08075890 @ =gPlayerEntity adds r0, r7, #0 adds r0, #0x5b ldrb r1, [r0] @@ -4987,7 +4987,7 @@ _080757D4: orrs r1, r0 strb r1, [r2, #0x14] _08075816: - ldr r5, _08075890 @ =gLinkEntity + ldr r5, _08075890 @ =gPlayerEntity adds r0, r5, #0 adds r0, #0x5b ldrb r1, [r0] @@ -4995,7 +4995,7 @@ _08075816: ands r0, r1 cmp r0, #0 beq _0807587A - ldr r2, _08075894 @ =gLinkState + ldr r2, _08075894 @ =gPlayerState ldrb r3, [r2, #0x1b] movs r0, #0x80 ands r0, r3 @@ -5048,14 +5048,14 @@ _0807587A: _0807588C: pop {r4, r5, r6, r7, pc} .align 2, 0 -_08075890: .4byte gLinkEntity -_08075894: .4byte gLinkState +_08075890: .4byte gPlayerEntity +_08075894: .4byte gPlayerState thumb_func_start sub_08075898 sub_08075898: @ 0x08075898 push {lr} adds r2, r0, #0 - ldr r0, _080758AC @ =gLinkState + ldr r0, _080758AC @ =gPlayerState ldrb r0, [r0, #4] cmp r0, #0 bne _080758AA @@ -5064,13 +5064,13 @@ sub_08075898: @ 0x08075898 _080758AA: pop {pc} .align 2, 0 -_080758AC: .4byte gLinkState +_080758AC: .4byte gPlayerState thumb_func_start sub_080758B0 sub_080758B0: @ 0x080758B0 push {r4, r5, lr} adds r4, r0, #0 - ldr r5, _080758C4 @ =gLinkState + ldr r5, _080758C4 @ =gPlayerState ldrb r0, [r5, #4] cmp r0, #0 bne _080758C8 @@ -5078,7 +5078,7 @@ sub_080758B0: @ 0x080758B0 bl sub_080759B8 b _080758F8 .align 2, 0 -_080758C4: .4byte gLinkState +_080758C4: .4byte gPlayerState _080758C8: adds r0, r4, #0 bl UpdateItemAnim @@ -5100,7 +5100,7 @@ _080758EA: movs r0, #5 _080758EC: strb r0, [r4, #4] - ldr r2, _080758FC @ =gLinkState + ldr r2, _080758FC @ =gPlayerState ldrb r1, [r2, #0x1b] movs r0, #0xf7 ands r0, r1 @@ -5108,14 +5108,14 @@ _080758EC: _080758F8: pop {r4, r5, pc} .align 2, 0 -_080758FC: .4byte gLinkState +_080758FC: .4byte gPlayerState thumb_func_start sub_08075900 sub_08075900: @ 0x08075900 push {r4, r5, r6, lr} adds r4, r0, #0 adds r6, r1, #0 - ldr r5, _08075920 @ =gLinkState + ldr r5, _08075920 @ =gPlayerState ldrb r0, [r5, #0x12] cmp r0, #0x11 bne _08075928 @@ -5128,7 +5128,7 @@ sub_08075900: @ 0x08075900 bl sub_080759B8 b _080759B2 .align 2, 0 -_08075920: .4byte gLinkState +_08075920: .4byte gPlayerState _08075924: .4byte 0xFFFBFFFF _08075928: adds r0, r4, #0 @@ -5159,7 +5159,7 @@ _08075948: adds r0, r4, #0 bl sub_08077DF4 _08075962: - ldr r4, _08075990 @ =gLinkEntity + ldr r4, _08075990 @ =gPlayerEntity ldrb r0, [r4, #0x14] lsrs r0, r0, #1 lsls r0, r0, #3 @@ -5180,7 +5180,7 @@ _08075962: bl CreateFx b _080759B2 .align 2, 0 -_08075990: .4byte gLinkEntity +_08075990: .4byte gPlayerEntity _08075994: .4byte gScreenTransition _08075998: ldrb r1, [r4, #0xe] @@ -5205,13 +5205,13 @@ sub_080759B8: @ 0x080759B8 push {r4, lr} adds r3, r0, #0 adds r4, r1, #0 - ldr r2, _080759E8 @ =gLinkState + ldr r2, _080759E8 @ =gPlayerState ldr r1, [r2, #0x30] movs r0, #0x80 ands r1, r0 cmp r1, #0 bne _080759D0 - ldr r0, _080759EC @ =gLinkEntity + ldr r0, _080759EC @ =gPlayerEntity adds r0, #0x40 strb r1, [r0] _080759D0: @@ -5227,8 +5227,8 @@ _080759D0: bl sub_08077E78 pop {r4, pc} .align 2, 0 -_080759E8: .4byte gLinkState -_080759EC: .4byte gLinkEntity +_080759E8: .4byte gPlayerState +_080759EC: .4byte gPlayerEntity _080759F0: .4byte 0xF7FFFFFF thumb_func_start Lantern @@ -5252,7 +5252,7 @@ sub_08075A0C: @ 0x08075A0C ldrb r0, [r4, #1] bl IsItemEquipped adds r6, r0, #0 - ldr r1, _08075A64 @ =gLinkState + ldr r1, _08075A64 @ =gPlayerState ldrb r0, [r1, #5] cmp r0, #0 bne _08075A3E @@ -5274,7 +5274,7 @@ _08075A3E: movs r0, #0xf adds r1, r6, #0 bl ForceEquipItem - ldr r0, _08075A64 @ =gLinkState + ldr r0, _08075A64 @ =gPlayerState ldr r1, [r0, #0x30] ldr r2, _08075A68 @ =0xFF7FFFFF ands r1, r2 @@ -5287,7 +5287,7 @@ _08075A3E: bl sub_08077E78 b _08075AD0 .align 2, 0 -_08075A64: .4byte gLinkState +_08075A64: .4byte gPlayerState _08075A68: .4byte 0xFF7FFFFF _08075A6C: ldrb r1, [r4, #9] @@ -5299,7 +5299,7 @@ _08075A6C: bl sub_08077D38 adds r0, r4, #0 bl sub_08077BD4 - ldr r5, _08075AD4 @ =gLinkEntity + ldr r5, _08075AD4 @ =gPlayerEntity adds r0, r5, #0 bl sub_0806F948 movs r0, #0x10 @@ -5338,7 +5338,7 @@ _08075A6C: _08075AD0: pop {r4, r5, r6, pc} .align 2, 0 -_08075AD4: .4byte gLinkEntity +_08075AD4: .4byte gPlayerEntity _08075AD8: .4byte gUnk_08126EEC thumb_func_start sub_08075ADC @@ -5346,7 +5346,7 @@ sub_08075ADC: @ 0x08075ADC push {r4, r5, lr} adds r4, r0, #0 adds r5, r1, #0 - ldr r2, _08075B44 @ =gLinkState + ldr r2, _08075B44 @ =gPlayerState ldr r0, [r2, #0x2c] cmp r0, #0 bne _08075B08 @@ -5370,7 +5370,7 @@ _08075B08: ldrb r0, [r4, #4] adds r0, #1 strb r0, [r4, #4] - ldr r3, _08075B44 @ =gLinkState + ldr r3, _08075B44 @ =gPlayerState ldr r0, [r3, #0x30] movs r1, #0x80 lsls r1, r1, #0x10 @@ -5395,7 +5395,7 @@ _08075B08: bl PlaySFX b _08075B52 .align 2, 0 -_08075B44: .4byte gLinkState +_08075B44: .4byte gPlayerState _08075B48: .4byte 0x0000013D _08075B4C: adds r0, r4, #0 @@ -5411,7 +5411,7 @@ sub_08075B54: @ 0x08075B54 push {r6, r7} adds r6, r0, #0 mov sb, r1 - ldr r5, _08075BB0 @ =gLinkState + ldr r5, _08075BB0 @ =gPlayerState ldr r0, [r5, #0x30] movs r1, #0x88 lsls r1, r1, #1 @@ -5448,15 +5448,15 @@ _08075B86: bl PlaySFX b _08075C80 .align 2, 0 -_08075BB0: .4byte gLinkState +_08075BB0: .4byte gPlayerState _08075BB4: .4byte 0xFF7FFFFF _08075BB8: - ldr r0, _08075C88 @ =gLinkState + ldr r0, _08075C88 @ =gPlayerState mov r8, r0 ldrb r0, [r0, #0xc] cmp r0, #0x18 beq _08075C80 - ldr r5, _08075C8C @ =gLinkEntity + ldr r5, _08075C8C @ =gPlayerEntity ldrb r0, [r5, #0x1e] cmp r0, #0x36 bhi _08075C80 @@ -5555,8 +5555,8 @@ _08075C80: mov sb, r4 pop {r4, r5, r6, r7, pc} .align 2, 0 -_08075C88: .4byte gLinkState -_08075C8C: .4byte gLinkEntity +_08075C88: .4byte gPlayerState +_08075C8C: .4byte gPlayerEntity _08075C90: .4byte gUnk_08126EEC _08075C94: .4byte gRoomControls _08075C98: .4byte 0x0000060C @@ -5572,7 +5572,7 @@ sub_08075C9C: @ 0x08075C9C ands r0, r1 cmp r0, #0 beq _08075CCA - ldr r0, _08075CF8 @ =gLinkEntity + ldr r0, _08075CF8 @ =gPlayerEntity ldrb r1, [r0, #0x14] movs r2, #6 ands r2, r1 @@ -5595,7 +5595,7 @@ _08075CCA: ldrb r0, [r4, #4] subs r0, #1 strb r0, [r4, #4] - ldr r2, _08075D00 @ =gLinkState + ldr r2, _08075D00 @ =gPlayerState movs r1, #8 asrs r1, r5 mvns r1, r1 @@ -5608,11 +5608,11 @@ _08075CCA: strb r1, [r2, #0xb] b _08075D0E .align 2, 0 -_08075CF8: .4byte gLinkEntity +_08075CF8: .4byte gPlayerEntity _08075CFC: .4byte gUnk_08126EEC -_08075D00: .4byte gLinkState +_08075D00: .4byte gPlayerState _08075D04: - ldr r1, _08075D10 @ =gLinkEntity + ldr r1, _08075D10 @ =gPlayerEntity adds r1, #0x7a ldrh r0, [r1] adds r0, #1 @@ -5620,7 +5620,7 @@ _08075D04: _08075D0E: pop {r4, r5, pc} .align 2, 0 -_08075D10: .4byte gLinkEntity +_08075D10: .4byte gPlayerEntity thumb_func_start sub_08075D14 sub_08075D14: @ 0x08075D14 @@ -5640,7 +5640,7 @@ sub_08075D2C: @ 0x08075D2C push {r4, r5, r6, lr} adds r4, r0, #0 adds r6, r1, #0 - ldr r5, _08075D74 @ =gLinkState + ldr r5, _08075D74 @ =gPlayerState ldrb r1, [r5, #4] movs r0, #8 ands r0, r1 @@ -5655,7 +5655,7 @@ sub_08075D2C: @ 0x08075D2C movs r0, #0xf orrs r0, r1 strb r0, [r4, #9] - ldr r0, _08075D78 @ =gLinkEntity + ldr r0, _08075D78 @ =gPlayerEntity bl sub_0806F948 adds r0, r4, #0 movs r1, #0xb @@ -5669,8 +5669,8 @@ sub_08075D2C: @ 0x08075D2C strb r0, [r5, #4] b _08075D84 .align 2, 0 -_08075D74: .4byte gLinkState -_08075D78: .4byte gLinkEntity +_08075D74: .4byte gPlayerState +_08075D78: .4byte gPlayerEntity _08075D7C: adds r0, r4, #0 adds r1, r6, #0 @@ -5684,7 +5684,7 @@ sub_08075D88: @ 0x08075D88 push {r4, r5, lr} adds r4, r0, #0 adds r5, r1, #0 - ldr r2, _08075DBC @ =gLinkState + ldr r2, _08075DBC @ =gPlayerState ldrb r1, [r2, #4] movs r3, #0x80 adds r0, r3, #0 @@ -5707,7 +5707,7 @@ sub_08075D88: @ 0x08075D88 bl sub_08078F60 b _08075DD8 .align 2, 0 -_08075DBC: .4byte gLinkState +_08075DBC: .4byte gPlayerState _08075DC0: adds r0, r4, #0 bl UpdateItemAnim @@ -5742,7 +5742,7 @@ sub_08075DF4: @ 0x08075DF4 push {r4, r5, r6, lr} adds r4, r0, #0 adds r5, r1, #0 - ldr r6, _08075E2C @ =gLinkState + ldr r6, _08075E2C @ =gPlayerState ldrb r1, [r6, #4] movs r0, #8 ands r0, r1 @@ -5752,7 +5752,7 @@ sub_08075DF4: @ 0x08075DF4 movs r0, #0x80 orrs r0, r1 strb r0, [r4, #9] - ldr r0, _08075E30 @ =gLinkEntity + ldr r0, _08075E30 @ =gPlayerEntity bl sub_0806F948 adds r0, r4, #0 bl sub_08077BB8 @@ -5765,8 +5765,8 @@ sub_08075DF4: @ 0x08075DF4 strb r0, [r1] b _08075E3C .align 2, 0 -_08075E2C: .4byte gLinkState -_08075E30: .4byte gLinkEntity +_08075E2C: .4byte gPlayerState +_08075E30: .4byte gPlayerEntity _08075E34: adds r0, r4, #0 adds r1, r5, #0 @@ -5782,7 +5782,7 @@ sub_08075E40: @ 0x08075E40 push {r7} adds r4, r0, #0 mov r8, r1 - ldr r0, _08075EA0 @ =gLinkState + ldr r0, _08075EA0 @ =gPlayerState adds r1, r0, #0 adds r1, #0x21 ldrb r1, [r1] @@ -5824,7 +5824,7 @@ sub_08075E40: @ 0x08075E40 strb r0, [r6, #0xa] b _08075EB8 .align 2, 0 -_08075EA0: .4byte gLinkState +_08075EA0: .4byte gPlayerState _08075EA4: .4byte gUnk_02002A40 _08075EA8: adds r1, r6, #0 @@ -5854,7 +5854,7 @@ sub_08075EC0: @ 0x08075EC0 beq _08075F0C cmp r5, #0 beq _08075F0C - ldr r2, _08075F08 @ =gLinkState + ldr r2, _08075F08 @ =gPlayerState ldrb r1, [r2, #4] movs r0, #0x80 ands r0, r1 @@ -5876,9 +5876,9 @@ _08075EF0: b _08075F32 .align 2, 0 _08075F04: .4byte gUnk_02002A40 -_08075F08: .4byte gLinkState +_08075F08: .4byte gPlayerState _08075F0C: - ldr r2, _08075F34 @ =gLinkState + ldr r2, _08075F34 @ =gPlayerState movs r0, #8 asrs r0, r6 ldrb r1, [r2, #0xa] @@ -5899,14 +5899,14 @@ _08075F0C: _08075F32: pop {r4, r5, r6, pc} .align 2, 0 -_08075F34: .4byte gLinkState +_08075F34: .4byte gPlayerState thumb_func_start sub_08075F38 sub_08075F38: @ 0x08075F38 push {r4, lr} adds r4, r0, #0 adds r3, r1, #0 - ldr r2, _08075F6C @ =gLinkState + ldr r2, _08075F6C @ =gPlayerState ldrb r1, [r2, #4] movs r0, #0x80 ands r0, r1 @@ -5928,7 +5928,7 @@ sub_08075F38: @ 0x08075F38 strb r0, [r4, #4] b _08075F80 .align 2, 0 -_08075F6C: .4byte gLinkState +_08075F6C: .4byte gPlayerState _08075F70: adds r1, r2, #0 adds r1, #0x21 @@ -5946,7 +5946,7 @@ sub_08075F84: @ 0x08075F84 push {r4, r5, lr} adds r4, r0, #0 adds r5, r1, #0 - ldr r2, _08075FB4 @ =gLinkState + ldr r2, _08075FB4 @ =gPlayerState ldrb r1, [r2, #4] movs r0, #0x80 ands r0, r1 @@ -5966,7 +5966,7 @@ sub_08075F84: @ 0x08075F84 bl sub_08077E3C b _08075FBE .align 2, 0 -_08075FB4: .4byte gLinkState +_08075FB4: .4byte gPlayerState _08075FB8: adds r0, r4, #0 bl UpdateItemAnim @@ -5977,7 +5977,7 @@ _08075FBE: cmp r0, #0 beq _08075FD8 _08075FC8: - ldr r0, _08075FDC @ =gLinkState + ldr r0, _08075FDC @ =gPlayerState adds r0, #0x21 movs r1, #0 strb r1, [r0] @@ -5987,7 +5987,7 @@ _08075FC8: _08075FD8: pop {r4, r5, pc} .align 2, 0 -_08075FDC: .4byte gLinkState +_08075FDC: .4byte gPlayerState thumb_func_start Bomb Bomb: @ 0x08075FE0 @@ -6007,7 +6007,7 @@ sub_08075FF8: @ 0x08075FF8 push {r4, r5, r6, r7, lr} adds r6, r0, #0 adds r7, r1, #0 - ldr r0, _08076018 @ =gLinkState + ldr r0, _08076018 @ =gPlayerState ldrb r1, [r0, #2] ldrb r0, [r0, #4] orrs r0, r1 @@ -6020,7 +6020,7 @@ sub_08075FF8: @ 0x08075FF8 bl sub_0805EB00 b _08076026 .align 2, 0 -_08076018: .4byte gLinkState +_08076018: .4byte gPlayerState _0807601C: adds r5, #1 adds r0, r4, #0 @@ -6044,7 +6044,7 @@ _08076036: adds r4, r0, #0 cmp r4, #0 beq _08076076 - ldr r0, _08076080 @ =gLinkEntity + ldr r0, _08076080 @ =gPlayerEntity ldrb r2, [r0, #0x14] movs r1, #6 ands r1, r2 @@ -6070,7 +6070,7 @@ _08076076: bl sub_08077E78 pop {r4, r5, r6, r7, pc} .align 2, 0 -_08076080: .4byte gLinkEntity +_08076080: .4byte gPlayerEntity _08076084: .4byte gUnk_0811BDAC thumb_func_start sub_08076088 @@ -6095,7 +6095,7 @@ _080760A4: strb r1, [r3, #0xd] _080760AA: str r3, [r4, #0x18] - ldr r0, _080760C4 @ =gLinkState + ldr r0, _080760C4 @ =gPlayerState ldr r0, [r0, #0x30] movs r1, #8 ands r0, r1 @@ -6106,7 +6106,7 @@ _080760AA: bl sub_08077DF4 b _080760D6 .align 2, 0 -_080760C4: .4byte gLinkState +_080760C4: .4byte gPlayerState _080760C8: .4byte 0x00000928 _080760CC: movs r1, #0xce @@ -6114,7 +6114,7 @@ _080760CC: adds r0, r4, #0 bl sub_08077DF4 _080760D6: - ldr r3, _08076130 @ =gLinkState + ldr r3, _08076130 @ =gPlayerState movs r0, #0 mov r8, r0 movs r7, #3 @@ -6127,7 +6127,7 @@ _080760D6: strb r0, [r4, #4] movs r0, #0xf strb r0, [r4, #0xf] - ldr r2, _08076134 @ =gLinkEntity + ldr r2, _08076134 @ =gPlayerEntity movs r1, #0x79 adds r1, r1, r2 mov ip, r1 @@ -6159,8 +6159,8 @@ _080760D6: strb r0, [r4, #0xf] b _0807614A .align 2, 0 -_08076130: .4byte gLinkState -_08076134: .4byte gLinkEntity +_08076130: .4byte gPlayerState +_08076134: .4byte gPlayerEntity _08076138: movs r1, #8 asrs r1, r5 @@ -6183,7 +6183,7 @@ _0807614A: bl sub_08077F50 b _080761A0 _08076162: - ldr r1, _08076194 @ =gLinkEntity + ldr r1, _08076194 @ =gPlayerEntity str r3, [r1, #0x74] movs r2, #0 strb r2, [r1, #0xf] @@ -6209,7 +6209,7 @@ _08076162: strb r0, [r4, #7] b _0807619A .align 2, 0 -_08076194: .4byte gLinkEntity +_08076194: .4byte gPlayerEntity _08076198: strb r2, [r4, #7] _0807619A: @@ -6239,7 +6239,7 @@ sub_080761C0: @ 0x080761C0 push {r4, r5, r6, lr} adds r4, r0, #0 adds r6, r1, #0 - ldr r5, _08076220 @ =gLinkState + ldr r5, _08076220 @ =gPlayerState ldrb r0, [r5, #4] cmp r0, #0 bne _080762B8 @@ -6252,7 +6252,7 @@ sub_080761C0: @ 0x080761C0 cmp r0, #0 beq _080762B8 _080761DE: - ldr r1, _08076228 @ =gLinkEntity + ldr r1, _08076228 @ =gPlayerEntity ldrb r2, [r1, #0x14] movs r0, #0x80 orrs r0, r2 @@ -6283,9 +6283,9 @@ _080761DE: bl sub_08076088 b _080762C0 .align 2, 0 -_08076220: .4byte gLinkState +_08076220: .4byte gPlayerState _08076224: .4byte 0x00001201 -_08076228: .4byte gLinkEntity +_08076228: .4byte gPlayerEntity _0807622C: .4byte gUnk_03003BE0 _08076230: str r2, [r4, #0x18] @@ -6366,20 +6366,20 @@ _080762C0: sub_080762C4: @ 0x080762C4 push {lr} str r1, [r0, #0x18] - ldr r1, _080762D4 @ =gLinkState + ldr r1, _080762D4 @ =gPlayerState strb r2, [r1, #5] adds r1, r3, #0 bl sub_08077D38 pop {pc} .align 2, 0 -_080762D4: .4byte gLinkState +_080762D4: .4byte gPlayerState thumb_func_start sub_080762D8 sub_080762D8: @ 0x080762D8 push {r4, r5, r6, r7, lr} adds r5, r0, #0 adds r6, r1, #0 - ldr r4, _08076334 @ =gLinkState + ldr r4, _08076334 @ =gPlayerState ldrb r0, [r4, #5] movs r1, #0xcf ands r1, r0 @@ -6391,7 +6391,7 @@ sub_080762D8: @ 0x080762D8 bne _080762F6 b _08076486 _080762F6: - ldr r0, _08076338 @ =gLinkEntity + ldr r0, _08076338 @ =gPlayerEntity adds r1, r0, #0 adds r1, #0x3d ldrb r1, [r1] @@ -6422,11 +6422,11 @@ _080762F6: strb r0, [r2, #0xd] b _08076376 .align 2, 0 -_08076334: .4byte gLinkState -_08076338: .4byte gLinkEntity +_08076334: .4byte gPlayerState +_08076338: .4byte gPlayerEntity _0807633C: .4byte 0x00000502 _08076340: - ldr r2, _08076364 @ =gLinkState + ldr r2, _08076364 @ =gPlayerState adds r1, r2, #0 adds r1, #0xa8 movs r0, #5 @@ -6445,7 +6445,7 @@ _0807635A: bne _08076394 b _08076380 .align 2, 0 -_08076364: .4byte gLinkState +_08076364: .4byte gPlayerState _08076368: .4byte gUnk_0200AF00 _0807636C: ldr r1, [r5, #0x18] @@ -6470,12 +6470,12 @@ _08076380: b _080763EC _08076394: ldr r1, _080763F4 @ =gUnk_0811BE38 - ldr r7, _080763F8 @ =gLinkEntity + ldr r7, _080763F8 @ =gPlayerEntity ldrb r0, [r7, #0x14] lsrs r0, r0, #1 lsls r3, r0, #1 adds r1, r3, r1 - ldr r4, _080763FC @ =gLinkState + ldr r4, _080763FC @ =gPlayerState adds r2, r4, #0 adds r2, #0x90 ldrh r0, [r1] @@ -6519,8 +6519,8 @@ _080763EC: b _08076486 .align 2, 0 _080763F4: .4byte gUnk_0811BE38 -_080763F8: .4byte gLinkEntity -_080763FC: .4byte gLinkState +_080763F8: .4byte gPlayerEntity +_080763FC: .4byte gPlayerState _08076400: ldr r0, _08076418 @ =gUnk_0811BE40 adds r0, r3, r0 @@ -6627,12 +6627,12 @@ _080764B8: ands r0, r1 cmp r0, #0 beq _08076508 - ldr r2, _080764FC @ =gLinkEntity + ldr r2, _080764FC @ =gPlayerEntity ldrb r1, [r2, #0x10] movs r0, #0x80 orrs r0, r1 strb r0, [r2, #0x10] - ldr r2, _08076500 @ =gLinkState + ldr r2, _08076500 @ =gPlayerState movs r0, #4 strb r0, [r2, #5] movs r1, #8 @@ -6652,20 +6652,20 @@ _080764B8: b _08076508 .align 2, 0 _080764F8: .4byte gScreenTransition -_080764FC: .4byte gLinkEntity -_08076500: .4byte gLinkState +_080764FC: .4byte gPlayerEntity +_08076500: .4byte gPlayerState _08076504: subs r0, #1 strb r0, [r4, #7] _08076508: - ldr r0, _08076514 @ =gLinkState + ldr r0, _08076514 @ =gPlayerState adds r0, #0xa8 movs r1, #4 strb r1, [r0] _08076510: pop {r4, r5, r6, pc} .align 2, 0 -_08076514: .4byte gLinkState +_08076514: .4byte gPlayerState thumb_func_start sub_08076518 sub_08076518: @ 0x08076518 @@ -6677,7 +6677,7 @@ sub_08076518: @ 0x08076518 bl sub_08077F64 cmp r0, #0 beq _080765D4 - ldr r5, _0807655C @ =gLinkState + ldr r5, _0807655C @ =gPlayerState adds r1, r5, #0 adds r1, #0xa8 movs r0, #4 @@ -6690,7 +6690,7 @@ sub_08076518: @ 0x08076518 ldrb r0, [r5, #0x1f] cmp r0, #0 bne _080765D4 - ldr r6, _08076560 @ =gLinkEntity + ldr r6, _08076560 @ =gPlayerEntity adds r0, r6, #0 adds r0, #0x42 ldrb r7, [r0] @@ -6701,8 +6701,8 @@ sub_08076518: @ 0x08076518 bl sub_08077F50 b _080765D4 .align 2, 0 -_0807655C: .4byte gLinkState -_08076560: .4byte gLinkEntity +_0807655C: .4byte gPlayerState +_08076560: .4byte gPlayerEntity _08076564: adds r0, r5, #0 adds r0, #0x92 @@ -6748,7 +6748,7 @@ _080765B4: adds r0, r4, #0 bl sub_08077DF4 _080765BE: - ldr r2, _080765DC @ =gLinkState + ldr r2, _080765DC @ =gPlayerState movs r1, #8 mov r0, r8 asrs r1, r0 @@ -6764,7 +6764,7 @@ _080765D4: mov r8, r3 pop {r4, r5, r6, r7, pc} .align 2, 0 -_080765DC: .4byte gLinkState +_080765DC: .4byte gPlayerState thumb_func_start sub_080765E0 sub_080765E0: @ 0x080765E0 @@ -6803,12 +6803,12 @@ sub_0807660C: @ 0x0807660C lsrs r0, r0, #0x18 cmp r0, #0xff beq _0807662C - ldr r0, _0807663C @ =gLinkState + ldr r0, _0807663C @ =gPlayerState ldrb r0, [r0, #1] cmp r0, #0 bne _0807663A _0807662C: - ldr r1, _0807663C @ =gLinkState + ldr r1, _0807663C @ =gPlayerState movs r0, #0 strb r0, [r1, #1] adds r0, r4, #0 @@ -6817,7 +6817,7 @@ _0807662C: _0807663A: pop {r4, r5, pc} .align 2, 0 -_0807663C: .4byte gLinkState +_0807663C: .4byte gPlayerState thumb_func_start RocsCape RocsCape: @ 0x08076640 @@ -6831,7 +6831,7 @@ RocsCape: @ 0x08076640 bl sub_08076758 b _08076754 _08076654: - ldr r0, _080766BC @ =gLinkState + ldr r0, _080766BC @ =gPlayerState ldr r1, [r0, #0x2c] adds r2, r0, #0 cmp r1, #0 @@ -6850,7 +6850,7 @@ _08076654: cmp r0, #1 bne _08076686 _08076678: - ldr r0, _080766C0 @ =gLinkEntity + ldr r0, _080766C0 @ =gPlayerEntity ldr r0, [r0, #0x34] cmp r0, #0 bne _08076686 @@ -6866,7 +6866,7 @@ _08076686: cmp r0, #3 bne _08076710 _08076694: - ldr r5, _080766C0 @ =gLinkEntity + ldr r5, _080766C0 @ =gPlayerEntity ldr r0, [r5, #0x34] cmp r0, #0 blt _0807674C @@ -6886,8 +6886,8 @@ _08076694: str r0, [r5, #0x20] b _0807673C .align 2, 0 -_080766BC: .4byte gLinkState -_080766C0: .4byte gLinkEntity +_080766BC: .4byte gPlayerState +_080766C0: .4byte gPlayerEntity _080766C4: ldrb r0, [r2, #0x1b] ldrb r1, [r2, #0xa] @@ -6914,7 +6914,7 @@ _080766C4: cmp r1, #1 bne _08076702 _080766F4: - ldr r0, _0807671C @ =gLinkEntity + ldr r0, _0807671C @ =gPlayerEntity ldr r0, [r0, #0x34] cmp r0, #0 bne _08076702 @@ -6935,9 +6935,9 @@ _08076710: bl sub_08076758 b _08076754 .align 2, 0 -_0807671C: .4byte gLinkEntity +_0807671C: .4byte gPlayerEntity _08076720: - ldr r1, _08076748 @ =gLinkEntity + ldr r1, _08076748 @ =gPlayerEntity ldr r0, [r1, #0x34] cmp r0, #0 blt _0807674C @@ -6957,7 +6957,7 @@ _0807673C: bl PlaySFX b _08076754 .align 2, 0 -_08076748: .4byte gLinkEntity +_08076748: .4byte gPlayerEntity _0807674C: adds r0, r3, #0 adds r1, r4, #0 @@ -6970,7 +6970,7 @@ _08076754: sub_08076758: @ 0x08076758 push {r4, r5, lr} adds r4, r0, #0 - ldr r5, _080767C0 @ =gLinkState + ldr r5, _080767C0 @ =gPlayerState movs r0, #0 strb r0, [r5, #0xe] ldrb r2, [r5, #2] @@ -6991,7 +6991,7 @@ sub_08076758: @ 0x08076758 ldrb r0, [r4, #4] cmp r0, #1 bhi _080767C8 - ldr r2, _080767C4 @ =gLinkEntity + ldr r2, _080767C4 @ =gPlayerEntity ldr r0, [r2, #0x20] cmp r0, #0 bgt _080767FE @@ -7019,22 +7019,22 @@ sub_08076758: @ 0x08076758 bl PlaySFX b _080767FE .align 2, 0 -_080767C0: .4byte gLinkState -_080767C4: .4byte gLinkEntity +_080767C0: .4byte gPlayerState +_080767C4: .4byte gPlayerEntity _080767C8: - ldr r1, _080767D4 @ =gLinkEntity + ldr r1, _080767D4 @ =gPlayerEntity adds r1, #0x7a ldrh r0, [r1] adds r0, #1 strh r0, [r1] b _080767FE .align 2, 0 -_080767D4: .4byte gLinkEntity +_080767D4: .4byte gPlayerEntity _080767D8: ldrb r0, [r4, #4] cmp r0, #1 bls _080767FE - ldr r1, _080767F4 @ =gLinkEntity + ldr r1, _080767F4 @ =gPlayerEntity adds r1, #0x7a ldrh r0, [r1] adds r0, #1 @@ -7045,7 +7045,7 @@ _080767D8: strb r0, [r5, #2] b _080767FE .align 2, 0 -_080767F4: .4byte gLinkEntity +_080767F4: .4byte gPlayerEntity _080767F8: adds r0, r4, #0 bl sub_08077E78 @@ -7060,13 +7060,13 @@ sub_08076800: @ 0x08076800 push {r6, r7} adds r6, r0, #0 mov sb, r1 - ldr r4, _0807682C @ =gLinkEntity + ldr r4, _0807682C @ =gPlayerEntity adds r0, r4, #0 adds r0, #0x7a ldrh r0, [r0] cmp r0, #0 beq _08076834 - ldr r1, _08076830 @ =gLinkState + ldr r1, _08076830 @ =gPlayerState movs r0, #0 strb r0, [r1, #0x1e] strb r0, [r1, #0xe] @@ -7075,8 +7075,8 @@ sub_08076800: @ 0x08076800 bl sub_08077E78 b _080768EC .align 2, 0 -_0807682C: .4byte gLinkEntity -_08076830: .4byte gLinkState +_0807682C: .4byte gPlayerEntity +_08076830: .4byte gPlayerState _08076834: ldrb r0, [r6, #7] subs r0, #1 @@ -7089,7 +7089,7 @@ _08076834: movs r0, #0x7d bl PlaySFX _0807684A: - ldr r2, _08076880 @ =gLinkState + ldr r2, _08076880 @ =gPlayerState ldr r0, [r2, #0x30] movs r1, #0x80 ands r0, r1 @@ -7116,7 +7116,7 @@ _0807684A: bl CreateFx b _080768DA .align 2, 0 -_08076880: .4byte gLinkState +_08076880: .4byte gPlayerState _08076884: adds r0, r4, #0 movs r1, #0x11 @@ -7180,7 +7180,7 @@ sub_080768F8: @ 0x080768F8 push {r4, r5, lr} adds r4, r0, #0 adds r5, r1, #0 - ldr r3, _08076934 @ =gLinkState + ldr r3, _08076934 @ =gPlayerState ldrb r1, [r3, #0x1c] ldrb r0, [r3, #4] orrs r1, r0 @@ -7208,7 +7208,7 @@ sub_080768F8: @ 0x080768F8 strb r0, [r4, #7] b _0807693C .align 2, 0 -_08076934: .4byte gLinkState +_08076934: .4byte gPlayerState _08076938: ldr r0, _08076950 @ =0x00000C14 strh r0, [r3, #8] @@ -7244,11 +7244,11 @@ sub_08076964: @ 0x08076964 bne _08076978 b _08076A70 _08076978: - ldr r0, _080769C4 @ =gLinkEntity + ldr r0, _080769C4 @ =gPlayerEntity ldr r7, [r0, #0x34] cmp r7, #0 bne _08076A70 - ldr r5, _080769C8 @ =gLinkState + ldr r5, _080769C8 @ =gPlayerState ldrb r0, [r5, #0x1e] cmp r0, #0 beq _08076A70 @@ -7281,8 +7281,8 @@ _080769A0: bl sub_08077E78 b _08076A7E .align 2, 0 -_080769C4: .4byte gLinkEntity -_080769C8: .4byte gLinkState +_080769C4: .4byte gPlayerEntity +_080769C8: .4byte gPlayerState _080769CC: movs r0, #0x40 strb r0, [r5, #0x1e] @@ -7344,7 +7344,7 @@ _08076A3E: strb r1, [r0] b _08076A7E _08076A46: - ldr r0, _08076A5C @ =gLinkState + ldr r0, _08076A5C @ =gPlayerState ldr r0, [r0, #0x30] movs r1, #0x80 ands r0, r1 @@ -7355,17 +7355,17 @@ _08076A46: bl sub_08077DF4 b _08076A7E .align 2, 0 -_08076A5C: .4byte gLinkState +_08076A5C: .4byte gPlayerState _08076A60: - ldr r1, _08076A6C @ =gLinkState + ldr r1, _08076A6C @ =gPlayerState movs r0, #0xc1 lsls r0, r0, #4 strh r0, [r1, #8] b _08076A7E .align 2, 0 -_08076A6C: .4byte gLinkState +_08076A6C: .4byte gPlayerState _08076A70: - ldr r1, _08076A84 @ =gLinkState + ldr r1, _08076A84 @ =gPlayerState movs r0, #0 strb r0, [r1, #0x1e] adds r0, r4, #0 @@ -7376,7 +7376,7 @@ _08076A7E: mov r8, r3 pop {r4, r5, r6, r7, pc} .align 2, 0 -_08076A84: .4byte gLinkState +_08076A84: .4byte gPlayerState thumb_func_start sub_08076A88 sub_08076A88: @ 0x08076A88 @@ -7386,7 +7386,7 @@ sub_08076A88: @ 0x08076A88 bl sub_08077EFC cmp r0, #0 beq _08076B64 - ldr r1, _08076AB4 @ =gLinkState + ldr r1, _08076AB4 @ =gPlayerState ldrb r0, [r1, #0x1e] adds r3, r1, #0 cmp r0, #0 @@ -7396,15 +7396,15 @@ sub_08076A88: @ 0x08076A88 ands r0, r1 cmp r0, #0 bne _08076ABC - ldr r1, _08076AB8 @ =gLinkEntity + ldr r1, _08076AB8 @ =gPlayerEntity movs r0, #0xc0 lsls r0, r0, #2 b _08076AC2 .align 2, 0 -_08076AB4: .4byte gLinkState -_08076AB8: .4byte gLinkEntity +_08076AB4: .4byte gPlayerState +_08076AB8: .4byte gPlayerEntity _08076ABC: - ldr r1, _08076B00 @ =gLinkEntity + ldr r1, _08076B00 @ =gPlayerEntity movs r0, #0xa0 lsls r0, r0, #2 _08076AC2: @@ -7440,7 +7440,7 @@ _08076AC2: strb r0, [r3, #0xd] b _08076B72 .align 2, 0 -_08076B00: .4byte gLinkEntity +_08076B00: .4byte gPlayerEntity _08076B04: .4byte gUnk_0800275C _08076B08: movs r0, #1 @@ -7491,7 +7491,7 @@ _08076B52: .align 2, 0 _08076B60: .4byte gUnk_0811BE38 _08076B64: - ldr r1, _08076B74 @ =gLinkState + ldr r1, _08076B74 @ =gPlayerState movs r0, #0 strb r0, [r1, #0x1e] adds r0, r4, #0 @@ -7500,4 +7500,4 @@ _08076B64: _08076B72: pop {r4, r5, r6, r7, pc} .align 2, 0 -_08076B74: .4byte gLinkState +_08076B74: .4byte gPlayerState diff --git a/asm/code_08076C80.s b/asm/code_08076C80.s index 2b1a0501..a1d47e18 100644 --- a/asm/code_08076C80.s +++ b/asm/code_08076C80.s @@ -13,12 +13,12 @@ sub_08076DF4: @ 0x08076DF4 push {r7} adds r4, r0, #0 adds r7, r1, #0 - ldr r0, _08076E48 @ =gLinkEntity + ldr r0, _08076E48 @ =gPlayerEntity mov r8, r0 bl sub_0807A894 cmp r0, #0x29 beq _08076E50 - ldr r6, _08076E4C @ =gLinkState + ldr r6, _08076E4C @ =gPlayerState ldrb r0, [r6, #0x12] cmp r0, #0x12 beq _08076E50 @@ -48,8 +48,8 @@ sub_08076DF4: @ 0x08076DF4 bl sub_08077BB8 b _08076E58 .align 2, 0 -_08076E48: .4byte gLinkEntity -_08076E4C: .4byte gLinkState +_08076E48: .4byte gPlayerEntity +_08076E4C: .4byte gPlayerState _08076E50: adds r0, r4, #0 adds r1, r7, #0 @@ -65,7 +65,7 @@ sub_08076E60: @ 0x08076E60 push {r4, r5, r6, lr} adds r4, r0, #0 adds r6, r1, #0 - ldr r5, _08076EB4 @ =gLinkState + ldr r5, _08076EB4 @ =gPlayerState ldrb r1, [r5, #0x1c] movs r0, #0xf ands r0, r1 @@ -98,13 +98,13 @@ _08076E7A: adds r1, r0, #0 cmp r1, #0 beq _08076EC6 - ldr r0, _08076EBC @ =gLinkEntity + ldr r0, _08076EBC @ =gPlayerEntity str r0, [r1, #0x50] b _08076EC6 .align 2, 0 -_08076EB4: .4byte gLinkState +_08076EB4: .4byte gPlayerState _08076EB8: .4byte 0x00000504 -_08076EBC: .4byte gLinkEntity +_08076EBC: .4byte gPlayerEntity _08076EC0: adds r0, r4, #0 bl UpdateItemAnim @@ -116,7 +116,7 @@ sub_08076EC8: @ 0x08076EC8 push {r4, r5, r6, lr} adds r4, r0, #0 adds r6, r1, #0 - ldr r5, _08076EE4 @ =gLinkState + ldr r5, _08076EE4 @ =gPlayerState ldrb r1, [r5, #0x1c] movs r0, #0xf ands r0, r1 @@ -127,7 +127,7 @@ sub_08076EC8: @ 0x08076EC8 bl sub_08077E78 b _08076F60 .align 2, 0 -_08076EE4: .4byte gLinkState +_08076EE4: .4byte gPlayerState _08076EE8: adds r0, r4, #0 bl sub_08077EFC @@ -151,17 +151,17 @@ _08076F0C: movs r0, #1 _08076F0E: strb r0, [r5, #0x1d] - ldr r0, _08076F1C @ =gLinkEntity + ldr r0, _08076F1C @ =gPlayerEntity ldrb r0, [r0, #0xd] cmp r0, #0x1b bne _08076F24 ldr r1, _08076F20 @ =0x00000524 b _08076F36 .align 2, 0 -_08076F1C: .4byte gLinkEntity +_08076F1C: .4byte gPlayerEntity _08076F20: .4byte 0x00000524 _08076F24: - ldr r0, _08076F44 @ =gLinkState + ldr r0, _08076F44 @ =gPlayerState ldrb r1, [r0, #0xd] movs r0, #0x80 ands r0, r1 @@ -178,7 +178,7 @@ _08076F36: bl sub_08077DF4 b _08076F60 .align 2, 0 -_08076F44: .4byte gLinkState +_08076F44: .4byte gPlayerState _08076F48: adds r0, r4, #0 bl UpdateItemAnim @@ -201,7 +201,7 @@ sub_08076F64: @ 0x08076F64 push {r4, r5, r6, lr} adds r4, r0, #0 adds r6, r1, #0 - ldr r1, _08076F84 @ =gLinkState + ldr r1, _08076F84 @ =gPlayerState ldrb r0, [r1, #0x1c] movs r2, #0xf ands r2, r0 @@ -216,7 +216,7 @@ _08076F7A: ldr r0, [r0] mov pc, r0 .align 2, 0 -_08076F84: .4byte gLinkState +_08076F84: .4byte gPlayerState _08076F88: .4byte _08076F8C _08076F8C: @ jump table .4byte _08077100 @ case 0 @@ -242,7 +242,7 @@ _08076FAC: strb r0, [r4, #7] movs r1, #1 strb r1, [r3, #0x1d] - ldr r5, _08076FFC @ =gLinkEntity + ldr r5, _08076FFC @ =gPlayerEntity str r0, [r5, #0x74] strb r1, [r3, #0x1c] movs r1, #8 @@ -267,7 +267,7 @@ _08076FF6: str r5, [r0, #0x50] b _08077110 .align 2, 0 -_08076FFC: .4byte gLinkEntity +_08076FFC: .4byte gPlayerEntity _08077000: .4byte 0x00000504 _08077004: movs r0, #6 @@ -285,13 +285,13 @@ _0807700E: _0807701C: adds r0, r4, #0 bl UpdateItemAnim - ldr r0, _08077044 @ =gLinkState + ldr r0, _08077044 @ =gPlayerState ldr r0, [r0, #0x30] movs r1, #2 ands r0, r1 cmp r0, #0 bne _08077110 - ldr r0, _08077048 @ =gLinkEntity + ldr r0, _08077048 @ =gPlayerEntity ldrb r1, [r0, #0x14] lsls r1, r1, #2 movs r2, #0x10 @@ -301,10 +301,10 @@ _0807701C: bl sub_08079E08 b _08077110 .align 2, 0 -_08077044: .4byte gLinkState -_08077048: .4byte gLinkEntity +_08077044: .4byte gPlayerState +_08077048: .4byte gPlayerEntity _0807704C: - ldr r1, _080770B0 @ =gLinkState + ldr r1, _080770B0 @ =gPlayerState movs r0, #4 strb r0, [r1, #0x1c] _08077052: @@ -322,11 +322,11 @@ _08077060: ands r0, r1 cmp r0, #0 beq _0807708C - ldr r1, _080770B0 @ =gLinkState + ldr r1, _080770B0 @ =gPlayerState movs r2, #0 movs r0, #5 strb r0, [r1, #0x1c] - ldr r0, _080770B4 @ =gLinkEntity + ldr r0, _080770B4 @ =gPlayerEntity str r2, [r0, #0x70] ldrb r0, [r1, #0x1d] cmp r0, #0 @@ -336,13 +336,13 @@ _08077060: movs r3, #0 bl CreatePlayerItem _0807708C: - ldr r0, _080770B0 @ =gLinkState + ldr r0, _080770B0 @ =gPlayerState ldr r0, [r0, #0x30] movs r1, #2 ands r0, r1 cmp r0, #0 bne _08077110 - ldr r2, _080770B4 @ =gLinkEntity + ldr r2, _080770B4 @ =gPlayerEntity ldrb r0, [r2, #0x14] lsls r0, r0, #2 movs r1, #0x10 @@ -353,8 +353,8 @@ _0807708C: bl sub_08079E08 b _08077110 .align 2, 0 -_080770B0: .4byte gLinkState -_080770B4: .4byte gLinkEntity +_080770B0: .4byte gPlayerState +_080770B4: .4byte gPlayerEntity _080770B8: adds r0, r4, #0 bl UpdateItemAnim @@ -363,15 +363,15 @@ _080770B8: ands r0, r1 cmp r0, #0 beq _08077110 - ldr r3, _080770CC @ =gLinkState + ldr r3, _080770CC @ =gPlayerState b _08077100 .align 2, 0 -_080770CC: .4byte gLinkState +_080770CC: .4byte gPlayerState _080770D0: ldr r1, _080770E4 @ =0x00000514 adds r0, r4, #0 bl sub_08077DF4 - ldr r1, _080770E8 @ =gLinkState + ldr r1, _080770E8 @ =gPlayerState movs r2, #0 movs r0, #3 strb r0, [r1, #0x1c] @@ -379,7 +379,7 @@ _080770D0: b _08077110 .align 2, 0 _080770E4: .4byte 0x00000514 -_080770E8: .4byte gLinkState +_080770E8: .4byte gPlayerState _080770EC: movs r0, #3 strb r0, [r3, #0x1c] @@ -393,7 +393,7 @@ _080770FC: .4byte 0x00000514 _08077100: movs r1, #0 strb r1, [r3, #0x1c] - ldr r0, _08077114 @ =gLinkEntity + ldr r0, _08077114 @ =gPlayerEntity str r1, [r0, #0x70] adds r0, r4, #0 adds r1, r6, #0 @@ -401,7 +401,7 @@ _08077100: _08077110: pop {r4, r5, r6, pc} .align 2, 0 -_08077114: .4byte gLinkEntity +_08077114: .4byte gPlayerEntity thumb_func_start MoleMitts MoleMitts: @ 0x08077118 @@ -420,7 +420,7 @@ _0807712C: .4byte gUnk_0811BE04 sub_08077130: @ 0x08077130 push {r4, r5, r6, lr} adds r4, r0, #0 - ldr r5, _0807718C @ =gLinkState + ldr r5, _0807718C @ =gPlayerState ldrb r0, [r5, #2] cmp r0, #0 bne _080771B6 @@ -448,7 +448,7 @@ sub_08077130: @ 0x08077130 strb r0, [r4, #4] cmp r5, #0x56 bne _080771C4 - ldr r2, _08077194 @ =gLinkEntity + ldr r2, _08077194 @ =gPlayerEntity ldrb r1, [r2, #0x14] ands r0, r1 cmp r0, #0 @@ -462,9 +462,9 @@ sub_08077130: @ 0x08077130 strh r1, [r2, #0x32] b _080771C4 .align 2, 0 -_0807718C: .4byte gLinkState +_0807718C: .4byte gPlayerState _08077190: .4byte 0x0000050C -_08077194: .4byte gLinkEntity +_08077194: .4byte gPlayerEntity _08077198: ldrh r0, [r2, #0x2e] movs r1, #0x10 @@ -506,13 +506,13 @@ sub_080771C8: @ 0x080771C8 adds r0, r4, #0 adds r1, r5, #0 bl sub_08077E78 - ldr r0, _080771F0 @ =gLinkState + ldr r0, _080771F0 @ =gPlayerState adds r0, #0x3d movs r1, #0 strb r1, [r0] b _080772A4 .align 2, 0 -_080771F0: .4byte gLinkState +_080771F0: .4byte gPlayerState _080771F4: movs r0, #0x20 ands r0, r1 @@ -521,7 +521,7 @@ _080771F4: ldrb r0, [r4, #8] cmp r0, #0xff bne _0807720E - ldr r0, _08077240 @ =gLinkEntity + ldr r0, _08077240 @ =gPlayerEntity ldrb r2, [r4, #0xe] movs r1, #0x1e movs r3, #1 @@ -532,7 +532,7 @@ _0807720E: ands r0, r1 cmp r0, #0 beq _080772A4 - ldr r5, _08077240 @ =gLinkEntity + ldr r5, _08077240 @ =gPlayerEntity adds r0, r5, #0 movs r1, #0xd adds r2, r4, #0 @@ -549,7 +549,7 @@ _0807720E: bl PlaySFX b _080772A4 .align 2, 0 -_08077240: .4byte gLinkEntity +_08077240: .4byte gPlayerEntity _08077244: .4byte 0x00000107 _08077248: ldrb r0, [r4, #8] @@ -632,7 +632,7 @@ _080772C6: adds r0, r4, #0 movs r1, #2 bl sub_08077E3C - ldr r3, _080772F8 @ =gLinkEntity + ldr r3, _080772F8 @ =gPlayerEntity ldr r2, _080772FC @ =gUnk_0811BE16 ldrb r1, [r4, #0xe] adds r0, r5, #0 @@ -643,23 +643,23 @@ _080772C6: lsls r0, r0, #1 b _0807732E .align 2, 0 -_080772F8: .4byte gLinkEntity +_080772F8: .4byte gPlayerEntity _080772FC: .4byte gUnk_0811BE16 _08077300: adds r0, r4, #0 bl UpdateItemAnim - ldr r3, _08077310 @ =gLinkEntity + ldr r3, _08077310 @ =gPlayerEntity ldr r2, _08077314 @ =gUnk_0811BE16 ldrb r1, [r4, #0xe] adds r0, r5, #0 b _08077326 .align 2, 0 -_08077310: .4byte gLinkEntity +_08077310: .4byte gPlayerEntity _08077314: .4byte gUnk_0811BE16 _08077318: adds r0, r4, #0 bl UpdateItemAnim - ldr r3, _0807736C @ =gLinkEntity + ldr r3, _0807736C @ =gPlayerEntity ldr r2, _08077370 @ =gUnk_0811BE16 ldrb r1, [r4, #0xe] movs r0, #7 @@ -670,7 +670,7 @@ _08077326: ldrh r0, [r0] _0807732E: strh r0, [r3, #0x24] - ldr r5, _0807736C @ =gLinkEntity + ldr r5, _0807736C @ =gPlayerEntity ldrb r0, [r5, #0x14] lsls r0, r0, #2 strb r0, [r5, #0x15] @@ -699,19 +699,19 @@ _08077344: strb r0, [r4, #7] b _0807743E .align 2, 0 -_0807736C: .4byte gLinkEntity +_0807736C: .4byte gPlayerEntity _08077370: .4byte gUnk_0811BE16 _08077374: adds r0, r4, #0 adds r1, r6, #0 bl sub_08077E78 - ldr r0, _08077388 @ =gLinkState + ldr r0, _08077388 @ =gPlayerState adds r0, #0x3d movs r1, #0 strb r1, [r0] b _0807743E .align 2, 0 -_08077388: .4byte gLinkState +_08077388: .4byte gPlayerState _0807738C: movs r0, #0x60 ands r0, r1 @@ -809,7 +809,7 @@ sub_08077448: @ 0x08077448 push {r4, r5, lr} adds r4, r0, #0 adds r5, r1, #0 - ldr r2, _08077498 @ =gLinkEntity + ldr r2, _08077498 @ =gPlayerEntity ldrb r0, [r2, #0x14] lsls r0, r0, #2 movs r1, #0x10 @@ -835,7 +835,7 @@ _08077474: ands r0, r1 cmp r0, #0 beq _08077494 - ldr r0, _0807749C @ =gLinkState + ldr r0, _0807749C @ =gPlayerState adds r0, #0x3d movs r1, #0 strb r1, [r0] @@ -845,13 +845,13 @@ _08077474: _08077494: pop {r4, r5, pc} .align 2, 0 -_08077498: .4byte gLinkEntity -_0807749C: .4byte gLinkState +_08077498: .4byte gPlayerEntity +_0807749C: .4byte gPlayerState thumb_func_start sub_080774A0 sub_080774A0: @ 0x080774A0 push {r4, r5, r6, r7, lr} - ldr r3, _080774FC @ =gLinkEntity + ldr r3, _080774FC @ =gPlayerEntity movs r0, #0x2e ldrsh r2, [r3, r0] ldr r5, _08077500 @ =gUnk_0811BE1E @@ -896,7 +896,7 @@ _080774F6: movs r0, #0 b _0807751A .align 2, 0 -_080774FC: .4byte gLinkEntity +_080774FC: .4byte gPlayerEntity _08077500: .4byte gUnk_0811BE1E _08077504: .4byte gRoomControls _08077508: @@ -930,7 +930,7 @@ sub_08077534: @ 0x08077534 push {r4, lr} adds r4, r0, #0 bl sub_08077D38 - ldr r0, _08077570 @ =gLinkEntity + ldr r0, _08077570 @ =gPlayerEntity bl sub_0806F948 adds r0, r4, #0 bl sub_08077BB8 @@ -954,7 +954,7 @@ sub_08077534: @ 0x08077534 ldr r0, [r0] mov pc, r0 .align 2, 0 -_08077570: .4byte gLinkEntity +_08077570: .4byte gPlayerEntity _08077574: .4byte gUnk_02002A40 _08077578: .4byte _0807757C _0807757C: @ jump table @@ -986,7 +986,7 @@ _080775D0: .4byte 0x00000614 _080775D4: movs r0, #3 strb r0, [r4, #4] - ldr r1, _080775F0 @ =gLinkEntity + ldr r1, _080775F0 @ =gPlayerEntity movs r0, #4 strb r0, [r1, #0x14] ldrb r2, [r1, #0x18] @@ -998,7 +998,7 @@ _080775D4: bl sub_08077DF4 b _08077606 .align 2, 0 -_080775F0: .4byte gLinkEntity +_080775F0: .4byte gPlayerEntity _080775F4: .4byte 0x000002DF _080775F8: movs r0, #3 @@ -1008,7 +1008,7 @@ _080775F8: adds r0, r4, #0 bl sub_08077DF4 _08077606: - ldr r2, _08077614 @ =gLinkEntity + ldr r2, _08077614 @ =gPlayerEntity ldrb r1, [r2, #0x10] movs r0, #0x7f ands r0, r1 @@ -1016,7 +1016,7 @@ _08077606: _08077610: pop {r4, pc} .align 2, 0 -_08077614: .4byte gLinkEntity +_08077614: .4byte gPlayerEntity thumb_func_start sub_08077618 sub_08077618: @ 0x08077618 @@ -1052,7 +1052,7 @@ sub_08077640: @ 0x08077640 ands r0, r1 cmp r0, #0 beq _08077666 - ldr r2, _08077668 @ =gLinkEntity + ldr r2, _08077668 @ =gPlayerEntity ldrb r1, [r2, #0x10] movs r0, #0x80 orrs r0, r1 @@ -1063,7 +1063,7 @@ sub_08077640: @ 0x08077640 _08077666: pop {r4, r5, pc} .align 2, 0 -_08077668: .4byte gLinkEntity +_08077668: .4byte gPlayerEntity thumb_func_start sub_0807766C sub_0807766C: @ 0x0807766C @@ -1076,7 +1076,7 @@ sub_0807766C: @ 0x0807766C ands r0, r1 cmp r0, #0 beq _08077692 - ldr r2, _08077694 @ =gLinkEntity + ldr r2, _08077694 @ =gPlayerEntity ldrb r1, [r2, #0x10] movs r0, #0x80 orrs r0, r1 @@ -1087,13 +1087,13 @@ sub_0807766C: @ 0x0807766C _08077692: pop {r4, r5, pc} .align 2, 0 -_08077694: .4byte gLinkEntity +_08077694: .4byte gPlayerEntity thumb_func_start sub_08077698 sub_08077698: @ 0x08077698 push {r4, r5, lr} adds r4, r0, #0 - ldr r2, _0807771C @ =gLinkState + ldr r2, _0807771C @ =gPlayerState ldrb r1, [r2, #3] movs r0, #0xfe ands r0, r1 @@ -1155,7 +1155,7 @@ _08077712: bls _08077704 pop {r4, r5, pc} .align 2, 0 -_0807771C: .4byte gLinkState +_0807771C: .4byte gPlayerState _08077720: .4byte gUnk_02002A40 _08077724: .4byte gUnk_03000B80 @@ -1189,7 +1189,7 @@ _08077754: .4byte gUnk_02002A40 sub_08077758: @ 0x08077758 push {lr} adds r3, r0, #0 - ldr r2, _08077794 @ =gLinkState + ldr r2, _08077794 @ =gPlayerState ldr r1, [r2, #0x30] movs r0, #0x80 lsls r0, r0, #7 @@ -1218,7 +1218,7 @@ sub_08077758: @ 0x08077758 movs r0, #1 b _0807779E .align 2, 0 -_08077794: .4byte gLinkState +_08077794: .4byte gPlayerState _08077798: bl sub_0807A108 _0807779C: @@ -1229,7 +1229,7 @@ _0807779E: thumb_func_start sub_080777A0 sub_080777A0: @ 0x080777A0 push {r4, lr} - ldr r3, _080777D0 @ =gLinkState + ldr r3, _080777D0 @ =gPlayerState adds r0, r3, #0 adds r0, #0x92 ldrh r1, [r0] @@ -1253,7 +1253,7 @@ _080777CC: movs r0, #1 b _0807787C .align 2, 0 -_080777D0: .4byte gLinkState +_080777D0: .4byte gPlayerState _080777D4: ldr r2, _080777F4 @ =gArea ldrb r0, [r2, #0x18] @@ -1278,13 +1278,13 @@ _080777FC: ldrb r0, [r2, #0x1a] cmp r0, #0 bne _080777CC - ldr r1, _0807780C @ =gLinkEntity + ldr r1, _0807780C @ =gPlayerEntity ldrb r0, [r1, #0xd] adds r0, #1 strb r0, [r1, #0xd] b _080777CC .align 2, 0 -_0807780C: .4byte gLinkEntity +_0807780C: .4byte gPlayerEntity _08077810: ldrb r0, [r2, #0x1a] cmp r0, #0 @@ -1292,7 +1292,7 @@ _08077810: ands r1, r4 cmp r1, #0 beq _0807787A - ldr r0, _08077834 @ =gLinkEntity + ldr r0, _08077834 @ =gPlayerEntity ldrb r1, [r0, #0xd] adds r1, #1 strb r1, [r0, #0xd] @@ -1304,7 +1304,7 @@ _08077810: bl sub_0805E4E0 b _080777CC .align 2, 0 -_08077834: .4byte gLinkEntity +_08077834: .4byte gPlayerEntity _08077838: ldrb r0, [r2, #0x12] cmp r0, #0x11 @@ -1389,13 +1389,13 @@ _080778C8: .4byte gUnk_03004010 thumb_func_start sub_080778CC sub_080778CC: @ 0x080778CC push {lr} - ldr r2, _08077920 @ =gLinkState + ldr r2, _08077920 @ =gPlayerState ldr r0, [r2, #0x30] ldr r1, _08077924 @ =0x000400A0 ands r0, r1 cmp r0, #0 bne _0807791C - ldr r0, _08077928 @ =gLinkEntity + ldr r0, _08077928 @ =gPlayerEntity adds r0, #0x79 ldrb r0, [r0] cmp r0, #0 @@ -1415,7 +1415,7 @@ _080778FA: bl sub_080789A8 cmp r0, #0 bne _08077910 - ldr r0, _08077920 @ =gLinkState + ldr r0, _08077920 @ =gPlayerState adds r0, #0x90 ldrh r1, [r0] ldr r0, _0807792C @ =0x00000F03 @@ -1432,9 +1432,9 @@ _0807791C: movs r0, #0 b _08077940 .align 2, 0 -_08077920: .4byte gLinkState +_08077920: .4byte gPlayerState _08077924: .4byte 0x000400A0 -_08077928: .4byte gLinkEntity +_08077928: .4byte gPlayerEntity _0807792C: .4byte 0x00000F03 _08077930: movs r0, #0x1b @@ -1455,7 +1455,7 @@ _08077948: .4byte 0x00000145 sub_0807794C: @ 0x0807794C push {lr} adds r2, r0, #0 - ldr r0, _080779B8 @ =gLinkState + ldr r0, _080779B8 @ =gPlayerState ldrb r1, [r0, #0xc] adds r3, r0, #0 cmp r1, #0x18 @@ -1475,7 +1475,7 @@ _0807796E: ldrb r0, [r3, #2] cmp r0, #0 bne _0807797C - ldr r0, _080779BC @ =gLinkEntity + ldr r0, _080779BC @ =gPlayerEntity ldr r0, [r0, #0x34] cmp r0, #0 beq _08077980 @@ -1513,8 +1513,8 @@ _080779B2: movs r0, #0 b _080779DE .align 2, 0 -_080779B8: .4byte gLinkState -_080779BC: .4byte gLinkEntity +_080779B8: .4byte gPlayerState +_080779BC: .4byte gPlayerEntity _080779C0: .4byte gUnk_0811BE48 _080779C4: ldr r1, _080779E0 @ =gUnk_0811BE48 @@ -1572,7 +1572,7 @@ _08077A16: sub_08077A18: @ 0x08077A18 push {lr} adds r1, r0, #0 - ldr r0, _08077A3C @ =gLinkState + ldr r0, _08077A3C @ =gPlayerState ldrb r0, [r0, #5] cmp r0, #0 bne _08077A44 @@ -1588,7 +1588,7 @@ sub_08077A18: @ 0x08077A18 bl sub_080779EC b _08077A46 .align 2, 0 -_08077A3C: .4byte gLinkState +_08077A3C: .4byte gPlayerState _08077A40: .4byte gUnk_03000B80 _08077A44: movs r0, #0 @@ -1599,7 +1599,7 @@ _08077A46: sub_08077A48: @ 0x08077A48 push {r4, r5, r6, lr} adds r2, r0, #0 - ldr r6, _08077A88 @ =gLinkState + ldr r6, _08077A88 @ =gPlayerState ldrb r0, [r6, #5] cmp r0, #0 bne _08077A94 @@ -1629,7 +1629,7 @@ sub_08077A48: @ 0x08077A48 adds r0, r5, #0 b _08077A96 .align 2, 0 -_08077A88: .4byte gLinkState +_08077A88: .4byte gPlayerState _08077A8C: .4byte gUnk_0811BE48 _08077A90: .4byte gUnk_03000B80 _08077A94: @@ -1645,7 +1645,7 @@ sub_08077A98: @ 0x08077A98 ldrb r0, [r0] cmp r0, #0 beq _08077AC4 - ldr r0, _08077ABC @ =gLinkState + ldr r0, _08077ABC @ =gPlayerState ldrb r0, [r0, #5] cmp r0, #0 bne _08077AC4 @@ -1657,7 +1657,7 @@ sub_08077A98: @ 0x08077A98 b _08077AC6 .align 2, 0 _08077AB8: .4byte gUnk_02002A40 -_08077ABC: .4byte gLinkState +_08077ABC: .4byte gPlayerState _08077AC0: .4byte gUnk_03000B80 _08077AC4: movs r0, #0 @@ -1694,7 +1694,7 @@ sub_08077AEC: @ 0x08077AEC ldr r0, _08077B14 @ =gUnk_03000BD4 movs r1, #3 bl sub_08077E78 - ldr r2, _08077B18 @ =gLinkState + ldr r2, _08077B18 @ =gPlayerState ldr r0, [r2, #0x30] ldr r1, _08077B1C @ =0xFF7FFFFF ands r0, r1 @@ -1710,12 +1710,12 @@ _08077B12: pop {pc} .align 2, 0 _08077B14: .4byte gUnk_03000BD4 -_08077B18: .4byte gLinkState +_08077B18: .4byte gPlayerState _08077B1C: .4byte 0xFF7FFFFF thumb_func_start sub_08077B20 sub_08077B20: @ 0x08077B20 push {lr} - bl ResetLink + bl ResetPlayer bl sub_08077AEC pop {pc} \ No newline at end of file diff --git a/asm/code_08077B98.s b/asm/code_08077B98.s index 2b863d36..aaec6e04 100644 --- a/asm/code_08077B98.s +++ b/asm/code_08077B98.s @@ -49,7 +49,7 @@ _0807802E: _08078036: cmp r2, #0 beq _08078068 - ldr r0, _08078064 @ =gLinkState + ldr r0, _08078064 @ =gPlayerState ldrb r1, [r0, #0x1b] movs r0, #0x20 ands r0, r1 @@ -70,7 +70,7 @@ _08078036: b _0807806C .align 2, 0 _08078060: .4byte gUnk_02002A40 -_08078064: .4byte gLinkState +_08078064: .4byte gPlayerState _08078068: movs r0, #0 strb r0, [r4, #1] @@ -82,7 +82,7 @@ _0807806C: sub_08078070: @ 0x08078070 push {lr} adds r2, r0, #0 - ldr r3, _08078098 @ =gLinkState + ldr r3, _08078098 @ =gPlayerState ldrb r1, [r3, #0x1b] movs r0, #0x20 ands r0, r1 @@ -100,7 +100,7 @@ sub_08078070: @ 0x08078070 adds r0, #0xc b _080780A0 .align 2, 0 -_08078098: .4byte gLinkState +_08078098: .4byte gPlayerState _0807809C: ldrh r0, [r2, #4] adds r0, #6 @@ -142,7 +142,7 @@ _080780DA: sub_080780E0: @ 0x080780E0 push {lr} adds r2, r0, #0 - ldr r0, _080780F4 @ =gLinkState + ldr r0, _080780F4 @ =gPlayerState ldrb r1, [r0, #0x1b] movs r0, #0x40 ands r0, r1 @@ -151,7 +151,7 @@ sub_080780E0: @ 0x080780E0 movs r0, #5 b _08078102 .align 2, 0 -_080780F4: .4byte gLinkState +_080780F4: .4byte gPlayerState _080780F8: movs r0, #0x20 ands r0, r1 @@ -224,10 +224,10 @@ _0807815C: thumb_func_start sub_08078160 sub_08078160: @ 0x08078160 push {lr} - ldr r1, _08078178 @ =gLinkState + ldr r1, _08078178 @ =gPlayerState adds r1, #0xa8 strb r0, [r1] - ldr r2, _0807817C @ =gLinkEntity + ldr r2, _0807817C @ =gPlayerEntity ldrb r1, [r2, #0x10] movs r0, #0x7f ands r0, r1 @@ -235,8 +235,8 @@ sub_08078160: @ 0x08078160 bl sub_08078B48 pop {pc} .align 2, 0 -_08078178: .4byte gLinkState -_0807817C: .4byte gLinkEntity +_08078178: .4byte gPlayerState +_0807817C: .4byte gPlayerEntity thumb_func_start sub_08078180 sub_08078180: @ 0x08078180 @@ -251,7 +251,7 @@ sub_08078180: @ 0x08078180 b _080782BC _08078192: movs r4, #0 - ldr r5, _080781CC @ =gLinkState + ldr r5, _080781CC @ =gPlayerState ldrb r0, [r5, #2] cmp r0, #0 beq _0807819E @@ -282,7 +282,7 @@ _080781C4: b _080782B6 .align 2, 0 _080781C8: .4byte gUnk_0200AF00 -_080781CC: .4byte gLinkState +_080781CC: .4byte gPlayerState _080781D0: .4byte 0x00104D00 _080781D4: adds r1, r6, #0 @@ -399,7 +399,7 @@ _080782BC: thumb_func_start sub_080782C0 sub_080782C0: @ 0x080782C0 push {r4, r5, r6, lr} - ldr r1, _080782D8 @ =gLinkState + ldr r1, _080782D8 @ =gPlayerState adds r2, r1, #0 adds r2, #0xa8 ldrb r0, [r2] @@ -411,7 +411,7 @@ sub_080782C0: @ 0x080782C0 ldrb r0, [r0] b _080782DE .align 2, 0 -_080782D8: .4byte gLinkState +_080782D8: .4byte gPlayerState _080782DC: ldrb r0, [r2] _080782DE: @@ -500,7 +500,7 @@ _0807839A: beq _080783A6 b _080784AC _080783A6: - ldr r0, _08078400 @ =gLinkEntity + ldr r0, _08078400 @ =gPlayerEntity ldr r0, [r0, #0x74] ldr r0, [r0, #0x54] ldrh r1, [r0, #8] @@ -509,7 +509,7 @@ _080783A6: beq _080783B6 b _080784AC _080783B6: - ldr r2, _08078408 @ =gLinkState + ldr r2, _08078408 @ =gPlayerState adds r0, r2, #0 adds r0, #0x92 ldrh r1, [r0] @@ -546,9 +546,9 @@ _080783B6: strb r0, [r4, #0xc] b _08078420 .align 2, 0 -_08078400: .4byte gLinkEntity +_08078400: .4byte gPlayerEntity _08078404: .4byte 0x00000206 -_08078408: .4byte gLinkState +_08078408: .4byte gPlayerState _0807840C: .4byte gUnk_03003DF0 _08078410: .4byte gUnk_02002A40 _08078414: .4byte 0x0000012B @@ -667,7 +667,7 @@ sub_080784E4: @ 0x080784E4 .align 2, 0 _080784FC: .4byte gUnk_03003DF0 _08078500: - ldr r2, _08078528 @ =gLinkState + ldr r2, _08078528 @ =gPlayerState adds r0, r2, #0 adds r0, #0x27 adds r3, r2, #0 @@ -687,7 +687,7 @@ _08078500: ldrb r0, [r0] b _0807852E .align 2, 0 -_08078528: .4byte gLinkState +_08078528: .4byte gPlayerState _0807852C: ldrb r0, [r1] _0807852E: @@ -753,7 +753,7 @@ _080785C4: movs r0, #2 orrs r7, r0 _080785D2: - ldr r3, _080785E4 @ =gLinkEntity + ldr r3, _080785E4 @ =gPlayerEntity ldrb r0, [r3, #0x14] movs r1, #6 ands r1, r0 @@ -763,11 +763,11 @@ _080785D2: mov r8, r5 b _080785FE .align 2, 0 -_080785E4: .4byte gLinkEntity +_080785E4: .4byte gPlayerEntity _080785E8: .4byte gUnk_0811C00C _080785EC: .4byte gUnk_03003DF0 _080785F0: - ldr r3, _08078624 @ =gLinkEntity + ldr r3, _08078624 @ =gPlayerEntity ldrb r0, [r3, #0x14] movs r1, #6 ands r1, r0 @@ -794,7 +794,7 @@ _080785FE: ldr r5, _0807862C @ =gUnk_03003DF8 b _08078724 .align 2, 0 -_08078624: .4byte gLinkEntity +_08078624: .4byte gPlayerEntity _08078628: .4byte gUnk_0811C014 _0807862C: .4byte gUnk_03003DF8 _08078630: @@ -845,7 +845,7 @@ _08078674: @ jump table .4byte _080786A0 @ case 9 .4byte _080786D4 @ case 10 _080786A0: - ldr r0, _080786B0 @ =gLinkState + ldr r0, _080786B0 @ =gPlayerState ldr r0, [r0, #0x30] movs r1, #0x80 ands r0, r1 @@ -853,15 +853,15 @@ _080786A0: bne _08078714 b _080786D4 .align 2, 0 -_080786B0: .4byte gLinkState +_080786B0: .4byte gPlayerState _080786B4: - ldr r0, _080786C0 @ =gLinkState + ldr r0, _080786C0 @ =gPlayerState ldr r0, [r0, #0x30] movs r1, #0x80 ands r0, r1 b _080786D0 .align 2, 0 -_080786C0: .4byte gLinkState +_080786C0: .4byte gPlayerState _080786C4: ldrb r0, [r5, #3] b _080786D0 diff --git a/asm/code_08078778.s b/asm/code_08078778.s index 70aa7420..cf4104c6 100644 --- a/asm/code_08078778.s +++ b/asm/code_08078778.s @@ -186,13 +186,13 @@ sub_080789A8: @ 0x080789A8 .align 2, 0 _080789BC: .4byte gUnk_03003BE0 _080789C0: - ldr r0, _08078A5C @ =gLinkState + ldr r0, _08078A5C @ =gPlayerState ldr r0, [r0, #0x30] movs r1, #0x80 ands r0, r1 cmp r0, #0 bne _08078A56 - ldr r0, _08078A60 @ =gLinkEntity + ldr r0, _08078A60 @ =gPlayerEntity bl sub_080002D0 adds r4, r0, #0 cmp r4, #0xf @@ -205,7 +205,7 @@ _080789C0: cmp r0, #0xf beq _08078A56 _080789E6: - ldr r0, _08078A5C @ =gLinkState + ldr r0, _08078A5C @ =gPlayerState ldrb r0, [r0, #0x12] cmp r0, #0x12 beq _08078A56 @@ -215,7 +215,7 @@ _080789E6: ldrb r4, [r3, #2] cmp r4, #0 beq _08078A2E - ldr r2, _08078A60 @ =gLinkEntity + ldr r2, _08078A60 @ =gPlayerEntity ldrb r1, [r2, #0x14] movs r0, #6 ands r0, r1 @@ -239,11 +239,11 @@ _08078A0C: bne _08078A74 _08078A26: subs r4, #1 - ldr r7, _08078A60 @ =gLinkEntity + ldr r7, _08078A60 @ =gPlayerEntity cmp r4, #0 bne _08078A0C _08078A2E: - ldr r0, _08078A60 @ =gLinkEntity + ldr r0, _08078A60 @ =gPlayerEntity ldrb r1, [r0, #0x14] movs r2, #6 ands r2, r1 @@ -265,8 +265,8 @@ _08078A56: movs r0, #0 b _08078A88 .align 2, 0 -_08078A5C: .4byte gLinkState -_08078A60: .4byte gLinkEntity +_08078A5C: .4byte gPlayerState +_08078A60: .4byte gPlayerEntity _08078A64: .4byte gUnk_080084BC _08078A68: .4byte gUnk_03003BE0 _08078A6C: .4byte gUnk_0811BFE0 @@ -293,7 +293,7 @@ _08078A88: sub_08078A90: @ 0x08078A90 push {lr} adds r1, r0, #0 - ldr r0, _08078AA4 @ =gLinkState + ldr r0, _08078AA4 @ =gPlayerState adds r2, r0, #0 adds r2, #0x8b ldrb r0, [r2] @@ -303,11 +303,11 @@ sub_08078A90: @ 0x08078A90 _08078AA2: pop {pc} .align 2, 0 -_08078AA4: .4byte gLinkState +_08078AA4: .4byte gPlayerState thumb_func_start sub_08078AA8 sub_08078AA8: @ 0x08078AA8 - ldr r3, _08078AB8 @ =gLinkState + ldr r3, _08078AB8 @ =gPlayerState movs r2, #0x16 strb r2, [r3, #0xc] ldr r2, _08078ABC @ =gScreenTransition @@ -316,13 +316,13 @@ sub_08078AA8: @ 0x08078AA8 strb r1, [r2] bx lr .align 2, 0 -_08078AB8: .4byte gLinkState +_08078AB8: .4byte gPlayerState _08078ABC: .4byte gScreenTransition thumb_func_start sub_08078AC0 sub_08078AC0: @ 0x08078AC0 push {r4, lr} - ldr r3, _08078AEC @ =gLinkState + ldr r3, _08078AEC @ =gPlayerState mov ip, r3 movs r3, #0xf mov r4, ip @@ -343,12 +343,12 @@ sub_08078AC0: @ 0x08078AC0 strb r0, [r1] pop {r4, pc} .align 2, 0 -_08078AEC: .4byte gLinkState +_08078AEC: .4byte gPlayerState thumb_func_start sub_08078AF0 sub_08078AF0: @ 0x08078AF0 push {r4, lr} - ldr r3, _08078B40 @ =gLinkState + ldr r3, _08078B40 @ =gPlayerState mov ip, r3 adds r3, #0x38 movs r4, #0 @@ -370,7 +370,7 @@ sub_08078AF0: @ 0x08078AF0 movs r1, #1 mov r3, ip strb r1, [r3, #0x14] - ldr r2, _08078B44 @ =gLinkEntity + ldr r2, _08078B44 @ =gPlayerEntity str r0, [r2, #0x54] ldrb r1, [r2, #0x10] movs r0, #0x7f @@ -386,13 +386,13 @@ sub_08078AF0: @ 0x08078AF0 bl sub_0807A108 pop {r4, pc} .align 2, 0 -_08078B40: .4byte gLinkState -_08078B44: .4byte gLinkEntity +_08078B40: .4byte gPlayerState +_08078B44: .4byte gPlayerEntity thumb_func_start sub_08078B48 sub_08078B48: @ 0x08078B48 push {lr} - ldr r1, _08078B80 @ =gLinkState + ldr r1, _08078B80 @ =gPlayerState ldrb r0, [r1, #7] movs r2, #0x80 orrs r0, r2 @@ -420,7 +420,7 @@ sub_08078B48: @ 0x08078B48 ldr r0, [r0] mov pc, r0 .align 2, 0 -_08078B80: .4byte gLinkState +_08078B80: .4byte gPlayerState _08078B84: .4byte _08078B88 _08078B88: @ jump table .4byte _08078C04 @ case 0 @@ -462,7 +462,7 @@ _08078BF8: movs r0, #1 strb r0, [r2, #0x1a] _08078C04: - ldr r0, _08078C20 @ =gLinkEntity + ldr r0, _08078C20 @ =gPlayerEntity adds r0, #0x3d movs r1, #0xfe strb r1, [r0] @@ -474,12 +474,12 @@ _08078C04: .align 2, 0 _08078C18: .4byte 0xFFFBFFFF _08078C1C: .4byte gRoomVars -_08078C20: .4byte gLinkEntity +_08078C20: .4byte gPlayerEntity thumb_func_start sub_08078C24 sub_08078C24: @ 0x08078C24 push {lr} - ldr r3, _08078CAC @ =gLinkState + ldr r3, _08078CAC @ =gPlayerState movs r2, #0 strb r2, [r3] strb r2, [r3, #1] @@ -545,13 +545,13 @@ sub_08078C24: @ 0x08078C24 bl _DmaZero pop {pc} .align 2, 0 -_08078CAC: .4byte gLinkState +_08078CAC: .4byte gPlayerState _08078CB0: .4byte gUnk_03003DF0 thumb_func_start sub_08078CB4 sub_08078CB4: @ 0x08078CB4 push {lr} - ldr r0, _08078CCC @ =gLinkState + ldr r0, _08078CCC @ =gPlayerState ldrb r0, [r0, #5] subs r0, #3 lsls r0, r0, #0x18 @@ -562,7 +562,7 @@ sub_08078CB4: @ 0x08078CB4 _08078CC8: pop {pc} .align 2, 0 -_08078CCC: .4byte gLinkState +_08078CCC: .4byte gPlayerState thumb_func_start sub_08078CD0 sub_08078CD0: @ 0x08078CD0 @@ -587,7 +587,7 @@ sub_08078CD0: @ 0x08078CD0 adds r0, #0x38 strb r1, [r0] ldr r1, _08078D28 @ =gUnk_0811C01C - ldr r0, _08078D2C @ =gLinkState + ldr r0, _08078D2C @ =gPlayerState ldr r0, [r0, #0x2c] ldrb r0, [r0, #0x1e] adds r0, r0, r1 @@ -612,7 +612,7 @@ sub_08078CD0: @ 0x08078CD0 b _08078D3C .align 2, 0 _08078D28: .4byte gUnk_0811C01C -_08078D2C: .4byte gLinkState +_08078D2C: .4byte gPlayerState _08078D30: .4byte gUnk_0811C0B0 _08078D34: movs r0, #0 @@ -641,7 +641,7 @@ _08078D5E: thumb_func_start sub_08078D60 sub_08078D60: @ 0x08078D60 push {r4, r5, r6, lr} - ldr r1, _08078DCC @ =gLinkEntity + ldr r1, _08078DCC @ =gPlayerEntity ldr r0, [r1, #0x74] ldr r4, [r0, #0x54] ldrb r0, [r4, #0xc] @@ -696,7 +696,7 @@ _08078D72: adds r1, r2, #0 b _08078DE0 .align 2, 0 -_08078DCC: .4byte gLinkEntity +_08078DCC: .4byte gPlayerEntity _08078DD0: .4byte gUnk_0811C0E8 _08078DD4: adds r1, r1, r2 @@ -717,7 +717,7 @@ _08078DE0: adds r0, r5, #0 adds r1, r4, #0 bl ResolveEntityOnTop - ldr r0, _08078E34 @ =gLinkState + ldr r0, _08078E34 @ =gPlayerState ldrb r0, [r0, #5] cmp r0, #4 bne _08078E4C @@ -746,7 +746,7 @@ _08078DE0: beq _08078E44 b _08078E82 .align 2, 0 -_08078E34: .4byte gLinkState +_08078E34: .4byte gPlayerState _08078E38: .4byte gScreenTransition _08078E3C: ldrh r0, [r4, #0x2e] @@ -796,7 +796,7 @@ sub_08078E84: @ 0x08078E84 push {r4, r5, lr} adds r5, r0, #0 adds r4, r1, #0 - ldr r0, _08078ED0 @ =gLinkEntity + ldr r0, _08078ED0 @ =gPlayerEntity cmp r4, r0 bne _08078EAC adds r0, r5, #0 @@ -831,7 +831,7 @@ _08078EAC: bl sub_0806FEBC b _08078EE2 .align 2, 0 -_08078ED0: .4byte gLinkEntity +_08078ED0: .4byte gPlayerEntity _08078ED4: .4byte gUnk_080029B4 _08078ED8: adds r0, r4, #0 @@ -843,25 +843,25 @@ _08078EE2: thumb_func_start sub_08078EE4 sub_08078EE4: @ 0x08078EE4 - ldr r2, _08078EF4 @ =gLinkEntity - ldr r1, _08078EF8 @ =gLinkState + ldr r2, _08078EF4 @ =gPlayerEntity + ldr r1, _08078EF8 @ =gPlayerState ldrh r0, [r1, #0x16] strh r0, [r2, #0x2e] ldrh r0, [r1, #0x18] strh r0, [r2, #0x32] bx lr .align 2, 0 -_08078EF4: .4byte gLinkEntity -_08078EF8: .4byte gLinkState +_08078EF4: .4byte gPlayerEntity +_08078EF8: .4byte gPlayerState thumb_func_start sub_08078EFC sub_08078EFC: @ 0x08078EFC push {lr} - ldr r3, _08078F18 @ =gLinkState + ldr r3, _08078F18 @ =gPlayerState ldrb r2, [r3, #0xc] cmp r2, #0 beq _08078F20 - ldr r0, _08078F1C @ =gLinkEntity + ldr r0, _08078F1C @ =gPlayerEntity movs r1, #0 strb r2, [r0, #0xc] strb r1, [r0, #0xd] @@ -870,8 +870,8 @@ sub_08078EFC: @ 0x08078EFC movs r0, #1 b _08078F22 .align 2, 0 -_08078F18: .4byte gLinkState -_08078F1C: .4byte gLinkEntity +_08078F18: .4byte gPlayerState +_08078F1C: .4byte gPlayerEntity _08078F20: movs r0, #0 _08078F22: @@ -880,7 +880,7 @@ _08078F22: thumb_func_start sub_08078F24 sub_08078F24: @ 0x08078F24 push {r4, lr} - ldr r4, _08078F38 @ =gLinkState + ldr r4, _08078F38 @ =gPlayerState ldrb r3, [r4, #0xd] movs r0, #0x80 ands r0, r3 @@ -889,7 +889,7 @@ sub_08078F24: @ 0x08078F24 bl sub_08078F60 b _08078F5A .align 2, 0 -_08078F38: .4byte gLinkState +_08078F38: .4byte gPlayerState _08078F3C: ldr r2, _08078F5C @ =gSineTable lsls r0, r3, #4 @@ -913,7 +913,7 @@ _08078F5C: .4byte gSineTable thumb_func_start sub_08078F60 sub_08078F60: @ 0x08078F60 - ldr r0, _08078F70 @ =gLinkState + ldr r0, _08078F70 @ =gPlayerState adds r1, r0, #0 adds r1, #0x8c movs r2, #0 @@ -922,7 +922,7 @@ sub_08078F60: @ 0x08078F60 strh r2, [r0] bx lr .align 2, 0 -_08078F70: .4byte gLinkState +_08078F70: .4byte gPlayerState thumb_func_start sub_08078F74 sub_08078F74: @ 0x08078F74 @@ -932,7 +932,7 @@ sub_08078F74: @ 0x08078F74 ldrb r0, [r0, #0x18] cmp r0, #3 bne _08078FAC - ldr r3, _08078FA8 @ =gLinkState + ldr r3, _08078FA8 @ =gPlayerState adds r0, r3, #0 adds r0, #0x35 ldrb r0, [r0] @@ -951,7 +951,7 @@ sub_08078F74: @ 0x08078F74 b _08078FAE .align 2, 0 _08078FA4: .4byte gArea -_08078FA8: .4byte gLinkState +_08078FA8: .4byte gPlayerState _08078FAC: movs r0, #0 _08078FAE: @@ -961,7 +961,7 @@ _08078FAE: sub_08078FB0: @ 0x08078FB0 push {r4, r5, r6, lr} adds r4, r0, #0 - ldr r5, _08078FE0 @ =gLinkState + ldr r5, _08078FE0 @ =gPlayerState ldrb r1, [r5, #6] movs r6, #0x80 adds r0, r6, #0 @@ -983,7 +983,7 @@ _08078FCA: movs r2, #0x58 b _08078FFA .align 2, 0 -_08078FE0: .4byte gLinkState +_08078FE0: .4byte gPlayerState _08078FE4: ands r1, r6 cmp r1, #0 @@ -998,7 +998,7 @@ _08078FEE: bne _08078FFA movs r2, #0x34 _08078FFA: - ldr r0, _08079014 @ =gLinkState + ldr r0, _08079014 @ =gPlayerState adds r3, r0, #0 ldrb r1, [r0, #8] cmp r2, r1 @@ -1012,7 +1012,7 @@ _08078FFA: orrs r0, r1 b _08079020 .align 2, 0 -_08079014: .4byte gLinkState +_08079014: .4byte gPlayerState _08079018: ldrb r1, [r4, #0x18] movs r0, #0x41 @@ -1061,7 +1061,7 @@ _08079062: sub_08079064: @ 0x08079064 push {r4, r5, r6, lr} adds r6, r0, #0 - ldr r0, _0807909C @ =gLinkState + ldr r0, _0807909C @ =gPlayerState ldr r1, [r0, #0x30] ldr r2, _080790A0 @ =0x00100080 ands r1, r2 @@ -1089,7 +1089,7 @@ _08079086: strh r4, [r2, #8] b _080790DE .align 2, 0 -_0807909C: .4byte gLinkState +_0807909C: .4byte gPlayerState _080790A0: .4byte 0x00100080 _080790A4: .4byte gUnk_03000B80 _080790A8: @@ -1130,7 +1130,7 @@ _080790E0: .4byte 0x00000404 sub_080790E4: @ 0x080790E4 push {r4, r5, lr} adds r4, r0, #0 - ldr r5, _08079128 @ =gLinkState + ldr r5, _08079128 @ =gPlayerState ldrb r0, [r5, #0xb] cmp r0, #0 bne _08079182 @@ -1159,7 +1159,7 @@ sub_080790E4: @ 0x080790E4 bl PlaySFX b _08079182 .align 2, 0 -_08079128: .4byte gLinkState +_08079128: .4byte gPlayerState _0807912C: ldrb r1, [r5, #6] movs r0, #0x80 @@ -1183,7 +1183,7 @@ _08079150: subs r0, r1, #1 strb r0, [r5, #6] _08079154: - ldr r2, _08079174 @ =gLinkState + ldr r2, _08079174 @ =gPlayerState ldrb r0, [r4, #0x14] adds r1, r2, #0 adds r1, #0x35 @@ -1199,7 +1199,7 @@ _08079154: ldr r0, _08079178 @ =0x0000093C b _08079180 .align 2, 0 -_08079174: .4byte gLinkState +_08079174: .4byte gPlayerState _08079178: .4byte 0x0000093C _0807917C: movs r0, #0xcf @@ -1211,21 +1211,21 @@ _08079182: thumb_func_start sub_08079184 sub_08079184: @ 0x08079184 - ldr r0, _08079194 @ =gLinkState + ldr r0, _08079194 @ =gPlayerState movs r1, #0 strb r1, [r0, #5] strb r1, [r0, #1] - ldr r0, _08079198 @ =gLinkEntity + ldr r0, _08079198 @ =gPlayerEntity str r1, [r0, #0x74] bx lr .align 2, 0 -_08079194: .4byte gLinkState -_08079198: .4byte gLinkEntity +_08079194: .4byte gPlayerState +_08079198: .4byte gPlayerEntity thumb_func_start sub_0807919C sub_0807919C: @ 0x0807919C push {lr} - ldr r0, _080791B0 @ =gLinkState + ldr r0, _080791B0 @ =gPlayerState ldr r0, [r0, #0x30] movs r1, #0x80 ands r0, r1 @@ -1234,7 +1234,7 @@ sub_0807919C: @ 0x0807919C bl sub_080791BC b _080791B8 .align 2, 0 -_080791B0: .4byte gLinkState +_080791B0: .4byte gPlayerState _080791B4: bl sub_08079258 _080791B8: @@ -1243,7 +1243,7 @@ _080791B8: thumb_func_start sub_080791BC sub_080791BC: @ 0x080791BC - ldr r0, _080791CC @ =gLinkEntity + ldr r0, _080791CC @ =gPlayerEntity movs r2, #0 movs r1, #1 strb r1, [r0, #0xc] @@ -1251,18 +1251,18 @@ sub_080791BC: @ 0x080791BC strb r2, [r0, #0xf] bx lr .align 2, 0 -_080791CC: .4byte gLinkEntity +_080791CC: .4byte gPlayerEntity thumb_func_start sub_080791D0 sub_080791D0: @ 0x080791D0 push {lr} - ldr r3, _0807920C @ =gLinkState + ldr r3, _0807920C @ =gPlayerState ldr r0, [r3, #0x30] movs r1, #0x40 ands r0, r1 cmp r0, #0 bne _080791E8 - ldr r0, _08079210 @ =gLinkEntity + ldr r0, _08079210 @ =gPlayerEntity ldrb r1, [r0, #0x18] movs r2, #3 orrs r1, r2 @@ -1273,7 +1273,7 @@ _080791E8: ands r0, r1 cmp r0, #0 bne _08079214 - ldr r2, _08079210 @ =gLinkEntity + ldr r2, _08079210 @ =gPlayerEntity adds r2, #0x29 ldrb r1, [r2] movs r0, #0x39 @@ -1285,8 +1285,8 @@ _080791E8: bl sub_0807921C b _08079218 .align 2, 0 -_0807920C: .4byte gLinkState -_08079210: .4byte gLinkEntity +_0807920C: .4byte gPlayerState +_08079210: .4byte gPlayerEntity _08079214: bl sub_08079258 _08079218: @@ -1296,7 +1296,7 @@ _08079218: thumb_func_start sub_0807921C sub_0807921C: @ 0x0807921C push {r4, lr} - ldr r4, _0807924C @ =gLinkEntity + ldr r4, _0807924C @ =gPlayerEntity ldrb r1, [r4, #0x10] movs r0, #0x80 orrs r0, r1 @@ -1305,7 +1305,7 @@ sub_0807921C: @ 0x0807921C movs r1, #3 orrs r0, r1 strb r0, [r4, #0x18] - ldr r2, _08079250 @ =gLinkState + ldr r2, _08079250 @ =gPlayerState ldr r0, [r2, #0x30] ldr r1, _08079254 @ =0xFECBF6FA ands r0, r1 @@ -1316,18 +1316,18 @@ sub_0807921C: @ 0x0807921C bl sub_0805E374 pop {r4, pc} .align 2, 0 -_0807924C: .4byte gLinkEntity -_08079250: .4byte gLinkState +_0807924C: .4byte gPlayerEntity +_08079250: .4byte gPlayerState _08079254: .4byte 0xFECBF6FA thumb_func_start sub_08079258 sub_08079258: @ 0x08079258 push {r4, lr} - ldr r4, _080792AC @ =gLinkState + ldr r4, _080792AC @ =gPlayerState ldr r0, [r4, #0x30] movs r1, #0x40 ands r0, r1 - ldr r3, _080792B0 @ =gLinkEntity + ldr r3, _080792B0 @ =gPlayerEntity cmp r0, #0 bne _08079278 ldrb r1, [r3, #0x10] @@ -1364,31 +1364,31 @@ _08079278: bl sub_0805E374 pop {r4, pc} .align 2, 0 -_080792AC: .4byte gLinkState -_080792B0: .4byte gLinkEntity +_080792AC: .4byte gPlayerState +_080792B0: .4byte gPlayerEntity _080792B4: .4byte 0x00000C18 _080792B8: .4byte 0xFECFFEFA thumb_func_start sub_080792BC sub_080792BC: @ 0x080792BC push {r4, lr} - ldr r3, _080792D0 @ =gLinkState + ldr r3, _080792D0 @ =gPlayerState movs r4, #0x13 strb r4, [r3, #0xc] adds r3, #0x38 strb r2, [r3] - ldr r2, _080792D4 @ =gLinkEntity + ldr r2, _080792D4 @ =gPlayerEntity strh r0, [r2, #0x24] strb r1, [r2, #0x15] pop {r4, pc} .align 2, 0 -_080792D0: .4byte gLinkState -_080792D4: .4byte gLinkEntity +_080792D0: .4byte gPlayerState +_080792D4: .4byte gPlayerEntity thumb_func_start sub_080792D8 sub_080792D8: @ 0x080792D8 push {r4, r5, r6, lr} - ldr r5, _08079344 @ =gLinkEntity + ldr r5, _08079344 @ =gPlayerEntity adds r3, r5, #0 adds r3, #0x42 ldrb r0, [r3] @@ -1397,7 +1397,7 @@ sub_080792D8: @ 0x080792D8 ldrb r2, [r5, #0xc] cmp r2, #0xb beq _08079338 - ldr r0, _08079348 @ =gLinkState + ldr r0, _08079348 @ =gPlayerState ldrb r1, [r0, #0x1e] adds r6, r0, #0 cmp r1, #0 @@ -1442,8 +1442,8 @@ _08079338: strb r0, [r1] b _080793E0 .align 2, 0 -_08079344: .4byte gLinkEntity -_08079348: .4byte gLinkState +_08079344: .4byte gPlayerEntity +_08079348: .4byte gPlayerState _0807934C: cmp r2, #0x1d bne _0807935E @@ -1497,7 +1497,7 @@ _08079374: ldrb r0, [r4, #2] cmp r0, #0 bne _080793CA - bl ResetLink + bl ResetPlayer ldr r0, [r4, #0x30] movs r1, #8 ands r0, r1 @@ -1529,23 +1529,23 @@ _080793E0: sub_080793E4: @ 0x080793E4 push {r4, r5, lr} adds r5, r0, #0 - ldr r0, _080793FC @ =gLinkState + ldr r0, _080793FC @ =gPlayerState adds r0, #0x26 ldrb r0, [r0] cmp r0, #0 bne _08079408 ldr r1, _08079400 @ =gUnk_0811C0F8 - ldr r0, _08079404 @ =gLinkEntity + ldr r0, _08079404 @ =gPlayerEntity ldrb r0, [r0, #0x14] lsrs r0, r0, #1 b _08079410 .align 2, 0 -_080793FC: .4byte gLinkState +_080793FC: .4byte gPlayerState _08079400: .4byte gUnk_0811C0F8 -_08079404: .4byte gLinkEntity +_08079404: .4byte gPlayerEntity _08079408: ldr r1, _08079448 @ =gUnk_0811C0F8 - ldr r0, _0807944C @ =gLinkEntity + ldr r0, _0807944C @ =gPlayerEntity ldrb r0, [r0, #0x15] lsrs r0, r0, #2 _08079410: @@ -1555,7 +1555,7 @@ _08079410: bl sub_08079778 cmp r0, #0 beq _08079454 - ldr r0, _08079450 @ =gLinkState + ldr r0, _08079450 @ =gPlayerState adds r0, #0x90 ldrh r0, [r0] ands r0, r4 @@ -1564,7 +1564,7 @@ _08079410: cmp r5, #0 beq _08079442 bl sub_0807A500 - ldr r1, _0807944C @ =gLinkEntity + ldr r1, _0807944C @ =gPlayerEntity adds r1, #0x38 ldrb r1, [r1] adds r2, r5, #0 @@ -1576,8 +1576,8 @@ _08079442: b _08079456 .align 2, 0 _08079448: .4byte gUnk_0811C0F8 -_0807944C: .4byte gLinkEntity -_08079450: .4byte gLinkState +_0807944C: .4byte gPlayerEntity +_08079450: .4byte gPlayerState _08079454: movs r0, #0 _08079456: @@ -1586,7 +1586,7 @@ _08079456: thumb_func_start sub_08079458 sub_08079458: @ 0x08079458 push {r4, r5, lr} - ldr r4, _08079498 @ =gLinkEntity + ldr r4, _08079498 @ =gPlayerEntity movs r1, #0 movs r0, #0x19 strb r0, [r4, #0xc] @@ -1596,7 +1596,7 @@ sub_08079458: @ 0x08079458 adds r0, #0x42 strb r1, [r0] bl sub_08078EE4 - ldr r2, _0807949C @ =gLinkState + ldr r2, _0807949C @ =gPlayerState ldr r1, [r2, #0x30] movs r0, #0x80 lsls r0, r0, #0xa @@ -1617,10 +1617,10 @@ sub_08079458: @ 0x08079458 strh r0, [r4, #0x32] b _08079514 .align 2, 0 -_08079498: .4byte gLinkEntity -_0807949C: .4byte gLinkState +_08079498: .4byte gPlayerEntity +_0807949C: .4byte gPlayerState _080794A0: - ldr r2, _080794DC @ =gLinkEntity + ldr r2, _080794DC @ =gPlayerEntity ldr r0, [r4] lsrs r0, r0, #0x1e adds r1, r2, #0 @@ -1650,7 +1650,7 @@ _080794A0: strb r0, [r2, #0x10] b _08079514 .align 2, 0 -_080794DC: .4byte gLinkEntity +_080794DC: .4byte gPlayerEntity _080794E0: .4byte gRoomControls _080794E4: movs r5, #0 @@ -1678,17 +1678,17 @@ _080794F4: cmp r1, r0 bne _080794F4 _08079514: - ldr r0, _0807951C @ =gLinkEntity + ldr r0, _0807951C @ =gPlayerEntity bl UpdateSpriteForCollisionLayer pop {r4, r5, pc} .align 2, 0 -_0807951C: .4byte gLinkEntity +_0807951C: .4byte gPlayerEntity thumb_func_start sub_08079520 sub_08079520: @ 0x08079520 push {lr} adds r1, r0, #0 - ldr r0, _08079538 @ =gLinkState + ldr r0, _08079538 @ =gPlayerState ldrb r0, [r0, #0xd] cmp r0, #0x7f ble _08079532 @@ -1699,19 +1699,19 @@ _08079532: strb r0, [r1, #0x15] pop {pc} .align 2, 0 -_08079538: .4byte gLinkState +_08079538: .4byte gPlayerState thumb_func_start sub_0807953C sub_0807953C: @ 0x0807953C ldr r1, _08079548 @ =0x00000F38 - ldr r0, _0807954C @ =gLinkState + ldr r0, _0807954C @ =gPlayerState adds r0, #0x92 ldrh r0, [r0] ands r0, r1 bx lr .align 2, 0 _08079548: .4byte 0x00000F38 -_0807954C: .4byte gLinkState +_0807954C: .4byte gPlayerState thumb_func_start sub_08079550 sub_08079550: @ 0x08079550 @@ -1725,7 +1725,7 @@ sub_08079550: @ 0x08079550 beq _08079562 b _080796FC _08079562: - ldr r2, _080795AC @ =gLinkState + ldr r2, _080795AC @ =gPlayerState ldrb r0, [r2, #0x1e] cmp r0, #0 beq _08079576 @@ -1739,7 +1739,7 @@ _08079576: adds r0, r2, #0 adds r0, #0x26 ldrb r0, [r0] - ldr r1, _080795B0 @ =gLinkEntity + ldr r1, _080795B0 @ =gPlayerEntity mov r8, r1 cmp r0, #0 bne _080795A0 @@ -1764,15 +1764,15 @@ _080795A0: b _080796FE .align 2, 0 _080795A8: .4byte gUnk_03004030 -_080795AC: .4byte gLinkState -_080795B0: .4byte gLinkEntity +_080795AC: .4byte gPlayerState +_080795B0: .4byte gPlayerEntity _080795B4: bl sub_08079778 cmp r0, #0 bne _080795BE b _080796FC _080795BE: - ldr r3, _08079610 @ =gLinkEntity + ldr r3, _08079610 @ =gPlayerEntity ldrb r2, [r3, #0x14] movs r0, #6 ands r0, r2 @@ -1814,7 +1814,7 @@ _080795BE: orrs r4, r2 b _0807965E .align 2, 0 -_08079610: .4byte gLinkEntity +_08079610: .4byte gPlayerEntity _08079614: .4byte gUnk_0811C100 _08079618: .4byte gRoomControls _0807961C: @@ -1885,7 +1885,7 @@ _0807965E: adds r3, r0, #0 cmp r3, #0 beq _080796FC - ldr r1, _080796F4 @ =gLinkState + ldr r1, _080796F4 @ =gPlayerState ldrb r2, [r1, #6] movs r0, #0x80 orrs r0, r2 @@ -1902,7 +1902,7 @@ _0807965E: cmp r0, #5 bls _080796FC _080796C8: - ldr r0, _080796F8 @ =gLinkEntity + ldr r0, _080796F8 @ =gPlayerEntity subs r1, r3, #1 movs r2, #0 strb r1, [r0, #0x14] @@ -1921,8 +1921,8 @@ _080796C8: .align 2, 0 _080796EC: .4byte gRoomControls _080796F0: .4byte gUnk_0811C1E8 -_080796F4: .4byte gLinkState -_080796F8: .4byte gLinkEntity +_080796F4: .4byte gPlayerState +_080796F8: .4byte gPlayerEntity _080796FC: movs r0, #0 _080796FE: @@ -1935,7 +1935,7 @@ _080796FE: thumb_func_start sub_08079708 sub_08079708: @ 0x08079708 push {r4, lr} - ldr r4, _08079740 @ =gLinkState + ldr r4, _08079740 @ =gPlayerState adds r2, r4, #0 adds r2, #0xa8 movs r3, #0 @@ -1962,7 +1962,7 @@ sub_08079708: @ 0x08079708 _0807973E: pop {r4, pc} .align 2, 0 -_08079740: .4byte gLinkState +_08079740: .4byte gPlayerState thumb_func_start sub_08079744 sub_08079744: @ 0x08079744 @@ -2002,23 +2002,23 @@ _08079774: thumb_func_start sub_08079778 sub_08079778: @ 0x08079778 push {lr} - ldr r0, _08079790 @ =gLinkState + ldr r0, _08079790 @ =gPlayerState adds r0, #0x26 ldrb r0, [r0] cmp r0, #0 bne _0807979C ldr r2, _08079794 @ =gUnk_0811C108 - ldr r1, _08079798 @ =gLinkEntity + ldr r1, _08079798 @ =gPlayerEntity ldrb r0, [r1, #0x14] lsrs r0, r0, #1 b _080797A4 .align 2, 0 -_08079790: .4byte gLinkState +_08079790: .4byte gPlayerState _08079794: .4byte gUnk_0811C108 -_08079798: .4byte gLinkEntity +_08079798: .4byte gPlayerEntity _0807979C: ldr r2, _080797BC @ =gUnk_0811C108 - ldr r1, _080797C0 @ =gLinkEntity + ldr r1, _080797C0 @ =gPlayerEntity ldrb r0, [r1, #0x15] lsrs r0, r0, #2 _080797A4: @@ -2036,13 +2036,13 @@ _080797B6: pop {pc} .align 2, 0 _080797BC: .4byte gUnk_0811C108 -_080797C0: .4byte gLinkEntity +_080797C0: .4byte gPlayerEntity thumb_func_start sub_080797C4 sub_080797C4: @ 0x080797C4 push {lr} ldr r1, _080797E4 @ =gUnk_0811C110 - ldr r2, _080797E8 @ =gLinkEntity + ldr r2, _080797E8 @ =gPlayerEntity ldrb r0, [r2, #0x15] lsrs r0, r0, #3 lsls r0, r0, #1 @@ -2059,12 +2059,12 @@ _080797E0: pop {pc} .align 2, 0 _080797E4: .4byte gUnk_0811C110 -_080797E8: .4byte gLinkEntity +_080797E8: .4byte gPlayerEntity thumb_func_start sub_080797EC sub_080797EC: @ 0x080797EC push {r4, r5, lr} - ldr r4, _08079804 @ =gLinkState + ldr r4, _08079804 @ =gPlayerState ldr r1, [r4, #0x30] movs r0, #8 ands r0, r1 @@ -2076,7 +2076,7 @@ sub_080797EC: @ 0x080797EC ldr r5, _08079808 @ =0x00000934 b _0807991E .align 2, 0 -_08079804: .4byte gLinkState +_08079804: .4byte gPlayerState _08079808: .4byte 0x00000934 _0807980C: ldrb r0, [r4, #3] @@ -2192,7 +2192,7 @@ _080798CE: cmp r0, #0 beq _0807991E bl sub_0807A500 - ldr r1, _080798F8 @ =gLinkEntity + ldr r1, _080798F8 @ =gPlayerEntity adds r1, #0x38 ldrb r1, [r1] bl sub_080002E0 @@ -2206,7 +2206,7 @@ _080798CE: lsls r5, r5, #1 b _0807991E .align 2, 0 -_080798F8: .4byte gLinkEntity +_080798F8: .4byte gPlayerEntity _080798FC: adds r1, r4, #0 adds r1, #0xa8 @@ -2227,23 +2227,23 @@ _0807990A: movs r5, #0xc1 lsls r5, r5, #3 _0807991E: - ldr r0, _08079930 @ =gLinkState + ldr r0, _08079930 @ =gPlayerState strh r5, [r0, #8] ldrb r0, [r0, #3] cmp r0, #0 bne _0807992E - ldr r0, _08079934 @ =gLinkEntity + ldr r0, _08079934 @ =gPlayerEntity bl UpdateAnimationSingleFrame _0807992E: pop {r4, r5, pc} .align 2, 0 -_08079930: .4byte gLinkState -_08079934: .4byte gLinkEntity +_08079930: .4byte gPlayerState +_08079934: .4byte gPlayerEntity thumb_func_start sub_08079938 sub_08079938: @ 0x08079938 push {r4, lr} - ldr r3, _08079954 @ =gLinkState + ldr r3, _08079954 @ =gPlayerState ldr r2, [r3, #0x30] movs r0, #8 ands r0, r2 @@ -2256,7 +2256,7 @@ sub_08079938: @ 0x08079938 ldr r4, _08079958 @ =0x0000092C b _08079AD8 .align 2, 0 -_08079954: .4byte gLinkState +_08079954: .4byte gPlayerState _08079958: .4byte 0x0000092C _0807995C: mov r0, ip @@ -2497,22 +2497,22 @@ _08079AF0: ldrb r3, [r2] cmp r0, r3 bne _08079B10 - ldr r0, _08079B1C @ =gLinkEntity + ldr r0, _08079B1C @ =gPlayerEntity bl UpdateAnimationSingleFrame _08079B10: - ldr r0, _08079B20 @ =gLinkState + ldr r0, _08079B20 @ =gPlayerState strb r4, [r0] _08079B14: pop {r4, pc} .align 2, 0 _08079B18: .4byte gUnk_03000B80 -_08079B1C: .4byte gLinkEntity -_08079B20: .4byte gLinkState +_08079B1C: .4byte gPlayerEntity +_08079B20: .4byte gPlayerState thumb_func_start sub_08079B24 sub_08079B24: @ 0x08079B24 push {r4, r5, lr} - ldr r2, _08079B60 @ =gLinkEntity + ldr r2, _08079B60 @ =gPlayerEntity ldrb r0, [r2, #0xc] cmp r0, #0xa beq _08079BD4 @@ -2521,7 +2521,7 @@ sub_08079B24: @ 0x08079B24 ldrb r3, [r0] cmp r3, #0 bne _08079BD4 - ldr r4, _08079B64 @ =gLinkState + ldr r4, _08079B64 @ =gPlayerState ldr r1, [r4, #0x30] ldr r0, _08079B68 @ =0xFEFFFFFF ands r1, r0 @@ -2540,8 +2540,8 @@ sub_08079B24: @ 0x08079B24 bl sub_08079458 b _08079BC0 .align 2, 0 -_08079B60: .4byte gLinkEntity -_08079B64: .4byte gLinkState +_08079B60: .4byte gPlayerEntity +_08079B64: .4byte gPlayerState _08079B68: .4byte 0xFEFFFFFF _08079B6C: ldrb r0, [r4, #0x14] @@ -2588,7 +2588,7 @@ _08079BA6: strb r0, [r4, #0xa] b _08079BD4 _08079BC0: - ldr r2, _08079BD0 @ =gLinkEntity + ldr r2, _08079BD0 @ =gPlayerEntity ldrb r1, [r2, #0x10] movs r0, #0x7f ands r0, r1 @@ -2596,7 +2596,7 @@ _08079BC0: movs r0, #0 b _08079BD6 .align 2, 0 -_08079BD0: .4byte gLinkEntity +_08079BD0: .4byte gPlayerEntity _08079BD4: movs r0, #1 _08079BD6: @@ -2605,7 +2605,7 @@ _08079BD6: thumb_func_start sub_08079BD8 sub_08079BD8: @ 0x08079BD8 push {r4, r5, lr} - ldr r4, _08079C2C @ =gLinkEntity + ldr r4, _08079C2C @ =gPlayerEntity ldr r1, [r4, #0x2c] str r1, [r0, #0x2c] ldr r1, [r4, #0x30] @@ -2647,7 +2647,7 @@ sub_08079BD8: @ 0x08079BD8 strb r1, [r0] pop {r4, r5, pc} .align 2, 0 -_08079C2C: .4byte gLinkEntity +_08079C2C: .4byte gPlayerEntity thumb_func_start sub_08079C30 sub_08079C30: @ 0x08079C30 @@ -2655,7 +2655,7 @@ sub_08079C30: @ 0x08079C30 mov r7, r8 push {r7} adds r6, r0, #0 - ldr r0, _08079C68 @ =gLinkState + ldr r0, _08079C68 @ =gPlayerState ldrb r1, [r0, #0x14] adds r7, r0, #0 cmp r1, #0 @@ -2681,7 +2681,7 @@ _08079C44: ldr r0, [r0] mov pc, r0 .align 2, 0 -_08079C68: .4byte gLinkState +_08079C68: .4byte gPlayerState _08079C6C: .4byte _08079C70 _08079C70: @ jump table .4byte _08079D36 @ case 0 @@ -2763,7 +2763,7 @@ _08079D42: thumb_func_start sub_08079D48 sub_08079D48: @ 0x08079D48 push {r4, lr} - ldr r4, _08079D78 @ =gLinkEntity + ldr r4, _08079D78 @ =gPlayerEntity adds r0, r4, #0 bl sub_08079C30 cmp r0, #0 @@ -2783,7 +2783,7 @@ _08079D72: movs r0, #1 b _08079D82 .align 2, 0 -_08079D78: .4byte gLinkEntity +_08079D78: .4byte gPlayerEntity _08079D7C: .4byte gUnk_0811C268 _08079D80: movs r0, #0 @@ -2793,14 +2793,14 @@ _08079D82: thumb_func_start sub_08079D84 sub_08079D84: @ 0x08079D84 push {lr} - ldr r3, _08079DC0 @ =gLinkEntity + ldr r3, _08079DC0 @ =gPlayerEntity ldrb r0, [r3, #0xc] cmp r0, #1 beq _08079D92 cmp r0, #0x18 bne _08079DBE _08079D92: - ldr r2, _08079DC4 @ =gLinkState + ldr r2, _08079DC4 @ =gPlayerState adds r1, r2, #0 adds r1, #0x38 movs r0, #0x9c @@ -2823,18 +2823,18 @@ _08079D92: _08079DBE: pop {pc} .align 2, 0 -_08079DC0: .4byte gLinkEntity -_08079DC4: .4byte gLinkState +_08079DC0: .4byte gPlayerEntity +_08079DC4: .4byte gPlayerState _08079DC8: .4byte 0x00000193 thumb_func_start sub_08079DCC sub_08079DCC: @ 0x08079DCC push {lr} - ldr r0, _08079DFC @ =gLinkEntity + ldr r0, _08079DFC @ =gPlayerEntity ldrb r0, [r0, #0xc] cmp r0, #1 bne _08079DF8 - ldr r3, _08079E00 @ =gLinkState + ldr r3, _08079E00 @ =gPlayerState adds r1, r3, #0 adds r1, #0x38 movs r2, #0 @@ -2853,21 +2853,21 @@ sub_08079DCC: @ 0x08079DCC _08079DF8: pop {pc} .align 2, 0 -_08079DFC: .4byte gLinkEntity -_08079E00: .4byte gLinkState +_08079DFC: .4byte gPlayerEntity +_08079E00: .4byte gPlayerState _08079E04: .4byte 0x00000193 thumb_func_start sub_08079E08 sub_08079E08: @ 0x08079E08 push {r4, lr} - ldr r0, _08079E50 @ =gLinkEntity + ldr r0, _08079E50 @ =gPlayerEntity ldrh r2, [r0, #0x24] movs r3, #0x24 ldrsh r1, [r0, r3] adds r4, r0, #0 cmp r1, #0 beq _08079E2E - ldr r0, _08079E54 @ =gLinkState + ldr r0, _08079E54 @ =gPlayerState adds r0, #0x80 ldrh r0, [r0] adds r0, r2, r0 @@ -2894,15 +2894,15 @@ _08079E40: bl sub_0807A5B8 pop {r4, pc} .align 2, 0 -_08079E50: .4byte gLinkEntity -_08079E54: .4byte gLinkState +_08079E50: .4byte gPlayerEntity +_08079E54: .4byte gPlayerState thumb_func_start sub_08079E58 sub_08079E58: @ 0x08079E58 push {r4, r5, r6, lr} adds r6, r0, #0 adds r4, r1, #0 - ldr r5, _08079E8C @ =gLinkEntity + ldr r5, _08079E8C @ =gPlayerEntity ldrb r1, [r5, #0x15] movs r0, #4 ands r0, r1 @@ -2923,7 +2923,7 @@ _08079E70: bl sub_0807A5B8 pop {r4, r5, r6, pc} .align 2, 0 -_08079E8C: .4byte gLinkEntity +_08079E8C: .4byte gPlayerEntity thumb_func_start sub_08079E90 sub_08079E90: @ 0x08079E90 @@ -2932,7 +2932,7 @@ sub_08079E90: @ 0x08079E90 mov r6, r8 push {r6, r7} mov sb, r0 - ldr r1, _08079EBC @ =gLinkEntity + ldr r1, _08079EBC @ =gPlayerEntity ldrb r2, [r1, #0x15] movs r0, #8 ands r0, r2 @@ -2950,7 +2950,7 @@ sub_08079E90: @ 0x08079E90 lsrs r5, r0, #0x10 b _08079EC4 .align 2, 0 -_08079EBC: .4byte gLinkEntity +_08079EBC: .4byte gPlayerEntity _08079EC0: ldr r0, [r7, #0x48] ldrb r5, [r0, #2] @@ -3000,7 +3000,7 @@ _08079F10: lsls r0, r0, #0x10 lsrs r5, r0, #0x10 _08079F18: - ldr r0, _08079F38 @ =gLinkEntity + ldr r0, _08079F38 @ =gPlayerEntity lsls r1, r5, #0x10 asrs r1, r1, #0x10 lsls r2, r4, #0x10 @@ -3014,7 +3014,7 @@ _08079F18: movs r0, #0 b _08079F3E .align 2, 0 -_08079F38: .4byte gLinkEntity +_08079F38: .4byte gPlayerEntity _08079F3C: movs r0, #1 _08079F3E: @@ -3033,13 +3033,13 @@ sub_08079F48: @ 0x08079F48 ldrb r0, [r0] cmp r0, r1 bne _08079F68 - ldr r0, _08079F64 @ =gLinkEntity + ldr r0, _08079F64 @ =gPlayerEntity ldrb r1, [r0, #0x15] adds r1, #4 b _08079F7C .align 2, 0 _08079F60: .4byte gUnk_0811C118 -_08079F64: .4byte gLinkEntity +_08079F64: .4byte gPlayerEntity _08079F68: adds r0, r2, #1 adds r0, r0, r3 @@ -3049,7 +3049,7 @@ _08079F68: movs r0, #0 b _08079F84 _08079F76: - ldr r0, _08079F88 @ =gLinkEntity + ldr r0, _08079F88 @ =gPlayerEntity ldrb r1, [r0, #0x15] subs r1, #4 _08079F7C: @@ -3060,12 +3060,12 @@ _08079F7C: _08079F84: pop {pc} .align 2, 0 -_08079F88: .4byte gLinkEntity +_08079F88: .4byte gPlayerEntity thumb_func_start sub_08079F8C sub_08079F8C: @ 0x08079F8C push {lr} - ldr r2, _08079FB4 @ =gLinkState + ldr r2, _08079FB4 @ =gPlayerState ldr r0, [r2, #0x30] ldr r1, _08079FB8 @ =0x22189B75 ands r0, r1 @@ -3076,7 +3076,7 @@ sub_08079F8C: @ 0x08079F8C ldrb r0, [r0] cmp r0, #0 bne _08079FB0 - ldr r0, _08079FBC @ =gLinkEntity + ldr r0, _08079FBC @ =gPlayerEntity ldrb r0, [r0, #0xc] cmp r0, #3 beq _08079FB0 @@ -3086,9 +3086,9 @@ _08079FB0: movs r0, #0 b _08079FC2 .align 2, 0 -_08079FB4: .4byte gLinkState +_08079FB4: .4byte gPlayerState _08079FB8: .4byte 0x22189B75 -_08079FBC: .4byte gLinkEntity +_08079FBC: .4byte gPlayerEntity _08079FC0: movs r0, #1 _08079FC2: @@ -3098,11 +3098,11 @@ _08079FC2: sub_08079FC4: @ 0x08079FC4 push {lr} adds r1, r0, #0 - ldr r0, _08079FD0 @ =gLinkEntity + ldr r0, _08079FD0 @ =gPlayerEntity bl sub_08079FD4 pop {pc} .align 2, 0 -_08079FD0: .4byte gLinkEntity +_08079FD0: .4byte gPlayerEntity thumb_func_start sub_08079FD4 sub_08079FD4: @ 0x08079FD4 @@ -3173,7 +3173,7 @@ _0807A04C: .4byte gUnk_080082DC thumb_func_start sub_0807A050 sub_0807A050: @ 0x0807A050 push {lr} - ldr r3, _0807A088 @ =gLinkState + ldr r3, _0807A088 @ =gPlayerState ldrb r2, [r3, #0xf] cmp r2, #0 beq _0807A06A @@ -3189,27 +3189,27 @@ _0807A06A: movs r0, #0 bl sub_0807A094 adds r1, r0, #0 - ldr r0, _0807A088 @ =gLinkState + ldr r0, _0807A088 @ =gPlayerState adds r0, #0x83 ldrb r2, [r0] cmp r1, r2 beq _0807A084 strb r1, [r0] - ldr r0, _0807A090 @ =gLinkEntity + ldr r0, _0807A090 @ =gPlayerEntity bl sub_0801D2B4 _0807A084: pop {pc} .align 2, 0 -_0807A088: .4byte gLinkState +_0807A088: .4byte gPlayerState _0807A08C: .4byte gTextBox -_0807A090: .4byte gLinkEntity +_0807A090: .4byte gPlayerEntity thumb_func_start sub_0807A094 sub_0807A094: @ 0x0807A094 push {r4, r5, lr} adds r3, r0, #0 movs r2, #0x16 - ldr r0, _0807A0AC @ =gLinkState + ldr r0, _0807A0AC @ =gPlayerState ldrb r0, [r0, #0xf] cmp r0, #0 beq _0807A0B0 @@ -3219,7 +3219,7 @@ sub_0807A094: @ 0x0807A094 movs r2, #0x1a b _0807A104 .align 2, 0 -_0807A0AC: .4byte gLinkState +_0807A0AC: .4byte gPlayerState _0807A0B0: ldr r0, _0807A0F0 @ =gUnk_02002A40 adds r1, r0, #0 @@ -3279,12 +3279,12 @@ sub_0807A108: @ 0x0807A108 str r0, [r1] str r0, [r1, #4] str r0, [r1, #8] - ldr r2, _0807A14C @ =gLinkState + ldr r2, _0807A14C @ =gPlayerState ldr r0, [r2, #0x30] ldr r1, _0807A150 @ =0xFFBFFFFF ands r0, r1 str r0, [r2, #0x30] - ldr r0, _0807A154 @ =gLinkEntity + ldr r0, _0807A154 @ =gPlayerEntity ldrb r0, [r0, #0xc] cmp r0, #0x17 bne _0807A130 @@ -3308,9 +3308,9 @@ _0807A144: pop {pc} .align 2, 0 _0807A148: .4byte gUnk_03004040 -_0807A14C: .4byte gLinkState +_0807A14C: .4byte gPlayerState _0807A150: .4byte 0xFFBFFFFF -_0807A154: .4byte gLinkEntity +_0807A154: .4byte gPlayerEntity thumb_func_start sub_0807A158 sub_0807A158: @ 0x0807A158 @@ -3366,12 +3366,12 @@ _0807A1B4: .4byte 0xFFFC0000 thumb_func_start sub_0807A1B8 sub_0807A1B8: @ 0x0807A1B8 push {r4, lr} - ldr r4, _0807A1DC @ =gLinkEntity + ldr r4, _0807A1DC @ =gPlayerEntity adds r0, r4, #0 movs r1, #0 movs r2, #0 bl sub_0807A1E8 - ldr r1, _0807A1E0 @ =gLinkState + ldr r1, _0807A1E0 @ =gPlayerState strb r0, [r1, #0x12] ldr r2, _0807A1E4 @ =gUnk_0811C120 ldrb r0, [r1, #0x12] @@ -3382,8 +3382,8 @@ sub_0807A1B8: @ 0x0807A1B8 bl _call_via_r1 pop {r4, pc} .align 2, 0 -_0807A1DC: .4byte gLinkEntity -_0807A1E0: .4byte gLinkState +_0807A1DC: .4byte gPlayerEntity +_0807A1E0: .4byte gPlayerState _0807A1E4: .4byte gUnk_0811C120 thumb_func_start sub_0807A1E8 @@ -3412,12 +3412,12 @@ sub_0807A1E8: @ 0x0807A1E8 ands r2, r3 lsls r2, r2, #6 orrs r4, r2 - ldr r2, _0807A28C @ =gLinkEntity + ldr r2, _0807A28C @ =gPlayerEntity adds r2, #0x38 ldrb r2, [r2] bl GetTileTypeByPos adds r2, r0, #0 - ldr r1, _0807A290 @ =gLinkState + ldr r1, _0807A290 @ =gPlayerState ldrh r0, [r1, #0x24] cmp r2, r0 beq _0807A23A @@ -3434,7 +3434,7 @@ _0807A23A: cmp r4, r0 beq _0807A24E _0807A242: - ldr r0, _0807A290 @ =gLinkState + ldr r0, _0807A290 @ =gPlayerState movs r1, #0 strh r4, [r0, #0x22] strh r2, [r0, #0x24] @@ -3471,8 +3471,8 @@ _0807A26A: pop {r4, r5, r6, r7, pc} .align 2, 0 _0807A288: .4byte gRoomControls -_0807A28C: .4byte gLinkEntity -_0807A290: .4byte gLinkState +_0807A28C: .4byte gPlayerEntity +_0807A290: .4byte gPlayerState _0807A294: .4byte gUnk_08007CAC thumb_func_start sub_0807A298 @@ -3483,7 +3483,7 @@ sub_0807A298: @ 0x0807A298 movs r2, #3 orrs r1, r2 strb r1, [r0, #0x18] - ldr r2, _0807A2B4 @ =gLinkState + ldr r2, _0807A2B4 @ =gPlayerState ldr r0, [r2, #0x30] movs r1, #0x41 rsbs r1, r1, #0 @@ -3491,7 +3491,7 @@ sub_0807A298: @ 0x0807A298 str r0, [r2, #0x30] bx lr .align 2, 0 -_0807A2B4: .4byte gLinkState +_0807A2B4: .4byte gPlayerState thumb_func_start sub_0807A2B8 sub_0807A2B8: @ 0x0807A2B8 @@ -3502,13 +3502,13 @@ sub_0807A2B8: @ 0x0807A2B8 movs r0, #1 b _0807A2EC _0807A2C6: - ldr r0, _0807A2F0 @ =gLinkState + ldr r0, _0807A2F0 @ =gPlayerState ldrb r1, [r0, #2] movs r0, #0xc8 ands r0, r1 cmp r0, #0 bne _0807A2EA - ldr r1, _0807A2F4 @ =gLinkEntity + ldr r1, _0807A2F4 @ =gPlayerEntity adds r0, r1, #0 adds r0, #0x38 ldrb r0, [r0] @@ -3524,8 +3524,8 @@ _0807A2EA: _0807A2EC: pop {pc} .align 2, 0 -_0807A2F0: .4byte gLinkState -_0807A2F4: .4byte gLinkEntity +_0807A2F0: .4byte gPlayerState +_0807A2F4: .4byte gPlayerEntity thumb_func_start sub_0807A2F8 sub_0807A2F8: @ 0x0807A2F8 @@ -3549,7 +3549,7 @@ _0807A312: bne _0807A31E b _0807A4F2 _0807A31E: - ldr r7, _0807A368 @ =gLinkEntity + ldr r7, _0807A368 @ =gPlayerEntity ldrb r1, [r7, #0x14] movs r0, #2 ands r0, r1 @@ -3585,7 +3585,7 @@ _0807A31E: b _0807A3A2 .align 2, 0 _0807A364: .4byte gRoomControls -_0807A368: .4byte gLinkEntity +_0807A368: .4byte gPlayerEntity _0807A36C: movs r1, #0x2e ldrsh r3, [r7, r1] @@ -3617,7 +3617,7 @@ _0807A36C: _0807A3A2: movs r0, #0 mov sb, r0 - ldr r1, _0807A3F4 @ =gLinkEntity + ldr r1, _0807A3F4 @ =gPlayerEntity mov sl, r1 _0807A3AA: movs r2, #0 @@ -3653,13 +3653,13 @@ _0807A3AA: beq _0807A468 b _0807A400 .align 2, 0 -_0807A3F4: .4byte gLinkEntity +_0807A3F4: .4byte gPlayerEntity _0807A3F8: .4byte gUnk_0811C1D8 _0807A3FC: movs r0, #1 mov r8, r0 _0807A400: - ldr r5, _0807A444 @ =gLinkEntity + ldr r5, _0807A444 @ =gPlayerEntity adds r0, r5, #0 mov r1, sp adds r2, r6, #0 @@ -3690,7 +3690,7 @@ _0807A400: beq _0807A468 b _0807A450 .align 2, 0 -_0807A444: .4byte gLinkEntity +_0807A444: .4byte gPlayerEntity _0807A448: .4byte gUnk_0811C1D8 _0807A44C: movs r0, #1 @@ -3717,7 +3717,7 @@ _0807A46E: bl CheckIsDungeon cmp r0, #0 beq _0807A4B0 - ldr r4, _0807A4AC @ =gLinkEntity + ldr r4, _0807A4AC @ =gPlayerEntity adds r0, r4, #0 mov r1, sp adds r2, r7, #0 @@ -3741,12 +3741,12 @@ _0807A4A0: beq _0807A4EC b _0807A4F2 .align 2, 0 -_0807A4AC: .4byte gLinkEntity +_0807A4AC: .4byte gPlayerEntity _0807A4B0: mov r0, sb cmp r0, #2 bne _0807A4C2 - ldr r0, _0807A4E8 @ =gLinkEntity + ldr r0, _0807A4E8 @ =gPlayerEntity mov r1, sp adds r2, r7, #0 bl sub_08004202 @@ -3760,7 +3760,7 @@ _0807A4C2: mov r1, sb cmp r1, #2 bne _0807A4E0 - ldr r0, _0807A4E8 @ =gLinkEntity + ldr r0, _0807A4E8 @ =gPlayerEntity mov r1, sp adds r2, r6, #0 bl sub_08004202 @@ -3770,7 +3770,7 @@ _0807A4E0: movs r1, #1 b _0807A4A0 .align 2, 0 -_0807A4E8: .4byte gLinkEntity +_0807A4E8: .4byte gPlayerEntity _0807A4EC: mov r0, sb adds r0, #1 @@ -3788,7 +3788,7 @@ _0807A4F4: thumb_func_start sub_0807A500 sub_0807A500: @ 0x0807A500 push {r4, r5, r6, lr} - ldr r6, _0807A518 @ =gLinkEntity + ldr r6, _0807A518 @ =gPlayerEntity ldrb r0, [r6, #0x14] lsrs r0, r0, #1 cmp r0, #1 @@ -3799,7 +3799,7 @@ sub_0807A500: @ 0x0807A500 beq _0807A526 b _0807A5B4 .align 2, 0 -_0807A518: .4byte gLinkEntity +_0807A518: .4byte gPlayerEntity _0807A51C: cmp r0, #2 beq _0807A554 @@ -3896,7 +3896,7 @@ sub_0807A5B8: @ 0x0807A5B8 mov r6, r8 push {r6, r7} mov sb, r0 - ldr r2, _0807A5F8 @ =gLinkState + ldr r2, _0807A5F8 @ =gPlayerState ldrb r3, [r2, #2] movs r4, #0x80 adds r0, r4, #0 @@ -3926,7 +3926,7 @@ _0807A5EA: ldr r7, _0807A5FC @ =gUnk_0800833C b _0807A63A .align 2, 0 -_0807A5F8: .4byte gLinkState +_0807A5F8: .4byte gPlayerState _0807A5FC: .4byte gUnk_0800833C _0807A600: movs r0, #0x80 @@ -3967,7 +3967,7 @@ _0807A63A: beq _0807A6B8 cmp r0, #0x10 beq _0807A6B8 - ldr r6, _0807A748 @ =gLinkEntity + ldr r6, _0807A748 @ =gPlayerEntity ldr r2, [r6, #0x48] movs r1, #0x2e ldrsh r0, [r6, r1] @@ -4028,7 +4028,7 @@ _0807A6B8: beq _0807A736 cmp r3, #0x18 beq _0807A736 - ldr r6, _0807A748 @ =gLinkEntity + ldr r6, _0807A748 @ =gPlayerEntity movs r0, #0x2e ldrsh r1, [r6, r0] ldr r2, [r6, #0x48] @@ -4091,7 +4091,7 @@ _0807A736: .align 2, 0 _0807A740: .4byte gUnk_080082DC _0807A744: .4byte gUnk_0800851C -_0807A748: .4byte gLinkEntity +_0807A748: .4byte gPlayerEntity _0807A74C: .4byte gRoomControls thumb_func_start sub_0807A750 @@ -4129,7 +4129,7 @@ _0807A77C: ands r1, r2 lsls r1, r1, #6 orrs r0, r1 - ldr r1, _0807A7A8 @ =gLinkEntity + ldr r1, _0807A7A8 @ =gPlayerEntity adds r1, #0x38 ldrb r1, [r1] bl sub_080002E0 @@ -4144,7 +4144,7 @@ _0807A77C: ldrb r1, [r0] b _0807A7AE .align 2, 0 -_0807A7A8: .4byte gLinkEntity +_0807A7A8: .4byte gPlayerEntity _0807A7AC: movs r1, #0xf _0807A7AE: @@ -4163,7 +4163,7 @@ _0807A7AE: asrs r2, r0 cmp r5, #0 bne _0807A7F4 - ldr r3, _0807A7DC @ =gLinkEntity + ldr r3, _0807A7DC @ =gPlayerEntity cmp r4, #0xe bgt _0807A7F0 lsls r0, r4, #1 @@ -4171,7 +4171,7 @@ _0807A7AE: b _0807A7E8 .align 2, 0 _0807A7D8: .4byte gUnk_0800823C -_0807A7DC: .4byte gLinkEntity +_0807A7DC: .4byte gPlayerEntity _0807A7E0: adds r1, #2 adds r4, #1 @@ -4186,14 +4186,14 @@ _0807A7F0: subs r4, #1 b _0807A816 _0807A7F4: - ldr r3, _0807A800 @ =gLinkEntity + ldr r3, _0807A800 @ =gPlayerEntity cmp r4, #0 ble _0807A814 lsls r0, r4, #1 adds r1, r0, r1 b _0807A80C .align 2, 0 -_0807A800: .4byte gLinkEntity +_0807A800: .4byte gPlayerEntity _0807A804: subs r1, #2 subs r4, #1 @@ -4224,7 +4224,7 @@ _0807A824: bne _0807A85C subs r0, r3, r4 lsrs r2, r0 - ldr r3, _0807A858 @ =gLinkEntity + ldr r3, _0807A858 @ =gPlayerEntity cmp r4, #0 ble _0807A854 ands r5, r2 @@ -4244,17 +4244,17 @@ _0807A854: adds r4, #1 b _0807A882 .align 2, 0 -_0807A858: .4byte gLinkEntity +_0807A858: .4byte gPlayerEntity _0807A85C: lsls r2, r4 - ldr r3, _0807A86C @ =gLinkEntity + ldr r3, _0807A86C @ =gPlayerEntity cmp r4, #0xe bgt _0807A880 movs r1, #0x80 lsls r1, r1, #8 b _0807A878 .align 2, 0 -_0807A86C: .4byte gLinkEntity +_0807A86C: .4byte gPlayerEntity _0807A870: lsls r2, r2, #1 adds r4, #1 @@ -4333,7 +4333,7 @@ sub_0807A8D8: @ 0x0807A8D8 mov r6, r8 push {r6, r7} adds r5, r0, #0 - ldr r0, _0807AA5C @ =gLinkState + ldr r0, _0807AA5C @ =gPlayerState ldr r0, [r0, #0x30] movs r1, #0x80 ands r0, r1 @@ -4358,7 +4358,7 @@ _0807A8F0: ands r1, r6 lsls r1, r1, #6 orrs r0, r1 - ldr r1, _0807AA64 @ =gLinkEntity + ldr r1, _0807AA64 @ =gPlayerEntity adds r1, #0x38 mov sb, r1 ldrb r1, [r1] @@ -4485,7 +4485,7 @@ _0807A9F6: ands r1, r6 lsls r1, r1, #6 orrs r0, r1 - ldr r1, _0807AA64 @ =gLinkEntity + ldr r1, _0807AA64 @ =gPlayerEntity adds r1, #0x38 ldrb r1, [r1] bl sub_080002EC @@ -4519,9 +4519,9 @@ _0807AA4C: bl sub_0807AABC b _0807AA76 .align 2, 0 -_0807AA5C: .4byte gLinkState +_0807AA5C: .4byte gPlayerState _0807AA60: .4byte gRoomControls -_0807AA64: .4byte gLinkEntity +_0807AA64: .4byte gPlayerEntity _0807AA68: movs r0, #4 ands r0, r4 @@ -4540,7 +4540,7 @@ _0807AA76: sub_0807AA80: @ 0x0807AA80 push {lr} adds r3, r0, #0 - ldr r0, _0807AAB8 @ =gLinkState + ldr r0, _0807AAB8 @ =gPlayerState ldr r0, [r0, #0x30] movs r1, #0x40 ands r0, r1 @@ -4568,13 +4568,13 @@ sub_0807AA80: @ 0x0807AA80 _0807AAB6: pop {pc} .align 2, 0 -_0807AAB8: .4byte gLinkState +_0807AAB8: .4byte gPlayerState thumb_func_start sub_0807AABC sub_0807AABC: @ 0x0807AABC push {lr} adds r3, r0, #0 - ldr r0, _0807AAF4 @ =gLinkState + ldr r0, _0807AAF4 @ =gPlayerState ldr r0, [r0, #0x30] movs r1, #0x40 ands r0, r1 @@ -4602,7 +4602,7 @@ sub_0807AABC: @ 0x0807AABC _0807AAF2: pop {pc} .align 2, 0 -_0807AAF4: .4byte gLinkState +_0807AAF4: .4byte gPlayerState thumb_func_start sub_0807AAF8 sub_0807AAF8: @ 0x0807AAF8 @@ -4619,7 +4619,7 @@ sub_0807AAF8: @ 0x0807AAF8 lsls r0, r0, #0x1e orrs r2, r0 movs r3, #0 - ldr r0, _0807AB40 @ =gLinkState + ldr r0, _0807AB40 @ =gPlayerState ldr r1, [r0, #0x40] adds r4, r0, #0 cmp r1, r2 @@ -4645,7 +4645,7 @@ _0807AB32: _0807AB3C: pop {r4, pc} .align 2, 0 -_0807AB40: .4byte gLinkState +_0807AB40: .4byte gPlayerState thumb_func_start sub_0807AB44 sub_0807AB44: @ 0x0807AB44 @@ -4781,7 +4781,7 @@ _0807AC50: .4byte 0x0000404F sub_0807AC54: @ 0x0807AC54 push {lr} adds r2, r0, #0 - ldr r0, _0807AC74 @ =gLinkState + ldr r0, _0807AC74 @ =gPlayerState ldrb r1, [r0, #0x11] adds r3, r0, #0 cmp r1, #0 @@ -4795,7 +4795,7 @@ sub_0807AC54: @ 0x0807AC54 beq _0807AC82 b _0807ACC6 .align 2, 0 -_0807AC74: .4byte gLinkState +_0807AC74: .4byte gPlayerState _0807AC78: cmp r0, #0x2b beq _0807AC90 @@ -4872,7 +4872,7 @@ _0807ACF4: cmp r1, r0 ble _0807AD18 strh r1, [r4, #0x24] - ldr r0, _0807AD14 @ =gLinkState + ldr r0, _0807AD14 @ =gPlayerState ldrb r1, [r0, #0xd] strb r1, [r4, #0x15] adds r0, #0x26 @@ -4883,13 +4883,13 @@ _0807ACF4: bne _0807ADB4 b _0807AD1E .align 2, 0 -_0807AD14: .4byte gLinkState +_0807AD14: .4byte gPlayerState _0807AD18: ldrh r0, [r4, #0x24] subs r0, #4 strh r0, [r4, #0x24] _0807AD1E: - ldr r2, _0807AD3C @ =gLinkState + ldr r2, _0807AD3C @ =gPlayerState adds r1, r2, #0 adds r1, #0x89 ldrb r0, [r1] @@ -4903,7 +4903,7 @@ _0807AD1E: bl sub_0807AE20 b _0807AD74 .align 2, 0 -_0807AD3C: .4byte gLinkState +_0807AD3C: .4byte gPlayerState _0807AD40: subs r0, #1 strb r0, [r1] @@ -4931,7 +4931,7 @@ _0807AD52: ldr r0, _0807ADA0 @ =0x00000163 bl PlaySFX _0807AD74: - ldr r0, _0807ADA4 @ =gLinkState + ldr r0, _0807ADA4 @ =gPlayerState adds r0, #0x26 ldrb r1, [r0] movs r0, #0x80 @@ -4954,7 +4954,7 @@ _0807AD74: b _0807ADB2 .align 2, 0 _0807ADA0: .4byte 0x00000163 -_0807ADA4: .4byte gLinkState +_0807ADA4: .4byte gPlayerState _0807ADA8: adds r2, r4, #0 adds r2, #0x3c @@ -4971,7 +4971,7 @@ _0807ADB4: sub_0807ADB8: @ 0x0807ADB8 push {r4, lr} adds r2, r0, #0 - ldr r3, _0807ADF4 @ =gLinkState + ldr r3, _0807ADF4 @ =gPlayerState adds r0, r3, #0 adds r0, #0x92 ldrh r1, [r0] @@ -4999,7 +4999,7 @@ sub_0807ADB8: @ 0x0807ADB8 strb r0, [r1] b _0807AE0E .align 2, 0 -_0807ADF4: .4byte gLinkState +_0807ADF4: .4byte gPlayerState _0807ADF8: adds r2, #0x29 ldrb r1, [r2] @@ -5031,7 +5031,7 @@ sub_0807AE20: @ 0x0807AE20 ldrb r0, [r4, #0xc] cmp r0, #0x17 bne _0807AE32 - ldr r0, _0807AE58 @ =gLinkState + ldr r0, _0807AE58 @ =gPlayerState ldrb r0, [r0, #0xa] cmp r0, #0 bne _0807AE74 @@ -5040,7 +5040,7 @@ _0807AE32: ldrh r0, [r0] cmp r0, #0 bne _0807AE74 - ldr r0, _0807AE58 @ =gLinkState + ldr r0, _0807AE58 @ =gPlayerState adds r0, #0x92 ldrh r1, [r0] movs r0, #8 @@ -5055,7 +5055,7 @@ _0807AE32: lsls r0, r0, #1 b _0807AE64 .align 2, 0 -_0807AE58: .4byte gLinkState +_0807AE58: .4byte gPlayerState _0807AE5C: .4byte gRoomControls _0807AE60: movs r0, #0xc0 @@ -5126,7 +5126,7 @@ _0807AEE0: .4byte gScreenTransition thumb_func_start sub_0807AEE4 sub_0807AEE4: @ 0x0807AEE4 push {r4, lr} - ldr r0, _0807AFE4 @ =gLinkState + ldr r0, _0807AFE4 @ =gPlayerState adds r4, r0, #0 adds r4, #0xac movs r0, #0 @@ -5229,7 +5229,7 @@ _0807AFAC: bl GetInventoryValue cmp r0, #1 bne _0807AFC6 - ldr r0, _0807AFE4 @ =gLinkState + ldr r0, _0807AFE4 @ =gPlayerState adds r0, #0xac ldrh r2, [r0] movs r3, #0x80 @@ -5242,7 +5242,7 @@ _0807AFC6: bl GetInventoryValue cmp r0, #1 bne _0807AFE0 - ldr r0, _0807AFE4 @ =gLinkState + ldr r0, _0807AFE4 @ =gPlayerState adds r0, #0xac ldrh r2, [r0] movs r3, #0x80 @@ -5253,13 +5253,13 @@ _0807AFC6: _0807AFE0: pop {r4, pc} .align 2, 0 -_0807AFE4: .4byte gLinkState +_0807AFE4: .4byte gPlayerState thumb_func_start sub_0807AFE8 sub_0807AFE8: @ 0x0807AFE8 push {lr} bl sub_08077B20 - ldr r0, _0807B00C @ =gLinkEntity + ldr r0, _0807B00C @ =gPlayerEntity movs r1, #0x43 movs r2, #0 bl CreateFx @@ -5270,18 +5270,18 @@ sub_0807AFE8: @ 0x0807AFE8 adds r0, #1 strh r0, [r1, #0x32] _0807B004: - ldr r1, _0807B010 @ =gLinkState + ldr r1, _0807B010 @ =gPlayerState movs r0, #9 strb r0, [r1, #0xc] pop {pc} .align 2, 0 -_0807B00C: .4byte gLinkEntity -_0807B010: .4byte gLinkState +_0807B00C: .4byte gPlayerEntity +_0807B010: .4byte gPlayerState thumb_func_start sub_0807B014 sub_0807B014: @ 0x0807B014 push {lr} - ldr r2, _0807B03C @ =gLinkState + ldr r2, _0807B03C @ =gPlayerState adds r0, r2, #0 adds r0, #0xac ldrh r1, [r0] @@ -5300,7 +5300,7 @@ sub_0807B014: @ 0x0807B014 movs r0, #0xf b _0807B066 .align 2, 0 -_0807B03C: .4byte gLinkState +_0807B03C: .4byte gPlayerState _0807B040: .4byte gUnk_02002A40 _0807B044: adds r0, r2, #0 @@ -5327,7 +5327,7 @@ _0807B066: thumb_func_start sub_0807B068 sub_0807B068: @ 0x0807B068 push {lr} - ldr r2, _0807B090 @ =gLinkState + ldr r2, _0807B090 @ =gPlayerState ldrb r1, [r2, #0x1e] ldrb r0, [r2, #4] orrs r0, r1 @@ -5346,7 +5346,7 @@ sub_0807B068: @ 0x0807B068 strh r0, [r2, #8] b _0807B0C2 .align 2, 0 -_0807B090: .4byte gLinkState +_0807B090: .4byte gPlayerState _0807B094: .4byte 0x00000C1C _0807B098: ldr r0, _0807B0A0 @ =0x00000C0C @@ -5380,7 +5380,7 @@ _0807B0C4: .4byte 0x00000C04 thumb_func_start sub_0807B0C8 sub_0807B0C8: @ 0x0807B0C8 push {r4, lr} - ldr r4, _0807B0F8 @ =gLinkEntity + ldr r4, _0807B0F8 @ =gPlayerEntity adds r0, r4, #0 movs r1, #0 movs r2, #0 @@ -5399,7 +5399,7 @@ sub_0807B0C8: @ 0x0807B0C8 bl sub_0806FEBC pop {r4, pc} .align 2, 0 -_0807B0F8: .4byte gLinkEntity +_0807B0F8: .4byte gPlayerEntity thumb_func_start sub_0807B0FC sub_0807B0FC: @ 0x0807B0FC @@ -5418,14 +5418,14 @@ _0807B110: .4byte gUnk_0811C27C sub_0807B114: @ 0x0807B114 movs r1, #1 strb r1, [r0, #0xd] - ldr r1, _0807B124 @ =gLinkState + ldr r1, _0807B124 @ =gPlayerState adds r1, #0x38 ldrb r1, [r1] adds r0, #0x6c strb r1, [r0] bx lr .align 2, 0 -_0807B124: .4byte gLinkState +_0807B124: .4byte gPlayerState thumb_func_start sub_0807B128 sub_0807B128: @ 0x0807B128 @@ -5460,13 +5460,13 @@ sub_0807B144: @ 0x0807B144 movs r1, #0x80 lsls r1, r1, #0xb str r1, [r0, #0x20] - ldr r1, _0807B170 @ =gLinkState + ldr r1, _0807B170 @ =gPlayerState movs r0, #0x81 strb r0, [r1, #2] bl sub_080791BC pop {pc} .align 2, 0 -_0807B170: .4byte gLinkState +_0807B170: .4byte gPlayerState thumb_func_start nullsub_506 nullsub_506: @ 0x0807B174 @@ -5490,13 +5490,13 @@ sub_0807B178: @ 0x0807B178 movs r1, #0x80 lsls r1, r1, #0xb str r1, [r0, #0x20] - ldr r1, _0807B1A4 @ =gLinkState + ldr r1, _0807B1A4 @ =gPlayerState movs r0, #0x81 strb r0, [r1, #2] bl sub_080791BC pop {pc} .align 2, 0 -_0807B1A4: .4byte gLinkState +_0807B1A4: .4byte gPlayerState thumb_func_start sub_0807B1A8 sub_0807B1A8: @ 0x0807B1A8 @@ -5553,13 +5553,13 @@ sub_0807B1EC: @ 0x0807B1EC movs r0, #0x80 lsls r0, r0, #9 str r0, [r2, #0x20] - ldr r1, _0807B214 @ =gLinkState + ldr r1, _0807B214 @ =gPlayerState ldr r0, _0807B218 @ =0x000002C2 strh r0, [r1, #8] _0807B212: pop {pc} .align 2, 0 -_0807B214: .4byte gLinkState +_0807B214: .4byte gPlayerState _0807B218: .4byte 0x000002C2 thumb_func_start sub_0807B21C diff --git a/asm/code_0807B9B8.s b/asm/code_0807B9B8.s index 83800962..17921068 100644 --- a/asm/code_0807B9B8.s +++ b/asm/code_0807B9B8.s @@ -503,7 +503,7 @@ _0807BD90: _0807BD96: strh r0, [r2, #4] _0807BD98: - ldr r2, _0807BDB0 @ =gLinkEntity + ldr r2, _0807BDB0 @ =gPlayerEntity ldrb r1, [r2, #0x11] movs r0, #0x10 rsbs r0, r0, #0 @@ -515,7 +515,7 @@ _0807BD98: movs r0, #1 b _0807BDB6 .align 2, 0 -_0807BDB0: .4byte gLinkEntity +_0807BDB0: .4byte gPlayerEntity _0807BDB4: movs r0, #0 _0807BDB6: @@ -1823,7 +1823,7 @@ sub_0807C810: @ 0x0807C810 push {r4, r5, r6, lr} bl sub_0807BFD0 ldr r2, _0807C850 @ =gUnk_03004030 - ldr r6, _0807C854 @ =gLinkEntity + ldr r6, _0807C854 @ =gPlayerEntity ldr r4, _0807C858 @ =gRoomControls ldr r3, [r2] ldrh r1, [r3, #6] @@ -1852,7 +1852,7 @@ sub_0807C810: @ 0x0807C810 pop {r4, r5, r6, pc} .align 2, 0 _0807C850: .4byte gUnk_03004030 -_0807C854: .4byte gLinkEntity +_0807C854: .4byte gPlayerEntity _0807C858: .4byte gRoomControls _0807C85C: .4byte gUnk_02000070 diff --git a/asm/code_0807CC3C.s b/asm/code_0807CC3C.s index 4ff60f5c..0db4b4d8 100644 --- a/asm/code_0807CC3C.s +++ b/asm/code_0807CC3C.s @@ -1619,10 +1619,10 @@ StartPlayerScript: @ 0x0807DB2C movs r1, #0x24 bl _DmaZero str r5, [r4] - ldr r0, _0807DB60 @ =gLinkEntity + ldr r0, _0807DB60 @ =gPlayerEntity adds r0, #0x84 str r4, [r0] - ldr r2, _0807DB64 @ =gLinkState + ldr r2, _0807DB64 @ =gPlayerState movs r1, #0 movs r0, #0x1c strb r0, [r2, #0xc] @@ -1636,8 +1636,8 @@ StartPlayerScript: @ 0x0807DB2C pop {r4, r5, pc} .align 2, 0 _0807DB5C: .4byte gUnk_02022750 -_0807DB60: .4byte gLinkEntity -_0807DB64: .4byte gLinkState +_0807DB60: .4byte gPlayerEntity +_0807DB64: .4byte gPlayerState thumb_func_start sub_0807DB68 sub_0807DB68: @ 0x0807DB68 @@ -2734,13 +2734,13 @@ sub_0807E30C: @ 0x0807E30C ands r0, r1 cmp r0, #0 bne _0807E348 - ldr r0, _0807E374 @ =gLinkState + ldr r0, _0807E374 @ =gPlayerState ldr r0, [r0, #0x30] movs r1, #0x80 ands r0, r1 cmp r0, #0 bne _0807E348 - ldr r6, _0807E378 @ =gLinkEntity + ldr r6, _0807E378 @ =gPlayerEntity adds r0, r5, #0 adds r1, r6, #0 movs r2, #0x28 @@ -2767,15 +2767,15 @@ _0807E348: strb r0, [r1] movs r0, #1 str r0, [r4, #0x14] - ldr r1, _0807E378 @ =gLinkEntity + ldr r1, _0807E378 @ =gPlayerEntity adds r0, r5, #0 bl GetFacingDirection bl sub_0806F5B0 strb r0, [r5, #0x14] b _0807E37E .align 2, 0 -_0807E374: .4byte gLinkState -_0807E378: .4byte gLinkEntity +_0807E374: .4byte gPlayerState +_0807E378: .4byte gPlayerEntity _0807E37C: str r0, [r4, #0x14] _0807E37E: @@ -3030,7 +3030,7 @@ sub_0807E538: @ 0x0807E538 adds r4, r1, #0 ldr r0, [r4] bl GetNextScriptCommandWordAfterCommandMetadata - ldr r1, _0807E55C @ =gLinkState + ldr r1, _0807E55C @ =gPlayerState ldr r1, [r1, #0x30] ands r0, r1 rsbs r1, r0, #0 @@ -3044,12 +3044,12 @@ sub_0807E538: @ 0x0807E538 strb r0, [r2, #7] pop {r4, pc} .align 2, 0 -_0807E55C: .4byte gLinkState +_0807E55C: .4byte gPlayerState _0807E560: .4byte gUnk_02033280 thumb_func_start sub_0807E564 sub_0807E564: @ 0x0807E564 - ldr r0, _0807E57C @ =gLinkState + ldr r0, _0807E57C @ =gPlayerState ldr r0, [r0, #0x30] lsrs r0, r0, #7 movs r2, #1 @@ -3062,7 +3062,7 @@ sub_0807E564: @ 0x0807E564 strb r0, [r2, #7] bx lr .align 2, 0 -_0807E57C: .4byte gLinkState +_0807E57C: .4byte gPlayerState _0807E580: .4byte gUnk_02033280 thumb_func_start sub_0807E584 @@ -3087,7 +3087,7 @@ sub_0807E5A0: @ 0x0807E5A0 adds r2, r1, #0 movs r3, #0 ldr r0, [r2] - ldr r1, _0807E5C4 @ =gLinkEntity + ldr r1, _0807E5C4 @ =gPlayerEntity ldrh r0, [r0, #2] ldrb r1, [r1, #0xc] cmp r0, r1 @@ -3102,7 +3102,7 @@ _0807E5B4: strb r0, [r2, #7] pop {pc} .align 2, 0 -_0807E5C4: .4byte gLinkEntity +_0807E5C4: .4byte gPlayerEntity _0807E5C8: .4byte gUnk_02033280 thumb_func_start sub_0807E5CC @@ -3111,7 +3111,7 @@ sub_0807E5CC: @ 0x0807E5CC adds r2, r1, #0 movs r3, #0 ldr r0, [r2] - ldr r1, _0807E5F0 @ =gLinkEntity + ldr r1, _0807E5F0 @ =gPlayerEntity ldrh r0, [r0, #2] ldrb r1, [r1, #0x14] cmp r0, r1 @@ -3126,7 +3126,7 @@ _0807E5E0: strb r0, [r2, #7] pop {pc} .align 2, 0 -_0807E5F0: .4byte gLinkEntity +_0807E5F0: .4byte gPlayerEntity _0807E5F4: .4byte gUnk_02033280 thumb_func_start sub_0807E5F8 @@ -3270,7 +3270,7 @@ _0807E6D8: thumb_func_start sub_0807E6DC sub_0807E6DC: @ 0x0807E6DC push {lr} - ldr r0, _0807E6F0 @ =gLinkEntity + ldr r0, _0807E6F0 @ =gPlayerEntity ldrb r0, [r0, #0xc] cmp r0, #8 bne _0807E6F8 @@ -3279,7 +3279,7 @@ sub_0807E6DC: @ 0x0807E6DC strb r0, [r1, #6] b _0807E6FC .align 2, 0 -_0807E6F0: .4byte gLinkEntity +_0807E6F0: .4byte gPlayerEntity _0807E6F4: .4byte gUnk_02033280 _0807E6F8: movs r0, #0x2d @@ -3291,7 +3291,7 @@ _0807E6FC: thumb_func_start sub_0807E700 sub_0807E700: @ 0x0807E700 push {lr} - ldr r0, _0807E718 @ =gLinkEntity + ldr r0, _0807E718 @ =gPlayerEntity ldrb r0, [r0, #0xc] cmp r0, #0x17 beq _0807E720 @@ -3302,7 +3302,7 @@ sub_0807E700: @ 0x0807E700 strb r0, [r2, #7] b _0807E726 .align 2, 0 -_0807E718: .4byte gLinkEntity +_0807E718: .4byte gPlayerEntity _0807E71C: .4byte gUnk_02033280 _0807E720: ldr r1, _0807E728 @ =gUnk_02033280 @@ -3497,41 +3497,41 @@ sub_0807E858: @ 0x0807E858 thumb_func_start sub_0807E864 sub_0807E864: @ 0x0807E864 push {lr} - ldr r0, _0807E874 @ =gLinkState + ldr r0, _0807E874 @ =gPlayerState adds r0, #0x8b movs r1, #3 strb r1, [r0] bl sub_08078B48 pop {pc} .align 2, 0 -_0807E874: .4byte gLinkState +_0807E874: .4byte gPlayerState thumb_func_start sub_0807E878 sub_0807E878: @ 0x0807E878 - ldr r0, _0807E884 @ =gLinkState + ldr r0, _0807E884 @ =gPlayerState adds r0, #0x8b movs r1, #1 strb r1, [r0] bx lr .align 2, 0 -_0807E884: .4byte gLinkState +_0807E884: .4byte gPlayerState thumb_func_start sub_0807E888 sub_0807E888: @ 0x0807E888 - ldr r0, _0807E894 @ =gLinkState + ldr r0, _0807E894 @ =gPlayerState adds r0, #0x8b movs r1, #3 strb r1, [r0] bx lr .align 2, 0 -_0807E894: .4byte gLinkState +_0807E894: .4byte gPlayerState thumb_func_start sub_0807E898 sub_0807E898: @ 0x0807E898 push {lr} ldr r0, [r1] bl GetNextScriptCommandWordAfterCommandMetadata - ldr r3, _0807E8C0 @ =gLinkState + ldr r3, _0807E8C0 @ =gPlayerState strb r0, [r3, #0xc] lsrs r2, r0, #8 adds r1, r3, #0 @@ -3547,7 +3547,7 @@ sub_0807E898: @ 0x0807E898 strb r0, [r1] pop {pc} .align 2, 0 -_0807E8C0: .4byte gLinkState +_0807E8C0: .4byte gPlayerState thumb_func_start sub_0807E8C4 sub_0807E8C4: @ 0x0807E8C4 @@ -3560,13 +3560,13 @@ sub_0807E8C4: @ 0x0807E8C4 thumb_func_start sub_0807E8D4 sub_0807E8D4: @ 0x0807E8D4 - ldr r2, _0807E8E0 @ =gLinkState + ldr r2, _0807E8E0 @ =gPlayerState ldr r0, [r1] ldrh r0, [r0, #2] strh r0, [r2, #8] bx lr .align 2, 0 -_0807E8E0: .4byte gLinkState +_0807E8E0: .4byte gPlayerState thumb_func_start sub_0807E8E4 sub_0807E8E4: @ 0x0807E8E4 @@ -3574,7 +3574,7 @@ sub_0807E8E4: @ 0x0807E8E4 ldrh r0, [r0] ldr r2, _0807E900 @ =0x000003FF ands r2, r0 - ldr r3, _0807E904 @ =gLinkEntity + ldr r3, _0807E904 @ =gPlayerEntity ldr r0, [r1] ldrh r0, [r0] subs r0, r0, r2 @@ -3584,7 +3584,7 @@ sub_0807E8E4: @ 0x0807E8E4 .align 2, 0 _0807E8FC: .4byte gUnk_08016984 _0807E900: .4byte 0x000003FF -_0807E904: .4byte gLinkEntity +_0807E904: .4byte gPlayerEntity thumb_func_start sub_0807E908 sub_0807E908: @ 0x0807E908 @@ -3737,7 +3737,7 @@ sub_0807E9F0: @ 0x0807E9F0 beq _0807EA24 cmp r0, #2 bne _0807EA40 - ldr r0, _0807EA1C @ =gLinkState + ldr r0, _0807EA1C @ =gPlayerState adds r0, #0x8b movs r1, #3 strb r1, [r0] @@ -3747,7 +3747,7 @@ sub_0807E9F0: @ 0x0807E9F0 b _0807EA28 .align 2, 0 _0807EA18: .4byte gUnk_02022740 -_0807EA1C: .4byte gLinkState +_0807EA1C: .4byte gPlayerState _0807EA20: .4byte gUnk_02034490 _0807EA24: movs r0, #0 @@ -3756,13 +3756,13 @@ _0807EA28: cmp r2, #0 beq _0807EA40 bl sub_0807919C - ldr r0, _0807EA3C @ =gLinkState + ldr r0, _0807EA3C @ =gPlayerState adds r0, #0x8b movs r1, #1 strb r1, [r0] b _0807EA46 .align 2, 0 -_0807EA3C: .4byte gLinkState +_0807EA3C: .4byte gPlayerState _0807EA40: ldr r1, _0807EA48 @ =gUnk_02033280 movs r0, #0 @@ -3949,19 +3949,19 @@ _0807EB70: .4byte gRoomControls sub_0807EB74: @ 0x0807EB74 push {r4, lr} adds r4, r0, #0 - ldr r1, _0807EB88 @ =gLinkEntity + ldr r1, _0807EB88 @ =gPlayerEntity bl GetFacingDirection bl sub_0806F5B0 strb r0, [r4, #0x14] pop {r4, pc} .align 2, 0 -_0807EB88: .4byte gLinkEntity +_0807EB88: .4byte gPlayerEntity thumb_func_start sub_0807EB8C sub_0807EB8C: @ 0x0807EB8C push {r4, lr} adds r1, r0, #0 - ldr r4, _0807EBA4 @ =gLinkEntity + ldr r4, _0807EBA4 @ =gPlayerEntity adds r0, r4, #0 bl GetFacingDirection bl sub_0806F5B0 @@ -3970,7 +3970,7 @@ sub_0807EB8C: @ 0x0807EB8C strb r0, [r4, #0x14] pop {r4, pc} .align 2, 0 -_0807EBA4: .4byte gLinkEntity +_0807EBA4: .4byte gPlayerEntity thumb_func_start sub_0807EBA8 sub_0807EBA8: @ 0x0807EBA8 @@ -4041,11 +4041,11 @@ sub_0807EBF4: @ 0x0807EBF4 sub_0807EC08: @ 0x0807EC08 push {lr} adds r1, r0, #0 - ldr r0, _0807EC14 @ =gLinkEntity + ldr r0, _0807EC14 @ =gPlayerEntity bl CopyPosition pop {pc} .align 2, 0 -_0807EC14: .4byte gLinkEntity +_0807EC14: .4byte gPlayerEntity thumb_func_start nullsub_509 nullsub_509: @ 0x0807EC18 @@ -4419,7 +4419,7 @@ sub_0807EEB4: @ 0x0807EEB4 bne _0807EED6 movs r0, #1 strb r0, [r4, #0x18] - ldr r0, _0807EEEC @ =gLinkEntity + ldr r0, _0807EEEC @ =gPlayerEntity movs r1, #0x2e ldrsh r2, [r0, r1] movs r1, #0x32 @@ -4439,7 +4439,7 @@ _0807EED6: _0807EEE8: pop {r4, r5, pc} .align 2, 0 -_0807EEEC: .4byte gLinkEntity +_0807EEEC: .4byte gPlayerEntity _0807EEF0: .4byte gUnk_02033280 thumb_func_start sub_0807EEF4 @@ -4698,12 +4698,12 @@ _0807F0A0: .4byte gRoomControls thumb_func_start sub_0807F0A4 sub_0807F0A4: @ 0x0807F0A4 ldr r1, _0807F0AC @ =gRoomControls - ldr r0, _0807F0B0 @ =gLinkEntity + ldr r0, _0807F0B0 @ =gPlayerEntity str r0, [r1, #0x30] bx lr .align 2, 0 _0807F0AC: .4byte gRoomControls -_0807F0B0: .4byte gLinkEntity +_0807F0B0: .4byte gPlayerEntity thumb_func_start sub_0807F0B4 sub_0807F0B4: @ 0x0807F0B4 @@ -4808,7 +4808,7 @@ sub_0807F158: @ 0x0807F158 thumb_func_start sub_0807F168 sub_0807F168: @ 0x0807F168 push {lr} - ldr r0, _0807F17C @ =gLinkEntity + ldr r0, _0807F17C @ =gPlayerEntity adds r2, r0, #0 adds r2, #0x38 movs r1, #1 @@ -4816,7 +4816,7 @@ sub_0807F168: @ 0x0807F168 bl UpdateSpriteForCollisionLayer pop {pc} .align 2, 0 -_0807F17C: .4byte gLinkEntity +_0807F17C: .4byte gPlayerEntity thumb_func_start sub_0807F180 sub_0807F180: @ 0x0807F180 @@ -4841,7 +4841,7 @@ sub_0807F190: @ 0x0807F190 thumb_func_start sub_0807F1A0 sub_0807F1A0: @ 0x0807F1A0 push {r4, lr} - ldr r3, _0807F1BC @ =gLinkEntity + ldr r3, _0807F1BC @ =gPlayerEntity movs r4, #0x2e ldrsh r2, [r3, r4] movs r4, #0x32 @@ -4854,13 +4854,13 @@ sub_0807F1A0: @ 0x0807F1A0 strb r0, [r2, #7] pop {r4, pc} .align 2, 0 -_0807F1BC: .4byte gLinkEntity +_0807F1BC: .4byte gPlayerEntity _0807F1C0: .4byte gUnk_02033280 thumb_func_start sub_0807F1C4 sub_0807F1C4: @ 0x0807F1C4 push {lr} - ldr r2, _0807F1D8 @ =gLinkState + ldr r2, _0807F1D8 @ =gPlayerState ldr r0, [r2, #0x30] movs r1, #8 ands r0, r1 @@ -4869,7 +4869,7 @@ sub_0807F1C4: @ 0x0807F1C4 ldr r0, _0807F1DC @ =0x00000459 b _0807F1E4 .align 2, 0 -_0807F1D8: .4byte gLinkState +_0807F1D8: .4byte gPlayerState _0807F1DC: .4byte 0x00000459 _0807F1E0: movs r0, #0xde @@ -4881,7 +4881,7 @@ _0807F1E4: thumb_func_start sub_0807F1E8 sub_0807F1E8: @ 0x0807F1E8 push {lr} - ldr r2, _0807F1FC @ =gLinkState + ldr r2, _0807F1FC @ =gPlayerState ldr r0, [r2, #0x30] movs r1, #8 ands r0, r1 @@ -4890,7 +4890,7 @@ sub_0807F1E8: @ 0x0807F1E8 ldr r0, _0807F200 @ =0x0000045A b _0807F206 .align 2, 0 -_0807F1FC: .4byte gLinkState +_0807F1FC: .4byte gPlayerState _0807F200: .4byte 0x0000045A _0807F204: ldr r0, _0807F20C @ =0x000002BD @@ -4903,7 +4903,7 @@ _0807F20C: .4byte 0x000002BD thumb_func_start sub_0807F210 sub_0807F210: @ 0x0807F210 push {lr} - ldr r2, _0807F224 @ =gLinkState + ldr r2, _0807F224 @ =gPlayerState ldr r0, [r2, #0x30] movs r1, #8 ands r0, r1 @@ -4912,7 +4912,7 @@ sub_0807F210: @ 0x0807F210 ldr r0, _0807F228 @ =0x0000041C b _0807F22E .align 2, 0 -_0807F224: .4byte gLinkState +_0807F224: .4byte gPlayerState _0807F228: .4byte 0x0000041C _0807F22C: ldr r0, _0807F234 @ =0x0000080C @@ -4924,12 +4924,12 @@ _0807F234: .4byte 0x0000080C thumb_func_start sub_0807F238 sub_0807F238: @ 0x0807F238 - ldr r2, _0807F240 @ =gLinkState + ldr r2, _0807F240 @ =gPlayerState ldr r0, [r1, #4] strh r0, [r2, #8] bx lr .align 2, 0 -_0807F240: .4byte gLinkState +_0807F240: .4byte gPlayerState thumb_func_start sub_0807F244 sub_0807F244: @ 0x0807F244 @@ -4988,7 +4988,7 @@ sub_0807F29C: @ 0x0807F29C thumb_func_start sub_0807F2A8 sub_0807F2A8: @ 0x0807F2A8 push {lr} - ldr r0, _0807F2C0 @ =gLinkState + ldr r0, _0807F2C0 @ =gPlayerState adds r0, #0x9c ldr r0, [r0] cmp r0, #0 @@ -5000,7 +5000,7 @@ sub_0807F2A8: @ 0x0807F2A8 strb r0, [r2, #7] b _0807F2CE .align 2, 0 -_0807F2C0: .4byte gLinkState +_0807F2C0: .4byte gPlayerState _0807F2C4: .4byte gUnk_02033280 _0807F2C8: ldr r1, _0807F2D0 @ =gUnk_02033280 @@ -5041,7 +5041,7 @@ _0807F300: .4byte gUnk_02033280 thumb_func_start sub_0807F304 sub_0807F304: @ 0x0807F304 push {lr} - ldr r0, _0807F324 @ =gLinkEntity + ldr r0, _0807F324 @ =gPlayerEntity adds r0, #0x5a ldrb r1, [r0] movs r0, #0x80 @@ -5057,7 +5057,7 @@ sub_0807F304: @ 0x0807F304 strb r0, [r2, #7] b _0807F330 .align 2, 0 -_0807F324: .4byte gLinkEntity +_0807F324: .4byte gPlayerEntity _0807F328: .4byte gUnk_02033280 _0807F32C: ldr r0, _0807F334 @ =gUnk_02033280 @@ -5179,26 +5179,26 @@ sub_0807F3D8: @ 0x0807F3D8 thumb_func_start sub_0807F3F8 sub_0807F3F8: @ 0x0807F3F8 push {lr} - ldr r0, _0807F408 @ =gLinkEntity + ldr r0, _0807F408 @ =gPlayerEntity movs r2, #0x18 rsbs r2, r2, #0 movs r1, #8 bl sub_080A2CFC pop {pc} .align 2, 0 -_0807F408: .4byte gLinkEntity +_0807F408: .4byte gPlayerEntity thumb_func_start sub_0807F40C sub_0807F40C: @ 0x0807F40C push {lr} - ldr r0, _0807F41C @ =gLinkEntity + ldr r0, _0807F41C @ =gPlayerEntity movs r2, #0x18 rsbs r2, r2, #0 movs r1, #8 bl sub_080A2D0C pop {pc} .align 2, 0 -_0807F41C: .4byte gLinkEntity +_0807F41C: .4byte gPlayerEntity thumb_func_start sub_0807F420 sub_0807F420: @ 0x0807F420 @@ -5397,18 +5397,18 @@ _0807F580: .4byte gUnk_02033280 thumb_func_start sub_0807F584 sub_0807F584: @ 0x0807F584 - ldr r0, _0807F590 @ =gLinkEntity + ldr r0, _0807F590 @ =gPlayerEntity ldrb r0, [r0, #0x14] lsrs r0, r0, #1 str r0, [r1, #4] bx lr .align 2, 0 -_0807F590: .4byte gLinkEntity +_0807F590: .4byte gPlayerEntity thumb_func_start sub_0807F594 sub_0807F594: @ 0x0807F594 push {lr} - ldr r0, _0807F5A8 @ =gLinkState + ldr r0, _0807F5A8 @ =gPlayerState adds r0, #0xa8 ldrb r0, [r0] cmp r0, #0 @@ -5419,18 +5419,18 @@ sub_0807F594: @ 0x0807F594 _0807F5A6: pop {pc} .align 2, 0 -_0807F5A8: .4byte gLinkState +_0807F5A8: .4byte gPlayerState _0807F5AC: .4byte gUnk_02033280 thumb_func_start sub_0807F5B0 sub_0807F5B0: @ 0x0807F5B0 - ldr r0, _0807F5BC @ =gLinkState + ldr r0, _0807F5BC @ =gPlayerState ldr r1, [r1, #4] adds r0, #0x27 strb r1, [r0] bx lr .align 2, 0 -_0807F5BC: .4byte gLinkState +_0807F5BC: .4byte gPlayerState thumb_func_start sub_0807F5C0 sub_0807F5C0: @ 0x0807F5C0 @@ -5505,13 +5505,13 @@ sub_0807F634: @ 0x0807F634 ldrh r2, [r3, #2] ldrh r3, [r3, #4] bl sub_0801DFB4 - ldr r0, _0807F64C @ =gLinkState + ldr r0, _0807F64C @ =gPlayerState adds r0, #0x8b movs r1, #3 strb r1, [r0] pop {pc} .align 2, 0 -_0807F64C: .4byte gLinkState +_0807F64C: .4byte gPlayerState thumb_func_start sub_0807F650 sub_0807F650: @ 0x0807F650 @@ -5527,21 +5527,21 @@ sub_0807F650: @ 0x0807F650 ldrh r3, [r0, #4] adds r0, r4, #0 bl sub_0801DFB4 - ldr r0, _0807F67C @ =gLinkState + ldr r0, _0807F67C @ =gPlayerState adds r0, #0x8b movs r1, #3 strb r1, [r0] pop {r4, pc} .align 2, 0 _0807F678: .4byte gUnk_08001A7C -_0807F67C: .4byte gLinkState +_0807F67C: .4byte gPlayerState thumb_func_start sub_0807F680 sub_0807F680: @ 0x0807F680 push {lr} adds r2, r1, #0 movs r3, #0 - ldr r0, _0807F6A8 @ =gLinkEntity + ldr r0, _0807F6A8 @ =gPlayerEntity movs r1, #0x2e ldrsh r0, [r0, r1] ldr r1, _0807F6AC @ =gRoomControls @@ -5560,7 +5560,7 @@ _0807F69A: strb r0, [r2, #7] pop {pc} .align 2, 0 -_0807F6A8: .4byte gLinkEntity +_0807F6A8: .4byte gPlayerEntity _0807F6AC: .4byte gRoomControls _0807F6B0: .4byte gUnk_02033280 @@ -5569,7 +5569,7 @@ sub_0807F6B4: @ 0x0807F6B4 push {lr} adds r2, r1, #0 movs r3, #0 - ldr r0, _0807F6DC @ =gLinkEntity + ldr r0, _0807F6DC @ =gPlayerEntity movs r1, #0x32 ldrsh r0, [r0, r1] ldr r1, _0807F6E0 @ =gRoomControls @@ -5588,31 +5588,31 @@ _0807F6CE: strb r0, [r2, #7] pop {pc} .align 2, 0 -_0807F6DC: .4byte gLinkEntity +_0807F6DC: .4byte gPlayerEntity _0807F6E0: .4byte gRoomControls _0807F6E4: .4byte gUnk_02033280 thumb_func_start sub_0807F6E8 sub_0807F6E8: @ 0x0807F6E8 - ldr r2, _0807F6F4 @ =gLinkState + ldr r2, _0807F6F4 @ =gPlayerState ldr r0, [r2, #0x30] ldr r1, [r1, #4] orrs r0, r1 str r0, [r2, #0x30] bx lr .align 2, 0 -_0807F6F4: .4byte gLinkState +_0807F6F4: .4byte gPlayerState thumb_func_start sub_0807F6F8 sub_0807F6F8: @ 0x0807F6F8 - ldr r2, _0807F704 @ =gLinkState + ldr r2, _0807F704 @ =gPlayerState ldr r1, [r1, #4] ldr r0, [r2, #0x30] bics r0, r1 str r0, [r2, #0x30] bx lr .align 2, 0 -_0807F704: .4byte gLinkState +_0807F704: .4byte gPlayerState thumb_func_start sub_0807F708 sub_0807F708: @ 0x0807F708 @@ -5666,7 +5666,7 @@ _0807F758: .4byte gUnk_08114F34 sub_0807F75C: @ 0x0807F75C push {r4, lr} ldr r2, [r1, #4] - ldr r3, _0807F774 @ =gLinkEntity + ldr r3, _0807F774 @ =gPlayerEntity ldr r1, _0807F778 @ =gRoomControls asrs r0, r2, #0x10 ldrh r4, [r1, #6] @@ -5677,7 +5677,7 @@ sub_0807F75C: @ 0x0807F75C strh r0, [r3, #0x32] pop {r4, pc} .align 2, 0 -_0807F774: .4byte gLinkEntity +_0807F774: .4byte gPlayerEntity _0807F778: .4byte gRoomControls thumb_func_start sub_0807F77C @@ -5996,7 +5996,7 @@ sub_0807F994: @ 0x0807F994 thumb_func_start sub_0807F9A4 sub_0807F9A4: @ 0x0807F9A4 push {lr} - ldr r0, _0807F9BC @ =gLinkState + ldr r0, _0807F9BC @ =gPlayerState adds r0, #0xa8 ldrb r0, [r0] subs r0, #5 @@ -6008,7 +6008,7 @@ sub_0807F9A4: @ 0x0807F9A4 ldr r0, [r0] mov pc, r0 .align 2, 0 -_0807F9BC: .4byte gLinkState +_0807F9BC: .4byte gPlayerState _0807F9C0: .4byte _0807F9C4 _0807F9C4: @ jump table .4byte _0807FA24 @ case 0 @@ -6056,7 +6056,7 @@ _0807FA3C: .4byte gUnk_02033280 thumb_func_start sub_0807FA40 sub_0807FA40: @ 0x0807FA40 push {lr} - ldr r0, _0807FA58 @ =gLinkState + ldr r0, _0807FA58 @ =gPlayerState adds r0, #0xa8 ldrb r0, [r0] subs r0, #5 @@ -6068,7 +6068,7 @@ sub_0807FA40: @ 0x0807FA40 ldr r0, [r0] mov pc, r0 .align 2, 0 -_0807FA58: .4byte gLinkState +_0807FA58: .4byte gPlayerState _0807FA5C: .4byte _0807FA60 _0807FA60: @ jump table .4byte _0807FAC0 @ case 0 @@ -6192,21 +6192,21 @@ _0807FB60: .4byte gUnk_02033280 thumb_func_start sub_0807FB64 sub_0807FB64: @ 0x0807FB64 - ldr r0, _0807FB70 @ =gLinkEntity + ldr r0, _0807FB70 @ =gPlayerEntity ldr r1, [r1, #4] adds r0, #0x3d strb r1, [r0] bx lr .align 2, 0 -_0807FB70: .4byte gLinkEntity +_0807FB70: .4byte gPlayerEntity thumb_func_start sub_0807FB74 sub_0807FB74: @ 0x0807FB74 - ldr r0, _0807FB8C @ =gLinkState + ldr r0, _0807FB8C @ =gPlayerState adds r0, #0x26 movs r1, #0 strb r1, [r0] - ldr r1, _0807FB90 @ =gLinkEntity + ldr r1, _0807FB90 @ =gPlayerEntity adds r1, #0x3c ldrb r2, [r1] movs r0, #0xfb @@ -6214,8 +6214,8 @@ sub_0807FB74: @ 0x0807FB74 strb r0, [r1] bx lr .align 2, 0 -_0807FB8C: .4byte gLinkState -_0807FB90: .4byte gLinkEntity +_0807FB8C: .4byte gPlayerState +_0807FB90: .4byte gPlayerEntity thumb_func_start sub_0807FB94 sub_0807FB94: @ 0x0807FB94 @@ -6240,14 +6240,14 @@ _0807FBB0: .4byte gRoomControls thumb_func_start sub_0807FBB4 sub_0807FBB4: @ 0x0807FBB4 - ldr r2, _0807FBC0 @ =gLinkState + ldr r2, _0807FBC0 @ =gPlayerState ldrb r1, [r2, #0x1a] movs r0, #0x80 orrs r0, r1 strb r0, [r2, #0x1a] bx lr .align 2, 0 -_0807FBC0: .4byte gLinkState +_0807FBC0: .4byte gPlayerState thumb_func_start sub_0807FBC4 sub_0807FBC4: @ 0x0807FBC4 @@ -6595,21 +6595,21 @@ _0807FE26: subs r0, #4 strh r0, [r4, #0xc] ldr r1, [r4, #0x30] - ldr r0, _0807FE3C @ =gLinkEntity + ldr r0, _0807FE3C @ =gPlayerEntity cmp r1, r0 bne _0807FE80 ldr r0, [r1, #0x30] ldr r2, _0807FE40 @ =0xFFFFA000 b _0807FE7C .align 2, 0 -_0807FE3C: .4byte gLinkEntity +_0807FE3C: .4byte gPlayerEntity _0807FE40: .4byte 0xFFFFA000 _0807FE44: ldrh r0, [r4, #0xa] adds r0, #4 strh r0, [r4, #0xa] ldr r1, [r4, #0x30] - ldr r0, _0807FE64 @ =gLinkEntity + ldr r0, _0807FE64 @ =gPlayerEntity cmp r1, r0 bne _0807FE5C ldr r0, [r1, #0x2c] @@ -6623,13 +6623,13 @@ _0807FE5C: bne _0807FEB6 b _0807FE86 .align 2, 0 -_0807FE64: .4byte gLinkEntity +_0807FE64: .4byte gPlayerEntity _0807FE68: ldrh r0, [r4, #0xc] adds r0, #4 strh r0, [r4, #0xc] ldr r1, [r4, #0x30] - ldr r0, _0807FE90 @ =gLinkEntity + ldr r0, _0807FE90 @ =gPlayerEntity cmp r1, r0 bne _0807FE80 ldr r0, [r1, #0x30] @@ -6647,13 +6647,13 @@ _0807FE86: bl sub_0807FEC8 b _0807FEB6 .align 2, 0 -_0807FE90: .4byte gLinkEntity +_0807FE90: .4byte gPlayerEntity _0807FE94: ldrh r0, [r4, #0xa] subs r0, #4 strh r0, [r4, #0xa] ldr r1, [r4, #0x30] - ldr r0, _0807FEC0 @ =gLinkEntity + ldr r0, _0807FEC0 @ =gPlayerEntity cmp r1, r0 bne _0807FEAA ldr r0, [r1, #0x2c] @@ -6672,7 +6672,7 @@ _0807FEB6: bl sub_08080BC4 pop {r4, pc} .align 2, 0 -_0807FEC0: .4byte gLinkEntity +_0807FEC0: .4byte gPlayerEntity _0807FEC4: .4byte 0xFFFFC000 thumb_func_start sub_0807FEC8 @@ -6799,28 +6799,28 @@ sub_0807FF6C: @ 0x0807FF6C strh r1, [r0] adds r0, #4 strh r1, [r0] - bl ResetLink + bl ResetPlayer bl sub_080791D0 ldr r0, _0807FFCC @ =gUnk_03004030 ldrb r0, [r0, #8] cmp r0, #0 beq _0807FFD4 - ldr r1, _0807FFD0 @ =gLinkEntity + ldr r1, _0807FFD0 @ =gPlayerEntity movs r0, #4 strb r0, [r1, #0x14] b _0807FFD8 .align 2, 0 _0807FFC8: .4byte gScreen _0807FFCC: .4byte gUnk_03004030 -_0807FFD0: .4byte gLinkEntity +_0807FFD0: .4byte gPlayerEntity _0807FFD4: - ldr r0, _0807FFE0 @ =gLinkEntity + ldr r0, _0807FFE0 @ =gPlayerEntity strb r4, [r0, #0x14] _0807FFD8: bl sub_080809D4 pop {r4, pc} .align 2, 0 -_0807FFE0: .4byte gLinkEntity +_0807FFE0: .4byte gPlayerEntity thumb_func_start sub_0807FFE4 sub_0807FFE4: @ 0x0807FFE4 diff --git a/asm/code_080A29BC.s b/asm/code_080A29BC.s index a7eab04d..6d214977 100644 --- a/asm/code_080A29BC.s +++ b/asm/code_080A29BC.s @@ -222,13 +222,13 @@ _080A2C0E: beq _080A2CBA cmp r6, #0 beq _080A2CBA - ldr r0, _080A2C38 @ =gLinkEntity + ldr r0, _080A2C38 @ =gPlayerEntity lsls r1, r1, #8 movs r2, #0 bl sub_080044AE b _080A2CBA .align 2, 0 -_080A2C38: .4byte gLinkEntity +_080A2C38: .4byte gPlayerEntity _080A2C3C: ldrh r5, [r4, #0x2e] adds r0, r4, #0 @@ -243,13 +243,13 @@ _080A2C3C: beq _080A2CBA cmp r6, #0 beq _080A2CBA - ldr r0, _080A2C64 @ =gLinkEntity + ldr r0, _080A2C64 @ =gPlayerEntity lsls r1, r1, #8 movs r2, #8 bl sub_080044AE b _080A2CBA .align 2, 0 -_080A2C64: .4byte gLinkEntity +_080A2C64: .4byte gPlayerEntity _080A2C68: ldrh r5, [r4, #0x32] adds r0, r4, #0 @@ -264,13 +264,13 @@ _080A2C68: beq _080A2CBA cmp r6, #0 beq _080A2CBA - ldr r0, _080A2C90 @ =gLinkEntity + ldr r0, _080A2C90 @ =gPlayerEntity lsls r1, r1, #8 movs r2, #0x10 bl sub_080044AE b _080A2CBA .align 2, 0 -_080A2C90: .4byte gLinkEntity +_080A2C90: .4byte gPlayerEntity _080A2C94: ldrh r5, [r4, #0x2e] adds r0, r4, #0 @@ -285,14 +285,14 @@ _080A2C94: beq _080A2CBA cmp r6, #0 beq _080A2CBA - ldr r0, _080A2CBC @ =gLinkEntity + ldr r0, _080A2CBC @ =gPlayerEntity lsls r1, r1, #8 movs r2, #0x18 bl sub_080044AE _080A2CBA: pop {r4, r5, r6, pc} .align 2, 0 -_080A2CBC: .4byte gLinkEntity +_080A2CBC: .4byte gPlayerEntity thumb_func_start sub_080A2CC0 sub_080A2CC0: @ 0x080A2CC0 @@ -422,7 +422,7 @@ _080A2D94: .4byte gUnk_081271D4 sub_080A2D98: @ 0x080A2D98 push {r4, lr} adds r4, r0, #0 - ldr r0, _080A2DD0 @ =gLinkState + ldr r0, _080A2DD0 @ =gPlayerState str r4, [r0, #0x2c] movs r2, #0 movs r0, #1 @@ -449,12 +449,12 @@ sub_080A2D98: @ 0x080A2D98 str r1, [r4, #0x7c] b _080A2DDA .align 2, 0 -_080A2DD0: .4byte gLinkState +_080A2DD0: .4byte gPlayerState _080A2DD4: .4byte gUnk_081271DC _080A2DD8: str r2, [r4, #0x70] _080A2DDA: - ldr r0, _080A2DFC @ =gLinkEntity + ldr r0, _080A2DFC @ =gPlayerEntity ldrb r1, [r0, #0x14] movs r0, #0xe ands r0, r1 @@ -469,13 +469,13 @@ _080A2DDA: bl sub_080A2E00 pop {r4, pc} .align 2, 0 -_080A2DFC: .4byte gLinkEntity +_080A2DFC: .4byte gPlayerEntity thumb_func_start sub_080A2E00 sub_080A2E00: @ 0x080A2E00 push {r4, r5, r6, r7, lr} adds r4, r0, #0 - ldr r0, _080A2E90 @ =gLinkEntity + ldr r0, _080A2E90 @ =gPlayerEntity mov ip, r0 mov r1, ip adds r1, #0x3d @@ -507,7 +507,7 @@ _080A2E1A: strb r2, [r3] strb r2, [r5] _080A2E40: - ldr r0, _080A2E94 @ =gLinkState + ldr r0, _080A2E94 @ =gPlayerState ldrb r3, [r0, #3] adds r7, r0, #0 cmp r3, #0 @@ -527,7 +527,7 @@ _080A2E40: adds r0, r0, r1 ldr r0, [r0] str r0, [r4, #0x48] - ldr r0, _080A2E90 @ =gLinkEntity + ldr r0, _080A2E90 @ =gPlayerEntity adds r0, #0x3c ldrb r0, [r0] adds r0, #1 @@ -547,8 +547,8 @@ _080A2E40: bl sub_080176E4 b _080A2F30 .align 2, 0 -_080A2E90: .4byte gLinkEntity -_080A2E94: .4byte gLinkState +_080A2E90: .4byte gPlayerEntity +_080A2E94: .4byte gPlayerState _080A2E98: .4byte gUnk_08127240 _080A2E9C: adds r0, r4, #0 @@ -626,7 +626,7 @@ _080A2F20: _080A2F2C: bl DeleteThisEntity _080A2F30: - ldr r6, _080A301C @ =gLinkEntity + ldr r6, _080A301C @ =gPlayerEntity ldrh r0, [r6, #0x12] cmp r0, #1 beq _080A2F3E @@ -689,7 +689,7 @@ _080A2FA2: ldrb r0, [r5] cmp r0, #0xe bne _080A303E - ldr r0, _080A301C @ =gLinkEntity + ldr r0, _080A301C @ =gPlayerEntity adds r0, #0x5a ldrb r1, [r0] movs r0, #0x7f @@ -708,7 +708,7 @@ _080A2FA2: ldr r1, [r4, #0x7c] adds r2, r1, r0 ldrb r0, [r2] - ldr r7, _080A3020 @ =gLinkState + ldr r7, _080A3020 @ =gPlayerState cmp r0, #0xff bne _080A2FEC ldrb r1, [r7, #3] @@ -735,7 +735,7 @@ _080A2FEC: ands r0, r1 cmp r0, #0 beq _080A3028 - ldr r0, _080A301C @ =gLinkEntity + ldr r0, _080A301C @ =gPlayerEntity adds r0, #0x5a ldrb r0, [r0] movs r1, #0x7f @@ -748,11 +748,11 @@ _080A2FEC: bl sub_080042D0 b _080A303E .align 2, 0 -_080A301C: .4byte gLinkEntity -_080A3020: .4byte gLinkState +_080A301C: .4byte gPlayerEntity +_080A3020: .4byte gPlayerState _080A3024: .4byte gUnk_081271DC _080A3028: - ldr r0, _080A3060 @ =gLinkEntity + ldr r0, _080A3060 @ =gPlayerEntity adds r0, #0x5a ldrb r0, [r0] movs r1, #0x7f @@ -763,7 +763,7 @@ _080A3028: adds r0, r4, #0 bl sub_080042D0 _080A303E: - ldr r1, _080A3060 @ =gLinkEntity + ldr r1, _080A3060 @ =gPlayerEntity adds r0, r1, #0 adds r0, #0x5a ldrb r0, [r0] @@ -779,7 +779,7 @@ _080A303E: bl sub_08078E84 b _080A3068 .align 2, 0 -_080A3060: .4byte gLinkEntity +_080A3060: .4byte gPlayerEntity _080A3064: movs r0, #0xff strb r0, [r4, #0x1e] @@ -819,7 +819,7 @@ sub_080A3084: @ 0x080A3084 ldrb r0, [r4, #0xa] cmp r0, #0 bne _080A30F8 - ldr r0, _080A30EC @ =gLinkEntity + ldr r0, _080A30EC @ =gPlayerEntity adds r0, #0x3c ldrb r0, [r0] adds r0, #1 @@ -851,7 +851,7 @@ _080A30CC: bl PlaySFX b _080A30FC .align 2, 0 -_080A30EC: .4byte gLinkEntity +_080A30EC: .4byte gPlayerEntity _080A30F0: .4byte gUnk_08127278 _080A30F4: .4byte 0x0000013F _080A30F8: @@ -920,7 +920,7 @@ _080A315C: ands r1, r3 lsls r1, r1, #6 orrs r0, r1 - ldr r1, _080A31F4 @ =gLinkEntity + ldr r1, _080A31F4 @ =gPlayerEntity adds r1, #0x38 ldrb r1, [r1] movs r2, #0x80 @@ -974,7 +974,7 @@ _080A31D6: b _080A3200 .align 2, 0 _080A31F0: .4byte gRoomControls -_080A31F4: .4byte gLinkEntity +_080A31F4: .4byte gPlayerEntity _080A31F8: .4byte gUnk_08003E44 _080A31FC: bl DeleteThisEntity diff --git a/asm/code_080A5574.s b/asm/code_080A5574.s index e6f6a7cc..c49c5872 100644 --- a/asm/code_080A5574.s +++ b/asm/code_080A5574.s @@ -1835,7 +1835,7 @@ _080A6392: bl __divsi3 adds r0, #0xc strh r0, [r5, #2] - ldr r0, _080A642C @ =gLinkState + ldr r0, _080A642C @ =gPlayerState ldr r0, [r0, #0x30] movs r1, #8 ands r0, r1 @@ -1875,7 +1875,7 @@ _080A63EA: _080A6420: .4byte gMenu _080A6424: .4byte gUnk_03001010 _080A6428: .4byte gScreenTransition -_080A642C: .4byte gLinkState +_080A642C: .4byte gPlayerState _080A6430: .4byte 0x000001FB _080A6434: .4byte gUnk_08128DE8 @@ -2459,7 +2459,7 @@ _080A68D0: .4byte gUnk_02019EE0 thumb_func_start sub_080A68D4 sub_080A68D4: @ 0x080A68D4 push {r4, r5, r6, lr} - ldr r0, _080A690C @ =gLinkState + ldr r0, _080A690C @ =gPlayerState ldr r0, [r0, #0x30] movs r1, #8 ands r0, r1 @@ -2485,7 +2485,7 @@ _080A68E6: movs r5, #0 b _080A693A .align 2, 0 -_080A690C: .4byte gLinkState +_080A690C: .4byte gPlayerState _080A6910: .4byte gScreenTransition _080A6914: .4byte 0x000001FB _080A6918: .4byte gUnk_02002A40 @@ -2791,7 +2791,7 @@ sub_080A6B04: @ 0x080A6B04 movs r2, #0x80 lsls r2, r2, #5 bl _DmaFill16 - ldr r0, _080A6C0C @ =gLinkState + ldr r0, _080A6C0C @ =gPlayerState ldr r0, [r0, #0x30] movs r1, #8 ands r0, r1 @@ -2858,7 +2858,7 @@ _080A6BFC: .4byte gMenu _080A6C00: .4byte 0x0000475F _080A6C04: .4byte 0x00005001 _080A6C08: .4byte gUnk_02001A40 -_080A6C0C: .4byte gLinkState +_080A6C0C: .4byte gPlayerState _080A6C10: .4byte gScreenTransition _080A6C14: .4byte 0x000001FB _080A6C18: .4byte gUnk_08128E94 @@ -3128,7 +3128,7 @@ sub_080A6DF8: @ 0x080A6DF8 _080A6E14: .4byte gMenu _080A6E18: bl sub_080791D0 - ldr r0, _080A6E3C @ =gLinkEntity + ldr r0, _080A6E3C @ =gPlayerEntity adds r1, r0, #0 adds r1, #0x58 ldrb r1, [r1] @@ -3143,7 +3143,7 @@ _080A6E18: _080A6E3A: pop {pc} .align 2, 0 -_080A6E3C: .4byte gLinkEntity +_080A6E3C: .4byte gPlayerEntity _080A6E40: .4byte gUnk_02034490 thumb_func_start sub_080A6E44 @@ -3722,7 +3722,7 @@ sub_080A7250: @ 0x080A7250 adds r0, #0x2f ldrb r0, [r0] strb r0, [r1, #0xd] - ldr r0, _080A7318 @ =gLinkState + ldr r0, _080A7318 @ =gPlayerState adds r0, #0x8b ldrb r0, [r0] strb r0, [r1, #0xc] @@ -3752,7 +3752,7 @@ _080A7308: .4byte gRoomControls _080A730C: .4byte gUnk_03000420 _080A7310: .4byte gUnk_02033280 _080A7314: .4byte gScreenTransition -_080A7318: .4byte gLinkState +_080A7318: .4byte gPlayerState _080A731C: .4byte gUnk_02017654 _080A7320: .4byte gUnk_02025EB0 _080A7324: .4byte gUnk_0200B650 @@ -3823,7 +3823,7 @@ _080A73B4: ldr r5, _080A7470 @ =gUnk_02032EC0 ldr r0, [r5, #0x10] str r0, [r1] - ldr r0, _080A7474 @ =gLinkState + ldr r0, _080A7474 @ =gPlayerState ldrb r1, [r5, #0xc] adds r0, #0x8b strb r1, [r0] @@ -3896,7 +3896,7 @@ _080A73B4: _080A7468: .4byte gUnk_03000FD0 _080A746C: .4byte gUnk_02017654 _080A7470: .4byte gUnk_02032EC0 -_080A7474: .4byte gLinkState +_080A7474: .4byte gPlayerState _080A7478: .4byte gUnk_02025EB0 _080A747C: .4byte gUnk_0200B650 _080A7480: .4byte gUnk_02033280 @@ -3996,7 +3996,7 @@ sub_080A7544: @ 0x080A7544 ldrb r0, [r4, #0xa] cmp r0, #0 bne _080A7582 - ldr r1, _080A7588 @ =gLinkEntity + ldr r1, _080A7588 @ =gPlayerEntity adds r0, r4, #0 bl sub_08078E84 ldr r1, [r4, #0x48] @@ -4017,7 +4017,7 @@ _080A7582: pop {r4, pc} .align 2, 0 _080A7584: .4byte gUnk_0812905C -_080A7588: .4byte gLinkEntity +_080A7588: .4byte gPlayerEntity thumb_func_start sub_080A758C sub_080A758C: @ 0x080A758C @@ -4026,7 +4026,7 @@ sub_080A758C: @ 0x080A758C ldrb r0, [r5, #0xa] cmp r0, #0 bne _080A75AC - ldr r1, _080A7654 @ =gLinkState + ldr r1, _080A7654 @ =gPlayerState ldrb r0, [r1, #4] cmp r0, #0 bne _080A75AC @@ -4047,7 +4047,7 @@ _080A75BA: movs r1, #1 movs r2, #3 bl sub_080AE008 - ldr r1, _080A7658 @ =gLinkEntity + ldr r1, _080A7658 @ =gPlayerEntity adds r0, r1, #0 adds r0, #0x3c ldrb r0, [r0] @@ -4087,7 +4087,7 @@ _080A75BA: ldrb r0, [r5, #0xa] cmp r0, #0 bne _080A76BC - ldr r2, _080A7654 @ =gLinkState + ldr r2, _080A7654 @ =gPlayerState ldrb r1, [r2, #2] movs r0, #0x20 ands r0, r1 @@ -4119,8 +4119,8 @@ _080A75BA: movs r0, #0x1a b _080A766A .align 2, 0 -_080A7654: .4byte gLinkState -_080A7658: .4byte gLinkEntity +_080A7654: .4byte gPlayerState +_080A7658: .4byte gPlayerEntity _080A765C: adds r1, r5, #0 adds r1, #0x40 @@ -4151,7 +4151,7 @@ _080A767A: adds r0, r5, #0 bl sub_080A76CC _080A7692: - ldr r0, _080A76B0 @ =gLinkState + ldr r0, _080A76B0 @ =gPlayerState str r5, [r0, #0x2c] adds r0, r5, #0 bl sub_08079BD8 @@ -4164,7 +4164,7 @@ _080A7692: bl PlaySFX b _080A76C2 .align 2, 0 -_080A76B0: .4byte gLinkState +_080A76B0: .4byte gPlayerState _080A76B4: .4byte gUnk_0812906C _080A76B8: .4byte gUnk_08129068 _080A76BC: @@ -4185,7 +4185,7 @@ sub_080A76CC: @ 0x080A76CC beq _080A76D8 b _080A77DC _080A76D8: - ldr r5, _080A771C @ =gLinkState + ldr r5, _080A771C @ =gPlayerState ldr r0, [r5, #0x2c] cmp r0, r4 beq _080A76E4 @@ -4219,7 +4219,7 @@ _080A76F2: movs r0, #0xa b _080A7726 .align 2, 0 -_080A771C: .4byte gLinkState +_080A771C: .4byte gPlayerState _080A7720: movs r0, #8 b _080A7726 @@ -4228,7 +4228,7 @@ _080A7724: _080A7726: strb r0, [r1] _080A7728: - ldr r0, _080A7740 @ =gLinkEntity + ldr r0, _080A7740 @ =gPlayerEntity adds r0, #0x5a ldrb r1, [r0] movs r0, #0x20 @@ -4240,7 +4240,7 @@ _080A7728: bl PlaySFX b _080A77C4 .align 2, 0 -_080A7740: .4byte gLinkEntity +_080A7740: .4byte gPlayerEntity _080A7744: ldr r0, [r5, #0x30] movs r1, #0x80 @@ -4264,14 +4264,14 @@ _080A7762: _080A7768: strb r0, [r1] _080A776A: - ldr r0, _080A77D0 @ =gLinkState + ldr r0, _080A77D0 @ =gPlayerState adds r0, #0x3e ldrb r0, [r0] movs r2, #3 ands r2, r0 cmp r2, #0 beq _080A77C4 - ldr r0, _080A77D4 @ =gLinkEntity + ldr r0, _080A77D4 @ =gPlayerEntity adds r0, #0x5a ldrb r1, [r0] movs r0, #0x40 @@ -4311,16 +4311,16 @@ _080A77BE: adds r0, r0, r1 strh r0, [r2, #0x2e] _080A77C4: - ldr r1, _080A77D4 @ =gLinkEntity + ldr r1, _080A77D4 @ =gPlayerEntity adds r0, r4, #0 bl sub_080A78B8 b _080A7806 .align 2, 0 -_080A77D0: .4byte gLinkState -_080A77D4: .4byte gLinkEntity +_080A77D0: .4byte gPlayerState +_080A77D4: .4byte gPlayerEntity _080A77D8: .4byte gUnk_081292E2 _080A77DC: - ldr r1, _080A7810 @ =gLinkState + ldr r1, _080A7810 @ =gPlayerState ldrb r0, [r1, #4] cmp r0, #0 beq _080A7814 @@ -4345,7 +4345,7 @@ _080A7806: bl sub_080A7A84 b _080A7820 .align 2, 0 -_080A7810: .4byte gLinkState +_080A7810: .4byte gPlayerState _080A7814: movs r0, #0xff strb r0, [r4, #0x1e] @@ -4361,7 +4361,7 @@ _080A7820: sub_080A7824: @ 0x080A7824 push {r4, r5, r6, lr} adds r4, r0, #0 - ldr r5, _080A7860 @ =gLinkState + ldr r5, _080A7860 @ =gPlayerState ldr r0, [r5, #0x2c] cmp r0, r4 beq _080A7834 @@ -4376,7 +4376,7 @@ _080A7834: str r0, [r5, #0x2c] bl DeleteThisEntity _080A7846: - ldr r2, _080A7864 @ =gLinkEntity + ldr r2, _080A7864 @ =gPlayerEntity adds r6, r2, #0 adds r6, #0x5a ldrb r1, [r6] @@ -4389,8 +4389,8 @@ _080A7846: bl DeleteThisEntity b _080A78B4 .align 2, 0 -_080A7860: .4byte gLinkState -_080A7864: .4byte gLinkEntity +_080A7860: .4byte gPlayerState +_080A7864: .4byte gPlayerEntity _080A7868: adds r0, r4, #0 adds r1, r2, #0 @@ -4441,7 +4441,7 @@ sub_080A78B8: @ 0x080A78B8 push {r7} adds r4, r0, #0 adds r6, r1, #0 - ldr r0, _080A78E8 @ =gLinkState + ldr r0, _080A78E8 @ =gPlayerState ldrb r1, [r0, #0x1b] movs r0, #0x20 ands r0, r1 @@ -4461,7 +4461,7 @@ sub_080A78B8: @ 0x080A78B8 adds r1, #0xb1 b _080A78F2 .align 2, 0 -_080A78E8: .4byte gLinkState +_080A78E8: .4byte gPlayerState _080A78EC: .4byte gScreenTransition _080A78F0: ldrb r1, [r4, #0x1e] @@ -4482,7 +4482,7 @@ _080A78FC: adds r0, r4, #0 bl sub_080042D0 _080A7912: - ldr r2, _080A792C @ =gLinkState + ldr r2, _080A792C @ =gPlayerState ldrb r1, [r2, #0x1b] movs r0, #0x40 ands r0, r1 @@ -4495,7 +4495,7 @@ _080A7912: ands r0, r1 b _080A7958 .align 2, 0 -_080A792C: .4byte gLinkState +_080A792C: .4byte gPlayerState _080A7930: ldrb r1, [r6, #0x14] movs r0, #2 @@ -4657,7 +4657,7 @@ _080A7A4C: thumb_func_start sub_080A7A54 sub_080A7A54: @ 0x080A7A54 - ldr r1, _080A7A7C @ =gLinkEntity + ldr r1, _080A7A7C @ =gPlayerEntity ldrb r1, [r1, #0x1e] subs r1, #0x6a lsls r1, r1, #2 @@ -4677,14 +4677,14 @@ sub_080A7A54: @ 0x080A7A54 strb r0, [r2, #7] bx lr .align 2, 0 -_080A7A7C: .4byte gLinkEntity +_080A7A7C: .4byte gPlayerEntity _080A7A80: .4byte gUnk_08129096 thumb_func_start sub_080A7A84 sub_080A7A84: @ 0x080A7A84 push {r4, r5, r6, r7, lr} adds r4, r0, #0 - ldr r6, _080A7AE0 @ =gLinkEntity + ldr r6, _080A7AE0 @ =gPlayerEntity adds r0, r6, #0 adds r0, #0x5a ldrb r0, [r0] @@ -4702,7 +4702,7 @@ sub_080A7A84: @ 0x080A7A84 adds r0, r0, r2 movs r5, #0 ldrsb r5, [r0, r5] - ldr r2, _080A7AE8 @ =gLinkState + ldr r2, _080A7AE8 @ =gPlayerState ldrb r1, [r2, #0x1b] movs r0, #0xc0 ands r0, r1 @@ -4729,9 +4729,9 @@ _080A7AC4: bl sub_08008796 b _080A7B8C .align 2, 0 -_080A7AE0: .4byte gLinkEntity +_080A7AE0: .4byte gPlayerEntity _080A7AE4: .4byte gUnk_08129072 -_080A7AE8: .4byte gLinkState +_080A7AE8: .4byte gPlayerState _080A7AEC: ldr r0, [r4, #0x34] cmp r0, #0 @@ -4769,15 +4769,15 @@ _080A7AEC: bl sub_080002B4 cmp r0, #0x2e bne _080A7B4C - ldr r0, _080A7B44 @ =gLinkEntity + ldr r0, _080A7B44 @ =gPlayerEntity ldr r1, _080A7B48 @ =0x00000119 bl sub_0800449C b _080A7B54 .align 2, 0 -_080A7B44: .4byte gLinkEntity +_080A7B44: .4byte gPlayerEntity _080A7B48: .4byte 0x00000119 _080A7B4C: - ldr r0, _080A7B90 @ =gLinkEntity + ldr r0, _080A7B90 @ =gPlayerEntity movs r1, #0x74 bl sub_0800449C _080A7B54: @@ -4811,7 +4811,7 @@ _080A7B54: _080A7B8C: pop {r4, r5, r6, r7, pc} .align 2, 0 -_080A7B90: .4byte gLinkEntity +_080A7B90: .4byte gPlayerEntity _080A7B94: .4byte gUnk_0812908E thumb_func_start sub_080A7B98 @@ -4822,7 +4822,7 @@ sub_080A7B98: @ 0x080A7B98 mov r5, r8 push {r5, r6, r7} adds r6, r0, #0 - ldr r0, _080A7BFC @ =gLinkState + ldr r0, _080A7BFC @ =gPlayerState adds r0, #0xac ldrh r1, [r0] movs r0, #8 @@ -4868,7 +4868,7 @@ _080A7BCE: mov sl, r5 pop {r4, r5, r6, r7, pc} .align 2, 0 -_080A7BFC: .4byte gLinkState +_080A7BFC: .4byte gPlayerState thumb_func_start CreateItemEntity CreateItemEntity: @ 0x080A7C00 @@ -4891,7 +4891,7 @@ sub_080A7C18: @ 0x080A7C18 adds r2, r0, #0 cmp r2, #0 beq _080A7C32 - ldr r0, _080A7C34 @ =gLinkEntity + ldr r0, _080A7C34 @ =gPlayerEntity str r0, [r2, #0x50] ldrb r1, [r2, #0xa] adds r0, r2, #0 @@ -4900,7 +4900,7 @@ sub_080A7C18: @ 0x080A7C18 _080A7C32: pop {pc} .align 2, 0 -_080A7C34: .4byte gLinkEntity +_080A7C34: .4byte gPlayerEntity thumb_func_start GiveItemWithCutscene GiveItemWithCutscene: @ 0x080A7C38 @@ -5331,7 +5331,7 @@ _080A7F38: cmp r0, #0 beq _080A7F56 ldr r1, [r4, #0x4c] - ldr r0, _080A7F7C @ =gLinkEntity + ldr r0, _080A7F7C @ =gPlayerEntity cmp r1, r0 bne _080A7F56 adds r1, r4, #0 @@ -5357,7 +5357,7 @@ _080A7F56: _080A7F7A: pop {r4, pc} .align 2, 0 -_080A7F7C: .4byte gLinkEntity +_080A7F7C: .4byte gPlayerEntity thumb_func_start sub_080A7F80 sub_080A7F80: @ 0x080A7F80 @@ -6393,7 +6393,7 @@ _080A8700: ands r0, r1 cmp r0, #3 bne _080A8768 - ldr r0, _080A875C @ =gLinkState + ldr r0, _080A875C @ =gPlayerState ldrb r0, [r0, #0xf] cmp r0, #0 beq _080A876E @@ -6412,7 +6412,7 @@ _080A8700: ands r1, r3 lsls r1, r1, #6 orrs r0, r1 - ldr r1, _080A8764 @ =gLinkEntity + ldr r1, _080A8764 @ =gPlayerEntity adds r1, #0x38 ldrb r1, [r1] bl sub_080002E0 @@ -6430,9 +6430,9 @@ _080A8700: bl DeleteThisEntity b _080A876E .align 2, 0 -_080A875C: .4byte gLinkState +_080A875C: .4byte gPlayerState _080A8760: .4byte gRoomControls -_080A8764: .4byte gLinkEntity +_080A8764: .4byte gPlayerEntity _080A8768: adds r0, r4, #0 bl DeleteEntity @@ -6549,7 +6549,7 @@ sub_080A881C: @ 0x080A881C ldrb r0, [r0] cmp r0, #0x80 bne _080A884A - ldr r0, _080A8850 @ =gLinkState + ldr r0, _080A8850 @ =gPlayerState movs r1, #0xf0 strb r1, [r0, #0xf] movs r0, #2 @@ -6559,7 +6559,7 @@ _080A884A: bl DeleteThisEntity b _080A8866 .align 2, 0 -_080A8850: .4byte gLinkState +_080A8850: .4byte gPlayerState _080A8854: ldrb r0, [r1, #0xc] cmp r0, #1 @@ -6713,7 +6713,7 @@ _080A8962: ldrh r0, [r4, #0x36] adds r0, #0xe strh r0, [r4, #0x36] - ldr r1, _080A8984 @ =gLinkEntity + ldr r1, _080A8984 @ =gPlayerEntity adds r0, r4, #0 movs r2, #0xe movs r3, #0xe @@ -6728,7 +6728,7 @@ _080A8962: _080A8982: pop {r4, r5, r6, pc} .align 2, 0 -_080A8984: .4byte gLinkEntity +_080A8984: .4byte gPlayerEntity thumb_func_start sub_080A8988 sub_080A8988: @ 0x080A8988 @@ -7403,7 +7403,7 @@ _080A8E88: bge _080A8E8E b _080A8FAE _080A8E8E: - ldr r0, _080A8EC0 @ =gLinkEntity + ldr r0, _080A8EC0 @ =gPlayerEntity movs r2, #0x2e ldrsh r1, [r0, r2] movs r3, #0x32 @@ -7426,7 +7426,7 @@ _080A8E8E: adds r4, r4, r2 b _080A8ECE .align 2, 0 -_080A8EC0: .4byte gLinkEntity +_080A8EC0: .4byte gPlayerEntity _080A8EC4: .4byte 0x000001FF _080A8EC8: .4byte gScreenTransition _080A8ECC: @@ -7582,7 +7582,7 @@ _080A8FE8: bne _080A901C movs r0, #0x1e strb r0, [r4, #0xf] - ldr r1, _080A9048 @ =gLinkEntity + ldr r1, _080A9048 @ =gPlayerEntity adds r0, r4, #0 bl GetFacingDirection adds r1, r0, #0 @@ -7608,7 +7608,7 @@ _080A901C: bl InitializeAnimation b _080A9054 .align 2, 0 -_080A9048: .4byte gLinkEntity +_080A9048: .4byte gPlayerEntity _080A904C: adds r0, r4, #0 movs r1, #0x52 @@ -7781,7 +7781,7 @@ _080A917C: cmp r0, #0 beq _080A9198 ldr r1, [r5, #0x4c] - ldr r0, _080A91A0 @ =gLinkEntity + ldr r0, _080A91A0 @ =gPlayerEntity cmp r1, r0 bne _080A9198 adds r0, r5, #0 @@ -7791,7 +7791,7 @@ _080A9198: bl DeleteEntity b _080A91D8 .align 2, 0 -_080A91A0: .4byte gLinkEntity +_080A91A0: .4byte gPlayerEntity _080A91A4: ldr r1, _080A91DC @ =gUnk_08129998 ldrb r0, [r4, #0x14] @@ -8513,7 +8513,7 @@ _080A96F8: bl InitializeAnimation b _080A9756 _080A9718: - ldr r0, _080A9760 @ =gLinkEntity + ldr r0, _080A9760 @ =gPlayerEntity adds r1, r4, #0 bl CopyPosition ldr r0, _080A9764 @ =0xFF600000 @@ -8544,7 +8544,7 @@ _080A9756: bl PlaySFX pop {r4, r5, pc} .align 2, 0 -_080A9760: .4byte gLinkEntity +_080A9760: .4byte gPlayerEntity _080A9764: .4byte 0xFF600000 _080A9768: .4byte 0x000001B5 @@ -9374,7 +9374,7 @@ sub_080A9D2C: @ 0x080A9D2C movs r0, #2 rsbs r0, r0, #0 bl ModHealth - ldr r0, _080A9D68 @ =gLinkEntity + ldr r0, _080A9D68 @ =gPlayerEntity movs r1, #0x7a bl sub_0800449C bl sub_08079D84 @@ -9387,7 +9387,7 @@ _080A9D56: _080A9D64: pop {r4, pc} .align 2, 0 -_080A9D68: .4byte gLinkEntity +_080A9D68: .4byte gPlayerEntity thumb_func_start sub_080A9D6C sub_080A9D6C: @ 0x080A9D6C @@ -10728,7 +10728,7 @@ sub_080AA78C: @ 0x080AA78C ldrb r0, [r4, #0xd] cmp r0, #0 bne _080AA7DA - ldr r0, _080AA7C8 @ =gLinkEntity + ldr r0, _080AA7C8 @ =gPlayerEntity ldrb r0, [r0, #0x14] lsrs r2, r0, #1 ldrb r0, [r4, #0xa] @@ -10753,7 +10753,7 @@ sub_080AA78C: @ 0x080AA78C bl sub_080AA6C0 b _080AA832 .align 2, 0 -_080AA7C8: .4byte gLinkEntity +_080AA7C8: .4byte gPlayerEntity _080AA7CC: movs r0, #1 strb r0, [r4, #0xd] @@ -10881,7 +10881,7 @@ _080AA8B4: .4byte gUnk_0812A05C sub_080AA8B8: @ 0x080AA8B8 push {r4, r5, r6, r7, lr} adds r4, r0, #0 - ldr r7, _080AA99C @ =gLinkEntity + ldr r7, _080AA99C @ =gPlayerEntity adds r0, #0x84 ldrb r0, [r0] cmp r0, #0 @@ -10936,7 +10936,7 @@ _080AA920: ldrb r2, [r4, #0xa] cmp r0, r2 bne _080AA99A - ldr r1, _080AA9A4 @ =gLinkState + ldr r1, _080AA9A4 @ =gPlayerState adds r0, r1, #0 adds r0, #0xa8 ldrb r0, [r0] @@ -10948,7 +10948,7 @@ _080AA920: ands r0, r1 cmp r0, #0 beq _080AA99A - ldr r0, _080AA99C @ =gLinkEntity + ldr r0, _080AA99C @ =gPlayerEntity adds r0, #0x5a ldrb r1, [r0] adds r0, r2, #0 @@ -10993,9 +10993,9 @@ _080AA920: _080AA99A: pop {r4, r5, r6, r7, pc} .align 2, 0 -_080AA99C: .4byte gLinkEntity +_080AA99C: .4byte gPlayerEntity _080AA9A0: .4byte gUnk_0812A064 -_080AA9A4: .4byte gLinkState +_080AA9A4: .4byte gPlayerState _080AA9A8: .4byte gUnk_0812A06C thumb_func_start sub_080AA9AC @@ -11037,16 +11037,16 @@ sub_080AA9E0: @ 0x080AA9E0 ands r0, r1 cmp r0, #0 beq _080AAA00 - ldr r0, _080AA9FC @ =gLinkEntity + ldr r0, _080AA9FC @ =gPlayerEntity movs r2, #0x2e ldrsh r1, [r0, r2] movs r2, #0x2e ldrsh r0, [r5, r2] b _080AAA0A .align 2, 0 -_080AA9FC: .4byte gLinkEntity +_080AA9FC: .4byte gPlayerEntity _080AAA00: - ldr r0, _080AAA24 @ =gLinkEntity + ldr r0, _080AAA24 @ =gPlayerEntity movs r2, #0x32 ldrsh r1, [r0, r2] movs r2, #0x32 @@ -11065,7 +11065,7 @@ _080AAA0A: beq _080AAA30 b _080AAA40 .align 2, 0 -_080AAA24: .4byte gLinkEntity +_080AAA24: .4byte gPlayerEntity _080AAA28: .4byte gUnk_0812A074 _080AAA2C: cmp r2, #3 @@ -11381,19 +11381,19 @@ sub_080AAC44: @ 0x080AAC44 ldrb r0, [r4, #0xa] cmp r0, #0 bne _080AAC84 - ldr r0, _080AAC80 @ =gLinkEntity + ldr r0, _080AAC80 @ =gPlayerEntity adds r1, r4, #0 bl ResolveEntityOnTop b _080AAC8C .align 2, 0 -_080AAC80: .4byte gLinkEntity +_080AAC80: .4byte gPlayerEntity _080AAC84: ldr r0, [r4, #0x50] adds r1, r4, #0 bl ResolveEntityOnTop _080AAC8C: - bl ResetLink - ldr r2, _080AACB4 @ =gLinkState + bl ResetPlayer + ldr r2, _080AACB4 @ =gPlayerState ldrb r1, [r2, #0x1a] movs r0, #0x80 orrs r1, r0 @@ -11402,7 +11402,7 @@ _080AAC8C: orrs r0, r1 strb r0, [r2, #0xa] _080AACA0: - ldr r0, _080AACB8 @ =gLinkEntity + ldr r0, _080AACB8 @ =gPlayerEntity adds r0, #0x45 ldrb r1, [r0] cmp r1, #0 @@ -11412,8 +11412,8 @@ _080AACA0: strb r1, [r0] b _080AACCA .align 2, 0 -_080AACB4: .4byte gLinkState -_080AACB8: .4byte gLinkEntity +_080AACB4: .4byte gPlayerState +_080AACB8: .4byte gPlayerEntity _080AACBC: ldr r0, _080AACDC @ =0x00000119 bl PlaySFX @@ -11620,7 +11620,7 @@ _080AADE0: ands r0, r1 orrs r0, r3 strb r0, [r2] - ldr r1, _080AAE60 @ =gLinkEntity + ldr r1, _080AAE60 @ =gPlayerEntity adds r0, r5, #0 bl GetFacingDirection strb r0, [r5, #0x15] @@ -11644,7 +11644,7 @@ _080AADE0: str r5, [r1, #0x50] b _080AAE7C .align 2, 0 -_080AAE60: .4byte gLinkEntity +_080AAE60: .4byte gPlayerEntity _080AAE64: ldr r0, [r5, #0x50] adds r1, r5, #0 @@ -11688,7 +11688,7 @@ _080AAEA2: bne _080AAEC2 movs r0, #4 strb r0, [r4, #0xf] - ldr r1, _080AAECC @ =gLinkEntity + ldr r1, _080AAECC @ =gPlayerEntity adds r0, r4, #0 bl GetFacingDirection adds r1, r0, #0 @@ -11699,7 +11699,7 @@ _080AAEC2: bl sub_0806F69C b _080AAEF6 .align 2, 0 -_080AAECC: .4byte gLinkEntity +_080AAECC: .4byte gPlayerEntity _080AAED0: ldr r0, [r4, #0x50] cmp r0, #0 @@ -11816,7 +11816,7 @@ _080AAF94: bne _080AAFCC movs r0, #0x1e strb r0, [r5, #0xe] - ldr r4, _080AAFFC @ =gLinkEntity + ldr r4, _080AAFFC @ =gPlayerEntity adds r1, r4, #0 adds r1, #0x3d movs r0, #8 @@ -11849,22 +11849,22 @@ _080AAFE0: movs r0, #1 strb r0, [r5, #0xc] strb r2, [r1] - ldr r0, _080AAFFC @ =gLinkEntity + ldr r0, _080AAFFC @ =gPlayerEntity adds r0, #0x3d movs r1, #0xf0 strb r1, [r0] - ldr r0, _080AB000 @ =gLinkState + ldr r0, _080AB000 @ =gPlayerState strb r2, [r0, #0x1a] adds r0, r5, #0 adds r0, #0x45 strb r2, [r0] b _080AB028 .align 2, 0 -_080AAFFC: .4byte gLinkEntity -_080AB000: .4byte gLinkState +_080AAFFC: .4byte gPlayerEntity +_080AB000: .4byte gPlayerState _080AB004: - bl ResetLink - ldr r2, _080AB02C @ =gLinkState + bl ResetPlayer + ldr r2, _080AB02C @ =gPlayerState ldrb r1, [r2, #0x1a] movs r0, #0x80 orrs r1, r0 @@ -11872,7 +11872,7 @@ _080AB004: ldrb r1, [r2, #0xa] orrs r0, r1 strb r0, [r2, #0xa] - ldr r4, _080AB030 @ =gLinkEntity + ldr r4, _080AB030 @ =gPlayerEntity adds r0, r4, #0 adds r1, r5, #0 bl CopyPosition @@ -11882,8 +11882,8 @@ _080AB004: _080AB028: pop {r4, r5, pc} .align 2, 0 -_080AB02C: .4byte gLinkState -_080AB030: .4byte gLinkEntity +_080AB02C: .4byte gPlayerState +_080AB030: .4byte gPlayerEntity thumb_func_start sub_080AB034 sub_080AB034: @ 0x080AB034 @@ -13568,7 +13568,7 @@ sub_080ABC90: @ 0x080ABC90 movs r0, #2 rsbs r0, r0, #0 bl ModHealth - ldr r0, _080ABCC0 @ =gLinkEntity + ldr r0, _080ABCC0 @ =gPlayerEntity movs r1, #0x7a bl sub_0800449C bl sub_08079D84 @@ -13580,7 +13580,7 @@ sub_080ABC90: @ 0x080ABC90 _080ABCBE: pop {r4, pc} .align 2, 0 -_080ABCC0: .4byte gLinkEntity +_080ABCC0: .4byte gPlayerEntity thumb_func_start sub_080ABCC4 sub_080ABCC4: @ 0x080ABCC4 @@ -13906,7 +13906,7 @@ sub_080ABF40: @ 0x080ABF40 bne _080ABF66 movs r0, #1 strb r0, [r4, #0xc] - ldr r1, _080ABFA0 @ =gLinkEntity + ldr r1, _080ABFA0 @ =gPlayerEntity adds r0, r4, #0 bl GetFacingDirection strb r0, [r4, #0x15] @@ -13943,7 +13943,7 @@ _080ABF88: _080ABF9C: pop {r4, pc} .align 2, 0 -_080ABFA0: .4byte gLinkEntity +_080ABFA0: .4byte gPlayerEntity _080ABFA4: .4byte 0x00000199 thumb_func_start sub_080ABFA8 @@ -14102,7 +14102,7 @@ _080AC0B2: bne _080AC0F0 movs r0, #2 strb r0, [r4, #0xc] - ldr r1, _080AC0EC @ =gLinkEntity + ldr r1, _080AC0EC @ =gPlayerEntity adds r0, r4, #0 bl GetFacingDirection strb r0, [r4, #0x15] @@ -14114,7 +14114,7 @@ _080AC0B2: b _080AC0F8 .align 2, 0 _080AC0E8: .4byte 0x00000149 -_080AC0EC: .4byte gLinkEntity +_080AC0EC: .4byte gPlayerEntity _080AC0F0: movs r0, #3 strb r0, [r4, #0xc] @@ -14167,7 +14167,7 @@ _080AC13A: ands r0, r1 cmp r0, #0 bne _080AC160 - ldr r1, _080AC164 @ =gLinkEntity + ldr r1, _080AC164 @ =gPlayerEntity adds r0, r4, #0 bl GetFacingDirection adds r1, r0, #0 @@ -14176,7 +14176,7 @@ _080AC13A: _080AC160: pop {r4, pc} .align 2, 0 -_080AC164: .4byte gLinkEntity +_080AC164: .4byte gPlayerEntity thumb_func_start sub_080AC168 sub_080AC168: @ 0x080AC168 @@ -14205,7 +14205,7 @@ sub_080AC168: @ 0x080AC168 adds r0, r5, r0 ldrb r0, [r0] strb r0, [r4, #0xf] - ldr r1, _080AC1C8 @ =gLinkEntity + ldr r1, _080AC1C8 @ =gPlayerEntity adds r0, r4, #0 bl GetFacingDirection adds r1, r0, #0 @@ -14223,7 +14223,7 @@ sub_080AC168: @ 0x080AC168 .align 2, 0 _080AC1C0: .4byte 0xFFFF8000 _080AC1C4: .4byte gUnk_0812A982 -_080AC1C8: .4byte gLinkEntity +_080AC1C8: .4byte gPlayerEntity _080AC1CC: .4byte gUnk_0812A98A _080AC1D0: cmp r0, #2 @@ -15295,7 +15295,7 @@ _080AC964: movs r1, #0x80 orrs r0, r1 strb r0, [r5, #0x10] - ldr r1, _080AC9C8 @ =gLinkEntity + ldr r1, _080AC9C8 @ =gPlayerEntity adds r0, r5, #0 bl GetFacingDirection strb r0, [r5, #0x15] @@ -15306,7 +15306,7 @@ _080AC9C0: pop {r4, r5, pc} .align 2, 0 _080AC9C4: .4byte gSineTable -_080AC9C8: .4byte gLinkEntity +_080AC9C8: .4byte gPlayerEntity thumb_func_start sub_080AC9CC sub_080AC9CC: @ 0x080AC9CC @@ -15586,7 +15586,7 @@ _080ACBC8: .4byte 0x00000119 sub_080ACBCC: @ 0x080ACBCC push {r4, lr} adds r4, r0, #0 - ldr r0, _080ACBFC @ =gLinkState + ldr r0, _080ACBFC @ =gPlayerState ldrb r1, [r0, #0x1c] movs r0, #0x7f ands r0, r1 @@ -15607,7 +15607,7 @@ _080ACBE0: strb r0, [r1] pop {r4, pc} .align 2, 0 -_080ACBFC: .4byte gLinkState +_080ACBFC: .4byte gPlayerState _080ACC00: .4byte gUnk_0812AA80 thumb_func_start sub_080ACC04 @@ -15616,7 +15616,7 @@ sub_080ACC04: @ 0x080ACC04 adds r4, r0, #0 movs r0, #1 strb r0, [r4, #0xc] - ldr r0, _080ACC54 @ =gLinkEntity + ldr r0, _080ACC54 @ =gPlayerEntity adds r0, #0x3b ldrb r0, [r0] adds r1, r4, #0 @@ -15650,7 +15650,7 @@ sub_080ACC04: @ 0x080ACC04 bl sub_0801766C pop {r4, pc} .align 2, 0 -_080ACC54: .4byte gLinkEntity +_080ACC54: .4byte gPlayerEntity _080ACC58: .4byte gUnk_0812AAD8 thumb_func_start sub_080ACC5C @@ -15844,7 +15844,7 @@ sub_080ACDB0: @ 0x080ACDB0 ldrb r0, [r4, #0xa] cmp r0, #0 bne _080ACDE8 - ldr r2, _080ACDE0 @ =gLinkEntity + ldr r2, _080ACDE0 @ =gPlayerEntity ldr r1, _080ACDE4 @ =gUnk_08126EE4 ldrb r0, [r4, #0x14] adds r0, r0, r1 @@ -15864,7 +15864,7 @@ sub_080ACDB0: @ 0x080ACDB0 adds r0, r0, r2 b _080ACEB4 .align 2, 0 -_080ACDE0: .4byte gLinkEntity +_080ACDE0: .4byte gPlayerEntity _080ACDE4: .4byte gUnk_08126EE4 _080ACDE8: ldrb r2, [r4, #0x14] @@ -15977,7 +15977,7 @@ _080ACEB0: _080ACEB4: strh r0, [r4, #0x32] _080ACEB6: - ldr r0, _080ACEC8 @ =gLinkEntity + ldr r0, _080ACEC8 @ =gPlayerEntity adds r0, #0x38 ldrb r1, [r0] adds r0, r4, #0 @@ -15986,7 +15986,7 @@ _080ACEB6: movs r0, #0 pop {r4, r5, r6, r7, pc} .align 2, 0 -_080ACEC8: .4byte gLinkEntity +_080ACEC8: .4byte gPlayerEntity thumb_func_start sub_080ACECC sub_080ACECC: @ 0x080ACECC @@ -16145,11 +16145,11 @@ _080ACFE8: bl DeleteThisEntity b _080AD03C _080ACFF8: - ldr r0, _080AD02C @ =gLinkState + ldr r0, _080AD02C @ =gPlayerState ldrb r0, [r0, #5] cmp r0, #0 beq _080AD00E - ldr r0, _080AD030 @ =gLinkEntity + ldr r0, _080AD030 @ =gPlayerEntity adds r0, #0x79 ldrb r1, [r0] movs r0, #0x7f @@ -16172,8 +16172,8 @@ _080AD00E: str r2, [r4, #0x20] b _080AD03C .align 2, 0 -_080AD02C: .4byte gLinkState -_080AD030: .4byte gLinkEntity +_080AD02C: .4byte gPlayerState +_080AD030: .4byte gPlayerEntity _080AD034: bl sub_08079184 bl DeleteThisEntity @@ -16430,7 +16430,7 @@ _080AD202: strb r0, [r5, #0x15] b _080AD26E _080AD220: - ldr r1, _080AD240 @ =gLinkEntity + ldr r1, _080AD240 @ =gPlayerEntity adds r0, r1, #0 adds r0, #0x5a ldrb r0, [r0] @@ -16444,9 +16444,9 @@ _080AD220: bl sub_080AD27C b _080AD26E .align 2, 0 -_080AD240: .4byte gLinkEntity +_080AD240: .4byte gPlayerEntity _080AD244: - ldr r0, _080AD270 @ =gLinkState + ldr r0, _080AD270 @ =gPlayerState ldrb r0, [r0, #5] cmp r0, #0 beq _080AD25A @@ -16470,7 +16470,7 @@ _080AD25A: _080AD26E: pop {r4, r5, pc} .align 2, 0 -_080AD270: .4byte gLinkState +_080AD270: .4byte gPlayerState thumb_func_start sub_080AD274 sub_080AD274: @ 0x080AD274 @@ -16483,7 +16483,7 @@ sub_080AD27C: @ 0x080AD27C push {r4, r5, lr} adds r3, r0, #0 ldr r4, [r3, #0x54] - ldr r1, _080AD2AC @ =gLinkEntity + ldr r1, _080AD2AC @ =gPlayerEntity movs r0, #0 str r0, [r1, #0x74] adds r0, r3, #0 @@ -16505,7 +16505,7 @@ sub_080AD27C: @ 0x080AD27C strb r0, [r4, #0xd] b _080AD2C2 .align 2, 0 -_080AD2AC: .4byte gLinkEntity +_080AD2AC: .4byte gPlayerEntity _080AD2B0: adds r2, r3, #0 adds r2, #0x29 diff --git a/asm/code_080AD90C.s b/asm/code_080AD90C.s index 4e859ff6..2a9b905b 100644 --- a/asm/code_080AD90C.s +++ b/asm/code_080AD90C.s @@ -160,7 +160,7 @@ _080ADA2C: .4byte gUnk_03001010 sub_080ADA30: @ 0x080ADA30 push {r4, lr} adds r4, r0, #0 - ldr r1, _080ADA60 @ =gLinkState + ldr r1, _080ADA60 @ =gPlayerState ldr r0, [r1, #0x2c] cmp r0, r4 bne _080ADA42 @@ -177,14 +177,14 @@ _080ADA46: ldr r1, [r0] adds r0, r4, #0 bl _call_via_r1 - ldr r1, _080ADA68 @ =gLinkEntity + ldr r1, _080ADA68 @ =gPlayerEntity adds r0, r4, #0 bl sub_08078E84 pop {r4, pc} .align 2, 0 -_080ADA60: .4byte gLinkState +_080ADA60: .4byte gPlayerState _080ADA64: .4byte gUnk_08132700 -_080ADA68: .4byte gLinkEntity +_080ADA68: .4byte gPlayerEntity thumb_func_start sub_080ADA6C sub_080ADA6C: @ 0x080ADA6C @@ -244,7 +244,7 @@ _080ADAD2: sub_080ADAD4: @ 0x080ADAD4 push {r4, r5, lr} adds r4, r0, #0 - ldr r3, _080ADAF4 @ =gLinkState + ldr r3, _080ADAF4 @ =gPlayerState ldrb r1, [r3, #0x1c] adds r0, r1, #0 cmp r0, #3 @@ -252,20 +252,20 @@ sub_080ADAD4: @ 0x080ADAD4 ldrb r0, [r4, #0xc] adds r0, #1 strb r0, [r4, #0xc] - ldr r0, _080ADAF8 @ =gLinkEntity + ldr r0, _080ADAF8 @ =gPlayerEntity ldrb r1, [r0, #0x14] lsrs r1, r1, #1 adds r1, #8 b _080ADB0C .align 2, 0 -_080ADAF4: .4byte gLinkState -_080ADAF8: .4byte gLinkEntity +_080ADAF4: .4byte gPlayerState +_080ADAF8: .4byte gPlayerEntity _080ADAFC: cmp r0, #6 bne _080ADB18 movs r0, #4 strb r0, [r4, #0xc] - ldr r0, _080ADB14 @ =gLinkEntity + ldr r0, _080ADB14 @ =gPlayerEntity ldrb r1, [r0, #0x14] lsrs r1, r1, #1 adds r1, #4 @@ -274,7 +274,7 @@ _080ADB0C: bl InitAnimationForceUpdate b _080ADC08 .align 2, 0 -_080ADB14: .4byte gLinkEntity +_080ADB14: .4byte gPlayerEntity _080ADB18: movs r5, #0 ldrb r0, [r4, #0xa] @@ -366,7 +366,7 @@ _080ADBB0: movs r2, #1 movs r5, #0xe7 _080ADBCA: - ldr r0, _080ADC0C @ =gLinkState + ldr r0, _080ADC0C @ =gPlayerState ldrb r1, [r0, #0x1c] movs r0, #0xf ands r0, r1 @@ -391,7 +391,7 @@ _080ADBF2: movs r0, #0xf strb r0, [r4, #0xf] _080ADBF6: - ldr r2, _080ADC10 @ =gLinkEntity + ldr r2, _080ADC10 @ =gPlayerEntity adds r0, r2, #0 adds r0, #0x5a ldrb r0, [r0] @@ -403,14 +403,14 @@ _080ADBF6: _080ADC08: pop {r4, r5, pc} .align 2, 0 -_080ADC0C: .4byte gLinkState -_080ADC10: .4byte gLinkEntity +_080ADC0C: .4byte gPlayerState +_080ADC10: .4byte gPlayerEntity thumb_func_start sub_080ADC14 sub_080ADC14: @ 0x080ADC14 push {r4, lr} adds r4, r0, #0 - ldr r0, _080ADC40 @ =gLinkState + ldr r0, _080ADC40 @ =gPlayerState ldrb r0, [r0, #0x1c] movs r1, #0xf ands r1, r0 @@ -421,7 +421,7 @@ sub_080ADC14: @ 0x080ADC14 ldrb r0, [r4, #0xc] adds r0, #1 strb r0, [r4, #0xc] - ldr r0, _080ADC44 @ =gLinkEntity + ldr r0, _080ADC44 @ =gPlayerEntity ldrb r1, [r0, #0x14] lsrs r1, r1, #1 adds r1, #4 @@ -429,8 +429,8 @@ sub_080ADC14: @ 0x080ADC14 bl InitAnimationForceUpdate b _080ADC5C .align 2, 0 -_080ADC40: .4byte gLinkState -_080ADC44: .4byte gLinkEntity +_080ADC40: .4byte gPlayerState +_080ADC44: .4byte gPlayerEntity _080ADC48: adds r0, r4, #0 movs r1, #0 @@ -469,7 +469,7 @@ _080ADC82: thumb_func_start sub_080ADC84 sub_080ADC84: @ 0x080ADC84 - ldr r1, _080ADC9C @ =gLinkEntity + ldr r1, _080ADC9C @ =gPlayerEntity ldrb r1, [r1, #0x18] movs r2, #0x40 ands r2, r1 @@ -481,13 +481,13 @@ sub_080ADC84: @ 0x080ADC84 strb r1, [r0, #0x18] bx lr .align 2, 0 -_080ADC9C: .4byte gLinkEntity +_080ADC9C: .4byte gPlayerEntity thumb_func_start sub_080ADCA0 sub_080ADCA0: @ 0x080ADCA0 push {r4, lr} ldr r3, _080ADCD4 @ =gUnk_08132714 - ldr r2, _080ADCD8 @ =gLinkEntity + ldr r2, _080ADCD8 @ =gPlayerEntity ldrb r2, [r2, #0x14] lsrs r2, r2, #1 adds r1, r1, r2 @@ -512,7 +512,7 @@ sub_080ADCA0: @ 0x080ADCA0 pop {r4, pc} .align 2, 0 _080ADCD4: .4byte gUnk_08132714 -_080ADCD8: .4byte gLinkEntity +_080ADCD8: .4byte gPlayerEntity thumb_func_start sub_080ADCDC sub_080ADCDC: @ 0x080ADCDC @@ -1253,7 +1253,7 @@ sub_080AE218: @ 0x080AE218 movs r4, #0 ldr r6, _080AE310 @ =gUnk_020000C0 mov sb, r6 - ldr r0, _080AE314 @ =gLinkEntity + ldr r0, _080AE314 @ =gPlayerEntity adds r2, r0, #0 adds r2, #0x26 adds r5, r0, #0 @@ -1359,7 +1359,7 @@ _080AE2F8: .align 2, 0 _080AE30C: .4byte gUnk_02024490 _080AE310: .4byte gUnk_020000C0 -_080AE314: .4byte gLinkEntity +_080AE314: .4byte gPlayerEntity _080AE318: .4byte 0xFFFFFC00 _080AE31C: .4byte gUnk_03000000 _080AE320: .4byte 0x000003FF diff --git a/asm/createBowEntity.s b/asm/createBowEntity.s index e8f41fb8..554d68a7 100644 --- a/asm/createBowEntity.s +++ b/asm/createBowEntity.s @@ -63,7 +63,7 @@ _0801902A: ldrb r0, [r4, #0x14] lsls r0, r0, #2 strb r0, [r4, #0x15] - ldr r2, _0801905C @ =gLinkEntity + ldr r2, _0801905C @ =gPlayerEntity adds r0, r2, #0 adds r0, #0x3c ldrb r0, [r0] @@ -85,7 +85,7 @@ _0801902A: movs r0, #1 b _08019062 .align 2, 0 -_0801905C: .4byte gLinkEntity +_0801905C: .4byte gPlayerEntity _08019060: movs r0, #0 _08019062: @@ -190,7 +190,7 @@ _080190FC: ands r0, r2 orrs r0, r1 strb r0, [r4, #0x18] - ldr r0, _0801916C @ =gLinkState + ldr r0, _0801916C @ =gPlayerState str r4, [r0, #0x2c] adds r0, r4, #0 movs r1, #1 @@ -217,7 +217,7 @@ _080190FC: b _08019172 .align 2, 0 _08019168: .4byte gUnk_080B3E40 -_0801916C: .4byte gLinkState +_0801916C: .4byte gPlayerState _08019170: str r5, [r4, #0x78] _08019172: diff --git a/asm/crenalBeanSprout.s b/asm/crenalBeanSprout.s index 491ebe62..df8bfdc6 100644 --- a/asm/crenalBeanSprout.s +++ b/asm/crenalBeanSprout.s @@ -60,7 +60,7 @@ _08096368: bl CheckGlobalFlag cmp r0, #0 bne _080963A4 - ldr r0, _0809639C @ =gLinkEntity + ldr r0, _0809639C @ =gPlayerEntity movs r3, #0x80 lsls r3, r3, #9 adds r1, r5, #0 @@ -74,7 +74,7 @@ _08096368: bl SetTile b _0809650A .align 2, 0 -_0809639C: .4byte gLinkEntity +_0809639C: .4byte gPlayerEntity _080963A0: .4byte 0x00004022 _080963A4: ldrb r0, [r5, #0xb] @@ -127,7 +127,7 @@ _080963FC: bl CheckGlobalFlag cmp r0, #0 bne _0809644C - ldr r0, _08096444 @ =gLinkEntity + ldr r0, _08096444 @ =gPlayerEntity adds r1, r0, #0 adds r1, #0x29 ldrb r2, [r1] @@ -153,7 +153,7 @@ _080963FC: bl PositionRelative b _08096450 .align 2, 0 -_08096444: .4byte gLinkEntity +_08096444: .4byte gPlayerEntity _08096448: .4byte 0xFFE80000 _0809644C: bl DeleteThisEntity @@ -289,7 +289,7 @@ _0809653C: _0809655C: .4byte 0xFFE40000 _08096560: .4byte 0xFFD80000 _08096564: - ldr r0, _0809657C @ =gLinkState + ldr r0, _0809657C @ =gPlayerState ldrb r1, [r0, #0xd] movs r0, #0x80 ands r0, r1 @@ -301,7 +301,7 @@ _08096570: bl InitializeAnimation b _08096586 .align 2, 0 -_0809657C: .4byte gLinkState +_0809657C: .4byte gPlayerState _08096580: adds r0, r6, #0 bl GetNextFrame @@ -347,7 +347,7 @@ _080965C8: bl sub_0805EC9C b _080966F6 _080965D6: - ldr r1, _080965FC @ =gLinkState + ldr r1, _080965FC @ =gPlayerState ldrb r2, [r1, #0x1a] movs r0, #0x80 orrs r0, r2 @@ -366,12 +366,12 @@ _080965D6: bl InitializeAnimation b _08096606 .align 2, 0 -_080965FC: .4byte gLinkState +_080965FC: .4byte gPlayerState _08096600: adds r0, r6, #0 bl GetNextFrame _08096606: - ldr r0, _08096664 @ =gLinkEntity + ldr r0, _08096664 @ =gPlayerEntity ldrb r0, [r0, #0x14] movs r1, #6 ands r1, r0 @@ -417,7 +417,7 @@ _08096606: strb r1, [r0] b _08096676 .align 2, 0 -_08096664: .4byte gLinkEntity +_08096664: .4byte gPlayerEntity _08096668: .4byte gUnk_08123184 _0809666C: .4byte gUnk_0200AF00 _08096670: @@ -425,7 +425,7 @@ _08096670: adds r0, #0x2f strb r7, [r0] _08096676: - ldr r0, _080966FC @ =gLinkEntity + ldr r0, _080966FC @ =gPlayerEntity movs r3, #0x80 lsls r3, r3, #9 adds r1, r6, #0 @@ -441,7 +441,7 @@ _08096676: adds r0, r6, #0 bl sub_08096A78 _0809669C: - ldr r2, _08096700 @ =gLinkState + ldr r2, _08096700 @ =gPlayerState adds r0, r2, #0 adds r0, #0x92 ldrh r1, [r0] @@ -488,8 +488,8 @@ _080966F6: pop {r4, r5, r6, r7, pc} .align 2, 0 _080966F8: .4byte gUnk_0200AF00 -_080966FC: .4byte gLinkEntity -_08096700: .4byte gLinkState +_080966FC: .4byte gPlayerEntity +_08096700: .4byte gPlayerState thumb_func_start sub_08096704 sub_08096704: @ 0x08096704 @@ -581,7 +581,7 @@ sub_08096780: @ 0x08096780 bne _080967DC adds r0, r5, #0 bl GetNextFrame - ldr r2, _080967D8 @ =gLinkState + ldr r2, _080967D8 @ =gPlayerState ldrb r0, [r2, #0xb] movs r1, #0x80 orrs r0, r1 @@ -607,7 +607,7 @@ sub_08096780: @ 0x08096780 b _080967E0 .align 2, 0 _080967D4: .4byte gUnk_0812319C -_080967D8: .4byte gLinkState +_080967D8: .4byte gPlayerState _080967DC: movs r0, #0xc0 strb r0, [r5, #0xe] @@ -807,7 +807,7 @@ sub_08096904: @ 0x08096904 ldrb r1, [r5, #0xf] cmp r0, r1 bne _08096980 - ldr r2, _0809697C @ =gLinkState + ldr r2, _0809697C @ =gPlayerState ldrb r1, [r2, #0xb] movs r0, #0x7f ands r0, r1 @@ -820,7 +820,7 @@ sub_08096904: @ 0x08096904 .align 2, 0 _08096974: .4byte gUnk_081231AE _08096978: .4byte gRoomControls -_0809697C: .4byte gLinkState +_0809697C: .4byte gPlayerState _08096980: movs r0, #0xf _08096982: diff --git a/asm/cucco.s b/asm/cucco.s index 768555e7..bd176a46 100644 --- a/asm/cucco.s +++ b/asm/cucco.s @@ -241,7 +241,7 @@ sub_0806E65C: @ 0x0806E65C ldrsb r2, [r0, r2] cmp r2, #0 beq _0806E6A6 - ldr r0, _0806E688 @ =gLinkState + ldr r0, _0806E688 @ =gPlayerState ldr r0, [r0, #0x30] movs r1, #0x80 ands r0, r1 @@ -255,7 +255,7 @@ sub_0806E65C: @ 0x0806E65C bl sub_0806F118 b _0806E698 .align 2, 0 -_0806E688: .4byte gLinkState +_0806E688: .4byte gPlayerState _0806E68C: adds r0, r4, #0 bl sub_0806E6A8 diff --git a/asm/cuccoAggr.s b/asm/cuccoAggr.s index d7161fa4..acf5bcf4 100644 --- a/asm/cuccoAggr.s +++ b/asm/cuccoAggr.s @@ -355,7 +355,7 @@ _08038F42: sub_08038F44: @ 0x08038F44 push {r4, lr} adds r4, r0, #0 - ldr r0, _08038F8C @ =gLinkEntity + ldr r0, _08038F8C @ =gPlayerEntity adds r1, r4, #0 bl GetFacingDirection strb r0, [r4, #0x15] @@ -383,7 +383,7 @@ sub_08038F44: @ 0x08038F44 bl sub_08039120 b _08038F9E .align 2, 0 -_08038F8C: .4byte gLinkEntity +_08038F8C: .4byte gPlayerEntity _08038F90: movs r0, #0x1f ands r2, r0 @@ -420,7 +420,7 @@ _08038FB8: ands r0, r1 cmp r0, #0 bne _08038FE0 - ldr r1, _08038FF8 @ =gLinkEntity + ldr r1, _08038FF8 @ =gPlayerEntity adds r0, r4, #0 bl GetFacingDirection adds r1, r0, #0 @@ -436,7 +436,7 @@ _08038FE0: b _08039018 .align 2, 0 _08038FF4: .4byte 0x0000FFFF -_08038FF8: .4byte gLinkEntity +_08038FF8: .4byte gPlayerEntity _08038FFC: adds r0, r4, #0 bl sub_0806F69C @@ -612,7 +612,7 @@ sub_08039140: @ 0x08039140 strb r0, [r4, #0xc] bl Random strb r0, [r4, #0xe] - ldr r1, _08039174 @ =gLinkEntity + ldr r1, _08039174 @ =gPlayerEntity adds r0, r4, #0 bl GetFacingDirection strb r0, [r4, #0x15] @@ -629,7 +629,7 @@ sub_08039140: @ 0x08039140 bl InitializeAnimation pop {r4, pc} .align 2, 0 -_08039174: .4byte gLinkEntity +_08039174: .4byte gPlayerEntity _08039178: .4byte 0x0000FFFC thumb_func_start sub_0803917C diff --git a/asm/cuccoChick.s b/asm/cuccoChick.s index 8d9f090a..23386b60 100644 --- a/asm/cuccoChick.s +++ b/asm/cuccoChick.s @@ -170,7 +170,7 @@ sub_0806E838: @ 0x0806E838 ldrsb r2, [r0, r2] cmp r2, #0 beq _0806E882 - ldr r0, _0806E864 @ =gLinkState + ldr r0, _0806E864 @ =gPlayerState ldr r0, [r0, #0x30] movs r1, #0x80 ands r0, r1 @@ -184,7 +184,7 @@ sub_0806E838: @ 0x0806E838 bl sub_0806F118 b _0806E874 .align 2, 0 -_0806E864: .4byte gLinkState +_0806E864: .4byte gPlayerState _0806E868: adds r0, r4, #0 bl sub_0806E884 diff --git a/asm/cuccoChickAggr.s b/asm/cuccoChickAggr.s index a581af08..458b4346 100644 --- a/asm/cuccoChickAggr.s +++ b/asm/cuccoChickAggr.s @@ -297,14 +297,14 @@ sub_08022B20: @ 0x08022B20 bl sub_08049DF4 cmp r0, #0 beq _08022B40 - ldr r1, _08022B3C @ =gLinkEntity + ldr r1, _08022B3C @ =gPlayerEntity adds r0, r4, #0 movs r2, #0x24 movs r3, #0x24 bl sub_080041A0 b _08022B42 .align 2, 0 -_08022B3C: .4byte gLinkEntity +_08022B3C: .4byte gPlayerEntity _08022B40: movs r0, #0 _08022B42: @@ -317,7 +317,7 @@ sub_08022B44: @ 0x08022B44 movs r0, #0xc0 lsls r0, r0, #8 str r0, [r4, #0x20] - ldr r1, _08022B84 @ =gLinkEntity + ldr r1, _08022B84 @ =gPlayerEntity adds r0, r4, #0 bl GetFacingDirection adds r1, r0, #0 @@ -343,4 +343,4 @@ _08022B7A: bl sub_08004488 pop {r4, pc} .align 2, 0 -_08022B84: .4byte gLinkEntity +_08022B84: .4byte gPlayerEntity diff --git a/asm/din.s b/asm/din.s index 533ab213..14dfe55b 100644 --- a/asm/din.s +++ b/asm/din.s @@ -52,7 +52,7 @@ _080647C2: ldrb r1, [r0] adds r0, #0x10 strb r1, [r0] - ldr r1, _080647FC @ =gLinkEntity + ldr r1, _080647FC @ =gPlayerEntity adds r0, r4, #0 bl GetFacingDirection bl sub_0806F5A4 @@ -61,7 +61,7 @@ _080647C2: bl InitAnimationForceUpdate b _08064824 .align 2, 0 -_080647FC: .4byte gLinkEntity +_080647FC: .4byte gPlayerEntity _08064800: adds r0, r4, #0 movs r1, #0 diff --git a/asm/dog.s b/asm/dog.s index 7afc6af2..c62ec6df 100644 --- a/asm/dog.s +++ b/asm/dog.s @@ -100,7 +100,7 @@ _08069BD2: ldrb r0, [r5, #0xa] cmp r0, #0 bne _08069BF2 - ldr r0, _08069C34 @ =gLinkState + ldr r0, _08069C34 @ =gPlayerState ldr r0, [r0, #0x30] movs r1, #0x80 ands r0, r1 @@ -145,7 +145,7 @@ _08069BF2: _08069C30: pop {r4, r5, r6, pc} .align 2, 0 -_08069C34: .4byte gLinkState +_08069C34: .4byte gPlayerState _08069C38: .4byte 0x00004072 _08069C3C: .4byte gRoomControls @@ -158,7 +158,7 @@ sub_08069C40: @ 0x08069C40 bl sub_08069F90 cmp r0, #0 beq _08069C80 - ldr r0, _08069C68 @ =gLinkState + ldr r0, _08069C68 @ =gPlayerState ldr r0, [r0, #0x30] movs r1, #0x80 ands r0, r1 @@ -168,7 +168,7 @@ sub_08069C40: @ 0x08069C40 bl sub_08069CB8 b _08069C7A .align 2, 0 -_08069C68: .4byte gLinkState +_08069C68: .4byte gPlayerState _08069C6C: adds r0, r4, #0 bl GetAnimationState @@ -211,7 +211,7 @@ _08069CB4: .4byte gUnk_08111DA8 sub_08069CB8: @ 0x08069CB8 push {r4, r5, lr} adds r4, r0, #0 - ldr r1, _08069CF8 @ =gLinkEntity + ldr r1, _08069CF8 @ =gPlayerEntity bl GetFacingDirection ldr r2, _08069CFC @ =gUnk_08111DB0 ldrb r1, [r4, #0x14] @@ -240,7 +240,7 @@ sub_08069CB8: @ 0x08069CB8 _08069CF6: pop {r4, r5, pc} .align 2, 0 -_08069CF8: .4byte gLinkEntity +_08069CF8: .4byte gPlayerEntity _08069CFC: .4byte gUnk_08111DB0 thumb_func_start sub_08069D00 @@ -605,7 +605,7 @@ sub_08069F90: @ 0x08069F90 movs r0, #1 b _08069FB4 _08069FA8: - ldr r1, _08069FB8 @ =gLinkEntity + ldr r1, _08069FB8 @ =gPlayerEntity adds r0, r4, #0 movs r2, #0x14 movs r3, #0x14 @@ -613,13 +613,13 @@ _08069FA8: _08069FB4: pop {r4, pc} .align 2, 0 -_08069FB8: .4byte gLinkEntity +_08069FB8: .4byte gPlayerEntity thumb_func_start sub_08069FBC sub_08069FBC: @ 0x08069FBC push {lr} adds r2, r0, #0 - ldr r0, _08069FE4 @ =gLinkState + ldr r0, _08069FE4 @ =gPlayerState ldr r0, [r0, #0x30] movs r1, #0x80 ands r0, r1 @@ -640,13 +640,13 @@ _08069FDA: _08069FE0: pop {pc} .align 2, 0 -_08069FE4: .4byte gLinkState +_08069FE4: .4byte gPlayerState thumb_func_start sub_08069FE8 sub_08069FE8: @ 0x08069FE8 push {r4, r5, lr} adds r4, r0, #0 - ldr r0, _0806A010 @ =gLinkState + ldr r0, _0806A010 @ =gPlayerState ldr r0, [r0, #0x30] movs r1, #0x80 ands r0, r1 @@ -663,7 +663,7 @@ sub_08069FE8: @ 0x08069FE8 bl sub_08078778 b _0806A020 .align 2, 0 -_0806A010: .4byte gLinkState +_0806A010: .4byte gPlayerState _0806A014: adds r0, r4, #0 adds r0, #0x74 @@ -685,7 +685,7 @@ sub_0806A028: @ 0x0806A028 ldrsb r2, [r0, r2] cmp r2, #0 beq _0806A07E - ldr r0, _0806A054 @ =gLinkState + ldr r0, _0806A054 @ =gPlayerState ldr r0, [r0, #0x30] movs r1, #0x80 ands r0, r1 @@ -699,7 +699,7 @@ sub_0806A028: @ 0x0806A028 bl sub_0806F118 b _0806A076 .align 2, 0 -_0806A054: .4byte gLinkState +_0806A054: .4byte gPlayerState _0806A058: adds r0, r4, #0 bl sub_0806A080 @@ -743,7 +743,7 @@ _0806A0A0: .4byte gUnk_08111E34 sub_0806A0A4: @ 0x0806A0A4 push {r4, r5, r6, lr} adds r4, r0, #0 - ldr r0, _0806A0F8 @ =gLinkState + ldr r0, _0806A0F8 @ =gPlayerState ldr r0, [r0, #0x30] movs r1, #0x80 ands r0, r1 @@ -780,7 +780,7 @@ sub_0806A0A4: @ 0x0806A0A4 bl sub_0807BA8C b _0806A120 .align 2, 0 -_0806A0F8: .4byte gLinkState +_0806A0F8: .4byte gPlayerState _0806A0FC: .4byte gRoomControls _0806A100: movs r5, #2 @@ -818,7 +818,7 @@ sub_0806A144: @ 0x0806A144 push {r4, r5, lr} adds r5, r0, #0 movs r4, #4 - ldr r0, _0806A18C @ =gLinkState + ldr r0, _0806A18C @ =gPlayerState ldr r0, [r0, #0x30] movs r1, #0x80 ands r0, r1 @@ -848,7 +848,7 @@ _0806A17A: bl TextboxNoOverlap pop {r4, r5, pc} .align 2, 0 -_0806A18C: .4byte gLinkState +_0806A18C: .4byte gPlayerState _0806A190: .4byte gUnk_08111FD8 thumb_func_start Dog_Fusion diff --git a/asm/dust.s b/asm/dust.s index 9ca3ee56..c56c75fb 100644 --- a/asm/dust.s +++ b/asm/dust.s @@ -282,7 +282,7 @@ sub_08044310: @ 0x08044310 adds r5, r0, #0 movs r4, #0xff movs r6, #0xff - ldr r0, _08044334 @ =gLinkEntity + ldr r0, _08044334 @ =gPlayerEntity ldrb r0, [r0, #0x14] lsrs r1, r0, #1 movs r0, #3 @@ -295,7 +295,7 @@ sub_08044310: @ 0x08044310 beq _08044342 b _080443EA .align 2, 0 -_08044334: .4byte gLinkEntity +_08044334: .4byte gPlayerEntity _08044338: cmp r1, #2 beq _08044392 @@ -492,7 +492,7 @@ _08044492: sub_08044498: @ 0x08044498 push {r4, r5, r6, lr} mov ip, r0 - ldr r6, _08044538 @ =gLinkEntity + ldr r6, _08044538 @ =gPlayerEntity movs r1, #0x2e ldrsh r0, [r6, r1] ldr r3, _0804453C @ =gRoomControls @@ -509,7 +509,7 @@ sub_08044498: @ 0x08044498 ands r0, r2 lsls r0, r0, #6 orrs r4, r0 - ldr r0, _08044540 @ =gLinkState + ldr r0, _08044540 @ =gPlayerState adds r0, #0x92 ldrh r0, [r0] movs r1, #0xf0 @@ -567,13 +567,13 @@ _0804450C: adds r1, r0, #0 cmp r1, #0 beq _0804454C - ldr r0, _08044538 @ =gLinkEntity + ldr r0, _08044538 @ =gPlayerEntity bl CopyPosition b _0804454C .align 2, 0 -_08044538: .4byte gLinkEntity +_08044538: .4byte gPlayerEntity _0804453C: .4byte gRoomControls -_08044540: .4byte gLinkState +_08044540: .4byte gPlayerState _08044544: adds r2, #5 adds r3, #1 @@ -587,7 +587,7 @@ _0804454C: sub_08044550: @ 0x08044550 push {r4, r5, r6, r7, lr} adds r6, r0, #0 - ldr r0, _080445A8 @ =gLinkState + ldr r0, _080445A8 @ =gPlayerState ldrb r1, [r0, #0x1c] movs r0, #0xf ands r0, r1 @@ -602,7 +602,7 @@ sub_08044550: @ 0x08044550 adds r0, #0x10 strh r0, [r6, #0x24] _08044570: - ldr r5, _080445AC @ =gLinkEntity + ldr r5, _080445AC @ =gPlayerEntity ldrb r0, [r5, #0x14] movs r4, #0xe ands r4, r0 @@ -629,8 +629,8 @@ _08044570: bl sub_0806F69C b _080445BE .align 2, 0 -_080445A8: .4byte gLinkState -_080445AC: .4byte gLinkEntity +_080445A8: .4byte gPlayerState +_080445AC: .4byte gPlayerEntity _080445B0: .4byte gUnk_08126EE4 _080445B4: adds r0, r6, #0 diff --git a/asm/enemy50.s b/asm/enemy50.s index 93b54bc7..436b55ec 100644 --- a/asm/enemy50.s +++ b/asm/enemy50.s @@ -352,14 +352,14 @@ sub_08040DC8: @ 0x08040DC8 strb r1, [r0, #0xd] movs r1, #0x3c strb r1, [r0, #0x1d] - ldr r1, _08040DE0 @ =gLinkEntity + ldr r1, _08040DE0 @ =gPlayerEntity ldrb r1, [r1, #0x14] lsrs r1, r1, #2 adds r1, #5 bl InitializeAnimation pop {pc} .align 2, 0 -_08040DE0: .4byte gLinkEntity +_08040DE0: .4byte gPlayerEntity thumb_func_start sub_08040DE4 sub_08040DE4: @ 0x08040DE4 @@ -723,7 +723,7 @@ _08041094: adds r0, #8 strh r0, [r1] _080410A6: - ldr r2, _08041100 @ =gLinkEntity + ldr r2, _08041100 @ =gPlayerEntity adds r0, r2, #0 adds r0, #0x45 ldrb r0, [r0] @@ -768,7 +768,7 @@ _080410B6: bl sub_0803F6EC b _0804110A .align 2, 0 -_08041100: .4byte gLinkEntity +_08041100: .4byte gPlayerEntity _08041104: adds r0, r4, #0 bl sub_0803F738 @@ -912,7 +912,7 @@ _08041200: movs r0, #1 b _08041224 _08041204: - ldr r0, _08041214 @ =gLinkState + ldr r0, _08041214 @ =gPlayerState ldr r0, [r0, #0x30] movs r1, #0x80 lsls r1, r1, #0x10 @@ -921,7 +921,7 @@ _08041204: beq _08041222 b _08041200 .align 2, 0 -_08041214: .4byte gLinkState +_08041214: .4byte gPlayerState _08041218: ldr r0, _08041228 @ =gArea movs r1, #0xa diff --git a/asm/enemy64.s b/asm/enemy64.s index 5131a1fa..83499cc1 100644 --- a/asm/enemy64.s +++ b/asm/enemy64.s @@ -881,7 +881,7 @@ sub_080496EC: @ 0x080496EC bl sub_08079F8C cmp r0, #0 beq _08049720 - ldr r0, _0804971C @ =gLinkEntity + ldr r0, _0804971C @ =gPlayerEntity movs r1, #0x36 ldrsh r0, [r0, r1] cmp r0, #0 @@ -894,7 +894,7 @@ sub_080496EC: @ 0x080496EC strb r0, [r4, #0xe] b _08049724 .align 2, 0 -_0804971C: .4byte gLinkEntity +_0804971C: .4byte gPlayerEntity _08049720: movs r0, #1 strb r0, [r4, #0xd] @@ -910,7 +910,7 @@ sub_0804972C: @ 0x0804972C bl sub_08079F8C cmp r0, #0 beq _08049750 - ldr r0, _08049758 @ =gLinkEntity + ldr r0, _08049758 @ =gPlayerEntity movs r1, #0x36 ldrsh r0, [r0, r1] cmp r0, #0 @@ -926,7 +926,7 @@ _08049750: bl sub_08049944 pop {r4, pc} .align 2, 0 -_08049758: .4byte gLinkEntity +_08049758: .4byte gPlayerEntity thumb_func_start sub_0804975C sub_0804975C: @ 0x0804975C @@ -1060,7 +1060,7 @@ sub_08049804: @ 0x08049804 ldrb r0, [r4, #0x18] ands r3, r0 strb r3, [r4, #0x18] - ldr r4, _08049880 @ =gLinkEntity + ldr r4, _08049880 @ =gPlayerEntity ldr r1, _08049884 @ =gRoomControls ldrh r0, [r1, #6] adds r0, #0xa8 @@ -1078,7 +1078,7 @@ _08049878: pop {r4, pc} .align 2, 0 _0804987C: .4byte gUnk_03000FD0 -_08049880: .4byte gLinkEntity +_08049880: .4byte gPlayerEntity _08049884: .4byte gRoomControls thumb_func_start sub_08049888 @@ -1189,7 +1189,7 @@ sub_08049944: @ 0x08049944 ands r1, r3 orrs r2, r1 strb r2, [r4] - ldr r5, _08049990 @ =gLinkEntity + ldr r5, _08049990 @ =gPlayerEntity movs r2, #0x2e ldrsh r1, [r5, r2] movs r3, #0x32 @@ -1198,7 +1198,7 @@ sub_08049944: @ 0x08049944 bl sub_0806FCB8 cmp r0, #0 beq _0804998C - ldr r2, _08049994 @ =gLinkState + ldr r2, _08049994 @ =gPlayerState movs r0, #1 strb r0, [r2, #0x14] movs r1, #0x36 @@ -1216,8 +1216,8 @@ sub_08049944: @ 0x08049944 _0804998C: pop {r4, r5, pc} .align 2, 0 -_08049990: .4byte gLinkEntity -_08049994: .4byte gLinkState +_08049990: .4byte gPlayerEntity +_08049994: .4byte gPlayerState thumb_func_start sub_08049998 sub_08049998: @ 0x08049998 @@ -1247,7 +1247,7 @@ sub_08049998: @ 0x08049998 bl sub_08079F8C cmp r0, #0 beq _080499EA - ldr r0, _080499EC @ =gLinkEntity + ldr r0, _080499EC @ =gPlayerEntity ldrh r1, [r5, #0x2e] subs r1, r1, r4 ldrh r2, [r0, #0x2e] @@ -1261,7 +1261,7 @@ sub_08049998: @ 0x08049998 _080499EA: pop {r4, r5, r6, pc} .align 2, 0 -_080499EC: .4byte gLinkEntity +_080499EC: .4byte gPlayerEntity thumb_func_start sub_080499F0 sub_080499F0: @ 0x080499F0 @@ -1270,7 +1270,7 @@ sub_080499F0: @ 0x080499F0 ldrb r0, [r4, #0xc] cmp r0, #0 beq _08049A82 - ldr r5, _08049A84 @ =gLinkEntity + ldr r5, _08049A84 @ =gPlayerEntity movs r1, #0x36 ldrsh r0, [r5, r1] cmp r0, #0 @@ -1339,7 +1339,7 @@ _08049A7E: _08049A82: pop {r4, r5, r6, pc} .align 2, 0 -_08049A84: .4byte gLinkEntity +_08049A84: .4byte gPlayerEntity _08049A88: .4byte gSineTable thumb_func_start sub_08049A8C @@ -1444,7 +1444,7 @@ sub_08049B20: @ 0x08049B20 bl sub_08079F8C cmp r0, #0 beq _08049B68 - ldr r0, _08049B6C @ =gLinkEntity + ldr r0, _08049B6C @ =gPlayerEntity ldrh r1, [r4, #0x2e] subs r1, r1, r5 ldrh r2, [r0, #0x2e] @@ -1458,4 +1458,4 @@ sub_08049B20: @ 0x08049B20 _08049B68: pop {r4, r5, r6, pc} .align 2, 0 -_08049B6C: .4byte gLinkEntity +_08049B6C: .4byte gPlayerEntity diff --git a/asm/evilSpirit.s b/asm/evilSpirit.s index 8e61772f..79a69521 100644 --- a/asm/evilSpirit.s +++ b/asm/evilSpirit.s @@ -168,7 +168,7 @@ _080863B6: movs r0, #0xc0 lsls r0, r0, #3 strh r0, [r6, #0x24] - ldr r2, _080863E8 @ =gLinkEntity + ldr r2, _080863E8 @ =gPlayerEntity ldr r0, [r2, #0x2c] ldr r1, [r6, #0x2c] subs r0, r0, r1 @@ -190,13 +190,13 @@ _080863B6: adds r0, r2, #3 b _080863EE .align 2, 0 -_080863E8: .4byte gLinkEntity +_080863E8: .4byte gPlayerEntity _080863EC: subs r0, r2, #3 _080863EE: strb r0, [r6, #0x15] _080863F0: - ldr r0, _0808640C @ =gLinkEntity + ldr r0, _0808640C @ =gPlayerEntity ldrb r1, [r0, #0x14] movs r0, #2 ands r0, r1 @@ -210,7 +210,7 @@ _080863F0: adds r1, #0x76 b _08086426 .align 2, 0 -_0808640C: .4byte gLinkEntity +_0808640C: .4byte gPlayerEntity _08086410: adds r0, r6, #0 adds r0, #0x7c @@ -255,7 +255,7 @@ _08086440: adds r2, #0x7f movs r0, #1 strb r0, [r2] - ldr r0, _08086480 @ =gLinkEntity + ldr r0, _08086480 @ =gPlayerEntity ldrb r1, [r0, #0x14] movs r0, #2 ands r0, r1 @@ -271,7 +271,7 @@ _08086440: strh r0, [r1] b _080864BC .align 2, 0 -_08086480: .4byte gLinkEntity +_08086480: .4byte gPlayerEntity _08086484: adds r1, r6, #0 adds r1, #0x7c @@ -447,7 +447,7 @@ sub_08086594: @ 0x08086594 adds r2, #0x7f movs r0, #1 strb r0, [r2] - ldr r0, _080865EC @ =gLinkEntity + ldr r0, _080865EC @ =gPlayerEntity ldrb r1, [r0, #0x14] movs r0, #2 ands r0, r1 @@ -461,7 +461,7 @@ sub_08086594: @ 0x08086594 adds r1, #0x76 b _0808662A .align 2, 0 -_080865EC: .4byte gLinkEntity +_080865EC: .4byte gPlayerEntity _080865F0: adds r0, r7, #0 adds r0, #0x7c diff --git a/asm/ezloCap.s b/asm/ezloCap.s index 13ef9565..46510577 100644 --- a/asm/ezloCap.s +++ b/asm/ezloCap.s @@ -52,7 +52,7 @@ sub_0806D8A0: @ 0x0806D8A0 bge _0806D8C2 rsbs r2, r2, #0 _0806D8C2: - ldr r1, _0806D900 @ =gLinkEntity + ldr r1, _0806D900 @ =gPlayerEntity movs r5, #0x2e ldrsh r0, [r1, r5] adds r2, r2, r0 @@ -82,7 +82,7 @@ _0806D8C2: strb r1, [r4, #0x14] pop {r4, r5, pc} .align 2, 0 -_0806D900: .4byte gLinkEntity +_0806D900: .4byte gPlayerEntity _0806D904: .4byte gUnk_08114134 thumb_func_start sub_0806D908 @@ -93,7 +93,7 @@ sub_0806D908: @ 0x0806D908 ldrsh r0, [r4, r1] movs r2, #0x32 ldrsh r1, [r4, r2] - ldr r3, _0806D93C @ =gLinkEntity + ldr r3, _0806D93C @ =gPlayerEntity movs r5, #0x2e ldrsh r2, [r3, r5] movs r5, #0x32 @@ -112,7 +112,7 @@ sub_0806D908: @ 0x0806D908 strb r1, [r4, #0x14] pop {r4, r5, pc} .align 2, 0 -_0806D93C: .4byte gLinkEntity +_0806D93C: .4byte gPlayerEntity _0806D940: .4byte gUnk_08114144 thumb_func_start sub_0806D944 @@ -124,7 +124,7 @@ sub_0806D944: @ 0x0806D944 rsbs r3, r3, #0 ands r3, r0 strb r3, [r2, #0x18] - ldr r0, _0806D968 @ =gLinkEntity + ldr r0, _0806D968 @ =gPlayerEntity ldr r1, [r2, #0x2c] ldr r0, [r0, #0x2c] cmp r1, r0 @@ -136,7 +136,7 @@ sub_0806D944: @ 0x0806D944 _0806D964: pop {pc} .align 2, 0 -_0806D968: .4byte gLinkEntity +_0806D968: .4byte gPlayerEntity thumb_func_start sub_0806D96C sub_0806D96C: @ 0x0806D96C @@ -170,7 +170,7 @@ _0806D9A0: .4byte 0xFFE80000 thumb_func_start sub_0806D9A4 sub_0806D9A4: @ 0x0806D9A4 push {lr} - ldr r1, _0806D9BC @ =gLinkEntity + ldr r1, _0806D9BC @ =gPlayerEntity ldr r2, [r0, #0x2c] ldr r0, [r1, #0x2c] adds r3, r1, #0 @@ -182,7 +182,7 @@ sub_0806D9A4: @ 0x0806D9A4 ands r0, r1 b _0806D9C6 .align 2, 0 -_0806D9BC: .4byte gLinkEntity +_0806D9BC: .4byte gPlayerEntity _0806D9C0: ldrb r0, [r3, #0x18] movs r1, #0x40 diff --git a/asm/fairy.s b/asm/fairy.s index 5f73a9ff..a6841668 100644 --- a/asm/fairy.s +++ b/asm/fairy.s @@ -390,7 +390,7 @@ _0808D972: ldrh r0, [r4, #0x36] subs r0, #1 strh r0, [r4, #0x36] - ldr r1, _0808D994 @ =gLinkEntity + ldr r1, _0808D994 @ =gPlayerEntity adds r0, r4, #0 bl sub_080177A0 cmp r0, #0 @@ -400,7 +400,7 @@ _0808D972: _0808D992: pop {r4, pc} .align 2, 0 -_0808D994: .4byte gLinkEntity +_0808D994: .4byte gPlayerEntity thumb_func_start sub_0808D998 sub_0808D998: @ 0x0808D998 @@ -611,13 +611,13 @@ _0808DAE0: adds r1, #0x63 movs r0, #0xfb strb r0, [r1] - ldr r0, _0808DB28 @ =gLinkEntity + ldr r0, _0808DB28 @ =gPlayerEntity str r0, [r4, #0x54] adds r1, r4, #0 bl CopyPosition pop {r4, pc} .align 2, 0 -_0808DB28: .4byte gLinkEntity +_0808DB28: .4byte gPlayerEntity thumb_func_start sub_0808DB2C sub_0808DB2C: @ 0x0808DB2C @@ -635,8 +635,8 @@ sub_0808DB2C: @ 0x0808DB2C adds r2, #0x3b movs r0, #1 strb r0, [r2] - ldr r0, _0808DB50 @ =gLinkEntity + ldr r0, _0808DB50 @ =gPlayerEntity bl CopyPosition pop {pc} .align 2, 0 -_0808DB50: .4byte gLinkEntity +_0808DB50: .4byte gPlayerEntity diff --git a/asm/fallingBoulder.s b/asm/fallingBoulder.s index 78842d96..801c45c0 100644 --- a/asm/fallingBoulder.s +++ b/asm/fallingBoulder.s @@ -166,7 +166,7 @@ sub_0802C334: @ 0x0802C334 bne _0802C36A ldr r0, _0802C3C4 @ =gRoomControls ldrh r1, [r0, #8] - ldr r2, _0802C3C8 @ =gLinkEntity + ldr r2, _0802C3C8 @ =gPlayerEntity cmp r2, #0 bne _0802C34E b _0802C4AA @@ -230,7 +230,7 @@ _0802C36A: b _0802C48C .align 2, 0 _0802C3C4: .4byte gRoomControls -_0802C3C8: .4byte gLinkEntity +_0802C3C8: .4byte gPlayerEntity _0802C3CC: adds r0, r4, #0 adds r0, #0x7a diff --git a/asm/fan.s b/asm/fan.s index a3db90a6..2442e630 100644 --- a/asm/fan.s +++ b/asm/fan.s @@ -23,7 +23,7 @@ sub_0809EE44: @ 0x0809EE44 bne _0809EE60 b _0809EF74 _0809EE60: - ldr r4, _0809EEA4 @ =gLinkEntity + ldr r4, _0809EEA4 @ =gPlayerEntity adds r0, r5, #0 adds r1, r4, #0 bl sub_0809EF78 @@ -56,7 +56,7 @@ _0809EE88: ldr r0, [r0] mov pc, r0 .align 2, 0 -_0809EEA4: .4byte gLinkEntity +_0809EEA4: .4byte gPlayerEntity _0809EEA8: .4byte gUnk_03003D80 _0809EEAC: .4byte _0809EEB0 _0809EEB0: @ jump table @@ -98,7 +98,7 @@ _0809EF1E: beq _0809EF52 b _0809EF56 _0809EF26: - ldr r2, _0809EF44 @ =gLinkEntity + ldr r2, _0809EF44 @ =gPlayerEntity movs r7, #0x2e ldrsh r1, [r4, r7] movs r7, #0x2e @@ -113,7 +113,7 @@ _0809EF26: beq _0809EF52 b _0809EF56 .align 2, 0 -_0809EF44: .4byte gLinkEntity +_0809EF44: .4byte gPlayerEntity _0809EF48: ldrb r0, [r5, #0xf] cmp r0, #0 diff --git a/asm/farore.s b/asm/farore.s index b543e4ea..792a2384 100644 --- a/asm/farore.s +++ b/asm/farore.s @@ -52,7 +52,7 @@ _080649C2: ldrb r1, [r0] adds r0, #0x10 strb r1, [r0] - ldr r1, _080649FC @ =gLinkEntity + ldr r1, _080649FC @ =gPlayerEntity adds r0, r4, #0 bl GetFacingDirection bl sub_0806F5A4 @@ -61,7 +61,7 @@ _080649C2: bl InitAnimationForceUpdate b _08064A24 .align 2, 0 -_080649FC: .4byte gLinkEntity +_080649FC: .4byte gPlayerEntity _08064A00: adds r0, r4, #0 movs r1, #0 diff --git a/asm/figurineDevice.s b/asm/figurineDevice.s index 130eb951..31bf1057 100644 --- a/asm/figurineDevice.s +++ b/asm/figurineDevice.s @@ -1216,7 +1216,7 @@ _080884D2: movs r0, #5 str r0, [r1, #0x10] _080884EA: - ldr r1, _08088500 @ =gLinkEntity + ldr r1, _08088500 @ =gPlayerEntity movs r0, #6 strb r0, [r1, #0x14] pop {r4, pc} @@ -1224,7 +1224,7 @@ _080884EA: _080884F4: .4byte 0x00004328 _080884F8: .4byte 0x00004327 _080884FC: .4byte gTextBox -_08088500: .4byte gLinkEntity +_08088500: .4byte gPlayerEntity thumb_func_start sub_08088504 sub_08088504: @ 0x08088504 @@ -1374,7 +1374,7 @@ sub_0808861C: @ 0x0808861C movs r3, #8 bl CheckPlayerInRegion str r0, [r4, #0x14] - ldr r1, _08088650 @ =gLinkEntity + ldr r1, _08088650 @ =gPlayerEntity ldrb r0, [r1, #0x14] cmp r0, #0 bne _0808863E @@ -1393,7 +1393,7 @@ _08088642: strb r0, [r2, #7] pop {r4, pc} .align 2, 0 -_08088650: .4byte gLinkEntity +_08088650: .4byte gPlayerEntity _08088654: .4byte gUnk_02033280 thumb_func_start sub_08088658 @@ -1406,7 +1406,7 @@ sub_08088658: @ 0x08088658 movs r3, #8 bl CheckPlayerInRegion str r0, [r4, #0x14] - ldr r0, _08088684 @ =gLinkEntity + ldr r0, _08088684 @ =gPlayerEntity movs r1, #0x36 ldrsh r0, [r0, r1] cmp r0, #0 @@ -1421,5 +1421,5 @@ _08088678: strb r0, [r2, #7] pop {r4, pc} .align 2, 0 -_08088684: .4byte gLinkEntity +_08088684: .4byte gPlayerEntity _08088688: .4byte gUnk_02033280 diff --git a/asm/floatingPlatform.s b/asm/floatingPlatform.s index 7d1c24eb..917a653e 100644 --- a/asm/floatingPlatform.s +++ b/asm/floatingPlatform.s @@ -103,7 +103,7 @@ sub_08086168: @ 0x08086168 lsls r1, r1, #1 ldr r2, _0808619C @ =gUnk_08120658 adds r1, r1, r2 - ldr r4, _080861A0 @ =gLinkEntity + ldr r4, _080861A0 @ =gPlayerEntity ldrb r2, [r1] ldrb r3, [r1, #1] adds r1, r4, #0 @@ -113,7 +113,7 @@ sub_08086168: @ 0x08086168 bl sub_08079F8C cmp r0, #0 beq _080861A8 - ldr r0, _080861A4 @ =gLinkState + ldr r0, _080861A4 @ =gPlayerState movs r1, #1 strb r1, [r0, #0x14] movs r1, #0x36 @@ -124,8 +124,8 @@ sub_08086168: @ 0x08086168 b _080861AA .align 2, 0 _0808619C: .4byte gUnk_08120658 -_080861A0: .4byte gLinkEntity -_080861A4: .4byte gLinkState +_080861A0: .4byte gPlayerEntity +_080861A4: .4byte gPlayerState _080861A8: movs r0, #0 _080861AA: diff --git a/asm/flyingPot.s b/asm/flyingPot.s index 98601cbc..7c45e106 100644 --- a/asm/flyingPot.s +++ b/asm/flyingPot.s @@ -231,7 +231,7 @@ _080371F6: sub_080371F8: @ 0x080371F8 push {lr} adds r2, r0, #0 - ldr r0, _08037210 @ =gLinkState + ldr r0, _08037210 @ =gPlayerState ldrb r1, [r0, #0x1c] movs r0, #0xf ands r0, r1 @@ -242,7 +242,7 @@ sub_080371F8: @ 0x080371F8 _0803720E: pop {pc} .align 2, 0 -_08037210: .4byte gLinkState +_08037210: .4byte gPlayerState thumb_func_start nullsub_161 nullsub_161: @ 0x08037214 @@ -446,7 +446,7 @@ sub_0803737C: @ 0x0803737C strb r0, [r4, #0xc] movs r0, #0xa strb r0, [r4, #0xe] - ldr r1, _080373AC @ =gLinkEntity + ldr r1, _080373AC @ =gPlayerEntity adds r0, r4, #0 bl GetFacingDirection strb r0, [r4, #0x15] @@ -454,7 +454,7 @@ _080373A6: pop {r4, pc} .align 2, 0 _080373A8: .4byte 0xFFFF0000 -_080373AC: .4byte gLinkEntity +_080373AC: .4byte gPlayerEntity thumb_func_start sub_080373B0 sub_080373B0: @ 0x080373B0 diff --git a/asm/flyingSkull.s b/asm/flyingSkull.s index 3f75b1ca..d0ae76c4 100644 --- a/asm/flyingSkull.s +++ b/asm/flyingSkull.s @@ -230,7 +230,7 @@ _08039D4A: sub_08039D4C: @ 0x08039D4C push {lr} adds r2, r0, #0 - ldr r0, _08039D64 @ =gLinkState + ldr r0, _08039D64 @ =gPlayerState ldrb r1, [r0, #0x1c] movs r0, #0xf ands r0, r1 @@ -241,7 +241,7 @@ sub_08039D4C: @ 0x08039D4C _08039D62: pop {pc} .align 2, 0 -_08039D64: .4byte gLinkState +_08039D64: .4byte gPlayerState thumb_func_start nullsub_166 nullsub_166: @ 0x08039D68 @@ -349,13 +349,13 @@ _08039E28: _08039E30: .4byte 0x00004073 _08039E34: .4byte gRoomControls _08039E38: - ldr r0, _08039E6C @ =gLinkState + ldr r0, _08039E6C @ =gPlayerState ldr r0, [r0, #0x30] movs r1, #0x80 ands r0, r1 cmp r0, #0 bne _08039EC6 - ldr r2, _08039E70 @ =gLinkEntity + ldr r2, _08039E70 @ =gPlayerEntity movs r0, #0x2e ldrsh r1, [r2, r0] movs r6, #0x32 @@ -374,8 +374,8 @@ _08039E38: strb r0, [r5, #0xe] b _08039EC6 .align 2, 0 -_08039E6C: .4byte gLinkState -_08039E70: .4byte gLinkEntity +_08039E6C: .4byte gPlayerState +_08039E70: .4byte gPlayerEntity _08039E74: ldrb r1, [r5, #0xa] subs r1, #2 @@ -448,7 +448,7 @@ sub_08039EE4: @ 0x08039EE4 strh r2, [r3, #0x2a] ldr r0, _08039F40 @ =gUnk_080FD340 str r0, [r3, #0x48] - ldr r0, _08039F44 @ =gLinkEntity + ldr r0, _08039F44 @ =gPlayerEntity ldrb r0, [r0, #0x14] mov r1, ip adds r1, #0x76 @@ -480,14 +480,14 @@ sub_08039EE4: @ 0x08039EE4 pop {r4, r5, r6, pc} .align 2, 0 _08039F40: .4byte gUnk_080FD340 -_08039F44: .4byte gLinkEntity +_08039F44: .4byte gPlayerEntity _08039F48: .4byte gRoomControls thumb_func_start sub_08039F4C sub_08039F4C: @ 0x08039F4C push {lr} adds r3, r0, #0 - ldr r0, _08039F74 @ =gLinkEntity + ldr r0, _08039F74 @ =gPlayerEntity movs r1, #0x76 adds r1, r1, r3 mov ip, r1 @@ -506,7 +506,7 @@ sub_08039F4C: @ 0x08039F4C _08039F70: pop {pc} .align 2, 0 -_08039F74: .4byte gLinkEntity +_08039F74: .4byte gPlayerEntity thumb_func_start sub_08039F78 sub_08039F78: @ 0x08039F78 @@ -637,7 +637,7 @@ sub_0803A048: @ 0x0803A048 strb r0, [r4, #0xc] movs r0, #0xa strb r0, [r4, #0xe] - ldr r1, _0803A07C @ =gLinkEntity + ldr r1, _0803A07C @ =gPlayerEntity adds r0, r4, #0 bl GetFacingDirection strb r0, [r4, #0x15] @@ -645,7 +645,7 @@ _0803A076: pop {r4, pc} .align 2, 0 _0803A078: .4byte 0xFFFF0000 -_0803A07C: .4byte gLinkEntity +_0803A07C: .4byte gPlayerEntity thumb_func_start sub_0803A080 sub_0803A080: @ 0x0803A080 diff --git a/asm/fourElements.s b/asm/fourElements.s index 1e93c487..aee5a5f2 100644 --- a/asm/fourElements.s +++ b/asm/fourElements.s @@ -214,12 +214,12 @@ sub_080A034C: @ 0x080A034C lsls r0, r0, #0x18 cmp r0, #0 bne _080A038C - ldr r0, _080A0374 @ =gLinkEntity + ldr r0, _080A0374 @ =gPlayerEntity movs r1, #0 bl sub_0805E3A0 b _080A038C .align 2, 0 -_080A0374: .4byte gLinkEntity +_080A0374: .4byte gPlayerEntity _080A0378: movs r0, #0 movs r1, #0x3c @@ -295,7 +295,7 @@ sub_080A03E8: @ 0x080A03E8 bne _080A041A movs r0, #0x5a bl sub_0805E510 - ldr r0, _080A0420 @ =gLinkState + ldr r0, _080A0420 @ =gPlayerState adds r0, #0x8b movs r1, #1 strb r1, [r0] @@ -307,7 +307,7 @@ _080A041A: pop {pc} .align 2, 0 _080A041C: .4byte gTextBox -_080A0420: .4byte gLinkState +_080A0420: .4byte gPlayerState thumb_func_start sub_080A0424 sub_080A0424: @ 0x080A0424 diff --git a/asm/furniture.s b/asm/furniture.s index 43187642..88a5b769 100644 --- a/asm/furniture.s +++ b/asm/furniture.s @@ -520,7 +520,7 @@ _08090A08: beq _08090AB0 b _08090B60 _08090A12: - ldr r2, _08090A34 @ =gLinkEntity + ldr r2, _08090A34 @ =gPlayerEntity movs r0, #0x32 ldrsh r1, [r2, r0] movs r3, #0x32 @@ -539,7 +539,7 @@ _08090A26: strb r1, [r5, #0x19] b _08090B60 .align 2, 0 -_08090A34: .4byte gLinkEntity +_08090A34: .4byte gPlayerEntity _08090A38: ldrb r0, [r5, #0x19] movs r1, #0xc0 @@ -604,7 +604,7 @@ _08090A8C: strb r0, [r5, #0x1e] b _08090B60 _08090AB0: - ldr r2, _08090B00 @ =gLinkEntity + ldr r2, _08090B00 @ =gPlayerEntity movs r3, #0x32 ldrsh r1, [r2, r3] movs r3, #0x32 @@ -612,7 +612,7 @@ _08090AB0: adds r0, #8 cmp r1, r0 bge _08090B14 - ldr r0, _08090B04 @ =gLinkState + ldr r0, _08090B04 @ =gPlayerState ldrb r0, [r0, #0x12] cmp r0, #0x1e beq _08090B60 @@ -641,8 +641,8 @@ _08090AB0: bl SetTile b _08090B60 .align 2, 0 -_08090B00: .4byte gLinkEntity -_08090B04: .4byte gLinkState +_08090B00: .4byte gPlayerEntity +_08090B04: .4byte gPlayerState _08090B08: .4byte 0x00004017 _08090B0C: .4byte 0x00004026 _08090B10: .4byte 0x0000403D diff --git a/asm/getEmptyEntity.s b/asm/getEmptyEntity.s index f78962f8..f3b43342 100644 --- a/asm/getEmptyEntity.s +++ b/asm/getEmptyEntity.s @@ -32,7 +32,7 @@ _0805E6A0: cmp r4, r1 blo _0805E68E _0805E6A6: - ldr r4, _0805E6CC @ =gLinkEntity + ldr r4, _0805E6CC @ =gPlayerEntity _0805E6A8: ldr r0, [r4] cmp r0, #0 @@ -51,7 +51,7 @@ _0805E6A8: adds r0, r4, #0 b _0805E730 .align 2, 0 -_0805E6CC: .4byte gLinkEntity +_0805E6CC: .4byte gPlayerEntity _0805E6D0: .4byte gUnk_03003DD0 _0805E6D4: adds r4, #0x88 diff --git a/asm/ghini.s b/asm/ghini.s index f8dd37b6..1a7136c0 100644 --- a/asm/ghini.s +++ b/asm/ghini.s @@ -273,14 +273,14 @@ sub_0803F1E0: @ 0x0803F1E0 strb r1, [r0, #0xd] movs r1, #0x3c strb r1, [r0, #0x1d] - ldr r1, _0803F1F8 @ =gLinkEntity + ldr r1, _0803F1F8 @ =gPlayerEntity ldrb r1, [r1, #0x14] lsrs r1, r1, #2 adds r1, #5 bl InitializeAnimation pop {pc} .align 2, 0 -_0803F1F8: .4byte gLinkEntity +_0803F1F8: .4byte gPlayerEntity thumb_func_start sub_0803F1FC sub_0803F1FC: @ 0x0803F1FC @@ -631,7 +631,7 @@ _0803F494: adds r0, #0xc strh r0, [r1] _0803F4A6: - ldr r2, _0803F500 @ =gLinkEntity + ldr r2, _0803F500 @ =gPlayerEntity adds r0, r2, #0 adds r0, #0x45 ldrb r0, [r0] @@ -676,7 +676,7 @@ _0803F4B6: bl sub_0803F6EC b _0803F50A .align 2, 0 -_0803F500: .4byte gLinkEntity +_0803F500: .4byte gPlayerEntity _0803F504: adds r0, r4, #0 bl sub_0803F738 @@ -928,7 +928,7 @@ sub_0803F6C0: @ 0x0803F6C0 movs r1, #0xfe ands r1, r2 strb r1, [r0] - ldr r4, _0803F6E8 @ =gLinkEntity + ldr r4, _0803F6E8 @ =gPlayerEntity adds r1, r4, #0 adds r1, #0x3d movs r0, #0xc @@ -940,16 +940,16 @@ sub_0803F6C0: @ 0x0803F6C0 bl sub_0800449C pop {r4, pc} .align 2, 0 -_0803F6E8: .4byte gLinkEntity +_0803F6E8: .4byte gPlayerEntity thumb_func_start sub_0803F6EC sub_0803F6EC: @ 0x0803F6EC push {lr} - ldr r2, _0803F72C @ =gLinkEntity + ldr r2, _0803F72C @ =gPlayerEntity adds r0, r2, #0 adds r0, #0x45 ldrb r0, [r0] - ldr r3, _0803F730 @ =gLinkState + ldr r3, _0803F730 @ =gPlayerState cmp r0, #0 beq _0803F720 ldrb r1, [r2, #0x10] @@ -978,16 +978,16 @@ _0803F720: str r0, [r3, #0x30] pop {pc} .align 2, 0 -_0803F72C: .4byte gLinkEntity -_0803F730: .4byte gLinkState +_0803F72C: .4byte gPlayerEntity +_0803F730: .4byte gPlayerState _0803F734: .4byte 0x0000FFFE thumb_func_start sub_0803F738 sub_0803F738: @ 0x0803F738 push {r4, lr} adds r4, r0, #0 - bl ResetLink - ldr r2, _0803F768 @ =gLinkState + bl ResetPlayer + ldr r2, _0803F768 @ =gPlayerState ldrb r1, [r2, #0x1a] movs r0, #0x80 orrs r1, r0 @@ -995,7 +995,7 @@ sub_0803F738: @ 0x0803F738 ldrb r1, [r2, #0xa] orrs r0, r1 strb r0, [r2, #0xa] - ldr r0, _0803F76C @ =gLinkEntity + ldr r0, _0803F76C @ =gPlayerEntity adds r1, r4, #0 movs r2, #0 movs r3, #1 @@ -1006,5 +1006,5 @@ sub_0803F738: @ 0x0803F738 strb r0, [r4] pop {r4, pc} .align 2, 0 -_0803F768: .4byte gLinkState -_0803F76C: .4byte gLinkEntity +_0803F768: .4byte gPlayerState +_0803F76C: .4byte gPlayerEntity diff --git a/asm/ghostBrothers.s b/asm/ghostBrothers.s index 0e393338..a30a4062 100644 --- a/asm/ghostBrothers.s +++ b/asm/ghostBrothers.s @@ -102,7 +102,7 @@ _08065C42: movs r0, #0 strb r1, [r4, #0xc] strb r0, [r2] - ldr r1, _08065C70 @ =gLinkEntity + ldr r1, _08065C70 @ =gPlayerEntity adds r0, r4, #0 bl GetFacingDirection bl sub_0806F5A4 @@ -113,7 +113,7 @@ _08065C42: bl sub_0806F118 b _08065CCA .align 2, 0 -_08065C70: .4byte gLinkEntity +_08065C70: .4byte gPlayerEntity _08065C74: adds r0, r4, #0 movs r1, #0 diff --git a/asm/giantTwig.s b/asm/giantTwig.s index dab04e84..c4ddf8e7 100644 --- a/asm/giantTwig.s +++ b/asm/giantTwig.s @@ -170,7 +170,7 @@ sub_08093884: @ 0x08093884 ldrb r0, [r2, #0xa] cmp r0, #0 bne _080938B8 - ldr r0, _080938A8 @ =gLinkEntity + ldr r0, _080938A8 @ =gPlayerEntity movs r3, #0x32 ldrsh r1, [r0, r3] movs r3, #0x32 @@ -184,7 +184,7 @@ sub_08093884: @ 0x08093884 movs r0, #0x40 b _080938B4 .align 2, 0 -_080938A8: .4byte gLinkEntity +_080938A8: .4byte gPlayerEntity _080938AC: ldrb r0, [r2, #0x19] movs r1, #0x3f @@ -655,7 +655,7 @@ sub_08093C70: @ 0x08093C70 ldrh r0, [r3] cmp r0, #0 beq _08093CE8 - ldr r0, _08093CE0 @ =gLinkState + ldr r0, _08093CE0 @ =gPlayerState ldrb r0, [r0, #5] cmp r0, #0 beq _08093D5C @@ -699,10 +699,10 @@ sub_08093C70: @ 0x08093C70 bl SetTile b _08093D5C .align 2, 0 -_08093CE0: .4byte gLinkState +_08093CE0: .4byte gPlayerState _08093CE4: .4byte 0x00004022 _08093CE8: - ldr r0, _08093D60 @ =gLinkState + ldr r0, _08093D60 @ =gPlayerState ldrb r0, [r0, #5] cmp r0, #0 bne _08093D5C @@ -757,7 +757,7 @@ _08093CE8: _08093D5C: pop {r4, r5, r6, pc} .align 2, 0 -_08093D60: .4byte gLinkState +_08093D60: .4byte gPlayerState _08093D64: .4byte 0x0000403D _08093D68: .4byte 0x00004027 _08093D6C: .4byte 0x00004029 diff --git a/asm/gibdo.s b/asm/gibdo.s index 7581fab4..555d040c 100644 --- a/asm/gibdo.s +++ b/asm/gibdo.s @@ -328,8 +328,8 @@ sub_080376D0: @ 0x080376D0 bl sub_080379EC cmp r0, #0 bne _0803773A - bl ResetLink - ldr r2, _08037724 @ =gLinkState + bl ResetPlayer + ldr r2, _08037724 @ =gPlayerState ldrb r1, [r2, #0x1a] movs r0, #0x80 orrs r1, r0 @@ -337,7 +337,7 @@ sub_080376D0: @ 0x080376D0 ldrb r1, [r2, #0xa] orrs r0, r1 strb r0, [r2, #0xa] - ldr r0, _08037728 @ =gLinkEntity + ldr r0, _08037728 @ =gPlayerEntity adds r1, r4, #0 bl CopyPositionAndSpriteOffset adds r0, r4, #0 @@ -361,8 +361,8 @@ sub_080376D0: @ 0x080376D0 bl sub_08037A58 b _0803773A .align 2, 0 -_08037724: .4byte gLinkState -_08037728: .4byte gLinkEntity +_08037724: .4byte gPlayerState +_08037728: .4byte gPlayerEntity _0803772C: ldrb r0, [r2] movs r1, #1 @@ -849,12 +849,12 @@ _08037A84: thumb_func_start sub_08037ACC sub_08037ACC: @ 0x08037ACC - ldr r3, _08037B04 @ =gLinkState + ldr r3, _08037B04 @ =gPlayerState ldr r1, [r3, #0x30] ldr r2, _08037B08 @ =0xFFFFFEFF ands r1, r2 str r1, [r3, #0x30] - ldr r3, _08037B0C @ =gLinkEntity + ldr r3, _08037B0C @ =gPlayerEntity ldrb r2, [r3, #0x10] movs r1, #0x80 orrs r1, r2 @@ -877,15 +877,15 @@ sub_08037ACC: @ 0x08037ACC strh r0, [r1] bx lr .align 2, 0 -_08037B04: .4byte gLinkState +_08037B04: .4byte gPlayerState _08037B08: .4byte 0xFFFFFEFF -_08037B0C: .4byte gLinkEntity +_08037B0C: .4byte gPlayerEntity thumb_func_start sub_08037B10 sub_08037B10: @ 0x08037B10 push {r4, r5, r6, lr} adds r6, r0, #0 - ldr r5, _08037B44 @ =gLinkEntity + ldr r5, _08037B44 @ =gPlayerEntity adds r1, r5, #0 adds r1, #0x3d movs r0, #0xc @@ -907,7 +907,7 @@ sub_08037B10: @ 0x08037B10 _08037B40: pop {r4, r5, r6, pc} .align 2, 0 -_08037B44: .4byte gLinkEntity +_08037B44: .4byte gPlayerEntity thumb_func_start sub_08037B48 sub_08037B48: @ 0x08037B48 diff --git a/asm/gina.s b/asm/gina.s index 16be23ce..f6471f82 100644 --- a/asm/gina.s +++ b/asm/gina.s @@ -53,7 +53,7 @@ _0806C182: movs r0, #0 strb r1, [r4, #0xc] strb r0, [r2] - ldr r1, _0806C1B0 @ =gLinkEntity + ldr r1, _0806C1B0 @ =gPlayerEntity adds r0, r4, #0 bl GetFacingDirection bl sub_0806F5A4 @@ -64,7 +64,7 @@ _0806C182: bl sub_0806F118 b _0806C1D2 .align 2, 0 -_0806C1B0: .4byte gLinkEntity +_0806C1B0: .4byte gPlayerEntity _0806C1B4: adds r0, r4, #0 movs r1, #0 diff --git a/asm/gleerok.s b/asm/gleerok.s index 02f3d5b2..d9ff5716 100644 --- a/asm/gleerok.s +++ b/asm/gleerok.s @@ -96,7 +96,7 @@ _0802D090: lsls r0, r0, #5 cmp r1, r0 bne _0802D0D2 - ldr r0, _0802D0F0 @ =gLinkEntity + ldr r0, _0802D0F0 @ =gPlayerEntity bl sub_0807AABC bl DeleteThisEntity _0802D0D2: @@ -113,7 +113,7 @@ _0802D0D2: b _0802D148 .align 2, 0 _0802D0EC: .4byte gScreen -_0802D0F0: .4byte gLinkEntity +_0802D0F0: .4byte gPlayerEntity _0802D0F4: movs r0, #0x94 lsls r0, r0, #1 @@ -122,10 +122,10 @@ _0802D0F4: bl sub_0804A7D4 b _0802D148 _0802D104: - ldr r5, _0802D14C @ =gLinkState + ldr r5, _0802D14C @ =gPlayerState movs r0, #1 strb r0, [r5, #0x14] - ldr r1, _0802D150 @ =gLinkEntity + ldr r1, _0802D150 @ =gPlayerEntity adds r0, r4, #0 adds r0, #0x5a ldrb r0, [r0] @@ -156,8 +156,8 @@ _0802D128: _0802D148: pop {r4, r5, pc} .align 2, 0 -_0802D14C: .4byte gLinkState -_0802D150: .4byte gLinkEntity +_0802D14C: .4byte gPlayerState +_0802D150: .4byte gPlayerEntity _0802D154: .4byte gUnk_080CD75C thumb_func_start sub_0802D158 @@ -204,7 +204,7 @@ sub_0802D170: @ 0x0802D170 bne _0802D216 movs r0, #2 strb r0, [r5, #0xc] - ldr r2, _0802D1F4 @ =gLinkEntity + ldr r2, _0802D1F4 @ =gPlayerEntity ldr r4, _0802D1F8 @ =gRoomControls ldrh r0, [r4, #6] adds r0, #0x98 @@ -238,7 +238,7 @@ sub_0802D170: @ 0x0802D170 b _0802D216 .align 2, 0 _0802D1F0: .4byte gUnk_03000FD0 -_0802D1F4: .4byte gLinkEntity +_0802D1F4: .4byte gPlayerEntity _0802D1F8: .4byte gRoomControls _0802D1FC: movs r0, #3 @@ -487,7 +487,7 @@ sub_0802D3B8: @ 0x0802D3B8 ldr r0, _0802D3F8 @ =0x0000FDFF ands r0, r1 strh r0, [r2] - ldr r0, _0802D3FC @ =gLinkEntity + ldr r0, _0802D3FC @ =gPlayerEntity bl sub_0807AABC bl DeleteThisEntity _0802D3DE: @@ -506,7 +506,7 @@ _0802D3EA: .align 2, 0 _0802D3F4: .4byte gScreen _0802D3F8: .4byte 0x0000FDFF -_0802D3FC: .4byte gLinkEntity +_0802D3FC: .4byte gPlayerEntity _0802D400: .4byte _0802D404 _0802D404: @ jump table .4byte _0802D420 @ case 0 @@ -650,7 +650,7 @@ _0802D4D6: adds r0, #8 strb r3, [r0] _0802D52E: - ldr r0, _0802D540 @ =gLinkState + ldr r0, _0802D540 @ =gPlayerState adds r0, #0x8b movs r1, #3 strb r1, [r0] @@ -659,7 +659,7 @@ _0802D52E: bl InitializeAnimation b _0802D63C .align 2, 0 -_0802D540: .4byte gLinkState +_0802D540: .4byte gPlayerState _0802D544: ldrb r0, [r4, #0xb] cmp r0, #1 @@ -818,7 +818,7 @@ sub_0802D674: @ 0x0802D674 ldr r0, _0802D6B4 @ =gUnk_02034490 movs r7, #1 strb r7, [r0] - ldr r5, _0802D6B8 @ =gLinkEntity + ldr r5, _0802D6B8 @ =gPlayerEntity ldr r6, [r5, #0x34] cmp r6, #0 bne _0802D6EC @@ -845,7 +845,7 @@ _0802D692: b _0802D6EC .align 2, 0 _0802D6B4: .4byte gUnk_02034490 -_0802D6B8: .4byte gLinkEntity +_0802D6B8: .4byte gPlayerEntity _0802D6BC: .4byte 0x00000127 _0802D6C0: .4byte gRoomControls _0802D6C4: @@ -1010,9 +1010,9 @@ sub_0802D7B4: @ 0x0802D7B4 movs r0, #0x18 strb r0, [r1, #0xe] ldr r1, _0802D800 @ =gRoomControls - ldr r0, _0802D804 @ =gLinkEntity + ldr r0, _0802D804 @ =gPlayerEntity str r0, [r1, #0x30] - ldr r0, _0802D808 @ =gLinkState + ldr r0, _0802D808 @ =gPlayerState adds r0, #0x8b strb r2, [r0] ldr r0, _0802D80C @ =gUnk_02034490 @@ -1023,8 +1023,8 @@ sub_0802D7B4: @ 0x0802D7B4 .align 2, 0 _0802D7FC: .4byte gUnk_080CD7F8 _0802D800: .4byte gRoomControls -_0802D804: .4byte gLinkEntity -_0802D808: .4byte gLinkState +_0802D804: .4byte gPlayerEntity +_0802D808: .4byte gPlayerState _0802D80C: .4byte gUnk_02034490 _0802D810: strb r1, [r5, #0xe] @@ -1167,7 +1167,7 @@ _0802D918: bne _0802D924 b _0802DB7E _0802D924: - ldr r1, _0802D944 @ =gLinkEntity + ldr r1, _0802D944 @ =gPlayerEntity adds r0, r4, #0 movs r2, #8 movs r3, #8 @@ -1176,7 +1176,7 @@ _0802D924: bne _0802D936 b _0802DB7E _0802D936: - ldr r0, _0802D948 @ =gLinkState + ldr r0, _0802D948 @ =gPlayerState movs r1, #1 strb r1, [r0, #0x14] adds r0, #0x3f @@ -1184,8 +1184,8 @@ _0802D936: strb r1, [r0] b _0802DB7E .align 2, 0 -_0802D944: .4byte gLinkEntity -_0802D948: .4byte gLinkState +_0802D944: .4byte gPlayerEntity +_0802D948: .4byte gPlayerState _0802D94C: adds r0, r4, #0 adds r0, #0x5a @@ -1477,7 +1477,7 @@ _0802DB80: .4byte gUnk_080CD810 sub_0802DB84: @ 0x0802DB84 push {r4, r5, lr} adds r5, r0, #0 - ldr r1, _0802DBB0 @ =gLinkEntity + ldr r1, _0802DBB0 @ =gPlayerEntity bl GetFacingDirection strb r0, [r5, #0x15] adds r1, r5, #0 @@ -1496,7 +1496,7 @@ sub_0802DB84: @ 0x0802DB84 strb r0, [r1] b _0802DC1A .align 2, 0 -_0802DBB0: .4byte gLinkEntity +_0802DBB0: .4byte gPlayerEntity _0802DBB4: ldrb r0, [r2, #1] ldrb r1, [r5, #0x15] @@ -1560,7 +1560,7 @@ _0802DC1A: sub_0802DC1C: @ 0x0802DC1C push {r4, r5, r6, lr} adds r5, r0, #0 - ldr r1, _0802DC40 @ =gLinkEntity + ldr r1, _0802DC40 @ =gPlayerEntity bl GetFacingDirection adds r3, r0, #0 adds r1, r5, #0 @@ -1576,7 +1576,7 @@ sub_0802DC1C: @ 0x0802DC1C bhi _0802DC54 b _0802DC48 .align 2, 0 -_0802DC40: .4byte gLinkEntity +_0802DC40: .4byte gPlayerEntity _0802DC44: cmp r3, #2 bls _0802DC54 @@ -1670,7 +1670,7 @@ sub_0802DCE0: @ 0x0802DCE0 ldrb r0, [r1, #0xe] cmp r0, #0xc beq _0802DD44 - ldr r1, _0802DD1C @ =gLinkEntity + ldr r1, _0802DD1C @ =gPlayerEntity adds r0, r4, #0 bl GetFacingDirection strb r0, [r4, #0x15] @@ -1691,7 +1691,7 @@ sub_0802DCE0: @ 0x0802DCE0 strb r0, [r4, #0xf] b _0802DDD0 .align 2, 0 -_0802DD1C: .4byte gLinkEntity +_0802DD1C: .4byte gPlayerEntity _0802DD20: ldrb r0, [r2, #0x15] ldrb r1, [r4, #0x15] @@ -2194,12 +2194,12 @@ sub_0802E0B8: @ 0x0802E0B8 ands r2, r0 cmp r2, #0 beq _0802E0F4 - ldr r1, _0802E128 @ =gLinkEntity + ldr r1, _0802E128 @ =gPlayerEntity adds r0, r4, #0 bl sub_0806FC80 cmp r0, #0 beq _0802E0F4 - ldr r0, _0802E12C @ =gLinkState + ldr r0, _0802E12C @ =gPlayerState movs r1, #1 strb r1, [r0, #0x14] adds r0, #0x3f @@ -2231,8 +2231,8 @@ _0802E0F4: bl PlaySFX b _0802E1CA .align 2, 0 -_0802E128: .4byte gLinkEntity -_0802E12C: .4byte gLinkState +_0802E128: .4byte gPlayerEntity +_0802E12C: .4byte gPlayerState _0802E130: .4byte gUnk_080CD844 _0802E134: ldrb r1, [r4, #0x10] @@ -2341,12 +2341,12 @@ _0802E1F6: ands r2, r0 cmp r2, #0 beq _0802E218 - ldr r1, _0802E280 @ =gLinkEntity + ldr r1, _0802E280 @ =gPlayerEntity adds r0, r5, #0 bl sub_0806FC80 cmp r0, #0 beq _0802E218 - ldr r0, _0802E284 @ =gLinkState + ldr r0, _0802E284 @ =gPlayerState movs r1, #1 strb r1, [r0, #0x14] adds r0, #0x3f @@ -2404,8 +2404,8 @@ _0802E23A: bl sub_08080964 b _0802E2E4 .align 2, 0 -_0802E280: .4byte gLinkEntity -_0802E284: .4byte gLinkState +_0802E280: .4byte gPlayerEntity +_0802E284: .4byte gPlayerState _0802E288: .4byte gScreen _0802E28C: adds r4, r7, #0 @@ -2563,7 +2563,7 @@ _0802E3A4: adds r0, r4, #0 adds r0, #0x84 ldr r5, [r0] - ldr r1, _0802E408 @ =gLinkEntity + ldr r1, _0802E408 @ =gPlayerEntity adds r0, r4, #0 bl GetFacingDirection bl sub_0806F5A4 @@ -2605,7 +2605,7 @@ _0802E400: strb r0, [r1, #0xe] b _0802E422 .align 2, 0 -_0802E408: .4byte gLinkEntity +_0802E408: .4byte gPlayerEntity _0802E40C: ldr r0, _0802E42C @ =gScreenTransition ldr r0, [r0] @@ -3369,7 +3369,7 @@ _0802E9A4: sub_0802E9B0: @ 0x0802E9B0 push {r4, lr} adds r4, r0, #0 - ldr r0, _0802E9D0 @ =gLinkEntity + ldr r0, _0802E9D0 @ =gPlayerEntity movs r2, #0x2e ldrsh r1, [r0, r2] movs r3, #0x32 @@ -3382,7 +3382,7 @@ sub_0802E9B0: @ 0x0802E9B0 movs r2, #0xa b _0802E9EA .align 2, 0 -_0802E9D0: .4byte gLinkEntity +_0802E9D0: .4byte gPlayerEntity _0802E9D4: adds r1, r2, #0 subs r1, #0x60 diff --git a/asm/greatFairy.s b/asm/greatFairy.s index 0ffcae96..d4d0764a 100644 --- a/asm/greatFairy.s +++ b/asm/greatFairy.s @@ -175,7 +175,7 @@ sub_08087424: @ 0x08087424 adds r4, r0, #0 cmp r4, #0 beq _0808744E - ldr r0, _0808745C @ =gLinkEntity + ldr r0, _0808745C @ =gPlayerEntity str r0, [r4, #0x50] adds r1, r4, #0 bl CopyPosition @@ -190,7 +190,7 @@ _0808744E: beq _0808746C b _08087474 .align 2, 0 -_0808745C: .4byte gLinkEntity +_0808745C: .4byte gPlayerEntity _08087460: ldr r0, _08087468 @ =gUnk_02002A40 adds r0, #0xad diff --git a/asm/gregal.s b/asm/gregal.s index 274d9323..9bd9bd63 100644 --- a/asm/gregal.s +++ b/asm/gregal.s @@ -203,7 +203,7 @@ _0806CC40: adds r1, r4, #0 adds r1, #0x69 strb r0, [r1] - ldr r1, _0806CC7C @ =gLinkEntity + ldr r1, _0806CC7C @ =gPlayerEntity adds r0, r4, #0 bl GetFacingDirection bl sub_0806F5A4 @@ -215,7 +215,7 @@ _0806CC40: bl sub_0806F118 b _0806CCB0 .align 2, 0 -_0806CC7C: .4byte gLinkEntity +_0806CC7C: .4byte gPlayerEntity _0806CC80: adds r0, r4, #0 movs r1, #0 diff --git a/asm/guardWithSpear.s b/asm/guardWithSpear.s index 0c8417d3..710a6b81 100644 --- a/asm/guardWithSpear.s +++ b/asm/guardWithSpear.s @@ -175,7 +175,7 @@ sub_08064198: @ 0x08064198 subs r0, r1, #1 strb r0, [r4] _080641AE: - ldr r0, _080641D8 @ =gLinkEntity + ldr r0, _080641D8 @ =gPlayerEntity movs r2, #0x32 ldrsh r1, [r0, r2] movs r2, #0x32 @@ -199,7 +199,7 @@ _080641CA: movs r0, #0x10 b _080641DE .align 2, 0 -_080641D8: .4byte gLinkEntity +_080641D8: .4byte gPlayerEntity _080641DC: movs r0, #0 _080641DE: @@ -220,7 +220,7 @@ _080641E6: adds r6, #0x71 cmp r4, r0 beq _08064256 - ldr r0, _080642B0 @ =gLinkEntity + ldr r0, _080642B0 @ =gPlayerEntity movs r2, #0x24 ldrsh r1, [r0, r2] movs r0, #0xa0 @@ -265,7 +265,7 @@ _08064256: ldrsb r0, [r6, r0] cmp r0, #0 bne _0806428C - ldr r1, _080642B0 @ =gLinkEntity + ldr r1, _080642B0 @ =gPlayerEntity adds r0, r5, #0 bl GetFacingDirection bl sub_0806F5B0 @@ -290,7 +290,7 @@ _0806428C: bl sub_0806ED78 movs r0, #0x36 ldrsh r4, [r5, r0] - ldr r0, _080642B0 @ =gLinkEntity + ldr r0, _080642B0 @ =gPlayerEntity ldrh r0, [r0, #0x36] strh r0, [r5, #0x36] cmp r4, #0 @@ -303,7 +303,7 @@ _0806428C: _080642AC: pop {r4, r5, r6, pc} .align 2, 0 -_080642B0: .4byte gLinkEntity +_080642B0: .4byte gPlayerEntity _080642B4: .4byte gScreenTransition thumb_func_start sub_080642B8 @@ -320,7 +320,7 @@ sub_080642B8: @ 0x080642B8 subs r0, r1, #1 strb r0, [r4] _080642CE: - ldr r0, _080642F8 @ =gLinkEntity + ldr r0, _080642F8 @ =gPlayerEntity movs r2, #0x2e ldrsh r1, [r0, r2] movs r2, #0x2e @@ -344,7 +344,7 @@ _080642EA: movs r0, #8 b _080642FE .align 2, 0 -_080642F8: .4byte gLinkEntity +_080642F8: .4byte gPlayerEntity _080642FC: movs r0, #0x18 _080642FE: @@ -365,7 +365,7 @@ _08064306: adds r6, #0x71 cmp r4, r0 beq _08064376 - ldr r0, _080643D0 @ =gLinkEntity + ldr r0, _080643D0 @ =gPlayerEntity movs r2, #0x24 ldrsh r1, [r0, r2] movs r0, #0xa0 @@ -410,7 +410,7 @@ _08064376: ldrsb r0, [r6, r0] cmp r0, #0 bne _080643AC - ldr r1, _080643D0 @ =gLinkEntity + ldr r1, _080643D0 @ =gPlayerEntity adds r0, r5, #0 bl GetFacingDirection bl sub_0806F5B0 @@ -435,7 +435,7 @@ _080643AC: bl sub_0806ED78 movs r0, #0x36 ldrsh r4, [r5, r0] - ldr r0, _080643D0 @ =gLinkEntity + ldr r0, _080643D0 @ =gPlayerEntity ldrh r0, [r0, #0x36] strh r0, [r5, #0x36] cmp r4, #0 @@ -448,7 +448,7 @@ _080643AC: _080643CC: pop {r4, r5, r6, pc} .align 2, 0 -_080643D0: .4byte gLinkEntity +_080643D0: .4byte gPlayerEntity _080643D4: .4byte gScreenTransition thumb_func_start sub_080643D8 @@ -533,7 +533,7 @@ _0806446C: .4byte gUnk_0810D0A4 thumb_func_start sub_08064470 sub_08064470: @ 0x08064470 push {lr} - ldr r0, _08064484 @ =gLinkState + ldr r0, _08064484 @ =gPlayerState adds r0, #0xab ldrb r0, [r0] cmp r0, #1 @@ -543,12 +543,12 @@ _0806447E: str r0, [r1, #0x14] pop {pc} .align 2, 0 -_08064484: .4byte gLinkState +_08064484: .4byte gPlayerState thumb_func_start sub_08064488 sub_08064488: @ 0x08064488 push {lr} - ldr r1, _080644A0 @ =gLinkState + ldr r1, _080644A0 @ =gPlayerState adds r0, r1, #0 adds r0, #0xa8 ldrb r0, [r0] @@ -560,17 +560,17 @@ sub_08064488: @ 0x08064488 _0806449C: pop {pc} .align 2, 0 -_080644A0: .4byte gLinkState +_080644A0: .4byte gPlayerState thumb_func_start sub_080644A4 sub_080644A4: @ 0x080644A4 - ldr r0, _080644B0 @ =gLinkState + ldr r0, _080644B0 @ =gPlayerState adds r0, #0xab movs r1, #0 strb r1, [r0] bx lr .align 2, 0 -_080644B0: .4byte gLinkState +_080644B0: .4byte gPlayerState thumb_func_start sub_080644B4 sub_080644B4: @ 0x080644B4 diff --git a/asm/gyorgChild.s b/asm/gyorgChild.s index 9850cc4c..87995eb8 100644 --- a/asm/gyorgChild.s +++ b/asm/gyorgChild.s @@ -339,7 +339,7 @@ _080488AA: cmp r0, #2 bne _080488D0 _080488AE: - ldr r1, _080488C8 @ =gLinkEntity + ldr r1, _080488C8 @ =gPlayerEntity adds r0, r4, #0 adds r0, #0x74 ldrh r0, [r0] @@ -353,7 +353,7 @@ _080488AE: ldrh r1, [r1, #0xc] b _080488E8 .align 2, 0 -_080488C8: .4byte gLinkEntity +_080488C8: .4byte gPlayerEntity _080488CC: .4byte gRoomControls _080488D0: ldr r1, _080488FC @ =gRoomControls @@ -363,7 +363,7 @@ _080488D0: ldrh r1, [r1, #0xa] adds r0, r0, r1 strh r0, [r4, #0x2e] - ldr r1, _08048900 @ =gLinkEntity + ldr r1, _08048900 @ =gPlayerEntity adds r0, r4, #0 adds r0, #0x76 ldrh r0, [r0] @@ -381,7 +381,7 @@ _080488FA: pop {r4, pc} .align 2, 0 _080488FC: .4byte gRoomControls -_08048900: .4byte gLinkEntity +_08048900: .4byte gPlayerEntity thumb_func_start sub_08048904 sub_08048904: @ 0x08048904 diff --git a/asm/gyorgFemale.s b/asm/gyorgFemale.s index cae9b128..7523b997 100644 --- a/asm/gyorgFemale.s +++ b/asm/gyorgFemale.s @@ -121,7 +121,7 @@ sub_0804614C: @ 0x0804614C bl sub_0804660C adds r0, r6, #0 bl sub_080464C0 - ldr r0, _08046254 @ =gLinkEntity + ldr r0, _08046254 @ =gPlayerEntity adds r1, r0, #0 adds r1, #0x38 strb r5, [r1] @@ -136,7 +136,7 @@ _08046244: _08046248: .4byte gUnk_03003DBC _0804624C: .4byte gUnk_02019EE0 _08046250: .4byte gUnk_02002F00 -_08046254: .4byte gLinkEntity +_08046254: .4byte gPlayerEntity _08046258: .4byte sub_08046498 thumb_func_start sub_0804625C @@ -586,7 +586,7 @@ _080465C4: .4byte gUnk_080B3E80 thumb_func_start sub_080465C8 sub_080465C8: @ 0x080465C8 push {r4, lr} - ldr r3, _080465FC @ =gLinkEntity + ldr r3, _080465FC @ =gPlayerEntity movs r0, #0x2e ldrsh r2, [r3, r0] ldr r1, _08046600 @ =gRoomControls @@ -606,16 +606,16 @@ sub_080465C8: @ 0x080465C8 ldrh r0, [r0] cmp r0, #0 beq _080465F8 - ldr r1, _08046608 @ =gLinkState + ldr r1, _08046608 @ =gPlayerState movs r0, #1 strb r0, [r1, #0x14] _080465F8: pop {r4, pc} .align 2, 0 -_080465FC: .4byte gLinkEntity +_080465FC: .4byte gPlayerEntity _08046600: .4byte gRoomControls _08046604: .4byte gUnk_02019EE0 -_08046608: .4byte gLinkState +_08046608: .4byte gPlayerState thumb_func_start sub_0804660C sub_0804660C: @ 0x0804660C @@ -817,7 +817,7 @@ _0804674C: adds r0, r1, #0 cmp r0, #0xff beq _080467CC - ldr r2, _080467D8 @ =gLinkEntity + ldr r2, _080467D8 @ =gPlayerEntity adds r0, r2, #0 adds r0, #0x3e strb r1, [r0] @@ -854,7 +854,7 @@ _080467CC: strb r0, [r1] pop {r4, r5, r6, r7, pc} .align 2, 0 -_080467D8: .4byte gLinkEntity +_080467D8: .4byte gPlayerEntity thumb_func_start sub_080467DC sub_080467DC: @ 0x080467DC diff --git a/asm/gyorgFemaleEye.s b/asm/gyorgFemaleEye.s index 174b71e2..30a31622 100644 --- a/asm/gyorgFemaleEye.s +++ b/asm/gyorgFemaleEye.s @@ -120,7 +120,7 @@ _08048A7C: adds r1, r1, r0 ldr r0, [r5, #0x4c] str r0, [r1] - ldr r2, _08048ACC @ =gLinkEntity + ldr r2, _08048ACC @ =gPlayerEntity movs r6, #0x2e ldrsh r0, [r2, r6] movs r6, #0x2e @@ -151,7 +151,7 @@ _08048A7C: strb r0, [r2] b _08048AD8 .align 2, 0 -_08048ACC: .4byte gLinkEntity +_08048ACC: .4byte gPlayerEntity _08048AD0: ldr r0, [r4, #0x64] adds r0, #0x3c diff --git a/asm/gyorgFemaleMouth.s b/asm/gyorgFemaleMouth.s index 90d121e9..007356a9 100644 --- a/asm/gyorgFemaleMouth.s +++ b/asm/gyorgFemaleMouth.s @@ -85,16 +85,16 @@ _0804901E: ands r0, r5 cmp r0, #0 beq _08049038 - ldr r0, _08049034 @ =gLinkEntity + ldr r0, _08049034 @ =gPlayerEntity movs r2, #0x32 ldrsh r1, [r4, r2] movs r2, #0x32 ldrsh r0, [r0, r2] b _08049042 .align 2, 0 -_08049034: .4byte gLinkEntity +_08049034: .4byte gPlayerEntity _08049038: - ldr r0, _08049054 @ =gLinkEntity + ldr r0, _08049054 @ =gPlayerEntity movs r2, #0x2e ldrsh r1, [r4, r2] movs r2, #0x2e @@ -111,5 +111,5 @@ _08049048: str r0, [r4, #0x48] pop {r4, r5, r6, pc} .align 2, 0 -_08049054: .4byte gLinkEntity +_08049054: .4byte gPlayerEntity _08049058: .4byte gUnk_080D28AC diff --git a/asm/gyorgMale.s b/asm/gyorgMale.s index b629c4d4..f51bb0d8 100644 --- a/asm/gyorgMale.s +++ b/asm/gyorgMale.s @@ -77,7 +77,7 @@ _08046836: ands r0, r2 strb r0, [r4, #0x18] _08046878: - ldr r2, _08046894 @ =gLinkEntity + ldr r2, _08046894 @ =gPlayerEntity ldrh r1, [r2, #0x2e] adds r0, r4, #0 adds r0, #0x84 @@ -89,7 +89,7 @@ _08046878: .align 2, 0 _0804688C: .4byte gUnk_080D1AFC _08046890: .4byte gRoomControls -_08046894: .4byte gLinkEntity +_08046894: .4byte gPlayerEntity thumb_func_start sub_08046898 sub_08046898: @ 0x08046898 @@ -2193,7 +2193,7 @@ _0804780A: strb r0, [r4, #0x15] adds r0, r4, #0 bl sub_08047E48 - ldr r0, _0804786C @ =gLinkEntity + ldr r0, _0804786C @ =gPlayerEntity movs r2, #0x2e ldrsh r1, [r0, r2] movs r3, #0x32 @@ -2223,7 +2223,7 @@ _0804780A: b _0804790C .align 2, 0 _08047868: .4byte 0x000002FF -_0804786C: .4byte gLinkEntity +_0804786C: .4byte gPlayerEntity _08047870: ldr r5, _080478FC @ =gRoomControls ldrh r1, [r5, #6] @@ -2425,7 +2425,7 @@ _080479CC: beq _080479F4 str r4, [r0, #0x50] _080479F4: - ldr r0, _08047A78 @ =gLinkEntity + ldr r0, _08047A78 @ =gPlayerEntity movs r2, #0x2e ldrsh r1, [r0, r2] movs r3, #0x32 @@ -2491,7 +2491,7 @@ _08047A2C: adds r1, #0x82 b _08047B04 .align 2, 0 -_08047A78: .4byte gLinkEntity +_08047A78: .4byte gPlayerEntity _08047A7C: .4byte gRoomControls _08047A80: ldr r2, _08047AA0 @ =gRoomControls @@ -2911,7 +2911,7 @@ sub_08047D88: @ 0x08047D88 lsrs r0, r0, #6 cmp r0, #3 bne _08047DB0 - ldr r0, _08047DE8 @ =gLinkState + ldr r0, _08047DE8 @ =gPlayerState ldrb r0, [r0, #0x14] cmp r0, #0 bne _08047DE6 @@ -2921,7 +2921,7 @@ _08047DB0: ldrb r0, [r0] cmp r0, #1 beq _08047DE6 - ldr r4, _08047DEC @ =gLinkEntity + ldr r4, _08047DEC @ =gPlayerEntity movs r0, #0x2e ldrsh r1, [r4, r0] movs r0, #0x32 @@ -2931,7 +2931,7 @@ _08047DB0: bl sub_0806FCB8 cmp r0, #0 beq _08047DE6 - ldr r0, _08047DE8 @ =gLinkState + ldr r0, _08047DE8 @ =gPlayerState movs r1, #1 strb r1, [r0, #0x14] movs r1, #0x36 @@ -2945,8 +2945,8 @@ _08047DB0: _08047DE6: pop {r4, r5, pc} .align 2, 0 -_08047DE8: .4byte gLinkState -_08047DEC: .4byte gLinkEntity +_08047DE8: .4byte gPlayerState +_08047DEC: .4byte gPlayerEntity thumb_func_start sub_08047DF0 sub_08047DF0: @ 0x08047DF0 @@ -2976,7 +2976,7 @@ sub_08047DF0: @ 0x08047DF0 bl sub_08079F8C cmp r0, #0 beq _08047E42 - ldr r0, _08047E44 @ =gLinkEntity + ldr r0, _08047E44 @ =gPlayerEntity ldrh r1, [r5, #0x2e] subs r1, r1, r4 ldrh r2, [r0, #0x2e] @@ -2990,7 +2990,7 @@ sub_08047DF0: @ 0x08047DF0 _08047E42: pop {r4, r5, r6, pc} .align 2, 0 -_08047E44: .4byte gLinkEntity +_08047E44: .4byte gPlayerEntity thumb_func_start sub_08047E48 sub_08047E48: @ 0x08047E48 @@ -3024,7 +3024,7 @@ sub_08047E58: @ 0x08047E58 bl sub_08079F8C cmp r0, #0 beq _08047E9C - ldr r0, _08047EA0 @ =gLinkEntity + ldr r0, _08047EA0 @ =gPlayerEntity ldrh r1, [r4, #0x2e] subs r1, r1, r5 ldrh r2, [r0, #0x2e] @@ -3038,7 +3038,7 @@ sub_08047E58: @ 0x08047E58 _08047E9C: pop {r4, r5, r6, pc} .align 2, 0 -_08047EA0: .4byte gLinkEntity +_08047EA0: .4byte gPlayerEntity thumb_func_start sub_08047EA4 sub_08047EA4: @ 0x08047EA4 @@ -3069,7 +3069,7 @@ sub_08047EA4: @ 0x08047EA4 bl sub_08047F68 lsls r0, r0, #8 mov r8, r0 - ldr r6, _08047F60 @ =gLinkEntity + ldr r6, _08047F60 @ =gPlayerEntity movs r1, #0x2e ldrsh r0, [r6, r1] movs r2, #0x2e @@ -3137,13 +3137,13 @@ _08047F58: mov r8, r3 pop {r4, r5, r6, r7, pc} .align 2, 0 -_08047F60: .4byte gLinkEntity +_08047F60: .4byte gPlayerEntity _08047F64: .4byte gSineTable thumb_func_start sub_08047F68 sub_08047F68: @ 0x08047F68 push {r4, r5, lr} - ldr r3, _08047F98 @ =gLinkEntity + ldr r3, _08047F98 @ =gPlayerEntity movs r1, #0x2e ldrsh r2, [r3, r1] movs r4, #0x2e @@ -3167,7 +3167,7 @@ sub_08047F68: @ 0x08047F68 movs r0, #0x20 b _08048002 .align 2, 0 -_08047F98: .4byte gLinkEntity +_08047F98: .4byte gPlayerEntity _08047F9C: ldr r0, _08047FB8 @ =gUnk_080D1C04 movs r3, #0x18 @@ -3251,7 +3251,7 @@ _0804801C: movs r1, #0x7f ands r1, r0 strb r1, [r4, #0x10] - ldr r6, _080480A4 @ =gLinkEntity + ldr r6, _080480A4 @ =gPlayerEntity movs r1, #0x36 ldrsh r0, [r6, r1] cmp r0, #0 @@ -3317,7 +3317,7 @@ _08048086: strh r0, [r6, #0x32] b _08048138 .align 2, 0 -_080480A4: .4byte gLinkEntity +_080480A4: .4byte gPlayerEntity _080480A8: .4byte gRoomControls _080480AC: .4byte gUnk_02019EE0 _080480B0: diff --git a/asm/helmasaur.s b/asm/helmasaur.s index 007bf3fd..6b17b172 100644 --- a/asm/helmasaur.s +++ b/asm/helmasaur.s @@ -152,7 +152,7 @@ sub_0802BC74: @ 0x0802BC74 strb r0, [r4, #0xd] movs r0, #0x3c strb r0, [r4, #0x1d] - ldr r0, _0802BC9C @ =gLinkEntity + ldr r0, _0802BC9C @ =gPlayerEntity ldrb r0, [r0, #0x14] lsrs r0, r0, #1 movs r1, #2 @@ -163,7 +163,7 @@ sub_0802BC74: @ 0x0802BC74 bl InitializeAnimation pop {r4, pc} .align 2, 0 -_0802BC9C: .4byte gLinkEntity +_0802BC9C: .4byte gPlayerEntity thumb_func_start sub_0802BCA0 sub_0802BCA0: @ 0x0802BCA0 diff --git a/asm/houseDoorInterior.s b/asm/houseDoorInterior.s index 244dcffb..fe322524 100644 --- a/asm/houseDoorInterior.s +++ b/asm/houseDoorInterior.s @@ -116,12 +116,12 @@ _08092C20: bl sub_0806ED9C cmp r0, #0 blt _08092C78 - ldr r1, _08092C6C @ =gLinkEntity + ldr r1, _08092C6C @ =gPlayerEntity ldrh r0, [r5] ldrb r1, [r1, #0x14] cmp r0, r1 bne _08092C78 - ldr r0, _08092C70 @ =gLinkState + ldr r0, _08092C70 @ =gPlayerState adds r0, #0x90 ldrh r1, [r0] ldrh r0, [r5, #2] @@ -133,8 +133,8 @@ _08092C20: b _08092C76 .align 2, 0 _08092C68: .4byte gUnk_081227CC -_08092C6C: .4byte gLinkEntity -_08092C70: .4byte gLinkState +_08092C6C: .4byte gPlayerEntity +_08092C70: .4byte gPlayerState _08092C74: movs r0, #8 _08092C76: diff --git a/asm/hurdyGurdyMan.s b/asm/hurdyGurdyMan.s index 76e75707..049ac213 100644 --- a/asm/hurdyGurdyMan.s +++ b/asm/hurdyGurdyMan.s @@ -57,7 +57,7 @@ _0806E34C: adds r1, r4, #0 adds r1, #0x69 strb r0, [r1] - ldr r1, _0806E3B0 @ =gLinkEntity + ldr r1, _0806E3B0 @ =gPlayerEntity adds r0, r4, #0 bl GetFacingDirection bl sub_0806F5A4 @@ -82,15 +82,15 @@ _0806E398: ldrh r3, [r3, #4] adds r0, r4, #0 bl sub_0801DFB4 - ldr r0, _0806E3B8 @ =gLinkState + ldr r0, _0806E3B8 @ =gPlayerState adds r0, #0x8b movs r1, #3 strb r1, [r0] b _0806E3E0 .align 2, 0 -_0806E3B0: .4byte gLinkEntity +_0806E3B0: .4byte gPlayerEntity _0806E3B4: .4byte gUnk_08001A7C -_0806E3B8: .4byte gLinkState +_0806E3B8: .4byte gPlayerState _0806E3BC: adds r0, r4, #0 movs r1, #0 diff --git a/asm/item11.s b/asm/item11.s index 8ea3fa78..f9d7a5f0 100644 --- a/asm/item11.s +++ b/asm/item11.s @@ -173,7 +173,7 @@ _08018F9E: sub_08018FA0: @ 0x08018FA0 push {lr} adds r2, r0, #0 - ldr r0, _08018FC8 @ =gLinkEntity + ldr r0, _08018FC8 @ =gPlayerEntity adds r0, #0x38 ldrb r0, [r0] adds r1, r2, #0 @@ -191,4 +191,4 @@ _08018FBC: bl PlaySFX pop {pc} .align 2, 0 -_08018FC8: .4byte gLinkEntity \ No newline at end of file +_08018FC8: .4byte gPlayerEntity \ No newline at end of file diff --git a/asm/itemForSale.s b/asm/itemForSale.s index 52c82031..8b447c9c 100644 --- a/asm/itemForSale.s +++ b/asm/itemForSale.s @@ -115,13 +115,13 @@ _080818C0: ldr r1, _080818E8 @ =gRoomVars movs r0, #1 str r0, [r1, #0x68] - ldr r1, _080818EC @ =gLinkState + ldr r1, _080818EC @ =gPlayerState movs r0, #7 strb r0, [r1, #0xc] b _08081920 .align 2, 0 _080818E8: .4byte gRoomVars -_080818EC: .4byte gLinkState +_080818EC: .4byte gPlayerState _080818F0: adds r1, r4, #0 adds r1, #0x39 @@ -133,11 +133,11 @@ _080818F0: movs r0, #1 strb r0, [r4, #0xd] bl sub_08078B48 - bl ResetLink - ldr r1, _08081924 @ =gLinkState + bl ResetPlayer + ldr r1, _08081924 @ =gPlayerState movs r0, #4 strb r0, [r1, #5] - ldr r0, _08081928 @ =gLinkEntity + ldr r0, _08081928 @ =gPlayerEntity str r4, [r0, #0x74] ldr r0, _0808192C @ =gUnk_0200AF00 adds r0, #0x2f @@ -147,8 +147,8 @@ _080818F0: _08081920: pop {r4, pc} .align 2, 0 -_08081924: .4byte gLinkState -_08081928: .4byte gLinkEntity +_08081924: .4byte gPlayerState +_08081928: .4byte gPlayerEntity _0808192C: .4byte gUnk_0200AF00 thumb_func_start sub_08081930 @@ -160,7 +160,7 @@ sub_08081930: @ 0x08081930 adds r6, #0x2f movs r0, #2 strb r0, [r6] - ldr r3, _0808196C @ =gLinkEntity + ldr r3, _0808196C @ =gPlayerEntity ldrb r1, [r3, #0x18] lsls r1, r1, #0x1e lsrs r1, r1, #0x1e @@ -169,7 +169,7 @@ sub_08081930: @ 0x08081930 ands r0, r2 orrs r0, r1 strb r0, [r4, #0x18] - ldr r5, _08081970 @ =gLinkState + ldr r5, _08081970 @ =gPlayerState ldrb r0, [r5, #5] cmp r0, #0 beq _0808195E @@ -182,8 +182,8 @@ _0808195E: b _080819AC .align 2, 0 _08081968: .4byte gUnk_0200AF00 -_0808196C: .4byte gLinkEntity -_08081970: .4byte gLinkState +_0808196C: .4byte gPlayerEntity +_08081970: .4byte gPlayerState _08081974: bl sub_080784E4 adds r1, r0, #0 @@ -203,7 +203,7 @@ _08081974: cmp r0, #0 bne _080819AC _08081998: - ldr r0, _080819B0 @ =gLinkState + ldr r0, _080819B0 @ =gPlayerState adds r0, #0x92 ldrh r1, [r0] movs r0, #0x98 @@ -215,7 +215,7 @@ _08081998: _080819AC: pop {r4, r5, r6, pc} .align 2, 0 -_080819B0: .4byte gLinkState +_080819B0: .4byte gPlayerState thumb_func_start sub_080819B4 sub_080819B4: @ 0x080819B4 @@ -236,10 +236,10 @@ sub_080819B4: @ 0x080819B4 _080819D0: bl DeleteThisEntity _080819D4: - ldr r0, _08081A4C @ =gLinkState + ldr r0, _08081A4C @ =gPlayerState movs r2, #0 strb r2, [r0, #5] - ldr r4, _08081A50 @ =gLinkEntity + ldr r4, _08081A50 @ =gPlayerEntity str r2, [r4, #0x74] ldr r1, _08081A54 @ =gUnk_0200AF00 ldr r3, _08081A48 @ =gRoomVars @@ -294,8 +294,8 @@ _080819D4: pop {r4, r5, r6, pc} .align 2, 0 _08081A48: .4byte gRoomVars -_08081A4C: .4byte gLinkState -_08081A50: .4byte gLinkEntity +_08081A4C: .4byte gPlayerState +_08081A50: .4byte gPlayerEntity _08081A54: .4byte gUnk_0200AF00 _08081A58: .4byte gRoomControls diff --git a/asm/itemOnGround.s b/asm/itemOnGround.s index aaf987cc..56f4fa8a 100644 --- a/asm/itemOnGround.s +++ b/asm/itemOnGround.s @@ -127,13 +127,13 @@ sub_08080A40: @ 0x08080A40 push {r4, r5, r6, r7, lr} ldr r7, _08080A70 @ =gRoomControls ldr r1, [r7, #0x30] - ldr r0, _08080A74 @ =gLinkEntity + ldr r0, _08080A74 @ =gPlayerEntity adds r2, r7, #0 cmp r1, r0 beq _08080A50 b _08080B5C _08080A50: - ldr r0, _08080A78 @ =gLinkState + ldr r0, _08080A78 @ =gPlayerState ldrb r0, [r0, #2] cmp r0, #0 beq _08080A5A @@ -152,8 +152,8 @@ _08080A64: mov pc, r0 .align 2, 0 _08080A70: .4byte gRoomControls -_08080A74: .4byte gLinkEntity -_08080A78: .4byte gLinkState +_08080A74: .4byte gPlayerEntity +_08080A78: .4byte gPlayerState _08080A7C: .4byte _08080A80 _08080A80: @ jump table .4byte _08080AFA @ case 0 @@ -897,13 +897,13 @@ _0808110E: adds r1, #0x3b movs r0, #0x11 strb r0, [r1] - ldr r0, _08081130 @ =gLinkEntity + ldr r0, _08081130 @ =gPlayerEntity adds r1, r2, #0 bl CopyPosition _0808112E: pop {pc} .align 2, 0 -_08081130: .4byte gLinkEntity +_08081130: .4byte gPlayerEntity thumb_func_start sub_08081134 sub_08081134: @ 0x08081134 @@ -1150,7 +1150,7 @@ _080812E4: sub_080812E8: @ 0x080812E8 push {r4, lr} adds r4, r0, #0 - ldr r3, _0808131C @ =gLinkState + ldr r3, _0808131C @ =gPlayerState adds r0, r3, #0 adds r0, #0x26 ldrb r1, [r0] @@ -1163,7 +1163,7 @@ sub_080812E8: @ 0x080812E8 ands r0, r2 cmp r0, #0 bne _08081318 - ldr r1, _08081320 @ =gLinkEntity + ldr r1, _08081320 @ =gPlayerEntity adds r0, r4, #0 bl sub_080177A0 cmp r0, #0 @@ -1173,8 +1173,8 @@ sub_080812E8: @ 0x080812E8 _08081318: pop {r4, pc} .align 2, 0 -_0808131C: .4byte gLinkState -_08081320: .4byte gLinkEntity +_0808131C: .4byte gPlayerState +_08081320: .4byte gPlayerEntity thumb_func_start nullsub_510 nullsub_510: @ 0x08081324 @@ -1202,7 +1202,7 @@ _08081342: ldrh r0, [r4, #0x36] subs r0, #1 strh r0, [r4, #0x36] - ldr r2, _08081368 @ =gLinkEntity + ldr r2, _08081368 @ =gPlayerEntity adds r0, r4, #0 adds r1, r2, #0 bl sub_080177A0 @@ -1213,7 +1213,7 @@ _08081342: _08081364: pop {r4, pc} .align 2, 0 -_08081368: .4byte gLinkEntity +_08081368: .4byte gPlayerEntity thumb_func_start sub_0808136C sub_0808136C: @ 0x0808136C @@ -1570,7 +1570,7 @@ _080815AC: movs r1, #3 orrs r0, r1 strb r0, [r2] - ldr r0, _08081618 @ =gLinkEntity + ldr r0, _08081618 @ =gPlayerEntity str r0, [r4, #0x54] adds r1, r4, #0 bl CopyPosition @@ -1590,4 +1590,4 @@ _080815AC: _08081614: pop {r4, pc} .align 2, 0 -_08081618: .4byte gLinkEntity +_08081618: .4byte gPlayerEntity diff --git a/asm/jarPortal.s b/asm/jarPortal.s index 2c797755..7a6fc73b 100644 --- a/asm/jarPortal.s +++ b/asm/jarPortal.s @@ -248,7 +248,7 @@ _0808C050: strb r0, [r2, #0x17] cmp r5, #1 bne _0808C0A6 - ldr r3, _0808C070 @ =gLinkState + ldr r3, _0808C070 @ =gPlayerState ldr r0, [r3, #0x30] movs r1, #0x20 ands r0, r1 @@ -261,7 +261,7 @@ _0808C050: b _0808C082 .align 2, 0 _0808C06C: .4byte gArea -_0808C070: .4byte gLinkState +_0808C070: .4byte gPlayerState _0808C074: bl sub_08057810 cmp r0, #0 diff --git a/asm/kid.s b/asm/kid.s index 3aa4ff7d..337736d6 100644 --- a/asm/kid.s +++ b/asm/kid.s @@ -263,7 +263,7 @@ _0806229A: ldrb r0, [r5] cmp r0, #7 bhi _080622F2 - ldr r1, _080622C8 @ =gLinkEntity + ldr r1, _080622C8 @ =gPlayerEntity adds r0, r4, #0 bl GetFacingDirection bl sub_0806F5A4 @@ -276,7 +276,7 @@ _0806229A: bl InitializeAnimation b _080622F2 .align 2, 0 -_080622C8: .4byte gLinkEntity +_080622C8: .4byte gPlayerEntity _080622CC: adds r0, r4, #0 bl GetNextFrame @@ -307,7 +307,7 @@ sub_080622F4: @ 0x080622F4 mov r6, r8 push {r6, r7} adds r7, r0, #0 - ldr r0, _0806239C @ =gLinkEntity + ldr r0, _0806239C @ =gPlayerEntity mov r8, r0 ldrh r1, [r0, #0x2e] ldr r3, _080623A0 @ =0xFFFF0000 @@ -325,7 +325,7 @@ sub_080622F4: @ 0x080622F4 ldrh r0, [r1, #0x36] ands r3, r6 orrs r3, r0 - ldr r0, _080623A8 @ =gLinkState + ldr r0, _080623A8 @ =gPlayerState adds r0, #0xa8 ldrb r0, [r0] lsls r0, r0, #0x10 @@ -389,10 +389,10 @@ _08062390: strb r0, [r1] b _080624F8 .align 2, 0 -_0806239C: .4byte gLinkEntity +_0806239C: .4byte gPlayerEntity _080623A0: .4byte 0xFFFF0000 _080623A4: .4byte 0x0000FFFF -_080623A8: .4byte gLinkState +_080623A8: .4byte gPlayerState _080623AC: .4byte 0xFF00FFFF _080623B0: .4byte 0xC0FFFFFF _080623B4: .4byte 0x3FFFFFFF @@ -471,7 +471,7 @@ _08062430: bge _08062430 b _08062480 _08062442: - ldr r1, _080624E8 @ =gLinkEntity + ldr r1, _080624E8 @ =gPlayerEntity movs r3, #0x2e ldrsh r0, [r1, r3] movs r2, #0x32 @@ -559,7 +559,7 @@ _080624D8: strb r0, [r1] b _080624F2 .align 2, 0 -_080624E8: .4byte gLinkEntity +_080624E8: .4byte gPlayerEntity _080624EC: adds r0, r7, #0 bl UpdateAnimationSingleFrame @@ -603,7 +603,7 @@ sub_0806252C: @ 0x0806252C mov r5, r8 push {r5, r6, r7} adds r7, r0, #0 - ldr r4, _08062618 @ =gLinkEntity + ldr r4, _08062618 @ =gPlayerEntity ldrh r1, [r4, #0x2e] ldr r3, _0806261C @ =0xFFFF0000 adds r0, r3, #0 @@ -618,7 +618,7 @@ sub_0806252C: @ 0x0806252C ldrh r0, [r4, #0x36] ands r3, r6 orrs r3, r0 - ldr r0, _08062624 @ =gLinkState + ldr r0, _08062624 @ =gPlayerState adds r0, #0xa8 ldrb r0, [r0] lsls r0, r0, #0x10 @@ -715,10 +715,10 @@ _080625C8: mov sl, r5 pop {r4, r5, r6, r7, pc} .align 2, 0 -_08062618: .4byte gLinkEntity +_08062618: .4byte gPlayerEntity _0806261C: .4byte 0xFFFF0000 _08062620: .4byte 0x0000FFFF -_08062624: .4byte gLinkState +_08062624: .4byte gPlayerState _08062628: .4byte 0xFF00FFFF _0806262C: .4byte 0xC0FFFFFF _08062630: .4byte 0x3FFFFFFF diff --git a/asm/kingDaltus.s b/asm/kingDaltus.s index 9b6bb8c6..e77fb2d8 100644 --- a/asm/kingDaltus.s +++ b/asm/kingDaltus.s @@ -24,7 +24,7 @@ KingDaltus: @ 0x080665E4 movs r0, #0 strb r0, [r2] strb r1, [r4, #0xc] - ldr r1, _08066630 @ =gLinkEntity + ldr r1, _08066630 @ =gPlayerEntity adds r0, r4, #0 bl GetFacingDirection bl sub_0806F5A4 @@ -43,7 +43,7 @@ _0806661E: bl _call_via_r1 b _0806664E .align 2, 0 -_08066630: .4byte gLinkEntity +_08066630: .4byte gPlayerEntity _08066634: .4byte gUnk_081104EC _08066638: ldr r0, _08066650 @ =gUnk_081104E0 diff --git a/asm/ladderHoleInBookshelf.s b/asm/ladderHoleInBookshelf.s index 4f2b4648..4d1cd0d1 100644 --- a/asm/ladderHoleInBookshelf.s +++ b/asm/ladderHoleInBookshelf.s @@ -44,7 +44,7 @@ sub_08093FE0: @ 0x08093FE0 ldrb r0, [r3] cmp r0, #2 bne _08094024 - ldr r0, _08094020 @ =gLinkEntity + ldr r0, _08094020 @ =gPlayerEntity ldrb r0, [r0, #0xc] cmp r0, #0x1e bgt _08094002 @@ -65,9 +65,9 @@ _08094002: orrs r0, r1 b _08094060 .align 2, 0 -_08094020: .4byte gLinkEntity +_08094020: .4byte gPlayerEntity _08094024: - ldr r0, _0809404C @ =gLinkEntity + ldr r0, _0809404C @ =gPlayerEntity ldrb r2, [r0, #0xc] cmp r2, #0x1e bgt _08094050 @@ -87,7 +87,7 @@ _08094024: orrs r0, r1 b _08094060 .align 2, 0 -_0809404C: .4byte gLinkEntity +_0809404C: .4byte gPlayerEntity _08094050: adds r2, r0, #0 adds r2, #0x38 @@ -106,7 +106,7 @@ _08094062: sub_08094064: @ 0x08094064 push {lr} movs r2, #1 - ldr r1, _08094080 @ =gLinkEntity + ldr r1, _08094080 @ =gPlayerEntity movs r3, #0x2e ldrsh r1, [r1, r3] movs r3, #0x2e @@ -120,4 +120,4 @@ _0809407C: adds r0, r2, #0 pop {pc} .align 2, 0 -_08094080: .4byte gLinkEntity +_08094080: .4byte gPlayerEntity diff --git a/asm/ladderUp.s b/asm/ladderUp.s index 654eb080..a9fe683f 100644 --- a/asm/ladderUp.s +++ b/asm/ladderUp.s @@ -136,14 +136,14 @@ _0808DC46: beq _0808DC4E b _0808DD72 _0808DC4E: - ldr r0, _0808DCC8 @ =gLinkEntity + ldr r0, _0808DCC8 @ =gPlayerEntity movs r2, #0x32 ldrsh r1, [r0, r2] movs r3, #0x32 ldrsh r0, [r7, r3] cmp r1, r0 bge _0808DCDC - ldr r0, _0808DCCC @ =gLinkState + ldr r0, _0808DCCC @ =gPlayerState ldrb r0, [r0, #0x12] cmp r0, #0x1e bne _0808DC66 @@ -196,8 +196,8 @@ _0808DC74: bl sub_0807BA8C b _0808DD72 .align 2, 0 -_0808DCC8: .4byte gLinkEntity -_0808DCCC: .4byte gLinkState +_0808DCC8: .4byte gPlayerEntity +_0808DCCC: .4byte gPlayerState _0808DCD0: .4byte 0x00004017 _0808DCD4: .4byte 0x00004023 _0808DCD8: .4byte gRoomControls diff --git a/asm/lavaPlatform.s b/asm/lavaPlatform.s index ce50eb1b..32d6da37 100644 --- a/asm/lavaPlatform.s +++ b/asm/lavaPlatform.s @@ -240,14 +240,14 @@ _080923F8: strb r0, [r4, #0x10] movs r0, #0x14 strb r0, [r4, #0xe] - ldr r0, _0809241C @ =gLinkState + ldr r0, _0809241C @ =gPlayerState adds r0, #0x3f movs r1, #0xfd strb r1, [r0] _0809241A: pop {r4, pc} .align 2, 0 -_0809241C: .4byte gLinkState +_0809241C: .4byte gPlayerState thumb_func_start sub_08092420 sub_08092420: @ 0x08092420 @@ -256,7 +256,7 @@ sub_08092420: @ 0x08092420 bl sub_0809269C cmp r0, #0 beq _08092434 - ldr r0, _08092464 @ =gLinkState + ldr r0, _08092464 @ =gPlayerState adds r0, #0x3f movs r1, #0xfd strb r1, [r0] @@ -285,7 +285,7 @@ _08092434: _08092462: pop {r4, pc} .align 2, 0 -_08092464: .4byte gLinkState +_08092464: .4byte gPlayerState _08092468: .4byte 0x0000017B thumb_func_start sub_0809246C @@ -433,14 +433,14 @@ _08092570: bl sub_0809264C cmp r5, #0 beq _0809258A - ldr r0, _0809258C @ =gLinkState + ldr r0, _0809258C @ =gPlayerState adds r0, #0x3f movs r1, #0xfd strb r1, [r0] _0809258A: pop {r4, r5, pc} .align 2, 0 -_0809258C: .4byte gLinkState +_0809258C: .4byte gPlayerState thumb_func_start sub_08092590 sub_08092590: @ 0x08092590 @@ -592,13 +592,13 @@ _08092674: sub_0809269C: @ 0x0809269C push {r4, r5, r6, lr} adds r4, r0, #0 - ldr r6, _080926D8 @ =gLinkState + ldr r6, _080926D8 @ =gPlayerState ldr r0, [r6, #0x30] movs r1, #0x80 ands r0, r1 cmp r0, #0 bne _080926E0 - ldr r5, _080926DC @ =gLinkEntity + ldr r5, _080926DC @ =gPlayerEntity adds r0, r4, #0 adds r1, r5, #0 movs r2, #0x10 @@ -619,8 +619,8 @@ sub_0809269C: @ 0x0809269C movs r0, #1 b _080926E2 .align 2, 0 -_080926D8: .4byte gLinkState -_080926DC: .4byte gLinkEntity +_080926D8: .4byte gPlayerState +_080926DC: .4byte gPlayerEntity _080926E0: movs r0, #0 _080926E2: diff --git a/asm/likeLike.s b/asm/likeLike.s index 81490b51..618b6227 100644 --- a/asm/likeLike.s +++ b/asm/likeLike.s @@ -84,7 +84,7 @@ _08027DD2: movs r0, #0xfc ands r0, r1 strb r0, [r2] - ldr r0, _08027E38 @ =gLinkEntity + ldr r0, _08027E38 @ =gPlayerEntity adds r0, #0x29 ldrb r0, [r0] lsls r0, r0, #0x1a @@ -115,7 +115,7 @@ _08027E2E: bl sub_0804AA30 pop {r4, pc} .align 2, 0 -_08027E38: .4byte gLinkEntity +_08027E38: .4byte gPlayerEntity _08027E3C: .4byte gUnk_080CC6FC thumb_func_start sub_08027E40 @@ -439,13 +439,13 @@ _0802808E: .align 2, 0 _08028098: .4byte gUnk_02002A40 _0802809C: - bl ResetLink - ldr r2, _08028104 @ =gLinkState + bl ResetPlayer + ldr r2, _08028104 @ =gPlayerState ldrb r1, [r2, #0x1a] movs r0, #0x80 orrs r0, r1 strb r0, [r2, #0x1a] - ldr r4, _08028108 @ =gLinkEntity + ldr r4, _08028108 @ =gPlayerEntity movs r3, #0x80 lsls r3, r3, #9 adds r0, r5, #0 @@ -489,14 +489,14 @@ _080280F0: _08028102: pop {r4, r5, pc} .align 2, 0 -_08028104: .4byte gLinkState -_08028108: .4byte gLinkEntity +_08028104: .4byte gPlayerState +_08028108: .4byte gPlayerEntity thumb_func_start sub_0802810C sub_0802810C: @ 0x0802810C push {r4, r5, lr} adds r4, r0, #0 - ldr r2, _08028198 @ =gLinkState + ldr r2, _08028198 @ =gPlayerState movs r1, #0 movs r0, #0x41 strb r0, [r2, #2] @@ -505,7 +505,7 @@ sub_0802810C: @ 0x0802810C subs r1, #0x11 ands r0, r1 str r0, [r2, #0x30] - ldr r0, _0802819C @ =gLinkEntity + ldr r0, _0802819C @ =gPlayerEntity mov ip, r0 ldrb r0, [r0, #0x10] movs r1, #0x80 @@ -566,8 +566,8 @@ sub_0802810C: @ 0x0802810C _08028196: pop {r4, r5, pc} .align 2, 0 -_08028198: .4byte gLinkState -_0802819C: .4byte gLinkEntity +_08028198: .4byte gPlayerState +_0802819C: .4byte gPlayerEntity thumb_func_start sub_080281A0 sub_080281A0: @ 0x080281A0 diff --git a/asm/lilypadLarge.s b/asm/lilypadLarge.s index 0657df02..2fb565f2 100644 --- a/asm/lilypadLarge.s +++ b/asm/lilypadLarge.s @@ -143,7 +143,7 @@ sub_080855E8: @ 0x080855E8 movs r0, #0x20 orrs r0, r1 strb r0, [r7, #0x10] - ldr r6, _0808564C @ =gLinkEntity + ldr r6, _0808564C @ =gPlayerEntity adds r0, r7, #0 adds r1, r6, #0 movs r2, #0x18 @@ -151,7 +151,7 @@ sub_080855E8: @ 0x080855E8 adds r1, r0, #0 cmp r1, #0 beq _080856EE - ldr r3, _08085650 @ =gLinkState + ldr r3, _08085650 @ =gPlayerState ldr r0, [r3, #0x30] movs r1, #2 orrs r0, r1 @@ -186,8 +186,8 @@ _08085634: bl sub_0800455E b _0808565A .align 2, 0 -_0808564C: .4byte gLinkEntity -_08085650: .4byte gLinkState +_0808564C: .4byte gPlayerEntity +_08085650: .4byte gPlayerState _08085654: adds r0, r6, #0 bl sub_08004542 @@ -218,7 +218,7 @@ _08085664: str r2, [r7, #0x70] str r2, [r7, #0x6c] _0808568C: - ldr r2, _080856B8 @ =gLinkState + ldr r2, _080856B8 @ =gPlayerState ldrb r0, [r2, #0x1c] cmp r0, #3 beq _08085696 @@ -230,7 +230,7 @@ _08085696: lsls r0, r0, #2 adds r0, r0, r1 ldr r4, [r0] - ldr r0, _080856C0 @ =gLinkEntity + ldr r0, _080856C0 @ =gPlayerEntity ldrb r0, [r0, #0x14] movs r1, #6 ands r1, r0 @@ -242,9 +242,9 @@ _08085696: beq _080856D6 b _080857CE .align 2, 0 -_080856B8: .4byte gLinkState +_080856B8: .4byte gPlayerState _080856BC: .4byte gUnk_08120620 -_080856C0: .4byte gLinkEntity +_080856C0: .4byte gPlayerEntity _080856C4: cmp r1, #4 beq _080856CE @@ -314,7 +314,7 @@ _080856FC: adds r2, r5, #0 bl sub_080045D4 strb r0, [r7, #0x15] - ldr r0, _0808575C @ =gLinkState + ldr r0, _0808575C @ =gPlayerState ldrb r0, [r0, #0x1d] cmp r0, #2 beq _0808576A @@ -325,7 +325,7 @@ _080856FC: b _08085774 .align 2, 0 _08085758: .4byte gUnk_08126EE4 -_0808575C: .4byte gLinkState +_0808575C: .4byte gPlayerState _08085760: cmp r0, #3 bne _08085774 @@ -568,7 +568,7 @@ _0808592E: _08085930: strb r0, [r2] _08085932: - ldr r0, _0808595C @ =gLinkState + ldr r0, _0808595C @ =gPlayerState ldr r0, [r0, #0x30] movs r1, #2 ands r0, r1 @@ -589,7 +589,7 @@ _08085944: movs r0, #0 b _08085964 .align 2, 0 -_0808595C: .4byte gLinkState +_0808595C: .4byte gPlayerState _08085960: adds r0, r1, #0 adds r0, #0x80 @@ -707,7 +707,7 @@ sub_08085A1C: @ 0x08085A1C adds r1, r1, r2 ldr r1, [r1] bl _call_via_r1 - ldr r2, _08085A40 @ =gLinkState + ldr r2, _08085A40 @ =gPlayerState ldr r0, [r2, #0x30] movs r1, #2 orrs r0, r1 @@ -716,7 +716,7 @@ sub_08085A1C: @ 0x08085A1C pop {pc} .align 2, 0 _08085A3C: .4byte gUnk_0812062C -_08085A40: .4byte gLinkState +_08085A40: .4byte gPlayerState thumb_func_start sub_08085A44 sub_08085A44: @ 0x08085A44 @@ -870,7 +870,7 @@ sub_08085B40: @ 0x08085B40 adds r1, r2, #0 bl sub_0805EC9C _08085B7A: - ldr r4, _08085BA0 @ =gLinkEntity + ldr r4, _08085BA0 @ =gPlayerEntity ldrh r3, [r5, #0x32] ldrh r0, [r5, #0x36] adds r0, r3, r0 @@ -889,7 +889,7 @@ _08085B7A: b _08085BAE .align 2, 0 _08085B9C: .4byte 0x011FFFFF -_08085BA0: .4byte gLinkEntity +_08085BA0: .4byte gPlayerEntity _08085BA4: .4byte gArea _08085BA8: subs r0, r3, r1 @@ -906,7 +906,7 @@ _08085BB4: bl sub_080002B8 cmp r0, #0xd bne _08085BE8 - ldr r4, _08085C50 @ =gLinkEntity + ldr r4, _08085C50 @ =gPlayerEntity adds r0, r4, #0 bl sub_0800455E adds r0, r5, #0 @@ -926,7 +926,7 @@ _08085BE8: ldrh r0, [r1] cmp r0, #0 bne _08085C54 - ldr r4, _08085C50 @ =gLinkEntity + ldr r4, _08085C50 @ =gPlayerEntity movs r1, #0x80 lsls r1, r1, #6 adds r0, r4, #0 @@ -969,7 +969,7 @@ _08085C16: strb r0, [r5, #0xc] b _08085C58 .align 2, 0 -_08085C50: .4byte gLinkEntity +_08085C50: .4byte gPlayerEntity _08085C54: subs r0, #1 strh r0, [r1] @@ -981,7 +981,7 @@ _08085C58: sub_08085C5C: @ 0x08085C5C push {r4, r5, lr} adds r4, r0, #0 - ldr r5, _08085CA0 @ =gLinkEntity + ldr r5, _08085CA0 @ =gPlayerEntity adds r1, r5, #0 movs r2, #0x18 bl sub_0806FC80 @@ -995,7 +995,7 @@ sub_08085C5C: @ 0x08085C5C strb r0, [r5, #0x15] adds r0, r5, #0 bl sub_0806F69C - ldr r2, _08085CA4 @ =gLinkState + ldr r2, _08085CA4 @ =gPlayerState ldr r0, [r2, #0x30] movs r1, #2 orrs r0, r1 @@ -1009,8 +1009,8 @@ sub_08085C5C: @ 0x08085C5C bl sub_0800455E b _08085CAE .align 2, 0 -_08085CA0: .4byte gLinkEntity -_08085CA4: .4byte gLinkState +_08085CA0: .4byte gPlayerEntity +_08085CA4: .4byte gPlayerState _08085CA8: adds r0, r5, #0 bl sub_08004542 @@ -1031,13 +1031,13 @@ _08085CAE: ands r0, r1 orrs r0, r2 strb r0, [r4, #0x11] - ldr r0, _08085CD8 @ =gLinkEntity + ldr r0, _08085CD8 @ =gPlayerEntity str r0, [r3, #0x30] _08085CD2: pop {r4, r5, pc} .align 2, 0 _08085CD4: .4byte gRoomControls -_08085CD8: .4byte gLinkEntity +_08085CD8: .4byte gPlayerEntity thumb_func_start sub_08085CDC sub_08085CDC: @ 0x08085CDC @@ -1085,7 +1085,7 @@ _08085D26: sub_08085D28: @ 0x08085D28 push {r4, r5, lr} adds r4, r0, #0 - ldr r1, _08085D5C @ =gLinkState + ldr r1, _08085D5C @ =gPlayerState adds r0, r1, #0 adds r0, #0xa8 ldrb r0, [r0] @@ -1109,7 +1109,7 @@ sub_08085D28: @ 0x08085D28 _08085D5A: pop {r4, r5, pc} .align 2, 0 -_08085D5C: .4byte gLinkState +_08085D5C: .4byte gPlayerState thumb_func_start sub_08085D60 sub_08085D60: @ 0x08085D60 @@ -1117,7 +1117,7 @@ sub_08085D60: @ 0x08085D60 mov r7, r8 push {r7} adds r5, r0, #0 - ldr r2, _08085D94 @ =gLinkState + ldr r2, _08085D94 @ =gPlayerState ldr r0, [r2, #0x30] movs r1, #2 ands r0, r1 @@ -1140,7 +1140,7 @@ sub_08085D60: @ 0x08085D60 adds r4, r6, #0 b _08085DB0 .align 2, 0 -_08085D94: .4byte gLinkState +_08085D94: .4byte gPlayerState _08085D98: movs r0, #0x10 ands r0, r1 @@ -1194,7 +1194,7 @@ _08085DB8: bl sub_080806BC cmp r0, #0 bne _08085E1C - ldr r0, _08085E18 @ =gLinkEntity + ldr r0, _08085E18 @ =gPlayerEntity lsrs r1, r4, #3 bl sub_0807BD14 cmp r0, #0 @@ -1204,7 +1204,7 @@ _08085DB8: .align 2, 0 _08085E10: .4byte gUnk_08120638 _08085E14: .4byte gRoomControls -_08085E18: .4byte gLinkEntity +_08085E18: .4byte gPlayerEntity _08085E1C: strb r4, [r5, #0x15] b _08085E6C @@ -1227,7 +1227,7 @@ _08085E28: bl sub_080002CC cmp r0, #0xff bne _08085E6C - ldr r0, _08085E60 @ =gLinkEntity + ldr r0, _08085E60 @ =gPlayerEntity lsrs r1, r6, #3 bl sub_0807BD14 cmp r0, #0 @@ -1239,7 +1239,7 @@ _08085E52: b _08085E6C .align 2, 0 _08085E5C: .4byte gUnk_08120638 -_08085E60: .4byte gLinkEntity +_08085E60: .4byte gPlayerEntity _08085E64: ldrb r1, [r5, #0x10] movs r0, #0xdf @@ -1301,12 +1301,12 @@ _08085EBE: str r0, [r2, #0x6c] strh r0, [r2, #0x2c] strh r0, [r2, #0x30] - ldr r1, _08085EF0 @ =gLinkEntity + ldr r1, _08085EF0 @ =gPlayerEntity strh r0, [r1, #0x2c] strh r0, [r1, #0x30] ldrb r0, [r2, #0x15] strb r0, [r1, #0x15] - ldr r1, _08085EF4 @ =gLinkState + ldr r1, _08085EF4 @ =gPlayerState movs r0, #0x80 lsls r0, r0, #1 strh r0, [r1, #8] @@ -1317,16 +1317,16 @@ _08085EBE: beq _08085EE8 bl DeleteEntity _08085EE8: - bl ResetLink + bl ResetPlayer pop {pc} .align 2, 0 -_08085EF0: .4byte gLinkEntity -_08085EF4: .4byte gLinkState +_08085EF0: .4byte gPlayerEntity +_08085EF4: .4byte gPlayerState _08085EF8: .4byte gRoomControls thumb_func_start sub_08085EFC sub_08085EFC: @ 0x08085EFC - ldr r3, _08085F18 @ =gLinkEntity + ldr r3, _08085F18 @ =gPlayerEntity ldrh r1, [r0, #0x2e] ldrh r2, [r3, #0x2e] subs r1, r1, r2 @@ -1340,13 +1340,13 @@ sub_08085EFC: @ 0x08085EFC strh r1, [r0] bx lr .align 2, 0 -_08085F18: .4byte gLinkEntity +_08085F18: .4byte gPlayerEntity thumb_func_start sub_08085F1C sub_08085F1C: @ 0x08085F1C push {lr} adds r3, r0, #0 - ldr r2, _08085F44 @ =gLinkEntity + ldr r2, _08085F44 @ =gPlayerEntity adds r1, r3, #0 adds r1, #0x76 ldrh r0, [r3, #0x2e] @@ -1363,7 +1363,7 @@ sub_08085F1C: @ 0x08085F1C bl sub_0807A5B8 pop {pc} .align 2, 0 -_08085F44: .4byte gLinkEntity +_08085F44: .4byte gPlayerEntity thumb_func_start sub_08085F48 sub_08085F48: @ 0x08085F48 @@ -1376,7 +1376,7 @@ sub_08085F48: @ 0x08085F48 lsrs r3, r0, #0x18 cmp r3, #0 beq _08085F8C - ldr r5, _08085F80 @ =gLinkState + ldr r5, _08085F80 @ =gPlayerState ldrb r0, [r5, #0x12] cmp r0, #0x17 bne _08085F6A @@ -1394,13 +1394,13 @@ _08085F6A: lsls r2, r2, #0xc b _08085FF8 .align 2, 0 -_08085F80: .4byte gLinkState +_08085F80: .4byte gPlayerState _08085F84: .4byte 0x0127FFFF _08085F88: movs r0, #0 b _08086006 _08085F8C: - ldr r0, _08085FAC @ =gLinkState + ldr r0, _08085FAC @ =gPlayerState ldr r1, [r0, #0x30] movs r0, #2 ands r1, r0 @@ -1417,7 +1417,7 @@ _08085F8C: lsls r2, r2, #8 b _08085FF8 .align 2, 0 -_08085FAC: .4byte gLinkState +_08085FAC: .4byte gPlayerState _08085FB0: .4byte 0x011FFFFF _08085FB4: strb r3, [r4, #0xe] diff --git a/asm/lilypadSmall.s b/asm/lilypadSmall.s index 8d5da9c2..166e2b09 100644 --- a/asm/lilypadSmall.s +++ b/asm/lilypadSmall.s @@ -73,13 +73,13 @@ _08097ADA: sub_08097ADC: @ 0x08097ADC push {r4, r5, lr} adds r2, r0, #0 - ldr r5, _08097B18 @ =gLinkState + ldr r5, _08097B18 @ =gPlayerState ldr r0, [r5, #0x30] movs r1, #0x80 ands r0, r1 cmp r0, #0 beq _08097B20 - ldr r4, _08097B1C @ =gLinkEntity + ldr r4, _08097B1C @ =gPlayerEntity adds r0, r2, #0 adds r1, r4, #0 movs r2, #8 @@ -99,8 +99,8 @@ sub_08097ADC: @ 0x08097ADC movs r0, #1 b _08097B22 .align 2, 0 -_08097B18: .4byte gLinkState -_08097B1C: .4byte gLinkEntity +_08097B18: .4byte gPlayerState +_08097B1C: .4byte gPlayerEntity _08097B20: movs r0, #0 _08097B22: diff --git a/asm/lockedDoor.s b/asm/lockedDoor.s index aad7a891..c73a92cd 100644 --- a/asm/lockedDoor.s +++ b/asm/lockedDoor.s @@ -569,15 +569,15 @@ _0808374A: adds r0, r2, #0 adds r0, #0x72 ldrh r1, [r0] - ldr r0, _0808375C @ =gLinkEntity + ldr r0, _0808375C @ =gPlayerEntity movs r2, #0x32 ldrsh r0, [r0, r2] subs r0, #0xd b _0808379E .align 2, 0 -_0808375C: .4byte gLinkEntity +_0808375C: .4byte gPlayerEntity _08083760: - ldr r0, _08083770 @ =gLinkEntity + ldr r0, _08083770 @ =gPlayerEntity movs r1, #0x2e ldrsh r0, [r0, r1] adds r0, #0xb @@ -585,9 +585,9 @@ _08083760: adds r1, #0x70 b _08083780 .align 2, 0 -_08083770: .4byte gLinkEntity +_08083770: .4byte gPlayerEntity _08083774: - ldr r0, _0808378C @ =gLinkEntity + ldr r0, _0808378C @ =gPlayerEntity movs r1, #0x32 ldrsh r0, [r0, r1] adds r0, #8 @@ -601,12 +601,12 @@ _08083780: movs r0, #1 b _080837AE .align 2, 0 -_0808378C: .4byte gLinkEntity +_0808378C: .4byte gPlayerEntity _08083790: adds r0, r2, #0 adds r0, #0x70 ldrh r1, [r0] - ldr r0, _080837A8 @ =gLinkEntity + ldr r0, _080837A8 @ =gPlayerEntity movs r2, #0x2e ldrsh r0, [r0, r2] subs r0, #0xa @@ -617,7 +617,7 @@ _0808379E: movs r0, #1 b _080837AE .align 2, 0 -_080837A8: .4byte gLinkEntity +_080837A8: .4byte gPlayerEntity _080837AC: movs r0, #0 _080837AE: diff --git a/asm/macroBook.s b/asm/macroBook.s index 6ec09881..838925b4 100644 --- a/asm/macroBook.s +++ b/asm/macroBook.s @@ -237,7 +237,7 @@ _0809A92A: adds r0, r4, #0 movs r2, #0 bl sub_0809AA9C - ldr r1, _0809A950 @ =gLinkEntity + ldr r1, _0809A950 @ =gPlayerEntity adds r0, r4, #0 movs r2, #1 bl sub_0809AA9C @@ -251,7 +251,7 @@ _0809A92A: _0809A94E: pop {r4, pc} .align 2, 0 -_0809A950: .4byte gLinkEntity +_0809A950: .4byte gPlayerEntity _0809A954: .4byte gUnk_03004040 thumb_func_start sub_0809A958 @@ -394,7 +394,7 @@ _0809AA50: adds r7, r5, #0 adds r7, #0x78 _0809AA5C: - ldr r4, _0809AA94 @ =gLinkEntity + ldr r4, _0809AA94 @ =gPlayerEntity adds r0, r5, #0 adds r1, r4, #0 movs r2, #0x20 @@ -421,7 +421,7 @@ _0809AA8E: mov r8, r3 pop {r4, r5, r6, r7, pc} .align 2, 0 -_0809AA94: .4byte gLinkEntity +_0809AA94: .4byte gPlayerEntity _0809AA98: .4byte gUnk_03004040 thumb_func_start sub_0809AA9C diff --git a/asm/macroLink.s b/asm/macroPlayer.s similarity index 99% rename from asm/macroLink.s rename to asm/macroPlayer.s index 2b9ccfa9..c7c6bf90 100644 --- a/asm/macroLink.s +++ b/asm/macroPlayer.s @@ -7,8 +7,8 @@ .text - thumb_func_start MacroLink -MacroLink: @ 0x0808CAE4 + thumb_func_start MacroPlayer +MacroPlayer: @ 0x0808CAE4 push {lr} ldr r2, _0808CAF8 @ =gUnk_08121680 ldrb r1, [r0, #0xa] diff --git a/asm/mama.s b/asm/mama.s index e23cb932..bb42541d 100644 --- a/asm/mama.s +++ b/asm/mama.s @@ -60,7 +60,7 @@ _0806C3E2: adds r1, r4, #0 adds r1, #0x69 strb r0, [r1] - ldr r1, _0806C41C @ =gLinkEntity + ldr r1, _0806C41C @ =gPlayerEntity adds r0, r4, #0 bl GetFacingDirection bl sub_0806F5A4 @@ -71,7 +71,7 @@ _0806C3E2: bl sub_0806F118 b _0806C450 .align 2, 0 -_0806C41C: .4byte gLinkEntity +_0806C41C: .4byte gPlayerEntity _0806C420: adds r0, r4, #0 movs r1, #0 diff --git a/asm/manager1.s b/asm/manager1.s index c9530794..74bf3c4e 100644 --- a/asm/manager1.s +++ b/asm/manager1.s @@ -18,7 +18,7 @@ sub_08057174: @ 0x08057174 bne _08057188 b _0805728A _08057188: - ldr r1, _080571E8 @ =gLinkEntity + ldr r1, _080571E8 @ =gPlayerEntity movs r2, #0x2e ldrsh r0, [r1, r2] cmp r0, #0 @@ -69,7 +69,7 @@ _080571A8: ldr r0, [r0] mov pc, r0 .align 2, 0 -_080571E8: .4byte gLinkEntity +_080571E8: .4byte gPlayerEntity _080571EC: .4byte gRoomControls _080571F0: .4byte _080571F4 _080571F4: @ jump table diff --git a/asm/manager10.s b/asm/manager10.s index 2a3fed1d..40bf1a3e 100644 --- a/asm/manager10.s +++ b/asm/manager10.s @@ -368,7 +368,7 @@ _08059840: .4byte gBG1Settings sub_08059844: @ 0x08059844 push {lr} movs r3, #0 - ldr r0, _08059864 @ =gLinkEntity + ldr r0, _08059864 @ =gPlayerEntity movs r2, #0x2e ldrsh r1, [r0, r2] ldr r2, _08059868 @ =gRoomControls @@ -383,14 +383,14 @@ _0805985E: adds r0, r3, #0 pop {pc} .align 2, 0 -_08059864: .4byte gLinkEntity +_08059864: .4byte gPlayerEntity _08059868: .4byte gRoomControls thumb_func_start sub_0805986C sub_0805986C: @ 0x0805986C push {lr} movs r2, #0 - ldr r0, _0805988C @ =gLinkEntity + ldr r0, _0805988C @ =gPlayerEntity movs r3, #0x2e ldrsh r1, [r0, r3] ldr r0, _08059890 @ =gRoomControls @@ -405,7 +405,7 @@ _08059886: adds r0, r2, #0 pop {pc} .align 2, 0 -_0805988C: .4byte gLinkEntity +_0805988C: .4byte gPlayerEntity _08059890: .4byte gRoomControls thumb_func_start sub_08059894 diff --git a/asm/manager15.s b/asm/manager15.s index 7386b034..413b9554 100644 --- a/asm/manager15.s +++ b/asm/manager15.s @@ -676,7 +676,7 @@ _0805A76A: sub_0805A76C: @ 0x0805A76C push {r4, r5, r6, lr} adds r4, r0, #0 - ldr r5, _0805A7D4 @ =gLinkEntity + ldr r5, _0805A7D4 @ =gPlayerEntity adds r0, r5, #0 adds r0, #0x45 ldrb r0, [r0] @@ -686,7 +686,7 @@ sub_0805A76C: @ 0x0805A76C ldrsh r0, [r5, r1] cmp r0, #0 bne _0805A7D0 - ldr r0, _0805A7D8 @ =gLinkState + ldr r0, _0805A7D8 @ =gPlayerState ldr r6, [r0, #0x2c] cmp r6, #0 bne _0805A7D0 @@ -722,15 +722,15 @@ sub_0805A76C: @ 0x0805A76C _0805A7D0: pop {r4, r5, r6, pc} .align 2, 0 -_0805A7D4: .4byte gLinkEntity -_0805A7D8: .4byte gLinkState +_0805A7D4: .4byte gPlayerEntity +_0805A7D8: .4byte gPlayerState _0805A7DC: .4byte gUnk_02034490 _0805A7E0: .4byte gRoomControls thumb_func_start sub_0805A7E4 sub_0805A7E4: @ 0x0805A7E4 push {lr} - ldr r2, _0805A800 @ =gLinkState + ldr r2, _0805A800 @ =gPlayerState ldrb r0, [r2, #0xc] cmp r0, #0x12 beq _0805A7FE @@ -745,7 +745,7 @@ sub_0805A7E4: @ 0x0805A7E4 _0805A7FE: pop {pc} .align 2, 0 -_0805A800: .4byte gLinkState +_0805A800: .4byte gPlayerState thumb_func_start sub_0805A804 sub_0805A804: @ 0x0805A804 diff --git a/asm/manager1A.s b/asm/manager1A.s index fad93017..2df04f21 100644 --- a/asm/manager1A.s +++ b/asm/manager1A.s @@ -224,7 +224,7 @@ sub_0805B1CC: @ 0x0805B1CC bl sub_0806FBFC cmp r0, #0 beq _0805B20C - ldr r2, _0805B1FC @ =gLinkState + ldr r2, _0805B1FC @ =gPlayerState ldr r1, [r2, #0x30] movs r0, #5 ands r0, r1 @@ -236,7 +236,7 @@ sub_0805B1CC: @ 0x0805B1CC str r1, [r2, #0x30] b _0805B20C .align 2, 0 -_0805B1FC: .4byte gLinkState +_0805B1FC: .4byte gPlayerState _0805B200: movs r0, #0x80 lsls r0, r0, #8 @@ -269,7 +269,7 @@ sub_0805B210: @ 0x0805B210 strb r0, [r2, #0xd] ldrb r0, [r4, #3] strb r0, [r2, #0x14] - ldr r0, _0805B250 @ =gLinkState + ldr r0, _0805B250 @ =gPlayerState ldr r0, [r0, #0x30] movs r1, #0x80 ands r0, r1 @@ -281,7 +281,7 @@ sub_0805B210: @ 0x0805B210 .align 2, 0 _0805B248: .4byte gScreenTransition _0805B24C: .4byte gUnk_08108764 -_0805B250: .4byte gLinkState +_0805B250: .4byte gPlayerState _0805B254: movs r0, #2 _0805B256: @@ -305,7 +305,7 @@ _0805B26E: strh r0, [r5, #0x12] b _0805B2AC _0805B278: - ldr r2, _0805B298 @ =gLinkEntity + ldr r2, _0805B298 @ =gPlayerEntity ldr r3, _0805B29C @ =gRoomControls ldrh r0, [r2, #0x2e] ldrh r1, [r3, #6] @@ -321,7 +321,7 @@ _0805B278: strh r0, [r5, #0x12] b _0805B2AC .align 2, 0 -_0805B298: .4byte gLinkEntity +_0805B298: .4byte gPlayerEntity _0805B29C: .4byte gRoomControls _0805B2A0: ldrh r0, [r4, #4] diff --git a/asm/manager22.s b/asm/manager22.s index 8f0bdb43..af6900a2 100644 --- a/asm/manager22.s +++ b/asm/manager22.s @@ -71,7 +71,7 @@ _0805B96C: .4byte 0x0000D7FF _0805B970: .4byte gUnk_03001000 _0805B974: .4byte 0x0000DFFF _0805B978: - ldr r3, _0805B9A8 @ =gLinkEntity + ldr r3, _0805B9A8 @ =gPlayerEntity movs r4, #0x2e ldrsh r0, [r3, r4] ldr r2, _0805B9AC @ =gRoomControls @@ -94,7 +94,7 @@ _0805B978: orrs r0, r1 b _0805B9BC .align 2, 0 -_0805B9A8: .4byte gLinkEntity +_0805B9A8: .4byte gPlayerEntity _0805B9AC: .4byte gRoomControls _0805B9B0: .4byte gScreen _0805B9B4: @@ -105,7 +105,7 @@ _0805B9B4: _0805B9BC: strh r0, [r2] ldrb r4, [r5, #0xe] - ldr r0, _0805B9F0 @ =gLinkState + ldr r0, _0805B9F0 @ =gPlayerState ldr r0, [r0, #0x30] movs r1, #0x80 lsls r1, r1, #0x10 @@ -127,7 +127,7 @@ _0805B9BC: .align 2, 0 _0805B9E8: .4byte gScreen _0805B9EC: .4byte 0x0000DFFF -_0805B9F0: .4byte gLinkState +_0805B9F0: .4byte gPlayerState _0805B9F4: .4byte gArea _0805B9F8: ldr r0, _0805BA24 @ =gScreenTransition @@ -167,7 +167,7 @@ _0805BA3C: bl sub_0801E154 _0805BA42: strb r4, [r5, #0xe] - ldr r3, _0805BA70 @ =gLinkEntity + ldr r3, _0805BA70 @ =gPlayerEntity movs r1, #0x2e ldrsh r0, [r3, r1] ldr r2, _0805BA74 @ =gRoomControls @@ -189,7 +189,7 @@ _0805BA42: _0805BA6C: pop {r4, r5, r6, pc} .align 2, 0 -_0805BA70: .4byte gLinkEntity +_0805BA70: .4byte gPlayerEntity _0805BA74: .4byte gRoomControls thumb_func_start sub_0805BA78 diff --git a/asm/manager26.s b/asm/manager26.s index 0cda662e..7aab3755 100644 --- a/asm/manager26.s +++ b/asm/manager26.s @@ -159,13 +159,13 @@ sub_0805C7C4: @ 0x0805C7C4 sub_0805C7CC: @ 0x0805C7CC push {lr} adds r2, r0, #0 - ldr r0, _0805C7F0 @ =gLinkState + ldr r0, _0805C7F0 @ =gPlayerState ldr r0, [r0, #0x30] movs r1, #0x80 ands r0, r1 cmp r0, #0 beq _0805C7FC - ldr r0, _0805C7F4 @ =gLinkEntity + ldr r0, _0805C7F4 @ =gPlayerEntity movs r3, #0x32 ldrsh r1, [r0, r3] ldrh r0, [r2, #0x2a] @@ -175,13 +175,13 @@ sub_0805C7CC: @ 0x0805C7CC movs r0, #1 b _0805C816 .align 2, 0 -_0805C7F0: .4byte gLinkState -_0805C7F4: .4byte gLinkEntity +_0805C7F0: .4byte gPlayerState +_0805C7F4: .4byte gPlayerEntity _0805C7F8: movs r0, #0 b _0805C816 _0805C7FC: - ldr r0, _0805C810 @ =gLinkEntity + ldr r0, _0805C810 @ =gPlayerEntity movs r3, #0x32 ldrsh r1, [r0, r3] ldrh r0, [r2, #0x2a] @@ -191,7 +191,7 @@ _0805C7FC: movs r0, #3 b _0805C816 .align 2, 0 -_0805C810: .4byte gLinkEntity +_0805C810: .4byte gPlayerEntity _0805C814: movs r0, #2 _0805C816: diff --git a/asm/manager2C.s b/asm/manager2C.s index 6b3b92a3..99d1abc3 100644 --- a/asm/manager2C.s +++ b/asm/manager2C.s @@ -26,7 +26,7 @@ _0805D184: bl CheckPlayerInRegion cmp r0, #0 beq _0805D1EE - ldr r0, _0805D1F0 @ =gLinkEntity + ldr r0, _0805D1F0 @ =gPlayerEntity movs r4, #0x32 ldrsh r1, [r0, r4] ldr r3, _0805D1F4 @ =gRoomControls @@ -71,6 +71,6 @@ _0805D184: _0805D1EE: pop {r4, r5, pc} .align 2, 0 -_0805D1F0: .4byte gLinkEntity +_0805D1F0: .4byte gPlayerEntity _0805D1F4: .4byte gRoomControls _0805D1F8: .4byte gUnk_030010AC diff --git a/asm/manager2D.s b/asm/manager2D.s index c3129650..374004d2 100644 --- a/asm/manager2D.s +++ b/asm/manager2D.s @@ -17,7 +17,7 @@ sub_0805D1FC: @ 0x0805D1FC ldr r3, _0805D248 @ =gRoomControls ldrh r0, [r3, #8] adds r0, #0xc8 - ldr r2, _0805D24C @ =gLinkEntity + ldr r2, _0805D24C @ =gPlayerEntity movs r5, #0x32 ldrsh r1, [r2, r5] cmp r0, r1 @@ -43,4 +43,4 @@ _0805D236: _0805D240: .4byte 0x00004014 _0805D244: .4byte 0x000005C3 _0805D248: .4byte gRoomControls -_0805D24C: .4byte gLinkEntity +_0805D24C: .4byte gPlayerEntity diff --git a/asm/manager3.s b/asm/manager3.s index 2f755748..7bd5a45c 100644 --- a/asm/manager3.s +++ b/asm/manager3.s @@ -70,7 +70,7 @@ _080576EC: _08057738: .4byte gArea _0805773C: .4byte gUnk_08107C6C _08057740: - ldr r2, _08057758 @ =gLinkState + ldr r2, _08057758 @ =gPlayerState ldr r0, [r2, #0x30] movs r1, #0x20 ands r0, r1 @@ -83,7 +83,7 @@ _08057740: strb r0, [r5, #0x18] b _0805776A .align 2, 0 -_08057758: .4byte gLinkState +_08057758: .4byte gPlayerState _0805775C: bl sub_08057810 cmp r0, #0 @@ -180,7 +180,7 @@ _08057808: thumb_func_start sub_08057810 sub_08057810: @ 0x08057810 push {lr} - ldr r2, _08057848 @ =gLinkState + ldr r2, _08057848 @ =gPlayerState ldr r0, [r2, #0x30] movs r1, #0x80 ands r0, r1 @@ -208,7 +208,7 @@ sub_08057810: @ 0x08057810 movs r0, #1 b _08057852 .align 2, 0 -_08057848: .4byte gLinkState +_08057848: .4byte gPlayerState _0805784C: .4byte gArea _08057850: movs r0, #0 diff --git a/asm/manager30.s b/asm/manager30.s index 90b9b601..6d5e1c08 100644 --- a/asm/manager30.s +++ b/asm/manager30.s @@ -46,7 +46,7 @@ _0805D4D2: lsls r0, r0, #6 orrs r1, r0 strh r1, [r6, #0x28] - ldr r4, _0805D518 @ =gLinkEntity + ldr r4, _0805D518 @ =gPlayerEntity movs r0, #0x2e ldrsh r1, [r4, r0] ldr r2, _0805D51C @ =gRoomControls @@ -66,10 +66,10 @@ _0805D4D2: strh r1, [r6, #0x2c] b _0805D628 .align 2, 0 -_0805D518: .4byte gLinkEntity +_0805D518: .4byte gPlayerEntity _0805D51C: .4byte gRoomControls _0805D520: - ldr r4, _0805D568 @ =gLinkEntity + ldr r4, _0805D568 @ =gPlayerEntity movs r1, #0x2e ldrsh r0, [r4, r1] ldr r3, _0805D56C @ =gRoomControls @@ -104,7 +104,7 @@ _0805D520: beq _0805D580 b _0805D5A4 .align 2, 0 -_0805D568: .4byte gLinkEntity +_0805D568: .4byte gPlayerEntity _0805D56C: .4byte gRoomControls _0805D570: .4byte 0x00000317 _0805D574: diff --git a/asm/manager33.s b/asm/manager33.s index f3555e47..dc8db449 100644 --- a/asm/manager33.s +++ b/asm/manager33.s @@ -18,7 +18,7 @@ sub_0805DAE8: @ 0x0805DAE8 lsls r1, r1, #1 mov r8, r1 add r0, r8 - ldr r3, _0805DB50 @ =gLinkEntity + ldr r3, _0805DB50 @ =gPlayerEntity movs r4, #0x2e ldrsh r1, [r3, r4] subs r0, r0, r1 @@ -45,7 +45,7 @@ sub_0805DAE8: @ 0x0805DAE8 rsbs r0, r0, #0 cmp r1, r0 bge _0805DB88 - ldr r0, _0805DB54 @ =gLinkState + ldr r0, _0805DB54 @ =gPlayerState adds r0, #0xa8 ldrb r0, [r0] cmp r0, #0x14 @@ -59,8 +59,8 @@ sub_0805DAE8: @ 0x0805DAE8 b _0805DB88 .align 2, 0 _0805DB4C: .4byte gRoomControls -_0805DB50: .4byte gLinkEntity -_0805DB54: .4byte gLinkState +_0805DB50: .4byte gPlayerEntity +_0805DB54: .4byte gPlayerState _0805DB58: ldrb r0, [r2, #0xe] subs r0, #1 diff --git a/asm/manager37.s b/asm/manager37.s index 5ae4d78f..24af0735 100644 --- a/asm/manager37.s +++ b/asm/manager37.s @@ -75,7 +75,7 @@ _0805DEB4: .4byte 0x00001194 sub_0805DEB8: @ 0x0805DEB8 push {r4, r5, lr} adds r3, r0, #0 - ldr r5, _0805DF44 @ =gLinkEntity + ldr r5, _0805DF44 @ =gPlayerEntity movs r0, #0x2e ldrsh r2, [r5, r0] subs r2, #0x88 @@ -142,14 +142,14 @@ _0805DF3C: _0805DF42: pop {r4, r5, pc} .align 2, 0 -_0805DF44: .4byte gLinkEntity +_0805DF44: .4byte gPlayerEntity _0805DF48: .4byte gRoomControls thumb_func_start sub_0805DF4C sub_0805DF4C: @ 0x0805DF4C push {lr} adds r1, r0, #0 - ldr r2, _0805DF70 @ =gLinkEntity + ldr r2, _0805DF70 @ =gPlayerEntity movs r0, #0 strb r0, [r2, #0x14] movs r3, #0x36 @@ -166,7 +166,7 @@ sub_0805DF4C: @ 0x0805DF4C strh r1, [r2, #0x32] b _0805DF92 .align 2, 0 -_0805DF70: .4byte gLinkEntity +_0805DF70: .4byte gPlayerEntity _0805DF74: .4byte gRoomControls _0805DF78: ldrb r0, [r1, #0xe] diff --git a/asm/manager39.s b/asm/manager39.s index 26dd0847..b41cee8c 100644 --- a/asm/manager39.s +++ b/asm/manager39.s @@ -95,7 +95,7 @@ sub_0805E18C: @ 0x0805E18C cmp r0, #0 bne _0805E1BA strb r0, [r4, #0xb] - ldr r0, _0805E1D4 @ =gLinkState + ldr r0, _0805E1D4 @ =gPlayerState adds r0, #0x8b movs r1, #1 strb r1, [r0] @@ -113,7 +113,7 @@ _0805E1CC: pop {r4, pc} .align 2, 0 _0805E1D0: .4byte gUnk_03000FD0 -_0805E1D4: .4byte gLinkState +_0805E1D4: .4byte gPlayerState thumb_func_start sub_0805E1D8 sub_0805E1D8: @ 0x0805E1D8 diff --git a/asm/manager4.s b/asm/manager4.s index f579829c..9daea0ca 100644 --- a/asm/manager4.s +++ b/asm/manager4.s @@ -149,7 +149,7 @@ sub_0805795C: @ 0x0805795C ldrb r0, [r0, #8] cmp r0, #0 beq _080579C8 - ldr r1, _080579C0 @ =gLinkEntity + ldr r1, _080579C0 @ =gPlayerEntity ldr r3, _080579C4 @ =gRoomControls ldrh r2, [r1, #0x2e] ldrh r0, [r3, #6] @@ -192,10 +192,10 @@ sub_0805795C: @ 0x0805795C b _08057A00 .align 2, 0 _080579BC: .4byte gUnk_03004030 -_080579C0: .4byte gLinkEntity +_080579C0: .4byte gPlayerEntity _080579C4: .4byte gRoomControls _080579C8: - ldr r3, _08057A0C @ =gLinkEntity + ldr r3, _08057A0C @ =gPlayerEntity movs r1, #0x2e ldrsh r0, [r3, r1] ldr r2, _08057A10 @ =gRoomControls @@ -230,7 +230,7 @@ _08057A00: movs r0, #1 b _08057A16 .align 2, 0 -_08057A0C: .4byte gLinkEntity +_08057A0C: .4byte gPlayerEntity _08057A10: .4byte gRoomControls _08057A14: movs r0, #0 @@ -259,7 +259,7 @@ sub_08057A18: @ 0x08057A18 ldrb r0, [r5, #5] strb r0, [r3, #5] str r5, [r6] - ldr r4, _08057AA0 @ =gLinkEntity + ldr r4, _08057AA0 @ =gPlayerEntity ldrh r1, [r4, #0x2e] ldrh r0, [r3, #6] subs r1, r1, r0 @@ -304,7 +304,7 @@ _08057A86: _08057A94: .4byte gUnk_03004030 _08057A98: .4byte gRoomControls _08057A9C: .4byte gScreenTransition -_08057AA0: .4byte gLinkEntity +_08057AA0: .4byte gPlayerEntity _08057AA4: .4byte gUnk_02034480 thumb_func_start sub_08057AA8 diff --git a/asm/managerA.s b/asm/managerA.s index d021ac06..68a3204a 100644 --- a/asm/managerA.s +++ b/asm/managerA.s @@ -84,7 +84,7 @@ _08058404: sub_08058408: @ 0x08058408 push {r4, r5, r6, lr} adds r4, r0, #0 - ldr r6, _0805843C @ =gLinkState + ldr r6, _0805843C @ =gPlayerState ldr r5, [r6, #0x30] movs r0, #8 ands r5, r0 @@ -108,7 +108,7 @@ sub_08058408: @ 0x08058408 beq _0805847C b _08058450 .align 2, 0 -_0805843C: .4byte gLinkState +_0805843C: .4byte gPlayerState _08058440: adds r0, r4, #0 bl sub_080585DC @@ -148,7 +148,7 @@ _08058488: thumb_func_start sub_0805848C sub_0805848C: @ 0x0805848C push {lr} - ldr r0, _080584A4 @ =gLinkState + ldr r0, _080584A4 @ =gPlayerState adds r0, #0xa8 ldrb r0, [r0] subs r0, #5 @@ -160,7 +160,7 @@ sub_0805848C: @ 0x0805848C ldr r0, [r0] mov pc, r0 .align 2, 0 -_080584A4: .4byte gLinkState +_080584A4: .4byte gPlayerState _080584A8: .4byte _080584AC _080584AC: @ jump table .4byte _0805850C @ case 0 @@ -214,13 +214,13 @@ _08058528: beq _08058584 b _080585A6 _08058532: - ldr r2, _08058564 @ =gLinkState + ldr r2, _08058564 @ =gPlayerState ldr r0, [r2, #0x30] ldr r1, _08058568 @ =0x00001235 ands r0, r1 cmp r0, #0 bne _080585A6 - ldr r0, _0805856C @ =gLinkEntity + ldr r0, _0805856C @ =gPlayerEntity movs r1, #0x36 ldrsh r0, [r0, r1] cmp r0, #0 @@ -238,9 +238,9 @@ _08058532: strb r0, [r4, #0xe] b _080585A6 .align 2, 0 -_08058564: .4byte gLinkState +_08058564: .4byte gPlayerState _08058568: .4byte 0x00001235 -_0805856C: .4byte gLinkEntity +_0805856C: .4byte gPlayerEntity _08058570: ldrb r0, [r4, #0xe] subs r0, #1 @@ -253,14 +253,14 @@ _08058570: strb r0, [r4, #0xd] b _080585A6 _08058584: - ldr r0, _080585A8 @ =gLinkEntity + ldr r0, _080585A8 @ =gPlayerEntity ldrb r0, [r0, #0xc] cmp r0, #1 beq _08058590 cmp r0, #9 bne _080585A6 _08058590: - ldr r0, _080585AC @ =gLinkState + ldr r0, _080585AC @ =gPlayerState adds r0, #0x8b movs r1, #1 strb r1, [r0] @@ -271,8 +271,8 @@ _08058590: _080585A6: pop {r4, pc} .align 2, 0 -_080585A8: .4byte gLinkEntity -_080585AC: .4byte gLinkState +_080585A8: .4byte gPlayerEntity +_080585AC: .4byte gPlayerState thumb_func_start sub_080585B0 sub_080585B0: @ 0x080585B0 diff --git a/asm/managerC.s b/asm/managerC.s index 80f37976..ec3a3b40 100644 --- a/asm/managerC.s +++ b/asm/managerC.s @@ -157,7 +157,7 @@ _08058968: ldrb r0, [r4, #0xe] cmp r0, #0 beq _080589DE - ldr r0, _080589A4 @ =gLinkEntity + ldr r0, _080589A4 @ =gPlayerEntity movs r2, #0x32 ldrsh r1, [r0, r2] ldr r0, _080589A8 @ =gRoomControls @@ -186,7 +186,7 @@ _08058986: subs r0, r0, r1 b _080589B4 .align 2, 0 -_080589A4: .4byte gLinkEntity +_080589A4: .4byte gPlayerEntity _080589A8: .4byte gRoomControls _080589AC: cmp r2, #0x57 @@ -246,7 +246,7 @@ sub_08058A04: @ 0x08058A04 mov r7, r8 push {r7} adds r4, r0, #0 - ldr r6, _08058A68 @ =gLinkEntity + ldr r6, _08058A68 @ =gPlayerEntity movs r0, #0x2e ldrsh r1, [r6, r0] ldr r7, _08058A6C @ =gRoomControls @@ -278,7 +278,7 @@ sub_08058A04: @ 0x08058A04 ldrsh r2, [r6, r0] cmp r2, #0 bne _08058A78 - ldr r0, _08058A74 @ =gLinkState + ldr r0, _08058A74 @ =gPlayerState movs r1, #3 strb r1, [r0, #0xc] adds r0, #0x38 @@ -291,10 +291,10 @@ sub_08058A04: @ 0x08058A04 strh r0, [r6, #0x32] b _08058AFC .align 2, 0 -_08058A68: .4byte gLinkEntity +_08058A68: .4byte gPlayerEntity _08058A6C: .4byte gRoomControls _08058A70: .4byte 0xFFFFFEE8 -_08058A74: .4byte gLinkState +_08058A74: .4byte gPlayerState _08058A78: mov r1, r8 cmp r1, #0x77 @@ -380,7 +380,7 @@ _08058B1A: lsrs r0, r0, #3 lsls r0, r0, #3 adds r4, r4, r0 - ldr r3, _08058B54 @ =gLinkEntity + ldr r3, _08058B54 @ =gPlayerEntity movs r0, #0x2e ldrsh r2, [r3, r0] ldr r1, _08058B58 @ =gRoomControls @@ -407,7 +407,7 @@ _08058B4E: _08058B50: pop {r4, r5, pc} .align 2, 0 -_08058B54: .4byte gLinkEntity +_08058B54: .4byte gPlayerEntity _08058B58: .4byte gRoomControls thumb_func_start sub_08058B5C @@ -578,7 +578,7 @@ _08058CAC: .4byte gScreen sub_08058CB0: @ 0x08058CB0 push {r4, lr} adds r4, r0, #0 - ldr r2, _08058CD8 @ =gLinkEntity + ldr r2, _08058CD8 @ =gPlayerEntity movs r0, #0x2e ldrsh r1, [r2, r0] ldr r3, _08058CDC @ =gRoomControls @@ -596,7 +596,7 @@ sub_08058CB0: @ 0x08058CB0 movs r1, #0 b _08058CE8 .align 2, 0 -_08058CD8: .4byte gLinkEntity +_08058CD8: .4byte gPlayerEntity _08058CDC: .4byte gRoomControls _08058CE0: movs r1, #3 @@ -617,7 +617,7 @@ _08058CF8: .4byte gUnk_08108300 thumb_func_start sub_08058CFC sub_08058CFC: @ 0x08058CFC push {r4, r5, lr} - ldr r5, _08058D2C @ =gLinkEntity + ldr r5, _08058D2C @ =gPlayerEntity movs r1, #0x32 ldrsh r0, [r5, r1] ldr r1, _08058D30 @ =gRoomControls @@ -640,7 +640,7 @@ _08058D1A: _08058D28: pop {r4, r5, pc} .align 2, 0 -_08058D2C: .4byte gLinkEntity +_08058D2C: .4byte gPlayerEntity _08058D30: .4byte gRoomControls thumb_func_start sub_08058D34 diff --git a/asm/managerF.s b/asm/managerF.s index 1c92cc1f..b975e239 100644 --- a/asm/managerF.s +++ b/asm/managerF.s @@ -186,7 +186,7 @@ _08059028: ldrb r2, [r4, #0xe] cmp r2, #0x3c bne _08059034 - ldr r1, _0805904C @ =gLinkEntity + ldr r1, _0805904C @ =gPlayerEntity ldrb r0, [r4, #0xf] strb r0, [r1, #0x14] _08059034: @@ -202,7 +202,7 @@ _08059034: bl MenuFadeIn b _08059060 .align 2, 0 -_0805904C: .4byte gLinkEntity +_0805904C: .4byte gPlayerEntity _08059050: ldrh r0, [r4, #0x3e] bl SetFlag @@ -505,12 +505,12 @@ sub_08059290: @ 0x08059290 movs r1, #1 strb r1, [r0, #0xc] ldr r1, _0805929C @ =gRoomControls - ldr r0, _080592A0 @ =gLinkEntity + ldr r0, _080592A0 @ =gPlayerEntity str r0, [r1, #0x30] bx lr .align 2, 0 _0805929C: .4byte gRoomControls -_080592A0: .4byte gLinkEntity +_080592A0: .4byte gPlayerEntity thumb_func_start sub_080592A4 sub_080592A4: @ 0x080592A4 @@ -669,7 +669,7 @@ _080593CA: sub_080593CC: @ 0x080593CC push {r4, lr} adds r3, r0, #0 - ldr r2, _08059418 @ =gLinkState + ldr r2, _08059418 @ =gPlayerState ldr r0, [r2, #0x30] movs r1, #0x80 ands r0, r1 @@ -680,7 +680,7 @@ sub_080593CC: @ 0x080593CC ldrb r0, [r0] cmp r0, #0 beq _08059420 - ldr r4, _0805941C @ =gLinkEntity + ldr r4, _0805941C @ =gPlayerEntity ldrb r0, [r4, #0x14] cmp r0, #0 bne _08059420 @@ -704,8 +704,8 @@ sub_080593CC: @ 0x080593CC bl sub_0806FCB8 b _08059422 .align 2, 0 -_08059418: .4byte gLinkState -_0805941C: .4byte gLinkEntity +_08059418: .4byte gPlayerState +_0805941C: .4byte gPlayerEntity _08059420: movs r0, #0 _08059422: @@ -784,7 +784,7 @@ _080594B4: .4byte gRoomVars _080594B8: .4byte gUnk_08108380 _080594BC: ldr r1, _080594D4 @ =gUnk_08108380 - ldr r0, _080594D8 @ =gLinkEntity + ldr r0, _080594D8 @ =gPlayerEntity ldrb r0, [r0, #0x14] lsrs r0, r0, #1 lsls r0, r0, #2 @@ -797,7 +797,7 @@ _080594D2: pop {pc} .align 2, 0 _080594D4: .4byte gUnk_08108380 -_080594D8: .4byte gLinkEntity +_080594D8: .4byte gPlayerEntity thumb_func_start sub_080594DC sub_080594DC: @ 0x080594DC @@ -856,7 +856,7 @@ sub_08059548: @ 0x08059548 push {lr} movs r1, #6 bl sub_0805E3A0 - ldr r0, _08059568 @ =gLinkEntity + ldr r0, _08059568 @ =gPlayerEntity ldrb r0, [r0, #0xc] cmp r0, #0x16 bne _0805955C @@ -869,5 +869,5 @@ _0805955C: strh r0, [r2] pop {pc} .align 2, 0 -_08059568: .4byte gLinkEntity +_08059568: .4byte gPlayerEntity _0805956C: .4byte gUnk_03000FF0 diff --git a/asm/mazaalBracelet.s b/asm/mazaalBracelet.s index e5d95297..95170d28 100644 --- a/asm/mazaalBracelet.s +++ b/asm/mazaalBracelet.s @@ -680,7 +680,7 @@ _0803A688: movs r0, #7 strb r0, [r4, #0xc] strb r1, [r4, #0xe] - ldr r1, _0803A6A4 @ =gLinkEntity + ldr r1, _0803A6A4 @ =gPlayerEntity adds r0, r4, #0 bl GetFacingDirection strb r0, [r4, #0x15] @@ -689,7 +689,7 @@ _0803A688: strh r0, [r4, #0x24] b _0803A6DE .align 2, 0 -_0803A6A4: .4byte gLinkEntity +_0803A6A4: .4byte gPlayerEntity _0803A6A8: adds r0, r4, #0 bl sub_0803B55C @@ -1185,7 +1185,7 @@ _0803AA54: ldrb r0, [r4, #0x15] cmp r0, r5 beq _0803AA6E - ldr r0, _0803AA94 @ =gLinkEntity + ldr r0, _0803AA94 @ =gPlayerEntity movs r2, #0x32 ldrsh r1, [r4, r2] movs r2, #0x32 @@ -1200,7 +1200,7 @@ _0803AA6E: ands r0, r1 strb r0, [r4, #0x18] strb r5, [r4, #0x15] - ldr r0, _0803AA94 @ =gLinkEntity + ldr r0, _0803AA94 @ =gPlayerEntity ldrh r1, [r0, #0x2e] adds r0, r4, #0 adds r0, #0x80 @@ -1212,7 +1212,7 @@ _0803AA8E: pop {r4, r5, pc} .align 2, 0 _0803AA90: .4byte gUnk_080CED6C -_0803AA94: .4byte gLinkEntity +_0803AA94: .4byte gPlayerEntity thumb_func_start sub_0803AA98 sub_0803AA98: @ 0x0803AA98 @@ -2718,7 +2718,7 @@ _0803B5B8: sub_0803B5C0: @ 0x0803B5C0 push {r4, lr} adds r4, r0, #0 - ldr r1, _0803B5E8 @ =gLinkEntity + ldr r1, _0803B5E8 @ =gPlayerEntity bl GetFacingDirection adds r2, r0, #0 cmp r2, #9 @@ -2737,7 +2737,7 @@ _0803B5D8: subs r0, #0xa b _0803B5F6 .align 2, 0 -_0803B5E8: .4byte gLinkEntity +_0803B5E8: .4byte gPlayerEntity _0803B5EC: .4byte gUnk_080CFD0C _0803B5F0: ldr r1, _0803B60C @ =gUnk_080CFD0C @@ -2761,7 +2761,7 @@ _0803B60C: .4byte gUnk_080CFD0C thumb_func_start sub_0803B610 sub_0803B610: @ 0x0803B610 push {r4, lr} - ldr r4, _0803B634 @ =gLinkEntity + ldr r4, _0803B634 @ =gPlayerEntity movs r2, #0x2e ldrsh r1, [r4, r2] ldr r3, _0803B638 @ =gUnk_080CFD19 @@ -2778,14 +2778,14 @@ sub_0803B610: @ 0x0803B610 bl sub_0806FCB8 pop {r4, pc} .align 2, 0 -_0803B634: .4byte gLinkEntity +_0803B634: .4byte gPlayerEntity _0803B638: .4byte gUnk_080CFD19 thumb_func_start sub_0803B63C sub_0803B63C: @ 0x0803B63C push {r4, r5, lr} adds r4, r0, #0 - ldr r2, _0803B680 @ =gLinkEntity + ldr r2, _0803B680 @ =gPlayerEntity movs r0, #0x2e ldrsh r3, [r2, r0] ldr r1, _0803B684 @ =gUnk_080CFD19 @@ -2816,7 +2816,7 @@ sub_0803B63C: @ 0x0803B63C strb r0, [r4, #0x15] b _0803B6A0 .align 2, 0 -_0803B680: .4byte gLinkEntity +_0803B680: .4byte gPlayerEntity _0803B684: .4byte gUnk_080CFD19 _0803B688: movs r1, #0x2e @@ -2973,7 +2973,7 @@ _0803B794: .4byte gRoomControls thumb_func_start sub_0803B798 sub_0803B798: @ 0x0803B798 - ldr r2, _0803B7F4 @ =gLinkState + ldr r2, _0803B7F4 @ =gPlayerState movs r1, #0 movs r0, #0x41 strb r0, [r2, #2] @@ -2982,7 +2982,7 @@ sub_0803B798: @ 0x0803B798 ldr r1, _0803B7F8 @ =0x0000FFEF ands r0, r1 str r0, [r2, #0x30] - ldr r3, _0803B7FC @ =gLinkEntity + ldr r3, _0803B7FC @ =gPlayerEntity ldrb r1, [r3, #0x10] movs r0, #0x80 orrs r0, r1 @@ -3020,15 +3020,15 @@ sub_0803B798: @ 0x0803B798 strb r0, [r1] bx lr .align 2, 0 -_0803B7F4: .4byte gLinkState +_0803B7F4: .4byte gPlayerState _0803B7F8: .4byte 0x0000FFEF -_0803B7FC: .4byte gLinkEntity +_0803B7FC: .4byte gPlayerEntity _0803B800: .4byte 0x0000FFF6 thumb_func_start sub_0803B804 sub_0803B804: @ 0x0803B804 push {r4, lr} - ldr r4, _0803B820 @ =gLinkEntity + ldr r4, _0803B820 @ =gPlayerEntity adds r1, r4, #0 adds r1, #0x3d movs r0, #0x1e @@ -3040,19 +3040,19 @@ sub_0803B804: @ 0x0803B804 bl sub_0800449C pop {r4, pc} .align 2, 0 -_0803B820: .4byte gLinkEntity +_0803B820: .4byte gPlayerEntity thumb_func_start sub_0803B824 sub_0803B824: @ 0x0803B824 push {r4, r5, lr} adds r5, r0, #0 - bl ResetLink - ldr r2, _0803B864 @ =gLinkState + bl ResetPlayer + ldr r2, _0803B864 @ =gPlayerState ldrb r1, [r2, #0x1a] movs r0, #0x80 orrs r0, r1 strb r0, [r2, #0x1a] - ldr r4, _0803B868 @ =gLinkEntity + ldr r4, _0803B868 @ =gPlayerEntity ldr r1, _0803B86C @ =gUnk_080CFD1D ldrb r0, [r5, #0xa] adds r0, r0, r1 @@ -3074,8 +3074,8 @@ sub_0803B824: @ 0x0803B824 strb r0, [r4] pop {r4, r5, pc} .align 2, 0 -_0803B864: .4byte gLinkState -_0803B868: .4byte gLinkEntity +_0803B864: .4byte gPlayerState +_0803B868: .4byte gPlayerEntity _0803B86C: .4byte gUnk_080CFD1D thumb_func_start sub_0803B870 @@ -3090,7 +3090,7 @@ sub_0803B870: @ 0x0803B870 ands r0, r1 cmp r0, #0 beq _0803B8DC - ldr r0, _0803B8D4 @ =gLinkState + ldr r0, _0803B8D4 @ =gPlayerState ldr r0, [r0, #0x30] movs r1, #0x10 ands r0, r1 @@ -3104,7 +3104,7 @@ sub_0803B870: @ 0x0803B870 subs r0, #0x48 ands r0, r1 strb r0, [r3, #0x18] - ldr r1, _0803B8D8 @ =gLinkEntity + ldr r1, _0803B8D8 @ =gPlayerEntity ldrb r2, [r1, #0x10] movs r0, #0x7f ands r0, r2 @@ -3127,8 +3127,8 @@ sub_0803B870: @ 0x0803B870 movs r0, #1 b _0803B8E6 .align 2, 0 -_0803B8D4: .4byte gLinkState -_0803B8D8: .4byte gLinkEntity +_0803B8D4: .4byte gPlayerState +_0803B8D8: .4byte gPlayerEntity _0803B8DC: adds r1, r4, #0 adds r1, #0x3f diff --git a/asm/mazaalHead.s b/asm/mazaalHead.s index ea96d43f..93f4a365 100644 --- a/asm/mazaalHead.s +++ b/asm/mazaalHead.s @@ -305,11 +305,11 @@ _08034114: cmp r0, #0 beq _0803413E ldr r1, _08034140 @ =gRoomControls - ldr r0, _08034144 @ =gLinkEntity + ldr r0, _08034144 @ =gPlayerEntity str r0, [r1, #0x30] adds r0, r3, #0 bl sub_08034420 - ldr r0, _08034148 @ =gLinkState + ldr r0, _08034148 @ =gPlayerState adds r0, #0x8b movs r1, #1 strb r1, [r0] @@ -320,8 +320,8 @@ _0803413E: pop {r4, pc} .align 2, 0 _08034140: .4byte gRoomControls -_08034144: .4byte gLinkEntity -_08034148: .4byte gLinkState +_08034144: .4byte gPlayerEntity +_08034148: .4byte gPlayerState thumb_func_start sub_0803414C sub_0803414C: @ 0x0803414C @@ -1154,20 +1154,20 @@ sub_0803473C: @ 0x0803473C ldrb r0, [r0, #0xc] cmp r0, #0x28 bhi _080347B0 - ldr r0, _08034760 @ =gLinkEntity + ldr r0, _08034760 @ =gPlayerEntity movs r1, #0x2e ldrsh r0, [r0, r1] adds r2, r0, #0 subs r2, #0x60 b _08034776 .align 2, 0 -_08034760: .4byte gLinkEntity +_08034760: .4byte gPlayerEntity _08034764: ldr r0, [r3, #0x78] ldrb r0, [r0, #0xc] cmp r0, #0x28 bhi _080347B0 - ldr r0, _08034790 @ =gLinkEntity + ldr r0, _08034790 @ =gPlayerEntity movs r5, #0x2e ldrsh r0, [r0, r5] adds r2, r0, #0 @@ -1187,7 +1187,7 @@ _08034776: movs r0, #8 b _080347A8 .align 2, 0 -_08034790: .4byte gLinkEntity +_08034790: .4byte gPlayerEntity _08034794: .4byte gRoomControls _08034798: adds r0, r2, #4 @@ -1210,7 +1210,7 @@ _080347B0: sub_080347B4: @ 0x080347B4 push {r4, r5, lr} adds r2, r0, #0 - ldr r0, _080347D8 @ =gLinkEntity + ldr r0, _080347D8 @ =gPlayerEntity movs r1, #0x2e ldrsh r3, [r0, r1] ldr r0, _080347DC @ =gRoomControls @@ -1227,7 +1227,7 @@ sub_080347B4: @ 0x080347B4 movs r0, #8 b _080347F0 .align 2, 0 -_080347D8: .4byte gLinkEntity +_080347D8: .4byte gPlayerEntity _080347DC: .4byte gRoomControls _080347E0: adds r0, r3, #4 @@ -1810,7 +1810,7 @@ _08034BFE: sub_08034C00: @ 0x08034C00 push {r4, lr} adds r3, r0, #0 - ldr r0, _08034C44 @ =gLinkState + ldr r0, _08034C44 @ =gPlayerState ldr r0, [r0, #0x30] movs r1, #0x80 ands r0, r1 @@ -1840,7 +1840,7 @@ sub_08034C00: @ 0x08034C00 bl DoExitTransition b _08034C5A .align 2, 0 -_08034C44: .4byte gLinkState +_08034C44: .4byte gPlayerState _08034C48: .4byte gRoomControls _08034C4C: .4byte gScreenTransition _08034C50: .4byte gUnk_080CED88 diff --git a/asm/minecart.s b/asm/minecart.s index f06f5240..2ec63ae3 100644 --- a/asm/minecart.s +++ b/asm/minecart.s @@ -11,7 +11,7 @@ sub_08091C0C: @ 0x08091C0C push {r4, lr} adds r4, r0, #0 bl sub_08004168 - ldr r1, _08091C30 @ =gLinkEntity + ldr r1, _08091C30 @ =gPlayerEntity adds r0, r4, #0 bl CopyPosition adds r0, r4, #0 @@ -24,7 +24,7 @@ sub_08091C0C: @ 0x08091C0C beq _08091C3E b _08091C80 .align 2, 0 -_08091C30: .4byte gLinkEntity +_08091C30: .4byte gPlayerEntity _08091C34: cmp r0, #0x69 beq _08091C4E @@ -79,21 +79,21 @@ _08091C80: _08091C86: movs r0, #3 strb r0, [r4, #0xc] - ldr r1, _08091C94 @ =gLinkEntity + ldr r1, _08091C94 @ =gPlayerEntity ldrb r0, [r4, #0x14] lsls r0, r0, #1 strb r0, [r1, #0x14] _08091C92: pop {r4, pc} .align 2, 0 -_08091C94: .4byte gLinkEntity +_08091C94: .4byte gPlayerEntity thumb_func_start sub_08091C98 sub_08091C98: @ 0x08091C98 push {r4, r5, lr} adds r4, r0, #0 bl sub_0806F69C - ldr r5, _08091CC0 @ =gLinkEntity + ldr r5, _08091CC0 @ =gPlayerEntity adds r0, r4, #0 adds r1, r5, #0 bl CopyPosition @@ -110,14 +110,14 @@ sub_08091C98: @ 0x08091C98 _08091CBE: pop {r4, r5, pc} .align 2, 0 -_08091CC0: .4byte gLinkEntity +_08091CC0: .4byte gPlayerEntity _08091CC4: .4byte gRoomControls thumb_func_start sub_08091CC8 sub_08091CC8: @ 0x08091CC8 push {r4, r5, r6, lr} adds r6, r0, #0 - ldr r2, _08091D58 @ =gLinkState + ldr r2, _08091D58 @ =gPlayerState ldrb r0, [r2, #2] cmp r0, #0 bne _08091D64 @@ -186,13 +186,13 @@ sub_08091CC8: @ 0x08091CC8 bl SetTile b _08091D8A .align 2, 0 -_08091D58: .4byte gLinkState +_08091D58: .4byte gPlayerState _08091D5C: .4byte gRoomControls _08091D60: .4byte 0x00004022 _08091D64: adds r0, r6, #0 bl UpdateAnimationSingleFrame - ldr r3, _08091D8C @ =gLinkEntity + ldr r3, _08091D8C @ =gPlayerEntity adds r0, r6, #0 adds r0, #0x29 ldrb r1, [r0] @@ -211,7 +211,7 @@ _08091D64: _08091D8A: pop {r4, r5, r6, pc} .align 2, 0 -_08091D8C: .4byte gLinkEntity +_08091D8C: .4byte gPlayerEntity thumb_func_start sub_08091D90 sub_08091D90: @ 0x08091D90 @@ -272,7 +272,7 @@ sub_08091DDC: @ 0x08091DDC bl sub_080002CC cmp r0, #0xff bne _08091E5C - ldr r0, _08091E34 @ =gLinkEntity + ldr r0, _08091E34 @ =gPlayerEntity ldrb r1, [r4, #0x14] bl sub_0807BD14 cmp r0, #0 @@ -296,7 +296,7 @@ sub_08091DDC: @ 0x08091DDC b _08091E44 .align 2, 0 _08091E30: .4byte gUnk_081223D0 -_08091E34: .4byte gLinkEntity +_08091E34: .4byte gPlayerEntity _08091E38: cmp r0, #0x10 beq _08091E40 @@ -306,7 +306,7 @@ _08091E40: movs r0, #0xa0 strh r0, [r4, #0x24] _08091E44: - ldr r0, _08091E54 @ =gLinkEntity + ldr r0, _08091E54 @ =gPlayerEntity ldrb r1, [r4, #0x15] strb r1, [r0, #0x15] ldr r0, _08091E58 @ =gRoomControls @@ -314,7 +314,7 @@ _08091E44: movs r0, #1 b _08091E5E .align 2, 0 -_08091E54: .4byte gLinkEntity +_08091E54: .4byte gPlayerEntity _08091E58: .4byte gRoomControls _08091E5C: movs r0, #0 diff --git a/asm/minecartDoor.s b/asm/minecartDoor.s index 4d561b9e..308edf13 100644 --- a/asm/minecartDoor.s +++ b/asm/minecartDoor.s @@ -206,7 +206,7 @@ sub_08096C3C: @ 0x08096C3C cmp r0, #0 bne _08096CAE _08096C56: - ldr r0, _08096C80 @ =gLinkState + ldr r0, _08096C80 @ =gPlayerState ldr r0, [r0, #0x30] movs r1, #0x80 lsls r1, r1, #5 @@ -215,7 +215,7 @@ _08096C56: beq _08096C92 ldrb r2, [r4, #0xa] lsls r1, r2, #1 - ldr r0, _08096C84 @ =gLinkEntity + ldr r0, _08096C84 @ =gPlayerEntity ldrb r0, [r0, #0x14] cmp r1, r0 bne _08096C88 @@ -226,8 +226,8 @@ _08096C56: beq _08096CAE b _08096C9C .align 2, 0 -_08096C80: .4byte gLinkState -_08096C84: .4byte gLinkEntity +_08096C80: .4byte gPlayerState +_08096C84: .4byte gPlayerEntity _08096C88: ldrb r0, [r4, #0xe] subs r0, #1 @@ -298,14 +298,14 @@ sub_08096CEC: @ 0x08096CEC cmp r0, #0 bne _08096D60 _08096D06: - ldr r0, _08096D40 @ =gLinkState + ldr r0, _08096D40 @ =gPlayerState ldr r0, [r0, #0x30] movs r1, #0x80 lsls r1, r1, #5 ands r0, r1 cmp r0, #0 beq _08096D64 - ldr r3, _08096D44 @ =gLinkEntity + ldr r3, _08096D44 @ =gPlayerEntity ldrb r2, [r4, #0xa] lsls r0, r2, #1 ldrb r1, [r3, #0x14] @@ -328,8 +328,8 @@ _08096D06: ldrsh r3, [r4, r5] b _08096D58 .align 2, 0 -_08096D40: .4byte gLinkState -_08096D44: .4byte gLinkEntity +_08096D40: .4byte gPlayerState +_08096D44: .4byte gPlayerEntity _08096D48: movs r1, #0x2e ldrsh r0, [r3, r1] @@ -391,14 +391,14 @@ _08096D98: _08096DA2: movs r0, #0x32 ldrsh r1, [r1, r0] - ldr r0, _08096DB0 @ =gLinkEntity + ldr r0, _08096DB0 @ =gPlayerEntity movs r2, #0x32 ldrsh r0, [r0, r2] b _08096DEE .align 2, 0 -_08096DB0: .4byte gLinkEntity +_08096DB0: .4byte gPlayerEntity _08096DB4: - ldr r0, _08096DC4 @ =gLinkEntity + ldr r0, _08096DC4 @ =gPlayerEntity movs r2, #0x2e ldrsh r0, [r0, r2] adds r0, #0xa @@ -406,9 +406,9 @@ _08096DB4: ldrsh r1, [r1, r2] b _08096DD4 .align 2, 0 -_08096DC4: .4byte gLinkEntity +_08096DC4: .4byte gPlayerEntity _08096DC8: - ldr r0, _08096DE0 @ =gLinkEntity + ldr r0, _08096DE0 @ =gPlayerEntity movs r2, #0x32 ldrsh r0, [r0, r2] adds r0, #0xa @@ -421,11 +421,11 @@ _08096DD4: movs r0, #1 b _08096E02 .align 2, 0 -_08096DE0: .4byte gLinkEntity +_08096DE0: .4byte gPlayerEntity _08096DE4: movs r0, #0x2e ldrsh r1, [r1, r0] - ldr r0, _08096DFC @ =gLinkEntity + ldr r0, _08096DFC @ =gPlayerEntity movs r2, #0x2e ldrsh r0, [r0, r2] _08096DEE: @@ -436,7 +436,7 @@ _08096DEE: movs r0, #1 b _08096E02 .align 2, 0 -_08096DFC: .4byte gLinkEntity +_08096DFC: .4byte gPlayerEntity _08096E00: movs r0, #0 _08096E02: diff --git a/asm/minishSizedEntrance.s b/asm/minishSizedEntrance.s index f6b4ad3c..aa4edc0d 100644 --- a/asm/minishSizedEntrance.s +++ b/asm/minishSizedEntrance.s @@ -22,13 +22,13 @@ sub_08090F00: @ 0x08090F00 bne _08090F1C bl DeleteThisEntity _08090F1C: - ldr r6, _08090F64 @ =gLinkState + ldr r6, _08090F64 @ =gPlayerState ldr r0, [r6, #0x30] movs r1, #0x80 ands r0, r1 cmp r0, #0 beq _08090F62 - ldr r5, _08090F68 @ =gLinkEntity + ldr r5, _08090F68 @ =gPlayerEntity adds r0, r4, #0 adds r1, r5, #0 movs r2, #4 @@ -57,6 +57,6 @@ _08090F1C: _08090F62: pop {r4, r5, r6, pc} .align 2, 0 -_08090F64: .4byte gLinkState -_08090F68: .4byte gLinkEntity +_08090F64: .4byte gPlayerState +_08090F68: .4byte gPlayerEntity _08090F6C: .4byte gUnk_0812225C diff --git a/asm/ministerPotho.s b/asm/ministerPotho.s index cd793eb1..ea0d3c95 100644 --- a/asm/ministerPotho.s +++ b/asm/ministerPotho.s @@ -149,7 +149,7 @@ _080668A2: movs r0, #0 strb r1, [r4, #0xc] strb r0, [r2] - ldr r1, _080668D0 @ =gLinkEntity + ldr r1, _080668D0 @ =gPlayerEntity adds r0, r4, #0 bl GetFacingDirection bl sub_0806F5A4 @@ -160,7 +160,7 @@ _080668A2: bl sub_0806F118 b _080668EC .align 2, 0 -_080668D0: .4byte gLinkEntity +_080668D0: .4byte gPlayerEntity _080668D4: adds r0, r4, #0 movs r1, #0 diff --git a/asm/moldworm.s b/asm/moldworm.s index 3b33afac..5b914aa5 100644 --- a/asm/moldworm.s +++ b/asm/moldworm.s @@ -156,7 +156,7 @@ _08023132: ldrb r0, [r5, #0xc] cmp r0, #7 bne _0802318A - ldr r4, _08023194 @ =gLinkEntity + ldr r4, _08023194 @ =gPlayerEntity adds r0, r5, #0 adds r1, r4, #0 bl CopyPosition @@ -179,7 +179,7 @@ _08023132: adds r4, #0x3d movs r0, #0xec strb r0, [r4] - ldr r2, _08023198 @ =gLinkState + ldr r2, _08023198 @ =gPlayerState movs r0, #0x41 strb r0, [r2, #2] ldr r0, [r2, #0x30] @@ -192,8 +192,8 @@ _0802318A: bl sub_0804AA30 pop {r4, r5, pc} .align 2, 0 -_08023194: .4byte gLinkEntity -_08023198: .4byte gLinkState +_08023194: .4byte gPlayerEntity +_08023198: .4byte gPlayerState _0802319C: .4byte 0xFFF7FFFF _080231A0: .4byte gUnk_080CBC38 @@ -340,7 +340,7 @@ sub_08023288: @ 0x08023288 ands r4, r0 movs r0, #0 mov r8, r0 - ldr r2, _08023308 @ =gLinkEntity + ldr r2, _08023308 @ =gPlayerEntity mov sb, r2 ldr r0, _0802330C @ =gUnk_080CBC70 mov sl, r0 @@ -377,7 +377,7 @@ _080232C2: bl sub_08023990 b _08023324 .align 2, 0 -_08023308: .4byte gLinkEntity +_08023308: .4byte gPlayerEntity _0802330C: .4byte gUnk_080CBC70 _08023310: .4byte gUnk_03001198 _08023314: @@ -656,7 +656,7 @@ sub_0802351C: @ 0x0802351C ldrb r0, [r7, #0xb] cmp r0, #1 beq _08023534 - ldr r0, _080235A8 @ =gLinkEntity + ldr r0, _080235A8 @ =gPlayerEntity ldrb r0, [r0, #0x1e] cmp r0, #0xff bne _0802355A @@ -687,13 +687,13 @@ _0802355A: ldrb r0, [r7, #0xb] cmp r0, #0 bne _080235B8 - ldr r5, _080235A8 @ =gLinkEntity + ldr r5, _080235A8 @ =gPlayerEntity ldrb r0, [r7, #0x14] movs r4, #7 adds r2, r4, #0 ands r2, r0 strb r2, [r5, #0x14] - ldr r3, _080235AC @ =gLinkState + ldr r3, _080235AC @ =gPlayerState ldr r0, [r3, #0x30] movs r1, #0x80 lsls r1, r1, #0xc @@ -717,8 +717,8 @@ _0802355A: strb r0, [r5] b _080235B8 .align 2, 0 -_080235A8: .4byte gLinkEntity -_080235AC: .4byte gLinkState +_080235A8: .4byte gPlayerEntity +_080235AC: .4byte gPlayerState _080235B0: .4byte gUnk_080CBC90 _080235B4: movs r0, #4 @@ -1134,13 +1134,13 @@ sub_08023894: @ 0x08023894 ldrb r0, [r0, #0xb] cmp r0, #0 bne _08023900 - ldr r2, _08023904 @ =gLinkState + ldr r2, _08023904 @ =gPlayerState ldr r0, [r2, #0x30] movs r1, #0x80 lsls r1, r1, #0xe orrs r0, r1 str r0, [r2, #0x30] - ldr r4, _08023908 @ =gLinkEntity + ldr r4, _08023908 @ =gPlayerEntity ldrh r0, [r5, #0x2e] strh r0, [r4, #0x2e] ldrh r0, [r5, #0x32] @@ -1166,8 +1166,8 @@ sub_08023894: @ 0x08023894 _08023900: pop {r4, r5, pc} .align 2, 0 -_08023904: .4byte gLinkState -_08023908: .4byte gLinkEntity +_08023904: .4byte gPlayerState +_08023908: .4byte gPlayerEntity thumb_func_start sub_0802390C sub_0802390C: @ 0x0802390C @@ -1268,7 +1268,7 @@ sub_08023990: @ 0x08023990 strb r0, [r4] strh r1, [r5, #0x2e] strh r2, [r5, #0x32] - ldr r0, _080239EC @ =gLinkEntity + ldr r0, _080239EC @ =gPlayerEntity adds r0, #0x38 ldrb r1, [r0] adds r0, r5, #0 @@ -1291,7 +1291,7 @@ _080239D4: bne _080239D4 pop {r4, r5, pc} .align 2, 0 -_080239EC: .4byte gLinkEntity +_080239EC: .4byte gPlayerEntity thumb_func_start sub_080239F0 sub_080239F0: @ 0x080239F0 diff --git a/asm/mountainMinish.s b/asm/mountainMinish.s index ab2b9fc0..d55b8c9a 100644 --- a/asm/mountainMinish.s +++ b/asm/mountainMinish.s @@ -184,7 +184,7 @@ _08067F58: adds r1, r5, #0 adds r1, #0x69 strb r0, [r1] - ldr r1, _08067F94 @ =gLinkEntity + ldr r1, _08067F94 @ =gPlayerEntity adds r0, r5, #0 bl GetFacingDirection bl sub_0806F5A4 @@ -195,7 +195,7 @@ _08067F58: bl sub_0806F118 b _0806801A .align 2, 0 -_08067F94: .4byte gLinkEntity +_08067F94: .4byte gPlayerEntity _08067F98: adds r0, r5, #0 movs r1, #0 @@ -213,7 +213,7 @@ _08067F98: movs r0, #2 strb r0, [r5, #0xc] strb r1, [r4] - ldr r1, _08067FD8 @ =gLinkEntity + ldr r1, _08067FD8 @ =gPlayerEntity adds r0, r5, #0 bl GetFacingDirection bl sub_0806F5A4 @@ -224,7 +224,7 @@ _08067F98: bl sub_08068190 b _0806801A .align 2, 0 -_08067FD8: .4byte gLinkEntity +_08067FD8: .4byte gPlayerEntity _08067FDC: ldr r0, _08067FFC @ =gTextBox ldrb r1, [r0] diff --git a/asm/nayru.s b/asm/nayru.s index dd6c6974..0a11072f 100644 --- a/asm/nayru.s +++ b/asm/nayru.s @@ -52,7 +52,7 @@ _080648C2: ldrb r1, [r0] adds r0, #0x10 strb r1, [r0] - ldr r1, _080648FC @ =gLinkEntity + ldr r1, _080648FC @ =gPlayerEntity adds r0, r4, #0 bl GetFacingDirection bl sub_0806F5A4 @@ -61,7 +61,7 @@ _080648C2: bl InitAnimationForceUpdate b _08064924 .align 2, 0 -_080648FC: .4byte gLinkEntity +_080648FC: .4byte gPlayerEntity _08064900: adds r0, r4, #0 movs r1, #0 diff --git a/asm/non_matching/code_0805457C.inc b/asm/non_matching/code_0805457C.inc index eedefa95..21288249 100644 --- a/asm/non_matching/code_0805457C.inc +++ b/asm/non_matching/code_0805457C.inc @@ -299,7 +299,7 @@ _080547DA: adds r2, r0, #0 cmp r2, #0 beq _0805486A - ldr r0, _08054804 @ =gLinkEntity + ldr r0, _08054804 @ =gPlayerEntity cmp r6, r0 bne _08054808 movs r0, #1 @@ -307,7 +307,7 @@ _080547DA: .align 2, 0 _080547FC: .4byte gRoomVars _08054800: .4byte gUnk_080FE1DD -_08054804: .4byte gLinkEntity +_08054804: .4byte gPlayerEntity _08054808: movs r0, #0 _0805480A: diff --git a/asm/non_matching/smith/smith.inc b/asm/non_matching/smith/smith.inc index 27a834f7..c2997056 100644 --- a/asm/non_matching/smith/smith.inc +++ b/asm/non_matching/smith/smith.inc @@ -31,7 +31,7 @@ bne _08065FF0 movs r5, #8 _08065FF0: - ldr r1, _08066020 @ =gLinkEntity + ldr r1, _08066020 @ =gPlayerEntity adds r0, r4, #0 bl GetFacingDirection bl sub_0806F5A4 @@ -51,7 +51,7 @@ _0806600C: bl _call_via_r1 b _08066042 .align 2, 0 -_08066020: .4byte gLinkEntity +_08066020: .4byte gPlayerEntity _08066024: .4byte gUnk_0811036C _08066028: ldr r0, _08066058 @ =gUnk_08110360 diff --git a/asm/non_matching/sub_08077D38.inc b/asm/non_matching/sub_08077D38.inc index 1f4015f3..22514994 100644 --- a/asm/non_matching/sub_08077D38.inc +++ b/asm/non_matching/sub_08077D38.inc @@ -11,7 +11,7 @@ push {r7} adds r4, r0, #0 mov r8, r1 - ldr r3, _08077D94 @ =gLinkState + ldr r3, _08077D94 @ =gPlayerState movs r7, #8 adds r1, r7, #0 mov r0, r8 @@ -23,7 +23,7 @@ ldrb r0, [r3, #0xb] orrs r1, r0 strb r1, [r3, #0xb] - ldr r0, _08077D98 @ =gLinkEntity + ldr r0, _08077D98 @ =gPlayerEntity ldrb r0, [r0, #0x14] strb r0, [r4, #0xa] ldrb r0, [r4, #4] @@ -53,8 +53,8 @@ _08077D6A: beq _08077DAC b _08077DB4 .align 2, 0 -_08077D94: .4byte gLinkState -_08077D98: .4byte gLinkEntity +_08077D94: .4byte gPlayerState +_08077D98: .4byte gPlayerEntity _08077D9C: .4byte gUnk_0811BE48 _08077DA0: cmp r2, #0x1b @@ -86,7 +86,7 @@ _08077DCC: ldrb r0, [r5, #7] cmp r0, #0 beq _08077DE8 - ldr r2, _08077DF0 @ =gLinkState + ldr r2, _08077DF0 @ =gPlayerState movs r0, #8 mov r1, r8 asrs r0, r1 @@ -100,5 +100,5 @@ _08077DE8: mov r8, r3 pop {r4, r5, r6, r7, pc} .align 2, 0 -_08077DF0: .4byte gLinkState +_08077DF0: .4byte gPlayerState .syntax divided \ No newline at end of file diff --git a/asm/npc23.s b/asm/npc23.s index af5a0ba7..d3828237 100644 --- a/asm/npc23.s +++ b/asm/npc23.s @@ -58,7 +58,7 @@ sub_080662F8: @ 0x080662F8 adds r1, r5, #0 adds r1, #0x82 strh r0, [r1] - ldr r0, _08066354 @ =gLinkEntity + ldr r0, _08066354 @ =gPlayerEntity str r0, [r5, #0x50] adds r0, r5, #0 adds r0, #0x84 @@ -70,7 +70,7 @@ sub_080662F8: @ 0x080662F8 bl sub_08078778 pop {r4, r5, pc} .align 2, 0 -_08066354: .4byte gLinkEntity +_08066354: .4byte gPlayerEntity thumb_func_start sub_08066358 sub_08066358: @ 0x08066358 @@ -151,7 +151,7 @@ sub_080663D4: @ 0x080663D4 subs r0, #8 cmp r1, r0 bne _08066410 - ldr r0, _0806640C @ =gLinkEntity + ldr r0, _0806640C @ =gPlayerEntity ldrb r0, [r0, #0xc] cmp r0, #0xf beq _0806642E @@ -168,7 +168,7 @@ sub_080663D4: @ 0x080663D4 bl InitializeAnimation b _0806642E .align 2, 0 -_0806640C: .4byte gLinkEntity +_0806640C: .4byte gPlayerEntity _08066410: ldrb r0, [r4, #0xd] cmp r0, #0 @@ -207,7 +207,7 @@ sub_0806643C: @ 0x0806643C movs r1, #0 movs r2, #0 bl sub_08078AC0 - ldr r0, _08066470 @ =gLinkEntity + ldr r0, _08066470 @ =gPlayerEntity strb r4, [r0, #0x14] strb r4, [r0, #0x15] _08066462: @@ -216,12 +216,12 @@ _08066462: pop {r4, r5, pc} .align 2, 0 _0806646C: .4byte gRoomControls -_08066470: .4byte gLinkEntity +_08066470: .4byte gPlayerEntity thumb_func_start sub_08066474 sub_08066474: @ 0x08066474 push {lr} - ldr r0, _08066488 @ =gLinkEntity + ldr r0, _08066488 @ =gPlayerEntity ldrb r0, [r0, #0xc] cmp r0, #0xf beq _08066484 @@ -231,7 +231,7 @@ sub_08066474: @ 0x08066474 _08066484: pop {pc} .align 2, 0 -_08066488: .4byte gLinkEntity +_08066488: .4byte gPlayerEntity _0806648C: .4byte gUnk_02034490 thumb_func_start sub_08066490 @@ -306,7 +306,7 @@ sub_0806650C: @ 0x0806650C push {r4, r5, r6, r7, lr} adds r3, r0, #0 movs r4, #0 - ldr r1, _0806652C @ =gLinkEntity + ldr r1, _0806652C @ =gPlayerEntity ldrh r5, [r1, #0x2e] adds r7, r5, #0 ldrh r2, [r1, #0x32] @@ -319,7 +319,7 @@ sub_0806650C: @ 0x0806650C movs r4, #4 b _0806654C .align 2, 0 -_0806652C: .4byte gLinkEntity +_0806652C: .4byte gPlayerEntity _08066530: adds r0, r3, #0 adds r0, #0x7e @@ -372,7 +372,7 @@ sub_08066570: @ 0x08066570 ldrb r0, [r5, #0xc] cmp r0, #3 beq _080665DE - ldr r4, _080665E0 @ =gLinkEntity + ldr r4, _080665E0 @ =gPlayerEntity adds r0, r5, #0 adds r1, r4, #0 movs r2, #0x50 @@ -417,4 +417,4 @@ _080665C8: _080665DE: pop {r4, r5, r6, pc} .align 2, 0 -_080665E0: .4byte gLinkEntity +_080665E0: .4byte gPlayerEntity diff --git a/asm/npc5.s b/asm/npc5.s index 36baa15a..3e49b7fc 100644 --- a/asm/npc5.s +++ b/asm/npc5.s @@ -24,7 +24,7 @@ _080609FC: .4byte gUnk_0810AC1C sub_08060A00: @ 0x08060A00 push {r4, r5, lr} adds r5, r0, #0 - ldr r0, _08060AD0 @ =gLinkState + ldr r0, _08060AD0 @ =gPlayerState ldrb r1, [r0, #2] movs r0, #0x80 ands r0, r1 @@ -43,7 +43,7 @@ sub_08060A00: @ 0x08060A00 orrs r0, r1 strb r0, [r2] ldr r4, [r5, #0x64] - ldr r3, _08060AD4 @ =gLinkEntity + ldr r3, _08060AD4 @ =gPlayerEntity ldrh r2, [r3, #0x2e] movs r1, #0x10 rsbs r1, r1, #0 @@ -77,7 +77,7 @@ _08060A62: cmp r0, #0 beq _08060A76 ldr r1, [r5, #0x64] - ldr r2, _08060AD4 @ =gLinkEntity + ldr r2, _08060AD4 @ =gPlayerEntity ldrh r0, [r2, #0x2e] strh r0, [r1, #2] ldr r1, [r5, #0x64] @@ -92,7 +92,7 @@ _08060A76: cmp r0, r1 beq _08060ACE strh r1, [r2] - ldr r0, _08060AD4 @ =gLinkEntity + ldr r0, _08060AD4 @ =gPlayerEntity adds r1, r5, #0 bl CopyPosition movs r2, #1 @@ -128,8 +128,8 @@ _08060A76: _08060ACE: pop {r4, r5, pc} .align 2, 0 -_08060AD0: .4byte gLinkState -_08060AD4: .4byte gLinkEntity +_08060AD0: .4byte gPlayerState +_08060AD4: .4byte gPlayerEntity _08060AD8: .4byte gUnk_0810AC2C _08060ADC: .4byte gRoomControls @@ -207,7 +207,7 @@ sub_08060B5C: @ 0x08060B5C adds r5, r0, #0 cmp r5, #0 bne _08060B98 - ldr r1, _08060B94 @ =gLinkEntity + ldr r1, _08060B94 @ =gPlayerEntity adds r0, r4, #0 bl GetFacingDirection ldrb r1, [r4, #0x14] @@ -223,7 +223,7 @@ sub_08060B5C: @ 0x08060B5C strb r5, [r4, #0xf] b _08060B9E .align 2, 0 -_08060B94: .4byte gLinkEntity +_08060B94: .4byte gPlayerEntity _08060B98: adds r0, r4, #0 bl sub_08060EDC @@ -327,7 +327,7 @@ _08060C56: bl sub_08061464 b _08060D54 _08060C66: - ldr r5, _08060C98 @ =gLinkEntity + ldr r5, _08060C98 @ =gPlayerEntity movs r0, #0x2e ldrsh r1, [r5, r0] movs r0, #0x32 @@ -349,7 +349,7 @@ _08060C66: movs r0, #0xf5 b _08060D36 .align 2, 0 -_08060C98: .4byte gLinkEntity +_08060C98: .4byte gPlayerEntity _08060C9C: ldr r2, [r4, #0x64] ldrb r1, [r2] @@ -571,7 +571,7 @@ sub_08060E34: @ 0x08060E34 beq _08060E68 movs r0, #2 strb r0, [r4, #0xc] - ldr r1, _08060E6C @ =gLinkEntity + ldr r1, _08060E6C @ =gPlayerEntity adds r0, r4, #0 bl GetFacingDirection adds r0, #4 @@ -585,7 +585,7 @@ sub_08060E34: @ 0x08060E34 _08060E68: pop {r4, pc} .align 2, 0 -_08060E6C: .4byte gLinkEntity +_08060E6C: .4byte gPlayerEntity thumb_func_start sub_08060E70 sub_08060E70: @ 0x08060E70 @@ -664,7 +664,7 @@ sub_08060EDC: @ 0x08060EDC bl UpdateAnimationSingleFrame b _08060F7C _08060F00: - ldr r1, _08060F30 @ =gLinkEntity + ldr r1, _08060F30 @ =gPlayerEntity adds r0, r4, #0 bl GetFacingDirection ldrb r2, [r4, #0x14] @@ -686,7 +686,7 @@ _08060F00: adds r0, #1 b _08060F42 .align 2, 0 -_08060F30: .4byte gLinkEntity +_08060F30: .4byte gPlayerEntity _08060F34: adds r1, r2, #0 adds r1, #0x28 @@ -732,7 +732,7 @@ _08060F7C: sub_08060F80: @ 0x08060F80 push {r4, r5, lr} adds r4, r0, #0 - ldr r5, _08060FC8 @ =gLinkEntity + ldr r5, _08060FC8 @ =gPlayerEntity movs r0, #0x2e ldrsh r1, [r5, r0] movs r3, #0x32 @@ -765,7 +765,7 @@ _08060FC2: movs r0, #0 b _08060FCE .align 2, 0 -_08060FC8: .4byte gLinkEntity +_08060FC8: .4byte gPlayerEntity _08060FCC: movs r0, #1 _08060FCE: @@ -878,7 +878,7 @@ sub_08061090: @ 0x08061090 adds r3, r0, #0 adds r5, r1, #0 adds r6, r2, #0 - ldr r1, _080610C8 @ =gLinkEntity + ldr r1, _080610C8 @ =gPlayerEntity movs r0, #0x2e ldrsh r2, [r1, r0] movs r4, #0x2e @@ -902,7 +902,7 @@ sub_08061090: @ 0x08061090 lsls r0, r0, #1 b _080610F0 .align 2, 0 -_080610C8: .4byte gLinkEntity +_080610C8: .4byte gPlayerEntity _080610CC: .4byte 0x000008FF _080610D0: ldr r0, _080610E4 @ =0x000018FF diff --git a/asm/object10.s b/asm/object10.s index 8390ccb0..dc1d3334 100644 --- a/asm/object10.s +++ b/asm/object10.s @@ -92,7 +92,7 @@ _080848C4: .4byte 0x00004016 sub_080848C8: @ 0x080848C8 push {r4, r5, lr} adds r4, r0, #0 - ldr r0, _08084980 @ =gLinkState + ldr r0, _08084980 @ =gPlayerState adds r0, #0xa0 ldrb r0, [r0] cmp r0, #5 @@ -123,7 +123,7 @@ sub_080848C8: @ 0x080848C8 lsls r0, r1, #4 subs r0, r0, r1 strb r0, [r4, #0xf] - ldr r2, _08084988 @ =gLinkEntity + ldr r2, _08084988 @ =gPlayerEntity ldrh r0, [r4, #0x2e] ldrh r1, [r2, #0x2e] subs r0, r0, r1 @@ -159,7 +159,7 @@ _0808493C: bl sub_08000152 ldrb r1, [r4, #0xa] adds r1, #1 - ldr r0, _08084980 @ =gLinkState + ldr r0, _08084980 @ =gPlayerState ldr r0, [r0, #0x2c] adds r0, #0x68 ldrb r3, [r0] @@ -179,9 +179,9 @@ _0808496A: bl sub_080849D8 b _080849D6 .align 2, 0 -_08084980: .4byte gLinkState +_08084980: .4byte gPlayerState _08084984: .4byte gUnk_08120574 -_08084988: .4byte gLinkEntity +_08084988: .4byte gPlayerEntity _0808498C: .4byte gUnk_03004040 _08084990: .4byte 0x00000315 _08084994: @@ -238,7 +238,7 @@ _080849F2: subs r0, #1 strb r0, [r4, #0xf] _080849F6: - ldr r2, _08084A3C @ =gLinkState + ldr r2, _08084A3C @ =gPlayerState adds r3, r2, #0 adds r3, #0xa0 ldrb r0, [r3] @@ -263,7 +263,7 @@ _08084A04: ldrb r0, [r0] cmp r0, #0 beq _08084AF8 - ldr r5, _08084A44 @ =gLinkEntity + ldr r5, _08084A44 @ =gPlayerEntity adds r0, r5, #0 adds r0, #0x3d ldrb r0, [r0] @@ -275,9 +275,9 @@ _08084A04: strb r0, [r3] b _08084AF8 .align 2, 0 -_08084A3C: .4byte gLinkState +_08084A3C: .4byte gPlayerState _08084A40: .4byte gUnk_03004040 -_08084A44: .4byte gLinkEntity +_08084A44: .4byte gPlayerEntity _08084A48: adds r0, r4, #0 bl sub_080002B8 @@ -361,13 +361,13 @@ _08084AE4: strb r0, [r4, #0xe] b _08084B16 _08084AEA: - ldr r0, _08084AF4 @ =gLinkState + ldr r0, _08084AF4 @ =gPlayerState adds r0, #0xa0 movs r1, #1 strb r1, [r0] b _08084B16 .align 2, 0 -_08084AF4: .4byte gLinkState +_08084AF4: .4byte gPlayerState _08084AF8: bl sub_0807A108 adds r0, r4, #0 @@ -392,7 +392,7 @@ sub_08084B1C: @ 0x08084B1C mov r5, r8 push {r5, r6, r7} adds r4, r0, #0 - ldr r3, _08084CA4 @ =gLinkEntity + ldr r3, _08084CA4 @ =gPlayerEntity ldrb r0, [r3, #0x10] strb r0, [r4, #0x10] adds r0, r3, #0 @@ -493,7 +493,7 @@ sub_08084B1C: @ 0x08084B1C ldr r1, [r4, #0x54] adds r0, r4, #0 bl CopyPosition - ldr r5, _08084CA8 @ =gLinkState + ldr r5, _08084CA8 @ =gPlayerState ldrb r0, [r5, #4] cmp r0, #0 beq _08084C6A @@ -578,8 +578,8 @@ _08084C6A: mov sl, r5 pop {r4, r5, r6, r7, pc} .align 2, 0 -_08084CA4: .4byte gLinkEntity -_08084CA8: .4byte gLinkState +_08084CA4: .4byte gPlayerEntity +_08084CA8: .4byte gPlayerState thumb_func_start sub_08084CAC sub_08084CAC: @ 0x08084CAC diff --git a/asm/object11.s b/asm/object11.s index 99dd93a5..165dd5ab 100644 --- a/asm/object11.s +++ b/asm/object11.s @@ -73,7 +73,7 @@ _08084D7E: movs r2, #0 movs r0, #0x80 strh r0, [r7, #0x24] - ldr r0, _08084E4C @ =gLinkEntity + ldr r0, _08084E4C @ =gPlayerEntity adds r0, #0x38 ldrb r0, [r0] adds r6, r7, #0 @@ -145,7 +145,7 @@ _08084D7E: pop {r4, r5, r6, r7, pc} .align 2, 0 _08084E48: .4byte gUnk_08120588 -_08084E4C: .4byte gLinkEntity +_08084E4C: .4byte gPlayerEntity _08084E50: .4byte gUnk_081205B4 _08084E54: .4byte gRoomControls _08084E58: .4byte 0x00004022 @@ -154,7 +154,7 @@ _08084E58: .4byte 0x00004022 sub_08084E5C: @ 0x08084E5C push {r4, r5, lr} adds r4, r0, #0 - ldr r0, _08084EAC @ =gLinkState + ldr r0, _08084EAC @ =gPlayerState ldrb r1, [r0, #0x1c] movs r0, #0xf ands r0, r1 @@ -192,7 +192,7 @@ _08084E7A: _08084EA8: pop {r4, r5, pc} .align 2, 0 -_08084EAC: .4byte gLinkState +_08084EAC: .4byte gPlayerState _08084EB0: .4byte gRoomControls thumb_func_start sub_08084EB4 @@ -273,7 +273,7 @@ sub_08084EFC: @ 0x08084EFC ldrb r2, [r2] bl sub_0807B9B8 _08084F42: - ldr r0, _08084F80 @ =gLinkState + ldr r0, _08084F80 @ =gPlayerState ldrb r1, [r0, #0x1c] movs r0, #0xf ands r0, r1 @@ -304,7 +304,7 @@ _08084F7A: pop {r4, r5, r6, pc} .align 2, 0 _08084F7C: .4byte gRoomControls -_08084F80: .4byte gLinkState +_08084F80: .4byte gPlayerState thumb_func_start sub_08084F84 sub_08084F84: @ 0x08084F84 diff --git a/asm/object17.s b/asm/object17.s index 93768f63..23b434a2 100644 --- a/asm/object17.s +++ b/asm/object17.s @@ -29,7 +29,7 @@ sub_080861C4: @ 0x080861C4 strb r0, [r4, #0xc] movs r0, #0x80 strh r0, [r4, #0x24] - ldr r0, _08086230 @ =gLinkEntity + ldr r0, _08086230 @ =gPlayerEntity mov ip, r0 ldrb r1, [r0, #0x19] lsrs r1, r1, #6 @@ -75,7 +75,7 @@ sub_080861C4: @ 0x080861C4 bl InitializeAnimation pop {r4, r5, r6, pc} .align 2, 0 -_08086230: .4byte gLinkEntity +_08086230: .4byte gPlayerEntity thumb_func_start sub_08086234 sub_08086234: @ 0x08086234 @@ -106,7 +106,7 @@ _0808625E: bl DeleteThisEntity b _0808627E _0808626E: - ldr r0, _08086280 @ =gLinkState + ldr r0, _08086280 @ =gPlayerState ldrb r1, [r0, #0x1c] movs r0, #0xf ands r0, r1 @@ -116,4 +116,4 @@ _0808626E: _0808627E: pop {r4, pc} .align 2, 0 -_08086280: .4byte gLinkState +_08086280: .4byte gPlayerState diff --git a/asm/object1E.s b/asm/object1E.s index d9d10e01..8bfbd69b 100644 --- a/asm/object1E.s +++ b/asm/object1E.s @@ -32,7 +32,7 @@ sub_08087528: @ 0x08087528 adds r4, r0, #0 movs r0, #1 strb r0, [r4, #0xc] - ldr r0, _08087590 @ =gLinkEntity + ldr r0, _08087590 @ =gPlayerEntity ldrb r0, [r0, #0x14] lsrs r0, r0, #1 strb r0, [r4, #0x14] @@ -81,7 +81,7 @@ _08087588: bl sub_08087640 b _080875DC .align 2, 0 -_08087590: .4byte gLinkEntity +_08087590: .4byte gPlayerEntity _08087594: ldr r0, _080875B4 @ =gArea ldrb r0, [r0, #1] @@ -151,7 +151,7 @@ _0808760E: ldrb r0, [r4, #0xb] cmp r0, #0 beq _08087638 - ldr r0, _0808763C @ =gLinkEntity + ldr r0, _0808763C @ =gPlayerEntity adds r0, #0x29 ldrb r1, [r0] lsls r1, r1, #0x1d @@ -172,7 +172,7 @@ _0808760E: _08087638: pop {r4, r5, pc} .align 2, 0 -_0808763C: .4byte gLinkEntity +_0808763C: .4byte gPlayerEntity thumb_func_start sub_08087640 sub_08087640: @ 0x08087640 diff --git a/asm/object1F.s b/asm/object1F.s index 8eff6587..315749f8 100644 --- a/asm/object1F.s +++ b/asm/object1F.s @@ -97,7 +97,7 @@ _080876E2: adds r0, r0, r3 ldrb r0, [r0, #2] str r0, [r2, #0x6c] - ldr r0, _08087768 @ =gLinkEntity + ldr r0, _08087768 @ =gPlayerEntity adds r0, #0x38 ldrb r1, [r0] mov r0, ip @@ -116,7 +116,7 @@ _080876E2: .align 2, 0 _08087760: .4byte gUnk_08120A20 _08087764: .4byte gUnk_08120A18 -_08087768: .4byte gLinkEntity +_08087768: .4byte gPlayerEntity thumb_func_start sub_0808776C sub_0808776C: @ 0x0808776C @@ -127,12 +127,12 @@ sub_0808776C: @ 0x0808776C beq _08087788 subs r0, #1 str r0, [r4, #0x6c] - ldr r0, _08087784 @ =gLinkState + ldr r0, _08087784 @ =gPlayerState adds r0, #0x3d ldrb r0, [r0] b _08087798 .align 2, 0 -_08087784: .4byte gLinkState +_08087784: .4byte gPlayerState _08087788: adds r0, r4, #0 bl sub_080AEFE0 diff --git a/asm/object21.s b/asm/object21.s index 8367e2d3..1c03e043 100644 --- a/asm/object21.s +++ b/asm/object21.s @@ -163,7 +163,7 @@ _08087AC0: ldrh r0, [r4, #0x32] adds r0, r0, r2 strh r0, [r4, #0x32] - ldr r0, _08087AEC @ =gLinkEntity + ldr r0, _08087AEC @ =gPlayerEntity adds r0, #0x38 ldrb r1, [r0] adds r0, r4, #0 @@ -176,7 +176,7 @@ _08087AC0: .align 2, 0 _08087AE4: .4byte gUnk_08120A8C _08087AE8: .4byte gUnk_08120A7A -_08087AEC: .4byte gLinkEntity +_08087AEC: .4byte gPlayerEntity _08087AF0: adds r0, r4, #0 movs r1, #0x10 diff --git a/asm/object24.s b/asm/object24.s index 60438adc..a3d057e1 100644 --- a/asm/object24.s +++ b/asm/object24.s @@ -232,7 +232,7 @@ sub_080889A8: @ 0x080889A8 bl sub_08017850 cmp r0, #0 beq _080889CA - ldr r1, _08088A40 @ =gLinkEntity + ldr r1, _08088A40 @ =gPlayerEntity ldr r2, _08088A44 @ =gUnk_08120BEC adds r0, r4, #0 adds r0, #0x72 @@ -243,7 +243,7 @@ sub_080889A8: @ 0x080889A8 strb r0, [r1] movs r5, #1 _080889CA: - ldr r0, _08088A48 @ =gLinkState + ldr r0, _08088A48 @ =gPlayerState ldr r0, [r0, #0x30] movs r1, #0x80 lsls r1, r1, #0xf @@ -302,7 +302,7 @@ _08088A3A: adds r0, r5, #0 pop {r4, r5, r6, pc} .align 2, 0 -_08088A40: .4byte gLinkEntity +_08088A40: .4byte gPlayerEntity _08088A44: .4byte gUnk_08120BEC -_08088A48: .4byte gLinkState +_08088A48: .4byte gPlayerState _08088A4C: .4byte gUnk_03004040 diff --git a/asm/object29.s b/asm/object29.s index 8c442a10..43e3180d 100644 --- a/asm/object29.s +++ b/asm/object29.s @@ -172,7 +172,7 @@ _08089964: cmp r0, #2 bne _08089A76 _08089984: - ldr r0, _08089998 @ =gLinkEntity + ldr r0, _08089998 @ =gPlayerEntity movs r1, #0x36 ldrsh r2, [r0, r1] movs r1, #0x24 @@ -183,7 +183,7 @@ _08089984: movs r0, #1 b _0808999E .align 2, 0 -_08089998: .4byte gLinkEntity +_08089998: .4byte gPlayerEntity _0808999C: movs r0, #0 _0808999E: @@ -226,7 +226,7 @@ _0808999E: movs r0, #1 strb r0, [r1, #0xc] _080899EC: - ldr r1, _08089A78 @ =gLinkState + ldr r1, _08089A78 @ =gPlayerState movs r0, #1 strb r0, [r1, #0x14] ldrh r0, [r5, #0x32] @@ -297,7 +297,7 @@ _08089A62: _08089A76: pop {r4, r5, r6, pc} .align 2, 0 -_08089A78: .4byte gLinkState +_08089A78: .4byte gPlayerState thumb_func_start sub_08089A7C sub_08089A7C: @ 0x08089A7C @@ -310,7 +310,7 @@ sub_08089A7C: @ 0x08089A7C ldrh r0, [r4, #0x32] subs r0, r0, r1 strh r0, [r4, #0x32] - ldr r5, _08089AB0 @ =gLinkEntity + ldr r5, _08089AB0 @ =gPlayerEntity adds r0, r4, #0 adds r1, r5, #0 movs r2, #0xf @@ -318,7 +318,7 @@ sub_08089A7C: @ 0x08089A7C bl sub_080041A0 cmp r0, #0 beq _08089AB8 - ldr r2, _08089AB4 @ =gLinkState + ldr r2, _08089AB4 @ =gPlayerState movs r0, #1 strb r0, [r2, #0x14] ldr r0, [r2, #0x30] @@ -327,8 +327,8 @@ sub_08089A7C: @ 0x08089A7C str r0, [r2, #0x30] b _08089AD0 .align 2, 0 -_08089AB0: .4byte gLinkEntity -_08089AB4: .4byte gLinkState +_08089AB0: .4byte gPlayerEntity +_08089AB4: .4byte gPlayerState _08089AB8: movs r2, #1 strb r2, [r4, #0xc] @@ -355,17 +355,17 @@ _08089AD0: thumb_func_start sub_08089AE0 sub_08089AE0: @ 0x08089AE0 push {lr} - ldr r1, _08089AF8 @ =gLinkEntity + ldr r1, _08089AF8 @ =gPlayerEntity movs r2, #0xf movs r3, #0xf bl sub_080041A0 cmp r0, #0 beq _08089AF6 - ldr r1, _08089AFC @ =gLinkState + ldr r1, _08089AFC @ =gPlayerState movs r0, #1 strb r0, [r1, #0x14] _08089AF6: pop {pc} .align 2, 0 -_08089AF8: .4byte gLinkEntity -_08089AFC: .4byte gLinkState +_08089AF8: .4byte gPlayerEntity +_08089AFC: .4byte gPlayerState diff --git a/asm/object35.s b/asm/object35.s index 903fe6a1..f99aae2c 100644 --- a/asm/object35.s +++ b/asm/object35.s @@ -104,7 +104,7 @@ sub_0808B910: @ 0x0808B910 adds r1, r1, r2 ldr r1, [r1] bl _call_via_r1 - ldr r2, _0808B930 @ =gLinkState + ldr r2, _0808B930 @ =gPlayerState ldrb r1, [r2, #0x1a] movs r0, #0x80 orrs r0, r1 @@ -112,7 +112,7 @@ sub_0808B910: @ 0x0808B910 pop {pc} .align 2, 0 _0808B92C: .4byte gUnk_081213DC -_0808B930: .4byte gLinkState +_0808B930: .4byte gPlayerState thumb_func_start sub_0808B934 sub_0808B934: @ 0x0808B934 diff --git a/asm/object36.s b/asm/object36.s index 4b9680e4..96185a8e 100644 --- a/asm/object36.s +++ b/asm/object36.s @@ -83,7 +83,7 @@ _0808BB4C: str r0, [r4, #0x48] movs r0, #2 strb r0, [r4, #0x1e] - ldr r0, _0808BBDC @ =gLinkEntity + ldr r0, _0808BBDC @ =gPlayerEntity adds r0, #0x38 ldrb r1, [r0] adds r0, r4, #0 @@ -104,7 +104,7 @@ _0808BBD4: pop {r4, pc} .align 2, 0 _0808BBD8: .4byte gUnk_080FD150 -_0808BBDC: .4byte gLinkEntity +_0808BBDC: .4byte gPlayerEntity thumb_func_start sub_0808BBE0 sub_0808BBE0: @ 0x0808BBE0 @@ -283,7 +283,7 @@ _0808BD34: ldrb r0, [r0] cmp r0, #0x93 bne _0808BD74 - ldr r4, _0808BD70 @ =gLinkEntity + ldr r4, _0808BD70 @ =gPlayerEntity adds r0, r5, #0 adds r1, r4, #0 bl GetFacingDirection @@ -304,7 +304,7 @@ _0808BD34: bl sub_0808BD00 b _0808BDAE .align 2, 0 -_0808BD70: .4byte gLinkEntity +_0808BD70: .4byte gPlayerEntity _0808BD74: ldrb r1, [r5, #0x10] movs r0, #0x80 diff --git a/asm/object37.s b/asm/object37.s index dae8eb8b..1cbfc628 100644 --- a/asm/object37.s +++ b/asm/object37.s @@ -67,7 +67,7 @@ sub_0808BE2C: @ 0x0808BE2C adds r1, r0, #0 cmp r1, #0 beq _0808BE6C - ldr r0, _0808BE80 @ =gLinkEntity + ldr r0, _0808BE80 @ =gPlayerEntity ldrb r0, [r0, #0x14] lsls r0, r0, #2 strb r0, [r1, #0x15] @@ -85,4 +85,4 @@ _0808BE74: .align 2, 0 _0808BE78: .4byte gUnk_02002A40 _0808BE7C: .4byte 0x0000024E -_0808BE80: .4byte gLinkEntity +_0808BE80: .4byte gPlayerEntity diff --git a/asm/object4.s b/asm/object4.s index f31f61f7..206d5222 100644 --- a/asm/object4.s +++ b/asm/object4.s @@ -57,7 +57,7 @@ sub_08082058: @ 0x08082058 sub_08082098: @ 0x08082098 push {r4, r5, r6, r7, lr} adds r4, r0, #0 - ldr r0, _08082100 @ =gLinkState + ldr r0, _08082100 @ =gPlayerState ldr r0, [r0, #0x30] movs r1, #0x80 ands r0, r1 @@ -65,7 +65,7 @@ sub_08082098: @ 0x08082098 bne _080820AC bl DeleteThisEntity _080820AC: - ldr r5, _08082104 @ =gLinkEntity + ldr r5, _08082104 @ =gPlayerEntity adds r0, r4, #0 bl sub_08079BD8 ldrb r1, [r4, #0x1b] @@ -106,8 +106,8 @@ _080820AC: beq _0808212A b _0808212E .align 2, 0 -_08082100: .4byte gLinkState -_08082104: .4byte gLinkEntity +_08082100: .4byte gPlayerState +_08082104: .4byte gPlayerEntity _08082108: cmp r0, #0x16 beq _08082112 @@ -142,7 +142,7 @@ _0808212E: adds r3, #8 b _080821EE _0808213E: - ldr r2, _0808215C @ =gLinkState + ldr r2, _0808215C @ =gPlayerState ldrb r1, [r2, #2] adds r6, r1, #0 cmp r6, #0 @@ -157,7 +157,7 @@ _0808213E: adds r3, #0x19 b _080821F2 .align 2, 0 -_0808215C: .4byte gLinkState +_0808215C: .4byte gPlayerState _08082160: adds r0, r2, #0 adds r0, #0xa8 diff --git a/asm/object42.s b/asm/object42.s index e56c0e75..eef40f49 100644 --- a/asm/object42.s +++ b/asm/object42.s @@ -86,7 +86,7 @@ _0808DE04: ldrb r0, [r5, #0xf] cmp r0, #0x1e bhi _0808DE1C - ldr r0, _0808DE8C @ =gLinkState + ldr r0, _0808DE8C @ =gPlayerState ldr r0, [r0, #0x30] ldr r1, _0808DE90 @ =0x00001810 ands r0, r1 @@ -96,14 +96,14 @@ _0808DE04: cmp r0, #0 bne _0808DE2A _0808DE1C: - ldr r0, _0808DE8C @ =gLinkState + ldr r0, _0808DE8C @ =gPlayerState ldr r1, [r0, #0x30] ldr r2, _0808DE94 @ =0xFFFFFBFF ands r1, r2 str r1, [r0, #0x30] bl DeleteThisEntity _0808DE2A: - ldr r3, _0808DE98 @ =gLinkEntity + ldr r3, _0808DE98 @ =gPlayerEntity ldr r1, _0808DE9C @ =gUnk_081217B8 ldrb r0, [r3, #0x14] lsrs r0, r0, #1 @@ -141,7 +141,7 @@ _0808DE2A: ands r1, r2 orrs r1, r0 strb r1, [r5, #0x1b] - ldr r0, _0808DE8C @ =gLinkState + ldr r0, _0808DE8C @ =gPlayerState ldr r0, [r0, #0x30] movs r1, #0x80 lsls r1, r1, #3 @@ -152,15 +152,15 @@ _0808DE2A: bl GetNextFrame b _0808DEA4 .align 2, 0 -_0808DE8C: .4byte gLinkState +_0808DE8C: .4byte gPlayerState _0808DE90: .4byte 0x00001810 _0808DE94: .4byte 0xFFFFFBFF -_0808DE98: .4byte gLinkEntity +_0808DE98: .4byte gPlayerEntity _0808DE9C: .4byte gUnk_081217B8 _0808DEA0: bl DeleteThisEntity _0808DEA4: - ldr r1, _0808DEC0 @ =gLinkEntity + ldr r1, _0808DEC0 @ =gPlayerEntity ldrb r0, [r1, #0x14] lsrs r0, r0, #1 cmp r0, #2 @@ -174,7 +174,7 @@ _0808DEA4: strh r0, [r5, #0x32] b _0808DECE .align 2, 0 -_0808DEC0: .4byte gLinkEntity +_0808DEC0: .4byte gPlayerEntity _0808DEC4: adds r0, r1, #0 movs r1, #0 diff --git a/asm/object43.s b/asm/object43.s index 57064728..a8cfb2a0 100644 --- a/asm/object43.s +++ b/asm/object43.s @@ -38,7 +38,7 @@ sub_0808DEE8: @ 0x0808DEE8 rsbs r0, r0, #0 ands r0, r1 strb r0, [r2] - ldr r3, _0808DF74 @ =gLinkEntity + ldr r3, _0808DF74 @ =gPlayerEntity ldrb r1, [r3, #0x1b] lsrs r1, r1, #6 lsls r1, r1, #6 @@ -92,7 +92,7 @@ sub_0808DEE8: @ 0x0808DEE8 strb r0, [r5, #0xe] b _0808DFAA .align 2, 0 -_0808DF74: .4byte gLinkEntity +_0808DF74: .4byte gPlayerEntity _0808DF78: ldrb r1, [r5, #0x18] movs r0, #4 @@ -101,7 +101,7 @@ _0808DF78: movs r1, #1 orrs r0, r1 strb r0, [r5, #0x18] - ldr r0, _0808DF9C @ =gLinkState + ldr r0, _0808DF9C @ =gPlayerState adds r0, #0xac ldrh r1, [r0] movs r0, #0x80 @@ -112,7 +112,7 @@ _0808DF78: movs r0, #0x28 b _0808DFA2 .align 2, 0 -_0808DF9C: .4byte gLinkState +_0808DF9C: .4byte gPlayerState _0808DFA0: movs r0, #0x50 _0808DFA2: @@ -129,7 +129,7 @@ sub_0808DFAC: @ 0x0808DFAC ldrb r0, [r4, #0xb] cmp r0, #0 beq _0808E00E - ldr r1, _0808DFF0 @ =gLinkState + ldr r1, _0808DFF0 @ =gPlayerState adds r0, r1, #0 adds r0, #0x21 ldrb r0, [r0] @@ -143,7 +143,7 @@ sub_0808DFAC: @ 0x0808DFAC _0808DFCC: bl DeleteThisEntity _0808DFD0: - ldr r0, _0808DFF0 @ =gLinkState + ldr r0, _0808DFF0 @ =gPlayerState adds r2, r0, #0 adds r2, #0x21 ldrb r0, [r2] @@ -160,7 +160,7 @@ _0808DFD0: ldr r7, _0808DFF4 @ =gUnk_081217D8 b _0808E038 .align 2, 0 -_0808DFF0: .4byte gLinkState +_0808DFF0: .4byte gPlayerState _0808DFF4: .4byte gUnk_081217D8 _0808DFF8: cmp r0, #0 @@ -175,7 +175,7 @@ _0808E008: bl DeleteThisEntity b _0808E038 _0808E00E: - ldr r5, _0808E02C @ =gLinkState + ldr r5, _0808E02C @ =gPlayerState ldrb r0, [r5, #4] cmp r0, #0 bne _0808E01A @@ -190,7 +190,7 @@ _0808E01A: ldr r7, _0808E030 @ =gUnk_081217D0 b _0808E038 .align 2, 0 -_0808E02C: .4byte gLinkState +_0808E02C: .4byte gPlayerState _0808E030: .4byte gUnk_081217D0 _0808E034: bl DeleteThisEntity @@ -210,7 +210,7 @@ _0808E03E: ldrb r0, [r4, #0xb] cmp r0, #0 bne _0808E068 - ldr r0, _0808E080 @ =gLinkState + ldr r0, _0808E080 @ =gPlayerState adds r0, #0xac ldrh r1, [r0] movs r0, #0x80 @@ -233,7 +233,7 @@ _0808E068: strh r0, [r5] b _0808E0E4 .align 2, 0 -_0808E080: .4byte gLinkState +_0808E080: .4byte gPlayerState _0808E084: adds r5, r4, #0 adds r5, #0x72 @@ -282,7 +282,7 @@ _0808E0DA: adds r5, r4, #0 adds r5, #0x6c _0808E0E4: - ldr r2, _0808E144 @ =gLinkEntity + ldr r2, _0808E144 @ =gPlayerEntity ldrb r1, [r2, #0x19] lsrs r1, r1, #6 lsls r1, r1, #6 @@ -331,7 +331,7 @@ _0808E136: b _0808E162 .align 2, 0 _0808E140: .4byte 0x00000115 -_0808E144: .4byte gLinkEntity +_0808E144: .4byte gPlayerEntity _0808E148: ldrh r0, [r5] ldrh r1, [r4, #0x2e] @@ -368,7 +368,7 @@ _0808E17A: ldrb r0, [r4, #0xb] cmp r0, #0 bne _0808E1BA - ldr r0, _0808E1AC @ =gLinkState + ldr r0, _0808E1AC @ =gPlayerState ldrb r1, [r0, #0x1b] movs r0, #0x40 ands r0, r1 @@ -387,7 +387,7 @@ _0808E17A: strb r0, [r4, #0xc] b _0808E1BA .align 2, 0 -_0808E1AC: .4byte gLinkState +_0808E1AC: .4byte gPlayerState _0808E1B0: bl DeleteThisEntity b _0808E1BA @@ -412,7 +412,7 @@ sub_0808E1BC: @ 0x0808E1BC movs r1, #1 orrs r0, r1 strb r0, [r4, #0x18] - ldr r0, _0808E204 @ =gLinkEntity + ldr r0, _0808E204 @ =gPlayerEntity ldrb r0, [r0, #0x14] strb r0, [r4, #0x14] adds r0, r4, #0 @@ -433,7 +433,7 @@ sub_0808E1BC: @ 0x0808E1BC bl InitializeAnimation pop {r4, pc} .align 2, 0 -_0808E204: .4byte gLinkEntity +_0808E204: .4byte gPlayerEntity thumb_func_start sub_0808E208 sub_0808E208: @ 0x0808E208 @@ -442,7 +442,7 @@ sub_0808E208: @ 0x0808E208 bl sub_08079BD8 adds r0, r4, #0 bl GetNextFrame - ldr r0, _0808E240 @ =gLinkState + ldr r0, _0808E240 @ =gPlayerState ldrb r0, [r0, #0x1b] cmp r0, #0 beq _0808E248 @@ -463,7 +463,7 @@ sub_0808E208: @ 0x0808E208 strb r0, [r4, #0x1a] b _0808E24C .align 2, 0 -_0808E240: .4byte gLinkState +_0808E240: .4byte gPlayerState _0808E244: .4byte gScreenTransition _0808E248: bl DeleteThisEntity diff --git a/asm/object5A.s b/asm/object5A.s index 9a35cf11..9bc22d68 100644 --- a/asm/object5A.s +++ b/asm/object5A.s @@ -179,7 +179,7 @@ sub_08092850: @ 0x08092850 ldrb r0, [r2, #0xa] cmp r0, #0 bne _08092888 - ldr r3, _08092878 @ =gLinkEntity + ldr r3, _08092878 @ =gPlayerEntity movs r0, #0x32 ldrsh r1, [r3, r0] movs r4, #0x32 @@ -196,7 +196,7 @@ _0809286E: movs r0, #0x40 b _08092884 .align 2, 0 -_08092878: .4byte gLinkEntity +_08092878: .4byte gPlayerEntity _0809287C: ldrb r0, [r2, #0x19] movs r1, #0x3f diff --git a/asm/object6.s b/asm/object6.s index ca837853..35e27958 100644 --- a/asm/object6.s +++ b/asm/object6.s @@ -60,7 +60,7 @@ sub_0808292C: @ 0x0808292C movs r1, #6 orrs r0, r1 strb r0, [r4, #0x11] - ldr r5, _080829C8 @ =gLinkEntity + ldr r5, _080829C8 @ =gPlayerEntity ldrb r1, [r5, #0x19] lsrs r1, r1, #6 lsls r1, r1, #6 @@ -127,7 +127,7 @@ _080829A4: bl PlaySFX b _080829E2 .align 2, 0 -_080829C8: .4byte gLinkEntity +_080829C8: .4byte gPlayerEntity _080829CC: movs r0, #0 strb r0, [r4, #0xe] @@ -146,7 +146,7 @@ _080829E2: sub_080829E4: @ 0x080829E4 push {r4, r5, lr} adds r5, r0, #0 - ldr r0, _08082A10 @ =gLinkEntity + ldr r0, _08082A10 @ =gPlayerEntity ldrb r1, [r0, #0x1a] lsls r1, r1, #0x1c lsrs r1, r1, #0x1c @@ -166,7 +166,7 @@ sub_080829E4: @ 0x080829E4 bl DeleteEntity b _08082AB4 .align 2, 0 -_08082A10: .4byte gLinkEntity +_08082A10: .4byte gPlayerEntity _08082A14: .4byte gTextBox _08082A18: cmp r1, #5 @@ -256,7 +256,7 @@ _08082AB4: sub_08082AB8: @ 0x08082AB8 push {r4, r5, lr} adds r4, r0, #0 - ldr r0, _08082B10 @ =gLinkState + ldr r0, _08082B10 @ =gPlayerState ldr r0, [r0, #0x30] movs r5, #0x80 ands r0, r5 @@ -297,7 +297,7 @@ _08082ACC: str r1, [r4, #0x50] b _08082B18 .align 2, 0 -_08082B10: .4byte gLinkState +_08082B10: .4byte gPlayerState _08082B14: ldr r0, [r4, #0x50] str r0, [r1, #0x50] @@ -379,7 +379,7 @@ sub_08082B9C: @ 0x08082B9C movs r1, #2 orrs r0, r1 strb r0, [r6, #0x11] - ldr r5, _08082C34 @ =gLinkEntity + ldr r5, _08082C34 @ =gPlayerEntity ldrb r0, [r5, #0x1a] lsls r0, r0, #0x1c lsrs r0, r0, #0x1c @@ -442,7 +442,7 @@ _08082C2C: bl sub_08082C5C pop {r4, r5, r6, pc} .align 2, 0 -_08082C34: .4byte gLinkEntity +_08082C34: .4byte gPlayerEntity thumb_func_start sub_08082C38 sub_08082C38: @ 0x08082C38 diff --git a/asm/object61.s b/asm/object61.s index d68b2a69..48b66188 100644 --- a/asm/object61.s +++ b/asm/object61.s @@ -11,7 +11,7 @@ Object61: @ 0x08093428 push {r4, lr} adds r4, r0, #0 - ldr r0, _0809345C @ =gLinkState + ldr r0, _0809345C @ =gPlayerState ldr r0, [r0, #0x30] movs r1, #0x80 lsls r1, r1, #0x11 @@ -22,7 +22,7 @@ Object61: @ 0x08093428 cmp r0, #0 bne _08093446 ldr r1, _08093460 @ =gRoomControls - ldr r0, _08093464 @ =gLinkEntity + ldr r0, _08093464 @ =gPlayerEntity str r0, [r1, #0x30] _08093446: bl DeleteThisEntity @@ -36,9 +36,9 @@ _0809344A: bl _call_via_r1 pop {r4, pc} .align 2, 0 -_0809345C: .4byte gLinkState +_0809345C: .4byte gPlayerState _08093460: .4byte gRoomControls -_08093464: .4byte gLinkEntity +_08093464: .4byte gPlayerEntity _08093468: .4byte gUnk_081228C8 thumb_func_start sub_0809346C @@ -49,7 +49,7 @@ sub_0809346C: @ 0x0809346C strb r0, [r4, #0xc] movs r0, #0xff strb r0, [r4, #0x1f] - ldr r0, _080934C0 @ =gLinkEntity + ldr r0, _080934C0 @ =gPlayerEntity ldrb r1, [r0, #0x1a] lsls r1, r1, #0x1c lsrs r1, r1, #0x1c @@ -85,7 +85,7 @@ _080934B8: bl sub_080934C8 pop {r4, pc} .align 2, 0 -_080934C0: .4byte gLinkEntity +_080934C0: .4byte gPlayerEntity _080934C4: .4byte gRoomControls thumb_func_start sub_080934C8 @@ -115,7 +115,7 @@ sub_080934E0: @ 0x080934E0 rsbs r0, r1, #0 strh r0, [r4] _080934F6: - ldr r0, _08093518 @ =gLinkEntity + ldr r0, _08093518 @ =gPlayerEntity ldrb r0, [r0, #0xd] cmp r0, #2 beq _0809351C @@ -132,7 +132,7 @@ _080934F6: adds r7, r1, #0 b _080935BE .align 2, 0 -_08093518: .4byte gLinkEntity +_08093518: .4byte gPlayerEntity _0809351C: ldrb r2, [r5, #0xf] adds r0, r2, #0 @@ -222,7 +222,7 @@ _080935BA: adds r7, r5, #0 adds r7, #0x72 _080935BE: - ldr r0, _080935E4 @ =gLinkEntity + ldr r0, _080935E4 @ =gPlayerEntity ldrb r1, [r0, #0x14] movs r0, #2 ands r0, r1 @@ -241,7 +241,7 @@ _080935BE: strh r0, [r6] b _080935EA .align 2, 0 -_080935E4: .4byte gLinkEntity +_080935E4: .4byte gPlayerEntity _080935E8: strb r0, [r5, #0x1e] _080935EA: @@ -255,7 +255,7 @@ _080935EA: adds r0, r5, #0 bl sub_080042D0 _080935FE: - ldr r4, _0809364C @ =gLinkEntity + ldr r4, _0809364C @ =gPlayerEntity adds r0, r4, #0 adds r1, r5, #0 bl CopyPosition @@ -291,13 +291,13 @@ _080935FE: bl sub_0806FEBC pop {r4, r5, r6, r7, pc} .align 2, 0 -_0809364C: .4byte gLinkEntity +_0809364C: .4byte gPlayerEntity thumb_func_start sub_08093650 sub_08093650: @ 0x08093650 push {r4, r5, lr} adds r4, r0, #0 - ldr r5, _080936C4 @ =gLinkEntity + ldr r5, _080936C4 @ =gPlayerEntity ldrb r0, [r5, #0x15] lsrs r1, r0, #1 adds r0, r0, r1 @@ -350,13 +350,13 @@ _08093674: bl sub_0806FEBC pop {r4, r5, pc} .align 2, 0 -_080936C4: .4byte gLinkEntity +_080936C4: .4byte gPlayerEntity thumb_func_start sub_080936C8 sub_080936C8: @ 0x080936C8 push {r4, r5, lr} adds r4, r0, #0 - ldr r0, _08093714 @ =gLinkEntity + ldr r0, _08093714 @ =gPlayerEntity ldr r0, [r0, #0x7c] lsrs r2, r0, #2 movs r3, #0x9c @@ -391,7 +391,7 @@ sub_080936C8: @ 0x080936C8 strh r0, [r1] b _0809375C .align 2, 0 -_08093714: .4byte gLinkEntity +_08093714: .4byte gPlayerEntity _08093718: adds r0, r3, #1 strb r0, [r4, #0xe] diff --git a/asm/object64.s b/asm/object64.s index 26fe67f0..d6abbcb9 100644 --- a/asm/object64.s +++ b/asm/object64.s @@ -187,7 +187,7 @@ _08093F72: cmp r0, #0 beq _08093FB0 ldr r1, [r5, #0x50] - ldr r0, _08093F94 @ =gLinkEntity + ldr r0, _08093F94 @ =gPlayerEntity cmp r1, r0 bne _08093F8E movs r0, #0x7a @@ -197,7 +197,7 @@ _08093F8E: bl DeleteThisEntity b _08093FB0 .align 2, 0 -_08093F94: .4byte gLinkEntity +_08093F94: .4byte gPlayerEntity _08093F98: adds r0, r5, #0 bl GetNextFrame diff --git a/asm/object67.s b/asm/object67.s index 30131c09..6f1acd48 100644 --- a/asm/object67.s +++ b/asm/object67.s @@ -61,7 +61,7 @@ _08094180: cmp r0, r1 bne _08094198 ldr r1, _080941A0 @ =gRoomControls - ldr r0, _080941A4 @ =gLinkEntity + ldr r0, _080941A4 @ =gPlayerEntity str r0, [r1, #0x30] bl DeleteThisEntity _08094198: @@ -69,7 +69,7 @@ _08094198: b _08094394 .align 2, 0 _080941A0: .4byte gRoomControls -_080941A4: .4byte gLinkEntity +_080941A4: .4byte gPlayerEntity _080941A8: ldr r1, _08094228 @ =gUnk_081229D0 ldrb r0, [r4, #0xb] diff --git a/asm/object68.s b/asm/object68.s index dbd14919..795b73d1 100644 --- a/asm/object68.s +++ b/asm/object68.s @@ -57,7 +57,7 @@ _080947B8: str r6, [r5, #0x54] cmp r6, #0 beq _080947EE - ldr r0, _0809480C @ =gLinkEntity + ldr r0, _0809480C @ =gPlayerEntity ldr r4, _08094810 @ =gUnk_08122A18 ldrb r3, [r0, #0x14] movs r1, #6 @@ -88,7 +88,7 @@ _080947EE: bl sub_08094980 b _080948C6 .align 2, 0 -_0809480C: .4byte gLinkEntity +_0809480C: .4byte gPlayerEntity _08094810: .4byte gUnk_08122A18 _08094814: .4byte 0x00004032 _08094818: .4byte 0x00004033 @@ -103,7 +103,7 @@ _08094824: str r6, [r5, #0x54] cmp r6, #0 beq _0809485A - ldr r0, _08094898 @ =gLinkEntity + ldr r0, _08094898 @ =gPlayerEntity ldr r4, _0809489C @ =gUnk_08122A18 ldrb r3, [r0, #0x14] movs r1, #6 @@ -149,14 +149,14 @@ _0809485A: bl sub_08094980 b _080948CA .align 2, 0 -_08094898: .4byte gLinkEntity +_08094898: .4byte gPlayerEntity _0809489C: .4byte gUnk_08122A18 _080948A0: .4byte 0x0000403B _080948A4: .4byte 0x0000403C _080948A8: .4byte 0x00004061 _080948AC: .4byte 0x00004022 _080948B0: - ldr r0, _080948CC @ =gLinkEntity + ldr r0, _080948CC @ =gPlayerEntity movs r1, #0x60 movs r2, #0 bl sub_080A2A20 @@ -171,7 +171,7 @@ _080948C6: _080948CA: pop {r4, r5, r6, pc} .align 2, 0 -_080948CC: .4byte gLinkEntity +_080948CC: .4byte gPlayerEntity thumb_func_start sub_080948D0 sub_080948D0: @ 0x080948D0 diff --git a/asm/object6A.s b/asm/object6A.s index 92e359c4..938eb239 100644 --- a/asm/object6A.s +++ b/asm/object6A.s @@ -199,7 +199,7 @@ sub_08094B94: @ 0x08094B94 adds r4, r0, #0 cmp r4, #0 beq _08094BD2 - ldr r0, _08094BD4 @ =gLinkEntity + ldr r0, _08094BD4 @ =gPlayerEntity adds r1, r4, #0 bl CopyPosition ldr r0, _08094BD8 @ =0x0000FFD0 @@ -221,7 +221,7 @@ sub_08094B94: @ 0x08094B94 _08094BD2: pop {r4, pc} .align 2, 0 -_08094BD4: .4byte gLinkEntity +_08094BD4: .4byte gPlayerEntity _08094BD8: .4byte 0x0000FFD0 _08094BDC: .4byte gUnk_0800AEDC @@ -239,7 +239,7 @@ sub_08094BE0: @ 0x08094BE0 adds r4, r0, #0 cmp r4, #0 beq _08094C22 - ldr r0, _08094C28 @ =gLinkEntity + ldr r0, _08094C28 @ =gPlayerEntity adds r1, r4, #0 bl CopyPosition ldr r0, _08094C2C @ =0x0000FFF4 @@ -260,7 +260,7 @@ _08094C22: add sp, #4 pop {r4, pc} .align 2, 0 -_08094C28: .4byte gLinkEntity +_08094C28: .4byte gPlayerEntity _08094C2C: .4byte 0x0000FFF4 thumb_func_start sub_08094C30 @@ -773,7 +773,7 @@ _08094FF0: strb r0, [r4, #0xc] adds r0, r4, #0 bl sub_080788E0 - ldr r0, _08095020 @ =gLinkState + ldr r0, _08095020 @ =gPlayerState movs r1, #0xc strb r1, [r0, #0xc] adds r0, #0x38 @@ -783,7 +783,7 @@ _08094FF0: bl sub_08078A90 b _08095086 .align 2, 0 -_08095020: .4byte gLinkState +_08095020: .4byte gPlayerState _08095024: movs r0, #0x36 bl GetInventoryValue @@ -799,7 +799,7 @@ _08095024: strb r0, [r4, #0x18] b _08095086 _08095040: - ldr r0, _0809506C @ =gLinkEntity + ldr r0, _0809506C @ =gPlayerEntity ldrb r0, [r0, #0xc] cmp r0, #0xc beq _08095086 @@ -819,7 +819,7 @@ _08095040: strb r0, [r4, #0xe] b _08095086 .align 2, 0 -_0809506C: .4byte gLinkEntity +_0809506C: .4byte gPlayerEntity _08095070: ldrb r0, [r4, #0xe] subs r0, #1 @@ -2503,7 +2503,7 @@ sub_08095D54: @ 0x08095D54 adds r4, r0, #0 cmp r4, #0 beq _08095D86 - ldr r0, _08095D88 @ =gLinkEntity + ldr r0, _08095D88 @ =gPlayerEntity adds r1, r4, #0 bl CopyPosition adds r1, r4, #0 @@ -2519,7 +2519,7 @@ sub_08095D54: @ 0x08095D54 _08095D86: pop {r4, r5, pc} .align 2, 0 -_08095D88: .4byte gLinkEntity +_08095D88: .4byte gPlayerEntity thumb_func_start sub_08095D8C sub_08095D8C: @ 0x08095D8C @@ -2771,7 +2771,7 @@ _08095F68: _08095F6A: adds r0, r4, #0 bl sub_0801D2B4 - ldr r0, _08095F90 @ =gLinkEntity + ldr r0, _08095F90 @ =gPlayerEntity adds r0, #0x5a ldrb r1, [r0] movs r0, #1 @@ -2787,7 +2787,7 @@ _08095F6A: movs r0, #0xb5 b _08095FA6 .align 2, 0 -_08095F90: .4byte gLinkEntity +_08095F90: .4byte gPlayerEntity _08095F94: .4byte 0x000008BF _08095F98: adds r1, r4, #0 @@ -2799,7 +2799,7 @@ _08095F98: movs r0, #0xd6 _08095FA6: strb r0, [r4, #0xf] - ldr r0, _08096024 @ =gLinkEntity + ldr r0, _08096024 @ =gPlayerEntity adds r1, r4, #0 bl CopyPosition adds r2, r4, #0 @@ -2812,7 +2812,7 @@ _08095FA6: orrs r0, r1 strb r0, [r2] _08095FC2: - ldr r5, _08096024 @ =gLinkEntity + ldr r5, _08096024 @ =gPlayerEntity adds r2, r5, #0 adds r2, #0x5a ldrb r1, [r2] @@ -2844,7 +2844,7 @@ _08095FE0: _08095FFC: bl DeleteThisEntity _08096000: - ldr r0, _08096024 @ =gLinkEntity + ldr r0, _08096024 @ =gPlayerEntity ldrb r0, [r0, #0x1e] ldrb r1, [r4, #0xe] subs r0, r0, r1 @@ -2862,7 +2862,7 @@ _0809601E: pop {r4, r5, pc} .align 2, 0 _08096020: .4byte 0x000008E3 -_08096024: .4byte gLinkEntity +_08096024: .4byte gPlayerEntity thumb_func_start sub_08096028 sub_08096028: @ 0x08096028 diff --git a/asm/object70.s b/asm/object70.s index 6d4536c1..d391dc75 100644 --- a/asm/object70.s +++ b/asm/object70.s @@ -41,7 +41,7 @@ sub_08097438: @ 0x08097438 beq _080974A2 adds r0, r4, #0 bl sub_08004168 - ldr r1, _08097494 @ =gLinkEntity + ldr r1, _08097494 @ =gPlayerEntity ldrb r0, [r1, #0x1b] movs r2, #0xc0 orrs r0, r2 @@ -67,7 +67,7 @@ sub_08097438: @ 0x08097438 strb r0, [r3] b _080974A2 .align 2, 0 -_08097494: .4byte gLinkEntity +_08097494: .4byte gPlayerEntity _08097498: adds r1, r4, #0 adds r1, #0x29 @@ -84,11 +84,11 @@ sub_080974A4: @ 0x080974A4 ldrb r0, [r4, #0xa] cmp r0, #0 bne _08097554 - ldr r3, _08097540 @ =gLinkEntity + ldr r3, _08097540 @ =gPlayerEntity ldr r0, [r3, #0x34] cmp r0, #0 bne _080974E8 - ldr r2, _08097544 @ =gLinkState + ldr r2, _08097544 @ =gPlayerState ldrb r1, [r2, #0x1e] movs r0, #0x40 ands r0, r1 @@ -105,7 +105,7 @@ sub_080974A4: @ 0x080974A4 cmp r0, #4 beq _080974FA _080974D6: - ldr r1, _08097540 @ =gLinkEntity + ldr r1, _08097540 @ =gPlayerEntity ldr r0, [r1, #0x34] cmp r0, #0 bne _080974E8 @@ -114,7 +114,7 @@ _080974D6: movs r2, #0 bl CreateFx _080974E8: - ldr r2, _08097540 @ =gLinkEntity + ldr r2, _08097540 @ =gPlayerEntity ldrb r1, [r2, #0x1b] movs r0, #0x3f ands r0, r1 @@ -123,12 +123,12 @@ _080974E8: strb r0, [r2, #0x1b] bl DeleteThisEntity _080974FA: - ldr r2, _08097540 @ =gLinkEntity + ldr r2, _08097540 @ =gPlayerEntity ldr r0, [r2, #0x2c] str r0, [r4, #0x2c] ldr r0, [r2, #0x30] str r0, [r4, #0x30] - ldr r0, _08097544 @ =gLinkState + ldr r0, _08097544 @ =gPlayerState ldrb r0, [r0, #2] cmp r0, #0 bne _08097584 @@ -158,8 +158,8 @@ _080974FA: strb r0, [r3] b _08097584 .align 2, 0 -_08097540: .4byte gLinkEntity -_08097544: .4byte gLinkState +_08097540: .4byte gPlayerEntity +_08097544: .4byte gPlayerState _08097548: adds r1, r4, #0 adds r1, #0x29 @@ -168,7 +168,7 @@ _08097548: strb r0, [r1] b _08097584 _08097554: - ldr r2, _08097570 @ =gLinkEntity + ldr r2, _08097570 @ =gPlayerEntity ldrb r0, [r2, #0xc] cmp r0, #0x1e beq _08097584 @@ -183,7 +183,7 @@ _08097554: movs r0, #0x80 b _0809757C .align 2, 0 -_08097570: .4byte gLinkEntity +_08097570: .4byte gPlayerEntity _08097574: ldrb r0, [r2, #0x1b] movs r1, #0x3f diff --git a/asm/object79.s b/asm/object79.s index a01bb979..4906d890 100644 --- a/asm/object79.s +++ b/asm/object79.s @@ -11,7 +11,7 @@ Object79: @ 0x08097F84 push {r4, lr} adds r4, r0, #0 - ldr r0, _08097FAC @ =gLinkState + ldr r0, _08097FAC @ =gPlayerState ldr r0, [r0, #0x30] movs r1, #0x80 ands r0, r1 @@ -28,7 +28,7 @@ _08097F98: bl _call_via_r1 pop {r4, pc} .align 2, 0 -_08097FAC: .4byte gLinkState +_08097FAC: .4byte gPlayerState _08097FB0: .4byte gUnk_08123410 thumb_func_start sub_08097FB4 @@ -111,7 +111,7 @@ sub_0809803C: @ 0x0809803C ldrb r0, [r4, #0xb] cmp r0, #0 beq _08098082 - ldr r0, _0809806C @ =gLinkEntity + ldr r0, _0809806C @ =gPlayerEntity strb r5, [r0, #0xf] ldrb r0, [r4, #0xc] adds r0, #1 @@ -124,7 +124,7 @@ sub_0809803C: @ 0x0809803C bl PlaySFX b _08098082 .align 2, 0 -_0809806C: .4byte gLinkEntity +_0809806C: .4byte gPlayerEntity _08098070: ldr r2, [r4, #0x50] ldrb r1, [r4, #0xa] @@ -147,7 +147,7 @@ sub_08098084: @ 0x08098084 lsls r0, r0, #0xd cmp r1, r0 bls _080980A8 - ldr r0, _080980A4 @ =gLinkState + ldr r0, _080980A4 @ =gPlayerState ldr r1, [r0, #0x30] movs r2, #0x80 orrs r1, r2 @@ -155,7 +155,7 @@ sub_08098084: @ 0x08098084 bl DeleteThisEntity b _0809812E .align 2, 0 -_080980A4: .4byte gLinkState +_080980A4: .4byte gPlayerState _080980A8: ldrb r0, [r4, #0xa] cmp r0, #0 @@ -231,7 +231,7 @@ _0809812E: sub_08098130: @ 0x08098130 push {r4, lr} adds r4, r0, #0 - ldr r0, _08098160 @ =gLinkEntity + ldr r0, _08098160 @ =gPlayerEntity adds r1, r4, #0 bl CopyPosition adds r0, r4, #0 @@ -252,5 +252,5 @@ sub_08098130: @ 0x08098130 str r0, [r4, #0x30] pop {r4, pc} .align 2, 0 -_08098160: .4byte gLinkEntity +_08098160: .4byte gPlayerEntity _08098164: .4byte 0xFFEC0000 diff --git a/asm/object80.s b/asm/object80.s index 14d17bd5..1b158d68 100644 --- a/asm/object80.s +++ b/asm/object80.s @@ -120,13 +120,13 @@ sub_08098BE0: @ 0x08098BE0 sub_08098BE8: @ 0x08098BE8 push {r4, r5, r6, lr} adds r5, r0, #0 - ldr r6, _08098C28 @ =gLinkState + ldr r6, _08098C28 @ =gPlayerState ldr r0, [r6, #0x30] movs r1, #0x80 ands r0, r1 cmp r0, #0 beq _08098C26 - ldr r4, _08098C2C @ =gLinkEntity + ldr r4, _08098C2C @ =gPlayerEntity adds r0, r5, #0 adds r1, r4, #0 bl sub_08098C30 @@ -149,8 +149,8 @@ sub_08098BE8: @ 0x08098BE8 _08098C26: pop {r4, r5, r6, pc} .align 2, 0 -_08098C28: .4byte gLinkState -_08098C2C: .4byte gLinkEntity +_08098C28: .4byte gPlayerState +_08098C2C: .4byte gPlayerEntity thumb_func_start sub_08098C30 sub_08098C30: @ 0x08098C30 diff --git a/asm/object81.s b/asm/object81.s index 97108ec1..a057e7d1 100644 --- a/asm/object81.s +++ b/asm/object81.s @@ -47,7 +47,7 @@ sub_08098C80: @ 0x08098C80 adds r0, r4, #0 adds r0, #0x80 strh r1, [r0] - ldr r0, _08098CCC @ =gLinkState + ldr r0, _08098CCC @ =gPlayerState ldr r0, [r0, #0x30] movs r1, #0x80 ands r0, r1 @@ -60,7 +60,7 @@ sub_08098C80: @ 0x08098C80 b _08098CD6 .align 2, 0 _08098CC8: .4byte gRoomControls -_08098CCC: .4byte gLinkState +_08098CCC: .4byte gPlayerState _08098CD0: adds r0, r4, #0 adds r0, #0x38 diff --git a/asm/object87.s b/asm/object87.s index 0cd40793..d90353d1 100644 --- a/asm/object87.s +++ b/asm/object87.s @@ -912,7 +912,7 @@ _0809A616: cmp r0, r1 bne _0809A632 ldr r1, _0809A640 @ =gRoomControls - ldr r0, _0809A644 @ =gLinkEntity + ldr r0, _0809A644 @ =gPlayerEntity str r0, [r1, #0x30] bl DeleteThisEntity _0809A632: @@ -924,7 +924,7 @@ _0809A632: pop {r4, r5, r6, r7, pc} .align 2, 0 _0809A640: .4byte gRoomControls -_0809A644: .4byte gLinkEntity +_0809A644: .4byte gPlayerEntity thumb_func_start sub_0809A648 sub_0809A648: @ 0x0809A648 diff --git a/asm/object89.s b/asm/object89.s index 0e67239c..5e3c18a6 100644 --- a/asm/object89.s +++ b/asm/object89.s @@ -330,9 +330,9 @@ _0809AD3A: cmp r0, #0 bne _0809AD58 ldr r1, _0809AD5C @ =gRoomControls - ldr r0, _0809AD60 @ =gLinkEntity + ldr r0, _0809AD60 @ =gPlayerEntity str r0, [r1, #0x30] - ldr r0, _0809AD64 @ =gLinkState + ldr r0, _0809AD64 @ =gPlayerState adds r0, #0x8b movs r1, #1 strb r1, [r0] @@ -341,8 +341,8 @@ _0809AD58: pop {r4, pc} .align 2, 0 _0809AD5C: .4byte gRoomControls -_0809AD60: .4byte gLinkEntity -_0809AD64: .4byte gLinkState +_0809AD60: .4byte gPlayerEntity +_0809AD64: .4byte gPlayerState thumb_func_start sub_0809AD68 sub_0809AD68: @ 0x0809AD68 diff --git a/asm/object8B.s b/asm/object8B.s index a81bd48e..5f7a52d7 100644 --- a/asm/object8B.s +++ b/asm/object8B.s @@ -394,7 +394,7 @@ _0809B270: sub_0809B274: @ 0x0809B274 push {r4, r5, lr} adds r4, r0, #0 - ldr r3, _0809B290 @ =gLinkEntity + ldr r3, _0809B290 @ =gPlayerEntity adds r2, r4, #0 adds r2, #0x84 ldrb r0, [r2] @@ -406,7 +406,7 @@ sub_0809B274: @ 0x0809B274 beq _0809B29A b _0809B332 .align 2, 0 -_0809B290: .4byte gLinkEntity +_0809B290: .4byte gPlayerEntity _0809B294: cmp r0, #2 beq _0809B30C diff --git a/asm/object8E.s b/asm/object8E.s index 0ab1f65e..063c12a4 100644 --- a/asm/object8E.s +++ b/asm/object8E.s @@ -47,7 +47,7 @@ _0809B878: ldr r0, _0809B8BC @ =gRoomControls str r4, [r0, #0x30] strb r1, [r0, #0xe] - ldr r5, _0809B8C0 @ =gLinkEntity + ldr r5, _0809B8C0 @ =gPlayerEntity movs r0, #0x2e ldrsh r1, [r4, r0] movs r2, #0x2e @@ -76,7 +76,7 @@ _0809B89A: b _0809B972 .align 2, 0 _0809B8BC: .4byte gRoomControls -_0809B8C0: .4byte gLinkEntity +_0809B8C0: .4byte gPlayerEntity _0809B8C4: .4byte gScreen _0809B8C8: .4byte 0x0000BFFF _0809B8CC: @@ -126,7 +126,7 @@ _0809B914: ands r0, r1 strh r0, [r2] ldr r1, _0809B940 @ =gRoomControls - ldr r0, _0809B944 @ =gLinkEntity + ldr r0, _0809B944 @ =gPlayerEntity str r0, [r1, #0x30] movs r0, #0x9a lsls r0, r0, #1 @@ -136,7 +136,7 @@ _0809B914: _0809B938: .4byte gScreen _0809B93C: .4byte 0x0000DFFF _0809B940: .4byte gRoomControls -_0809B944: .4byte gLinkEntity +_0809B944: .4byte gPlayerEntity _0809B948: ldrb r0, [r4, #0xe] subs r0, #1 @@ -229,7 +229,7 @@ _0809B9DC: ldr r0, _0809BA24 @ =gRoomControls str r4, [r0, #0x30] strb r1, [r0, #0xe] - ldr r3, _0809BA28 @ =gLinkEntity + ldr r3, _0809BA28 @ =gPlayerEntity movs r0, #0x2e ldrsh r1, [r4, r0] movs r2, #0x2e @@ -259,7 +259,7 @@ _0809BA00: b _0809BAC2 .align 2, 0 _0809BA24: .4byte gRoomControls -_0809BA28: .4byte gLinkEntity +_0809BA28: .4byte gPlayerEntity _0809BA2C: .4byte gScreen _0809BA30: .4byte 0x0000BFFF _0809BA34: @@ -304,7 +304,7 @@ _0809BA7C: movs r0, #0x3c strb r0, [r4, #0xe] ldr r1, _0809BA94 @ =gRoomControls - ldr r0, _0809BA98 @ =gLinkEntity + ldr r0, _0809BA98 @ =gPlayerEntity str r0, [r1, #0x30] movs r0, #0x9a lsls r0, r0, #1 @@ -312,7 +312,7 @@ _0809BA7C: b _0809BAC2 .align 2, 0 _0809BA94: .4byte gRoomControls -_0809BA98: .4byte gLinkEntity +_0809BA98: .4byte gPlayerEntity _0809BA9C: ldrb r0, [r4, #0xe] subs r0, #1 @@ -375,7 +375,7 @@ _0809BB04: str r4, [r1, #0x30] movs r0, #1 strb r0, [r1, #0xe] - ldr r3, _0809BB44 @ =gLinkEntity + ldr r3, _0809BB44 @ =gPlayerEntity movs r0, #0x2e ldrsh r1, [r4, r0] movs r2, #0x2e @@ -397,7 +397,7 @@ _0809BB2C: b _0809BC68 .align 2, 0 _0809BB40: .4byte gRoomControls -_0809BB44: .4byte gLinkEntity +_0809BB44: .4byte gPlayerEntity _0809BB48: .4byte gScreen _0809BB4C: adds r0, r4, #0 @@ -513,14 +513,14 @@ _0809BC24: movs r0, #4 strb r0, [r4, #0xc] ldr r1, _0809BC40 @ =gRoomControls - ldr r0, _0809BC44 @ =gLinkEntity + ldr r0, _0809BC44 @ =gPlayerEntity str r0, [r1, #0x30] movs r0, #2 strb r0, [r1, #0xe] b _0809BC68 .align 2, 0 _0809BC40: .4byte gRoomControls -_0809BC44: .4byte gLinkEntity +_0809BC44: .4byte gPlayerEntity _0809BC48: adds r0, r4, #0 bl sub_0809BE78 @@ -569,7 +569,7 @@ _0809BC92: ldr r0, _0809BCCC @ =gRoomControls str r4, [r0, #0x30] strb r1, [r0, #0xe] - ldr r3, _0809BCD0 @ =gLinkEntity + ldr r3, _0809BCD0 @ =gPlayerEntity movs r0, #0x2e ldrsh r1, [r4, r0] movs r2, #0x2e @@ -593,7 +593,7 @@ _0809BCB4: b _0809BDAE .align 2, 0 _0809BCCC: .4byte gRoomControls -_0809BCD0: .4byte gLinkEntity +_0809BCD0: .4byte gPlayerEntity _0809BCD4: .4byte gScreen _0809BCD8: .4byte 0x000080F0 _0809BCDC: @@ -724,7 +724,7 @@ _0809BDD0: ldr r0, _0809BDF8 @ =gRoomControls str r4, [r0, #0x30] strb r1, [r0, #0xe] - ldr r3, _0809BDFC @ =gLinkEntity + ldr r3, _0809BDFC @ =gPlayerEntity movs r0, #0x2e ldrsh r1, [r4, r0] movs r2, #0x2e @@ -738,7 +738,7 @@ _0809BDF4: b _0809BE70 .align 2, 0 _0809BDF8: .4byte gRoomControls -_0809BDFC: .4byte gLinkEntity +_0809BDFC: .4byte gPlayerEntity _0809BE00: ldrb r0, [r4, #0xe] cmp r0, #0 @@ -771,7 +771,7 @@ _0809BE34: movs r0, #0x3c strb r0, [r4, #0xe] ldr r1, _0809BE4C @ =gRoomControls - ldr r0, _0809BE50 @ =gLinkEntity + ldr r0, _0809BE50 @ =gPlayerEntity str r0, [r1, #0x30] movs r0, #0x9a lsls r0, r0, #1 @@ -779,7 +779,7 @@ _0809BE34: b _0809BE70 .align 2, 0 _0809BE4C: .4byte gRoomControls -_0809BE50: .4byte gLinkEntity +_0809BE50: .4byte gPlayerEntity _0809BE54: ldrb r0, [r4, #0xe] subs r0, #1 diff --git a/asm/object9.s b/asm/object9.s index d9c167c4..210c0dea 100644 --- a/asm/object9.s +++ b/asm/object9.s @@ -11,7 +11,7 @@ Object9: @ 0x0808386C push {r4, lr} adds r4, r0, #0 - ldr r0, _080838C8 @ =gLinkState + ldr r0, _080838C8 @ =gPlayerState adds r0, #0x27 ldrb r1, [r0] rsbs r0, r1, #0 @@ -57,7 +57,7 @@ _080838B6: bl _call_via_r1 pop {r4, pc} .align 2, 0 -_080838C8: .4byte gLinkState +_080838C8: .4byte gPlayerState _080838CC: .4byte gUnk_02022740 _080838D0: .4byte gTextBox _080838D4: .4byte gUnk_03003DF0 @@ -264,7 +264,7 @@ sub_08083A40: @ 0x08083A40 movs r0, #2 strb r0, [r4, #0xc] ldr r0, [r4, #0x54] - ldr r1, _08083A70 @ =gLinkEntity + ldr r1, _08083A70 @ =gPlayerEntity movs r3, #0x2e ldrsh r2, [r0, r3] movs r3, #0x2e @@ -277,7 +277,7 @@ sub_08083A40: @ 0x08083A40 movs r0, #8 b _08083A7C .align 2, 0 -_08083A70: .4byte gLinkEntity +_08083A70: .4byte gPlayerEntity _08083A74: movs r1, #1 adds r2, r4, #0 diff --git a/asm/object91.s b/asm/object91.s index e2e8dac9..faa013cd 100644 --- a/asm/object91.s +++ b/asm/object91.s @@ -945,7 +945,7 @@ sub_0809CAC8: @ 0x0809CAC8 bge _0809CB26 movs r0, #4 strb r0, [r2, #0xe] - ldr r0, _0809CB40 @ =gLinkEntity + ldr r0, _0809CB40 @ =gPlayerEntity str r0, [r2, #0x30] movs r0, #0x9b bl SetLocalFlag @@ -983,7 +983,7 @@ _0809CB38: pop {r4, r5, pc} .align 2, 0 _0809CB3C: .4byte gRoomControls -_0809CB40: .4byte gLinkEntity +_0809CB40: .4byte gPlayerEntity _0809CB44: .4byte gScreenTransition _0809CB48: .4byte 0x00000163 diff --git a/asm/object96.s b/asm/object96.s index be3b6f07..5bf36641 100644 --- a/asm/object96.s +++ b/asm/object96.s @@ -64,7 +64,7 @@ sub_0809D7A8: @ 0x0809D7A8 cmp r0, #0x81 bne _0809D80C bl Random - ldr r1, _0809D820 @ =gLinkEntity + ldr r1, _0809D820 @ =gPlayerEntity ldrb r1, [r1, #0x14] lsls r1, r1, #2 movs r2, #3 @@ -85,7 +85,7 @@ _0809D80C: strb r4, [r5, #0xa] pop {r4, r5, pc} .align 2, 0 -_0809D820: .4byte gLinkEntity +_0809D820: .4byte gPlayerEntity thumb_func_start sub_0809D824 sub_0809D824: @ 0x0809D824 @@ -144,7 +144,7 @@ _0809D888: ldrb r0, [r5, #0xc] adds r0, #1 strb r0, [r5, #0xc] - ldr r0, _0809D8C4 @ =gLinkEntity + ldr r0, _0809D8C4 @ =gPlayerEntity adds r0, #0x38 ldrb r1, [r0] adds r0, r5, #0 @@ -169,14 +169,14 @@ _0809D8B2: strb r4, [r5, #0xa] pop {r4, r5, r6, pc} .align 2, 0 -_0809D8C4: .4byte gLinkEntity +_0809D8C4: .4byte gPlayerEntity thumb_func_start sub_0809D8C8 sub_0809D8C8: @ 0x0809D8C8 push {r4, r5, r6, lr} adds r5, r0, #0 adds r6, r1, #0 - ldr r0, _0809D8E4 @ =gLinkState + ldr r0, _0809D8E4 @ =gPlayerState ldr r0, [r0, #0x30] movs r1, #0x80 ands r0, r1 @@ -186,7 +186,7 @@ sub_0809D8C8: @ 0x0809D8C8 bl sub_0800445C b _0809D90A .align 2, 0 -_0809D8E4: .4byte gLinkState +_0809D8E4: .4byte gPlayerState _0809D8E8: adds r0, r5, #0 bl sub_08017850 @@ -234,7 +234,7 @@ sub_0809D93C: @ 0x0809D93C push {r4, r5, lr} adds r4, r0, #0 adds r3, r1, #0 - ldr r2, _0809D9A0 @ =gLinkEntity + ldr r2, _0809D9A0 @ =gPlayerEntity ldrb r0, [r2, #0xc] cmp r0, #6 bne _0809D9A4 @@ -281,7 +281,7 @@ sub_0809D93C: @ 0x0809D93C movs r0, #1 b _0809D9A6 .align 2, 0 -_0809D9A0: .4byte gLinkEntity +_0809D9A0: .4byte gPlayerEntity _0809D9A4: movs r0, #0 _0809D9A6: diff --git a/asm/object97.s b/asm/object97.s index 0582a23e..0e88f13d 100644 --- a/asm/object97.s +++ b/asm/object97.s @@ -350,7 +350,7 @@ _0809DC3C: ldrb r0, [r4, #0xc] adds r0, #1 strb r0, [r4, #0xc] - ldr r0, _0809DC64 @ =gLinkEntity + ldr r0, _0809DC64 @ =gPlayerEntity adds r0, #0x38 ldrb r1, [r0] adds r0, r4, #0 @@ -366,7 +366,7 @@ _0809DC5A: bl sub_0809DB88 pop {r4, pc} .align 2, 0 -_0809DC64: .4byte gLinkEntity +_0809DC64: .4byte gPlayerEntity thumb_func_start sub_0809DC68 sub_0809DC68: @ 0x0809DC68 @@ -923,7 +923,7 @@ sub_0809E0A0: @ 0x0809E0A0 str r4, [r5, #0x54] movs r0, #0 strb r0, [r5, #0xf] - ldr r0, _0809E0CC @ =gLinkEntity + ldr r0, _0809E0CC @ =gPlayerEntity adds r1, r4, #0 bl CopyPosition ldr r0, _0809E0D0 @ =0x0000FFF8 @@ -931,7 +931,7 @@ sub_0809E0A0: @ 0x0809E0A0 _0809E0C8: pop {r4, r5, pc} .align 2, 0 -_0809E0CC: .4byte gLinkEntity +_0809E0CC: .4byte gPlayerEntity _0809E0D0: .4byte 0x0000FFF8 thumb_func_start sub_0809E0D4 @@ -956,7 +956,7 @@ sub_0809E0D4: @ 0x0809E0D4 .align 2, 0 _0809E0F8: .4byte gUnk_02033280 _0809E0FC: - ldr r1, _0809E124 @ =gLinkEntity + ldr r1, _0809E124 @ =gPlayerEntity _0809E0FE: ldrb r0, [r6, #0x18] adds r0, #1 @@ -975,7 +975,7 @@ _0809E0FE: strb r4, [r0, #6] b _0809E1BC .align 2, 0 -_0809E124: .4byte gLinkEntity +_0809E124: .4byte gPlayerEntity _0809E128: .4byte 0x00000123 _0809E12C: .4byte gUnk_02033280 _0809E130: @@ -1106,21 +1106,21 @@ _0809E208: sub_0809E210: @ 0x0809E210 push {r4, lr} adds r1, r0, #0 - ldr r4, _0809E230 @ =gLinkEntity + ldr r4, _0809E230 @ =gPlayerEntity adds r0, r4, #0 bl GetFacingDirection bl sub_0806F5B0 movs r1, #0xfe ands r0, r1 strb r0, [r4, #0x14] - ldr r1, _0809E234 @ =gLinkState + ldr r1, _0809E234 @ =gPlayerState movs r0, #0x80 lsls r0, r0, #1 strh r0, [r1, #8] pop {r4, pc} .align 2, 0 -_0809E230: .4byte gLinkEntity -_0809E234: .4byte gLinkState +_0809E230: .4byte gPlayerEntity +_0809E234: .4byte gPlayerState thumb_func_start sub_0809E238 sub_0809E238: @ 0x0809E238 @@ -1204,7 +1204,7 @@ sub_0809E2C4: @ 0x0809E2C4 lsls r1, r1, #2 ldr r0, _0809E328 @ =gUnk_08124178 adds r1, r1, r0 - ldr r3, _0809E32C @ =gLinkEntity + ldr r3, _0809E32C @ =gPlayerEntity movs r0, #0x2e ldrsh r5, [r3, r0] ldr r4, _0809E330 @ =gRoomControls @@ -1253,7 +1253,7 @@ _0809E2EE: b _0809E346 .align 2, 0 _0809E328: .4byte gUnk_08124178 -_0809E32C: .4byte gLinkEntity +_0809E32C: .4byte gPlayerEntity _0809E330: .4byte gRoomControls _0809E334: .4byte gUnk_08124158 _0809E338: diff --git a/asm/objectA8.s b/asm/objectA8.s index 2cb3b745..c4c396a8 100644 --- a/asm/objectA8.s +++ b/asm/objectA8.s @@ -138,7 +138,7 @@ sub_0809FB90: @ 0x0809FB90 sub_0809FBA4: @ 0x0809FBA4 push {lr} adds r2, r0, #0 - ldr r0, _0809FBC8 @ =gLinkState + ldr r0, _0809FBC8 @ =gPlayerState ldrb r1, [r0, #0x1c] movs r0, #0xf ands r0, r1 @@ -156,7 +156,7 @@ _0809FBC2: strb r0, [r2, #0xc] b _0809FBD2 .align 2, 0 -_0809FBC8: .4byte gLinkState +_0809FBC8: .4byte gPlayerState _0809FBCC: adds r0, r2, #0 bl sub_0806F4E8 @@ -167,7 +167,7 @@ _0809FBD2: sub_0809FBD4: @ 0x0809FBD4 push {r4, r5, lr} adds r4, r0, #0 - ldr r0, _0809FBFC @ =gLinkState + ldr r0, _0809FBFC @ =gPlayerState ldrb r1, [r0, #0x1c] movs r0, #0xf ands r0, r1 @@ -186,7 +186,7 @@ _0809FBF4: strb r0, [r4, #0xc] b _0809FC22 .align 2, 0 -_0809FBFC: .4byte gLinkState +_0809FBFC: .4byte gPlayerState _0809FC00: adds r0, r4, #0 bl sub_0806F3E4 @@ -198,7 +198,7 @@ _0809FC00: strb r0, [r4, #0x10] movs r0, #5 strb r0, [r4, #0xc] - ldr r0, _0809FC24 @ =gLinkEntity + ldr r0, _0809FC24 @ =gPlayerEntity str r0, [r4, #0x54] ldrb r0, [r4, #0xa] movs r1, #0 @@ -206,7 +206,7 @@ _0809FC00: _0809FC22: pop {r4, r5, pc} .align 2, 0 -_0809FC24: .4byte gLinkEntity +_0809FC24: .4byte gPlayerEntity thumb_func_start sub_0809FC28 sub_0809FC28: @ 0x0809FC28 @@ -338,7 +338,7 @@ _0809FD1C: ldrh r0, [r4, #0x36] subs r0, #1 strh r0, [r4, #0x36] - ldr r1, _0809FD48 @ =gLinkEntity + ldr r1, _0809FD48 @ =gPlayerEntity adds r0, r4, #0 bl sub_080177A0 cmp r0, #0 @@ -351,7 +351,7 @@ _0809FD1C: _0809FD44: pop {r4, pc} .align 2, 0 -_0809FD48: .4byte gLinkEntity +_0809FD48: .4byte gPlayerEntity thumb_func_start sub_0809FD4C sub_0809FD4C: @ 0x0809FD4C @@ -562,7 +562,7 @@ _0809FECA: thumb_func_start sub_0809FECC sub_0809FECC: @ 0x0809FECC - ldr r1, _0809FEDC @ =gLinkEntity + ldr r1, _0809FEDC @ =gPlayerEntity str r1, [r0, #0x54] movs r2, #0 movs r1, #5 @@ -570,4 +570,4 @@ sub_0809FECC: @ 0x0809FECC strb r2, [r0, #0xd] bx lr .align 2, 0 -_0809FEDC: .4byte gLinkEntity +_0809FEDC: .4byte gPlayerEntity diff --git a/asm/objectAB.s b/asm/objectAB.s index 5740f276..a954dd21 100644 --- a/asm/objectAB.s +++ b/asm/objectAB.s @@ -85,7 +85,7 @@ sub_080A0158: @ 0x080A0158 adds r0, r4, #0 movs r1, #0x1e bl sub_0805E4E0 - ldr r1, _080A018C @ =gLinkEntity + ldr r1, _080A018C @ =gPlayerEntity adds r0, r4, #0 movs r2, #0x10 movs r3, #0x10 @@ -97,7 +97,7 @@ sub_080A0158: @ 0x080A0158 _080A018A: pop {r4, pc} .align 2, 0 -_080A018C: .4byte gLinkEntity +_080A018C: .4byte gPlayerEntity thumb_func_start sub_080A0190 sub_080A0190: @ 0x080A0190 @@ -105,9 +105,9 @@ sub_080A0190: @ 0x080A0190 movs r4, #0 movs r1, #1 strb r1, [r0, #0xd] - ldr r1, _080A01B8 @ =gLinkEntity + ldr r1, _080A01B8 @ =gPlayerEntity bl CopyPosition - ldr r2, _080A01BC @ =gLinkState + ldr r2, _080A01BC @ =gPlayerState movs r0, #3 strb r0, [r2, #0xc] adds r0, r2, #0 @@ -120,5 +120,5 @@ sub_080A0190: @ 0x080A0190 str r0, [r2, #0x30] pop {r4, pc} .align 2, 0 -_080A01B8: .4byte gLinkEntity -_080A01BC: .4byte gLinkState +_080A01B8: .4byte gPlayerEntity +_080A01BC: .4byte gPlayerState diff --git a/asm/objectB5.s b/asm/objectB5.s index b01eb974..89ef3f00 100644 --- a/asm/objectB5.s +++ b/asm/objectB5.s @@ -18,12 +18,12 @@ ObjectB5: @ 0x080A0E28 _080A0E36: ldr r0, _080A0E48 @ =gRoomControls str r1, [r0, #0x30] - ldr r0, _080A0E4C @ =gLinkEntity + ldr r0, _080A0E4C @ =gPlayerEntity ldr r3, _080A0E50 @ =0xFFD80000 movs r2, #0 bl PositionRelative pop {pc} .align 2, 0 _080A0E48: .4byte gRoomControls -_080A0E4C: .4byte gLinkEntity +_080A0E4C: .4byte gPlayerEntity _080A0E50: .4byte 0xFFD80000 diff --git a/asm/objectB9.s b/asm/objectB9.s index c8541922..43f746d3 100644 --- a/asm/objectB9.s +++ b/asm/objectB9.s @@ -174,7 +174,7 @@ _080A132E: mov r0, sb adds r0, #0x6a strh r6, [r0] - ldr r0, _080A136C @ =gLinkState + ldr r0, _080A136C @ =gPlayerState adds r0, #0x27 movs r1, #0xff strb r1, [r0] @@ -191,7 +191,7 @@ _080A132E: bl sub_08050384 b _080A1376 .align 2, 0 -_080A136C: .4byte gLinkState +_080A136C: .4byte gPlayerState _080A1370: ldr r1, _080A1384 @ =gUnk_02033280 movs r0, #0 diff --git a/asm/objectBA.s b/asm/objectBA.s index 5be0b70d..07f407a3 100644 --- a/asm/objectBA.s +++ b/asm/objectBA.s @@ -137,7 +137,7 @@ _080A171E: adds r0, #0x39 mov r2, sb strb r2, [r0] - ldr r2, _080A183C @ =gLinkState + ldr r2, _080A183C @ =gPlayerState ldr r0, [r2, #0x30] movs r1, #0x80 lsls r1, r1, #0xa @@ -174,7 +174,7 @@ _080A182C: .4byte gRoomControls _080A1830: .4byte gScreen _080A1834: .4byte 0x00001E07 _080A1838: .4byte gScreenTransition -_080A183C: .4byte gLinkState +_080A183C: .4byte gPlayerState _080A1840: .4byte 0x80100000 _080A1844: .4byte gArea _080A1848: .4byte 0x00000864 @@ -202,7 +202,7 @@ sub_080A184C: @ 0x080A184C adds r0, #0x45 strb r2, [r0] _080A1874: - ldr r2, _080A1894 @ =gLinkState + ldr r2, _080A1894 @ =gPlayerState ldr r1, _080A1898 @ =gRoomControls movs r3, #0x80 lsls r3, r3, #2 @@ -218,7 +218,7 @@ _080A1874: strh r0, [r2, #0x18] pop {pc} .align 2, 0 -_080A1894: .4byte gLinkState +_080A1894: .4byte gPlayerState _080A1898: .4byte gRoomControls thumb_func_start sub_080A189C @@ -259,7 +259,7 @@ sub_080A189C: @ 0x080A189C movs r1, #1 bl sub_08080964 _080A18E6: - ldr r2, _080A1904 @ =gLinkState + ldr r2, _080A1904 @ =gPlayerState ldr r1, _080A1908 @ =gRoomControls movs r3, #0x80 lsls r3, r3, #2 @@ -275,7 +275,7 @@ _080A18E6: strh r0, [r2, #0x18] pop {pc} .align 2, 0 -_080A1904: .4byte gLinkState +_080A1904: .4byte gPlayerState _080A1908: .4byte gRoomControls thumb_func_start sub_080A190C @@ -315,7 +315,7 @@ sub_080A190C: @ 0x080A190C movs r1, #0x18 strb r1, [r0] _080A1956: - ldr r2, _080A1974 @ =gLinkState + ldr r2, _080A1974 @ =gPlayerState ldr r1, _080A1978 @ =gRoomControls movs r3, #0x80 lsls r3, r3, #2 @@ -331,10 +331,10 @@ _080A1956: strh r0, [r2, #0x18] b _080A1988 .align 2, 0 -_080A1974: .4byte gLinkState +_080A1974: .4byte gPlayerState _080A1978: .4byte gRoomControls _080A197C: - ldr r1, _080A198C @ =gLinkState + ldr r1, _080A198C @ =gPlayerState ldrh r0, [r2, #0x2e] strh r0, [r1, #0x16] ldr r0, [r3, #8] @@ -343,7 +343,7 @@ _080A197C: _080A1988: pop {r4, pc} .align 2, 0 -_080A198C: .4byte gLinkState +_080A198C: .4byte gPlayerState thumb_func_start sub_080A1990 sub_080A1990: @ 0x080A1990 @@ -381,7 +381,7 @@ sub_080A1990: @ 0x080A1990 movs r1, #1 bl sub_08080964 _080A19D6: - ldr r2, _080A19F4 @ =gLinkState + ldr r2, _080A19F4 @ =gPlayerState ldr r1, _080A19F8 @ =gRoomControls movs r3, #0x80 lsls r3, r3, #2 @@ -397,7 +397,7 @@ _080A19D6: strh r0, [r2, #0x18] pop {pc} .align 2, 0 -_080A19F4: .4byte gLinkState +_080A19F4: .4byte gPlayerState _080A19F8: .4byte gRoomControls thumb_func_start sub_080A19FC @@ -437,7 +437,7 @@ sub_080A19FC: @ 0x080A19FC movs r1, #0x18 strb r1, [r0] _080A1A46: - ldr r2, _080A1A64 @ =gLinkState + ldr r2, _080A1A64 @ =gPlayerState ldr r1, _080A1A68 @ =gRoomControls movs r3, #0x80 lsls r3, r3, #2 @@ -453,10 +453,10 @@ _080A1A46: strh r0, [r2, #0x18] b _080A1A78 .align 2, 0 -_080A1A64: .4byte gLinkState +_080A1A64: .4byte gPlayerState _080A1A68: .4byte gRoomControls _080A1A6C: - ldr r1, _080A1A7C @ =gLinkState + ldr r1, _080A1A7C @ =gPlayerState ldrh r0, [r2, #0x2e] strh r0, [r1, #0x16] ldr r0, [r3, #0xc] @@ -465,7 +465,7 @@ _080A1A6C: _080A1A78: pop {r4, pc} .align 2, 0 -_080A1A7C: .4byte gLinkState +_080A1A7C: .4byte gPlayerState thumb_func_start sub_080A1A80 sub_080A1A80: @ 0x080A1A80 @@ -500,7 +500,7 @@ sub_080A1A80: @ 0x080A1A80 movs r1, #1 bl sub_08080964 _080A1AC0: - ldr r2, _080A1AE0 @ =gLinkState + ldr r2, _080A1AE0 @ =gPlayerState ldr r1, _080A1AE4 @ =gRoomControls movs r3, #0x80 lsls r3, r3, #2 @@ -516,7 +516,7 @@ _080A1AC0: strh r0, [r2, #0x18] pop {pc} .align 2, 0 -_080A1AE0: .4byte gLinkState +_080A1AE0: .4byte gPlayerState _080A1AE4: .4byte gRoomControls thumb_func_start sub_080A1AE8 @@ -550,7 +550,7 @@ sub_080A1AE8: @ 0x080A1AE8 movs r1, #0xc strb r1, [r0] _080A1B24: - ldr r2, _080A1B44 @ =gLinkState + ldr r2, _080A1B44 @ =gPlayerState ldr r1, _080A1B48 @ =gRoomControls movs r3, #0x80 lsls r3, r3, #2 @@ -566,7 +566,7 @@ _080A1B24: strh r0, [r2, #0x18] pop {r4, pc} .align 2, 0 -_080A1B44: .4byte gLinkState +_080A1B44: .4byte gPlayerState _080A1B48: .4byte gRoomControls thumb_func_start sub_080A1B4C @@ -604,7 +604,7 @@ _080A1B80: bl sub_08079F8C cmp r0, #0 beq _080A1BD0 - ldr r3, _080A1BF4 @ =gLinkEntity + ldr r3, _080A1BF4 @ =gPlayerEntity movs r1, #0x36 ldrsh r0, [r3, r1] cmp r0, #0 @@ -621,7 +621,7 @@ _080A1B80: strb r6, [r4, #0x15] movs r0, #0x60 strh r0, [r4, #0x24] - ldr r2, _080A1BF8 @ =gLinkState + ldr r2, _080A1BF8 @ =gPlayerState ldr r0, [r2, #0x30] ldr r1, _080A1BFC @ =0xFFFDFFFF ands r0, r1 @@ -634,7 +634,7 @@ _080A1B80: movs r0, #2 bl sub_08078A90 _080A1BD0: - ldr r2, _080A1BF8 @ =gLinkState + ldr r2, _080A1BF8 @ =gPlayerState ldr r1, _080A1C00 @ =gRoomControls movs r3, #0x80 lsls r3, r3, #2 @@ -651,8 +651,8 @@ _080A1BD0: pop {r4, r5, r6, r7, pc} .align 2, 0 _080A1BF0: .4byte gScreenTransition -_080A1BF4: .4byte gLinkEntity -_080A1BF8: .4byte gLinkState +_080A1BF4: .4byte gPlayerEntity +_080A1BF8: .4byte gPlayerState _080A1BFC: .4byte 0xFFFDFFFF _080A1C00: .4byte gRoomControls @@ -1248,7 +1248,7 @@ _080A2066: ldrb r0, [r4] cmp r0, #0 beq _080A20B4 - ldr r0, _080A20A0 @ =gLinkEntity + ldr r0, _080A20A0 @ =gPlayerEntity ldr r2, _080A209C @ =gRoomControls ldrh r1, [r2, #6] movs r3, #0x80 @@ -1270,7 +1270,7 @@ _080A2066: b _080A20B4 .align 2, 0 _080A209C: .4byte gRoomControls -_080A20A0: .4byte gLinkEntity +_080A20A0: .4byte gPlayerEntity _080A20A4: cmp r0, #0x23 bne _080A20B4 @@ -1296,7 +1296,7 @@ _080A20C4: bl sub_08079F8C cmp r0, #0 beq _080A20F8 - ldr r0, _080A20F0 @ =gLinkEntity + ldr r0, _080A20F0 @ =gPlayerEntity movs r1, #0x36 ldrsh r0, [r0, r1] cmp r0, #0 @@ -1307,7 +1307,7 @@ _080A20C4: ldrb r0, [r0] cmp r0, #0 bne _080A20EC - ldr r0, _080A20F4 @ =gLinkState + ldr r0, _080A20F4 @ =gPlayerState ldrb r1, [r0, #0x14] rsbs r0, r1, #0 orrs r0, r1 @@ -1316,8 +1316,8 @@ _080A20EC: adds r0, r1, #0 b _080A20FA .align 2, 0 -_080A20F0: .4byte gLinkEntity -_080A20F4: .4byte gLinkState +_080A20F0: .4byte gPlayerEntity +_080A20F4: .4byte gPlayerState _080A20F8: movs r0, #0 _080A20FA: diff --git a/asm/objectBlockingStairs.s b/asm/objectBlockingStairs.s index 3e4c1992..ee7430eb 100644 --- a/asm/objectBlockingStairs.s +++ b/asm/objectBlockingStairs.s @@ -92,7 +92,7 @@ sub_08092F68: @ 0x08092F68 mov r7, r8 push {r7} adds r6, r0, #0 - ldr r0, _08092FA4 @ =gLinkEntity + ldr r0, _08092FA4 @ =gPlayerEntity movs r2, #0x2e ldrsh r1, [r0, r2] movs r2, #0x2e @@ -118,7 +118,7 @@ _08092F92: bl sub_080932A8 b _080930E6 .align 2, 0 -_08092FA4: .4byte gLinkEntity +_08092FA4: .4byte gPlayerEntity _08092FA8: adds r1, r6, #0 adds r1, #0x7b @@ -172,7 +172,7 @@ _08092FF2: blo _08093040 movs r0, #3 strb r0, [r6, #0xc] - ldr r0, _08093038 @ =gLinkEntity + ldr r0, _08093038 @ =gPlayerEntity ldrb r0, [r0, #0x14] lsls r0, r0, #2 strb r0, [r6, #0x15] @@ -190,10 +190,10 @@ _08092FF2: b _080930E6 .align 2, 0 _08093034: .4byte 0x00004031 -_08093038: .4byte gLinkEntity +_08093038: .4byte gPlayerEntity _0809303C: .4byte 0x0000010F _08093040: - ldr r0, _0809307C @ =gLinkEntity + ldr r0, _0809307C @ =gPlayerEntity ldrb r1, [r0, #0x14] movs r0, #2 ands r0, r1 @@ -222,7 +222,7 @@ _08093040: ldr r0, _08093084 @ =0x0000403D b _080930AA .align 2, 0 -_0809307C: .4byte gLinkEntity +_0809307C: .4byte gPlayerEntity _08093080: .4byte 0x0000402C _08093084: .4byte 0x0000403D _08093088: @@ -288,11 +288,11 @@ sub_080930F4: @ 0x080930F4 bl sub_08093280 b _08093174 _08093104: - ldr r5, _0809315C @ =gLinkState + ldr r5, _0809315C @ =gPlayerState ldrb r0, [r5, #5] cmp r0, #0x12 bne _08093168 - ldr r6, _08093160 @ =gLinkEntity + ldr r6, _08093160 @ =gPlayerEntity adds r0, r6, #0 adds r0, #0x5a ldrb r1, [r0] @@ -331,8 +331,8 @@ _08093104: bl sub_08093248 b _08093174 .align 2, 0 -_0809315C: .4byte gLinkState -_08093160: .4byte gLinkEntity +_0809315C: .4byte gPlayerState +_08093160: .4byte gPlayerEntity _08093164: .4byte 0x0000010F _08093168: ldrb r0, [r4, #0xd] diff --git a/asm/objectC1.s b/asm/objectC1.s index 0a6016cb..a18b4d33 100644 --- a/asm/objectC1.s +++ b/asm/objectC1.s @@ -44,7 +44,7 @@ _080A2598: .4byte gUnk_02034490 sub_080A259C: @ 0x080A259C push {r4, r5, r6, r7, lr} adds r4, r0, #0 - ldr r5, _080A25DC @ =gLinkEntity + ldr r5, _080A25DC @ =gPlayerEntity ldrb r1, [r5, #0x10] movs r7, #0x7f adds r0, r7, #0 @@ -74,7 +74,7 @@ sub_080A259C: @ 0x080A259C beq _080A25E6 b _080A273C .align 2, 0 -_080A25DC: .4byte gLinkEntity +_080A25DC: .4byte gPlayerEntity _080A25E0: cmp r0, #2 beq _080A26B4 @@ -133,7 +133,7 @@ _080A25E6: adds r0, r4, #0 movs r1, #6 bl sub_0805E3A0 - ldr r0, _080A2670 @ =gLinkState + ldr r0, _080A2670 @ =gPlayerState ldr r0, [r0, #0x30] movs r1, #8 ands r0, r1 @@ -147,7 +147,7 @@ _080A25E6: adds r1, #3 b _080A2688 .align 2, 0 -_080A2670: .4byte gLinkState +_080A2670: .4byte gPlayerState _080A2674: .4byte 0x0000045B _080A2678: ldrb r0, [r4, #0xa] @@ -217,7 +217,7 @@ _080A26B4: adds r0, r5, #0 adds r0, #0x3d strb r1, [r0] - ldr r1, _080A2768 @ =gLinkState + ldr r1, _080A2768 @ =gPlayerState adds r0, r4, #0 adds r0, #0x6b ldrb r0, [r0] @@ -269,4 +269,4 @@ _080A2762: pop {r4, r5, r6, r7, pc} .align 2, 0 _080A2764: .4byte gTextBox -_080A2768: .4byte gLinkState +_080A2768: .4byte gPlayerState diff --git a/asm/objectOnPillar.s b/asm/objectOnPillar.s index 614b63e8..6829d195 100644 --- a/asm/objectOnPillar.s +++ b/asm/objectOnPillar.s @@ -164,7 +164,7 @@ sub_08096F30: @ 0x08096F30 bl sub_08097144 b _08096F62 _08096F44: - ldr r0, _08096F64 @ =gLinkState + ldr r0, _08096F64 @ =gPlayerState ldrb r0, [r0, #5] cmp r0, #0 bne _08096F50 @@ -182,7 +182,7 @@ _08096F50: _08096F62: pop {pc} .align 2, 0 -_08096F64: .4byte gLinkState +_08096F64: .4byte gPlayerState _08096F68: .4byte gUnk_0812326C thumb_func_start sub_08096F6C @@ -196,7 +196,7 @@ sub_08096F6C: @ 0x08096F6C bne _08096F98 movs r0, #1 strh r0, [r1] - ldr r1, _08096FD8 @ =gLinkEntity + ldr r1, _08096FD8 @ =gPlayerEntity ldrb r0, [r1, #0x14] ldr r2, _08096FDC @ =gUnk_08123274 adds r0, r0, r2 @@ -214,7 +214,7 @@ _08096F98: bl sub_080896B0 cmp r0, #0 beq _08096FD4 - ldr r2, _08096FE0 @ =gLinkState + ldr r2, _08096FE0 @ =gPlayerState movs r3, #0 movs r0, #0x10 strb r0, [r2, #0xc] @@ -226,7 +226,7 @@ _08096F98: movs r1, #1 orrs r0, r1 str r0, [r2, #0x30] - ldr r0, _08096FD8 @ =gLinkEntity + ldr r0, _08096FD8 @ =gPlayerEntity strh r3, [r0, #0x2c] strh r3, [r0, #0x30] ldrb r0, [r0, #0x14] @@ -239,9 +239,9 @@ _08096F98: _08096FD4: pop {r4, pc} .align 2, 0 -_08096FD8: .4byte gLinkEntity +_08096FD8: .4byte gPlayerEntity _08096FDC: .4byte gUnk_08123274 -_08096FE0: .4byte gLinkState +_08096FE0: .4byte gPlayerState thumb_func_start sub_08096FE4 sub_08096FE4: @ 0x08096FE4 diff --git a/asm/objectOnSpinyBeetle.s b/asm/objectOnSpinyBeetle.s index 0fb5ae2b..461d78a1 100644 --- a/asm/objectOnSpinyBeetle.s +++ b/asm/objectOnSpinyBeetle.s @@ -185,7 +185,7 @@ _080986C4: ldrb r0, [r4, #0xa] cmp r0, #0 beq _080986E6 - ldr r0, _080986DC @ =gLinkState + ldr r0, _080986DC @ =gPlayerState adds r0, #0xac ldrh r1, [r0] movs r0, #8 @@ -194,7 +194,7 @@ _080986C4: beq _08098702 b _080986E6 .align 2, 0 -_080986DC: .4byte gLinkState +_080986DC: .4byte gPlayerState _080986E0: ldrb r0, [r4, #0xa] cmp r0, #0 @@ -243,7 +243,7 @@ sub_0809871C: @ 0x0809871C adds r1, #3 movs r0, #1 strb r0, [r1] - ldr r0, _08098754 @ =gLinkEntity + ldr r0, _08098754 @ =gPlayerEntity adds r0, #0x3b ldrb r0, [r0] subs r1, #4 @@ -258,7 +258,7 @@ sub_0809871C: @ 0x0809871C strb r0, [r3, #0xd] bx lr .align 2, 0 -_08098754: .4byte gLinkEntity +_08098754: .4byte gPlayerEntity thumb_func_start nullsub_533 nullsub_533: @ 0x08098758 @@ -329,7 +329,7 @@ sub_080987B4: @ 0x080987B4 sub_080987BC: @ 0x080987BC push {lr} adds r1, r0, #0 - ldr r0, _080987D0 @ =gLinkState + ldr r0, _080987D0 @ =gPlayerState ldrb r0, [r0, #5] cmp r0, #0 bne _080987CE @@ -338,7 +338,7 @@ sub_080987BC: @ 0x080987BC _080987CE: pop {pc} .align 2, 0 -_080987D0: .4byte gLinkState +_080987D0: .4byte gPlayerState thumb_func_start sub_080987D4 sub_080987D4: @ 0x080987D4 @@ -389,7 +389,7 @@ sub_08098810: @ 0x08098810 sub_08098820: @ 0x08098820 push {lr} adds r2, r0, #0 - ldr r0, _0809884C @ =gLinkState + ldr r0, _0809884C @ =gPlayerState ldrb r1, [r0, #0x1c] movs r0, #0xf ands r0, r1 @@ -411,7 +411,7 @@ _0809883E: strb r0, [r2, #0xc] b _08098856 .align 2, 0 -_0809884C: .4byte gLinkState +_0809884C: .4byte gPlayerState _08098850: adds r0, r2, #0 bl sub_0806F4E8 @@ -437,7 +437,7 @@ sub_08098858: @ 0x08098858 ldr r0, [r4, #0x50] str r1, [r0, #0x54] _08098878: - ldr r0, _0809889C @ =gLinkState + ldr r0, _0809889C @ =gPlayerState ldrb r1, [r0, #0x1c] movs r0, #0xf ands r0, r1 @@ -455,7 +455,7 @@ _08098892: bl sub_080989C0 b _080988B4 .align 2, 0 -_0809889C: .4byte gLinkState +_0809889C: .4byte gPlayerState _080988A0: adds r0, r4, #0 bl sub_0806F3E4 @@ -473,7 +473,7 @@ _080988B4: sub_080988B8: @ 0x080988B8 push {lr} adds r2, r0, #0 - ldr r0, _080988CC @ =gLinkState + ldr r0, _080988CC @ =gPlayerState ldrb r0, [r0, #0x1c] cmp r0, #0 bne _080988D0 @@ -481,7 +481,7 @@ sub_080988B8: @ 0x080988B8 bl sub_080989C0 b _080988D8 .align 2, 0 -_080988CC: .4byte gLinkState +_080988CC: .4byte gPlayerState _080988D0: ldrb r1, [r2, #0x10] movs r0, #0x7f diff --git a/asm/ocarina.s b/asm/ocarina.s index fcfae82a..0c4433a9 100644 --- a/asm/ocarina.s +++ b/asm/ocarina.s @@ -18,7 +18,7 @@ Ocarina: @ 0x08076B78 ldr r2, [r2] bl _call_via_r2 - ldr r1, _08076B98 @ =gLinkEntity + ldr r1, _08076B98 @ =gPlayerEntity adds r1, #0x7a ldrh r0, [r1] adds r0, #1 @@ -27,14 +27,14 @@ Ocarina: @ 0x08076B78 pop {pc} .align 2, 0 _08076B94: .4byte gOcarinaStates -_08076B98: .4byte gLinkEntity +_08076B98: .4byte gPlayerEntity thumb_func_start OcarinaUse OcarinaUse: @ 0x08076B9C push {r4, r5, lr} adds r4, r0, #0 adds r5, r1, #0 - ldr r3, _08076BB4 @ =gLinkState + ldr r3, _08076BB4 @ =gPlayerState ldrb r0, [r3, #0xc] cmp r0, #0x18 bne _08076BB8 @@ -42,13 +42,13 @@ OcarinaUse: @ 0x08076B9C bl sub_08077E78 b _08076C1C .align 2, 0 -_08076BB4: .4byte gLinkState +_08076BB4: .4byte gPlayerState _08076BB8: ldrb r1, [r4, #9] movs r0, #0xf orrs r0, r1 strb r0, [r4, #9] - ldr r1, _08076C20 @ =gLinkEntity + ldr r1, _08076C20 @ =gPlayerEntity movs r0, #4 strb r0, [r1, #0x14] ldrb r2, [r1, #0x18] @@ -106,7 +106,7 @@ _08076BB8: _08076C1C: pop {r4, r5, pc} .align 2, 0 -_08076C20: .4byte gLinkEntity +_08076C20: .4byte gPlayerEntity _08076C24: .4byte gUnk_02034490 _08076C28: .4byte 0x00000216 @@ -121,13 +121,13 @@ OcarinaUpdate: @ 0x08076C2C ands r0, r1 cmp r0, #0 beq _08076C6E - ldr r0, _08076C70 @ =gLinkEntity + ldr r0, _08076C70 @ =gPlayerEntity ldrb r2, [r0, #0x10] movs r4, #0 movs r1, #0x80 orrs r1, r2 strb r1, [r0, #0x10] - ldr r2, _08076C74 @ =gLinkState + ldr r2, _08076C74 @ =gPlayerState ldr r1, [r2, #0x30] ldr r3, _08076C78 @ =0xEFFFFFFF ands r1, r3 @@ -144,7 +144,7 @@ OcarinaUpdate: @ 0x08076C2C _08076C6E: pop {r4, r5, r6, pc} .align 2, 0 -_08076C70: .4byte gLinkEntity -_08076C74: .4byte gLinkState +_08076C70: .4byte gPlayerEntity +_08076C74: .4byte gPlayerState _08076C78: .4byte 0xEFFFFFFF _08076C7C: .4byte gUnk_02034490 \ No newline at end of file diff --git a/asm/ocarinaUpdate.s b/asm/ocarinaUpdate.s index 005d7f38..d770dbe3 100644 --- a/asm/ocarinaUpdate.s +++ b/asm/ocarinaUpdate.s @@ -17,13 +17,13 @@ OcarinaUpdate: @ 0x08076C2C ands r0, r1 cmp r0, #0 beq _08076C6E - ldr r0, _08076C70 @ =gLinkEntity + ldr r0, _08076C70 @ =gPlayerEntity ldrb r2, [r0, #0x10] movs r4, #0 movs r1, #0x80 orrs r1, r2 strb r1, [r0, #0x10] - ldr r2, _08076C74 @ =gLinkState + ldr r2, _08076C74 @ =gPlayerState ldr r1, [r2, #0x30] ldr r3, _08076C78 @ =0xEFFFFFFF ands r1, r3 @@ -40,7 +40,7 @@ OcarinaUpdate: @ 0x08076C2C _08076C6E: pop {r4, r5, r6, pc} .align 2, 0 -_08076C70: .4byte gLinkEntity -_08076C74: .4byte gLinkState +_08076C70: .4byte gPlayerEntity +_08076C74: .4byte gPlayerState _08076C78: .4byte 0xEFFFFFFF _08076C7C: .4byte gUnk_02034490 \ No newline at end of file diff --git a/asm/octorokBoss.s b/asm/octorokBoss.s index 1dd73bfd..d713b2b4 100644 --- a/asm/octorokBoss.s +++ b/asm/octorokBoss.s @@ -444,13 +444,13 @@ _08035512: movs r0, #0x96 strb r0, [r1] ldr r1, _08035524 @ =gRoomControls - ldr r0, _08035528 @ =gLinkEntity + ldr r0, _08035528 @ =gPlayerEntity str r0, [r1, #0x30] _08035522: pop {pc} .align 2, 0 _08035524: .4byte gRoomControls -_08035528: .4byte gLinkEntity +_08035528: .4byte gPlayerEntity thumb_func_start sub_0803552C sub_0803552C: @ 0x0803552C @@ -905,7 +905,7 @@ _080358A0: movs r0, #0x3c mov r1, sb strb r0, [r1] - ldr r1, _080358D0 @ =gLinkEntity + ldr r1, _080358D0 @ =gPlayerEntity ldrb r2, [r1, #0x18] subs r0, #0x40 ands r0, r2 @@ -919,7 +919,7 @@ _080358A0: str r4, [r0, #0x30] b _08035974 .align 2, 0 -_080358D0: .4byte gLinkEntity +_080358D0: .4byte gPlayerEntity _080358D4: .4byte gRoomControls _080358D8: movs r1, #0 @@ -1152,7 +1152,7 @@ sub_08035A70: @ 0x08035A70 strb r0, [r2, #0xd] movs r0, #0x3c strb r0, [r1] - ldr r2, _08035AAC @ =gLinkEntity + ldr r2, _08035AAC @ =gPlayerEntity ldrb r3, [r2, #0x18] lsls r1, r3, #0x1e lsrs r1, r1, #0x1e @@ -1168,7 +1168,7 @@ sub_08035A70: @ 0x08035A70 _08035AA8: pop {r4, pc} .align 2, 0 -_08035AAC: .4byte gLinkEntity +_08035AAC: .4byte gPlayerEntity _08035AB0: .4byte gRoomControls thumb_func_start sub_08035AB4 @@ -1184,7 +1184,7 @@ sub_08035AB4: @ 0x08035AB4 lsrs r0, r0, #0x18 cmp r0, #0xff bne _08035AE4 - ldr r1, _08035AE8 @ =gLinkEntity + ldr r1, _08035AE8 @ =gPlayerEntity movs r0, #0x10 strb r0, [r1, #0x15] movs r4, #4 @@ -1199,7 +1199,7 @@ sub_08035AB4: @ 0x08035AB4 _08035AE4: pop {r4, r5, r6, pc} .align 2, 0 -_08035AE8: .4byte gLinkEntity +_08035AE8: .4byte gPlayerEntity thumb_func_start sub_08035AEC sub_08035AEC: @ 0x08035AEC @@ -1218,18 +1218,18 @@ sub_08035AEC: @ 0x08035AEC strb r0, [r3, #0xd] movs r0, #0x2d strb r0, [r2] - ldr r1, _08035B14 @ =gLinkEntity + ldr r1, _08035B14 @ =gPlayerEntity movs r0, #0 strb r0, [r1, #0x14] b _08035B2C .align 2, 0 -_08035B14: .4byte gLinkEntity +_08035B14: .4byte gPlayerEntity _08035B18: lsls r0, r1, #0x18 lsrs r0, r0, #0x18 cmp r0, #0x1e bne _08035B2C - ldr r0, _08035B30 @ =gLinkEntity + ldr r0, _08035B30 @ =gPlayerEntity movs r2, #0x18 rsbs r2, r2, #0 movs r1, #0xc @@ -1237,13 +1237,13 @@ _08035B18: _08035B2C: pop {pc} .align 2, 0 -_08035B30: .4byte gLinkEntity +_08035B30: .4byte gPlayerEntity thumb_func_start sub_08035B34 sub_08035B34: @ 0x08035B34 push {r4, r5, lr} adds r3, r0, #0 - ldr r2, _08035B70 @ =gLinkEntity + ldr r2, _08035B70 @ =gPlayerEntity ldrb r5, [r2, #0x14] cmp r5, #4 bne _08035B7C @@ -1270,7 +1270,7 @@ sub_08035B34: @ 0x08035B34 bl PlaySFX b _08035B92 .align 2, 0 -_08035B70: .4byte gLinkEntity +_08035B70: .4byte gPlayerEntity _08035B74: .4byte gRoomControls _08035B78: .4byte gUnk_02034490 _08035B7C: @@ -1788,7 +1788,7 @@ _08035F78: .4byte gUnk_080CF0C4 sub_08035F7C: @ 0x08035F7C push {r4, r5, lr} adds r4, r0, #0 - ldr r2, _08035FD0 @ =gLinkEntity + ldr r2, _08035FD0 @ =gPlayerEntity ldr r0, [r2, #0x2c] ldr r1, [r4, #0x2c] subs r0, r0, r1 @@ -1828,7 +1828,7 @@ _08035FB6: bl sub_08036C90 b _08036074 .align 2, 0 -_08035FD0: .4byte gLinkEntity +_08035FD0: .4byte gPlayerEntity _08035FD4: adds r0, r4, #0 adds r0, #0x78 @@ -2080,7 +2080,7 @@ sub_08036188: @ 0x08036188 ldrb r0, [r0] cmp r0, #0 beq _080361EA - ldr r4, _080361F0 @ =gLinkEntity + ldr r4, _080361F0 @ =gPlayerEntity ldrb r1, [r4, #0x18] movs r0, #4 rsbs r0, r0, #0 @@ -2112,7 +2112,7 @@ _080361EA: pop {r4, r5, pc} .align 2, 0 _080361EC: .4byte gUnk_080CF0E0 -_080361F0: .4byte gLinkEntity +_080361F0: .4byte gPlayerEntity thumb_func_start sub_080361F4 sub_080361F4: @ 0x080361F4 @@ -2386,7 +2386,7 @@ sub_080363CC: @ 0x080363CC ldrb r2, [r7] cmp r2, #0 bne _080364CC - ldr r5, _08036498 @ =gLinkEntity + ldr r5, _08036498 @ =gPlayerEntity ldr r0, [r5, #0x2c] ldr r1, [r4, #0x2c] subs r0, r0, r1 @@ -2419,7 +2419,7 @@ _0803640C: bl sub_0806FC80 cmp r0, #0 beq _080364AA - ldr r2, _0803649C @ =gLinkState + ldr r2, _0803649C @ =gPlayerState ldr r1, [r2, #0x30] movs r0, #0x80 lsls r0, r0, #4 @@ -2475,8 +2475,8 @@ _0803640C: bl PlaySFX b _080364AA .align 2, 0 -_08036498: .4byte gLinkEntity -_0803649C: .4byte gLinkState +_08036498: .4byte gPlayerEntity +_0803649C: .4byte gPlayerState _080364A0: .4byte gRoomControls _080364A4: ldr r0, _080364C4 @ =0xFFFFF7FF @@ -2548,7 +2548,7 @@ _08036510: ldrb r0, [r1] adds r0, #1 strb r0, [r1] - ldr r1, _0803656C @ =gLinkEntity + ldr r1, _0803656C @ =gPlayerEntity ldrb r2, [r1, #0x18] movs r0, #4 rsbs r0, r0, #0 @@ -2579,7 +2579,7 @@ _08036510: bl PlaySFX b _08036652 .align 2, 0 -_0803656C: .4byte gLinkEntity +_0803656C: .4byte gPlayerEntity _08036570: adds r1, r4, #0 adds r1, #0x79 @@ -2604,7 +2604,7 @@ _0803657A: _08036598: subs r2, r0, #1 strb r2, [r6] - ldr r0, _080365E4 @ =gLinkState + ldr r0, _080365E4 @ =gPlayerState ldr r1, [r0, #0x30] movs r0, #0x80 lsls r0, r0, #4 @@ -2614,7 +2614,7 @@ _08036598: lsrs r0, r0, #0x18 cmp r0, #0x3c bne _080365F8 - ldr r2, _080365E8 @ =gLinkEntity + ldr r2, _080365E8 @ =gPlayerEntity ldr r0, [r2, #0x2c] ldr r1, [r4, #0x2c] subs r0, r0, r1 @@ -2640,8 +2640,8 @@ _08036598: adds r0, #0x30 b _080365F6 .align 2, 0 -_080365E4: .4byte gLinkState -_080365E8: .4byte gLinkEntity +_080365E4: .4byte gPlayerState +_080365E8: .4byte gPlayerEntity _080365EC: adds r0, r4, #0 adds r0, #0x84 @@ -3042,7 +3042,7 @@ sub_080368D8: @ 0x080368D8 ldrb r0, [r0] cmp r0, #0 beq _08036902 - ldr r2, _08036910 @ =gLinkEntity + ldr r2, _08036910 @ =gPlayerEntity ldrb r1, [r2, #0x18] movs r0, #4 rsbs r0, r0, #0 @@ -3066,7 +3066,7 @@ _08036902: strh r1, [r0] pop {pc} .align 2, 0 -_08036910: .4byte gLinkEntity +_08036910: .4byte gPlayerEntity thumb_func_start sub_08036914 sub_08036914: @ 0x08036914 diff --git a/asm/octorokGolden.s b/asm/octorokGolden.s index 751b16af..d0af53ef 100644 --- a/asm/octorokGolden.s +++ b/asm/octorokGolden.s @@ -228,7 +228,7 @@ _08037DC4: bl sub_08037E14 b _08037E0C _08037DEE: - ldr r1, _08037E10 @ =gLinkEntity + ldr r1, _08037E10 @ =gPlayerEntity adds r0, r4, #0 bl GetFacingDirection adds r0, #4 @@ -244,7 +244,7 @@ _08037DEE: _08037E0C: pop {r4, pc} .align 2, 0 -_08037E10: .4byte gLinkEntity +_08037E10: .4byte gPlayerEntity thumb_func_start sub_08037E14 sub_08037E14: @ 0x08037E14 @@ -252,7 +252,7 @@ sub_08037E14: @ 0x08037E14 adds r5, r0, #0 movs r0, #8 strb r0, [r5, #0xe] - ldr r1, _08037E6C @ =gLinkEntity + ldr r1, _08037E6C @ =gPlayerEntity adds r0, r5, #0 bl GetFacingDirection adds r4, r0, #4 @@ -288,7 +288,7 @@ sub_08037E14: @ 0x08037E14 strb r0, [r5, #0x15] b _08037E7A .align 2, 0 -_08037E6C: .4byte gLinkEntity +_08037E6C: .4byte gPlayerEntity _08037E70: .4byte 0x00002004 _08037E74: .4byte gUnk_080CF498 _08037E78: @@ -310,7 +310,7 @@ _08037E8E: sub_08037E90: @ 0x08037E90 push {r4, lr} adds r4, r0, #0 - ldr r1, _08037EA8 @ =gLinkEntity + ldr r1, _08037EA8 @ =gPlayerEntity movs r2, #8 bl sub_0804A044 adds r1, r0, #0 @@ -319,7 +319,7 @@ sub_08037E90: @ 0x08037E90 movs r0, #0 b _08037EC6 .align 2, 0 -_08037EA8: .4byte gLinkEntity +_08037EA8: .4byte gPlayerEntity _08037EAC: movs r0, #2 strb r0, [r4, #0xc] diff --git a/asm/percy.s b/asm/percy.s index 7cd6c8a0..521a10ae 100644 --- a/asm/percy.s +++ b/asm/percy.s @@ -59,7 +59,7 @@ _0806B470: movs r0, #0 strb r1, [r4, #0xc] strb r0, [r2] - ldr r1, _0806B4C8 @ =gLinkEntity + ldr r1, _0806B4C8 @ =gPlayerEntity adds r0, r4, #0 bl GetFacingDirection bl sub_0806F5A4 @@ -85,15 +85,15 @@ _0806B4B2: ldrh r3, [r3, #4] adds r0, r4, #0 bl sub_0801DFB4 - ldr r0, _0806B4D0 @ =gLinkState + ldr r0, _0806B4D0 @ =gPlayerState adds r0, #0x8b movs r1, #3 strb r1, [r0] b _0806B4EC .align 2, 0 -_0806B4C8: .4byte gLinkEntity +_0806B4C8: .4byte gPlayerEntity _0806B4CC: .4byte gUnk_08001A7C -_0806B4D0: .4byte gLinkState +_0806B4D0: .4byte gPlayerState _0806B4D4: adds r0, r4, #0 movs r1, #0 @@ -236,7 +236,7 @@ _0806B5E6: bl SetRoomFlag b _0806B600 _0806B5EE: - ldr r0, _0806B5FC @ =gLinkEntity + ldr r0, _0806B5FC @ =gPlayerEntity ldrb r0, [r0, #0xc] cmp r0, #8 beq _0806B600 @@ -244,7 +244,7 @@ _0806B5EE: strh r0, [r4, #0x10] b _0806B606 .align 2, 0 -_0806B5FC: .4byte gLinkEntity +_0806B5FC: .4byte gPlayerEntity _0806B600: ldr r1, _0806B608 @ =gUnk_02033280 movs r0, #0 diff --git a/asm/pesto.s b/asm/pesto.s index 0ca10a24..e5c6ca52 100644 --- a/asm/pesto.s +++ b/asm/pesto.s @@ -196,7 +196,7 @@ sub_08024060: @ 0x08024060 strb r0, [r3, #0x10] movs r0, #0x6e strb r0, [r2] - ldr r0, _08024094 @ =gLinkEntity + ldr r0, _08024094 @ =gPlayerEntity ldrb r1, [r0, #0x19] lsrs r1, r1, #6 lsls r1, r1, #6 @@ -210,7 +210,7 @@ _0802408C: bl GetNextFrame pop {pc} .align 2, 0 -_08024094: .4byte gLinkEntity +_08024094: .4byte gPlayerEntity thumb_func_start nullsub_138 nullsub_138: @ 0x08024098 @@ -385,7 +385,7 @@ sub_080241C0: @ 0x080241C0 beq _08024238 b _08024296 _080241D8: - ldr r0, _08024218 @ =gLinkState + ldr r0, _08024218 @ =gPlayerState ldrb r0, [r0, #0xf] movs r2, #0x40 cmp r0, #0 @@ -402,7 +402,7 @@ _080241E4: bl sub_08049FDC cmp r0, #0 beq _08024220 - ldr r0, _0802421C @ =gLinkEntity + ldr r0, _0802421C @ =gPlayerEntity ldrb r0, [r0, #0xc] cmp r0, #0x1e beq _08024220 @@ -416,8 +416,8 @@ _080241E4: bl sub_08024A14 b _08024296 .align 2, 0 -_08024218: .4byte gLinkState -_0802421C: .4byte gLinkEntity +_08024218: .4byte gPlayerState +_0802421C: .4byte gPlayerEntity _08024220: ldrb r0, [r4, #0xf] subs r0, #1 @@ -1005,7 +1005,7 @@ _08024670: strb r0, [r2] adds r0, r5, #0 bl sub_080249DC - ldr r2, _080246DC @ =gLinkEntity + ldr r2, _080246DC @ =gPlayerEntity adds r0, r2, #0 adds r0, #0x29 ldrb r0, [r0] @@ -1018,7 +1018,7 @@ _08024670: movs r0, #0x7f ands r0, r1 strb r0, [r2, #0x10] - ldr r2, _080246E0 @ =gLinkState + ldr r2, _080246E0 @ =gPlayerState ldr r0, [r2, #0x30] movs r1, #0x80 lsls r1, r1, #1 @@ -1037,8 +1037,8 @@ _080246D6: strb r4, [r2] b _08024924 .align 2, 0 -_080246DC: .4byte gLinkEntity -_080246E0: .4byte gLinkState +_080246DC: .4byte gPlayerEntity +_080246E0: .4byte gPlayerState _080246E4: ldr r1, [r5, #0x54] adds r0, r5, #0 @@ -1323,7 +1323,7 @@ _08024902: bl sub_08024A14 b _08024924 _0802490A: - ldr r0, _0802493C @ =gLinkEntity + ldr r0, _0802493C @ =gPlayerEntity movs r7, #0x36 ldrsh r1, [r0, r7] cmp r1, #0 @@ -1349,7 +1349,7 @@ _08024934: mov sb, r4 pop {r4, r5, r6, r7, pc} .align 2, 0 -_0802493C: .4byte gLinkEntity +_0802493C: .4byte gPlayerEntity thumb_func_start sub_08024940 sub_08024940: @ 0x08024940 @@ -1571,7 +1571,7 @@ sub_08024AD8: @ 0x08024AD8 ands r0, r2 cmp r0, #3 bne _08024B12 - ldr r0, _08024B0C @ =gLinkState + ldr r0, _08024B0C @ =gPlayerState ldrb r0, [r0, #0xf] cmp r0, #0 bne _08024B10 @@ -1583,7 +1583,7 @@ sub_08024AD8: @ 0x08024AD8 movs r0, #0 b _08024B34 .align 2, 0 -_08024B0C: .4byte gLinkState +_08024B0C: .4byte gPlayerState _08024B10: movs r1, #1 _08024B12: @@ -1613,7 +1613,7 @@ sub_08024B38: @ 0x08024B38 push {r4, r5, r6, r7, lr} adds r5, r0, #0 movs r7, #0 - ldr r0, _08024B5C @ =gLinkState + ldr r0, _08024B5C @ =gPlayerState ldrb r3, [r0, #0xf] adds r2, r3, #0 adds r1, r0, #0 @@ -1629,7 +1629,7 @@ sub_08024B38: @ 0x08024B38 strb r0, [r1, #0xf] b _08024B62 .align 2, 0 -_08024B5C: .4byte gLinkState +_08024B5C: .4byte gPlayerState _08024B60: strb r7, [r1, #0xf] _08024B62: @@ -2095,9 +2095,9 @@ _08024E9A: .align 2, 0 _08024EC8: .4byte gUnk_02002A40 _08024ECC: - ldr r6, _08024F48 @ =gLinkEntity - bl ResetLink - ldr r2, _08024F4C @ =gLinkState + ldr r6, _08024F48 @ =gPlayerEntity + bl ResetPlayer + ldr r2, _08024F4C @ =gPlayerState ldr r0, [r2, #0x30] movs r1, #0x80 lsls r1, r1, #1 @@ -2155,21 +2155,21 @@ _08024ECC: _08024F46: pop {r4, r5, r6, r7, pc} .align 2, 0 -_08024F48: .4byte gLinkEntity -_08024F4C: .4byte gLinkState +_08024F48: .4byte gPlayerEntity +_08024F4C: .4byte gPlayerState thumb_func_start sub_08024F50 sub_08024F50: @ 0x08024F50 push {r4, r5, r6, lr} adds r6, r0, #0 - ldr r2, _08024FDC @ =gLinkState + ldr r2, _08024FDC @ =gPlayerState movs r4, #0 strb r4, [r2, #0xa] ldr r0, [r2, #0x30] ldr r1, _08024FE0 @ =0xFFFFFEFF ands r0, r1 str r0, [r2, #0x30] - ldr r5, _08024FE4 @ =gLinkEntity + ldr r5, _08024FE4 @ =gPlayerEntity adds r0, r6, #0 adds r1, r5, #0 bl CopyPosition @@ -2229,6 +2229,6 @@ sub_08024F50: @ 0x08024F50 strh r0, [r6, #0x24] pop {r4, r5, r6, pc} .align 2, 0 -_08024FDC: .4byte gLinkState +_08024FDC: .4byte gPlayerState _08024FE0: .4byte 0xFFFFFEFF -_08024FE4: .4byte gLinkEntity +_08024FE4: .4byte gPlayerEntity diff --git a/asm/picolyteBottles.s b/asm/picolyteBottles.s index 27471fa9..158b7a27 100644 --- a/asm/picolyteBottles.s +++ b/asm/picolyteBottles.s @@ -21,7 +21,7 @@ PicolyteBottle: @ 0x0806DED0 ldrb r0, [r4, #0xa] cmp r0, #0 bne _0806DEF4 - ldr r2, _0806DEFC @ =gLinkState + ldr r2, _0806DEFC @ =gPlayerState ldrb r1, [r2, #0x1a] movs r0, #0x80 orrs r0, r1 @@ -30,7 +30,7 @@ _0806DEF4: pop {r4, pc} .align 2, 0 _0806DEF8: .4byte gUnk_081142BC -_0806DEFC: .4byte gLinkState +_0806DEFC: .4byte gPlayerState thumb_func_start sub_0806DF00 sub_0806DF00: @ 0x0806DF00 diff --git a/asm/pina.s b/asm/pina.s index 8d869270..7697a309 100644 --- a/asm/pina.s +++ b/asm/pina.s @@ -192,7 +192,7 @@ _08063B9E: adds r1, r4, #0 adds r1, #0x69 strb r0, [r1] - ldr r1, _08063BDC @ =gLinkEntity + ldr r1, _08063BDC @ =gPlayerEntity adds r0, r4, #0 bl GetFacingDirection bl sub_0806F5A4 @@ -204,7 +204,7 @@ _08063B9E: bl sub_0806F118 b _08063C10 .align 2, 0 -_08063BDC: .4byte gLinkEntity +_08063BDC: .4byte gPlayerEntity _08063BE0: adds r0, r4, #0 movs r1, #0 diff --git a/asm/postman.s b/asm/postman.s index 3bb384b7..86ce9e54 100644 --- a/asm/postman.s +++ b/asm/postman.s @@ -206,7 +206,7 @@ sub_080608E4: @ 0x080608E4 adds r0, r4, #0 adds r0, #0x38 ldrb r1, [r0] - ldr r6, _08060974 @ =gLinkEntity + ldr r6, _08060974 @ =gPlayerEntity cmp r1, #1 bne _0806090A adds r0, r6, #0 @@ -270,7 +270,7 @@ _08060918: _08060970: pop {r4, r5, r6, r7, pc} .align 2, 0 -_08060974: .4byte gLinkEntity +_08060974: .4byte gPlayerEntity _08060978: .4byte gUnk_0810AA70 thumb_func_start Postman_Fusion @@ -314,7 +314,7 @@ CreateZeldaFollower: @ 0x080609AC adds r4, r0, #0 cmp r4, #0 beq _080609E0 - ldr r0, _080609E4 @ =gLinkEntity + ldr r0, _080609E4 @ =gPlayerEntity adds r1, r4, #0 bl CopyPosition ldrb r1, [r4, #0x10] @@ -327,4 +327,4 @@ CreateZeldaFollower: @ 0x080609AC _080609E0: pop {r4, pc} .align 2, 0 -_080609E4: .4byte gLinkEntity +_080609E4: .4byte gPlayerEntity diff --git a/asm/pot.s b/asm/pot.s index e24373d3..7c76fab6 100644 --- a/asm/pot.s +++ b/asm/pot.s @@ -248,7 +248,7 @@ _080823D8: strb r0, [r5, #0xe] movs r0, #4 strb r0, [r5, #0xc] - ldr r0, _0808243C @ =gLinkState + ldr r0, _0808243C @ =gPlayerState ldr r0, [r0, #0x30] movs r1, #0x80 ands r0, r1 @@ -289,7 +289,7 @@ _08082400: b _080824F6 .align 2, 0 _08082438: .4byte 0xFFFFBFFF -_0808243C: .4byte gLinkState +_0808243C: .4byte gPlayerState _08082440: .4byte gRoomControls _08082444: .4byte 0x0000010F _08082448: @@ -334,7 +334,7 @@ _0808249A: ldr r0, _080824E4 @ =0x00004005 cmp r4, r0 bne _080824D8 - ldr r0, _080824E8 @ =gLinkState + ldr r0, _080824E8 @ =gPlayerState adds r0, #0xab movs r1, #4 strb r1, [r0] @@ -368,7 +368,7 @@ _080824D8: b _080824F6 .align 2, 0 _080824E4: .4byte 0x00004005 -_080824E8: .4byte gLinkState +_080824E8: .4byte gPlayerState _080824EC: .4byte gRoomControls _080824F0: adds r0, r5, #0 @@ -407,7 +407,7 @@ sub_08082510: @ 0x08082510 adds r1, #3 movs r0, #1 strb r0, [r1] - ldr r0, _0808257C @ =gLinkEntity + ldr r0, _0808257C @ =gPlayerEntity adds r0, #0x3b ldrb r0, [r0] subs r1, #4 @@ -443,7 +443,7 @@ sub_08082510: @ 0x08082510 pop {r4, r5, r6, pc} .align 2, 0 _08082578: .4byte gUnk_080FD340 -_0808257C: .4byte gLinkEntity +_0808257C: .4byte gPlayerEntity _08082580: .4byte gRoomControls thumb_func_start nullsub_511 @@ -496,12 +496,12 @@ _080825C8: bl CreateFx b _080825E0 _080825D0: - ldr r1, _080825DC @ =gLinkEntity + ldr r1, _080825DC @ =gPlayerEntity adds r0, r4, #0 bl sub_08082850 b _080825E4 .align 2, 0 -_080825DC: .4byte gLinkEntity +_080825DC: .4byte gPlayerEntity _080825E0: bl DeleteThisEntity _080825E4: @@ -518,7 +518,7 @@ sub_080825E8: @ 0x080825E8 sub_080825F0: @ 0x080825F0 push {lr} adds r1, r0, #0 - ldr r0, _08082604 @ =gLinkState + ldr r0, _08082604 @ =gPlayerState ldrb r0, [r0, #5] cmp r0, #0 bne _08082602 @@ -527,7 +527,7 @@ sub_080825F0: @ 0x080825F0 _08082602: pop {pc} .align 2, 0 -_08082604: .4byte gLinkState +_08082604: .4byte gPlayerState thumb_func_start sub_08082608 sub_08082608: @ 0x08082608 @@ -562,7 +562,7 @@ _08082638: bne _080826DC movs r0, #1 strb r0, [r5, #0xc] - ldr r0, _080826A4 @ =gLinkState + ldr r0, _080826A4 @ =gPlayerState ldr r0, [r0, #0x30] movs r1, #0x80 ands r0, r1 @@ -607,7 +607,7 @@ _08082658: bl sub_08082850 b _080826DC .align 2, 0 -_080826A4: .4byte gLinkState +_080826A4: .4byte gPlayerState _080826A8: .4byte gRoomControls _080826AC: movs r0, #0x80 @@ -665,7 +665,7 @@ sub_080826FC: @ 0x080826FC sub_0808270C: @ 0x0808270C push {r4, r5, r6, lr} adds r5, r0, #0 - ldr r0, _08082768 @ =gLinkState + ldr r0, _08082768 @ =gPlayerState ldrb r1, [r0, #0x1c] movs r0, #0xf ands r0, r1 @@ -709,7 +709,7 @@ _0808272A: bl SetTile b _08082776 .align 2, 0 -_08082768: .4byte gLinkState +_08082768: .4byte gPlayerState _0808276C: .4byte gRoomControls _08082770: adds r0, r5, #0 @@ -757,7 +757,7 @@ sub_08082778: @ 0x08082778 ldrb r2, [r2] bl SetTile _080827C4: - ldr r0, _080827EC @ =gLinkState + ldr r0, _080827EC @ =gPlayerState ldrb r1, [r0, #0x1c] movs r0, #0xf ands r0, r1 @@ -777,7 +777,7 @@ _080827DE: b _080827F6 .align 2, 0 _080827E8: .4byte gRoomControls -_080827EC: .4byte gLinkState +_080827EC: .4byte gPlayerState _080827F0: adds r0, r5, #0 bl sub_0806F3E4 @@ -788,7 +788,7 @@ _080827F6: sub_080827F8: @ 0x080827F8 push {lr} adds r1, r0, #0 - ldr r0, _08082810 @ =gLinkState + ldr r0, _08082810 @ =gPlayerState ldrb r0, [r0, #0x1c] cmp r0, #0 bne _0808280C @@ -798,7 +798,7 @@ sub_080827F8: @ 0x080827F8 _0808280C: pop {pc} .align 2, 0 -_08082810: .4byte gLinkState +_08082810: .4byte gPlayerState thumb_func_start nullsub_512 nullsub_512: @ 0x08082814 diff --git a/asm/pullableLever.s b/asm/pullableLever.s index 538bbf7a..c3092d74 100644 --- a/asm/pullableLever.s +++ b/asm/pullableLever.s @@ -215,7 +215,7 @@ _0809137C: .4byte gUnk_081222B0 sub_08091380: @ 0x08091380 push {r4, r5, r6, r7, lr} adds r4, r0, #0 - ldr r7, _0809142C @ =gLinkEntity + ldr r7, _0809142C @ =gPlayerEntity adds r0, #0x75 ldrb r0, [r0] cmp r0, #0 @@ -267,7 +267,7 @@ _080913E0: ldrb r3, [r4, #0xb] cmp r0, r3 bne _0809142A - ldr r1, _08091434 @ =gLinkState + ldr r1, _08091434 @ =gPlayerState adds r0, r1, #0 adds r0, #0xa8 ldrb r0, [r0] @@ -279,7 +279,7 @@ _080913E0: ands r0, r1 cmp r0, #0 beq _0809142A - ldr r0, _0809142C @ =gLinkEntity + ldr r0, _0809142C @ =gPlayerEntity adds r0, #0x5a ldrb r1, [r0] adds r0, r5, #0 @@ -300,9 +300,9 @@ _080913E0: _0809142A: pop {r4, r5, r6, r7, pc} .align 2, 0 -_0809142C: .4byte gLinkEntity +_0809142C: .4byte gPlayerEntity _08091430: .4byte gUnk_081222B8 -_08091434: .4byte gLinkState +_08091434: .4byte gPlayerState thumb_func_start sub_08091438 sub_08091438: @ 0x08091438 @@ -458,7 +458,7 @@ sub_0809153C: @ 0x0809153C push {r6, r7} sub sp, #4 adds r5, r0, #0 - ldr r6, _080915A8 @ =gLinkEntity + ldr r6, _080915A8 @ =gPlayerEntity ldr r1, _080915AC @ =gUnk_081222C0 ldrb r0, [r5, #0xb] adds r0, r0, r1 @@ -506,7 +506,7 @@ _08091596: beq _080915BA b _080915E0 .align 2, 0 -_080915A8: .4byte gLinkEntity +_080915A8: .4byte gPlayerEntity _080915AC: .4byte gUnk_081222C0 _080915B0: cmp r0, #2 diff --git a/asm/pullableMushroom.s b/asm/pullableMushroom.s index a6ca50ef..9390dd8d 100644 --- a/asm/pullableMushroom.s +++ b/asm/pullableMushroom.s @@ -603,7 +603,7 @@ _0808AE80: sub_0808AE84: @ 0x0808AE84 push {lr} adds r2, r0, #0 - ldr r0, _0808AEA8 @ =gLinkState + ldr r0, _0808AEA8 @ =gPlayerState ldrb r0, [r0, #5] cmp r0, #0 bne _0808AE94 @@ -620,7 +620,7 @@ _0808AE94: bl _call_via_r1 pop {pc} .align 2, 0 -_0808AEA8: .4byte gLinkState +_0808AEA8: .4byte gPlayerState _0808AEAC: .4byte gUnk_081211DC thumb_func_start sub_0808AEB0 @@ -634,7 +634,7 @@ sub_0808AEB0: @ 0x0808AEB0 adds r0, r4, #0 bl sub_0808B1F0 adds r6, r0, #0 - ldr r5, _0808AF10 @ =gLinkState + ldr r5, _0808AF10 @ =gPlayerState adds r2, r5, #0 adds r2, #0x90 ldr r1, _0808AF14 @ =gUnk_081211E4 @@ -650,7 +650,7 @@ sub_0808AEB0: @ 0x0808AEB0 bl GetNextFrame cmp r6, #0x3f bhi _0808AF08 - ldr r0, _0808AF18 @ =gLinkEntity + ldr r0, _0808AF18 @ =gPlayerEntity ldrb r2, [r4, #0x15] movs r1, #0x40 bl sub_080044AE @@ -670,15 +670,15 @@ _0808AF08: strb r0, [r4, #0xf] b _0808AFD0 .align 2, 0 -_0808AF10: .4byte gLinkState +_0808AF10: .4byte gPlayerState _0808AF14: .4byte gUnk_081211E4 -_0808AF18: .4byte gLinkEntity +_0808AF18: .4byte gPlayerEntity _0808AF1C: .4byte 0x0000012F _0808AF20: ldrb r0, [r4, #0xf] cmp r0, #0 beq _0808AFD0 - ldr r2, _0808AF64 @ =gLinkEntity + ldr r2, _0808AF64 @ =gPlayerEntity ldrb r0, [r2, #0xc] cmp r0, #1 bne _0808AFD0 @@ -709,12 +709,12 @@ _0808AF20: strb r0, [r4, #0xd] b _0808AFD0 .align 2, 0 -_0808AF64: .4byte gLinkEntity +_0808AF64: .4byte gPlayerEntity _0808AF68: movs r6, #1 strb r6, [r4, #0xe] str r6, [r4, #0x7c] - ldr r5, _0808AFC8 @ =gLinkEntity + ldr r5, _0808AFC8 @ =gPlayerEntity ldrb r0, [r5, #0x14] lsrs r0, r0, #1 movs r1, #2 @@ -757,7 +757,7 @@ _0808AFB6: strh r0, [r5, #0x32] b _0808AFD0 .align 2, 0 -_0808AFC8: .4byte gLinkEntity +_0808AFC8: .4byte gPlayerEntity _0808AFCC: ldrh r0, [r4, #0x2e] strh r0, [r5, #0x2e] @@ -792,7 +792,7 @@ sub_0808AFF0: @ 0x0808AFF0 ldr r1, [r0] adds r0, r4, #0 bl _call_via_r1 - ldr r0, _0808B058 @ =gLinkState + ldr r0, _0808B058 @ =gPlayerState ldrb r1, [r0, #0x1c] movs r0, #0xf ands r0, r1 @@ -834,7 +834,7 @@ _0808B050: pop {r4, r5, pc} .align 2, 0 _0808B054: .4byte gUnk_081211EC -_0808B058: .4byte gLinkState +_0808B058: .4byte gPlayerState thumb_func_start sub_0808B05C sub_0808B05C: @ 0x0808B05C @@ -843,7 +843,7 @@ sub_0808B05C: @ 0x0808B05C ldrb r0, [r4, #0xa] cmp r0, #0 bne _0808B0AE - ldr r2, _0808B0B8 @ =gLinkEntity + ldr r2, _0808B0B8 @ =gPlayerEntity ldrb r0, [r2, #0x14] lsrs r0, r0, #1 movs r1, #2 @@ -882,7 +882,7 @@ _0808B0AE: strb r0, [r4, #0xd] pop {r4, pc} .align 2, 0 -_0808B0B8: .4byte gLinkEntity +_0808B0B8: .4byte gPlayerEntity thumb_func_start sub_0808B0BC sub_0808B0BC: @ 0x0808B0BC @@ -903,7 +903,7 @@ _0808B0D6: bl GetNextFrame b _0808B162 _0808B0DE: - ldr r6, _0808B148 @ =gLinkEntity + ldr r6, _0808B148 @ =gPlayerEntity ldrb r0, [r6, #0x14] movs r1, #0xe ands r1, r0 @@ -930,7 +930,7 @@ _0808B0DE: ldrb r0, [r6, #0xc] cmp r0, #1 bne _0808B162 - ldr r4, _0808B150 @ =gLinkState + ldr r4, _0808B150 @ =gPlayerState adds r0, r4, #0 adds r0, #0x26 ldrb r0, [r0] @@ -955,9 +955,9 @@ _0808B0DE: strb r0, [r1] b _0808B162 .align 2, 0 -_0808B148: .4byte gLinkEntity +_0808B148: .4byte gPlayerEntity _0808B14C: .4byte gUnk_08126EE4 -_0808B150: .4byte gLinkState +_0808B150: .4byte gPlayerState _0808B154: movs r0, #0x40 strh r0, [r5, #0x24] @@ -994,7 +994,7 @@ _0808B188: ands r0, r1 cmp r0, #0 beq _0808B1B8 - ldr r5, _0808B1AC @ =gLinkEntity + ldr r5, _0808B1AC @ =gPlayerEntity ldr r4, [r3, #0x50] ldrb r1, [r3, #0x14] lsls r2, r1, #1 @@ -1007,12 +1007,12 @@ _0808B188: adds r1, r1, r0 b _0808B1CE .align 2, 0 -_0808B1AC: .4byte gLinkEntity +_0808B1AC: .4byte gPlayerEntity _0808B1B0: .4byte gUnk_081211FC _0808B1B4: .4byte gUnk_081211F5 _0808B1B8: ldr r5, [r3, #0x50] - ldr r4, _0808B1E4 @ =gLinkEntity + ldr r4, _0808B1E4 @ =gPlayerEntity movs r0, #2 eors r0, r1 lsls r0, r0, #1 @@ -1035,7 +1035,7 @@ _0808B1CE: strh r0, [r3, #0x32] pop {r4, r5, pc} .align 2, 0 -_0808B1E4: .4byte gLinkEntity +_0808B1E4: .4byte gPlayerEntity _0808B1E8: .4byte gUnk_081211F4 _0808B1EC: .4byte gUnk_081211FD diff --git a/asm/pushableFurniture.s b/asm/pushableFurniture.s index 64069d3e..13c9d1d7 100644 --- a/asm/pushableFurniture.s +++ b/asm/pushableFurniture.s @@ -510,7 +510,7 @@ _0808FD1A: movs r0, #0x18 _0808FD1C: strb r0, [r4, #0xe] - ldr r0, _0808FD3C @ =gLinkState + ldr r0, _0808FD3C @ =gPlayerState ldr r0, [r0, #0x30] movs r1, #0x80 ands r0, r1 @@ -525,7 +525,7 @@ _0808FD30: movs r0, #1 b _0808FD42 .align 2, 0 -_0808FD3C: .4byte gLinkState +_0808FD3C: .4byte gPlayerState _0808FD40: movs r0, #0 _0808FD42: @@ -558,7 +558,7 @@ _0808FD6C: adds r0, #0x70 _0808FD70: ldrh r5, [r0] - ldr r0, _0808FD84 @ =gLinkState + ldr r0, _0808FD84 @ =gPlayerState ldr r0, [r0, #0x30] movs r1, #0x80 ands r0, r1 @@ -568,7 +568,7 @@ _0808FD70: strh r0, [r4, #0x24] b _0808FDB2 .align 2, 0 -_0808FD84: .4byte gLinkState +_0808FD84: .4byte gPlayerState _0808FD88: strh r1, [r4, #0x24] movs r0, #0x10 @@ -577,7 +577,7 @@ _0808FD8E: adds r0, r4, #0 adds r0, #0x7c ldrh r5, [r0] - ldr r0, _0808FDAC @ =gLinkState + ldr r0, _0808FDAC @ =gPlayerState ldr r0, [r0, #0x30] movs r1, #0x80 ands r0, r1 @@ -589,7 +589,7 @@ _0808FD8E: strb r1, [r4, #0xe] b _0808FDB6 .align 2, 0 -_0808FDAC: .4byte gLinkState +_0808FDAC: .4byte gPlayerState _0808FDB0: strh r1, [r4, #0x24] _0808FDB2: @@ -737,13 +737,13 @@ sub_0808FECC: @ 0x0808FECC push {r4, r5, lr} adds r2, r0, #0 movs r4, #1 - ldr r0, _0808FF18 @ =gLinkState + ldr r0, _0808FF18 @ =gPlayerState ldr r0, [r0, #0x30] movs r1, #0x80 ands r0, r1 cmp r0, #0 bne _0808FF10 - ldr r3, _0808FF1C @ =gLinkEntity + ldr r3, _0808FF1C @ =gPlayerEntity ldrb r0, [r3, #0xc] cmp r0, #6 bne _0808FF10 @@ -774,8 +774,8 @@ _0808FF12: adds r0, r4, #0 pop {r4, r5, pc} .align 2, 0 -_0808FF18: .4byte gLinkState -_0808FF1C: .4byte gLinkEntity +_0808FF18: .4byte gPlayerState +_0808FF1C: .4byte gPlayerEntity thumb_func_start sub_0808FF20 sub_0808FF20: @ 0x0808FF20 diff --git a/asm/pushableGrave.s b/asm/pushableGrave.s index c94d5a33..89e6e5fb 100644 --- a/asm/pushableGrave.s +++ b/asm/pushableGrave.s @@ -300,7 +300,7 @@ _080977C8: cmp r0, #0 bne _080977E4 ldr r0, _080977E8 @ =gRoomControls - ldr r1, _080977EC @ =gLinkEntity + ldr r1, _080977EC @ =gPlayerEntity str r1, [r0, #0x30] movs r1, #4 strb r1, [r0, #0xe] @@ -308,7 +308,7 @@ _080977E4: pop {r4, pc} .align 2, 0 _080977E8: .4byte gRoomControls -_080977EC: .4byte gLinkEntity +_080977EC: .4byte gPlayerEntity thumb_func_start nullsub_528 nullsub_528: @ 0x080977F0 diff --git a/asm/pushableLever.s b/asm/pushableLever.s index ac80275e..1109088d 100644 --- a/asm/pushableLever.s +++ b/asm/pushableLever.s @@ -69,7 +69,7 @@ sub_08098294: @ 0x08098294 bl sub_08079F8C cmp r0, #0 beq _080982FA - ldr r2, _080982FC @ =gLinkState + ldr r2, _080982FC @ =gPlayerState movs r0, #0x90 strb r0, [r2, #6] movs r0, #5 @@ -78,7 +78,7 @@ sub_08098294: @ 0x08098294 movs r1, #1 orrs r0, r1 str r0, [r2, #0x30] - ldr r1, _08098300 @ =gLinkEntity + ldr r1, _08098300 @ =gPlayerEntity strh r5, [r1, #0x2c] strh r5, [r1, #0x30] ldrb r0, [r1, #0x14] @@ -87,8 +87,8 @@ sub_08098294: @ 0x08098294 _080982FA: pop {r4, r5, pc} .align 2, 0 -_080982FC: .4byte gLinkState -_08098300: .4byte gLinkEntity +_080982FC: .4byte gPlayerState +_08098300: .4byte gPlayerEntity thumb_func_start sub_08098304 sub_08098304: @ 0x08098304 diff --git a/asm/pushableStatue.s b/asm/pushableStatue.s index 370a535f..2e013531 100644 --- a/asm/pushableStatue.s +++ b/asm/pushableStatue.s @@ -136,7 +136,7 @@ sub_080892C4: @ 0x080892C4 bl sub_080895C0 b _080892F6 _080892D8: - ldr r0, _080892F8 @ =gLinkState + ldr r0, _080892F8 @ =gPlayerState ldrb r0, [r0, #5] cmp r0, #0 bne _080892E4 @@ -154,7 +154,7 @@ _080892E4: _080892F6: pop {pc} .align 2, 0 -_080892F8: .4byte gLinkState +_080892F8: .4byte gPlayerState _080892FC: .4byte gUnk_08120CAC thumb_func_start sub_08089300 @@ -168,7 +168,7 @@ sub_08089300: @ 0x08089300 bne _0808932C movs r0, #1 strb r0, [r1] - ldr r1, _0808935C @ =gLinkEntity + ldr r1, _0808935C @ =gPlayerEntity ldrb r0, [r1, #0x14] ldr r2, _08089360 @ =gUnk_08120CB4 adds r0, r0, r2 @@ -203,7 +203,7 @@ _0808932C: beq _0808939A b _080893A0 .align 2, 0 -_0808935C: .4byte gLinkEntity +_0808935C: .4byte gPlayerEntity _08089360: .4byte gUnk_08120CB4 _08089364: .4byte 0x0000400B _08089368: @@ -238,7 +238,7 @@ _080893A0: bl sub_080896B0 cmp r0, #0 beq _080893D6 - ldr r2, _080893D8 @ =gLinkState + ldr r2, _080893D8 @ =gPlayerState movs r3, #0 movs r0, #0x10 strb r0, [r2, #0xc] @@ -250,7 +250,7 @@ _080893A0: movs r1, #1 orrs r0, r1 str r0, [r2, #0x30] - ldr r0, _080893DC @ =gLinkEntity + ldr r0, _080893DC @ =gPlayerEntity strh r3, [r0, #0x2c] strh r3, [r0, #0x30] ldrb r0, [r0, #0x14] @@ -263,8 +263,8 @@ _080893A0: _080893D6: pop {r4, r5, pc} .align 2, 0 -_080893D8: .4byte gLinkState -_080893DC: .4byte gLinkEntity +_080893D8: .4byte gPlayerState +_080893DC: .4byte gPlayerEntity thumb_func_start sub_080893E0 sub_080893E0: @ 0x080893E0 @@ -651,13 +651,13 @@ _080896AC: thumb_func_start sub_080896B0 sub_080896B0: @ 0x080896B0 push {r4, r5, r6, r7, lr} - ldr r0, _08089750 @ =gLinkState + ldr r0, _08089750 @ =gPlayerState ldrb r1, [r0, #5] movs r0, #0x1f ands r0, r1 cmp r0, #0x12 bne _08089768 - ldr r6, _08089754 @ =gLinkEntity + ldr r6, _08089754 @ =gPlayerEntity adds r0, r6, #0 adds r0, #0x5a ldrb r1, [r0] @@ -729,8 +729,8 @@ sub_080896B0: @ 0x080896B0 movs r0, #1 b _0808976A .align 2, 0 -_08089750: .4byte gLinkState -_08089754: .4byte gLinkEntity +_08089750: .4byte gPlayerState +_08089754: .4byte gPlayerEntity _08089758: .4byte gUnk_080B4468 _0808975C: .4byte gUnk_080B4488 _08089760: .4byte gRoomControls diff --git a/asm/respawnLink.s b/asm/respawnPlayer.s similarity index 83% rename from asm/respawnLink.s rename to asm/respawnPlayer.s index 92951a5e..0d488ede 100644 --- a/asm/respawnLink.s +++ b/asm/respawnPlayer.s @@ -6,8 +6,8 @@ .text - thumb_func_start ResetLink -ResetLink: @ 0x08077B2C + thumb_func_start ResetPlayer +ResetPlayer: @ 0x08077B2C push {r4, r5, lr} movs r4, #0 ldr r5, _08077B88 @ =gUnk_03000B80 @@ -19,7 +19,7 @@ _08077B32: adds r4, #1 cmp r4, #2 bls _08077B32 - ldr r2, _08077B8C @ =gLinkState + ldr r2, _08077B8C @ =gPlayerState adds r0, r2, #0 adds r0, #0x3d movs r3, #0 @@ -37,7 +37,7 @@ _08077B32: ldr r1, _08077B90 @ =0xF7FBFFFF ands r0, r1 str r0, [r2, #0x30] - ldr r0, _08077B94 @ =gLinkEntity + ldr r0, _08077B94 @ =gPlayerEntity str r3, [r0, #0x70] ldrb r1, [r2, #2] movs r0, #0xc0 @@ -58,6 +58,6 @@ _08077B86: pop {r4, r5, pc} .align 2, 0 _08077B88: .4byte gUnk_03000B80 -_08077B8C: .4byte gLinkState +_08077B8C: .4byte gPlayerState _08077B90: .4byte 0xF7FBFFFF -_08077B94: .4byte gLinkEntity \ No newline at end of file +_08077B94: .4byte gPlayerEntity \ No newline at end of file diff --git a/asm/rockChuchu.s b/asm/rockChuchu.s index 170f4f65..1d4bcc7b 100644 --- a/asm/rockChuchu.s +++ b/asm/rockChuchu.s @@ -79,7 +79,7 @@ _08022280: @ jump table .4byte _08022356 @ case 23 .4byte _080222F2 @ case 24 _080222E4: - ldr r0, _08022340 @ =gLinkState + ldr r0, _08022340 @ =gPlayerState adds r0, #0xac ldrh r1, [r0] movs r0, #8 @@ -124,7 +124,7 @@ _080222F2: str r5, [r4, #0x54] b _08022356 .align 2, 0 -_08022340: .4byte gLinkState +_08022340: .4byte gPlayerState _08022344: adds r0, r4, #0 adds r0, #0x3f diff --git a/asm/rollobite.s b/asm/rollobite.s index c7c48300..916f1612 100644 --- a/asm/rollobite.s +++ b/asm/rollobite.s @@ -338,7 +338,7 @@ sub_0802088C: @ 0x0802088C movs r1, #0x7f ands r1, r2 strb r1, [r0, #0x10] - ldr r1, _080208B0 @ =gLinkEntity + ldr r1, _080208B0 @ =gPlayerEntity ldrb r1, [r1, #0x14] adds r2, r0, #0 adds r2, #0x85 @@ -351,7 +351,7 @@ sub_0802088C: @ 0x0802088C strb r1, [r0] bx lr .align 2, 0 -_080208B0: .4byte gLinkEntity +_080208B0: .4byte gPlayerEntity thumb_func_start sub_080208B4 sub_080208B4: @ 0x080208B4 @@ -360,7 +360,7 @@ sub_080208B4: @ 0x080208B4 adds r4, r2, #0 adds r4, #0x85 ldrb r0, [r4] - ldr r5, _080208EC @ =gLinkEntity + ldr r5, _080208EC @ =gPlayerEntity ldrb r1, [r5, #0x14] subs r0, r0, r1 lsrs r1, r0, #0x1f @@ -384,7 +384,7 @@ _080208E6: strb r0, [r4] pop {r4, r5, pc} .align 2, 0 -_080208EC: .4byte gLinkEntity +_080208EC: .4byte gPlayerEntity thumb_func_start sub_080208F0 sub_080208F0: @ 0x080208F0 diff --git a/asm/ropeGolden.s b/asm/ropeGolden.s index f61b871f..52f63737 100644 --- a/asm/ropeGolden.s +++ b/asm/ropeGolden.s @@ -125,7 +125,7 @@ sub_0803827C: @ 0x0803827C strb r0, [r4, #0xf] b _080382BC _0803828C: - ldr r5, _080382B8 @ =gLinkEntity + ldr r5, _080382B8 @ =gPlayerEntity adds r0, r4, #0 adds r1, r5, #0 movs r2, #8 @@ -146,7 +146,7 @@ _080382B0: bl sub_080383E4 b _080382E8 .align 2, 0 -_080382B8: .4byte gLinkEntity +_080382B8: .4byte gPlayerEntity _080382BC: adds r0, r4, #0 movs r1, #2 @@ -283,7 +283,7 @@ sub_080383AC: @ 0x080383AC strb r0, [r4, #0xe] adds r0, #0xf8 strh r0, [r4, #0x24] - ldr r1, _080383E0 @ =gLinkEntity + ldr r1, _080383E0 @ =gPlayerEntity adds r0, r4, #0 bl GetFacingDirection adds r0, #4 @@ -300,7 +300,7 @@ sub_080383AC: @ 0x080383AC _080383DC: pop {r4, pc} .align 2, 0 -_080383E0: .4byte gLinkEntity +_080383E0: .4byte gPlayerEntity thumb_func_start sub_080383E4 sub_080383E4: @ 0x080383E4 @@ -313,7 +313,7 @@ sub_080383E4: @ 0x080383E4 movs r0, #0xa0 lsls r0, r0, #2 strh r0, [r4, #0x24] - ldr r1, _0803842C @ =gLinkEntity + ldr r1, _0803842C @ =gPlayerEntity adds r0, r4, #0 bl GetFacingDirection adds r0, #4 @@ -339,4 +339,4 @@ sub_080383E4: @ 0x080383E4 bl InitializeAnimation pop {r4, pc} .align 2, 0 -_0803842C: .4byte gLinkEntity +_0803842C: .4byte gPlayerEntity diff --git a/asm/sittingPerson.s b/asm/sittingPerson.s index 127bf469..006c76a4 100644 --- a/asm/sittingPerson.s +++ b/asm/sittingPerson.s @@ -89,7 +89,7 @@ sub_080637B8: @ 0x080637B8 adds r1, r4, #0 adds r1, #0x69 strb r0, [r1] - ldr r1, _08063800 @ =gLinkEntity + ldr r1, _08063800 @ =gPlayerEntity adds r0, r4, #0 bl GetFacingDirection bl sub_0806F5A4 @@ -106,7 +106,7 @@ _080637F2: bl sub_0806F118 b _0806382E .align 2, 0 -_08063800: .4byte gLinkEntity +_08063800: .4byte gPlayerEntity _08063804: adds r0, r4, #0 movs r1, #0 diff --git a/asm/smallTownMinish.s b/asm/smallTownMinish.s index 9b2484b7..378276a4 100644 --- a/asm/smallTownMinish.s +++ b/asm/smallTownMinish.s @@ -33,7 +33,7 @@ _0806E2A8: movs r1, #0 bl sub_0807DD94 _0806E2B0: - ldr r0, _0806E2CC @ =gLinkState + ldr r0, _0806E2CC @ =gPlayerState ldr r0, [r0, #0x30] movs r1, #0x80 ands r0, r1 @@ -47,7 +47,7 @@ _0806E2B0: strb r1, [r4, #0x18] b _0806E2DA .align 2, 0 -_0806E2CC: .4byte gLinkState +_0806E2CC: .4byte gPlayerState _0806E2D0: ldrb r1, [r4, #0x18] movs r0, #4 diff --git a/asm/specialFx.s b/asm/specialFx.s index 214abdc2..132bd8f9 100644 --- a/asm/specialFx.s +++ b/asm/specialFx.s @@ -449,7 +449,7 @@ sub_080847E0: @ 0x080847E0 bne _080847F0 bl DeleteThisEntity _080847F0: - ldr r4, _08084818 @ =gLinkEntity + ldr r4, _08084818 @ =gPlayerEntity ldr r3, _0808481C @ =0xFFFD0000 adds r0, r4, #0 adds r1, r5, #0 @@ -465,6 +465,6 @@ _080847F0: pop {r4, r5, pc} .align 2, 0 _08084814: .4byte gRoomControls -_08084818: .4byte gLinkEntity +_08084818: .4byte gPlayerEntity _0808481C: .4byte 0xFFFD0000 _08084820: .4byte 0x0000FFFD diff --git a/asm/spinyBeetle.s b/asm/spinyBeetle.s index 00fc6513..8a910315 100644 --- a/asm/spinyBeetle.s +++ b/asm/spinyBeetle.s @@ -292,34 +292,34 @@ _080339C6: beq _08033A72 movs r1, #0x32 ldrsh r0, [r4, r1] - ldr r1, _080339DC @ =gLinkEntity + ldr r1, _080339DC @ =gPlayerEntity movs r2, #0x32 ldrsh r1, [r1, r2] b _08033A0A .align 2, 0 -_080339DC: .4byte gLinkEntity +_080339DC: .4byte gPlayerEntity _080339E0: - ldr r0, _080339EC @ =gLinkEntity + ldr r0, _080339EC @ =gPlayerEntity movs r1, #0x32 ldrsh r0, [r0, r1] movs r2, #0x32 ldrsh r1, [r4, r2] b _08033A0A .align 2, 0 -_080339EC: .4byte gLinkEntity +_080339EC: .4byte gPlayerEntity _080339F0: - ldr r0, _080339FC @ =gLinkEntity + ldr r0, _080339FC @ =gPlayerEntity movs r1, #0x2e ldrsh r0, [r0, r1] movs r2, #0x2e ldrsh r1, [r4, r2] b _08033A0A .align 2, 0 -_080339FC: .4byte gLinkEntity +_080339FC: .4byte gPlayerEntity _08033A00: movs r1, #0x2e ldrsh r0, [r4, r1] - ldr r1, _08033A74 @ =gLinkEntity + ldr r1, _08033A74 @ =gPlayerEntity movs r2, #0x2e ldrsh r1, [r1, r2] _08033A0A: @@ -378,7 +378,7 @@ _08033A2C: _08033A72: pop {r4, r5, pc} .align 2, 0 -_08033A74: .4byte gLinkEntity +_08033A74: .4byte gPlayerEntity _08033A78: .4byte 0xFFF00000 thumb_func_start sub_08033A7C @@ -942,7 +942,7 @@ _08033EA4: .4byte 0xFFF00000 sub_08033EA8: @ 0x08033EA8 push {lr} adds r2, r0, #0 - ldr r0, _08033EC4 @ =gLinkState + ldr r0, _08033EC4 @ =gPlayerState adds r0, #0xac ldrh r1, [r0] movs r0, #8 @@ -954,7 +954,7 @@ sub_08033EA8: @ 0x08033EA8 movs r0, #0x95 b _08033ECE .align 2, 0 -_08033EC4: .4byte gLinkState +_08033EC4: .4byte gPlayerState _08033EC8: adds r1, r2, #0 adds r1, #0x3f diff --git a/asm/stairsInteract.s b/asm/stairsInteract.s index 5c7e720c..6a20386a 100644 --- a/asm/stairsInteract.s +++ b/asm/stairsInteract.s @@ -28,7 +28,7 @@ sub_080731D8: @ 0x080731D8 orrs r0, r7 strh r0, [r4, #0x2e] strh r2, [r4, #0x2c] - ldr r6, _08073214 @ =gLinkState + ldr r6, _08073214 @ =gPlayerState adds r0, r6, #0 adds r0, #0x38 ldrb r0, [r0] @@ -38,7 +38,7 @@ sub_080731D8: @ 0x080731D8 strb r0, [r4, #0xd] b _0807329A .align 2, 0 -_08073214: .4byte gLinkState +_08073214: .4byte gPlayerState _08073218: ldrb r0, [r4, #0x18] movs r1, #3 @@ -103,7 +103,7 @@ _08073294: adds r0, r4, #0 bl sub_08066DE4 _0807329A: - ldr r2, _080732AC @ =gLinkState + ldr r2, _080732AC @ =gPlayerState ldr r0, [r2, #0x30] movs r1, #8 ands r0, r1 @@ -112,7 +112,7 @@ _0807329A: ldr r0, _080732B0 @ =0x00000404 b _080732B8 .align 2, 0 -_080732AC: .4byte gLinkState +_080732AC: .4byte gPlayerState _080732B0: .4byte 0x00000404 _080732B4: movs r0, #0x82 @@ -123,7 +123,7 @@ _080732B8: movs r0, #0 str r0, [r1, #0x30] bl sub_0807A108 - bl ResetLink + bl ResetPlayer pop {r4, r5, r6, r7, pc} .align 2, 0 _080732CC: .4byte gRoomControls diff --git a/asm/stalfos.s b/asm/stalfos.s index a751e19b..a8bb51a1 100644 --- a/asm/stalfos.s +++ b/asm/stalfos.s @@ -332,7 +332,7 @@ _0803950A: strb r0, [r4, #0xc] movs r0, #0xff strb r0, [r4, #0x15] - ldr r1, _0803952C @ =gLinkEntity + ldr r1, _0803952C @ =gPlayerEntity adds r0, r4, #0 bl GetFacingDirection adds r0, #4 @@ -345,7 +345,7 @@ _0803950A: _0803952A: pop {r4, pc} .align 2, 0 -_0803952C: .4byte gLinkEntity +_0803952C: .4byte gPlayerEntity thumb_func_start sub_08039530 sub_08039530: @ 0x08039530 @@ -847,13 +847,13 @@ sub_080398C0: @ 0x080398C0 bl sub_0806FCB8 cmp r0, #0 beq _08039908 - ldr r1, _08039904 @ =gLinkEntity + ldr r1, _08039904 @ =gPlayerEntity adds r0, r4, #0 bl GetFacingDirection b _08039928 .align 2, 0 _08039900: .4byte gUnk_020000B0 -_08039904: .4byte gLinkEntity +_08039904: .4byte gPlayerEntity _08039908: adds r0, r4, #0 bl sub_08049FA0 diff --git a/asm/steam.s b/asm/steam.s index 912b1189..bb80c5e1 100644 --- a/asm/steam.s +++ b/asm/steam.s @@ -71,7 +71,7 @@ _080981DA: adds r3, #0x68 cmp r0, #0 beq _08098222 - ldr r0, _0809820C @ =gLinkEntity + ldr r0, _0809820C @ =gPlayerEntity movs r2, #0x2e ldrsh r1, [r0, r2] ldr r0, _08098210 @ =gRoomControls @@ -90,7 +90,7 @@ _080981DA: b _08098220 .align 2, 0 _08098208: .4byte 0x00000808 -_0809820C: .4byte gLinkEntity +_0809820C: .4byte gPlayerEntity _08098210: .4byte gRoomControls _08098214: ldrb r1, [r3] diff --git a/asm/stockwell.s b/asm/stockwell.s index 03e0c55a..013f39ac 100644 --- a/asm/stockwell.s +++ b/asm/stockwell.s @@ -352,7 +352,7 @@ sub_080652E4: @ 0x080652E4 strb r0, [r1, #0xe] b _08065308 _080652F4: - ldr r0, _0806530C @ =gLinkEntity + ldr r0, _0806530C @ =gPlayerEntity ldrb r0, [r0, #0xc] cmp r0, #8 beq _08065308 @@ -364,7 +364,7 @@ _080652F4: _08065308: pop {pc} .align 2, 0 -_0806530C: .4byte gLinkEntity +_0806530C: .4byte gPlayerEntity _08065310: .4byte 0x00002C19 thumb_func_start sub_08065314 diff --git a/asm/sturgeon.s b/asm/sturgeon.s index e6413097..6537ba17 100644 --- a/asm/sturgeon.s +++ b/asm/sturgeon.s @@ -71,7 +71,7 @@ _08064B00: orrs r0, r1 strb r0, [r4, #0xc] strb r3, [r2] - ldr r1, _08064B30 @ =gLinkEntity + ldr r1, _08064B30 @ =gPlayerEntity adds r0, r4, #0 bl GetFacingDirection bl sub_0806F5A4 @@ -82,7 +82,7 @@ _08064B00: bl sub_0806F118 b _08064B42 .align 2, 0 -_08064B30: .4byte gLinkEntity +_08064B30: .4byte gPlayerEntity _08064B34: adds r0, r4, #0 movs r1, #0 diff --git a/asm/sub_080A276C.s b/asm/sub_080A276C.s index bc815c28..9eac5420 100644 --- a/asm/sub_080A276C.s +++ b/asm/sub_080A276C.s @@ -33,7 +33,7 @@ sub_080A276C: @ 0x080A276C adds r0, r6, #0 movs r1, #6 bl sub_0805EA78 - ldr r4, _080A2828 @ =gLinkEntity + ldr r4, _080A2828 @ =gPlayerEntity adds r0, r4, #0 adds r1, r6, #0 bl CopyPosition @@ -57,7 +57,7 @@ sub_080A276C: @ 0x080A276C ldrb r0, [r0] adds r1, #2 strb r0, [r1] - ldr r1, _080A2834 @ =gLinkState + ldr r1, _080A2834 @ =gPlayerState ldrb r0, [r1, #7] adds r2, r6, #0 adds r2, #0x6b @@ -100,7 +100,7 @@ _080A2820: mov r8, r3 pop {r4, r5, r6, r7, pc} .align 2, 0 -_080A2828: .4byte gLinkEntity +_080A2828: .4byte gPlayerEntity _080A282C: .4byte gUnk_03003DC0 _080A2830: .4byte gUnk_02034490 -_080A2834: .4byte gLinkState \ No newline at end of file +_080A2834: .4byte gPlayerState \ No newline at end of file diff --git a/asm/tingleSiblings.s b/asm/tingleSiblings.s index e8d3f96c..d732fd78 100644 --- a/asm/tingleSiblings.s +++ b/asm/tingleSiblings.s @@ -46,7 +46,7 @@ _08064E1A: movs r0, #0 strb r1, [r4, #0xc] strb r0, [r2] - ldr r1, _08064E48 @ =gLinkEntity + ldr r1, _08064E48 @ =gPlayerEntity adds r0, r4, #0 bl GetFacingDirection bl sub_0806F5A4 @@ -57,7 +57,7 @@ _08064E1A: bl sub_0806F118 b _08064E6A .align 2, 0 -_08064E48: .4byte gLinkEntity +_08064E48: .4byte gPlayerEntity _08064E4C: adds r0, r4, #0 movs r1, #0 diff --git a/asm/townMinish.s b/asm/townMinish.s index c0c2d4ce..18494800 100644 --- a/asm/townMinish.s +++ b/asm/townMinish.s @@ -14,7 +14,7 @@ sub_0806AC3C: @ 0x0806AC3C ldrb r0, [r0] cmp r0, #3 bhi _0806ACBA - ldr r4, _0806AC6C @ =gLinkEntity + ldr r4, _0806AC6C @ =gPlayerEntity adds r0, r5, #0 adds r1, r4, #0 movs r2, #0x18 @@ -30,7 +30,7 @@ sub_0806AC3C: @ 0x0806AC3C ands r2, r0 b _0806AC74 .align 2, 0 -_0806AC6C: .4byte gLinkEntity +_0806AC6C: .4byte gPlayerEntity _0806AC70: ldrb r0, [r5, #0x14] lsls r2, r0, #2 @@ -161,7 +161,7 @@ _0806AD44: movs r0, #2 strb r0, [r4, #0xc] strb r1, [r5] - ldr r1, _0806ADAC @ =gLinkEntity + ldr r1, _0806ADAC @ =gPlayerEntity adds r0, r4, #0 bl GetFacingDirection bl sub_0806F5A4 @@ -178,7 +178,7 @@ _0806AD8A: ldrb r0, [r4, #0xa] cmp r0, #1 bne _0806ADEA - ldr r0, _0806ADAC @ =gLinkEntity + ldr r0, _0806ADAC @ =gPlayerEntity ldrb r3, [r0, #0x14] lsrs r3, r3, #1 ldr r0, _0806ADB0 @ =gUnk_081126E4 @@ -192,7 +192,7 @@ _0806AD8A: bl sub_08078850 b _0806ADEA .align 2, 0 -_0806ADAC: .4byte gLinkEntity +_0806ADAC: .4byte gPlayerEntity _0806ADB0: .4byte gUnk_081126E4 _0806ADB4: .4byte gUnk_081126D4 _0806ADB8: diff --git a/asm/treeHidingPortal.s b/asm/treeHidingPortal.s index e579293c..b4c79609 100644 --- a/asm/treeHidingPortal.s +++ b/asm/treeHidingPortal.s @@ -9,14 +9,14 @@ thumb_func_start sub_0809E9A0 sub_0809E9A0: @ 0x0809E9A0 push {r4, r5, r6, lr} - ldr r5, _0809E9B0 @ =gLinkEntity + ldr r5, _0809E9B0 @ =gPlayerEntity ldrb r2, [r5, #0xc] cmp r2, #6 beq _0809E9B4 movs r0, #0 b _0809E9F0 .align 2, 0 -_0809E9B0: .4byte gLinkEntity +_0809E9B0: .4byte gPlayerEntity _0809E9B4: ldrb r0, [r5, #0x14] ands r2, r0 diff --git a/asm/treeItem.s b/asm/treeItem.s index 14b0f577..dde58214 100644 --- a/asm/treeItem.s +++ b/asm/treeItem.s @@ -100,7 +100,7 @@ _08049C28: .4byte 0x0000FFE0 sub_08049C2C: @ 0x08049C2C push {r4, r5, r6, lr} adds r2, r0, #0 - ldr r3, _08049CA4 @ =gLinkEntity + ldr r3, _08049CA4 @ =gPlayerEntity ldrb r0, [r3, #0xc] cmp r0, #6 bne _08049CA8 @@ -163,7 +163,7 @@ _08049C9E: movs r0, #1 b _08049CAA .align 2, 0 -_08049CA4: .4byte gLinkEntity +_08049CA4: .4byte gPlayerEntity _08049CA8: movs r0, #0 _08049CAA: diff --git a/asm/vaatiArm.s b/asm/vaatiArm.s index 0ebd0163..fcbaf7fa 100644 --- a/asm/vaatiArm.s +++ b/asm/vaatiArm.s @@ -969,7 +969,7 @@ sub_08042C34: @ 0x08042C34 ands r1, r0 ldr r0, _08042D14 @ =gUnk_080D12F8 adds r1, r1, r0 - ldr r3, _08042D18 @ =gLinkEntity + ldr r3, _08042D18 @ =gPlayerEntity movs r0, #0x2e ldrsh r2, [r3, r0] movs r0, #0 @@ -1067,7 +1067,7 @@ _08042D0C: pop {r4, r5, r6, r7, pc} .align 2, 0 _08042D14: .4byte gUnk_080D12F8 -_08042D18: .4byte gLinkEntity +_08042D18: .4byte gPlayerEntity _08042D1C: .4byte gRoomControls _08042D20: .4byte gUnk_080D1419 @@ -1330,7 +1330,7 @@ sub_08042EF4: @ 0x08042EF4 lsls r0, r0, #0x18 cmp r0, #0 bne _08042F4E - ldr r0, _08042F38 @ =gLinkEntity + ldr r0, _08042F38 @ =gPlayerEntity movs r2, #0x2e ldrsh r1, [r0, r2] movs r3, #0x32 @@ -1346,7 +1346,7 @@ sub_08042EF4: @ 0x08042EF4 strb r0, [r4, #0xe] b _08042F4E .align 2, 0 -_08042F38: .4byte gLinkEntity +_08042F38: .4byte gPlayerEntity _08042F3C: movs r0, #5 strb r0, [r4, #0xd] @@ -3307,7 +3307,7 @@ _08043DAC: .4byte gUnk_080D13E9 sub_08043DB0: @ 0x08043DB0 push {r4, r5, r6, lr} adds r5, r0, #0 - ldr r0, _08043E48 @ =gLinkState + ldr r0, _08043E48 @ =gPlayerState ldr r0, [r0, #0x30] movs r1, #0x80 ands r0, r1 @@ -3379,7 +3379,7 @@ _08043DFE: strh r1, [r0] b _08043E70 .align 2, 0 -_08043E48: .4byte gLinkState +_08043E48: .4byte gPlayerState _08043E4C: .4byte gRoomControls _08043E50: .4byte gUnk_080D13EC _08043E54: .4byte gScreenTransition diff --git a/asm/vaatiEyesMacro.s b/asm/vaatiEyesMacro.s index 111f7431..4e3d3252 100644 --- a/asm/vaatiEyesMacro.s +++ b/asm/vaatiEyesMacro.s @@ -329,7 +329,7 @@ _0802EED6: ldr r0, [r4, #0x50] adds r1, r4, #0 bl CopyPositionAndSpriteOffset - ldr r1, _0802EF14 @ =gLinkEntity + ldr r1, _0802EF14 @ =gPlayerEntity adds r0, r4, #0 bl GetFacingDirection adds r0, #1 @@ -356,7 +356,7 @@ _0802EF00: strb r0, [r1] pop {r4, pc} .align 2, 0 -_0802EF14: .4byte gLinkEntity +_0802EF14: .4byte gPlayerEntity _0802EF18: .4byte gUnk_080CDE70 thumb_func_start sub_0802EF1C @@ -459,7 +459,7 @@ sub_0802EFB8: @ 0x0802EFB8 ands r5, r6 b _0802EFE0 _0802EFD2: - ldr r0, _0802F01C @ =gLinkEntity + ldr r0, _0802F01C @ =gPlayerEntity adds r1, r4, #0 bl GetFacingDirection adds r5, r0, #4 @@ -496,7 +496,7 @@ _0802EFE0: strb r0, [r4, #0x15] b _0802F044 .align 2, 0 -_0802F01C: .4byte gLinkEntity +_0802F01C: .4byte gPlayerEntity _0802F020: .4byte gRoomControls _0802F024: .4byte gUnk_080B4488 _0802F028: diff --git a/asm/vaatiProjectile.s b/asm/vaatiProjectile.s index b1e67640..9e312e19 100644 --- a/asm/vaatiProjectile.s +++ b/asm/vaatiProjectile.s @@ -76,7 +76,7 @@ sub_0803E0DC: @ 0x0803E0DC rsbs r0, r0, #0 ands r0, r1 strb r0, [r2] - ldr r3, _0803E154 @ =gLinkEntity + ldr r3, _0803E154 @ =gPlayerEntity ldrb r1, [r3, #0x10] adds r0, r6, #0 ands r0, r1 @@ -109,14 +109,14 @@ sub_0803E0DC: @ 0x0803E0DC ands r0, r1 b _0803E16A .align 2, 0 -_0803E154: .4byte gLinkEntity +_0803E154: .4byte gPlayerEntity _0803E158: - ldr r2, _0803E178 @ =gLinkState + ldr r2, _0803E178 @ =gPlayerState ldr r0, [r2, #0x30] ldr r1, _0803E17C @ =0xFFFFFEFF ands r0, r1 str r0, [r2, #0x30] - ldr r2, _0803E180 @ =gLinkEntity + ldr r2, _0803E180 @ =gPlayerEntity ldrb r1, [r2, #0x10] movs r0, #0x80 orrs r0, r1 @@ -128,9 +128,9 @@ _0803E16C: bl sub_0804AA30 pop {r4, r5, r6, pc} .align 2, 0 -_0803E178: .4byte gLinkState +_0803E178: .4byte gPlayerState _0803E17C: .4byte 0xFFFFFEFF -_0803E180: .4byte gLinkEntity +_0803E180: .4byte gPlayerEntity _0803E184: .4byte gUnk_080D0648 thumb_func_start sub_0803E188 @@ -353,7 +353,7 @@ sub_0803E314: @ 0x0803E314 bne _0803E332 movs r0, #1 strb r0, [r4, #0xc] - ldr r1, _0803E33C @ =gLinkEntity + ldr r1, _0803E33C @ =gPlayerEntity adds r0, r4, #0 bl GetFacingDirection strb r0, [r4, #0x15] @@ -362,7 +362,7 @@ _0803E332: bl GetNextFrame pop {r4, pc} .align 2, 0 -_0803E33C: .4byte gLinkEntity +_0803E33C: .4byte gPlayerEntity thumb_func_start sub_0803E340 sub_0803E340: @ 0x0803E340 @@ -468,7 +468,7 @@ _0803E3F8: .4byte 0xFFFF0000 sub_0803E3FC: @ 0x0803E3FC push {r4, lr} adds r4, r0, #0 - ldr r1, _0803E438 @ =gLinkEntity + ldr r1, _0803E438 @ =gPlayerEntity ldrh r0, [r1, #0x2e] strh r0, [r4, #0x2e] ldrh r0, [r1, #0x32] @@ -495,7 +495,7 @@ _0803E42E: bl sub_0803E2A8 b _0803E442 .align 2, 0 -_0803E438: .4byte gLinkEntity +_0803E438: .4byte gPlayerEntity _0803E43C: adds r0, r2, #0 adds r0, #8 @@ -507,8 +507,8 @@ _0803E442: sub_0803E444: @ 0x0803E444 push {r4, lr} adds r4, r0, #0 - bl ResetLink - ldr r2, _0803E478 @ =gLinkState + bl ResetPlayer + ldr r2, _0803E478 @ =gPlayerState ldrb r1, [r2, #0x1a] movs r0, #0x80 orrs r1, r0 @@ -522,15 +522,15 @@ sub_0803E444: @ 0x0803E444 adds r0, r4, #0 movs r2, #0 bl sub_0806FA90 - ldr r1, _0803E47C @ =gLinkEntity + ldr r1, _0803E47C @ =gPlayerEntity adds r1, #0x63 ldrb r0, [r1] adds r0, #0xe strb r0, [r1] pop {r4, pc} .align 2, 0 -_0803E478: .4byte gLinkState -_0803E47C: .4byte gLinkEntity +_0803E478: .4byte gPlayerState +_0803E47C: .4byte gPlayerEntity thumb_func_start sub_0803E480 sub_0803E480: @ 0x0803E480 @@ -609,7 +609,7 @@ sub_0803E4D8: @ 0x0803E4D8 ands r0, r2 lsls r0, r0, #6 orrs r4, r0 - ldr r0, _0803E520 @ =gLinkEntity + ldr r0, _0803E520 @ =gPlayerEntity adds r5, r0, #0 adds r5, #0x38 ldrb r1, [r5] @@ -625,5 +625,5 @@ _0803E518: pop {r4, r5, pc} .align 2, 0 _0803E51C: .4byte gRoomControls -_0803E520: .4byte gLinkEntity +_0803E520: .4byte gPlayerEntity _0803E524: .4byte 0x00004074 diff --git a/asm/vaatiRebornEnemy.s b/asm/vaatiRebornEnemy.s index 4d9ee088..83d5f0c1 100644 --- a/asm/vaatiRebornEnemy.s +++ b/asm/vaatiRebornEnemy.s @@ -578,7 +578,7 @@ _0803D4FC: ldrb r0, [r0] cmp r0, #4 bls _0803D52E - ldr r1, _0803D544 @ =gLinkEntity + ldr r1, _0803D544 @ =gPlayerEntity ldrh r0, [r1, #0x2e] strh r0, [r4, #0x2e] ldrh r0, [r1, #0x32] @@ -597,7 +597,7 @@ _0803D52E: strb r0, [r4, #0xc] b _0803D54E .align 2, 0 -_0803D544: .4byte gLinkEntity +_0803D544: .4byte gPlayerEntity _0803D548: movs r0, #0 strb r0, [r2] @@ -792,7 +792,7 @@ _0803D68E: ldrb r0, [r5] cmp r0, #0xff bne _0803D6C8 - ldr r1, _0803D6F8 @ =gLinkEntity + ldr r1, _0803D6F8 @ =gPlayerEntity adds r0, r4, #0 bl GetFacingDirection adds r0, #2 @@ -829,7 +829,7 @@ _0803D6EE: bl UpdateAnimationSingleFrame pop {r4, r5, pc} .align 2, 0 -_0803D6F8: .4byte gLinkEntity +_0803D6F8: .4byte gPlayerEntity _0803D6FC: .4byte gUnk_080D04C0 thumb_func_start sub_0803D700 @@ -936,7 +936,7 @@ _0803D78E: ands r0, r1 adds r0, #0x40 strb r0, [r4, #0xf] - ldr r1, _0803D7E0 @ =gLinkEntity + ldr r1, _0803D7E0 @ =gPlayerEntity adds r0, r4, #0 bl GetFacingDirection movs r1, #0x10 @@ -945,7 +945,7 @@ _0803D78E: orrs r0, r1 b _0803D81A .align 2, 0 -_0803D7E0: .4byte gLinkEntity +_0803D7E0: .4byte gPlayerEntity _0803D7E4: ldrb r0, [r6] adds r0, #1 @@ -2070,7 +2070,7 @@ _0803E046: ldrh r0, [r2, #6] adds r1, r0, #0 adds r1, #0x58 - ldr r0, _0803E088 @ =gLinkEntity + ldr r0, _0803E088 @ =gPlayerEntity movs r3, #0x2e ldrsh r0, [r0, r3] cmp r1, r0 @@ -2096,4 +2096,4 @@ _0803E082: pop {r4, r5, pc} .align 2, 0 _0803E084: .4byte gRoomControls -_0803E088: .4byte gLinkEntity +_0803E088: .4byte gPlayerEntity diff --git a/asm/vaatiTransfigured.s b/asm/vaatiTransfigured.s index 66e1aec0..adec010a 100644 --- a/asm/vaatiTransfigured.s +++ b/asm/vaatiTransfigured.s @@ -1486,7 +1486,7 @@ _08040286: _0804029E: cmp r2, #2 bne _08040382 - ldr r1, _080402DC @ =gLinkEntity + ldr r1, _080402DC @ =gPlayerEntity adds r0, r4, #0 bl GetFacingDirection lsls r0, r0, #1 @@ -1516,7 +1516,7 @@ _080402C6: strb r0, [r4, #0x18] b _08040382 .align 2, 0 -_080402DC: .4byte gLinkEntity +_080402DC: .4byte gPlayerEntity _080402E0: .4byte gUnk_080D0B18 _080402E4: adds r5, r4, #0 @@ -2576,7 +2576,7 @@ _08040AB0: ldrb r0, [r5] cmp r0, #0x8a bne _08040AC8 - ldr r0, _08040AD0 @ =gLinkState + ldr r0, _08040AD0 @ =gPlayerState adds r0, #0xa0 ldrb r0, [r0] cmp r0, #5 @@ -2589,7 +2589,7 @@ _08040AC8: pop {r4, r5, pc} .align 2, 0 _08040ACC: .4byte 0x00000127 -_08040AD0: .4byte gLinkState +_08040AD0: .4byte gPlayerState thumb_func_start sub_08040AD4 sub_08040AD4: @ 0x08040AD4 diff --git a/asm/vaatiWrath.s b/asm/vaatiWrath.s index df92529a..a02a4eb0 100644 --- a/asm/vaatiWrath.s +++ b/asm/vaatiWrath.s @@ -322,9 +322,9 @@ _08041592: orrs r0, r2 strb r0, [r1] ldr r1, _080415C0 @ =gRoomControls - ldr r0, _080415C4 @ =gLinkEntity + ldr r0, _080415C4 @ =gPlayerEntity str r0, [r1, #0x30] - ldr r0, _080415C8 @ =gLinkState + ldr r0, _080415C8 @ =gPlayerState adds r0, #0x8b movs r1, #1 strb r1, [r0] @@ -332,8 +332,8 @@ _08041592: .align 2, 0 _080415BC: .4byte gScreenTransition _080415C0: .4byte gRoomControls -_080415C4: .4byte gLinkEntity -_080415C8: .4byte gLinkState +_080415C4: .4byte gPlayerEntity +_080415C8: .4byte gPlayerState _080415CC: adds r0, r4, #0 bl sub_08042004 @@ -781,7 +781,7 @@ _08041924: lsrs r2, r0, #0x18 cmp r2, #0 bne _0804197A - ldr r0, _0804196C @ =gLinkEntity + ldr r0, _0804196C @ =gPlayerEntity movs r1, #0x2e ldrsh r0, [r0, r1] movs r5, #0x2e @@ -810,7 +810,7 @@ _08041924: strb r1, [r0, #0xe] b _0804197A .align 2, 0 -_0804196C: .4byte gLinkEntity +_0804196C: .4byte gPlayerEntity _08041970: movs r0, #7 strb r0, [r4, #0xc] @@ -1180,7 +1180,7 @@ sub_08041BE8: @ 0x08041BE8 ldr r2, [r6, #0x64] str r5, [r2, #0x10] ldr r1, _08041CC8 @ =gRoomControls - ldr r0, _08041CCC @ =gLinkEntity + ldr r0, _08041CCC @ =gPlayerEntity str r0, [r1, #0x30] ldr r7, [r2, #0x1c] str r5, [r7, #0x64] @@ -1216,7 +1216,7 @@ _08041CBA: _08041CC0: .4byte 0x000001F5 _08041CC4: .4byte 0x0000016B _08041CC8: .4byte gRoomControls -_08041CCC: .4byte gLinkEntity +_08041CCC: .4byte gPlayerEntity thumb_func_start sub_08041CD0 sub_08041CD0: @ 0x08041CD0 @@ -1761,7 +1761,7 @@ _080420B8: adds r3, r7, #0 b _08042118 _080420E4: - ldr r0, _080420FC @ =gLinkEntity + ldr r0, _080420FC @ =gPlayerEntity movs r4, #0x32 ldrsh r1, [r0, r4] adds r2, r0, #0 @@ -1773,7 +1773,7 @@ _080420E4: adds r3, #0x18 b _0804210C .align 2, 0 -_080420FC: .4byte gLinkEntity +_080420FC: .4byte gPlayerEntity _08042100: .4byte gRoomControls _08042104: movs r1, #0x32 @@ -1817,7 +1817,7 @@ _0804213E: movs r0, #0x32 ldrsh r1, [r4, r0] subs r1, #0x44 - ldr r3, _0804216C @ =gLinkEntity + ldr r3, _0804216C @ =gPlayerEntity movs r2, #0x32 ldrsh r0, [r3, r2] subs r0, r0, r1 @@ -1836,7 +1836,7 @@ _0804213E: ldr r5, [r0, #0x18] b _0804217A .align 2, 0 -_0804216C: .4byte gLinkEntity +_0804216C: .4byte gPlayerEntity _08042170: subs r0, r1, r2 cmp r0, #0x38 @@ -2155,7 +2155,7 @@ sub_080423A4: @ 0x080423A4 _080423CC: .4byte gScreenTransition _080423D0: .4byte gUnk_02002A40 _080423D4: - ldr r2, _08042420 @ =gLinkState + ldr r2, _08042420 @ =gPlayerState adds r0, r2, #0 adds r0, #0xa9 ldrb r0, [r0] @@ -2166,7 +2166,7 @@ _080423D4: ldr r0, [r2, #0x2c] cmp r0, #0 bne _0804241C - ldr r1, _08042424 @ =gLinkEntity + ldr r1, _08042424 @ =gPlayerEntity adds r0, r1, #0 adds r0, #0x7a ldrh r0, [r0] @@ -2194,8 +2194,8 @@ _0804240A: _0804241C: pop {r4, pc} .align 2, 0 -_08042420: .4byte gLinkState -_08042424: .4byte gLinkEntity +_08042420: .4byte gPlayerState +_08042424: .4byte gPlayerEntity thumb_func_start sub_08042428 sub_08042428: @ 0x08042428 @@ -2295,7 +2295,7 @@ _080424C6: ldrb r0, [r0] cmp r0, #0x12 bne _08042502 - ldr r1, _08042504 @ =gLinkEntity + ldr r1, _08042504 @ =gPlayerEntity adds r0, r4, #0 bl GetFacingDirection ldr r1, _08042508 @ =gUnk_080D0EB0 @@ -2309,7 +2309,7 @@ _080424C6: _08042502: pop {r4, pc} .align 2, 0 -_08042504: .4byte gLinkEntity +_08042504: .4byte gPlayerEntity _08042508: .4byte gUnk_080D0EB0 thumb_func_start sub_0804250C diff --git a/asm/wallMaster.s b/asm/wallMaster.s index 8a7f47f4..bf09db0b 100644 --- a/asm/wallMaster.s +++ b/asm/wallMaster.s @@ -69,7 +69,7 @@ _0802A474: adds r0, r2, #0 ands r0, r1 strb r0, [r4, #0x10] - ldr r1, _0802A4D8 @ =gLinkEntity + ldr r1, _0802A4D8 @ =gPlayerEntity ldrh r0, [r1, #0x2e] adds r2, r4, #0 adds r2, #0x7e @@ -114,7 +114,7 @@ _0802A4CE: bl sub_0804AA30 pop {r4, pc} .align 2, 0 -_0802A4D8: .4byte gLinkEntity +_0802A4D8: .4byte gPlayerEntity _0802A4DC: .4byte gUnk_080CD07C thumb_func_start nullsub_142 @@ -353,7 +353,7 @@ sub_0802A69C: @ 0x0802A69C push {r4, lr} adds r4, r0, #0 bl sub_0802A7D0 - ldr r2, _0802A6E4 @ =gLinkState + ldr r2, _0802A6E4 @ =gPlayerState ldrb r1, [r2, #0xa] movs r0, #0x80 orrs r1, r0 @@ -361,7 +361,7 @@ sub_0802A69C: @ 0x0802A69C ldrb r1, [r2, #0x1a] orrs r0, r1 strb r0, [r2, #0x1a] - ldr r1, _0802A6E8 @ =gLinkEntity + ldr r1, _0802A6E8 @ =gPlayerEntity adds r0, r4, #0 adds r0, #0x7e ldrh r0, [r0] @@ -386,8 +386,8 @@ sub_0802A69C: @ 0x0802A69C subs r0, r2, #1 b _0802A6EE .align 2, 0 -_0802A6E4: .4byte gLinkState -_0802A6E8: .4byte gLinkEntity +_0802A6E4: .4byte gPlayerState +_0802A6E8: .4byte gPlayerEntity _0802A6EC: adds r0, r2, #1 _0802A6EE: @@ -419,7 +419,7 @@ _0802A712: adds r1, #0x63 movs r0, #3 strb r0, [r1] - ldr r2, _0802A730 @ =gLinkEntity + ldr r2, _0802A730 @ =gPlayerEntity ldrb r1, [r2, #0x18] subs r0, #7 ands r0, r1 @@ -427,7 +427,7 @@ _0802A712: _0802A72E: pop {r4, pc} .align 2, 0 -_0802A730: .4byte gLinkEntity +_0802A730: .4byte gPlayerEntity thumb_func_start sub_0802A734 sub_0802A734: @ 0x0802A734 @@ -457,7 +457,7 @@ _0802A768: ldr r1, _0802A784 @ =0xFFFE0000 adds r0, r0, r1 str r0, [r4, #0x34] - ldr r1, _0802A788 @ =gLinkState + ldr r1, _0802A788 @ =gPlayerState ldrb r0, [r1, #0xa] movs r2, #0x80 orrs r0, r2 @@ -469,7 +469,7 @@ _0802A780: pop {r4, pc} .align 2, 0 _0802A784: .4byte 0xFFFE0000 -_0802A788: .4byte gLinkState +_0802A788: .4byte gPlayerState thumb_func_start sub_0802A78C sub_0802A78C: @ 0x0802A78C diff --git a/asm/wallMaster2.s b/asm/wallMaster2.s index 4113319c..71bc9e54 100644 --- a/asm/wallMaster2.s +++ b/asm/wallMaster2.s @@ -66,7 +66,7 @@ _0802CC9A: adds r0, r4, #0 movs r1, #1 bl InitializeAnimation - ldr r2, _0802CCD4 @ =gLinkEntity + ldr r2, _0802CCD4 @ =gPlayerEntity ldrb r1, [r2, #0x10] adds r0, r5, #0 ands r0, r1 @@ -86,7 +86,7 @@ _0802CCCA: bl sub_0804AA30 pop {r4, r5, pc} .align 2, 0 -_0802CCD4: .4byte gLinkEntity +_0802CCD4: .4byte gPlayerEntity _0802CCD8: .4byte gUnk_080CD6FC thumb_func_start nullsub_151 @@ -286,7 +286,7 @@ _0802CE58: sub_0802CE68: @ 0x0802CE68 push {r4, r5, lr} adds r4, r0, #0 - ldr r2, _0802CED4 @ =gLinkState + ldr r2, _0802CED4 @ =gPlayerState ldrb r1, [r2, #0xa] movs r0, #0x80 orrs r1, r0 @@ -299,7 +299,7 @@ sub_0802CE68: @ 0x0802CE68 lsls r1, r1, #1 orrs r0, r1 str r0, [r2, #0x30] - ldr r5, _0802CED8 @ =gLinkEntity + ldr r5, _0802CED8 @ =gPlayerEntity movs r0, #0x2e ldrsh r1, [r5, r0] movs r0, #0x32 @@ -335,8 +335,8 @@ _0802CEAC: strb r0, [r4, #0xe] b _0802CEF0 .align 2, 0 -_0802CED4: .4byte gLinkState -_0802CED8: .4byte gLinkEntity +_0802CED4: .4byte gPlayerState +_0802CED8: .4byte gPlayerEntity _0802CEDC: movs r0, #1 ands r0, r1 @@ -394,7 +394,7 @@ _0802CF28: orrs r1, r0 strb r1, [r4, #0x18] _0802CF4A: - ldr r1, _0802CF60 @ =gLinkState + ldr r1, _0802CF60 @ =gPlayerState ldrb r0, [r1, #0xa] movs r2, #0x80 orrs r0, r2 @@ -406,7 +406,7 @@ _0802CF5A: pop {r4, pc} .align 2, 0 _0802CF5C: .4byte 0xFFFE0000 -_0802CF60: .4byte gLinkState +_0802CF60: .4byte gPlayerState thumb_func_start sub_0802CF64 sub_0802CF64: @ 0x0802CF64 diff --git a/asm/warpPoint.s b/asm/warpPoint.s index 1c537321..7f3eba57 100644 --- a/asm/warpPoint.s +++ b/asm/warpPoint.s @@ -102,7 +102,7 @@ _0808B4F8: strb r2, [r4, #0xc] movs r0, #0x60 strb r0, [r4, #0xf] - ldr r1, _0808B52C @ =gLinkEntity + ldr r1, _0808B52C @ =gPlayerEntity ldrh r0, [r4, #0x2e] strh r0, [r1, #0x2e] ldrh r0, [r4, #0x32] @@ -118,7 +118,7 @@ _0808B4F8: _0808B528: pop {r4, pc} .align 2, 0 -_0808B52C: .4byte gLinkEntity +_0808B52C: .4byte gPlayerEntity thumb_func_start sub_0808B530 sub_0808B530: @ 0x0808B530 @@ -190,7 +190,7 @@ sub_0808B590: @ 0x0808B590 movs r0, #0x60 strb r0, [r4, #0xf] bl sub_08077B20 - ldr r1, _0808B5DC @ =gLinkEntity + ldr r1, _0808B5DC @ =gPlayerEntity ldrh r0, [r4, #0x2e] strh r0, [r1, #0x2e] ldrh r0, [r4, #0x32] @@ -209,7 +209,7 @@ sub_0808B590: @ 0x0808B590 bl PlaySFX b _0808B5E6 .align 2, 0 -_0808B5DC: .4byte gLinkEntity +_0808B5DC: .4byte gPlayerEntity _0808B5E0: .4byte 0x00000113 _0808B5E4: strb r0, [r4, #0xe] @@ -230,14 +230,14 @@ sub_0808B5E8: @ 0x0808B5E8 strb r0, [r4, #0xc] movs r0, #1 strb r0, [r4, #0xe] - ldr r1, _0808B60C @ =gLinkEntity + ldr r1, _0808B60C @ =gPlayerEntity movs r0, #4 strb r0, [r1, #0x14] movs r0, #0x10 strb r0, [r1, #0x15] b _0808B67E .align 2, 0 -_0808B60C: .4byte gLinkEntity +_0808B60C: .4byte gPlayerEntity _0808B610: movs r5, #0 movs r0, #0x60 @@ -277,7 +277,7 @@ _0808B64E: ands r0, r1 cmp r0, #0 bne _0808B66E - ldr r0, _0808B668 @ =gLinkEntity + ldr r0, _0808B668 @ =gPlayerEntity ldrb r0, [r0, #0x14] cmp r0, #4 bne _0808B66C @@ -287,14 +287,14 @@ _0808B64E: bls _0808B66E b _0808B672 .align 2, 0 -_0808B668: .4byte gLinkEntity +_0808B668: .4byte gPlayerEntity _0808B66C: movs r5, #1 _0808B66E: cmp r5, #0 beq _0808B67E _0808B672: - ldr r0, _0808B680 @ =gLinkEntity + ldr r0, _0808B680 @ =gPlayerEntity ldrb r1, [r0, #0x14] adds r1, #2 movs r2, #6 @@ -303,7 +303,7 @@ _0808B672: _0808B67E: pop {r4, r5, pc} .align 2, 0 -_0808B680: .4byte gLinkEntity +_0808B680: .4byte gPlayerEntity thumb_func_start sub_0808B684 sub_0808B684: @ 0x0808B684 @@ -386,7 +386,7 @@ _0808B710: bne _0808B724 b _0808B72A _0808B718: - ldr r2, _0808B738 @ =gLinkEntity + ldr r2, _0808B738 @ =gPlayerEntity ldrb r1, [r2, #0x18] movs r0, #4 rsbs r0, r0, #0 @@ -397,7 +397,7 @@ _0808B724: cmp r0, #0 beq _0808B736 _0808B72A: - ldr r0, _0808B738 @ =gLinkEntity + ldr r0, _0808B738 @ =gPlayerEntity ldrb r1, [r0, #0x14] adds r1, #2 movs r2, #6 @@ -406,7 +406,7 @@ _0808B72A: _0808B736: pop {pc} .align 2, 0 -_0808B738: .4byte gLinkEntity +_0808B738: .4byte gPlayerEntity thumb_func_start sub_0808B73C sub_0808B73C: @ 0x0808B73C @@ -431,7 +431,7 @@ sub_0808B73C: @ 0x0808B73C movs r1, #1 bl InitializeAnimation _0808B766: - ldr r5, _0808B78C @ =gLinkEntity + ldr r5, _0808B78C @ =gPlayerEntity movs r0, #0x2e ldrsh r1, [r5, r0] movs r0, #0x32 @@ -450,7 +450,7 @@ _0808B766: strb r1, [r4, #0x18] b _0808B7C0 .align 2, 0 -_0808B78C: .4byte gLinkEntity +_0808B78C: .4byte gPlayerEntity _0808B790: movs r0, #0x2e ldrsh r1, [r5, r0] @@ -486,7 +486,7 @@ _0808B7C0: sub_0808B7C8: @ 0x0808B7C8 push {r4, r5, lr} adds r5, r0, #0 - ldr r2, _0808B824 @ =gLinkState + ldr r2, _0808B824 @ =gPlayerState ldr r0, [r2, #0x30] movs r1, #0x80 ands r0, r1 @@ -497,7 +497,7 @@ sub_0808B7C8: @ 0x0808B7C8 ldrb r0, [r0] cmp r0, #0x12 beq _0808B82C - ldr r4, _0808B828 @ =gLinkEntity + ldr r4, _0808B828 @ =gPlayerEntity adds r0, r4, #0 adds r0, #0x45 ldrb r0, [r0] @@ -528,8 +528,8 @@ _0808B81E: movs r0, #1 b _0808B82E .align 2, 0 -_0808B824: .4byte gLinkState -_0808B828: .4byte gLinkEntity +_0808B824: .4byte gPlayerState +_0808B828: .4byte gPlayerEntity _0808B82C: movs r0, #0 _0808B82E: diff --git a/asm/waterDrop.s b/asm/waterDrop.s index fe057fbd..ab7e2153 100644 --- a/asm/waterDrop.s +++ b/asm/waterDrop.s @@ -193,7 +193,7 @@ _0802A392: sub_0802A39C: @ 0x0802A39C push {r4, r5, r6, lr} adds r5, r0, #0 - ldr r4, _0802A3EC @ =gLinkEntity + ldr r4, _0802A3EC @ =gPlayerEntity movs r0, #0x2e ldrsh r1, [r4, r0] ldr r2, _0802A3F0 @ =gRoomControls @@ -232,7 +232,7 @@ sub_0802A39C: @ 0x0802A39C ands r0, r1 b _0802A402 .align 2, 0 -_0802A3EC: .4byte gLinkEntity +_0802A3EC: .4byte gPlayerEntity _0802A3F0: .4byte gRoomControls _0802A3F4: .4byte gScreen _0802A3F8: .4byte gUnk_02001A40 diff --git a/asm/whirlwind.s b/asm/whirlwind.s index 4f7366c0..4b9a42e2 100644 --- a/asm/whirlwind.s +++ b/asm/whirlwind.s @@ -133,7 +133,7 @@ _08092D92: beq _08092E84 adds r0, r5, #0 bl GetNextFrame - ldr r6, _08092E04 @ =gLinkState + ldr r6, _08092E04 @ =gPlayerState ldr r0, [r6, #0x30] movs r3, #0x80 ands r0, r3 @@ -144,7 +144,7 @@ _08092D92: ldrb r0, [r0] cmp r0, #0 bne _08092E84 - ldr r4, _08092E08 @ =gLinkEntity + ldr r4, _08092E08 @ =gPlayerEntity ldrb r2, [r4, #0xc] cmp r2, #4 beq _08092DC8 @@ -183,16 +183,16 @@ _08092DC8: bgt _08092E84 b _08092E16 .align 2, 0 -_08092E04: .4byte gLinkState -_08092E08: .4byte gLinkEntity +_08092E04: .4byte gPlayerState +_08092E08: .4byte gPlayerEntity _08092E0C: - ldr r0, _08092E88 @ =gLinkEntity + ldr r0, _08092E88 @ =gPlayerEntity movs r1, #0x36 ldrsh r0, [r0, r1] cmp r0, #0 beq _08092E84 _08092E16: - ldr r4, _08092E88 @ =gLinkEntity + ldr r4, _08092E88 @ =gPlayerEntity adds r0, r5, #0 adds r1, r4, #0 bl CopyPosition @@ -208,7 +208,7 @@ _08092E16: movs r0, #0x80 orrs r0, r1 strb r0, [r4, #0x10] - ldr r1, _08092E8C @ =gLinkState + ldr r1, _08092E8C @ =gPlayerState movs r0, #0x1f strb r0, [r1, #0xc] ldrb r2, [r5, #0xb] @@ -244,8 +244,8 @@ _08092E16: _08092E84: pop {r4, r5, r6, pc} .align 2, 0 -_08092E88: .4byte gLinkEntity -_08092E8C: .4byte gLinkState +_08092E88: .4byte gPlayerEntity +_08092E8C: .4byte gPlayerState _08092E90: .4byte 0x00000153 thumb_func_start sub_08092E94 @@ -253,7 +253,7 @@ sub_08092E94: @ 0x08092E94 push {r4, lr} adds r4, r0, #0 bl UpdateAnimationSingleFrame - ldr r1, _08092ED0 @ =gLinkEntity + ldr r1, _08092ED0 @ =gPlayerEntity adds r0, r4, #0 movs r2, #0xc movs r3, #0xc @@ -279,4 +279,4 @@ sub_08092E94: @ 0x08092E94 _08092ECE: pop {r4, pc} .align 2, 0 -_08092ED0: .4byte gLinkEntity +_08092ED0: .4byte gPlayerEntity diff --git a/asm/windTribeTeleporter.s b/asm/windTribeTeleporter.s index 44a400f8..b5630d2f 100644 --- a/asm/windTribeTeleporter.s +++ b/asm/windTribeTeleporter.s @@ -49,7 +49,7 @@ sub_080A0F44: @ 0x080A0F44 bl sub_080A11C0 cmp r0, #0 beq _080A0FA4 - ldr r1, _080A0FAC @ =gLinkEntity + ldr r1, _080A0FAC @ =gPlayerEntity ldrh r0, [r5, #0x2e] movs r4, #0 strh r0, [r1, #0x2e] @@ -72,7 +72,7 @@ _080A0FA4: pop {r4, r5, r6, pc} .align 2, 0 _080A0FA8: .4byte gUnk_080FD460 -_080A0FAC: .4byte gLinkEntity +_080A0FAC: .4byte gPlayerEntity thumb_func_start sub_080A0FB0 sub_080A0FB0: @ 0x080A0FB0 @@ -87,7 +87,7 @@ sub_080A0FB0: @ 0x080A0FB0 ldrb r0, [r0] cmp r0, #0 bne _080A0FFE - ldr r1, _080A0FF4 @ =gLinkEntity + ldr r1, _080A0FF4 @ =gPlayerEntity ldrh r0, [r5, #0x2e] movs r4, #0 strh r0, [r1, #0x2e] @@ -105,7 +105,7 @@ sub_080A0FB0: @ 0x080A0FB0 strb r4, [r5, #0xd] b _080A0FFE .align 2, 0 -_080A0FF4: .4byte gLinkEntity +_080A0FF4: .4byte gPlayerEntity _080A0FF8: adds r0, r5, #0 adds r0, #0x68 @@ -221,7 +221,7 @@ _080A10C2: ands r0, r1 cmp r0, #0 bne _080A10D4 - ldr r0, _080A10DC @ =gLinkEntity + ldr r0, _080A10DC @ =gPlayerEntity ldrb r1, [r0, #0x14] adds r1, #2 movs r2, #6 @@ -231,7 +231,7 @@ _080A10D4: pop {r4, pc} .align 2, 0 _080A10D8: .4byte gScreenTransition -_080A10DC: .4byte gLinkEntity +_080A10DC: .4byte gPlayerEntity thumb_func_start sub_080A10E0 sub_080A10E0: @ 0x080A10E0 @@ -311,7 +311,7 @@ _080A1162: ands r0, r1 cmp r0, #0 bne _080A11BA - ldr r0, _080A117C @ =gLinkEntity + ldr r0, _080A117C @ =gPlayerEntity ldrb r1, [r0, #0x14] adds r1, #2 movs r2, #6 @@ -320,9 +320,9 @@ _080A1162: b _080A11BA .align 2, 0 _080A1178: .4byte gScreenTransition -_080A117C: .4byte gLinkEntity +_080A117C: .4byte gPlayerEntity _080A1180: - ldr r4, _080A11A0 @ =gLinkEntity + ldr r4, _080A11A0 @ =gPlayerEntity ldrb r3, [r4, #0x14] cmp r3, #4 beq _080A11A8 @@ -338,27 +338,27 @@ _080A1180: strb r0, [r4, #0x14] b _080A11BA .align 2, 0 -_080A11A0: .4byte gLinkEntity +_080A11A0: .4byte gPlayerEntity _080A11A4: .4byte gScreenTransition _080A11A8: movs r0, #0 movs r1, #1 strb r1, [r2, #0xc] strb r0, [r2, #0xd] - ldr r0, _080A11BC @ =gLinkState + ldr r0, _080A11BC @ =gPlayerState adds r0, #0x8b strb r1, [r0] bl UnfreezeTime _080A11BA: pop {r4, pc} .align 2, 0 -_080A11BC: .4byte gLinkState +_080A11BC: .4byte gPlayerState thumb_func_start sub_080A11C0 sub_080A11C0: @ 0x080A11C0 push {lr} adds r1, r0, #0 - ldr r0, _080A11D8 @ =gLinkEntity + ldr r0, _080A11D8 @ =gPlayerEntity movs r2, #0x36 ldrsh r0, [r0, r2] cmp r0, #0 @@ -367,7 +367,7 @@ sub_080A11C0: @ 0x080A11C0 bl sub_08017850 b _080A11DE .align 2, 0 -_080A11D8: .4byte gLinkEntity +_080A11D8: .4byte gPlayerEntity _080A11DC: movs r0, #0 _080A11DE: diff --git a/asm/wizzrobeFire.s b/asm/wizzrobeFire.s index f1f59e33..944a21cb 100644 --- a/asm/wizzrobeFire.s +++ b/asm/wizzrobeFire.s @@ -234,7 +234,7 @@ _0802FCC6: strb r0, [r2, #0x18] b _0802FDCA _0802FCDE: - ldr r1, _0802FD14 @ =gLinkEntity + ldr r1, _0802FD14 @ =gPlayerEntity adds r0, r4, #0 movs r2, #0xa0 movs r3, #0xa0 @@ -258,7 +258,7 @@ _0802FCDE: strb r0, [r2, #0x15] b _0802FDCA .align 2, 0 -_0802FD14: .4byte gLinkEntity +_0802FD14: .4byte gPlayerEntity _0802FD18: ldrb r0, [r4, #0xe] subs r0, #1 diff --git a/asm/wizzrobeIce.s b/asm/wizzrobeIce.s index 7f92bd73..850e6675 100644 --- a/asm/wizzrobeIce.s +++ b/asm/wizzrobeIce.s @@ -261,7 +261,7 @@ _0802FF9E: strb r0, [r2, #0x18] b _080300A2 _0802FFB6: - ldr r1, _0802FFEC @ =gLinkEntity + ldr r1, _0802FFEC @ =gPlayerEntity adds r0, r4, #0 movs r2, #0xa0 movs r3, #0xa0 @@ -285,7 +285,7 @@ _0802FFB6: strb r0, [r2, #0x15] b _080300A2 .align 2, 0 -_0802FFEC: .4byte gLinkEntity +_0802FFEC: .4byte gPlayerEntity _0802FFF0: ldrb r0, [r4, #0xe] subs r0, #1 @@ -424,7 +424,7 @@ sub_080300E8: @ 0x080300E8 lsls r0, r0, #2 adds r1, #0x6c adds r0, r0, r1 - ldr r2, _08030114 @ =gLinkEntity + ldr r2, _08030114 @ =gPlayerEntity ldrh r1, [r0] strh r1, [r2, #0x2e] ldrh r0, [r0, #2] @@ -436,7 +436,7 @@ _0803010C: pop {pc} .align 2, 0 _08030110: .4byte gScreenTransition -_08030114: .4byte gLinkEntity +_08030114: .4byte gPlayerEntity thumb_func_start sub_08030118 sub_08030118: @ 0x08030118 diff --git a/asm/wizzrobeWind.s b/asm/wizzrobeWind.s index 55bd91a6..01d74385 100644 --- a/asm/wizzrobeWind.s +++ b/asm/wizzrobeWind.s @@ -286,7 +286,7 @@ _0802F69E: strb r0, [r2, #0x18] b _0802F7A2 _0802F6B6: - ldr r1, _0802F6EC @ =gLinkEntity + ldr r1, _0802F6EC @ =gPlayerEntity adds r0, r4, #0 movs r2, #0xa0 movs r3, #0xa0 @@ -310,7 +310,7 @@ _0802F6B6: strb r0, [r2, #0x15] b _0802F7A2 .align 2, 0 -_0802F6EC: .4byte gLinkEntity +_0802F6EC: .4byte gPlayerEntity _0802F6F0: ldrb r0, [r4, #0xe] subs r0, #1 diff --git a/asm/zeldaFollower.s b/asm/zeldaFollower.s index 42000df5..d6465b1b 100644 --- a/asm/zeldaFollower.s +++ b/asm/zeldaFollower.s @@ -13,7 +13,7 @@ sub_08068318: @ 0x08068318 mov r6, r8 push {r6, r7} mov r8, r0 - ldr r4, _08068414 @ =gLinkEntity + ldr r4, _08068414 @ =gPlayerEntity ldrh r1, [r4, #0x2e] ldr r3, _08068418 @ =0xFFFF0000 adds r0, r3, #0 @@ -29,7 +29,7 @@ sub_08068318: @ 0x08068318 ands r3, r7 orrs r3, r0 adds r7, r3, #0 - ldr r0, _08068420 @ =gLinkState + ldr r0, _08068420 @ =gPlayerState adds r0, #0xa8 ldrb r0, [r0] lsls r0, r0, #0x10 @@ -138,10 +138,10 @@ _080683E6: strb r0, [r4] b _080684A8 .align 2, 0 -_08068414: .4byte gLinkEntity +_08068414: .4byte gPlayerEntity _08068418: .4byte 0xFFFF0000 _0806841C: .4byte 0x0000FFFF -_08068420: .4byte gLinkState +_08068420: .4byte gPlayerState _08068424: .4byte 0xFF00FFFF _08068428: .4byte 0xC0FFFFFF _0806842C: .4byte 0x3FFFFFFF @@ -175,7 +175,7 @@ _08068450: mov sb, r1 b _080684A8 _08068466: - ldr r1, _0806851C @ =gLinkEntity + ldr r1, _0806851C @ =gPlayerEntity movs r2, #0x2e ldrsh r0, [r1, r2] movs r3, #0x32 @@ -270,7 +270,7 @@ _0806850C: strb r0, [r4] b _08068526 .align 2, 0 -_0806851C: .4byte gLinkEntity +_0806851C: .4byte gPlayerEntity _08068520: mov r0, r8 bl UpdateAnimationSingleFrame @@ -325,7 +325,7 @@ sub_08068578: @ 0x08068578 mov r5, r8 push {r5, r6, r7} adds r7, r0, #0 - ldr r4, _08068664 @ =gLinkEntity + ldr r4, _08068664 @ =gPlayerEntity ldrh r1, [r4, #0x2e] ldr r3, _08068668 @ =0xFFFF0000 adds r0, r3, #0 @@ -340,7 +340,7 @@ sub_08068578: @ 0x08068578 ldrh r0, [r4, #0x36] ands r3, r6 orrs r3, r0 - ldr r0, _08068670 @ =gLinkState + ldr r0, _08068670 @ =gPlayerState adds r0, #0xa8 ldrb r0, [r0] lsls r0, r0, #0x10 @@ -437,10 +437,10 @@ _08068614: mov sl, r5 pop {r4, r5, r6, r7, pc} .align 2, 0 -_08068664: .4byte gLinkEntity +_08068664: .4byte gPlayerEntity _08068668: .4byte 0xFFFF0000 _0806866C: .4byte 0x0000FFFF -_08068670: .4byte gLinkState +_08068670: .4byte gPlayerState _08068674: .4byte 0xFF00FFFF _08068678: .4byte 0xC0FFFFFF _0806867C: .4byte 0x3FFFFFFF diff --git a/include/functions.h b/include/functions.h index 27050f59..98282908 100644 --- a/include/functions.h +++ b/include/functions.h @@ -5,7 +5,7 @@ #include "global.h" #include "entity.h" #include "position.h" -#include "link.h" +#include "player.h" #include "structures.h" // Identified - to be sorted into header files @@ -198,7 +198,7 @@ extern void sub_08001290(Entity*, u32); extern void sub_08004488(u32); extern void sub_08004596(Entity*, u32); extern u32 sub_0807953C(void); -extern void ResetLink(void); +extern void ResetPlayer(void); extern void sub_080A29BC(Entity*); extern void sub_080AE068(Entity*); extern Entity* sub_0805E8D4(void); diff --git a/include/greatFairy.h b/include/greatFairy.h index 1a65fd1c..3ceb31b2 100644 --- a/include/greatFairy.h +++ b/include/greatFairy.h @@ -35,7 +35,7 @@ extern void (*const gUnk_081207A4[])(Entity*); extern u32 gUnk_0810C2E4; extern RoomControls gRoomControls; -extern Entity gLinkEntity; +extern Entity gPlayerEntity; extern const s16 GreatFairy_RippleOffsets[10]; extern u32 gUnk_02034350; extern RoomVars gRoomVars; diff --git a/include/item.h b/include/item.h index d276b5fa..7546d84f 100644 --- a/include/item.h +++ b/include/item.h @@ -3,7 +3,7 @@ #include "global.h" #include "entity.h" -#include "link.h" +#include "player.h" void extern DebugItem(ItemBehavior*, u32); void extern Sword(ItemBehavior*, u32); diff --git a/include/npc.h b/include/npc.h index 103df393..4551b756 100644 --- a/include/npc.h +++ b/include/npc.h @@ -1,6 +1,6 @@ #include "global.h" #include "entity.h" -#include "link.h" +#include "player.h" #ifndef NPC_H #define NPC_H diff --git a/include/object.h b/include/object.h index b24a30d2..5a2e66cb 100644 --- a/include/object.h +++ b/include/object.h @@ -64,7 +64,7 @@ extern void JarPortal(Entity*); extern void BossDoor(Entity*); extern void Object3A(Entity*); extern void MacroMushromStalks(Entity*); -extern void MacroLink(Entity*); +extern void MacroPlayer(Entity*); extern void Object3D(Entity*); extern void Object3E(Entity*); extern void GiantLeaf(Entity*); diff --git a/include/link.h b/include/player.h similarity index 94% rename from include/link.h rename to include/player.h index 5a7a73a2..f3c49bfd 100644 --- a/include/link.h +++ b/include/player.h @@ -1,7 +1,7 @@ // clang-format off -#ifndef LINK_H -#define LINK_H +#ifndef PLAYER_H +#define PLAYER_H #include "global.h" #include "entity.h" @@ -16,7 +16,7 @@ typedef struct { /*0x08*/ u16 field_0x8; /*0x0a*/ u8 field_0xa; /*0x0b*/ u8 keepFacing; - /*0x0c*/ u8 linkAction; + /*0x0c*/ u8 playerAction; /*0x0d*/ u8 field_0xd[2]; /*0x0f*/ u8 hurtBlinkSpeed; /*0x10*/ u8 field_0x10[4]; @@ -56,7 +56,7 @@ typedef struct { /*0xa8*/ u8 field_0xa8[3]; /*0xab*/ u8 field_0xab; /*0xac*/ u32 field_0xac; -} LinkState; +} PlayerState; typedef struct { @@ -94,9 +94,9 @@ typedef struct { extern u8 gBombBagSizes[]; -extern LinkState gLinkState; +extern PlayerState gPlayerState; extern Stats gStats; -extern Entity gLinkEntity; +extern Entity gPlayerEntity; extern u32 GetInventoryValue(u32); diff --git a/include/structures.h b/include/structures.h index 73bbd510..e44f6f76 100644 --- a/include/structures.h +++ b/include/structures.h @@ -3,7 +3,7 @@ #include "global.h" #include "entity.h" -#include "link.h" +#include "player.h" typedef struct { char header[4]; diff --git a/linker.ld b/linker.ld index 5199531f..6fbf3374 100644 --- a/linker.ld +++ b/linker.ld @@ -180,7 +180,7 @@ SECTIONS { . = 0x000010EC; gUnk_030010EC = .; . = 0x0000110C; gUnk_0300110C = .; . = 0x00001150; gRand = .; - . = 0x00001160; gLinkEntity = .; + . = 0x00001160; gPlayerEntity = .; . = 0x00001198; gUnk_03001198 = .; . = 0x000011E8; gUnk_030011E8 = .; . = 0x000015A0; gUnk_030015A0 = .; @@ -201,7 +201,7 @@ SECTIONS { . = 0x00003DE4; gUnk_03003DE4 = .; . = 0x00003DF0; gUnk_03003DF0 = .; . = 0x00003DF8; gUnk_03003DF8 = .; - . = 0x00003F80; gLinkState = .; + . = 0x00003F80; gPlayerState = .; . = 0x00003FC0; gUnk_03003FC0 = .; . = 0x00004010; gUnk_03004010 = .; . = 0x00004020; gUnk_03004020 = .; @@ -448,7 +448,7 @@ SECTIONS { src/sub_08050024.o(.text); asm/code_08050038.o(.text); asm/sub_08052418.o(.text); - src/initializeLink.o(.text); + src/initializePlayer.o(.text); src/area.o(.text); src/modHealth.o(.text); src/modRupees.o(.text); @@ -645,7 +645,7 @@ SECTIONS { asm/ocarina.o(.text); src/item.o(.text); asm/code_08076C80.o(.text); - asm/respawnLink.o(.text); + asm/respawnPlayer.o(.text); src/code_08077B98.o(.text); src/code_08077DF4.o(.text); asm/code_08077B98.o(.text); @@ -732,7 +732,7 @@ SECTIONS { asm/object75.o(.text); /* 75 and 76 are mislocated in base game */ asm/object76.o(.text); asm/code_0808C964.o(.text); - asm/macroLink.o(.text); + asm/macroPlayer.o(.text); asm/object3D.o(.text); asm/object3E.o(.text); src/object/giantLeaf.o(.text); diff --git a/src/code_0805436C.c b/src/code_0805436C.c index cc81546c..8ada4bd5 100644 --- a/src/code_0805436C.c +++ b/src/code_0805436C.c @@ -1,6 +1,6 @@ #include "global.h" #include "entity.h" -#include "link.h" +#include "player.h" #include "room.h" #include "menu.h" diff --git a/src/code_08077B98.c b/src/code_08077B98.c index a29e2c22..cf2b3b2c 100644 --- a/src/code_08077B98.c +++ b/src/code_08077B98.c @@ -1,6 +1,6 @@ #include "global.h" #include "entity.h" -#include "link.h" +#include "player.h" #include "functions.h" @@ -23,8 +23,8 @@ extern struct_0811BE48 gUnk_0811BE48[]; void sub_08077B98(UnkItemStruct* unk) { - if ((gLinkState.field_0x2c == NULL) || (gLinkState.field_0x2c[9] != 1)) { - gLinkState.field_0x2c = sub_08077C54(unk); + if ((gPlayerState.field_0x2c == NULL) || (gPlayerState.field_0x2c[9] != 1)) { + gPlayerState.field_0x2c = sub_08077C54(unk); } } @@ -34,7 +34,7 @@ void sub_08077BB8(UnkItemStruct* unk) if (temp != NULL) { temp[0x10] = 0x20; } - gLinkState.field_0x2c = temp; + gPlayerState.field_0x2c = temp; } Entity* sub_08077BD4(ItemBehavior *beh) diff --git a/src/code_08077DF4.c b/src/code_08077DF4.c index 0b849819..1f6d9246 100644 --- a/src/code_08077DF4.c +++ b/src/code_08077DF4.c @@ -1,6 +1,6 @@ #include "global.h" #include "entity.h" -#include "link.h" +#include "player.h" #include "functions.h" typedef struct { @@ -18,29 +18,29 @@ void sub_08077DF4(Entity *ent, u32 arg1) if ((arg1 & 0xff) > 0xb8) { arg1 += (ent->entityType).form >> 1; } - gLinkEntity.spriteIndex = (short)(arg1 >> 8); - InitAnimationForceUpdate(&gLinkEntity, (u8)arg1); + gPlayerEntity.spriteIndex = (short)(arg1 >> 8); + InitAnimationForceUpdate(&gPlayerEntity, (u8)arg1); sub_08077E54(ent); } void UpdateItemAnim(Entity *ent) { - UpdateAnimationSingleFrame(&gLinkEntity); + UpdateAnimationSingleFrame(&gPlayerEntity); sub_08077E54(ent); } void sub_08077E3C(Entity *ent) { - sub_080042BA(&gLinkEntity); + sub_080042BA(&gPlayerEntity); sub_08077E54(ent); } void sub_08077E54(Entity *ent) { - ent->action = gLinkEntity.animIndex; - *(u8 *)&ent->spriteIndex = gLinkEntity.frameIndex; - ent->previousActionFlag = gLinkEntity.frameDuration; - ent->actionDelay = gLinkEntity.frames.all; + ent->action = gPlayerEntity.animIndex; + *(u8 *)&ent->spriteIndex = gPlayerEntity.frameIndex; + ent->previousActionFlag = gPlayerEntity.frameDuration; + ent->actionDelay = gPlayerEntity.frames.all; } void sub_08077E78(void* arg0, u32 bits) @@ -49,27 +49,27 @@ void sub_08077E78(void* arg0, u32 bits) u32 not; if (bits == 0) { - if (gLinkState.field_0x2c != NULL) { - ((Unk_bitfield *)gLinkState.field_0x2c)[0x11].b0 = 6; - gLinkState.field_0x2c = (u8 *)bits; + if (gPlayerState.field_0x2c != NULL) { + ((Unk_bitfield *)gPlayerState.field_0x2c)[0x11].b0 = 6; + gPlayerState.field_0x2c = (u8 *)bits; } else { - gLinkState.field_0x2c = (u8 *)bits; + gPlayerState.field_0x2c = (u8 *)bits; } } not = (8 >> bits); - gLinkState.field_0x3[1] &= ~((u8)((8 >> bits) << 4) | not); + gPlayerState.field_0x3[1] &= ~((u8)((8 >> bits) << 4) | not); not = ~not; - gLinkState.field_0xa &= not; - gLinkState.keepFacing &= not; + gPlayerState.field_0xa &= not; + gPlayerState.keepFacing &= not; _DmaZero(arg0, 0x1c); } u32 sub_08077EC8(Unk_struct* arg0) { - if ((gLinkState.field_0x1a[1] & 8) != 0) { + if ((gPlayerState.field_0x1a[1] & 8) != 0) { sub_08077DF4((Entity *)arg0,0x170); arg0->unk[7] = 0x28; arg0->unk[4] = 7; @@ -83,12 +83,12 @@ u32 sub_08077EC8(Unk_struct* arg0) void sub_08077EFC(ItemBehavior* arg0) { - sub_08077F24(arg0, (u16)gLinkState.field_0x90.HALF.LO); + sub_08077F24(arg0, (u16)gPlayerState.field_0x90.HALF.LO); } void sub_08077F10(ItemBehavior* arg0) { - sub_08077F24(arg0, (u16)gLinkState.field_0x90.HALF.HI); + sub_08077F24(arg0, (u16)gPlayerState.field_0x90.HALF.HI); } NAKED @@ -105,7 +105,7 @@ void sub_08077F50(ItemBehavior *beh, u32 arg1) u32 sub_08077F64(ItemBehavior* arg0, u32 unk) { u32 temp; - if (gLinkState.heldObject == 0) { + if (gPlayerState.heldObject == 0) { sub_08077F50(arg0, unk); temp = 0; } @@ -119,15 +119,15 @@ void sub_08077F84(void) { Entity *obj; - if (((gLinkEntity.collisionLayer & 2) == 0) && - GetTileTypeByPos(gLinkEntity.x.HALF.HI, gLinkEntity.y.HALF.HI - 0xc, 2) - 0x343U < 4) { - sub_0807AA80(&gLinkEntity); - gLinkState.jumpStatus |= 8; + if (((gPlayerEntity.collisionLayer & 2) == 0) && + GetTileTypeByPos(gPlayerEntity.x.HALF.HI, gPlayerEntity.y.HALF.HI - 0xc, 2) - 0x343U < 4) { + sub_0807AA80(&gPlayerEntity); + gPlayerState.jumpStatus |= 8; obj = CreateObject(0x44, 0, 0); if (obj != NULL) { - obj->x = gLinkEntity.x; - obj->y.HALF.HI = gLinkEntity.y.HALF.HI - 0xc; - gLinkEntity.y.HALF.HI -= 0xc; + obj->x = gPlayerEntity.x; + obj->y.HALF.HI = gPlayerEntity.y.HALF.HI - 0xc; + gPlayerEntity.y.HALF.HI -= 0xc; } } } diff --git a/src/enemy/bombPeahat.c b/src/enemy/bombPeahat.c index 1dc3d30f..932c7f6a 100644 --- a/src/enemy/bombPeahat.c +++ b/src/enemy/bombPeahat.c @@ -1,7 +1,7 @@ #include "global.h" #include "entity.h" #include "functions.h" -#include "link.h" +#include "player.h" extern s32 sub_080012DC(Entity*); extern u32 GetNextFunction(Entity*); @@ -72,8 +72,8 @@ void sub_0802A8F4(Entity *this) void sub_0802A8FC(Entity *this) { - if ((gLinkState.field_0x1c & 0xf) == 0) { - this->currentHealth = gLinkState.field_0x1c & 0xf; + if ((gPlayerState.field_0x1c & 0xf) == 0) { + this->currentHealth = gPlayerState.field_0x1c & 0xf; } } diff --git a/src/enemy/keese.c b/src/enemy/keese.c index ea25214b..825c75ed 100644 --- a/src/enemy/keese.c +++ b/src/enemy/keese.c @@ -1,7 +1,7 @@ #include "global.h" #include "entity.h" #include "enemy.h" -#include "link.h" +#include "player.h" extern void sub_0804AA30(Entity*, void *); extern u32 sub_0806F520(Entity*); @@ -113,7 +113,7 @@ void sub_08021EBC(Entity *this) this->actionDelay--; } else { - iVar1 = sub_0806FCB8(this, gLinkEntity.x.HALF.HI, gLinkEntity.y.HALF.HI, 0x70); + iVar1 = sub_0806FCB8(this, gPlayerEntity.x.HALF.HI, gPlayerEntity.y.HALF.HI, 0x70); if (iVar1 != 0) { sub_08021EF0(this); } @@ -139,7 +139,7 @@ void sub_08021F24(Entity *this) this->actionDelay = gUnk_080CB6F6[Random() & 0xf]; InitializeAnimation(this, 1); } - else if (!this->field_0x7a && !(sub_0806FCB8(this, gLinkEntity.x.HALF.HI, gLinkEntity.y.HALF.HI, 0x70))) { + else if (!this->field_0x7a && !(sub_0806FCB8(this, gPlayerEntity.x.HALF.HI, gPlayerEntity.y.HALF.HI, 0x70))) { this->action = 3; this->actionDelay = 0x1e; InitializeAnimation(this, 1); diff --git a/src/enemy/lakitu.c b/src/enemy/lakitu.c index 94dbd2f4..a6d32f1c 100644 --- a/src/enemy/lakitu.c +++ b/src/enemy/lakitu.c @@ -3,7 +3,7 @@ #include "functions.h" #include "trig.h" #include "random.h" -#include "link.h" +#include "player.h" // Lakitu extern void EnemyFunctionHandler(Entity *, void (*const funcs[])(Entity*)); @@ -268,8 +268,8 @@ void sub_0803CA0C(Entity *this) { } bool32 sub_0803CA4C(Entity *this) { - if (sub_0806FCB8(this, gLinkEntity.x.HALF.HI, gLinkEntity.y.HALF.HI, 0x28) == 0) { - if (sub_080041A0(this, &gLinkEntity, 0x70, 0x50)) { + if (sub_0806FCB8(this, gPlayerEntity.x.HALF.HI, gPlayerEntity.y.HALF.HI, 0x28) == 0) { + if (sub_080041A0(this, &gPlayerEntity, 0x70, 0x50)) { return 1; } } @@ -278,7 +278,7 @@ bool32 sub_0803CA4C(Entity *this) { } void sub_0803CA84(Entity *this, u32 unkParameter) { - u32 altAnimState = GetFacingDirection(this, &gLinkEntity); + u32 altAnimState = GetFacingDirection(this, &gPlayerEntity); if (((altAnimState - 3) & 7) > 2 || ((this->animationState - (altAnimState >> 3)) & 3) > 1) { u32 intermediate = (altAnimState + 4) & 0x18; @@ -324,7 +324,7 @@ void sub_0803CB34(Entity *this) { this->action = 5; this->damageType = 0xa6; - this->field_0x78.HALF.LO = GetFacingDirection(this, &gLinkEntity); + this->field_0x78.HALF.LO = GetFacingDirection(this, &gPlayerEntity); InitAnimationForceUpdate(this, this->animationState + 8); } diff --git a/src/enemy/lakituCloud.c b/src/enemy/lakituCloud.c index 0dca3465..241c8f68 100644 --- a/src/enemy/lakituCloud.c +++ b/src/enemy/lakituCloud.c @@ -1,6 +1,6 @@ #include "global.h" #include "entity.h" -#include "link.h" +#include "player.h" extern u32 GetNextFunction(Entity *); @@ -60,7 +60,7 @@ void sub_0803CD40(Entity *this) { ModHealth(-2); - sub_0800449C(&gLinkEntity, 122); + sub_0800449C(&gPlayerEntity, 122); sub_08079D84(); sub_0803CE3C(this); diff --git a/src/enemy/rupeeLike.c b/src/enemy/rupeeLike.c index cbd991c4..c127367e 100644 --- a/src/enemy/rupeeLike.c +++ b/src/enemy/rupeeLike.c @@ -4,7 +4,7 @@ #include "functions.h" #include "npc.h" #include "structures.h" -#include "link.h" +#include "player.h" extern void sub_080293DC(Entity*); extern void sub_080296D8(Entity*); @@ -61,7 +61,7 @@ void sub_08029318(Entity* this) { this->field_0xf = 0; this->field_0x82.HALF.HI = 0x41; this->flags2 &= 0xfc; - this->field_0x80.HALF.LO = gLinkEntity.spritePriority.b1; + this->field_0x80.HALF.LO = gPlayerEntity.spritePriority.b1; sub_08004488(0x104); } else { if (this->field_0x43 != 0) { @@ -116,7 +116,7 @@ void sub_08029474(Entity* this) { if (this->frames.b.f3) { this->action = 3; this->actionDelay = 8; - bVar1 = GetFacingDirection(this, &gLinkEntity); + bVar1 = GetFacingDirection(this, &gPlayerEntity); this->direction = bVar1; this->animationState = (bVar1 << 0x18) >> 0x1c; InitializeAnimation(this, this->animationState); @@ -133,7 +133,7 @@ void sub_080294D4(Entity* this) { if (sub_08049FDC(this, 1) != 0) { if (--this->actionDelay == 0) { this->actionDelay = 8; - sub_08004596(this, GetFacingDirection(this, &gLinkEntity)); + sub_08004596(this, GetFacingDirection(this, &gPlayerEntity)); sub_0802969C(this); } sub_080AEF88(this); @@ -162,13 +162,13 @@ void sub_0802953C(Entity* this) { if (((this->field_0xf > 0x2d) || (gUnk_02002A40.stats.rupees == 0)) && (this->actionDelay == 0)) { sub_080296D8(this); } else { - ResetLink(); - gLinkState.field_0x1a[0] |= 0x80; - PositionRelative(this, &gLinkEntity, 0, 0x10000); + ResetPlayer(); + gPlayerState.field_0x1a[0] |= 0x80; + PositionRelative(this, &gPlayerEntity, 0, 0x10000); pbVar3 = GetSpriteSubEntryOffsetDataPointer((u16)this->spriteIndex, this->frameIndex); - gLinkEntity.spriteOffsetX = pbVar3[0]; - gLinkEntity.spriteOffsetY = pbVar3[1] - 1; - gLinkEntity.spritePriority.b1 = 0; + gPlayerEntity.spriteOffsetX = pbVar3[0]; + gPlayerEntity.spriteOffsetY = pbVar3[1] - 1; + gPlayerEntity.spritePriority.b1 = 0; if (--this->field_0x82.HALF.HI == 0) { this->field_0x82.HALF.HI = 0x41; if (gUnk_02002A40.stats.rupees != 0) { @@ -230,16 +230,16 @@ void sub_080296C8(Entity* this) { } void sub_080296D8(Entity* this) { - gLinkState.jumpStatus = 0x41; - gLinkState.flags.all &= 0xffffffef; - gLinkEntity.flags |= 0x80; - gLinkEntity.field_0x20 = 0x18000; - gLinkEntity.hurtBlinkTime = 0xa6; - gLinkEntity.height.HALF.HI = -2; - gLinkEntity.direction = gLinkEntity.animationState << 2; - gLinkEntity.spritePriority.b1 = this->field_0x80.HALF.LO; - gLinkEntity.spriteOffsetY = 0; - gLinkEntity.nonPlanarMovement = 0x140; + gPlayerState.jumpStatus = 0x41; + gPlayerState.flags.all &= 0xffffffef; + gPlayerEntity.flags |= 0x80; + gPlayerEntity.field_0x20 = 0x18000; + gPlayerEntity.hurtBlinkTime = 0xa6; + gPlayerEntity.height.HALF.HI = -2; + gPlayerEntity.direction = gPlayerEntity.animationState << 2; + gPlayerEntity.spritePriority.b1 = this->field_0x80.HALF.LO; + gPlayerEntity.spriteOffsetY = 0; + gPlayerEntity.nonPlanarMovement = 0x140; this->action = 5; this->field_0xf = 0x3c; this->flags2 |= 3; diff --git a/src/enemy/wisp.c b/src/enemy/wisp.c index d6729201..b54bda31 100644 --- a/src/enemy/wisp.c +++ b/src/enemy/wisp.c @@ -2,7 +2,7 @@ #include "entity.h" #include "enemy.h" #include "structures.h" -#include "link.h" +#include "player.h" #include "functions.h" extern void (*const gUnk_080CEB74[])(Entity*); @@ -34,7 +34,7 @@ void sub_08033564(Entity* this) { this->spriteSettings.b.draw = FALSE; this->flags &= 0x7f; this->field_0x7c.HALF.LO = 0x27c; - gLinkState.flags.all |= 0x4000; + gPlayerState.flags.all |= 0x4000; gUnk_02002A40.stats.filler2[4] = this->entityType.form + 1; gUnk_02002A40.stats.field_0x20 = 600; if (this->entityType.form == 0) { diff --git a/src/entity.c b/src/entity.c index deedca95..1ceabce4 100644 --- a/src/entity.c +++ b/src/entity.c @@ -122,18 +122,18 @@ void DeleteEntity(Entity* ent) } } -extern Entity gLinkEntity; +extern Entity gPlayerEntity; void sub_0805E870(Entity*); void sub_0805E84C(void) { - Entity* ent = &gLinkEntity; + Entity* ent = &gPlayerEntity; do { if ((int)ent->field_0x0 < 0) { sub_0805E870(ent); } - } while (ent++, ent < (&gLinkEntity + 80)); + } while (ent++, ent < (&gPlayerEntity + 80)); return; } diff --git a/src/initializeLink.c b/src/initializePlayer.c similarity index 67% rename from src/initializeLink.c rename to src/initializePlayer.c index 16be6528..589d550e 100644 --- a/src/initializeLink.c +++ b/src/initializePlayer.c @@ -1,6 +1,6 @@ #include "global.h" #include "entity.h" -#include "link.h" +#include "player.h" #include "structures.h" #include "functions.h" #include "room.h" @@ -9,25 +9,25 @@ extern u32 gUnk_03000B80; extern u32 gUnk_03003FC0; -extern Entity gLinkEntity; +extern Entity gPlayerEntity; extern u8 gUnk_080FCAC8[]; -void InitializeLink(void) +void InitializePlayer(void) { Entity* pl; sub_080784C8(); _DmaZero((void *)&gUnk_03000B80, 0x70); - _DmaZero((void *)&gLinkState, 0xb0); + _DmaZero((void *)&gPlayerState, 0xb0); - _DmaFill32(0xffffffff, &gLinkState.field_0x40, 0x40); - pl = &gLinkEntity; + _DmaFill32(0xffffffff, &gPlayerState.field_0x40, 0x40); + pl = &gPlayerEntity; _DmaZero((void *)pl, 0x88); gRoomControls.cameraTarget = pl; - gLinkState.linkAction = gUnk_080FCAC8[gScreenTransition.field_0xf]; + gPlayerState.playerAction = gUnk_080FCAC8[gScreenTransition.field_0xf]; if (!CheckGlobalFlag(0x14)) { - gLinkState.flags.all |= 8; + gPlayerState.flags.all |= 8; } switch (gScreenTransition.field_0xf) { case 0x2: @@ -35,24 +35,24 @@ void InitializeLink(void) pl->height.HALF.HI = -0xc0; break; case 0x4: - gLinkState.field_0x34[4] = 0x10; + gPlayerState.field_0x34[4] = 0x10; pl->direction = gScreenTransition.playerState << 2; case 0x3: pl->nonPlanarMovement = 0xe0; break; case 0x7: case 0x8: - gLinkState.field_0x34[4] = 1; - gLinkState.field_0x34[5] = gScreenTransition.field_0xf; + gPlayerState.field_0x34[4] = 1; + gPlayerState.field_0x34[5] = gScreenTransition.field_0xf; break; case 0xa: - gLinkState.field_0x34[4] = 1; + gPlayerState.field_0x34[4] = 1; break; case 0xb: - gLinkState.field_0x34[4] = 3; + gPlayerState.field_0x34[4] = 3; break; case 0xc: - gLinkState.field_0x34[4] = 4; + gPlayerState.field_0x34[4] = 4; } pl->entityType.type = 1; pl->flags |= 0xa0; diff --git a/src/item.c b/src/item.c index b757fa6c..8d3e0f72 100644 --- a/src/item.c +++ b/src/item.c @@ -61,28 +61,28 @@ extern u8 gUnk_02034490; #if 0 void Ocarina(ItemBehavior* beh, u32 inputFlags) { gOcarinaStates[beh->stateID](beh, inputFlags); - gLinkEntity.field_0x7a++; + gPlayerEntity.field_0x7a++; } void OcarinaUse(ItemBehavior *beh, u32 arg1) { u32 bVar1; - if (gLinkState.linkAction == 0x18) { - LinkChangeState(beh, arg1); + if (gPlayerState.playerAction == 0x18) { + PlayerChangeState(beh, arg1); } else { beh->field_0x5[4] = beh->field_0x5[4] | 0xf; - gLinkEntity.animationState = 4; - gLinkEntity.spriteSettings.b.flipX = 0; - gLinkEntity.flags &= 0x7f; - gLinkEntity.field_0x7a = 2; - gLinkState.flags.all |= 0x10000000; - gLinkState.field_0x27[0] = 0xff; + gPlayerEntity.animationState = 4; + gPlayerEntity.spriteSettings.b.flipX = 0; + gPlayerEntity.flags &= 0x7f; + gPlayerEntity.field_0x7a = 2; + gPlayerState.flags.all |= 0x10000000; + gPlayerState.field_0x27[0] = 0xff; gUnk_02034490 = 1; bVar1 = (8 >> arg1); - gLinkState.field_0xa |= bVar1; - gLinkState.keepFacing |= bVar1; + gPlayerState.field_0xa |= bVar1; + gPlayerState.keepFacing |= bVar1; sub_08078F60(); sub_08077D38(beh, arg1); PlaySFX(0x216); @@ -98,7 +98,7 @@ void PacciCane(ItemBehavior* beh, u32 arg1) { void sub_08076C98(ItemBehavior* beh, u32 arg1) { beh->field_0x5[4] |= 0xf; sub_08077D38(beh, arg1); - sub_0806F948(&gLinkEntity); + sub_0806F948(&gPlayerEntity); sub_08077BB8(beh); } @@ -118,25 +118,25 @@ void Shield(ItemBehavior* beh, u32 arg1) { } void sub_08076D04(ItemBehavior* beh, u32 arg1) { - gLinkState.field_0x3[0] = 0x81; + gPlayerState.field_0x3[0] = 0x81; beh->field_0x5[4] = 2; - sub_0806F948(&gLinkEntity); + sub_0806F948(&gPlayerEntity); sub_08077D38(beh, arg1); sub_08077BB8(beh); } void sub_08076D34(ItemBehavior* beh, u32 arg1) { if (sub_08077EFC() != 0) { - gLinkState.field_0x3[0] |= 1; + gPlayerState.field_0x3[0] |= 1; UpdateItemAnim(beh); if (beh->field_0x5[9] != 0) { beh->stateID++; beh->field_0xf = 0; - gLinkState.field_0xa &= ~(u8)(8 >> arg1); + gPlayerState.field_0xa &= ~(u8)(8 >> arg1); PlaySFX(0x15d); } } else { - gLinkState.field_0x3[0] = 0; + gPlayerState.field_0x3[0] = 0; sub_08077E78(beh, arg1); } } @@ -144,17 +144,17 @@ void sub_08076D34(ItemBehavior* beh, u32 arg1) { void sub_08076D94(ItemBehavior *beh, u32 arg1) { if (sub_08077EFC(beh)) { - gLinkState.field_0x3[0] |= 1; + gPlayerState.field_0x3[0] |= 1; UpdateItemAnim(beh); } else { - gLinkState.field_0x3[0] = 0; + gPlayerState.field_0x3[0] = 0; sub_08077E78(beh, arg1); } } void GustJar(ItemBehavior *beh, u32 arg1) { - gLinkState.field_0xa8[0] = 3; + gPlayerState.field_0xa8[0] = 3; gUnk_0811BDF4[beh->stateID](beh, arg1); } \ No newline at end of file diff --git a/src/item11.c b/src/item11.c index e6ab76de..a47bdaa9 100644 --- a/src/item11.c +++ b/src/item11.c @@ -1,6 +1,6 @@ #include "global.h" #include "entity.h" -#include "link.h" +#include "player.h" extern void DeleteThisEntity(); extern void sub_08078CD0(Entity*); @@ -31,14 +31,14 @@ void sub_08018CBC(Entity *this) u8 uVar2; Entity *pEVar3; - *(u32 *)&this->cutsceneBeh = this->x.WORD = gLinkEntity.x.WORD; - *(u32 *)&this->field_0x80 = this->y.WORD = gLinkEntity.y.WORD; - uVar2 = this->animationState = gLinkEntity.animationState & 0xe; + *(u32 *)&this->cutsceneBeh = this->x.WORD = gPlayerEntity.x.WORD; + *(u32 *)&this->field_0x80 = this->y.WORD = gPlayerEntity.y.WORD; + uVar2 = this->animationState = gPlayerEntity.animationState & 0xe; this->direction = (u8)(uVar2 << 2); this->nonPlanarMovement = 0x400; this->damageType = 0x96; - this->field_0x3c = (gLinkEntity.field_0x3c + 1) | 0x80; - this->flags2 = gLinkEntity.flags2; + this->field_0x3c = (gPlayerEntity.field_0x3c + 1) | 0x80; + this->flags2 = gPlayerEntity.flags2; pEVar3 = this->attachedEntity; if (pEVar3 != NULL) { this->action = 1; @@ -51,7 +51,7 @@ void sub_08018CBC(Entity *this) this->attachedEntity->spriteSettings.b.draw = 0; } else { - if (gLinkState.field_0x1c == 0) { + if (gPlayerState.field_0x1c == 0) { DeleteThisEntity(); } this->action = 2; @@ -59,14 +59,14 @@ void sub_08018CBC(Entity *this) this->spriteIndex = 0xa6; this->palette.raw = 0x33; this->spriteVramOffset = 0; - (this->entityType).form = gLinkState.field_0x1d[0] - 1; + (this->entityType).form = gPlayerState.field_0x1d[0] - 1; this->actionDelay = gUnk_080B3DE0[(this->entityType).form * 2]; this->field_0x44 = gUnk_080B3DE0[(this->entityType).form * 2 + 1]; this->field_0x40 = 0x1b; this->boundingBox = gUnk_080B3DE8[(this->entityType).form]; - (u32 *)gLinkEntity.field_0x70.WORD = this; - sub_08078CD0(&gLinkEntity); - (u32 *)gLinkEntity.field_0x70.WORD = pEVar3; + (u32 *)gPlayerEntity.field_0x70.WORD = this; + sub_08078CD0(&gPlayerEntity); + (u32 *)gPlayerEntity.field_0x70.WORD = pEVar3; InitializeAnimation(this, (this->entityType).form + 10); sub_08018FA0(this); } @@ -79,10 +79,10 @@ void sub_08018DE8(Entity *this) bVar1 = this->attachedEntity->field_0x3a & 4; if (bVar1 == 0) { - gLinkState.field_0x1c = bVar1; + gPlayerState.field_0x1c = bVar1; DeleteThisEntity(); } - switch (gLinkState.field_0x1c) { + switch (gPlayerState.field_0x1c) { case 0: sub_08018F6C(this); break; @@ -95,5 +95,5 @@ void sub_08018DE8(Entity *this) sub_08018FA0(this); break; } - sub_08078CD0(&gLinkEntity); + sub_08078CD0(&gPlayerEntity); } \ No newline at end of file diff --git a/src/manager/manager6.c b/src/manager/manager6.c index deb44026..7914a224 100644 --- a/src/manager/manager6.c +++ b/src/manager/manager6.c @@ -1,6 +1,6 @@ #include "global.h" #include "entity.h" -#include "link.h" +#include "player.h" #include "manager.h" extern void* GetCurrentRoomProperty(u8); @@ -19,13 +19,13 @@ void sub_08057CB4(Entity * this) { return; } } - if (this->actionDelay == 0 || gLinkState.field_0x10[2] == 0x1e) { + if (this->actionDelay == 0 || gPlayerState.field_0x10[2] == 0x1e) { for (i = ((UnkManagerHelperStruct*) this->field_0x20);i->field_0x00 != 0xFFFF; i++) { tmp = (i->field_0x07.all & 0x3); - if (((tmp & (gLinkEntity.collisionLayer)) != 0) && - (((gLinkState.flags.all & 0x80) != 0) || ((i->field_0x07.b.unk2) != 0)) && + if (((tmp & (gPlayerEntity.collisionLayer)) != 0) && + (((gPlayerState.flags.all & 0x80) != 0) || ((i->field_0x07.b.unk2) != 0)) && (CheckPlayerInRegion(i->field_0x00,i->field_0x02,i->field_0x04,i->field_0x05) != 0) && - (gLinkEntity.height.HALF.HI == 0)) { + (gPlayerEntity.height.HALF.HI == 0)) { DoExitTransition(GetCurrentRoomProperty(i->field_0x06)); } } diff --git a/src/modHealth.c b/src/modHealth.c index 8706debe..a42917a4 100644 --- a/src/modHealth.c +++ b/src/modHealth.c @@ -1,6 +1,6 @@ #include "global.h" #include "entity.h" -#include "link.h" +#include "player.h" s32 ModHealth(s32 deltaHealth) @@ -15,6 +15,6 @@ s32 ModHealth(s32 deltaHealth) newHealth = (u32)gStats.maxHealth; } gStats.health = newHealth; - gLinkEntity.currentHealth = newHealth; + gPlayerEntity.currentHealth = newHealth; return newHealth; } diff --git a/src/modRupees.c b/src/modRupees.c index bbe8b88e..cedec389 100644 --- a/src/modRupees.c +++ b/src/modRupees.c @@ -1,5 +1,5 @@ #include "global.h" -#include "link.h" +#include "player.h" extern u16 gWalletSizes[4]; diff --git a/src/npc/anju.c b/src/npc/anju.c index 19e5a7a2..939e5c45 100644 --- a/src/npc/anju.c +++ b/src/npc/anju.c @@ -1,6 +1,6 @@ #include "global.h" #include "entity.h" -#include "link.h" +#include "player.h" #include "room.h" #include "flags.h" #include "sprite.h" @@ -28,7 +28,7 @@ void Anju(Entity *this) if (this->interactType == 2) { this->action = 2; this->interactType = 0; - InitializeAnimation(this,(this->animIndex & -4) + sub_0806F5A4(GetFacingDirection(this, &gLinkEntity))); + InitializeAnimation(this,(this->animIndex & -4) + sub_0806F5A4(GetFacingDirection(this, &gPlayerEntity))); sub_0806F118(this); } else { sub_0807DD94(this, 0); diff --git a/src/npc/beedle.c b/src/npc/beedle.c index bdcce8c7..3b30e19b 100644 --- a/src/npc/beedle.c +++ b/src/npc/beedle.c @@ -2,7 +2,7 @@ #include "entity.h" #include "functions.h" #include "textbox.h" -#include "link.h" +#include "player.h" #include "room.h" typedef struct { @@ -118,8 +118,8 @@ void sub_0806346C(Entity* this) { s32 iVar2; s32 iVar3; - iVar3 = (gLinkEntity.x.HALF.HI - this->x.HALF.HI); - iVar2 = (gLinkEntity.y.HALF.HI - this->y.HALF.HI); + iVar3 = (gPlayerEntity.x.HALF.HI - this->x.HALF.HI); + iVar2 = (gPlayerEntity.y.HALF.HI - this->y.HALF.HI); iVar3 += 0x30; iVar2 += 0x18; @@ -139,7 +139,7 @@ void sub_0806346C(Entity* this) { iVar3 >>= 4; iVar2 >>= 4; - bVar1 = gUnk_0810C8F0[(gLinkEntity.animationState >> 1) + iVar3 * 4 + iVar2 * 0x18]; + bVar1 = gUnk_0810C8F0[(gPlayerEntity.animationState >> 1) + iVar3 * 4 + iVar2 * 0x18]; if (bVar1 != this->entityType.parameter) { gUnk_0810C89C_struct* temp = &gUnk_0810C89C[bVar1]; sub_08078850(this, 1, temp->unk_04, temp); diff --git a/src/npc/bigGoron.c b/src/npc/bigGoron.c index 3b3a5101..e2024a25 100644 --- a/src/npc/bigGoron.c +++ b/src/npc/bigGoron.c @@ -1,6 +1,6 @@ #include "global.h" #include "entity.h" -#include "link.h" +#include "player.h" #include "structures.h" extern void (*gUnk_081140D4[])(Entity*); @@ -37,10 +37,10 @@ void sub_0806CF30(Entity* this) { case 0: case 1: if (gScreenTransition.frameCount % 4 == 0) { - if (gLinkEntity.x.HALF.HI < this->x.HALF.HI && this->field_0x68.HWORD - 32 < this->x.HALF.HI) { + if (gPlayerEntity.x.HALF.HI < this->x.HALF.HI && this->field_0x68.HWORD - 32 < this->x.HALF.HI) { this->x.HALF.HI--; } - if (gLinkEntity.x.HALF.HI > this->x.HALF.HI && this->field_0x68.HWORD + 32 > this->x.HALF.HI) { + if (gPlayerEntity.x.HALF.HI > this->x.HALF.HI && this->field_0x68.HWORD + 32 > this->x.HALF.HI) { this->x.HALF.HI++; } } diff --git a/src/npc/bladeBrothers.c b/src/npc/bladeBrothers.c index 3ebb104f..cc6433f6 100644 --- a/src/npc/bladeBrothers.c +++ b/src/npc/bladeBrothers.c @@ -2,7 +2,7 @@ #include "entity.h" #include "functions.h" #include "flags.h" -#include "link.h" +#include "player.h" #include "room.h" #include "textbox.h" @@ -122,7 +122,7 @@ void FUN_08068b2c(Entity* this) { if (this->interactType == '\x02') { this->action = 2; this->interactType = '\0'; - uVar1 = sub_0806F5A4(GetFacingDirection(this, &gLinkEntity)); + uVar1 = sub_0806F5A4(GetFacingDirection(this, &gPlayerEntity)); InitAnimationForceUpdate(this, uVar1); sub_0806F118(this); } else { @@ -345,16 +345,16 @@ void sub_08068E78(Entity* this) { } void sub_08068E90(Entity* this) { - LinkState* s = &gLinkState; + PlayerState* s = &gPlayerState; *(u16*)&s->field_0xac = (1 << (gUnk_08111740[this->actionDelay] - 1)) | *(u16*)&s->field_0xac; } void sub_08068EB4(void) { - gLinkState.field_0xab = 0; + gPlayerState.field_0xab = 0; } void sub_08068EC4(Entity* param_1, Entity* param_2) { - if (gUnk_08111740[param_1->actionDelay] == gLinkState.field_0xab) { + if (gUnk_08111740[param_1->actionDelay] == gPlayerState.field_0xab) { *(u16*)¶m_2->flags = gUnk_0811172A[param_1->actionDelay]; *(u32*)¶m_2->animationState = 1; } else { diff --git a/src/npc/carpenter.c b/src/npc/carpenter.c index bbf9a1ed..b28fc197 100644 --- a/src/npc/carpenter.c +++ b/src/npc/carpenter.c @@ -1,7 +1,7 @@ #include "global.h" #include "entity.h" #include "sprite.h" -#include "link.h" +#include "player.h" extern void DeleteThisEntity(); extern u32 LoadExtraSpriteData(Entity*, SpriteLoadData*); @@ -35,7 +35,7 @@ void Carpenter(Entity* this) { this->action = 2; this->interactType = 0; this->field_0x68.HALF.HI = this->animIndex; - InitializeAnimation(this, sub_0806F5A4(GetFacingDirection(this, &gLinkEntity)) + 4 + (this->entityType.form * 8)); + InitializeAnimation(this, sub_0806F5A4(GetFacingDirection(this, &gPlayerEntity)) + 4 + (this->entityType.form * 8)); sub_0806F118(this); } else { sub_0807DDAC(this, 0); diff --git a/src/npc/cow.c b/src/npc/cow.c index ed448997..9c62c898 100644 --- a/src/npc/cow.c +++ b/src/npc/cow.c @@ -1,6 +1,6 @@ #include "global.h" #include "entity.h" -#include "link.h" +#include "player.h" extern void sub_0806ED78(Entity*); extern void sub_0806920C(Entity*); @@ -19,7 +19,7 @@ extern u32 gUnk_08111938[]; extern void PlaySFX(u32); extern u32 Random(); extern u32 UpdateFuseInteraction(Entity*); -extern LinkState gLinkState; +extern PlayerState gPlayerState; void Cow(Entity* ent) { gUnk_08111914[ent->action](ent); @@ -191,7 +191,7 @@ void Cow_ShowDialogue(Entity* ent) { void sub_0806920C(Entity* ent) { // TODO: figure out what bitfield flag this is - u32 var0 = gLinkState.flags.all & 0x80; + u32 var0 = gPlayerState.flags.all & 0x80; u32 var1 = -var0 >> 0x1F; if (var1 != ent->field_0x6c.HALF.HI) { @@ -210,7 +210,7 @@ void sub_0806924C(Entity* ent) { s8 itype = ent->interactType; if (itype != 0) { // TODO: figure out what bitfield flag this is - if ((gLinkState.flags.all & 0x80) != 0) { + if ((gPlayerState.flags.all & 0x80) != 0) { if (itype == 2) { ent->action = 4; sub_0806F118(ent); diff --git a/src/npc/dampe.c b/src/npc/dampe.c index 8e9707a7..f424c1d8 100644 --- a/src/npc/dampe.c +++ b/src/npc/dampe.c @@ -1,6 +1,6 @@ #include "global.h" #include "entity.h" -#include "link.h" +#include "player.h" #include "room.h" #include "flags.h" #include "sprite.h" @@ -36,7 +36,7 @@ void Dampe(Entity* this) { if (this->interactType == 2) { this->action = 2; this->interactType = 0; - InitAnimationForceUpdate(this, sub_0806F5A4(GetFacingDirection(this, &gLinkEntity)) + 4); + InitAnimationForceUpdate(this, sub_0806F5A4(GetFacingDirection(this, &gPlayerEntity)) + 4); sub_0806F118(this); } else { sub_0807DD94(this, 0); diff --git a/src/npc/epona.c b/src/npc/epona.c index 51e2da86..89c18204 100644 --- a/src/npc/epona.c +++ b/src/npc/epona.c @@ -1,7 +1,7 @@ #include "global.h" #include "entity.h" #include "textbox.h" -#include "link.h" +#include "player.h" #include "functions.h" void sub_08065A64(Entity* this); @@ -56,7 +56,7 @@ void sub_08065A50(Entity* this) { void sub_08065A64(Entity* this) { u32 uVar2; - uVar2 = -(gLinkState.flags.all & 0x80) >> 0x1f; + uVar2 = -(gPlayerState.flags.all & 0x80) >> 0x1f; if (uVar2 != this->field_0x68.HALF.HI) { if (uVar2 == 0) { sub_08078778(this); @@ -69,7 +69,7 @@ void sub_08065A64(Entity* this) { void sub_08065AA4(Entity* this) { if (this->interactType != 0) { - if (gLinkState.flags.all & 0x80) { + if (gPlayerState.flags.all & 0x80) { if (this->interactType == 2) { this->action = 4; sub_0806F118(this); @@ -78,7 +78,7 @@ void sub_08065AA4(Entity* this) { sub_0805E3A0(this, 2); sub_08065A50(this); } - InitAnimationForceUpdate(this, sub_0806F5A4(GetFacingDirection(this, &gLinkEntity))); + InitAnimationForceUpdate(this, sub_0806F5A4(GetFacingDirection(this, &gPlayerEntity))); } else { sub_08065A50(this); sub_080791D0(); diff --git a/src/npc/festari.c b/src/npc/festari.c index 310db3fa..54688ac2 100644 --- a/src/npc/festari.c +++ b/src/npc/festari.c @@ -2,7 +2,7 @@ #include "entity.h" #include "functions.h" #include "npc.h" -#include "link.h" +#include "player.h" extern void sub_0805E3A0(Entity*, u32); extern u32 sub_0801E99C(Entity*); @@ -41,7 +41,7 @@ void sub_0805FE48(Entity *this) if (this->interactType == 2) { this->action = 2; this->interactType = 0; - InitAnimationForceUpdate(this, sub_0806F5A4(GetFacingDirection(this, &gLinkEntity))); + InitAnimationForceUpdate(this, sub_0806F5A4(GetFacingDirection(this, &gPlayerEntity))); sub_0806F118(this); } else { diff --git a/src/npc/forestMinish.c b/src/npc/forestMinish.c index 7d0daab7..4fa025c6 100644 --- a/src/npc/forestMinish.c +++ b/src/npc/forestMinish.c @@ -3,7 +3,7 @@ #include "npc.h" #include "flags.h" #include "textbox.h" -#include "link.h" +#include "player.h" #include "structures.h" extern void sub_0805E3A0(Entity*, u32); diff --git a/src/npc/gentari.c b/src/npc/gentari.c index 31b3bdc4..f03f3f0f 100644 --- a/src/npc/gentari.c +++ b/src/npc/gentari.c @@ -1,7 +1,7 @@ #include "global.h" #include "entity.h" #include "npc.h" -#include "link.h" +#include "player.h" extern void sub_0805E3A0(Entity*, u32); extern u32 sub_0801E99C(Entity*); @@ -26,7 +26,7 @@ void Gentari(Entity *this) if (this->interactType == 2) { this->action = 2; this->interactType = 0; - InitAnimationForceUpdate(this, sub_0806F5A4(GetFacingDirection(this, &gLinkEntity))); + InitAnimationForceUpdate(this, sub_0806F5A4(GetFacingDirection(this, &gPlayerEntity))); sub_0806F118(this); } else { sub_0807DD94(this, 0); diff --git a/src/npc/guard.c b/src/npc/guard.c index 60fa3fb4..675e2cb6 100644 --- a/src/npc/guard.c +++ b/src/npc/guard.c @@ -1,6 +1,6 @@ #include "global.h" #include "entity.h" -#include "link.h" +#include "player.h" #include "flags.h" #include "textbox.h" #include "room.h" @@ -93,7 +93,7 @@ void sub_08063DC8(Entity* this) { if ((this->entityType).form == 0xff) { this->action = 2; this->actionDelay = 0x1e; - this->animationState = sub_0806F5A4(GetFacingDirection(this, &gLinkEntity)); + this->animationState = sub_0806F5A4(GetFacingDirection(this, &gPlayerEntity)); InitAnimationForceUpdate(this, this->animationState + 4); } else { sub_0806EE20(this); @@ -106,7 +106,7 @@ void sub_08063DC8(Entity* this) { if (this->interactType != 0) { this->action = 3; this->interactType = 0; - InitializeAnimation(this, sub_0806F5A4(GetFacingDirection(this, &gLinkEntity))); + InitializeAnimation(this, sub_0806F5A4(GetFacingDirection(this, &gPlayerEntity))); sub_08064428(this); } } @@ -166,7 +166,7 @@ void sub_08063F20(Entity* this) { if (this->interactType != 0) { this->action++; this->interactType = 0; - InitializeAnimation(this, sub_0806F5A4(GetFacingDirection(this, &gLinkEntity)) + *(s8*)&this->field_0x70); + InitializeAnimation(this, sub_0806F5A4(GetFacingDirection(this, &gPlayerEntity)) + *(s8*)&this->field_0x70); sub_08064428(this); } } diff --git a/src/npc/malon.c b/src/npc/malon.c index 4a599435..15b8c1f4 100644 --- a/src/npc/malon.c +++ b/src/npc/malon.c @@ -2,7 +2,7 @@ #include "functions.h" #include "entity.h" -extern Entity gLinkEntity; +extern Entity gPlayerEntity; extern void (*gUnk_0810FF5C[])(Entity* this); extern void (*gUnk_0810FF64[])(Entity* this); @@ -41,7 +41,7 @@ void sub_080658BC(Entity* this) { if (this->interactType == 2) { this->action = 2; this->interactType = 0; - InitAnimationForceUpdate(this, sub_0806F5A4(GetFacingDirection(this, &gLinkEntity))); + InitAnimationForceUpdate(this, sub_0806F5A4(GetFacingDirection(this, &gPlayerEntity))); sub_0806F118(this); } else { sub_0807DD94(this, 0); diff --git a/src/npc/mayorHagen.c b/src/npc/mayorHagen.c index 9c9cbe51..222ec32c 100644 --- a/src/npc/mayorHagen.c +++ b/src/npc/mayorHagen.c @@ -1,6 +1,6 @@ #include "global.h" #include "entity.h" -#include "link.h" +#include "player.h" #include "room.h" #include "flags.h" #include "sprite.h" @@ -41,7 +41,7 @@ void MayorHagen(Entity *this) this->action = v; this->interactType = 0; this->field_0x68.HALF.HI = this->animIndex; - InitAnimationForceUpdate(this,4 + sub_0806F5A4(GetFacingDirection(this, &gLinkEntity))); + InitAnimationForceUpdate(this,4 + sub_0806F5A4(GetFacingDirection(this, &gPlayerEntity))); sub_0806F118(this); break; } diff --git a/src/npc/moblinLady.c b/src/npc/moblinLady.c index 2dc1e5f6..8d3f2f49 100644 --- a/src/npc/moblinLady.c +++ b/src/npc/moblinLady.c @@ -1,6 +1,6 @@ #include "global.h" #include "entity.h" -#include "link.h" +#include "player.h" #include "room.h" #include "flags.h" #include "sprite.h" diff --git a/src/npc/mutoh.c b/src/npc/mutoh.c index e20d6ea6..b0e95a36 100644 --- a/src/npc/mutoh.c +++ b/src/npc/mutoh.c @@ -1,6 +1,6 @@ #include "global.h" #include "entity.h" -#include "link.h" +#include "player.h" #include "flags.h" #include "textbox.h" #include "npc.h" @@ -40,7 +40,7 @@ void Mutoh(Entity* this) if (this->interactType == 2) { this->action = 2; this->interactType = 0; - InitAnimationForceUpdate(this, sub_0806F5A4(GetFacingDirection(this, &gLinkEntity)) + 4); + InitAnimationForceUpdate(this, sub_0806F5A4(GetFacingDirection(this, &gPlayerEntity)) + 4); sub_0806F118(this); } else { sub_0807DD94(this, 0); diff --git a/src/npc/postman.c b/src/npc/postman.c index c26dc457..2f357b57 100644 --- a/src/npc/postman.c +++ b/src/npc/postman.c @@ -3,7 +3,7 @@ #include "functions.h" #include "npc.h" #include "textbox.h" -#include "link.h" +#include "player.h" #include "room.h" #include "structures.h" @@ -145,14 +145,14 @@ void sub_08060528(Entity *this) this->action = 3; this->interactType = 0; sub_0806F118(this); - InitAnimationForceUpdate(this, sub_0806F5A4(GetFacingDirection(this, &gLinkEntity))); + InitAnimationForceUpdate(this, sub_0806F5A4(GetFacingDirection(this, &gPlayerEntity))); } else { if (this->interactType != 0) { this->action = 2; this->interactType = 0; sub_080606D8(this); - InitAnimationForceUpdate(this, sub_0806F5A4(GetFacingDirection(this, &gLinkEntity))); + InitAnimationForceUpdate(this, sub_0806F5A4(GetFacingDirection(this, &gPlayerEntity))); } else { sub_0807DD94(this, 0); @@ -192,7 +192,7 @@ void sub_08060528(Entity *this) sub_080606C0(this); } if ((-1 < this->height.WORD) && - ((gLinkEntity.collisionLayer == 0 || (this->collisionLayer == gLinkEntity.collisionLayer)))) { + ((gPlayerEntity.collisionLayer == 0 || (this->collisionLayer == gPlayerEntity.collisionLayer)))) { sub_0806ED78(this); } sub_0800451C(this); diff --git a/src/npc/smith.c b/src/npc/smith.c index ef3b80ac..ca588dba 100644 --- a/src/npc/smith.c +++ b/src/npc/smith.c @@ -49,7 +49,7 @@ void Smith(Entity *this) this->action = 4; this->interactType = 0; iVar4 = (this->animIndex == 0xc) ? 8 : 0; - iVar2 = sub_0806F5A4(GetFacingDirection(this, &gLinkEntity)); + iVar2 = sub_0806F5A4(GetFacingDirection(this, &gPlayerEntity)); InitAnimationForceUpdate(this, iVar2 + iVar4); sub_0806F118(this); } diff --git a/src/npc/talon.c b/src/npc/talon.c index 5b01b650..b4ddbe84 100644 --- a/src/npc/talon.c +++ b/src/npc/talon.c @@ -2,7 +2,7 @@ #include "entity.h" #include "textbox.h" #include "functions.h" -#include "link.h" +#include "player.h" extern void (*gUnk_0810FEC4[])(Entity* this); extern void (*gUnk_0810FEBC[])(Entity* this); @@ -126,7 +126,7 @@ void sub_080656D4(Entity* this) { void sub_0806574C(Entity* this) { u32 j; - j = (this->animIndex & ~3) + sub_0806F5A4(GetFacingDirection(this, &gLinkEntity)); + j = (this->animIndex & ~3) + sub_0806F5A4(GetFacingDirection(this, &gPlayerEntity)); if (this->animIndex != j) { InitAnimationForceUpdate(this, j); } diff --git a/src/npc/teachers.c b/src/npc/teachers.c index 1a98617f..0d3a9527 100644 --- a/src/npc/teachers.c +++ b/src/npc/teachers.c @@ -1,6 +1,6 @@ #include "global.h" #include "entity.h" -#include "link.h" +#include "player.h" typedef struct { u8 filler[8]; @@ -41,7 +41,7 @@ void Teachers(Entity* this) { this->interactType = 0; this->field_0x68.HALF.HI = this->animIndex; InitializeAnimation(this, - (this->animIndex & -4) + sub_0806F5A4(GetFacingDirection(this, &gLinkEntity))); + (this->animIndex & -4) + sub_0806F5A4(GetFacingDirection(this, &gPlayerEntity))); sub_0806F118(this); } else { sub_0807DD94(this, 0); diff --git a/src/npc/townMinish.c b/src/npc/townMinish.c index d6595f2b..80d207ef 100644 --- a/src/npc/townMinish.c +++ b/src/npc/townMinish.c @@ -50,7 +50,7 @@ void sub_0806ABFC(Entity *this) s32 unk; u8 field_0x68; - Entity *link = &gLinkEntity; + Entity *link = &gPlayerEntity; if (sub_080041A0(this, link, 0x18, 0x18)) { unk = GetFacingDirection(this, link) & (u8)0x1e; } diff --git a/src/npc/townsperson.c b/src/npc/townsperson.c index 60748042..7fe6e64a 100644 --- a/src/npc/townsperson.c +++ b/src/npc/townsperson.c @@ -1,7 +1,7 @@ #include "global.h" #include "entity.h" #include "npc.h" -#include "link.h" +#include "player.h" #include "textbox.h" #include "flags.h" #include "structures.h" @@ -145,7 +145,7 @@ void sub_08061D64(Entity* this) { this->interactType = 0; sub_0806F118(this); this->field_0x68.HALF.HI = this->animIndex; - InitializeAnimation(this, (this->animIndex & -4) + sub_0806F5A4(GetFacingDirection(this, &gLinkEntity))); + InitializeAnimation(this, (this->animIndex & -4) + sub_0806F5A4(GetFacingDirection(this, &gPlayerEntity))); } else { sub_0807DDAC(this, 0); sub_0807DDE4(this); @@ -158,7 +158,7 @@ void sub_08061D64(Entity* this) { this->interactType = 0; sub_08062048(this); this->field_0x68.HALF.HI = this->animIndex; - InitializeAnimation(this, (this->animIndex & -4) + sub_0806F5A4(GetFacingDirection(this, &gLinkEntity))); + InitializeAnimation(this, (this->animIndex & -4) + sub_0806F5A4(GetFacingDirection(this, &gPlayerEntity))); } } } diff --git a/src/npc/zelda.c b/src/npc/zelda.c index 43a8e36f..4516b40e 100644 --- a/src/npc/zelda.c +++ b/src/npc/zelda.c @@ -20,7 +20,7 @@ extern void sub_0806F62C(Entity*, u32, u32); extern void PlaySFX(u32); extern void SetTileType(u32, u32, u32); -extern Entity gLinkEntity; +extern Entity gPlayerEntity; extern RoomControls gRoomControls; extern void (*gUnk_08110BD8[])(Entity* ent); @@ -86,7 +86,7 @@ void sub_08066D94(Entity* ent) { SetGlobalFlag(ZELDA_CHASE); npc = CreateNPC(0x2E, 0, 0); if (npc != NULL) { - npc->animationState = gLinkEntity.animationState; + npc->animationState = gPlayerEntity.animationState; npc->flags |= 0x20; npc->animationState = GetAnimationState(ent); roomID = gRoomControls.roomID; diff --git a/src/object.c b/src/object.c index d657e5de..6713b8e7 100644 --- a/src/object.c +++ b/src/object.c @@ -63,7 +63,7 @@ void (*const gObjectFunctions[])(Entity*) = { /*0x39*/ BossDoor, /*0x3a*/ Object3A, /*0x3b*/ MacroMushromStalks, - /*0x3c*/ MacroLink, + /*0x3c*/ MacroPlayer, /*0x3d*/ Object3D, /*0x3e*/ Object3E, /*0x3f*/ GiantLeaf, diff --git a/src/object/cloud.c b/src/object/cloud.c index 54fa6621..fce592f1 100644 --- a/src/object/cloud.c +++ b/src/object/cloud.c @@ -1,7 +1,7 @@ #include "global.h" #include "entity.h" #include "room.h" -#include "link.h" +#include "player.h" #include "flags.h" extern void sub_0809F7BC(Entity*); @@ -25,8 +25,8 @@ extern void sub_0807BB68(u32*, u32, u32); extern u8 gUnk_02034490; extern u32 gScreenTransition; extern void* gUnk_080DD750; -extern Entity gLinkEntity; -extern LinkState gLinkState; +extern Entity gPlayerEntity; +extern PlayerState gPlayerState; extern u8 gUnk_081247C0[]; extern u16 gUnk_081247C8[]; extern u32 gUnk_081247D0; @@ -123,7 +123,7 @@ void sub_0809F69C(Entity* this) { if (--this->actionDelay == 0) { this->actionDelay = 30; this->action = 4; - gRoomControls.cameraTarget = &gLinkEntity; + gRoomControls.cameraTarget = &gPlayerEntity; PlaySFX(115); } } @@ -131,7 +131,7 @@ void sub_0809F69C(Entity* this) { void sub_0809F6CC(Entity* this) { if (((gRoomControls.unk6 & 4) == 0) && (--this->actionDelay == 0)) { - gLinkState.field_0x8b = 1; + gPlayerState.field_0x8b = 1; DeleteThisEntity(); } } diff --git a/src/object/greatFairy.c b/src/object/greatFairy.c index 4e2c4d40..bfdf0807 100644 --- a/src/object/greatFairy.c +++ b/src/object/greatFairy.c @@ -32,12 +32,12 @@ void GreatFairy(Entity* this) { void GreatFairy_CallBehavior(Entity* this) { GreatFairy_Behaviors[this->action](this); - if ((gLinkEntity.y.HALF.HI - gRoomControls.roomOriginY) < 168) { + if ((gPlayerEntity.y.HALF.HI - gRoomControls.roomOriginY) < 168) { gRoomControls.cameraTarget = this; gRoomControls.unk5 = 2; } else { - gRoomControls.cameraTarget = &gLinkEntity; + gRoomControls.cameraTarget = &gPlayerEntity; gRoomControls.unk5 = 2; } } diff --git a/src/object/heartContainer.c b/src/object/heartContainer.c index b32b1981..d55f7171 100644 --- a/src/object/heartContainer.c +++ b/src/object/heartContainer.c @@ -63,7 +63,7 @@ static void sub_0808E714(Entity* this) { static void sub_0808E764(Entity* this) { sub_08080CB4(this); - if (!(gLinkState.flags.all & 0x80) && sub_08017850(this)) { + if (!(gPlayerState.flags.all & 0x80) && sub_08017850(this)) { SetFlag(this->cutsceneBeh.HWORD); CreateItemEntity(0x62, 0, 0); DeleteThisEntity(); diff --git a/src/object/houseDoorExterior.c b/src/object/houseDoorExterior.c index c68f6b23..4b53add6 100755 --- a/src/object/houseDoorExterior.c +++ b/src/object/houseDoorExterior.c @@ -166,9 +166,9 @@ void sub_0808692C(Entity* this) { static u8 sub_08086954(Entity* this) { if (sub_0800445C(this)) { if (sub_0806ED9C(this, 6, 20) >= 0 && - gLinkEntity.animationState == 0 && - (u16)gLinkState.field_0x90.HALF.LO == 0x400 && - gLinkState.jumpStatus == 0) { + gPlayerEntity.animationState == 0 && + (u16)gPlayerState.field_0x90.HALF.LO == 0x400 && + gPlayerState.jumpStatus == 0) { this->actionDelay--; } } else { diff --git a/src/object/mask.c b/src/object/mask.c index 033039e4..dfabc160 100644 --- a/src/object/mask.c +++ b/src/object/mask.c @@ -3,7 +3,7 @@ #include "room.h" #include "random.h" -extern Entity gLinkEntity; +extern Entity gPlayerEntity; extern u16 gScreenTransition[]; extern void (*MaskActionFuncs[])(Entity *); @@ -76,20 +76,20 @@ void sub_080929A4(Entity *this) { // Probably related to knocking it down void sub_08092A94(Entity *this) { // Check for the first frame of bonking animation - if (gLinkEntity.action != 6) { + if (gPlayerEntity.action != 6) { return; } - if (gLinkEntity.animationState != 0) { + if (gPlayerEntity.animationState != 0) { return; } // Check if link is close enough to the mask - if (this->y.HALF.HI + 40 < gLinkEntity.y.HALF.HI) { + if (this->y.HALF.HI + 40 < gPlayerEntity.y.HALF.HI) { return; } - if (this->x.HALF.HI - gLinkEntity.x.HALF.HI >= this->field_0xf || this->x.HALF.HI - gLinkEntity.x.HALF.HI <= -this->field_0xf) { + if (this->x.HALF.HI - gPlayerEntity.x.HALF.HI >= this->field_0xf || this->x.HALF.HI - gPlayerEntity.x.HALF.HI <= -this->field_0xf) { return; } diff --git a/src/object/minecart.c b/src/object/minecart.c index bc434ff7..783e9696 100644 --- a/src/object/minecart.c +++ b/src/object/minecart.c @@ -36,7 +36,7 @@ void sub_080916EC(Entity* this) { struct_030010EC* unk = &gUnk_030010EC[this->actionDelay]; *(struct_030010EC**)&this->cutsceneBeh.HWORD = unk; - if ((gRoomControls.roomID != unk->field_0x4) || (gLinkState.flags.all & 0x1000) != 0) { + if ((gRoomControls.roomID != unk->field_0x4) || (gPlayerState.flags.all & 0x1000) != 0) { DeleteThisEntity(); } this->x.HALF.HI = gRoomControls.roomOriginX + ((unk->field_0x0 & 0x3f) << 4) + 8; @@ -66,8 +66,8 @@ void sub_080917DC(Entity* this) { PlaySFX(0x13b); } else { if (sub_0800445C(this) != 0) { - if (((gLinkState.flags.all & 0x40080) == 0) && (gLinkState.field_0x1c == 0) && - (gLinkState.heldObject == 0) && (gLinkState.jumpStatus == 0)) { + if (((gPlayerState.flags.all & 0x40080) == 0) && (gPlayerState.field_0x1c == 0) && + (gPlayerState.heldObject == 0) && (gPlayerState.jumpStatus == 0)) { this->actionDelay++; } else { this->actionDelay = 0; @@ -78,12 +78,12 @@ void sub_080917DC(Entity* this) { if ((this->entityType).parameter == 0) { if (8 < this->actionDelay) { this->action = this->action + 1; - gLinkState.jumpStatus = 0x81; - gLinkState.flags.all |= 0x4000000; - gLinkEntity.field_0x20 = 0x20000; - gLinkEntity.nonPlanarMovement = 0x100; - gLinkEntity.flags &= 0x7f; - ResetLink(); + gPlayerState.jumpStatus = 0x81; + gPlayerState.flags.all |= 0x4000000; + gPlayerEntity.field_0x20 = 0x20000; + gPlayerEntity.nonPlanarMovement = 0x100; + gPlayerEntity.flags &= 0x7f; + ResetPlayer(); sub_0807A108(); PlaySFX(0x7c); } @@ -95,21 +95,21 @@ void sub_080917DC(Entity* this) { void sub_080918A4(Entity *this) { - if (sub_080041A0(this, &gLinkEntity, 2, 2) != 0) { - gLinkEntity.x.HALF.HI = this->x.HALF.HI; - gLinkEntity.y.HALF.HI = this->y.HALF.HI; - if (gLinkEntity.height.HALF.HI > -0x10) { - if ((s32)gLinkEntity.field_0x20 > -1) { + if (sub_080041A0(this, &gPlayerEntity, 2, 2) != 0) { + gPlayerEntity.x.HALF.HI = this->x.HALF.HI; + gPlayerEntity.y.HALF.HI = this->y.HALF.HI; + if (gPlayerEntity.height.HALF.HI > -0x10) { + if ((s32)gPlayerEntity.field_0x20 > -1) { return; } - gLinkEntity.animationState = this->animationState << 1; - gLinkState.flags.all = (gLinkState.flags.all ^ 0x4000000) | 0x1000; + gPlayerEntity.animationState = this->animationState << 1; + gPlayerState.flags.all = (gPlayerState.flags.all ^ 0x4000000) | 0x1000; this->action++; this->field_0xf = 1; this->flags |= 0x20; this->damageType = 0x97; - this->field_0x3c = (gLinkEntity.field_0x3c + 1) | 0x20; - this->flags2 = gLinkEntity.flags2; + this->field_0x3c = (gPlayerEntity.field_0x3c + 1) | 0x20; + this->flags2 = gPlayerEntity.flags2; this->field_0x40 = 0x18; this->field_0x44 = 8; sub_0801766C(this); @@ -118,10 +118,10 @@ void sub_080918A4(Entity *this) } } else { - gLinkEntity.direction = GetFacingDirection(&gLinkEntity, this); + gPlayerEntity.direction = GetFacingDirection(&gPlayerEntity, this); } - if (gLinkEntity.field_0x20 < 0) { - gLinkEntity.spritePriority.b0 = this->spritePriority.b0 - 1; + if (gPlayerEntity.field_0x20 < 0) { + gPlayerEntity.spritePriority.b0 = this->spritePriority.b0 - 1; } } @@ -131,25 +131,25 @@ void sub_080919AC(Entity *this) u32 uVar3; gRoomControls.unk5 = 7; - if ((gLinkState.flags.all & 0x1000) == 0) { + if ((gPlayerState.flags.all & 0x1000) == 0) { this->action = 1; return; } - if ((gLinkEntity.frames.all & 0xf) == 0) { + if ((gPlayerEntity.frames.all & 0xf) == 0) { this->flags = this->flags & 0x7f; - CopyPosition(this,&gLinkEntity); - if ((gLinkEntity.frames.all & 0xf0) == 0x10) { + CopyPosition(this,&gPlayerEntity); + if ((gPlayerEntity.frames.all & 0xf0) == 0x10) { this->spriteOffsetY = 1; } else { this->spriteOffsetY = 0; } } else { this->flags = this->flags | 0x80; - gLinkEntity.nonPlanarMovement = 0; + gPlayerEntity.nonPlanarMovement = 0; sub_0806F69C(this); - CopyPosition(this,&gLinkEntity); - gLinkEntity.spritePriority.b0 = this->spritePriority.b0 - 1; + CopyPosition(this,&gPlayerEntity); + gPlayerEntity.spritePriority.b0 = this->spritePriority.b0 - 1; if (!sub_08091DDC(this)) { if ((gScreenTransition.frameCount & 0xf) == 0) { PlaySFX(0x138); @@ -175,13 +175,13 @@ void sub_080919AC(Entity *this) this->flags2 = 0x80; this->action = 6; sub_08017744(this); - gLinkState.jumpStatus = 0x41; - gLinkState.flags.all = (gLinkState.flags.all ^ 0x1000) | 0x4000000; - gLinkEntity.field_0x20 = 0x20000; - gLinkEntity.nonPlanarMovement = 0x200; - gLinkEntity.animationState = this->animationState << 1; - gLinkEntity.direction = this->direction; - gLinkEntity.flags |= 0x80; + gPlayerState.jumpStatus = 0x41; + gPlayerState.flags.all = (gPlayerState.flags.all ^ 0x1000) | 0x4000000; + gPlayerEntity.field_0x20 = 0x20000; + gPlayerEntity.nonPlanarMovement = 0x200; + gPlayerEntity.animationState = this->animationState << 1; + gPlayerEntity.direction = this->direction; + gPlayerEntity.flags |= 0x80; sub_08004168(this); InitAnimationForceUpdate(this, this->animationState + 0xc); PlaySFX(0x78); @@ -197,14 +197,14 @@ void sub_080919AC(Entity *this) case 0x6f: if (uVar3 == sub_080002B8(this)) { sub_08091C0C(this); - gLinkEntity.animationState = this->animationState << 1; + gPlayerEntity.animationState = this->animationState << 1; return; } break; } } - gLinkEntity.animationState = this->animationState << 1; + gPlayerEntity.animationState = this->animationState << 1; if (this->animIndex == this->animationState) { UpdateAnimationSingleFrame(this); } diff --git a/src/object/object49.c b/src/object/object49.c index 925e47ea..e3fa37dd 100644 --- a/src/object/object49.c +++ b/src/object/object49.c @@ -236,7 +236,7 @@ void sub_0808F498(Entity* this) { DeleteThisEntity(); } - if (gLinkState.field_0x1c != 1) { + if (gPlayerState.field_0x1c != 1) { DeleteThisEntity(); } } else { diff --git a/src/object/object86.c b/src/object/object86.c index 5a1c0aec..0520cb55 100644 --- a/src/object/object86.c +++ b/src/object/object86.c @@ -1,6 +1,6 @@ #include "global.h" #include "entity.h" -#include "link.h" +#include "player.h" #include "flags.h" extern u32 sub_080041A0(Entity*, Entity*, u32, u32); @@ -58,7 +58,7 @@ void sub_08099E58(Entity *this) void sub_08099E8C(Entity *this) { - if (sub_080041A0(this, &gLinkEntity, 0xc, 0xc)) { + if (sub_080041A0(this, &gPlayerEntity, 0xc, 0xc)) { if (this->previousActionFlag == 0) { sub_08099ECC(this); sub_0805E4E0(this, 0x1e); @@ -74,8 +74,8 @@ void nullsub_534(Entity* this) {} void sub_08099ECC(Entity *this) { this->previousActionFlag = 1; - CopyPosition(this, &gLinkEntity); - gLinkState.linkAction = 3; - gLinkState.field_0x34[4] = 0; - gLinkState.flags.all |= 0x8000; + CopyPosition(this, &gPlayerEntity); + gPlayerState.playerAction = 3; + gPlayerState.field_0x34[4] = 0; + gPlayerState.flags.all |= 0x8000; } diff --git a/src/object/objectA8.c b/src/object/objectA8.c index b68a141a..ab7713c5 100644 --- a/src/object/objectA8.c +++ b/src/object/objectA8.c @@ -7,7 +7,7 @@ extern void sub_08080CB4(Entity*); extern void (*gUnk_08124824[])(Entity*); -extern Entity gLinkEntity; +extern Entity gPlayerEntity; void ObjectA8(Entity *this) { @@ -26,7 +26,7 @@ void ObjectA8(Entity *this) case 0x1e: case 0x1f: this->action = 5; - this->attachedEntity = &gLinkEntity; + this->attachedEntity = &gPlayerEntity; CreateItemEntity((this->entityType).form, 0, 0); DeleteThisEntity(); } diff --git a/src/object/treeHidingPortal.c b/src/object/treeHidingPortal.c index 5b8522b3..52fa5a25 100644 --- a/src/object/treeHidingPortal.c +++ b/src/object/treeHidingPortal.c @@ -1,7 +1,7 @@ #include "global.h" #include "entity.h" #include "flags.h" -#include "link.h" +#include "player.h" #include "room.h" extern void sub_0809E96C(Entity*); @@ -34,7 +34,7 @@ void sub_0809E83C(Entity* this) { void sub_0809E86C(Entity* this) { - if (sub_0800419C(this, &gLinkEntity, 0x30, 0x30)) { + if (sub_0800419C(this, &gPlayerEntity, 0x30, 0x30)) { if (CheckGlobalFlag(EZERO_1ST)) { if (((gScreenTransition & 3) == 0)) { sub_080A2B80(this); diff --git a/src/object/well.c b/src/object/well.c index 07c1237b..fda35fed 100644 --- a/src/object/well.c +++ b/src/object/well.c @@ -1,7 +1,7 @@ #include "global.h" #include "entity.h" #include "room.h" -#include "link.h" +#include "player.h" void SetTile(u32 tileIndex, s32 tilePosition, s32 layerIndex); s32 GetTileType(s32 tilePosition, s32 layerIndex); @@ -29,8 +29,8 @@ void sub_080A0EF0(Entity* ent) { tileIndex = GetTileType(ent->field_0x80.HWORD, 1); if (tileIndex != 0x407D) { sub_08078B48(); - gLinkEntity.x.WORD = ent->x.WORD; - gLinkEntity.y.HALF.HI = ent->y.HALF.HI + 4; + gPlayerEntity.x.WORD = ent->x.WORD; + gPlayerEntity.y.HALF.HI = ent->y.HALF.HI + 4; DeleteThisEntity(); } } diff --git a/src/room.c b/src/room.c index 7d9e46d4..6a8136c6 100644 --- a/src/room.c +++ b/src/room.c @@ -5,7 +5,7 @@ #include "functions.h" #include "flags.h" #include "npc.h" -#include "link.h" +#include "player.h" #include "screen.h" #include "main.h" #include "structures.h" @@ -218,7 +218,7 @@ void sub_0804B580(void) { sub_080575C8(0x20); - if (gLinkEntity.y.HALF.HI - gRoomControls.roomOriginY > 0x40) + if (gPlayerEntity.y.HALF.HI - gRoomControls.roomOriginY > 0x40) LoadRoomEntityList(&gUnk_080D6138); } @@ -391,8 +391,8 @@ void sub_0804B7E8(void) { if (CheckLocalFlag(0x91)) { ClearLocalFlag(0x91); DoFade(5, 0x100); - gLinkEntity.x.HALF.HI = gRoomControls.roomOriginX + 0x50; - gLinkEntity.y.HALF.HI = gRoomControls.roomOriginY + 0x38; + gPlayerEntity.x.HALF.HI = gRoomControls.roomOriginX + 0x50; + gPlayerEntity.y.HALF.HI = gRoomControls.roomOriginY + 0x38; sub_080751E8(1, 2, &gUnk_08010A5C); } } @@ -417,8 +417,8 @@ void sub_0804B86C(void) { if (CheckLocalFlag(0x91) != 0) { ClearLocalFlag(0x91); DoFade(5, 0x100); - gLinkEntity.x.HALF.HI = gRoomControls.roomOriginX + 0x50; - gLinkEntity.y.HALF.HI = gRoomControls.roomOriginY + 0x38; + gPlayerEntity.x.HALF.HI = gRoomControls.roomOriginX + 0x50; + gPlayerEntity.y.HALF.HI = gRoomControls.roomOriginY + 0x38; sub_080751E8(1, 2, &gUnk_08010A5C); } } @@ -445,8 +445,8 @@ void sub_0804B8F0(void) { if (CheckLocalFlag(0x91)) { ClearLocalFlag(0x91); DoFade(5, 0x100); - gLinkEntity.x.HALF.HI = gRoomControls.roomOriginX + 0x60; - gLinkEntity.y.HALF.HI = gRoomControls.roomOriginY + 0x38; + gPlayerEntity.x.HALF.HI = gRoomControls.roomOriginX + 0x60; + gPlayerEntity.y.HALF.HI = gRoomControls.roomOriginY + 0x38; sub_080751E8(1, 2, &gUnk_08010A5C); } } @@ -652,8 +652,8 @@ extern u32 gUnk_08009E88; void sub_0804BC70(void) { if (!CheckLocalFlag(0x9f)) { DoFade(5, 0x100); - gLinkEntity.x.HALF.HI = gRoomControls.roomOriginX + 0xb0; - gLinkEntity.y.HALF.HI = gRoomControls.roomOriginY + 0x40; + gPlayerEntity.x.HALF.HI = gRoomControls.roomOriginX + 0xb0; + gPlayerEntity.y.HALF.HI = gRoomControls.roomOriginY + 0x40; sub_080751E8(0, 6, &gUnk_08009E88); } if (!CheckGlobalFlag(TABIDACHI)) { @@ -2057,7 +2057,7 @@ extern EntityData gUnk_080DE4C8; void sub_0804CBB0(void) { - if ((gLinkEntity.y.HALF.HI - gRoomControls.roomOriginY) < (gRoomControls.filler2[4] >> 1)) { + if ((gPlayerEntity.y.HALF.HI - gRoomControls.roomOriginY) < (gRoomControls.filler2[4] >> 1)) { if (!CheckLocalFlag(0x17)) { LoadRoomEntityList(&gUnk_080DE4C8); } @@ -2425,7 +2425,7 @@ void sub_0804CED8(void) { if (CheckGlobalFlag(LV2_CLEAR)) { gUnk_0200B650 = 0; gScreen.lcd.lcdControl2 &= 0xfdff; - sub_0807AABC(&gLinkEntity); + sub_0807AABC(&gPlayerEntity); LoadRoomEntityList(&gUnk_080E1814); } else { PlaySFX(0x80100000); @@ -3511,14 +3511,14 @@ void sub_0804D6F0(void) { if ((gScreenTransition.field_0x38 & 1) && gScreenTransition.field_0x39) { if (gScreenTransition.field_0x3c == 1) { - gLinkEntity.x.HALF.HI = gScreenTransition.field_0x48; - gLinkEntity.y.HALF.HI = gScreenTransition.field_0x4a + 8; + gPlayerEntity.x.HALF.HI = gScreenTransition.field_0x48; + gPlayerEntity.y.HALF.HI = gScreenTransition.field_0x4a + 8; } else { if (gScreenTransition.field_0x3c) { return; } - gLinkEntity.x.HALF.HI = gScreenTransition.field_0x44; - gLinkEntity.y.HALF.HI = gScreenTransition.field_0x46 + 8; + gPlayerEntity.x.HALF.HI = gScreenTransition.field_0x44; + gPlayerEntity.y.HALF.HI = gScreenTransition.field_0x46 + 8; } } } @@ -4738,7 +4738,7 @@ void sub_0804E7A4(void) { // dog food if ((GetInventoryValue(0x36) == 1) && !CheckGlobalFlag(BIN_DOGFOOD) && - (gLinkState.flags.all & 0x80) == 0) { + (gPlayerState.flags.all & 0x80) == 0) { LoadRoomEntityList(&gUnk_080F30CC); } } @@ -4764,7 +4764,7 @@ void sub_0804E7DC(void) gArea.musicIndex = gArea.pMusicIndex; PlaySFX(0x800b0036); } - if ((gLinkState.flags.all & 8) == 0) { + if ((gPlayerState.flags.all & 8) == 0) { LoadRoomEntityList(&gUnk_080F31D8); } } @@ -4773,8 +4773,8 @@ extern u32 gUnk_08009E58; void sub_0804E864(void) { - gLinkEntity.x.HALF.HI = gRoomControls.roomOriginX + 0x90; - gLinkEntity.y.HALF.HI = gRoomControls.roomOriginY + 0x38; + gPlayerEntity.x.HALF.HI = gRoomControls.roomOriginX + 0x90; + gPlayerEntity.y.HALF.HI = gRoomControls.roomOriginY + 0x38; sub_080751E8(1, 6, &gUnk_08009E58); ModHealth(0xa0); } From 6e9908b9c97f933ab0949b08b9d480dbc1c032ef Mon Sep 17 00:00:00 2001 From: theo3 Date: Sun, 9 Aug 2020 03:12:45 -0700 Subject: [PATCH 108/158] ezloReminder.c --- asm/code_0801C85C.s | 980 +----------------------------------------- asm/code_0801CEC0.s | 863 +++++++++++++++++++++++++++++++++++++ asm/code_08070698.s | 115 ----- include/entity.h | 5 +- include/functions.h | 11 + linker.ld | 2 + src/ezloReminder.c | 123 ++++++ src/object/object48.c | 1 - src/sub_08070680.c | 53 +++ 9 files changed, 1055 insertions(+), 1098 deletions(-) create mode 100644 asm/code_0801CEC0.s create mode 100644 src/ezloReminder.c diff --git a/asm/code_0801C85C.s b/asm/code_0801C85C.s index bd6022ca..6cfeac01 100644 --- a/asm/code_0801C85C.s +++ b/asm/code_0801C85C.s @@ -866,982 +866,4 @@ _0801CEB4: pop {r4, pc} .align 2, 0 _0801CEB8: .4byte gUnk_0200AF00 -_0801CEBC: .4byte gTextBox - - thumb_func_start sub_0801CEC0 -sub_0801CEC0: @ 0x0801CEC0 - push {lr} - ldr r2, _0801CED4 @ =gUnk_080C904C - ldrb r1, [r0, #4] - lsls r1, r1, #2 - adds r1, r1, r2 - ldr r1, [r1] - bl _call_via_r1 - pop {pc} - .align 2, 0 -_0801CED4: .4byte gUnk_080C904C - - thumb_func_start sub_0801CED8 -sub_0801CED8: @ 0x0801CED8 - push {r4, lr} - adds r3, r0, #0 - ldr r0, _0801CF10 @ =gUnk_0200AF00 - adds r1, r0, #0 - adds r1, #0x24 - ldrb r4, [r1] - cmp r4, #1 - bne _0801CF0E - movs r2, #2 - movs r0, #2 - strb r0, [r1] - movs r1, #0 - movs r0, #0x10 - strh r0, [r3, #0xc] - movs r0, #0x90 - strh r0, [r3, #0xe] - strb r1, [r3, #6] - movs r0, #7 - strb r0, [r3, #1] - strb r4, [r3, #4] - ldrb r0, [r3] - orrs r0, r2 - strb r0, [r3] - ldr r1, _0801CF14 @ =gUnk_080C9094 - adds r0, r3, #0 - bl sub_0801CAB8 -_0801CF0E: - pop {r4, pc} - .align 2, 0 -_0801CF10: .4byte gUnk_0200AF00 -_0801CF14: .4byte gUnk_080C9094 - - thumb_func_start sub_0801CF18 -sub_0801CF18: @ 0x0801CF18 - push {r4, r5, lr} - adds r5, r0, #0 - ldr r2, _0801CF54 @ =gUnk_080C9058 - ldrb r0, [r5, #6] - adds r1, r0, #1 - strb r1, [r5, #6] - lsls r0, r0, #0x18 - lsrs r0, r0, #0x17 - adds r0, r0, r2 - ldrh r4, [r0] - movs r0, #0 - adds r1, r4, #0 - adds r2, r4, #0 - movs r3, #0 - bl sub_0805ECEC - cmp r4, #0 - bne _0801CF52 - movs r0, #2 - strb r0, [r5, #4] - movs r0, #8 - strb r0, [r5, #1] - ldr r0, _0801CF58 @ =gUnk_0200AF00 - adds r0, #0x24 - movs r1, #3 - strb r1, [r0] - ldr r0, _0801CF5C @ =0x00000173 - bl PlaySFX -_0801CF52: - pop {r4, r5, pc} - .align 2, 0 -_0801CF54: .4byte gUnk_080C9058 -_0801CF58: .4byte gUnk_0200AF00 -_0801CF5C: .4byte 0x00000173 - - thumb_func_start sub_0801CF60 -sub_0801CF60: @ 0x0801CF60 - push {r4, r5, lr} - adds r4, r0, #0 - ldr r0, _0801CF8C @ =gUnk_0200AF00 - adds r5, r0, #0 - adds r5, #0x24 - ldrb r0, [r5] - cmp r0, #4 - bhi _0801CF7C - ldr r0, _0801CF90 @ =gTextBox - ldrb r1, [r0] - movs r0, #0x7f - ands r0, r1 - cmp r0, #0 - beq _0801CF94 -_0801CF7C: - movs r0, #0 - strb r0, [r4, #4] - ldrb r1, [r4] - subs r0, #3 - ands r0, r1 - strb r0, [r4] - b _0801CFA4 - .align 2, 0 -_0801CF8C: .4byte gUnk_0200AF00 -_0801CF90: .4byte gTextBox -_0801CF94: - adds r0, r4, #0 - bl sub_0801CAD0 - ldrb r0, [r4, #0x13] - cmp r0, #1 - bne _0801CFA4 - movs r0, #4 - strb r0, [r5] -_0801CFA4: - pop {r4, r5, pc} - .align 2, 0 - - thumb_func_start sub_0801CFA8 -sub_0801CFA8: @ 0x0801CFA8 - push {r4, r5, lr} - adds r5, r0, #0 - ldr r0, _0801CFCC @ =gUnk_02001A00 - movs r1, #0x40 - bl _DmaZero - movs r4, #0 -_0801CFB6: - adds r0, r4, #0 - bl sub_0801CFD0 - adds r4, #1 - cmp r4, #5 - bls _0801CFB6 - adds r0, r5, #0 - bl sub_0801D000 - pop {r4, r5, pc} - .align 2, 0 -_0801CFCC: .4byte gUnk_02001A00 - - thumb_func_start sub_0801CFD0 -sub_0801CFD0: @ 0x0801CFD0 - lsls r0, r0, #2 - ldr r1, _0801CFF8 @ =gUnk_02001A00 - adds r0, r0, r1 - ldrb r2, [r0] - movs r1, #0x10 - rsbs r1, r1, #0 - ands r1, r2 - movs r2, #4 - orrs r1, r2 - movs r2, #0xf - ands r1, r2 - movs r2, #0x10 - orrs r1, r2 - strb r1, [r0] - movs r1, #0x80 - strb r1, [r0, #1] - ldr r1, _0801CFFC @ =0x0000FFFF - strh r1, [r0, #2] - bx lr - .align 2, 0 -_0801CFF8: .4byte gUnk_02001A00 -_0801CFFC: .4byte 0x0000FFFF - - thumb_func_start sub_0801D000 -sub_0801D000: @ 0x0801D000 - push {lr} - adds r2, r0, #0 - ldr r0, _0801D024 @ =gScreenTransition - movs r1, #0 - cmp r2, #0 - beq _0801D00E - movs r1, #0xf -_0801D00E: - adds r0, #0x2f - strb r1, [r0] - cmp r2, #0 - beq _0801D028 - bl sub_0801D34C - movs r0, #0xf - bl sub_0801CFD0 - b _0801D03A - .align 2, 0 -_0801D024: .4byte gScreenTransition -_0801D028: - ldr r3, _0801D03C @ =gUnk_02001A3C - ldrb r1, [r3] - movs r0, #0xf - ands r0, r1 - cmp r0, #4 - bne _0801D03A - strb r2, [r3] - strb r2, [r3, #1] - strh r2, [r3, #2] -_0801D03A: - pop {pc} - .align 2, 0 -_0801D03C: .4byte gUnk_02001A3C - - thumb_func_start sub_0801D040 -sub_0801D040: @ 0x0801D040 - push {r4, r5, r6, r7, lr} - mov r7, sl - mov r6, sb - mov r5, r8 - push {r5, r6, r7} - sub sp, #4 - str r0, [sp] - adds r6, r1, #0 - adds r0, r6, #0 - bl sub_0801D108 - adds r5, r0, #0 - cmp r5, #0 - bge _0801D0E8 - cmp r6, #0x15 - bhi _0801D064 - movs r4, #1 - b _0801D074 -_0801D064: - ldr r0, _0801D100 @ =gUnk_08133368 - adds r1, r6, #0 - subs r1, #0x16 - lsls r1, r1, #2 - adds r1, r1, r0 - ldrb r4, [r1, #3] - movs r0, #0xf - ands r4, r0 -_0801D074: - adds r0, r4, #0 - bl sub_0801D134 - adds r5, r0, #0 - cmp r5, #0 - bge _0801D090 - bl sub_0801D34C - adds r0, r4, #0 - bl sub_0801D134 - adds r5, r0, #0 - cmp r5, #0 - blt _0801D0E8 -_0801D090: - lsls r1, r5, #2 - ldr r0, _0801D104 @ =gUnk_02001A00 - adds r3, r1, r0 - movs r0, #0 - strh r6, [r3, #2] - strb r0, [r3, #1] - movs r2, #0x10 - rsbs r2, r2, #0 - lsls r0, r4, #4 - movs r1, #3 - orrs r0, r1 - strb r0, [r3] - subs r4, #1 - cmp r4, #0 - beq _0801D0E0 - movs r0, #0 - mov sl, r0 - movs r1, #0 - mov r8, r1 - movs r0, #0xf - mov sb, r0 - mov ip, r2 - movs r7, #2 -_0801D0BE: - adds r3, #4 - mov r1, r8 - strh r1, [r3, #2] - mov r0, sl - strb r0, [r3, #1] - lsls r2, r4, #4 - ldrb r1, [r3] - mov r0, sb - ands r0, r1 - orrs r0, r2 - mov r1, ip - ands r0, r1 - orrs r0, r7 - strb r0, [r3] - subs r4, #1 - cmp r4, #0 - bne _0801D0BE -_0801D0E0: - adds r0, r6, #0 - adds r1, r5, #0 - bl sub_0801D2C8 -_0801D0E8: - ldr r0, [sp] - adds r1, r5, #0 - bl sub_0801D19C - adds r0, r5, #0 - add sp, #4 - pop {r3, r4, r5} - mov r8, r3 - mov sb, r4 - mov sl, r5 - pop {r4, r5, r6, r7, pc} - .align 2, 0 -_0801D100: .4byte gUnk_08133368 -_0801D104: .4byte gUnk_02001A00 - - thumb_func_start sub_0801D108 -sub_0801D108: @ 0x0801D108 - push {lr} - adds r2, r0, #0 - cmp r2, #5 - bhi _0801D116 - b _0801D12E -_0801D112: - adds r0, r1, #0 - b _0801D12E -_0801D116: - movs r1, #6 - ldr r0, _0801D130 @ =gUnk_02001A00 - adds r0, #0x18 -_0801D11C: - ldrh r3, [r0, #2] - cmp r2, r3 - beq _0801D112 - adds r0, #4 - adds r1, #1 - cmp r1, #0xf - bls _0801D11C - movs r0, #1 - rsbs r0, r0, #0 -_0801D12E: - pop {pc} - .align 2, 0 -_0801D130: .4byte gUnk_02001A00 - - thumb_func_start sub_0801D134 -sub_0801D134: @ 0x0801D134 - push {r4, lr} - adds r4, r0, #0 - movs r1, #0 - movs r2, #6 - ldr r0, _0801D154 @ =gUnk_02001A00 - adds r3, r0, #0 - adds r3, #0x18 -_0801D142: - ldrb r0, [r3] - lsls r0, r0, #0x1c - cmp r0, #0 - bne _0801D158 - adds r1, #1 - cmp r4, r1 - bhi _0801D15A - b _0801D180 - .align 2, 0 -_0801D154: .4byte gUnk_02001A00 -_0801D158: - movs r1, #0 -_0801D15A: - adds r3, #4 - adds r2, #1 - cmp r2, #0xf - bls _0801D142 - movs r1, #0 - movs r2, #6 - ldr r0, _0801D188 @ =gUnk_02001A00 - adds r3, r0, #0 - adds r3, #0x18 -_0801D16C: - ldrb r0, [r3] - lsls r0, r0, #0x1c - lsrs r0, r0, #0x1c - cmp r0, #1 - bgt _0801D18C - cmp r0, #0 - blt _0801D18C - adds r1, #1 - cmp r4, r1 - bhi _0801D18E -_0801D180: - subs r0, r1, #1 - subs r0, r2, r0 - b _0801D19A - .align 2, 0 -_0801D188: .4byte gUnk_02001A00 -_0801D18C: - movs r1, #0 -_0801D18E: - adds r3, #4 - adds r2, #1 - cmp r2, #0xf - bls _0801D16C - movs r0, #1 - rsbs r0, r0, #0 -_0801D19A: - pop {r4, pc} - - thumb_func_start sub_0801D19C -sub_0801D19C: @ 0x0801D19C - push {r4, r5, r6, r7, lr} - adds r4, r0, #0 - adds r3, r1, #0 - cmp r3, #0 - bge _0801D1A8 - movs r3, #0 -_0801D1A8: - adds r0, r4, #0 - adds r0, #0x28 - ldrb r0, [r0] - subs r0, #1 - lsls r0, r0, #0x18 - lsrs r0, r0, #0x18 - cmp r0, #0x7e - bls _0801D1BE - adds r0, r4, #0 - adds r0, #0x27 - strb r3, [r0] -_0801D1BE: - movs r0, #0xf - adds r1, r3, #0 - ands r1, r0 - ldrb r2, [r4, #0x1a] - movs r5, #0x10 - rsbs r5, r5, #0 - adds r0, r5, #0 - ands r0, r2 - orrs r0, r1 - movs r2, #0xf - adds r1, r3, #0 - ands r1, r2 - lsls r1, r1, #4 - ands r0, r2 - orrs r0, r1 - strb r0, [r4, #0x1a] - lsls r1, r3, #2 - ldr r0, _0801D22C @ =gUnk_02001A00 - adds r4, r1, r0 - ldr r0, [r4] - lsls r0, r0, #0x1c - lsrs r0, r0, #0x1c - cmp r0, #4 - beq _0801D22A - ldrb r0, [r4, #1] - adds r0, #1 - strb r0, [r4, #1] - ldr r0, [r4] - lsls r0, r0, #0x18 - lsrs r3, r0, #0x1c - ldrb r1, [r4] - adds r0, r5, #0 - ands r0, r1 - movs r1, #3 - orrs r0, r1 - strb r0, [r4] - subs r3, #1 - cmp r3, #0 - beq _0801D22A - movs r7, #0xf - adds r6, r5, #0 - movs r5, #2 -_0801D212: - adds r4, #4 - lsls r2, r3, #4 - ldrb r1, [r4] - adds r0, r7, #0 - ands r0, r1 - orrs r0, r2 - ands r0, r6 - orrs r0, r5 - strb r0, [r4] - subs r3, #1 - cmp r3, #0 - bne _0801D212 -_0801D22A: - pop {r4, r5, r6, r7, pc} - .align 2, 0 -_0801D22C: .4byte gUnk_02001A00 - - thumb_func_start sub_0801D230 -sub_0801D230: @ 0x0801D230 - push {lr} - adds r0, #0x27 - ldrb r2, [r0] - movs r1, #0 - strb r1, [r0] - adds r0, r2, #0 - bl sub_0801D244 - pop {pc} - .align 2, 0 - - thumb_func_start sub_0801D244 -sub_0801D244: @ 0x0801D244 - push {r4, r5, r6, lr} - lsls r0, r0, #2 - ldr r1, _0801D288 @ =gUnk_02001A00 - adds r2, r0, r1 - ldr r0, [r2] - lsls r0, r0, #0x1c - lsrs r0, r0, #0x1c - cmp r0, #3 - bne _0801D284 - ldrb r0, [r2, #1] - subs r0, #1 - strb r0, [r2, #1] - lsls r0, r0, #0x18 - cmp r0, #0 - bne _0801D284 - ldr r0, [r2] - lsls r0, r0, #0x18 - lsrs r3, r0, #0x1c - movs r5, #0 - movs r6, #0x10 - rsbs r6, r6, #0 - movs r4, #1 -_0801D270: - strb r5, [r2, #1] - ldrb r1, [r2] - adds r0, r6, #0 - ands r0, r1 - orrs r0, r4 - strb r0, [r2] - adds r2, #4 - subs r3, #1 - cmp r3, #0 - bne _0801D270 -_0801D284: - pop {r4, r5, r6, pc} - .align 2, 0 -_0801D288: .4byte gUnk_02001A00 - - thumb_func_start sub_0801D28C -sub_0801D28C: @ 0x0801D28C - push {lr} - adds r3, r1, #0 - adds r0, #0x27 - ldrb r2, [r0] - ldr r1, _0801D2B0 @ =gUnk_02001A00 - lsls r0, r2, #2 - adds r1, r0, r1 - ldrb r0, [r1] - lsls r0, r0, #0x1c - lsrs r0, r0, #0x1c - cmp r0, #3 - bne _0801D2AE - strh r3, [r1, #2] - adds r0, r3, #0 - adds r1, r2, #0 - bl sub_0801D2C8 -_0801D2AE: - pop {pc} - .align 2, 0 -_0801D2B0: .4byte gUnk_02001A00 - - thumb_func_start sub_0801D2B4 -sub_0801D2B4: @ 0x0801D2B4 - push {r4, r5, lr} - adds r4, r0, #0 - adds r5, r1, #0 - bl sub_0801D230 - adds r0, r4, #0 - adds r1, r5, #0 - bl sub_0801D040 - pop {r4, r5, pc} - - thumb_func_start sub_0801D2C8 -sub_0801D2C8: @ 0x0801D2C8 - push {r4, lr} - adds r3, r0, #0 - ldr r2, _0801D2F8 @ =gUnk_0200B644 - adds r4, r1, #0 - adds r4, #0x10 - movs r1, #1 - lsls r1, r4 - ldr r0, [r2] - orrs r0, r1 - str r0, [r2] - cmp r3, #5 - bls _0801D33C - cmp r3, #0x15 - bne _0801D300 - ldr r2, _0801D2FC @ =gUnk_020176A0 - adds r0, r2, #0 - adds r0, #0x78 - ldrh r0, [r0] - lsls r1, r4, #5 - adds r1, r1, r2 - movs r2, #0x20 - bl _DmaFill16 - b _0801D33C - .align 2, 0 -_0801D2F8: .4byte gUnk_0200B644 -_0801D2FC: .4byte gUnk_020176A0 -_0801D300: - cmp r3, #0x14 - bhi _0801D31C - subs r0, r3, #6 - lsls r0, r0, #5 - ldr r1, _0801D318 @ =gUnk_020176A0 - adds r0, r0, r1 - adds r1, r4, #0 - movs r2, #1 - bl sub_0801D754 - b _0801D33C - .align 2, 0 -_0801D318: .4byte gUnk_020176A0 -_0801D31C: - ldr r1, _0801D340 @ =gUnk_08133368 - adds r0, r3, #0 - subs r0, #0x16 - lsls r0, r0, #2 - adds r0, r0, r1 - ldr r0, [r0] - lsrs r2, r0, #0x18 - movs r1, #0xf - ands r2, r1 - ldr r1, _0801D344 @ =0x00FFFFFF - ands r0, r1 - ldr r1, _0801D348 @ =gUnk_085A2E80 - adds r0, r0, r1 - adds r1, r4, #0 - bl sub_0801D754 -_0801D33C: - pop {r4, pc} - .align 2, 0 -_0801D340: .4byte gUnk_08133368 -_0801D344: .4byte 0x00FFFFFF -_0801D348: .4byte gUnk_085A2E80 - - thumb_func_start sub_0801D34C -sub_0801D34C: @ 0x0801D34C - push {r4, r5, r6, r7, lr} - sub sp, #0x10 - movs r2, #0 - movs r3, #0 - ldr r1, _0801D37C @ =gUnk_02001A00 -_0801D356: - mov r4, sp - adds r0, r4, r2 - strb r2, [r0] - ldrb r0, [r1] - lsls r0, r0, #0x1c - lsrs r0, r0, #0x1c - cmp r0, #1 - bgt _0801D370 - cmp r0, #0 - blt _0801D370 - strb r3, [r1] - strb r3, [r1, #1] - strh r3, [r1, #2] -_0801D370: - adds r1, #4 - adds r2, #1 - cmp r2, #0xf - bls _0801D356 - movs r4, #6 - b _0801D390 - .align 2, 0 -_0801D37C: .4byte gUnk_02001A00 -_0801D380: - cmp r4, r1 - ble _0801D390 - mov r2, sp - adds r0, r2, r4 - strb r1, [r0] - adds r0, r4, #0 - bl sub_0801D48C -_0801D390: - adds r0, r4, #1 - bl sub_0801D458 - adds r4, r0, #0 - cmp r4, #0 - beq _0801D3AC - movs r0, #1 - bl sub_0801D134 - adds r1, r0, #0 - movs r0, #1 - rsbs r0, r0, #0 - cmp r1, r0 - bne _0801D380 -_0801D3AC: - movs r1, #0 - ldr r4, _0801D450 @ =gUnk_03003D70 - mov ip, r4 -_0801D3B2: - lsls r0, r1, #3 - mov r2, ip - adds r3, r0, r2 - adds r0, r3, #0 - ldr r3, [r3, #4] - adds r5, r1, #1 - cmp r0, r3 - beq _0801D444 - movs r7, #0x10 - rsbs r7, r7, #0 - adds r4, r0, #0 - ldr r6, _0801D454 @ =gUnk_020000C0 -_0801D3CA: - ldrb r0, [r3, #8] - cmp r0, #9 - beq _0801D43E - adds r1, r3, #0 - adds r1, #0x28 - ldrb r0, [r1] - subs r0, #1 - lsls r0, r0, #0x18 - lsrs r0, r0, #0x18 - cmp r0, #0x7e - bhi _0801D40C - ldrb r1, [r1] - lsls r1, r1, #6 - adds r1, r1, r6 - ldrb r0, [r1, #5] - add r0, sp - ldrb r0, [r0] - strb r0, [r1, #5] - ldrb r0, [r1, #0x15] - add r0, sp - ldrb r0, [r0] - strb r0, [r1, #0x15] - adds r2, r1, #0 - adds r2, #0x25 - ldrb r0, [r2] - add r0, sp - ldrb r0, [r0] - strb r0, [r2] - adds r1, #0x35 - ldrb r0, [r1] - add r0, sp - ldrb r0, [r0] - strb r0, [r1] -_0801D40C: - adds r1, r3, #0 - adds r1, #0x27 - ldrb r0, [r1] - add r0, sp - ldrb r0, [r0] - strb r0, [r1] - ldrb r2, [r3, #0x1a] - lsls r0, r2, #0x1c - lsrs r0, r0, #0x1c - add r0, sp - ldrb r1, [r0] - movs r0, #0xf - ands r1, r0 - adds r0, r7, #0 - ands r0, r2 - orrs r0, r1 - strb r0, [r3, #0x1a] - lsrs r1, r0, #4 - add r1, sp - ldrb r2, [r1] - lsls r2, r2, #4 - movs r1, #0xf - ands r0, r1 - orrs r0, r2 - strb r0, [r3, #0x1a] -_0801D43E: - ldr r3, [r3, #4] - cmp r4, r3 - bne _0801D3CA -_0801D444: - adds r1, r5, #0 - cmp r1, #8 - bls _0801D3B2 - add sp, #0x10 - pop {r4, r5, r6, r7, pc} - .align 2, 0 -_0801D450: .4byte gUnk_03003D70 -_0801D454: .4byte gUnk_020000C0 - - thumb_func_start sub_0801D458 -sub_0801D458: @ 0x0801D458 - push {lr} - adds r2, r0, #0 - cmp r2, #0xf - bhi _0801D488 - ldr r1, _0801D47C @ =gUnk_02001A00 - lsls r0, r2, #2 - adds r1, r0, r1 -_0801D466: - ldrb r0, [r1] - lsls r0, r0, #0x1c - lsrs r0, r0, #0x1c - cmp r0, #0 - blt _0801D478 - cmp r0, #1 - ble _0801D480 - cmp r0, #4 - beq _0801D480 -_0801D478: - adds r0, r2, #0 - b _0801D48A - .align 2, 0 -_0801D47C: .4byte gUnk_02001A00 -_0801D480: - adds r1, #4 - adds r2, #1 - cmp r2, #0xf - bls _0801D466 -_0801D488: - movs r0, #0 -_0801D48A: - pop {pc} - - thumb_func_start sub_0801D48C -sub_0801D48C: @ 0x0801D48C - push {r4, r5, r6, r7, lr} - mov r7, r8 - push {r7} - sub sp, #4 - adds r6, r0, #0 - adds r3, r1, #0 - ldr r0, _0801D50C @ =gUnk_02001A00 - mov r8, r0 - lsls r0, r6, #2 - mov r1, r8 - adds r4, r0, r1 - ldrb r0, [r4] - lsrs r5, r0, #4 - subs r5, #1 - movs r0, #1 - rsbs r0, r0, #0 - cmp r5, r0 - beq _0801D4F8 - ldr r2, _0801D510 @ =gUnk_020176A0 - lsls r0, r3, #5 - movs r1, #0x80 - lsls r1, r1, #2 - adds r0, r0, r1 - adds r7, r0, r2 - lsls r0, r3, #2 - add r8, r0 - lsls r0, r6, #5 - adds r0, r0, r1 - adds r6, r0, r2 - movs r3, #0 -_0801D4C8: - ldr r0, [r4] - mov r1, r8 - adds r1, #4 - mov r8, r1 - subs r1, #4 - stm r1!, {r0} - strb r3, [r4] - strb r3, [r4, #1] - strh r3, [r4, #2] - adds r0, r6, #0 - adds r1, r7, #0 - movs r2, #0x20 - str r3, [sp] - bl sub_0801D66C - adds r6, #0x20 - adds r4, #4 - adds r7, #0x20 - subs r5, #1 - movs r0, #1 - rsbs r0, r0, #0 - ldr r3, [sp] - cmp r5, r0 - bne _0801D4C8 -_0801D4F8: - ldr r0, _0801D514 @ =gUnk_0200B644 - ldr r1, [r0] - ldr r2, _0801D518 @ =0xFFFF0000 - orrs r1, r2 - str r1, [r0] - add sp, #4 - pop {r3} - mov r8, r3 - pop {r4, r5, r6, r7, pc} - .align 2, 0 -_0801D50C: .4byte gUnk_02001A00 -_0801D510: .4byte gUnk_020176A0 -_0801D514: .4byte gUnk_0200B644 -_0801D518: .4byte 0xFFFF0000 - - thumb_func_start sub_0801D51C -sub_0801D51C: @ 0x0801D51C - push {r4, lr} - adds r2, r0, #0 - ldr r0, _0801D58C @ =0x05F5E0FF - cmp r2, r0 - bhi _0801D5A0 - ldr r1, _0801D590 @ =0x00989680 - adds r0, r2, #0 - bl Div - adds r4, r0, #0 - lsls r4, r4, #0x1c - ldr r2, _0801D594 @ =0x000F4240 - adds r0, r1, #0 - adds r1, r2, #0 - bl Div - lsls r0, r0, #0x18 - adds r4, r4, r0 - ldr r2, _0801D598 @ =0x000186A0 - adds r0, r1, #0 - adds r1, r2, #0 - bl Div - lsls r0, r0, #0x14 - adds r4, r4, r0 - ldr r2, _0801D59C @ =0x00002710 - adds r0, r1, #0 - adds r1, r2, #0 - bl Div - lsls r0, r0, #0x10 - adds r4, r4, r0 - movs r2, #0xfa - lsls r2, r2, #2 - adds r0, r1, #0 - adds r1, r2, #0 - bl Div - lsls r0, r0, #0xc - adds r4, r4, r0 - adds r0, r1, #0 - movs r1, #0x64 - bl Div - lsls r0, r0, #8 - adds r4, r4, r0 - adds r0, r1, #0 - movs r1, #0xa - bl Div - lsls r0, r0, #4 - adds r4, r4, r0 - adds r4, r4, r1 - adds r0, r4, #0 - b _0801D5A2 - .align 2, 0 -_0801D58C: .4byte 0x05F5E0FF -_0801D590: .4byte 0x00989680 -_0801D594: .4byte 0x000F4240 -_0801D598: .4byte 0x000186A0 -_0801D59C: .4byte 0x00002710 -_0801D5A0: - ldr r0, _0801D5A4 @ =0x99999999 -_0801D5A2: - pop {r4, pc} - .align 2, 0 -_0801D5A4: .4byte 0x99999999 - - thumb_func_start ReadBit -ReadBit: @ 0x0801D5A8 - lsrs r2, r1, #3 - adds r0, r0, r2 - ldrb r0, [r0] - movs r2, #7 - ands r2, r1 - asrs r0, r2 - movs r1, #1 - ands r0, r1 - bx lr - .align 2, 0 - - thumb_func_start WriteBit -WriteBit: @ 0x0801D5BC - lsrs r2, r1, #3 - adds r3, r0, r2 - movs r2, #7 - ands r1, r2 - movs r2, #1 - lsls r2, r1 - ldrb r0, [r3] - adds r1, r0, #0 - orrs r1, r2 - strb r1, [r3] - ands r0, r2 - bx lr - - thumb_func_start ClearBit -ClearBit: @ 0x0801D5D4 - lsrs r2, r1, #3 - adds r3, r0, r2 - movs r2, #7 - ands r1, r2 - movs r2, #1 - lsls r2, r1 - ldrb r0, [r3] - adds r1, r0, #0 - bics r1, r2 - strb r1, [r3] - ands r0, r2 - bx lr \ No newline at end of file +_0801CEBC: .4byte gTextBox \ No newline at end of file diff --git a/asm/code_0801CEC0.s b/asm/code_0801CEC0.s new file mode 100644 index 00000000..17e396e3 --- /dev/null +++ b/asm/code_0801CEC0.s @@ -0,0 +1,863 @@ + .include "asm/macros.inc" + + .include "constants/constants.inc" + + .syntax unified + + .text + + thumb_func_start sub_0801CFA8 +sub_0801CFA8: @ 0x0801CFA8 + push {r4, r5, lr} + adds r5, r0, #0 + ldr r0, _0801CFCC @ =gUnk_02001A00 + movs r1, #0x40 + bl _DmaZero + movs r4, #0 +_0801CFB6: + adds r0, r4, #0 + bl sub_0801CFD0 + adds r4, #1 + cmp r4, #5 + bls _0801CFB6 + adds r0, r5, #0 + bl sub_0801D000 + pop {r4, r5, pc} + .align 2, 0 +_0801CFCC: .4byte gUnk_02001A00 + + thumb_func_start sub_0801CFD0 +sub_0801CFD0: @ 0x0801CFD0 + lsls r0, r0, #2 + ldr r1, _0801CFF8 @ =gUnk_02001A00 + adds r0, r0, r1 + ldrb r2, [r0] + movs r1, #0x10 + rsbs r1, r1, #0 + ands r1, r2 + movs r2, #4 + orrs r1, r2 + movs r2, #0xf + ands r1, r2 + movs r2, #0x10 + orrs r1, r2 + strb r1, [r0] + movs r1, #0x80 + strb r1, [r0, #1] + ldr r1, _0801CFFC @ =0x0000FFFF + strh r1, [r0, #2] + bx lr + .align 2, 0 +_0801CFF8: .4byte gUnk_02001A00 +_0801CFFC: .4byte 0x0000FFFF + + thumb_func_start sub_0801D000 +sub_0801D000: @ 0x0801D000 + push {lr} + adds r2, r0, #0 + ldr r0, _0801D024 @ =gScreenTransition + movs r1, #0 + cmp r2, #0 + beq _0801D00E + movs r1, #0xf +_0801D00E: + adds r0, #0x2f + strb r1, [r0] + cmp r2, #0 + beq _0801D028 + bl sub_0801D34C + movs r0, #0xf + bl sub_0801CFD0 + b _0801D03A + .align 2, 0 +_0801D024: .4byte gScreenTransition +_0801D028: + ldr r3, _0801D03C @ =gUnk_02001A3C + ldrb r1, [r3] + movs r0, #0xf + ands r0, r1 + cmp r0, #4 + bne _0801D03A + strb r2, [r3] + strb r2, [r3, #1] + strh r2, [r3, #2] +_0801D03A: + pop {pc} + .align 2, 0 +_0801D03C: .4byte gUnk_02001A3C + + thumb_func_start sub_0801D040 +sub_0801D040: @ 0x0801D040 + push {r4, r5, r6, r7, lr} + mov r7, sl + mov r6, sb + mov r5, r8 + push {r5, r6, r7} + sub sp, #4 + str r0, [sp] + adds r6, r1, #0 + adds r0, r6, #0 + bl sub_0801D108 + adds r5, r0, #0 + cmp r5, #0 + bge _0801D0E8 + cmp r6, #0x15 + bhi _0801D064 + movs r4, #1 + b _0801D074 +_0801D064: + ldr r0, _0801D100 @ =gUnk_08133368 + adds r1, r6, #0 + subs r1, #0x16 + lsls r1, r1, #2 + adds r1, r1, r0 + ldrb r4, [r1, #3] + movs r0, #0xf + ands r4, r0 +_0801D074: + adds r0, r4, #0 + bl sub_0801D134 + adds r5, r0, #0 + cmp r5, #0 + bge _0801D090 + bl sub_0801D34C + adds r0, r4, #0 + bl sub_0801D134 + adds r5, r0, #0 + cmp r5, #0 + blt _0801D0E8 +_0801D090: + lsls r1, r5, #2 + ldr r0, _0801D104 @ =gUnk_02001A00 + adds r3, r1, r0 + movs r0, #0 + strh r6, [r3, #2] + strb r0, [r3, #1] + movs r2, #0x10 + rsbs r2, r2, #0 + lsls r0, r4, #4 + movs r1, #3 + orrs r0, r1 + strb r0, [r3] + subs r4, #1 + cmp r4, #0 + beq _0801D0E0 + movs r0, #0 + mov sl, r0 + movs r1, #0 + mov r8, r1 + movs r0, #0xf + mov sb, r0 + mov ip, r2 + movs r7, #2 +_0801D0BE: + adds r3, #4 + mov r1, r8 + strh r1, [r3, #2] + mov r0, sl + strb r0, [r3, #1] + lsls r2, r4, #4 + ldrb r1, [r3] + mov r0, sb + ands r0, r1 + orrs r0, r2 + mov r1, ip + ands r0, r1 + orrs r0, r7 + strb r0, [r3] + subs r4, #1 + cmp r4, #0 + bne _0801D0BE +_0801D0E0: + adds r0, r6, #0 + adds r1, r5, #0 + bl sub_0801D2C8 +_0801D0E8: + ldr r0, [sp] + adds r1, r5, #0 + bl sub_0801D19C + adds r0, r5, #0 + add sp, #4 + pop {r3, r4, r5} + mov r8, r3 + mov sb, r4 + mov sl, r5 + pop {r4, r5, r6, r7, pc} + .align 2, 0 +_0801D100: .4byte gUnk_08133368 +_0801D104: .4byte gUnk_02001A00 + + thumb_func_start sub_0801D108 +sub_0801D108: @ 0x0801D108 + push {lr} + adds r2, r0, #0 + cmp r2, #5 + bhi _0801D116 + b _0801D12E +_0801D112: + adds r0, r1, #0 + b _0801D12E +_0801D116: + movs r1, #6 + ldr r0, _0801D130 @ =gUnk_02001A00 + adds r0, #0x18 +_0801D11C: + ldrh r3, [r0, #2] + cmp r2, r3 + beq _0801D112 + adds r0, #4 + adds r1, #1 + cmp r1, #0xf + bls _0801D11C + movs r0, #1 + rsbs r0, r0, #0 +_0801D12E: + pop {pc} + .align 2, 0 +_0801D130: .4byte gUnk_02001A00 + + thumb_func_start sub_0801D134 +sub_0801D134: @ 0x0801D134 + push {r4, lr} + adds r4, r0, #0 + movs r1, #0 + movs r2, #6 + ldr r0, _0801D154 @ =gUnk_02001A00 + adds r3, r0, #0 + adds r3, #0x18 +_0801D142: + ldrb r0, [r3] + lsls r0, r0, #0x1c + cmp r0, #0 + bne _0801D158 + adds r1, #1 + cmp r4, r1 + bhi _0801D15A + b _0801D180 + .align 2, 0 +_0801D154: .4byte gUnk_02001A00 +_0801D158: + movs r1, #0 +_0801D15A: + adds r3, #4 + adds r2, #1 + cmp r2, #0xf + bls _0801D142 + movs r1, #0 + movs r2, #6 + ldr r0, _0801D188 @ =gUnk_02001A00 + adds r3, r0, #0 + adds r3, #0x18 +_0801D16C: + ldrb r0, [r3] + lsls r0, r0, #0x1c + lsrs r0, r0, #0x1c + cmp r0, #1 + bgt _0801D18C + cmp r0, #0 + blt _0801D18C + adds r1, #1 + cmp r4, r1 + bhi _0801D18E +_0801D180: + subs r0, r1, #1 + subs r0, r2, r0 + b _0801D19A + .align 2, 0 +_0801D188: .4byte gUnk_02001A00 +_0801D18C: + movs r1, #0 +_0801D18E: + adds r3, #4 + adds r2, #1 + cmp r2, #0xf + bls _0801D16C + movs r0, #1 + rsbs r0, r0, #0 +_0801D19A: + pop {r4, pc} + + thumb_func_start sub_0801D19C +sub_0801D19C: @ 0x0801D19C + push {r4, r5, r6, r7, lr} + adds r4, r0, #0 + adds r3, r1, #0 + cmp r3, #0 + bge _0801D1A8 + movs r3, #0 +_0801D1A8: + adds r0, r4, #0 + adds r0, #0x28 + ldrb r0, [r0] + subs r0, #1 + lsls r0, r0, #0x18 + lsrs r0, r0, #0x18 + cmp r0, #0x7e + bls _0801D1BE + adds r0, r4, #0 + adds r0, #0x27 + strb r3, [r0] +_0801D1BE: + movs r0, #0xf + adds r1, r3, #0 + ands r1, r0 + ldrb r2, [r4, #0x1a] + movs r5, #0x10 + rsbs r5, r5, #0 + adds r0, r5, #0 + ands r0, r2 + orrs r0, r1 + movs r2, #0xf + adds r1, r3, #0 + ands r1, r2 + lsls r1, r1, #4 + ands r0, r2 + orrs r0, r1 + strb r0, [r4, #0x1a] + lsls r1, r3, #2 + ldr r0, _0801D22C @ =gUnk_02001A00 + adds r4, r1, r0 + ldr r0, [r4] + lsls r0, r0, #0x1c + lsrs r0, r0, #0x1c + cmp r0, #4 + beq _0801D22A + ldrb r0, [r4, #1] + adds r0, #1 + strb r0, [r4, #1] + ldr r0, [r4] + lsls r0, r0, #0x18 + lsrs r3, r0, #0x1c + ldrb r1, [r4] + adds r0, r5, #0 + ands r0, r1 + movs r1, #3 + orrs r0, r1 + strb r0, [r4] + subs r3, #1 + cmp r3, #0 + beq _0801D22A + movs r7, #0xf + adds r6, r5, #0 + movs r5, #2 +_0801D212: + adds r4, #4 + lsls r2, r3, #4 + ldrb r1, [r4] + adds r0, r7, #0 + ands r0, r1 + orrs r0, r2 + ands r0, r6 + orrs r0, r5 + strb r0, [r4] + subs r3, #1 + cmp r3, #0 + bne _0801D212 +_0801D22A: + pop {r4, r5, r6, r7, pc} + .align 2, 0 +_0801D22C: .4byte gUnk_02001A00 + + thumb_func_start sub_0801D230 +sub_0801D230: @ 0x0801D230 + push {lr} + adds r0, #0x27 + ldrb r2, [r0] + movs r1, #0 + strb r1, [r0] + adds r0, r2, #0 + bl sub_0801D244 + pop {pc} + .align 2, 0 + + thumb_func_start sub_0801D244 +sub_0801D244: @ 0x0801D244 + push {r4, r5, r6, lr} + lsls r0, r0, #2 + ldr r1, _0801D288 @ =gUnk_02001A00 + adds r2, r0, r1 + ldr r0, [r2] + lsls r0, r0, #0x1c + lsrs r0, r0, #0x1c + cmp r0, #3 + bne _0801D284 + ldrb r0, [r2, #1] + subs r0, #1 + strb r0, [r2, #1] + lsls r0, r0, #0x18 + cmp r0, #0 + bne _0801D284 + ldr r0, [r2] + lsls r0, r0, #0x18 + lsrs r3, r0, #0x1c + movs r5, #0 + movs r6, #0x10 + rsbs r6, r6, #0 + movs r4, #1 +_0801D270: + strb r5, [r2, #1] + ldrb r1, [r2] + adds r0, r6, #0 + ands r0, r1 + orrs r0, r4 + strb r0, [r2] + adds r2, #4 + subs r3, #1 + cmp r3, #0 + bne _0801D270 +_0801D284: + pop {r4, r5, r6, pc} + .align 2, 0 +_0801D288: .4byte gUnk_02001A00 + + thumb_func_start sub_0801D28C +sub_0801D28C: @ 0x0801D28C + push {lr} + adds r3, r1, #0 + adds r0, #0x27 + ldrb r2, [r0] + ldr r1, _0801D2B0 @ =gUnk_02001A00 + lsls r0, r2, #2 + adds r1, r0, r1 + ldrb r0, [r1] + lsls r0, r0, #0x1c + lsrs r0, r0, #0x1c + cmp r0, #3 + bne _0801D2AE + strh r3, [r1, #2] + adds r0, r3, #0 + adds r1, r2, #0 + bl sub_0801D2C8 +_0801D2AE: + pop {pc} + .align 2, 0 +_0801D2B0: .4byte gUnk_02001A00 + + thumb_func_start sub_0801D2B4 +sub_0801D2B4: @ 0x0801D2B4 + push {r4, r5, lr} + adds r4, r0, #0 + adds r5, r1, #0 + bl sub_0801D230 + adds r0, r4, #0 + adds r1, r5, #0 + bl sub_0801D040 + pop {r4, r5, pc} + + thumb_func_start sub_0801D2C8 +sub_0801D2C8: @ 0x0801D2C8 + push {r4, lr} + adds r3, r0, #0 + ldr r2, _0801D2F8 @ =gUnk_0200B644 + adds r4, r1, #0 + adds r4, #0x10 + movs r1, #1 + lsls r1, r4 + ldr r0, [r2] + orrs r0, r1 + str r0, [r2] + cmp r3, #5 + bls _0801D33C + cmp r3, #0x15 + bne _0801D300 + ldr r2, _0801D2FC @ =gUnk_020176A0 + adds r0, r2, #0 + adds r0, #0x78 + ldrh r0, [r0] + lsls r1, r4, #5 + adds r1, r1, r2 + movs r2, #0x20 + bl _DmaFill16 + b _0801D33C + .align 2, 0 +_0801D2F8: .4byte gUnk_0200B644 +_0801D2FC: .4byte gUnk_020176A0 +_0801D300: + cmp r3, #0x14 + bhi _0801D31C + subs r0, r3, #6 + lsls r0, r0, #5 + ldr r1, _0801D318 @ =gUnk_020176A0 + adds r0, r0, r1 + adds r1, r4, #0 + movs r2, #1 + bl sub_0801D754 + b _0801D33C + .align 2, 0 +_0801D318: .4byte gUnk_020176A0 +_0801D31C: + ldr r1, _0801D340 @ =gUnk_08133368 + adds r0, r3, #0 + subs r0, #0x16 + lsls r0, r0, #2 + adds r0, r0, r1 + ldr r0, [r0] + lsrs r2, r0, #0x18 + movs r1, #0xf + ands r2, r1 + ldr r1, _0801D344 @ =0x00FFFFFF + ands r0, r1 + ldr r1, _0801D348 @ =gUnk_085A2E80 + adds r0, r0, r1 + adds r1, r4, #0 + bl sub_0801D754 +_0801D33C: + pop {r4, pc} + .align 2, 0 +_0801D340: .4byte gUnk_08133368 +_0801D344: .4byte 0x00FFFFFF +_0801D348: .4byte gUnk_085A2E80 + + thumb_func_start sub_0801D34C +sub_0801D34C: @ 0x0801D34C + push {r4, r5, r6, r7, lr} + sub sp, #0x10 + movs r2, #0 + movs r3, #0 + ldr r1, _0801D37C @ =gUnk_02001A00 +_0801D356: + mov r4, sp + adds r0, r4, r2 + strb r2, [r0] + ldrb r0, [r1] + lsls r0, r0, #0x1c + lsrs r0, r0, #0x1c + cmp r0, #1 + bgt _0801D370 + cmp r0, #0 + blt _0801D370 + strb r3, [r1] + strb r3, [r1, #1] + strh r3, [r1, #2] +_0801D370: + adds r1, #4 + adds r2, #1 + cmp r2, #0xf + bls _0801D356 + movs r4, #6 + b _0801D390 + .align 2, 0 +_0801D37C: .4byte gUnk_02001A00 +_0801D380: + cmp r4, r1 + ble _0801D390 + mov r2, sp + adds r0, r2, r4 + strb r1, [r0] + adds r0, r4, #0 + bl sub_0801D48C +_0801D390: + adds r0, r4, #1 + bl sub_0801D458 + adds r4, r0, #0 + cmp r4, #0 + beq _0801D3AC + movs r0, #1 + bl sub_0801D134 + adds r1, r0, #0 + movs r0, #1 + rsbs r0, r0, #0 + cmp r1, r0 + bne _0801D380 +_0801D3AC: + movs r1, #0 + ldr r4, _0801D450 @ =gUnk_03003D70 + mov ip, r4 +_0801D3B2: + lsls r0, r1, #3 + mov r2, ip + adds r3, r0, r2 + adds r0, r3, #0 + ldr r3, [r3, #4] + adds r5, r1, #1 + cmp r0, r3 + beq _0801D444 + movs r7, #0x10 + rsbs r7, r7, #0 + adds r4, r0, #0 + ldr r6, _0801D454 @ =gUnk_020000C0 +_0801D3CA: + ldrb r0, [r3, #8] + cmp r0, #9 + beq _0801D43E + adds r1, r3, #0 + adds r1, #0x28 + ldrb r0, [r1] + subs r0, #1 + lsls r0, r0, #0x18 + lsrs r0, r0, #0x18 + cmp r0, #0x7e + bhi _0801D40C + ldrb r1, [r1] + lsls r1, r1, #6 + adds r1, r1, r6 + ldrb r0, [r1, #5] + add r0, sp + ldrb r0, [r0] + strb r0, [r1, #5] + ldrb r0, [r1, #0x15] + add r0, sp + ldrb r0, [r0] + strb r0, [r1, #0x15] + adds r2, r1, #0 + adds r2, #0x25 + ldrb r0, [r2] + add r0, sp + ldrb r0, [r0] + strb r0, [r2] + adds r1, #0x35 + ldrb r0, [r1] + add r0, sp + ldrb r0, [r0] + strb r0, [r1] +_0801D40C: + adds r1, r3, #0 + adds r1, #0x27 + ldrb r0, [r1] + add r0, sp + ldrb r0, [r0] + strb r0, [r1] + ldrb r2, [r3, #0x1a] + lsls r0, r2, #0x1c + lsrs r0, r0, #0x1c + add r0, sp + ldrb r1, [r0] + movs r0, #0xf + ands r1, r0 + adds r0, r7, #0 + ands r0, r2 + orrs r0, r1 + strb r0, [r3, #0x1a] + lsrs r1, r0, #4 + add r1, sp + ldrb r2, [r1] + lsls r2, r2, #4 + movs r1, #0xf + ands r0, r1 + orrs r0, r2 + strb r0, [r3, #0x1a] +_0801D43E: + ldr r3, [r3, #4] + cmp r4, r3 + bne _0801D3CA +_0801D444: + adds r1, r5, #0 + cmp r1, #8 + bls _0801D3B2 + add sp, #0x10 + pop {r4, r5, r6, r7, pc} + .align 2, 0 +_0801D450: .4byte gUnk_03003D70 +_0801D454: .4byte gUnk_020000C0 + + thumb_func_start sub_0801D458 +sub_0801D458: @ 0x0801D458 + push {lr} + adds r2, r0, #0 + cmp r2, #0xf + bhi _0801D488 + ldr r1, _0801D47C @ =gUnk_02001A00 + lsls r0, r2, #2 + adds r1, r0, r1 +_0801D466: + ldrb r0, [r1] + lsls r0, r0, #0x1c + lsrs r0, r0, #0x1c + cmp r0, #0 + blt _0801D478 + cmp r0, #1 + ble _0801D480 + cmp r0, #4 + beq _0801D480 +_0801D478: + adds r0, r2, #0 + b _0801D48A + .align 2, 0 +_0801D47C: .4byte gUnk_02001A00 +_0801D480: + adds r1, #4 + adds r2, #1 + cmp r2, #0xf + bls _0801D466 +_0801D488: + movs r0, #0 +_0801D48A: + pop {pc} + + thumb_func_start sub_0801D48C +sub_0801D48C: @ 0x0801D48C + push {r4, r5, r6, r7, lr} + mov r7, r8 + push {r7} + sub sp, #4 + adds r6, r0, #0 + adds r3, r1, #0 + ldr r0, _0801D50C @ =gUnk_02001A00 + mov r8, r0 + lsls r0, r6, #2 + mov r1, r8 + adds r4, r0, r1 + ldrb r0, [r4] + lsrs r5, r0, #4 + subs r5, #1 + movs r0, #1 + rsbs r0, r0, #0 + cmp r5, r0 + beq _0801D4F8 + ldr r2, _0801D510 @ =gUnk_020176A0 + lsls r0, r3, #5 + movs r1, #0x80 + lsls r1, r1, #2 + adds r0, r0, r1 + adds r7, r0, r2 + lsls r0, r3, #2 + add r8, r0 + lsls r0, r6, #5 + adds r0, r0, r1 + adds r6, r0, r2 + movs r3, #0 +_0801D4C8: + ldr r0, [r4] + mov r1, r8 + adds r1, #4 + mov r8, r1 + subs r1, #4 + stm r1!, {r0} + strb r3, [r4] + strb r3, [r4, #1] + strh r3, [r4, #2] + adds r0, r6, #0 + adds r1, r7, #0 + movs r2, #0x20 + str r3, [sp] + bl sub_0801D66C + adds r6, #0x20 + adds r4, #4 + adds r7, #0x20 + subs r5, #1 + movs r0, #1 + rsbs r0, r0, #0 + ldr r3, [sp] + cmp r5, r0 + bne _0801D4C8 +_0801D4F8: + ldr r0, _0801D514 @ =gUnk_0200B644 + ldr r1, [r0] + ldr r2, _0801D518 @ =0xFFFF0000 + orrs r1, r2 + str r1, [r0] + add sp, #4 + pop {r3} + mov r8, r3 + pop {r4, r5, r6, r7, pc} + .align 2, 0 +_0801D50C: .4byte gUnk_02001A00 +_0801D510: .4byte gUnk_020176A0 +_0801D514: .4byte gUnk_0200B644 +_0801D518: .4byte 0xFFFF0000 + + thumb_func_start sub_0801D51C +sub_0801D51C: @ 0x0801D51C + push {r4, lr} + adds r2, r0, #0 + ldr r0, _0801D58C @ =0x05F5E0FF + cmp r2, r0 + bhi _0801D5A0 + ldr r1, _0801D590 @ =0x00989680 + adds r0, r2, #0 + bl Div + adds r4, r0, #0 + lsls r4, r4, #0x1c + ldr r2, _0801D594 @ =0x000F4240 + adds r0, r1, #0 + adds r1, r2, #0 + bl Div + lsls r0, r0, #0x18 + adds r4, r4, r0 + ldr r2, _0801D598 @ =0x000186A0 + adds r0, r1, #0 + adds r1, r2, #0 + bl Div + lsls r0, r0, #0x14 + adds r4, r4, r0 + ldr r2, _0801D59C @ =0x00002710 + adds r0, r1, #0 + adds r1, r2, #0 + bl Div + lsls r0, r0, #0x10 + adds r4, r4, r0 + movs r2, #0xfa + lsls r2, r2, #2 + adds r0, r1, #0 + adds r1, r2, #0 + bl Div + lsls r0, r0, #0xc + adds r4, r4, r0 + adds r0, r1, #0 + movs r1, #0x64 + bl Div + lsls r0, r0, #8 + adds r4, r4, r0 + adds r0, r1, #0 + movs r1, #0xa + bl Div + lsls r0, r0, #4 + adds r4, r4, r0 + adds r4, r4, r1 + adds r0, r4, #0 + b _0801D5A2 + .align 2, 0 +_0801D58C: .4byte 0x05F5E0FF +_0801D590: .4byte 0x00989680 +_0801D594: .4byte 0x000F4240 +_0801D598: .4byte 0x000186A0 +_0801D59C: .4byte 0x00002710 +_0801D5A0: + ldr r0, _0801D5A4 @ =0x99999999 +_0801D5A2: + pop {r4, pc} + .align 2, 0 +_0801D5A4: .4byte 0x99999999 + + thumb_func_start ReadBit +ReadBit: @ 0x0801D5A8 + lsrs r2, r1, #3 + adds r0, r0, r2 + ldrb r0, [r0] + movs r2, #7 + ands r2, r1 + asrs r0, r2 + movs r1, #1 + ands r0, r1 + bx lr + .align 2, 0 + + thumb_func_start WriteBit +WriteBit: @ 0x0801D5BC + lsrs r2, r1, #3 + adds r3, r0, r2 + movs r2, #7 + ands r1, r2 + movs r2, #1 + lsls r2, r1 + ldrb r0, [r3] + adds r1, r0, #0 + orrs r1, r2 + strb r1, [r3] + ands r0, r2 + bx lr + + thumb_func_start ClearBit +ClearBit: @ 0x0801D5D4 + lsrs r2, r1, #3 + adds r3, r0, r2 + movs r2, #7 + ands r1, r2 + movs r2, #1 + lsls r2, r1 + ldrb r0, [r3] + adds r1, r0, #0 + bics r1, r2 + strb r1, [r3] + ands r0, r2 + bx lr \ No newline at end of file diff --git a/asm/code_08070698.s b/asm/code_08070698.s index 762cec47..3d9d7eac 100644 --- a/asm/code_08070698.s +++ b/asm/code_08070698.s @@ -6,121 +6,6 @@ .text - thumb_func_start sub_08070698 -sub_08070698: @ 0x08070698 - push {r4, r5, r6, lr} - sub sp, #4 - adds r4, r0, #0 - ldr r6, _08070788 @ =gPlayerState - movs r0, #0xff - strb r0, [r6] - ldr r1, _0807078C @ =gPlayerEntity - ldrh r0, [r1, #0x2e] - strh r0, [r6, #0x16] - ldrh r0, [r1, #0x32] - strh r0, [r6, #0x18] - ldrb r1, [r4, #0x10] - movs r0, #0x80 - orrs r0, r1 - strb r0, [r4, #0x10] - adds r2, r4, #0 - adds r2, #0x29 - ldrb r1, [r2] - movs r0, #8 - rsbs r0, r0, #0 - ands r0, r1 - movs r1, #4 - orrs r0, r1 - movs r1, #0x39 - rsbs r1, r1, #0 - ands r0, r1 - movs r1, #8 - orrs r0, r1 - strb r0, [r2] - ldrb r1, [r4, #0x18] - movs r0, #0x31 - rsbs r0, r0, #0 - ands r0, r1 - movs r1, #0x10 - orrs r0, r1 - strb r0, [r4, #0x18] - movs r0, #0x20 - strb r0, [r4, #0x16] - adds r1, r4, #0 - adds r1, #0x3b - movs r0, #8 - strb r0, [r1] - adds r1, #4 - movs r0, #0x79 - strb r0, [r1] - ldr r0, _08070790 @ =gUnk_08114F88 - str r0, [r4, #0x48] - movs r0, #1 - strh r0, [r4, #0x12] - adds r0, #0xff - strh r0, [r6, #8] - adds r0, r4, #0 - bl sub_0806FDA0 - adds r0, r4, #0 - movs r1, #1 - movs r2, #2 - bl sub_080AE008 - adds r0, r4, #0 - movs r1, #2 - bl InitAnimationForceUpdate - adds r0, r4, #0 - adds r0, #0x38 - ldrb r0, [r0] - cmp r0, #0 - bne _08070726 - adds r0, r4, #0 - bl sub_08016A30 -_08070726: - movs r0, #0x10 - bl IsItemEquipped - cmp r0, #2 - beq _08070734 - bl sub_08077728 -_08070734: - bl sub_0807A108 - bl sub_0807AEE4 - bl sub_08078EFC - adds r5, r0, #0 - cmp r5, #0 - bne _08070784 - bl sub_0807921C - bl sub_0807A1B8 - adds r1, r6, #0 - adds r1, #0x26 - ldrb r0, [r1] - cmp r0, #0 - beq _08070784 - movs r0, #1 - strb r0, [r1] - bl sub_08079938 - adds r1, r6, #0 - adds r1, #0xa8 - movs r0, #7 - strb r0, [r1] - adds r0, r4, #0 - bl sub_0807ACCC - str r5, [sp] - movs r0, #6 - movs r1, #0xf - movs r2, #6 - movs r3, #0xb - bl sub_0805EB2C - cmp r0, #0 - beq _08070784 - bl DeleteEntity -_08070784: - add sp, #4 - pop {r4, r5, r6, pc} - .align 2, 0 -_08070788: .4byte gPlayerState -_0807078C: .4byte gPlayerEntity -_08070790: .4byte gUnk_08114F88 - thumb_func_start sub_08070794 sub_08070794: @ 0x08070794 push {r4, r5, r6, r7, lr} diff --git a/include/entity.h b/include/entity.h index 0b76eaa5..04e09d94 100644 --- a/include/entity.h +++ b/include/entity.h @@ -39,7 +39,7 @@ typedef struct Entity { /*0x12*/ s16 spriteIndex; /*0x14*/ u8 animationState; /*0x15*/ u8 direction; - /*0x16*/ u8 possibleBool; + /*0x16*/ u8 field_0x16; /*0x17*/ u8 field_0x17; /*0x18*/ union { /* */ u8 raw; @@ -47,8 +47,7 @@ typedef struct Entity { /* */ u8 draw : 2; // 1-2 /* */ u8 ss2 : 1; // 4 /* */ u8 ss3 : 1; // 8 - /* */ u8 bigShadow : 1; //0x10 - /* */ u8 giantShadow : 1; //0x20 + /* */ u8 shadow : 2; //0x10-0x20 /* */ u8 flipX : 1; //0x40 /* */ u8 flipY : 1; //0x80 /* */ } PACKED b; diff --git a/include/functions.h b/include/functions.h index 98282908..f2d59d59 100644 --- a/include/functions.h +++ b/include/functions.h @@ -231,4 +231,15 @@ extern void sub_08033744(Entity*); extern void sub_0800417E(Entity*, u32); extern void sub_080784C8(); extern void sub_08017640(); +extern void sub_0806FDA0(Entity*); +extern void sub_080AE008(Entity*, u32, u32); +extern void sub_08016A30(Entity*); +extern u32 IsItemEquipped(u32); +extern void sub_08077728(); +extern void sub_0807AEE4(); +extern u32 sub_08078EFC(); +extern void sub_0807921C(); +extern void sub_0807A1B8(); +extern void sub_08079938(); +extern void sub_0807ACCC(Entity*); #endif \ No newline at end of file diff --git a/linker.ld b/linker.ld index 6fbf3374..f701aa1a 100644 --- a/linker.ld +++ b/linker.ld @@ -315,6 +315,8 @@ SECTIONS { asm/drawHealth.o(.text); asm/sub_0801C824.o(.text); asm/code_0801C85C.o(.text); + src/ezloReminder.o(.text); + asm/code_0801CEC0.o(.text); src/dma.o(.text); asm/sub_0801D66C.o(.text); src/input.o(.text); diff --git a/src/ezloReminder.c b/src/ezloReminder.c new file mode 100644 index 00000000..d82cfb75 --- /dev/null +++ b/src/ezloReminder.c @@ -0,0 +1,123 @@ +#include "global.h" +#include "entity.h" +#include "functions.h" +#include "textbox.h" + +typedef struct { + s8 unk0; + u8 unk1; + u8 unk2; + u8 unk3; + u8 unk4; + u8 unk5; + u8 unk6; + u8 unk7; + u8 unk8; + u8 unk9; + u8 unkA; + u8 unkB; + u16 unkC; + u16 unkE; + u16 unk10; + u8 unk12; + u8 unk13; +} Element; + +typedef struct { + u8 unk0[0x24]; + u8 ezloNagFuncIndex; +} struct_0200AF00; + +extern struct_0200AF00 gUnk_0200AF00; + +/////////////////////////////////////////////////////////////// + +extern void sub_0805ECEC(u32, u32, u32, u32); +extern void sub_0801CAD0(Element*); + +extern void (*const gUnk_080C904C[])(Element*); + +extern u16 gUnk_080C9058[]; + +void EzloReminder(Element* arg0) { + gUnk_080C904C[arg0->unk4](arg0); +} + +#ifdef NON_MATCHING // REG SWAP +extern u32 gUnk_080C9094; + +void sub_0801CED8(Element* arg0) { + if (gUnk_0200AF00.ezloNagFuncIndex == 1) { + gUnk_0200AF00.ezloNagFuncIndex = 2; + arg0->unkC = 0x10; + arg0->unkE = 0x90; + arg0->unk6 = 0; + arg0->unk1 = 7; + arg0->unk4 = 1; + arg0->unk0 |= 2; + sub_0801CAB8(arg0, &gUnk_080C9094); + } +} +#else +NAKED +void sub_0801CED8(Element* arg0) { + asm_unified("\ + push {r4, lr}\n\ + adds r3, r0, #0\n\ + ldr r0, _0801CF10 @ =gUnk_0200AF00\n\ + adds r1, r0, #0\n\ + adds r1, #0x24\n\ + ldrb r4, [r1]\n\ + cmp r4, #1\n\ + bne _0801CF0E\n\ + movs r2, #2\n\ + movs r0, #2\n\ + strb r0, [r1]\n\ + movs r1, #0\n\ + movs r0, #0x10\n\ + strh r0, [r3, #0xc]\n\ + movs r0, #0x90\n\ + strh r0, [r3, #0xe]\n\ + strb r1, [r3, #6]\n\ + movs r0, #7\n\ + strb r0, [r3, #1]\n\ + strb r4, [r3, #4]\n\ + ldrb r0, [r3]\n\ + orrs r0, r2\n\ + strb r0, [r3]\n\ + ldr r1, _0801CF14 @ =gUnk_080C9094\n\ + adds r0, r3, #0\n\ + bl sub_0801CAB8\n\ + _0801CF0E:\n\ + pop {r4, pc}\n\ + .align 2, 0\n\ + _0801CF10: .4byte gUnk_0200AF00\n\ + _0801CF14: .4byte gUnk_080C9094"); +} +#endif + +void sub_0801CF18(Element* arg0) { + u32 temp; + + temp = gUnk_080C9058[arg0->unk6++]; + sub_0805ECEC(0, temp, temp, 0); + if (temp == 0) { + arg0->unk4 = 2; + arg0->unk1 = 8; + gUnk_0200AF00.ezloNagFuncIndex = 3; + PlaySFX(0x173); + } +} + +void sub_0801CF60(Element* arg0) { + + if ((gUnk_0200AF00.ezloNagFuncIndex >= 5) || (gTextBox.doTextBox & 0x7f)) { + arg0->unk4 = 0; + arg0->unk0 &= -3; + return; + } + sub_0801CAD0(arg0); + if (arg0->unk13 == 1) { + gUnk_0200AF00.ezloNagFuncIndex = 4; + } +} \ No newline at end of file diff --git a/src/object/object48.c b/src/object/object48.c index c2a25071..57d772a9 100755 --- a/src/object/object48.c +++ b/src/object/object48.c @@ -9,7 +9,6 @@ #include "readKeyInput.h" #include "structures.h" -extern bool32 sub_080AE008(Entity*, int, int); extern int sub_0807A094(int); extern u32 sub_0801D754(const u8*, u8, u8); extern u32 sub_080041EC(int, int); diff --git a/src/sub_08070680.c b/src/sub_08070680.c index d5b5b517..642167df 100644 --- a/src/sub_08070680.c +++ b/src/sub_08070680.c @@ -1,9 +1,62 @@ #include "global.h" #include "entity.h" +#include "player.h" +#include "functions.h" extern void (*gUnk_0811B9E0[])(Entity*); +extern BoundingBox gUnk_08114F88; + // inject void sub_08070680(Entity* this) { gUnk_0811B9E0[this->action](this); } + + +void sub_08070698(Entity *this) +{ + u32 uVar1; + int iVar2; + Entity *ent; + + gPlayerState.field_0x0[0] = 0xff; + gPlayerState.field_0x14[1] = gPlayerEntity.x.HALF.HI; + gPlayerState.field_0x14[2] = gPlayerEntity.y.HALF.HI; + this->flags = this->flags | 0x80; + this->spritePriority.b0 = 0xc; + this->spritePriority.b1 = 1; + this->spriteSettings.b.shadow = 1; + this->field_0x16 = 0x20; + this->flags2 = 8; + this->damageType = 0x79; + this->boundingBox = &gUnk_08114F88; + this->spriteIndex = 1; + gPlayerState.field_0x8 = 0x100; + sub_0806FDA0(this); + sub_080AE008(this, 1, 2); + InitAnimationForceUpdate(this, 2); + if (this->collisionLayer == 0) { + sub_08016A30(this); + } + uVar1 = IsItemEquipped(0x10); + if (uVar1 != 2) { + sub_08077728(); + } + sub_0807A108(); + sub_0807AEE4(); + iVar2 = sub_08078EFC(); + if (iVar2 == 0) { + sub_0807921C(); + sub_0807A1B8(); + if (gPlayerState.swimState != 0) { + gPlayerState.swimState = 1; + sub_08079938(); + gPlayerState.field_0xa8[0] = 7; + sub_0807ACCC(this); + ent = sub_0805EB2C(0x6, 0xf, 0x6, 0xb, 0x0); + if (ent != NULL) { + DeleteEntity(ent); + } + } + } +} \ No newline at end of file From a609afcf8372ff837564c16fb0ba1ed1e9004a39 Mon Sep 17 00:00:00 2001 From: Ibot02 Date: Sun, 9 Aug 2020 12:13:02 +0200 Subject: [PATCH 109/158] managerA.c ok --- asm/managerA.s | 235 ----------------------------------------- include/manager.h | 12 ++- linker.ld | 1 - src/manager/managerA.c | 141 +++++++++++++++++++++++-- 4 files changed, 144 insertions(+), 245 deletions(-) delete mode 100644 asm/managerA.s diff --git a/asm/managerA.s b/asm/managerA.s deleted file mode 100644 index badce571..00000000 --- a/asm/managerA.s +++ /dev/null @@ -1,235 +0,0 @@ - .include "asm/macros.inc" - - .include "constants/constants.inc" - - .syntax unified - - .text - - thumb_func_start sub_08058408 -sub_08058408: @ 0x08058408 - push {r4, r5, r6, lr} - adds r4, r0, #0 - ldr r6, _0805843C @ =gLinkState - ldr r5, [r6, #0x30] - movs r0, #8 - ands r5, r0 - cmp r5, #0 - bne _08058488 - ldrh r0, [r4, #0x20] - ldrh r1, [r4, #0x22] - ldrh r2, [r4, #0x24] - ldrh r3, [r4, #0x26] - bl CheckPlayerInRegion - cmp r0, #0 - beq _08058488 - ldrb r0, [r4, #0xa] - cmp r0, #1 - beq _08058488 - cmp r0, #1 - ble _08058450 - cmp r0, #2 - beq _08058440 - cmp r0, #3 - beq _0805847C - b _08058450 - .align 2, 0 -_0805843C: .4byte gLinkState -_08058440: - adds r0, r4, #0 - bl sub_080585DC - ldr r0, [r6, #0x30] - movs r1, #0x80 - ands r0, r1 - cmp r0, #0 - beq _08058488 -_08058450: - adds r0, r4, #0 - bl sub_080585DC - adds r0, r4, #0 - bl sub_0805848C - cmp r0, #0 - beq _08058488 - movs r0, #3 - bl sub_08078A90 - bl sub_08078B48 - bl sub_0805E544 - movs r0, #0 - movs r1, #3 - strb r1, [r4, #0xc] - strb r0, [r4, #0xd] - movs r0, #0x1e - strb r0, [r4, #0xe] - b _08058488 -_0805847C: - movs r0, #4 - strb r0, [r4, #0xc] - strb r5, [r4, #0xd] - ldrh r0, [r4, #0x36] - bl sub_080186C0 -_08058488: - pop {r4, r5, r6, pc} - .align 2, 0 - - thumb_func_start sub_0805848C -sub_0805848C: @ 0x0805848C - push {lr} - ldr r0, _080584A4 @ =gLinkState - adds r0, #0xa8 - ldrb r0, [r0] - subs r0, #5 - cmp r0, #0x17 - bhi _08058510 - lsls r0, r0, #2 - ldr r1, _080584A8 @ =_080584AC - adds r0, r0, r1 - ldr r0, [r0] - mov pc, r0 - .align 2, 0 -_080584A4: .4byte gLinkState -_080584A8: .4byte _080584AC -_080584AC: @ jump table - .4byte _0805850C @ case 0 - .4byte _08058510 @ case 1 - .4byte _0805850C @ case 2 - .4byte _0805850C @ case 3 - .4byte _08058510 @ case 4 - .4byte _0805850C @ case 5 - .4byte _0805850C @ case 6 - .4byte _0805850C @ case 7 - .4byte _0805850C @ case 8 - .4byte _0805850C @ case 9 - .4byte _0805850C @ case 10 - .4byte _0805850C @ case 11 - .4byte _0805850C @ case 12 - .4byte _0805850C @ case 13 - .4byte _0805850C @ case 14 - .4byte _0805850C @ case 15 - .4byte _0805850C @ case 16 - .4byte _0805850C @ case 17 - .4byte _0805850C @ case 18 - .4byte _0805850C @ case 19 - .4byte _08058510 @ case 20 - .4byte _08058510 @ case 21 - .4byte _0805850C @ case 22 - .4byte _0805850C @ case 23 -_0805850C: - movs r0, #0 - b _08058512 -_08058510: - movs r0, #1 -_08058512: - pop {pc} - - thumb_func_start sub_08058514 -sub_08058514: @ 0x08058514 - push {r4, lr} - adds r4, r0, #0 - ldrb r0, [r4, #0xd] - cmp r0, #1 - beq _08058532 - cmp r0, #1 - bgt _08058528 - cmp r0, #0 - beq _08058570 - b _080585A6 -_08058528: - cmp r0, #2 - beq _08058570 - cmp r0, #3 - beq _08058584 - b _080585A6 -_08058532: - ldr r2, _08058564 @ =gLinkState - ldr r0, [r2, #0x30] - ldr r1, _08058568 @ =0x00001235 - ands r0, r1 - cmp r0, #0 - bne _080585A6 - ldr r0, _0805856C @ =gLinkEntity - movs r1, #0x36 - ldrsh r0, [r0, r1] - cmp r0, #0 - bne _080585A6 - strb r0, [r2, #2] - ldrh r0, [r4, #0x36] - adds r1, r4, #0 - adds r1, #0x35 - ldrb r1, [r1] - bl sub_08078AA8 - ldrb r0, [r4, #0xd] - adds r0, #1 - strb r0, [r4, #0xd] - movs r0, #0x1e - strb r0, [r4, #0xe] - b _080585A6 - .align 2, 0 -_08058564: .4byte gLinkState -_08058568: .4byte 0x00001235 -_0805856C: .4byte gLinkEntity -_08058570: - ldrb r0, [r4, #0xe] - subs r0, #1 - strb r0, [r4, #0xe] - lsls r0, r0, #0x18 - cmp r0, #0 - bne _080585A6 - ldrb r0, [r4, #0xd] - adds r0, #1 - strb r0, [r4, #0xd] - b _080585A6 -_08058584: - ldr r0, _080585A8 @ =gLinkEntity - ldrb r0, [r0, #0xc] - cmp r0, #1 - beq _08058590 - cmp r0, #9 - bne _080585A6 -_08058590: - ldr r0, _080585AC @ =gLinkState - adds r0, #0x8b - movs r1, #1 - strb r1, [r0] - bl UnfreezeTime - ldrh r0, [r4, #0x3c] - bl SetFlag - bl DeleteThisEntity -_080585A6: - pop {r4, pc} - .align 2, 0 -_080585A8: .4byte gLinkEntity -_080585AC: .4byte gLinkState - - thumb_func_start sub_080585B0 -sub_080585B0: @ 0x080585B0 - push {r4, lr} - adds r4, r0, #0 - ldr r0, _080585D8 @ =gArea - adds r0, #0x28 - ldrb r0, [r0] - cmp r0, #0xff - beq _080585C2 - bl DeleteThisEntity -_080585C2: - ldrh r0, [r4, #0x3c] - bl CheckFlags - cmp r0, #0 - beq _080585D4 - bl sub_0801855C - bl DeleteThisEntity -_080585D4: - pop {r4, pc} - .align 2, 0 -_080585D8: .4byte gArea - - thumb_func_start sub_080585DC -sub_080585DC: @ 0x080585DC - push {lr} - ldrh r0, [r0, #0x3c] - bl CheckFlags - cmp r0, #0 - beq _080585EC - bl DeleteThisEntity -_080585EC: - pop {pc} - .align 2, 0 diff --git a/include/manager.h b/include/manager.h index f640e419..dfb5f1ff 100644 --- a/include/manager.h +++ b/include/manager.h @@ -4,14 +4,20 @@ #include "global.h" typedef struct { - u8 unk_00[0x0c]; + u8 unk_00[0x0a]; + u8 unk_0a; + u8 unk_0b; u8 unk_0c; - u8 unk_0d[0x13]; + u8 unk_0d; + u8 unk_0e; + u8 unk_0f[0x11]; u16 unk_20; u16 unk_22; u16 unk_24; u16 unk_26; - u8 unk_28[0x10]; + u8 unk_28[0x0D]; + u8 unk_35; + u16 unk_36; u8 unk_38; u8 unk_39; u8 unk_3a; diff --git a/linker.ld b/linker.ld index 2a2dee1b..73f3db54 100644 --- a/linker.ld +++ b/linker.ld @@ -477,7 +477,6 @@ SECTIONS { asm/manager8.o(.text); asm/manager9.o(.text); src/manager/managerA.o(.text); - asm/managerA.o(.text); asm/managerB.o(.text); asm/managerC.o(.text); asm/managerD.o(.text); diff --git a/src/manager/managerA.c b/src/manager/managerA.c index 35729c55..5eb869e5 100644 --- a/src/manager/managerA.c +++ b/src/manager/managerA.c @@ -1,15 +1,19 @@ #include "global.h" #include "entity.h" +#include "link.h" +#include "manager.h" +#include "flags.h" +#include "area.h" -extern void (*gUnk_081081F4[])(Entity*); -void sub_08058380(Entity* this) { - gUnk_081081F4[this->action](this); +extern void (*gUnk_081081F4[])(Manager*); + +void sub_08058380(Manager* this) { + gUnk_081081F4[this->unk_0c](this); } -extern u32 CheckFlags(u32); -extern void DeleteThisEntity(); + extern void sub_0805E3A0(Manager*, u32); void sub_08058398(Manager* this) { @@ -29,7 +33,8 @@ void sub_08058398(Manager* this) { } } -extern void sub_08058408(Manager* this); + +void sub_08058408(Manager*); void sub_080583EC(Manager* this) { if (CheckFlags(this->unk_3e) != 0) { @@ -37,3 +42,127 @@ void sub_080583EC(Manager* this) { sub_08058408(this); } } + +extern u32 CheckPlayerInRegion(u32, u32, u32, u32); +extern void sub_0805E544(void); +extern void sub_08078A90(u32); +extern void sub_08078AA8(u32, u32); +extern void sub_080186C0(u16); +extern void sub_08078B48(void); + +u32 sub_0805848C(Manager*); +void sub_080585DC(Manager*); + +void sub_08058408(Manager* this){ + u32 tmp2; + tmp2 = (gLinkState.flags.all & 0x08); + if (tmp2 != 0) return; + if (!CheckPlayerInRegion(this->unk_20, this->unk_22, this->unk_24, this->unk_26)) return; + switch (this->unk_0a) { + case 1: + return; + case 2: + sub_080585DC(this); + if ((gLinkState.flags.all & 0x80) == 0) return; + case 0: + default: + sub_080585DC(this); + if (sub_0805848C(this) == 0) return; + sub_08078A90(3); + sub_08078B48(); + sub_0805E544(); + this->unk_0c = 3; + this->unk_0d = 0; + this->unk_0e = 0x1e; + return; + case 3: + this->unk_0c = 4; + this->unk_0d = tmp2; + sub_080186C0(this->unk_36); + return; + } +} + + +u32 sub_0805848C(Manager* this) { + switch (gLinkState.field_0xa8[0]-5) { + case 0: + case 2: + case 3: + case 5: + case 6: + case 7: + case 8: + case 9: + case 10: + case 11: + case 12: + case 13: + case 14: + case 15: + case 16: + case 17: + case 18: + case 19: + case 22: + case 23: + return 0; + case 1: + case 4: + case 20: + case 21: + default: + return 1; + } +} + + +extern void UnfreezeTime(void); + +void sub_08058514(Manager* this) { + switch (this->unk_0d) { + case 1: + if ((gLinkState.flags.all & 0x1235) != 0) + return; + if (gLinkEntity.height.HALF.HI != 0) + return; + gLinkState.jumpStatus = 0; + sub_08078AA8(this->unk_36, this->unk_35); + this->unk_0d++; + this->unk_0e = 0x1E; + return; + case 0: + case 2: + if (((--this->unk_0e)<<0x18) == 0) { + this->unk_0d++; + } + return; + case 3: + if (gLinkEntity.action != 1 && gLinkEntity.action != 9) return; + gLinkState.field_0x8b = 1; + UnfreezeTime(); + SetFlag(this->unk_3c); + DeleteThisEntity(); + return; + default: + return; + } +} + + +extern void sub_0801855C(void); + +void sub_080585B0(Manager* this) { + if (gArea.filler4[0] != 0xFF) { + DeleteThisEntity(); + } + if (CheckFlags(this->unk_3c)) { + sub_0801855C(); + DeleteThisEntity(); + } +} +void sub_080585DC(Manager* this) { + if (CheckFlags(this->unk_3c)) { + DeleteThisEntity(); + } +} From 944ec95f5477c6cb42d6b33a9590aa03064f3053 Mon Sep 17 00:00:00 2001 From: theo3 Date: Sun, 9 Aug 2020 03:13:34 -0700 Subject: [PATCH 110/158] renamed to ezloNag.c --- src/{ezloReminder.c => ezloNag.c} | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) rename src/{ezloReminder.c => ezloNag.c} (98%) diff --git a/src/ezloReminder.c b/src/ezloNag.c similarity index 98% rename from src/ezloReminder.c rename to src/ezloNag.c index d82cfb75..bce5c8d5 100644 --- a/src/ezloReminder.c +++ b/src/ezloNag.c @@ -39,7 +39,7 @@ extern void (*const gUnk_080C904C[])(Element*); extern u16 gUnk_080C9058[]; -void EzloReminder(Element* arg0) { +void EzloNag(Element* arg0) { gUnk_080C904C[arg0->unk4](arg0); } From 2ae15a04f78492667c18aaeb82d8bab49de248a6 Mon Sep 17 00:00:00 2001 From: Marcus Huderle Date: Sun, 9 Aug 2020 09:58:15 -0500 Subject: [PATCH 111/158] Finish decompiling src/object/pot.c --- asm/pot.s | 386 -------------------------------------------- include/functions.h | 1 + linker.ld | 1 - src/object/pot.c | 142 +++++++++++++++- 4 files changed, 139 insertions(+), 391 deletions(-) delete mode 100644 asm/pot.s diff --git a/asm/pot.s b/asm/pot.s deleted file mode 100644 index ac843f74..00000000 --- a/asm/pot.s +++ /dev/null @@ -1,386 +0,0 @@ - .include "asm/macros.inc" - - .include "constants/constants.inc" - - .syntax unified - - .text - - thumb_func_start sub_08082614 -sub_08082614: @ 0x08082614 - push {r4, r5, r6, r7, lr} - adds r5, r0, #0 - bl sub_0800445C - ldrb r0, [r5, #0xe] - subs r0, #1 - strb r0, [r5, #0xe] - lsls r0, r0, #0x18 - lsrs r0, r0, #0x18 - cmp r0, #0xff - beq _08082638 - adds r0, r5, #0 - bl sub_0806F69C - adds r0, r5, #0 - bl sub_08016A6C - b _080826DC -_08082638: - adds r0, r5, #0 - bl sub_0800442E - cmp r0, #0 - bne _080826DC - movs r0, #1 - strb r0, [r5, #0xc] - ldr r0, _080826A4 @ =gPlayerState - ldr r0, [r0, #0x30] - movs r1, #0x80 - ands r0, r1 - cmp r0, #0 - beq _08082658 - ldrh r0, [r5, #0x24] - lsls r0, r0, #1 - strh r0, [r5, #0x24] -_08082658: - movs r1, #0x2e - ldrsh r0, [r5, r1] - ldr r2, _080826A8 @ =gRoomControls - ldrh r1, [r2, #6] - subs r0, r0, r1 - asrs r0, r0, #4 - movs r3, #0x3f - ands r0, r3 - movs r4, #0x32 - ldrsh r1, [r5, r4] - ldrh r2, [r2, #8] - subs r1, r1, r2 - asrs r1, r1, #4 - ands r1, r3 - lsls r1, r1, #6 - orrs r0, r1 - adds r4, r5, #0 - adds r4, #0x38 - ldrb r1, [r4] - bl sub_080001DA - adds r1, r5, #0 - adds r1, #0x70 - strh r0, [r1] - adds r0, r5, #0 - bl GetTileTypeByEntity - adds r6, r4, #0 - cmp r0, #0x72 - bhi _080826AC - cmp r0, #0x71 - blo _080826AC - adds r0, r5, #0 - movs r1, #0 - bl sub_08082850 - b _080826DC - .align 2, 0 -_080826A4: .4byte gPlayerState -_080826A8: .4byte gRoomControls -_080826AC: - movs r0, #0x80 - lsls r0, r0, #7 - movs r7, #0x2e - ldrsh r1, [r5, r7] - ldr r3, _080826E0 @ =gRoomControls - ldrh r2, [r3, #6] - subs r1, r1, r2 - asrs r1, r1, #4 - movs r4, #0x3f - ands r1, r4 - movs r7, #0x32 - ldrsh r2, [r5, r7] - ldrh r3, [r3, #8] - subs r2, r2, r3 - asrs r2, r2, #4 - ands r2, r4 - lsls r2, r2, #6 - orrs r1, r2 - ldrb r2, [r6] - bl SetTile - adds r0, r5, #0 - bl sub_08078930 -_080826DC: - pop {r4, r5, r6, r7, pc} - .align 2, 0 -_080826E0: .4byte gRoomControls - - thumb_func_start sub_080826E4 -sub_080826E4: @ 0x080826E4 - push {lr} - ldr r2, _080826F8 @ =gUnk_0811F0C4 - ldrb r1, [r0, #0xd] - lsls r1, r1, #2 - adds r1, r1, r2 - ldr r1, [r1] - bl _call_via_r1 - pop {pc} - .align 2, 0 -_080826F8: .4byte gUnk_0811F0C4 - - thumb_func_start sub_080826FC -sub_080826FC: @ 0x080826FC - movs r2, #0 - movs r1, #1 - strb r1, [r0, #0xd] - movs r1, #0x30 - strb r1, [r0, #0x1d] - strb r2, [r0, #0xe] - bx lr - .align 2, 0 - - thumb_func_start sub_0808270C -sub_0808270C: @ 0x0808270C - push {r4, r5, r6, lr} - adds r5, r0, #0 - ldr r0, _08082768 @ =gPlayerState - ldrb r1, [r0, #0x1c] - movs r0, #0xf - ands r0, r1 - cmp r0, #1 - bne _0808272A - adds r0, r5, #0 - adds r0, #0x41 - ldrb r1, [r0] - movs r0, #0x7f - ands r0, r1 - cmp r0, #0x13 - beq _08082770 -_0808272A: - adds r1, r5, #0 - adds r1, #0x62 - movs r0, #0 - strb r0, [r1] - movs r0, #1 - strb r0, [r5, #0xc] - movs r0, #0x80 - lsls r0, r0, #7 - movs r2, #0x2e - ldrsh r1, [r5, r2] - ldr r3, _0808276C @ =gRoomControls - ldrh r2, [r3, #6] - subs r1, r1, r2 - asrs r1, r1, #4 - movs r4, #0x3f - ands r1, r4 - movs r6, #0x32 - ldrsh r2, [r5, r6] - ldrh r3, [r3, #8] - subs r2, r2, r3 - asrs r2, r2, #4 - ands r2, r4 - lsls r2, r2, #6 - orrs r1, r2 - adds r2, r5, #0 - adds r2, #0x38 - ldrb r2, [r2] - bl SetTile - b _08082776 - .align 2, 0 -_08082768: .4byte gPlayerState -_0808276C: .4byte gRoomControls -_08082770: - adds r0, r5, #0 - bl sub_0806F4E8 -_08082776: - pop {r4, r5, r6, pc} - - thumb_func_start sub_08082778 -sub_08082778: @ 0x08082778 - push {r4, r5, r6, lr} - adds r5, r0, #0 - ldrb r1, [r5, #0xe] - cmp r1, #0 - bne _080827C4 - movs r0, #1 - strb r0, [r5, #0xe] - adds r0, r5, #0 - adds r0, #0x62 - strb r1, [r0] - adds r1, r5, #0 - adds r1, #0x63 - movs r0, #0xfe - strb r0, [r1] - adds r0, r5, #0 - adds r0, #0x70 - ldrh r0, [r0] - movs r2, #0x2e - ldrsh r1, [r5, r2] - ldr r3, _080827E8 @ =gRoomControls - ldrh r2, [r3, #6] - subs r1, r1, r2 - asrs r1, r1, #4 - movs r4, #0x3f - ands r1, r4 - movs r6, #0x32 - ldrsh r2, [r5, r6] - ldrh r3, [r3, #8] - subs r2, r2, r3 - asrs r2, r2, #4 - ands r2, r4 - lsls r2, r2, #6 - orrs r1, r2 - adds r2, r5, #0 - adds r2, #0x38 - ldrb r2, [r2] - bl SetTile -_080827C4: - ldr r0, _080827EC @ =gPlayerState - ldrb r1, [r0, #0x1c] - movs r0, #0xf - ands r0, r1 - cmp r0, #1 - bne _080827DE - adds r0, r5, #0 - adds r0, #0x41 - ldrb r1, [r0] - movs r0, #0x7f - ands r0, r1 - cmp r0, #0x13 - beq _080827F0 -_080827DE: - adds r0, r5, #0 - movs r1, #0 - bl sub_08082850 - b _080827F6 - .align 2, 0 -_080827E8: .4byte gRoomControls -_080827EC: .4byte gPlayerState -_080827F0: - adds r0, r5, #0 - bl sub_0806F3E4 -_080827F6: - pop {r4, r5, r6, pc} - - thumb_func_start sub_080827F8 -sub_080827F8: @ 0x080827F8 - push {lr} - adds r1, r0, #0 - ldr r0, _08082810 @ =gPlayerState - ldrb r0, [r0, #0x1c] - cmp r0, #0 - bne _0808280C - adds r0, r1, #0 - movs r1, #0 - bl sub_08082850 -_0808280C: - pop {pc} - .align 2, 0 -_08082810: .4byte gPlayerState - - thumb_func_start nullsub_512 -nullsub_512: @ 0x08082814 - bx lr - .align 2, 0 - - thumb_func_start sub_08082818 -sub_08082818: @ 0x08082818 - push {lr} - movs r1, #0 - bl sub_08082850 - pop {pc} - .align 2, 0 - - thumb_func_start sub_08082824 -sub_08082824: @ 0x08082824 - push {r4, lr} - adds r4, r0, #0 - ldr r0, [r4, #0x20] - cmp r0, #0 - bge _08082836 - ldrb r0, [r4, #0x18] - movs r1, #0x80 - orrs r0, r1 - strb r0, [r4, #0x18] -_08082836: - movs r1, #0x80 - lsls r1, r1, #6 - adds r0, r4, #0 - bl sub_08003FC4 - cmp r0, #0 - bne _0808284C - adds r0, r4, #0 - movs r1, #0 - bl sub_08082850 -_0808284C: - pop {r4, pc} - .align 2, 0 - - thumb_func_start sub_08082850 -sub_08082850: @ 0x08082850 - push {r4, r5, lr} - adds r4, r0, #0 - adds r5, r1, #0 - ldrb r1, [r4, #0xa] - adds r0, #0x7d - ldrb r2, [r0] - ldrb r3, [r4, #0xb] - adds r0, r4, #0 - bl sub_0808288C - adds r2, r0, #0 - adds r0, r4, #0 - movs r1, #5 - bl CreateFx - cmp r0, #0 - beq _08082874 - str r5, [r0, #0x50] -_08082874: - ldrb r0, [r4, #0xb] - cmp r0, #1 - bne _08082884 - adds r0, r4, #0 - adds r0, #0x86 - ldrh r0, [r0] - bl SetFlag -_08082884: - bl DeleteThisEntity - pop {r4, r5, pc} - .align 2, 0 - - thumb_func_start sub_0808288C -sub_0808288C: @ 0x0808288C - push {r4, r5, r6, r7, lr} - mov r7, r8 - push {r7} - adds r7, r0, #0 - adds r4, r1, #0 - adds r5, r2, #0 - mov r8, r3 - movs r6, #0 - cmp r4, #0 - beq _080828A6 - cmp r4, #0xff - bne _080828AA - b _080828D6 -_080828A6: - movs r6, #0x80 - b _080828D6 -_080828AA: - adds r0, r7, #0 - movs r1, #0 - adds r2, r4, #0 - adds r3, r5, #0 - bl CreateObjectWithParent - adds r2, r0, #0 - cmp r2, #0 - beq _080828D6 - mov r0, r8 - cmp r0, #2 - bne _080828D4 - movs r0, #5 - strb r0, [r2, #0xe] - adds r0, r7, #0 - adds r0, #0x86 - ldrh r1, [r0] - adds r0, r2, #0 - adds r0, #0x86 - strh r1, [r0] - b _080828D6 -_080828D4: - strb r6, [r2, #0xe] -_080828D6: - adds r0, r6, #0 - pop {r3} - mov r8, r3 - pop {r4, r5, r6, r7, pc} - .align 2, 0 diff --git a/include/functions.h b/include/functions.h index abfcfe17..a0231ce8 100644 --- a/include/functions.h +++ b/include/functions.h @@ -231,4 +231,5 @@ extern void sub_08033744(Entity*); extern void sub_0800417E(Entity*, u32); extern void sub_080784C8(); extern void sub_08017640(); +extern u32 sub_0808288C(Entity*, u32, u32, u32); #endif \ No newline at end of file diff --git a/linker.ld b/linker.ld index b1901b80..a9dc83a1 100644 --- a/linker.ld +++ b/linker.ld @@ -672,7 +672,6 @@ SECTIONS { asm/button.o(.text); asm/object4.o(.text); src/object/pot.o(.text); - asm/pot.o(.text); asm/object6.o(.text); asm/blockPushed.o(.text); asm/lockedDoor.o(.text); diff --git a/src/object/pot.c b/src/object/pot.c index a31a5567..07ee87ec 100755 --- a/src/object/pot.c +++ b/src/object/pot.c @@ -5,8 +5,13 @@ #include "player.h" #include "room.h" +static void sub_08082824(Entity*); +static void sub_08082850(Entity*, Entity*); +static void sub_08082608(Entity*); + extern void (*const gUnk_0811F090[])(Entity*); extern void (*const gUnk_0811F0A8[])(Entity*); +extern void (*const gUnk_0811F0C4[])(Entity*); extern BoundingBox gUnk_080FD338; // TODO: should be const extern BoundingBox gUnk_080FD340; // TODO: should be const @@ -15,10 +20,9 @@ extern u32 sub_08016A30(Entity*); extern u32 sub_080001DA(u32, u32); extern u32 GetTileTypeByEntity(Entity*); extern void sub_08078930(Entity*); -extern void sub_08082824(Entity*); extern u32 sub_080002B8(Entity*); -extern void sub_08082850(Entity*, Entity*); -extern void sub_08082608(Entity*); +extern void sub_08016A6C(Entity*); +extern u32 sub_0800442E(Entity*); void Pot(Entity* this) { gUnk_0811F090[this->action](this); @@ -163,7 +167,137 @@ void sub_080825F0(Entity* this) { } } -void sub_08082608(Entity* this) { +static void sub_08082608(Entity* this) { this->action = 1; this->previousActionFlag = 0; } + +void sub_08082614(Entity* this) { + u32 tileType; + + sub_0800445C(this); + if (--this->actionDelay != 0xFF) { + sub_0806F69C(this); + sub_08016A6C(this); + return; + } + + if (sub_0800442E(this)) { + return; + } + + this->action = 1; + if (gPlayerState.flags.all & 0x80) { + this->nonPlanarMovement <<= 1; + } + + this->field_0x70.HALF.LO = sub_080001DA(COORD_TO_TILE(this), this->collisionLayer); + tileType = GetTileTypeByEntity(this); + switch (tileType) { + case 0x71: + case 0x72: + sub_08082850(this, NULL); + break; + default: + SetTile(0x4000, COORD_TO_TILE(this), this->collisionLayer); + sub_08078930(this); + break; + } +} + +void sub_080826E4(Entity* this) { + gUnk_0811F0C4[this->previousActionFlag](this); +} + +void sub_080826FC(Entity* this) { + this->previousActionFlag = 1; + this->field_0x1d = 48; + this->actionDelay = 0; +} + +void sub_0808270C(Entity* this) { + if ((gPlayerState.field_0x1c & 0xF) != 0x1 || (this->bitfield & 0x7F) != 0x13) { + this->spriteOffsetX = 0; + this->action = 1; + SetTile(0x4000, COORD_TO_TILE(this), this->collisionLayer); + } else { + sub_0806F4E8(this); + } +} + +void sub_08082778(Entity* this) { + if (this->actionDelay == 0) { + this->actionDelay = 1; + this->spriteOffsetX = 0; + this->spriteOffsetY = -2; + SetTile((u16)this->field_0x70.HALF.LO, COORD_TO_TILE(this), this->collisionLayer); + } + + if ((gPlayerState.field_0x1c & 0xF) != 0x1 || (this->bitfield & 0x7F) != 0x13) { + sub_08082850(this, NULL); + } else { + sub_0806F3E4(this); + } +} + +void sub_080827F8(Entity* this) { + if (gPlayerState.field_0x1c == 0) { + sub_08082850(this, NULL); + } +} + +void nullsub_512(Entity* this) { +} + +void sub_08082818(Entity* this) { + sub_08082850(this, NULL); +} + +static void sub_08082824(Entity* this) { + if (this->field_0x20 < 0) { + this->spriteSettings.b.flipY = 1; + } + + if (sub_08003FC4(this, 0x2000) == 0) { + sub_08082850(this, NULL); + } +} + +static void sub_08082850(Entity* this, Entity* parent) { + u32 parameter = sub_0808288C(this, this->entityType.form, this->field_0x7c.BYTES.byte1, this->entityType.parameter); + Entity* fxEntity = CreateFx(this, 5, parameter); + if (fxEntity) { + fxEntity->parent = parent; + } + + if (this->entityType.parameter == 1) { + SetFlag(this->field_0x86); + } + + DeleteThisEntity(); +} + +u32 sub_0808288C(Entity* this, u32 form, u32 arg2, u32 arg3) { + Entity* entity; + u32 result = 0; + switch (form) { + case 0xFF: + result = 0; + break; + case 0: + result = 0x80; + break; + default: + entity = CreateObjectWithParent(this, 0, form, arg2); + if (entity) { + if (arg3 == 2) { + entity->actionDelay = 5; + entity->field_0x86 = this->field_0x86; + } else { + entity->actionDelay = 0; + } + } + break; + } + return result; +} From 133984ad5b5b85c339095dcec2a0dc1a18533231 Mon Sep 17 00:00:00 2001 From: theo3 Date: Sun, 9 Aug 2020 16:16:57 -0700 Subject: [PATCH 112/158] miniFireballGuy.c fixed nonmatching --- asm/miniFireballGuy.s | 55 ------------------------------------- linker.ld | 3 +- src/enemy/miniFireballGuy.c | 17 ++++++++++++ 3 files changed, 18 insertions(+), 57 deletions(-) delete mode 100644 asm/miniFireballGuy.s diff --git a/asm/miniFireballGuy.s b/asm/miniFireballGuy.s deleted file mode 100644 index d72b24f6..00000000 --- a/asm/miniFireballGuy.s +++ /dev/null @@ -1,55 +0,0 @@ - .include "asm/macros.inc" - - .include "constants/constants.inc" - - .syntax unified - - .text - - thumb_func_start sub_08045678 -sub_08045678: @ 0x08045678 - push {r4, r5, lr} - adds r5, r0, #0 - movs r0, #0xe0 - lsls r0, r0, #9 - str r0, [r5, #0x20] - ldrb r0, [r5, #0xe] - cmp r0, #0 - beq _0804568E - subs r0, #1 - strb r0, [r5, #0xe] - b _080456D4 -_0804568E: - bl Random - movs r1, #3 - ands r0, r1 - strb r0, [r5, #0xe] - adds r0, r5, #0 - bl sub_08049FA0 - cmp r0, #0 - bne _080456CA - bl Random - movs r1, #3 - ands r1, r0 - cmp r1, #0 - beq _080456CA - adds r0, r5, #0 - bl sub_08049EE4 - adds r4, r0, #0 - bl Random - movs r1, #8 - ands r0, r1 - adds r0, #0xfc - adds r4, r4, r0 - movs r0, #0x18 - ands r4, r0 - strb r4, [r5, #0x15] - b _080456D4 -_080456CA: - bl Random - movs r1, #0x18 - ands r0, r1 - strb r0, [r5, #0x15] -_080456D4: - pop {r4, r5, pc} - .align 2, 0 diff --git a/linker.ld b/linker.ld index f701aa1a..47e9a0ab 100644 --- a/linker.ld +++ b/linker.ld @@ -315,7 +315,7 @@ SECTIONS { asm/drawHealth.o(.text); asm/sub_0801C824.o(.text); asm/code_0801C85C.o(.text); - src/ezloReminder.o(.text); + src/ezloNag.o(.text); asm/code_0801CEC0.o(.text); src/dma.o(.text); asm/sub_0801D66C.o(.text); @@ -418,7 +418,6 @@ SECTIONS { asm/miniSlime.o(.text); asm/fireballGuy.o(.text); src/enemy/miniFireballGuy.o(.text); - asm/miniFireballGuy.o(.text); asm/enemy5A.o(.text); asm/businessScrubPrologue.o(.text); asm/gyorgFemale.o(.text); diff --git a/src/enemy/miniFireballGuy.c b/src/enemy/miniFireballGuy.c index a4c169d7..9ca6ad24 100644 --- a/src/enemy/miniFireballGuy.c +++ b/src/enemy/miniFireballGuy.c @@ -56,4 +56,21 @@ void sub_08045654(Entity *this) if (sub_08003FC4(this, 0x1800) == 0) { sub_08045678(this); } +} + +void sub_08045678(Entity *this) +{ + + this->field_0x20 = 0x1c000; + if (this->actionDelay != 0) { + this->actionDelay--; + } else { + this->actionDelay = Random() & 3; + if ((sub_08049FA0(this) == 0) && (Random() & 3)) { + this->direction = (sub_08049EE4(this) - 4 + (Random() & 8)) & 0x18; + } + else { + this->direction = Random() & 0x18; + } + } } \ No newline at end of file From 4a4ac6fc9139cf9373a0307cb85ae6dc72de5c3c Mon Sep 17 00:00:00 2001 From: theo3 Date: Sun, 9 Aug 2020 16:23:03 -0700 Subject: [PATCH 113/158] fixes --- include/functions.h | 2 +- src/object/pot.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/include/functions.h b/include/functions.h index 0a1eac64..bb9cdb9a 100644 --- a/include/functions.h +++ b/include/functions.h @@ -233,7 +233,7 @@ extern void sub_080784C8(); extern void sub_08017640(); extern void sub_0806FDA0(Entity*); extern void sub_080AE008(Entity*, u32, u32); -extern void sub_08016A30(Entity*); +extern u32 sub_08016A30(Entity*); extern u32 IsItemEquipped(u32); extern void sub_08077728(); extern void sub_0807AEE4(); diff --git a/src/object/pot.c b/src/object/pot.c index a31a5567..39a7b4c1 100755 --- a/src/object/pot.c +++ b/src/object/pot.c @@ -34,7 +34,7 @@ void sub_0808222C(Entity* this) { this->boundingBox = &gUnk_080FD338; this->nonPlanarMovement = 0x80; this->y.HALF.HI += 3; - this->possibleBool = 0; + this->field_0x16 = 0; this->flags |= 0x80; this->currentHealth = 1; this->field_0x3c = 7; From 546c69ed581b384f0e1f35d8608da25328f1292c Mon Sep 17 00:00:00 2001 From: Marcus Huderle Date: Mon, 10 Aug 2020 19:19:49 -0500 Subject: [PATCH 114/158] Document main screen handlers --- asm/code_08050038.s | 12 +- asm/code_0805EC04.s | 4 +- asm/code_080A3480.s | 4 +- data/data_080D5360.s | 9345 ------------------------------------- data/data_08100CD4.s | 9347 ++++++++++++++++++++++++++++++++++++++ include/functions.h | 6 + include/main.h | 1 + linker.ld | 2 + src/introSetTransition.c | 2 +- src/mainLoop.c | 12 +- 10 files changed, 9377 insertions(+), 9358 deletions(-) create mode 100755 data/data_08100CD4.s diff --git a/asm/code_08050038.s b/asm/code_08050038.s index 23d50993..4bcb610b 100644 --- a/asm/code_08050038.s +++ b/asm/code_08050038.s @@ -405,8 +405,8 @@ _08050444: .4byte 0x000004B4 _08050448: .4byte gUnk_02019EEC _0805044C: .4byte gUnk_02002A40 - thumb_func_start sub_08050450 -sub_08050450: @ 0x08050450 + thumb_func_start HandleChooseFileScreen +HandleChooseFileScreen: @ 0x08050450 push {r4, lr} bl sub_080AD90C ldr r1, _080504D8 @ =gUnk_080FC8A4 @@ -3104,8 +3104,8 @@ sub_0805194C: @ 0x0805194C _08051980: .4byte gUnk_02019EE0 _08051984: .4byte 0x000004B4 - thumb_func_start sub_08051988 -sub_08051988: @ 0x08051988 + thumb_func_start HandleGameplayScreen +HandleGameplayScreen: @ 0x08051988 push {lr} ldr r1, _080519A4 @ =gScreenTransition ldr r0, [r1] @@ -3875,8 +3875,8 @@ _08052088: .4byte gScreen _0805208C: .4byte 0x00001C01 _08052090: .4byte 0x00001D05 - thumb_func_start sub_08052094 -sub_08052094: @ 0x08052094 + thumb_func_start HandleGameOverScreen +HandleGameOverScreen: @ 0x08052094 push {r4, lr} ldr r1, _080520BC @ =gUnk_080FCA70 ldr r4, _080520C0 @ =gUnk_03001000 diff --git a/asm/code_0805EC04.s b/asm/code_0805EC04.s index 1df1ae7b..5398de29 100644 --- a/asm/code_0805EC04.s +++ b/asm/code_0805EC04.s @@ -1857,8 +1857,8 @@ _0805F9E2: .align 2, 0 _0805F9E4: .4byte 0x0000031A - thumb_func_start sub_0805F9E8 -sub_0805F9E8: @ 0x0805F9E8 + thumb_func_start HandleDebugTextScreen +HandleDebugTextScreen: @ 0x0805F9E8 push {lr} ldr r1, _0805F9FC @ =gUnk_08109A30 ldr r0, _0805FA00 @ =gUnk_03001000 diff --git a/asm/code_080A3480.s b/asm/code_080A3480.s index c629c34d..37d3af25 100644 --- a/asm/code_080A3480.s +++ b/asm/code_080A3480.s @@ -201,8 +201,8 @@ sub_080A35C8: @ 0x080A35C8 .align 2, 0 _080A35DC: .4byte gUnk_02021EE0 - thumb_func_start sub_080A35E0 -sub_080A35E0: @ 0x080A35E0 + thumb_func_start HandleCreditsScreen +HandleCreditsScreen: @ 0x080A35E0 push {lr} ldr r1, _080A35FC @ =gScreenTransition ldr r0, [r1] diff --git a/data/data_080D5360.s b/data/data_080D5360.s index 7143b764..e86ab49d 100644 --- a/data/data_080D5360.s +++ b/data/data_080D5360.s @@ -13530,9348 +13530,3 @@ gUnk_08100C02:: @ 08100C02 gUnk_08100C81:: @ 08100C81 .incbin "baserom.gba", 0x100C81, 0x000003B - -gUnk_08100CBC:: @ 08100CBC - .incbin "baserom.gba", 0x100CBC, 0x0000018 - -gUnk_08100CD4:: @ 08100CD4 - .incbin "baserom.gba", 0x100CD4, 0x0000010 - -gUnk_08100CE4:: @ 08100CE4 - .incbin "baserom.gba", 0x100CE4, 0x000000C - -gUnk_08100CF0:: @ 08100CF0 - .incbin "baserom.gba", 0x100CF0, 0x0000004 - -gUnk_08100CF4:: @ 08100CF4 - .incbin "baserom.gba", 0x100CF4, 0x0000009 - -gUnk_08100CFD:: @ 08100CFD - .incbin "baserom.gba", 0x100CFD, 0x0000004 - -gUnk_08100D01:: @ 08100D01 - .incbin "baserom.gba", 0x100D01, 0x0000003 - -gUnk_08100D04:: @ 08100D04 - .incbin "baserom.gba", 0x100D04, 0x000001C - -gUnk_08100D20:: @ 08100D20 - .incbin "baserom.gba", 0x100D20, 0x0000004 - -gUnk_08100D24:: @ 08100D24 - .incbin "baserom.gba", 0x100D24, 0x0000024 - -gUnk_08100D48:: @ 08100D48 - .incbin "baserom.gba", 0x100D48, 0x0000008 - -gUnk_08100D50:: @ 08100D50 - .incbin "baserom.gba", 0x100D50, 0x0000030 - -gUnk_08100D80:: @ 08100D80 - .incbin "baserom.gba", 0x100D80, 0x0000004 - -gUnk_08100D84:: @ 08100D84 - .incbin "baserom.gba", 0x100D84, 0x0000030 - -gUnk_08100DB4:: @ 08100DB4 - .incbin "baserom.gba", 0x100DB4, 0x0000004 - -gUnk_08100DB8:: @ 08100DB8 - .incbin "baserom.gba", 0x100DB8, 0x0000030 - -gUnk_08100DE8:: @ 08100DE8 - .incbin "baserom.gba", 0x100DE8, 0x0000004 - -gUnk_08100DEC:: @ 08100DEC - .incbin "baserom.gba", 0x100DEC, 0x000000A - -gUnk_08100DF6:: @ 08100DF6 - .incbin "baserom.gba", 0x100DF6, 0x0000016 - -gUnk_08100E0C:: @ 08100E0C - .incbin "baserom.gba", 0x100E0C, 0x000000A - -gUnk_08100E16:: @ 08100E16 - .incbin "baserom.gba", 0x100E16, 0x0000006 - -gUnk_08100E1C:: @ 08100E1C - .incbin "baserom.gba", 0x100E1C, 0x0000004 - -gUnk_08100E20:: @ 08100E20 - .incbin "baserom.gba", 0x100E20, 0x000000E - -gUnk_08100E2E:: @ 08100E2E - .incbin "baserom.gba", 0x100E2E, 0x0000022 - -gUnk_08100E50:: @ 08100E50 - .incbin "baserom.gba", 0x100E50, 0x0000004 - -gUnk_08100E54:: @ 08100E54 - .incbin "baserom.gba", 0x100E54, 0x000002D - -gUnk_08100E81:: @ 08100E81 - .incbin "baserom.gba", 0x100E81, 0x0000003 - -gUnk_08100E84:: @ 08100E84 - .incbin "baserom.gba", 0x100E84, 0x0000004 - -gUnk_08100E88:: @ 08100E88 - .incbin "baserom.gba", 0x100E88, 0x000003C - -gUnk_08100EC4:: @ 08100EC4 - .incbin "baserom.gba", 0x100EC4, 0x0000034 - -gUnk_08100EF8:: @ 08100EF8 - .incbin "baserom.gba", 0x100EF8, 0x0000006 - -gUnk_08100EFE:: @ 08100EFE - .incbin "baserom.gba", 0x100EFE, 0x0000002 - -gUnk_08100F00:: @ 08100F00 - .incbin "baserom.gba", 0x100F00, 0x0000009 - -gUnk_08100F09:: @ 08100F09 - .incbin "baserom.gba", 0x100F09, 0x0000007 - -gUnk_08100F10:: @ 08100F10 - .incbin "baserom.gba", 0x100F10, 0x0000020 - -gUnk_08100F30:: @ 08100F30 - .incbin "baserom.gba", 0x100F30, 0x000000C - -gUnk_08100F3C:: @ 08100F3C - .incbin "baserom.gba", 0x100F3C, 0x000000C - -gUnk_08100F48:: @ 08100F48 - .incbin "baserom.gba", 0x100F48, 0x0000030 - -gUnk_08100F78:: @ 08100F78 - .incbin "baserom.gba", 0x100F78, 0x0000004 - -gUnk_08100F7C:: @ 08100F7C - .incbin "baserom.gba", 0x100F7C, 0x0000005 - -gUnk_08100F81:: @ 08100F81 - .incbin "baserom.gba", 0x100F81, 0x000001B - -gUnk_08100F9C:: @ 08100F9C - .incbin "baserom.gba", 0x100F9C, 0x000001C - -gUnk_08100FB8:: @ 08100FB8 - .incbin "baserom.gba", 0x100FB8, 0x0000004 - -gUnk_08100FBC:: @ 08100FBC - .incbin "baserom.gba", 0x100FBC, 0x0000030 - -gUnk_08100FEC:: @ 08100FEC - .incbin "baserom.gba", 0x100FEC, 0x0000004 - -gUnk_08100FF0:: @ 08100FF0 - .incbin "baserom.gba", 0x100FF0, 0x0000010 - -gUnk_08101000:: @ 08101000 - .incbin "baserom.gba", 0x101000, 0x000000E - -gUnk_0810100E:: @ 0810100E - .incbin "baserom.gba", 0x10100E, 0x0000002 - -gUnk_08101010:: @ 08101010 - .incbin "baserom.gba", 0x101010, 0x0000010 - -gUnk_08101020:: @ 08101020 - .incbin "baserom.gba", 0x101020, 0x0000004 - -gUnk_08101024:: @ 08101024 - .incbin "baserom.gba", 0x101024, 0x0000030 - -gUnk_08101054:: @ 08101054 - .incbin "baserom.gba", 0x101054, 0x0000004 - -gUnk_08101058:: @ 08101058 - .incbin "baserom.gba", 0x101058, 0x0000029 - -gUnk_08101081:: @ 08101081 - .incbin "baserom.gba", 0x101081, 0x0000013 - -gUnk_08101094:: @ 08101094 - .incbin "baserom.gba", 0x101094, 0x0000004 - -gUnk_08101098:: @ 08101098 - .incbin "baserom.gba", 0x101098, 0x0000030 - -gUnk_081010C8:: @ 081010C8 - .incbin "baserom.gba", 0x1010C8, 0x0000004 - -gUnk_081010CC:: @ 081010CC - .incbin "baserom.gba", 0x1010CC, 0x0000030 - -gUnk_081010FC:: @ 081010FC - .incbin "baserom.gba", 0x1010FC, 0x0000003 - -gUnk_081010FF:: @ 081010FF - .incbin "baserom.gba", 0x1010FF, 0x0000001 - -gUnk_08101100:: @ 08101100 - .incbin "baserom.gba", 0x101100, 0x000000B - -gUnk_0810110B:: @ 0810110B - .incbin "baserom.gba", 0x10110B, 0x0000003 - -gUnk_0810110E:: @ 0810110E - .incbin "baserom.gba", 0x10110E, 0x0000003 - -gUnk_08101111:: @ 08101111 - .incbin "baserom.gba", 0x101111, 0x000001B - -gUnk_0810112C:: @ 0810112C - .incbin "baserom.gba", 0x10112C, 0x0000030 - -gUnk_0810115C:: @ 0810115C - .incbin "baserom.gba", 0x10115C, 0x000000C - -gUnk_08101168:: @ 08101168 - .incbin "baserom.gba", 0x101168, 0x0000048 - -gUnk_081011B0:: @ 081011B0 - .incbin "baserom.gba", 0x1011B0, 0x0000004 - -gUnk_081011B4:: @ 081011B4 - .incbin "baserom.gba", 0x1011B4, 0x0000048 - -gUnk_081011FC:: @ 081011FC - .incbin "baserom.gba", 0x1011FC, 0x0000001 - -gUnk_081011FD:: @ 081011FD - .incbin "baserom.gba", 0x1011FD, 0x0000003 - -gUnk_08101200:: @ 08101200 - .incbin "baserom.gba", 0x101200, 0x0000008 - -gUnk_08101208:: @ 08101208 - .incbin "baserom.gba", 0x101208, 0x0000006 - -gUnk_0810120E:: @ 0810120E - .incbin "baserom.gba", 0x10120E, 0x0000005 - -gUnk_08101213:: @ 08101213 - .incbin "baserom.gba", 0x101213, 0x0000035 - -gUnk_08101248:: @ 08101248 - .incbin "baserom.gba", 0x101248, 0x0000004 - -gUnk_0810124C:: @ 0810124C - .incbin "baserom.gba", 0x10124C, 0x0000048 - -gUnk_08101294:: @ 08101294 - .incbin "baserom.gba", 0x101294, 0x0000004 - -gUnk_08101298:: @ 08101298 - .incbin "baserom.gba", 0x101298, 0x0000048 - -gUnk_081012E0:: @ 081012E0 - .incbin "baserom.gba", 0x1012E0, 0x0000004 - -gUnk_081012E4:: @ 081012E4 - .incbin "baserom.gba", 0x1012E4, 0x0000027 - -gUnk_0810130B:: @ 0810130B - .incbin "baserom.gba", 0x10130B, 0x0000004 - -gUnk_0810130F:: @ 0810130F - .incbin "baserom.gba", 0x10130F, 0x0000001 - -gUnk_08101310:: @ 08101310 - .incbin "baserom.gba", 0x101310, 0x0000001 - -gUnk_08101311:: @ 08101311 - .incbin "baserom.gba", 0x101311, 0x0000003 - -gUnk_08101314:: @ 08101314 - .incbin "baserom.gba", 0x101314, 0x0000002 - -gUnk_08101316:: @ 08101316 - .incbin "baserom.gba", 0x101316, 0x000000F - -gUnk_08101325:: @ 08101325 - .incbin "baserom.gba", 0x101325, 0x0000007 - -gUnk_0810132C:: @ 0810132C - .incbin "baserom.gba", 0x10132C, 0x0000004 - -gUnk_08101330:: @ 08101330 - .incbin "baserom.gba", 0x101330, 0x0000048 - -gUnk_08101378:: @ 08101378 - .incbin "baserom.gba", 0x101378, 0x0000004 - -gUnk_0810137C:: @ 0810137C - .incbin "baserom.gba", 0x10137C, 0x0000048 - -gUnk_081013C4:: @ 081013C4 - .incbin "baserom.gba", 0x1013C4, 0x0000004 - -gUnk_081013C8:: @ 081013C8 - .incbin "baserom.gba", 0x1013C8, 0x000000C - -gUnk_081013D4:: @ 081013D4 - .incbin "baserom.gba", 0x1013D4, 0x0000024 - -gUnk_081013F8:: @ 081013F8 - .incbin "baserom.gba", 0x1013F8, 0x0000016 - -gUnk_0810140E:: @ 0810140E - .incbin "baserom.gba", 0x10140E, 0x0000005 - -gUnk_08101413:: @ 08101413 - .incbin "baserom.gba", 0x101413, 0x0000001 - -gUnk_08101414:: @ 08101414 - .incbin "baserom.gba", 0x101414, 0x0000001 - -gUnk_08101415:: @ 08101415 - .incbin "baserom.gba", 0x101415, 0x0000003 - -gUnk_08101418:: @ 08101418 - .incbin "baserom.gba", 0x101418, 0x0000010 - -gUnk_08101428:: @ 08101428 - .incbin "baserom.gba", 0x101428, 0x0000008 - -gUnk_08101430:: @ 08101430 - .incbin "baserom.gba", 0x101430, 0x0000030 - -gUnk_08101460:: @ 08101460 - .incbin "baserom.gba", 0x101460, 0x0000004 - -gUnk_08101464:: @ 08101464 - .incbin "baserom.gba", 0x101464, 0x0000024 - -gUnk_08101488:: @ 08101488 - .incbin "baserom.gba", 0x101488, 0x0000024 - -gUnk_081014AC:: @ 081014AC - .incbin "baserom.gba", 0x1014AC, 0x0000024 - -gUnk_081014D0:: @ 081014D0 - .incbin "baserom.gba", 0x1014D0, 0x000000C - -gUnk_081014DC:: @ 081014DC - .incbin "baserom.gba", 0x1014DC, 0x0000024 - -gUnk_08101500:: @ 08101500 - .incbin "baserom.gba", 0x101500, 0x000000F - -gUnk_0810150F:: @ 0810150F - .incbin "baserom.gba", 0x10150F, 0x0000005 - -gUnk_08101514:: @ 08101514 - .incbin "baserom.gba", 0x101514, 0x0000002 - -gUnk_08101516:: @ 08101516 - .incbin "baserom.gba", 0x101516, 0x0000001 - -gUnk_08101517:: @ 08101517 - .incbin "baserom.gba", 0x101517, 0x000000D - -gUnk_08101524:: @ 08101524 - .incbin "baserom.gba", 0x101524, 0x0000003 - -gUnk_08101527:: @ 08101527 - .incbin "baserom.gba", 0x101527, 0x0000021 - -gUnk_08101548:: @ 08101548 - .incbin "baserom.gba", 0x101548, 0x000000C - -gUnk_08101554:: @ 08101554 - .incbin "baserom.gba", 0x101554, 0x0000018 - -gUnk_0810156C:: @ 0810156C - .incbin "baserom.gba", 0x10156C, 0x0000018 - -gUnk_08101584:: @ 08101584 - .incbin "baserom.gba", 0x101584, 0x0000018 - -gUnk_0810159C:: @ 0810159C - .incbin "baserom.gba", 0x10159C, 0x0000018 - -gUnk_081015B4:: @ 081015B4 - .incbin "baserom.gba", 0x1015B4, 0x0000018 - -gUnk_081015CC:: @ 081015CC - .incbin "baserom.gba", 0x1015CC, 0x0000018 - -gUnk_081015E4:: @ 081015E4 - .incbin "baserom.gba", 0x1015E4, 0x0000018 - -gUnk_081015FC:: @ 081015FC - .incbin "baserom.gba", 0x1015FC, 0x000000D - -gUnk_08101609:: @ 08101609 - .incbin "baserom.gba", 0x101609, 0x000000B - -gUnk_08101614:: @ 08101614 - .incbin "baserom.gba", 0x101614, 0x0000003 - -gUnk_08101617:: @ 08101617 - .incbin "baserom.gba", 0x101617, 0x0000002 - -gUnk_08101619:: @ 08101619 - .incbin "baserom.gba", 0x101619, 0x0000001 - -gUnk_0810161A:: @ 0810161A - .incbin "baserom.gba", 0x10161A, 0x0000002 - -gUnk_0810161C:: @ 0810161C - .incbin "baserom.gba", 0x10161C, 0x0000010 - -gUnk_0810162C:: @ 0810162C - .incbin "baserom.gba", 0x10162C, 0x0000018 - -gUnk_08101644:: @ 08101644 - .incbin "baserom.gba", 0x101644, 0x0000018 - -gUnk_0810165C:: @ 0810165C - .incbin "baserom.gba", 0x10165C, 0x0000018 - -gUnk_08101674:: @ 08101674 - .incbin "baserom.gba", 0x101674, 0x0000018 - -gUnk_0810168C:: @ 0810168C - .incbin "baserom.gba", 0x10168C, 0x0000018 - -gUnk_081016A4:: @ 081016A4 - .incbin "baserom.gba", 0x1016A4, 0x0000018 - -gUnk_081016BC:: @ 081016BC - .incbin "baserom.gba", 0x1016BC, 0x0000018 - -gUnk_081016D4:: @ 081016D4 - .incbin "baserom.gba", 0x1016D4, 0x0000018 - -gUnk_081016EC:: @ 081016EC - .incbin "baserom.gba", 0x1016EC, 0x0000018 - -gUnk_08101704:: @ 08101704 - .incbin "baserom.gba", 0x101704, 0x0000013 - -gUnk_08101717:: @ 08101717 - .incbin "baserom.gba", 0x101717, 0x0000001 - -gUnk_08101718:: @ 08101718 - .incbin "baserom.gba", 0x101718, 0x0000004 - -gUnk_0810171C:: @ 0810171C - .incbin "baserom.gba", 0x10171C, 0x0000001 - -gUnk_0810171D:: @ 0810171D - .incbin "baserom.gba", 0x10171D, 0x0000002 - -gUnk_0810171F:: @ 0810171F - .incbin "baserom.gba", 0x10171F, 0x0000005 - -gUnk_08101724:: @ 08101724 - .incbin "baserom.gba", 0x101724, 0x0000005 - -gUnk_08101729:: @ 08101729 - .incbin "baserom.gba", 0x101729, 0x000000B - -gUnk_08101734:: @ 08101734 - .incbin "baserom.gba", 0x101734, 0x0000006 - -gUnk_0810173A:: @ 0810173A - .incbin "baserom.gba", 0x10173A, 0x000004A - -gUnk_08101784:: @ 08101784 - .incbin "baserom.gba", 0x101784, 0x0000018 - -gUnk_0810179C:: @ 0810179C - .incbin "baserom.gba", 0x10179C, 0x0000018 - -gUnk_081017B4:: @ 081017B4 - .incbin "baserom.gba", 0x1017B4, 0x0000018 - -gUnk_081017CC:: @ 081017CC - .incbin "baserom.gba", 0x1017CC, 0x0000018 - -gUnk_081017E4:: @ 081017E4 - .incbin "baserom.gba", 0x1017E4, 0x0000018 - -gUnk_081017FC:: @ 081017FC - .incbin "baserom.gba", 0x1017FC, 0x0000014 - -gUnk_08101810:: @ 08101810 - .incbin "baserom.gba", 0x101810, 0x0000003 - -gUnk_08101813:: @ 08101813 - .incbin "baserom.gba", 0x101813, 0x0000001 - -gUnk_08101814:: @ 08101814 - .incbin "baserom.gba", 0x101814, 0x0000006 - -gUnk_0810181A:: @ 0810181A - .incbin "baserom.gba", 0x10181A, 0x0000002 - -gUnk_0810181C:: @ 0810181C - .incbin "baserom.gba", 0x10181C, 0x0000002 - -gUnk_0810181E:: @ 0810181E - .incbin "baserom.gba", 0x10181E, 0x0000001 - -gUnk_0810181F:: @ 0810181F - .incbin "baserom.gba", 0x10181F, 0x0000003 - -gUnk_08101822:: @ 08101822 - .incbin "baserom.gba", 0x101822, 0x0000003 - -gUnk_08101825:: @ 08101825 - .incbin "baserom.gba", 0x101825, 0x0000006 - -gUnk_0810182B:: @ 0810182B - .incbin "baserom.gba", 0x10182B, 0x0000001 - -gUnk_0810182C:: @ 0810182C - .incbin "baserom.gba", 0x10182C, 0x0000018 - -gUnk_08101844:: @ 08101844 - .incbin "baserom.gba", 0x101844, 0x0000018 - -gUnk_0810185C:: @ 0810185C - .incbin "baserom.gba", 0x10185C, 0x0000024 - -gUnk_08101880:: @ 08101880 - .incbin "baserom.gba", 0x101880, 0x0000030 - -gUnk_081018B0:: @ 081018B0 - .incbin "baserom.gba", 0x1018B0, 0x0000004 - -gUnk_081018B4:: @ 081018B4 - .incbin "baserom.gba", 0x1018B4, 0x0000030 - -gUnk_081018E4:: @ 081018E4 - .incbin "baserom.gba", 0x1018E4, 0x000001F - -gUnk_08101903:: @ 08101903 - .incbin "baserom.gba", 0x101903, 0x0000011 - -gUnk_08101914:: @ 08101914 - .incbin "baserom.gba", 0x101914, 0x0000009 - -gUnk_0810191D:: @ 0810191D - .incbin "baserom.gba", 0x10191D, 0x0000004 - -gUnk_08101921:: @ 08101921 - .incbin "baserom.gba", 0x101921, 0x0000002 - -gUnk_08101923:: @ 08101923 - .incbin "baserom.gba", 0x101923, 0x0000001 - -gUnk_08101924:: @ 08101924 - .incbin "baserom.gba", 0x101924, 0x0000020 - -gUnk_08101944:: @ 08101944 - .incbin "baserom.gba", 0x101944, 0x000000C - -gUnk_08101950:: @ 08101950 - .incbin "baserom.gba", 0x101950, 0x0000030 - -gUnk_08101980:: @ 08101980 - .incbin "baserom.gba", 0x101980, 0x0000004 - -gUnk_08101984:: @ 08101984 - .incbin "baserom.gba", 0x101984, 0x0000030 - -gUnk_081019B4:: @ 081019B4 - .incbin "baserom.gba", 0x1019B4, 0x0000004 - -gUnk_081019B8:: @ 081019B8 - .incbin "baserom.gba", 0x1019B8, 0x0000030 - -gUnk_081019E8:: @ 081019E8 - .incbin "baserom.gba", 0x1019E8, 0x0000004 - -gUnk_081019EC:: @ 081019EC - .incbin "baserom.gba", 0x1019EC, 0x0000013 - -gUnk_081019FF:: @ 081019FF - .incbin "baserom.gba", 0x1019FF, 0x000000B - -gUnk_08101A0A:: @ 08101A0A - .incbin "baserom.gba", 0x101A0A, 0x000000F - -gUnk_08101A19:: @ 08101A19 - .incbin "baserom.gba", 0x101A19, 0x0000002 - -gUnk_08101A1B:: @ 08101A1B - .incbin "baserom.gba", 0x101A1B, 0x0000001 - -gUnk_08101A1C:: @ 08101A1C - .incbin "baserom.gba", 0x101A1C, 0x0000006 - -gUnk_08101A22:: @ 08101A22 - .incbin "baserom.gba", 0x101A22, 0x0000002 - -gUnk_08101A24:: @ 08101A24 - .incbin "baserom.gba", 0x101A24, 0x0000001 - -gUnk_08101A25:: @ 08101A25 - .incbin "baserom.gba", 0x101A25, 0x0000027 - -gUnk_08101A4C:: @ 08101A4C - .incbin "baserom.gba", 0x101A4C, 0x0000030 - -gUnk_08101A7C:: @ 08101A7C - .incbin "baserom.gba", 0x101A7C, 0x0000030 - -gUnk_08101AAC:: @ 08101AAC - .incbin "baserom.gba", 0x101AAC, 0x0000030 - -gUnk_08101ADC:: @ 08101ADC - .incbin "baserom.gba", 0x101ADC, 0x0000024 - -gUnk_08101B00:: @ 08101B00 - .incbin "baserom.gba", 0x101B00, 0x000000C - -gUnk_08101B0C:: @ 08101B0C - .incbin "baserom.gba", 0x101B0C, 0x0000018 - -gUnk_08101B24:: @ 08101B24 - .incbin "baserom.gba", 0x101B24, 0x0000030 - -gUnk_08101B54:: @ 08101B54 - .incbin "baserom.gba", 0x101B54, 0x0000030 - -gUnk_08101B84:: @ 08101B84 - .incbin "baserom.gba", 0x101B84, 0x0000030 - -gUnk_08101BB4:: @ 08101BB4 - .incbin "baserom.gba", 0x101BB4, 0x0000030 - -gUnk_08101BE4:: @ 08101BE4 - .incbin "baserom.gba", 0x101BE4, 0x0000030 - -gUnk_08101C14:: @ 08101C14 - .incbin "baserom.gba", 0x101C14, 0x0000001 - -gUnk_08101C15:: @ 08101C15 - .incbin "baserom.gba", 0x101C15, 0x0000013 - -gUnk_08101C28:: @ 08101C28 - .incbin "baserom.gba", 0x101C28, 0x0000030 - -gUnk_08101C58:: @ 08101C58 - .incbin "baserom.gba", 0x101C58, 0x0000004 - -gUnk_08101C5C:: @ 08101C5C - .incbin "baserom.gba", 0x101C5C, 0x0000030 - -gUnk_08101C8C:: @ 08101C8C - .incbin "baserom.gba", 0x101C8C, 0x0000004 - -gUnk_08101C90:: @ 08101C90 - .incbin "baserom.gba", 0x101C90, 0x0000030 - -gUnk_08101CC0:: @ 08101CC0 - .incbin "baserom.gba", 0x101CC0, 0x0000004 - -gUnk_08101CC4:: @ 08101CC4 - .incbin "baserom.gba", 0x101CC4, 0x0000005 - -gUnk_08101CC9:: @ 08101CC9 - .incbin "baserom.gba", 0x101CC9, 0x000002B - -gUnk_08101CF4:: @ 08101CF4 - .incbin "baserom.gba", 0x101CF4, 0x0000004 - -gUnk_08101CF8:: @ 08101CF8 - .incbin "baserom.gba", 0x101CF8, 0x0000008 - -gUnk_08101D00:: @ 08101D00 - .incbin "baserom.gba", 0x101D00, 0x0000027 - -gUnk_08101D27:: @ 08101D27 - .incbin "baserom.gba", 0x101D27, 0x0000001 - -gUnk_08101D28:: @ 08101D28 - .incbin "baserom.gba", 0x101D28, 0x0000004 - -gUnk_08101D2C:: @ 08101D2C - .incbin "baserom.gba", 0x101D2C, 0x0000030 - -gUnk_08101D5C:: @ 08101D5C - .incbin "baserom.gba", 0x101D5C, 0x0000004 - -gUnk_08101D60:: @ 08101D60 - .incbin "baserom.gba", 0x101D60, 0x0000030 - -gUnk_08101D90:: @ 08101D90 - .incbin "baserom.gba", 0x101D90, 0x0000004 - -gUnk_08101D94:: @ 08101D94 - .incbin "baserom.gba", 0x101D94, 0x0000030 - -gUnk_08101DC4:: @ 08101DC4 - .incbin "baserom.gba", 0x101DC4, 0x0000004 - -gUnk_08101DC8:: @ 08101DC8 - .incbin "baserom.gba", 0x101DC8, 0x0000030 - -gUnk_08101DF8:: @ 08101DF8 - .incbin "baserom.gba", 0x101DF8, 0x0000004 - -gUnk_08101DFC:: @ 08101DFC - .incbin "baserom.gba", 0x101DFC, 0x000002D - -gUnk_08101E29:: @ 08101E29 - .incbin "baserom.gba", 0x101E29, 0x0000003 - -gUnk_08101E2C:: @ 08101E2C - .incbin "baserom.gba", 0x101E2C, 0x0000004 - -gUnk_08101E30:: @ 08101E30 - .incbin "baserom.gba", 0x101E30, 0x0000030 - -gUnk_08101E60:: @ 08101E60 - .incbin "baserom.gba", 0x101E60, 0x0000004 - -gUnk_08101E64:: @ 08101E64 - .incbin "baserom.gba", 0x101E64, 0x0000030 - -gUnk_08101E94:: @ 08101E94 - .incbin "baserom.gba", 0x101E94, 0x0000004 - -gUnk_08101E98:: @ 08101E98 - .incbin "baserom.gba", 0x101E98, 0x0000030 - -gUnk_08101EC8:: @ 08101EC8 - .incbin "baserom.gba", 0x101EC8, 0x0000004 - -gUnk_08101ECC:: @ 08101ECC - .incbin "baserom.gba", 0x101ECC, 0x0000030 - -gUnk_08101EFC:: @ 08101EFC - .incbin "baserom.gba", 0x101EFC, 0x0000004 - -gUnk_08101F00:: @ 08101F00 - .incbin "baserom.gba", 0x101F00, 0x0000020 - -gUnk_08101F20:: @ 08101F20 - .incbin "baserom.gba", 0x101F20, 0x0000010 - -gUnk_08101F30:: @ 08101F30 - .incbin "baserom.gba", 0x101F30, 0x0000004 - -gUnk_08101F34:: @ 08101F34 - .incbin "baserom.gba", 0x101F34, 0x000003C - -gUnk_08101F70:: @ 08101F70 - .incbin "baserom.gba", 0x101F70, 0x0000004 - -gUnk_08101F74:: @ 08101F74 - .incbin "baserom.gba", 0x101F74, 0x0000021 - -gUnk_08101F95:: @ 08101F95 - .incbin "baserom.gba", 0x101F95, 0x000000F - -gUnk_08101FA4:: @ 08101FA4 - .incbin "baserom.gba", 0x101FA4, 0x0000004 - -gUnk_08101FA8:: @ 08101FA8 - .incbin "baserom.gba", 0x101FA8, 0x0000030 - -gUnk_08101FD8:: @ 08101FD8 - .incbin "baserom.gba", 0x101FD8, 0x0000004 - -gUnk_08101FDC:: @ 08101FDC - .incbin "baserom.gba", 0x101FDC, 0x0000030 - -gUnk_0810200C:: @ 0810200C - .incbin "baserom.gba", 0x10200C, 0x0000004 - -gUnk_08102010:: @ 08102010 - .incbin "baserom.gba", 0x102010, 0x000002D - -gUnk_0810203D:: @ 0810203D - .incbin "baserom.gba", 0x10203D, 0x0000003 - -gUnk_08102040:: @ 08102040 - .incbin "baserom.gba", 0x102040, 0x0000004 - -gUnk_08102044:: @ 08102044 - .incbin "baserom.gba", 0x102044, 0x0000030 - -gUnk_08102074:: @ 08102074 - .incbin "baserom.gba", 0x102074, 0x0000004 - -gUnk_08102078:: @ 08102078 - .incbin "baserom.gba", 0x102078, 0x0000030 - -gUnk_081020A8:: @ 081020A8 - .incbin "baserom.gba", 0x1020A8, 0x0000004 - -gUnk_081020AC:: @ 081020AC - .incbin "baserom.gba", 0x1020AC, 0x0000028 - -gUnk_081020D4:: @ 081020D4 - .incbin "baserom.gba", 0x1020D4, 0x0000008 - -gUnk_081020DC:: @ 081020DC - .incbin "baserom.gba", 0x1020DC, 0x0000004 - -gUnk_081020E0:: @ 081020E0 - .incbin "baserom.gba", 0x1020E0, 0x0000021 - -gUnk_08102101:: @ 08102101 - .incbin "baserom.gba", 0x102101, 0x000000F - -gUnk_08102110:: @ 08102110 - .incbin "baserom.gba", 0x102110, 0x0000004 - -gUnk_08102114:: @ 08102114 - .incbin "baserom.gba", 0x102114, 0x0000036 - -gUnk_0810214A:: @ 0810214A - .incbin "baserom.gba", 0x10214A, 0x0000006 - -gUnk_08102150:: @ 08102150 - .incbin "baserom.gba", 0x102150, 0x0000004 - -gUnk_08102154:: @ 08102154 - .incbin "baserom.gba", 0x102154, 0x0000030 - -gUnk_08102184:: @ 08102184 - .incbin "baserom.gba", 0x102184, 0x0000004 - -gUnk_08102188:: @ 08102188 - .incbin "baserom.gba", 0x102188, 0x0000030 - -gUnk_081021B8:: @ 081021B8 - .incbin "baserom.gba", 0x1021B8, 0x0000004 - -gUnk_081021BC:: @ 081021BC - .incbin "baserom.gba", 0x1021BC, 0x0000030 - -gUnk_081021EC:: @ 081021EC - .incbin "baserom.gba", 0x1021EC, 0x0000004 - -gUnk_081021F0:: @ 081021F0 - .incbin "baserom.gba", 0x1021F0, 0x0000030 - -gUnk_08102220:: @ 08102220 - .incbin "baserom.gba", 0x102220, 0x0000004 - -gUnk_08102224:: @ 08102224 - .incbin "baserom.gba", 0x102224, 0x0000014 - -gUnk_08102238:: @ 08102238 - .incbin "baserom.gba", 0x102238, 0x000001C - -gUnk_08102254:: @ 08102254 - .incbin "baserom.gba", 0x102254, 0x0000004 - -gUnk_08102258:: @ 08102258 - .incbin "baserom.gba", 0x102258, 0x0000030 - -gUnk_08102288:: @ 08102288 - .incbin "baserom.gba", 0x102288, 0x0000004 - -gUnk_0810228C:: @ 0810228C - .incbin "baserom.gba", 0x10228C, 0x0000030 - -gUnk_081022BC:: @ 081022BC - .incbin "baserom.gba", 0x1022BC, 0x0000004 - -gUnk_081022C0:: @ 081022C0 - .incbin "baserom.gba", 0x1022C0, 0x0000030 - -gUnk_081022F0:: @ 081022F0 - .incbin "baserom.gba", 0x1022F0, 0x0000004 - -gUnk_081022F4:: @ 081022F4 - .incbin "baserom.gba", 0x1022F4, 0x0000021 - -gUnk_08102315:: @ 08102315 - .incbin "baserom.gba", 0x102315, 0x000000B - -gUnk_08102320:: @ 08102320 - .incbin "baserom.gba", 0x102320, 0x0000004 - -gUnk_08102324:: @ 08102324 - .incbin "baserom.gba", 0x102324, 0x0000004 - -gUnk_08102328:: @ 08102328 - .incbin "baserom.gba", 0x102328, 0x000003C - -gUnk_08102364:: @ 08102364 - .incbin "baserom.gba", 0x102364, 0x0000004 - -gUnk_08102368:: @ 08102368 - .incbin "baserom.gba", 0x102368, 0x000001C - -gUnk_08102384:: @ 08102384 - .incbin "baserom.gba", 0x102384, 0x0000014 - -gUnk_08102398:: @ 08102398 - .incbin "baserom.gba", 0x102398, 0x0000004 - -gUnk_0810239C:: @ 0810239C - .incbin "baserom.gba", 0x10239C, 0x0000030 - -gUnk_081023CC:: @ 081023CC - .incbin "baserom.gba", 0x1023CC, 0x0000004 - -gUnk_081023D0:: @ 081023D0 - .incbin "baserom.gba", 0x1023D0, 0x0000030 - -gUnk_08102400:: @ 08102400 - .incbin "baserom.gba", 0x102400, 0x0000004 - -gUnk_08102404:: @ 08102404 - .incbin "baserom.gba", 0x102404, 0x0000004 - -gUnk_08102408:: @ 08102408 - .incbin "baserom.gba", 0x102408, 0x000000A - -gUnk_08102412:: @ 08102412 - .incbin "baserom.gba", 0x102412, 0x0000022 - -gUnk_08102434:: @ 08102434 - .incbin "baserom.gba", 0x102434, 0x0000004 - -gUnk_08102438:: @ 08102438 - .incbin "baserom.gba", 0x102438, 0x0000019 - -gUnk_08102451:: @ 08102451 - .incbin "baserom.gba", 0x102451, 0x0000017 - -gUnk_08102468:: @ 08102468 - .incbin "baserom.gba", 0x102468, 0x0000004 - -gUnk_0810246C:: @ 0810246C - .incbin "baserom.gba", 0x10246C, 0x0000048 - -gUnk_081024B4:: @ 081024B4 - .incbin "baserom.gba", 0x1024B4, 0x0000083 - -gUnk_08102537:: @ 08102537 - .incbin "baserom.gba", 0x102537, 0x00000D9 - -gUnk_08102610:: @ 08102610 - .incbin "baserom.gba", 0x102610, 0x000009C - -gUnk_081026AC:: @ 081026AC - .incbin "baserom.gba", 0x1026AC, 0x0000030 - -gUnk_081026DC:: @ 081026DC - .incbin "baserom.gba", 0x1026DC, 0x0000028 - -gUnk_08102704:: @ 08102704 - .incbin "baserom.gba", 0x102704, 0x0000008 - -gUnk_0810270C:: @ 0810270C - .incbin "baserom.gba", 0x10270C, 0x0000004 - -gUnk_08102710:: @ 08102710 - .incbin "baserom.gba", 0x102710, 0x0000023 - -gUnk_08102733:: @ 08102733 - .incbin "baserom.gba", 0x102733, 0x0000009 - -gUnk_0810273C:: @ 0810273C - .incbin "baserom.gba", 0x10273C, 0x000001B - -gUnk_08102757:: @ 08102757 - .incbin "baserom.gba", 0x102757, 0x0000015 - -gUnk_0810276C:: @ 0810276C - .incbin "baserom.gba", 0x10276C, 0x0000030 - -gUnk_0810279C:: @ 0810279C - .incbin "baserom.gba", 0x10279C, 0x0000030 - -gUnk_081027CC:: @ 081027CC - .incbin "baserom.gba", 0x1027CC, 0x0000030 - -gUnk_081027FC:: @ 081027FC - .incbin "baserom.gba", 0x1027FC, 0x0000030 - -gUnk_0810282C:: @ 0810282C - .incbin "baserom.gba", 0x10282C, 0x000000C - -gUnk_08102838:: @ 08102838 - .incbin "baserom.gba", 0x102838, 0x0000012 - -gUnk_0810284A:: @ 0810284A - .incbin "baserom.gba", 0x10284A, 0x0000012 - -gUnk_0810285C:: @ 0810285C - .incbin "baserom.gba", 0x10285C, 0x0000018 - -gUnk_08102874:: @ 08102874 - .incbin "baserom.gba", 0x102874, 0x0000030 - -gUnk_081028A4:: @ 081028A4 - .incbin "baserom.gba", 0x1028A4, 0x0000030 - -gUnk_081028D4:: @ 081028D4 - .incbin "baserom.gba", 0x1028D4, 0x0000030 - -gUnk_08102904:: @ 08102904 - .incbin "baserom.gba", 0x102904, 0x0000012 - -gUnk_08102916:: @ 08102916 - .incbin "baserom.gba", 0x102916, 0x000001E - -gUnk_08102934:: @ 08102934 - .incbin "baserom.gba", 0x102934, 0x0000018 - -gUnk_0810294C:: @ 0810294C - .incbin "baserom.gba", 0x10294C, 0x0000018 - -gUnk_08102964:: @ 08102964 - .incbin "baserom.gba", 0x102964, 0x0000030 - -gUnk_08102994:: @ 08102994 - .incbin "baserom.gba", 0x102994, 0x0000030 - -gUnk_081029C4:: @ 081029C4 - .incbin "baserom.gba", 0x1029C4, 0x0000030 - -gUnk_081029F4:: @ 081029F4 - .incbin "baserom.gba", 0x1029F4, 0x000001C - -gUnk_08102A10:: @ 08102A10 - .incbin "baserom.gba", 0x102A10, 0x0000014 - -gUnk_08102A24:: @ 08102A24 - .incbin "baserom.gba", 0x102A24, 0x0000030 - -gUnk_08102A54:: @ 08102A54 - .incbin "baserom.gba", 0x102A54, 0x0000030 - -gUnk_08102A84:: @ 08102A84 - .incbin "baserom.gba", 0x102A84, 0x0000030 - -gUnk_08102AB4:: @ 08102AB4 - .incbin "baserom.gba", 0x102AB4, 0x0000030 - -gUnk_08102AE4:: @ 08102AE4 - .incbin "baserom.gba", 0x102AE4, 0x000002C - -gUnk_08102B10:: @ 08102B10 - .incbin "baserom.gba", 0x102B10, 0x0000004 - -gUnk_08102B14:: @ 08102B14 - .incbin "baserom.gba", 0x102B14, 0x0000030 - -gUnk_08102B44:: @ 08102B44 - .incbin "baserom.gba", 0x102B44, 0x0000030 - -gUnk_08102B74:: @ 08102B74 - .incbin "baserom.gba", 0x102B74, 0x0000030 - -gUnk_08102BA4:: @ 08102BA4 - .incbin "baserom.gba", 0x102BA4, 0x0000030 - -gUnk_08102BD4:: @ 08102BD4 - .incbin "baserom.gba", 0x102BD4, 0x0000030 - -gUnk_08102C04:: @ 08102C04 - .incbin "baserom.gba", 0x102C04, 0x0000030 - -gUnk_08102C34:: @ 08102C34 - .incbin "baserom.gba", 0x102C34, 0x000000D - -gUnk_08102C41:: @ 08102C41 - .incbin "baserom.gba", 0x102C41, 0x0000023 - -gUnk_08102C64:: @ 08102C64 - .incbin "baserom.gba", 0x102C64, 0x0000030 - -gUnk_08102C94:: @ 08102C94 - .incbin "baserom.gba", 0x102C94, 0x0000030 - -gUnk_08102CC4:: @ 08102CC4 - .incbin "baserom.gba", 0x102CC4, 0x0000030 - -gUnk_08102CF4:: @ 08102CF4 - .incbin "baserom.gba", 0x102CF4, 0x0000030 - -gUnk_08102D24:: @ 08102D24 - .incbin "baserom.gba", 0x102D24, 0x0000030 - -gUnk_08102D54:: @ 08102D54 - .incbin "baserom.gba", 0x102D54, 0x0000030 - -gUnk_08102D84:: @ 08102D84 - .incbin "baserom.gba", 0x102D84, 0x0000030 - -gUnk_08102DB4:: @ 08102DB4 - .incbin "baserom.gba", 0x102DB4, 0x0000030 - -gUnk_08102DE4:: @ 08102DE4 - .incbin "baserom.gba", 0x102DE4, 0x0000030 - -gUnk_08102E14:: @ 08102E14 - .incbin "baserom.gba", 0x102E14, 0x0000030 - -gUnk_08102E44:: @ 08102E44 - .incbin "baserom.gba", 0x102E44, 0x0000030 - -gUnk_08102E74:: @ 08102E74 - .incbin "baserom.gba", 0x102E74, 0x0000030 - -gUnk_08102EA4:: @ 08102EA4 - .incbin "baserom.gba", 0x102EA4, 0x0000030 - -gUnk_08102ED4:: @ 08102ED4 - .incbin "baserom.gba", 0x102ED4, 0x0000018 - -gUnk_08102EEC:: @ 08102EEC - .incbin "baserom.gba", 0x102EEC, 0x0000025 - -gUnk_08102F11:: @ 08102F11 - .incbin "baserom.gba", 0x102F11, 0x000000B - -gUnk_08102F1C:: @ 08102F1C - .incbin "baserom.gba", 0x102F1C, 0x0000030 - -gUnk_08102F4C:: @ 08102F4C - .incbin "baserom.gba", 0x102F4C, 0x0000030 - -gUnk_08102F7C:: @ 08102F7C - .incbin "baserom.gba", 0x102F7C, 0x0000030 - -gUnk_08102FAC:: @ 08102FAC - .incbin "baserom.gba", 0x102FAC, 0x0000030 - -gUnk_08102FDC:: @ 08102FDC - .incbin "baserom.gba", 0x102FDC, 0x0000030 - -gUnk_0810300C:: @ 0810300C - .incbin "baserom.gba", 0x10300C, 0x0000030 - -gUnk_0810303C:: @ 0810303C - .incbin "baserom.gba", 0x10303C, 0x0000030 - -gUnk_0810306C:: @ 0810306C - .incbin "baserom.gba", 0x10306C, 0x0000030 - -gUnk_0810309C:: @ 0810309C - .incbin "baserom.gba", 0x10309C, 0x0000068 - -gUnk_08103104:: @ 08103104 - .incbin "baserom.gba", 0x103104, 0x000000C - -gUnk_08103110:: @ 08103110 - .incbin "baserom.gba", 0x103110, 0x00000E5 - -gUnk_081031F5:: @ 081031F5 - .incbin "baserom.gba", 0x1031F5, 0x00000E7 - -gUnk_081032DC:: @ 081032DC - .incbin "baserom.gba", 0x1032DC, 0x0000018 - -gUnk_081032F4:: @ 081032F4 - .incbin "baserom.gba", 0x1032F4, 0x0000004 - -gUnk_081032F8:: @ 081032F8 - .incbin "baserom.gba", 0x1032F8, 0x0000018 - -gUnk_08103310:: @ 08103310 - .incbin "baserom.gba", 0x103310, 0x0000018 - -gUnk_08103328:: @ 08103328 - .incbin "baserom.gba", 0x103328, 0x0000008 - -gUnk_08103330:: @ 08103330 - .incbin "baserom.gba", 0x103330, 0x0000018 - -gUnk_08103348:: @ 08103348 - .incbin "baserom.gba", 0x103348, 0x0000004 - -gUnk_0810334C:: @ 0810334C - .incbin "baserom.gba", 0x10334C, 0x0000018 - -gUnk_08103364:: @ 08103364 - .incbin "baserom.gba", 0x103364, 0x0000016 - -gUnk_0810337A:: @ 0810337A - .incbin "baserom.gba", 0x10337A, 0x0000002 - -gUnk_0810337C:: @ 0810337C - .incbin "baserom.gba", 0x10337C, 0x0000018 - -gUnk_08103394:: @ 08103394 - .incbin "baserom.gba", 0x103394, 0x0000018 - -gUnk_081033AC:: @ 081033AC - .incbin "baserom.gba", 0x1033AC, 0x0000018 - -gUnk_081033C4:: @ 081033C4 - .incbin "baserom.gba", 0x1033C4, 0x0000018 - -gUnk_081033DC:: @ 081033DC - .incbin "baserom.gba", 0x1033DC, 0x0000018 - -gUnk_081033F4:: @ 081033F4 - .incbin "baserom.gba", 0x1033F4, 0x0000018 - -gUnk_0810340C:: @ 0810340C - .incbin "baserom.gba", 0x10340C, 0x0000004 - -gUnk_08103410:: @ 08103410 - .incbin "baserom.gba", 0x103410, 0x0000018 - -gUnk_08103428:: @ 08103428 - .incbin "baserom.gba", 0x103428, 0x0000004 - -gUnk_0810342C:: @ 0810342C - .incbin "baserom.gba", 0x10342C, 0x0000017 - -gUnk_08103443:: @ 08103443 - .incbin "baserom.gba", 0x103443, 0x0000001 - -gUnk_08103444:: @ 08103444 - .incbin "baserom.gba", 0x103444, 0x0000018 - -gUnk_0810345C:: @ 0810345C - .incbin "baserom.gba", 0x10345C, 0x0000018 - -gUnk_08103474:: @ 08103474 - .incbin "baserom.gba", 0x103474, 0x0000018 - -gUnk_0810348C:: @ 0810348C - .incbin "baserom.gba", 0x10348C, 0x0000018 - -gUnk_081034A4:: @ 081034A4 - .incbin "baserom.gba", 0x1034A4, 0x0000014 - -gUnk_081034B8:: @ 081034B8 - .incbin "baserom.gba", 0x1034B8, 0x0000018 - -gUnk_081034D0:: @ 081034D0 - .incbin "baserom.gba", 0x1034D0, 0x000003C - -gUnk_0810350C:: @ 0810350C - .incbin "baserom.gba", 0x10350C, 0x0000018 - -gUnk_08103524:: @ 08103524 - .incbin "baserom.gba", 0x103524, 0x0000031 - -gUnk_08103555:: @ 08103555 - .incbin "baserom.gba", 0x103555, 0x000000B - -gUnk_08103560:: @ 08103560 - .incbin "baserom.gba", 0x103560, 0x000003C - -gUnk_0810359C:: @ 0810359C - .incbin "baserom.gba", 0x10359C, 0x000003C - -gUnk_081035D8:: @ 081035D8 - .incbin "baserom.gba", 0x1035D8, 0x000003C - -gUnk_08103614:: @ 08103614 - .incbin "baserom.gba", 0x103614, 0x000003C - -gUnk_08103650:: @ 08103650 - .incbin "baserom.gba", 0x103650, 0x0000018 - -gUnk_08103668:: @ 08103668 - .incbin "baserom.gba", 0x103668, 0x0000018 - -gUnk_08103680:: @ 08103680 - .incbin "baserom.gba", 0x103680, 0x0000028 - -gUnk_081036A8:: @ 081036A8 - .incbin "baserom.gba", 0x1036A8, 0x0000018 - -gUnk_081036C0:: @ 081036C0 - .incbin "baserom.gba", 0x1036C0, 0x0000004 - -gUnk_081036C4:: @ 081036C4 - .incbin "baserom.gba", 0x1036C4, 0x0000018 - -gUnk_081036DC:: @ 081036DC - .incbin "baserom.gba", 0x1036DC, 0x0000018 - -gUnk_081036F4:: @ 081036F4 - .incbin "baserom.gba", 0x1036F4, 0x0000018 - -gUnk_0810370C:: @ 0810370C - .incbin "baserom.gba", 0x10370C, 0x000000C - -gUnk_08103718:: @ 08103718 - .incbin "baserom.gba", 0x103718, 0x0000018 - -gUnk_08103730:: @ 08103730 - .incbin "baserom.gba", 0x103730, 0x0000003 - -gUnk_08103733:: @ 08103733 - .incbin "baserom.gba", 0x103733, 0x0000015 - -gUnk_08103748:: @ 08103748 - .incbin "baserom.gba", 0x103748, 0x0000008 - -gUnk_08103750:: @ 08103750 - .incbin "baserom.gba", 0x103750, 0x0000015 - -gUnk_08103765:: @ 08103765 - .incbin "baserom.gba", 0x103765, 0x0000003 - -gUnk_08103768:: @ 08103768 - .incbin "baserom.gba", 0x103768, 0x0000004 - -gUnk_0810376C:: @ 0810376C - .incbin "baserom.gba", 0x10376C, 0x0000018 - -gUnk_08103784:: @ 08103784 - .incbin "baserom.gba", 0x103784, 0x0000004 - -gUnk_08103788:: @ 08103788 - .incbin "baserom.gba", 0x103788, 0x000000C - -gUnk_08103794:: @ 08103794 - .incbin "baserom.gba", 0x103794, 0x000000C - -gUnk_081037A0:: @ 081037A0 - .incbin "baserom.gba", 0x1037A0, 0x000000C - -gUnk_081037AC:: @ 081037AC - .incbin "baserom.gba", 0x1037AC, 0x000000C - -gUnk_081037B8:: @ 081037B8 - .incbin "baserom.gba", 0x1037B8, 0x000000C - -gUnk_081037C4:: @ 081037C4 - .incbin "baserom.gba", 0x1037C4, 0x0000018 - -gUnk_081037DC:: @ 081037DC - .incbin "baserom.gba", 0x1037DC, 0x0000080 - -gUnk_0810385C:: @ 0810385C - .incbin "baserom.gba", 0x10385C, 0x0000018 - -gUnk_08103874:: @ 08103874 - .incbin "baserom.gba", 0x103874, 0x0000018 - -gUnk_0810388C:: @ 0810388C - .incbin "baserom.gba", 0x10388C, 0x0000018 - -gUnk_081038A4:: @ 081038A4 - .incbin "baserom.gba", 0x1038A4, 0x0000018 - -gUnk_081038BC:: @ 081038BC - .incbin "baserom.gba", 0x1038BC, 0x0000018 - -gUnk_081038D4:: @ 081038D4 - .incbin "baserom.gba", 0x1038D4, 0x0000018 - -gUnk_081038EC:: @ 081038EC - .incbin "baserom.gba", 0x1038EC, 0x0000018 - -gUnk_08103904:: @ 08103904 - .incbin "baserom.gba", 0x103904, 0x000000C - -gUnk_08103910:: @ 08103910 - .incbin "baserom.gba", 0x103910, 0x000000C - -gUnk_0810391C:: @ 0810391C - .incbin "baserom.gba", 0x10391C, 0x0000018 - -gUnk_08103934:: @ 08103934 - .incbin "baserom.gba", 0x103934, 0x0000018 - -gUnk_0810394C:: @ 0810394C - .incbin "baserom.gba", 0x10394C, 0x0000018 - -gUnk_08103964:: @ 08103964 - .incbin "baserom.gba", 0x103964, 0x0000018 - -gUnk_0810397C:: @ 0810397C - .incbin "baserom.gba", 0x10397C, 0x0000018 - -gUnk_08103994:: @ 08103994 - .incbin "baserom.gba", 0x103994, 0x0000018 - -gUnk_081039AC:: @ 081039AC - .incbin "baserom.gba", 0x1039AC, 0x0000018 - -gUnk_081039C4:: @ 081039C4 - .incbin "baserom.gba", 0x1039C4, 0x0000018 - -gUnk_081039DC:: @ 081039DC - .incbin "baserom.gba", 0x1039DC, 0x0000018 - -gUnk_081039F4:: @ 081039F4 - .incbin "baserom.gba", 0x1039F4, 0x000000C - -gUnk_08103A00:: @ 08103A00 - .incbin "baserom.gba", 0x103A00, 0x0000010 - -gUnk_08103A10:: @ 08103A10 - .incbin "baserom.gba", 0x103A10, 0x0000028 - -gUnk_08103A38:: @ 08103A38 - .incbin "baserom.gba", 0x103A38, 0x0000018 - -gUnk_08103A50:: @ 08103A50 - .incbin "baserom.gba", 0x103A50, 0x0000018 - -gUnk_08103A68:: @ 08103A68 - .incbin "baserom.gba", 0x103A68, 0x0000018 - -gUnk_08103A80:: @ 08103A80 - .incbin "baserom.gba", 0x103A80, 0x0000020 - -gUnk_08103AA0:: @ 08103AA0 - .incbin "baserom.gba", 0x103AA0, 0x0000018 - -gUnk_08103AB8:: @ 08103AB8 - .incbin "baserom.gba", 0x103AB8, 0x0000004 - -gUnk_08103ABC:: @ 08103ABC - .incbin "baserom.gba", 0x103ABC, 0x0000018 - -gUnk_08103AD4:: @ 08103AD4 - .incbin "baserom.gba", 0x103AD4, 0x0000004 - -gUnk_08103AD8:: @ 08103AD8 - .incbin "baserom.gba", 0x103AD8, 0x0000018 - -gUnk_08103AF0:: @ 08103AF0 - .incbin "baserom.gba", 0x103AF0, 0x0000018 - -gUnk_08103B08:: @ 08103B08 - .incbin "baserom.gba", 0x103B08, 0x0000008 - -gUnk_08103B10:: @ 08103B10 - .incbin "baserom.gba", 0x103B10, 0x0000008 - -gUnk_08103B18:: @ 08103B18 - .incbin "baserom.gba", 0x103B18, 0x0000018 - -gUnk_08103B30:: @ 08103B30 - .incbin "baserom.gba", 0x103B30, 0x0000004 - -gUnk_08103B34:: @ 08103B34 - .incbin "baserom.gba", 0x103B34, 0x0000018 - -gUnk_08103B4C:: @ 08103B4C - .incbin "baserom.gba", 0x103B4C, 0x0000004 - -gUnk_08103B50:: @ 08103B50 - .incbin "baserom.gba", 0x103B50, 0x0000018 - -gUnk_08103B68:: @ 08103B68 - .incbin "baserom.gba", 0x103B68, 0x0000004 - -gUnk_08103B6C:: @ 08103B6C - .incbin "baserom.gba", 0x103B6C, 0x0000018 - -gUnk_08103B84:: @ 08103B84 - .incbin "baserom.gba", 0x103B84, 0x0000018 - -gUnk_08103B9C:: @ 08103B9C - .incbin "baserom.gba", 0x103B9C, 0x0000018 - -gUnk_08103BB4:: @ 08103BB4 - .incbin "baserom.gba", 0x103BB4, 0x0000018 - -gUnk_08103BCC:: @ 08103BCC - .incbin "baserom.gba", 0x103BCC, 0x0000018 - -gUnk_08103BE4:: @ 08103BE4 - .incbin "baserom.gba", 0x103BE4, 0x0000014 - -gUnk_08103BF8:: @ 08103BF8 - .incbin "baserom.gba", 0x103BF8, 0x0000009 - -gUnk_08103C01:: @ 08103C01 - .incbin "baserom.gba", 0x103C01, 0x000000F - -gUnk_08103C10:: @ 08103C10 - .incbin "baserom.gba", 0x103C10, 0x0000018 - -gUnk_08103C28:: @ 08103C28 - .incbin "baserom.gba", 0x103C28, 0x0000008 - -gUnk_08103C30:: @ 08103C30 - .incbin "baserom.gba", 0x103C30, 0x0000018 - -gUnk_08103C48:: @ 08103C48 - .incbin "baserom.gba", 0x103C48, 0x0000008 - -gUnk_08103C50:: @ 08103C50 - .incbin "baserom.gba", 0x103C50, 0x0000018 - -gUnk_08103C68:: @ 08103C68 - .incbin "baserom.gba", 0x103C68, 0x0000018 - -gUnk_08103C80:: @ 08103C80 - .incbin "baserom.gba", 0x103C80, 0x0000008 - -gUnk_08103C88:: @ 08103C88 - .incbin "baserom.gba", 0x103C88, 0x0000018 - -gUnk_08103CA0:: @ 08103CA0 - .incbin "baserom.gba", 0x103CA0, 0x0000004 - -gUnk_08103CA4:: @ 08103CA4 - .incbin "baserom.gba", 0x103CA4, 0x000000C - -gUnk_08103CB0:: @ 08103CB0 - .incbin "baserom.gba", 0x103CB0, 0x000000C - -gUnk_08103CBC:: @ 08103CBC - .incbin "baserom.gba", 0x103CBC, 0x000000C - -gUnk_08103CC8:: @ 08103CC8 - .incbin "baserom.gba", 0x103CC8, 0x000000C - -gUnk_08103CD4:: @ 08103CD4 - .incbin "baserom.gba", 0x103CD4, 0x000000C - -gUnk_08103CE0:: @ 08103CE0 - .incbin "baserom.gba", 0x103CE0, 0x0000014 - -gUnk_08103CF4:: @ 08103CF4 - .incbin "baserom.gba", 0x103CF4, 0x000000C - -gUnk_08103D00:: @ 08103D00 - .incbin "baserom.gba", 0x103D00, 0x000000C - -gUnk_08103D0C:: @ 08103D0C - .incbin "baserom.gba", 0x103D0C, 0x000000C - -gUnk_08103D18:: @ 08103D18 - .incbin "baserom.gba", 0x103D18, 0x000000C - -gUnk_08103D24:: @ 08103D24 - .incbin "baserom.gba", 0x103D24, 0x0000010 - -gUnk_08103D34:: @ 08103D34 - .incbin "baserom.gba", 0x103D34, 0x0000024 - -gUnk_08103D58:: @ 08103D58 - .incbin "baserom.gba", 0x103D58, 0x0000024 - -gUnk_08103D7C:: @ 08103D7C - .incbin "baserom.gba", 0x103D7C, 0x0000024 - -gUnk_08103DA0:: @ 08103DA0 - .incbin "baserom.gba", 0x103DA0, 0x0000024 - -gUnk_08103DC4:: @ 08103DC4 - .incbin "baserom.gba", 0x103DC4, 0x0000024 - -gUnk_08103DE8:: @ 08103DE8 - .incbin "baserom.gba", 0x103DE8, 0x0000024 - -gUnk_08103E0C:: @ 08103E0C - .incbin "baserom.gba", 0x103E0C, 0x0000024 - -gUnk_08103E30:: @ 08103E30 - .incbin "baserom.gba", 0x103E30, 0x0000024 - -gUnk_08103E54:: @ 08103E54 - .incbin "baserom.gba", 0x103E54, 0x0000024 - -gUnk_08103E78:: @ 08103E78 - .incbin "baserom.gba", 0x103E78, 0x0000024 - -gUnk_08103E9C:: @ 08103E9C - .incbin "baserom.gba", 0x103E9C, 0x0000024 - -gUnk_08103EC0:: @ 08103EC0 - .incbin "baserom.gba", 0x103EC0, 0x0000024 - -gUnk_08103EE4:: @ 08103EE4 - .incbin "baserom.gba", 0x103EE4, 0x0000024 - -gUnk_08103F08:: @ 08103F08 - .incbin "baserom.gba", 0x103F08, 0x0000024 - -gUnk_08103F2C:: @ 08103F2C - .incbin "baserom.gba", 0x103F2C, 0x0000024 - -gUnk_08103F50:: @ 08103F50 - .incbin "baserom.gba", 0x103F50, 0x0000024 - -gUnk_08103F74:: @ 08103F74 - .incbin "baserom.gba", 0x103F74, 0x0000024 - -gUnk_08103F98:: @ 08103F98 - .incbin "baserom.gba", 0x103F98, 0x0000024 - -gUnk_08103FBC:: @ 08103FBC - .incbin "baserom.gba", 0x103FBC, 0x0000024 - -gUnk_08103FE0:: @ 08103FE0 - .incbin "baserom.gba", 0x103FE0, 0x0000024 - -gUnk_08104004:: @ 08104004 - .incbin "baserom.gba", 0x104004, 0x000001C - -gUnk_08104020:: @ 08104020 - .incbin "baserom.gba", 0x104020, 0x0000008 - -gUnk_08104028:: @ 08104028 - .incbin "baserom.gba", 0x104028, 0x00000A0 - -gUnk_081040C8:: @ 081040C8 - .incbin "baserom.gba", 0x1040C8, 0x0000024 - -gUnk_081040EC:: @ 081040EC - .incbin "baserom.gba", 0x1040EC, 0x0000024 - -gUnk_08104110:: @ 08104110 - .incbin "baserom.gba", 0x104110, 0x0000024 - -gUnk_08104134:: @ 08104134 - .incbin "baserom.gba", 0x104134, 0x0000024 - -gUnk_08104158:: @ 08104158 - .incbin "baserom.gba", 0x104158, 0x0000024 - -gUnk_0810417C:: @ 0810417C - .incbin "baserom.gba", 0x10417C, 0x0000024 - -gUnk_081041A0:: @ 081041A0 - .incbin "baserom.gba", 0x1041A0, 0x0000024 - -gUnk_081041C4:: @ 081041C4 - .incbin "baserom.gba", 0x1041C4, 0x0000024 - -gUnk_081041E8:: @ 081041E8 - .incbin "baserom.gba", 0x1041E8, 0x0000018 - -gUnk_08104200:: @ 08104200 - .incbin "baserom.gba", 0x104200, 0x000000C - -gUnk_0810420C:: @ 0810420C - .incbin "baserom.gba", 0x10420C, 0x0000004 - -gUnk_08104210:: @ 08104210 - .incbin "baserom.gba", 0x104210, 0x00000BC - -gUnk_081042CC:: @ 081042CC - .incbin "baserom.gba", 0x1042CC, 0x0000018 - -gUnk_081042E4:: @ 081042E4 - .incbin "baserom.gba", 0x1042E4, 0x0000018 - -gUnk_081042FC:: @ 081042FC - .incbin "baserom.gba", 0x1042FC, 0x0000014 - -gUnk_08104310:: @ 08104310 - .incbin "baserom.gba", 0x104310, 0x0000004 - -gUnk_08104314:: @ 08104314 - .incbin "baserom.gba", 0x104314, 0x000000D - -gUnk_08104321:: @ 08104321 - .incbin "baserom.gba", 0x104321, 0x000000B - -gUnk_0810432C:: @ 0810432C - .incbin "baserom.gba", 0x10432C, 0x0000018 - -gUnk_08104344:: @ 08104344 - .incbin "baserom.gba", 0x104344, 0x0000018 - -gUnk_0810435C:: @ 0810435C - .incbin "baserom.gba", 0x10435C, 0x0000018 - -gUnk_08104374:: @ 08104374 - .incbin "baserom.gba", 0x104374, 0x0000018 - -gUnk_0810438C:: @ 0810438C - .incbin "baserom.gba", 0x10438C, 0x0000018 - -gUnk_081043A4:: @ 081043A4 - .incbin "baserom.gba", 0x1043A4, 0x0000018 - -gUnk_081043BC:: @ 081043BC - .incbin "baserom.gba", 0x1043BC, 0x0000018 - -gUnk_081043D4:: @ 081043D4 - .incbin "baserom.gba", 0x1043D4, 0x0000018 - -gUnk_081043EC:: @ 081043EC - .incbin "baserom.gba", 0x1043EC, 0x0000018 - -gUnk_08104404:: @ 08104404 - .incbin "baserom.gba", 0x104404, 0x0000040 - -gUnk_08104444:: @ 08104444 - .incbin "baserom.gba", 0x104444, 0x0000018 - -gUnk_0810445C:: @ 0810445C - .incbin "baserom.gba", 0x10445C, 0x0000018 - -gUnk_08104474:: @ 08104474 - .incbin "baserom.gba", 0x104474, 0x0000018 - -gUnk_0810448C:: @ 0810448C - .incbin "baserom.gba", 0x10448C, 0x0000018 - -gUnk_081044A4:: @ 081044A4 - .incbin "baserom.gba", 0x1044A4, 0x0000018 - -gUnk_081044BC:: @ 081044BC - .incbin "baserom.gba", 0x1044BC, 0x0000018 - -gUnk_081044D4:: @ 081044D4 - .incbin "baserom.gba", 0x1044D4, 0x0000018 - -gUnk_081044EC:: @ 081044EC - .incbin "baserom.gba", 0x1044EC, 0x0000018 - -gUnk_08104504:: @ 08104504 - .incbin "baserom.gba", 0x104504, 0x0000018 - -gUnk_0810451C:: @ 0810451C - .incbin "baserom.gba", 0x10451C, 0x0000018 - -gUnk_08104534:: @ 08104534 - .incbin "baserom.gba", 0x104534, 0x0000018 - -gUnk_0810454C:: @ 0810454C - .incbin "baserom.gba", 0x10454C, 0x0000018 - -gUnk_08104564:: @ 08104564 - .incbin "baserom.gba", 0x104564, 0x0000018 - -gUnk_0810457C:: @ 0810457C - .incbin "baserom.gba", 0x10457C, 0x0000018 - -gUnk_08104594:: @ 08104594 - .incbin "baserom.gba", 0x104594, 0x0000018 - -gUnk_081045AC:: @ 081045AC - .incbin "baserom.gba", 0x1045AC, 0x0000018 - -gUnk_081045C4:: @ 081045C4 - .incbin "baserom.gba", 0x1045C4, 0x0000018 - -gUnk_081045DC:: @ 081045DC - .incbin "baserom.gba", 0x1045DC, 0x0000018 - -gUnk_081045F4:: @ 081045F4 - .incbin "baserom.gba", 0x1045F4, 0x0000018 - -gUnk_0810460C:: @ 0810460C - .incbin "baserom.gba", 0x10460C, 0x00000C0 - -gUnk_081046CC:: @ 081046CC - .incbin "baserom.gba", 0x1046CC, 0x0000018 - -gUnk_081046E4:: @ 081046E4 - .incbin "baserom.gba", 0x1046E4, 0x0000018 - -gUnk_081046FC:: @ 081046FC - .incbin "baserom.gba", 0x1046FC, 0x0000018 - -gUnk_08104714:: @ 08104714 - .incbin "baserom.gba", 0x104714, 0x0000018 - -gUnk_0810472C:: @ 0810472C - .incbin "baserom.gba", 0x10472C, 0x0000018 - -gUnk_08104744:: @ 08104744 - .incbin "baserom.gba", 0x104744, 0x0000018 - -gUnk_0810475C:: @ 0810475C - .incbin "baserom.gba", 0x10475C, 0x0000040 - -gUnk_0810479C:: @ 0810479C - .incbin "baserom.gba", 0x10479C, 0x0000018 - -gUnk_081047B4:: @ 081047B4 - .incbin "baserom.gba", 0x1047B4, 0x0000018 - -gUnk_081047CC:: @ 081047CC - .incbin "baserom.gba", 0x1047CC, 0x0000018 - -gUnk_081047E4:: @ 081047E4 - .incbin "baserom.gba", 0x1047E4, 0x0000018 - -gUnk_081047FC:: @ 081047FC - .incbin "baserom.gba", 0x1047FC, 0x0000018 - -gUnk_08104814:: @ 08104814 - .incbin "baserom.gba", 0x104814, 0x0000018 - -gUnk_0810482C:: @ 0810482C - .incbin "baserom.gba", 0x10482C, 0x0000018 - -gUnk_08104844:: @ 08104844 - .incbin "baserom.gba", 0x104844, 0x0000018 - -gUnk_0810485C:: @ 0810485C - .incbin "baserom.gba", 0x10485C, 0x0000018 - -gUnk_08104874:: @ 08104874 - .incbin "baserom.gba", 0x104874, 0x0000024 - -gUnk_08104898:: @ 08104898 - .incbin "baserom.gba", 0x104898, 0x0000018 - -gUnk_081048B0:: @ 081048B0 - .incbin "baserom.gba", 0x1048B0, 0x0000018 - -gUnk_081048C8:: @ 081048C8 - .incbin "baserom.gba", 0x1048C8, 0x0000018 - -gUnk_081048E0:: @ 081048E0 - .incbin "baserom.gba", 0x1048E0, 0x0000018 - -gUnk_081048F8:: @ 081048F8 - .incbin "baserom.gba", 0x1048F8, 0x0000018 - -gUnk_08104910:: @ 08104910 - .incbin "baserom.gba", 0x104910, 0x0000018 - -gUnk_08104928:: @ 08104928 - .incbin "baserom.gba", 0x104928, 0x000000A - -gUnk_08104932:: @ 08104932 - .incbin "baserom.gba", 0x104932, 0x000000E - -gUnk_08104940:: @ 08104940 - .incbin "baserom.gba", 0x104940, 0x0000018 - -gUnk_08104958:: @ 08104958 - .incbin "baserom.gba", 0x104958, 0x0000018 - -gUnk_08104970:: @ 08104970 - .incbin "baserom.gba", 0x104970, 0x0000018 - -gUnk_08104988:: @ 08104988 - .incbin "baserom.gba", 0x104988, 0x0000018 - -gUnk_081049A0:: @ 081049A0 - .incbin "baserom.gba", 0x1049A0, 0x0000018 - -gUnk_081049B8:: @ 081049B8 - .incbin "baserom.gba", 0x1049B8, 0x0000018 - -gUnk_081049D0:: @ 081049D0 - .incbin "baserom.gba", 0x1049D0, 0x0000018 - -gUnk_081049E8:: @ 081049E8 - .incbin "baserom.gba", 0x1049E8, 0x0000018 - -gUnk_08104A00:: @ 08104A00 - .incbin "baserom.gba", 0x104A00, 0x0000010 - -gUnk_08104A10:: @ 08104A10 - .incbin "baserom.gba", 0x104A10, 0x0000008 - -gUnk_08104A18:: @ 08104A18 - .incbin "baserom.gba", 0x104A18, 0x000000D - -gUnk_08104A25:: @ 08104A25 - .incbin "baserom.gba", 0x104A25, 0x000000B - -gUnk_08104A30:: @ 08104A30 - .incbin "baserom.gba", 0x104A30, 0x0000080 - -gUnk_08104AB0:: @ 08104AB0 - .incbin "baserom.gba", 0x104AB0, 0x0000018 - -gUnk_08104AC8:: @ 08104AC8 - .incbin "baserom.gba", 0x104AC8, 0x0000018 - -gUnk_08104AE0:: @ 08104AE0 - .incbin "baserom.gba", 0x104AE0, 0x0000018 - -gUnk_08104AF8:: @ 08104AF8 - .incbin "baserom.gba", 0x104AF8, 0x000000B - -gUnk_08104B03:: @ 08104B03 - .incbin "baserom.gba", 0x104B03, 0x000000D - -gUnk_08104B10:: @ 08104B10 - .incbin "baserom.gba", 0x104B10, 0x0000018 - -gUnk_08104B28:: @ 08104B28 - .incbin "baserom.gba", 0x104B28, 0x0000018 - -gUnk_08104B40:: @ 08104B40 - .incbin "baserom.gba", 0x104B40, 0x0000018 - -gUnk_08104B58:: @ 08104B58 - .incbin "baserom.gba", 0x104B58, 0x0000018 - -gUnk_08104B70:: @ 08104B70 - .incbin "baserom.gba", 0x104B70, 0x0000018 - -gUnk_08104B88:: @ 08104B88 - .incbin "baserom.gba", 0x104B88, 0x0000018 - -gUnk_08104BA0:: @ 08104BA0 - .incbin "baserom.gba", 0x104BA0, 0x0000018 - -gUnk_08104BB8:: @ 08104BB8 - .incbin "baserom.gba", 0x104BB8, 0x0000018 - -gUnk_08104BD0:: @ 08104BD0 - .incbin "baserom.gba", 0x104BD0, 0x0000018 - -gUnk_08104BE8:: @ 08104BE8 - .incbin "baserom.gba", 0x104BE8, 0x0000018 - -gUnk_08104C00:: @ 08104C00 - .incbin "baserom.gba", 0x104C00, 0x0000040 - -gUnk_08104C40:: @ 08104C40 - .incbin "baserom.gba", 0x104C40, 0x0000018 - -gUnk_08104C58:: @ 08104C58 - .incbin "baserom.gba", 0x104C58, 0x0000018 - -gUnk_08104C70:: @ 08104C70 - .incbin "baserom.gba", 0x104C70, 0x0000018 - -gUnk_08104C88:: @ 08104C88 - .incbin "baserom.gba", 0x104C88, 0x0000018 - -gUnk_08104CA0:: @ 08104CA0 - .incbin "baserom.gba", 0x104CA0, 0x0000018 - -gUnk_08104CB8:: @ 08104CB8 - .incbin "baserom.gba", 0x104CB8, 0x0000018 - -gUnk_08104CD0:: @ 08104CD0 - .incbin "baserom.gba", 0x104CD0, 0x0000018 - -gUnk_08104CE8:: @ 08104CE8 - .incbin "baserom.gba", 0x104CE8, 0x0000018 - -gUnk_08104D00:: @ 08104D00 - .incbin "baserom.gba", 0x104D00, 0x0000018 - -gUnk_08104D18:: @ 08104D18 - .incbin "baserom.gba", 0x104D18, 0x0000018 - -gUnk_08104D30:: @ 08104D30 - .incbin "baserom.gba", 0x104D30, 0x0000018 - -gUnk_08104D48:: @ 08104D48 - .incbin "baserom.gba", 0x104D48, 0x0000018 - -gUnk_08104D60:: @ 08104D60 - .incbin "baserom.gba", 0x104D60, 0x0000018 - -gUnk_08104D78:: @ 08104D78 - .incbin "baserom.gba", 0x104D78, 0x0000018 - -gUnk_08104D90:: @ 08104D90 - .incbin "baserom.gba", 0x104D90, 0x0000018 - -gUnk_08104DA8:: @ 08104DA8 - .incbin "baserom.gba", 0x104DA8, 0x0000018 - -gUnk_08104DC0:: @ 08104DC0 - .incbin "baserom.gba", 0x104DC0, 0x0000018 - -gUnk_08104DD8:: @ 08104DD8 - .incbin "baserom.gba", 0x104DD8, 0x0000018 - -gUnk_08104DF0:: @ 08104DF0 - .incbin "baserom.gba", 0x104DF0, 0x0000048 - -gUnk_08104E38:: @ 08104E38 - .incbin "baserom.gba", 0x104E38, 0x0000018 - -gUnk_08104E50:: @ 08104E50 - .incbin "baserom.gba", 0x104E50, 0x0000018 - -gUnk_08104E68:: @ 08104E68 - .incbin "baserom.gba", 0x104E68, 0x0000018 - -gUnk_08104E80:: @ 08104E80 - .incbin "baserom.gba", 0x104E80, 0x0000018 - -gUnk_08104E98:: @ 08104E98 - .incbin "baserom.gba", 0x104E98, 0x0000018 - -gUnk_08104EB0:: @ 08104EB0 - .incbin "baserom.gba", 0x104EB0, 0x0000018 - -gUnk_08104EC8:: @ 08104EC8 - .incbin "baserom.gba", 0x104EC8, 0x0000018 - -gUnk_08104EE0:: @ 08104EE0 - .incbin "baserom.gba", 0x104EE0, 0x0000018 - -gUnk_08104EF8:: @ 08104EF8 - .incbin "baserom.gba", 0x104EF8, 0x0000018 - -gUnk_08104F10:: @ 08104F10 - .incbin "baserom.gba", 0x104F10, 0x0000018 - -gUnk_08104F28:: @ 08104F28 - .incbin "baserom.gba", 0x104F28, 0x0000018 - -gUnk_08104F40:: @ 08104F40 - .incbin "baserom.gba", 0x104F40, 0x000002C - -gUnk_08104F6C:: @ 08104F6C - .incbin "baserom.gba", 0x104F6C, 0x000000C - -gUnk_08104F78:: @ 08104F78 - .incbin "baserom.gba", 0x104F78, 0x000000C - -gUnk_08104F84:: @ 08104F84 - .incbin "baserom.gba", 0x104F84, 0x000000C - -gUnk_08104F90:: @ 08104F90 - .incbin "baserom.gba", 0x104F90, 0x000000C - -gUnk_08104F9C:: @ 08104F9C - .incbin "baserom.gba", 0x104F9C, 0x0000010 - -gUnk_08104FAC:: @ 08104FAC - .incbin "baserom.gba", 0x104FAC, 0x0000018 - -gUnk_08104FC4:: @ 08104FC4 - .incbin "baserom.gba", 0x104FC4, 0x0000018 - -gUnk_08104FDC:: @ 08104FDC - .incbin "baserom.gba", 0x104FDC, 0x0000008 - -gUnk_08104FE4:: @ 08104FE4 - .incbin "baserom.gba", 0x104FE4, 0x0000018 - -gUnk_08104FFC:: @ 08104FFC - .incbin "baserom.gba", 0x104FFC, 0x0000018 - -gUnk_08105014:: @ 08105014 - .incbin "baserom.gba", 0x105014, 0x0000018 - -gUnk_0810502C:: @ 0810502C - .incbin "baserom.gba", 0x10502C, 0x0000018 - -gUnk_08105044:: @ 08105044 - .incbin "baserom.gba", 0x105044, 0x0000010 - -gUnk_08105054:: @ 08105054 - .incbin "baserom.gba", 0x105054, 0x0000018 - -gUnk_0810506C:: @ 0810506C - .incbin "baserom.gba", 0x10506C, 0x0000004 - -gUnk_08105070:: @ 08105070 - .incbin "baserom.gba", 0x105070, 0x0000018 - -gUnk_08105088:: @ 08105088 - .incbin "baserom.gba", 0x105088, 0x0000018 - -gUnk_081050A0:: @ 081050A0 - .incbin "baserom.gba", 0x1050A0, 0x0000018 - -gUnk_081050B8:: @ 081050B8 - .incbin "baserom.gba", 0x1050B8, 0x0000018 - -gUnk_081050D0:: @ 081050D0 - .incbin "baserom.gba", 0x1050D0, 0x0000018 - -gUnk_081050E8:: @ 081050E8 - .incbin "baserom.gba", 0x1050E8, 0x0000018 - -gUnk_08105100:: @ 08105100 - .incbin "baserom.gba", 0x105100, 0x0000018 - -gUnk_08105118:: @ 08105118 - .incbin "baserom.gba", 0x105118, 0x0000018 - -gUnk_08105130:: @ 08105130 - .incbin "baserom.gba", 0x105130, 0x0000010 - -gUnk_08105140:: @ 08105140 - .incbin "baserom.gba", 0x105140, 0x0000008 - -gUnk_08105148:: @ 08105148 - .incbin "baserom.gba", 0x105148, 0x0000018 - -gUnk_08105160:: @ 08105160 - .incbin "baserom.gba", 0x105160, 0x0000028 - -gUnk_08105188:: @ 08105188 - .incbin "baserom.gba", 0x105188, 0x0000018 - -gUnk_081051A0:: @ 081051A0 - .incbin "baserom.gba", 0x1051A0, 0x0000018 - -gUnk_081051B8:: @ 081051B8 - .incbin "baserom.gba", 0x1051B8, 0x0000008 - -gUnk_081051C0:: @ 081051C0 - .incbin "baserom.gba", 0x1051C0, 0x0000018 - -gUnk_081051D8:: @ 081051D8 - .incbin "baserom.gba", 0x1051D8, 0x0000018 - -gUnk_081051F0:: @ 081051F0 - .incbin "baserom.gba", 0x1051F0, 0x0000008 - -gUnk_081051F8:: @ 081051F8 - .incbin "baserom.gba", 0x1051F8, 0x000000E - -gUnk_08105206:: @ 08105206 - .incbin "baserom.gba", 0x105206, 0x000000A - -gUnk_08105210:: @ 08105210 - .incbin "baserom.gba", 0x105210, 0x0000004 - -gUnk_08105214:: @ 08105214 - .incbin "baserom.gba", 0x105214, 0x0000018 - -gUnk_0810522C:: @ 0810522C - .incbin "baserom.gba", 0x10522C, 0x0000018 - -gUnk_08105244:: @ 08105244 - .incbin "baserom.gba", 0x105244, 0x0000008 - -gUnk_0810524C:: @ 0810524C - .incbin "baserom.gba", 0x10524C, 0x0000018 - -gUnk_08105264:: @ 08105264 - .incbin "baserom.gba", 0x105264, 0x0000018 - -gUnk_0810527C:: @ 0810527C - .incbin "baserom.gba", 0x10527C, 0x0000008 - -gUnk_08105284:: @ 08105284 - .incbin "baserom.gba", 0x105284, 0x0000018 - -gUnk_0810529C:: @ 0810529C - .incbin "baserom.gba", 0x10529C, 0x0000018 - -gUnk_081052B4:: @ 081052B4 - .incbin "baserom.gba", 0x1052B4, 0x0000008 - -gUnk_081052BC:: @ 081052BC - .incbin "baserom.gba", 0x1052BC, 0x0000018 - -gUnk_081052D4:: @ 081052D4 - .incbin "baserom.gba", 0x1052D4, 0x0000004 - -gUnk_081052D8:: @ 081052D8 - .incbin "baserom.gba", 0x1052D8, 0x0000018 - -gUnk_081052F0:: @ 081052F0 - .incbin "baserom.gba", 0x1052F0, 0x0000018 - -gUnk_08105308:: @ 08105308 - .incbin "baserom.gba", 0x105308, 0x0000018 - -gUnk_08105320:: @ 08105320 - .incbin "baserom.gba", 0x105320, 0x0000018 - -gUnk_08105338:: @ 08105338 - .incbin "baserom.gba", 0x105338, 0x0000018 - -gUnk_08105350:: @ 08105350 - .incbin "baserom.gba", 0x105350, 0x0000018 - -gUnk_08105368:: @ 08105368 - .incbin "baserom.gba", 0x105368, 0x0000018 - -gUnk_08105380:: @ 08105380 - .incbin "baserom.gba", 0x105380, 0x0000018 - -gUnk_08105398:: @ 08105398 - .incbin "baserom.gba", 0x105398, 0x0000018 - -gUnk_081053B0:: @ 081053B0 - .incbin "baserom.gba", 0x1053B0, 0x0000024 - -gUnk_081053D4:: @ 081053D4 - .incbin "baserom.gba", 0x1053D4, 0x0000018 - -gUnk_081053EC:: @ 081053EC - .incbin "baserom.gba", 0x1053EC, 0x0000018 - -gUnk_08105404:: @ 08105404 - .incbin "baserom.gba", 0x105404, 0x0000018 - -gUnk_0810541C:: @ 0810541C - .incbin "baserom.gba", 0x10541C, 0x0000018 - -gUnk_08105434:: @ 08105434 - .incbin "baserom.gba", 0x105434, 0x0000018 - -gUnk_0810544C:: @ 0810544C - .incbin "baserom.gba", 0x10544C, 0x0000018 - -gUnk_08105464:: @ 08105464 - .incbin "baserom.gba", 0x105464, 0x0000018 - -gUnk_0810547C:: @ 0810547C - .incbin "baserom.gba", 0x10547C, 0x0000018 - -gUnk_08105494:: @ 08105494 - .incbin "baserom.gba", 0x105494, 0x0000018 - -gUnk_081054AC:: @ 081054AC - .incbin "baserom.gba", 0x1054AC, 0x0000018 - -gUnk_081054C4:: @ 081054C4 - .incbin "baserom.gba", 0x1054C4, 0x0000018 - -gUnk_081054DC:: @ 081054DC - .incbin "baserom.gba", 0x1054DC, 0x0000018 - -gUnk_081054F4:: @ 081054F4 - .incbin "baserom.gba", 0x1054F4, 0x0000018 - -gUnk_0810550C:: @ 0810550C - .incbin "baserom.gba", 0x10550C, 0x0000018 - -gUnk_08105524:: @ 08105524 - .incbin "baserom.gba", 0x105524, 0x0000018 - -gUnk_0810553C:: @ 0810553C - .incbin "baserom.gba", 0x10553C, 0x0000018 - -gUnk_08105554:: @ 08105554 - .incbin "baserom.gba", 0x105554, 0x0000018 - -gUnk_0810556C:: @ 0810556C - .incbin "baserom.gba", 0x10556C, 0x0000018 - -gUnk_08105584:: @ 08105584 - .incbin "baserom.gba", 0x105584, 0x0000018 - -gUnk_0810559C:: @ 0810559C - .incbin "baserom.gba", 0x10559C, 0x0000018 - -gUnk_081055B4:: @ 081055B4 - .incbin "baserom.gba", 0x1055B4, 0x0000018 - -gUnk_081055CC:: @ 081055CC - .incbin "baserom.gba", 0x1055CC, 0x0000018 - -gUnk_081055E4:: @ 081055E4 - .incbin "baserom.gba", 0x1055E4, 0x000001C - -gUnk_08105600:: @ 08105600 - .incbin "baserom.gba", 0x105600, 0x0000019 - -gUnk_08105619:: @ 08105619 - .incbin "baserom.gba", 0x105619, 0x000004F - -gUnk_08105668:: @ 08105668 - .incbin "baserom.gba", 0x105668, 0x0000004 - -gUnk_0810566C:: @ 0810566C - .incbin "baserom.gba", 0x10566C, 0x0000004 - -gUnk_08105670:: @ 08105670 - .incbin "baserom.gba", 0x105670, 0x0000018 - -gUnk_08105688:: @ 08105688 - .incbin "baserom.gba", 0x105688, 0x0000018 - -gUnk_081056A0:: @ 081056A0 - .incbin "baserom.gba", 0x1056A0, 0x0000018 - -gUnk_081056B8:: @ 081056B8 - .incbin "baserom.gba", 0x1056B8, 0x0000018 - -gUnk_081056D0:: @ 081056D0 - .incbin "baserom.gba", 0x1056D0, 0x0000018 - -gUnk_081056E8:: @ 081056E8 - .incbin "baserom.gba", 0x1056E8, 0x0000018 - -gUnk_08105700:: @ 08105700 - .incbin "baserom.gba", 0x105700, 0x0000010 - -gUnk_08105710:: @ 08105710 - .incbin "baserom.gba", 0x105710, 0x0000008 - -gUnk_08105718:: @ 08105718 - .incbin "baserom.gba", 0x105718, 0x0000018 - -gUnk_08105730:: @ 08105730 - .incbin "baserom.gba", 0x105730, 0x0000018 - -gUnk_08105748:: @ 08105748 - .incbin "baserom.gba", 0x105748, 0x0000018 - -gUnk_08105760:: @ 08105760 - .incbin "baserom.gba", 0x105760, 0x0000018 - -gUnk_08105778:: @ 08105778 - .incbin "baserom.gba", 0x105778, 0x0000018 - -gUnk_08105790:: @ 08105790 - .incbin "baserom.gba", 0x105790, 0x0000018 - -gUnk_081057A8:: @ 081057A8 - .incbin "baserom.gba", 0x1057A8, 0x0000018 - -gUnk_081057C0:: @ 081057C0 - .incbin "baserom.gba", 0x1057C0, 0x0000018 - -gUnk_081057D8:: @ 081057D8 - .incbin "baserom.gba", 0x1057D8, 0x0000018 - -gUnk_081057F0:: @ 081057F0 - .incbin "baserom.gba", 0x1057F0, 0x0000018 - -gUnk_08105808:: @ 08105808 - .incbin "baserom.gba", 0x105808, 0x0000018 - -gUnk_08105820:: @ 08105820 - .incbin "baserom.gba", 0x105820, 0x0000060 - -gUnk_08105880:: @ 08105880 - .incbin "baserom.gba", 0x105880, 0x0000018 - -gUnk_08105898:: @ 08105898 - .incbin "baserom.gba", 0x105898, 0x0000004 - -gUnk_0810589C:: @ 0810589C - .incbin "baserom.gba", 0x10589C, 0x0000018 - -gUnk_081058B4:: @ 081058B4 - .incbin "baserom.gba", 0x1058B4, 0x0000018 - -gUnk_081058CC:: @ 081058CC - .incbin "baserom.gba", 0x1058CC, 0x0000018 - -gUnk_081058E4:: @ 081058E4 - .incbin "baserom.gba", 0x1058E4, 0x0000018 - -gUnk_081058FC:: @ 081058FC - .incbin "baserom.gba", 0x1058FC, 0x000000E - -gUnk_0810590A:: @ 0810590A - .incbin "baserom.gba", 0x10590A, 0x000000A - -gUnk_08105914:: @ 08105914 - .incbin "baserom.gba", 0x105914, 0x0000018 - -gUnk_0810592C:: @ 0810592C - .incbin "baserom.gba", 0x10592C, 0x0000018 - -gUnk_08105944:: @ 08105944 - .incbin "baserom.gba", 0x105944, 0x0000018 - -gUnk_0810595C:: @ 0810595C - .incbin "baserom.gba", 0x10595C, 0x0000018 - -gUnk_08105974:: @ 08105974 - .incbin "baserom.gba", 0x105974, 0x0000018 - -gUnk_0810598C:: @ 0810598C - .incbin "baserom.gba", 0x10598C, 0x0000018 - -gUnk_081059A4:: @ 081059A4 - .incbin "baserom.gba", 0x1059A4, 0x0000018 - -gUnk_081059BC:: @ 081059BC - .incbin "baserom.gba", 0x1059BC, 0x0000018 - -gUnk_081059D4:: @ 081059D4 - .incbin "baserom.gba", 0x1059D4, 0x0000018 - -gUnk_081059EC:: @ 081059EC - .incbin "baserom.gba", 0x1059EC, 0x0000018 - -gUnk_08105A04:: @ 08105A04 - .incbin "baserom.gba", 0x105A04, 0x0000018 - -gUnk_08105A1C:: @ 08105A1C - .incbin "baserom.gba", 0x105A1C, 0x0000018 - -gUnk_08105A34:: @ 08105A34 - .incbin "baserom.gba", 0x105A34, 0x000000D - -gUnk_08105A41:: @ 08105A41 - .incbin "baserom.gba", 0x105A41, 0x000000B - -gUnk_08105A4C:: @ 08105A4C - .incbin "baserom.gba", 0x105A4C, 0x0000018 - -gUnk_08105A64:: @ 08105A64 - .incbin "baserom.gba", 0x105A64, 0x0000018 - -gUnk_08105A7C:: @ 08105A7C - .incbin "baserom.gba", 0x105A7C, 0x0000018 - -gUnk_08105A94:: @ 08105A94 - .incbin "baserom.gba", 0x105A94, 0x0000018 - -gUnk_08105AAC:: @ 08105AAC - .incbin "baserom.gba", 0x105AAC, 0x0000018 - -gUnk_08105AC4:: @ 08105AC4 - .incbin "baserom.gba", 0x105AC4, 0x0000018 - -gUnk_08105ADC:: @ 08105ADC - .incbin "baserom.gba", 0x105ADC, 0x0000034 - -gUnk_08105B10:: @ 08105B10 - .incbin "baserom.gba", 0x105B10, 0x0000060 - -gUnk_08105B70:: @ 08105B70 - .incbin "baserom.gba", 0x105B70, 0x0000018 - -gUnk_08105B88:: @ 08105B88 - .incbin "baserom.gba", 0x105B88, 0x0000004 - -gUnk_08105B8C:: @ 08105B8C - .incbin "baserom.gba", 0x105B8C, 0x0000018 - -gUnk_08105BA4:: @ 08105BA4 - .incbin "baserom.gba", 0x105BA4, 0x0000018 - -gUnk_08105BBC:: @ 08105BBC - .incbin "baserom.gba", 0x105BBC, 0x0000008 - -gUnk_08105BC4:: @ 08105BC4 - .incbin "baserom.gba", 0x105BC4, 0x0000018 - -gUnk_08105BDC:: @ 08105BDC - .incbin "baserom.gba", 0x105BDC, 0x0000018 - -gUnk_08105BF4:: @ 08105BF4 - .incbin "baserom.gba", 0x105BF4, 0x0000018 - -gUnk_08105C0C:: @ 08105C0C - .incbin "baserom.gba", 0x105C0C, 0x0000018 - -gUnk_08105C24:: @ 08105C24 - .incbin "baserom.gba", 0x105C24, 0x0000018 - -gUnk_08105C3C:: @ 08105C3C - .incbin "baserom.gba", 0x105C3C, 0x0000018 - -gUnk_08105C54:: @ 08105C54 - .incbin "baserom.gba", 0x105C54, 0x0000018 - -gUnk_08105C6C:: @ 08105C6C - .incbin "baserom.gba", 0x105C6C, 0x0000018 - -gUnk_08105C84:: @ 08105C84 - .incbin "baserom.gba", 0x105C84, 0x0000018 - -gUnk_08105C9C:: @ 08105C9C - .incbin "baserom.gba", 0x105C9C, 0x0000018 - -gUnk_08105CB4:: @ 08105CB4 - .incbin "baserom.gba", 0x105CB4, 0x0000018 - -gUnk_08105CCC:: @ 08105CCC - .incbin "baserom.gba", 0x105CCC, 0x0000018 - -gUnk_08105CE4:: @ 08105CE4 - .incbin "baserom.gba", 0x105CE4, 0x0000018 - -gUnk_08105CFC:: @ 08105CFC - .incbin "baserom.gba", 0x105CFC, 0x0000018 - -gUnk_08105D14:: @ 08105D14 - .incbin "baserom.gba", 0x105D14, 0x0000003 - -gUnk_08105D17:: @ 08105D17 - .incbin "baserom.gba", 0x105D17, 0x0000015 - -gUnk_08105D2C:: @ 08105D2C - .incbin "baserom.gba", 0x105D2C, 0x0000018 - -gUnk_08105D44:: @ 08105D44 - .incbin "baserom.gba", 0x105D44, 0x0000018 - -gUnk_08105D5C:: @ 08105D5C - .incbin "baserom.gba", 0x105D5C, 0x0000018 - -gUnk_08105D74:: @ 08105D74 - .incbin "baserom.gba", 0x105D74, 0x0000018 - -gUnk_08105D8C:: @ 08105D8C - .incbin "baserom.gba", 0x105D8C, 0x0000018 - -gUnk_08105DA4:: @ 08105DA4 - .incbin "baserom.gba", 0x105DA4, 0x0000018 - -gUnk_08105DBC:: @ 08105DBC - .incbin "baserom.gba", 0x105DBC, 0x0000018 - -gUnk_08105DD4:: @ 08105DD4 - .incbin "baserom.gba", 0x105DD4, 0x0000018 - -gUnk_08105DEC:: @ 08105DEC - .incbin "baserom.gba", 0x105DEC, 0x0000018 - -gUnk_08105E04:: @ 08105E04 - .incbin "baserom.gba", 0x105E04, 0x0000018 - -gUnk_08105E1C:: @ 08105E1C - .incbin "baserom.gba", 0x105E1C, 0x0000018 - -gUnk_08105E34:: @ 08105E34 - .incbin "baserom.gba", 0x105E34, 0x0000018 - -gUnk_08105E4C:: @ 08105E4C - .incbin "baserom.gba", 0x105E4C, 0x0000018 - -gUnk_08105E64:: @ 08105E64 - .incbin "baserom.gba", 0x105E64, 0x0000018 - -gUnk_08105E7C:: @ 08105E7C - .incbin "baserom.gba", 0x105E7C, 0x0000018 - -gUnk_08105E94:: @ 08105E94 - .incbin "baserom.gba", 0x105E94, 0x0000018 - -gUnk_08105EAC:: @ 08105EAC - .incbin "baserom.gba", 0x105EAC, 0x0000018 - -gUnk_08105EC4:: @ 08105EC4 - .incbin "baserom.gba", 0x105EC4, 0x0000018 - -gUnk_08105EDC:: @ 08105EDC - .incbin "baserom.gba", 0x105EDC, 0x0000018 - -gUnk_08105EF4:: @ 08105EF4 - .incbin "baserom.gba", 0x105EF4, 0x0000018 - -gUnk_08105F0C:: @ 08105F0C - .incbin "baserom.gba", 0x105F0C, 0x0000018 - -gUnk_08105F24:: @ 08105F24 - .incbin "baserom.gba", 0x105F24, 0x0000018 - -gUnk_08105F3C:: @ 08105F3C - .incbin "baserom.gba", 0x105F3C, 0x0000018 - -gUnk_08105F54:: @ 08105F54 - .incbin "baserom.gba", 0x105F54, 0x0000018 - -gUnk_08105F6C:: @ 08105F6C - .incbin "baserom.gba", 0x105F6C, 0x0000018 - -gUnk_08105F84:: @ 08105F84 - .incbin "baserom.gba", 0x105F84, 0x0000018 - -gUnk_08105F9C:: @ 08105F9C - .incbin "baserom.gba", 0x105F9C, 0x0000066 - -gUnk_08106002:: @ 08106002 - .incbin "baserom.gba", 0x106002, 0x0000076 - -gUnk_08106078:: @ 08106078 - .incbin "baserom.gba", 0x106078, 0x0000018 - -gUnk_08106090:: @ 08106090 - .incbin "baserom.gba", 0x106090, 0x0000004 - -gUnk_08106094:: @ 08106094 - .incbin "baserom.gba", 0x106094, 0x0000018 - -gUnk_081060AC:: @ 081060AC - .incbin "baserom.gba", 0x1060AC, 0x0000018 - -gUnk_081060C4:: @ 081060C4 - .incbin "baserom.gba", 0x1060C4, 0x0000018 - -gUnk_081060DC:: @ 081060DC - .incbin "baserom.gba", 0x1060DC, 0x0000018 - -gUnk_081060F4:: @ 081060F4 - .incbin "baserom.gba", 0x1060F4, 0x0000018 - -gUnk_0810610C:: @ 0810610C - .incbin "baserom.gba", 0x10610C, 0x0000018 - -gUnk_08106124:: @ 08106124 - .incbin "baserom.gba", 0x106124, 0x0000018 - -gUnk_0810613C:: @ 0810613C - .incbin "baserom.gba", 0x10613C, 0x0000018 - -gUnk_08106154:: @ 08106154 - .incbin "baserom.gba", 0x106154, 0x0000018 - -gUnk_0810616C:: @ 0810616C - .incbin "baserom.gba", 0x10616C, 0x0000018 - -gUnk_08106184:: @ 08106184 - .incbin "baserom.gba", 0x106184, 0x0000018 - -gUnk_0810619C:: @ 0810619C - .incbin "baserom.gba", 0x10619C, 0x0000058 - -gUnk_081061F4:: @ 081061F4 - .incbin "baserom.gba", 0x1061F4, 0x0000018 - -gUnk_0810620C:: @ 0810620C - .incbin "baserom.gba", 0x10620C, 0x0000018 - -gUnk_08106224:: @ 08106224 - .incbin "baserom.gba", 0x106224, 0x0000018 - -gUnk_0810623C:: @ 0810623C - .incbin "baserom.gba", 0x10623C, 0x0000018 - -gUnk_08106254:: @ 08106254 - .incbin "baserom.gba", 0x106254, 0x0000018 - -gUnk_0810626C:: @ 0810626C - .incbin "baserom.gba", 0x10626C, 0x0000018 - -gUnk_08106284:: @ 08106284 - .incbin "baserom.gba", 0x106284, 0x0000018 - -gUnk_0810629C:: @ 0810629C - .incbin "baserom.gba", 0x10629C, 0x0000018 - -gUnk_081062B4:: @ 081062B4 - .incbin "baserom.gba", 0x1062B4, 0x0000018 - -gUnk_081062CC:: @ 081062CC - .incbin "baserom.gba", 0x1062CC, 0x0000040 - -gUnk_0810630C:: @ 0810630C - .incbin "baserom.gba", 0x10630C, 0x0000018 - -gUnk_08106324:: @ 08106324 - .incbin "baserom.gba", 0x106324, 0x0000018 - -gUnk_0810633C:: @ 0810633C - .incbin "baserom.gba", 0x10633C, 0x0000018 - -gUnk_08106354:: @ 08106354 - .incbin "baserom.gba", 0x106354, 0x0000018 - -gUnk_0810636C:: @ 0810636C - .incbin "baserom.gba", 0x10636C, 0x0000018 - -gUnk_08106384:: @ 08106384 - .incbin "baserom.gba", 0x106384, 0x0000018 - -gUnk_0810639C:: @ 0810639C - .incbin "baserom.gba", 0x10639C, 0x0000018 - -gUnk_081063B4:: @ 081063B4 - .incbin "baserom.gba", 0x1063B4, 0x0000018 - -gUnk_081063CC:: @ 081063CC - .incbin "baserom.gba", 0x1063CC, 0x0000018 - -gUnk_081063E4:: @ 081063E4 - .incbin "baserom.gba", 0x1063E4, 0x0000018 - -gUnk_081063FC:: @ 081063FC - .incbin "baserom.gba", 0x1063FC, 0x0000018 - -gUnk_08106414:: @ 08106414 - .incbin "baserom.gba", 0x106414, 0x0000018 - -gUnk_0810642C:: @ 0810642C - .incbin "baserom.gba", 0x10642C, 0x0000018 - -gUnk_08106444:: @ 08106444 - .incbin "baserom.gba", 0x106444, 0x0000018 - -gUnk_0810645C:: @ 0810645C - .incbin "baserom.gba", 0x10645C, 0x0000018 - -gUnk_08106474:: @ 08106474 - .incbin "baserom.gba", 0x106474, 0x0000018 - -gUnk_0810648C:: @ 0810648C - .incbin "baserom.gba", 0x10648C, 0x0000018 - -gUnk_081064A4:: @ 081064A4 - .incbin "baserom.gba", 0x1064A4, 0x0000018 - -gUnk_081064BC:: @ 081064BC - .incbin "baserom.gba", 0x1064BC, 0x0000018 - -gUnk_081064D4:: @ 081064D4 - .incbin "baserom.gba", 0x1064D4, 0x0000018 - -gUnk_081064EC:: @ 081064EC - .incbin "baserom.gba", 0x1064EC, 0x0000018 - -gUnk_08106504:: @ 08106504 - .incbin "baserom.gba", 0x106504, 0x0000018 - -gUnk_0810651C:: @ 0810651C - .incbin "baserom.gba", 0x10651C, 0x0000018 - -gUnk_08106534:: @ 08106534 - .incbin "baserom.gba", 0x106534, 0x0000018 - -gUnk_0810654C:: @ 0810654C - .incbin "baserom.gba", 0x10654C, 0x0000009 - -gUnk_08106555:: @ 08106555 - .incbin "baserom.gba", 0x106555, 0x000000F - -gUnk_08106564:: @ 08106564 - .incbin "baserom.gba", 0x106564, 0x0000001 - -gUnk_08106565:: @ 08106565 - .incbin "baserom.gba", 0x106565, 0x0000017 - -gUnk_0810657C:: @ 0810657C - .incbin "baserom.gba", 0x10657C, 0x0000018 - -gUnk_08106594:: @ 08106594 - .incbin "baserom.gba", 0x106594, 0x0000018 - -gUnk_081065AC:: @ 081065AC - .incbin "baserom.gba", 0x1065AC, 0x0000018 - -gUnk_081065C4:: @ 081065C4 - .incbin "baserom.gba", 0x1065C4, 0x0000018 - -gUnk_081065DC:: @ 081065DC - .incbin "baserom.gba", 0x1065DC, 0x0000018 - -gUnk_081065F4:: @ 081065F4 - .incbin "baserom.gba", 0x1065F4, 0x0000004 - -gUnk_081065F8:: @ 081065F8 - .incbin "baserom.gba", 0x1065F8, 0x0000014 - -gUnk_0810660C:: @ 0810660C - .incbin "baserom.gba", 0x10660C, 0x000000D - -gUnk_08106619:: @ 08106619 - .incbin "baserom.gba", 0x106619, 0x0000001 - -gUnk_0810661A:: @ 0810661A - .incbin "baserom.gba", 0x10661A, 0x000000A - -gUnk_08106624:: @ 08106624 - .incbin "baserom.gba", 0x106624, 0x0000018 - -gUnk_0810663C:: @ 0810663C - .incbin "baserom.gba", 0x10663C, 0x0000018 - -gUnk_08106654:: @ 08106654 - .incbin "baserom.gba", 0x106654, 0x0000018 - -gUnk_0810666C:: @ 0810666C - .incbin "baserom.gba", 0x10666C, 0x0000018 - -gUnk_08106684:: @ 08106684 - .incbin "baserom.gba", 0x106684, 0x0000018 - -gUnk_0810669C:: @ 0810669C - .incbin "baserom.gba", 0x10669C, 0x0000018 - -gUnk_081066B4:: @ 081066B4 - .incbin "baserom.gba", 0x1066B4, 0x0000018 - -gUnk_081066CC:: @ 081066CC - .incbin "baserom.gba", 0x1066CC, 0x0000018 - -gUnk_081066E4:: @ 081066E4 - .incbin "baserom.gba", 0x1066E4, 0x0000018 - -gUnk_081066FC:: @ 081066FC - .incbin "baserom.gba", 0x1066FC, 0x0000018 - -gUnk_08106714:: @ 08106714 - .incbin "baserom.gba", 0x106714, 0x0000018 - -gUnk_0810672C:: @ 0810672C - .incbin "baserom.gba", 0x10672C, 0x0000018 - -gUnk_08106744:: @ 08106744 - .incbin "baserom.gba", 0x106744, 0x0000018 - -gUnk_0810675C:: @ 0810675C - .incbin "baserom.gba", 0x10675C, 0x0000018 - -gUnk_08106774:: @ 08106774 - .incbin "baserom.gba", 0x106774, 0x0000018 - -gUnk_0810678C:: @ 0810678C - .incbin "baserom.gba", 0x10678C, 0x0000018 - -gUnk_081067A4:: @ 081067A4 - .incbin "baserom.gba", 0x1067A4, 0x0000018 - -gUnk_081067BC:: @ 081067BC - .incbin "baserom.gba", 0x1067BC, 0x0000018 - -gUnk_081067D4:: @ 081067D4 - .incbin "baserom.gba", 0x1067D4, 0x000002C - -gUnk_08106800:: @ 08106800 - .incbin "baserom.gba", 0x106800, 0x00000A0 - -gUnk_081068A0:: @ 081068A0 - .incbin "baserom.gba", 0x1068A0, 0x000000C - -gUnk_081068AC:: @ 081068AC - .incbin "baserom.gba", 0x1068AC, 0x0000004 - -gUnk_081068B0:: @ 081068B0 - .incbin "baserom.gba", 0x1068B0, 0x0000018 - -gUnk_081068C8:: @ 081068C8 - .incbin "baserom.gba", 0x1068C8, 0x0000018 - -gUnk_081068E0:: @ 081068E0 - .incbin "baserom.gba", 0x1068E0, 0x0000018 - -gUnk_081068F8:: @ 081068F8 - .incbin "baserom.gba", 0x1068F8, 0x0000020 - -gUnk_08106918:: @ 08106918 - .incbin "baserom.gba", 0x106918, 0x0000018 - -gUnk_08106930:: @ 08106930 - .incbin "baserom.gba", 0x106930, 0x0000018 - -gUnk_08106948:: @ 08106948 - .incbin "baserom.gba", 0x106948, 0x0000018 - -gUnk_08106960:: @ 08106960 - .incbin "baserom.gba", 0x106960, 0x0000018 - -gUnk_08106978:: @ 08106978 - .incbin "baserom.gba", 0x106978, 0x0000018 - -gUnk_08106990:: @ 08106990 - .incbin "baserom.gba", 0x106990, 0x0000018 - -gUnk_081069A8:: @ 081069A8 - .incbin "baserom.gba", 0x1069A8, 0x0000018 - -gUnk_081069C0:: @ 081069C0 - .incbin "baserom.gba", 0x1069C0, 0x0000040 - -gUnk_08106A00:: @ 08106A00 - .incbin "baserom.gba", 0x106A00, 0x0000018 - -gUnk_08106A18:: @ 08106A18 - .incbin "baserom.gba", 0x106A18, 0x0000004 - -gUnk_08106A1C:: @ 08106A1C - .incbin "baserom.gba", 0x106A1C, 0x0000018 - -gUnk_08106A34:: @ 08106A34 - .incbin "baserom.gba", 0x106A34, 0x0000018 - -gUnk_08106A4C:: @ 08106A4C - .incbin "baserom.gba", 0x106A4C, 0x0000018 - -gUnk_08106A64:: @ 08106A64 - .incbin "baserom.gba", 0x106A64, 0x0000018 - -gUnk_08106A7C:: @ 08106A7C - .incbin "baserom.gba", 0x106A7C, 0x0000018 - -gUnk_08106A94:: @ 08106A94 - .incbin "baserom.gba", 0x106A94, 0x0000018 - -gUnk_08106AAC:: @ 08106AAC - .incbin "baserom.gba", 0x106AAC, 0x0000018 - -gUnk_08106AC4:: @ 08106AC4 - .incbin "baserom.gba", 0x106AC4, 0x0000018 - -gUnk_08106ADC:: @ 08106ADC - .incbin "baserom.gba", 0x106ADC, 0x0000018 - -gUnk_08106AF4:: @ 08106AF4 - .incbin "baserom.gba", 0x106AF4, 0x0000018 - -gUnk_08106B0C:: @ 08106B0C - .incbin "baserom.gba", 0x106B0C, 0x0000018 - -gUnk_08106B24:: @ 08106B24 - .incbin "baserom.gba", 0x106B24, 0x0000018 - -gUnk_08106B3C:: @ 08106B3C - .incbin "baserom.gba", 0x106B3C, 0x0000018 - -gUnk_08106B54:: @ 08106B54 - .incbin "baserom.gba", 0x106B54, 0x0000018 - -gUnk_08106B6C:: @ 08106B6C - .incbin "baserom.gba", 0x106B6C, 0x0000018 - -gUnk_08106B84:: @ 08106B84 - .incbin "baserom.gba", 0x106B84, 0x0000018 - -gUnk_08106B9C:: @ 08106B9C - .incbin "baserom.gba", 0x106B9C, 0x0000018 - -gUnk_08106BB4:: @ 08106BB4 - .incbin "baserom.gba", 0x106BB4, 0x0000018 - -gUnk_08106BCC:: @ 08106BCC - .incbin "baserom.gba", 0x106BCC, 0x0000018 - -gUnk_08106BE4:: @ 08106BE4 - .incbin "baserom.gba", 0x106BE4, 0x0000018 - -gUnk_08106BFC:: @ 08106BFC - .incbin "baserom.gba", 0x106BFC, 0x0000004 - -gUnk_08106C00:: @ 08106C00 - .incbin "baserom.gba", 0x106C00, 0x0000004 - -gUnk_08106C04:: @ 08106C04 - .incbin "baserom.gba", 0x106C04, 0x0000003 - -gUnk_08106C07:: @ 08106C07 - .incbin "baserom.gba", 0x106C07, 0x000000D - -gUnk_08106C14:: @ 08106C14 - .incbin "baserom.gba", 0x106C14, 0x0000018 - -gUnk_08106C2C:: @ 08106C2C - .incbin "baserom.gba", 0x106C2C, 0x0000018 - -gUnk_08106C44:: @ 08106C44 - .incbin "baserom.gba", 0x106C44, 0x0000018 - -gUnk_08106C5C:: @ 08106C5C - .incbin "baserom.gba", 0x106C5C, 0x0000018 - -gUnk_08106C74:: @ 08106C74 - .incbin "baserom.gba", 0x106C74, 0x0000018 - -gUnk_08106C8C:: @ 08106C8C - .incbin "baserom.gba", 0x106C8C, 0x0000018 - -gUnk_08106CA4:: @ 08106CA4 - .incbin "baserom.gba", 0x106CA4, 0x0000018 - -gUnk_08106CBC:: @ 08106CBC - .incbin "baserom.gba", 0x106CBC, 0x0000018 - -gUnk_08106CD4:: @ 08106CD4 - .incbin "baserom.gba", 0x106CD4, 0x0000018 - -gUnk_08106CEC:: @ 08106CEC - .incbin "baserom.gba", 0x106CEC, 0x0000018 - -gUnk_08106D04:: @ 08106D04 - .incbin "baserom.gba", 0x106D04, 0x0000018 - -gUnk_08106D1C:: @ 08106D1C - .incbin "baserom.gba", 0x106D1C, 0x0000018 - -gUnk_08106D34:: @ 08106D34 - .incbin "baserom.gba", 0x106D34, 0x0000018 - -gUnk_08106D4C:: @ 08106D4C - .incbin "baserom.gba", 0x106D4C, 0x0000018 - -gUnk_08106D64:: @ 08106D64 - .incbin "baserom.gba", 0x106D64, 0x0000018 - -gUnk_08106D7C:: @ 08106D7C - .incbin "baserom.gba", 0x106D7C, 0x0000003 - -gUnk_08106D7F:: @ 08106D7F - .incbin "baserom.gba", 0x106D7F, 0x0000015 - -gUnk_08106D94:: @ 08106D94 - .incbin "baserom.gba", 0x106D94, 0x0000018 - -gUnk_08106DAC:: @ 08106DAC - .incbin "baserom.gba", 0x106DAC, 0x0000018 - -gUnk_08106DC4:: @ 08106DC4 - .incbin "baserom.gba", 0x106DC4, 0x0000018 - -gUnk_08106DDC:: @ 08106DDC - .incbin "baserom.gba", 0x106DDC, 0x0000018 - -gUnk_08106DF4:: @ 08106DF4 - .incbin "baserom.gba", 0x106DF4, 0x0000018 - -gUnk_08106E0C:: @ 08106E0C - .incbin "baserom.gba", 0x106E0C, 0x0000018 - -gUnk_08106E24:: @ 08106E24 - .incbin "baserom.gba", 0x106E24, 0x0000018 - -gUnk_08106E3C:: @ 08106E3C - .incbin "baserom.gba", 0x106E3C, 0x0000018 - -gUnk_08106E54:: @ 08106E54 - .incbin "baserom.gba", 0x106E54, 0x0000018 - -gUnk_08106E6C:: @ 08106E6C - .incbin "baserom.gba", 0x106E6C, 0x0000018 - -gUnk_08106E84:: @ 08106E84 - .incbin "baserom.gba", 0x106E84, 0x0000018 - -gUnk_08106E9C:: @ 08106E9C - .incbin "baserom.gba", 0x106E9C, 0x0000018 - -gUnk_08106EB4:: @ 08106EB4 - .incbin "baserom.gba", 0x106EB4, 0x0000018 - -gUnk_08106ECC:: @ 08106ECC - .incbin "baserom.gba", 0x106ECC, 0x0000018 - -gUnk_08106EE4:: @ 08106EE4 - .incbin "baserom.gba", 0x106EE4, 0x0000018 - -gUnk_08106EFC:: @ 08106EFC - .incbin "baserom.gba", 0x106EFC, 0x000000F - -gUnk_08106F0B:: @ 08106F0B - .incbin "baserom.gba", 0x106F0B, 0x0000009 - -gUnk_08106F14:: @ 08106F14 - .incbin "baserom.gba", 0x106F14, 0x0000018 - -gUnk_08106F2C:: @ 08106F2C - .incbin "baserom.gba", 0x106F2C, 0x0000018 - -gUnk_08106F44:: @ 08106F44 - .incbin "baserom.gba", 0x106F44, 0x0000018 - -gUnk_08106F5C:: @ 08106F5C - .incbin "baserom.gba", 0x106F5C, 0x0000018 - -gUnk_08106F74:: @ 08106F74 - .incbin "baserom.gba", 0x106F74, 0x0000018 - -gUnk_08106F8C:: @ 08106F8C - .incbin "baserom.gba", 0x106F8C, 0x0000018 - -gUnk_08106FA4:: @ 08106FA4 - .incbin "baserom.gba", 0x106FA4, 0x0000018 - -gUnk_08106FBC:: @ 08106FBC - .incbin "baserom.gba", 0x106FBC, 0x00000F0 - -gUnk_081070AC:: @ 081070AC - .incbin "baserom.gba", 0x1070AC, 0x0000018 - -gUnk_081070C4:: @ 081070C4 - .incbin "baserom.gba", 0x1070C4, 0x0000018 - -gUnk_081070DC:: @ 081070DC - .incbin "baserom.gba", 0x1070DC, 0x0000018 - -gUnk_081070F4:: @ 081070F4 - .incbin "baserom.gba", 0x1070F4, 0x0000018 - -gUnk_0810710C:: @ 0810710C - .incbin "baserom.gba", 0x10710C, 0x0000018 - -gUnk_08107124:: @ 08107124 - .incbin "baserom.gba", 0x107124, 0x0000018 - -gUnk_0810713C:: @ 0810713C - .incbin "baserom.gba", 0x10713C, 0x0000018 - -gUnk_08107154:: @ 08107154 - .incbin "baserom.gba", 0x107154, 0x0000018 - -gUnk_0810716C:: @ 0810716C - .incbin "baserom.gba", 0x10716C, 0x0000018 - -gUnk_08107184:: @ 08107184 - .incbin "baserom.gba", 0x107184, 0x0000024 - -gUnk_081071A8:: @ 081071A8 - .incbin "baserom.gba", 0x1071A8, 0x0000018 - -gUnk_081071C0:: @ 081071C0 - .incbin "baserom.gba", 0x1071C0, 0x0000004 - -gUnk_081071C4:: @ 081071C4 - .incbin "baserom.gba", 0x1071C4, 0x0000018 - -gUnk_081071DC:: @ 081071DC - .incbin "baserom.gba", 0x1071DC, 0x0000018 - -gUnk_081071F4:: @ 081071F4 - .incbin "baserom.gba", 0x1071F4, 0x0000018 - -gUnk_0810720C:: @ 0810720C - .incbin "baserom.gba", 0x10720C, 0x000000C - -gUnk_08107218:: @ 08107218 - .incbin "baserom.gba", 0x107218, 0x0000018 - -gUnk_08107230:: @ 08107230 - .incbin "baserom.gba", 0x107230, 0x0000018 - -gUnk_08107248:: @ 08107248 - .incbin "baserom.gba", 0x107248, 0x0000008 - -gUnk_08107250:: @ 08107250 - .incbin "baserom.gba", 0x107250, 0x0000018 - -gUnk_08107268:: @ 08107268 - .incbin "baserom.gba", 0x107268, 0x0000004 - -gUnk_0810726C:: @ 0810726C - .incbin "baserom.gba", 0x10726C, 0x0000018 - -gUnk_08107284:: @ 08107284 - .incbin "baserom.gba", 0x107284, 0x0000018 - -gUnk_0810729C:: @ 0810729C - .incbin "baserom.gba", 0x10729C, 0x0000018 - -gUnk_081072B4:: @ 081072B4 - .incbin "baserom.gba", 0x1072B4, 0x000000C - -gUnk_081072C0:: @ 081072C0 - .incbin "baserom.gba", 0x1072C0, 0x0000018 - -gUnk_081072D8:: @ 081072D8 - .incbin "baserom.gba", 0x1072D8, 0x0000018 - -gUnk_081072F0:: @ 081072F0 - .incbin "baserom.gba", 0x1072F0, 0x0000018 - -gUnk_08107308:: @ 08107308 - .incbin "baserom.gba", 0x107308, 0x0000002 - -gUnk_0810730A:: @ 0810730A - .incbin "baserom.gba", 0x10730A, 0x0000016 - -gUnk_08107320:: @ 08107320 - .incbin "baserom.gba", 0x107320, 0x0000018 - -gUnk_08107338:: @ 08107338 - .incbin "baserom.gba", 0x107338, 0x0000014 - -gUnk_0810734C:: @ 0810734C - .incbin "baserom.gba", 0x10734C, 0x0000018 - -gUnk_08107364:: @ 08107364 - .incbin "baserom.gba", 0x107364, 0x0000018 - -gUnk_0810737C:: @ 0810737C - .incbin "baserom.gba", 0x10737C, 0x0000008 - -gUnk_08107384:: @ 08107384 - .incbin "baserom.gba", 0x107384, 0x0000018 - -gUnk_0810739C:: @ 0810739C - .incbin "baserom.gba", 0x10739C, 0x0000018 - -gUnk_081073B4:: @ 081073B4 - .incbin "baserom.gba", 0x1073B4, 0x0000018 - -gUnk_081073CC:: @ 081073CC - .incbin "baserom.gba", 0x1073CC, 0x0000018 - -gUnk_081073E4:: @ 081073E4 - .incbin "baserom.gba", 0x1073E4, 0x0000018 - -gUnk_081073FC:: @ 081073FC - .incbin "baserom.gba", 0x1073FC, 0x0000018 - -gUnk_08107414:: @ 08107414 - .incbin "baserom.gba", 0x107414, 0x0000018 - -gUnk_0810742C:: @ 0810742C - .incbin "baserom.gba", 0x10742C, 0x0000018 - -gUnk_08107444:: @ 08107444 - .incbin "baserom.gba", 0x107444, 0x0000018 - -gUnk_0810745C:: @ 0810745C - .incbin "baserom.gba", 0x10745C, 0x0000018 - -gUnk_08107474:: @ 08107474 - .incbin "baserom.gba", 0x107474, 0x0000018 - -gUnk_0810748C:: @ 0810748C - .incbin "baserom.gba", 0x10748C, 0x0000018 - -gUnk_081074A4:: @ 081074A4 - .incbin "baserom.gba", 0x1074A4, 0x0000018 - -gUnk_081074BC:: @ 081074BC - .incbin "baserom.gba", 0x1074BC, 0x0000018 - -gUnk_081074D4:: @ 081074D4 - .incbin "baserom.gba", 0x1074D4, 0x0000018 - -gUnk_081074EC:: @ 081074EC - .incbin "baserom.gba", 0x1074EC, 0x0000018 - -gUnk_08107504:: @ 08107504 - .incbin "baserom.gba", 0x107504, 0x0000018 - -gUnk_0810751C:: @ 0810751C - .incbin "baserom.gba", 0x10751C, 0x0000018 - -gUnk_08107534:: @ 08107534 - .incbin "baserom.gba", 0x107534, 0x0000018 - -gUnk_0810754C:: @ 0810754C - .incbin "baserom.gba", 0x10754C, 0x0000018 - -gUnk_08107564:: @ 08107564 - .incbin "baserom.gba", 0x107564, 0x0000018 - -gUnk_0810757C:: @ 0810757C - .incbin "baserom.gba", 0x10757C, 0x0000018 - -gUnk_08107594:: @ 08107594 - .incbin "baserom.gba", 0x107594, 0x0000018 - -gUnk_081075AC:: @ 081075AC - .incbin "baserom.gba", 0x1075AC, 0x0000018 - -gUnk_081075C4:: @ 081075C4 - .incbin "baserom.gba", 0x1075C4, 0x0000060 - -gUnk_08107624:: @ 08107624 - .incbin "baserom.gba", 0x107624, 0x0000018 - -gUnk_0810763C:: @ 0810763C - .incbin "baserom.gba", 0x10763C, 0x0000018 - -gUnk_08107654:: @ 08107654 - .incbin "baserom.gba", 0x107654, 0x0000018 - -gUnk_0810766C:: @ 0810766C - .incbin "baserom.gba", 0x10766C, 0x0000018 - -gUnk_08107684:: @ 08107684 - .incbin "baserom.gba", 0x107684, 0x0000018 - -gUnk_0810769C:: @ 0810769C - .incbin "baserom.gba", 0x10769C, 0x0000018 - -gUnk_081076B4:: @ 081076B4 - .incbin "baserom.gba", 0x1076B4, 0x0000018 - -gUnk_081076CC:: @ 081076CC - .incbin "baserom.gba", 0x1076CC, 0x0000018 - -gUnk_081076E4:: @ 081076E4 - .incbin "baserom.gba", 0x1076E4, 0x0000018 - -gUnk_081076FC:: @ 081076FC - .incbin "baserom.gba", 0x1076FC, 0x0000016 - -gUnk_08107712:: @ 08107712 - .incbin "baserom.gba", 0x107712, 0x0000002 - -gUnk_08107714:: @ 08107714 - .incbin "baserom.gba", 0x107714, 0x0000028 - -gUnk_0810773C:: @ 0810773C - .incbin "baserom.gba", 0x10773C, 0x0000018 - -gUnk_08107754:: @ 08107754 - .incbin "baserom.gba", 0x107754, 0x0000018 - -gUnk_0810776C:: @ 0810776C - .incbin "baserom.gba", 0x10776C, 0x0000008 - -gUnk_08107774:: @ 08107774 - .incbin "baserom.gba", 0x107774, 0x0000018 - -gUnk_0810778C:: @ 0810778C - .incbin "baserom.gba", 0x10778C, 0x0000004 - -gUnk_08107790:: @ 08107790 - .incbin "baserom.gba", 0x107790, 0x0000018 - -gUnk_081077A8:: @ 081077A8 - .incbin "baserom.gba", 0x1077A8, 0x0000018 - -gUnk_081077C0:: @ 081077C0 - .incbin "baserom.gba", 0x1077C0, 0x0000018 - -gUnk_081077D8:: @ 081077D8 - .incbin "baserom.gba", 0x1077D8, 0x0000018 - -gUnk_081077F0:: @ 081077F0 - .incbin "baserom.gba", 0x1077F0, 0x0000018 - -gUnk_08107808:: @ 08107808 - .incbin "baserom.gba", 0x107808, 0x0000018 - -gUnk_08107820:: @ 08107820 - .incbin "baserom.gba", 0x107820, 0x0000018 - -gUnk_08107838:: @ 08107838 - .incbin "baserom.gba", 0x107838, 0x0000018 - -gUnk_08107850:: @ 08107850 - .incbin "baserom.gba", 0x107850, 0x000001E - -gUnk_0810786E:: @ 0810786E - .incbin "baserom.gba", 0x10786E, 0x0000002 - -gUnk_08107870:: @ 08107870 - .incbin "baserom.gba", 0x107870, 0x000001C - -gUnk_0810788C:: @ 0810788C - .incbin "baserom.gba", 0x10788C, 0x0000018 - -gUnk_081078A4:: @ 081078A4 - .incbin "baserom.gba", 0x1078A4, 0x0000004 - -gUnk_081078A8:: @ 081078A8 - .incbin "baserom.gba", 0x1078A8, 0x0000018 - -gUnk_081078C0:: @ 081078C0 - .incbin "baserom.gba", 0x1078C0, 0x0000004 - -gUnk_081078C4:: @ 081078C4 - .incbin "baserom.gba", 0x1078C4, 0x0000018 - -gUnk_081078DC:: @ 081078DC - .incbin "baserom.gba", 0x1078DC, 0x0000004 - -gUnk_081078E0:: @ 081078E0 - .incbin "baserom.gba", 0x1078E0, 0x0000018 - -gUnk_081078F8:: @ 081078F8 - .incbin "baserom.gba", 0x1078F8, 0x0000004 - -gUnk_081078FC:: @ 081078FC - .incbin "baserom.gba", 0x1078FC, 0x0000018 - -gUnk_08107914:: @ 08107914 - .incbin "baserom.gba", 0x107914, 0x0000004 - -gUnk_08107918:: @ 08107918 - .incbin "baserom.gba", 0x107918, 0x0000018 - -gUnk_08107930:: @ 08107930 - .incbin "baserom.gba", 0x107930, 0x0000004 - -gUnk_08107934:: @ 08107934 - .incbin "baserom.gba", 0x107934, 0x0000018 - -gUnk_0810794C:: @ 0810794C - .incbin "baserom.gba", 0x10794C, 0x0000004 - -gUnk_08107950:: @ 08107950 - .incbin "baserom.gba", 0x107950, 0x0000018 - -gUnk_08107968:: @ 08107968 - .incbin "baserom.gba", 0x107968, 0x0000004 - -gUnk_0810796C:: @ 0810796C - .incbin "baserom.gba", 0x10796C, 0x000000D - -gUnk_08107979:: @ 08107979 - .incbin "baserom.gba", 0x107979, 0x000000B - -gUnk_08107984:: @ 08107984 - .incbin "baserom.gba", 0x107984, 0x0000004 - -gUnk_08107988:: @ 08107988 - .incbin "baserom.gba", 0x107988, 0x0000015 - -gUnk_0810799D:: @ 0810799D - .incbin "baserom.gba", 0x10799D, 0x00001A4 - -gUnk_08107B41:: @ 08107B41 - .incbin "baserom.gba", 0x107B41, 0x000003A - -gUnk_08107B7B:: @ 08107B7B - .incbin "baserom.gba", 0x107B7B, 0x000004D - -gUnk_08107BC8:: @ 08107BC8 - .incbin "baserom.gba", 0x107BC8, 0x0000018 - -gUnk_08107BE0:: @ 08107BE0 - .incbin "baserom.gba", 0x107BE0, 0x0000014 - -gUnk_08107BF4:: @ 08107BF4 - .incbin "baserom.gba", 0x107BF4, 0x0000018 - -gUnk_08107C0C:: @ 08107C0C - .incbin "baserom.gba", 0x107C0C, 0x0000003 - -gUnk_08107C0F:: @ 08107C0F - .incbin "baserom.gba", 0x107C0F, 0x0000005 - -gUnk_08107C14:: @ 08107C14 - .incbin "baserom.gba", 0x107C14, 0x0000004 - -gUnk_08107C18:: @ 08107C18 - .incbin "baserom.gba", 0x107C18, 0x0000004 - -gUnk_08107C1C:: @ 08107C1C - .incbin "baserom.gba", 0x107C1C, 0x000000E - -gUnk_08107C2A:: @ 08107C2A - .incbin "baserom.gba", 0x107C2A, 0x0000006 - -gUnk_08107C30:: @ 08107C30 - .incbin "baserom.gba", 0x107C30, 0x0000010 - -gUnk_08107C40:: @ 08107C40 - .incbin "baserom.gba", 0x107C40, 0x0000008 - -gUnk_08107C48:: @ 08107C48 - .incbin "baserom.gba", 0x107C48, 0x0000014 - -gUnk_08107C5C:: @ 08107C5C - .incbin "baserom.gba", 0x107C5C, 0x0000010 - -gUnk_08107C6C:: @ 08107C6C - .incbin "baserom.gba", 0x107C6C, 0x0000004 - -gUnk_08107C70:: @ 08107C70 - .incbin "baserom.gba", 0x107C70, 0x0000008 - -gUnk_08107C78:: @ 08107C78 - .incbin "baserom.gba", 0x107C78, 0x0000008 - -gUnk_08107C80:: @ 08107C80 - .incbin "baserom.gba", 0x107C80, 0x0000018 - -gUnk_08107C98:: @ 08107C98 - .incbin "baserom.gba", 0x107C98, 0x0000028 - -gUnk_08107CC0:: @ 08107CC0 - .incbin "baserom.gba", 0x107CC0, 0x0000010 - -gUnk_08107CD0:: @ 08107CD0 - .incbin "baserom.gba", 0x107CD0, 0x0000010 - -gUnk_08107CE0:: @ 08107CE0 - .incbin "baserom.gba", 0x107CE0, 0x0000018 - -gUnk_08107CF8:: @ 08107CF8 - .incbin "baserom.gba", 0x107CF8, 0x000000A - -gUnk_08107D02:: @ 08107D02 - .incbin "baserom.gba", 0x107D02, 0x0000006 - -gUnk_08107D08:: @ 08107D08 - .incbin "baserom.gba", 0x107D08, 0x0000018 - -gUnk_08107D20:: @ 08107D20 - .incbin "baserom.gba", 0x107D20, 0x0000018 - -gUnk_08107D38:: @ 08107D38 - .incbin "baserom.gba", 0x107D38, 0x0000010 - -gUnk_08107D48:: @ 08107D48 - .incbin "baserom.gba", 0x107D48, 0x0000020 - -gUnk_08107D68:: @ 08107D68 - .incbin "baserom.gba", 0x107D68, 0x0000010 - -gUnk_08107D78:: @ 08107D78 - .incbin "baserom.gba", 0x107D78, 0x0000018 - -gUnk_08107D90:: @ 08107D90 - .incbin "baserom.gba", 0x107D90, 0x0000010 - -gUnk_08107DA0:: @ 08107DA0 - .incbin "baserom.gba", 0x107DA0, 0x0000020 - -gUnk_08107DC0:: @ 08107DC0 - .incbin "baserom.gba", 0x107DC0, 0x0000264 - -gUnk_08108024:: @ 08108024 - .incbin "baserom.gba", 0x108024, 0x0000010 - -gUnk_08108034:: @ 08108034 - .incbin "baserom.gba", 0x108034, 0x0000010 - -gUnk_08108044:: @ 08108044 - .incbin "baserom.gba", 0x108044, 0x000000C - -gUnk_08108050:: @ 08108050 - .incbin "baserom.gba", 0x108050, 0x000001E - -gUnk_0810806E:: @ 0810806E - .incbin "baserom.gba", 0x10806E, 0x0000036 - -gUnk_081080A4:: @ 081080A4 - .incbin "baserom.gba", 0x1080A4, 0x0000020 - -gUnk_081080C4:: @ 081080C4 - .incbin "baserom.gba", 0x1080C4, 0x0000043 - -gUnk_08108107:: @ 08108107 - .incbin "baserom.gba", 0x108107, 0x0000079 - -gUnk_08108180:: @ 08108180 - .incbin "baserom.gba", 0x108180, 0x0000064 - -gUnk_081081E4:: @ 081081E4 - .incbin "baserom.gba", 0x1081E4, 0x0000008 - -gUnk_081081EC:: @ 081081EC - .incbin "baserom.gba", 0x1081EC, 0x0000008 - -gUnk_081081F4:: @ 081081F4 - .incbin "baserom.gba", 0x1081F4, 0x0000014 - -gUnk_08108208:: @ 08108208 - .incbin "baserom.gba", 0x108208, 0x0000008 - -gUnk_08108210:: @ 08108210 - .incbin "baserom.gba", 0x108210, 0x000000C - -gUnk_0810821C:: @ 0810821C - .incbin "baserom.gba", 0x10821C, 0x000000C - -gUnk_08108228:: @ 08108228 - .incbin "baserom.gba", 0x108228, 0x0000030 - -gUnk_08108258:: @ 08108258 - .incbin "baserom.gba", 0x108258, 0x0000030 - -gUnk_08108288:: @ 08108288 - .incbin "baserom.gba", 0x108288, 0x0000030 - -gUnk_081082B8:: @ 081082B8 - .incbin "baserom.gba", 0x1082B8, 0x0000030 - -gUnk_081082E8:: @ 081082E8 - .incbin "baserom.gba", 0x1082E8, 0x0000018 - -gUnk_08108300:: @ 08108300 - .incbin "baserom.gba", 0x108300, 0x0000008 - -gUnk_08108308:: @ 08108308 - .incbin "baserom.gba", 0x108308, 0x000000C - -gUnk_08108314:: @ 08108314 - .incbin "baserom.gba", 0x108314, 0x0000040 - -gUnk_08108354:: @ 08108354 - .incbin "baserom.gba", 0x108354, 0x000002C - -gUnk_08108380:: @ 08108380 - .incbin "baserom.gba", 0x108380, 0x0000010 - -gUnk_08108390:: @ 08108390 - .incbin "baserom.gba", 0x108390, 0x0000008 - -gUnk_08108398:: @ 08108398 - .incbin "baserom.gba", 0x108398, 0x0000016 - -gUnk_081083AE:: @ 081083AE - .incbin "baserom.gba", 0x1083AE, 0x0000016 - -gUnk_081083C4:: @ 081083C4 - .incbin "baserom.gba", 0x1083C4, 0x0000016 - -gUnk_081083DA:: @ 081083DA - .incbin "baserom.gba", 0x1083DA, 0x0000018 - -gUnk_081083F2:: @ 081083F2 - .incbin "baserom.gba", 0x1083F2, 0x0000016 - -gUnk_08108408:: @ 08108408 - .incbin "baserom.gba", 0x108408, 0x000003C - -gUnk_08108444:: @ 08108444 - .incbin "baserom.gba", 0x108444, 0x0000024 - -gUnk_08108468:: @ 08108468 - .incbin "baserom.gba", 0x108468, 0x0000026 - -gUnk_0810848E:: @ 0810848E - .incbin "baserom.gba", 0x10848E, 0x0000035 - -gUnk_081084C3:: @ 081084C3 - .incbin "baserom.gba", 0x1084C3, 0x0000005 - -gUnk_081084C8:: @ 081084C8 - .incbin "baserom.gba", 0x1084C8, 0x000004A - -gUnk_08108512:: @ 08108512 - .incbin "baserom.gba", 0x108512, 0x000001E - -gUnk_08108530:: @ 08108530 - .incbin "baserom.gba", 0x108530, 0x0000058 - -gUnk_08108588:: @ 08108588 - .incbin "baserom.gba", 0x108588, 0x0000012 - -gUnk_0810859A:: @ 0810859A - .incbin "baserom.gba", 0x10859A, 0x000000A - -gUnk_081085A4:: @ 081085A4 - .incbin "baserom.gba", 0x1085A4, 0x0000014 - -gUnk_081085B8:: @ 081085B8 - .incbin "baserom.gba", 0x1085B8, 0x0000020 - -gUnk_081085D8:: @ 081085D8 - .incbin "baserom.gba", 0x1085D8, 0x0000020 - -gUnk_081085F8:: @ 081085F8 - .incbin "baserom.gba", 0x1085F8, 0x0000014 - -gUnk_0810860C:: @ 0810860C - .incbin "baserom.gba", 0x10860C, 0x0000014 - -gUnk_08108620:: @ 08108620 - .incbin "baserom.gba", 0x108620, 0x0000018 - -gUnk_08108638:: @ 08108638 - .incbin "baserom.gba", 0x108638, 0x0000010 - -gUnk_08108648:: @ 08108648 - .incbin "baserom.gba", 0x108648, 0x000000C - -gUnk_08108654:: @ 08108654 - .incbin "baserom.gba", 0x108654, 0x0000008 - -gUnk_0810865C:: @ 0810865C - .incbin "baserom.gba", 0x10865C, 0x000000C - -gUnk_08108668:: @ 08108668 - .incbin "baserom.gba", 0x108668, 0x0000008 - -gUnk_08108670:: @ 08108670 - .incbin "baserom.gba", 0x108670, 0x000000C - -gUnk_0810867C:: @ 0810867C - .incbin "baserom.gba", 0x10867C, 0x000000C - -gUnk_08108688:: @ 08108688 - .incbin "baserom.gba", 0x108688, 0x000000C - -gUnk_08108694:: @ 08108694 - .incbin "baserom.gba", 0x108694, 0x000000C - -gUnk_081086A0:: @ 081086A0 - .incbin "baserom.gba", 0x1086A0, 0x0000009 - -gUnk_081086A9:: @ 081086A9 - .incbin "baserom.gba", 0x1086A9, 0x0000003 - -gUnk_081086AC:: @ 081086AC - .incbin "baserom.gba", 0x1086AC, 0x000000C - -gUnk_081086B8:: @ 081086B8 - .incbin "baserom.gba", 0x1086B8, 0x000000C - -gUnk_081086C4:: @ 081086C4 - .incbin "baserom.gba", 0x1086C4, 0x000000C - -gUnk_081086D0:: @ 081086D0 - .incbin "baserom.gba", 0x1086D0, 0x0000001 - -gUnk_081086D1:: @ 081086D1 - .incbin "baserom.gba", 0x1086D1, 0x000000B - -gUnk_081086DC:: @ 081086DC - .incbin "baserom.gba", 0x1086DC, 0x0000008 - -gUnk_081086E4:: @ 081086E4 - .incbin "baserom.gba", 0x1086E4, 0x0000008 - -gUnk_081086EC:: @ 081086EC - .incbin "baserom.gba", 0x1086EC, 0x0000008 - -gUnk_081086F4:: @ 081086F4 - .incbin "baserom.gba", 0x1086F4, 0x0000008 - -gUnk_081086FC:: @ 081086FC - .incbin "baserom.gba", 0x1086FC, 0x0000008 - -gUnk_08108704:: @ 08108704 - .incbin "baserom.gba", 0x108704, 0x0000003 - -gUnk_08108707:: @ 08108707 - .incbin "baserom.gba", 0x108707, 0x0000005 - -gUnk_0810870C:: @ 0810870C - .incbin "baserom.gba", 0x10870C, 0x0000008 - -gUnk_08108714:: @ 08108714 - .incbin "baserom.gba", 0x108714, 0x0000008 - -gUnk_0810871C:: @ 0810871C - .incbin "baserom.gba", 0x10871C, 0x0000008 - -gUnk_08108724:: @ 08108724 - .incbin "baserom.gba", 0x108724, 0x0000008 - -gUnk_0810872C:: @ 0810872C - .incbin "baserom.gba", 0x10872C, 0x0000008 - -gUnk_08108734:: @ 08108734 - .incbin "baserom.gba", 0x108734, 0x0000008 - -gUnk_0810873C:: @ 0810873C - .incbin "baserom.gba", 0x10873C, 0x0000008 - -gUnk_08108744:: @ 08108744 - .incbin "baserom.gba", 0x108744, 0x0000006 - -gUnk_0810874A:: @ 0810874A - .incbin "baserom.gba", 0x10874A, 0x0000002 - -gUnk_0810874C:: @ 0810874C - .incbin "baserom.gba", 0x10874C, 0x0000008 - -gUnk_08108754:: @ 08108754 - .incbin "baserom.gba", 0x108754, 0x0000008 - -gUnk_0810875C:: @ 0810875C - .incbin "baserom.gba", 0x10875C, 0x0000002 - -gUnk_0810875E:: @ 0810875E - .incbin "baserom.gba", 0x10875E, 0x0000006 - -gUnk_08108764:: @ 08108764 - .incbin "baserom.gba", 0x108764, 0x00000AF - -gUnk_08108813:: @ 08108813 - .incbin "baserom.gba", 0x108813, 0x0000031 - -gUnk_08108844:: @ 08108844 - .incbin "baserom.gba", 0x108844, 0x0000020 - -gUnk_08108864:: @ 08108864 - .incbin "baserom.gba", 0x108864, 0x0000237 - -gUnk_08108A9B:: @ 08108A9B - .incbin "baserom.gba", 0x108A9B, 0x0000177 - -gUnk_08108C12:: @ 08108C12 - .incbin "baserom.gba", 0x108C12, 0x0000016 - -gUnk_08108C28:: @ 08108C28 - .incbin "baserom.gba", 0x108C28, 0x000001C - -gUnk_08108C44:: @ 08108C44 - .incbin "baserom.gba", 0x108C44, 0x0000010 - -gUnk_08108C54:: @ 08108C54 - .incbin "baserom.gba", 0x108C54, 0x0000008 - -gUnk_08108C5C:: @ 08108C5C - .incbin "baserom.gba", 0x108C5C, 0x0000008 - -gUnk_08108C64:: @ 08108C64 - .incbin "baserom.gba", 0x108C64, 0x0000008 - -gUnk_08108C6C:: @ 08108C6C - .incbin "baserom.gba", 0x108C6C, 0x000000B - -gUnk_08108C77:: @ 08108C77 - .incbin "baserom.gba", 0x108C77, 0x0000005 - -gUnk_08108C7C:: @ 08108C7C - .incbin "baserom.gba", 0x108C7C, 0x0000004 - -gUnk_08108C80:: @ 08108C80 - .incbin "baserom.gba", 0x108C80, 0x0000008 - -gUnk_08108C88:: @ 08108C88 - .incbin "baserom.gba", 0x108C88, 0x0000004 - -gUnk_08108C8C:: @ 08108C8C - .incbin "baserom.gba", 0x108C8C, 0x0000008 - -gUnk_08108C94:: @ 08108C94 - .incbin "baserom.gba", 0x108C94, 0x0000008 - -gUnk_08108C9C:: @ 08108C9C - .incbin "baserom.gba", 0x108C9C, 0x000000C - -gUnk_08108CA8:: @ 08108CA8 - .incbin "baserom.gba", 0x108CA8, 0x0000024 - -gUnk_08108CCC:: @ 08108CCC - .incbin "baserom.gba", 0x108CCC, 0x0000010 - -gUnk_08108CDC:: @ 08108CDC - .incbin "baserom.gba", 0x108CDC, 0x000000C - -gUnk_08108CE8:: @ 08108CE8 - .incbin "baserom.gba", 0x108CE8, 0x0000014 - -gUnk_08108CFC:: @ 08108CFC - .incbin "baserom.gba", 0x108CFC, 0x0000008 - -gUnk_08108D04:: @ 08108D04 - .incbin "baserom.gba", 0x108D04, 0x000000C - -gUnk_08108D10:: @ 08108D10 - .incbin "baserom.gba", 0x108D10, 0x000000C - -gUnk_08108D1C:: @ 08108D1C - .incbin "baserom.gba", 0x108D1C, 0x0000004 - -gUnk_08108D20:: @ 08108D20 - .incbin "baserom.gba", 0x108D20, 0x0000008 - -gUnk_08108D28:: @ 08108D28 - .incbin "baserom.gba", 0x108D28, 0x0000008 - -gUnk_08108D30:: @ 08108D30 - .incbin "baserom.gba", 0x108D30, 0x000000C - -gUnk_08108D3C:: @ 08108D3C - .incbin "baserom.gba", 0x108D3C, 0x0000008 - -gUnk_08108D44:: @ 08108D44 - .incbin "baserom.gba", 0x108D44, 0x000000C - -gUnk_08108D50:: @ 08108D50 - .incbin "baserom.gba", 0x108D50, 0x000000C - -gUnk_08108D5C:: @ 08108D5C - .incbin "baserom.gba", 0x108D5C, 0x0000018 - -gUnk_08108D74:: @ 08108D74 - .incbin "baserom.gba", 0x108D74, 0x0000008 - -gUnk_08108D7C:: @ 08108D7C - .incbin "baserom.gba", 0x108D7C, 0x0000010 - -gUnk_08108D8C:: @ 08108D8C - .incbin "baserom.gba", 0x108D8C, 0x000000B - -gUnk_08108D97:: @ 08108D97 - .incbin "baserom.gba", 0x108D97, 0x0000001 - -gUnk_08108D98:: @ 08108D98 - .incbin "baserom.gba", 0x108D98, 0x0000010 - -gUnk_08108DA8:: @ 08108DA8 - .incbin "baserom.gba", 0x108DA8, 0x0000014 - -gUnk_08108DBC:: @ 08108DBC - .incbin "baserom.gba", 0x108DBC, 0x0000008 - -gUnk_08108DC4:: @ 08108DC4 - .incbin "baserom.gba", 0x108DC4, 0x0000014 - -gUnk_08108DD8:: @ 08108DD8 - .incbin "baserom.gba", 0x108DD8, 0x0000008 - -gUnk_08108DE0:: @ 08108DE0 - .incbin "baserom.gba", 0x108DE0, 0x0000008 - -gUnk_08108DE8:: @ 08108DE8 - .incbin "baserom.gba", 0x108DE8, 0x0000040 - -gUnk_08108E28:: @ 08108E28 - .incbin "baserom.gba", 0x108E28, 0x0000008 - -gUnk_08108E30:: @ 08108E30 - .incbin "baserom.gba", 0x108E30, 0x0000018 - -gUnk_08108E48:: @ 08108E48 - .incbin "baserom.gba", 0x108E48, 0x0000002 - -gUnk_08108E4A:: @ 08108E4A - .incbin "baserom.gba", 0x108E4A, 0x0000016 - -gUnk_08108E60:: @ 08108E60 - .incbin "baserom.gba", 0x108E60, 0x000000C - -gUnk_08108E6C:: @ 08108E6C - .incbin "baserom.gba", 0x108E6C, 0x000000C - -gUnk_08108E78:: @ 08108E78 - .incbin "baserom.gba", 0x108E78, 0x0000018 - -gUnk_08108E90:: @ 08108E90 - .incbin "baserom.gba", 0x108E90, 0x0000008 - -gUnk_08108E98:: @ 08108E98 - .incbin "baserom.gba", 0x108E98, 0x000000C - -gUnk_08108EA4:: @ 08108EA4 - .incbin "baserom.gba", 0x108EA4, 0x0000018 - -gUnk_08108EBC:: @ 08108EBC - .incbin "baserom.gba", 0x108EBC, 0x0000008 - -gUnk_08108EC4:: @ 08108EC4 - .incbin "baserom.gba", 0x108EC4, 0x000000C - -gUnk_08108ED0:: @ 08108ED0 - .incbin "baserom.gba", 0x108ED0, 0x0000018 - -gUnk_08108EE8:: @ 08108EE8 - .incbin "baserom.gba", 0x108EE8, 0x0000008 - -gUnk_08108EF0:: @ 08108EF0 - .incbin "baserom.gba", 0x108EF0, 0x000000C - -gUnk_08108EFC:: @ 08108EFC - .incbin "baserom.gba", 0x108EFC, 0x0000018 - -gUnk_08108F14:: @ 08108F14 - .incbin "baserom.gba", 0x108F14, 0x0000008 - -gUnk_08108F1C:: @ 08108F1C - .incbin "baserom.gba", 0x108F1C, 0x000000C - -gUnk_08108F28:: @ 08108F28 - .incbin "baserom.gba", 0x108F28, 0x0000018 - -gUnk_08108F40:: @ 08108F40 - .incbin "baserom.gba", 0x108F40, 0x0000008 - -gUnk_08108F48:: @ 08108F48 - .incbin "baserom.gba", 0x108F48, 0x0000004 - -gUnk_08108F4C:: @ 08108F4C - .incbin "baserom.gba", 0x108F4C, 0x0000008 - -gUnk_08108F54:: @ 08108F54 - .incbin "baserom.gba", 0x108F54, 0x0000018 - -gUnk_08108F6C:: @ 08108F6C - .incbin "baserom.gba", 0x108F6C, 0x0000008 - -gUnk_08108F74:: @ 08108F74 - .incbin "baserom.gba", 0x108F74, 0x000000C - -gUnk_08108F80:: @ 08108F80 - .incbin "baserom.gba", 0x108F80, 0x0000018 - -gUnk_08108F98:: @ 08108F98 - .incbin "baserom.gba", 0x108F98, 0x0000008 - -gUnk_08108FA0:: @ 08108FA0 - .incbin "baserom.gba", 0x108FA0, 0x000000C - -gUnk_08108FAC:: @ 08108FAC - .incbin "baserom.gba", 0x108FAC, 0x0000018 - -gUnk_08108FC4:: @ 08108FC4 - .incbin "baserom.gba", 0x108FC4, 0x0000008 - -gUnk_08108FCC:: @ 08108FCC - .incbin "baserom.gba", 0x108FCC, 0x000000C - -gUnk_08108FD8:: @ 08108FD8 - .incbin "baserom.gba", 0x108FD8, 0x0000018 - -gUnk_08108FF0:: @ 08108FF0 - .incbin "baserom.gba", 0x108FF0, 0x0000008 - -gUnk_08108FF8:: @ 08108FF8 - .incbin "baserom.gba", 0x108FF8, 0x000000C - -gUnk_08109004:: @ 08109004 - .incbin "baserom.gba", 0x109004, 0x0000001 - -gUnk_08109005:: @ 08109005 - .incbin "baserom.gba", 0x109005, 0x0000014 - -gUnk_08109019:: @ 08109019 - .incbin "baserom.gba", 0x109019, 0x0000003 - -gUnk_0810901C:: @ 0810901C - .incbin "baserom.gba", 0x10901C, 0x0000008 - -gUnk_08109024:: @ 08109024 - .incbin "baserom.gba", 0x109024, 0x000000C - -gUnk_08109030:: @ 08109030 - .incbin "baserom.gba", 0x109030, 0x0000003 - -gUnk_08109033:: @ 08109033 - .incbin "baserom.gba", 0x109033, 0x0000015 - -gUnk_08109048:: @ 08109048 - .incbin "baserom.gba", 0x109048, 0x0000008 - -gUnk_08109050:: @ 08109050 - .incbin "baserom.gba", 0x109050, 0x000000C - -gUnk_0810905C:: @ 0810905C - .incbin "baserom.gba", 0x10905C, 0x0000018 - -gUnk_08109074:: @ 08109074 - .incbin "baserom.gba", 0x109074, 0x0000008 - -gUnk_0810907C:: @ 0810907C - .incbin "baserom.gba", 0x10907C, 0x000000C - -gUnk_08109088:: @ 08109088 - .incbin "baserom.gba", 0x109088, 0x0000018 - -gUnk_081090A0:: @ 081090A0 - .incbin "baserom.gba", 0x1090A0, 0x0000008 - -gUnk_081090A8:: @ 081090A8 - .incbin "baserom.gba", 0x1090A8, 0x000000C - -gUnk_081090B4:: @ 081090B4 - .incbin "baserom.gba", 0x1090B4, 0x0000018 - -gUnk_081090CC:: @ 081090CC - .incbin "baserom.gba", 0x1090CC, 0x0000008 - -gUnk_081090D4:: @ 081090D4 - .incbin "baserom.gba", 0x1090D4, 0x000000C - -gUnk_081090E0:: @ 081090E0 - .incbin "baserom.gba", 0x1090E0, 0x0000018 - -gUnk_081090F8:: @ 081090F8 - .incbin "baserom.gba", 0x1090F8, 0x0000008 - -gUnk_08109100:: @ 08109100 - .incbin "baserom.gba", 0x109100, 0x000000C - -gUnk_0810910C:: @ 0810910C - .incbin "baserom.gba", 0x10910C, 0x0000018 - -gUnk_08109124:: @ 08109124 - .incbin "baserom.gba", 0x109124, 0x0000008 - -gUnk_0810912C:: @ 0810912C - .incbin "baserom.gba", 0x10912C, 0x000000C - -gUnk_08109138:: @ 08109138 - .incbin "baserom.gba", 0x109138, 0x0000008 - -gUnk_08109140:: @ 08109140 - .incbin "baserom.gba", 0x109140, 0x0000018 - -gUnk_08109158:: @ 08109158 - .incbin "baserom.gba", 0x109158, 0x0000008 - -gUnk_08109160:: @ 08109160 - .incbin "baserom.gba", 0x109160, 0x0000018 - -gUnk_08109178:: @ 08109178 - .incbin "baserom.gba", 0x109178, 0x0000008 - -gUnk_08109180:: @ 08109180 - .incbin "baserom.gba", 0x109180, 0x000000C - -gUnk_0810918C:: @ 0810918C - .incbin "baserom.gba", 0x10918C, 0x0000008 - -gUnk_08109194:: @ 08109194 - .incbin "baserom.gba", 0x109194, 0x0000009 - -gUnk_0810919D:: @ 0810919D - .incbin "baserom.gba", 0x10919D, 0x0000047 - -gUnk_081091E4:: @ 081091E4 - .incbin "baserom.gba", 0x1091E4, 0x000000A - -gUnk_081091EE:: @ 081091EE - .incbin "baserom.gba", 0x1091EE, 0x000000A - -gUnk_081091F8:: @ 081091F8 - .incbin "baserom.gba", 0x1091F8, 0x000000A - -gUnk_08109202:: @ 08109202 - .incbin "baserom.gba", 0x109202, 0x0000012 - -gUnk_08109214:: @ 08109214 - .incbin "baserom.gba", 0x109214, 0x000001C - -gUnk_08109230:: @ 08109230 - .incbin "baserom.gba", 0x109230, 0x0000014 - -gUnk_08109244:: @ 08109244 - .incbin "baserom.gba", 0x109244, 0x0000004 - -gUnk_08109248:: @ 08109248 - .incbin "baserom.gba", 0x109248, 0x0000024 - -gUnk_0810926C:: @ 0810926C - .incbin "baserom.gba", 0x10926C, 0x0000040 - -gUnk_081092AC:: @ 081092AC - .incbin "baserom.gba", 0x1092AC, 0x0000028 - -gUnk_081092D4:: @ 081092D4 - .incbin "baserom.gba", 0x1092D4, 0x000002F - -gUnk_08109303:: @ 08109303 - .incbin "baserom.gba", 0x109303, 0x000005E - -gUnk_08109361:: @ 08109361 - .incbin "baserom.gba", 0x109361, 0x00000A5 - -gUnk_08109406:: @ 08109406 - .incbin "baserom.gba", 0x109406, 0x0000028 - -gUnk_0810942E:: @ 0810942E - .incbin "baserom.gba", 0x10942E, 0x00000A0 - -gUnk_081094CE:: @ 081094CE - .incbin "baserom.gba", 0x1094CE, 0x00000FB - -gUnk_081095C9:: @ 081095C9 - .incbin "baserom.gba", 0x1095C9, 0x000014C - -gUnk_08109715:: @ 08109715 - .incbin "baserom.gba", 0x109715, 0x0000063 - -gUnk_08109778:: @ 08109778 - .incbin "baserom.gba", 0x109778, 0x0000005 - -gUnk_0810977D:: @ 0810977D - .incbin "baserom.gba", 0x10977D, 0x0000017 - -gUnk_08109794:: @ 08109794 - .incbin "baserom.gba", 0x109794, 0x0000104 - -gUnk_08109898:: @ 08109898 - .incbin "baserom.gba", 0x109898, 0x000000F - -gUnk_081098A7:: @ 081098A7 - .incbin "baserom.gba", 0x1098A7, 0x000005F - -gUnk_08109906:: @ 08109906 - .incbin "baserom.gba", 0x109906, 0x000012A - -gUnk_08109A30:: @ 08109A30 - .incbin "baserom.gba", 0x109A30, 0x0000028 - -gUnk_08109A58:: @ 08109A58 - .incbin "baserom.gba", 0x109A58, 0x0000010 - -gUnk_08109A68:: @ 08109A68 - .incbin "baserom.gba", 0x109A68, 0x0000010 - -gUnk_08109A78:: @ 08109A78 - .incbin "baserom.gba", 0x109A78, 0x0000010 - -gUnk_08109A88:: @ 08109A88 - .incbin "baserom.gba", 0x109A88, 0x0000010 - -gUnk_08109A98:: @ 08109A98 - .incbin "baserom.gba", 0x109A98, 0x0000006 - -gUnk_08109A9E:: @ 08109A9E - .incbin "baserom.gba", 0x109A9E, 0x000000A - -gUnk_08109AA8:: @ 08109AA8 - .incbin "baserom.gba", 0x109AA8, 0x0000010 - -gUnk_08109AB8:: @ 08109AB8 - .incbin "baserom.gba", 0x109AB8, 0x0000010 - -gUnk_08109AC8:: @ 08109AC8 - .incbin "baserom.gba", 0x109AC8, 0x0000008 - -gUnk_08109AD0:: @ 08109AD0 - .incbin "baserom.gba", 0x109AD0, 0x0000008 - -gUnk_08109AD8:: @ 08109AD8 - .incbin "baserom.gba", 0x109AD8, 0x0000005 - -gUnk_08109ADD:: @ 08109ADD - .incbin "baserom.gba", 0x109ADD, 0x0000005 - -gUnk_08109AE2:: @ 08109AE2 - .incbin "baserom.gba", 0x109AE2, 0x0000005 - -gUnk_08109AE7:: @ 08109AE7 - .incbin "baserom.gba", 0x109AE7, 0x0000005 - -gUnk_08109AEC:: @ 08109AEC - .incbin "baserom.gba", 0x109AEC, 0x0000011 - -gUnk_08109AFD:: @ 08109AFD - .incbin "baserom.gba", 0x109AFD, 0x000000B - -gUnk_08109B08:: @ 08109B08 - .incbin "baserom.gba", 0x109B08, 0x0000006 - -gUnk_08109B0E:: @ 08109B0E - .incbin "baserom.gba", 0x109B0E, 0x000002D - -gUnk_08109B3B:: @ 08109B3B - .incbin "baserom.gba", 0x109B3B, 0x0000025 - -gUnk_08109B60:: @ 08109B60 - .incbin "baserom.gba", 0x109B60, 0x0000020 - -gUnk_08109B80:: @ 08109B80 - .incbin "baserom.gba", 0x109B80, 0x000003C - -gUnk_08109BBC:: @ 08109BBC - .incbin "baserom.gba", 0x109BBC, 0x000000C - -gUnk_08109BC8:: @ 08109BC8 - .incbin "baserom.gba", 0x109BC8, 0x0000005 - -gUnk_08109BCD:: @ 08109BCD - .incbin "baserom.gba", 0x109BCD, 0x0000005 - -gUnk_08109BD2:: @ 08109BD2 - .incbin "baserom.gba", 0x109BD2, 0x0000005 - -gUnk_08109BD7:: @ 08109BD7 - .incbin "baserom.gba", 0x109BD7, 0x0000011 - -gUnk_08109BE8:: @ 08109BE8 - .incbin "baserom.gba", 0x109BE8, 0x0000011 - -gUnk_08109BF9:: @ 08109BF9 - .incbin "baserom.gba", 0x109BF9, 0x0000035 - -gUnk_08109C2E:: @ 08109C2E - .incbin "baserom.gba", 0x109C2E, 0x000001D - -gUnk_08109C4B:: @ 08109C4B - .incbin "baserom.gba", 0x109C4B, 0x0000009 - -gUnk_08109C54:: @ 08109C54 - .incbin "baserom.gba", 0x109C54, 0x0000005 - -gUnk_08109C59:: @ 08109C59 - .incbin "baserom.gba", 0x109C59, 0x0000007 - -gUnk_08109C60:: @ 08109C60 - .incbin "baserom.gba", 0x109C60, 0x0000038 - -gUnk_08109C98:: @ 08109C98 - .incbin "baserom.gba", 0x109C98, 0x0000080 - -gUnk_08109D18:: @ 08109D18 - .incbin "baserom.gba", 0x109D18, 0x0000063 - -gUnk_08109D7B:: @ 08109D7B - .incbin "baserom.gba", 0x109D7B, 0x000002E - -gUnk_08109DA9:: @ 08109DA9 - .incbin "baserom.gba", 0x109DA9, 0x000001F - -gUnk_08109DC8:: @ 08109DC8 - .incbin "baserom.gba", 0x109DC8, 0x000003F - -gUnk_08109E07:: @ 08109E07 - .incbin "baserom.gba", 0x109E07, 0x000010E - -gUnk_08109F15:: @ 08109F15 - .incbin "baserom.gba", 0x109F15, 0x0000052 - -gUnk_08109F67:: @ 08109F67 - .incbin "baserom.gba", 0x109F67, 0x0000005 - -gUnk_08109F6C:: @ 08109F6C - .incbin "baserom.gba", 0x109F6C, 0x000002B - -gUnk_08109F97:: @ 08109F97 - .incbin "baserom.gba", 0x109F97, 0x00000B1 - -gUnk_0810A048:: @ 0810A048 - .incbin "baserom.gba", 0x10A048, 0x0000111 - -gUnk_0810A159:: @ 0810A159 - .incbin "baserom.gba", 0x10A159, 0x0000048 - -gUnk_0810A1A1:: @ 0810A1A1 - .incbin "baserom.gba", 0x10A1A1, 0x00001A7 - -gUnk_0810A348:: @ 0810A348 - .incbin "baserom.gba", 0x10A348, 0x000000C - -gUnk_0810A354:: @ 0810A354 - .incbin "baserom.gba", 0x10A354, 0x0000006 - -gUnk_0810A35A:: @ 0810A35A - .incbin "baserom.gba", 0x10A35A, 0x0000008 - -gUnk_0810A362:: @ 0810A362 - .incbin "baserom.gba", 0x10A362, 0x0000008 - -gUnk_0810A36A:: @ 0810A36A - .incbin "baserom.gba", 0x10A36A, 0x0000005 - -gUnk_0810A36F:: @ 0810A36F - .incbin "baserom.gba", 0x10A36F, 0x0000005 - -gUnk_0810A374:: @ 0810A374 - .incbin "baserom.gba", 0x10A374, 0x0000005 - -gUnk_0810A379:: @ 0810A379 - .incbin "baserom.gba", 0x10A379, 0x0000001 - -gUnk_0810A37A:: @ 0810A37A - .incbin "baserom.gba", 0x10A37A, 0x0000004 - -gUnk_0810A37E:: @ 0810A37E - .incbin "baserom.gba", 0x10A37E, 0x0000021 - -gUnk_0810A39F:: @ 0810A39F - .incbin "baserom.gba", 0x10A39F, 0x0000021 - -gUnk_0810A3C0:: @ 0810A3C0 - .incbin "baserom.gba", 0x10A3C0, 0x0000021 - -gUnk_0810A3E1:: @ 0810A3E1 - .incbin "baserom.gba", 0x10A3E1, 0x000001F - -gUnk_0810A400:: @ 0810A400 - .incbin "baserom.gba", 0x10A400, 0x0000002 - -gUnk_0810A402:: @ 0810A402 - .incbin "baserom.gba", 0x10A402, 0x0000005 - -gUnk_0810A407:: @ 0810A407 - .incbin "baserom.gba", 0x10A407, 0x0000001 - -gUnk_0810A408:: @ 0810A408 - .incbin "baserom.gba", 0x10A408, 0x0000004 - -gUnk_0810A40C:: @ 0810A40C - .incbin "baserom.gba", 0x10A40C, 0x0000005 - -gUnk_0810A411:: @ 0810A411 - .incbin "baserom.gba", 0x10A411, 0x0000005 - -gUnk_0810A416:: @ 0810A416 - .incbin "baserom.gba", 0x10A416, 0x000000D - -gUnk_0810A423:: @ 0810A423 - .incbin "baserom.gba", 0x10A423, 0x000000D - -gUnk_0810A430:: @ 0810A430 - .incbin "baserom.gba", 0x10A430, 0x000000D - -gUnk_0810A43D:: @ 0810A43D - .incbin "baserom.gba", 0x10A43D, 0x000000D - -gUnk_0810A44A:: @ 0810A44A - .incbin "baserom.gba", 0x10A44A, 0x000000D - -gUnk_0810A457:: @ 0810A457 - .incbin "baserom.gba", 0x10A457, 0x000000D - -gUnk_0810A464:: @ 0810A464 - .incbin "baserom.gba", 0x10A464, 0x000000D - -gUnk_0810A471:: @ 0810A471 - .incbin "baserom.gba", 0x10A471, 0x000000D - -gUnk_0810A47E:: @ 0810A47E - .incbin "baserom.gba", 0x10A47E, 0x000000D - -gUnk_0810A48B:: @ 0810A48B - .incbin "baserom.gba", 0x10A48B, 0x000000D - -gUnk_0810A498:: @ 0810A498 - .incbin "baserom.gba", 0x10A498, 0x000000D - -gUnk_0810A4A5:: @ 0810A4A5 - .incbin "baserom.gba", 0x10A4A5, 0x000000D - -gUnk_0810A4B2:: @ 0810A4B2 - .incbin "baserom.gba", 0x10A4B2, 0x000000D - -gUnk_0810A4BF:: @ 0810A4BF - .incbin "baserom.gba", 0x10A4BF, 0x000000D - -gUnk_0810A4CC:: @ 0810A4CC - .incbin "baserom.gba", 0x10A4CC, 0x000000D - -gUnk_0810A4D9:: @ 0810A4D9 - .incbin "baserom.gba", 0x10A4D9, 0x000000D - -gUnk_0810A4E6:: @ 0810A4E6 - .incbin "baserom.gba", 0x10A4E6, 0x000000D - -gUnk_0810A4F3:: @ 0810A4F3 - .incbin "baserom.gba", 0x10A4F3, 0x000000D - -gUnk_0810A500:: @ 0810A500 - .incbin "baserom.gba", 0x10A500, 0x000000D - -gUnk_0810A50D:: @ 0810A50D - .incbin "baserom.gba", 0x10A50D, 0x000000D - -gUnk_0810A51A:: @ 0810A51A - .incbin "baserom.gba", 0x10A51A, 0x000000D - -gUnk_0810A527:: @ 0810A527 - .incbin "baserom.gba", 0x10A527, 0x000000D - -gUnk_0810A534:: @ 0810A534 - .incbin "baserom.gba", 0x10A534, 0x000000D - -gUnk_0810A541:: @ 0810A541 - .incbin "baserom.gba", 0x10A541, 0x000000D - -gUnk_0810A54E:: @ 0810A54E - .incbin "baserom.gba", 0x10A54E, 0x000000D - -gUnk_0810A55B:: @ 0810A55B - .incbin "baserom.gba", 0x10A55B, 0x000000D - -gUnk_0810A568:: @ 0810A568 - .incbin "baserom.gba", 0x10A568, 0x000000D - -gUnk_0810A575:: @ 0810A575 - .incbin "baserom.gba", 0x10A575, 0x000000D - -gUnk_0810A582:: @ 0810A582 - .incbin "baserom.gba", 0x10A582, 0x000000D - -gUnk_0810A58F:: @ 0810A58F - .incbin "baserom.gba", 0x10A58F, 0x000000D - -gUnk_0810A59C:: @ 0810A59C - .incbin "baserom.gba", 0x10A59C, 0x000000D - -gUnk_0810A5A9:: @ 0810A5A9 - .incbin "baserom.gba", 0x10A5A9, 0x000000F - -gUnk_0810A5B8:: @ 0810A5B8 - .incbin "baserom.gba", 0x10A5B8, 0x00000B4 - -gUnk_0810A66C:: @ 0810A66C - .incbin "baserom.gba", 0x10A66C, 0x00000BC - -gUnk_0810A728:: @ 0810A728 - .incbin "baserom.gba", 0x10A728, 0x0000040 - -gUnk_0810A768:: @ 0810A768 - .incbin "baserom.gba", 0x10A768, 0x0000005 - -gUnk_0810A76D:: @ 0810A76D - .incbin "baserom.gba", 0x10A76D, 0x0000005 - -gUnk_0810A772:: @ 0810A772 - .incbin "baserom.gba", 0x10A772, 0x0000005 - -gUnk_0810A777:: @ 0810A777 - .incbin "baserom.gba", 0x10A777, 0x0000006 - -gUnk_0810A77D:: @ 0810A77D - .incbin "baserom.gba", 0x10A77D, 0x0000006 - -gUnk_0810A783:: @ 0810A783 - .incbin "baserom.gba", 0x10A783, 0x0000006 - -gUnk_0810A789:: @ 0810A789 - .incbin "baserom.gba", 0x10A789, 0x0000005 - -gUnk_0810A78E:: @ 0810A78E - .incbin "baserom.gba", 0x10A78E, 0x0000006 - -gUnk_0810A794:: @ 0810A794 - .incbin "baserom.gba", 0x10A794, 0x0000006 - -gUnk_0810A79A:: @ 0810A79A - .incbin "baserom.gba", 0x10A79A, 0x0000006 - -gUnk_0810A7A0:: @ 0810A7A0 - .incbin "baserom.gba", 0x10A7A0, 0x0000006 - -gUnk_0810A7A6:: @ 0810A7A6 - .incbin "baserom.gba", 0x10A7A6, 0x0000006 - -gUnk_0810A7AC:: @ 0810A7AC - .incbin "baserom.gba", 0x10A7AC, 0x0000007 - -gUnk_0810A7B3:: @ 0810A7B3 - .incbin "baserom.gba", 0x10A7B3, 0x0000006 - -gUnk_0810A7B9:: @ 0810A7B9 - .incbin "baserom.gba", 0x10A7B9, 0x0000006 - -gUnk_0810A7BF:: @ 0810A7BF - .incbin "baserom.gba", 0x10A7BF, 0x0000006 - -gUnk_0810A7C5:: @ 0810A7C5 - .incbin "baserom.gba", 0x10A7C5, 0x0000005 - -gUnk_0810A7CA:: @ 0810A7CA - .incbin "baserom.gba", 0x10A7CA, 0x0000006 - -gUnk_0810A7D0:: @ 0810A7D0 - .incbin "baserom.gba", 0x10A7D0, 0x0000006 - -gUnk_0810A7D6:: @ 0810A7D6 - .incbin "baserom.gba", 0x10A7D6, 0x0000005 - -gUnk_0810A7DB:: @ 0810A7DB - .incbin "baserom.gba", 0x10A7DB, 0x0000005 - -gUnk_0810A7E0:: @ 0810A7E0 - .incbin "baserom.gba", 0x10A7E0, 0x0000005 - -gUnk_0810A7E5:: @ 0810A7E5 - .incbin "baserom.gba", 0x10A7E5, 0x0000010 - -gUnk_0810A7F5:: @ 0810A7F5 - .incbin "baserom.gba", 0x10A7F5, 0x0000010 - -gUnk_0810A805:: @ 0810A805 - .incbin "baserom.gba", 0x10A805, 0x0000008 - -gUnk_0810A80D:: @ 0810A80D - .incbin "baserom.gba", 0x10A80D, 0x0000008 - -gUnk_0810A815:: @ 0810A815 - .incbin "baserom.gba", 0x10A815, 0x0000005 - -gUnk_0810A81A:: @ 0810A81A - .incbin "baserom.gba", 0x10A81A, 0x0000005 - -gUnk_0810A81F:: @ 0810A81F - .incbin "baserom.gba", 0x10A81F, 0x0000006 - -gUnk_0810A825:: @ 0810A825 - .incbin "baserom.gba", 0x10A825, 0x0000005 - -gUnk_0810A82A:: @ 0810A82A - .incbin "baserom.gba", 0x10A82A, 0x0000005 - -gUnk_0810A82F:: @ 0810A82F - .incbin "baserom.gba", 0x10A82F, 0x0000006 - -gUnk_0810A835:: @ 0810A835 - .incbin "baserom.gba", 0x10A835, 0x0000006 - -gUnk_0810A83B:: @ 0810A83B - .incbin "baserom.gba", 0x10A83B, 0x0000006 - -gUnk_0810A841:: @ 0810A841 - .incbin "baserom.gba", 0x10A841, 0x0000007 - -gUnk_0810A848:: @ 0810A848 - .incbin "baserom.gba", 0x10A848, 0x0000007 - -gUnk_0810A84F:: @ 0810A84F - .incbin "baserom.gba", 0x10A84F, 0x000000F - -gUnk_0810A85E:: @ 0810A85E - .incbin "baserom.gba", 0x10A85E, 0x000000F - -gUnk_0810A86D:: @ 0810A86D - .incbin "baserom.gba", 0x10A86D, 0x0000005 - -gUnk_0810A872:: @ 0810A872 - .incbin "baserom.gba", 0x10A872, 0x0000005 - -gUnk_0810A877:: @ 0810A877 - .incbin "baserom.gba", 0x10A877, 0x0000005 - -gUnk_0810A87C:: @ 0810A87C - .incbin "baserom.gba", 0x10A87C, 0x0000005 - -gUnk_0810A881:: @ 0810A881 - .incbin "baserom.gba", 0x10A881, 0x0000005 - -gUnk_0810A886:: @ 0810A886 - .incbin "baserom.gba", 0x10A886, 0x0000005 - -gUnk_0810A88B:: @ 0810A88B - .incbin "baserom.gba", 0x10A88B, 0x0000006 - -gUnk_0810A891:: @ 0810A891 - .incbin "baserom.gba", 0x10A891, 0x0000006 - -gUnk_0810A897:: @ 0810A897 - .incbin "baserom.gba", 0x10A897, 0x0000005 - -gUnk_0810A89C:: @ 0810A89C - .incbin "baserom.gba", 0x10A89C, 0x0000006 - -gUnk_0810A8A2:: @ 0810A8A2 - .incbin "baserom.gba", 0x10A8A2, 0x0000005 - -gUnk_0810A8A7:: @ 0810A8A7 - .incbin "baserom.gba", 0x10A8A7, 0x0000005 - -gUnk_0810A8AC:: @ 0810A8AC - .incbin "baserom.gba", 0x10A8AC, 0x0000005 - -gUnk_0810A8B1:: @ 0810A8B1 - .incbin "baserom.gba", 0x10A8B1, 0x0000005 - -gUnk_0810A8B6:: @ 0810A8B6 - .incbin "baserom.gba", 0x10A8B6, 0x0000005 - -gUnk_0810A8BB:: @ 0810A8BB - .incbin "baserom.gba", 0x10A8BB, 0x0000005 - -gUnk_0810A8C0:: @ 0810A8C0 - .incbin "baserom.gba", 0x10A8C0, 0x000000B - -gUnk_0810A8CB:: @ 0810A8CB - .incbin "baserom.gba", 0x10A8CB, 0x000000B - -gUnk_0810A8D6:: @ 0810A8D6 - .incbin "baserom.gba", 0x10A8D6, 0x0000005 - -gUnk_0810A8DB:: @ 0810A8DB - .incbin "baserom.gba", 0x10A8DB, 0x0000005 - -gUnk_0810A8E0:: @ 0810A8E0 - .incbin "baserom.gba", 0x10A8E0, 0x0000009 - -gUnk_0810A8E9:: @ 0810A8E9 - .incbin "baserom.gba", 0x10A8E9, 0x0000009 - -gUnk_0810A8F2:: @ 0810A8F2 - .incbin "baserom.gba", 0x10A8F2, 0x0000007 - -gUnk_0810A8F9:: @ 0810A8F9 - .incbin "baserom.gba", 0x10A8F9, 0x0000007 - -gUnk_0810A900:: @ 0810A900 - .incbin "baserom.gba", 0x10A900, 0x0000005 - -gUnk_0810A905:: @ 0810A905 - .incbin "baserom.gba", 0x10A905, 0x0000006 - -gUnk_0810A90B:: @ 0810A90B - .incbin "baserom.gba", 0x10A90B, 0x0000006 - -gUnk_0810A911:: @ 0810A911 - .incbin "baserom.gba", 0x10A911, 0x0000007 - -gUnk_0810A918:: @ 0810A918 - .incbin "baserom.gba", 0x10A918, 0x000010C - -gUnk_0810AA24:: @ 0810AA24 - .incbin "baserom.gba", 0x10AA24, 0x000000C - -gUnk_0810AA30:: @ 0810AA30 - .incbin "baserom.gba", 0x10AA30, 0x0000040 - -gUnk_0810AA70:: @ 0810AA70 - .incbin "baserom.gba", 0x10AA70, 0x0000020 - -gUnk_0810AA90:: @ 0810AA90 - .incbin "baserom.gba", 0x10AA90, 0x0000029 - -gUnk_0810AAB9:: @ 0810AAB9 - .incbin "baserom.gba", 0x10AAB9, 0x0000029 - -gUnk_0810AAE2:: @ 0810AAE2 - .incbin "baserom.gba", 0x10AAE2, 0x0000029 - -gUnk_0810AB0B:: @ 0810AB0B - .incbin "baserom.gba", 0x10AB0B, 0x0000029 - -gUnk_0810AB34:: @ 0810AB34 - .incbin "baserom.gba", 0x10AB34, 0x0000031 - -gUnk_0810AB65:: @ 0810AB65 - .incbin "baserom.gba", 0x10AB65, 0x0000031 - -gUnk_0810AB96:: @ 0810AB96 - .incbin "baserom.gba", 0x10AB96, 0x0000031 - -gUnk_0810ABC7:: @ 0810ABC7 - .incbin "baserom.gba", 0x10ABC7, 0x0000031 - -gUnk_0810ABF8:: @ 0810ABF8 - .incbin "baserom.gba", 0x10ABF8, 0x0000024 - -gUnk_0810AC1C:: @ 0810AC1C - .incbin "baserom.gba", 0x10AC1C, 0x0000010 - -gUnk_0810AC2C:: @ 0810AC2C - .incbin "baserom.gba", 0x10AC2C, 0x0000020 - -gUnk_0810AC4C:: @ 0810AC4C - .incbin "baserom.gba", 0x10AC4C, 0x0000008 - -gUnk_0810AC54:: @ 0810AC54 - .incbin "baserom.gba", 0x10AC54, 0x0000009 - -gUnk_0810AC5D:: @ 0810AC5D - .incbin "baserom.gba", 0x10AC5D, 0x0000013 - -gUnk_0810AC70:: @ 0810AC70 - .incbin "baserom.gba", 0x10AC70, 0x0000008 - -gUnk_0810AC78:: @ 0810AC78 - .incbin "baserom.gba", 0x10AC78, 0x0000009 - -gUnk_0810AC81:: @ 0810AC81 - .incbin "baserom.gba", 0x10AC81, 0x0000019 - -gUnk_0810AC9A:: @ 0810AC9A - .incbin "baserom.gba", 0x10AC9A, 0x0000019 - -gUnk_0810ACB3:: @ 0810ACB3 - .incbin "baserom.gba", 0x10ACB3, 0x0000019 - -gUnk_0810ACCC:: @ 0810ACCC - .incbin "baserom.gba", 0x10ACCC, 0x0000021 - -gUnk_0810ACED:: @ 0810ACED - .incbin "baserom.gba", 0x10ACED, 0x0000021 - -gUnk_0810AD0E:: @ 0810AD0E - .incbin "baserom.gba", 0x10AD0E, 0x0000021 - -gUnk_0810AD2F:: @ 0810AD2F - .incbin "baserom.gba", 0x10AD2F, 0x0000021 - -gUnk_0810AD50:: @ 0810AD50 - .incbin "baserom.gba", 0x10AD50, 0x0000021 - -gUnk_0810AD71:: @ 0810AD71 - .incbin "baserom.gba", 0x10AD71, 0x0000021 - -gUnk_0810AD92:: @ 0810AD92 - .incbin "baserom.gba", 0x10AD92, 0x000001B - -gUnk_0810ADAD:: @ 0810ADAD - .incbin "baserom.gba", 0x10ADAD, 0x0000006 - -gUnk_0810ADB3:: @ 0810ADB3 - .incbin "baserom.gba", 0x10ADB3, 0x0000021 - -gUnk_0810ADD4:: @ 0810ADD4 - .incbin "baserom.gba", 0x10ADD4, 0x0000021 - -gUnk_0810ADF5:: @ 0810ADF5 - .incbin "baserom.gba", 0x10ADF5, 0x0000021 - -gUnk_0810AE16:: @ 0810AE16 - .incbin "baserom.gba", 0x10AE16, 0x0000021 - -gUnk_0810AE37:: @ 0810AE37 - .incbin "baserom.gba", 0x10AE37, 0x0000021 - -gUnk_0810AE58:: @ 0810AE58 - .incbin "baserom.gba", 0x10AE58, 0x0000024 - -gUnk_0810AE7C:: @ 0810AE7C - .incbin "baserom.gba", 0x10AE7C, 0x0000021 - -gUnk_0810AE9D:: @ 0810AE9D - .incbin "baserom.gba", 0x10AE9D, 0x0000003 - -gUnk_0810AEA0:: @ 0810AEA0 - .incbin "baserom.gba", 0x10AEA0, 0x0000024 - -gUnk_0810AEC4:: @ 0810AEC4 - .incbin "baserom.gba", 0x10AEC4, 0x0000024 - -gUnk_0810AEE8:: @ 0810AEE8 - .incbin "baserom.gba", 0x10AEE8, 0x000001F - -gUnk_0810AF07:: @ 0810AF07 - .incbin "baserom.gba", 0x10AF07, 0x0000012 - -gUnk_0810AF19:: @ 0810AF19 - .incbin "baserom.gba", 0x10AF19, 0x000002B - -gUnk_0810AF44:: @ 0810AF44 - .incbin "baserom.gba", 0x10AF44, 0x0000006 - -gUnk_0810AF4A:: @ 0810AF4A - .incbin "baserom.gba", 0x10AF4A, 0x0000031 - -gUnk_0810AF7B:: @ 0810AF7B - .incbin "baserom.gba", 0x10AF7B, 0x0000031 - -gUnk_0810AFAC:: @ 0810AFAC - .incbin "baserom.gba", 0x10AFAC, 0x0000021 - -gUnk_0810AFCD:: @ 0810AFCD - .incbin "baserom.gba", 0x10AFCD, 0x0000021 - -gUnk_0810AFEE:: @ 0810AFEE - .incbin "baserom.gba", 0x10AFEE, 0x000001A - -gUnk_0810B008:: @ 0810B008 - .incbin "baserom.gba", 0x10B008, 0x0000007 - -gUnk_0810B00F:: @ 0810B00F - .incbin "baserom.gba", 0x10B00F, 0x0000021 - -gUnk_0810B030:: @ 0810B030 - .incbin "baserom.gba", 0x10B030, 0x000000C - -gUnk_0810B03C:: @ 0810B03C - .incbin "baserom.gba", 0x10B03C, 0x000000C - -gUnk_0810B048:: @ 0810B048 - .incbin "baserom.gba", 0x10B048, 0x000000C - -gUnk_0810B054:: @ 0810B054 - .incbin "baserom.gba", 0x10B054, 0x000000C - -gUnk_0810B060:: @ 0810B060 - .incbin "baserom.gba", 0x10B060, 0x0000011 - -gUnk_0810B071:: @ 0810B071 - .incbin "baserom.gba", 0x10B071, 0x0000011 - -gUnk_0810B082:: @ 0810B082 - .incbin "baserom.gba", 0x10B082, 0x0000011 - -gUnk_0810B093:: @ 0810B093 - .incbin "baserom.gba", 0x10B093, 0x0000011 - -gUnk_0810B0A4:: @ 0810B0A4 - .incbin "baserom.gba", 0x10B0A4, 0x0000011 - -gUnk_0810B0B5:: @ 0810B0B5 - .incbin "baserom.gba", 0x10B0B5, 0x0000011 - -gUnk_0810B0C6:: @ 0810B0C6 - .incbin "baserom.gba", 0x10B0C6, 0x0000011 - -gUnk_0810B0D7:: @ 0810B0D7 - .incbin "baserom.gba", 0x10B0D7, 0x0000011 - -gUnk_0810B0E8:: @ 0810B0E8 - .incbin "baserom.gba", 0x10B0E8, 0x0000011 - -gUnk_0810B0F9:: @ 0810B0F9 - .incbin "baserom.gba", 0x10B0F9, 0x0000011 - -gUnk_0810B10A:: @ 0810B10A - .incbin "baserom.gba", 0x10B10A, 0x0000011 - -gUnk_0810B11B:: @ 0810B11B - .incbin "baserom.gba", 0x10B11B, 0x0000011 - -gUnk_0810B12C:: @ 0810B12C - .incbin "baserom.gba", 0x10B12C, 0x0000011 - -gUnk_0810B13D:: @ 0810B13D - .incbin "baserom.gba", 0x10B13D, 0x0000011 - -gUnk_0810B14E:: @ 0810B14E - .incbin "baserom.gba", 0x10B14E, 0x0000011 - -gUnk_0810B15F:: @ 0810B15F - .incbin "baserom.gba", 0x10B15F, 0x0000011 - -gUnk_0810B170:: @ 0810B170 - .incbin "baserom.gba", 0x10B170, 0x000001C - -gUnk_0810B18C:: @ 0810B18C - .incbin "baserom.gba", 0x10B18C, 0x000001C - -gUnk_0810B1A8:: @ 0810B1A8 - .incbin "baserom.gba", 0x10B1A8, 0x0000009 - -gUnk_0810B1B1:: @ 0810B1B1 - .incbin "baserom.gba", 0x10B1B1, 0x0000013 - -gUnk_0810B1C4:: @ 0810B1C4 - .incbin "baserom.gba", 0x10B1C4, 0x000001C - -gUnk_0810B1E0:: @ 0810B1E0 - .incbin "baserom.gba", 0x10B1E0, 0x000001C - -gUnk_0810B1FC:: @ 0810B1FC - .incbin "baserom.gba", 0x10B1FC, 0x000001C - -gUnk_0810B218:: @ 0810B218 - .incbin "baserom.gba", 0x10B218, 0x000001C - -gUnk_0810B234:: @ 0810B234 - .incbin "baserom.gba", 0x10B234, 0x000001C - -gUnk_0810B250:: @ 0810B250 - .incbin "baserom.gba", 0x10B250, 0x0000030 - -gUnk_0810B280:: @ 0810B280 - .incbin "baserom.gba", 0x10B280, 0x0000030 - -gUnk_0810B2B0:: @ 0810B2B0 - .incbin "baserom.gba", 0x10B2B0, 0x0000030 - -gUnk_0810B2E0:: @ 0810B2E0 - .incbin "baserom.gba", 0x10B2E0, 0x0000030 - -gUnk_0810B310:: @ 0810B310 - .incbin "baserom.gba", 0x10B310, 0x0000030 - -gUnk_0810B340:: @ 0810B340 - .incbin "baserom.gba", 0x10B340, 0x0000030 - -gUnk_0810B370:: @ 0810B370 - .incbin "baserom.gba", 0x10B370, 0x0000030 - -gUnk_0810B3A0:: @ 0810B3A0 - .incbin "baserom.gba", 0x10B3A0, 0x0000022 - -gUnk_0810B3C2:: @ 0810B3C2 - .incbin "baserom.gba", 0x10B3C2, 0x000000E - -gUnk_0810B3D0:: @ 0810B3D0 - .incbin "baserom.gba", 0x10B3D0, 0x0000028 - -gUnk_0810B3F8:: @ 0810B3F8 - .incbin "baserom.gba", 0x10B3F8, 0x000000F - -gUnk_0810B407:: @ 0810B407 - .incbin "baserom.gba", 0x10B407, 0x0000019 - -gUnk_0810B420:: @ 0810B420 - .incbin "baserom.gba", 0x10B420, 0x0000028 - -gUnk_0810B448:: @ 0810B448 - .incbin "baserom.gba", 0x10B448, 0x0000028 - -gUnk_0810B470:: @ 0810B470 - .incbin "baserom.gba", 0x10B470, 0x0000019 - -gUnk_0810B489:: @ 0810B489 - .incbin "baserom.gba", 0x10B489, 0x0000005 - -gUnk_0810B48E:: @ 0810B48E - .incbin "baserom.gba", 0x10B48E, 0x0000019 - -gUnk_0810B4A7:: @ 0810B4A7 - .incbin "baserom.gba", 0x10B4A7, 0x0000035 - -gUnk_0810B4DC:: @ 0810B4DC - .incbin "baserom.gba", 0x10B4DC, 0x0000010 - -gUnk_0810B4EC:: @ 0810B4EC - .incbin "baserom.gba", 0x10B4EC, 0x0000164 - -gUnk_0810B650:: @ 0810B650 - .incbin "baserom.gba", 0x10B650, 0x0000002 - -gUnk_0810B652:: @ 0810B652 - .incbin "baserom.gba", 0x10B652, 0x0000002 - -gUnk_0810B654:: @ 0810B654 - .incbin "baserom.gba", 0x10B654, 0x0000002 - -gUnk_0810B656:: @ 0810B656 - .incbin "baserom.gba", 0x10B656, 0x0000002 - -gUnk_0810B658:: @ 0810B658 - .incbin "baserom.gba", 0x10B658, 0x0000002 - -gUnk_0810B65A:: @ 0810B65A - .incbin "baserom.gba", 0x10B65A, 0x0000002 - -gUnk_0810B65C:: @ 0810B65C - .incbin "baserom.gba", 0x10B65C, 0x0000002 - -gUnk_0810B65E:: @ 0810B65E - .incbin "baserom.gba", 0x10B65E, 0x0000002 - -gUnk_0810B660:: @ 0810B660 - .incbin "baserom.gba", 0x10B660, 0x0000020 - -gUnk_0810B680:: @ 0810B680 - .incbin "baserom.gba", 0x10B680, 0x000002A - -gUnk_0810B6AA:: @ 0810B6AA - .incbin "baserom.gba", 0x10B6AA, 0x0000009 - -gUnk_0810B6B3:: @ 0810B6B3 - .incbin "baserom.gba", 0x10B6B3, 0x0000021 - -gUnk_0810B6D4:: @ 0810B6D4 - .incbin "baserom.gba", 0x10B6D4, 0x000000C - -gUnk_0810B6E0:: @ 0810B6E0 - .incbin "baserom.gba", 0x10B6E0, 0x000000C - -gUnk_0810B6EC:: @ 0810B6EC - .incbin "baserom.gba", 0x10B6EC, 0x0000054 - -gUnk_0810B740:: @ 0810B740 - .incbin "baserom.gba", 0x10B740, 0x0000008 - -gUnk_0810B748:: @ 0810B748 - .incbin "baserom.gba", 0x10B748, 0x0000002 - -gUnk_0810B74A:: @ 0810B74A - .incbin "baserom.gba", 0x10B74A, 0x0000018 - -gUnk_0810B762:: @ 0810B762 - .incbin "baserom.gba", 0x10B762, 0x0000012 - -gUnk_0810B774:: @ 0810B774 - .incbin "baserom.gba", 0x10B774, 0x0000008 - -gUnk_0810B77C:: @ 0810B77C - .incbin "baserom.gba", 0x10B77C, 0x0000010 - -gUnk_0810B78C:: @ 0810B78C - .incbin "baserom.gba", 0x10B78C, 0x0000004 - -gUnk_0810B790:: @ 0810B790 - .incbin "baserom.gba", 0x10B790, 0x000001C - -gUnk_0810B7AC:: @ 0810B7AC - .incbin "baserom.gba", 0x10B7AC, 0x000000E - -gUnk_0810B7BA:: @ 0810B7BA - .incbin "baserom.gba", 0x10B7BA, 0x0000006 - -gUnk_0810B7C0:: @ 0810B7C0 - .incbin "baserom.gba", 0x10B7C0, 0x000012B - -gUnk_0810B8EB:: @ 0810B8EB - .incbin "baserom.gba", 0x10B8EB, 0x0000037 - -gUnk_0810B922:: @ 0810B922 - .incbin "baserom.gba", 0x10B922, 0x0000049 - -gUnk_0810B96B:: @ 0810B96B - .incbin "baserom.gba", 0x10B96B, 0x0000065 - -gUnk_0810B9D0:: @ 0810B9D0 - .incbin "baserom.gba", 0x10B9D0, 0x0000031 - -gUnk_0810BA01:: @ 0810BA01 - .incbin "baserom.gba", 0x10BA01, 0x0000117 - -gUnk_0810BB18:: @ 0810BB18 - .incbin "baserom.gba", 0x10BB18, 0x0000059 - -gUnk_0810BB71:: @ 0810BB71 - .incbin "baserom.gba", 0x10BB71, 0x000005B - -gUnk_0810BBCC:: @ 0810BBCC - .incbin "baserom.gba", 0x10BBCC, 0x000009C - -gUnk_0810BC68:: @ 0810BC68 - .incbin "baserom.gba", 0x10BC68, 0x0000098 - -gUnk_0810BD00:: @ 0810BD00 - .incbin "baserom.gba", 0x10BD00, 0x0000005 - -gUnk_0810BD05:: @ 0810BD05 - .incbin "baserom.gba", 0x10BD05, 0x0000005 - -gUnk_0810BD0A:: @ 0810BD0A - .incbin "baserom.gba", 0x10BD0A, 0x0000005 - -gUnk_0810BD0F:: @ 0810BD0F - .incbin "baserom.gba", 0x10BD0F, 0x0000005 - -gUnk_0810BD14:: @ 0810BD14 - .incbin "baserom.gba", 0x10BD14, 0x0000011 - -gUnk_0810BD25:: @ 0810BD25 - .incbin "baserom.gba", 0x10BD25, 0x0000011 - -gUnk_0810BD36:: @ 0810BD36 - .incbin "baserom.gba", 0x10BD36, 0x0000011 - -gUnk_0810BD47:: @ 0810BD47 - .incbin "baserom.gba", 0x10BD47, 0x0000011 - -gUnk_0810BD58:: @ 0810BD58 - .incbin "baserom.gba", 0x10BD58, 0x0000016 - -gUnk_0810BD6E:: @ 0810BD6E - .incbin "baserom.gba", 0x10BD6E, 0x000000E - -gUnk_0810BD7C:: @ 0810BD7C - .incbin "baserom.gba", 0x10BD7C, 0x0000010 - -gUnk_0810BD8C:: @ 0810BD8C - .incbin "baserom.gba", 0x10BD8C, 0x0000010 - -gUnk_0810BD9C:: @ 0810BD9C - .incbin "baserom.gba", 0x10BD9C, 0x0000010 - -gUnk_0810BDAC:: @ 0810BDAC - .incbin "baserom.gba", 0x10BDAC, 0x000000C - -gUnk_0810BDB8:: @ 0810BDB8 - .incbin "baserom.gba", 0x10BDB8, 0x000000C - -gUnk_0810BDC4:: @ 0810BDC4 - .incbin "baserom.gba", 0x10BDC4, 0x0000024 - -gUnk_0810BDE8:: @ 0810BDE8 - .incbin "baserom.gba", 0x10BDE8, 0x0000024 - -gUnk_0810BE0C:: @ 0810BE0C - .incbin "baserom.gba", 0x10BE0C, 0x0000003 - -gUnk_0810BE0F:: @ 0810BE0F - .incbin "baserom.gba", 0x10BE0F, 0x0000001 - -gUnk_0810BE10:: @ 0810BE10 - .incbin "baserom.gba", 0x10BE10, 0x0000031 - -gUnk_0810BE41:: @ 0810BE41 - .incbin "baserom.gba", 0x10BE41, 0x00000C2 - -gUnk_0810BF03:: @ 0810BF03 - .incbin "baserom.gba", 0x10BF03, 0x0000104 - -gUnk_0810C007:: @ 0810C007 - .incbin "baserom.gba", 0x10C007, 0x0000008 - -gUnk_0810C00F:: @ 0810C00F - .incbin "baserom.gba", 0x10C00F, 0x0000091 - -gUnk_0810C0A0:: @ 0810C0A0 - .incbin "baserom.gba", 0x10C0A0, 0x0000024 - -gUnk_0810C0C4:: @ 0810C0C4 - .incbin "baserom.gba", 0x10C0C4, 0x0000005 - -gUnk_0810C0C9:: @ 0810C0C9 - .incbin "baserom.gba", 0x10C0C9, 0x0000005 - -gUnk_0810C0CE:: @ 0810C0CE - .incbin "baserom.gba", 0x10C0CE, 0x0000005 - -gUnk_0810C0D3:: @ 0810C0D3 - .incbin "baserom.gba", 0x10C0D3, 0x0000005 - -gUnk_0810C0D8:: @ 0810C0D8 - .incbin "baserom.gba", 0x10C0D8, 0x0000011 - -gUnk_0810C0E9:: @ 0810C0E9 - .incbin "baserom.gba", 0x10C0E9, 0x0000011 - -gUnk_0810C0FA:: @ 0810C0FA - .incbin "baserom.gba", 0x10C0FA, 0x0000011 - -gUnk_0810C10B:: @ 0810C10B - .incbin "baserom.gba", 0x10C10B, 0x0000011 - -gUnk_0810C11C:: @ 0810C11C - .incbin "baserom.gba", 0x10C11C, 0x0000019 - -gUnk_0810C135:: @ 0810C135 - .incbin "baserom.gba", 0x10C135, 0x0000019 - -gUnk_0810C14E:: @ 0810C14E - .incbin "baserom.gba", 0x10C14E, 0x0000019 - -gUnk_0810C167:: @ 0810C167 - .incbin "baserom.gba", 0x10C167, 0x0000019 - -gUnk_0810C180:: @ 0810C180 - .incbin "baserom.gba", 0x10C180, 0x0000019 - -gUnk_0810C199:: @ 0810C199 - .incbin "baserom.gba", 0x10C199, 0x000000D - -gUnk_0810C1A6:: @ 0810C1A6 - .incbin "baserom.gba", 0x10C1A6, 0x0000018 - -gUnk_0810C1BE:: @ 0810C1BE - .incbin "baserom.gba", 0x10C1BE, 0x000000F - -gUnk_0810C1CD:: @ 0810C1CD - .incbin "baserom.gba", 0x10C1CD, 0x000000A - -gUnk_0810C1D7:: @ 0810C1D7 - .incbin "baserom.gba", 0x10C1D7, 0x0000005 - -gUnk_0810C1DC:: @ 0810C1DC - .incbin "baserom.gba", 0x10C1DC, 0x0000008 - -gUnk_0810C1E4:: @ 0810C1E4 - .incbin "baserom.gba", 0x10C1E4, 0x0000021 - -gUnk_0810C205:: @ 0810C205 - .incbin "baserom.gba", 0x10C205, 0x0000001 - -gUnk_0810C206:: @ 0810C206 - .incbin "baserom.gba", 0x10C206, 0x0000062 - -gUnk_0810C268:: @ 0810C268 - .incbin "baserom.gba", 0x10C268, 0x0000008 - -gUnk_0810C270:: @ 0810C270 - .incbin "baserom.gba", 0x10C270, 0x0000005 - -gUnk_0810C275:: @ 0810C275 - .incbin "baserom.gba", 0x10C275, 0x0000005 - -gUnk_0810C27A:: @ 0810C27A - .incbin "baserom.gba", 0x10C27A, 0x0000016 - -gUnk_0810C290:: @ 0810C290 - .incbin "baserom.gba", 0x10C290, 0x0000010 - -gUnk_0810C2A0:: @ 0810C2A0 - .incbin "baserom.gba", 0x10C2A0, 0x0000005 - -gUnk_0810C2A5:: @ 0810C2A5 - .incbin "baserom.gba", 0x10C2A5, 0x000000D - -gUnk_0810C2B2:: @ 0810C2B2 - .incbin "baserom.gba", 0x10C2B2, 0x000001A - -gStampBehaviors1:: @ 0810C2CC - .incbin "baserom.gba", 0x10C2CC, 0x0000010 - -gStampBehaviors2:: @ 0810C2DC - .incbin "baserom.gba", 0x10C2DC, 0x0000008 - -gUnk_0810C2E4:: @ 0810C2E4 - .incbin "baserom.gba", 0x10C2E4, 0x0000010 - -gUnk_0810C2F4:: @ 0810C2F4 - .incbin "baserom.gba", 0x10C2F4, 0x0000031 - -gUnk_0810C325:: @ 0810C325 - .incbin "baserom.gba", 0x10C325, 0x0000007 - -gUnk_0810C32C:: @ 0810C32C - .incbin "baserom.gba", 0x10C32C, 0x0000020 - -gUnk_0810C34C:: @ 0810C34C - .incbin "baserom.gba", 0x10C34C, 0x0000014 - -gUnk_0810C360:: @ 0810C360 - .incbin "baserom.gba", 0x10C360, 0x0000005 - -gUnk_0810C365:: @ 0810C365 - .incbin "baserom.gba", 0x10C365, 0x000001D - -gUnk_0810C382:: @ 0810C382 - .incbin "baserom.gba", 0x10C382, 0x000000E - -gUnk_0810C390:: @ 0810C390 - .incbin "baserom.gba", 0x10C390, 0x000000A - -gUnk_0810C39A:: @ 0810C39A - .incbin "baserom.gba", 0x10C39A, 0x0000026 - -gUnk_0810C3C0:: @ 0810C3C0 - .incbin "baserom.gba", 0x10C3C0, 0x0000008 - -gUnk_0810C3C8:: @ 0810C3C8 - .incbin "baserom.gba", 0x10C3C8, 0x0000019 - -gUnk_0810C3E1:: @ 0810C3E1 - .incbin "baserom.gba", 0x10C3E1, 0x0000011 - -gUnk_0810C3F2:: @ 0810C3F2 - .incbin "baserom.gba", 0x10C3F2, 0x0000011 - -gUnk_0810C403:: @ 0810C403 - .incbin "baserom.gba", 0x10C403, 0x0000011 - -gUnk_0810C414:: @ 0810C414 - .incbin "baserom.gba", 0x10C414, 0x0000001 - -gUnk_0810C415:: @ 0810C415 - .incbin "baserom.gba", 0x10C415, 0x0000013 - -gUnk_0810C428:: @ 0810C428 - .incbin "baserom.gba", 0x10C428, 0x0000008 - -gUnk_0810C430:: @ 0810C430 - .incbin "baserom.gba", 0x10C430, 0x0000005 - -gUnk_0810C435:: @ 0810C435 - .incbin "baserom.gba", 0x10C435, 0x0000008 - -gUnk_0810C43D:: @ 0810C43D - .incbin "baserom.gba", 0x10C43D, 0x0000008 - -gUnk_0810C445:: @ 0810C445 - .incbin "baserom.gba", 0x10C445, 0x0000005 - -gUnk_0810C44A:: @ 0810C44A - .incbin "baserom.gba", 0x10C44A, 0x000001E - -gUnk_0810C468:: @ 0810C468 - .incbin "baserom.gba", 0x10C468, 0x0000024 - -gUnk_0810C48C:: @ 0810C48C - .incbin "baserom.gba", 0x10C48C, 0x000000C - -gUnk_0810C498:: @ 0810C498 - .incbin "baserom.gba", 0x10C498, 0x0000008 - -gUnk_0810C4A0:: @ 0810C4A0 - .incbin "baserom.gba", 0x10C4A0, 0x0000005 - -gUnk_0810C4A5:: @ 0810C4A5 - .incbin "baserom.gba", 0x10C4A5, 0x0000005 - -gUnk_0810C4AA:: @ 0810C4AA - .incbin "baserom.gba", 0x10C4AA, 0x0000005 - -gUnk_0810C4AF:: @ 0810C4AF - .incbin "baserom.gba", 0x10C4AF, 0x0000005 - -gUnk_0810C4B4:: @ 0810C4B4 - .incbin "baserom.gba", 0x10C4B4, 0x0000015 - -gUnk_0810C4C9:: @ 0810C4C9 - .incbin "baserom.gba", 0x10C4C9, 0x0000015 - -gUnk_0810C4DE:: @ 0810C4DE - .incbin "baserom.gba", 0x10C4DE, 0x00000D1 - -gUnk_0810C5AF:: @ 0810C5AF - .incbin "baserom.gba", 0x10C5AF, 0x000000C - -gUnk_0810C5BB:: @ 0810C5BB - .incbin "baserom.gba", 0x10C5BB, 0x0000008 - -gUnk_0810C5C3:: @ 0810C5C3 - .incbin "baserom.gba", 0x10C5C3, 0x00000AB - -gUnk_0810C66E:: @ 0810C66E - .incbin "baserom.gba", 0x10C66E, 0x000001E - -gUnk_0810C68C:: @ 0810C68C - .incbin "baserom.gba", 0x10C68C, 0x000000C - -gUnk_0810C698:: @ 0810C698 - .incbin "baserom.gba", 0x10C698, 0x000004D - -gUnk_0810C6E5:: @ 0810C6E5 - .incbin "baserom.gba", 0x10C6E5, 0x000008D - -gUnk_0810C772:: @ 0810C772 - .incbin "baserom.gba", 0x10C772, 0x0000003 - -gUnk_0810C775:: @ 0810C775 - .incbin "baserom.gba", 0x10C775, 0x000000A - -gUnk_0810C77F:: @ 0810C77F - .incbin "baserom.gba", 0x10C77F, 0x000002D - -gUnk_0810C7AC:: @ 0810C7AC - .incbin "baserom.gba", 0x10C7AC, 0x0000008 - -gUnk_0810C7B4:: @ 0810C7B4 - .incbin "baserom.gba", 0x10C7B4, 0x000000A - -gUnk_0810C7BE:: @ 0810C7BE - .incbin "baserom.gba", 0x10C7BE, 0x000000B - -gUnk_0810C7C9:: @ 0810C7C9 - .incbin "baserom.gba", 0x10C7C9, 0x000000B - -gUnk_0810C7D4:: @ 0810C7D4 - .incbin "baserom.gba", 0x10C7D4, 0x0000030 - -gMailboxBehaviors:: @ 0810C804 - .incbin "baserom.gba", 0x10C804, 0x0000010 - -gUnk_0810C814:: @ 0810C814 - .incbin "baserom.gba", 0x10C814, 0x0000005 - -gUnk_0810C819:: @ 0810C819 - .incbin "baserom.gba", 0x10C819, 0x0000029 - -gUnk_0810C842:: @ 0810C842 - .incbin "baserom.gba", 0x10C842, 0x0000008 - -gUnk_0810C84A:: @ 0810C84A - .incbin "baserom.gba", 0x10C84A, 0x000001E - -gUnk_0810C868:: @ 0810C868 - .incbin "baserom.gba", 0x10C868, 0x0000024 - -gUnk_0810C88C:: @ 0810C88C - .incbin "baserom.gba", 0x10C88C, 0x0000008 - -gUnk_0810C894:: @ 0810C894 - .incbin "baserom.gba", 0x10C894, 0x0000008 - -gUnk_0810C89C:: @ 0810C89C - .incbin "baserom.gba", 0x10C89C, 0x0000011 - -gUnk_0810C8AD:: @ 0810C8AD - .incbin "baserom.gba", 0x10C8AD, 0x0000027 - -gUnk_0810C8D4:: @ 0810C8D4 - .incbin "baserom.gba", 0x10C8D4, 0x000000C - -gUnk_0810C8E0:: @ 0810C8E0 - .incbin "baserom.gba", 0x10C8E0, 0x0000010 - -gUnk_0810C8F0:: @ 0810C8F0 - .incbin "baserom.gba", 0x10C8F0, 0x0000078 - -gUnk_0810C968:: @ 0810C968 - .incbin "baserom.gba", 0x10C968, 0x000003D - -gUnk_0810C9A5:: @ 0810C9A5 - .incbin "baserom.gba", 0x10C9A5, 0x0000005 - -gUnk_0810C9AA:: @ 0810C9AA - .incbin "baserom.gba", 0x10C9AA, 0x0000005 - -gUnk_0810C9AF:: @ 0810C9AF - .incbin "baserom.gba", 0x10C9AF, 0x0000005 - -gUnk_0810C9B4:: @ 0810C9B4 - .incbin "baserom.gba", 0x10C9B4, 0x000003D - -gUnk_0810C9F1:: @ 0810C9F1 - .incbin "baserom.gba", 0x10C9F1, 0x000003D - -gUnk_0810CA2E:: @ 0810CA2E - .incbin "baserom.gba", 0x10CA2E, 0x000003E - -gUnk_0810CA6C:: @ 0810CA6C - .incbin "baserom.gba", 0x10CA6C, 0x0000034 - -gUnk_0810CAA0:: @ 0810CAA0 - .incbin "baserom.gba", 0x10CAA0, 0x000000C - -gUnk_0810CAAC:: @ 0810CAAC - .incbin "baserom.gba", 0x10CAAC, 0x0000050 - -gUnk_0810CAFC:: @ 0810CAFC - .incbin "baserom.gba", 0x10CAFC, 0x0000049 - -gUnk_0810CB45:: @ 0810CB45 - .incbin "baserom.gba", 0x10CB45, 0x0000005 - -gUnk_0810CB4A:: @ 0810CB4A - .incbin "baserom.gba", 0x10CB4A, 0x0000005 - -gUnk_0810CB4F:: @ 0810CB4F - .incbin "baserom.gba", 0x10CB4F, 0x0000005 - -gUnk_0810CB54:: @ 0810CB54 - .incbin "baserom.gba", 0x10CB54, 0x0000018 - -gUnk_0810CB6C:: @ 0810CB6C - .incbin "baserom.gba", 0x10CB6C, 0x000000C - -gUnk_0810CB78:: @ 0810CB78 - .incbin "baserom.gba", 0x10CB78, 0x0000048 - -gUnk_0810CBC0:: @ 0810CBC0 - .incbin "baserom.gba", 0x10CBC0, 0x000000D - -gUnk_0810CBCD:: @ 0810CBCD - .incbin "baserom.gba", 0x10CBCD, 0x000000B - -gUnk_0810CBD8:: @ 0810CBD8 - .incbin "baserom.gba", 0x10CBD8, 0x000000C - -gUnk_0810CBE4:: @ 0810CBE4 - .incbin "baserom.gba", 0x10CBE4, 0x0000020 - -gUnk_0810CC04:: @ 0810CC04 - .incbin "baserom.gba", 0x10CC04, 0x0000004 - -gUnk_0810CC08:: @ 0810CC08 - .incbin "baserom.gba", 0x10CC08, 0x0000180 - -gUnk_0810CD88:: @ 0810CD88 - .incbin "baserom.gba", 0x10CD88, 0x0000018 - -gUnk_0810CDA0:: @ 0810CDA0 - .incbin "baserom.gba", 0x10CDA0, 0x0000011 - -gUnk_0810CDB1:: @ 0810CDB1 - .incbin "baserom.gba", 0x10CDB1, 0x0000011 - -gUnk_0810CDC2:: @ 0810CDC2 - .incbin "baserom.gba", 0x10CDC2, 0x0000012 - -gUnk_0810CDD4:: @ 0810CDD4 - .incbin "baserom.gba", 0x10CDD4, 0x0000024 - -gUnk_0810CDF8:: @ 0810CDF8 - .incbin "baserom.gba", 0x10CDF8, 0x000000C - -gUnk_0810CE04:: @ 0810CE04 - .incbin "baserom.gba", 0x10CE04, 0x0000050 - -gUnk_0810CE54:: @ 0810CE54 - .incbin "baserom.gba", 0x10CE54, 0x0000013 - -gUnk_0810CE67:: @ 0810CE67 - .incbin "baserom.gba", 0x10CE67, 0x000003A - -gUnk_0810CEA1:: @ 0810CEA1 - .incbin "baserom.gba", 0x10CEA1, 0x000004D - -gUnk_0810CEEE:: @ 0810CEEE - .incbin "baserom.gba", 0x10CEEE, 0x0000021 - -gUnk_0810CF0F:: @ 0810CF0F - .incbin "baserom.gba", 0x10CF0F, 0x0000005 - -gUnk_0810CF14:: @ 0810CF14 - .incbin "baserom.gba", 0x10CF14, 0x0000005 - -gUnk_0810CF19:: @ 0810CF19 - .incbin "baserom.gba", 0x10CF19, 0x0000007 - -gUnk_0810CF20:: @ 0810CF20 - .incbin "baserom.gba", 0x10CF20, 0x000002A - -gUnk_0810CF4A:: @ 0810CF4A - .incbin "baserom.gba", 0x10CF4A, 0x0000002 - -gUnk_0810CF4C:: @ 0810CF4C - .incbin "baserom.gba", 0x10CF4C, 0x000002B - -gUnk_0810CF77:: @ 0810CF77 - .incbin "baserom.gba", 0x10CF77, 0x0000010 - -gUnk_0810CF87:: @ 0810CF87 - .incbin "baserom.gba", 0x10CF87, 0x0000057 - -gUnk_0810CFDE:: @ 0810CFDE - .incbin "baserom.gba", 0x10CFDE, 0x0000039 - -gUnk_0810D017:: @ 0810D017 - .incbin "baserom.gba", 0x10D017, 0x000008D - -gUnk_0810D0A4:: @ 0810D0A4 - .incbin "baserom.gba", 0x10D0A4, 0x0000008 - -gUnk_0810D0AC:: @ 0810D0AC - .incbin "baserom.gba", 0x10D0AC, 0x000001E - -gUnk_0810D0CA:: @ 0810D0CA - .incbin "baserom.gba", 0x10D0CA, 0x0000009 - -gUnk_0810D0D3:: @ 0810D0D3 - .incbin "baserom.gba", 0x10D0D3, 0x0000079 - -gUnk_0810D14C:: @ 0810D14C - .incbin "baserom.gba", 0x10D14C, 0x0000227 - -gUnk_0810D373:: @ 0810D373 - .incbin "baserom.gba", 0x10D373, 0x0000003 - -gUnk_0810D376:: @ 0810D376 - .incbin "baserom.gba", 0x10D376, 0x0000013 - -gUnk_0810D389:: @ 0810D389 - .incbin "baserom.gba", 0x10D389, 0x000003E - -gUnk_0810D3C7:: @ 0810D3C7 - .incbin "baserom.gba", 0x10D3C7, 0x0000040 - -gUnk_0810D407:: @ 0810D407 - .incbin "baserom.gba", 0x10D407, 0x00000C7 - -gUnk_0810D4CE:: @ 0810D4CE - .incbin "baserom.gba", 0x10D4CE, 0x0000007 - -gUnk_0810D4D5:: @ 0810D4D5 - .incbin "baserom.gba", 0x10D4D5, 0x000003C - -gUnk_0810D511:: @ 0810D511 - .incbin "baserom.gba", 0x10D511, 0x0000006 - -gUnk_0810D517:: @ 0810D517 - .incbin "baserom.gba", 0x10D517, 0x0000039 - -gUnk_0810D550:: @ 0810D550 - .incbin "baserom.gba", 0x10D550, 0x0000024 - -gUnk_0810D574:: @ 0810D574 - .incbin "baserom.gba", 0x10D574, 0x000005F - -gUnk_0810D5D3:: @ 0810D5D3 - .incbin "baserom.gba", 0x10D5D3, 0x00000DE - -gUnk_0810D6B1:: @ 0810D6B1 - .incbin "baserom.gba", 0x10D6B1, 0x0000056 - -gUnk_0810D707:: @ 0810D707 - .incbin "baserom.gba", 0x10D707, 0x00000D2 - -gUnk_0810D7D9:: @ 0810D7D9 - .incbin "baserom.gba", 0x10D7D9, 0x000002E - -gUnk_0810D807:: @ 0810D807 - .incbin "baserom.gba", 0x10D807, 0x0000021 - -gUnk_0810D828:: @ 0810D828 - .incbin "baserom.gba", 0x10D828, 0x00000DF - -gUnk_0810D907:: @ 0810D907 - .incbin "baserom.gba", 0x10D907, 0x0000100 - -gUnk_0810DA07:: @ 0810DA07 - .incbin "baserom.gba", 0x10DA07, 0x0000007 - -gUnk_0810DA0E:: @ 0810DA0E - .incbin "baserom.gba", 0x10DA0E, 0x00000B2 - -gUnk_0810DAC0:: @ 0810DAC0 - .incbin "baserom.gba", 0x10DAC0, 0x0000041 - -gUnk_0810DB01:: @ 0810DB01 - .incbin "baserom.gba", 0x10DB01, 0x0000003 - -gUnk_0810DB04:: @ 0810DB04 - .incbin "baserom.gba", 0x10DB04, 0x0000005 - -gUnk_0810DB09:: @ 0810DB09 - .incbin "baserom.gba", 0x10DB09, 0x00000FB - -gUnk_0810DC04:: @ 0810DC04 - .incbin "baserom.gba", 0x10DC04, 0x0000017 - -gUnk_0810DC1B:: @ 0810DC1B - .incbin "baserom.gba", 0x10DC1B, 0x00000C0 - -gUnk_0810DCDB:: @ 0810DCDB - .incbin "baserom.gba", 0x10DCDB, 0x0000001 - -gUnk_0810DCDC:: @ 0810DCDC - .incbin "baserom.gba", 0x10DCDC, 0x000012B - -gUnk_0810DE07:: @ 0810DE07 - .incbin "baserom.gba", 0x10DE07, 0x0000046 - -gUnk_0810DE4D:: @ 0810DE4D - .incbin "baserom.gba", 0x10DE4D, 0x0000293 - -gUnk_0810E0E0:: @ 0810E0E0 - .incbin "baserom.gba", 0x10E0E0, 0x0000011 - -gUnk_0810E0F1:: @ 0810E0F1 - .incbin "baserom.gba", 0x10E0F1, 0x000000C - -gUnk_0810E0FD:: @ 0810E0FD - .incbin "baserom.gba", 0x10E0FD, 0x00000C6 - -gUnk_0810E1C3:: @ 0810E1C3 - .incbin "baserom.gba", 0x10E1C3, 0x000002D - -gUnk_0810E1F0:: @ 0810E1F0 - .incbin "baserom.gba", 0x10E1F0, 0x00000FD - -gUnk_0810E2ED:: @ 0810E2ED - .incbin "baserom.gba", 0x10E2ED, 0x0000116 - -gUnk_0810E403:: @ 0810E403 - .incbin "baserom.gba", 0x10E403, 0x000000A - -gUnk_0810E40D:: @ 0810E40D - .incbin "baserom.gba", 0x10E40D, 0x0000009 - -gUnk_0810E416:: @ 0810E416 - .incbin "baserom.gba", 0x10E416, 0x0000072 - -gUnk_0810E488:: @ 0810E488 - .incbin "baserom.gba", 0x10E488, 0x000008E - -gUnk_0810E516:: @ 0810E516 - .incbin "baserom.gba", 0x10E516, 0x000007B - -gUnk_0810E591:: @ 0810E591 - .incbin "baserom.gba", 0x10E591, 0x000005A - -gUnk_0810E5EB:: @ 0810E5EB - .incbin "baserom.gba", 0x10E5EB, 0x000001C - -gUnk_0810E607:: @ 0810E607 - .incbin "baserom.gba", 0x10E607, 0x00000E1 - -gUnk_0810E6E8:: @ 0810E6E8 - .incbin "baserom.gba", 0x10E6E8, 0x0000021 - -gUnk_0810E709:: @ 0810E709 - .incbin "baserom.gba", 0x10E709, 0x00000DB - -gUnk_0810E7E4:: @ 0810E7E4 - .incbin "baserom.gba", 0x10E7E4, 0x000000B - -gUnk_0810E7EF:: @ 0810E7EF - .incbin "baserom.gba", 0x10E7EF, 0x0000009 - -gUnk_0810E7F8:: @ 0810E7F8 - .incbin "baserom.gba", 0x10E7F8, 0x000000F - -gUnk_0810E807:: @ 0810E807 - .incbin "baserom.gba", 0x10E807, 0x0000001 - -gUnk_0810E808:: @ 0810E808 - .incbin "baserom.gba", 0x10E808, 0x00000F0 - -gUnk_0810E8F8:: @ 0810E8F8 - .incbin "baserom.gba", 0x10E8F8, 0x00000F8 - -gUnk_0810E9F0:: @ 0810E9F0 - .incbin "baserom.gba", 0x10E9F0, 0x0000100 - -gUnk_0810EAF0:: @ 0810EAF0 - .incbin "baserom.gba", 0x10EAF0, 0x000000E - -gUnk_0810EAFE:: @ 0810EAFE - .incbin "baserom.gba", 0x10EAFE, 0x000003E - -gUnk_0810EB3C:: @ 0810EB3C - .incbin "baserom.gba", 0x10EB3C, 0x000001F - -gUnk_0810EB5B:: @ 0810EB5B - .incbin "baserom.gba", 0x10EB5B, 0x0000064 - -gUnk_0810EBBF:: @ 0810EBBF - .incbin "baserom.gba", 0x10EBBF, 0x0000010 - -gUnk_0810EBCF:: @ 0810EBCF - .incbin "baserom.gba", 0x10EBCF, 0x0000010 - -gUnk_0810EBDF:: @ 0810EBDF - .incbin "baserom.gba", 0x10EBDF, 0x0000029 - -gUnk_0810EC08:: @ 0810EC08 - .incbin "baserom.gba", 0x10EC08, 0x00000FC - -gUnk_0810ED04:: @ 0810ED04 - .incbin "baserom.gba", 0x10ED04, 0x0000005 - -gUnk_0810ED09:: @ 0810ED09 - .incbin "baserom.gba", 0x10ED09, 0x00000E0 - -gUnk_0810EDE9:: @ 0810EDE9 - .incbin "baserom.gba", 0x10EDE9, 0x0000008 - -gUnk_0810EDF1:: @ 0810EDF1 - .incbin "baserom.gba", 0x10EDF1, 0x0000036 - -gUnk_0810EE27:: @ 0810EE27 - .incbin "baserom.gba", 0x10EE27, 0x0000056 - -gUnk_0810EE7D:: @ 0810EE7D - .incbin "baserom.gba", 0x10EE7D, 0x0000080 - -gUnk_0810EEFD:: @ 0810EEFD - .incbin "baserom.gba", 0x10EEFD, 0x0000148 - -gUnk_0810F045:: @ 0810F045 - .incbin "baserom.gba", 0x10F045, 0x00000AA - -gUnk_0810F0EF:: @ 0810F0EF - .incbin "baserom.gba", 0x10F0EF, 0x0000001 - -gUnk_0810F0F0:: @ 0810F0F0 - .incbin "baserom.gba", 0x10F0F0, 0x0000208 - -gUnk_0810F2F8:: @ 0810F2F8 - .incbin "baserom.gba", 0x10F2F8, 0x0000006 - -gUnk_0810F2FE:: @ 0810F2FE - .incbin "baserom.gba", 0x10F2FE, 0x0000100 - -gUnk_0810F3FE:: @ 0810F3FE - .incbin "baserom.gba", 0x10F3FE, 0x0000002 - -gUnk_0810F400:: @ 0810F400 - .incbin "baserom.gba", 0x10F400, 0x00000E6 - -gUnk_0810F4E6:: @ 0810F4E6 - .incbin "baserom.gba", 0x10F4E6, 0x000000B - -gUnk_0810F4F1:: @ 0810F4F1 - .incbin "baserom.gba", 0x10F4F1, 0x0000007 - -gUnk_0810F4F8:: @ 0810F4F8 - .incbin "baserom.gba", 0x10F4F8, 0x000002C - -gUnk_0810F524:: @ 0810F524 - .incbin "baserom.gba", 0x10F524, 0x0000020 - -gUnk_0810F544:: @ 0810F544 - .incbin "baserom.gba", 0x10F544, 0x000000C - -gUnk_0810F550:: @ 0810F550 - .incbin "baserom.gba", 0x10F550, 0x0000010 - -gUnk_0810F560:: @ 0810F560 - .incbin "baserom.gba", 0x10F560, 0x000003A - -gUnk_0810F59A:: @ 0810F59A - .incbin "baserom.gba", 0x10F59A, 0x000003A - -gUnk_0810F5D4:: @ 0810F5D4 - .incbin "baserom.gba", 0x10F5D4, 0x000001F - -gUnk_0810F5F3:: @ 0810F5F3 - .incbin "baserom.gba", 0x10F5F3, 0x0000005 - -gUnk_0810F5F8:: @ 0810F5F8 - .incbin "baserom.gba", 0x10F5F8, 0x0000016 - -gUnk_0810F60E:: @ 0810F60E - .incbin "baserom.gba", 0x10F60E, 0x0000005 - -gUnk_0810F613:: @ 0810F613 - .incbin "baserom.gba", 0x10F613, 0x0000007 - -gUnk_0810F61A:: @ 0810F61A - .incbin "baserom.gba", 0x10F61A, 0x000002E - -gUnk_0810F648:: @ 0810F648 - .incbin "baserom.gba", 0x10F648, 0x000003A - -gUnk_0810F682:: @ 0810F682 - .incbin "baserom.gba", 0x10F682, 0x000003A - -gUnk_0810F6BC:: @ 0810F6BC - .incbin "baserom.gba", 0x10F6BC, 0x0000018 - -gUnk_0810F6D4:: @ 0810F6D4 - .incbin "baserom.gba", 0x10F6D4, 0x0000010 - -gUnk_0810F6E4:: @ 0810F6E4 - .incbin "baserom.gba", 0x10F6E4, 0x0000002 - -gUnk_0810F6E6:: @ 0810F6E6 - .incbin "baserom.gba", 0x10F6E6, 0x0000003 - -gUnk_0810F6E9:: @ 0810F6E9 - .incbin "baserom.gba", 0x10F6E9, 0x0000005 - -gUnk_0810F6EE:: @ 0810F6EE - .incbin "baserom.gba", 0x10F6EE, 0x0000001 - -gUnk_0810F6EF:: @ 0810F6EF - .incbin "baserom.gba", 0x10F6EF, 0x0000004 - -gUnk_0810F6F3:: @ 0810F6F3 - .incbin "baserom.gba", 0x10F6F3, 0x0000005 - -gUnk_0810F6F8:: @ 0810F6F8 - .incbin "baserom.gba", 0x10F6F8, 0x0000005 - -gUnk_0810F6FD:: @ 0810F6FD - .incbin "baserom.gba", 0x10F6FD, 0x0000003 - -gUnk_0810F700:: @ 0810F700 - .incbin "baserom.gba", 0x10F700, 0x0000002 - -gUnk_0810F702:: @ 0810F702 - .incbin "baserom.gba", 0x10F702, 0x0000005 - -gUnk_0810F707:: @ 0810F707 - .incbin "baserom.gba", 0x10F707, 0x0000005 - -gUnk_0810F70C:: @ 0810F70C - .incbin "baserom.gba", 0x10F70C, 0x0000011 - -gUnk_0810F71D:: @ 0810F71D - .incbin "baserom.gba", 0x10F71D, 0x0000011 - -gUnk_0810F72E:: @ 0810F72E - .incbin "baserom.gba", 0x10F72E, 0x0000011 - -gUnk_0810F73F:: @ 0810F73F - .incbin "baserom.gba", 0x10F73F, 0x0000011 - -gUnk_0810F750:: @ 0810F750 - .incbin "baserom.gba", 0x10F750, 0x0000011 - -gUnk_0810F761:: @ 0810F761 - .incbin "baserom.gba", 0x10F761, 0x0000011 - -gUnk_0810F772:: @ 0810F772 - .incbin "baserom.gba", 0x10F772, 0x0000011 - -gUnk_0810F783:: @ 0810F783 - .incbin "baserom.gba", 0x10F783, 0x0000011 - -gUnk_0810F794:: @ 0810F794 - .incbin "baserom.gba", 0x10F794, 0x0000005 - -gUnk_0810F799:: @ 0810F799 - .incbin "baserom.gba", 0x10F799, 0x0000025 - -gUnk_0810F7BE:: @ 0810F7BE - .incbin "baserom.gba", 0x10F7BE, 0x0000005 - -gUnk_0810F7C3:: @ 0810F7C3 - .incbin "baserom.gba", 0x10F7C3, 0x0000005 - -gUnk_0810F7C8:: @ 0810F7C8 - .incbin "baserom.gba", 0x10F7C8, 0x0000020 - -gUnk_0810F7E8:: @ 0810F7E8 - .incbin "baserom.gba", 0x10F7E8, 0x0000003 - -gUnk_0810F7EB:: @ 0810F7EB - .incbin "baserom.gba", 0x10F7EB, 0x0000003 - -gUnk_0810F7EE:: @ 0810F7EE - .incbin "baserom.gba", 0x10F7EE, 0x000000A - -gUnk_0810F7F8:: @ 0810F7F8 - .incbin "baserom.gba", 0x10F7F8, 0x0000005 - -gUnk_0810F7FD:: @ 0810F7FD - .incbin "baserom.gba", 0x10F7FD, 0x0000003 - -gUnk_0810F800:: @ 0810F800 - .incbin "baserom.gba", 0x10F800, 0x0000002 - -gUnk_0810F802:: @ 0810F802 - .incbin "baserom.gba", 0x10F802, 0x0000006 - -gUnk_0810F808:: @ 0810F808 - .incbin "baserom.gba", 0x10F808, 0x000000C - -gUnk_0810F814:: @ 0810F814 - .incbin "baserom.gba", 0x10F814, 0x0000060 - -gUnk_0810F874:: @ 0810F874 - .incbin "baserom.gba", 0x10F874, 0x0000018 - -gUnk_0810F88C:: @ 0810F88C - .incbin "baserom.gba", 0x10F88C, 0x0000008 - -gUnk_0810F894:: @ 0810F894 - .incbin "baserom.gba", 0x10F894, 0x0000024 - -gUnk_0810F8B8:: @ 0810F8B8 - .incbin "baserom.gba", 0x10F8B8, 0x0000018 - -gUnk_0810F8D0:: @ 0810F8D0 - .incbin "baserom.gba", 0x10F8D0, 0x0000014 - -gUnk_0810F8E4:: @ 0810F8E4 - .incbin "baserom.gba", 0x10F8E4, 0x0000005 - -gUnk_0810F8E9:: @ 0810F8E9 - .incbin "baserom.gba", 0x10F8E9, 0x0000005 - -gUnk_0810F8EE:: @ 0810F8EE - .incbin "baserom.gba", 0x10F8EE, 0x0000001 - -gUnk_0810F8EF:: @ 0810F8EF - .incbin "baserom.gba", 0x10F8EF, 0x0000004 - -gUnk_0810F8F3:: @ 0810F8F3 - .incbin "baserom.gba", 0x10F8F3, 0x0000001 - -gUnk_0810F8F4:: @ 0810F8F4 - .incbin "baserom.gba", 0x10F8F4, 0x0000004 - -gUnk_0810F8F8:: @ 0810F8F8 - .incbin "baserom.gba", 0x10F8F8, 0x0000001 - -gUnk_0810F8F9:: @ 0810F8F9 - .incbin "baserom.gba", 0x10F8F9, 0x0000010 - -gUnk_0810F909:: @ 0810F909 - .incbin "baserom.gba", 0x10F909, 0x0000011 - -gUnk_0810F91A:: @ 0810F91A - .incbin "baserom.gba", 0x10F91A, 0x0000011 - -gUnk_0810F92B:: @ 0810F92B - .incbin "baserom.gba", 0x10F92B, 0x0000011 - -gUnk_0810F93C:: @ 0810F93C - .incbin "baserom.gba", 0x10F93C, 0x0000008 - -gUnk_0810F944:: @ 0810F944 - .incbin "baserom.gba", 0x10F944, 0x0000028 - -gUnk_0810F96C:: @ 0810F96C - .incbin "baserom.gba", 0x10F96C, 0x0000005 - -gUnk_0810F971:: @ 0810F971 - .incbin "baserom.gba", 0x10F971, 0x0000005 - -gUnk_0810F976:: @ 0810F976 - .incbin "baserom.gba", 0x10F976, 0x0000005 - -gUnk_0810F97B:: @ 0810F97B - .incbin "baserom.gba", 0x10F97B, 0x0000011 - -gUnk_0810F98C:: @ 0810F98C - .incbin "baserom.gba", 0x10F98C, 0x0000024 - -gUnk_0810F9B0:: @ 0810F9B0 - .incbin "baserom.gba", 0x10F9B0, 0x0000005 - -gUnk_0810F9B5:: @ 0810F9B5 - .incbin "baserom.gba", 0x10F9B5, 0x0000005 - -gUnk_0810F9BA:: @ 0810F9BA - .incbin "baserom.gba", 0x10F9BA, 0x0000005 - -gUnk_0810F9BF:: @ 0810F9BF - .incbin "baserom.gba", 0x10F9BF, 0x0000011 - -gUnk_0810F9D0:: @ 0810F9D0 - .incbin "baserom.gba", 0x10F9D0, 0x0000020 - -gUnk_0810F9F0:: @ 0810F9F0 - .incbin "baserom.gba", 0x10F9F0, 0x0000004 - -gUnk_0810F9F4:: @ 0810F9F4 - .incbin "baserom.gba", 0x10F9F4, 0x0000004 - -gUnk_0810F9F8:: @ 0810F9F8 - .incbin "baserom.gba", 0x10F9F8, 0x0000001 - -gUnk_0810F9F9:: @ 0810F9F9 - .incbin "baserom.gba", 0x10F9F9, 0x0000005 - -gUnk_0810F9FE:: @ 0810F9FE - .incbin "baserom.gba", 0x10F9FE, 0x0000002 - -gUnk_0810FA00:: @ 0810FA00 - .incbin "baserom.gba", 0x10FA00, 0x0000003 - -gUnk_0810FA03:: @ 0810FA03 - .incbin "baserom.gba", 0x10FA03, 0x0000011 - -gUnk_0810FA14:: @ 0810FA14 - .incbin "baserom.gba", 0x10FA14, 0x0000018 - -gUnk_0810FA2C:: @ 0810FA2C - .incbin "baserom.gba", 0x10FA2C, 0x000000C - -gUnk_0810FA38:: @ 0810FA38 - .incbin "baserom.gba", 0x10FA38, 0x000000C - -gUnk_0810FA44:: @ 0810FA44 - .incbin "baserom.gba", 0x10FA44, 0x0000010 - -gUnk_0810FA54:: @ 0810FA54 - .incbin "baserom.gba", 0x10FA54, 0x0000006 - -gUnk_0810FA5A:: @ 0810FA5A - .incbin "baserom.gba", 0x10FA5A, 0x0000097 - -gUnk_0810FAF1:: @ 0810FAF1 - .incbin "baserom.gba", 0x10FAF1, 0x0000002 - -gUnk_0810FAF3:: @ 0810FAF3 - .incbin "baserom.gba", 0x10FAF3, 0x0000004 - -gUnk_0810FAF7:: @ 0810FAF7 - .incbin "baserom.gba", 0x10FAF7, 0x000002D - -gUnk_0810FB24:: @ 0810FB24 - .incbin "baserom.gba", 0x10FB24, 0x0000015 - -gUnk_0810FB39:: @ 0810FB39 - .incbin "baserom.gba", 0x10FB39, 0x0000015 - -gUnk_0810FB4E:: @ 0810FB4E - .incbin "baserom.gba", 0x10FB4E, 0x0000015 - -gUnk_0810FB63:: @ 0810FB63 - .incbin "baserom.gba", 0x10FB63, 0x0000015 - -gUnk_0810FB78:: @ 0810FB78 - .incbin "baserom.gba", 0x10FB78, 0x0000005 - -gUnk_0810FB7D:: @ 0810FB7D - .incbin "baserom.gba", 0x10FB7D, 0x0000005 - -gUnk_0810FB82:: @ 0810FB82 - .incbin "baserom.gba", 0x10FB82, 0x0000005 - -gUnk_0810FB87:: @ 0810FB87 - .incbin "baserom.gba", 0x10FB87, 0x0000005 - -gUnk_0810FB8C:: @ 0810FB8C - .incbin "baserom.gba", 0x10FB8C, 0x0000021 - -gUnk_0810FBAD:: @ 0810FBAD - .incbin "baserom.gba", 0x10FBAD, 0x0000023 - -gUnk_0810FBD0:: @ 0810FBD0 - .incbin "baserom.gba", 0x10FBD0, 0x000001B - -gUnk_0810FBEB:: @ 0810FBEB - .incbin "baserom.gba", 0x10FBEB, 0x000000E - -gUnk_0810FBF9:: @ 0810FBF9 - .incbin "baserom.gba", 0x10FBF9, 0x0000003 - -gUnk_0810FBFC:: @ 0810FBFC - .incbin "baserom.gba", 0x10FBFC, 0x000000C - -gUnk_0810FC08:: @ 0810FC08 - .incbin "baserom.gba", 0x10FC08, 0x0000048 - -gUnk_0810FC50:: @ 0810FC50 - .incbin "baserom.gba", 0x10FC50, 0x0000004 - -gUnk_0810FC54:: @ 0810FC54 - .incbin "baserom.gba", 0x10FC54, 0x000000A - -gUnk_0810FC5E:: @ 0810FC5E - .incbin "baserom.gba", 0x10FC5E, 0x000000A - -gUnk_0810FC68:: @ 0810FC68 - .incbin "baserom.gba", 0x10FC68, 0x0000045 - -gUnk_0810FCAD:: @ 0810FCAD - .incbin "baserom.gba", 0x10FCAD, 0x0000021 - -gUnk_0810FCCE:: @ 0810FCCE - .incbin "baserom.gba", 0x10FCCE, 0x0000026 - -gUnk_0810FCF4:: @ 0810FCF4 - .incbin "baserom.gba", 0x10FCF4, 0x0000022 - -gUnk_0810FD16:: @ 0810FD16 - .incbin "baserom.gba", 0x10FD16, 0x0000056 - -gUnk_0810FD6C:: @ 0810FD6C - .incbin "baserom.gba", 0x10FD6C, 0x0000034 - -gUnk_0810FDA0:: @ 0810FDA0 - .incbin "baserom.gba", 0x10FDA0, 0x0000004 - -gUnk_0810FDA4:: @ 0810FDA4 - .incbin "baserom.gba", 0x10FDA4, 0x0000014 - -gUnk_0810FDB8:: @ 0810FDB8 - .incbin "baserom.gba", 0x10FDB8, 0x0000010 - -gUnk_0810FDC8:: @ 0810FDC8 - .incbin "baserom.gba", 0x10FDC8, 0x0000020 - -gUnk_0810FDE8:: @ 0810FDE8 - .incbin "baserom.gba", 0x10FDE8, 0x0000005 - -gUnk_0810FDED:: @ 0810FDED - .incbin "baserom.gba", 0x10FDED, 0x0000005 - -gUnk_0810FDF2:: @ 0810FDF2 - .incbin "baserom.gba", 0x10FDF2, 0x0000005 - -gUnk_0810FDF7:: @ 0810FDF7 - .incbin "baserom.gba", 0x10FDF7, 0x000000C - -gUnk_0810FE03:: @ 0810FE03 - .incbin "baserom.gba", 0x10FE03, 0x0000005 - -gUnk_0810FE08:: @ 0810FE08 - .incbin "baserom.gba", 0x10FE08, 0x0000017 - -gUnk_0810FE1F:: @ 0810FE1F - .incbin "baserom.gba", 0x10FE1F, 0x0000049 - -gUnk_0810FE68:: @ 0810FE68 - .incbin "baserom.gba", 0x10FE68, 0x0000028 - -gUnk_0810FE90:: @ 0810FE90 - .incbin "baserom.gba", 0x10FE90, 0x0000020 - -gUnk_0810FEB0:: @ 0810FEB0 - .incbin "baserom.gba", 0x10FEB0, 0x000000C - -gUnk_0810FEBC:: @ 0810FEBC - .incbin "baserom.gba", 0x10FEBC, 0x0000008 - -gUnk_0810FEC4:: @ 0810FEC4 - .incbin "baserom.gba", 0x10FEC4, 0x0000014 - -gUnk_0810FED8:: @ 0810FED8 - .incbin "baserom.gba", 0x10FED8, 0x0000008 - -gUnk_0810FEE0:: @ 0810FEE0 - .incbin "baserom.gba", 0x10FEE0, 0x0000005 - -gUnk_0810FEE5:: @ 0810FEE5 - .incbin "baserom.gba", 0x10FEE5, 0x0000005 - -gUnk_0810FEEA:: @ 0810FEEA - .incbin "baserom.gba", 0x10FEEA, 0x0000005 - -gUnk_0810FEEF:: @ 0810FEEF - .incbin "baserom.gba", 0x10FEEF, 0x0000002 - -gUnk_0810FEF1:: @ 0810FEF1 - .incbin "baserom.gba", 0x10FEF1, 0x0000003 - -gUnk_0810FEF4:: @ 0810FEF4 - .incbin "baserom.gba", 0x10FEF4, 0x0000001 - -gUnk_0810FEF5:: @ 0810FEF5 - .incbin "baserom.gba", 0x10FEF5, 0x0000003 - -gUnk_0810FEF8:: @ 0810FEF8 - .incbin "baserom.gba", 0x10FEF8, 0x000000B - -gUnk_0810FF03:: @ 0810FF03 - .incbin "baserom.gba", 0x10FF03, 0x0000002 - -gUnk_0810FF05:: @ 0810FF05 - .incbin "baserom.gba", 0x10FF05, 0x000000A - -gUnk_0810FF0F:: @ 0810FF0F - .incbin "baserom.gba", 0x10FF0F, 0x0000001 - -gUnk_0810FF10:: @ 0810FF10 - .incbin "baserom.gba", 0x10FF10, 0x0000006 - -gUnk_0810FF16:: @ 0810FF16 - .incbin "baserom.gba", 0x10FF16, 0x0000011 - -gUnk_0810FF27:: @ 0810FF27 - .incbin "baserom.gba", 0x10FF27, 0x0000001 - -gUnk_0810FF28:: @ 0810FF28 - .incbin "baserom.gba", 0x10FF28, 0x0000010 - -gUnk_0810FF38:: @ 0810FF38 - .incbin "baserom.gba", 0x10FF38, 0x0000003 - -gUnk_0810FF3B:: @ 0810FF3B - .incbin "baserom.gba", 0x10FF3B, 0x0000021 - -gUnk_0810FF5C:: @ 0810FF5C - .incbin "baserom.gba", 0x10FF5C, 0x0000008 - -gUnk_0810FF64:: @ 0810FF64 - .incbin "baserom.gba", 0x10FF64, 0x000000C - -gUnk_0810FF70:: @ 0810FF70 - .incbin "baserom.gba", 0x10FF70, 0x0000005 - -gUnk_0810FF75:: @ 0810FF75 - .incbin "baserom.gba", 0x10FF75, 0x0000005 - -gUnk_0810FF7A:: @ 0810FF7A - .incbin "baserom.gba", 0x10FF7A, 0x0000004 - -gUnk_0810FF7E:: @ 0810FF7E - .incbin "baserom.gba", 0x10FF7E, 0x0000001 - -gUnk_0810FF7F:: @ 0810FF7F - .incbin "baserom.gba", 0x10FF7F, 0x0000005 - -gUnk_0810FF84:: @ 0810FF84 - .incbin "baserom.gba", 0x10FF84, 0x0000021 - -gUnk_0810FFA5:: @ 0810FFA5 - .incbin "baserom.gba", 0x10FFA5, 0x0000011 - -gUnk_0810FFB6:: @ 0810FFB6 - .incbin "baserom.gba", 0x10FFB6, 0x000000B - -gUnk_0810FFC1:: @ 0810FFC1 - .incbin "baserom.gba", 0x10FFC1, 0x0000016 - -gUnk_0810FFD7:: @ 0810FFD7 - .incbin "baserom.gba", 0x10FFD7, 0x000001F - -gUnk_0810FFF6:: @ 0810FFF6 - .incbin "baserom.gba", 0x10FFF6, 0x0000008 - -gUnk_0810FFFE:: @ 0810FFFE - .incbin "baserom.gba", 0x10FFFE, 0x0000002 - -gUnk_08110000:: @ 08110000 - .incbin "baserom.gba", 0x110000, 0x0000007 - -gUnk_08110007:: @ 08110007 - .incbin "baserom.gba", 0x110007, 0x000000D - -gUnk_08110014:: @ 08110014 - .incbin "baserom.gba", 0x110014, 0x0000013 - -gUnk_08110027:: @ 08110027 - .incbin "baserom.gba", 0x110027, 0x0000001 - -gUnk_08110028:: @ 08110028 - .incbin "baserom.gba", 0x110028, 0x0000044 - -gUnk_0811006C:: @ 0811006C - .incbin "baserom.gba", 0x11006C, 0x0000014 - -gUnk_08110080:: @ 08110080 - .incbin "baserom.gba", 0x110080, 0x0000008 - -gUnk_08110088:: @ 08110088 - .incbin "baserom.gba", 0x110088, 0x0000005 - -gUnk_0811008D:: @ 0811008D - .incbin "baserom.gba", 0x11008D, 0x0000005 - -gUnk_08110092:: @ 08110092 - .incbin "baserom.gba", 0x110092, 0x0000005 - -gUnk_08110097:: @ 08110097 - .incbin "baserom.gba", 0x110097, 0x0000021 - -gUnk_081100B8:: @ 081100B8 - .incbin "baserom.gba", 0x1100B8, 0x000002C - -gUnk_081100E4:: @ 081100E4 - .incbin "baserom.gba", 0x1100E4, 0x000002C - -gUnk_08110110:: @ 08110110 - .incbin "baserom.gba", 0x110110, 0x0000008 - -gMilkCartBehaviors:: @ 08110118 - .incbin "baserom.gba", 0x110118, 0x0000008 - -gUnk_08110120:: @ 08110120 - .incbin "baserom.gba", 0x110120, 0x0000005 - -gUnk_08110125:: @ 08110125 - .incbin "baserom.gba", 0x110125, 0x0000013 - -gUnk_08110138:: @ 08110138 - .incbin "baserom.gba", 0x110138, 0x0000009 - -gUnk_08110141:: @ 08110141 - .incbin "baserom.gba", 0x110141, 0x000001B - -gUnk_0811015C:: @ 0811015C - .incbin "baserom.gba", 0x11015C, 0x0000008 - -gUnk_08110164:: @ 08110164 - .incbin "baserom.gba", 0x110164, 0x0000018 - -gUnk_0811017C:: @ 0811017C - .incbin "baserom.gba", 0x11017C, 0x000000C - -gUnk_08110188:: @ 08110188 - .incbin "baserom.gba", 0x110188, 0x0000055 - -gUnk_081101DD:: @ 081101DD - .incbin "baserom.gba", 0x1101DD, 0x000001A - -gUnk_081101F7:: @ 081101F7 - .incbin "baserom.gba", 0x1101F7, 0x0000037 - -gUnk_0811022E:: @ 0811022E - .incbin "baserom.gba", 0x11022E, 0x0000046 - -gUnk_08110274:: @ 08110274 - .incbin "baserom.gba", 0x110274, 0x000000C - -gUnk_08110280:: @ 08110280 - .incbin "baserom.gba", 0x110280, 0x0000080 - -gUnk_08110300:: @ 08110300 - .incbin "baserom.gba", 0x110300, 0x0000011 - -gUnk_08110311:: @ 08110311 - .incbin "baserom.gba", 0x110311, 0x0000011 - -gUnk_08110322:: @ 08110322 - .incbin "baserom.gba", 0x110322, 0x0000011 - -gUnk_08110333:: @ 08110333 - .incbin "baserom.gba", 0x110333, 0x0000009 - -gUnk_0811033C:: @ 0811033C - .incbin "baserom.gba", 0x11033C, 0x0000018 - -gUnk_08110354:: @ 08110354 - .incbin "baserom.gba", 0x110354, 0x000000C - -gUnk_08110360:: @ 08110360 - .incbin "baserom.gba", 0x110360, 0x000000C - -gUnk_0811036C:: @ 0811036C - .incbin "baserom.gba", 0x11036C, 0x0000014 - -gUnk_08110380:: @ 08110380 - .incbin "baserom.gba", 0x110380, 0x0000010 - -gUnk_08110390:: @ 08110390 - .incbin "baserom.gba", 0x110390, 0x0000040 - -gUnk_081103D0:: @ 081103D0 - .incbin "baserom.gba", 0x1103D0, 0x000000B - -gUnk_081103DB:: @ 081103DB - .incbin "baserom.gba", 0x1103DB, 0x0000005 - -gUnk_081103E0:: @ 081103E0 - .incbin "baserom.gba", 0x1103E0, 0x0000004 - -gUnk_081103E4:: @ 081103E4 - .incbin "baserom.gba", 0x1103E4, 0x0000005 - -gUnk_081103E9:: @ 081103E9 - .incbin "baserom.gba", 0x1103E9, 0x0000005 - -gUnk_081103EE:: @ 081103EE - .incbin "baserom.gba", 0x1103EE, 0x0000005 - -gUnk_081103F3:: @ 081103F3 - .incbin "baserom.gba", 0x1103F3, 0x0000005 - -gUnk_081103F8:: @ 081103F8 - .incbin "baserom.gba", 0x1103F8, 0x0000006 - -gUnk_081103FE:: @ 081103FE - .incbin "baserom.gba", 0x1103FE, 0x0000002 - -gUnk_08110400:: @ 08110400 - .incbin "baserom.gba", 0x110400, 0x0000009 - -gUnk_08110409:: @ 08110409 - .incbin "baserom.gba", 0x110409, 0x0000011 - -gUnk_0811041A:: @ 0811041A - .incbin "baserom.gba", 0x11041A, 0x0000011 - -gUnk_0811042B:: @ 0811042B - .incbin "baserom.gba", 0x11042B, 0x0000011 - -gUnk_0811043C:: @ 0811043C - .incbin "baserom.gba", 0x11043C, 0x0000005 - -gUnk_08110441:: @ 08110441 - .incbin "baserom.gba", 0x110441, 0x0000005 - -gUnk_08110446:: @ 08110446 - .incbin "baserom.gba", 0x110446, 0x0000005 - -gUnk_0811044B:: @ 0811044B - .incbin "baserom.gba", 0x11044B, 0x0000029 - -gUnk_08110474:: @ 08110474 - .incbin "baserom.gba", 0x110474, 0x0000005 - -gUnk_08110479:: @ 08110479 - .incbin "baserom.gba", 0x110479, 0x0000005 - -gUnk_0811047E:: @ 0811047E - .incbin "baserom.gba", 0x11047E, 0x0000006 - -gUnk_08110484:: @ 08110484 - .incbin "baserom.gba", 0x110484, 0x0000044 - -gUnk_081104C8:: @ 081104C8 - .incbin "baserom.gba", 0x1104C8, 0x0000018 - -gUnk_081104E0:: @ 081104E0 - .incbin "baserom.gba", 0x1104E0, 0x000000C - -gUnk_081104EC:: @ 081104EC - .incbin "baserom.gba", 0x1104EC, 0x000000C - -gUnk_081104F8:: @ 081104F8 - .incbin "baserom.gba", 0x1104F8, 0x0000008 - -gUnk_08110500:: @ 08110500 - .incbin "baserom.gba", 0x110500, 0x0000005 - -gUnk_08110505:: @ 08110505 - .incbin "baserom.gba", 0x110505, 0x0000005 - -gUnk_0811050A:: @ 0811050A - .incbin "baserom.gba", 0x11050A, 0x0000004 - -gUnk_0811050E:: @ 0811050E - .incbin "baserom.gba", 0x11050E, 0x0000001 - -gUnk_0811050F:: @ 0811050F - .incbin "baserom.gba", 0x11050F, 0x0000005 - -gUnk_08110514:: @ 08110514 - .incbin "baserom.gba", 0x110514, 0x0000021 - -gUnk_08110535:: @ 08110535 - .incbin "baserom.gba", 0x110535, 0x0000021 - -gUnk_08110556:: @ 08110556 - .incbin "baserom.gba", 0x110556, 0x0000021 - -gUnk_08110577:: @ 08110577 - .incbin "baserom.gba", 0x110577, 0x0000009 - -gUnk_08110580:: @ 08110580 - .incbin "baserom.gba", 0x110580, 0x0000018 - -gUnk_08110598:: @ 08110598 - .incbin "baserom.gba", 0x110598, 0x0000011 - -gUnk_081105A9:: @ 081105A9 - .incbin "baserom.gba", 0x1105A9, 0x0000011 - -gUnk_081105BA:: @ 081105BA - .incbin "baserom.gba", 0x1105BA, 0x0000011 - -gUnk_081105CB:: @ 081105CB - .incbin "baserom.gba", 0x1105CB, 0x0000011 - -gUnk_081105DC:: @ 081105DC - .incbin "baserom.gba", 0x1105DC, 0x0000005 - -gUnk_081105E1:: @ 081105E1 - .incbin "baserom.gba", 0x1105E1, 0x0000010 - -gUnk_081105F1:: @ 081105F1 - .incbin "baserom.gba", 0x1105F1, 0x0000017 - -gUnk_08110608:: @ 08110608 - .incbin "baserom.gba", 0x110608, 0x0000004 - -gUnk_0811060C:: @ 0811060C - .incbin "baserom.gba", 0x11060C, 0x0000038 - -gUnk_08110644:: @ 08110644 - .incbin "baserom.gba", 0x110644, 0x000000C - -gUnk_08110650:: @ 08110650 - .incbin "baserom.gba", 0x110650, 0x0000008 - -gUnk_08110658:: @ 08110658 - .incbin "baserom.gba", 0x110658, 0x0000005 - -gUnk_0811065D:: @ 0811065D - .incbin "baserom.gba", 0x11065D, 0x0000005 - -gUnk_08110662:: @ 08110662 - .incbin "baserom.gba", 0x110662, 0x0000005 - -gUnk_08110667:: @ 08110667 - .incbin "baserom.gba", 0x110667, 0x0000005 - -gUnk_0811066C:: @ 0811066C - .incbin "baserom.gba", 0x11066C, 0x0000011 - -gUnk_0811067D:: @ 0811067D - .incbin "baserom.gba", 0x11067D, 0x0000005 - -gUnk_08110682:: @ 08110682 - .incbin "baserom.gba", 0x110682, 0x0000026 - -gUnk_081106A8:: @ 081106A8 - .incbin "baserom.gba", 0x1106A8, 0x000002C - -gUnk_081106D4:: @ 081106D4 - .incbin "baserom.gba", 0x1106D4, 0x000000C - -gUnk_081106E0:: @ 081106E0 - .incbin "baserom.gba", 0x1106E0, 0x0000008 - -gUnk_081106E8:: @ 081106E8 - .incbin "baserom.gba", 0x1106E8, 0x0000005 - -gUnk_081106ED:: @ 081106ED - .incbin "baserom.gba", 0x1106ED, 0x0000011 - -gUnk_081106FE:: @ 081106FE - .incbin "baserom.gba", 0x1106FE, 0x0000012 - -gUnk_08110710:: @ 08110710 - .incbin "baserom.gba", 0x110710, 0x0000024 - -gUnk_08110734:: @ 08110734 - .incbin "baserom.gba", 0x110734, 0x0000008 - -gUnk_0811073C:: @ 0811073C - .incbin "baserom.gba", 0x11073C, 0x0000005 - -gUnk_08110741:: @ 08110741 - .incbin "baserom.gba", 0x110741, 0x0000005 - -gUnk_08110746:: @ 08110746 - .incbin "baserom.gba", 0x110746, 0x0000005 - -gUnk_0811074B:: @ 0811074B - .incbin "baserom.gba", 0x11074B, 0x0000005 - -gUnk_08110750:: @ 08110750 - .incbin "baserom.gba", 0x110750, 0x0000011 - -gUnk_08110761:: @ 08110761 - .incbin "baserom.gba", 0x110761, 0x0000011 - -gUnk_08110772:: @ 08110772 - .incbin "baserom.gba", 0x110772, 0x0000011 - -gUnk_08110783:: @ 08110783 - .incbin "baserom.gba", 0x110783, 0x0000011 - -gUnk_08110794:: @ 08110794 - .incbin "baserom.gba", 0x110794, 0x0000005 - -gUnk_08110799:: @ 08110799 - .incbin "baserom.gba", 0x110799, 0x0000011 - -gUnk_081107AA:: @ 081107AA - .incbin "baserom.gba", 0x1107AA, 0x0000009 - -gUnk_081107B3:: @ 081107B3 - .incbin "baserom.gba", 0x1107B3, 0x0000009 - -gUnk_081107BC:: @ 081107BC - .incbin "baserom.gba", 0x1107BC, 0x0000010 - -gUnk_081107CC:: @ 081107CC - .incbin "baserom.gba", 0x1107CC, 0x000003C - -gUnk_08110808:: @ 08110808 - .incbin "baserom.gba", 0x110808, 0x0000038 - -gUnk_08110840:: @ 08110840 - .incbin "baserom.gba", 0x110840, 0x0000019 - -gUnk_08110859:: @ 08110859 - .incbin "baserom.gba", 0x110859, 0x0000005 - -gUnk_0811085E:: @ 0811085E - .incbin "baserom.gba", 0x11085E, 0x0000019 - -gUnk_08110877:: @ 08110877 - .incbin "baserom.gba", 0x110877, 0x0000005 - -gUnk_0811087C:: @ 0811087C - .incbin "baserom.gba", 0x11087C, 0x000001E - -gUnk_0811089A:: @ 0811089A - .incbin "baserom.gba", 0x11089A, 0x0000019 - -gUnk_081108B3:: @ 081108B3 - .incbin "baserom.gba", 0x1108B3, 0x0000019 - -gUnk_081108CC:: @ 081108CC - .incbin "baserom.gba", 0x1108CC, 0x0000019 - -gUnk_081108E5:: @ 081108E5 - .incbin "baserom.gba", 0x1108E5, 0x000000D - -gUnk_081108F2:: @ 081108F2 - .incbin "baserom.gba", 0x1108F2, 0x000000D - -gUnk_081108FF:: @ 081108FF - .incbin "baserom.gba", 0x1108FF, 0x000000D - -gUnk_0811090C:: @ 0811090C - .incbin "baserom.gba", 0x11090C, 0x000000C - -gUnk_08110918:: @ 08110918 - .incbin "baserom.gba", 0x110918, 0x0000005 - -gUnk_0811091D:: @ 0811091D - .incbin "baserom.gba", 0x11091D, 0x0000005 - -gUnk_08110922:: @ 08110922 - .incbin "baserom.gba", 0x110922, 0x0000005 - -gUnk_08110927:: @ 08110927 - .incbin "baserom.gba", 0x110927, 0x0000005 - -gUnk_0811092C:: @ 0811092C - .incbin "baserom.gba", 0x11092C, 0x0000005 - -gUnk_08110931:: @ 08110931 - .incbin "baserom.gba", 0x110931, 0x00000C1 - -gUnk_081109F2:: @ 081109F2 - .incbin "baserom.gba", 0x1109F2, 0x0000006 - -gUnk_081109F8:: @ 081109F8 - .incbin "baserom.gba", 0x1109F8, 0x00000DF - -gUnk_08110AD7:: @ 08110AD7 - .incbin "baserom.gba", 0x110AD7, 0x0000015 - -gUnk_08110AEC:: @ 08110AEC - .incbin "baserom.gba", 0x110AEC, 0x0000010 - -gUnk_08110AFC:: @ 08110AFC - .incbin "baserom.gba", 0x110AFC, 0x0000008 - -gUnk_08110B04:: @ 08110B04 - .incbin "baserom.gba", 0x110B04, 0x0000001 - -gUnk_08110B05:: @ 08110B05 - .incbin "baserom.gba", 0x110B05, 0x000004B - -gUnk_08110B50:: @ 08110B50 - .incbin "baserom.gba", 0x110B50, 0x0000088 - -gUnk_08110BD8:: @ 08110BD8 - .incbin "baserom.gba", 0x110BD8, 0x0000008 - -gUnk_08110BE0:: @ 08110BE0 - .incbin "baserom.gba", 0x110BE0, 0x000001F - -gUnk_08110BFF:: @ 08110BFF - .incbin "baserom.gba", 0x110BFF, 0x0000001 - -gUnk_08110C00:: @ 08110C00 - .incbin "baserom.gba", 0x110C00, 0x0000003 - -gUnk_08110C03:: @ 08110C03 - .incbin "baserom.gba", 0x110C03, 0x0000009 - -gUnk_08110C0C:: @ 08110C0C - .incbin "baserom.gba", 0x110C0C, 0x0000004 - -gUnk_08110C10:: @ 08110C10 - .incbin "baserom.gba", 0x110C10, 0x0000050 - -gUnk_08110C60:: @ 08110C60 - .incbin "baserom.gba", 0x110C60, 0x0000015 - -gUnk_08110C75:: @ 08110C75 - .incbin "baserom.gba", 0x110C75, 0x0000005 - -gUnk_08110C7A:: @ 08110C7A - .incbin "baserom.gba", 0x110C7A, 0x0000005 - -gUnk_08110C7F:: @ 08110C7F - .incbin "baserom.gba", 0x110C7F, 0x0000005 - -gUnk_08110C84:: @ 08110C84 - .incbin "baserom.gba", 0x110C84, 0x0000024 - -gUnk_08110CA8:: @ 08110CA8 - .incbin "baserom.gba", 0x110CA8, 0x0000040 - -gUnk_08110CE8:: @ 08110CE8 - .incbin "baserom.gba", 0x110CE8, 0x000000A - -gUnk_08110CF2:: @ 08110CF2 - .incbin "baserom.gba", 0x110CF2, 0x000000C - -gUnk_08110CFE:: @ 08110CFE - .incbin "baserom.gba", 0x110CFE, 0x0000002 - -gUnk_08110D00:: @ 08110D00 - .incbin "baserom.gba", 0x110D00, 0x0000002 - -gUnk_08110D02:: @ 08110D02 - .incbin "baserom.gba", 0x110D02, 0x0000006 - -gUnk_08110D08:: @ 08110D08 - .incbin "baserom.gba", 0x110D08, 0x0000025 - -gUnk_08110D2D:: @ 08110D2D - .incbin "baserom.gba", 0x110D2D, 0x0000005 - -gUnk_08110D32:: @ 08110D32 - .incbin "baserom.gba", 0x110D32, 0x0000005 - -gUnk_08110D37:: @ 08110D37 - .incbin "baserom.gba", 0x110D37, 0x0000005 - -gUnk_08110D3C:: @ 08110D3C - .incbin "baserom.gba", 0x110D3C, 0x0000025 - -gUnk_08110D61:: @ 08110D61 - .incbin "baserom.gba", 0x110D61, 0x0000005 - -gUnk_08110D66:: @ 08110D66 - .incbin "baserom.gba", 0x110D66, 0x0000005 - -gUnk_08110D6B:: @ 08110D6B - .incbin "baserom.gba", 0x110D6B, 0x0000005 - -gUnk_08110D70:: @ 08110D70 - .incbin "baserom.gba", 0x110D70, 0x000001D - -gUnk_08110D8D:: @ 08110D8D - .incbin "baserom.gba", 0x110D8D, 0x0000005 - -gUnk_08110D92:: @ 08110D92 - .incbin "baserom.gba", 0x110D92, 0x0000005 - -gUnk_08110D97:: @ 08110D97 - .incbin "baserom.gba", 0x110D97, 0x0000005 - -gUnk_08110D9C:: @ 08110D9C - .incbin "baserom.gba", 0x110D9C, 0x000001D - -gUnk_08110DB9:: @ 08110DB9 - .incbin "baserom.gba", 0x110DB9, 0x0000005 - -gUnk_08110DBE:: @ 08110DBE - .incbin "baserom.gba", 0x110DBE, 0x0000005 - -gUnk_08110DC3:: @ 08110DC3 - .incbin "baserom.gba", 0x110DC3, 0x0000005 - -gUnk_08110DC8:: @ 08110DC8 - .incbin "baserom.gba", 0x110DC8, 0x0000038 - -gUnk_08110E00:: @ 08110E00 - .incbin "baserom.gba", 0x110E00, 0x0000006 - -gUnk_08110E06:: @ 08110E06 - .incbin "baserom.gba", 0x110E06, 0x0000003 - -gUnk_08110E09:: @ 08110E09 - .incbin "baserom.gba", 0x110E09, 0x0000005 - -gUnk_08110E0E:: @ 08110E0E - .incbin "baserom.gba", 0x110E0E, 0x0000002 - -gUnk_08110E10:: @ 08110E10 - .incbin "baserom.gba", 0x110E10, 0x000003C - -gUnk_08110E4C:: @ 08110E4C - .incbin "baserom.gba", 0x110E4C, 0x0000010 - -gUnk_08110E5C:: @ 08110E5C - .incbin "baserom.gba", 0x110E5C, 0x0000008 - -gUnk_08110E64:: @ 08110E64 - .incbin "baserom.gba", 0x110E64, 0x0000004 - -gUnk_08110E68:: @ 08110E68 - .incbin "baserom.gba", 0x110E68, 0x0000010 - -gUnk_08110E78:: @ 08110E78 - .incbin "baserom.gba", 0x110E78, 0x0000012 - -gUnk_08110E8A:: @ 08110E8A - .incbin "baserom.gba", 0x110E8A, 0x000000A - -gUnk_08110E94:: @ 08110E94 - .incbin "baserom.gba", 0x110E94, 0x0000008 - -gUnk_08110E9C:: @ 08110E9C - .incbin "baserom.gba", 0x110E9C, 0x0000005 - -gUnk_08110EA1:: @ 08110EA1 - .incbin "baserom.gba", 0x110EA1, 0x0000005 - -gUnk_08110EA6:: @ 08110EA6 - .incbin "baserom.gba", 0x110EA6, 0x0000006 - -gUnk_08110EAC:: @ 08110EAC - .incbin "baserom.gba", 0x110EAC, 0x0000044 - -gUnk_08110EF0:: @ 08110EF0 - .incbin "baserom.gba", 0x110EF0, 0x0000008 - -gUnk_08110EF8:: @ 08110EF8 - .incbin "baserom.gba", 0x110EF8, 0x0000002 - -gUnk_08110EFA:: @ 08110EFA - .incbin "baserom.gba", 0x110EFA, 0x000000F - -gUnk_08110F09:: @ 08110F09 - .incbin "baserom.gba", 0x110F09, 0x0000001 - -gUnk_08110F0A:: @ 08110F0A - .incbin "baserom.gba", 0x110F0A, 0x0000002 - -gUnk_08110F0C:: @ 08110F0C - .incbin "baserom.gba", 0x110F0C, 0x000000A - -gUnk_08110F16:: @ 08110F16 - .incbin "baserom.gba", 0x110F16, 0x00000EA - -gUnk_08111000:: @ 08111000 - .incbin "baserom.gba", 0x111000, 0x0000003 - -gUnk_08111003:: @ 08111003 - .incbin "baserom.gba", 0x111003, 0x000000A - -gUnk_0811100D:: @ 0811100D - .incbin "baserom.gba", 0x11100D, 0x00000CB - -gCat:: @ 081110D8 - .incbin "baserom.gba", 0x1110D8, 0x0000024 - -gUnk_081110FC:: @ 081110FC - .incbin "baserom.gba", 0x1110FC, 0x0000008 - -gUnk_08111104:: @ 08111104 - .incbin "baserom.gba", 0x111104, 0x0000008 - -gUnk_0811110C:: @ 0811110C - .incbin "baserom.gba", 0x11110C, 0x0000001 - -gUnk_0811110D:: @ 0811110D - .incbin "baserom.gba", 0x11110D, 0x0000001 - -gUnk_0811110E:: @ 0811110E - .incbin "baserom.gba", 0x11110E, 0x0000001 - -gUnk_0811110F:: @ 0811110F - .incbin "baserom.gba", 0x11110F, 0x0000002 - -gUnk_08111111:: @ 08111111 - .incbin "baserom.gba", 0x111111, 0x0000002 - -gUnk_08111113:: @ 08111113 - .incbin "baserom.gba", 0x111113, 0x0000001 - -gUnk_08111114:: @ 08111114 - .incbin "baserom.gba", 0x111114, 0x0000008 - -gUnk_0811111C:: @ 0811111C - .incbin "baserom.gba", 0x11111C, 0x0000008 - -gUnk_08111124:: @ 08111124 - .incbin "baserom.gba", 0x111124, 0x0000008 - -gUnk_0811112C:: @ 0811112C - .incbin "baserom.gba", 0x11112C, 0x0000008 - -gUnk_08111134:: @ 08111134 - .incbin "baserom.gba", 0x111134, 0x0000008 - -gUnk_0811113C:: @ 0811113C - .incbin "baserom.gba", 0x11113C, 0x0000008 - -gUnk_08111144:: @ 08111144 - .incbin "baserom.gba", 0x111144, 0x0000008 - -gUnk_0811114C:: @ 0811114C - .incbin "baserom.gba", 0x11114C, 0x0000008 - -gUnk_08111154:: @ 08111154 - .incbin "baserom.gba", 0x111154, 0x0000017 - -gUnk_0811116B:: @ 0811116B - .incbin "baserom.gba", 0x11116B, 0x0000009 - -gUnk_08111174:: @ 08111174 - .incbin "baserom.gba", 0x111174, 0x000003C - -gUnk_081111B0:: @ 081111B0 - .incbin "baserom.gba", 0x1111B0, 0x0000009 - -gUnk_081111B9:: @ 081111B9 - .incbin "baserom.gba", 0x1111B9, 0x0000003 - -gUnk_081111BC:: @ 081111BC - .incbin "baserom.gba", 0x1111BC, 0x0000006 - -gUnk_081111C2:: @ 081111C2 - .incbin "baserom.gba", 0x1111C2, 0x0000011 - -gUnk_081111D3:: @ 081111D3 - .incbin "baserom.gba", 0x1111D3, 0x0000018 - -gUnk_081111EB:: @ 081111EB - .incbin "baserom.gba", 0x1111EB, 0x0000010 - -gUnk_081111FB:: @ 081111FB - .incbin "baserom.gba", 0x1111FB, 0x0000009 - -gUnk_08111204:: @ 08111204 - .incbin "baserom.gba", 0x111204, 0x000000D - -gUnk_08111211:: @ 08111211 - .incbin "baserom.gba", 0x111211, 0x000000D - -gUnk_0811121E:: @ 0811121E - .incbin "baserom.gba", 0x11121E, 0x000000E - -gUnk_0811122C:: @ 0811122C - .incbin "baserom.gba", 0x11122C, 0x000000C - -gUnk_08111238:: @ 08111238 - .incbin "baserom.gba", 0x111238, 0x0000024 - -gUnk_0811125C:: @ 0811125C - .incbin "baserom.gba", 0x11125C, 0x0000028 - -gUnk_08111284:: @ 08111284 - .incbin "baserom.gba", 0x111284, 0x0000080 - -gUnk_08111304:: @ 08111304 - .incbin "baserom.gba", 0x111304, 0x0000009 - -gUnk_0811130D:: @ 0811130D - .incbin "baserom.gba", 0x11130D, 0x0000001 - -gUnk_0811130E:: @ 0811130E - .incbin "baserom.gba", 0x11130E, 0x0000001 - -gUnk_0811130F:: @ 0811130F - .incbin "baserom.gba", 0x11130F, 0x0000009 - -gUnk_08111318:: @ 08111318 - .incbin "baserom.gba", 0x111318, 0x0000006 - -gUnk_0811131E:: @ 0811131E - .incbin "baserom.gba", 0x11131E, 0x0000025 - -gUnk_08111343:: @ 08111343 - .incbin "baserom.gba", 0x111343, 0x0000015 - -gUnk_08111358:: @ 08111358 - .incbin "baserom.gba", 0x111358, 0x0000010 - -gUnk_08111368:: @ 08111368 - .incbin "baserom.gba", 0x111368, 0x000000C - -gUnk_08111374:: @ 08111374 - .incbin "baserom.gba", 0x111374, 0x0000006 - -gUnk_0811137A:: @ 0811137A - .incbin "baserom.gba", 0x11137A, 0x0000006 - -gUnk_08111380:: @ 08111380 - .incbin "baserom.gba", 0x111380, 0x0000005 - -gUnk_08111385:: @ 08111385 - .incbin "baserom.gba", 0x111385, 0x0000005 - -gUnk_0811138A:: @ 0811138A - .incbin "baserom.gba", 0x11138A, 0x0000005 - -gUnk_0811138F:: @ 0811138F - .incbin "baserom.gba", 0x11138F, 0x0000005 - -gUnk_08111394:: @ 08111394 - .incbin "baserom.gba", 0x111394, 0x0000025 - -gUnk_081113B9:: @ 081113B9 - .incbin "baserom.gba", 0x1113B9, 0x0000025 - -gUnk_081113DE:: @ 081113DE - .incbin "baserom.gba", 0x1113DE, 0x0000021 - -gUnk_081113FF:: @ 081113FF - .incbin "baserom.gba", 0x1113FF, 0x0000008 - -gUnk_08111407:: @ 08111407 - .incbin "baserom.gba", 0x111407, 0x0000005 - -gUnk_0811140C:: @ 0811140C - .incbin "baserom.gba", 0x11140C, 0x0000002 - -gUnk_0811140E:: @ 0811140E - .incbin "baserom.gba", 0x11140E, 0x0000005 - -gUnk_08111413:: @ 08111413 - .incbin "baserom.gba", 0x111413, 0x0000009 - -gUnk_0811141C:: @ 0811141C - .incbin "baserom.gba", 0x11141C, 0x0000008 - -gUnk_08111424:: @ 08111424 - .incbin "baserom.gba", 0x111424, 0x0000025 - -gUnk_08111449:: @ 08111449 - .incbin "baserom.gba", 0x111449, 0x0000071 - -gUnk_081114BA:: @ 081114BA - .incbin "baserom.gba", 0x1114BA, 0x0000029 - -gUnk_081114E3:: @ 081114E3 - .incbin "baserom.gba", 0x1114E3, 0x0000005 - -gUnk_081114E8:: @ 081114E8 - .incbin "baserom.gba", 0x1114E8, 0x0000013 - -gUnk_081114FB:: @ 081114FB - .incbin "baserom.gba", 0x1114FB, 0x0000016 - -gUnk_08111511:: @ 08111511 - .incbin "baserom.gba", 0x111511, 0x0000002 - -gUnk_08111513:: @ 08111513 - .incbin "baserom.gba", 0x111513, 0x0000001 - -gUnk_08111514:: @ 08111514 - .incbin "baserom.gba", 0x111514, 0x0000003 - -gUnk_08111517:: @ 08111517 - .incbin "baserom.gba", 0x111517, 0x0000003 - -gUnk_0811151A:: @ 0811151A - .incbin "baserom.gba", 0x11151A, 0x0000001 - -gUnk_0811151B:: @ 0811151B - .incbin "baserom.gba", 0x11151B, 0x0000001 - -gUnk_0811151C:: @ 0811151C - .incbin "baserom.gba", 0x11151C, 0x0000004 - -gUnk_08111520:: @ 08111520 - .incbin "baserom.gba", 0x111520, 0x0000007 - -gUnk_08111527:: @ 08111527 - .incbin "baserom.gba", 0x111527, 0x0000002 - -gUnk_08111529:: @ 08111529 - .incbin "baserom.gba", 0x111529, 0x0000007 - -gUnk_08111530:: @ 08111530 - .incbin "baserom.gba", 0x111530, 0x0000008 - -gUnk_08111538:: @ 08111538 - .incbin "baserom.gba", 0x111538, 0x0000006 - -gUnk_0811153E:: @ 0811153E - .incbin "baserom.gba", 0x11153E, 0x0000006 - -gUnk_08111544:: @ 08111544 - .incbin "baserom.gba", 0x111544, 0x0000005 - -gUnk_08111549:: @ 08111549 - .incbin "baserom.gba", 0x111549, 0x0000005 - -gUnk_0811154E:: @ 0811154E - .incbin "baserom.gba", 0x11154E, 0x0000005 - -gUnk_08111553:: @ 08111553 - .incbin "baserom.gba", 0x111553, 0x0000039 - -gUnk_0811158C:: @ 0811158C - .incbin "baserom.gba", 0x11158C, 0x0000008 - -gUnk_08111594:: @ 08111594 - .incbin "baserom.gba", 0x111594, 0x000002C - -gUnk_081115C0:: @ 081115C0 - .incbin "baserom.gba", 0x1115C0, 0x0000010 - -gUnk_081115D0:: @ 081115D0 - .incbin "baserom.gba", 0x1115D0, 0x000000C - -gUnk_081115DC:: @ 081115DC - .incbin "baserom.gba", 0x1115DC, 0x0000010 - -gUnk_081115EC:: @ 081115EC - .incbin "baserom.gba", 0x1115EC, 0x0000024 - -gUnk_08111610:: @ 08111610 - .incbin "baserom.gba", 0x111610, 0x0000008 - -gUnk_08111618:: @ 08111618 - .incbin "baserom.gba", 0x111618, 0x0000003 - -gUnk_0811161B:: @ 0811161B - .incbin "baserom.gba", 0x11161B, 0x0000005 - -gUnk_08111620:: @ 08111620 - .incbin "baserom.gba", 0x111620, 0x0000003 - -gUnk_08111623:: @ 08111623 - .incbin "baserom.gba", 0x111623, 0x0000008 - -gUnk_0811162B:: @ 0811162B - .incbin "baserom.gba", 0x11162B, 0x000000D - -gUnk_08111638:: @ 08111638 - .incbin "baserom.gba", 0x111638, 0x000002C - -gUnk_08111664:: @ 08111664 - .incbin "baserom.gba", 0x111664, 0x0000016 - -gUnk_0811167A:: @ 0811167A - .incbin "baserom.gba", 0x11167A, 0x0000016 - -gUnk_08111690:: @ 08111690 - .incbin "baserom.gba", 0x111690, 0x0000016 - -gUnk_081116A6:: @ 081116A6 - .incbin "baserom.gba", 0x1116A6, 0x0000016 - -gUnk_081116BC:: @ 081116BC - .incbin "baserom.gba", 0x1116BC, 0x0000016 - -gUnk_081116D2:: @ 081116D2 - .incbin "baserom.gba", 0x1116D2, 0x0000016 - -gUnk_081116E8:: @ 081116E8 - .incbin "baserom.gba", 0x1116E8, 0x0000016 - -gUnk_081116FE:: @ 081116FE - .incbin "baserom.gba", 0x1116FE, 0x0000016 - -gUnk_08111714:: @ 08111714 - .incbin "baserom.gba", 0x111714, 0x0000003 - -gUnk_08111717:: @ 08111717 - .incbin "baserom.gba", 0x111717, 0x0000001 - -gUnk_08111718:: @ 08111718 - .incbin "baserom.gba", 0x111718, 0x0000001 - -gUnk_08111719:: @ 08111719 - .incbin "baserom.gba", 0x111719, 0x0000001 - -gUnk_0811171A:: @ 0811171A - .incbin "baserom.gba", 0x11171A, 0x0000010 - -gUnk_0811172A:: @ 0811172A - .incbin "baserom.gba", 0x11172A, 0x0000016 - -gUnk_08111740:: @ 08111740 - .incbin "baserom.gba", 0x111740, 0x000002C - -gUnk_0811176C:: @ 0811176C - .incbin "baserom.gba", 0x11176C, 0x0000005 - -gUnk_08111771:: @ 08111771 - .incbin "baserom.gba", 0x111771, 0x0000005 - -gUnk_08111776:: @ 08111776 - .incbin "baserom.gba", 0x111776, 0x0000005 - -gUnk_0811177B:: @ 0811177B - .incbin "baserom.gba", 0x11177B, 0x000004D - -gUnk_081117C8:: @ 081117C8 - .incbin "baserom.gba", 0x1117C8, 0x0000031 - -gUnk_081117F9:: @ 081117F9 - .incbin "baserom.gba", 0x1117F9, 0x000001E - -gUnk_08111817:: @ 08111817 - .incbin "baserom.gba", 0x111817, 0x0000002 - -gUnk_08111819:: @ 08111819 - .incbin "baserom.gba", 0x111819, 0x0000002 - -gUnk_0811181B:: @ 0811181B - .incbin "baserom.gba", 0x11181B, 0x0000001 - -gUnk_0811181C:: @ 0811181C - .incbin "baserom.gba", 0x11181C, 0x0000001 - -gUnk_0811181D:: @ 0811181D - .incbin "baserom.gba", 0x11181D, 0x0000001 - -gUnk_0811181E:: @ 0811181E - .incbin "baserom.gba", 0x11181E, 0x0000004 - -gUnk_08111822:: @ 08111822 - .incbin "baserom.gba", 0x111822, 0x0000008 - -gUnk_0811182A:: @ 0811182A - .incbin "baserom.gba", 0x11182A, 0x0000031 - -gUnk_0811185B:: @ 0811185B - .incbin "baserom.gba", 0x11185B, 0x0000071 - -gUnk_081118CC:: @ 081118CC - .incbin "baserom.gba", 0x1118CC, 0x0000024 - -gUnk_081118F0:: @ 081118F0 - .incbin "baserom.gba", 0x1118F0, 0x0000024 - -gUnk_08111914:: @ 08111914 - .incbin "baserom.gba", 0x111914, 0x0000004 - -gUnk_08111918:: @ 08111918 - .incbin "baserom.gba", 0x111918, 0x0000001 - -gUnk_08111919:: @ 08111919 - .incbin "baserom.gba", 0x111919, 0x0000001 - -gUnk_0811191A:: @ 0811191A - .incbin "baserom.gba", 0x11191A, 0x0000001 - -gUnk_0811191B:: @ 0811191B - .incbin "baserom.gba", 0x11191B, 0x0000002 - -gUnk_0811191D:: @ 0811191D - .incbin "baserom.gba", 0x11191D, 0x0000001 - -gUnk_0811191E:: @ 0811191E - .incbin "baserom.gba", 0x11191E, 0x0000002 - -gUnk_08111920:: @ 08111920 - .incbin "baserom.gba", 0x111920, 0x0000002 - -gUnk_08111922:: @ 08111922 - .incbin "baserom.gba", 0x111922, 0x0000006 - -gUnk_08111928:: @ 08111928 - .incbin "baserom.gba", 0x111928, 0x0000010 - -gUnk_08111938:: @ 08111938 - .incbin "baserom.gba", 0x111938, 0x0000028 - -gUnk_08111960:: @ 08111960 - .incbin "baserom.gba", 0x111960, 0x0000005 - -gUnk_08111965:: @ 08111965 - .incbin "baserom.gba", 0x111965, 0x0000005 - -gUnk_0811196A:: @ 0811196A - .incbin "baserom.gba", 0x11196A, 0x0000005 - -gUnk_0811196F:: @ 0811196F - .incbin "baserom.gba", 0x11196F, 0x0000005 - -gUnk_08111974:: @ 08111974 - .incbin "baserom.gba", 0x111974, 0x0000011 - -gUnk_08111985:: @ 08111985 - .incbin "baserom.gba", 0x111985, 0x0000011 - -gUnk_08111996:: @ 08111996 - .incbin "baserom.gba", 0x111996, 0x0000011 - -gUnk_081119A7:: @ 081119A7 - .incbin "baserom.gba", 0x1119A7, 0x0000011 - -gUnk_081119B8:: @ 081119B8 - .incbin "baserom.gba", 0x1119B8, 0x000000C - -gUnk_081119C4:: @ 081119C4 - .incbin "baserom.gba", 0x1119C4, 0x000000C - -gUnk_081119D0:: @ 081119D0 - .incbin "baserom.gba", 0x1119D0, 0x000000C - -gUnk_081119DC:: @ 081119DC - .incbin "baserom.gba", 0x1119DC, 0x000000C - -gUnk_081119E8:: @ 081119E8 - .incbin "baserom.gba", 0x1119E8, 0x0000009 - -gUnk_081119F1:: @ 081119F1 - .incbin "baserom.gba", 0x1119F1, 0x0000005 - -gUnk_081119F6:: @ 081119F6 - .incbin "baserom.gba", 0x1119F6, 0x0000004 - -gUnk_081119FA:: @ 081119FA - .incbin "baserom.gba", 0x1119FA, 0x0000009 - -gUnk_08111A03:: @ 08111A03 - .incbin "baserom.gba", 0x111A03, 0x0000009 - -gUnk_08111A0C:: @ 08111A0C - .incbin "baserom.gba", 0x111A0C, 0x0000008 - -gUnk_08111A14:: @ 08111A14 - .incbin "baserom.gba", 0x111A14, 0x0000002 - -gUnk_08111A16:: @ 08111A16 - .incbin "baserom.gba", 0x111A16, 0x0000002 - -gUnk_08111A18:: @ 08111A18 - .incbin "baserom.gba", 0x111A18, 0x0000001 - -gUnk_08111A19:: @ 08111A19 - .incbin "baserom.gba", 0x111A19, 0x0000003 - -gUnk_08111A1C:: @ 08111A1C - .incbin "baserom.gba", 0x111A1C, 0x0000003 - -gUnk_08111A1F:: @ 08111A1F - .incbin "baserom.gba", 0x111A1F, 0x0000002 - -gUnk_08111A21:: @ 08111A21 - .incbin "baserom.gba", 0x111A21, 0x0000001 - -gUnk_08111A22:: @ 08111A22 - .incbin "baserom.gba", 0x111A22, 0x0000002 - -gUnk_08111A24:: @ 08111A24 - .incbin "baserom.gba", 0x111A24, 0x0000008 - -gUnk_08111A2C:: @ 08111A2C - .incbin "baserom.gba", 0x111A2C, 0x0000054 - -gUnk_08111A80:: @ 08111A80 - .incbin "baserom.gba", 0x111A80, 0x000000C - -gUnk_08111A8C:: @ 08111A8C - .incbin "baserom.gba", 0x111A8C, 0x0000008 - -gUnk_08111A94:: @ 08111A94 - .incbin "baserom.gba", 0x111A94, 0x0000030 - -gUnk_08111AC4:: @ 08111AC4 - .incbin "baserom.gba", 0x111AC4, 0x0000005 - -gUnk_08111AC9:: @ 08111AC9 - .incbin "baserom.gba", 0x111AC9, 0x0000005 - -gUnk_08111ACE:: @ 08111ACE - .incbin "baserom.gba", 0x111ACE, 0x0000005 - -gUnk_08111AD3:: @ 08111AD3 - .incbin "baserom.gba", 0x111AD3, 0x0000005 - -gUnk_08111AD8:: @ 08111AD8 - .incbin "baserom.gba", 0x111AD8, 0x0000021 - -gUnk_08111AF9:: @ 08111AF9 - .incbin "baserom.gba", 0x111AF9, 0x0000021 - -gUnk_08111B1A:: @ 08111B1A - .incbin "baserom.gba", 0x111B1A, 0x0000005 - -gUnk_08111B1F:: @ 08111B1F - .incbin "baserom.gba", 0x111B1F, 0x0000007 - -gUnk_08111B26:: @ 08111B26 - .incbin "baserom.gba", 0x111B26, 0x0000015 - -gUnk_08111B3B:: @ 08111B3B - .incbin "baserom.gba", 0x111B3B, 0x000000B - -gUnk_08111B46:: @ 08111B46 - .incbin "baserom.gba", 0x111B46, 0x000001A - -gUnk_08111B60:: @ 08111B60 - .incbin "baserom.gba", 0x111B60, 0x0000023 - -gUnk_08111B83:: @ 08111B83 - .incbin "baserom.gba", 0x111B83, 0x0000005 - -gUnk_08111B88:: @ 08111B88 - .incbin "baserom.gba", 0x111B88, 0x0000010 - -gUnk_08111B98:: @ 08111B98 - .incbin "baserom.gba", 0x111B98, 0x0000008 - -gUnk_08111BA0:: @ 08111BA0 - .incbin "baserom.gba", 0x111BA0, 0x000001E - -gUnk_08111BBE:: @ 08111BBE - .incbin "baserom.gba", 0x111BBE, 0x0000005 - -gUnk_08111BC3:: @ 08111BC3 - .incbin "baserom.gba", 0x111BC3, 0x0000005 - -gUnk_08111BC8:: @ 08111BC8 - .incbin "baserom.gba", 0x111BC8, 0x0000005 - -gUnk_08111BCD:: @ 08111BCD - .incbin "baserom.gba", 0x111BCD, 0x0000025 - -gUnk_08111BF2:: @ 08111BF2 - .incbin "baserom.gba", 0x111BF2, 0x0000026 - -gUnk_08111C18:: @ 08111C18 - .incbin "baserom.gba", 0x111C18, 0x0000002 - -gUnk_08111C1A:: @ 08111C1A - .incbin "baserom.gba", 0x111C1A, 0x0000002 - -gUnk_08111C1C:: @ 08111C1C - .incbin "baserom.gba", 0x111C1C, 0x0000004 - -gUnk_08111C20:: @ 08111C20 - .incbin "baserom.gba", 0x111C20, 0x0000001 - -gUnk_08111C21:: @ 08111C21 - .incbin "baserom.gba", 0x111C21, 0x0000002 - -gUnk_08111C23:: @ 08111C23 - .incbin "baserom.gba", 0x111C23, 0x0000019 - -gUnk_08111C3C:: @ 08111C3C - .incbin "baserom.gba", 0x111C3C, 0x000000C - -gUnk_08111C48:: @ 08111C48 - .incbin "baserom.gba", 0x111C48, 0x0000008 - -gUnk_08111C50:: @ 08111C50 - .incbin "baserom.gba", 0x111C50, 0x000000C - -gUnk_08111C5C:: @ 08111C5C - .incbin "baserom.gba", 0x111C5C, 0x0000018 - -gUnk_08111C74:: @ 08111C74 - .incbin "baserom.gba", 0x111C74, 0x0000010 - -gUnk_08111C84:: @ 08111C84 - .incbin "baserom.gba", 0x111C84, 0x0000008 - -gUnk_08111C8C:: @ 08111C8C - .incbin "baserom.gba", 0x111C8C, 0x0000010 - -gUnk_08111C9C:: @ 08111C9C - .incbin "baserom.gba", 0x111C9C, 0x000000C - -gUnk_08111CA8:: @ 08111CA8 - .incbin "baserom.gba", 0x111CA8, 0x000000C - -gUnk_08111CB4:: @ 08111CB4 - .incbin "baserom.gba", 0x111CB4, 0x0000004 - -gUnk_08111CB8:: @ 08111CB8 - .incbin "baserom.gba", 0x111CB8, 0x0000004 - -gUnk_08111CBC:: @ 08111CBC - .incbin "baserom.gba", 0x111CBC, 0x0000005 - -gUnk_08111CC1:: @ 08111CC1 - .incbin "baserom.gba", 0x111CC1, 0x0000005 - -gUnk_08111CC6:: @ 08111CC6 - .incbin "baserom.gba", 0x111CC6, 0x0000005 - -gUnk_08111CCB:: @ 08111CCB - .incbin "baserom.gba", 0x111CCB, 0x0000005 - -gUnk_08111CD0:: @ 08111CD0 - .incbin "baserom.gba", 0x111CD0, 0x0000019 - -gUnk_08111CE9:: @ 08111CE9 - .incbin "baserom.gba", 0x111CE9, 0x0000019 - -gUnk_08111D02:: @ 08111D02 - .incbin "baserom.gba", 0x111D02, 0x0000015 - -gUnk_08111D17:: @ 08111D17 - .incbin "baserom.gba", 0x111D17, 0x0000004 - -gUnk_08111D1B:: @ 08111D1B - .incbin "baserom.gba", 0x111D1B, 0x000000F - -gUnk_08111D2A:: @ 08111D2A - .incbin "baserom.gba", 0x111D2A, 0x0000001 - -gUnk_08111D2B:: @ 08111D2B - .incbin "baserom.gba", 0x111D2B, 0x0000009 - -gUnk_08111D34:: @ 08111D34 - .incbin "baserom.gba", 0x111D34, 0x0000024 - -gUnk_08111D58:: @ 08111D58 - .incbin "baserom.gba", 0x111D58, 0x0000030 - -gUnk_08111D88:: @ 08111D88 - .incbin "baserom.gba", 0x111D88, 0x0000020 - -gUnk_08111DA8:: @ 08111DA8 - .incbin "baserom.gba", 0x111DA8, 0x0000008 - -gUnk_08111DB0:: @ 08111DB0 - .incbin "baserom.gba", 0x111DB0, 0x0000066 - -gUnk_08111E16:: @ 08111E16 - .incbin "baserom.gba", 0x111E16, 0x000001A - -gUnk_08111E30:: @ 08111E30 - .incbin "baserom.gba", 0x111E30, 0x0000004 - -gUnk_08111E34:: @ 08111E34 - .incbin "baserom.gba", 0x111E34, 0x00000AD - -gUnk_08111EE1:: @ 08111EE1 - .incbin "baserom.gba", 0x111EE1, 0x0000047 - -gUnk_08111F28:: @ 08111F28 - .incbin "baserom.gba", 0x111F28, 0x0000008 - -gUnk_08111F30:: @ 08111F30 - .incbin "baserom.gba", 0x111F30, 0x0000044 - -gUnk_08111F74:: @ 08111F74 - .incbin "baserom.gba", 0x111F74, 0x0000064 - -gUnk_08111FD8:: @ 08111FD8 - .incbin "baserom.gba", 0x111FD8, 0x000000A - -gUnk_08111FE2:: @ 08111FE2 - .incbin "baserom.gba", 0x111FE2, 0x0000005 - -gUnk_08111FE7:: @ 08111FE7 - .incbin "baserom.gba", 0x111FE7, 0x0000005 - -gUnk_08111FEC:: @ 08111FEC - .incbin "baserom.gba", 0x111FEC, 0x0000005 - -gUnk_08111FF1:: @ 08111FF1 - .incbin "baserom.gba", 0x111FF1, 0x0000005 - -gUnk_08111FF6:: @ 08111FF6 - .incbin "baserom.gba", 0x111FF6, 0x0000011 - -gUnk_08112007:: @ 08112007 - .incbin "baserom.gba", 0x112007, 0x0000007 - -gUnk_0811200E:: @ 0811200E - .incbin "baserom.gba", 0x11200E, 0x000000A - -gUnk_08112018:: @ 08112018 - .incbin "baserom.gba", 0x112018, 0x0000005 - -gUnk_0811201D:: @ 0811201D - .incbin "baserom.gba", 0x11201D, 0x0000005 - -gUnk_08112022:: @ 08112022 - .incbin "baserom.gba", 0x112022, 0x0000005 - -gUnk_08112027:: @ 08112027 - .incbin "baserom.gba", 0x112027, 0x0000005 - -gUnk_0811202C:: @ 0811202C - .incbin "baserom.gba", 0x11202C, 0x0000005 - -gUnk_08112031:: @ 08112031 - .incbin "baserom.gba", 0x112031, 0x0000005 - -gUnk_08112036:: @ 08112036 - .incbin "baserom.gba", 0x112036, 0x0000005 - -gUnk_0811203B:: @ 0811203B - .incbin "baserom.gba", 0x11203B, 0x0000005 - -gUnk_08112040:: @ 08112040 - .incbin "baserom.gba", 0x112040, 0x0000005 - -gUnk_08112045:: @ 08112045 - .incbin "baserom.gba", 0x112045, 0x0000005 - -gUnk_0811204A:: @ 0811204A - .incbin "baserom.gba", 0x11204A, 0x0000005 - -gUnk_0811204F:: @ 0811204F - .incbin "baserom.gba", 0x11204F, 0x0000005 - -gUnk_08112054:: @ 08112054 - .incbin "baserom.gba", 0x112054, 0x0000005 - -gUnk_08112059:: @ 08112059 - .incbin "baserom.gba", 0x112059, 0x0000005 - -gUnk_0811205E:: @ 0811205E - .incbin "baserom.gba", 0x11205E, 0x0000005 - -gUnk_08112063:: @ 08112063 - .incbin "baserom.gba", 0x112063, 0x0000005 - -gUnk_08112068:: @ 08112068 - .incbin "baserom.gba", 0x112068, 0x000000D - -gUnk_08112075:: @ 08112075 - .incbin "baserom.gba", 0x112075, 0x000000D - -gUnk_08112082:: @ 08112082 - .incbin "baserom.gba", 0x112082, 0x000000D - -gUnk_0811208F:: @ 0811208F - .incbin "baserom.gba", 0x11208F, 0x000000D - -gUnk_0811209C:: @ 0811209C - .incbin "baserom.gba", 0x11209C, 0x0000011 - -gUnk_081120AD:: @ 081120AD - .incbin "baserom.gba", 0x1120AD, 0x0000011 - -gUnk_081120BE:: @ 081120BE - .incbin "baserom.gba", 0x1120BE, 0x0000011 - -gUnk_081120CF:: @ 081120CF - .incbin "baserom.gba", 0x1120CF, 0x0000011 - -gUnk_081120E0:: @ 081120E0 - .incbin "baserom.gba", 0x1120E0, 0x0000020 - -gUnk_08112100:: @ 08112100 - .incbin "baserom.gba", 0x112100, 0x0000021 - -gUnk_08112121:: @ 08112121 - .incbin "baserom.gba", 0x112121, 0x000000A - -gUnk_0811212B:: @ 0811212B - .incbin "baserom.gba", 0x11212B, 0x0000089 - -gUnk_081121B4:: @ 081121B4 - .incbin "baserom.gba", 0x1121B4, 0x0000010 - -gUnk_081121C4:: @ 081121C4 - .incbin "baserom.gba", 0x1121C4, 0x0000010 - -gUnk_081121D4:: @ 081121D4 - .incbin "baserom.gba", 0x1121D4, 0x0000008 - -gUnk_081121DC:: @ 081121DC - .incbin "baserom.gba", 0x1121DC, 0x0000008 - -gUnk_081121E4:: @ 081121E4 - .incbin "baserom.gba", 0x1121E4, 0x0000020 - -gUnk_08112204:: @ 08112204 - .incbin "baserom.gba", 0x112204, 0x0000004 - -gUnk_08112208:: @ 08112208 - .incbin "baserom.gba", 0x112208, 0x0000024 - -gUnk_0811222C:: @ 0811222C - .incbin "baserom.gba", 0x11222C, 0x000000C - -gUnk_08112238:: @ 08112238 - .incbin "baserom.gba", 0x112238, 0x000000B - -gUnk_08112243:: @ 08112243 - .incbin "baserom.gba", 0x112243, 0x000001D - -gUnk_08112260:: @ 08112260 - .incbin "baserom.gba", 0x112260, 0x0000018 - -gUnk_08112278:: @ 08112278 - .incbin "baserom.gba", 0x112278, 0x000001C - -gUnk_08112294:: @ 08112294 - .incbin "baserom.gba", 0x112294, 0x0000008 - -gUnk_0811229C:: @ 0811229C - .incbin "baserom.gba", 0x11229C, 0x0000004 - -gUnk_081122A0:: @ 081122A0 - .incbin "baserom.gba", 0x1122A0, 0x0000008 - -gUnk_081122A8:: @ 081122A8 - .incbin "baserom.gba", 0x1122A8, 0x0000008 - -gUnk_081122B0:: @ 081122B0 - .incbin "baserom.gba", 0x1122B0, 0x0000008 - -gUnk_081122B8:: @ 081122B8 - .incbin "baserom.gba", 0x1122B8, 0x0000008 - -gUnk_081122C0:: @ 081122C0 - .incbin "baserom.gba", 0x1122C0, 0x0000009 - -gUnk_081122C9:: @ 081122C9 - .incbin "baserom.gba", 0x1122C9, 0x0000009 - -gUnk_081122D2:: @ 081122D2 - .incbin "baserom.gba", 0x1122D2, 0x0000009 - -gUnk_081122DB:: @ 081122DB - .incbin "baserom.gba", 0x1122DB, 0x0000025 - -gUnk_08112300:: @ 08112300 - .incbin "baserom.gba", 0x112300, 0x0000025 - -gUnk_08112325:: @ 08112325 - .incbin "baserom.gba", 0x112325, 0x0000025 - -gUnk_0811234A:: @ 0811234A - .incbin "baserom.gba", 0x11234A, 0x000003D - -gUnk_08112387:: @ 08112387 - .incbin "baserom.gba", 0x112387, 0x0000019 - -gUnk_081123A0:: @ 081123A0 - .incbin "baserom.gba", 0x1123A0, 0x0000029 - -gUnk_081123C9:: @ 081123C9 - .incbin "baserom.gba", 0x1123C9, 0x0000025 - -gUnk_081123EE:: @ 081123EE - .incbin "baserom.gba", 0x1123EE, 0x0000079 - -gUnk_08112467:: @ 08112467 - .incbin "baserom.gba", 0x112467, 0x0000032 - -gUnk_08112499:: @ 08112499 - .incbin "baserom.gba", 0x112499, 0x0000013 - -gUnk_081124AC:: @ 081124AC - .incbin "baserom.gba", 0x1124AC, 0x0000009 - -gUnk_081124B5:: @ 081124B5 - .incbin "baserom.gba", 0x1124B5, 0x000001D - -gUnk_081124D2:: @ 081124D2 - .incbin "baserom.gba", 0x1124D2, 0x0000019 - -gUnk_081124EB:: @ 081124EB - .incbin "baserom.gba", 0x1124EB, 0x0000014 - -gUnk_081124FF:: @ 081124FF - .incbin "baserom.gba", 0x1124FF, 0x0000025 - -gUnk_08112524:: @ 08112524 - .incbin "baserom.gba", 0x112524, 0x0000019 - -gUnk_0811253D:: @ 0811253D - .incbin "baserom.gba", 0x11253D, 0x0000045 - -gUnk_08112582:: @ 08112582 - .incbin "baserom.gba", 0x112582, 0x0000016 - -gUnk_08112598:: @ 08112598 - .incbin "baserom.gba", 0x112598, 0x000005C - -gUnk_081125F4:: @ 081125F4 - .incbin "baserom.gba", 0x1125F4, 0x000000C - -gUnk_08112600:: @ 08112600 - .incbin "baserom.gba", 0x112600, 0x0000074 - -gUnk_08112674:: @ 08112674 - .incbin "baserom.gba", 0x112674, 0x0000060 - -gUnk_081126D4:: @ 081126D4 - .incbin "baserom.gba", 0x1126D4, 0x0000010 - -gUnk_081126E4:: @ 081126E4 - .incbin "baserom.gba", 0x1126E4, 0x0000004 - -gUnk_081126E8:: @ 081126E8 - .incbin "baserom.gba", 0x1126E8, 0x0000008 - -gUnk_081126F0:: @ 081126F0 - .incbin "baserom.gba", 0x1126F0, 0x000024C - -gUnk_0811293C:: @ 0811293C - .incbin "baserom.gba", 0x11293C, 0x0000001 - -gUnk_0811293D:: @ 0811293D - .incbin "baserom.gba", 0x11293D, 0x00002B3 - -gUnk_08112BF0:: @ 08112BF0 - .incbin "baserom.gba", 0x112BF0, 0x0000050 - -gUnk_08112C40:: @ 08112C40 - .incbin "baserom.gba", 0x112C40, 0x000000A - -gUnk_08112C4A:: @ 08112C4A - .incbin "baserom.gba", 0x112C4A, 0x0000006 - -gUnk_08112C50:: @ 08112C50 - .incbin "baserom.gba", 0x112C50, 0x000000C - -gUnk_08112C5C:: @ 08112C5C - .incbin "baserom.gba", 0x112C5C, 0x0000004 - -gUnk_08112C60:: @ 08112C60 - .incbin "baserom.gba", 0x112C60, 0x0000008 - -gUnk_08112C68:: @ 08112C68 - .incbin "baserom.gba", 0x112C68, 0x0000005 - -gUnk_08112C6D:: @ 08112C6D - .incbin "baserom.gba", 0x112C6D, 0x0000005 - -gUnk_08112C72:: @ 08112C72 - .incbin "baserom.gba", 0x112C72, 0x0000005 - -gUnk_08112C77:: @ 08112C77 - .incbin "baserom.gba", 0x112C77, 0x0000005 - -gUnk_08112C7C:: @ 08112C7C - .incbin "baserom.gba", 0x112C7C, 0x0000021 - -gUnk_08112C9D:: @ 08112C9D - .incbin "baserom.gba", 0x112C9D, 0x0000021 - -gUnk_08112CBE:: @ 08112CBE - .incbin "baserom.gba", 0x112CBE, 0x0000021 - -gUnk_08112CDF:: @ 08112CDF - .incbin "baserom.gba", 0x112CDF, 0x0000021 - -gUnk_08112D00:: @ 08112D00 - .incbin "baserom.gba", 0x112D00, 0x0000005 - -gUnk_08112D05:: @ 08112D05 - .incbin "baserom.gba", 0x112D05, 0x0000005 - -gUnk_08112D0A:: @ 08112D0A - .incbin "baserom.gba", 0x112D0A, 0x0000005 - -gUnk_08112D0F:: @ 08112D0F - .incbin "baserom.gba", 0x112D0F, 0x0000005 - -gUnk_08112D14:: @ 08112D14 - .incbin "baserom.gba", 0x112D14, 0x0000034 - -gUnk_08112D48:: @ 08112D48 - .incbin "baserom.gba", 0x112D48, 0x0000008 - -gUnk_08112D50:: @ 08112D50 - .incbin "baserom.gba", 0x112D50, 0x000000A - -gUnk_08112D5A:: @ 08112D5A - .incbin "baserom.gba", 0x112D5A, 0x0000015 - -gUnk_08112D6F:: @ 08112D6F - .incbin "baserom.gba", 0x112D6F, 0x0000009 - -gUnk_08112D78:: @ 08112D78 - .incbin "baserom.gba", 0x112D78, 0x0000011 - -gUnk_08112D89:: @ 08112D89 - .incbin "baserom.gba", 0x112D89, 0x0000011 - -gUnk_08112D9A:: @ 08112D9A - .incbin "baserom.gba", 0x112D9A, 0x000004D - -gUnk_08112DE7:: @ 08112DE7 - .incbin "baserom.gba", 0x112DE7, 0x0000005 - -gUnk_08112DEC:: @ 08112DEC - .incbin "baserom.gba", 0x112DEC, 0x0000030 - -gUnk_08112E1C:: @ 08112E1C - .incbin "baserom.gba", 0x112E1C, 0x0000010 - -gUnk_08112E2C:: @ 08112E2C - .incbin "baserom.gba", 0x112E2C, 0x0000028 - -gUnk_08112E54:: @ 08112E54 - .incbin "baserom.gba", 0x112E54, 0x0000008 - -gUnk_08112E5C:: @ 08112E5C - .incbin "baserom.gba", 0x112E5C, 0x0000049 - -gUnk_08112EA5:: @ 08112EA5 - .incbin "baserom.gba", 0x112EA5, 0x0000005 - -gUnk_08112EAA:: @ 08112EAA - .incbin "baserom.gba", 0x112EAA, 0x0000005 - -gUnk_08112EAF:: @ 08112EAF - .incbin "baserom.gba", 0x112EAF, 0x0000005 - -gUnk_08112EB4:: @ 08112EB4 - .incbin "baserom.gba", 0x112EB4, 0x0000071 - -gUnk_08112F25:: @ 08112F25 - .incbin "baserom.gba", 0x112F25, 0x0000005 - -gUnk_08112F2A:: @ 08112F2A - .incbin "baserom.gba", 0x112F2A, 0x0000005 - -gUnk_08112F2F:: @ 08112F2F - .incbin "baserom.gba", 0x112F2F, 0x0000005 - -gUnk_08112F34:: @ 08112F34 - .incbin "baserom.gba", 0x112F34, 0x0000044 - -gUnk_08112F78:: @ 08112F78 - .incbin "baserom.gba", 0x112F78, 0x0000008 - -gUnk_08112F80:: @ 08112F80 - .incbin "baserom.gba", 0x112F80, 0x0000008 - -gUnk_08112F88:: @ 08112F88 - .incbin "baserom.gba", 0x112F88, 0x000003C - -gUnk_08112FC4:: @ 08112FC4 - .incbin "baserom.gba", 0x112FC4, 0x0000011 - -gUnk_08112FD5:: @ 08112FD5 - .incbin "baserom.gba", 0x112FD5, 0x000001F - -gUnk_08112FF4:: @ 08112FF4 - .incbin "baserom.gba", 0x112FF4, 0x0000010 - -gUnk_08113004:: @ 08113004 - .incbin "baserom.gba", 0x113004, 0x0000020 - -gUnk_08113024:: @ 08113024 - .incbin "baserom.gba", 0x113024, 0x0000008 - -gUnk_0811302C:: @ 0811302C - .incbin "baserom.gba", 0x11302C, 0x0000044 - -gUnk_08113070:: @ 08113070 - .incbin "baserom.gba", 0x113070, 0x0000008 - -gUnk_08113078:: @ 08113078 - .incbin "baserom.gba", 0x113078, 0x0000006 - -gUnk_0811307E:: @ 0811307E - .incbin "baserom.gba", 0x11307E, 0x0000005 - -gUnk_08113083:: @ 08113083 - .incbin "baserom.gba", 0x113083, 0x000000D - -gUnk_08113090:: @ 08113090 - .incbin "baserom.gba", 0x113090, 0x0000010 - -gUnk_081130A0:: @ 081130A0 - .incbin "baserom.gba", 0x1130A0, 0x0000038 - -gUnk_081130D8:: @ 081130D8 - .incbin "baserom.gba", 0x1130D8, 0x0000005 - -gUnk_081130DD:: @ 081130DD - .incbin "baserom.gba", 0x1130DD, 0x000000D - -gUnk_081130EA:: @ 081130EA - .incbin "baserom.gba", 0x1130EA, 0x000000D - -gUnk_081130F7:: @ 081130F7 - .incbin "baserom.gba", 0x1130F7, 0x000000B - -gUnk_08113102:: @ 08113102 - .incbin "baserom.gba", 0x113102, 0x0000006 - -gUnk_08113108:: @ 08113108 - .incbin "baserom.gba", 0x113108, 0x0000038 - -gUnk_08113140:: @ 08113140 - .incbin "baserom.gba", 0x113140, 0x0000018 - -gUnk_08113158:: @ 08113158 - .incbin "baserom.gba", 0x113158, 0x0000010 - -gUnk_08113168:: @ 08113168 - .incbin "baserom.gba", 0x113168, 0x0000025 - -gUnk_0811318D:: @ 0811318D - .incbin "baserom.gba", 0x11318D, 0x0000005 - -gUnk_08113192:: @ 08113192 - .incbin "baserom.gba", 0x113192, 0x0000005 - -gUnk_08113197:: @ 08113197 - .incbin "baserom.gba", 0x113197, 0x0000005 - -gUnk_0811319C:: @ 0811319C - .incbin "baserom.gba", 0x11319C, 0x0000044 - -gUnk_081131E0:: @ 081131E0 - .incbin "baserom.gba", 0x1131E0, 0x0000025 - -gUnk_08113205:: @ 08113205 - .incbin "baserom.gba", 0x113205, 0x0000005 - -gUnk_0811320A:: @ 0811320A - .incbin "baserom.gba", 0x11320A, 0x0000005 - -gUnk_0811320F:: @ 0811320F - .incbin "baserom.gba", 0x11320F, 0x0000005 - -gUnk_08113214:: @ 08113214 - .incbin "baserom.gba", 0x113214, 0x0000044 - -gUnk_08113258:: @ 08113258 - .incbin "baserom.gba", 0x113258, 0x0000005 - -gUnk_0811325D:: @ 0811325D - .incbin "baserom.gba", 0x11325D, 0x0000011 - -gUnk_0811326E:: @ 0811326E - .incbin "baserom.gba", 0x11326E, 0x0000031 - -gUnk_0811329F:: @ 0811329F - .incbin "baserom.gba", 0x11329F, 0x0000045 - -gUnk_081132E4:: @ 081132E4 - .incbin "baserom.gba", 0x1132E4, 0x0000030 - -gUnk_08113314:: @ 08113314 - .incbin "baserom.gba", 0x113314, 0x0000030 - -gUnk_08113344:: @ 08113344 - .incbin "baserom.gba", 0x113344, 0x0000006 - -gUnk_0811334A:: @ 0811334A - .incbin "baserom.gba", 0x11334A, 0x0000006 - -gUnk_08113350:: @ 08113350 - .incbin "baserom.gba", 0x113350, 0x0000019 - -gUnk_08113369:: @ 08113369 - .incbin "baserom.gba", 0x113369, 0x0000005 - -gUnk_0811336E:: @ 0811336E - .incbin "baserom.gba", 0x11336E, 0x0000009 - -gUnk_08113377:: @ 08113377 - .incbin "baserom.gba", 0x113377, 0x0000009 - -gUnk_08113380:: @ 08113380 - .incbin "baserom.gba", 0x113380, 0x0000024 - -gUnk_081133A4:: @ 081133A4 - .incbin "baserom.gba", 0x1133A4, 0x0000010 - -gUnk_081133B4:: @ 081133B4 - .incbin "baserom.gba", 0x1133B4, 0x0000004 - -gUnk_081133B8:: @ 081133B8 - .incbin "baserom.gba", 0x1133B8, 0x0000031 - -gUnk_081133E9:: @ 081133E9 - .incbin "baserom.gba", 0x1133E9, 0x0000011 - -gUnk_081133FA:: @ 081133FA - .incbin "baserom.gba", 0x1133FA, 0x0000019 - -gUnk_08113413:: @ 08113413 - .incbin "baserom.gba", 0x113413, 0x0000021 - -gUnk_08113434:: @ 08113434 - .incbin "baserom.gba", 0x113434, 0x0000009 - -gUnk_0811343D:: @ 0811343D - .incbin "baserom.gba", 0x11343D, 0x0000002 - -gUnk_0811343F:: @ 0811343F - .incbin "baserom.gba", 0x11343F, 0x0000007 - -gUnk_08113446:: @ 08113446 - .incbin "baserom.gba", 0x113446, 0x0000009 - -gUnk_0811344F:: @ 0811344F - .incbin "baserom.gba", 0x11344F, 0x0000041 - -gUnk_08113490:: @ 08113490 - .incbin "baserom.gba", 0x113490, 0x0000044 - -gUnk_081134D4:: @ 081134D4 - .incbin "baserom.gba", 0x1134D4, 0x0000034 - -gUnk_08113508:: @ 08113508 - .incbin "baserom.gba", 0x113508, 0x0000024 - -gUnk_0811352C:: @ 0811352C - .incbin "baserom.gba", 0x11352C, 0x0000021 - -gUnk_0811354D:: @ 0811354D - .incbin "baserom.gba", 0x11354D, 0x0000019 - -gUnk_08113566:: @ 08113566 - .incbin "baserom.gba", 0x113566, 0x0000008 - -gUnk_0811356E:: @ 0811356E - .incbin "baserom.gba", 0x11356E, 0x0000021 - -gUnk_0811358F:: @ 0811358F - .incbin "baserom.gba", 0x11358F, 0x0000021 - -gUnk_081135B0:: @ 081135B0 - .incbin "baserom.gba", 0x1135B0, 0x000002D - -gUnk_081135DD:: @ 081135DD - .incbin "baserom.gba", 0x1135DD, 0x0000005 - -gUnk_081135E2:: @ 081135E2 - .incbin "baserom.gba", 0x1135E2, 0x0000006 - -gUnk_081135E8:: @ 081135E8 - .incbin "baserom.gba", 0x1135E8, 0x0000044 - -gUnk_0811362C:: @ 0811362C - .incbin "baserom.gba", 0x11362C, 0x0000005 - -gUnk_08113631:: @ 08113631 - .incbin "baserom.gba", 0x113631, 0x0000005 - -gUnk_08113636:: @ 08113636 - .incbin "baserom.gba", 0x113636, 0x0000005 - -gUnk_0811363B:: @ 0811363B - .incbin "baserom.gba", 0x11363B, 0x0000005 - -gUnk_08113640:: @ 08113640 - .incbin "baserom.gba", 0x113640, 0x0000005 - -gUnk_08113645:: @ 08113645 - .incbin "baserom.gba", 0x113645, 0x0000005 - -gUnk_0811364A:: @ 0811364A - .incbin "baserom.gba", 0x11364A, 0x0000066 - -gUnk_081136B0:: @ 081136B0 - .incbin "baserom.gba", 0x1136B0, 0x0000028 - -gUnk_081136D8:: @ 081136D8 - .incbin "baserom.gba", 0x1136D8, 0x0000011 - -gUnk_081136E9:: @ 081136E9 - .incbin "baserom.gba", 0x1136E9, 0x0000011 - -gUnk_081136FA:: @ 081136FA - .incbin "baserom.gba", 0x1136FA, 0x0000011 - -gUnk_0811370B:: @ 0811370B - .incbin "baserom.gba", 0x11370B, 0x0000011 - -gUnk_0811371C:: @ 0811371C - .incbin "baserom.gba", 0x11371C, 0x0000005 - -gUnk_08113721:: @ 08113721 - .incbin "baserom.gba", 0x113721, 0x0000005 - -gUnk_08113726:: @ 08113726 - .incbin "baserom.gba", 0x113726, 0x0000005 - -gUnk_0811372B:: @ 0811372B - .incbin "baserom.gba", 0x11372B, 0x0000005 - -gUnk_08113730:: @ 08113730 - .incbin "baserom.gba", 0x113730, 0x0000024 - -gUnk_08113754:: @ 08113754 - .incbin "baserom.gba", 0x113754, 0x000000C - -gUnk_08113760:: @ 08113760 - .incbin "baserom.gba", 0x113760, 0x0000050 - -gUnk_081137B0:: @ 081137B0 - .incbin "baserom.gba", 0x1137B0, 0x0000039 - -gUnk_081137E9:: @ 081137E9 - .incbin "baserom.gba", 0x1137E9, 0x0000088 - -gUnk_08113871:: @ 08113871 - .incbin "baserom.gba", 0x113871, 0x0000021 - -gUnk_08113892:: @ 08113892 - .incbin "baserom.gba", 0x113892, 0x0000005 - -gUnk_08113897:: @ 08113897 - .incbin "baserom.gba", 0x113897, 0x0000019 - -gUnk_081138B0:: @ 081138B0 - .incbin "baserom.gba", 0x1138B0, 0x0000008 - -gUnk_081138B8:: @ 081138B8 - .incbin "baserom.gba", 0x1138B8, 0x0000024 - -gUnk_081138DC:: @ 081138DC - .incbin "baserom.gba", 0x1138DC, 0x0000005 - -gUnk_081138E1:: @ 081138E1 - .incbin "baserom.gba", 0x1138E1, 0x000001B - -gUnk_081138FC:: @ 081138FC - .incbin "baserom.gba", 0x1138FC, 0x0000014 - -gUnk_08113910:: @ 08113910 - .incbin "baserom.gba", 0x113910, 0x0000020 - -gUnk_08113930:: @ 08113930 - .incbin "baserom.gba", 0x113930, 0x0000080 - -gUnk_081139B0:: @ 081139B0 - .incbin "baserom.gba", 0x1139B0, 0x000001D - -gUnk_081139CD:: @ 081139CD - .incbin "baserom.gba", 0x1139CD, 0x000001D - -gUnk_081139EA:: @ 081139EA - .incbin "baserom.gba", 0x1139EA, 0x000001E - -gUnk_08113A08:: @ 08113A08 - .incbin "baserom.gba", 0x113A08, 0x0000014 - -gUnk_08113A1C:: @ 08113A1C - .incbin "baserom.gba", 0x113A1C, 0x0000060 - -gUnk_08113A7C:: @ 08113A7C - .incbin "baserom.gba", 0x113A7C, 0x0000010 - -gUnk_08113A8C:: @ 08113A8C - .incbin "baserom.gba", 0x113A8C, 0x0000030 - -gUnk_08113ABC:: @ 08113ABC - .incbin "baserom.gba", 0x113ABC, 0x0000050 - -gUnk_08113B0C:: @ 08113B0C - .incbin "baserom.gba", 0x113B0C, 0x0000006 - -gUnk_08113B12:: @ 08113B12 - .incbin "baserom.gba", 0x113B12, 0x0000004 - -gUnk_08113B16:: @ 08113B16 - .incbin "baserom.gba", 0x113B16, 0x0000008 - -gUnk_08113B1E:: @ 08113B1E - .incbin "baserom.gba", 0x113B1E, 0x0000004 - -gUnk_08113B22:: @ 08113B22 - .incbin "baserom.gba", 0x113B22, 0x0000006 - -gUnk_08113B28:: @ 08113B28 - .incbin "baserom.gba", 0x113B28, 0x0000008 - -gUnk_08113B30:: @ 08113B30 - .incbin "baserom.gba", 0x113B30, 0x0000008 - -gUnk_08113B38:: @ 08113B38 - .incbin "baserom.gba", 0x113B38, 0x0000007 - -gUnk_08113B3F:: @ 08113B3F - .incbin "baserom.gba", 0x113B3F, 0x0000005 - -gUnk_08113B44:: @ 08113B44 - .incbin "baserom.gba", 0x113B44, 0x0000005 - -gUnk_08113B49:: @ 08113B49 - .incbin "baserom.gba", 0x113B49, 0x0000005 - -gUnk_08113B4E:: @ 08113B4E - .incbin "baserom.gba", 0x113B4E, 0x0000005 - -gUnk_08113B53:: @ 08113B53 - .incbin "baserom.gba", 0x113B53, 0x0000011 - -gUnk_08113B64:: @ 08113B64 - .incbin "baserom.gba", 0x113B64, 0x0000011 - -gUnk_08113B75:: @ 08113B75 - .incbin "baserom.gba", 0x113B75, 0x0000011 - -gUnk_08113B86:: @ 08113B86 - .incbin "baserom.gba", 0x113B86, 0x0000012 - -gUnk_08113B98:: @ 08113B98 - .incbin "baserom.gba", 0x113B98, 0x0000024 - -gUnk_08113BBC:: @ 08113BBC - .incbin "baserom.gba", 0x113BBC, 0x0000005 - -gUnk_08113BC1:: @ 08113BC1 - .incbin "baserom.gba", 0x113BC1, 0x0000005 - -gUnk_08113BC6:: @ 08113BC6 - .incbin "baserom.gba", 0x113BC6, 0x0000005 - -gUnk_08113BCB:: @ 08113BCB - .incbin "baserom.gba", 0x113BCB, 0x0000005 - -gUnk_08113BD0:: @ 08113BD0 - .incbin "baserom.gba", 0x113BD0, 0x0000011 - -gUnk_08113BE1:: @ 08113BE1 - .incbin "baserom.gba", 0x113BE1, 0x0000011 - -gUnk_08113BF2:: @ 08113BF2 - .incbin "baserom.gba", 0x113BF2, 0x0000011 - -gUnk_08113C03:: @ 08113C03 - .incbin "baserom.gba", 0x113C03, 0x0000011 - -gUnk_08113C14:: @ 08113C14 - .incbin "baserom.gba", 0x113C14, 0x0000024 - -gUnk_08113C38:: @ 08113C38 - .incbin "baserom.gba", 0x113C38, 0x0000005 - -gUnk_08113C3D:: @ 08113C3D - .incbin "baserom.gba", 0x113C3D, 0x0000005 - -gUnk_08113C42:: @ 08113C42 - .incbin "baserom.gba", 0x113C42, 0x0000005 - -gUnk_08113C47:: @ 08113C47 - .incbin "baserom.gba", 0x113C47, 0x0000011 - -gUnk_08113C58:: @ 08113C58 - .incbin "baserom.gba", 0x113C58, 0x0000024 - -gUnk_08113C7C:: @ 08113C7C - .incbin "baserom.gba", 0x113C7C, 0x0000005 - -gUnk_08113C81:: @ 08113C81 - .incbin "baserom.gba", 0x113C81, 0x0000005 - -gUnk_08113C86:: @ 08113C86 - .incbin "baserom.gba", 0x113C86, 0x0000005 - -gUnk_08113C8B:: @ 08113C8B - .incbin "baserom.gba", 0x113C8B, 0x0000005 - -gUnk_08113C90:: @ 08113C90 - .incbin "baserom.gba", 0x113C90, 0x0000011 - -gUnk_08113CA1:: @ 08113CA1 - .incbin "baserom.gba", 0x113CA1, 0x0000011 - -gUnk_08113CB2:: @ 08113CB2 - .incbin "baserom.gba", 0x113CB2, 0x0000011 - -gUnk_08113CC3:: @ 08113CC3 - .incbin "baserom.gba", 0x113CC3, 0x0000011 - -gUnk_08113CD4:: @ 08113CD4 - .incbin "baserom.gba", 0x113CD4, 0x0000024 - -gUnk_08113CF8:: @ 08113CF8 - .incbin "baserom.gba", 0x113CF8, 0x0000005 - -gUnk_08113CFD:: @ 08113CFD - .incbin "baserom.gba", 0x113CFD, 0x0000005 - -gUnk_08113D02:: @ 08113D02 - .incbin "baserom.gba", 0x113D02, 0x0000005 - -gUnk_08113D07:: @ 08113D07 - .incbin "baserom.gba", 0x113D07, 0x0000015 - -gUnk_08113D1C:: @ 08113D1C - .incbin "baserom.gba", 0x113D1C, 0x0000024 - -gUnk_08113D40:: @ 08113D40 - .incbin "baserom.gba", 0x113D40, 0x0000005 - -gUnk_08113D45:: @ 08113D45 - .incbin "baserom.gba", 0x113D45, 0x0000005 - -gUnk_08113D4A:: @ 08113D4A - .incbin "baserom.gba", 0x113D4A, 0x0000005 - -gUnk_08113D4F:: @ 08113D4F - .incbin "baserom.gba", 0x113D4F, 0x0000011 - -gUnk_08113D60:: @ 08113D60 - .incbin "baserom.gba", 0x113D60, 0x0000024 - -gUnk_08113D84:: @ 08113D84 - .incbin "baserom.gba", 0x113D84, 0x0000008 - -gUnk_08113D8C:: @ 08113D8C - .incbin "baserom.gba", 0x113D8C, 0x0000010 - -gUnk_08113D9C:: @ 08113D9C - .incbin "baserom.gba", 0x113D9C, 0x0000011 - -gUnk_08113DAD:: @ 08113DAD - .incbin "baserom.gba", 0x113DAD, 0x0000005 - -gUnk_08113DB2:: @ 08113DB2 - .incbin "baserom.gba", 0x113DB2, 0x0000029 - -gUnk_08113DDB:: @ 08113DDB - .incbin "baserom.gba", 0x113DDB, 0x00000D9 - -gUnk_08113EB4:: @ 08113EB4 - .incbin "baserom.gba", 0x113EB4, 0x0000011 - -gUnk_08113EC5:: @ 08113EC5 - .incbin "baserom.gba", 0x113EC5, 0x0000011 - -gUnk_08113ED6:: @ 08113ED6 - .incbin "baserom.gba", 0x113ED6, 0x0000011 - -gUnk_08113EE7:: @ 08113EE7 - .incbin "baserom.gba", 0x113EE7, 0x0000005 - -gUnk_08113EEC:: @ 08113EEC - .incbin "baserom.gba", 0x113EEC, 0x0000005 - -gUnk_08113EF1:: @ 08113EF1 - .incbin "baserom.gba", 0x113EF1, 0x0000007 - -gUnk_08113EF8:: @ 08113EF8 - .incbin "baserom.gba", 0x113EF8, 0x000004C - -gUnk_08113F44:: @ 08113F44 - .incbin "baserom.gba", 0x113F44, 0x0000004 - -gUnk_08113F48:: @ 08113F48 - .incbin "baserom.gba", 0x113F48, 0x0000078 - -gUnk_08113FC0:: @ 08113FC0 - .incbin "baserom.gba", 0x113FC0, 0x0000005 - -gUnk_08113FC5:: @ 08113FC5 - .incbin "baserom.gba", 0x113FC5, 0x0000005 - -gUnk_08113FCA:: @ 08113FCA - .incbin "baserom.gba", 0x113FCA, 0x0000005 - -gUnk_08113FCF:: @ 08113FCF - .incbin "baserom.gba", 0x113FCF, 0x0000005 - -gUnk_08113FD4:: @ 08113FD4 - .incbin "baserom.gba", 0x113FD4, 0x0000011 - -gUnk_08113FE5:: @ 08113FE5 - .incbin "baserom.gba", 0x113FE5, 0x000004D - -gUnk_08114032:: @ 08114032 - .incbin "baserom.gba", 0x114032, 0x000000D - -gUnk_0811403F:: @ 0811403F - .incbin "baserom.gba", 0x11403F, 0x0000011 - -gUnk_08114050:: @ 08114050 - .incbin "baserom.gba", 0x114050, 0x0000011 - -gUnk_08114061:: @ 08114061 - .incbin "baserom.gba", 0x114061, 0x0000029 - -gUnk_0811408A:: @ 0811408A - .incbin "baserom.gba", 0x11408A, 0x000000E - -gUnk_08114098:: @ 08114098 - .incbin "baserom.gba", 0x114098, 0x0000034 - -gUnk_081140CC:: @ 081140CC - .incbin "baserom.gba", 0x1140CC, 0x0000008 - -gUnk_081140D4:: @ 081140D4 - .incbin "baserom.gba", 0x1140D4, 0x000002C - -gUnk_08114100:: @ 08114100 - .incbin "baserom.gba", 0x114100, 0x0000004 - -gUnk_08114104:: @ 08114104 - .incbin "baserom.gba", 0x114104, 0x0000030 - -gUnk_08114134:: @ 08114134 - .incbin "baserom.gba", 0x114134, 0x0000010 - -gUnk_08114144:: @ 08114144 - .incbin "baserom.gba", 0x114144, 0x0000010 - -gUnk_08114154:: @ 08114154 - .incbin "baserom.gba", 0x114154, 0x0000008 - -gUnk_0811415C:: @ 0811415C - .incbin "baserom.gba", 0x11415C, 0x0000048 - -gUnk_081141A4:: @ 081141A4 - .incbin "baserom.gba", 0x1141A4, 0x0000040 - -gUnk_081141E4:: @ 081141E4 - .incbin "baserom.gba", 0x1141E4, 0x0000010 - -gUnk_081141F4:: @ 081141F4 - .incbin "baserom.gba", 0x1141F4, 0x0000014 - -gUnk_08114208:: @ 08114208 - .incbin "baserom.gba", 0x114208, 0x0000005 - -gUnk_0811420D:: @ 0811420D - .incbin "baserom.gba", 0x11420D, 0x0000004 - -gUnk_08114211:: @ 08114211 - .incbin "baserom.gba", 0x114211, 0x0000005 - -gUnk_08114216:: @ 08114216 - .incbin "baserom.gba", 0x114216, 0x0000009 - -gUnk_0811421F:: @ 0811421F - .incbin "baserom.gba", 0x11421F, 0x0000009 - -gUnk_08114228:: @ 08114228 - .incbin "baserom.gba", 0x114228, 0x0000014 - -gUnk_0811423C:: @ 0811423C - .incbin "baserom.gba", 0x11423C, 0x0000008 - -gUnk_08114244:: @ 08114244 - .incbin "baserom.gba", 0x114244, 0x0000019 - -gUnk_0811425D:: @ 0811425D - .incbin "baserom.gba", 0x11425D, 0x0000019 - -gUnk_08114276:: @ 08114276 - .incbin "baserom.gba", 0x114276, 0x0000019 - -gUnk_0811428F:: @ 0811428F - .incbin "baserom.gba", 0x11428F, 0x0000019 - -gUnk_081142A8:: @ 081142A8 - .incbin "baserom.gba", 0x1142A8, 0x0000014 - -gUnk_081142BC:: @ 081142BC - .incbin "baserom.gba", 0x1142BC, 0x0000010 - -gUnk_081142CC:: @ 081142CC - .incbin "baserom.gba", 0x1142CC, 0x0000010 - -gUnk_081142DC:: @ 081142DC - .incbin "baserom.gba", 0x1142DC, 0x0000020 - -gUnk_081142FC:: @ 081142FC - .incbin "baserom.gba", 0x1142FC, 0x0000008 - -gUnk_08114304:: @ 08114304 - .incbin "baserom.gba", 0x114304, 0x0000004 - -gUnk_08114308:: @ 08114308 - .incbin "baserom.gba", 0x114308, 0x0000128 - -gUnk_08114430:: @ 08114430 - .incbin "baserom.gba", 0x114430, 0x0000002 - -gUnk_08114432:: @ 08114432 - .incbin "baserom.gba", 0x114432, 0x0000012 - -gUnk_08114444:: @ 08114444 - .incbin "baserom.gba", 0x114444, 0x0000084 - -gUnk_081144C8:: @ 081144C8 - .incbin "baserom.gba", 0x1144C8, 0x0000005 - -gUnk_081144CD:: @ 081144CD - .incbin "baserom.gba", 0x1144CD, 0x0000005 - -gUnk_081144D2:: @ 081144D2 - .incbin "baserom.gba", 0x1144D2, 0x0000005 - -gUnk_081144D7:: @ 081144D7 - .incbin "baserom.gba", 0x1144D7, 0x0000005 - -gUnk_081144DC:: @ 081144DC - .incbin "baserom.gba", 0x1144DC, 0x0000014 - -gUnk_081144F0:: @ 081144F0 - .incbin "baserom.gba", 0x1144F0, 0x000000C - -gUnk_081144FC:: @ 081144FC - .incbin "baserom.gba", 0x1144FC, 0x0000035 - -gUnk_08114531:: @ 08114531 - .incbin "baserom.gba", 0x114531, 0x000000B - -gUnk_0811453C:: @ 0811453C - .incbin "baserom.gba", 0x11453C, 0x0000011 - -gUnk_0811454D:: @ 0811454D - .incbin "baserom.gba", 0x11454D, 0x0000011 - -gUnk_0811455E:: @ 0811455E - .incbin "baserom.gba", 0x11455E, 0x0000011 - -gUnk_0811456F:: @ 0811456F - .incbin "baserom.gba", 0x11456F, 0x0000005 - -gUnk_08114574:: @ 08114574 - .incbin "baserom.gba", 0x114574, 0x0000005 - -gUnk_08114579:: @ 08114579 - .incbin "baserom.gba", 0x114579, 0x0000007 - -gUnk_08114580:: @ 08114580 - .incbin "baserom.gba", 0x114580, 0x0000034 - -gUnk_081145B4:: @ 081145B4 - .incbin "baserom.gba", 0x1145B4, 0x0000014 - -gUnk_081145C8:: @ 081145C8 - .incbin "baserom.gba", 0x1145C8, 0x0000008 - -gUnk_081145D0:: @ 081145D0 - .incbin "baserom.gba", 0x1145D0, 0x0000004 - -gUnk_081145D4:: @ 081145D4 - .incbin "baserom.gba", 0x1145D4, 0x0000010 - -gUnk_081145E4:: @ 081145E4 - .incbin "baserom.gba", 0x1145E4, 0x00000D4 - -gUnk_081146B8:: @ 081146B8 - .incbin "baserom.gba", 0x1146B8, 0x0000018 - -gUnk_081146D0:: @ 081146D0 - .incbin "baserom.gba", 0x1146D0, 0x0000014 - -gUnk_081146E4:: @ 081146E4 - .incbin "baserom.gba", 0x1146E4, 0x0000010 - -gUnk_081146F4:: @ 081146F4 - .incbin "baserom.gba", 0x1146F4, 0x00000A8 - -gUnk_0811479C:: @ 0811479C - .incbin "baserom.gba", 0x11479C, 0x0000048 - -gUnk_081147E4:: @ 081147E4 - .incbin "baserom.gba", 0x1147E4, 0x0000020 - -gUnk_08114804:: @ 08114804 - .incbin "baserom.gba", 0x114804, 0x0000010 - -gUnk_08114814:: @ 08114814 - .incbin "baserom.gba", 0x114814, 0x0000010 - -gUnk_08114824:: @ 08114824 - .incbin "baserom.gba", 0x114824, 0x0000040 - -gUnk_08114864:: @ 08114864 - .incbin "baserom.gba", 0x114864, 0x0000010 - -gUnk_08114874:: @ 08114874 - .incbin "baserom.gba", 0x114874, 0x0000030 - -gUnk_081148A4:: @ 081148A4 - .incbin "baserom.gba", 0x1148A4, 0x0000020 - -gUnk_081148C4:: @ 081148C4 - .incbin "baserom.gba", 0x1148C4, 0x0000020 - -gUnk_081148E4:: @ 081148E4 - .incbin "baserom.gba", 0x1148E4, 0x0000030 - -gUnk_08114914:: @ 08114914 - .incbin "baserom.gba", 0x114914, 0x0000030 - -gUnk_08114944:: @ 08114944 - .incbin "baserom.gba", 0x114944, 0x0000030 - -gUnk_08114974:: @ 08114974 - .incbin "baserom.gba", 0x114974, 0x0000010 - -gUnk_08114984:: @ 08114984 - .incbin "baserom.gba", 0x114984, 0x0000010 - -gUnk_08114994:: @ 08114994 - .incbin "baserom.gba", 0x114994, 0x0000010 - -gUnk_081149A4:: @ 081149A4 - .incbin "baserom.gba", 0x1149A4, 0x0000010 - -gUnk_081149B4:: @ 081149B4 - .incbin "baserom.gba", 0x1149B4, 0x0000010 - -gUnk_081149C4:: @ 081149C4 - .incbin "baserom.gba", 0x1149C4, 0x0000030 - -gUnk_081149F4:: @ 081149F4 - .incbin "baserom.gba", 0x1149F4, 0x0000020 - -gUnk_08114A14:: @ 08114A14 - .incbin "baserom.gba", 0x114A14, 0x0000058 - -gUnk_08114A6C:: @ 08114A6C - .incbin "baserom.gba", 0x114A6C, 0x0000020 - -gUnk_08114A8C:: @ 08114A8C - .incbin "baserom.gba", 0x114A8C, 0x0000030 - -gUnk_08114ABC:: @ 08114ABC - .incbin "baserom.gba", 0x114ABC, 0x0000028 - -gUnk_08114AE4:: @ 08114AE4 - .incbin "baserom.gba", 0x114AE4, 0x0000400 - -gUnk_08114EE4:: @ 08114EE4 - .incbin "baserom.gba", 0x114EE4, 0x0000018 - -gUnk_08114EFC:: @ 08114EFC - .incbin "baserom.gba", 0x114EFC, 0x0000010 - -gUnk_08114F0C:: @ 08114F0C - .incbin "baserom.gba", 0x114F0C, 0x0000024 - -gUnk_08114F30:: @ 08114F30 - .incbin "baserom.gba", 0x114F30, 0x0000004 - -gUnk_08114F34:: @ 08114F34 - .incbin "baserom.gba", 0x114F34, 0x0000004 - -gUnk_08114F38:: @ 08114F38 - .incbin "baserom.gba", 0x114F38, 0x0000020 - -gUnk_08114F58:: @ 08114F58 - .incbin "baserom.gba", 0x114F58, 0x0000020 - -gUnk_08114F78:: @ 08114F78 - .incbin "baserom.gba", 0x114F78, 0x0000008 - -gUnk_08114F80:: @ 08114F80 - .incbin "baserom.gba", 0x114F80, 0x0000008 - -gUnk_08114F88:: @ 08114F88 - .incbin "baserom.gba", 0x114F88, 0x0000010 - -gUnk_08114F98:: @ 08114F98 - .incbin "baserom.gba", 0x114F98, 0x00003F4 - -gUnk_0811538C:: @ 0811538C - .incbin "baserom.gba", 0x11538C, 0x0000153 - -gUnk_081154DF:: @ 081154DF - .incbin "baserom.gba", 0x1154DF, 0x0000042 - -gUnk_08115521:: @ 08115521 - .incbin "baserom.gba", 0x115521, 0x0000002 - -gUnk_08115523:: @ 08115523 - .incbin "baserom.gba", 0x115523, 0x0000003 - -gUnk_08115526:: @ 08115526 - .incbin "baserom.gba", 0x115526, 0x00001FE - -gUnk_08115724:: @ 08115724 - .incbin "baserom.gba", 0x115724, 0x00003D4 - -gUnk_08115AF8:: @ 08115AF8 - .incbin "baserom.gba", 0x115AF8, 0x00003A4 - -gUnk_08115E9C:: @ 08115E9C - .incbin "baserom.gba", 0x115E9C, 0x0000176 - -gUnk_08116012:: @ 08116012 - .incbin "baserom.gba", 0x116012, 0x000026E - -gUnk_08116280:: @ 08116280 - .incbin "baserom.gba", 0x116280, 0x00002B0 - -gUnk_08116530:: @ 08116530 - .incbin "baserom.gba", 0x116530, 0x00001D3 - -gUnk_08116703:: @ 08116703 - .incbin "baserom.gba", 0x116703, 0x0000085 - -gUnk_08116788:: @ 08116788 - .incbin "baserom.gba", 0x116788, 0x0000100 - -gUnk_08116888:: @ 08116888 - .incbin "baserom.gba", 0x116888, 0x0000017 - -gUnk_0811689F:: @ 0811689F - .incbin "baserom.gba", 0x11689F, 0x00001FD - -gUnk_08116A9C:: @ 08116A9C - .incbin "baserom.gba", 0x116A9C, 0x0000270 - -gUnk_08116D0C:: @ 08116D0C - .incbin "baserom.gba", 0x116D0C, 0x00000C8 - -gUnk_08116DD4:: @ 08116DD4 - .incbin "baserom.gba", 0x116DD4, 0x0000071 - -gUnk_08116E45:: @ 08116E45 - .incbin "baserom.gba", 0x116E45, 0x000011F - -gUnk_08116F64:: @ 08116F64 - .incbin "baserom.gba", 0x116F64, 0x00002A4 - -gUnk_08117208:: @ 08117208 - .incbin "baserom.gba", 0x117208, 0x0000038 - -gUnk_08117240:: @ 08117240 - .incbin "baserom.gba", 0x117240, 0x000039C - -gUnk_081175DC:: @ 081175DC - .incbin "baserom.gba", 0x1175DC, 0x00002D4 - -gUnk_081178B0:: @ 081178B0 - .incbin "baserom.gba", 0x1178B0, 0x00002D4 - -gUnk_08117B84:: @ 08117B84 - .incbin "baserom.gba", 0x117B84, 0x00001E0 - -gUnk_08117D64:: @ 08117D64 - .incbin "baserom.gba", 0x117D64, 0x00000DC - -gUnk_08117E40:: @ 08117E40 - .incbin "baserom.gba", 0x117E40, 0x0000128 - -gUnk_08117F68:: @ 08117F68 - .incbin "baserom.gba", 0x117F68, 0x000006C - -gUnk_08117FD4:: @ 08117FD4 - .incbin "baserom.gba", 0x117FD4, 0x00001AD - -gUnk_08118181:: @ 08118181 - .incbin "baserom.gba", 0x118181, 0x0000033 - -gUnk_081181B4:: @ 081181B4 - .incbin "baserom.gba", 0x1181B4, 0x0000030 - -gUnk_081181E4:: @ 081181E4 - .incbin "baserom.gba", 0x1181E4, 0x0000054 - -gUnk_08118238:: @ 08118238 - .incbin "baserom.gba", 0x118238, 0x000002C - -gUnk_08118264:: @ 08118264 - .incbin "baserom.gba", 0x118264, 0x0000034 - -gUnk_08118298:: @ 08118298 - .incbin "baserom.gba", 0x118298, 0x0000100 - -gUnk_08118398:: @ 08118398 - .incbin "baserom.gba", 0x118398, 0x0000024 - -gUnk_081183BC:: @ 081183BC - .incbin "baserom.gba", 0x1183BC, 0x00000B0 - -gUnk_0811846C:: @ 0811846C - .incbin "baserom.gba", 0x11846C, 0x000003C - -gUnk_081184A8:: @ 081184A8 - .incbin "baserom.gba", 0x1184A8, 0x00000B0 - -gUnk_08118558:: @ 08118558 - .incbin "baserom.gba", 0x118558, 0x00001C8 - -gUnk_08118720:: @ 08118720 - .incbin "baserom.gba", 0x118720, 0x0000048 - -gUnk_08118768:: @ 08118768 - .incbin "baserom.gba", 0x118768, 0x0000018 - -gUnk_08118780:: @ 08118780 - .incbin "baserom.gba", 0x118780, 0x0000008 - -gUnk_08118788:: @ 08118788 - .incbin "baserom.gba", 0x118788, 0x000000C - -gUnk_08118794:: @ 08118794 - .incbin "baserom.gba", 0x118794, 0x000012C - -gUnk_081188C0:: @ 081188C0 - .incbin "baserom.gba", 0x1188C0, 0x0000088 - -gUnk_08118948:: @ 08118948 - .incbin "baserom.gba", 0x118948, 0x0000018 - -gUnk_08118960:: @ 08118960 - .incbin "baserom.gba", 0x118960, 0x0000014 - -gUnk_08118974:: @ 08118974 - .incbin "baserom.gba", 0x118974, 0x0000014 - -gUnk_08118988:: @ 08118988 - .incbin "baserom.gba", 0x118988, 0x0000278 - -gUnk_08118C00:: @ 08118C00 - .incbin "baserom.gba", 0x118C00, 0x0000138 - -gUnk_08118D38:: @ 08118D38 - .incbin "baserom.gba", 0x118D38, 0x000006C - -gUnk_08118DA4:: @ 08118DA4 - .incbin "baserom.gba", 0x118DA4, 0x000002C - -gUnk_08118DD0:: @ 08118DD0 - .incbin "baserom.gba", 0x118DD0, 0x000000C - -gUnk_08118DDC:: @ 08118DDC - .incbin "baserom.gba", 0x118DDC, 0x0000080 - -gUnk_08118E5C:: @ 08118E5C - .incbin "baserom.gba", 0x118E5C, 0x00000A8 - -gUnk_08118F04:: @ 08118F04 - .incbin "baserom.gba", 0x118F04, 0x0000038 - -gUnk_08118F3C:: @ 08118F3C - .incbin "baserom.gba", 0x118F3C, 0x0000028 - -gUnk_08118F64:: @ 08118F64 - .incbin "baserom.gba", 0x118F64, 0x0000034 - -gUnk_08118F98:: @ 08118F98 - .incbin "baserom.gba", 0x118F98, 0x0000108 - -gUnk_081190A0:: @ 081190A0 - .incbin "baserom.gba", 0x1190A0, 0x0000044 - -gUnk_081190E4:: @ 081190E4 - .incbin "baserom.gba", 0x1190E4, 0x0000038 - -gUnk_0811911C:: @ 0811911C - .incbin "baserom.gba", 0x11911C, 0x0000010 - -gUnk_0811912C:: @ 0811912C - .incbin "baserom.gba", 0x11912C, 0x000005C - -gUnk_08119188:: @ 08119188 - .incbin "baserom.gba", 0x119188, 0x0000120 - -gUnk_081192A8:: @ 081192A8 - .incbin "baserom.gba", 0x1192A8, 0x00002A0 - -gUnk_08119548:: @ 08119548 - .incbin "baserom.gba", 0x119548, 0x000027C - -gUnk_081197C4:: @ 081197C4 - .incbin "baserom.gba", 0x1197C4, 0x0000030 - -gUnk_081197F4:: @ 081197F4 - .incbin "baserom.gba", 0x1197F4, 0x00000D0 - -gUnk_081198C4:: @ 081198C4 - .incbin "baserom.gba", 0x1198C4, 0x0000028 - -gUnk_081198EC:: @ 081198EC - .incbin "baserom.gba", 0x1198EC, 0x00000B8 - -gUnk_081199A4:: @ 081199A4 - .incbin "baserom.gba", 0x1199A4, 0x0000054 - -gUnk_081199F8:: @ 081199F8 - .incbin "baserom.gba", 0x1199F8, 0x000007C - -gUnk_08119A74:: @ 08119A74 - .incbin "baserom.gba", 0x119A74, 0x000007C - -gUnk_08119AF0:: @ 08119AF0 - .incbin "baserom.gba", 0x119AF0, 0x000008C - -gUnk_08119B7C:: @ 08119B7C - .incbin "baserom.gba", 0x119B7C, 0x0000074 - -gUnk_08119BF0:: @ 08119BF0 - .incbin "baserom.gba", 0x119BF0, 0x0000074 - -gUnk_08119C64:: @ 08119C64 - .incbin "baserom.gba", 0x119C64, 0x0000090 - -gUnk_08119CF4:: @ 08119CF4 - .incbin "baserom.gba", 0x119CF4, 0x0000060 - -gUnk_08119D54:: @ 08119D54 - .incbin "baserom.gba", 0x119D54, 0x0000054 - -gUnk_08119DA8:: @ 08119DA8 - .incbin "baserom.gba", 0x119DA8, 0x0000054 - -gUnk_08119DFC:: @ 08119DFC - .incbin "baserom.gba", 0x119DFC, 0x000001C - -gUnk_08119E18:: @ 08119E18 - .incbin "baserom.gba", 0x119E18, 0x000002C - -gUnk_08119E44:: @ 08119E44 - .incbin "baserom.gba", 0x119E44, 0x000006C - -gUnk_08119EB0:: @ 08119EB0 - .incbin "baserom.gba", 0x119EB0, 0x0000028 - -gUnk_08119ED8:: @ 08119ED8 - .incbin "baserom.gba", 0x119ED8, 0x00000A8 - -gUnk_08119F80:: @ 08119F80 - .incbin "baserom.gba", 0x119F80, 0x0000024 - -gUnk_08119FA4:: @ 08119FA4 - .incbin "baserom.gba", 0x119FA4, 0x0000024 - -gUnk_08119FC8:: @ 08119FC8 - .incbin "baserom.gba", 0x119FC8, 0x000000C - -gUnk_08119FD4:: @ 08119FD4 - .incbin "baserom.gba", 0x119FD4, 0x0000048 - -gUnk_0811A01C:: @ 0811A01C - .incbin "baserom.gba", 0x11A01C, 0x0000030 - -gUnk_0811A04C:: @ 0811A04C - .incbin "baserom.gba", 0x11A04C, 0x000001C - -gUnk_0811A068:: @ 0811A068 - .incbin "baserom.gba", 0x11A068, 0x000003C - -gUnk_0811A0A4:: @ 0811A0A4 - .incbin "baserom.gba", 0x11A0A4, 0x0000028 - -gUnk_0811A0CC:: @ 0811A0CC - .incbin "baserom.gba", 0x11A0CC, 0x0000018 - -gUnk_0811A0E4:: @ 0811A0E4 - .incbin "baserom.gba", 0x11A0E4, 0x0000040 - -gUnk_0811A124:: @ 0811A124 - .incbin "baserom.gba", 0x11A124, 0x0000020 - -gUnk_0811A144:: @ 0811A144 - .incbin "baserom.gba", 0x11A144, 0x0000038 - -gUnk_0811A17C:: @ 0811A17C - .incbin "baserom.gba", 0x11A17C, 0x000004C - -gUnk_0811A1C8:: @ 0811A1C8 - .incbin "baserom.gba", 0x11A1C8, 0x0000030 - -gUnk_0811A1F8:: @ 0811A1F8 - .incbin "baserom.gba", 0x11A1F8, 0x0000030 - -gUnk_0811A228:: @ 0811A228 - .incbin "baserom.gba", 0x11A228, 0x0000058 - -gUnk_0811A280:: @ 0811A280 - .incbin "baserom.gba", 0x11A280, 0x000000C - -gUnk_0811A28C:: @ 0811A28C - .incbin "baserom.gba", 0x11A28C, 0x000001C - -gUnk_0811A2A8:: @ 0811A2A8 - .incbin "baserom.gba", 0x11A2A8, 0x0000028 - -gUnk_0811A2D0:: @ 0811A2D0 - .incbin "baserom.gba", 0x11A2D0, 0x000002C - -gUnk_0811A2FC:: @ 0811A2FC - .incbin "baserom.gba", 0x11A2FC, 0x0000214 - -gUnk_0811A510:: @ 0811A510 - .incbin "baserom.gba", 0x11A510, 0x000024C - -gUnk_0811A75C:: @ 0811A75C - .incbin "baserom.gba", 0x11A75C, 0x000004C - -gUnk_0811A7A8:: @ 0811A7A8 - .incbin "baserom.gba", 0x11A7A8, 0x00000C4 - -gUnk_0811A86C:: @ 0811A86C - .incbin "baserom.gba", 0x11A86C, 0x0000060 - -gUnk_0811A8CC:: @ 0811A8CC - .incbin "baserom.gba", 0x11A8CC, 0x00000E8 - -gUnk_0811A9B4:: @ 0811A9B4 - .incbin "baserom.gba", 0x11A9B4, 0x0000078 - -gUnk_0811AA2C:: @ 0811AA2C - .incbin "baserom.gba", 0x11AA2C, 0x0000050 - -gUnk_0811AA7C:: @ 0811AA7C - .incbin "baserom.gba", 0x11AA7C, 0x000009C - -gUnk_0811AB18:: @ 0811AB18 - .incbin "baserom.gba", 0x11AB18, 0x00000E0 - -gUnk_0811ABF8:: @ 0811ABF8 - .incbin "baserom.gba", 0x11ABF8, 0x0000019 - -gUnk_0811AC11:: @ 0811AC11 - .incbin "baserom.gba", 0x11AC11, 0x0000113 - -gUnk_0811AD24:: @ 0811AD24 - .incbin "baserom.gba", 0x11AD24, 0x00000A8 - -gUnk_0811ADCC:: @ 0811ADCC - .incbin "baserom.gba", 0x11ADCC, 0x00000E4 - -gUnk_0811AEB0:: @ 0811AEB0 - .incbin "baserom.gba", 0x11AEB0, 0x0000028 - -gUnk_0811AED8:: @ 0811AED8 - .incbin "baserom.gba", 0x11AED8, 0x000004C - -gUnk_0811AF24:: @ 0811AF24 - .incbin "baserom.gba", 0x11AF24, 0x0000010 - -gUnk_0811AF34:: @ 0811AF34 - .incbin "baserom.gba", 0x11AF34, 0x0000030 - -gUnk_0811AF64:: @ 0811AF64 - .incbin "baserom.gba", 0x11AF64, 0x0000028 - -gUnk_0811AF8C:: @ 0811AF8C - .incbin "baserom.gba", 0x11AF8C, 0x0000030 - -gUnk_0811AFBC:: @ 0811AFBC - .incbin "baserom.gba", 0x11AFBC, 0x0000014 - -gUnk_0811AFD0:: @ 0811AFD0 - .incbin "baserom.gba", 0x11AFD0, 0x0000030 - -gUnk_0811B000:: @ 0811B000 - .incbin "baserom.gba", 0x11B000, 0x000001C - -gUnk_0811B01C:: @ 0811B01C - .incbin "baserom.gba", 0x11B01C, 0x0000010 - -gUnk_0811B02C:: @ 0811B02C - .incbin "baserom.gba", 0x11B02C, 0x0000084 - -gUnk_0811B0B0:: @ 0811B0B0 - .incbin "baserom.gba", 0x11B0B0, 0x0000080 - -gUnk_0811B130:: @ 0811B130 - .incbin "baserom.gba", 0x11B130, 0x0000048 - -gUnk_0811B178:: @ 0811B178 - .incbin "baserom.gba", 0x11B178, 0x0000018 - -gUnk_0811B190:: @ 0811B190 - .incbin "baserom.gba", 0x11B190, 0x0000084 - -gUnk_0811B214:: @ 0811B214 - .incbin "baserom.gba", 0x11B214, 0x0000044 - -gUnk_0811B258:: @ 0811B258 - .incbin "baserom.gba", 0x11B258, 0x000003C - -gUnk_0811B294:: @ 0811B294 - .incbin "baserom.gba", 0x11B294, 0x0000068 - -gUnk_0811B2FC:: @ 0811B2FC - .incbin "baserom.gba", 0x11B2FC, 0x0000050 - -gUnk_0811B34C:: @ 0811B34C - .incbin "baserom.gba", 0x11B34C, 0x0000048 - -gUnk_0811B394:: @ 0811B394 - .incbin "baserom.gba", 0x11B394, 0x0000010 - -gUnk_0811B3A4:: @ 0811B3A4 - .incbin "baserom.gba", 0x11B3A4, 0x0000010 - -gUnk_0811B3B4:: @ 0811B3B4 - .incbin "baserom.gba", 0x11B3B4, 0x0000014 - -gUnk_0811B3C8:: @ 0811B3C8 - .incbin "baserom.gba", 0x11B3C8, 0x0000040 - -gUnk_0811B408:: @ 0811B408 - .incbin "baserom.gba", 0x11B408, 0x0000138 - -gUnk_0811B540:: @ 0811B540 - .incbin "baserom.gba", 0x11B540, 0x0000024 - -gUnk_0811B564:: @ 0811B564 - .incbin "baserom.gba", 0x11B564, 0x0000014 - -gUnk_0811B578:: @ 0811B578 - .incbin "baserom.gba", 0x11B578, 0x00003C8 - -gUnk_0811B940:: @ 0811B940 - .incbin "baserom.gba", 0x11B940, 0x000004C - -gUnk_0811B98C:: @ 0811B98C - .incbin "baserom.gba", 0x11B98C, 0x0000014 - -gUnk_0811B9A0:: @ 0811B9A0 - .incbin "baserom.gba", 0x11B9A0, 0x0000008 - -gUnk_0811B9A8:: @ 0811B9A8 - .incbin "baserom.gba", 0x11B9A8, 0x0000020 - -gUnk_0811B9C8:: @ 0811B9C8 - .incbin "baserom.gba", 0x11B9C8, 0x0000008 - -gUnk_0811B9D0:: @ 0811B9D0 - .incbin "baserom.gba", 0x11B9D0, 0x0000008 - -gUnk_0811B9D8:: @ 0811B9D8 - .incbin "baserom.gba", 0x11B9D8, 0x0000008 - -gUnk_0811B9E0:: @ 0811B9E0 - .incbin "baserom.gba", 0x11B9E0, 0x0000080 - -gUnk_0811BA60:: @ 0811BA60 - .incbin "baserom.gba", 0x11BA60, 0x0000008 - -gUnk_0811BA68:: @ 0811BA68 - .incbin "baserom.gba", 0x11BA68, 0x000000C - -gUnk_0811BA74:: @ 0811BA74 - .incbin "baserom.gba", 0x11BA74, 0x0000008 - -gUnk_0811BA7C:: @ 0811BA7C - .incbin "baserom.gba", 0x11BA7C, 0x000000C - -gUnk_0811BA88:: @ 0811BA88 - .incbin "baserom.gba", 0x11BA88, 0x000000C - -gUnk_0811BA94:: @ 0811BA94 - .incbin "baserom.gba", 0x11BA94, 0x0000008 - -gUnk_0811BA9C:: @ 0811BA9C - .incbin "baserom.gba", 0x11BA9C, 0x0000020 - -gUnk_0811BABC:: @ 0811BABC - .incbin "baserom.gba", 0x11BABC, 0x0000008 - -gUnk_0811BAC4:: @ 0811BAC4 - .incbin "baserom.gba", 0x11BAC4, 0x0000010 - -gUnk_0811BAD4:: @ 0811BAD4 - .incbin "baserom.gba", 0x11BAD4, 0x0000010 - -gUnk_0811BAE4:: @ 0811BAE4 - .incbin "baserom.gba", 0x11BAE4, 0x000000C - -gUnk_0811BAF0:: @ 0811BAF0 - .incbin "baserom.gba", 0x11BAF0, 0x000003C - -gUnk_0811BB2C:: @ 0811BB2C - .incbin "baserom.gba", 0x11BB2C, 0x000000C - -gUnk_0811BB38:: @ 0811BB38 - .incbin "baserom.gba", 0x11BB38, 0x0000004 - -gUnk_0811BB3C:: @ 0811BB3C - .incbin "baserom.gba", 0x11BB3C, 0x000000C - -gUnk_0811BB48:: @ 0811BB48 - .incbin "baserom.gba", 0x11BB48, 0x0000008 - -gUnk_0811BB50:: @ 0811BB50 - .incbin "baserom.gba", 0x11BB50, 0x0000008 - -gUnk_0811BB58:: @ 0811BB58 - .incbin "baserom.gba", 0x11BB58, 0x0000008 - -gUnk_0811BB60:: @ 0811BB60 - .incbin "baserom.gba", 0x11BB60, 0x0000008 - -gUnk_0811BB68:: @ 0811BB68 - .incbin "baserom.gba", 0x11BB68, 0x0000008 - -gUnk_0811BB70:: @ 0811BB70 - .incbin "baserom.gba", 0x11BB70, 0x0000010 - -gUnk_0811BB80:: @ 0811BB80 - .incbin "baserom.gba", 0x11BB80, 0x0000008 - -gUnk_0811BB88:: @ 0811BB88 - .incbin "baserom.gba", 0x11BB88, 0x0000008 - -gUnk_0811BB90:: @ 0811BB90 - .incbin "baserom.gba", 0x11BB90, 0x0000008 - -gUnk_0811BB98:: @ 0811BB98 - .incbin "baserom.gba", 0x11BB98, 0x0000014 - -gUnk_0811BBAC:: @ 0811BBAC - .incbin "baserom.gba", 0x11BBAC, 0x0000010 - -gUnk_0811BBBC:: @ 0811BBBC - .incbin "baserom.gba", 0x11BBBC, 0x0000006 - -gUnk_0811BBC2:: @ 0811BBC2 - .incbin "baserom.gba", 0x11BBC2, 0x0000006 - -gUnk_0811BBC8:: @ 0811BBC8 - .incbin "baserom.gba", 0x11BBC8, 0x0000006 - -gUnk_0811BBCE:: @ 0811BBCE - .incbin "baserom.gba", 0x11BBCE, 0x0000006 - -gUnk_0811BBD4:: @ 0811BBD4 - .incbin "baserom.gba", 0x11BBD4, 0x0000010 - -gUnk_0811BBE4:: @ 0811BBE4 - .incbin "baserom.gba", 0x11BBE4, 0x0000008 - -gUnk_0811BBEC:: @ 0811BBEC - .incbin "baserom.gba", 0x11BBEC, 0x000000C - -gUnk_0811BBF8:: @ 0811BBF8 - .incbin "baserom.gba", 0x11BBF8, 0x0000010 - -gUnk_0811BC08:: @ 0811BC08 - .incbin "baserom.gba", 0x11BC08, 0x0000020 - -gUnk_0811BC28:: @ 0811BC28 - .incbin "baserom.gba", 0x11BC28, 0x0000008 - -gUnk_0811BC30:: @ 0811BC30 - .incbin "baserom.gba", 0x11BC30, 0x0000008 - -gUnk_0811BC38:: @ 0811BC38 - .incbin "baserom.gba", 0x11BC38, 0x0000008 - -gUnk_0811BC40:: @ 0811BC40 - .incbin "baserom.gba", 0x11BC40, 0x0000008 - -gUnk_0811BC48:: @ 0811BC48 - .incbin "baserom.gba", 0x11BC48, 0x0000018 - -gUnk_0811BC60:: @ 0811BC60 - .incbin "baserom.gba", 0x11BC60, 0x0000020 - -gUnk_0811BC80:: @ 0811BC80 - .incbin "baserom.gba", 0x11BC80, 0x0000008 - -gUnk_0811BC88:: @ 0811BC88 - .incbin "baserom.gba", 0x11BC88, 0x0000010 - -gUnk_0811BC98:: @ 0811BC98 - .incbin "baserom.gba", 0x11BC98, 0x000001C - -gUnk_0811BCB4:: @ 0811BCB4 - .incbin "baserom.gba", 0x11BCB4, 0x0000010 \ No newline at end of file diff --git a/data/data_08100CD4.s b/data/data_08100CD4.s new file mode 100755 index 00000000..9db10a44 --- /dev/null +++ b/data/data_08100CD4.s @@ -0,0 +1,9347 @@ + .include "asm/macros.inc" + .include "constants/constants.inc" + + .section .rodata + .align 2 + +gUnk_08100CD4:: @ 08100CD4 + .incbin "baserom.gba", 0x100CD4, 0x0000010 + +gUnk_08100CE4:: @ 08100CE4 + .incbin "baserom.gba", 0x100CE4, 0x000000C + +gUnk_08100CF0:: @ 08100CF0 + .incbin "baserom.gba", 0x100CF0, 0x0000004 + +gUnk_08100CF4:: @ 08100CF4 + .incbin "baserom.gba", 0x100CF4, 0x0000009 + +gUnk_08100CFD:: @ 08100CFD + .incbin "baserom.gba", 0x100CFD, 0x0000004 + +gUnk_08100D01:: @ 08100D01 + .incbin "baserom.gba", 0x100D01, 0x0000003 + +gUnk_08100D04:: @ 08100D04 + .incbin "baserom.gba", 0x100D04, 0x000001C + +gUnk_08100D20:: @ 08100D20 + .incbin "baserom.gba", 0x100D20, 0x0000004 + +gUnk_08100D24:: @ 08100D24 + .incbin "baserom.gba", 0x100D24, 0x0000024 + +gUnk_08100D48:: @ 08100D48 + .incbin "baserom.gba", 0x100D48, 0x0000008 + +gUnk_08100D50:: @ 08100D50 + .incbin "baserom.gba", 0x100D50, 0x0000030 + +gUnk_08100D80:: @ 08100D80 + .incbin "baserom.gba", 0x100D80, 0x0000004 + +gUnk_08100D84:: @ 08100D84 + .incbin "baserom.gba", 0x100D84, 0x0000030 + +gUnk_08100DB4:: @ 08100DB4 + .incbin "baserom.gba", 0x100DB4, 0x0000004 + +gUnk_08100DB8:: @ 08100DB8 + .incbin "baserom.gba", 0x100DB8, 0x0000030 + +gUnk_08100DE8:: @ 08100DE8 + .incbin "baserom.gba", 0x100DE8, 0x0000004 + +gUnk_08100DEC:: @ 08100DEC + .incbin "baserom.gba", 0x100DEC, 0x000000A + +gUnk_08100DF6:: @ 08100DF6 + .incbin "baserom.gba", 0x100DF6, 0x0000016 + +gUnk_08100E0C:: @ 08100E0C + .incbin "baserom.gba", 0x100E0C, 0x000000A + +gUnk_08100E16:: @ 08100E16 + .incbin "baserom.gba", 0x100E16, 0x0000006 + +gUnk_08100E1C:: @ 08100E1C + .incbin "baserom.gba", 0x100E1C, 0x0000004 + +gUnk_08100E20:: @ 08100E20 + .incbin "baserom.gba", 0x100E20, 0x000000E + +gUnk_08100E2E:: @ 08100E2E + .incbin "baserom.gba", 0x100E2E, 0x0000022 + +gUnk_08100E50:: @ 08100E50 + .incbin "baserom.gba", 0x100E50, 0x0000004 + +gUnk_08100E54:: @ 08100E54 + .incbin "baserom.gba", 0x100E54, 0x000002D + +gUnk_08100E81:: @ 08100E81 + .incbin "baserom.gba", 0x100E81, 0x0000003 + +gUnk_08100E84:: @ 08100E84 + .incbin "baserom.gba", 0x100E84, 0x0000004 + +gUnk_08100E88:: @ 08100E88 + .incbin "baserom.gba", 0x100E88, 0x000003C + +gUnk_08100EC4:: @ 08100EC4 + .incbin "baserom.gba", 0x100EC4, 0x0000034 + +gUnk_08100EF8:: @ 08100EF8 + .incbin "baserom.gba", 0x100EF8, 0x0000006 + +gUnk_08100EFE:: @ 08100EFE + .incbin "baserom.gba", 0x100EFE, 0x0000002 + +gUnk_08100F00:: @ 08100F00 + .incbin "baserom.gba", 0x100F00, 0x0000009 + +gUnk_08100F09:: @ 08100F09 + .incbin "baserom.gba", 0x100F09, 0x0000007 + +gUnk_08100F10:: @ 08100F10 + .incbin "baserom.gba", 0x100F10, 0x0000020 + +gUnk_08100F30:: @ 08100F30 + .incbin "baserom.gba", 0x100F30, 0x000000C + +gUnk_08100F3C:: @ 08100F3C + .incbin "baserom.gba", 0x100F3C, 0x000000C + +gUnk_08100F48:: @ 08100F48 + .incbin "baserom.gba", 0x100F48, 0x0000030 + +gUnk_08100F78:: @ 08100F78 + .incbin "baserom.gba", 0x100F78, 0x0000004 + +gUnk_08100F7C:: @ 08100F7C + .incbin "baserom.gba", 0x100F7C, 0x0000005 + +gUnk_08100F81:: @ 08100F81 + .incbin "baserom.gba", 0x100F81, 0x000001B + +gUnk_08100F9C:: @ 08100F9C + .incbin "baserom.gba", 0x100F9C, 0x000001C + +gUnk_08100FB8:: @ 08100FB8 + .incbin "baserom.gba", 0x100FB8, 0x0000004 + +gUnk_08100FBC:: @ 08100FBC + .incbin "baserom.gba", 0x100FBC, 0x0000030 + +gUnk_08100FEC:: @ 08100FEC + .incbin "baserom.gba", 0x100FEC, 0x0000004 + +gUnk_08100FF0:: @ 08100FF0 + .incbin "baserom.gba", 0x100FF0, 0x0000010 + +gUnk_08101000:: @ 08101000 + .incbin "baserom.gba", 0x101000, 0x000000E + +gUnk_0810100E:: @ 0810100E + .incbin "baserom.gba", 0x10100E, 0x0000002 + +gUnk_08101010:: @ 08101010 + .incbin "baserom.gba", 0x101010, 0x0000010 + +gUnk_08101020:: @ 08101020 + .incbin "baserom.gba", 0x101020, 0x0000004 + +gUnk_08101024:: @ 08101024 + .incbin "baserom.gba", 0x101024, 0x0000030 + +gUnk_08101054:: @ 08101054 + .incbin "baserom.gba", 0x101054, 0x0000004 + +gUnk_08101058:: @ 08101058 + .incbin "baserom.gba", 0x101058, 0x0000029 + +gUnk_08101081:: @ 08101081 + .incbin "baserom.gba", 0x101081, 0x0000013 + +gUnk_08101094:: @ 08101094 + .incbin "baserom.gba", 0x101094, 0x0000004 + +gUnk_08101098:: @ 08101098 + .incbin "baserom.gba", 0x101098, 0x0000030 + +gUnk_081010C8:: @ 081010C8 + .incbin "baserom.gba", 0x1010C8, 0x0000004 + +gUnk_081010CC:: @ 081010CC + .incbin "baserom.gba", 0x1010CC, 0x0000030 + +gUnk_081010FC:: @ 081010FC + .incbin "baserom.gba", 0x1010FC, 0x0000003 + +gUnk_081010FF:: @ 081010FF + .incbin "baserom.gba", 0x1010FF, 0x0000001 + +gUnk_08101100:: @ 08101100 + .incbin "baserom.gba", 0x101100, 0x000000B + +gUnk_0810110B:: @ 0810110B + .incbin "baserom.gba", 0x10110B, 0x0000003 + +gUnk_0810110E:: @ 0810110E + .incbin "baserom.gba", 0x10110E, 0x0000003 + +gUnk_08101111:: @ 08101111 + .incbin "baserom.gba", 0x101111, 0x000001B + +gUnk_0810112C:: @ 0810112C + .incbin "baserom.gba", 0x10112C, 0x0000030 + +gUnk_0810115C:: @ 0810115C + .incbin "baserom.gba", 0x10115C, 0x000000C + +gUnk_08101168:: @ 08101168 + .incbin "baserom.gba", 0x101168, 0x0000048 + +gUnk_081011B0:: @ 081011B0 + .incbin "baserom.gba", 0x1011B0, 0x0000004 + +gUnk_081011B4:: @ 081011B4 + .incbin "baserom.gba", 0x1011B4, 0x0000048 + +gUnk_081011FC:: @ 081011FC + .incbin "baserom.gba", 0x1011FC, 0x0000001 + +gUnk_081011FD:: @ 081011FD + .incbin "baserom.gba", 0x1011FD, 0x0000003 + +gUnk_08101200:: @ 08101200 + .incbin "baserom.gba", 0x101200, 0x0000008 + +gUnk_08101208:: @ 08101208 + .incbin "baserom.gba", 0x101208, 0x0000006 + +gUnk_0810120E:: @ 0810120E + .incbin "baserom.gba", 0x10120E, 0x0000005 + +gUnk_08101213:: @ 08101213 + .incbin "baserom.gba", 0x101213, 0x0000035 + +gUnk_08101248:: @ 08101248 + .incbin "baserom.gba", 0x101248, 0x0000004 + +gUnk_0810124C:: @ 0810124C + .incbin "baserom.gba", 0x10124C, 0x0000048 + +gUnk_08101294:: @ 08101294 + .incbin "baserom.gba", 0x101294, 0x0000004 + +gUnk_08101298:: @ 08101298 + .incbin "baserom.gba", 0x101298, 0x0000048 + +gUnk_081012E0:: @ 081012E0 + .incbin "baserom.gba", 0x1012E0, 0x0000004 + +gUnk_081012E4:: @ 081012E4 + .incbin "baserom.gba", 0x1012E4, 0x0000027 + +gUnk_0810130B:: @ 0810130B + .incbin "baserom.gba", 0x10130B, 0x0000004 + +gUnk_0810130F:: @ 0810130F + .incbin "baserom.gba", 0x10130F, 0x0000001 + +gUnk_08101310:: @ 08101310 + .incbin "baserom.gba", 0x101310, 0x0000001 + +gUnk_08101311:: @ 08101311 + .incbin "baserom.gba", 0x101311, 0x0000003 + +gUnk_08101314:: @ 08101314 + .incbin "baserom.gba", 0x101314, 0x0000002 + +gUnk_08101316:: @ 08101316 + .incbin "baserom.gba", 0x101316, 0x000000F + +gUnk_08101325:: @ 08101325 + .incbin "baserom.gba", 0x101325, 0x0000007 + +gUnk_0810132C:: @ 0810132C + .incbin "baserom.gba", 0x10132C, 0x0000004 + +gUnk_08101330:: @ 08101330 + .incbin "baserom.gba", 0x101330, 0x0000048 + +gUnk_08101378:: @ 08101378 + .incbin "baserom.gba", 0x101378, 0x0000004 + +gUnk_0810137C:: @ 0810137C + .incbin "baserom.gba", 0x10137C, 0x0000048 + +gUnk_081013C4:: @ 081013C4 + .incbin "baserom.gba", 0x1013C4, 0x0000004 + +gUnk_081013C8:: @ 081013C8 + .incbin "baserom.gba", 0x1013C8, 0x000000C + +gUnk_081013D4:: @ 081013D4 + .incbin "baserom.gba", 0x1013D4, 0x0000024 + +gUnk_081013F8:: @ 081013F8 + .incbin "baserom.gba", 0x1013F8, 0x0000016 + +gUnk_0810140E:: @ 0810140E + .incbin "baserom.gba", 0x10140E, 0x0000005 + +gUnk_08101413:: @ 08101413 + .incbin "baserom.gba", 0x101413, 0x0000001 + +gUnk_08101414:: @ 08101414 + .incbin "baserom.gba", 0x101414, 0x0000001 + +gUnk_08101415:: @ 08101415 + .incbin "baserom.gba", 0x101415, 0x0000003 + +gUnk_08101418:: @ 08101418 + .incbin "baserom.gba", 0x101418, 0x0000010 + +gUnk_08101428:: @ 08101428 + .incbin "baserom.gba", 0x101428, 0x0000008 + +gUnk_08101430:: @ 08101430 + .incbin "baserom.gba", 0x101430, 0x0000030 + +gUnk_08101460:: @ 08101460 + .incbin "baserom.gba", 0x101460, 0x0000004 + +gUnk_08101464:: @ 08101464 + .incbin "baserom.gba", 0x101464, 0x0000024 + +gUnk_08101488:: @ 08101488 + .incbin "baserom.gba", 0x101488, 0x0000024 + +gUnk_081014AC:: @ 081014AC + .incbin "baserom.gba", 0x1014AC, 0x0000024 + +gUnk_081014D0:: @ 081014D0 + .incbin "baserom.gba", 0x1014D0, 0x000000C + +gUnk_081014DC:: @ 081014DC + .incbin "baserom.gba", 0x1014DC, 0x0000024 + +gUnk_08101500:: @ 08101500 + .incbin "baserom.gba", 0x101500, 0x000000F + +gUnk_0810150F:: @ 0810150F + .incbin "baserom.gba", 0x10150F, 0x0000005 + +gUnk_08101514:: @ 08101514 + .incbin "baserom.gba", 0x101514, 0x0000002 + +gUnk_08101516:: @ 08101516 + .incbin "baserom.gba", 0x101516, 0x0000001 + +gUnk_08101517:: @ 08101517 + .incbin "baserom.gba", 0x101517, 0x000000D + +gUnk_08101524:: @ 08101524 + .incbin "baserom.gba", 0x101524, 0x0000003 + +gUnk_08101527:: @ 08101527 + .incbin "baserom.gba", 0x101527, 0x0000021 + +gUnk_08101548:: @ 08101548 + .incbin "baserom.gba", 0x101548, 0x000000C + +gUnk_08101554:: @ 08101554 + .incbin "baserom.gba", 0x101554, 0x0000018 + +gUnk_0810156C:: @ 0810156C + .incbin "baserom.gba", 0x10156C, 0x0000018 + +gUnk_08101584:: @ 08101584 + .incbin "baserom.gba", 0x101584, 0x0000018 + +gUnk_0810159C:: @ 0810159C + .incbin "baserom.gba", 0x10159C, 0x0000018 + +gUnk_081015B4:: @ 081015B4 + .incbin "baserom.gba", 0x1015B4, 0x0000018 + +gUnk_081015CC:: @ 081015CC + .incbin "baserom.gba", 0x1015CC, 0x0000018 + +gUnk_081015E4:: @ 081015E4 + .incbin "baserom.gba", 0x1015E4, 0x0000018 + +gUnk_081015FC:: @ 081015FC + .incbin "baserom.gba", 0x1015FC, 0x000000D + +gUnk_08101609:: @ 08101609 + .incbin "baserom.gba", 0x101609, 0x000000B + +gUnk_08101614:: @ 08101614 + .incbin "baserom.gba", 0x101614, 0x0000003 + +gUnk_08101617:: @ 08101617 + .incbin "baserom.gba", 0x101617, 0x0000002 + +gUnk_08101619:: @ 08101619 + .incbin "baserom.gba", 0x101619, 0x0000001 + +gUnk_0810161A:: @ 0810161A + .incbin "baserom.gba", 0x10161A, 0x0000002 + +gUnk_0810161C:: @ 0810161C + .incbin "baserom.gba", 0x10161C, 0x0000010 + +gUnk_0810162C:: @ 0810162C + .incbin "baserom.gba", 0x10162C, 0x0000018 + +gUnk_08101644:: @ 08101644 + .incbin "baserom.gba", 0x101644, 0x0000018 + +gUnk_0810165C:: @ 0810165C + .incbin "baserom.gba", 0x10165C, 0x0000018 + +gUnk_08101674:: @ 08101674 + .incbin "baserom.gba", 0x101674, 0x0000018 + +gUnk_0810168C:: @ 0810168C + .incbin "baserom.gba", 0x10168C, 0x0000018 + +gUnk_081016A4:: @ 081016A4 + .incbin "baserom.gba", 0x1016A4, 0x0000018 + +gUnk_081016BC:: @ 081016BC + .incbin "baserom.gba", 0x1016BC, 0x0000018 + +gUnk_081016D4:: @ 081016D4 + .incbin "baserom.gba", 0x1016D4, 0x0000018 + +gUnk_081016EC:: @ 081016EC + .incbin "baserom.gba", 0x1016EC, 0x0000018 + +gUnk_08101704:: @ 08101704 + .incbin "baserom.gba", 0x101704, 0x0000013 + +gUnk_08101717:: @ 08101717 + .incbin "baserom.gba", 0x101717, 0x0000001 + +gUnk_08101718:: @ 08101718 + .incbin "baserom.gba", 0x101718, 0x0000004 + +gUnk_0810171C:: @ 0810171C + .incbin "baserom.gba", 0x10171C, 0x0000001 + +gUnk_0810171D:: @ 0810171D + .incbin "baserom.gba", 0x10171D, 0x0000002 + +gUnk_0810171F:: @ 0810171F + .incbin "baserom.gba", 0x10171F, 0x0000005 + +gUnk_08101724:: @ 08101724 + .incbin "baserom.gba", 0x101724, 0x0000005 + +gUnk_08101729:: @ 08101729 + .incbin "baserom.gba", 0x101729, 0x000000B + +gUnk_08101734:: @ 08101734 + .incbin "baserom.gba", 0x101734, 0x0000006 + +gUnk_0810173A:: @ 0810173A + .incbin "baserom.gba", 0x10173A, 0x000004A + +gUnk_08101784:: @ 08101784 + .incbin "baserom.gba", 0x101784, 0x0000018 + +gUnk_0810179C:: @ 0810179C + .incbin "baserom.gba", 0x10179C, 0x0000018 + +gUnk_081017B4:: @ 081017B4 + .incbin "baserom.gba", 0x1017B4, 0x0000018 + +gUnk_081017CC:: @ 081017CC + .incbin "baserom.gba", 0x1017CC, 0x0000018 + +gUnk_081017E4:: @ 081017E4 + .incbin "baserom.gba", 0x1017E4, 0x0000018 + +gUnk_081017FC:: @ 081017FC + .incbin "baserom.gba", 0x1017FC, 0x0000014 + +gUnk_08101810:: @ 08101810 + .incbin "baserom.gba", 0x101810, 0x0000003 + +gUnk_08101813:: @ 08101813 + .incbin "baserom.gba", 0x101813, 0x0000001 + +gUnk_08101814:: @ 08101814 + .incbin "baserom.gba", 0x101814, 0x0000006 + +gUnk_0810181A:: @ 0810181A + .incbin "baserom.gba", 0x10181A, 0x0000002 + +gUnk_0810181C:: @ 0810181C + .incbin "baserom.gba", 0x10181C, 0x0000002 + +gUnk_0810181E:: @ 0810181E + .incbin "baserom.gba", 0x10181E, 0x0000001 + +gUnk_0810181F:: @ 0810181F + .incbin "baserom.gba", 0x10181F, 0x0000003 + +gUnk_08101822:: @ 08101822 + .incbin "baserom.gba", 0x101822, 0x0000003 + +gUnk_08101825:: @ 08101825 + .incbin "baserom.gba", 0x101825, 0x0000006 + +gUnk_0810182B:: @ 0810182B + .incbin "baserom.gba", 0x10182B, 0x0000001 + +gUnk_0810182C:: @ 0810182C + .incbin "baserom.gba", 0x10182C, 0x0000018 + +gUnk_08101844:: @ 08101844 + .incbin "baserom.gba", 0x101844, 0x0000018 + +gUnk_0810185C:: @ 0810185C + .incbin "baserom.gba", 0x10185C, 0x0000024 + +gUnk_08101880:: @ 08101880 + .incbin "baserom.gba", 0x101880, 0x0000030 + +gUnk_081018B0:: @ 081018B0 + .incbin "baserom.gba", 0x1018B0, 0x0000004 + +gUnk_081018B4:: @ 081018B4 + .incbin "baserom.gba", 0x1018B4, 0x0000030 + +gUnk_081018E4:: @ 081018E4 + .incbin "baserom.gba", 0x1018E4, 0x000001F + +gUnk_08101903:: @ 08101903 + .incbin "baserom.gba", 0x101903, 0x0000011 + +gUnk_08101914:: @ 08101914 + .incbin "baserom.gba", 0x101914, 0x0000009 + +gUnk_0810191D:: @ 0810191D + .incbin "baserom.gba", 0x10191D, 0x0000004 + +gUnk_08101921:: @ 08101921 + .incbin "baserom.gba", 0x101921, 0x0000002 + +gUnk_08101923:: @ 08101923 + .incbin "baserom.gba", 0x101923, 0x0000001 + +gUnk_08101924:: @ 08101924 + .incbin "baserom.gba", 0x101924, 0x0000020 + +gUnk_08101944:: @ 08101944 + .incbin "baserom.gba", 0x101944, 0x000000C + +gUnk_08101950:: @ 08101950 + .incbin "baserom.gba", 0x101950, 0x0000030 + +gUnk_08101980:: @ 08101980 + .incbin "baserom.gba", 0x101980, 0x0000004 + +gUnk_08101984:: @ 08101984 + .incbin "baserom.gba", 0x101984, 0x0000030 + +gUnk_081019B4:: @ 081019B4 + .incbin "baserom.gba", 0x1019B4, 0x0000004 + +gUnk_081019B8:: @ 081019B8 + .incbin "baserom.gba", 0x1019B8, 0x0000030 + +gUnk_081019E8:: @ 081019E8 + .incbin "baserom.gba", 0x1019E8, 0x0000004 + +gUnk_081019EC:: @ 081019EC + .incbin "baserom.gba", 0x1019EC, 0x0000013 + +gUnk_081019FF:: @ 081019FF + .incbin "baserom.gba", 0x1019FF, 0x000000B + +gUnk_08101A0A:: @ 08101A0A + .incbin "baserom.gba", 0x101A0A, 0x000000F + +gUnk_08101A19:: @ 08101A19 + .incbin "baserom.gba", 0x101A19, 0x0000002 + +gUnk_08101A1B:: @ 08101A1B + .incbin "baserom.gba", 0x101A1B, 0x0000001 + +gUnk_08101A1C:: @ 08101A1C + .incbin "baserom.gba", 0x101A1C, 0x0000006 + +gUnk_08101A22:: @ 08101A22 + .incbin "baserom.gba", 0x101A22, 0x0000002 + +gUnk_08101A24:: @ 08101A24 + .incbin "baserom.gba", 0x101A24, 0x0000001 + +gUnk_08101A25:: @ 08101A25 + .incbin "baserom.gba", 0x101A25, 0x0000027 + +gUnk_08101A4C:: @ 08101A4C + .incbin "baserom.gba", 0x101A4C, 0x0000030 + +gUnk_08101A7C:: @ 08101A7C + .incbin "baserom.gba", 0x101A7C, 0x0000030 + +gUnk_08101AAC:: @ 08101AAC + .incbin "baserom.gba", 0x101AAC, 0x0000030 + +gUnk_08101ADC:: @ 08101ADC + .incbin "baserom.gba", 0x101ADC, 0x0000024 + +gUnk_08101B00:: @ 08101B00 + .incbin "baserom.gba", 0x101B00, 0x000000C + +gUnk_08101B0C:: @ 08101B0C + .incbin "baserom.gba", 0x101B0C, 0x0000018 + +gUnk_08101B24:: @ 08101B24 + .incbin "baserom.gba", 0x101B24, 0x0000030 + +gUnk_08101B54:: @ 08101B54 + .incbin "baserom.gba", 0x101B54, 0x0000030 + +gUnk_08101B84:: @ 08101B84 + .incbin "baserom.gba", 0x101B84, 0x0000030 + +gUnk_08101BB4:: @ 08101BB4 + .incbin "baserom.gba", 0x101BB4, 0x0000030 + +gUnk_08101BE4:: @ 08101BE4 + .incbin "baserom.gba", 0x101BE4, 0x0000030 + +gUnk_08101C14:: @ 08101C14 + .incbin "baserom.gba", 0x101C14, 0x0000001 + +gUnk_08101C15:: @ 08101C15 + .incbin "baserom.gba", 0x101C15, 0x0000013 + +gUnk_08101C28:: @ 08101C28 + .incbin "baserom.gba", 0x101C28, 0x0000030 + +gUnk_08101C58:: @ 08101C58 + .incbin "baserom.gba", 0x101C58, 0x0000004 + +gUnk_08101C5C:: @ 08101C5C + .incbin "baserom.gba", 0x101C5C, 0x0000030 + +gUnk_08101C8C:: @ 08101C8C + .incbin "baserom.gba", 0x101C8C, 0x0000004 + +gUnk_08101C90:: @ 08101C90 + .incbin "baserom.gba", 0x101C90, 0x0000030 + +gUnk_08101CC0:: @ 08101CC0 + .incbin "baserom.gba", 0x101CC0, 0x0000004 + +gUnk_08101CC4:: @ 08101CC4 + .incbin "baserom.gba", 0x101CC4, 0x0000005 + +gUnk_08101CC9:: @ 08101CC9 + .incbin "baserom.gba", 0x101CC9, 0x000002B + +gUnk_08101CF4:: @ 08101CF4 + .incbin "baserom.gba", 0x101CF4, 0x0000004 + +gUnk_08101CF8:: @ 08101CF8 + .incbin "baserom.gba", 0x101CF8, 0x0000008 + +gUnk_08101D00:: @ 08101D00 + .incbin "baserom.gba", 0x101D00, 0x0000027 + +gUnk_08101D27:: @ 08101D27 + .incbin "baserom.gba", 0x101D27, 0x0000001 + +gUnk_08101D28:: @ 08101D28 + .incbin "baserom.gba", 0x101D28, 0x0000004 + +gUnk_08101D2C:: @ 08101D2C + .incbin "baserom.gba", 0x101D2C, 0x0000030 + +gUnk_08101D5C:: @ 08101D5C + .incbin "baserom.gba", 0x101D5C, 0x0000004 + +gUnk_08101D60:: @ 08101D60 + .incbin "baserom.gba", 0x101D60, 0x0000030 + +gUnk_08101D90:: @ 08101D90 + .incbin "baserom.gba", 0x101D90, 0x0000004 + +gUnk_08101D94:: @ 08101D94 + .incbin "baserom.gba", 0x101D94, 0x0000030 + +gUnk_08101DC4:: @ 08101DC4 + .incbin "baserom.gba", 0x101DC4, 0x0000004 + +gUnk_08101DC8:: @ 08101DC8 + .incbin "baserom.gba", 0x101DC8, 0x0000030 + +gUnk_08101DF8:: @ 08101DF8 + .incbin "baserom.gba", 0x101DF8, 0x0000004 + +gUnk_08101DFC:: @ 08101DFC + .incbin "baserom.gba", 0x101DFC, 0x000002D + +gUnk_08101E29:: @ 08101E29 + .incbin "baserom.gba", 0x101E29, 0x0000003 + +gUnk_08101E2C:: @ 08101E2C + .incbin "baserom.gba", 0x101E2C, 0x0000004 + +gUnk_08101E30:: @ 08101E30 + .incbin "baserom.gba", 0x101E30, 0x0000030 + +gUnk_08101E60:: @ 08101E60 + .incbin "baserom.gba", 0x101E60, 0x0000004 + +gUnk_08101E64:: @ 08101E64 + .incbin "baserom.gba", 0x101E64, 0x0000030 + +gUnk_08101E94:: @ 08101E94 + .incbin "baserom.gba", 0x101E94, 0x0000004 + +gUnk_08101E98:: @ 08101E98 + .incbin "baserom.gba", 0x101E98, 0x0000030 + +gUnk_08101EC8:: @ 08101EC8 + .incbin "baserom.gba", 0x101EC8, 0x0000004 + +gUnk_08101ECC:: @ 08101ECC + .incbin "baserom.gba", 0x101ECC, 0x0000030 + +gUnk_08101EFC:: @ 08101EFC + .incbin "baserom.gba", 0x101EFC, 0x0000004 + +gUnk_08101F00:: @ 08101F00 + .incbin "baserom.gba", 0x101F00, 0x0000020 + +gUnk_08101F20:: @ 08101F20 + .incbin "baserom.gba", 0x101F20, 0x0000010 + +gUnk_08101F30:: @ 08101F30 + .incbin "baserom.gba", 0x101F30, 0x0000004 + +gUnk_08101F34:: @ 08101F34 + .incbin "baserom.gba", 0x101F34, 0x000003C + +gUnk_08101F70:: @ 08101F70 + .incbin "baserom.gba", 0x101F70, 0x0000004 + +gUnk_08101F74:: @ 08101F74 + .incbin "baserom.gba", 0x101F74, 0x0000021 + +gUnk_08101F95:: @ 08101F95 + .incbin "baserom.gba", 0x101F95, 0x000000F + +gUnk_08101FA4:: @ 08101FA4 + .incbin "baserom.gba", 0x101FA4, 0x0000004 + +gUnk_08101FA8:: @ 08101FA8 + .incbin "baserom.gba", 0x101FA8, 0x0000030 + +gUnk_08101FD8:: @ 08101FD8 + .incbin "baserom.gba", 0x101FD8, 0x0000004 + +gUnk_08101FDC:: @ 08101FDC + .incbin "baserom.gba", 0x101FDC, 0x0000030 + +gUnk_0810200C:: @ 0810200C + .incbin "baserom.gba", 0x10200C, 0x0000004 + +gUnk_08102010:: @ 08102010 + .incbin "baserom.gba", 0x102010, 0x000002D + +gUnk_0810203D:: @ 0810203D + .incbin "baserom.gba", 0x10203D, 0x0000003 + +gUnk_08102040:: @ 08102040 + .incbin "baserom.gba", 0x102040, 0x0000004 + +gUnk_08102044:: @ 08102044 + .incbin "baserom.gba", 0x102044, 0x0000030 + +gUnk_08102074:: @ 08102074 + .incbin "baserom.gba", 0x102074, 0x0000004 + +gUnk_08102078:: @ 08102078 + .incbin "baserom.gba", 0x102078, 0x0000030 + +gUnk_081020A8:: @ 081020A8 + .incbin "baserom.gba", 0x1020A8, 0x0000004 + +gUnk_081020AC:: @ 081020AC + .incbin "baserom.gba", 0x1020AC, 0x0000028 + +gUnk_081020D4:: @ 081020D4 + .incbin "baserom.gba", 0x1020D4, 0x0000008 + +gUnk_081020DC:: @ 081020DC + .incbin "baserom.gba", 0x1020DC, 0x0000004 + +gUnk_081020E0:: @ 081020E0 + .incbin "baserom.gba", 0x1020E0, 0x0000021 + +gUnk_08102101:: @ 08102101 + .incbin "baserom.gba", 0x102101, 0x000000F + +gUnk_08102110:: @ 08102110 + .incbin "baserom.gba", 0x102110, 0x0000004 + +gUnk_08102114:: @ 08102114 + .incbin "baserom.gba", 0x102114, 0x0000036 + +gUnk_0810214A:: @ 0810214A + .incbin "baserom.gba", 0x10214A, 0x0000006 + +gUnk_08102150:: @ 08102150 + .incbin "baserom.gba", 0x102150, 0x0000004 + +gUnk_08102154:: @ 08102154 + .incbin "baserom.gba", 0x102154, 0x0000030 + +gUnk_08102184:: @ 08102184 + .incbin "baserom.gba", 0x102184, 0x0000004 + +gUnk_08102188:: @ 08102188 + .incbin "baserom.gba", 0x102188, 0x0000030 + +gUnk_081021B8:: @ 081021B8 + .incbin "baserom.gba", 0x1021B8, 0x0000004 + +gUnk_081021BC:: @ 081021BC + .incbin "baserom.gba", 0x1021BC, 0x0000030 + +gUnk_081021EC:: @ 081021EC + .incbin "baserom.gba", 0x1021EC, 0x0000004 + +gUnk_081021F0:: @ 081021F0 + .incbin "baserom.gba", 0x1021F0, 0x0000030 + +gUnk_08102220:: @ 08102220 + .incbin "baserom.gba", 0x102220, 0x0000004 + +gUnk_08102224:: @ 08102224 + .incbin "baserom.gba", 0x102224, 0x0000014 + +gUnk_08102238:: @ 08102238 + .incbin "baserom.gba", 0x102238, 0x000001C + +gUnk_08102254:: @ 08102254 + .incbin "baserom.gba", 0x102254, 0x0000004 + +gUnk_08102258:: @ 08102258 + .incbin "baserom.gba", 0x102258, 0x0000030 + +gUnk_08102288:: @ 08102288 + .incbin "baserom.gba", 0x102288, 0x0000004 + +gUnk_0810228C:: @ 0810228C + .incbin "baserom.gba", 0x10228C, 0x0000030 + +gUnk_081022BC:: @ 081022BC + .incbin "baserom.gba", 0x1022BC, 0x0000004 + +gUnk_081022C0:: @ 081022C0 + .incbin "baserom.gba", 0x1022C0, 0x0000030 + +gUnk_081022F0:: @ 081022F0 + .incbin "baserom.gba", 0x1022F0, 0x0000004 + +gUnk_081022F4:: @ 081022F4 + .incbin "baserom.gba", 0x1022F4, 0x0000021 + +gUnk_08102315:: @ 08102315 + .incbin "baserom.gba", 0x102315, 0x000000B + +gUnk_08102320:: @ 08102320 + .incbin "baserom.gba", 0x102320, 0x0000004 + +gUnk_08102324:: @ 08102324 + .incbin "baserom.gba", 0x102324, 0x0000004 + +gUnk_08102328:: @ 08102328 + .incbin "baserom.gba", 0x102328, 0x000003C + +gUnk_08102364:: @ 08102364 + .incbin "baserom.gba", 0x102364, 0x0000004 + +gUnk_08102368:: @ 08102368 + .incbin "baserom.gba", 0x102368, 0x000001C + +gUnk_08102384:: @ 08102384 + .incbin "baserom.gba", 0x102384, 0x0000014 + +gUnk_08102398:: @ 08102398 + .incbin "baserom.gba", 0x102398, 0x0000004 + +gUnk_0810239C:: @ 0810239C + .incbin "baserom.gba", 0x10239C, 0x0000030 + +gUnk_081023CC:: @ 081023CC + .incbin "baserom.gba", 0x1023CC, 0x0000004 + +gUnk_081023D0:: @ 081023D0 + .incbin "baserom.gba", 0x1023D0, 0x0000030 + +gUnk_08102400:: @ 08102400 + .incbin "baserom.gba", 0x102400, 0x0000004 + +gUnk_08102404:: @ 08102404 + .incbin "baserom.gba", 0x102404, 0x0000004 + +gUnk_08102408:: @ 08102408 + .incbin "baserom.gba", 0x102408, 0x000000A + +gUnk_08102412:: @ 08102412 + .incbin "baserom.gba", 0x102412, 0x0000022 + +gUnk_08102434:: @ 08102434 + .incbin "baserom.gba", 0x102434, 0x0000004 + +gUnk_08102438:: @ 08102438 + .incbin "baserom.gba", 0x102438, 0x0000019 + +gUnk_08102451:: @ 08102451 + .incbin "baserom.gba", 0x102451, 0x0000017 + +gUnk_08102468:: @ 08102468 + .incbin "baserom.gba", 0x102468, 0x0000004 + +gUnk_0810246C:: @ 0810246C + .incbin "baserom.gba", 0x10246C, 0x0000048 + +gUnk_081024B4:: @ 081024B4 + .incbin "baserom.gba", 0x1024B4, 0x0000083 + +gUnk_08102537:: @ 08102537 + .incbin "baserom.gba", 0x102537, 0x00000D9 + +gUnk_08102610:: @ 08102610 + .incbin "baserom.gba", 0x102610, 0x000009C + +gUnk_081026AC:: @ 081026AC + .incbin "baserom.gba", 0x1026AC, 0x0000030 + +gUnk_081026DC:: @ 081026DC + .incbin "baserom.gba", 0x1026DC, 0x0000028 + +gUnk_08102704:: @ 08102704 + .incbin "baserom.gba", 0x102704, 0x0000008 + +gUnk_0810270C:: @ 0810270C + .incbin "baserom.gba", 0x10270C, 0x0000004 + +gUnk_08102710:: @ 08102710 + .incbin "baserom.gba", 0x102710, 0x0000023 + +gUnk_08102733:: @ 08102733 + .incbin "baserom.gba", 0x102733, 0x0000009 + +gUnk_0810273C:: @ 0810273C + .incbin "baserom.gba", 0x10273C, 0x000001B + +gUnk_08102757:: @ 08102757 + .incbin "baserom.gba", 0x102757, 0x0000015 + +gUnk_0810276C:: @ 0810276C + .incbin "baserom.gba", 0x10276C, 0x0000030 + +gUnk_0810279C:: @ 0810279C + .incbin "baserom.gba", 0x10279C, 0x0000030 + +gUnk_081027CC:: @ 081027CC + .incbin "baserom.gba", 0x1027CC, 0x0000030 + +gUnk_081027FC:: @ 081027FC + .incbin "baserom.gba", 0x1027FC, 0x0000030 + +gUnk_0810282C:: @ 0810282C + .incbin "baserom.gba", 0x10282C, 0x000000C + +gUnk_08102838:: @ 08102838 + .incbin "baserom.gba", 0x102838, 0x0000012 + +gUnk_0810284A:: @ 0810284A + .incbin "baserom.gba", 0x10284A, 0x0000012 + +gUnk_0810285C:: @ 0810285C + .incbin "baserom.gba", 0x10285C, 0x0000018 + +gUnk_08102874:: @ 08102874 + .incbin "baserom.gba", 0x102874, 0x0000030 + +gUnk_081028A4:: @ 081028A4 + .incbin "baserom.gba", 0x1028A4, 0x0000030 + +gUnk_081028D4:: @ 081028D4 + .incbin "baserom.gba", 0x1028D4, 0x0000030 + +gUnk_08102904:: @ 08102904 + .incbin "baserom.gba", 0x102904, 0x0000012 + +gUnk_08102916:: @ 08102916 + .incbin "baserom.gba", 0x102916, 0x000001E + +gUnk_08102934:: @ 08102934 + .incbin "baserom.gba", 0x102934, 0x0000018 + +gUnk_0810294C:: @ 0810294C + .incbin "baserom.gba", 0x10294C, 0x0000018 + +gUnk_08102964:: @ 08102964 + .incbin "baserom.gba", 0x102964, 0x0000030 + +gUnk_08102994:: @ 08102994 + .incbin "baserom.gba", 0x102994, 0x0000030 + +gUnk_081029C4:: @ 081029C4 + .incbin "baserom.gba", 0x1029C4, 0x0000030 + +gUnk_081029F4:: @ 081029F4 + .incbin "baserom.gba", 0x1029F4, 0x000001C + +gUnk_08102A10:: @ 08102A10 + .incbin "baserom.gba", 0x102A10, 0x0000014 + +gUnk_08102A24:: @ 08102A24 + .incbin "baserom.gba", 0x102A24, 0x0000030 + +gUnk_08102A54:: @ 08102A54 + .incbin "baserom.gba", 0x102A54, 0x0000030 + +gUnk_08102A84:: @ 08102A84 + .incbin "baserom.gba", 0x102A84, 0x0000030 + +gUnk_08102AB4:: @ 08102AB4 + .incbin "baserom.gba", 0x102AB4, 0x0000030 + +gUnk_08102AE4:: @ 08102AE4 + .incbin "baserom.gba", 0x102AE4, 0x000002C + +gUnk_08102B10:: @ 08102B10 + .incbin "baserom.gba", 0x102B10, 0x0000004 + +gUnk_08102B14:: @ 08102B14 + .incbin "baserom.gba", 0x102B14, 0x0000030 + +gUnk_08102B44:: @ 08102B44 + .incbin "baserom.gba", 0x102B44, 0x0000030 + +gUnk_08102B74:: @ 08102B74 + .incbin "baserom.gba", 0x102B74, 0x0000030 + +gUnk_08102BA4:: @ 08102BA4 + .incbin "baserom.gba", 0x102BA4, 0x0000030 + +gUnk_08102BD4:: @ 08102BD4 + .incbin "baserom.gba", 0x102BD4, 0x0000030 + +gUnk_08102C04:: @ 08102C04 + .incbin "baserom.gba", 0x102C04, 0x0000030 + +gUnk_08102C34:: @ 08102C34 + .incbin "baserom.gba", 0x102C34, 0x000000D + +gUnk_08102C41:: @ 08102C41 + .incbin "baserom.gba", 0x102C41, 0x0000023 + +gUnk_08102C64:: @ 08102C64 + .incbin "baserom.gba", 0x102C64, 0x0000030 + +gUnk_08102C94:: @ 08102C94 + .incbin "baserom.gba", 0x102C94, 0x0000030 + +gUnk_08102CC4:: @ 08102CC4 + .incbin "baserom.gba", 0x102CC4, 0x0000030 + +gUnk_08102CF4:: @ 08102CF4 + .incbin "baserom.gba", 0x102CF4, 0x0000030 + +gUnk_08102D24:: @ 08102D24 + .incbin "baserom.gba", 0x102D24, 0x0000030 + +gUnk_08102D54:: @ 08102D54 + .incbin "baserom.gba", 0x102D54, 0x0000030 + +gUnk_08102D84:: @ 08102D84 + .incbin "baserom.gba", 0x102D84, 0x0000030 + +gUnk_08102DB4:: @ 08102DB4 + .incbin "baserom.gba", 0x102DB4, 0x0000030 + +gUnk_08102DE4:: @ 08102DE4 + .incbin "baserom.gba", 0x102DE4, 0x0000030 + +gUnk_08102E14:: @ 08102E14 + .incbin "baserom.gba", 0x102E14, 0x0000030 + +gUnk_08102E44:: @ 08102E44 + .incbin "baserom.gba", 0x102E44, 0x0000030 + +gUnk_08102E74:: @ 08102E74 + .incbin "baserom.gba", 0x102E74, 0x0000030 + +gUnk_08102EA4:: @ 08102EA4 + .incbin "baserom.gba", 0x102EA4, 0x0000030 + +gUnk_08102ED4:: @ 08102ED4 + .incbin "baserom.gba", 0x102ED4, 0x0000018 + +gUnk_08102EEC:: @ 08102EEC + .incbin "baserom.gba", 0x102EEC, 0x0000025 + +gUnk_08102F11:: @ 08102F11 + .incbin "baserom.gba", 0x102F11, 0x000000B + +gUnk_08102F1C:: @ 08102F1C + .incbin "baserom.gba", 0x102F1C, 0x0000030 + +gUnk_08102F4C:: @ 08102F4C + .incbin "baserom.gba", 0x102F4C, 0x0000030 + +gUnk_08102F7C:: @ 08102F7C + .incbin "baserom.gba", 0x102F7C, 0x0000030 + +gUnk_08102FAC:: @ 08102FAC + .incbin "baserom.gba", 0x102FAC, 0x0000030 + +gUnk_08102FDC:: @ 08102FDC + .incbin "baserom.gba", 0x102FDC, 0x0000030 + +gUnk_0810300C:: @ 0810300C + .incbin "baserom.gba", 0x10300C, 0x0000030 + +gUnk_0810303C:: @ 0810303C + .incbin "baserom.gba", 0x10303C, 0x0000030 + +gUnk_0810306C:: @ 0810306C + .incbin "baserom.gba", 0x10306C, 0x0000030 + +gUnk_0810309C:: @ 0810309C + .incbin "baserom.gba", 0x10309C, 0x0000068 + +gUnk_08103104:: @ 08103104 + .incbin "baserom.gba", 0x103104, 0x000000C + +gUnk_08103110:: @ 08103110 + .incbin "baserom.gba", 0x103110, 0x00000E5 + +gUnk_081031F5:: @ 081031F5 + .incbin "baserom.gba", 0x1031F5, 0x00000E7 + +gUnk_081032DC:: @ 081032DC + .incbin "baserom.gba", 0x1032DC, 0x0000018 + +gUnk_081032F4:: @ 081032F4 + .incbin "baserom.gba", 0x1032F4, 0x0000004 + +gUnk_081032F8:: @ 081032F8 + .incbin "baserom.gba", 0x1032F8, 0x0000018 + +gUnk_08103310:: @ 08103310 + .incbin "baserom.gba", 0x103310, 0x0000018 + +gUnk_08103328:: @ 08103328 + .incbin "baserom.gba", 0x103328, 0x0000008 + +gUnk_08103330:: @ 08103330 + .incbin "baserom.gba", 0x103330, 0x0000018 + +gUnk_08103348:: @ 08103348 + .incbin "baserom.gba", 0x103348, 0x0000004 + +gUnk_0810334C:: @ 0810334C + .incbin "baserom.gba", 0x10334C, 0x0000018 + +gUnk_08103364:: @ 08103364 + .incbin "baserom.gba", 0x103364, 0x0000016 + +gUnk_0810337A:: @ 0810337A + .incbin "baserom.gba", 0x10337A, 0x0000002 + +gUnk_0810337C:: @ 0810337C + .incbin "baserom.gba", 0x10337C, 0x0000018 + +gUnk_08103394:: @ 08103394 + .incbin "baserom.gba", 0x103394, 0x0000018 + +gUnk_081033AC:: @ 081033AC + .incbin "baserom.gba", 0x1033AC, 0x0000018 + +gUnk_081033C4:: @ 081033C4 + .incbin "baserom.gba", 0x1033C4, 0x0000018 + +gUnk_081033DC:: @ 081033DC + .incbin "baserom.gba", 0x1033DC, 0x0000018 + +gUnk_081033F4:: @ 081033F4 + .incbin "baserom.gba", 0x1033F4, 0x0000018 + +gUnk_0810340C:: @ 0810340C + .incbin "baserom.gba", 0x10340C, 0x0000004 + +gUnk_08103410:: @ 08103410 + .incbin "baserom.gba", 0x103410, 0x0000018 + +gUnk_08103428:: @ 08103428 + .incbin "baserom.gba", 0x103428, 0x0000004 + +gUnk_0810342C:: @ 0810342C + .incbin "baserom.gba", 0x10342C, 0x0000017 + +gUnk_08103443:: @ 08103443 + .incbin "baserom.gba", 0x103443, 0x0000001 + +gUnk_08103444:: @ 08103444 + .incbin "baserom.gba", 0x103444, 0x0000018 + +gUnk_0810345C:: @ 0810345C + .incbin "baserom.gba", 0x10345C, 0x0000018 + +gUnk_08103474:: @ 08103474 + .incbin "baserom.gba", 0x103474, 0x0000018 + +gUnk_0810348C:: @ 0810348C + .incbin "baserom.gba", 0x10348C, 0x0000018 + +gUnk_081034A4:: @ 081034A4 + .incbin "baserom.gba", 0x1034A4, 0x0000014 + +gUnk_081034B8:: @ 081034B8 + .incbin "baserom.gba", 0x1034B8, 0x0000018 + +gUnk_081034D0:: @ 081034D0 + .incbin "baserom.gba", 0x1034D0, 0x000003C + +gUnk_0810350C:: @ 0810350C + .incbin "baserom.gba", 0x10350C, 0x0000018 + +gUnk_08103524:: @ 08103524 + .incbin "baserom.gba", 0x103524, 0x0000031 + +gUnk_08103555:: @ 08103555 + .incbin "baserom.gba", 0x103555, 0x000000B + +gUnk_08103560:: @ 08103560 + .incbin "baserom.gba", 0x103560, 0x000003C + +gUnk_0810359C:: @ 0810359C + .incbin "baserom.gba", 0x10359C, 0x000003C + +gUnk_081035D8:: @ 081035D8 + .incbin "baserom.gba", 0x1035D8, 0x000003C + +gUnk_08103614:: @ 08103614 + .incbin "baserom.gba", 0x103614, 0x000003C + +gUnk_08103650:: @ 08103650 + .incbin "baserom.gba", 0x103650, 0x0000018 + +gUnk_08103668:: @ 08103668 + .incbin "baserom.gba", 0x103668, 0x0000018 + +gUnk_08103680:: @ 08103680 + .incbin "baserom.gba", 0x103680, 0x0000028 + +gUnk_081036A8:: @ 081036A8 + .incbin "baserom.gba", 0x1036A8, 0x0000018 + +gUnk_081036C0:: @ 081036C0 + .incbin "baserom.gba", 0x1036C0, 0x0000004 + +gUnk_081036C4:: @ 081036C4 + .incbin "baserom.gba", 0x1036C4, 0x0000018 + +gUnk_081036DC:: @ 081036DC + .incbin "baserom.gba", 0x1036DC, 0x0000018 + +gUnk_081036F4:: @ 081036F4 + .incbin "baserom.gba", 0x1036F4, 0x0000018 + +gUnk_0810370C:: @ 0810370C + .incbin "baserom.gba", 0x10370C, 0x000000C + +gUnk_08103718:: @ 08103718 + .incbin "baserom.gba", 0x103718, 0x0000018 + +gUnk_08103730:: @ 08103730 + .incbin "baserom.gba", 0x103730, 0x0000003 + +gUnk_08103733:: @ 08103733 + .incbin "baserom.gba", 0x103733, 0x0000015 + +gUnk_08103748:: @ 08103748 + .incbin "baserom.gba", 0x103748, 0x0000008 + +gUnk_08103750:: @ 08103750 + .incbin "baserom.gba", 0x103750, 0x0000015 + +gUnk_08103765:: @ 08103765 + .incbin "baserom.gba", 0x103765, 0x0000003 + +gUnk_08103768:: @ 08103768 + .incbin "baserom.gba", 0x103768, 0x0000004 + +gUnk_0810376C:: @ 0810376C + .incbin "baserom.gba", 0x10376C, 0x0000018 + +gUnk_08103784:: @ 08103784 + .incbin "baserom.gba", 0x103784, 0x0000004 + +gUnk_08103788:: @ 08103788 + .incbin "baserom.gba", 0x103788, 0x000000C + +gUnk_08103794:: @ 08103794 + .incbin "baserom.gba", 0x103794, 0x000000C + +gUnk_081037A0:: @ 081037A0 + .incbin "baserom.gba", 0x1037A0, 0x000000C + +gUnk_081037AC:: @ 081037AC + .incbin "baserom.gba", 0x1037AC, 0x000000C + +gUnk_081037B8:: @ 081037B8 + .incbin "baserom.gba", 0x1037B8, 0x000000C + +gUnk_081037C4:: @ 081037C4 + .incbin "baserom.gba", 0x1037C4, 0x0000018 + +gUnk_081037DC:: @ 081037DC + .incbin "baserom.gba", 0x1037DC, 0x0000080 + +gUnk_0810385C:: @ 0810385C + .incbin "baserom.gba", 0x10385C, 0x0000018 + +gUnk_08103874:: @ 08103874 + .incbin "baserom.gba", 0x103874, 0x0000018 + +gUnk_0810388C:: @ 0810388C + .incbin "baserom.gba", 0x10388C, 0x0000018 + +gUnk_081038A4:: @ 081038A4 + .incbin "baserom.gba", 0x1038A4, 0x0000018 + +gUnk_081038BC:: @ 081038BC + .incbin "baserom.gba", 0x1038BC, 0x0000018 + +gUnk_081038D4:: @ 081038D4 + .incbin "baserom.gba", 0x1038D4, 0x0000018 + +gUnk_081038EC:: @ 081038EC + .incbin "baserom.gba", 0x1038EC, 0x0000018 + +gUnk_08103904:: @ 08103904 + .incbin "baserom.gba", 0x103904, 0x000000C + +gUnk_08103910:: @ 08103910 + .incbin "baserom.gba", 0x103910, 0x000000C + +gUnk_0810391C:: @ 0810391C + .incbin "baserom.gba", 0x10391C, 0x0000018 + +gUnk_08103934:: @ 08103934 + .incbin "baserom.gba", 0x103934, 0x0000018 + +gUnk_0810394C:: @ 0810394C + .incbin "baserom.gba", 0x10394C, 0x0000018 + +gUnk_08103964:: @ 08103964 + .incbin "baserom.gba", 0x103964, 0x0000018 + +gUnk_0810397C:: @ 0810397C + .incbin "baserom.gba", 0x10397C, 0x0000018 + +gUnk_08103994:: @ 08103994 + .incbin "baserom.gba", 0x103994, 0x0000018 + +gUnk_081039AC:: @ 081039AC + .incbin "baserom.gba", 0x1039AC, 0x0000018 + +gUnk_081039C4:: @ 081039C4 + .incbin "baserom.gba", 0x1039C4, 0x0000018 + +gUnk_081039DC:: @ 081039DC + .incbin "baserom.gba", 0x1039DC, 0x0000018 + +gUnk_081039F4:: @ 081039F4 + .incbin "baserom.gba", 0x1039F4, 0x000000C + +gUnk_08103A00:: @ 08103A00 + .incbin "baserom.gba", 0x103A00, 0x0000010 + +gUnk_08103A10:: @ 08103A10 + .incbin "baserom.gba", 0x103A10, 0x0000028 + +gUnk_08103A38:: @ 08103A38 + .incbin "baserom.gba", 0x103A38, 0x0000018 + +gUnk_08103A50:: @ 08103A50 + .incbin "baserom.gba", 0x103A50, 0x0000018 + +gUnk_08103A68:: @ 08103A68 + .incbin "baserom.gba", 0x103A68, 0x0000018 + +gUnk_08103A80:: @ 08103A80 + .incbin "baserom.gba", 0x103A80, 0x0000020 + +gUnk_08103AA0:: @ 08103AA0 + .incbin "baserom.gba", 0x103AA0, 0x0000018 + +gUnk_08103AB8:: @ 08103AB8 + .incbin "baserom.gba", 0x103AB8, 0x0000004 + +gUnk_08103ABC:: @ 08103ABC + .incbin "baserom.gba", 0x103ABC, 0x0000018 + +gUnk_08103AD4:: @ 08103AD4 + .incbin "baserom.gba", 0x103AD4, 0x0000004 + +gUnk_08103AD8:: @ 08103AD8 + .incbin "baserom.gba", 0x103AD8, 0x0000018 + +gUnk_08103AF0:: @ 08103AF0 + .incbin "baserom.gba", 0x103AF0, 0x0000018 + +gUnk_08103B08:: @ 08103B08 + .incbin "baserom.gba", 0x103B08, 0x0000008 + +gUnk_08103B10:: @ 08103B10 + .incbin "baserom.gba", 0x103B10, 0x0000008 + +gUnk_08103B18:: @ 08103B18 + .incbin "baserom.gba", 0x103B18, 0x0000018 + +gUnk_08103B30:: @ 08103B30 + .incbin "baserom.gba", 0x103B30, 0x0000004 + +gUnk_08103B34:: @ 08103B34 + .incbin "baserom.gba", 0x103B34, 0x0000018 + +gUnk_08103B4C:: @ 08103B4C + .incbin "baserom.gba", 0x103B4C, 0x0000004 + +gUnk_08103B50:: @ 08103B50 + .incbin "baserom.gba", 0x103B50, 0x0000018 + +gUnk_08103B68:: @ 08103B68 + .incbin "baserom.gba", 0x103B68, 0x0000004 + +gUnk_08103B6C:: @ 08103B6C + .incbin "baserom.gba", 0x103B6C, 0x0000018 + +gUnk_08103B84:: @ 08103B84 + .incbin "baserom.gba", 0x103B84, 0x0000018 + +gUnk_08103B9C:: @ 08103B9C + .incbin "baserom.gba", 0x103B9C, 0x0000018 + +gUnk_08103BB4:: @ 08103BB4 + .incbin "baserom.gba", 0x103BB4, 0x0000018 + +gUnk_08103BCC:: @ 08103BCC + .incbin "baserom.gba", 0x103BCC, 0x0000018 + +gUnk_08103BE4:: @ 08103BE4 + .incbin "baserom.gba", 0x103BE4, 0x0000014 + +gUnk_08103BF8:: @ 08103BF8 + .incbin "baserom.gba", 0x103BF8, 0x0000009 + +gUnk_08103C01:: @ 08103C01 + .incbin "baserom.gba", 0x103C01, 0x000000F + +gUnk_08103C10:: @ 08103C10 + .incbin "baserom.gba", 0x103C10, 0x0000018 + +gUnk_08103C28:: @ 08103C28 + .incbin "baserom.gba", 0x103C28, 0x0000008 + +gUnk_08103C30:: @ 08103C30 + .incbin "baserom.gba", 0x103C30, 0x0000018 + +gUnk_08103C48:: @ 08103C48 + .incbin "baserom.gba", 0x103C48, 0x0000008 + +gUnk_08103C50:: @ 08103C50 + .incbin "baserom.gba", 0x103C50, 0x0000018 + +gUnk_08103C68:: @ 08103C68 + .incbin "baserom.gba", 0x103C68, 0x0000018 + +gUnk_08103C80:: @ 08103C80 + .incbin "baserom.gba", 0x103C80, 0x0000008 + +gUnk_08103C88:: @ 08103C88 + .incbin "baserom.gba", 0x103C88, 0x0000018 + +gUnk_08103CA0:: @ 08103CA0 + .incbin "baserom.gba", 0x103CA0, 0x0000004 + +gUnk_08103CA4:: @ 08103CA4 + .incbin "baserom.gba", 0x103CA4, 0x000000C + +gUnk_08103CB0:: @ 08103CB0 + .incbin "baserom.gba", 0x103CB0, 0x000000C + +gUnk_08103CBC:: @ 08103CBC + .incbin "baserom.gba", 0x103CBC, 0x000000C + +gUnk_08103CC8:: @ 08103CC8 + .incbin "baserom.gba", 0x103CC8, 0x000000C + +gUnk_08103CD4:: @ 08103CD4 + .incbin "baserom.gba", 0x103CD4, 0x000000C + +gUnk_08103CE0:: @ 08103CE0 + .incbin "baserom.gba", 0x103CE0, 0x0000014 + +gUnk_08103CF4:: @ 08103CF4 + .incbin "baserom.gba", 0x103CF4, 0x000000C + +gUnk_08103D00:: @ 08103D00 + .incbin "baserom.gba", 0x103D00, 0x000000C + +gUnk_08103D0C:: @ 08103D0C + .incbin "baserom.gba", 0x103D0C, 0x000000C + +gUnk_08103D18:: @ 08103D18 + .incbin "baserom.gba", 0x103D18, 0x000000C + +gUnk_08103D24:: @ 08103D24 + .incbin "baserom.gba", 0x103D24, 0x0000010 + +gUnk_08103D34:: @ 08103D34 + .incbin "baserom.gba", 0x103D34, 0x0000024 + +gUnk_08103D58:: @ 08103D58 + .incbin "baserom.gba", 0x103D58, 0x0000024 + +gUnk_08103D7C:: @ 08103D7C + .incbin "baserom.gba", 0x103D7C, 0x0000024 + +gUnk_08103DA0:: @ 08103DA0 + .incbin "baserom.gba", 0x103DA0, 0x0000024 + +gUnk_08103DC4:: @ 08103DC4 + .incbin "baserom.gba", 0x103DC4, 0x0000024 + +gUnk_08103DE8:: @ 08103DE8 + .incbin "baserom.gba", 0x103DE8, 0x0000024 + +gUnk_08103E0C:: @ 08103E0C + .incbin "baserom.gba", 0x103E0C, 0x0000024 + +gUnk_08103E30:: @ 08103E30 + .incbin "baserom.gba", 0x103E30, 0x0000024 + +gUnk_08103E54:: @ 08103E54 + .incbin "baserom.gba", 0x103E54, 0x0000024 + +gUnk_08103E78:: @ 08103E78 + .incbin "baserom.gba", 0x103E78, 0x0000024 + +gUnk_08103E9C:: @ 08103E9C + .incbin "baserom.gba", 0x103E9C, 0x0000024 + +gUnk_08103EC0:: @ 08103EC0 + .incbin "baserom.gba", 0x103EC0, 0x0000024 + +gUnk_08103EE4:: @ 08103EE4 + .incbin "baserom.gba", 0x103EE4, 0x0000024 + +gUnk_08103F08:: @ 08103F08 + .incbin "baserom.gba", 0x103F08, 0x0000024 + +gUnk_08103F2C:: @ 08103F2C + .incbin "baserom.gba", 0x103F2C, 0x0000024 + +gUnk_08103F50:: @ 08103F50 + .incbin "baserom.gba", 0x103F50, 0x0000024 + +gUnk_08103F74:: @ 08103F74 + .incbin "baserom.gba", 0x103F74, 0x0000024 + +gUnk_08103F98:: @ 08103F98 + .incbin "baserom.gba", 0x103F98, 0x0000024 + +gUnk_08103FBC:: @ 08103FBC + .incbin "baserom.gba", 0x103FBC, 0x0000024 + +gUnk_08103FE0:: @ 08103FE0 + .incbin "baserom.gba", 0x103FE0, 0x0000024 + +gUnk_08104004:: @ 08104004 + .incbin "baserom.gba", 0x104004, 0x000001C + +gUnk_08104020:: @ 08104020 + .incbin "baserom.gba", 0x104020, 0x0000008 + +gUnk_08104028:: @ 08104028 + .incbin "baserom.gba", 0x104028, 0x00000A0 + +gUnk_081040C8:: @ 081040C8 + .incbin "baserom.gba", 0x1040C8, 0x0000024 + +gUnk_081040EC:: @ 081040EC + .incbin "baserom.gba", 0x1040EC, 0x0000024 + +gUnk_08104110:: @ 08104110 + .incbin "baserom.gba", 0x104110, 0x0000024 + +gUnk_08104134:: @ 08104134 + .incbin "baserom.gba", 0x104134, 0x0000024 + +gUnk_08104158:: @ 08104158 + .incbin "baserom.gba", 0x104158, 0x0000024 + +gUnk_0810417C:: @ 0810417C + .incbin "baserom.gba", 0x10417C, 0x0000024 + +gUnk_081041A0:: @ 081041A0 + .incbin "baserom.gba", 0x1041A0, 0x0000024 + +gUnk_081041C4:: @ 081041C4 + .incbin "baserom.gba", 0x1041C4, 0x0000024 + +gUnk_081041E8:: @ 081041E8 + .incbin "baserom.gba", 0x1041E8, 0x0000018 + +gUnk_08104200:: @ 08104200 + .incbin "baserom.gba", 0x104200, 0x000000C + +gUnk_0810420C:: @ 0810420C + .incbin "baserom.gba", 0x10420C, 0x0000004 + +gUnk_08104210:: @ 08104210 + .incbin "baserom.gba", 0x104210, 0x00000BC + +gUnk_081042CC:: @ 081042CC + .incbin "baserom.gba", 0x1042CC, 0x0000018 + +gUnk_081042E4:: @ 081042E4 + .incbin "baserom.gba", 0x1042E4, 0x0000018 + +gUnk_081042FC:: @ 081042FC + .incbin "baserom.gba", 0x1042FC, 0x0000014 + +gUnk_08104310:: @ 08104310 + .incbin "baserom.gba", 0x104310, 0x0000004 + +gUnk_08104314:: @ 08104314 + .incbin "baserom.gba", 0x104314, 0x000000D + +gUnk_08104321:: @ 08104321 + .incbin "baserom.gba", 0x104321, 0x000000B + +gUnk_0810432C:: @ 0810432C + .incbin "baserom.gba", 0x10432C, 0x0000018 + +gUnk_08104344:: @ 08104344 + .incbin "baserom.gba", 0x104344, 0x0000018 + +gUnk_0810435C:: @ 0810435C + .incbin "baserom.gba", 0x10435C, 0x0000018 + +gUnk_08104374:: @ 08104374 + .incbin "baserom.gba", 0x104374, 0x0000018 + +gUnk_0810438C:: @ 0810438C + .incbin "baserom.gba", 0x10438C, 0x0000018 + +gUnk_081043A4:: @ 081043A4 + .incbin "baserom.gba", 0x1043A4, 0x0000018 + +gUnk_081043BC:: @ 081043BC + .incbin "baserom.gba", 0x1043BC, 0x0000018 + +gUnk_081043D4:: @ 081043D4 + .incbin "baserom.gba", 0x1043D4, 0x0000018 + +gUnk_081043EC:: @ 081043EC + .incbin "baserom.gba", 0x1043EC, 0x0000018 + +gUnk_08104404:: @ 08104404 + .incbin "baserom.gba", 0x104404, 0x0000040 + +gUnk_08104444:: @ 08104444 + .incbin "baserom.gba", 0x104444, 0x0000018 + +gUnk_0810445C:: @ 0810445C + .incbin "baserom.gba", 0x10445C, 0x0000018 + +gUnk_08104474:: @ 08104474 + .incbin "baserom.gba", 0x104474, 0x0000018 + +gUnk_0810448C:: @ 0810448C + .incbin "baserom.gba", 0x10448C, 0x0000018 + +gUnk_081044A4:: @ 081044A4 + .incbin "baserom.gba", 0x1044A4, 0x0000018 + +gUnk_081044BC:: @ 081044BC + .incbin "baserom.gba", 0x1044BC, 0x0000018 + +gUnk_081044D4:: @ 081044D4 + .incbin "baserom.gba", 0x1044D4, 0x0000018 + +gUnk_081044EC:: @ 081044EC + .incbin "baserom.gba", 0x1044EC, 0x0000018 + +gUnk_08104504:: @ 08104504 + .incbin "baserom.gba", 0x104504, 0x0000018 + +gUnk_0810451C:: @ 0810451C + .incbin "baserom.gba", 0x10451C, 0x0000018 + +gUnk_08104534:: @ 08104534 + .incbin "baserom.gba", 0x104534, 0x0000018 + +gUnk_0810454C:: @ 0810454C + .incbin "baserom.gba", 0x10454C, 0x0000018 + +gUnk_08104564:: @ 08104564 + .incbin "baserom.gba", 0x104564, 0x0000018 + +gUnk_0810457C:: @ 0810457C + .incbin "baserom.gba", 0x10457C, 0x0000018 + +gUnk_08104594:: @ 08104594 + .incbin "baserom.gba", 0x104594, 0x0000018 + +gUnk_081045AC:: @ 081045AC + .incbin "baserom.gba", 0x1045AC, 0x0000018 + +gUnk_081045C4:: @ 081045C4 + .incbin "baserom.gba", 0x1045C4, 0x0000018 + +gUnk_081045DC:: @ 081045DC + .incbin "baserom.gba", 0x1045DC, 0x0000018 + +gUnk_081045F4:: @ 081045F4 + .incbin "baserom.gba", 0x1045F4, 0x0000018 + +gUnk_0810460C:: @ 0810460C + .incbin "baserom.gba", 0x10460C, 0x00000C0 + +gUnk_081046CC:: @ 081046CC + .incbin "baserom.gba", 0x1046CC, 0x0000018 + +gUnk_081046E4:: @ 081046E4 + .incbin "baserom.gba", 0x1046E4, 0x0000018 + +gUnk_081046FC:: @ 081046FC + .incbin "baserom.gba", 0x1046FC, 0x0000018 + +gUnk_08104714:: @ 08104714 + .incbin "baserom.gba", 0x104714, 0x0000018 + +gUnk_0810472C:: @ 0810472C + .incbin "baserom.gba", 0x10472C, 0x0000018 + +gUnk_08104744:: @ 08104744 + .incbin "baserom.gba", 0x104744, 0x0000018 + +gUnk_0810475C:: @ 0810475C + .incbin "baserom.gba", 0x10475C, 0x0000040 + +gUnk_0810479C:: @ 0810479C + .incbin "baserom.gba", 0x10479C, 0x0000018 + +gUnk_081047B4:: @ 081047B4 + .incbin "baserom.gba", 0x1047B4, 0x0000018 + +gUnk_081047CC:: @ 081047CC + .incbin "baserom.gba", 0x1047CC, 0x0000018 + +gUnk_081047E4:: @ 081047E4 + .incbin "baserom.gba", 0x1047E4, 0x0000018 + +gUnk_081047FC:: @ 081047FC + .incbin "baserom.gba", 0x1047FC, 0x0000018 + +gUnk_08104814:: @ 08104814 + .incbin "baserom.gba", 0x104814, 0x0000018 + +gUnk_0810482C:: @ 0810482C + .incbin "baserom.gba", 0x10482C, 0x0000018 + +gUnk_08104844:: @ 08104844 + .incbin "baserom.gba", 0x104844, 0x0000018 + +gUnk_0810485C:: @ 0810485C + .incbin "baserom.gba", 0x10485C, 0x0000018 + +gUnk_08104874:: @ 08104874 + .incbin "baserom.gba", 0x104874, 0x0000024 + +gUnk_08104898:: @ 08104898 + .incbin "baserom.gba", 0x104898, 0x0000018 + +gUnk_081048B0:: @ 081048B0 + .incbin "baserom.gba", 0x1048B0, 0x0000018 + +gUnk_081048C8:: @ 081048C8 + .incbin "baserom.gba", 0x1048C8, 0x0000018 + +gUnk_081048E0:: @ 081048E0 + .incbin "baserom.gba", 0x1048E0, 0x0000018 + +gUnk_081048F8:: @ 081048F8 + .incbin "baserom.gba", 0x1048F8, 0x0000018 + +gUnk_08104910:: @ 08104910 + .incbin "baserom.gba", 0x104910, 0x0000018 + +gUnk_08104928:: @ 08104928 + .incbin "baserom.gba", 0x104928, 0x000000A + +gUnk_08104932:: @ 08104932 + .incbin "baserom.gba", 0x104932, 0x000000E + +gUnk_08104940:: @ 08104940 + .incbin "baserom.gba", 0x104940, 0x0000018 + +gUnk_08104958:: @ 08104958 + .incbin "baserom.gba", 0x104958, 0x0000018 + +gUnk_08104970:: @ 08104970 + .incbin "baserom.gba", 0x104970, 0x0000018 + +gUnk_08104988:: @ 08104988 + .incbin "baserom.gba", 0x104988, 0x0000018 + +gUnk_081049A0:: @ 081049A0 + .incbin "baserom.gba", 0x1049A0, 0x0000018 + +gUnk_081049B8:: @ 081049B8 + .incbin "baserom.gba", 0x1049B8, 0x0000018 + +gUnk_081049D0:: @ 081049D0 + .incbin "baserom.gba", 0x1049D0, 0x0000018 + +gUnk_081049E8:: @ 081049E8 + .incbin "baserom.gba", 0x1049E8, 0x0000018 + +gUnk_08104A00:: @ 08104A00 + .incbin "baserom.gba", 0x104A00, 0x0000010 + +gUnk_08104A10:: @ 08104A10 + .incbin "baserom.gba", 0x104A10, 0x0000008 + +gUnk_08104A18:: @ 08104A18 + .incbin "baserom.gba", 0x104A18, 0x000000D + +gUnk_08104A25:: @ 08104A25 + .incbin "baserom.gba", 0x104A25, 0x000000B + +gUnk_08104A30:: @ 08104A30 + .incbin "baserom.gba", 0x104A30, 0x0000080 + +gUnk_08104AB0:: @ 08104AB0 + .incbin "baserom.gba", 0x104AB0, 0x0000018 + +gUnk_08104AC8:: @ 08104AC8 + .incbin "baserom.gba", 0x104AC8, 0x0000018 + +gUnk_08104AE0:: @ 08104AE0 + .incbin "baserom.gba", 0x104AE0, 0x0000018 + +gUnk_08104AF8:: @ 08104AF8 + .incbin "baserom.gba", 0x104AF8, 0x000000B + +gUnk_08104B03:: @ 08104B03 + .incbin "baserom.gba", 0x104B03, 0x000000D + +gUnk_08104B10:: @ 08104B10 + .incbin "baserom.gba", 0x104B10, 0x0000018 + +gUnk_08104B28:: @ 08104B28 + .incbin "baserom.gba", 0x104B28, 0x0000018 + +gUnk_08104B40:: @ 08104B40 + .incbin "baserom.gba", 0x104B40, 0x0000018 + +gUnk_08104B58:: @ 08104B58 + .incbin "baserom.gba", 0x104B58, 0x0000018 + +gUnk_08104B70:: @ 08104B70 + .incbin "baserom.gba", 0x104B70, 0x0000018 + +gUnk_08104B88:: @ 08104B88 + .incbin "baserom.gba", 0x104B88, 0x0000018 + +gUnk_08104BA0:: @ 08104BA0 + .incbin "baserom.gba", 0x104BA0, 0x0000018 + +gUnk_08104BB8:: @ 08104BB8 + .incbin "baserom.gba", 0x104BB8, 0x0000018 + +gUnk_08104BD0:: @ 08104BD0 + .incbin "baserom.gba", 0x104BD0, 0x0000018 + +gUnk_08104BE8:: @ 08104BE8 + .incbin "baserom.gba", 0x104BE8, 0x0000018 + +gUnk_08104C00:: @ 08104C00 + .incbin "baserom.gba", 0x104C00, 0x0000040 + +gUnk_08104C40:: @ 08104C40 + .incbin "baserom.gba", 0x104C40, 0x0000018 + +gUnk_08104C58:: @ 08104C58 + .incbin "baserom.gba", 0x104C58, 0x0000018 + +gUnk_08104C70:: @ 08104C70 + .incbin "baserom.gba", 0x104C70, 0x0000018 + +gUnk_08104C88:: @ 08104C88 + .incbin "baserom.gba", 0x104C88, 0x0000018 + +gUnk_08104CA0:: @ 08104CA0 + .incbin "baserom.gba", 0x104CA0, 0x0000018 + +gUnk_08104CB8:: @ 08104CB8 + .incbin "baserom.gba", 0x104CB8, 0x0000018 + +gUnk_08104CD0:: @ 08104CD0 + .incbin "baserom.gba", 0x104CD0, 0x0000018 + +gUnk_08104CE8:: @ 08104CE8 + .incbin "baserom.gba", 0x104CE8, 0x0000018 + +gUnk_08104D00:: @ 08104D00 + .incbin "baserom.gba", 0x104D00, 0x0000018 + +gUnk_08104D18:: @ 08104D18 + .incbin "baserom.gba", 0x104D18, 0x0000018 + +gUnk_08104D30:: @ 08104D30 + .incbin "baserom.gba", 0x104D30, 0x0000018 + +gUnk_08104D48:: @ 08104D48 + .incbin "baserom.gba", 0x104D48, 0x0000018 + +gUnk_08104D60:: @ 08104D60 + .incbin "baserom.gba", 0x104D60, 0x0000018 + +gUnk_08104D78:: @ 08104D78 + .incbin "baserom.gba", 0x104D78, 0x0000018 + +gUnk_08104D90:: @ 08104D90 + .incbin "baserom.gba", 0x104D90, 0x0000018 + +gUnk_08104DA8:: @ 08104DA8 + .incbin "baserom.gba", 0x104DA8, 0x0000018 + +gUnk_08104DC0:: @ 08104DC0 + .incbin "baserom.gba", 0x104DC0, 0x0000018 + +gUnk_08104DD8:: @ 08104DD8 + .incbin "baserom.gba", 0x104DD8, 0x0000018 + +gUnk_08104DF0:: @ 08104DF0 + .incbin "baserom.gba", 0x104DF0, 0x0000048 + +gUnk_08104E38:: @ 08104E38 + .incbin "baserom.gba", 0x104E38, 0x0000018 + +gUnk_08104E50:: @ 08104E50 + .incbin "baserom.gba", 0x104E50, 0x0000018 + +gUnk_08104E68:: @ 08104E68 + .incbin "baserom.gba", 0x104E68, 0x0000018 + +gUnk_08104E80:: @ 08104E80 + .incbin "baserom.gba", 0x104E80, 0x0000018 + +gUnk_08104E98:: @ 08104E98 + .incbin "baserom.gba", 0x104E98, 0x0000018 + +gUnk_08104EB0:: @ 08104EB0 + .incbin "baserom.gba", 0x104EB0, 0x0000018 + +gUnk_08104EC8:: @ 08104EC8 + .incbin "baserom.gba", 0x104EC8, 0x0000018 + +gUnk_08104EE0:: @ 08104EE0 + .incbin "baserom.gba", 0x104EE0, 0x0000018 + +gUnk_08104EF8:: @ 08104EF8 + .incbin "baserom.gba", 0x104EF8, 0x0000018 + +gUnk_08104F10:: @ 08104F10 + .incbin "baserom.gba", 0x104F10, 0x0000018 + +gUnk_08104F28:: @ 08104F28 + .incbin "baserom.gba", 0x104F28, 0x0000018 + +gUnk_08104F40:: @ 08104F40 + .incbin "baserom.gba", 0x104F40, 0x000002C + +gUnk_08104F6C:: @ 08104F6C + .incbin "baserom.gba", 0x104F6C, 0x000000C + +gUnk_08104F78:: @ 08104F78 + .incbin "baserom.gba", 0x104F78, 0x000000C + +gUnk_08104F84:: @ 08104F84 + .incbin "baserom.gba", 0x104F84, 0x000000C + +gUnk_08104F90:: @ 08104F90 + .incbin "baserom.gba", 0x104F90, 0x000000C + +gUnk_08104F9C:: @ 08104F9C + .incbin "baserom.gba", 0x104F9C, 0x0000010 + +gUnk_08104FAC:: @ 08104FAC + .incbin "baserom.gba", 0x104FAC, 0x0000018 + +gUnk_08104FC4:: @ 08104FC4 + .incbin "baserom.gba", 0x104FC4, 0x0000018 + +gUnk_08104FDC:: @ 08104FDC + .incbin "baserom.gba", 0x104FDC, 0x0000008 + +gUnk_08104FE4:: @ 08104FE4 + .incbin "baserom.gba", 0x104FE4, 0x0000018 + +gUnk_08104FFC:: @ 08104FFC + .incbin "baserom.gba", 0x104FFC, 0x0000018 + +gUnk_08105014:: @ 08105014 + .incbin "baserom.gba", 0x105014, 0x0000018 + +gUnk_0810502C:: @ 0810502C + .incbin "baserom.gba", 0x10502C, 0x0000018 + +gUnk_08105044:: @ 08105044 + .incbin "baserom.gba", 0x105044, 0x0000010 + +gUnk_08105054:: @ 08105054 + .incbin "baserom.gba", 0x105054, 0x0000018 + +gUnk_0810506C:: @ 0810506C + .incbin "baserom.gba", 0x10506C, 0x0000004 + +gUnk_08105070:: @ 08105070 + .incbin "baserom.gba", 0x105070, 0x0000018 + +gUnk_08105088:: @ 08105088 + .incbin "baserom.gba", 0x105088, 0x0000018 + +gUnk_081050A0:: @ 081050A0 + .incbin "baserom.gba", 0x1050A0, 0x0000018 + +gUnk_081050B8:: @ 081050B8 + .incbin "baserom.gba", 0x1050B8, 0x0000018 + +gUnk_081050D0:: @ 081050D0 + .incbin "baserom.gba", 0x1050D0, 0x0000018 + +gUnk_081050E8:: @ 081050E8 + .incbin "baserom.gba", 0x1050E8, 0x0000018 + +gUnk_08105100:: @ 08105100 + .incbin "baserom.gba", 0x105100, 0x0000018 + +gUnk_08105118:: @ 08105118 + .incbin "baserom.gba", 0x105118, 0x0000018 + +gUnk_08105130:: @ 08105130 + .incbin "baserom.gba", 0x105130, 0x0000010 + +gUnk_08105140:: @ 08105140 + .incbin "baserom.gba", 0x105140, 0x0000008 + +gUnk_08105148:: @ 08105148 + .incbin "baserom.gba", 0x105148, 0x0000018 + +gUnk_08105160:: @ 08105160 + .incbin "baserom.gba", 0x105160, 0x0000028 + +gUnk_08105188:: @ 08105188 + .incbin "baserom.gba", 0x105188, 0x0000018 + +gUnk_081051A0:: @ 081051A0 + .incbin "baserom.gba", 0x1051A0, 0x0000018 + +gUnk_081051B8:: @ 081051B8 + .incbin "baserom.gba", 0x1051B8, 0x0000008 + +gUnk_081051C0:: @ 081051C0 + .incbin "baserom.gba", 0x1051C0, 0x0000018 + +gUnk_081051D8:: @ 081051D8 + .incbin "baserom.gba", 0x1051D8, 0x0000018 + +gUnk_081051F0:: @ 081051F0 + .incbin "baserom.gba", 0x1051F0, 0x0000008 + +gUnk_081051F8:: @ 081051F8 + .incbin "baserom.gba", 0x1051F8, 0x000000E + +gUnk_08105206:: @ 08105206 + .incbin "baserom.gba", 0x105206, 0x000000A + +gUnk_08105210:: @ 08105210 + .incbin "baserom.gba", 0x105210, 0x0000004 + +gUnk_08105214:: @ 08105214 + .incbin "baserom.gba", 0x105214, 0x0000018 + +gUnk_0810522C:: @ 0810522C + .incbin "baserom.gba", 0x10522C, 0x0000018 + +gUnk_08105244:: @ 08105244 + .incbin "baserom.gba", 0x105244, 0x0000008 + +gUnk_0810524C:: @ 0810524C + .incbin "baserom.gba", 0x10524C, 0x0000018 + +gUnk_08105264:: @ 08105264 + .incbin "baserom.gba", 0x105264, 0x0000018 + +gUnk_0810527C:: @ 0810527C + .incbin "baserom.gba", 0x10527C, 0x0000008 + +gUnk_08105284:: @ 08105284 + .incbin "baserom.gba", 0x105284, 0x0000018 + +gUnk_0810529C:: @ 0810529C + .incbin "baserom.gba", 0x10529C, 0x0000018 + +gUnk_081052B4:: @ 081052B4 + .incbin "baserom.gba", 0x1052B4, 0x0000008 + +gUnk_081052BC:: @ 081052BC + .incbin "baserom.gba", 0x1052BC, 0x0000018 + +gUnk_081052D4:: @ 081052D4 + .incbin "baserom.gba", 0x1052D4, 0x0000004 + +gUnk_081052D8:: @ 081052D8 + .incbin "baserom.gba", 0x1052D8, 0x0000018 + +gUnk_081052F0:: @ 081052F0 + .incbin "baserom.gba", 0x1052F0, 0x0000018 + +gUnk_08105308:: @ 08105308 + .incbin "baserom.gba", 0x105308, 0x0000018 + +gUnk_08105320:: @ 08105320 + .incbin "baserom.gba", 0x105320, 0x0000018 + +gUnk_08105338:: @ 08105338 + .incbin "baserom.gba", 0x105338, 0x0000018 + +gUnk_08105350:: @ 08105350 + .incbin "baserom.gba", 0x105350, 0x0000018 + +gUnk_08105368:: @ 08105368 + .incbin "baserom.gba", 0x105368, 0x0000018 + +gUnk_08105380:: @ 08105380 + .incbin "baserom.gba", 0x105380, 0x0000018 + +gUnk_08105398:: @ 08105398 + .incbin "baserom.gba", 0x105398, 0x0000018 + +gUnk_081053B0:: @ 081053B0 + .incbin "baserom.gba", 0x1053B0, 0x0000024 + +gUnk_081053D4:: @ 081053D4 + .incbin "baserom.gba", 0x1053D4, 0x0000018 + +gUnk_081053EC:: @ 081053EC + .incbin "baserom.gba", 0x1053EC, 0x0000018 + +gUnk_08105404:: @ 08105404 + .incbin "baserom.gba", 0x105404, 0x0000018 + +gUnk_0810541C:: @ 0810541C + .incbin "baserom.gba", 0x10541C, 0x0000018 + +gUnk_08105434:: @ 08105434 + .incbin "baserom.gba", 0x105434, 0x0000018 + +gUnk_0810544C:: @ 0810544C + .incbin "baserom.gba", 0x10544C, 0x0000018 + +gUnk_08105464:: @ 08105464 + .incbin "baserom.gba", 0x105464, 0x0000018 + +gUnk_0810547C:: @ 0810547C + .incbin "baserom.gba", 0x10547C, 0x0000018 + +gUnk_08105494:: @ 08105494 + .incbin "baserom.gba", 0x105494, 0x0000018 + +gUnk_081054AC:: @ 081054AC + .incbin "baserom.gba", 0x1054AC, 0x0000018 + +gUnk_081054C4:: @ 081054C4 + .incbin "baserom.gba", 0x1054C4, 0x0000018 + +gUnk_081054DC:: @ 081054DC + .incbin "baserom.gba", 0x1054DC, 0x0000018 + +gUnk_081054F4:: @ 081054F4 + .incbin "baserom.gba", 0x1054F4, 0x0000018 + +gUnk_0810550C:: @ 0810550C + .incbin "baserom.gba", 0x10550C, 0x0000018 + +gUnk_08105524:: @ 08105524 + .incbin "baserom.gba", 0x105524, 0x0000018 + +gUnk_0810553C:: @ 0810553C + .incbin "baserom.gba", 0x10553C, 0x0000018 + +gUnk_08105554:: @ 08105554 + .incbin "baserom.gba", 0x105554, 0x0000018 + +gUnk_0810556C:: @ 0810556C + .incbin "baserom.gba", 0x10556C, 0x0000018 + +gUnk_08105584:: @ 08105584 + .incbin "baserom.gba", 0x105584, 0x0000018 + +gUnk_0810559C:: @ 0810559C + .incbin "baserom.gba", 0x10559C, 0x0000018 + +gUnk_081055B4:: @ 081055B4 + .incbin "baserom.gba", 0x1055B4, 0x0000018 + +gUnk_081055CC:: @ 081055CC + .incbin "baserom.gba", 0x1055CC, 0x0000018 + +gUnk_081055E4:: @ 081055E4 + .incbin "baserom.gba", 0x1055E4, 0x000001C + +gUnk_08105600:: @ 08105600 + .incbin "baserom.gba", 0x105600, 0x0000019 + +gUnk_08105619:: @ 08105619 + .incbin "baserom.gba", 0x105619, 0x000004F + +gUnk_08105668:: @ 08105668 + .incbin "baserom.gba", 0x105668, 0x0000004 + +gUnk_0810566C:: @ 0810566C + .incbin "baserom.gba", 0x10566C, 0x0000004 + +gUnk_08105670:: @ 08105670 + .incbin "baserom.gba", 0x105670, 0x0000018 + +gUnk_08105688:: @ 08105688 + .incbin "baserom.gba", 0x105688, 0x0000018 + +gUnk_081056A0:: @ 081056A0 + .incbin "baserom.gba", 0x1056A0, 0x0000018 + +gUnk_081056B8:: @ 081056B8 + .incbin "baserom.gba", 0x1056B8, 0x0000018 + +gUnk_081056D0:: @ 081056D0 + .incbin "baserom.gba", 0x1056D0, 0x0000018 + +gUnk_081056E8:: @ 081056E8 + .incbin "baserom.gba", 0x1056E8, 0x0000018 + +gUnk_08105700:: @ 08105700 + .incbin "baserom.gba", 0x105700, 0x0000010 + +gUnk_08105710:: @ 08105710 + .incbin "baserom.gba", 0x105710, 0x0000008 + +gUnk_08105718:: @ 08105718 + .incbin "baserom.gba", 0x105718, 0x0000018 + +gUnk_08105730:: @ 08105730 + .incbin "baserom.gba", 0x105730, 0x0000018 + +gUnk_08105748:: @ 08105748 + .incbin "baserom.gba", 0x105748, 0x0000018 + +gUnk_08105760:: @ 08105760 + .incbin "baserom.gba", 0x105760, 0x0000018 + +gUnk_08105778:: @ 08105778 + .incbin "baserom.gba", 0x105778, 0x0000018 + +gUnk_08105790:: @ 08105790 + .incbin "baserom.gba", 0x105790, 0x0000018 + +gUnk_081057A8:: @ 081057A8 + .incbin "baserom.gba", 0x1057A8, 0x0000018 + +gUnk_081057C0:: @ 081057C0 + .incbin "baserom.gba", 0x1057C0, 0x0000018 + +gUnk_081057D8:: @ 081057D8 + .incbin "baserom.gba", 0x1057D8, 0x0000018 + +gUnk_081057F0:: @ 081057F0 + .incbin "baserom.gba", 0x1057F0, 0x0000018 + +gUnk_08105808:: @ 08105808 + .incbin "baserom.gba", 0x105808, 0x0000018 + +gUnk_08105820:: @ 08105820 + .incbin "baserom.gba", 0x105820, 0x0000060 + +gUnk_08105880:: @ 08105880 + .incbin "baserom.gba", 0x105880, 0x0000018 + +gUnk_08105898:: @ 08105898 + .incbin "baserom.gba", 0x105898, 0x0000004 + +gUnk_0810589C:: @ 0810589C + .incbin "baserom.gba", 0x10589C, 0x0000018 + +gUnk_081058B4:: @ 081058B4 + .incbin "baserom.gba", 0x1058B4, 0x0000018 + +gUnk_081058CC:: @ 081058CC + .incbin "baserom.gba", 0x1058CC, 0x0000018 + +gUnk_081058E4:: @ 081058E4 + .incbin "baserom.gba", 0x1058E4, 0x0000018 + +gUnk_081058FC:: @ 081058FC + .incbin "baserom.gba", 0x1058FC, 0x000000E + +gUnk_0810590A:: @ 0810590A + .incbin "baserom.gba", 0x10590A, 0x000000A + +gUnk_08105914:: @ 08105914 + .incbin "baserom.gba", 0x105914, 0x0000018 + +gUnk_0810592C:: @ 0810592C + .incbin "baserom.gba", 0x10592C, 0x0000018 + +gUnk_08105944:: @ 08105944 + .incbin "baserom.gba", 0x105944, 0x0000018 + +gUnk_0810595C:: @ 0810595C + .incbin "baserom.gba", 0x10595C, 0x0000018 + +gUnk_08105974:: @ 08105974 + .incbin "baserom.gba", 0x105974, 0x0000018 + +gUnk_0810598C:: @ 0810598C + .incbin "baserom.gba", 0x10598C, 0x0000018 + +gUnk_081059A4:: @ 081059A4 + .incbin "baserom.gba", 0x1059A4, 0x0000018 + +gUnk_081059BC:: @ 081059BC + .incbin "baserom.gba", 0x1059BC, 0x0000018 + +gUnk_081059D4:: @ 081059D4 + .incbin "baserom.gba", 0x1059D4, 0x0000018 + +gUnk_081059EC:: @ 081059EC + .incbin "baserom.gba", 0x1059EC, 0x0000018 + +gUnk_08105A04:: @ 08105A04 + .incbin "baserom.gba", 0x105A04, 0x0000018 + +gUnk_08105A1C:: @ 08105A1C + .incbin "baserom.gba", 0x105A1C, 0x0000018 + +gUnk_08105A34:: @ 08105A34 + .incbin "baserom.gba", 0x105A34, 0x000000D + +gUnk_08105A41:: @ 08105A41 + .incbin "baserom.gba", 0x105A41, 0x000000B + +gUnk_08105A4C:: @ 08105A4C + .incbin "baserom.gba", 0x105A4C, 0x0000018 + +gUnk_08105A64:: @ 08105A64 + .incbin "baserom.gba", 0x105A64, 0x0000018 + +gUnk_08105A7C:: @ 08105A7C + .incbin "baserom.gba", 0x105A7C, 0x0000018 + +gUnk_08105A94:: @ 08105A94 + .incbin "baserom.gba", 0x105A94, 0x0000018 + +gUnk_08105AAC:: @ 08105AAC + .incbin "baserom.gba", 0x105AAC, 0x0000018 + +gUnk_08105AC4:: @ 08105AC4 + .incbin "baserom.gba", 0x105AC4, 0x0000018 + +gUnk_08105ADC:: @ 08105ADC + .incbin "baserom.gba", 0x105ADC, 0x0000034 + +gUnk_08105B10:: @ 08105B10 + .incbin "baserom.gba", 0x105B10, 0x0000060 + +gUnk_08105B70:: @ 08105B70 + .incbin "baserom.gba", 0x105B70, 0x0000018 + +gUnk_08105B88:: @ 08105B88 + .incbin "baserom.gba", 0x105B88, 0x0000004 + +gUnk_08105B8C:: @ 08105B8C + .incbin "baserom.gba", 0x105B8C, 0x0000018 + +gUnk_08105BA4:: @ 08105BA4 + .incbin "baserom.gba", 0x105BA4, 0x0000018 + +gUnk_08105BBC:: @ 08105BBC + .incbin "baserom.gba", 0x105BBC, 0x0000008 + +gUnk_08105BC4:: @ 08105BC4 + .incbin "baserom.gba", 0x105BC4, 0x0000018 + +gUnk_08105BDC:: @ 08105BDC + .incbin "baserom.gba", 0x105BDC, 0x0000018 + +gUnk_08105BF4:: @ 08105BF4 + .incbin "baserom.gba", 0x105BF4, 0x0000018 + +gUnk_08105C0C:: @ 08105C0C + .incbin "baserom.gba", 0x105C0C, 0x0000018 + +gUnk_08105C24:: @ 08105C24 + .incbin "baserom.gba", 0x105C24, 0x0000018 + +gUnk_08105C3C:: @ 08105C3C + .incbin "baserom.gba", 0x105C3C, 0x0000018 + +gUnk_08105C54:: @ 08105C54 + .incbin "baserom.gba", 0x105C54, 0x0000018 + +gUnk_08105C6C:: @ 08105C6C + .incbin "baserom.gba", 0x105C6C, 0x0000018 + +gUnk_08105C84:: @ 08105C84 + .incbin "baserom.gba", 0x105C84, 0x0000018 + +gUnk_08105C9C:: @ 08105C9C + .incbin "baserom.gba", 0x105C9C, 0x0000018 + +gUnk_08105CB4:: @ 08105CB4 + .incbin "baserom.gba", 0x105CB4, 0x0000018 + +gUnk_08105CCC:: @ 08105CCC + .incbin "baserom.gba", 0x105CCC, 0x0000018 + +gUnk_08105CE4:: @ 08105CE4 + .incbin "baserom.gba", 0x105CE4, 0x0000018 + +gUnk_08105CFC:: @ 08105CFC + .incbin "baserom.gba", 0x105CFC, 0x0000018 + +gUnk_08105D14:: @ 08105D14 + .incbin "baserom.gba", 0x105D14, 0x0000003 + +gUnk_08105D17:: @ 08105D17 + .incbin "baserom.gba", 0x105D17, 0x0000015 + +gUnk_08105D2C:: @ 08105D2C + .incbin "baserom.gba", 0x105D2C, 0x0000018 + +gUnk_08105D44:: @ 08105D44 + .incbin "baserom.gba", 0x105D44, 0x0000018 + +gUnk_08105D5C:: @ 08105D5C + .incbin "baserom.gba", 0x105D5C, 0x0000018 + +gUnk_08105D74:: @ 08105D74 + .incbin "baserom.gba", 0x105D74, 0x0000018 + +gUnk_08105D8C:: @ 08105D8C + .incbin "baserom.gba", 0x105D8C, 0x0000018 + +gUnk_08105DA4:: @ 08105DA4 + .incbin "baserom.gba", 0x105DA4, 0x0000018 + +gUnk_08105DBC:: @ 08105DBC + .incbin "baserom.gba", 0x105DBC, 0x0000018 + +gUnk_08105DD4:: @ 08105DD4 + .incbin "baserom.gba", 0x105DD4, 0x0000018 + +gUnk_08105DEC:: @ 08105DEC + .incbin "baserom.gba", 0x105DEC, 0x0000018 + +gUnk_08105E04:: @ 08105E04 + .incbin "baserom.gba", 0x105E04, 0x0000018 + +gUnk_08105E1C:: @ 08105E1C + .incbin "baserom.gba", 0x105E1C, 0x0000018 + +gUnk_08105E34:: @ 08105E34 + .incbin "baserom.gba", 0x105E34, 0x0000018 + +gUnk_08105E4C:: @ 08105E4C + .incbin "baserom.gba", 0x105E4C, 0x0000018 + +gUnk_08105E64:: @ 08105E64 + .incbin "baserom.gba", 0x105E64, 0x0000018 + +gUnk_08105E7C:: @ 08105E7C + .incbin "baserom.gba", 0x105E7C, 0x0000018 + +gUnk_08105E94:: @ 08105E94 + .incbin "baserom.gba", 0x105E94, 0x0000018 + +gUnk_08105EAC:: @ 08105EAC + .incbin "baserom.gba", 0x105EAC, 0x0000018 + +gUnk_08105EC4:: @ 08105EC4 + .incbin "baserom.gba", 0x105EC4, 0x0000018 + +gUnk_08105EDC:: @ 08105EDC + .incbin "baserom.gba", 0x105EDC, 0x0000018 + +gUnk_08105EF4:: @ 08105EF4 + .incbin "baserom.gba", 0x105EF4, 0x0000018 + +gUnk_08105F0C:: @ 08105F0C + .incbin "baserom.gba", 0x105F0C, 0x0000018 + +gUnk_08105F24:: @ 08105F24 + .incbin "baserom.gba", 0x105F24, 0x0000018 + +gUnk_08105F3C:: @ 08105F3C + .incbin "baserom.gba", 0x105F3C, 0x0000018 + +gUnk_08105F54:: @ 08105F54 + .incbin "baserom.gba", 0x105F54, 0x0000018 + +gUnk_08105F6C:: @ 08105F6C + .incbin "baserom.gba", 0x105F6C, 0x0000018 + +gUnk_08105F84:: @ 08105F84 + .incbin "baserom.gba", 0x105F84, 0x0000018 + +gUnk_08105F9C:: @ 08105F9C + .incbin "baserom.gba", 0x105F9C, 0x0000066 + +gUnk_08106002:: @ 08106002 + .incbin "baserom.gba", 0x106002, 0x0000076 + +gUnk_08106078:: @ 08106078 + .incbin "baserom.gba", 0x106078, 0x0000018 + +gUnk_08106090:: @ 08106090 + .incbin "baserom.gba", 0x106090, 0x0000004 + +gUnk_08106094:: @ 08106094 + .incbin "baserom.gba", 0x106094, 0x0000018 + +gUnk_081060AC:: @ 081060AC + .incbin "baserom.gba", 0x1060AC, 0x0000018 + +gUnk_081060C4:: @ 081060C4 + .incbin "baserom.gba", 0x1060C4, 0x0000018 + +gUnk_081060DC:: @ 081060DC + .incbin "baserom.gba", 0x1060DC, 0x0000018 + +gUnk_081060F4:: @ 081060F4 + .incbin "baserom.gba", 0x1060F4, 0x0000018 + +gUnk_0810610C:: @ 0810610C + .incbin "baserom.gba", 0x10610C, 0x0000018 + +gUnk_08106124:: @ 08106124 + .incbin "baserom.gba", 0x106124, 0x0000018 + +gUnk_0810613C:: @ 0810613C + .incbin "baserom.gba", 0x10613C, 0x0000018 + +gUnk_08106154:: @ 08106154 + .incbin "baserom.gba", 0x106154, 0x0000018 + +gUnk_0810616C:: @ 0810616C + .incbin "baserom.gba", 0x10616C, 0x0000018 + +gUnk_08106184:: @ 08106184 + .incbin "baserom.gba", 0x106184, 0x0000018 + +gUnk_0810619C:: @ 0810619C + .incbin "baserom.gba", 0x10619C, 0x0000058 + +gUnk_081061F4:: @ 081061F4 + .incbin "baserom.gba", 0x1061F4, 0x0000018 + +gUnk_0810620C:: @ 0810620C + .incbin "baserom.gba", 0x10620C, 0x0000018 + +gUnk_08106224:: @ 08106224 + .incbin "baserom.gba", 0x106224, 0x0000018 + +gUnk_0810623C:: @ 0810623C + .incbin "baserom.gba", 0x10623C, 0x0000018 + +gUnk_08106254:: @ 08106254 + .incbin "baserom.gba", 0x106254, 0x0000018 + +gUnk_0810626C:: @ 0810626C + .incbin "baserom.gba", 0x10626C, 0x0000018 + +gUnk_08106284:: @ 08106284 + .incbin "baserom.gba", 0x106284, 0x0000018 + +gUnk_0810629C:: @ 0810629C + .incbin "baserom.gba", 0x10629C, 0x0000018 + +gUnk_081062B4:: @ 081062B4 + .incbin "baserom.gba", 0x1062B4, 0x0000018 + +gUnk_081062CC:: @ 081062CC + .incbin "baserom.gba", 0x1062CC, 0x0000040 + +gUnk_0810630C:: @ 0810630C + .incbin "baserom.gba", 0x10630C, 0x0000018 + +gUnk_08106324:: @ 08106324 + .incbin "baserom.gba", 0x106324, 0x0000018 + +gUnk_0810633C:: @ 0810633C + .incbin "baserom.gba", 0x10633C, 0x0000018 + +gUnk_08106354:: @ 08106354 + .incbin "baserom.gba", 0x106354, 0x0000018 + +gUnk_0810636C:: @ 0810636C + .incbin "baserom.gba", 0x10636C, 0x0000018 + +gUnk_08106384:: @ 08106384 + .incbin "baserom.gba", 0x106384, 0x0000018 + +gUnk_0810639C:: @ 0810639C + .incbin "baserom.gba", 0x10639C, 0x0000018 + +gUnk_081063B4:: @ 081063B4 + .incbin "baserom.gba", 0x1063B4, 0x0000018 + +gUnk_081063CC:: @ 081063CC + .incbin "baserom.gba", 0x1063CC, 0x0000018 + +gUnk_081063E4:: @ 081063E4 + .incbin "baserom.gba", 0x1063E4, 0x0000018 + +gUnk_081063FC:: @ 081063FC + .incbin "baserom.gba", 0x1063FC, 0x0000018 + +gUnk_08106414:: @ 08106414 + .incbin "baserom.gba", 0x106414, 0x0000018 + +gUnk_0810642C:: @ 0810642C + .incbin "baserom.gba", 0x10642C, 0x0000018 + +gUnk_08106444:: @ 08106444 + .incbin "baserom.gba", 0x106444, 0x0000018 + +gUnk_0810645C:: @ 0810645C + .incbin "baserom.gba", 0x10645C, 0x0000018 + +gUnk_08106474:: @ 08106474 + .incbin "baserom.gba", 0x106474, 0x0000018 + +gUnk_0810648C:: @ 0810648C + .incbin "baserom.gba", 0x10648C, 0x0000018 + +gUnk_081064A4:: @ 081064A4 + .incbin "baserom.gba", 0x1064A4, 0x0000018 + +gUnk_081064BC:: @ 081064BC + .incbin "baserom.gba", 0x1064BC, 0x0000018 + +gUnk_081064D4:: @ 081064D4 + .incbin "baserom.gba", 0x1064D4, 0x0000018 + +gUnk_081064EC:: @ 081064EC + .incbin "baserom.gba", 0x1064EC, 0x0000018 + +gUnk_08106504:: @ 08106504 + .incbin "baserom.gba", 0x106504, 0x0000018 + +gUnk_0810651C:: @ 0810651C + .incbin "baserom.gba", 0x10651C, 0x0000018 + +gUnk_08106534:: @ 08106534 + .incbin "baserom.gba", 0x106534, 0x0000018 + +gUnk_0810654C:: @ 0810654C + .incbin "baserom.gba", 0x10654C, 0x0000009 + +gUnk_08106555:: @ 08106555 + .incbin "baserom.gba", 0x106555, 0x000000F + +gUnk_08106564:: @ 08106564 + .incbin "baserom.gba", 0x106564, 0x0000001 + +gUnk_08106565:: @ 08106565 + .incbin "baserom.gba", 0x106565, 0x0000017 + +gUnk_0810657C:: @ 0810657C + .incbin "baserom.gba", 0x10657C, 0x0000018 + +gUnk_08106594:: @ 08106594 + .incbin "baserom.gba", 0x106594, 0x0000018 + +gUnk_081065AC:: @ 081065AC + .incbin "baserom.gba", 0x1065AC, 0x0000018 + +gUnk_081065C4:: @ 081065C4 + .incbin "baserom.gba", 0x1065C4, 0x0000018 + +gUnk_081065DC:: @ 081065DC + .incbin "baserom.gba", 0x1065DC, 0x0000018 + +gUnk_081065F4:: @ 081065F4 + .incbin "baserom.gba", 0x1065F4, 0x0000004 + +gUnk_081065F8:: @ 081065F8 + .incbin "baserom.gba", 0x1065F8, 0x0000014 + +gUnk_0810660C:: @ 0810660C + .incbin "baserom.gba", 0x10660C, 0x000000D + +gUnk_08106619:: @ 08106619 + .incbin "baserom.gba", 0x106619, 0x0000001 + +gUnk_0810661A:: @ 0810661A + .incbin "baserom.gba", 0x10661A, 0x000000A + +gUnk_08106624:: @ 08106624 + .incbin "baserom.gba", 0x106624, 0x0000018 + +gUnk_0810663C:: @ 0810663C + .incbin "baserom.gba", 0x10663C, 0x0000018 + +gUnk_08106654:: @ 08106654 + .incbin "baserom.gba", 0x106654, 0x0000018 + +gUnk_0810666C:: @ 0810666C + .incbin "baserom.gba", 0x10666C, 0x0000018 + +gUnk_08106684:: @ 08106684 + .incbin "baserom.gba", 0x106684, 0x0000018 + +gUnk_0810669C:: @ 0810669C + .incbin "baserom.gba", 0x10669C, 0x0000018 + +gUnk_081066B4:: @ 081066B4 + .incbin "baserom.gba", 0x1066B4, 0x0000018 + +gUnk_081066CC:: @ 081066CC + .incbin "baserom.gba", 0x1066CC, 0x0000018 + +gUnk_081066E4:: @ 081066E4 + .incbin "baserom.gba", 0x1066E4, 0x0000018 + +gUnk_081066FC:: @ 081066FC + .incbin "baserom.gba", 0x1066FC, 0x0000018 + +gUnk_08106714:: @ 08106714 + .incbin "baserom.gba", 0x106714, 0x0000018 + +gUnk_0810672C:: @ 0810672C + .incbin "baserom.gba", 0x10672C, 0x0000018 + +gUnk_08106744:: @ 08106744 + .incbin "baserom.gba", 0x106744, 0x0000018 + +gUnk_0810675C:: @ 0810675C + .incbin "baserom.gba", 0x10675C, 0x0000018 + +gUnk_08106774:: @ 08106774 + .incbin "baserom.gba", 0x106774, 0x0000018 + +gUnk_0810678C:: @ 0810678C + .incbin "baserom.gba", 0x10678C, 0x0000018 + +gUnk_081067A4:: @ 081067A4 + .incbin "baserom.gba", 0x1067A4, 0x0000018 + +gUnk_081067BC:: @ 081067BC + .incbin "baserom.gba", 0x1067BC, 0x0000018 + +gUnk_081067D4:: @ 081067D4 + .incbin "baserom.gba", 0x1067D4, 0x000002C + +gUnk_08106800:: @ 08106800 + .incbin "baserom.gba", 0x106800, 0x00000A0 + +gUnk_081068A0:: @ 081068A0 + .incbin "baserom.gba", 0x1068A0, 0x000000C + +gUnk_081068AC:: @ 081068AC + .incbin "baserom.gba", 0x1068AC, 0x0000004 + +gUnk_081068B0:: @ 081068B0 + .incbin "baserom.gba", 0x1068B0, 0x0000018 + +gUnk_081068C8:: @ 081068C8 + .incbin "baserom.gba", 0x1068C8, 0x0000018 + +gUnk_081068E0:: @ 081068E0 + .incbin "baserom.gba", 0x1068E0, 0x0000018 + +gUnk_081068F8:: @ 081068F8 + .incbin "baserom.gba", 0x1068F8, 0x0000020 + +gUnk_08106918:: @ 08106918 + .incbin "baserom.gba", 0x106918, 0x0000018 + +gUnk_08106930:: @ 08106930 + .incbin "baserom.gba", 0x106930, 0x0000018 + +gUnk_08106948:: @ 08106948 + .incbin "baserom.gba", 0x106948, 0x0000018 + +gUnk_08106960:: @ 08106960 + .incbin "baserom.gba", 0x106960, 0x0000018 + +gUnk_08106978:: @ 08106978 + .incbin "baserom.gba", 0x106978, 0x0000018 + +gUnk_08106990:: @ 08106990 + .incbin "baserom.gba", 0x106990, 0x0000018 + +gUnk_081069A8:: @ 081069A8 + .incbin "baserom.gba", 0x1069A8, 0x0000018 + +gUnk_081069C0:: @ 081069C0 + .incbin "baserom.gba", 0x1069C0, 0x0000040 + +gUnk_08106A00:: @ 08106A00 + .incbin "baserom.gba", 0x106A00, 0x0000018 + +gUnk_08106A18:: @ 08106A18 + .incbin "baserom.gba", 0x106A18, 0x0000004 + +gUnk_08106A1C:: @ 08106A1C + .incbin "baserom.gba", 0x106A1C, 0x0000018 + +gUnk_08106A34:: @ 08106A34 + .incbin "baserom.gba", 0x106A34, 0x0000018 + +gUnk_08106A4C:: @ 08106A4C + .incbin "baserom.gba", 0x106A4C, 0x0000018 + +gUnk_08106A64:: @ 08106A64 + .incbin "baserom.gba", 0x106A64, 0x0000018 + +gUnk_08106A7C:: @ 08106A7C + .incbin "baserom.gba", 0x106A7C, 0x0000018 + +gUnk_08106A94:: @ 08106A94 + .incbin "baserom.gba", 0x106A94, 0x0000018 + +gUnk_08106AAC:: @ 08106AAC + .incbin "baserom.gba", 0x106AAC, 0x0000018 + +gUnk_08106AC4:: @ 08106AC4 + .incbin "baserom.gba", 0x106AC4, 0x0000018 + +gUnk_08106ADC:: @ 08106ADC + .incbin "baserom.gba", 0x106ADC, 0x0000018 + +gUnk_08106AF4:: @ 08106AF4 + .incbin "baserom.gba", 0x106AF4, 0x0000018 + +gUnk_08106B0C:: @ 08106B0C + .incbin "baserom.gba", 0x106B0C, 0x0000018 + +gUnk_08106B24:: @ 08106B24 + .incbin "baserom.gba", 0x106B24, 0x0000018 + +gUnk_08106B3C:: @ 08106B3C + .incbin "baserom.gba", 0x106B3C, 0x0000018 + +gUnk_08106B54:: @ 08106B54 + .incbin "baserom.gba", 0x106B54, 0x0000018 + +gUnk_08106B6C:: @ 08106B6C + .incbin "baserom.gba", 0x106B6C, 0x0000018 + +gUnk_08106B84:: @ 08106B84 + .incbin "baserom.gba", 0x106B84, 0x0000018 + +gUnk_08106B9C:: @ 08106B9C + .incbin "baserom.gba", 0x106B9C, 0x0000018 + +gUnk_08106BB4:: @ 08106BB4 + .incbin "baserom.gba", 0x106BB4, 0x0000018 + +gUnk_08106BCC:: @ 08106BCC + .incbin "baserom.gba", 0x106BCC, 0x0000018 + +gUnk_08106BE4:: @ 08106BE4 + .incbin "baserom.gba", 0x106BE4, 0x0000018 + +gUnk_08106BFC:: @ 08106BFC + .incbin "baserom.gba", 0x106BFC, 0x0000004 + +gUnk_08106C00:: @ 08106C00 + .incbin "baserom.gba", 0x106C00, 0x0000004 + +gUnk_08106C04:: @ 08106C04 + .incbin "baserom.gba", 0x106C04, 0x0000003 + +gUnk_08106C07:: @ 08106C07 + .incbin "baserom.gba", 0x106C07, 0x000000D + +gUnk_08106C14:: @ 08106C14 + .incbin "baserom.gba", 0x106C14, 0x0000018 + +gUnk_08106C2C:: @ 08106C2C + .incbin "baserom.gba", 0x106C2C, 0x0000018 + +gUnk_08106C44:: @ 08106C44 + .incbin "baserom.gba", 0x106C44, 0x0000018 + +gUnk_08106C5C:: @ 08106C5C + .incbin "baserom.gba", 0x106C5C, 0x0000018 + +gUnk_08106C74:: @ 08106C74 + .incbin "baserom.gba", 0x106C74, 0x0000018 + +gUnk_08106C8C:: @ 08106C8C + .incbin "baserom.gba", 0x106C8C, 0x0000018 + +gUnk_08106CA4:: @ 08106CA4 + .incbin "baserom.gba", 0x106CA4, 0x0000018 + +gUnk_08106CBC:: @ 08106CBC + .incbin "baserom.gba", 0x106CBC, 0x0000018 + +gUnk_08106CD4:: @ 08106CD4 + .incbin "baserom.gba", 0x106CD4, 0x0000018 + +gUnk_08106CEC:: @ 08106CEC + .incbin "baserom.gba", 0x106CEC, 0x0000018 + +gUnk_08106D04:: @ 08106D04 + .incbin "baserom.gba", 0x106D04, 0x0000018 + +gUnk_08106D1C:: @ 08106D1C + .incbin "baserom.gba", 0x106D1C, 0x0000018 + +gUnk_08106D34:: @ 08106D34 + .incbin "baserom.gba", 0x106D34, 0x0000018 + +gUnk_08106D4C:: @ 08106D4C + .incbin "baserom.gba", 0x106D4C, 0x0000018 + +gUnk_08106D64:: @ 08106D64 + .incbin "baserom.gba", 0x106D64, 0x0000018 + +gUnk_08106D7C:: @ 08106D7C + .incbin "baserom.gba", 0x106D7C, 0x0000003 + +gUnk_08106D7F:: @ 08106D7F + .incbin "baserom.gba", 0x106D7F, 0x0000015 + +gUnk_08106D94:: @ 08106D94 + .incbin "baserom.gba", 0x106D94, 0x0000018 + +gUnk_08106DAC:: @ 08106DAC + .incbin "baserom.gba", 0x106DAC, 0x0000018 + +gUnk_08106DC4:: @ 08106DC4 + .incbin "baserom.gba", 0x106DC4, 0x0000018 + +gUnk_08106DDC:: @ 08106DDC + .incbin "baserom.gba", 0x106DDC, 0x0000018 + +gUnk_08106DF4:: @ 08106DF4 + .incbin "baserom.gba", 0x106DF4, 0x0000018 + +gUnk_08106E0C:: @ 08106E0C + .incbin "baserom.gba", 0x106E0C, 0x0000018 + +gUnk_08106E24:: @ 08106E24 + .incbin "baserom.gba", 0x106E24, 0x0000018 + +gUnk_08106E3C:: @ 08106E3C + .incbin "baserom.gba", 0x106E3C, 0x0000018 + +gUnk_08106E54:: @ 08106E54 + .incbin "baserom.gba", 0x106E54, 0x0000018 + +gUnk_08106E6C:: @ 08106E6C + .incbin "baserom.gba", 0x106E6C, 0x0000018 + +gUnk_08106E84:: @ 08106E84 + .incbin "baserom.gba", 0x106E84, 0x0000018 + +gUnk_08106E9C:: @ 08106E9C + .incbin "baserom.gba", 0x106E9C, 0x0000018 + +gUnk_08106EB4:: @ 08106EB4 + .incbin "baserom.gba", 0x106EB4, 0x0000018 + +gUnk_08106ECC:: @ 08106ECC + .incbin "baserom.gba", 0x106ECC, 0x0000018 + +gUnk_08106EE4:: @ 08106EE4 + .incbin "baserom.gba", 0x106EE4, 0x0000018 + +gUnk_08106EFC:: @ 08106EFC + .incbin "baserom.gba", 0x106EFC, 0x000000F + +gUnk_08106F0B:: @ 08106F0B + .incbin "baserom.gba", 0x106F0B, 0x0000009 + +gUnk_08106F14:: @ 08106F14 + .incbin "baserom.gba", 0x106F14, 0x0000018 + +gUnk_08106F2C:: @ 08106F2C + .incbin "baserom.gba", 0x106F2C, 0x0000018 + +gUnk_08106F44:: @ 08106F44 + .incbin "baserom.gba", 0x106F44, 0x0000018 + +gUnk_08106F5C:: @ 08106F5C + .incbin "baserom.gba", 0x106F5C, 0x0000018 + +gUnk_08106F74:: @ 08106F74 + .incbin "baserom.gba", 0x106F74, 0x0000018 + +gUnk_08106F8C:: @ 08106F8C + .incbin "baserom.gba", 0x106F8C, 0x0000018 + +gUnk_08106FA4:: @ 08106FA4 + .incbin "baserom.gba", 0x106FA4, 0x0000018 + +gUnk_08106FBC:: @ 08106FBC + .incbin "baserom.gba", 0x106FBC, 0x00000F0 + +gUnk_081070AC:: @ 081070AC + .incbin "baserom.gba", 0x1070AC, 0x0000018 + +gUnk_081070C4:: @ 081070C4 + .incbin "baserom.gba", 0x1070C4, 0x0000018 + +gUnk_081070DC:: @ 081070DC + .incbin "baserom.gba", 0x1070DC, 0x0000018 + +gUnk_081070F4:: @ 081070F4 + .incbin "baserom.gba", 0x1070F4, 0x0000018 + +gUnk_0810710C:: @ 0810710C + .incbin "baserom.gba", 0x10710C, 0x0000018 + +gUnk_08107124:: @ 08107124 + .incbin "baserom.gba", 0x107124, 0x0000018 + +gUnk_0810713C:: @ 0810713C + .incbin "baserom.gba", 0x10713C, 0x0000018 + +gUnk_08107154:: @ 08107154 + .incbin "baserom.gba", 0x107154, 0x0000018 + +gUnk_0810716C:: @ 0810716C + .incbin "baserom.gba", 0x10716C, 0x0000018 + +gUnk_08107184:: @ 08107184 + .incbin "baserom.gba", 0x107184, 0x0000024 + +gUnk_081071A8:: @ 081071A8 + .incbin "baserom.gba", 0x1071A8, 0x0000018 + +gUnk_081071C0:: @ 081071C0 + .incbin "baserom.gba", 0x1071C0, 0x0000004 + +gUnk_081071C4:: @ 081071C4 + .incbin "baserom.gba", 0x1071C4, 0x0000018 + +gUnk_081071DC:: @ 081071DC + .incbin "baserom.gba", 0x1071DC, 0x0000018 + +gUnk_081071F4:: @ 081071F4 + .incbin "baserom.gba", 0x1071F4, 0x0000018 + +gUnk_0810720C:: @ 0810720C + .incbin "baserom.gba", 0x10720C, 0x000000C + +gUnk_08107218:: @ 08107218 + .incbin "baserom.gba", 0x107218, 0x0000018 + +gUnk_08107230:: @ 08107230 + .incbin "baserom.gba", 0x107230, 0x0000018 + +gUnk_08107248:: @ 08107248 + .incbin "baserom.gba", 0x107248, 0x0000008 + +gUnk_08107250:: @ 08107250 + .incbin "baserom.gba", 0x107250, 0x0000018 + +gUnk_08107268:: @ 08107268 + .incbin "baserom.gba", 0x107268, 0x0000004 + +gUnk_0810726C:: @ 0810726C + .incbin "baserom.gba", 0x10726C, 0x0000018 + +gUnk_08107284:: @ 08107284 + .incbin "baserom.gba", 0x107284, 0x0000018 + +gUnk_0810729C:: @ 0810729C + .incbin "baserom.gba", 0x10729C, 0x0000018 + +gUnk_081072B4:: @ 081072B4 + .incbin "baserom.gba", 0x1072B4, 0x000000C + +gUnk_081072C0:: @ 081072C0 + .incbin "baserom.gba", 0x1072C0, 0x0000018 + +gUnk_081072D8:: @ 081072D8 + .incbin "baserom.gba", 0x1072D8, 0x0000018 + +gUnk_081072F0:: @ 081072F0 + .incbin "baserom.gba", 0x1072F0, 0x0000018 + +gUnk_08107308:: @ 08107308 + .incbin "baserom.gba", 0x107308, 0x0000002 + +gUnk_0810730A:: @ 0810730A + .incbin "baserom.gba", 0x10730A, 0x0000016 + +gUnk_08107320:: @ 08107320 + .incbin "baserom.gba", 0x107320, 0x0000018 + +gUnk_08107338:: @ 08107338 + .incbin "baserom.gba", 0x107338, 0x0000014 + +gUnk_0810734C:: @ 0810734C + .incbin "baserom.gba", 0x10734C, 0x0000018 + +gUnk_08107364:: @ 08107364 + .incbin "baserom.gba", 0x107364, 0x0000018 + +gUnk_0810737C:: @ 0810737C + .incbin "baserom.gba", 0x10737C, 0x0000008 + +gUnk_08107384:: @ 08107384 + .incbin "baserom.gba", 0x107384, 0x0000018 + +gUnk_0810739C:: @ 0810739C + .incbin "baserom.gba", 0x10739C, 0x0000018 + +gUnk_081073B4:: @ 081073B4 + .incbin "baserom.gba", 0x1073B4, 0x0000018 + +gUnk_081073CC:: @ 081073CC + .incbin "baserom.gba", 0x1073CC, 0x0000018 + +gUnk_081073E4:: @ 081073E4 + .incbin "baserom.gba", 0x1073E4, 0x0000018 + +gUnk_081073FC:: @ 081073FC + .incbin "baserom.gba", 0x1073FC, 0x0000018 + +gUnk_08107414:: @ 08107414 + .incbin "baserom.gba", 0x107414, 0x0000018 + +gUnk_0810742C:: @ 0810742C + .incbin "baserom.gba", 0x10742C, 0x0000018 + +gUnk_08107444:: @ 08107444 + .incbin "baserom.gba", 0x107444, 0x0000018 + +gUnk_0810745C:: @ 0810745C + .incbin "baserom.gba", 0x10745C, 0x0000018 + +gUnk_08107474:: @ 08107474 + .incbin "baserom.gba", 0x107474, 0x0000018 + +gUnk_0810748C:: @ 0810748C + .incbin "baserom.gba", 0x10748C, 0x0000018 + +gUnk_081074A4:: @ 081074A4 + .incbin "baserom.gba", 0x1074A4, 0x0000018 + +gUnk_081074BC:: @ 081074BC + .incbin "baserom.gba", 0x1074BC, 0x0000018 + +gUnk_081074D4:: @ 081074D4 + .incbin "baserom.gba", 0x1074D4, 0x0000018 + +gUnk_081074EC:: @ 081074EC + .incbin "baserom.gba", 0x1074EC, 0x0000018 + +gUnk_08107504:: @ 08107504 + .incbin "baserom.gba", 0x107504, 0x0000018 + +gUnk_0810751C:: @ 0810751C + .incbin "baserom.gba", 0x10751C, 0x0000018 + +gUnk_08107534:: @ 08107534 + .incbin "baserom.gba", 0x107534, 0x0000018 + +gUnk_0810754C:: @ 0810754C + .incbin "baserom.gba", 0x10754C, 0x0000018 + +gUnk_08107564:: @ 08107564 + .incbin "baserom.gba", 0x107564, 0x0000018 + +gUnk_0810757C:: @ 0810757C + .incbin "baserom.gba", 0x10757C, 0x0000018 + +gUnk_08107594:: @ 08107594 + .incbin "baserom.gba", 0x107594, 0x0000018 + +gUnk_081075AC:: @ 081075AC + .incbin "baserom.gba", 0x1075AC, 0x0000018 + +gUnk_081075C4:: @ 081075C4 + .incbin "baserom.gba", 0x1075C4, 0x0000060 + +gUnk_08107624:: @ 08107624 + .incbin "baserom.gba", 0x107624, 0x0000018 + +gUnk_0810763C:: @ 0810763C + .incbin "baserom.gba", 0x10763C, 0x0000018 + +gUnk_08107654:: @ 08107654 + .incbin "baserom.gba", 0x107654, 0x0000018 + +gUnk_0810766C:: @ 0810766C + .incbin "baserom.gba", 0x10766C, 0x0000018 + +gUnk_08107684:: @ 08107684 + .incbin "baserom.gba", 0x107684, 0x0000018 + +gUnk_0810769C:: @ 0810769C + .incbin "baserom.gba", 0x10769C, 0x0000018 + +gUnk_081076B4:: @ 081076B4 + .incbin "baserom.gba", 0x1076B4, 0x0000018 + +gUnk_081076CC:: @ 081076CC + .incbin "baserom.gba", 0x1076CC, 0x0000018 + +gUnk_081076E4:: @ 081076E4 + .incbin "baserom.gba", 0x1076E4, 0x0000018 + +gUnk_081076FC:: @ 081076FC + .incbin "baserom.gba", 0x1076FC, 0x0000016 + +gUnk_08107712:: @ 08107712 + .incbin "baserom.gba", 0x107712, 0x0000002 + +gUnk_08107714:: @ 08107714 + .incbin "baserom.gba", 0x107714, 0x0000028 + +gUnk_0810773C:: @ 0810773C + .incbin "baserom.gba", 0x10773C, 0x0000018 + +gUnk_08107754:: @ 08107754 + .incbin "baserom.gba", 0x107754, 0x0000018 + +gUnk_0810776C:: @ 0810776C + .incbin "baserom.gba", 0x10776C, 0x0000008 + +gUnk_08107774:: @ 08107774 + .incbin "baserom.gba", 0x107774, 0x0000018 + +gUnk_0810778C:: @ 0810778C + .incbin "baserom.gba", 0x10778C, 0x0000004 + +gUnk_08107790:: @ 08107790 + .incbin "baserom.gba", 0x107790, 0x0000018 + +gUnk_081077A8:: @ 081077A8 + .incbin "baserom.gba", 0x1077A8, 0x0000018 + +gUnk_081077C0:: @ 081077C0 + .incbin "baserom.gba", 0x1077C0, 0x0000018 + +gUnk_081077D8:: @ 081077D8 + .incbin "baserom.gba", 0x1077D8, 0x0000018 + +gUnk_081077F0:: @ 081077F0 + .incbin "baserom.gba", 0x1077F0, 0x0000018 + +gUnk_08107808:: @ 08107808 + .incbin "baserom.gba", 0x107808, 0x0000018 + +gUnk_08107820:: @ 08107820 + .incbin "baserom.gba", 0x107820, 0x0000018 + +gUnk_08107838:: @ 08107838 + .incbin "baserom.gba", 0x107838, 0x0000018 + +gUnk_08107850:: @ 08107850 + .incbin "baserom.gba", 0x107850, 0x000001E + +gUnk_0810786E:: @ 0810786E + .incbin "baserom.gba", 0x10786E, 0x0000002 + +gUnk_08107870:: @ 08107870 + .incbin "baserom.gba", 0x107870, 0x000001C + +gUnk_0810788C:: @ 0810788C + .incbin "baserom.gba", 0x10788C, 0x0000018 + +gUnk_081078A4:: @ 081078A4 + .incbin "baserom.gba", 0x1078A4, 0x0000004 + +gUnk_081078A8:: @ 081078A8 + .incbin "baserom.gba", 0x1078A8, 0x0000018 + +gUnk_081078C0:: @ 081078C0 + .incbin "baserom.gba", 0x1078C0, 0x0000004 + +gUnk_081078C4:: @ 081078C4 + .incbin "baserom.gba", 0x1078C4, 0x0000018 + +gUnk_081078DC:: @ 081078DC + .incbin "baserom.gba", 0x1078DC, 0x0000004 + +gUnk_081078E0:: @ 081078E0 + .incbin "baserom.gba", 0x1078E0, 0x0000018 + +gUnk_081078F8:: @ 081078F8 + .incbin "baserom.gba", 0x1078F8, 0x0000004 + +gUnk_081078FC:: @ 081078FC + .incbin "baserom.gba", 0x1078FC, 0x0000018 + +gUnk_08107914:: @ 08107914 + .incbin "baserom.gba", 0x107914, 0x0000004 + +gUnk_08107918:: @ 08107918 + .incbin "baserom.gba", 0x107918, 0x0000018 + +gUnk_08107930:: @ 08107930 + .incbin "baserom.gba", 0x107930, 0x0000004 + +gUnk_08107934:: @ 08107934 + .incbin "baserom.gba", 0x107934, 0x0000018 + +gUnk_0810794C:: @ 0810794C + .incbin "baserom.gba", 0x10794C, 0x0000004 + +gUnk_08107950:: @ 08107950 + .incbin "baserom.gba", 0x107950, 0x0000018 + +gUnk_08107968:: @ 08107968 + .incbin "baserom.gba", 0x107968, 0x0000004 + +gUnk_0810796C:: @ 0810796C + .incbin "baserom.gba", 0x10796C, 0x000000D + +gUnk_08107979:: @ 08107979 + .incbin "baserom.gba", 0x107979, 0x000000B + +gUnk_08107984:: @ 08107984 + .incbin "baserom.gba", 0x107984, 0x0000004 + +gUnk_08107988:: @ 08107988 + .incbin "baserom.gba", 0x107988, 0x0000015 + +gUnk_0810799D:: @ 0810799D + .incbin "baserom.gba", 0x10799D, 0x00001A4 + +gUnk_08107B41:: @ 08107B41 + .incbin "baserom.gba", 0x107B41, 0x000003A + +gUnk_08107B7B:: @ 08107B7B + .incbin "baserom.gba", 0x107B7B, 0x000004D + +gUnk_08107BC8:: @ 08107BC8 + .incbin "baserom.gba", 0x107BC8, 0x0000018 + +gUnk_08107BE0:: @ 08107BE0 + .incbin "baserom.gba", 0x107BE0, 0x0000014 + +gUnk_08107BF4:: @ 08107BF4 + .incbin "baserom.gba", 0x107BF4, 0x0000018 + +gUnk_08107C0C:: @ 08107C0C + .incbin "baserom.gba", 0x107C0C, 0x0000003 + +gUnk_08107C0F:: @ 08107C0F + .incbin "baserom.gba", 0x107C0F, 0x0000005 + +gUnk_08107C14:: @ 08107C14 + .incbin "baserom.gba", 0x107C14, 0x0000004 + +gUnk_08107C18:: @ 08107C18 + .incbin "baserom.gba", 0x107C18, 0x0000004 + +gUnk_08107C1C:: @ 08107C1C + .incbin "baserom.gba", 0x107C1C, 0x000000E + +gUnk_08107C2A:: @ 08107C2A + .incbin "baserom.gba", 0x107C2A, 0x0000006 + +gUnk_08107C30:: @ 08107C30 + .incbin "baserom.gba", 0x107C30, 0x0000010 + +gUnk_08107C40:: @ 08107C40 + .incbin "baserom.gba", 0x107C40, 0x0000008 + +gUnk_08107C48:: @ 08107C48 + .incbin "baserom.gba", 0x107C48, 0x0000014 + +gUnk_08107C5C:: @ 08107C5C + .incbin "baserom.gba", 0x107C5C, 0x0000010 + +gUnk_08107C6C:: @ 08107C6C + .incbin "baserom.gba", 0x107C6C, 0x0000004 + +gUnk_08107C70:: @ 08107C70 + .incbin "baserom.gba", 0x107C70, 0x0000008 + +gUnk_08107C78:: @ 08107C78 + .incbin "baserom.gba", 0x107C78, 0x0000008 + +gUnk_08107C80:: @ 08107C80 + .incbin "baserom.gba", 0x107C80, 0x0000018 + +gUnk_08107C98:: @ 08107C98 + .incbin "baserom.gba", 0x107C98, 0x0000028 + +gUnk_08107CC0:: @ 08107CC0 + .incbin "baserom.gba", 0x107CC0, 0x0000010 + +gUnk_08107CD0:: @ 08107CD0 + .incbin "baserom.gba", 0x107CD0, 0x0000010 + +gUnk_08107CE0:: @ 08107CE0 + .incbin "baserom.gba", 0x107CE0, 0x0000018 + +gUnk_08107CF8:: @ 08107CF8 + .incbin "baserom.gba", 0x107CF8, 0x000000A + +gUnk_08107D02:: @ 08107D02 + .incbin "baserom.gba", 0x107D02, 0x0000006 + +gUnk_08107D08:: @ 08107D08 + .incbin "baserom.gba", 0x107D08, 0x0000018 + +gUnk_08107D20:: @ 08107D20 + .incbin "baserom.gba", 0x107D20, 0x0000018 + +gUnk_08107D38:: @ 08107D38 + .incbin "baserom.gba", 0x107D38, 0x0000010 + +gUnk_08107D48:: @ 08107D48 + .incbin "baserom.gba", 0x107D48, 0x0000020 + +gUnk_08107D68:: @ 08107D68 + .incbin "baserom.gba", 0x107D68, 0x0000010 + +gUnk_08107D78:: @ 08107D78 + .incbin "baserom.gba", 0x107D78, 0x0000018 + +gUnk_08107D90:: @ 08107D90 + .incbin "baserom.gba", 0x107D90, 0x0000010 + +gUnk_08107DA0:: @ 08107DA0 + .incbin "baserom.gba", 0x107DA0, 0x0000020 + +gUnk_08107DC0:: @ 08107DC0 + .incbin "baserom.gba", 0x107DC0, 0x0000264 + +gUnk_08108024:: @ 08108024 + .incbin "baserom.gba", 0x108024, 0x0000010 + +gUnk_08108034:: @ 08108034 + .incbin "baserom.gba", 0x108034, 0x0000010 + +gUnk_08108044:: @ 08108044 + .incbin "baserom.gba", 0x108044, 0x000000C + +gUnk_08108050:: @ 08108050 + .incbin "baserom.gba", 0x108050, 0x000001E + +gUnk_0810806E:: @ 0810806E + .incbin "baserom.gba", 0x10806E, 0x0000036 + +gUnk_081080A4:: @ 081080A4 + .incbin "baserom.gba", 0x1080A4, 0x0000020 + +gUnk_081080C4:: @ 081080C4 + .incbin "baserom.gba", 0x1080C4, 0x0000043 + +gUnk_08108107:: @ 08108107 + .incbin "baserom.gba", 0x108107, 0x0000079 + +gUnk_08108180:: @ 08108180 + .incbin "baserom.gba", 0x108180, 0x0000064 + +gUnk_081081E4:: @ 081081E4 + .incbin "baserom.gba", 0x1081E4, 0x0000008 + +gUnk_081081EC:: @ 081081EC + .incbin "baserom.gba", 0x1081EC, 0x0000008 + +gUnk_081081F4:: @ 081081F4 + .incbin "baserom.gba", 0x1081F4, 0x0000014 + +gUnk_08108208:: @ 08108208 + .incbin "baserom.gba", 0x108208, 0x0000008 + +gUnk_08108210:: @ 08108210 + .incbin "baserom.gba", 0x108210, 0x000000C + +gUnk_0810821C:: @ 0810821C + .incbin "baserom.gba", 0x10821C, 0x000000C + +gUnk_08108228:: @ 08108228 + .incbin "baserom.gba", 0x108228, 0x0000030 + +gUnk_08108258:: @ 08108258 + .incbin "baserom.gba", 0x108258, 0x0000030 + +gUnk_08108288:: @ 08108288 + .incbin "baserom.gba", 0x108288, 0x0000030 + +gUnk_081082B8:: @ 081082B8 + .incbin "baserom.gba", 0x1082B8, 0x0000030 + +gUnk_081082E8:: @ 081082E8 + .incbin "baserom.gba", 0x1082E8, 0x0000018 + +gUnk_08108300:: @ 08108300 + .incbin "baserom.gba", 0x108300, 0x0000008 + +gUnk_08108308:: @ 08108308 + .incbin "baserom.gba", 0x108308, 0x000000C + +gUnk_08108314:: @ 08108314 + .incbin "baserom.gba", 0x108314, 0x0000040 + +gUnk_08108354:: @ 08108354 + .incbin "baserom.gba", 0x108354, 0x000002C + +gUnk_08108380:: @ 08108380 + .incbin "baserom.gba", 0x108380, 0x0000010 + +gUnk_08108390:: @ 08108390 + .incbin "baserom.gba", 0x108390, 0x0000008 + +gUnk_08108398:: @ 08108398 + .incbin "baserom.gba", 0x108398, 0x0000016 + +gUnk_081083AE:: @ 081083AE + .incbin "baserom.gba", 0x1083AE, 0x0000016 + +gUnk_081083C4:: @ 081083C4 + .incbin "baserom.gba", 0x1083C4, 0x0000016 + +gUnk_081083DA:: @ 081083DA + .incbin "baserom.gba", 0x1083DA, 0x0000018 + +gUnk_081083F2:: @ 081083F2 + .incbin "baserom.gba", 0x1083F2, 0x0000016 + +gUnk_08108408:: @ 08108408 + .incbin "baserom.gba", 0x108408, 0x000003C + +gUnk_08108444:: @ 08108444 + .incbin "baserom.gba", 0x108444, 0x0000024 + +gUnk_08108468:: @ 08108468 + .incbin "baserom.gba", 0x108468, 0x0000026 + +gUnk_0810848E:: @ 0810848E + .incbin "baserom.gba", 0x10848E, 0x0000035 + +gUnk_081084C3:: @ 081084C3 + .incbin "baserom.gba", 0x1084C3, 0x0000005 + +gUnk_081084C8:: @ 081084C8 + .incbin "baserom.gba", 0x1084C8, 0x000004A + +gUnk_08108512:: @ 08108512 + .incbin "baserom.gba", 0x108512, 0x000001E + +gUnk_08108530:: @ 08108530 + .incbin "baserom.gba", 0x108530, 0x0000058 + +gUnk_08108588:: @ 08108588 + .incbin "baserom.gba", 0x108588, 0x0000012 + +gUnk_0810859A:: @ 0810859A + .incbin "baserom.gba", 0x10859A, 0x000000A + +gUnk_081085A4:: @ 081085A4 + .incbin "baserom.gba", 0x1085A4, 0x0000014 + +gUnk_081085B8:: @ 081085B8 + .incbin "baserom.gba", 0x1085B8, 0x0000020 + +gUnk_081085D8:: @ 081085D8 + .incbin "baserom.gba", 0x1085D8, 0x0000020 + +gUnk_081085F8:: @ 081085F8 + .incbin "baserom.gba", 0x1085F8, 0x0000014 + +gUnk_0810860C:: @ 0810860C + .incbin "baserom.gba", 0x10860C, 0x0000014 + +gUnk_08108620:: @ 08108620 + .incbin "baserom.gba", 0x108620, 0x0000018 + +gUnk_08108638:: @ 08108638 + .incbin "baserom.gba", 0x108638, 0x0000010 + +gUnk_08108648:: @ 08108648 + .incbin "baserom.gba", 0x108648, 0x000000C + +gUnk_08108654:: @ 08108654 + .incbin "baserom.gba", 0x108654, 0x0000008 + +gUnk_0810865C:: @ 0810865C + .incbin "baserom.gba", 0x10865C, 0x000000C + +gUnk_08108668:: @ 08108668 + .incbin "baserom.gba", 0x108668, 0x0000008 + +gUnk_08108670:: @ 08108670 + .incbin "baserom.gba", 0x108670, 0x000000C + +gUnk_0810867C:: @ 0810867C + .incbin "baserom.gba", 0x10867C, 0x000000C + +gUnk_08108688:: @ 08108688 + .incbin "baserom.gba", 0x108688, 0x000000C + +gUnk_08108694:: @ 08108694 + .incbin "baserom.gba", 0x108694, 0x000000C + +gUnk_081086A0:: @ 081086A0 + .incbin "baserom.gba", 0x1086A0, 0x0000009 + +gUnk_081086A9:: @ 081086A9 + .incbin "baserom.gba", 0x1086A9, 0x0000003 + +gUnk_081086AC:: @ 081086AC + .incbin "baserom.gba", 0x1086AC, 0x000000C + +gUnk_081086B8:: @ 081086B8 + .incbin "baserom.gba", 0x1086B8, 0x000000C + +gUnk_081086C4:: @ 081086C4 + .incbin "baserom.gba", 0x1086C4, 0x000000C + +gUnk_081086D0:: @ 081086D0 + .incbin "baserom.gba", 0x1086D0, 0x0000001 + +gUnk_081086D1:: @ 081086D1 + .incbin "baserom.gba", 0x1086D1, 0x000000B + +gUnk_081086DC:: @ 081086DC + .incbin "baserom.gba", 0x1086DC, 0x0000008 + +gUnk_081086E4:: @ 081086E4 + .incbin "baserom.gba", 0x1086E4, 0x0000008 + +gUnk_081086EC:: @ 081086EC + .incbin "baserom.gba", 0x1086EC, 0x0000008 + +gUnk_081086F4:: @ 081086F4 + .incbin "baserom.gba", 0x1086F4, 0x0000008 + +gUnk_081086FC:: @ 081086FC + .incbin "baserom.gba", 0x1086FC, 0x0000008 + +gUnk_08108704:: @ 08108704 + .incbin "baserom.gba", 0x108704, 0x0000003 + +gUnk_08108707:: @ 08108707 + .incbin "baserom.gba", 0x108707, 0x0000005 + +gUnk_0810870C:: @ 0810870C + .incbin "baserom.gba", 0x10870C, 0x0000008 + +gUnk_08108714:: @ 08108714 + .incbin "baserom.gba", 0x108714, 0x0000008 + +gUnk_0810871C:: @ 0810871C + .incbin "baserom.gba", 0x10871C, 0x0000008 + +gUnk_08108724:: @ 08108724 + .incbin "baserom.gba", 0x108724, 0x0000008 + +gUnk_0810872C:: @ 0810872C + .incbin "baserom.gba", 0x10872C, 0x0000008 + +gUnk_08108734:: @ 08108734 + .incbin "baserom.gba", 0x108734, 0x0000008 + +gUnk_0810873C:: @ 0810873C + .incbin "baserom.gba", 0x10873C, 0x0000008 + +gUnk_08108744:: @ 08108744 + .incbin "baserom.gba", 0x108744, 0x0000006 + +gUnk_0810874A:: @ 0810874A + .incbin "baserom.gba", 0x10874A, 0x0000002 + +gUnk_0810874C:: @ 0810874C + .incbin "baserom.gba", 0x10874C, 0x0000008 + +gUnk_08108754:: @ 08108754 + .incbin "baserom.gba", 0x108754, 0x0000008 + +gUnk_0810875C:: @ 0810875C + .incbin "baserom.gba", 0x10875C, 0x0000002 + +gUnk_0810875E:: @ 0810875E + .incbin "baserom.gba", 0x10875E, 0x0000006 + +gUnk_08108764:: @ 08108764 + .incbin "baserom.gba", 0x108764, 0x00000AF + +gUnk_08108813:: @ 08108813 + .incbin "baserom.gba", 0x108813, 0x0000031 + +gUnk_08108844:: @ 08108844 + .incbin "baserom.gba", 0x108844, 0x0000020 + +gUnk_08108864:: @ 08108864 + .incbin "baserom.gba", 0x108864, 0x0000237 + +gUnk_08108A9B:: @ 08108A9B + .incbin "baserom.gba", 0x108A9B, 0x0000177 + +gUnk_08108C12:: @ 08108C12 + .incbin "baserom.gba", 0x108C12, 0x0000016 + +gUnk_08108C28:: @ 08108C28 + .incbin "baserom.gba", 0x108C28, 0x000001C + +gUnk_08108C44:: @ 08108C44 + .incbin "baserom.gba", 0x108C44, 0x0000010 + +gUnk_08108C54:: @ 08108C54 + .incbin "baserom.gba", 0x108C54, 0x0000008 + +gUnk_08108C5C:: @ 08108C5C + .incbin "baserom.gba", 0x108C5C, 0x0000008 + +gUnk_08108C64:: @ 08108C64 + .incbin "baserom.gba", 0x108C64, 0x0000008 + +gUnk_08108C6C:: @ 08108C6C + .incbin "baserom.gba", 0x108C6C, 0x000000B + +gUnk_08108C77:: @ 08108C77 + .incbin "baserom.gba", 0x108C77, 0x0000005 + +gUnk_08108C7C:: @ 08108C7C + .incbin "baserom.gba", 0x108C7C, 0x0000004 + +gUnk_08108C80:: @ 08108C80 + .incbin "baserom.gba", 0x108C80, 0x0000008 + +gUnk_08108C88:: @ 08108C88 + .incbin "baserom.gba", 0x108C88, 0x0000004 + +gUnk_08108C8C:: @ 08108C8C + .incbin "baserom.gba", 0x108C8C, 0x0000008 + +gUnk_08108C94:: @ 08108C94 + .incbin "baserom.gba", 0x108C94, 0x0000008 + +gUnk_08108C9C:: @ 08108C9C + .incbin "baserom.gba", 0x108C9C, 0x000000C + +gUnk_08108CA8:: @ 08108CA8 + .incbin "baserom.gba", 0x108CA8, 0x0000024 + +gUnk_08108CCC:: @ 08108CCC + .incbin "baserom.gba", 0x108CCC, 0x0000010 + +gUnk_08108CDC:: @ 08108CDC + .incbin "baserom.gba", 0x108CDC, 0x000000C + +gUnk_08108CE8:: @ 08108CE8 + .incbin "baserom.gba", 0x108CE8, 0x0000014 + +gUnk_08108CFC:: @ 08108CFC + .incbin "baserom.gba", 0x108CFC, 0x0000008 + +gUnk_08108D04:: @ 08108D04 + .incbin "baserom.gba", 0x108D04, 0x000000C + +gUnk_08108D10:: @ 08108D10 + .incbin "baserom.gba", 0x108D10, 0x000000C + +gUnk_08108D1C:: @ 08108D1C + .incbin "baserom.gba", 0x108D1C, 0x0000004 + +gUnk_08108D20:: @ 08108D20 + .incbin "baserom.gba", 0x108D20, 0x0000008 + +gUnk_08108D28:: @ 08108D28 + .incbin "baserom.gba", 0x108D28, 0x0000008 + +gUnk_08108D30:: @ 08108D30 + .incbin "baserom.gba", 0x108D30, 0x000000C + +gUnk_08108D3C:: @ 08108D3C + .incbin "baserom.gba", 0x108D3C, 0x0000008 + +gUnk_08108D44:: @ 08108D44 + .incbin "baserom.gba", 0x108D44, 0x000000C + +gUnk_08108D50:: @ 08108D50 + .incbin "baserom.gba", 0x108D50, 0x000000C + +gUnk_08108D5C:: @ 08108D5C + .incbin "baserom.gba", 0x108D5C, 0x0000018 + +gUnk_08108D74:: @ 08108D74 + .incbin "baserom.gba", 0x108D74, 0x0000008 + +gUnk_08108D7C:: @ 08108D7C + .incbin "baserom.gba", 0x108D7C, 0x0000010 + +gUnk_08108D8C:: @ 08108D8C + .incbin "baserom.gba", 0x108D8C, 0x000000B + +gUnk_08108D97:: @ 08108D97 + .incbin "baserom.gba", 0x108D97, 0x0000001 + +gUnk_08108D98:: @ 08108D98 + .incbin "baserom.gba", 0x108D98, 0x0000010 + +gUnk_08108DA8:: @ 08108DA8 + .incbin "baserom.gba", 0x108DA8, 0x0000014 + +gUnk_08108DBC:: @ 08108DBC + .incbin "baserom.gba", 0x108DBC, 0x0000008 + +gUnk_08108DC4:: @ 08108DC4 + .incbin "baserom.gba", 0x108DC4, 0x0000014 + +gUnk_08108DD8:: @ 08108DD8 + .incbin "baserom.gba", 0x108DD8, 0x0000008 + +gUnk_08108DE0:: @ 08108DE0 + .incbin "baserom.gba", 0x108DE0, 0x0000008 + +gUnk_08108DE8:: @ 08108DE8 + .incbin "baserom.gba", 0x108DE8, 0x0000040 + +gUnk_08108E28:: @ 08108E28 + .incbin "baserom.gba", 0x108E28, 0x0000008 + +gUnk_08108E30:: @ 08108E30 + .incbin "baserom.gba", 0x108E30, 0x0000018 + +gUnk_08108E48:: @ 08108E48 + .incbin "baserom.gba", 0x108E48, 0x0000002 + +gUnk_08108E4A:: @ 08108E4A + .incbin "baserom.gba", 0x108E4A, 0x0000016 + +gUnk_08108E60:: @ 08108E60 + .incbin "baserom.gba", 0x108E60, 0x000000C + +gUnk_08108E6C:: @ 08108E6C + .incbin "baserom.gba", 0x108E6C, 0x000000C + +gUnk_08108E78:: @ 08108E78 + .incbin "baserom.gba", 0x108E78, 0x0000018 + +gUnk_08108E90:: @ 08108E90 + .incbin "baserom.gba", 0x108E90, 0x0000008 + +gUnk_08108E98:: @ 08108E98 + .incbin "baserom.gba", 0x108E98, 0x000000C + +gUnk_08108EA4:: @ 08108EA4 + .incbin "baserom.gba", 0x108EA4, 0x0000018 + +gUnk_08108EBC:: @ 08108EBC + .incbin "baserom.gba", 0x108EBC, 0x0000008 + +gUnk_08108EC4:: @ 08108EC4 + .incbin "baserom.gba", 0x108EC4, 0x000000C + +gUnk_08108ED0:: @ 08108ED0 + .incbin "baserom.gba", 0x108ED0, 0x0000018 + +gUnk_08108EE8:: @ 08108EE8 + .incbin "baserom.gba", 0x108EE8, 0x0000008 + +gUnk_08108EF0:: @ 08108EF0 + .incbin "baserom.gba", 0x108EF0, 0x000000C + +gUnk_08108EFC:: @ 08108EFC + .incbin "baserom.gba", 0x108EFC, 0x0000018 + +gUnk_08108F14:: @ 08108F14 + .incbin "baserom.gba", 0x108F14, 0x0000008 + +gUnk_08108F1C:: @ 08108F1C + .incbin "baserom.gba", 0x108F1C, 0x000000C + +gUnk_08108F28:: @ 08108F28 + .incbin "baserom.gba", 0x108F28, 0x0000018 + +gUnk_08108F40:: @ 08108F40 + .incbin "baserom.gba", 0x108F40, 0x0000008 + +gUnk_08108F48:: @ 08108F48 + .incbin "baserom.gba", 0x108F48, 0x0000004 + +gUnk_08108F4C:: @ 08108F4C + .incbin "baserom.gba", 0x108F4C, 0x0000008 + +gUnk_08108F54:: @ 08108F54 + .incbin "baserom.gba", 0x108F54, 0x0000018 + +gUnk_08108F6C:: @ 08108F6C + .incbin "baserom.gba", 0x108F6C, 0x0000008 + +gUnk_08108F74:: @ 08108F74 + .incbin "baserom.gba", 0x108F74, 0x000000C + +gUnk_08108F80:: @ 08108F80 + .incbin "baserom.gba", 0x108F80, 0x0000018 + +gUnk_08108F98:: @ 08108F98 + .incbin "baserom.gba", 0x108F98, 0x0000008 + +gUnk_08108FA0:: @ 08108FA0 + .incbin "baserom.gba", 0x108FA0, 0x000000C + +gUnk_08108FAC:: @ 08108FAC + .incbin "baserom.gba", 0x108FAC, 0x0000018 + +gUnk_08108FC4:: @ 08108FC4 + .incbin "baserom.gba", 0x108FC4, 0x0000008 + +gUnk_08108FCC:: @ 08108FCC + .incbin "baserom.gba", 0x108FCC, 0x000000C + +gUnk_08108FD8:: @ 08108FD8 + .incbin "baserom.gba", 0x108FD8, 0x0000018 + +gUnk_08108FF0:: @ 08108FF0 + .incbin "baserom.gba", 0x108FF0, 0x0000008 + +gUnk_08108FF8:: @ 08108FF8 + .incbin "baserom.gba", 0x108FF8, 0x000000C + +gUnk_08109004:: @ 08109004 + .incbin "baserom.gba", 0x109004, 0x0000001 + +gUnk_08109005:: @ 08109005 + .incbin "baserom.gba", 0x109005, 0x0000014 + +gUnk_08109019:: @ 08109019 + .incbin "baserom.gba", 0x109019, 0x0000003 + +gUnk_0810901C:: @ 0810901C + .incbin "baserom.gba", 0x10901C, 0x0000008 + +gUnk_08109024:: @ 08109024 + .incbin "baserom.gba", 0x109024, 0x000000C + +gUnk_08109030:: @ 08109030 + .incbin "baserom.gba", 0x109030, 0x0000003 + +gUnk_08109033:: @ 08109033 + .incbin "baserom.gba", 0x109033, 0x0000015 + +gUnk_08109048:: @ 08109048 + .incbin "baserom.gba", 0x109048, 0x0000008 + +gUnk_08109050:: @ 08109050 + .incbin "baserom.gba", 0x109050, 0x000000C + +gUnk_0810905C:: @ 0810905C + .incbin "baserom.gba", 0x10905C, 0x0000018 + +gUnk_08109074:: @ 08109074 + .incbin "baserom.gba", 0x109074, 0x0000008 + +gUnk_0810907C:: @ 0810907C + .incbin "baserom.gba", 0x10907C, 0x000000C + +gUnk_08109088:: @ 08109088 + .incbin "baserom.gba", 0x109088, 0x0000018 + +gUnk_081090A0:: @ 081090A0 + .incbin "baserom.gba", 0x1090A0, 0x0000008 + +gUnk_081090A8:: @ 081090A8 + .incbin "baserom.gba", 0x1090A8, 0x000000C + +gUnk_081090B4:: @ 081090B4 + .incbin "baserom.gba", 0x1090B4, 0x0000018 + +gUnk_081090CC:: @ 081090CC + .incbin "baserom.gba", 0x1090CC, 0x0000008 + +gUnk_081090D4:: @ 081090D4 + .incbin "baserom.gba", 0x1090D4, 0x000000C + +gUnk_081090E0:: @ 081090E0 + .incbin "baserom.gba", 0x1090E0, 0x0000018 + +gUnk_081090F8:: @ 081090F8 + .incbin "baserom.gba", 0x1090F8, 0x0000008 + +gUnk_08109100:: @ 08109100 + .incbin "baserom.gba", 0x109100, 0x000000C + +gUnk_0810910C:: @ 0810910C + .incbin "baserom.gba", 0x10910C, 0x0000018 + +gUnk_08109124:: @ 08109124 + .incbin "baserom.gba", 0x109124, 0x0000008 + +gUnk_0810912C:: @ 0810912C + .incbin "baserom.gba", 0x10912C, 0x000000C + +gUnk_08109138:: @ 08109138 + .incbin "baserom.gba", 0x109138, 0x0000008 + +gUnk_08109140:: @ 08109140 + .incbin "baserom.gba", 0x109140, 0x0000018 + +gUnk_08109158:: @ 08109158 + .incbin "baserom.gba", 0x109158, 0x0000008 + +gUnk_08109160:: @ 08109160 + .incbin "baserom.gba", 0x109160, 0x0000018 + +gUnk_08109178:: @ 08109178 + .incbin "baserom.gba", 0x109178, 0x0000008 + +gUnk_08109180:: @ 08109180 + .incbin "baserom.gba", 0x109180, 0x000000C + +gUnk_0810918C:: @ 0810918C + .incbin "baserom.gba", 0x10918C, 0x0000008 + +gUnk_08109194:: @ 08109194 + .incbin "baserom.gba", 0x109194, 0x0000009 + +gUnk_0810919D:: @ 0810919D + .incbin "baserom.gba", 0x10919D, 0x0000047 + +gUnk_081091E4:: @ 081091E4 + .incbin "baserom.gba", 0x1091E4, 0x000000A + +gUnk_081091EE:: @ 081091EE + .incbin "baserom.gba", 0x1091EE, 0x000000A + +gUnk_081091F8:: @ 081091F8 + .incbin "baserom.gba", 0x1091F8, 0x000000A + +gUnk_08109202:: @ 08109202 + .incbin "baserom.gba", 0x109202, 0x0000012 + +gUnk_08109214:: @ 08109214 + .incbin "baserom.gba", 0x109214, 0x000001C + +gUnk_08109230:: @ 08109230 + .incbin "baserom.gba", 0x109230, 0x0000014 + +gUnk_08109244:: @ 08109244 + .incbin "baserom.gba", 0x109244, 0x0000004 + +gUnk_08109248:: @ 08109248 + .incbin "baserom.gba", 0x109248, 0x0000024 + +gUnk_0810926C:: @ 0810926C + .incbin "baserom.gba", 0x10926C, 0x0000040 + +gUnk_081092AC:: @ 081092AC + .incbin "baserom.gba", 0x1092AC, 0x0000028 + +gUnk_081092D4:: @ 081092D4 + .incbin "baserom.gba", 0x1092D4, 0x000002F + +gUnk_08109303:: @ 08109303 + .incbin "baserom.gba", 0x109303, 0x000005E + +gUnk_08109361:: @ 08109361 + .incbin "baserom.gba", 0x109361, 0x00000A5 + +gUnk_08109406:: @ 08109406 + .incbin "baserom.gba", 0x109406, 0x0000028 + +gUnk_0810942E:: @ 0810942E + .incbin "baserom.gba", 0x10942E, 0x00000A0 + +gUnk_081094CE:: @ 081094CE + .incbin "baserom.gba", 0x1094CE, 0x00000FB + +gUnk_081095C9:: @ 081095C9 + .incbin "baserom.gba", 0x1095C9, 0x000014C + +gUnk_08109715:: @ 08109715 + .incbin "baserom.gba", 0x109715, 0x0000063 + +gUnk_08109778:: @ 08109778 + .incbin "baserom.gba", 0x109778, 0x0000005 + +gUnk_0810977D:: @ 0810977D + .incbin "baserom.gba", 0x10977D, 0x0000017 + +gUnk_08109794:: @ 08109794 + .incbin "baserom.gba", 0x109794, 0x0000104 + +gUnk_08109898:: @ 08109898 + .incbin "baserom.gba", 0x109898, 0x000000F + +gUnk_081098A7:: @ 081098A7 + .incbin "baserom.gba", 0x1098A7, 0x000005F + +gUnk_08109906:: @ 08109906 + .incbin "baserom.gba", 0x109906, 0x000012A + +gUnk_08109A30:: @ 08109A30 + .incbin "baserom.gba", 0x109A30, 0x0000028 + +gUnk_08109A58:: @ 08109A58 + .incbin "baserom.gba", 0x109A58, 0x0000010 + +gUnk_08109A68:: @ 08109A68 + .incbin "baserom.gba", 0x109A68, 0x0000010 + +gUnk_08109A78:: @ 08109A78 + .incbin "baserom.gba", 0x109A78, 0x0000010 + +gUnk_08109A88:: @ 08109A88 + .incbin "baserom.gba", 0x109A88, 0x0000010 + +gUnk_08109A98:: @ 08109A98 + .incbin "baserom.gba", 0x109A98, 0x0000006 + +gUnk_08109A9E:: @ 08109A9E + .incbin "baserom.gba", 0x109A9E, 0x000000A + +gUnk_08109AA8:: @ 08109AA8 + .incbin "baserom.gba", 0x109AA8, 0x0000010 + +gUnk_08109AB8:: @ 08109AB8 + .incbin "baserom.gba", 0x109AB8, 0x0000010 + +gUnk_08109AC8:: @ 08109AC8 + .incbin "baserom.gba", 0x109AC8, 0x0000008 + +gUnk_08109AD0:: @ 08109AD0 + .incbin "baserom.gba", 0x109AD0, 0x0000008 + +gUnk_08109AD8:: @ 08109AD8 + .incbin "baserom.gba", 0x109AD8, 0x0000005 + +gUnk_08109ADD:: @ 08109ADD + .incbin "baserom.gba", 0x109ADD, 0x0000005 + +gUnk_08109AE2:: @ 08109AE2 + .incbin "baserom.gba", 0x109AE2, 0x0000005 + +gUnk_08109AE7:: @ 08109AE7 + .incbin "baserom.gba", 0x109AE7, 0x0000005 + +gUnk_08109AEC:: @ 08109AEC + .incbin "baserom.gba", 0x109AEC, 0x0000011 + +gUnk_08109AFD:: @ 08109AFD + .incbin "baserom.gba", 0x109AFD, 0x000000B + +gUnk_08109B08:: @ 08109B08 + .incbin "baserom.gba", 0x109B08, 0x0000006 + +gUnk_08109B0E:: @ 08109B0E + .incbin "baserom.gba", 0x109B0E, 0x000002D + +gUnk_08109B3B:: @ 08109B3B + .incbin "baserom.gba", 0x109B3B, 0x0000025 + +gUnk_08109B60:: @ 08109B60 + .incbin "baserom.gba", 0x109B60, 0x0000020 + +gUnk_08109B80:: @ 08109B80 + .incbin "baserom.gba", 0x109B80, 0x000003C + +gUnk_08109BBC:: @ 08109BBC + .incbin "baserom.gba", 0x109BBC, 0x000000C + +gUnk_08109BC8:: @ 08109BC8 + .incbin "baserom.gba", 0x109BC8, 0x0000005 + +gUnk_08109BCD:: @ 08109BCD + .incbin "baserom.gba", 0x109BCD, 0x0000005 + +gUnk_08109BD2:: @ 08109BD2 + .incbin "baserom.gba", 0x109BD2, 0x0000005 + +gUnk_08109BD7:: @ 08109BD7 + .incbin "baserom.gba", 0x109BD7, 0x0000011 + +gUnk_08109BE8:: @ 08109BE8 + .incbin "baserom.gba", 0x109BE8, 0x0000011 + +gUnk_08109BF9:: @ 08109BF9 + .incbin "baserom.gba", 0x109BF9, 0x0000035 + +gUnk_08109C2E:: @ 08109C2E + .incbin "baserom.gba", 0x109C2E, 0x000001D + +gUnk_08109C4B:: @ 08109C4B + .incbin "baserom.gba", 0x109C4B, 0x0000009 + +gUnk_08109C54:: @ 08109C54 + .incbin "baserom.gba", 0x109C54, 0x0000005 + +gUnk_08109C59:: @ 08109C59 + .incbin "baserom.gba", 0x109C59, 0x0000007 + +gUnk_08109C60:: @ 08109C60 + .incbin "baserom.gba", 0x109C60, 0x0000038 + +gUnk_08109C98:: @ 08109C98 + .incbin "baserom.gba", 0x109C98, 0x0000080 + +gUnk_08109D18:: @ 08109D18 + .incbin "baserom.gba", 0x109D18, 0x0000063 + +gUnk_08109D7B:: @ 08109D7B + .incbin "baserom.gba", 0x109D7B, 0x000002E + +gUnk_08109DA9:: @ 08109DA9 + .incbin "baserom.gba", 0x109DA9, 0x000001F + +gUnk_08109DC8:: @ 08109DC8 + .incbin "baserom.gba", 0x109DC8, 0x000003F + +gUnk_08109E07:: @ 08109E07 + .incbin "baserom.gba", 0x109E07, 0x000010E + +gUnk_08109F15:: @ 08109F15 + .incbin "baserom.gba", 0x109F15, 0x0000052 + +gUnk_08109F67:: @ 08109F67 + .incbin "baserom.gba", 0x109F67, 0x0000005 + +gUnk_08109F6C:: @ 08109F6C + .incbin "baserom.gba", 0x109F6C, 0x000002B + +gUnk_08109F97:: @ 08109F97 + .incbin "baserom.gba", 0x109F97, 0x00000B1 + +gUnk_0810A048:: @ 0810A048 + .incbin "baserom.gba", 0x10A048, 0x0000111 + +gUnk_0810A159:: @ 0810A159 + .incbin "baserom.gba", 0x10A159, 0x0000048 + +gUnk_0810A1A1:: @ 0810A1A1 + .incbin "baserom.gba", 0x10A1A1, 0x00001A7 + +gUnk_0810A348:: @ 0810A348 + .incbin "baserom.gba", 0x10A348, 0x000000C + +gUnk_0810A354:: @ 0810A354 + .incbin "baserom.gba", 0x10A354, 0x0000006 + +gUnk_0810A35A:: @ 0810A35A + .incbin "baserom.gba", 0x10A35A, 0x0000008 + +gUnk_0810A362:: @ 0810A362 + .incbin "baserom.gba", 0x10A362, 0x0000008 + +gUnk_0810A36A:: @ 0810A36A + .incbin "baserom.gba", 0x10A36A, 0x0000005 + +gUnk_0810A36F:: @ 0810A36F + .incbin "baserom.gba", 0x10A36F, 0x0000005 + +gUnk_0810A374:: @ 0810A374 + .incbin "baserom.gba", 0x10A374, 0x0000005 + +gUnk_0810A379:: @ 0810A379 + .incbin "baserom.gba", 0x10A379, 0x0000001 + +gUnk_0810A37A:: @ 0810A37A + .incbin "baserom.gba", 0x10A37A, 0x0000004 + +gUnk_0810A37E:: @ 0810A37E + .incbin "baserom.gba", 0x10A37E, 0x0000021 + +gUnk_0810A39F:: @ 0810A39F + .incbin "baserom.gba", 0x10A39F, 0x0000021 + +gUnk_0810A3C0:: @ 0810A3C0 + .incbin "baserom.gba", 0x10A3C0, 0x0000021 + +gUnk_0810A3E1:: @ 0810A3E1 + .incbin "baserom.gba", 0x10A3E1, 0x000001F + +gUnk_0810A400:: @ 0810A400 + .incbin "baserom.gba", 0x10A400, 0x0000002 + +gUnk_0810A402:: @ 0810A402 + .incbin "baserom.gba", 0x10A402, 0x0000005 + +gUnk_0810A407:: @ 0810A407 + .incbin "baserom.gba", 0x10A407, 0x0000001 + +gUnk_0810A408:: @ 0810A408 + .incbin "baserom.gba", 0x10A408, 0x0000004 + +gUnk_0810A40C:: @ 0810A40C + .incbin "baserom.gba", 0x10A40C, 0x0000005 + +gUnk_0810A411:: @ 0810A411 + .incbin "baserom.gba", 0x10A411, 0x0000005 + +gUnk_0810A416:: @ 0810A416 + .incbin "baserom.gba", 0x10A416, 0x000000D + +gUnk_0810A423:: @ 0810A423 + .incbin "baserom.gba", 0x10A423, 0x000000D + +gUnk_0810A430:: @ 0810A430 + .incbin "baserom.gba", 0x10A430, 0x000000D + +gUnk_0810A43D:: @ 0810A43D + .incbin "baserom.gba", 0x10A43D, 0x000000D + +gUnk_0810A44A:: @ 0810A44A + .incbin "baserom.gba", 0x10A44A, 0x000000D + +gUnk_0810A457:: @ 0810A457 + .incbin "baserom.gba", 0x10A457, 0x000000D + +gUnk_0810A464:: @ 0810A464 + .incbin "baserom.gba", 0x10A464, 0x000000D + +gUnk_0810A471:: @ 0810A471 + .incbin "baserom.gba", 0x10A471, 0x000000D + +gUnk_0810A47E:: @ 0810A47E + .incbin "baserom.gba", 0x10A47E, 0x000000D + +gUnk_0810A48B:: @ 0810A48B + .incbin "baserom.gba", 0x10A48B, 0x000000D + +gUnk_0810A498:: @ 0810A498 + .incbin "baserom.gba", 0x10A498, 0x000000D + +gUnk_0810A4A5:: @ 0810A4A5 + .incbin "baserom.gba", 0x10A4A5, 0x000000D + +gUnk_0810A4B2:: @ 0810A4B2 + .incbin "baserom.gba", 0x10A4B2, 0x000000D + +gUnk_0810A4BF:: @ 0810A4BF + .incbin "baserom.gba", 0x10A4BF, 0x000000D + +gUnk_0810A4CC:: @ 0810A4CC + .incbin "baserom.gba", 0x10A4CC, 0x000000D + +gUnk_0810A4D9:: @ 0810A4D9 + .incbin "baserom.gba", 0x10A4D9, 0x000000D + +gUnk_0810A4E6:: @ 0810A4E6 + .incbin "baserom.gba", 0x10A4E6, 0x000000D + +gUnk_0810A4F3:: @ 0810A4F3 + .incbin "baserom.gba", 0x10A4F3, 0x000000D + +gUnk_0810A500:: @ 0810A500 + .incbin "baserom.gba", 0x10A500, 0x000000D + +gUnk_0810A50D:: @ 0810A50D + .incbin "baserom.gba", 0x10A50D, 0x000000D + +gUnk_0810A51A:: @ 0810A51A + .incbin "baserom.gba", 0x10A51A, 0x000000D + +gUnk_0810A527:: @ 0810A527 + .incbin "baserom.gba", 0x10A527, 0x000000D + +gUnk_0810A534:: @ 0810A534 + .incbin "baserom.gba", 0x10A534, 0x000000D + +gUnk_0810A541:: @ 0810A541 + .incbin "baserom.gba", 0x10A541, 0x000000D + +gUnk_0810A54E:: @ 0810A54E + .incbin "baserom.gba", 0x10A54E, 0x000000D + +gUnk_0810A55B:: @ 0810A55B + .incbin "baserom.gba", 0x10A55B, 0x000000D + +gUnk_0810A568:: @ 0810A568 + .incbin "baserom.gba", 0x10A568, 0x000000D + +gUnk_0810A575:: @ 0810A575 + .incbin "baserom.gba", 0x10A575, 0x000000D + +gUnk_0810A582:: @ 0810A582 + .incbin "baserom.gba", 0x10A582, 0x000000D + +gUnk_0810A58F:: @ 0810A58F + .incbin "baserom.gba", 0x10A58F, 0x000000D + +gUnk_0810A59C:: @ 0810A59C + .incbin "baserom.gba", 0x10A59C, 0x000000D + +gUnk_0810A5A9:: @ 0810A5A9 + .incbin "baserom.gba", 0x10A5A9, 0x000000F + +gUnk_0810A5B8:: @ 0810A5B8 + .incbin "baserom.gba", 0x10A5B8, 0x00000B4 + +gUnk_0810A66C:: @ 0810A66C + .incbin "baserom.gba", 0x10A66C, 0x00000BC + +gUnk_0810A728:: @ 0810A728 + .incbin "baserom.gba", 0x10A728, 0x0000040 + +gUnk_0810A768:: @ 0810A768 + .incbin "baserom.gba", 0x10A768, 0x0000005 + +gUnk_0810A76D:: @ 0810A76D + .incbin "baserom.gba", 0x10A76D, 0x0000005 + +gUnk_0810A772:: @ 0810A772 + .incbin "baserom.gba", 0x10A772, 0x0000005 + +gUnk_0810A777:: @ 0810A777 + .incbin "baserom.gba", 0x10A777, 0x0000006 + +gUnk_0810A77D:: @ 0810A77D + .incbin "baserom.gba", 0x10A77D, 0x0000006 + +gUnk_0810A783:: @ 0810A783 + .incbin "baserom.gba", 0x10A783, 0x0000006 + +gUnk_0810A789:: @ 0810A789 + .incbin "baserom.gba", 0x10A789, 0x0000005 + +gUnk_0810A78E:: @ 0810A78E + .incbin "baserom.gba", 0x10A78E, 0x0000006 + +gUnk_0810A794:: @ 0810A794 + .incbin "baserom.gba", 0x10A794, 0x0000006 + +gUnk_0810A79A:: @ 0810A79A + .incbin "baserom.gba", 0x10A79A, 0x0000006 + +gUnk_0810A7A0:: @ 0810A7A0 + .incbin "baserom.gba", 0x10A7A0, 0x0000006 + +gUnk_0810A7A6:: @ 0810A7A6 + .incbin "baserom.gba", 0x10A7A6, 0x0000006 + +gUnk_0810A7AC:: @ 0810A7AC + .incbin "baserom.gba", 0x10A7AC, 0x0000007 + +gUnk_0810A7B3:: @ 0810A7B3 + .incbin "baserom.gba", 0x10A7B3, 0x0000006 + +gUnk_0810A7B9:: @ 0810A7B9 + .incbin "baserom.gba", 0x10A7B9, 0x0000006 + +gUnk_0810A7BF:: @ 0810A7BF + .incbin "baserom.gba", 0x10A7BF, 0x0000006 + +gUnk_0810A7C5:: @ 0810A7C5 + .incbin "baserom.gba", 0x10A7C5, 0x0000005 + +gUnk_0810A7CA:: @ 0810A7CA + .incbin "baserom.gba", 0x10A7CA, 0x0000006 + +gUnk_0810A7D0:: @ 0810A7D0 + .incbin "baserom.gba", 0x10A7D0, 0x0000006 + +gUnk_0810A7D6:: @ 0810A7D6 + .incbin "baserom.gba", 0x10A7D6, 0x0000005 + +gUnk_0810A7DB:: @ 0810A7DB + .incbin "baserom.gba", 0x10A7DB, 0x0000005 + +gUnk_0810A7E0:: @ 0810A7E0 + .incbin "baserom.gba", 0x10A7E0, 0x0000005 + +gUnk_0810A7E5:: @ 0810A7E5 + .incbin "baserom.gba", 0x10A7E5, 0x0000010 + +gUnk_0810A7F5:: @ 0810A7F5 + .incbin "baserom.gba", 0x10A7F5, 0x0000010 + +gUnk_0810A805:: @ 0810A805 + .incbin "baserom.gba", 0x10A805, 0x0000008 + +gUnk_0810A80D:: @ 0810A80D + .incbin "baserom.gba", 0x10A80D, 0x0000008 + +gUnk_0810A815:: @ 0810A815 + .incbin "baserom.gba", 0x10A815, 0x0000005 + +gUnk_0810A81A:: @ 0810A81A + .incbin "baserom.gba", 0x10A81A, 0x0000005 + +gUnk_0810A81F:: @ 0810A81F + .incbin "baserom.gba", 0x10A81F, 0x0000006 + +gUnk_0810A825:: @ 0810A825 + .incbin "baserom.gba", 0x10A825, 0x0000005 + +gUnk_0810A82A:: @ 0810A82A + .incbin "baserom.gba", 0x10A82A, 0x0000005 + +gUnk_0810A82F:: @ 0810A82F + .incbin "baserom.gba", 0x10A82F, 0x0000006 + +gUnk_0810A835:: @ 0810A835 + .incbin "baserom.gba", 0x10A835, 0x0000006 + +gUnk_0810A83B:: @ 0810A83B + .incbin "baserom.gba", 0x10A83B, 0x0000006 + +gUnk_0810A841:: @ 0810A841 + .incbin "baserom.gba", 0x10A841, 0x0000007 + +gUnk_0810A848:: @ 0810A848 + .incbin "baserom.gba", 0x10A848, 0x0000007 + +gUnk_0810A84F:: @ 0810A84F + .incbin "baserom.gba", 0x10A84F, 0x000000F + +gUnk_0810A85E:: @ 0810A85E + .incbin "baserom.gba", 0x10A85E, 0x000000F + +gUnk_0810A86D:: @ 0810A86D + .incbin "baserom.gba", 0x10A86D, 0x0000005 + +gUnk_0810A872:: @ 0810A872 + .incbin "baserom.gba", 0x10A872, 0x0000005 + +gUnk_0810A877:: @ 0810A877 + .incbin "baserom.gba", 0x10A877, 0x0000005 + +gUnk_0810A87C:: @ 0810A87C + .incbin "baserom.gba", 0x10A87C, 0x0000005 + +gUnk_0810A881:: @ 0810A881 + .incbin "baserom.gba", 0x10A881, 0x0000005 + +gUnk_0810A886:: @ 0810A886 + .incbin "baserom.gba", 0x10A886, 0x0000005 + +gUnk_0810A88B:: @ 0810A88B + .incbin "baserom.gba", 0x10A88B, 0x0000006 + +gUnk_0810A891:: @ 0810A891 + .incbin "baserom.gba", 0x10A891, 0x0000006 + +gUnk_0810A897:: @ 0810A897 + .incbin "baserom.gba", 0x10A897, 0x0000005 + +gUnk_0810A89C:: @ 0810A89C + .incbin "baserom.gba", 0x10A89C, 0x0000006 + +gUnk_0810A8A2:: @ 0810A8A2 + .incbin "baserom.gba", 0x10A8A2, 0x0000005 + +gUnk_0810A8A7:: @ 0810A8A7 + .incbin "baserom.gba", 0x10A8A7, 0x0000005 + +gUnk_0810A8AC:: @ 0810A8AC + .incbin "baserom.gba", 0x10A8AC, 0x0000005 + +gUnk_0810A8B1:: @ 0810A8B1 + .incbin "baserom.gba", 0x10A8B1, 0x0000005 + +gUnk_0810A8B6:: @ 0810A8B6 + .incbin "baserom.gba", 0x10A8B6, 0x0000005 + +gUnk_0810A8BB:: @ 0810A8BB + .incbin "baserom.gba", 0x10A8BB, 0x0000005 + +gUnk_0810A8C0:: @ 0810A8C0 + .incbin "baserom.gba", 0x10A8C0, 0x000000B + +gUnk_0810A8CB:: @ 0810A8CB + .incbin "baserom.gba", 0x10A8CB, 0x000000B + +gUnk_0810A8D6:: @ 0810A8D6 + .incbin "baserom.gba", 0x10A8D6, 0x0000005 + +gUnk_0810A8DB:: @ 0810A8DB + .incbin "baserom.gba", 0x10A8DB, 0x0000005 + +gUnk_0810A8E0:: @ 0810A8E0 + .incbin "baserom.gba", 0x10A8E0, 0x0000009 + +gUnk_0810A8E9:: @ 0810A8E9 + .incbin "baserom.gba", 0x10A8E9, 0x0000009 + +gUnk_0810A8F2:: @ 0810A8F2 + .incbin "baserom.gba", 0x10A8F2, 0x0000007 + +gUnk_0810A8F9:: @ 0810A8F9 + .incbin "baserom.gba", 0x10A8F9, 0x0000007 + +gUnk_0810A900:: @ 0810A900 + .incbin "baserom.gba", 0x10A900, 0x0000005 + +gUnk_0810A905:: @ 0810A905 + .incbin "baserom.gba", 0x10A905, 0x0000006 + +gUnk_0810A90B:: @ 0810A90B + .incbin "baserom.gba", 0x10A90B, 0x0000006 + +gUnk_0810A911:: @ 0810A911 + .incbin "baserom.gba", 0x10A911, 0x0000007 + +gUnk_0810A918:: @ 0810A918 + .incbin "baserom.gba", 0x10A918, 0x000010C + +gUnk_0810AA24:: @ 0810AA24 + .incbin "baserom.gba", 0x10AA24, 0x000000C + +gUnk_0810AA30:: @ 0810AA30 + .incbin "baserom.gba", 0x10AA30, 0x0000040 + +gUnk_0810AA70:: @ 0810AA70 + .incbin "baserom.gba", 0x10AA70, 0x0000020 + +gUnk_0810AA90:: @ 0810AA90 + .incbin "baserom.gba", 0x10AA90, 0x0000029 + +gUnk_0810AAB9:: @ 0810AAB9 + .incbin "baserom.gba", 0x10AAB9, 0x0000029 + +gUnk_0810AAE2:: @ 0810AAE2 + .incbin "baserom.gba", 0x10AAE2, 0x0000029 + +gUnk_0810AB0B:: @ 0810AB0B + .incbin "baserom.gba", 0x10AB0B, 0x0000029 + +gUnk_0810AB34:: @ 0810AB34 + .incbin "baserom.gba", 0x10AB34, 0x0000031 + +gUnk_0810AB65:: @ 0810AB65 + .incbin "baserom.gba", 0x10AB65, 0x0000031 + +gUnk_0810AB96:: @ 0810AB96 + .incbin "baserom.gba", 0x10AB96, 0x0000031 + +gUnk_0810ABC7:: @ 0810ABC7 + .incbin "baserom.gba", 0x10ABC7, 0x0000031 + +gUnk_0810ABF8:: @ 0810ABF8 + .incbin "baserom.gba", 0x10ABF8, 0x0000024 + +gUnk_0810AC1C:: @ 0810AC1C + .incbin "baserom.gba", 0x10AC1C, 0x0000010 + +gUnk_0810AC2C:: @ 0810AC2C + .incbin "baserom.gba", 0x10AC2C, 0x0000020 + +gUnk_0810AC4C:: @ 0810AC4C + .incbin "baserom.gba", 0x10AC4C, 0x0000008 + +gUnk_0810AC54:: @ 0810AC54 + .incbin "baserom.gba", 0x10AC54, 0x0000009 + +gUnk_0810AC5D:: @ 0810AC5D + .incbin "baserom.gba", 0x10AC5D, 0x0000013 + +gUnk_0810AC70:: @ 0810AC70 + .incbin "baserom.gba", 0x10AC70, 0x0000008 + +gUnk_0810AC78:: @ 0810AC78 + .incbin "baserom.gba", 0x10AC78, 0x0000009 + +gUnk_0810AC81:: @ 0810AC81 + .incbin "baserom.gba", 0x10AC81, 0x0000019 + +gUnk_0810AC9A:: @ 0810AC9A + .incbin "baserom.gba", 0x10AC9A, 0x0000019 + +gUnk_0810ACB3:: @ 0810ACB3 + .incbin "baserom.gba", 0x10ACB3, 0x0000019 + +gUnk_0810ACCC:: @ 0810ACCC + .incbin "baserom.gba", 0x10ACCC, 0x0000021 + +gUnk_0810ACED:: @ 0810ACED + .incbin "baserom.gba", 0x10ACED, 0x0000021 + +gUnk_0810AD0E:: @ 0810AD0E + .incbin "baserom.gba", 0x10AD0E, 0x0000021 + +gUnk_0810AD2F:: @ 0810AD2F + .incbin "baserom.gba", 0x10AD2F, 0x0000021 + +gUnk_0810AD50:: @ 0810AD50 + .incbin "baserom.gba", 0x10AD50, 0x0000021 + +gUnk_0810AD71:: @ 0810AD71 + .incbin "baserom.gba", 0x10AD71, 0x0000021 + +gUnk_0810AD92:: @ 0810AD92 + .incbin "baserom.gba", 0x10AD92, 0x000001B + +gUnk_0810ADAD:: @ 0810ADAD + .incbin "baserom.gba", 0x10ADAD, 0x0000006 + +gUnk_0810ADB3:: @ 0810ADB3 + .incbin "baserom.gba", 0x10ADB3, 0x0000021 + +gUnk_0810ADD4:: @ 0810ADD4 + .incbin "baserom.gba", 0x10ADD4, 0x0000021 + +gUnk_0810ADF5:: @ 0810ADF5 + .incbin "baserom.gba", 0x10ADF5, 0x0000021 + +gUnk_0810AE16:: @ 0810AE16 + .incbin "baserom.gba", 0x10AE16, 0x0000021 + +gUnk_0810AE37:: @ 0810AE37 + .incbin "baserom.gba", 0x10AE37, 0x0000021 + +gUnk_0810AE58:: @ 0810AE58 + .incbin "baserom.gba", 0x10AE58, 0x0000024 + +gUnk_0810AE7C:: @ 0810AE7C + .incbin "baserom.gba", 0x10AE7C, 0x0000021 + +gUnk_0810AE9D:: @ 0810AE9D + .incbin "baserom.gba", 0x10AE9D, 0x0000003 + +gUnk_0810AEA0:: @ 0810AEA0 + .incbin "baserom.gba", 0x10AEA0, 0x0000024 + +gUnk_0810AEC4:: @ 0810AEC4 + .incbin "baserom.gba", 0x10AEC4, 0x0000024 + +gUnk_0810AEE8:: @ 0810AEE8 + .incbin "baserom.gba", 0x10AEE8, 0x000001F + +gUnk_0810AF07:: @ 0810AF07 + .incbin "baserom.gba", 0x10AF07, 0x0000012 + +gUnk_0810AF19:: @ 0810AF19 + .incbin "baserom.gba", 0x10AF19, 0x000002B + +gUnk_0810AF44:: @ 0810AF44 + .incbin "baserom.gba", 0x10AF44, 0x0000006 + +gUnk_0810AF4A:: @ 0810AF4A + .incbin "baserom.gba", 0x10AF4A, 0x0000031 + +gUnk_0810AF7B:: @ 0810AF7B + .incbin "baserom.gba", 0x10AF7B, 0x0000031 + +gUnk_0810AFAC:: @ 0810AFAC + .incbin "baserom.gba", 0x10AFAC, 0x0000021 + +gUnk_0810AFCD:: @ 0810AFCD + .incbin "baserom.gba", 0x10AFCD, 0x0000021 + +gUnk_0810AFEE:: @ 0810AFEE + .incbin "baserom.gba", 0x10AFEE, 0x000001A + +gUnk_0810B008:: @ 0810B008 + .incbin "baserom.gba", 0x10B008, 0x0000007 + +gUnk_0810B00F:: @ 0810B00F + .incbin "baserom.gba", 0x10B00F, 0x0000021 + +gUnk_0810B030:: @ 0810B030 + .incbin "baserom.gba", 0x10B030, 0x000000C + +gUnk_0810B03C:: @ 0810B03C + .incbin "baserom.gba", 0x10B03C, 0x000000C + +gUnk_0810B048:: @ 0810B048 + .incbin "baserom.gba", 0x10B048, 0x000000C + +gUnk_0810B054:: @ 0810B054 + .incbin "baserom.gba", 0x10B054, 0x000000C + +gUnk_0810B060:: @ 0810B060 + .incbin "baserom.gba", 0x10B060, 0x0000011 + +gUnk_0810B071:: @ 0810B071 + .incbin "baserom.gba", 0x10B071, 0x0000011 + +gUnk_0810B082:: @ 0810B082 + .incbin "baserom.gba", 0x10B082, 0x0000011 + +gUnk_0810B093:: @ 0810B093 + .incbin "baserom.gba", 0x10B093, 0x0000011 + +gUnk_0810B0A4:: @ 0810B0A4 + .incbin "baserom.gba", 0x10B0A4, 0x0000011 + +gUnk_0810B0B5:: @ 0810B0B5 + .incbin "baserom.gba", 0x10B0B5, 0x0000011 + +gUnk_0810B0C6:: @ 0810B0C6 + .incbin "baserom.gba", 0x10B0C6, 0x0000011 + +gUnk_0810B0D7:: @ 0810B0D7 + .incbin "baserom.gba", 0x10B0D7, 0x0000011 + +gUnk_0810B0E8:: @ 0810B0E8 + .incbin "baserom.gba", 0x10B0E8, 0x0000011 + +gUnk_0810B0F9:: @ 0810B0F9 + .incbin "baserom.gba", 0x10B0F9, 0x0000011 + +gUnk_0810B10A:: @ 0810B10A + .incbin "baserom.gba", 0x10B10A, 0x0000011 + +gUnk_0810B11B:: @ 0810B11B + .incbin "baserom.gba", 0x10B11B, 0x0000011 + +gUnk_0810B12C:: @ 0810B12C + .incbin "baserom.gba", 0x10B12C, 0x0000011 + +gUnk_0810B13D:: @ 0810B13D + .incbin "baserom.gba", 0x10B13D, 0x0000011 + +gUnk_0810B14E:: @ 0810B14E + .incbin "baserom.gba", 0x10B14E, 0x0000011 + +gUnk_0810B15F:: @ 0810B15F + .incbin "baserom.gba", 0x10B15F, 0x0000011 + +gUnk_0810B170:: @ 0810B170 + .incbin "baserom.gba", 0x10B170, 0x000001C + +gUnk_0810B18C:: @ 0810B18C + .incbin "baserom.gba", 0x10B18C, 0x000001C + +gUnk_0810B1A8:: @ 0810B1A8 + .incbin "baserom.gba", 0x10B1A8, 0x0000009 + +gUnk_0810B1B1:: @ 0810B1B1 + .incbin "baserom.gba", 0x10B1B1, 0x0000013 + +gUnk_0810B1C4:: @ 0810B1C4 + .incbin "baserom.gba", 0x10B1C4, 0x000001C + +gUnk_0810B1E0:: @ 0810B1E0 + .incbin "baserom.gba", 0x10B1E0, 0x000001C + +gUnk_0810B1FC:: @ 0810B1FC + .incbin "baserom.gba", 0x10B1FC, 0x000001C + +gUnk_0810B218:: @ 0810B218 + .incbin "baserom.gba", 0x10B218, 0x000001C + +gUnk_0810B234:: @ 0810B234 + .incbin "baserom.gba", 0x10B234, 0x000001C + +gUnk_0810B250:: @ 0810B250 + .incbin "baserom.gba", 0x10B250, 0x0000030 + +gUnk_0810B280:: @ 0810B280 + .incbin "baserom.gba", 0x10B280, 0x0000030 + +gUnk_0810B2B0:: @ 0810B2B0 + .incbin "baserom.gba", 0x10B2B0, 0x0000030 + +gUnk_0810B2E0:: @ 0810B2E0 + .incbin "baserom.gba", 0x10B2E0, 0x0000030 + +gUnk_0810B310:: @ 0810B310 + .incbin "baserom.gba", 0x10B310, 0x0000030 + +gUnk_0810B340:: @ 0810B340 + .incbin "baserom.gba", 0x10B340, 0x0000030 + +gUnk_0810B370:: @ 0810B370 + .incbin "baserom.gba", 0x10B370, 0x0000030 + +gUnk_0810B3A0:: @ 0810B3A0 + .incbin "baserom.gba", 0x10B3A0, 0x0000022 + +gUnk_0810B3C2:: @ 0810B3C2 + .incbin "baserom.gba", 0x10B3C2, 0x000000E + +gUnk_0810B3D0:: @ 0810B3D0 + .incbin "baserom.gba", 0x10B3D0, 0x0000028 + +gUnk_0810B3F8:: @ 0810B3F8 + .incbin "baserom.gba", 0x10B3F8, 0x000000F + +gUnk_0810B407:: @ 0810B407 + .incbin "baserom.gba", 0x10B407, 0x0000019 + +gUnk_0810B420:: @ 0810B420 + .incbin "baserom.gba", 0x10B420, 0x0000028 + +gUnk_0810B448:: @ 0810B448 + .incbin "baserom.gba", 0x10B448, 0x0000028 + +gUnk_0810B470:: @ 0810B470 + .incbin "baserom.gba", 0x10B470, 0x0000019 + +gUnk_0810B489:: @ 0810B489 + .incbin "baserom.gba", 0x10B489, 0x0000005 + +gUnk_0810B48E:: @ 0810B48E + .incbin "baserom.gba", 0x10B48E, 0x0000019 + +gUnk_0810B4A7:: @ 0810B4A7 + .incbin "baserom.gba", 0x10B4A7, 0x0000035 + +gUnk_0810B4DC:: @ 0810B4DC + .incbin "baserom.gba", 0x10B4DC, 0x0000010 + +gUnk_0810B4EC:: @ 0810B4EC + .incbin "baserom.gba", 0x10B4EC, 0x0000164 + +gUnk_0810B650:: @ 0810B650 + .incbin "baserom.gba", 0x10B650, 0x0000002 + +gUnk_0810B652:: @ 0810B652 + .incbin "baserom.gba", 0x10B652, 0x0000002 + +gUnk_0810B654:: @ 0810B654 + .incbin "baserom.gba", 0x10B654, 0x0000002 + +gUnk_0810B656:: @ 0810B656 + .incbin "baserom.gba", 0x10B656, 0x0000002 + +gUnk_0810B658:: @ 0810B658 + .incbin "baserom.gba", 0x10B658, 0x0000002 + +gUnk_0810B65A:: @ 0810B65A + .incbin "baserom.gba", 0x10B65A, 0x0000002 + +gUnk_0810B65C:: @ 0810B65C + .incbin "baserom.gba", 0x10B65C, 0x0000002 + +gUnk_0810B65E:: @ 0810B65E + .incbin "baserom.gba", 0x10B65E, 0x0000002 + +gUnk_0810B660:: @ 0810B660 + .incbin "baserom.gba", 0x10B660, 0x0000020 + +gUnk_0810B680:: @ 0810B680 + .incbin "baserom.gba", 0x10B680, 0x000002A + +gUnk_0810B6AA:: @ 0810B6AA + .incbin "baserom.gba", 0x10B6AA, 0x0000009 + +gUnk_0810B6B3:: @ 0810B6B3 + .incbin "baserom.gba", 0x10B6B3, 0x0000021 + +gUnk_0810B6D4:: @ 0810B6D4 + .incbin "baserom.gba", 0x10B6D4, 0x000000C + +gUnk_0810B6E0:: @ 0810B6E0 + .incbin "baserom.gba", 0x10B6E0, 0x000000C + +gUnk_0810B6EC:: @ 0810B6EC + .incbin "baserom.gba", 0x10B6EC, 0x0000054 + +gUnk_0810B740:: @ 0810B740 + .incbin "baserom.gba", 0x10B740, 0x0000008 + +gUnk_0810B748:: @ 0810B748 + .incbin "baserom.gba", 0x10B748, 0x0000002 + +gUnk_0810B74A:: @ 0810B74A + .incbin "baserom.gba", 0x10B74A, 0x0000018 + +gUnk_0810B762:: @ 0810B762 + .incbin "baserom.gba", 0x10B762, 0x0000012 + +gUnk_0810B774:: @ 0810B774 + .incbin "baserom.gba", 0x10B774, 0x0000008 + +gUnk_0810B77C:: @ 0810B77C + .incbin "baserom.gba", 0x10B77C, 0x0000010 + +gUnk_0810B78C:: @ 0810B78C + .incbin "baserom.gba", 0x10B78C, 0x0000004 + +gUnk_0810B790:: @ 0810B790 + .incbin "baserom.gba", 0x10B790, 0x000001C + +gUnk_0810B7AC:: @ 0810B7AC + .incbin "baserom.gba", 0x10B7AC, 0x000000E + +gUnk_0810B7BA:: @ 0810B7BA + .incbin "baserom.gba", 0x10B7BA, 0x0000006 + +gUnk_0810B7C0:: @ 0810B7C0 + .incbin "baserom.gba", 0x10B7C0, 0x000012B + +gUnk_0810B8EB:: @ 0810B8EB + .incbin "baserom.gba", 0x10B8EB, 0x0000037 + +gUnk_0810B922:: @ 0810B922 + .incbin "baserom.gba", 0x10B922, 0x0000049 + +gUnk_0810B96B:: @ 0810B96B + .incbin "baserom.gba", 0x10B96B, 0x0000065 + +gUnk_0810B9D0:: @ 0810B9D0 + .incbin "baserom.gba", 0x10B9D0, 0x0000031 + +gUnk_0810BA01:: @ 0810BA01 + .incbin "baserom.gba", 0x10BA01, 0x0000117 + +gUnk_0810BB18:: @ 0810BB18 + .incbin "baserom.gba", 0x10BB18, 0x0000059 + +gUnk_0810BB71:: @ 0810BB71 + .incbin "baserom.gba", 0x10BB71, 0x000005B + +gUnk_0810BBCC:: @ 0810BBCC + .incbin "baserom.gba", 0x10BBCC, 0x000009C + +gUnk_0810BC68:: @ 0810BC68 + .incbin "baserom.gba", 0x10BC68, 0x0000098 + +gUnk_0810BD00:: @ 0810BD00 + .incbin "baserom.gba", 0x10BD00, 0x0000005 + +gUnk_0810BD05:: @ 0810BD05 + .incbin "baserom.gba", 0x10BD05, 0x0000005 + +gUnk_0810BD0A:: @ 0810BD0A + .incbin "baserom.gba", 0x10BD0A, 0x0000005 + +gUnk_0810BD0F:: @ 0810BD0F + .incbin "baserom.gba", 0x10BD0F, 0x0000005 + +gUnk_0810BD14:: @ 0810BD14 + .incbin "baserom.gba", 0x10BD14, 0x0000011 + +gUnk_0810BD25:: @ 0810BD25 + .incbin "baserom.gba", 0x10BD25, 0x0000011 + +gUnk_0810BD36:: @ 0810BD36 + .incbin "baserom.gba", 0x10BD36, 0x0000011 + +gUnk_0810BD47:: @ 0810BD47 + .incbin "baserom.gba", 0x10BD47, 0x0000011 + +gUnk_0810BD58:: @ 0810BD58 + .incbin "baserom.gba", 0x10BD58, 0x0000016 + +gUnk_0810BD6E:: @ 0810BD6E + .incbin "baserom.gba", 0x10BD6E, 0x000000E + +gUnk_0810BD7C:: @ 0810BD7C + .incbin "baserom.gba", 0x10BD7C, 0x0000010 + +gUnk_0810BD8C:: @ 0810BD8C + .incbin "baserom.gba", 0x10BD8C, 0x0000010 + +gUnk_0810BD9C:: @ 0810BD9C + .incbin "baserom.gba", 0x10BD9C, 0x0000010 + +gUnk_0810BDAC:: @ 0810BDAC + .incbin "baserom.gba", 0x10BDAC, 0x000000C + +gUnk_0810BDB8:: @ 0810BDB8 + .incbin "baserom.gba", 0x10BDB8, 0x000000C + +gUnk_0810BDC4:: @ 0810BDC4 + .incbin "baserom.gba", 0x10BDC4, 0x0000024 + +gUnk_0810BDE8:: @ 0810BDE8 + .incbin "baserom.gba", 0x10BDE8, 0x0000024 + +gUnk_0810BE0C:: @ 0810BE0C + .incbin "baserom.gba", 0x10BE0C, 0x0000003 + +gUnk_0810BE0F:: @ 0810BE0F + .incbin "baserom.gba", 0x10BE0F, 0x0000001 + +gUnk_0810BE10:: @ 0810BE10 + .incbin "baserom.gba", 0x10BE10, 0x0000031 + +gUnk_0810BE41:: @ 0810BE41 + .incbin "baserom.gba", 0x10BE41, 0x00000C2 + +gUnk_0810BF03:: @ 0810BF03 + .incbin "baserom.gba", 0x10BF03, 0x0000104 + +gUnk_0810C007:: @ 0810C007 + .incbin "baserom.gba", 0x10C007, 0x0000008 + +gUnk_0810C00F:: @ 0810C00F + .incbin "baserom.gba", 0x10C00F, 0x0000091 + +gUnk_0810C0A0:: @ 0810C0A0 + .incbin "baserom.gba", 0x10C0A0, 0x0000024 + +gUnk_0810C0C4:: @ 0810C0C4 + .incbin "baserom.gba", 0x10C0C4, 0x0000005 + +gUnk_0810C0C9:: @ 0810C0C9 + .incbin "baserom.gba", 0x10C0C9, 0x0000005 + +gUnk_0810C0CE:: @ 0810C0CE + .incbin "baserom.gba", 0x10C0CE, 0x0000005 + +gUnk_0810C0D3:: @ 0810C0D3 + .incbin "baserom.gba", 0x10C0D3, 0x0000005 + +gUnk_0810C0D8:: @ 0810C0D8 + .incbin "baserom.gba", 0x10C0D8, 0x0000011 + +gUnk_0810C0E9:: @ 0810C0E9 + .incbin "baserom.gba", 0x10C0E9, 0x0000011 + +gUnk_0810C0FA:: @ 0810C0FA + .incbin "baserom.gba", 0x10C0FA, 0x0000011 + +gUnk_0810C10B:: @ 0810C10B + .incbin "baserom.gba", 0x10C10B, 0x0000011 + +gUnk_0810C11C:: @ 0810C11C + .incbin "baserom.gba", 0x10C11C, 0x0000019 + +gUnk_0810C135:: @ 0810C135 + .incbin "baserom.gba", 0x10C135, 0x0000019 + +gUnk_0810C14E:: @ 0810C14E + .incbin "baserom.gba", 0x10C14E, 0x0000019 + +gUnk_0810C167:: @ 0810C167 + .incbin "baserom.gba", 0x10C167, 0x0000019 + +gUnk_0810C180:: @ 0810C180 + .incbin "baserom.gba", 0x10C180, 0x0000019 + +gUnk_0810C199:: @ 0810C199 + .incbin "baserom.gba", 0x10C199, 0x000000D + +gUnk_0810C1A6:: @ 0810C1A6 + .incbin "baserom.gba", 0x10C1A6, 0x0000018 + +gUnk_0810C1BE:: @ 0810C1BE + .incbin "baserom.gba", 0x10C1BE, 0x000000F + +gUnk_0810C1CD:: @ 0810C1CD + .incbin "baserom.gba", 0x10C1CD, 0x000000A + +gUnk_0810C1D7:: @ 0810C1D7 + .incbin "baserom.gba", 0x10C1D7, 0x0000005 + +gUnk_0810C1DC:: @ 0810C1DC + .incbin "baserom.gba", 0x10C1DC, 0x0000008 + +gUnk_0810C1E4:: @ 0810C1E4 + .incbin "baserom.gba", 0x10C1E4, 0x0000021 + +gUnk_0810C205:: @ 0810C205 + .incbin "baserom.gba", 0x10C205, 0x0000001 + +gUnk_0810C206:: @ 0810C206 + .incbin "baserom.gba", 0x10C206, 0x0000062 + +gUnk_0810C268:: @ 0810C268 + .incbin "baserom.gba", 0x10C268, 0x0000008 + +gUnk_0810C270:: @ 0810C270 + .incbin "baserom.gba", 0x10C270, 0x0000005 + +gUnk_0810C275:: @ 0810C275 + .incbin "baserom.gba", 0x10C275, 0x0000005 + +gUnk_0810C27A:: @ 0810C27A + .incbin "baserom.gba", 0x10C27A, 0x0000016 + +gUnk_0810C290:: @ 0810C290 + .incbin "baserom.gba", 0x10C290, 0x0000010 + +gUnk_0810C2A0:: @ 0810C2A0 + .incbin "baserom.gba", 0x10C2A0, 0x0000005 + +gUnk_0810C2A5:: @ 0810C2A5 + .incbin "baserom.gba", 0x10C2A5, 0x000000D + +gUnk_0810C2B2:: @ 0810C2B2 + .incbin "baserom.gba", 0x10C2B2, 0x000001A + +gStampBehaviors1:: @ 0810C2CC + .incbin "baserom.gba", 0x10C2CC, 0x0000010 + +gStampBehaviors2:: @ 0810C2DC + .incbin "baserom.gba", 0x10C2DC, 0x0000008 + +gUnk_0810C2E4:: @ 0810C2E4 + .incbin "baserom.gba", 0x10C2E4, 0x0000010 + +gUnk_0810C2F4:: @ 0810C2F4 + .incbin "baserom.gba", 0x10C2F4, 0x0000031 + +gUnk_0810C325:: @ 0810C325 + .incbin "baserom.gba", 0x10C325, 0x0000007 + +gUnk_0810C32C:: @ 0810C32C + .incbin "baserom.gba", 0x10C32C, 0x0000020 + +gUnk_0810C34C:: @ 0810C34C + .incbin "baserom.gba", 0x10C34C, 0x0000014 + +gUnk_0810C360:: @ 0810C360 + .incbin "baserom.gba", 0x10C360, 0x0000005 + +gUnk_0810C365:: @ 0810C365 + .incbin "baserom.gba", 0x10C365, 0x000001D + +gUnk_0810C382:: @ 0810C382 + .incbin "baserom.gba", 0x10C382, 0x000000E + +gUnk_0810C390:: @ 0810C390 + .incbin "baserom.gba", 0x10C390, 0x000000A + +gUnk_0810C39A:: @ 0810C39A + .incbin "baserom.gba", 0x10C39A, 0x0000026 + +gUnk_0810C3C0:: @ 0810C3C0 + .incbin "baserom.gba", 0x10C3C0, 0x0000008 + +gUnk_0810C3C8:: @ 0810C3C8 + .incbin "baserom.gba", 0x10C3C8, 0x0000019 + +gUnk_0810C3E1:: @ 0810C3E1 + .incbin "baserom.gba", 0x10C3E1, 0x0000011 + +gUnk_0810C3F2:: @ 0810C3F2 + .incbin "baserom.gba", 0x10C3F2, 0x0000011 + +gUnk_0810C403:: @ 0810C403 + .incbin "baserom.gba", 0x10C403, 0x0000011 + +gUnk_0810C414:: @ 0810C414 + .incbin "baserom.gba", 0x10C414, 0x0000001 + +gUnk_0810C415:: @ 0810C415 + .incbin "baserom.gba", 0x10C415, 0x0000013 + +gUnk_0810C428:: @ 0810C428 + .incbin "baserom.gba", 0x10C428, 0x0000008 + +gUnk_0810C430:: @ 0810C430 + .incbin "baserom.gba", 0x10C430, 0x0000005 + +gUnk_0810C435:: @ 0810C435 + .incbin "baserom.gba", 0x10C435, 0x0000008 + +gUnk_0810C43D:: @ 0810C43D + .incbin "baserom.gba", 0x10C43D, 0x0000008 + +gUnk_0810C445:: @ 0810C445 + .incbin "baserom.gba", 0x10C445, 0x0000005 + +gUnk_0810C44A:: @ 0810C44A + .incbin "baserom.gba", 0x10C44A, 0x000001E + +gUnk_0810C468:: @ 0810C468 + .incbin "baserom.gba", 0x10C468, 0x0000024 + +gUnk_0810C48C:: @ 0810C48C + .incbin "baserom.gba", 0x10C48C, 0x000000C + +gUnk_0810C498:: @ 0810C498 + .incbin "baserom.gba", 0x10C498, 0x0000008 + +gUnk_0810C4A0:: @ 0810C4A0 + .incbin "baserom.gba", 0x10C4A0, 0x0000005 + +gUnk_0810C4A5:: @ 0810C4A5 + .incbin "baserom.gba", 0x10C4A5, 0x0000005 + +gUnk_0810C4AA:: @ 0810C4AA + .incbin "baserom.gba", 0x10C4AA, 0x0000005 + +gUnk_0810C4AF:: @ 0810C4AF + .incbin "baserom.gba", 0x10C4AF, 0x0000005 + +gUnk_0810C4B4:: @ 0810C4B4 + .incbin "baserom.gba", 0x10C4B4, 0x0000015 + +gUnk_0810C4C9:: @ 0810C4C9 + .incbin "baserom.gba", 0x10C4C9, 0x0000015 + +gUnk_0810C4DE:: @ 0810C4DE + .incbin "baserom.gba", 0x10C4DE, 0x00000D1 + +gUnk_0810C5AF:: @ 0810C5AF + .incbin "baserom.gba", 0x10C5AF, 0x000000C + +gUnk_0810C5BB:: @ 0810C5BB + .incbin "baserom.gba", 0x10C5BB, 0x0000008 + +gUnk_0810C5C3:: @ 0810C5C3 + .incbin "baserom.gba", 0x10C5C3, 0x00000AB + +gUnk_0810C66E:: @ 0810C66E + .incbin "baserom.gba", 0x10C66E, 0x000001E + +gUnk_0810C68C:: @ 0810C68C + .incbin "baserom.gba", 0x10C68C, 0x000000C + +gUnk_0810C698:: @ 0810C698 + .incbin "baserom.gba", 0x10C698, 0x000004D + +gUnk_0810C6E5:: @ 0810C6E5 + .incbin "baserom.gba", 0x10C6E5, 0x000008D + +gUnk_0810C772:: @ 0810C772 + .incbin "baserom.gba", 0x10C772, 0x0000003 + +gUnk_0810C775:: @ 0810C775 + .incbin "baserom.gba", 0x10C775, 0x000000A + +gUnk_0810C77F:: @ 0810C77F + .incbin "baserom.gba", 0x10C77F, 0x000002D + +gUnk_0810C7AC:: @ 0810C7AC + .incbin "baserom.gba", 0x10C7AC, 0x0000008 + +gUnk_0810C7B4:: @ 0810C7B4 + .incbin "baserom.gba", 0x10C7B4, 0x000000A + +gUnk_0810C7BE:: @ 0810C7BE + .incbin "baserom.gba", 0x10C7BE, 0x000000B + +gUnk_0810C7C9:: @ 0810C7C9 + .incbin "baserom.gba", 0x10C7C9, 0x000000B + +gUnk_0810C7D4:: @ 0810C7D4 + .incbin "baserom.gba", 0x10C7D4, 0x0000030 + +gMailboxBehaviors:: @ 0810C804 + .incbin "baserom.gba", 0x10C804, 0x0000010 + +gUnk_0810C814:: @ 0810C814 + .incbin "baserom.gba", 0x10C814, 0x0000005 + +gUnk_0810C819:: @ 0810C819 + .incbin "baserom.gba", 0x10C819, 0x0000029 + +gUnk_0810C842:: @ 0810C842 + .incbin "baserom.gba", 0x10C842, 0x0000008 + +gUnk_0810C84A:: @ 0810C84A + .incbin "baserom.gba", 0x10C84A, 0x000001E + +gUnk_0810C868:: @ 0810C868 + .incbin "baserom.gba", 0x10C868, 0x0000024 + +gUnk_0810C88C:: @ 0810C88C + .incbin "baserom.gba", 0x10C88C, 0x0000008 + +gUnk_0810C894:: @ 0810C894 + .incbin "baserom.gba", 0x10C894, 0x0000008 + +gUnk_0810C89C:: @ 0810C89C + .incbin "baserom.gba", 0x10C89C, 0x0000011 + +gUnk_0810C8AD:: @ 0810C8AD + .incbin "baserom.gba", 0x10C8AD, 0x0000027 + +gUnk_0810C8D4:: @ 0810C8D4 + .incbin "baserom.gba", 0x10C8D4, 0x000000C + +gUnk_0810C8E0:: @ 0810C8E0 + .incbin "baserom.gba", 0x10C8E0, 0x0000010 + +gUnk_0810C8F0:: @ 0810C8F0 + .incbin "baserom.gba", 0x10C8F0, 0x0000078 + +gUnk_0810C968:: @ 0810C968 + .incbin "baserom.gba", 0x10C968, 0x000003D + +gUnk_0810C9A5:: @ 0810C9A5 + .incbin "baserom.gba", 0x10C9A5, 0x0000005 + +gUnk_0810C9AA:: @ 0810C9AA + .incbin "baserom.gba", 0x10C9AA, 0x0000005 + +gUnk_0810C9AF:: @ 0810C9AF + .incbin "baserom.gba", 0x10C9AF, 0x0000005 + +gUnk_0810C9B4:: @ 0810C9B4 + .incbin "baserom.gba", 0x10C9B4, 0x000003D + +gUnk_0810C9F1:: @ 0810C9F1 + .incbin "baserom.gba", 0x10C9F1, 0x000003D + +gUnk_0810CA2E:: @ 0810CA2E + .incbin "baserom.gba", 0x10CA2E, 0x000003E + +gUnk_0810CA6C:: @ 0810CA6C + .incbin "baserom.gba", 0x10CA6C, 0x0000034 + +gUnk_0810CAA0:: @ 0810CAA0 + .incbin "baserom.gba", 0x10CAA0, 0x000000C + +gUnk_0810CAAC:: @ 0810CAAC + .incbin "baserom.gba", 0x10CAAC, 0x0000050 + +gUnk_0810CAFC:: @ 0810CAFC + .incbin "baserom.gba", 0x10CAFC, 0x0000049 + +gUnk_0810CB45:: @ 0810CB45 + .incbin "baserom.gba", 0x10CB45, 0x0000005 + +gUnk_0810CB4A:: @ 0810CB4A + .incbin "baserom.gba", 0x10CB4A, 0x0000005 + +gUnk_0810CB4F:: @ 0810CB4F + .incbin "baserom.gba", 0x10CB4F, 0x0000005 + +gUnk_0810CB54:: @ 0810CB54 + .incbin "baserom.gba", 0x10CB54, 0x0000018 + +gUnk_0810CB6C:: @ 0810CB6C + .incbin "baserom.gba", 0x10CB6C, 0x000000C + +gUnk_0810CB78:: @ 0810CB78 + .incbin "baserom.gba", 0x10CB78, 0x0000048 + +gUnk_0810CBC0:: @ 0810CBC0 + .incbin "baserom.gba", 0x10CBC0, 0x000000D + +gUnk_0810CBCD:: @ 0810CBCD + .incbin "baserom.gba", 0x10CBCD, 0x000000B + +gUnk_0810CBD8:: @ 0810CBD8 + .incbin "baserom.gba", 0x10CBD8, 0x000000C + +gUnk_0810CBE4:: @ 0810CBE4 + .incbin "baserom.gba", 0x10CBE4, 0x0000020 + +gUnk_0810CC04:: @ 0810CC04 + .incbin "baserom.gba", 0x10CC04, 0x0000004 + +gUnk_0810CC08:: @ 0810CC08 + .incbin "baserom.gba", 0x10CC08, 0x0000180 + +gUnk_0810CD88:: @ 0810CD88 + .incbin "baserom.gba", 0x10CD88, 0x0000018 + +gUnk_0810CDA0:: @ 0810CDA0 + .incbin "baserom.gba", 0x10CDA0, 0x0000011 + +gUnk_0810CDB1:: @ 0810CDB1 + .incbin "baserom.gba", 0x10CDB1, 0x0000011 + +gUnk_0810CDC2:: @ 0810CDC2 + .incbin "baserom.gba", 0x10CDC2, 0x0000012 + +gUnk_0810CDD4:: @ 0810CDD4 + .incbin "baserom.gba", 0x10CDD4, 0x0000024 + +gUnk_0810CDF8:: @ 0810CDF8 + .incbin "baserom.gba", 0x10CDF8, 0x000000C + +gUnk_0810CE04:: @ 0810CE04 + .incbin "baserom.gba", 0x10CE04, 0x0000050 + +gUnk_0810CE54:: @ 0810CE54 + .incbin "baserom.gba", 0x10CE54, 0x0000013 + +gUnk_0810CE67:: @ 0810CE67 + .incbin "baserom.gba", 0x10CE67, 0x000003A + +gUnk_0810CEA1:: @ 0810CEA1 + .incbin "baserom.gba", 0x10CEA1, 0x000004D + +gUnk_0810CEEE:: @ 0810CEEE + .incbin "baserom.gba", 0x10CEEE, 0x0000021 + +gUnk_0810CF0F:: @ 0810CF0F + .incbin "baserom.gba", 0x10CF0F, 0x0000005 + +gUnk_0810CF14:: @ 0810CF14 + .incbin "baserom.gba", 0x10CF14, 0x0000005 + +gUnk_0810CF19:: @ 0810CF19 + .incbin "baserom.gba", 0x10CF19, 0x0000007 + +gUnk_0810CF20:: @ 0810CF20 + .incbin "baserom.gba", 0x10CF20, 0x000002A + +gUnk_0810CF4A:: @ 0810CF4A + .incbin "baserom.gba", 0x10CF4A, 0x0000002 + +gUnk_0810CF4C:: @ 0810CF4C + .incbin "baserom.gba", 0x10CF4C, 0x000002B + +gUnk_0810CF77:: @ 0810CF77 + .incbin "baserom.gba", 0x10CF77, 0x0000010 + +gUnk_0810CF87:: @ 0810CF87 + .incbin "baserom.gba", 0x10CF87, 0x0000057 + +gUnk_0810CFDE:: @ 0810CFDE + .incbin "baserom.gba", 0x10CFDE, 0x0000039 + +gUnk_0810D017:: @ 0810D017 + .incbin "baserom.gba", 0x10D017, 0x000008D + +gUnk_0810D0A4:: @ 0810D0A4 + .incbin "baserom.gba", 0x10D0A4, 0x0000008 + +gUnk_0810D0AC:: @ 0810D0AC + .incbin "baserom.gba", 0x10D0AC, 0x000001E + +gUnk_0810D0CA:: @ 0810D0CA + .incbin "baserom.gba", 0x10D0CA, 0x0000009 + +gUnk_0810D0D3:: @ 0810D0D3 + .incbin "baserom.gba", 0x10D0D3, 0x0000079 + +gUnk_0810D14C:: @ 0810D14C + .incbin "baserom.gba", 0x10D14C, 0x0000227 + +gUnk_0810D373:: @ 0810D373 + .incbin "baserom.gba", 0x10D373, 0x0000003 + +gUnk_0810D376:: @ 0810D376 + .incbin "baserom.gba", 0x10D376, 0x0000013 + +gUnk_0810D389:: @ 0810D389 + .incbin "baserom.gba", 0x10D389, 0x000003E + +gUnk_0810D3C7:: @ 0810D3C7 + .incbin "baserom.gba", 0x10D3C7, 0x0000040 + +gUnk_0810D407:: @ 0810D407 + .incbin "baserom.gba", 0x10D407, 0x00000C7 + +gUnk_0810D4CE:: @ 0810D4CE + .incbin "baserom.gba", 0x10D4CE, 0x0000007 + +gUnk_0810D4D5:: @ 0810D4D5 + .incbin "baserom.gba", 0x10D4D5, 0x000003C + +gUnk_0810D511:: @ 0810D511 + .incbin "baserom.gba", 0x10D511, 0x0000006 + +gUnk_0810D517:: @ 0810D517 + .incbin "baserom.gba", 0x10D517, 0x0000039 + +gUnk_0810D550:: @ 0810D550 + .incbin "baserom.gba", 0x10D550, 0x0000024 + +gUnk_0810D574:: @ 0810D574 + .incbin "baserom.gba", 0x10D574, 0x000005F + +gUnk_0810D5D3:: @ 0810D5D3 + .incbin "baserom.gba", 0x10D5D3, 0x00000DE + +gUnk_0810D6B1:: @ 0810D6B1 + .incbin "baserom.gba", 0x10D6B1, 0x0000056 + +gUnk_0810D707:: @ 0810D707 + .incbin "baserom.gba", 0x10D707, 0x00000D2 + +gUnk_0810D7D9:: @ 0810D7D9 + .incbin "baserom.gba", 0x10D7D9, 0x000002E + +gUnk_0810D807:: @ 0810D807 + .incbin "baserom.gba", 0x10D807, 0x0000021 + +gUnk_0810D828:: @ 0810D828 + .incbin "baserom.gba", 0x10D828, 0x00000DF + +gUnk_0810D907:: @ 0810D907 + .incbin "baserom.gba", 0x10D907, 0x0000100 + +gUnk_0810DA07:: @ 0810DA07 + .incbin "baserom.gba", 0x10DA07, 0x0000007 + +gUnk_0810DA0E:: @ 0810DA0E + .incbin "baserom.gba", 0x10DA0E, 0x00000B2 + +gUnk_0810DAC0:: @ 0810DAC0 + .incbin "baserom.gba", 0x10DAC0, 0x0000041 + +gUnk_0810DB01:: @ 0810DB01 + .incbin "baserom.gba", 0x10DB01, 0x0000003 + +gUnk_0810DB04:: @ 0810DB04 + .incbin "baserom.gba", 0x10DB04, 0x0000005 + +gUnk_0810DB09:: @ 0810DB09 + .incbin "baserom.gba", 0x10DB09, 0x00000FB + +gUnk_0810DC04:: @ 0810DC04 + .incbin "baserom.gba", 0x10DC04, 0x0000017 + +gUnk_0810DC1B:: @ 0810DC1B + .incbin "baserom.gba", 0x10DC1B, 0x00000C0 + +gUnk_0810DCDB:: @ 0810DCDB + .incbin "baserom.gba", 0x10DCDB, 0x0000001 + +gUnk_0810DCDC:: @ 0810DCDC + .incbin "baserom.gba", 0x10DCDC, 0x000012B + +gUnk_0810DE07:: @ 0810DE07 + .incbin "baserom.gba", 0x10DE07, 0x0000046 + +gUnk_0810DE4D:: @ 0810DE4D + .incbin "baserom.gba", 0x10DE4D, 0x0000293 + +gUnk_0810E0E0:: @ 0810E0E0 + .incbin "baserom.gba", 0x10E0E0, 0x0000011 + +gUnk_0810E0F1:: @ 0810E0F1 + .incbin "baserom.gba", 0x10E0F1, 0x000000C + +gUnk_0810E0FD:: @ 0810E0FD + .incbin "baserom.gba", 0x10E0FD, 0x00000C6 + +gUnk_0810E1C3:: @ 0810E1C3 + .incbin "baserom.gba", 0x10E1C3, 0x000002D + +gUnk_0810E1F0:: @ 0810E1F0 + .incbin "baserom.gba", 0x10E1F0, 0x00000FD + +gUnk_0810E2ED:: @ 0810E2ED + .incbin "baserom.gba", 0x10E2ED, 0x0000116 + +gUnk_0810E403:: @ 0810E403 + .incbin "baserom.gba", 0x10E403, 0x000000A + +gUnk_0810E40D:: @ 0810E40D + .incbin "baserom.gba", 0x10E40D, 0x0000009 + +gUnk_0810E416:: @ 0810E416 + .incbin "baserom.gba", 0x10E416, 0x0000072 + +gUnk_0810E488:: @ 0810E488 + .incbin "baserom.gba", 0x10E488, 0x000008E + +gUnk_0810E516:: @ 0810E516 + .incbin "baserom.gba", 0x10E516, 0x000007B + +gUnk_0810E591:: @ 0810E591 + .incbin "baserom.gba", 0x10E591, 0x000005A + +gUnk_0810E5EB:: @ 0810E5EB + .incbin "baserom.gba", 0x10E5EB, 0x000001C + +gUnk_0810E607:: @ 0810E607 + .incbin "baserom.gba", 0x10E607, 0x00000E1 + +gUnk_0810E6E8:: @ 0810E6E8 + .incbin "baserom.gba", 0x10E6E8, 0x0000021 + +gUnk_0810E709:: @ 0810E709 + .incbin "baserom.gba", 0x10E709, 0x00000DB + +gUnk_0810E7E4:: @ 0810E7E4 + .incbin "baserom.gba", 0x10E7E4, 0x000000B + +gUnk_0810E7EF:: @ 0810E7EF + .incbin "baserom.gba", 0x10E7EF, 0x0000009 + +gUnk_0810E7F8:: @ 0810E7F8 + .incbin "baserom.gba", 0x10E7F8, 0x000000F + +gUnk_0810E807:: @ 0810E807 + .incbin "baserom.gba", 0x10E807, 0x0000001 + +gUnk_0810E808:: @ 0810E808 + .incbin "baserom.gba", 0x10E808, 0x00000F0 + +gUnk_0810E8F8:: @ 0810E8F8 + .incbin "baserom.gba", 0x10E8F8, 0x00000F8 + +gUnk_0810E9F0:: @ 0810E9F0 + .incbin "baserom.gba", 0x10E9F0, 0x0000100 + +gUnk_0810EAF0:: @ 0810EAF0 + .incbin "baserom.gba", 0x10EAF0, 0x000000E + +gUnk_0810EAFE:: @ 0810EAFE + .incbin "baserom.gba", 0x10EAFE, 0x000003E + +gUnk_0810EB3C:: @ 0810EB3C + .incbin "baserom.gba", 0x10EB3C, 0x000001F + +gUnk_0810EB5B:: @ 0810EB5B + .incbin "baserom.gba", 0x10EB5B, 0x0000064 + +gUnk_0810EBBF:: @ 0810EBBF + .incbin "baserom.gba", 0x10EBBF, 0x0000010 + +gUnk_0810EBCF:: @ 0810EBCF + .incbin "baserom.gba", 0x10EBCF, 0x0000010 + +gUnk_0810EBDF:: @ 0810EBDF + .incbin "baserom.gba", 0x10EBDF, 0x0000029 + +gUnk_0810EC08:: @ 0810EC08 + .incbin "baserom.gba", 0x10EC08, 0x00000FC + +gUnk_0810ED04:: @ 0810ED04 + .incbin "baserom.gba", 0x10ED04, 0x0000005 + +gUnk_0810ED09:: @ 0810ED09 + .incbin "baserom.gba", 0x10ED09, 0x00000E0 + +gUnk_0810EDE9:: @ 0810EDE9 + .incbin "baserom.gba", 0x10EDE9, 0x0000008 + +gUnk_0810EDF1:: @ 0810EDF1 + .incbin "baserom.gba", 0x10EDF1, 0x0000036 + +gUnk_0810EE27:: @ 0810EE27 + .incbin "baserom.gba", 0x10EE27, 0x0000056 + +gUnk_0810EE7D:: @ 0810EE7D + .incbin "baserom.gba", 0x10EE7D, 0x0000080 + +gUnk_0810EEFD:: @ 0810EEFD + .incbin "baserom.gba", 0x10EEFD, 0x0000148 + +gUnk_0810F045:: @ 0810F045 + .incbin "baserom.gba", 0x10F045, 0x00000AA + +gUnk_0810F0EF:: @ 0810F0EF + .incbin "baserom.gba", 0x10F0EF, 0x0000001 + +gUnk_0810F0F0:: @ 0810F0F0 + .incbin "baserom.gba", 0x10F0F0, 0x0000208 + +gUnk_0810F2F8:: @ 0810F2F8 + .incbin "baserom.gba", 0x10F2F8, 0x0000006 + +gUnk_0810F2FE:: @ 0810F2FE + .incbin "baserom.gba", 0x10F2FE, 0x0000100 + +gUnk_0810F3FE:: @ 0810F3FE + .incbin "baserom.gba", 0x10F3FE, 0x0000002 + +gUnk_0810F400:: @ 0810F400 + .incbin "baserom.gba", 0x10F400, 0x00000E6 + +gUnk_0810F4E6:: @ 0810F4E6 + .incbin "baserom.gba", 0x10F4E6, 0x000000B + +gUnk_0810F4F1:: @ 0810F4F1 + .incbin "baserom.gba", 0x10F4F1, 0x0000007 + +gUnk_0810F4F8:: @ 0810F4F8 + .incbin "baserom.gba", 0x10F4F8, 0x000002C + +gUnk_0810F524:: @ 0810F524 + .incbin "baserom.gba", 0x10F524, 0x0000020 + +gUnk_0810F544:: @ 0810F544 + .incbin "baserom.gba", 0x10F544, 0x000000C + +gUnk_0810F550:: @ 0810F550 + .incbin "baserom.gba", 0x10F550, 0x0000010 + +gUnk_0810F560:: @ 0810F560 + .incbin "baserom.gba", 0x10F560, 0x000003A + +gUnk_0810F59A:: @ 0810F59A + .incbin "baserom.gba", 0x10F59A, 0x000003A + +gUnk_0810F5D4:: @ 0810F5D4 + .incbin "baserom.gba", 0x10F5D4, 0x000001F + +gUnk_0810F5F3:: @ 0810F5F3 + .incbin "baserom.gba", 0x10F5F3, 0x0000005 + +gUnk_0810F5F8:: @ 0810F5F8 + .incbin "baserom.gba", 0x10F5F8, 0x0000016 + +gUnk_0810F60E:: @ 0810F60E + .incbin "baserom.gba", 0x10F60E, 0x0000005 + +gUnk_0810F613:: @ 0810F613 + .incbin "baserom.gba", 0x10F613, 0x0000007 + +gUnk_0810F61A:: @ 0810F61A + .incbin "baserom.gba", 0x10F61A, 0x000002E + +gUnk_0810F648:: @ 0810F648 + .incbin "baserom.gba", 0x10F648, 0x000003A + +gUnk_0810F682:: @ 0810F682 + .incbin "baserom.gba", 0x10F682, 0x000003A + +gUnk_0810F6BC:: @ 0810F6BC + .incbin "baserom.gba", 0x10F6BC, 0x0000018 + +gUnk_0810F6D4:: @ 0810F6D4 + .incbin "baserom.gba", 0x10F6D4, 0x0000010 + +gUnk_0810F6E4:: @ 0810F6E4 + .incbin "baserom.gba", 0x10F6E4, 0x0000002 + +gUnk_0810F6E6:: @ 0810F6E6 + .incbin "baserom.gba", 0x10F6E6, 0x0000003 + +gUnk_0810F6E9:: @ 0810F6E9 + .incbin "baserom.gba", 0x10F6E9, 0x0000005 + +gUnk_0810F6EE:: @ 0810F6EE + .incbin "baserom.gba", 0x10F6EE, 0x0000001 + +gUnk_0810F6EF:: @ 0810F6EF + .incbin "baserom.gba", 0x10F6EF, 0x0000004 + +gUnk_0810F6F3:: @ 0810F6F3 + .incbin "baserom.gba", 0x10F6F3, 0x0000005 + +gUnk_0810F6F8:: @ 0810F6F8 + .incbin "baserom.gba", 0x10F6F8, 0x0000005 + +gUnk_0810F6FD:: @ 0810F6FD + .incbin "baserom.gba", 0x10F6FD, 0x0000003 + +gUnk_0810F700:: @ 0810F700 + .incbin "baserom.gba", 0x10F700, 0x0000002 + +gUnk_0810F702:: @ 0810F702 + .incbin "baserom.gba", 0x10F702, 0x0000005 + +gUnk_0810F707:: @ 0810F707 + .incbin "baserom.gba", 0x10F707, 0x0000005 + +gUnk_0810F70C:: @ 0810F70C + .incbin "baserom.gba", 0x10F70C, 0x0000011 + +gUnk_0810F71D:: @ 0810F71D + .incbin "baserom.gba", 0x10F71D, 0x0000011 + +gUnk_0810F72E:: @ 0810F72E + .incbin "baserom.gba", 0x10F72E, 0x0000011 + +gUnk_0810F73F:: @ 0810F73F + .incbin "baserom.gba", 0x10F73F, 0x0000011 + +gUnk_0810F750:: @ 0810F750 + .incbin "baserom.gba", 0x10F750, 0x0000011 + +gUnk_0810F761:: @ 0810F761 + .incbin "baserom.gba", 0x10F761, 0x0000011 + +gUnk_0810F772:: @ 0810F772 + .incbin "baserom.gba", 0x10F772, 0x0000011 + +gUnk_0810F783:: @ 0810F783 + .incbin "baserom.gba", 0x10F783, 0x0000011 + +gUnk_0810F794:: @ 0810F794 + .incbin "baserom.gba", 0x10F794, 0x0000005 + +gUnk_0810F799:: @ 0810F799 + .incbin "baserom.gba", 0x10F799, 0x0000025 + +gUnk_0810F7BE:: @ 0810F7BE + .incbin "baserom.gba", 0x10F7BE, 0x0000005 + +gUnk_0810F7C3:: @ 0810F7C3 + .incbin "baserom.gba", 0x10F7C3, 0x0000005 + +gUnk_0810F7C8:: @ 0810F7C8 + .incbin "baserom.gba", 0x10F7C8, 0x0000020 + +gUnk_0810F7E8:: @ 0810F7E8 + .incbin "baserom.gba", 0x10F7E8, 0x0000003 + +gUnk_0810F7EB:: @ 0810F7EB + .incbin "baserom.gba", 0x10F7EB, 0x0000003 + +gUnk_0810F7EE:: @ 0810F7EE + .incbin "baserom.gba", 0x10F7EE, 0x000000A + +gUnk_0810F7F8:: @ 0810F7F8 + .incbin "baserom.gba", 0x10F7F8, 0x0000005 + +gUnk_0810F7FD:: @ 0810F7FD + .incbin "baserom.gba", 0x10F7FD, 0x0000003 + +gUnk_0810F800:: @ 0810F800 + .incbin "baserom.gba", 0x10F800, 0x0000002 + +gUnk_0810F802:: @ 0810F802 + .incbin "baserom.gba", 0x10F802, 0x0000006 + +gUnk_0810F808:: @ 0810F808 + .incbin "baserom.gba", 0x10F808, 0x000000C + +gUnk_0810F814:: @ 0810F814 + .incbin "baserom.gba", 0x10F814, 0x0000060 + +gUnk_0810F874:: @ 0810F874 + .incbin "baserom.gba", 0x10F874, 0x0000018 + +gUnk_0810F88C:: @ 0810F88C + .incbin "baserom.gba", 0x10F88C, 0x0000008 + +gUnk_0810F894:: @ 0810F894 + .incbin "baserom.gba", 0x10F894, 0x0000024 + +gUnk_0810F8B8:: @ 0810F8B8 + .incbin "baserom.gba", 0x10F8B8, 0x0000018 + +gUnk_0810F8D0:: @ 0810F8D0 + .incbin "baserom.gba", 0x10F8D0, 0x0000014 + +gUnk_0810F8E4:: @ 0810F8E4 + .incbin "baserom.gba", 0x10F8E4, 0x0000005 + +gUnk_0810F8E9:: @ 0810F8E9 + .incbin "baserom.gba", 0x10F8E9, 0x0000005 + +gUnk_0810F8EE:: @ 0810F8EE + .incbin "baserom.gba", 0x10F8EE, 0x0000001 + +gUnk_0810F8EF:: @ 0810F8EF + .incbin "baserom.gba", 0x10F8EF, 0x0000004 + +gUnk_0810F8F3:: @ 0810F8F3 + .incbin "baserom.gba", 0x10F8F3, 0x0000001 + +gUnk_0810F8F4:: @ 0810F8F4 + .incbin "baserom.gba", 0x10F8F4, 0x0000004 + +gUnk_0810F8F8:: @ 0810F8F8 + .incbin "baserom.gba", 0x10F8F8, 0x0000001 + +gUnk_0810F8F9:: @ 0810F8F9 + .incbin "baserom.gba", 0x10F8F9, 0x0000010 + +gUnk_0810F909:: @ 0810F909 + .incbin "baserom.gba", 0x10F909, 0x0000011 + +gUnk_0810F91A:: @ 0810F91A + .incbin "baserom.gba", 0x10F91A, 0x0000011 + +gUnk_0810F92B:: @ 0810F92B + .incbin "baserom.gba", 0x10F92B, 0x0000011 + +gUnk_0810F93C:: @ 0810F93C + .incbin "baserom.gba", 0x10F93C, 0x0000008 + +gUnk_0810F944:: @ 0810F944 + .incbin "baserom.gba", 0x10F944, 0x0000028 + +gUnk_0810F96C:: @ 0810F96C + .incbin "baserom.gba", 0x10F96C, 0x0000005 + +gUnk_0810F971:: @ 0810F971 + .incbin "baserom.gba", 0x10F971, 0x0000005 + +gUnk_0810F976:: @ 0810F976 + .incbin "baserom.gba", 0x10F976, 0x0000005 + +gUnk_0810F97B:: @ 0810F97B + .incbin "baserom.gba", 0x10F97B, 0x0000011 + +gUnk_0810F98C:: @ 0810F98C + .incbin "baserom.gba", 0x10F98C, 0x0000024 + +gUnk_0810F9B0:: @ 0810F9B0 + .incbin "baserom.gba", 0x10F9B0, 0x0000005 + +gUnk_0810F9B5:: @ 0810F9B5 + .incbin "baserom.gba", 0x10F9B5, 0x0000005 + +gUnk_0810F9BA:: @ 0810F9BA + .incbin "baserom.gba", 0x10F9BA, 0x0000005 + +gUnk_0810F9BF:: @ 0810F9BF + .incbin "baserom.gba", 0x10F9BF, 0x0000011 + +gUnk_0810F9D0:: @ 0810F9D0 + .incbin "baserom.gba", 0x10F9D0, 0x0000020 + +gUnk_0810F9F0:: @ 0810F9F0 + .incbin "baserom.gba", 0x10F9F0, 0x0000004 + +gUnk_0810F9F4:: @ 0810F9F4 + .incbin "baserom.gba", 0x10F9F4, 0x0000004 + +gUnk_0810F9F8:: @ 0810F9F8 + .incbin "baserom.gba", 0x10F9F8, 0x0000001 + +gUnk_0810F9F9:: @ 0810F9F9 + .incbin "baserom.gba", 0x10F9F9, 0x0000005 + +gUnk_0810F9FE:: @ 0810F9FE + .incbin "baserom.gba", 0x10F9FE, 0x0000002 + +gUnk_0810FA00:: @ 0810FA00 + .incbin "baserom.gba", 0x10FA00, 0x0000003 + +gUnk_0810FA03:: @ 0810FA03 + .incbin "baserom.gba", 0x10FA03, 0x0000011 + +gUnk_0810FA14:: @ 0810FA14 + .incbin "baserom.gba", 0x10FA14, 0x0000018 + +gUnk_0810FA2C:: @ 0810FA2C + .incbin "baserom.gba", 0x10FA2C, 0x000000C + +gUnk_0810FA38:: @ 0810FA38 + .incbin "baserom.gba", 0x10FA38, 0x000000C + +gUnk_0810FA44:: @ 0810FA44 + .incbin "baserom.gba", 0x10FA44, 0x0000010 + +gUnk_0810FA54:: @ 0810FA54 + .incbin "baserom.gba", 0x10FA54, 0x0000006 + +gUnk_0810FA5A:: @ 0810FA5A + .incbin "baserom.gba", 0x10FA5A, 0x0000097 + +gUnk_0810FAF1:: @ 0810FAF1 + .incbin "baserom.gba", 0x10FAF1, 0x0000002 + +gUnk_0810FAF3:: @ 0810FAF3 + .incbin "baserom.gba", 0x10FAF3, 0x0000004 + +gUnk_0810FAF7:: @ 0810FAF7 + .incbin "baserom.gba", 0x10FAF7, 0x000002D + +gUnk_0810FB24:: @ 0810FB24 + .incbin "baserom.gba", 0x10FB24, 0x0000015 + +gUnk_0810FB39:: @ 0810FB39 + .incbin "baserom.gba", 0x10FB39, 0x0000015 + +gUnk_0810FB4E:: @ 0810FB4E + .incbin "baserom.gba", 0x10FB4E, 0x0000015 + +gUnk_0810FB63:: @ 0810FB63 + .incbin "baserom.gba", 0x10FB63, 0x0000015 + +gUnk_0810FB78:: @ 0810FB78 + .incbin "baserom.gba", 0x10FB78, 0x0000005 + +gUnk_0810FB7D:: @ 0810FB7D + .incbin "baserom.gba", 0x10FB7D, 0x0000005 + +gUnk_0810FB82:: @ 0810FB82 + .incbin "baserom.gba", 0x10FB82, 0x0000005 + +gUnk_0810FB87:: @ 0810FB87 + .incbin "baserom.gba", 0x10FB87, 0x0000005 + +gUnk_0810FB8C:: @ 0810FB8C + .incbin "baserom.gba", 0x10FB8C, 0x0000021 + +gUnk_0810FBAD:: @ 0810FBAD + .incbin "baserom.gba", 0x10FBAD, 0x0000023 + +gUnk_0810FBD0:: @ 0810FBD0 + .incbin "baserom.gba", 0x10FBD0, 0x000001B + +gUnk_0810FBEB:: @ 0810FBEB + .incbin "baserom.gba", 0x10FBEB, 0x000000E + +gUnk_0810FBF9:: @ 0810FBF9 + .incbin "baserom.gba", 0x10FBF9, 0x0000003 + +gUnk_0810FBFC:: @ 0810FBFC + .incbin "baserom.gba", 0x10FBFC, 0x000000C + +gUnk_0810FC08:: @ 0810FC08 + .incbin "baserom.gba", 0x10FC08, 0x0000048 + +gUnk_0810FC50:: @ 0810FC50 + .incbin "baserom.gba", 0x10FC50, 0x0000004 + +gUnk_0810FC54:: @ 0810FC54 + .incbin "baserom.gba", 0x10FC54, 0x000000A + +gUnk_0810FC5E:: @ 0810FC5E + .incbin "baserom.gba", 0x10FC5E, 0x000000A + +gUnk_0810FC68:: @ 0810FC68 + .incbin "baserom.gba", 0x10FC68, 0x0000045 + +gUnk_0810FCAD:: @ 0810FCAD + .incbin "baserom.gba", 0x10FCAD, 0x0000021 + +gUnk_0810FCCE:: @ 0810FCCE + .incbin "baserom.gba", 0x10FCCE, 0x0000026 + +gUnk_0810FCF4:: @ 0810FCF4 + .incbin "baserom.gba", 0x10FCF4, 0x0000022 + +gUnk_0810FD16:: @ 0810FD16 + .incbin "baserom.gba", 0x10FD16, 0x0000056 + +gUnk_0810FD6C:: @ 0810FD6C + .incbin "baserom.gba", 0x10FD6C, 0x0000034 + +gUnk_0810FDA0:: @ 0810FDA0 + .incbin "baserom.gba", 0x10FDA0, 0x0000004 + +gUnk_0810FDA4:: @ 0810FDA4 + .incbin "baserom.gba", 0x10FDA4, 0x0000014 + +gUnk_0810FDB8:: @ 0810FDB8 + .incbin "baserom.gba", 0x10FDB8, 0x0000010 + +gUnk_0810FDC8:: @ 0810FDC8 + .incbin "baserom.gba", 0x10FDC8, 0x0000020 + +gUnk_0810FDE8:: @ 0810FDE8 + .incbin "baserom.gba", 0x10FDE8, 0x0000005 + +gUnk_0810FDED:: @ 0810FDED + .incbin "baserom.gba", 0x10FDED, 0x0000005 + +gUnk_0810FDF2:: @ 0810FDF2 + .incbin "baserom.gba", 0x10FDF2, 0x0000005 + +gUnk_0810FDF7:: @ 0810FDF7 + .incbin "baserom.gba", 0x10FDF7, 0x000000C + +gUnk_0810FE03:: @ 0810FE03 + .incbin "baserom.gba", 0x10FE03, 0x0000005 + +gUnk_0810FE08:: @ 0810FE08 + .incbin "baserom.gba", 0x10FE08, 0x0000017 + +gUnk_0810FE1F:: @ 0810FE1F + .incbin "baserom.gba", 0x10FE1F, 0x0000049 + +gUnk_0810FE68:: @ 0810FE68 + .incbin "baserom.gba", 0x10FE68, 0x0000028 + +gUnk_0810FE90:: @ 0810FE90 + .incbin "baserom.gba", 0x10FE90, 0x0000020 + +gUnk_0810FEB0:: @ 0810FEB0 + .incbin "baserom.gba", 0x10FEB0, 0x000000C + +gUnk_0810FEBC:: @ 0810FEBC + .incbin "baserom.gba", 0x10FEBC, 0x0000008 + +gUnk_0810FEC4:: @ 0810FEC4 + .incbin "baserom.gba", 0x10FEC4, 0x0000014 + +gUnk_0810FED8:: @ 0810FED8 + .incbin "baserom.gba", 0x10FED8, 0x0000008 + +gUnk_0810FEE0:: @ 0810FEE0 + .incbin "baserom.gba", 0x10FEE0, 0x0000005 + +gUnk_0810FEE5:: @ 0810FEE5 + .incbin "baserom.gba", 0x10FEE5, 0x0000005 + +gUnk_0810FEEA:: @ 0810FEEA + .incbin "baserom.gba", 0x10FEEA, 0x0000005 + +gUnk_0810FEEF:: @ 0810FEEF + .incbin "baserom.gba", 0x10FEEF, 0x0000002 + +gUnk_0810FEF1:: @ 0810FEF1 + .incbin "baserom.gba", 0x10FEF1, 0x0000003 + +gUnk_0810FEF4:: @ 0810FEF4 + .incbin "baserom.gba", 0x10FEF4, 0x0000001 + +gUnk_0810FEF5:: @ 0810FEF5 + .incbin "baserom.gba", 0x10FEF5, 0x0000003 + +gUnk_0810FEF8:: @ 0810FEF8 + .incbin "baserom.gba", 0x10FEF8, 0x000000B + +gUnk_0810FF03:: @ 0810FF03 + .incbin "baserom.gba", 0x10FF03, 0x0000002 + +gUnk_0810FF05:: @ 0810FF05 + .incbin "baserom.gba", 0x10FF05, 0x000000A + +gUnk_0810FF0F:: @ 0810FF0F + .incbin "baserom.gba", 0x10FF0F, 0x0000001 + +gUnk_0810FF10:: @ 0810FF10 + .incbin "baserom.gba", 0x10FF10, 0x0000006 + +gUnk_0810FF16:: @ 0810FF16 + .incbin "baserom.gba", 0x10FF16, 0x0000011 + +gUnk_0810FF27:: @ 0810FF27 + .incbin "baserom.gba", 0x10FF27, 0x0000001 + +gUnk_0810FF28:: @ 0810FF28 + .incbin "baserom.gba", 0x10FF28, 0x0000010 + +gUnk_0810FF38:: @ 0810FF38 + .incbin "baserom.gba", 0x10FF38, 0x0000003 + +gUnk_0810FF3B:: @ 0810FF3B + .incbin "baserom.gba", 0x10FF3B, 0x0000021 + +gUnk_0810FF5C:: @ 0810FF5C + .incbin "baserom.gba", 0x10FF5C, 0x0000008 + +gUnk_0810FF64:: @ 0810FF64 + .incbin "baserom.gba", 0x10FF64, 0x000000C + +gUnk_0810FF70:: @ 0810FF70 + .incbin "baserom.gba", 0x10FF70, 0x0000005 + +gUnk_0810FF75:: @ 0810FF75 + .incbin "baserom.gba", 0x10FF75, 0x0000005 + +gUnk_0810FF7A:: @ 0810FF7A + .incbin "baserom.gba", 0x10FF7A, 0x0000004 + +gUnk_0810FF7E:: @ 0810FF7E + .incbin "baserom.gba", 0x10FF7E, 0x0000001 + +gUnk_0810FF7F:: @ 0810FF7F + .incbin "baserom.gba", 0x10FF7F, 0x0000005 + +gUnk_0810FF84:: @ 0810FF84 + .incbin "baserom.gba", 0x10FF84, 0x0000021 + +gUnk_0810FFA5:: @ 0810FFA5 + .incbin "baserom.gba", 0x10FFA5, 0x0000011 + +gUnk_0810FFB6:: @ 0810FFB6 + .incbin "baserom.gba", 0x10FFB6, 0x000000B + +gUnk_0810FFC1:: @ 0810FFC1 + .incbin "baserom.gba", 0x10FFC1, 0x0000016 + +gUnk_0810FFD7:: @ 0810FFD7 + .incbin "baserom.gba", 0x10FFD7, 0x000001F + +gUnk_0810FFF6:: @ 0810FFF6 + .incbin "baserom.gba", 0x10FFF6, 0x0000008 + +gUnk_0810FFFE:: @ 0810FFFE + .incbin "baserom.gba", 0x10FFFE, 0x0000002 + +gUnk_08110000:: @ 08110000 + .incbin "baserom.gba", 0x110000, 0x0000007 + +gUnk_08110007:: @ 08110007 + .incbin "baserom.gba", 0x110007, 0x000000D + +gUnk_08110014:: @ 08110014 + .incbin "baserom.gba", 0x110014, 0x0000013 + +gUnk_08110027:: @ 08110027 + .incbin "baserom.gba", 0x110027, 0x0000001 + +gUnk_08110028:: @ 08110028 + .incbin "baserom.gba", 0x110028, 0x0000044 + +gUnk_0811006C:: @ 0811006C + .incbin "baserom.gba", 0x11006C, 0x0000014 + +gUnk_08110080:: @ 08110080 + .incbin "baserom.gba", 0x110080, 0x0000008 + +gUnk_08110088:: @ 08110088 + .incbin "baserom.gba", 0x110088, 0x0000005 + +gUnk_0811008D:: @ 0811008D + .incbin "baserom.gba", 0x11008D, 0x0000005 + +gUnk_08110092:: @ 08110092 + .incbin "baserom.gba", 0x110092, 0x0000005 + +gUnk_08110097:: @ 08110097 + .incbin "baserom.gba", 0x110097, 0x0000021 + +gUnk_081100B8:: @ 081100B8 + .incbin "baserom.gba", 0x1100B8, 0x000002C + +gUnk_081100E4:: @ 081100E4 + .incbin "baserom.gba", 0x1100E4, 0x000002C + +gUnk_08110110:: @ 08110110 + .incbin "baserom.gba", 0x110110, 0x0000008 + +gMilkCartBehaviors:: @ 08110118 + .incbin "baserom.gba", 0x110118, 0x0000008 + +gUnk_08110120:: @ 08110120 + .incbin "baserom.gba", 0x110120, 0x0000005 + +gUnk_08110125:: @ 08110125 + .incbin "baserom.gba", 0x110125, 0x0000013 + +gUnk_08110138:: @ 08110138 + .incbin "baserom.gba", 0x110138, 0x0000009 + +gUnk_08110141:: @ 08110141 + .incbin "baserom.gba", 0x110141, 0x000001B + +gUnk_0811015C:: @ 0811015C + .incbin "baserom.gba", 0x11015C, 0x0000008 + +gUnk_08110164:: @ 08110164 + .incbin "baserom.gba", 0x110164, 0x0000018 + +gUnk_0811017C:: @ 0811017C + .incbin "baserom.gba", 0x11017C, 0x000000C + +gUnk_08110188:: @ 08110188 + .incbin "baserom.gba", 0x110188, 0x0000055 + +gUnk_081101DD:: @ 081101DD + .incbin "baserom.gba", 0x1101DD, 0x000001A + +gUnk_081101F7:: @ 081101F7 + .incbin "baserom.gba", 0x1101F7, 0x0000037 + +gUnk_0811022E:: @ 0811022E + .incbin "baserom.gba", 0x11022E, 0x0000046 + +gUnk_08110274:: @ 08110274 + .incbin "baserom.gba", 0x110274, 0x000000C + +gUnk_08110280:: @ 08110280 + .incbin "baserom.gba", 0x110280, 0x0000080 + +gUnk_08110300:: @ 08110300 + .incbin "baserom.gba", 0x110300, 0x0000011 + +gUnk_08110311:: @ 08110311 + .incbin "baserom.gba", 0x110311, 0x0000011 + +gUnk_08110322:: @ 08110322 + .incbin "baserom.gba", 0x110322, 0x0000011 + +gUnk_08110333:: @ 08110333 + .incbin "baserom.gba", 0x110333, 0x0000009 + +gUnk_0811033C:: @ 0811033C + .incbin "baserom.gba", 0x11033C, 0x0000018 + +gUnk_08110354:: @ 08110354 + .incbin "baserom.gba", 0x110354, 0x000000C + +gUnk_08110360:: @ 08110360 + .incbin "baserom.gba", 0x110360, 0x000000C + +gUnk_0811036C:: @ 0811036C + .incbin "baserom.gba", 0x11036C, 0x0000014 + +gUnk_08110380:: @ 08110380 + .incbin "baserom.gba", 0x110380, 0x0000010 + +gUnk_08110390:: @ 08110390 + .incbin "baserom.gba", 0x110390, 0x0000040 + +gUnk_081103D0:: @ 081103D0 + .incbin "baserom.gba", 0x1103D0, 0x000000B + +gUnk_081103DB:: @ 081103DB + .incbin "baserom.gba", 0x1103DB, 0x0000005 + +gUnk_081103E0:: @ 081103E0 + .incbin "baserom.gba", 0x1103E0, 0x0000004 + +gUnk_081103E4:: @ 081103E4 + .incbin "baserom.gba", 0x1103E4, 0x0000005 + +gUnk_081103E9:: @ 081103E9 + .incbin "baserom.gba", 0x1103E9, 0x0000005 + +gUnk_081103EE:: @ 081103EE + .incbin "baserom.gba", 0x1103EE, 0x0000005 + +gUnk_081103F3:: @ 081103F3 + .incbin "baserom.gba", 0x1103F3, 0x0000005 + +gUnk_081103F8:: @ 081103F8 + .incbin "baserom.gba", 0x1103F8, 0x0000006 + +gUnk_081103FE:: @ 081103FE + .incbin "baserom.gba", 0x1103FE, 0x0000002 + +gUnk_08110400:: @ 08110400 + .incbin "baserom.gba", 0x110400, 0x0000009 + +gUnk_08110409:: @ 08110409 + .incbin "baserom.gba", 0x110409, 0x0000011 + +gUnk_0811041A:: @ 0811041A + .incbin "baserom.gba", 0x11041A, 0x0000011 + +gUnk_0811042B:: @ 0811042B + .incbin "baserom.gba", 0x11042B, 0x0000011 + +gUnk_0811043C:: @ 0811043C + .incbin "baserom.gba", 0x11043C, 0x0000005 + +gUnk_08110441:: @ 08110441 + .incbin "baserom.gba", 0x110441, 0x0000005 + +gUnk_08110446:: @ 08110446 + .incbin "baserom.gba", 0x110446, 0x0000005 + +gUnk_0811044B:: @ 0811044B + .incbin "baserom.gba", 0x11044B, 0x0000029 + +gUnk_08110474:: @ 08110474 + .incbin "baserom.gba", 0x110474, 0x0000005 + +gUnk_08110479:: @ 08110479 + .incbin "baserom.gba", 0x110479, 0x0000005 + +gUnk_0811047E:: @ 0811047E + .incbin "baserom.gba", 0x11047E, 0x0000006 + +gUnk_08110484:: @ 08110484 + .incbin "baserom.gba", 0x110484, 0x0000044 + +gUnk_081104C8:: @ 081104C8 + .incbin "baserom.gba", 0x1104C8, 0x0000018 + +gUnk_081104E0:: @ 081104E0 + .incbin "baserom.gba", 0x1104E0, 0x000000C + +gUnk_081104EC:: @ 081104EC + .incbin "baserom.gba", 0x1104EC, 0x000000C + +gUnk_081104F8:: @ 081104F8 + .incbin "baserom.gba", 0x1104F8, 0x0000008 + +gUnk_08110500:: @ 08110500 + .incbin "baserom.gba", 0x110500, 0x0000005 + +gUnk_08110505:: @ 08110505 + .incbin "baserom.gba", 0x110505, 0x0000005 + +gUnk_0811050A:: @ 0811050A + .incbin "baserom.gba", 0x11050A, 0x0000004 + +gUnk_0811050E:: @ 0811050E + .incbin "baserom.gba", 0x11050E, 0x0000001 + +gUnk_0811050F:: @ 0811050F + .incbin "baserom.gba", 0x11050F, 0x0000005 + +gUnk_08110514:: @ 08110514 + .incbin "baserom.gba", 0x110514, 0x0000021 + +gUnk_08110535:: @ 08110535 + .incbin "baserom.gba", 0x110535, 0x0000021 + +gUnk_08110556:: @ 08110556 + .incbin "baserom.gba", 0x110556, 0x0000021 + +gUnk_08110577:: @ 08110577 + .incbin "baserom.gba", 0x110577, 0x0000009 + +gUnk_08110580:: @ 08110580 + .incbin "baserom.gba", 0x110580, 0x0000018 + +gUnk_08110598:: @ 08110598 + .incbin "baserom.gba", 0x110598, 0x0000011 + +gUnk_081105A9:: @ 081105A9 + .incbin "baserom.gba", 0x1105A9, 0x0000011 + +gUnk_081105BA:: @ 081105BA + .incbin "baserom.gba", 0x1105BA, 0x0000011 + +gUnk_081105CB:: @ 081105CB + .incbin "baserom.gba", 0x1105CB, 0x0000011 + +gUnk_081105DC:: @ 081105DC + .incbin "baserom.gba", 0x1105DC, 0x0000005 + +gUnk_081105E1:: @ 081105E1 + .incbin "baserom.gba", 0x1105E1, 0x0000010 + +gUnk_081105F1:: @ 081105F1 + .incbin "baserom.gba", 0x1105F1, 0x0000017 + +gUnk_08110608:: @ 08110608 + .incbin "baserom.gba", 0x110608, 0x0000004 + +gUnk_0811060C:: @ 0811060C + .incbin "baserom.gba", 0x11060C, 0x0000038 + +gUnk_08110644:: @ 08110644 + .incbin "baserom.gba", 0x110644, 0x000000C + +gUnk_08110650:: @ 08110650 + .incbin "baserom.gba", 0x110650, 0x0000008 + +gUnk_08110658:: @ 08110658 + .incbin "baserom.gba", 0x110658, 0x0000005 + +gUnk_0811065D:: @ 0811065D + .incbin "baserom.gba", 0x11065D, 0x0000005 + +gUnk_08110662:: @ 08110662 + .incbin "baserom.gba", 0x110662, 0x0000005 + +gUnk_08110667:: @ 08110667 + .incbin "baserom.gba", 0x110667, 0x0000005 + +gUnk_0811066C:: @ 0811066C + .incbin "baserom.gba", 0x11066C, 0x0000011 + +gUnk_0811067D:: @ 0811067D + .incbin "baserom.gba", 0x11067D, 0x0000005 + +gUnk_08110682:: @ 08110682 + .incbin "baserom.gba", 0x110682, 0x0000026 + +gUnk_081106A8:: @ 081106A8 + .incbin "baserom.gba", 0x1106A8, 0x000002C + +gUnk_081106D4:: @ 081106D4 + .incbin "baserom.gba", 0x1106D4, 0x000000C + +gUnk_081106E0:: @ 081106E0 + .incbin "baserom.gba", 0x1106E0, 0x0000008 + +gUnk_081106E8:: @ 081106E8 + .incbin "baserom.gba", 0x1106E8, 0x0000005 + +gUnk_081106ED:: @ 081106ED + .incbin "baserom.gba", 0x1106ED, 0x0000011 + +gUnk_081106FE:: @ 081106FE + .incbin "baserom.gba", 0x1106FE, 0x0000012 + +gUnk_08110710:: @ 08110710 + .incbin "baserom.gba", 0x110710, 0x0000024 + +gUnk_08110734:: @ 08110734 + .incbin "baserom.gba", 0x110734, 0x0000008 + +gUnk_0811073C:: @ 0811073C + .incbin "baserom.gba", 0x11073C, 0x0000005 + +gUnk_08110741:: @ 08110741 + .incbin "baserom.gba", 0x110741, 0x0000005 + +gUnk_08110746:: @ 08110746 + .incbin "baserom.gba", 0x110746, 0x0000005 + +gUnk_0811074B:: @ 0811074B + .incbin "baserom.gba", 0x11074B, 0x0000005 + +gUnk_08110750:: @ 08110750 + .incbin "baserom.gba", 0x110750, 0x0000011 + +gUnk_08110761:: @ 08110761 + .incbin "baserom.gba", 0x110761, 0x0000011 + +gUnk_08110772:: @ 08110772 + .incbin "baserom.gba", 0x110772, 0x0000011 + +gUnk_08110783:: @ 08110783 + .incbin "baserom.gba", 0x110783, 0x0000011 + +gUnk_08110794:: @ 08110794 + .incbin "baserom.gba", 0x110794, 0x0000005 + +gUnk_08110799:: @ 08110799 + .incbin "baserom.gba", 0x110799, 0x0000011 + +gUnk_081107AA:: @ 081107AA + .incbin "baserom.gba", 0x1107AA, 0x0000009 + +gUnk_081107B3:: @ 081107B3 + .incbin "baserom.gba", 0x1107B3, 0x0000009 + +gUnk_081107BC:: @ 081107BC + .incbin "baserom.gba", 0x1107BC, 0x0000010 + +gUnk_081107CC:: @ 081107CC + .incbin "baserom.gba", 0x1107CC, 0x000003C + +gUnk_08110808:: @ 08110808 + .incbin "baserom.gba", 0x110808, 0x0000038 + +gUnk_08110840:: @ 08110840 + .incbin "baserom.gba", 0x110840, 0x0000019 + +gUnk_08110859:: @ 08110859 + .incbin "baserom.gba", 0x110859, 0x0000005 + +gUnk_0811085E:: @ 0811085E + .incbin "baserom.gba", 0x11085E, 0x0000019 + +gUnk_08110877:: @ 08110877 + .incbin "baserom.gba", 0x110877, 0x0000005 + +gUnk_0811087C:: @ 0811087C + .incbin "baserom.gba", 0x11087C, 0x000001E + +gUnk_0811089A:: @ 0811089A + .incbin "baserom.gba", 0x11089A, 0x0000019 + +gUnk_081108B3:: @ 081108B3 + .incbin "baserom.gba", 0x1108B3, 0x0000019 + +gUnk_081108CC:: @ 081108CC + .incbin "baserom.gba", 0x1108CC, 0x0000019 + +gUnk_081108E5:: @ 081108E5 + .incbin "baserom.gba", 0x1108E5, 0x000000D + +gUnk_081108F2:: @ 081108F2 + .incbin "baserom.gba", 0x1108F2, 0x000000D + +gUnk_081108FF:: @ 081108FF + .incbin "baserom.gba", 0x1108FF, 0x000000D + +gUnk_0811090C:: @ 0811090C + .incbin "baserom.gba", 0x11090C, 0x000000C + +gUnk_08110918:: @ 08110918 + .incbin "baserom.gba", 0x110918, 0x0000005 + +gUnk_0811091D:: @ 0811091D + .incbin "baserom.gba", 0x11091D, 0x0000005 + +gUnk_08110922:: @ 08110922 + .incbin "baserom.gba", 0x110922, 0x0000005 + +gUnk_08110927:: @ 08110927 + .incbin "baserom.gba", 0x110927, 0x0000005 + +gUnk_0811092C:: @ 0811092C + .incbin "baserom.gba", 0x11092C, 0x0000005 + +gUnk_08110931:: @ 08110931 + .incbin "baserom.gba", 0x110931, 0x00000C1 + +gUnk_081109F2:: @ 081109F2 + .incbin "baserom.gba", 0x1109F2, 0x0000006 + +gUnk_081109F8:: @ 081109F8 + .incbin "baserom.gba", 0x1109F8, 0x00000DF + +gUnk_08110AD7:: @ 08110AD7 + .incbin "baserom.gba", 0x110AD7, 0x0000015 + +gUnk_08110AEC:: @ 08110AEC + .incbin "baserom.gba", 0x110AEC, 0x0000010 + +gUnk_08110AFC:: @ 08110AFC + .incbin "baserom.gba", 0x110AFC, 0x0000008 + +gUnk_08110B04:: @ 08110B04 + .incbin "baserom.gba", 0x110B04, 0x0000001 + +gUnk_08110B05:: @ 08110B05 + .incbin "baserom.gba", 0x110B05, 0x000004B + +gUnk_08110B50:: @ 08110B50 + .incbin "baserom.gba", 0x110B50, 0x0000088 + +gUnk_08110BD8:: @ 08110BD8 + .incbin "baserom.gba", 0x110BD8, 0x0000008 + +gUnk_08110BE0:: @ 08110BE0 + .incbin "baserom.gba", 0x110BE0, 0x000001F + +gUnk_08110BFF:: @ 08110BFF + .incbin "baserom.gba", 0x110BFF, 0x0000001 + +gUnk_08110C00:: @ 08110C00 + .incbin "baserom.gba", 0x110C00, 0x0000003 + +gUnk_08110C03:: @ 08110C03 + .incbin "baserom.gba", 0x110C03, 0x0000009 + +gUnk_08110C0C:: @ 08110C0C + .incbin "baserom.gba", 0x110C0C, 0x0000004 + +gUnk_08110C10:: @ 08110C10 + .incbin "baserom.gba", 0x110C10, 0x0000050 + +gUnk_08110C60:: @ 08110C60 + .incbin "baserom.gba", 0x110C60, 0x0000015 + +gUnk_08110C75:: @ 08110C75 + .incbin "baserom.gba", 0x110C75, 0x0000005 + +gUnk_08110C7A:: @ 08110C7A + .incbin "baserom.gba", 0x110C7A, 0x0000005 + +gUnk_08110C7F:: @ 08110C7F + .incbin "baserom.gba", 0x110C7F, 0x0000005 + +gUnk_08110C84:: @ 08110C84 + .incbin "baserom.gba", 0x110C84, 0x0000024 + +gUnk_08110CA8:: @ 08110CA8 + .incbin "baserom.gba", 0x110CA8, 0x0000040 + +gUnk_08110CE8:: @ 08110CE8 + .incbin "baserom.gba", 0x110CE8, 0x000000A + +gUnk_08110CF2:: @ 08110CF2 + .incbin "baserom.gba", 0x110CF2, 0x000000C + +gUnk_08110CFE:: @ 08110CFE + .incbin "baserom.gba", 0x110CFE, 0x0000002 + +gUnk_08110D00:: @ 08110D00 + .incbin "baserom.gba", 0x110D00, 0x0000002 + +gUnk_08110D02:: @ 08110D02 + .incbin "baserom.gba", 0x110D02, 0x0000006 + +gUnk_08110D08:: @ 08110D08 + .incbin "baserom.gba", 0x110D08, 0x0000025 + +gUnk_08110D2D:: @ 08110D2D + .incbin "baserom.gba", 0x110D2D, 0x0000005 + +gUnk_08110D32:: @ 08110D32 + .incbin "baserom.gba", 0x110D32, 0x0000005 + +gUnk_08110D37:: @ 08110D37 + .incbin "baserom.gba", 0x110D37, 0x0000005 + +gUnk_08110D3C:: @ 08110D3C + .incbin "baserom.gba", 0x110D3C, 0x0000025 + +gUnk_08110D61:: @ 08110D61 + .incbin "baserom.gba", 0x110D61, 0x0000005 + +gUnk_08110D66:: @ 08110D66 + .incbin "baserom.gba", 0x110D66, 0x0000005 + +gUnk_08110D6B:: @ 08110D6B + .incbin "baserom.gba", 0x110D6B, 0x0000005 + +gUnk_08110D70:: @ 08110D70 + .incbin "baserom.gba", 0x110D70, 0x000001D + +gUnk_08110D8D:: @ 08110D8D + .incbin "baserom.gba", 0x110D8D, 0x0000005 + +gUnk_08110D92:: @ 08110D92 + .incbin "baserom.gba", 0x110D92, 0x0000005 + +gUnk_08110D97:: @ 08110D97 + .incbin "baserom.gba", 0x110D97, 0x0000005 + +gUnk_08110D9C:: @ 08110D9C + .incbin "baserom.gba", 0x110D9C, 0x000001D + +gUnk_08110DB9:: @ 08110DB9 + .incbin "baserom.gba", 0x110DB9, 0x0000005 + +gUnk_08110DBE:: @ 08110DBE + .incbin "baserom.gba", 0x110DBE, 0x0000005 + +gUnk_08110DC3:: @ 08110DC3 + .incbin "baserom.gba", 0x110DC3, 0x0000005 + +gUnk_08110DC8:: @ 08110DC8 + .incbin "baserom.gba", 0x110DC8, 0x0000038 + +gUnk_08110E00:: @ 08110E00 + .incbin "baserom.gba", 0x110E00, 0x0000006 + +gUnk_08110E06:: @ 08110E06 + .incbin "baserom.gba", 0x110E06, 0x0000003 + +gUnk_08110E09:: @ 08110E09 + .incbin "baserom.gba", 0x110E09, 0x0000005 + +gUnk_08110E0E:: @ 08110E0E + .incbin "baserom.gba", 0x110E0E, 0x0000002 + +gUnk_08110E10:: @ 08110E10 + .incbin "baserom.gba", 0x110E10, 0x000003C + +gUnk_08110E4C:: @ 08110E4C + .incbin "baserom.gba", 0x110E4C, 0x0000010 + +gUnk_08110E5C:: @ 08110E5C + .incbin "baserom.gba", 0x110E5C, 0x0000008 + +gUnk_08110E64:: @ 08110E64 + .incbin "baserom.gba", 0x110E64, 0x0000004 + +gUnk_08110E68:: @ 08110E68 + .incbin "baserom.gba", 0x110E68, 0x0000010 + +gUnk_08110E78:: @ 08110E78 + .incbin "baserom.gba", 0x110E78, 0x0000012 + +gUnk_08110E8A:: @ 08110E8A + .incbin "baserom.gba", 0x110E8A, 0x000000A + +gUnk_08110E94:: @ 08110E94 + .incbin "baserom.gba", 0x110E94, 0x0000008 + +gUnk_08110E9C:: @ 08110E9C + .incbin "baserom.gba", 0x110E9C, 0x0000005 + +gUnk_08110EA1:: @ 08110EA1 + .incbin "baserom.gba", 0x110EA1, 0x0000005 + +gUnk_08110EA6:: @ 08110EA6 + .incbin "baserom.gba", 0x110EA6, 0x0000006 + +gUnk_08110EAC:: @ 08110EAC + .incbin "baserom.gba", 0x110EAC, 0x0000044 + +gUnk_08110EF0:: @ 08110EF0 + .incbin "baserom.gba", 0x110EF0, 0x0000008 + +gUnk_08110EF8:: @ 08110EF8 + .incbin "baserom.gba", 0x110EF8, 0x0000002 + +gUnk_08110EFA:: @ 08110EFA + .incbin "baserom.gba", 0x110EFA, 0x000000F + +gUnk_08110F09:: @ 08110F09 + .incbin "baserom.gba", 0x110F09, 0x0000001 + +gUnk_08110F0A:: @ 08110F0A + .incbin "baserom.gba", 0x110F0A, 0x0000002 + +gUnk_08110F0C:: @ 08110F0C + .incbin "baserom.gba", 0x110F0C, 0x000000A + +gUnk_08110F16:: @ 08110F16 + .incbin "baserom.gba", 0x110F16, 0x00000EA + +gUnk_08111000:: @ 08111000 + .incbin "baserom.gba", 0x111000, 0x0000003 + +gUnk_08111003:: @ 08111003 + .incbin "baserom.gba", 0x111003, 0x000000A + +gUnk_0811100D:: @ 0811100D + .incbin "baserom.gba", 0x11100D, 0x00000CB + +gCat:: @ 081110D8 + .incbin "baserom.gba", 0x1110D8, 0x0000024 + +gUnk_081110FC:: @ 081110FC + .incbin "baserom.gba", 0x1110FC, 0x0000008 + +gUnk_08111104:: @ 08111104 + .incbin "baserom.gba", 0x111104, 0x0000008 + +gUnk_0811110C:: @ 0811110C + .incbin "baserom.gba", 0x11110C, 0x0000001 + +gUnk_0811110D:: @ 0811110D + .incbin "baserom.gba", 0x11110D, 0x0000001 + +gUnk_0811110E:: @ 0811110E + .incbin "baserom.gba", 0x11110E, 0x0000001 + +gUnk_0811110F:: @ 0811110F + .incbin "baserom.gba", 0x11110F, 0x0000002 + +gUnk_08111111:: @ 08111111 + .incbin "baserom.gba", 0x111111, 0x0000002 + +gUnk_08111113:: @ 08111113 + .incbin "baserom.gba", 0x111113, 0x0000001 + +gUnk_08111114:: @ 08111114 + .incbin "baserom.gba", 0x111114, 0x0000008 + +gUnk_0811111C:: @ 0811111C + .incbin "baserom.gba", 0x11111C, 0x0000008 + +gUnk_08111124:: @ 08111124 + .incbin "baserom.gba", 0x111124, 0x0000008 + +gUnk_0811112C:: @ 0811112C + .incbin "baserom.gba", 0x11112C, 0x0000008 + +gUnk_08111134:: @ 08111134 + .incbin "baserom.gba", 0x111134, 0x0000008 + +gUnk_0811113C:: @ 0811113C + .incbin "baserom.gba", 0x11113C, 0x0000008 + +gUnk_08111144:: @ 08111144 + .incbin "baserom.gba", 0x111144, 0x0000008 + +gUnk_0811114C:: @ 0811114C + .incbin "baserom.gba", 0x11114C, 0x0000008 + +gUnk_08111154:: @ 08111154 + .incbin "baserom.gba", 0x111154, 0x0000017 + +gUnk_0811116B:: @ 0811116B + .incbin "baserom.gba", 0x11116B, 0x0000009 + +gUnk_08111174:: @ 08111174 + .incbin "baserom.gba", 0x111174, 0x000003C + +gUnk_081111B0:: @ 081111B0 + .incbin "baserom.gba", 0x1111B0, 0x0000009 + +gUnk_081111B9:: @ 081111B9 + .incbin "baserom.gba", 0x1111B9, 0x0000003 + +gUnk_081111BC:: @ 081111BC + .incbin "baserom.gba", 0x1111BC, 0x0000006 + +gUnk_081111C2:: @ 081111C2 + .incbin "baserom.gba", 0x1111C2, 0x0000011 + +gUnk_081111D3:: @ 081111D3 + .incbin "baserom.gba", 0x1111D3, 0x0000018 + +gUnk_081111EB:: @ 081111EB + .incbin "baserom.gba", 0x1111EB, 0x0000010 + +gUnk_081111FB:: @ 081111FB + .incbin "baserom.gba", 0x1111FB, 0x0000009 + +gUnk_08111204:: @ 08111204 + .incbin "baserom.gba", 0x111204, 0x000000D + +gUnk_08111211:: @ 08111211 + .incbin "baserom.gba", 0x111211, 0x000000D + +gUnk_0811121E:: @ 0811121E + .incbin "baserom.gba", 0x11121E, 0x000000E + +gUnk_0811122C:: @ 0811122C + .incbin "baserom.gba", 0x11122C, 0x000000C + +gUnk_08111238:: @ 08111238 + .incbin "baserom.gba", 0x111238, 0x0000024 + +gUnk_0811125C:: @ 0811125C + .incbin "baserom.gba", 0x11125C, 0x0000028 + +gUnk_08111284:: @ 08111284 + .incbin "baserom.gba", 0x111284, 0x0000080 + +gUnk_08111304:: @ 08111304 + .incbin "baserom.gba", 0x111304, 0x0000009 + +gUnk_0811130D:: @ 0811130D + .incbin "baserom.gba", 0x11130D, 0x0000001 + +gUnk_0811130E:: @ 0811130E + .incbin "baserom.gba", 0x11130E, 0x0000001 + +gUnk_0811130F:: @ 0811130F + .incbin "baserom.gba", 0x11130F, 0x0000009 + +gUnk_08111318:: @ 08111318 + .incbin "baserom.gba", 0x111318, 0x0000006 + +gUnk_0811131E:: @ 0811131E + .incbin "baserom.gba", 0x11131E, 0x0000025 + +gUnk_08111343:: @ 08111343 + .incbin "baserom.gba", 0x111343, 0x0000015 + +gUnk_08111358:: @ 08111358 + .incbin "baserom.gba", 0x111358, 0x0000010 + +gUnk_08111368:: @ 08111368 + .incbin "baserom.gba", 0x111368, 0x000000C + +gUnk_08111374:: @ 08111374 + .incbin "baserom.gba", 0x111374, 0x0000006 + +gUnk_0811137A:: @ 0811137A + .incbin "baserom.gba", 0x11137A, 0x0000006 + +gUnk_08111380:: @ 08111380 + .incbin "baserom.gba", 0x111380, 0x0000005 + +gUnk_08111385:: @ 08111385 + .incbin "baserom.gba", 0x111385, 0x0000005 + +gUnk_0811138A:: @ 0811138A + .incbin "baserom.gba", 0x11138A, 0x0000005 + +gUnk_0811138F:: @ 0811138F + .incbin "baserom.gba", 0x11138F, 0x0000005 + +gUnk_08111394:: @ 08111394 + .incbin "baserom.gba", 0x111394, 0x0000025 + +gUnk_081113B9:: @ 081113B9 + .incbin "baserom.gba", 0x1113B9, 0x0000025 + +gUnk_081113DE:: @ 081113DE + .incbin "baserom.gba", 0x1113DE, 0x0000021 + +gUnk_081113FF:: @ 081113FF + .incbin "baserom.gba", 0x1113FF, 0x0000008 + +gUnk_08111407:: @ 08111407 + .incbin "baserom.gba", 0x111407, 0x0000005 + +gUnk_0811140C:: @ 0811140C + .incbin "baserom.gba", 0x11140C, 0x0000002 + +gUnk_0811140E:: @ 0811140E + .incbin "baserom.gba", 0x11140E, 0x0000005 + +gUnk_08111413:: @ 08111413 + .incbin "baserom.gba", 0x111413, 0x0000009 + +gUnk_0811141C:: @ 0811141C + .incbin "baserom.gba", 0x11141C, 0x0000008 + +gUnk_08111424:: @ 08111424 + .incbin "baserom.gba", 0x111424, 0x0000025 + +gUnk_08111449:: @ 08111449 + .incbin "baserom.gba", 0x111449, 0x0000071 + +gUnk_081114BA:: @ 081114BA + .incbin "baserom.gba", 0x1114BA, 0x0000029 + +gUnk_081114E3:: @ 081114E3 + .incbin "baserom.gba", 0x1114E3, 0x0000005 + +gUnk_081114E8:: @ 081114E8 + .incbin "baserom.gba", 0x1114E8, 0x0000013 + +gUnk_081114FB:: @ 081114FB + .incbin "baserom.gba", 0x1114FB, 0x0000016 + +gUnk_08111511:: @ 08111511 + .incbin "baserom.gba", 0x111511, 0x0000002 + +gUnk_08111513:: @ 08111513 + .incbin "baserom.gba", 0x111513, 0x0000001 + +gUnk_08111514:: @ 08111514 + .incbin "baserom.gba", 0x111514, 0x0000003 + +gUnk_08111517:: @ 08111517 + .incbin "baserom.gba", 0x111517, 0x0000003 + +gUnk_0811151A:: @ 0811151A + .incbin "baserom.gba", 0x11151A, 0x0000001 + +gUnk_0811151B:: @ 0811151B + .incbin "baserom.gba", 0x11151B, 0x0000001 + +gUnk_0811151C:: @ 0811151C + .incbin "baserom.gba", 0x11151C, 0x0000004 + +gUnk_08111520:: @ 08111520 + .incbin "baserom.gba", 0x111520, 0x0000007 + +gUnk_08111527:: @ 08111527 + .incbin "baserom.gba", 0x111527, 0x0000002 + +gUnk_08111529:: @ 08111529 + .incbin "baserom.gba", 0x111529, 0x0000007 + +gUnk_08111530:: @ 08111530 + .incbin "baserom.gba", 0x111530, 0x0000008 + +gUnk_08111538:: @ 08111538 + .incbin "baserom.gba", 0x111538, 0x0000006 + +gUnk_0811153E:: @ 0811153E + .incbin "baserom.gba", 0x11153E, 0x0000006 + +gUnk_08111544:: @ 08111544 + .incbin "baserom.gba", 0x111544, 0x0000005 + +gUnk_08111549:: @ 08111549 + .incbin "baserom.gba", 0x111549, 0x0000005 + +gUnk_0811154E:: @ 0811154E + .incbin "baserom.gba", 0x11154E, 0x0000005 + +gUnk_08111553:: @ 08111553 + .incbin "baserom.gba", 0x111553, 0x0000039 + +gUnk_0811158C:: @ 0811158C + .incbin "baserom.gba", 0x11158C, 0x0000008 + +gUnk_08111594:: @ 08111594 + .incbin "baserom.gba", 0x111594, 0x000002C + +gUnk_081115C0:: @ 081115C0 + .incbin "baserom.gba", 0x1115C0, 0x0000010 + +gUnk_081115D0:: @ 081115D0 + .incbin "baserom.gba", 0x1115D0, 0x000000C + +gUnk_081115DC:: @ 081115DC + .incbin "baserom.gba", 0x1115DC, 0x0000010 + +gUnk_081115EC:: @ 081115EC + .incbin "baserom.gba", 0x1115EC, 0x0000024 + +gUnk_08111610:: @ 08111610 + .incbin "baserom.gba", 0x111610, 0x0000008 + +gUnk_08111618:: @ 08111618 + .incbin "baserom.gba", 0x111618, 0x0000003 + +gUnk_0811161B:: @ 0811161B + .incbin "baserom.gba", 0x11161B, 0x0000005 + +gUnk_08111620:: @ 08111620 + .incbin "baserom.gba", 0x111620, 0x0000003 + +gUnk_08111623:: @ 08111623 + .incbin "baserom.gba", 0x111623, 0x0000008 + +gUnk_0811162B:: @ 0811162B + .incbin "baserom.gba", 0x11162B, 0x000000D + +gUnk_08111638:: @ 08111638 + .incbin "baserom.gba", 0x111638, 0x000002C + +gUnk_08111664:: @ 08111664 + .incbin "baserom.gba", 0x111664, 0x0000016 + +gUnk_0811167A:: @ 0811167A + .incbin "baserom.gba", 0x11167A, 0x0000016 + +gUnk_08111690:: @ 08111690 + .incbin "baserom.gba", 0x111690, 0x0000016 + +gUnk_081116A6:: @ 081116A6 + .incbin "baserom.gba", 0x1116A6, 0x0000016 + +gUnk_081116BC:: @ 081116BC + .incbin "baserom.gba", 0x1116BC, 0x0000016 + +gUnk_081116D2:: @ 081116D2 + .incbin "baserom.gba", 0x1116D2, 0x0000016 + +gUnk_081116E8:: @ 081116E8 + .incbin "baserom.gba", 0x1116E8, 0x0000016 + +gUnk_081116FE:: @ 081116FE + .incbin "baserom.gba", 0x1116FE, 0x0000016 + +gUnk_08111714:: @ 08111714 + .incbin "baserom.gba", 0x111714, 0x0000003 + +gUnk_08111717:: @ 08111717 + .incbin "baserom.gba", 0x111717, 0x0000001 + +gUnk_08111718:: @ 08111718 + .incbin "baserom.gba", 0x111718, 0x0000001 + +gUnk_08111719:: @ 08111719 + .incbin "baserom.gba", 0x111719, 0x0000001 + +gUnk_0811171A:: @ 0811171A + .incbin "baserom.gba", 0x11171A, 0x0000010 + +gUnk_0811172A:: @ 0811172A + .incbin "baserom.gba", 0x11172A, 0x0000016 + +gUnk_08111740:: @ 08111740 + .incbin "baserom.gba", 0x111740, 0x000002C + +gUnk_0811176C:: @ 0811176C + .incbin "baserom.gba", 0x11176C, 0x0000005 + +gUnk_08111771:: @ 08111771 + .incbin "baserom.gba", 0x111771, 0x0000005 + +gUnk_08111776:: @ 08111776 + .incbin "baserom.gba", 0x111776, 0x0000005 + +gUnk_0811177B:: @ 0811177B + .incbin "baserom.gba", 0x11177B, 0x000004D + +gUnk_081117C8:: @ 081117C8 + .incbin "baserom.gba", 0x1117C8, 0x0000031 + +gUnk_081117F9:: @ 081117F9 + .incbin "baserom.gba", 0x1117F9, 0x000001E + +gUnk_08111817:: @ 08111817 + .incbin "baserom.gba", 0x111817, 0x0000002 + +gUnk_08111819:: @ 08111819 + .incbin "baserom.gba", 0x111819, 0x0000002 + +gUnk_0811181B:: @ 0811181B + .incbin "baserom.gba", 0x11181B, 0x0000001 + +gUnk_0811181C:: @ 0811181C + .incbin "baserom.gba", 0x11181C, 0x0000001 + +gUnk_0811181D:: @ 0811181D + .incbin "baserom.gba", 0x11181D, 0x0000001 + +gUnk_0811181E:: @ 0811181E + .incbin "baserom.gba", 0x11181E, 0x0000004 + +gUnk_08111822:: @ 08111822 + .incbin "baserom.gba", 0x111822, 0x0000008 + +gUnk_0811182A:: @ 0811182A + .incbin "baserom.gba", 0x11182A, 0x0000031 + +gUnk_0811185B:: @ 0811185B + .incbin "baserom.gba", 0x11185B, 0x0000071 + +gUnk_081118CC:: @ 081118CC + .incbin "baserom.gba", 0x1118CC, 0x0000024 + +gUnk_081118F0:: @ 081118F0 + .incbin "baserom.gba", 0x1118F0, 0x0000024 + +gUnk_08111914:: @ 08111914 + .incbin "baserom.gba", 0x111914, 0x0000004 + +gUnk_08111918:: @ 08111918 + .incbin "baserom.gba", 0x111918, 0x0000001 + +gUnk_08111919:: @ 08111919 + .incbin "baserom.gba", 0x111919, 0x0000001 + +gUnk_0811191A:: @ 0811191A + .incbin "baserom.gba", 0x11191A, 0x0000001 + +gUnk_0811191B:: @ 0811191B + .incbin "baserom.gba", 0x11191B, 0x0000002 + +gUnk_0811191D:: @ 0811191D + .incbin "baserom.gba", 0x11191D, 0x0000001 + +gUnk_0811191E:: @ 0811191E + .incbin "baserom.gba", 0x11191E, 0x0000002 + +gUnk_08111920:: @ 08111920 + .incbin "baserom.gba", 0x111920, 0x0000002 + +gUnk_08111922:: @ 08111922 + .incbin "baserom.gba", 0x111922, 0x0000006 + +gUnk_08111928:: @ 08111928 + .incbin "baserom.gba", 0x111928, 0x0000010 + +gUnk_08111938:: @ 08111938 + .incbin "baserom.gba", 0x111938, 0x0000028 + +gUnk_08111960:: @ 08111960 + .incbin "baserom.gba", 0x111960, 0x0000005 + +gUnk_08111965:: @ 08111965 + .incbin "baserom.gba", 0x111965, 0x0000005 + +gUnk_0811196A:: @ 0811196A + .incbin "baserom.gba", 0x11196A, 0x0000005 + +gUnk_0811196F:: @ 0811196F + .incbin "baserom.gba", 0x11196F, 0x0000005 + +gUnk_08111974:: @ 08111974 + .incbin "baserom.gba", 0x111974, 0x0000011 + +gUnk_08111985:: @ 08111985 + .incbin "baserom.gba", 0x111985, 0x0000011 + +gUnk_08111996:: @ 08111996 + .incbin "baserom.gba", 0x111996, 0x0000011 + +gUnk_081119A7:: @ 081119A7 + .incbin "baserom.gba", 0x1119A7, 0x0000011 + +gUnk_081119B8:: @ 081119B8 + .incbin "baserom.gba", 0x1119B8, 0x000000C + +gUnk_081119C4:: @ 081119C4 + .incbin "baserom.gba", 0x1119C4, 0x000000C + +gUnk_081119D0:: @ 081119D0 + .incbin "baserom.gba", 0x1119D0, 0x000000C + +gUnk_081119DC:: @ 081119DC + .incbin "baserom.gba", 0x1119DC, 0x000000C + +gUnk_081119E8:: @ 081119E8 + .incbin "baserom.gba", 0x1119E8, 0x0000009 + +gUnk_081119F1:: @ 081119F1 + .incbin "baserom.gba", 0x1119F1, 0x0000005 + +gUnk_081119F6:: @ 081119F6 + .incbin "baserom.gba", 0x1119F6, 0x0000004 + +gUnk_081119FA:: @ 081119FA + .incbin "baserom.gba", 0x1119FA, 0x0000009 + +gUnk_08111A03:: @ 08111A03 + .incbin "baserom.gba", 0x111A03, 0x0000009 + +gUnk_08111A0C:: @ 08111A0C + .incbin "baserom.gba", 0x111A0C, 0x0000008 + +gUnk_08111A14:: @ 08111A14 + .incbin "baserom.gba", 0x111A14, 0x0000002 + +gUnk_08111A16:: @ 08111A16 + .incbin "baserom.gba", 0x111A16, 0x0000002 + +gUnk_08111A18:: @ 08111A18 + .incbin "baserom.gba", 0x111A18, 0x0000001 + +gUnk_08111A19:: @ 08111A19 + .incbin "baserom.gba", 0x111A19, 0x0000003 + +gUnk_08111A1C:: @ 08111A1C + .incbin "baserom.gba", 0x111A1C, 0x0000003 + +gUnk_08111A1F:: @ 08111A1F + .incbin "baserom.gba", 0x111A1F, 0x0000002 + +gUnk_08111A21:: @ 08111A21 + .incbin "baserom.gba", 0x111A21, 0x0000001 + +gUnk_08111A22:: @ 08111A22 + .incbin "baserom.gba", 0x111A22, 0x0000002 + +gUnk_08111A24:: @ 08111A24 + .incbin "baserom.gba", 0x111A24, 0x0000008 + +gUnk_08111A2C:: @ 08111A2C + .incbin "baserom.gba", 0x111A2C, 0x0000054 + +gUnk_08111A80:: @ 08111A80 + .incbin "baserom.gba", 0x111A80, 0x000000C + +gUnk_08111A8C:: @ 08111A8C + .incbin "baserom.gba", 0x111A8C, 0x0000008 + +gUnk_08111A94:: @ 08111A94 + .incbin "baserom.gba", 0x111A94, 0x0000030 + +gUnk_08111AC4:: @ 08111AC4 + .incbin "baserom.gba", 0x111AC4, 0x0000005 + +gUnk_08111AC9:: @ 08111AC9 + .incbin "baserom.gba", 0x111AC9, 0x0000005 + +gUnk_08111ACE:: @ 08111ACE + .incbin "baserom.gba", 0x111ACE, 0x0000005 + +gUnk_08111AD3:: @ 08111AD3 + .incbin "baserom.gba", 0x111AD3, 0x0000005 + +gUnk_08111AD8:: @ 08111AD8 + .incbin "baserom.gba", 0x111AD8, 0x0000021 + +gUnk_08111AF9:: @ 08111AF9 + .incbin "baserom.gba", 0x111AF9, 0x0000021 + +gUnk_08111B1A:: @ 08111B1A + .incbin "baserom.gba", 0x111B1A, 0x0000005 + +gUnk_08111B1F:: @ 08111B1F + .incbin "baserom.gba", 0x111B1F, 0x0000007 + +gUnk_08111B26:: @ 08111B26 + .incbin "baserom.gba", 0x111B26, 0x0000015 + +gUnk_08111B3B:: @ 08111B3B + .incbin "baserom.gba", 0x111B3B, 0x000000B + +gUnk_08111B46:: @ 08111B46 + .incbin "baserom.gba", 0x111B46, 0x000001A + +gUnk_08111B60:: @ 08111B60 + .incbin "baserom.gba", 0x111B60, 0x0000023 + +gUnk_08111B83:: @ 08111B83 + .incbin "baserom.gba", 0x111B83, 0x0000005 + +gUnk_08111B88:: @ 08111B88 + .incbin "baserom.gba", 0x111B88, 0x0000010 + +gUnk_08111B98:: @ 08111B98 + .incbin "baserom.gba", 0x111B98, 0x0000008 + +gUnk_08111BA0:: @ 08111BA0 + .incbin "baserom.gba", 0x111BA0, 0x000001E + +gUnk_08111BBE:: @ 08111BBE + .incbin "baserom.gba", 0x111BBE, 0x0000005 + +gUnk_08111BC3:: @ 08111BC3 + .incbin "baserom.gba", 0x111BC3, 0x0000005 + +gUnk_08111BC8:: @ 08111BC8 + .incbin "baserom.gba", 0x111BC8, 0x0000005 + +gUnk_08111BCD:: @ 08111BCD + .incbin "baserom.gba", 0x111BCD, 0x0000025 + +gUnk_08111BF2:: @ 08111BF2 + .incbin "baserom.gba", 0x111BF2, 0x0000026 + +gUnk_08111C18:: @ 08111C18 + .incbin "baserom.gba", 0x111C18, 0x0000002 + +gUnk_08111C1A:: @ 08111C1A + .incbin "baserom.gba", 0x111C1A, 0x0000002 + +gUnk_08111C1C:: @ 08111C1C + .incbin "baserom.gba", 0x111C1C, 0x0000004 + +gUnk_08111C20:: @ 08111C20 + .incbin "baserom.gba", 0x111C20, 0x0000001 + +gUnk_08111C21:: @ 08111C21 + .incbin "baserom.gba", 0x111C21, 0x0000002 + +gUnk_08111C23:: @ 08111C23 + .incbin "baserom.gba", 0x111C23, 0x0000019 + +gUnk_08111C3C:: @ 08111C3C + .incbin "baserom.gba", 0x111C3C, 0x000000C + +gUnk_08111C48:: @ 08111C48 + .incbin "baserom.gba", 0x111C48, 0x0000008 + +gUnk_08111C50:: @ 08111C50 + .incbin "baserom.gba", 0x111C50, 0x000000C + +gUnk_08111C5C:: @ 08111C5C + .incbin "baserom.gba", 0x111C5C, 0x0000018 + +gUnk_08111C74:: @ 08111C74 + .incbin "baserom.gba", 0x111C74, 0x0000010 + +gUnk_08111C84:: @ 08111C84 + .incbin "baserom.gba", 0x111C84, 0x0000008 + +gUnk_08111C8C:: @ 08111C8C + .incbin "baserom.gba", 0x111C8C, 0x0000010 + +gUnk_08111C9C:: @ 08111C9C + .incbin "baserom.gba", 0x111C9C, 0x000000C + +gUnk_08111CA8:: @ 08111CA8 + .incbin "baserom.gba", 0x111CA8, 0x000000C + +gUnk_08111CB4:: @ 08111CB4 + .incbin "baserom.gba", 0x111CB4, 0x0000004 + +gUnk_08111CB8:: @ 08111CB8 + .incbin "baserom.gba", 0x111CB8, 0x0000004 + +gUnk_08111CBC:: @ 08111CBC + .incbin "baserom.gba", 0x111CBC, 0x0000005 + +gUnk_08111CC1:: @ 08111CC1 + .incbin "baserom.gba", 0x111CC1, 0x0000005 + +gUnk_08111CC6:: @ 08111CC6 + .incbin "baserom.gba", 0x111CC6, 0x0000005 + +gUnk_08111CCB:: @ 08111CCB + .incbin "baserom.gba", 0x111CCB, 0x0000005 + +gUnk_08111CD0:: @ 08111CD0 + .incbin "baserom.gba", 0x111CD0, 0x0000019 + +gUnk_08111CE9:: @ 08111CE9 + .incbin "baserom.gba", 0x111CE9, 0x0000019 + +gUnk_08111D02:: @ 08111D02 + .incbin "baserom.gba", 0x111D02, 0x0000015 + +gUnk_08111D17:: @ 08111D17 + .incbin "baserom.gba", 0x111D17, 0x0000004 + +gUnk_08111D1B:: @ 08111D1B + .incbin "baserom.gba", 0x111D1B, 0x000000F + +gUnk_08111D2A:: @ 08111D2A + .incbin "baserom.gba", 0x111D2A, 0x0000001 + +gUnk_08111D2B:: @ 08111D2B + .incbin "baserom.gba", 0x111D2B, 0x0000009 + +gUnk_08111D34:: @ 08111D34 + .incbin "baserom.gba", 0x111D34, 0x0000024 + +gUnk_08111D58:: @ 08111D58 + .incbin "baserom.gba", 0x111D58, 0x0000030 + +gUnk_08111D88:: @ 08111D88 + .incbin "baserom.gba", 0x111D88, 0x0000020 + +gUnk_08111DA8:: @ 08111DA8 + .incbin "baserom.gba", 0x111DA8, 0x0000008 + +gUnk_08111DB0:: @ 08111DB0 + .incbin "baserom.gba", 0x111DB0, 0x0000066 + +gUnk_08111E16:: @ 08111E16 + .incbin "baserom.gba", 0x111E16, 0x000001A + +gUnk_08111E30:: @ 08111E30 + .incbin "baserom.gba", 0x111E30, 0x0000004 + +gUnk_08111E34:: @ 08111E34 + .incbin "baserom.gba", 0x111E34, 0x00000AD + +gUnk_08111EE1:: @ 08111EE1 + .incbin "baserom.gba", 0x111EE1, 0x0000047 + +gUnk_08111F28:: @ 08111F28 + .incbin "baserom.gba", 0x111F28, 0x0000008 + +gUnk_08111F30:: @ 08111F30 + .incbin "baserom.gba", 0x111F30, 0x0000044 + +gUnk_08111F74:: @ 08111F74 + .incbin "baserom.gba", 0x111F74, 0x0000064 + +gUnk_08111FD8:: @ 08111FD8 + .incbin "baserom.gba", 0x111FD8, 0x000000A + +gUnk_08111FE2:: @ 08111FE2 + .incbin "baserom.gba", 0x111FE2, 0x0000005 + +gUnk_08111FE7:: @ 08111FE7 + .incbin "baserom.gba", 0x111FE7, 0x0000005 + +gUnk_08111FEC:: @ 08111FEC + .incbin "baserom.gba", 0x111FEC, 0x0000005 + +gUnk_08111FF1:: @ 08111FF1 + .incbin "baserom.gba", 0x111FF1, 0x0000005 + +gUnk_08111FF6:: @ 08111FF6 + .incbin "baserom.gba", 0x111FF6, 0x0000011 + +gUnk_08112007:: @ 08112007 + .incbin "baserom.gba", 0x112007, 0x0000007 + +gUnk_0811200E:: @ 0811200E + .incbin "baserom.gba", 0x11200E, 0x000000A + +gUnk_08112018:: @ 08112018 + .incbin "baserom.gba", 0x112018, 0x0000005 + +gUnk_0811201D:: @ 0811201D + .incbin "baserom.gba", 0x11201D, 0x0000005 + +gUnk_08112022:: @ 08112022 + .incbin "baserom.gba", 0x112022, 0x0000005 + +gUnk_08112027:: @ 08112027 + .incbin "baserom.gba", 0x112027, 0x0000005 + +gUnk_0811202C:: @ 0811202C + .incbin "baserom.gba", 0x11202C, 0x0000005 + +gUnk_08112031:: @ 08112031 + .incbin "baserom.gba", 0x112031, 0x0000005 + +gUnk_08112036:: @ 08112036 + .incbin "baserom.gba", 0x112036, 0x0000005 + +gUnk_0811203B:: @ 0811203B + .incbin "baserom.gba", 0x11203B, 0x0000005 + +gUnk_08112040:: @ 08112040 + .incbin "baserom.gba", 0x112040, 0x0000005 + +gUnk_08112045:: @ 08112045 + .incbin "baserom.gba", 0x112045, 0x0000005 + +gUnk_0811204A:: @ 0811204A + .incbin "baserom.gba", 0x11204A, 0x0000005 + +gUnk_0811204F:: @ 0811204F + .incbin "baserom.gba", 0x11204F, 0x0000005 + +gUnk_08112054:: @ 08112054 + .incbin "baserom.gba", 0x112054, 0x0000005 + +gUnk_08112059:: @ 08112059 + .incbin "baserom.gba", 0x112059, 0x0000005 + +gUnk_0811205E:: @ 0811205E + .incbin "baserom.gba", 0x11205E, 0x0000005 + +gUnk_08112063:: @ 08112063 + .incbin "baserom.gba", 0x112063, 0x0000005 + +gUnk_08112068:: @ 08112068 + .incbin "baserom.gba", 0x112068, 0x000000D + +gUnk_08112075:: @ 08112075 + .incbin "baserom.gba", 0x112075, 0x000000D + +gUnk_08112082:: @ 08112082 + .incbin "baserom.gba", 0x112082, 0x000000D + +gUnk_0811208F:: @ 0811208F + .incbin "baserom.gba", 0x11208F, 0x000000D + +gUnk_0811209C:: @ 0811209C + .incbin "baserom.gba", 0x11209C, 0x0000011 + +gUnk_081120AD:: @ 081120AD + .incbin "baserom.gba", 0x1120AD, 0x0000011 + +gUnk_081120BE:: @ 081120BE + .incbin "baserom.gba", 0x1120BE, 0x0000011 + +gUnk_081120CF:: @ 081120CF + .incbin "baserom.gba", 0x1120CF, 0x0000011 + +gUnk_081120E0:: @ 081120E0 + .incbin "baserom.gba", 0x1120E0, 0x0000020 + +gUnk_08112100:: @ 08112100 + .incbin "baserom.gba", 0x112100, 0x0000021 + +gUnk_08112121:: @ 08112121 + .incbin "baserom.gba", 0x112121, 0x000000A + +gUnk_0811212B:: @ 0811212B + .incbin "baserom.gba", 0x11212B, 0x0000089 + +gUnk_081121B4:: @ 081121B4 + .incbin "baserom.gba", 0x1121B4, 0x0000010 + +gUnk_081121C4:: @ 081121C4 + .incbin "baserom.gba", 0x1121C4, 0x0000010 + +gUnk_081121D4:: @ 081121D4 + .incbin "baserom.gba", 0x1121D4, 0x0000008 + +gUnk_081121DC:: @ 081121DC + .incbin "baserom.gba", 0x1121DC, 0x0000008 + +gUnk_081121E4:: @ 081121E4 + .incbin "baserom.gba", 0x1121E4, 0x0000020 + +gUnk_08112204:: @ 08112204 + .incbin "baserom.gba", 0x112204, 0x0000004 + +gUnk_08112208:: @ 08112208 + .incbin "baserom.gba", 0x112208, 0x0000024 + +gUnk_0811222C:: @ 0811222C + .incbin "baserom.gba", 0x11222C, 0x000000C + +gUnk_08112238:: @ 08112238 + .incbin "baserom.gba", 0x112238, 0x000000B + +gUnk_08112243:: @ 08112243 + .incbin "baserom.gba", 0x112243, 0x000001D + +gUnk_08112260:: @ 08112260 + .incbin "baserom.gba", 0x112260, 0x0000018 + +gUnk_08112278:: @ 08112278 + .incbin "baserom.gba", 0x112278, 0x000001C + +gUnk_08112294:: @ 08112294 + .incbin "baserom.gba", 0x112294, 0x0000008 + +gUnk_0811229C:: @ 0811229C + .incbin "baserom.gba", 0x11229C, 0x0000004 + +gUnk_081122A0:: @ 081122A0 + .incbin "baserom.gba", 0x1122A0, 0x0000008 + +gUnk_081122A8:: @ 081122A8 + .incbin "baserom.gba", 0x1122A8, 0x0000008 + +gUnk_081122B0:: @ 081122B0 + .incbin "baserom.gba", 0x1122B0, 0x0000008 + +gUnk_081122B8:: @ 081122B8 + .incbin "baserom.gba", 0x1122B8, 0x0000008 + +gUnk_081122C0:: @ 081122C0 + .incbin "baserom.gba", 0x1122C0, 0x0000009 + +gUnk_081122C9:: @ 081122C9 + .incbin "baserom.gba", 0x1122C9, 0x0000009 + +gUnk_081122D2:: @ 081122D2 + .incbin "baserom.gba", 0x1122D2, 0x0000009 + +gUnk_081122DB:: @ 081122DB + .incbin "baserom.gba", 0x1122DB, 0x0000025 + +gUnk_08112300:: @ 08112300 + .incbin "baserom.gba", 0x112300, 0x0000025 + +gUnk_08112325:: @ 08112325 + .incbin "baserom.gba", 0x112325, 0x0000025 + +gUnk_0811234A:: @ 0811234A + .incbin "baserom.gba", 0x11234A, 0x000003D + +gUnk_08112387:: @ 08112387 + .incbin "baserom.gba", 0x112387, 0x0000019 + +gUnk_081123A0:: @ 081123A0 + .incbin "baserom.gba", 0x1123A0, 0x0000029 + +gUnk_081123C9:: @ 081123C9 + .incbin "baserom.gba", 0x1123C9, 0x0000025 + +gUnk_081123EE:: @ 081123EE + .incbin "baserom.gba", 0x1123EE, 0x0000079 + +gUnk_08112467:: @ 08112467 + .incbin "baserom.gba", 0x112467, 0x0000032 + +gUnk_08112499:: @ 08112499 + .incbin "baserom.gba", 0x112499, 0x0000013 + +gUnk_081124AC:: @ 081124AC + .incbin "baserom.gba", 0x1124AC, 0x0000009 + +gUnk_081124B5:: @ 081124B5 + .incbin "baserom.gba", 0x1124B5, 0x000001D + +gUnk_081124D2:: @ 081124D2 + .incbin "baserom.gba", 0x1124D2, 0x0000019 + +gUnk_081124EB:: @ 081124EB + .incbin "baserom.gba", 0x1124EB, 0x0000014 + +gUnk_081124FF:: @ 081124FF + .incbin "baserom.gba", 0x1124FF, 0x0000025 + +gUnk_08112524:: @ 08112524 + .incbin "baserom.gba", 0x112524, 0x0000019 + +gUnk_0811253D:: @ 0811253D + .incbin "baserom.gba", 0x11253D, 0x0000045 + +gUnk_08112582:: @ 08112582 + .incbin "baserom.gba", 0x112582, 0x0000016 + +gUnk_08112598:: @ 08112598 + .incbin "baserom.gba", 0x112598, 0x000005C + +gUnk_081125F4:: @ 081125F4 + .incbin "baserom.gba", 0x1125F4, 0x000000C + +gUnk_08112600:: @ 08112600 + .incbin "baserom.gba", 0x112600, 0x0000074 + +gUnk_08112674:: @ 08112674 + .incbin "baserom.gba", 0x112674, 0x0000060 + +gUnk_081126D4:: @ 081126D4 + .incbin "baserom.gba", 0x1126D4, 0x0000010 + +gUnk_081126E4:: @ 081126E4 + .incbin "baserom.gba", 0x1126E4, 0x0000004 + +gUnk_081126E8:: @ 081126E8 + .incbin "baserom.gba", 0x1126E8, 0x0000008 + +gUnk_081126F0:: @ 081126F0 + .incbin "baserom.gba", 0x1126F0, 0x000024C + +gUnk_0811293C:: @ 0811293C + .incbin "baserom.gba", 0x11293C, 0x0000001 + +gUnk_0811293D:: @ 0811293D + .incbin "baserom.gba", 0x11293D, 0x00002B3 + +gUnk_08112BF0:: @ 08112BF0 + .incbin "baserom.gba", 0x112BF0, 0x0000050 + +gUnk_08112C40:: @ 08112C40 + .incbin "baserom.gba", 0x112C40, 0x000000A + +gUnk_08112C4A:: @ 08112C4A + .incbin "baserom.gba", 0x112C4A, 0x0000006 + +gUnk_08112C50:: @ 08112C50 + .incbin "baserom.gba", 0x112C50, 0x000000C + +gUnk_08112C5C:: @ 08112C5C + .incbin "baserom.gba", 0x112C5C, 0x0000004 + +gUnk_08112C60:: @ 08112C60 + .incbin "baserom.gba", 0x112C60, 0x0000008 + +gUnk_08112C68:: @ 08112C68 + .incbin "baserom.gba", 0x112C68, 0x0000005 + +gUnk_08112C6D:: @ 08112C6D + .incbin "baserom.gba", 0x112C6D, 0x0000005 + +gUnk_08112C72:: @ 08112C72 + .incbin "baserom.gba", 0x112C72, 0x0000005 + +gUnk_08112C77:: @ 08112C77 + .incbin "baserom.gba", 0x112C77, 0x0000005 + +gUnk_08112C7C:: @ 08112C7C + .incbin "baserom.gba", 0x112C7C, 0x0000021 + +gUnk_08112C9D:: @ 08112C9D + .incbin "baserom.gba", 0x112C9D, 0x0000021 + +gUnk_08112CBE:: @ 08112CBE + .incbin "baserom.gba", 0x112CBE, 0x0000021 + +gUnk_08112CDF:: @ 08112CDF + .incbin "baserom.gba", 0x112CDF, 0x0000021 + +gUnk_08112D00:: @ 08112D00 + .incbin "baserom.gba", 0x112D00, 0x0000005 + +gUnk_08112D05:: @ 08112D05 + .incbin "baserom.gba", 0x112D05, 0x0000005 + +gUnk_08112D0A:: @ 08112D0A + .incbin "baserom.gba", 0x112D0A, 0x0000005 + +gUnk_08112D0F:: @ 08112D0F + .incbin "baserom.gba", 0x112D0F, 0x0000005 + +gUnk_08112D14:: @ 08112D14 + .incbin "baserom.gba", 0x112D14, 0x0000034 + +gUnk_08112D48:: @ 08112D48 + .incbin "baserom.gba", 0x112D48, 0x0000008 + +gUnk_08112D50:: @ 08112D50 + .incbin "baserom.gba", 0x112D50, 0x000000A + +gUnk_08112D5A:: @ 08112D5A + .incbin "baserom.gba", 0x112D5A, 0x0000015 + +gUnk_08112D6F:: @ 08112D6F + .incbin "baserom.gba", 0x112D6F, 0x0000009 + +gUnk_08112D78:: @ 08112D78 + .incbin "baserom.gba", 0x112D78, 0x0000011 + +gUnk_08112D89:: @ 08112D89 + .incbin "baserom.gba", 0x112D89, 0x0000011 + +gUnk_08112D9A:: @ 08112D9A + .incbin "baserom.gba", 0x112D9A, 0x000004D + +gUnk_08112DE7:: @ 08112DE7 + .incbin "baserom.gba", 0x112DE7, 0x0000005 + +gUnk_08112DEC:: @ 08112DEC + .incbin "baserom.gba", 0x112DEC, 0x0000030 + +gUnk_08112E1C:: @ 08112E1C + .incbin "baserom.gba", 0x112E1C, 0x0000010 + +gUnk_08112E2C:: @ 08112E2C + .incbin "baserom.gba", 0x112E2C, 0x0000028 + +gUnk_08112E54:: @ 08112E54 + .incbin "baserom.gba", 0x112E54, 0x0000008 + +gUnk_08112E5C:: @ 08112E5C + .incbin "baserom.gba", 0x112E5C, 0x0000049 + +gUnk_08112EA5:: @ 08112EA5 + .incbin "baserom.gba", 0x112EA5, 0x0000005 + +gUnk_08112EAA:: @ 08112EAA + .incbin "baserom.gba", 0x112EAA, 0x0000005 + +gUnk_08112EAF:: @ 08112EAF + .incbin "baserom.gba", 0x112EAF, 0x0000005 + +gUnk_08112EB4:: @ 08112EB4 + .incbin "baserom.gba", 0x112EB4, 0x0000071 + +gUnk_08112F25:: @ 08112F25 + .incbin "baserom.gba", 0x112F25, 0x0000005 + +gUnk_08112F2A:: @ 08112F2A + .incbin "baserom.gba", 0x112F2A, 0x0000005 + +gUnk_08112F2F:: @ 08112F2F + .incbin "baserom.gba", 0x112F2F, 0x0000005 + +gUnk_08112F34:: @ 08112F34 + .incbin "baserom.gba", 0x112F34, 0x0000044 + +gUnk_08112F78:: @ 08112F78 + .incbin "baserom.gba", 0x112F78, 0x0000008 + +gUnk_08112F80:: @ 08112F80 + .incbin "baserom.gba", 0x112F80, 0x0000008 + +gUnk_08112F88:: @ 08112F88 + .incbin "baserom.gba", 0x112F88, 0x000003C + +gUnk_08112FC4:: @ 08112FC4 + .incbin "baserom.gba", 0x112FC4, 0x0000011 + +gUnk_08112FD5:: @ 08112FD5 + .incbin "baserom.gba", 0x112FD5, 0x000001F + +gUnk_08112FF4:: @ 08112FF4 + .incbin "baserom.gba", 0x112FF4, 0x0000010 + +gUnk_08113004:: @ 08113004 + .incbin "baserom.gba", 0x113004, 0x0000020 + +gUnk_08113024:: @ 08113024 + .incbin "baserom.gba", 0x113024, 0x0000008 + +gUnk_0811302C:: @ 0811302C + .incbin "baserom.gba", 0x11302C, 0x0000044 + +gUnk_08113070:: @ 08113070 + .incbin "baserom.gba", 0x113070, 0x0000008 + +gUnk_08113078:: @ 08113078 + .incbin "baserom.gba", 0x113078, 0x0000006 + +gUnk_0811307E:: @ 0811307E + .incbin "baserom.gba", 0x11307E, 0x0000005 + +gUnk_08113083:: @ 08113083 + .incbin "baserom.gba", 0x113083, 0x000000D + +gUnk_08113090:: @ 08113090 + .incbin "baserom.gba", 0x113090, 0x0000010 + +gUnk_081130A0:: @ 081130A0 + .incbin "baserom.gba", 0x1130A0, 0x0000038 + +gUnk_081130D8:: @ 081130D8 + .incbin "baserom.gba", 0x1130D8, 0x0000005 + +gUnk_081130DD:: @ 081130DD + .incbin "baserom.gba", 0x1130DD, 0x000000D + +gUnk_081130EA:: @ 081130EA + .incbin "baserom.gba", 0x1130EA, 0x000000D + +gUnk_081130F7:: @ 081130F7 + .incbin "baserom.gba", 0x1130F7, 0x000000B + +gUnk_08113102:: @ 08113102 + .incbin "baserom.gba", 0x113102, 0x0000006 + +gUnk_08113108:: @ 08113108 + .incbin "baserom.gba", 0x113108, 0x0000038 + +gUnk_08113140:: @ 08113140 + .incbin "baserom.gba", 0x113140, 0x0000018 + +gUnk_08113158:: @ 08113158 + .incbin "baserom.gba", 0x113158, 0x0000010 + +gUnk_08113168:: @ 08113168 + .incbin "baserom.gba", 0x113168, 0x0000025 + +gUnk_0811318D:: @ 0811318D + .incbin "baserom.gba", 0x11318D, 0x0000005 + +gUnk_08113192:: @ 08113192 + .incbin "baserom.gba", 0x113192, 0x0000005 + +gUnk_08113197:: @ 08113197 + .incbin "baserom.gba", 0x113197, 0x0000005 + +gUnk_0811319C:: @ 0811319C + .incbin "baserom.gba", 0x11319C, 0x0000044 + +gUnk_081131E0:: @ 081131E0 + .incbin "baserom.gba", 0x1131E0, 0x0000025 + +gUnk_08113205:: @ 08113205 + .incbin "baserom.gba", 0x113205, 0x0000005 + +gUnk_0811320A:: @ 0811320A + .incbin "baserom.gba", 0x11320A, 0x0000005 + +gUnk_0811320F:: @ 0811320F + .incbin "baserom.gba", 0x11320F, 0x0000005 + +gUnk_08113214:: @ 08113214 + .incbin "baserom.gba", 0x113214, 0x0000044 + +gUnk_08113258:: @ 08113258 + .incbin "baserom.gba", 0x113258, 0x0000005 + +gUnk_0811325D:: @ 0811325D + .incbin "baserom.gba", 0x11325D, 0x0000011 + +gUnk_0811326E:: @ 0811326E + .incbin "baserom.gba", 0x11326E, 0x0000031 + +gUnk_0811329F:: @ 0811329F + .incbin "baserom.gba", 0x11329F, 0x0000045 + +gUnk_081132E4:: @ 081132E4 + .incbin "baserom.gba", 0x1132E4, 0x0000030 + +gUnk_08113314:: @ 08113314 + .incbin "baserom.gba", 0x113314, 0x0000030 + +gUnk_08113344:: @ 08113344 + .incbin "baserom.gba", 0x113344, 0x0000006 + +gUnk_0811334A:: @ 0811334A + .incbin "baserom.gba", 0x11334A, 0x0000006 + +gUnk_08113350:: @ 08113350 + .incbin "baserom.gba", 0x113350, 0x0000019 + +gUnk_08113369:: @ 08113369 + .incbin "baserom.gba", 0x113369, 0x0000005 + +gUnk_0811336E:: @ 0811336E + .incbin "baserom.gba", 0x11336E, 0x0000009 + +gUnk_08113377:: @ 08113377 + .incbin "baserom.gba", 0x113377, 0x0000009 + +gUnk_08113380:: @ 08113380 + .incbin "baserom.gba", 0x113380, 0x0000024 + +gUnk_081133A4:: @ 081133A4 + .incbin "baserom.gba", 0x1133A4, 0x0000010 + +gUnk_081133B4:: @ 081133B4 + .incbin "baserom.gba", 0x1133B4, 0x0000004 + +gUnk_081133B8:: @ 081133B8 + .incbin "baserom.gba", 0x1133B8, 0x0000031 + +gUnk_081133E9:: @ 081133E9 + .incbin "baserom.gba", 0x1133E9, 0x0000011 + +gUnk_081133FA:: @ 081133FA + .incbin "baserom.gba", 0x1133FA, 0x0000019 + +gUnk_08113413:: @ 08113413 + .incbin "baserom.gba", 0x113413, 0x0000021 + +gUnk_08113434:: @ 08113434 + .incbin "baserom.gba", 0x113434, 0x0000009 + +gUnk_0811343D:: @ 0811343D + .incbin "baserom.gba", 0x11343D, 0x0000002 + +gUnk_0811343F:: @ 0811343F + .incbin "baserom.gba", 0x11343F, 0x0000007 + +gUnk_08113446:: @ 08113446 + .incbin "baserom.gba", 0x113446, 0x0000009 + +gUnk_0811344F:: @ 0811344F + .incbin "baserom.gba", 0x11344F, 0x0000041 + +gUnk_08113490:: @ 08113490 + .incbin "baserom.gba", 0x113490, 0x0000044 + +gUnk_081134D4:: @ 081134D4 + .incbin "baserom.gba", 0x1134D4, 0x0000034 + +gUnk_08113508:: @ 08113508 + .incbin "baserom.gba", 0x113508, 0x0000024 + +gUnk_0811352C:: @ 0811352C + .incbin "baserom.gba", 0x11352C, 0x0000021 + +gUnk_0811354D:: @ 0811354D + .incbin "baserom.gba", 0x11354D, 0x0000019 + +gUnk_08113566:: @ 08113566 + .incbin "baserom.gba", 0x113566, 0x0000008 + +gUnk_0811356E:: @ 0811356E + .incbin "baserom.gba", 0x11356E, 0x0000021 + +gUnk_0811358F:: @ 0811358F + .incbin "baserom.gba", 0x11358F, 0x0000021 + +gUnk_081135B0:: @ 081135B0 + .incbin "baserom.gba", 0x1135B0, 0x000002D + +gUnk_081135DD:: @ 081135DD + .incbin "baserom.gba", 0x1135DD, 0x0000005 + +gUnk_081135E2:: @ 081135E2 + .incbin "baserom.gba", 0x1135E2, 0x0000006 + +gUnk_081135E8:: @ 081135E8 + .incbin "baserom.gba", 0x1135E8, 0x0000044 + +gUnk_0811362C:: @ 0811362C + .incbin "baserom.gba", 0x11362C, 0x0000005 + +gUnk_08113631:: @ 08113631 + .incbin "baserom.gba", 0x113631, 0x0000005 + +gUnk_08113636:: @ 08113636 + .incbin "baserom.gba", 0x113636, 0x0000005 + +gUnk_0811363B:: @ 0811363B + .incbin "baserom.gba", 0x11363B, 0x0000005 + +gUnk_08113640:: @ 08113640 + .incbin "baserom.gba", 0x113640, 0x0000005 + +gUnk_08113645:: @ 08113645 + .incbin "baserom.gba", 0x113645, 0x0000005 + +gUnk_0811364A:: @ 0811364A + .incbin "baserom.gba", 0x11364A, 0x0000066 + +gUnk_081136B0:: @ 081136B0 + .incbin "baserom.gba", 0x1136B0, 0x0000028 + +gUnk_081136D8:: @ 081136D8 + .incbin "baserom.gba", 0x1136D8, 0x0000011 + +gUnk_081136E9:: @ 081136E9 + .incbin "baserom.gba", 0x1136E9, 0x0000011 + +gUnk_081136FA:: @ 081136FA + .incbin "baserom.gba", 0x1136FA, 0x0000011 + +gUnk_0811370B:: @ 0811370B + .incbin "baserom.gba", 0x11370B, 0x0000011 + +gUnk_0811371C:: @ 0811371C + .incbin "baserom.gba", 0x11371C, 0x0000005 + +gUnk_08113721:: @ 08113721 + .incbin "baserom.gba", 0x113721, 0x0000005 + +gUnk_08113726:: @ 08113726 + .incbin "baserom.gba", 0x113726, 0x0000005 + +gUnk_0811372B:: @ 0811372B + .incbin "baserom.gba", 0x11372B, 0x0000005 + +gUnk_08113730:: @ 08113730 + .incbin "baserom.gba", 0x113730, 0x0000024 + +gUnk_08113754:: @ 08113754 + .incbin "baserom.gba", 0x113754, 0x000000C + +gUnk_08113760:: @ 08113760 + .incbin "baserom.gba", 0x113760, 0x0000050 + +gUnk_081137B0:: @ 081137B0 + .incbin "baserom.gba", 0x1137B0, 0x0000039 + +gUnk_081137E9:: @ 081137E9 + .incbin "baserom.gba", 0x1137E9, 0x0000088 + +gUnk_08113871:: @ 08113871 + .incbin "baserom.gba", 0x113871, 0x0000021 + +gUnk_08113892:: @ 08113892 + .incbin "baserom.gba", 0x113892, 0x0000005 + +gUnk_08113897:: @ 08113897 + .incbin "baserom.gba", 0x113897, 0x0000019 + +gUnk_081138B0:: @ 081138B0 + .incbin "baserom.gba", 0x1138B0, 0x0000008 + +gUnk_081138B8:: @ 081138B8 + .incbin "baserom.gba", 0x1138B8, 0x0000024 + +gUnk_081138DC:: @ 081138DC + .incbin "baserom.gba", 0x1138DC, 0x0000005 + +gUnk_081138E1:: @ 081138E1 + .incbin "baserom.gba", 0x1138E1, 0x000001B + +gUnk_081138FC:: @ 081138FC + .incbin "baserom.gba", 0x1138FC, 0x0000014 + +gUnk_08113910:: @ 08113910 + .incbin "baserom.gba", 0x113910, 0x0000020 + +gUnk_08113930:: @ 08113930 + .incbin "baserom.gba", 0x113930, 0x0000080 + +gUnk_081139B0:: @ 081139B0 + .incbin "baserom.gba", 0x1139B0, 0x000001D + +gUnk_081139CD:: @ 081139CD + .incbin "baserom.gba", 0x1139CD, 0x000001D + +gUnk_081139EA:: @ 081139EA + .incbin "baserom.gba", 0x1139EA, 0x000001E + +gUnk_08113A08:: @ 08113A08 + .incbin "baserom.gba", 0x113A08, 0x0000014 + +gUnk_08113A1C:: @ 08113A1C + .incbin "baserom.gba", 0x113A1C, 0x0000060 + +gUnk_08113A7C:: @ 08113A7C + .incbin "baserom.gba", 0x113A7C, 0x0000010 + +gUnk_08113A8C:: @ 08113A8C + .incbin "baserom.gba", 0x113A8C, 0x0000030 + +gUnk_08113ABC:: @ 08113ABC + .incbin "baserom.gba", 0x113ABC, 0x0000050 + +gUnk_08113B0C:: @ 08113B0C + .incbin "baserom.gba", 0x113B0C, 0x0000006 + +gUnk_08113B12:: @ 08113B12 + .incbin "baserom.gba", 0x113B12, 0x0000004 + +gUnk_08113B16:: @ 08113B16 + .incbin "baserom.gba", 0x113B16, 0x0000008 + +gUnk_08113B1E:: @ 08113B1E + .incbin "baserom.gba", 0x113B1E, 0x0000004 + +gUnk_08113B22:: @ 08113B22 + .incbin "baserom.gba", 0x113B22, 0x0000006 + +gUnk_08113B28:: @ 08113B28 + .incbin "baserom.gba", 0x113B28, 0x0000008 + +gUnk_08113B30:: @ 08113B30 + .incbin "baserom.gba", 0x113B30, 0x0000008 + +gUnk_08113B38:: @ 08113B38 + .incbin "baserom.gba", 0x113B38, 0x0000007 + +gUnk_08113B3F:: @ 08113B3F + .incbin "baserom.gba", 0x113B3F, 0x0000005 + +gUnk_08113B44:: @ 08113B44 + .incbin "baserom.gba", 0x113B44, 0x0000005 + +gUnk_08113B49:: @ 08113B49 + .incbin "baserom.gba", 0x113B49, 0x0000005 + +gUnk_08113B4E:: @ 08113B4E + .incbin "baserom.gba", 0x113B4E, 0x0000005 + +gUnk_08113B53:: @ 08113B53 + .incbin "baserom.gba", 0x113B53, 0x0000011 + +gUnk_08113B64:: @ 08113B64 + .incbin "baserom.gba", 0x113B64, 0x0000011 + +gUnk_08113B75:: @ 08113B75 + .incbin "baserom.gba", 0x113B75, 0x0000011 + +gUnk_08113B86:: @ 08113B86 + .incbin "baserom.gba", 0x113B86, 0x0000012 + +gUnk_08113B98:: @ 08113B98 + .incbin "baserom.gba", 0x113B98, 0x0000024 + +gUnk_08113BBC:: @ 08113BBC + .incbin "baserom.gba", 0x113BBC, 0x0000005 + +gUnk_08113BC1:: @ 08113BC1 + .incbin "baserom.gba", 0x113BC1, 0x0000005 + +gUnk_08113BC6:: @ 08113BC6 + .incbin "baserom.gba", 0x113BC6, 0x0000005 + +gUnk_08113BCB:: @ 08113BCB + .incbin "baserom.gba", 0x113BCB, 0x0000005 + +gUnk_08113BD0:: @ 08113BD0 + .incbin "baserom.gba", 0x113BD0, 0x0000011 + +gUnk_08113BE1:: @ 08113BE1 + .incbin "baserom.gba", 0x113BE1, 0x0000011 + +gUnk_08113BF2:: @ 08113BF2 + .incbin "baserom.gba", 0x113BF2, 0x0000011 + +gUnk_08113C03:: @ 08113C03 + .incbin "baserom.gba", 0x113C03, 0x0000011 + +gUnk_08113C14:: @ 08113C14 + .incbin "baserom.gba", 0x113C14, 0x0000024 + +gUnk_08113C38:: @ 08113C38 + .incbin "baserom.gba", 0x113C38, 0x0000005 + +gUnk_08113C3D:: @ 08113C3D + .incbin "baserom.gba", 0x113C3D, 0x0000005 + +gUnk_08113C42:: @ 08113C42 + .incbin "baserom.gba", 0x113C42, 0x0000005 + +gUnk_08113C47:: @ 08113C47 + .incbin "baserom.gba", 0x113C47, 0x0000011 + +gUnk_08113C58:: @ 08113C58 + .incbin "baserom.gba", 0x113C58, 0x0000024 + +gUnk_08113C7C:: @ 08113C7C + .incbin "baserom.gba", 0x113C7C, 0x0000005 + +gUnk_08113C81:: @ 08113C81 + .incbin "baserom.gba", 0x113C81, 0x0000005 + +gUnk_08113C86:: @ 08113C86 + .incbin "baserom.gba", 0x113C86, 0x0000005 + +gUnk_08113C8B:: @ 08113C8B + .incbin "baserom.gba", 0x113C8B, 0x0000005 + +gUnk_08113C90:: @ 08113C90 + .incbin "baserom.gba", 0x113C90, 0x0000011 + +gUnk_08113CA1:: @ 08113CA1 + .incbin "baserom.gba", 0x113CA1, 0x0000011 + +gUnk_08113CB2:: @ 08113CB2 + .incbin "baserom.gba", 0x113CB2, 0x0000011 + +gUnk_08113CC3:: @ 08113CC3 + .incbin "baserom.gba", 0x113CC3, 0x0000011 + +gUnk_08113CD4:: @ 08113CD4 + .incbin "baserom.gba", 0x113CD4, 0x0000024 + +gUnk_08113CF8:: @ 08113CF8 + .incbin "baserom.gba", 0x113CF8, 0x0000005 + +gUnk_08113CFD:: @ 08113CFD + .incbin "baserom.gba", 0x113CFD, 0x0000005 + +gUnk_08113D02:: @ 08113D02 + .incbin "baserom.gba", 0x113D02, 0x0000005 + +gUnk_08113D07:: @ 08113D07 + .incbin "baserom.gba", 0x113D07, 0x0000015 + +gUnk_08113D1C:: @ 08113D1C + .incbin "baserom.gba", 0x113D1C, 0x0000024 + +gUnk_08113D40:: @ 08113D40 + .incbin "baserom.gba", 0x113D40, 0x0000005 + +gUnk_08113D45:: @ 08113D45 + .incbin "baserom.gba", 0x113D45, 0x0000005 + +gUnk_08113D4A:: @ 08113D4A + .incbin "baserom.gba", 0x113D4A, 0x0000005 + +gUnk_08113D4F:: @ 08113D4F + .incbin "baserom.gba", 0x113D4F, 0x0000011 + +gUnk_08113D60:: @ 08113D60 + .incbin "baserom.gba", 0x113D60, 0x0000024 + +gUnk_08113D84:: @ 08113D84 + .incbin "baserom.gba", 0x113D84, 0x0000008 + +gUnk_08113D8C:: @ 08113D8C + .incbin "baserom.gba", 0x113D8C, 0x0000010 + +gUnk_08113D9C:: @ 08113D9C + .incbin "baserom.gba", 0x113D9C, 0x0000011 + +gUnk_08113DAD:: @ 08113DAD + .incbin "baserom.gba", 0x113DAD, 0x0000005 + +gUnk_08113DB2:: @ 08113DB2 + .incbin "baserom.gba", 0x113DB2, 0x0000029 + +gUnk_08113DDB:: @ 08113DDB + .incbin "baserom.gba", 0x113DDB, 0x00000D9 + +gUnk_08113EB4:: @ 08113EB4 + .incbin "baserom.gba", 0x113EB4, 0x0000011 + +gUnk_08113EC5:: @ 08113EC5 + .incbin "baserom.gba", 0x113EC5, 0x0000011 + +gUnk_08113ED6:: @ 08113ED6 + .incbin "baserom.gba", 0x113ED6, 0x0000011 + +gUnk_08113EE7:: @ 08113EE7 + .incbin "baserom.gba", 0x113EE7, 0x0000005 + +gUnk_08113EEC:: @ 08113EEC + .incbin "baserom.gba", 0x113EEC, 0x0000005 + +gUnk_08113EF1:: @ 08113EF1 + .incbin "baserom.gba", 0x113EF1, 0x0000007 + +gUnk_08113EF8:: @ 08113EF8 + .incbin "baserom.gba", 0x113EF8, 0x000004C + +gUnk_08113F44:: @ 08113F44 + .incbin "baserom.gba", 0x113F44, 0x0000004 + +gUnk_08113F48:: @ 08113F48 + .incbin "baserom.gba", 0x113F48, 0x0000078 + +gUnk_08113FC0:: @ 08113FC0 + .incbin "baserom.gba", 0x113FC0, 0x0000005 + +gUnk_08113FC5:: @ 08113FC5 + .incbin "baserom.gba", 0x113FC5, 0x0000005 + +gUnk_08113FCA:: @ 08113FCA + .incbin "baserom.gba", 0x113FCA, 0x0000005 + +gUnk_08113FCF:: @ 08113FCF + .incbin "baserom.gba", 0x113FCF, 0x0000005 + +gUnk_08113FD4:: @ 08113FD4 + .incbin "baserom.gba", 0x113FD4, 0x0000011 + +gUnk_08113FE5:: @ 08113FE5 + .incbin "baserom.gba", 0x113FE5, 0x000004D + +gUnk_08114032:: @ 08114032 + .incbin "baserom.gba", 0x114032, 0x000000D + +gUnk_0811403F:: @ 0811403F + .incbin "baserom.gba", 0x11403F, 0x0000011 + +gUnk_08114050:: @ 08114050 + .incbin "baserom.gba", 0x114050, 0x0000011 + +gUnk_08114061:: @ 08114061 + .incbin "baserom.gba", 0x114061, 0x0000029 + +gUnk_0811408A:: @ 0811408A + .incbin "baserom.gba", 0x11408A, 0x000000E + +gUnk_08114098:: @ 08114098 + .incbin "baserom.gba", 0x114098, 0x0000034 + +gUnk_081140CC:: @ 081140CC + .incbin "baserom.gba", 0x1140CC, 0x0000008 + +gUnk_081140D4:: @ 081140D4 + .incbin "baserom.gba", 0x1140D4, 0x000002C + +gUnk_08114100:: @ 08114100 + .incbin "baserom.gba", 0x114100, 0x0000004 + +gUnk_08114104:: @ 08114104 + .incbin "baserom.gba", 0x114104, 0x0000030 + +gUnk_08114134:: @ 08114134 + .incbin "baserom.gba", 0x114134, 0x0000010 + +gUnk_08114144:: @ 08114144 + .incbin "baserom.gba", 0x114144, 0x0000010 + +gUnk_08114154:: @ 08114154 + .incbin "baserom.gba", 0x114154, 0x0000008 + +gUnk_0811415C:: @ 0811415C + .incbin "baserom.gba", 0x11415C, 0x0000048 + +gUnk_081141A4:: @ 081141A4 + .incbin "baserom.gba", 0x1141A4, 0x0000040 + +gUnk_081141E4:: @ 081141E4 + .incbin "baserom.gba", 0x1141E4, 0x0000010 + +gUnk_081141F4:: @ 081141F4 + .incbin "baserom.gba", 0x1141F4, 0x0000014 + +gUnk_08114208:: @ 08114208 + .incbin "baserom.gba", 0x114208, 0x0000005 + +gUnk_0811420D:: @ 0811420D + .incbin "baserom.gba", 0x11420D, 0x0000004 + +gUnk_08114211:: @ 08114211 + .incbin "baserom.gba", 0x114211, 0x0000005 + +gUnk_08114216:: @ 08114216 + .incbin "baserom.gba", 0x114216, 0x0000009 + +gUnk_0811421F:: @ 0811421F + .incbin "baserom.gba", 0x11421F, 0x0000009 + +gUnk_08114228:: @ 08114228 + .incbin "baserom.gba", 0x114228, 0x0000014 + +gUnk_0811423C:: @ 0811423C + .incbin "baserom.gba", 0x11423C, 0x0000008 + +gUnk_08114244:: @ 08114244 + .incbin "baserom.gba", 0x114244, 0x0000019 + +gUnk_0811425D:: @ 0811425D + .incbin "baserom.gba", 0x11425D, 0x0000019 + +gUnk_08114276:: @ 08114276 + .incbin "baserom.gba", 0x114276, 0x0000019 + +gUnk_0811428F:: @ 0811428F + .incbin "baserom.gba", 0x11428F, 0x0000019 + +gUnk_081142A8:: @ 081142A8 + .incbin "baserom.gba", 0x1142A8, 0x0000014 + +gUnk_081142BC:: @ 081142BC + .incbin "baserom.gba", 0x1142BC, 0x0000010 + +gUnk_081142CC:: @ 081142CC + .incbin "baserom.gba", 0x1142CC, 0x0000010 + +gUnk_081142DC:: @ 081142DC + .incbin "baserom.gba", 0x1142DC, 0x0000020 + +gUnk_081142FC:: @ 081142FC + .incbin "baserom.gba", 0x1142FC, 0x0000008 + +gUnk_08114304:: @ 08114304 + .incbin "baserom.gba", 0x114304, 0x0000004 + +gUnk_08114308:: @ 08114308 + .incbin "baserom.gba", 0x114308, 0x0000128 + +gUnk_08114430:: @ 08114430 + .incbin "baserom.gba", 0x114430, 0x0000002 + +gUnk_08114432:: @ 08114432 + .incbin "baserom.gba", 0x114432, 0x0000012 + +gUnk_08114444:: @ 08114444 + .incbin "baserom.gba", 0x114444, 0x0000084 + +gUnk_081144C8:: @ 081144C8 + .incbin "baserom.gba", 0x1144C8, 0x0000005 + +gUnk_081144CD:: @ 081144CD + .incbin "baserom.gba", 0x1144CD, 0x0000005 + +gUnk_081144D2:: @ 081144D2 + .incbin "baserom.gba", 0x1144D2, 0x0000005 + +gUnk_081144D7:: @ 081144D7 + .incbin "baserom.gba", 0x1144D7, 0x0000005 + +gUnk_081144DC:: @ 081144DC + .incbin "baserom.gba", 0x1144DC, 0x0000014 + +gUnk_081144F0:: @ 081144F0 + .incbin "baserom.gba", 0x1144F0, 0x000000C + +gUnk_081144FC:: @ 081144FC + .incbin "baserom.gba", 0x1144FC, 0x0000035 + +gUnk_08114531:: @ 08114531 + .incbin "baserom.gba", 0x114531, 0x000000B + +gUnk_0811453C:: @ 0811453C + .incbin "baserom.gba", 0x11453C, 0x0000011 + +gUnk_0811454D:: @ 0811454D + .incbin "baserom.gba", 0x11454D, 0x0000011 + +gUnk_0811455E:: @ 0811455E + .incbin "baserom.gba", 0x11455E, 0x0000011 + +gUnk_0811456F:: @ 0811456F + .incbin "baserom.gba", 0x11456F, 0x0000005 + +gUnk_08114574:: @ 08114574 + .incbin "baserom.gba", 0x114574, 0x0000005 + +gUnk_08114579:: @ 08114579 + .incbin "baserom.gba", 0x114579, 0x0000007 + +gUnk_08114580:: @ 08114580 + .incbin "baserom.gba", 0x114580, 0x0000034 + +gUnk_081145B4:: @ 081145B4 + .incbin "baserom.gba", 0x1145B4, 0x0000014 + +gUnk_081145C8:: @ 081145C8 + .incbin "baserom.gba", 0x1145C8, 0x0000008 + +gUnk_081145D0:: @ 081145D0 + .incbin "baserom.gba", 0x1145D0, 0x0000004 + +gUnk_081145D4:: @ 081145D4 + .incbin "baserom.gba", 0x1145D4, 0x0000010 + +gUnk_081145E4:: @ 081145E4 + .incbin "baserom.gba", 0x1145E4, 0x00000D4 + +gUnk_081146B8:: @ 081146B8 + .incbin "baserom.gba", 0x1146B8, 0x0000018 + +gUnk_081146D0:: @ 081146D0 + .incbin "baserom.gba", 0x1146D0, 0x0000014 + +gUnk_081146E4:: @ 081146E4 + .incbin "baserom.gba", 0x1146E4, 0x0000010 + +gUnk_081146F4:: @ 081146F4 + .incbin "baserom.gba", 0x1146F4, 0x00000A8 + +gUnk_0811479C:: @ 0811479C + .incbin "baserom.gba", 0x11479C, 0x0000048 + +gUnk_081147E4:: @ 081147E4 + .incbin "baserom.gba", 0x1147E4, 0x0000020 + +gUnk_08114804:: @ 08114804 + .incbin "baserom.gba", 0x114804, 0x0000010 + +gUnk_08114814:: @ 08114814 + .incbin "baserom.gba", 0x114814, 0x0000010 + +gUnk_08114824:: @ 08114824 + .incbin "baserom.gba", 0x114824, 0x0000040 + +gUnk_08114864:: @ 08114864 + .incbin "baserom.gba", 0x114864, 0x0000010 + +gUnk_08114874:: @ 08114874 + .incbin "baserom.gba", 0x114874, 0x0000030 + +gUnk_081148A4:: @ 081148A4 + .incbin "baserom.gba", 0x1148A4, 0x0000020 + +gUnk_081148C4:: @ 081148C4 + .incbin "baserom.gba", 0x1148C4, 0x0000020 + +gUnk_081148E4:: @ 081148E4 + .incbin "baserom.gba", 0x1148E4, 0x0000030 + +gUnk_08114914:: @ 08114914 + .incbin "baserom.gba", 0x114914, 0x0000030 + +gUnk_08114944:: @ 08114944 + .incbin "baserom.gba", 0x114944, 0x0000030 + +gUnk_08114974:: @ 08114974 + .incbin "baserom.gba", 0x114974, 0x0000010 + +gUnk_08114984:: @ 08114984 + .incbin "baserom.gba", 0x114984, 0x0000010 + +gUnk_08114994:: @ 08114994 + .incbin "baserom.gba", 0x114994, 0x0000010 + +gUnk_081149A4:: @ 081149A4 + .incbin "baserom.gba", 0x1149A4, 0x0000010 + +gUnk_081149B4:: @ 081149B4 + .incbin "baserom.gba", 0x1149B4, 0x0000010 + +gUnk_081149C4:: @ 081149C4 + .incbin "baserom.gba", 0x1149C4, 0x0000030 + +gUnk_081149F4:: @ 081149F4 + .incbin "baserom.gba", 0x1149F4, 0x0000020 + +gUnk_08114A14:: @ 08114A14 + .incbin "baserom.gba", 0x114A14, 0x0000058 + +gUnk_08114A6C:: @ 08114A6C + .incbin "baserom.gba", 0x114A6C, 0x0000020 + +gUnk_08114A8C:: @ 08114A8C + .incbin "baserom.gba", 0x114A8C, 0x0000030 + +gUnk_08114ABC:: @ 08114ABC + .incbin "baserom.gba", 0x114ABC, 0x0000028 + +gUnk_08114AE4:: @ 08114AE4 + .incbin "baserom.gba", 0x114AE4, 0x0000400 + +gUnk_08114EE4:: @ 08114EE4 + .incbin "baserom.gba", 0x114EE4, 0x0000018 + +gUnk_08114EFC:: @ 08114EFC + .incbin "baserom.gba", 0x114EFC, 0x0000010 + +gUnk_08114F0C:: @ 08114F0C + .incbin "baserom.gba", 0x114F0C, 0x0000024 + +gUnk_08114F30:: @ 08114F30 + .incbin "baserom.gba", 0x114F30, 0x0000004 + +gUnk_08114F34:: @ 08114F34 + .incbin "baserom.gba", 0x114F34, 0x0000004 + +gUnk_08114F38:: @ 08114F38 + .incbin "baserom.gba", 0x114F38, 0x0000020 + +gUnk_08114F58:: @ 08114F58 + .incbin "baserom.gba", 0x114F58, 0x0000020 + +gUnk_08114F78:: @ 08114F78 + .incbin "baserom.gba", 0x114F78, 0x0000008 + +gUnk_08114F80:: @ 08114F80 + .incbin "baserom.gba", 0x114F80, 0x0000008 + +gUnk_08114F88:: @ 08114F88 + .incbin "baserom.gba", 0x114F88, 0x0000010 + +gUnk_08114F98:: @ 08114F98 + .incbin "baserom.gba", 0x114F98, 0x00003F4 + +gUnk_0811538C:: @ 0811538C + .incbin "baserom.gba", 0x11538C, 0x0000153 + +gUnk_081154DF:: @ 081154DF + .incbin "baserom.gba", 0x1154DF, 0x0000042 + +gUnk_08115521:: @ 08115521 + .incbin "baserom.gba", 0x115521, 0x0000002 + +gUnk_08115523:: @ 08115523 + .incbin "baserom.gba", 0x115523, 0x0000003 + +gUnk_08115526:: @ 08115526 + .incbin "baserom.gba", 0x115526, 0x00001FE + +gUnk_08115724:: @ 08115724 + .incbin "baserom.gba", 0x115724, 0x00003D4 + +gUnk_08115AF8:: @ 08115AF8 + .incbin "baserom.gba", 0x115AF8, 0x00003A4 + +gUnk_08115E9C:: @ 08115E9C + .incbin "baserom.gba", 0x115E9C, 0x0000176 + +gUnk_08116012:: @ 08116012 + .incbin "baserom.gba", 0x116012, 0x000026E + +gUnk_08116280:: @ 08116280 + .incbin "baserom.gba", 0x116280, 0x00002B0 + +gUnk_08116530:: @ 08116530 + .incbin "baserom.gba", 0x116530, 0x00001D3 + +gUnk_08116703:: @ 08116703 + .incbin "baserom.gba", 0x116703, 0x0000085 + +gUnk_08116788:: @ 08116788 + .incbin "baserom.gba", 0x116788, 0x0000100 + +gUnk_08116888:: @ 08116888 + .incbin "baserom.gba", 0x116888, 0x0000017 + +gUnk_0811689F:: @ 0811689F + .incbin "baserom.gba", 0x11689F, 0x00001FD + +gUnk_08116A9C:: @ 08116A9C + .incbin "baserom.gba", 0x116A9C, 0x0000270 + +gUnk_08116D0C:: @ 08116D0C + .incbin "baserom.gba", 0x116D0C, 0x00000C8 + +gUnk_08116DD4:: @ 08116DD4 + .incbin "baserom.gba", 0x116DD4, 0x0000071 + +gUnk_08116E45:: @ 08116E45 + .incbin "baserom.gba", 0x116E45, 0x000011F + +gUnk_08116F64:: @ 08116F64 + .incbin "baserom.gba", 0x116F64, 0x00002A4 + +gUnk_08117208:: @ 08117208 + .incbin "baserom.gba", 0x117208, 0x0000038 + +gUnk_08117240:: @ 08117240 + .incbin "baserom.gba", 0x117240, 0x000039C + +gUnk_081175DC:: @ 081175DC + .incbin "baserom.gba", 0x1175DC, 0x00002D4 + +gUnk_081178B0:: @ 081178B0 + .incbin "baserom.gba", 0x1178B0, 0x00002D4 + +gUnk_08117B84:: @ 08117B84 + .incbin "baserom.gba", 0x117B84, 0x00001E0 + +gUnk_08117D64:: @ 08117D64 + .incbin "baserom.gba", 0x117D64, 0x00000DC + +gUnk_08117E40:: @ 08117E40 + .incbin "baserom.gba", 0x117E40, 0x0000128 + +gUnk_08117F68:: @ 08117F68 + .incbin "baserom.gba", 0x117F68, 0x000006C + +gUnk_08117FD4:: @ 08117FD4 + .incbin "baserom.gba", 0x117FD4, 0x00001AD + +gUnk_08118181:: @ 08118181 + .incbin "baserom.gba", 0x118181, 0x0000033 + +gUnk_081181B4:: @ 081181B4 + .incbin "baserom.gba", 0x1181B4, 0x0000030 + +gUnk_081181E4:: @ 081181E4 + .incbin "baserom.gba", 0x1181E4, 0x0000054 + +gUnk_08118238:: @ 08118238 + .incbin "baserom.gba", 0x118238, 0x000002C + +gUnk_08118264:: @ 08118264 + .incbin "baserom.gba", 0x118264, 0x0000034 + +gUnk_08118298:: @ 08118298 + .incbin "baserom.gba", 0x118298, 0x0000100 + +gUnk_08118398:: @ 08118398 + .incbin "baserom.gba", 0x118398, 0x0000024 + +gUnk_081183BC:: @ 081183BC + .incbin "baserom.gba", 0x1183BC, 0x00000B0 + +gUnk_0811846C:: @ 0811846C + .incbin "baserom.gba", 0x11846C, 0x000003C + +gUnk_081184A8:: @ 081184A8 + .incbin "baserom.gba", 0x1184A8, 0x00000B0 + +gUnk_08118558:: @ 08118558 + .incbin "baserom.gba", 0x118558, 0x00001C8 + +gUnk_08118720:: @ 08118720 + .incbin "baserom.gba", 0x118720, 0x0000048 + +gUnk_08118768:: @ 08118768 + .incbin "baserom.gba", 0x118768, 0x0000018 + +gUnk_08118780:: @ 08118780 + .incbin "baserom.gba", 0x118780, 0x0000008 + +gUnk_08118788:: @ 08118788 + .incbin "baserom.gba", 0x118788, 0x000000C + +gUnk_08118794:: @ 08118794 + .incbin "baserom.gba", 0x118794, 0x000012C + +gUnk_081188C0:: @ 081188C0 + .incbin "baserom.gba", 0x1188C0, 0x0000088 + +gUnk_08118948:: @ 08118948 + .incbin "baserom.gba", 0x118948, 0x0000018 + +gUnk_08118960:: @ 08118960 + .incbin "baserom.gba", 0x118960, 0x0000014 + +gUnk_08118974:: @ 08118974 + .incbin "baserom.gba", 0x118974, 0x0000014 + +gUnk_08118988:: @ 08118988 + .incbin "baserom.gba", 0x118988, 0x0000278 + +gUnk_08118C00:: @ 08118C00 + .incbin "baserom.gba", 0x118C00, 0x0000138 + +gUnk_08118D38:: @ 08118D38 + .incbin "baserom.gba", 0x118D38, 0x000006C + +gUnk_08118DA4:: @ 08118DA4 + .incbin "baserom.gba", 0x118DA4, 0x000002C + +gUnk_08118DD0:: @ 08118DD0 + .incbin "baserom.gba", 0x118DD0, 0x000000C + +gUnk_08118DDC:: @ 08118DDC + .incbin "baserom.gba", 0x118DDC, 0x0000080 + +gUnk_08118E5C:: @ 08118E5C + .incbin "baserom.gba", 0x118E5C, 0x00000A8 + +gUnk_08118F04:: @ 08118F04 + .incbin "baserom.gba", 0x118F04, 0x0000038 + +gUnk_08118F3C:: @ 08118F3C + .incbin "baserom.gba", 0x118F3C, 0x0000028 + +gUnk_08118F64:: @ 08118F64 + .incbin "baserom.gba", 0x118F64, 0x0000034 + +gUnk_08118F98:: @ 08118F98 + .incbin "baserom.gba", 0x118F98, 0x0000108 + +gUnk_081190A0:: @ 081190A0 + .incbin "baserom.gba", 0x1190A0, 0x0000044 + +gUnk_081190E4:: @ 081190E4 + .incbin "baserom.gba", 0x1190E4, 0x0000038 + +gUnk_0811911C:: @ 0811911C + .incbin "baserom.gba", 0x11911C, 0x0000010 + +gUnk_0811912C:: @ 0811912C + .incbin "baserom.gba", 0x11912C, 0x000005C + +gUnk_08119188:: @ 08119188 + .incbin "baserom.gba", 0x119188, 0x0000120 + +gUnk_081192A8:: @ 081192A8 + .incbin "baserom.gba", 0x1192A8, 0x00002A0 + +gUnk_08119548:: @ 08119548 + .incbin "baserom.gba", 0x119548, 0x000027C + +gUnk_081197C4:: @ 081197C4 + .incbin "baserom.gba", 0x1197C4, 0x0000030 + +gUnk_081197F4:: @ 081197F4 + .incbin "baserom.gba", 0x1197F4, 0x00000D0 + +gUnk_081198C4:: @ 081198C4 + .incbin "baserom.gba", 0x1198C4, 0x0000028 + +gUnk_081198EC:: @ 081198EC + .incbin "baserom.gba", 0x1198EC, 0x00000B8 + +gUnk_081199A4:: @ 081199A4 + .incbin "baserom.gba", 0x1199A4, 0x0000054 + +gUnk_081199F8:: @ 081199F8 + .incbin "baserom.gba", 0x1199F8, 0x000007C + +gUnk_08119A74:: @ 08119A74 + .incbin "baserom.gba", 0x119A74, 0x000007C + +gUnk_08119AF0:: @ 08119AF0 + .incbin "baserom.gba", 0x119AF0, 0x000008C + +gUnk_08119B7C:: @ 08119B7C + .incbin "baserom.gba", 0x119B7C, 0x0000074 + +gUnk_08119BF0:: @ 08119BF0 + .incbin "baserom.gba", 0x119BF0, 0x0000074 + +gUnk_08119C64:: @ 08119C64 + .incbin "baserom.gba", 0x119C64, 0x0000090 + +gUnk_08119CF4:: @ 08119CF4 + .incbin "baserom.gba", 0x119CF4, 0x0000060 + +gUnk_08119D54:: @ 08119D54 + .incbin "baserom.gba", 0x119D54, 0x0000054 + +gUnk_08119DA8:: @ 08119DA8 + .incbin "baserom.gba", 0x119DA8, 0x0000054 + +gUnk_08119DFC:: @ 08119DFC + .incbin "baserom.gba", 0x119DFC, 0x000001C + +gUnk_08119E18:: @ 08119E18 + .incbin "baserom.gba", 0x119E18, 0x000002C + +gUnk_08119E44:: @ 08119E44 + .incbin "baserom.gba", 0x119E44, 0x000006C + +gUnk_08119EB0:: @ 08119EB0 + .incbin "baserom.gba", 0x119EB0, 0x0000028 + +gUnk_08119ED8:: @ 08119ED8 + .incbin "baserom.gba", 0x119ED8, 0x00000A8 + +gUnk_08119F80:: @ 08119F80 + .incbin "baserom.gba", 0x119F80, 0x0000024 + +gUnk_08119FA4:: @ 08119FA4 + .incbin "baserom.gba", 0x119FA4, 0x0000024 + +gUnk_08119FC8:: @ 08119FC8 + .incbin "baserom.gba", 0x119FC8, 0x000000C + +gUnk_08119FD4:: @ 08119FD4 + .incbin "baserom.gba", 0x119FD4, 0x0000048 + +gUnk_0811A01C:: @ 0811A01C + .incbin "baserom.gba", 0x11A01C, 0x0000030 + +gUnk_0811A04C:: @ 0811A04C + .incbin "baserom.gba", 0x11A04C, 0x000001C + +gUnk_0811A068:: @ 0811A068 + .incbin "baserom.gba", 0x11A068, 0x000003C + +gUnk_0811A0A4:: @ 0811A0A4 + .incbin "baserom.gba", 0x11A0A4, 0x0000028 + +gUnk_0811A0CC:: @ 0811A0CC + .incbin "baserom.gba", 0x11A0CC, 0x0000018 + +gUnk_0811A0E4:: @ 0811A0E4 + .incbin "baserom.gba", 0x11A0E4, 0x0000040 + +gUnk_0811A124:: @ 0811A124 + .incbin "baserom.gba", 0x11A124, 0x0000020 + +gUnk_0811A144:: @ 0811A144 + .incbin "baserom.gba", 0x11A144, 0x0000038 + +gUnk_0811A17C:: @ 0811A17C + .incbin "baserom.gba", 0x11A17C, 0x000004C + +gUnk_0811A1C8:: @ 0811A1C8 + .incbin "baserom.gba", 0x11A1C8, 0x0000030 + +gUnk_0811A1F8:: @ 0811A1F8 + .incbin "baserom.gba", 0x11A1F8, 0x0000030 + +gUnk_0811A228:: @ 0811A228 + .incbin "baserom.gba", 0x11A228, 0x0000058 + +gUnk_0811A280:: @ 0811A280 + .incbin "baserom.gba", 0x11A280, 0x000000C + +gUnk_0811A28C:: @ 0811A28C + .incbin "baserom.gba", 0x11A28C, 0x000001C + +gUnk_0811A2A8:: @ 0811A2A8 + .incbin "baserom.gba", 0x11A2A8, 0x0000028 + +gUnk_0811A2D0:: @ 0811A2D0 + .incbin "baserom.gba", 0x11A2D0, 0x000002C + +gUnk_0811A2FC:: @ 0811A2FC + .incbin "baserom.gba", 0x11A2FC, 0x0000214 + +gUnk_0811A510:: @ 0811A510 + .incbin "baserom.gba", 0x11A510, 0x000024C + +gUnk_0811A75C:: @ 0811A75C + .incbin "baserom.gba", 0x11A75C, 0x000004C + +gUnk_0811A7A8:: @ 0811A7A8 + .incbin "baserom.gba", 0x11A7A8, 0x00000C4 + +gUnk_0811A86C:: @ 0811A86C + .incbin "baserom.gba", 0x11A86C, 0x0000060 + +gUnk_0811A8CC:: @ 0811A8CC + .incbin "baserom.gba", 0x11A8CC, 0x00000E8 + +gUnk_0811A9B4:: @ 0811A9B4 + .incbin "baserom.gba", 0x11A9B4, 0x0000078 + +gUnk_0811AA2C:: @ 0811AA2C + .incbin "baserom.gba", 0x11AA2C, 0x0000050 + +gUnk_0811AA7C:: @ 0811AA7C + .incbin "baserom.gba", 0x11AA7C, 0x000009C + +gUnk_0811AB18:: @ 0811AB18 + .incbin "baserom.gba", 0x11AB18, 0x00000E0 + +gUnk_0811ABF8:: @ 0811ABF8 + .incbin "baserom.gba", 0x11ABF8, 0x0000019 + +gUnk_0811AC11:: @ 0811AC11 + .incbin "baserom.gba", 0x11AC11, 0x0000113 + +gUnk_0811AD24:: @ 0811AD24 + .incbin "baserom.gba", 0x11AD24, 0x00000A8 + +gUnk_0811ADCC:: @ 0811ADCC + .incbin "baserom.gba", 0x11ADCC, 0x00000E4 + +gUnk_0811AEB0:: @ 0811AEB0 + .incbin "baserom.gba", 0x11AEB0, 0x0000028 + +gUnk_0811AED8:: @ 0811AED8 + .incbin "baserom.gba", 0x11AED8, 0x000004C + +gUnk_0811AF24:: @ 0811AF24 + .incbin "baserom.gba", 0x11AF24, 0x0000010 + +gUnk_0811AF34:: @ 0811AF34 + .incbin "baserom.gba", 0x11AF34, 0x0000030 + +gUnk_0811AF64:: @ 0811AF64 + .incbin "baserom.gba", 0x11AF64, 0x0000028 + +gUnk_0811AF8C:: @ 0811AF8C + .incbin "baserom.gba", 0x11AF8C, 0x0000030 + +gUnk_0811AFBC:: @ 0811AFBC + .incbin "baserom.gba", 0x11AFBC, 0x0000014 + +gUnk_0811AFD0:: @ 0811AFD0 + .incbin "baserom.gba", 0x11AFD0, 0x0000030 + +gUnk_0811B000:: @ 0811B000 + .incbin "baserom.gba", 0x11B000, 0x000001C + +gUnk_0811B01C:: @ 0811B01C + .incbin "baserom.gba", 0x11B01C, 0x0000010 + +gUnk_0811B02C:: @ 0811B02C + .incbin "baserom.gba", 0x11B02C, 0x0000084 + +gUnk_0811B0B0:: @ 0811B0B0 + .incbin "baserom.gba", 0x11B0B0, 0x0000080 + +gUnk_0811B130:: @ 0811B130 + .incbin "baserom.gba", 0x11B130, 0x0000048 + +gUnk_0811B178:: @ 0811B178 + .incbin "baserom.gba", 0x11B178, 0x0000018 + +gUnk_0811B190:: @ 0811B190 + .incbin "baserom.gba", 0x11B190, 0x0000084 + +gUnk_0811B214:: @ 0811B214 + .incbin "baserom.gba", 0x11B214, 0x0000044 + +gUnk_0811B258:: @ 0811B258 + .incbin "baserom.gba", 0x11B258, 0x000003C + +gUnk_0811B294:: @ 0811B294 + .incbin "baserom.gba", 0x11B294, 0x0000068 + +gUnk_0811B2FC:: @ 0811B2FC + .incbin "baserom.gba", 0x11B2FC, 0x0000050 + +gUnk_0811B34C:: @ 0811B34C + .incbin "baserom.gba", 0x11B34C, 0x0000048 + +gUnk_0811B394:: @ 0811B394 + .incbin "baserom.gba", 0x11B394, 0x0000010 + +gUnk_0811B3A4:: @ 0811B3A4 + .incbin "baserom.gba", 0x11B3A4, 0x0000010 + +gUnk_0811B3B4:: @ 0811B3B4 + .incbin "baserom.gba", 0x11B3B4, 0x0000014 + +gUnk_0811B3C8:: @ 0811B3C8 + .incbin "baserom.gba", 0x11B3C8, 0x0000040 + +gUnk_0811B408:: @ 0811B408 + .incbin "baserom.gba", 0x11B408, 0x0000138 + +gUnk_0811B540:: @ 0811B540 + .incbin "baserom.gba", 0x11B540, 0x0000024 + +gUnk_0811B564:: @ 0811B564 + .incbin "baserom.gba", 0x11B564, 0x0000014 + +gUnk_0811B578:: @ 0811B578 + .incbin "baserom.gba", 0x11B578, 0x00003C8 + +gUnk_0811B940:: @ 0811B940 + .incbin "baserom.gba", 0x11B940, 0x000004C + +gUnk_0811B98C:: @ 0811B98C + .incbin "baserom.gba", 0x11B98C, 0x0000014 + +gUnk_0811B9A0:: @ 0811B9A0 + .incbin "baserom.gba", 0x11B9A0, 0x0000008 + +gUnk_0811B9A8:: @ 0811B9A8 + .incbin "baserom.gba", 0x11B9A8, 0x0000020 + +gUnk_0811B9C8:: @ 0811B9C8 + .incbin "baserom.gba", 0x11B9C8, 0x0000008 + +gUnk_0811B9D0:: @ 0811B9D0 + .incbin "baserom.gba", 0x11B9D0, 0x0000008 + +gUnk_0811B9D8:: @ 0811B9D8 + .incbin "baserom.gba", 0x11B9D8, 0x0000008 + +gUnk_0811B9E0:: @ 0811B9E0 + .incbin "baserom.gba", 0x11B9E0, 0x0000080 + +gUnk_0811BA60:: @ 0811BA60 + .incbin "baserom.gba", 0x11BA60, 0x0000008 + +gUnk_0811BA68:: @ 0811BA68 + .incbin "baserom.gba", 0x11BA68, 0x000000C + +gUnk_0811BA74:: @ 0811BA74 + .incbin "baserom.gba", 0x11BA74, 0x0000008 + +gUnk_0811BA7C:: @ 0811BA7C + .incbin "baserom.gba", 0x11BA7C, 0x000000C + +gUnk_0811BA88:: @ 0811BA88 + .incbin "baserom.gba", 0x11BA88, 0x000000C + +gUnk_0811BA94:: @ 0811BA94 + .incbin "baserom.gba", 0x11BA94, 0x0000008 + +gUnk_0811BA9C:: @ 0811BA9C + .incbin "baserom.gba", 0x11BA9C, 0x0000020 + +gUnk_0811BABC:: @ 0811BABC + .incbin "baserom.gba", 0x11BABC, 0x0000008 + +gUnk_0811BAC4:: @ 0811BAC4 + .incbin "baserom.gba", 0x11BAC4, 0x0000010 + +gUnk_0811BAD4:: @ 0811BAD4 + .incbin "baserom.gba", 0x11BAD4, 0x0000010 + +gUnk_0811BAE4:: @ 0811BAE4 + .incbin "baserom.gba", 0x11BAE4, 0x000000C + +gUnk_0811BAF0:: @ 0811BAF0 + .incbin "baserom.gba", 0x11BAF0, 0x000003C + +gUnk_0811BB2C:: @ 0811BB2C + .incbin "baserom.gba", 0x11BB2C, 0x000000C + +gUnk_0811BB38:: @ 0811BB38 + .incbin "baserom.gba", 0x11BB38, 0x0000004 + +gUnk_0811BB3C:: @ 0811BB3C + .incbin "baserom.gba", 0x11BB3C, 0x000000C + +gUnk_0811BB48:: @ 0811BB48 + .incbin "baserom.gba", 0x11BB48, 0x0000008 + +gUnk_0811BB50:: @ 0811BB50 + .incbin "baserom.gba", 0x11BB50, 0x0000008 + +gUnk_0811BB58:: @ 0811BB58 + .incbin "baserom.gba", 0x11BB58, 0x0000008 + +gUnk_0811BB60:: @ 0811BB60 + .incbin "baserom.gba", 0x11BB60, 0x0000008 + +gUnk_0811BB68:: @ 0811BB68 + .incbin "baserom.gba", 0x11BB68, 0x0000008 + +gUnk_0811BB70:: @ 0811BB70 + .incbin "baserom.gba", 0x11BB70, 0x0000010 + +gUnk_0811BB80:: @ 0811BB80 + .incbin "baserom.gba", 0x11BB80, 0x0000008 + +gUnk_0811BB88:: @ 0811BB88 + .incbin "baserom.gba", 0x11BB88, 0x0000008 + +gUnk_0811BB90:: @ 0811BB90 + .incbin "baserom.gba", 0x11BB90, 0x0000008 + +gUnk_0811BB98:: @ 0811BB98 + .incbin "baserom.gba", 0x11BB98, 0x0000014 + +gUnk_0811BBAC:: @ 0811BBAC + .incbin "baserom.gba", 0x11BBAC, 0x0000010 + +gUnk_0811BBBC:: @ 0811BBBC + .incbin "baserom.gba", 0x11BBBC, 0x0000006 + +gUnk_0811BBC2:: @ 0811BBC2 + .incbin "baserom.gba", 0x11BBC2, 0x0000006 + +gUnk_0811BBC8:: @ 0811BBC8 + .incbin "baserom.gba", 0x11BBC8, 0x0000006 + +gUnk_0811BBCE:: @ 0811BBCE + .incbin "baserom.gba", 0x11BBCE, 0x0000006 + +gUnk_0811BBD4:: @ 0811BBD4 + .incbin "baserom.gba", 0x11BBD4, 0x0000010 + +gUnk_0811BBE4:: @ 0811BBE4 + .incbin "baserom.gba", 0x11BBE4, 0x0000008 + +gUnk_0811BBEC:: @ 0811BBEC + .incbin "baserom.gba", 0x11BBEC, 0x000000C + +gUnk_0811BBF8:: @ 0811BBF8 + .incbin "baserom.gba", 0x11BBF8, 0x0000010 + +gUnk_0811BC08:: @ 0811BC08 + .incbin "baserom.gba", 0x11BC08, 0x0000020 + +gUnk_0811BC28:: @ 0811BC28 + .incbin "baserom.gba", 0x11BC28, 0x0000008 + +gUnk_0811BC30:: @ 0811BC30 + .incbin "baserom.gba", 0x11BC30, 0x0000008 + +gUnk_0811BC38:: @ 0811BC38 + .incbin "baserom.gba", 0x11BC38, 0x0000008 + +gUnk_0811BC40:: @ 0811BC40 + .incbin "baserom.gba", 0x11BC40, 0x0000008 + +gUnk_0811BC48:: @ 0811BC48 + .incbin "baserom.gba", 0x11BC48, 0x0000018 + +gUnk_0811BC60:: @ 0811BC60 + .incbin "baserom.gba", 0x11BC60, 0x0000020 + +gUnk_0811BC80:: @ 0811BC80 + .incbin "baserom.gba", 0x11BC80, 0x0000008 + +gUnk_0811BC88:: @ 0811BC88 + .incbin "baserom.gba", 0x11BC88, 0x0000010 + +gUnk_0811BC98:: @ 0811BC98 + .incbin "baserom.gba", 0x11BC98, 0x000001C + +gUnk_0811BCB4:: @ 0811BCB4 + .incbin "baserom.gba", 0x11BCB4, 0x0000010 diff --git a/include/functions.h b/include/functions.h index bb9cdb9a..a037c980 100644 --- a/include/functions.h +++ b/include/functions.h @@ -242,4 +242,10 @@ extern void sub_0807921C(); extern void sub_0807A1B8(); extern void sub_08079938(); extern void sub_0807ACCC(Entity*); +extern void HandleIntroScreen(void); +extern void HandleChooseFileScreen(void); +extern void HandleGameplayScreen(void); +extern void HandleGameOverScreen(void); +extern void HandleCreditsScreen(void); +extern void HandleDebugTextScreen(void); #endif \ No newline at end of file diff --git a/include/main.h b/include/main.h index 4a58a344..984ed077 100644 --- a/include/main.h +++ b/include/main.h @@ -20,6 +20,7 @@ enum { SCREEN_GAMEPLAY, SCREEN_GAME_OVER, SCREEN_CREDITS, + SCREEN_DEBUG_TEXT, }; typedef struct { diff --git a/linker.ld b/linker.ld index 8e387fe4..6a773f55 100644 --- a/linker.ld +++ b/linker.ld @@ -916,6 +916,8 @@ SECTIONS { data/data_080D3D94.o(.rodata); data/areaPropertyLists.o(.rodata); data/data_080D5360.o(.rodata); + src/mainLoop.o(.rodata); + data/data_08100CD4.o(.rodata); src/item.o(.rodata); data/data_0811BD44.o(.rodata); src/object/greatFairy.o(.rodata); diff --git a/src/introSetTransition.c b/src/introSetTransition.c index ea42ecd9..4ff7644f 100644 --- a/src/introSetTransition.c +++ b/src/introSetTransition.c @@ -26,7 +26,7 @@ u32 IntroSetTransition(u32 transition) DoFade(7, 8); } -void sub_080AD380() +void HandleIntroScreen(void) { sub_080AD90C(); switch (gUnk_03001000.funcIndex) { diff --git a/src/mainLoop.c b/src/mainLoop.c index f1c8df1c..14fe0390 100644 --- a/src/mainLoop.c +++ b/src/mainLoop.c @@ -6,7 +6,6 @@ extern void sub_0804FF84(u32); extern u32 gUnk_020176A0; -extern const void (*gUnk_08100CBC[])(); extern void VBlankInterruptWait(void); extern void DisableInterruptsAndDMA(void); extern void sub_0801D66C(void*, u8*, int); @@ -15,6 +14,15 @@ extern void sub_08016B34(void); static void sub_08055F70(void); static bool32 SoftResetKeysPressed(void); +static void (*const sScreenHandlers[])(void) = { + [SCREEN_INTRO] = HandleIntroScreen, + [SCREEN_CHOOSE_FILE] = HandleChooseFileScreen, + [SCREEN_GAMEPLAY] = HandleGameplayScreen, + [SCREEN_GAME_OVER] = HandleGameOverScreen, + [SCREEN_CREDITS] = HandleCreditsScreen, + [SCREEN_DEBUG_TEXT] = HandleDebugTextScreen, +}; + void MainLoop(void) { int var0; @@ -60,7 +68,7 @@ void MainLoop(void) { } gUnk_03001000.ticks++; - gUnk_08100CBC[gUnk_03001000.screen](); + sScreenHandlers[gUnk_03001000.screen](); sub_08056458(); sub_08050154(); sub_080A3480(); From 37d1781f51ec1d768bc4a6f19d6557390f05fa02 Mon Sep 17 00:00:00 2001 From: Marcus Huderle Date: Tue, 11 Aug 2020 20:27:29 -0500 Subject: [PATCH 115/158] Decompile more intro code and palette loading code --- asm/code_08019444.s | 8 +- asm/code_0801C370.s | 2 +- asm/code_0801CEC0.s | 28 +- asm/code_0801D714.s | 81 - asm/code_0801D79C.s | 12 +- asm/code_0804AA84.s | 6 +- asm/code_0804B058.s | 4 +- asm/code_0804B9F8.s | 8 +- asm/code_08050038.s | 28 +- asm/code_080526F8.s | 18 +- asm/code_0805EC04.s | 2 +- asm/code_0807B9B8.s | 8 +- asm/code_080A3480.s | 8 +- asm/code_080A3BD0.s | 14 +- asm/code_080A5574.s | 14 +- asm/code_080AD90C.s | 4 +- asm/manager10.s | 6 +- asm/manager12.s | 4 +- asm/manager15.s | 2 +- asm/manager1A.s | 4 +- asm/manager7.s | 16 +- asm/manager9.s | 2 +- asm/managerC.s | 6 +- asm/sub_080AD76C.s | 108 - asm/sub_080AD84C.s | 51 - asm/sub_080AD89C.s | 49 - data/data_080D5360.s | 857 +-- data/data_08121C58.s | 14853 ------------------------------------ data/data_081320FC.s | 14855 +++++++++++++++++++++++++++++++++++++ include/functions.h | 5 +- include/menu.h | 2 +- include/screen.h | 10 +- linker.ld | 12 +- src/code_0801D714.c | 43 + src/introSetTransition.c | 111 +- src/mainLoop.c | 4 +- src/manager/manager27.c | 4 +- src/object/object48.c | 6 +- src/room.c | 8 +- src/sub_0801D754.c | 10 +- src/sub_08050024.c | 4 +- src/sub_080A3B84.c | 2 +- src/sub_080AD834.c | 10 - 43 files changed, 15344 insertions(+), 15945 deletions(-) delete mode 100644 asm/code_0801D714.s delete mode 100644 asm/sub_080AD76C.s delete mode 100644 asm/sub_080AD84C.s delete mode 100644 asm/sub_080AD89C.s create mode 100755 data/data_081320FC.s create mode 100755 src/code_0801D714.c delete mode 100644 src/sub_080AD834.c diff --git a/asm/code_08019444.s b/asm/code_08019444.s index 21215e60..97c4c530 100644 --- a/asm/code_08019444.s +++ b/asm/code_08019444.s @@ -499,7 +499,7 @@ _0801981A: b _0801982E _08019824: ldrh r0, [r4] - bl LoadPalettesByPaletteGroupIndex + bl LoadPaletteGroup bl sub_080533CC _0801982E: adds r4, #0xc @@ -3793,7 +3793,7 @@ sub_0801B0EC: @ 0x0801B0EC adds r4, r0, #0 _0801B0F0: ldr r1, [r4, #4] - ldr r0, _0801B110 @ =gUnk_085A2E80 + ldr r0, _0801B110 @ =gGlobalPalettes adds r5, r1, r0 ldrb r2, [r4, #2] ldrh r3, [r4] @@ -3805,10 +3805,10 @@ _0801B0F0: beq _0801B114 lsrs r1, r3, #5 adds r0, r5, #0 - bl sub_0801D754 + bl LoadPalettes b _0801B122 .align 2, 0 -_0801B110: .4byte gUnk_085A2E80 +_0801B110: .4byte gGlobalPalettes _0801B114: movs r0, #0xc0 lsls r0, r0, #0x13 diff --git a/asm/code_0801C370.s b/asm/code_0801C370.s index 49e57eb3..910dd08e 100644 --- a/asm/code_0801C370.s +++ b/asm/code_0801C370.s @@ -41,7 +41,7 @@ _0801C398: lsrs r0, r0, #1 strb r0, [r5, #4] movs r0, #0xc - bl LoadPalettesByPaletteGroupIndex + bl LoadPaletteGroup movs r0, #0x10 bl sub_0801D7EC ldr r4, _0801C478 @ =gUnk_02034CB0 diff --git a/asm/code_0801CEC0.s b/asm/code_0801CEC0.s index 17e396e3..6cfb839c 100644 --- a/asm/code_0801CEC0.s +++ b/asm/code_0801CEC0.s @@ -448,7 +448,7 @@ sub_0801D2B4: @ 0x0801D2B4 sub_0801D2C8: @ 0x0801D2C8 push {r4, lr} adds r3, r0, #0 - ldr r2, _0801D2F8 @ =gUnk_0200B644 + ldr r2, _0801D2F8 @ =gUsedPalettes adds r4, r1, #0 adds r4, #0x10 movs r1, #1 @@ -460,7 +460,7 @@ sub_0801D2C8: @ 0x0801D2C8 bls _0801D33C cmp r3, #0x15 bne _0801D300 - ldr r2, _0801D2FC @ =gUnk_020176A0 + ldr r2, _0801D2FC @ =gPaletteBuffer adds r0, r2, #0 adds r0, #0x78 ldrh r0, [r0] @@ -470,21 +470,21 @@ sub_0801D2C8: @ 0x0801D2C8 bl _DmaFill16 b _0801D33C .align 2, 0 -_0801D2F8: .4byte gUnk_0200B644 -_0801D2FC: .4byte gUnk_020176A0 +_0801D2F8: .4byte gUsedPalettes +_0801D2FC: .4byte gPaletteBuffer _0801D300: cmp r3, #0x14 bhi _0801D31C subs r0, r3, #6 lsls r0, r0, #5 - ldr r1, _0801D318 @ =gUnk_020176A0 + ldr r1, _0801D318 @ =gPaletteBuffer adds r0, r0, r1 adds r1, r4, #0 movs r2, #1 - bl sub_0801D754 + bl LoadPalettes b _0801D33C .align 2, 0 -_0801D318: .4byte gUnk_020176A0 +_0801D318: .4byte gPaletteBuffer _0801D31C: ldr r1, _0801D340 @ =gUnk_08133368 adds r0, r3, #0 @@ -497,16 +497,16 @@ _0801D31C: ands r2, r1 ldr r1, _0801D344 @ =0x00FFFFFF ands r0, r1 - ldr r1, _0801D348 @ =gUnk_085A2E80 + ldr r1, _0801D348 @ =gGlobalPalettes adds r0, r0, r1 adds r1, r4, #0 - bl sub_0801D754 + bl LoadPalettes _0801D33C: pop {r4, pc} .align 2, 0 _0801D340: .4byte gUnk_08133368 _0801D344: .4byte 0x00FFFFFF -_0801D348: .4byte gUnk_085A2E80 +_0801D348: .4byte gGlobalPalettes thumb_func_start sub_0801D34C sub_0801D34C: @ 0x0801D34C @@ -704,7 +704,7 @@ sub_0801D48C: @ 0x0801D48C rsbs r0, r0, #0 cmp r5, r0 beq _0801D4F8 - ldr r2, _0801D510 @ =gUnk_020176A0 + ldr r2, _0801D510 @ =gPaletteBuffer lsls r0, r3, #5 movs r1, #0x80 lsls r1, r1, #2 @@ -741,7 +741,7 @@ _0801D4C8: cmp r5, r0 bne _0801D4C8 _0801D4F8: - ldr r0, _0801D514 @ =gUnk_0200B644 + ldr r0, _0801D514 @ =gUsedPalettes ldr r1, [r0] ldr r2, _0801D518 @ =0xFFFF0000 orrs r1, r2 @@ -752,8 +752,8 @@ _0801D4F8: pop {r4, r5, r6, r7, pc} .align 2, 0 _0801D50C: .4byte gUnk_02001A00 -_0801D510: .4byte gUnk_020176A0 -_0801D514: .4byte gUnk_0200B644 +_0801D510: .4byte gPaletteBuffer +_0801D514: .4byte gUsedPalettes _0801D518: .4byte 0xFFFF0000 thumb_func_start sub_0801D51C diff --git a/asm/code_0801D714.s b/asm/code_0801D714.s deleted file mode 100644 index d1424387..00000000 --- a/asm/code_0801D714.s +++ /dev/null @@ -1,81 +0,0 @@ - .include "asm/macros.inc" - .include "constants/constants.inc" - - .syntax unified - - .text - - thumb_func_start LoadPalettesByPaletteGroupIndex -LoadPalettesByPaletteGroupIndex: @ 0x0801D714 - push {r4, lr} - ldr r1, _0801D748 @ =gUnk_080FF850 - lsls r0, r0, #2 - adds r0, r0, r1 - ldr r4, [r0] -_0801D71E: - ldrb r3, [r4, #2] - ldrb r0, [r4, #3] - movs r2, #0xf - ands r2, r0 - cmp r2, #0 - bne _0801D72C - movs r2, #0x10 -_0801D72C: - ldrh r0, [r4] - lsls r0, r0, #5 - ldr r1, _0801D74C @ =gUnk_085A2E80 - adds r0, r0, r1 - adds r1, r3, #0 - bl sub_0801D754 - ldrb r1, [r4, #3] - movs r0, #0x80 - ands r0, r1 - cmp r0, #0 - beq _0801D750 - adds r4, #4 - b _0801D71E - .align 2, 0 -_0801D748: .4byte gUnk_080FF850 -_0801D74C: .4byte gUnk_085A2E80 -_0801D750: - pop {r4, pc} - .align 2, 0 - - thumb_func_start sub_0801D754 -sub_0801D754: @ 0x0801D754 - push {r4, r5, r6, r7, lr} - adds r6, r0, #0 - lsls r5, r2, #5 - movs r3, #1 - lsls r3, r1 - subs r2, #1 - ldr r4, _0801D790 @ =gUnk_0200B644 - ldr r7, _0801D794 @ =gUnk_020176A0 - cmp r2, #0 - ble _0801D772 -_0801D768: - lsls r0, r3, #1 - orrs r3, r0 - subs r2, #1 - cmp r2, #0 - bgt _0801D768 -_0801D772: - ldr r0, [r4] - orrs r0, r3 - str r0, [r4] - lsls r0, r1, #5 - adds r0, r0, r7 - ldr r2, _0801D798 @ =0x040000D4 - str r6, [r2] - str r0, [r2, #4] - lsrs r0, r5, #2 - movs r1, #0x84 - lsls r1, r1, #0x18 - orrs r0, r1 - str r0, [r2, #8] - ldr r0, [r2, #8] - pop {r4, r5, r6, r7, pc} - .align 2, 0 -_0801D790: .4byte gUnk_0200B644 -_0801D794: .4byte gUnk_020176A0 -_0801D798: .4byte 0x040000D4 \ No newline at end of file diff --git a/asm/code_0801D79C.s b/asm/code_0801D79C.s index 3bd3bf75..e622b542 100644 --- a/asm/code_0801D79C.s +++ b/asm/code_0801D79C.s @@ -7,11 +7,11 @@ thumb_func_start sub_0801D79C sub_0801D79C: @ 0x0801D79C - ldr r3, _0801D7B4 @ =gUnk_020176A0 + ldr r3, _0801D7B4 @ =gPaletteBuffer lsls r2, r0, #1 adds r2, r2, r3 strh r1, [r2] - ldr r2, _0801D7B8 @ =gUnk_0200B644 + ldr r2, _0801D7B8 @ =gUsedPalettes lsrs r0, r0, #4 movs r1, #1 lsls r1, r0 @@ -20,8 +20,8 @@ sub_0801D79C: @ 0x0801D79C str r0, [r2] bx lr .align 2, 0 -_0801D7B4: .4byte gUnk_020176A0 -_0801D7B8: .4byte gUnk_0200B644 +_0801D7B4: .4byte gPaletteBuffer +_0801D7B8: .4byte gUsedPalettes thumb_func_start sub_0801D7BC sub_0801D7BC: @ 0x0801D7BC @@ -101,7 +101,7 @@ _0801D842: ldr r0, [r4] ldr r1, _0801D868 @ =0x00FFFFFF ands r0, r1 - ldr r1, _0801D86C @ =gUnk_085A2E80 + ldr r1, _0801D86C @ =gGlobalPalettes adds r2, r0, r1 ldr r1, [r4, #4] ldr r0, [r4, #8] @@ -117,7 +117,7 @@ _0801D842: b _0801D888 .align 2, 0 _0801D868: .4byte 0x00FFFFFF -_0801D86C: .4byte gUnk_085A2E80 +_0801D86C: .4byte gGlobalPalettes _0801D870: .4byte 0x05FFFFFF _0801D874: adds r0, r2, #0 diff --git a/asm/code_0804AA84.s b/asm/code_0804AA84.s index 1e8b6570..e4ee28bd 100644 --- a/asm/code_0804AA84.s +++ b/asm/code_0804AA84.s @@ -37,7 +37,7 @@ _0804ABA4: ldr r0, _0804AC0C @ =gUnk_080D4138 adds r4, r4, r0 ldrb r0, [r4] - bl LoadPalettesByPaletteGroupIndex + bl LoadPaletteGroup ldrb r0, [r4, #1] bl sub_0801D7EC ldr r0, _0804AC10 @ =gUnk_02017700 @@ -46,7 +46,7 @@ _0804ABA4: adds r1, r0, r2 movs r2, #0x20 bl sub_0801D66C - ldr r2, _0804AC14 @ =gUnk_0200B644 + ldr r2, _0804AC14 @ =gUsedPalettes ldr r0, [r2] movs r1, #0x80 lsls r1, r1, #0xe @@ -75,7 +75,7 @@ _0804AC04: .4byte gArea _0804AC08: .4byte gUnk_02032EC0 _0804AC0C: .4byte gUnk_080D4138 _0804AC10: .4byte gUnk_02017700 -_0804AC14: .4byte gUnk_0200B644 +_0804AC14: .4byte gUsedPalettes _0804AC18: .4byte gUnk_080D4110 thumb_func_start sub_0804AC1C diff --git a/asm/code_0804B058.s b/asm/code_0804B058.s index 1996ac57..a3e87e29 100644 --- a/asm/code_0804B058.s +++ b/asm/code_0804B058.s @@ -70,13 +70,13 @@ _0804B190: bl SetTileType _0804B198: adds r4, #8 - ldr r0, _0804B1A8 @ =gUnk_020176A0 + ldr r0, _0804B1A8 @ =gPaletteBuffer cmp r4, r0 blo _0804B170 pop {r4, pc} .align 2, 0 _0804B1A4: .4byte gUnk_02017660 -_0804B1A8: .4byte gUnk_020176A0 +_0804B1A8: .4byte gPaletteBuffer thumb_func_start LoadRoomTileEntities LoadRoomTileEntities: @ 0x0804B1AC diff --git a/asm/code_0804B9F8.s b/asm/code_0804B9F8.s index 65d5dce6..4f274385 100644 --- a/asm/code_0804B9F8.s +++ b/asm/code_0804B9F8.s @@ -9,7 +9,7 @@ sub_0804FF98: @ 0x0804FF98 push {r4, r5, r6, r7, lr} ldr r6, _0804FFD4 @ =gUnk_020354C0 - ldr r1, _0804FFD8 @ =gUnk_0200B644 + ldr r1, _0804FFD8 @ =gUsedPalettes ldr r4, [r1] movs r0, #0 str r0, [r1] @@ -22,7 +22,7 @@ _0804FFAC: ands r0, r4 cmp r0, #0 beq _0804FFC6 - ldr r0, _0804FFE0 @ =gUnk_020176A0 + ldr r0, _0804FFE0 @ =gPaletteBuffer adds r0, r5, r0 movs r2, #0xa0 lsls r2, r2, #0x13 @@ -40,9 +40,9 @@ _0804FFD0: pop {r4, r5, r6, r7, pc} .align 2, 0 _0804FFD4: .4byte gUnk_020354C0 -_0804FFD8: .4byte gUnk_0200B644 +_0804FFD8: .4byte gUsedPalettes _0804FFDC: .4byte gUnk_03005E98 -_0804FFE0: .4byte gUnk_020176A0 +_0804FFE0: .4byte gPaletteBuffer thumb_func_start sub_0804FFE4 sub_0804FFE4: @ 0x0804FFE4 diff --git a/asm/code_08050038.s b/asm/code_08050038.s index 4bcb610b..3acd113f 100644 --- a/asm/code_08050038.s +++ b/asm/code_08050038.s @@ -90,7 +90,7 @@ _080501DE: ldr r2, [r0, #4] ldr r1, _080501FC @ =gUnk_020354C0 movs r4, #0 - ldr r7, _08050200 @ =gUnk_0200B644 + ldr r7, _08050200 @ =gUsedPalettes movs r6, #1 _080501EA: adds r0, r2, #0 @@ -103,7 +103,7 @@ _080501EA: .align 2, 0 _080501F8: .4byte gUnk_03000FD0 _080501FC: .4byte gUnk_020354C0 -_08050200: .4byte gUnk_0200B644 +_08050200: .4byte gUsedPalettes _08050204: strb r0, [r1] strh r0, [r1, #2] @@ -370,7 +370,7 @@ _080503FE: lsls r0, r0, #0x12 strb r2, [r0, #5] strb r1, [r0, #6] - ldr r1, _08050418 @ =gUnk_0200B644 + ldr r1, _08050418 @ =gUsedPalettes movs r0, #1 rsbs r0, r0, #0 str r0, [r1] @@ -378,7 +378,7 @@ _080503FE: .align 2, 0 _08050410: .4byte 0x000004B4 _08050414: .4byte gUnk_02019EEC -_08050418: .4byte gUnk_0200B644 +_08050418: .4byte gUsedPalettes thumb_func_start sub_0805041C sub_0805041C: @ 0x0805041C @@ -527,7 +527,7 @@ _08050546: movs r0, #5 bl sub_080503A8 movs r0, #9 - bl LoadPalettesByPaletteGroupIndex + bl LoadPaletteGroup movs r4, #0 _08050586: movs r0, #0x48 @@ -676,35 +676,35 @@ _080506AA: lsls r0, r0, #1 adds r0, r0, r1 ldrh r4, [r0] - ldr r0, _080506F8 @ =gUnk_085A2E80 + ldr r0, _080506F8 @ =gGlobalPalettes adds r4, r4, r0 ldr r1, _080506FC @ =0x00011AA0 adds r0, r4, r1 movs r1, #0xb movs r2, #1 - bl sub_0801D754 + bl LoadPalettes ldr r1, _08050700 @ =0x00011BA0 adds r0, r4, r1 movs r1, #0xc movs r2, #1 - bl sub_0801D754 + bl LoadPalettes ldr r1, _08050704 @ =0x00011CA0 adds r0, r4, r1 movs r1, #0xd movs r2, #1 - bl sub_0801D754 + bl LoadPalettes ldr r0, _08050708 @ =0x00011DA0 adds r4, r4, r0 adds r0, r4, #0 movs r1, #0xe movs r2, #1 - bl sub_0801D754 + bl LoadPalettes _080506EE: pop {r4, pc} .align 2, 0 _080506F0: .4byte gUnk_02019EE0 _080506F4: .4byte gUnk_080FC8DE -_080506F8: .4byte gUnk_085A2E80 +_080506F8: .4byte gGlobalPalettes _080506FC: .4byte 0x00011AA0 _08050700: .4byte 0x00011BA0 _08050704: .4byte 0x00011CA0 @@ -3787,7 +3787,7 @@ sub_08051F9C: @ 0x08051F9C ldr r1, _08051FE8 @ =gUnk_02000070 movs r0, #1 strb r0, [r1] - ldr r0, _08051FEC @ =gUnk_0200B644 + ldr r0, _08051FEC @ =gUsedPalettes str r6, [r0] ldrh r0, [r5] orrs r4, r0 @@ -3799,7 +3799,7 @@ sub_08051F9C: @ 0x08051F9C _08051FE0: .4byte gScreen _08051FE4: .4byte gRoomControls _08051FE8: .4byte gUnk_02000070 -_08051FEC: .4byte gUnk_0200B644 +_08051FEC: .4byte gUsedPalettes thumb_func_start sub_08051FF0 sub_08051FF0: @ 0x08051FF0 @@ -3839,7 +3839,7 @@ sub_08052010: @ 0x08052010 bl _DmaZero bl sub_080A4D34 movs r0, #0xa - bl LoadPalettesByPaletteGroupIndex + bl LoadPaletteGroup movs r0, #0 movs r1, #0 bl sub_0801D79C diff --git a/asm/code_080526F8.s b/asm/code_080526F8.s index cc33cc77..aace7527 100644 --- a/asm/code_080526F8.s +++ b/asm/code_080526F8.s @@ -158,19 +158,19 @@ sub_080527FC: @ 0x080527FC adds r0, r4, #0 bl sub_0801AE44 ldr r0, _08052830 @ =gUnk_02024090 - ldr r1, _08052834 @ =gUnk_020176A0 + ldr r1, _08052834 @ =gPaletteBuffer movs r2, #0x80 lsls r2, r2, #3 bl sub_0801D66C - ldr r1, _08052838 @ =gUnk_0200B644 + ldr r1, _08052838 @ =gUsedPalettes movs r0, #1 rsbs r0, r0, #0 str r0, [r1] pop {r4, pc} .align 2, 0 _08052830: .4byte gUnk_02024090 -_08052834: .4byte gUnk_020176A0 -_08052838: .4byte gUnk_0200B644 +_08052834: .4byte gPaletteBuffer +_08052838: .4byte gUsedPalettes thumb_func_start sub_0805283C sub_0805283C: @ 0x0805283C @@ -1594,9 +1594,9 @@ sub_08053320: @ 0x08053320 _08053362: bl sub_08053390 movs r0, #0xb - bl LoadPalettesByPaletteGroupIndex + bl LoadPaletteGroup movs r0, #0xc - bl LoadPalettesByPaletteGroupIndex + bl LoadPaletteGroup movs r0, #0 movs r1, #0 bl sub_0801D79C @@ -1659,7 +1659,7 @@ sub_080533CC: @ 0x080533CC strh r2, [r1] ldrh r0, [r0, #2] strh r0, [r1, #2] - ldr r2, _08053408 @ =gUnk_0200B644 + ldr r2, _08053408 @ =gUsedPalettes ldr r0, [r2] movs r1, #8 orrs r0, r1 @@ -1668,7 +1668,7 @@ sub_080533CC: @ 0x080533CC .align 2, 0 _08053400: .4byte gUnk_020178E0 _08053404: .4byte 0xFFFFFE00 -_08053408: .4byte gUnk_0200B644 +_08053408: .4byte gUsedPalettes thumb_func_start sub_0805340C sub_0805340C: @ 0x0805340C @@ -2215,7 +2215,7 @@ sub_08053800: @ 0x08053800 strb r2, [r1, #7] adds r0, r5, #0 adds r0, #0x8a - bl LoadPalettesByPaletteGroupIndex + bl LoadPaletteGroup adds r0, r5, #0 adds r0, #0x3a bl sub_0801D7EC diff --git a/asm/code_0805EC04.s b/asm/code_0805EC04.s index 5398de29..d3380a65 100644 --- a/asm/code_0805EC04.s +++ b/asm/code_0805EC04.s @@ -376,7 +376,7 @@ sub_0805EE88: @ 0x0805EE88 ands r1, r0 lsrs r0, r1, #2 adds r0, #0x2f - bl LoadPalettesByPaletteGroupIndex + bl LoadPaletteGroup _0805EEAC: pop {pc} .align 2, 0 diff --git a/asm/code_0807B9B8.s b/asm/code_0807B9B8.s index 17921068..7e0aeea9 100644 --- a/asm/code_0807B9B8.s +++ b/asm/code_0807B9B8.s @@ -846,7 +846,7 @@ _0807C01C: ldr r0, [r4] ldr r0, [r0, #0x10] bl sub_080197D4 - ldr r1, _0807C0D0 @ =gUnk_020176A0 + ldr r1, _0807C0D0 @ =gPaletteBuffer adds r0, r1, #0 adds r0, #0x60 movs r2, #0xa8 @@ -854,7 +854,7 @@ _0807C01C: adds r1, r1, r2 movs r2, #0x20 bl sub_0801D66C - ldr r2, _0807C0D4 @ =gUnk_0200B644 + ldr r2, _0807C0D4 @ =gUsedPalettes ldr r0, [r2] movs r1, #0x80 lsls r1, r1, #0xe @@ -927,8 +927,8 @@ _0807C0C0: .4byte gUnk_02010654 _0807C0C4: .4byte gRoomControls _0807C0C8: .4byte gArea _0807C0CC: .4byte 0x0000085C -_0807C0D0: .4byte gUnk_020176A0 -_0807C0D4: .4byte gUnk_0200B644 +_0807C0D0: .4byte gPaletteBuffer +_0807C0D4: .4byte gUsedPalettes _0807C0D8: .4byte 0x000007FF thumb_func_start sub_0807C0DC diff --git a/asm/code_080A3480.s b/asm/code_080A3480.s index 37d3af25..a166b8ec 100644 --- a/asm/code_080A3480.s +++ b/asm/code_080A3480.s @@ -268,9 +268,9 @@ _080A365E: movs r0, #0 bl sub_0801DA90 movs r0, #0xb - bl LoadPalettesByPaletteGroupIndex + bl LoadPaletteGroup movs r0, #0xc - bl LoadPalettesByPaletteGroupIndex + bl LoadPaletteGroup movs r0, #0 movs r1, #0 bl sub_0801D79C @@ -348,7 +348,7 @@ sub_080A36F8: @ 0x080A36F8 ldr r0, _080A375C @ =gUnk_08127CEC adds r4, r4, r0 ldrb r0, [r4] - bl LoadPalettesByPaletteGroupIndex + bl LoadPaletteGroup ldrb r0, [r4, #1] bl sub_0801D7EC ldr r0, _080A3760 @ =gUnk_02021F30 @@ -703,7 +703,7 @@ _080A39C8: bl sub_080A3210 bl sub_080A4D34 movs r0, #0xa - bl LoadPalettesByPaletteGroupIndex + bl LoadPaletteGroup movs r0, #0 movs r1, #0 bl sub_0801D79C diff --git a/asm/code_080A3BD0.s b/asm/code_080A3BD0.s index 5bd2a20a..9950817d 100644 --- a/asm/code_080A3BD0.s +++ b/asm/code_080A3BD0.s @@ -1021,7 +1021,7 @@ sub_080A4418: @ 0x080A4418 ands r2, r1 mvns r0, r2 ands r0, r1 - ldr r1, _080A444C @ =gUnk_085A2E80 + ldr r1, _080A444C @ =gGlobalPalettes adds r1, r0, r1 cmp r2, #0 beq _080A4450 @@ -1032,7 +1032,7 @@ sub_080A4418: @ 0x080A4418 .align 2, 0 _080A4444: .4byte 0x06010000 _080A4448: .4byte gUnk_080CA06C -_080A444C: .4byte gUnk_085A2E80 +_080A444C: .4byte gGlobalPalettes _080A4450: ldr r0, _080A4460 @ =0x040000D4 str r1, [r0] @@ -1252,7 +1252,7 @@ sub_080A4608: @ 0x080A4608 bl sub_080A3248 movs r0, #3 bl sub_080A4DA8 - ldr r4, _080A46A0 @ =gUnk_020176A0 + ldr r4, _080A46A0 @ =gPaletteBuffer movs r1, #0xfb lsls r1, r1, #1 adds r0, r4, r1 @@ -1320,7 +1320,7 @@ _080A4694: bl DoFade pop {r4, pc} .align 2, 0 -_080A46A0: .4byte gUnk_020176A0 +_080A46A0: .4byte gPaletteBuffer _080A46A4: .4byte gUnk_02034CB0 _080A46A8: .4byte gUnk_02001A40 _080A46AC: .4byte gScreen @@ -1898,7 +1898,7 @@ _080A4ABE: ldr r0, [r4] movs r1, #0x16 movs r2, #9 - bl sub_0801D754 + bl LoadPalettes ldr r0, [r4, #4] ldr r2, [r4, #8] cmp r2, #0 @@ -2174,7 +2174,7 @@ sub_080A4D34: @ 0x080A4D34 push {lr} bl sub_08053320 movs r0, #0xb5 - bl LoadPalettesByPaletteGroupIndex + bl LoadPaletteGroup ldr r1, _080A4D50 @ =gUnk_02002A40 adds r2, r1, #0 adds r2, #0xaa @@ -2303,7 +2303,7 @@ sub_080A4DB8: @ 0x080A4DB8 ldrb r0, [r4] cmp r0, #0 beq _080A4E4A - bl LoadPalettesByPaletteGroupIndex + bl LoadPaletteGroup _080A4E4A: ldrb r0, [r4, #1] cmp r0, #0 diff --git a/asm/code_080A5574.s b/asm/code_080A5574.s index c49c5872..c01a8b8e 100644 --- a/asm/code_080A5574.s +++ b/asm/code_080A5574.s @@ -869,7 +869,7 @@ sub_080A5BF0: @ 0x080A5BF0 movs r2, #0xe bl sub_0801D66C strh r5, [r4, #0xe] - ldr r2, _080A5C40 @ =gUnk_0200B644 + ldr r2, _080A5C40 @ =gUsedPalettes ldr r0, [r2] movs r1, #0x80 lsls r1, r1, #5 @@ -882,7 +882,7 @@ _080A5C30: .4byte gUnk_08128D30 _080A5C34: .4byte gMenu _080A5C38: .4byte gUnk_03001000 _080A5C3C: .4byte gUnk_02017830 -_080A5C40: .4byte gUnk_0200B644 +_080A5C40: .4byte gUsedPalettes thumb_func_start sub_080A5C44 sub_080A5C44: @ 0x080A5C44 @@ -2016,7 +2016,7 @@ sub_080A6534: @ 0x080A6534 ands r0, r1 movs r4, #0 strh r0, [r2] - ldr r0, _080A6598 @ =gUnk_020176A0 + ldr r0, _080A6598 @ =gPaletteBuffer adds r0, #0xa2 ldrh r1, [r0] movs r0, #0 @@ -2048,7 +2048,7 @@ sub_080A6534: @ 0x080A6534 .align 2, 0 _080A6590: .4byte gScreen _080A6594: .4byte 0x0000F7FF -_080A6598: .4byte gUnk_020176A0 +_080A6598: .4byte gPaletteBuffer _080A659C: .4byte gUnk_08128F4C _080A65A0: .4byte gUnk_02032EC0 _080A65A4: .4byte gUnk_02002A40 @@ -2328,7 +2328,7 @@ sub_080A67C4: @ 0x080A67C4 push {r4, r5, r6, r7, lr} adds r4, r0, #0 adds r0, #0xba - bl LoadPalettesByPaletteGroupIndex + bl LoadPaletteGroup adds r5, r4, #0 adds r5, #0x5f cmp r4, #0xb @@ -3680,7 +3680,7 @@ sub_080A7250: @ 0x080A7250 ldr r1, _080A72F0 @ =gUnk_03001020 movs r2, #0x7c bl sub_0801D66C - ldr r0, _080A72F4 @ =gUnk_020176A0 + ldr r0, _080A72F4 @ =gPaletteBuffer ldr r1, _080A72F8 @ =gUnk_02024090 movs r2, #0x80 lsls r2, r2, #3 @@ -3743,7 +3743,7 @@ _080A72E4: _080A72E8: .4byte gUnk_03000FD0 _080A72EC: .4byte gScreen _080A72F0: .4byte gUnk_03001020 -_080A72F4: .4byte gUnk_020176A0 +_080A72F4: .4byte gPaletteBuffer _080A72F8: .4byte gUnk_02024090 _080A72FC: .4byte gUnk_02024490 _080A7300: .4byte gUnk_02032F14 diff --git a/asm/code_080AD90C.s b/asm/code_080AD90C.s index 2a9b905b..dda43a26 100644 --- a/asm/code_080AD90C.s +++ b/asm/code_080AD90C.s @@ -660,7 +660,7 @@ sub_080ADDD8: @ 0x080ADDD8 adds r3, r1, r0 ldr r0, _080ADE00 @ =0x00FFFFFC ands r0, r2 - ldr r1, _080ADE04 @ =gUnk_085A2E80 + ldr r1, _080ADE04 @ =gGlobalPalettes adds r0, r0, r1 str r0, [r3, #8] movs r0, #1 @@ -672,7 +672,7 @@ sub_080ADDD8: @ 0x080ADDD8 .align 2, 0 _080ADDFC: .4byte gUnk_02024494 _080ADE00: .4byte 0x00FFFFFC -_080ADE04: .4byte gUnk_085A2E80 +_080ADE04: .4byte gGlobalPalettes _080ADE08: .4byte 0x0000FFFF _080ADE0C: movs r0, #0xfe diff --git a/asm/manager10.s b/asm/manager10.s index 40bf1a3e..d420e319 100644 --- a/asm/manager10.s +++ b/asm/manager10.s @@ -441,7 +441,7 @@ _080598AA: adds r1, r0, r2 movs r2, #0x20 bl sub_0801D66C - ldr r2, _080598F0 @ =gUnk_0200B644 + ldr r2, _080598F0 @ =gUsedPalettes ldr r0, [r2] ldr r1, _080598F4 @ =0x00207FFC orrs r0, r1 @@ -453,7 +453,7 @@ _080598AA: .align 2, 0 _080598E8: .4byte gUnk_020176E0 _080598EC: .4byte gUnk_02017700 -_080598F0: .4byte gUnk_0200B644 +_080598F0: .4byte gUsedPalettes _080598F4: .4byte 0x00207FFC thumb_func_start sub_080598F8 @@ -547,7 +547,7 @@ sub_08059994: @ 0x08059994 cmp r0, #0 beq _080599AE movs r0, #0x5b - bl LoadPalettesByPaletteGroupIndex + bl LoadPaletteGroup ldr r0, _080599B0 @ =gArea ldr r1, _080599B4 @ =0x00000864 adds r0, r0, r1 diff --git a/asm/manager12.s b/asm/manager12.s index bdc90ef9..5217fa7f 100644 --- a/asm/manager12.s +++ b/asm/manager12.s @@ -378,7 +378,7 @@ _08059CE8: _08059CEC: adds r6, r1, r0 ldr r0, [r6] - ldr r4, _08059D14 @ =gUnk_085A2E80 + ldr r4, _08059D14 @ =gGlobalPalettes adds r0, r0, r4 ldr r1, [r6, #4] movs r5, #0x80 @@ -393,7 +393,7 @@ _08059CEC: pop {r4, r5, r6, pc} .align 2, 0 _08059D10: .4byte gUnk_08108468 -_08059D14: .4byte gUnk_085A2E80 +_08059D14: .4byte gGlobalPalettes thumb_func_start sub_08059D18 sub_08059D18: @ 0x08059D18 diff --git a/asm/manager15.s b/asm/manager15.s index 413b9554..9e95731b 100644 --- a/asm/manager15.s +++ b/asm/manager15.s @@ -1089,7 +1089,7 @@ sub_0805AA58: @ 0x0805AA58 adds r0, r0, r1 movs r1, #5 movs r2, #1 - bl sub_0801D754 + bl LoadPalettes _0805AA8C: ldrb r0, [r4, #0xf] subs r0, #1 diff --git a/asm/manager1A.s b/asm/manager1A.s index 2df04f21..cfa4299e 100644 --- a/asm/manager1A.s +++ b/asm/manager1A.s @@ -418,7 +418,7 @@ sub_0805B328: @ 0x0805B328 adds r0, r0, r1 ldr r0, [r0, #0xc] ldr r0, [r0] - ldr r1, _0805B378 @ =gUnk_085A2E80 + ldr r1, _0805B378 @ =gGlobalPalettes adds r0, r0, r1 ldr r1, _0805B37C @ =0x0600F000 movs r4, #0x80 @@ -445,7 +445,7 @@ _0805B372: pop {r4, pc} .align 2, 0 _0805B374: .4byte gUnk_08108764 -_0805B378: .4byte gUnk_085A2E80 +_0805B378: .4byte gGlobalPalettes _0805B37C: .4byte 0x0600F000 _0805B380: .4byte gScreen _0805B384: .4byte 0x00001E07 diff --git a/asm/manager7.s b/asm/manager7.s index 72d934b0..bfc91d7b 100644 --- a/asm/manager7.s +++ b/asm/manager7.s @@ -76,7 +76,7 @@ _08057DD6: movs r0, #1 strb r0, [r1] ldr r0, [r2] - ldr r1, _08057DFC @ =gUnk_085A2E80 + ldr r1, _08057DFC @ =gGlobalPalettes adds r0, r0, r1 ldr r1, [r2, #4] movs r2, #0x80 @@ -85,17 +85,17 @@ _08057DD6: ldr r0, _08057E00 @ =gUnk_081081E4 adds r0, r5, r0 ldrb r0, [r0] - bl LoadPalettesByPaletteGroupIndex + bl LoadPaletteGroup b _08057E24 .align 2, 0 _08057DF8: .4byte gUnk_02034490 -_08057DFC: .4byte gUnk_085A2E80 +_08057DFC: .4byte gGlobalPalettes _08057E00: .4byte gUnk_081081E4 _08057E04: lsls r1, r1, #3 adds r1, r1, r2 ldr r0, [r1] - ldr r2, _08057E1C @ =gUnk_085A2E80 + ldr r2, _08057E1C @ =gGlobalPalettes adds r0, r0, r2 ldr r1, [r1, #4] movs r2, #0x80 @@ -103,7 +103,7 @@ _08057E04: bl LoadAssetAsync b _08057E24 .align 2, 0 -_08057E1C: .4byte gUnk_085A2E80 +_08057E1C: .4byte gGlobalPalettes _08057E20: ldr r0, _08057E2C @ =gUnk_02034490 strb r3, [r0] @@ -169,13 +169,13 @@ sub_08057E7C: @ 0x08057E7C ldr r0, _08057EB8 @ =gUnk_081081E4 adds r0, r4, r0 ldrb r0, [r0] - bl LoadPalettesByPaletteGroupIndex + bl LoadPaletteGroup lsls r1, r4, #6 ldr r0, _08057EBC @ =gUnk_081080A4 adds r1, r1, r0 movs r3, #0 ldr r2, _08057EC0 @ =0x040000D4 - ldr r6, _08057EC4 @ =gUnk_085A2E80 + ldr r6, _08057EC4 @ =gGlobalPalettes ldr r5, _08057EC8 @ =0x84000400 _08057E9C: ldr r0, [r1] @@ -197,6 +197,6 @@ _08057EB6: _08057EB8: .4byte gUnk_081081E4 _08057EBC: .4byte gUnk_081080A4 _08057EC0: .4byte 0x040000D4 -_08057EC4: .4byte gUnk_085A2E80 +_08057EC4: .4byte gGlobalPalettes _08057EC8: .4byte 0x84000400 _08057ECC: .4byte gRoomVars diff --git a/asm/manager9.s b/asm/manager9.s index 2652ea19..9d36611c 100644 --- a/asm/manager9.s +++ b/asm/manager9.s @@ -185,7 +185,7 @@ sub_08058324: @ 0x08058324 str r0, [r1] adds r0, r4, #0 adds r0, #0x86 - bl LoadPalettesByPaletteGroupIndex + bl LoadPaletteGroup adds r0, r4, #0 adds r0, #0x36 bl sub_0801D7EC diff --git a/asm/managerC.s b/asm/managerC.s index ec3a3b40..26f022e1 100644 --- a/asm/managerC.s +++ b/asm/managerC.s @@ -647,14 +647,14 @@ _08058D30: .4byte gRoomControls sub_08058D34: @ 0x08058D34 push {r4, lr} movs r0, #0x28 - bl LoadPalettesByPaletteGroupIndex + bl LoadPaletteGroup ldr r0, _08058DAC @ =gUnk_02017700 movs r2, #0x90 lsls r2, r2, #2 adds r1, r0, r2 movs r2, #0x20 bl sub_0801D66C - ldr r2, _08058DB0 @ =gUnk_0200B644 + ldr r2, _08058DB0 @ =gUsedPalettes ldr r0, [r2] movs r1, #0x80 lsls r1, r1, #0xe @@ -702,7 +702,7 @@ _08058DA8: pop {r4, pc} .align 2, 0 _08058DAC: .4byte gUnk_02017700 -_08058DB0: .4byte gUnk_0200B644 +_08058DB0: .4byte gUsedPalettes _08058DB4: .4byte gScreen _08058DB8: .4byte 0x0000BC82 _08058DBC: .4byte 0x00005E86 diff --git a/asm/sub_080AD76C.s b/asm/sub_080AD76C.s deleted file mode 100644 index 2c1930f1..00000000 --- a/asm/sub_080AD76C.s +++ /dev/null @@ -1,108 +0,0 @@ - .include "asm/macros.inc" - - .include "constants/constants.inc" - - .syntax unified - - .text - - thumb_func_start sub_080AD76C -sub_080AD76C: @ 0x080AD76C - push {lr} - ldr r1, _080AD780 @ =gMenu - ldrb r0, [r1, #6] - cmp r0, #1 - beq _080AD7B4 - cmp r0, #1 - bgt _080AD784 - cmp r0, #0 - beq _080AD78A - b _080AD80E - .align 2, 0 -_080AD780: .4byte gMenu -_080AD784: - cmp r0, #2 - beq _080AD7DC - b _080AD80E -_080AD78A: - ldr r0, _080AD7AC @ =gUnk_03000FD0 - ldrb r0, [r0] - cmp r0, #0 - bne _080AD82A - movs r0, #1 - strb r0, [r1, #6] - ldr r2, _080AD7B0 @ =gScreen - ldrh r1, [r2] - movs r3, #0x80 - lsls r3, r3, #3 - adds r0, r3, #0 - orrs r0, r1 - strh r0, [r2] - movs r0, #0xf6 - bl PlaySFX - b _080AD82A - .align 2, 0 -_080AD7AC: .4byte gUnk_03000FD0 -_080AD7B0: .4byte gScreen -_080AD7B4: - ldr r0, [r1, #0x2c] - adds r0, #0x10 - str r0, [r1, #0x2c] - movs r2, #0x80 - lsls r2, r2, #1 - cmp r0, r2 - ble _080AD7D6 - str r2, [r1, #0x2c] - movs r0, #0x28 - strh r0, [r1, #8] - ldrb r0, [r1, #6] - adds r0, #1 - strb r0, [r1, #6] - movs r0, #6 - movs r1, #0x10 - bl DoFade -_080AD7D6: - bl sub_080AD670 - b _080AD82A -_080AD7DC: - ldrh r0, [r1, #8] - subs r0, #1 - strh r0, [r1, #8] - lsls r0, r0, #0x10 - cmp r0, #0 - bne _080AD82A - movs r0, #0x96 - lsls r0, r0, #1 - strh r0, [r1, #8] - ldrb r0, [r1, #6] - adds r0, #1 - strb r0, [r1, #6] - movs r0, #0xbd - movs r1, #0 - movs r2, #0 - bl CreateObject - movs r0, #6 - movs r1, #0x10 - bl DoFade - movs r0, #0xf8 - bl PlaySFX - b _080AD82A -_080AD80E: - ldr r0, _080AD82C @ =gUnk_03000FD0 - ldrb r0, [r0] - cmp r0, #0 - bne _080AD82A - bl sub_080AD84C - cmp r0, #0 - beq _080AD82A - ldr r0, _080AD830 @ =gMenu - ldrb r1, [r0, #5] - adds r1, #1 - strb r1, [r0, #5] - movs r1, #0x3c - strh r1, [r0, #8] -_080AD82A: - pop {pc} - .align 2, 0 -_080AD82C: .4byte gUnk_03000FD0 -_080AD830: .4byte gMenu diff --git a/asm/sub_080AD84C.s b/asm/sub_080AD84C.s deleted file mode 100644 index f8114808..00000000 --- a/asm/sub_080AD84C.s +++ /dev/null @@ -1,51 +0,0 @@ - .include "asm/macros.inc" - .include "constants/constants.inc" - - .syntax unified - - .text - - thumb_func_start sub_080AD84C -sub_080AD84C: @ 0x080AD84C - push {lr} - ldr r0, _080AD864 @ =gUnk_03000FD0 - ldrb r0, [r0] - cmp r0, #0 - bne _080AD894 - ldr r0, _080AD868 @ =gUnk_02000010 - ldrb r0, [r0, #5] - cmp r0, #0 - bne _080AD86C - movs r2, #0 - b _080AD874 - .align 2, 0 -_080AD864: .4byte gUnk_03000FD0 -_080AD868: .4byte gUnk_02000010 -_080AD86C: - ldr r0, _080AD888 @ =gUnk_03000FF0 - ldrh r0, [r0, #2] - movs r2, #9 - ands r2, r0 -_080AD874: - ldr r1, _080AD88C @ =gMenu - ldrh r0, [r1, #8] - subs r0, #1 - strh r0, [r1, #8] - lsls r0, r0, #0x10 - cmp r0, #0 - bne _080AD890 - movs r0, #1 - b _080AD89A - .align 2, 0 -_080AD888: .4byte gUnk_03000FF0 -_080AD88C: .4byte gMenu -_080AD890: - cmp r2, #0 - bne _080AD898 -_080AD894: - movs r0, #0 - b _080AD89A -_080AD898: - movs r0, #2 -_080AD89A: - pop {pc} \ No newline at end of file diff --git a/asm/sub_080AD89C.s b/asm/sub_080AD89C.s deleted file mode 100644 index 2a8700ff..00000000 --- a/asm/sub_080AD89C.s +++ /dev/null @@ -1,49 +0,0 @@ - .include "asm/macros.inc" - .include "constants/constants.inc" - - .syntax unified - - .text - - thumb_func_start sub_080AD89C -sub_080AD89C: @ 0x080AD89C - push {r4, lr} - ldr r4, _080AD8E4 @ =gMenu - ldrb r1, [r4, #0x12] - movs r0, #7 - ands r0, r1 - cmp r0, #0 - bne _080AD8BC - ldrb r0, [r4, #0x10] - adds r0, #1 - movs r1, #3 - ands r0, r1 - strb r0, [r4, #0x10] - ldrb r0, [r4, #0x10] - adds r0, #5 - bl LoadPalettesByPaletteGroupIndex -_080AD8BC: - ldrb r1, [r4, #0x12] - movs r0, #0x1f - ands r0, r1 - cmp r0, #0 - bne _080AD8E0 - ldrb r0, [r4, #0x11] - adds r0, #1 - movs r1, #7 - ands r0, r1 - strb r0, [r4, #0x11] - ldr r1, _080AD8E8 @ =gScreen - ldr r2, _080AD8EC @ =gUnk_081320FC - ldrb r0, [r4, #0x11] - lsls r0, r0, #1 - adds r0, r0, r2 - ldrh r0, [r0] - adds r1, #0x68 - strh r0, [r1] -_080AD8E0: - pop {r4, pc} - .align 2, 0 -_080AD8E4: .4byte gMenu -_080AD8E8: .4byte gScreen -_080AD8EC: .4byte gUnk_081320FC diff --git a/data/data_080D5360.s b/data/data_080D5360.s index e86ab49d..002760ca 100644 --- a/data/data_080D5360.s +++ b/data/data_080D5360.s @@ -12275,652 +12275,217 @@ gUnk_080FF420:: @ 080FF420 .incbin "baserom.gba", 0x0FF420, 0x0000008 gUnk_080FF428:: @ 080FF428 - .incbin "baserom.gba", 0x0FF428, 0x0000008 - -gUnk_080FF430:: @ 080FF430 - .incbin "baserom.gba", 0x0FF430, 0x0000008 - -gUnk_080FF438:: @ 080FF438 - .incbin "baserom.gba", 0x0FF438, 0x000000C - -gUnk_080FF444:: @ 080FF444 - .incbin "baserom.gba", 0x0FF444, 0x000000C - -gUnk_080FF450:: @ 080FF450 - .incbin "baserom.gba", 0x0FF450, 0x0000004 - -gUnk_080FF454:: @ 080FF454 - .incbin "baserom.gba", 0x0FF454, 0x0000004 - -gUnk_080FF458:: @ 080FF458 - .incbin "baserom.gba", 0x0FF458, 0x0000004 - -gUnk_080FF45C:: @ 080FF45C - .incbin "baserom.gba", 0x0FF45C, 0x0000004 - -gUnk_080FF460:: @ 080FF460 - .incbin "baserom.gba", 0x0FF460, 0x0000014 - -gUnk_080FF474:: @ 080FF474 - .incbin "baserom.gba", 0x0FF474, 0x0000010 - -gUnk_080FF484:: @ 080FF484 - .incbin "baserom.gba", 0x0FF484, 0x0000004 - -gUnk_080FF488:: @ 080FF488 - .incbin "baserom.gba", 0x0FF488, 0x0000008 - -gUnk_080FF490:: @ 080FF490 - .incbin "baserom.gba", 0x0FF490, 0x0000004 - -gUnk_080FF494:: @ 080FF494 - .incbin "baserom.gba", 0x0FF494, 0x0000004 - -gUnk_080FF498:: @ 080FF498 - .incbin "baserom.gba", 0x0FF498, 0x0000004 - -gUnk_080FF49C:: @ 080FF49C - .incbin "baserom.gba", 0x0FF49C, 0x0000004 - -gUnk_080FF4A0:: @ 080FF4A0 - .incbin "baserom.gba", 0x0FF4A0, 0x0000004 - -gUnk_080FF4A4:: @ 080FF4A4 - .incbin "baserom.gba", 0x0FF4A4, 0x0000004 - -gUnk_080FF4A8:: @ 080FF4A8 - .incbin "baserom.gba", 0x0FF4A8, 0x0000004 - -gUnk_080FF4AC:: @ 080FF4AC - .incbin "baserom.gba", 0x0FF4AC, 0x0000004 - -gUnk_080FF4B0:: @ 080FF4B0 - .incbin "baserom.gba", 0x0FF4B0, 0x0000004 - -gUnk_080FF4B4:: @ 080FF4B4 - .incbin "baserom.gba", 0x0FF4B4, 0x0000004 - -gUnk_080FF4B8:: @ 080FF4B8 - .incbin "baserom.gba", 0x0FF4B8, 0x0000004 - -gUnk_080FF4BC:: @ 080FF4BC - .incbin "baserom.gba", 0x0FF4BC, 0x0000004 - -gUnk_080FF4C0:: @ 080FF4C0 - .incbin "baserom.gba", 0x0FF4C0, 0x0000004 - -gUnk_080FF4C4:: @ 080FF4C4 - .incbin "baserom.gba", 0x0FF4C4, 0x0000004 - -gUnk_080FF4C8:: @ 080FF4C8 - .incbin "baserom.gba", 0x0FF4C8, 0x0000004 - -gUnk_080FF4CC:: @ 080FF4CC - .incbin "baserom.gba", 0x0FF4CC, 0x0000004 - -gUnk_080FF4D0:: @ 080FF4D0 - .incbin "baserom.gba", 0x0FF4D0, 0x0000004 - -gUnk_080FF4D4:: @ 080FF4D4 - .incbin "baserom.gba", 0x0FF4D4, 0x0000004 - -gUnk_080FF4D8:: @ 080FF4D8 - .incbin "baserom.gba", 0x0FF4D8, 0x0000004 - -gUnk_080FF4DC:: @ 080FF4DC - .incbin "baserom.gba", 0x0FF4DC, 0x0000004 - -gUnk_080FF4E0:: @ 080FF4E0 - .incbin "baserom.gba", 0x0FF4E0, 0x0000004 - -gUnk_080FF4E4:: @ 080FF4E4 - .incbin "baserom.gba", 0x0FF4E4, 0x0000004 - -gUnk_080FF4E8:: @ 080FF4E8 - .incbin "baserom.gba", 0x0FF4E8, 0x0000004 - -gUnk_080FF4EC:: @ 080FF4EC - .incbin "baserom.gba", 0x0FF4EC, 0x0000004 - -gUnk_080FF4F0:: @ 080FF4F0 - .incbin "baserom.gba", 0x0FF4F0, 0x0000004 - -gUnk_080FF4F4:: @ 080FF4F4 - .incbin "baserom.gba", 0x0FF4F4, 0x0000004 - -gUnk_080FF4F8:: @ 080FF4F8 - .incbin "baserom.gba", 0x0FF4F8, 0x0000004 - -gUnk_080FF4FC:: @ 080FF4FC - .incbin "baserom.gba", 0x0FF4FC, 0x0000004 - -gUnk_080FF500:: @ 080FF500 - .incbin "baserom.gba", 0x0FF500, 0x0000004 - -gUnk_080FF504:: @ 080FF504 - .incbin "baserom.gba", 0x0FF504, 0x0000004 - -gUnk_080FF508:: @ 080FF508 - .incbin "baserom.gba", 0x0FF508, 0x0000004 - -gUnk_080FF50C:: @ 080FF50C - .incbin "baserom.gba", 0x0FF50C, 0x0000004 - -gUnk_080FF510:: @ 080FF510 - .incbin "baserom.gba", 0x0FF510, 0x0000004 - -gUnk_080FF514:: @ 080FF514 - .incbin "baserom.gba", 0x0FF514, 0x0000004 - -gUnk_080FF518:: @ 080FF518 - .incbin "baserom.gba", 0x0FF518, 0x0000004 - -gUnk_080FF51C:: @ 080FF51C - .incbin "baserom.gba", 0x0FF51C, 0x0000004 - -gUnk_080FF520:: @ 080FF520 - .incbin "baserom.gba", 0x0FF520, 0x0000004 - -gUnk_080FF524:: @ 080FF524 - .incbin "baserom.gba", 0x0FF524, 0x0000004 - -gUnk_080FF528:: @ 080FF528 - .incbin "baserom.gba", 0x0FF528, 0x0000004 - -gUnk_080FF52C:: @ 080FF52C - .incbin "baserom.gba", 0x0FF52C, 0x0000004 - -gUnk_080FF530:: @ 080FF530 - .incbin "baserom.gba", 0x0FF530, 0x0000004 - -gUnk_080FF534:: @ 080FF534 - .incbin "baserom.gba", 0x0FF534, 0x0000004 - -gUnk_080FF538:: @ 080FF538 - .incbin "baserom.gba", 0x0FF538, 0x0000004 - -gUnk_080FF53C:: @ 080FF53C - .incbin "baserom.gba", 0x0FF53C, 0x0000004 - -gUnk_080FF540:: @ 080FF540 - .incbin "baserom.gba", 0x0FF540, 0x0000004 - -gUnk_080FF544:: @ 080FF544 - .incbin "baserom.gba", 0x0FF544, 0x0000004 - -gUnk_080FF548:: @ 080FF548 - .incbin "baserom.gba", 0x0FF548, 0x0000004 - -gUnk_080FF54C:: @ 080FF54C - .incbin "baserom.gba", 0x0FF54C, 0x0000004 - -gUnk_080FF550:: @ 080FF550 - .incbin "baserom.gba", 0x0FF550, 0x0000004 - -gUnk_080FF554:: @ 080FF554 - .incbin "baserom.gba", 0x0FF554, 0x0000004 - -gUnk_080FF558:: @ 080FF558 - .incbin "baserom.gba", 0x0FF558, 0x0000004 - -gUnk_080FF55C:: @ 080FF55C - .incbin "baserom.gba", 0x0FF55C, 0x0000004 - -gUnk_080FF560:: @ 080FF560 - .incbin "baserom.gba", 0x0FF560, 0x0000004 - -gUnk_080FF564:: @ 080FF564 - .incbin "baserom.gba", 0x0FF564, 0x0000004 - -gUnk_080FF568:: @ 080FF568 - .incbin "baserom.gba", 0x0FF568, 0x0000004 - -gUnk_080FF56C:: @ 080FF56C - .incbin "baserom.gba", 0x0FF56C, 0x0000004 - -gUnk_080FF570:: @ 080FF570 - .incbin "baserom.gba", 0x0FF570, 0x0000004 - -gUnk_080FF574:: @ 080FF574 - .incbin "baserom.gba", 0x0FF574, 0x0000004 - -gUnk_080FF578:: @ 080FF578 - .incbin "baserom.gba", 0x0FF578, 0x0000004 - -gUnk_080FF57C:: @ 080FF57C - .incbin "baserom.gba", 0x0FF57C, 0x0000004 - -gUnk_080FF580:: @ 080FF580 - .incbin "baserom.gba", 0x0FF580, 0x0000004 - -gUnk_080FF584:: @ 080FF584 - .incbin "baserom.gba", 0x0FF584, 0x0000004 - -gUnk_080FF588:: @ 080FF588 - .incbin "baserom.gba", 0x0FF588, 0x0000004 - -gUnk_080FF58C:: @ 080FF58C - .incbin "baserom.gba", 0x0FF58C, 0x0000004 - -gUnk_080FF590:: @ 080FF590 - .incbin "baserom.gba", 0x0FF590, 0x0000004 - -gUnk_080FF594:: @ 080FF594 - .incbin "baserom.gba", 0x0FF594, 0x0000004 - -gUnk_080FF598:: @ 080FF598 - .incbin "baserom.gba", 0x0FF598, 0x0000004 - -gUnk_080FF59C:: @ 080FF59C - .incbin "baserom.gba", 0x0FF59C, 0x0000004 - -gUnk_080FF5A0:: @ 080FF5A0 - .incbin "baserom.gba", 0x0FF5A0, 0x0000004 - -gUnk_080FF5A4:: @ 080FF5A4 - .incbin "baserom.gba", 0x0FF5A4, 0x0000004 - -gUnk_080FF5A8:: @ 080FF5A8 - .incbin "baserom.gba", 0x0FF5A8, 0x0000004 - -gUnk_080FF5AC:: @ 080FF5AC - .incbin "baserom.gba", 0x0FF5AC, 0x0000004 - -gUnk_080FF5B0:: @ 080FF5B0 - .incbin "baserom.gba", 0x0FF5B0, 0x0000004 - -gUnk_080FF5B4:: @ 080FF5B4 - .incbin "baserom.gba", 0x0FF5B4, 0x0000004 - -gUnk_080FF5B8:: @ 080FF5B8 - .incbin "baserom.gba", 0x0FF5B8, 0x0000004 - -gUnk_080FF5BC:: @ 080FF5BC - .incbin "baserom.gba", 0x0FF5BC, 0x0000004 - -gUnk_080FF5C0:: @ 080FF5C0 - .incbin "baserom.gba", 0x0FF5C0, 0x0000004 - -gUnk_080FF5C4:: @ 080FF5C4 - .incbin "baserom.gba", 0x0FF5C4, 0x0000004 - -gUnk_080FF5C8:: @ 080FF5C8 - .incbin "baserom.gba", 0x0FF5C8, 0x0000001 - -gUnk_080FF5C9:: @ 080FF5C9 - .incbin "baserom.gba", 0x0FF5C9, 0x0000003 - -gUnk_080FF5CC:: @ 080FF5CC - .incbin "baserom.gba", 0x0FF5CC, 0x0000004 - -gUnk_080FF5D0:: @ 080FF5D0 - .incbin "baserom.gba", 0x0FF5D0, 0x0000004 - -gUnk_080FF5D4:: @ 080FF5D4 - .incbin "baserom.gba", 0x0FF5D4, 0x0000004 - -gUnk_080FF5D8:: @ 080FF5D8 - .incbin "baserom.gba", 0x0FF5D8, 0x0000004 - -gUnk_080FF5DC:: @ 080FF5DC - .incbin "baserom.gba", 0x0FF5DC, 0x0000004 - -gUnk_080FF5E0:: @ 080FF5E0 - .incbin "baserom.gba", 0x0FF5E0, 0x0000004 - -gUnk_080FF5E4:: @ 080FF5E4 - .incbin "baserom.gba", 0x0FF5E4, 0x0000004 - -gUnk_080FF5E8:: @ 080FF5E8 - .incbin "baserom.gba", 0x0FF5E8, 0x0000004 - -gUnk_080FF5EC:: @ 080FF5EC - .incbin "baserom.gba", 0x0FF5EC, 0x0000004 - -gUnk_080FF5F0:: @ 080FF5F0 - .incbin "baserom.gba", 0x0FF5F0, 0x0000004 - -gUnk_080FF5F4:: @ 080FF5F4 - .incbin "baserom.gba", 0x0FF5F4, 0x0000004 - -gUnk_080FF5F8:: @ 080FF5F8 - .incbin "baserom.gba", 0x0FF5F8, 0x0000004 - -gUnk_080FF5FC:: @ 080FF5FC - .incbin "baserom.gba", 0x0FF5FC, 0x0000004 - -gUnk_080FF600:: @ 080FF600 - .incbin "baserom.gba", 0x0FF600, 0x0000004 - -gUnk_080FF604:: @ 080FF604 - .incbin "baserom.gba", 0x0FF604, 0x0000004 - -gUnk_080FF608:: @ 080FF608 - .incbin "baserom.gba", 0x0FF608, 0x0000004 - -gUnk_080FF60C:: @ 080FF60C - .incbin "baserom.gba", 0x0FF60C, 0x0000004 - -gUnk_080FF610:: @ 080FF610 - .incbin "baserom.gba", 0x0FF610, 0x0000004 - -gUnk_080FF614:: @ 080FF614 - .incbin "baserom.gba", 0x0FF614, 0x0000004 - -gUnk_080FF618:: @ 080FF618 - .incbin "baserom.gba", 0x0FF618, 0x0000004 - -gUnk_080FF61C:: @ 080FF61C - .incbin "baserom.gba", 0x0FF61C, 0x0000004 - -gUnk_080FF620:: @ 080FF620 - .incbin "baserom.gba", 0x0FF620, 0x0000004 - -gUnk_080FF624:: @ 080FF624 - .incbin "baserom.gba", 0x0FF624, 0x0000004 - -gUnk_080FF628:: @ 080FF628 - .incbin "baserom.gba", 0x0FF628, 0x0000004 - -gUnk_080FF62C:: @ 080FF62C - .incbin "baserom.gba", 0x0FF62C, 0x0000004 - -gUnk_080FF630:: @ 080FF630 - .incbin "baserom.gba", 0x0FF630, 0x0000004 - -gUnk_080FF634:: @ 080FF634 - .incbin "baserom.gba", 0x0FF634, 0x0000004 - -gUnk_080FF638:: @ 080FF638 - .incbin "baserom.gba", 0x0FF638, 0x0000004 - -gUnk_080FF63C:: @ 080FF63C - .incbin "baserom.gba", 0x0FF63C, 0x0000004 - -gUnk_080FF640:: @ 080FF640 - .incbin "baserom.gba", 0x0FF640, 0x0000004 - -gUnk_080FF644:: @ 080FF644 - .incbin "baserom.gba", 0x0FF644, 0x0000004 - -gUnk_080FF648:: @ 080FF648 - .incbin "baserom.gba", 0x0FF648, 0x0000004 - -gUnk_080FF64C:: @ 080FF64C - .incbin "baserom.gba", 0x0FF64C, 0x0000004 - -gUnk_080FF650:: @ 080FF650 - .incbin "baserom.gba", 0x0FF650, 0x0000004 - -gUnk_080FF654:: @ 080FF654 - .incbin "baserom.gba", 0x0FF654, 0x0000004 - -gUnk_080FF658:: @ 080FF658 - .incbin "baserom.gba", 0x0FF658, 0x0000004 - -gUnk_080FF65C:: @ 080FF65C - .incbin "baserom.gba", 0x0FF65C, 0x0000004 - -gUnk_080FF660:: @ 080FF660 - .incbin "baserom.gba", 0x0FF660, 0x0000004 - -gUnk_080FF664:: @ 080FF664 - .incbin "baserom.gba", 0x0FF664, 0x0000004 - -gUnk_080FF668:: @ 080FF668 - .incbin "baserom.gba", 0x0FF668, 0x0000004 - -gUnk_080FF66C:: @ 080FF66C - .incbin "baserom.gba", 0x0FF66C, 0x0000004 - -gUnk_080FF670:: @ 080FF670 - .incbin "baserom.gba", 0x0FF670, 0x0000004 - -gUnk_080FF674:: @ 080FF674 - .incbin "baserom.gba", 0x0FF674, 0x0000004 - -gUnk_080FF678:: @ 080FF678 - .incbin "baserom.gba", 0x0FF678, 0x0000004 - -gUnk_080FF67C:: @ 080FF67C - .incbin "baserom.gba", 0x0FF67C, 0x0000004 - -gUnk_080FF680:: @ 080FF680 - .incbin "baserom.gba", 0x0FF680, 0x0000004 - -gUnk_080FF684:: @ 080FF684 - .incbin "baserom.gba", 0x0FF684, 0x0000004 - -gUnk_080FF688:: @ 080FF688 - .incbin "baserom.gba", 0x0FF688, 0x0000004 - -gUnk_080FF68C:: @ 080FF68C - .incbin "baserom.gba", 0x0FF68C, 0x0000004 - -gUnk_080FF690:: @ 080FF690 - .incbin "baserom.gba", 0x0FF690, 0x0000004 - -gUnk_080FF694:: @ 080FF694 - .incbin "baserom.gba", 0x0FF694, 0x0000004 - -gUnk_080FF698:: @ 080FF698 - .incbin "baserom.gba", 0x0FF698, 0x0000004 - -gUnk_080FF69C:: @ 080FF69C - .incbin "baserom.gba", 0x0FF69C, 0x0000004 - -gUnk_080FF6A0:: @ 080FF6A0 - .incbin "baserom.gba", 0x0FF6A0, 0x0000004 - -gUnk_080FF6A4:: @ 080FF6A4 - .incbin "baserom.gba", 0x0FF6A4, 0x0000004 - -gUnk_080FF6A8:: @ 080FF6A8 - .incbin "baserom.gba", 0x0FF6A8, 0x0000004 - -gUnk_080FF6AC:: @ 080FF6AC - .incbin "baserom.gba", 0x0FF6AC, 0x0000004 - -gUnk_080FF6B0:: @ 080FF6B0 - .incbin "baserom.gba", 0x0FF6B0, 0x0000004 - -gUnk_080FF6B4:: @ 080FF6B4 - .incbin "baserom.gba", 0x0FF6B4, 0x0000004 - -gUnk_080FF6B8:: @ 080FF6B8 - .incbin "baserom.gba", 0x0FF6B8, 0x0000004 - -gUnk_080FF6BC:: @ 080FF6BC - .incbin "baserom.gba", 0x0FF6BC, 0x0000004 - -gUnk_080FF6C0:: @ 080FF6C0 - .incbin "baserom.gba", 0x0FF6C0, 0x0000004 - -gUnk_080FF6C4:: @ 080FF6C4 - .incbin "baserom.gba", 0x0FF6C4, 0x0000004 - -gUnk_080FF6C8:: @ 080FF6C8 - .incbin "baserom.gba", 0x0FF6C8, 0x0000004 - -gUnk_080FF6CC:: @ 080FF6CC - .incbin "baserom.gba", 0x0FF6CC, 0x0000004 - -gUnk_080FF6D0:: @ 080FF6D0 - .incbin "baserom.gba", 0x0FF6D0, 0x0000004 - -gUnk_080FF6D4:: @ 080FF6D4 - .incbin "baserom.gba", 0x0FF6D4, 0x0000004 - -gUnk_080FF6D8:: @ 080FF6D8 - .incbin "baserom.gba", 0x0FF6D8, 0x0000002 - -gUnk_080FF6DA:: @ 080FF6DA - .incbin "baserom.gba", 0x0FF6DA, 0x0000002 - -gUnk_080FF6DC:: @ 080FF6DC - .incbin "baserom.gba", 0x0FF6DC, 0x0000004 - -gUnk_080FF6E0:: @ 080FF6E0 - .incbin "baserom.gba", 0x0FF6E0, 0x0000004 - -gUnk_080FF6E4:: @ 080FF6E4 - .incbin "baserom.gba", 0x0FF6E4, 0x0000004 - -gUnk_080FF6E8:: @ 080FF6E8 - .incbin "baserom.gba", 0x0FF6E8, 0x0000004 - -gUnk_080FF6EC:: @ 080FF6EC - .incbin "baserom.gba", 0x0FF6EC, 0x0000004 - -gUnk_080FF6F0:: @ 080FF6F0 - .incbin "baserom.gba", 0x0FF6F0, 0x0000004 - -gUnk_080FF6F4:: @ 080FF6F4 - .incbin "baserom.gba", 0x0FF6F4, 0x0000004 - -gUnk_080FF6F8:: @ 080FF6F8 - .incbin "baserom.gba", 0x0FF6F8, 0x0000001 - -gUnk_080FF6F9:: @ 080FF6F9 - .incbin "baserom.gba", 0x0FF6F9, 0x0000003 - -gUnk_080FF6FC:: @ 080FF6FC - .incbin "baserom.gba", 0x0FF6FC, 0x0000004 - -gUnk_080FF700:: @ 080FF700 - .incbin "baserom.gba", 0x0FF700, 0x0000004 - -gUnk_080FF704:: @ 080FF704 - .incbin "baserom.gba", 0x0FF704, 0x0000004 - -gUnk_080FF708:: @ 080FF708 - .incbin "baserom.gba", 0x0FF708, 0x0000004 - -gUnk_080FF70C:: @ 080FF70C - .incbin "baserom.gba", 0x0FF70C, 0x0000004 - -gUnk_080FF710:: @ 080FF710 - .incbin "baserom.gba", 0x0FF710, 0x0000004 - -gUnk_080FF714:: @ 080FF714 - .incbin "baserom.gba", 0x0FF714, 0x0000004 - -gUnk_080FF718:: @ 080FF718 - .incbin "baserom.gba", 0x0FF718, 0x0000004 - -gUnk_080FF71C:: @ 080FF71C - .incbin "baserom.gba", 0x0FF71C, 0x0000004 - -gUnk_080FF720:: @ 080FF720 - .incbin "baserom.gba", 0x0FF720, 0x0000004 - -gUnk_080FF724:: @ 080FF724 - .incbin "baserom.gba", 0x0FF724, 0x0000004 - -gUnk_080FF728:: @ 080FF728 - .incbin "baserom.gba", 0x0FF728, 0x0000004 - -gUnk_080FF72C:: @ 080FF72C - .incbin "baserom.gba", 0x0FF72C, 0x0000004 - -gUnk_080FF730:: @ 080FF730 - .incbin "baserom.gba", 0x0FF730, 0x000000C - -gUnk_080FF73C:: @ 080FF73C - .incbin "baserom.gba", 0x0FF73C, 0x0000008 - -gUnk_080FF744:: @ 080FF744 - .incbin "baserom.gba", 0x0FF744, 0x000000C - -gUnk_080FF750:: @ 080FF750 - .incbin "baserom.gba", 0x0FF750, 0x000000C - -gUnk_080FF75C:: @ 080FF75C - .incbin "baserom.gba", 0x0FF75C, 0x0000014 - -gUnk_080FF770:: @ 080FF770 - .incbin "baserom.gba", 0x0FF770, 0x0000008 - -gUnk_080FF778:: @ 080FF778 - .incbin "baserom.gba", 0x0FF778, 0x0000008 - -gUnk_080FF780:: @ 080FF780 - .incbin "baserom.gba", 0x0FF780, 0x0000008 - -gUnk_080FF788:: @ 080FF788 - .incbin "baserom.gba", 0x0FF788, 0x0000008 - -gUnk_080FF790:: @ 080FF790 - .incbin "baserom.gba", 0x0FF790, 0x0000008 - -gUnk_080FF798:: @ 080FF798 - .incbin "baserom.gba", 0x0FF798, 0x0000008 - -gUnk_080FF7A0:: @ 080FF7A0 - .incbin "baserom.gba", 0x0FF7A0, 0x0000008 - -gUnk_080FF7A8:: @ 080FF7A8 - .incbin "baserom.gba", 0x0FF7A8, 0x0000008 - -gUnk_080FF7B0:: @ 080FF7B0 - .incbin "baserom.gba", 0x0FF7B0, 0x0000008 - -gUnk_080FF7B8:: @ 080FF7B8 - .incbin "baserom.gba", 0x0FF7B8, 0x0000008 - -gUnk_080FF7C0:: @ 080FF7C0 - .incbin "baserom.gba", 0x0FF7C0, 0x0000008 - -gUnk_080FF7C8:: @ 080FF7C8 - .incbin "baserom.gba", 0x0FF7C8, 0x0000008 - -gUnk_080FF7D0:: @ 080FF7D0 - .incbin "baserom.gba", 0x0FF7D0, 0x0000008 - -gUnk_080FF7D8:: @ 080FF7D8 - .incbin "baserom.gba", 0x0FF7D8, 0x0000008 - -gUnk_080FF7E0:: @ 080FF7E0 - .incbin "baserom.gba", 0x0FF7E0, 0x0000008 - -gUnk_080FF7E8:: @ 080FF7E8 - .incbin "baserom.gba", 0x0FF7E8, 0x0000008 - -gUnk_080FF7F0:: @ 080FF7F0 - .incbin "baserom.gba", 0x0FF7F0, 0x0000008 - -gUnk_080FF7F8:: @ 080FF7F8 - .incbin "baserom.gba", 0x0FF7F8, 0x0000010 - -gUnk_080FF808:: @ 080FF808 - .incbin "baserom.gba", 0x0FF808, 0x000000C - -gUnk_080FF814:: @ 080FF814 - .incbin "baserom.gba", 0x0FF814, 0x0000028 - -gUnk_080FF83C:: @ 080FF83C - .incbin "baserom.gba", 0x0FF83C, 0x0000008 - -gUnk_080FF844:: @ 080FF844 - .incbin "baserom.gba", 0x0FF844, 0x000000C - -gUnk_080FF850:: @ 080FF850 - .incbin "baserom.gba", 0x0FF850, 0x00000BE - -gUnk_080FF90E:: @ 080FF90E - .incbin "baserom.gba", 0x0FF90E, 0x00000CE - -gUnk_080FF9DC:: @ 080FF9DC - .incbin "baserom.gba", 0x0FF9DC, 0x000000A - -gUnk_080FF9E6:: @ 080FF9E6 - .incbin "baserom.gba", 0x0FF9E6, 0x000002C - -gUnk_080FFA12:: @ 080FFA12 - .incbin "baserom.gba", 0x0FFA12, 0x00000DD - -gUnk_080FFAEF:: @ 080FFAEF - .incbin "baserom.gba", 0x0FFAEF, 0x00000A1 + .incbin "baserom.gba", 0x0FF428, 0x0000428 + +gPaletteGroups:: @ 080FF850 + .word 0x00000000 + .word 0x080FF428 + .word 0x080FF430 + .word 0x080FF438 + .word 0x080FF444 + .word 0x080FF450 + .word 0x080FF454 + .word 0x080FF458 + .word 0x080FF45C + .word 0x080FF460 + .word 0x080FF474 + .word 0x080FF488 + .word 0x080FF484 + .word 0x080FF5C8 + .word 0x080FF4A0 + .word 0x080FF4DC + .word 0x080FF560 + .word 0x080FF4E4 + .word 0x080FF4C4 + .word 0x080FF570 + .word 0x080FF49C + .word 0x080FF498 + .word 0x080FF4A4 + .word 0x080FF4A8 + .word 0x080FF4AC + .word 0x080FF4B0 + .word 0x080FF4E8 + .word 0x080FF4B8 + .word 0x080FF490 + .word 0x080FF574 + .word 0x080FF578 + .word 0x080FF590 + .word 0x080FF594 + .word 0x080FF57C + .word 0x080FF5E4 + .word 0x080FF5F8 + .word 0x080FF4F0 + .word 0x080FF4F4 + .word 0x080FF598 + .word 0x080FF494 + .word 0x080FF6C4 + .word 0x080FF59C + .word 0x080FF6C8 + .word 0x080FF6CC + .word 0x080FF58C + .word 0x080FF5CC + .word 0x080FF564 + .word 0x080FF6D0 + .word 0x080FF6D4 + .word 0x080FF6D8 + .word 0x080FF6DC + .word 0x080FF5B0 + .word 0x080FF5B4 + .word 0x080FF5C4 + .word 0x080FF4C0 + .word 0x080FF500 + .word 0x080FF510 + .word 0x080FF518 + .word 0x080FF51C + .word 0x080FF524 + .word 0x080FF50C + .word 0x080FF4B4 + .word 0x080FF5A0 + .word 0x080FF4C8 + .word 0x080FF4CC + .word 0x080FF4D0 + .word 0x080FF4D4 + .word 0x080FF568 + .word 0x080FF650 + .word 0x080FF654 + .word 0x080FF658 + .word 0x080FF65C + .word 0x080FF660 + .word 0x080FF664 + .word 0x080FF668 + .word 0x080FF66C + .word 0x080FF670 + .word 0x080FF680 + .word 0x080FF684 + .word 0x080FF688 + .word 0x080FF68C + .word 0x080FF690 + .word 0x080FF694 + .word 0x080FF698 + .word 0x080FF69C + .word 0x080FF56C + .word 0x080FF674 + .word 0x080FF678 + .word 0x080FF67C + .word 0x080FF5B8 + .word 0x080FF4EC + .word 0x080FF6E0 + .word 0x080FF5A4 + .word 0x080FF4D8 + .word 0x080FF4FC + .word 0x080FF640 + .word 0x080FF644 + .word 0x080FF648 + .word 0x080FF64C + .word 0x080FF580 + .word 0x080FF584 + .word 0x080FF5FC + .word 0x080FF5A8 + .word 0x080FF5AC + .word 0x080FF504 + .word 0x080FF53C + .word 0x080FF540 + .word 0x080FF544 + .word 0x080FF548 + .word 0x080FF4E0 + .word 0x080FF600 + .word 0x080FF630 + .word 0x080FF634 + .word 0x080FF638 + .word 0x080FF63C + .word 0x080FF6A0 + .word 0x080FF6A4 + .word 0x080FF6A8 + .word 0x080FF6AC + .word 0x080FF6B0 + .word 0x080FF54C + .word 0x080FF604 + .word 0x080FF6C0 + .word 0x080FF6BC + .word 0x080FF6B8 + .word 0x080FF608 + .word 0x080FF60C + .word 0x080FF610 + .word 0x080FF4F8 + .word 0x080FF6B4 + .word 0x080FF508 + .word 0x080FF614 + .word 0x080FF618 + .word 0x080FF61C + .word 0x080FF6E4 + .word 0x080FF6E8 + .word 0x080FF6EC + .word 0x080FF6F0 + .word 0x080FF6F4 + .word 0x080FF6F8 + .word 0x080FF6FC + .word 0x080FF700 + .word 0x080FF704 + .word 0x080FF708 + .word 0x080FF528 + .word 0x080FF520 + .word 0x080FF5D0 + .word 0x080FF5D4 + .word 0x080FF5D8 + .word 0x080FF5DC + .word 0x080FF5E0 + .word 0x080FF5E8 + .word 0x080FF5EC + .word 0x080FF5F0 + .word 0x080FF5F4 + .word 0x080FF530 + .word 0x080FF534 + .word 0x080FF5BC + .word 0x080FF620 + .word 0x080FF624 + .word 0x080FF628 + .word 0x080FF62C + .word 0x080FF514 + .word 0x080FF550 + .word 0x080FF554 + .word 0x080FF558 + .word 0x080FF55C + .word 0x080FF588 + .word 0x080FF5C0 + .word 0x080FF538 + .word 0x080FF4BC + .word 0x080FF70C + .word 0x080FF710 + .word 0x080FF714 + .word 0x080FF718 + .word 0x080FF71C + .word 0x080FF720 + .word 0x080FF724 + .word 0x080FF728 + .word 0x080FF72C + .word 0x080FF52C + .word 0x080FF730 + .word 0x080FF73C + .word 0x080FF744 + .word 0x080FF750 + .word 0x080FF75C + .word 0x080FF770 + .word 0x080FF778 + .word 0x080FF780 + .word 0x080FF788 + .word 0x080FF790 + .word 0x080FF798 + .word 0x080FF7A0 + .word 0x080FF7A8 + .word 0x080FF7B0 + .word 0x080FF7B8 + .word 0x080FF7C0 + .word 0x080FF7C8 + .word 0x080FF7D0 + .word 0x080FF7D8 + .word 0x080FF7E0 + .word 0x080FF7E8 + .word 0x080FF7F0 + .word 0x080FF7F8 + .word 0x080FF808 + .word 0x080FF814 + .word 0x080FF83C + .word 0x080FF844 gUnk_080FFB90:: @ 080FFB90 .incbin "baserom.gba", 0x0FFB90, 0x0000018 diff --git a/data/data_08121C58.s b/data/data_08121C58.s index a691f57a..64f38084 100755 --- a/data/data_08121C58.s +++ b/data/data_08121C58.s @@ -8463,14856 +8463,3 @@ gUnk_081320D4:: @ 081320D4 gUnk_081320E4:: @ 081320E4 .incbin "baserom.gba", 0x1320E4, 0x000000C - -gUnk_081320F0:: @ 081320F0 - .incbin "baserom.gba", 0x1320F0, 0x000000C - -gUnk_081320FC:: @ 081320FC - .incbin "baserom.gba", 0x1320FC, 0x0000010 - -gUnk_0813210C:: @ 0813210C - .incbin "baserom.gba", 0x13210C, 0x0000113 - -gUnk_0813221F:: @ 0813221F - .incbin "baserom.gba", 0x13221F, 0x0000011 - -gUnk_08132230:: @ 08132230 - .incbin "baserom.gba", 0x132230, 0x0000002 - -gUnk_08132232:: @ 08132232 - .incbin "baserom.gba", 0x132232, 0x00000F2 - -gUnk_08132324:: @ 08132324 - .incbin "baserom.gba", 0x132324, 0x0000038 - -gUnk_0813235C:: @ 0813235C - .incbin "baserom.gba", 0x13235C, 0x0000050 - -gUnk_081323AC:: @ 081323AC - .incbin "baserom.gba", 0x1323AC, 0x0000030 - -gUnk_081323DC:: @ 081323DC - .incbin "baserom.gba", 0x1323DC, 0x0000030 - -gUnk_0813240C:: @ 0813240C - .incbin "baserom.gba", 0x13240C, 0x0000010 - -gUnk_0813241C:: @ 0813241C - .incbin "baserom.gba", 0x13241C, 0x0000010 - -gUnk_0813242C:: @ 0813242C - .incbin "baserom.gba", 0x13242C, 0x0000020 - -gUnk_0813244C:: @ 0813244C - .incbin "baserom.gba", 0x13244C, 0x0000040 - -gUnk_0813248C:: @ 0813248C - .incbin "baserom.gba", 0x13248C, 0x0000020 - -gUnk_081324AC:: @ 081324AC - .incbin "baserom.gba", 0x1324AC, 0x0000040 - -gUnk_081324EC:: @ 081324EC - .incbin "baserom.gba", 0x1324EC, 0x000001A - -gUnk_08132506:: @ 08132506 - .incbin "baserom.gba", 0x132506, 0x0000006 - -gUnk_0813250C:: @ 0813250C - .incbin "baserom.gba", 0x13250C, 0x0000020 - -gUnk_0813252C:: @ 0813252C - .incbin "baserom.gba", 0x13252C, 0x0000040 - -gUnk_0813256C:: @ 0813256C - .incbin "baserom.gba", 0x13256C, 0x0000050 - -gUnk_081325BC:: @ 081325BC - .incbin "baserom.gba", 0x1325BC, 0x0000065 - -gUnk_08132621:: @ 08132621 - .incbin "baserom.gba", 0x132621, 0x0000012 - -gUnk_08132633:: @ 08132633 - .incbin "baserom.gba", 0x132633, 0x0000069 - -gUnk_0813269C:: @ 0813269C - .incbin "baserom.gba", 0x13269C, 0x0000030 - -gUnk_081326CC:: @ 081326CC - .incbin "baserom.gba", 0x1326CC, 0x0000020 - -gUnk_081326EC:: @ 081326EC - .incbin "baserom.gba", 0x1326EC, 0x0000014 - -gUnk_08132700:: @ 08132700 - .incbin "baserom.gba", 0x132700, 0x0000014 - -gUnk_08132714:: @ 08132714 - .incbin "baserom.gba", 0x132714, 0x0000020 - -gUnk_08132734:: @ 08132734 - .incbin "baserom.gba", 0x132734, 0x0000001 - -gUnk_08132735:: @ 08132735 - .incbin "baserom.gba", 0x132735, 0x0000001 - -gUnk_08132736:: @ 08132736 - .incbin "baserom.gba", 0x132736, 0x000000E - -gUnk_08132744:: @ 08132744 - .incbin "baserom.gba", 0x132744, 0x0000010 - -gUnk_08132754:: @ 08132754 - .incbin "baserom.gba", 0x132754, 0x0000010 - -gUnk_08132764:: @ 08132764 - .incbin "baserom.gba", 0x132764, 0x0000010 - -gUnk_08132774:: @ 08132774 - .incbin "baserom.gba", 0x132774, 0x0000010 - -gUnk_08132784:: @ 08132784 - .incbin "baserom.gba", 0x132784, 0x0000010 - -gUnk_08132794:: @ 08132794 - .incbin "baserom.gba", 0x132794, 0x0000018 - -gUnk_081327AC:: @ 081327AC - .incbin "baserom.gba", 0x1327AC, 0x0000018 - -gUnk_081327C4:: @ 081327C4 - .incbin "baserom.gba", 0x1327C4, 0x0000018 - -gUnk_081327DC:: @ 081327DC - .incbin "baserom.gba", 0x1327DC, 0x0000034 - -gUnk_08132810:: @ 08132810 - .incbin "baserom.gba", 0x132810, 0x0000017 - -gUnk_08132827:: @ 08132827 - .incbin "baserom.gba", 0x132827, 0x00002B9 - -gUnk_08132AE0:: @ 08132AE0 - .incbin "baserom.gba", 0x132AE0, 0x000000A - -gUnk_08132AEA:: @ 08132AEA - .incbin "baserom.gba", 0x132AEA, 0x000000A - -gUnk_08132AF4:: @ 08132AF4 - .incbin "baserom.gba", 0x132AF4, 0x000000A - -gUnk_08132AFE:: @ 08132AFE - .incbin "baserom.gba", 0x132AFE, 0x000000E - -gUnk_08132B0C:: @ 08132B0C - .incbin "baserom.gba", 0x132B0C, 0x000000E - -gUnk_08132B1A:: @ 08132B1A - .incbin "baserom.gba", 0x132B1A, 0x000000E - -gUnk_08132B28:: @ 08132B28 - .incbin "baserom.gba", 0x132B28, 0x0000008 - -gUnk_08132B30:: @ 08132B30 - .incbin "baserom.gba", 0x132B30, 0x0000203 - -gUnk_08132D33:: @ 08132D33 - .incbin "baserom.gba", 0x132D33, 0x00002E6 - -gUnk_08133019:: @ 08133019 - .incbin "baserom.gba", 0x133019, 0x00000F8 - -gUnk_08133111:: @ 08133111 - .incbin "baserom.gba", 0x133111, 0x0000200 - -gUnk_08133311:: @ 08133311 - .incbin "baserom.gba", 0x133311, 0x0000022 - -gUnk_08133333:: @ 08133333 - .incbin "baserom.gba", 0x133333, 0x0000035 - -gUnk_08133368:: @ 08133368 - .incbin "baserom.gba", 0x133368, 0x00005B0 - -gUnk_08133918:: @ 08133918 - .incbin "baserom.gba", 0x133918, 0x0000020 - -gUnk_08133938:: @ 08133938 - .incbin "baserom.gba", 0x133938, 0x0000020 - -gUnk_08133958:: @ 08133958 - .incbin "baserom.gba", 0x133958, 0x0000020 - -gUnk_08133978:: @ 08133978 - .incbin "baserom.gba", 0x133978, 0x0000020 - -gUnk_08133998:: @ 08133998 - .incbin "baserom.gba", 0x133998, 0x0000020 - -gUnk_081339B8:: @ 081339B8 - .incbin "baserom.gba", 0x1339B8, 0x0000020 - -gUnk_081339D8:: @ 081339D8 - .incbin "baserom.gba", 0x1339D8, 0x0000020 - -gUnk_081339F8:: @ 081339F8 - .incbin "baserom.gba", 0x1339F8, 0x0000020 - -gUnk_08133A18:: @ 08133A18 - .incbin "baserom.gba", 0x133A18, 0x0000028 - -gUnk_08133A40:: @ 08133A40 - .incbin "baserom.gba", 0x133A40, 0x000001A - -gUnk_08133A5A:: @ 08133A5A - .incbin "baserom.gba", 0x133A5A, 0x000000D - -gUnk_08133A67:: @ 08133A67 - .incbin "baserom.gba", 0x133A67, 0x00004E1 - -gUnk_08133F48:: @ 08133F48 - .incbin "baserom.gba", 0x133F48, 0x0000080 - -gUnk_08133FC8:: @ 08133FC8 - .incbin "baserom.gba", 0x133FC8, 0x0000014 - -gUnk_08133FDC:: @ 08133FDC - .incbin "baserom.gba", 0x133FDC, 0x0000100 - -gUnk_081340DC:: @ 081340DC - .incbin "baserom.gba", 0x1340DC, 0x000012C - -gUnk_08134208:: @ 08134208 - .incbin "baserom.gba", 0x134208, 0x0000004 - -gUnk_0813420C:: @ 0813420C - .incbin "baserom.gba", 0x13420C, 0x00000DC - -gUnk_081342E8:: @ 081342E8 - .incbin "baserom.gba", 0x1342E8, 0x000004B - -gUnk_08134333:: @ 08134333 - .incbin "baserom.gba", 0x134333, 0x0000005 - -gUnk_08134338:: @ 08134338 - .incbin "baserom.gba", 0x134338, 0x0000008 - -gUnk_08134340:: @ 08134340 - .incbin "baserom.gba", 0x134340, 0x00000C8 - -gUnk_08134408:: @ 08134408 - .incbin "baserom.gba", 0x134408, 0x0000004 - -gUnk_0813440C:: @ 0813440C - .incbin "baserom.gba", 0x13440C, 0x0000032 - -gUnk_0813443E:: @ 0813443E - .incbin "baserom.gba", 0x13443E, 0x000000A - -gUnk_08134448:: @ 08134448 - .incbin "baserom.gba", 0x134448, 0x0000014 - -gUnk_0813445C:: @ 0813445C - .incbin "baserom.gba", 0x13445C, 0x0000028 - -gUnk_08134484:: @ 08134484 - .incbin "baserom.gba", 0x134484, 0x0000028 - -gUnk_081344AC:: @ 081344AC - .incbin "baserom.gba", 0x1344AC, 0x0000018 - -gUnk_081344C4:: @ 081344C4 - .incbin "baserom.gba", 0x1344C4, 0x00002D0 - -gUnk_08134794:: @ 08134794 - .incbin "baserom.gba", 0x134794, 0x0000004 - -gUnk_08134798:: @ 08134798 - .incbin "baserom.gba", 0x134798, 0x0000028 - -gUnk_081347C0:: @ 081347C0 - .incbin "baserom.gba", 0x1347C0, 0x0000004 - -gUnk_081347C4:: @ 081347C4 - .incbin "baserom.gba", 0x1347C4, 0x000003C - -gUnk_08134800:: @ 08134800 - .incbin "baserom.gba", 0x134800, 0x0000050 - -gUnk_08134850:: @ 08134850 - .incbin "baserom.gba", 0x134850, 0x00000B4 - -gUnk_08134904:: @ 08134904 - .incbin "baserom.gba", 0x134904, 0x0000064 - -gUnk_08134968:: @ 08134968 - .incbin "baserom.gba", 0x134968, 0x00000C8 - -gUnk_08134A30:: @ 08134A30 - .incbin "baserom.gba", 0x134A30, 0x0000014 - -gUnk_08134A44:: @ 08134A44 - .incbin "baserom.gba", 0x134A44, 0x0000028 - -gUnk_08134A6C:: @ 08134A6C - .incbin "baserom.gba", 0x134A6C, 0x00000A0 - -gUnk_08134B0C:: @ 08134B0C - .incbin "baserom.gba", 0x134B0C, 0x000003C - -gUnk_08134B48:: @ 08134B48 - .incbin "baserom.gba", 0x134B48, 0x0000028 - -gUnk_08134B70:: @ 08134B70 - .incbin "baserom.gba", 0x134B70, 0x000003C - -gUnk_08134BAC:: @ 08134BAC - .incbin "baserom.gba", 0x134BAC, 0x0000038 - -gUnk_08134BE4:: @ 08134BE4 - .incbin "baserom.gba", 0x134BE4, 0x00000A4 - -gUnk_08134C88:: @ 08134C88 - .incbin "baserom.gba", 0x134C88, 0x0000140 - -gUnk_08134DC8:: @ 08134DC8 - .incbin "baserom.gba", 0x134DC8, 0x00000DC - -gUnk_08134EA4:: @ 08134EA4 - .incbin "baserom.gba", 0x134EA4, 0x000003C - -gUnk_08134EE0:: @ 08134EE0 - .incbin "baserom.gba", 0x134EE0, 0x0000028 - -gUnk_08134F08:: @ 08134F08 - .incbin "baserom.gba", 0x134F08, 0x0000028 - -gUnk_08134F30:: @ 08134F30 - .incbin "baserom.gba", 0x134F30, 0x000008C - -gUnk_08134FBC:: @ 08134FBC - .incbin "baserom.gba", 0x134FBC, 0x000008C - -gUnk_08135048:: @ 08135048 - .incbin "baserom.gba", 0x135048, 0x0000028 - -gUnk_08135070:: @ 08135070 - .incbin "baserom.gba", 0x135070, 0x0000004 - -gUnk_08135074:: @ 08135074 - .incbin "baserom.gba", 0x135074, 0x0000028 - -gUnk_0813509C:: @ 0813509C - .incbin "baserom.gba", 0x13509C, 0x0000004 - -gUnk_081350A0:: @ 081350A0 - .incbin "baserom.gba", 0x1350A0, 0x00000C8 - -gUnk_08135168:: @ 08135168 - .incbin "baserom.gba", 0x135168, 0x0000028 - -gUnk_08135190:: @ 08135190 - .incbin "baserom.gba", 0x135190, 0x000003C - -gUnk_081351CC:: @ 081351CC - .incbin "baserom.gba", 0x1351CC, 0x0000008 - -gUnk_081351D4:: @ 081351D4 - .incbin "baserom.gba", 0x1351D4, 0x0000104 - -gUnk_081352D8:: @ 081352D8 - .incbin "baserom.gba", 0x1352D8, 0x0000004 - -gUnk_081352DC:: @ 081352DC - .incbin "baserom.gba", 0x1352DC, 0x0000028 - -gUnk_08135304:: @ 08135304 - .incbin "baserom.gba", 0x135304, 0x0000028 - -gUnk_0813532C:: @ 0813532C - .incbin "baserom.gba", 0x13532C, 0x0000028 - -gUnk_08135354:: @ 08135354 - .incbin "baserom.gba", 0x135354, 0x0000028 - -gUnk_0813537C:: @ 0813537C - .incbin "baserom.gba", 0x13537C, 0x0000028 - -gUnk_081353A4:: @ 081353A4 - .incbin "baserom.gba", 0x1353A4, 0x000003C - -gUnk_081353E0:: @ 081353E0 - .incbin "baserom.gba", 0x1353E0, 0x000003C - -gUnk_0813541C:: @ 0813541C - .incbin "baserom.gba", 0x13541C, 0x000003C - -gUnk_08135458:: @ 08135458 - .incbin "baserom.gba", 0x135458, 0x000003C - -gUnk_08135494:: @ 08135494 - .incbin "baserom.gba", 0x135494, 0x000003C - -gUnk_081354D0:: @ 081354D0 - .incbin "baserom.gba", 0x1354D0, 0x0000054 - -gUnk_08135524:: @ 08135524 - .incbin "baserom.gba", 0x135524, 0x0000028 - -gUnk_0813554C:: @ 0813554C - .incbin "baserom.gba", 0x13554C, 0x0000004 - -gUnk_08135550:: @ 08135550 - .incbin "baserom.gba", 0x135550, 0x0000028 - -gUnk_08135578:: @ 08135578 - .incbin "baserom.gba", 0x135578, 0x0000004 - -gUnk_0813557C:: @ 0813557C - .incbin "baserom.gba", 0x13557C, 0x0000118 - -gUnk_08135694:: @ 08135694 - .incbin "baserom.gba", 0x135694, 0x0000028 - -gUnk_081356BC:: @ 081356BC - .incbin "baserom.gba", 0x1356BC, 0x0000010 - -gUnk_081356CC:: @ 081356CC - .incbin "baserom.gba", 0x1356CC, 0x0000078 - -gUnk_08135744:: @ 08135744 - .incbin "baserom.gba", 0x135744, 0x0000004 - -gUnk_08135748:: @ 08135748 - .incbin "baserom.gba", 0x135748, 0x000002F - -gUnk_08135777:: @ 08135777 - .incbin "baserom.gba", 0x135777, 0x000000D - -gUnk_08135784:: @ 08135784 - .incbin "baserom.gba", 0x135784, 0x000003C - -gUnk_081357C0:: @ 081357C0 - .incbin "baserom.gba", 0x1357C0, 0x0000028 - -gUnk_081357E8:: @ 081357E8 - .incbin "baserom.gba", 0x1357E8, 0x0000028 - -gUnk_08135810:: @ 08135810 - .incbin "baserom.gba", 0x135810, 0x000003C - -gUnk_0813584C:: @ 0813584C - .incbin "baserom.gba", 0x13584C, 0x0000014 - -gUnk_08135860:: @ 08135860 - .incbin "baserom.gba", 0x135860, 0x0000028 - -gUnk_08135888:: @ 08135888 - .incbin "baserom.gba", 0x135888, 0x0000028 - -gUnk_081358B0:: @ 081358B0 - .incbin "baserom.gba", 0x1358B0, 0x000003C - -gUnk_081358EC:: @ 081358EC - .incbin "baserom.gba", 0x1358EC, 0x000003C - -gUnk_08135928:: @ 08135928 - .incbin "baserom.gba", 0x135928, 0x0000010 - -gUnk_08135938:: @ 08135938 - .incbin "baserom.gba", 0x135938, 0x000003C - -gUnk_08135974:: @ 08135974 - .incbin "baserom.gba", 0x135974, 0x0000010 - -gUnk_08135984:: @ 08135984 - .incbin "baserom.gba", 0x135984, 0x0000028 - -gUnk_081359AC:: @ 081359AC - .incbin "baserom.gba", 0x1359AC, 0x0000028 - -gUnk_081359D4:: @ 081359D4 - .incbin "baserom.gba", 0x1359D4, 0x000003C - -gUnk_08135A10:: @ 08135A10 - .incbin "baserom.gba", 0x135A10, 0x0000028 - -gUnk_08135A38:: @ 08135A38 - .incbin "baserom.gba", 0x135A38, 0x0000028 - -gUnk_08135A60:: @ 08135A60 - .incbin "baserom.gba", 0x135A60, 0x0000028 - -gUnk_08135A88:: @ 08135A88 - .incbin "baserom.gba", 0x135A88, 0x0000028 - -gUnk_08135AB0:: @ 08135AB0 - .incbin "baserom.gba", 0x135AB0, 0x0000028 - -gUnk_08135AD8:: @ 08135AD8 - .incbin "baserom.gba", 0x135AD8, 0x0000028 - -gUnk_08135B00:: @ 08135B00 - .incbin "baserom.gba", 0x135B00, 0x000003C - -gUnk_08135B3C:: @ 08135B3C - .incbin "baserom.gba", 0x135B3C, 0x0000028 - -gUnk_08135B64:: @ 08135B64 - .incbin "baserom.gba", 0x135B64, 0x0000028 - -gUnk_08135B8C:: @ 08135B8C - .incbin "baserom.gba", 0x135B8C, 0x0000028 - -gUnk_08135BB4:: @ 08135BB4 - .incbin "baserom.gba", 0x135BB4, 0x0000028 - -gUnk_08135BDC:: @ 08135BDC - .incbin "baserom.gba", 0x135BDC, 0x0000028 - -gUnk_08135C04:: @ 08135C04 - .incbin "baserom.gba", 0x135C04, 0x0000028 - -gUnk_08135C2C:: @ 08135C2C - .incbin "baserom.gba", 0x135C2C, 0x0000028 - -gUnk_08135C54:: @ 08135C54 - .incbin "baserom.gba", 0x135C54, 0x0000028 - -gUnk_08135C7C:: @ 08135C7C - .incbin "baserom.gba", 0x135C7C, 0x0000028 - -gUnk_08135CA4:: @ 08135CA4 - .incbin "baserom.gba", 0x135CA4, 0x0000028 - -gUnk_08135CCC:: @ 08135CCC - .incbin "baserom.gba", 0x135CCC, 0x0000028 - -gUnk_08135CF4:: @ 08135CF4 - .incbin "baserom.gba", 0x135CF4, 0x0000028 - -gUnk_08135D1C:: @ 08135D1C - .incbin "baserom.gba", 0x135D1C, 0x0000028 - -gUnk_08135D44:: @ 08135D44 - .incbin "baserom.gba", 0x135D44, 0x00000A0 - -gUnk_08135DE4:: @ 08135DE4 - .incbin "baserom.gba", 0x135DE4, 0x000008C - -gUnk_08135E70:: @ 08135E70 - .incbin "baserom.gba", 0x135E70, 0x00000B4 - -gUnk_08135F24:: @ 08135F24 - .incbin "baserom.gba", 0x135F24, 0x00000B4 - -gUnk_08135FD8:: @ 08135FD8 - .incbin "baserom.gba", 0x135FD8, 0x0000028 - -gUnk_08136000:: @ 08136000 - .incbin "baserom.gba", 0x136000, 0x0000028 - -gUnk_08136028:: @ 08136028 - .incbin "baserom.gba", 0x136028, 0x0000014 - -gUnk_0813603C:: @ 0813603C - .incbin "baserom.gba", 0x13603C, 0x0000050 - -gUnk_0813608C:: @ 0813608C - .incbin "baserom.gba", 0x13608C, 0x0000014 - -gUnk_081360A0:: @ 081360A0 - .incbin "baserom.gba", 0x1360A0, 0x0000028 - -gUnk_081360C8:: @ 081360C8 - .incbin "baserom.gba", 0x1360C8, 0x0000004 - -gUnk_081360CC:: @ 081360CC - .incbin "baserom.gba", 0x1360CC, 0x0000028 - -gUnk_081360F4:: @ 081360F4 - .incbin "baserom.gba", 0x1360F4, 0x0000028 - -gUnk_0813611C:: @ 0813611C - .incbin "baserom.gba", 0x13611C, 0x0000028 - -gUnk_08136144:: @ 08136144 - .incbin "baserom.gba", 0x136144, 0x0000028 - -gUnk_0813616C:: @ 0813616C - .incbin "baserom.gba", 0x13616C, 0x0000028 - -gUnk_08136194:: @ 08136194 - .incbin "baserom.gba", 0x136194, 0x0000028 - -gUnk_081361BC:: @ 081361BC - .incbin "baserom.gba", 0x1361BC, 0x0000028 - -gUnk_081361E4:: @ 081361E4 - .incbin "baserom.gba", 0x1361E4, 0x0000028 - -gUnk_0813620C:: @ 0813620C - .incbin "baserom.gba", 0x13620C, 0x0000028 - -gUnk_08136234:: @ 08136234 - .incbin "baserom.gba", 0x136234, 0x0000028 - -gUnk_0813625C:: @ 0813625C - .incbin "baserom.gba", 0x13625C, 0x0000028 - -gUnk_08136284:: @ 08136284 - .incbin "baserom.gba", 0x136284, 0x0000028 - -gUnk_081362AC:: @ 081362AC - .incbin "baserom.gba", 0x1362AC, 0x0000028 - -gUnk_081362D4:: @ 081362D4 - .incbin "baserom.gba", 0x1362D4, 0x000003C - -gUnk_08136310:: @ 08136310 - .incbin "baserom.gba", 0x136310, 0x0000028 - -gUnk_08136338:: @ 08136338 - .incbin "baserom.gba", 0x136338, 0x0000014 - -gUnk_0813634C:: @ 0813634C - .incbin "baserom.gba", 0x13634C, 0x0000028 - -gUnk_08136374:: @ 08136374 - .incbin "baserom.gba", 0x136374, 0x0000028 - -gUnk_0813639C:: @ 0813639C - .incbin "baserom.gba", 0x13639C, 0x00000C0 - -gUnk_0813645C:: @ 0813645C - .incbin "baserom.gba", 0x13645C, 0x0000028 - -gUnk_08136484:: @ 08136484 - .incbin "baserom.gba", 0x136484, 0x0000028 - -gUnk_081364AC:: @ 081364AC - .incbin "baserom.gba", 0x1364AC, 0x0000028 - -gUnk_081364D4:: @ 081364D4 - .incbin "baserom.gba", 0x1364D4, 0x0000028 - -gUnk_081364FC:: @ 081364FC - .incbin "baserom.gba", 0x1364FC, 0x0000028 - -gUnk_08136524:: @ 08136524 - .incbin "baserom.gba", 0x136524, 0x0000028 - -gUnk_0813654C:: @ 0813654C - .incbin "baserom.gba", 0x13654C, 0x0000040 - -gUnk_0813658C:: @ 0813658C - .incbin "baserom.gba", 0x13658C, 0x0000028 - -gUnk_081365B4:: @ 081365B4 - .incbin "baserom.gba", 0x1365B4, 0x0000028 - -gUnk_081365DC:: @ 081365DC - .incbin "baserom.gba", 0x1365DC, 0x0000028 - -gUnk_08136604:: @ 08136604 - .incbin "baserom.gba", 0x136604, 0x0000010 - -gUnk_08136614:: @ 08136614 - .incbin "baserom.gba", 0x136614, 0x0000028 - -gUnk_0813663C:: @ 0813663C - .incbin "baserom.gba", 0x13663C, 0x0000028 - -gUnk_08136664:: @ 08136664 - .incbin "baserom.gba", 0x136664, 0x0000028 - -gUnk_0813668C:: @ 0813668C - .incbin "baserom.gba", 0x13668C, 0x0000028 - -gUnk_081366B4:: @ 081366B4 - .incbin "baserom.gba", 0x1366B4, 0x0000028 - -gUnk_081366DC:: @ 081366DC - .incbin "baserom.gba", 0x1366DC, 0x000003C - -gUnk_08136718:: @ 08136718 - .incbin "baserom.gba", 0x136718, 0x000003C - -gUnk_08136754:: @ 08136754 - .incbin "baserom.gba", 0x136754, 0x0000028 - -gUnk_0813677C:: @ 0813677C - .incbin "baserom.gba", 0x13677C, 0x0000028 - -gUnk_081367A4:: @ 081367A4 - .incbin "baserom.gba", 0x1367A4, 0x0000040 - -gUnk_081367E4:: @ 081367E4 - .incbin "baserom.gba", 0x1367E4, 0x000003C - -gUnk_08136820:: @ 08136820 - .incbin "baserom.gba", 0x136820, 0x0000028 - -gUnk_08136848:: @ 08136848 - .incbin "baserom.gba", 0x136848, 0x000003C - -gUnk_08136884:: @ 08136884 - .incbin "baserom.gba", 0x136884, 0x000003C - -gUnk_081368C0:: @ 081368C0 - .incbin "baserom.gba", 0x1368C0, 0x0000078 - -gUnk_08136938:: @ 08136938 - .incbin "baserom.gba", 0x136938, 0x0000028 - -gUnk_08136960:: @ 08136960 - .incbin "baserom.gba", 0x136960, 0x0000028 - -gUnk_08136988:: @ 08136988 - .incbin "baserom.gba", 0x136988, 0x0000028 - -gUnk_081369B0:: @ 081369B0 - .incbin "baserom.gba", 0x1369B0, 0x0000028 - -gUnk_081369D8:: @ 081369D8 - .incbin "baserom.gba", 0x1369D8, 0x000003C - -gUnk_08136A14:: @ 08136A14 - .incbin "baserom.gba", 0x136A14, 0x000003C - -gUnk_08136A50:: @ 08136A50 - .incbin "baserom.gba", 0x136A50, 0x0000028 - -gUnk_08136A78:: @ 08136A78 - .incbin "baserom.gba", 0x136A78, 0x0000080 - -gUnk_08136AF8:: @ 08136AF8 - .incbin "baserom.gba", 0x136AF8, 0x0000028 - -gUnk_08136B20:: @ 08136B20 - .incbin "baserom.gba", 0x136B20, 0x000003C - -gUnk_08136B5C:: @ 08136B5C - .incbin "baserom.gba", 0x136B5C, 0x0000028 - -gUnk_08136B84:: @ 08136B84 - .incbin "baserom.gba", 0x136B84, 0x0000028 - -gUnk_08136BAC:: @ 08136BAC - .incbin "baserom.gba", 0x136BAC, 0x000003C - -gUnk_08136BE8:: @ 08136BE8 - .incbin "baserom.gba", 0x136BE8, 0x0000028 - -gUnk_08136C10:: @ 08136C10 - .incbin "baserom.gba", 0x136C10, 0x000003C - -gUnk_08136C4C:: @ 08136C4C - .incbin "baserom.gba", 0x136C4C, 0x000003C - -gUnk_08136C88:: @ 08136C88 - .incbin "baserom.gba", 0x136C88, 0x000003C - -gUnk_08136CC4:: @ 08136CC4 - .incbin "baserom.gba", 0x136CC4, 0x000003C - -gUnk_08136D00:: @ 08136D00 - .incbin "baserom.gba", 0x136D00, 0x0000028 - -gUnk_08136D28:: @ 08136D28 - .incbin "baserom.gba", 0x136D28, 0x000003C - -gUnk_08136D64:: @ 08136D64 - .incbin "baserom.gba", 0x136D64, 0x000003C - -gUnk_08136DA0:: @ 08136DA0 - .incbin "baserom.gba", 0x136DA0, 0x0000028 - -gUnk_08136DC8:: @ 08136DC8 - .incbin "baserom.gba", 0x136DC8, 0x000003C - -gUnk_08136E04:: @ 08136E04 - .incbin "baserom.gba", 0x136E04, 0x0000014 - -gUnk_08136E18:: @ 08136E18 - .incbin "baserom.gba", 0x136E18, 0x0000028 - -gUnk_08136E40:: @ 08136E40 - .incbin "baserom.gba", 0x136E40, 0x0000080 - -gUnk_08136EC0:: @ 08136EC0 - .incbin "baserom.gba", 0x136EC0, 0x0000028 - -gUnk_08136EE8:: @ 08136EE8 - .incbin "baserom.gba", 0x136EE8, 0x0000028 - -gUnk_08136F10:: @ 08136F10 - .incbin "baserom.gba", 0x136F10, 0x0000028 - -gUnk_08136F38:: @ 08136F38 - .incbin "baserom.gba", 0x136F38, 0x0000028 - -gUnk_08136F60:: @ 08136F60 - .incbin "baserom.gba", 0x136F60, 0x0000028 - -gUnk_08136F88:: @ 08136F88 - .incbin "baserom.gba", 0x136F88, 0x0000028 - -gUnk_08136FB0:: @ 08136FB0 - .incbin "baserom.gba", 0x136FB0, 0x0000028 - -gUnk_08136FD8:: @ 08136FD8 - .incbin "baserom.gba", 0x136FD8, 0x000002D - -gUnk_08137005:: @ 08137005 - .incbin "baserom.gba", 0x137005, 0x0000013 - -gUnk_08137018:: @ 08137018 - .incbin "baserom.gba", 0x137018, 0x0000028 - -gUnk_08137040:: @ 08137040 - .incbin "baserom.gba", 0x137040, 0x0000028 - -gUnk_08137068:: @ 08137068 - .incbin "baserom.gba", 0x137068, 0x0000028 - -gUnk_08137090:: @ 08137090 - .incbin "baserom.gba", 0x137090, 0x0000028 - -gUnk_081370B8:: @ 081370B8 - .incbin "baserom.gba", 0x1370B8, 0x0000028 - -gUnk_081370E0:: @ 081370E0 - .incbin "baserom.gba", 0x1370E0, 0x0000014 - -gUnk_081370F4:: @ 081370F4 - .incbin "baserom.gba", 0x1370F4, 0x0000028 - -gUnk_0813711C:: @ 0813711C - .incbin "baserom.gba", 0x13711C, 0x0000028 - -gUnk_08137144:: @ 08137144 - .incbin "baserom.gba", 0x137144, 0x0000028 - -gUnk_0813716C:: @ 0813716C - .incbin "baserom.gba", 0x13716C, 0x0000028 - -gUnk_08137194:: @ 08137194 - .incbin "baserom.gba", 0x137194, 0x0000028 - -gUnk_081371BC:: @ 081371BC - .incbin "baserom.gba", 0x1371BC, 0x0000028 - -gUnk_081371E4:: @ 081371E4 - .incbin "baserom.gba", 0x1371E4, 0x0000028 - -gUnk_0813720C:: @ 0813720C - .incbin "baserom.gba", 0x13720C, 0x0000028 - -gUnk_08137234:: @ 08137234 - .incbin "baserom.gba", 0x137234, 0x0000014 - -gUnk_08137248:: @ 08137248 - .incbin "baserom.gba", 0x137248, 0x0000060 - -gUnk_081372A8:: @ 081372A8 - .incbin "baserom.gba", 0x1372A8, 0x0000064 - -gUnk_0813730C:: @ 0813730C - .incbin "baserom.gba", 0x13730C, 0x000003C - -gUnk_08137348:: @ 08137348 - .incbin "baserom.gba", 0x137348, 0x000003C - -gUnk_08137384:: @ 08137384 - .incbin "baserom.gba", 0x137384, 0x000003C - -gUnk_081373C0:: @ 081373C0 - .incbin "baserom.gba", 0x1373C0, 0x0000028 - -gUnk_081373E8:: @ 081373E8 - .incbin "baserom.gba", 0x1373E8, 0x0000028 - -gUnk_08137410:: @ 08137410 - .incbin "baserom.gba", 0x137410, 0x000003C - -gUnk_0813744C:: @ 0813744C - .incbin "baserom.gba", 0x13744C, 0x000003C - -gUnk_08137488:: @ 08137488 - .incbin "baserom.gba", 0x137488, 0x0000028 - -gUnk_081374B0:: @ 081374B0 - .incbin "baserom.gba", 0x1374B0, 0x0000028 - -gUnk_081374D8:: @ 081374D8 - .incbin "baserom.gba", 0x1374D8, 0x000003C - -gUnk_08137514:: @ 08137514 - .incbin "baserom.gba", 0x137514, 0x000003C - -gUnk_08137550:: @ 08137550 - .incbin "baserom.gba", 0x137550, 0x000003C - -gUnk_0813758C:: @ 0813758C - .incbin "baserom.gba", 0x13758C, 0x0000028 - -gUnk_081375B4:: @ 081375B4 - .incbin "baserom.gba", 0x1375B4, 0x0000028 - -gUnk_081375DC:: @ 081375DC - .incbin "baserom.gba", 0x1375DC, 0x0000028 - -gUnk_08137604:: @ 08137604 - .incbin "baserom.gba", 0x137604, 0x000003C - -gUnk_08137640:: @ 08137640 - .incbin "baserom.gba", 0x137640, 0x0000044 - -gUnk_08137684:: @ 08137684 - .incbin "baserom.gba", 0x137684, 0x0000028 - -gUnk_081376AC:: @ 081376AC - .incbin "baserom.gba", 0x1376AC, 0x000003C - -gUnk_081376E8:: @ 081376E8 - .incbin "baserom.gba", 0x1376E8, 0x0000028 - -gUnk_08137710:: @ 08137710 - .incbin "baserom.gba", 0x137710, 0x000003C - -gUnk_0813774C:: @ 0813774C - .incbin "baserom.gba", 0x13774C, 0x0000028 - -gUnk_08137774:: @ 08137774 - .incbin "baserom.gba", 0x137774, 0x0000002 - -gUnk_08137776:: @ 08137776 - .incbin "baserom.gba", 0x137776, 0x0000001 - -gUnk_08137777:: @ 08137777 - .incbin "baserom.gba", 0x137777, 0x000001D - -gUnk_08137794:: @ 08137794 - .incbin "baserom.gba", 0x137794, 0x0000014 - -gUnk_081377A8:: @ 081377A8 - .incbin "baserom.gba", 0x1377A8, 0x0000028 - -gUnk_081377D0:: @ 081377D0 - .incbin "baserom.gba", 0x1377D0, 0x0000010 - -gUnk_081377E0:: @ 081377E0 - .incbin "baserom.gba", 0x1377E0, 0x0000028 - -gUnk_08137808:: @ 08137808 - .incbin "baserom.gba", 0x137808, 0x0000028 - -gUnk_08137830:: @ 08137830 - .incbin "baserom.gba", 0x137830, 0x0000028 - -gUnk_08137858:: @ 08137858 - .incbin "baserom.gba", 0x137858, 0x0000028 - -gUnk_08137880:: @ 08137880 - .incbin "baserom.gba", 0x137880, 0x0000028 - -gUnk_081378A8:: @ 081378A8 - .incbin "baserom.gba", 0x1378A8, 0x0000028 - -gUnk_081378D0:: @ 081378D0 - .incbin "baserom.gba", 0x1378D0, 0x0000028 - -gUnk_081378F8:: @ 081378F8 - .incbin "baserom.gba", 0x1378F8, 0x0000028 - -gUnk_08137920:: @ 08137920 - .incbin "baserom.gba", 0x137920, 0x0000028 - -gUnk_08137948:: @ 08137948 - .incbin "baserom.gba", 0x137948, 0x0000028 - -gUnk_08137970:: @ 08137970 - .incbin "baserom.gba", 0x137970, 0x0000028 - -gUnk_08137998:: @ 08137998 - .incbin "baserom.gba", 0x137998, 0x000002C - -gUnk_081379C4:: @ 081379C4 - .incbin "baserom.gba", 0x1379C4, 0x0000028 - -gUnk_081379EC:: @ 081379EC - .incbin "baserom.gba", 0x1379EC, 0x0000028 - -gUnk_08137A14:: @ 08137A14 - .incbin "baserom.gba", 0x137A14, 0x0000028 - -gUnk_08137A3C:: @ 08137A3C - .incbin "baserom.gba", 0x137A3C, 0x0000028 - -gUnk_08137A64:: @ 08137A64 - .incbin "baserom.gba", 0x137A64, 0x0000028 - -gUnk_08137A8C:: @ 08137A8C - .incbin "baserom.gba", 0x137A8C, 0x0000050 - -gUnk_08137ADC:: @ 08137ADC - .incbin "baserom.gba", 0x137ADC, 0x0000028 - -gUnk_08137B04:: @ 08137B04 - .incbin "baserom.gba", 0x137B04, 0x0000028 - -gUnk_08137B2C:: @ 08137B2C - .incbin "baserom.gba", 0x137B2C, 0x0000050 - -gUnk_08137B7C:: @ 08137B7C - .incbin "baserom.gba", 0x137B7C, 0x000003C - -gUnk_08137BB8:: @ 08137BB8 - .incbin "baserom.gba", 0x137BB8, 0x000003C - -gUnk_08137BF4:: @ 08137BF4 - .incbin "baserom.gba", 0x137BF4, 0x0000028 - -gUnk_08137C1C:: @ 08137C1C - .incbin "baserom.gba", 0x137C1C, 0x000003C - -gUnk_08137C58:: @ 08137C58 - .incbin "baserom.gba", 0x137C58, 0x0000010 - -gUnk_08137C68:: @ 08137C68 - .incbin "baserom.gba", 0x137C68, 0x000003C - -gUnk_08137CA4:: @ 08137CA4 - .incbin "baserom.gba", 0x137CA4, 0x0000028 - -gUnk_08137CCC:: @ 08137CCC - .incbin "baserom.gba", 0x137CCC, 0x0000008 - -gUnk_08137CD4:: @ 08137CD4 - .incbin "baserom.gba", 0x137CD4, 0x000003C - -gUnk_08137D10:: @ 08137D10 - .incbin "baserom.gba", 0x137D10, 0x000003C - -gUnk_08137D4C:: @ 08137D4C - .incbin "baserom.gba", 0x137D4C, 0x000003C - -gUnk_08137D88:: @ 08137D88 - .incbin "baserom.gba", 0x137D88, 0x000003C - -gUnk_08137DC4:: @ 08137DC4 - .incbin "baserom.gba", 0x137DC4, 0x0000010 - -gUnk_08137DD4:: @ 08137DD4 - .incbin "baserom.gba", 0x137DD4, 0x0000028 - -gUnk_08137DFC:: @ 08137DFC - .incbin "baserom.gba", 0x137DFC, 0x0000004 - -gUnk_08137E00:: @ 08137E00 - .incbin "baserom.gba", 0x137E00, 0x0000078 - -gUnk_08137E78:: @ 08137E78 - .incbin "baserom.gba", 0x137E78, 0x0000064 - -gUnk_08137EDC:: @ 08137EDC - .incbin "baserom.gba", 0x137EDC, 0x0000028 - -gUnk_08137F04:: @ 08137F04 - .incbin "baserom.gba", 0x137F04, 0x0000014 - -gUnk_08137F18:: @ 08137F18 - .incbin "baserom.gba", 0x137F18, 0x0000014 - -gUnk_08137F2C:: @ 08137F2C - .incbin "baserom.gba", 0x137F2C, 0x0000014 - -gUnk_08137F40:: @ 08137F40 - .incbin "baserom.gba", 0x137F40, 0x0000028 - -gUnk_08137F68:: @ 08137F68 - .incbin "baserom.gba", 0x137F68, 0x0000028 - -gUnk_08137F90:: @ 08137F90 - .incbin "baserom.gba", 0x137F90, 0x0000028 - -gUnk_08137FB8:: @ 08137FB8 - .incbin "baserom.gba", 0x137FB8, 0x0000014 - -gUnk_08137FCC:: @ 08137FCC - .incbin "baserom.gba", 0x137FCC, 0x0000028 - -gUnk_08137FF4:: @ 08137FF4 - .incbin "baserom.gba", 0x137FF4, 0x000003C - -gUnk_08138030:: @ 08138030 - .incbin "baserom.gba", 0x138030, 0x000003C - -gUnk_0813806C:: @ 0813806C - .incbin "baserom.gba", 0x13806C, 0x0000028 - -gUnk_08138094:: @ 08138094 - .incbin "baserom.gba", 0x138094, 0x0000028 - -gUnk_081380BC:: @ 081380BC - .incbin "baserom.gba", 0x1380BC, 0x0000028 - -gUnk_081380E4:: @ 081380E4 - .incbin "baserom.gba", 0x1380E4, 0x0000028 - -gUnk_0813810C:: @ 0813810C - .incbin "baserom.gba", 0x13810C, 0x0000028 - -gUnk_08138134:: @ 08138134 - .incbin "baserom.gba", 0x138134, 0x0000014 - -gUnk_08138148:: @ 08138148 - .incbin "baserom.gba", 0x138148, 0x000003C - -gUnk_08138184:: @ 08138184 - .incbin "baserom.gba", 0x138184, 0x0000028 - -gUnk_081381AC:: @ 081381AC - .incbin "baserom.gba", 0x1381AC, 0x0000028 - -gUnk_081381D4:: @ 081381D4 - .incbin "baserom.gba", 0x1381D4, 0x0000060 - -gUnk_08138234:: @ 08138234 - .incbin "baserom.gba", 0x138234, 0x0000050 - -gUnk_08138284:: @ 08138284 - .incbin "baserom.gba", 0x138284, 0x0000064 - -gUnk_081382E8:: @ 081382E8 - .incbin "baserom.gba", 0x1382E8, 0x000003C - -gUnk_08138324:: @ 08138324 - .incbin "baserom.gba", 0x138324, 0x000003C - -gUnk_08138360:: @ 08138360 - .incbin "baserom.gba", 0x138360, 0x0000028 - -gUnk_08138388:: @ 08138388 - .incbin "baserom.gba", 0x138388, 0x000003C - -gUnk_081383C4:: @ 081383C4 - .incbin "baserom.gba", 0x1383C4, 0x000003C - -gUnk_08138400:: @ 08138400 - .incbin "baserom.gba", 0x138400, 0x000003C - -gUnk_0813843C:: @ 0813843C - .incbin "baserom.gba", 0x13843C, 0x0000028 - -gUnk_08138464:: @ 08138464 - .incbin "baserom.gba", 0x138464, 0x0000040 - -gUnk_081384A4:: @ 081384A4 - .incbin "baserom.gba", 0x1384A4, 0x0000028 - -gUnk_081384CC:: @ 081384CC - .incbin "baserom.gba", 0x1384CC, 0x0000028 - -gUnk_081384F4:: @ 081384F4 - .incbin "baserom.gba", 0x1384F4, 0x0000008 - -gUnk_081384FC:: @ 081384FC - .incbin "baserom.gba", 0x1384FC, 0x0000028 - -gUnk_08138524:: @ 08138524 - .incbin "baserom.gba", 0x138524, 0x0000028 - -gUnk_0813854C:: @ 0813854C - .incbin "baserom.gba", 0x13854C, 0x0000028 - -gUnk_08138574:: @ 08138574 - .incbin "baserom.gba", 0x138574, 0x0000028 - -gUnk_0813859C:: @ 0813859C - .incbin "baserom.gba", 0x13859C, 0x0000028 - -gUnk_081385C4:: @ 081385C4 - .incbin "baserom.gba", 0x1385C4, 0x0000028 - -gUnk_081385EC:: @ 081385EC - .incbin "baserom.gba", 0x1385EC, 0x000003C - -gUnk_08138628:: @ 08138628 - .incbin "baserom.gba", 0x138628, 0x0000050 - -gUnk_08138678:: @ 08138678 - .incbin "baserom.gba", 0x138678, 0x0000028 - -gUnk_081386A0:: @ 081386A0 - .incbin "baserom.gba", 0x1386A0, 0x0000028 - -gUnk_081386C8:: @ 081386C8 - .incbin "baserom.gba", 0x1386C8, 0x0000028 - -gUnk_081386F0:: @ 081386F0 - .incbin "baserom.gba", 0x1386F0, 0x0000008 - -gUnk_081386F8:: @ 081386F8 - .incbin "baserom.gba", 0x1386F8, 0x0000028 - -gUnk_08138720:: @ 08138720 - .incbin "baserom.gba", 0x138720, 0x0000028 - -gUnk_08138748:: @ 08138748 - .incbin "baserom.gba", 0x138748, 0x0000008 - -gUnk_08138750:: @ 08138750 - .incbin "baserom.gba", 0x138750, 0x0000064 - -gUnk_081387B4:: @ 081387B4 - .incbin "baserom.gba", 0x1387B4, 0x000003C - -gUnk_081387F0:: @ 081387F0 - .incbin "baserom.gba", 0x1387F0, 0x0000008 - -gUnk_081387F8:: @ 081387F8 - .incbin "baserom.gba", 0x1387F8, 0x0000028 - -gUnk_08138820:: @ 08138820 - .incbin "baserom.gba", 0x138820, 0x0000028 - -gUnk_08138848:: @ 08138848 - .incbin "baserom.gba", 0x138848, 0x0000060 - -gUnk_081388A8:: @ 081388A8 - .incbin "baserom.gba", 0x1388A8, 0x0000028 - -gUnk_081388D0:: @ 081388D0 - .incbin "baserom.gba", 0x1388D0, 0x0000028 - -gUnk_081388F8:: @ 081388F8 - .incbin "baserom.gba", 0x1388F8, 0x0000008 - -gUnk_08138900:: @ 08138900 - .incbin "baserom.gba", 0x138900, 0x0000028 - -gUnk_08138928:: @ 08138928 - .incbin "baserom.gba", 0x138928, 0x0000028 - -gUnk_08138950:: @ 08138950 - .incbin "baserom.gba", 0x138950, 0x0000008 - -gUnk_08138958:: @ 08138958 - .incbin "baserom.gba", 0x138958, 0x0000024 - -gUnk_0813897C:: @ 0813897C - .incbin "baserom.gba", 0x13897C, 0x0000028 - -gUnk_081389A4:: @ 081389A4 - .incbin "baserom.gba", 0x1389A4, 0x0000014 - -gUnk_081389B8:: @ 081389B8 - .incbin "baserom.gba", 0x1389B8, 0x0000014 - -gUnk_081389CC:: @ 081389CC - .incbin "baserom.gba", 0x1389CC, 0x0000014 - -gUnk_081389E0:: @ 081389E0 - .incbin "baserom.gba", 0x1389E0, 0x0000014 - -gUnk_081389F4:: @ 081389F4 - .incbin "baserom.gba", 0x1389F4, 0x0000064 - -gUnk_08138A58:: @ 08138A58 - .incbin "baserom.gba", 0x138A58, 0x0000050 - -gUnk_08138AA8:: @ 08138AA8 - .incbin "baserom.gba", 0x138AA8, 0x0000028 - -gUnk_08138AD0:: @ 08138AD0 - .incbin "baserom.gba", 0x138AD0, 0x0000028 - -gUnk_08138AF8:: @ 08138AF8 - .incbin "baserom.gba", 0x138AF8, 0x0000050 - -gUnk_08138B48:: @ 08138B48 - .incbin "baserom.gba", 0x138B48, 0x0000084 - -gUnk_08138BCC:: @ 08138BCC - .incbin "baserom.gba", 0x138BCC, 0x0000004 - -gUnk_08138BD0:: @ 08138BD0 - .incbin "baserom.gba", 0x138BD0, 0x0000064 - -gUnk_08138C34:: @ 08138C34 - .incbin "baserom.gba", 0x138C34, 0x0000004 - -gUnk_08138C38:: @ 08138C38 - .incbin "baserom.gba", 0x138C38, 0x0000028 - -gUnk_08138C60:: @ 08138C60 - .incbin "baserom.gba", 0x138C60, 0x0000028 - -gUnk_08138C88:: @ 08138C88 - .incbin "baserom.gba", 0x138C88, 0x0000028 - -gUnk_08138CB0:: @ 08138CB0 - .incbin "baserom.gba", 0x138CB0, 0x0000028 - -gUnk_08138CD8:: @ 08138CD8 - .incbin "baserom.gba", 0x138CD8, 0x0000028 - -gUnk_08138D00:: @ 08138D00 - .incbin "baserom.gba", 0x138D00, 0x0000028 - -gUnk_08138D28:: @ 08138D28 - .incbin "baserom.gba", 0x138D28, 0x0000028 - -gUnk_08138D50:: @ 08138D50 - .incbin "baserom.gba", 0x138D50, 0x0000084 - -gUnk_08138DD4:: @ 08138DD4 - .incbin "baserom.gba", 0x138DD4, 0x0000028 - -gUnk_08138DFC:: @ 08138DFC - .incbin "baserom.gba", 0x138DFC, 0x000003C - -gUnk_08138E38:: @ 08138E38 - .incbin "baserom.gba", 0x138E38, 0x0000028 - -gUnk_08138E60:: @ 08138E60 - .incbin "baserom.gba", 0x138E60, 0x000003C - -gUnk_08138E9C:: @ 08138E9C - .incbin "baserom.gba", 0x138E9C, 0x0000028 - -gUnk_08138EC4:: @ 08138EC4 - .incbin "baserom.gba", 0x138EC4, 0x0000028 - -gUnk_08138EEC:: @ 08138EEC - .incbin "baserom.gba", 0x138EEC, 0x0000028 - -gUnk_08138F14:: @ 08138F14 - .incbin "baserom.gba", 0x138F14, 0x000003C - -gUnk_08138F50:: @ 08138F50 - .incbin "baserom.gba", 0x138F50, 0x0000028 - -gUnk_08138F78:: @ 08138F78 - .incbin "baserom.gba", 0x138F78, 0x0000028 - -gUnk_08138FA0:: @ 08138FA0 - .incbin "baserom.gba", 0x138FA0, 0x0000028 - -gUnk_08138FC8:: @ 08138FC8 - .incbin "baserom.gba", 0x138FC8, 0x000003C - -gUnk_08139004:: @ 08139004 - .incbin "baserom.gba", 0x139004, 0x000003C - -gUnk_08139040:: @ 08139040 - .incbin "baserom.gba", 0x139040, 0x000003C - -gUnk_0813907C:: @ 0813907C - .incbin "baserom.gba", 0x13907C, 0x000003C - -gUnk_081390B8:: @ 081390B8 - .incbin "baserom.gba", 0x1390B8, 0x0000028 - -gUnk_081390E0:: @ 081390E0 - .incbin "baserom.gba", 0x1390E0, 0x0000028 - -gUnk_08139108:: @ 08139108 - .incbin "baserom.gba", 0x139108, 0x00000A0 - -gUnk_081391A8:: @ 081391A8 - .incbin "baserom.gba", 0x1391A8, 0x0000028 - -gUnk_081391D0:: @ 081391D0 - .incbin "baserom.gba", 0x1391D0, 0x0000004 - -gUnk_081391D4:: @ 081391D4 - .incbin "baserom.gba", 0x1391D4, 0x0000028 - -gUnk_081391FC:: @ 081391FC - .incbin "baserom.gba", 0x1391FC, 0x0000008 - -gUnk_08139204:: @ 08139204 - .incbin "baserom.gba", 0x139204, 0x0000028 - -gUnk_0813922C:: @ 0813922C - .incbin "baserom.gba", 0x13922C, 0x0000028 - -gUnk_08139254:: @ 08139254 - .incbin "baserom.gba", 0x139254, 0x000003C - -gUnk_08139290:: @ 08139290 - .incbin "baserom.gba", 0x139290, 0x0000028 - -gUnk_081392B8:: @ 081392B8 - .incbin "baserom.gba", 0x1392B8, 0x0000028 - -gUnk_081392E0:: @ 081392E0 - .incbin "baserom.gba", 0x1392E0, 0x0000028 - -gUnk_08139308:: @ 08139308 - .incbin "baserom.gba", 0x139308, 0x0000028 - -gUnk_08139330:: @ 08139330 - .incbin "baserom.gba", 0x139330, 0x000003C - -gUnk_0813936C:: @ 0813936C - .incbin "baserom.gba", 0x13936C, 0x0000028 - -gUnk_08139394:: @ 08139394 - .incbin "baserom.gba", 0x139394, 0x0000028 - -gUnk_081393BC:: @ 081393BC - .incbin "baserom.gba", 0x1393BC, 0x0000078 - -gUnk_08139434:: @ 08139434 - .incbin "baserom.gba", 0x139434, 0x0000028 - -gUnk_0813945C:: @ 0813945C - .incbin "baserom.gba", 0x13945C, 0x0000028 - -gUnk_08139484:: @ 08139484 - .incbin "baserom.gba", 0x139484, 0x0000028 - -gUnk_081394AC:: @ 081394AC - .incbin "baserom.gba", 0x1394AC, 0x0000028 - -gUnk_081394D4:: @ 081394D4 - .incbin "baserom.gba", 0x1394D4, 0x0000028 - -gUnk_081394FC:: @ 081394FC - .incbin "baserom.gba", 0x1394FC, 0x000003C - -gUnk_08139538:: @ 08139538 - .incbin "baserom.gba", 0x139538, 0x0000028 - -gUnk_08139560:: @ 08139560 - .incbin "baserom.gba", 0x139560, 0x0000028 - -gUnk_08139588:: @ 08139588 - .incbin "baserom.gba", 0x139588, 0x0000028 - -gUnk_081395B0:: @ 081395B0 - .incbin "baserom.gba", 0x1395B0, 0x0000028 - -gUnk_081395D8:: @ 081395D8 - .incbin "baserom.gba", 0x1395D8, 0x0000100 - -gUnk_081396D8:: @ 081396D8 - .incbin "baserom.gba", 0x1396D8, 0x000003C - -gUnk_08139714:: @ 08139714 - .incbin "baserom.gba", 0x139714, 0x0000004 - -gUnk_08139718:: @ 08139718 - .incbin "baserom.gba", 0x139718, 0x0000014 - -gUnk_0813972C:: @ 0813972C - .incbin "baserom.gba", 0x13972C, 0x0000028 - -gUnk_08139754:: @ 08139754 - .incbin "baserom.gba", 0x139754, 0x000003C - -gUnk_08139790:: @ 08139790 - .incbin "baserom.gba", 0x139790, 0x0000028 - -gUnk_081397B8:: @ 081397B8 - .incbin "baserom.gba", 0x1397B8, 0x0000028 - -gUnk_081397E0:: @ 081397E0 - .incbin "baserom.gba", 0x1397E0, 0x0000024 - -gUnk_08139804:: @ 08139804 - .incbin "baserom.gba", 0x139804, 0x0000028 - -gUnk_0813982C:: @ 0813982C - .incbin "baserom.gba", 0x13982C, 0x0000028 - -gUnk_08139854:: @ 08139854 - .incbin "baserom.gba", 0x139854, 0x0000028 - -gUnk_0813987C:: @ 0813987C - .incbin "baserom.gba", 0x13987C, 0x0000028 - -gUnk_081398A4:: @ 081398A4 - .incbin "baserom.gba", 0x1398A4, 0x0000028 - -gUnk_081398CC:: @ 081398CC - .incbin "baserom.gba", 0x1398CC, 0x000003C - -gUnk_08139908:: @ 08139908 - .incbin "baserom.gba", 0x139908, 0x000003C - -gUnk_08139944:: @ 08139944 - .incbin "baserom.gba", 0x139944, 0x000003C - -gUnk_08139980:: @ 08139980 - .incbin "baserom.gba", 0x139980, 0x0000028 - -gUnk_081399A8:: @ 081399A8 - .incbin "baserom.gba", 0x1399A8, 0x0000028 - -gUnk_081399D0:: @ 081399D0 - .incbin "baserom.gba", 0x1399D0, 0x0000064 - -gUnk_08139A34:: @ 08139A34 - .incbin "baserom.gba", 0x139A34, 0x0000028 - -gUnk_08139A5C:: @ 08139A5C - .incbin "baserom.gba", 0x139A5C, 0x0000028 - -gUnk_08139A84:: @ 08139A84 - .incbin "baserom.gba", 0x139A84, 0x0000028 - -gUnk_08139AAC:: @ 08139AAC - .incbin "baserom.gba", 0x139AAC, 0x0000050 - -gUnk_08139AFC:: @ 08139AFC - .incbin "baserom.gba", 0x139AFC, 0x0000028 - -gUnk_08139B24:: @ 08139B24 - .incbin "baserom.gba", 0x139B24, 0x0000028 - -gUnk_08139B4C:: @ 08139B4C - .incbin "baserom.gba", 0x139B4C, 0x000003C - -gUnk_08139B88:: @ 08139B88 - .incbin "baserom.gba", 0x139B88, 0x000003C - -gUnk_08139BC4:: @ 08139BC4 - .incbin "baserom.gba", 0x139BC4, 0x0000028 - -gUnk_08139BEC:: @ 08139BEC - .incbin "baserom.gba", 0x139BEC, 0x000003C - -gUnk_08139C28:: @ 08139C28 - .incbin "baserom.gba", 0x139C28, 0x00000E4 - -gUnk_08139D0C:: @ 08139D0C - .incbin "baserom.gba", 0x139D0C, 0x0000050 - -gUnk_08139D5C:: @ 08139D5C - .incbin "baserom.gba", 0x139D5C, 0x0000028 - -gUnk_08139D84:: @ 08139D84 - .incbin "baserom.gba", 0x139D84, 0x0000028 - -gUnk_08139DAC:: @ 08139DAC - .incbin "baserom.gba", 0x139DAC, 0x0000028 - -gUnk_08139DD4:: @ 08139DD4 - .incbin "baserom.gba", 0x139DD4, 0x0000028 - -gUnk_08139DFC:: @ 08139DFC - .incbin "baserom.gba", 0x139DFC, 0x000003C - -gUnk_08139E38:: @ 08139E38 - .incbin "baserom.gba", 0x139E38, 0x000003C - -gUnk_08139E74:: @ 08139E74 - .incbin "baserom.gba", 0x139E74, 0x0000050 - -gUnk_08139EC4:: @ 08139EC4 - .incbin "baserom.gba", 0x139EC4, 0x0000050 - -gUnk_08139F14:: @ 08139F14 - .incbin "baserom.gba", 0x139F14, 0x000003C - -gUnk_08139F50:: @ 08139F50 - .incbin "baserom.gba", 0x139F50, 0x0000028 - -gUnk_08139F78:: @ 08139F78 - .incbin "baserom.gba", 0x139F78, 0x0000028 - -gUnk_08139FA0:: @ 08139FA0 - .incbin "baserom.gba", 0x139FA0, 0x0000050 - -gUnk_08139FF0:: @ 08139FF0 - .incbin "baserom.gba", 0x139FF0, 0x0000028 - -gUnk_0813A018:: @ 0813A018 - .incbin "baserom.gba", 0x13A018, 0x0000028 - -gUnk_0813A040:: @ 0813A040 - .incbin "baserom.gba", 0x13A040, 0x0000050 - -gUnk_0813A090:: @ 0813A090 - .incbin "baserom.gba", 0x13A090, 0x0000028 - -gUnk_0813A0B8:: @ 0813A0B8 - .incbin "baserom.gba", 0x13A0B8, 0x0000028 - -gUnk_0813A0E0:: @ 0813A0E0 - .incbin "baserom.gba", 0x13A0E0, 0x0000028 - -gUnk_0813A108:: @ 0813A108 - .incbin "baserom.gba", 0x13A108, 0x0000028 - -gUnk_0813A130:: @ 0813A130 - .incbin "baserom.gba", 0x13A130, 0x0000028 - -gUnk_0813A158:: @ 0813A158 - .incbin "baserom.gba", 0x13A158, 0x0000028 - -gUnk_0813A180:: @ 0813A180 - .incbin "baserom.gba", 0x13A180, 0x0000028 - -gUnk_0813A1A8:: @ 0813A1A8 - .incbin "baserom.gba", 0x13A1A8, 0x000001F - -gUnk_0813A1C7:: @ 0813A1C7 - .incbin "baserom.gba", 0x13A1C7, 0x0000009 - -gUnk_0813A1D0:: @ 0813A1D0 - .incbin "baserom.gba", 0x13A1D0, 0x0000028 - -gUnk_0813A1F8:: @ 0813A1F8 - .incbin "baserom.gba", 0x13A1F8, 0x0000028 - -gUnk_0813A220:: @ 0813A220 - .incbin "baserom.gba", 0x13A220, 0x000001F - -gUnk_0813A23F:: @ 0813A23F - .incbin "baserom.gba", 0x13A23F, 0x0000009 - -gUnk_0813A248:: @ 0813A248 - .incbin "baserom.gba", 0x13A248, 0x000003C - -gUnk_0813A284:: @ 0813A284 - .incbin "baserom.gba", 0x13A284, 0x0000028 - -gUnk_0813A2AC:: @ 0813A2AC - .incbin "baserom.gba", 0x13A2AC, 0x0000114 - -gUnk_0813A3C0:: @ 0813A3C0 - .incbin "baserom.gba", 0x13A3C0, 0x0000028 - -gUnk_0813A3E8:: @ 0813A3E8 - .incbin "baserom.gba", 0x13A3E8, 0x000003C - -gUnk_0813A424:: @ 0813A424 - .incbin "baserom.gba", 0x13A424, 0x0000028 - -gUnk_0813A44C:: @ 0813A44C - .incbin "baserom.gba", 0x13A44C, 0x0000028 - -gUnk_0813A474:: @ 0813A474 - .incbin "baserom.gba", 0x13A474, 0x000003C - -gUnk_0813A4B0:: @ 0813A4B0 - .incbin "baserom.gba", 0x13A4B0, 0x0000028 - -gUnk_0813A4D8:: @ 0813A4D8 - .incbin "baserom.gba", 0x13A4D8, 0x000003C - -gUnk_0813A514:: @ 0813A514 - .incbin "baserom.gba", 0x13A514, 0x0000028 - -gUnk_0813A53C:: @ 0813A53C - .incbin "baserom.gba", 0x13A53C, 0x0000020 - -gUnk_0813A55C:: @ 0813A55C - .incbin "baserom.gba", 0x13A55C, 0x0000028 - -gUnk_0813A584:: @ 0813A584 - .incbin "baserom.gba", 0x13A584, 0x0000028 - -gUnk_0813A5AC:: @ 0813A5AC - .incbin "baserom.gba", 0x13A5AC, 0x0000008 - -gUnk_0813A5B4:: @ 0813A5B4 - .incbin "baserom.gba", 0x13A5B4, 0x000003C - -gUnk_0813A5F0:: @ 0813A5F0 - .incbin "baserom.gba", 0x13A5F0, 0x0000004 - -gUnk_0813A5F4:: @ 0813A5F4 - .incbin "baserom.gba", 0x13A5F4, 0x000003C - -gUnk_0813A630:: @ 0813A630 - .incbin "baserom.gba", 0x13A630, 0x000003C - -gUnk_0813A66C:: @ 0813A66C - .incbin "baserom.gba", 0x13A66C, 0x0000078 - -gUnk_0813A6E4:: @ 0813A6E4 - .incbin "baserom.gba", 0x13A6E4, 0x0000020 - -gUnk_0813A704:: @ 0813A704 - .incbin "baserom.gba", 0x13A704, 0x000003C - -gUnk_0813A740:: @ 0813A740 - .incbin "baserom.gba", 0x13A740, 0x0000004 - -gUnk_0813A744:: @ 0813A744 - .incbin "baserom.gba", 0x13A744, 0x0000028 - -gUnk_0813A76C:: @ 0813A76C - .incbin "baserom.gba", 0x13A76C, 0x0000028 - -gUnk_0813A794:: @ 0813A794 - .incbin "baserom.gba", 0x13A794, 0x0000028 - -gUnk_0813A7BC:: @ 0813A7BC - .incbin "baserom.gba", 0x13A7BC, 0x0000028 - -gUnk_0813A7E4:: @ 0813A7E4 - .incbin "baserom.gba", 0x13A7E4, 0x000000C - -gUnk_0813A7F0:: @ 0813A7F0 - .incbin "baserom.gba", 0x13A7F0, 0x0000264 - -gUnk_0813AA54:: @ 0813AA54 - .incbin "baserom.gba", 0x13AA54, 0x0000014 - -gUnk_0813AA68:: @ 0813AA68 - .incbin "baserom.gba", 0x13AA68, 0x0000014 - -gUnk_0813AA7C:: @ 0813AA7C - .incbin "baserom.gba", 0x13AA7C, 0x0000014 - -gUnk_0813AA90:: @ 0813AA90 - .incbin "baserom.gba", 0x13AA90, 0x0000014 - -gUnk_0813AAA4:: @ 0813AAA4 - .incbin "baserom.gba", 0x13AAA4, 0x0000014 - -gUnk_0813AAB8:: @ 0813AAB8 - .incbin "baserom.gba", 0x13AAB8, 0x0000014 - -gUnk_0813AACC:: @ 0813AACC - .incbin "baserom.gba", 0x13AACC, 0x0000014 - -gUnk_0813AAE0:: @ 0813AAE0 - .incbin "baserom.gba", 0x13AAE0, 0x0000014 - -gUnk_0813AAF4:: @ 0813AAF4 - .incbin "baserom.gba", 0x13AAF4, 0x0000014 - -gUnk_0813AB08:: @ 0813AB08 - .incbin "baserom.gba", 0x13AB08, 0x0000014 - -gUnk_0813AB1C:: @ 0813AB1C - .incbin "baserom.gba", 0x13AB1C, 0x000003C - -gUnk_0813AB58:: @ 0813AB58 - .incbin "baserom.gba", 0x13AB58, 0x0000014 - -gUnk_0813AB6C:: @ 0813AB6C - .incbin "baserom.gba", 0x13AB6C, 0x0000014 - -gUnk_0813AB80:: @ 0813AB80 - .incbin "baserom.gba", 0x13AB80, 0x0000014 - -gUnk_0813AB94:: @ 0813AB94 - .incbin "baserom.gba", 0x13AB94, 0x0000014 - -gUnk_0813ABA8:: @ 0813ABA8 - .incbin "baserom.gba", 0x13ABA8, 0x0000014 - -gUnk_0813ABBC:: @ 0813ABBC - .incbin "baserom.gba", 0x13ABBC, 0x0000014 - -gUnk_0813ABD0:: @ 0813ABD0 - .incbin "baserom.gba", 0x13ABD0, 0x0000014 - -gUnk_0813ABE4:: @ 0813ABE4 - .incbin "baserom.gba", 0x13ABE4, 0x0000014 - -gUnk_0813ABF8:: @ 0813ABF8 - .incbin "baserom.gba", 0x13ABF8, 0x0000014 - -gUnk_0813AC0C:: @ 0813AC0C - .incbin "baserom.gba", 0x13AC0C, 0x0000014 - -gUnk_0813AC20:: @ 0813AC20 - .incbin "baserom.gba", 0x13AC20, 0x0000014 - -gUnk_0813AC34:: @ 0813AC34 - .incbin "baserom.gba", 0x13AC34, 0x0000014 - -gUnk_0813AC48:: @ 0813AC48 - .incbin "baserom.gba", 0x13AC48, 0x0000014 - -gUnk_0813AC5C:: @ 0813AC5C - .incbin "baserom.gba", 0x13AC5C, 0x0000014 - -gUnk_0813AC70:: @ 0813AC70 - .incbin "baserom.gba", 0x13AC70, 0x0000014 - -gUnk_0813AC84:: @ 0813AC84 - .incbin "baserom.gba", 0x13AC84, 0x0000014 - -gUnk_0813AC98:: @ 0813AC98 - .incbin "baserom.gba", 0x13AC98, 0x0000014 - -gUnk_0813ACAC:: @ 0813ACAC - .incbin "baserom.gba", 0x13ACAC, 0x0000014 - -gUnk_0813ACC0:: @ 0813ACC0 - .incbin "baserom.gba", 0x13ACC0, 0x0000014 - -gUnk_0813ACD4:: @ 0813ACD4 - .incbin "baserom.gba", 0x13ACD4, 0x0000014 - -gUnk_0813ACE8:: @ 0813ACE8 - .incbin "baserom.gba", 0x13ACE8, 0x0000014 - -gUnk_0813ACFC:: @ 0813ACFC - .incbin "baserom.gba", 0x13ACFC, 0x0000014 - -gUnk_0813AD10:: @ 0813AD10 - .incbin "baserom.gba", 0x13AD10, 0x0000014 - -gUnk_0813AD24:: @ 0813AD24 - .incbin "baserom.gba", 0x13AD24, 0x0000014 - -gUnk_0813AD38:: @ 0813AD38 - .incbin "baserom.gba", 0x13AD38, 0x0000014 - -gUnk_0813AD4C:: @ 0813AD4C - .incbin "baserom.gba", 0x13AD4C, 0x0000014 - -gUnk_0813AD60:: @ 0813AD60 - .incbin "baserom.gba", 0x13AD60, 0x0000014 - -gUnk_0813AD74:: @ 0813AD74 - .incbin "baserom.gba", 0x13AD74, 0x0000014 - -gUnk_0813AD88:: @ 0813AD88 - .incbin "baserom.gba", 0x13AD88, 0x0000064 - -gUnk_0813ADEC:: @ 0813ADEC - .incbin "baserom.gba", 0x13ADEC, 0x0000028 - -gUnk_0813AE14:: @ 0813AE14 - .incbin "baserom.gba", 0x13AE14, 0x00005F9 - -gUnk_0813B40D:: @ 0813B40D - .incbin "baserom.gba", 0x13B40D, 0x0002406 - -gUnk_0813D813:: @ 0813D813 - .incbin "baserom.gba", 0x13D813, 0x0000643 - -gUnk_0813DE56:: @ 0813DE56 - .incbin "baserom.gba", 0x13DE56, 0x0000168 - -gUnk_0813DFBE:: @ 0813DFBE - .incbin "baserom.gba", 0x13DFBE, 0x0000025 - -gUnk_0813DFE3:: @ 0813DFE3 - .incbin "baserom.gba", 0x13DFE3, 0x000021D - -gUnk_0813E200:: @ 0813E200 - .incbin "baserom.gba", 0x13E200, 0x0000608 - -gUnk_0813E808:: @ 0813E808 - .incbin "baserom.gba", 0x13E808, 0x00000F9 - -gUnk_0813E901:: @ 0813E901 - .incbin "baserom.gba", 0x13E901, 0x0000205 - -gUnk_0813EB06:: @ 0813EB06 - .incbin "baserom.gba", 0x13EB06, 0x00002E4 - -gUnk_0813EDEA:: @ 0813EDEA - .incbin "baserom.gba", 0x13EDEA, 0x0000208 - -gUnk_0813EFF2:: @ 0813EFF2 - .incbin "baserom.gba", 0x13EFF2, 0x000070F - -gUnk_0813F701:: @ 0813F701 - .incbin "baserom.gba", 0x13F701, 0x0000114 - -gUnk_0813F815:: @ 0813F815 - .incbin "baserom.gba", 0x13F815, 0x00006C3 - -gUnk_0813FED8:: @ 0813FED8 - .incbin "baserom.gba", 0x13FED8, 0x0000128 - -gUnk_08140000:: @ 08140000 - .incbin "baserom.gba", 0x140000, 0x0000001 - -gUnk_08140001:: @ 08140001 - .incbin "baserom.gba", 0x140001, 0x0000006 - -gUnk_08140007:: @ 08140007 - .incbin "baserom.gba", 0x140007, 0x0000001 - -gUnk_08140008:: @ 08140008 - .incbin "baserom.gba", 0x140008, 0x000000A - -gUnk_08140012:: @ 08140012 - .incbin "baserom.gba", 0x140012, 0x0000007 - -gUnk_08140019:: @ 08140019 - .incbin "baserom.gba", 0x140019, 0x0000001 - -gUnk_0814001A:: @ 0814001A - .incbin "baserom.gba", 0x14001A, 0x0000030 - -gUnk_0814004A:: @ 0814004A - .incbin "baserom.gba", 0x14004A, 0x0000010 - -gUnk_0814005A:: @ 0814005A - .incbin "baserom.gba", 0x14005A, 0x0000002 - -gUnk_0814005C:: @ 0814005C - .incbin "baserom.gba", 0x14005C, 0x0000002 - -gUnk_0814005E:: @ 0814005E - .incbin "baserom.gba", 0x14005E, 0x000000D - -gUnk_0814006B:: @ 0814006B - .incbin "baserom.gba", 0x14006B, 0x0000025 - -gUnk_08140090:: @ 08140090 - .incbin "baserom.gba", 0x140090, 0x000002E - -gUnk_081400BE:: @ 081400BE - .incbin "baserom.gba", 0x1400BE, 0x0000024 - -gUnk_081400E2:: @ 081400E2 - .incbin "baserom.gba", 0x1400E2, 0x000005E - -gUnk_08140140:: @ 08140140 - .incbin "baserom.gba", 0x140140, 0x0000083 - -gUnk_081401C3:: @ 081401C3 - .incbin "baserom.gba", 0x1401C3, 0x000003D - -gUnk_08140200:: @ 08140200 - .incbin "baserom.gba", 0x140200, 0x0000025 - -gUnk_08140225:: @ 08140225 - .incbin "baserom.gba", 0x140225, 0x00000AE - -gUnk_081402D3:: @ 081402D3 - .incbin "baserom.gba", 0x1402D3, 0x0000026 - -gUnk_081402F9:: @ 081402F9 - .incbin "baserom.gba", 0x1402F9, 0x0000007 - -gUnk_08140300:: @ 08140300 - .incbin "baserom.gba", 0x140300, 0x00000F4 - -gUnk_081403F4:: @ 081403F4 - .incbin "baserom.gba", 0x1403F4, 0x000000D - -gUnk_08140401:: @ 08140401 - .incbin "baserom.gba", 0x140401, 0x0000001 - -gUnk_08140402:: @ 08140402 - .incbin "baserom.gba", 0x140402, 0x0000062 - -gUnk_08140464:: @ 08140464 - .incbin "baserom.gba", 0x140464, 0x00000A1 - -gUnk_08140505:: @ 08140505 - .incbin "baserom.gba", 0x140505, 0x000017C - -gUnk_08140681:: @ 08140681 - .incbin "baserom.gba", 0x140681, 0x0000170 - -gUnk_081407F1:: @ 081407F1 - .incbin "baserom.gba", 0x1407F1, 0x0000016 - -gUnk_08140807:: @ 08140807 - .incbin "baserom.gba", 0x140807, 0x000000C - -gUnk_08140813:: @ 08140813 - .incbin "baserom.gba", 0x140813, 0x0000075 - -gUnk_08140888:: @ 08140888 - .incbin "baserom.gba", 0x140888, 0x0000075 - -gUnk_081408FD:: @ 081408FD - .incbin "baserom.gba", 0x1408FD, 0x0000106 - -gUnk_08140A03:: @ 08140A03 - .incbin "baserom.gba", 0x140A03, 0x00000E9 - -gUnk_08140AEC:: @ 08140AEC - .incbin "baserom.gba", 0x140AEC, 0x0000010 - -gUnk_08140AFC:: @ 08140AFC - .incbin "baserom.gba", 0x140AFC, 0x0000004 - -gUnk_08140B00:: @ 08140B00 - .incbin "baserom.gba", 0x140B00, 0x0000006 - -gUnk_08140B06:: @ 08140B06 - .incbin "baserom.gba", 0x140B06, 0x00000F1 - -gUnk_08140BF7:: @ 08140BF7 - .incbin "baserom.gba", 0x140BF7, 0x0000011 - -gUnk_08140C08:: @ 08140C08 - .incbin "baserom.gba", 0x140C08, 0x00000F0 - -gUnk_08140CF8:: @ 08140CF8 - .incbin "baserom.gba", 0x140CF8, 0x0000015 - -gUnk_08140D0D:: @ 08140D0D - .incbin "baserom.gba", 0x140D0D, 0x00000E9 - -gUnk_08140DF6:: @ 08140DF6 - .incbin "baserom.gba", 0x140DF6, 0x000010D - -gUnk_08140F03:: @ 08140F03 - .incbin "baserom.gba", 0x140F03, 0x0000004 - -gUnk_08140F07:: @ 08140F07 - .incbin "baserom.gba", 0x140F07, 0x0000002 - -gUnk_08140F09:: @ 08140F09 - .incbin "baserom.gba", 0x140F09, 0x0000007 - -gUnk_08140F10:: @ 08140F10 - .incbin "baserom.gba", 0x140F10, 0x00000F6 - -gUnk_08141006:: @ 08141006 - .incbin "baserom.gba", 0x141006, 0x0000110 - -gUnk_08141116:: @ 08141116 - .incbin "baserom.gba", 0x141116, 0x00000E6 - -gUnk_081411FC:: @ 081411FC - .incbin "baserom.gba", 0x1411FC, 0x0000005 - -gUnk_08141201:: @ 08141201 - .incbin "baserom.gba", 0x141201, 0x0000003 - -gUnk_08141204:: @ 08141204 - .incbin "baserom.gba", 0x141204, 0x0000101 - -gUnk_08141305:: @ 08141305 - .incbin "baserom.gba", 0x141305, 0x0000009 - -gUnk_0814130E:: @ 0814130E - .incbin "baserom.gba", 0x14130E, 0x000000B - -gUnk_08141319:: @ 08141319 - .incbin "baserom.gba", 0x141319, 0x00000E6 - -gUnk_081413FF:: @ 081413FF - .incbin "baserom.gba", 0x1413FF, 0x0000013 - -gUnk_08141412:: @ 08141412 - .incbin "baserom.gba", 0x141412, 0x00000F7 - -gUnk_08141509:: @ 08141509 - .incbin "baserom.gba", 0x141509, 0x0000001 - -gUnk_0814150A:: @ 0814150A - .incbin "baserom.gba", 0x14150A, 0x0000002 - -gUnk_0814150C:: @ 0814150C - .incbin "baserom.gba", 0x14150C, 0x0000004 - -gUnk_08141510:: @ 08141510 - .incbin "baserom.gba", 0x141510, 0x0000002 - -gUnk_08141512:: @ 08141512 - .incbin "baserom.gba", 0x141512, 0x0000002 - -gUnk_08141514:: @ 08141514 - .incbin "baserom.gba", 0x141514, 0x00000DD - -gUnk_081415F1:: @ 081415F1 - .incbin "baserom.gba", 0x1415F1, 0x000001A - -gUnk_0814160B:: @ 0814160B - .incbin "baserom.gba", 0x14160B, 0x0000002 - -gUnk_0814160D:: @ 0814160D - .incbin "baserom.gba", 0x14160D, 0x0000103 - -gUnk_08141710:: @ 08141710 - .incbin "baserom.gba", 0x141710, 0x0000005 - -gUnk_08141715:: @ 08141715 - .incbin "baserom.gba", 0x141715, 0x0000005 - -gUnk_0814171A:: @ 0814171A - .incbin "baserom.gba", 0x14171A, 0x0000001 - -gUnk_0814171B:: @ 0814171B - .incbin "baserom.gba", 0x14171B, 0x000000A - -gUnk_08141725:: @ 08141725 - .incbin "baserom.gba", 0x141725, 0x00000E2 - -gUnk_08141807:: @ 08141807 - .incbin "baserom.gba", 0x141807, 0x0000017 - -gUnk_0814181E:: @ 0814181E - .incbin "baserom.gba", 0x14181E, 0x00001F8 - -gUnk_08141A16:: @ 08141A16 - .incbin "baserom.gba", 0x141A16, 0x0000007 - -gUnk_08141A1D:: @ 08141A1D - .incbin "baserom.gba", 0x141A1D, 0x00000FB - -gUnk_08141B18:: @ 08141B18 - .incbin "baserom.gba", 0x141B18, 0x0000001 - -gUnk_08141B19:: @ 08141B19 - .incbin "baserom.gba", 0x141B19, 0x0000001 - -gUnk_08141B1A:: @ 08141B1A - .incbin "baserom.gba", 0x141B1A, 0x00000FA - -gUnk_08141C14:: @ 08141C14 - .incbin "baserom.gba", 0x141C14, 0x0000004 - -gUnk_08141C18:: @ 08141C18 - .incbin "baserom.gba", 0x141C18, 0x0000007 - -gUnk_08141C1F:: @ 08141C1F - .incbin "baserom.gba", 0x141C1F, 0x0000001 - -gUnk_08141C20:: @ 08141C20 - .incbin "baserom.gba", 0x141C20, 0x0000003 - -gUnk_08141C23:: @ 08141C23 - .incbin "baserom.gba", 0x141C23, 0x00000F2 - -gUnk_08141D15:: @ 08141D15 - .incbin "baserom.gba", 0x141D15, 0x0000004 - -gUnk_08141D19:: @ 08141D19 - .incbin "baserom.gba", 0x141D19, 0x0000007 - -gUnk_08141D20:: @ 08141D20 - .incbin "baserom.gba", 0x141D20, 0x0000002 - -gUnk_08141D22:: @ 08141D22 - .incbin "baserom.gba", 0x141D22, 0x0000001 - -gUnk_08141D23:: @ 08141D23 - .incbin "baserom.gba", 0x141D23, 0x0000001 - -gUnk_08141D24:: @ 08141D24 - .incbin "baserom.gba", 0x141D24, 0x00000FC - -gUnk_08141E20:: @ 08141E20 - .incbin "baserom.gba", 0x141E20, 0x0000001 - -gUnk_08141E21:: @ 08141E21 - .incbin "baserom.gba", 0x141E21, 0x0000005 - -gUnk_08141E26:: @ 08141E26 - .incbin "baserom.gba", 0x141E26, 0x00000FB - -gUnk_08141F21:: @ 08141F21 - .incbin "baserom.gba", 0x141F21, 0x0000003 - -gUnk_08141F24:: @ 08141F24 - .incbin "baserom.gba", 0x141F24, 0x0000005 - -gUnk_08141F29:: @ 08141F29 - .incbin "baserom.gba", 0x141F29, 0x00000F4 - -gUnk_0814201D:: @ 0814201D - .incbin "baserom.gba", 0x14201D, 0x0000007 - -gUnk_08142024:: @ 08142024 - .incbin "baserom.gba", 0x142024, 0x0000002 - -gUnk_08142026:: @ 08142026 - .incbin "baserom.gba", 0x142026, 0x0000001 - -gUnk_08142027:: @ 08142027 - .incbin "baserom.gba", 0x142027, 0x0000106 - -gUnk_0814212D:: @ 0814212D - .incbin "baserom.gba", 0x14212D, 0x00000C1 - -gUnk_081421EE:: @ 081421EE - .incbin "baserom.gba", 0x1421EE, 0x000003D - -gUnk_0814222B:: @ 0814222B - .incbin "baserom.gba", 0x14222B, 0x0000104 - -gUnk_0814232F:: @ 0814232F - .incbin "baserom.gba", 0x14232F, 0x0000002 - -gUnk_08142331:: @ 08142331 - .incbin "baserom.gba", 0x142331, 0x0000001 - -gUnk_08142332:: @ 08142332 - .incbin "baserom.gba", 0x142332, 0x00000F9 - -gUnk_0814242B:: @ 0814242B - .incbin "baserom.gba", 0x14242B, 0x0000005 - -gUnk_08142430:: @ 08142430 - .incbin "baserom.gba", 0x142430, 0x00000F2 - -gUnk_08142522:: @ 08142522 - .incbin "baserom.gba", 0x142522, 0x000000F - -gUnk_08142531:: @ 08142531 - .incbin "baserom.gba", 0x142531, 0x0000102 - -gUnk_08142633:: @ 08142633 - .incbin "baserom.gba", 0x142633, 0x00000F3 - -gUnk_08142726:: @ 08142726 - .incbin "baserom.gba", 0x142726, 0x000010F - -gUnk_08142835:: @ 08142835 - .incbin "baserom.gba", 0x142835, 0x0000208 - -gUnk_08142A3D:: @ 08142A3D - .incbin "baserom.gba", 0x142A3D, 0x00000E1 - -gUnk_08142B1E:: @ 08142B1E - .incbin "baserom.gba", 0x142B1E, 0x0000015 - -gUnk_08142B33:: @ 08142B33 - .incbin "baserom.gba", 0x142B33, 0x000030C - -gUnk_08142E3F:: @ 08142E3F - .incbin "baserom.gba", 0x142E3F, 0x00001D9 - -gUnk_08143018:: @ 08143018 - .incbin "baserom.gba", 0x143018, 0x0000030 - -gUnk_08143048:: @ 08143048 - .incbin "baserom.gba", 0x143048, 0x00001F3 - -gUnk_0814323B:: @ 0814323B - .incbin "baserom.gba", 0x14323B, 0x00000F8 - -gUnk_08143333:: @ 08143333 - .incbin "baserom.gba", 0x143333, 0x0000006 - -gUnk_08143339:: @ 08143339 - .incbin "baserom.gba", 0x143339, 0x00000D7 - -gUnk_08143410:: @ 08143410 - .incbin "baserom.gba", 0x143410, 0x000000D - -gUnk_0814341D:: @ 0814341D - .incbin "baserom.gba", 0x14341D, 0x0000433 - -gUnk_08143850:: @ 08143850 - .incbin "baserom.gba", 0x143850, 0x0000514 - -gUnk_08143D64:: @ 08143D64 - .incbin "baserom.gba", 0x143D64, 0x00003D1 - -gUnk_08144135:: @ 08144135 - .incbin "baserom.gba", 0x144135, 0x000360C - -gUnk_08147741:: @ 08147741 - .incbin "baserom.gba", 0x147741, 0x00064AC - -gUnk_0814DBED:: @ 0814DBED - .incbin "baserom.gba", 0x14DBED, 0x000012A - -gUnk_0814DD17:: @ 0814DD17 - .incbin "baserom.gba", 0x14DD17, 0x00004C0 - -gUnk_0814E1D7:: @ 0814E1D7 - .incbin "baserom.gba", 0x14E1D7, 0x0000031 - -gUnk_0814E208:: @ 0814E208 - .incbin "baserom.gba", 0x14E208, 0x0000300 - -gUnk_0814E508:: @ 0814E508 - .incbin "baserom.gba", 0x14E508, 0x00003EF - -gUnk_0814E8F7:: @ 0814E8F7 - .incbin "baserom.gba", 0x14E8F7, 0x0000309 - -gUnk_0814EC00:: @ 0814EC00 - .incbin "baserom.gba", 0x14EC00, 0x00001D7 - -gUnk_0814EDD7:: @ 0814EDD7 - .incbin "baserom.gba", 0x14EDD7, 0x000012A - -gUnk_0814EF01:: @ 0814EF01 - .incbin "baserom.gba", 0x14EF01, 0x0000002 - -gUnk_0814EF03:: @ 0814EF03 - .incbin "baserom.gba", 0x14EF03, 0x0000018 - -gUnk_0814EF1B:: @ 0814EF1B - .incbin "baserom.gba", 0x14EF1B, 0x00000E6 - -gUnk_0814F001:: @ 0814F001 - .incbin "baserom.gba", 0x14F001, 0x00000DA - -gUnk_0814F0DB:: @ 0814F0DB - .incbin "baserom.gba", 0x14F0DB, 0x0000148 - -gUnk_0814F223:: @ 0814F223 - .incbin "baserom.gba", 0x14F223, 0x00003CC - -gUnk_0814F5EF:: @ 0814F5EF - .incbin "baserom.gba", 0x14F5EF, 0x0000009 - -gUnk_0814F5F8:: @ 0814F5F8 - .incbin "baserom.gba", 0x14F5F8, 0x0000208 - -gUnk_0814F800:: @ 0814F800 - .incbin "baserom.gba", 0x14F800, 0x0000018 - -gUnk_0814F818:: @ 0814F818 - .incbin "baserom.gba", 0x14F818, 0x00000C9 - -gUnk_0814F8E1:: @ 0814F8E1 - .incbin "baserom.gba", 0x14F8E1, 0x0000010 - -gUnk_0814F8F1:: @ 0814F8F1 - .incbin "baserom.gba", 0x14F8F1, 0x0000007 - -gUnk_0814F8F8:: @ 0814F8F8 - .incbin "baserom.gba", 0x14F8F8, 0x00001F0 - -gUnk_0814FAE8:: @ 0814FAE8 - .incbin "baserom.gba", 0x14FAE8, 0x00000F2 - -gUnk_0814FBDA:: @ 0814FBDA - .incbin "baserom.gba", 0x14FBDA, 0x0000104 - -gUnk_0814FCDE:: @ 0814FCDE - .incbin "baserom.gba", 0x14FCDE, 0x000001A - -gUnk_0814FCF8:: @ 0814FCF8 - .incbin "baserom.gba", 0x14FCF8, 0x00000F6 - -gUnk_0814FDEE:: @ 0814FDEE - .incbin "baserom.gba", 0x14FDEE, 0x000000C - -gUnk_0814FDFA:: @ 0814FDFA - .incbin "baserom.gba", 0x14FDFA, 0x0000020 - -gUnk_0814FE1A:: @ 0814FE1A - .incbin "baserom.gba", 0x14FE1A, 0x0000020 - -gUnk_0814FE3A:: @ 0814FE3A - .incbin "baserom.gba", 0x14FE3A, 0x00000B2 - -gUnk_0814FEEC:: @ 0814FEEC - .incbin "baserom.gba", 0x14FEEC, 0x00000E2 - -gUnk_0814FFCE:: @ 0814FFCE - .incbin "baserom.gba", 0x14FFCE, 0x0000032 - -gUnk_08150000:: @ 08150000 - .incbin "baserom.gba", 0x150000, 0x0000003 - -gUnk_08150003:: @ 08150003 - .incbin "baserom.gba", 0x150003, 0x0000007 - -gUnk_0815000A:: @ 0815000A - .incbin "baserom.gba", 0x15000A, 0x0000009 - -gUnk_08150013:: @ 08150013 - .incbin "baserom.gba", 0x150013, 0x0000007 - -gUnk_0815001A:: @ 0815001A - .incbin "baserom.gba", 0x15001A, 0x0000010 - -gUnk_0815002A:: @ 0815002A - .incbin "baserom.gba", 0x15002A, 0x000000A - -gUnk_08150034:: @ 08150034 - .incbin "baserom.gba", 0x150034, 0x0000008 - -gUnk_0815003C:: @ 0815003C - .incbin "baserom.gba", 0x15003C, 0x0000004 - -gUnk_08150040:: @ 08150040 - .incbin "baserom.gba", 0x150040, 0x0000016 - -gUnk_08150056:: @ 08150056 - .incbin "baserom.gba", 0x150056, 0x000008F - -gUnk_081500E5:: @ 081500E5 - .incbin "baserom.gba", 0x1500E5, 0x0000006 - -gUnk_081500EB:: @ 081500EB - .incbin "baserom.gba", 0x1500EB, 0x000001F - -gUnk_0815010A:: @ 0815010A - .incbin "baserom.gba", 0x15010A, 0x0000028 - -gUnk_08150132:: @ 08150132 - .incbin "baserom.gba", 0x150132, 0x000000E - -gUnk_08150140:: @ 08150140 - .incbin "baserom.gba", 0x150140, 0x00001C0 - -gUnk_08150300:: @ 08150300 - .incbin "baserom.gba", 0x150300, 0x000001D - -gUnk_0815031D:: @ 0815031D - .incbin "baserom.gba", 0x15031D, 0x00000E4 - -gUnk_08150401:: @ 08150401 - .incbin "baserom.gba", 0x150401, 0x0000001 - -gUnk_08150402:: @ 08150402 - .incbin "baserom.gba", 0x150402, 0x000001B - -gUnk_0815041D:: @ 0815041D - .incbin "baserom.gba", 0x15041D, 0x0000027 - -gUnk_08150444:: @ 08150444 - .incbin "baserom.gba", 0x150444, 0x00001A6 - -gUnk_081505EA:: @ 081505EA - .incbin "baserom.gba", 0x1505EA, 0x0000017 - -gUnk_08150601:: @ 08150601 - .incbin "baserom.gba", 0x150601, 0x00000AD - -gUnk_081506AE:: @ 081506AE - .incbin "baserom.gba", 0x1506AE, 0x0000125 - -gUnk_081507D3:: @ 081507D3 - .incbin "baserom.gba", 0x1507D3, 0x0000028 - -gUnk_081507FB:: @ 081507FB - .incbin "baserom.gba", 0x1507FB, 0x0000009 - -gUnk_08150804:: @ 08150804 - .incbin "baserom.gba", 0x150804, 0x0000002 - -gUnk_08150806:: @ 08150806 - .incbin "baserom.gba", 0x150806, 0x000000E - -gUnk_08150814:: @ 08150814 - .incbin "baserom.gba", 0x150814, 0x00000DE - -gUnk_081508F2:: @ 081508F2 - .incbin "baserom.gba", 0x1508F2, 0x000000B - -gUnk_081508FD:: @ 081508FD - .incbin "baserom.gba", 0x1508FD, 0x000010F - -gUnk_08150A0C:: @ 08150A0C - .incbin "baserom.gba", 0x150A0C, 0x00000E6 - -gUnk_08150AF2:: @ 08150AF2 - .incbin "baserom.gba", 0x150AF2, 0x0000018 - -gUnk_08150B0A:: @ 08150B0A - .incbin "baserom.gba", 0x150B0A, 0x0000005 - -gUnk_08150B0F:: @ 08150B0F - .incbin "baserom.gba", 0x150B0F, 0x000000C - -gUnk_08150B1B:: @ 08150B1B - .incbin "baserom.gba", 0x150B1B, 0x00002E6 - -gUnk_08150E01:: @ 08150E01 - .incbin "baserom.gba", 0x150E01, 0x00000EE - -gUnk_08150EEF:: @ 08150EEF - .incbin "baserom.gba", 0x150EEF, 0x000001D - -gUnk_08150F0C:: @ 08150F0C - .incbin "baserom.gba", 0x150F0C, 0x00000EB - -gUnk_08150FF7:: @ 08150FF7 - .incbin "baserom.gba", 0x150FF7, 0x000000D - -gUnk_08151004:: @ 08151004 - .incbin "baserom.gba", 0x151004, 0x00000FC - -gUnk_08151100:: @ 08151100 - .incbin "baserom.gba", 0x151100, 0x0000007 - -gUnk_08151107:: @ 08151107 - .incbin "baserom.gba", 0x151107, 0x00000F2 - -gUnk_081511F9:: @ 081511F9 - .incbin "baserom.gba", 0x1511F9, 0x000000F - -gUnk_08151208:: @ 08151208 - .incbin "baserom.gba", 0x151208, 0x0000004 - -gUnk_0815120C:: @ 0815120C - .incbin "baserom.gba", 0x15120C, 0x00000FB - -gUnk_08151307:: @ 08151307 - .incbin "baserom.gba", 0x151307, 0x0000007 - -gUnk_0815130E:: @ 0815130E - .incbin "baserom.gba", 0x15130E, 0x00000ED - -gUnk_081513FB:: @ 081513FB - .incbin "baserom.gba", 0x1513FB, 0x000011D - -gUnk_08151518:: @ 08151518 - .incbin "baserom.gba", 0x151518, 0x0000054 - -gUnk_0815156C:: @ 0815156C - .incbin "baserom.gba", 0x15156C, 0x00000A0 - -gUnk_0815160C:: @ 0815160C - .incbin "baserom.gba", 0x15160C, 0x0000004 - -gUnk_08151610:: @ 08151610 - .incbin "baserom.gba", 0x151610, 0x0000007 - -gUnk_08151617:: @ 08151617 - .incbin "baserom.gba", 0x151617, 0x00000EC - -gUnk_08151703:: @ 08151703 - .incbin "baserom.gba", 0x151703, 0x0000010 - -gUnk_08151713:: @ 08151713 - .incbin "baserom.gba", 0x151713, 0x0000003 - -gUnk_08151716:: @ 08151716 - .incbin "baserom.gba", 0x151716, 0x000000F - -gUnk_08151725:: @ 08151725 - .incbin "baserom.gba", 0x151725, 0x00000ED - -gUnk_08151812:: @ 08151812 - .incbin "baserom.gba", 0x151812, 0x0000001 - -gUnk_08151813:: @ 08151813 - .incbin "baserom.gba", 0x151813, 0x0000002 - -gUnk_08151815:: @ 08151815 - .incbin "baserom.gba", 0x151815, 0x0000010 - -gUnk_08151825:: @ 08151825 - .incbin "baserom.gba", 0x151825, 0x00000EA - -gUnk_0815190F:: @ 0815190F - .incbin "baserom.gba", 0x15190F, 0x0000006 - -gUnk_08151915:: @ 08151915 - .incbin "baserom.gba", 0x151915, 0x00000FA - -gUnk_08151A0F:: @ 08151A0F - .incbin "baserom.gba", 0x151A0F, 0x000000B - -gUnk_08151A1A:: @ 08151A1A - .incbin "baserom.gba", 0x151A1A, 0x00000FB - -gUnk_08151B15:: @ 08151B15 - .incbin "baserom.gba", 0x151B15, 0x0000004 - -gUnk_08151B19:: @ 08151B19 - .incbin "baserom.gba", 0x151B19, 0x0000004 - -gUnk_08151B1D:: @ 08151B1D - .incbin "baserom.gba", 0x151B1D, 0x0000002 - -gUnk_08151B1F:: @ 08151B1F - .incbin "baserom.gba", 0x151B1F, 0x00000E9 - -gUnk_08151C08:: @ 08151C08 - .incbin "baserom.gba", 0x151C08, 0x0000015 - -gUnk_08151C1D:: @ 08151C1D - .incbin "baserom.gba", 0x151C1D, 0x0000004 - -gUnk_08151C21:: @ 08151C21 - .incbin "baserom.gba", 0x151C21, 0x0000004 - -gUnk_08151C25:: @ 08151C25 - .incbin "baserom.gba", 0x151C25, 0x00000F3 - -gUnk_08151D18:: @ 08151D18 - .incbin "baserom.gba", 0x151D18, 0x000000D - -gUnk_08151D25:: @ 08151D25 - .incbin "baserom.gba", 0x151D25, 0x00000FC - -gUnk_08151E21:: @ 08151E21 - .incbin "baserom.gba", 0x151E21, 0x0000005 - -gUnk_08151E26:: @ 08151E26 - .incbin "baserom.gba", 0x151E26, 0x00000FA - -gUnk_08151F20:: @ 08151F20 - .incbin "baserom.gba", 0x151F20, 0x0000003 - -gUnk_08151F23:: @ 08151F23 - .incbin "baserom.gba", 0x151F23, 0x0000002 - -gUnk_08151F25:: @ 08151F25 - .incbin "baserom.gba", 0x151F25, 0x00000FF - -gUnk_08152024:: @ 08152024 - .incbin "baserom.gba", 0x152024, 0x0000003 - -gUnk_08152027:: @ 08152027 - .incbin "baserom.gba", 0x152027, 0x0000001 - -gUnk_08152028:: @ 08152028 - .incbin "baserom.gba", 0x152028, 0x0000007 - -gUnk_0815202F:: @ 0815202F - .incbin "baserom.gba", 0x15202F, 0x0000027 - -gUnk_08152056:: @ 08152056 - .incbin "baserom.gba", 0x152056, 0x00000C3 - -gUnk_08152119:: @ 08152119 - .incbin "baserom.gba", 0x152119, 0x0000001 - -gUnk_0815211A:: @ 0815211A - .incbin "baserom.gba", 0x15211A, 0x0000009 - -gUnk_08152123:: @ 08152123 - .incbin "baserom.gba", 0x152123, 0x0000003 - -gUnk_08152126:: @ 08152126 - .incbin "baserom.gba", 0x152126, 0x0000009 - -gUnk_0815212F:: @ 0815212F - .incbin "baserom.gba", 0x15212F, 0x0000001 - -gUnk_08152130:: @ 08152130 - .incbin "baserom.gba", 0x152130, 0x00000E1 - -gUnk_08152211:: @ 08152211 - .incbin "baserom.gba", 0x152211, 0x0000007 - -gUnk_08152218:: @ 08152218 - .incbin "baserom.gba", 0x152218, 0x0000011 - -gUnk_08152229:: @ 08152229 - .incbin "baserom.gba", 0x152229, 0x0000008 - -gUnk_08152231:: @ 08152231 - .incbin "baserom.gba", 0x152231, 0x00000EF - -gUnk_08152320:: @ 08152320 - .incbin "baserom.gba", 0x152320, 0x000000C - -gUnk_0815232C:: @ 0815232C - .incbin "baserom.gba", 0x15232C, 0x0000005 - -gUnk_08152331:: @ 08152331 - .incbin "baserom.gba", 0x152331, 0x00000CD - -gUnk_081523FE:: @ 081523FE - .incbin "baserom.gba", 0x1523FE, 0x000002B - -gUnk_08152429:: @ 08152429 - .incbin "baserom.gba", 0x152429, 0x00000EE - -gUnk_08152517:: @ 08152517 - .incbin "baserom.gba", 0x152517, 0x0000126 - -gUnk_0815263D:: @ 0815263D - .incbin "baserom.gba", 0x15263D, 0x00000F8 - -gUnk_08152735:: @ 08152735 - .incbin "baserom.gba", 0x152735, 0x000030B - -gUnk_08152A40:: @ 08152A40 - .incbin "baserom.gba", 0x152A40, 0x00000CC - -gUnk_08152B0C:: @ 08152B0C - .incbin "baserom.gba", 0x152B0C, 0x0000027 - -gUnk_08152B33:: @ 08152B33 - .incbin "baserom.gba", 0x152B33, 0x00002E3 - -gUnk_08152E16:: @ 08152E16 - .incbin "baserom.gba", 0x152E16, 0x000012F - -gUnk_08152F45:: @ 08152F45 - .incbin "baserom.gba", 0x152F45, 0x0000A22 - -gUnk_08153967:: @ 08153967 - .incbin "baserom.gba", 0x153967, 0x00001EC - -gUnk_08153B53:: @ 08153B53 - .incbin "baserom.gba", 0x153B53, 0x0000BD3 - -gUnk_08154726:: @ 08154726 - .incbin "baserom.gba", 0x154726, 0x0001E50 - -gUnk_08156576:: @ 08156576 - .incbin "baserom.gba", 0x156576, 0x0000333 - -gUnk_081568A9:: @ 081568A9 - .incbin "baserom.gba", 0x1568A9, 0x00000FE - -gUnk_081569A7:: @ 081569A7 - .incbin "baserom.gba", 0x1569A7, 0x0001BDE - -gUnk_08158585:: @ 08158585 - .incbin "baserom.gba", 0x158585, 0x0002B24 - -gUnk_0815B0A9:: @ 0815B0A9 - .incbin "baserom.gba", 0x15B0A9, 0x0001251 - -gUnk_0815C2FA:: @ 0815C2FA - .incbin "baserom.gba", 0x15C2FA, 0x0002101 - -gUnk_0815E3FB:: @ 0815E3FB - .incbin "baserom.gba", 0x15E3FB, 0x0000CFD - -gUnk_0815F0F8:: @ 0815F0F8 - .incbin "baserom.gba", 0x15F0F8, 0x0000AF5 - -gUnk_0815FBED:: @ 0815FBED - .incbin "baserom.gba", 0x15FBED, 0x0000222 - -gUnk_0815FE0F:: @ 0815FE0F - .incbin "baserom.gba", 0x15FE0F, 0x00001F1 - -gUnk_08160000:: @ 08160000 - .incbin "baserom.gba", 0x160000, 0x0000009 - -gUnk_08160009:: @ 08160009 - .incbin "baserom.gba", 0x160009, 0x00000B8 - -gUnk_081600C1:: @ 081600C1 - .incbin "baserom.gba", 0x1600C1, 0x0000012 - -gUnk_081600D3:: @ 081600D3 - .incbin "baserom.gba", 0x1600D3, 0x000000C - -gUnk_081600DF:: @ 081600DF - .incbin "baserom.gba", 0x1600DF, 0x0000005 - -gUnk_081600E4:: @ 081600E4 - .incbin "baserom.gba", 0x1600E4, 0x0000224 - -gUnk_08160308:: @ 08160308 - .incbin "baserom.gba", 0x160308, 0x000009D - -gUnk_081603A5:: @ 081603A5 - .incbin "baserom.gba", 0x1603A5, 0x000006A - -gUnk_0816040F:: @ 0816040F - .incbin "baserom.gba", 0x16040F, 0x00004DD - -gUnk_081608EC:: @ 081608EC - .incbin "baserom.gba", 0x1608EC, 0x0000118 - -gUnk_08160A04:: @ 08160A04 - .incbin "baserom.gba", 0x160A04, 0x0000104 - -gUnk_08160B08:: @ 08160B08 - .incbin "baserom.gba", 0x160B08, 0x00001EB - -gUnk_08160CF3:: @ 08160CF3 - .incbin "baserom.gba", 0x160CF3, 0x000020E - -gUnk_08160F01:: @ 08160F01 - .incbin "baserom.gba", 0x160F01, 0x0000002 - -gUnk_08160F03:: @ 08160F03 - .incbin "baserom.gba", 0x160F03, 0x0000006 - -gUnk_08160F09:: @ 08160F09 - .incbin "baserom.gba", 0x160F09, 0x0000105 - -gUnk_0816100E:: @ 0816100E - .incbin "baserom.gba", 0x16100E, 0x00000EF - -gUnk_081610FD:: @ 081610FD - .incbin "baserom.gba", 0x1610FD, 0x0000007 - -gUnk_08161104:: @ 08161104 - .incbin "baserom.gba", 0x161104, 0x00000F8 - -gUnk_081611FC:: @ 081611FC - .incbin "baserom.gba", 0x1611FC, 0x000002D - -gUnk_08161229:: @ 08161229 - .incbin "baserom.gba", 0x161229, 0x000002B - -gUnk_08161254:: @ 08161254 - .incbin "baserom.gba", 0x161254, 0x0000097 - -gUnk_081612EB:: @ 081612EB - .incbin "baserom.gba", 0x1612EB, 0x000000F - -gUnk_081612FA:: @ 081612FA - .incbin "baserom.gba", 0x1612FA, 0x0000006 - -gUnk_08161300:: @ 08161300 - .incbin "baserom.gba", 0x161300, 0x00000E2 - -gUnk_081613E2:: @ 081613E2 - .incbin "baserom.gba", 0x1613E2, 0x0000041 - -gUnk_08161423:: @ 08161423 - .incbin "baserom.gba", 0x161423, 0x00002E8 - -gUnk_0816170B:: @ 0816170B - .incbin "baserom.gba", 0x16170B, 0x00000FD - -gUnk_08161808:: @ 08161808 - .incbin "baserom.gba", 0x161808, 0x0000006 - -gUnk_0816180E:: @ 0816180E - .incbin "baserom.gba", 0x16180E, 0x000000B - -gUnk_08161819:: @ 08161819 - .incbin "baserom.gba", 0x161819, 0x00000F2 - -gUnk_0816190B:: @ 0816190B - .incbin "baserom.gba", 0x16190B, 0x0000007 - -gUnk_08161912:: @ 08161912 - .incbin "baserom.gba", 0x161912, 0x0000102 - -gUnk_08161A14:: @ 08161A14 - .incbin "baserom.gba", 0x161A14, 0x0000002 - -gUnk_08161A16:: @ 08161A16 - .incbin "baserom.gba", 0x161A16, 0x000000A - -gUnk_08161A20:: @ 08161A20 - .incbin "baserom.gba", 0x161A20, 0x00000EC - -gUnk_08161B0C:: @ 08161B0C - .incbin "baserom.gba", 0x161B0C, 0x0000003 - -gUnk_08161B0F:: @ 08161B0F - .incbin "baserom.gba", 0x161B0F, 0x0000009 - -gUnk_08161B18:: @ 08161B18 - .incbin "baserom.gba", 0x161B18, 0x0000005 - -gUnk_08161B1D:: @ 08161B1D - .incbin "baserom.gba", 0x161B1D, 0x0000007 - -gUnk_08161B24:: @ 08161B24 - .incbin "baserom.gba", 0x161B24, 0x00000AC - -gUnk_08161BD0:: @ 08161BD0 - .incbin "baserom.gba", 0x161BD0, 0x000004F - -gUnk_08161C1F:: @ 08161C1F - .incbin "baserom.gba", 0x161C1F, 0x00000FB - -gUnk_08161D1A:: @ 08161D1A - .incbin "baserom.gba", 0x161D1A, 0x000001B - -gUnk_08161D35:: @ 08161D35 - .incbin "baserom.gba", 0x161D35, 0x00000CB - -gUnk_08161E00:: @ 08161E00 - .incbin "baserom.gba", 0x161E00, 0x0000017 - -gUnk_08161E17:: @ 08161E17 - .incbin "baserom.gba", 0x161E17, 0x00000D9 - -gUnk_08161EF0:: @ 08161EF0 - .incbin "baserom.gba", 0x161EF0, 0x000001D - -gUnk_08161F0D:: @ 08161F0D - .incbin "baserom.gba", 0x161F0D, 0x0000011 - -gUnk_08161F1E:: @ 08161F1E - .incbin "baserom.gba", 0x161F1E, 0x0000004 - -gUnk_08161F22:: @ 08161F22 - .incbin "baserom.gba", 0x161F22, 0x0000006 - -gUnk_08161F28:: @ 08161F28 - .incbin "baserom.gba", 0x161F28, 0x00000F5 - -gUnk_0816201D:: @ 0816201D - .incbin "baserom.gba", 0x16201D, 0x0000008 - -gUnk_08162025:: @ 08162025 - .incbin "baserom.gba", 0x162025, 0x0000005 - -gUnk_0816202A:: @ 0816202A - .incbin "baserom.gba", 0x16202A, 0x0000100 - -gUnk_0816212A:: @ 0816212A - .incbin "baserom.gba", 0x16212A, 0x00000ED - -gUnk_08162217:: @ 08162217 - .incbin "baserom.gba", 0x162217, 0x0000017 - -gUnk_0816222E:: @ 0816222E - .incbin "baserom.gba", 0x16222E, 0x00000F5 - -gUnk_08162323:: @ 08162323 - .incbin "baserom.gba", 0x162323, 0x0000001 - -gUnk_08162324:: @ 08162324 - .incbin "baserom.gba", 0x162324, 0x0000005 - -gUnk_08162329:: @ 08162329 - .incbin "baserom.gba", 0x162329, 0x0000004 - -gUnk_0816232D:: @ 0816232D - .incbin "baserom.gba", 0x16232D, 0x0000002 - -gUnk_0816232F:: @ 0816232F - .incbin "baserom.gba", 0x16232F, 0x0000002 - -gUnk_08162331:: @ 08162331 - .incbin "baserom.gba", 0x162331, 0x00001E9 - -gUnk_0816251A:: @ 0816251A - .incbin "baserom.gba", 0x16251A, 0x0000014 - -gUnk_0816252E:: @ 0816252E - .incbin "baserom.gba", 0x16252E, 0x0000106 - -gUnk_08162634:: @ 08162634 - .incbin "baserom.gba", 0x162634, 0x0000408 - -gUnk_08162A3C:: @ 08162A3C - .incbin "baserom.gba", 0x162A3C, 0x00000FD - -gUnk_08162B39:: @ 08162B39 - .incbin "baserom.gba", 0x162B39, 0x0000309 - -gUnk_08162E42:: @ 08162E42 - .incbin "baserom.gba", 0x162E42, 0x0000200 - -gUnk_08163042:: @ 08163042 - .incbin "baserom.gba", 0x163042, 0x00000EF - -gUnk_08163131:: @ 08163131 - .incbin "baserom.gba", 0x163131, 0x0000013 - -gUnk_08163144:: @ 08163144 - .incbin "baserom.gba", 0x163144, 0x00010BD - -gUnk_08164201:: @ 08164201 - .incbin "baserom.gba", 0x164201, 0x0001315 - -gUnk_08165516:: @ 08165516 - .incbin "baserom.gba", 0x165516, 0x000015F - -gUnk_08165675:: @ 08165675 - .incbin "baserom.gba", 0x165675, 0x0000BA8 - -gUnk_0816621D:: @ 0816621D - .incbin "baserom.gba", 0x16621D, 0x0001014 - -gUnk_08167231:: @ 08167231 - .incbin "baserom.gba", 0x167231, 0x0003DFE - -gUnk_0816B02F:: @ 0816B02F - .incbin "baserom.gba", 0x16B02F, 0x00037D2 - -gUnk_0816E801:: @ 0816E801 - .incbin "baserom.gba", 0x16E801, 0x0000523 - -gUnk_0816ED24:: @ 0816ED24 - .incbin "baserom.gba", 0x16ED24, 0x00002A1 - -gUnk_0816EFC5:: @ 0816EFC5 - .incbin "baserom.gba", 0x16EFC5, 0x0000232 - -gUnk_0816F1F7:: @ 0816F1F7 - .incbin "baserom.gba", 0x16F1F7, 0x00005DD - -gUnk_0816F7D4:: @ 0816F7D4 - .incbin "baserom.gba", 0x16F7D4, 0x000001C - -gUnk_0816F7F0:: @ 0816F7F0 - .incbin "baserom.gba", 0x16F7F0, 0x0000603 - -gUnk_0816FDF3:: @ 0816FDF3 - .incbin "baserom.gba", 0x16FDF3, 0x0000105 - -gUnk_0816FEF8:: @ 0816FEF8 - .incbin "baserom.gba", 0x16FEF8, 0x0000108 - -gUnk_08170000:: @ 08170000 - .incbin "baserom.gba", 0x170000, 0x000000D - -gUnk_0817000D:: @ 0817000D - .incbin "baserom.gba", 0x17000D, 0x0000005 - -gUnk_08170012:: @ 08170012 - .incbin "baserom.gba", 0x170012, 0x0000087 - -gUnk_08170099:: @ 08170099 - .incbin "baserom.gba", 0x170099, 0x0000051 - -gUnk_081700EA:: @ 081700EA - .incbin "baserom.gba", 0x1700EA, 0x000001D - -gUnk_08170107:: @ 08170107 - .incbin "baserom.gba", 0x170107, 0x0000039 - -gUnk_08170140:: @ 08170140 - .incbin "baserom.gba", 0x170140, 0x00001BA - -gUnk_081702FA:: @ 081702FA - .incbin "baserom.gba", 0x1702FA, 0x00000F7 - -gUnk_081703F1:: @ 081703F1 - .incbin "baserom.gba", 0x1703F1, 0x0000010 - -gUnk_08170401:: @ 08170401 - .incbin "baserom.gba", 0x170401, 0x000000F - -gUnk_08170410:: @ 08170410 - .incbin "baserom.gba", 0x170410, 0x000000D - -gUnk_0817041D:: @ 0817041D - .incbin "baserom.gba", 0x17041D, 0x0000303 - -gUnk_08170720:: @ 08170720 - .incbin "baserom.gba", 0x170720, 0x0000040 - -gUnk_08170760:: @ 08170760 - .incbin "baserom.gba", 0x170760, 0x0000045 - -gUnk_081707A5:: @ 081707A5 - .incbin "baserom.gba", 0x1707A5, 0x0000061 - -gUnk_08170806:: @ 08170806 - .incbin "baserom.gba", 0x170806, 0x0000108 - -gUnk_0817090E:: @ 0817090E - .incbin "baserom.gba", 0x17090E, 0x00001F1 - -gUnk_08170AFF:: @ 08170AFF - .incbin "baserom.gba", 0x170AFF, 0x0000106 - -gUnk_08170C05:: @ 08170C05 - .incbin "baserom.gba", 0x170C05, 0x00003F0 - -gUnk_08170FF5:: @ 08170FF5 - .incbin "baserom.gba", 0x170FF5, 0x0000012 - -gUnk_08171007:: @ 08171007 - .incbin "baserom.gba", 0x171007, 0x0000045 - -gUnk_0817104C:: @ 0817104C - .incbin "baserom.gba", 0x17104C, 0x000004E - -gUnk_0817109A:: @ 0817109A - .incbin "baserom.gba", 0x17109A, 0x0000068 - -gUnk_08171102:: @ 08171102 - .incbin "baserom.gba", 0x171102, 0x00000E9 - -gUnk_081711EB:: @ 081711EB - .incbin "baserom.gba", 0x1711EB, 0x000001B - -gUnk_08171206:: @ 08171206 - .incbin "baserom.gba", 0x171206, 0x000001B - -gUnk_08171221:: @ 08171221 - .incbin "baserom.gba", 0x171221, 0x00000E4 - -gUnk_08171305:: @ 08171305 - .incbin "baserom.gba", 0x171305, 0x0000149 - -gUnk_0817144E:: @ 0817144E - .incbin "baserom.gba", 0x17144E, 0x00000B3 - -gUnk_08171501:: @ 08171501 - .incbin "baserom.gba", 0x171501, 0x000000E - -gUnk_0817150F:: @ 0817150F - .incbin "baserom.gba", 0x17150F, 0x00000FE - -gUnk_0817160D:: @ 0817160D - .incbin "baserom.gba", 0x17160D, 0x0000014 - -gUnk_08171621:: @ 08171621 - .incbin "baserom.gba", 0x171621, 0x00003F5 - -gUnk_08171A16:: @ 08171A16 - .incbin "baserom.gba", 0x171A16, 0x00000FB - -gUnk_08171B11:: @ 08171B11 - .incbin "baserom.gba", 0x171B11, 0x000010A - -gUnk_08171C1B:: @ 08171C1B - .incbin "baserom.gba", 0x171C1B, 0x000015B - -gUnk_08171D76:: @ 08171D76 - .incbin "baserom.gba", 0x171D76, 0x00000AF - -gUnk_08171E25:: @ 08171E25 - .incbin "baserom.gba", 0x171E25, 0x00000DF - -gUnk_08171F04:: @ 08171F04 - .incbin "baserom.gba", 0x171F04, 0x000001A - -gUnk_08171F1E:: @ 08171F1E - .incbin "baserom.gba", 0x171F1E, 0x0000014 - -gUnk_08171F32:: @ 08171F32 - .incbin "baserom.gba", 0x171F32, 0x00000E5 - -gUnk_08172017:: @ 08172017 - .incbin "baserom.gba", 0x172017, 0x0000009 - -gUnk_08172020:: @ 08172020 - .incbin "baserom.gba", 0x172020, 0x0000001 - -gUnk_08172021:: @ 08172021 - .incbin "baserom.gba", 0x172021, 0x0000001 - -gUnk_08172022:: @ 08172022 - .incbin "baserom.gba", 0x172022, 0x000000B - -gUnk_0817202D:: @ 0817202D - .incbin "baserom.gba", 0x17202D, 0x0000032 - -gUnk_0817205F:: @ 0817205F - .incbin "baserom.gba", 0x17205F, 0x00000BB - -gUnk_0817211A:: @ 0817211A - .incbin "baserom.gba", 0x17211A, 0x000000A - -gUnk_08172124:: @ 08172124 - .incbin "baserom.gba", 0x172124, 0x0000001 - -gUnk_08172125:: @ 08172125 - .incbin "baserom.gba", 0x172125, 0x0000004 - -gUnk_08172129:: @ 08172129 - .incbin "baserom.gba", 0x172129, 0x000000A - -gUnk_08172133:: @ 08172133 - .incbin "baserom.gba", 0x172133, 0x00000F2 - -gUnk_08172225:: @ 08172225 - .incbin "baserom.gba", 0x172225, 0x0000001 - -gUnk_08172226:: @ 08172226 - .incbin "baserom.gba", 0x172226, 0x0000003 - -gUnk_08172229:: @ 08172229 - .incbin "baserom.gba", 0x172229, 0x0000001 - -gUnk_0817222A:: @ 0817222A - .incbin "baserom.gba", 0x17222A, 0x0000017 - -gUnk_08172241:: @ 08172241 - .incbin "baserom.gba", 0x172241, 0x00000DF - -gUnk_08172320:: @ 08172320 - .incbin "baserom.gba", 0x172320, 0x0000008 - -gUnk_08172328:: @ 08172328 - .incbin "baserom.gba", 0x172328, 0x0000206 - -gUnk_0817252E:: @ 0817252E - .incbin "baserom.gba", 0x17252E, 0x00000FE - -gUnk_0817262C:: @ 0817262C - .incbin "baserom.gba", 0x17262C, 0x0000009 - -gUnk_08172635:: @ 08172635 - .incbin "baserom.gba", 0x172635, 0x00000F1 - -gUnk_08172726:: @ 08172726 - .incbin "baserom.gba", 0x172726, 0x0000012 - -gUnk_08172738:: @ 08172738 - .incbin "baserom.gba", 0x172738, 0x00000E7 - -gUnk_0817281F:: @ 0817281F - .incbin "baserom.gba", 0x17281F, 0x0000016 - -gUnk_08172835:: @ 08172835 - .incbin "baserom.gba", 0x172835, 0x0000006 - -gUnk_0817283B:: @ 0817283B - .incbin "baserom.gba", 0x17283B, 0x00000E2 - -gUnk_0817291D:: @ 0817291D - .incbin "baserom.gba", 0x17291D, 0x000001C - -gUnk_08172939:: @ 08172939 - .incbin "baserom.gba", 0x172939, 0x00000EF - -gUnk_08172A28:: @ 08172A28 - .incbin "baserom.gba", 0x172A28, 0x000010F - -gUnk_08172B37:: @ 08172B37 - .incbin "baserom.gba", 0x172B37, 0x0000003 - -gUnk_08172B3A:: @ 08172B3A - .incbin "baserom.gba", 0x172B3A, 0x000051B - -gUnk_08173055:: @ 08173055 - .incbin "baserom.gba", 0x173055, 0x00003E9 - -gUnk_0817343E:: @ 0817343E - .incbin "baserom.gba", 0x17343E, 0x0000327 - -gUnk_08173765:: @ 08173765 - .incbin "baserom.gba", 0x173765, 0x00002C3 - -gUnk_08173A28:: @ 08173A28 - .incbin "baserom.gba", 0x173A28, 0x0000521 - -gUnk_08173F49:: @ 08173F49 - .incbin "baserom.gba", 0x173F49, 0x0000500 - -gUnk_08174449:: @ 08174449 - .incbin "baserom.gba", 0x174449, 0x0000203 - -gUnk_0817464C:: @ 0817464C - .incbin "baserom.gba", 0x17464C, 0x000071E - -gUnk_08174D6A:: @ 08174D6A - .incbin "baserom.gba", 0x174D6A, 0x00005AF - -gUnk_08175319:: @ 08175319 - .incbin "baserom.gba", 0x175319, 0x0002DF4 - -gUnk_0817810D:: @ 0817810D - .incbin "baserom.gba", 0x17810D, 0x000077B - -gUnk_08178888:: @ 08178888 - .incbin "baserom.gba", 0x178888, 0x000262F - -gUnk_0817AEB7:: @ 0817AEB7 - .incbin "baserom.gba", 0x17AEB7, 0x0003060 - -gUnk_0817DF17:: @ 0817DF17 - .incbin "baserom.gba", 0x17DF17, 0x0000028 - -gUnk_0817DF3F:: @ 0817DF3F - .incbin "baserom.gba", 0x17DF3F, 0x00007AE - -gUnk_0817E6ED:: @ 0817E6ED - .incbin "baserom.gba", 0x17E6ED, 0x00001C0 - -gUnk_0817E8AD:: @ 0817E8AD - .incbin "baserom.gba", 0x17E8AD, 0x0000B4D - -gUnk_0817F3FA:: @ 0817F3FA - .incbin "baserom.gba", 0x17F3FA, 0x0000804 - -gUnk_0817FBFE:: @ 0817FBFE - .incbin "baserom.gba", 0x17FBFE, 0x00000CA - -gUnk_0817FCC8:: @ 0817FCC8 - .incbin "baserom.gba", 0x17FCC8, 0x000024B - -gUnk_0817FF13:: @ 0817FF13 - .incbin "baserom.gba", 0x17FF13, 0x0000002 - -gUnk_0817FF15:: @ 0817FF15 - .incbin "baserom.gba", 0x17FF15, 0x00000EB - -gUnk_08180000:: @ 08180000 - .incbin "baserom.gba", 0x180000, 0x0000013 - -gUnk_08180013:: @ 08180013 - .incbin "baserom.gba", 0x180013, 0x000009D - -gUnk_081800B0:: @ 081800B0 - .incbin "baserom.gba", 0x1800B0, 0x0000040 - -gUnk_081800F0:: @ 081800F0 - .incbin "baserom.gba", 0x1800F0, 0x0000009 - -gUnk_081800F9:: @ 081800F9 - .incbin "baserom.gba", 0x1800F9, 0x0000007 - -gUnk_08180100:: @ 08180100 - .incbin "baserom.gba", 0x180100, 0x0000040 - -gUnk_08180140:: @ 08180140 - .incbin "baserom.gba", 0x180140, 0x00000C0 - -gUnk_08180200:: @ 08180200 - .incbin "baserom.gba", 0x180200, 0x000000F - -gUnk_0818020F:: @ 0818020F - .incbin "baserom.gba", 0x18020F, 0x0000097 - -gUnk_081802A6:: @ 081802A6 - .incbin "baserom.gba", 0x1802A6, 0x000009A - -gUnk_08180340:: @ 08180340 - .incbin "baserom.gba", 0x180340, 0x00002A1 - -gUnk_081805E1:: @ 081805E1 - .incbin "baserom.gba", 0x1805E1, 0x000010F - -gUnk_081806F0:: @ 081806F0 - .incbin "baserom.gba", 0x1806F0, 0x00000E0 - -gUnk_081807D0:: @ 081807D0 - .incbin "baserom.gba", 0x1807D0, 0x0000030 - -gUnk_08180800:: @ 08180800 - .incbin "baserom.gba", 0x180800, 0x0000003 - -gUnk_08180803:: @ 08180803 - .incbin "baserom.gba", 0x180803, 0x0000005 - -gUnk_08180808:: @ 08180808 - .incbin "baserom.gba", 0x180808, 0x00002F8 - -gUnk_08180B00:: @ 08180B00 - .incbin "baserom.gba", 0x180B00, 0x0000010 - -gUnk_08180B10:: @ 08180B10 - .incbin "baserom.gba", 0x180B10, 0x00000DF - -gUnk_08180BEF:: @ 08180BEF - .incbin "baserom.gba", 0x180BEF, 0x0000227 - -gUnk_08180E16:: @ 08180E16 - .incbin "baserom.gba", 0x180E16, 0x00001C4 - -gUnk_08180FDA:: @ 08180FDA - .incbin "baserom.gba", 0x180FDA, 0x0000017 - -gUnk_08180FF1:: @ 08180FF1 - .incbin "baserom.gba", 0x180FF1, 0x0000118 - -gUnk_08181109:: @ 08181109 - .incbin "baserom.gba", 0x181109, 0x00000FB - -gUnk_08181204:: @ 08181204 - .incbin "baserom.gba", 0x181204, 0x0000118 - -gUnk_0818131C:: @ 0818131C - .incbin "baserom.gba", 0x18131C, 0x00000FE - -gUnk_0818141A:: @ 0818141A - .incbin "baserom.gba", 0x18141A, 0x00000E1 - -gUnk_081814FB:: @ 081814FB - .incbin "baserom.gba", 0x1814FB, 0x000010A - -gUnk_08181605:: @ 08181605 - .incbin "baserom.gba", 0x181605, 0x0000008 - -gUnk_0818160D:: @ 0818160D - .incbin "baserom.gba", 0x18160D, 0x00000F7 - -gUnk_08181704:: @ 08181704 - .incbin "baserom.gba", 0x181704, 0x0000106 - -gUnk_0818180A:: @ 0818180A - .incbin "baserom.gba", 0x18180A, 0x0000107 - -gUnk_08181911:: @ 08181911 - .incbin "baserom.gba", 0x181911, 0x0000006 - -gUnk_08181917:: @ 08181917 - .incbin "baserom.gba", 0x181917, 0x0000001 - -gUnk_08181918:: @ 08181918 - .incbin "baserom.gba", 0x181918, 0x0000004 - -gUnk_0818191C:: @ 0818191C - .incbin "baserom.gba", 0x18191C, 0x00000B1 - -gUnk_081819CD:: @ 081819CD - .incbin "baserom.gba", 0x1819CD, 0x0000044 - -gUnk_08181A11:: @ 08181A11 - .incbin "baserom.gba", 0x181A11, 0x0000002 - -gUnk_08181A13:: @ 08181A13 - .incbin "baserom.gba", 0x181A13, 0x000000B - -gUnk_08181A1E:: @ 08181A1E - .incbin "baserom.gba", 0x181A1E, 0x00001E2 - -gUnk_08181C00:: @ 08181C00 - .incbin "baserom.gba", 0x181C00, 0x0000014 - -gUnk_08181C14:: @ 08181C14 - .incbin "baserom.gba", 0x181C14, 0x0000111 - -gUnk_08181D25:: @ 08181D25 - .incbin "baserom.gba", 0x181D25, 0x00000F7 - -gUnk_08181E1C:: @ 08181E1C - .incbin "baserom.gba", 0x181E1C, 0x00000FF - -gUnk_08181F1B:: @ 08181F1B - .incbin "baserom.gba", 0x181F1B, 0x00000E5 - -gUnk_08182000:: @ 08182000 - .incbin "baserom.gba", 0x182000, 0x0000019 - -gUnk_08182019:: @ 08182019 - .incbin "baserom.gba", 0x182019, 0x0000003 - -gUnk_0818201C:: @ 0818201C - .incbin "baserom.gba", 0x18201C, 0x0000003 - -gUnk_0818201F:: @ 0818201F - .incbin "baserom.gba", 0x18201F, 0x0000006 - -gUnk_08182025:: @ 08182025 - .incbin "baserom.gba", 0x182025, 0x0000001 - -gUnk_08182026:: @ 08182026 - .incbin "baserom.gba", 0x182026, 0x00000FE - -gUnk_08182124:: @ 08182124 - .incbin "baserom.gba", 0x182124, 0x0000001 - -gUnk_08182125:: @ 08182125 - .incbin "baserom.gba", 0x182125, 0x0000008 - -gUnk_0818212D:: @ 0818212D - .incbin "baserom.gba", 0x18212D, 0x00000F7 - -gUnk_08182224:: @ 08182224 - .incbin "baserom.gba", 0x182224, 0x0000001 - -gUnk_08182225:: @ 08182225 - .incbin "baserom.gba", 0x182225, 0x0000109 - -gUnk_0818232E:: @ 0818232E - .incbin "baserom.gba", 0x18232E, 0x00000DF - -gUnk_0818240D:: @ 0818240D - .incbin "baserom.gba", 0x18240D, 0x000001B - -gUnk_08182428:: @ 08182428 - .incbin "baserom.gba", 0x182428, 0x0000002 - -gUnk_0818242A:: @ 0818242A - .incbin "baserom.gba", 0x18242A, 0x0000104 - -gUnk_0818252E:: @ 0818252E - .incbin "baserom.gba", 0x18252E, 0x0000001 - -gUnk_0818252F:: @ 0818252F - .incbin "baserom.gba", 0x18252F, 0x0000004 - -gUnk_08182533:: @ 08182533 - .incbin "baserom.gba", 0x182533, 0x0000002 - -gUnk_08182535:: @ 08182535 - .incbin "baserom.gba", 0x182535, 0x00000E5 - -gUnk_0818261A:: @ 0818261A - .incbin "baserom.gba", 0x18261A, 0x0000014 - -gUnk_0818262E:: @ 0818262E - .incbin "baserom.gba", 0x18262E, 0x000000E - -gUnk_0818263C:: @ 0818263C - .incbin "baserom.gba", 0x18263C, 0x00000ED - -gUnk_08182729:: @ 08182729 - .incbin "baserom.gba", 0x182729, 0x00000D7 - -gUnk_08182800:: @ 08182800 - .incbin "baserom.gba", 0x182800, 0x0000230 - -gUnk_08182A30:: @ 08182A30 - .incbin "baserom.gba", 0x182A30, 0x000000B - -gUnk_08182A3B:: @ 08182A3B - .incbin "baserom.gba", 0x182A3B, 0x00002F5 - -gUnk_08182D30:: @ 08182D30 - .incbin "baserom.gba", 0x182D30, 0x000000F - -gUnk_08182D3F:: @ 08182D3F - .incbin "baserom.gba", 0x182D3F, 0x00000D7 - -gUnk_08182E16:: @ 08182E16 - .incbin "baserom.gba", 0x182E16, 0x000001E - -gUnk_08182E34:: @ 08182E34 - .incbin "baserom.gba", 0x182E34, 0x0000008 - -gUnk_08182E3C:: @ 08182E3C - .incbin "baserom.gba", 0x182E3C, 0x0000244 - -gUnk_08183080:: @ 08183080 - .incbin "baserom.gba", 0x183080, 0x00000CB - -gUnk_0818314B:: @ 0818314B - .incbin "baserom.gba", 0x18314B, 0x0000AB5 - -gUnk_08183C00:: @ 08183C00 - .incbin "baserom.gba", 0x183C00, 0x0000060 - -gUnk_08183C60:: @ 08183C60 - .incbin "baserom.gba", 0x183C60, 0x0001AA1 - -gUnk_08185701:: @ 08185701 - .incbin "baserom.gba", 0x185701, 0x0002900 - -gUnk_08188001:: @ 08188001 - .incbin "baserom.gba", 0x188001, 0x00049FD - -gUnk_0818C9FE:: @ 0818C9FE - .incbin "baserom.gba", 0x18C9FE, 0x0001221 - -gUnk_0818DC1F:: @ 0818DC1F - .incbin "baserom.gba", 0x18DC1F, 0x00001E2 - -gUnk_0818DE01:: @ 0818DE01 - .incbin "baserom.gba", 0x18DE01, 0x000019B - -gUnk_0818DF9C:: @ 0818DF9C - .incbin "baserom.gba", 0x18DF9C, 0x000115D - -gUnk_0818F0F9:: @ 0818F0F9 - .incbin "baserom.gba", 0x18F0F9, 0x0000140 - -gUnk_0818F239:: @ 0818F239 - .incbin "baserom.gba", 0x18F239, 0x00004DA - -gUnk_0818F713:: @ 0818F713 - .incbin "baserom.gba", 0x18F713, 0x00000EB - -gUnk_0818F7FE:: @ 0818F7FE - .incbin "baserom.gba", 0x18F7FE, 0x0000002 - -gUnk_0818F800:: @ 0818F800 - .incbin "baserom.gba", 0x18F800, 0x00000B8 - -gUnk_0818F8B8:: @ 0818F8B8 - .incbin "baserom.gba", 0x18F8B8, 0x0000424 - -gUnk_0818FCDC:: @ 0818FCDC - .incbin "baserom.gba", 0x18FCDC, 0x0000324 - -gUnk_08190000:: @ 08190000 - .incbin "baserom.gba", 0x190000, 0x0000001 - -gUnk_08190001:: @ 08190001 - .incbin "baserom.gba", 0x190001, 0x000000B - -gUnk_0819000C:: @ 0819000C - .incbin "baserom.gba", 0x19000C, 0x0000109 - -gUnk_08190115:: @ 08190115 - .incbin "baserom.gba", 0x190115, 0x00000D7 - -gUnk_081901EC:: @ 081901EC - .incbin "baserom.gba", 0x1901EC, 0x0000016 - -gUnk_08190202:: @ 08190202 - .incbin "baserom.gba", 0x190202, 0x000012D - -gUnk_0819032F:: @ 0819032F - .incbin "baserom.gba", 0x19032F, 0x00000D1 - -gUnk_08190400:: @ 08190400 - .incbin "baserom.gba", 0x190400, 0x0000080 - -gUnk_08190480:: @ 08190480 - .incbin "baserom.gba", 0x190480, 0x0000080 - -gUnk_08190500:: @ 08190500 - .incbin "baserom.gba", 0x190500, 0x000010D - -gUnk_0819060D:: @ 0819060D - .incbin "baserom.gba", 0x19060D, 0x0000200 - -gUnk_0819080D:: @ 0819080D - .incbin "baserom.gba", 0x19080D, 0x0000104 - -gUnk_08190911:: @ 08190911 - .incbin "baserom.gba", 0x190911, 0x00000DE - -gUnk_081909EF:: @ 081909EF - .incbin "baserom.gba", 0x1909EF, 0x00003F7 - -gUnk_08190DE6:: @ 08190DE6 - .incbin "baserom.gba", 0x190DE6, 0x0000021 - -gUnk_08190E07:: @ 08190E07 - .incbin "baserom.gba", 0x190E07, 0x000000C - -gUnk_08190E13:: @ 08190E13 - .incbin "baserom.gba", 0x190E13, 0x00000CF - -gUnk_08190EE2:: @ 08190EE2 - .incbin "baserom.gba", 0x190EE2, 0x0000034 - -gUnk_08190F16:: @ 08190F16 - .incbin "baserom.gba", 0x190F16, 0x00000E0 - -gUnk_08190FF6:: @ 08190FF6 - .incbin "baserom.gba", 0x190FF6, 0x0000062 - -gUnk_08191058:: @ 08191058 - .incbin "baserom.gba", 0x191058, 0x00000B6 - -gUnk_0819110E:: @ 0819110E - .incbin "baserom.gba", 0x19110E, 0x00000F3 - -gUnk_08191201:: @ 08191201 - .incbin "baserom.gba", 0x191201, 0x0000105 - -gUnk_08191306:: @ 08191306 - .incbin "baserom.gba", 0x191306, 0x000010C - -gUnk_08191412:: @ 08191412 - .incbin "baserom.gba", 0x191412, 0x0000006 - -gUnk_08191418:: @ 08191418 - .incbin "baserom.gba", 0x191418, 0x00000FE - -gUnk_08191516:: @ 08191516 - .incbin "baserom.gba", 0x191516, 0x00001D5 - -gUnk_081916EB:: @ 081916EB - .incbin "baserom.gba", 0x1916EB, 0x0000030 - -gUnk_0819171B:: @ 0819171B - .incbin "baserom.gba", 0x19171B, 0x0000001 - -gUnk_0819171C:: @ 0819171C - .incbin "baserom.gba", 0x19171C, 0x00001F3 - -gUnk_0819190F:: @ 0819190F - .incbin "baserom.gba", 0x19190F, 0x0000306 - -gUnk_08191C15:: @ 08191C15 - .incbin "baserom.gba", 0x191C15, 0x00000FA - -gUnk_08191D0F:: @ 08191D0F - .incbin "baserom.gba", 0x191D0F, 0x000000D - -gUnk_08191D1C:: @ 08191D1C - .incbin "baserom.gba", 0x191D1C, 0x0000001 - -gUnk_08191D1D:: @ 08191D1D - .incbin "baserom.gba", 0x191D1D, 0x00000FA - -gUnk_08191E17:: @ 08191E17 - .incbin "baserom.gba", 0x191E17, 0x00000F9 - -gUnk_08191F10:: @ 08191F10 - .incbin "baserom.gba", 0x191F10, 0x0000103 - -gUnk_08192013:: @ 08192013 - .incbin "baserom.gba", 0x192013, 0x000010D - -gUnk_08192120:: @ 08192120 - .incbin "baserom.gba", 0x192120, 0x0000009 - -gUnk_08192129:: @ 08192129 - .incbin "baserom.gba", 0x192129, 0x00000F8 - -gUnk_08192221:: @ 08192221 - .incbin "baserom.gba", 0x192221, 0x0000008 - -gUnk_08192229:: @ 08192229 - .incbin "baserom.gba", 0x192229, 0x000010B - -gUnk_08192334:: @ 08192334 - .incbin "baserom.gba", 0x192334, 0x00000AF - -gUnk_081923E3:: @ 081923E3 - .incbin "baserom.gba", 0x1923E3, 0x000003D - -gUnk_08192420:: @ 08192420 - .incbin "baserom.gba", 0x192420, 0x0000009 - -gUnk_08192429:: @ 08192429 - .incbin "baserom.gba", 0x192429, 0x0000001 - -gUnk_0819242A:: @ 0819242A - .incbin "baserom.gba", 0x19242A, 0x0000001 - -gUnk_0819242B:: @ 0819242B - .incbin "baserom.gba", 0x19242B, 0x00000E0 - -gUnk_0819250B:: @ 0819250B - .incbin "baserom.gba", 0x19250B, 0x0000005 - -gUnk_08192510:: @ 08192510 - .incbin "baserom.gba", 0x192510, 0x0000018 - -gUnk_08192528:: @ 08192528 - .incbin "baserom.gba", 0x192528, 0x0000012 - -gUnk_0819253A:: @ 0819253A - .incbin "baserom.gba", 0x19253A, 0x00000E9 - -gUnk_08192623:: @ 08192623 - .incbin "baserom.gba", 0x192623, 0x000000B - -gUnk_0819262E:: @ 0819262E - .incbin "baserom.gba", 0x19262E, 0x0000001 - -gUnk_0819262F:: @ 0819262F - .incbin "baserom.gba", 0x19262F, 0x0000204 - -gUnk_08192833:: @ 08192833 - .incbin "baserom.gba", 0x192833, 0x00000F8 - -gUnk_0819292B:: @ 0819292B - .incbin "baserom.gba", 0x19292B, 0x000000D - -gUnk_08192938:: @ 08192938 - .incbin "baserom.gba", 0x192938, 0x0000106 - -gUnk_08192A3E:: @ 08192A3E - .incbin "baserom.gba", 0x192A3E, 0x00000E1 - -gUnk_08192B1F:: @ 08192B1F - .incbin "baserom.gba", 0x192B1F, 0x000021C - -gUnk_08192D3B:: @ 08192D3B - .incbin "baserom.gba", 0x192D3B, 0x0000008 - -gUnk_08192D43:: @ 08192D43 - .incbin "baserom.gba", 0x192D43, 0x00000FC - -gUnk_08192E3F:: @ 08192E3F - .incbin "baserom.gba", 0x192E3F, 0x00000DB - -gUnk_08192F1A:: @ 08192F1A - .incbin "baserom.gba", 0x192F1A, 0x0000031 - -gUnk_08192F4B:: @ 08192F4B - .incbin "baserom.gba", 0x192F4B, 0x00000E3 - -gUnk_0819302E:: @ 0819302E - .incbin "baserom.gba", 0x19302E, 0x000000D - -gUnk_0819303B:: @ 0819303B - .incbin "baserom.gba", 0x19303B, 0x0000114 - -gUnk_0819314F:: @ 0819314F - .incbin "baserom.gba", 0x19314F, 0x00000F3 - -gUnk_08193242:: @ 08193242 - .incbin "baserom.gba", 0x193242, 0x00005E0 - -gUnk_08193822:: @ 08193822 - .incbin "baserom.gba", 0x193822, 0x0000125 - -gUnk_08193947:: @ 08193947 - .incbin "baserom.gba", 0x193947, 0x0000598 - -gUnk_08193EDF:: @ 08193EDF - .incbin "baserom.gba", 0x193EDF, 0x0000153 - -gUnk_08194032:: @ 08194032 - .incbin "baserom.gba", 0x194032, 0x0000D0F - -gUnk_08194D41:: @ 08194D41 - .incbin "baserom.gba", 0x194D41, 0x0003720 - -gUnk_08198461:: @ 08198461 - .incbin "baserom.gba", 0x198461, 0x00031B2 - -gUnk_0819B613:: @ 0819B613 - .incbin "baserom.gba", 0x19B613, 0x00004ED - -gUnk_0819BB00:: @ 0819BB00 - .incbin "baserom.gba", 0x19BB00, 0x0001C11 - -gUnk_0819D711:: @ 0819D711 - .incbin "baserom.gba", 0x19D711, 0x00011DA - -gUnk_0819E8EB:: @ 0819E8EB - .incbin "baserom.gba", 0x19E8EB, 0x0000CE4 - -gUnk_0819F5CF:: @ 0819F5CF - .incbin "baserom.gba", 0x19F5CF, 0x0000035 - -gUnk_0819F604:: @ 0819F604 - .incbin "baserom.gba", 0x19F604, 0x00000ED - -gUnk_0819F6F1:: @ 0819F6F1 - .incbin "baserom.gba", 0x19F6F1, 0x0000610 - -gUnk_0819FD01:: @ 0819FD01 - .incbin "baserom.gba", 0x19FD01, 0x0000116 - -gUnk_0819FE17:: @ 0819FE17 - .incbin "baserom.gba", 0x19FE17, 0x00001E9 - -gUnk_081A0000:: @ 081A0000 - .incbin "baserom.gba", 0x1A0000, 0x0000040 - -gUnk_081A0040:: @ 081A0040 - .incbin "baserom.gba", 0x1A0040, 0x0000061 - -gUnk_081A00A1:: @ 081A00A1 - .incbin "baserom.gba", 0x1A00A1, 0x000003E - -gUnk_081A00DF:: @ 081A00DF - .incbin "baserom.gba", 0x1A00DF, 0x0000021 - -gUnk_081A0100:: @ 081A0100 - .incbin "baserom.gba", 0x1A0100, 0x00001ED - -gUnk_081A02ED:: @ 081A02ED - .incbin "baserom.gba", 0x1A02ED, 0x000008B - -gUnk_081A0378:: @ 081A0378 - .incbin "baserom.gba", 0x1A0378, 0x00000A1 - -gUnk_081A0419:: @ 081A0419 - .incbin "baserom.gba", 0x1A0419, 0x0000040 - -gUnk_081A0459:: @ 081A0459 - .incbin "baserom.gba", 0x1A0459, 0x0000096 - -gUnk_081A04EF:: @ 081A04EF - .incbin "baserom.gba", 0x1A04EF, 0x000031A - -gUnk_081A0809:: @ 081A0809 - .incbin "baserom.gba", 0x1A0809, 0x0000010 - -gUnk_081A0819:: @ 081A0819 - .incbin "baserom.gba", 0x1A0819, 0x00003EF - -gUnk_081A0C08:: @ 081A0C08 - .incbin "baserom.gba", 0x1A0C08, 0x000010B - -gUnk_081A0D13:: @ 081A0D13 - .incbin "baserom.gba", 0x1A0D13, 0x00003D2 - -gUnk_081A10E5:: @ 081A10E5 - .incbin "baserom.gba", 0x1A10E5, 0x000011D - -gUnk_081A1202:: @ 081A1202 - .incbin "baserom.gba", 0x1A1202, 0x0000002 - -gUnk_081A1204:: @ 081A1204 - .incbin "baserom.gba", 0x1A1204, 0x000000A - -gUnk_081A120E:: @ 081A120E - .incbin "baserom.gba", 0x1A120E, 0x000020D - -gUnk_081A141B:: @ 081A141B - .incbin "baserom.gba", 0x1A141B, 0x000003B - -gUnk_081A1456:: @ 081A1456 - .incbin "baserom.gba", 0x1A1456, 0x00001B8 - -gUnk_081A160E:: @ 081A160E - .incbin "baserom.gba", 0x1A160E, 0x0000208 - -gUnk_081A1816:: @ 081A1816 - .incbin "baserom.gba", 0x1A1816, 0x00000EE - -gUnk_081A1904:: @ 081A1904 - .incbin "baserom.gba", 0x1A1904, 0x00001D4 - -gUnk_081A1AD8:: @ 081A1AD8 - .incbin "baserom.gba", 0x1A1AD8, 0x0000041 - -gUnk_081A1B19:: @ 081A1B19 - .incbin "baserom.gba", 0x1A1B19, 0x00001F5 - -gUnk_081A1D0E:: @ 081A1D0E - .incbin "baserom.gba", 0x1A1D0E, 0x00000F8 - -gUnk_081A1E06:: @ 081A1E06 - .incbin "baserom.gba", 0x1A1E06, 0x000000F - -gUnk_081A1E15:: @ 081A1E15 - .incbin "baserom.gba", 0x1A1E15, 0x00000FE - -gUnk_081A1F13:: @ 081A1F13 - .incbin "baserom.gba", 0x1A1F13, 0x00002F4 - -gUnk_081A2207:: @ 081A2207 - .incbin "baserom.gba", 0x1A2207, 0x000001E - -gUnk_081A2225:: @ 081A2225 - .incbin "baserom.gba", 0x1A2225, 0x00000E8 - -gUnk_081A230D:: @ 081A230D - .incbin "baserom.gba", 0x1A230D, 0x0000001 - -gUnk_081A230E:: @ 081A230E - .incbin "baserom.gba", 0x1A230E, 0x0000011 - -gUnk_081A231F:: @ 081A231F - .incbin "baserom.gba", 0x1A231F, 0x00001FB - -gUnk_081A251A:: @ 081A251A - .incbin "baserom.gba", 0x1A251A, 0x000000B - -gUnk_081A2525:: @ 081A2525 - .incbin "baserom.gba", 0x1A2525, 0x0000003 - -gUnk_081A2528:: @ 081A2528 - .incbin "baserom.gba", 0x1A2528, 0x000010D - -gUnk_081A2635:: @ 081A2635 - .incbin "baserom.gba", 0x1A2635, 0x00000F7 - -gUnk_081A272C:: @ 081A272C - .incbin "baserom.gba", 0x1A272C, 0x00000DE - -gUnk_081A280A:: @ 081A280A - .incbin "baserom.gba", 0x1A280A, 0x000001B - -gUnk_081A2825:: @ 081A2825 - .incbin "baserom.gba", 0x1A2825, 0x00000F8 - -gUnk_081A291D:: @ 081A291D - .incbin "baserom.gba", 0x1A291D, 0x0000010 - -gUnk_081A292D:: @ 081A292D - .incbin "baserom.gba", 0x1A292D, 0x0000002 - -gUnk_081A292F:: @ 081A292F - .incbin "baserom.gba", 0x1A292F, 0x0000002 - -gUnk_081A2931:: @ 081A2931 - .incbin "baserom.gba", 0x1A2931, 0x00000FA - -gUnk_081A2A2B:: @ 081A2A2B - .incbin "baserom.gba", 0x1A2A2B, 0x0000007 - -gUnk_081A2A32:: @ 081A2A32 - .incbin "baserom.gba", 0x1A2A32, 0x000000A - -gUnk_081A2A3C:: @ 081A2A3C - .incbin "baserom.gba", 0x1A2A3C, 0x00001D8 - -gUnk_081A2C14:: @ 081A2C14 - .incbin "baserom.gba", 0x1A2C14, 0x000052D - -gUnk_081A3141:: @ 081A3141 - .incbin "baserom.gba", 0x1A3141, 0x0000007 - -gUnk_081A3148:: @ 081A3148 - .incbin "baserom.gba", 0x1A3148, 0x0000002 - -gUnk_081A314A:: @ 081A314A - .incbin "baserom.gba", 0x1A314A, 0x00005FF - -gUnk_081A3749:: @ 081A3749 - .incbin "baserom.gba", 0x1A3749, 0x00000BA - -gUnk_081A3803:: @ 081A3803 - .incbin "baserom.gba", 0x1A3803, 0x000012A - -gUnk_081A392D:: @ 081A392D - .incbin "baserom.gba", 0x1A392D, 0x00007D7 - -gUnk_081A4104:: @ 081A4104 - .incbin "baserom.gba", 0x1A4104, 0x0000D46 - -gUnk_081A4E4A:: @ 081A4E4A - .incbin "baserom.gba", 0x1A4E4A, 0x0009FA9 - -gUnk_081AEDF3:: @ 081AEDF3 - .incbin "baserom.gba", 0x1AEDF3, 0x00000F5 - -gUnk_081AEEE8:: @ 081AEEE8 - .incbin "baserom.gba", 0x1AEEE8, 0x000022B - -gUnk_081AF113:: @ 081AF113 - .incbin "baserom.gba", 0x1AF113, 0x00001F4 - -gUnk_081AF307:: @ 081AF307 - .incbin "baserom.gba", 0x1AF307, 0x00008DE - -gUnk_081AFBE5:: @ 081AFBE5 - .incbin "baserom.gba", 0x1AFBE5, 0x0000319 - -gUnk_081AFEFE:: @ 081AFEFE - .incbin "baserom.gba", 0x1AFEFE, 0x00000DF - -gUnk_081AFFDD:: @ 081AFFDD - .incbin "baserom.gba", 0x1AFFDD, 0x000002B - -gUnk_081B0008:: @ 081B0008 - .incbin "baserom.gba", 0x1B0008, 0x00000E2 - -gUnk_081B00EA:: @ 081B00EA - .incbin "baserom.gba", 0x1B00EA, 0x0000004 - -gUnk_081B00EE:: @ 081B00EE - .incbin "baserom.gba", 0x1B00EE, 0x00000FB - -gUnk_081B01E9:: @ 081B01E9 - .incbin "baserom.gba", 0x1B01E9, 0x0000270 - -gUnk_081B0459:: @ 081B0459 - .incbin "baserom.gba", 0x1B0459, 0x00000A7 - -gUnk_081B0500:: @ 081B0500 - .incbin "baserom.gba", 0x1B0500, 0x0000103 - -gUnk_081B0603:: @ 081B0603 - .incbin "baserom.gba", 0x1B0603, 0x0000207 - -gUnk_081B080A:: @ 081B080A - .incbin "baserom.gba", 0x1B080A, 0x00002DE - -gUnk_081B0AE8:: @ 081B0AE8 - .incbin "baserom.gba", 0x1B0AE8, 0x0000133 - -gUnk_081B0C1B:: @ 081B0C1B - .incbin "baserom.gba", 0x1B0C1B, 0x00003D3 - -gUnk_081B0FEE:: @ 081B0FEE - .incbin "baserom.gba", 0x1B0FEE, 0x000032A - -gUnk_081B1318:: @ 081B1318 - .incbin "baserom.gba", 0x1B1318, 0x00000B4 - -gUnk_081B13CC:: @ 081B13CC - .incbin "baserom.gba", 0x1B13CC, 0x0000022 - -gUnk_081B13EE:: @ 081B13EE - .incbin "baserom.gba", 0x1B13EE, 0x000002E - -gUnk_081B141C:: @ 081B141C - .incbin "baserom.gba", 0x1B141C, 0x00000EC - -gUnk_081B1508:: @ 081B1508 - .incbin "baserom.gba", 0x1B1508, 0x000030D - -gUnk_081B1815:: @ 081B1815 - .incbin "baserom.gba", 0x1B1815, 0x00001F2 - -gUnk_081B1A07:: @ 081B1A07 - .incbin "baserom.gba", 0x1B1A07, 0x00001F9 - -gUnk_081B1C00:: @ 081B1C00 - .incbin "baserom.gba", 0x1B1C00, 0x0000005 - -gUnk_081B1C05:: @ 081B1C05 - .incbin "baserom.gba", 0x1B1C05, 0x000040C - -gUnk_081B2011:: @ 081B2011 - .incbin "baserom.gba", 0x1B2011, 0x0000012 - -gUnk_081B2023:: @ 081B2023 - .incbin "baserom.gba", 0x1B2023, 0x0000112 - -gUnk_081B2135:: @ 081B2135 - .incbin "baserom.gba", 0x1B2135, 0x00000FA - -gUnk_081B222F:: @ 081B222F - .incbin "baserom.gba", 0x1B222F, 0x00000ED - -gUnk_081B231C:: @ 081B231C - .incbin "baserom.gba", 0x1B231C, 0x0000103 - -gUnk_081B241F:: @ 081B241F - .incbin "baserom.gba", 0x1B241F, 0x0000116 - -gUnk_081B2535:: @ 081B2535 - .incbin "baserom.gba", 0x1B2535, 0x00000EC - -gUnk_081B2621:: @ 081B2621 - .incbin "baserom.gba", 0x1B2621, 0x000000E - -gUnk_081B262F:: @ 081B262F - .incbin "baserom.gba", 0x1B262F, 0x00000F6 - -gUnk_081B2725:: @ 081B2725 - .incbin "baserom.gba", 0x1B2725, 0x0000005 - -gUnk_081B272A:: @ 081B272A - .incbin "baserom.gba", 0x1B272A, 0x00000F8 - -gUnk_081B2822:: @ 081B2822 - .incbin "baserom.gba", 0x1B2822, 0x0000007 - -gUnk_081B2829:: @ 081B2829 - .incbin "baserom.gba", 0x1B2829, 0x0000108 - -gUnk_081B2931:: @ 081B2931 - .incbin "baserom.gba", 0x1B2931, 0x000000A - -gUnk_081B293B:: @ 081B293B - .incbin "baserom.gba", 0x1B293B, 0x00000E9 - -gUnk_081B2A24:: @ 081B2A24 - .incbin "baserom.gba", 0x1B2A24, 0x0000016 - -gUnk_081B2A3A:: @ 081B2A3A - .incbin "baserom.gba", 0x1B2A3A, 0x0000010 - -gUnk_081B2A4A:: @ 081B2A4A - .incbin "baserom.gba", 0x1B2A4A, 0x00006EB - -gUnk_081B3135:: @ 081B3135 - .incbin "baserom.gba", 0x1B3135, 0x0000010 - -gUnk_081B3145:: @ 081B3145 - .incbin "baserom.gba", 0x1B3145, 0x0000207 - -gUnk_081B334C:: @ 081B334C - .incbin "baserom.gba", 0x1B334C, 0x00004FC - -gUnk_081B3848:: @ 081B3848 - .incbin "baserom.gba", 0x1B3848, 0x0001DC7 - -gUnk_081B560F:: @ 081B560F - .incbin "baserom.gba", 0x1B560F, 0x0000D6D - -gUnk_081B637C:: @ 081B637C - .incbin "baserom.gba", 0x1B637C, 0x00048CF - -gUnk_081BAC4B:: @ 081BAC4B - .incbin "baserom.gba", 0x1BAC4B, 0x000078F - -gUnk_081BB3DA:: @ 081BB3DA - .incbin "baserom.gba", 0x1BB3DA, 0x000371E - -gUnk_081BEAF8:: @ 081BEAF8 - .incbin "baserom.gba", 0x1BEAF8, 0x0000316 - -gUnk_081BEE0E:: @ 081BEE0E - .incbin "baserom.gba", 0x1BEE0E, 0x0000DB6 - -gUnk_081BFBC4:: @ 081BFBC4 - .incbin "baserom.gba", 0x1BFBC4, 0x0000457 - -gUnk_081C001B:: @ 081C001B - .incbin "baserom.gba", 0x1C001B, 0x0000100 - -gUnk_081C011B:: @ 081C011B - .incbin "baserom.gba", 0x1C011B, 0x00000E5 - -gUnk_081C0200:: @ 081C0200 - .incbin "baserom.gba", 0x1C0200, 0x000061B - -gUnk_081C081B:: @ 081C081B - .incbin "baserom.gba", 0x1C081B, 0x00002E5 - -gUnk_081C0B00:: @ 081C0B00 - .incbin "baserom.gba", 0x1C0B00, 0x00002FA - -gUnk_081C0DFA:: @ 081C0DFA - .incbin "baserom.gba", 0x1C0DFA, 0x0000339 - -gUnk_081C1133:: @ 081C1133 - .incbin "baserom.gba", 0x1C1133, 0x00000CD - -gUnk_081C1200:: @ 081C1200 - .incbin "baserom.gba", 0x1C1200, 0x0000301 - -gUnk_081C1501:: @ 081C1501 - .incbin "baserom.gba", 0x1C1501, 0x000000A - -gUnk_081C150B:: @ 081C150B - .incbin "baserom.gba", 0x1C150B, 0x00000D3 - -gUnk_081C15DE:: @ 081C15DE - .incbin "baserom.gba", 0x1C15DE, 0x000002E - -gUnk_081C160C:: @ 081C160C - .incbin "baserom.gba", 0x1C160C, 0x0000006 - -gUnk_081C1612:: @ 081C1612 - .incbin "baserom.gba", 0x1C1612, 0x0000026 - -gUnk_081C1638:: @ 081C1638 - .incbin "baserom.gba", 0x1C1638, 0x00000E5 - -gUnk_081C171D:: @ 081C171D - .incbin "baserom.gba", 0x1C171D, 0x00000E5 - -gUnk_081C1802:: @ 081C1802 - .incbin "baserom.gba", 0x1C1802, 0x00001DB - -gUnk_081C19DD:: @ 081C19DD - .incbin "baserom.gba", 0x1C19DD, 0x0000123 - -gUnk_081C1B00:: @ 081C1B00 - .incbin "baserom.gba", 0x1C1B00, 0x0000221 - -gUnk_081C1D21:: @ 081C1D21 - .incbin "baserom.gba", 0x1C1D21, 0x0000006 - -gUnk_081C1D27:: @ 081C1D27 - .incbin "baserom.gba", 0x1C1D27, 0x00000DD - -gUnk_081C1E04:: @ 081C1E04 - .incbin "baserom.gba", 0x1C1E04, 0x0000001 - -gUnk_081C1E05:: @ 081C1E05 - .incbin "baserom.gba", 0x1C1E05, 0x0000112 - -gUnk_081C1F17:: @ 081C1F17 - .incbin "baserom.gba", 0x1C1F17, 0x0000001 - -gUnk_081C1F18:: @ 081C1F18 - .incbin "baserom.gba", 0x1C1F18, 0x000010B - -gUnk_081C2023:: @ 081C2023 - .incbin "baserom.gba", 0x1C2023, 0x000001B - -gUnk_081C203E:: @ 081C203E - .incbin "baserom.gba", 0x1C203E, 0x00000E4 - -gUnk_081C2122:: @ 081C2122 - .incbin "baserom.gba", 0x1C2122, 0x0000005 - -gUnk_081C2127:: @ 081C2127 - .incbin "baserom.gba", 0x1C2127, 0x00000E4 - -gUnk_081C220B:: @ 081C220B - .incbin "baserom.gba", 0x1C220B, 0x0000220 - -gUnk_081C242B:: @ 081C242B - .incbin "baserom.gba", 0x1C242B, 0x00000EE - -gUnk_081C2519:: @ 081C2519 - .incbin "baserom.gba", 0x1C2519, 0x000000F - -gUnk_081C2528:: @ 081C2528 - .incbin "baserom.gba", 0x1C2528, 0x00001FC - -gUnk_081C2724:: @ 081C2724 - .incbin "baserom.gba", 0x1C2724, 0x000000A - -gUnk_081C272E:: @ 081C272E - .incbin "baserom.gba", 0x1C272E, 0x00003FE - -gUnk_081C2B2C:: @ 081C2B2C - .incbin "baserom.gba", 0x1C2B2C, 0x0000006 - -gUnk_081C2B32:: @ 081C2B32 - .incbin "baserom.gba", 0x1C2B32, 0x00000F9 - -gUnk_081C2C2B:: @ 081C2C2B - .incbin "baserom.gba", 0x1C2C2B, 0x0000004 - -gUnk_081C2C2F:: @ 081C2C2F - .incbin "baserom.gba", 0x1C2C2F, 0x0000207 - -gUnk_081C2E36:: @ 081C2E36 - .incbin "baserom.gba", 0x1C2E36, 0x0000108 - -gUnk_081C2F3E:: @ 081C2F3E - .incbin "baserom.gba", 0x1C2F3E, 0x0000001 - -gUnk_081C2F3F:: @ 081C2F3F - .incbin "baserom.gba", 0x1C2F3F, 0x00000E4 - -gUnk_081C3023:: @ 081C3023 - .incbin "baserom.gba", 0x1C3023, 0x0000122 - -gUnk_081C3145:: @ 081C3145 - .incbin "baserom.gba", 0x1C3145, 0x0000102 - -gUnk_081C3247:: @ 081C3247 - .incbin "baserom.gba", 0x1C3247, 0x00000E5 - -gUnk_081C332C:: @ 081C332C - .incbin "baserom.gba", 0x1C332C, 0x000010E - -gUnk_081C343A:: @ 081C343A - .incbin "baserom.gba", 0x1C343A, 0x000010C - -gUnk_081C3546:: @ 081C3546 - .incbin "baserom.gba", 0x1C3546, 0x00004EF - -gUnk_081C3A35:: @ 081C3A35 - .incbin "baserom.gba", 0x1C3A35, 0x00005BF - -gUnk_081C3FF4:: @ 081C3FF4 - .incbin "baserom.gba", 0x1C3FF4, 0x0000162 - -gUnk_081C4156:: @ 081C4156 - .incbin "baserom.gba", 0x1C4156, 0x00002FE - -gUnk_081C4454:: @ 081C4454 - .incbin "baserom.gba", 0x1C4454, 0x0000BB3 - -gUnk_081C5007:: @ 081C5007 - .incbin "baserom.gba", 0x1C5007, 0x0000477 - -gUnk_081C547E:: @ 081C547E - .incbin "baserom.gba", 0x1C547E, 0x00020ED - -gUnk_081C756B:: @ 081C756B - .incbin "baserom.gba", 0x1C756B, 0x000149D - -gUnk_081C8A08:: @ 081C8A08 - .incbin "baserom.gba", 0x1C8A08, 0x000026C - -gUnk_081C8C74:: @ 081C8C74 - .incbin "baserom.gba", 0x1C8C74, 0x000573D - -gUnk_081CE3B1:: @ 081CE3B1 - .incbin "baserom.gba", 0x1CE3B1, 0x000003D - -gUnk_081CE3EE:: @ 081CE3EE - .incbin "baserom.gba", 0x1CE3EE, 0x0000DFE - -gUnk_081CF1EC:: @ 081CF1EC - .incbin "baserom.gba", 0x1CF1EC, 0x00002F9 - -gUnk_081CF4E5:: @ 081CF4E5 - .incbin "baserom.gba", 0x1CF4E5, 0x0000333 - -gUnk_081CF818:: @ 081CF818 - .incbin "baserom.gba", 0x1CF818, 0x0000008 - -gUnk_081CF820:: @ 081CF820 - .incbin "baserom.gba", 0x1CF820, 0x00007B1 - -gUnk_081CFFD1:: @ 081CFFD1 - .incbin "baserom.gba", 0x1CFFD1, 0x000002F - -gUnk_081D0000:: @ 081D0000 - .incbin "baserom.gba", 0x1D0000, 0x0000001 - -gUnk_081D0001:: @ 081D0001 - .incbin "baserom.gba", 0x1D0001, 0x0000006 - -gUnk_081D0007:: @ 081D0007 - .incbin "baserom.gba", 0x1D0007, 0x0000009 - -gUnk_081D0010:: @ 081D0010 - .incbin "baserom.gba", 0x1D0010, 0x000000A - -gUnk_081D001A:: @ 081D001A - .incbin "baserom.gba", 0x1D001A, 0x000001A - -gUnk_081D0034:: @ 081D0034 - .incbin "baserom.gba", 0x1D0034, 0x00000E0 - -gUnk_081D0114:: @ 081D0114 - .incbin "baserom.gba", 0x1D0114, 0x0000174 - -gUnk_081D0288:: @ 081D0288 - .incbin "baserom.gba", 0x1D0288, 0x0000179 - -gUnk_081D0401:: @ 081D0401 - .incbin "baserom.gba", 0x1D0401, 0x0000042 - -gUnk_081D0443:: @ 081D0443 - .incbin "baserom.gba", 0x1D0443, 0x00001BE - -gUnk_081D0601:: @ 081D0601 - .incbin "baserom.gba", 0x1D0601, 0x0000205 - -gUnk_081D0806:: @ 081D0806 - .incbin "baserom.gba", 0x1D0806, 0x0000303 - -gUnk_081D0B09:: @ 081D0B09 - .incbin "baserom.gba", 0x1D0B09, 0x00003FF - -gUnk_081D0F08:: @ 081D0F08 - .incbin "baserom.gba", 0x1D0F08, 0x000001E - -gUnk_081D0F26:: @ 081D0F26 - .incbin "baserom.gba", 0x1D0F26, 0x00000DE - -gUnk_081D1004:: @ 081D1004 - .incbin "baserom.gba", 0x1D1004, 0x0000003 - -gUnk_081D1007:: @ 081D1007 - .incbin "baserom.gba", 0x1D1007, 0x0000511 - -gUnk_081D1518:: @ 081D1518 - .incbin "baserom.gba", 0x1D1518, 0x00000E2 - -gUnk_081D15FA:: @ 081D15FA - .incbin "baserom.gba", 0x1D15FA, 0x0000018 - -gUnk_081D1612:: @ 081D1612 - .incbin "baserom.gba", 0x1D1612, 0x000011F - -gUnk_081D1731:: @ 081D1731 - .incbin "baserom.gba", 0x1D1731, 0x00000CC - -gUnk_081D17FD:: @ 081D17FD - .incbin "baserom.gba", 0x1D17FD, 0x0000013 - -gUnk_081D1810:: @ 081D1810 - .incbin "baserom.gba", 0x1D1810, 0x00003F3 - -gUnk_081D1C03:: @ 081D1C03 - .incbin "baserom.gba", 0x1D1C03, 0x0000001 - -gUnk_081D1C04:: @ 081D1C04 - .incbin "baserom.gba", 0x1D1C04, 0x0000019 - -gUnk_081D1C1D:: @ 081D1C1D - .incbin "baserom.gba", 0x1D1C1D, 0x00000F7 - -gUnk_081D1D14:: @ 081D1D14 - .incbin "baserom.gba", 0x1D1D14, 0x000010E - -gUnk_081D1E22:: @ 081D1E22 - .incbin "baserom.gba", 0x1D1E22, 0x00001DE - -gUnk_081D2000:: @ 081D2000 - .incbin "baserom.gba", 0x1D2000, 0x000000C - -gUnk_081D200C:: @ 081D200C - .incbin "baserom.gba", 0x1D200C, 0x0000026 - -gUnk_081D2032:: @ 081D2032 - .incbin "baserom.gba", 0x1D2032, 0x00001F1 - -gUnk_081D2223:: @ 081D2223 - .incbin "baserom.gba", 0x1D2223, 0x00000F5 - -gUnk_081D2318:: @ 081D2318 - .incbin "baserom.gba", 0x1D2318, 0x0000113 - -gUnk_081D242B:: @ 081D242B - .incbin "baserom.gba", 0x1D242B, 0x000000A - -gUnk_081D2435:: @ 081D2435 - .incbin "baserom.gba", 0x1D2435, 0x00001D6 - -gUnk_081D260B:: @ 081D260B - .incbin "baserom.gba", 0x1D260B, 0x00001E1 - -gUnk_081D27EC:: @ 081D27EC - .incbin "baserom.gba", 0x1D27EC, 0x0000043 - -gUnk_081D282F:: @ 081D282F - .incbin "baserom.gba", 0x1D282F, 0x00000E1 - -gUnk_081D2910:: @ 081D2910 - .incbin "baserom.gba", 0x1D2910, 0x0000315 - -gUnk_081D2C25:: @ 081D2C25 - .incbin "baserom.gba", 0x1D2C25, 0x0000119 - -gUnk_081D2D3E:: @ 081D2D3E - .incbin "baserom.gba", 0x1D2D3E, 0x0000235 - -gUnk_081D2F73:: @ 081D2F73 - .incbin "baserom.gba", 0x1D2F73, 0x00000C8 - -gUnk_081D303B:: @ 081D303B - .incbin "baserom.gba", 0x1D303B, 0x0000009 - -gUnk_081D3044:: @ 081D3044 - .incbin "baserom.gba", 0x1D3044, 0x00000E1 - -gUnk_081D3125:: @ 081D3125 - .incbin "baserom.gba", 0x1D3125, 0x00000F6 - -gUnk_081D321B:: @ 081D321B - .incbin "baserom.gba", 0x1D321B, 0x000021C - -gUnk_081D3437:: @ 081D3437 - .incbin "baserom.gba", 0x1D3437, 0x00004FC - -gUnk_081D3933:: @ 081D3933 - .incbin "baserom.gba", 0x1D3933, 0x0000331 - -gUnk_081D3C64:: @ 081D3C64 - .incbin "baserom.gba", 0x1D3C64, 0x00000C8 - -gUnk_081D3D2C:: @ 081D3D2C - .incbin "baserom.gba", 0x1D3D2C, 0x000103D - -gUnk_081D4D69:: @ 081D4D69 - .incbin "baserom.gba", 0x1D4D69, 0x00012FE - -gUnk_081D6067:: @ 081D6067 - .incbin "baserom.gba", 0x1D6067, 0x000160D - -gUnk_081D7674:: @ 081D7674 - .incbin "baserom.gba", 0x1D7674, 0x00029C0 - -gUnk_081DA034:: @ 081DA034 - .incbin "baserom.gba", 0x1DA034, 0x0003FBD - -gUnk_081DDFF1:: @ 081DDFF1 - .incbin "baserom.gba", 0x1DDFF1, 0x0000FFE - -gUnk_081DEFEF:: @ 081DEFEF - .incbin "baserom.gba", 0x1DEFEF, 0x0000845 - -gUnk_081DF834:: @ 081DF834 - .incbin "baserom.gba", 0x1DF834, 0x00004C6 - -gUnk_081DFCFA:: @ 081DFCFA - .incbin "baserom.gba", 0x1DFCFA, 0x00002CE - -gUnk_081DFFC8:: @ 081DFFC8 - .incbin "baserom.gba", 0x1DFFC8, 0x0000008 - -gUnk_081DFFD0:: @ 081DFFD0 - .incbin "baserom.gba", 0x1DFFD0, 0x0000030 - -gUnk_081E0000:: @ 081E0000 - .incbin "baserom.gba", 0x1E0000, 0x0000012 - -gUnk_081E0012:: @ 081E0012 - .incbin "baserom.gba", 0x1E0012, 0x0000008 - -gUnk_081E001A:: @ 081E001A - .incbin "baserom.gba", 0x1E001A, 0x00000D8 - -gUnk_081E00F2:: @ 081E00F2 - .incbin "baserom.gba", 0x1E00F2, 0x0000015 - -gUnk_081E0107:: @ 081E0107 - .incbin "baserom.gba", 0x1E0107, 0x0000016 - -gUnk_081E011D:: @ 081E011D - .incbin "baserom.gba", 0x1E011D, 0x00001B9 - -gUnk_081E02D6:: @ 081E02D6 - .incbin "baserom.gba", 0x1E02D6, 0x000002A - -gUnk_081E0300:: @ 081E0300 - .incbin "baserom.gba", 0x1E0300, 0x0000004 - -gUnk_081E0304:: @ 081E0304 - .incbin "baserom.gba", 0x1E0304, 0x0000109 - -gUnk_081E040D:: @ 081E040D - .incbin "baserom.gba", 0x1E040D, 0x00000DF - -gUnk_081E04EC:: @ 081E04EC - .incbin "baserom.gba", 0x1E04EC, 0x000027A - -gUnk_081E0766:: @ 081E0766 - .incbin "baserom.gba", 0x1E0766, 0x00001A9 - -gUnk_081E090F:: @ 081E090F - .incbin "baserom.gba", 0x1E090F, 0x00000D3 - -gUnk_081E09E2:: @ 081E09E2 - .incbin "baserom.gba", 0x1E09E2, 0x000001F - -gUnk_081E0A01:: @ 081E0A01 - .incbin "baserom.gba", 0x1E0A01, 0x0000120 - -gUnk_081E0B21:: @ 081E0B21 - .incbin "baserom.gba", 0x1E0B21, 0x00002CA - -gUnk_081E0DEB:: @ 081E0DEB - .incbin "baserom.gba", 0x1E0DEB, 0x00000FA - -gUnk_081E0EE5:: @ 081E0EE5 - .incbin "baserom.gba", 0x1E0EE5, 0x0000110 - -gUnk_081E0FF5:: @ 081E0FF5 - .incbin "baserom.gba", 0x1E0FF5, 0x0000040 - -gUnk_081E1035:: @ 081E1035 - .incbin "baserom.gba", 0x1E1035, 0x00002CA - -gUnk_081E12FF:: @ 081E12FF - .incbin "baserom.gba", 0x1E12FF, 0x0000001 - -gUnk_081E1300:: @ 081E1300 - .incbin "baserom.gba", 0x1E1300, 0x0000601 - -gUnk_081E1901:: @ 081E1901 - .incbin "baserom.gba", 0x1E1901, 0x000000E - -gUnk_081E190F:: @ 081E190F - .incbin "baserom.gba", 0x1E190F, 0x00000EA - -gUnk_081E19F9:: @ 081E19F9 - .incbin "baserom.gba", 0x1E19F9, 0x0000415 - -gUnk_081E1E0E:: @ 081E1E0E - .incbin "baserom.gba", 0x1E1E0E, 0x000020B - -gUnk_081E2019:: @ 081E2019 - .incbin "baserom.gba", 0x1E2019, 0x000010D - -gUnk_081E2126:: @ 081E2126 - .incbin "baserom.gba", 0x1E2126, 0x0000203 - -gUnk_081E2329:: @ 081E2329 - .incbin "baserom.gba", 0x1E2329, 0x000011C - -gUnk_081E2445:: @ 081E2445 - .incbin "baserom.gba", 0x1E2445, 0x00000D1 - -gUnk_081E2516:: @ 081E2516 - .incbin "baserom.gba", 0x1E2516, 0x00000E7 - -gUnk_081E25FD:: @ 081E25FD - .incbin "baserom.gba", 0x1E25FD, 0x0000120 - -gUnk_081E271D:: @ 081E271D - .incbin "baserom.gba", 0x1E271D, 0x00001E4 - -gUnk_081E2901:: @ 081E2901 - .incbin "baserom.gba", 0x1E2901, 0x0000024 - -gUnk_081E2925:: @ 081E2925 - .incbin "baserom.gba", 0x1E2925, 0x0000201 - -gUnk_081E2B26:: @ 081E2B26 - .incbin "baserom.gba", 0x1E2B26, 0x0000222 - -gUnk_081E2D48:: @ 081E2D48 - .incbin "baserom.gba", 0x1E2D48, 0x00000EB - -gUnk_081E2E33:: @ 081E2E33 - .incbin "baserom.gba", 0x1E2E33, 0x0000102 - -gUnk_081E2F35:: @ 081E2F35 - .incbin "baserom.gba", 0x1E2F35, 0x0000404 - -gUnk_081E3339:: @ 081E3339 - .incbin "baserom.gba", 0x1E3339, 0x00000FA - -gUnk_081E3433:: @ 081E3433 - .incbin "baserom.gba", 0x1E3433, 0x000010E - -gUnk_081E3541:: @ 081E3541 - .incbin "baserom.gba", 0x1E3541, 0x000010A - -gUnk_081E364B:: @ 081E364B - .incbin "baserom.gba", 0x1E364B, 0x00003F1 - -gUnk_081E3A3C:: @ 081E3A3C - .incbin "baserom.gba", 0x1E3A3C, 0x0000B11 - -gUnk_081E454D:: @ 081E454D - .incbin "baserom.gba", 0x1E454D, 0x00065B3 - -gUnk_081EAB00:: @ 081EAB00 - .incbin "baserom.gba", 0x1EAB00, 0x0001882 - -gUnk_081EC382:: @ 081EC382 - .incbin "baserom.gba", 0x1EC382, 0x0002445 - -gUnk_081EE7C7:: @ 081EE7C7 - .incbin "baserom.gba", 0x1EE7C7, 0x0001335 - -gUnk_081EFAFC:: @ 081EFAFC - .incbin "baserom.gba", 0x1EFAFC, 0x00003CC - -gUnk_081EFEC8:: @ 081EFEC8 - .incbin "baserom.gba", 0x1EFEC8, 0x0000138 - -gUnk_081F0000:: @ 081F0000 - .incbin "baserom.gba", 0x1F0000, 0x0000008 - -gUnk_081F0008:: @ 081F0008 - .incbin "baserom.gba", 0x1F0008, 0x0000001 - -gUnk_081F0009:: @ 081F0009 - .incbin "baserom.gba", 0x1F0009, 0x0000021 - -gUnk_081F002A:: @ 081F002A - .incbin "baserom.gba", 0x1F002A, 0x0000004 - -gUnk_081F002E:: @ 081F002E - .incbin "baserom.gba", 0x1F002E, 0x0000002 - -gUnk_081F0030:: @ 081F0030 - .incbin "baserom.gba", 0x1F0030, 0x000000F - -gUnk_081F003F:: @ 081F003F - .incbin "baserom.gba", 0x1F003F, 0x0000003 - -gUnk_081F0042:: @ 081F0042 - .incbin "baserom.gba", 0x1F0042, 0x000004A - -gUnk_081F008C:: @ 081F008C - .incbin "baserom.gba", 0x1F008C, 0x0000251 - -gUnk_081F02DD:: @ 081F02DD - .incbin "baserom.gba", 0x1F02DD, 0x000017C - -gUnk_081F0459:: @ 081F0459 - .incbin "baserom.gba", 0x1F0459, 0x00003A1 - -gUnk_081F07FA:: @ 081F07FA - .incbin "baserom.gba", 0x1F07FA, 0x0000824 - -gUnk_081F101E:: @ 081F101E - .incbin "baserom.gba", 0x1F101E, 0x0000015 - -gUnk_081F1033:: @ 081F1033 - .incbin "baserom.gba", 0x1F1033, 0x0000033 - -gUnk_081F1066:: @ 081F1066 - .incbin "baserom.gba", 0x1F1066, 0x0000102 - -gUnk_081F1168:: @ 081F1168 - .incbin "baserom.gba", 0x1F1168, 0x000017F - -gUnk_081F12E7:: @ 081F12E7 - .incbin "baserom.gba", 0x1F12E7, 0x00002F9 - -gUnk_081F15E0:: @ 081F15E0 - .incbin "baserom.gba", 0x1F15E0, 0x000025D - -gUnk_081F183D:: @ 081F183D - .incbin "baserom.gba", 0x1F183D, 0x00001E0 - -gUnk_081F1A1D:: @ 081F1A1D - .incbin "baserom.gba", 0x1F1A1D, 0x00000EE - -gUnk_081F1B0B:: @ 081F1B0B - .incbin "baserom.gba", 0x1F1B0B, 0x00002F5 - -gUnk_081F1E00:: @ 081F1E00 - .incbin "baserom.gba", 0x1F1E00, 0x000011D - -gUnk_081F1F1D:: @ 081F1F1D - .incbin "baserom.gba", 0x1F1F1D, 0x0000005 - -gUnk_081F1F22:: @ 081F1F22 - .incbin "baserom.gba", 0x1F1F22, 0x00000E1 - -gUnk_081F2003:: @ 081F2003 - .incbin "baserom.gba", 0x1F2003, 0x000001F - -gUnk_081F2022:: @ 081F2022 - .incbin "baserom.gba", 0x1F2022, 0x00000A4 - -gUnk_081F20C6:: @ 081F20C6 - .incbin "baserom.gba", 0x1F20C6, 0x0000062 - -gUnk_081F2128:: @ 081F2128 - .incbin "baserom.gba", 0x1F2128, 0x00000F1 - -gUnk_081F2219:: @ 081F2219 - .incbin "baserom.gba", 0x1F2219, 0x0000103 - -gUnk_081F231C:: @ 081F231C - .incbin "baserom.gba", 0x1F231C, 0x00001DB - -gUnk_081F24F7:: @ 081F24F7 - .incbin "baserom.gba", 0x1F24F7, 0x0000116 - -gUnk_081F260D:: @ 081F260D - .incbin "baserom.gba", 0x1F260D, 0x000021D - -gUnk_081F282A:: @ 081F282A - .incbin "baserom.gba", 0x1F282A, 0x00000F8 - -gUnk_081F2922:: @ 081F2922 - .incbin "baserom.gba", 0x1F2922, 0x0000127 - -gUnk_081F2A49:: @ 081F2A49 - .incbin "baserom.gba", 0x1F2A49, 0x00000F1 - -gUnk_081F2B3A:: @ 081F2B3A - .incbin "baserom.gba", 0x1F2B3A, 0x00001F5 - -gUnk_081F2D2F:: @ 081F2D2F - .incbin "baserom.gba", 0x1F2D2F, 0x0000200 - -gUnk_081F2F2F:: @ 081F2F2F - .incbin "baserom.gba", 0x1F2F2F, 0x000050E - -gUnk_081F343D:: @ 081F343D - .incbin "baserom.gba", 0x1F343D, 0x00000F1 - -gUnk_081F352E:: @ 081F352E - .incbin "baserom.gba", 0x1F352E, 0x0000204 - -gUnk_081F3732:: @ 081F3732 - .incbin "baserom.gba", 0x1F3732, 0x0000106 - -gUnk_081F3838:: @ 081F3838 - .incbin "baserom.gba", 0x1F3838, 0x0000009 - -gUnk_081F3841:: @ 081F3841 - .incbin "baserom.gba", 0x1F3841, 0x0000BF6 - -gUnk_081F4437:: @ 081F4437 - .incbin "baserom.gba", 0x1F4437, 0x0000023 - -gUnk_081F445A:: @ 081F445A - .incbin "baserom.gba", 0x1F445A, 0x0000CD8 - -gUnk_081F5132:: @ 081F5132 - .incbin "baserom.gba", 0x1F5132, 0x000049D - -gUnk_081F55CF:: @ 081F55CF - .incbin "baserom.gba", 0x1F55CF, 0x0004A36 - -gUnk_081FA005:: @ 081FA005 - .incbin "baserom.gba", 0x1FA005, 0x000107B - -gUnk_081FB080:: @ 081FB080 - .incbin "baserom.gba", 0x1FB080, 0x00028A2 - -gUnk_081FD922:: @ 081FD922 - .incbin "baserom.gba", 0x1FD922, 0x00014F3 - -gUnk_081FEE15:: @ 081FEE15 - .incbin "baserom.gba", 0x1FEE15, 0x000022A - -gUnk_081FF03F:: @ 081FF03F - .incbin "baserom.gba", 0x1FF03F, 0x0000175 - -gUnk_081FF1B4:: @ 081FF1B4 - .incbin "baserom.gba", 0x1FF1B4, 0x0000D2D - -gUnk_081FFEE1:: @ 081FFEE1 - .incbin "baserom.gba", 0x1FFEE1, 0x000011F - -gUnk_08200000:: @ 08200000 - .incbin "baserom.gba", 0x200000, 0x0000001 - -gUnk_08200001:: @ 08200001 - .incbin "baserom.gba", 0x200001, 0x0000010 - -gUnk_08200011:: @ 08200011 - .incbin "baserom.gba", 0x200011, 0x000000F - -gUnk_08200020:: @ 08200020 - .incbin "baserom.gba", 0x200020, 0x000001F - -gUnk_0820003F:: @ 0820003F - .incbin "baserom.gba", 0x20003F, 0x0000003 - -gUnk_08200042:: @ 08200042 - .incbin "baserom.gba", 0x200042, 0x0000072 - -gUnk_082000B4:: @ 082000B4 - .incbin "baserom.gba", 0x2000B4, 0x0000008 - -gUnk_082000BC:: @ 082000BC - .incbin "baserom.gba", 0x2000BC, 0x000005A - -gUnk_08200116:: @ 08200116 - .incbin "baserom.gba", 0x200116, 0x0000009 - -gUnk_0820011F:: @ 0820011F - .incbin "baserom.gba", 0x20011F, 0x0000012 - -gUnk_08200131:: @ 08200131 - .incbin "baserom.gba", 0x200131, 0x0000079 - -gUnk_082001AA:: @ 082001AA - .incbin "baserom.gba", 0x2001AA, 0x0000130 - -gUnk_082002DA:: @ 082002DA - .incbin "baserom.gba", 0x2002DA, 0x000015A - -gUnk_08200434:: @ 08200434 - .incbin "baserom.gba", 0x200434, 0x00000CC - -gUnk_08200500:: @ 08200500 - .incbin "baserom.gba", 0x200500, 0x0000020 - -gUnk_08200520:: @ 08200520 - .incbin "baserom.gba", 0x200520, 0x0000033 - -gUnk_08200553:: @ 08200553 - .incbin "baserom.gba", 0x200553, 0x00000AD - -gUnk_08200600:: @ 08200600 - .incbin "baserom.gba", 0x200600, 0x0000009 - -gUnk_08200609:: @ 08200609 - .incbin "baserom.gba", 0x200609, 0x0000027 - -gUnk_08200630:: @ 08200630 - .incbin "baserom.gba", 0x200630, 0x00000D0 - -gUnk_08200700:: @ 08200700 - .incbin "baserom.gba", 0x200700, 0x0000006 - -gUnk_08200706:: @ 08200706 - .incbin "baserom.gba", 0x200706, 0x000001A - -gUnk_08200720:: @ 08200720 - .incbin "baserom.gba", 0x200720, 0x0000030 - -gUnk_08200750:: @ 08200750 - .incbin "baserom.gba", 0x200750, 0x0000010 - -gUnk_08200760:: @ 08200760 - .incbin "baserom.gba", 0x200760, 0x0000020 - -gUnk_08200780:: @ 08200780 - .incbin "baserom.gba", 0x200780, 0x0000060 - -gUnk_082007E0:: @ 082007E0 - .incbin "baserom.gba", 0x2007E0, 0x0000020 - -gUnk_08200800:: @ 08200800 - .incbin "baserom.gba", 0x200800, 0x0000020 - -gUnk_08200820:: @ 08200820 - .incbin "baserom.gba", 0x200820, 0x0000110 - -gUnk_08200930:: @ 08200930 - .incbin "baserom.gba", 0x200930, 0x00001D0 - -gUnk_08200B00:: @ 08200B00 - .incbin "baserom.gba", 0x200B00, 0x0000100 - -gUnk_08200C00:: @ 08200C00 - .incbin "baserom.gba", 0x200C00, 0x00002E0 - -gUnk_08200EE0:: @ 08200EE0 - .incbin "baserom.gba", 0x200EE0, 0x0000020 - -gUnk_08200F00:: @ 08200F00 - .incbin "baserom.gba", 0x200F00, 0x0000040 - -gUnk_08200F40:: @ 08200F40 - .incbin "baserom.gba", 0x200F40, 0x00000E0 - -gUnk_08201020:: @ 08201020 - .incbin "baserom.gba", 0x201020, 0x00001EE - -gUnk_0820120E:: @ 0820120E - .incbin "baserom.gba", 0x20120E, 0x00000ED - -gUnk_082012FB:: @ 082012FB - .incbin "baserom.gba", 0x2012FB, 0x000000A - -gUnk_08201305:: @ 08201305 - .incbin "baserom.gba", 0x201305, 0x00003FB - -gUnk_08201700:: @ 08201700 - .incbin "baserom.gba", 0x201700, 0x0000010 - -gUnk_08201710:: @ 08201710 - .incbin "baserom.gba", 0x201710, 0x0000309 - -gUnk_08201A19:: @ 08201A19 - .incbin "baserom.gba", 0x201A19, 0x00000E2 - -gUnk_08201AFB:: @ 08201AFB - .incbin "baserom.gba", 0x201AFB, 0x00000DD - -gUnk_08201BD8:: @ 08201BD8 - .incbin "baserom.gba", 0x201BD8, 0x0000338 - -gUnk_08201F10:: @ 08201F10 - .incbin "baserom.gba", 0x201F10, 0x0000026 - -gUnk_08201F36:: @ 08201F36 - .incbin "baserom.gba", 0x201F36, 0x0000110 - -gUnk_08202046:: @ 08202046 - .incbin "baserom.gba", 0x202046, 0x000009A - -gUnk_082020E0:: @ 082020E0 - .incbin "baserom.gba", 0x2020E0, 0x0000120 - -gUnk_08202200:: @ 08202200 - .incbin "baserom.gba", 0x202200, 0x0000010 - -gUnk_08202210:: @ 08202210 - .incbin "baserom.gba", 0x202210, 0x0000001 - -gUnk_08202211:: @ 08202211 - .incbin "baserom.gba", 0x202211, 0x000000C - -gUnk_0820221D:: @ 0820221D - .incbin "baserom.gba", 0x20221D, 0x00000FD - -gUnk_0820231A:: @ 0820231A - .incbin "baserom.gba", 0x20231A, 0x00000F3 - -gUnk_0820240D:: @ 0820240D - .incbin "baserom.gba", 0x20240D, 0x00003B3 - -gUnk_082027C0:: @ 082027C0 - .incbin "baserom.gba", 0x2027C0, 0x0000070 - -gUnk_08202830:: @ 08202830 - .incbin "baserom.gba", 0x202830, 0x00000E7 - -gUnk_08202917:: @ 08202917 - .incbin "baserom.gba", 0x202917, 0x00000FF - -gUnk_08202A16:: @ 08202A16 - .incbin "baserom.gba", 0x202A16, 0x0000009 - -gUnk_08202A1F:: @ 08202A1F - .incbin "baserom.gba", 0x202A1F, 0x00001E4 - -gUnk_08202C03:: @ 08202C03 - .incbin "baserom.gba", 0x202C03, 0x0000144 - -gUnk_08202D47:: @ 08202D47 - .incbin "baserom.gba", 0x202D47, 0x00000EE - -gUnk_08202E35:: @ 08202E35 - .incbin "baserom.gba", 0x202E35, 0x00001FF - -gUnk_08203034:: @ 08203034 - .incbin "baserom.gba", 0x203034, 0x0000002 - -gUnk_08203036:: @ 08203036 - .incbin "baserom.gba", 0x203036, 0x00000FC - -gUnk_08203132:: @ 08203132 - .incbin "baserom.gba", 0x203132, 0x000010B - -gUnk_0820323D:: @ 0820323D - .incbin "baserom.gba", 0x20323D, 0x0000103 - -gUnk_08203340:: @ 08203340 - .incbin "baserom.gba", 0x203340, 0x00000C0 - -gUnk_08203400:: @ 08203400 - .incbin "baserom.gba", 0x203400, 0x000002E - -gUnk_0820342E:: @ 0820342E - .incbin "baserom.gba", 0x20342E, 0x0000003 - -gUnk_08203431:: @ 08203431 - .incbin "baserom.gba", 0x203431, 0x00000CF - -gUnk_08203500:: @ 08203500 - .incbin "baserom.gba", 0x203500, 0x0000044 - -gUnk_08203544:: @ 08203544 - .incbin "baserom.gba", 0x203544, 0x00001EB - -gUnk_0820372F:: @ 0820372F - .incbin "baserom.gba", 0x20372F, 0x000001B - -gUnk_0820374A:: @ 0820374A - .incbin "baserom.gba", 0x20374A, 0x00000B6 - -gUnk_08203800:: @ 08203800 - .incbin "baserom.gba", 0x203800, 0x0000001 - -gUnk_08203801:: @ 08203801 - .incbin "baserom.gba", 0x203801, 0x00002FF - -gUnk_08203B00:: @ 08203B00 - .incbin "baserom.gba", 0x203B00, 0x000021D - -gUnk_08203D1D:: @ 08203D1D - .incbin "baserom.gba", 0x203D1D, 0x0000036 - -gUnk_08203D53:: @ 08203D53 - .incbin "baserom.gba", 0x203D53, 0x00003AD - -gUnk_08204100:: @ 08204100 - .incbin "baserom.gba", 0x204100, 0x0000100 - -gUnk_08204200:: @ 08204200 - .incbin "baserom.gba", 0x204200, 0x0000087 - -gUnk_08204287:: @ 08204287 - .incbin "baserom.gba", 0x204287, 0x0000079 - -gUnk_08204300:: @ 08204300 - .incbin "baserom.gba", 0x204300, 0x0000306 - -gUnk_08204606:: @ 08204606 - .incbin "baserom.gba", 0x204606, 0x0000004 - -gUnk_0820460A:: @ 0820460A - .incbin "baserom.gba", 0x20460A, 0x0000026 - -gUnk_08204630:: @ 08204630 - .incbin "baserom.gba", 0x204630, 0x0000020 - -gUnk_08204650:: @ 08204650 - .incbin "baserom.gba", 0x204650, 0x00002B0 - -gUnk_08204900:: @ 08204900 - .incbin "baserom.gba", 0x204900, 0x0000100 - -gUnk_08204A00:: @ 08204A00 - .incbin "baserom.gba", 0x204A00, 0x0000200 - -gUnk_08204C00:: @ 08204C00 - .incbin "baserom.gba", 0x204C00, 0x0000300 - -gUnk_08204F00:: @ 08204F00 - .incbin "baserom.gba", 0x204F00, 0x0000010 - -gUnk_08204F10:: @ 08204F10 - .incbin "baserom.gba", 0x204F10, 0x00001F0 - -gUnk_08205100:: @ 08205100 - .incbin "baserom.gba", 0x205100, 0x0000100 - -gUnk_08205200:: @ 08205200 - .incbin "baserom.gba", 0x205200, 0x000006D - -gUnk_0820526D:: @ 0820526D - .incbin "baserom.gba", 0x20526D, 0x0000393 - -gUnk_08205600:: @ 08205600 - .incbin "baserom.gba", 0x205600, 0x0000020 - -gUnk_08205620:: @ 08205620 - .incbin "baserom.gba", 0x205620, 0x00003E0 - -gUnk_08205A00:: @ 08205A00 - .incbin "baserom.gba", 0x205A00, 0x00006E9 - -gUnk_082060E9:: @ 082060E9 - .incbin "baserom.gba", 0x2060E9, 0x000071E - -gUnk_08206807:: @ 08206807 - .incbin "baserom.gba", 0x206807, 0x00003F9 - -gUnk_08206C00:: @ 08206C00 - .incbin "baserom.gba", 0x206C00, 0x000007F - -gUnk_08206C7F:: @ 08206C7F - .incbin "baserom.gba", 0x206C7F, 0x0000282 - -gUnk_08206F01:: @ 08206F01 - .incbin "baserom.gba", 0x206F01, 0x000001F - -gUnk_08206F20:: @ 08206F20 - .incbin "baserom.gba", 0x206F20, 0x0000064 - -gUnk_08206F84:: @ 08206F84 - .incbin "baserom.gba", 0x206F84, 0x0000106 - -gUnk_0820708A:: @ 0820708A - .incbin "baserom.gba", 0x20708A, 0x000007D - -gUnk_08207107:: @ 08207107 - .incbin "baserom.gba", 0x207107, 0x000020D - -gUnk_08207314:: @ 08207314 - .incbin "baserom.gba", 0x207314, 0x0000025 - -gUnk_08207339:: @ 08207339 - .incbin "baserom.gba", 0x207339, 0x00004BC - -gUnk_082077F5:: @ 082077F5 - .incbin "baserom.gba", 0x2077F5, 0x000020C - -gUnk_08207A01:: @ 08207A01 - .incbin "baserom.gba", 0x207A01, 0x0000169 - -gUnk_08207B6A:: @ 08207B6A - .incbin "baserom.gba", 0x207B6A, 0x00003E2 - -gUnk_08207F4C:: @ 08207F4C - .incbin "baserom.gba", 0x207F4C, 0x000011E - -gUnk_0820806A:: @ 0820806A - .incbin "baserom.gba", 0x20806A, 0x0000596 - -gUnk_08208600:: @ 08208600 - .incbin "baserom.gba", 0x208600, 0x000010E - -gUnk_0820870E:: @ 0820870E - .incbin "baserom.gba", 0x20870E, 0x0000019 - -gUnk_08208727:: @ 08208727 - .incbin "baserom.gba", 0x208727, 0x000041C - -gUnk_08208B43:: @ 08208B43 - .incbin "baserom.gba", 0x208B43, 0x0000072 - -gUnk_08208BB5:: @ 08208BB5 - .incbin "baserom.gba", 0x208BB5, 0x0000052 - -gUnk_08208C07:: @ 08208C07 - .incbin "baserom.gba", 0x208C07, 0x000027A - -gUnk_08208E81:: @ 08208E81 - .incbin "baserom.gba", 0x208E81, 0x0000089 - -gUnk_08208F0A:: @ 08208F0A - .incbin "baserom.gba", 0x208F0A, 0x000007A - -gUnk_08208F84:: @ 08208F84 - .incbin "baserom.gba", 0x208F84, 0x0000170 - -gUnk_082090F4:: @ 082090F4 - .incbin "baserom.gba", 0x2090F4, 0x000020C - -gUnk_08209300:: @ 08209300 - .incbin "baserom.gba", 0x209300, 0x00000AE - -gUnk_082093AE:: @ 082093AE - .incbin "baserom.gba", 0x2093AE, 0x00001E7 - -gUnk_08209595:: @ 08209595 - .incbin "baserom.gba", 0x209595, 0x00000AD - -gUnk_08209642:: @ 08209642 - .incbin "baserom.gba", 0x209642, 0x0000247 - -gUnk_08209889:: @ 08209889 - .incbin "baserom.gba", 0x209889, 0x000002A - -gUnk_082098B3:: @ 082098B3 - .incbin "baserom.gba", 0x2098B3, 0x00000D5 - -gUnk_08209988:: @ 08209988 - .incbin "baserom.gba", 0x209988, 0x0000280 - -gUnk_08209C08:: @ 08209C08 - .incbin "baserom.gba", 0x209C08, 0x0000300 - -gUnk_08209F08:: @ 08209F08 - .incbin "baserom.gba", 0x209F08, 0x00006E1 - -gUnk_0820A5E9:: @ 0820A5E9 - .incbin "baserom.gba", 0x20A5E9, 0x000016E - -gUnk_0820A757:: @ 0820A757 - .incbin "baserom.gba", 0x20A757, 0x0000050 - -gUnk_0820A7A7:: @ 0820A7A7 - .incbin "baserom.gba", 0x20A7A7, 0x0000025 - -gUnk_0820A7CC:: @ 0820A7CC - .incbin "baserom.gba", 0x20A7CC, 0x0000009 - -gUnk_0820A7D5:: @ 0820A7D5 - .incbin "baserom.gba", 0x20A7D5, 0x0000033 - -gUnk_0820A808:: @ 0820A808 - .incbin "baserom.gba", 0x20A808, 0x0000148 - -gUnk_0820A950:: @ 0820A950 - .incbin "baserom.gba", 0x20A950, 0x0000238 - -gUnk_0820AB88:: @ 0820AB88 - .incbin "baserom.gba", 0x20AB88, 0x0000581 - -gUnk_0820B109:: @ 0820B109 - .incbin "baserom.gba", 0x20B109, 0x0000081 - -gUnk_0820B18A:: @ 0820B18A - .incbin "baserom.gba", 0x20B18A, 0x0000226 - -gUnk_0820B3B0:: @ 0820B3B0 - .incbin "baserom.gba", 0x20B3B0, 0x0000079 - -gUnk_0820B429:: @ 0820B429 - .incbin "baserom.gba", 0x20B429, 0x000012B - -gUnk_0820B554:: @ 0820B554 - .incbin "baserom.gba", 0x20B554, 0x00000C3 - -gUnk_0820B617:: @ 0820B617 - .incbin "baserom.gba", 0x20B617, 0x00000DE - -gUnk_0820B6F5:: @ 0820B6F5 - .incbin "baserom.gba", 0x20B6F5, 0x000020D - -gUnk_0820B902:: @ 0820B902 - .incbin "baserom.gba", 0x20B902, 0x0000005 - -gUnk_0820B907:: @ 0820B907 - .incbin "baserom.gba", 0x20B907, 0x0000103 - -gUnk_0820BA0A:: @ 0820BA0A - .incbin "baserom.gba", 0x20BA0A, 0x00001DC - -gUnk_0820BBE6:: @ 0820BBE6 - .incbin "baserom.gba", 0x20BBE6, 0x00002C9 - -gUnk_0820BEAF:: @ 0820BEAF - .incbin "baserom.gba", 0x20BEAF, 0x000007D - -gUnk_0820BF2C:: @ 0820BF2C - .incbin "baserom.gba", 0x20BF2C, 0x000008D - -gUnk_0820BFB9:: @ 0820BFB9 - .incbin "baserom.gba", 0x20BFB9, 0x0000039 - -gUnk_0820BFF2:: @ 0820BFF2 - .incbin "baserom.gba", 0x20BFF2, 0x0000069 - -gUnk_0820C05B:: @ 0820C05B - .incbin "baserom.gba", 0x20C05B, 0x00000C5 - -gUnk_0820C120:: @ 0820C120 - .incbin "baserom.gba", 0x20C120, 0x000029C - -gUnk_0820C3BC:: @ 0820C3BC - .incbin "baserom.gba", 0x20C3BC, 0x0000358 - -gUnk_0820C714:: @ 0820C714 - .incbin "baserom.gba", 0x20C714, 0x0000030 - -gUnk_0820C744:: @ 0820C744 - .incbin "baserom.gba", 0x20C744, 0x0000081 - -gUnk_0820C7C5:: @ 0820C7C5 - .incbin "baserom.gba", 0x20C7C5, 0x000008B - -gUnk_0820C850:: @ 0820C850 - .incbin "baserom.gba", 0x20C850, 0x00000B0 - -gUnk_0820C900:: @ 0820C900 - .incbin "baserom.gba", 0x20C900, 0x000053E - -gUnk_0820CE3E:: @ 0820CE3E - .incbin "baserom.gba", 0x20CE3E, 0x00000D9 - -gUnk_0820CF17:: @ 0820CF17 - .incbin "baserom.gba", 0x20CF17, 0x00002ED - -gUnk_0820D204:: @ 0820D204 - .incbin "baserom.gba", 0x20D204, 0x00002D6 - -gUnk_0820D4DA:: @ 0820D4DA - .incbin "baserom.gba", 0x20D4DA, 0x000012A - -gUnk_0820D604:: @ 0820D604 - .incbin "baserom.gba", 0x20D604, 0x00003D9 - -gUnk_0820D9DD:: @ 0820D9DD - .incbin "baserom.gba", 0x20D9DD, 0x00000EA - -gUnk_0820DAC7:: @ 0820DAC7 - .incbin "baserom.gba", 0x20DAC7, 0x0000123 - -gUnk_0820DBEA:: @ 0820DBEA - .incbin "baserom.gba", 0x20DBEA, 0x00000EA - -gUnk_0820DCD4:: @ 0820DCD4 - .incbin "baserom.gba", 0x20DCD4, 0x00000CD - -gUnk_0820DDA1:: @ 0820DDA1 - .incbin "baserom.gba", 0x20DDA1, 0x0000067 - -gUnk_0820DE08:: @ 0820DE08 - .incbin "baserom.gba", 0x20DE08, 0x0000193 - -gUnk_0820DF9B:: @ 0820DF9B - .incbin "baserom.gba", 0x20DF9B, 0x000016C - -gUnk_0820E107:: @ 0820E107 - .incbin "baserom.gba", 0x20E107, 0x000001C - -gUnk_0820E123:: @ 0820E123 - .incbin "baserom.gba", 0x20E123, 0x0000080 - -gUnk_0820E1A3:: @ 0820E1A3 - .incbin "baserom.gba", 0x20E1A3, 0x0000341 - -gUnk_0820E4E4:: @ 0820E4E4 - .incbin "baserom.gba", 0x20E4E4, 0x0000004 - -gUnk_0820E4E8:: @ 0820E4E8 - .incbin "baserom.gba", 0x20E4E8, 0x0000015 - -gUnk_0820E4FD:: @ 0820E4FD - .incbin "baserom.gba", 0x20E4FD, 0x000000E - -gUnk_0820E50B:: @ 0820E50B - .incbin "baserom.gba", 0x20E50B, 0x0000002 - -gUnk_0820E50D:: @ 0820E50D - .incbin "baserom.gba", 0x20E50D, 0x000008A - -gUnk_0820E597:: @ 0820E597 - .incbin "baserom.gba", 0x20E597, 0x0000250 - -gUnk_0820E7E7:: @ 0820E7E7 - .incbin "baserom.gba", 0x20E7E7, 0x0000102 - -gUnk_0820E8E9:: @ 0820E8E9 - .incbin "baserom.gba", 0x20E8E9, 0x000021A - -gUnk_0820EB03:: @ 0820EB03 - .incbin "baserom.gba", 0x20EB03, 0x000000C - -gUnk_0820EB0F:: @ 0820EB0F - .incbin "baserom.gba", 0x20EB0F, 0x0000075 - -gUnk_0820EB84:: @ 0820EB84 - .incbin "baserom.gba", 0x20EB84, 0x000009F - -gUnk_0820EC23:: @ 0820EC23 - .incbin "baserom.gba", 0x20EC23, 0x0000120 - -gUnk_0820ED43:: @ 0820ED43 - .incbin "baserom.gba", 0x20ED43, 0x0000021 - -gUnk_0820ED64:: @ 0820ED64 - .incbin "baserom.gba", 0x20ED64, 0x0000127 - -gUnk_0820EE8B:: @ 0820EE8B - .incbin "baserom.gba", 0x20EE8B, 0x0000175 - -gUnk_0820F000:: @ 0820F000 - .incbin "baserom.gba", 0x20F000, 0x00000E0 - -gUnk_0820F0E0:: @ 0820F0E0 - .incbin "baserom.gba", 0x20F0E0, 0x0000A4F - -gUnk_0820FB2F:: @ 0820FB2F - .incbin "baserom.gba", 0x20FB2F, 0x0000045 - -gUnk_0820FB74:: @ 0820FB74 - .incbin "baserom.gba", 0x20FB74, 0x0000388 - -gUnk_0820FEFC:: @ 0820FEFC - .incbin "baserom.gba", 0x20FEFC, 0x0000056 - -gUnk_0820FF52:: @ 0820FF52 - .incbin "baserom.gba", 0x20FF52, 0x000003B - -gUnk_0820FF8D:: @ 0820FF8D - .incbin "baserom.gba", 0x20FF8D, 0x0000019 - -gUnk_0820FFA6:: @ 0820FFA6 - .incbin "baserom.gba", 0x20FFA6, 0x000005A - -gUnk_08210000:: @ 08210000 - .incbin "baserom.gba", 0x210000, 0x0000024 - -gUnk_08210024:: @ 08210024 - .incbin "baserom.gba", 0x210024, 0x0000063 - -gUnk_08210087:: @ 08210087 - .incbin "baserom.gba", 0x210087, 0x0000052 - -gUnk_082100D9:: @ 082100D9 - .incbin "baserom.gba", 0x2100D9, 0x0000127 - -gUnk_08210200:: @ 08210200 - .incbin "baserom.gba", 0x210200, 0x0000120 - -gUnk_08210320:: @ 08210320 - .incbin "baserom.gba", 0x210320, 0x00001BC - -gUnk_082104DC:: @ 082104DC - .incbin "baserom.gba", 0x2104DC, 0x0000325 - -gUnk_08210801:: @ 08210801 - .incbin "baserom.gba", 0x210801, 0x00001E0 - -gUnk_082109E1:: @ 082109E1 - .incbin "baserom.gba", 0x2109E1, 0x000030A - -gUnk_08210CEB:: @ 08210CEB - .incbin "baserom.gba", 0x210CEB, 0x0000222 - -gUnk_08210F0D:: @ 08210F0D - .incbin "baserom.gba", 0x210F0D, 0x00000D3 - -gUnk_08210FE0:: @ 08210FE0 - .incbin "baserom.gba", 0x210FE0, 0x0000142 - -gUnk_08211122:: @ 08211122 - .incbin "baserom.gba", 0x211122, 0x0000133 - -gUnk_08211255:: @ 08211255 - .incbin "baserom.gba", 0x211255, 0x000000D - -gUnk_08211262:: @ 08211262 - .incbin "baserom.gba", 0x211262, 0x0000093 - -gUnk_082112F5:: @ 082112F5 - .incbin "baserom.gba", 0x2112F5, 0x0000838 - -gUnk_08211B2D:: @ 08211B2D - .incbin "baserom.gba", 0x211B2D, 0x00001CD - -gUnk_08211CFA:: @ 08211CFA - .incbin "baserom.gba", 0x211CFA, 0x000010C - -gUnk_08211E06:: @ 08211E06 - .incbin "baserom.gba", 0x211E06, 0x000029B - -gUnk_082120A1:: @ 082120A1 - .incbin "baserom.gba", 0x2120A1, 0x0000259 - -gUnk_082122FA:: @ 082122FA - .incbin "baserom.gba", 0x2122FA, 0x0000010 - -gUnk_0821230A:: @ 0821230A - .incbin "baserom.gba", 0x21230A, 0x0000723 - -gUnk_08212A2D:: @ 08212A2D - .incbin "baserom.gba", 0x212A2D, 0x00003F9 - -gUnk_08212E26:: @ 08212E26 - .incbin "baserom.gba", 0x212E26, 0x00000F2 - -gUnk_08212F18:: @ 08212F18 - .incbin "baserom.gba", 0x212F18, 0x0000116 - -gUnk_0821302E:: @ 0821302E - .incbin "baserom.gba", 0x21302E, 0x000000B - -gUnk_08213039:: @ 08213039 - .incbin "baserom.gba", 0x213039, 0x00000F3 - -gUnk_0821312C:: @ 0821312C - .incbin "baserom.gba", 0x21312C, 0x00001F6 - -gUnk_08213322:: @ 08213322 - .incbin "baserom.gba", 0x213322, 0x000001A - -gUnk_0821333C:: @ 0821333C - .incbin "baserom.gba", 0x21333C, 0x0000407 - -gUnk_08213743:: @ 08213743 - .incbin "baserom.gba", 0x213743, 0x0000312 - -gUnk_08213A55:: @ 08213A55 - .incbin "baserom.gba", 0x213A55, 0x00001EF - -gUnk_08213C44:: @ 08213C44 - .incbin "baserom.gba", 0x213C44, 0x0000010 - -gUnk_08213C54:: @ 08213C54 - .incbin "baserom.gba", 0x213C54, 0x00003AB - -gUnk_08213FFF:: @ 08213FFF - .incbin "baserom.gba", 0x213FFF, 0x0000108 - -gUnk_08214107:: @ 08214107 - .incbin "baserom.gba", 0x214107, 0x0000150 - -gUnk_08214257:: @ 08214257 - .incbin "baserom.gba", 0x214257, 0x0000001 - -gUnk_08214258:: @ 08214258 - .incbin "baserom.gba", 0x214258, 0x000035F - -gUnk_082145B7:: @ 082145B7 - .incbin "baserom.gba", 0x2145B7, 0x00005C7 - -gUnk_08214B7E:: @ 08214B7E - .incbin "baserom.gba", 0x214B7E, 0x0000C81 - -gUnk_082157FF:: @ 082157FF - .incbin "baserom.gba", 0x2157FF, 0x000377A - -gUnk_08218F79:: @ 08218F79 - .incbin "baserom.gba", 0x218F79, 0x000309F - -gUnk_0821C018:: @ 0821C018 - .incbin "baserom.gba", 0x21C018, 0x0002FE7 - -gUnk_0821EFFF:: @ 0821EFFF - .incbin "baserom.gba", 0x21EFFF, 0x00000F1 - -gUnk_0821F0F0:: @ 0821F0F0 - .incbin "baserom.gba", 0x21F0F0, 0x0000F11 - -gUnk_08220001:: @ 08220001 - .incbin "baserom.gba", 0x220001, 0x0000100 - -gUnk_08220101:: @ 08220101 - .incbin "baserom.gba", 0x220101, 0x0000002 - -gUnk_08220103:: @ 08220103 - .incbin "baserom.gba", 0x220103, 0x00001D2 - -gUnk_082202D5:: @ 082202D5 - .incbin "baserom.gba", 0x2202D5, 0x000002B - -gUnk_08220300:: @ 08220300 - .incbin "baserom.gba", 0x220300, 0x00002F7 - -gUnk_082205F7:: @ 082205F7 - .incbin "baserom.gba", 0x2205F7, 0x000073D - -gUnk_08220D34:: @ 08220D34 - .incbin "baserom.gba", 0x220D34, 0x00001BE - -gUnk_08220EF2:: @ 08220EF2 - .incbin "baserom.gba", 0x220EF2, 0x0000227 - -gUnk_08221119:: @ 08221119 - .incbin "baserom.gba", 0x221119, 0x00004E2 - -gUnk_082215FB:: @ 082215FB - .incbin "baserom.gba", 0x2215FB, 0x00003F6 - -gUnk_082219F1:: @ 082219F1 - .incbin "baserom.gba", 0x2219F1, 0x0000027 - -gUnk_08221A18:: @ 08221A18 - .incbin "baserom.gba", 0x221A18, 0x00001D6 - -gUnk_08221BEE:: @ 08221BEE - .incbin "baserom.gba", 0x221BEE, 0x0000212 - -gUnk_08221E00:: @ 08221E00 - .incbin "baserom.gba", 0x221E00, 0x00004EE - -gUnk_082222EE:: @ 082222EE - .incbin "baserom.gba", 0x2222EE, 0x0000056 - -gUnk_08222344:: @ 08222344 - .incbin "baserom.gba", 0x222344, 0x00000EF - -gUnk_08222433:: @ 08222433 - .incbin "baserom.gba", 0x222433, 0x0000055 - -gUnk_08222488:: @ 08222488 - .incbin "baserom.gba", 0x222488, 0x00001A5 - -gUnk_0822262D:: @ 0822262D - .incbin "baserom.gba", 0x22262D, 0x00004DA - -gUnk_08222B07:: @ 08222B07 - .incbin "baserom.gba", 0x222B07, 0x0000428 - -gUnk_08222F2F:: @ 08222F2F - .incbin "baserom.gba", 0x222F2F, 0x00000D8 - -gUnk_08223007:: @ 08223007 - .incbin "baserom.gba", 0x223007, 0x000022B - -gUnk_08223232:: @ 08223232 - .incbin "baserom.gba", 0x223232, 0x0000001 - -gUnk_08223233:: @ 08223233 - .incbin "baserom.gba", 0x223233, 0x0000210 - -gUnk_08223443:: @ 08223443 - .incbin "baserom.gba", 0x223443, 0x0000002 - -gUnk_08223445:: @ 08223445 - .incbin "baserom.gba", 0x223445, 0x000000E - -gUnk_08223453:: @ 08223453 - .incbin "baserom.gba", 0x223453, 0x00000D6 - -gUnk_08223529:: @ 08223529 - .incbin "baserom.gba", 0x223529, 0x0000014 - -gUnk_0822353D:: @ 0822353D - .incbin "baserom.gba", 0x22353D, 0x0000207 - -gUnk_08223744:: @ 08223744 - .incbin "baserom.gba", 0x223744, 0x0000E13 - -gUnk_08224557:: @ 08224557 - .incbin "baserom.gba", 0x224557, 0x00006F4 - -gUnk_08224C4B:: @ 08224C4B - .incbin "baserom.gba", 0x224C4B, 0x00002EA - -gUnk_08224F35:: @ 08224F35 - .incbin "baserom.gba", 0x224F35, 0x0000ED5 - -gUnk_08225E0A:: @ 08225E0A - .incbin "baserom.gba", 0x225E0A, 0x00021ED - -gUnk_08227FF7:: @ 08227FF7 - .incbin "baserom.gba", 0x227FF7, 0x0001014 - -gUnk_0822900B:: @ 0822900B - .incbin "baserom.gba", 0x22900B, 0x000019F - -gUnk_082291AA:: @ 082291AA - .incbin "baserom.gba", 0x2291AA, 0x0000B79 - -gUnk_08229D23:: @ 08229D23 - .incbin "baserom.gba", 0x229D23, 0x00007CB - -gUnk_0822A4EE:: @ 0822A4EE - .incbin "baserom.gba", 0x22A4EE, 0x0000F19 - -gUnk_0822B407:: @ 0822B407 - .incbin "baserom.gba", 0x22B407, 0x0002414 - -gUnk_0822D81B:: @ 0822D81B - .incbin "baserom.gba", 0x22D81B, 0x00013D5 - -gUnk_0822EBF0:: @ 0822EBF0 - .incbin "baserom.gba", 0x22EBF0, 0x0000413 - -gUnk_0822F003:: @ 0822F003 - .incbin "baserom.gba", 0x22F003, 0x0000401 - -gUnk_0822F404:: @ 0822F404 - .incbin "baserom.gba", 0x22F404, 0x00004CE - -gUnk_0822F8D2:: @ 0822F8D2 - .incbin "baserom.gba", 0x22F8D2, 0x0000010 - -gUnk_0822F8E2:: @ 0822F8E2 - .incbin "baserom.gba", 0x22F8E2, 0x00001D8 - -gUnk_0822FABA:: @ 0822FABA - .incbin "baserom.gba", 0x22FABA, 0x0000846 - -gUnk_08230300:: @ 08230300 - .incbin "baserom.gba", 0x230300, 0x00005A6 - -gUnk_082308A6:: @ 082308A6 - .incbin "baserom.gba", 0x2308A6, 0x0000038 - -gUnk_082308DE:: @ 082308DE - .incbin "baserom.gba", 0x2308DE, 0x0000347 - -gUnk_08230C25:: @ 08230C25 - .incbin "baserom.gba", 0x230C25, 0x00000B9 - -gUnk_08230CDE:: @ 08230CDE - .incbin "baserom.gba", 0x230CDE, 0x000060C - -gUnk_082312EA:: @ 082312EA - .incbin "baserom.gba", 0x2312EA, 0x0000424 - -gUnk_0823170E:: @ 0823170E - .incbin "baserom.gba", 0x23170E, 0x000052F - -gUnk_08231C3D:: @ 08231C3D - .incbin "baserom.gba", 0x231C3D, 0x00000D5 - -gUnk_08231D12:: @ 08231D12 - .incbin "baserom.gba", 0x231D12, 0x000000C - -gUnk_08231D1E:: @ 08231D1E - .incbin "baserom.gba", 0x231D1E, 0x00000F5 - -gUnk_08231E13:: @ 08231E13 - .incbin "baserom.gba", 0x231E13, 0x0000104 - -gUnk_08231F17:: @ 08231F17 - .incbin "baserom.gba", 0x231F17, 0x00001C1 - -gUnk_082320D8:: @ 082320D8 - .incbin "baserom.gba", 0x2320D8, 0x000015D - -gUnk_08232235:: @ 08232235 - .incbin "baserom.gba", 0x232235, 0x0000075 - -gUnk_082322AA:: @ 082322AA - .incbin "baserom.gba", 0x2322AA, 0x000015C - -gUnk_08232406:: @ 08232406 - .incbin "baserom.gba", 0x232406, 0x000003F - -gUnk_08232445:: @ 08232445 - .incbin "baserom.gba", 0x232445, 0x00001CB - -gUnk_08232610:: @ 08232610 - .incbin "baserom.gba", 0x232610, 0x000020C - -gUnk_0823281C:: @ 0823281C - .incbin "baserom.gba", 0x23281C, 0x00000F5 - -gUnk_08232911:: @ 08232911 - .incbin "baserom.gba", 0x232911, 0x000011C - -gUnk_08232A2D:: @ 08232A2D - .incbin "baserom.gba", 0x232A2D, 0x00000E1 - -gUnk_08232B0E:: @ 08232B0E - .incbin "baserom.gba", 0x232B0E, 0x000000F - -gUnk_08232B1D:: @ 08232B1D - .incbin "baserom.gba", 0x232B1D, 0x0000006 - -gUnk_08232B23:: @ 08232B23 - .incbin "baserom.gba", 0x232B23, 0x00001C8 - -gUnk_08232CEB:: @ 08232CEB - .incbin "baserom.gba", 0x232CEB, 0x000002D - -gUnk_08232D18:: @ 08232D18 - .incbin "baserom.gba", 0x232D18, 0x0000015 - -gUnk_08232D2D:: @ 08232D2D - .incbin "baserom.gba", 0x232D2D, 0x0000007 - -gUnk_08232D34:: @ 08232D34 - .incbin "baserom.gba", 0x232D34, 0x000015D - -gUnk_08232E91:: @ 08232E91 - .incbin "baserom.gba", 0x232E91, 0x000007C - -gUnk_08232F0D:: @ 08232F0D - .incbin "baserom.gba", 0x232F0D, 0x000000A - -gUnk_08232F17:: @ 08232F17 - .incbin "baserom.gba", 0x232F17, 0x000001F - -gUnk_08232F36:: @ 08232F36 - .incbin "baserom.gba", 0x232F36, 0x00000F3 - -gUnk_08233029:: @ 08233029 - .incbin "baserom.gba", 0x233029, 0x0000006 - -gUnk_0823302F:: @ 0823302F - .incbin "baserom.gba", 0x23302F, 0x0000008 - -gUnk_08233037:: @ 08233037 - .incbin "baserom.gba", 0x233037, 0x00001F4 - -gUnk_0823322B:: @ 0823322B - .incbin "baserom.gba", 0x23322B, 0x00000EB - -gUnk_08233316:: @ 08233316 - .incbin "baserom.gba", 0x233316, 0x000001D - -gUnk_08233333:: @ 08233333 - .incbin "baserom.gba", 0x233333, 0x0000002 - -gUnk_08233335:: @ 08233335 - .incbin "baserom.gba", 0x233335, 0x0000064 - -gUnk_08233399:: @ 08233399 - .incbin "baserom.gba", 0x233399, 0x000008A - -gUnk_08233423:: @ 08233423 - .incbin "baserom.gba", 0x233423, 0x000000E - -gUnk_08233431:: @ 08233431 - .incbin "baserom.gba", 0x233431, 0x0000003 - -gUnk_08233434:: @ 08233434 - .incbin "baserom.gba", 0x233434, 0x000020D - -gUnk_08233641:: @ 08233641 - .incbin "baserom.gba", 0x233641, 0x0000021 - -gUnk_08233662:: @ 08233662 - .incbin "baserom.gba", 0x233662, 0x00000D6 - -gUnk_08233738:: @ 08233738 - .incbin "baserom.gba", 0x233738, 0x0000103 - -gUnk_0823383B:: @ 0823383B - .incbin "baserom.gba", 0x23383B, 0x0000217 - -gUnk_08233A52:: @ 08233A52 - .incbin "baserom.gba", 0x233A52, 0x0000009 - -gUnk_08233A5B:: @ 08233A5B - .incbin "baserom.gba", 0x233A5B, 0x000012E - -gUnk_08233B89:: @ 08233B89 - .incbin "baserom.gba", 0x233B89, 0x00000BD - -gUnk_08233C46:: @ 08233C46 - .incbin "baserom.gba", 0x233C46, 0x000030F - -gUnk_08233F55:: @ 08233F55 - .incbin "baserom.gba", 0x233F55, 0x00002CC - -gUnk_08234221:: @ 08234221 - .incbin "baserom.gba", 0x234221, 0x000021A - -gUnk_0823443B:: @ 0823443B - .incbin "baserom.gba", 0x23443B, 0x0000207 - -gUnk_08234642:: @ 08234642 - .incbin "baserom.gba", 0x234642, 0x0000BA7 - -gUnk_082351E9:: @ 082351E9 - .incbin "baserom.gba", 0x2351E9, 0x0000265 - -gUnk_0823544E:: @ 0823544E - .incbin "baserom.gba", 0x23544E, 0x00005FF - -gUnk_08235A4D:: @ 08235A4D - .incbin "baserom.gba", 0x235A4D, 0x00009EE - -gUnk_0823643B:: @ 0823643B - .incbin "baserom.gba", 0x23643B, 0x0002AC8 - -gUnk_08238F03:: @ 08238F03 - .incbin "baserom.gba", 0x238F03, 0x0001BA6 - -gUnk_0823AAA9:: @ 0823AAA9 - .incbin "baserom.gba", 0x23AAA9, 0x0001C6C - -gUnk_0823C715:: @ 0823C715 - .incbin "baserom.gba", 0x23C715, 0x00013EF - -gUnk_0823DB04:: @ 0823DB04 - .incbin "baserom.gba", 0x23DB04, 0x0000FFC - -gUnk_0823EB00:: @ 0823EB00 - .incbin "baserom.gba", 0x23EB00, 0x0001109 - -gUnk_0823FC09:: @ 0823FC09 - .incbin "baserom.gba", 0x23FC09, 0x00003F7 - -gUnk_08240000:: @ 08240000 - .incbin "baserom.gba", 0x240000, 0x000000F - -gUnk_0824000F:: @ 0824000F - .incbin "baserom.gba", 0x24000F, 0x00000FA - -gUnk_08240109:: @ 08240109 - .incbin "baserom.gba", 0x240109, 0x000001A - -gUnk_08240123:: @ 08240123 - .incbin "baserom.gba", 0x240123, 0x00001DD - -gUnk_08240300:: @ 08240300 - .incbin "baserom.gba", 0x240300, 0x0000CE5 - -gUnk_08240FE5:: @ 08240FE5 - .incbin "baserom.gba", 0x240FE5, 0x000041A - -gUnk_082413FF:: @ 082413FF - .incbin "baserom.gba", 0x2413FF, 0x0000915 - -gUnk_08241D14:: @ 08241D14 - .incbin "baserom.gba", 0x241D14, 0x00002FF - -gUnk_08242013:: @ 08242013 - .incbin "baserom.gba", 0x242013, 0x00000E5 - -gUnk_082420F8:: @ 082420F8 - .incbin "baserom.gba", 0x2420F8, 0x000000C - -gUnk_08242104:: @ 08242104 - .incbin "baserom.gba", 0x242104, 0x000012E - -gUnk_08242232:: @ 08242232 - .incbin "baserom.gba", 0x242232, 0x00000A5 - -gUnk_082422D7:: @ 082422D7 - .incbin "baserom.gba", 0x2422D7, 0x000063F - -gUnk_08242916:: @ 08242916 - .incbin "baserom.gba", 0x242916, 0x0000122 - -gUnk_08242A38:: @ 08242A38 - .incbin "baserom.gba", 0x242A38, 0x00003E8 - -gUnk_08242E20:: @ 08242E20 - .incbin "baserom.gba", 0x242E20, 0x0000106 - -gUnk_08242F26:: @ 08242F26 - .incbin "baserom.gba", 0x242F26, 0x00001EB - -gUnk_08243111:: @ 08243111 - .incbin "baserom.gba", 0x243111, 0x0000121 - -gUnk_08243232:: @ 08243232 - .incbin "baserom.gba", 0x243232, 0x00006FB - -gUnk_0824392D:: @ 0824392D - .incbin "baserom.gba", 0x24392D, 0x0000016 - -gUnk_08243943:: @ 08243943 - .incbin "baserom.gba", 0x243943, 0x0000002 - -gUnk_08243945:: @ 08243945 - .incbin "baserom.gba", 0x243945, 0x0000202 - -gUnk_08243B47:: @ 08243B47 - .incbin "baserom.gba", 0x243B47, 0x0000002 - -gUnk_08243B49:: @ 08243B49 - .incbin "baserom.gba", 0x243B49, 0x000008D - -gUnk_08243BD6:: @ 08243BD6 - .incbin "baserom.gba", 0x243BD6, 0x0000267 - -gUnk_08243E3D:: @ 08243E3D - .incbin "baserom.gba", 0x243E3D, 0x000000F - -gUnk_08243E4C:: @ 08243E4C - .incbin "baserom.gba", 0x243E4C, 0x00000FC - -gUnk_08243F48:: @ 08243F48 - .incbin "baserom.gba", 0x243F48, 0x000032C - -gUnk_08244274:: @ 08244274 - .incbin "baserom.gba", 0x244274, 0x00000E1 - -gUnk_08244355:: @ 08244355 - .incbin "baserom.gba", 0x244355, 0x0000608 - -gUnk_0824495D:: @ 0824495D - .incbin "baserom.gba", 0x24495D, 0x0000BD8 - -gUnk_08245535:: @ 08245535 - .incbin "baserom.gba", 0x245535, 0x00005CB - -gUnk_08245B00:: @ 08245B00 - .incbin "baserom.gba", 0x245B00, 0x00019D4 - -gUnk_082474D4:: @ 082474D4 - .incbin "baserom.gba", 0x2474D4, 0x0004C0C - -gUnk_0824C0E0:: @ 0824C0E0 - .incbin "baserom.gba", 0x24C0E0, 0x00007C0 - -gUnk_0824C8A0:: @ 0824C8A0 - .incbin "baserom.gba", 0x24C8A0, 0x0001973 - -gUnk_0824E213:: @ 0824E213 - .incbin "baserom.gba", 0x24E213, 0x0000111 - -gUnk_0824E324:: @ 0824E324 - .incbin "baserom.gba", 0x24E324, 0x00001BF - -gUnk_0824E4E3:: @ 0824E4E3 - .incbin "baserom.gba", 0x24E4E3, 0x000031D - -gUnk_0824E800:: @ 0824E800 - .incbin "baserom.gba", 0x24E800, 0x00001B7 - -gUnk_0824E9B7:: @ 0824E9B7 - .incbin "baserom.gba", 0x24E9B7, 0x0001659 - -gUnk_08250010:: @ 08250010 - .incbin "baserom.gba", 0x250010, 0x0000030 - -gUnk_08250040:: @ 08250040 - .incbin "baserom.gba", 0x250040, 0x00000C7 - -gUnk_08250107:: @ 08250107 - .incbin "baserom.gba", 0x250107, 0x00002EF - -gUnk_082503F6:: @ 082503F6 - .incbin "baserom.gba", 0x2503F6, 0x000002E - -gUnk_08250424:: @ 08250424 - .incbin "baserom.gba", 0x250424, 0x0000C74 - -gUnk_08251098:: @ 08251098 - .incbin "baserom.gba", 0x251098, 0x0000071 - -gUnk_08251109:: @ 08251109 - .incbin "baserom.gba", 0x251109, 0x00002B3 - -gUnk_082513BC:: @ 082513BC - .incbin "baserom.gba", 0x2513BC, 0x0000B50 - -gUnk_08251F0C:: @ 08251F0C - .incbin "baserom.gba", 0x251F0C, 0x00001F9 - -gUnk_08252105:: @ 08252105 - .incbin "baserom.gba", 0x252105, 0x0000039 - -gUnk_0825213E:: @ 0825213E - .incbin "baserom.gba", 0x25213E, 0x00006DA - -gUnk_08252818:: @ 08252818 - .incbin "baserom.gba", 0x252818, 0x00008C2 - -gUnk_082530DA:: @ 082530DA - .incbin "baserom.gba", 0x2530DA, 0x0000259 - -gUnk_08253333:: @ 08253333 - .incbin "baserom.gba", 0x253333, 0x0000610 - -gUnk_08253943:: @ 08253943 - .incbin "baserom.gba", 0x253943, 0x00001FE - -gUnk_08253B41:: @ 08253B41 - .incbin "baserom.gba", 0x253B41, 0x0000109 - -gUnk_08253C4A:: @ 08253C4A - .incbin "baserom.gba", 0x253C4A, 0x0000309 - -gUnk_08253F53:: @ 08253F53 - .incbin "baserom.gba", 0x253F53, 0x0000503 - -gUnk_08254456:: @ 08254456 - .incbin "baserom.gba", 0x254456, 0x00010E5 - -gUnk_0825553B:: @ 0825553B - .incbin "baserom.gba", 0x25553B, 0x0000018 - -gUnk_08255553:: @ 08255553 - .incbin "baserom.gba", 0x255553, 0x0000068 - -gUnk_082555BB:: @ 082555BB - .incbin "baserom.gba", 0x2555BB, 0x0000FC3 - -gUnk_0825657E:: @ 0825657E - .incbin "baserom.gba", 0x25657E, 0x0007F37 - -gUnk_0825E4B5:: @ 0825E4B5 - .incbin "baserom.gba", 0x25E4B5, 0x0000344 - -gUnk_0825E7F9:: @ 0825E7F9 - .incbin "baserom.gba", 0x25E7F9, 0x0001808 - -gUnk_08260001:: @ 08260001 - .incbin "baserom.gba", 0x260001, 0x0000007 - -gUnk_08260008:: @ 08260008 - .incbin "baserom.gba", 0x260008, 0x0000038 - -gUnk_08260040:: @ 08260040 - .incbin "baserom.gba", 0x260040, 0x0000094 - -gUnk_082600D4:: @ 082600D4 - .incbin "baserom.gba", 0x2600D4, 0x0000300 - -gUnk_082603D4:: @ 082603D4 - .incbin "baserom.gba", 0x2603D4, 0x0000051 - -gUnk_08260425:: @ 08260425 - .incbin "baserom.gba", 0x260425, 0x0000034 - -gUnk_08260459:: @ 08260459 - .incbin "baserom.gba", 0x260459, 0x00002A9 - -gUnk_08260702:: @ 08260702 - .incbin "baserom.gba", 0x260702, 0x00004AE - -gUnk_08260BB0:: @ 08260BB0 - .incbin "baserom.gba", 0x260BB0, 0x0000348 - -gUnk_08260EF8:: @ 08260EF8 - .incbin "baserom.gba", 0x260EF8, 0x0000011 - -gUnk_08260F09:: @ 08260F09 - .incbin "baserom.gba", 0x260F09, 0x0000D6C - -gUnk_08261C75:: @ 08261C75 - .incbin "baserom.gba", 0x261C75, 0x000009E - -gUnk_08261D13:: @ 08261D13 - .incbin "baserom.gba", 0x261D13, 0x0000401 - -gUnk_08262114:: @ 08262114 - .incbin "baserom.gba", 0x262114, 0x00004F1 - -gUnk_08262605:: @ 08262605 - .incbin "baserom.gba", 0x262605, 0x0000316 - -gUnk_0826291B:: @ 0826291B - .incbin "baserom.gba", 0x26291B, 0x0000307 - -gUnk_08262C22:: @ 08262C22 - .incbin "baserom.gba", 0x262C22, 0x0000407 - -gUnk_08263029:: @ 08263029 - .incbin "baserom.gba", 0x263029, 0x00002FA - -gUnk_08263323:: @ 08263323 - .incbin "baserom.gba", 0x263323, 0x000051D - -gUnk_08263840:: @ 08263840 - .incbin "baserom.gba", 0x263840, 0x0000206 - -gUnk_08263A46:: @ 08263A46 - .incbin "baserom.gba", 0x263A46, 0x0000508 - -gUnk_08263F4E:: @ 08263F4E - .incbin "baserom.gba", 0x263F4E, 0x0000005 - -gUnk_08263F53:: @ 08263F53 - .incbin "baserom.gba", 0x263F53, 0x00001FD - -gUnk_08264150:: @ 08264150 - .incbin "baserom.gba", 0x264150, 0x00003E0 - -gUnk_08264530:: @ 08264530 - .incbin "baserom.gba", 0x264530, 0x0000335 - -gUnk_08264865:: @ 08264865 - .incbin "baserom.gba", 0x264865, 0x00002D8 - -gUnk_08264B3D:: @ 08264B3D - .incbin "baserom.gba", 0x264B3D, 0x000031C - -gUnk_08264E59:: @ 08264E59 - .incbin "baserom.gba", 0x264E59, 0x0000113 - -gUnk_08264F6C:: @ 08264F6C - .incbin "baserom.gba", 0x264F6C, 0x000835A - -gUnk_0826D2C6:: @ 0826D2C6 - .incbin "baserom.gba", 0x26D2C6, 0x0000530 - -gUnk_0826D7F6:: @ 0826D7F6 - .incbin "baserom.gba", 0x26D7F6, 0x0000990 - -gUnk_0826E186:: @ 0826E186 - .incbin "baserom.gba", 0x26E186, 0x0000C68 - -gUnk_0826EDEE:: @ 0826EDEE - .incbin "baserom.gba", 0x26EDEE, 0x00011FE - -gUnk_0826FFEC:: @ 0826FFEC - .incbin "baserom.gba", 0x26FFEC, 0x0000014 - -gUnk_08270000:: @ 08270000 - .incbin "baserom.gba", 0x270000, 0x0000001 - -gUnk_08270001:: @ 08270001 - .incbin "baserom.gba", 0x270001, 0x000000F - -gUnk_08270010:: @ 08270010 - .incbin "baserom.gba", 0x270010, 0x0000001 - -gUnk_08270011:: @ 08270011 - .incbin "baserom.gba", 0x270011, 0x00000E0 - -gUnk_082700F1:: @ 082700F1 - .incbin "baserom.gba", 0x2700F1, 0x00000E7 - -gUnk_082701D8:: @ 082701D8 - .incbin "baserom.gba", 0x2701D8, 0x000042E - -gUnk_08270606:: @ 08270606 - .incbin "baserom.gba", 0x270606, 0x000011A - -gUnk_08270720:: @ 08270720 - .incbin "baserom.gba", 0x270720, 0x00002CD - -gUnk_082709ED:: @ 082709ED - .incbin "baserom.gba", 0x2709ED, 0x000051C - -gUnk_08270F09:: @ 08270F09 - .incbin "baserom.gba", 0x270F09, 0x00000F8 - -gUnk_08271001:: @ 08271001 - .incbin "baserom.gba", 0x271001, 0x0000065 - -gUnk_08271066:: @ 08271066 - .incbin "baserom.gba", 0x271066, 0x000025C - -gUnk_082712C2:: @ 082712C2 - .incbin "baserom.gba", 0x2712C2, 0x0000033 - -gUnk_082712F5:: @ 082712F5 - .incbin "baserom.gba", 0x2712F5, 0x00001E8 - -gUnk_082714DD:: @ 082714DD - .incbin "baserom.gba", 0x2714DD, 0x0000A1E - -gUnk_08271EFB:: @ 08271EFB - .incbin "baserom.gba", 0x271EFB, 0x0000718 - -gUnk_08272613:: @ 08272613 - .incbin "baserom.gba", 0x272613, 0x0000204 - -gUnk_08272817:: @ 08272817 - .incbin "baserom.gba", 0x272817, 0x00000E1 - -gUnk_082728F8:: @ 082728F8 - .incbin "baserom.gba", 0x2728F8, 0x0000023 - -gUnk_0827291B:: @ 0827291B - .incbin "baserom.gba", 0x27291B, 0x00001F8 - -gUnk_08272B13:: @ 08272B13 - .incbin "baserom.gba", 0x272B13, 0x000024D - -gUnk_08272D60:: @ 08272D60 - .incbin "baserom.gba", 0x272D60, 0x00001CD - -gUnk_08272F2D:: @ 08272F2D - .incbin "baserom.gba", 0x272F2D, 0x00006F5 - -gUnk_08273622:: @ 08273622 - .incbin "baserom.gba", 0x273622, 0x000031C - -gUnk_0827393E:: @ 0827393E - .incbin "baserom.gba", 0x27393E, 0x000040F - -gUnk_08273D4D:: @ 08273D4D - .incbin "baserom.gba", 0x273D4D, 0x0000101 - -gUnk_08273E4E:: @ 08273E4E - .incbin "baserom.gba", 0x273E4E, 0x00003DC - -gUnk_0827422A:: @ 0827422A - .incbin "baserom.gba", 0x27422A, 0x0000422 - -gUnk_0827464C:: @ 0827464C - .incbin "baserom.gba", 0x27464C, 0x0000011 - -gUnk_0827465D:: @ 0827465D - .incbin "baserom.gba", 0x27465D, 0x0002CAE - -gUnk_0827730B:: @ 0827730B - .incbin "baserom.gba", 0x27730B, 0x0001D03 - -gUnk_0827900E:: @ 0827900E - .incbin "baserom.gba", 0x27900E, 0x0004412 - -gUnk_0827D420:: @ 0827D420 - .incbin "baserom.gba", 0x27D420, 0x0000FEC - -gUnk_0827E40C:: @ 0827E40C - .incbin "baserom.gba", 0x27E40C, 0x000120A - -gUnk_0827F616:: @ 0827F616 - .incbin "baserom.gba", 0x27F616, 0x00009F3 - -gUnk_08280009:: @ 08280009 - .incbin "baserom.gba", 0x280009, 0x000001E - -gUnk_08280027:: @ 08280027 - .incbin "baserom.gba", 0x280027, 0x0000F01 - -gUnk_08280F28:: @ 08280F28 - .incbin "baserom.gba", 0x280F28, 0x00003CB - -gUnk_082812F3:: @ 082812F3 - .incbin "baserom.gba", 0x2812F3, 0x0000F8E - -gUnk_08282281:: @ 08282281 - .incbin "baserom.gba", 0x282281, 0x0000679 - -gUnk_082828FA:: @ 082828FA - .incbin "baserom.gba", 0x2828FA, 0x000042E - -gUnk_08282D28:: @ 08282D28 - .incbin "baserom.gba", 0x282D28, 0x0000013 - -gUnk_08282D3B:: @ 08282D3B - .incbin "baserom.gba", 0x282D3B, 0x0000202 - -gUnk_08282F3D:: @ 08282F3D - .incbin "baserom.gba", 0x282F3D, 0x00002E1 - -gUnk_0828321E:: @ 0828321E - .incbin "baserom.gba", 0x28321E, 0x00003FB - -gUnk_08283619:: @ 08283619 - .incbin "baserom.gba", 0x283619, 0x0000A3A - -gUnk_08284053:: @ 08284053 - .incbin "baserom.gba", 0x284053, 0x0000301 - -gUnk_08284354:: @ 08284354 - .incbin "baserom.gba", 0x284354, 0x00000D9 - -gUnk_0828442D:: @ 0828442D - .incbin "baserom.gba", 0x28442D, 0x0000332 - -gUnk_0828475F:: @ 0828475F - .incbin "baserom.gba", 0x28475F, 0x00002F0 - -gUnk_08284A4F:: @ 08284A4F - .incbin "baserom.gba", 0x284A4F, 0x00015B1 - -gUnk_08286000:: @ 08286000 - .incbin "baserom.gba", 0x286000, 0x000016C - -gUnk_0828616C:: @ 0828616C - .incbin "baserom.gba", 0x28616C, 0x0008C48 - -gUnk_0828EDB4:: @ 0828EDB4 - .incbin "baserom.gba", 0x28EDB4, 0x0000826 - -gUnk_0828F5DA:: @ 0828F5DA - .incbin "baserom.gba", 0x28F5DA, 0x0001009 - -gUnk_082905E3:: @ 082905E3 - .incbin "baserom.gba", 0x2905E3, 0x000011D - -gUnk_08290700:: @ 08290700 - .incbin "baserom.gba", 0x290700, 0x00001EE - -gUnk_082908EE:: @ 082908EE - .incbin "baserom.gba", 0x2908EE, 0x0000017 - -gUnk_08290905:: @ 08290905 - .incbin "baserom.gba", 0x290905, 0x0000601 - -gUnk_08290F06:: @ 08290F06 - .incbin "baserom.gba", 0x290F06, 0x00006E5 - -gUnk_082915EB:: @ 082915EB - .incbin "baserom.gba", 0x2915EB, 0x0000303 - -gUnk_082918EE:: @ 082918EE - .incbin "baserom.gba", 0x2918EE, 0x000078F - -gUnk_0829207D:: @ 0829207D - .incbin "baserom.gba", 0x29207D, 0x0000192 - -gUnk_0829220F:: @ 0829220F - .incbin "baserom.gba", 0x29220F, 0x00005CF - -gUnk_082927DE:: @ 082927DE - .incbin "baserom.gba", 0x2927DE, 0x000003A - -gUnk_08292818:: @ 08292818 - .incbin "baserom.gba", 0x292818, 0x00001F4 - -gUnk_08292A0C:: @ 08292A0C - .incbin "baserom.gba", 0x292A0C, 0x000048D - -gUnk_08292E99:: @ 08292E99 - .incbin "baserom.gba", 0x292E99, 0x0000298 - -gUnk_08293131:: @ 08293131 - .incbin "baserom.gba", 0x293131, 0x0000C27 - -gUnk_08293D58:: @ 08293D58 - .incbin "baserom.gba", 0x293D58, 0x00002FC - -gUnk_08294054:: @ 08294054 - .incbin "baserom.gba", 0x294054, 0x00001FB - -gUnk_0829424F:: @ 0829424F - .incbin "baserom.gba", 0x29424F, 0x0000001 - -gUnk_08294250:: @ 08294250 - .incbin "baserom.gba", 0x294250, 0x000030E - -gUnk_0829455E:: @ 0829455E - .incbin "baserom.gba", 0x29455E, 0x00002F1 - -gUnk_0829484F:: @ 0829484F - .incbin "baserom.gba", 0x29484F, 0x0000205 - -gUnk_08294A54:: @ 08294A54 - .incbin "baserom.gba", 0x294A54, 0x0000106 - -gUnk_08294B5A:: @ 08294B5A - .incbin "baserom.gba", 0x294B5A, 0x00008CB - -gUnk_08295425:: @ 08295425 - .incbin "baserom.gba", 0x295425, 0x0000223 - -gUnk_08295648:: @ 08295648 - .incbin "baserom.gba", 0x295648, 0x0005ABB - -gUnk_0829B103:: @ 0829B103 - .incbin "baserom.gba", 0x29B103, 0x0002DE9 - -gUnk_0829DEEC:: @ 0829DEEC - .incbin "baserom.gba", 0x29DEEC, 0x0002114 - -gUnk_082A0000:: @ 082A0000 - .incbin "baserom.gba", 0x2A0000, 0x0000004 - -gUnk_082A0004:: @ 082A0004 - .incbin "baserom.gba", 0x2A0004, 0x0000005 - -gUnk_082A0009:: @ 082A0009 - .incbin "baserom.gba", 0x2A0009, 0x0000001 - -gUnk_082A000A:: @ 082A000A - .incbin "baserom.gba", 0x2A000A, 0x0000004 - -gUnk_082A000E:: @ 082A000E - .incbin "baserom.gba", 0x2A000E, 0x0000002 - -gUnk_082A0010:: @ 082A0010 - .incbin "baserom.gba", 0x2A0010, 0x0000008 - -gUnk_082A0018:: @ 082A0018 - .incbin "baserom.gba", 0x2A0018, 0x0000004 - -gUnk_082A001C:: @ 082A001C - .incbin "baserom.gba", 0x2A001C, 0x0000017 - -gUnk_082A0033:: @ 082A0033 - .incbin "baserom.gba", 0x2A0033, 0x000003F - -gUnk_082A0072:: @ 082A0072 - .incbin "baserom.gba", 0x2A0072, 0x000038F - -gUnk_082A0401:: @ 082A0401 - .incbin "baserom.gba", 0x2A0401, 0x000000F - -gUnk_082A0410:: @ 082A0410 - .incbin "baserom.gba", 0x2A0410, 0x0000024 - -gUnk_082A0434:: @ 082A0434 - .incbin "baserom.gba", 0x2A0434, 0x000000F - -gUnk_082A0443:: @ 082A0443 - .incbin "baserom.gba", 0x2A0443, 0x0000001 - -gUnk_082A0444:: @ 082A0444 - .incbin "baserom.gba", 0x2A0444, 0x0000010 - -gUnk_082A0454:: @ 082A0454 - .incbin "baserom.gba", 0x2A0454, 0x0000005 - -gUnk_082A0459:: @ 082A0459 - .incbin "baserom.gba", 0x2A0459, 0x000000A - -gUnk_082A0463:: @ 082A0463 - .incbin "baserom.gba", 0x2A0463, 0x0000025 - -gUnk_082A0488:: @ 082A0488 - .incbin "baserom.gba", 0x2A0488, 0x0000379 - -gUnk_082A0801:: @ 082A0801 - .incbin "baserom.gba", 0x2A0801, 0x0000004 - -gUnk_082A0805:: @ 082A0805 - .incbin "baserom.gba", 0x2A0805, 0x0000002 - -gUnk_082A0807:: @ 082A0807 - .incbin "baserom.gba", 0x2A0807, 0x0000022 - -gUnk_082A0829:: @ 082A0829 - .incbin "baserom.gba", 0x2A0829, 0x0000AB5 - -gUnk_082A12DE:: @ 082A12DE - .incbin "baserom.gba", 0x2A12DE, 0x0000106 - -gUnk_082A13E4:: @ 082A13E4 - .incbin "baserom.gba", 0x2A13E4, 0x0000437 - -gUnk_082A181B:: @ 082A181B - .incbin "baserom.gba", 0x2A181B, 0x00003BC - -gUnk_082A1BD7:: @ 082A1BD7 - .incbin "baserom.gba", 0x2A1BD7, 0x0000731 - -gUnk_082A2308:: @ 082A2308 - .incbin "baserom.gba", 0x2A2308, 0x00000F3 - -gUnk_082A23FB:: @ 082A23FB - .incbin "baserom.gba", 0x2A23FB, 0x0000309 - -gUnk_082A2704:: @ 082A2704 - .incbin "baserom.gba", 0x2A2704, 0x00001E5 - -gUnk_082A28E9:: @ 082A28E9 - .incbin "baserom.gba", 0x2A28E9, 0x0000831 - -gUnk_082A311A:: @ 082A311A - .incbin "baserom.gba", 0x2A311A, 0x000090E - -gUnk_082A3A28:: @ 082A3A28 - .incbin "baserom.gba", 0x2A3A28, 0x0000009 - -gUnk_082A3A31:: @ 082A3A31 - .incbin "baserom.gba", 0x2A3A31, 0x00003F4 - -gUnk_082A3E25:: @ 082A3E25 - .incbin "baserom.gba", 0x2A3E25, 0x0000108 - -gUnk_082A3F2D:: @ 082A3F2D - .incbin "baserom.gba", 0x2A3F2D, 0x000041A - -gUnk_082A4347:: @ 082A4347 - .incbin "baserom.gba", 0x2A4347, 0x000000E - -gUnk_082A4355:: @ 082A4355 - .incbin "baserom.gba", 0x2A4355, 0x00000ED - -gUnk_082A4442:: @ 082A4442 - .incbin "baserom.gba", 0x2A4442, 0x000000B - -gUnk_082A444D:: @ 082A444D - .incbin "baserom.gba", 0x2A444D, 0x00000F2 - -gUnk_082A453F:: @ 082A453F - .incbin "baserom.gba", 0x2A453F, 0x0000007 - -gUnk_082A4546:: @ 082A4546 - .incbin "baserom.gba", 0x2A4546, 0x000020E - -gUnk_082A4754:: @ 082A4754 - .incbin "baserom.gba", 0x2A4754, 0x000020E - -gUnk_082A4962:: @ 082A4962 - .incbin "baserom.gba", 0x2A4962, 0x00000D5 - -gUnk_082A4A37:: @ 082A4A37 - .incbin "baserom.gba", 0x2A4A37, 0x0000020 - -gUnk_082A4A57:: @ 082A4A57 - .incbin "baserom.gba", 0x2A4A57, 0x0000603 - -gUnk_082A505A:: @ 082A505A - .incbin "baserom.gba", 0x2A505A, 0x0005CB1 - -gUnk_082AAD0B:: @ 082AAD0B - .incbin "baserom.gba", 0x2AAD0B, 0x0000EAF - -gUnk_082ABBBA:: @ 082ABBBA - .incbin "baserom.gba", 0x2ABBBA, 0x0000332 - -gUnk_082ABEEC:: @ 082ABEEC - .incbin "baserom.gba", 0x2ABEEC, 0x000270A - -gUnk_082AE5F6:: @ 082AE5F6 - .incbin "baserom.gba", 0x2AE5F6, 0x000020F - -gUnk_082AE805:: @ 082AE805 - .incbin "baserom.gba", 0x2AE805, 0x000166B - -gUnk_082AFE70:: @ 082AFE70 - .incbin "baserom.gba", 0x2AFE70, 0x000015E - -gUnk_082AFFCE:: @ 082AFFCE - .incbin "baserom.gba", 0x2AFFCE, 0x0000F3B - -gUnk_082B0F09:: @ 082B0F09 - .incbin "baserom.gba", 0x2B0F09, 0x0000529 - -gUnk_082B1432:: @ 082B1432 - .incbin "baserom.gba", 0x2B1432, 0x00009BD - -gUnk_082B1DEF:: @ 082B1DEF - .incbin "baserom.gba", 0x2B1DEF, 0x000060F - -gUnk_082B23FE:: @ 082B23FE - .incbin "baserom.gba", 0x2B23FE, 0x00006E4 - -gUnk_082B2AE2:: @ 082B2AE2 - .incbin "baserom.gba", 0x2B2AE2, 0x000092E - -gUnk_082B3410:: @ 082B3410 - .incbin "baserom.gba", 0x2B3410, 0x0000234 - -gUnk_082B3644:: @ 082B3644 - .incbin "baserom.gba", 0x2B3644, 0x0000115 - -gUnk_082B3759:: @ 082B3759 - .incbin "baserom.gba", 0x2B3759, 0x00005E3 - -gUnk_082B3D3C:: @ 082B3D3C - .incbin "baserom.gba", 0x2B3D3C, 0x0000224 - -gUnk_082B3F60:: @ 082B3F60 - .incbin "baserom.gba", 0x2B3F60, 0x00005B4 - -gUnk_082B4514:: @ 082B4514 - .incbin "baserom.gba", 0x2B4514, 0x0000448 - -gUnk_082B495C:: @ 082B495C - .incbin "baserom.gba", 0x2B495C, 0x0000008 - -gUnk_082B4964:: @ 082B4964 - .incbin "baserom.gba", 0x2B4964, 0x0000A05 - -gUnk_082B5369:: @ 082B5369 - .incbin "baserom.gba", 0x2B5369, 0x0002C97 - -gUnk_082B8000:: @ 082B8000 - .incbin "baserom.gba", 0x2B8000, 0x0005C81 - -gUnk_082BDC81:: @ 082BDC81 - .incbin "baserom.gba", 0x2BDC81, 0x0001F3B - -gUnk_082BFBBC:: @ 082BFBBC - .incbin "baserom.gba", 0x2BFBBC, 0x00002C7 - -gUnk_082BFE83:: @ 082BFE83 - .incbin "baserom.gba", 0x2BFE83, 0x000017D - -gUnk_082C0000:: @ 082C0000 - .incbin "baserom.gba", 0x2C0000, 0x000003C - -gUnk_082C003C:: @ 082C003C - .incbin "baserom.gba", 0x2C003C, 0x0000024 - -gUnk_082C0060:: @ 082C0060 - .incbin "baserom.gba", 0x2C0060, 0x00000A7 - -gUnk_082C0107:: @ 082C0107 - .incbin "baserom.gba", 0x2C0107, 0x0000724 - -gUnk_082C082B:: @ 082C082B - .incbin "baserom.gba", 0x2C082B, 0x00002D5 - -gUnk_082C0B00:: @ 082C0B00 - .incbin "baserom.gba", 0x2C0B00, 0x0000406 - -gUnk_082C0F06:: @ 082C0F06 - .incbin "baserom.gba", 0x2C0F06, 0x00016FF - -gUnk_082C2605:: @ 082C2605 - .incbin "baserom.gba", 0x2C2605, 0x00002FE - -gUnk_082C2903:: @ 082C2903 - .incbin "baserom.gba", 0x2C2903, 0x0000E14 - -gUnk_082C3717:: @ 082C3717 - .incbin "baserom.gba", 0x2C3717, 0x0000225 - -gUnk_082C393C:: @ 082C393C - .incbin "baserom.gba", 0x2C393C, 0x00001DB - -gUnk_082C3B17:: @ 082C3B17 - .incbin "baserom.gba", 0x2C3B17, 0x000033A - -gUnk_082C3E51:: @ 082C3E51 - .incbin "baserom.gba", 0x2C3E51, 0x00005E6 - -gUnk_082C4437:: @ 082C4437 - .incbin "baserom.gba", 0x2C4437, 0x0001C39 - -gUnk_082C6070:: @ 082C6070 - .incbin "baserom.gba", 0x2C6070, 0x0000FB1 - -gUnk_082C7021:: @ 082C7021 - .incbin "baserom.gba", 0x2C7021, 0x0000AFF - -gUnk_082C7B20:: @ 082C7B20 - .incbin "baserom.gba", 0x2C7B20, 0x0004D18 - -gUnk_082CC838:: @ 082CC838 - .incbin "baserom.gba", 0x2CC838, 0x000249E - -gUnk_082CECD6:: @ 082CECD6 - .incbin "baserom.gba", 0x2CECD6, 0x000132A - -gUnk_082D0000:: @ 082D0000 - .incbin "baserom.gba", 0x2D0000, 0x000006E - -gUnk_082D006E:: @ 082D006E - .incbin "baserom.gba", 0x2D006E, 0x0000060 - -gUnk_082D00CE:: @ 082D00CE - .incbin "baserom.gba", 0x2D00CE, 0x0000171 - -gUnk_082D023F:: @ 082D023F - .incbin "baserom.gba", 0x2D023F, 0x0000204 - -gUnk_082D0443:: @ 082D0443 - .incbin "baserom.gba", 0x2D0443, 0x0000001 - -gUnk_082D0444:: @ 082D0444 - .incbin "baserom.gba", 0x2D0444, 0x0000015 - -gUnk_082D0459:: @ 082D0459 - .incbin "baserom.gba", 0x2D0459, 0x000002F - -gUnk_082D0488:: @ 082D0488 - .incbin "baserom.gba", 0x2D0488, 0x0000EA1 - -gUnk_082D1329:: @ 082D1329 - .incbin "baserom.gba", 0x2D1329, 0x0000716 - -gUnk_082D1A3F:: @ 082D1A3F - .incbin "baserom.gba", 0x2D1A3F, 0x0000AF1 - -gUnk_082D2530:: @ 082D2530 - .incbin "baserom.gba", 0x2D2530, 0x00001F5 - -gUnk_082D2725:: @ 082D2725 - .incbin "baserom.gba", 0x2D2725, 0x00003F6 - -gUnk_082D2B1B:: @ 082D2B1B - .incbin "baserom.gba", 0x2D2B1B, 0x00000F4 - -gUnk_082D2C0F:: @ 082D2C0F - .incbin "baserom.gba", 0x2D2C0F, 0x0000A1A - -gUnk_082D3629:: @ 082D3629 - .incbin "baserom.gba", 0x2D3629, 0x0000B0F - -gUnk_082D4138:: @ 082D4138 - .incbin "baserom.gba", 0x2D4138, 0x000075C - -gUnk_082D4894:: @ 082D4894 - .incbin "baserom.gba", 0x2D4894, 0x00004CD - -gUnk_082D4D61:: @ 082D4D61 - .incbin "baserom.gba", 0x2D4D61, 0x0000208 - -gUnk_082D4F69:: @ 082D4F69 - .incbin "baserom.gba", 0x2D4F69, 0x00004D7 - -gUnk_082D5440:: @ 082D5440 - .incbin "baserom.gba", 0x2D5440, 0x000012D - -gUnk_082D556D:: @ 082D556D - .incbin "baserom.gba", 0x2D556D, 0x00004ED - -gUnk_082D5A5A:: @ 082D5A5A - .incbin "baserom.gba", 0x2D5A5A, 0x00000FB - -gUnk_082D5B55:: @ 082D5B55 - .incbin "baserom.gba", 0x2D5B55, 0x0007F92 - -gUnk_082DDAE7:: @ 082DDAE7 - .incbin "baserom.gba", 0x2DDAE7, 0x00024E9 - -gUnk_082DFFD0:: @ 082DFFD0 - .incbin "baserom.gba", 0x2DFFD0, 0x000006C - -gUnk_082E003C:: @ 082E003C - .incbin "baserom.gba", 0x2E003C, 0x0000001 - -gUnk_082E003D:: @ 082E003D - .incbin "baserom.gba", 0x2E003D, 0x00010AA - -gUnk_082E10E7:: @ 082E10E7 - .incbin "baserom.gba", 0x2E10E7, 0x0000024 - -gUnk_082E110B:: @ 082E110B - .incbin "baserom.gba", 0x2E110B, 0x00003FE - -gUnk_082E1509:: @ 082E1509 - .incbin "baserom.gba", 0x2E1509, 0x0000211 - -gUnk_082E171A:: @ 082E171A - .incbin "baserom.gba", 0x2E171A, 0x0000AF8 - -gUnk_082E2212:: @ 082E2212 - .incbin "baserom.gba", 0x2E2212, 0x0000AE9 - -gUnk_082E2CFB:: @ 082E2CFB - .incbin "baserom.gba", 0x2E2CFB, 0x0001805 - -gUnk_082E4500:: @ 082E4500 - .incbin "baserom.gba", 0x2E4500, 0x000053A - -gUnk_082E4A3A:: @ 082E4A3A - .incbin "baserom.gba", 0x2E4A3A, 0x0000F1B - -gUnk_082E5955:: @ 082E5955 - .incbin "baserom.gba", 0x2E5955, 0x0000F9F - -gUnk_082E68F4:: @ 082E68F4 - .incbin "baserom.gba", 0x2E68F4, 0x0001081 - -gUnk_082E7975:: @ 082E7975 - .incbin "baserom.gba", 0x2E7975, 0x00003B4 - -gUnk_082E7D29:: @ 082E7D29 - .incbin "baserom.gba", 0x2E7D29, 0x00045C2 - -gUnk_082EC2EB:: @ 082EC2EB - .incbin "baserom.gba", 0x2EC2EB, 0x0002113 - -gUnk_082EE3FE:: @ 082EE3FE - .incbin "baserom.gba", 0x2EE3FE, 0x0000A23 - -gUnk_082EEE21:: @ 082EEE21 - .incbin "baserom.gba", 0x2EEE21, 0x00011DF - -gUnk_082F0000:: @ 082F0000 - .incbin "baserom.gba", 0x2F0000, 0x0000008 - -gUnk_082F0008:: @ 082F0008 - .incbin "baserom.gba", 0x2F0008, 0x0000008 - -gUnk_082F0010:: @ 082F0010 - .incbin "baserom.gba", 0x2F0010, 0x0000005 - -gUnk_082F0015:: @ 082F0015 - .incbin "baserom.gba", 0x2F0015, 0x0000009 - -gUnk_082F001E:: @ 082F001E - .incbin "baserom.gba", 0x2F001E, 0x00000B4 - -gUnk_082F00D2:: @ 082F00D2 - .incbin "baserom.gba", 0x2F00D2, 0x000002C - -gUnk_082F00FE:: @ 082F00FE - .incbin "baserom.gba", 0x2F00FE, 0x0000339 - -gUnk_082F0437:: @ 082F0437 - .incbin "baserom.gba", 0x2F0437, 0x0000022 - -gUnk_082F0459:: @ 082F0459 - .incbin "baserom.gba", 0x2F0459, 0x0000025 - -gUnk_082F047E:: @ 082F047E - .incbin "baserom.gba", 0x2F047E, 0x0000389 - -gUnk_082F0807:: @ 082F0807 - .incbin "baserom.gba", 0x2F0807, 0x00006FC - -gUnk_082F0F03:: @ 082F0F03 - .incbin "baserom.gba", 0x2F0F03, 0x0000600 - -gUnk_082F1503:: @ 082F1503 - .incbin "baserom.gba", 0x2F1503, 0x0000804 - -gUnk_082F1D07:: @ 082F1D07 - .incbin "baserom.gba", 0x2F1D07, 0x0000AED - -gUnk_082F27F4:: @ 082F27F4 - .incbin "baserom.gba", 0x2F27F4, 0x000031B - -gUnk_082F2B0F:: @ 082F2B0F - .incbin "baserom.gba", 0x2F2B0F, 0x0001265 - -gUnk_082F3D74:: @ 082F3D74 - .incbin "baserom.gba", 0x2F3D74, 0x000018F - -gUnk_082F3F03:: @ 082F3F03 - .incbin "baserom.gba", 0x2F3F03, 0x0000015 - -gUnk_082F3F18:: @ 082F3F18 - .incbin "baserom.gba", 0x2F3F18, 0x0000215 - -gUnk_082F412D:: @ 082F412D - .incbin "baserom.gba", 0x2F412D, 0x000030B - -gUnk_082F4438:: @ 082F4438 - .incbin "baserom.gba", 0x2F4438, 0x0000BCF - -gUnk_082F5007:: @ 082F5007 - .incbin "baserom.gba", 0x2F5007, 0x0000051 - -gUnk_082F5058:: @ 082F5058 - .incbin "baserom.gba", 0x2F5058, 0x00000B9 - -gUnk_082F5111:: @ 082F5111 - .incbin "baserom.gba", 0x2F5111, 0x000015B - -gUnk_082F526C:: @ 082F526C - .incbin "baserom.gba", 0x2F526C, 0x00079B8 - -gUnk_082FCC24:: @ 082FCC24 - .incbin "baserom.gba", 0x2FCC24, 0x00011D5 - -gUnk_082FDDF9:: @ 082FDDF9 - .incbin "baserom.gba", 0x2FDDF9, 0x00004E8 - -gUnk_082FE2E1:: @ 082FE2E1 - .incbin "baserom.gba", 0x2FE2E1, 0x0001CBE - -gUnk_082FFF9F:: @ 082FFF9F - .incbin "baserom.gba", 0x2FFF9F, 0x0000061 - -gUnk_08300000:: @ 08300000 - .incbin "baserom.gba", 0x300000, 0x0000009 - -gUnk_08300009:: @ 08300009 - .incbin "baserom.gba", 0x300009, 0x0000018 - -gUnk_08300021:: @ 08300021 - .incbin "baserom.gba", 0x300021, 0x0000104 - -gUnk_08300125:: @ 08300125 - .incbin "baserom.gba", 0x300125, 0x0000043 - -gUnk_08300168:: @ 08300168 - .incbin "baserom.gba", 0x300168, 0x0000239 - -gUnk_083003A1:: @ 083003A1 - .incbin "baserom.gba", 0x3003A1, 0x0000080 - -gUnk_08300421:: @ 08300421 - .incbin "baserom.gba", 0x300421, 0x00002FF - -gUnk_08300720:: @ 08300720 - .incbin "baserom.gba", 0x300720, 0x0000007 - -gUnk_08300727:: @ 08300727 - .incbin "baserom.gba", 0x300727, 0x0000009 - -gUnk_08300730:: @ 08300730 - .incbin "baserom.gba", 0x300730, 0x0000010 - -gUnk_08300740:: @ 08300740 - .incbin "baserom.gba", 0x300740, 0x0000010 - -gUnk_08300750:: @ 08300750 - .incbin "baserom.gba", 0x300750, 0x0000020 - -gUnk_08300770:: @ 08300770 - .incbin "baserom.gba", 0x300770, 0x0000040 - -gUnk_083007B0:: @ 083007B0 - .incbin "baserom.gba", 0x3007B0, 0x0000030 - -gUnk_083007E0:: @ 083007E0 - .incbin "baserom.gba", 0x3007E0, 0x0000028 - -gUnk_08300808:: @ 08300808 - .incbin "baserom.gba", 0x300808, 0x0000108 - -gUnk_08300910:: @ 08300910 - .incbin "baserom.gba", 0x300910, 0x0000104 - -gUnk_08300A14:: @ 08300A14 - .incbin "baserom.gba", 0x300A14, 0x00000ED - -gUnk_08300B01:: @ 08300B01 - .incbin "baserom.gba", 0x300B01, 0x0000560 - -gUnk_08301061:: @ 08301061 - .incbin "baserom.gba", 0x301061, 0x0000B00 - -gUnk_08301B61:: @ 08301B61 - .incbin "baserom.gba", 0x301B61, 0x0000240 - -gUnk_08301DA1:: @ 08301DA1 - .incbin "baserom.gba", 0x301DA1, 0x00001CF - -gUnk_08301F70:: @ 08301F70 - .incbin "baserom.gba", 0x301F70, 0x0000231 - -gUnk_083021A1:: @ 083021A1 - .incbin "baserom.gba", 0x3021A1, 0x0000268 - -gUnk_08302409:: @ 08302409 - .incbin "baserom.gba", 0x302409, 0x0000158 - -gUnk_08302561:: @ 08302561 - .incbin "baserom.gba", 0x302561, 0x0000140 - -gUnk_083026A1:: @ 083026A1 - .incbin "baserom.gba", 0x3026A1, 0x000006F - -gUnk_08302710:: @ 08302710 - .incbin "baserom.gba", 0x302710, 0x00001F5 - -gUnk_08302905:: @ 08302905 - .incbin "baserom.gba", 0x302905, 0x000003B - -gUnk_08302940:: @ 08302940 - .incbin "baserom.gba", 0x302940, 0x0000221 - -gUnk_08302B61:: @ 08302B61 - .incbin "baserom.gba", 0x302B61, 0x00000D6 - -gUnk_08302C37:: @ 08302C37 - .incbin "baserom.gba", 0x302C37, 0x00000D9 - -gUnk_08302D10:: @ 08302D10 - .incbin "baserom.gba", 0x302D10, 0x0000010 - -gUnk_08302D20:: @ 08302D20 - .incbin "baserom.gba", 0x302D20, 0x0000110 - -gUnk_08302E30:: @ 08302E30 - .incbin "baserom.gba", 0x302E30, 0x00000E1 - -gUnk_08302F11:: @ 08302F11 - .incbin "baserom.gba", 0x302F11, 0x00000FF - -gUnk_08303010:: @ 08303010 - .incbin "baserom.gba", 0x303010, 0x0000019 - -gUnk_08303029:: @ 08303029 - .incbin "baserom.gba", 0x303029, 0x0000078 - -gUnk_083030A1:: @ 083030A1 - .incbin "baserom.gba", 0x3030A1, 0x0000300 - -gUnk_083033A1:: @ 083033A1 - .incbin "baserom.gba", 0x3033A1, 0x0000067 - -gUnk_08303408:: @ 08303408 - .incbin "baserom.gba", 0x303408, 0x0000540 - -gUnk_08303948:: @ 08303948 - .incbin "baserom.gba", 0x303948, 0x00002FE - -gUnk_08303C46:: @ 08303C46 - .incbin "baserom.gba", 0x303C46, 0x00000E5 - -gUnk_08303D2B:: @ 08303D2B - .incbin "baserom.gba", 0x303D2B, 0x00002F6 - -gUnk_08304021:: @ 08304021 - .incbin "baserom.gba", 0x304021, 0x0000612 - -gUnk_08304633:: @ 08304633 - .incbin "baserom.gba", 0x304633, 0x0000143 - -gUnk_08304776:: @ 08304776 - .incbin "baserom.gba", 0x304776, 0x00002F2 - -gUnk_08304A68:: @ 08304A68 - .incbin "baserom.gba", 0x304A68, 0x00003F9 - -gUnk_08304E61:: @ 08304E61 - .incbin "baserom.gba", 0x304E61, 0x0000407 - -gUnk_08305268:: @ 08305268 - .incbin "baserom.gba", 0x305268, 0x0000002 - -gUnk_0830526A:: @ 0830526A - .incbin "baserom.gba", 0x30526A, 0x000050B - -gUnk_08305775:: @ 08305775 - .incbin "baserom.gba", 0x305775, 0x00007A0 - -gUnk_08305F15:: @ 08305F15 - .incbin "baserom.gba", 0x305F15, 0x000006E - -gUnk_08305F83:: @ 08305F83 - .incbin "baserom.gba", 0x305F83, 0x00005C5 - -gUnk_08306548:: @ 08306548 - .incbin "baserom.gba", 0x306548, 0x000023B - -gUnk_08306783:: @ 08306783 - .incbin "baserom.gba", 0x306783, 0x00001AD - -gUnk_08306930:: @ 08306930 - .incbin "baserom.gba", 0x306930, 0x0000757 - -gUnk_08307087:: @ 08307087 - .incbin "baserom.gba", 0x307087, 0x00004C8 - -gUnk_0830754F:: @ 0830754F - .incbin "baserom.gba", 0x30754F, 0x000000E - -gUnk_0830755D:: @ 0830755D - .incbin "baserom.gba", 0x30755D, 0x000021A - -gUnk_08307777:: @ 08307777 - .incbin "baserom.gba", 0x307777, 0x0000201 - -gUnk_08307978:: @ 08307978 - .incbin "baserom.gba", 0x307978, 0x000038F - -gUnk_08307D07:: @ 08307D07 - .incbin "baserom.gba", 0x307D07, 0x0000529 - -gUnk_08308230:: @ 08308230 - .incbin "baserom.gba", 0x308230, 0x00004E6 - -gUnk_08308716:: @ 08308716 - .incbin "baserom.gba", 0x308716, 0x00006F3 - -gUnk_08308E09:: @ 08308E09 - .incbin "baserom.gba", 0x308E09, 0x0000817 - -gUnk_08309620:: @ 08309620 - .incbin "baserom.gba", 0x309620, 0x000027A - -gUnk_0830989A:: @ 0830989A - .incbin "baserom.gba", 0x30989A, 0x00004C0 - -gUnk_08309D5A:: @ 08309D5A - .incbin "baserom.gba", 0x309D5A, 0x0000136 - -gUnk_08309E90:: @ 08309E90 - .incbin "baserom.gba", 0x309E90, 0x0000085 - -gUnk_08309F15:: @ 08309F15 - .incbin "baserom.gba", 0x309F15, 0x0000290 - -gUnk_0830A1A5:: @ 0830A1A5 - .incbin "baserom.gba", 0x30A1A5, 0x0000BC6 - -gUnk_0830AD6B:: @ 0830AD6B - .incbin "baserom.gba", 0x30AD6B, 0x000009C - -gUnk_0830AE07:: @ 0830AE07 - .incbin "baserom.gba", 0x30AE07, 0x00001D9 - -gUnk_0830AFE0:: @ 0830AFE0 - .incbin "baserom.gba", 0x30AFE0, 0x0000130 - -gUnk_0830B110:: @ 0830B110 - .incbin "baserom.gba", 0x30B110, 0x000006F - -gUnk_0830B17F:: @ 0830B17F - .incbin "baserom.gba", 0x30B17F, 0x0000137 - -gUnk_0830B2B6:: @ 0830B2B6 - .incbin "baserom.gba", 0x30B2B6, 0x0000062 - -gUnk_0830B318:: @ 0830B318 - .incbin "baserom.gba", 0x30B318, 0x0000090 - -gUnk_0830B3A8:: @ 0830B3A8 - .incbin "baserom.gba", 0x30B3A8, 0x000002C - -gUnk_0830B3D4:: @ 0830B3D4 - .incbin "baserom.gba", 0x30B3D4, 0x00000E0 - -gUnk_0830B4B4:: @ 0830B4B4 - .incbin "baserom.gba", 0x30B4B4, 0x0000005 - -gUnk_0830B4B9:: @ 0830B4B9 - .incbin "baserom.gba", 0x30B4B9, 0x00002F7 - -gUnk_0830B7B0:: @ 0830B7B0 - .incbin "baserom.gba", 0x30B7B0, 0x00000A2 - -gUnk_0830B852:: @ 0830B852 - .incbin "baserom.gba", 0x30B852, 0x000020F - -gUnk_0830BA61:: @ 0830BA61 - .incbin "baserom.gba", 0x30BA61, 0x0000360 - -gUnk_0830BDC1:: @ 0830BDC1 - .incbin "baserom.gba", 0x30BDC1, 0x0000046 - -gUnk_0830BE07:: @ 0830BE07 - .incbin "baserom.gba", 0x30BE07, 0x00000CD - -gUnk_0830BED4:: @ 0830BED4 - .incbin "baserom.gba", 0x30BED4, 0x000009F - -gUnk_0830BF73:: @ 0830BF73 - .incbin "baserom.gba", 0x30BF73, 0x00001D1 - -gUnk_0830C144:: @ 0830C144 - .incbin "baserom.gba", 0x30C144, 0x00006F0 - -gUnk_0830C834:: @ 0830C834 - .incbin "baserom.gba", 0x30C834, 0x00001C0 - -gUnk_0830C9F4:: @ 0830C9F4 - .incbin "baserom.gba", 0x30C9F4, 0x0000013 - -gUnk_0830CA07:: @ 0830CA07 - .incbin "baserom.gba", 0x30CA07, 0x00002E0 - -gUnk_0830CCE7:: @ 0830CCE7 - .incbin "baserom.gba", 0x30CCE7, 0x00002E5 - -gUnk_0830CFCC:: @ 0830CFCC - .incbin "baserom.gba", 0x30CFCC, 0x0000067 - -gUnk_0830D033:: @ 0830D033 - .incbin "baserom.gba", 0x30D033, 0x00002E5 - -gUnk_0830D318:: @ 0830D318 - .incbin "baserom.gba", 0x30D318, 0x0000100 - -gUnk_0830D418:: @ 0830D418 - .incbin "baserom.gba", 0x30D418, 0x00000B6 - -gUnk_0830D4CE:: @ 0830D4CE - .incbin "baserom.gba", 0x30D4CE, 0x0000003 - -gUnk_0830D4D1:: @ 0830D4D1 - .incbin "baserom.gba", 0x30D4D1, 0x000010B - -gUnk_0830D5DC:: @ 0830D5DC - .incbin "baserom.gba", 0x30D5DC, 0x000082C - -gUnk_0830DE08:: @ 0830DE08 - .incbin "baserom.gba", 0x30DE08, 0x0000608 - -gUnk_0830E410:: @ 0830E410 - .incbin "baserom.gba", 0x30E410, 0x0000739 - -gUnk_0830EB49:: @ 0830EB49 - .incbin "baserom.gba", 0x30EB49, 0x00000BA - -gUnk_0830EC03:: @ 0830EC03 - .incbin "baserom.gba", 0x30EC03, 0x0000010 - -gUnk_0830EC13:: @ 0830EC13 - .incbin "baserom.gba", 0x30EC13, 0x00003D4 - -gUnk_0830EFE7:: @ 0830EFE7 - .incbin "baserom.gba", 0x30EFE7, 0x00003FA - -gUnk_0830F3E1:: @ 0830F3E1 - .incbin "baserom.gba", 0x30F3E1, 0x000060B - -gUnk_0830F9EC:: @ 0830F9EC - .incbin "baserom.gba", 0x30F9EC, 0x0000141 - -gUnk_0830FB2D:: @ 0830FB2D - .incbin "baserom.gba", 0x30FB2D, 0x00001B8 - -gUnk_0830FCE5:: @ 0830FCE5 - .incbin "baserom.gba", 0x30FCE5, 0x0000122 - -gUnk_0830FE07:: @ 0830FE07 - .incbin "baserom.gba", 0x30FE07, 0x0000078 - -gUnk_0830FE7F:: @ 0830FE7F - .incbin "baserom.gba", 0x30FE7F, 0x0000016 - -gUnk_0830FE95:: @ 0830FE95 - .incbin "baserom.gba", 0x30FE95, 0x0000059 - -gUnk_0830FEEE:: @ 0830FEEE - .incbin "baserom.gba", 0x30FEEE, 0x0000019 - -gUnk_0830FF07:: @ 0830FF07 - .incbin "baserom.gba", 0x30FF07, 0x000004C - -gUnk_0830FF53:: @ 0830FF53 - .incbin "baserom.gba", 0x30FF53, 0x00000AD - -gUnk_08310000:: @ 08310000 - .incbin "baserom.gba", 0x310000, 0x0000001 - -gUnk_08310001:: @ 08310001 - .incbin "baserom.gba", 0x310001, 0x0000001 - -gUnk_08310002:: @ 08310002 - .incbin "baserom.gba", 0x310002, 0x0000001 - -gUnk_08310003:: @ 08310003 - .incbin "baserom.gba", 0x310003, 0x0000001 - -gUnk_08310004:: @ 08310004 - .incbin "baserom.gba", 0x310004, 0x0000001 - -gUnk_08310005:: @ 08310005 - .incbin "baserom.gba", 0x310005, 0x0000001 - -gUnk_08310006:: @ 08310006 - .incbin "baserom.gba", 0x310006, 0x0000001 - -gUnk_08310007:: @ 08310007 - .incbin "baserom.gba", 0x310007, 0x0000001 - -gUnk_08310008:: @ 08310008 - .incbin "baserom.gba", 0x310008, 0x0000003 - -gUnk_0831000B:: @ 0831000B - .incbin "baserom.gba", 0x31000B, 0x0000003 - -gUnk_0831000E:: @ 0831000E - .incbin "baserom.gba", 0x31000E, 0x0000001 - -gUnk_0831000F:: @ 0831000F - .incbin "baserom.gba", 0x31000F, 0x0000001 - -gUnk_08310010:: @ 08310010 - .incbin "baserom.gba", 0x310010, 0x0000004 - -gUnk_08310014:: @ 08310014 - .incbin "baserom.gba", 0x310014, 0x0000001 - -gUnk_08310015:: @ 08310015 - .incbin "baserom.gba", 0x310015, 0x000000B - -gUnk_08310020:: @ 08310020 - .incbin "baserom.gba", 0x310020, 0x0000003 - -gUnk_08310023:: @ 08310023 - .incbin "baserom.gba", 0x310023, 0x000000D - -gUnk_08310030:: @ 08310030 - .incbin "baserom.gba", 0x310030, 0x0000009 - -gUnk_08310039:: @ 08310039 - .incbin "baserom.gba", 0x310039, 0x000000A - -gUnk_08310043:: @ 08310043 - .incbin "baserom.gba", 0x310043, 0x000000D - -gUnk_08310050:: @ 08310050 - .incbin "baserom.gba", 0x310050, 0x0000003 - -gUnk_08310053:: @ 08310053 - .incbin "baserom.gba", 0x310053, 0x0000007 - -gUnk_0831005A:: @ 0831005A - .incbin "baserom.gba", 0x31005A, 0x0000002 - -gUnk_0831005C:: @ 0831005C - .incbin "baserom.gba", 0x31005C, 0x0000004 - -gUnk_08310060:: @ 08310060 - .incbin "baserom.gba", 0x310060, 0x0000008 - -gUnk_08310068:: @ 08310068 - .incbin "baserom.gba", 0x310068, 0x0000004 - -gUnk_0831006C:: @ 0831006C - .incbin "baserom.gba", 0x31006C, 0x0000006 - -gUnk_08310072:: @ 08310072 - .incbin "baserom.gba", 0x310072, 0x0000006 - -gUnk_08310078:: @ 08310078 - .incbin "baserom.gba", 0x310078, 0x0000007 - -gUnk_0831007F:: @ 0831007F - .incbin "baserom.gba", 0x31007F, 0x0000001 - -gUnk_08310080:: @ 08310080 - .incbin "baserom.gba", 0x310080, 0x0000014 - -gUnk_08310094:: @ 08310094 - .incbin "baserom.gba", 0x310094, 0x0000004 - -gUnk_08310098:: @ 08310098 - .incbin "baserom.gba", 0x310098, 0x0000035 - -gUnk_083100CD:: @ 083100CD - .incbin "baserom.gba", 0x3100CD, 0x000000B - -gUnk_083100D8:: @ 083100D8 - .incbin "baserom.gba", 0x3100D8, 0x000000A - -gUnk_083100E2:: @ 083100E2 - .incbin "baserom.gba", 0x3100E2, 0x0000029 - -gUnk_0831010B:: @ 0831010B - .incbin "baserom.gba", 0x31010B, 0x000006D - -gUnk_08310178:: @ 08310178 - .incbin "baserom.gba", 0x310178, 0x0000020 - -gUnk_08310198:: @ 08310198 - .incbin "baserom.gba", 0x310198, 0x0000032 - -gUnk_083101CA:: @ 083101CA - .incbin "baserom.gba", 0x3101CA, 0x000005E - -gUnk_08310228:: @ 08310228 - .incbin "baserom.gba", 0x310228, 0x0000058 - -gUnk_08310280:: @ 08310280 - .incbin "baserom.gba", 0x310280, 0x0000008 - -gUnk_08310288:: @ 08310288 - .incbin "baserom.gba", 0x310288, 0x0000010 - -gUnk_08310298:: @ 08310298 - .incbin "baserom.gba", 0x310298, 0x0000068 - -gUnk_08310300:: @ 08310300 - .incbin "baserom.gba", 0x310300, 0x0000050 - -gUnk_08310350:: @ 08310350 - .incbin "baserom.gba", 0x310350, 0x00000B2 - -gUnk_08310402:: @ 08310402 - .incbin "baserom.gba", 0x310402, 0x0000032 - -gUnk_08310434:: @ 08310434 - .incbin "baserom.gba", 0x310434, 0x0000003 - -gUnk_08310437:: @ 08310437 - .incbin "baserom.gba", 0x310437, 0x000000C - -gUnk_08310443:: @ 08310443 - .incbin "baserom.gba", 0x310443, 0x0000002 - -gUnk_08310445:: @ 08310445 - .incbin "baserom.gba", 0x310445, 0x0000004 - -gUnk_08310449:: @ 08310449 - .incbin "baserom.gba", 0x310449, 0x0000001 - -gUnk_0831044A:: @ 0831044A - .incbin "baserom.gba", 0x31044A, 0x0000001 - -gUnk_0831044B:: @ 0831044B - .incbin "baserom.gba", 0x31044B, 0x000000E - -gUnk_08310459:: @ 08310459 - .incbin "baserom.gba", 0x310459, 0x000000B - -gUnk_08310464:: @ 08310464 - .incbin "baserom.gba", 0x310464, 0x000001A - -gUnk_0831047E:: @ 0831047E - .incbin "baserom.gba", 0x31047E, 0x0000009 - -gUnk_08310487:: @ 08310487 - .incbin "baserom.gba", 0x310487, 0x0000001 - -gUnk_08310488:: @ 08310488 - .incbin "baserom.gba", 0x310488, 0x00002A8 - -gUnk_08310730:: @ 08310730 - .incbin "baserom.gba", 0x310730, 0x00000D0 - -gUnk_08310800:: @ 08310800 - .incbin "baserom.gba", 0x310800, 0x0000001 - -gUnk_08310801:: @ 08310801 - .incbin "baserom.gba", 0x310801, 0x0000003 - -gUnk_08310804:: @ 08310804 - .incbin "baserom.gba", 0x310804, 0x0000001 - -gUnk_08310805:: @ 08310805 - .incbin "baserom.gba", 0x310805, 0x0000001 - -gUnk_08310806:: @ 08310806 - .incbin "baserom.gba", 0x310806, 0x0000001 - -gUnk_08310807:: @ 08310807 - .incbin "baserom.gba", 0x310807, 0x0000002 - -gUnk_08310809:: @ 08310809 - .incbin "baserom.gba", 0x310809, 0x0000001 - -gUnk_0831080A:: @ 0831080A - .incbin "baserom.gba", 0x31080A, 0x0000003 - -gUnk_0831080D:: @ 0831080D - .incbin "baserom.gba", 0x31080D, 0x0000023 - -gUnk_08310830:: @ 08310830 - .incbin "baserom.gba", 0x310830, 0x00007BB - -gUnk_08310FEB:: @ 08310FEB - .incbin "baserom.gba", 0x310FEB, 0x0000218 - -gUnk_08311203:: @ 08311203 - .incbin "baserom.gba", 0x311203, 0x0000351 - -gUnk_08311554:: @ 08311554 - .incbin "baserom.gba", 0x311554, 0x00000BA - -gUnk_0831160E:: @ 0831160E - .incbin "baserom.gba", 0x31160E, 0x0000123 - -gUnk_08311731:: @ 08311731 - .incbin "baserom.gba", 0x311731, 0x00005DF - -gUnk_08311D10:: @ 08311D10 - .incbin "baserom.gba", 0x311D10, 0x00002F0 - -gUnk_08312000:: @ 08312000 - .incbin "baserom.gba", 0x312000, 0x000012D - -gUnk_0831212D:: @ 0831212D - .incbin "baserom.gba", 0x31212D, 0x00009D2 - -gUnk_08312AFF:: @ 08312AFF - .incbin "baserom.gba", 0x312AFF, 0x0000630 - -gUnk_0831312F:: @ 0831312F - .incbin "baserom.gba", 0x31312F, 0x00000DA - -gUnk_08313209:: @ 08313209 - .incbin "baserom.gba", 0x313209, 0x000024C - -gUnk_08313455:: @ 08313455 - .incbin "baserom.gba", 0x313455, 0x00002EF - -gUnk_08313744:: @ 08313744 - .incbin "baserom.gba", 0x313744, 0x00001D8 - -gUnk_0831391C:: @ 0831391C - .incbin "baserom.gba", 0x31391C, 0x00000E4 - -gUnk_08313A00:: @ 08313A00 - .incbin "baserom.gba", 0x313A00, 0x0000010 - -gUnk_08313A10:: @ 08313A10 - .incbin "baserom.gba", 0x313A10, 0x0000409 - -gUnk_08313E19:: @ 08313E19 - .incbin "baserom.gba", 0x313E19, 0x00005E8 - -gUnk_08314401:: @ 08314401 - .incbin "baserom.gba", 0x314401, 0x0000132 - -gUnk_08314533:: @ 08314533 - .incbin "baserom.gba", 0x314533, 0x0000220 - -gUnk_08314753:: @ 08314753 - .incbin "baserom.gba", 0x314753, 0x00005F2 - -gUnk_08314D45:: @ 08314D45 - .incbin "baserom.gba", 0x314D45, 0x00005FC - -gUnk_08315341:: @ 08315341 - .incbin "baserom.gba", 0x315341, 0x0000131 - -gUnk_08315472:: @ 08315472 - .incbin "baserom.gba", 0x315472, 0x00005FF - -gUnk_08315A71:: @ 08315A71 - .incbin "baserom.gba", 0x315A71, 0x00004FB - -gUnk_08315F6C:: @ 08315F6C - .incbin "baserom.gba", 0x315F6C, 0x0001B94 - -gUnk_08317B00:: @ 08317B00 - .incbin "baserom.gba", 0x317B00, 0x00026A1 - -gUnk_0831A1A1:: @ 0831A1A1 - .incbin "baserom.gba", 0x31A1A1, 0x0001993 - -gUnk_0831BB34:: @ 0831BB34 - .incbin "baserom.gba", 0x31BB34, 0x00009FB - -gUnk_0831C52F:: @ 0831C52F - .incbin "baserom.gba", 0x31C52F, 0x00012C6 - -gUnk_0831D7F5:: @ 0831D7F5 - .incbin "baserom.gba", 0x31D7F5, 0x0000720 - -gUnk_0831DF15:: @ 0831DF15 - .incbin "baserom.gba", 0x31DF15, 0x0000BF2 - -gUnk_0831EB07:: @ 0831EB07 - .incbin "baserom.gba", 0x31EB07, 0x00003DB - -gUnk_0831EEE2:: @ 0831EEE2 - .incbin "baserom.gba", 0x31EEE2, 0x000002B - -gUnk_0831EF0D:: @ 0831EF0D - .incbin "baserom.gba", 0x31EF0D, 0x00009E8 - -gUnk_0831F8F5:: @ 0831F8F5 - .incbin "baserom.gba", 0x31F8F5, 0x000069B - -gUnk_0831FF90:: @ 0831FF90 - .incbin "baserom.gba", 0x31FF90, 0x0000042 - -gUnk_0831FFD2:: @ 0831FFD2 - .incbin "baserom.gba", 0x31FFD2, 0x000000A - -gUnk_0831FFDC:: @ 0831FFDC - .incbin "baserom.gba", 0x31FFDC, 0x0000020 - -gUnk_0831FFFC:: @ 0831FFFC - .incbin "baserom.gba", 0x31FFFC, 0x0000004 - -gUnk_08320000:: @ 08320000 - .incbin "baserom.gba", 0x320000, 0x0000131 - -gUnk_08320131:: @ 08320131 - .incbin "baserom.gba", 0x320131, 0x00001CF - -gUnk_08320300:: @ 08320300 - .incbin "baserom.gba", 0x320300, 0x0000030 - -gUnk_08320330:: @ 08320330 - .incbin "baserom.gba", 0x320330, 0x00011AF - -gUnk_083214DF:: @ 083214DF - .incbin "baserom.gba", 0x3214DF, 0x0000921 - -gUnk_08321E00:: @ 08321E00 - .incbin "baserom.gba", 0x321E00, 0x00001EF - -gUnk_08321FEF:: @ 08321FEF - .incbin "baserom.gba", 0x321FEF, 0x0000114 - -gUnk_08322103:: @ 08322103 - .incbin "baserom.gba", 0x322103, 0x0000134 - -gUnk_08322237:: @ 08322237 - .incbin "baserom.gba", 0x322237, 0x0000062 - -gUnk_08322299:: @ 08322299 - .incbin "baserom.gba", 0x322299, 0x0000189 - -gUnk_08322422:: @ 08322422 - .incbin "baserom.gba", 0x322422, 0x0000034 - -gUnk_08322456:: @ 08322456 - .incbin "baserom.gba", 0x322456, 0x00001A2 - -gUnk_083225F8:: @ 083225F8 - .incbin "baserom.gba", 0x3225F8, 0x0000519 - -gUnk_08322B11:: @ 08322B11 - .incbin "baserom.gba", 0x322B11, 0x0000B0B - -gUnk_0832361C:: @ 0832361C - .incbin "baserom.gba", 0x32361C, 0x0000B23 - -gUnk_0832413F:: @ 0832413F - .incbin "baserom.gba", 0x32413F, 0x00008F8 - -gUnk_08324A37:: @ 08324A37 - .incbin "baserom.gba", 0x324A37, 0x00000AD - -gUnk_08324AE4:: @ 08324AE4 - .incbin "baserom.gba", 0x324AE4, 0x000018F - -gUnk_08324C73:: @ 08324C73 - .incbin "baserom.gba", 0x324C73, 0x00007FA - -gUnk_0832546D:: @ 0832546D - .incbin "baserom.gba", 0x32546D, 0x000041B - -gUnk_08325888:: @ 08325888 - .incbin "baserom.gba", 0x325888, 0x00010E9 - -gUnk_08326971:: @ 08326971 - .incbin "baserom.gba", 0x326971, 0x0002C90 - -gUnk_08329601:: @ 08329601 - .incbin "baserom.gba", 0x329601, 0x00053C2 - -gUnk_0832E9C3:: @ 0832E9C3 - .incbin "baserom.gba", 0x32E9C3, 0x0000540 - -gUnk_0832EF03:: @ 0832EF03 - .incbin "baserom.gba", 0x32EF03, 0x0000733 - -gUnk_0832F636:: @ 0832F636 - .incbin "baserom.gba", 0x32F636, 0x00005CA - -gUnk_0832FC00:: @ 0832FC00 - .incbin "baserom.gba", 0x32FC00, 0x00002EA - -gUnk_0832FEEA:: @ 0832FEEA - .incbin "baserom.gba", 0x32FEEA, 0x0000104 - -gUnk_0832FFEE:: @ 0832FFEE - .incbin "baserom.gba", 0x32FFEE, 0x0000055 - -gUnk_08330043:: @ 08330043 - .incbin "baserom.gba", 0x330043, 0x00000C4 - -gUnk_08330107:: @ 08330107 - .incbin "baserom.gba", 0x330107, 0x0000004 - -gUnk_0833010B:: @ 0833010B - .incbin "baserom.gba", 0x33010B, 0x0000119 - -gUnk_08330224:: @ 08330224 - .incbin "baserom.gba", 0x330224, 0x0000210 - -gUnk_08330434:: @ 08330434 - .incbin "baserom.gba", 0x330434, 0x00008B5 - -gUnk_08330CE9:: @ 08330CE9 - .incbin "baserom.gba", 0x330CE9, 0x0000213 - -gUnk_08330EFC:: @ 08330EFC - .incbin "baserom.gba", 0x330EFC, 0x0000007 - -gUnk_08330F03:: @ 08330F03 - .incbin "baserom.gba", 0x330F03, 0x0000C05 - -gUnk_08331B08:: @ 08331B08 - .incbin "baserom.gba", 0x331B08, 0x0000637 - -gUnk_0833213F:: @ 0833213F - .incbin "baserom.gba", 0x33213F, 0x0000049 - -gUnk_08332188:: @ 08332188 - .incbin "baserom.gba", 0x332188, 0x0000692 - -gUnk_0833281A:: @ 0833281A - .incbin "baserom.gba", 0x33281A, 0x0000913 - -gUnk_0833312D:: @ 0833312D - .incbin "baserom.gba", 0x33312D, 0x0000205 - -gUnk_08333332:: @ 08333332 - .incbin "baserom.gba", 0x333332, 0x0000001 - -gUnk_08333333:: @ 08333333 - .incbin "baserom.gba", 0x333333, 0x0000008 - -gUnk_0833333B:: @ 0833333B - .incbin "baserom.gba", 0x33333B, 0x00000F2 - -gUnk_0833342D:: @ 0833342D - .incbin "baserom.gba", 0x33342D, 0x00002F1 - -gUnk_0833371E:: @ 0833371E - .incbin "baserom.gba", 0x33371E, 0x00001F0 - -gUnk_0833390E:: @ 0833390E - .incbin "baserom.gba", 0x33390E, 0x0000122 - -gUnk_08333A30:: @ 08333A30 - .incbin "baserom.gba", 0x333A30, 0x00005E8 - -gUnk_08334018:: @ 08334018 - .incbin "baserom.gba", 0x334018, 0x00003E9 - -gUnk_08334401:: @ 08334401 - .incbin "baserom.gba", 0x334401, 0x000001F - -gUnk_08334420:: @ 08334420 - .incbin "baserom.gba", 0x334420, 0x00000BD - -gUnk_083344DD:: @ 083344DD - .incbin "baserom.gba", 0x3344DD, 0x0000558 - -gUnk_08334A35:: @ 08334A35 - .incbin "baserom.gba", 0x334A35, 0x0000646 - -gUnk_0833507B:: @ 0833507B - .incbin "baserom.gba", 0x33507B, 0x000054F - -gUnk_083355CA:: @ 083355CA - .incbin "baserom.gba", 0x3355CA, 0x0000CB3 - -gUnk_0833627D:: @ 0833627D - .incbin "baserom.gba", 0x33627D, 0x0000CF7 - -gUnk_08336F74:: @ 08336F74 - .incbin "baserom.gba", 0x336F74, 0x000008F - -gUnk_08337003:: @ 08337003 - .incbin "baserom.gba", 0x337003, 0x00002FD - -gUnk_08337300:: @ 08337300 - .incbin "baserom.gba", 0x337300, 0x0000C03 - -gUnk_08337F03:: @ 08337F03 - .incbin "baserom.gba", 0x337F03, 0x0000330 - -gUnk_08338233:: @ 08338233 - .incbin "baserom.gba", 0x338233, 0x0000650 - -gUnk_08338883:: @ 08338883 - .incbin "baserom.gba", 0x338883, 0x0001217 - -gUnk_08339A9A:: @ 08339A9A - .incbin "baserom.gba", 0x339A9A, 0x0000133 - -gUnk_08339BCD:: @ 08339BCD - .incbin "baserom.gba", 0x339BCD, 0x00009DC - -gUnk_0833A5A9:: @ 0833A5A9 - .incbin "baserom.gba", 0x33A5A9, 0x0000E5D - -gUnk_0833B406:: @ 0833B406 - .incbin "baserom.gba", 0x33B406, 0x0000706 - -gUnk_0833BB0C:: @ 0833BB0C - .incbin "baserom.gba", 0x33BB0C, 0x00033F6 - -gUnk_0833EF02:: @ 0833EF02 - .incbin "baserom.gba", 0x33EF02, 0x0000509 - -gUnk_0833F40B:: @ 0833F40B - .incbin "baserom.gba", 0x33F40B, 0x0000B2C - -gUnk_0833FF37:: @ 0833FF37 - .incbin "baserom.gba", 0x33FF37, 0x00003C9 - -gUnk_08340300:: @ 08340300 - .incbin "baserom.gba", 0x340300, 0x0000507 - -gUnk_08340807:: @ 08340807 - .incbin "baserom.gba", 0x340807, 0x00008F8 - -gUnk_083410FF:: @ 083410FF - .incbin "baserom.gba", 0x3410FF, 0x0000F48 - -gUnk_08342047:: @ 08342047 - .incbin "baserom.gba", 0x342047, 0x00003B2 - -gUnk_083423F9:: @ 083423F9 - .incbin "baserom.gba", 0x3423F9, 0x00000F1 - -gUnk_083424EA:: @ 083424EA - .incbin "baserom.gba", 0x3424EA, 0x0000D2E - -gUnk_08343218:: @ 08343218 - .incbin "baserom.gba", 0x343218, 0x00000F5 - -gUnk_0834330D:: @ 0834330D - .incbin "baserom.gba", 0x34330D, 0x0000024 - -gUnk_08343331:: @ 08343331 - .incbin "baserom.gba", 0x343331, 0x0000EE0 - -gUnk_08344211:: @ 08344211 - .incbin "baserom.gba", 0x344211, 0x0000233 - -gUnk_08344444:: @ 08344444 - .incbin "baserom.gba", 0x344444, 0x0000505 - -gUnk_08344949:: @ 08344949 - .incbin "baserom.gba", 0x344949, 0x000012E - -gUnk_08344A77:: @ 08344A77 - .incbin "baserom.gba", 0x344A77, 0x00008E5 - -gUnk_0834535C:: @ 0834535C - .incbin "baserom.gba", 0x34535C, 0x000031B - -gUnk_08345677:: @ 08345677 - .incbin "baserom.gba", 0x345677, 0x0000325 - -gUnk_0834599C:: @ 0834599C - .incbin "baserom.gba", 0x34599C, 0x0000575 - -gUnk_08345F11:: @ 08345F11 - .incbin "baserom.gba", 0x345F11, 0x0000617 - -gUnk_08346528:: @ 08346528 - .incbin "baserom.gba", 0x346528, 0x000012D - -gUnk_08346655:: @ 08346655 - .incbin "baserom.gba", 0x346655, 0x00007E0 - -gUnk_08346E35:: @ 08346E35 - .incbin "baserom.gba", 0x346E35, 0x000013B - -gUnk_08346F70:: @ 08346F70 - .incbin "baserom.gba", 0x346F70, 0x00007F7 - -gUnk_08347767:: @ 08347767 - .incbin "baserom.gba", 0x347767, 0x0000055 - -gUnk_083477BC:: @ 083477BC - .incbin "baserom.gba", 0x3477BC, 0x0003C5C - -gUnk_0834B418:: @ 0834B418 - .incbin "baserom.gba", 0x34B418, 0x0002D8B - -gUnk_0834E1A3:: @ 0834E1A3 - .incbin "baserom.gba", 0x34E1A3, 0x00006E6 - -gUnk_0834E889:: @ 0834E889 - .incbin "baserom.gba", 0x34E889, 0x0000A37 - -gUnk_0834F2C0:: @ 0834F2C0 - .incbin "baserom.gba", 0x34F2C0, 0x0000D50 - -gUnk_08350010:: @ 08350010 - .incbin "baserom.gba", 0x350010, 0x000003A - -gUnk_0835004A:: @ 0835004A - .incbin "baserom.gba", 0x35004A, 0x00002B6 - -gUnk_08350300:: @ 08350300 - .incbin "baserom.gba", 0x350300, 0x0000E3B - -gUnk_0835113B:: @ 0835113B - .incbin "baserom.gba", 0x35113B, 0x00008CB - -gUnk_08351A06:: @ 08351A06 - .incbin "baserom.gba", 0x351A06, 0x0001A93 - -gUnk_08353499:: @ 08353499 - .incbin "baserom.gba", 0x353499, 0x0000294 - -gUnk_0835372D:: @ 0835372D - .incbin "baserom.gba", 0x35372D, 0x00001E6 - -gUnk_08353913:: @ 08353913 - .incbin "baserom.gba", 0x353913, 0x0000705 - -gUnk_08354018:: @ 08354018 - .incbin "baserom.gba", 0x354018, 0x0000317 - -gUnk_0835432F:: @ 0835432F - .incbin "baserom.gba", 0x35432F, 0x000090A - -gUnk_08354C39:: @ 08354C39 - .incbin "baserom.gba", 0x354C39, 0x00007F6 - -gUnk_0835542F:: @ 0835542F - .incbin "baserom.gba", 0x35542F, 0x0000014 - -gUnk_08355443:: @ 08355443 - .incbin "baserom.gba", 0x355443, 0x0000234 - -gUnk_08355677:: @ 08355677 - .incbin "baserom.gba", 0x355677, 0x00009DE - -gUnk_08356055:: @ 08356055 - .incbin "baserom.gba", 0x356055, 0x0000526 - -gUnk_0835657B:: @ 0835657B - .incbin "baserom.gba", 0x35657B, 0x0001197 - -gUnk_08357712:: @ 08357712 - .incbin "baserom.gba", 0x357712, 0x0007B10 - -gUnk_0835F222:: @ 0835F222 - .incbin "baserom.gba", 0x35F222, 0x0000E9B - -gUnk_083600BD:: @ 083600BD - .incbin "baserom.gba", 0x3600BD, 0x0000410 - -gUnk_083604CD:: @ 083604CD - .incbin "baserom.gba", 0x3604CD, 0x0000053 - -gUnk_08360520:: @ 08360520 - .incbin "baserom.gba", 0x360520, 0x00003A0 - -gUnk_083608C0:: @ 083608C0 - .incbin "baserom.gba", 0x3608C0, 0x0001AF1 - -gUnk_083623B1:: @ 083623B1 - .incbin "baserom.gba", 0x3623B1, 0x0000639 - -gUnk_083629EA:: @ 083629EA - .incbin "baserom.gba", 0x3629EA, 0x0000128 - -gUnk_08362B12:: @ 08362B12 - .incbin "baserom.gba", 0x362B12, 0x0000001 - -gUnk_08362B13:: @ 08362B13 - .incbin "baserom.gba", 0x362B13, 0x00003F4 - -gUnk_08362F07:: @ 08362F07 - .incbin "baserom.gba", 0x362F07, 0x000140A - -gUnk_08364311:: @ 08364311 - .incbin "baserom.gba", 0x364311, 0x0000020 - -gUnk_08364331:: @ 08364331 - .incbin "baserom.gba", 0x364331, 0x000051C - -gUnk_0836484D:: @ 0836484D - .incbin "baserom.gba", 0x36484D, 0x00007E7 - -gUnk_08365034:: @ 08365034 - .incbin "baserom.gba", 0x365034, 0x00004EF - -gUnk_08365523:: @ 08365523 - .incbin "baserom.gba", 0x365523, 0x000013E - -gUnk_08365661:: @ 08365661 - .incbin "baserom.gba", 0x365661, 0x0000E16 - -gUnk_08366477:: @ 08366477 - .incbin "baserom.gba", 0x366477, 0x0006B6C - -gUnk_0836CFE3:: @ 0836CFE3 - .incbin "baserom.gba", 0x36CFE3, 0x0001E60 - -gUnk_0836EE43:: @ 0836EE43 - .incbin "baserom.gba", 0x36EE43, 0x00011CE - -gUnk_08370011:: @ 08370011 - .incbin "baserom.gba", 0x370011, 0x00005FF - -gUnk_08370610:: @ 08370610 - .incbin "baserom.gba", 0x370610, 0x0000701 - -gUnk_08370D11:: @ 08370D11 - .incbin "baserom.gba", 0x370D11, 0x0001404 - -gUnk_08372115:: @ 08372115 - .incbin "baserom.gba", 0x372115, 0x00019FB - -gUnk_08373B10:: @ 08373B10 - .incbin "baserom.gba", 0x373B10, 0x000131A - -gUnk_08374E2A:: @ 08374E2A - .incbin "baserom.gba", 0x374E2A, 0x00001D6 - -gUnk_08375000:: @ 08375000 - .incbin "baserom.gba", 0x375000, 0x0001841 - -gUnk_08376841:: @ 08376841 - .incbin "baserom.gba", 0x376841, 0x00066F7 - -gUnk_0837CF38:: @ 0837CF38 - .incbin "baserom.gba", 0x37CF38, 0x00012CE - -gUnk_0837E206:: @ 0837E206 - .incbin "baserom.gba", 0x37E206, 0x0001DFA - -gUnk_08380000:: @ 08380000 - .incbin "baserom.gba", 0x380000, 0x0000019 - -gUnk_08380019:: @ 08380019 - .incbin "baserom.gba", 0x380019, 0x0000023 - -gUnk_0838003C:: @ 0838003C - .incbin "baserom.gba", 0x38003C, 0x000001E - -gUnk_0838005A:: @ 0838005A - .incbin "baserom.gba", 0x38005A, 0x000001E - -gUnk_08380078:: @ 08380078 - .incbin "baserom.gba", 0x380078, 0x000007F - -gUnk_083800F7:: @ 083800F7 - .incbin "baserom.gba", 0x3800F7, 0x000030A - -gUnk_08380401:: @ 08380401 - .incbin "baserom.gba", 0x380401, 0x0000001 - -gUnk_08380402:: @ 08380402 - .incbin "baserom.gba", 0x380402, 0x0000057 - -gUnk_08380459:: @ 08380459 - .incbin "baserom.gba", 0x380459, 0x0000025 - -gUnk_0838047E:: @ 0838047E - .incbin "baserom.gba", 0x38047E, 0x0000009 - -gUnk_08380487:: @ 08380487 - .incbin "baserom.gba", 0x380487, 0x0000001 - -gUnk_08380488:: @ 08380488 - .incbin "baserom.gba", 0x380488, 0x0000380 - -gUnk_08380808:: @ 08380808 - .incbin "baserom.gba", 0x380808, 0x0000007 - -gUnk_0838080F:: @ 0838080F - .incbin "baserom.gba", 0x38080F, 0x0000152 - -gUnk_08380961:: @ 08380961 - .incbin "baserom.gba", 0x380961, 0x00005A8 - -gUnk_08380F09:: @ 08380F09 - .incbin "baserom.gba", 0x380F09, 0x00004DD - -gUnk_083813E6:: @ 083813E6 - .incbin "baserom.gba", 0x3813E6, 0x0001048 - -gUnk_0838242E:: @ 0838242E - .incbin "baserom.gba", 0x38242E, 0x00008E6 - -gUnk_08382D14:: @ 08382D14 - .incbin "baserom.gba", 0x382D14, 0x00008D5 - -gUnk_083835E9:: @ 083835E9 - .incbin "baserom.gba", 0x3835E9, 0x0000517 - -gUnk_08383B00:: @ 08383B00 - .incbin "baserom.gba", 0x383B00, 0x0000122 - -gUnk_08383C22:: @ 08383C22 - .incbin "baserom.gba", 0x383C22, 0x00004DE - -gUnk_08384100:: @ 08384100 - .incbin "baserom.gba", 0x384100, 0x0000341 - -gUnk_08384441:: @ 08384441 - .incbin "baserom.gba", 0x384441, 0x0000DC3 - -gUnk_08385204:: @ 08385204 - .incbin "baserom.gba", 0x385204, 0x0000B6B - -gUnk_08385D6F:: @ 08385D6F - .incbin "baserom.gba", 0x385D6F, 0x00006FB - -gUnk_0838646A:: @ 0838646A - .incbin "baserom.gba", 0x38646A, 0x000030C - -gUnk_08386776:: @ 08386776 - .incbin "baserom.gba", 0x386776, 0x0009889 - -gUnk_0838FFFF:: @ 0838FFFF - .incbin "baserom.gba", 0x38FFFF, 0x0000002 - -gUnk_08390001:: @ 08390001 - .incbin "baserom.gba", 0x390001, 0x00002DB - -gUnk_083902DC:: @ 083902DC - .incbin "baserom.gba", 0x3902DC, 0x00003A4 - -gUnk_08390680:: @ 08390680 - .incbin "baserom.gba", 0x390680, 0x0000180 - -gUnk_08390800:: @ 08390800 - .incbin "baserom.gba", 0x390800, 0x0000706 - -gUnk_08390F06:: @ 08390F06 - .incbin "baserom.gba", 0x390F06, 0x00014CE - -gUnk_083923D4:: @ 083923D4 - .incbin "baserom.gba", 0x3923D4, 0x000084A - -gUnk_08392C1E:: @ 08392C1E - .incbin "baserom.gba", 0x392C1E, 0x0001011 - -gUnk_08393C2F:: @ 08393C2F - .incbin "baserom.gba", 0x393C2F, 0x00004D1 - -gUnk_08394100:: @ 08394100 - .incbin "baserom.gba", 0x394100, 0x0001C00 - -gUnk_08395D00:: @ 08395D00 - .incbin "baserom.gba", 0x395D00, 0x000077B - -gUnk_0839647B:: @ 0839647B - .incbin "baserom.gba", 0x39647B, 0x0000303 - -gUnk_0839677E:: @ 0839677E - .incbin "baserom.gba", 0x39677E, 0x000870E - -gUnk_0839EE8C:: @ 0839EE8C - .incbin "baserom.gba", 0x39EE8C, 0x0000001 - -gUnk_0839EE8D:: @ 0839EE8D - .incbin "baserom.gba", 0x39EE8D, 0x000127A - -gUnk_083A0107:: @ 083A0107 - .incbin "baserom.gba", 0x3A0107, 0x0000669 - -gUnk_083A0770:: @ 083A0770 - .incbin "baserom.gba", 0x3A0770, 0x0003990 - -gUnk_083A4100:: @ 083A4100 - .incbin "baserom.gba", 0x3A4100, 0x0003D1D - -gUnk_083A7E1D:: @ 083A7E1D - .incbin "baserom.gba", 0x3A7E1D, 0x0002253 - -gUnk_083AA070:: @ 083AA070 - .incbin "baserom.gba", 0x3AA070, 0x0005F90 - -gUnk_083B0000:: @ 083B0000 - .incbin "baserom.gba", 0x3B0000, 0x0000001 - -gUnk_083B0001:: @ 083B0001 - .incbin "baserom.gba", 0x3B0001, 0x0000007 - -gUnk_083B0008:: @ 083B0008 - .incbin "baserom.gba", 0x3B0008, 0x0000178 - -gUnk_083B0180:: @ 083B0180 - .incbin "baserom.gba", 0x3B0180, 0x000069E - -gUnk_083B081E:: @ 083B081E - .incbin "baserom.gba", 0x3B081E, 0x000001C - -gUnk_083B083A:: @ 083B083A - .incbin "baserom.gba", 0x3B083A, 0x00006CC - -gUnk_083B0F06:: @ 083B0F06 - .incbin "baserom.gba", 0x3B0F06, 0x00012E0 - -gUnk_083B21E6:: @ 083B21E6 - .incbin "baserom.gba", 0x3B21E6, 0x0000E3E - -gUnk_083B3024:: @ 083B3024 - .incbin "baserom.gba", 0x3B3024, 0x00001DD - -gUnk_083B3201:: @ 083B3201 - .incbin "baserom.gba", 0x3B3201, 0x000061F - -gUnk_083B3820:: @ 083B3820 - .incbin "baserom.gba", 0x3B3820, 0x00008E0 - -gUnk_083B4100:: @ 083B4100 - .incbin "baserom.gba", 0x3B4100, 0x000024B - -gUnk_083B434B:: @ 083B434B - .incbin "baserom.gba", 0x3B434B, 0x0000074 - -gUnk_083B43BF:: @ 083B43BF - .incbin "baserom.gba", 0x3B43BF, 0x00024B8 - -gUnk_083B6877:: @ 083B6877 - .incbin "baserom.gba", 0x3B6877, 0x0009693 - -gUnk_083BFF0A:: @ 083BFF0A - .incbin "baserom.gba", 0x3BFF0A, 0x00000F6 - -gUnk_083C0000:: @ 083C0000 - .incbin "baserom.gba", 0x3C0000, 0x0000001 - -gUnk_083C0001:: @ 083C0001 - .incbin "baserom.gba", 0x3C0001, 0x000000B - -gUnk_083C000C:: @ 083C000C - .incbin "baserom.gba", 0x3C000C, 0x00013F4 - -gUnk_083C1400:: @ 083C1400 - .incbin "baserom.gba", 0x3C1400, 0x0000841 - -gUnk_083C1C41:: @ 083C1C41 - .incbin "baserom.gba", 0x3C1C41, 0x00009A8 - -gUnk_083C25E9:: @ 083C25E9 - .incbin "baserom.gba", 0x3C25E9, 0x00005D9 - -gUnk_083C2BC2:: @ 083C2BC2 - .incbin "baserom.gba", 0x3C2BC2, 0x0000620 - -gUnk_083C31E2:: @ 083C31E2 - .incbin "baserom.gba", 0x3C31E2, 0x0000968 - -gUnk_083C3B4A:: @ 083C3B4A - .incbin "baserom.gba", 0x3C3B4A, 0x00004B6 - -gUnk_083C4000:: @ 083C4000 - .incbin "baserom.gba", 0x3C4000, 0x0002236 - -gUnk_083C6236:: @ 083C6236 - .incbin "baserom.gba", 0x3C6236, 0x0000D44 - -gUnk_083C6F7A:: @ 083C6F7A - .incbin "baserom.gba", 0x3C6F7A, 0x00030A2 - -gUnk_083CA01C:: @ 083CA01C - .incbin "baserom.gba", 0x3CA01C, 0x00040BD - -gUnk_083CE0D9:: @ 083CE0D9 - .incbin "baserom.gba", 0x3CE0D9, 0x0001F27 - -gUnk_083D0000:: @ 083D0000 - .incbin "baserom.gba", 0x3D0000, 0x0000055 - -gUnk_083D0055:: @ 083D0055 - .incbin "baserom.gba", 0x3D0055, 0x000042B - -gUnk_083D0480:: @ 083D0480 - .incbin "baserom.gba", 0x3D0480, 0x00003BC - -gUnk_083D083C:: @ 083D083C - .incbin "baserom.gba", 0x3D083C, 0x00037C4 - -gUnk_083D4000:: @ 083D4000 - .incbin "baserom.gba", 0x3D4000, 0x000005C - -gUnk_083D405C:: @ 083D405C - .incbin "baserom.gba", 0x3D405C, 0x0001B06 - -gUnk_083D5B62:: @ 083D5B62 - .incbin "baserom.gba", 0x3D5B62, 0x000249E - -gUnk_083D8000:: @ 083D8000 - .incbin "baserom.gba", 0x3D8000, 0x0008000 - -gUnk_083E0000:: @ 083E0000 - .incbin "baserom.gba", 0x3E0000, 0x0000001 - -gUnk_083E0001:: @ 083E0001 - .incbin "baserom.gba", 0x3E0001, 0x0000F05 - -gUnk_083E0F06:: @ 083E0F06 - .incbin "baserom.gba", 0x3E0F06, 0x0000020 - -gUnk_083E0F26:: @ 083E0F26 - .incbin "baserom.gba", 0x3E0F26, 0x00019E6 - -gUnk_083E290C:: @ 083E290C - .incbin "baserom.gba", 0x3E290C, 0x00016F2 - -gUnk_083E3FFE:: @ 083E3FFE - .incbin "baserom.gba", 0x3E3FFE, 0x000006C - -gUnk_083E406A:: @ 083E406A - .incbin "baserom.gba", 0x3E406A, 0x000006A - -gUnk_083E40D4:: @ 083E40D4 - .incbin "baserom.gba", 0x3E40D4, 0x000133D - -gUnk_083E5411:: @ 083E5411 - .incbin "baserom.gba", 0x3E5411, 0x0000532 - -gUnk_083E5943:: @ 083E5943 - .incbin "baserom.gba", 0x3E5943, 0x00002E1 - -gUnk_083E5C24:: @ 083E5C24 - .incbin "baserom.gba", 0x3E5C24, 0x00029EC - -gUnk_083E8610:: @ 083E8610 - .incbin "baserom.gba", 0x3E8610, 0x00079F0 - -gUnk_083F0000:: @ 083F0000 - .incbin "baserom.gba", 0x3F0000, 0x0000001 - -gUnk_083F0001:: @ 083F0001 - .incbin "baserom.gba", 0x3F0001, 0x000003F - -gUnk_083F0040:: @ 083F0040 - .incbin "baserom.gba", 0x3F0040, 0x000037F - -gUnk_083F03BF:: @ 083F03BF - .incbin "baserom.gba", 0x3F03BF, 0x0002450 - -gUnk_083F280F:: @ 083F280F - .incbin "baserom.gba", 0x3F280F, 0x0000BC3 - -gUnk_083F33D2:: @ 083F33D2 - .incbin "baserom.gba", 0x3F33D2, 0x0000F67 - -gUnk_083F4339:: @ 083F4339 - .incbin "baserom.gba", 0x3F4339, 0x00000CE - -gUnk_083F4407:: @ 083F4407 - .incbin "baserom.gba", 0x3F4407, 0x0000BC8 - -gUnk_083F4FCF:: @ 083F4FCF - .incbin "baserom.gba", 0x3F4FCF, 0x0000035 - -gUnk_083F5004:: @ 083F5004 - .incbin "baserom.gba", 0x3F5004, 0x0000335 - -gUnk_083F5339:: @ 083F5339 - .incbin "baserom.gba", 0x3F5339, 0x000000A - -gUnk_083F5343:: @ 083F5343 - .incbin "baserom.gba", 0x3F5343, 0x0000D77 - -gUnk_083F60BA:: @ 083F60BA - .incbin "baserom.gba", 0x3F60BA, 0x0000051 - -gUnk_083F610B:: @ 083F610B - .incbin "baserom.gba", 0x3F610B, 0x0000057 - -gUnk_083F6162:: @ 083F6162 - .incbin "baserom.gba", 0x3F6162, 0x00006D5 - -gUnk_083F6837:: @ 083F6837 - .incbin "baserom.gba", 0x3F6837, 0x0000907 - -gUnk_083F713E:: @ 083F713E - .incbin "baserom.gba", 0x3F713E, 0x000033B - -gUnk_083F7479:: @ 083F7479 - .incbin "baserom.gba", 0x3F7479, 0x0000B8A - -gUnk_083F8003:: @ 083F8003 - .incbin "baserom.gba", 0x3F8003, 0x0001086 - -gUnk_083F9089:: @ 083F9089 - .incbin "baserom.gba", 0x3F9089, 0x0003334 - -gUnk_083FC3BD:: @ 083FC3BD - .incbin "baserom.gba", 0x3FC3BD, 0x0000D3C - -gUnk_083FD0F9:: @ 083FD0F9 - .incbin "baserom.gba", 0x3FD0F9, 0x0001DF3 - -gUnk_083FEEEC:: @ 083FEEEC - .incbin "baserom.gba", 0x3FEEEC, 0x0001114 - -gUnk_08400000:: @ 08400000 - .incbin "baserom.gba", 0x400000, 0x0000001 - -gUnk_08400001:: @ 08400001 - .incbin "baserom.gba", 0x400001, 0x0000003 - -gUnk_08400004:: @ 08400004 - .incbin "baserom.gba", 0x400004, 0x0000003 - -gUnk_08400007:: @ 08400007 - .incbin "baserom.gba", 0x400007, 0x0000003 - -gUnk_0840000A:: @ 0840000A - .incbin "baserom.gba", 0x40000A, 0x000001D - -gUnk_08400027:: @ 08400027 - .incbin "baserom.gba", 0x400027, 0x0000006 - -gUnk_0840002D:: @ 0840002D - .incbin "baserom.gba", 0x40002D, 0x0000050 - -gUnk_0840007D:: @ 0840007D - .incbin "baserom.gba", 0x40007D, 0x0000068 - -gUnk_084000E5:: @ 084000E5 - .incbin "baserom.gba", 0x4000E5, 0x0000001 - -gUnk_084000E6:: @ 084000E6 - .incbin "baserom.gba", 0x4000E6, 0x0000001 - -gUnk_084000E7:: @ 084000E7 - .incbin "baserom.gba", 0x4000E7, 0x0000009 - -gUnk_084000F0:: @ 084000F0 - .incbin "baserom.gba", 0x4000F0, 0x0000004 - -gUnk_084000F4:: @ 084000F4 - .incbin "baserom.gba", 0x4000F4, 0x0000002 - -gUnk_084000F6:: @ 084000F6 - .incbin "baserom.gba", 0x4000F6, 0x0000009 - -gUnk_084000FF:: @ 084000FF - .incbin "baserom.gba", 0x4000FF, 0x0000001 - -gUnk_08400100:: @ 08400100 - .incbin "baserom.gba", 0x400100, 0x0000030 - -gUnk_08400130:: @ 08400130 - .incbin "baserom.gba", 0x400130, 0x0000078 - -gUnk_084001A8:: @ 084001A8 - .incbin "baserom.gba", 0x4001A8, 0x000001C - -gUnk_084001C4:: @ 084001C4 - .incbin "baserom.gba", 0x4001C4, 0x0000026 - -gUnk_084001EA:: @ 084001EA - .incbin "baserom.gba", 0x4001EA, 0x000000E - -gUnk_084001F8:: @ 084001F8 - .incbin "baserom.gba", 0x4001F8, 0x0000219 - -gUnk_08400411:: @ 08400411 - .incbin "baserom.gba", 0x400411, 0x0000184 - -gUnk_08400595:: @ 08400595 - .incbin "baserom.gba", 0x400595, 0x000005B - -gUnk_084005F0:: @ 084005F0 - .incbin "baserom.gba", 0x4005F0, 0x0000015 - -gUnk_08400605:: @ 08400605 - .incbin "baserom.gba", 0x400605, 0x000000B - -gUnk_08400610:: @ 08400610 - .incbin "baserom.gba", 0x400610, 0x000002E - -gUnk_0840063E:: @ 0840063E - .incbin "baserom.gba", 0x40063E, 0x00000C2 - -gUnk_08400700:: @ 08400700 - .incbin "baserom.gba", 0x400700, 0x0000010 - -gUnk_08400710:: @ 08400710 - .incbin "baserom.gba", 0x400710, 0x0000020 - -gUnk_08400730:: @ 08400730 - .incbin "baserom.gba", 0x400730, 0x0000010 - -gUnk_08400740:: @ 08400740 - .incbin "baserom.gba", 0x400740, 0x000000A - -gUnk_0840074A:: @ 0840074A - .incbin "baserom.gba", 0x40074A, 0x0000006 - -gUnk_08400750:: @ 08400750 - .incbin "baserom.gba", 0x400750, 0x0000010 - -gUnk_08400760:: @ 08400760 - .incbin "baserom.gba", 0x400760, 0x0000080 - -gUnk_084007E0:: @ 084007E0 - .incbin "baserom.gba", 0x4007E0, 0x0000030 - -gUnk_08400810:: @ 08400810 - .incbin "baserom.gba", 0x400810, 0x0000014 - -gUnk_08400824:: @ 08400824 - .incbin "baserom.gba", 0x400824, 0x0000009 - -gUnk_0840082D:: @ 0840082D - .incbin "baserom.gba", 0x40082D, 0x0000009 - -gUnk_08400836:: @ 08400836 - .incbin "baserom.gba", 0x400836, 0x000000A - -gUnk_08400840:: @ 08400840 - .incbin "baserom.gba", 0x400840, 0x000005F - -gUnk_0840089F:: @ 0840089F - .incbin "baserom.gba", 0x40089F, 0x0000451 - -gUnk_08400CF0:: @ 08400CF0 - .incbin "baserom.gba", 0x400CF0, 0x0000210 - -gUnk_08400F00:: @ 08400F00 - .incbin "baserom.gba", 0x400F00, 0x0000029 - -gUnk_08400F29:: @ 08400F29 - .incbin "baserom.gba", 0x400F29, 0x0000013 - -gUnk_08400F3C:: @ 08400F3C - .incbin "baserom.gba", 0x400F3C, 0x0000008 - -gUnk_08400F44:: @ 08400F44 - .incbin "baserom.gba", 0x400F44, 0x0000195 - -gUnk_084010D9:: @ 084010D9 - .incbin "baserom.gba", 0x4010D9, 0x00001A8 - -gUnk_08401281:: @ 08401281 - .incbin "baserom.gba", 0x401281, 0x00000C0 - -gUnk_08401341:: @ 08401341 - .incbin "baserom.gba", 0x401341, 0x00007B7 - -gUnk_08401AF8:: @ 08401AF8 - .incbin "baserom.gba", 0x401AF8, 0x00004C8 - -gUnk_08401FC0:: @ 08401FC0 - .incbin "baserom.gba", 0x401FC0, 0x0000268 - -gUnk_08402228:: @ 08402228 - .incbin "baserom.gba", 0x402228, 0x0000518 - -gUnk_08402740:: @ 08402740 - .incbin "baserom.gba", 0x402740, 0x0000501 - -gUnk_08402C41:: @ 08402C41 - .incbin "baserom.gba", 0x402C41, 0x00002C7 - -gUnk_08402F08:: @ 08402F08 - .incbin "baserom.gba", 0x402F08, 0x00003F7 - -gUnk_084032FF:: @ 084032FF - .incbin "baserom.gba", 0x4032FF, 0x0000011 - -gUnk_08403310:: @ 08403310 - .incbin "baserom.gba", 0x403310, 0x0000553 - -gUnk_08403863:: @ 08403863 - .incbin "baserom.gba", 0x403863, 0x00007A0 - -gUnk_08404003:: @ 08404003 - .incbin "baserom.gba", 0x404003, 0x000001D - -gUnk_08404020:: @ 08404020 - .incbin "baserom.gba", 0x404020, 0x00001F0 - -gUnk_08404210:: @ 08404210 - .incbin "baserom.gba", 0x404210, 0x0000454 - -gUnk_08404664:: @ 08404664 - .incbin "baserom.gba", 0x404664, 0x000039C - -gUnk_08404A00:: @ 08404A00 - .incbin "baserom.gba", 0x404A00, 0x0000568 - -gUnk_08404F68:: @ 08404F68 - .incbin "baserom.gba", 0x404F68, 0x0000298 - -gUnk_08405200:: @ 08405200 - .incbin "baserom.gba", 0x405200, 0x0000227 - -gUnk_08405427:: @ 08405427 - .incbin "baserom.gba", 0x405427, 0x000061A - -gUnk_08405A41:: @ 08405A41 - .incbin "baserom.gba", 0x405A41, 0x0000614 - -gUnk_08406055:: @ 08406055 - .incbin "baserom.gba", 0x406055, 0x00000B3 - -gUnk_08406108:: @ 08406108 - .incbin "baserom.gba", 0x406108, 0x000021C - -gUnk_08406324:: @ 08406324 - .incbin "baserom.gba", 0x406324, 0x0000854 - -gUnk_08406B78:: @ 08406B78 - .incbin "baserom.gba", 0x406B78, 0x0000107 - -gUnk_08406C7F:: @ 08406C7F - .incbin "baserom.gba", 0x406C7F, 0x0000389 - -gUnk_08407008:: @ 08407008 - .incbin "baserom.gba", 0x407008, 0x0000C52 - -gUnk_08407C5A:: @ 08407C5A - .incbin "baserom.gba", 0x407C5A, 0x00002AD - -gUnk_08407F07:: @ 08407F07 - .incbin "baserom.gba", 0x407F07, 0x00003CA - -gUnk_084082D1:: @ 084082D1 - .incbin "baserom.gba", 0x4082D1, 0x000003D - -gUnk_0840830E:: @ 0840830E - .incbin "baserom.gba", 0x40830E, 0x000028A - -gUnk_08408598:: @ 08408598 - .incbin "baserom.gba", 0x408598, 0x00001A8 - -gUnk_08408740:: @ 08408740 - .incbin "baserom.gba", 0x408740, 0x00000C8 - -gUnk_08408808:: @ 08408808 - .incbin "baserom.gba", 0x408808, 0x00000FF - -gUnk_08408907:: @ 08408907 - .incbin "baserom.gba", 0x408907, 0x000018F - -gUnk_08408A96:: @ 08408A96 - .incbin "baserom.gba", 0x408A96, 0x00001E7 - -gUnk_08408C7D:: @ 08408C7D - .incbin "baserom.gba", 0x408C7D, 0x000024A - -gUnk_08408EC7:: @ 08408EC7 - .incbin "baserom.gba", 0x408EC7, 0x000007C - -gUnk_08408F43:: @ 08408F43 - .incbin "baserom.gba", 0x408F43, 0x00000C7 - -gUnk_0840900A:: @ 0840900A - .incbin "baserom.gba", 0x40900A, 0x0000155 - -gUnk_0840915F:: @ 0840915F - .incbin "baserom.gba", 0x40915F, 0x000011B - -gUnk_0840927A:: @ 0840927A - .incbin "baserom.gba", 0x40927A, 0x00002A3 - -gUnk_0840951D:: @ 0840951D - .incbin "baserom.gba", 0x40951D, 0x00004F4 - -gUnk_08409A11:: @ 08409A11 - .incbin "baserom.gba", 0x409A11, 0x0000739 - -gUnk_0840A14A:: @ 0840A14A - .incbin "baserom.gba", 0x40A14A, 0x000044D - -gUnk_0840A597:: @ 0840A597 - .incbin "baserom.gba", 0x40A597, 0x000036A - -gUnk_0840A901:: @ 0840A901 - .incbin "baserom.gba", 0x40A901, 0x0000189 - -gUnk_0840AA8A:: @ 0840AA8A - .incbin "baserom.gba", 0x40AA8A, 0x000043B - -gUnk_0840AEC5:: @ 0840AEC5 - .incbin "baserom.gba", 0x40AEC5, 0x0000074 - -gUnk_0840AF39:: @ 0840AF39 - .incbin "baserom.gba", 0x40AF39, 0x0000067 - -gUnk_0840AFA0:: @ 0840AFA0 - .incbin "baserom.gba", 0x40AFA0, 0x00000DF - -gUnk_0840B07F:: @ 0840B07F - .incbin "baserom.gba", 0x40B07F, 0x0000289 - -gUnk_0840B308:: @ 0840B308 - .incbin "baserom.gba", 0x40B308, 0x00002C7 - -gUnk_0840B5CF:: @ 0840B5CF - .incbin "baserom.gba", 0x40B5CF, 0x000007D - -gUnk_0840B64C:: @ 0840B64C - .incbin "baserom.gba", 0x40B64C, 0x0000098 - -gUnk_0840B6E4:: @ 0840B6E4 - .incbin "baserom.gba", 0x40B6E4, 0x00000D9 - -gUnk_0840B7BD:: @ 0840B7BD - .incbin "baserom.gba", 0x40B7BD, 0x0000243 - -gUnk_0840BA00:: @ 0840BA00 - .incbin "baserom.gba", 0x40BA00, 0x000073D - -gUnk_0840C13D:: @ 0840C13D - .incbin "baserom.gba", 0x40C13D, 0x0000446 - -gUnk_0840C583:: @ 0840C583 - .incbin "baserom.gba", 0x40C583, 0x0000042 - -gUnk_0840C5C5:: @ 0840C5C5 - .incbin "baserom.gba", 0x40C5C5, 0x000016E - -gUnk_0840C733:: @ 0840C733 - .incbin "baserom.gba", 0x40C733, 0x0000395 - -gUnk_0840CAC8:: @ 0840CAC8 - .incbin "baserom.gba", 0x40CAC8, 0x00000F3 - -gUnk_0840CBBB:: @ 0840CBBB - .incbin "baserom.gba", 0x40CBBB, 0x0000098 - -gUnk_0840CC53:: @ 0840CC53 - .incbin "baserom.gba", 0x40CC53, 0x000000F - -gUnk_0840CC62:: @ 0840CC62 - .incbin "baserom.gba", 0x40CC62, 0x0000027 - -gUnk_0840CC89:: @ 0840CC89 - .incbin "baserom.gba", 0x40CC89, 0x00002DD - -gUnk_0840CF66:: @ 0840CF66 - .incbin "baserom.gba", 0x40CF66, 0x0000136 - -gUnk_0840D09C:: @ 0840D09C - .incbin "baserom.gba", 0x40D09C, 0x00000C1 - -gUnk_0840D15D:: @ 0840D15D - .incbin "baserom.gba", 0x40D15D, 0x00001A4 - -gUnk_0840D301:: @ 0840D301 - .incbin "baserom.gba", 0x40D301, 0x000003E - -gUnk_0840D33F:: @ 0840D33F - .incbin "baserom.gba", 0x40D33F, 0x00003DA - -gUnk_0840D719:: @ 0840D719 - .incbin "baserom.gba", 0x40D719, 0x00003A3 - -gUnk_0840DABC:: @ 0840DABC - .incbin "baserom.gba", 0x40DABC, 0x000004C - -gUnk_0840DB08:: @ 0840DB08 - .incbin "baserom.gba", 0x40DB08, 0x000006F - -gUnk_0840DB77:: @ 0840DB77 - .incbin "baserom.gba", 0x40DB77, 0x0000002 - -gUnk_0840DB79:: @ 0840DB79 - .incbin "baserom.gba", 0x40DB79, 0x00000E6 - -gUnk_0840DC5F:: @ 0840DC5F - .incbin "baserom.gba", 0x40DC5F, 0x000001A - -gUnk_0840DC79:: @ 0840DC79 - .incbin "baserom.gba", 0x40DC79, 0x00000DE - -gUnk_0840DD57:: @ 0840DD57 - .incbin "baserom.gba", 0x40DD57, 0x00001F9 - -gUnk_0840DF50:: @ 0840DF50 - .incbin "baserom.gba", 0x40DF50, 0x0000214 - -gUnk_0840E164:: @ 0840E164 - .incbin "baserom.gba", 0x40E164, 0x0000290 - -gUnk_0840E3F4:: @ 0840E3F4 - .incbin "baserom.gba", 0x40E3F4, 0x0000204 - -gUnk_0840E5F8:: @ 0840E5F8 - .incbin "baserom.gba", 0x40E5F8, 0x0000098 - -gUnk_0840E690:: @ 0840E690 - .incbin "baserom.gba", 0x40E690, 0x000016F - -gUnk_0840E7FF:: @ 0840E7FF - .incbin "baserom.gba", 0x40E7FF, 0x00000CE - -gUnk_0840E8CD:: @ 0840E8CD - .incbin "baserom.gba", 0x40E8CD, 0x000002E - -gUnk_0840E8FB:: @ 0840E8FB - .incbin "baserom.gba", 0x40E8FB, 0x0000301 - -gUnk_0840EBFC:: @ 0840EBFC - .incbin "baserom.gba", 0x40EBFC, 0x00000FA - -gUnk_0840ECF6:: @ 0840ECF6 - .incbin "baserom.gba", 0x40ECF6, 0x0000006 - -gUnk_0840ECFC:: @ 0840ECFC - .incbin "baserom.gba", 0x40ECFC, 0x00000FC - -gUnk_0840EDF8:: @ 0840EDF8 - .incbin "baserom.gba", 0x40EDF8, 0x00000FF - -gUnk_0840EEF7:: @ 0840EEF7 - .incbin "baserom.gba", 0x40EEF7, 0x0000011 - -gUnk_0840EF08:: @ 0840EF08 - .incbin "baserom.gba", 0x40EF08, 0x00001D8 - -gUnk_0840F0E0:: @ 0840F0E0 - .incbin "baserom.gba", 0x40F0E0, 0x0000018 - -gUnk_0840F0F8:: @ 0840F0F8 - .incbin "baserom.gba", 0x40F0F8, 0x000000F - -gUnk_0840F107:: @ 0840F107 - .incbin "baserom.gba", 0x40F107, 0x00001E5 - -gUnk_0840F2EC:: @ 0840F2EC - .incbin "baserom.gba", 0x40F2EC, 0x0000264 - -gUnk_0840F550:: @ 0840F550 - .incbin "baserom.gba", 0x40F550, 0x00000A8 - -gUnk_0840F5F8:: @ 0840F5F8 - .incbin "baserom.gba", 0x40F5F8, 0x000013D - -gUnk_0840F735:: @ 0840F735 - .incbin "baserom.gba", 0x40F735, 0x00000C3 - -gUnk_0840F7F8:: @ 0840F7F8 - .incbin "baserom.gba", 0x40F7F8, 0x00002FC - -gUnk_0840FAF4:: @ 0840FAF4 - .incbin "baserom.gba", 0x40FAF4, 0x0000004 - -gUnk_0840FAF8:: @ 0840FAF8 - .incbin "baserom.gba", 0x40FAF8, 0x00000FE - -gUnk_0840FBF6:: @ 0840FBF6 - .incbin "baserom.gba", 0x40FBF6, 0x0000002 - -gUnk_0840FBF8:: @ 0840FBF8 - .incbin "baserom.gba", 0x40FBF8, 0x0000001 - -gUnk_0840FBF9:: @ 0840FBF9 - .incbin "baserom.gba", 0x40FBF9, 0x0000001 - -gUnk_0840FBFA:: @ 0840FBFA - .incbin "baserom.gba", 0x40FBFA, 0x00000FE - -gUnk_0840FCF8:: @ 0840FCF8 - .incbin "baserom.gba", 0x40FCF8, 0x0000002 - -gUnk_0840FCFA:: @ 0840FCFA - .incbin "baserom.gba", 0x40FCFA, 0x00000FE - -gUnk_0840FDF8:: @ 0840FDF8 - .incbin "baserom.gba", 0x40FDF8, 0x000000F - -gUnk_0840FE07:: @ 0840FE07 - .incbin "baserom.gba", 0x40FE07, 0x00001E2 - -gUnk_0840FFE9:: @ 0840FFE9 - .incbin "baserom.gba", 0x40FFE9, 0x000011E - -gUnk_08410107:: @ 08410107 - .incbin "baserom.gba", 0x410107, 0x000090A - -gUnk_08410A11:: @ 08410A11 - .incbin "baserom.gba", 0x410A11, 0x0000808 - -gUnk_08411219:: @ 08411219 - .incbin "baserom.gba", 0x411219, 0x00001EB - -gUnk_08411404:: @ 08411404 - .incbin "baserom.gba", 0x411404, 0x0001D1C - -gUnk_08413120:: @ 08413120 - .incbin "baserom.gba", 0x413120, 0x0000103 - -gUnk_08413223:: @ 08413223 - .incbin "baserom.gba", 0x413223, 0x000220F - -gUnk_08415432:: @ 08415432 - .incbin "baserom.gba", 0x415432, 0x00003CA - -gUnk_084157FC:: @ 084157FC - .incbin "baserom.gba", 0x4157FC, 0x0001676 - -gUnk_08416E72:: @ 08416E72 - .incbin "baserom.gba", 0x416E72, 0x00011CE - -gUnk_08418040:: @ 08418040 - .incbin "baserom.gba", 0x418040, 0x0000BD0 - -gUnk_08418C10:: @ 08418C10 - .incbin "baserom.gba", 0x418C10, 0x00032F8 - -gUnk_0841BF08:: @ 0841BF08 - .incbin "baserom.gba", 0x41BF08, 0x0002DD7 - -gUnk_0841ECDF:: @ 0841ECDF - .incbin "baserom.gba", 0x41ECDF, 0x0000319 - -gUnk_0841EFF8:: @ 0841EFF8 - .incbin "baserom.gba", 0x41EFF8, 0x00003F8 - -gUnk_0841F3F0:: @ 0841F3F0 - .incbin "baserom.gba", 0x41F3F0, 0x000000A - -gUnk_0841F3FA:: @ 0841F3FA - .incbin "baserom.gba", 0x41F3FA, 0x00001F6 - -gUnk_0841F5F0:: @ 0841F5F0 - .incbin "baserom.gba", 0x41F5F0, 0x00001FE - -gUnk_0841F7EE:: @ 0841F7EE - .incbin "baserom.gba", 0x41F7EE, 0x000010A - -gUnk_0841F8F8:: @ 0841F8F8 - .incbin "baserom.gba", 0x41F8F8, 0x0000100 - -gUnk_0841F9F8:: @ 0841F9F8 - .incbin "baserom.gba", 0x41F9F8, 0x0000100 - -gUnk_0841FAF8:: @ 0841FAF8 - .incbin "baserom.gba", 0x41FAF8, 0x0000508 - -gUnk_08420000:: @ 08420000 - .incbin "baserom.gba", 0x420000, 0x0000092 - -gUnk_08420092:: @ 08420092 - .incbin "baserom.gba", 0x420092, 0x00003A5 - -gUnk_08420437:: @ 08420437 - .incbin "baserom.gba", 0x420437, 0x0000005 - -gUnk_0842043C:: @ 0842043C - .incbin "baserom.gba", 0x42043C, 0x0000C91 - -gUnk_084210CD:: @ 084210CD - .incbin "baserom.gba", 0x4210CD, 0x0000058 - -gUnk_08421125:: @ 08421125 - .incbin "baserom.gba", 0x421125, 0x0001004 - -gUnk_08422129:: @ 08422129 - .incbin "baserom.gba", 0x422129, 0x0000049 - -gUnk_08422172:: @ 08422172 - .incbin "baserom.gba", 0x422172, 0x00007C4 - -gUnk_08422936:: @ 08422936 - .incbin "baserom.gba", 0x422936, 0x000039B - -gUnk_08422CD1:: @ 08422CD1 - .incbin "baserom.gba", 0x422CD1, 0x0001637 - -gUnk_08424308:: @ 08424308 - .incbin "baserom.gba", 0x424308, 0x0003B7D - -gUnk_08427E85:: @ 08427E85 - .incbin "baserom.gba", 0x427E85, 0x000017A - -gUnk_08427FFF:: @ 08427FFF - .incbin "baserom.gba", 0x427FFF, 0x0002A70 - -gUnk_0842AA6F:: @ 0842AA6F - .incbin "baserom.gba", 0x42AA6F, 0x0001AD6 - -gUnk_0842C545:: @ 0842C545 - .incbin "baserom.gba", 0x42C545, 0x0000D8E - -gUnk_0842D2D3:: @ 0842D2D3 - .incbin "baserom.gba", 0x42D2D3, 0x0002730 - -gUnk_0842FA03:: @ 0842FA03 - .incbin "baserom.gba", 0x42FA03, 0x00005FD - -gUnk_08430000:: @ 08430000 - .incbin "baserom.gba", 0x430000, 0x000009A - -gUnk_0843009A:: @ 0843009A - .incbin "baserom.gba", 0x43009A, 0x0000052 - -gUnk_084300EC:: @ 084300EC - .incbin "baserom.gba", 0x4300EC, 0x0000044 - -gUnk_08430130:: @ 08430130 - .incbin "baserom.gba", 0x430130, 0x00001D0 - -gUnk_08430300:: @ 08430300 - .incbin "baserom.gba", 0x430300, 0x0000142 - -gUnk_08430442:: @ 08430442 - .incbin "baserom.gba", 0x430442, 0x0000A62 - -gUnk_08430EA4:: @ 08430EA4 - .incbin "baserom.gba", 0x430EA4, 0x00001F1 - -gUnk_08431095:: @ 08431095 - .incbin "baserom.gba", 0x431095, 0x000016E - -gUnk_08431203:: @ 08431203 - .incbin "baserom.gba", 0x431203, 0x0000020 - -gUnk_08431223:: @ 08431223 - .incbin "baserom.gba", 0x431223, 0x000034D - -gUnk_08431570:: @ 08431570 - .incbin "baserom.gba", 0x431570, 0x0000490 - -gUnk_08431A00:: @ 08431A00 - .incbin "baserom.gba", 0x431A00, 0x00009E2 - -gUnk_084323E2:: @ 084323E2 - .incbin "baserom.gba", 0x4323E2, 0x0000E16 - -gUnk_084331F8:: @ 084331F8 - .incbin "baserom.gba", 0x4331F8, 0x000013B - -gUnk_08433333:: @ 08433333 - .incbin "baserom.gba", 0x433333, 0x0000001 - -gUnk_08433334:: @ 08433334 - .incbin "baserom.gba", 0x433334, 0x0000001 - -gUnk_08433335:: @ 08433335 - .incbin "baserom.gba", 0x433335, 0x0000FBC - -gUnk_084342F1:: @ 084342F1 - .incbin "baserom.gba", 0x4342F1, 0x0000663 - -gUnk_08434954:: @ 08434954 - .incbin "baserom.gba", 0x434954, 0x0000EAB - -gUnk_084357FF:: @ 084357FF - .incbin "baserom.gba", 0x4357FF, 0x000055E - -gUnk_08435D5D:: @ 08435D5D - .incbin "baserom.gba", 0x435D5D, 0x0000802 - -gUnk_0843655F:: @ 0843655F - .incbin "baserom.gba", 0x43655F, 0x0001288 - -gUnk_084377E7:: @ 084377E7 - .incbin "baserom.gba", 0x4377E7, 0x0000553 - -gUnk_08437D3A:: @ 08437D3A - .incbin "baserom.gba", 0x437D3A, 0x00000DC - -gUnk_08437E16:: @ 08437E16 - .incbin "baserom.gba", 0x437E16, 0x0000099 - -gUnk_08437EAF:: @ 08437EAF - .incbin "baserom.gba", 0x437EAF, 0x000014B - -gUnk_08437FFA:: @ 08437FFA - .incbin "baserom.gba", 0x437FFA, 0x0007B19 - -gUnk_0843FB13:: @ 0843FB13 - .incbin "baserom.gba", 0x43FB13, 0x0000495 - -gUnk_0843FFA8:: @ 0843FFA8 - .incbin "baserom.gba", 0x43FFA8, 0x0000082 - -gUnk_0844002A:: @ 0844002A - .incbin "baserom.gba", 0x44002A, 0x00001C2 - -gUnk_084401EC:: @ 084401EC - .incbin "baserom.gba", 0x4401EC, 0x0000A56 - -gUnk_08440C42:: @ 08440C42 - .incbin "baserom.gba", 0x440C42, 0x00004C0 - -gUnk_08441102:: @ 08441102 - .incbin "baserom.gba", 0x441102, 0x000000F - -gUnk_08441111:: @ 08441111 - .incbin "baserom.gba", 0x441111, 0x0000101 - -gUnk_08441212:: @ 08441212 - .incbin "baserom.gba", 0x441212, 0x0000117 - -gUnk_08441329:: @ 08441329 - .incbin "baserom.gba", 0x441329, 0x0000311 - -gUnk_0844163A:: @ 0844163A - .incbin "baserom.gba", 0x44163A, 0x00001EE - -gUnk_08441828:: @ 08441828 - .incbin "baserom.gba", 0x441828, 0x00003FC - -gUnk_08441C24:: @ 08441C24 - .incbin "baserom.gba", 0x441C24, 0x00001DD - -gUnk_08441E01:: @ 08441E01 - .incbin "baserom.gba", 0x441E01, 0x0000322 - -gUnk_08442123:: @ 08442123 - .incbin "baserom.gba", 0x442123, 0x000107D - -gUnk_084431A0:: @ 084431A0 - .incbin "baserom.gba", 0x4431A0, 0x0000083 - -gUnk_08443223:: @ 08443223 - .incbin "baserom.gba", 0x443223, 0x0000023 - -gUnk_08443246:: @ 08443246 - .incbin "baserom.gba", 0x443246, 0x00001C5 - -gUnk_0844340B:: @ 0844340B - .incbin "baserom.gba", 0x44340B, 0x0000F39 - -gUnk_08444344:: @ 08444344 - .incbin "baserom.gba", 0x444344, 0x00000F0 - -gUnk_08444434:: @ 08444434 - .incbin "baserom.gba", 0x444434, 0x000000E - -gUnk_08444442:: @ 08444442 - .incbin "baserom.gba", 0x444442, 0x0000002 - -gUnk_08444444:: @ 08444444 - .incbin "baserom.gba", 0x444444, 0x00000B9 - -gUnk_084444FD:: @ 084444FD - .incbin "baserom.gba", 0x4444FD, 0x0000097 - -gUnk_08444594:: @ 08444594 - .incbin "baserom.gba", 0x444594, 0x0000158 - -gUnk_084446EC:: @ 084446EC - .incbin "baserom.gba", 0x4446EC, 0x000003B - -gUnk_08444727:: @ 08444727 - .incbin "baserom.gba", 0x444727, 0x000051E - -gUnk_08444C45:: @ 08444C45 - .incbin "baserom.gba", 0x444C45, 0x00002A5 - -gUnk_08444EEA:: @ 08444EEA - .incbin "baserom.gba", 0x444EEA, 0x0000959 - -gUnk_08445843:: @ 08445843 - .incbin "baserom.gba", 0x445843, 0x00003E0 - -gUnk_08445C23:: @ 08445C23 - .incbin "baserom.gba", 0x445C23, 0x0000110 - -gUnk_08445D33:: @ 08445D33 - .incbin "baserom.gba", 0x445D33, 0x00000CD - -gUnk_08445E00:: @ 08445E00 - .incbin "baserom.gba", 0x445E00, 0x0000768 - -gUnk_08446568:: @ 08446568 - .incbin "baserom.gba", 0x446568, 0x000190A - -gUnk_08447E72:: @ 08447E72 - .incbin "baserom.gba", 0x447E72, 0x00000A2 - -gUnk_08447F14:: @ 08447F14 - .incbin "baserom.gba", 0x447F14, 0x0000232 - -gUnk_08448146:: @ 08448146 - .incbin "baserom.gba", 0x448146, 0x00004BA - -gUnk_08448600:: @ 08448600 - .incbin "baserom.gba", 0x448600, 0x000151A - -gUnk_08449B1A:: @ 08449B1A - .incbin "baserom.gba", 0x449B1A, 0x00009E6 - -gUnk_0844A500:: @ 0844A500 - .incbin "baserom.gba", 0x44A500, 0x0000E33 - -gUnk_0844B333:: @ 0844B333 - .incbin "baserom.gba", 0x44B333, 0x000211A - -gUnk_0844D44D:: @ 0844D44D - .incbin "baserom.gba", 0x44D44D, 0x00003B3 - -gUnk_0844D800:: @ 0844D800 - .incbin "baserom.gba", 0x44D800, 0x0001700 - -gUnk_0844EF00:: @ 0844EF00 - .incbin "baserom.gba", 0x44EF00, 0x000011F - -gUnk_0844F01F:: @ 0844F01F - .incbin "baserom.gba", 0x44F01F, 0x00000D9 - -gUnk_0844F0F8:: @ 0844F0F8 - .incbin "baserom.gba", 0x44F0F8, 0x0000A0B - -gUnk_0844FB03:: @ 0844FB03 - .incbin "baserom.gba", 0x44FB03, 0x000050D - -gUnk_08450010:: @ 08450010 - .incbin "baserom.gba", 0x450010, 0x00003F1 - -gUnk_08450401:: @ 08450401 - .incbin "baserom.gba", 0x450401, 0x0001D21 - -gUnk_08452122:: @ 08452122 - .incbin "baserom.gba", 0x452122, 0x00000FE - -gUnk_08452220:: @ 08452220 - .incbin "baserom.gba", 0x452220, 0x0000134 - -gUnk_08452354:: @ 08452354 - .incbin "baserom.gba", 0x452354, 0x0000DE1 - -gUnk_08453135:: @ 08453135 - .incbin "baserom.gba", 0x453135, 0x00000FF - -gUnk_08453234:: @ 08453234 - .incbin "baserom.gba", 0x453234, 0x00001D4 - -gUnk_08453408:: @ 08453408 - .incbin "baserom.gba", 0x453408, 0x000001C - -gUnk_08453424:: @ 08453424 - .incbin "baserom.gba", 0x453424, 0x00006DC - -gUnk_08453B00:: @ 08453B00 - .incbin "baserom.gba", 0x453B00, 0x00005E5 - -gUnk_084540E5:: @ 084540E5 - .incbin "baserom.gba", 0x4540E5, 0x000034F - -gUnk_08454434:: @ 08454434 - .incbin "baserom.gba", 0x454434, 0x000002A - -gUnk_0845445E:: @ 0845445E - .incbin "baserom.gba", 0x45445E, 0x0000093 - -gUnk_084544F1:: @ 084544F1 - .incbin "baserom.gba", 0x4544F1, 0x0000063 - -gUnk_08454554:: @ 08454554 - .incbin "baserom.gba", 0x454554, 0x0000BC2 - -gUnk_08455116:: @ 08455116 - .incbin "baserom.gba", 0x455116, 0x0000124 - -gUnk_0845523A:: @ 0845523A - .incbin "baserom.gba", 0x45523A, 0x00000E9 - -gUnk_08455323:: @ 08455323 - .incbin "baserom.gba", 0x455323, 0x0000221 - -gUnk_08455544:: @ 08455544 - .incbin "baserom.gba", 0x455544, 0x0000011 - -gUnk_08455555:: @ 08455555 - .incbin "baserom.gba", 0x455555, 0x00002B2 - -gUnk_08455807:: @ 08455807 - .incbin "baserom.gba", 0x455807, 0x0000E1C - -gUnk_08456623:: @ 08456623 - .incbin "baserom.gba", 0x456623, 0x000025B - -gUnk_0845687E:: @ 0845687E - .incbin "baserom.gba", 0x45687E, 0x000228A - -gUnk_08458B08:: @ 08458B08 - .incbin "baserom.gba", 0x458B08, 0x000323D - -gUnk_0845BD45:: @ 0845BD45 - .incbin "baserom.gba", 0x45BD45, 0x0000D65 - -gUnk_0845CAAA:: @ 0845CAAA - .incbin "baserom.gba", 0x45CAAA, 0x000075D - -gUnk_0845D207:: @ 0845D207 - .incbin "baserom.gba", 0x45D207, 0x0001127 - -gUnk_0845E32E:: @ 0845E32E - .incbin "baserom.gba", 0x45E32E, 0x00001D4 - -gUnk_0845E502:: @ 0845E502 - .incbin "baserom.gba", 0x45E502, 0x0000857 - -gUnk_0845ED59:: @ 0845ED59 - .incbin "baserom.gba", 0x45ED59, 0x0000181 - -gUnk_0845EEDA:: @ 0845EEDA - .incbin "baserom.gba", 0x45EEDA, 0x0000C1E - -gUnk_0845FAF8:: @ 0845FAF8 - .incbin "baserom.gba", 0x45FAF8, 0x0000688 - -gUnk_08460180:: @ 08460180 - .incbin "baserom.gba", 0x460180, 0x0000290 - -gUnk_08460410:: @ 08460410 - .incbin "baserom.gba", 0x460410, 0x0000D45 - -gUnk_08461155:: @ 08461155 - .incbin "baserom.gba", 0x461155, 0x00011F0 - -gUnk_08462345:: @ 08462345 - .incbin "baserom.gba", 0x462345, 0x00010C5 - -gUnk_0846340A:: @ 0846340A - .incbin "baserom.gba", 0x46340A, 0x0001BED - -gUnk_08464FF7:: @ 08464FF7 - .incbin "baserom.gba", 0x464FF7, 0x0000321 - -gUnk_08465318:: @ 08465318 - .incbin "baserom.gba", 0x465318, 0x000012D - -gUnk_08465445:: @ 08465445 - .incbin "baserom.gba", 0x465445, 0x0000FC4 - -gUnk_08466409:: @ 08466409 - .incbin "baserom.gba", 0x466409, 0x000025B - -gUnk_08466664:: @ 08466664 - .incbin "baserom.gba", 0x466664, 0x00003F4 - -gUnk_08466A58:: @ 08466A58 - .incbin "baserom.gba", 0x466A58, 0x00005CC - -gUnk_08467024:: @ 08467024 - .incbin "baserom.gba", 0x467024, 0x0001203 - -gUnk_08468227:: @ 08468227 - .incbin "baserom.gba", 0x468227, 0x00014C7 - -gUnk_084696EE:: @ 084696EE - .incbin "baserom.gba", 0x4696EE, 0x0006923 - -gUnk_08470011:: @ 08470011 - .incbin "baserom.gba", 0x470011, 0x000000C - -gUnk_0847001D:: @ 0847001D - .incbin "baserom.gba", 0x47001D, 0x000006B - -gUnk_08470088:: @ 08470088 - .incbin "baserom.gba", 0x470088, 0x0000378 - -gUnk_08470400:: @ 08470400 - .incbin "baserom.gba", 0x470400, 0x00010EE - -gUnk_084714EE:: @ 084714EE - .incbin "baserom.gba", 0x4714EE, 0x0000008 - -gUnk_084714F6:: @ 084714F6 - .incbin "baserom.gba", 0x4714F6, 0x0000009 - -gUnk_084714FF:: @ 084714FF - .incbin "baserom.gba", 0x4714FF, 0x00019D7 - -gUnk_08472ED6:: @ 08472ED6 - .incbin "baserom.gba", 0x472ED6, 0x00009E1 - -gUnk_084738B7:: @ 084738B7 - .incbin "baserom.gba", 0x4738B7, 0x0000E11 - -gUnk_084746C8:: @ 084746C8 - .incbin "baserom.gba", 0x4746C8, 0x00019FB - -gUnk_084760C3:: @ 084760C3 - .incbin "baserom.gba", 0x4760C3, 0x0009F3E - -gUnk_08480001:: @ 08480001 - .incbin "baserom.gba", 0x480001, 0x0000003 - -gUnk_08480004:: @ 08480004 - .incbin "baserom.gba", 0x480004, 0x0000103 - -gUnk_08480107:: @ 08480107 - .incbin "baserom.gba", 0x480107, 0x00003BB - -gUnk_084804C2:: @ 084804C2 - .incbin "baserom.gba", 0x4804C2, 0x0000346 - -gUnk_08480808:: @ 08480808 - .incbin "baserom.gba", 0x480808, 0x0000C67 - -gUnk_0848146F:: @ 0848146F - .incbin "baserom.gba", 0x48146F, 0x0001C83 - -gUnk_084830F2:: @ 084830F2 - .incbin "baserom.gba", 0x4830F2, 0x0002256 - -gUnk_08485348:: @ 08485348 - .incbin "baserom.gba", 0x485348, 0x0001E26 - -gUnk_0848716E:: @ 0848716E - .incbin "baserom.gba", 0x48716E, 0x0000CE6 - -gUnk_08487E54:: @ 08487E54 - .incbin "baserom.gba", 0x487E54, 0x00081B4 - -gUnk_08490008:: @ 08490008 - .incbin "baserom.gba", 0x490008, 0x00001D9 - -gUnk_084901E1:: @ 084901E1 - .incbin "baserom.gba", 0x4901E1, 0x0003368 - -gUnk_08493549:: @ 08493549 - .incbin "baserom.gba", 0x493549, 0x0002215 - -gUnk_0849575E:: @ 0849575E - .incbin "baserom.gba", 0x49575E, 0x0001618 - -gUnk_08496D76:: @ 08496D76 - .incbin "baserom.gba", 0x496D76, 0x0000D00 - -gUnk_08497A76:: @ 08497A76 - .incbin "baserom.gba", 0x497A76, 0x0001EEE - -gUnk_08499964:: @ 08499964 - .incbin "baserom.gba", 0x499964, 0x00009E5 - -gUnk_0849A349:: @ 0849A349 - .incbin "baserom.gba", 0x49A349, 0x0005DE7 - -gUnk_084A0130:: @ 084A0130 - .incbin "baserom.gba", 0x4A0130, 0x000026F - -gUnk_084A039F:: @ 084A039F - .incbin "baserom.gba", 0x4A039F, 0x000171F - -gUnk_084A1ABE:: @ 084A1ABE - .incbin "baserom.gba", 0x4A1ABE, 0x0001344 - -gUnk_084A2E02:: @ 084A2E02 - .incbin "baserom.gba", 0x4A2E02, 0x00018C6 - -gUnk_084A46C8:: @ 084A46C8 - .incbin "baserom.gba", 0x4A46C8, 0x0000669 - -gUnk_084A4D31:: @ 084A4D31 - .incbin "baserom.gba", 0x4A4D31, 0x00019F9 - -gUnk_084A672A:: @ 084A672A - .incbin "baserom.gba", 0x4A672A, 0x0000A4B - -gUnk_084A7175:: @ 084A7175 - .incbin "baserom.gba", 0x4A7175, 0x0000001 - -gUnk_084A7176:: @ 084A7176 - .incbin "baserom.gba", 0x4A7176, 0x00002F9 - -gUnk_084A746F:: @ 084A746F - .incbin "baserom.gba", 0x4A746F, 0x00009F9 - -gUnk_084A7E68:: @ 084A7E68 - .incbin "baserom.gba", 0x4A7E68, 0x0002BFC - -gUnk_084AAA64:: @ 084AAA64 - .incbin "baserom.gba", 0x4AAA64, 0x0005DE6 - -gUnk_084B084A:: @ 084B084A - .incbin "baserom.gba", 0x4B084A, 0x0000A8A - -gUnk_084B12D4:: @ 084B12D4 - .incbin "baserom.gba", 0x4B12D4, 0x00004EA - -gUnk_084B17BE:: @ 084B17BE - .incbin "baserom.gba", 0x4B17BE, 0x0000045 - -gUnk_084B1803:: @ 084B1803 - .incbin "baserom.gba", 0x4B1803, 0x00002DD - -gUnk_084B1AE0:: @ 084B1AE0 - .incbin "baserom.gba", 0x4B1AE0, 0x0001834 - -gUnk_084B3314:: @ 084B3314 - .incbin "baserom.gba", 0x4B3314, 0x0000F36 - -gUnk_084B424A:: @ 084B424A - .incbin "baserom.gba", 0x4B424A, 0x00005CA - -gUnk_084B4814:: @ 084B4814 - .incbin "baserom.gba", 0x4B4814, 0x00002DD - -gUnk_084B4AF1:: @ 084B4AF1 - .incbin "baserom.gba", 0x4B4AF1, 0x0002782 - -gUnk_084B7273:: @ 084B7273 - .incbin "baserom.gba", 0x4B7273, 0x00048B5 - -gUnk_084BBB28:: @ 084BBB28 - .incbin "baserom.gba", 0x4BBB28, 0x000064C - -gUnk_084BC174:: @ 084BC174 - .incbin "baserom.gba", 0x4BC174, 0x0003E94 - -gUnk_084C0008:: @ 084C0008 - .incbin "baserom.gba", 0x4C0008, 0x000049A - -gUnk_084C04A2:: @ 084C04A2 - .incbin "baserom.gba", 0x4C04A2, 0x000046F - -gUnk_084C0911:: @ 084C0911 - .incbin "baserom.gba", 0x4C0911, 0x000003B - -gUnk_084C094C:: @ 084C094C - .incbin "baserom.gba", 0x4C094C, 0x0001DB4 - -gUnk_084C2700:: @ 084C2700 - .incbin "baserom.gba", 0x4C2700, 0x0002503 - -gUnk_084C4C03:: @ 084C4C03 - .incbin "baserom.gba", 0x4C4C03, 0x000256A - -gUnk_084C716D:: @ 084C716D - .incbin "baserom.gba", 0x4C716D, 0x0000E92 - -gUnk_084C7FFF:: @ 084C7FFF - .incbin "baserom.gba", 0x4C7FFF, 0x00020B1 - -gUnk_084CA0B0:: @ 084CA0B0 - .incbin "baserom.gba", 0x4CA0B0, 0x0003251 - -gUnk_084CD301:: @ 084CD301 - .incbin "baserom.gba", 0x4CD301, 0x000070A - -gUnk_084CDA0B:: @ 084CDA0B - .incbin "baserom.gba", 0x4CDA0B, 0x00025F5 - -gUnk_084D0000:: @ 084D0000 - .incbin "baserom.gba", 0x4D0000, 0x0000004 - -gUnk_084D0004:: @ 084D0004 - .incbin "baserom.gba", 0x4D0004, 0x0000008 - -gUnk_084D000C:: @ 084D000C - .incbin "baserom.gba", 0x4D000C, 0x0000008 - -gUnk_084D0014:: @ 084D0014 - .incbin "baserom.gba", 0x4D0014, 0x0000064 - -gUnk_084D0078:: @ 084D0078 - .incbin "baserom.gba", 0x4D0078, 0x000001F - -gUnk_084D0097:: @ 084D0097 - .incbin "baserom.gba", 0x4D0097, 0x0000029 - -gUnk_084D00C0:: @ 084D00C0 - .incbin "baserom.gba", 0x4D00C0, 0x000036A - -gUnk_084D042A:: @ 084D042A - .incbin "baserom.gba", 0x4D042A, 0x000002F - -gUnk_084D0459:: @ 084D0459 - .incbin "baserom.gba", 0x4D0459, 0x0000ABD - -gUnk_084D0F16:: @ 084D0F16 - .incbin "baserom.gba", 0x4D0F16, 0x000232D - -gUnk_084D3243:: @ 084D3243 - .incbin "baserom.gba", 0x4D3243, 0x00042EE - -gUnk_084D7531:: @ 084D7531 - .incbin "baserom.gba", 0x4D7531, 0x0004C1C - -gUnk_084DC14D:: @ 084DC14D - .incbin "baserom.gba", 0x4DC14D, 0x0002EB2 - -gUnk_084DEFFF:: @ 084DEFFF - .incbin "baserom.gba", 0x4DEFFF, 0x0001001 - -gUnk_084E0000:: @ 084E0000 - .incbin "baserom.gba", 0x4E0000, 0x0000001 - -gUnk_084E0001:: @ 084E0001 - .incbin "baserom.gba", 0x4E0001, 0x000038F - -gUnk_084E0390:: @ 084E0390 - .incbin "baserom.gba", 0x4E0390, 0x0000D4D - -gUnk_084E10DD:: @ 084E10DD - .incbin "baserom.gba", 0x4E10DD, 0x00035EB - -gUnk_084E46C8:: @ 084E46C8 - .incbin "baserom.gba", 0x4E46C8, 0x0000587 - -gUnk_084E4C4F:: @ 084E4C4F - .incbin "baserom.gba", 0x4E4C4F, 0x00002B8 - -gUnk_084E4F07:: @ 084E4F07 - .incbin "baserom.gba", 0x4E4F07, 0x0002067 - -gUnk_084E6F6E:: @ 084E6F6E - .incbin "baserom.gba", 0x4E6F6E, 0x00009AA - -gUnk_084E7918:: @ 084E7918 - .incbin "baserom.gba", 0x4E7918, 0x0001C57 - -gUnk_084E956F:: @ 084E956F - .incbin "baserom.gba", 0x4E956F, 0x0000AC0 - -gUnk_084EA02F:: @ 084EA02F - .incbin "baserom.gba", 0x4EA02F, 0x0004ED0 - -gUnk_084EEEFF:: @ 084EEEFF - .incbin "baserom.gba", 0x4EEEFF, 0x00011F6 - -gUnk_084F00F5:: @ 084F00F5 - .incbin "baserom.gba", 0x4F00F5, 0x0000012 - -gUnk_084F0107:: @ 084F0107 - .incbin "baserom.gba", 0x4F0107, 0x0000747 - -gUnk_084F084E:: @ 084F084E - .incbin "baserom.gba", 0x4F084E, 0x00006B8 - -gUnk_084F0F06:: @ 084F0F06 - .incbin "baserom.gba", 0x4F0F06, 0x00010DB - -gUnk_084F1FE1:: @ 084F1FE1 - .incbin "baserom.gba", 0x4F1FE1, 0x000206D - -gUnk_084F404E:: @ 084F404E - .incbin "baserom.gba", 0x4F404E, 0x00010BB - -gUnk_084F5109:: @ 084F5109 - .incbin "baserom.gba", 0x4F5109, 0x0002316 - -gUnk_084F741F:: @ 084F741F - .incbin "baserom.gba", 0x4F741F, 0x0000B31 - -gUnk_084F7F50:: @ 084F7F50 - .incbin "baserom.gba", 0x4F7F50, 0x0007FB3 - -gUnk_084FFF03:: @ 084FFF03 - .incbin "baserom.gba", 0x4FFF03, 0x00000FD - -gUnk_08500000:: @ 08500000 - .incbin "baserom.gba", 0x500000, 0x0000002 - -gUnk_08500002:: @ 08500002 - .incbin "baserom.gba", 0x500002, 0x0000002 - -gUnk_08500004:: @ 08500004 - .incbin "baserom.gba", 0x500004, 0x0000002 - -gUnk_08500006:: @ 08500006 - .incbin "baserom.gba", 0x500006, 0x0000001 - -gUnk_08500007:: @ 08500007 - .incbin "baserom.gba", 0x500007, 0x0000001 - -gUnk_08500008:: @ 08500008 - .incbin "baserom.gba", 0x500008, 0x0000002 - -gUnk_0850000A:: @ 0850000A - .incbin "baserom.gba", 0x50000A, 0x0000001 - -gUnk_0850000B:: @ 0850000B - .incbin "baserom.gba", 0x50000B, 0x0000001 - -gUnk_0850000C:: @ 0850000C - .incbin "baserom.gba", 0x50000C, 0x0000001 - -gUnk_0850000D:: @ 0850000D - .incbin "baserom.gba", 0x50000D, 0x0000002 - -gUnk_0850000F:: @ 0850000F - .incbin "baserom.gba", 0x50000F, 0x0000001 - -gUnk_08500010:: @ 08500010 - .incbin "baserom.gba", 0x500010, 0x0000001 - -gUnk_08500011:: @ 08500011 - .incbin "baserom.gba", 0x500011, 0x0000003 - -gUnk_08500014:: @ 08500014 - .incbin "baserom.gba", 0x500014, 0x0000008 - -gUnk_0850001C:: @ 0850001C - .incbin "baserom.gba", 0x50001C, 0x0000002 - -gUnk_0850001E:: @ 0850001E - .incbin "baserom.gba", 0x50001E, 0x0000002 - -gUnk_08500020:: @ 08500020 - .incbin "baserom.gba", 0x500020, 0x000001C - -gUnk_0850003C:: @ 0850003C - .incbin "baserom.gba", 0x50003C, 0x0000014 - -gUnk_08500050:: @ 08500050 - .incbin "baserom.gba", 0x500050, 0x0000006 - -gUnk_08500056:: @ 08500056 - .incbin "baserom.gba", 0x500056, 0x000000B - -gUnk_08500061:: @ 08500061 - .incbin "baserom.gba", 0x500061, 0x0000001 - -gUnk_08500062:: @ 08500062 - .incbin "baserom.gba", 0x500062, 0x000000A - -gUnk_0850006C:: @ 0850006C - .incbin "baserom.gba", 0x50006C, 0x0000006 - -gUnk_08500072:: @ 08500072 - .incbin "baserom.gba", 0x500072, 0x000004E - -gUnk_085000C0:: @ 085000C0 - .incbin "baserom.gba", 0x5000C0, 0x0000030 - -gUnk_085000F0:: @ 085000F0 - .incbin "baserom.gba", 0x5000F0, 0x0000008 - -gUnk_085000F8:: @ 085000F8 - .incbin "baserom.gba", 0x5000F8, 0x0000007 - -gUnk_085000FF:: @ 085000FF - .incbin "baserom.gba", 0x5000FF, 0x0000001 - -gUnk_08500100:: @ 08500100 - .incbin "baserom.gba", 0x500100, 0x000001C - -gUnk_0850011C:: @ 0850011C - .incbin "baserom.gba", 0x50011C, 0x0000004 - -gUnk_08500120:: @ 08500120 - .incbin "baserom.gba", 0x500120, 0x0000010 - -gUnk_08500130:: @ 08500130 - .incbin "baserom.gba", 0x500130, 0x0000038 - -gUnk_08500168:: @ 08500168 - .incbin "baserom.gba", 0x500168, 0x0000018 - -gUnk_08500180:: @ 08500180 - .incbin "baserom.gba", 0x500180, 0x0000281 - -gUnk_08500401:: @ 08500401 - .incbin "baserom.gba", 0x500401, 0x0000042 - -gUnk_08500443:: @ 08500443 - .incbin "baserom.gba", 0x500443, 0x0000001 - -gUnk_08500444:: @ 08500444 - .incbin "baserom.gba", 0x500444, 0x0000015 - -gUnk_08500459:: @ 08500459 - .incbin "baserom.gba", 0x500459, 0x000000A - -gUnk_08500463:: @ 08500463 - .incbin "baserom.gba", 0x500463, 0x00001ED - -gUnk_08500650:: @ 08500650 - .incbin "baserom.gba", 0x500650, 0x00001B6 - -gUnk_08500806:: @ 08500806 - .incbin "baserom.gba", 0x500806, 0x0000001 - -gUnk_08500807:: @ 08500807 - .incbin "baserom.gba", 0x500807, 0x0000001 - -gUnk_08500808:: @ 08500808 - .incbin "baserom.gba", 0x500808, 0x0000049 - -gUnk_08500851:: @ 08500851 - .incbin "baserom.gba", 0x500851, 0x00000CA - -gUnk_0850091B:: @ 0850091B - .incbin "baserom.gba", 0x50091B, 0x0000036 - -gUnk_08500951:: @ 08500951 - .incbin "baserom.gba", 0x500951, 0x0000810 - -gUnk_08501161:: @ 08501161 - .incbin "baserom.gba", 0x501161, 0x00001C5 - -gUnk_08501326:: @ 08501326 - .incbin "baserom.gba", 0x501326, 0x000042B - -gUnk_08501751:: @ 08501751 - .incbin "baserom.gba", 0x501751, 0x00002C0 - -gUnk_08501A11:: @ 08501A11 - .incbin "baserom.gba", 0x501A11, 0x00002EF - -gUnk_08501D00:: @ 08501D00 - .incbin "baserom.gba", 0x501D00, 0x0000208 - -gUnk_08501F08:: @ 08501F08 - .incbin "baserom.gba", 0x501F08, 0x0001259 - -gUnk_08503161:: @ 08503161 - .incbin "baserom.gba", 0x503161, 0x00001DB - -gUnk_0850333C:: @ 0850333C - .incbin "baserom.gba", 0x50333C, 0x0001078 - -gUnk_085043B4:: @ 085043B4 - .incbin "baserom.gba", 0x5043B4, 0x0000050 - -gUnk_08504404:: @ 08504404 - .incbin "baserom.gba", 0x504404, 0x00002C4 - -gUnk_085046C8:: @ 085046C8 - .incbin "baserom.gba", 0x5046C8, 0x000016F - -gUnk_08504837:: @ 08504837 - .incbin "baserom.gba", 0x504837, 0x0000829 - -gUnk_08505060:: @ 08505060 - .incbin "baserom.gba", 0x505060, 0x0002206 - -gUnk_08507266:: @ 08507266 - .incbin "baserom.gba", 0x507266, 0x0000D2A - -gUnk_08507F90:: @ 08507F90 - .incbin "baserom.gba", 0x507F90, 0x0001B0F - -gUnk_08509A9F:: @ 08509A9F - .incbin "baserom.gba", 0x509A9F, 0x0000573 - -gUnk_0850A012:: @ 0850A012 - .incbin "baserom.gba", 0x50A012, 0x0001117 - -gUnk_0850B129:: @ 0850B129 - .incbin "baserom.gba", 0x50B129, 0x000107F - -gUnk_0850C1A8:: @ 0850C1A8 - .incbin "baserom.gba", 0x50C1A8, 0x000059D - -gUnk_0850C745:: @ 0850C745 - .incbin "baserom.gba", 0x50C745, 0x0000A8C - -gUnk_0850D1D1:: @ 0850D1D1 - .incbin "baserom.gba", 0x50D1D1, 0x000064D - -gUnk_0850D81E:: @ 0850D81E - .incbin "baserom.gba", 0x50D81E, 0x0000F5D - -gUnk_0850E77B:: @ 0850E77B - .incbin "baserom.gba", 0x50E77B, 0x0001175 - -gUnk_0850F8F0:: @ 0850F8F0 - .incbin "baserom.gba", 0x50F8F0, 0x0000101 - -gUnk_0850F9F1:: @ 0850F9F1 - .incbin "baserom.gba", 0x50F9F1, 0x00000FF - -gUnk_0850FAF0:: @ 0850FAF0 - .incbin "baserom.gba", 0x50FAF0, 0x0000100 - -gUnk_0850FBF0:: @ 0850FBF0 - .incbin "baserom.gba", 0x50FBF0, 0x0000100 - -gUnk_0850FCF0:: @ 0850FCF0 - .incbin "baserom.gba", 0x50FCF0, 0x0000100 - -gUnk_0850FDF0:: @ 0850FDF0 - .incbin "baserom.gba", 0x50FDF0, 0x00000FD - -gUnk_0850FEED:: @ 0850FEED - .incbin "baserom.gba", 0x50FEED, 0x0000001 - -gUnk_0850FEEE:: @ 0850FEEE - .incbin "baserom.gba", 0x50FEEE, 0x0000002 - -gUnk_0850FEF0:: @ 0850FEF0 - .incbin "baserom.gba", 0x50FEF0, 0x00000DE - -gUnk_0850FFCE:: @ 0850FFCE - .incbin "baserom.gba", 0x50FFCE, 0x0000022 - -gUnk_0850FFF0:: @ 0850FFF0 - .incbin "baserom.gba", 0x50FFF0, 0x0000008 - -gUnk_0850FFF8:: @ 0850FFF8 - .incbin "baserom.gba", 0x50FFF8, 0x0000002 - -gUnk_0850FFFA:: @ 0850FFFA - .incbin "baserom.gba", 0x50FFFA, 0x0000002 - -gUnk_0850FFFC:: @ 0850FFFC - .incbin "baserom.gba", 0x50FFFC, 0x0000005 - -gUnk_08510001:: @ 08510001 - .incbin "baserom.gba", 0x510001, 0x0000019 - -gUnk_0851001A:: @ 0851001A - .incbin "baserom.gba", 0x51001A, 0x0000136 - -gUnk_08510150:: @ 08510150 - .incbin "baserom.gba", 0x510150, 0x000012C - -gUnk_0851027C:: @ 0851027C - .incbin "baserom.gba", 0x51027C, 0x00000D4 - -gUnk_08510350:: @ 08510350 - .incbin "baserom.gba", 0x510350, 0x0001BE0 - -gUnk_08511F30:: @ 08511F30 - .incbin "baserom.gba", 0x511F30, 0x0000821 - -gUnk_08512751:: @ 08512751 - .incbin "baserom.gba", 0x512751, 0x00014F3 - -gUnk_08513C44:: @ 08513C44 - .incbin "baserom.gba", 0x513C44, 0x00002DC - -gUnk_08513F20:: @ 08513F20 - .incbin "baserom.gba", 0x513F20, 0x0001829 - -gUnk_08515749:: @ 08515749 - .incbin "baserom.gba", 0x515749, 0x0006DD6 - -gUnk_0851C51F:: @ 0851C51F - .incbin "baserom.gba", 0x51C51F, 0x00030C9 - -gUnk_0851F5E8:: @ 0851F5E8 - .incbin "baserom.gba", 0x51F5E8, 0x0000808 - -gUnk_0851FDF0:: @ 0851FDF0 - .incbin "baserom.gba", 0x51FDF0, 0x00000D9 - -gUnk_0851FEC9:: @ 0851FEC9 - .incbin "baserom.gba", 0x51FEC9, 0x00004C9 - -gUnk_08520392:: @ 08520392 - .incbin "baserom.gba", 0x520392, 0x0000070 - -gUnk_08520402:: @ 08520402 - .incbin "baserom.gba", 0x520402, 0x000004F - -gUnk_08520451:: @ 08520451 - .incbin "baserom.gba", 0x520451, 0x00002BF - -gUnk_08520710:: @ 08520710 - .incbin "baserom.gba", 0x520710, 0x00004B5 - -gUnk_08520BC5:: @ 08520BC5 - .incbin "baserom.gba", 0x520BC5, 0x000187F - -gUnk_08522444:: @ 08522444 - .incbin "baserom.gba", 0x522444, 0x0002001 - -gUnk_08524445:: @ 08524445 - .incbin "baserom.gba", 0x524445, 0x0000121 - -gUnk_08524566:: @ 08524566 - .incbin "baserom.gba", 0x524566, 0x000103C - -gUnk_085255A2:: @ 085255A2 - .incbin "baserom.gba", 0x5255A2, 0x0000A64 - -gUnk_08526006:: @ 08526006 - .incbin "baserom.gba", 0x526006, 0x0001E2C - -gUnk_08527E32:: @ 08527E32 - .incbin "baserom.gba", 0x527E32, 0x0000112 - -gUnk_08527F44:: @ 08527F44 - .incbin "baserom.gba", 0x527F44, 0x00027BD - -gUnk_0852A701:: @ 0852A701 - .incbin "baserom.gba", 0x52A701, 0x0002A02 - -gUnk_0852D103:: @ 0852D103 - .incbin "baserom.gba", 0x52D103, 0x000304F - -gUnk_08530152:: @ 08530152 - .incbin "baserom.gba", 0x530152, 0x00001AE - -gUnk_08530300:: @ 08530300 - .incbin "baserom.gba", 0x530300, 0x0000050 - -gUnk_08530350:: @ 08530350 - .incbin "baserom.gba", 0x530350, 0x0000FD2 - -gUnk_08531322:: @ 08531322 - .incbin "baserom.gba", 0x531322, 0x000099D - -gUnk_08531CBF:: @ 08531CBF - .incbin "baserom.gba", 0x531CBF, 0x0000E2D - -gUnk_08532AEC:: @ 08532AEC - .incbin "baserom.gba", 0x532AEC, 0x0000979 - -gUnk_08533465:: @ 08533465 - .incbin "baserom.gba", 0x533465, 0x00001EE - -gUnk_08533653:: @ 08533653 - .incbin "baserom.gba", 0x533653, 0x0000EE3 - -gUnk_08534536:: @ 08534536 - .incbin "baserom.gba", 0x534536, 0x0001C1C - -gUnk_08536152:: @ 08536152 - .incbin "baserom.gba", 0x536152, 0x0001301 - -gUnk_08537453:: @ 08537453 - .incbin "baserom.gba", 0x537453, 0x0008BB1 - -gUnk_08540004:: @ 08540004 - .incbin "baserom.gba", 0x540004, 0x00000EC - -gUnk_085400F0:: @ 085400F0 - .incbin "baserom.gba", 0x5400F0, 0x0000100 - -gUnk_085401F0:: @ 085401F0 - .incbin "baserom.gba", 0x5401F0, 0x00010CF - -gUnk_085412BF:: @ 085412BF - .incbin "baserom.gba", 0x5412BF, 0x0000076 - -gUnk_08541335:: @ 08541335 - .incbin "baserom.gba", 0x541335, 0x0001FCE - -gUnk_08543303:: @ 08543303 - .incbin "baserom.gba", 0x543303, 0x0000F25 - -gUnk_08544228:: @ 08544228 - .incbin "baserom.gba", 0x544228, 0x000003F - -gUnk_08544267:: @ 08544267 - .incbin "baserom.gba", 0x544267, 0x000009A - -gUnk_08544301:: @ 08544301 - .incbin "baserom.gba", 0x544301, 0x0001365 - -gUnk_08545666:: @ 08545666 - .incbin "baserom.gba", 0x545666, 0x0000F00 - -gUnk_08546566:: @ 08546566 - .incbin "baserom.gba", 0x546566, 0x00019E4 - -gUnk_08547F4A:: @ 08547F4A - .incbin "baserom.gba", 0x547F4A, 0x000092C - -gUnk_08548876:: @ 08548876 - .incbin "baserom.gba", 0x548876, 0x0004666 - -gUnk_0854CEDC:: @ 0854CEDC - .incbin "baserom.gba", 0x54CEDC, 0x0001011 - -gUnk_0854DEED:: @ 0854DEED - .incbin "baserom.gba", 0x54DEED, 0x0002114 - -gUnk_08550001:: @ 08550001 - .incbin "baserom.gba", 0x550001, 0x0000003 - -gUnk_08550004:: @ 08550004 - .incbin "baserom.gba", 0x550004, 0x000000C - -gUnk_08550010:: @ 08550010 - .incbin "baserom.gba", 0x550010, 0x0000044 - -gUnk_08550054:: @ 08550054 - .incbin "baserom.gba", 0x550054, 0x0000400 - -gUnk_08550454:: @ 08550454 - .incbin "baserom.gba", 0x550454, 0x00004FD - -gUnk_08550951:: @ 08550951 - .incbin "baserom.gba", 0x550951, 0x00013BF - -gUnk_08551D10:: @ 08551D10 - .incbin "baserom.gba", 0x551D10, 0x0000513 - -gUnk_08552223:: @ 08552223 - .incbin "baserom.gba", 0x552223, 0x00001E5 - -gUnk_08552408:: @ 08552408 - .incbin "baserom.gba", 0x552408, 0x0001C4C - -gUnk_08554054:: @ 08554054 - .incbin "baserom.gba", 0x554054, 0x0000200 - -gUnk_08554254:: @ 08554254 - .incbin "baserom.gba", 0x554254, 0x0000002 - -gUnk_08554256:: @ 08554256 - .incbin "baserom.gba", 0x554256, 0x00001AD - -gUnk_08554403:: @ 08554403 - .incbin "baserom.gba", 0x554403, 0x0000042 - -gUnk_08554445:: @ 08554445 - .incbin "baserom.gba", 0x554445, 0x0000630 - -gUnk_08554A75:: @ 08554A75 - .incbin "baserom.gba", 0x554A75, 0x00008AF - -gUnk_08555324:: @ 08555324 - .incbin "baserom.gba", 0x555324, 0x0000231 - -gUnk_08555555:: @ 08555555 - .incbin "baserom.gba", 0x555555, 0x000000D - -gUnk_08555562:: @ 08555562 - .incbin "baserom.gba", 0x555562, 0x0000503 - -gUnk_08555A65:: @ 08555A65 - .incbin "baserom.gba", 0x555A65, 0x0000BAB - -gUnk_08556610:: @ 08556610 - .incbin "baserom.gba", 0x556610, 0x000022B - -gUnk_0855683B:: @ 0855683B - .incbin "baserom.gba", 0x55683B, 0x0000519 - -gUnk_08556D54:: @ 08556D54 - .incbin "baserom.gba", 0x556D54, 0x0000183 - -gUnk_08556ED7:: @ 08556ED7 - .incbin "baserom.gba", 0x556ED7, 0x0000435 - -gUnk_0855730C:: @ 0855730C - .incbin "baserom.gba", 0x55730C, 0x0000A4F - -gUnk_08557D5B:: @ 08557D5B - .incbin "baserom.gba", 0x557D5B, 0x00014A7 - -gUnk_08559202:: @ 08559202 - .incbin "baserom.gba", 0x559202, 0x0005428 - -gUnk_0855E62A:: @ 0855E62A - .incbin "baserom.gba", 0x55E62A, 0x0000260 - -gUnk_0855E88A:: @ 0855E88A - .incbin "baserom.gba", 0x55E88A, 0x000177E - -gUnk_08560008:: @ 08560008 - .incbin "baserom.gba", 0x560008, 0x00000FF - -gUnk_08560107:: @ 08560107 - .incbin "baserom.gba", 0x560107, 0x0000258 - -gUnk_0856035F:: @ 0856035F - .incbin "baserom.gba", 0x56035F, 0x000154E - -gUnk_085618AD:: @ 085618AD - .incbin "baserom.gba", 0x5618AD, 0x0001BA9 - -gUnk_08563456:: @ 08563456 - .incbin "baserom.gba", 0x563456, 0x00008BA - -gUnk_08563D10:: @ 08563D10 - .incbin "baserom.gba", 0x563D10, 0x000071B - -gUnk_0856442B:: @ 0856442B - .incbin "baserom.gba", 0x56442B, 0x00002D5 - -gUnk_08564700:: @ 08564700 - .incbin "baserom.gba", 0x564700, 0x0000C1F - -gUnk_0856531F:: @ 0856531F - .incbin "baserom.gba", 0x56531F, 0x0000314 - -gUnk_08565633:: @ 08565633 - .incbin "baserom.gba", 0x565633, 0x0000F1E - -gUnk_08566551:: @ 08566551 - .incbin "baserom.gba", 0x566551, 0x00000D1 - -gUnk_08566622:: @ 08566622 - .incbin "baserom.gba", 0x566622, 0x0000DF3 - -gUnk_08567415:: @ 08567415 - .incbin "baserom.gba", 0x567415, 0x0000C02 - -gUnk_08568017:: @ 08568017 - .incbin "baserom.gba", 0x568017, 0x0000031 - -gUnk_08568048:: @ 08568048 - .incbin "baserom.gba", 0x568048, 0x00060DB - -gUnk_0856E123:: @ 0856E123 - .incbin "baserom.gba", 0x56E123, 0x0001EEE - -gUnk_08570011:: @ 08570011 - .incbin "baserom.gba", 0x570011, 0x00018E0 - -gUnk_085718F1:: @ 085718F1 - .incbin "baserom.gba", 0x5718F1, 0x000071F - -gUnk_08572010:: @ 08572010 - .incbin "baserom.gba", 0x572010, 0x0000679 - -gUnk_08572689:: @ 08572689 - .incbin "baserom.gba", 0x572689, 0x0000795 - -gUnk_08572E1E:: @ 08572E1E - .incbin "baserom.gba", 0x572E1E, 0x000123A - -gUnk_08574058:: @ 08574058 - .incbin "baserom.gba", 0x574058, 0x00021CC - -gUnk_08576224:: @ 08576224 - .incbin "baserom.gba", 0x576224, 0x0001408 - -gUnk_0857762C:: @ 0857762C - .incbin "baserom.gba", 0x57762C, 0x000135B - -gUnk_08578987:: @ 08578987 - .incbin "baserom.gba", 0x578987, 0x00036CB - -gUnk_0857C052:: @ 0857C052 - .incbin "baserom.gba", 0x57C052, 0x0003724 - -gUnk_0857F776:: @ 0857F776 - .incbin "baserom.gba", 0x57F776, 0x000088A - -gUnk_08580000:: @ 08580000 - .incbin "baserom.gba", 0x580000, 0x0000008 - -gUnk_08580008:: @ 08580008 - .incbin "baserom.gba", 0x580008, 0x000003E - -gUnk_08580046:: @ 08580046 - .incbin "baserom.gba", 0x580046, 0x0000030 - -gUnk_08580076:: @ 08580076 - .incbin "baserom.gba", 0x580076, 0x0000030 - -gUnk_085800A6:: @ 085800A6 - .incbin "baserom.gba", 0x5800A6, 0x00000AC - -gUnk_08580152:: @ 08580152 - .incbin "baserom.gba", 0x580152, 0x0000306 - -gUnk_08580458:: @ 08580458 - .incbin "baserom.gba", 0x580458, 0x00003B0 - -gUnk_08580808:: @ 08580808 - .incbin "baserom.gba", 0x580808, 0x000004F - -gUnk_08580857:: @ 08580857 - .incbin "baserom.gba", 0x580857, 0x0006E11 - -gUnk_08587668:: @ 08587668 - .incbin "baserom.gba", 0x587668, 0x00007F9 - -gUnk_08587E61:: @ 08587E61 - .incbin "baserom.gba", 0x587E61, 0x00081A0 - -gUnk_08590001:: @ 08590001 - .incbin "baserom.gba", 0x590001, 0x00000F1 - -gUnk_085900F2:: @ 085900F2 - .incbin "baserom.gba", 0x5900F2, 0x00007EF - -gUnk_085908E1:: @ 085908E1 - .incbin "baserom.gba", 0x5908E1, 0x0000CC9 - -gUnk_085915AA:: @ 085915AA - .incbin "baserom.gba", 0x5915AA, 0x00081CD - -gUnk_08599777:: @ 08599777 - .incbin "baserom.gba", 0x599777, 0x000184D - -gUnk_0859AFC4:: @ 0859AFC4 - .incbin "baserom.gba", 0x59AFC4, 0x000503C - -gUnk_085A0000:: @ 085A0000 - .incbin "baserom.gba", 0x5A0000, 0x0000001 - -gUnk_085A0001:: @ 085A0001 - .incbin "baserom.gba", 0x5A0001, 0x0000001 - -gUnk_085A0002:: @ 085A0002 - .incbin "baserom.gba", 0x5A0002, 0x0000006 - -gUnk_085A0008:: @ 085A0008 - .incbin "baserom.gba", 0x5A0008, 0x0000002 - -gUnk_085A000A:: @ 085A000A - .incbin "baserom.gba", 0x5A000A, 0x0000002 - -gUnk_085A000C:: @ 085A000C - .incbin "baserom.gba", 0x5A000C, 0x0000003 - -gUnk_085A000F:: @ 085A000F - .incbin "baserom.gba", 0x5A000F, 0x0000009 - -gUnk_085A0018:: @ 085A0018 - .incbin "baserom.gba", 0x5A0018, 0x0000006 - -gUnk_085A001E:: @ 085A001E - .incbin "baserom.gba", 0x5A001E, 0x0000001 - -gUnk_085A001F:: @ 085A001F - .incbin "baserom.gba", 0x5A001F, 0x000001D - -gUnk_085A003C:: @ 085A003C - .incbin "baserom.gba", 0x5A003C, 0x000001A - -gUnk_085A0056:: @ 085A0056 - .incbin "baserom.gba", 0x5A0056, 0x0000008 - -gUnk_085A005E:: @ 085A005E - .incbin "baserom.gba", 0x5A005E, 0x0000033 - -gUnk_085A0091:: @ 085A0091 - .incbin "baserom.gba", 0x5A0091, 0x000005F - -gUnk_085A00F0:: @ 085A00F0 - .incbin "baserom.gba", 0x5A00F0, 0x0000211 - -gUnk_085A0301:: @ 085A0301 - .incbin "baserom.gba", 0x5A0301, 0x0000100 - -gUnk_085A0401:: @ 085A0401 - .incbin "baserom.gba", 0x5A0401, 0x0000033 - -gUnk_085A0434:: @ 085A0434 - .incbin "baserom.gba", 0x5A0434, 0x000000F - -gUnk_085A0443:: @ 085A0443 - .incbin "baserom.gba", 0x5A0443, 0x0000006 - -gUnk_085A0449:: @ 085A0449 - .incbin "baserom.gba", 0x5A0449, 0x000001A - -gUnk_085A0463:: @ 085A0463 - .incbin "baserom.gba", 0x5A0463, 0x0000001 - -gUnk_085A0464:: @ 085A0464 - .incbin "baserom.gba", 0x5A0464, 0x00003A2 - -gUnk_085A0806:: @ 085A0806 - .incbin "baserom.gba", 0x5A0806, 0x000267A - -gUnk_085A2E80:: @ 085A2E80 - .incbin "baserom.gba", 0x5A2E80, 0x0001382 - -gUnk_085A4202:: @ 085A4202 - .incbin "baserom.gba", 0x5A4202, 0x0001CED - -gUnk_085A5EEF:: @ 085A5EEF - .incbin "baserom.gba", 0x5A5EEF, 0x0000037 - -gUnk_085A5F26:: @ 085A5F26 - .incbin "baserom.gba", 0x5A5F26, 0x00013FA - -gUnk_085A7320:: @ 085A7320 - .incbin "baserom.gba", 0x5A7320, 0x0002480 - -gUnk_085A97A0:: @ 085A97A0 - .incbin "baserom.gba", 0x5A97A0, 0x0000CA1 - -gUnk_085AA441:: @ 085AA441 - .incbin "baserom.gba", 0x5AA441, 0x0002B76 - -gUnk_085ACFB7:: @ 085ACFB7 - .incbin "baserom.gba", 0x5ACFB7, 0x0002FA5 - -gUnk_085AFF5C:: @ 085AFF5C - .incbin "baserom.gba", 0x5AFF5C, 0x000001C - -gUnk_085AFF78:: @ 085AFF78 - .incbin "baserom.gba", 0x5AFF78, 0x0000058 - -gUnk_085AFFD0:: @ 085AFFD0 - .incbin "baserom.gba", 0x5AFFD0, 0x0000030 - -gUnk_085B0000:: @ 085B0000 - .incbin "baserom.gba", 0x5B0000, 0x0000006 - -gUnk_085B0006:: @ 085B0006 - .incbin "baserom.gba", 0x5B0006, 0x0000004 - -gUnk_085B000A:: @ 085B000A - .incbin "baserom.gba", 0x5B000A, 0x0000002 - -gUnk_085B000C:: @ 085B000C - .incbin "baserom.gba", 0x5B000C, 0x0000002 - -gUnk_085B000E:: @ 085B000E - .incbin "baserom.gba", 0x5B000E, 0x000000E - -gUnk_085B001C:: @ 085B001C - .incbin "baserom.gba", 0x5B001C, 0x0000002 - -gUnk_085B001E:: @ 085B001E - .incbin "baserom.gba", 0x5B001E, 0x0000006 - -gUnk_085B0024:: @ 085B0024 - .incbin "baserom.gba", 0x5B0024, 0x0000012 - -gUnk_085B0036:: @ 085B0036 - .incbin "baserom.gba", 0x5B0036, 0x0000006 - -gUnk_085B003C:: @ 085B003C - .incbin "baserom.gba", 0x5B003C, 0x000000C - -gUnk_085B0048:: @ 085B0048 - .incbin "baserom.gba", 0x5B0048, 0x000000C - -gUnk_085B0054:: @ 085B0054 - .incbin "baserom.gba", 0x5B0054, 0x0000004 - -gUnk_085B0058:: @ 085B0058 - .incbin "baserom.gba", 0x5B0058, 0x000000C - -gUnk_085B0064:: @ 085B0064 - .incbin "baserom.gba", 0x5B0064, 0x0000001 - -gUnk_085B0065:: @ 085B0065 - .incbin "baserom.gba", 0x5B0065, 0x000000F - -gUnk_085B0074:: @ 085B0074 - .incbin "baserom.gba", 0x5B0074, 0x0000060 - -gUnk_085B00D4:: @ 085B00D4 - .incbin "baserom.gba", 0x5B00D4, 0x0000026 - -gUnk_085B00FA:: @ 085B00FA - .incbin "baserom.gba", 0x5B00FA, 0x0000308 - -gUnk_085B0402:: @ 085B0402 - .incbin "baserom.gba", 0x5B0402, 0x0000032 - -gUnk_085B0434:: @ 085B0434 - .incbin "baserom.gba", 0x5B0434, 0x0000015 - -gUnk_085B0449:: @ 085B0449 - .incbin "baserom.gba", 0x5B0449, 0x000001A - -gUnk_085B0463:: @ 085B0463 - .incbin "baserom.gba", 0x5B0463, 0x0000001 - -gUnk_085B0464:: @ 085B0464 - .incbin "baserom.gba", 0x5B0464, 0x00003A2 - -gUnk_085B0806:: @ 085B0806 - .incbin "baserom.gba", 0x5B0806, 0x0000001 - -gUnk_085B0807:: @ 085B0807 - .incbin "baserom.gba", 0x5B0807, 0x000088D - -gUnk_085B1094:: @ 085B1094 - .incbin "baserom.gba", 0x5B1094, 0x00030EC - -gUnk_085B4180:: @ 085B4180 - .incbin "baserom.gba", 0x5B4180, 0x0000EB5 - -gUnk_085B5035:: @ 085B5035 - .incbin "baserom.gba", 0x5B5035, 0x0000E8B - -gUnk_085B5EC0:: @ 085B5EC0 - .incbin "baserom.gba", 0x5B5EC0, 0x00000E0 - -gUnk_085B5FA0:: @ 085B5FA0 - .incbin "baserom.gba", 0x5B5FA0, 0x00000E0 - -gUnk_085B6080:: @ 085B6080 - .incbin "baserom.gba", 0x5B6080, 0x00000E0 - -gUnk_085B6160:: @ 085B6160 - .incbin "baserom.gba", 0x5B6160, 0x00000E0 - -gUnk_085B6240:: @ 085B6240 - .incbin "baserom.gba", 0x5B6240, 0x00000E0 - -gUnk_085B6320:: @ 085B6320 - .incbin "baserom.gba", 0x5B6320, 0x0000013 - -gUnk_085B6333:: @ 085B6333 - .incbin "baserom.gba", 0x5B6333, 0x00000CD - -gUnk_085B6400:: @ 085B6400 - .incbin "baserom.gba", 0x5B6400, 0x00000E0 - -gUnk_085B64E0:: @ 085B64E0 - .incbin "baserom.gba", 0x5B64E0, 0x00000E0 - -gUnk_085B65C0:: @ 085B65C0 - .incbin "baserom.gba", 0x5B65C0, 0x00000E0 - -gUnk_085B66A0:: @ 085B66A0 - .incbin "baserom.gba", 0x5B66A0, 0x00000E0 - -gUnk_085B6780:: @ 085B6780 - .incbin "baserom.gba", 0x5B6780, 0x00000E0 - -gUnk_085B6860:: @ 085B6860 - .incbin "baserom.gba", 0x5B6860, 0x00000E0 - -gUnk_085B6940:: @ 085B6940 - .incbin "baserom.gba", 0x5B6940, 0x00000E0 - -gUnk_085B6A20:: @ 085B6A20 - .incbin "baserom.gba", 0x5B6A20, 0x00000E0 - -gUnk_085B6B00:: @ 085B6B00 - .incbin "baserom.gba", 0x5B6B00, 0x00000E0 - -gUnk_085B6BE0:: @ 085B6BE0 - .incbin "baserom.gba", 0x5B6BE0, 0x00000E0 - -gUnk_085B6CC0:: @ 085B6CC0 - .incbin "baserom.gba", 0x5B6CC0, 0x00000E0 - -gUnk_085B6DA0:: @ 085B6DA0 - .incbin "baserom.gba", 0x5B6DA0, 0x00000E0 - -gUnk_085B6E80:: @ 085B6E80 - .incbin "baserom.gba", 0x5B6E80, 0x00000C6 - -gUnk_085B6F46:: @ 085B6F46 - .incbin "baserom.gba", 0x5B6F46, 0x000001A - -gUnk_085B6F60:: @ 085B6F60 - .incbin "baserom.gba", 0x5B6F60, 0x00000E0 - -gUnk_085B7040:: @ 085B7040 - .incbin "baserom.gba", 0x5B7040, 0x00000E0 - -gUnk_085B7120:: @ 085B7120 - .incbin "baserom.gba", 0x5B7120, 0x00000E0 - -gUnk_085B7200:: @ 085B7200 - .incbin "baserom.gba", 0x5B7200, 0x00000E0 - -gUnk_085B72E0:: @ 085B72E0 - .incbin "baserom.gba", 0x5B72E0, 0x00000E0 - -gUnk_085B73C0:: @ 085B73C0 - .incbin "baserom.gba", 0x5B73C0, 0x00000E0 - -gUnk_085B74A0:: @ 085B74A0 - .incbin "baserom.gba", 0x5B74A0, 0x00000E0 - -gUnk_085B7580:: @ 085B7580 - .incbin "baserom.gba", 0x5B7580, 0x00000E0 - -gUnk_085B7660:: @ 085B7660 - .incbin "baserom.gba", 0x5B7660, 0x00000E0 - -gUnk_085B7740:: @ 085B7740 - .incbin "baserom.gba", 0x5B7740, 0x00000E0 - -gUnk_085B7820:: @ 085B7820 - .incbin "baserom.gba", 0x5B7820, 0x00000E0 - -gUnk_085B7900:: @ 085B7900 - .incbin "baserom.gba", 0x5B7900, 0x00000E0 - -gUnk_085B79E0:: @ 085B79E0 - .incbin "baserom.gba", 0x5B79E0, 0x00000E0 - -gUnk_085B7AC0:: @ 085B7AC0 - .incbin "baserom.gba", 0x5B7AC0, 0x00000E0 - -gUnk_085B7BA0:: @ 085B7BA0 - .incbin "baserom.gba", 0x5B7BA0, 0x00000E0 - -gUnk_085B7C80:: @ 085B7C80 - .incbin "baserom.gba", 0x5B7C80, 0x00000E0 - -gUnk_085B7D60:: @ 085B7D60 - .incbin "baserom.gba", 0x5B7D60, 0x00000E0 - -gUnk_085B7E40:: @ 085B7E40 - .incbin "baserom.gba", 0x5B7E40, 0x00000E0 - -gUnk_085B7F20:: @ 085B7F20 - .incbin "baserom.gba", 0x5B7F20, 0x00000E0 - -gUnk_085B8000:: @ 085B8000 - .incbin "baserom.gba", 0x5B8000, 0x00000E0 - -gUnk_085B80E0:: @ 085B80E0 - .incbin "baserom.gba", 0x5B80E0, 0x00000E0 - -gUnk_085B81C0:: @ 085B81C0 - .incbin "baserom.gba", 0x5B81C0, 0x00000E0 - -gUnk_085B82A0:: @ 085B82A0 - .incbin "baserom.gba", 0x5B82A0, 0x00000E0 - -gUnk_085B8380:: @ 085B8380 - .incbin "baserom.gba", 0x5B8380, 0x00000E0 - -gUnk_085B8460:: @ 085B8460 - .incbin "baserom.gba", 0x5B8460, 0x00000E0 - -gUnk_085B8540:: @ 085B8540 - .incbin "baserom.gba", 0x5B8540, 0x00000E0 - -gUnk_085B8620:: @ 085B8620 - .incbin "baserom.gba", 0x5B8620, 0x00000E0 - -gUnk_085B8700:: @ 085B8700 - .incbin "baserom.gba", 0x5B8700, 0x00000E0 - -gUnk_085B87E0:: @ 085B87E0 - .incbin "baserom.gba", 0x5B87E0, 0x00000E0 - -gUnk_085B88C0:: @ 085B88C0 - .incbin "baserom.gba", 0x5B88C0, 0x0000120 - -gUnk_085B89E0:: @ 085B89E0 - .incbin "baserom.gba", 0x5B89E0, 0x00000E0 - -gUnk_085B8AC0:: @ 085B8AC0 - .incbin "baserom.gba", 0x5B8AC0, 0x00000E0 - -gUnk_085B8BA0:: @ 085B8BA0 - .incbin "baserom.gba", 0x5B8BA0, 0x00000E0 - -gUnk_085B8C80:: @ 085B8C80 - .incbin "baserom.gba", 0x5B8C80, 0x00000E0 - -gUnk_085B8D60:: @ 085B8D60 - .incbin "baserom.gba", 0x5B8D60, 0x00000E0 - -gUnk_085B8E40:: @ 085B8E40 - .incbin "baserom.gba", 0x5B8E40, 0x00000E0 - -gUnk_085B8F20:: @ 085B8F20 - .incbin "baserom.gba", 0x5B8F20, 0x00000E0 - -gUnk_085B9000:: @ 085B9000 - .incbin "baserom.gba", 0x5B9000, 0x00000E0 - -gUnk_085B90E0:: @ 085B90E0 - .incbin "baserom.gba", 0x5B90E0, 0x00000E0 - -gUnk_085B91C0:: @ 085B91C0 - .incbin "baserom.gba", 0x5B91C0, 0x00000E0 - -gUnk_085B92A0:: @ 085B92A0 - .incbin "baserom.gba", 0x5B92A0, 0x00000E0 - -gUnk_085B9380:: @ 085B9380 - .incbin "baserom.gba", 0x5B9380, 0x00000E0 - -gUnk_085B9460:: @ 085B9460 - .incbin "baserom.gba", 0x5B9460, 0x00000E0 - -gUnk_085B9540:: @ 085B9540 - .incbin "baserom.gba", 0x5B9540, 0x00000E0 - -gUnk_085B9620:: @ 085B9620 - .incbin "baserom.gba", 0x5B9620, 0x00000E0 - -gUnk_085B9700:: @ 085B9700 - .incbin "baserom.gba", 0x5B9700, 0x00000E0 - -gUnk_085B97E0:: @ 085B97E0 - .incbin "baserom.gba", 0x5B97E0, 0x00000E0 - -gUnk_085B98C0:: @ 085B98C0 - .incbin "baserom.gba", 0x5B98C0, 0x00000E0 - -gUnk_085B99A0:: @ 085B99A0 - .incbin "baserom.gba", 0x5B99A0, 0x00000E0 - -gUnk_085B9A80:: @ 085B9A80 - .incbin "baserom.gba", 0x5B9A80, 0x00000E0 - -gUnk_085B9B60:: @ 085B9B60 - .incbin "baserom.gba", 0x5B9B60, 0x00000E0 - -gUnk_085B9C40:: @ 085B9C40 - .incbin "baserom.gba", 0x5B9C40, 0x00000E0 - -gUnk_085B9D20:: @ 085B9D20 - .incbin "baserom.gba", 0x5B9D20, 0x00000E0 - -gUnk_085B9E00:: @ 085B9E00 - .incbin "baserom.gba", 0x5B9E00, 0x00000E0 - -gUnk_085B9EE0:: @ 085B9EE0 - .incbin "baserom.gba", 0x5B9EE0, 0x00000E0 - -gUnk_085B9FC0:: @ 085B9FC0 - .incbin "baserom.gba", 0x5B9FC0, 0x00000E0 - -gUnk_085BA0A0:: @ 085BA0A0 - .incbin "baserom.gba", 0x5BA0A0, 0x00000E0 - -gUnk_085BA180:: @ 085BA180 - .incbin "baserom.gba", 0x5BA180, 0x00000E0 - -gUnk_085BA260:: @ 085BA260 - .incbin "baserom.gba", 0x5BA260, 0x00000E0 - -gUnk_085BA340:: @ 085BA340 - .incbin "baserom.gba", 0x5BA340, 0x00000E0 - -gUnk_085BA420:: @ 085BA420 - .incbin "baserom.gba", 0x5BA420, 0x00000E0 - -gUnk_085BA500:: @ 085BA500 - .incbin "baserom.gba", 0x5BA500, 0x00000E0 - -gUnk_085BA5E0:: @ 085BA5E0 - .incbin "baserom.gba", 0x5BA5E0, 0x00000E0 - -gUnk_085BA6C0:: @ 085BA6C0 - .incbin "baserom.gba", 0x5BA6C0, 0x00000E0 - -gUnk_085BA7A0:: @ 085BA7A0 - .incbin "baserom.gba", 0x5BA7A0, 0x00000E0 - -gUnk_085BA880:: @ 085BA880 - .incbin "baserom.gba", 0x5BA880, 0x00000E0 - -gUnk_085BA960:: @ 085BA960 - .incbin "baserom.gba", 0x5BA960, 0x00000E0 - -gUnk_085BAA40:: @ 085BAA40 - .incbin "baserom.gba", 0x5BAA40, 0x00000E0 - -gUnk_085BAB20:: @ 085BAB20 - .incbin "baserom.gba", 0x5BAB20, 0x00000E0 - -gUnk_085BAC00:: @ 085BAC00 - .incbin "baserom.gba", 0x5BAC00, 0x00000E0 - -gUnk_085BACE0:: @ 085BACE0 - .incbin "baserom.gba", 0x5BACE0, 0x00000E0 - -gUnk_085BADC0:: @ 085BADC0 - .incbin "baserom.gba", 0x5BADC0, 0x00000E0 - -gUnk_085BAEA0:: @ 085BAEA0 - .incbin "baserom.gba", 0x5BAEA0, 0x00000E0 - -gUnk_085BAF80:: @ 085BAF80 - .incbin "baserom.gba", 0x5BAF80, 0x00000E0 - -gUnk_085BB060:: @ 085BB060 - .incbin "baserom.gba", 0x5BB060, 0x00000E0 - -gUnk_085BB140:: @ 085BB140 - .incbin "baserom.gba", 0x5BB140, 0x00000E0 - -gUnk_085BB220:: @ 085BB220 - .incbin "baserom.gba", 0x5BB220, 0x00000E0 - -gUnk_085BB300:: @ 085BB300 - .incbin "baserom.gba", 0x5BB300, 0x00000E0 - -gUnk_085BB3E0:: @ 085BB3E0 - .incbin "baserom.gba", 0x5BB3E0, 0x00000E0 - -gUnk_085BB4C0:: @ 085BB4C0 - .incbin "baserom.gba", 0x5BB4C0, 0x00000E0 - -gUnk_085BB5A0:: @ 085BB5A0 - .incbin "baserom.gba", 0x5BB5A0, 0x00000E0 - -gUnk_085BB680:: @ 085BB680 - .incbin "baserom.gba", 0x5BB680, 0x00000E0 - -gUnk_085BB760:: @ 085BB760 - .incbin "baserom.gba", 0x5BB760, 0x00000E0 - -gUnk_085BB840:: @ 085BB840 - .incbin "baserom.gba", 0x5BB840, 0x00000E0 - -gUnk_085BB920:: @ 085BB920 - .incbin "baserom.gba", 0x5BB920, 0x00000E0 - -gUnk_085BBA00:: @ 085BBA00 - .incbin "baserom.gba", 0x5BBA00, 0x00000E0 - -gUnk_085BBAE0:: @ 085BBAE0 - .incbin "baserom.gba", 0x5BBAE0, 0x00000E0 - -gUnk_085BBBC0:: @ 085BBBC0 - .incbin "baserom.gba", 0x5BBBC0, 0x00000E0 - -gUnk_085BBCA0:: @ 085BBCA0 - .incbin "baserom.gba", 0x5BBCA0, 0x00000E0 - -gUnk_085BBD80:: @ 085BBD80 - .incbin "baserom.gba", 0x5BBD80, 0x00000E0 - -gUnk_085BBE60:: @ 085BBE60 - .incbin "baserom.gba", 0x5BBE60, 0x00000E0 - -gUnk_085BBF40:: @ 085BBF40 - .incbin "baserom.gba", 0x5BBF40, 0x00000E0 - -gUnk_085BC020:: @ 085BC020 - .incbin "baserom.gba", 0x5BC020, 0x00000E0 - -gUnk_085BC100:: @ 085BC100 - .incbin "baserom.gba", 0x5BC100, 0x00000E0 - -gUnk_085BC1E0:: @ 085BC1E0 - .incbin "baserom.gba", 0x5BC1E0, 0x00000E0 - -gUnk_085BC2C0:: @ 085BC2C0 - .incbin "baserom.gba", 0x5BC2C0, 0x00000E0 - -gUnk_085BC3A0:: @ 085BC3A0 - .incbin "baserom.gba", 0x5BC3A0, 0x00000E0 - -gUnk_085BC480:: @ 085BC480 - .incbin "baserom.gba", 0x5BC480, 0x00000E0 - -gUnk_085BC560:: @ 085BC560 - .incbin "baserom.gba", 0x5BC560, 0x00000E0 - -gUnk_085BC640:: @ 085BC640 - .incbin "baserom.gba", 0x5BC640, 0x00000E0 - -gUnk_085BC720:: @ 085BC720 - .incbin "baserom.gba", 0x5BC720, 0x00000E0 - -gUnk_085BC800:: @ 085BC800 - .incbin "baserom.gba", 0x5BC800, 0x00000E0 - -gUnk_085BC8E0:: @ 085BC8E0 - .incbin "baserom.gba", 0x5BC8E0, 0x00000E0 - -gUnk_085BC9C0:: @ 085BC9C0 - .incbin "baserom.gba", 0x5BC9C0, 0x00000E0 - -gUnk_085BCAA0:: @ 085BCAA0 - .incbin "baserom.gba", 0x5BCAA0, 0x00000E0 - -gUnk_085BCB80:: @ 085BCB80 - .incbin "baserom.gba", 0x5BCB80, 0x00000E0 - -gUnk_085BCC60:: @ 085BCC60 - .incbin "baserom.gba", 0x5BCC60, 0x00000E0 - -gUnk_085BCD40:: @ 085BCD40 - .incbin "baserom.gba", 0x5BCD40, 0x00000E0 - -gUnk_085BCE20:: @ 085BCE20 - .incbin "baserom.gba", 0x5BCE20, 0x00000E0 - -gUnk_085BCF00:: @ 085BCF00 - .incbin "baserom.gba", 0x5BCF00, 0x00000E0 - -gUnk_085BCFE0:: @ 085BCFE0 - .incbin "baserom.gba", 0x5BCFE0, 0x00000E0 - -gUnk_085BD0C0:: @ 085BD0C0 - .incbin "baserom.gba", 0x5BD0C0, 0x00000E0 - -gUnk_085BD1A0:: @ 085BD1A0 - .incbin "baserom.gba", 0x5BD1A0, 0x00000E0 - -gUnk_085BD280:: @ 085BD280 - .incbin "baserom.gba", 0x5BD280, 0x00000E0 - -gUnk_085BD360:: @ 085BD360 - .incbin "baserom.gba", 0x5BD360, 0x00000A4 - -gUnk_085BD404:: @ 085BD404 - .incbin "baserom.gba", 0x5BD404, 0x000003C - -gUnk_085BD440:: @ 085BD440 - .incbin "baserom.gba", 0x5BD440, 0x00000E0 - -gUnk_085BD520:: @ 085BD520 - .incbin "baserom.gba", 0x5BD520, 0x0000100 - -gUnk_085BD620:: @ 085BD620 - .incbin "graphics/intro/capcom.gbapal" - -gUnk_085BD640:: @ 085BD640 - .incbin "graphics/intro/nintendo.gbapal" - -gUnk_085BD660:: @ 085BD660 - .incbin "baserom.gba", 0x5BD660, 0x0002898 - -gUnk_085BFEF8:: @ 085BFEF8 - .incbin "baserom.gba", 0x5BFEF8, 0x000002E - -gUnk_085BFF26:: @ 085BFF26 - .incbin "baserom.gba", 0x5BFF26, 0x00000AE - -gUnk_085BFFD4:: @ 085BFFD4 - .incbin "baserom.gba", 0x5BFFD4, 0x0000024 - -gUnk_085BFFF8:: @ 085BFFF8 - .incbin "baserom.gba", 0x5BFFF8, 0x0000007 - -gUnk_085BFFFF:: @ 085BFFFF - .incbin "baserom.gba", 0x5BFFFF, 0x000081D - -gUnk_085C081C:: @ 085C081C - .incbin "baserom.gba", 0x5C081C, 0x0001163 - -gUnk_085C197F:: @ 085C197F - .incbin "baserom.gba", 0x5C197F, 0x00003D1 - -gUnk_085C1D50:: @ 085C1D50 - .incbin "baserom.gba", 0x5C1D50, 0x0000A0C - -gUnk_085C275C:: @ 085C275C - .incbin "baserom.gba", 0x5C275C, 0x0000AD6 - -gUnk_085C3232:: @ 085C3232 - .incbin "baserom.gba", 0x5C3232, 0x00008CE - -gUnk_085C3B00:: @ 085C3B00 - .incbin "baserom.gba", 0x5C3B00, 0x0000438 - -gUnk_085C3F38:: @ 085C3F38 - .incbin "baserom.gba", 0x5C3F38, 0x00006E8 - -gUnk_085C4620:: @ 085C4620 - .incbin "baserom.gba", 0x5C4620, 0x0000500 - -gUnk_085C4B20:: @ 085C4B20 - .incbin "baserom.gba", 0x5C4B20, 0x0000280 - -gUnk_085C4DA0:: @ 085C4DA0 - .incbin "baserom.gba", 0x5C4DA0, 0x00000C0 - -gUnk_085C4E60:: @ 085C4E60 - .incbin "baserom.gba", 0x5C4E60, 0x00000C0 - -gUnk_085C4F20:: @ 085C4F20 - .incbin "baserom.gba", 0x5C4F20, 0x00000C0 - -gUnk_085C4FE0:: @ 085C4FE0 - .incbin "baserom.gba", 0x5C4FE0, 0x000B021 - -gUnk_085D0001:: @ 085D0001 - .incbin "baserom.gba", 0x5D0001, 0x0000106 - -gUnk_085D0107:: @ 085D0107 - .incbin "baserom.gba", 0x5D0107, 0x0000055 - -gUnk_085D015C:: @ 085D015C - .incbin "baserom.gba", 0x5D015C, 0x000045B - -gUnk_085D05B7:: @ 085D05B7 - .incbin "baserom.gba", 0x5D05B7, 0x00003A6 - -gUnk_085D095D:: @ 085D095D - .incbin "baserom.gba", 0x5D095D, 0x0001E00 - -gUnk_085D275D:: @ 085D275D - .incbin "baserom.gba", 0x5D275D, 0x00009A3 - -gUnk_085D3100:: @ 085D3100 - .incbin "baserom.gba", 0x5D3100, 0x000DC31 - -gUnk_085E0D31:: @ 085E0D31 - .incbin "baserom.gba", 0x5E0D31, 0x00045BC - -gUnk_085E52ED:: @ 085E52ED - .incbin "baserom.gba", 0x5E52ED, 0x0004D8F - -gUnk_085EA07C:: @ 085EA07C - .incbin "baserom.gba", 0x5EA07C, 0x0005F84 - -gUnk_085F0000:: @ 085F0000 - .incbin "baserom.gba", 0x5F0000, 0x0000006 - -gUnk_085F0006:: @ 085F0006 - .incbin "baserom.gba", 0x5F0006, 0x0000002 - -gUnk_085F0008:: @ 085F0008 - .incbin "baserom.gba", 0x5F0008, 0x0000002 - -gUnk_085F000A:: @ 085F000A - .incbin "baserom.gba", 0x5F000A, 0x0000011 - -gUnk_085F001B:: @ 085F001B - .incbin "baserom.gba", 0x5F001B, 0x0000003 - -gUnk_085F001E:: @ 085F001E - .incbin "baserom.gba", 0x5F001E, 0x000001E - -gUnk_085F003C:: @ 085F003C - .incbin "baserom.gba", 0x5F003C, 0x0000036 - -gUnk_085F0072:: @ 085F0072 - .incbin "baserom.gba", 0x5F0072, 0x0000006 - -gUnk_085F0078:: @ 085F0078 - .incbin "baserom.gba", 0x5F0078, 0x0000014 - -gUnk_085F008C:: @ 085F008C - .incbin "baserom.gba", 0x5F008C, 0x0000376 - -gUnk_085F0402:: @ 085F0402 - .incbin "baserom.gba", 0x5F0402, 0x0000032 - -gUnk_085F0434:: @ 085F0434 - .incbin "baserom.gba", 0x5F0434, 0x000000F - -gUnk_085F0443:: @ 085F0443 - .incbin "baserom.gba", 0x5F0443, 0x0000008 - -gUnk_085F044B:: @ 085F044B - .incbin "baserom.gba", 0x5F044B, 0x000000E - -gUnk_085F0459:: @ 085F0459 - .incbin "baserom.gba", 0x5F0459, 0x0000005 - -gUnk_085F045E:: @ 085F045E - .incbin "baserom.gba", 0x5F045E, 0x00003A9 - -gUnk_085F0807:: @ 085F0807 - .incbin "baserom.gba", 0x5F0807, 0x0000057 - -gUnk_085F085E:: @ 085F085E - .incbin "baserom.gba", 0x5F085E, 0x000F259 - -gUnk_085FFAB7:: @ 085FFAB7 - .incbin "baserom.gba", 0x5FFAB7, 0x0000050 - -gUnk_085FFB07:: @ 085FFB07 - .incbin "baserom.gba", 0x5FFB07, 0x00004F8 - -gUnk_085FFFFF:: @ 085FFFFF - .incbin "baserom.gba", 0x5FFFFF, 0x0000001 - -gUnk_08600000:: @ 08600000 - .incbin "baserom.gba", 0x600000, 0x0000001 - -gUnk_08600001:: @ 08600001 - .incbin "baserom.gba", 0x600001, 0x0000005 - -gUnk_08600006:: @ 08600006 - .incbin "baserom.gba", 0x600006, 0x00000E3 - -gUnk_086000E9:: @ 086000E9 - .incbin "baserom.gba", 0x6000E9, 0x0000237 - -gUnk_08600320:: @ 08600320 - .incbin "baserom.gba", 0x600320, 0x0000314 - -gUnk_08600634:: @ 08600634 - .incbin "baserom.gba", 0x600634, 0x00000FC - -gUnk_08600730:: @ 08600730 - .incbin "baserom.gba", 0x600730, 0x00000D8 - -gUnk_08600808:: @ 08600808 - .incbin "baserom.gba", 0x600808, 0x0003458 - -gUnk_08603C60:: @ 08603C60 - .incbin "baserom.gba", 0x603C60, 0x000177E - -gUnk_086053DE:: @ 086053DE - .incbin "baserom.gba", 0x6053DE, 0x0000421 - -gUnk_086057FF:: @ 086057FF - .incbin "baserom.gba", 0x6057FF, 0x0000F04 - -gUnk_08606703:: @ 08606703 - .incbin "baserom.gba", 0x606703, 0x0000750 - -gUnk_08606E53:: @ 08606E53 - .incbin "baserom.gba", 0x606E53, 0x00010AD - -gUnk_08607F00:: @ 08607F00 - .incbin "baserom.gba", 0x607F00, 0x0000052 - -gUnk_08607F52:: @ 08607F52 - .incbin "baserom.gba", 0x607F52, 0x00009AE - -gUnk_08608900:: @ 08608900 - .incbin "baserom.gba", 0x608900, 0x0005BEA - -gUnk_0860E4EA:: @ 0860E4EA - .incbin "baserom.gba", 0x60E4EA, 0x0000D01 - -gUnk_0860F1EB:: @ 0860F1EB - .incbin "baserom.gba", 0x60F1EB, 0x0000405 - -gUnk_0860F5F0:: @ 0860F5F0 - .incbin "baserom.gba", 0x60F5F0, 0x0000300 - -gUnk_0860F8F0:: @ 0860F8F0 - .incbin "baserom.gba", 0x60F8F0, 0x000006B - -gUnk_0860F95B:: @ 0860F95B - .incbin "baserom.gba", 0x60F95B, 0x00003A8 - -gUnk_0860FD03:: @ 0860FD03 - .incbin "baserom.gba", 0x60FD03, 0x00002FD - -gUnk_08610000:: @ 08610000 - .incbin "baserom.gba", 0x610000, 0x0000002 - -gUnk_08610002:: @ 08610002 - .incbin "baserom.gba", 0x610002, 0x0000002 - -gUnk_08610004:: @ 08610004 - .incbin "baserom.gba", 0x610004, 0x0000001 - -gUnk_08610005:: @ 08610005 - .incbin "baserom.gba", 0x610005, 0x0000001 - -gUnk_08610006:: @ 08610006 - .incbin "baserom.gba", 0x610006, 0x0000001 - -gUnk_08610007:: @ 08610007 - .incbin "baserom.gba", 0x610007, 0x0000001 - -gUnk_08610008:: @ 08610008 - .incbin "baserom.gba", 0x610008, 0x0000002 - -gUnk_0861000A:: @ 0861000A - .incbin "baserom.gba", 0x61000A, 0x0000001 - -gUnk_0861000B:: @ 0861000B - .incbin "baserom.gba", 0x61000B, 0x0000004 - -gUnk_0861000F:: @ 0861000F - .incbin "baserom.gba", 0x61000F, 0x0000004 - -gUnk_08610013:: @ 08610013 - .incbin "baserom.gba", 0x610013, 0x0000001 - -gUnk_08610014:: @ 08610014 - .incbin "baserom.gba", 0x610014, 0x000000A - -gUnk_0861001E:: @ 0861001E - .incbin "baserom.gba", 0x61001E, 0x0000002 - -gUnk_08610020:: @ 08610020 - .incbin "baserom.gba", 0x610020, 0x0000006 - -gUnk_08610026:: @ 08610026 - .incbin "baserom.gba", 0x610026, 0x000000A - -gUnk_08610030:: @ 08610030 - .incbin "baserom.gba", 0x610030, 0x000000C - -gUnk_0861003C:: @ 0861003C - .incbin "baserom.gba", 0x61003C, 0x0000004 - -gUnk_08610040:: @ 08610040 - .incbin "baserom.gba", 0x610040, 0x000000A - -gUnk_0861004A:: @ 0861004A - .incbin "baserom.gba", 0x61004A, 0x0000006 - -gUnk_08610050:: @ 08610050 - .incbin "baserom.gba", 0x610050, 0x0000008 - -gUnk_08610058:: @ 08610058 - .incbin "baserom.gba", 0x610058, 0x0000002 - -gUnk_0861005A:: @ 0861005A - .incbin "baserom.gba", 0x61005A, 0x0000002 - -gUnk_0861005C:: @ 0861005C - .incbin "baserom.gba", 0x61005C, 0x0000004 - -gUnk_08610060:: @ 08610060 - .incbin "baserom.gba", 0x610060, 0x0000008 - -gUnk_08610068:: @ 08610068 - .incbin "baserom.gba", 0x610068, 0x000000E - -gUnk_08610076:: @ 08610076 - .incbin "baserom.gba", 0x610076, 0x0000002 - -gUnk_08610078:: @ 08610078 - .incbin "baserom.gba", 0x610078, 0x0000008 - -gUnk_08610080:: @ 08610080 - .incbin "baserom.gba", 0x610080, 0x0000010 - -gUnk_08610090:: @ 08610090 - .incbin "baserom.gba", 0x610090, 0x0000008 - -gUnk_08610098:: @ 08610098 - .incbin "baserom.gba", 0x610098, 0x0000010 - -gUnk_086100A8:: @ 086100A8 - .incbin "baserom.gba", 0x6100A8, 0x0000010 - -gUnk_086100B8:: @ 086100B8 - .incbin "baserom.gba", 0x6100B8, 0x0000048 - -gUnk_08610100:: @ 08610100 - .incbin "baserom.gba", 0x610100, 0x0000008 - -gUnk_08610108:: @ 08610108 - .incbin "baserom.gba", 0x610108, 0x0000014 - -gUnk_0861011C:: @ 0861011C - .incbin "baserom.gba", 0x61011C, 0x0000008 - -gUnk_08610124:: @ 08610124 - .incbin "baserom.gba", 0x610124, 0x000001C - -gUnk_08610140:: @ 08610140 - .incbin "baserom.gba", 0x610140, 0x0000008 - -gUnk_08610148:: @ 08610148 - .incbin "baserom.gba", 0x610148, 0x0000020 - -gUnk_08610168:: @ 08610168 - .incbin "baserom.gba", 0x610168, 0x0000018 - -gUnk_08610180:: @ 08610180 - .incbin "baserom.gba", 0x610180, 0x0000030 - -gUnk_086101B0:: @ 086101B0 - .incbin "baserom.gba", 0x6101B0, 0x0000010 - -gUnk_086101C0:: @ 086101C0 - .incbin "baserom.gba", 0x6101C0, 0x0000008 - -gUnk_086101C8:: @ 086101C8 - .incbin "baserom.gba", 0x6101C8, 0x0000040 - -gUnk_08610208:: @ 08610208 - .incbin "baserom.gba", 0x610208, 0x0000020 - -gUnk_08610228:: @ 08610228 - .incbin "baserom.gba", 0x610228, 0x0000010 - -gUnk_08610238:: @ 08610238 - .incbin "baserom.gba", 0x610238, 0x0000028 - -gUnk_08610260:: @ 08610260 - .incbin "baserom.gba", 0x610260, 0x0000010 - -gUnk_08610270:: @ 08610270 - .incbin "baserom.gba", 0x610270, 0x0000008 - -gUnk_08610278:: @ 08610278 - .incbin "baserom.gba", 0x610278, 0x0000010 - -gUnk_08610288:: @ 08610288 - .incbin "baserom.gba", 0x610288, 0x0000080 - -gUnk_08610308:: @ 08610308 - .incbin "baserom.gba", 0x610308, 0x0000018 - -gUnk_08610320:: @ 08610320 - .incbin "baserom.gba", 0x610320, 0x0000008 - -gUnk_08610328:: @ 08610328 - .incbin "baserom.gba", 0x610328, 0x0000008 - -gUnk_08610330:: @ 08610330 - .incbin "baserom.gba", 0x610330, 0x0000008 - -gUnk_08610338:: @ 08610338 - .incbin "baserom.gba", 0x610338, 0x0000010 - -gUnk_08610348:: @ 08610348 - .incbin "baserom.gba", 0x610348, 0x0000018 - -gUnk_08610360:: @ 08610360 - .incbin "baserom.gba", 0x610360, 0x0000038 - -gUnk_08610398:: @ 08610398 - .incbin "baserom.gba", 0x610398, 0x0000069 - -gUnk_08610401:: @ 08610401 - .incbin "baserom.gba", 0x610401, 0x0000001 - -gUnk_08610402:: @ 08610402 - .incbin "baserom.gba", 0x610402, 0x0000041 - -gUnk_08610443:: @ 08610443 - .incbin "baserom.gba", 0x610443, 0x0000001 - -gUnk_08610444:: @ 08610444 - .incbin "baserom.gba", 0x610444, 0x0000015 - -gUnk_08610459:: @ 08610459 - .incbin "baserom.gba", 0x610459, 0x0000057 - -gUnk_086104B0:: @ 086104B0 - .incbin "baserom.gba", 0x6104B0, 0x0000300 - -gUnk_086107B0:: @ 086107B0 - .incbin "baserom.gba", 0x6107B0, 0x0000055 - -gUnk_08610805:: @ 08610805 - .incbin "baserom.gba", 0x610805, 0x0000001 - -gUnk_08610806:: @ 08610806 - .incbin "baserom.gba", 0x610806, 0x0000001 - -gUnk_08610807:: @ 08610807 - .incbin "baserom.gba", 0x610807, 0x0000059 - -gUnk_08610860:: @ 08610860 - .incbin "baserom.gba", 0x610860, 0x000059E - -gUnk_08610DFE:: @ 08610DFE - .incbin "baserom.gba", 0x610DFE, 0x0002212 - -gUnk_08613010:: @ 08613010 - .incbin "baserom.gba", 0x613010, 0x0000334 - -gUnk_08613344:: @ 08613344 - .incbin "baserom.gba", 0x613344, 0x00065DE - -gUnk_08619922:: @ 08619922 - .incbin "baserom.gba", 0x619922, 0x00006DE - -gUnk_0861A000:: @ 0861A000 - .incbin "baserom.gba", 0x61A000, 0x0000BCC - -gUnk_0861ABCC:: @ 0861ABCC - .incbin "baserom.gba", 0x61ABCC, 0x0001181 - -gUnk_0861BD4D:: @ 0861BD4D - .incbin "baserom.gba", 0x61BD4D, 0x0005403 - -gUnk_08621150:: @ 08621150 - .incbin "baserom.gba", 0x621150, 0x00010D5 - -gUnk_08622225:: @ 08622225 - .incbin "baserom.gba", 0x622225, 0x0000020 - -gUnk_08622245:: @ 08622245 - .incbin "baserom.gba", 0x622245, 0x00001C2 - -gUnk_08622407:: @ 08622407 - .incbin "baserom.gba", 0x622407, 0x000203A - -gUnk_08624441:: @ 08624441 - .incbin "baserom.gba", 0x624441, 0x000A521 - -gUnk_0862E962:: @ 0862E962 - .incbin "baserom.gba", 0x62E962, 0x00016E1 - -gUnk_08630043:: @ 08630043 - .incbin "baserom.gba", 0x630043, 0x00000ED - -gUnk_08630130:: @ 08630130 - .incbin "baserom.gba", 0x630130, 0x0000312 - -gUnk_08630442:: @ 08630442 - .incbin "baserom.gba", 0x630442, 0x0000120 - -gUnk_08630562:: @ 08630562 - .incbin "baserom.gba", 0x630562, 0x00001B0 - -gUnk_08630712:: @ 08630712 - .incbin "baserom.gba", 0x630712, 0x0000150 - -gUnk_08630862:: @ 08630862 - .incbin "baserom.gba", 0x630862, 0x0005CC3 - -gUnk_08636525:: @ 08636525 - .incbin "baserom.gba", 0x636525, 0x0002D5C - -gUnk_08639281:: @ 08639281 - .incbin "baserom.gba", 0x639281, 0x0006E86 - -gUnk_08640107:: @ 08640107 - .incbin "baserom.gba", 0x640107, 0x0000219 - -gUnk_08640320:: @ 08640320 - .incbin "baserom.gba", 0x640320, 0x0000123 - -gUnk_08640443:: @ 08640443 - .incbin "baserom.gba", 0x640443, 0x0000B9E - -gUnk_08640FE1:: @ 08640FE1 - .incbin "baserom.gba", 0x640FE1, 0x0001296 - -gUnk_08642277:: @ 08642277 - .incbin "baserom.gba", 0x642277, 0x000218C - -gUnk_08644403:: @ 08644403 - .incbin "baserom.gba", 0x644403, 0x000081C - -gUnk_08644C1F:: @ 08644C1F - .incbin "baserom.gba", 0x644C1F, 0x0000914 - -gUnk_08645533:: @ 08645533 - .incbin "baserom.gba", 0x645533, 0x0000003 - -gUnk_08645536:: @ 08645536 - .incbin "baserom.gba", 0x645536, 0x00001EF - -gUnk_08645725:: @ 08645725 - .incbin "baserom.gba", 0x645725, 0x0005330 - -gUnk_0864AA55:: @ 0864AA55 - .incbin "baserom.gba", 0x64AA55, 0x00041B3 - -gUnk_0864EC08:: @ 0864EC08 - .incbin "baserom.gba", 0x64EC08, 0x00013F9 - -gUnk_08650001:: @ 08650001 - .incbin "baserom.gba", 0x650001, 0x000000F - -gUnk_08650010:: @ 08650010 - .incbin "baserom.gba", 0x650010, 0x0000030 - -gUnk_08650040:: @ 08650040 - .incbin "baserom.gba", 0x650040, 0x0000100 - -gUnk_08650140:: @ 08650140 - .incbin "baserom.gba", 0x650140, 0x00002C0 - -gUnk_08650400:: @ 08650400 - .incbin "baserom.gba", 0x650400, 0x0000064 - -gUnk_08650464:: @ 08650464 - .incbin "baserom.gba", 0x650464, 0x000069C - -gUnk_08650B00:: @ 08650B00 - .incbin "baserom.gba", 0x650B00, 0x0000400 - -gUnk_08650F00:: @ 08650F00 - .incbin "baserom.gba", 0x650F00, 0x0000003 - -gUnk_08650F03:: @ 08650F03 - .incbin "baserom.gba", 0x650F03, 0x000131F - -gUnk_08652222:: @ 08652222 - .incbin "baserom.gba", 0x652222, 0x00009F6 - -gUnk_08652C18:: @ 08652C18 - .incbin "baserom.gba", 0x652C18, 0x00006FC - -gUnk_08653314:: @ 08653314 - .incbin "baserom.gba", 0x653314, 0x00004EC - -gUnk_08653800:: @ 08653800 - .incbin "baserom.gba", 0x653800, 0x0001E43 - -gUnk_08655643:: @ 08655643 - .incbin "baserom.gba", 0x655643, 0x0002017 - -gUnk_0865765A:: @ 0865765A - .incbin "baserom.gba", 0x65765A, 0x00017AA - -gUnk_08658E04:: @ 08658E04 - .incbin "baserom.gba", 0x658E04, 0x000581F - -gUnk_0865E623:: @ 0865E623 - .incbin "baserom.gba", 0x65E623, 0x00019DD - -gUnk_08660000:: @ 08660000 - .incbin "baserom.gba", 0x660000, 0x0000006 - -gUnk_08660006:: @ 08660006 - .incbin "baserom.gba", 0x660006, 0x00002FA - -gUnk_08660300:: @ 08660300 - .incbin "baserom.gba", 0x660300, 0x00002B7 - -gUnk_086605B7:: @ 086605B7 - .incbin "baserom.gba", 0x6605B7, 0x00002AF - -gUnk_08660866:: @ 08660866 - .incbin "baserom.gba", 0x660866, 0x00012AA - -gUnk_08661B10:: @ 08661B10 - .incbin "baserom.gba", 0x661B10, 0x0000400 - -gUnk_08661F10:: @ 08661F10 - .incbin "baserom.gba", 0x661F10, 0x0000972 - -gUnk_08662882:: @ 08662882 - .incbin "baserom.gba", 0x662882, 0x0000BC1 - -gUnk_08663443:: @ 08663443 - .incbin "baserom.gba", 0x663443, 0x0000F4D - -gUnk_08664390:: @ 08664390 - .incbin "baserom.gba", 0x664390, 0x000003C - -gUnk_086643CC:: @ 086643CC - .incbin "baserom.gba", 0x6643CC, 0x0000067 - -gUnk_08664433:: @ 08664433 - .incbin "baserom.gba", 0x664433, 0x0000F11 - -gUnk_08665344:: @ 08665344 - .incbin "baserom.gba", 0x665344, 0x0000223 - -gUnk_08665567:: @ 08665567 - .incbin "baserom.gba", 0x665567, 0x0000DCD - -gUnk_08666334:: @ 08666334 - .incbin "baserom.gba", 0x666334, 0x000021F - -gUnk_08666553:: @ 08666553 - .incbin "baserom.gba", 0x666553, 0x00000AE - -gUnk_08666601:: @ 08666601 - .incbin "baserom.gba", 0x666601, 0x0000021 - -gUnk_08666622:: @ 08666622 - .incbin "baserom.gba", 0x666622, 0x0000044 - -gUnk_08666666:: @ 08666666 - .incbin "baserom.gba", 0x666666, 0x0000117 - -gUnk_0866677D:: @ 0866677D - .incbin "baserom.gba", 0x66677D, 0x00000A6 - -gUnk_08666823:: @ 08666823 - .incbin "baserom.gba", 0x666823, 0x0000DF3 - -gUnk_08667616:: @ 08667616 - .incbin "baserom.gba", 0x667616, 0x0000151 - -gUnk_08667767:: @ 08667767 - .incbin "baserom.gba", 0x667767, 0x0000748 - -gUnk_08667EAF:: @ 08667EAF - .incbin "baserom.gba", 0x667EAF, 0x0000151 - -gUnk_08668000:: @ 08668000 - .incbin "baserom.gba", 0x668000, 0x0001999 - -gUnk_08669999:: @ 08669999 - .incbin "baserom.gba", 0x669999, 0x000056F - -gUnk_08669F08:: @ 08669F08 - .incbin "baserom.gba", 0x669F08, 0x0000541 - -gUnk_0866A449:: @ 0866A449 - .incbin "baserom.gba", 0x66A449, 0x000185C - -gUnk_0866BCA5:: @ 0866BCA5 - .incbin "baserom.gba", 0x66BCA5, 0x0000292 - -gUnk_0866BF37:: @ 0866BF37 - .incbin "baserom.gba", 0x66BF37, 0x00023CC - -gUnk_0866E303:: @ 0866E303 - .incbin "baserom.gba", 0x66E303, 0x0000F20 - -gUnk_0866F223:: @ 0866F223 - .incbin "baserom.gba", 0x66F223, 0x0000DDD - -gUnk_08670000:: @ 08670000 - .incbin "baserom.gba", 0x670000, 0x0000001 - -gUnk_08670001:: @ 08670001 - .incbin "baserom.gba", 0x670001, 0x0000001 - -gUnk_08670002:: @ 08670002 - .incbin "baserom.gba", 0x670002, 0x0000002 - -gUnk_08670004:: @ 08670004 - .incbin "baserom.gba", 0x670004, 0x0000002 - -gUnk_08670006:: @ 08670006 - .incbin "baserom.gba", 0x670006, 0x0000001 - -gUnk_08670007:: @ 08670007 - .incbin "baserom.gba", 0x670007, 0x0000001 - -gUnk_08670008:: @ 08670008 - .incbin "baserom.gba", 0x670008, 0x0000002 - -gUnk_0867000A:: @ 0867000A - .incbin "baserom.gba", 0x67000A, 0x0000001 - -gUnk_0867000B:: @ 0867000B - .incbin "baserom.gba", 0x67000B, 0x0000004 - -gUnk_0867000F:: @ 0867000F - .incbin "baserom.gba", 0x67000F, 0x0000001 - -gUnk_08670010:: @ 08670010 - .incbin "baserom.gba", 0x670010, 0x0000001 - -gUnk_08670011:: @ 08670011 - .incbin "baserom.gba", 0x670011, 0x0000003 - -gUnk_08670014:: @ 08670014 - .incbin "baserom.gba", 0x670014, 0x0000004 - -gUnk_08670018:: @ 08670018 - .incbin "baserom.gba", 0x670018, 0x0000024 - -gUnk_0867003C:: @ 0867003C - .incbin "baserom.gba", 0x67003C, 0x000005A - -gUnk_08670096:: @ 08670096 - .incbin "baserom.gba", 0x670096, 0x0000002 - -gUnk_08670098:: @ 08670098 - .incbin "baserom.gba", 0x670098, 0x0000128 - -gUnk_086701C0:: @ 086701C0 - .incbin "baserom.gba", 0x6701C0, 0x0000018 - -gUnk_086701D8:: @ 086701D8 - .incbin "baserom.gba", 0x6701D8, 0x0000020 - -gUnk_086701F8:: @ 086701F8 - .incbin "baserom.gba", 0x6701F8, 0x0000028 - -gUnk_08670220:: @ 08670220 - .incbin "baserom.gba", 0x670220, 0x0000138 - -gUnk_08670358:: @ 08670358 - .incbin "baserom.gba", 0x670358, 0x00000A9 - -gUnk_08670401:: @ 08670401 - .incbin "baserom.gba", 0x670401, 0x0000043 - -gUnk_08670444:: @ 08670444 - .incbin "baserom.gba", 0x670444, 0x0000015 - -gUnk_08670459:: @ 08670459 - .incbin "baserom.gba", 0x670459, 0x00003AE - -gUnk_08670807:: @ 08670807 - .incbin "baserom.gba", 0x670807, 0x0000B4F - -gUnk_08671356:: @ 08671356 - .incbin "baserom.gba", 0x671356, 0x0002875 - -gUnk_08673BCB:: @ 08673BCB - .incbin "baserom.gba", 0x673BCB, 0x0000036 - -gUnk_08673C01:: @ 08673C01 - .incbin "baserom.gba", 0x673C01, 0x0001495 - -gUnk_08675096:: @ 08675096 - .incbin "baserom.gba", 0x675096, 0x000016A - -gUnk_08675200:: @ 08675200 - .incbin "baserom.gba", 0x675200, 0x0003688 - -gUnk_08678888:: @ 08678888 - .incbin "baserom.gba", 0x678888, 0x000010F - -gUnk_08678997:: @ 08678997 - .incbin "baserom.gba", 0x678997, 0x0001960 - -gUnk_0867A2F7:: @ 0867A2F7 - .incbin "baserom.gba", 0x67A2F7, 0x0002C5C - -gUnk_0867CF53:: @ 0867CF53 - .incbin "baserom.gba", 0x67CF53, 0x00030AD - -gUnk_08680000:: @ 08680000 - .incbin "baserom.gba", 0x680000, 0x00000FF - -gUnk_086800FF:: @ 086800FF - .incbin "baserom.gba", 0x6800FF, 0x0000768 - -gUnk_08680867:: @ 08680867 - .incbin "baserom.gba", 0x680867, 0x0000001 - -gUnk_08680868:: @ 08680868 - .incbin "baserom.gba", 0x680868, 0x0004CEE - -gUnk_08685556:: @ 08685556 - .incbin "baserom.gba", 0x685556, 0x00032C9 - -gUnk_0868881F:: @ 0868881F - .incbin "baserom.gba", 0x68881F, 0x000004B - -gUnk_0868886A:: @ 0868886A - .incbin "baserom.gba", 0x68886A, 0x0007796 - -gUnk_08690000:: @ 08690000 - .incbin "baserom.gba", 0x690000, 0x0000868 - -gUnk_08690868:: @ 08690868 - .incbin "baserom.gba", 0x690868, 0x0000FDA - -gUnk_08691842:: @ 08691842 - .incbin "baserom.gba", 0x691842, 0x0000CF8 - -gUnk_0869253A:: @ 0869253A - .incbin "baserom.gba", 0x69253A, 0x0000040 - -gUnk_0869257A:: @ 0869257A - .incbin "baserom.gba", 0x69257A, 0x0000060 - -gUnk_086925DA:: @ 086925DA - .incbin "baserom.gba", 0x6925DA, 0x0000040 - -gUnk_0869261A:: @ 0869261A - .incbin "baserom.gba", 0x69261A, 0x0000086 - -gUnk_086926A0:: @ 086926A0 - .incbin "baserom.gba", 0x6926A0, 0x000001A - -gUnk_086926BA:: @ 086926BA - .incbin "baserom.gba", 0x6926BA, 0x0000090 - -gUnk_0869274A:: @ 0869274A - .incbin "baserom.gba", 0x69274A, 0x0000009 - -gUnk_08692753:: @ 08692753 - .incbin "baserom.gba", 0x692753, 0x0000006 - -gUnk_08692759:: @ 08692759 - .incbin "baserom.gba", 0x692759, 0x0000027 - -gUnk_08692780:: @ 08692780 - .incbin "baserom.gba", 0x692780, 0x00000E0 - -gUnk_08692860:: @ 08692860 - .incbin "baserom.gba", 0x692860, 0x00000E0 - -gUnk_08692940:: @ 08692940 - .incbin "baserom.gba", 0x692940, 0x00000E0 - -gUnk_08692A20:: @ 08692A20 - .incbin "baserom.gba", 0x692A20, 0x00000E0 - -gUnk_08692B00:: @ 08692B00 - .incbin "baserom.gba", 0x692B00, 0x00000E0 - -gUnk_08692BE0:: @ 08692BE0 - .incbin "baserom.gba", 0x692BE0, 0x00000E0 - -gUnk_08692CC0:: @ 08692CC0 - .incbin "baserom.gba", 0x692CC0, 0x00000E0 - -gUnk_08692DA0:: @ 08692DA0 - .incbin "baserom.gba", 0x692DA0, 0x0000062 - -gUnk_08692E02:: @ 08692E02 - .incbin "baserom.gba", 0x692E02, 0x000007E - -gUnk_08692E80:: @ 08692E80 - .incbin "baserom.gba", 0x692E80, 0x00000E0 - -gUnk_08692F60:: @ 08692F60 - .incbin "baserom.gba", 0x692F60, 0x0000BE9 - -gUnk_08693B49:: @ 08693B49 - .incbin "baserom.gba", 0x693B49, 0x00001F1 - -gUnk_08693D3A:: @ 08693D3A - .incbin "baserom.gba", 0x693D3A, 0x000014C - -gUnk_08693E86:: @ 08693E86 - .incbin "baserom.gba", 0x693E86, 0x00000C3 - -gUnk_08693F49:: @ 08693F49 - .incbin "baserom.gba", 0x693F49, 0x0001800 - -gUnk_08695749:: @ 08695749 - .incbin "baserom.gba", 0x695749, 0x0000347 - -gUnk_08695A90:: @ 08695A90 - .incbin "baserom.gba", 0x695A90, 0x0000383 - -gUnk_08695E13:: @ 08695E13 - .incbin "baserom.gba", 0x695E13, 0x0000327 - -gUnk_0869613A:: @ 0869613A - .incbin "baserom.gba", 0x69613A, 0x000007C - -gUnk_086961B6:: @ 086961B6 - .incbin "baserom.gba", 0x6961B6, 0x0000DAA - -gUnk_08696F60:: @ 08696F60 - .incbin "baserom.gba", 0x696F60, 0x0000980 - -gUnk_086978E0:: @ 086978E0 - .incbin "baserom.gba", 0x6978E0, 0x0000668 - -gUnk_08697F48:: @ 08697F48 - .incbin "baserom.gba", 0x697F48, 0x0001998 - -gUnk_086998E0:: @ 086998E0 - .incbin "baserom.gba", 0x6998E0, 0x0006720 - -gUnk_086A0000:: @ 086A0000 - .incbin "baserom.gba", 0x6A0000, 0x000141A - -gUnk_086A141A:: @ 086A141A - .incbin "baserom.gba", 0x6A141A, 0x00004C6 - -gUnk_086A18E0:: @ 086A18E0 - .incbin "baserom.gba", 0x6A18E0, 0x0001180 - -gUnk_086A2A60:: @ 086A2A60 - .incbin "baserom.gba", 0x6A2A60, 0x0000480 - -gUnk_086A2EE0:: @ 086A2EE0 - .incbin "baserom.gba", 0x6A2EE0, 0x0001423 - -gUnk_086A4303:: @ 086A4303 - .incbin "baserom.gba", 0x6A4303, 0x0000C03 - -gUnk_086A4F06:: @ 086A4F06 - .incbin "baserom.gba", 0x6A4F06, 0x000281C - -gUnk_086A7722:: @ 086A7722 - .incbin "baserom.gba", 0x6A7722, 0x0000268 - -gUnk_086A798A:: @ 086A798A - .incbin "baserom.gba", 0x6A798A, 0x0002DEE - -gUnk_086AA778:: @ 086AA778 - .incbin "baserom.gba", 0x6AA778, 0x00002F0 - -gUnk_086AAA68:: @ 086AAA68 - .incbin "baserom.gba", 0x6AAA68, 0x0000478 - -gUnk_086AAEE0:: @ 086AAEE0 - .incbin "baserom.gba", 0x6AAEE0, 0x0004EC7 - -gUnk_086AFDA7:: @ 086AFDA7 - .incbin "baserom.gba", 0x6AFDA7, 0x0000272 - -gUnk_086B0019:: @ 086B0019 - .incbin "baserom.gba", 0x6B0019, 0x000002C - -gUnk_086B0045:: @ 086B0045 - .incbin "baserom.gba", 0x6B0045, 0x00000C2 - -gUnk_086B0107:: @ 086B0107 - .incbin "baserom.gba", 0x6B0107, 0x0000763 - -gUnk_086B086A:: @ 086B086A - .incbin "baserom.gba", 0x6B086A, 0x0001070 - -gUnk_086B18DA:: @ 086B18DA - .incbin "baserom.gba", 0x6B18DA, 0x000028A - -gUnk_086B1B64:: @ 086B1B64 - .incbin "baserom.gba", 0x6B1B64, 0x00003AC - -gUnk_086B1F10:: @ 086B1F10 - .incbin "baserom.gba", 0x6B1F10, 0x0000F0D - -gUnk_086B2E1D:: @ 086B2E1D - .incbin "baserom.gba", 0x6B2E1D, 0x00073E9 - -gUnk_086BA206:: @ 086BA206 - .incbin "baserom.gba", 0x6BA206, 0x0005E00 - -gUnk_086C0006:: @ 086C0006 - .incbin "baserom.gba", 0x6C0006, 0x00046C2 - -gUnk_086C46C8:: @ 086C46C8 - .incbin "baserom.gba", 0x6C46C8, 0x00025A5 - -gUnk_086C6C6D:: @ 086C6C6D - .incbin "baserom.gba", 0x6C6C6D, 0x000605F - -gUnk_086CCCCC:: @ 086CCCCC - .incbin "baserom.gba", 0x6CCCCC, 0x0003336 - -gUnk_086D0002:: @ 086D0002 - .incbin "baserom.gba", 0x6D0002, 0x000001C - -gUnk_086D001E:: @ 086D001E - .incbin "baserom.gba", 0x6D001E, 0x000013B - -gUnk_086D0159:: @ 086D0159 - .incbin "baserom.gba", 0x6D0159, 0x0000013 - -gUnk_086D016C:: @ 086D016C - .incbin "baserom.gba", 0x6D016C, 0x0000300 - -gUnk_086D046C:: @ 086D046C - .incbin "baserom.gba", 0x6D046C, 0x000039A - -gUnk_086D0806:: @ 086D0806 - .incbin "baserom.gba", 0x6D0806, 0x000001D - -gUnk_086D0823:: @ 086D0823 - .incbin "baserom.gba", 0x6D0823, 0x0001CE5 - -gUnk_086D2508:: @ 086D2508 - .incbin "baserom.gba", 0x6D2508, 0x0001C1D - -gUnk_086D4125:: @ 086D4125 - .incbin "baserom.gba", 0x6D4125, 0x00002E2 - -gUnk_086D4407:: @ 086D4407 - .incbin "baserom.gba", 0x6D4407, 0x0000059 - -gUnk_086D4460:: @ 086D4460 - .incbin "baserom.gba", 0x6D4460, 0x0000BA4 - -gUnk_086D5004:: @ 086D5004 - .incbin "baserom.gba", 0x6D5004, 0x0008965 - -gUnk_086DD969:: @ 086DD969 - .incbin "baserom.gba", 0x6DD969, 0x0000456 - -gUnk_086DDDBF:: @ 086DDDBF - .incbin "baserom.gba", 0x6DDDBF, 0x0000007 - -gUnk_086DDDC6:: @ 086DDDC6 - .incbin "baserom.gba", 0x6DDDC6, 0x000223E - -gUnk_086E0004:: @ 086E0004 - .incbin "baserom.gba", 0x6E0004, 0x000000C - -gUnk_086E0010:: @ 086E0010 - .incbin "baserom.gba", 0x6E0010, 0x000005D - -gUnk_086E006D:: @ 086E006D - .incbin "baserom.gba", 0x6E006D, 0x0000013 - -gUnk_086E0080:: @ 086E0080 - .incbin "baserom.gba", 0x6E0080, 0x0000080 - -gUnk_086E0100:: @ 086E0100 - .incbin "baserom.gba", 0x6E0100, 0x0000359 - -gUnk_086E0459:: @ 086E0459 - .incbin "baserom.gba", 0x6E0459, 0x0000414 - -gUnk_086E086D:: @ 086E086D - .incbin "baserom.gba", 0x6E086D, 0x000001D - -gUnk_086E088A:: @ 086E088A - .incbin "baserom.gba", 0x6E088A, 0x0001755 - -gUnk_086E1FDF:: @ 086E1FDF - .incbin "baserom.gba", 0x6E1FDF, 0x0000E23 - -gUnk_086E2E02:: @ 086E2E02 - .incbin "baserom.gba", 0x6E2E02, 0x000166D - -gUnk_086E446F:: @ 086E446F - .incbin "baserom.gba", 0x6E446F, 0x0000259 - -gUnk_086E46C8:: @ 086E46C8 - .incbin "baserom.gba", 0x6E46C8, 0x0003D98 - -gUnk_086E8460:: @ 086E8460 - .incbin "baserom.gba", 0x6E8460, 0x0007BA1 - -gUnk_086F0001:: @ 086F0001 - .incbin "baserom.gba", 0x6F0001, 0x0000001 - -gUnk_086F0002:: @ 086F0002 - .incbin "baserom.gba", 0x6F0002, 0x000001E - -gUnk_086F0020:: @ 086F0020 - .incbin "baserom.gba", 0x6F0020, 0x00000F0 - -gUnk_086F0110:: @ 086F0110 - .incbin "baserom.gba", 0x6F0110, 0x000000C - -gUnk_086F011C:: @ 086F011C - .incbin "baserom.gba", 0x6F011C, 0x000007E - -gUnk_086F019A:: @ 086F019A - .incbin "baserom.gba", 0x6F019A, 0x0000069 - -gUnk_086F0203:: @ 086F0203 - .incbin "baserom.gba", 0x6F0203, 0x00005FD - -gUnk_086F0800:: @ 086F0800 - .incbin "baserom.gba", 0x6F0800, 0x000001B - -gUnk_086F081B:: @ 086F081B - .incbin "baserom.gba", 0x6F081B, 0x00006EB - -gUnk_086F0F06:: @ 086F0F06 - .incbin "baserom.gba", 0x6F0F06, 0x00001AF - -gUnk_086F10B5:: @ 086F10B5 - .incbin "baserom.gba", 0x6F10B5, 0x000094A - -gUnk_086F19FF:: @ 086F19FF - .incbin "baserom.gba", 0x6F19FF, 0x0000C01 - -gUnk_086F2600:: @ 086F2600 - .incbin "baserom.gba", 0x6F2600, 0x000B121 - -gUnk_086FD721:: @ 086FD721 - .incbin "baserom.gba", 0x6FD721, 0x000238E - -gUnk_086FFAAF:: @ 086FFAAF - .incbin "baserom.gba", 0x6FFAAF, 0x0000551 - -gUnk_08700000:: @ 08700000 - .incbin "baserom.gba", 0x700000, 0x0000001 - -gUnk_08700001:: @ 08700001 - .incbin "baserom.gba", 0x700001, 0x0000003 - -gUnk_08700004:: @ 08700004 - .incbin "baserom.gba", 0x700004, 0x0000002 - -gUnk_08700006:: @ 08700006 - .incbin "baserom.gba", 0x700006, 0x000002A - -gUnk_08700030:: @ 08700030 - .incbin "baserom.gba", 0x700030, 0x000000C - -gUnk_0870003C:: @ 0870003C - .incbin "baserom.gba", 0x70003C, 0x00001C4 - -gUnk_08700200:: @ 08700200 - .incbin "baserom.gba", 0x700200, 0x0000051 - -gUnk_08700251:: @ 08700251 - .incbin "baserom.gba", 0x700251, 0x000019F - -gUnk_087003F0:: @ 087003F0 - .incbin "baserom.gba", 0x7003F0, 0x0000240 - -gUnk_08700630:: @ 08700630 - .incbin "baserom.gba", 0x700630, 0x00002C0 - -gUnk_087008F0:: @ 087008F0 - .incbin "baserom.gba", 0x7008F0, 0x00000D0 - -gUnk_087009C0:: @ 087009C0 - .incbin "baserom.gba", 0x7009C0, 0x0000119 - -gUnk_08700AD9:: @ 08700AD9 - .incbin "baserom.gba", 0x700AD9, 0x00000C7 - -gUnk_08700BA0:: @ 08700BA0 - .incbin "baserom.gba", 0x700BA0, 0x0001BD0 - -gUnk_08702770:: @ 08702770 - .incbin "baserom.gba", 0x702770, 0x00053AB - -gUnk_08707B1B:: @ 08707B1B - .incbin "baserom.gba", 0x707B1B, 0x00011EB - -gUnk_08708D06:: @ 08708D06 - .incbin "baserom.gba", 0x708D06, 0x000110B - -gUnk_08709E11:: @ 08709E11 - .incbin "baserom.gba", 0x709E11, 0x0002FF6 - -gUnk_0870CE07:: @ 0870CE07 - .incbin "baserom.gba", 0x70CE07, 0x00031F9 - -gUnk_08710000:: @ 08710000 - .incbin "baserom.gba", 0x710000, 0x0000020 - -gUnk_08710020:: @ 08710020 - .incbin "baserom.gba", 0x710020, 0x000001C - -gUnk_0871003C:: @ 0871003C - .incbin "baserom.gba", 0x71003C, 0x0000004 - -gUnk_08710040:: @ 08710040 - .incbin "baserom.gba", 0x710040, 0x00000DC - -gUnk_0871011C:: @ 0871011C - .incbin "baserom.gba", 0x71011C, 0x0000045 - -gUnk_08710161:: @ 08710161 - .incbin "baserom.gba", 0x710161, 0x000029F - -gUnk_08710400:: @ 08710400 - .incbin "baserom.gba", 0x710400, 0x0000091 - -gUnk_08710491:: @ 08710491 - .incbin "baserom.gba", 0x710491, 0x000026F - -gUnk_08710700:: @ 08710700 - .incbin "baserom.gba", 0x710700, 0x0000070 - -gUnk_08710770:: @ 08710770 - .incbin "baserom.gba", 0x710770, 0x0001811 - -gUnk_08711F81:: @ 08711F81 - .incbin "baserom.gba", 0x711F81, 0x00007F0 - -gUnk_08712771:: @ 08712771 - .incbin "baserom.gba", 0x712771, 0x00027A0 - -gUnk_08714F11:: @ 08714F11 - .incbin "baserom.gba", 0x714F11, 0x0003277 - -gUnk_08718188:: @ 08718188 - .incbin "baserom.gba", 0x718188, 0x0007E81 - -gUnk_08720009:: @ 08720009 - .incbin "baserom.gba", 0x720009, 0x00000FE - -gUnk_08720107:: @ 08720107 - .incbin "baserom.gba", 0x720107, 0x000016A - -gUnk_08720271:: @ 08720271 - .incbin "baserom.gba", 0x720271, 0x000048F - -gUnk_08720700:: @ 08720700 - .incbin "baserom.gba", 0x720700, 0x000014E - -gUnk_0872084E:: @ 0872084E - .incbin "baserom.gba", 0x72084E, 0x000048C - -gUnk_08720CDA:: @ 08720CDA - .incbin "baserom.gba", 0x720CDA, 0x000154B - -gUnk_08722225:: @ 08722225 - .incbin "baserom.gba", 0x722225, 0x000DDE2 - -gUnk_08730007:: @ 08730007 - .incbin "baserom.gba", 0x730007, 0x00001E9 - -gUnk_087301F0:: @ 087301F0 - .incbin "baserom.gba", 0x7301F0, 0x0000520 - -gUnk_08730710:: @ 08730710 - .incbin "baserom.gba", 0x730710, 0x0000063 - -gUnk_08730773:: @ 08730773 - .incbin "baserom.gba", 0x730773, 0x00020A0 - -gUnk_08732813:: @ 08732813 - .incbin "baserom.gba", 0x732813, 0x00006C1 - -gUnk_08732ED4:: @ 08732ED4 - .incbin "baserom.gba", 0x732ED4, 0x00021B6 - -gUnk_0873508A:: @ 0873508A - .incbin "baserom.gba", 0x73508A, 0x000AF86 - -gUnk_08740010:: @ 08740010 - .incbin "baserom.gba", 0x740010, 0x0000760 - -gUnk_08740770:: @ 08740770 - .incbin "baserom.gba", 0x740770, 0x0000200 - -gUnk_08740970:: @ 08740970 - .incbin "baserom.gba", 0x740970, 0x0000326 - -gUnk_08740C96:: @ 08740C96 - .incbin "baserom.gba", 0x740C96, 0x0003695 - -gUnk_0874432B:: @ 0874432B - .incbin "baserom.gba", 0x74432B, 0x0000118 - -gUnk_08744443:: @ 08744443 - .incbin "baserom.gba", 0x744443, 0x00001C0 - -gUnk_08744603:: @ 08744603 - .incbin "baserom.gba", 0x744603, 0x00065CA - -gUnk_0874ABCD:: @ 0874ABCD - .incbin "baserom.gba", 0x74ABCD, 0x000543B - -gUnk_08750008:: @ 08750008 - .incbin "baserom.gba", 0x750008, 0x00002F8 - -gUnk_08750300:: @ 08750300 - .incbin "baserom.gba", 0x750300, 0x0000074 - -gUnk_08750374:: @ 08750374 - .incbin "baserom.gba", 0x750374, 0x000048F - -gUnk_08750803:: @ 08750803 - .incbin "baserom.gba", 0x750803, 0x0000703 - -gUnk_08750F06:: @ 08750F06 - .incbin "baserom.gba", 0x750F06, 0x000344E - -gUnk_08754354:: @ 08754354 - .incbin "baserom.gba", 0x754354, 0x0000756 - -gUnk_08754AAA:: @ 08754AAA - .incbin "baserom.gba", 0x754AAA, 0x000C45C - -gUnk_08760F06:: @ 08760F06 - .incbin "baserom.gba", 0x760F06, 0x000120B - -gUnk_08762111:: @ 08762111 - .incbin "baserom.gba", 0x762111, 0x00015FB - -gUnk_0876370C:: @ 0876370C - .incbin "baserom.gba", 0x76370C, 0x00009C4 - -gUnk_087640D0:: @ 087640D0 - .incbin "baserom.gba", 0x7640D0, 0x0000496 - -gUnk_08764566:: @ 08764566 - .incbin "baserom.gba", 0x764566, 0x0000CC5 - -gUnk_0876522B:: @ 0876522B - .incbin "baserom.gba", 0x76522B, 0x000032B - -gUnk_08765556:: @ 08765556 - .incbin "baserom.gba", 0x765556, 0x0001110 - -gUnk_08766666:: @ 08766666 - .incbin "baserom.gba", 0x766666, 0x0000020 - -gUnk_08766686:: @ 08766686 - .incbin "baserom.gba", 0x766686, 0x0000021 - -gUnk_087666A7:: @ 087666A7 - .incbin "baserom.gba", 0x7666A7, 0x00008FA - -gUnk_08766FA1:: @ 08766FA1 - .incbin "baserom.gba", 0x766FA1, 0x0005D23 - -gUnk_0876CCC4:: @ 0876CCC4 - .incbin "baserom.gba", 0x76CCC4, 0x000110B - -gUnk_0876DDCF:: @ 0876DDCF - .incbin "baserom.gba", 0x76DDCF, 0x0002242 - -gUnk_08770011:: @ 08770011 - .incbin "baserom.gba", 0x770011, 0x00000A8 - -gUnk_087700B9:: @ 087700B9 - .incbin "baserom.gba", 0x7700B9, 0x0000287 - -gUnk_08770340:: @ 08770340 - .incbin "baserom.gba", 0x770340, 0x00000E2 - -gUnk_08770422:: @ 08770422 - .incbin "baserom.gba", 0x770422, 0x0000154 - -gUnk_08770576:: @ 08770576 - .incbin "baserom.gba", 0x770576, 0x0000300 - -gUnk_08770876:: @ 08770876 - .incbin "baserom.gba", 0x770876, 0x0000791 - -gUnk_08771007:: @ 08771007 - .incbin "baserom.gba", 0x771007, 0x000006E - -gUnk_08771075:: @ 08771075 - .incbin "baserom.gba", 0x771075, 0x0000B8B - -gUnk_08771C00:: @ 08771C00 - .incbin "baserom.gba", 0x771C00, 0x0005775 - -gUnk_08777375:: @ 08777375 - .incbin "baserom.gba", 0x777375, 0x00003F0 - -gUnk_08777765:: @ 08777765 - .incbin "baserom.gba", 0x777765, 0x0000011 - -gUnk_08777776:: @ 08777776 - .incbin "baserom.gba", 0x777776, 0x0000012 - -gUnk_08777788:: @ 08777788 - .incbin "baserom.gba", 0x777788, 0x0000877 - -gUnk_08777FFF:: @ 08777FFF - .incbin "baserom.gba", 0x777FFF, 0x0000067 - -gUnk_08778066:: @ 08778066 - .incbin "baserom.gba", 0x778066, 0x0000703 - -gUnk_08778769:: @ 08778769 - .incbin "baserom.gba", 0x778769, 0x0000E2C - -gUnk_08779595:: @ 08779595 - .incbin "baserom.gba", 0x779595, 0x000148E - -gUnk_0877AA23:: @ 0877AA23 - .incbin "baserom.gba", 0x77AA23, 0x0000017 - -gUnk_0877AA3A:: @ 0877AA3A - .incbin "baserom.gba", 0x77AA3A, 0x0000190 - -gUnk_0877ABCA:: @ 0877ABCA - .incbin "baserom.gba", 0x77ABCA, 0x0000537 - -gUnk_0877B101:: @ 0877B101 - .incbin "baserom.gba", 0x77B101, 0x000290E - -gUnk_0877DA0F:: @ 0877DA0F - .incbin "baserom.gba", 0x77DA0F, 0x0002649 - -gUnk_08780058:: @ 08780058 - .incbin "baserom.gba", 0x780058, 0x00000E8 - -gUnk_08780140:: @ 08780140 - .incbin "baserom.gba", 0x780140, 0x0000836 - -gUnk_08780976:: @ 08780976 - .incbin "baserom.gba", 0x780976, 0x000018A - -gUnk_08780B00:: @ 08780B00 - .incbin "baserom.gba", 0x780B00, 0x0006410 - -gUnk_08786F10:: @ 08786F10 - .incbin "baserom.gba", 0x786F10, 0x0000919 - -gUnk_08787829:: @ 08787829 - .incbin "baserom.gba", 0x787829, 0x000084E - -gUnk_08788077:: @ 08788077 - .incbin "baserom.gba", 0x788077, 0x00001CF - -gUnk_08788246:: @ 08788246 - .incbin "baserom.gba", 0x788246, 0x0001375 - -gUnk_087895BB:: @ 087895BB - .incbin "baserom.gba", 0x7895BB, 0x0000933 - -gUnk_08789EEE:: @ 08789EEE - .incbin "baserom.gba", 0x789EEE, 0x000610A - -gUnk_0878FFF8:: @ 0878FFF8 - .incbin "baserom.gba", 0x78FFF8, 0x0000008 - -gUnk_08790000:: @ 08790000 - .incbin "baserom.gba", 0x790000, 0x0000001 - -gUnk_08790001:: @ 08790001 - .incbin "baserom.gba", 0x790001, 0x0000001 - -gUnk_08790002:: @ 08790002 - .incbin "baserom.gba", 0x790002, 0x0000001 - -gUnk_08790003:: @ 08790003 - .incbin "baserom.gba", 0x790003, 0x0000001 - -gUnk_08790004:: @ 08790004 - .incbin "baserom.gba", 0x790004, 0x0000002 - -gUnk_08790006:: @ 08790006 - .incbin "baserom.gba", 0x790006, 0x0000001 - -gUnk_08790007:: @ 08790007 - .incbin "baserom.gba", 0x790007, 0x0000001 - -gUnk_08790008:: @ 08790008 - .incbin "baserom.gba", 0x790008, 0x0000002 - -gUnk_0879000A:: @ 0879000A - .incbin "baserom.gba", 0x79000A, 0x0000001 - -gUnk_0879000B:: @ 0879000B - .incbin "baserom.gba", 0x79000B, 0x0000004 - -gUnk_0879000F:: @ 0879000F - .incbin "baserom.gba", 0x79000F, 0x0000001 - -gUnk_08790010:: @ 08790010 - .incbin "baserom.gba", 0x790010, 0x0000003 - -gUnk_08790013:: @ 08790013 - .incbin "baserom.gba", 0x790013, 0x0000007 - -gUnk_0879001A:: @ 0879001A - .incbin "baserom.gba", 0x79001A, 0x0000004 - -gUnk_0879001E:: @ 0879001E - .incbin "baserom.gba", 0x79001E, 0x0000002 - -gUnk_08790020:: @ 08790020 - .incbin "baserom.gba", 0x790020, 0x000000C - -gUnk_0879002C:: @ 0879002C - .incbin "baserom.gba", 0x79002C, 0x0000010 - -gUnk_0879003C:: @ 0879003C - .incbin "baserom.gba", 0x79003C, 0x0000004 - -gUnk_08790040:: @ 08790040 - .incbin "baserom.gba", 0x790040, 0x0000008 - -gUnk_08790048:: @ 08790048 - .incbin "baserom.gba", 0x790048, 0x000000C - -gUnk_08790054:: @ 08790054 - .incbin "baserom.gba", 0x790054, 0x0000004 - -gUnk_08790058:: @ 08790058 - .incbin "baserom.gba", 0x790058, 0x0000002 - -gUnk_0879005A:: @ 0879005A - .incbin "baserom.gba", 0x79005A, 0x000000E - -gUnk_08790068:: @ 08790068 - .incbin "baserom.gba", 0x790068, 0x0000004 - -gUnk_0879006C:: @ 0879006C - .incbin "baserom.gba", 0x79006C, 0x000000C - -gUnk_08790078:: @ 08790078 - .incbin "baserom.gba", 0x790078, 0x0000008 - -gUnk_08790080:: @ 08790080 - .incbin "baserom.gba", 0x790080, 0x0000002 - -gUnk_08790082:: @ 08790082 - .incbin "baserom.gba", 0x790082, 0x000000A - -gUnk_0879008C:: @ 0879008C - .incbin "baserom.gba", 0x79008C, 0x0000009 - -gUnk_08790095:: @ 08790095 - .incbin "baserom.gba", 0x790095, 0x0000001 - -gUnk_08790096:: @ 08790096 - .incbin "baserom.gba", 0x790096, 0x0000022 - -gUnk_087900B8:: @ 087900B8 - .incbin "baserom.gba", 0x7900B8, 0x0000018 - -gUnk_087900D0:: @ 087900D0 - .incbin "baserom.gba", 0x7900D0, 0x0000019 - -gUnk_087900E9:: @ 087900E9 - .incbin "baserom.gba", 0x7900E9, 0x0000007 - -gUnk_087900F0:: @ 087900F0 - .incbin "baserom.gba", 0x7900F0, 0x0000001 - -gUnk_087900F1:: @ 087900F1 - .incbin "baserom.gba", 0x7900F1, 0x000000F - -gUnk_08790100:: @ 08790100 - .incbin "baserom.gba", 0x790100, 0x0000007 - -gUnk_08790107:: @ 08790107 - .incbin "baserom.gba", 0x790107, 0x000000A - -gUnk_08790111:: @ 08790111 - .incbin "baserom.gba", 0x790111, 0x000002F - -gUnk_08790140:: @ 08790140 - .incbin "baserom.gba", 0x790140, 0x0000040 - -gUnk_08790180:: @ 08790180 - .incbin "baserom.gba", 0x790180, 0x0000008 - -gUnk_08790188:: @ 08790188 - .incbin "baserom.gba", 0x790188, 0x0000008 - -gUnk_08790190:: @ 08790190 - .incbin "baserom.gba", 0x790190, 0x0000039 - -gUnk_087901C9:: @ 087901C9 - .incbin "baserom.gba", 0x7901C9, 0x000002A - -gUnk_087901F3:: @ 087901F3 - .incbin "baserom.gba", 0x7901F3, 0x000000D - -gUnk_08790200:: @ 08790200 - .incbin "baserom.gba", 0x790200, 0x0000201 - -gUnk_08790401:: @ 08790401 - .incbin "baserom.gba", 0x790401, 0x0000001 - -gUnk_08790402:: @ 08790402 - .incbin "baserom.gba", 0x790402, 0x0000041 - -gUnk_08790443:: @ 08790443 - .incbin "baserom.gba", 0x790443, 0x0000001 - -gUnk_08790444:: @ 08790444 - .incbin "baserom.gba", 0x790444, 0x0000006 - -gUnk_0879044A:: @ 0879044A - .incbin "baserom.gba", 0x79044A, 0x0000009 - -gUnk_08790453:: @ 08790453 - .incbin "baserom.gba", 0x790453, 0x0000006 - -gUnk_08790459:: @ 08790459 - .incbin "baserom.gba", 0x790459, 0x000000A - -gUnk_08790463:: @ 08790463 - .incbin "baserom.gba", 0x790463, 0x0000001 - -gUnk_08790464:: @ 08790464 - .incbin "baserom.gba", 0x790464, 0x0000024 - -gUnk_08790488:: @ 08790488 - .incbin "baserom.gba", 0x790488, 0x0000378 - -gUnk_08790800:: @ 08790800 - .incbin "baserom.gba", 0x790800, 0x0000001 - -gUnk_08790801:: @ 08790801 - .incbin "baserom.gba", 0x790801, 0x0000004 - -gUnk_08790805:: @ 08790805 - .incbin "baserom.gba", 0x790805, 0x0000001 - -gUnk_08790806:: @ 08790806 - .incbin "baserom.gba", 0x790806, 0x0000001 - -gUnk_08790807:: @ 08790807 - .incbin "baserom.gba", 0x790807, 0x0000003 - -gUnk_0879080A:: @ 0879080A - .incbin "baserom.gba", 0x79080A, 0x0000003 - -gUnk_0879080D:: @ 0879080D - .incbin "baserom.gba", 0x79080D, 0x0000002 - -gUnk_0879080F:: @ 0879080F - .incbin "baserom.gba", 0x79080F, 0x0000ABA - -gUnk_087912C9:: @ 087912C9 - .incbin "baserom.gba", 0x7912C9, 0x0000957 - -gUnk_08791C20:: @ 08791C20 - .incbin "baserom.gba", 0x791C20, 0x00023E0 - -gUnk_08794000:: @ 08794000 - .incbin "baserom.gba", 0x794000, 0x0000107 - -gUnk_08794107:: @ 08794107 - .incbin "baserom.gba", 0x794107, 0x0000FF9 - -gUnk_08795100:: @ 08795100 - .incbin "baserom.gba", 0x795100, 0x0001000 - -gUnk_08796100:: @ 08796100 - .incbin "baserom.gba", 0x796100, 0x0001879 - -gUnk_08797979:: @ 08797979 - .incbin "baserom.gba", 0x797979, 0x0000687 - -gUnk_08798000:: @ 08798000 - .incbin "baserom.gba", 0x798000, 0x0001992 - -gUnk_08799992:: @ 08799992 - .incbin "baserom.gba", 0x799992, 0x000008E - -gUnk_08799A20:: @ 08799A20 - .incbin "baserom.gba", 0x799A20, 0x00064DE - -gUnk_0879FEFE:: @ 0879FEFE - .incbin "baserom.gba", 0x79FEFE, 0x00000BA - -gUnk_0879FFB8:: @ 0879FFB8 - .incbin "baserom.gba", 0x79FFB8, 0x0000004 - -gUnk_0879FFBC:: @ 0879FFBC - .incbin "baserom.gba", 0x79FFBC, 0x0000010 - -gUnk_0879FFCC:: @ 0879FFCC - .incbin "baserom.gba", 0x79FFCC, 0x0000004 - -gUnk_0879FFD0:: @ 0879FFD0 - .incbin "baserom.gba", 0x79FFD0, 0x0000010 - -gUnk_0879FFE0:: @ 0879FFE0 - .incbin "baserom.gba", 0x79FFE0, 0x0000006 - -gUnk_0879FFE6:: @ 0879FFE6 - .incbin "baserom.gba", 0x79FFE6, 0x0000002 - -gUnk_0879FFE8:: @ 0879FFE8 - .incbin "baserom.gba", 0x79FFE8, 0x0000008 - -gUnk_0879FFF0:: @ 0879FFF0 - .incbin "baserom.gba", 0x79FFF0, 0x0000008 - -gUnk_0879FFF8:: @ 0879FFF8 - .incbin "baserom.gba", 0x79FFF8, 0x0000002 - -gUnk_0879FFFA:: @ 0879FFFA - .incbin "baserom.gba", 0x79FFFA, 0x0000005 - -gUnk_0879FFFF:: @ 0879FFFF - .incbin "baserom.gba", 0x79FFFF, 0x000007A - -gUnk_087A0079:: @ 087A0079 - .incbin "baserom.gba", 0x7A0079, 0x0001650 - -gUnk_087A16C9:: @ 087A16C9 - .incbin "baserom.gba", 0x7A16C9, 0x000A940 - -gUnk_087AC009:: @ 087AC009 - .incbin "baserom.gba", 0x7AC009, 0x0000DD4 - -gUnk_087ACDDD:: @ 087ACDDD - .incbin "baserom.gba", 0x7ACDDD, 0x0003223 - -gUnk_087B0000:: @ 087B0000 - .incbin "baserom.gba", 0x7B0000, 0x0000002 - -gUnk_087B0002:: @ 087B0002 - .incbin "baserom.gba", 0x7B0002, 0x0000002 - -gUnk_087B0004:: @ 087B0004 - .incbin "baserom.gba", 0x7B0004, 0x0000001 - -gUnk_087B0005:: @ 087B0005 - .incbin "baserom.gba", 0x7B0005, 0x0000002 - -gUnk_087B0007:: @ 087B0007 - .incbin "baserom.gba", 0x7B0007, 0x0000001 - -gUnk_087B0008:: @ 087B0008 - .incbin "baserom.gba", 0x7B0008, 0x0000001 - -gUnk_087B0009:: @ 087B0009 - .incbin "baserom.gba", 0x7B0009, 0x0000006 - -gUnk_087B000F:: @ 087B000F - .incbin "baserom.gba", 0x7B000F, 0x0000001 - -gUnk_087B0010:: @ 087B0010 - .incbin "baserom.gba", 0x7B0010, 0x0000002 - -gUnk_087B0012:: @ 087B0012 - .incbin "baserom.gba", 0x7B0012, 0x0000002 - -gUnk_087B0014:: @ 087B0014 - .incbin "baserom.gba", 0x7B0014, 0x0000002 - -gUnk_087B0016:: @ 087B0016 - .incbin "baserom.gba", 0x7B0016, 0x0000008 - -gUnk_087B001E:: @ 087B001E - .incbin "baserom.gba", 0x7B001E, 0x000000A - -gUnk_087B0028:: @ 087B0028 - .incbin "baserom.gba", 0x7B0028, 0x0000008 - -gUnk_087B0030:: @ 087B0030 - .incbin "baserom.gba", 0x7B0030, 0x000000C - -gUnk_087B003C:: @ 087B003C - .incbin "baserom.gba", 0x7B003C, 0x0000038 - -gUnk_087B0074:: @ 087B0074 - .incbin "baserom.gba", 0x7B0074, 0x0000004 - -gUnk_087B0078:: @ 087B0078 - .incbin "baserom.gba", 0x7B0078, 0x000001E - -gUnk_087B0096:: @ 087B0096 - .incbin "baserom.gba", 0x7B0096, 0x0000022 - -gUnk_087B00B8:: @ 087B00B8 - .incbin "baserom.gba", 0x7B00B8, 0x0000040 - -gUnk_087B00F8:: @ 087B00F8 - .incbin "baserom.gba", 0x7B00F8, 0x0000019 - -gUnk_087B0111:: @ 087B0111 - .incbin "baserom.gba", 0x7B0111, 0x000002B - -gUnk_087B013C:: @ 087B013C - .incbin "baserom.gba", 0x7B013C, 0x0000004 - -gUnk_087B0140:: @ 087B0140 - .incbin "baserom.gba", 0x7B0140, 0x0000087 - -gUnk_087B01C7:: @ 087B01C7 - .incbin "baserom.gba", 0x7B01C7, 0x00000B3 - -gUnk_087B027A:: @ 087B027A - .incbin "baserom.gba", 0x7B027A, 0x0000187 - -gUnk_087B0401:: @ 087B0401 - .incbin "baserom.gba", 0x7B0401, 0x0000001 - -gUnk_087B0402:: @ 087B0402 - .incbin "baserom.gba", 0x7B0402, 0x0000035 - -gUnk_087B0437:: @ 087B0437 - .incbin "baserom.gba", 0x7B0437, 0x0000008 - -gUnk_087B043F:: @ 087B043F - .incbin "baserom.gba", 0x7B043F, 0x000003F - -gUnk_087B047E:: @ 087B047E - .incbin "baserom.gba", 0x7B047E, 0x0000170 - -gUnk_087B05EE:: @ 087B05EE - .incbin "baserom.gba", 0x7B05EE, 0x0000212 - -gUnk_087B0800:: @ 087B0800 - .incbin "baserom.gba", 0x7B0800, 0x0000001 - -gUnk_087B0801:: @ 087B0801 - .incbin "baserom.gba", 0x7B0801, 0x0000003 - -gUnk_087B0804:: @ 087B0804 - .incbin "baserom.gba", 0x7B0804, 0x0000002 - -gUnk_087B0806:: @ 087B0806 - .incbin "baserom.gba", 0x7B0806, 0x0000001 - -gUnk_087B0807:: @ 087B0807 - .incbin "baserom.gba", 0x7B0807, 0x0000002 - -gUnk_087B0809:: @ 087B0809 - .incbin "baserom.gba", 0x7B0809, 0x000002A - -gUnk_087B0833:: @ 087B0833 - .incbin "baserom.gba", 0x7B0833, 0x0000047 - -gUnk_087B087A:: @ 087B087A - .incbin "baserom.gba", 0x7B087A, 0x0000ABE - -gUnk_087B1338:: @ 087B1338 - .incbin "baserom.gba", 0x7B1338, 0x0004EC5 - -gUnk_087B61FD:: @ 087B61FD - .incbin "baserom.gba", 0x7B61FD, 0x0006BE1 - -gUnk_087BCDDE:: @ 087BCDDE - .incbin "baserom.gba", 0x7BCDDE, 0x00020FF - -gUnk_087BEEDD:: @ 087BEEDD - .incbin "baserom.gba", 0x7BEEDD, 0x0001123 - -gUnk_087C0000:: @ 087C0000 - .incbin "baserom.gba", 0x7C0000, 0x0000004 - -gUnk_087C0004:: @ 087C0004 - .incbin "baserom.gba", 0x7C0004, 0x0000038 - -gUnk_087C003C:: @ 087C003C - .incbin "baserom.gba", 0x7C003C, 0x0000104 - -gUnk_087C0140:: @ 087C0140 - .incbin "baserom.gba", 0x7C0140, 0x00002C1 - -gUnk_087C0401:: @ 087C0401 - .incbin "baserom.gba", 0x7C0401, 0x0000036 - -gUnk_087C0437:: @ 087C0437 - .incbin "baserom.gba", 0x7C0437, 0x000000D - -gUnk_087C0444:: @ 087C0444 - .incbin "baserom.gba", 0x7C0444, 0x0000005 - -gUnk_087C0449:: @ 087C0449 - .incbin "baserom.gba", 0x7C0449, 0x0000010 - -gUnk_087C0459:: @ 087C0459 - .incbin "baserom.gba", 0x7C0459, 0x0000025 - -gUnk_087C047E:: @ 087C047E - .incbin "baserom.gba", 0x7C047E, 0x0000292 - -gUnk_087C0710:: @ 087C0710 - .incbin "baserom.gba", 0x7C0710, 0x0000024 - -gUnk_087C0734:: @ 087C0734 - .incbin "baserom.gba", 0x7C0734, 0x00000D1 - -gUnk_087C0805:: @ 087C0805 - .incbin "baserom.gba", 0x7C0805, 0x0000076 - -gUnk_087C087B:: @ 087C087B - .incbin "baserom.gba", 0x7C087B, 0x000F74F - -gUnk_087CFFCA:: @ 087CFFCA - .incbin "baserom.gba", 0x7CFFCA, 0x0000030 - -gUnk_087CFFFA:: @ 087CFFFA - .incbin "baserom.gba", 0x7CFFFA, 0x0006683 - -gUnk_087D667D:: @ 087D667D - .incbin "baserom.gba", 0x7D667D, 0x0002614 - -gUnk_087D8C91:: @ 087D8C91 - .incbin "baserom.gba", 0x7D8C91, 0x000739D - -gUnk_087E002E:: @ 087E002E - .incbin "baserom.gba", 0x7E002E, 0x00006D2 - -gUnk_087E0700:: @ 087E0700 - .incbin "baserom.gba", 0x7E0700, 0x0000598 - -gUnk_087E0C98:: @ 087E0C98 - .incbin "baserom.gba", 0x7E0C98, 0x000095B - -gUnk_087E15F3:: @ 087E15F3 - .incbin "baserom.gba", 0x7E15F3, 0x000A6BF - -gUnk_087EBCB2:: @ 087EBCB2 - .incbin "baserom.gba", 0x7EBCB2, 0x000323C - -gUnk_087EEEEE:: @ 087EEEEE - .incbin "baserom.gba", 0x7EEEEE, 0x000112A - -gUnk_087F0018:: @ 087F0018 - .incbin "baserom.gba", 0x7F0018, 0x0000064 - -gUnk_087F007C:: @ 087F007C - .incbin "baserom.gba", 0x7F007C, 0x0000260 - -gUnk_087F02DC:: @ 087F02DC - .incbin "baserom.gba", 0x7F02DC, 0x0000824 - -gUnk_087F0B00:: @ 087F0B00 - .incbin "baserom.gba", 0x7F0B00, 0x0000422 - -gUnk_087F0F22:: @ 087F0F22 - .incbin "baserom.gba", 0x7F0F22, 0x0000067 - -gUnk_087F0F89:: @ 087F0F89 - .incbin "baserom.gba", 0x7F0F89, 0x00000F6 - -gUnk_087F107F:: @ 087F107F - .incbin "baserom.gba", 0x7F107F, 0x0000020 - -gUnk_087F109F:: @ 087F109F - .incbin "baserom.gba", 0x7F109F, 0x0000003 - -gUnk_087F10A2:: @ 087F10A2 - .incbin "baserom.gba", 0x7F10A2, 0x000053F - -gUnk_087F15E1:: @ 087F15E1 - .incbin "baserom.gba", 0x7F15E1, 0x0001F74 - -gUnk_087F3555:: @ 087F3555 - .incbin "baserom.gba", 0x7F3555, 0x0002B9E - -gUnk_087F60F3:: @ 087F60F3 - .incbin "baserom.gba", 0x7F60F3, 0x0002643 - -gUnk_087F8736:: @ 087F8736 - .incbin "baserom.gba", 0x7F8736, 0x0003695 - -gUnk_087FBDCB:: @ 087FBDCB - .incbin "baserom.gba", 0x7FBDCB, 0x0000001 - -gUnk_087FBDCC:: @ 087FBDCC - .incbin "baserom.gba", 0x7FBDCC, 0x000023A - -gUnk_087FC006:: @ 087FC006 - .incbin "baserom.gba", 0x7FC006, 0x000310B - -gUnk_087FF111:: @ 087FF111 - .incbin "baserom.gba", 0x7FF111, 0x000011B - -gUnk_087FF22C:: @ 087FF22C - .incbin "baserom.gba", 0x7FF22C, 0x000066B - -gUnk_087FF897:: @ 087FF897 - .incbin "baserom.gba", 0x7FF897, 0x0000769 - -gUnk_08800000:: @ 08800000 - .incbin "baserom.gba", 0x800000, 0x0000002 - -gUnk_08800002:: @ 08800002 - .incbin "baserom.gba", 0x800002, 0x0000002 - -gUnk_08800004:: @ 08800004 - .incbin "baserom.gba", 0x800004, 0x0000002 - -gUnk_08800006:: @ 08800006 - .incbin "baserom.gba", 0x800006, 0x0000001 - -gUnk_08800007:: @ 08800007 - .incbin "baserom.gba", 0x800007, 0x0000001 - -gUnk_08800008:: @ 08800008 - .incbin "baserom.gba", 0x800008, 0x0000001 - -gUnk_08800009:: @ 08800009 - .incbin "baserom.gba", 0x800009, 0x0000001 - -gUnk_0880000A:: @ 0880000A - .incbin "baserom.gba", 0x80000A, 0x0000039 - -gUnk_08800043:: @ 08800043 - .incbin "baserom.gba", 0x800043, 0x000007D - -gUnk_088000C0:: @ 088000C0 - .incbin "baserom.gba", 0x8000C0, 0x0000047 - -gUnk_08800107:: @ 08800107 - .incbin "baserom.gba", 0x800107, 0x0000009 - -gUnk_08800110:: @ 08800110 - .incbin "baserom.gba", 0x800110, 0x0000324 - -gUnk_08800434:: @ 08800434 - .incbin "baserom.gba", 0x800434, 0x000000F - -gUnk_08800443:: @ 08800443 - .incbin "baserom.gba", 0x800443, 0x00001FD - -gUnk_08800640:: @ 08800640 - .incbin "baserom.gba", 0x800640, 0x00002B0 - -gUnk_088008F0:: @ 088008F0 - .incbin "baserom.gba", 0x8008F0, 0x00000F6 - -gUnk_088009E6:: @ 088009E6 - .incbin "baserom.gba", 0x8009E6, 0x0000242 - -gUnk_08800C28:: @ 08800C28 - .incbin "baserom.gba", 0x800C28, 0x0000FD8 - -gUnk_08801C00:: @ 08801C00 - .incbin "baserom.gba", 0x801C00, 0x0000B80 - -gUnk_08802780:: @ 08802780 - .incbin "baserom.gba", 0x802780, 0x0000EE3 - -gUnk_08803663:: @ 08803663 - .incbin "baserom.gba", 0x803663, 0x00009A1 - -gUnk_08804004:: @ 08804004 - .incbin "baserom.gba", 0x804004, 0x0000114 - -gUnk_08804118:: @ 08804118 - .incbin "baserom.gba", 0x804118, 0x000001A - -gUnk_08804132:: @ 08804132 - .incbin "baserom.gba", 0x804132, 0x0002501 - -gUnk_08806633:: @ 08806633 - .incbin "baserom.gba", 0x806633, 0x000101B - -gUnk_0880764E:: @ 0880764E - .incbin "baserom.gba", 0x80764E, 0x00004B9 - -gUnk_08807B07:: @ 08807B07 - .incbin "baserom.gba", 0x807B07, 0x0000C7A - -gUnk_08808781:: @ 08808781 - .incbin "baserom.gba", 0x808781, 0x000007F - -gUnk_08808800:: @ 08808800 - .incbin "baserom.gba", 0x808800, 0x0002C08 - -gUnk_0880B408:: @ 0880B408 - .incbin "baserom.gba", 0x80B408, 0x0000BFA - -gUnk_0880C002:: @ 0880C002 - .incbin "baserom.gba", 0x80C002, 0x00013EF - -gUnk_0880D3F1:: @ 0880D3F1 - .incbin "baserom.gba", 0x80D3F1, 0x0000986 - -gUnk_0880DD77:: @ 0880DD77 - .incbin "baserom.gba", 0x80DD77, 0x0000B90 - -gUnk_0880E907:: @ 0880E907 - .incbin "baserom.gba", 0x80E907, 0x00000F3 - -gUnk_0880E9FA:: @ 0880E9FA - .incbin "baserom.gba", 0x80E9FA, 0x000000E - -gUnk_0880EA08:: @ 0880EA08 - .incbin "baserom.gba", 0x80EA08, 0x00000F8 - -gUnk_0880EB00:: @ 0880EB00 - .incbin "baserom.gba", 0x80EB00, 0x0000008 - -gUnk_0880EB08:: @ 0880EB08 - .incbin "baserom.gba", 0x80EB08, 0x0000001 - -gUnk_0880EB09:: @ 0880EB09 - .incbin "baserom.gba", 0x80EB09, 0x0000001 - -gUnk_0880EB0A:: @ 0880EB0A - .incbin "baserom.gba", 0x80EB0A, 0x00000E1 - -gUnk_0880EBEB:: @ 0880EBEB - .incbin "baserom.gba", 0x80EBEB, 0x0000005 - -gUnk_0880EBF0:: @ 0880EBF0 - .incbin "baserom.gba", 0x80EBF0, 0x0000018 - -gUnk_0880EC08:: @ 0880EC08 - .incbin "baserom.gba", 0x80EC08, 0x0000003 - -gUnk_0880EC0B:: @ 0880EC0B - .incbin "baserom.gba", 0x80EC0B, 0x00000E5 - -gUnk_0880ECF0:: @ 0880ECF0 - .incbin "baserom.gba", 0x80ECF0, 0x000021A - -gUnk_0880EF0A:: @ 0880EF0A - .incbin "baserom.gba", 0x80EF0A, 0x00000E7 - -gUnk_0880EFF1:: @ 0880EFF1 - .incbin "baserom.gba", 0x80EFF1, 0x000000B - -gUnk_0880EFFC:: @ 0880EFFC - .incbin "baserom.gba", 0x80EFFC, 0x0000110 - -gUnk_0880F10C:: @ 0880F10C - .incbin "baserom.gba", 0x80F10C, 0x00001F8 - -gUnk_0880F304:: @ 0880F304 - .incbin "baserom.gba", 0x80F304, 0x00001F8 - -gUnk_0880F4FC:: @ 0880F4FC - .incbin "baserom.gba", 0x80F4FC, 0x000000B - -gUnk_0880F507:: @ 0880F507 - .incbin "baserom.gba", 0x80F507, 0x00003F1 - -gUnk_0880F8F8:: @ 0880F8F8 - .incbin "baserom.gba", 0x80F8F8, 0x0000304 - -gUnk_0880FBFC:: @ 0880FBFC - .incbin "baserom.gba", 0x80FBFC, 0x0000584 - -gUnk_08810180:: @ 08810180 - .incbin "baserom.gba", 0x810180, 0x0000601 - -gUnk_08810781:: @ 08810781 - .incbin "baserom.gba", 0x810781, 0x000017E - -gUnk_088108FF:: @ 088108FF - .incbin "baserom.gba", 0x8108FF, 0x0000E82 - -gUnk_08811781:: @ 08811781 - .incbin "baserom.gba", 0x811781, 0x000099F - -gUnk_08812120:: @ 08812120 - .incbin "baserom.gba", 0x812120, 0x0000C61 - -gUnk_08812D81:: @ 08812D81 - .incbin "baserom.gba", 0x812D81, 0x0001000 - -gUnk_08813D81:: @ 08813D81 - .incbin "baserom.gba", 0x813D81, 0x000027F - -gUnk_08814000:: @ 08814000 - .incbin "baserom.gba", 0x814000, 0x0000105 - -gUnk_08814105:: @ 08814105 - .incbin "baserom.gba", 0x814105, 0x000033F - -gUnk_08814444:: @ 08814444 - .incbin "baserom.gba", 0x814444, 0x00027BB - -gUnk_08816BFF:: @ 08816BFF - .incbin "baserom.gba", 0x816BFF, 0x0001569 - -gUnk_08818168:: @ 08818168 - .incbin "baserom.gba", 0x818168, 0x00006CC - -gUnk_08818834:: @ 08818834 - .incbin "baserom.gba", 0x818834, 0x00053A0 - -gUnk_0881DBD4:: @ 0881DBD4 - .incbin "baserom.gba", 0x81DBD4, 0x000092C - -gUnk_0881E500:: @ 0881E500 - .incbin "baserom.gba", 0x81E500, 0x0000481 - -gUnk_0881E981:: @ 0881E981 - .incbin "baserom.gba", 0x81E981, 0x0000373 - -gUnk_0881ECF4:: @ 0881ECF4 - .incbin "baserom.gba", 0x81ECF4, 0x000008C - -gUnk_0881ED80:: @ 0881ED80 - .incbin "baserom.gba", 0x81ED80, 0x0000D75 - -gUnk_0881FAF5:: @ 0881FAF5 - .incbin "baserom.gba", 0x81FAF5, 0x0000402 - -gUnk_0881FEF7:: @ 0881FEF7 - .incbin "baserom.gba", 0x81FEF7, 0x0000109 - -gUnk_08820000:: @ 08820000 - .incbin "baserom.gba", 0x820000, 0x0000008 - -gUnk_08820008:: @ 08820008 - .incbin "baserom.gba", 0x820008, 0x0000016 - -gUnk_0882001E:: @ 0882001E - .incbin "baserom.gba", 0x82001E, 0x0000081 - -gUnk_0882009F:: @ 0882009F - .incbin "baserom.gba", 0x82009F, 0x0000001 - -gUnk_088200A0:: @ 088200A0 - .incbin "baserom.gba", 0x8200A0, 0x0000013 - -gUnk_088200B3:: @ 088200B3 - .incbin "baserom.gba", 0x8200B3, 0x000025D - -gUnk_08820310:: @ 08820310 - .incbin "baserom.gba", 0x820310, 0x0000149 - -gUnk_08820459:: @ 08820459 - .incbin "baserom.gba", 0x820459, 0x00002AC - -gUnk_08820705:: @ 08820705 - .incbin "baserom.gba", 0x820705, 0x0000100 - -gUnk_08820805:: @ 08820805 - .incbin "baserom.gba", 0x820805, 0x0000001 - -gUnk_08820806:: @ 08820806 - .incbin "baserom.gba", 0x820806, 0x000054C - -gUnk_08820D52:: @ 08820D52 - .incbin "baserom.gba", 0x820D52, 0x00012AE - -gUnk_08822000:: @ 08822000 - .incbin "baserom.gba", 0x822000, 0x0000782 - -gUnk_08822782:: @ 08822782 - .incbin "baserom.gba", 0x822782, 0x0000400 - -gUnk_08822B82:: @ 08822B82 - .incbin "baserom.gba", 0x822B82, 0x00001A9 - -gUnk_08822D2B:: @ 08822D2B - .incbin "baserom.gba", 0x822D2B, 0x0000556 - -gUnk_08823281:: @ 08823281 - .incbin "baserom.gba", 0x823281, 0x0000D85 - -gUnk_08824006:: @ 08824006 - .incbin "baserom.gba", 0x824006, 0x0000550 - -gUnk_08824556:: @ 08824556 - .incbin "baserom.gba", 0x824556, 0x0000ACD - -gUnk_08825023:: @ 08825023 - .incbin "baserom.gba", 0x825023, 0x0000C52 - -gUnk_08825C75:: @ 08825C75 - .incbin "baserom.gba", 0x825C75, 0x000250C - -gUnk_08828181:: @ 08828181 - .incbin "baserom.gba", 0x828181, 0x00071B2 - -gUnk_0882F333:: @ 0882F333 - .incbin "baserom.gba", 0x82F333, 0x0000C8F - -gUnk_0882FFC2:: @ 0882FFC2 - .incbin "baserom.gba", 0x82FFC2, 0x000003E - -gUnk_08830000:: @ 08830000 - .incbin "baserom.gba", 0x830000, 0x0000004 - -gUnk_08830004:: @ 08830004 - .incbin "baserom.gba", 0x830004, 0x0000003 - -gUnk_08830007:: @ 08830007 - .incbin "baserom.gba", 0x830007, 0x0000001 - -gUnk_08830008:: @ 08830008 - .incbin "baserom.gba", 0x830008, 0x0000008 - -gUnk_08830010:: @ 08830010 - .incbin "baserom.gba", 0x830010, 0x0000432 - -gUnk_08830442:: @ 08830442 - .incbin "baserom.gba", 0x830442, 0x0002B41 - -gUnk_08832F83:: @ 08832F83 - .incbin "baserom.gba", 0x832F83, 0x0001574 - -gUnk_088344F7:: @ 088344F7 - .incbin "baserom.gba", 0x8344F7, 0x000006F - -gUnk_08834566:: @ 08834566 - .incbin "baserom.gba", 0x834566, 0x0006DAC - -gUnk_0883B312:: @ 0883B312 - .incbin "baserom.gba", 0x83B312, 0x00047EE - -gUnk_0883FB00:: @ 0883FB00 - .incbin "baserom.gba", 0x83FB00, 0x0000509 - -gUnk_08840009:: @ 08840009 - .incbin "baserom.gba", 0x840009, 0x0000011 - -gUnk_0884001A:: @ 0884001A - .incbin "baserom.gba", 0x84001A, 0x0000066 - -gUnk_08840080:: @ 08840080 - .incbin "baserom.gba", 0x840080, 0x00001E9 - -gUnk_08840269:: @ 08840269 - .incbin "baserom.gba", 0x840269, 0x0000128 - -gUnk_08840391:: @ 08840391 - .incbin "baserom.gba", 0x840391, 0x00000B2 - -gUnk_08840443:: @ 08840443 - .incbin "baserom.gba", 0x840443, 0x000021D - -gUnk_08840660:: @ 08840660 - .incbin "baserom.gba", 0x840660, 0x0000203 - -gUnk_08840863:: @ 08840863 - .incbin "baserom.gba", 0x840863, 0x0000129 - -gUnk_0884098C:: @ 0884098C - .incbin "baserom.gba", 0x84098C, 0x0000154 - -gUnk_08840AE0:: @ 08840AE0 - .incbin "baserom.gba", 0x840AE0, 0x00004C0 - -gUnk_08840FA0:: @ 08840FA0 - .incbin "baserom.gba", 0x840FA0, 0x0000500 - -gUnk_088414A0:: @ 088414A0 - .incbin "baserom.gba", 0x8414A0, 0x0000380 - -gUnk_08841820:: @ 08841820 - .incbin "baserom.gba", 0x841820, 0x00002C0 - -gUnk_08841AE0:: @ 08841AE0 - .incbin "baserom.gba", 0x841AE0, 0x00004E0 - -gUnk_08841FC0:: @ 08841FC0 - .incbin "baserom.gba", 0x841FC0, 0x000026C - -gUnk_0884222C:: @ 0884222C - .incbin "baserom.gba", 0x84222C, 0x00000B4 - -gUnk_088422E0:: @ 088422E0 - .incbin "baserom.gba", 0x8422E0, 0x0000DA0 - -gUnk_08843080:: @ 08843080 - .incbin "baserom.gba", 0x843080, 0x00002B3 - -gUnk_08843333:: @ 08843333 - .incbin "baserom.gba", 0x843333, 0x00001AF - -gUnk_088434E2:: @ 088434E2 - .incbin "baserom.gba", 0x8434E2, 0x00009FE - -gUnk_08843EE0:: @ 08843EE0 - .incbin "baserom.gba", 0x843EE0, 0x0000375 - -gUnk_08844255:: @ 08844255 - .incbin "baserom.gba", 0x844255, 0x00001F0 - -gUnk_08844445:: @ 08844445 - .incbin "baserom.gba", 0x844445, 0x000097B - -gUnk_08844DC0:: @ 08844DC0 - .incbin "baserom.gba", 0x844DC0, 0x0000795 - -gUnk_08845555:: @ 08845555 - .incbin "baserom.gba", 0x845555, 0x000064B - -gUnk_08845BA0:: @ 08845BA0 - .incbin "baserom.gba", 0x845BA0, 0x0001A00 - -gUnk_088475A0:: @ 088475A0 - .incbin "baserom.gba", 0x8475A0, 0x00002E7 - -gUnk_08847887:: @ 08847887 - .incbin "baserom.gba", 0x847887, 0x00007FE - -gUnk_08848085:: @ 08848085 - .incbin "baserom.gba", 0x848085, 0x0000EDB - -gUnk_08848F60:: @ 08848F60 - .incbin "baserom.gba", 0x848F60, 0x00010C0 - -gUnk_0884A020:: @ 0884A020 - .incbin "baserom.gba", 0x84A020, 0x00003E0 - -gUnk_0884A400:: @ 0884A400 - .incbin "baserom.gba", 0x84A400, 0x00003A0 - -gUnk_0884A7A0:: @ 0884A7A0 - .incbin "baserom.gba", 0x84A7A0, 0x0000360 - -gUnk_0884AB00:: @ 0884AB00 - .incbin "baserom.gba", 0x84AB00, 0x00000CD - -gUnk_0884ABCD:: @ 0884ABCD - .incbin "baserom.gba", 0x84ABCD, 0x0000AB3 - -gUnk_0884B680:: @ 0884B680 - .incbin "baserom.gba", 0x84B680, 0x00006B2 - -gUnk_0884BD32:: @ 0884BD32 - .incbin "baserom.gba", 0x84BD32, 0x000044E - -gUnk_0884C180:: @ 0884C180 - .incbin "baserom.gba", 0x84C180, 0x0000AE0 - -gUnk_0884CC60:: @ 0884CC60 - .incbin "baserom.gba", 0x84CC60, 0x0000480 - -gUnk_0884D0E0:: @ 0884D0E0 - .incbin "baserom.gba", 0x84D0E0, 0x0000320 - -gUnk_0884D400:: @ 0884D400 - .incbin "baserom.gba", 0x84D400, 0x0000360 - -gUnk_0884D760:: @ 0884D760 - .incbin "baserom.gba", 0x84D760, 0x00003A0 - -gUnk_0884DB00:: @ 0884DB00 - .incbin "baserom.gba", 0x84DB00, 0x0000400 - -gUnk_0884DF00:: @ 0884DF00 - .incbin "baserom.gba", 0x84DF00, 0x00006F0 - -gUnk_0884E5F0:: @ 0884E5F0 - .incbin "baserom.gba", 0x84E5F0, 0x00000F0 - -gUnk_0884E6E0:: @ 0884E6E0 - .incbin "baserom.gba", 0x84E6E0, 0x0000428 - -gUnk_0884EB08:: @ 0884EB08 - .incbin "baserom.gba", 0x84EB08, 0x0000100 - -gUnk_0884EC08:: @ 0884EC08 - .incbin "baserom.gba", 0x84EC08, 0x0000400 - -gUnk_0884F008:: @ 0884F008 - .incbin "baserom.gba", 0x84F008, 0x00000EC - -gUnk_0884F0F4:: @ 0884F0F4 - .incbin "baserom.gba", 0x84F0F4, 0x0000100 - -gUnk_0884F1F4:: @ 0884F1F4 - .incbin "baserom.gba", 0x84F1F4, 0x0000E0D - -gUnk_08850001:: @ 08850001 - .incbin "baserom.gba", 0x850001, 0x0000007 - -gUnk_08850008:: @ 08850008 - .incbin "baserom.gba", 0x850008, 0x000047D - -gUnk_08850485:: @ 08850485 - .incbin "baserom.gba", 0x850485, 0x00003FF - -gUnk_08850884:: @ 08850884 - .incbin "baserom.gba", 0x850884, 0x0000101 - -gUnk_08850985:: @ 08850985 - .incbin "baserom.gba", 0x850985, 0x000075B - -gUnk_088510E0:: @ 088510E0 - .incbin "baserom.gba", 0x8510E0, 0x00001B1 - -gUnk_08851291:: @ 08851291 - .incbin "baserom.gba", 0x851291, 0x00015F4 - -gUnk_08852885:: @ 08852885 - .incbin "baserom.gba", 0x852885, 0x0000100 - -gUnk_08852985:: @ 08852985 - .incbin "baserom.gba", 0x852985, 0x0001073 - -gUnk_088539F8:: @ 088539F8 - .incbin "baserom.gba", 0x8539F8, 0x00000E8 - -gUnk_08853AE0:: @ 08853AE0 - .incbin "baserom.gba", 0x853AE0, 0x0000FCA - -gUnk_08854AAA:: @ 08854AAA - .incbin "baserom.gba", 0x854AAA, 0x0000B10 - -gUnk_088555BA:: @ 088555BA - .incbin "baserom.gba", 0x8555BA, 0x0000F26 - -gUnk_088564E0:: @ 088564E0 - .incbin "baserom.gba", 0x8564E0, 0x00003C0 - -gUnk_088568A0:: @ 088568A0 - .incbin "baserom.gba", 0x8568A0, 0x0000380 - -gUnk_08856C20:: @ 08856C20 - .incbin "baserom.gba", 0x856C20, 0x0000380 - -gUnk_08856FA0:: @ 08856FA0 - .incbin "baserom.gba", 0x856FA0, 0x0000380 - -gUnk_08857320:: @ 08857320 - .incbin "baserom.gba", 0x857320, 0x0000560 - -gUnk_08857880:: @ 08857880 - .incbin "baserom.gba", 0x857880, 0x0000480 - -gUnk_08857D00:: @ 08857D00 - .incbin "baserom.gba", 0x857D00, 0x000030A - -gUnk_0885800A:: @ 0885800A - .incbin "baserom.gba", 0x85800A, 0x0000176 - -gUnk_08858180:: @ 08858180 - .incbin "baserom.gba", 0x858180, 0x0000500 - -gUnk_08858680:: @ 08858680 - .incbin "baserom.gba", 0x858680, 0x00014C0 - -gUnk_08859B40:: @ 08859B40 - .incbin "baserom.gba", 0x859B40, 0x0000660 - -gUnk_0885A1A0:: @ 0885A1A0 - .incbin "baserom.gba", 0x85A1A0, 0x0001080 - -gUnk_0885B220:: @ 0885B220 - .incbin "baserom.gba", 0x85B220, 0x0000800 - -gUnk_0885BA20:: @ 0885BA20 - .incbin "baserom.gba", 0x85BA20, 0x0000800 - -gUnk_0885C220:: @ 0885C220 - .incbin "baserom.gba", 0x85C220, 0x0000500 - -gUnk_0885C720:: @ 0885C720 - .incbin "baserom.gba", 0x85C720, 0x0000500 - -gUnk_0885CC20:: @ 0885CC20 - .incbin "baserom.gba", 0x85CC20, 0x0001BF3 - -gUnk_0885E813:: @ 0885E813 - .incbin "baserom.gba", 0x85E813, 0x00000E5 - -gUnk_0885E8F8:: @ 0885E8F8 - .incbin "baserom.gba", 0x85E8F8, 0x00013A8 - -gUnk_0885FCA0:: @ 0885FCA0 - .incbin "baserom.gba", 0x85FCA0, 0x0000362 - -gUnk_08860002:: @ 08860002 - .incbin "baserom.gba", 0x860002, 0x00000CB - -gUnk_088600CD:: @ 088600CD - .incbin "baserom.gba", 0x8600CD, 0x0000075 - -gUnk_08860142:: @ 08860142 - .incbin "baserom.gba", 0x860142, 0x00007C1 - -gUnk_08860903:: @ 08860903 - .incbin "baserom.gba", 0x860903, 0x0000383 - -gUnk_08860C86:: @ 08860C86 - .incbin "baserom.gba", 0x860C86, 0x000028A - -gUnk_08860F10:: @ 08860F10 - .incbin "baserom.gba", 0x860F10, 0x0001770 - -gUnk_08862680:: @ 08862680 - .incbin "baserom.gba", 0x862680, 0x0000413 - -gUnk_08862A93:: @ 08862A93 - .incbin "baserom.gba", 0x862A93, 0x0001974 - -gUnk_08864407:: @ 08864407 - .incbin "baserom.gba", 0x864407, 0x0001C79 - -gUnk_08866080:: @ 08866080 - .incbin "baserom.gba", 0x866080, 0x00006F7 - -gUnk_08866777:: @ 08866777 - .incbin "baserom.gba", 0x866777, 0x0000BDE - -gUnk_08867355:: @ 08867355 - .incbin "baserom.gba", 0x867355, 0x0001498 - -gUnk_088687ED:: @ 088687ED - .incbin "baserom.gba", 0x8687ED, 0x0000253 - -gUnk_08868A40:: @ 08868A40 - .incbin "baserom.gba", 0x868A40, 0x0001F58 - -gUnk_0886A998:: @ 0886A998 - .incbin "baserom.gba", 0x86A998, 0x0000156 - -gUnk_0886AAEE:: @ 0886AAEE - .incbin "baserom.gba", 0x86AAEE, 0x0000367 - -gUnk_0886AE55:: @ 0886AE55 - .incbin "baserom.gba", 0x86AE55, 0x0000009 - -gUnk_0886AE5E:: @ 0886AE5E - .incbin "baserom.gba", 0x86AE5E, 0x00010C2 - -gUnk_0886BF20:: @ 0886BF20 - .incbin "baserom.gba", 0x86BF20, 0x0003900 - -gUnk_0886F820:: @ 0886F820 - .incbin "baserom.gba", 0x86F820, 0x00007E7 - -gUnk_08870007:: @ 08870007 - .incbin "baserom.gba", 0x870007, 0x000000A - -gUnk_08870011:: @ 08870011 - .incbin "baserom.gba", 0x870011, 0x000005A - -gUnk_0887006B:: @ 0887006B - .incbin "baserom.gba", 0x87006B, 0x000001B - -gUnk_08870086:: @ 08870086 - .incbin "baserom.gba", 0x870086, 0x00001E9 - -gUnk_0887026F:: @ 0887026F - .incbin "baserom.gba", 0x87026F, 0x0002691 - -gUnk_08872900:: @ 08872900 - .incbin "baserom.gba", 0x872900, 0x0002C80 - -gUnk_08875580:: @ 08875580 - .incbin "baserom.gba", 0x875580, 0x0001A83 - -gUnk_08877003:: @ 08877003 - .incbin "baserom.gba", 0x877003, 0x0000663 - -gUnk_08877666:: @ 08877666 - .incbin "baserom.gba", 0x877666, 0x0000107 - -gUnk_0887776D:: @ 0887776D - .incbin "baserom.gba", 0x87776D, 0x0000072 - -gUnk_088777DF:: @ 088777DF - .incbin "baserom.gba", 0x8777DF, 0x0000011 - -gUnk_088777F0:: @ 088777F0 - .incbin "baserom.gba", 0x8777F0, 0x00010BF - -gUnk_088788AF:: @ 088788AF - .incbin "baserom.gba", 0x8788AF, 0x00001D1 - -gUnk_08878A80:: @ 08878A80 - .incbin "baserom.gba", 0x878A80, 0x000142B - -gUnk_08879EAB:: @ 08879EAB - .incbin "baserom.gba", 0x879EAB, 0x0001355 - -gUnk_0887B200:: @ 0887B200 - .incbin "baserom.gba", 0x87B200, 0x0002EA0 - -gUnk_0887E0A0:: @ 0887E0A0 - .incbin "baserom.gba", 0x87E0A0, 0x0000668 - -gUnk_0887E708:: @ 0887E708 - .incbin "baserom.gba", 0x87E708, 0x00018F8 - -gUnk_08880000:: @ 08880000 - .incbin "baserom.gba", 0x880000, 0x00000AA - -gUnk_088800AA:: @ 088800AA - .incbin "baserom.gba", 0x8800AA, 0x0000056 - -gUnk_08880100:: @ 08880100 - .incbin "baserom.gba", 0x880100, 0x0000087 - -gUnk_08880187:: @ 08880187 - .incbin "baserom.gba", 0x880187, 0x000028D - -gUnk_08880414:: @ 08880414 - .incbin "baserom.gba", 0x880414, 0x00003F4 - -gUnk_08880808:: @ 08880808 - .incbin "baserom.gba", 0x880808, 0x000098B - -gUnk_08881193:: @ 08881193 - .incbin "baserom.gba", 0x881193, 0x000022D - -gUnk_088813C0:: @ 088813C0 - .incbin "baserom.gba", 0x8813C0, 0x000050C - -gUnk_088818CC:: @ 088818CC - .incbin "baserom.gba", 0x8818CC, 0x0000975 - -gUnk_08882241:: @ 08882241 - .incbin "baserom.gba", 0x882241, 0x0000747 - -gUnk_08882988:: @ 08882988 - .incbin "baserom.gba", 0x882988, 0x0000A13 - -gUnk_0888339B:: @ 0888339B - .incbin "baserom.gba", 0x88339B, 0x0000B05 - -gUnk_08883EA0:: @ 08883EA0 - .incbin "baserom.gba", 0x883EA0, 0x0001F00 - -gUnk_08885DA0:: @ 08885DA0 - .incbin "baserom.gba", 0x885DA0, 0x00019D7 - -gUnk_08887777:: @ 08887777 - .incbin "baserom.gba", 0x887777, 0x0000889 - -gUnk_08888000:: @ 08888000 - .incbin "baserom.gba", 0x888000, 0x0000188 - -gUnk_08888188:: @ 08888188 - .incbin "baserom.gba", 0x888188, 0x0000414 - -gUnk_0888859C:: @ 0888859C - .incbin "baserom.gba", 0x88859C, 0x00001CA - -gUnk_08888766:: @ 08888766 - .incbin "baserom.gba", 0x888766, 0x000000A - -gUnk_08888770:: @ 08888770 - .incbin "baserom.gba", 0x888770, 0x0000090 - -gUnk_08888800:: @ 08888800 - .incbin "baserom.gba", 0x888800, 0x0000080 - -gUnk_08888880:: @ 08888880 - .incbin "baserom.gba", 0x888880, 0x0000008 - -gUnk_08888888:: @ 08888888 - .incbin "baserom.gba", 0x888888, 0x0000001 - -gUnk_08888889:: @ 08888889 - .incbin "baserom.gba", 0x888889, 0x0000010 - -gUnk_08888899:: @ 08888899 - .incbin "baserom.gba", 0x888899, 0x00000EF - -gUnk_08888988:: @ 08888988 - .incbin "baserom.gba", 0x888988, 0x0000012 - -gUnk_0888899A:: @ 0888899A - .incbin "baserom.gba", 0x88899A, 0x0000110 - -gUnk_08888AAA:: @ 08888AAA - .incbin "baserom.gba", 0x888AAA, 0x000043B - -gUnk_08888EE5:: @ 08888EE5 - .incbin "baserom.gba", 0x888EE5, 0x0000093 - -gUnk_08888F78:: @ 08888F78 - .incbin "baserom.gba", 0x888F78, 0x0000912 - -gUnk_0888988A:: @ 0888988A - .incbin "baserom.gba", 0x88988A, 0x0000076 - -gUnk_08889900:: @ 08889900 - .incbin "baserom.gba", 0x889900, 0x000008E - -gUnk_0888998E:: @ 0888998E - .incbin "baserom.gba", 0x88998E, 0x000000B - -gUnk_08889999:: @ 08889999 - .incbin "baserom.gba", 0x889999, 0x0000011 - -gUnk_088899AA:: @ 088899AA - .incbin "baserom.gba", 0x8899AA, 0x00003F6 - -gUnk_08889DA0:: @ 08889DA0 - .incbin "baserom.gba", 0x889DA0, 0x000014E - -gUnk_08889EEE:: @ 08889EEE - .incbin "baserom.gba", 0x889EEE, 0x0000BAC - -gUnk_0888AA9A:: @ 0888AA9A - .incbin "baserom.gba", 0x88AA9A, 0x0000066 - -gUnk_0888AB00:: @ 0888AB00 - .incbin "baserom.gba", 0x88AB00, 0x0000311 - -gUnk_0888AE11:: @ 0888AE11 - .incbin "baserom.gba", 0x88AE11, 0x00001F7 - -gUnk_0888B008:: @ 0888B008 - .incbin "baserom.gba", 0x88B008, 0x0002D18 - -gUnk_0888DD20:: @ 0888DD20 - .incbin "baserom.gba", 0x88DD20, 0x0000140 - -gUnk_0888DE60:: @ 0888DE60 - .incbin "baserom.gba", 0x88DE60, 0x0001B00 - -gUnk_0888F960:: @ 0888F960 - .incbin "baserom.gba", 0x88F960, 0x00006A0 - -gUnk_08890000:: @ 08890000 - .incbin "baserom.gba", 0x890000, 0x000003C - -gUnk_0889003C:: @ 0889003C - .incbin "baserom.gba", 0x89003C, 0x0000014 - -gUnk_08890050:: @ 08890050 - .incbin "baserom.gba", 0x890050, 0x0000028 - -gUnk_08890078:: @ 08890078 - .incbin "baserom.gba", 0x890078, 0x0000008 - -gUnk_08890080:: @ 08890080 - .incbin "baserom.gba", 0x890080, 0x0000034 - -gUnk_088900B4:: @ 088900B4 - .incbin "baserom.gba", 0x8900B4, 0x00000B4 - -gUnk_08890168:: @ 08890168 - .incbin "baserom.gba", 0x890168, 0x0000058 - -gUnk_088901C0:: @ 088901C0 - .incbin "baserom.gba", 0x8901C0, 0x0000098 - -gUnk_08890258:: @ 08890258 - .incbin "baserom.gba", 0x890258, 0x00001A9 - -gUnk_08890401:: @ 08890401 - .incbin "baserom.gba", 0x890401, 0x0000048 - -gUnk_08890449:: @ 08890449 - .incbin "baserom.gba", 0x890449, 0x0000010 - -gUnk_08890459:: @ 08890459 - .incbin "baserom.gba", 0x890459, 0x000001D - -gUnk_08890476:: @ 08890476 - .incbin "baserom.gba", 0x890476, 0x0000012 - -gUnk_08890488:: @ 08890488 - .incbin "baserom.gba", 0x890488, 0x0000378 - -gUnk_08890800:: @ 08890800 - .incbin "baserom.gba", 0x890800, 0x0000006 - -gUnk_08890806:: @ 08890806 - .incbin "baserom.gba", 0x890806, 0x0000001 - -gUnk_08890807:: @ 08890807 - .incbin "baserom.gba", 0x890807, 0x00000C5 - -gUnk_088908CC:: @ 088908CC - .incbin "baserom.gba", 0x8908CC, 0x000063A - -gUnk_08890F06:: @ 08890F06 - .incbin "baserom.gba", 0x890F06, 0x00000BA - -gUnk_08890FC0:: @ 08890FC0 - .incbin "baserom.gba", 0x890FC0, 0x000116E - -gUnk_0889212E:: @ 0889212E - .incbin "baserom.gba", 0x89212E, 0x0000B12 - -gUnk_08892C40:: @ 08892C40 - .incbin "baserom.gba", 0x892C40, 0x0002300 - -gUnk_08894F40:: @ 08894F40 - .incbin "baserom.gba", 0x894F40, 0x0001749 - -gUnk_08896689:: @ 08896689 - .incbin "baserom.gba", 0x896689, 0x0000D37 - -gUnk_088973C0:: @ 088973C0 - .incbin "baserom.gba", 0x8973C0, 0x0000440 - -gUnk_08897800:: @ 08897800 - .incbin "baserom.gba", 0x897800, 0x00008C0 - -gUnk_088980C0:: @ 088980C0 - .incbin "baserom.gba", 0x8980C0, 0x0000495 - -gUnk_08898555:: @ 08898555 - .incbin "baserom.gba", 0x898555, 0x0000445 - -gUnk_0889899A:: @ 0889899A - .incbin "baserom.gba", 0x89899A, 0x0000011 - -gUnk_088989AB:: @ 088989AB - .incbin "baserom.gba", 0x8989AB, 0x0000515 - -gUnk_08898EC0:: @ 08898EC0 - .incbin "baserom.gba", 0x898EC0, 0x00000B7 - -gUnk_08898F77:: @ 08898F77 - .incbin "baserom.gba", 0x898F77, 0x00002C9 - -gUnk_08899240:: @ 08899240 - .incbin "baserom.gba", 0x899240, 0x00004C0 - -gUnk_08899700:: @ 08899700 - .incbin "baserom.gba", 0x899700, 0x0000298 - -gUnk_08899998:: @ 08899998 - .incbin "baserom.gba", 0x899998, 0x0000001 - -gUnk_08899999:: @ 08899999 - .incbin "baserom.gba", 0x899999, 0x000004B - -gUnk_088999E4:: @ 088999E4 - .incbin "baserom.gba", 0x8999E4, 0x0000093 - -gUnk_08899A77:: @ 08899A77 - .incbin "baserom.gba", 0x899A77, 0x0000033 - -gUnk_08899AAA:: @ 08899AAA - .incbin "baserom.gba", 0x899AAA, 0x00000B6 - -gUnk_08899B60:: @ 08899B60 - .incbin "baserom.gba", 0x899B60, 0x00002E0 - -gUnk_08899E40:: @ 08899E40 - .incbin "baserom.gba", 0x899E40, 0x00007A0 - -gUnk_0889A5E0:: @ 0889A5E0 - .incbin "baserom.gba", 0x89A5E0, 0x0000300 - -gUnk_0889A8E0:: @ 0889A8E0 - .incbin "baserom.gba", 0x89A8E0, 0x00001BE - -gUnk_0889AA9E:: @ 0889AA9E - .incbin "baserom.gba", 0x89AA9E, 0x0000004 - -gUnk_0889AAA2:: @ 0889AAA2 - .incbin "baserom.gba", 0x89AAA2, 0x0000008 - -gUnk_0889AAAA:: @ 0889AAAA - .incbin "baserom.gba", 0x89AAAA, 0x0000001 - -gUnk_0889AAAB:: @ 0889AAAB - .incbin "baserom.gba", 0x89AAAB, 0x0000010 - -gUnk_0889AABB:: @ 0889AABB - .incbin "baserom.gba", 0x89AABB, 0x0000100 - -gUnk_0889ABBB:: @ 0889ABBB - .incbin "baserom.gba", 0x89ABBB, 0x0000001 - -gUnk_0889ABBC:: @ 0889ABBC - .incbin "baserom.gba", 0x89ABBC, 0x0000C24 - -gUnk_0889B7E0:: @ 0889B7E0 - .incbin "baserom.gba", 0x89B7E0, 0x0000360 - -gUnk_0889BB40:: @ 0889BB40 - .incbin "baserom.gba", 0x89BB40, 0x000018C - -gUnk_0889BCCC:: @ 0889BCCC - .incbin "baserom.gba", 0x89BCCC, 0x00005F4 - -gUnk_0889C2C0:: @ 0889C2C0 - .incbin "baserom.gba", 0x89C2C0, 0x0000400 - -gUnk_0889C6C0:: @ 0889C6C0 - .incbin "baserom.gba", 0x89C6C0, 0x000005C - -gUnk_0889C71C:: @ 0889C71C - .incbin "baserom.gba", 0x89C71C, 0x0000324 - -gUnk_0889CA40:: @ 0889CA40 - .incbin "baserom.gba", 0x89CA40, 0x00005B0 - -gUnk_0889CFF0:: @ 0889CFF0 - .incbin "baserom.gba", 0x89CFF0, 0x0000450 - -gUnk_0889D440:: @ 0889D440 - .incbin "baserom.gba", 0x89D440, 0x0000A00 - -gUnk_0889DE40:: @ 0889DE40 - .incbin "baserom.gba", 0x89DE40, 0x0000300 - -gUnk_0889E140:: @ 0889E140 - .incbin "baserom.gba", 0x89E140, 0x00003D1 - -gUnk_0889E511:: @ 0889E511 - .incbin "baserom.gba", 0x89E511, 0x00000EF - -gUnk_0889E600:: @ 0889E600 - .incbin "baserom.gba", 0x89E600, 0x00007C0 - -gUnk_0889EDC0:: @ 0889EDC0 - .incbin "baserom.gba", 0x89EDC0, 0x000012E - -gUnk_0889EEEE:: @ 0889EEEE - .incbin "baserom.gba", 0x89EEEE, 0x00009F2 - -gUnk_0889F8E0:: @ 0889F8E0 - .incbin "baserom.gba", 0x89F8E0, 0x00007D3 - -gUnk_088A00B3:: @ 088A00B3 - .incbin "baserom.gba", 0x8A00B3, 0x000000D - -gUnk_088A00C0:: @ 088A00C0 - .incbin "baserom.gba", 0x8A00C0, 0x0000360 - -gUnk_088A0420:: @ 088A0420 - .incbin "baserom.gba", 0x8A0420, 0x0000469 - -gUnk_088A0889:: @ 088A0889 - .incbin "baserom.gba", 0x8A0889, 0x0000024 - -gUnk_088A08AD:: @ 088A08AD - .incbin "baserom.gba", 0x8A08AD, 0x0000433 - -gUnk_088A0CE0:: @ 088A0CE0 - .incbin "baserom.gba", 0x8A0CE0, 0x000007F - -gUnk_088A0D5F:: @ 088A0D5F - .incbin "baserom.gba", 0x8A0D5F, 0x000062F - -gUnk_088A138E:: @ 088A138E - .incbin "baserom.gba", 0x8A138E, 0x0000112 - -gUnk_088A14A0:: @ 088A14A0 - .incbin "baserom.gba", 0x8A14A0, 0x0000DC0 - -gUnk_088A2260:: @ 088A2260 - .incbin "baserom.gba", 0x8A2260, 0x00000E5 - -gUnk_088A2345:: @ 088A2345 - .incbin "baserom.gba", 0x8A2345, 0x000021B - -gUnk_088A2560:: @ 088A2560 - .incbin "baserom.gba", 0x8A2560, 0x00002A8 - -gUnk_088A2808:: @ 088A2808 - .incbin "baserom.gba", 0x8A2808, 0x0000038 - -gUnk_088A2840:: @ 088A2840 - .incbin "baserom.gba", 0x8A2840, 0x0000500 - -gUnk_088A2D40:: @ 088A2D40 - .incbin "baserom.gba", 0x8A2D40, 0x00007C0 - -gUnk_088A3500:: @ 088A3500 - .incbin "baserom.gba", 0x8A3500, 0x0000300 - -gUnk_088A3800:: @ 088A3800 - .incbin "baserom.gba", 0x8A3800, 0x00007A0 - -gUnk_088A3FA0:: @ 088A3FA0 - .incbin "baserom.gba", 0x8A3FA0, 0x0000500 - -gUnk_088A44A0:: @ 088A44A0 - .incbin "baserom.gba", 0x8A44A0, 0x00003C0 - -gUnk_088A4860:: @ 088A4860 - .incbin "baserom.gba", 0x8A4860, 0x00009A0 - -gUnk_088A5200:: @ 088A5200 - .incbin "baserom.gba", 0x8A5200, 0x0000DC0 - -gUnk_088A5FC0:: @ 088A5FC0 - .incbin "baserom.gba", 0x8A5FC0, 0x00003A0 - -gUnk_088A6360:: @ 088A6360 - .incbin "baserom.gba", 0x8A6360, 0x0000980 - -gUnk_088A6CE0:: @ 088A6CE0 - .incbin "baserom.gba", 0x8A6CE0, 0x00007C0 - -gUnk_088A74A0:: @ 088A74A0 - .incbin "baserom.gba", 0x8A74A0, 0x0000408 - -gUnk_088A78A8:: @ 088A78A8 - .incbin "baserom.gba", 0x8A78A8, 0x0000139 - -gUnk_088A79E1:: @ 088A79E1 - .incbin "baserom.gba", 0x8A79E1, 0x00002DF - -gUnk_088A7CC0:: @ 088A7CC0 - .incbin "baserom.gba", 0x8A7CC0, 0x0000340 - -gUnk_088A8000:: @ 088A8000 - .incbin "baserom.gba", 0x8A8000, 0x0000500 - -gUnk_088A8500:: @ 088A8500 - .incbin "baserom.gba", 0x8A8500, 0x0000500 - -gUnk_088A8A00:: @ 088A8A00 - .incbin "baserom.gba", 0x8A8A00, 0x00001CA - -gUnk_088A8BCA:: @ 088A8BCA - .incbin "baserom.gba", 0x8A8BCA, 0x00005F6 - -gUnk_088A91C0:: @ 088A91C0 - .incbin "baserom.gba", 0x8A91C0, 0x0000660 - -gUnk_088A9820:: @ 088A9820 - .incbin "baserom.gba", 0x8A9820, 0x0000179 - -gUnk_088A9999:: @ 088A9999 - .incbin "baserom.gba", 0x8A9999, 0x0000247 - -gUnk_088A9BE0:: @ 088A9BE0 - .incbin "baserom.gba", 0x8A9BE0, 0x0000460 - -gUnk_088AA040:: @ 088AA040 - .incbin "baserom.gba", 0x8AA040, 0x0000380 - -gUnk_088AA3C0:: @ 088AA3C0 - .incbin "baserom.gba", 0x8AA3C0, 0x00004E0 - -gUnk_088AA8A0:: @ 088AA8A0 - .incbin "baserom.gba", 0x8AA8A0, 0x0000209 - -gUnk_088AAAA9:: @ 088AAAA9 - .incbin "baserom.gba", 0x8AAAA9, 0x0000137 - -gUnk_088AABE0:: @ 088AABE0 - .incbin "baserom.gba", 0x8AABE0, 0x00006A0 - -gUnk_088AB280:: @ 088AB280 - .incbin "baserom.gba", 0x8AB280, 0x00008A4 - -gUnk_088ABB24:: @ 088ABB24 - .incbin "baserom.gba", 0x8ABB24, 0x00000DC - -gUnk_088ABC00:: @ 088ABC00 - .incbin "baserom.gba", 0x8ABC00, 0x00001D6 - -gUnk_088ABDD6:: @ 088ABDD6 - .incbin "baserom.gba", 0x8ABDD6, 0x000040A - -gUnk_088AC1E0:: @ 088AC1E0 - .incbin "baserom.gba", 0x8AC1E0, 0x00008A0 - -gUnk_088ACA80:: @ 088ACA80 - .incbin "baserom.gba", 0x8ACA80, 0x000024B - -gUnk_088ACCCB:: @ 088ACCCB - .incbin "baserom.gba", 0x8ACCCB, 0x0000675 - -gUnk_088AD340:: @ 088AD340 - .incbin "baserom.gba", 0x8AD340, 0x00005A0 - -gUnk_088AD8E0:: @ 088AD8E0 - .incbin "baserom.gba", 0x8AD8E0, 0x0000620 - -gUnk_088ADF00:: @ 088ADF00 - .incbin "baserom.gba", 0x8ADF00, 0x0000F00 - -gUnk_088AEE00:: @ 088AEE00 - .incbin "baserom.gba", 0x8AEE00, 0x00000EE - -gUnk_088AEEEE:: @ 088AEEEE - .incbin "baserom.gba", 0x8AEEEE, 0x0000552 - -gUnk_088AF440:: @ 088AF440 - .incbin "baserom.gba", 0x8AF440, 0x00012C0 - -gUnk_088B0700:: @ 088B0700 - .incbin "baserom.gba", 0x8B0700, 0x000018A - -gUnk_088B088A:: @ 088B088A - .incbin "baserom.gba", 0x8B088A, 0x0001136 - -gUnk_088B19C0:: @ 088B19C0 - .incbin "baserom.gba", 0x8B19C0, 0x000076E - -gUnk_088B212E:: @ 088B212E - .incbin "baserom.gba", 0x8B212E, 0x0001032 - -gUnk_088B3160:: @ 088B3160 - .incbin "baserom.gba", 0x8B3160, 0x00019A0 - -gUnk_088B4B00:: @ 088B4B00 - .incbin "baserom.gba", 0x8B4B00, 0x0001300 - -gUnk_088B5E00:: @ 088B5E00 - .incbin "baserom.gba", 0x8B5E00, 0x0001EA0 - -gUnk_088B7CA0:: @ 088B7CA0 - .incbin "baserom.gba", 0x8B7CA0, 0x0001640 - -gUnk_088B92E0:: @ 088B92E0 - .incbin "baserom.gba", 0x8B92E0, 0x00010AB - -gUnk_088BA38B:: @ 088BA38B - .incbin "baserom.gba", 0x8BA38B, 0x0000715 - -gUnk_088BAAA0:: @ 088BAAA0 - .incbin "baserom.gba", 0x8BAAA0, 0x000001B - -gUnk_088BAABB:: @ 088BAABB - .incbin "baserom.gba", 0x8BAABB, 0x00000D0 - -gUnk_088BAB8B:: @ 088BAB8B - .incbin "baserom.gba", 0x8BAB8B, 0x0000D15 - -gUnk_088BB8A0:: @ 088BB8A0 - .incbin "baserom.gba", 0x8BB8A0, 0x0000580 - -gUnk_088BBE20:: @ 088BBE20 - .incbin "baserom.gba", 0x8BBE20, 0x0000C40 - -gUnk_088BCA60:: @ 088BCA60 - .incbin "baserom.gba", 0x8BCA60, 0x0001100 - -gUnk_088BDB60:: @ 088BDB60 - .incbin "baserom.gba", 0x8BDB60, 0x0001304 - -gUnk_088BEE64:: @ 088BEE64 - .incbin "baserom.gba", 0x8BEE64, 0x000127C - -gUnk_088C00E0:: @ 088C00E0 - .incbin "baserom.gba", 0x8C00E0, 0x0000220 - -gUnk_088C0300:: @ 088C0300 - .incbin "baserom.gba", 0x8C0300, 0x000035C - -gUnk_088C065C:: @ 088C065C - .incbin "baserom.gba", 0x8C065C, 0x00002A4 - -gUnk_088C0900:: @ 088C0900 - .incbin "baserom.gba", 0x8C0900, 0x0001980 - -gUnk_088C2280:: @ 088C2280 - .incbin "graphics/intro/nintendo_capcom.4bpp" - -gUnk_088C31E0:: @ 088C31E0 - .incbin "baserom.gba", 0x8C31E0, 0x00030AC - -gUnk_088C628C:: @ 088C628C - .incbin "baserom.gba", 0x8C628C, 0x00003FC - -gUnk_088C6688:: @ 088C6688 - .incbin "baserom.gba", 0x8C6688, 0x00016A8 - -gUnk_088C7D30:: @ 088C7D30 - .incbin "baserom.gba", 0x8C7D30, 0x0007178 - -gUnk_088CEEA8:: @ 088CEEA8 - .incbin "baserom.gba", 0x8CEEA8, 0x0001162 - -gUnk_088D000A:: @ 088D000A - .incbin "baserom.gba", 0x8D000A, 0x0000982 - -gUnk_088D098C:: @ 088D098C - .incbin "baserom.gba", 0x8D098C, 0x0001A31 - -gUnk_088D23BD:: @ 088D23BD - .incbin "baserom.gba", 0x8D23BD, 0x0001343 - -gUnk_088D3700:: @ 088D3700 - .incbin "baserom.gba", 0x8D3700, 0x0000FC8 - -gUnk_088D46C8:: @ 088D46C8 - .incbin "baserom.gba", 0x8D46C8, 0x0002078 - -gUnk_088D6740:: @ 088D6740 - .incbin "baserom.gba", 0x8D6740, 0x00020F3 - -gUnk_088D8833:: @ 088D8833 - .incbin "baserom.gba", 0x8D8833, 0x0001AD5 - -gUnk_088DA308:: @ 088DA308 - .incbin "baserom.gba", 0x8DA308, 0x00030A4 - -gUnk_088DD3AC:: @ 088DD3AC - .incbin "baserom.gba", 0x8DD3AC, 0x0002C5B - -gUnk_088E0007:: @ 088E0007 - .incbin "baserom.gba", 0x8E0007, 0x0000088 - -gUnk_088E008F:: @ 088E008F - .incbin "baserom.gba", 0x8E008F, 0x0000075 - -gUnk_088E0104:: @ 088E0104 - .incbin "baserom.gba", 0x8E0104, 0x0000231 - -gUnk_088E0335:: @ 088E0335 - .incbin "baserom.gba", 0x8E0335, 0x0000159 - -gUnk_088E048E:: @ 088E048E - .incbin "baserom.gba", 0x8E048E, 0x0000FEB - -gUnk_088E1479:: @ 088E1479 - .incbin "baserom.gba", 0x8E1479, 0x0005A09 - -gUnk_088E6E82:: @ 088E6E82 - .incbin "baserom.gba", 0x8E6E82, 0x0000EF7 - -gUnk_088E7D79:: @ 088E7D79 - .incbin "baserom.gba", 0x8E7D79, 0x0004315 - -gUnk_088EC08E:: @ 088EC08E - .incbin "baserom.gba", 0x8EC08E, 0x0002E60 - -gUnk_088EEEEE:: @ 088EEEEE - .incbin "baserom.gba", 0x8EEEEE, 0x0001292 - -gUnk_088F0180:: @ 088F0180 - .incbin "baserom.gba", 0x8F0180, 0x000020D - -gUnk_088F038D:: @ 088F038D - .incbin "baserom.gba", 0x8F038D, 0x0000DC4 - -gUnk_088F1151:: @ 088F1151 - .incbin "baserom.gba", 0x8F1151, 0x000045D - -gUnk_088F15AE:: @ 088F15AE - .incbin "baserom.gba", 0x8F15AE, 0x0002FB8 - -gUnk_088F4566:: @ 088F4566 - .incbin "baserom.gba", 0x8F4566, 0x000119C - -gUnk_088F5702:: @ 088F5702 - .incbin "baserom.gba", 0x8F5702, 0x0005186 - -gUnk_088FA888:: @ 088FA888 - .incbin "baserom.gba", 0x8FA888, 0x0000107 - -gUnk_088FA98F:: @ 088FA98F - .incbin "baserom.gba", 0x8FA98F, 0x000422C - -gUnk_088FEBBB:: @ 088FEBBB - .incbin "baserom.gba", 0x8FEBBB, 0x0000BCD - -gUnk_088FF788:: @ 088FF788 - .incbin "baserom.gba", 0x8FF788, 0x0000878 - -gUnk_08900000:: @ 08900000 - .incbin "baserom.gba", 0x900000, 0x0000099 - -gUnk_08900099:: @ 08900099 - .incbin "baserom.gba", 0x900099, 0x0000035 - -gUnk_089000CE:: @ 089000CE - .incbin "baserom.gba", 0x9000CE, 0x0000042 - -gUnk_08900110:: @ 08900110 - .incbin "baserom.gba", 0x900110, 0x0000270 - -gUnk_08900380:: @ 08900380 - .incbin "baserom.gba", 0x900380, 0x00002A0 - -gUnk_08900620:: @ 08900620 - .incbin "baserom.gba", 0x900620, 0x0003D2B - -gUnk_0890434B:: @ 0890434B - .incbin "baserom.gba", 0x90434B, 0x0009DB3 - -gUnk_0890E0FE:: @ 0890E0FE - .incbin "baserom.gba", 0x90E0FE, 0x0000302 - -gUnk_0890E400:: @ 0890E400 - .incbin "baserom.gba", 0x90E400, 0x0000004 - -gUnk_0890E404:: @ 0890E404 - .incbin "baserom.gba", 0x90E404, 0x0000100 - -gUnk_0890E504:: @ 0890E504 - .incbin "baserom.gba", 0x90E504, 0x0000100 - -gUnk_0890E604:: @ 0890E604 - .incbin "baserom.gba", 0x90E604, 0x00002FB - -gUnk_0890E8FF:: @ 0890E8FF - .incbin "baserom.gba", 0x90E8FF, 0x00007E9 - -gUnk_0890F0E8:: @ 0890F0E8 - .incbin "baserom.gba", 0x90F0E8, 0x0000F18 - -gUnk_08910000:: @ 08910000 - .incbin "baserom.gba", 0x910000, 0x0000007 - -gUnk_08910007:: @ 08910007 - .incbin "baserom.gba", 0x910007, 0x00002F9 - -gUnk_08910300:: @ 08910300 - .incbin "baserom.gba", 0x910300, 0x0000168 - -gUnk_08910468:: @ 08910468 - .incbin "baserom.gba", 0x910468, 0x0000398 - -gUnk_08910800:: @ 08910800 - .incbin "baserom.gba", 0x910800, 0x0000090 - -gUnk_08910890:: @ 08910890 - .incbin "baserom.gba", 0x910890, 0x0000993 - -gUnk_08911223:: @ 08911223 - .incbin "baserom.gba", 0x911223, 0x0000776 - -gUnk_08911999:: @ 08911999 - .incbin "baserom.gba", 0x911999, 0x0000467 - -gUnk_08911E00:: @ 08911E00 - .incbin "baserom.gba", 0x911E00, 0x0002418 - -gUnk_08914218:: @ 08914218 - .incbin "baserom.gba", 0x914218, 0x000012E - -gUnk_08914346:: @ 08914346 - .incbin "baserom.gba", 0x914346, 0x00003BA - -gUnk_08914700:: @ 08914700 - .incbin "baserom.gba", 0x914700, 0x0002BFF - -gUnk_089172FF:: @ 089172FF - .incbin "baserom.gba", 0x9172FF, 0x0000589 - -gUnk_08917888:: @ 08917888 - .incbin "baserom.gba", 0x917888, 0x0000345 - -gUnk_08917BCD:: @ 08917BCD - .incbin "baserom.gba", 0x917BCD, 0x0000FBE - -gUnk_08918B8B:: @ 08918B8B - .incbin "baserom.gba", 0x918B8B, 0x000250E - -gUnk_0891B099:: @ 0891B099 - .incbin "baserom.gba", 0x91B099, 0x0000A11 - -gUnk_0891BAAA:: @ 0891BAAA - .incbin "baserom.gba", 0x91BAAA, 0x0002757 - -gUnk_0891E201:: @ 0891E201 - .incbin "baserom.gba", 0x91E201, 0x0001D00 - -gUnk_0891FF01:: @ 0891FF01 - .incbin "baserom.gba", 0x91FF01, 0x00000EF - -gUnk_0891FFF0:: @ 0891FFF0 - .incbin "baserom.gba", 0x91FFF0, 0x0000010 - -gUnk_08920000:: @ 08920000 - .incbin "baserom.gba", 0x920000, 0x0000120 - -gUnk_08920120:: @ 08920120 - .incbin "baserom.gba", 0x920120, 0x0000672 - -gUnk_08920792:: @ 08920792 - .incbin "baserom.gba", 0x920792, 0x00000FF - -gUnk_08920891:: @ 08920891 - .incbin "baserom.gba", 0x920891, 0x0000802 - -gUnk_08921093:: @ 08921093 - .incbin "baserom.gba", 0x921093, 0x00001F7 - -gUnk_0892128A:: @ 0892128A - .incbin "baserom.gba", 0x92128A, 0x0001B9F - -gUnk_08922E29:: @ 08922E29 - .incbin "baserom.gba", 0x922E29, 0x0004969 - -gUnk_08927792:: @ 08927792 - .incbin "baserom.gba", 0x927792, 0x0000305 - -gUnk_08927A97:: @ 08927A97 - .incbin "baserom.gba", 0x927A97, 0x0001520 - -gUnk_08928FB7:: @ 08928FB7 - .incbin "baserom.gba", 0x928FB7, 0x00003DA - -gUnk_08929391:: @ 08929391 - .incbin "baserom.gba", 0x929391, 0x00000C6 - -gUnk_08929457:: @ 08929457 - .incbin "baserom.gba", 0x929457, 0x0000879 - -gUnk_08929CD0:: @ 08929CD0 - .incbin "baserom.gba", 0x929CD0, 0x00001B9 - -gUnk_08929E89:: @ 08929E89 - .incbin "baserom.gba", 0x929E89, 0x0003465 - -gUnk_0892D2EE:: @ 0892D2EE - .incbin "baserom.gba", 0x92D2EE, 0x0000FAB - -gUnk_0892E299:: @ 0892E299 - .incbin "baserom.gba", 0x92E299, 0x00000F9 - -gUnk_0892E392:: @ 0892E392 - .incbin "baserom.gba", 0x92E392, 0x0000A90 - -gUnk_0892EE22:: @ 0892EE22 - .incbin "baserom.gba", 0x92EE22, 0x000000B - -gUnk_0892EE2D:: @ 0892EE2D - .incbin "baserom.gba", 0x92EE2D, 0x00011D3 - -gUnk_08930000:: @ 08930000 - .incbin "baserom.gba", 0x930000, 0x0000010 - -gUnk_08930010:: @ 08930010 - .incbin "baserom.gba", 0x930010, 0x0000773 - -gUnk_08930783:: @ 08930783 - .incbin "baserom.gba", 0x930783, 0x0000010 - -gUnk_08930793:: @ 08930793 - .incbin "baserom.gba", 0x930793, 0x00000FF - -gUnk_08930892:: @ 08930892 - .incbin "baserom.gba", 0x930892, 0x0001FB2 - -gUnk_08932844:: @ 08932844 - .incbin "baserom.gba", 0x932844, 0x00016BC - -gUnk_08933F00:: @ 08933F00 - .incbin "baserom.gba", 0x933F00, 0x0002200 - -gUnk_08936100:: @ 08936100 - .incbin "baserom.gba", 0x936100, 0x00020A6 - -gUnk_089381A6:: @ 089381A6 - .incbin "baserom.gba", 0x9381A6, 0x0000EC1 - -gUnk_08939067:: @ 08939067 - .incbin "baserom.gba", 0x939067, 0x000032C - -gUnk_08939393:: @ 08939393 - .incbin "baserom.gba", 0x939393, 0x00071F8 - -gUnk_0894058B:: @ 0894058B - .incbin "baserom.gba", 0x94058B, 0x0000308 - -gUnk_08940893:: @ 08940893 - .incbin "baserom.gba", 0x940893, 0x0000B9C - -gUnk_0894142F:: @ 0894142F - .incbin "baserom.gba", 0x94142F, 0x0000CD1 - -gUnk_08942100:: @ 08942100 - .incbin "baserom.gba", 0x942100, 0x0000267 - -gUnk_08942367:: @ 08942367 - .incbin "baserom.gba", 0x942367, 0x00010DF - -gUnk_08943446:: @ 08943446 - .incbin "baserom.gba", 0x943446, 0x0000DDB - -gUnk_08944221:: @ 08944221 - .incbin "baserom.gba", 0x944221, 0x00006DD - -gUnk_089448FE:: @ 089448FE - .incbin "baserom.gba", 0x9448FE, 0x0000C57 - -gUnk_08945555:: @ 08945555 - .incbin "baserom.gba", 0x945555, 0x0003F18 - -gUnk_0894946D:: @ 0894946D - .incbin "baserom.gba", 0x94946D, 0x0001760 - -gUnk_0894ABCD:: @ 0894ABCD - .incbin "baserom.gba", 0x94ABCD, 0x0001FEE - -gUnk_0894CBBB:: @ 0894CBBB - .incbin "baserom.gba", 0x94CBBB, 0x000344C - -gUnk_08950007:: @ 08950007 - .incbin "baserom.gba", 0x950007, 0x00008F9 - -gUnk_08950900:: @ 08950900 - .incbin "baserom.gba", 0x950900, 0x0002600 - -gUnk_08952F00:: @ 08952F00 - .incbin "baserom.gba", 0x952F00, 0x0000791 - -gUnk_08953691:: @ 08953691 - .incbin "baserom.gba", 0x953691, 0x000076F - -gUnk_08953E00:: @ 08953E00 - .incbin "baserom.gba", 0x953E00, 0x0001654 - -gUnk_08955454:: @ 08955454 - .incbin "baserom.gba", 0x955454, 0x00000F0 - -gUnk_08955544:: @ 08955544 - .incbin "baserom.gba", 0x955544, 0x0000011 - -gUnk_08955555:: @ 08955555 - .incbin "baserom.gba", 0x955555, 0x0003B72 - -gUnk_089590C7:: @ 089590C7 - .incbin "baserom.gba", 0x9590C7, 0x0001642 - -gUnk_0895A709:: @ 0895A709 - .incbin "baserom.gba", 0x95A709, 0x00058F7 - -gUnk_08960000:: @ 08960000 - .incbin "baserom.gba", 0x960000, 0x0000132 - -gUnk_08960132:: @ 08960132 - .incbin "baserom.gba", 0x960132, 0x0000B5E - -gUnk_08960C90:: @ 08960C90 - .incbin "baserom.gba", 0x960C90, 0x00000A4 - -gUnk_08960D34:: @ 08960D34 - .incbin "baserom.gba", 0x960D34, 0x00004E2 - -gUnk_08961216:: @ 08961216 - .incbin "baserom.gba", 0x961216, 0x000CBD8 - -gUnk_0896DDEE:: @ 0896DDEE - .incbin "baserom.gba", 0x96DDEE, 0x0002212 - -gUnk_08970000:: @ 08970000 - .incbin "baserom.gba", 0x970000, 0x000000A - -gUnk_0897000A:: @ 0897000A - .incbin "baserom.gba", 0x97000A, 0x0000009 - -gUnk_08970013:: @ 08970013 - .incbin "baserom.gba", 0x970013, 0x000002D - -gUnk_08970040:: @ 08970040 - .incbin "baserom.gba", 0x970040, 0x0000856 - -gUnk_08970896:: @ 08970896 - .incbin "baserom.gba", 0x970896, 0x000076B - -gUnk_08971001:: @ 08971001 - .incbin "baserom.gba", 0x971001, 0x000005A - -gUnk_0897105B:: @ 0897105B - .incbin "baserom.gba", 0x97105B, 0x0001D85 - -gUnk_08972DE0:: @ 08972DE0 - .incbin "baserom.gba", 0x972DE0, 0x0001553 - -gUnk_08974333:: @ 08974333 - .incbin "baserom.gba", 0x974333, 0x0001200 - -gUnk_08975533:: @ 08975533 - .incbin "baserom.gba", 0x975533, 0x00022AB - -gUnk_089777DE:: @ 089777DE - .incbin "baserom.gba", 0x9777DE, 0x0001DB0 - -gUnk_0897958E:: @ 0897958E - .incbin "baserom.gba", 0x97958E, 0x0001C62 - -gUnk_0897B1F0:: @ 0897B1F0 - .incbin "baserom.gba", 0x97B1F0, 0x00007A7 - -gUnk_0897B997:: @ 0897B997 - .incbin "baserom.gba", 0x97B997, 0x0004669 - -gUnk_08980000:: @ 08980000 - .incbin "baserom.gba", 0x980000, 0x0000012 - -gUnk_08980012:: @ 08980012 - .incbin "baserom.gba", 0x980012, 0x0000196 - -gUnk_089801A8:: @ 089801A8 - .incbin "baserom.gba", 0x9801A8, 0x0001769 - -gUnk_08981911:: @ 08981911 - .incbin "baserom.gba", 0x981911, 0x00018EF - -gUnk_08983200:: @ 08983200 - .incbin "baserom.gba", 0x983200, 0x00002AD - -gUnk_089834AD:: @ 089834AD - .incbin "baserom.gba", 0x9834AD, 0x00010A8 - -gUnk_08984555:: @ 08984555 - .incbin "baserom.gba", 0x984555, 0x0001AAB - -gUnk_08986000:: @ 08986000 - .incbin "baserom.gba", 0x986000, 0x000189E - -gUnk_0898789E:: @ 0898789E - .incbin "baserom.gba", 0x98789E, 0x0000074 - -gUnk_08987912:: @ 08987912 - .incbin "baserom.gba", 0x987912, 0x0000CEE - -gUnk_08988600:: @ 08988600 - .incbin "baserom.gba", 0x988600, 0x0000178 - -gUnk_08988778:: @ 08988778 - .incbin "baserom.gba", 0x988778, 0x0000110 - -gUnk_08988888:: @ 08988888 - .incbin "baserom.gba", 0x988888, 0x0000F77 - -gUnk_089897FF:: @ 089897FF - .incbin "baserom.gba", 0x9897FF, 0x000009F - -gUnk_0898989E:: @ 0898989E - .incbin "baserom.gba", 0x98989E, 0x000000C - -gUnk_089898AA:: @ 089898AA - .incbin "baserom.gba", 0x9898AA, 0x0000176 - -gUnk_08989A20:: @ 08989A20 - .incbin "baserom.gba", 0x989A20, 0x00004CE - -gUnk_08989EEE:: @ 08989EEE - .incbin "baserom.gba", 0x989EEE, 0x00011C9 - -gUnk_0898B0B7:: @ 0898B0B7 - .incbin "baserom.gba", 0x98B0B7, 0x00008D2 - -gUnk_0898B989:: @ 0898B989 - .incbin "baserom.gba", 0x98B989, 0x0001455 - -gUnk_0898CDDE:: @ 0898CDDE - .incbin "baserom.gba", 0x98CDDE, 0x0002222 - -gUnk_0898F000:: @ 0898F000 - .incbin "baserom.gba", 0x98F000, 0x0000799 - -gUnk_0898F799:: @ 0898F799 - .incbin "baserom.gba", 0x98F799, 0x0000755 - -gUnk_0898FEEE:: @ 0898FEEE - .incbin "baserom.gba", 0x98FEEE, 0x0000112 - -gUnk_08990000:: @ 08990000 - .incbin "baserom.gba", 0x990000, 0x000001B - -gUnk_0899001B:: @ 0899001B - .incbin "baserom.gba", 0x99001B, 0x00000B3 - -gUnk_089900CE:: @ 089900CE - .incbin "baserom.gba", 0x9900CE, 0x0000001 - -gUnk_089900CF:: @ 089900CF - .incbin "baserom.gba", 0x9900CF, 0x0000070 - -gUnk_0899013F:: @ 0899013F - .incbin "baserom.gba", 0x99013F, 0x0000001 - -gUnk_08990140:: @ 08990140 - .incbin "baserom.gba", 0x990140, 0x0000030 - -gUnk_08990170:: @ 08990170 - .incbin "baserom.gba", 0x990170, 0x0000098 - -gUnk_08990208:: @ 08990208 - .incbin "baserom.gba", 0x990208, 0x0000108 - -gUnk_08990310:: @ 08990310 - .incbin "baserom.gba", 0x990310, 0x00002F0 - -gUnk_08990600:: @ 08990600 - .incbin "baserom.gba", 0x990600, 0x0000400 - -gUnk_08990A00:: @ 08990A00 - .incbin "baserom.gba", 0x990A00, 0x000177A - -gUnk_0899217A:: @ 0899217A - .incbin "baserom.gba", 0x99217A, 0x0000C74 - -gUnk_08992DEE:: @ 08992DEE - .incbin "baserom.gba", 0x992DEE, 0x00000F4 - -gUnk_08992EE2:: @ 08992EE2 - .incbin "baserom.gba", 0x992EE2, 0x000000B - -gUnk_08992EED:: @ 08992EED - .incbin "baserom.gba", 0x992EED, 0x0000813 - -gUnk_08993700:: @ 08993700 - .incbin "baserom.gba", 0x993700, 0x0000B44 - -gUnk_08994244:: @ 08994244 - .incbin "baserom.gba", 0x994244, 0x0001311 - -gUnk_08995555:: @ 08995555 - .incbin "baserom.gba", 0x995555, 0x00019AB - -gUnk_08996F00:: @ 08996F00 - .incbin "baserom.gba", 0x996F00, 0x0000755 - -gUnk_08997655:: @ 08997655 - .incbin "baserom.gba", 0x997655, 0x000061C - -gUnk_08997C71:: @ 08997C71 - .incbin "baserom.gba", 0x997C71, 0x0000B27 - -gUnk_08998798:: @ 08998798 - .incbin "baserom.gba", 0x998798, 0x00000EF - -gUnk_08998887:: @ 08998887 - .incbin "baserom.gba", 0x998887, 0x0000001 - -gUnk_08998888:: @ 08998888 - .incbin "baserom.gba", 0x998888, 0x0000028 - -gUnk_089988B0:: @ 089988B0 - .incbin "baserom.gba", 0x9988B0, 0x00000A5 - -gUnk_08998955:: @ 08998955 - .incbin "baserom.gba", 0x998955, 0x0000034 - -gUnk_08998989:: @ 08998989 - .incbin "baserom.gba", 0x998989, 0x0000177 - -gUnk_08998B00:: @ 08998B00 - .incbin "baserom.gba", 0x998B00, 0x0000488 - -gUnk_08998F88:: @ 08998F88 - .incbin "baserom.gba", 0x998F88, 0x0000057 - -gUnk_08998FDF:: @ 08998FDF - .incbin "baserom.gba", 0x998FDF, 0x00002FF - -gUnk_089992DE:: @ 089992DE - .incbin "baserom.gba", 0x9992DE, 0x0000004 - -gUnk_089992E2:: @ 089992E2 - .incbin "baserom.gba", 0x9992E2, 0x000058E - -gUnk_08999870:: @ 08999870 - .incbin "baserom.gba", 0x999870, 0x0000004 - -gUnk_08999874:: @ 08999874 - .incbin "baserom.gba", 0x999874, 0x0000013 - -gUnk_08999887:: @ 08999887 - .incbin "baserom.gba", 0x999887, 0x0000013 - -gUnk_0899989A:: @ 0899989A - .incbin "baserom.gba", 0x99989A, 0x0000001 - -gUnk_0899989B:: @ 0899989B - .incbin "baserom.gba", 0x99989B, 0x0000066 - -gUnk_08999901:: @ 08999901 - .incbin "baserom.gba", 0x999901, 0x0000021 - -gUnk_08999922:: @ 08999922 - .incbin "baserom.gba", 0x999922, 0x000005E - -gUnk_08999980:: @ 08999980 - .incbin "baserom.gba", 0x999980, 0x0000007 - -gUnk_08999987:: @ 08999987 - .incbin "baserom.gba", 0x999987, 0x0000001 - -gUnk_08999988:: @ 08999988 - .incbin "baserom.gba", 0x999988, 0x0000001 - -gUnk_08999989:: @ 08999989 - .incbin "baserom.gba", 0x999989, 0x0000001 - -gUnk_0899998A:: @ 0899998A - .incbin "baserom.gba", 0x99998A, 0x000000E - -gUnk_08999998:: @ 08999998 - .incbin "baserom.gba", 0x999998, 0x0000001 - -gUnk_08999999:: @ 08999999 - .incbin "baserom.gba", 0x999999, 0x0000013 - -gUnk_089999AC:: @ 089999AC - .incbin "baserom.gba", 0x9999AC, 0x0000010 - -gUnk_089999BC:: @ 089999BC - .incbin "baserom.gba", 0x9999BC, 0x000003C - -gUnk_089999F8:: @ 089999F8 - .incbin "baserom.gba", 0x9999F8, 0x00000B2 - -gUnk_08999AAA:: @ 08999AAA - .incbin "baserom.gba", 0x999AAA, 0x0000056 - -gUnk_08999B00:: @ 08999B00 - .incbin "baserom.gba", 0x999B00, 0x00000CC - -gUnk_08999BCC:: @ 08999BCC - .incbin "baserom.gba", 0x999BCC, 0x00003BC - -gUnk_08999F88:: @ 08999F88 - .incbin "baserom.gba", 0x999F88, 0x00008AB - -gUnk_0899A833:: @ 0899A833 - .incbin "baserom.gba", 0x99A833, 0x0000201 - -gUnk_0899AA34:: @ 0899AA34 - .incbin "baserom.gba", 0x99AA34, 0x0000075 - -gUnk_0899AAA9:: @ 0899AAA9 - .incbin "baserom.gba", 0x99AAA9, 0x0000012 - -gUnk_0899AABB:: @ 0899AABB - .incbin "baserom.gba", 0x99AABB, 0x0000545 - -gUnk_0899B000:: @ 0899B000 - .incbin "baserom.gba", 0x99B000, 0x00003FF - -gUnk_0899B3FF:: @ 0899B3FF - .incbin "baserom.gba", 0x99B3FF, 0x000059A - -gUnk_0899B999:: @ 0899B999 - .incbin "baserom.gba", 0x99B999, 0x0000006 - -gUnk_0899B99F:: @ 0899B99F - .incbin "baserom.gba", 0x99B99F, 0x0000620 - -gUnk_0899BFBF:: @ 0899BFBF - .incbin "baserom.gba", 0x99BFBF, 0x000003A - -gUnk_0899BFF9:: @ 0899BFF9 - .incbin "baserom.gba", 0x99BFF9, 0x0000708 - -gUnk_0899C701:: @ 0899C701 - .incbin "baserom.gba", 0x99C701, 0x00027ED - -gUnk_0899EEEE:: @ 0899EEEE - .incbin "baserom.gba", 0x99EEEE, 0x000012D - -gUnk_0899F01B:: @ 0899F01B - .incbin "baserom.gba", 0x99F01B, 0x0000FE6 - -gUnk_089A0001:: @ 089A0001 - .incbin "baserom.gba", 0x9A0001, 0x0000087 - -gUnk_089A0088:: @ 089A0088 - .incbin "baserom.gba", 0x9A0088, 0x0000811 - -gUnk_089A0899:: @ 089A0899 - .incbin "baserom.gba", 0x9A0899, 0x00000F7 - -gUnk_089A0990:: @ 089A0990 - .incbin "baserom.gba", 0x9A0990, 0x0000B3C - -gUnk_089A14CC:: @ 089A14CC - .incbin "baserom.gba", 0x9A14CC, 0x0001B34 - -gUnk_089A3000:: @ 089A3000 - .incbin "baserom.gba", 0x9A3000, 0x0000D18 - -gUnk_089A3D18:: @ 089A3D18 - .incbin "baserom.gba", 0x9A3D18, 0x000073D - -gUnk_089A4455:: @ 089A4455 - .incbin "baserom.gba", 0x9A4455, 0x0001188 - -gUnk_089A55DD:: @ 089A55DD - .incbin "baserom.gba", 0x9A55DD, 0x0002E3B - -gUnk_089A8418:: @ 089A8418 - .incbin "baserom.gba", 0x9A8418, 0x00013E7 - -gUnk_089A97FF:: @ 089A97FF - .incbin "baserom.gba", 0x9A97FF, 0x000019A - -gUnk_089A9999:: @ 089A9999 - .incbin "baserom.gba", 0x9A9999, 0x0000101 - -gUnk_089A9A9A:: @ 089A9A9A - .incbin "baserom.gba", 0x9A9A9A, 0x0000F00 - -gUnk_089AA99A:: @ 089AA99A - .incbin "baserom.gba", 0x9AA99A, 0x0000089 - -gUnk_089AAA23:: @ 089AAA23 - .incbin "baserom.gba", 0x9AAA23, 0x0000087 - -gUnk_089AAAAA:: @ 089AAAAA - .incbin "baserom.gba", 0x9AAAAA, 0x0000111 - -gUnk_089AABBB:: @ 089AABBB - .incbin "baserom.gba", 0x9AABBB, 0x0000011 - -gUnk_089AABCC:: @ 089AABCC - .incbin "baserom.gba", 0x9AABCC, 0x0000FEF - -gUnk_089ABBBB:: @ 089ABBBB - .incbin "baserom.gba", 0x9ABBBB, 0x0000A33 - -gUnk_089AC5EE:: @ 089AC5EE - .incbin "baserom.gba", 0x9AC5EE, 0x00018ED - -gUnk_089ADEDB:: @ 089ADEDB - .incbin "baserom.gba", 0x9ADEDB, 0x0002125 - -gUnk_089B0000:: @ 089B0000 - .incbin "baserom.gba", 0x9B0000, 0x00002BC - -gUnk_089B02BC:: @ 089B02BC - .incbin "baserom.gba", 0x9B02BC, 0x0000054 - -gUnk_089B0310:: @ 089B0310 - .incbin "baserom.gba", 0x9B0310, 0x0000CF0 - -gUnk_089B1000:: @ 089B1000 - .incbin "baserom.gba", 0x9B1000, 0x0000D90 diff --git a/data/data_081320FC.s b/data/data_081320FC.s new file mode 100755 index 00000000..ce4cf4a5 --- /dev/null +++ b/data/data_081320FC.s @@ -0,0 +1,14855 @@ + .include "asm/macros.inc" + .include "constants/constants.inc" + + .section .rodata + .align 2 + +gUnk_081320FC:: @ 081320FC + .incbin "baserom.gba", 0x1320FC, 0x0000010 + +gUnk_0813210C:: @ 0813210C + .incbin "baserom.gba", 0x13210C, 0x0000113 + +gUnk_0813221F:: @ 0813221F + .incbin "baserom.gba", 0x13221F, 0x0000011 + +gUnk_08132230:: @ 08132230 + .incbin "baserom.gba", 0x132230, 0x0000002 + +gUnk_08132232:: @ 08132232 + .incbin "baserom.gba", 0x132232, 0x00000F2 + +gUnk_08132324:: @ 08132324 + .incbin "baserom.gba", 0x132324, 0x0000038 + +gUnk_0813235C:: @ 0813235C + .incbin "baserom.gba", 0x13235C, 0x0000050 + +gUnk_081323AC:: @ 081323AC + .incbin "baserom.gba", 0x1323AC, 0x0000030 + +gUnk_081323DC:: @ 081323DC + .incbin "baserom.gba", 0x1323DC, 0x0000030 + +gUnk_0813240C:: @ 0813240C + .incbin "baserom.gba", 0x13240C, 0x0000010 + +gUnk_0813241C:: @ 0813241C + .incbin "baserom.gba", 0x13241C, 0x0000010 + +gUnk_0813242C:: @ 0813242C + .incbin "baserom.gba", 0x13242C, 0x0000020 + +gUnk_0813244C:: @ 0813244C + .incbin "baserom.gba", 0x13244C, 0x0000040 + +gUnk_0813248C:: @ 0813248C + .incbin "baserom.gba", 0x13248C, 0x0000020 + +gUnk_081324AC:: @ 081324AC + .incbin "baserom.gba", 0x1324AC, 0x0000040 + +gUnk_081324EC:: @ 081324EC + .incbin "baserom.gba", 0x1324EC, 0x000001A + +gUnk_08132506:: @ 08132506 + .incbin "baserom.gba", 0x132506, 0x0000006 + +gUnk_0813250C:: @ 0813250C + .incbin "baserom.gba", 0x13250C, 0x0000020 + +gUnk_0813252C:: @ 0813252C + .incbin "baserom.gba", 0x13252C, 0x0000040 + +gUnk_0813256C:: @ 0813256C + .incbin "baserom.gba", 0x13256C, 0x0000050 + +gUnk_081325BC:: @ 081325BC + .incbin "baserom.gba", 0x1325BC, 0x0000065 + +gUnk_08132621:: @ 08132621 + .incbin "baserom.gba", 0x132621, 0x0000012 + +gUnk_08132633:: @ 08132633 + .incbin "baserom.gba", 0x132633, 0x0000069 + +gUnk_0813269C:: @ 0813269C + .incbin "baserom.gba", 0x13269C, 0x0000030 + +gUnk_081326CC:: @ 081326CC + .incbin "baserom.gba", 0x1326CC, 0x0000020 + +gUnk_081326EC:: @ 081326EC + .incbin "baserom.gba", 0x1326EC, 0x0000014 + +gUnk_08132700:: @ 08132700 + .incbin "baserom.gba", 0x132700, 0x0000014 + +gUnk_08132714:: @ 08132714 + .incbin "baserom.gba", 0x132714, 0x0000020 + +gUnk_08132734:: @ 08132734 + .incbin "baserom.gba", 0x132734, 0x0000001 + +gUnk_08132735:: @ 08132735 + .incbin "baserom.gba", 0x132735, 0x0000001 + +gUnk_08132736:: @ 08132736 + .incbin "baserom.gba", 0x132736, 0x000000E + +gUnk_08132744:: @ 08132744 + .incbin "baserom.gba", 0x132744, 0x0000010 + +gUnk_08132754:: @ 08132754 + .incbin "baserom.gba", 0x132754, 0x0000010 + +gUnk_08132764:: @ 08132764 + .incbin "baserom.gba", 0x132764, 0x0000010 + +gUnk_08132774:: @ 08132774 + .incbin "baserom.gba", 0x132774, 0x0000010 + +gUnk_08132784:: @ 08132784 + .incbin "baserom.gba", 0x132784, 0x0000010 + +gUnk_08132794:: @ 08132794 + .incbin "baserom.gba", 0x132794, 0x0000018 + +gUnk_081327AC:: @ 081327AC + .incbin "baserom.gba", 0x1327AC, 0x0000018 + +gUnk_081327C4:: @ 081327C4 + .incbin "baserom.gba", 0x1327C4, 0x0000018 + +gUnk_081327DC:: @ 081327DC + .incbin "baserom.gba", 0x1327DC, 0x0000034 + +gUnk_08132810:: @ 08132810 + .incbin "baserom.gba", 0x132810, 0x0000017 + +gUnk_08132827:: @ 08132827 + .incbin "baserom.gba", 0x132827, 0x00002B9 + +gUnk_08132AE0:: @ 08132AE0 + .incbin "baserom.gba", 0x132AE0, 0x000000A + +gUnk_08132AEA:: @ 08132AEA + .incbin "baserom.gba", 0x132AEA, 0x000000A + +gUnk_08132AF4:: @ 08132AF4 + .incbin "baserom.gba", 0x132AF4, 0x000000A + +gUnk_08132AFE:: @ 08132AFE + .incbin "baserom.gba", 0x132AFE, 0x000000E + +gUnk_08132B0C:: @ 08132B0C + .incbin "baserom.gba", 0x132B0C, 0x000000E + +gUnk_08132B1A:: @ 08132B1A + .incbin "baserom.gba", 0x132B1A, 0x000000E + +gUnk_08132B28:: @ 08132B28 + .incbin "baserom.gba", 0x132B28, 0x0000008 + +gUnk_08132B30:: @ 08132B30 + .incbin "baserom.gba", 0x132B30, 0x0000203 + +gUnk_08132D33:: @ 08132D33 + .incbin "baserom.gba", 0x132D33, 0x00002E6 + +gUnk_08133019:: @ 08133019 + .incbin "baserom.gba", 0x133019, 0x00000F8 + +gUnk_08133111:: @ 08133111 + .incbin "baserom.gba", 0x133111, 0x0000200 + +gUnk_08133311:: @ 08133311 + .incbin "baserom.gba", 0x133311, 0x0000022 + +gUnk_08133333:: @ 08133333 + .incbin "baserom.gba", 0x133333, 0x0000035 + +gUnk_08133368:: @ 08133368 + .incbin "baserom.gba", 0x133368, 0x00005B0 + +gUnk_08133918:: @ 08133918 + .incbin "baserom.gba", 0x133918, 0x0000020 + +gUnk_08133938:: @ 08133938 + .incbin "baserom.gba", 0x133938, 0x0000020 + +gUnk_08133958:: @ 08133958 + .incbin "baserom.gba", 0x133958, 0x0000020 + +gUnk_08133978:: @ 08133978 + .incbin "baserom.gba", 0x133978, 0x0000020 + +gUnk_08133998:: @ 08133998 + .incbin "baserom.gba", 0x133998, 0x0000020 + +gUnk_081339B8:: @ 081339B8 + .incbin "baserom.gba", 0x1339B8, 0x0000020 + +gUnk_081339D8:: @ 081339D8 + .incbin "baserom.gba", 0x1339D8, 0x0000020 + +gUnk_081339F8:: @ 081339F8 + .incbin "baserom.gba", 0x1339F8, 0x0000020 + +gUnk_08133A18:: @ 08133A18 + .incbin "baserom.gba", 0x133A18, 0x0000028 + +gUnk_08133A40:: @ 08133A40 + .incbin "baserom.gba", 0x133A40, 0x000001A + +gUnk_08133A5A:: @ 08133A5A + .incbin "baserom.gba", 0x133A5A, 0x000000D + +gUnk_08133A67:: @ 08133A67 + .incbin "baserom.gba", 0x133A67, 0x00004E1 + +gUnk_08133F48:: @ 08133F48 + .incbin "baserom.gba", 0x133F48, 0x0000080 + +gUnk_08133FC8:: @ 08133FC8 + .incbin "baserom.gba", 0x133FC8, 0x0000014 + +gUnk_08133FDC:: @ 08133FDC + .incbin "baserom.gba", 0x133FDC, 0x0000100 + +gUnk_081340DC:: @ 081340DC + .incbin "baserom.gba", 0x1340DC, 0x000012C + +gUnk_08134208:: @ 08134208 + .incbin "baserom.gba", 0x134208, 0x0000004 + +gUnk_0813420C:: @ 0813420C + .incbin "baserom.gba", 0x13420C, 0x00000DC + +gUnk_081342E8:: @ 081342E8 + .incbin "baserom.gba", 0x1342E8, 0x000004B + +gUnk_08134333:: @ 08134333 + .incbin "baserom.gba", 0x134333, 0x0000005 + +gUnk_08134338:: @ 08134338 + .incbin "baserom.gba", 0x134338, 0x0000008 + +gUnk_08134340:: @ 08134340 + .incbin "baserom.gba", 0x134340, 0x00000C8 + +gUnk_08134408:: @ 08134408 + .incbin "baserom.gba", 0x134408, 0x0000004 + +gUnk_0813440C:: @ 0813440C + .incbin "baserom.gba", 0x13440C, 0x0000032 + +gUnk_0813443E:: @ 0813443E + .incbin "baserom.gba", 0x13443E, 0x000000A + +gUnk_08134448:: @ 08134448 + .incbin "baserom.gba", 0x134448, 0x0000014 + +gUnk_0813445C:: @ 0813445C + .incbin "baserom.gba", 0x13445C, 0x0000028 + +gUnk_08134484:: @ 08134484 + .incbin "baserom.gba", 0x134484, 0x0000028 + +gUnk_081344AC:: @ 081344AC + .incbin "baserom.gba", 0x1344AC, 0x0000018 + +gUnk_081344C4:: @ 081344C4 + .incbin "baserom.gba", 0x1344C4, 0x00002D0 + +gUnk_08134794:: @ 08134794 + .incbin "baserom.gba", 0x134794, 0x0000004 + +gUnk_08134798:: @ 08134798 + .incbin "baserom.gba", 0x134798, 0x0000028 + +gUnk_081347C0:: @ 081347C0 + .incbin "baserom.gba", 0x1347C0, 0x0000004 + +gUnk_081347C4:: @ 081347C4 + .incbin "baserom.gba", 0x1347C4, 0x000003C + +gUnk_08134800:: @ 08134800 + .incbin "baserom.gba", 0x134800, 0x0000050 + +gUnk_08134850:: @ 08134850 + .incbin "baserom.gba", 0x134850, 0x00000B4 + +gUnk_08134904:: @ 08134904 + .incbin "baserom.gba", 0x134904, 0x0000064 + +gUnk_08134968:: @ 08134968 + .incbin "baserom.gba", 0x134968, 0x00000C8 + +gUnk_08134A30:: @ 08134A30 + .incbin "baserom.gba", 0x134A30, 0x0000014 + +gUnk_08134A44:: @ 08134A44 + .incbin "baserom.gba", 0x134A44, 0x0000028 + +gUnk_08134A6C:: @ 08134A6C + .incbin "baserom.gba", 0x134A6C, 0x00000A0 + +gUnk_08134B0C:: @ 08134B0C + .incbin "baserom.gba", 0x134B0C, 0x000003C + +gUnk_08134B48:: @ 08134B48 + .incbin "baserom.gba", 0x134B48, 0x0000028 + +gUnk_08134B70:: @ 08134B70 + .incbin "baserom.gba", 0x134B70, 0x000003C + +gUnk_08134BAC:: @ 08134BAC + .incbin "baserom.gba", 0x134BAC, 0x0000038 + +gUnk_08134BE4:: @ 08134BE4 + .incbin "baserom.gba", 0x134BE4, 0x00000A4 + +gUnk_08134C88:: @ 08134C88 + .incbin "baserom.gba", 0x134C88, 0x0000140 + +gUnk_08134DC8:: @ 08134DC8 + .incbin "baserom.gba", 0x134DC8, 0x00000DC + +gUnk_08134EA4:: @ 08134EA4 + .incbin "baserom.gba", 0x134EA4, 0x000003C + +gUnk_08134EE0:: @ 08134EE0 + .incbin "baserom.gba", 0x134EE0, 0x0000028 + +gUnk_08134F08:: @ 08134F08 + .incbin "baserom.gba", 0x134F08, 0x0000028 + +gUnk_08134F30:: @ 08134F30 + .incbin "baserom.gba", 0x134F30, 0x000008C + +gUnk_08134FBC:: @ 08134FBC + .incbin "baserom.gba", 0x134FBC, 0x000008C + +gUnk_08135048:: @ 08135048 + .incbin "baserom.gba", 0x135048, 0x0000028 + +gUnk_08135070:: @ 08135070 + .incbin "baserom.gba", 0x135070, 0x0000004 + +gUnk_08135074:: @ 08135074 + .incbin "baserom.gba", 0x135074, 0x0000028 + +gUnk_0813509C:: @ 0813509C + .incbin "baserom.gba", 0x13509C, 0x0000004 + +gUnk_081350A0:: @ 081350A0 + .incbin "baserom.gba", 0x1350A0, 0x00000C8 + +gUnk_08135168:: @ 08135168 + .incbin "baserom.gba", 0x135168, 0x0000028 + +gUnk_08135190:: @ 08135190 + .incbin "baserom.gba", 0x135190, 0x000003C + +gUnk_081351CC:: @ 081351CC + .incbin "baserom.gba", 0x1351CC, 0x0000008 + +gUnk_081351D4:: @ 081351D4 + .incbin "baserom.gba", 0x1351D4, 0x0000104 + +gUnk_081352D8:: @ 081352D8 + .incbin "baserom.gba", 0x1352D8, 0x0000004 + +gUnk_081352DC:: @ 081352DC + .incbin "baserom.gba", 0x1352DC, 0x0000028 + +gUnk_08135304:: @ 08135304 + .incbin "baserom.gba", 0x135304, 0x0000028 + +gUnk_0813532C:: @ 0813532C + .incbin "baserom.gba", 0x13532C, 0x0000028 + +gUnk_08135354:: @ 08135354 + .incbin "baserom.gba", 0x135354, 0x0000028 + +gUnk_0813537C:: @ 0813537C + .incbin "baserom.gba", 0x13537C, 0x0000028 + +gUnk_081353A4:: @ 081353A4 + .incbin "baserom.gba", 0x1353A4, 0x000003C + +gUnk_081353E0:: @ 081353E0 + .incbin "baserom.gba", 0x1353E0, 0x000003C + +gUnk_0813541C:: @ 0813541C + .incbin "baserom.gba", 0x13541C, 0x000003C + +gUnk_08135458:: @ 08135458 + .incbin "baserom.gba", 0x135458, 0x000003C + +gUnk_08135494:: @ 08135494 + .incbin "baserom.gba", 0x135494, 0x000003C + +gUnk_081354D0:: @ 081354D0 + .incbin "baserom.gba", 0x1354D0, 0x0000054 + +gUnk_08135524:: @ 08135524 + .incbin "baserom.gba", 0x135524, 0x0000028 + +gUnk_0813554C:: @ 0813554C + .incbin "baserom.gba", 0x13554C, 0x0000004 + +gUnk_08135550:: @ 08135550 + .incbin "baserom.gba", 0x135550, 0x0000028 + +gUnk_08135578:: @ 08135578 + .incbin "baserom.gba", 0x135578, 0x0000004 + +gUnk_0813557C:: @ 0813557C + .incbin "baserom.gba", 0x13557C, 0x0000118 + +gUnk_08135694:: @ 08135694 + .incbin "baserom.gba", 0x135694, 0x0000028 + +gUnk_081356BC:: @ 081356BC + .incbin "baserom.gba", 0x1356BC, 0x0000010 + +gUnk_081356CC:: @ 081356CC + .incbin "baserom.gba", 0x1356CC, 0x0000078 + +gUnk_08135744:: @ 08135744 + .incbin "baserom.gba", 0x135744, 0x0000004 + +gUnk_08135748:: @ 08135748 + .incbin "baserom.gba", 0x135748, 0x000002F + +gUnk_08135777:: @ 08135777 + .incbin "baserom.gba", 0x135777, 0x000000D + +gUnk_08135784:: @ 08135784 + .incbin "baserom.gba", 0x135784, 0x000003C + +gUnk_081357C0:: @ 081357C0 + .incbin "baserom.gba", 0x1357C0, 0x0000028 + +gUnk_081357E8:: @ 081357E8 + .incbin "baserom.gba", 0x1357E8, 0x0000028 + +gUnk_08135810:: @ 08135810 + .incbin "baserom.gba", 0x135810, 0x000003C + +gUnk_0813584C:: @ 0813584C + .incbin "baserom.gba", 0x13584C, 0x0000014 + +gUnk_08135860:: @ 08135860 + .incbin "baserom.gba", 0x135860, 0x0000028 + +gUnk_08135888:: @ 08135888 + .incbin "baserom.gba", 0x135888, 0x0000028 + +gUnk_081358B0:: @ 081358B0 + .incbin "baserom.gba", 0x1358B0, 0x000003C + +gUnk_081358EC:: @ 081358EC + .incbin "baserom.gba", 0x1358EC, 0x000003C + +gUnk_08135928:: @ 08135928 + .incbin "baserom.gba", 0x135928, 0x0000010 + +gUnk_08135938:: @ 08135938 + .incbin "baserom.gba", 0x135938, 0x000003C + +gUnk_08135974:: @ 08135974 + .incbin "baserom.gba", 0x135974, 0x0000010 + +gUnk_08135984:: @ 08135984 + .incbin "baserom.gba", 0x135984, 0x0000028 + +gUnk_081359AC:: @ 081359AC + .incbin "baserom.gba", 0x1359AC, 0x0000028 + +gUnk_081359D4:: @ 081359D4 + .incbin "baserom.gba", 0x1359D4, 0x000003C + +gUnk_08135A10:: @ 08135A10 + .incbin "baserom.gba", 0x135A10, 0x0000028 + +gUnk_08135A38:: @ 08135A38 + .incbin "baserom.gba", 0x135A38, 0x0000028 + +gUnk_08135A60:: @ 08135A60 + .incbin "baserom.gba", 0x135A60, 0x0000028 + +gUnk_08135A88:: @ 08135A88 + .incbin "baserom.gba", 0x135A88, 0x0000028 + +gUnk_08135AB0:: @ 08135AB0 + .incbin "baserom.gba", 0x135AB0, 0x0000028 + +gUnk_08135AD8:: @ 08135AD8 + .incbin "baserom.gba", 0x135AD8, 0x0000028 + +gUnk_08135B00:: @ 08135B00 + .incbin "baserom.gba", 0x135B00, 0x000003C + +gUnk_08135B3C:: @ 08135B3C + .incbin "baserom.gba", 0x135B3C, 0x0000028 + +gUnk_08135B64:: @ 08135B64 + .incbin "baserom.gba", 0x135B64, 0x0000028 + +gUnk_08135B8C:: @ 08135B8C + .incbin "baserom.gba", 0x135B8C, 0x0000028 + +gUnk_08135BB4:: @ 08135BB4 + .incbin "baserom.gba", 0x135BB4, 0x0000028 + +gUnk_08135BDC:: @ 08135BDC + .incbin "baserom.gba", 0x135BDC, 0x0000028 + +gUnk_08135C04:: @ 08135C04 + .incbin "baserom.gba", 0x135C04, 0x0000028 + +gUnk_08135C2C:: @ 08135C2C + .incbin "baserom.gba", 0x135C2C, 0x0000028 + +gUnk_08135C54:: @ 08135C54 + .incbin "baserom.gba", 0x135C54, 0x0000028 + +gUnk_08135C7C:: @ 08135C7C + .incbin "baserom.gba", 0x135C7C, 0x0000028 + +gUnk_08135CA4:: @ 08135CA4 + .incbin "baserom.gba", 0x135CA4, 0x0000028 + +gUnk_08135CCC:: @ 08135CCC + .incbin "baserom.gba", 0x135CCC, 0x0000028 + +gUnk_08135CF4:: @ 08135CF4 + .incbin "baserom.gba", 0x135CF4, 0x0000028 + +gUnk_08135D1C:: @ 08135D1C + .incbin "baserom.gba", 0x135D1C, 0x0000028 + +gUnk_08135D44:: @ 08135D44 + .incbin "baserom.gba", 0x135D44, 0x00000A0 + +gUnk_08135DE4:: @ 08135DE4 + .incbin "baserom.gba", 0x135DE4, 0x000008C + +gUnk_08135E70:: @ 08135E70 + .incbin "baserom.gba", 0x135E70, 0x00000B4 + +gUnk_08135F24:: @ 08135F24 + .incbin "baserom.gba", 0x135F24, 0x00000B4 + +gUnk_08135FD8:: @ 08135FD8 + .incbin "baserom.gba", 0x135FD8, 0x0000028 + +gUnk_08136000:: @ 08136000 + .incbin "baserom.gba", 0x136000, 0x0000028 + +gUnk_08136028:: @ 08136028 + .incbin "baserom.gba", 0x136028, 0x0000014 + +gUnk_0813603C:: @ 0813603C + .incbin "baserom.gba", 0x13603C, 0x0000050 + +gUnk_0813608C:: @ 0813608C + .incbin "baserom.gba", 0x13608C, 0x0000014 + +gUnk_081360A0:: @ 081360A0 + .incbin "baserom.gba", 0x1360A0, 0x0000028 + +gUnk_081360C8:: @ 081360C8 + .incbin "baserom.gba", 0x1360C8, 0x0000004 + +gUnk_081360CC:: @ 081360CC + .incbin "baserom.gba", 0x1360CC, 0x0000028 + +gUnk_081360F4:: @ 081360F4 + .incbin "baserom.gba", 0x1360F4, 0x0000028 + +gUnk_0813611C:: @ 0813611C + .incbin "baserom.gba", 0x13611C, 0x0000028 + +gUnk_08136144:: @ 08136144 + .incbin "baserom.gba", 0x136144, 0x0000028 + +gUnk_0813616C:: @ 0813616C + .incbin "baserom.gba", 0x13616C, 0x0000028 + +gUnk_08136194:: @ 08136194 + .incbin "baserom.gba", 0x136194, 0x0000028 + +gUnk_081361BC:: @ 081361BC + .incbin "baserom.gba", 0x1361BC, 0x0000028 + +gUnk_081361E4:: @ 081361E4 + .incbin "baserom.gba", 0x1361E4, 0x0000028 + +gUnk_0813620C:: @ 0813620C + .incbin "baserom.gba", 0x13620C, 0x0000028 + +gUnk_08136234:: @ 08136234 + .incbin "baserom.gba", 0x136234, 0x0000028 + +gUnk_0813625C:: @ 0813625C + .incbin "baserom.gba", 0x13625C, 0x0000028 + +gUnk_08136284:: @ 08136284 + .incbin "baserom.gba", 0x136284, 0x0000028 + +gUnk_081362AC:: @ 081362AC + .incbin "baserom.gba", 0x1362AC, 0x0000028 + +gUnk_081362D4:: @ 081362D4 + .incbin "baserom.gba", 0x1362D4, 0x000003C + +gUnk_08136310:: @ 08136310 + .incbin "baserom.gba", 0x136310, 0x0000028 + +gUnk_08136338:: @ 08136338 + .incbin "baserom.gba", 0x136338, 0x0000014 + +gUnk_0813634C:: @ 0813634C + .incbin "baserom.gba", 0x13634C, 0x0000028 + +gUnk_08136374:: @ 08136374 + .incbin "baserom.gba", 0x136374, 0x0000028 + +gUnk_0813639C:: @ 0813639C + .incbin "baserom.gba", 0x13639C, 0x00000C0 + +gUnk_0813645C:: @ 0813645C + .incbin "baserom.gba", 0x13645C, 0x0000028 + +gUnk_08136484:: @ 08136484 + .incbin "baserom.gba", 0x136484, 0x0000028 + +gUnk_081364AC:: @ 081364AC + .incbin "baserom.gba", 0x1364AC, 0x0000028 + +gUnk_081364D4:: @ 081364D4 + .incbin "baserom.gba", 0x1364D4, 0x0000028 + +gUnk_081364FC:: @ 081364FC + .incbin "baserom.gba", 0x1364FC, 0x0000028 + +gUnk_08136524:: @ 08136524 + .incbin "baserom.gba", 0x136524, 0x0000028 + +gUnk_0813654C:: @ 0813654C + .incbin "baserom.gba", 0x13654C, 0x0000040 + +gUnk_0813658C:: @ 0813658C + .incbin "baserom.gba", 0x13658C, 0x0000028 + +gUnk_081365B4:: @ 081365B4 + .incbin "baserom.gba", 0x1365B4, 0x0000028 + +gUnk_081365DC:: @ 081365DC + .incbin "baserom.gba", 0x1365DC, 0x0000028 + +gUnk_08136604:: @ 08136604 + .incbin "baserom.gba", 0x136604, 0x0000010 + +gUnk_08136614:: @ 08136614 + .incbin "baserom.gba", 0x136614, 0x0000028 + +gUnk_0813663C:: @ 0813663C + .incbin "baserom.gba", 0x13663C, 0x0000028 + +gUnk_08136664:: @ 08136664 + .incbin "baserom.gba", 0x136664, 0x0000028 + +gUnk_0813668C:: @ 0813668C + .incbin "baserom.gba", 0x13668C, 0x0000028 + +gUnk_081366B4:: @ 081366B4 + .incbin "baserom.gba", 0x1366B4, 0x0000028 + +gUnk_081366DC:: @ 081366DC + .incbin "baserom.gba", 0x1366DC, 0x000003C + +gUnk_08136718:: @ 08136718 + .incbin "baserom.gba", 0x136718, 0x000003C + +gUnk_08136754:: @ 08136754 + .incbin "baserom.gba", 0x136754, 0x0000028 + +gUnk_0813677C:: @ 0813677C + .incbin "baserom.gba", 0x13677C, 0x0000028 + +gUnk_081367A4:: @ 081367A4 + .incbin "baserom.gba", 0x1367A4, 0x0000040 + +gUnk_081367E4:: @ 081367E4 + .incbin "baserom.gba", 0x1367E4, 0x000003C + +gUnk_08136820:: @ 08136820 + .incbin "baserom.gba", 0x136820, 0x0000028 + +gUnk_08136848:: @ 08136848 + .incbin "baserom.gba", 0x136848, 0x000003C + +gUnk_08136884:: @ 08136884 + .incbin "baserom.gba", 0x136884, 0x000003C + +gUnk_081368C0:: @ 081368C0 + .incbin "baserom.gba", 0x1368C0, 0x0000078 + +gUnk_08136938:: @ 08136938 + .incbin "baserom.gba", 0x136938, 0x0000028 + +gUnk_08136960:: @ 08136960 + .incbin "baserom.gba", 0x136960, 0x0000028 + +gUnk_08136988:: @ 08136988 + .incbin "baserom.gba", 0x136988, 0x0000028 + +gUnk_081369B0:: @ 081369B0 + .incbin "baserom.gba", 0x1369B0, 0x0000028 + +gUnk_081369D8:: @ 081369D8 + .incbin "baserom.gba", 0x1369D8, 0x000003C + +gUnk_08136A14:: @ 08136A14 + .incbin "baserom.gba", 0x136A14, 0x000003C + +gUnk_08136A50:: @ 08136A50 + .incbin "baserom.gba", 0x136A50, 0x0000028 + +gUnk_08136A78:: @ 08136A78 + .incbin "baserom.gba", 0x136A78, 0x0000080 + +gUnk_08136AF8:: @ 08136AF8 + .incbin "baserom.gba", 0x136AF8, 0x0000028 + +gUnk_08136B20:: @ 08136B20 + .incbin "baserom.gba", 0x136B20, 0x000003C + +gUnk_08136B5C:: @ 08136B5C + .incbin "baserom.gba", 0x136B5C, 0x0000028 + +gUnk_08136B84:: @ 08136B84 + .incbin "baserom.gba", 0x136B84, 0x0000028 + +gUnk_08136BAC:: @ 08136BAC + .incbin "baserom.gba", 0x136BAC, 0x000003C + +gUnk_08136BE8:: @ 08136BE8 + .incbin "baserom.gba", 0x136BE8, 0x0000028 + +gUnk_08136C10:: @ 08136C10 + .incbin "baserom.gba", 0x136C10, 0x000003C + +gUnk_08136C4C:: @ 08136C4C + .incbin "baserom.gba", 0x136C4C, 0x000003C + +gUnk_08136C88:: @ 08136C88 + .incbin "baserom.gba", 0x136C88, 0x000003C + +gUnk_08136CC4:: @ 08136CC4 + .incbin "baserom.gba", 0x136CC4, 0x000003C + +gUnk_08136D00:: @ 08136D00 + .incbin "baserom.gba", 0x136D00, 0x0000028 + +gUnk_08136D28:: @ 08136D28 + .incbin "baserom.gba", 0x136D28, 0x000003C + +gUnk_08136D64:: @ 08136D64 + .incbin "baserom.gba", 0x136D64, 0x000003C + +gUnk_08136DA0:: @ 08136DA0 + .incbin "baserom.gba", 0x136DA0, 0x0000028 + +gUnk_08136DC8:: @ 08136DC8 + .incbin "baserom.gba", 0x136DC8, 0x000003C + +gUnk_08136E04:: @ 08136E04 + .incbin "baserom.gba", 0x136E04, 0x0000014 + +gUnk_08136E18:: @ 08136E18 + .incbin "baserom.gba", 0x136E18, 0x0000028 + +gUnk_08136E40:: @ 08136E40 + .incbin "baserom.gba", 0x136E40, 0x0000080 + +gUnk_08136EC0:: @ 08136EC0 + .incbin "baserom.gba", 0x136EC0, 0x0000028 + +gUnk_08136EE8:: @ 08136EE8 + .incbin "baserom.gba", 0x136EE8, 0x0000028 + +gUnk_08136F10:: @ 08136F10 + .incbin "baserom.gba", 0x136F10, 0x0000028 + +gUnk_08136F38:: @ 08136F38 + .incbin "baserom.gba", 0x136F38, 0x0000028 + +gUnk_08136F60:: @ 08136F60 + .incbin "baserom.gba", 0x136F60, 0x0000028 + +gUnk_08136F88:: @ 08136F88 + .incbin "baserom.gba", 0x136F88, 0x0000028 + +gUnk_08136FB0:: @ 08136FB0 + .incbin "baserom.gba", 0x136FB0, 0x0000028 + +gUnk_08136FD8:: @ 08136FD8 + .incbin "baserom.gba", 0x136FD8, 0x000002D + +gUnk_08137005:: @ 08137005 + .incbin "baserom.gba", 0x137005, 0x0000013 + +gUnk_08137018:: @ 08137018 + .incbin "baserom.gba", 0x137018, 0x0000028 + +gUnk_08137040:: @ 08137040 + .incbin "baserom.gba", 0x137040, 0x0000028 + +gUnk_08137068:: @ 08137068 + .incbin "baserom.gba", 0x137068, 0x0000028 + +gUnk_08137090:: @ 08137090 + .incbin "baserom.gba", 0x137090, 0x0000028 + +gUnk_081370B8:: @ 081370B8 + .incbin "baserom.gba", 0x1370B8, 0x0000028 + +gUnk_081370E0:: @ 081370E0 + .incbin "baserom.gba", 0x1370E0, 0x0000014 + +gUnk_081370F4:: @ 081370F4 + .incbin "baserom.gba", 0x1370F4, 0x0000028 + +gUnk_0813711C:: @ 0813711C + .incbin "baserom.gba", 0x13711C, 0x0000028 + +gUnk_08137144:: @ 08137144 + .incbin "baserom.gba", 0x137144, 0x0000028 + +gUnk_0813716C:: @ 0813716C + .incbin "baserom.gba", 0x13716C, 0x0000028 + +gUnk_08137194:: @ 08137194 + .incbin "baserom.gba", 0x137194, 0x0000028 + +gUnk_081371BC:: @ 081371BC + .incbin "baserom.gba", 0x1371BC, 0x0000028 + +gUnk_081371E4:: @ 081371E4 + .incbin "baserom.gba", 0x1371E4, 0x0000028 + +gUnk_0813720C:: @ 0813720C + .incbin "baserom.gba", 0x13720C, 0x0000028 + +gUnk_08137234:: @ 08137234 + .incbin "baserom.gba", 0x137234, 0x0000014 + +gUnk_08137248:: @ 08137248 + .incbin "baserom.gba", 0x137248, 0x0000060 + +gUnk_081372A8:: @ 081372A8 + .incbin "baserom.gba", 0x1372A8, 0x0000064 + +gUnk_0813730C:: @ 0813730C + .incbin "baserom.gba", 0x13730C, 0x000003C + +gUnk_08137348:: @ 08137348 + .incbin "baserom.gba", 0x137348, 0x000003C + +gUnk_08137384:: @ 08137384 + .incbin "baserom.gba", 0x137384, 0x000003C + +gUnk_081373C0:: @ 081373C0 + .incbin "baserom.gba", 0x1373C0, 0x0000028 + +gUnk_081373E8:: @ 081373E8 + .incbin "baserom.gba", 0x1373E8, 0x0000028 + +gUnk_08137410:: @ 08137410 + .incbin "baserom.gba", 0x137410, 0x000003C + +gUnk_0813744C:: @ 0813744C + .incbin "baserom.gba", 0x13744C, 0x000003C + +gUnk_08137488:: @ 08137488 + .incbin "baserom.gba", 0x137488, 0x0000028 + +gUnk_081374B0:: @ 081374B0 + .incbin "baserom.gba", 0x1374B0, 0x0000028 + +gUnk_081374D8:: @ 081374D8 + .incbin "baserom.gba", 0x1374D8, 0x000003C + +gUnk_08137514:: @ 08137514 + .incbin "baserom.gba", 0x137514, 0x000003C + +gUnk_08137550:: @ 08137550 + .incbin "baserom.gba", 0x137550, 0x000003C + +gUnk_0813758C:: @ 0813758C + .incbin "baserom.gba", 0x13758C, 0x0000028 + +gUnk_081375B4:: @ 081375B4 + .incbin "baserom.gba", 0x1375B4, 0x0000028 + +gUnk_081375DC:: @ 081375DC + .incbin "baserom.gba", 0x1375DC, 0x0000028 + +gUnk_08137604:: @ 08137604 + .incbin "baserom.gba", 0x137604, 0x000003C + +gUnk_08137640:: @ 08137640 + .incbin "baserom.gba", 0x137640, 0x0000044 + +gUnk_08137684:: @ 08137684 + .incbin "baserom.gba", 0x137684, 0x0000028 + +gUnk_081376AC:: @ 081376AC + .incbin "baserom.gba", 0x1376AC, 0x000003C + +gUnk_081376E8:: @ 081376E8 + .incbin "baserom.gba", 0x1376E8, 0x0000028 + +gUnk_08137710:: @ 08137710 + .incbin "baserom.gba", 0x137710, 0x000003C + +gUnk_0813774C:: @ 0813774C + .incbin "baserom.gba", 0x13774C, 0x0000028 + +gUnk_08137774:: @ 08137774 + .incbin "baserom.gba", 0x137774, 0x0000002 + +gUnk_08137776:: @ 08137776 + .incbin "baserom.gba", 0x137776, 0x0000001 + +gUnk_08137777:: @ 08137777 + .incbin "baserom.gba", 0x137777, 0x000001D + +gUnk_08137794:: @ 08137794 + .incbin "baserom.gba", 0x137794, 0x0000014 + +gUnk_081377A8:: @ 081377A8 + .incbin "baserom.gba", 0x1377A8, 0x0000028 + +gUnk_081377D0:: @ 081377D0 + .incbin "baserom.gba", 0x1377D0, 0x0000010 + +gUnk_081377E0:: @ 081377E0 + .incbin "baserom.gba", 0x1377E0, 0x0000028 + +gUnk_08137808:: @ 08137808 + .incbin "baserom.gba", 0x137808, 0x0000028 + +gUnk_08137830:: @ 08137830 + .incbin "baserom.gba", 0x137830, 0x0000028 + +gUnk_08137858:: @ 08137858 + .incbin "baserom.gba", 0x137858, 0x0000028 + +gUnk_08137880:: @ 08137880 + .incbin "baserom.gba", 0x137880, 0x0000028 + +gUnk_081378A8:: @ 081378A8 + .incbin "baserom.gba", 0x1378A8, 0x0000028 + +gUnk_081378D0:: @ 081378D0 + .incbin "baserom.gba", 0x1378D0, 0x0000028 + +gUnk_081378F8:: @ 081378F8 + .incbin "baserom.gba", 0x1378F8, 0x0000028 + +gUnk_08137920:: @ 08137920 + .incbin "baserom.gba", 0x137920, 0x0000028 + +gUnk_08137948:: @ 08137948 + .incbin "baserom.gba", 0x137948, 0x0000028 + +gUnk_08137970:: @ 08137970 + .incbin "baserom.gba", 0x137970, 0x0000028 + +gUnk_08137998:: @ 08137998 + .incbin "baserom.gba", 0x137998, 0x000002C + +gUnk_081379C4:: @ 081379C4 + .incbin "baserom.gba", 0x1379C4, 0x0000028 + +gUnk_081379EC:: @ 081379EC + .incbin "baserom.gba", 0x1379EC, 0x0000028 + +gUnk_08137A14:: @ 08137A14 + .incbin "baserom.gba", 0x137A14, 0x0000028 + +gUnk_08137A3C:: @ 08137A3C + .incbin "baserom.gba", 0x137A3C, 0x0000028 + +gUnk_08137A64:: @ 08137A64 + .incbin "baserom.gba", 0x137A64, 0x0000028 + +gUnk_08137A8C:: @ 08137A8C + .incbin "baserom.gba", 0x137A8C, 0x0000050 + +gUnk_08137ADC:: @ 08137ADC + .incbin "baserom.gba", 0x137ADC, 0x0000028 + +gUnk_08137B04:: @ 08137B04 + .incbin "baserom.gba", 0x137B04, 0x0000028 + +gUnk_08137B2C:: @ 08137B2C + .incbin "baserom.gba", 0x137B2C, 0x0000050 + +gUnk_08137B7C:: @ 08137B7C + .incbin "baserom.gba", 0x137B7C, 0x000003C + +gUnk_08137BB8:: @ 08137BB8 + .incbin "baserom.gba", 0x137BB8, 0x000003C + +gUnk_08137BF4:: @ 08137BF4 + .incbin "baserom.gba", 0x137BF4, 0x0000028 + +gUnk_08137C1C:: @ 08137C1C + .incbin "baserom.gba", 0x137C1C, 0x000003C + +gUnk_08137C58:: @ 08137C58 + .incbin "baserom.gba", 0x137C58, 0x0000010 + +gUnk_08137C68:: @ 08137C68 + .incbin "baserom.gba", 0x137C68, 0x000003C + +gUnk_08137CA4:: @ 08137CA4 + .incbin "baserom.gba", 0x137CA4, 0x0000028 + +gUnk_08137CCC:: @ 08137CCC + .incbin "baserom.gba", 0x137CCC, 0x0000008 + +gUnk_08137CD4:: @ 08137CD4 + .incbin "baserom.gba", 0x137CD4, 0x000003C + +gUnk_08137D10:: @ 08137D10 + .incbin "baserom.gba", 0x137D10, 0x000003C + +gUnk_08137D4C:: @ 08137D4C + .incbin "baserom.gba", 0x137D4C, 0x000003C + +gUnk_08137D88:: @ 08137D88 + .incbin "baserom.gba", 0x137D88, 0x000003C + +gUnk_08137DC4:: @ 08137DC4 + .incbin "baserom.gba", 0x137DC4, 0x0000010 + +gUnk_08137DD4:: @ 08137DD4 + .incbin "baserom.gba", 0x137DD4, 0x0000028 + +gUnk_08137DFC:: @ 08137DFC + .incbin "baserom.gba", 0x137DFC, 0x0000004 + +gUnk_08137E00:: @ 08137E00 + .incbin "baserom.gba", 0x137E00, 0x0000078 + +gUnk_08137E78:: @ 08137E78 + .incbin "baserom.gba", 0x137E78, 0x0000064 + +gUnk_08137EDC:: @ 08137EDC + .incbin "baserom.gba", 0x137EDC, 0x0000028 + +gUnk_08137F04:: @ 08137F04 + .incbin "baserom.gba", 0x137F04, 0x0000014 + +gUnk_08137F18:: @ 08137F18 + .incbin "baserom.gba", 0x137F18, 0x0000014 + +gUnk_08137F2C:: @ 08137F2C + .incbin "baserom.gba", 0x137F2C, 0x0000014 + +gUnk_08137F40:: @ 08137F40 + .incbin "baserom.gba", 0x137F40, 0x0000028 + +gUnk_08137F68:: @ 08137F68 + .incbin "baserom.gba", 0x137F68, 0x0000028 + +gUnk_08137F90:: @ 08137F90 + .incbin "baserom.gba", 0x137F90, 0x0000028 + +gUnk_08137FB8:: @ 08137FB8 + .incbin "baserom.gba", 0x137FB8, 0x0000014 + +gUnk_08137FCC:: @ 08137FCC + .incbin "baserom.gba", 0x137FCC, 0x0000028 + +gUnk_08137FF4:: @ 08137FF4 + .incbin "baserom.gba", 0x137FF4, 0x000003C + +gUnk_08138030:: @ 08138030 + .incbin "baserom.gba", 0x138030, 0x000003C + +gUnk_0813806C:: @ 0813806C + .incbin "baserom.gba", 0x13806C, 0x0000028 + +gUnk_08138094:: @ 08138094 + .incbin "baserom.gba", 0x138094, 0x0000028 + +gUnk_081380BC:: @ 081380BC + .incbin "baserom.gba", 0x1380BC, 0x0000028 + +gUnk_081380E4:: @ 081380E4 + .incbin "baserom.gba", 0x1380E4, 0x0000028 + +gUnk_0813810C:: @ 0813810C + .incbin "baserom.gba", 0x13810C, 0x0000028 + +gUnk_08138134:: @ 08138134 + .incbin "baserom.gba", 0x138134, 0x0000014 + +gUnk_08138148:: @ 08138148 + .incbin "baserom.gba", 0x138148, 0x000003C + +gUnk_08138184:: @ 08138184 + .incbin "baserom.gba", 0x138184, 0x0000028 + +gUnk_081381AC:: @ 081381AC + .incbin "baserom.gba", 0x1381AC, 0x0000028 + +gUnk_081381D4:: @ 081381D4 + .incbin "baserom.gba", 0x1381D4, 0x0000060 + +gUnk_08138234:: @ 08138234 + .incbin "baserom.gba", 0x138234, 0x0000050 + +gUnk_08138284:: @ 08138284 + .incbin "baserom.gba", 0x138284, 0x0000064 + +gUnk_081382E8:: @ 081382E8 + .incbin "baserom.gba", 0x1382E8, 0x000003C + +gUnk_08138324:: @ 08138324 + .incbin "baserom.gba", 0x138324, 0x000003C + +gUnk_08138360:: @ 08138360 + .incbin "baserom.gba", 0x138360, 0x0000028 + +gUnk_08138388:: @ 08138388 + .incbin "baserom.gba", 0x138388, 0x000003C + +gUnk_081383C4:: @ 081383C4 + .incbin "baserom.gba", 0x1383C4, 0x000003C + +gUnk_08138400:: @ 08138400 + .incbin "baserom.gba", 0x138400, 0x000003C + +gUnk_0813843C:: @ 0813843C + .incbin "baserom.gba", 0x13843C, 0x0000028 + +gUnk_08138464:: @ 08138464 + .incbin "baserom.gba", 0x138464, 0x0000040 + +gUnk_081384A4:: @ 081384A4 + .incbin "baserom.gba", 0x1384A4, 0x0000028 + +gUnk_081384CC:: @ 081384CC + .incbin "baserom.gba", 0x1384CC, 0x0000028 + +gUnk_081384F4:: @ 081384F4 + .incbin "baserom.gba", 0x1384F4, 0x0000008 + +gUnk_081384FC:: @ 081384FC + .incbin "baserom.gba", 0x1384FC, 0x0000028 + +gUnk_08138524:: @ 08138524 + .incbin "baserom.gba", 0x138524, 0x0000028 + +gUnk_0813854C:: @ 0813854C + .incbin "baserom.gba", 0x13854C, 0x0000028 + +gUnk_08138574:: @ 08138574 + .incbin "baserom.gba", 0x138574, 0x0000028 + +gUnk_0813859C:: @ 0813859C + .incbin "baserom.gba", 0x13859C, 0x0000028 + +gUnk_081385C4:: @ 081385C4 + .incbin "baserom.gba", 0x1385C4, 0x0000028 + +gUnk_081385EC:: @ 081385EC + .incbin "baserom.gba", 0x1385EC, 0x000003C + +gUnk_08138628:: @ 08138628 + .incbin "baserom.gba", 0x138628, 0x0000050 + +gUnk_08138678:: @ 08138678 + .incbin "baserom.gba", 0x138678, 0x0000028 + +gUnk_081386A0:: @ 081386A0 + .incbin "baserom.gba", 0x1386A0, 0x0000028 + +gUnk_081386C8:: @ 081386C8 + .incbin "baserom.gba", 0x1386C8, 0x0000028 + +gUnk_081386F0:: @ 081386F0 + .incbin "baserom.gba", 0x1386F0, 0x0000008 + +gUnk_081386F8:: @ 081386F8 + .incbin "baserom.gba", 0x1386F8, 0x0000028 + +gUnk_08138720:: @ 08138720 + .incbin "baserom.gba", 0x138720, 0x0000028 + +gUnk_08138748:: @ 08138748 + .incbin "baserom.gba", 0x138748, 0x0000008 + +gUnk_08138750:: @ 08138750 + .incbin "baserom.gba", 0x138750, 0x0000064 + +gUnk_081387B4:: @ 081387B4 + .incbin "baserom.gba", 0x1387B4, 0x000003C + +gUnk_081387F0:: @ 081387F0 + .incbin "baserom.gba", 0x1387F0, 0x0000008 + +gUnk_081387F8:: @ 081387F8 + .incbin "baserom.gba", 0x1387F8, 0x0000028 + +gUnk_08138820:: @ 08138820 + .incbin "baserom.gba", 0x138820, 0x0000028 + +gUnk_08138848:: @ 08138848 + .incbin "baserom.gba", 0x138848, 0x0000060 + +gUnk_081388A8:: @ 081388A8 + .incbin "baserom.gba", 0x1388A8, 0x0000028 + +gUnk_081388D0:: @ 081388D0 + .incbin "baserom.gba", 0x1388D0, 0x0000028 + +gUnk_081388F8:: @ 081388F8 + .incbin "baserom.gba", 0x1388F8, 0x0000008 + +gUnk_08138900:: @ 08138900 + .incbin "baserom.gba", 0x138900, 0x0000028 + +gUnk_08138928:: @ 08138928 + .incbin "baserom.gba", 0x138928, 0x0000028 + +gUnk_08138950:: @ 08138950 + .incbin "baserom.gba", 0x138950, 0x0000008 + +gUnk_08138958:: @ 08138958 + .incbin "baserom.gba", 0x138958, 0x0000024 + +gUnk_0813897C:: @ 0813897C + .incbin "baserom.gba", 0x13897C, 0x0000028 + +gUnk_081389A4:: @ 081389A4 + .incbin "baserom.gba", 0x1389A4, 0x0000014 + +gUnk_081389B8:: @ 081389B8 + .incbin "baserom.gba", 0x1389B8, 0x0000014 + +gUnk_081389CC:: @ 081389CC + .incbin "baserom.gba", 0x1389CC, 0x0000014 + +gUnk_081389E0:: @ 081389E0 + .incbin "baserom.gba", 0x1389E0, 0x0000014 + +gUnk_081389F4:: @ 081389F4 + .incbin "baserom.gba", 0x1389F4, 0x0000064 + +gUnk_08138A58:: @ 08138A58 + .incbin "baserom.gba", 0x138A58, 0x0000050 + +gUnk_08138AA8:: @ 08138AA8 + .incbin "baserom.gba", 0x138AA8, 0x0000028 + +gUnk_08138AD0:: @ 08138AD0 + .incbin "baserom.gba", 0x138AD0, 0x0000028 + +gUnk_08138AF8:: @ 08138AF8 + .incbin "baserom.gba", 0x138AF8, 0x0000050 + +gUnk_08138B48:: @ 08138B48 + .incbin "baserom.gba", 0x138B48, 0x0000084 + +gUnk_08138BCC:: @ 08138BCC + .incbin "baserom.gba", 0x138BCC, 0x0000004 + +gUnk_08138BD0:: @ 08138BD0 + .incbin "baserom.gba", 0x138BD0, 0x0000064 + +gUnk_08138C34:: @ 08138C34 + .incbin "baserom.gba", 0x138C34, 0x0000004 + +gUnk_08138C38:: @ 08138C38 + .incbin "baserom.gba", 0x138C38, 0x0000028 + +gUnk_08138C60:: @ 08138C60 + .incbin "baserom.gba", 0x138C60, 0x0000028 + +gUnk_08138C88:: @ 08138C88 + .incbin "baserom.gba", 0x138C88, 0x0000028 + +gUnk_08138CB0:: @ 08138CB0 + .incbin "baserom.gba", 0x138CB0, 0x0000028 + +gUnk_08138CD8:: @ 08138CD8 + .incbin "baserom.gba", 0x138CD8, 0x0000028 + +gUnk_08138D00:: @ 08138D00 + .incbin "baserom.gba", 0x138D00, 0x0000028 + +gUnk_08138D28:: @ 08138D28 + .incbin "baserom.gba", 0x138D28, 0x0000028 + +gUnk_08138D50:: @ 08138D50 + .incbin "baserom.gba", 0x138D50, 0x0000084 + +gUnk_08138DD4:: @ 08138DD4 + .incbin "baserom.gba", 0x138DD4, 0x0000028 + +gUnk_08138DFC:: @ 08138DFC + .incbin "baserom.gba", 0x138DFC, 0x000003C + +gUnk_08138E38:: @ 08138E38 + .incbin "baserom.gba", 0x138E38, 0x0000028 + +gUnk_08138E60:: @ 08138E60 + .incbin "baserom.gba", 0x138E60, 0x000003C + +gUnk_08138E9C:: @ 08138E9C + .incbin "baserom.gba", 0x138E9C, 0x0000028 + +gUnk_08138EC4:: @ 08138EC4 + .incbin "baserom.gba", 0x138EC4, 0x0000028 + +gUnk_08138EEC:: @ 08138EEC + .incbin "baserom.gba", 0x138EEC, 0x0000028 + +gUnk_08138F14:: @ 08138F14 + .incbin "baserom.gba", 0x138F14, 0x000003C + +gUnk_08138F50:: @ 08138F50 + .incbin "baserom.gba", 0x138F50, 0x0000028 + +gUnk_08138F78:: @ 08138F78 + .incbin "baserom.gba", 0x138F78, 0x0000028 + +gUnk_08138FA0:: @ 08138FA0 + .incbin "baserom.gba", 0x138FA0, 0x0000028 + +gUnk_08138FC8:: @ 08138FC8 + .incbin "baserom.gba", 0x138FC8, 0x000003C + +gUnk_08139004:: @ 08139004 + .incbin "baserom.gba", 0x139004, 0x000003C + +gUnk_08139040:: @ 08139040 + .incbin "baserom.gba", 0x139040, 0x000003C + +gUnk_0813907C:: @ 0813907C + .incbin "baserom.gba", 0x13907C, 0x000003C + +gUnk_081390B8:: @ 081390B8 + .incbin "baserom.gba", 0x1390B8, 0x0000028 + +gUnk_081390E0:: @ 081390E0 + .incbin "baserom.gba", 0x1390E0, 0x0000028 + +gUnk_08139108:: @ 08139108 + .incbin "baserom.gba", 0x139108, 0x00000A0 + +gUnk_081391A8:: @ 081391A8 + .incbin "baserom.gba", 0x1391A8, 0x0000028 + +gUnk_081391D0:: @ 081391D0 + .incbin "baserom.gba", 0x1391D0, 0x0000004 + +gUnk_081391D4:: @ 081391D4 + .incbin "baserom.gba", 0x1391D4, 0x0000028 + +gUnk_081391FC:: @ 081391FC + .incbin "baserom.gba", 0x1391FC, 0x0000008 + +gUnk_08139204:: @ 08139204 + .incbin "baserom.gba", 0x139204, 0x0000028 + +gUnk_0813922C:: @ 0813922C + .incbin "baserom.gba", 0x13922C, 0x0000028 + +gUnk_08139254:: @ 08139254 + .incbin "baserom.gba", 0x139254, 0x000003C + +gUnk_08139290:: @ 08139290 + .incbin "baserom.gba", 0x139290, 0x0000028 + +gUnk_081392B8:: @ 081392B8 + .incbin "baserom.gba", 0x1392B8, 0x0000028 + +gUnk_081392E0:: @ 081392E0 + .incbin "baserom.gba", 0x1392E0, 0x0000028 + +gUnk_08139308:: @ 08139308 + .incbin "baserom.gba", 0x139308, 0x0000028 + +gUnk_08139330:: @ 08139330 + .incbin "baserom.gba", 0x139330, 0x000003C + +gUnk_0813936C:: @ 0813936C + .incbin "baserom.gba", 0x13936C, 0x0000028 + +gUnk_08139394:: @ 08139394 + .incbin "baserom.gba", 0x139394, 0x0000028 + +gUnk_081393BC:: @ 081393BC + .incbin "baserom.gba", 0x1393BC, 0x0000078 + +gUnk_08139434:: @ 08139434 + .incbin "baserom.gba", 0x139434, 0x0000028 + +gUnk_0813945C:: @ 0813945C + .incbin "baserom.gba", 0x13945C, 0x0000028 + +gUnk_08139484:: @ 08139484 + .incbin "baserom.gba", 0x139484, 0x0000028 + +gUnk_081394AC:: @ 081394AC + .incbin "baserom.gba", 0x1394AC, 0x0000028 + +gUnk_081394D4:: @ 081394D4 + .incbin "baserom.gba", 0x1394D4, 0x0000028 + +gUnk_081394FC:: @ 081394FC + .incbin "baserom.gba", 0x1394FC, 0x000003C + +gUnk_08139538:: @ 08139538 + .incbin "baserom.gba", 0x139538, 0x0000028 + +gUnk_08139560:: @ 08139560 + .incbin "baserom.gba", 0x139560, 0x0000028 + +gUnk_08139588:: @ 08139588 + .incbin "baserom.gba", 0x139588, 0x0000028 + +gUnk_081395B0:: @ 081395B0 + .incbin "baserom.gba", 0x1395B0, 0x0000028 + +gUnk_081395D8:: @ 081395D8 + .incbin "baserom.gba", 0x1395D8, 0x0000100 + +gUnk_081396D8:: @ 081396D8 + .incbin "baserom.gba", 0x1396D8, 0x000003C + +gUnk_08139714:: @ 08139714 + .incbin "baserom.gba", 0x139714, 0x0000004 + +gUnk_08139718:: @ 08139718 + .incbin "baserom.gba", 0x139718, 0x0000014 + +gUnk_0813972C:: @ 0813972C + .incbin "baserom.gba", 0x13972C, 0x0000028 + +gUnk_08139754:: @ 08139754 + .incbin "baserom.gba", 0x139754, 0x000003C + +gUnk_08139790:: @ 08139790 + .incbin "baserom.gba", 0x139790, 0x0000028 + +gUnk_081397B8:: @ 081397B8 + .incbin "baserom.gba", 0x1397B8, 0x0000028 + +gUnk_081397E0:: @ 081397E0 + .incbin "baserom.gba", 0x1397E0, 0x0000024 + +gUnk_08139804:: @ 08139804 + .incbin "baserom.gba", 0x139804, 0x0000028 + +gUnk_0813982C:: @ 0813982C + .incbin "baserom.gba", 0x13982C, 0x0000028 + +gUnk_08139854:: @ 08139854 + .incbin "baserom.gba", 0x139854, 0x0000028 + +gUnk_0813987C:: @ 0813987C + .incbin "baserom.gba", 0x13987C, 0x0000028 + +gUnk_081398A4:: @ 081398A4 + .incbin "baserom.gba", 0x1398A4, 0x0000028 + +gUnk_081398CC:: @ 081398CC + .incbin "baserom.gba", 0x1398CC, 0x000003C + +gUnk_08139908:: @ 08139908 + .incbin "baserom.gba", 0x139908, 0x000003C + +gUnk_08139944:: @ 08139944 + .incbin "baserom.gba", 0x139944, 0x000003C + +gUnk_08139980:: @ 08139980 + .incbin "baserom.gba", 0x139980, 0x0000028 + +gUnk_081399A8:: @ 081399A8 + .incbin "baserom.gba", 0x1399A8, 0x0000028 + +gUnk_081399D0:: @ 081399D0 + .incbin "baserom.gba", 0x1399D0, 0x0000064 + +gUnk_08139A34:: @ 08139A34 + .incbin "baserom.gba", 0x139A34, 0x0000028 + +gUnk_08139A5C:: @ 08139A5C + .incbin "baserom.gba", 0x139A5C, 0x0000028 + +gUnk_08139A84:: @ 08139A84 + .incbin "baserom.gba", 0x139A84, 0x0000028 + +gUnk_08139AAC:: @ 08139AAC + .incbin "baserom.gba", 0x139AAC, 0x0000050 + +gUnk_08139AFC:: @ 08139AFC + .incbin "baserom.gba", 0x139AFC, 0x0000028 + +gUnk_08139B24:: @ 08139B24 + .incbin "baserom.gba", 0x139B24, 0x0000028 + +gUnk_08139B4C:: @ 08139B4C + .incbin "baserom.gba", 0x139B4C, 0x000003C + +gUnk_08139B88:: @ 08139B88 + .incbin "baserom.gba", 0x139B88, 0x000003C + +gUnk_08139BC4:: @ 08139BC4 + .incbin "baserom.gba", 0x139BC4, 0x0000028 + +gUnk_08139BEC:: @ 08139BEC + .incbin "baserom.gba", 0x139BEC, 0x000003C + +gUnk_08139C28:: @ 08139C28 + .incbin "baserom.gba", 0x139C28, 0x00000E4 + +gUnk_08139D0C:: @ 08139D0C + .incbin "baserom.gba", 0x139D0C, 0x0000050 + +gUnk_08139D5C:: @ 08139D5C + .incbin "baserom.gba", 0x139D5C, 0x0000028 + +gUnk_08139D84:: @ 08139D84 + .incbin "baserom.gba", 0x139D84, 0x0000028 + +gUnk_08139DAC:: @ 08139DAC + .incbin "baserom.gba", 0x139DAC, 0x0000028 + +gUnk_08139DD4:: @ 08139DD4 + .incbin "baserom.gba", 0x139DD4, 0x0000028 + +gUnk_08139DFC:: @ 08139DFC + .incbin "baserom.gba", 0x139DFC, 0x000003C + +gUnk_08139E38:: @ 08139E38 + .incbin "baserom.gba", 0x139E38, 0x000003C + +gUnk_08139E74:: @ 08139E74 + .incbin "baserom.gba", 0x139E74, 0x0000050 + +gUnk_08139EC4:: @ 08139EC4 + .incbin "baserom.gba", 0x139EC4, 0x0000050 + +gUnk_08139F14:: @ 08139F14 + .incbin "baserom.gba", 0x139F14, 0x000003C + +gUnk_08139F50:: @ 08139F50 + .incbin "baserom.gba", 0x139F50, 0x0000028 + +gUnk_08139F78:: @ 08139F78 + .incbin "baserom.gba", 0x139F78, 0x0000028 + +gUnk_08139FA0:: @ 08139FA0 + .incbin "baserom.gba", 0x139FA0, 0x0000050 + +gUnk_08139FF0:: @ 08139FF0 + .incbin "baserom.gba", 0x139FF0, 0x0000028 + +gUnk_0813A018:: @ 0813A018 + .incbin "baserom.gba", 0x13A018, 0x0000028 + +gUnk_0813A040:: @ 0813A040 + .incbin "baserom.gba", 0x13A040, 0x0000050 + +gUnk_0813A090:: @ 0813A090 + .incbin "baserom.gba", 0x13A090, 0x0000028 + +gUnk_0813A0B8:: @ 0813A0B8 + .incbin "baserom.gba", 0x13A0B8, 0x0000028 + +gUnk_0813A0E0:: @ 0813A0E0 + .incbin "baserom.gba", 0x13A0E0, 0x0000028 + +gUnk_0813A108:: @ 0813A108 + .incbin "baserom.gba", 0x13A108, 0x0000028 + +gUnk_0813A130:: @ 0813A130 + .incbin "baserom.gba", 0x13A130, 0x0000028 + +gUnk_0813A158:: @ 0813A158 + .incbin "baserom.gba", 0x13A158, 0x0000028 + +gUnk_0813A180:: @ 0813A180 + .incbin "baserom.gba", 0x13A180, 0x0000028 + +gUnk_0813A1A8:: @ 0813A1A8 + .incbin "baserom.gba", 0x13A1A8, 0x000001F + +gUnk_0813A1C7:: @ 0813A1C7 + .incbin "baserom.gba", 0x13A1C7, 0x0000009 + +gUnk_0813A1D0:: @ 0813A1D0 + .incbin "baserom.gba", 0x13A1D0, 0x0000028 + +gUnk_0813A1F8:: @ 0813A1F8 + .incbin "baserom.gba", 0x13A1F8, 0x0000028 + +gUnk_0813A220:: @ 0813A220 + .incbin "baserom.gba", 0x13A220, 0x000001F + +gUnk_0813A23F:: @ 0813A23F + .incbin "baserom.gba", 0x13A23F, 0x0000009 + +gUnk_0813A248:: @ 0813A248 + .incbin "baserom.gba", 0x13A248, 0x000003C + +gUnk_0813A284:: @ 0813A284 + .incbin "baserom.gba", 0x13A284, 0x0000028 + +gUnk_0813A2AC:: @ 0813A2AC + .incbin "baserom.gba", 0x13A2AC, 0x0000114 + +gUnk_0813A3C0:: @ 0813A3C0 + .incbin "baserom.gba", 0x13A3C0, 0x0000028 + +gUnk_0813A3E8:: @ 0813A3E8 + .incbin "baserom.gba", 0x13A3E8, 0x000003C + +gUnk_0813A424:: @ 0813A424 + .incbin "baserom.gba", 0x13A424, 0x0000028 + +gUnk_0813A44C:: @ 0813A44C + .incbin "baserom.gba", 0x13A44C, 0x0000028 + +gUnk_0813A474:: @ 0813A474 + .incbin "baserom.gba", 0x13A474, 0x000003C + +gUnk_0813A4B0:: @ 0813A4B0 + .incbin "baserom.gba", 0x13A4B0, 0x0000028 + +gUnk_0813A4D8:: @ 0813A4D8 + .incbin "baserom.gba", 0x13A4D8, 0x000003C + +gUnk_0813A514:: @ 0813A514 + .incbin "baserom.gba", 0x13A514, 0x0000028 + +gUnk_0813A53C:: @ 0813A53C + .incbin "baserom.gba", 0x13A53C, 0x0000020 + +gUnk_0813A55C:: @ 0813A55C + .incbin "baserom.gba", 0x13A55C, 0x0000028 + +gUnk_0813A584:: @ 0813A584 + .incbin "baserom.gba", 0x13A584, 0x0000028 + +gUnk_0813A5AC:: @ 0813A5AC + .incbin "baserom.gba", 0x13A5AC, 0x0000008 + +gUnk_0813A5B4:: @ 0813A5B4 + .incbin "baserom.gba", 0x13A5B4, 0x000003C + +gUnk_0813A5F0:: @ 0813A5F0 + .incbin "baserom.gba", 0x13A5F0, 0x0000004 + +gUnk_0813A5F4:: @ 0813A5F4 + .incbin "baserom.gba", 0x13A5F4, 0x000003C + +gUnk_0813A630:: @ 0813A630 + .incbin "baserom.gba", 0x13A630, 0x000003C + +gUnk_0813A66C:: @ 0813A66C + .incbin "baserom.gba", 0x13A66C, 0x0000078 + +gUnk_0813A6E4:: @ 0813A6E4 + .incbin "baserom.gba", 0x13A6E4, 0x0000020 + +gUnk_0813A704:: @ 0813A704 + .incbin "baserom.gba", 0x13A704, 0x000003C + +gUnk_0813A740:: @ 0813A740 + .incbin "baserom.gba", 0x13A740, 0x0000004 + +gUnk_0813A744:: @ 0813A744 + .incbin "baserom.gba", 0x13A744, 0x0000028 + +gUnk_0813A76C:: @ 0813A76C + .incbin "baserom.gba", 0x13A76C, 0x0000028 + +gUnk_0813A794:: @ 0813A794 + .incbin "baserom.gba", 0x13A794, 0x0000028 + +gUnk_0813A7BC:: @ 0813A7BC + .incbin "baserom.gba", 0x13A7BC, 0x0000028 + +gUnk_0813A7E4:: @ 0813A7E4 + .incbin "baserom.gba", 0x13A7E4, 0x000000C + +gUnk_0813A7F0:: @ 0813A7F0 + .incbin "baserom.gba", 0x13A7F0, 0x0000264 + +gUnk_0813AA54:: @ 0813AA54 + .incbin "baserom.gba", 0x13AA54, 0x0000014 + +gUnk_0813AA68:: @ 0813AA68 + .incbin "baserom.gba", 0x13AA68, 0x0000014 + +gUnk_0813AA7C:: @ 0813AA7C + .incbin "baserom.gba", 0x13AA7C, 0x0000014 + +gUnk_0813AA90:: @ 0813AA90 + .incbin "baserom.gba", 0x13AA90, 0x0000014 + +gUnk_0813AAA4:: @ 0813AAA4 + .incbin "baserom.gba", 0x13AAA4, 0x0000014 + +gUnk_0813AAB8:: @ 0813AAB8 + .incbin "baserom.gba", 0x13AAB8, 0x0000014 + +gUnk_0813AACC:: @ 0813AACC + .incbin "baserom.gba", 0x13AACC, 0x0000014 + +gUnk_0813AAE0:: @ 0813AAE0 + .incbin "baserom.gba", 0x13AAE0, 0x0000014 + +gUnk_0813AAF4:: @ 0813AAF4 + .incbin "baserom.gba", 0x13AAF4, 0x0000014 + +gUnk_0813AB08:: @ 0813AB08 + .incbin "baserom.gba", 0x13AB08, 0x0000014 + +gUnk_0813AB1C:: @ 0813AB1C + .incbin "baserom.gba", 0x13AB1C, 0x000003C + +gUnk_0813AB58:: @ 0813AB58 + .incbin "baserom.gba", 0x13AB58, 0x0000014 + +gUnk_0813AB6C:: @ 0813AB6C + .incbin "baserom.gba", 0x13AB6C, 0x0000014 + +gUnk_0813AB80:: @ 0813AB80 + .incbin "baserom.gba", 0x13AB80, 0x0000014 + +gUnk_0813AB94:: @ 0813AB94 + .incbin "baserom.gba", 0x13AB94, 0x0000014 + +gUnk_0813ABA8:: @ 0813ABA8 + .incbin "baserom.gba", 0x13ABA8, 0x0000014 + +gUnk_0813ABBC:: @ 0813ABBC + .incbin "baserom.gba", 0x13ABBC, 0x0000014 + +gUnk_0813ABD0:: @ 0813ABD0 + .incbin "baserom.gba", 0x13ABD0, 0x0000014 + +gUnk_0813ABE4:: @ 0813ABE4 + .incbin "baserom.gba", 0x13ABE4, 0x0000014 + +gUnk_0813ABF8:: @ 0813ABF8 + .incbin "baserom.gba", 0x13ABF8, 0x0000014 + +gUnk_0813AC0C:: @ 0813AC0C + .incbin "baserom.gba", 0x13AC0C, 0x0000014 + +gUnk_0813AC20:: @ 0813AC20 + .incbin "baserom.gba", 0x13AC20, 0x0000014 + +gUnk_0813AC34:: @ 0813AC34 + .incbin "baserom.gba", 0x13AC34, 0x0000014 + +gUnk_0813AC48:: @ 0813AC48 + .incbin "baserom.gba", 0x13AC48, 0x0000014 + +gUnk_0813AC5C:: @ 0813AC5C + .incbin "baserom.gba", 0x13AC5C, 0x0000014 + +gUnk_0813AC70:: @ 0813AC70 + .incbin "baserom.gba", 0x13AC70, 0x0000014 + +gUnk_0813AC84:: @ 0813AC84 + .incbin "baserom.gba", 0x13AC84, 0x0000014 + +gUnk_0813AC98:: @ 0813AC98 + .incbin "baserom.gba", 0x13AC98, 0x0000014 + +gUnk_0813ACAC:: @ 0813ACAC + .incbin "baserom.gba", 0x13ACAC, 0x0000014 + +gUnk_0813ACC0:: @ 0813ACC0 + .incbin "baserom.gba", 0x13ACC0, 0x0000014 + +gUnk_0813ACD4:: @ 0813ACD4 + .incbin "baserom.gba", 0x13ACD4, 0x0000014 + +gUnk_0813ACE8:: @ 0813ACE8 + .incbin "baserom.gba", 0x13ACE8, 0x0000014 + +gUnk_0813ACFC:: @ 0813ACFC + .incbin "baserom.gba", 0x13ACFC, 0x0000014 + +gUnk_0813AD10:: @ 0813AD10 + .incbin "baserom.gba", 0x13AD10, 0x0000014 + +gUnk_0813AD24:: @ 0813AD24 + .incbin "baserom.gba", 0x13AD24, 0x0000014 + +gUnk_0813AD38:: @ 0813AD38 + .incbin "baserom.gba", 0x13AD38, 0x0000014 + +gUnk_0813AD4C:: @ 0813AD4C + .incbin "baserom.gba", 0x13AD4C, 0x0000014 + +gUnk_0813AD60:: @ 0813AD60 + .incbin "baserom.gba", 0x13AD60, 0x0000014 + +gUnk_0813AD74:: @ 0813AD74 + .incbin "baserom.gba", 0x13AD74, 0x0000014 + +gUnk_0813AD88:: @ 0813AD88 + .incbin "baserom.gba", 0x13AD88, 0x0000064 + +gUnk_0813ADEC:: @ 0813ADEC + .incbin "baserom.gba", 0x13ADEC, 0x0000028 + +gUnk_0813AE14:: @ 0813AE14 + .incbin "baserom.gba", 0x13AE14, 0x00005F9 + +gUnk_0813B40D:: @ 0813B40D + .incbin "baserom.gba", 0x13B40D, 0x0002406 + +gUnk_0813D813:: @ 0813D813 + .incbin "baserom.gba", 0x13D813, 0x0000643 + +gUnk_0813DE56:: @ 0813DE56 + .incbin "baserom.gba", 0x13DE56, 0x0000168 + +gUnk_0813DFBE:: @ 0813DFBE + .incbin "baserom.gba", 0x13DFBE, 0x0000025 + +gUnk_0813DFE3:: @ 0813DFE3 + .incbin "baserom.gba", 0x13DFE3, 0x000021D + +gUnk_0813E200:: @ 0813E200 + .incbin "baserom.gba", 0x13E200, 0x0000608 + +gUnk_0813E808:: @ 0813E808 + .incbin "baserom.gba", 0x13E808, 0x00000F9 + +gUnk_0813E901:: @ 0813E901 + .incbin "baserom.gba", 0x13E901, 0x0000205 + +gUnk_0813EB06:: @ 0813EB06 + .incbin "baserom.gba", 0x13EB06, 0x00002E4 + +gUnk_0813EDEA:: @ 0813EDEA + .incbin "baserom.gba", 0x13EDEA, 0x0000208 + +gUnk_0813EFF2:: @ 0813EFF2 + .incbin "baserom.gba", 0x13EFF2, 0x000070F + +gUnk_0813F701:: @ 0813F701 + .incbin "baserom.gba", 0x13F701, 0x0000114 + +gUnk_0813F815:: @ 0813F815 + .incbin "baserom.gba", 0x13F815, 0x00006C3 + +gUnk_0813FED8:: @ 0813FED8 + .incbin "baserom.gba", 0x13FED8, 0x0000128 + +gUnk_08140000:: @ 08140000 + .incbin "baserom.gba", 0x140000, 0x0000001 + +gUnk_08140001:: @ 08140001 + .incbin "baserom.gba", 0x140001, 0x0000006 + +gUnk_08140007:: @ 08140007 + .incbin "baserom.gba", 0x140007, 0x0000001 + +gUnk_08140008:: @ 08140008 + .incbin "baserom.gba", 0x140008, 0x000000A + +gUnk_08140012:: @ 08140012 + .incbin "baserom.gba", 0x140012, 0x0000007 + +gUnk_08140019:: @ 08140019 + .incbin "baserom.gba", 0x140019, 0x0000001 + +gUnk_0814001A:: @ 0814001A + .incbin "baserom.gba", 0x14001A, 0x0000030 + +gUnk_0814004A:: @ 0814004A + .incbin "baserom.gba", 0x14004A, 0x0000010 + +gUnk_0814005A:: @ 0814005A + .incbin "baserom.gba", 0x14005A, 0x0000002 + +gUnk_0814005C:: @ 0814005C + .incbin "baserom.gba", 0x14005C, 0x0000002 + +gUnk_0814005E:: @ 0814005E + .incbin "baserom.gba", 0x14005E, 0x000000D + +gUnk_0814006B:: @ 0814006B + .incbin "baserom.gba", 0x14006B, 0x0000025 + +gUnk_08140090:: @ 08140090 + .incbin "baserom.gba", 0x140090, 0x000002E + +gUnk_081400BE:: @ 081400BE + .incbin "baserom.gba", 0x1400BE, 0x0000024 + +gUnk_081400E2:: @ 081400E2 + .incbin "baserom.gba", 0x1400E2, 0x000005E + +gUnk_08140140:: @ 08140140 + .incbin "baserom.gba", 0x140140, 0x0000083 + +gUnk_081401C3:: @ 081401C3 + .incbin "baserom.gba", 0x1401C3, 0x000003D + +gUnk_08140200:: @ 08140200 + .incbin "baserom.gba", 0x140200, 0x0000025 + +gUnk_08140225:: @ 08140225 + .incbin "baserom.gba", 0x140225, 0x00000AE + +gUnk_081402D3:: @ 081402D3 + .incbin "baserom.gba", 0x1402D3, 0x0000026 + +gUnk_081402F9:: @ 081402F9 + .incbin "baserom.gba", 0x1402F9, 0x0000007 + +gUnk_08140300:: @ 08140300 + .incbin "baserom.gba", 0x140300, 0x00000F4 + +gUnk_081403F4:: @ 081403F4 + .incbin "baserom.gba", 0x1403F4, 0x000000D + +gUnk_08140401:: @ 08140401 + .incbin "baserom.gba", 0x140401, 0x0000001 + +gUnk_08140402:: @ 08140402 + .incbin "baserom.gba", 0x140402, 0x0000062 + +gUnk_08140464:: @ 08140464 + .incbin "baserom.gba", 0x140464, 0x00000A1 + +gUnk_08140505:: @ 08140505 + .incbin "baserom.gba", 0x140505, 0x000017C + +gUnk_08140681:: @ 08140681 + .incbin "baserom.gba", 0x140681, 0x0000170 + +gUnk_081407F1:: @ 081407F1 + .incbin "baserom.gba", 0x1407F1, 0x0000016 + +gUnk_08140807:: @ 08140807 + .incbin "baserom.gba", 0x140807, 0x000000C + +gUnk_08140813:: @ 08140813 + .incbin "baserom.gba", 0x140813, 0x0000075 + +gUnk_08140888:: @ 08140888 + .incbin "baserom.gba", 0x140888, 0x0000075 + +gUnk_081408FD:: @ 081408FD + .incbin "baserom.gba", 0x1408FD, 0x0000106 + +gUnk_08140A03:: @ 08140A03 + .incbin "baserom.gba", 0x140A03, 0x00000E9 + +gUnk_08140AEC:: @ 08140AEC + .incbin "baserom.gba", 0x140AEC, 0x0000010 + +gUnk_08140AFC:: @ 08140AFC + .incbin "baserom.gba", 0x140AFC, 0x0000004 + +gUnk_08140B00:: @ 08140B00 + .incbin "baserom.gba", 0x140B00, 0x0000006 + +gUnk_08140B06:: @ 08140B06 + .incbin "baserom.gba", 0x140B06, 0x00000F1 + +gUnk_08140BF7:: @ 08140BF7 + .incbin "baserom.gba", 0x140BF7, 0x0000011 + +gUnk_08140C08:: @ 08140C08 + .incbin "baserom.gba", 0x140C08, 0x00000F0 + +gUnk_08140CF8:: @ 08140CF8 + .incbin "baserom.gba", 0x140CF8, 0x0000015 + +gUnk_08140D0D:: @ 08140D0D + .incbin "baserom.gba", 0x140D0D, 0x00000E9 + +gUnk_08140DF6:: @ 08140DF6 + .incbin "baserom.gba", 0x140DF6, 0x000010D + +gUnk_08140F03:: @ 08140F03 + .incbin "baserom.gba", 0x140F03, 0x0000004 + +gUnk_08140F07:: @ 08140F07 + .incbin "baserom.gba", 0x140F07, 0x0000002 + +gUnk_08140F09:: @ 08140F09 + .incbin "baserom.gba", 0x140F09, 0x0000007 + +gUnk_08140F10:: @ 08140F10 + .incbin "baserom.gba", 0x140F10, 0x00000F6 + +gUnk_08141006:: @ 08141006 + .incbin "baserom.gba", 0x141006, 0x0000110 + +gUnk_08141116:: @ 08141116 + .incbin "baserom.gba", 0x141116, 0x00000E6 + +gUnk_081411FC:: @ 081411FC + .incbin "baserom.gba", 0x1411FC, 0x0000005 + +gUnk_08141201:: @ 08141201 + .incbin "baserom.gba", 0x141201, 0x0000003 + +gUnk_08141204:: @ 08141204 + .incbin "baserom.gba", 0x141204, 0x0000101 + +gUnk_08141305:: @ 08141305 + .incbin "baserom.gba", 0x141305, 0x0000009 + +gUnk_0814130E:: @ 0814130E + .incbin "baserom.gba", 0x14130E, 0x000000B + +gUnk_08141319:: @ 08141319 + .incbin "baserom.gba", 0x141319, 0x00000E6 + +gUnk_081413FF:: @ 081413FF + .incbin "baserom.gba", 0x1413FF, 0x0000013 + +gUnk_08141412:: @ 08141412 + .incbin "baserom.gba", 0x141412, 0x00000F7 + +gUnk_08141509:: @ 08141509 + .incbin "baserom.gba", 0x141509, 0x0000001 + +gUnk_0814150A:: @ 0814150A + .incbin "baserom.gba", 0x14150A, 0x0000002 + +gUnk_0814150C:: @ 0814150C + .incbin "baserom.gba", 0x14150C, 0x0000004 + +gUnk_08141510:: @ 08141510 + .incbin "baserom.gba", 0x141510, 0x0000002 + +gUnk_08141512:: @ 08141512 + .incbin "baserom.gba", 0x141512, 0x0000002 + +gUnk_08141514:: @ 08141514 + .incbin "baserom.gba", 0x141514, 0x00000DD + +gUnk_081415F1:: @ 081415F1 + .incbin "baserom.gba", 0x1415F1, 0x000001A + +gUnk_0814160B:: @ 0814160B + .incbin "baserom.gba", 0x14160B, 0x0000002 + +gUnk_0814160D:: @ 0814160D + .incbin "baserom.gba", 0x14160D, 0x0000103 + +gUnk_08141710:: @ 08141710 + .incbin "baserom.gba", 0x141710, 0x0000005 + +gUnk_08141715:: @ 08141715 + .incbin "baserom.gba", 0x141715, 0x0000005 + +gUnk_0814171A:: @ 0814171A + .incbin "baserom.gba", 0x14171A, 0x0000001 + +gUnk_0814171B:: @ 0814171B + .incbin "baserom.gba", 0x14171B, 0x000000A + +gUnk_08141725:: @ 08141725 + .incbin "baserom.gba", 0x141725, 0x00000E2 + +gUnk_08141807:: @ 08141807 + .incbin "baserom.gba", 0x141807, 0x0000017 + +gUnk_0814181E:: @ 0814181E + .incbin "baserom.gba", 0x14181E, 0x00001F8 + +gUnk_08141A16:: @ 08141A16 + .incbin "baserom.gba", 0x141A16, 0x0000007 + +gUnk_08141A1D:: @ 08141A1D + .incbin "baserom.gba", 0x141A1D, 0x00000FB + +gUnk_08141B18:: @ 08141B18 + .incbin "baserom.gba", 0x141B18, 0x0000001 + +gUnk_08141B19:: @ 08141B19 + .incbin "baserom.gba", 0x141B19, 0x0000001 + +gUnk_08141B1A:: @ 08141B1A + .incbin "baserom.gba", 0x141B1A, 0x00000FA + +gUnk_08141C14:: @ 08141C14 + .incbin "baserom.gba", 0x141C14, 0x0000004 + +gUnk_08141C18:: @ 08141C18 + .incbin "baserom.gba", 0x141C18, 0x0000007 + +gUnk_08141C1F:: @ 08141C1F + .incbin "baserom.gba", 0x141C1F, 0x0000001 + +gUnk_08141C20:: @ 08141C20 + .incbin "baserom.gba", 0x141C20, 0x0000003 + +gUnk_08141C23:: @ 08141C23 + .incbin "baserom.gba", 0x141C23, 0x00000F2 + +gUnk_08141D15:: @ 08141D15 + .incbin "baserom.gba", 0x141D15, 0x0000004 + +gUnk_08141D19:: @ 08141D19 + .incbin "baserom.gba", 0x141D19, 0x0000007 + +gUnk_08141D20:: @ 08141D20 + .incbin "baserom.gba", 0x141D20, 0x0000002 + +gUnk_08141D22:: @ 08141D22 + .incbin "baserom.gba", 0x141D22, 0x0000001 + +gUnk_08141D23:: @ 08141D23 + .incbin "baserom.gba", 0x141D23, 0x0000001 + +gUnk_08141D24:: @ 08141D24 + .incbin "baserom.gba", 0x141D24, 0x00000FC + +gUnk_08141E20:: @ 08141E20 + .incbin "baserom.gba", 0x141E20, 0x0000001 + +gUnk_08141E21:: @ 08141E21 + .incbin "baserom.gba", 0x141E21, 0x0000005 + +gUnk_08141E26:: @ 08141E26 + .incbin "baserom.gba", 0x141E26, 0x00000FB + +gUnk_08141F21:: @ 08141F21 + .incbin "baserom.gba", 0x141F21, 0x0000003 + +gUnk_08141F24:: @ 08141F24 + .incbin "baserom.gba", 0x141F24, 0x0000005 + +gUnk_08141F29:: @ 08141F29 + .incbin "baserom.gba", 0x141F29, 0x00000F4 + +gUnk_0814201D:: @ 0814201D + .incbin "baserom.gba", 0x14201D, 0x0000007 + +gUnk_08142024:: @ 08142024 + .incbin "baserom.gba", 0x142024, 0x0000002 + +gUnk_08142026:: @ 08142026 + .incbin "baserom.gba", 0x142026, 0x0000001 + +gUnk_08142027:: @ 08142027 + .incbin "baserom.gba", 0x142027, 0x0000106 + +gUnk_0814212D:: @ 0814212D + .incbin "baserom.gba", 0x14212D, 0x00000C1 + +gUnk_081421EE:: @ 081421EE + .incbin "baserom.gba", 0x1421EE, 0x000003D + +gUnk_0814222B:: @ 0814222B + .incbin "baserom.gba", 0x14222B, 0x0000104 + +gUnk_0814232F:: @ 0814232F + .incbin "baserom.gba", 0x14232F, 0x0000002 + +gUnk_08142331:: @ 08142331 + .incbin "baserom.gba", 0x142331, 0x0000001 + +gUnk_08142332:: @ 08142332 + .incbin "baserom.gba", 0x142332, 0x00000F9 + +gUnk_0814242B:: @ 0814242B + .incbin "baserom.gba", 0x14242B, 0x0000005 + +gUnk_08142430:: @ 08142430 + .incbin "baserom.gba", 0x142430, 0x00000F2 + +gUnk_08142522:: @ 08142522 + .incbin "baserom.gba", 0x142522, 0x000000F + +gUnk_08142531:: @ 08142531 + .incbin "baserom.gba", 0x142531, 0x0000102 + +gUnk_08142633:: @ 08142633 + .incbin "baserom.gba", 0x142633, 0x00000F3 + +gUnk_08142726:: @ 08142726 + .incbin "baserom.gba", 0x142726, 0x000010F + +gUnk_08142835:: @ 08142835 + .incbin "baserom.gba", 0x142835, 0x0000208 + +gUnk_08142A3D:: @ 08142A3D + .incbin "baserom.gba", 0x142A3D, 0x00000E1 + +gUnk_08142B1E:: @ 08142B1E + .incbin "baserom.gba", 0x142B1E, 0x0000015 + +gUnk_08142B33:: @ 08142B33 + .incbin "baserom.gba", 0x142B33, 0x000030C + +gUnk_08142E3F:: @ 08142E3F + .incbin "baserom.gba", 0x142E3F, 0x00001D9 + +gUnk_08143018:: @ 08143018 + .incbin "baserom.gba", 0x143018, 0x0000030 + +gUnk_08143048:: @ 08143048 + .incbin "baserom.gba", 0x143048, 0x00001F3 + +gUnk_0814323B:: @ 0814323B + .incbin "baserom.gba", 0x14323B, 0x00000F8 + +gUnk_08143333:: @ 08143333 + .incbin "baserom.gba", 0x143333, 0x0000006 + +gUnk_08143339:: @ 08143339 + .incbin "baserom.gba", 0x143339, 0x00000D7 + +gUnk_08143410:: @ 08143410 + .incbin "baserom.gba", 0x143410, 0x000000D + +gUnk_0814341D:: @ 0814341D + .incbin "baserom.gba", 0x14341D, 0x0000433 + +gUnk_08143850:: @ 08143850 + .incbin "baserom.gba", 0x143850, 0x0000514 + +gUnk_08143D64:: @ 08143D64 + .incbin "baserom.gba", 0x143D64, 0x00003D1 + +gUnk_08144135:: @ 08144135 + .incbin "baserom.gba", 0x144135, 0x000360C + +gUnk_08147741:: @ 08147741 + .incbin "baserom.gba", 0x147741, 0x00064AC + +gUnk_0814DBED:: @ 0814DBED + .incbin "baserom.gba", 0x14DBED, 0x000012A + +gUnk_0814DD17:: @ 0814DD17 + .incbin "baserom.gba", 0x14DD17, 0x00004C0 + +gUnk_0814E1D7:: @ 0814E1D7 + .incbin "baserom.gba", 0x14E1D7, 0x0000031 + +gUnk_0814E208:: @ 0814E208 + .incbin "baserom.gba", 0x14E208, 0x0000300 + +gUnk_0814E508:: @ 0814E508 + .incbin "baserom.gba", 0x14E508, 0x00003EF + +gUnk_0814E8F7:: @ 0814E8F7 + .incbin "baserom.gba", 0x14E8F7, 0x0000309 + +gUnk_0814EC00:: @ 0814EC00 + .incbin "baserom.gba", 0x14EC00, 0x00001D7 + +gUnk_0814EDD7:: @ 0814EDD7 + .incbin "baserom.gba", 0x14EDD7, 0x000012A + +gUnk_0814EF01:: @ 0814EF01 + .incbin "baserom.gba", 0x14EF01, 0x0000002 + +gUnk_0814EF03:: @ 0814EF03 + .incbin "baserom.gba", 0x14EF03, 0x0000018 + +gUnk_0814EF1B:: @ 0814EF1B + .incbin "baserom.gba", 0x14EF1B, 0x00000E6 + +gUnk_0814F001:: @ 0814F001 + .incbin "baserom.gba", 0x14F001, 0x00000DA + +gUnk_0814F0DB:: @ 0814F0DB + .incbin "baserom.gba", 0x14F0DB, 0x0000148 + +gUnk_0814F223:: @ 0814F223 + .incbin "baserom.gba", 0x14F223, 0x00003CC + +gUnk_0814F5EF:: @ 0814F5EF + .incbin "baserom.gba", 0x14F5EF, 0x0000009 + +gUnk_0814F5F8:: @ 0814F5F8 + .incbin "baserom.gba", 0x14F5F8, 0x0000208 + +gUnk_0814F800:: @ 0814F800 + .incbin "baserom.gba", 0x14F800, 0x0000018 + +gUnk_0814F818:: @ 0814F818 + .incbin "baserom.gba", 0x14F818, 0x00000C9 + +gUnk_0814F8E1:: @ 0814F8E1 + .incbin "baserom.gba", 0x14F8E1, 0x0000010 + +gUnk_0814F8F1:: @ 0814F8F1 + .incbin "baserom.gba", 0x14F8F1, 0x0000007 + +gUnk_0814F8F8:: @ 0814F8F8 + .incbin "baserom.gba", 0x14F8F8, 0x00001F0 + +gUnk_0814FAE8:: @ 0814FAE8 + .incbin "baserom.gba", 0x14FAE8, 0x00000F2 + +gUnk_0814FBDA:: @ 0814FBDA + .incbin "baserom.gba", 0x14FBDA, 0x0000104 + +gUnk_0814FCDE:: @ 0814FCDE + .incbin "baserom.gba", 0x14FCDE, 0x000001A + +gUnk_0814FCF8:: @ 0814FCF8 + .incbin "baserom.gba", 0x14FCF8, 0x00000F6 + +gUnk_0814FDEE:: @ 0814FDEE + .incbin "baserom.gba", 0x14FDEE, 0x000000C + +gUnk_0814FDFA:: @ 0814FDFA + .incbin "baserom.gba", 0x14FDFA, 0x0000020 + +gUnk_0814FE1A:: @ 0814FE1A + .incbin "baserom.gba", 0x14FE1A, 0x0000020 + +gUnk_0814FE3A:: @ 0814FE3A + .incbin "baserom.gba", 0x14FE3A, 0x00000B2 + +gUnk_0814FEEC:: @ 0814FEEC + .incbin "baserom.gba", 0x14FEEC, 0x00000E2 + +gUnk_0814FFCE:: @ 0814FFCE + .incbin "baserom.gba", 0x14FFCE, 0x0000032 + +gUnk_08150000:: @ 08150000 + .incbin "baserom.gba", 0x150000, 0x0000003 + +gUnk_08150003:: @ 08150003 + .incbin "baserom.gba", 0x150003, 0x0000007 + +gUnk_0815000A:: @ 0815000A + .incbin "baserom.gba", 0x15000A, 0x0000009 + +gUnk_08150013:: @ 08150013 + .incbin "baserom.gba", 0x150013, 0x0000007 + +gUnk_0815001A:: @ 0815001A + .incbin "baserom.gba", 0x15001A, 0x0000010 + +gUnk_0815002A:: @ 0815002A + .incbin "baserom.gba", 0x15002A, 0x000000A + +gUnk_08150034:: @ 08150034 + .incbin "baserom.gba", 0x150034, 0x0000008 + +gUnk_0815003C:: @ 0815003C + .incbin "baserom.gba", 0x15003C, 0x0000004 + +gUnk_08150040:: @ 08150040 + .incbin "baserom.gba", 0x150040, 0x0000016 + +gUnk_08150056:: @ 08150056 + .incbin "baserom.gba", 0x150056, 0x000008F + +gUnk_081500E5:: @ 081500E5 + .incbin "baserom.gba", 0x1500E5, 0x0000006 + +gUnk_081500EB:: @ 081500EB + .incbin "baserom.gba", 0x1500EB, 0x000001F + +gUnk_0815010A:: @ 0815010A + .incbin "baserom.gba", 0x15010A, 0x0000028 + +gUnk_08150132:: @ 08150132 + .incbin "baserom.gba", 0x150132, 0x000000E + +gUnk_08150140:: @ 08150140 + .incbin "baserom.gba", 0x150140, 0x00001C0 + +gUnk_08150300:: @ 08150300 + .incbin "baserom.gba", 0x150300, 0x000001D + +gUnk_0815031D:: @ 0815031D + .incbin "baserom.gba", 0x15031D, 0x00000E4 + +gUnk_08150401:: @ 08150401 + .incbin "baserom.gba", 0x150401, 0x0000001 + +gUnk_08150402:: @ 08150402 + .incbin "baserom.gba", 0x150402, 0x000001B + +gUnk_0815041D:: @ 0815041D + .incbin "baserom.gba", 0x15041D, 0x0000027 + +gUnk_08150444:: @ 08150444 + .incbin "baserom.gba", 0x150444, 0x00001A6 + +gUnk_081505EA:: @ 081505EA + .incbin "baserom.gba", 0x1505EA, 0x0000017 + +gUnk_08150601:: @ 08150601 + .incbin "baserom.gba", 0x150601, 0x00000AD + +gUnk_081506AE:: @ 081506AE + .incbin "baserom.gba", 0x1506AE, 0x0000125 + +gUnk_081507D3:: @ 081507D3 + .incbin "baserom.gba", 0x1507D3, 0x0000028 + +gUnk_081507FB:: @ 081507FB + .incbin "baserom.gba", 0x1507FB, 0x0000009 + +gUnk_08150804:: @ 08150804 + .incbin "baserom.gba", 0x150804, 0x0000002 + +gUnk_08150806:: @ 08150806 + .incbin "baserom.gba", 0x150806, 0x000000E + +gUnk_08150814:: @ 08150814 + .incbin "baserom.gba", 0x150814, 0x00000DE + +gUnk_081508F2:: @ 081508F2 + .incbin "baserom.gba", 0x1508F2, 0x000000B + +gUnk_081508FD:: @ 081508FD + .incbin "baserom.gba", 0x1508FD, 0x000010F + +gUnk_08150A0C:: @ 08150A0C + .incbin "baserom.gba", 0x150A0C, 0x00000E6 + +gUnk_08150AF2:: @ 08150AF2 + .incbin "baserom.gba", 0x150AF2, 0x0000018 + +gUnk_08150B0A:: @ 08150B0A + .incbin "baserom.gba", 0x150B0A, 0x0000005 + +gUnk_08150B0F:: @ 08150B0F + .incbin "baserom.gba", 0x150B0F, 0x000000C + +gUnk_08150B1B:: @ 08150B1B + .incbin "baserom.gba", 0x150B1B, 0x00002E6 + +gUnk_08150E01:: @ 08150E01 + .incbin "baserom.gba", 0x150E01, 0x00000EE + +gUnk_08150EEF:: @ 08150EEF + .incbin "baserom.gba", 0x150EEF, 0x000001D + +gUnk_08150F0C:: @ 08150F0C + .incbin "baserom.gba", 0x150F0C, 0x00000EB + +gUnk_08150FF7:: @ 08150FF7 + .incbin "baserom.gba", 0x150FF7, 0x000000D + +gUnk_08151004:: @ 08151004 + .incbin "baserom.gba", 0x151004, 0x00000FC + +gUnk_08151100:: @ 08151100 + .incbin "baserom.gba", 0x151100, 0x0000007 + +gUnk_08151107:: @ 08151107 + .incbin "baserom.gba", 0x151107, 0x00000F2 + +gUnk_081511F9:: @ 081511F9 + .incbin "baserom.gba", 0x1511F9, 0x000000F + +gUnk_08151208:: @ 08151208 + .incbin "baserom.gba", 0x151208, 0x0000004 + +gUnk_0815120C:: @ 0815120C + .incbin "baserom.gba", 0x15120C, 0x00000FB + +gUnk_08151307:: @ 08151307 + .incbin "baserom.gba", 0x151307, 0x0000007 + +gUnk_0815130E:: @ 0815130E + .incbin "baserom.gba", 0x15130E, 0x00000ED + +gUnk_081513FB:: @ 081513FB + .incbin "baserom.gba", 0x1513FB, 0x000011D + +gUnk_08151518:: @ 08151518 + .incbin "baserom.gba", 0x151518, 0x0000054 + +gUnk_0815156C:: @ 0815156C + .incbin "baserom.gba", 0x15156C, 0x00000A0 + +gUnk_0815160C:: @ 0815160C + .incbin "baserom.gba", 0x15160C, 0x0000004 + +gUnk_08151610:: @ 08151610 + .incbin "baserom.gba", 0x151610, 0x0000007 + +gUnk_08151617:: @ 08151617 + .incbin "baserom.gba", 0x151617, 0x00000EC + +gUnk_08151703:: @ 08151703 + .incbin "baserom.gba", 0x151703, 0x0000010 + +gUnk_08151713:: @ 08151713 + .incbin "baserom.gba", 0x151713, 0x0000003 + +gUnk_08151716:: @ 08151716 + .incbin "baserom.gba", 0x151716, 0x000000F + +gUnk_08151725:: @ 08151725 + .incbin "baserom.gba", 0x151725, 0x00000ED + +gUnk_08151812:: @ 08151812 + .incbin "baserom.gba", 0x151812, 0x0000001 + +gUnk_08151813:: @ 08151813 + .incbin "baserom.gba", 0x151813, 0x0000002 + +gUnk_08151815:: @ 08151815 + .incbin "baserom.gba", 0x151815, 0x0000010 + +gUnk_08151825:: @ 08151825 + .incbin "baserom.gba", 0x151825, 0x00000EA + +gUnk_0815190F:: @ 0815190F + .incbin "baserom.gba", 0x15190F, 0x0000006 + +gUnk_08151915:: @ 08151915 + .incbin "baserom.gba", 0x151915, 0x00000FA + +gUnk_08151A0F:: @ 08151A0F + .incbin "baserom.gba", 0x151A0F, 0x000000B + +gUnk_08151A1A:: @ 08151A1A + .incbin "baserom.gba", 0x151A1A, 0x00000FB + +gUnk_08151B15:: @ 08151B15 + .incbin "baserom.gba", 0x151B15, 0x0000004 + +gUnk_08151B19:: @ 08151B19 + .incbin "baserom.gba", 0x151B19, 0x0000004 + +gUnk_08151B1D:: @ 08151B1D + .incbin "baserom.gba", 0x151B1D, 0x0000002 + +gUnk_08151B1F:: @ 08151B1F + .incbin "baserom.gba", 0x151B1F, 0x00000E9 + +gUnk_08151C08:: @ 08151C08 + .incbin "baserom.gba", 0x151C08, 0x0000015 + +gUnk_08151C1D:: @ 08151C1D + .incbin "baserom.gba", 0x151C1D, 0x0000004 + +gUnk_08151C21:: @ 08151C21 + .incbin "baserom.gba", 0x151C21, 0x0000004 + +gUnk_08151C25:: @ 08151C25 + .incbin "baserom.gba", 0x151C25, 0x00000F3 + +gUnk_08151D18:: @ 08151D18 + .incbin "baserom.gba", 0x151D18, 0x000000D + +gUnk_08151D25:: @ 08151D25 + .incbin "baserom.gba", 0x151D25, 0x00000FC + +gUnk_08151E21:: @ 08151E21 + .incbin "baserom.gba", 0x151E21, 0x0000005 + +gUnk_08151E26:: @ 08151E26 + .incbin "baserom.gba", 0x151E26, 0x00000FA + +gUnk_08151F20:: @ 08151F20 + .incbin "baserom.gba", 0x151F20, 0x0000003 + +gUnk_08151F23:: @ 08151F23 + .incbin "baserom.gba", 0x151F23, 0x0000002 + +gUnk_08151F25:: @ 08151F25 + .incbin "baserom.gba", 0x151F25, 0x00000FF + +gUnk_08152024:: @ 08152024 + .incbin "baserom.gba", 0x152024, 0x0000003 + +gUnk_08152027:: @ 08152027 + .incbin "baserom.gba", 0x152027, 0x0000001 + +gUnk_08152028:: @ 08152028 + .incbin "baserom.gba", 0x152028, 0x0000007 + +gUnk_0815202F:: @ 0815202F + .incbin "baserom.gba", 0x15202F, 0x0000027 + +gUnk_08152056:: @ 08152056 + .incbin "baserom.gba", 0x152056, 0x00000C3 + +gUnk_08152119:: @ 08152119 + .incbin "baserom.gba", 0x152119, 0x0000001 + +gUnk_0815211A:: @ 0815211A + .incbin "baserom.gba", 0x15211A, 0x0000009 + +gUnk_08152123:: @ 08152123 + .incbin "baserom.gba", 0x152123, 0x0000003 + +gUnk_08152126:: @ 08152126 + .incbin "baserom.gba", 0x152126, 0x0000009 + +gUnk_0815212F:: @ 0815212F + .incbin "baserom.gba", 0x15212F, 0x0000001 + +gUnk_08152130:: @ 08152130 + .incbin "baserom.gba", 0x152130, 0x00000E1 + +gUnk_08152211:: @ 08152211 + .incbin "baserom.gba", 0x152211, 0x0000007 + +gUnk_08152218:: @ 08152218 + .incbin "baserom.gba", 0x152218, 0x0000011 + +gUnk_08152229:: @ 08152229 + .incbin "baserom.gba", 0x152229, 0x0000008 + +gUnk_08152231:: @ 08152231 + .incbin "baserom.gba", 0x152231, 0x00000EF + +gUnk_08152320:: @ 08152320 + .incbin "baserom.gba", 0x152320, 0x000000C + +gUnk_0815232C:: @ 0815232C + .incbin "baserom.gba", 0x15232C, 0x0000005 + +gUnk_08152331:: @ 08152331 + .incbin "baserom.gba", 0x152331, 0x00000CD + +gUnk_081523FE:: @ 081523FE + .incbin "baserom.gba", 0x1523FE, 0x000002B + +gUnk_08152429:: @ 08152429 + .incbin "baserom.gba", 0x152429, 0x00000EE + +gUnk_08152517:: @ 08152517 + .incbin "baserom.gba", 0x152517, 0x0000126 + +gUnk_0815263D:: @ 0815263D + .incbin "baserom.gba", 0x15263D, 0x00000F8 + +gUnk_08152735:: @ 08152735 + .incbin "baserom.gba", 0x152735, 0x000030B + +gUnk_08152A40:: @ 08152A40 + .incbin "baserom.gba", 0x152A40, 0x00000CC + +gUnk_08152B0C:: @ 08152B0C + .incbin "baserom.gba", 0x152B0C, 0x0000027 + +gUnk_08152B33:: @ 08152B33 + .incbin "baserom.gba", 0x152B33, 0x00002E3 + +gUnk_08152E16:: @ 08152E16 + .incbin "baserom.gba", 0x152E16, 0x000012F + +gUnk_08152F45:: @ 08152F45 + .incbin "baserom.gba", 0x152F45, 0x0000A22 + +gUnk_08153967:: @ 08153967 + .incbin "baserom.gba", 0x153967, 0x00001EC + +gUnk_08153B53:: @ 08153B53 + .incbin "baserom.gba", 0x153B53, 0x0000BD3 + +gUnk_08154726:: @ 08154726 + .incbin "baserom.gba", 0x154726, 0x0001E50 + +gUnk_08156576:: @ 08156576 + .incbin "baserom.gba", 0x156576, 0x0000333 + +gUnk_081568A9:: @ 081568A9 + .incbin "baserom.gba", 0x1568A9, 0x00000FE + +gUnk_081569A7:: @ 081569A7 + .incbin "baserom.gba", 0x1569A7, 0x0001BDE + +gUnk_08158585:: @ 08158585 + .incbin "baserom.gba", 0x158585, 0x0002B24 + +gUnk_0815B0A9:: @ 0815B0A9 + .incbin "baserom.gba", 0x15B0A9, 0x0001251 + +gUnk_0815C2FA:: @ 0815C2FA + .incbin "baserom.gba", 0x15C2FA, 0x0002101 + +gUnk_0815E3FB:: @ 0815E3FB + .incbin "baserom.gba", 0x15E3FB, 0x0000CFD + +gUnk_0815F0F8:: @ 0815F0F8 + .incbin "baserom.gba", 0x15F0F8, 0x0000AF5 + +gUnk_0815FBED:: @ 0815FBED + .incbin "baserom.gba", 0x15FBED, 0x0000222 + +gUnk_0815FE0F:: @ 0815FE0F + .incbin "baserom.gba", 0x15FE0F, 0x00001F1 + +gUnk_08160000:: @ 08160000 + .incbin "baserom.gba", 0x160000, 0x0000009 + +gUnk_08160009:: @ 08160009 + .incbin "baserom.gba", 0x160009, 0x00000B8 + +gUnk_081600C1:: @ 081600C1 + .incbin "baserom.gba", 0x1600C1, 0x0000012 + +gUnk_081600D3:: @ 081600D3 + .incbin "baserom.gba", 0x1600D3, 0x000000C + +gUnk_081600DF:: @ 081600DF + .incbin "baserom.gba", 0x1600DF, 0x0000005 + +gUnk_081600E4:: @ 081600E4 + .incbin "baserom.gba", 0x1600E4, 0x0000224 + +gUnk_08160308:: @ 08160308 + .incbin "baserom.gba", 0x160308, 0x000009D + +gUnk_081603A5:: @ 081603A5 + .incbin "baserom.gba", 0x1603A5, 0x000006A + +gUnk_0816040F:: @ 0816040F + .incbin "baserom.gba", 0x16040F, 0x00004DD + +gUnk_081608EC:: @ 081608EC + .incbin "baserom.gba", 0x1608EC, 0x0000118 + +gUnk_08160A04:: @ 08160A04 + .incbin "baserom.gba", 0x160A04, 0x0000104 + +gUnk_08160B08:: @ 08160B08 + .incbin "baserom.gba", 0x160B08, 0x00001EB + +gUnk_08160CF3:: @ 08160CF3 + .incbin "baserom.gba", 0x160CF3, 0x000020E + +gUnk_08160F01:: @ 08160F01 + .incbin "baserom.gba", 0x160F01, 0x0000002 + +gUnk_08160F03:: @ 08160F03 + .incbin "baserom.gba", 0x160F03, 0x0000006 + +gUnk_08160F09:: @ 08160F09 + .incbin "baserom.gba", 0x160F09, 0x0000105 + +gUnk_0816100E:: @ 0816100E + .incbin "baserom.gba", 0x16100E, 0x00000EF + +gUnk_081610FD:: @ 081610FD + .incbin "baserom.gba", 0x1610FD, 0x0000007 + +gUnk_08161104:: @ 08161104 + .incbin "baserom.gba", 0x161104, 0x00000F8 + +gUnk_081611FC:: @ 081611FC + .incbin "baserom.gba", 0x1611FC, 0x000002D + +gUnk_08161229:: @ 08161229 + .incbin "baserom.gba", 0x161229, 0x000002B + +gUnk_08161254:: @ 08161254 + .incbin "baserom.gba", 0x161254, 0x0000097 + +gUnk_081612EB:: @ 081612EB + .incbin "baserom.gba", 0x1612EB, 0x000000F + +gUnk_081612FA:: @ 081612FA + .incbin "baserom.gba", 0x1612FA, 0x0000006 + +gUnk_08161300:: @ 08161300 + .incbin "baserom.gba", 0x161300, 0x00000E2 + +gUnk_081613E2:: @ 081613E2 + .incbin "baserom.gba", 0x1613E2, 0x0000041 + +gUnk_08161423:: @ 08161423 + .incbin "baserom.gba", 0x161423, 0x00002E8 + +gUnk_0816170B:: @ 0816170B + .incbin "baserom.gba", 0x16170B, 0x00000FD + +gUnk_08161808:: @ 08161808 + .incbin "baserom.gba", 0x161808, 0x0000006 + +gUnk_0816180E:: @ 0816180E + .incbin "baserom.gba", 0x16180E, 0x000000B + +gUnk_08161819:: @ 08161819 + .incbin "baserom.gba", 0x161819, 0x00000F2 + +gUnk_0816190B:: @ 0816190B + .incbin "baserom.gba", 0x16190B, 0x0000007 + +gUnk_08161912:: @ 08161912 + .incbin "baserom.gba", 0x161912, 0x0000102 + +gUnk_08161A14:: @ 08161A14 + .incbin "baserom.gba", 0x161A14, 0x0000002 + +gUnk_08161A16:: @ 08161A16 + .incbin "baserom.gba", 0x161A16, 0x000000A + +gUnk_08161A20:: @ 08161A20 + .incbin "baserom.gba", 0x161A20, 0x00000EC + +gUnk_08161B0C:: @ 08161B0C + .incbin "baserom.gba", 0x161B0C, 0x0000003 + +gUnk_08161B0F:: @ 08161B0F + .incbin "baserom.gba", 0x161B0F, 0x0000009 + +gUnk_08161B18:: @ 08161B18 + .incbin "baserom.gba", 0x161B18, 0x0000005 + +gUnk_08161B1D:: @ 08161B1D + .incbin "baserom.gba", 0x161B1D, 0x0000007 + +gUnk_08161B24:: @ 08161B24 + .incbin "baserom.gba", 0x161B24, 0x00000AC + +gUnk_08161BD0:: @ 08161BD0 + .incbin "baserom.gba", 0x161BD0, 0x000004F + +gUnk_08161C1F:: @ 08161C1F + .incbin "baserom.gba", 0x161C1F, 0x00000FB + +gUnk_08161D1A:: @ 08161D1A + .incbin "baserom.gba", 0x161D1A, 0x000001B + +gUnk_08161D35:: @ 08161D35 + .incbin "baserom.gba", 0x161D35, 0x00000CB + +gUnk_08161E00:: @ 08161E00 + .incbin "baserom.gba", 0x161E00, 0x0000017 + +gUnk_08161E17:: @ 08161E17 + .incbin "baserom.gba", 0x161E17, 0x00000D9 + +gUnk_08161EF0:: @ 08161EF0 + .incbin "baserom.gba", 0x161EF0, 0x000001D + +gUnk_08161F0D:: @ 08161F0D + .incbin "baserom.gba", 0x161F0D, 0x0000011 + +gUnk_08161F1E:: @ 08161F1E + .incbin "baserom.gba", 0x161F1E, 0x0000004 + +gUnk_08161F22:: @ 08161F22 + .incbin "baserom.gba", 0x161F22, 0x0000006 + +gUnk_08161F28:: @ 08161F28 + .incbin "baserom.gba", 0x161F28, 0x00000F5 + +gUnk_0816201D:: @ 0816201D + .incbin "baserom.gba", 0x16201D, 0x0000008 + +gUnk_08162025:: @ 08162025 + .incbin "baserom.gba", 0x162025, 0x0000005 + +gUnk_0816202A:: @ 0816202A + .incbin "baserom.gba", 0x16202A, 0x0000100 + +gUnk_0816212A:: @ 0816212A + .incbin "baserom.gba", 0x16212A, 0x00000ED + +gUnk_08162217:: @ 08162217 + .incbin "baserom.gba", 0x162217, 0x0000017 + +gUnk_0816222E:: @ 0816222E + .incbin "baserom.gba", 0x16222E, 0x00000F5 + +gUnk_08162323:: @ 08162323 + .incbin "baserom.gba", 0x162323, 0x0000001 + +gUnk_08162324:: @ 08162324 + .incbin "baserom.gba", 0x162324, 0x0000005 + +gUnk_08162329:: @ 08162329 + .incbin "baserom.gba", 0x162329, 0x0000004 + +gUnk_0816232D:: @ 0816232D + .incbin "baserom.gba", 0x16232D, 0x0000002 + +gUnk_0816232F:: @ 0816232F + .incbin "baserom.gba", 0x16232F, 0x0000002 + +gUnk_08162331:: @ 08162331 + .incbin "baserom.gba", 0x162331, 0x00001E9 + +gUnk_0816251A:: @ 0816251A + .incbin "baserom.gba", 0x16251A, 0x0000014 + +gUnk_0816252E:: @ 0816252E + .incbin "baserom.gba", 0x16252E, 0x0000106 + +gUnk_08162634:: @ 08162634 + .incbin "baserom.gba", 0x162634, 0x0000408 + +gUnk_08162A3C:: @ 08162A3C + .incbin "baserom.gba", 0x162A3C, 0x00000FD + +gUnk_08162B39:: @ 08162B39 + .incbin "baserom.gba", 0x162B39, 0x0000309 + +gUnk_08162E42:: @ 08162E42 + .incbin "baserom.gba", 0x162E42, 0x0000200 + +gUnk_08163042:: @ 08163042 + .incbin "baserom.gba", 0x163042, 0x00000EF + +gUnk_08163131:: @ 08163131 + .incbin "baserom.gba", 0x163131, 0x0000013 + +gUnk_08163144:: @ 08163144 + .incbin "baserom.gba", 0x163144, 0x00010BD + +gUnk_08164201:: @ 08164201 + .incbin "baserom.gba", 0x164201, 0x0001315 + +gUnk_08165516:: @ 08165516 + .incbin "baserom.gba", 0x165516, 0x000015F + +gUnk_08165675:: @ 08165675 + .incbin "baserom.gba", 0x165675, 0x0000BA8 + +gUnk_0816621D:: @ 0816621D + .incbin "baserom.gba", 0x16621D, 0x0001014 + +gUnk_08167231:: @ 08167231 + .incbin "baserom.gba", 0x167231, 0x0003DFE + +gUnk_0816B02F:: @ 0816B02F + .incbin "baserom.gba", 0x16B02F, 0x00037D2 + +gUnk_0816E801:: @ 0816E801 + .incbin "baserom.gba", 0x16E801, 0x0000523 + +gUnk_0816ED24:: @ 0816ED24 + .incbin "baserom.gba", 0x16ED24, 0x00002A1 + +gUnk_0816EFC5:: @ 0816EFC5 + .incbin "baserom.gba", 0x16EFC5, 0x0000232 + +gUnk_0816F1F7:: @ 0816F1F7 + .incbin "baserom.gba", 0x16F1F7, 0x00005DD + +gUnk_0816F7D4:: @ 0816F7D4 + .incbin "baserom.gba", 0x16F7D4, 0x000001C + +gUnk_0816F7F0:: @ 0816F7F0 + .incbin "baserom.gba", 0x16F7F0, 0x0000603 + +gUnk_0816FDF3:: @ 0816FDF3 + .incbin "baserom.gba", 0x16FDF3, 0x0000105 + +gUnk_0816FEF8:: @ 0816FEF8 + .incbin "baserom.gba", 0x16FEF8, 0x0000108 + +gUnk_08170000:: @ 08170000 + .incbin "baserom.gba", 0x170000, 0x000000D + +gUnk_0817000D:: @ 0817000D + .incbin "baserom.gba", 0x17000D, 0x0000005 + +gUnk_08170012:: @ 08170012 + .incbin "baserom.gba", 0x170012, 0x0000087 + +gUnk_08170099:: @ 08170099 + .incbin "baserom.gba", 0x170099, 0x0000051 + +gUnk_081700EA:: @ 081700EA + .incbin "baserom.gba", 0x1700EA, 0x000001D + +gUnk_08170107:: @ 08170107 + .incbin "baserom.gba", 0x170107, 0x0000039 + +gUnk_08170140:: @ 08170140 + .incbin "baserom.gba", 0x170140, 0x00001BA + +gUnk_081702FA:: @ 081702FA + .incbin "baserom.gba", 0x1702FA, 0x00000F7 + +gUnk_081703F1:: @ 081703F1 + .incbin "baserom.gba", 0x1703F1, 0x0000010 + +gUnk_08170401:: @ 08170401 + .incbin "baserom.gba", 0x170401, 0x000000F + +gUnk_08170410:: @ 08170410 + .incbin "baserom.gba", 0x170410, 0x000000D + +gUnk_0817041D:: @ 0817041D + .incbin "baserom.gba", 0x17041D, 0x0000303 + +gUnk_08170720:: @ 08170720 + .incbin "baserom.gba", 0x170720, 0x0000040 + +gUnk_08170760:: @ 08170760 + .incbin "baserom.gba", 0x170760, 0x0000045 + +gUnk_081707A5:: @ 081707A5 + .incbin "baserom.gba", 0x1707A5, 0x0000061 + +gUnk_08170806:: @ 08170806 + .incbin "baserom.gba", 0x170806, 0x0000108 + +gUnk_0817090E:: @ 0817090E + .incbin "baserom.gba", 0x17090E, 0x00001F1 + +gUnk_08170AFF:: @ 08170AFF + .incbin "baserom.gba", 0x170AFF, 0x0000106 + +gUnk_08170C05:: @ 08170C05 + .incbin "baserom.gba", 0x170C05, 0x00003F0 + +gUnk_08170FF5:: @ 08170FF5 + .incbin "baserom.gba", 0x170FF5, 0x0000012 + +gUnk_08171007:: @ 08171007 + .incbin "baserom.gba", 0x171007, 0x0000045 + +gUnk_0817104C:: @ 0817104C + .incbin "baserom.gba", 0x17104C, 0x000004E + +gUnk_0817109A:: @ 0817109A + .incbin "baserom.gba", 0x17109A, 0x0000068 + +gUnk_08171102:: @ 08171102 + .incbin "baserom.gba", 0x171102, 0x00000E9 + +gUnk_081711EB:: @ 081711EB + .incbin "baserom.gba", 0x1711EB, 0x000001B + +gUnk_08171206:: @ 08171206 + .incbin "baserom.gba", 0x171206, 0x000001B + +gUnk_08171221:: @ 08171221 + .incbin "baserom.gba", 0x171221, 0x00000E4 + +gUnk_08171305:: @ 08171305 + .incbin "baserom.gba", 0x171305, 0x0000149 + +gUnk_0817144E:: @ 0817144E + .incbin "baserom.gba", 0x17144E, 0x00000B3 + +gUnk_08171501:: @ 08171501 + .incbin "baserom.gba", 0x171501, 0x000000E + +gUnk_0817150F:: @ 0817150F + .incbin "baserom.gba", 0x17150F, 0x00000FE + +gUnk_0817160D:: @ 0817160D + .incbin "baserom.gba", 0x17160D, 0x0000014 + +gUnk_08171621:: @ 08171621 + .incbin "baserom.gba", 0x171621, 0x00003F5 + +gUnk_08171A16:: @ 08171A16 + .incbin "baserom.gba", 0x171A16, 0x00000FB + +gUnk_08171B11:: @ 08171B11 + .incbin "baserom.gba", 0x171B11, 0x000010A + +gUnk_08171C1B:: @ 08171C1B + .incbin "baserom.gba", 0x171C1B, 0x000015B + +gUnk_08171D76:: @ 08171D76 + .incbin "baserom.gba", 0x171D76, 0x00000AF + +gUnk_08171E25:: @ 08171E25 + .incbin "baserom.gba", 0x171E25, 0x00000DF + +gUnk_08171F04:: @ 08171F04 + .incbin "baserom.gba", 0x171F04, 0x000001A + +gUnk_08171F1E:: @ 08171F1E + .incbin "baserom.gba", 0x171F1E, 0x0000014 + +gUnk_08171F32:: @ 08171F32 + .incbin "baserom.gba", 0x171F32, 0x00000E5 + +gUnk_08172017:: @ 08172017 + .incbin "baserom.gba", 0x172017, 0x0000009 + +gUnk_08172020:: @ 08172020 + .incbin "baserom.gba", 0x172020, 0x0000001 + +gUnk_08172021:: @ 08172021 + .incbin "baserom.gba", 0x172021, 0x0000001 + +gUnk_08172022:: @ 08172022 + .incbin "baserom.gba", 0x172022, 0x000000B + +gUnk_0817202D:: @ 0817202D + .incbin "baserom.gba", 0x17202D, 0x0000032 + +gUnk_0817205F:: @ 0817205F + .incbin "baserom.gba", 0x17205F, 0x00000BB + +gUnk_0817211A:: @ 0817211A + .incbin "baserom.gba", 0x17211A, 0x000000A + +gUnk_08172124:: @ 08172124 + .incbin "baserom.gba", 0x172124, 0x0000001 + +gUnk_08172125:: @ 08172125 + .incbin "baserom.gba", 0x172125, 0x0000004 + +gUnk_08172129:: @ 08172129 + .incbin "baserom.gba", 0x172129, 0x000000A + +gUnk_08172133:: @ 08172133 + .incbin "baserom.gba", 0x172133, 0x00000F2 + +gUnk_08172225:: @ 08172225 + .incbin "baserom.gba", 0x172225, 0x0000001 + +gUnk_08172226:: @ 08172226 + .incbin "baserom.gba", 0x172226, 0x0000003 + +gUnk_08172229:: @ 08172229 + .incbin "baserom.gba", 0x172229, 0x0000001 + +gUnk_0817222A:: @ 0817222A + .incbin "baserom.gba", 0x17222A, 0x0000017 + +gUnk_08172241:: @ 08172241 + .incbin "baserom.gba", 0x172241, 0x00000DF + +gUnk_08172320:: @ 08172320 + .incbin "baserom.gba", 0x172320, 0x0000008 + +gUnk_08172328:: @ 08172328 + .incbin "baserom.gba", 0x172328, 0x0000206 + +gUnk_0817252E:: @ 0817252E + .incbin "baserom.gba", 0x17252E, 0x00000FE + +gUnk_0817262C:: @ 0817262C + .incbin "baserom.gba", 0x17262C, 0x0000009 + +gUnk_08172635:: @ 08172635 + .incbin "baserom.gba", 0x172635, 0x00000F1 + +gUnk_08172726:: @ 08172726 + .incbin "baserom.gba", 0x172726, 0x0000012 + +gUnk_08172738:: @ 08172738 + .incbin "baserom.gba", 0x172738, 0x00000E7 + +gUnk_0817281F:: @ 0817281F + .incbin "baserom.gba", 0x17281F, 0x0000016 + +gUnk_08172835:: @ 08172835 + .incbin "baserom.gba", 0x172835, 0x0000006 + +gUnk_0817283B:: @ 0817283B + .incbin "baserom.gba", 0x17283B, 0x00000E2 + +gUnk_0817291D:: @ 0817291D + .incbin "baserom.gba", 0x17291D, 0x000001C + +gUnk_08172939:: @ 08172939 + .incbin "baserom.gba", 0x172939, 0x00000EF + +gUnk_08172A28:: @ 08172A28 + .incbin "baserom.gba", 0x172A28, 0x000010F + +gUnk_08172B37:: @ 08172B37 + .incbin "baserom.gba", 0x172B37, 0x0000003 + +gUnk_08172B3A:: @ 08172B3A + .incbin "baserom.gba", 0x172B3A, 0x000051B + +gUnk_08173055:: @ 08173055 + .incbin "baserom.gba", 0x173055, 0x00003E9 + +gUnk_0817343E:: @ 0817343E + .incbin "baserom.gba", 0x17343E, 0x0000327 + +gUnk_08173765:: @ 08173765 + .incbin "baserom.gba", 0x173765, 0x00002C3 + +gUnk_08173A28:: @ 08173A28 + .incbin "baserom.gba", 0x173A28, 0x0000521 + +gUnk_08173F49:: @ 08173F49 + .incbin "baserom.gba", 0x173F49, 0x0000500 + +gUnk_08174449:: @ 08174449 + .incbin "baserom.gba", 0x174449, 0x0000203 + +gUnk_0817464C:: @ 0817464C + .incbin "baserom.gba", 0x17464C, 0x000071E + +gUnk_08174D6A:: @ 08174D6A + .incbin "baserom.gba", 0x174D6A, 0x00005AF + +gUnk_08175319:: @ 08175319 + .incbin "baserom.gba", 0x175319, 0x0002DF4 + +gUnk_0817810D:: @ 0817810D + .incbin "baserom.gba", 0x17810D, 0x000077B + +gUnk_08178888:: @ 08178888 + .incbin "baserom.gba", 0x178888, 0x000262F + +gUnk_0817AEB7:: @ 0817AEB7 + .incbin "baserom.gba", 0x17AEB7, 0x0003060 + +gUnk_0817DF17:: @ 0817DF17 + .incbin "baserom.gba", 0x17DF17, 0x0000028 + +gUnk_0817DF3F:: @ 0817DF3F + .incbin "baserom.gba", 0x17DF3F, 0x00007AE + +gUnk_0817E6ED:: @ 0817E6ED + .incbin "baserom.gba", 0x17E6ED, 0x00001C0 + +gUnk_0817E8AD:: @ 0817E8AD + .incbin "baserom.gba", 0x17E8AD, 0x0000B4D + +gUnk_0817F3FA:: @ 0817F3FA + .incbin "baserom.gba", 0x17F3FA, 0x0000804 + +gUnk_0817FBFE:: @ 0817FBFE + .incbin "baserom.gba", 0x17FBFE, 0x00000CA + +gUnk_0817FCC8:: @ 0817FCC8 + .incbin "baserom.gba", 0x17FCC8, 0x000024B + +gUnk_0817FF13:: @ 0817FF13 + .incbin "baserom.gba", 0x17FF13, 0x0000002 + +gUnk_0817FF15:: @ 0817FF15 + .incbin "baserom.gba", 0x17FF15, 0x00000EB + +gUnk_08180000:: @ 08180000 + .incbin "baserom.gba", 0x180000, 0x0000013 + +gUnk_08180013:: @ 08180013 + .incbin "baserom.gba", 0x180013, 0x000009D + +gUnk_081800B0:: @ 081800B0 + .incbin "baserom.gba", 0x1800B0, 0x0000040 + +gUnk_081800F0:: @ 081800F0 + .incbin "baserom.gba", 0x1800F0, 0x0000009 + +gUnk_081800F9:: @ 081800F9 + .incbin "baserom.gba", 0x1800F9, 0x0000007 + +gUnk_08180100:: @ 08180100 + .incbin "baserom.gba", 0x180100, 0x0000040 + +gUnk_08180140:: @ 08180140 + .incbin "baserom.gba", 0x180140, 0x00000C0 + +gUnk_08180200:: @ 08180200 + .incbin "baserom.gba", 0x180200, 0x000000F + +gUnk_0818020F:: @ 0818020F + .incbin "baserom.gba", 0x18020F, 0x0000097 + +gUnk_081802A6:: @ 081802A6 + .incbin "baserom.gba", 0x1802A6, 0x000009A + +gUnk_08180340:: @ 08180340 + .incbin "baserom.gba", 0x180340, 0x00002A1 + +gUnk_081805E1:: @ 081805E1 + .incbin "baserom.gba", 0x1805E1, 0x000010F + +gUnk_081806F0:: @ 081806F0 + .incbin "baserom.gba", 0x1806F0, 0x00000E0 + +gUnk_081807D0:: @ 081807D0 + .incbin "baserom.gba", 0x1807D0, 0x0000030 + +gUnk_08180800:: @ 08180800 + .incbin "baserom.gba", 0x180800, 0x0000003 + +gUnk_08180803:: @ 08180803 + .incbin "baserom.gba", 0x180803, 0x0000005 + +gUnk_08180808:: @ 08180808 + .incbin "baserom.gba", 0x180808, 0x00002F8 + +gUnk_08180B00:: @ 08180B00 + .incbin "baserom.gba", 0x180B00, 0x0000010 + +gUnk_08180B10:: @ 08180B10 + .incbin "baserom.gba", 0x180B10, 0x00000DF + +gUnk_08180BEF:: @ 08180BEF + .incbin "baserom.gba", 0x180BEF, 0x0000227 + +gUnk_08180E16:: @ 08180E16 + .incbin "baserom.gba", 0x180E16, 0x00001C4 + +gUnk_08180FDA:: @ 08180FDA + .incbin "baserom.gba", 0x180FDA, 0x0000017 + +gUnk_08180FF1:: @ 08180FF1 + .incbin "baserom.gba", 0x180FF1, 0x0000118 + +gUnk_08181109:: @ 08181109 + .incbin "baserom.gba", 0x181109, 0x00000FB + +gUnk_08181204:: @ 08181204 + .incbin "baserom.gba", 0x181204, 0x0000118 + +gUnk_0818131C:: @ 0818131C + .incbin "baserom.gba", 0x18131C, 0x00000FE + +gUnk_0818141A:: @ 0818141A + .incbin "baserom.gba", 0x18141A, 0x00000E1 + +gUnk_081814FB:: @ 081814FB + .incbin "baserom.gba", 0x1814FB, 0x000010A + +gUnk_08181605:: @ 08181605 + .incbin "baserom.gba", 0x181605, 0x0000008 + +gUnk_0818160D:: @ 0818160D + .incbin "baserom.gba", 0x18160D, 0x00000F7 + +gUnk_08181704:: @ 08181704 + .incbin "baserom.gba", 0x181704, 0x0000106 + +gUnk_0818180A:: @ 0818180A + .incbin "baserom.gba", 0x18180A, 0x0000107 + +gUnk_08181911:: @ 08181911 + .incbin "baserom.gba", 0x181911, 0x0000006 + +gUnk_08181917:: @ 08181917 + .incbin "baserom.gba", 0x181917, 0x0000001 + +gUnk_08181918:: @ 08181918 + .incbin "baserom.gba", 0x181918, 0x0000004 + +gUnk_0818191C:: @ 0818191C + .incbin "baserom.gba", 0x18191C, 0x00000B1 + +gUnk_081819CD:: @ 081819CD + .incbin "baserom.gba", 0x1819CD, 0x0000044 + +gUnk_08181A11:: @ 08181A11 + .incbin "baserom.gba", 0x181A11, 0x0000002 + +gUnk_08181A13:: @ 08181A13 + .incbin "baserom.gba", 0x181A13, 0x000000B + +gUnk_08181A1E:: @ 08181A1E + .incbin "baserom.gba", 0x181A1E, 0x00001E2 + +gUnk_08181C00:: @ 08181C00 + .incbin "baserom.gba", 0x181C00, 0x0000014 + +gUnk_08181C14:: @ 08181C14 + .incbin "baserom.gba", 0x181C14, 0x0000111 + +gUnk_08181D25:: @ 08181D25 + .incbin "baserom.gba", 0x181D25, 0x00000F7 + +gUnk_08181E1C:: @ 08181E1C + .incbin "baserom.gba", 0x181E1C, 0x00000FF + +gUnk_08181F1B:: @ 08181F1B + .incbin "baserom.gba", 0x181F1B, 0x00000E5 + +gUnk_08182000:: @ 08182000 + .incbin "baserom.gba", 0x182000, 0x0000019 + +gUnk_08182019:: @ 08182019 + .incbin "baserom.gba", 0x182019, 0x0000003 + +gUnk_0818201C:: @ 0818201C + .incbin "baserom.gba", 0x18201C, 0x0000003 + +gUnk_0818201F:: @ 0818201F + .incbin "baserom.gba", 0x18201F, 0x0000006 + +gUnk_08182025:: @ 08182025 + .incbin "baserom.gba", 0x182025, 0x0000001 + +gUnk_08182026:: @ 08182026 + .incbin "baserom.gba", 0x182026, 0x00000FE + +gUnk_08182124:: @ 08182124 + .incbin "baserom.gba", 0x182124, 0x0000001 + +gUnk_08182125:: @ 08182125 + .incbin "baserom.gba", 0x182125, 0x0000008 + +gUnk_0818212D:: @ 0818212D + .incbin "baserom.gba", 0x18212D, 0x00000F7 + +gUnk_08182224:: @ 08182224 + .incbin "baserom.gba", 0x182224, 0x0000001 + +gUnk_08182225:: @ 08182225 + .incbin "baserom.gba", 0x182225, 0x0000109 + +gUnk_0818232E:: @ 0818232E + .incbin "baserom.gba", 0x18232E, 0x00000DF + +gUnk_0818240D:: @ 0818240D + .incbin "baserom.gba", 0x18240D, 0x000001B + +gUnk_08182428:: @ 08182428 + .incbin "baserom.gba", 0x182428, 0x0000002 + +gUnk_0818242A:: @ 0818242A + .incbin "baserom.gba", 0x18242A, 0x0000104 + +gUnk_0818252E:: @ 0818252E + .incbin "baserom.gba", 0x18252E, 0x0000001 + +gUnk_0818252F:: @ 0818252F + .incbin "baserom.gba", 0x18252F, 0x0000004 + +gUnk_08182533:: @ 08182533 + .incbin "baserom.gba", 0x182533, 0x0000002 + +gUnk_08182535:: @ 08182535 + .incbin "baserom.gba", 0x182535, 0x00000E5 + +gUnk_0818261A:: @ 0818261A + .incbin "baserom.gba", 0x18261A, 0x0000014 + +gUnk_0818262E:: @ 0818262E + .incbin "baserom.gba", 0x18262E, 0x000000E + +gUnk_0818263C:: @ 0818263C + .incbin "baserom.gba", 0x18263C, 0x00000ED + +gUnk_08182729:: @ 08182729 + .incbin "baserom.gba", 0x182729, 0x00000D7 + +gUnk_08182800:: @ 08182800 + .incbin "baserom.gba", 0x182800, 0x0000230 + +gUnk_08182A30:: @ 08182A30 + .incbin "baserom.gba", 0x182A30, 0x000000B + +gUnk_08182A3B:: @ 08182A3B + .incbin "baserom.gba", 0x182A3B, 0x00002F5 + +gUnk_08182D30:: @ 08182D30 + .incbin "baserom.gba", 0x182D30, 0x000000F + +gUnk_08182D3F:: @ 08182D3F + .incbin "baserom.gba", 0x182D3F, 0x00000D7 + +gUnk_08182E16:: @ 08182E16 + .incbin "baserom.gba", 0x182E16, 0x000001E + +gUnk_08182E34:: @ 08182E34 + .incbin "baserom.gba", 0x182E34, 0x0000008 + +gUnk_08182E3C:: @ 08182E3C + .incbin "baserom.gba", 0x182E3C, 0x0000244 + +gUnk_08183080:: @ 08183080 + .incbin "baserom.gba", 0x183080, 0x00000CB + +gUnk_0818314B:: @ 0818314B + .incbin "baserom.gba", 0x18314B, 0x0000AB5 + +gUnk_08183C00:: @ 08183C00 + .incbin "baserom.gba", 0x183C00, 0x0000060 + +gUnk_08183C60:: @ 08183C60 + .incbin "baserom.gba", 0x183C60, 0x0001AA1 + +gUnk_08185701:: @ 08185701 + .incbin "baserom.gba", 0x185701, 0x0002900 + +gUnk_08188001:: @ 08188001 + .incbin "baserom.gba", 0x188001, 0x00049FD + +gUnk_0818C9FE:: @ 0818C9FE + .incbin "baserom.gba", 0x18C9FE, 0x0001221 + +gUnk_0818DC1F:: @ 0818DC1F + .incbin "baserom.gba", 0x18DC1F, 0x00001E2 + +gUnk_0818DE01:: @ 0818DE01 + .incbin "baserom.gba", 0x18DE01, 0x000019B + +gUnk_0818DF9C:: @ 0818DF9C + .incbin "baserom.gba", 0x18DF9C, 0x000115D + +gUnk_0818F0F9:: @ 0818F0F9 + .incbin "baserom.gba", 0x18F0F9, 0x0000140 + +gUnk_0818F239:: @ 0818F239 + .incbin "baserom.gba", 0x18F239, 0x00004DA + +gUnk_0818F713:: @ 0818F713 + .incbin "baserom.gba", 0x18F713, 0x00000EB + +gUnk_0818F7FE:: @ 0818F7FE + .incbin "baserom.gba", 0x18F7FE, 0x0000002 + +gUnk_0818F800:: @ 0818F800 + .incbin "baserom.gba", 0x18F800, 0x00000B8 + +gUnk_0818F8B8:: @ 0818F8B8 + .incbin "baserom.gba", 0x18F8B8, 0x0000424 + +gUnk_0818FCDC:: @ 0818FCDC + .incbin "baserom.gba", 0x18FCDC, 0x0000324 + +gUnk_08190000:: @ 08190000 + .incbin "baserom.gba", 0x190000, 0x0000001 + +gUnk_08190001:: @ 08190001 + .incbin "baserom.gba", 0x190001, 0x000000B + +gUnk_0819000C:: @ 0819000C + .incbin "baserom.gba", 0x19000C, 0x0000109 + +gUnk_08190115:: @ 08190115 + .incbin "baserom.gba", 0x190115, 0x00000D7 + +gUnk_081901EC:: @ 081901EC + .incbin "baserom.gba", 0x1901EC, 0x0000016 + +gUnk_08190202:: @ 08190202 + .incbin "baserom.gba", 0x190202, 0x000012D + +gUnk_0819032F:: @ 0819032F + .incbin "baserom.gba", 0x19032F, 0x00000D1 + +gUnk_08190400:: @ 08190400 + .incbin "baserom.gba", 0x190400, 0x0000080 + +gUnk_08190480:: @ 08190480 + .incbin "baserom.gba", 0x190480, 0x0000080 + +gUnk_08190500:: @ 08190500 + .incbin "baserom.gba", 0x190500, 0x000010D + +gUnk_0819060D:: @ 0819060D + .incbin "baserom.gba", 0x19060D, 0x0000200 + +gUnk_0819080D:: @ 0819080D + .incbin "baserom.gba", 0x19080D, 0x0000104 + +gUnk_08190911:: @ 08190911 + .incbin "baserom.gba", 0x190911, 0x00000DE + +gUnk_081909EF:: @ 081909EF + .incbin "baserom.gba", 0x1909EF, 0x00003F7 + +gUnk_08190DE6:: @ 08190DE6 + .incbin "baserom.gba", 0x190DE6, 0x0000021 + +gUnk_08190E07:: @ 08190E07 + .incbin "baserom.gba", 0x190E07, 0x000000C + +gUnk_08190E13:: @ 08190E13 + .incbin "baserom.gba", 0x190E13, 0x00000CF + +gUnk_08190EE2:: @ 08190EE2 + .incbin "baserom.gba", 0x190EE2, 0x0000034 + +gUnk_08190F16:: @ 08190F16 + .incbin "baserom.gba", 0x190F16, 0x00000E0 + +gUnk_08190FF6:: @ 08190FF6 + .incbin "baserom.gba", 0x190FF6, 0x0000062 + +gUnk_08191058:: @ 08191058 + .incbin "baserom.gba", 0x191058, 0x00000B6 + +gUnk_0819110E:: @ 0819110E + .incbin "baserom.gba", 0x19110E, 0x00000F3 + +gUnk_08191201:: @ 08191201 + .incbin "baserom.gba", 0x191201, 0x0000105 + +gUnk_08191306:: @ 08191306 + .incbin "baserom.gba", 0x191306, 0x000010C + +gUnk_08191412:: @ 08191412 + .incbin "baserom.gba", 0x191412, 0x0000006 + +gUnk_08191418:: @ 08191418 + .incbin "baserom.gba", 0x191418, 0x00000FE + +gUnk_08191516:: @ 08191516 + .incbin "baserom.gba", 0x191516, 0x00001D5 + +gUnk_081916EB:: @ 081916EB + .incbin "baserom.gba", 0x1916EB, 0x0000030 + +gUnk_0819171B:: @ 0819171B + .incbin "baserom.gba", 0x19171B, 0x0000001 + +gUnk_0819171C:: @ 0819171C + .incbin "baserom.gba", 0x19171C, 0x00001F3 + +gUnk_0819190F:: @ 0819190F + .incbin "baserom.gba", 0x19190F, 0x0000306 + +gUnk_08191C15:: @ 08191C15 + .incbin "baserom.gba", 0x191C15, 0x00000FA + +gUnk_08191D0F:: @ 08191D0F + .incbin "baserom.gba", 0x191D0F, 0x000000D + +gUnk_08191D1C:: @ 08191D1C + .incbin "baserom.gba", 0x191D1C, 0x0000001 + +gUnk_08191D1D:: @ 08191D1D + .incbin "baserom.gba", 0x191D1D, 0x00000FA + +gUnk_08191E17:: @ 08191E17 + .incbin "baserom.gba", 0x191E17, 0x00000F9 + +gUnk_08191F10:: @ 08191F10 + .incbin "baserom.gba", 0x191F10, 0x0000103 + +gUnk_08192013:: @ 08192013 + .incbin "baserom.gba", 0x192013, 0x000010D + +gUnk_08192120:: @ 08192120 + .incbin "baserom.gba", 0x192120, 0x0000009 + +gUnk_08192129:: @ 08192129 + .incbin "baserom.gba", 0x192129, 0x00000F8 + +gUnk_08192221:: @ 08192221 + .incbin "baserom.gba", 0x192221, 0x0000008 + +gUnk_08192229:: @ 08192229 + .incbin "baserom.gba", 0x192229, 0x000010B + +gUnk_08192334:: @ 08192334 + .incbin "baserom.gba", 0x192334, 0x00000AF + +gUnk_081923E3:: @ 081923E3 + .incbin "baserom.gba", 0x1923E3, 0x000003D + +gUnk_08192420:: @ 08192420 + .incbin "baserom.gba", 0x192420, 0x0000009 + +gUnk_08192429:: @ 08192429 + .incbin "baserom.gba", 0x192429, 0x0000001 + +gUnk_0819242A:: @ 0819242A + .incbin "baserom.gba", 0x19242A, 0x0000001 + +gUnk_0819242B:: @ 0819242B + .incbin "baserom.gba", 0x19242B, 0x00000E0 + +gUnk_0819250B:: @ 0819250B + .incbin "baserom.gba", 0x19250B, 0x0000005 + +gUnk_08192510:: @ 08192510 + .incbin "baserom.gba", 0x192510, 0x0000018 + +gUnk_08192528:: @ 08192528 + .incbin "baserom.gba", 0x192528, 0x0000012 + +gUnk_0819253A:: @ 0819253A + .incbin "baserom.gba", 0x19253A, 0x00000E9 + +gUnk_08192623:: @ 08192623 + .incbin "baserom.gba", 0x192623, 0x000000B + +gUnk_0819262E:: @ 0819262E + .incbin "baserom.gba", 0x19262E, 0x0000001 + +gUnk_0819262F:: @ 0819262F + .incbin "baserom.gba", 0x19262F, 0x0000204 + +gUnk_08192833:: @ 08192833 + .incbin "baserom.gba", 0x192833, 0x00000F8 + +gUnk_0819292B:: @ 0819292B + .incbin "baserom.gba", 0x19292B, 0x000000D + +gUnk_08192938:: @ 08192938 + .incbin "baserom.gba", 0x192938, 0x0000106 + +gUnk_08192A3E:: @ 08192A3E + .incbin "baserom.gba", 0x192A3E, 0x00000E1 + +gUnk_08192B1F:: @ 08192B1F + .incbin "baserom.gba", 0x192B1F, 0x000021C + +gUnk_08192D3B:: @ 08192D3B + .incbin "baserom.gba", 0x192D3B, 0x0000008 + +gUnk_08192D43:: @ 08192D43 + .incbin "baserom.gba", 0x192D43, 0x00000FC + +gUnk_08192E3F:: @ 08192E3F + .incbin "baserom.gba", 0x192E3F, 0x00000DB + +gUnk_08192F1A:: @ 08192F1A + .incbin "baserom.gba", 0x192F1A, 0x0000031 + +gUnk_08192F4B:: @ 08192F4B + .incbin "baserom.gba", 0x192F4B, 0x00000E3 + +gUnk_0819302E:: @ 0819302E + .incbin "baserom.gba", 0x19302E, 0x000000D + +gUnk_0819303B:: @ 0819303B + .incbin "baserom.gba", 0x19303B, 0x0000114 + +gUnk_0819314F:: @ 0819314F + .incbin "baserom.gba", 0x19314F, 0x00000F3 + +gUnk_08193242:: @ 08193242 + .incbin "baserom.gba", 0x193242, 0x00005E0 + +gUnk_08193822:: @ 08193822 + .incbin "baserom.gba", 0x193822, 0x0000125 + +gUnk_08193947:: @ 08193947 + .incbin "baserom.gba", 0x193947, 0x0000598 + +gUnk_08193EDF:: @ 08193EDF + .incbin "baserom.gba", 0x193EDF, 0x0000153 + +gUnk_08194032:: @ 08194032 + .incbin "baserom.gba", 0x194032, 0x0000D0F + +gUnk_08194D41:: @ 08194D41 + .incbin "baserom.gba", 0x194D41, 0x0003720 + +gUnk_08198461:: @ 08198461 + .incbin "baserom.gba", 0x198461, 0x00031B2 + +gUnk_0819B613:: @ 0819B613 + .incbin "baserom.gba", 0x19B613, 0x00004ED + +gUnk_0819BB00:: @ 0819BB00 + .incbin "baserom.gba", 0x19BB00, 0x0001C11 + +gUnk_0819D711:: @ 0819D711 + .incbin "baserom.gba", 0x19D711, 0x00011DA + +gUnk_0819E8EB:: @ 0819E8EB + .incbin "baserom.gba", 0x19E8EB, 0x0000CE4 + +gUnk_0819F5CF:: @ 0819F5CF + .incbin "baserom.gba", 0x19F5CF, 0x0000035 + +gUnk_0819F604:: @ 0819F604 + .incbin "baserom.gba", 0x19F604, 0x00000ED + +gUnk_0819F6F1:: @ 0819F6F1 + .incbin "baserom.gba", 0x19F6F1, 0x0000610 + +gUnk_0819FD01:: @ 0819FD01 + .incbin "baserom.gba", 0x19FD01, 0x0000116 + +gUnk_0819FE17:: @ 0819FE17 + .incbin "baserom.gba", 0x19FE17, 0x00001E9 + +gUnk_081A0000:: @ 081A0000 + .incbin "baserom.gba", 0x1A0000, 0x0000040 + +gUnk_081A0040:: @ 081A0040 + .incbin "baserom.gba", 0x1A0040, 0x0000061 + +gUnk_081A00A1:: @ 081A00A1 + .incbin "baserom.gba", 0x1A00A1, 0x000003E + +gUnk_081A00DF:: @ 081A00DF + .incbin "baserom.gba", 0x1A00DF, 0x0000021 + +gUnk_081A0100:: @ 081A0100 + .incbin "baserom.gba", 0x1A0100, 0x00001ED + +gUnk_081A02ED:: @ 081A02ED + .incbin "baserom.gba", 0x1A02ED, 0x000008B + +gUnk_081A0378:: @ 081A0378 + .incbin "baserom.gba", 0x1A0378, 0x00000A1 + +gUnk_081A0419:: @ 081A0419 + .incbin "baserom.gba", 0x1A0419, 0x0000040 + +gUnk_081A0459:: @ 081A0459 + .incbin "baserom.gba", 0x1A0459, 0x0000096 + +gUnk_081A04EF:: @ 081A04EF + .incbin "baserom.gba", 0x1A04EF, 0x000031A + +gUnk_081A0809:: @ 081A0809 + .incbin "baserom.gba", 0x1A0809, 0x0000010 + +gUnk_081A0819:: @ 081A0819 + .incbin "baserom.gba", 0x1A0819, 0x00003EF + +gUnk_081A0C08:: @ 081A0C08 + .incbin "baserom.gba", 0x1A0C08, 0x000010B + +gUnk_081A0D13:: @ 081A0D13 + .incbin "baserom.gba", 0x1A0D13, 0x00003D2 + +gUnk_081A10E5:: @ 081A10E5 + .incbin "baserom.gba", 0x1A10E5, 0x000011D + +gUnk_081A1202:: @ 081A1202 + .incbin "baserom.gba", 0x1A1202, 0x0000002 + +gUnk_081A1204:: @ 081A1204 + .incbin "baserom.gba", 0x1A1204, 0x000000A + +gUnk_081A120E:: @ 081A120E + .incbin "baserom.gba", 0x1A120E, 0x000020D + +gUnk_081A141B:: @ 081A141B + .incbin "baserom.gba", 0x1A141B, 0x000003B + +gUnk_081A1456:: @ 081A1456 + .incbin "baserom.gba", 0x1A1456, 0x00001B8 + +gUnk_081A160E:: @ 081A160E + .incbin "baserom.gba", 0x1A160E, 0x0000208 + +gUnk_081A1816:: @ 081A1816 + .incbin "baserom.gba", 0x1A1816, 0x00000EE + +gUnk_081A1904:: @ 081A1904 + .incbin "baserom.gba", 0x1A1904, 0x00001D4 + +gUnk_081A1AD8:: @ 081A1AD8 + .incbin "baserom.gba", 0x1A1AD8, 0x0000041 + +gUnk_081A1B19:: @ 081A1B19 + .incbin "baserom.gba", 0x1A1B19, 0x00001F5 + +gUnk_081A1D0E:: @ 081A1D0E + .incbin "baserom.gba", 0x1A1D0E, 0x00000F8 + +gUnk_081A1E06:: @ 081A1E06 + .incbin "baserom.gba", 0x1A1E06, 0x000000F + +gUnk_081A1E15:: @ 081A1E15 + .incbin "baserom.gba", 0x1A1E15, 0x00000FE + +gUnk_081A1F13:: @ 081A1F13 + .incbin "baserom.gba", 0x1A1F13, 0x00002F4 + +gUnk_081A2207:: @ 081A2207 + .incbin "baserom.gba", 0x1A2207, 0x000001E + +gUnk_081A2225:: @ 081A2225 + .incbin "baserom.gba", 0x1A2225, 0x00000E8 + +gUnk_081A230D:: @ 081A230D + .incbin "baserom.gba", 0x1A230D, 0x0000001 + +gUnk_081A230E:: @ 081A230E + .incbin "baserom.gba", 0x1A230E, 0x0000011 + +gUnk_081A231F:: @ 081A231F + .incbin "baserom.gba", 0x1A231F, 0x00001FB + +gUnk_081A251A:: @ 081A251A + .incbin "baserom.gba", 0x1A251A, 0x000000B + +gUnk_081A2525:: @ 081A2525 + .incbin "baserom.gba", 0x1A2525, 0x0000003 + +gUnk_081A2528:: @ 081A2528 + .incbin "baserom.gba", 0x1A2528, 0x000010D + +gUnk_081A2635:: @ 081A2635 + .incbin "baserom.gba", 0x1A2635, 0x00000F7 + +gUnk_081A272C:: @ 081A272C + .incbin "baserom.gba", 0x1A272C, 0x00000DE + +gUnk_081A280A:: @ 081A280A + .incbin "baserom.gba", 0x1A280A, 0x000001B + +gUnk_081A2825:: @ 081A2825 + .incbin "baserom.gba", 0x1A2825, 0x00000F8 + +gUnk_081A291D:: @ 081A291D + .incbin "baserom.gba", 0x1A291D, 0x0000010 + +gUnk_081A292D:: @ 081A292D + .incbin "baserom.gba", 0x1A292D, 0x0000002 + +gUnk_081A292F:: @ 081A292F + .incbin "baserom.gba", 0x1A292F, 0x0000002 + +gUnk_081A2931:: @ 081A2931 + .incbin "baserom.gba", 0x1A2931, 0x00000FA + +gUnk_081A2A2B:: @ 081A2A2B + .incbin "baserom.gba", 0x1A2A2B, 0x0000007 + +gUnk_081A2A32:: @ 081A2A32 + .incbin "baserom.gba", 0x1A2A32, 0x000000A + +gUnk_081A2A3C:: @ 081A2A3C + .incbin "baserom.gba", 0x1A2A3C, 0x00001D8 + +gUnk_081A2C14:: @ 081A2C14 + .incbin "baserom.gba", 0x1A2C14, 0x000052D + +gUnk_081A3141:: @ 081A3141 + .incbin "baserom.gba", 0x1A3141, 0x0000007 + +gUnk_081A3148:: @ 081A3148 + .incbin "baserom.gba", 0x1A3148, 0x0000002 + +gUnk_081A314A:: @ 081A314A + .incbin "baserom.gba", 0x1A314A, 0x00005FF + +gUnk_081A3749:: @ 081A3749 + .incbin "baserom.gba", 0x1A3749, 0x00000BA + +gUnk_081A3803:: @ 081A3803 + .incbin "baserom.gba", 0x1A3803, 0x000012A + +gUnk_081A392D:: @ 081A392D + .incbin "baserom.gba", 0x1A392D, 0x00007D7 + +gUnk_081A4104:: @ 081A4104 + .incbin "baserom.gba", 0x1A4104, 0x0000D46 + +gUnk_081A4E4A:: @ 081A4E4A + .incbin "baserom.gba", 0x1A4E4A, 0x0009FA9 + +gUnk_081AEDF3:: @ 081AEDF3 + .incbin "baserom.gba", 0x1AEDF3, 0x00000F5 + +gUnk_081AEEE8:: @ 081AEEE8 + .incbin "baserom.gba", 0x1AEEE8, 0x000022B + +gUnk_081AF113:: @ 081AF113 + .incbin "baserom.gba", 0x1AF113, 0x00001F4 + +gUnk_081AF307:: @ 081AF307 + .incbin "baserom.gba", 0x1AF307, 0x00008DE + +gUnk_081AFBE5:: @ 081AFBE5 + .incbin "baserom.gba", 0x1AFBE5, 0x0000319 + +gUnk_081AFEFE:: @ 081AFEFE + .incbin "baserom.gba", 0x1AFEFE, 0x00000DF + +gUnk_081AFFDD:: @ 081AFFDD + .incbin "baserom.gba", 0x1AFFDD, 0x000002B + +gUnk_081B0008:: @ 081B0008 + .incbin "baserom.gba", 0x1B0008, 0x00000E2 + +gUnk_081B00EA:: @ 081B00EA + .incbin "baserom.gba", 0x1B00EA, 0x0000004 + +gUnk_081B00EE:: @ 081B00EE + .incbin "baserom.gba", 0x1B00EE, 0x00000FB + +gUnk_081B01E9:: @ 081B01E9 + .incbin "baserom.gba", 0x1B01E9, 0x0000270 + +gUnk_081B0459:: @ 081B0459 + .incbin "baserom.gba", 0x1B0459, 0x00000A7 + +gUnk_081B0500:: @ 081B0500 + .incbin "baserom.gba", 0x1B0500, 0x0000103 + +gUnk_081B0603:: @ 081B0603 + .incbin "baserom.gba", 0x1B0603, 0x0000207 + +gUnk_081B080A:: @ 081B080A + .incbin "baserom.gba", 0x1B080A, 0x00002DE + +gUnk_081B0AE8:: @ 081B0AE8 + .incbin "baserom.gba", 0x1B0AE8, 0x0000133 + +gUnk_081B0C1B:: @ 081B0C1B + .incbin "baserom.gba", 0x1B0C1B, 0x00003D3 + +gUnk_081B0FEE:: @ 081B0FEE + .incbin "baserom.gba", 0x1B0FEE, 0x000032A + +gUnk_081B1318:: @ 081B1318 + .incbin "baserom.gba", 0x1B1318, 0x00000B4 + +gUnk_081B13CC:: @ 081B13CC + .incbin "baserom.gba", 0x1B13CC, 0x0000022 + +gUnk_081B13EE:: @ 081B13EE + .incbin "baserom.gba", 0x1B13EE, 0x000002E + +gUnk_081B141C:: @ 081B141C + .incbin "baserom.gba", 0x1B141C, 0x00000EC + +gUnk_081B1508:: @ 081B1508 + .incbin "baserom.gba", 0x1B1508, 0x000030D + +gUnk_081B1815:: @ 081B1815 + .incbin "baserom.gba", 0x1B1815, 0x00001F2 + +gUnk_081B1A07:: @ 081B1A07 + .incbin "baserom.gba", 0x1B1A07, 0x00001F9 + +gUnk_081B1C00:: @ 081B1C00 + .incbin "baserom.gba", 0x1B1C00, 0x0000005 + +gUnk_081B1C05:: @ 081B1C05 + .incbin "baserom.gba", 0x1B1C05, 0x000040C + +gUnk_081B2011:: @ 081B2011 + .incbin "baserom.gba", 0x1B2011, 0x0000012 + +gUnk_081B2023:: @ 081B2023 + .incbin "baserom.gba", 0x1B2023, 0x0000112 + +gUnk_081B2135:: @ 081B2135 + .incbin "baserom.gba", 0x1B2135, 0x00000FA + +gUnk_081B222F:: @ 081B222F + .incbin "baserom.gba", 0x1B222F, 0x00000ED + +gUnk_081B231C:: @ 081B231C + .incbin "baserom.gba", 0x1B231C, 0x0000103 + +gUnk_081B241F:: @ 081B241F + .incbin "baserom.gba", 0x1B241F, 0x0000116 + +gUnk_081B2535:: @ 081B2535 + .incbin "baserom.gba", 0x1B2535, 0x00000EC + +gUnk_081B2621:: @ 081B2621 + .incbin "baserom.gba", 0x1B2621, 0x000000E + +gUnk_081B262F:: @ 081B262F + .incbin "baserom.gba", 0x1B262F, 0x00000F6 + +gUnk_081B2725:: @ 081B2725 + .incbin "baserom.gba", 0x1B2725, 0x0000005 + +gUnk_081B272A:: @ 081B272A + .incbin "baserom.gba", 0x1B272A, 0x00000F8 + +gUnk_081B2822:: @ 081B2822 + .incbin "baserom.gba", 0x1B2822, 0x0000007 + +gUnk_081B2829:: @ 081B2829 + .incbin "baserom.gba", 0x1B2829, 0x0000108 + +gUnk_081B2931:: @ 081B2931 + .incbin "baserom.gba", 0x1B2931, 0x000000A + +gUnk_081B293B:: @ 081B293B + .incbin "baserom.gba", 0x1B293B, 0x00000E9 + +gUnk_081B2A24:: @ 081B2A24 + .incbin "baserom.gba", 0x1B2A24, 0x0000016 + +gUnk_081B2A3A:: @ 081B2A3A + .incbin "baserom.gba", 0x1B2A3A, 0x0000010 + +gUnk_081B2A4A:: @ 081B2A4A + .incbin "baserom.gba", 0x1B2A4A, 0x00006EB + +gUnk_081B3135:: @ 081B3135 + .incbin "baserom.gba", 0x1B3135, 0x0000010 + +gUnk_081B3145:: @ 081B3145 + .incbin "baserom.gba", 0x1B3145, 0x0000207 + +gUnk_081B334C:: @ 081B334C + .incbin "baserom.gba", 0x1B334C, 0x00004FC + +gUnk_081B3848:: @ 081B3848 + .incbin "baserom.gba", 0x1B3848, 0x0001DC7 + +gUnk_081B560F:: @ 081B560F + .incbin "baserom.gba", 0x1B560F, 0x0000D6D + +gUnk_081B637C:: @ 081B637C + .incbin "baserom.gba", 0x1B637C, 0x00048CF + +gUnk_081BAC4B:: @ 081BAC4B + .incbin "baserom.gba", 0x1BAC4B, 0x000078F + +gUnk_081BB3DA:: @ 081BB3DA + .incbin "baserom.gba", 0x1BB3DA, 0x000371E + +gUnk_081BEAF8:: @ 081BEAF8 + .incbin "baserom.gba", 0x1BEAF8, 0x0000316 + +gUnk_081BEE0E:: @ 081BEE0E + .incbin "baserom.gba", 0x1BEE0E, 0x0000DB6 + +gUnk_081BFBC4:: @ 081BFBC4 + .incbin "baserom.gba", 0x1BFBC4, 0x0000457 + +gUnk_081C001B:: @ 081C001B + .incbin "baserom.gba", 0x1C001B, 0x0000100 + +gUnk_081C011B:: @ 081C011B + .incbin "baserom.gba", 0x1C011B, 0x00000E5 + +gUnk_081C0200:: @ 081C0200 + .incbin "baserom.gba", 0x1C0200, 0x000061B + +gUnk_081C081B:: @ 081C081B + .incbin "baserom.gba", 0x1C081B, 0x00002E5 + +gUnk_081C0B00:: @ 081C0B00 + .incbin "baserom.gba", 0x1C0B00, 0x00002FA + +gUnk_081C0DFA:: @ 081C0DFA + .incbin "baserom.gba", 0x1C0DFA, 0x0000339 + +gUnk_081C1133:: @ 081C1133 + .incbin "baserom.gba", 0x1C1133, 0x00000CD + +gUnk_081C1200:: @ 081C1200 + .incbin "baserom.gba", 0x1C1200, 0x0000301 + +gUnk_081C1501:: @ 081C1501 + .incbin "baserom.gba", 0x1C1501, 0x000000A + +gUnk_081C150B:: @ 081C150B + .incbin "baserom.gba", 0x1C150B, 0x00000D3 + +gUnk_081C15DE:: @ 081C15DE + .incbin "baserom.gba", 0x1C15DE, 0x000002E + +gUnk_081C160C:: @ 081C160C + .incbin "baserom.gba", 0x1C160C, 0x0000006 + +gUnk_081C1612:: @ 081C1612 + .incbin "baserom.gba", 0x1C1612, 0x0000026 + +gUnk_081C1638:: @ 081C1638 + .incbin "baserom.gba", 0x1C1638, 0x00000E5 + +gUnk_081C171D:: @ 081C171D + .incbin "baserom.gba", 0x1C171D, 0x00000E5 + +gUnk_081C1802:: @ 081C1802 + .incbin "baserom.gba", 0x1C1802, 0x00001DB + +gUnk_081C19DD:: @ 081C19DD + .incbin "baserom.gba", 0x1C19DD, 0x0000123 + +gUnk_081C1B00:: @ 081C1B00 + .incbin "baserom.gba", 0x1C1B00, 0x0000221 + +gUnk_081C1D21:: @ 081C1D21 + .incbin "baserom.gba", 0x1C1D21, 0x0000006 + +gUnk_081C1D27:: @ 081C1D27 + .incbin "baserom.gba", 0x1C1D27, 0x00000DD + +gUnk_081C1E04:: @ 081C1E04 + .incbin "baserom.gba", 0x1C1E04, 0x0000001 + +gUnk_081C1E05:: @ 081C1E05 + .incbin "baserom.gba", 0x1C1E05, 0x0000112 + +gUnk_081C1F17:: @ 081C1F17 + .incbin "baserom.gba", 0x1C1F17, 0x0000001 + +gUnk_081C1F18:: @ 081C1F18 + .incbin "baserom.gba", 0x1C1F18, 0x000010B + +gUnk_081C2023:: @ 081C2023 + .incbin "baserom.gba", 0x1C2023, 0x000001B + +gUnk_081C203E:: @ 081C203E + .incbin "baserom.gba", 0x1C203E, 0x00000E4 + +gUnk_081C2122:: @ 081C2122 + .incbin "baserom.gba", 0x1C2122, 0x0000005 + +gUnk_081C2127:: @ 081C2127 + .incbin "baserom.gba", 0x1C2127, 0x00000E4 + +gUnk_081C220B:: @ 081C220B + .incbin "baserom.gba", 0x1C220B, 0x0000220 + +gUnk_081C242B:: @ 081C242B + .incbin "baserom.gba", 0x1C242B, 0x00000EE + +gUnk_081C2519:: @ 081C2519 + .incbin "baserom.gba", 0x1C2519, 0x000000F + +gUnk_081C2528:: @ 081C2528 + .incbin "baserom.gba", 0x1C2528, 0x00001FC + +gUnk_081C2724:: @ 081C2724 + .incbin "baserom.gba", 0x1C2724, 0x000000A + +gUnk_081C272E:: @ 081C272E + .incbin "baserom.gba", 0x1C272E, 0x00003FE + +gUnk_081C2B2C:: @ 081C2B2C + .incbin "baserom.gba", 0x1C2B2C, 0x0000006 + +gUnk_081C2B32:: @ 081C2B32 + .incbin "baserom.gba", 0x1C2B32, 0x00000F9 + +gUnk_081C2C2B:: @ 081C2C2B + .incbin "baserom.gba", 0x1C2C2B, 0x0000004 + +gUnk_081C2C2F:: @ 081C2C2F + .incbin "baserom.gba", 0x1C2C2F, 0x0000207 + +gUnk_081C2E36:: @ 081C2E36 + .incbin "baserom.gba", 0x1C2E36, 0x0000108 + +gUnk_081C2F3E:: @ 081C2F3E + .incbin "baserom.gba", 0x1C2F3E, 0x0000001 + +gUnk_081C2F3F:: @ 081C2F3F + .incbin "baserom.gba", 0x1C2F3F, 0x00000E4 + +gUnk_081C3023:: @ 081C3023 + .incbin "baserom.gba", 0x1C3023, 0x0000122 + +gUnk_081C3145:: @ 081C3145 + .incbin "baserom.gba", 0x1C3145, 0x0000102 + +gUnk_081C3247:: @ 081C3247 + .incbin "baserom.gba", 0x1C3247, 0x00000E5 + +gUnk_081C332C:: @ 081C332C + .incbin "baserom.gba", 0x1C332C, 0x000010E + +gUnk_081C343A:: @ 081C343A + .incbin "baserom.gba", 0x1C343A, 0x000010C + +gUnk_081C3546:: @ 081C3546 + .incbin "baserom.gba", 0x1C3546, 0x00004EF + +gUnk_081C3A35:: @ 081C3A35 + .incbin "baserom.gba", 0x1C3A35, 0x00005BF + +gUnk_081C3FF4:: @ 081C3FF4 + .incbin "baserom.gba", 0x1C3FF4, 0x0000162 + +gUnk_081C4156:: @ 081C4156 + .incbin "baserom.gba", 0x1C4156, 0x00002FE + +gUnk_081C4454:: @ 081C4454 + .incbin "baserom.gba", 0x1C4454, 0x0000BB3 + +gUnk_081C5007:: @ 081C5007 + .incbin "baserom.gba", 0x1C5007, 0x0000477 + +gUnk_081C547E:: @ 081C547E + .incbin "baserom.gba", 0x1C547E, 0x00020ED + +gUnk_081C756B:: @ 081C756B + .incbin "baserom.gba", 0x1C756B, 0x000149D + +gUnk_081C8A08:: @ 081C8A08 + .incbin "baserom.gba", 0x1C8A08, 0x000026C + +gUnk_081C8C74:: @ 081C8C74 + .incbin "baserom.gba", 0x1C8C74, 0x000573D + +gUnk_081CE3B1:: @ 081CE3B1 + .incbin "baserom.gba", 0x1CE3B1, 0x000003D + +gUnk_081CE3EE:: @ 081CE3EE + .incbin "baserom.gba", 0x1CE3EE, 0x0000DFE + +gUnk_081CF1EC:: @ 081CF1EC + .incbin "baserom.gba", 0x1CF1EC, 0x00002F9 + +gUnk_081CF4E5:: @ 081CF4E5 + .incbin "baserom.gba", 0x1CF4E5, 0x0000333 + +gUnk_081CF818:: @ 081CF818 + .incbin "baserom.gba", 0x1CF818, 0x0000008 + +gUnk_081CF820:: @ 081CF820 + .incbin "baserom.gba", 0x1CF820, 0x00007B1 + +gUnk_081CFFD1:: @ 081CFFD1 + .incbin "baserom.gba", 0x1CFFD1, 0x000002F + +gUnk_081D0000:: @ 081D0000 + .incbin "baserom.gba", 0x1D0000, 0x0000001 + +gUnk_081D0001:: @ 081D0001 + .incbin "baserom.gba", 0x1D0001, 0x0000006 + +gUnk_081D0007:: @ 081D0007 + .incbin "baserom.gba", 0x1D0007, 0x0000009 + +gUnk_081D0010:: @ 081D0010 + .incbin "baserom.gba", 0x1D0010, 0x000000A + +gUnk_081D001A:: @ 081D001A + .incbin "baserom.gba", 0x1D001A, 0x000001A + +gUnk_081D0034:: @ 081D0034 + .incbin "baserom.gba", 0x1D0034, 0x00000E0 + +gUnk_081D0114:: @ 081D0114 + .incbin "baserom.gba", 0x1D0114, 0x0000174 + +gUnk_081D0288:: @ 081D0288 + .incbin "baserom.gba", 0x1D0288, 0x0000179 + +gUnk_081D0401:: @ 081D0401 + .incbin "baserom.gba", 0x1D0401, 0x0000042 + +gUnk_081D0443:: @ 081D0443 + .incbin "baserom.gba", 0x1D0443, 0x00001BE + +gUnk_081D0601:: @ 081D0601 + .incbin "baserom.gba", 0x1D0601, 0x0000205 + +gUnk_081D0806:: @ 081D0806 + .incbin "baserom.gba", 0x1D0806, 0x0000303 + +gUnk_081D0B09:: @ 081D0B09 + .incbin "baserom.gba", 0x1D0B09, 0x00003FF + +gUnk_081D0F08:: @ 081D0F08 + .incbin "baserom.gba", 0x1D0F08, 0x000001E + +gUnk_081D0F26:: @ 081D0F26 + .incbin "baserom.gba", 0x1D0F26, 0x00000DE + +gUnk_081D1004:: @ 081D1004 + .incbin "baserom.gba", 0x1D1004, 0x0000003 + +gUnk_081D1007:: @ 081D1007 + .incbin "baserom.gba", 0x1D1007, 0x0000511 + +gUnk_081D1518:: @ 081D1518 + .incbin "baserom.gba", 0x1D1518, 0x00000E2 + +gUnk_081D15FA:: @ 081D15FA + .incbin "baserom.gba", 0x1D15FA, 0x0000018 + +gUnk_081D1612:: @ 081D1612 + .incbin "baserom.gba", 0x1D1612, 0x000011F + +gUnk_081D1731:: @ 081D1731 + .incbin "baserom.gba", 0x1D1731, 0x00000CC + +gUnk_081D17FD:: @ 081D17FD + .incbin "baserom.gba", 0x1D17FD, 0x0000013 + +gUnk_081D1810:: @ 081D1810 + .incbin "baserom.gba", 0x1D1810, 0x00003F3 + +gUnk_081D1C03:: @ 081D1C03 + .incbin "baserom.gba", 0x1D1C03, 0x0000001 + +gUnk_081D1C04:: @ 081D1C04 + .incbin "baserom.gba", 0x1D1C04, 0x0000019 + +gUnk_081D1C1D:: @ 081D1C1D + .incbin "baserom.gba", 0x1D1C1D, 0x00000F7 + +gUnk_081D1D14:: @ 081D1D14 + .incbin "baserom.gba", 0x1D1D14, 0x000010E + +gUnk_081D1E22:: @ 081D1E22 + .incbin "baserom.gba", 0x1D1E22, 0x00001DE + +gUnk_081D2000:: @ 081D2000 + .incbin "baserom.gba", 0x1D2000, 0x000000C + +gUnk_081D200C:: @ 081D200C + .incbin "baserom.gba", 0x1D200C, 0x0000026 + +gUnk_081D2032:: @ 081D2032 + .incbin "baserom.gba", 0x1D2032, 0x00001F1 + +gUnk_081D2223:: @ 081D2223 + .incbin "baserom.gba", 0x1D2223, 0x00000F5 + +gUnk_081D2318:: @ 081D2318 + .incbin "baserom.gba", 0x1D2318, 0x0000113 + +gUnk_081D242B:: @ 081D242B + .incbin "baserom.gba", 0x1D242B, 0x000000A + +gUnk_081D2435:: @ 081D2435 + .incbin "baserom.gba", 0x1D2435, 0x00001D6 + +gUnk_081D260B:: @ 081D260B + .incbin "baserom.gba", 0x1D260B, 0x00001E1 + +gUnk_081D27EC:: @ 081D27EC + .incbin "baserom.gba", 0x1D27EC, 0x0000043 + +gUnk_081D282F:: @ 081D282F + .incbin "baserom.gba", 0x1D282F, 0x00000E1 + +gUnk_081D2910:: @ 081D2910 + .incbin "baserom.gba", 0x1D2910, 0x0000315 + +gUnk_081D2C25:: @ 081D2C25 + .incbin "baserom.gba", 0x1D2C25, 0x0000119 + +gUnk_081D2D3E:: @ 081D2D3E + .incbin "baserom.gba", 0x1D2D3E, 0x0000235 + +gUnk_081D2F73:: @ 081D2F73 + .incbin "baserom.gba", 0x1D2F73, 0x00000C8 + +gUnk_081D303B:: @ 081D303B + .incbin "baserom.gba", 0x1D303B, 0x0000009 + +gUnk_081D3044:: @ 081D3044 + .incbin "baserom.gba", 0x1D3044, 0x00000E1 + +gUnk_081D3125:: @ 081D3125 + .incbin "baserom.gba", 0x1D3125, 0x00000F6 + +gUnk_081D321B:: @ 081D321B + .incbin "baserom.gba", 0x1D321B, 0x000021C + +gUnk_081D3437:: @ 081D3437 + .incbin "baserom.gba", 0x1D3437, 0x00004FC + +gUnk_081D3933:: @ 081D3933 + .incbin "baserom.gba", 0x1D3933, 0x0000331 + +gUnk_081D3C64:: @ 081D3C64 + .incbin "baserom.gba", 0x1D3C64, 0x00000C8 + +gUnk_081D3D2C:: @ 081D3D2C + .incbin "baserom.gba", 0x1D3D2C, 0x000103D + +gUnk_081D4D69:: @ 081D4D69 + .incbin "baserom.gba", 0x1D4D69, 0x00012FE + +gUnk_081D6067:: @ 081D6067 + .incbin "baserom.gba", 0x1D6067, 0x000160D + +gUnk_081D7674:: @ 081D7674 + .incbin "baserom.gba", 0x1D7674, 0x00029C0 + +gUnk_081DA034:: @ 081DA034 + .incbin "baserom.gba", 0x1DA034, 0x0003FBD + +gUnk_081DDFF1:: @ 081DDFF1 + .incbin "baserom.gba", 0x1DDFF1, 0x0000FFE + +gUnk_081DEFEF:: @ 081DEFEF + .incbin "baserom.gba", 0x1DEFEF, 0x0000845 + +gUnk_081DF834:: @ 081DF834 + .incbin "baserom.gba", 0x1DF834, 0x00004C6 + +gUnk_081DFCFA:: @ 081DFCFA + .incbin "baserom.gba", 0x1DFCFA, 0x00002CE + +gUnk_081DFFC8:: @ 081DFFC8 + .incbin "baserom.gba", 0x1DFFC8, 0x0000008 + +gUnk_081DFFD0:: @ 081DFFD0 + .incbin "baserom.gba", 0x1DFFD0, 0x0000030 + +gUnk_081E0000:: @ 081E0000 + .incbin "baserom.gba", 0x1E0000, 0x0000012 + +gUnk_081E0012:: @ 081E0012 + .incbin "baserom.gba", 0x1E0012, 0x0000008 + +gUnk_081E001A:: @ 081E001A + .incbin "baserom.gba", 0x1E001A, 0x00000D8 + +gUnk_081E00F2:: @ 081E00F2 + .incbin "baserom.gba", 0x1E00F2, 0x0000015 + +gUnk_081E0107:: @ 081E0107 + .incbin "baserom.gba", 0x1E0107, 0x0000016 + +gUnk_081E011D:: @ 081E011D + .incbin "baserom.gba", 0x1E011D, 0x00001B9 + +gUnk_081E02D6:: @ 081E02D6 + .incbin "baserom.gba", 0x1E02D6, 0x000002A + +gUnk_081E0300:: @ 081E0300 + .incbin "baserom.gba", 0x1E0300, 0x0000004 + +gUnk_081E0304:: @ 081E0304 + .incbin "baserom.gba", 0x1E0304, 0x0000109 + +gUnk_081E040D:: @ 081E040D + .incbin "baserom.gba", 0x1E040D, 0x00000DF + +gUnk_081E04EC:: @ 081E04EC + .incbin "baserom.gba", 0x1E04EC, 0x000027A + +gUnk_081E0766:: @ 081E0766 + .incbin "baserom.gba", 0x1E0766, 0x00001A9 + +gUnk_081E090F:: @ 081E090F + .incbin "baserom.gba", 0x1E090F, 0x00000D3 + +gUnk_081E09E2:: @ 081E09E2 + .incbin "baserom.gba", 0x1E09E2, 0x000001F + +gUnk_081E0A01:: @ 081E0A01 + .incbin "baserom.gba", 0x1E0A01, 0x0000120 + +gUnk_081E0B21:: @ 081E0B21 + .incbin "baserom.gba", 0x1E0B21, 0x00002CA + +gUnk_081E0DEB:: @ 081E0DEB + .incbin "baserom.gba", 0x1E0DEB, 0x00000FA + +gUnk_081E0EE5:: @ 081E0EE5 + .incbin "baserom.gba", 0x1E0EE5, 0x0000110 + +gUnk_081E0FF5:: @ 081E0FF5 + .incbin "baserom.gba", 0x1E0FF5, 0x0000040 + +gUnk_081E1035:: @ 081E1035 + .incbin "baserom.gba", 0x1E1035, 0x00002CA + +gUnk_081E12FF:: @ 081E12FF + .incbin "baserom.gba", 0x1E12FF, 0x0000001 + +gUnk_081E1300:: @ 081E1300 + .incbin "baserom.gba", 0x1E1300, 0x0000601 + +gUnk_081E1901:: @ 081E1901 + .incbin "baserom.gba", 0x1E1901, 0x000000E + +gUnk_081E190F:: @ 081E190F + .incbin "baserom.gba", 0x1E190F, 0x00000EA + +gUnk_081E19F9:: @ 081E19F9 + .incbin "baserom.gba", 0x1E19F9, 0x0000415 + +gUnk_081E1E0E:: @ 081E1E0E + .incbin "baserom.gba", 0x1E1E0E, 0x000020B + +gUnk_081E2019:: @ 081E2019 + .incbin "baserom.gba", 0x1E2019, 0x000010D + +gUnk_081E2126:: @ 081E2126 + .incbin "baserom.gba", 0x1E2126, 0x0000203 + +gUnk_081E2329:: @ 081E2329 + .incbin "baserom.gba", 0x1E2329, 0x000011C + +gUnk_081E2445:: @ 081E2445 + .incbin "baserom.gba", 0x1E2445, 0x00000D1 + +gUnk_081E2516:: @ 081E2516 + .incbin "baserom.gba", 0x1E2516, 0x00000E7 + +gUnk_081E25FD:: @ 081E25FD + .incbin "baserom.gba", 0x1E25FD, 0x0000120 + +gUnk_081E271D:: @ 081E271D + .incbin "baserom.gba", 0x1E271D, 0x00001E4 + +gUnk_081E2901:: @ 081E2901 + .incbin "baserom.gba", 0x1E2901, 0x0000024 + +gUnk_081E2925:: @ 081E2925 + .incbin "baserom.gba", 0x1E2925, 0x0000201 + +gUnk_081E2B26:: @ 081E2B26 + .incbin "baserom.gba", 0x1E2B26, 0x0000222 + +gUnk_081E2D48:: @ 081E2D48 + .incbin "baserom.gba", 0x1E2D48, 0x00000EB + +gUnk_081E2E33:: @ 081E2E33 + .incbin "baserom.gba", 0x1E2E33, 0x0000102 + +gUnk_081E2F35:: @ 081E2F35 + .incbin "baserom.gba", 0x1E2F35, 0x0000404 + +gUnk_081E3339:: @ 081E3339 + .incbin "baserom.gba", 0x1E3339, 0x00000FA + +gUnk_081E3433:: @ 081E3433 + .incbin "baserom.gba", 0x1E3433, 0x000010E + +gUnk_081E3541:: @ 081E3541 + .incbin "baserom.gba", 0x1E3541, 0x000010A + +gUnk_081E364B:: @ 081E364B + .incbin "baserom.gba", 0x1E364B, 0x00003F1 + +gUnk_081E3A3C:: @ 081E3A3C + .incbin "baserom.gba", 0x1E3A3C, 0x0000B11 + +gUnk_081E454D:: @ 081E454D + .incbin "baserom.gba", 0x1E454D, 0x00065B3 + +gUnk_081EAB00:: @ 081EAB00 + .incbin "baserom.gba", 0x1EAB00, 0x0001882 + +gUnk_081EC382:: @ 081EC382 + .incbin "baserom.gba", 0x1EC382, 0x0002445 + +gUnk_081EE7C7:: @ 081EE7C7 + .incbin "baserom.gba", 0x1EE7C7, 0x0001335 + +gUnk_081EFAFC:: @ 081EFAFC + .incbin "baserom.gba", 0x1EFAFC, 0x00003CC + +gUnk_081EFEC8:: @ 081EFEC8 + .incbin "baserom.gba", 0x1EFEC8, 0x0000138 + +gUnk_081F0000:: @ 081F0000 + .incbin "baserom.gba", 0x1F0000, 0x0000008 + +gUnk_081F0008:: @ 081F0008 + .incbin "baserom.gba", 0x1F0008, 0x0000001 + +gUnk_081F0009:: @ 081F0009 + .incbin "baserom.gba", 0x1F0009, 0x0000021 + +gUnk_081F002A:: @ 081F002A + .incbin "baserom.gba", 0x1F002A, 0x0000004 + +gUnk_081F002E:: @ 081F002E + .incbin "baserom.gba", 0x1F002E, 0x0000002 + +gUnk_081F0030:: @ 081F0030 + .incbin "baserom.gba", 0x1F0030, 0x000000F + +gUnk_081F003F:: @ 081F003F + .incbin "baserom.gba", 0x1F003F, 0x0000003 + +gUnk_081F0042:: @ 081F0042 + .incbin "baserom.gba", 0x1F0042, 0x000004A + +gUnk_081F008C:: @ 081F008C + .incbin "baserom.gba", 0x1F008C, 0x0000251 + +gUnk_081F02DD:: @ 081F02DD + .incbin "baserom.gba", 0x1F02DD, 0x000017C + +gUnk_081F0459:: @ 081F0459 + .incbin "baserom.gba", 0x1F0459, 0x00003A1 + +gUnk_081F07FA:: @ 081F07FA + .incbin "baserom.gba", 0x1F07FA, 0x0000824 + +gUnk_081F101E:: @ 081F101E + .incbin "baserom.gba", 0x1F101E, 0x0000015 + +gUnk_081F1033:: @ 081F1033 + .incbin "baserom.gba", 0x1F1033, 0x0000033 + +gUnk_081F1066:: @ 081F1066 + .incbin "baserom.gba", 0x1F1066, 0x0000102 + +gUnk_081F1168:: @ 081F1168 + .incbin "baserom.gba", 0x1F1168, 0x000017F + +gUnk_081F12E7:: @ 081F12E7 + .incbin "baserom.gba", 0x1F12E7, 0x00002F9 + +gUnk_081F15E0:: @ 081F15E0 + .incbin "baserom.gba", 0x1F15E0, 0x000025D + +gUnk_081F183D:: @ 081F183D + .incbin "baserom.gba", 0x1F183D, 0x00001E0 + +gUnk_081F1A1D:: @ 081F1A1D + .incbin "baserom.gba", 0x1F1A1D, 0x00000EE + +gUnk_081F1B0B:: @ 081F1B0B + .incbin "baserom.gba", 0x1F1B0B, 0x00002F5 + +gUnk_081F1E00:: @ 081F1E00 + .incbin "baserom.gba", 0x1F1E00, 0x000011D + +gUnk_081F1F1D:: @ 081F1F1D + .incbin "baserom.gba", 0x1F1F1D, 0x0000005 + +gUnk_081F1F22:: @ 081F1F22 + .incbin "baserom.gba", 0x1F1F22, 0x00000E1 + +gUnk_081F2003:: @ 081F2003 + .incbin "baserom.gba", 0x1F2003, 0x000001F + +gUnk_081F2022:: @ 081F2022 + .incbin "baserom.gba", 0x1F2022, 0x00000A4 + +gUnk_081F20C6:: @ 081F20C6 + .incbin "baserom.gba", 0x1F20C6, 0x0000062 + +gUnk_081F2128:: @ 081F2128 + .incbin "baserom.gba", 0x1F2128, 0x00000F1 + +gUnk_081F2219:: @ 081F2219 + .incbin "baserom.gba", 0x1F2219, 0x0000103 + +gUnk_081F231C:: @ 081F231C + .incbin "baserom.gba", 0x1F231C, 0x00001DB + +gUnk_081F24F7:: @ 081F24F7 + .incbin "baserom.gba", 0x1F24F7, 0x0000116 + +gUnk_081F260D:: @ 081F260D + .incbin "baserom.gba", 0x1F260D, 0x000021D + +gUnk_081F282A:: @ 081F282A + .incbin "baserom.gba", 0x1F282A, 0x00000F8 + +gUnk_081F2922:: @ 081F2922 + .incbin "baserom.gba", 0x1F2922, 0x0000127 + +gUnk_081F2A49:: @ 081F2A49 + .incbin "baserom.gba", 0x1F2A49, 0x00000F1 + +gUnk_081F2B3A:: @ 081F2B3A + .incbin "baserom.gba", 0x1F2B3A, 0x00001F5 + +gUnk_081F2D2F:: @ 081F2D2F + .incbin "baserom.gba", 0x1F2D2F, 0x0000200 + +gUnk_081F2F2F:: @ 081F2F2F + .incbin "baserom.gba", 0x1F2F2F, 0x000050E + +gUnk_081F343D:: @ 081F343D + .incbin "baserom.gba", 0x1F343D, 0x00000F1 + +gUnk_081F352E:: @ 081F352E + .incbin "baserom.gba", 0x1F352E, 0x0000204 + +gUnk_081F3732:: @ 081F3732 + .incbin "baserom.gba", 0x1F3732, 0x0000106 + +gUnk_081F3838:: @ 081F3838 + .incbin "baserom.gba", 0x1F3838, 0x0000009 + +gUnk_081F3841:: @ 081F3841 + .incbin "baserom.gba", 0x1F3841, 0x0000BF6 + +gUnk_081F4437:: @ 081F4437 + .incbin "baserom.gba", 0x1F4437, 0x0000023 + +gUnk_081F445A:: @ 081F445A + .incbin "baserom.gba", 0x1F445A, 0x0000CD8 + +gUnk_081F5132:: @ 081F5132 + .incbin "baserom.gba", 0x1F5132, 0x000049D + +gUnk_081F55CF:: @ 081F55CF + .incbin "baserom.gba", 0x1F55CF, 0x0004A36 + +gUnk_081FA005:: @ 081FA005 + .incbin "baserom.gba", 0x1FA005, 0x000107B + +gUnk_081FB080:: @ 081FB080 + .incbin "baserom.gba", 0x1FB080, 0x00028A2 + +gUnk_081FD922:: @ 081FD922 + .incbin "baserom.gba", 0x1FD922, 0x00014F3 + +gUnk_081FEE15:: @ 081FEE15 + .incbin "baserom.gba", 0x1FEE15, 0x000022A + +gUnk_081FF03F:: @ 081FF03F + .incbin "baserom.gba", 0x1FF03F, 0x0000175 + +gUnk_081FF1B4:: @ 081FF1B4 + .incbin "baserom.gba", 0x1FF1B4, 0x0000D2D + +gUnk_081FFEE1:: @ 081FFEE1 + .incbin "baserom.gba", 0x1FFEE1, 0x000011F + +gUnk_08200000:: @ 08200000 + .incbin "baserom.gba", 0x200000, 0x0000001 + +gUnk_08200001:: @ 08200001 + .incbin "baserom.gba", 0x200001, 0x0000010 + +gUnk_08200011:: @ 08200011 + .incbin "baserom.gba", 0x200011, 0x000000F + +gUnk_08200020:: @ 08200020 + .incbin "baserom.gba", 0x200020, 0x000001F + +gUnk_0820003F:: @ 0820003F + .incbin "baserom.gba", 0x20003F, 0x0000003 + +gUnk_08200042:: @ 08200042 + .incbin "baserom.gba", 0x200042, 0x0000072 + +gUnk_082000B4:: @ 082000B4 + .incbin "baserom.gba", 0x2000B4, 0x0000008 + +gUnk_082000BC:: @ 082000BC + .incbin "baserom.gba", 0x2000BC, 0x000005A + +gUnk_08200116:: @ 08200116 + .incbin "baserom.gba", 0x200116, 0x0000009 + +gUnk_0820011F:: @ 0820011F + .incbin "baserom.gba", 0x20011F, 0x0000012 + +gUnk_08200131:: @ 08200131 + .incbin "baserom.gba", 0x200131, 0x0000079 + +gUnk_082001AA:: @ 082001AA + .incbin "baserom.gba", 0x2001AA, 0x0000130 + +gUnk_082002DA:: @ 082002DA + .incbin "baserom.gba", 0x2002DA, 0x000015A + +gUnk_08200434:: @ 08200434 + .incbin "baserom.gba", 0x200434, 0x00000CC + +gUnk_08200500:: @ 08200500 + .incbin "baserom.gba", 0x200500, 0x0000020 + +gUnk_08200520:: @ 08200520 + .incbin "baserom.gba", 0x200520, 0x0000033 + +gUnk_08200553:: @ 08200553 + .incbin "baserom.gba", 0x200553, 0x00000AD + +gUnk_08200600:: @ 08200600 + .incbin "baserom.gba", 0x200600, 0x0000009 + +gUnk_08200609:: @ 08200609 + .incbin "baserom.gba", 0x200609, 0x0000027 + +gUnk_08200630:: @ 08200630 + .incbin "baserom.gba", 0x200630, 0x00000D0 + +gUnk_08200700:: @ 08200700 + .incbin "baserom.gba", 0x200700, 0x0000006 + +gUnk_08200706:: @ 08200706 + .incbin "baserom.gba", 0x200706, 0x000001A + +gUnk_08200720:: @ 08200720 + .incbin "baserom.gba", 0x200720, 0x0000030 + +gUnk_08200750:: @ 08200750 + .incbin "baserom.gba", 0x200750, 0x0000010 + +gUnk_08200760:: @ 08200760 + .incbin "baserom.gba", 0x200760, 0x0000020 + +gUnk_08200780:: @ 08200780 + .incbin "baserom.gba", 0x200780, 0x0000060 + +gUnk_082007E0:: @ 082007E0 + .incbin "baserom.gba", 0x2007E0, 0x0000020 + +gUnk_08200800:: @ 08200800 + .incbin "baserom.gba", 0x200800, 0x0000020 + +gUnk_08200820:: @ 08200820 + .incbin "baserom.gba", 0x200820, 0x0000110 + +gUnk_08200930:: @ 08200930 + .incbin "baserom.gba", 0x200930, 0x00001D0 + +gUnk_08200B00:: @ 08200B00 + .incbin "baserom.gba", 0x200B00, 0x0000100 + +gUnk_08200C00:: @ 08200C00 + .incbin "baserom.gba", 0x200C00, 0x00002E0 + +gUnk_08200EE0:: @ 08200EE0 + .incbin "baserom.gba", 0x200EE0, 0x0000020 + +gUnk_08200F00:: @ 08200F00 + .incbin "baserom.gba", 0x200F00, 0x0000040 + +gUnk_08200F40:: @ 08200F40 + .incbin "baserom.gba", 0x200F40, 0x00000E0 + +gUnk_08201020:: @ 08201020 + .incbin "baserom.gba", 0x201020, 0x00001EE + +gUnk_0820120E:: @ 0820120E + .incbin "baserom.gba", 0x20120E, 0x00000ED + +gUnk_082012FB:: @ 082012FB + .incbin "baserom.gba", 0x2012FB, 0x000000A + +gUnk_08201305:: @ 08201305 + .incbin "baserom.gba", 0x201305, 0x00003FB + +gUnk_08201700:: @ 08201700 + .incbin "baserom.gba", 0x201700, 0x0000010 + +gUnk_08201710:: @ 08201710 + .incbin "baserom.gba", 0x201710, 0x0000309 + +gUnk_08201A19:: @ 08201A19 + .incbin "baserom.gba", 0x201A19, 0x00000E2 + +gUnk_08201AFB:: @ 08201AFB + .incbin "baserom.gba", 0x201AFB, 0x00000DD + +gUnk_08201BD8:: @ 08201BD8 + .incbin "baserom.gba", 0x201BD8, 0x0000338 + +gUnk_08201F10:: @ 08201F10 + .incbin "baserom.gba", 0x201F10, 0x0000026 + +gUnk_08201F36:: @ 08201F36 + .incbin "baserom.gba", 0x201F36, 0x0000110 + +gUnk_08202046:: @ 08202046 + .incbin "baserom.gba", 0x202046, 0x000009A + +gUnk_082020E0:: @ 082020E0 + .incbin "baserom.gba", 0x2020E0, 0x0000120 + +gUnk_08202200:: @ 08202200 + .incbin "baserom.gba", 0x202200, 0x0000010 + +gUnk_08202210:: @ 08202210 + .incbin "baserom.gba", 0x202210, 0x0000001 + +gUnk_08202211:: @ 08202211 + .incbin "baserom.gba", 0x202211, 0x000000C + +gUnk_0820221D:: @ 0820221D + .incbin "baserom.gba", 0x20221D, 0x00000FD + +gUnk_0820231A:: @ 0820231A + .incbin "baserom.gba", 0x20231A, 0x00000F3 + +gUnk_0820240D:: @ 0820240D + .incbin "baserom.gba", 0x20240D, 0x00003B3 + +gUnk_082027C0:: @ 082027C0 + .incbin "baserom.gba", 0x2027C0, 0x0000070 + +gUnk_08202830:: @ 08202830 + .incbin "baserom.gba", 0x202830, 0x00000E7 + +gUnk_08202917:: @ 08202917 + .incbin "baserom.gba", 0x202917, 0x00000FF + +gUnk_08202A16:: @ 08202A16 + .incbin "baserom.gba", 0x202A16, 0x0000009 + +gUnk_08202A1F:: @ 08202A1F + .incbin "baserom.gba", 0x202A1F, 0x00001E4 + +gUnk_08202C03:: @ 08202C03 + .incbin "baserom.gba", 0x202C03, 0x0000144 + +gUnk_08202D47:: @ 08202D47 + .incbin "baserom.gba", 0x202D47, 0x00000EE + +gUnk_08202E35:: @ 08202E35 + .incbin "baserom.gba", 0x202E35, 0x00001FF + +gUnk_08203034:: @ 08203034 + .incbin "baserom.gba", 0x203034, 0x0000002 + +gUnk_08203036:: @ 08203036 + .incbin "baserom.gba", 0x203036, 0x00000FC + +gUnk_08203132:: @ 08203132 + .incbin "baserom.gba", 0x203132, 0x000010B + +gUnk_0820323D:: @ 0820323D + .incbin "baserom.gba", 0x20323D, 0x0000103 + +gUnk_08203340:: @ 08203340 + .incbin "baserom.gba", 0x203340, 0x00000C0 + +gUnk_08203400:: @ 08203400 + .incbin "baserom.gba", 0x203400, 0x000002E + +gUnk_0820342E:: @ 0820342E + .incbin "baserom.gba", 0x20342E, 0x0000003 + +gUnk_08203431:: @ 08203431 + .incbin "baserom.gba", 0x203431, 0x00000CF + +gUnk_08203500:: @ 08203500 + .incbin "baserom.gba", 0x203500, 0x0000044 + +gUnk_08203544:: @ 08203544 + .incbin "baserom.gba", 0x203544, 0x00001EB + +gUnk_0820372F:: @ 0820372F + .incbin "baserom.gba", 0x20372F, 0x000001B + +gUnk_0820374A:: @ 0820374A + .incbin "baserom.gba", 0x20374A, 0x00000B6 + +gUnk_08203800:: @ 08203800 + .incbin "baserom.gba", 0x203800, 0x0000001 + +gUnk_08203801:: @ 08203801 + .incbin "baserom.gba", 0x203801, 0x00002FF + +gUnk_08203B00:: @ 08203B00 + .incbin "baserom.gba", 0x203B00, 0x000021D + +gUnk_08203D1D:: @ 08203D1D + .incbin "baserom.gba", 0x203D1D, 0x0000036 + +gUnk_08203D53:: @ 08203D53 + .incbin "baserom.gba", 0x203D53, 0x00003AD + +gUnk_08204100:: @ 08204100 + .incbin "baserom.gba", 0x204100, 0x0000100 + +gUnk_08204200:: @ 08204200 + .incbin "baserom.gba", 0x204200, 0x0000087 + +gUnk_08204287:: @ 08204287 + .incbin "baserom.gba", 0x204287, 0x0000079 + +gUnk_08204300:: @ 08204300 + .incbin "baserom.gba", 0x204300, 0x0000306 + +gUnk_08204606:: @ 08204606 + .incbin "baserom.gba", 0x204606, 0x0000004 + +gUnk_0820460A:: @ 0820460A + .incbin "baserom.gba", 0x20460A, 0x0000026 + +gUnk_08204630:: @ 08204630 + .incbin "baserom.gba", 0x204630, 0x0000020 + +gUnk_08204650:: @ 08204650 + .incbin "baserom.gba", 0x204650, 0x00002B0 + +gUnk_08204900:: @ 08204900 + .incbin "baserom.gba", 0x204900, 0x0000100 + +gUnk_08204A00:: @ 08204A00 + .incbin "baserom.gba", 0x204A00, 0x0000200 + +gUnk_08204C00:: @ 08204C00 + .incbin "baserom.gba", 0x204C00, 0x0000300 + +gUnk_08204F00:: @ 08204F00 + .incbin "baserom.gba", 0x204F00, 0x0000010 + +gUnk_08204F10:: @ 08204F10 + .incbin "baserom.gba", 0x204F10, 0x00001F0 + +gUnk_08205100:: @ 08205100 + .incbin "baserom.gba", 0x205100, 0x0000100 + +gUnk_08205200:: @ 08205200 + .incbin "baserom.gba", 0x205200, 0x000006D + +gUnk_0820526D:: @ 0820526D + .incbin "baserom.gba", 0x20526D, 0x0000393 + +gUnk_08205600:: @ 08205600 + .incbin "baserom.gba", 0x205600, 0x0000020 + +gUnk_08205620:: @ 08205620 + .incbin "baserom.gba", 0x205620, 0x00003E0 + +gUnk_08205A00:: @ 08205A00 + .incbin "baserom.gba", 0x205A00, 0x00006E9 + +gUnk_082060E9:: @ 082060E9 + .incbin "baserom.gba", 0x2060E9, 0x000071E + +gUnk_08206807:: @ 08206807 + .incbin "baserom.gba", 0x206807, 0x00003F9 + +gUnk_08206C00:: @ 08206C00 + .incbin "baserom.gba", 0x206C00, 0x000007F + +gUnk_08206C7F:: @ 08206C7F + .incbin "baserom.gba", 0x206C7F, 0x0000282 + +gUnk_08206F01:: @ 08206F01 + .incbin "baserom.gba", 0x206F01, 0x000001F + +gUnk_08206F20:: @ 08206F20 + .incbin "baserom.gba", 0x206F20, 0x0000064 + +gUnk_08206F84:: @ 08206F84 + .incbin "baserom.gba", 0x206F84, 0x0000106 + +gUnk_0820708A:: @ 0820708A + .incbin "baserom.gba", 0x20708A, 0x000007D + +gUnk_08207107:: @ 08207107 + .incbin "baserom.gba", 0x207107, 0x000020D + +gUnk_08207314:: @ 08207314 + .incbin "baserom.gba", 0x207314, 0x0000025 + +gUnk_08207339:: @ 08207339 + .incbin "baserom.gba", 0x207339, 0x00004BC + +gUnk_082077F5:: @ 082077F5 + .incbin "baserom.gba", 0x2077F5, 0x000020C + +gUnk_08207A01:: @ 08207A01 + .incbin "baserom.gba", 0x207A01, 0x0000169 + +gUnk_08207B6A:: @ 08207B6A + .incbin "baserom.gba", 0x207B6A, 0x00003E2 + +gUnk_08207F4C:: @ 08207F4C + .incbin "baserom.gba", 0x207F4C, 0x000011E + +gUnk_0820806A:: @ 0820806A + .incbin "baserom.gba", 0x20806A, 0x0000596 + +gUnk_08208600:: @ 08208600 + .incbin "baserom.gba", 0x208600, 0x000010E + +gUnk_0820870E:: @ 0820870E + .incbin "baserom.gba", 0x20870E, 0x0000019 + +gUnk_08208727:: @ 08208727 + .incbin "baserom.gba", 0x208727, 0x000041C + +gUnk_08208B43:: @ 08208B43 + .incbin "baserom.gba", 0x208B43, 0x0000072 + +gUnk_08208BB5:: @ 08208BB5 + .incbin "baserom.gba", 0x208BB5, 0x0000052 + +gUnk_08208C07:: @ 08208C07 + .incbin "baserom.gba", 0x208C07, 0x000027A + +gUnk_08208E81:: @ 08208E81 + .incbin "baserom.gba", 0x208E81, 0x0000089 + +gUnk_08208F0A:: @ 08208F0A + .incbin "baserom.gba", 0x208F0A, 0x000007A + +gUnk_08208F84:: @ 08208F84 + .incbin "baserom.gba", 0x208F84, 0x0000170 + +gUnk_082090F4:: @ 082090F4 + .incbin "baserom.gba", 0x2090F4, 0x000020C + +gUnk_08209300:: @ 08209300 + .incbin "baserom.gba", 0x209300, 0x00000AE + +gUnk_082093AE:: @ 082093AE + .incbin "baserom.gba", 0x2093AE, 0x00001E7 + +gUnk_08209595:: @ 08209595 + .incbin "baserom.gba", 0x209595, 0x00000AD + +gUnk_08209642:: @ 08209642 + .incbin "baserom.gba", 0x209642, 0x0000247 + +gUnk_08209889:: @ 08209889 + .incbin "baserom.gba", 0x209889, 0x000002A + +gUnk_082098B3:: @ 082098B3 + .incbin "baserom.gba", 0x2098B3, 0x00000D5 + +gUnk_08209988:: @ 08209988 + .incbin "baserom.gba", 0x209988, 0x0000280 + +gUnk_08209C08:: @ 08209C08 + .incbin "baserom.gba", 0x209C08, 0x0000300 + +gUnk_08209F08:: @ 08209F08 + .incbin "baserom.gba", 0x209F08, 0x00006E1 + +gUnk_0820A5E9:: @ 0820A5E9 + .incbin "baserom.gba", 0x20A5E9, 0x000016E + +gUnk_0820A757:: @ 0820A757 + .incbin "baserom.gba", 0x20A757, 0x0000050 + +gUnk_0820A7A7:: @ 0820A7A7 + .incbin "baserom.gba", 0x20A7A7, 0x0000025 + +gUnk_0820A7CC:: @ 0820A7CC + .incbin "baserom.gba", 0x20A7CC, 0x0000009 + +gUnk_0820A7D5:: @ 0820A7D5 + .incbin "baserom.gba", 0x20A7D5, 0x0000033 + +gUnk_0820A808:: @ 0820A808 + .incbin "baserom.gba", 0x20A808, 0x0000148 + +gUnk_0820A950:: @ 0820A950 + .incbin "baserom.gba", 0x20A950, 0x0000238 + +gUnk_0820AB88:: @ 0820AB88 + .incbin "baserom.gba", 0x20AB88, 0x0000581 + +gUnk_0820B109:: @ 0820B109 + .incbin "baserom.gba", 0x20B109, 0x0000081 + +gUnk_0820B18A:: @ 0820B18A + .incbin "baserom.gba", 0x20B18A, 0x0000226 + +gUnk_0820B3B0:: @ 0820B3B0 + .incbin "baserom.gba", 0x20B3B0, 0x0000079 + +gUnk_0820B429:: @ 0820B429 + .incbin "baserom.gba", 0x20B429, 0x000012B + +gUnk_0820B554:: @ 0820B554 + .incbin "baserom.gba", 0x20B554, 0x00000C3 + +gUnk_0820B617:: @ 0820B617 + .incbin "baserom.gba", 0x20B617, 0x00000DE + +gUnk_0820B6F5:: @ 0820B6F5 + .incbin "baserom.gba", 0x20B6F5, 0x000020D + +gUnk_0820B902:: @ 0820B902 + .incbin "baserom.gba", 0x20B902, 0x0000005 + +gUnk_0820B907:: @ 0820B907 + .incbin "baserom.gba", 0x20B907, 0x0000103 + +gUnk_0820BA0A:: @ 0820BA0A + .incbin "baserom.gba", 0x20BA0A, 0x00001DC + +gUnk_0820BBE6:: @ 0820BBE6 + .incbin "baserom.gba", 0x20BBE6, 0x00002C9 + +gUnk_0820BEAF:: @ 0820BEAF + .incbin "baserom.gba", 0x20BEAF, 0x000007D + +gUnk_0820BF2C:: @ 0820BF2C + .incbin "baserom.gba", 0x20BF2C, 0x000008D + +gUnk_0820BFB9:: @ 0820BFB9 + .incbin "baserom.gba", 0x20BFB9, 0x0000039 + +gUnk_0820BFF2:: @ 0820BFF2 + .incbin "baserom.gba", 0x20BFF2, 0x0000069 + +gUnk_0820C05B:: @ 0820C05B + .incbin "baserom.gba", 0x20C05B, 0x00000C5 + +gUnk_0820C120:: @ 0820C120 + .incbin "baserom.gba", 0x20C120, 0x000029C + +gUnk_0820C3BC:: @ 0820C3BC + .incbin "baserom.gba", 0x20C3BC, 0x0000358 + +gUnk_0820C714:: @ 0820C714 + .incbin "baserom.gba", 0x20C714, 0x0000030 + +gUnk_0820C744:: @ 0820C744 + .incbin "baserom.gba", 0x20C744, 0x0000081 + +gUnk_0820C7C5:: @ 0820C7C5 + .incbin "baserom.gba", 0x20C7C5, 0x000008B + +gUnk_0820C850:: @ 0820C850 + .incbin "baserom.gba", 0x20C850, 0x00000B0 + +gUnk_0820C900:: @ 0820C900 + .incbin "baserom.gba", 0x20C900, 0x000053E + +gUnk_0820CE3E:: @ 0820CE3E + .incbin "baserom.gba", 0x20CE3E, 0x00000D9 + +gUnk_0820CF17:: @ 0820CF17 + .incbin "baserom.gba", 0x20CF17, 0x00002ED + +gUnk_0820D204:: @ 0820D204 + .incbin "baserom.gba", 0x20D204, 0x00002D6 + +gUnk_0820D4DA:: @ 0820D4DA + .incbin "baserom.gba", 0x20D4DA, 0x000012A + +gUnk_0820D604:: @ 0820D604 + .incbin "baserom.gba", 0x20D604, 0x00003D9 + +gUnk_0820D9DD:: @ 0820D9DD + .incbin "baserom.gba", 0x20D9DD, 0x00000EA + +gUnk_0820DAC7:: @ 0820DAC7 + .incbin "baserom.gba", 0x20DAC7, 0x0000123 + +gUnk_0820DBEA:: @ 0820DBEA + .incbin "baserom.gba", 0x20DBEA, 0x00000EA + +gUnk_0820DCD4:: @ 0820DCD4 + .incbin "baserom.gba", 0x20DCD4, 0x00000CD + +gUnk_0820DDA1:: @ 0820DDA1 + .incbin "baserom.gba", 0x20DDA1, 0x0000067 + +gUnk_0820DE08:: @ 0820DE08 + .incbin "baserom.gba", 0x20DE08, 0x0000193 + +gUnk_0820DF9B:: @ 0820DF9B + .incbin "baserom.gba", 0x20DF9B, 0x000016C + +gUnk_0820E107:: @ 0820E107 + .incbin "baserom.gba", 0x20E107, 0x000001C + +gUnk_0820E123:: @ 0820E123 + .incbin "baserom.gba", 0x20E123, 0x0000080 + +gUnk_0820E1A3:: @ 0820E1A3 + .incbin "baserom.gba", 0x20E1A3, 0x0000341 + +gUnk_0820E4E4:: @ 0820E4E4 + .incbin "baserom.gba", 0x20E4E4, 0x0000004 + +gUnk_0820E4E8:: @ 0820E4E8 + .incbin "baserom.gba", 0x20E4E8, 0x0000015 + +gUnk_0820E4FD:: @ 0820E4FD + .incbin "baserom.gba", 0x20E4FD, 0x000000E + +gUnk_0820E50B:: @ 0820E50B + .incbin "baserom.gba", 0x20E50B, 0x0000002 + +gUnk_0820E50D:: @ 0820E50D + .incbin "baserom.gba", 0x20E50D, 0x000008A + +gUnk_0820E597:: @ 0820E597 + .incbin "baserom.gba", 0x20E597, 0x0000250 + +gUnk_0820E7E7:: @ 0820E7E7 + .incbin "baserom.gba", 0x20E7E7, 0x0000102 + +gUnk_0820E8E9:: @ 0820E8E9 + .incbin "baserom.gba", 0x20E8E9, 0x000021A + +gUnk_0820EB03:: @ 0820EB03 + .incbin "baserom.gba", 0x20EB03, 0x000000C + +gUnk_0820EB0F:: @ 0820EB0F + .incbin "baserom.gba", 0x20EB0F, 0x0000075 + +gUnk_0820EB84:: @ 0820EB84 + .incbin "baserom.gba", 0x20EB84, 0x000009F + +gUnk_0820EC23:: @ 0820EC23 + .incbin "baserom.gba", 0x20EC23, 0x0000120 + +gUnk_0820ED43:: @ 0820ED43 + .incbin "baserom.gba", 0x20ED43, 0x0000021 + +gUnk_0820ED64:: @ 0820ED64 + .incbin "baserom.gba", 0x20ED64, 0x0000127 + +gUnk_0820EE8B:: @ 0820EE8B + .incbin "baserom.gba", 0x20EE8B, 0x0000175 + +gUnk_0820F000:: @ 0820F000 + .incbin "baserom.gba", 0x20F000, 0x00000E0 + +gUnk_0820F0E0:: @ 0820F0E0 + .incbin "baserom.gba", 0x20F0E0, 0x0000A4F + +gUnk_0820FB2F:: @ 0820FB2F + .incbin "baserom.gba", 0x20FB2F, 0x0000045 + +gUnk_0820FB74:: @ 0820FB74 + .incbin "baserom.gba", 0x20FB74, 0x0000388 + +gUnk_0820FEFC:: @ 0820FEFC + .incbin "baserom.gba", 0x20FEFC, 0x0000056 + +gUnk_0820FF52:: @ 0820FF52 + .incbin "baserom.gba", 0x20FF52, 0x000003B + +gUnk_0820FF8D:: @ 0820FF8D + .incbin "baserom.gba", 0x20FF8D, 0x0000019 + +gUnk_0820FFA6:: @ 0820FFA6 + .incbin "baserom.gba", 0x20FFA6, 0x000005A + +gUnk_08210000:: @ 08210000 + .incbin "baserom.gba", 0x210000, 0x0000024 + +gUnk_08210024:: @ 08210024 + .incbin "baserom.gba", 0x210024, 0x0000063 + +gUnk_08210087:: @ 08210087 + .incbin "baserom.gba", 0x210087, 0x0000052 + +gUnk_082100D9:: @ 082100D9 + .incbin "baserom.gba", 0x2100D9, 0x0000127 + +gUnk_08210200:: @ 08210200 + .incbin "baserom.gba", 0x210200, 0x0000120 + +gUnk_08210320:: @ 08210320 + .incbin "baserom.gba", 0x210320, 0x00001BC + +gUnk_082104DC:: @ 082104DC + .incbin "baserom.gba", 0x2104DC, 0x0000325 + +gUnk_08210801:: @ 08210801 + .incbin "baserom.gba", 0x210801, 0x00001E0 + +gUnk_082109E1:: @ 082109E1 + .incbin "baserom.gba", 0x2109E1, 0x000030A + +gUnk_08210CEB:: @ 08210CEB + .incbin "baserom.gba", 0x210CEB, 0x0000222 + +gUnk_08210F0D:: @ 08210F0D + .incbin "baserom.gba", 0x210F0D, 0x00000D3 + +gUnk_08210FE0:: @ 08210FE0 + .incbin "baserom.gba", 0x210FE0, 0x0000142 + +gUnk_08211122:: @ 08211122 + .incbin "baserom.gba", 0x211122, 0x0000133 + +gUnk_08211255:: @ 08211255 + .incbin "baserom.gba", 0x211255, 0x000000D + +gUnk_08211262:: @ 08211262 + .incbin "baserom.gba", 0x211262, 0x0000093 + +gUnk_082112F5:: @ 082112F5 + .incbin "baserom.gba", 0x2112F5, 0x0000838 + +gUnk_08211B2D:: @ 08211B2D + .incbin "baserom.gba", 0x211B2D, 0x00001CD + +gUnk_08211CFA:: @ 08211CFA + .incbin "baserom.gba", 0x211CFA, 0x000010C + +gUnk_08211E06:: @ 08211E06 + .incbin "baserom.gba", 0x211E06, 0x000029B + +gUnk_082120A1:: @ 082120A1 + .incbin "baserom.gba", 0x2120A1, 0x0000259 + +gUnk_082122FA:: @ 082122FA + .incbin "baserom.gba", 0x2122FA, 0x0000010 + +gUnk_0821230A:: @ 0821230A + .incbin "baserom.gba", 0x21230A, 0x0000723 + +gUnk_08212A2D:: @ 08212A2D + .incbin "baserom.gba", 0x212A2D, 0x00003F9 + +gUnk_08212E26:: @ 08212E26 + .incbin "baserom.gba", 0x212E26, 0x00000F2 + +gUnk_08212F18:: @ 08212F18 + .incbin "baserom.gba", 0x212F18, 0x0000116 + +gUnk_0821302E:: @ 0821302E + .incbin "baserom.gba", 0x21302E, 0x000000B + +gUnk_08213039:: @ 08213039 + .incbin "baserom.gba", 0x213039, 0x00000F3 + +gUnk_0821312C:: @ 0821312C + .incbin "baserom.gba", 0x21312C, 0x00001F6 + +gUnk_08213322:: @ 08213322 + .incbin "baserom.gba", 0x213322, 0x000001A + +gUnk_0821333C:: @ 0821333C + .incbin "baserom.gba", 0x21333C, 0x0000407 + +gUnk_08213743:: @ 08213743 + .incbin "baserom.gba", 0x213743, 0x0000312 + +gUnk_08213A55:: @ 08213A55 + .incbin "baserom.gba", 0x213A55, 0x00001EF + +gUnk_08213C44:: @ 08213C44 + .incbin "baserom.gba", 0x213C44, 0x0000010 + +gUnk_08213C54:: @ 08213C54 + .incbin "baserom.gba", 0x213C54, 0x00003AB + +gUnk_08213FFF:: @ 08213FFF + .incbin "baserom.gba", 0x213FFF, 0x0000108 + +gUnk_08214107:: @ 08214107 + .incbin "baserom.gba", 0x214107, 0x0000150 + +gUnk_08214257:: @ 08214257 + .incbin "baserom.gba", 0x214257, 0x0000001 + +gUnk_08214258:: @ 08214258 + .incbin "baserom.gba", 0x214258, 0x000035F + +gUnk_082145B7:: @ 082145B7 + .incbin "baserom.gba", 0x2145B7, 0x00005C7 + +gUnk_08214B7E:: @ 08214B7E + .incbin "baserom.gba", 0x214B7E, 0x0000C81 + +gUnk_082157FF:: @ 082157FF + .incbin "baserom.gba", 0x2157FF, 0x000377A + +gUnk_08218F79:: @ 08218F79 + .incbin "baserom.gba", 0x218F79, 0x000309F + +gUnk_0821C018:: @ 0821C018 + .incbin "baserom.gba", 0x21C018, 0x0002FE7 + +gUnk_0821EFFF:: @ 0821EFFF + .incbin "baserom.gba", 0x21EFFF, 0x00000F1 + +gUnk_0821F0F0:: @ 0821F0F0 + .incbin "baserom.gba", 0x21F0F0, 0x0000F11 + +gUnk_08220001:: @ 08220001 + .incbin "baserom.gba", 0x220001, 0x0000100 + +gUnk_08220101:: @ 08220101 + .incbin "baserom.gba", 0x220101, 0x0000002 + +gUnk_08220103:: @ 08220103 + .incbin "baserom.gba", 0x220103, 0x00001D2 + +gUnk_082202D5:: @ 082202D5 + .incbin "baserom.gba", 0x2202D5, 0x000002B + +gUnk_08220300:: @ 08220300 + .incbin "baserom.gba", 0x220300, 0x00002F7 + +gUnk_082205F7:: @ 082205F7 + .incbin "baserom.gba", 0x2205F7, 0x000073D + +gUnk_08220D34:: @ 08220D34 + .incbin "baserom.gba", 0x220D34, 0x00001BE + +gUnk_08220EF2:: @ 08220EF2 + .incbin "baserom.gba", 0x220EF2, 0x0000227 + +gUnk_08221119:: @ 08221119 + .incbin "baserom.gba", 0x221119, 0x00004E2 + +gUnk_082215FB:: @ 082215FB + .incbin "baserom.gba", 0x2215FB, 0x00003F6 + +gUnk_082219F1:: @ 082219F1 + .incbin "baserom.gba", 0x2219F1, 0x0000027 + +gUnk_08221A18:: @ 08221A18 + .incbin "baserom.gba", 0x221A18, 0x00001D6 + +gUnk_08221BEE:: @ 08221BEE + .incbin "baserom.gba", 0x221BEE, 0x0000212 + +gUnk_08221E00:: @ 08221E00 + .incbin "baserom.gba", 0x221E00, 0x00004EE + +gUnk_082222EE:: @ 082222EE + .incbin "baserom.gba", 0x2222EE, 0x0000056 + +gUnk_08222344:: @ 08222344 + .incbin "baserom.gba", 0x222344, 0x00000EF + +gUnk_08222433:: @ 08222433 + .incbin "baserom.gba", 0x222433, 0x0000055 + +gUnk_08222488:: @ 08222488 + .incbin "baserom.gba", 0x222488, 0x00001A5 + +gUnk_0822262D:: @ 0822262D + .incbin "baserom.gba", 0x22262D, 0x00004DA + +gUnk_08222B07:: @ 08222B07 + .incbin "baserom.gba", 0x222B07, 0x0000428 + +gUnk_08222F2F:: @ 08222F2F + .incbin "baserom.gba", 0x222F2F, 0x00000D8 + +gUnk_08223007:: @ 08223007 + .incbin "baserom.gba", 0x223007, 0x000022B + +gUnk_08223232:: @ 08223232 + .incbin "baserom.gba", 0x223232, 0x0000001 + +gUnk_08223233:: @ 08223233 + .incbin "baserom.gba", 0x223233, 0x0000210 + +gUnk_08223443:: @ 08223443 + .incbin "baserom.gba", 0x223443, 0x0000002 + +gUnk_08223445:: @ 08223445 + .incbin "baserom.gba", 0x223445, 0x000000E + +gUnk_08223453:: @ 08223453 + .incbin "baserom.gba", 0x223453, 0x00000D6 + +gUnk_08223529:: @ 08223529 + .incbin "baserom.gba", 0x223529, 0x0000014 + +gUnk_0822353D:: @ 0822353D + .incbin "baserom.gba", 0x22353D, 0x0000207 + +gUnk_08223744:: @ 08223744 + .incbin "baserom.gba", 0x223744, 0x0000E13 + +gUnk_08224557:: @ 08224557 + .incbin "baserom.gba", 0x224557, 0x00006F4 + +gUnk_08224C4B:: @ 08224C4B + .incbin "baserom.gba", 0x224C4B, 0x00002EA + +gUnk_08224F35:: @ 08224F35 + .incbin "baserom.gba", 0x224F35, 0x0000ED5 + +gUnk_08225E0A:: @ 08225E0A + .incbin "baserom.gba", 0x225E0A, 0x00021ED + +gUnk_08227FF7:: @ 08227FF7 + .incbin "baserom.gba", 0x227FF7, 0x0001014 + +gUnk_0822900B:: @ 0822900B + .incbin "baserom.gba", 0x22900B, 0x000019F + +gUnk_082291AA:: @ 082291AA + .incbin "baserom.gba", 0x2291AA, 0x0000B79 + +gUnk_08229D23:: @ 08229D23 + .incbin "baserom.gba", 0x229D23, 0x00007CB + +gUnk_0822A4EE:: @ 0822A4EE + .incbin "baserom.gba", 0x22A4EE, 0x0000F19 + +gUnk_0822B407:: @ 0822B407 + .incbin "baserom.gba", 0x22B407, 0x0002414 + +gUnk_0822D81B:: @ 0822D81B + .incbin "baserom.gba", 0x22D81B, 0x00013D5 + +gUnk_0822EBF0:: @ 0822EBF0 + .incbin "baserom.gba", 0x22EBF0, 0x0000413 + +gUnk_0822F003:: @ 0822F003 + .incbin "baserom.gba", 0x22F003, 0x0000401 + +gUnk_0822F404:: @ 0822F404 + .incbin "baserom.gba", 0x22F404, 0x00004CE + +gUnk_0822F8D2:: @ 0822F8D2 + .incbin "baserom.gba", 0x22F8D2, 0x0000010 + +gUnk_0822F8E2:: @ 0822F8E2 + .incbin "baserom.gba", 0x22F8E2, 0x00001D8 + +gUnk_0822FABA:: @ 0822FABA + .incbin "baserom.gba", 0x22FABA, 0x0000846 + +gUnk_08230300:: @ 08230300 + .incbin "baserom.gba", 0x230300, 0x00005A6 + +gUnk_082308A6:: @ 082308A6 + .incbin "baserom.gba", 0x2308A6, 0x0000038 + +gUnk_082308DE:: @ 082308DE + .incbin "baserom.gba", 0x2308DE, 0x0000347 + +gUnk_08230C25:: @ 08230C25 + .incbin "baserom.gba", 0x230C25, 0x00000B9 + +gUnk_08230CDE:: @ 08230CDE + .incbin "baserom.gba", 0x230CDE, 0x000060C + +gUnk_082312EA:: @ 082312EA + .incbin "baserom.gba", 0x2312EA, 0x0000424 + +gUnk_0823170E:: @ 0823170E + .incbin "baserom.gba", 0x23170E, 0x000052F + +gUnk_08231C3D:: @ 08231C3D + .incbin "baserom.gba", 0x231C3D, 0x00000D5 + +gUnk_08231D12:: @ 08231D12 + .incbin "baserom.gba", 0x231D12, 0x000000C + +gUnk_08231D1E:: @ 08231D1E + .incbin "baserom.gba", 0x231D1E, 0x00000F5 + +gUnk_08231E13:: @ 08231E13 + .incbin "baserom.gba", 0x231E13, 0x0000104 + +gUnk_08231F17:: @ 08231F17 + .incbin "baserom.gba", 0x231F17, 0x00001C1 + +gUnk_082320D8:: @ 082320D8 + .incbin "baserom.gba", 0x2320D8, 0x000015D + +gUnk_08232235:: @ 08232235 + .incbin "baserom.gba", 0x232235, 0x0000075 + +gUnk_082322AA:: @ 082322AA + .incbin "baserom.gba", 0x2322AA, 0x000015C + +gUnk_08232406:: @ 08232406 + .incbin "baserom.gba", 0x232406, 0x000003F + +gUnk_08232445:: @ 08232445 + .incbin "baserom.gba", 0x232445, 0x00001CB + +gUnk_08232610:: @ 08232610 + .incbin "baserom.gba", 0x232610, 0x000020C + +gUnk_0823281C:: @ 0823281C + .incbin "baserom.gba", 0x23281C, 0x00000F5 + +gUnk_08232911:: @ 08232911 + .incbin "baserom.gba", 0x232911, 0x000011C + +gUnk_08232A2D:: @ 08232A2D + .incbin "baserom.gba", 0x232A2D, 0x00000E1 + +gUnk_08232B0E:: @ 08232B0E + .incbin "baserom.gba", 0x232B0E, 0x000000F + +gUnk_08232B1D:: @ 08232B1D + .incbin "baserom.gba", 0x232B1D, 0x0000006 + +gUnk_08232B23:: @ 08232B23 + .incbin "baserom.gba", 0x232B23, 0x00001C8 + +gUnk_08232CEB:: @ 08232CEB + .incbin "baserom.gba", 0x232CEB, 0x000002D + +gUnk_08232D18:: @ 08232D18 + .incbin "baserom.gba", 0x232D18, 0x0000015 + +gUnk_08232D2D:: @ 08232D2D + .incbin "baserom.gba", 0x232D2D, 0x0000007 + +gUnk_08232D34:: @ 08232D34 + .incbin "baserom.gba", 0x232D34, 0x000015D + +gUnk_08232E91:: @ 08232E91 + .incbin "baserom.gba", 0x232E91, 0x000007C + +gUnk_08232F0D:: @ 08232F0D + .incbin "baserom.gba", 0x232F0D, 0x000000A + +gUnk_08232F17:: @ 08232F17 + .incbin "baserom.gba", 0x232F17, 0x000001F + +gUnk_08232F36:: @ 08232F36 + .incbin "baserom.gba", 0x232F36, 0x00000F3 + +gUnk_08233029:: @ 08233029 + .incbin "baserom.gba", 0x233029, 0x0000006 + +gUnk_0823302F:: @ 0823302F + .incbin "baserom.gba", 0x23302F, 0x0000008 + +gUnk_08233037:: @ 08233037 + .incbin "baserom.gba", 0x233037, 0x00001F4 + +gUnk_0823322B:: @ 0823322B + .incbin "baserom.gba", 0x23322B, 0x00000EB + +gUnk_08233316:: @ 08233316 + .incbin "baserom.gba", 0x233316, 0x000001D + +gUnk_08233333:: @ 08233333 + .incbin "baserom.gba", 0x233333, 0x0000002 + +gUnk_08233335:: @ 08233335 + .incbin "baserom.gba", 0x233335, 0x0000064 + +gUnk_08233399:: @ 08233399 + .incbin "baserom.gba", 0x233399, 0x000008A + +gUnk_08233423:: @ 08233423 + .incbin "baserom.gba", 0x233423, 0x000000E + +gUnk_08233431:: @ 08233431 + .incbin "baserom.gba", 0x233431, 0x0000003 + +gUnk_08233434:: @ 08233434 + .incbin "baserom.gba", 0x233434, 0x000020D + +gUnk_08233641:: @ 08233641 + .incbin "baserom.gba", 0x233641, 0x0000021 + +gUnk_08233662:: @ 08233662 + .incbin "baserom.gba", 0x233662, 0x00000D6 + +gUnk_08233738:: @ 08233738 + .incbin "baserom.gba", 0x233738, 0x0000103 + +gUnk_0823383B:: @ 0823383B + .incbin "baserom.gba", 0x23383B, 0x0000217 + +gUnk_08233A52:: @ 08233A52 + .incbin "baserom.gba", 0x233A52, 0x0000009 + +gUnk_08233A5B:: @ 08233A5B + .incbin "baserom.gba", 0x233A5B, 0x000012E + +gUnk_08233B89:: @ 08233B89 + .incbin "baserom.gba", 0x233B89, 0x00000BD + +gUnk_08233C46:: @ 08233C46 + .incbin "baserom.gba", 0x233C46, 0x000030F + +gUnk_08233F55:: @ 08233F55 + .incbin "baserom.gba", 0x233F55, 0x00002CC + +gUnk_08234221:: @ 08234221 + .incbin "baserom.gba", 0x234221, 0x000021A + +gUnk_0823443B:: @ 0823443B + .incbin "baserom.gba", 0x23443B, 0x0000207 + +gUnk_08234642:: @ 08234642 + .incbin "baserom.gba", 0x234642, 0x0000BA7 + +gUnk_082351E9:: @ 082351E9 + .incbin "baserom.gba", 0x2351E9, 0x0000265 + +gUnk_0823544E:: @ 0823544E + .incbin "baserom.gba", 0x23544E, 0x00005FF + +gUnk_08235A4D:: @ 08235A4D + .incbin "baserom.gba", 0x235A4D, 0x00009EE + +gUnk_0823643B:: @ 0823643B + .incbin "baserom.gba", 0x23643B, 0x0002AC8 + +gUnk_08238F03:: @ 08238F03 + .incbin "baserom.gba", 0x238F03, 0x0001BA6 + +gUnk_0823AAA9:: @ 0823AAA9 + .incbin "baserom.gba", 0x23AAA9, 0x0001C6C + +gUnk_0823C715:: @ 0823C715 + .incbin "baserom.gba", 0x23C715, 0x00013EF + +gUnk_0823DB04:: @ 0823DB04 + .incbin "baserom.gba", 0x23DB04, 0x0000FFC + +gUnk_0823EB00:: @ 0823EB00 + .incbin "baserom.gba", 0x23EB00, 0x0001109 + +gUnk_0823FC09:: @ 0823FC09 + .incbin "baserom.gba", 0x23FC09, 0x00003F7 + +gUnk_08240000:: @ 08240000 + .incbin "baserom.gba", 0x240000, 0x000000F + +gUnk_0824000F:: @ 0824000F + .incbin "baserom.gba", 0x24000F, 0x00000FA + +gUnk_08240109:: @ 08240109 + .incbin "baserom.gba", 0x240109, 0x000001A + +gUnk_08240123:: @ 08240123 + .incbin "baserom.gba", 0x240123, 0x00001DD + +gUnk_08240300:: @ 08240300 + .incbin "baserom.gba", 0x240300, 0x0000CE5 + +gUnk_08240FE5:: @ 08240FE5 + .incbin "baserom.gba", 0x240FE5, 0x000041A + +gUnk_082413FF:: @ 082413FF + .incbin "baserom.gba", 0x2413FF, 0x0000915 + +gUnk_08241D14:: @ 08241D14 + .incbin "baserom.gba", 0x241D14, 0x00002FF + +gUnk_08242013:: @ 08242013 + .incbin "baserom.gba", 0x242013, 0x00000E5 + +gUnk_082420F8:: @ 082420F8 + .incbin "baserom.gba", 0x2420F8, 0x000000C + +gUnk_08242104:: @ 08242104 + .incbin "baserom.gba", 0x242104, 0x000012E + +gUnk_08242232:: @ 08242232 + .incbin "baserom.gba", 0x242232, 0x00000A5 + +gUnk_082422D7:: @ 082422D7 + .incbin "baserom.gba", 0x2422D7, 0x000063F + +gUnk_08242916:: @ 08242916 + .incbin "baserom.gba", 0x242916, 0x0000122 + +gUnk_08242A38:: @ 08242A38 + .incbin "baserom.gba", 0x242A38, 0x00003E8 + +gUnk_08242E20:: @ 08242E20 + .incbin "baserom.gba", 0x242E20, 0x0000106 + +gUnk_08242F26:: @ 08242F26 + .incbin "baserom.gba", 0x242F26, 0x00001EB + +gUnk_08243111:: @ 08243111 + .incbin "baserom.gba", 0x243111, 0x0000121 + +gUnk_08243232:: @ 08243232 + .incbin "baserom.gba", 0x243232, 0x00006FB + +gUnk_0824392D:: @ 0824392D + .incbin "baserom.gba", 0x24392D, 0x0000016 + +gUnk_08243943:: @ 08243943 + .incbin "baserom.gba", 0x243943, 0x0000002 + +gUnk_08243945:: @ 08243945 + .incbin "baserom.gba", 0x243945, 0x0000202 + +gUnk_08243B47:: @ 08243B47 + .incbin "baserom.gba", 0x243B47, 0x0000002 + +gUnk_08243B49:: @ 08243B49 + .incbin "baserom.gba", 0x243B49, 0x000008D + +gUnk_08243BD6:: @ 08243BD6 + .incbin "baserom.gba", 0x243BD6, 0x0000267 + +gUnk_08243E3D:: @ 08243E3D + .incbin "baserom.gba", 0x243E3D, 0x000000F + +gUnk_08243E4C:: @ 08243E4C + .incbin "baserom.gba", 0x243E4C, 0x00000FC + +gUnk_08243F48:: @ 08243F48 + .incbin "baserom.gba", 0x243F48, 0x000032C + +gUnk_08244274:: @ 08244274 + .incbin "baserom.gba", 0x244274, 0x00000E1 + +gUnk_08244355:: @ 08244355 + .incbin "baserom.gba", 0x244355, 0x0000608 + +gUnk_0824495D:: @ 0824495D + .incbin "baserom.gba", 0x24495D, 0x0000BD8 + +gUnk_08245535:: @ 08245535 + .incbin "baserom.gba", 0x245535, 0x00005CB + +gUnk_08245B00:: @ 08245B00 + .incbin "baserom.gba", 0x245B00, 0x00019D4 + +gUnk_082474D4:: @ 082474D4 + .incbin "baserom.gba", 0x2474D4, 0x0004C0C + +gUnk_0824C0E0:: @ 0824C0E0 + .incbin "baserom.gba", 0x24C0E0, 0x00007C0 + +gUnk_0824C8A0:: @ 0824C8A0 + .incbin "baserom.gba", 0x24C8A0, 0x0001973 + +gUnk_0824E213:: @ 0824E213 + .incbin "baserom.gba", 0x24E213, 0x0000111 + +gUnk_0824E324:: @ 0824E324 + .incbin "baserom.gba", 0x24E324, 0x00001BF + +gUnk_0824E4E3:: @ 0824E4E3 + .incbin "baserom.gba", 0x24E4E3, 0x000031D + +gUnk_0824E800:: @ 0824E800 + .incbin "baserom.gba", 0x24E800, 0x00001B7 + +gUnk_0824E9B7:: @ 0824E9B7 + .incbin "baserom.gba", 0x24E9B7, 0x0001659 + +gUnk_08250010:: @ 08250010 + .incbin "baserom.gba", 0x250010, 0x0000030 + +gUnk_08250040:: @ 08250040 + .incbin "baserom.gba", 0x250040, 0x00000C7 + +gUnk_08250107:: @ 08250107 + .incbin "baserom.gba", 0x250107, 0x00002EF + +gUnk_082503F6:: @ 082503F6 + .incbin "baserom.gba", 0x2503F6, 0x000002E + +gUnk_08250424:: @ 08250424 + .incbin "baserom.gba", 0x250424, 0x0000C74 + +gUnk_08251098:: @ 08251098 + .incbin "baserom.gba", 0x251098, 0x0000071 + +gUnk_08251109:: @ 08251109 + .incbin "baserom.gba", 0x251109, 0x00002B3 + +gUnk_082513BC:: @ 082513BC + .incbin "baserom.gba", 0x2513BC, 0x0000B50 + +gUnk_08251F0C:: @ 08251F0C + .incbin "baserom.gba", 0x251F0C, 0x00001F9 + +gUnk_08252105:: @ 08252105 + .incbin "baserom.gba", 0x252105, 0x0000039 + +gUnk_0825213E:: @ 0825213E + .incbin "baserom.gba", 0x25213E, 0x00006DA + +gUnk_08252818:: @ 08252818 + .incbin "baserom.gba", 0x252818, 0x00008C2 + +gUnk_082530DA:: @ 082530DA + .incbin "baserom.gba", 0x2530DA, 0x0000259 + +gUnk_08253333:: @ 08253333 + .incbin "baserom.gba", 0x253333, 0x0000610 + +gUnk_08253943:: @ 08253943 + .incbin "baserom.gba", 0x253943, 0x00001FE + +gUnk_08253B41:: @ 08253B41 + .incbin "baserom.gba", 0x253B41, 0x0000109 + +gUnk_08253C4A:: @ 08253C4A + .incbin "baserom.gba", 0x253C4A, 0x0000309 + +gUnk_08253F53:: @ 08253F53 + .incbin "baserom.gba", 0x253F53, 0x0000503 + +gUnk_08254456:: @ 08254456 + .incbin "baserom.gba", 0x254456, 0x00010E5 + +gUnk_0825553B:: @ 0825553B + .incbin "baserom.gba", 0x25553B, 0x0000018 + +gUnk_08255553:: @ 08255553 + .incbin "baserom.gba", 0x255553, 0x0000068 + +gUnk_082555BB:: @ 082555BB + .incbin "baserom.gba", 0x2555BB, 0x0000FC3 + +gUnk_0825657E:: @ 0825657E + .incbin "baserom.gba", 0x25657E, 0x0007F37 + +gUnk_0825E4B5:: @ 0825E4B5 + .incbin "baserom.gba", 0x25E4B5, 0x0000344 + +gUnk_0825E7F9:: @ 0825E7F9 + .incbin "baserom.gba", 0x25E7F9, 0x0001808 + +gUnk_08260001:: @ 08260001 + .incbin "baserom.gba", 0x260001, 0x0000007 + +gUnk_08260008:: @ 08260008 + .incbin "baserom.gba", 0x260008, 0x0000038 + +gUnk_08260040:: @ 08260040 + .incbin "baserom.gba", 0x260040, 0x0000094 + +gUnk_082600D4:: @ 082600D4 + .incbin "baserom.gba", 0x2600D4, 0x0000300 + +gUnk_082603D4:: @ 082603D4 + .incbin "baserom.gba", 0x2603D4, 0x0000051 + +gUnk_08260425:: @ 08260425 + .incbin "baserom.gba", 0x260425, 0x0000034 + +gUnk_08260459:: @ 08260459 + .incbin "baserom.gba", 0x260459, 0x00002A9 + +gUnk_08260702:: @ 08260702 + .incbin "baserom.gba", 0x260702, 0x00004AE + +gUnk_08260BB0:: @ 08260BB0 + .incbin "baserom.gba", 0x260BB0, 0x0000348 + +gUnk_08260EF8:: @ 08260EF8 + .incbin "baserom.gba", 0x260EF8, 0x0000011 + +gUnk_08260F09:: @ 08260F09 + .incbin "baserom.gba", 0x260F09, 0x0000D6C + +gUnk_08261C75:: @ 08261C75 + .incbin "baserom.gba", 0x261C75, 0x000009E + +gUnk_08261D13:: @ 08261D13 + .incbin "baserom.gba", 0x261D13, 0x0000401 + +gUnk_08262114:: @ 08262114 + .incbin "baserom.gba", 0x262114, 0x00004F1 + +gUnk_08262605:: @ 08262605 + .incbin "baserom.gba", 0x262605, 0x0000316 + +gUnk_0826291B:: @ 0826291B + .incbin "baserom.gba", 0x26291B, 0x0000307 + +gUnk_08262C22:: @ 08262C22 + .incbin "baserom.gba", 0x262C22, 0x0000407 + +gUnk_08263029:: @ 08263029 + .incbin "baserom.gba", 0x263029, 0x00002FA + +gUnk_08263323:: @ 08263323 + .incbin "baserom.gba", 0x263323, 0x000051D + +gUnk_08263840:: @ 08263840 + .incbin "baserom.gba", 0x263840, 0x0000206 + +gUnk_08263A46:: @ 08263A46 + .incbin "baserom.gba", 0x263A46, 0x0000508 + +gUnk_08263F4E:: @ 08263F4E + .incbin "baserom.gba", 0x263F4E, 0x0000005 + +gUnk_08263F53:: @ 08263F53 + .incbin "baserom.gba", 0x263F53, 0x00001FD + +gUnk_08264150:: @ 08264150 + .incbin "baserom.gba", 0x264150, 0x00003E0 + +gUnk_08264530:: @ 08264530 + .incbin "baserom.gba", 0x264530, 0x0000335 + +gUnk_08264865:: @ 08264865 + .incbin "baserom.gba", 0x264865, 0x00002D8 + +gUnk_08264B3D:: @ 08264B3D + .incbin "baserom.gba", 0x264B3D, 0x000031C + +gUnk_08264E59:: @ 08264E59 + .incbin "baserom.gba", 0x264E59, 0x0000113 + +gUnk_08264F6C:: @ 08264F6C + .incbin "baserom.gba", 0x264F6C, 0x000835A + +gUnk_0826D2C6:: @ 0826D2C6 + .incbin "baserom.gba", 0x26D2C6, 0x0000530 + +gUnk_0826D7F6:: @ 0826D7F6 + .incbin "baserom.gba", 0x26D7F6, 0x0000990 + +gUnk_0826E186:: @ 0826E186 + .incbin "baserom.gba", 0x26E186, 0x0000C68 + +gUnk_0826EDEE:: @ 0826EDEE + .incbin "baserom.gba", 0x26EDEE, 0x00011FE + +gUnk_0826FFEC:: @ 0826FFEC + .incbin "baserom.gba", 0x26FFEC, 0x0000014 + +gUnk_08270000:: @ 08270000 + .incbin "baserom.gba", 0x270000, 0x0000001 + +gUnk_08270001:: @ 08270001 + .incbin "baserom.gba", 0x270001, 0x000000F + +gUnk_08270010:: @ 08270010 + .incbin "baserom.gba", 0x270010, 0x0000001 + +gUnk_08270011:: @ 08270011 + .incbin "baserom.gba", 0x270011, 0x00000E0 + +gUnk_082700F1:: @ 082700F1 + .incbin "baserom.gba", 0x2700F1, 0x00000E7 + +gUnk_082701D8:: @ 082701D8 + .incbin "baserom.gba", 0x2701D8, 0x000042E + +gUnk_08270606:: @ 08270606 + .incbin "baserom.gba", 0x270606, 0x000011A + +gUnk_08270720:: @ 08270720 + .incbin "baserom.gba", 0x270720, 0x00002CD + +gUnk_082709ED:: @ 082709ED + .incbin "baserom.gba", 0x2709ED, 0x000051C + +gUnk_08270F09:: @ 08270F09 + .incbin "baserom.gba", 0x270F09, 0x00000F8 + +gUnk_08271001:: @ 08271001 + .incbin "baserom.gba", 0x271001, 0x0000065 + +gUnk_08271066:: @ 08271066 + .incbin "baserom.gba", 0x271066, 0x000025C + +gUnk_082712C2:: @ 082712C2 + .incbin "baserom.gba", 0x2712C2, 0x0000033 + +gUnk_082712F5:: @ 082712F5 + .incbin "baserom.gba", 0x2712F5, 0x00001E8 + +gUnk_082714DD:: @ 082714DD + .incbin "baserom.gba", 0x2714DD, 0x0000A1E + +gUnk_08271EFB:: @ 08271EFB + .incbin "baserom.gba", 0x271EFB, 0x0000718 + +gUnk_08272613:: @ 08272613 + .incbin "baserom.gba", 0x272613, 0x0000204 + +gUnk_08272817:: @ 08272817 + .incbin "baserom.gba", 0x272817, 0x00000E1 + +gUnk_082728F8:: @ 082728F8 + .incbin "baserom.gba", 0x2728F8, 0x0000023 + +gUnk_0827291B:: @ 0827291B + .incbin "baserom.gba", 0x27291B, 0x00001F8 + +gUnk_08272B13:: @ 08272B13 + .incbin "baserom.gba", 0x272B13, 0x000024D + +gUnk_08272D60:: @ 08272D60 + .incbin "baserom.gba", 0x272D60, 0x00001CD + +gUnk_08272F2D:: @ 08272F2D + .incbin "baserom.gba", 0x272F2D, 0x00006F5 + +gUnk_08273622:: @ 08273622 + .incbin "baserom.gba", 0x273622, 0x000031C + +gUnk_0827393E:: @ 0827393E + .incbin "baserom.gba", 0x27393E, 0x000040F + +gUnk_08273D4D:: @ 08273D4D + .incbin "baserom.gba", 0x273D4D, 0x0000101 + +gUnk_08273E4E:: @ 08273E4E + .incbin "baserom.gba", 0x273E4E, 0x00003DC + +gUnk_0827422A:: @ 0827422A + .incbin "baserom.gba", 0x27422A, 0x0000422 + +gUnk_0827464C:: @ 0827464C + .incbin "baserom.gba", 0x27464C, 0x0000011 + +gUnk_0827465D:: @ 0827465D + .incbin "baserom.gba", 0x27465D, 0x0002CAE + +gUnk_0827730B:: @ 0827730B + .incbin "baserom.gba", 0x27730B, 0x0001D03 + +gUnk_0827900E:: @ 0827900E + .incbin "baserom.gba", 0x27900E, 0x0004412 + +gUnk_0827D420:: @ 0827D420 + .incbin "baserom.gba", 0x27D420, 0x0000FEC + +gUnk_0827E40C:: @ 0827E40C + .incbin "baserom.gba", 0x27E40C, 0x000120A + +gUnk_0827F616:: @ 0827F616 + .incbin "baserom.gba", 0x27F616, 0x00009F3 + +gUnk_08280009:: @ 08280009 + .incbin "baserom.gba", 0x280009, 0x000001E + +gUnk_08280027:: @ 08280027 + .incbin "baserom.gba", 0x280027, 0x0000F01 + +gUnk_08280F28:: @ 08280F28 + .incbin "baserom.gba", 0x280F28, 0x00003CB + +gUnk_082812F3:: @ 082812F3 + .incbin "baserom.gba", 0x2812F3, 0x0000F8E + +gUnk_08282281:: @ 08282281 + .incbin "baserom.gba", 0x282281, 0x0000679 + +gUnk_082828FA:: @ 082828FA + .incbin "baserom.gba", 0x2828FA, 0x000042E + +gUnk_08282D28:: @ 08282D28 + .incbin "baserom.gba", 0x282D28, 0x0000013 + +gUnk_08282D3B:: @ 08282D3B + .incbin "baserom.gba", 0x282D3B, 0x0000202 + +gUnk_08282F3D:: @ 08282F3D + .incbin "baserom.gba", 0x282F3D, 0x00002E1 + +gUnk_0828321E:: @ 0828321E + .incbin "baserom.gba", 0x28321E, 0x00003FB + +gUnk_08283619:: @ 08283619 + .incbin "baserom.gba", 0x283619, 0x0000A3A + +gUnk_08284053:: @ 08284053 + .incbin "baserom.gba", 0x284053, 0x0000301 + +gUnk_08284354:: @ 08284354 + .incbin "baserom.gba", 0x284354, 0x00000D9 + +gUnk_0828442D:: @ 0828442D + .incbin "baserom.gba", 0x28442D, 0x0000332 + +gUnk_0828475F:: @ 0828475F + .incbin "baserom.gba", 0x28475F, 0x00002F0 + +gUnk_08284A4F:: @ 08284A4F + .incbin "baserom.gba", 0x284A4F, 0x00015B1 + +gUnk_08286000:: @ 08286000 + .incbin "baserom.gba", 0x286000, 0x000016C + +gUnk_0828616C:: @ 0828616C + .incbin "baserom.gba", 0x28616C, 0x0008C48 + +gUnk_0828EDB4:: @ 0828EDB4 + .incbin "baserom.gba", 0x28EDB4, 0x0000826 + +gUnk_0828F5DA:: @ 0828F5DA + .incbin "baserom.gba", 0x28F5DA, 0x0001009 + +gUnk_082905E3:: @ 082905E3 + .incbin "baserom.gba", 0x2905E3, 0x000011D + +gUnk_08290700:: @ 08290700 + .incbin "baserom.gba", 0x290700, 0x00001EE + +gUnk_082908EE:: @ 082908EE + .incbin "baserom.gba", 0x2908EE, 0x0000017 + +gUnk_08290905:: @ 08290905 + .incbin "baserom.gba", 0x290905, 0x0000601 + +gUnk_08290F06:: @ 08290F06 + .incbin "baserom.gba", 0x290F06, 0x00006E5 + +gUnk_082915EB:: @ 082915EB + .incbin "baserom.gba", 0x2915EB, 0x0000303 + +gUnk_082918EE:: @ 082918EE + .incbin "baserom.gba", 0x2918EE, 0x000078F + +gUnk_0829207D:: @ 0829207D + .incbin "baserom.gba", 0x29207D, 0x0000192 + +gUnk_0829220F:: @ 0829220F + .incbin "baserom.gba", 0x29220F, 0x00005CF + +gUnk_082927DE:: @ 082927DE + .incbin "baserom.gba", 0x2927DE, 0x000003A + +gUnk_08292818:: @ 08292818 + .incbin "baserom.gba", 0x292818, 0x00001F4 + +gUnk_08292A0C:: @ 08292A0C + .incbin "baserom.gba", 0x292A0C, 0x000048D + +gUnk_08292E99:: @ 08292E99 + .incbin "baserom.gba", 0x292E99, 0x0000298 + +gUnk_08293131:: @ 08293131 + .incbin "baserom.gba", 0x293131, 0x0000C27 + +gUnk_08293D58:: @ 08293D58 + .incbin "baserom.gba", 0x293D58, 0x00002FC + +gUnk_08294054:: @ 08294054 + .incbin "baserom.gba", 0x294054, 0x00001FB + +gUnk_0829424F:: @ 0829424F + .incbin "baserom.gba", 0x29424F, 0x0000001 + +gUnk_08294250:: @ 08294250 + .incbin "baserom.gba", 0x294250, 0x000030E + +gUnk_0829455E:: @ 0829455E + .incbin "baserom.gba", 0x29455E, 0x00002F1 + +gUnk_0829484F:: @ 0829484F + .incbin "baserom.gba", 0x29484F, 0x0000205 + +gUnk_08294A54:: @ 08294A54 + .incbin "baserom.gba", 0x294A54, 0x0000106 + +gUnk_08294B5A:: @ 08294B5A + .incbin "baserom.gba", 0x294B5A, 0x00008CB + +gUnk_08295425:: @ 08295425 + .incbin "baserom.gba", 0x295425, 0x0000223 + +gUnk_08295648:: @ 08295648 + .incbin "baserom.gba", 0x295648, 0x0005ABB + +gUnk_0829B103:: @ 0829B103 + .incbin "baserom.gba", 0x29B103, 0x0002DE9 + +gUnk_0829DEEC:: @ 0829DEEC + .incbin "baserom.gba", 0x29DEEC, 0x0002114 + +gUnk_082A0000:: @ 082A0000 + .incbin "baserom.gba", 0x2A0000, 0x0000004 + +gUnk_082A0004:: @ 082A0004 + .incbin "baserom.gba", 0x2A0004, 0x0000005 + +gUnk_082A0009:: @ 082A0009 + .incbin "baserom.gba", 0x2A0009, 0x0000001 + +gUnk_082A000A:: @ 082A000A + .incbin "baserom.gba", 0x2A000A, 0x0000004 + +gUnk_082A000E:: @ 082A000E + .incbin "baserom.gba", 0x2A000E, 0x0000002 + +gUnk_082A0010:: @ 082A0010 + .incbin "baserom.gba", 0x2A0010, 0x0000008 + +gUnk_082A0018:: @ 082A0018 + .incbin "baserom.gba", 0x2A0018, 0x0000004 + +gUnk_082A001C:: @ 082A001C + .incbin "baserom.gba", 0x2A001C, 0x0000017 + +gUnk_082A0033:: @ 082A0033 + .incbin "baserom.gba", 0x2A0033, 0x000003F + +gUnk_082A0072:: @ 082A0072 + .incbin "baserom.gba", 0x2A0072, 0x000038F + +gUnk_082A0401:: @ 082A0401 + .incbin "baserom.gba", 0x2A0401, 0x000000F + +gUnk_082A0410:: @ 082A0410 + .incbin "baserom.gba", 0x2A0410, 0x0000024 + +gUnk_082A0434:: @ 082A0434 + .incbin "baserom.gba", 0x2A0434, 0x000000F + +gUnk_082A0443:: @ 082A0443 + .incbin "baserom.gba", 0x2A0443, 0x0000001 + +gUnk_082A0444:: @ 082A0444 + .incbin "baserom.gba", 0x2A0444, 0x0000010 + +gUnk_082A0454:: @ 082A0454 + .incbin "baserom.gba", 0x2A0454, 0x0000005 + +gUnk_082A0459:: @ 082A0459 + .incbin "baserom.gba", 0x2A0459, 0x000000A + +gUnk_082A0463:: @ 082A0463 + .incbin "baserom.gba", 0x2A0463, 0x0000025 + +gUnk_082A0488:: @ 082A0488 + .incbin "baserom.gba", 0x2A0488, 0x0000379 + +gUnk_082A0801:: @ 082A0801 + .incbin "baserom.gba", 0x2A0801, 0x0000004 + +gUnk_082A0805:: @ 082A0805 + .incbin "baserom.gba", 0x2A0805, 0x0000002 + +gUnk_082A0807:: @ 082A0807 + .incbin "baserom.gba", 0x2A0807, 0x0000022 + +gUnk_082A0829:: @ 082A0829 + .incbin "baserom.gba", 0x2A0829, 0x0000AB5 + +gUnk_082A12DE:: @ 082A12DE + .incbin "baserom.gba", 0x2A12DE, 0x0000106 + +gUnk_082A13E4:: @ 082A13E4 + .incbin "baserom.gba", 0x2A13E4, 0x0000437 + +gUnk_082A181B:: @ 082A181B + .incbin "baserom.gba", 0x2A181B, 0x00003BC + +gUnk_082A1BD7:: @ 082A1BD7 + .incbin "baserom.gba", 0x2A1BD7, 0x0000731 + +gUnk_082A2308:: @ 082A2308 + .incbin "baserom.gba", 0x2A2308, 0x00000F3 + +gUnk_082A23FB:: @ 082A23FB + .incbin "baserom.gba", 0x2A23FB, 0x0000309 + +gUnk_082A2704:: @ 082A2704 + .incbin "baserom.gba", 0x2A2704, 0x00001E5 + +gUnk_082A28E9:: @ 082A28E9 + .incbin "baserom.gba", 0x2A28E9, 0x0000831 + +gUnk_082A311A:: @ 082A311A + .incbin "baserom.gba", 0x2A311A, 0x000090E + +gUnk_082A3A28:: @ 082A3A28 + .incbin "baserom.gba", 0x2A3A28, 0x0000009 + +gUnk_082A3A31:: @ 082A3A31 + .incbin "baserom.gba", 0x2A3A31, 0x00003F4 + +gUnk_082A3E25:: @ 082A3E25 + .incbin "baserom.gba", 0x2A3E25, 0x0000108 + +gUnk_082A3F2D:: @ 082A3F2D + .incbin "baserom.gba", 0x2A3F2D, 0x000041A + +gUnk_082A4347:: @ 082A4347 + .incbin "baserom.gba", 0x2A4347, 0x000000E + +gUnk_082A4355:: @ 082A4355 + .incbin "baserom.gba", 0x2A4355, 0x00000ED + +gUnk_082A4442:: @ 082A4442 + .incbin "baserom.gba", 0x2A4442, 0x000000B + +gUnk_082A444D:: @ 082A444D + .incbin "baserom.gba", 0x2A444D, 0x00000F2 + +gUnk_082A453F:: @ 082A453F + .incbin "baserom.gba", 0x2A453F, 0x0000007 + +gUnk_082A4546:: @ 082A4546 + .incbin "baserom.gba", 0x2A4546, 0x000020E + +gUnk_082A4754:: @ 082A4754 + .incbin "baserom.gba", 0x2A4754, 0x000020E + +gUnk_082A4962:: @ 082A4962 + .incbin "baserom.gba", 0x2A4962, 0x00000D5 + +gUnk_082A4A37:: @ 082A4A37 + .incbin "baserom.gba", 0x2A4A37, 0x0000020 + +gUnk_082A4A57:: @ 082A4A57 + .incbin "baserom.gba", 0x2A4A57, 0x0000603 + +gUnk_082A505A:: @ 082A505A + .incbin "baserom.gba", 0x2A505A, 0x0005CB1 + +gUnk_082AAD0B:: @ 082AAD0B + .incbin "baserom.gba", 0x2AAD0B, 0x0000EAF + +gUnk_082ABBBA:: @ 082ABBBA + .incbin "baserom.gba", 0x2ABBBA, 0x0000332 + +gUnk_082ABEEC:: @ 082ABEEC + .incbin "baserom.gba", 0x2ABEEC, 0x000270A + +gUnk_082AE5F6:: @ 082AE5F6 + .incbin "baserom.gba", 0x2AE5F6, 0x000020F + +gUnk_082AE805:: @ 082AE805 + .incbin "baserom.gba", 0x2AE805, 0x000166B + +gUnk_082AFE70:: @ 082AFE70 + .incbin "baserom.gba", 0x2AFE70, 0x000015E + +gUnk_082AFFCE:: @ 082AFFCE + .incbin "baserom.gba", 0x2AFFCE, 0x0000F3B + +gUnk_082B0F09:: @ 082B0F09 + .incbin "baserom.gba", 0x2B0F09, 0x0000529 + +gUnk_082B1432:: @ 082B1432 + .incbin "baserom.gba", 0x2B1432, 0x00009BD + +gUnk_082B1DEF:: @ 082B1DEF + .incbin "baserom.gba", 0x2B1DEF, 0x000060F + +gUnk_082B23FE:: @ 082B23FE + .incbin "baserom.gba", 0x2B23FE, 0x00006E4 + +gUnk_082B2AE2:: @ 082B2AE2 + .incbin "baserom.gba", 0x2B2AE2, 0x000092E + +gUnk_082B3410:: @ 082B3410 + .incbin "baserom.gba", 0x2B3410, 0x0000234 + +gUnk_082B3644:: @ 082B3644 + .incbin "baserom.gba", 0x2B3644, 0x0000115 + +gUnk_082B3759:: @ 082B3759 + .incbin "baserom.gba", 0x2B3759, 0x00005E3 + +gUnk_082B3D3C:: @ 082B3D3C + .incbin "baserom.gba", 0x2B3D3C, 0x0000224 + +gUnk_082B3F60:: @ 082B3F60 + .incbin "baserom.gba", 0x2B3F60, 0x00005B4 + +gUnk_082B4514:: @ 082B4514 + .incbin "baserom.gba", 0x2B4514, 0x0000448 + +gUnk_082B495C:: @ 082B495C + .incbin "baserom.gba", 0x2B495C, 0x0000008 + +gUnk_082B4964:: @ 082B4964 + .incbin "baserom.gba", 0x2B4964, 0x0000A05 + +gUnk_082B5369:: @ 082B5369 + .incbin "baserom.gba", 0x2B5369, 0x0002C97 + +gUnk_082B8000:: @ 082B8000 + .incbin "baserom.gba", 0x2B8000, 0x0005C81 + +gUnk_082BDC81:: @ 082BDC81 + .incbin "baserom.gba", 0x2BDC81, 0x0001F3B + +gUnk_082BFBBC:: @ 082BFBBC + .incbin "baserom.gba", 0x2BFBBC, 0x00002C7 + +gUnk_082BFE83:: @ 082BFE83 + .incbin "baserom.gba", 0x2BFE83, 0x000017D + +gUnk_082C0000:: @ 082C0000 + .incbin "baserom.gba", 0x2C0000, 0x000003C + +gUnk_082C003C:: @ 082C003C + .incbin "baserom.gba", 0x2C003C, 0x0000024 + +gUnk_082C0060:: @ 082C0060 + .incbin "baserom.gba", 0x2C0060, 0x00000A7 + +gUnk_082C0107:: @ 082C0107 + .incbin "baserom.gba", 0x2C0107, 0x0000724 + +gUnk_082C082B:: @ 082C082B + .incbin "baserom.gba", 0x2C082B, 0x00002D5 + +gUnk_082C0B00:: @ 082C0B00 + .incbin "baserom.gba", 0x2C0B00, 0x0000406 + +gUnk_082C0F06:: @ 082C0F06 + .incbin "baserom.gba", 0x2C0F06, 0x00016FF + +gUnk_082C2605:: @ 082C2605 + .incbin "baserom.gba", 0x2C2605, 0x00002FE + +gUnk_082C2903:: @ 082C2903 + .incbin "baserom.gba", 0x2C2903, 0x0000E14 + +gUnk_082C3717:: @ 082C3717 + .incbin "baserom.gba", 0x2C3717, 0x0000225 + +gUnk_082C393C:: @ 082C393C + .incbin "baserom.gba", 0x2C393C, 0x00001DB + +gUnk_082C3B17:: @ 082C3B17 + .incbin "baserom.gba", 0x2C3B17, 0x000033A + +gUnk_082C3E51:: @ 082C3E51 + .incbin "baserom.gba", 0x2C3E51, 0x00005E6 + +gUnk_082C4437:: @ 082C4437 + .incbin "baserom.gba", 0x2C4437, 0x0001C39 + +gUnk_082C6070:: @ 082C6070 + .incbin "baserom.gba", 0x2C6070, 0x0000FB1 + +gUnk_082C7021:: @ 082C7021 + .incbin "baserom.gba", 0x2C7021, 0x0000AFF + +gUnk_082C7B20:: @ 082C7B20 + .incbin "baserom.gba", 0x2C7B20, 0x0004D18 + +gUnk_082CC838:: @ 082CC838 + .incbin "baserom.gba", 0x2CC838, 0x000249E + +gUnk_082CECD6:: @ 082CECD6 + .incbin "baserom.gba", 0x2CECD6, 0x000132A + +gUnk_082D0000:: @ 082D0000 + .incbin "baserom.gba", 0x2D0000, 0x000006E + +gUnk_082D006E:: @ 082D006E + .incbin "baserom.gba", 0x2D006E, 0x0000060 + +gUnk_082D00CE:: @ 082D00CE + .incbin "baserom.gba", 0x2D00CE, 0x0000171 + +gUnk_082D023F:: @ 082D023F + .incbin "baserom.gba", 0x2D023F, 0x0000204 + +gUnk_082D0443:: @ 082D0443 + .incbin "baserom.gba", 0x2D0443, 0x0000001 + +gUnk_082D0444:: @ 082D0444 + .incbin "baserom.gba", 0x2D0444, 0x0000015 + +gUnk_082D0459:: @ 082D0459 + .incbin "baserom.gba", 0x2D0459, 0x000002F + +gUnk_082D0488:: @ 082D0488 + .incbin "baserom.gba", 0x2D0488, 0x0000EA1 + +gUnk_082D1329:: @ 082D1329 + .incbin "baserom.gba", 0x2D1329, 0x0000716 + +gUnk_082D1A3F:: @ 082D1A3F + .incbin "baserom.gba", 0x2D1A3F, 0x0000AF1 + +gUnk_082D2530:: @ 082D2530 + .incbin "baserom.gba", 0x2D2530, 0x00001F5 + +gUnk_082D2725:: @ 082D2725 + .incbin "baserom.gba", 0x2D2725, 0x00003F6 + +gUnk_082D2B1B:: @ 082D2B1B + .incbin "baserom.gba", 0x2D2B1B, 0x00000F4 + +gUnk_082D2C0F:: @ 082D2C0F + .incbin "baserom.gba", 0x2D2C0F, 0x0000A1A + +gUnk_082D3629:: @ 082D3629 + .incbin "baserom.gba", 0x2D3629, 0x0000B0F + +gUnk_082D4138:: @ 082D4138 + .incbin "baserom.gba", 0x2D4138, 0x000075C + +gUnk_082D4894:: @ 082D4894 + .incbin "baserom.gba", 0x2D4894, 0x00004CD + +gUnk_082D4D61:: @ 082D4D61 + .incbin "baserom.gba", 0x2D4D61, 0x0000208 + +gUnk_082D4F69:: @ 082D4F69 + .incbin "baserom.gba", 0x2D4F69, 0x00004D7 + +gUnk_082D5440:: @ 082D5440 + .incbin "baserom.gba", 0x2D5440, 0x000012D + +gUnk_082D556D:: @ 082D556D + .incbin "baserom.gba", 0x2D556D, 0x00004ED + +gUnk_082D5A5A:: @ 082D5A5A + .incbin "baserom.gba", 0x2D5A5A, 0x00000FB + +gUnk_082D5B55:: @ 082D5B55 + .incbin "baserom.gba", 0x2D5B55, 0x0007F92 + +gUnk_082DDAE7:: @ 082DDAE7 + .incbin "baserom.gba", 0x2DDAE7, 0x00024E9 + +gUnk_082DFFD0:: @ 082DFFD0 + .incbin "baserom.gba", 0x2DFFD0, 0x000006C + +gUnk_082E003C:: @ 082E003C + .incbin "baserom.gba", 0x2E003C, 0x0000001 + +gUnk_082E003D:: @ 082E003D + .incbin "baserom.gba", 0x2E003D, 0x00010AA + +gUnk_082E10E7:: @ 082E10E7 + .incbin "baserom.gba", 0x2E10E7, 0x0000024 + +gUnk_082E110B:: @ 082E110B + .incbin "baserom.gba", 0x2E110B, 0x00003FE + +gUnk_082E1509:: @ 082E1509 + .incbin "baserom.gba", 0x2E1509, 0x0000211 + +gUnk_082E171A:: @ 082E171A + .incbin "baserom.gba", 0x2E171A, 0x0000AF8 + +gUnk_082E2212:: @ 082E2212 + .incbin "baserom.gba", 0x2E2212, 0x0000AE9 + +gUnk_082E2CFB:: @ 082E2CFB + .incbin "baserom.gba", 0x2E2CFB, 0x0001805 + +gUnk_082E4500:: @ 082E4500 + .incbin "baserom.gba", 0x2E4500, 0x000053A + +gUnk_082E4A3A:: @ 082E4A3A + .incbin "baserom.gba", 0x2E4A3A, 0x0000F1B + +gUnk_082E5955:: @ 082E5955 + .incbin "baserom.gba", 0x2E5955, 0x0000F9F + +gUnk_082E68F4:: @ 082E68F4 + .incbin "baserom.gba", 0x2E68F4, 0x0001081 + +gUnk_082E7975:: @ 082E7975 + .incbin "baserom.gba", 0x2E7975, 0x00003B4 + +gUnk_082E7D29:: @ 082E7D29 + .incbin "baserom.gba", 0x2E7D29, 0x00045C2 + +gUnk_082EC2EB:: @ 082EC2EB + .incbin "baserom.gba", 0x2EC2EB, 0x0002113 + +gUnk_082EE3FE:: @ 082EE3FE + .incbin "baserom.gba", 0x2EE3FE, 0x0000A23 + +gUnk_082EEE21:: @ 082EEE21 + .incbin "baserom.gba", 0x2EEE21, 0x00011DF + +gUnk_082F0000:: @ 082F0000 + .incbin "baserom.gba", 0x2F0000, 0x0000008 + +gUnk_082F0008:: @ 082F0008 + .incbin "baserom.gba", 0x2F0008, 0x0000008 + +gUnk_082F0010:: @ 082F0010 + .incbin "baserom.gba", 0x2F0010, 0x0000005 + +gUnk_082F0015:: @ 082F0015 + .incbin "baserom.gba", 0x2F0015, 0x0000009 + +gUnk_082F001E:: @ 082F001E + .incbin "baserom.gba", 0x2F001E, 0x00000B4 + +gUnk_082F00D2:: @ 082F00D2 + .incbin "baserom.gba", 0x2F00D2, 0x000002C + +gUnk_082F00FE:: @ 082F00FE + .incbin "baserom.gba", 0x2F00FE, 0x0000339 + +gUnk_082F0437:: @ 082F0437 + .incbin "baserom.gba", 0x2F0437, 0x0000022 + +gUnk_082F0459:: @ 082F0459 + .incbin "baserom.gba", 0x2F0459, 0x0000025 + +gUnk_082F047E:: @ 082F047E + .incbin "baserom.gba", 0x2F047E, 0x0000389 + +gUnk_082F0807:: @ 082F0807 + .incbin "baserom.gba", 0x2F0807, 0x00006FC + +gUnk_082F0F03:: @ 082F0F03 + .incbin "baserom.gba", 0x2F0F03, 0x0000600 + +gUnk_082F1503:: @ 082F1503 + .incbin "baserom.gba", 0x2F1503, 0x0000804 + +gUnk_082F1D07:: @ 082F1D07 + .incbin "baserom.gba", 0x2F1D07, 0x0000AED + +gUnk_082F27F4:: @ 082F27F4 + .incbin "baserom.gba", 0x2F27F4, 0x000031B + +gUnk_082F2B0F:: @ 082F2B0F + .incbin "baserom.gba", 0x2F2B0F, 0x0001265 + +gUnk_082F3D74:: @ 082F3D74 + .incbin "baserom.gba", 0x2F3D74, 0x000018F + +gUnk_082F3F03:: @ 082F3F03 + .incbin "baserom.gba", 0x2F3F03, 0x0000015 + +gUnk_082F3F18:: @ 082F3F18 + .incbin "baserom.gba", 0x2F3F18, 0x0000215 + +gUnk_082F412D:: @ 082F412D + .incbin "baserom.gba", 0x2F412D, 0x000030B + +gUnk_082F4438:: @ 082F4438 + .incbin "baserom.gba", 0x2F4438, 0x0000BCF + +gUnk_082F5007:: @ 082F5007 + .incbin "baserom.gba", 0x2F5007, 0x0000051 + +gUnk_082F5058:: @ 082F5058 + .incbin "baserom.gba", 0x2F5058, 0x00000B9 + +gUnk_082F5111:: @ 082F5111 + .incbin "baserom.gba", 0x2F5111, 0x000015B + +gUnk_082F526C:: @ 082F526C + .incbin "baserom.gba", 0x2F526C, 0x00079B8 + +gUnk_082FCC24:: @ 082FCC24 + .incbin "baserom.gba", 0x2FCC24, 0x00011D5 + +gUnk_082FDDF9:: @ 082FDDF9 + .incbin "baserom.gba", 0x2FDDF9, 0x00004E8 + +gUnk_082FE2E1:: @ 082FE2E1 + .incbin "baserom.gba", 0x2FE2E1, 0x0001CBE + +gUnk_082FFF9F:: @ 082FFF9F + .incbin "baserom.gba", 0x2FFF9F, 0x0000061 + +gUnk_08300000:: @ 08300000 + .incbin "baserom.gba", 0x300000, 0x0000009 + +gUnk_08300009:: @ 08300009 + .incbin "baserom.gba", 0x300009, 0x0000018 + +gUnk_08300021:: @ 08300021 + .incbin "baserom.gba", 0x300021, 0x0000104 + +gUnk_08300125:: @ 08300125 + .incbin "baserom.gba", 0x300125, 0x0000043 + +gUnk_08300168:: @ 08300168 + .incbin "baserom.gba", 0x300168, 0x0000239 + +gUnk_083003A1:: @ 083003A1 + .incbin "baserom.gba", 0x3003A1, 0x0000080 + +gUnk_08300421:: @ 08300421 + .incbin "baserom.gba", 0x300421, 0x00002FF + +gUnk_08300720:: @ 08300720 + .incbin "baserom.gba", 0x300720, 0x0000007 + +gUnk_08300727:: @ 08300727 + .incbin "baserom.gba", 0x300727, 0x0000009 + +gUnk_08300730:: @ 08300730 + .incbin "baserom.gba", 0x300730, 0x0000010 + +gUnk_08300740:: @ 08300740 + .incbin "baserom.gba", 0x300740, 0x0000010 + +gUnk_08300750:: @ 08300750 + .incbin "baserom.gba", 0x300750, 0x0000020 + +gUnk_08300770:: @ 08300770 + .incbin "baserom.gba", 0x300770, 0x0000040 + +gUnk_083007B0:: @ 083007B0 + .incbin "baserom.gba", 0x3007B0, 0x0000030 + +gUnk_083007E0:: @ 083007E0 + .incbin "baserom.gba", 0x3007E0, 0x0000028 + +gUnk_08300808:: @ 08300808 + .incbin "baserom.gba", 0x300808, 0x0000108 + +gUnk_08300910:: @ 08300910 + .incbin "baserom.gba", 0x300910, 0x0000104 + +gUnk_08300A14:: @ 08300A14 + .incbin "baserom.gba", 0x300A14, 0x00000ED + +gUnk_08300B01:: @ 08300B01 + .incbin "baserom.gba", 0x300B01, 0x0000560 + +gUnk_08301061:: @ 08301061 + .incbin "baserom.gba", 0x301061, 0x0000B00 + +gUnk_08301B61:: @ 08301B61 + .incbin "baserom.gba", 0x301B61, 0x0000240 + +gUnk_08301DA1:: @ 08301DA1 + .incbin "baserom.gba", 0x301DA1, 0x00001CF + +gUnk_08301F70:: @ 08301F70 + .incbin "baserom.gba", 0x301F70, 0x0000231 + +gUnk_083021A1:: @ 083021A1 + .incbin "baserom.gba", 0x3021A1, 0x0000268 + +gUnk_08302409:: @ 08302409 + .incbin "baserom.gba", 0x302409, 0x0000158 + +gUnk_08302561:: @ 08302561 + .incbin "baserom.gba", 0x302561, 0x0000140 + +gUnk_083026A1:: @ 083026A1 + .incbin "baserom.gba", 0x3026A1, 0x000006F + +gUnk_08302710:: @ 08302710 + .incbin "baserom.gba", 0x302710, 0x00001F5 + +gUnk_08302905:: @ 08302905 + .incbin "baserom.gba", 0x302905, 0x000003B + +gUnk_08302940:: @ 08302940 + .incbin "baserom.gba", 0x302940, 0x0000221 + +gUnk_08302B61:: @ 08302B61 + .incbin "baserom.gba", 0x302B61, 0x00000D6 + +gUnk_08302C37:: @ 08302C37 + .incbin "baserom.gba", 0x302C37, 0x00000D9 + +gUnk_08302D10:: @ 08302D10 + .incbin "baserom.gba", 0x302D10, 0x0000010 + +gUnk_08302D20:: @ 08302D20 + .incbin "baserom.gba", 0x302D20, 0x0000110 + +gUnk_08302E30:: @ 08302E30 + .incbin "baserom.gba", 0x302E30, 0x00000E1 + +gUnk_08302F11:: @ 08302F11 + .incbin "baserom.gba", 0x302F11, 0x00000FF + +gUnk_08303010:: @ 08303010 + .incbin "baserom.gba", 0x303010, 0x0000019 + +gUnk_08303029:: @ 08303029 + .incbin "baserom.gba", 0x303029, 0x0000078 + +gUnk_083030A1:: @ 083030A1 + .incbin "baserom.gba", 0x3030A1, 0x0000300 + +gUnk_083033A1:: @ 083033A1 + .incbin "baserom.gba", 0x3033A1, 0x0000067 + +gUnk_08303408:: @ 08303408 + .incbin "baserom.gba", 0x303408, 0x0000540 + +gUnk_08303948:: @ 08303948 + .incbin "baserom.gba", 0x303948, 0x00002FE + +gUnk_08303C46:: @ 08303C46 + .incbin "baserom.gba", 0x303C46, 0x00000E5 + +gUnk_08303D2B:: @ 08303D2B + .incbin "baserom.gba", 0x303D2B, 0x00002F6 + +gUnk_08304021:: @ 08304021 + .incbin "baserom.gba", 0x304021, 0x0000612 + +gUnk_08304633:: @ 08304633 + .incbin "baserom.gba", 0x304633, 0x0000143 + +gUnk_08304776:: @ 08304776 + .incbin "baserom.gba", 0x304776, 0x00002F2 + +gUnk_08304A68:: @ 08304A68 + .incbin "baserom.gba", 0x304A68, 0x00003F9 + +gUnk_08304E61:: @ 08304E61 + .incbin "baserom.gba", 0x304E61, 0x0000407 + +gUnk_08305268:: @ 08305268 + .incbin "baserom.gba", 0x305268, 0x0000002 + +gUnk_0830526A:: @ 0830526A + .incbin "baserom.gba", 0x30526A, 0x000050B + +gUnk_08305775:: @ 08305775 + .incbin "baserom.gba", 0x305775, 0x00007A0 + +gUnk_08305F15:: @ 08305F15 + .incbin "baserom.gba", 0x305F15, 0x000006E + +gUnk_08305F83:: @ 08305F83 + .incbin "baserom.gba", 0x305F83, 0x00005C5 + +gUnk_08306548:: @ 08306548 + .incbin "baserom.gba", 0x306548, 0x000023B + +gUnk_08306783:: @ 08306783 + .incbin "baserom.gba", 0x306783, 0x00001AD + +gUnk_08306930:: @ 08306930 + .incbin "baserom.gba", 0x306930, 0x0000757 + +gUnk_08307087:: @ 08307087 + .incbin "baserom.gba", 0x307087, 0x00004C8 + +gUnk_0830754F:: @ 0830754F + .incbin "baserom.gba", 0x30754F, 0x000000E + +gUnk_0830755D:: @ 0830755D + .incbin "baserom.gba", 0x30755D, 0x000021A + +gUnk_08307777:: @ 08307777 + .incbin "baserom.gba", 0x307777, 0x0000201 + +gUnk_08307978:: @ 08307978 + .incbin "baserom.gba", 0x307978, 0x000038F + +gUnk_08307D07:: @ 08307D07 + .incbin "baserom.gba", 0x307D07, 0x0000529 + +gUnk_08308230:: @ 08308230 + .incbin "baserom.gba", 0x308230, 0x00004E6 + +gUnk_08308716:: @ 08308716 + .incbin "baserom.gba", 0x308716, 0x00006F3 + +gUnk_08308E09:: @ 08308E09 + .incbin "baserom.gba", 0x308E09, 0x0000817 + +gUnk_08309620:: @ 08309620 + .incbin "baserom.gba", 0x309620, 0x000027A + +gUnk_0830989A:: @ 0830989A + .incbin "baserom.gba", 0x30989A, 0x00004C0 + +gUnk_08309D5A:: @ 08309D5A + .incbin "baserom.gba", 0x309D5A, 0x0000136 + +gUnk_08309E90:: @ 08309E90 + .incbin "baserom.gba", 0x309E90, 0x0000085 + +gUnk_08309F15:: @ 08309F15 + .incbin "baserom.gba", 0x309F15, 0x0000290 + +gUnk_0830A1A5:: @ 0830A1A5 + .incbin "baserom.gba", 0x30A1A5, 0x0000BC6 + +gUnk_0830AD6B:: @ 0830AD6B + .incbin "baserom.gba", 0x30AD6B, 0x000009C + +gUnk_0830AE07:: @ 0830AE07 + .incbin "baserom.gba", 0x30AE07, 0x00001D9 + +gUnk_0830AFE0:: @ 0830AFE0 + .incbin "baserom.gba", 0x30AFE0, 0x0000130 + +gUnk_0830B110:: @ 0830B110 + .incbin "baserom.gba", 0x30B110, 0x000006F + +gUnk_0830B17F:: @ 0830B17F + .incbin "baserom.gba", 0x30B17F, 0x0000137 + +gUnk_0830B2B6:: @ 0830B2B6 + .incbin "baserom.gba", 0x30B2B6, 0x0000062 + +gUnk_0830B318:: @ 0830B318 + .incbin "baserom.gba", 0x30B318, 0x0000090 + +gUnk_0830B3A8:: @ 0830B3A8 + .incbin "baserom.gba", 0x30B3A8, 0x000002C + +gUnk_0830B3D4:: @ 0830B3D4 + .incbin "baserom.gba", 0x30B3D4, 0x00000E0 + +gUnk_0830B4B4:: @ 0830B4B4 + .incbin "baserom.gba", 0x30B4B4, 0x0000005 + +gUnk_0830B4B9:: @ 0830B4B9 + .incbin "baserom.gba", 0x30B4B9, 0x00002F7 + +gUnk_0830B7B0:: @ 0830B7B0 + .incbin "baserom.gba", 0x30B7B0, 0x00000A2 + +gUnk_0830B852:: @ 0830B852 + .incbin "baserom.gba", 0x30B852, 0x000020F + +gUnk_0830BA61:: @ 0830BA61 + .incbin "baserom.gba", 0x30BA61, 0x0000360 + +gUnk_0830BDC1:: @ 0830BDC1 + .incbin "baserom.gba", 0x30BDC1, 0x0000046 + +gUnk_0830BE07:: @ 0830BE07 + .incbin "baserom.gba", 0x30BE07, 0x00000CD + +gUnk_0830BED4:: @ 0830BED4 + .incbin "baserom.gba", 0x30BED4, 0x000009F + +gUnk_0830BF73:: @ 0830BF73 + .incbin "baserom.gba", 0x30BF73, 0x00001D1 + +gUnk_0830C144:: @ 0830C144 + .incbin "baserom.gba", 0x30C144, 0x00006F0 + +gUnk_0830C834:: @ 0830C834 + .incbin "baserom.gba", 0x30C834, 0x00001C0 + +gUnk_0830C9F4:: @ 0830C9F4 + .incbin "baserom.gba", 0x30C9F4, 0x0000013 + +gUnk_0830CA07:: @ 0830CA07 + .incbin "baserom.gba", 0x30CA07, 0x00002E0 + +gUnk_0830CCE7:: @ 0830CCE7 + .incbin "baserom.gba", 0x30CCE7, 0x00002E5 + +gUnk_0830CFCC:: @ 0830CFCC + .incbin "baserom.gba", 0x30CFCC, 0x0000067 + +gUnk_0830D033:: @ 0830D033 + .incbin "baserom.gba", 0x30D033, 0x00002E5 + +gUnk_0830D318:: @ 0830D318 + .incbin "baserom.gba", 0x30D318, 0x0000100 + +gUnk_0830D418:: @ 0830D418 + .incbin "baserom.gba", 0x30D418, 0x00000B6 + +gUnk_0830D4CE:: @ 0830D4CE + .incbin "baserom.gba", 0x30D4CE, 0x0000003 + +gUnk_0830D4D1:: @ 0830D4D1 + .incbin "baserom.gba", 0x30D4D1, 0x000010B + +gUnk_0830D5DC:: @ 0830D5DC + .incbin "baserom.gba", 0x30D5DC, 0x000082C + +gUnk_0830DE08:: @ 0830DE08 + .incbin "baserom.gba", 0x30DE08, 0x0000608 + +gUnk_0830E410:: @ 0830E410 + .incbin "baserom.gba", 0x30E410, 0x0000739 + +gUnk_0830EB49:: @ 0830EB49 + .incbin "baserom.gba", 0x30EB49, 0x00000BA + +gUnk_0830EC03:: @ 0830EC03 + .incbin "baserom.gba", 0x30EC03, 0x0000010 + +gUnk_0830EC13:: @ 0830EC13 + .incbin "baserom.gba", 0x30EC13, 0x00003D4 + +gUnk_0830EFE7:: @ 0830EFE7 + .incbin "baserom.gba", 0x30EFE7, 0x00003FA + +gUnk_0830F3E1:: @ 0830F3E1 + .incbin "baserom.gba", 0x30F3E1, 0x000060B + +gUnk_0830F9EC:: @ 0830F9EC + .incbin "baserom.gba", 0x30F9EC, 0x0000141 + +gUnk_0830FB2D:: @ 0830FB2D + .incbin "baserom.gba", 0x30FB2D, 0x00001B8 + +gUnk_0830FCE5:: @ 0830FCE5 + .incbin "baserom.gba", 0x30FCE5, 0x0000122 + +gUnk_0830FE07:: @ 0830FE07 + .incbin "baserom.gba", 0x30FE07, 0x0000078 + +gUnk_0830FE7F:: @ 0830FE7F + .incbin "baserom.gba", 0x30FE7F, 0x0000016 + +gUnk_0830FE95:: @ 0830FE95 + .incbin "baserom.gba", 0x30FE95, 0x0000059 + +gUnk_0830FEEE:: @ 0830FEEE + .incbin "baserom.gba", 0x30FEEE, 0x0000019 + +gUnk_0830FF07:: @ 0830FF07 + .incbin "baserom.gba", 0x30FF07, 0x000004C + +gUnk_0830FF53:: @ 0830FF53 + .incbin "baserom.gba", 0x30FF53, 0x00000AD + +gUnk_08310000:: @ 08310000 + .incbin "baserom.gba", 0x310000, 0x0000001 + +gUnk_08310001:: @ 08310001 + .incbin "baserom.gba", 0x310001, 0x0000001 + +gUnk_08310002:: @ 08310002 + .incbin "baserom.gba", 0x310002, 0x0000001 + +gUnk_08310003:: @ 08310003 + .incbin "baserom.gba", 0x310003, 0x0000001 + +gUnk_08310004:: @ 08310004 + .incbin "baserom.gba", 0x310004, 0x0000001 + +gUnk_08310005:: @ 08310005 + .incbin "baserom.gba", 0x310005, 0x0000001 + +gUnk_08310006:: @ 08310006 + .incbin "baserom.gba", 0x310006, 0x0000001 + +gUnk_08310007:: @ 08310007 + .incbin "baserom.gba", 0x310007, 0x0000001 + +gUnk_08310008:: @ 08310008 + .incbin "baserom.gba", 0x310008, 0x0000003 + +gUnk_0831000B:: @ 0831000B + .incbin "baserom.gba", 0x31000B, 0x0000003 + +gUnk_0831000E:: @ 0831000E + .incbin "baserom.gba", 0x31000E, 0x0000001 + +gUnk_0831000F:: @ 0831000F + .incbin "baserom.gba", 0x31000F, 0x0000001 + +gUnk_08310010:: @ 08310010 + .incbin "baserom.gba", 0x310010, 0x0000004 + +gUnk_08310014:: @ 08310014 + .incbin "baserom.gba", 0x310014, 0x0000001 + +gUnk_08310015:: @ 08310015 + .incbin "baserom.gba", 0x310015, 0x000000B + +gUnk_08310020:: @ 08310020 + .incbin "baserom.gba", 0x310020, 0x0000003 + +gUnk_08310023:: @ 08310023 + .incbin "baserom.gba", 0x310023, 0x000000D + +gUnk_08310030:: @ 08310030 + .incbin "baserom.gba", 0x310030, 0x0000009 + +gUnk_08310039:: @ 08310039 + .incbin "baserom.gba", 0x310039, 0x000000A + +gUnk_08310043:: @ 08310043 + .incbin "baserom.gba", 0x310043, 0x000000D + +gUnk_08310050:: @ 08310050 + .incbin "baserom.gba", 0x310050, 0x0000003 + +gUnk_08310053:: @ 08310053 + .incbin "baserom.gba", 0x310053, 0x0000007 + +gUnk_0831005A:: @ 0831005A + .incbin "baserom.gba", 0x31005A, 0x0000002 + +gUnk_0831005C:: @ 0831005C + .incbin "baserom.gba", 0x31005C, 0x0000004 + +gUnk_08310060:: @ 08310060 + .incbin "baserom.gba", 0x310060, 0x0000008 + +gUnk_08310068:: @ 08310068 + .incbin "baserom.gba", 0x310068, 0x0000004 + +gUnk_0831006C:: @ 0831006C + .incbin "baserom.gba", 0x31006C, 0x0000006 + +gUnk_08310072:: @ 08310072 + .incbin "baserom.gba", 0x310072, 0x0000006 + +gUnk_08310078:: @ 08310078 + .incbin "baserom.gba", 0x310078, 0x0000007 + +gUnk_0831007F:: @ 0831007F + .incbin "baserom.gba", 0x31007F, 0x0000001 + +gUnk_08310080:: @ 08310080 + .incbin "baserom.gba", 0x310080, 0x0000014 + +gUnk_08310094:: @ 08310094 + .incbin "baserom.gba", 0x310094, 0x0000004 + +gUnk_08310098:: @ 08310098 + .incbin "baserom.gba", 0x310098, 0x0000035 + +gUnk_083100CD:: @ 083100CD + .incbin "baserom.gba", 0x3100CD, 0x000000B + +gUnk_083100D8:: @ 083100D8 + .incbin "baserom.gba", 0x3100D8, 0x000000A + +gUnk_083100E2:: @ 083100E2 + .incbin "baserom.gba", 0x3100E2, 0x0000029 + +gUnk_0831010B:: @ 0831010B + .incbin "baserom.gba", 0x31010B, 0x000006D + +gUnk_08310178:: @ 08310178 + .incbin "baserom.gba", 0x310178, 0x0000020 + +gUnk_08310198:: @ 08310198 + .incbin "baserom.gba", 0x310198, 0x0000032 + +gUnk_083101CA:: @ 083101CA + .incbin "baserom.gba", 0x3101CA, 0x000005E + +gUnk_08310228:: @ 08310228 + .incbin "baserom.gba", 0x310228, 0x0000058 + +gUnk_08310280:: @ 08310280 + .incbin "baserom.gba", 0x310280, 0x0000008 + +gUnk_08310288:: @ 08310288 + .incbin "baserom.gba", 0x310288, 0x0000010 + +gUnk_08310298:: @ 08310298 + .incbin "baserom.gba", 0x310298, 0x0000068 + +gUnk_08310300:: @ 08310300 + .incbin "baserom.gba", 0x310300, 0x0000050 + +gUnk_08310350:: @ 08310350 + .incbin "baserom.gba", 0x310350, 0x00000B2 + +gUnk_08310402:: @ 08310402 + .incbin "baserom.gba", 0x310402, 0x0000032 + +gUnk_08310434:: @ 08310434 + .incbin "baserom.gba", 0x310434, 0x0000003 + +gUnk_08310437:: @ 08310437 + .incbin "baserom.gba", 0x310437, 0x000000C + +gUnk_08310443:: @ 08310443 + .incbin "baserom.gba", 0x310443, 0x0000002 + +gUnk_08310445:: @ 08310445 + .incbin "baserom.gba", 0x310445, 0x0000004 + +gUnk_08310449:: @ 08310449 + .incbin "baserom.gba", 0x310449, 0x0000001 + +gUnk_0831044A:: @ 0831044A + .incbin "baserom.gba", 0x31044A, 0x0000001 + +gUnk_0831044B:: @ 0831044B + .incbin "baserom.gba", 0x31044B, 0x000000E + +gUnk_08310459:: @ 08310459 + .incbin "baserom.gba", 0x310459, 0x000000B + +gUnk_08310464:: @ 08310464 + .incbin "baserom.gba", 0x310464, 0x000001A + +gUnk_0831047E:: @ 0831047E + .incbin "baserom.gba", 0x31047E, 0x0000009 + +gUnk_08310487:: @ 08310487 + .incbin "baserom.gba", 0x310487, 0x0000001 + +gUnk_08310488:: @ 08310488 + .incbin "baserom.gba", 0x310488, 0x00002A8 + +gUnk_08310730:: @ 08310730 + .incbin "baserom.gba", 0x310730, 0x00000D0 + +gUnk_08310800:: @ 08310800 + .incbin "baserom.gba", 0x310800, 0x0000001 + +gUnk_08310801:: @ 08310801 + .incbin "baserom.gba", 0x310801, 0x0000003 + +gUnk_08310804:: @ 08310804 + .incbin "baserom.gba", 0x310804, 0x0000001 + +gUnk_08310805:: @ 08310805 + .incbin "baserom.gba", 0x310805, 0x0000001 + +gUnk_08310806:: @ 08310806 + .incbin "baserom.gba", 0x310806, 0x0000001 + +gUnk_08310807:: @ 08310807 + .incbin "baserom.gba", 0x310807, 0x0000002 + +gUnk_08310809:: @ 08310809 + .incbin "baserom.gba", 0x310809, 0x0000001 + +gUnk_0831080A:: @ 0831080A + .incbin "baserom.gba", 0x31080A, 0x0000003 + +gUnk_0831080D:: @ 0831080D + .incbin "baserom.gba", 0x31080D, 0x0000023 + +gUnk_08310830:: @ 08310830 + .incbin "baserom.gba", 0x310830, 0x00007BB + +gUnk_08310FEB:: @ 08310FEB + .incbin "baserom.gba", 0x310FEB, 0x0000218 + +gUnk_08311203:: @ 08311203 + .incbin "baserom.gba", 0x311203, 0x0000351 + +gUnk_08311554:: @ 08311554 + .incbin "baserom.gba", 0x311554, 0x00000BA + +gUnk_0831160E:: @ 0831160E + .incbin "baserom.gba", 0x31160E, 0x0000123 + +gUnk_08311731:: @ 08311731 + .incbin "baserom.gba", 0x311731, 0x00005DF + +gUnk_08311D10:: @ 08311D10 + .incbin "baserom.gba", 0x311D10, 0x00002F0 + +gUnk_08312000:: @ 08312000 + .incbin "baserom.gba", 0x312000, 0x000012D + +gUnk_0831212D:: @ 0831212D + .incbin "baserom.gba", 0x31212D, 0x00009D2 + +gUnk_08312AFF:: @ 08312AFF + .incbin "baserom.gba", 0x312AFF, 0x0000630 + +gUnk_0831312F:: @ 0831312F + .incbin "baserom.gba", 0x31312F, 0x00000DA + +gUnk_08313209:: @ 08313209 + .incbin "baserom.gba", 0x313209, 0x000024C + +gUnk_08313455:: @ 08313455 + .incbin "baserom.gba", 0x313455, 0x00002EF + +gUnk_08313744:: @ 08313744 + .incbin "baserom.gba", 0x313744, 0x00001D8 + +gUnk_0831391C:: @ 0831391C + .incbin "baserom.gba", 0x31391C, 0x00000E4 + +gUnk_08313A00:: @ 08313A00 + .incbin "baserom.gba", 0x313A00, 0x0000010 + +gUnk_08313A10:: @ 08313A10 + .incbin "baserom.gba", 0x313A10, 0x0000409 + +gUnk_08313E19:: @ 08313E19 + .incbin "baserom.gba", 0x313E19, 0x00005E8 + +gUnk_08314401:: @ 08314401 + .incbin "baserom.gba", 0x314401, 0x0000132 + +gUnk_08314533:: @ 08314533 + .incbin "baserom.gba", 0x314533, 0x0000220 + +gUnk_08314753:: @ 08314753 + .incbin "baserom.gba", 0x314753, 0x00005F2 + +gUnk_08314D45:: @ 08314D45 + .incbin "baserom.gba", 0x314D45, 0x00005FC + +gUnk_08315341:: @ 08315341 + .incbin "baserom.gba", 0x315341, 0x0000131 + +gUnk_08315472:: @ 08315472 + .incbin "baserom.gba", 0x315472, 0x00005FF + +gUnk_08315A71:: @ 08315A71 + .incbin "baserom.gba", 0x315A71, 0x00004FB + +gUnk_08315F6C:: @ 08315F6C + .incbin "baserom.gba", 0x315F6C, 0x0001B94 + +gUnk_08317B00:: @ 08317B00 + .incbin "baserom.gba", 0x317B00, 0x00026A1 + +gUnk_0831A1A1:: @ 0831A1A1 + .incbin "baserom.gba", 0x31A1A1, 0x0001993 + +gUnk_0831BB34:: @ 0831BB34 + .incbin "baserom.gba", 0x31BB34, 0x00009FB + +gUnk_0831C52F:: @ 0831C52F + .incbin "baserom.gba", 0x31C52F, 0x00012C6 + +gUnk_0831D7F5:: @ 0831D7F5 + .incbin "baserom.gba", 0x31D7F5, 0x0000720 + +gUnk_0831DF15:: @ 0831DF15 + .incbin "baserom.gba", 0x31DF15, 0x0000BF2 + +gUnk_0831EB07:: @ 0831EB07 + .incbin "baserom.gba", 0x31EB07, 0x00003DB + +gUnk_0831EEE2:: @ 0831EEE2 + .incbin "baserom.gba", 0x31EEE2, 0x000002B + +gUnk_0831EF0D:: @ 0831EF0D + .incbin "baserom.gba", 0x31EF0D, 0x00009E8 + +gUnk_0831F8F5:: @ 0831F8F5 + .incbin "baserom.gba", 0x31F8F5, 0x000069B + +gUnk_0831FF90:: @ 0831FF90 + .incbin "baserom.gba", 0x31FF90, 0x0000042 + +gUnk_0831FFD2:: @ 0831FFD2 + .incbin "baserom.gba", 0x31FFD2, 0x000000A + +gUnk_0831FFDC:: @ 0831FFDC + .incbin "baserom.gba", 0x31FFDC, 0x0000020 + +gUnk_0831FFFC:: @ 0831FFFC + .incbin "baserom.gba", 0x31FFFC, 0x0000004 + +gUnk_08320000:: @ 08320000 + .incbin "baserom.gba", 0x320000, 0x0000131 + +gUnk_08320131:: @ 08320131 + .incbin "baserom.gba", 0x320131, 0x00001CF + +gUnk_08320300:: @ 08320300 + .incbin "baserom.gba", 0x320300, 0x0000030 + +gUnk_08320330:: @ 08320330 + .incbin "baserom.gba", 0x320330, 0x00011AF + +gUnk_083214DF:: @ 083214DF + .incbin "baserom.gba", 0x3214DF, 0x0000921 + +gUnk_08321E00:: @ 08321E00 + .incbin "baserom.gba", 0x321E00, 0x00001EF + +gUnk_08321FEF:: @ 08321FEF + .incbin "baserom.gba", 0x321FEF, 0x0000114 + +gUnk_08322103:: @ 08322103 + .incbin "baserom.gba", 0x322103, 0x0000134 + +gUnk_08322237:: @ 08322237 + .incbin "baserom.gba", 0x322237, 0x0000062 + +gUnk_08322299:: @ 08322299 + .incbin "baserom.gba", 0x322299, 0x0000189 + +gUnk_08322422:: @ 08322422 + .incbin "baserom.gba", 0x322422, 0x0000034 + +gUnk_08322456:: @ 08322456 + .incbin "baserom.gba", 0x322456, 0x00001A2 + +gUnk_083225F8:: @ 083225F8 + .incbin "baserom.gba", 0x3225F8, 0x0000519 + +gUnk_08322B11:: @ 08322B11 + .incbin "baserom.gba", 0x322B11, 0x0000B0B + +gUnk_0832361C:: @ 0832361C + .incbin "baserom.gba", 0x32361C, 0x0000B23 + +gUnk_0832413F:: @ 0832413F + .incbin "baserom.gba", 0x32413F, 0x00008F8 + +gUnk_08324A37:: @ 08324A37 + .incbin "baserom.gba", 0x324A37, 0x00000AD + +gUnk_08324AE4:: @ 08324AE4 + .incbin "baserom.gba", 0x324AE4, 0x000018F + +gUnk_08324C73:: @ 08324C73 + .incbin "baserom.gba", 0x324C73, 0x00007FA + +gUnk_0832546D:: @ 0832546D + .incbin "baserom.gba", 0x32546D, 0x000041B + +gUnk_08325888:: @ 08325888 + .incbin "baserom.gba", 0x325888, 0x00010E9 + +gUnk_08326971:: @ 08326971 + .incbin "baserom.gba", 0x326971, 0x0002C90 + +gUnk_08329601:: @ 08329601 + .incbin "baserom.gba", 0x329601, 0x00053C2 + +gUnk_0832E9C3:: @ 0832E9C3 + .incbin "baserom.gba", 0x32E9C3, 0x0000540 + +gUnk_0832EF03:: @ 0832EF03 + .incbin "baserom.gba", 0x32EF03, 0x0000733 + +gUnk_0832F636:: @ 0832F636 + .incbin "baserom.gba", 0x32F636, 0x00005CA + +gUnk_0832FC00:: @ 0832FC00 + .incbin "baserom.gba", 0x32FC00, 0x00002EA + +gUnk_0832FEEA:: @ 0832FEEA + .incbin "baserom.gba", 0x32FEEA, 0x0000104 + +gUnk_0832FFEE:: @ 0832FFEE + .incbin "baserom.gba", 0x32FFEE, 0x0000055 + +gUnk_08330043:: @ 08330043 + .incbin "baserom.gba", 0x330043, 0x00000C4 + +gUnk_08330107:: @ 08330107 + .incbin "baserom.gba", 0x330107, 0x0000004 + +gUnk_0833010B:: @ 0833010B + .incbin "baserom.gba", 0x33010B, 0x0000119 + +gUnk_08330224:: @ 08330224 + .incbin "baserom.gba", 0x330224, 0x0000210 + +gUnk_08330434:: @ 08330434 + .incbin "baserom.gba", 0x330434, 0x00008B5 + +gUnk_08330CE9:: @ 08330CE9 + .incbin "baserom.gba", 0x330CE9, 0x0000213 + +gUnk_08330EFC:: @ 08330EFC + .incbin "baserom.gba", 0x330EFC, 0x0000007 + +gUnk_08330F03:: @ 08330F03 + .incbin "baserom.gba", 0x330F03, 0x0000C05 + +gUnk_08331B08:: @ 08331B08 + .incbin "baserom.gba", 0x331B08, 0x0000637 + +gUnk_0833213F:: @ 0833213F + .incbin "baserom.gba", 0x33213F, 0x0000049 + +gUnk_08332188:: @ 08332188 + .incbin "baserom.gba", 0x332188, 0x0000692 + +gUnk_0833281A:: @ 0833281A + .incbin "baserom.gba", 0x33281A, 0x0000913 + +gUnk_0833312D:: @ 0833312D + .incbin "baserom.gba", 0x33312D, 0x0000205 + +gUnk_08333332:: @ 08333332 + .incbin "baserom.gba", 0x333332, 0x0000001 + +gUnk_08333333:: @ 08333333 + .incbin "baserom.gba", 0x333333, 0x0000008 + +gUnk_0833333B:: @ 0833333B + .incbin "baserom.gba", 0x33333B, 0x00000F2 + +gUnk_0833342D:: @ 0833342D + .incbin "baserom.gba", 0x33342D, 0x00002F1 + +gUnk_0833371E:: @ 0833371E + .incbin "baserom.gba", 0x33371E, 0x00001F0 + +gUnk_0833390E:: @ 0833390E + .incbin "baserom.gba", 0x33390E, 0x0000122 + +gUnk_08333A30:: @ 08333A30 + .incbin "baserom.gba", 0x333A30, 0x00005E8 + +gUnk_08334018:: @ 08334018 + .incbin "baserom.gba", 0x334018, 0x00003E9 + +gUnk_08334401:: @ 08334401 + .incbin "baserom.gba", 0x334401, 0x000001F + +gUnk_08334420:: @ 08334420 + .incbin "baserom.gba", 0x334420, 0x00000BD + +gUnk_083344DD:: @ 083344DD + .incbin "baserom.gba", 0x3344DD, 0x0000558 + +gUnk_08334A35:: @ 08334A35 + .incbin "baserom.gba", 0x334A35, 0x0000646 + +gUnk_0833507B:: @ 0833507B + .incbin "baserom.gba", 0x33507B, 0x000054F + +gUnk_083355CA:: @ 083355CA + .incbin "baserom.gba", 0x3355CA, 0x0000CB3 + +gUnk_0833627D:: @ 0833627D + .incbin "baserom.gba", 0x33627D, 0x0000CF7 + +gUnk_08336F74:: @ 08336F74 + .incbin "baserom.gba", 0x336F74, 0x000008F + +gUnk_08337003:: @ 08337003 + .incbin "baserom.gba", 0x337003, 0x00002FD + +gUnk_08337300:: @ 08337300 + .incbin "baserom.gba", 0x337300, 0x0000C03 + +gUnk_08337F03:: @ 08337F03 + .incbin "baserom.gba", 0x337F03, 0x0000330 + +gUnk_08338233:: @ 08338233 + .incbin "baserom.gba", 0x338233, 0x0000650 + +gUnk_08338883:: @ 08338883 + .incbin "baserom.gba", 0x338883, 0x0001217 + +gUnk_08339A9A:: @ 08339A9A + .incbin "baserom.gba", 0x339A9A, 0x0000133 + +gUnk_08339BCD:: @ 08339BCD + .incbin "baserom.gba", 0x339BCD, 0x00009DC + +gUnk_0833A5A9:: @ 0833A5A9 + .incbin "baserom.gba", 0x33A5A9, 0x0000E5D + +gUnk_0833B406:: @ 0833B406 + .incbin "baserom.gba", 0x33B406, 0x0000706 + +gUnk_0833BB0C:: @ 0833BB0C + .incbin "baserom.gba", 0x33BB0C, 0x00033F6 + +gUnk_0833EF02:: @ 0833EF02 + .incbin "baserom.gba", 0x33EF02, 0x0000509 + +gUnk_0833F40B:: @ 0833F40B + .incbin "baserom.gba", 0x33F40B, 0x0000B2C + +gUnk_0833FF37:: @ 0833FF37 + .incbin "baserom.gba", 0x33FF37, 0x00003C9 + +gUnk_08340300:: @ 08340300 + .incbin "baserom.gba", 0x340300, 0x0000507 + +gUnk_08340807:: @ 08340807 + .incbin "baserom.gba", 0x340807, 0x00008F8 + +gUnk_083410FF:: @ 083410FF + .incbin "baserom.gba", 0x3410FF, 0x0000F48 + +gUnk_08342047:: @ 08342047 + .incbin "baserom.gba", 0x342047, 0x00003B2 + +gUnk_083423F9:: @ 083423F9 + .incbin "baserom.gba", 0x3423F9, 0x00000F1 + +gUnk_083424EA:: @ 083424EA + .incbin "baserom.gba", 0x3424EA, 0x0000D2E + +gUnk_08343218:: @ 08343218 + .incbin "baserom.gba", 0x343218, 0x00000F5 + +gUnk_0834330D:: @ 0834330D + .incbin "baserom.gba", 0x34330D, 0x0000024 + +gUnk_08343331:: @ 08343331 + .incbin "baserom.gba", 0x343331, 0x0000EE0 + +gUnk_08344211:: @ 08344211 + .incbin "baserom.gba", 0x344211, 0x0000233 + +gUnk_08344444:: @ 08344444 + .incbin "baserom.gba", 0x344444, 0x0000505 + +gUnk_08344949:: @ 08344949 + .incbin "baserom.gba", 0x344949, 0x000012E + +gUnk_08344A77:: @ 08344A77 + .incbin "baserom.gba", 0x344A77, 0x00008E5 + +gUnk_0834535C:: @ 0834535C + .incbin "baserom.gba", 0x34535C, 0x000031B + +gUnk_08345677:: @ 08345677 + .incbin "baserom.gba", 0x345677, 0x0000325 + +gUnk_0834599C:: @ 0834599C + .incbin "baserom.gba", 0x34599C, 0x0000575 + +gUnk_08345F11:: @ 08345F11 + .incbin "baserom.gba", 0x345F11, 0x0000617 + +gUnk_08346528:: @ 08346528 + .incbin "baserom.gba", 0x346528, 0x000012D + +gUnk_08346655:: @ 08346655 + .incbin "baserom.gba", 0x346655, 0x00007E0 + +gUnk_08346E35:: @ 08346E35 + .incbin "baserom.gba", 0x346E35, 0x000013B + +gUnk_08346F70:: @ 08346F70 + .incbin "baserom.gba", 0x346F70, 0x00007F7 + +gUnk_08347767:: @ 08347767 + .incbin "baserom.gba", 0x347767, 0x0000055 + +gUnk_083477BC:: @ 083477BC + .incbin "baserom.gba", 0x3477BC, 0x0003C5C + +gUnk_0834B418:: @ 0834B418 + .incbin "baserom.gba", 0x34B418, 0x0002D8B + +gUnk_0834E1A3:: @ 0834E1A3 + .incbin "baserom.gba", 0x34E1A3, 0x00006E6 + +gUnk_0834E889:: @ 0834E889 + .incbin "baserom.gba", 0x34E889, 0x0000A37 + +gUnk_0834F2C0:: @ 0834F2C0 + .incbin "baserom.gba", 0x34F2C0, 0x0000D50 + +gUnk_08350010:: @ 08350010 + .incbin "baserom.gba", 0x350010, 0x000003A + +gUnk_0835004A:: @ 0835004A + .incbin "baserom.gba", 0x35004A, 0x00002B6 + +gUnk_08350300:: @ 08350300 + .incbin "baserom.gba", 0x350300, 0x0000E3B + +gUnk_0835113B:: @ 0835113B + .incbin "baserom.gba", 0x35113B, 0x00008CB + +gUnk_08351A06:: @ 08351A06 + .incbin "baserom.gba", 0x351A06, 0x0001A93 + +gUnk_08353499:: @ 08353499 + .incbin "baserom.gba", 0x353499, 0x0000294 + +gUnk_0835372D:: @ 0835372D + .incbin "baserom.gba", 0x35372D, 0x00001E6 + +gUnk_08353913:: @ 08353913 + .incbin "baserom.gba", 0x353913, 0x0000705 + +gUnk_08354018:: @ 08354018 + .incbin "baserom.gba", 0x354018, 0x0000317 + +gUnk_0835432F:: @ 0835432F + .incbin "baserom.gba", 0x35432F, 0x000090A + +gUnk_08354C39:: @ 08354C39 + .incbin "baserom.gba", 0x354C39, 0x00007F6 + +gUnk_0835542F:: @ 0835542F + .incbin "baserom.gba", 0x35542F, 0x0000014 + +gUnk_08355443:: @ 08355443 + .incbin "baserom.gba", 0x355443, 0x0000234 + +gUnk_08355677:: @ 08355677 + .incbin "baserom.gba", 0x355677, 0x00009DE + +gUnk_08356055:: @ 08356055 + .incbin "baserom.gba", 0x356055, 0x0000526 + +gUnk_0835657B:: @ 0835657B + .incbin "baserom.gba", 0x35657B, 0x0001197 + +gUnk_08357712:: @ 08357712 + .incbin "baserom.gba", 0x357712, 0x0007B10 + +gUnk_0835F222:: @ 0835F222 + .incbin "baserom.gba", 0x35F222, 0x0000E9B + +gUnk_083600BD:: @ 083600BD + .incbin "baserom.gba", 0x3600BD, 0x0000410 + +gUnk_083604CD:: @ 083604CD + .incbin "baserom.gba", 0x3604CD, 0x0000053 + +gUnk_08360520:: @ 08360520 + .incbin "baserom.gba", 0x360520, 0x00003A0 + +gUnk_083608C0:: @ 083608C0 + .incbin "baserom.gba", 0x3608C0, 0x0001AF1 + +gUnk_083623B1:: @ 083623B1 + .incbin "baserom.gba", 0x3623B1, 0x0000639 + +gUnk_083629EA:: @ 083629EA + .incbin "baserom.gba", 0x3629EA, 0x0000128 + +gUnk_08362B12:: @ 08362B12 + .incbin "baserom.gba", 0x362B12, 0x0000001 + +gUnk_08362B13:: @ 08362B13 + .incbin "baserom.gba", 0x362B13, 0x00003F4 + +gUnk_08362F07:: @ 08362F07 + .incbin "baserom.gba", 0x362F07, 0x000140A + +gUnk_08364311:: @ 08364311 + .incbin "baserom.gba", 0x364311, 0x0000020 + +gUnk_08364331:: @ 08364331 + .incbin "baserom.gba", 0x364331, 0x000051C + +gUnk_0836484D:: @ 0836484D + .incbin "baserom.gba", 0x36484D, 0x00007E7 + +gUnk_08365034:: @ 08365034 + .incbin "baserom.gba", 0x365034, 0x00004EF + +gUnk_08365523:: @ 08365523 + .incbin "baserom.gba", 0x365523, 0x000013E + +gUnk_08365661:: @ 08365661 + .incbin "baserom.gba", 0x365661, 0x0000E16 + +gUnk_08366477:: @ 08366477 + .incbin "baserom.gba", 0x366477, 0x0006B6C + +gUnk_0836CFE3:: @ 0836CFE3 + .incbin "baserom.gba", 0x36CFE3, 0x0001E60 + +gUnk_0836EE43:: @ 0836EE43 + .incbin "baserom.gba", 0x36EE43, 0x00011CE + +gUnk_08370011:: @ 08370011 + .incbin "baserom.gba", 0x370011, 0x00005FF + +gUnk_08370610:: @ 08370610 + .incbin "baserom.gba", 0x370610, 0x0000701 + +gUnk_08370D11:: @ 08370D11 + .incbin "baserom.gba", 0x370D11, 0x0001404 + +gUnk_08372115:: @ 08372115 + .incbin "baserom.gba", 0x372115, 0x00019FB + +gUnk_08373B10:: @ 08373B10 + .incbin "baserom.gba", 0x373B10, 0x000131A + +gUnk_08374E2A:: @ 08374E2A + .incbin "baserom.gba", 0x374E2A, 0x00001D6 + +gUnk_08375000:: @ 08375000 + .incbin "baserom.gba", 0x375000, 0x0001841 + +gUnk_08376841:: @ 08376841 + .incbin "baserom.gba", 0x376841, 0x00066F7 + +gUnk_0837CF38:: @ 0837CF38 + .incbin "baserom.gba", 0x37CF38, 0x00012CE + +gUnk_0837E206:: @ 0837E206 + .incbin "baserom.gba", 0x37E206, 0x0001DFA + +gUnk_08380000:: @ 08380000 + .incbin "baserom.gba", 0x380000, 0x0000019 + +gUnk_08380019:: @ 08380019 + .incbin "baserom.gba", 0x380019, 0x0000023 + +gUnk_0838003C:: @ 0838003C + .incbin "baserom.gba", 0x38003C, 0x000001E + +gUnk_0838005A:: @ 0838005A + .incbin "baserom.gba", 0x38005A, 0x000001E + +gUnk_08380078:: @ 08380078 + .incbin "baserom.gba", 0x380078, 0x000007F + +gUnk_083800F7:: @ 083800F7 + .incbin "baserom.gba", 0x3800F7, 0x000030A + +gUnk_08380401:: @ 08380401 + .incbin "baserom.gba", 0x380401, 0x0000001 + +gUnk_08380402:: @ 08380402 + .incbin "baserom.gba", 0x380402, 0x0000057 + +gUnk_08380459:: @ 08380459 + .incbin "baserom.gba", 0x380459, 0x0000025 + +gUnk_0838047E:: @ 0838047E + .incbin "baserom.gba", 0x38047E, 0x0000009 + +gUnk_08380487:: @ 08380487 + .incbin "baserom.gba", 0x380487, 0x0000001 + +gUnk_08380488:: @ 08380488 + .incbin "baserom.gba", 0x380488, 0x0000380 + +gUnk_08380808:: @ 08380808 + .incbin "baserom.gba", 0x380808, 0x0000007 + +gUnk_0838080F:: @ 0838080F + .incbin "baserom.gba", 0x38080F, 0x0000152 + +gUnk_08380961:: @ 08380961 + .incbin "baserom.gba", 0x380961, 0x00005A8 + +gUnk_08380F09:: @ 08380F09 + .incbin "baserom.gba", 0x380F09, 0x00004DD + +gUnk_083813E6:: @ 083813E6 + .incbin "baserom.gba", 0x3813E6, 0x0001048 + +gUnk_0838242E:: @ 0838242E + .incbin "baserom.gba", 0x38242E, 0x00008E6 + +gUnk_08382D14:: @ 08382D14 + .incbin "baserom.gba", 0x382D14, 0x00008D5 + +gUnk_083835E9:: @ 083835E9 + .incbin "baserom.gba", 0x3835E9, 0x0000517 + +gUnk_08383B00:: @ 08383B00 + .incbin "baserom.gba", 0x383B00, 0x0000122 + +gUnk_08383C22:: @ 08383C22 + .incbin "baserom.gba", 0x383C22, 0x00004DE + +gUnk_08384100:: @ 08384100 + .incbin "baserom.gba", 0x384100, 0x0000341 + +gUnk_08384441:: @ 08384441 + .incbin "baserom.gba", 0x384441, 0x0000DC3 + +gUnk_08385204:: @ 08385204 + .incbin "baserom.gba", 0x385204, 0x0000B6B + +gUnk_08385D6F:: @ 08385D6F + .incbin "baserom.gba", 0x385D6F, 0x00006FB + +gUnk_0838646A:: @ 0838646A + .incbin "baserom.gba", 0x38646A, 0x000030C + +gUnk_08386776:: @ 08386776 + .incbin "baserom.gba", 0x386776, 0x0009889 + +gUnk_0838FFFF:: @ 0838FFFF + .incbin "baserom.gba", 0x38FFFF, 0x0000002 + +gUnk_08390001:: @ 08390001 + .incbin "baserom.gba", 0x390001, 0x00002DB + +gUnk_083902DC:: @ 083902DC + .incbin "baserom.gba", 0x3902DC, 0x00003A4 + +gUnk_08390680:: @ 08390680 + .incbin "baserom.gba", 0x390680, 0x0000180 + +gUnk_08390800:: @ 08390800 + .incbin "baserom.gba", 0x390800, 0x0000706 + +gUnk_08390F06:: @ 08390F06 + .incbin "baserom.gba", 0x390F06, 0x00014CE + +gUnk_083923D4:: @ 083923D4 + .incbin "baserom.gba", 0x3923D4, 0x000084A + +gUnk_08392C1E:: @ 08392C1E + .incbin "baserom.gba", 0x392C1E, 0x0001011 + +gUnk_08393C2F:: @ 08393C2F + .incbin "baserom.gba", 0x393C2F, 0x00004D1 + +gUnk_08394100:: @ 08394100 + .incbin "baserom.gba", 0x394100, 0x0001C00 + +gUnk_08395D00:: @ 08395D00 + .incbin "baserom.gba", 0x395D00, 0x000077B + +gUnk_0839647B:: @ 0839647B + .incbin "baserom.gba", 0x39647B, 0x0000303 + +gUnk_0839677E:: @ 0839677E + .incbin "baserom.gba", 0x39677E, 0x000870E + +gUnk_0839EE8C:: @ 0839EE8C + .incbin "baserom.gba", 0x39EE8C, 0x0000001 + +gUnk_0839EE8D:: @ 0839EE8D + .incbin "baserom.gba", 0x39EE8D, 0x000127A + +gUnk_083A0107:: @ 083A0107 + .incbin "baserom.gba", 0x3A0107, 0x0000669 + +gUnk_083A0770:: @ 083A0770 + .incbin "baserom.gba", 0x3A0770, 0x0003990 + +gUnk_083A4100:: @ 083A4100 + .incbin "baserom.gba", 0x3A4100, 0x0003D1D + +gUnk_083A7E1D:: @ 083A7E1D + .incbin "baserom.gba", 0x3A7E1D, 0x0002253 + +gUnk_083AA070:: @ 083AA070 + .incbin "baserom.gba", 0x3AA070, 0x0005F90 + +gUnk_083B0000:: @ 083B0000 + .incbin "baserom.gba", 0x3B0000, 0x0000001 + +gUnk_083B0001:: @ 083B0001 + .incbin "baserom.gba", 0x3B0001, 0x0000007 + +gUnk_083B0008:: @ 083B0008 + .incbin "baserom.gba", 0x3B0008, 0x0000178 + +gUnk_083B0180:: @ 083B0180 + .incbin "baserom.gba", 0x3B0180, 0x000069E + +gUnk_083B081E:: @ 083B081E + .incbin "baserom.gba", 0x3B081E, 0x000001C + +gUnk_083B083A:: @ 083B083A + .incbin "baserom.gba", 0x3B083A, 0x00006CC + +gUnk_083B0F06:: @ 083B0F06 + .incbin "baserom.gba", 0x3B0F06, 0x00012E0 + +gUnk_083B21E6:: @ 083B21E6 + .incbin "baserom.gba", 0x3B21E6, 0x0000E3E + +gUnk_083B3024:: @ 083B3024 + .incbin "baserom.gba", 0x3B3024, 0x00001DD + +gUnk_083B3201:: @ 083B3201 + .incbin "baserom.gba", 0x3B3201, 0x000061F + +gUnk_083B3820:: @ 083B3820 + .incbin "baserom.gba", 0x3B3820, 0x00008E0 + +gUnk_083B4100:: @ 083B4100 + .incbin "baserom.gba", 0x3B4100, 0x000024B + +gUnk_083B434B:: @ 083B434B + .incbin "baserom.gba", 0x3B434B, 0x0000074 + +gUnk_083B43BF:: @ 083B43BF + .incbin "baserom.gba", 0x3B43BF, 0x00024B8 + +gUnk_083B6877:: @ 083B6877 + .incbin "baserom.gba", 0x3B6877, 0x0009693 + +gUnk_083BFF0A:: @ 083BFF0A + .incbin "baserom.gba", 0x3BFF0A, 0x00000F6 + +gUnk_083C0000:: @ 083C0000 + .incbin "baserom.gba", 0x3C0000, 0x0000001 + +gUnk_083C0001:: @ 083C0001 + .incbin "baserom.gba", 0x3C0001, 0x000000B + +gUnk_083C000C:: @ 083C000C + .incbin "baserom.gba", 0x3C000C, 0x00013F4 + +gUnk_083C1400:: @ 083C1400 + .incbin "baserom.gba", 0x3C1400, 0x0000841 + +gUnk_083C1C41:: @ 083C1C41 + .incbin "baserom.gba", 0x3C1C41, 0x00009A8 + +gUnk_083C25E9:: @ 083C25E9 + .incbin "baserom.gba", 0x3C25E9, 0x00005D9 + +gUnk_083C2BC2:: @ 083C2BC2 + .incbin "baserom.gba", 0x3C2BC2, 0x0000620 + +gUnk_083C31E2:: @ 083C31E2 + .incbin "baserom.gba", 0x3C31E2, 0x0000968 + +gUnk_083C3B4A:: @ 083C3B4A + .incbin "baserom.gba", 0x3C3B4A, 0x00004B6 + +gUnk_083C4000:: @ 083C4000 + .incbin "baserom.gba", 0x3C4000, 0x0002236 + +gUnk_083C6236:: @ 083C6236 + .incbin "baserom.gba", 0x3C6236, 0x0000D44 + +gUnk_083C6F7A:: @ 083C6F7A + .incbin "baserom.gba", 0x3C6F7A, 0x00030A2 + +gUnk_083CA01C:: @ 083CA01C + .incbin "baserom.gba", 0x3CA01C, 0x00040BD + +gUnk_083CE0D9:: @ 083CE0D9 + .incbin "baserom.gba", 0x3CE0D9, 0x0001F27 + +gUnk_083D0000:: @ 083D0000 + .incbin "baserom.gba", 0x3D0000, 0x0000055 + +gUnk_083D0055:: @ 083D0055 + .incbin "baserom.gba", 0x3D0055, 0x000042B + +gUnk_083D0480:: @ 083D0480 + .incbin "baserom.gba", 0x3D0480, 0x00003BC + +gUnk_083D083C:: @ 083D083C + .incbin "baserom.gba", 0x3D083C, 0x00037C4 + +gUnk_083D4000:: @ 083D4000 + .incbin "baserom.gba", 0x3D4000, 0x000005C + +gUnk_083D405C:: @ 083D405C + .incbin "baserom.gba", 0x3D405C, 0x0001B06 + +gUnk_083D5B62:: @ 083D5B62 + .incbin "baserom.gba", 0x3D5B62, 0x000249E + +gUnk_083D8000:: @ 083D8000 + .incbin "baserom.gba", 0x3D8000, 0x0008000 + +gUnk_083E0000:: @ 083E0000 + .incbin "baserom.gba", 0x3E0000, 0x0000001 + +gUnk_083E0001:: @ 083E0001 + .incbin "baserom.gba", 0x3E0001, 0x0000F05 + +gUnk_083E0F06:: @ 083E0F06 + .incbin "baserom.gba", 0x3E0F06, 0x0000020 + +gUnk_083E0F26:: @ 083E0F26 + .incbin "baserom.gba", 0x3E0F26, 0x00019E6 + +gUnk_083E290C:: @ 083E290C + .incbin "baserom.gba", 0x3E290C, 0x00016F2 + +gUnk_083E3FFE:: @ 083E3FFE + .incbin "baserom.gba", 0x3E3FFE, 0x000006C + +gUnk_083E406A:: @ 083E406A + .incbin "baserom.gba", 0x3E406A, 0x000006A + +gUnk_083E40D4:: @ 083E40D4 + .incbin "baserom.gba", 0x3E40D4, 0x000133D + +gUnk_083E5411:: @ 083E5411 + .incbin "baserom.gba", 0x3E5411, 0x0000532 + +gUnk_083E5943:: @ 083E5943 + .incbin "baserom.gba", 0x3E5943, 0x00002E1 + +gUnk_083E5C24:: @ 083E5C24 + .incbin "baserom.gba", 0x3E5C24, 0x00029EC + +gUnk_083E8610:: @ 083E8610 + .incbin "baserom.gba", 0x3E8610, 0x00079F0 + +gUnk_083F0000:: @ 083F0000 + .incbin "baserom.gba", 0x3F0000, 0x0000001 + +gUnk_083F0001:: @ 083F0001 + .incbin "baserom.gba", 0x3F0001, 0x000003F + +gUnk_083F0040:: @ 083F0040 + .incbin "baserom.gba", 0x3F0040, 0x000037F + +gUnk_083F03BF:: @ 083F03BF + .incbin "baserom.gba", 0x3F03BF, 0x0002450 + +gUnk_083F280F:: @ 083F280F + .incbin "baserom.gba", 0x3F280F, 0x0000BC3 + +gUnk_083F33D2:: @ 083F33D2 + .incbin "baserom.gba", 0x3F33D2, 0x0000F67 + +gUnk_083F4339:: @ 083F4339 + .incbin "baserom.gba", 0x3F4339, 0x00000CE + +gUnk_083F4407:: @ 083F4407 + .incbin "baserom.gba", 0x3F4407, 0x0000BC8 + +gUnk_083F4FCF:: @ 083F4FCF + .incbin "baserom.gba", 0x3F4FCF, 0x0000035 + +gUnk_083F5004:: @ 083F5004 + .incbin "baserom.gba", 0x3F5004, 0x0000335 + +gUnk_083F5339:: @ 083F5339 + .incbin "baserom.gba", 0x3F5339, 0x000000A + +gUnk_083F5343:: @ 083F5343 + .incbin "baserom.gba", 0x3F5343, 0x0000D77 + +gUnk_083F60BA:: @ 083F60BA + .incbin "baserom.gba", 0x3F60BA, 0x0000051 + +gUnk_083F610B:: @ 083F610B + .incbin "baserom.gba", 0x3F610B, 0x0000057 + +gUnk_083F6162:: @ 083F6162 + .incbin "baserom.gba", 0x3F6162, 0x00006D5 + +gUnk_083F6837:: @ 083F6837 + .incbin "baserom.gba", 0x3F6837, 0x0000907 + +gUnk_083F713E:: @ 083F713E + .incbin "baserom.gba", 0x3F713E, 0x000033B + +gUnk_083F7479:: @ 083F7479 + .incbin "baserom.gba", 0x3F7479, 0x0000B8A + +gUnk_083F8003:: @ 083F8003 + .incbin "baserom.gba", 0x3F8003, 0x0001086 + +gUnk_083F9089:: @ 083F9089 + .incbin "baserom.gba", 0x3F9089, 0x0003334 + +gUnk_083FC3BD:: @ 083FC3BD + .incbin "baserom.gba", 0x3FC3BD, 0x0000D3C + +gUnk_083FD0F9:: @ 083FD0F9 + .incbin "baserom.gba", 0x3FD0F9, 0x0001DF3 + +gUnk_083FEEEC:: @ 083FEEEC + .incbin "baserom.gba", 0x3FEEEC, 0x0001114 + +gUnk_08400000:: @ 08400000 + .incbin "baserom.gba", 0x400000, 0x0000001 + +gUnk_08400001:: @ 08400001 + .incbin "baserom.gba", 0x400001, 0x0000003 + +gUnk_08400004:: @ 08400004 + .incbin "baserom.gba", 0x400004, 0x0000003 + +gUnk_08400007:: @ 08400007 + .incbin "baserom.gba", 0x400007, 0x0000003 + +gUnk_0840000A:: @ 0840000A + .incbin "baserom.gba", 0x40000A, 0x000001D + +gUnk_08400027:: @ 08400027 + .incbin "baserom.gba", 0x400027, 0x0000006 + +gUnk_0840002D:: @ 0840002D + .incbin "baserom.gba", 0x40002D, 0x0000050 + +gUnk_0840007D:: @ 0840007D + .incbin "baserom.gba", 0x40007D, 0x0000068 + +gUnk_084000E5:: @ 084000E5 + .incbin "baserom.gba", 0x4000E5, 0x0000001 + +gUnk_084000E6:: @ 084000E6 + .incbin "baserom.gba", 0x4000E6, 0x0000001 + +gUnk_084000E7:: @ 084000E7 + .incbin "baserom.gba", 0x4000E7, 0x0000009 + +gUnk_084000F0:: @ 084000F0 + .incbin "baserom.gba", 0x4000F0, 0x0000004 + +gUnk_084000F4:: @ 084000F4 + .incbin "baserom.gba", 0x4000F4, 0x0000002 + +gUnk_084000F6:: @ 084000F6 + .incbin "baserom.gba", 0x4000F6, 0x0000009 + +gUnk_084000FF:: @ 084000FF + .incbin "baserom.gba", 0x4000FF, 0x0000001 + +gUnk_08400100:: @ 08400100 + .incbin "baserom.gba", 0x400100, 0x0000030 + +gUnk_08400130:: @ 08400130 + .incbin "baserom.gba", 0x400130, 0x0000078 + +gUnk_084001A8:: @ 084001A8 + .incbin "baserom.gba", 0x4001A8, 0x000001C + +gUnk_084001C4:: @ 084001C4 + .incbin "baserom.gba", 0x4001C4, 0x0000026 + +gUnk_084001EA:: @ 084001EA + .incbin "baserom.gba", 0x4001EA, 0x000000E + +gUnk_084001F8:: @ 084001F8 + .incbin "baserom.gba", 0x4001F8, 0x0000219 + +gUnk_08400411:: @ 08400411 + .incbin "baserom.gba", 0x400411, 0x0000184 + +gUnk_08400595:: @ 08400595 + .incbin "baserom.gba", 0x400595, 0x000005B + +gUnk_084005F0:: @ 084005F0 + .incbin "baserom.gba", 0x4005F0, 0x0000015 + +gUnk_08400605:: @ 08400605 + .incbin "baserom.gba", 0x400605, 0x000000B + +gUnk_08400610:: @ 08400610 + .incbin "baserom.gba", 0x400610, 0x000002E + +gUnk_0840063E:: @ 0840063E + .incbin "baserom.gba", 0x40063E, 0x00000C2 + +gUnk_08400700:: @ 08400700 + .incbin "baserom.gba", 0x400700, 0x0000010 + +gUnk_08400710:: @ 08400710 + .incbin "baserom.gba", 0x400710, 0x0000020 + +gUnk_08400730:: @ 08400730 + .incbin "baserom.gba", 0x400730, 0x0000010 + +gUnk_08400740:: @ 08400740 + .incbin "baserom.gba", 0x400740, 0x000000A + +gUnk_0840074A:: @ 0840074A + .incbin "baserom.gba", 0x40074A, 0x0000006 + +gUnk_08400750:: @ 08400750 + .incbin "baserom.gba", 0x400750, 0x0000010 + +gUnk_08400760:: @ 08400760 + .incbin "baserom.gba", 0x400760, 0x0000080 + +gUnk_084007E0:: @ 084007E0 + .incbin "baserom.gba", 0x4007E0, 0x0000030 + +gUnk_08400810:: @ 08400810 + .incbin "baserom.gba", 0x400810, 0x0000014 + +gUnk_08400824:: @ 08400824 + .incbin "baserom.gba", 0x400824, 0x0000009 + +gUnk_0840082D:: @ 0840082D + .incbin "baserom.gba", 0x40082D, 0x0000009 + +gUnk_08400836:: @ 08400836 + .incbin "baserom.gba", 0x400836, 0x000000A + +gUnk_08400840:: @ 08400840 + .incbin "baserom.gba", 0x400840, 0x000005F + +gUnk_0840089F:: @ 0840089F + .incbin "baserom.gba", 0x40089F, 0x0000451 + +gUnk_08400CF0:: @ 08400CF0 + .incbin "baserom.gba", 0x400CF0, 0x0000210 + +gUnk_08400F00:: @ 08400F00 + .incbin "baserom.gba", 0x400F00, 0x0000029 + +gUnk_08400F29:: @ 08400F29 + .incbin "baserom.gba", 0x400F29, 0x0000013 + +gUnk_08400F3C:: @ 08400F3C + .incbin "baserom.gba", 0x400F3C, 0x0000008 + +gUnk_08400F44:: @ 08400F44 + .incbin "baserom.gba", 0x400F44, 0x0000195 + +gUnk_084010D9:: @ 084010D9 + .incbin "baserom.gba", 0x4010D9, 0x00001A8 + +gUnk_08401281:: @ 08401281 + .incbin "baserom.gba", 0x401281, 0x00000C0 + +gUnk_08401341:: @ 08401341 + .incbin "baserom.gba", 0x401341, 0x00007B7 + +gUnk_08401AF8:: @ 08401AF8 + .incbin "baserom.gba", 0x401AF8, 0x00004C8 + +gUnk_08401FC0:: @ 08401FC0 + .incbin "baserom.gba", 0x401FC0, 0x0000268 + +gUnk_08402228:: @ 08402228 + .incbin "baserom.gba", 0x402228, 0x0000518 + +gUnk_08402740:: @ 08402740 + .incbin "baserom.gba", 0x402740, 0x0000501 + +gUnk_08402C41:: @ 08402C41 + .incbin "baserom.gba", 0x402C41, 0x00002C7 + +gUnk_08402F08:: @ 08402F08 + .incbin "baserom.gba", 0x402F08, 0x00003F7 + +gUnk_084032FF:: @ 084032FF + .incbin "baserom.gba", 0x4032FF, 0x0000011 + +gUnk_08403310:: @ 08403310 + .incbin "baserom.gba", 0x403310, 0x0000553 + +gUnk_08403863:: @ 08403863 + .incbin "baserom.gba", 0x403863, 0x00007A0 + +gUnk_08404003:: @ 08404003 + .incbin "baserom.gba", 0x404003, 0x000001D + +gUnk_08404020:: @ 08404020 + .incbin "baserom.gba", 0x404020, 0x00001F0 + +gUnk_08404210:: @ 08404210 + .incbin "baserom.gba", 0x404210, 0x0000454 + +gUnk_08404664:: @ 08404664 + .incbin "baserom.gba", 0x404664, 0x000039C + +gUnk_08404A00:: @ 08404A00 + .incbin "baserom.gba", 0x404A00, 0x0000568 + +gUnk_08404F68:: @ 08404F68 + .incbin "baserom.gba", 0x404F68, 0x0000298 + +gUnk_08405200:: @ 08405200 + .incbin "baserom.gba", 0x405200, 0x0000227 + +gUnk_08405427:: @ 08405427 + .incbin "baserom.gba", 0x405427, 0x000061A + +gUnk_08405A41:: @ 08405A41 + .incbin "baserom.gba", 0x405A41, 0x0000614 + +gUnk_08406055:: @ 08406055 + .incbin "baserom.gba", 0x406055, 0x00000B3 + +gUnk_08406108:: @ 08406108 + .incbin "baserom.gba", 0x406108, 0x000021C + +gUnk_08406324:: @ 08406324 + .incbin "baserom.gba", 0x406324, 0x0000854 + +gUnk_08406B78:: @ 08406B78 + .incbin "baserom.gba", 0x406B78, 0x0000107 + +gUnk_08406C7F:: @ 08406C7F + .incbin "baserom.gba", 0x406C7F, 0x0000389 + +gUnk_08407008:: @ 08407008 + .incbin "baserom.gba", 0x407008, 0x0000C52 + +gUnk_08407C5A:: @ 08407C5A + .incbin "baserom.gba", 0x407C5A, 0x00002AD + +gUnk_08407F07:: @ 08407F07 + .incbin "baserom.gba", 0x407F07, 0x00003CA + +gUnk_084082D1:: @ 084082D1 + .incbin "baserom.gba", 0x4082D1, 0x000003D + +gUnk_0840830E:: @ 0840830E + .incbin "baserom.gba", 0x40830E, 0x000028A + +gUnk_08408598:: @ 08408598 + .incbin "baserom.gba", 0x408598, 0x00001A8 + +gUnk_08408740:: @ 08408740 + .incbin "baserom.gba", 0x408740, 0x00000C8 + +gUnk_08408808:: @ 08408808 + .incbin "baserom.gba", 0x408808, 0x00000FF + +gUnk_08408907:: @ 08408907 + .incbin "baserom.gba", 0x408907, 0x000018F + +gUnk_08408A96:: @ 08408A96 + .incbin "baserom.gba", 0x408A96, 0x00001E7 + +gUnk_08408C7D:: @ 08408C7D + .incbin "baserom.gba", 0x408C7D, 0x000024A + +gUnk_08408EC7:: @ 08408EC7 + .incbin "baserom.gba", 0x408EC7, 0x000007C + +gUnk_08408F43:: @ 08408F43 + .incbin "baserom.gba", 0x408F43, 0x00000C7 + +gUnk_0840900A:: @ 0840900A + .incbin "baserom.gba", 0x40900A, 0x0000155 + +gUnk_0840915F:: @ 0840915F + .incbin "baserom.gba", 0x40915F, 0x000011B + +gUnk_0840927A:: @ 0840927A + .incbin "baserom.gba", 0x40927A, 0x00002A3 + +gUnk_0840951D:: @ 0840951D + .incbin "baserom.gba", 0x40951D, 0x00004F4 + +gUnk_08409A11:: @ 08409A11 + .incbin "baserom.gba", 0x409A11, 0x0000739 + +gUnk_0840A14A:: @ 0840A14A + .incbin "baserom.gba", 0x40A14A, 0x000044D + +gUnk_0840A597:: @ 0840A597 + .incbin "baserom.gba", 0x40A597, 0x000036A + +gUnk_0840A901:: @ 0840A901 + .incbin "baserom.gba", 0x40A901, 0x0000189 + +gUnk_0840AA8A:: @ 0840AA8A + .incbin "baserom.gba", 0x40AA8A, 0x000043B + +gUnk_0840AEC5:: @ 0840AEC5 + .incbin "baserom.gba", 0x40AEC5, 0x0000074 + +gUnk_0840AF39:: @ 0840AF39 + .incbin "baserom.gba", 0x40AF39, 0x0000067 + +gUnk_0840AFA0:: @ 0840AFA0 + .incbin "baserom.gba", 0x40AFA0, 0x00000DF + +gUnk_0840B07F:: @ 0840B07F + .incbin "baserom.gba", 0x40B07F, 0x0000289 + +gUnk_0840B308:: @ 0840B308 + .incbin "baserom.gba", 0x40B308, 0x00002C7 + +gUnk_0840B5CF:: @ 0840B5CF + .incbin "baserom.gba", 0x40B5CF, 0x000007D + +gUnk_0840B64C:: @ 0840B64C + .incbin "baserom.gba", 0x40B64C, 0x0000098 + +gUnk_0840B6E4:: @ 0840B6E4 + .incbin "baserom.gba", 0x40B6E4, 0x00000D9 + +gUnk_0840B7BD:: @ 0840B7BD + .incbin "baserom.gba", 0x40B7BD, 0x0000243 + +gUnk_0840BA00:: @ 0840BA00 + .incbin "baserom.gba", 0x40BA00, 0x000073D + +gUnk_0840C13D:: @ 0840C13D + .incbin "baserom.gba", 0x40C13D, 0x0000446 + +gUnk_0840C583:: @ 0840C583 + .incbin "baserom.gba", 0x40C583, 0x0000042 + +gUnk_0840C5C5:: @ 0840C5C5 + .incbin "baserom.gba", 0x40C5C5, 0x000016E + +gUnk_0840C733:: @ 0840C733 + .incbin "baserom.gba", 0x40C733, 0x0000395 + +gUnk_0840CAC8:: @ 0840CAC8 + .incbin "baserom.gba", 0x40CAC8, 0x00000F3 + +gUnk_0840CBBB:: @ 0840CBBB + .incbin "baserom.gba", 0x40CBBB, 0x0000098 + +gUnk_0840CC53:: @ 0840CC53 + .incbin "baserom.gba", 0x40CC53, 0x000000F + +gUnk_0840CC62:: @ 0840CC62 + .incbin "baserom.gba", 0x40CC62, 0x0000027 + +gUnk_0840CC89:: @ 0840CC89 + .incbin "baserom.gba", 0x40CC89, 0x00002DD + +gUnk_0840CF66:: @ 0840CF66 + .incbin "baserom.gba", 0x40CF66, 0x0000136 + +gUnk_0840D09C:: @ 0840D09C + .incbin "baserom.gba", 0x40D09C, 0x00000C1 + +gUnk_0840D15D:: @ 0840D15D + .incbin "baserom.gba", 0x40D15D, 0x00001A4 + +gUnk_0840D301:: @ 0840D301 + .incbin "baserom.gba", 0x40D301, 0x000003E + +gUnk_0840D33F:: @ 0840D33F + .incbin "baserom.gba", 0x40D33F, 0x00003DA + +gUnk_0840D719:: @ 0840D719 + .incbin "baserom.gba", 0x40D719, 0x00003A3 + +gUnk_0840DABC:: @ 0840DABC + .incbin "baserom.gba", 0x40DABC, 0x000004C + +gUnk_0840DB08:: @ 0840DB08 + .incbin "baserom.gba", 0x40DB08, 0x000006F + +gUnk_0840DB77:: @ 0840DB77 + .incbin "baserom.gba", 0x40DB77, 0x0000002 + +gUnk_0840DB79:: @ 0840DB79 + .incbin "baserom.gba", 0x40DB79, 0x00000E6 + +gUnk_0840DC5F:: @ 0840DC5F + .incbin "baserom.gba", 0x40DC5F, 0x000001A + +gUnk_0840DC79:: @ 0840DC79 + .incbin "baserom.gba", 0x40DC79, 0x00000DE + +gUnk_0840DD57:: @ 0840DD57 + .incbin "baserom.gba", 0x40DD57, 0x00001F9 + +gUnk_0840DF50:: @ 0840DF50 + .incbin "baserom.gba", 0x40DF50, 0x0000214 + +gUnk_0840E164:: @ 0840E164 + .incbin "baserom.gba", 0x40E164, 0x0000290 + +gUnk_0840E3F4:: @ 0840E3F4 + .incbin "baserom.gba", 0x40E3F4, 0x0000204 + +gUnk_0840E5F8:: @ 0840E5F8 + .incbin "baserom.gba", 0x40E5F8, 0x0000098 + +gUnk_0840E690:: @ 0840E690 + .incbin "baserom.gba", 0x40E690, 0x000016F + +gUnk_0840E7FF:: @ 0840E7FF + .incbin "baserom.gba", 0x40E7FF, 0x00000CE + +gUnk_0840E8CD:: @ 0840E8CD + .incbin "baserom.gba", 0x40E8CD, 0x000002E + +gUnk_0840E8FB:: @ 0840E8FB + .incbin "baserom.gba", 0x40E8FB, 0x0000301 + +gUnk_0840EBFC:: @ 0840EBFC + .incbin "baserom.gba", 0x40EBFC, 0x00000FA + +gUnk_0840ECF6:: @ 0840ECF6 + .incbin "baserom.gba", 0x40ECF6, 0x0000006 + +gUnk_0840ECFC:: @ 0840ECFC + .incbin "baserom.gba", 0x40ECFC, 0x00000FC + +gUnk_0840EDF8:: @ 0840EDF8 + .incbin "baserom.gba", 0x40EDF8, 0x00000FF + +gUnk_0840EEF7:: @ 0840EEF7 + .incbin "baserom.gba", 0x40EEF7, 0x0000011 + +gUnk_0840EF08:: @ 0840EF08 + .incbin "baserom.gba", 0x40EF08, 0x00001D8 + +gUnk_0840F0E0:: @ 0840F0E0 + .incbin "baserom.gba", 0x40F0E0, 0x0000018 + +gUnk_0840F0F8:: @ 0840F0F8 + .incbin "baserom.gba", 0x40F0F8, 0x000000F + +gUnk_0840F107:: @ 0840F107 + .incbin "baserom.gba", 0x40F107, 0x00001E5 + +gUnk_0840F2EC:: @ 0840F2EC + .incbin "baserom.gba", 0x40F2EC, 0x0000264 + +gUnk_0840F550:: @ 0840F550 + .incbin "baserom.gba", 0x40F550, 0x00000A8 + +gUnk_0840F5F8:: @ 0840F5F8 + .incbin "baserom.gba", 0x40F5F8, 0x000013D + +gUnk_0840F735:: @ 0840F735 + .incbin "baserom.gba", 0x40F735, 0x00000C3 + +gUnk_0840F7F8:: @ 0840F7F8 + .incbin "baserom.gba", 0x40F7F8, 0x00002FC + +gUnk_0840FAF4:: @ 0840FAF4 + .incbin "baserom.gba", 0x40FAF4, 0x0000004 + +gUnk_0840FAF8:: @ 0840FAF8 + .incbin "baserom.gba", 0x40FAF8, 0x00000FE + +gUnk_0840FBF6:: @ 0840FBF6 + .incbin "baserom.gba", 0x40FBF6, 0x0000002 + +gUnk_0840FBF8:: @ 0840FBF8 + .incbin "baserom.gba", 0x40FBF8, 0x0000001 + +gUnk_0840FBF9:: @ 0840FBF9 + .incbin "baserom.gba", 0x40FBF9, 0x0000001 + +gUnk_0840FBFA:: @ 0840FBFA + .incbin "baserom.gba", 0x40FBFA, 0x00000FE + +gUnk_0840FCF8:: @ 0840FCF8 + .incbin "baserom.gba", 0x40FCF8, 0x0000002 + +gUnk_0840FCFA:: @ 0840FCFA + .incbin "baserom.gba", 0x40FCFA, 0x00000FE + +gUnk_0840FDF8:: @ 0840FDF8 + .incbin "baserom.gba", 0x40FDF8, 0x000000F + +gUnk_0840FE07:: @ 0840FE07 + .incbin "baserom.gba", 0x40FE07, 0x00001E2 + +gUnk_0840FFE9:: @ 0840FFE9 + .incbin "baserom.gba", 0x40FFE9, 0x000011E + +gUnk_08410107:: @ 08410107 + .incbin "baserom.gba", 0x410107, 0x000090A + +gUnk_08410A11:: @ 08410A11 + .incbin "baserom.gba", 0x410A11, 0x0000808 + +gUnk_08411219:: @ 08411219 + .incbin "baserom.gba", 0x411219, 0x00001EB + +gUnk_08411404:: @ 08411404 + .incbin "baserom.gba", 0x411404, 0x0001D1C + +gUnk_08413120:: @ 08413120 + .incbin "baserom.gba", 0x413120, 0x0000103 + +gUnk_08413223:: @ 08413223 + .incbin "baserom.gba", 0x413223, 0x000220F + +gUnk_08415432:: @ 08415432 + .incbin "baserom.gba", 0x415432, 0x00003CA + +gUnk_084157FC:: @ 084157FC + .incbin "baserom.gba", 0x4157FC, 0x0001676 + +gUnk_08416E72:: @ 08416E72 + .incbin "baserom.gba", 0x416E72, 0x00011CE + +gUnk_08418040:: @ 08418040 + .incbin "baserom.gba", 0x418040, 0x0000BD0 + +gUnk_08418C10:: @ 08418C10 + .incbin "baserom.gba", 0x418C10, 0x00032F8 + +gUnk_0841BF08:: @ 0841BF08 + .incbin "baserom.gba", 0x41BF08, 0x0002DD7 + +gUnk_0841ECDF:: @ 0841ECDF + .incbin "baserom.gba", 0x41ECDF, 0x0000319 + +gUnk_0841EFF8:: @ 0841EFF8 + .incbin "baserom.gba", 0x41EFF8, 0x00003F8 + +gUnk_0841F3F0:: @ 0841F3F0 + .incbin "baserom.gba", 0x41F3F0, 0x000000A + +gUnk_0841F3FA:: @ 0841F3FA + .incbin "baserom.gba", 0x41F3FA, 0x00001F6 + +gUnk_0841F5F0:: @ 0841F5F0 + .incbin "baserom.gba", 0x41F5F0, 0x00001FE + +gUnk_0841F7EE:: @ 0841F7EE + .incbin "baserom.gba", 0x41F7EE, 0x000010A + +gUnk_0841F8F8:: @ 0841F8F8 + .incbin "baserom.gba", 0x41F8F8, 0x0000100 + +gUnk_0841F9F8:: @ 0841F9F8 + .incbin "baserom.gba", 0x41F9F8, 0x0000100 + +gUnk_0841FAF8:: @ 0841FAF8 + .incbin "baserom.gba", 0x41FAF8, 0x0000508 + +gUnk_08420000:: @ 08420000 + .incbin "baserom.gba", 0x420000, 0x0000092 + +gUnk_08420092:: @ 08420092 + .incbin "baserom.gba", 0x420092, 0x00003A5 + +gUnk_08420437:: @ 08420437 + .incbin "baserom.gba", 0x420437, 0x0000005 + +gUnk_0842043C:: @ 0842043C + .incbin "baserom.gba", 0x42043C, 0x0000C91 + +gUnk_084210CD:: @ 084210CD + .incbin "baserom.gba", 0x4210CD, 0x0000058 + +gUnk_08421125:: @ 08421125 + .incbin "baserom.gba", 0x421125, 0x0001004 + +gUnk_08422129:: @ 08422129 + .incbin "baserom.gba", 0x422129, 0x0000049 + +gUnk_08422172:: @ 08422172 + .incbin "baserom.gba", 0x422172, 0x00007C4 + +gUnk_08422936:: @ 08422936 + .incbin "baserom.gba", 0x422936, 0x000039B + +gUnk_08422CD1:: @ 08422CD1 + .incbin "baserom.gba", 0x422CD1, 0x0001637 + +gUnk_08424308:: @ 08424308 + .incbin "baserom.gba", 0x424308, 0x0003B7D + +gUnk_08427E85:: @ 08427E85 + .incbin "baserom.gba", 0x427E85, 0x000017A + +gUnk_08427FFF:: @ 08427FFF + .incbin "baserom.gba", 0x427FFF, 0x0002A70 + +gUnk_0842AA6F:: @ 0842AA6F + .incbin "baserom.gba", 0x42AA6F, 0x0001AD6 + +gUnk_0842C545:: @ 0842C545 + .incbin "baserom.gba", 0x42C545, 0x0000D8E + +gUnk_0842D2D3:: @ 0842D2D3 + .incbin "baserom.gba", 0x42D2D3, 0x0002730 + +gUnk_0842FA03:: @ 0842FA03 + .incbin "baserom.gba", 0x42FA03, 0x00005FD + +gUnk_08430000:: @ 08430000 + .incbin "baserom.gba", 0x430000, 0x000009A + +gUnk_0843009A:: @ 0843009A + .incbin "baserom.gba", 0x43009A, 0x0000052 + +gUnk_084300EC:: @ 084300EC + .incbin "baserom.gba", 0x4300EC, 0x0000044 + +gUnk_08430130:: @ 08430130 + .incbin "baserom.gba", 0x430130, 0x00001D0 + +gUnk_08430300:: @ 08430300 + .incbin "baserom.gba", 0x430300, 0x0000142 + +gUnk_08430442:: @ 08430442 + .incbin "baserom.gba", 0x430442, 0x0000A62 + +gUnk_08430EA4:: @ 08430EA4 + .incbin "baserom.gba", 0x430EA4, 0x00001F1 + +gUnk_08431095:: @ 08431095 + .incbin "baserom.gba", 0x431095, 0x000016E + +gUnk_08431203:: @ 08431203 + .incbin "baserom.gba", 0x431203, 0x0000020 + +gUnk_08431223:: @ 08431223 + .incbin "baserom.gba", 0x431223, 0x000034D + +gUnk_08431570:: @ 08431570 + .incbin "baserom.gba", 0x431570, 0x0000490 + +gUnk_08431A00:: @ 08431A00 + .incbin "baserom.gba", 0x431A00, 0x00009E2 + +gUnk_084323E2:: @ 084323E2 + .incbin "baserom.gba", 0x4323E2, 0x0000E16 + +gUnk_084331F8:: @ 084331F8 + .incbin "baserom.gba", 0x4331F8, 0x000013B + +gUnk_08433333:: @ 08433333 + .incbin "baserom.gba", 0x433333, 0x0000001 + +gUnk_08433334:: @ 08433334 + .incbin "baserom.gba", 0x433334, 0x0000001 + +gUnk_08433335:: @ 08433335 + .incbin "baserom.gba", 0x433335, 0x0000FBC + +gUnk_084342F1:: @ 084342F1 + .incbin "baserom.gba", 0x4342F1, 0x0000663 + +gUnk_08434954:: @ 08434954 + .incbin "baserom.gba", 0x434954, 0x0000EAB + +gUnk_084357FF:: @ 084357FF + .incbin "baserom.gba", 0x4357FF, 0x000055E + +gUnk_08435D5D:: @ 08435D5D + .incbin "baserom.gba", 0x435D5D, 0x0000802 + +gUnk_0843655F:: @ 0843655F + .incbin "baserom.gba", 0x43655F, 0x0001288 + +gUnk_084377E7:: @ 084377E7 + .incbin "baserom.gba", 0x4377E7, 0x0000553 + +gUnk_08437D3A:: @ 08437D3A + .incbin "baserom.gba", 0x437D3A, 0x00000DC + +gUnk_08437E16:: @ 08437E16 + .incbin "baserom.gba", 0x437E16, 0x0000099 + +gUnk_08437EAF:: @ 08437EAF + .incbin "baserom.gba", 0x437EAF, 0x000014B + +gUnk_08437FFA:: @ 08437FFA + .incbin "baserom.gba", 0x437FFA, 0x0007B19 + +gUnk_0843FB13:: @ 0843FB13 + .incbin "baserom.gba", 0x43FB13, 0x0000495 + +gUnk_0843FFA8:: @ 0843FFA8 + .incbin "baserom.gba", 0x43FFA8, 0x0000082 + +gUnk_0844002A:: @ 0844002A + .incbin "baserom.gba", 0x44002A, 0x00001C2 + +gUnk_084401EC:: @ 084401EC + .incbin "baserom.gba", 0x4401EC, 0x0000A56 + +gUnk_08440C42:: @ 08440C42 + .incbin "baserom.gba", 0x440C42, 0x00004C0 + +gUnk_08441102:: @ 08441102 + .incbin "baserom.gba", 0x441102, 0x000000F + +gUnk_08441111:: @ 08441111 + .incbin "baserom.gba", 0x441111, 0x0000101 + +gUnk_08441212:: @ 08441212 + .incbin "baserom.gba", 0x441212, 0x0000117 + +gUnk_08441329:: @ 08441329 + .incbin "baserom.gba", 0x441329, 0x0000311 + +gUnk_0844163A:: @ 0844163A + .incbin "baserom.gba", 0x44163A, 0x00001EE + +gUnk_08441828:: @ 08441828 + .incbin "baserom.gba", 0x441828, 0x00003FC + +gUnk_08441C24:: @ 08441C24 + .incbin "baserom.gba", 0x441C24, 0x00001DD + +gUnk_08441E01:: @ 08441E01 + .incbin "baserom.gba", 0x441E01, 0x0000322 + +gUnk_08442123:: @ 08442123 + .incbin "baserom.gba", 0x442123, 0x000107D + +gUnk_084431A0:: @ 084431A0 + .incbin "baserom.gba", 0x4431A0, 0x0000083 + +gUnk_08443223:: @ 08443223 + .incbin "baserom.gba", 0x443223, 0x0000023 + +gUnk_08443246:: @ 08443246 + .incbin "baserom.gba", 0x443246, 0x00001C5 + +gUnk_0844340B:: @ 0844340B + .incbin "baserom.gba", 0x44340B, 0x0000F39 + +gUnk_08444344:: @ 08444344 + .incbin "baserom.gba", 0x444344, 0x00000F0 + +gUnk_08444434:: @ 08444434 + .incbin "baserom.gba", 0x444434, 0x000000E + +gUnk_08444442:: @ 08444442 + .incbin "baserom.gba", 0x444442, 0x0000002 + +gUnk_08444444:: @ 08444444 + .incbin "baserom.gba", 0x444444, 0x00000B9 + +gUnk_084444FD:: @ 084444FD + .incbin "baserom.gba", 0x4444FD, 0x0000097 + +gUnk_08444594:: @ 08444594 + .incbin "baserom.gba", 0x444594, 0x0000158 + +gUnk_084446EC:: @ 084446EC + .incbin "baserom.gba", 0x4446EC, 0x000003B + +gUnk_08444727:: @ 08444727 + .incbin "baserom.gba", 0x444727, 0x000051E + +gUnk_08444C45:: @ 08444C45 + .incbin "baserom.gba", 0x444C45, 0x00002A5 + +gUnk_08444EEA:: @ 08444EEA + .incbin "baserom.gba", 0x444EEA, 0x0000959 + +gUnk_08445843:: @ 08445843 + .incbin "baserom.gba", 0x445843, 0x00003E0 + +gUnk_08445C23:: @ 08445C23 + .incbin "baserom.gba", 0x445C23, 0x0000110 + +gUnk_08445D33:: @ 08445D33 + .incbin "baserom.gba", 0x445D33, 0x00000CD + +gUnk_08445E00:: @ 08445E00 + .incbin "baserom.gba", 0x445E00, 0x0000768 + +gUnk_08446568:: @ 08446568 + .incbin "baserom.gba", 0x446568, 0x000190A + +gUnk_08447E72:: @ 08447E72 + .incbin "baserom.gba", 0x447E72, 0x00000A2 + +gUnk_08447F14:: @ 08447F14 + .incbin "baserom.gba", 0x447F14, 0x0000232 + +gUnk_08448146:: @ 08448146 + .incbin "baserom.gba", 0x448146, 0x00004BA + +gUnk_08448600:: @ 08448600 + .incbin "baserom.gba", 0x448600, 0x000151A + +gUnk_08449B1A:: @ 08449B1A + .incbin "baserom.gba", 0x449B1A, 0x00009E6 + +gUnk_0844A500:: @ 0844A500 + .incbin "baserom.gba", 0x44A500, 0x0000E33 + +gUnk_0844B333:: @ 0844B333 + .incbin "baserom.gba", 0x44B333, 0x000211A + +gUnk_0844D44D:: @ 0844D44D + .incbin "baserom.gba", 0x44D44D, 0x00003B3 + +gUnk_0844D800:: @ 0844D800 + .incbin "baserom.gba", 0x44D800, 0x0001700 + +gUnk_0844EF00:: @ 0844EF00 + .incbin "baserom.gba", 0x44EF00, 0x000011F + +gUnk_0844F01F:: @ 0844F01F + .incbin "baserom.gba", 0x44F01F, 0x00000D9 + +gUnk_0844F0F8:: @ 0844F0F8 + .incbin "baserom.gba", 0x44F0F8, 0x0000A0B + +gUnk_0844FB03:: @ 0844FB03 + .incbin "baserom.gba", 0x44FB03, 0x000050D + +gUnk_08450010:: @ 08450010 + .incbin "baserom.gba", 0x450010, 0x00003F1 + +gUnk_08450401:: @ 08450401 + .incbin "baserom.gba", 0x450401, 0x0001D21 + +gUnk_08452122:: @ 08452122 + .incbin "baserom.gba", 0x452122, 0x00000FE + +gUnk_08452220:: @ 08452220 + .incbin "baserom.gba", 0x452220, 0x0000134 + +gUnk_08452354:: @ 08452354 + .incbin "baserom.gba", 0x452354, 0x0000DE1 + +gUnk_08453135:: @ 08453135 + .incbin "baserom.gba", 0x453135, 0x00000FF + +gUnk_08453234:: @ 08453234 + .incbin "baserom.gba", 0x453234, 0x00001D4 + +gUnk_08453408:: @ 08453408 + .incbin "baserom.gba", 0x453408, 0x000001C + +gUnk_08453424:: @ 08453424 + .incbin "baserom.gba", 0x453424, 0x00006DC + +gUnk_08453B00:: @ 08453B00 + .incbin "baserom.gba", 0x453B00, 0x00005E5 + +gUnk_084540E5:: @ 084540E5 + .incbin "baserom.gba", 0x4540E5, 0x000034F + +gUnk_08454434:: @ 08454434 + .incbin "baserom.gba", 0x454434, 0x000002A + +gUnk_0845445E:: @ 0845445E + .incbin "baserom.gba", 0x45445E, 0x0000093 + +gUnk_084544F1:: @ 084544F1 + .incbin "baserom.gba", 0x4544F1, 0x0000063 + +gUnk_08454554:: @ 08454554 + .incbin "baserom.gba", 0x454554, 0x0000BC2 + +gUnk_08455116:: @ 08455116 + .incbin "baserom.gba", 0x455116, 0x0000124 + +gUnk_0845523A:: @ 0845523A + .incbin "baserom.gba", 0x45523A, 0x00000E9 + +gUnk_08455323:: @ 08455323 + .incbin "baserom.gba", 0x455323, 0x0000221 + +gUnk_08455544:: @ 08455544 + .incbin "baserom.gba", 0x455544, 0x0000011 + +gUnk_08455555:: @ 08455555 + .incbin "baserom.gba", 0x455555, 0x00002B2 + +gUnk_08455807:: @ 08455807 + .incbin "baserom.gba", 0x455807, 0x0000E1C + +gUnk_08456623:: @ 08456623 + .incbin "baserom.gba", 0x456623, 0x000025B + +gUnk_0845687E:: @ 0845687E + .incbin "baserom.gba", 0x45687E, 0x000228A + +gUnk_08458B08:: @ 08458B08 + .incbin "baserom.gba", 0x458B08, 0x000323D + +gUnk_0845BD45:: @ 0845BD45 + .incbin "baserom.gba", 0x45BD45, 0x0000D65 + +gUnk_0845CAAA:: @ 0845CAAA + .incbin "baserom.gba", 0x45CAAA, 0x000075D + +gUnk_0845D207:: @ 0845D207 + .incbin "baserom.gba", 0x45D207, 0x0001127 + +gUnk_0845E32E:: @ 0845E32E + .incbin "baserom.gba", 0x45E32E, 0x00001D4 + +gUnk_0845E502:: @ 0845E502 + .incbin "baserom.gba", 0x45E502, 0x0000857 + +gUnk_0845ED59:: @ 0845ED59 + .incbin "baserom.gba", 0x45ED59, 0x0000181 + +gUnk_0845EEDA:: @ 0845EEDA + .incbin "baserom.gba", 0x45EEDA, 0x0000C1E + +gUnk_0845FAF8:: @ 0845FAF8 + .incbin "baserom.gba", 0x45FAF8, 0x0000688 + +gUnk_08460180:: @ 08460180 + .incbin "baserom.gba", 0x460180, 0x0000290 + +gUnk_08460410:: @ 08460410 + .incbin "baserom.gba", 0x460410, 0x0000D45 + +gUnk_08461155:: @ 08461155 + .incbin "baserom.gba", 0x461155, 0x00011F0 + +gUnk_08462345:: @ 08462345 + .incbin "baserom.gba", 0x462345, 0x00010C5 + +gUnk_0846340A:: @ 0846340A + .incbin "baserom.gba", 0x46340A, 0x0001BED + +gUnk_08464FF7:: @ 08464FF7 + .incbin "baserom.gba", 0x464FF7, 0x0000321 + +gUnk_08465318:: @ 08465318 + .incbin "baserom.gba", 0x465318, 0x000012D + +gUnk_08465445:: @ 08465445 + .incbin "baserom.gba", 0x465445, 0x0000FC4 + +gUnk_08466409:: @ 08466409 + .incbin "baserom.gba", 0x466409, 0x000025B + +gUnk_08466664:: @ 08466664 + .incbin "baserom.gba", 0x466664, 0x00003F4 + +gUnk_08466A58:: @ 08466A58 + .incbin "baserom.gba", 0x466A58, 0x00005CC + +gUnk_08467024:: @ 08467024 + .incbin "baserom.gba", 0x467024, 0x0001203 + +gUnk_08468227:: @ 08468227 + .incbin "baserom.gba", 0x468227, 0x00014C7 + +gUnk_084696EE:: @ 084696EE + .incbin "baserom.gba", 0x4696EE, 0x0006923 + +gUnk_08470011:: @ 08470011 + .incbin "baserom.gba", 0x470011, 0x000000C + +gUnk_0847001D:: @ 0847001D + .incbin "baserom.gba", 0x47001D, 0x000006B + +gUnk_08470088:: @ 08470088 + .incbin "baserom.gba", 0x470088, 0x0000378 + +gUnk_08470400:: @ 08470400 + .incbin "baserom.gba", 0x470400, 0x00010EE + +gUnk_084714EE:: @ 084714EE + .incbin "baserom.gba", 0x4714EE, 0x0000008 + +gUnk_084714F6:: @ 084714F6 + .incbin "baserom.gba", 0x4714F6, 0x0000009 + +gUnk_084714FF:: @ 084714FF + .incbin "baserom.gba", 0x4714FF, 0x00019D7 + +gUnk_08472ED6:: @ 08472ED6 + .incbin "baserom.gba", 0x472ED6, 0x00009E1 + +gUnk_084738B7:: @ 084738B7 + .incbin "baserom.gba", 0x4738B7, 0x0000E11 + +gUnk_084746C8:: @ 084746C8 + .incbin "baserom.gba", 0x4746C8, 0x00019FB + +gUnk_084760C3:: @ 084760C3 + .incbin "baserom.gba", 0x4760C3, 0x0009F3E + +gUnk_08480001:: @ 08480001 + .incbin "baserom.gba", 0x480001, 0x0000003 + +gUnk_08480004:: @ 08480004 + .incbin "baserom.gba", 0x480004, 0x0000103 + +gUnk_08480107:: @ 08480107 + .incbin "baserom.gba", 0x480107, 0x00003BB + +gUnk_084804C2:: @ 084804C2 + .incbin "baserom.gba", 0x4804C2, 0x0000346 + +gUnk_08480808:: @ 08480808 + .incbin "baserom.gba", 0x480808, 0x0000C67 + +gUnk_0848146F:: @ 0848146F + .incbin "baserom.gba", 0x48146F, 0x0001C83 + +gUnk_084830F2:: @ 084830F2 + .incbin "baserom.gba", 0x4830F2, 0x0002256 + +gUnk_08485348:: @ 08485348 + .incbin "baserom.gba", 0x485348, 0x0001E26 + +gUnk_0848716E:: @ 0848716E + .incbin "baserom.gba", 0x48716E, 0x0000CE6 + +gUnk_08487E54:: @ 08487E54 + .incbin "baserom.gba", 0x487E54, 0x00081B4 + +gUnk_08490008:: @ 08490008 + .incbin "baserom.gba", 0x490008, 0x00001D9 + +gUnk_084901E1:: @ 084901E1 + .incbin "baserom.gba", 0x4901E1, 0x0003368 + +gUnk_08493549:: @ 08493549 + .incbin "baserom.gba", 0x493549, 0x0002215 + +gUnk_0849575E:: @ 0849575E + .incbin "baserom.gba", 0x49575E, 0x0001618 + +gUnk_08496D76:: @ 08496D76 + .incbin "baserom.gba", 0x496D76, 0x0000D00 + +gUnk_08497A76:: @ 08497A76 + .incbin "baserom.gba", 0x497A76, 0x0001EEE + +gUnk_08499964:: @ 08499964 + .incbin "baserom.gba", 0x499964, 0x00009E5 + +gUnk_0849A349:: @ 0849A349 + .incbin "baserom.gba", 0x49A349, 0x0005DE7 + +gUnk_084A0130:: @ 084A0130 + .incbin "baserom.gba", 0x4A0130, 0x000026F + +gUnk_084A039F:: @ 084A039F + .incbin "baserom.gba", 0x4A039F, 0x000171F + +gUnk_084A1ABE:: @ 084A1ABE + .incbin "baserom.gba", 0x4A1ABE, 0x0001344 + +gUnk_084A2E02:: @ 084A2E02 + .incbin "baserom.gba", 0x4A2E02, 0x00018C6 + +gUnk_084A46C8:: @ 084A46C8 + .incbin "baserom.gba", 0x4A46C8, 0x0000669 + +gUnk_084A4D31:: @ 084A4D31 + .incbin "baserom.gba", 0x4A4D31, 0x00019F9 + +gUnk_084A672A:: @ 084A672A + .incbin "baserom.gba", 0x4A672A, 0x0000A4B + +gUnk_084A7175:: @ 084A7175 + .incbin "baserom.gba", 0x4A7175, 0x0000001 + +gUnk_084A7176:: @ 084A7176 + .incbin "baserom.gba", 0x4A7176, 0x00002F9 + +gUnk_084A746F:: @ 084A746F + .incbin "baserom.gba", 0x4A746F, 0x00009F9 + +gUnk_084A7E68:: @ 084A7E68 + .incbin "baserom.gba", 0x4A7E68, 0x0002BFC + +gUnk_084AAA64:: @ 084AAA64 + .incbin "baserom.gba", 0x4AAA64, 0x0005DE6 + +gUnk_084B084A:: @ 084B084A + .incbin "baserom.gba", 0x4B084A, 0x0000A8A + +gUnk_084B12D4:: @ 084B12D4 + .incbin "baserom.gba", 0x4B12D4, 0x00004EA + +gUnk_084B17BE:: @ 084B17BE + .incbin "baserom.gba", 0x4B17BE, 0x0000045 + +gUnk_084B1803:: @ 084B1803 + .incbin "baserom.gba", 0x4B1803, 0x00002DD + +gUnk_084B1AE0:: @ 084B1AE0 + .incbin "baserom.gba", 0x4B1AE0, 0x0001834 + +gUnk_084B3314:: @ 084B3314 + .incbin "baserom.gba", 0x4B3314, 0x0000F36 + +gUnk_084B424A:: @ 084B424A + .incbin "baserom.gba", 0x4B424A, 0x00005CA + +gUnk_084B4814:: @ 084B4814 + .incbin "baserom.gba", 0x4B4814, 0x00002DD + +gUnk_084B4AF1:: @ 084B4AF1 + .incbin "baserom.gba", 0x4B4AF1, 0x0002782 + +gUnk_084B7273:: @ 084B7273 + .incbin "baserom.gba", 0x4B7273, 0x00048B5 + +gUnk_084BBB28:: @ 084BBB28 + .incbin "baserom.gba", 0x4BBB28, 0x000064C + +gUnk_084BC174:: @ 084BC174 + .incbin "baserom.gba", 0x4BC174, 0x0003E94 + +gUnk_084C0008:: @ 084C0008 + .incbin "baserom.gba", 0x4C0008, 0x000049A + +gUnk_084C04A2:: @ 084C04A2 + .incbin "baserom.gba", 0x4C04A2, 0x000046F + +gUnk_084C0911:: @ 084C0911 + .incbin "baserom.gba", 0x4C0911, 0x000003B + +gUnk_084C094C:: @ 084C094C + .incbin "baserom.gba", 0x4C094C, 0x0001DB4 + +gUnk_084C2700:: @ 084C2700 + .incbin "baserom.gba", 0x4C2700, 0x0002503 + +gUnk_084C4C03:: @ 084C4C03 + .incbin "baserom.gba", 0x4C4C03, 0x000256A + +gUnk_084C716D:: @ 084C716D + .incbin "baserom.gba", 0x4C716D, 0x0000E92 + +gUnk_084C7FFF:: @ 084C7FFF + .incbin "baserom.gba", 0x4C7FFF, 0x00020B1 + +gUnk_084CA0B0:: @ 084CA0B0 + .incbin "baserom.gba", 0x4CA0B0, 0x0003251 + +gUnk_084CD301:: @ 084CD301 + .incbin "baserom.gba", 0x4CD301, 0x000070A + +gUnk_084CDA0B:: @ 084CDA0B + .incbin "baserom.gba", 0x4CDA0B, 0x00025F5 + +gUnk_084D0000:: @ 084D0000 + .incbin "baserom.gba", 0x4D0000, 0x0000004 + +gUnk_084D0004:: @ 084D0004 + .incbin "baserom.gba", 0x4D0004, 0x0000008 + +gUnk_084D000C:: @ 084D000C + .incbin "baserom.gba", 0x4D000C, 0x0000008 + +gUnk_084D0014:: @ 084D0014 + .incbin "baserom.gba", 0x4D0014, 0x0000064 + +gUnk_084D0078:: @ 084D0078 + .incbin "baserom.gba", 0x4D0078, 0x000001F + +gUnk_084D0097:: @ 084D0097 + .incbin "baserom.gba", 0x4D0097, 0x0000029 + +gUnk_084D00C0:: @ 084D00C0 + .incbin "baserom.gba", 0x4D00C0, 0x000036A + +gUnk_084D042A:: @ 084D042A + .incbin "baserom.gba", 0x4D042A, 0x000002F + +gUnk_084D0459:: @ 084D0459 + .incbin "baserom.gba", 0x4D0459, 0x0000ABD + +gUnk_084D0F16:: @ 084D0F16 + .incbin "baserom.gba", 0x4D0F16, 0x000232D + +gUnk_084D3243:: @ 084D3243 + .incbin "baserom.gba", 0x4D3243, 0x00042EE + +gUnk_084D7531:: @ 084D7531 + .incbin "baserom.gba", 0x4D7531, 0x0004C1C + +gUnk_084DC14D:: @ 084DC14D + .incbin "baserom.gba", 0x4DC14D, 0x0002EB2 + +gUnk_084DEFFF:: @ 084DEFFF + .incbin "baserom.gba", 0x4DEFFF, 0x0001001 + +gUnk_084E0000:: @ 084E0000 + .incbin "baserom.gba", 0x4E0000, 0x0000001 + +gUnk_084E0001:: @ 084E0001 + .incbin "baserom.gba", 0x4E0001, 0x000038F + +gUnk_084E0390:: @ 084E0390 + .incbin "baserom.gba", 0x4E0390, 0x0000D4D + +gUnk_084E10DD:: @ 084E10DD + .incbin "baserom.gba", 0x4E10DD, 0x00035EB + +gUnk_084E46C8:: @ 084E46C8 + .incbin "baserom.gba", 0x4E46C8, 0x0000587 + +gUnk_084E4C4F:: @ 084E4C4F + .incbin "baserom.gba", 0x4E4C4F, 0x00002B8 + +gUnk_084E4F07:: @ 084E4F07 + .incbin "baserom.gba", 0x4E4F07, 0x0002067 + +gUnk_084E6F6E:: @ 084E6F6E + .incbin "baserom.gba", 0x4E6F6E, 0x00009AA + +gUnk_084E7918:: @ 084E7918 + .incbin "baserom.gba", 0x4E7918, 0x0001C57 + +gUnk_084E956F:: @ 084E956F + .incbin "baserom.gba", 0x4E956F, 0x0000AC0 + +gUnk_084EA02F:: @ 084EA02F + .incbin "baserom.gba", 0x4EA02F, 0x0004ED0 + +gUnk_084EEEFF:: @ 084EEEFF + .incbin "baserom.gba", 0x4EEEFF, 0x00011F6 + +gUnk_084F00F5:: @ 084F00F5 + .incbin "baserom.gba", 0x4F00F5, 0x0000012 + +gUnk_084F0107:: @ 084F0107 + .incbin "baserom.gba", 0x4F0107, 0x0000747 + +gUnk_084F084E:: @ 084F084E + .incbin "baserom.gba", 0x4F084E, 0x00006B8 + +gUnk_084F0F06:: @ 084F0F06 + .incbin "baserom.gba", 0x4F0F06, 0x00010DB + +gUnk_084F1FE1:: @ 084F1FE1 + .incbin "baserom.gba", 0x4F1FE1, 0x000206D + +gUnk_084F404E:: @ 084F404E + .incbin "baserom.gba", 0x4F404E, 0x00010BB + +gUnk_084F5109:: @ 084F5109 + .incbin "baserom.gba", 0x4F5109, 0x0002316 + +gUnk_084F741F:: @ 084F741F + .incbin "baserom.gba", 0x4F741F, 0x0000B31 + +gUnk_084F7F50:: @ 084F7F50 + .incbin "baserom.gba", 0x4F7F50, 0x0007FB3 + +gUnk_084FFF03:: @ 084FFF03 + .incbin "baserom.gba", 0x4FFF03, 0x00000FD + +gUnk_08500000:: @ 08500000 + .incbin "baserom.gba", 0x500000, 0x0000002 + +gUnk_08500002:: @ 08500002 + .incbin "baserom.gba", 0x500002, 0x0000002 + +gUnk_08500004:: @ 08500004 + .incbin "baserom.gba", 0x500004, 0x0000002 + +gUnk_08500006:: @ 08500006 + .incbin "baserom.gba", 0x500006, 0x0000001 + +gUnk_08500007:: @ 08500007 + .incbin "baserom.gba", 0x500007, 0x0000001 + +gUnk_08500008:: @ 08500008 + .incbin "baserom.gba", 0x500008, 0x0000002 + +gUnk_0850000A:: @ 0850000A + .incbin "baserom.gba", 0x50000A, 0x0000001 + +gUnk_0850000B:: @ 0850000B + .incbin "baserom.gba", 0x50000B, 0x0000001 + +gUnk_0850000C:: @ 0850000C + .incbin "baserom.gba", 0x50000C, 0x0000001 + +gUnk_0850000D:: @ 0850000D + .incbin "baserom.gba", 0x50000D, 0x0000002 + +gUnk_0850000F:: @ 0850000F + .incbin "baserom.gba", 0x50000F, 0x0000001 + +gUnk_08500010:: @ 08500010 + .incbin "baserom.gba", 0x500010, 0x0000001 + +gUnk_08500011:: @ 08500011 + .incbin "baserom.gba", 0x500011, 0x0000003 + +gUnk_08500014:: @ 08500014 + .incbin "baserom.gba", 0x500014, 0x0000008 + +gUnk_0850001C:: @ 0850001C + .incbin "baserom.gba", 0x50001C, 0x0000002 + +gUnk_0850001E:: @ 0850001E + .incbin "baserom.gba", 0x50001E, 0x0000002 + +gUnk_08500020:: @ 08500020 + .incbin "baserom.gba", 0x500020, 0x000001C + +gUnk_0850003C:: @ 0850003C + .incbin "baserom.gba", 0x50003C, 0x0000014 + +gUnk_08500050:: @ 08500050 + .incbin "baserom.gba", 0x500050, 0x0000006 + +gUnk_08500056:: @ 08500056 + .incbin "baserom.gba", 0x500056, 0x000000B + +gUnk_08500061:: @ 08500061 + .incbin "baserom.gba", 0x500061, 0x0000001 + +gUnk_08500062:: @ 08500062 + .incbin "baserom.gba", 0x500062, 0x000000A + +gUnk_0850006C:: @ 0850006C + .incbin "baserom.gba", 0x50006C, 0x0000006 + +gUnk_08500072:: @ 08500072 + .incbin "baserom.gba", 0x500072, 0x000004E + +gUnk_085000C0:: @ 085000C0 + .incbin "baserom.gba", 0x5000C0, 0x0000030 + +gUnk_085000F0:: @ 085000F0 + .incbin "baserom.gba", 0x5000F0, 0x0000008 + +gUnk_085000F8:: @ 085000F8 + .incbin "baserom.gba", 0x5000F8, 0x0000007 + +gUnk_085000FF:: @ 085000FF + .incbin "baserom.gba", 0x5000FF, 0x0000001 + +gUnk_08500100:: @ 08500100 + .incbin "baserom.gba", 0x500100, 0x000001C + +gUnk_0850011C:: @ 0850011C + .incbin "baserom.gba", 0x50011C, 0x0000004 + +gUnk_08500120:: @ 08500120 + .incbin "baserom.gba", 0x500120, 0x0000010 + +gUnk_08500130:: @ 08500130 + .incbin "baserom.gba", 0x500130, 0x0000038 + +gUnk_08500168:: @ 08500168 + .incbin "baserom.gba", 0x500168, 0x0000018 + +gUnk_08500180:: @ 08500180 + .incbin "baserom.gba", 0x500180, 0x0000281 + +gUnk_08500401:: @ 08500401 + .incbin "baserom.gba", 0x500401, 0x0000042 + +gUnk_08500443:: @ 08500443 + .incbin "baserom.gba", 0x500443, 0x0000001 + +gUnk_08500444:: @ 08500444 + .incbin "baserom.gba", 0x500444, 0x0000015 + +gUnk_08500459:: @ 08500459 + .incbin "baserom.gba", 0x500459, 0x000000A + +gUnk_08500463:: @ 08500463 + .incbin "baserom.gba", 0x500463, 0x00001ED + +gUnk_08500650:: @ 08500650 + .incbin "baserom.gba", 0x500650, 0x00001B6 + +gUnk_08500806:: @ 08500806 + .incbin "baserom.gba", 0x500806, 0x0000001 + +gUnk_08500807:: @ 08500807 + .incbin "baserom.gba", 0x500807, 0x0000001 + +gUnk_08500808:: @ 08500808 + .incbin "baserom.gba", 0x500808, 0x0000049 + +gUnk_08500851:: @ 08500851 + .incbin "baserom.gba", 0x500851, 0x00000CA + +gUnk_0850091B:: @ 0850091B + .incbin "baserom.gba", 0x50091B, 0x0000036 + +gUnk_08500951:: @ 08500951 + .incbin "baserom.gba", 0x500951, 0x0000810 + +gUnk_08501161:: @ 08501161 + .incbin "baserom.gba", 0x501161, 0x00001C5 + +gUnk_08501326:: @ 08501326 + .incbin "baserom.gba", 0x501326, 0x000042B + +gUnk_08501751:: @ 08501751 + .incbin "baserom.gba", 0x501751, 0x00002C0 + +gUnk_08501A11:: @ 08501A11 + .incbin "baserom.gba", 0x501A11, 0x00002EF + +gUnk_08501D00:: @ 08501D00 + .incbin "baserom.gba", 0x501D00, 0x0000208 + +gUnk_08501F08:: @ 08501F08 + .incbin "baserom.gba", 0x501F08, 0x0001259 + +gUnk_08503161:: @ 08503161 + .incbin "baserom.gba", 0x503161, 0x00001DB + +gUnk_0850333C:: @ 0850333C + .incbin "baserom.gba", 0x50333C, 0x0001078 + +gUnk_085043B4:: @ 085043B4 + .incbin "baserom.gba", 0x5043B4, 0x0000050 + +gUnk_08504404:: @ 08504404 + .incbin "baserom.gba", 0x504404, 0x00002C4 + +gUnk_085046C8:: @ 085046C8 + .incbin "baserom.gba", 0x5046C8, 0x000016F + +gUnk_08504837:: @ 08504837 + .incbin "baserom.gba", 0x504837, 0x0000829 + +gUnk_08505060:: @ 08505060 + .incbin "baserom.gba", 0x505060, 0x0002206 + +gUnk_08507266:: @ 08507266 + .incbin "baserom.gba", 0x507266, 0x0000D2A + +gUnk_08507F90:: @ 08507F90 + .incbin "baserom.gba", 0x507F90, 0x0001B0F + +gUnk_08509A9F:: @ 08509A9F + .incbin "baserom.gba", 0x509A9F, 0x0000573 + +gUnk_0850A012:: @ 0850A012 + .incbin "baserom.gba", 0x50A012, 0x0001117 + +gUnk_0850B129:: @ 0850B129 + .incbin "baserom.gba", 0x50B129, 0x000107F + +gUnk_0850C1A8:: @ 0850C1A8 + .incbin "baserom.gba", 0x50C1A8, 0x000059D + +gUnk_0850C745:: @ 0850C745 + .incbin "baserom.gba", 0x50C745, 0x0000A8C + +gUnk_0850D1D1:: @ 0850D1D1 + .incbin "baserom.gba", 0x50D1D1, 0x000064D + +gUnk_0850D81E:: @ 0850D81E + .incbin "baserom.gba", 0x50D81E, 0x0000F5D + +gUnk_0850E77B:: @ 0850E77B + .incbin "baserom.gba", 0x50E77B, 0x0001175 + +gUnk_0850F8F0:: @ 0850F8F0 + .incbin "baserom.gba", 0x50F8F0, 0x0000101 + +gUnk_0850F9F1:: @ 0850F9F1 + .incbin "baserom.gba", 0x50F9F1, 0x00000FF + +gUnk_0850FAF0:: @ 0850FAF0 + .incbin "baserom.gba", 0x50FAF0, 0x0000100 + +gUnk_0850FBF0:: @ 0850FBF0 + .incbin "baserom.gba", 0x50FBF0, 0x0000100 + +gUnk_0850FCF0:: @ 0850FCF0 + .incbin "baserom.gba", 0x50FCF0, 0x0000100 + +gUnk_0850FDF0:: @ 0850FDF0 + .incbin "baserom.gba", 0x50FDF0, 0x00000FD + +gUnk_0850FEED:: @ 0850FEED + .incbin "baserom.gba", 0x50FEED, 0x0000001 + +gUnk_0850FEEE:: @ 0850FEEE + .incbin "baserom.gba", 0x50FEEE, 0x0000002 + +gUnk_0850FEF0:: @ 0850FEF0 + .incbin "baserom.gba", 0x50FEF0, 0x00000DE + +gUnk_0850FFCE:: @ 0850FFCE + .incbin "baserom.gba", 0x50FFCE, 0x0000022 + +gUnk_0850FFF0:: @ 0850FFF0 + .incbin "baserom.gba", 0x50FFF0, 0x0000008 + +gUnk_0850FFF8:: @ 0850FFF8 + .incbin "baserom.gba", 0x50FFF8, 0x0000002 + +gUnk_0850FFFA:: @ 0850FFFA + .incbin "baserom.gba", 0x50FFFA, 0x0000002 + +gUnk_0850FFFC:: @ 0850FFFC + .incbin "baserom.gba", 0x50FFFC, 0x0000005 + +gUnk_08510001:: @ 08510001 + .incbin "baserom.gba", 0x510001, 0x0000019 + +gUnk_0851001A:: @ 0851001A + .incbin "baserom.gba", 0x51001A, 0x0000136 + +gUnk_08510150:: @ 08510150 + .incbin "baserom.gba", 0x510150, 0x000012C + +gUnk_0851027C:: @ 0851027C + .incbin "baserom.gba", 0x51027C, 0x00000D4 + +gUnk_08510350:: @ 08510350 + .incbin "baserom.gba", 0x510350, 0x0001BE0 + +gUnk_08511F30:: @ 08511F30 + .incbin "baserom.gba", 0x511F30, 0x0000821 + +gUnk_08512751:: @ 08512751 + .incbin "baserom.gba", 0x512751, 0x00014F3 + +gUnk_08513C44:: @ 08513C44 + .incbin "baserom.gba", 0x513C44, 0x00002DC + +gUnk_08513F20:: @ 08513F20 + .incbin "baserom.gba", 0x513F20, 0x0001829 + +gUnk_08515749:: @ 08515749 + .incbin "baserom.gba", 0x515749, 0x0006DD6 + +gUnk_0851C51F:: @ 0851C51F + .incbin "baserom.gba", 0x51C51F, 0x00030C9 + +gUnk_0851F5E8:: @ 0851F5E8 + .incbin "baserom.gba", 0x51F5E8, 0x0000808 + +gUnk_0851FDF0:: @ 0851FDF0 + .incbin "baserom.gba", 0x51FDF0, 0x00000D9 + +gUnk_0851FEC9:: @ 0851FEC9 + .incbin "baserom.gba", 0x51FEC9, 0x00004C9 + +gUnk_08520392:: @ 08520392 + .incbin "baserom.gba", 0x520392, 0x0000070 + +gUnk_08520402:: @ 08520402 + .incbin "baserom.gba", 0x520402, 0x000004F + +gUnk_08520451:: @ 08520451 + .incbin "baserom.gba", 0x520451, 0x00002BF + +gUnk_08520710:: @ 08520710 + .incbin "baserom.gba", 0x520710, 0x00004B5 + +gUnk_08520BC5:: @ 08520BC5 + .incbin "baserom.gba", 0x520BC5, 0x000187F + +gUnk_08522444:: @ 08522444 + .incbin "baserom.gba", 0x522444, 0x0002001 + +gUnk_08524445:: @ 08524445 + .incbin "baserom.gba", 0x524445, 0x0000121 + +gUnk_08524566:: @ 08524566 + .incbin "baserom.gba", 0x524566, 0x000103C + +gUnk_085255A2:: @ 085255A2 + .incbin "baserom.gba", 0x5255A2, 0x0000A64 + +gUnk_08526006:: @ 08526006 + .incbin "baserom.gba", 0x526006, 0x0001E2C + +gUnk_08527E32:: @ 08527E32 + .incbin "baserom.gba", 0x527E32, 0x0000112 + +gUnk_08527F44:: @ 08527F44 + .incbin "baserom.gba", 0x527F44, 0x00027BD + +gUnk_0852A701:: @ 0852A701 + .incbin "baserom.gba", 0x52A701, 0x0002A02 + +gUnk_0852D103:: @ 0852D103 + .incbin "baserom.gba", 0x52D103, 0x000304F + +gUnk_08530152:: @ 08530152 + .incbin "baserom.gba", 0x530152, 0x00001AE + +gUnk_08530300:: @ 08530300 + .incbin "baserom.gba", 0x530300, 0x0000050 + +gUnk_08530350:: @ 08530350 + .incbin "baserom.gba", 0x530350, 0x0000FD2 + +gUnk_08531322:: @ 08531322 + .incbin "baserom.gba", 0x531322, 0x000099D + +gUnk_08531CBF:: @ 08531CBF + .incbin "baserom.gba", 0x531CBF, 0x0000E2D + +gUnk_08532AEC:: @ 08532AEC + .incbin "baserom.gba", 0x532AEC, 0x0000979 + +gUnk_08533465:: @ 08533465 + .incbin "baserom.gba", 0x533465, 0x00001EE + +gUnk_08533653:: @ 08533653 + .incbin "baserom.gba", 0x533653, 0x0000EE3 + +gUnk_08534536:: @ 08534536 + .incbin "baserom.gba", 0x534536, 0x0001C1C + +gUnk_08536152:: @ 08536152 + .incbin "baserom.gba", 0x536152, 0x0001301 + +gUnk_08537453:: @ 08537453 + .incbin "baserom.gba", 0x537453, 0x0008BB1 + +gUnk_08540004:: @ 08540004 + .incbin "baserom.gba", 0x540004, 0x00000EC + +gUnk_085400F0:: @ 085400F0 + .incbin "baserom.gba", 0x5400F0, 0x0000100 + +gUnk_085401F0:: @ 085401F0 + .incbin "baserom.gba", 0x5401F0, 0x00010CF + +gUnk_085412BF:: @ 085412BF + .incbin "baserom.gba", 0x5412BF, 0x0000076 + +gUnk_08541335:: @ 08541335 + .incbin "baserom.gba", 0x541335, 0x0001FCE + +gUnk_08543303:: @ 08543303 + .incbin "baserom.gba", 0x543303, 0x0000F25 + +gUnk_08544228:: @ 08544228 + .incbin "baserom.gba", 0x544228, 0x000003F + +gUnk_08544267:: @ 08544267 + .incbin "baserom.gba", 0x544267, 0x000009A + +gUnk_08544301:: @ 08544301 + .incbin "baserom.gba", 0x544301, 0x0001365 + +gUnk_08545666:: @ 08545666 + .incbin "baserom.gba", 0x545666, 0x0000F00 + +gUnk_08546566:: @ 08546566 + .incbin "baserom.gba", 0x546566, 0x00019E4 + +gUnk_08547F4A:: @ 08547F4A + .incbin "baserom.gba", 0x547F4A, 0x000092C + +gUnk_08548876:: @ 08548876 + .incbin "baserom.gba", 0x548876, 0x0004666 + +gUnk_0854CEDC:: @ 0854CEDC + .incbin "baserom.gba", 0x54CEDC, 0x0001011 + +gUnk_0854DEED:: @ 0854DEED + .incbin "baserom.gba", 0x54DEED, 0x0002114 + +gUnk_08550001:: @ 08550001 + .incbin "baserom.gba", 0x550001, 0x0000003 + +gUnk_08550004:: @ 08550004 + .incbin "baserom.gba", 0x550004, 0x000000C + +gUnk_08550010:: @ 08550010 + .incbin "baserom.gba", 0x550010, 0x0000044 + +gUnk_08550054:: @ 08550054 + .incbin "baserom.gba", 0x550054, 0x0000400 + +gUnk_08550454:: @ 08550454 + .incbin "baserom.gba", 0x550454, 0x00004FD + +gUnk_08550951:: @ 08550951 + .incbin "baserom.gba", 0x550951, 0x00013BF + +gUnk_08551D10:: @ 08551D10 + .incbin "baserom.gba", 0x551D10, 0x0000513 + +gUnk_08552223:: @ 08552223 + .incbin "baserom.gba", 0x552223, 0x00001E5 + +gUnk_08552408:: @ 08552408 + .incbin "baserom.gba", 0x552408, 0x0001C4C + +gUnk_08554054:: @ 08554054 + .incbin "baserom.gba", 0x554054, 0x0000200 + +gUnk_08554254:: @ 08554254 + .incbin "baserom.gba", 0x554254, 0x0000002 + +gUnk_08554256:: @ 08554256 + .incbin "baserom.gba", 0x554256, 0x00001AD + +gUnk_08554403:: @ 08554403 + .incbin "baserom.gba", 0x554403, 0x0000042 + +gUnk_08554445:: @ 08554445 + .incbin "baserom.gba", 0x554445, 0x0000630 + +gUnk_08554A75:: @ 08554A75 + .incbin "baserom.gba", 0x554A75, 0x00008AF + +gUnk_08555324:: @ 08555324 + .incbin "baserom.gba", 0x555324, 0x0000231 + +gUnk_08555555:: @ 08555555 + .incbin "baserom.gba", 0x555555, 0x000000D + +gUnk_08555562:: @ 08555562 + .incbin "baserom.gba", 0x555562, 0x0000503 + +gUnk_08555A65:: @ 08555A65 + .incbin "baserom.gba", 0x555A65, 0x0000BAB + +gUnk_08556610:: @ 08556610 + .incbin "baserom.gba", 0x556610, 0x000022B + +gUnk_0855683B:: @ 0855683B + .incbin "baserom.gba", 0x55683B, 0x0000519 + +gUnk_08556D54:: @ 08556D54 + .incbin "baserom.gba", 0x556D54, 0x0000183 + +gUnk_08556ED7:: @ 08556ED7 + .incbin "baserom.gba", 0x556ED7, 0x0000435 + +gUnk_0855730C:: @ 0855730C + .incbin "baserom.gba", 0x55730C, 0x0000A4F + +gUnk_08557D5B:: @ 08557D5B + .incbin "baserom.gba", 0x557D5B, 0x00014A7 + +gUnk_08559202:: @ 08559202 + .incbin "baserom.gba", 0x559202, 0x0005428 + +gUnk_0855E62A:: @ 0855E62A + .incbin "baserom.gba", 0x55E62A, 0x0000260 + +gUnk_0855E88A:: @ 0855E88A + .incbin "baserom.gba", 0x55E88A, 0x000177E + +gUnk_08560008:: @ 08560008 + .incbin "baserom.gba", 0x560008, 0x00000FF + +gUnk_08560107:: @ 08560107 + .incbin "baserom.gba", 0x560107, 0x0000258 + +gUnk_0856035F:: @ 0856035F + .incbin "baserom.gba", 0x56035F, 0x000154E + +gUnk_085618AD:: @ 085618AD + .incbin "baserom.gba", 0x5618AD, 0x0001BA9 + +gUnk_08563456:: @ 08563456 + .incbin "baserom.gba", 0x563456, 0x00008BA + +gUnk_08563D10:: @ 08563D10 + .incbin "baserom.gba", 0x563D10, 0x000071B + +gUnk_0856442B:: @ 0856442B + .incbin "baserom.gba", 0x56442B, 0x00002D5 + +gUnk_08564700:: @ 08564700 + .incbin "baserom.gba", 0x564700, 0x0000C1F + +gUnk_0856531F:: @ 0856531F + .incbin "baserom.gba", 0x56531F, 0x0000314 + +gUnk_08565633:: @ 08565633 + .incbin "baserom.gba", 0x565633, 0x0000F1E + +gUnk_08566551:: @ 08566551 + .incbin "baserom.gba", 0x566551, 0x00000D1 + +gUnk_08566622:: @ 08566622 + .incbin "baserom.gba", 0x566622, 0x0000DF3 + +gUnk_08567415:: @ 08567415 + .incbin "baserom.gba", 0x567415, 0x0000C02 + +gUnk_08568017:: @ 08568017 + .incbin "baserom.gba", 0x568017, 0x0000031 + +gUnk_08568048:: @ 08568048 + .incbin "baserom.gba", 0x568048, 0x00060DB + +gUnk_0856E123:: @ 0856E123 + .incbin "baserom.gba", 0x56E123, 0x0001EEE + +gUnk_08570011:: @ 08570011 + .incbin "baserom.gba", 0x570011, 0x00018E0 + +gUnk_085718F1:: @ 085718F1 + .incbin "baserom.gba", 0x5718F1, 0x000071F + +gUnk_08572010:: @ 08572010 + .incbin "baserom.gba", 0x572010, 0x0000679 + +gUnk_08572689:: @ 08572689 + .incbin "baserom.gba", 0x572689, 0x0000795 + +gUnk_08572E1E:: @ 08572E1E + .incbin "baserom.gba", 0x572E1E, 0x000123A + +gUnk_08574058:: @ 08574058 + .incbin "baserom.gba", 0x574058, 0x00021CC + +gUnk_08576224:: @ 08576224 + .incbin "baserom.gba", 0x576224, 0x0001408 + +gUnk_0857762C:: @ 0857762C + .incbin "baserom.gba", 0x57762C, 0x000135B + +gUnk_08578987:: @ 08578987 + .incbin "baserom.gba", 0x578987, 0x00036CB + +gUnk_0857C052:: @ 0857C052 + .incbin "baserom.gba", 0x57C052, 0x0003724 + +gUnk_0857F776:: @ 0857F776 + .incbin "baserom.gba", 0x57F776, 0x000088A + +gUnk_08580000:: @ 08580000 + .incbin "baserom.gba", 0x580000, 0x0000008 + +gUnk_08580008:: @ 08580008 + .incbin "baserom.gba", 0x580008, 0x000003E + +gUnk_08580046:: @ 08580046 + .incbin "baserom.gba", 0x580046, 0x0000030 + +gUnk_08580076:: @ 08580076 + .incbin "baserom.gba", 0x580076, 0x0000030 + +gUnk_085800A6:: @ 085800A6 + .incbin "baserom.gba", 0x5800A6, 0x00000AC + +gUnk_08580152:: @ 08580152 + .incbin "baserom.gba", 0x580152, 0x0000306 + +gUnk_08580458:: @ 08580458 + .incbin "baserom.gba", 0x580458, 0x00003B0 + +gUnk_08580808:: @ 08580808 + .incbin "baserom.gba", 0x580808, 0x000004F + +gUnk_08580857:: @ 08580857 + .incbin "baserom.gba", 0x580857, 0x0006E11 + +gUnk_08587668:: @ 08587668 + .incbin "baserom.gba", 0x587668, 0x00007F9 + +gUnk_08587E61:: @ 08587E61 + .incbin "baserom.gba", 0x587E61, 0x00081A0 + +gUnk_08590001:: @ 08590001 + .incbin "baserom.gba", 0x590001, 0x00000F1 + +gUnk_085900F2:: @ 085900F2 + .incbin "baserom.gba", 0x5900F2, 0x00007EF + +gUnk_085908E1:: @ 085908E1 + .incbin "baserom.gba", 0x5908E1, 0x0000CC9 + +gUnk_085915AA:: @ 085915AA + .incbin "baserom.gba", 0x5915AA, 0x00081CD + +gUnk_08599777:: @ 08599777 + .incbin "baserom.gba", 0x599777, 0x000184D + +gUnk_0859AFC4:: @ 0859AFC4 + .incbin "baserom.gba", 0x59AFC4, 0x000503C + +gUnk_085A0000:: @ 085A0000 + .incbin "baserom.gba", 0x5A0000, 0x0000001 + +gUnk_085A0001:: @ 085A0001 + .incbin "baserom.gba", 0x5A0001, 0x0000001 + +gUnk_085A0002:: @ 085A0002 + .incbin "baserom.gba", 0x5A0002, 0x0000006 + +gUnk_085A0008:: @ 085A0008 + .incbin "baserom.gba", 0x5A0008, 0x0000002 + +gUnk_085A000A:: @ 085A000A + .incbin "baserom.gba", 0x5A000A, 0x0000002 + +gUnk_085A000C:: @ 085A000C + .incbin "baserom.gba", 0x5A000C, 0x0000003 + +gUnk_085A000F:: @ 085A000F + .incbin "baserom.gba", 0x5A000F, 0x0000009 + +gUnk_085A0018:: @ 085A0018 + .incbin "baserom.gba", 0x5A0018, 0x0000006 + +gUnk_085A001E:: @ 085A001E + .incbin "baserom.gba", 0x5A001E, 0x0000001 + +gUnk_085A001F:: @ 085A001F + .incbin "baserom.gba", 0x5A001F, 0x000001D + +gUnk_085A003C:: @ 085A003C + .incbin "baserom.gba", 0x5A003C, 0x000001A + +gUnk_085A0056:: @ 085A0056 + .incbin "baserom.gba", 0x5A0056, 0x0000008 + +gUnk_085A005E:: @ 085A005E + .incbin "baserom.gba", 0x5A005E, 0x0000033 + +gUnk_085A0091:: @ 085A0091 + .incbin "baserom.gba", 0x5A0091, 0x000005F + +gUnk_085A00F0:: @ 085A00F0 + .incbin "baserom.gba", 0x5A00F0, 0x0000211 + +gUnk_085A0301:: @ 085A0301 + .incbin "baserom.gba", 0x5A0301, 0x0000100 + +gUnk_085A0401:: @ 085A0401 + .incbin "baserom.gba", 0x5A0401, 0x0000033 + +gUnk_085A0434:: @ 085A0434 + .incbin "baserom.gba", 0x5A0434, 0x000000F + +gUnk_085A0443:: @ 085A0443 + .incbin "baserom.gba", 0x5A0443, 0x0000006 + +gUnk_085A0449:: @ 085A0449 + .incbin "baserom.gba", 0x5A0449, 0x000001A + +gUnk_085A0463:: @ 085A0463 + .incbin "baserom.gba", 0x5A0463, 0x0000001 + +gUnk_085A0464:: @ 085A0464 + .incbin "baserom.gba", 0x5A0464, 0x00003A2 + +gUnk_085A0806:: @ 085A0806 + .incbin "baserom.gba", 0x5A0806, 0x000267A + +gGlobalPalettes:: @ 085A2E80 + .incbin "baserom.gba", 0x5A2E80, 0x0001382 + +gUnk_085A4202:: @ 085A4202 + .incbin "baserom.gba", 0x5A4202, 0x0001CED + +gUnk_085A5EEF:: @ 085A5EEF + .incbin "baserom.gba", 0x5A5EEF, 0x0000037 + +gUnk_085A5F26:: @ 085A5F26 + .incbin "baserom.gba", 0x5A5F26, 0x00013FA + +gUnk_085A7320:: @ 085A7320 + .incbin "baserom.gba", 0x5A7320, 0x0002480 + +gUnk_085A97A0:: @ 085A97A0 + .incbin "baserom.gba", 0x5A97A0, 0x0000CA1 + +gUnk_085AA441:: @ 085AA441 + .incbin "baserom.gba", 0x5AA441, 0x0002B76 + +gUnk_085ACFB7:: @ 085ACFB7 + .incbin "baserom.gba", 0x5ACFB7, 0x0002FA5 + +gUnk_085AFF5C:: @ 085AFF5C + .incbin "baserom.gba", 0x5AFF5C, 0x000001C + +gUnk_085AFF78:: @ 085AFF78 + .incbin "baserom.gba", 0x5AFF78, 0x0000058 + +gUnk_085AFFD0:: @ 085AFFD0 + .incbin "baserom.gba", 0x5AFFD0, 0x0000030 + +gUnk_085B0000:: @ 085B0000 + .incbin "baserom.gba", 0x5B0000, 0x0000006 + +gUnk_085B0006:: @ 085B0006 + .incbin "baserom.gba", 0x5B0006, 0x0000004 + +gUnk_085B000A:: @ 085B000A + .incbin "baserom.gba", 0x5B000A, 0x0000002 + +gUnk_085B000C:: @ 085B000C + .incbin "baserom.gba", 0x5B000C, 0x0000002 + +gUnk_085B000E:: @ 085B000E + .incbin "baserom.gba", 0x5B000E, 0x000000E + +gUnk_085B001C:: @ 085B001C + .incbin "baserom.gba", 0x5B001C, 0x0000002 + +gUnk_085B001E:: @ 085B001E + .incbin "baserom.gba", 0x5B001E, 0x0000006 + +gUnk_085B0024:: @ 085B0024 + .incbin "baserom.gba", 0x5B0024, 0x0000012 + +gUnk_085B0036:: @ 085B0036 + .incbin "baserom.gba", 0x5B0036, 0x0000006 + +gUnk_085B003C:: @ 085B003C + .incbin "baserom.gba", 0x5B003C, 0x000000C + +gUnk_085B0048:: @ 085B0048 + .incbin "baserom.gba", 0x5B0048, 0x000000C + +gUnk_085B0054:: @ 085B0054 + .incbin "baserom.gba", 0x5B0054, 0x0000004 + +gUnk_085B0058:: @ 085B0058 + .incbin "baserom.gba", 0x5B0058, 0x000000C + +gUnk_085B0064:: @ 085B0064 + .incbin "baserom.gba", 0x5B0064, 0x0000001 + +gUnk_085B0065:: @ 085B0065 + .incbin "baserom.gba", 0x5B0065, 0x000000F + +gUnk_085B0074:: @ 085B0074 + .incbin "baserom.gba", 0x5B0074, 0x0000060 + +gUnk_085B00D4:: @ 085B00D4 + .incbin "baserom.gba", 0x5B00D4, 0x0000026 + +gUnk_085B00FA:: @ 085B00FA + .incbin "baserom.gba", 0x5B00FA, 0x0000308 + +gUnk_085B0402:: @ 085B0402 + .incbin "baserom.gba", 0x5B0402, 0x0000032 + +gUnk_085B0434:: @ 085B0434 + .incbin "baserom.gba", 0x5B0434, 0x0000015 + +gUnk_085B0449:: @ 085B0449 + .incbin "baserom.gba", 0x5B0449, 0x000001A + +gUnk_085B0463:: @ 085B0463 + .incbin "baserom.gba", 0x5B0463, 0x0000001 + +gUnk_085B0464:: @ 085B0464 + .incbin "baserom.gba", 0x5B0464, 0x00003A2 + +gUnk_085B0806:: @ 085B0806 + .incbin "baserom.gba", 0x5B0806, 0x0000001 + +gUnk_085B0807:: @ 085B0807 + .incbin "baserom.gba", 0x5B0807, 0x000088D + +gUnk_085B1094:: @ 085B1094 + .incbin "baserom.gba", 0x5B1094, 0x00030EC + +gUnk_085B4180:: @ 085B4180 + .incbin "baserom.gba", 0x5B4180, 0x0000EB5 + +gUnk_085B5035:: @ 085B5035 + .incbin "baserom.gba", 0x5B5035, 0x0000E8B + +gUnk_085B5EC0:: @ 085B5EC0 + .incbin "baserom.gba", 0x5B5EC0, 0x00000E0 + +gUnk_085B5FA0:: @ 085B5FA0 + .incbin "baserom.gba", 0x5B5FA0, 0x00000E0 + +gUnk_085B6080:: @ 085B6080 + .incbin "baserom.gba", 0x5B6080, 0x00000E0 + +gUnk_085B6160:: @ 085B6160 + .incbin "baserom.gba", 0x5B6160, 0x00000E0 + +gUnk_085B6240:: @ 085B6240 + .incbin "baserom.gba", 0x5B6240, 0x00000E0 + +gUnk_085B6320:: @ 085B6320 + .incbin "baserom.gba", 0x5B6320, 0x0000013 + +gUnk_085B6333:: @ 085B6333 + .incbin "baserom.gba", 0x5B6333, 0x00000CD + +gUnk_085B6400:: @ 085B6400 + .incbin "baserom.gba", 0x5B6400, 0x00000E0 + +gUnk_085B64E0:: @ 085B64E0 + .incbin "baserom.gba", 0x5B64E0, 0x00000E0 + +gUnk_085B65C0:: @ 085B65C0 + .incbin "baserom.gba", 0x5B65C0, 0x00000E0 + +gUnk_085B66A0:: @ 085B66A0 + .incbin "baserom.gba", 0x5B66A0, 0x00000E0 + +gUnk_085B6780:: @ 085B6780 + .incbin "baserom.gba", 0x5B6780, 0x00000E0 + +gUnk_085B6860:: @ 085B6860 + .incbin "baserom.gba", 0x5B6860, 0x00000E0 + +gUnk_085B6940:: @ 085B6940 + .incbin "baserom.gba", 0x5B6940, 0x00000E0 + +gUnk_085B6A20:: @ 085B6A20 + .incbin "baserom.gba", 0x5B6A20, 0x00000E0 + +gUnk_085B6B00:: @ 085B6B00 + .incbin "baserom.gba", 0x5B6B00, 0x00000E0 + +gUnk_085B6BE0:: @ 085B6BE0 + .incbin "baserom.gba", 0x5B6BE0, 0x00000E0 + +gUnk_085B6CC0:: @ 085B6CC0 + .incbin "baserom.gba", 0x5B6CC0, 0x00000E0 + +gUnk_085B6DA0:: @ 085B6DA0 + .incbin "baserom.gba", 0x5B6DA0, 0x00000E0 + +gUnk_085B6E80:: @ 085B6E80 + .incbin "baserom.gba", 0x5B6E80, 0x00000C6 + +gUnk_085B6F46:: @ 085B6F46 + .incbin "baserom.gba", 0x5B6F46, 0x000001A + +gUnk_085B6F60:: @ 085B6F60 + .incbin "baserom.gba", 0x5B6F60, 0x00000E0 + +gUnk_085B7040:: @ 085B7040 + .incbin "baserom.gba", 0x5B7040, 0x00000E0 + +gUnk_085B7120:: @ 085B7120 + .incbin "baserom.gba", 0x5B7120, 0x00000E0 + +gUnk_085B7200:: @ 085B7200 + .incbin "baserom.gba", 0x5B7200, 0x00000E0 + +gUnk_085B72E0:: @ 085B72E0 + .incbin "baserom.gba", 0x5B72E0, 0x00000E0 + +gUnk_085B73C0:: @ 085B73C0 + .incbin "baserom.gba", 0x5B73C0, 0x00000E0 + +gUnk_085B74A0:: @ 085B74A0 + .incbin "baserom.gba", 0x5B74A0, 0x00000E0 + +gUnk_085B7580:: @ 085B7580 + .incbin "baserom.gba", 0x5B7580, 0x00000E0 + +gUnk_085B7660:: @ 085B7660 + .incbin "baserom.gba", 0x5B7660, 0x00000E0 + +gUnk_085B7740:: @ 085B7740 + .incbin "baserom.gba", 0x5B7740, 0x00000E0 + +gUnk_085B7820:: @ 085B7820 + .incbin "baserom.gba", 0x5B7820, 0x00000E0 + +gUnk_085B7900:: @ 085B7900 + .incbin "baserom.gba", 0x5B7900, 0x00000E0 + +gUnk_085B79E0:: @ 085B79E0 + .incbin "baserom.gba", 0x5B79E0, 0x00000E0 + +gUnk_085B7AC0:: @ 085B7AC0 + .incbin "baserom.gba", 0x5B7AC0, 0x00000E0 + +gUnk_085B7BA0:: @ 085B7BA0 + .incbin "baserom.gba", 0x5B7BA0, 0x00000E0 + +gUnk_085B7C80:: @ 085B7C80 + .incbin "baserom.gba", 0x5B7C80, 0x00000E0 + +gUnk_085B7D60:: @ 085B7D60 + .incbin "baserom.gba", 0x5B7D60, 0x00000E0 + +gUnk_085B7E40:: @ 085B7E40 + .incbin "baserom.gba", 0x5B7E40, 0x00000E0 + +gUnk_085B7F20:: @ 085B7F20 + .incbin "baserom.gba", 0x5B7F20, 0x00000E0 + +gUnk_085B8000:: @ 085B8000 + .incbin "baserom.gba", 0x5B8000, 0x00000E0 + +gUnk_085B80E0:: @ 085B80E0 + .incbin "baserom.gba", 0x5B80E0, 0x00000E0 + +gUnk_085B81C0:: @ 085B81C0 + .incbin "baserom.gba", 0x5B81C0, 0x00000E0 + +gUnk_085B82A0:: @ 085B82A0 + .incbin "baserom.gba", 0x5B82A0, 0x00000E0 + +gUnk_085B8380:: @ 085B8380 + .incbin "baserom.gba", 0x5B8380, 0x00000E0 + +gUnk_085B8460:: @ 085B8460 + .incbin "baserom.gba", 0x5B8460, 0x00000E0 + +gUnk_085B8540:: @ 085B8540 + .incbin "baserom.gba", 0x5B8540, 0x00000E0 + +gUnk_085B8620:: @ 085B8620 + .incbin "baserom.gba", 0x5B8620, 0x00000E0 + +gUnk_085B8700:: @ 085B8700 + .incbin "baserom.gba", 0x5B8700, 0x00000E0 + +gUnk_085B87E0:: @ 085B87E0 + .incbin "baserom.gba", 0x5B87E0, 0x00000E0 + +gUnk_085B88C0:: @ 085B88C0 + .incbin "baserom.gba", 0x5B88C0, 0x0000120 + +gUnk_085B89E0:: @ 085B89E0 + .incbin "baserom.gba", 0x5B89E0, 0x00000E0 + +gUnk_085B8AC0:: @ 085B8AC0 + .incbin "baserom.gba", 0x5B8AC0, 0x00000E0 + +gUnk_085B8BA0:: @ 085B8BA0 + .incbin "baserom.gba", 0x5B8BA0, 0x00000E0 + +gUnk_085B8C80:: @ 085B8C80 + .incbin "baserom.gba", 0x5B8C80, 0x00000E0 + +gUnk_085B8D60:: @ 085B8D60 + .incbin "baserom.gba", 0x5B8D60, 0x00000E0 + +gUnk_085B8E40:: @ 085B8E40 + .incbin "baserom.gba", 0x5B8E40, 0x00000E0 + +gUnk_085B8F20:: @ 085B8F20 + .incbin "baserom.gba", 0x5B8F20, 0x00000E0 + +gUnk_085B9000:: @ 085B9000 + .incbin "baserom.gba", 0x5B9000, 0x00000E0 + +gUnk_085B90E0:: @ 085B90E0 + .incbin "baserom.gba", 0x5B90E0, 0x00000E0 + +gUnk_085B91C0:: @ 085B91C0 + .incbin "baserom.gba", 0x5B91C0, 0x00000E0 + +gUnk_085B92A0:: @ 085B92A0 + .incbin "baserom.gba", 0x5B92A0, 0x00000E0 + +gUnk_085B9380:: @ 085B9380 + .incbin "baserom.gba", 0x5B9380, 0x00000E0 + +gUnk_085B9460:: @ 085B9460 + .incbin "baserom.gba", 0x5B9460, 0x00000E0 + +gUnk_085B9540:: @ 085B9540 + .incbin "baserom.gba", 0x5B9540, 0x00000E0 + +gUnk_085B9620:: @ 085B9620 + .incbin "baserom.gba", 0x5B9620, 0x00000E0 + +gUnk_085B9700:: @ 085B9700 + .incbin "baserom.gba", 0x5B9700, 0x00000E0 + +gUnk_085B97E0:: @ 085B97E0 + .incbin "baserom.gba", 0x5B97E0, 0x00000E0 + +gUnk_085B98C0:: @ 085B98C0 + .incbin "baserom.gba", 0x5B98C0, 0x00000E0 + +gUnk_085B99A0:: @ 085B99A0 + .incbin "baserom.gba", 0x5B99A0, 0x00000E0 + +gUnk_085B9A80:: @ 085B9A80 + .incbin "baserom.gba", 0x5B9A80, 0x00000E0 + +gUnk_085B9B60:: @ 085B9B60 + .incbin "baserom.gba", 0x5B9B60, 0x00000E0 + +gUnk_085B9C40:: @ 085B9C40 + .incbin "baserom.gba", 0x5B9C40, 0x00000E0 + +gUnk_085B9D20:: @ 085B9D20 + .incbin "baserom.gba", 0x5B9D20, 0x00000E0 + +gUnk_085B9E00:: @ 085B9E00 + .incbin "baserom.gba", 0x5B9E00, 0x00000E0 + +gUnk_085B9EE0:: @ 085B9EE0 + .incbin "baserom.gba", 0x5B9EE0, 0x00000E0 + +gUnk_085B9FC0:: @ 085B9FC0 + .incbin "baserom.gba", 0x5B9FC0, 0x00000E0 + +gUnk_085BA0A0:: @ 085BA0A0 + .incbin "baserom.gba", 0x5BA0A0, 0x00000E0 + +gUnk_085BA180:: @ 085BA180 + .incbin "baserom.gba", 0x5BA180, 0x00000E0 + +gUnk_085BA260:: @ 085BA260 + .incbin "baserom.gba", 0x5BA260, 0x00000E0 + +gUnk_085BA340:: @ 085BA340 + .incbin "baserom.gba", 0x5BA340, 0x00000E0 + +gUnk_085BA420:: @ 085BA420 + .incbin "baserom.gba", 0x5BA420, 0x00000E0 + +gUnk_085BA500:: @ 085BA500 + .incbin "baserom.gba", 0x5BA500, 0x00000E0 + +gUnk_085BA5E0:: @ 085BA5E0 + .incbin "baserom.gba", 0x5BA5E0, 0x00000E0 + +gUnk_085BA6C0:: @ 085BA6C0 + .incbin "baserom.gba", 0x5BA6C0, 0x00000E0 + +gUnk_085BA7A0:: @ 085BA7A0 + .incbin "baserom.gba", 0x5BA7A0, 0x00000E0 + +gUnk_085BA880:: @ 085BA880 + .incbin "baserom.gba", 0x5BA880, 0x00000E0 + +gUnk_085BA960:: @ 085BA960 + .incbin "baserom.gba", 0x5BA960, 0x00000E0 + +gUnk_085BAA40:: @ 085BAA40 + .incbin "baserom.gba", 0x5BAA40, 0x00000E0 + +gUnk_085BAB20:: @ 085BAB20 + .incbin "baserom.gba", 0x5BAB20, 0x00000E0 + +gUnk_085BAC00:: @ 085BAC00 + .incbin "baserom.gba", 0x5BAC00, 0x00000E0 + +gUnk_085BACE0:: @ 085BACE0 + .incbin "baserom.gba", 0x5BACE0, 0x00000E0 + +gUnk_085BADC0:: @ 085BADC0 + .incbin "baserom.gba", 0x5BADC0, 0x00000E0 + +gUnk_085BAEA0:: @ 085BAEA0 + .incbin "baserom.gba", 0x5BAEA0, 0x00000E0 + +gUnk_085BAF80:: @ 085BAF80 + .incbin "baserom.gba", 0x5BAF80, 0x00000E0 + +gUnk_085BB060:: @ 085BB060 + .incbin "baserom.gba", 0x5BB060, 0x00000E0 + +gUnk_085BB140:: @ 085BB140 + .incbin "baserom.gba", 0x5BB140, 0x00000E0 + +gUnk_085BB220:: @ 085BB220 + .incbin "baserom.gba", 0x5BB220, 0x00000E0 + +gUnk_085BB300:: @ 085BB300 + .incbin "baserom.gba", 0x5BB300, 0x00000E0 + +gUnk_085BB3E0:: @ 085BB3E0 + .incbin "baserom.gba", 0x5BB3E0, 0x00000E0 + +gUnk_085BB4C0:: @ 085BB4C0 + .incbin "baserom.gba", 0x5BB4C0, 0x00000E0 + +gUnk_085BB5A0:: @ 085BB5A0 + .incbin "baserom.gba", 0x5BB5A0, 0x00000E0 + +gUnk_085BB680:: @ 085BB680 + .incbin "baserom.gba", 0x5BB680, 0x00000E0 + +gUnk_085BB760:: @ 085BB760 + .incbin "baserom.gba", 0x5BB760, 0x00000E0 + +gUnk_085BB840:: @ 085BB840 + .incbin "baserom.gba", 0x5BB840, 0x00000E0 + +gUnk_085BB920:: @ 085BB920 + .incbin "baserom.gba", 0x5BB920, 0x00000E0 + +gUnk_085BBA00:: @ 085BBA00 + .incbin "baserom.gba", 0x5BBA00, 0x00000E0 + +gUnk_085BBAE0:: @ 085BBAE0 + .incbin "baserom.gba", 0x5BBAE0, 0x00000E0 + +gUnk_085BBBC0:: @ 085BBBC0 + .incbin "baserom.gba", 0x5BBBC0, 0x00000E0 + +gUnk_085BBCA0:: @ 085BBCA0 + .incbin "baserom.gba", 0x5BBCA0, 0x00000E0 + +gUnk_085BBD80:: @ 085BBD80 + .incbin "baserom.gba", 0x5BBD80, 0x00000E0 + +gUnk_085BBE60:: @ 085BBE60 + .incbin "baserom.gba", 0x5BBE60, 0x00000E0 + +gUnk_085BBF40:: @ 085BBF40 + .incbin "baserom.gba", 0x5BBF40, 0x00000E0 + +gUnk_085BC020:: @ 085BC020 + .incbin "baserom.gba", 0x5BC020, 0x00000E0 + +gUnk_085BC100:: @ 085BC100 + .incbin "baserom.gba", 0x5BC100, 0x00000E0 + +gUnk_085BC1E0:: @ 085BC1E0 + .incbin "baserom.gba", 0x5BC1E0, 0x00000E0 + +gUnk_085BC2C0:: @ 085BC2C0 + .incbin "baserom.gba", 0x5BC2C0, 0x00000E0 + +gUnk_085BC3A0:: @ 085BC3A0 + .incbin "baserom.gba", 0x5BC3A0, 0x00000E0 + +gUnk_085BC480:: @ 085BC480 + .incbin "baserom.gba", 0x5BC480, 0x00000E0 + +gUnk_085BC560:: @ 085BC560 + .incbin "baserom.gba", 0x5BC560, 0x00000E0 + +gUnk_085BC640:: @ 085BC640 + .incbin "baserom.gba", 0x5BC640, 0x00000E0 + +gUnk_085BC720:: @ 085BC720 + .incbin "baserom.gba", 0x5BC720, 0x00000E0 + +gUnk_085BC800:: @ 085BC800 + .incbin "baserom.gba", 0x5BC800, 0x00000E0 + +gUnk_085BC8E0:: @ 085BC8E0 + .incbin "baserom.gba", 0x5BC8E0, 0x00000E0 + +gUnk_085BC9C0:: @ 085BC9C0 + .incbin "baserom.gba", 0x5BC9C0, 0x00000E0 + +gUnk_085BCAA0:: @ 085BCAA0 + .incbin "baserom.gba", 0x5BCAA0, 0x00000E0 + +gUnk_085BCB80:: @ 085BCB80 + .incbin "baserom.gba", 0x5BCB80, 0x00000E0 + +gUnk_085BCC60:: @ 085BCC60 + .incbin "baserom.gba", 0x5BCC60, 0x00000E0 + +gUnk_085BCD40:: @ 085BCD40 + .incbin "baserom.gba", 0x5BCD40, 0x00000E0 + +gUnk_085BCE20:: @ 085BCE20 + .incbin "baserom.gba", 0x5BCE20, 0x00000E0 + +gUnk_085BCF00:: @ 085BCF00 + .incbin "baserom.gba", 0x5BCF00, 0x00000E0 + +gUnk_085BCFE0:: @ 085BCFE0 + .incbin "baserom.gba", 0x5BCFE0, 0x00000E0 + +gUnk_085BD0C0:: @ 085BD0C0 + .incbin "baserom.gba", 0x5BD0C0, 0x00000E0 + +gUnk_085BD1A0:: @ 085BD1A0 + .incbin "baserom.gba", 0x5BD1A0, 0x00000E0 + +gUnk_085BD280:: @ 085BD280 + .incbin "baserom.gba", 0x5BD280, 0x00000E0 + +gUnk_085BD360:: @ 085BD360 + .incbin "baserom.gba", 0x5BD360, 0x00000A4 + +gUnk_085BD404:: @ 085BD404 + .incbin "baserom.gba", 0x5BD404, 0x000003C + +gUnk_085BD440:: @ 085BD440 + .incbin "baserom.gba", 0x5BD440, 0x00000E0 + +gUnk_085BD520:: @ 085BD520 + .incbin "baserom.gba", 0x5BD520, 0x0000100 + +gUnk_085BD620:: @ 085BD620 + .incbin "graphics/intro/capcom.gbapal" + +gUnk_085BD640:: @ 085BD640 + .incbin "graphics/intro/nintendo.gbapal" + +gUnk_085BD660:: @ 085BD660 + .incbin "baserom.gba", 0x5BD660, 0x0002898 + +gUnk_085BFEF8:: @ 085BFEF8 + .incbin "baserom.gba", 0x5BFEF8, 0x000002E + +gUnk_085BFF26:: @ 085BFF26 + .incbin "baserom.gba", 0x5BFF26, 0x00000AE + +gUnk_085BFFD4:: @ 085BFFD4 + .incbin "baserom.gba", 0x5BFFD4, 0x0000024 + +gUnk_085BFFF8:: @ 085BFFF8 + .incbin "baserom.gba", 0x5BFFF8, 0x0000007 + +gUnk_085BFFFF:: @ 085BFFFF + .incbin "baserom.gba", 0x5BFFFF, 0x000081D + +gUnk_085C081C:: @ 085C081C + .incbin "baserom.gba", 0x5C081C, 0x0001163 + +gUnk_085C197F:: @ 085C197F + .incbin "baserom.gba", 0x5C197F, 0x00003D1 + +gUnk_085C1D50:: @ 085C1D50 + .incbin "baserom.gba", 0x5C1D50, 0x0000A0C + +gUnk_085C275C:: @ 085C275C + .incbin "baserom.gba", 0x5C275C, 0x0000AD6 + +gUnk_085C3232:: @ 085C3232 + .incbin "baserom.gba", 0x5C3232, 0x00008CE + +gUnk_085C3B00:: @ 085C3B00 + .incbin "baserom.gba", 0x5C3B00, 0x0000438 + +gUnk_085C3F38:: @ 085C3F38 + .incbin "baserom.gba", 0x5C3F38, 0x00006E8 + +gUnk_085C4620:: @ 085C4620 + .incbin "baserom.gba", 0x5C4620, 0x0000500 + +gUnk_085C4B20:: @ 085C4B20 + .incbin "baserom.gba", 0x5C4B20, 0x0000280 + +gUnk_085C4DA0:: @ 085C4DA0 + .incbin "baserom.gba", 0x5C4DA0, 0x00000C0 + +gUnk_085C4E60:: @ 085C4E60 + .incbin "baserom.gba", 0x5C4E60, 0x00000C0 + +gUnk_085C4F20:: @ 085C4F20 + .incbin "baserom.gba", 0x5C4F20, 0x00000C0 + +gUnk_085C4FE0:: @ 085C4FE0 + .incbin "baserom.gba", 0x5C4FE0, 0x000B021 + +gUnk_085D0001:: @ 085D0001 + .incbin "baserom.gba", 0x5D0001, 0x0000106 + +gUnk_085D0107:: @ 085D0107 + .incbin "baserom.gba", 0x5D0107, 0x0000055 + +gUnk_085D015C:: @ 085D015C + .incbin "baserom.gba", 0x5D015C, 0x000045B + +gUnk_085D05B7:: @ 085D05B7 + .incbin "baserom.gba", 0x5D05B7, 0x00003A6 + +gUnk_085D095D:: @ 085D095D + .incbin "baserom.gba", 0x5D095D, 0x0001E00 + +gUnk_085D275D:: @ 085D275D + .incbin "baserom.gba", 0x5D275D, 0x00009A3 + +gUnk_085D3100:: @ 085D3100 + .incbin "baserom.gba", 0x5D3100, 0x000DC31 + +gUnk_085E0D31:: @ 085E0D31 + .incbin "baserom.gba", 0x5E0D31, 0x00045BC + +gUnk_085E52ED:: @ 085E52ED + .incbin "baserom.gba", 0x5E52ED, 0x0004D8F + +gUnk_085EA07C:: @ 085EA07C + .incbin "baserom.gba", 0x5EA07C, 0x0005F84 + +gUnk_085F0000:: @ 085F0000 + .incbin "baserom.gba", 0x5F0000, 0x0000006 + +gUnk_085F0006:: @ 085F0006 + .incbin "baserom.gba", 0x5F0006, 0x0000002 + +gUnk_085F0008:: @ 085F0008 + .incbin "baserom.gba", 0x5F0008, 0x0000002 + +gUnk_085F000A:: @ 085F000A + .incbin "baserom.gba", 0x5F000A, 0x0000011 + +gUnk_085F001B:: @ 085F001B + .incbin "baserom.gba", 0x5F001B, 0x0000003 + +gUnk_085F001E:: @ 085F001E + .incbin "baserom.gba", 0x5F001E, 0x000001E + +gUnk_085F003C:: @ 085F003C + .incbin "baserom.gba", 0x5F003C, 0x0000036 + +gUnk_085F0072:: @ 085F0072 + .incbin "baserom.gba", 0x5F0072, 0x0000006 + +gUnk_085F0078:: @ 085F0078 + .incbin "baserom.gba", 0x5F0078, 0x0000014 + +gUnk_085F008C:: @ 085F008C + .incbin "baserom.gba", 0x5F008C, 0x0000376 + +gUnk_085F0402:: @ 085F0402 + .incbin "baserom.gba", 0x5F0402, 0x0000032 + +gUnk_085F0434:: @ 085F0434 + .incbin "baserom.gba", 0x5F0434, 0x000000F + +gUnk_085F0443:: @ 085F0443 + .incbin "baserom.gba", 0x5F0443, 0x0000008 + +gUnk_085F044B:: @ 085F044B + .incbin "baserom.gba", 0x5F044B, 0x000000E + +gUnk_085F0459:: @ 085F0459 + .incbin "baserom.gba", 0x5F0459, 0x0000005 + +gUnk_085F045E:: @ 085F045E + .incbin "baserom.gba", 0x5F045E, 0x00003A9 + +gUnk_085F0807:: @ 085F0807 + .incbin "baserom.gba", 0x5F0807, 0x0000057 + +gUnk_085F085E:: @ 085F085E + .incbin "baserom.gba", 0x5F085E, 0x000F259 + +gUnk_085FFAB7:: @ 085FFAB7 + .incbin "baserom.gba", 0x5FFAB7, 0x0000050 + +gUnk_085FFB07:: @ 085FFB07 + .incbin "baserom.gba", 0x5FFB07, 0x00004F8 + +gUnk_085FFFFF:: @ 085FFFFF + .incbin "baserom.gba", 0x5FFFFF, 0x0000001 + +gUnk_08600000:: @ 08600000 + .incbin "baserom.gba", 0x600000, 0x0000001 + +gUnk_08600001:: @ 08600001 + .incbin "baserom.gba", 0x600001, 0x0000005 + +gUnk_08600006:: @ 08600006 + .incbin "baserom.gba", 0x600006, 0x00000E3 + +gUnk_086000E9:: @ 086000E9 + .incbin "baserom.gba", 0x6000E9, 0x0000237 + +gUnk_08600320:: @ 08600320 + .incbin "baserom.gba", 0x600320, 0x0000314 + +gUnk_08600634:: @ 08600634 + .incbin "baserom.gba", 0x600634, 0x00000FC + +gUnk_08600730:: @ 08600730 + .incbin "baserom.gba", 0x600730, 0x00000D8 + +gUnk_08600808:: @ 08600808 + .incbin "baserom.gba", 0x600808, 0x0003458 + +gUnk_08603C60:: @ 08603C60 + .incbin "baserom.gba", 0x603C60, 0x000177E + +gUnk_086053DE:: @ 086053DE + .incbin "baserom.gba", 0x6053DE, 0x0000421 + +gUnk_086057FF:: @ 086057FF + .incbin "baserom.gba", 0x6057FF, 0x0000F04 + +gUnk_08606703:: @ 08606703 + .incbin "baserom.gba", 0x606703, 0x0000750 + +gUnk_08606E53:: @ 08606E53 + .incbin "baserom.gba", 0x606E53, 0x00010AD + +gUnk_08607F00:: @ 08607F00 + .incbin "baserom.gba", 0x607F00, 0x0000052 + +gUnk_08607F52:: @ 08607F52 + .incbin "baserom.gba", 0x607F52, 0x00009AE + +gUnk_08608900:: @ 08608900 + .incbin "baserom.gba", 0x608900, 0x0005BEA + +gUnk_0860E4EA:: @ 0860E4EA + .incbin "baserom.gba", 0x60E4EA, 0x0000D01 + +gUnk_0860F1EB:: @ 0860F1EB + .incbin "baserom.gba", 0x60F1EB, 0x0000405 + +gUnk_0860F5F0:: @ 0860F5F0 + .incbin "baserom.gba", 0x60F5F0, 0x0000300 + +gUnk_0860F8F0:: @ 0860F8F0 + .incbin "baserom.gba", 0x60F8F0, 0x000006B + +gUnk_0860F95B:: @ 0860F95B + .incbin "baserom.gba", 0x60F95B, 0x00003A8 + +gUnk_0860FD03:: @ 0860FD03 + .incbin "baserom.gba", 0x60FD03, 0x00002FD + +gUnk_08610000:: @ 08610000 + .incbin "baserom.gba", 0x610000, 0x0000002 + +gUnk_08610002:: @ 08610002 + .incbin "baserom.gba", 0x610002, 0x0000002 + +gUnk_08610004:: @ 08610004 + .incbin "baserom.gba", 0x610004, 0x0000001 + +gUnk_08610005:: @ 08610005 + .incbin "baserom.gba", 0x610005, 0x0000001 + +gUnk_08610006:: @ 08610006 + .incbin "baserom.gba", 0x610006, 0x0000001 + +gUnk_08610007:: @ 08610007 + .incbin "baserom.gba", 0x610007, 0x0000001 + +gUnk_08610008:: @ 08610008 + .incbin "baserom.gba", 0x610008, 0x0000002 + +gUnk_0861000A:: @ 0861000A + .incbin "baserom.gba", 0x61000A, 0x0000001 + +gUnk_0861000B:: @ 0861000B + .incbin "baserom.gba", 0x61000B, 0x0000004 + +gUnk_0861000F:: @ 0861000F + .incbin "baserom.gba", 0x61000F, 0x0000004 + +gUnk_08610013:: @ 08610013 + .incbin "baserom.gba", 0x610013, 0x0000001 + +gUnk_08610014:: @ 08610014 + .incbin "baserom.gba", 0x610014, 0x000000A + +gUnk_0861001E:: @ 0861001E + .incbin "baserom.gba", 0x61001E, 0x0000002 + +gUnk_08610020:: @ 08610020 + .incbin "baserom.gba", 0x610020, 0x0000006 + +gUnk_08610026:: @ 08610026 + .incbin "baserom.gba", 0x610026, 0x000000A + +gUnk_08610030:: @ 08610030 + .incbin "baserom.gba", 0x610030, 0x000000C + +gUnk_0861003C:: @ 0861003C + .incbin "baserom.gba", 0x61003C, 0x0000004 + +gUnk_08610040:: @ 08610040 + .incbin "baserom.gba", 0x610040, 0x000000A + +gUnk_0861004A:: @ 0861004A + .incbin "baserom.gba", 0x61004A, 0x0000006 + +gUnk_08610050:: @ 08610050 + .incbin "baserom.gba", 0x610050, 0x0000008 + +gUnk_08610058:: @ 08610058 + .incbin "baserom.gba", 0x610058, 0x0000002 + +gUnk_0861005A:: @ 0861005A + .incbin "baserom.gba", 0x61005A, 0x0000002 + +gUnk_0861005C:: @ 0861005C + .incbin "baserom.gba", 0x61005C, 0x0000004 + +gUnk_08610060:: @ 08610060 + .incbin "baserom.gba", 0x610060, 0x0000008 + +gUnk_08610068:: @ 08610068 + .incbin "baserom.gba", 0x610068, 0x000000E + +gUnk_08610076:: @ 08610076 + .incbin "baserom.gba", 0x610076, 0x0000002 + +gUnk_08610078:: @ 08610078 + .incbin "baserom.gba", 0x610078, 0x0000008 + +gUnk_08610080:: @ 08610080 + .incbin "baserom.gba", 0x610080, 0x0000010 + +gUnk_08610090:: @ 08610090 + .incbin "baserom.gba", 0x610090, 0x0000008 + +gUnk_08610098:: @ 08610098 + .incbin "baserom.gba", 0x610098, 0x0000010 + +gUnk_086100A8:: @ 086100A8 + .incbin "baserom.gba", 0x6100A8, 0x0000010 + +gUnk_086100B8:: @ 086100B8 + .incbin "baserom.gba", 0x6100B8, 0x0000048 + +gUnk_08610100:: @ 08610100 + .incbin "baserom.gba", 0x610100, 0x0000008 + +gUnk_08610108:: @ 08610108 + .incbin "baserom.gba", 0x610108, 0x0000014 + +gUnk_0861011C:: @ 0861011C + .incbin "baserom.gba", 0x61011C, 0x0000008 + +gUnk_08610124:: @ 08610124 + .incbin "baserom.gba", 0x610124, 0x000001C + +gUnk_08610140:: @ 08610140 + .incbin "baserom.gba", 0x610140, 0x0000008 + +gUnk_08610148:: @ 08610148 + .incbin "baserom.gba", 0x610148, 0x0000020 + +gUnk_08610168:: @ 08610168 + .incbin "baserom.gba", 0x610168, 0x0000018 + +gUnk_08610180:: @ 08610180 + .incbin "baserom.gba", 0x610180, 0x0000030 + +gUnk_086101B0:: @ 086101B0 + .incbin "baserom.gba", 0x6101B0, 0x0000010 + +gUnk_086101C0:: @ 086101C0 + .incbin "baserom.gba", 0x6101C0, 0x0000008 + +gUnk_086101C8:: @ 086101C8 + .incbin "baserom.gba", 0x6101C8, 0x0000040 + +gUnk_08610208:: @ 08610208 + .incbin "baserom.gba", 0x610208, 0x0000020 + +gUnk_08610228:: @ 08610228 + .incbin "baserom.gba", 0x610228, 0x0000010 + +gUnk_08610238:: @ 08610238 + .incbin "baserom.gba", 0x610238, 0x0000028 + +gUnk_08610260:: @ 08610260 + .incbin "baserom.gba", 0x610260, 0x0000010 + +gUnk_08610270:: @ 08610270 + .incbin "baserom.gba", 0x610270, 0x0000008 + +gUnk_08610278:: @ 08610278 + .incbin "baserom.gba", 0x610278, 0x0000010 + +gUnk_08610288:: @ 08610288 + .incbin "baserom.gba", 0x610288, 0x0000080 + +gUnk_08610308:: @ 08610308 + .incbin "baserom.gba", 0x610308, 0x0000018 + +gUnk_08610320:: @ 08610320 + .incbin "baserom.gba", 0x610320, 0x0000008 + +gUnk_08610328:: @ 08610328 + .incbin "baserom.gba", 0x610328, 0x0000008 + +gUnk_08610330:: @ 08610330 + .incbin "baserom.gba", 0x610330, 0x0000008 + +gUnk_08610338:: @ 08610338 + .incbin "baserom.gba", 0x610338, 0x0000010 + +gUnk_08610348:: @ 08610348 + .incbin "baserom.gba", 0x610348, 0x0000018 + +gUnk_08610360:: @ 08610360 + .incbin "baserom.gba", 0x610360, 0x0000038 + +gUnk_08610398:: @ 08610398 + .incbin "baserom.gba", 0x610398, 0x0000069 + +gUnk_08610401:: @ 08610401 + .incbin "baserom.gba", 0x610401, 0x0000001 + +gUnk_08610402:: @ 08610402 + .incbin "baserom.gba", 0x610402, 0x0000041 + +gUnk_08610443:: @ 08610443 + .incbin "baserom.gba", 0x610443, 0x0000001 + +gUnk_08610444:: @ 08610444 + .incbin "baserom.gba", 0x610444, 0x0000015 + +gUnk_08610459:: @ 08610459 + .incbin "baserom.gba", 0x610459, 0x0000057 + +gUnk_086104B0:: @ 086104B0 + .incbin "baserom.gba", 0x6104B0, 0x0000300 + +gUnk_086107B0:: @ 086107B0 + .incbin "baserom.gba", 0x6107B0, 0x0000055 + +gUnk_08610805:: @ 08610805 + .incbin "baserom.gba", 0x610805, 0x0000001 + +gUnk_08610806:: @ 08610806 + .incbin "baserom.gba", 0x610806, 0x0000001 + +gUnk_08610807:: @ 08610807 + .incbin "baserom.gba", 0x610807, 0x0000059 + +gUnk_08610860:: @ 08610860 + .incbin "baserom.gba", 0x610860, 0x000059E + +gUnk_08610DFE:: @ 08610DFE + .incbin "baserom.gba", 0x610DFE, 0x0002212 + +gUnk_08613010:: @ 08613010 + .incbin "baserom.gba", 0x613010, 0x0000334 + +gUnk_08613344:: @ 08613344 + .incbin "baserom.gba", 0x613344, 0x00065DE + +gUnk_08619922:: @ 08619922 + .incbin "baserom.gba", 0x619922, 0x00006DE + +gUnk_0861A000:: @ 0861A000 + .incbin "baserom.gba", 0x61A000, 0x0000BCC + +gUnk_0861ABCC:: @ 0861ABCC + .incbin "baserom.gba", 0x61ABCC, 0x0001181 + +gUnk_0861BD4D:: @ 0861BD4D + .incbin "baserom.gba", 0x61BD4D, 0x0005403 + +gUnk_08621150:: @ 08621150 + .incbin "baserom.gba", 0x621150, 0x00010D5 + +gUnk_08622225:: @ 08622225 + .incbin "baserom.gba", 0x622225, 0x0000020 + +gUnk_08622245:: @ 08622245 + .incbin "baserom.gba", 0x622245, 0x00001C2 + +gUnk_08622407:: @ 08622407 + .incbin "baserom.gba", 0x622407, 0x000203A + +gUnk_08624441:: @ 08624441 + .incbin "baserom.gba", 0x624441, 0x000A521 + +gUnk_0862E962:: @ 0862E962 + .incbin "baserom.gba", 0x62E962, 0x00016E1 + +gUnk_08630043:: @ 08630043 + .incbin "baserom.gba", 0x630043, 0x00000ED + +gUnk_08630130:: @ 08630130 + .incbin "baserom.gba", 0x630130, 0x0000312 + +gUnk_08630442:: @ 08630442 + .incbin "baserom.gba", 0x630442, 0x0000120 + +gUnk_08630562:: @ 08630562 + .incbin "baserom.gba", 0x630562, 0x00001B0 + +gUnk_08630712:: @ 08630712 + .incbin "baserom.gba", 0x630712, 0x0000150 + +gUnk_08630862:: @ 08630862 + .incbin "baserom.gba", 0x630862, 0x0005CC3 + +gUnk_08636525:: @ 08636525 + .incbin "baserom.gba", 0x636525, 0x0002D5C + +gUnk_08639281:: @ 08639281 + .incbin "baserom.gba", 0x639281, 0x0006E86 + +gUnk_08640107:: @ 08640107 + .incbin "baserom.gba", 0x640107, 0x0000219 + +gUnk_08640320:: @ 08640320 + .incbin "baserom.gba", 0x640320, 0x0000123 + +gUnk_08640443:: @ 08640443 + .incbin "baserom.gba", 0x640443, 0x0000B9E + +gUnk_08640FE1:: @ 08640FE1 + .incbin "baserom.gba", 0x640FE1, 0x0001296 + +gUnk_08642277:: @ 08642277 + .incbin "baserom.gba", 0x642277, 0x000218C + +gUnk_08644403:: @ 08644403 + .incbin "baserom.gba", 0x644403, 0x000081C + +gUnk_08644C1F:: @ 08644C1F + .incbin "baserom.gba", 0x644C1F, 0x0000914 + +gUnk_08645533:: @ 08645533 + .incbin "baserom.gba", 0x645533, 0x0000003 + +gUnk_08645536:: @ 08645536 + .incbin "baserom.gba", 0x645536, 0x00001EF + +gUnk_08645725:: @ 08645725 + .incbin "baserom.gba", 0x645725, 0x0005330 + +gUnk_0864AA55:: @ 0864AA55 + .incbin "baserom.gba", 0x64AA55, 0x00041B3 + +gUnk_0864EC08:: @ 0864EC08 + .incbin "baserom.gba", 0x64EC08, 0x00013F9 + +gUnk_08650001:: @ 08650001 + .incbin "baserom.gba", 0x650001, 0x000000F + +gUnk_08650010:: @ 08650010 + .incbin "baserom.gba", 0x650010, 0x0000030 + +gUnk_08650040:: @ 08650040 + .incbin "baserom.gba", 0x650040, 0x0000100 + +gUnk_08650140:: @ 08650140 + .incbin "baserom.gba", 0x650140, 0x00002C0 + +gUnk_08650400:: @ 08650400 + .incbin "baserom.gba", 0x650400, 0x0000064 + +gUnk_08650464:: @ 08650464 + .incbin "baserom.gba", 0x650464, 0x000069C + +gUnk_08650B00:: @ 08650B00 + .incbin "baserom.gba", 0x650B00, 0x0000400 + +gUnk_08650F00:: @ 08650F00 + .incbin "baserom.gba", 0x650F00, 0x0000003 + +gUnk_08650F03:: @ 08650F03 + .incbin "baserom.gba", 0x650F03, 0x000131F + +gUnk_08652222:: @ 08652222 + .incbin "baserom.gba", 0x652222, 0x00009F6 + +gUnk_08652C18:: @ 08652C18 + .incbin "baserom.gba", 0x652C18, 0x00006FC + +gUnk_08653314:: @ 08653314 + .incbin "baserom.gba", 0x653314, 0x00004EC + +gUnk_08653800:: @ 08653800 + .incbin "baserom.gba", 0x653800, 0x0001E43 + +gUnk_08655643:: @ 08655643 + .incbin "baserom.gba", 0x655643, 0x0002017 + +gUnk_0865765A:: @ 0865765A + .incbin "baserom.gba", 0x65765A, 0x00017AA + +gUnk_08658E04:: @ 08658E04 + .incbin "baserom.gba", 0x658E04, 0x000581F + +gUnk_0865E623:: @ 0865E623 + .incbin "baserom.gba", 0x65E623, 0x00019DD + +gUnk_08660000:: @ 08660000 + .incbin "baserom.gba", 0x660000, 0x0000006 + +gUnk_08660006:: @ 08660006 + .incbin "baserom.gba", 0x660006, 0x00002FA + +gUnk_08660300:: @ 08660300 + .incbin "baserom.gba", 0x660300, 0x00002B7 + +gUnk_086605B7:: @ 086605B7 + .incbin "baserom.gba", 0x6605B7, 0x00002AF + +gUnk_08660866:: @ 08660866 + .incbin "baserom.gba", 0x660866, 0x00012AA + +gUnk_08661B10:: @ 08661B10 + .incbin "baserom.gba", 0x661B10, 0x0000400 + +gUnk_08661F10:: @ 08661F10 + .incbin "baserom.gba", 0x661F10, 0x0000972 + +gUnk_08662882:: @ 08662882 + .incbin "baserom.gba", 0x662882, 0x0000BC1 + +gUnk_08663443:: @ 08663443 + .incbin "baserom.gba", 0x663443, 0x0000F4D + +gUnk_08664390:: @ 08664390 + .incbin "baserom.gba", 0x664390, 0x000003C + +gUnk_086643CC:: @ 086643CC + .incbin "baserom.gba", 0x6643CC, 0x0000067 + +gUnk_08664433:: @ 08664433 + .incbin "baserom.gba", 0x664433, 0x0000F11 + +gUnk_08665344:: @ 08665344 + .incbin "baserom.gba", 0x665344, 0x0000223 + +gUnk_08665567:: @ 08665567 + .incbin "baserom.gba", 0x665567, 0x0000DCD + +gUnk_08666334:: @ 08666334 + .incbin "baserom.gba", 0x666334, 0x000021F + +gUnk_08666553:: @ 08666553 + .incbin "baserom.gba", 0x666553, 0x00000AE + +gUnk_08666601:: @ 08666601 + .incbin "baserom.gba", 0x666601, 0x0000021 + +gUnk_08666622:: @ 08666622 + .incbin "baserom.gba", 0x666622, 0x0000044 + +gUnk_08666666:: @ 08666666 + .incbin "baserom.gba", 0x666666, 0x0000117 + +gUnk_0866677D:: @ 0866677D + .incbin "baserom.gba", 0x66677D, 0x00000A6 + +gUnk_08666823:: @ 08666823 + .incbin "baserom.gba", 0x666823, 0x0000DF3 + +gUnk_08667616:: @ 08667616 + .incbin "baserom.gba", 0x667616, 0x0000151 + +gUnk_08667767:: @ 08667767 + .incbin "baserom.gba", 0x667767, 0x0000748 + +gUnk_08667EAF:: @ 08667EAF + .incbin "baserom.gba", 0x667EAF, 0x0000151 + +gUnk_08668000:: @ 08668000 + .incbin "baserom.gba", 0x668000, 0x0001999 + +gUnk_08669999:: @ 08669999 + .incbin "baserom.gba", 0x669999, 0x000056F + +gUnk_08669F08:: @ 08669F08 + .incbin "baserom.gba", 0x669F08, 0x0000541 + +gUnk_0866A449:: @ 0866A449 + .incbin "baserom.gba", 0x66A449, 0x000185C + +gUnk_0866BCA5:: @ 0866BCA5 + .incbin "baserom.gba", 0x66BCA5, 0x0000292 + +gUnk_0866BF37:: @ 0866BF37 + .incbin "baserom.gba", 0x66BF37, 0x00023CC + +gUnk_0866E303:: @ 0866E303 + .incbin "baserom.gba", 0x66E303, 0x0000F20 + +gUnk_0866F223:: @ 0866F223 + .incbin "baserom.gba", 0x66F223, 0x0000DDD + +gUnk_08670000:: @ 08670000 + .incbin "baserom.gba", 0x670000, 0x0000001 + +gUnk_08670001:: @ 08670001 + .incbin "baserom.gba", 0x670001, 0x0000001 + +gUnk_08670002:: @ 08670002 + .incbin "baserom.gba", 0x670002, 0x0000002 + +gUnk_08670004:: @ 08670004 + .incbin "baserom.gba", 0x670004, 0x0000002 + +gUnk_08670006:: @ 08670006 + .incbin "baserom.gba", 0x670006, 0x0000001 + +gUnk_08670007:: @ 08670007 + .incbin "baserom.gba", 0x670007, 0x0000001 + +gUnk_08670008:: @ 08670008 + .incbin "baserom.gba", 0x670008, 0x0000002 + +gUnk_0867000A:: @ 0867000A + .incbin "baserom.gba", 0x67000A, 0x0000001 + +gUnk_0867000B:: @ 0867000B + .incbin "baserom.gba", 0x67000B, 0x0000004 + +gUnk_0867000F:: @ 0867000F + .incbin "baserom.gba", 0x67000F, 0x0000001 + +gUnk_08670010:: @ 08670010 + .incbin "baserom.gba", 0x670010, 0x0000001 + +gUnk_08670011:: @ 08670011 + .incbin "baserom.gba", 0x670011, 0x0000003 + +gUnk_08670014:: @ 08670014 + .incbin "baserom.gba", 0x670014, 0x0000004 + +gUnk_08670018:: @ 08670018 + .incbin "baserom.gba", 0x670018, 0x0000024 + +gUnk_0867003C:: @ 0867003C + .incbin "baserom.gba", 0x67003C, 0x000005A + +gUnk_08670096:: @ 08670096 + .incbin "baserom.gba", 0x670096, 0x0000002 + +gUnk_08670098:: @ 08670098 + .incbin "baserom.gba", 0x670098, 0x0000128 + +gUnk_086701C0:: @ 086701C0 + .incbin "baserom.gba", 0x6701C0, 0x0000018 + +gUnk_086701D8:: @ 086701D8 + .incbin "baserom.gba", 0x6701D8, 0x0000020 + +gUnk_086701F8:: @ 086701F8 + .incbin "baserom.gba", 0x6701F8, 0x0000028 + +gUnk_08670220:: @ 08670220 + .incbin "baserom.gba", 0x670220, 0x0000138 + +gUnk_08670358:: @ 08670358 + .incbin "baserom.gba", 0x670358, 0x00000A9 + +gUnk_08670401:: @ 08670401 + .incbin "baserom.gba", 0x670401, 0x0000043 + +gUnk_08670444:: @ 08670444 + .incbin "baserom.gba", 0x670444, 0x0000015 + +gUnk_08670459:: @ 08670459 + .incbin "baserom.gba", 0x670459, 0x00003AE + +gUnk_08670807:: @ 08670807 + .incbin "baserom.gba", 0x670807, 0x0000B4F + +gUnk_08671356:: @ 08671356 + .incbin "baserom.gba", 0x671356, 0x0002875 + +gUnk_08673BCB:: @ 08673BCB + .incbin "baserom.gba", 0x673BCB, 0x0000036 + +gUnk_08673C01:: @ 08673C01 + .incbin "baserom.gba", 0x673C01, 0x0001495 + +gUnk_08675096:: @ 08675096 + .incbin "baserom.gba", 0x675096, 0x000016A + +gUnk_08675200:: @ 08675200 + .incbin "baserom.gba", 0x675200, 0x0003688 + +gUnk_08678888:: @ 08678888 + .incbin "baserom.gba", 0x678888, 0x000010F + +gUnk_08678997:: @ 08678997 + .incbin "baserom.gba", 0x678997, 0x0001960 + +gUnk_0867A2F7:: @ 0867A2F7 + .incbin "baserom.gba", 0x67A2F7, 0x0002C5C + +gUnk_0867CF53:: @ 0867CF53 + .incbin "baserom.gba", 0x67CF53, 0x00030AD + +gUnk_08680000:: @ 08680000 + .incbin "baserom.gba", 0x680000, 0x00000FF + +gUnk_086800FF:: @ 086800FF + .incbin "baserom.gba", 0x6800FF, 0x0000768 + +gUnk_08680867:: @ 08680867 + .incbin "baserom.gba", 0x680867, 0x0000001 + +gUnk_08680868:: @ 08680868 + .incbin "baserom.gba", 0x680868, 0x0004CEE + +gUnk_08685556:: @ 08685556 + .incbin "baserom.gba", 0x685556, 0x00032C9 + +gUnk_0868881F:: @ 0868881F + .incbin "baserom.gba", 0x68881F, 0x000004B + +gUnk_0868886A:: @ 0868886A + .incbin "baserom.gba", 0x68886A, 0x0007796 + +gUnk_08690000:: @ 08690000 + .incbin "baserom.gba", 0x690000, 0x0000868 + +gUnk_08690868:: @ 08690868 + .incbin "baserom.gba", 0x690868, 0x0000FDA + +gUnk_08691842:: @ 08691842 + .incbin "baserom.gba", 0x691842, 0x0000CF8 + +gUnk_0869253A:: @ 0869253A + .incbin "baserom.gba", 0x69253A, 0x0000040 + +gUnk_0869257A:: @ 0869257A + .incbin "baserom.gba", 0x69257A, 0x0000060 + +gUnk_086925DA:: @ 086925DA + .incbin "baserom.gba", 0x6925DA, 0x0000040 + +gUnk_0869261A:: @ 0869261A + .incbin "baserom.gba", 0x69261A, 0x0000086 + +gUnk_086926A0:: @ 086926A0 + .incbin "baserom.gba", 0x6926A0, 0x000001A + +gUnk_086926BA:: @ 086926BA + .incbin "baserom.gba", 0x6926BA, 0x0000090 + +gUnk_0869274A:: @ 0869274A + .incbin "baserom.gba", 0x69274A, 0x0000009 + +gUnk_08692753:: @ 08692753 + .incbin "baserom.gba", 0x692753, 0x0000006 + +gUnk_08692759:: @ 08692759 + .incbin "baserom.gba", 0x692759, 0x0000027 + +gUnk_08692780:: @ 08692780 + .incbin "baserom.gba", 0x692780, 0x00000E0 + +gUnk_08692860:: @ 08692860 + .incbin "baserom.gba", 0x692860, 0x00000E0 + +gUnk_08692940:: @ 08692940 + .incbin "baserom.gba", 0x692940, 0x00000E0 + +gUnk_08692A20:: @ 08692A20 + .incbin "baserom.gba", 0x692A20, 0x00000E0 + +gUnk_08692B00:: @ 08692B00 + .incbin "baserom.gba", 0x692B00, 0x00000E0 + +gUnk_08692BE0:: @ 08692BE0 + .incbin "baserom.gba", 0x692BE0, 0x00000E0 + +gUnk_08692CC0:: @ 08692CC0 + .incbin "baserom.gba", 0x692CC0, 0x00000E0 + +gUnk_08692DA0:: @ 08692DA0 + .incbin "baserom.gba", 0x692DA0, 0x0000062 + +gUnk_08692E02:: @ 08692E02 + .incbin "baserom.gba", 0x692E02, 0x000007E + +gUnk_08692E80:: @ 08692E80 + .incbin "baserom.gba", 0x692E80, 0x00000E0 + +gUnk_08692F60:: @ 08692F60 + .incbin "baserom.gba", 0x692F60, 0x0000BE9 + +gUnk_08693B49:: @ 08693B49 + .incbin "baserom.gba", 0x693B49, 0x00001F1 + +gUnk_08693D3A:: @ 08693D3A + .incbin "baserom.gba", 0x693D3A, 0x000014C + +gUnk_08693E86:: @ 08693E86 + .incbin "baserom.gba", 0x693E86, 0x00000C3 + +gUnk_08693F49:: @ 08693F49 + .incbin "baserom.gba", 0x693F49, 0x0001800 + +gUnk_08695749:: @ 08695749 + .incbin "baserom.gba", 0x695749, 0x0000347 + +gUnk_08695A90:: @ 08695A90 + .incbin "baserom.gba", 0x695A90, 0x0000383 + +gUnk_08695E13:: @ 08695E13 + .incbin "baserom.gba", 0x695E13, 0x0000327 + +gUnk_0869613A:: @ 0869613A + .incbin "baserom.gba", 0x69613A, 0x000007C + +gUnk_086961B6:: @ 086961B6 + .incbin "baserom.gba", 0x6961B6, 0x0000DAA + +gUnk_08696F60:: @ 08696F60 + .incbin "baserom.gba", 0x696F60, 0x0000980 + +gUnk_086978E0:: @ 086978E0 + .incbin "baserom.gba", 0x6978E0, 0x0000668 + +gUnk_08697F48:: @ 08697F48 + .incbin "baserom.gba", 0x697F48, 0x0001998 + +gUnk_086998E0:: @ 086998E0 + .incbin "baserom.gba", 0x6998E0, 0x0006720 + +gUnk_086A0000:: @ 086A0000 + .incbin "baserom.gba", 0x6A0000, 0x000141A + +gUnk_086A141A:: @ 086A141A + .incbin "baserom.gba", 0x6A141A, 0x00004C6 + +gUnk_086A18E0:: @ 086A18E0 + .incbin "baserom.gba", 0x6A18E0, 0x0001180 + +gUnk_086A2A60:: @ 086A2A60 + .incbin "baserom.gba", 0x6A2A60, 0x0000480 + +gUnk_086A2EE0:: @ 086A2EE0 + .incbin "baserom.gba", 0x6A2EE0, 0x0001423 + +gUnk_086A4303:: @ 086A4303 + .incbin "baserom.gba", 0x6A4303, 0x0000C03 + +gUnk_086A4F06:: @ 086A4F06 + .incbin "baserom.gba", 0x6A4F06, 0x000281C + +gUnk_086A7722:: @ 086A7722 + .incbin "baserom.gba", 0x6A7722, 0x0000268 + +gUnk_086A798A:: @ 086A798A + .incbin "baserom.gba", 0x6A798A, 0x0002DEE + +gUnk_086AA778:: @ 086AA778 + .incbin "baserom.gba", 0x6AA778, 0x00002F0 + +gUnk_086AAA68:: @ 086AAA68 + .incbin "baserom.gba", 0x6AAA68, 0x0000478 + +gUnk_086AAEE0:: @ 086AAEE0 + .incbin "baserom.gba", 0x6AAEE0, 0x0004EC7 + +gUnk_086AFDA7:: @ 086AFDA7 + .incbin "baserom.gba", 0x6AFDA7, 0x0000272 + +gUnk_086B0019:: @ 086B0019 + .incbin "baserom.gba", 0x6B0019, 0x000002C + +gUnk_086B0045:: @ 086B0045 + .incbin "baserom.gba", 0x6B0045, 0x00000C2 + +gUnk_086B0107:: @ 086B0107 + .incbin "baserom.gba", 0x6B0107, 0x0000763 + +gUnk_086B086A:: @ 086B086A + .incbin "baserom.gba", 0x6B086A, 0x0001070 + +gUnk_086B18DA:: @ 086B18DA + .incbin "baserom.gba", 0x6B18DA, 0x000028A + +gUnk_086B1B64:: @ 086B1B64 + .incbin "baserom.gba", 0x6B1B64, 0x00003AC + +gUnk_086B1F10:: @ 086B1F10 + .incbin "baserom.gba", 0x6B1F10, 0x0000F0D + +gUnk_086B2E1D:: @ 086B2E1D + .incbin "baserom.gba", 0x6B2E1D, 0x00073E9 + +gUnk_086BA206:: @ 086BA206 + .incbin "baserom.gba", 0x6BA206, 0x0005E00 + +gUnk_086C0006:: @ 086C0006 + .incbin "baserom.gba", 0x6C0006, 0x00046C2 + +gUnk_086C46C8:: @ 086C46C8 + .incbin "baserom.gba", 0x6C46C8, 0x00025A5 + +gUnk_086C6C6D:: @ 086C6C6D + .incbin "baserom.gba", 0x6C6C6D, 0x000605F + +gUnk_086CCCCC:: @ 086CCCCC + .incbin "baserom.gba", 0x6CCCCC, 0x0003336 + +gUnk_086D0002:: @ 086D0002 + .incbin "baserom.gba", 0x6D0002, 0x000001C + +gUnk_086D001E:: @ 086D001E + .incbin "baserom.gba", 0x6D001E, 0x000013B + +gUnk_086D0159:: @ 086D0159 + .incbin "baserom.gba", 0x6D0159, 0x0000013 + +gUnk_086D016C:: @ 086D016C + .incbin "baserom.gba", 0x6D016C, 0x0000300 + +gUnk_086D046C:: @ 086D046C + .incbin "baserom.gba", 0x6D046C, 0x000039A + +gUnk_086D0806:: @ 086D0806 + .incbin "baserom.gba", 0x6D0806, 0x000001D + +gUnk_086D0823:: @ 086D0823 + .incbin "baserom.gba", 0x6D0823, 0x0001CE5 + +gUnk_086D2508:: @ 086D2508 + .incbin "baserom.gba", 0x6D2508, 0x0001C1D + +gUnk_086D4125:: @ 086D4125 + .incbin "baserom.gba", 0x6D4125, 0x00002E2 + +gUnk_086D4407:: @ 086D4407 + .incbin "baserom.gba", 0x6D4407, 0x0000059 + +gUnk_086D4460:: @ 086D4460 + .incbin "baserom.gba", 0x6D4460, 0x0000BA4 + +gUnk_086D5004:: @ 086D5004 + .incbin "baserom.gba", 0x6D5004, 0x0008965 + +gUnk_086DD969:: @ 086DD969 + .incbin "baserom.gba", 0x6DD969, 0x0000456 + +gUnk_086DDDBF:: @ 086DDDBF + .incbin "baserom.gba", 0x6DDDBF, 0x0000007 + +gUnk_086DDDC6:: @ 086DDDC6 + .incbin "baserom.gba", 0x6DDDC6, 0x000223E + +gUnk_086E0004:: @ 086E0004 + .incbin "baserom.gba", 0x6E0004, 0x000000C + +gUnk_086E0010:: @ 086E0010 + .incbin "baserom.gba", 0x6E0010, 0x000005D + +gUnk_086E006D:: @ 086E006D + .incbin "baserom.gba", 0x6E006D, 0x0000013 + +gUnk_086E0080:: @ 086E0080 + .incbin "baserom.gba", 0x6E0080, 0x0000080 + +gUnk_086E0100:: @ 086E0100 + .incbin "baserom.gba", 0x6E0100, 0x0000359 + +gUnk_086E0459:: @ 086E0459 + .incbin "baserom.gba", 0x6E0459, 0x0000414 + +gUnk_086E086D:: @ 086E086D + .incbin "baserom.gba", 0x6E086D, 0x000001D + +gUnk_086E088A:: @ 086E088A + .incbin "baserom.gba", 0x6E088A, 0x0001755 + +gUnk_086E1FDF:: @ 086E1FDF + .incbin "baserom.gba", 0x6E1FDF, 0x0000E23 + +gUnk_086E2E02:: @ 086E2E02 + .incbin "baserom.gba", 0x6E2E02, 0x000166D + +gUnk_086E446F:: @ 086E446F + .incbin "baserom.gba", 0x6E446F, 0x0000259 + +gUnk_086E46C8:: @ 086E46C8 + .incbin "baserom.gba", 0x6E46C8, 0x0003D98 + +gUnk_086E8460:: @ 086E8460 + .incbin "baserom.gba", 0x6E8460, 0x0007BA1 + +gUnk_086F0001:: @ 086F0001 + .incbin "baserom.gba", 0x6F0001, 0x0000001 + +gUnk_086F0002:: @ 086F0002 + .incbin "baserom.gba", 0x6F0002, 0x000001E + +gUnk_086F0020:: @ 086F0020 + .incbin "baserom.gba", 0x6F0020, 0x00000F0 + +gUnk_086F0110:: @ 086F0110 + .incbin "baserom.gba", 0x6F0110, 0x000000C + +gUnk_086F011C:: @ 086F011C + .incbin "baserom.gba", 0x6F011C, 0x000007E + +gUnk_086F019A:: @ 086F019A + .incbin "baserom.gba", 0x6F019A, 0x0000069 + +gUnk_086F0203:: @ 086F0203 + .incbin "baserom.gba", 0x6F0203, 0x00005FD + +gUnk_086F0800:: @ 086F0800 + .incbin "baserom.gba", 0x6F0800, 0x000001B + +gUnk_086F081B:: @ 086F081B + .incbin "baserom.gba", 0x6F081B, 0x00006EB + +gUnk_086F0F06:: @ 086F0F06 + .incbin "baserom.gba", 0x6F0F06, 0x00001AF + +gUnk_086F10B5:: @ 086F10B5 + .incbin "baserom.gba", 0x6F10B5, 0x000094A + +gUnk_086F19FF:: @ 086F19FF + .incbin "baserom.gba", 0x6F19FF, 0x0000C01 + +gUnk_086F2600:: @ 086F2600 + .incbin "baserom.gba", 0x6F2600, 0x000B121 + +gUnk_086FD721:: @ 086FD721 + .incbin "baserom.gba", 0x6FD721, 0x000238E + +gUnk_086FFAAF:: @ 086FFAAF + .incbin "baserom.gba", 0x6FFAAF, 0x0000551 + +gUnk_08700000:: @ 08700000 + .incbin "baserom.gba", 0x700000, 0x0000001 + +gUnk_08700001:: @ 08700001 + .incbin "baserom.gba", 0x700001, 0x0000003 + +gUnk_08700004:: @ 08700004 + .incbin "baserom.gba", 0x700004, 0x0000002 + +gUnk_08700006:: @ 08700006 + .incbin "baserom.gba", 0x700006, 0x000002A + +gUnk_08700030:: @ 08700030 + .incbin "baserom.gba", 0x700030, 0x000000C + +gUnk_0870003C:: @ 0870003C + .incbin "baserom.gba", 0x70003C, 0x00001C4 + +gUnk_08700200:: @ 08700200 + .incbin "baserom.gba", 0x700200, 0x0000051 + +gUnk_08700251:: @ 08700251 + .incbin "baserom.gba", 0x700251, 0x000019F + +gUnk_087003F0:: @ 087003F0 + .incbin "baserom.gba", 0x7003F0, 0x0000240 + +gUnk_08700630:: @ 08700630 + .incbin "baserom.gba", 0x700630, 0x00002C0 + +gUnk_087008F0:: @ 087008F0 + .incbin "baserom.gba", 0x7008F0, 0x00000D0 + +gUnk_087009C0:: @ 087009C0 + .incbin "baserom.gba", 0x7009C0, 0x0000119 + +gUnk_08700AD9:: @ 08700AD9 + .incbin "baserom.gba", 0x700AD9, 0x00000C7 + +gUnk_08700BA0:: @ 08700BA0 + .incbin "baserom.gba", 0x700BA0, 0x0001BD0 + +gUnk_08702770:: @ 08702770 + .incbin "baserom.gba", 0x702770, 0x00053AB + +gUnk_08707B1B:: @ 08707B1B + .incbin "baserom.gba", 0x707B1B, 0x00011EB + +gUnk_08708D06:: @ 08708D06 + .incbin "baserom.gba", 0x708D06, 0x000110B + +gUnk_08709E11:: @ 08709E11 + .incbin "baserom.gba", 0x709E11, 0x0002FF6 + +gUnk_0870CE07:: @ 0870CE07 + .incbin "baserom.gba", 0x70CE07, 0x00031F9 + +gUnk_08710000:: @ 08710000 + .incbin "baserom.gba", 0x710000, 0x0000020 + +gUnk_08710020:: @ 08710020 + .incbin "baserom.gba", 0x710020, 0x000001C + +gUnk_0871003C:: @ 0871003C + .incbin "baserom.gba", 0x71003C, 0x0000004 + +gUnk_08710040:: @ 08710040 + .incbin "baserom.gba", 0x710040, 0x00000DC + +gUnk_0871011C:: @ 0871011C + .incbin "baserom.gba", 0x71011C, 0x0000045 + +gUnk_08710161:: @ 08710161 + .incbin "baserom.gba", 0x710161, 0x000029F + +gUnk_08710400:: @ 08710400 + .incbin "baserom.gba", 0x710400, 0x0000091 + +gUnk_08710491:: @ 08710491 + .incbin "baserom.gba", 0x710491, 0x000026F + +gUnk_08710700:: @ 08710700 + .incbin "baserom.gba", 0x710700, 0x0000070 + +gUnk_08710770:: @ 08710770 + .incbin "baserom.gba", 0x710770, 0x0001811 + +gUnk_08711F81:: @ 08711F81 + .incbin "baserom.gba", 0x711F81, 0x00007F0 + +gUnk_08712771:: @ 08712771 + .incbin "baserom.gba", 0x712771, 0x00027A0 + +gUnk_08714F11:: @ 08714F11 + .incbin "baserom.gba", 0x714F11, 0x0003277 + +gUnk_08718188:: @ 08718188 + .incbin "baserom.gba", 0x718188, 0x0007E81 + +gUnk_08720009:: @ 08720009 + .incbin "baserom.gba", 0x720009, 0x00000FE + +gUnk_08720107:: @ 08720107 + .incbin "baserom.gba", 0x720107, 0x000016A + +gUnk_08720271:: @ 08720271 + .incbin "baserom.gba", 0x720271, 0x000048F + +gUnk_08720700:: @ 08720700 + .incbin "baserom.gba", 0x720700, 0x000014E + +gUnk_0872084E:: @ 0872084E + .incbin "baserom.gba", 0x72084E, 0x000048C + +gUnk_08720CDA:: @ 08720CDA + .incbin "baserom.gba", 0x720CDA, 0x000154B + +gUnk_08722225:: @ 08722225 + .incbin "baserom.gba", 0x722225, 0x000DDE2 + +gUnk_08730007:: @ 08730007 + .incbin "baserom.gba", 0x730007, 0x00001E9 + +gUnk_087301F0:: @ 087301F0 + .incbin "baserom.gba", 0x7301F0, 0x0000520 + +gUnk_08730710:: @ 08730710 + .incbin "baserom.gba", 0x730710, 0x0000063 + +gUnk_08730773:: @ 08730773 + .incbin "baserom.gba", 0x730773, 0x00020A0 + +gUnk_08732813:: @ 08732813 + .incbin "baserom.gba", 0x732813, 0x00006C1 + +gUnk_08732ED4:: @ 08732ED4 + .incbin "baserom.gba", 0x732ED4, 0x00021B6 + +gUnk_0873508A:: @ 0873508A + .incbin "baserom.gba", 0x73508A, 0x000AF86 + +gUnk_08740010:: @ 08740010 + .incbin "baserom.gba", 0x740010, 0x0000760 + +gUnk_08740770:: @ 08740770 + .incbin "baserom.gba", 0x740770, 0x0000200 + +gUnk_08740970:: @ 08740970 + .incbin "baserom.gba", 0x740970, 0x0000326 + +gUnk_08740C96:: @ 08740C96 + .incbin "baserom.gba", 0x740C96, 0x0003695 + +gUnk_0874432B:: @ 0874432B + .incbin "baserom.gba", 0x74432B, 0x0000118 + +gUnk_08744443:: @ 08744443 + .incbin "baserom.gba", 0x744443, 0x00001C0 + +gUnk_08744603:: @ 08744603 + .incbin "baserom.gba", 0x744603, 0x00065CA + +gUnk_0874ABCD:: @ 0874ABCD + .incbin "baserom.gba", 0x74ABCD, 0x000543B + +gUnk_08750008:: @ 08750008 + .incbin "baserom.gba", 0x750008, 0x00002F8 + +gUnk_08750300:: @ 08750300 + .incbin "baserom.gba", 0x750300, 0x0000074 + +gUnk_08750374:: @ 08750374 + .incbin "baserom.gba", 0x750374, 0x000048F + +gUnk_08750803:: @ 08750803 + .incbin "baserom.gba", 0x750803, 0x0000703 + +gUnk_08750F06:: @ 08750F06 + .incbin "baserom.gba", 0x750F06, 0x000344E + +gUnk_08754354:: @ 08754354 + .incbin "baserom.gba", 0x754354, 0x0000756 + +gUnk_08754AAA:: @ 08754AAA + .incbin "baserom.gba", 0x754AAA, 0x000C45C + +gUnk_08760F06:: @ 08760F06 + .incbin "baserom.gba", 0x760F06, 0x000120B + +gUnk_08762111:: @ 08762111 + .incbin "baserom.gba", 0x762111, 0x00015FB + +gUnk_0876370C:: @ 0876370C + .incbin "baserom.gba", 0x76370C, 0x00009C4 + +gUnk_087640D0:: @ 087640D0 + .incbin "baserom.gba", 0x7640D0, 0x0000496 + +gUnk_08764566:: @ 08764566 + .incbin "baserom.gba", 0x764566, 0x0000CC5 + +gUnk_0876522B:: @ 0876522B + .incbin "baserom.gba", 0x76522B, 0x000032B + +gUnk_08765556:: @ 08765556 + .incbin "baserom.gba", 0x765556, 0x0001110 + +gUnk_08766666:: @ 08766666 + .incbin "baserom.gba", 0x766666, 0x0000020 + +gUnk_08766686:: @ 08766686 + .incbin "baserom.gba", 0x766686, 0x0000021 + +gUnk_087666A7:: @ 087666A7 + .incbin "baserom.gba", 0x7666A7, 0x00008FA + +gUnk_08766FA1:: @ 08766FA1 + .incbin "baserom.gba", 0x766FA1, 0x0005D23 + +gUnk_0876CCC4:: @ 0876CCC4 + .incbin "baserom.gba", 0x76CCC4, 0x000110B + +gUnk_0876DDCF:: @ 0876DDCF + .incbin "baserom.gba", 0x76DDCF, 0x0002242 + +gUnk_08770011:: @ 08770011 + .incbin "baserom.gba", 0x770011, 0x00000A8 + +gUnk_087700B9:: @ 087700B9 + .incbin "baserom.gba", 0x7700B9, 0x0000287 + +gUnk_08770340:: @ 08770340 + .incbin "baserom.gba", 0x770340, 0x00000E2 + +gUnk_08770422:: @ 08770422 + .incbin "baserom.gba", 0x770422, 0x0000154 + +gUnk_08770576:: @ 08770576 + .incbin "baserom.gba", 0x770576, 0x0000300 + +gUnk_08770876:: @ 08770876 + .incbin "baserom.gba", 0x770876, 0x0000791 + +gUnk_08771007:: @ 08771007 + .incbin "baserom.gba", 0x771007, 0x000006E + +gUnk_08771075:: @ 08771075 + .incbin "baserom.gba", 0x771075, 0x0000B8B + +gUnk_08771C00:: @ 08771C00 + .incbin "baserom.gba", 0x771C00, 0x0005775 + +gUnk_08777375:: @ 08777375 + .incbin "baserom.gba", 0x777375, 0x00003F0 + +gUnk_08777765:: @ 08777765 + .incbin "baserom.gba", 0x777765, 0x0000011 + +gUnk_08777776:: @ 08777776 + .incbin "baserom.gba", 0x777776, 0x0000012 + +gUnk_08777788:: @ 08777788 + .incbin "baserom.gba", 0x777788, 0x0000877 + +gUnk_08777FFF:: @ 08777FFF + .incbin "baserom.gba", 0x777FFF, 0x0000067 + +gUnk_08778066:: @ 08778066 + .incbin "baserom.gba", 0x778066, 0x0000703 + +gUnk_08778769:: @ 08778769 + .incbin "baserom.gba", 0x778769, 0x0000E2C + +gUnk_08779595:: @ 08779595 + .incbin "baserom.gba", 0x779595, 0x000148E + +gUnk_0877AA23:: @ 0877AA23 + .incbin "baserom.gba", 0x77AA23, 0x0000017 + +gUnk_0877AA3A:: @ 0877AA3A + .incbin "baserom.gba", 0x77AA3A, 0x0000190 + +gUnk_0877ABCA:: @ 0877ABCA + .incbin "baserom.gba", 0x77ABCA, 0x0000537 + +gUnk_0877B101:: @ 0877B101 + .incbin "baserom.gba", 0x77B101, 0x000290E + +gUnk_0877DA0F:: @ 0877DA0F + .incbin "baserom.gba", 0x77DA0F, 0x0002649 + +gUnk_08780058:: @ 08780058 + .incbin "baserom.gba", 0x780058, 0x00000E8 + +gUnk_08780140:: @ 08780140 + .incbin "baserom.gba", 0x780140, 0x0000836 + +gUnk_08780976:: @ 08780976 + .incbin "baserom.gba", 0x780976, 0x000018A + +gUnk_08780B00:: @ 08780B00 + .incbin "baserom.gba", 0x780B00, 0x0006410 + +gUnk_08786F10:: @ 08786F10 + .incbin "baserom.gba", 0x786F10, 0x0000919 + +gUnk_08787829:: @ 08787829 + .incbin "baserom.gba", 0x787829, 0x000084E + +gUnk_08788077:: @ 08788077 + .incbin "baserom.gba", 0x788077, 0x00001CF + +gUnk_08788246:: @ 08788246 + .incbin "baserom.gba", 0x788246, 0x0001375 + +gUnk_087895BB:: @ 087895BB + .incbin "baserom.gba", 0x7895BB, 0x0000933 + +gUnk_08789EEE:: @ 08789EEE + .incbin "baserom.gba", 0x789EEE, 0x000610A + +gUnk_0878FFF8:: @ 0878FFF8 + .incbin "baserom.gba", 0x78FFF8, 0x0000008 + +gUnk_08790000:: @ 08790000 + .incbin "baserom.gba", 0x790000, 0x0000001 + +gUnk_08790001:: @ 08790001 + .incbin "baserom.gba", 0x790001, 0x0000001 + +gUnk_08790002:: @ 08790002 + .incbin "baserom.gba", 0x790002, 0x0000001 + +gUnk_08790003:: @ 08790003 + .incbin "baserom.gba", 0x790003, 0x0000001 + +gUnk_08790004:: @ 08790004 + .incbin "baserom.gba", 0x790004, 0x0000002 + +gUnk_08790006:: @ 08790006 + .incbin "baserom.gba", 0x790006, 0x0000001 + +gUnk_08790007:: @ 08790007 + .incbin "baserom.gba", 0x790007, 0x0000001 + +gUnk_08790008:: @ 08790008 + .incbin "baserom.gba", 0x790008, 0x0000002 + +gUnk_0879000A:: @ 0879000A + .incbin "baserom.gba", 0x79000A, 0x0000001 + +gUnk_0879000B:: @ 0879000B + .incbin "baserom.gba", 0x79000B, 0x0000004 + +gUnk_0879000F:: @ 0879000F + .incbin "baserom.gba", 0x79000F, 0x0000001 + +gUnk_08790010:: @ 08790010 + .incbin "baserom.gba", 0x790010, 0x0000003 + +gUnk_08790013:: @ 08790013 + .incbin "baserom.gba", 0x790013, 0x0000007 + +gUnk_0879001A:: @ 0879001A + .incbin "baserom.gba", 0x79001A, 0x0000004 + +gUnk_0879001E:: @ 0879001E + .incbin "baserom.gba", 0x79001E, 0x0000002 + +gUnk_08790020:: @ 08790020 + .incbin "baserom.gba", 0x790020, 0x000000C + +gUnk_0879002C:: @ 0879002C + .incbin "baserom.gba", 0x79002C, 0x0000010 + +gUnk_0879003C:: @ 0879003C + .incbin "baserom.gba", 0x79003C, 0x0000004 + +gUnk_08790040:: @ 08790040 + .incbin "baserom.gba", 0x790040, 0x0000008 + +gUnk_08790048:: @ 08790048 + .incbin "baserom.gba", 0x790048, 0x000000C + +gUnk_08790054:: @ 08790054 + .incbin "baserom.gba", 0x790054, 0x0000004 + +gUnk_08790058:: @ 08790058 + .incbin "baserom.gba", 0x790058, 0x0000002 + +gUnk_0879005A:: @ 0879005A + .incbin "baserom.gba", 0x79005A, 0x000000E + +gUnk_08790068:: @ 08790068 + .incbin "baserom.gba", 0x790068, 0x0000004 + +gUnk_0879006C:: @ 0879006C + .incbin "baserom.gba", 0x79006C, 0x000000C + +gUnk_08790078:: @ 08790078 + .incbin "baserom.gba", 0x790078, 0x0000008 + +gUnk_08790080:: @ 08790080 + .incbin "baserom.gba", 0x790080, 0x0000002 + +gUnk_08790082:: @ 08790082 + .incbin "baserom.gba", 0x790082, 0x000000A + +gUnk_0879008C:: @ 0879008C + .incbin "baserom.gba", 0x79008C, 0x0000009 + +gUnk_08790095:: @ 08790095 + .incbin "baserom.gba", 0x790095, 0x0000001 + +gUnk_08790096:: @ 08790096 + .incbin "baserom.gba", 0x790096, 0x0000022 + +gUnk_087900B8:: @ 087900B8 + .incbin "baserom.gba", 0x7900B8, 0x0000018 + +gUnk_087900D0:: @ 087900D0 + .incbin "baserom.gba", 0x7900D0, 0x0000019 + +gUnk_087900E9:: @ 087900E9 + .incbin "baserom.gba", 0x7900E9, 0x0000007 + +gUnk_087900F0:: @ 087900F0 + .incbin "baserom.gba", 0x7900F0, 0x0000001 + +gUnk_087900F1:: @ 087900F1 + .incbin "baserom.gba", 0x7900F1, 0x000000F + +gUnk_08790100:: @ 08790100 + .incbin "baserom.gba", 0x790100, 0x0000007 + +gUnk_08790107:: @ 08790107 + .incbin "baserom.gba", 0x790107, 0x000000A + +gUnk_08790111:: @ 08790111 + .incbin "baserom.gba", 0x790111, 0x000002F + +gUnk_08790140:: @ 08790140 + .incbin "baserom.gba", 0x790140, 0x0000040 + +gUnk_08790180:: @ 08790180 + .incbin "baserom.gba", 0x790180, 0x0000008 + +gUnk_08790188:: @ 08790188 + .incbin "baserom.gba", 0x790188, 0x0000008 + +gUnk_08790190:: @ 08790190 + .incbin "baserom.gba", 0x790190, 0x0000039 + +gUnk_087901C9:: @ 087901C9 + .incbin "baserom.gba", 0x7901C9, 0x000002A + +gUnk_087901F3:: @ 087901F3 + .incbin "baserom.gba", 0x7901F3, 0x000000D + +gUnk_08790200:: @ 08790200 + .incbin "baserom.gba", 0x790200, 0x0000201 + +gUnk_08790401:: @ 08790401 + .incbin "baserom.gba", 0x790401, 0x0000001 + +gUnk_08790402:: @ 08790402 + .incbin "baserom.gba", 0x790402, 0x0000041 + +gUnk_08790443:: @ 08790443 + .incbin "baserom.gba", 0x790443, 0x0000001 + +gUnk_08790444:: @ 08790444 + .incbin "baserom.gba", 0x790444, 0x0000006 + +gUnk_0879044A:: @ 0879044A + .incbin "baserom.gba", 0x79044A, 0x0000009 + +gUnk_08790453:: @ 08790453 + .incbin "baserom.gba", 0x790453, 0x0000006 + +gUnk_08790459:: @ 08790459 + .incbin "baserom.gba", 0x790459, 0x000000A + +gUnk_08790463:: @ 08790463 + .incbin "baserom.gba", 0x790463, 0x0000001 + +gUnk_08790464:: @ 08790464 + .incbin "baserom.gba", 0x790464, 0x0000024 + +gUnk_08790488:: @ 08790488 + .incbin "baserom.gba", 0x790488, 0x0000378 + +gUnk_08790800:: @ 08790800 + .incbin "baserom.gba", 0x790800, 0x0000001 + +gUnk_08790801:: @ 08790801 + .incbin "baserom.gba", 0x790801, 0x0000004 + +gUnk_08790805:: @ 08790805 + .incbin "baserom.gba", 0x790805, 0x0000001 + +gUnk_08790806:: @ 08790806 + .incbin "baserom.gba", 0x790806, 0x0000001 + +gUnk_08790807:: @ 08790807 + .incbin "baserom.gba", 0x790807, 0x0000003 + +gUnk_0879080A:: @ 0879080A + .incbin "baserom.gba", 0x79080A, 0x0000003 + +gUnk_0879080D:: @ 0879080D + .incbin "baserom.gba", 0x79080D, 0x0000002 + +gUnk_0879080F:: @ 0879080F + .incbin "baserom.gba", 0x79080F, 0x0000ABA + +gUnk_087912C9:: @ 087912C9 + .incbin "baserom.gba", 0x7912C9, 0x0000957 + +gUnk_08791C20:: @ 08791C20 + .incbin "baserom.gba", 0x791C20, 0x00023E0 + +gUnk_08794000:: @ 08794000 + .incbin "baserom.gba", 0x794000, 0x0000107 + +gUnk_08794107:: @ 08794107 + .incbin "baserom.gba", 0x794107, 0x0000FF9 + +gUnk_08795100:: @ 08795100 + .incbin "baserom.gba", 0x795100, 0x0001000 + +gUnk_08796100:: @ 08796100 + .incbin "baserom.gba", 0x796100, 0x0001879 + +gUnk_08797979:: @ 08797979 + .incbin "baserom.gba", 0x797979, 0x0000687 + +gUnk_08798000:: @ 08798000 + .incbin "baserom.gba", 0x798000, 0x0001992 + +gUnk_08799992:: @ 08799992 + .incbin "baserom.gba", 0x799992, 0x000008E + +gUnk_08799A20:: @ 08799A20 + .incbin "baserom.gba", 0x799A20, 0x00064DE + +gUnk_0879FEFE:: @ 0879FEFE + .incbin "baserom.gba", 0x79FEFE, 0x00000BA + +gUnk_0879FFB8:: @ 0879FFB8 + .incbin "baserom.gba", 0x79FFB8, 0x0000004 + +gUnk_0879FFBC:: @ 0879FFBC + .incbin "baserom.gba", 0x79FFBC, 0x0000010 + +gUnk_0879FFCC:: @ 0879FFCC + .incbin "baserom.gba", 0x79FFCC, 0x0000004 + +gUnk_0879FFD0:: @ 0879FFD0 + .incbin "baserom.gba", 0x79FFD0, 0x0000010 + +gUnk_0879FFE0:: @ 0879FFE0 + .incbin "baserom.gba", 0x79FFE0, 0x0000006 + +gUnk_0879FFE6:: @ 0879FFE6 + .incbin "baserom.gba", 0x79FFE6, 0x0000002 + +gUnk_0879FFE8:: @ 0879FFE8 + .incbin "baserom.gba", 0x79FFE8, 0x0000008 + +gUnk_0879FFF0:: @ 0879FFF0 + .incbin "baserom.gba", 0x79FFF0, 0x0000008 + +gUnk_0879FFF8:: @ 0879FFF8 + .incbin "baserom.gba", 0x79FFF8, 0x0000002 + +gUnk_0879FFFA:: @ 0879FFFA + .incbin "baserom.gba", 0x79FFFA, 0x0000005 + +gUnk_0879FFFF:: @ 0879FFFF + .incbin "baserom.gba", 0x79FFFF, 0x000007A + +gUnk_087A0079:: @ 087A0079 + .incbin "baserom.gba", 0x7A0079, 0x0001650 + +gUnk_087A16C9:: @ 087A16C9 + .incbin "baserom.gba", 0x7A16C9, 0x000A940 + +gUnk_087AC009:: @ 087AC009 + .incbin "baserom.gba", 0x7AC009, 0x0000DD4 + +gUnk_087ACDDD:: @ 087ACDDD + .incbin "baserom.gba", 0x7ACDDD, 0x0003223 + +gUnk_087B0000:: @ 087B0000 + .incbin "baserom.gba", 0x7B0000, 0x0000002 + +gUnk_087B0002:: @ 087B0002 + .incbin "baserom.gba", 0x7B0002, 0x0000002 + +gUnk_087B0004:: @ 087B0004 + .incbin "baserom.gba", 0x7B0004, 0x0000001 + +gUnk_087B0005:: @ 087B0005 + .incbin "baserom.gba", 0x7B0005, 0x0000002 + +gUnk_087B0007:: @ 087B0007 + .incbin "baserom.gba", 0x7B0007, 0x0000001 + +gUnk_087B0008:: @ 087B0008 + .incbin "baserom.gba", 0x7B0008, 0x0000001 + +gUnk_087B0009:: @ 087B0009 + .incbin "baserom.gba", 0x7B0009, 0x0000006 + +gUnk_087B000F:: @ 087B000F + .incbin "baserom.gba", 0x7B000F, 0x0000001 + +gUnk_087B0010:: @ 087B0010 + .incbin "baserom.gba", 0x7B0010, 0x0000002 + +gUnk_087B0012:: @ 087B0012 + .incbin "baserom.gba", 0x7B0012, 0x0000002 + +gUnk_087B0014:: @ 087B0014 + .incbin "baserom.gba", 0x7B0014, 0x0000002 + +gUnk_087B0016:: @ 087B0016 + .incbin "baserom.gba", 0x7B0016, 0x0000008 + +gUnk_087B001E:: @ 087B001E + .incbin "baserom.gba", 0x7B001E, 0x000000A + +gUnk_087B0028:: @ 087B0028 + .incbin "baserom.gba", 0x7B0028, 0x0000008 + +gUnk_087B0030:: @ 087B0030 + .incbin "baserom.gba", 0x7B0030, 0x000000C + +gUnk_087B003C:: @ 087B003C + .incbin "baserom.gba", 0x7B003C, 0x0000038 + +gUnk_087B0074:: @ 087B0074 + .incbin "baserom.gba", 0x7B0074, 0x0000004 + +gUnk_087B0078:: @ 087B0078 + .incbin "baserom.gba", 0x7B0078, 0x000001E + +gUnk_087B0096:: @ 087B0096 + .incbin "baserom.gba", 0x7B0096, 0x0000022 + +gUnk_087B00B8:: @ 087B00B8 + .incbin "baserom.gba", 0x7B00B8, 0x0000040 + +gUnk_087B00F8:: @ 087B00F8 + .incbin "baserom.gba", 0x7B00F8, 0x0000019 + +gUnk_087B0111:: @ 087B0111 + .incbin "baserom.gba", 0x7B0111, 0x000002B + +gUnk_087B013C:: @ 087B013C + .incbin "baserom.gba", 0x7B013C, 0x0000004 + +gUnk_087B0140:: @ 087B0140 + .incbin "baserom.gba", 0x7B0140, 0x0000087 + +gUnk_087B01C7:: @ 087B01C7 + .incbin "baserom.gba", 0x7B01C7, 0x00000B3 + +gUnk_087B027A:: @ 087B027A + .incbin "baserom.gba", 0x7B027A, 0x0000187 + +gUnk_087B0401:: @ 087B0401 + .incbin "baserom.gba", 0x7B0401, 0x0000001 + +gUnk_087B0402:: @ 087B0402 + .incbin "baserom.gba", 0x7B0402, 0x0000035 + +gUnk_087B0437:: @ 087B0437 + .incbin "baserom.gba", 0x7B0437, 0x0000008 + +gUnk_087B043F:: @ 087B043F + .incbin "baserom.gba", 0x7B043F, 0x000003F + +gUnk_087B047E:: @ 087B047E + .incbin "baserom.gba", 0x7B047E, 0x0000170 + +gUnk_087B05EE:: @ 087B05EE + .incbin "baserom.gba", 0x7B05EE, 0x0000212 + +gUnk_087B0800:: @ 087B0800 + .incbin "baserom.gba", 0x7B0800, 0x0000001 + +gUnk_087B0801:: @ 087B0801 + .incbin "baserom.gba", 0x7B0801, 0x0000003 + +gUnk_087B0804:: @ 087B0804 + .incbin "baserom.gba", 0x7B0804, 0x0000002 + +gUnk_087B0806:: @ 087B0806 + .incbin "baserom.gba", 0x7B0806, 0x0000001 + +gUnk_087B0807:: @ 087B0807 + .incbin "baserom.gba", 0x7B0807, 0x0000002 + +gUnk_087B0809:: @ 087B0809 + .incbin "baserom.gba", 0x7B0809, 0x000002A + +gUnk_087B0833:: @ 087B0833 + .incbin "baserom.gba", 0x7B0833, 0x0000047 + +gUnk_087B087A:: @ 087B087A + .incbin "baserom.gba", 0x7B087A, 0x0000ABE + +gUnk_087B1338:: @ 087B1338 + .incbin "baserom.gba", 0x7B1338, 0x0004EC5 + +gUnk_087B61FD:: @ 087B61FD + .incbin "baserom.gba", 0x7B61FD, 0x0006BE1 + +gUnk_087BCDDE:: @ 087BCDDE + .incbin "baserom.gba", 0x7BCDDE, 0x00020FF + +gUnk_087BEEDD:: @ 087BEEDD + .incbin "baserom.gba", 0x7BEEDD, 0x0001123 + +gUnk_087C0000:: @ 087C0000 + .incbin "baserom.gba", 0x7C0000, 0x0000004 + +gUnk_087C0004:: @ 087C0004 + .incbin "baserom.gba", 0x7C0004, 0x0000038 + +gUnk_087C003C:: @ 087C003C + .incbin "baserom.gba", 0x7C003C, 0x0000104 + +gUnk_087C0140:: @ 087C0140 + .incbin "baserom.gba", 0x7C0140, 0x00002C1 + +gUnk_087C0401:: @ 087C0401 + .incbin "baserom.gba", 0x7C0401, 0x0000036 + +gUnk_087C0437:: @ 087C0437 + .incbin "baserom.gba", 0x7C0437, 0x000000D + +gUnk_087C0444:: @ 087C0444 + .incbin "baserom.gba", 0x7C0444, 0x0000005 + +gUnk_087C0449:: @ 087C0449 + .incbin "baserom.gba", 0x7C0449, 0x0000010 + +gUnk_087C0459:: @ 087C0459 + .incbin "baserom.gba", 0x7C0459, 0x0000025 + +gUnk_087C047E:: @ 087C047E + .incbin "baserom.gba", 0x7C047E, 0x0000292 + +gUnk_087C0710:: @ 087C0710 + .incbin "baserom.gba", 0x7C0710, 0x0000024 + +gUnk_087C0734:: @ 087C0734 + .incbin "baserom.gba", 0x7C0734, 0x00000D1 + +gUnk_087C0805:: @ 087C0805 + .incbin "baserom.gba", 0x7C0805, 0x0000076 + +gUnk_087C087B:: @ 087C087B + .incbin "baserom.gba", 0x7C087B, 0x000F74F + +gUnk_087CFFCA:: @ 087CFFCA + .incbin "baserom.gba", 0x7CFFCA, 0x0000030 + +gUnk_087CFFFA:: @ 087CFFFA + .incbin "baserom.gba", 0x7CFFFA, 0x0006683 + +gUnk_087D667D:: @ 087D667D + .incbin "baserom.gba", 0x7D667D, 0x0002614 + +gUnk_087D8C91:: @ 087D8C91 + .incbin "baserom.gba", 0x7D8C91, 0x000739D + +gUnk_087E002E:: @ 087E002E + .incbin "baserom.gba", 0x7E002E, 0x00006D2 + +gUnk_087E0700:: @ 087E0700 + .incbin "baserom.gba", 0x7E0700, 0x0000598 + +gUnk_087E0C98:: @ 087E0C98 + .incbin "baserom.gba", 0x7E0C98, 0x000095B + +gUnk_087E15F3:: @ 087E15F3 + .incbin "baserom.gba", 0x7E15F3, 0x000A6BF + +gUnk_087EBCB2:: @ 087EBCB2 + .incbin "baserom.gba", 0x7EBCB2, 0x000323C + +gUnk_087EEEEE:: @ 087EEEEE + .incbin "baserom.gba", 0x7EEEEE, 0x000112A + +gUnk_087F0018:: @ 087F0018 + .incbin "baserom.gba", 0x7F0018, 0x0000064 + +gUnk_087F007C:: @ 087F007C + .incbin "baserom.gba", 0x7F007C, 0x0000260 + +gUnk_087F02DC:: @ 087F02DC + .incbin "baserom.gba", 0x7F02DC, 0x0000824 + +gUnk_087F0B00:: @ 087F0B00 + .incbin "baserom.gba", 0x7F0B00, 0x0000422 + +gUnk_087F0F22:: @ 087F0F22 + .incbin "baserom.gba", 0x7F0F22, 0x0000067 + +gUnk_087F0F89:: @ 087F0F89 + .incbin "baserom.gba", 0x7F0F89, 0x00000F6 + +gUnk_087F107F:: @ 087F107F + .incbin "baserom.gba", 0x7F107F, 0x0000020 + +gUnk_087F109F:: @ 087F109F + .incbin "baserom.gba", 0x7F109F, 0x0000003 + +gUnk_087F10A2:: @ 087F10A2 + .incbin "baserom.gba", 0x7F10A2, 0x000053F + +gUnk_087F15E1:: @ 087F15E1 + .incbin "baserom.gba", 0x7F15E1, 0x0001F74 + +gUnk_087F3555:: @ 087F3555 + .incbin "baserom.gba", 0x7F3555, 0x0002B9E + +gUnk_087F60F3:: @ 087F60F3 + .incbin "baserom.gba", 0x7F60F3, 0x0002643 + +gUnk_087F8736:: @ 087F8736 + .incbin "baserom.gba", 0x7F8736, 0x0003695 + +gUnk_087FBDCB:: @ 087FBDCB + .incbin "baserom.gba", 0x7FBDCB, 0x0000001 + +gUnk_087FBDCC:: @ 087FBDCC + .incbin "baserom.gba", 0x7FBDCC, 0x000023A + +gUnk_087FC006:: @ 087FC006 + .incbin "baserom.gba", 0x7FC006, 0x000310B + +gUnk_087FF111:: @ 087FF111 + .incbin "baserom.gba", 0x7FF111, 0x000011B + +gUnk_087FF22C:: @ 087FF22C + .incbin "baserom.gba", 0x7FF22C, 0x000066B + +gUnk_087FF897:: @ 087FF897 + .incbin "baserom.gba", 0x7FF897, 0x0000769 + +gUnk_08800000:: @ 08800000 + .incbin "baserom.gba", 0x800000, 0x0000002 + +gUnk_08800002:: @ 08800002 + .incbin "baserom.gba", 0x800002, 0x0000002 + +gUnk_08800004:: @ 08800004 + .incbin "baserom.gba", 0x800004, 0x0000002 + +gUnk_08800006:: @ 08800006 + .incbin "baserom.gba", 0x800006, 0x0000001 + +gUnk_08800007:: @ 08800007 + .incbin "baserom.gba", 0x800007, 0x0000001 + +gUnk_08800008:: @ 08800008 + .incbin "baserom.gba", 0x800008, 0x0000001 + +gUnk_08800009:: @ 08800009 + .incbin "baserom.gba", 0x800009, 0x0000001 + +gUnk_0880000A:: @ 0880000A + .incbin "baserom.gba", 0x80000A, 0x0000039 + +gUnk_08800043:: @ 08800043 + .incbin "baserom.gba", 0x800043, 0x000007D + +gUnk_088000C0:: @ 088000C0 + .incbin "baserom.gba", 0x8000C0, 0x0000047 + +gUnk_08800107:: @ 08800107 + .incbin "baserom.gba", 0x800107, 0x0000009 + +gUnk_08800110:: @ 08800110 + .incbin "baserom.gba", 0x800110, 0x0000324 + +gUnk_08800434:: @ 08800434 + .incbin "baserom.gba", 0x800434, 0x000000F + +gUnk_08800443:: @ 08800443 + .incbin "baserom.gba", 0x800443, 0x00001FD + +gUnk_08800640:: @ 08800640 + .incbin "baserom.gba", 0x800640, 0x00002B0 + +gUnk_088008F0:: @ 088008F0 + .incbin "baserom.gba", 0x8008F0, 0x00000F6 + +gUnk_088009E6:: @ 088009E6 + .incbin "baserom.gba", 0x8009E6, 0x0000242 + +gUnk_08800C28:: @ 08800C28 + .incbin "baserom.gba", 0x800C28, 0x0000FD8 + +gUnk_08801C00:: @ 08801C00 + .incbin "baserom.gba", 0x801C00, 0x0000B80 + +gUnk_08802780:: @ 08802780 + .incbin "baserom.gba", 0x802780, 0x0000EE3 + +gUnk_08803663:: @ 08803663 + .incbin "baserom.gba", 0x803663, 0x00009A1 + +gUnk_08804004:: @ 08804004 + .incbin "baserom.gba", 0x804004, 0x0000114 + +gUnk_08804118:: @ 08804118 + .incbin "baserom.gba", 0x804118, 0x000001A + +gUnk_08804132:: @ 08804132 + .incbin "baserom.gba", 0x804132, 0x0002501 + +gUnk_08806633:: @ 08806633 + .incbin "baserom.gba", 0x806633, 0x000101B + +gUnk_0880764E:: @ 0880764E + .incbin "baserom.gba", 0x80764E, 0x00004B9 + +gUnk_08807B07:: @ 08807B07 + .incbin "baserom.gba", 0x807B07, 0x0000C7A + +gUnk_08808781:: @ 08808781 + .incbin "baserom.gba", 0x808781, 0x000007F + +gUnk_08808800:: @ 08808800 + .incbin "baserom.gba", 0x808800, 0x0002C08 + +gUnk_0880B408:: @ 0880B408 + .incbin "baserom.gba", 0x80B408, 0x0000BFA + +gUnk_0880C002:: @ 0880C002 + .incbin "baserom.gba", 0x80C002, 0x00013EF + +gUnk_0880D3F1:: @ 0880D3F1 + .incbin "baserom.gba", 0x80D3F1, 0x0000986 + +gUnk_0880DD77:: @ 0880DD77 + .incbin "baserom.gba", 0x80DD77, 0x0000B90 + +gUnk_0880E907:: @ 0880E907 + .incbin "baserom.gba", 0x80E907, 0x00000F3 + +gUnk_0880E9FA:: @ 0880E9FA + .incbin "baserom.gba", 0x80E9FA, 0x000000E + +gUnk_0880EA08:: @ 0880EA08 + .incbin "baserom.gba", 0x80EA08, 0x00000F8 + +gUnk_0880EB00:: @ 0880EB00 + .incbin "baserom.gba", 0x80EB00, 0x0000008 + +gUnk_0880EB08:: @ 0880EB08 + .incbin "baserom.gba", 0x80EB08, 0x0000001 + +gUnk_0880EB09:: @ 0880EB09 + .incbin "baserom.gba", 0x80EB09, 0x0000001 + +gUnk_0880EB0A:: @ 0880EB0A + .incbin "baserom.gba", 0x80EB0A, 0x00000E1 + +gUnk_0880EBEB:: @ 0880EBEB + .incbin "baserom.gba", 0x80EBEB, 0x0000005 + +gUnk_0880EBF0:: @ 0880EBF0 + .incbin "baserom.gba", 0x80EBF0, 0x0000018 + +gUnk_0880EC08:: @ 0880EC08 + .incbin "baserom.gba", 0x80EC08, 0x0000003 + +gUnk_0880EC0B:: @ 0880EC0B + .incbin "baserom.gba", 0x80EC0B, 0x00000E5 + +gUnk_0880ECF0:: @ 0880ECF0 + .incbin "baserom.gba", 0x80ECF0, 0x000021A + +gUnk_0880EF0A:: @ 0880EF0A + .incbin "baserom.gba", 0x80EF0A, 0x00000E7 + +gUnk_0880EFF1:: @ 0880EFF1 + .incbin "baserom.gba", 0x80EFF1, 0x000000B + +gUnk_0880EFFC:: @ 0880EFFC + .incbin "baserom.gba", 0x80EFFC, 0x0000110 + +gUnk_0880F10C:: @ 0880F10C + .incbin "baserom.gba", 0x80F10C, 0x00001F8 + +gUnk_0880F304:: @ 0880F304 + .incbin "baserom.gba", 0x80F304, 0x00001F8 + +gUnk_0880F4FC:: @ 0880F4FC + .incbin "baserom.gba", 0x80F4FC, 0x000000B + +gUnk_0880F507:: @ 0880F507 + .incbin "baserom.gba", 0x80F507, 0x00003F1 + +gUnk_0880F8F8:: @ 0880F8F8 + .incbin "baserom.gba", 0x80F8F8, 0x0000304 + +gUnk_0880FBFC:: @ 0880FBFC + .incbin "baserom.gba", 0x80FBFC, 0x0000584 + +gUnk_08810180:: @ 08810180 + .incbin "baserom.gba", 0x810180, 0x0000601 + +gUnk_08810781:: @ 08810781 + .incbin "baserom.gba", 0x810781, 0x000017E + +gUnk_088108FF:: @ 088108FF + .incbin "baserom.gba", 0x8108FF, 0x0000E82 + +gUnk_08811781:: @ 08811781 + .incbin "baserom.gba", 0x811781, 0x000099F + +gUnk_08812120:: @ 08812120 + .incbin "baserom.gba", 0x812120, 0x0000C61 + +gUnk_08812D81:: @ 08812D81 + .incbin "baserom.gba", 0x812D81, 0x0001000 + +gUnk_08813D81:: @ 08813D81 + .incbin "baserom.gba", 0x813D81, 0x000027F + +gUnk_08814000:: @ 08814000 + .incbin "baserom.gba", 0x814000, 0x0000105 + +gUnk_08814105:: @ 08814105 + .incbin "baserom.gba", 0x814105, 0x000033F + +gUnk_08814444:: @ 08814444 + .incbin "baserom.gba", 0x814444, 0x00027BB + +gUnk_08816BFF:: @ 08816BFF + .incbin "baserom.gba", 0x816BFF, 0x0001569 + +gUnk_08818168:: @ 08818168 + .incbin "baserom.gba", 0x818168, 0x00006CC + +gUnk_08818834:: @ 08818834 + .incbin "baserom.gba", 0x818834, 0x00053A0 + +gUnk_0881DBD4:: @ 0881DBD4 + .incbin "baserom.gba", 0x81DBD4, 0x000092C + +gUnk_0881E500:: @ 0881E500 + .incbin "baserom.gba", 0x81E500, 0x0000481 + +gUnk_0881E981:: @ 0881E981 + .incbin "baserom.gba", 0x81E981, 0x0000373 + +gUnk_0881ECF4:: @ 0881ECF4 + .incbin "baserom.gba", 0x81ECF4, 0x000008C + +gUnk_0881ED80:: @ 0881ED80 + .incbin "baserom.gba", 0x81ED80, 0x0000D75 + +gUnk_0881FAF5:: @ 0881FAF5 + .incbin "baserom.gba", 0x81FAF5, 0x0000402 + +gUnk_0881FEF7:: @ 0881FEF7 + .incbin "baserom.gba", 0x81FEF7, 0x0000109 + +gUnk_08820000:: @ 08820000 + .incbin "baserom.gba", 0x820000, 0x0000008 + +gUnk_08820008:: @ 08820008 + .incbin "baserom.gba", 0x820008, 0x0000016 + +gUnk_0882001E:: @ 0882001E + .incbin "baserom.gba", 0x82001E, 0x0000081 + +gUnk_0882009F:: @ 0882009F + .incbin "baserom.gba", 0x82009F, 0x0000001 + +gUnk_088200A0:: @ 088200A0 + .incbin "baserom.gba", 0x8200A0, 0x0000013 + +gUnk_088200B3:: @ 088200B3 + .incbin "baserom.gba", 0x8200B3, 0x000025D + +gUnk_08820310:: @ 08820310 + .incbin "baserom.gba", 0x820310, 0x0000149 + +gUnk_08820459:: @ 08820459 + .incbin "baserom.gba", 0x820459, 0x00002AC + +gUnk_08820705:: @ 08820705 + .incbin "baserom.gba", 0x820705, 0x0000100 + +gUnk_08820805:: @ 08820805 + .incbin "baserom.gba", 0x820805, 0x0000001 + +gUnk_08820806:: @ 08820806 + .incbin "baserom.gba", 0x820806, 0x000054C + +gUnk_08820D52:: @ 08820D52 + .incbin "baserom.gba", 0x820D52, 0x00012AE + +gUnk_08822000:: @ 08822000 + .incbin "baserom.gba", 0x822000, 0x0000782 + +gUnk_08822782:: @ 08822782 + .incbin "baserom.gba", 0x822782, 0x0000400 + +gUnk_08822B82:: @ 08822B82 + .incbin "baserom.gba", 0x822B82, 0x00001A9 + +gUnk_08822D2B:: @ 08822D2B + .incbin "baserom.gba", 0x822D2B, 0x0000556 + +gUnk_08823281:: @ 08823281 + .incbin "baserom.gba", 0x823281, 0x0000D85 + +gUnk_08824006:: @ 08824006 + .incbin "baserom.gba", 0x824006, 0x0000550 + +gUnk_08824556:: @ 08824556 + .incbin "baserom.gba", 0x824556, 0x0000ACD + +gUnk_08825023:: @ 08825023 + .incbin "baserom.gba", 0x825023, 0x0000C52 + +gUnk_08825C75:: @ 08825C75 + .incbin "baserom.gba", 0x825C75, 0x000250C + +gUnk_08828181:: @ 08828181 + .incbin "baserom.gba", 0x828181, 0x00071B2 + +gUnk_0882F333:: @ 0882F333 + .incbin "baserom.gba", 0x82F333, 0x0000C8F + +gUnk_0882FFC2:: @ 0882FFC2 + .incbin "baserom.gba", 0x82FFC2, 0x000003E + +gUnk_08830000:: @ 08830000 + .incbin "baserom.gba", 0x830000, 0x0000004 + +gUnk_08830004:: @ 08830004 + .incbin "baserom.gba", 0x830004, 0x0000003 + +gUnk_08830007:: @ 08830007 + .incbin "baserom.gba", 0x830007, 0x0000001 + +gUnk_08830008:: @ 08830008 + .incbin "baserom.gba", 0x830008, 0x0000008 + +gUnk_08830010:: @ 08830010 + .incbin "baserom.gba", 0x830010, 0x0000432 + +gUnk_08830442:: @ 08830442 + .incbin "baserom.gba", 0x830442, 0x0002B41 + +gUnk_08832F83:: @ 08832F83 + .incbin "baserom.gba", 0x832F83, 0x0001574 + +gUnk_088344F7:: @ 088344F7 + .incbin "baserom.gba", 0x8344F7, 0x000006F + +gUnk_08834566:: @ 08834566 + .incbin "baserom.gba", 0x834566, 0x0006DAC + +gUnk_0883B312:: @ 0883B312 + .incbin "baserom.gba", 0x83B312, 0x00047EE + +gUnk_0883FB00:: @ 0883FB00 + .incbin "baserom.gba", 0x83FB00, 0x0000509 + +gUnk_08840009:: @ 08840009 + .incbin "baserom.gba", 0x840009, 0x0000011 + +gUnk_0884001A:: @ 0884001A + .incbin "baserom.gba", 0x84001A, 0x0000066 + +gUnk_08840080:: @ 08840080 + .incbin "baserom.gba", 0x840080, 0x00001E9 + +gUnk_08840269:: @ 08840269 + .incbin "baserom.gba", 0x840269, 0x0000128 + +gUnk_08840391:: @ 08840391 + .incbin "baserom.gba", 0x840391, 0x00000B2 + +gUnk_08840443:: @ 08840443 + .incbin "baserom.gba", 0x840443, 0x000021D + +gUnk_08840660:: @ 08840660 + .incbin "baserom.gba", 0x840660, 0x0000203 + +gUnk_08840863:: @ 08840863 + .incbin "baserom.gba", 0x840863, 0x0000129 + +gUnk_0884098C:: @ 0884098C + .incbin "baserom.gba", 0x84098C, 0x0000154 + +gUnk_08840AE0:: @ 08840AE0 + .incbin "baserom.gba", 0x840AE0, 0x00004C0 + +gUnk_08840FA0:: @ 08840FA0 + .incbin "baserom.gba", 0x840FA0, 0x0000500 + +gUnk_088414A0:: @ 088414A0 + .incbin "baserom.gba", 0x8414A0, 0x0000380 + +gUnk_08841820:: @ 08841820 + .incbin "baserom.gba", 0x841820, 0x00002C0 + +gUnk_08841AE0:: @ 08841AE0 + .incbin "baserom.gba", 0x841AE0, 0x00004E0 + +gUnk_08841FC0:: @ 08841FC0 + .incbin "baserom.gba", 0x841FC0, 0x000026C + +gUnk_0884222C:: @ 0884222C + .incbin "baserom.gba", 0x84222C, 0x00000B4 + +gUnk_088422E0:: @ 088422E0 + .incbin "baserom.gba", 0x8422E0, 0x0000DA0 + +gUnk_08843080:: @ 08843080 + .incbin "baserom.gba", 0x843080, 0x00002B3 + +gUnk_08843333:: @ 08843333 + .incbin "baserom.gba", 0x843333, 0x00001AF + +gUnk_088434E2:: @ 088434E2 + .incbin "baserom.gba", 0x8434E2, 0x00009FE + +gUnk_08843EE0:: @ 08843EE0 + .incbin "baserom.gba", 0x843EE0, 0x0000375 + +gUnk_08844255:: @ 08844255 + .incbin "baserom.gba", 0x844255, 0x00001F0 + +gUnk_08844445:: @ 08844445 + .incbin "baserom.gba", 0x844445, 0x000097B + +gUnk_08844DC0:: @ 08844DC0 + .incbin "baserom.gba", 0x844DC0, 0x0000795 + +gUnk_08845555:: @ 08845555 + .incbin "baserom.gba", 0x845555, 0x000064B + +gUnk_08845BA0:: @ 08845BA0 + .incbin "baserom.gba", 0x845BA0, 0x0001A00 + +gUnk_088475A0:: @ 088475A0 + .incbin "baserom.gba", 0x8475A0, 0x00002E7 + +gUnk_08847887:: @ 08847887 + .incbin "baserom.gba", 0x847887, 0x00007FE + +gUnk_08848085:: @ 08848085 + .incbin "baserom.gba", 0x848085, 0x0000EDB + +gUnk_08848F60:: @ 08848F60 + .incbin "baserom.gba", 0x848F60, 0x00010C0 + +gUnk_0884A020:: @ 0884A020 + .incbin "baserom.gba", 0x84A020, 0x00003E0 + +gUnk_0884A400:: @ 0884A400 + .incbin "baserom.gba", 0x84A400, 0x00003A0 + +gUnk_0884A7A0:: @ 0884A7A0 + .incbin "baserom.gba", 0x84A7A0, 0x0000360 + +gUnk_0884AB00:: @ 0884AB00 + .incbin "baserom.gba", 0x84AB00, 0x00000CD + +gUnk_0884ABCD:: @ 0884ABCD + .incbin "baserom.gba", 0x84ABCD, 0x0000AB3 + +gUnk_0884B680:: @ 0884B680 + .incbin "baserom.gba", 0x84B680, 0x00006B2 + +gUnk_0884BD32:: @ 0884BD32 + .incbin "baserom.gba", 0x84BD32, 0x000044E + +gUnk_0884C180:: @ 0884C180 + .incbin "baserom.gba", 0x84C180, 0x0000AE0 + +gUnk_0884CC60:: @ 0884CC60 + .incbin "baserom.gba", 0x84CC60, 0x0000480 + +gUnk_0884D0E0:: @ 0884D0E0 + .incbin "baserom.gba", 0x84D0E0, 0x0000320 + +gUnk_0884D400:: @ 0884D400 + .incbin "baserom.gba", 0x84D400, 0x0000360 + +gUnk_0884D760:: @ 0884D760 + .incbin "baserom.gba", 0x84D760, 0x00003A0 + +gUnk_0884DB00:: @ 0884DB00 + .incbin "baserom.gba", 0x84DB00, 0x0000400 + +gUnk_0884DF00:: @ 0884DF00 + .incbin "baserom.gba", 0x84DF00, 0x00006F0 + +gUnk_0884E5F0:: @ 0884E5F0 + .incbin "baserom.gba", 0x84E5F0, 0x00000F0 + +gUnk_0884E6E0:: @ 0884E6E0 + .incbin "baserom.gba", 0x84E6E0, 0x0000428 + +gUnk_0884EB08:: @ 0884EB08 + .incbin "baserom.gba", 0x84EB08, 0x0000100 + +gUnk_0884EC08:: @ 0884EC08 + .incbin "baserom.gba", 0x84EC08, 0x0000400 + +gUnk_0884F008:: @ 0884F008 + .incbin "baserom.gba", 0x84F008, 0x00000EC + +gUnk_0884F0F4:: @ 0884F0F4 + .incbin "baserom.gba", 0x84F0F4, 0x0000100 + +gUnk_0884F1F4:: @ 0884F1F4 + .incbin "baserom.gba", 0x84F1F4, 0x0000E0D + +gUnk_08850001:: @ 08850001 + .incbin "baserom.gba", 0x850001, 0x0000007 + +gUnk_08850008:: @ 08850008 + .incbin "baserom.gba", 0x850008, 0x000047D + +gUnk_08850485:: @ 08850485 + .incbin "baserom.gba", 0x850485, 0x00003FF + +gUnk_08850884:: @ 08850884 + .incbin "baserom.gba", 0x850884, 0x0000101 + +gUnk_08850985:: @ 08850985 + .incbin "baserom.gba", 0x850985, 0x000075B + +gUnk_088510E0:: @ 088510E0 + .incbin "baserom.gba", 0x8510E0, 0x00001B1 + +gUnk_08851291:: @ 08851291 + .incbin "baserom.gba", 0x851291, 0x00015F4 + +gUnk_08852885:: @ 08852885 + .incbin "baserom.gba", 0x852885, 0x0000100 + +gUnk_08852985:: @ 08852985 + .incbin "baserom.gba", 0x852985, 0x0001073 + +gUnk_088539F8:: @ 088539F8 + .incbin "baserom.gba", 0x8539F8, 0x00000E8 + +gUnk_08853AE0:: @ 08853AE0 + .incbin "baserom.gba", 0x853AE0, 0x0000FCA + +gUnk_08854AAA:: @ 08854AAA + .incbin "baserom.gba", 0x854AAA, 0x0000B10 + +gUnk_088555BA:: @ 088555BA + .incbin "baserom.gba", 0x8555BA, 0x0000F26 + +gUnk_088564E0:: @ 088564E0 + .incbin "baserom.gba", 0x8564E0, 0x00003C0 + +gUnk_088568A0:: @ 088568A0 + .incbin "baserom.gba", 0x8568A0, 0x0000380 + +gUnk_08856C20:: @ 08856C20 + .incbin "baserom.gba", 0x856C20, 0x0000380 + +gUnk_08856FA0:: @ 08856FA0 + .incbin "baserom.gba", 0x856FA0, 0x0000380 + +gUnk_08857320:: @ 08857320 + .incbin "baserom.gba", 0x857320, 0x0000560 + +gUnk_08857880:: @ 08857880 + .incbin "baserom.gba", 0x857880, 0x0000480 + +gUnk_08857D00:: @ 08857D00 + .incbin "baserom.gba", 0x857D00, 0x000030A + +gUnk_0885800A:: @ 0885800A + .incbin "baserom.gba", 0x85800A, 0x0000176 + +gUnk_08858180:: @ 08858180 + .incbin "baserom.gba", 0x858180, 0x0000500 + +gUnk_08858680:: @ 08858680 + .incbin "baserom.gba", 0x858680, 0x00014C0 + +gUnk_08859B40:: @ 08859B40 + .incbin "baserom.gba", 0x859B40, 0x0000660 + +gUnk_0885A1A0:: @ 0885A1A0 + .incbin "baserom.gba", 0x85A1A0, 0x0001080 + +gUnk_0885B220:: @ 0885B220 + .incbin "baserom.gba", 0x85B220, 0x0000800 + +gUnk_0885BA20:: @ 0885BA20 + .incbin "baserom.gba", 0x85BA20, 0x0000800 + +gUnk_0885C220:: @ 0885C220 + .incbin "baserom.gba", 0x85C220, 0x0000500 + +gUnk_0885C720:: @ 0885C720 + .incbin "baserom.gba", 0x85C720, 0x0000500 + +gUnk_0885CC20:: @ 0885CC20 + .incbin "baserom.gba", 0x85CC20, 0x0001BF3 + +gUnk_0885E813:: @ 0885E813 + .incbin "baserom.gba", 0x85E813, 0x00000E5 + +gUnk_0885E8F8:: @ 0885E8F8 + .incbin "baserom.gba", 0x85E8F8, 0x00013A8 + +gUnk_0885FCA0:: @ 0885FCA0 + .incbin "baserom.gba", 0x85FCA0, 0x0000362 + +gUnk_08860002:: @ 08860002 + .incbin "baserom.gba", 0x860002, 0x00000CB + +gUnk_088600CD:: @ 088600CD + .incbin "baserom.gba", 0x8600CD, 0x0000075 + +gUnk_08860142:: @ 08860142 + .incbin "baserom.gba", 0x860142, 0x00007C1 + +gUnk_08860903:: @ 08860903 + .incbin "baserom.gba", 0x860903, 0x0000383 + +gUnk_08860C86:: @ 08860C86 + .incbin "baserom.gba", 0x860C86, 0x000028A + +gUnk_08860F10:: @ 08860F10 + .incbin "baserom.gba", 0x860F10, 0x0001770 + +gUnk_08862680:: @ 08862680 + .incbin "baserom.gba", 0x862680, 0x0000413 + +gUnk_08862A93:: @ 08862A93 + .incbin "baserom.gba", 0x862A93, 0x0001974 + +gUnk_08864407:: @ 08864407 + .incbin "baserom.gba", 0x864407, 0x0001C79 + +gUnk_08866080:: @ 08866080 + .incbin "baserom.gba", 0x866080, 0x00006F7 + +gUnk_08866777:: @ 08866777 + .incbin "baserom.gba", 0x866777, 0x0000BDE + +gUnk_08867355:: @ 08867355 + .incbin "baserom.gba", 0x867355, 0x0001498 + +gUnk_088687ED:: @ 088687ED + .incbin "baserom.gba", 0x8687ED, 0x0000253 + +gUnk_08868A40:: @ 08868A40 + .incbin "baserom.gba", 0x868A40, 0x0001F58 + +gUnk_0886A998:: @ 0886A998 + .incbin "baserom.gba", 0x86A998, 0x0000156 + +gUnk_0886AAEE:: @ 0886AAEE + .incbin "baserom.gba", 0x86AAEE, 0x0000367 + +gUnk_0886AE55:: @ 0886AE55 + .incbin "baserom.gba", 0x86AE55, 0x0000009 + +gUnk_0886AE5E:: @ 0886AE5E + .incbin "baserom.gba", 0x86AE5E, 0x00010C2 + +gUnk_0886BF20:: @ 0886BF20 + .incbin "baserom.gba", 0x86BF20, 0x0003900 + +gUnk_0886F820:: @ 0886F820 + .incbin "baserom.gba", 0x86F820, 0x00007E7 + +gUnk_08870007:: @ 08870007 + .incbin "baserom.gba", 0x870007, 0x000000A + +gUnk_08870011:: @ 08870011 + .incbin "baserom.gba", 0x870011, 0x000005A + +gUnk_0887006B:: @ 0887006B + .incbin "baserom.gba", 0x87006B, 0x000001B + +gUnk_08870086:: @ 08870086 + .incbin "baserom.gba", 0x870086, 0x00001E9 + +gUnk_0887026F:: @ 0887026F + .incbin "baserom.gba", 0x87026F, 0x0002691 + +gUnk_08872900:: @ 08872900 + .incbin "baserom.gba", 0x872900, 0x0002C80 + +gUnk_08875580:: @ 08875580 + .incbin "baserom.gba", 0x875580, 0x0001A83 + +gUnk_08877003:: @ 08877003 + .incbin "baserom.gba", 0x877003, 0x0000663 + +gUnk_08877666:: @ 08877666 + .incbin "baserom.gba", 0x877666, 0x0000107 + +gUnk_0887776D:: @ 0887776D + .incbin "baserom.gba", 0x87776D, 0x0000072 + +gUnk_088777DF:: @ 088777DF + .incbin "baserom.gba", 0x8777DF, 0x0000011 + +gUnk_088777F0:: @ 088777F0 + .incbin "baserom.gba", 0x8777F0, 0x00010BF + +gUnk_088788AF:: @ 088788AF + .incbin "baserom.gba", 0x8788AF, 0x00001D1 + +gUnk_08878A80:: @ 08878A80 + .incbin "baserom.gba", 0x878A80, 0x000142B + +gUnk_08879EAB:: @ 08879EAB + .incbin "baserom.gba", 0x879EAB, 0x0001355 + +gUnk_0887B200:: @ 0887B200 + .incbin "baserom.gba", 0x87B200, 0x0002EA0 + +gUnk_0887E0A0:: @ 0887E0A0 + .incbin "baserom.gba", 0x87E0A0, 0x0000668 + +gUnk_0887E708:: @ 0887E708 + .incbin "baserom.gba", 0x87E708, 0x00018F8 + +gUnk_08880000:: @ 08880000 + .incbin "baserom.gba", 0x880000, 0x00000AA + +gUnk_088800AA:: @ 088800AA + .incbin "baserom.gba", 0x8800AA, 0x0000056 + +gUnk_08880100:: @ 08880100 + .incbin "baserom.gba", 0x880100, 0x0000087 + +gUnk_08880187:: @ 08880187 + .incbin "baserom.gba", 0x880187, 0x000028D + +gUnk_08880414:: @ 08880414 + .incbin "baserom.gba", 0x880414, 0x00003F4 + +gUnk_08880808:: @ 08880808 + .incbin "baserom.gba", 0x880808, 0x000098B + +gUnk_08881193:: @ 08881193 + .incbin "baserom.gba", 0x881193, 0x000022D + +gUnk_088813C0:: @ 088813C0 + .incbin "baserom.gba", 0x8813C0, 0x000050C + +gUnk_088818CC:: @ 088818CC + .incbin "baserom.gba", 0x8818CC, 0x0000975 + +gUnk_08882241:: @ 08882241 + .incbin "baserom.gba", 0x882241, 0x0000747 + +gUnk_08882988:: @ 08882988 + .incbin "baserom.gba", 0x882988, 0x0000A13 + +gUnk_0888339B:: @ 0888339B + .incbin "baserom.gba", 0x88339B, 0x0000B05 + +gUnk_08883EA0:: @ 08883EA0 + .incbin "baserom.gba", 0x883EA0, 0x0001F00 + +gUnk_08885DA0:: @ 08885DA0 + .incbin "baserom.gba", 0x885DA0, 0x00019D7 + +gUnk_08887777:: @ 08887777 + .incbin "baserom.gba", 0x887777, 0x0000889 + +gUnk_08888000:: @ 08888000 + .incbin "baserom.gba", 0x888000, 0x0000188 + +gUnk_08888188:: @ 08888188 + .incbin "baserom.gba", 0x888188, 0x0000414 + +gUnk_0888859C:: @ 0888859C + .incbin "baserom.gba", 0x88859C, 0x00001CA + +gUnk_08888766:: @ 08888766 + .incbin "baserom.gba", 0x888766, 0x000000A + +gUnk_08888770:: @ 08888770 + .incbin "baserom.gba", 0x888770, 0x0000090 + +gUnk_08888800:: @ 08888800 + .incbin "baserom.gba", 0x888800, 0x0000080 + +gUnk_08888880:: @ 08888880 + .incbin "baserom.gba", 0x888880, 0x0000008 + +gUnk_08888888:: @ 08888888 + .incbin "baserom.gba", 0x888888, 0x0000001 + +gUnk_08888889:: @ 08888889 + .incbin "baserom.gba", 0x888889, 0x0000010 + +gUnk_08888899:: @ 08888899 + .incbin "baserom.gba", 0x888899, 0x00000EF + +gUnk_08888988:: @ 08888988 + .incbin "baserom.gba", 0x888988, 0x0000012 + +gUnk_0888899A:: @ 0888899A + .incbin "baserom.gba", 0x88899A, 0x0000110 + +gUnk_08888AAA:: @ 08888AAA + .incbin "baserom.gba", 0x888AAA, 0x000043B + +gUnk_08888EE5:: @ 08888EE5 + .incbin "baserom.gba", 0x888EE5, 0x0000093 + +gUnk_08888F78:: @ 08888F78 + .incbin "baserom.gba", 0x888F78, 0x0000912 + +gUnk_0888988A:: @ 0888988A + .incbin "baserom.gba", 0x88988A, 0x0000076 + +gUnk_08889900:: @ 08889900 + .incbin "baserom.gba", 0x889900, 0x000008E + +gUnk_0888998E:: @ 0888998E + .incbin "baserom.gba", 0x88998E, 0x000000B + +gUnk_08889999:: @ 08889999 + .incbin "baserom.gba", 0x889999, 0x0000011 + +gUnk_088899AA:: @ 088899AA + .incbin "baserom.gba", 0x8899AA, 0x00003F6 + +gUnk_08889DA0:: @ 08889DA0 + .incbin "baserom.gba", 0x889DA0, 0x000014E + +gUnk_08889EEE:: @ 08889EEE + .incbin "baserom.gba", 0x889EEE, 0x0000BAC + +gUnk_0888AA9A:: @ 0888AA9A + .incbin "baserom.gba", 0x88AA9A, 0x0000066 + +gUnk_0888AB00:: @ 0888AB00 + .incbin "baserom.gba", 0x88AB00, 0x0000311 + +gUnk_0888AE11:: @ 0888AE11 + .incbin "baserom.gba", 0x88AE11, 0x00001F7 + +gUnk_0888B008:: @ 0888B008 + .incbin "baserom.gba", 0x88B008, 0x0002D18 + +gUnk_0888DD20:: @ 0888DD20 + .incbin "baserom.gba", 0x88DD20, 0x0000140 + +gUnk_0888DE60:: @ 0888DE60 + .incbin "baserom.gba", 0x88DE60, 0x0001B00 + +gUnk_0888F960:: @ 0888F960 + .incbin "baserom.gba", 0x88F960, 0x00006A0 + +gUnk_08890000:: @ 08890000 + .incbin "baserom.gba", 0x890000, 0x000003C + +gUnk_0889003C:: @ 0889003C + .incbin "baserom.gba", 0x89003C, 0x0000014 + +gUnk_08890050:: @ 08890050 + .incbin "baserom.gba", 0x890050, 0x0000028 + +gUnk_08890078:: @ 08890078 + .incbin "baserom.gba", 0x890078, 0x0000008 + +gUnk_08890080:: @ 08890080 + .incbin "baserom.gba", 0x890080, 0x0000034 + +gUnk_088900B4:: @ 088900B4 + .incbin "baserom.gba", 0x8900B4, 0x00000B4 + +gUnk_08890168:: @ 08890168 + .incbin "baserom.gba", 0x890168, 0x0000058 + +gUnk_088901C0:: @ 088901C0 + .incbin "baserom.gba", 0x8901C0, 0x0000098 + +gUnk_08890258:: @ 08890258 + .incbin "baserom.gba", 0x890258, 0x00001A9 + +gUnk_08890401:: @ 08890401 + .incbin "baserom.gba", 0x890401, 0x0000048 + +gUnk_08890449:: @ 08890449 + .incbin "baserom.gba", 0x890449, 0x0000010 + +gUnk_08890459:: @ 08890459 + .incbin "baserom.gba", 0x890459, 0x000001D + +gUnk_08890476:: @ 08890476 + .incbin "baserom.gba", 0x890476, 0x0000012 + +gUnk_08890488:: @ 08890488 + .incbin "baserom.gba", 0x890488, 0x0000378 + +gUnk_08890800:: @ 08890800 + .incbin "baserom.gba", 0x890800, 0x0000006 + +gUnk_08890806:: @ 08890806 + .incbin "baserom.gba", 0x890806, 0x0000001 + +gUnk_08890807:: @ 08890807 + .incbin "baserom.gba", 0x890807, 0x00000C5 + +gUnk_088908CC:: @ 088908CC + .incbin "baserom.gba", 0x8908CC, 0x000063A + +gUnk_08890F06:: @ 08890F06 + .incbin "baserom.gba", 0x890F06, 0x00000BA + +gUnk_08890FC0:: @ 08890FC0 + .incbin "baserom.gba", 0x890FC0, 0x000116E + +gUnk_0889212E:: @ 0889212E + .incbin "baserom.gba", 0x89212E, 0x0000B12 + +gUnk_08892C40:: @ 08892C40 + .incbin "baserom.gba", 0x892C40, 0x0002300 + +gUnk_08894F40:: @ 08894F40 + .incbin "baserom.gba", 0x894F40, 0x0001749 + +gUnk_08896689:: @ 08896689 + .incbin "baserom.gba", 0x896689, 0x0000D37 + +gUnk_088973C0:: @ 088973C0 + .incbin "baserom.gba", 0x8973C0, 0x0000440 + +gUnk_08897800:: @ 08897800 + .incbin "baserom.gba", 0x897800, 0x00008C0 + +gUnk_088980C0:: @ 088980C0 + .incbin "baserom.gba", 0x8980C0, 0x0000495 + +gUnk_08898555:: @ 08898555 + .incbin "baserom.gba", 0x898555, 0x0000445 + +gUnk_0889899A:: @ 0889899A + .incbin "baserom.gba", 0x89899A, 0x0000011 + +gUnk_088989AB:: @ 088989AB + .incbin "baserom.gba", 0x8989AB, 0x0000515 + +gUnk_08898EC0:: @ 08898EC0 + .incbin "baserom.gba", 0x898EC0, 0x00000B7 + +gUnk_08898F77:: @ 08898F77 + .incbin "baserom.gba", 0x898F77, 0x00002C9 + +gUnk_08899240:: @ 08899240 + .incbin "baserom.gba", 0x899240, 0x00004C0 + +gUnk_08899700:: @ 08899700 + .incbin "baserom.gba", 0x899700, 0x0000298 + +gUnk_08899998:: @ 08899998 + .incbin "baserom.gba", 0x899998, 0x0000001 + +gUnk_08899999:: @ 08899999 + .incbin "baserom.gba", 0x899999, 0x000004B + +gUnk_088999E4:: @ 088999E4 + .incbin "baserom.gba", 0x8999E4, 0x0000093 + +gUnk_08899A77:: @ 08899A77 + .incbin "baserom.gba", 0x899A77, 0x0000033 + +gUnk_08899AAA:: @ 08899AAA + .incbin "baserom.gba", 0x899AAA, 0x00000B6 + +gUnk_08899B60:: @ 08899B60 + .incbin "baserom.gba", 0x899B60, 0x00002E0 + +gUnk_08899E40:: @ 08899E40 + .incbin "baserom.gba", 0x899E40, 0x00007A0 + +gUnk_0889A5E0:: @ 0889A5E0 + .incbin "baserom.gba", 0x89A5E0, 0x0000300 + +gUnk_0889A8E0:: @ 0889A8E0 + .incbin "baserom.gba", 0x89A8E0, 0x00001BE + +gUnk_0889AA9E:: @ 0889AA9E + .incbin "baserom.gba", 0x89AA9E, 0x0000004 + +gUnk_0889AAA2:: @ 0889AAA2 + .incbin "baserom.gba", 0x89AAA2, 0x0000008 + +gUnk_0889AAAA:: @ 0889AAAA + .incbin "baserom.gba", 0x89AAAA, 0x0000001 + +gUnk_0889AAAB:: @ 0889AAAB + .incbin "baserom.gba", 0x89AAAB, 0x0000010 + +gUnk_0889AABB:: @ 0889AABB + .incbin "baserom.gba", 0x89AABB, 0x0000100 + +gUnk_0889ABBB:: @ 0889ABBB + .incbin "baserom.gba", 0x89ABBB, 0x0000001 + +gUnk_0889ABBC:: @ 0889ABBC + .incbin "baserom.gba", 0x89ABBC, 0x0000C24 + +gUnk_0889B7E0:: @ 0889B7E0 + .incbin "baserom.gba", 0x89B7E0, 0x0000360 + +gUnk_0889BB40:: @ 0889BB40 + .incbin "baserom.gba", 0x89BB40, 0x000018C + +gUnk_0889BCCC:: @ 0889BCCC + .incbin "baserom.gba", 0x89BCCC, 0x00005F4 + +gUnk_0889C2C0:: @ 0889C2C0 + .incbin "baserom.gba", 0x89C2C0, 0x0000400 + +gUnk_0889C6C0:: @ 0889C6C0 + .incbin "baserom.gba", 0x89C6C0, 0x000005C + +gUnk_0889C71C:: @ 0889C71C + .incbin "baserom.gba", 0x89C71C, 0x0000324 + +gUnk_0889CA40:: @ 0889CA40 + .incbin "baserom.gba", 0x89CA40, 0x00005B0 + +gUnk_0889CFF0:: @ 0889CFF0 + .incbin "baserom.gba", 0x89CFF0, 0x0000450 + +gUnk_0889D440:: @ 0889D440 + .incbin "baserom.gba", 0x89D440, 0x0000A00 + +gUnk_0889DE40:: @ 0889DE40 + .incbin "baserom.gba", 0x89DE40, 0x0000300 + +gUnk_0889E140:: @ 0889E140 + .incbin "baserom.gba", 0x89E140, 0x00003D1 + +gUnk_0889E511:: @ 0889E511 + .incbin "baserom.gba", 0x89E511, 0x00000EF + +gUnk_0889E600:: @ 0889E600 + .incbin "baserom.gba", 0x89E600, 0x00007C0 + +gUnk_0889EDC0:: @ 0889EDC0 + .incbin "baserom.gba", 0x89EDC0, 0x000012E + +gUnk_0889EEEE:: @ 0889EEEE + .incbin "baserom.gba", 0x89EEEE, 0x00009F2 + +gUnk_0889F8E0:: @ 0889F8E0 + .incbin "baserom.gba", 0x89F8E0, 0x00007D3 + +gUnk_088A00B3:: @ 088A00B3 + .incbin "baserom.gba", 0x8A00B3, 0x000000D + +gUnk_088A00C0:: @ 088A00C0 + .incbin "baserom.gba", 0x8A00C0, 0x0000360 + +gUnk_088A0420:: @ 088A0420 + .incbin "baserom.gba", 0x8A0420, 0x0000469 + +gUnk_088A0889:: @ 088A0889 + .incbin "baserom.gba", 0x8A0889, 0x0000024 + +gUnk_088A08AD:: @ 088A08AD + .incbin "baserom.gba", 0x8A08AD, 0x0000433 + +gUnk_088A0CE0:: @ 088A0CE0 + .incbin "baserom.gba", 0x8A0CE0, 0x000007F + +gUnk_088A0D5F:: @ 088A0D5F + .incbin "baserom.gba", 0x8A0D5F, 0x000062F + +gUnk_088A138E:: @ 088A138E + .incbin "baserom.gba", 0x8A138E, 0x0000112 + +gUnk_088A14A0:: @ 088A14A0 + .incbin "baserom.gba", 0x8A14A0, 0x0000DC0 + +gUnk_088A2260:: @ 088A2260 + .incbin "baserom.gba", 0x8A2260, 0x00000E5 + +gUnk_088A2345:: @ 088A2345 + .incbin "baserom.gba", 0x8A2345, 0x000021B + +gUnk_088A2560:: @ 088A2560 + .incbin "baserom.gba", 0x8A2560, 0x00002A8 + +gUnk_088A2808:: @ 088A2808 + .incbin "baserom.gba", 0x8A2808, 0x0000038 + +gUnk_088A2840:: @ 088A2840 + .incbin "baserom.gba", 0x8A2840, 0x0000500 + +gUnk_088A2D40:: @ 088A2D40 + .incbin "baserom.gba", 0x8A2D40, 0x00007C0 + +gUnk_088A3500:: @ 088A3500 + .incbin "baserom.gba", 0x8A3500, 0x0000300 + +gUnk_088A3800:: @ 088A3800 + .incbin "baserom.gba", 0x8A3800, 0x00007A0 + +gUnk_088A3FA0:: @ 088A3FA0 + .incbin "baserom.gba", 0x8A3FA0, 0x0000500 + +gUnk_088A44A0:: @ 088A44A0 + .incbin "baserom.gba", 0x8A44A0, 0x00003C0 + +gUnk_088A4860:: @ 088A4860 + .incbin "baserom.gba", 0x8A4860, 0x00009A0 + +gUnk_088A5200:: @ 088A5200 + .incbin "baserom.gba", 0x8A5200, 0x0000DC0 + +gUnk_088A5FC0:: @ 088A5FC0 + .incbin "baserom.gba", 0x8A5FC0, 0x00003A0 + +gUnk_088A6360:: @ 088A6360 + .incbin "baserom.gba", 0x8A6360, 0x0000980 + +gUnk_088A6CE0:: @ 088A6CE0 + .incbin "baserom.gba", 0x8A6CE0, 0x00007C0 + +gUnk_088A74A0:: @ 088A74A0 + .incbin "baserom.gba", 0x8A74A0, 0x0000408 + +gUnk_088A78A8:: @ 088A78A8 + .incbin "baserom.gba", 0x8A78A8, 0x0000139 + +gUnk_088A79E1:: @ 088A79E1 + .incbin "baserom.gba", 0x8A79E1, 0x00002DF + +gUnk_088A7CC0:: @ 088A7CC0 + .incbin "baserom.gba", 0x8A7CC0, 0x0000340 + +gUnk_088A8000:: @ 088A8000 + .incbin "baserom.gba", 0x8A8000, 0x0000500 + +gUnk_088A8500:: @ 088A8500 + .incbin "baserom.gba", 0x8A8500, 0x0000500 + +gUnk_088A8A00:: @ 088A8A00 + .incbin "baserom.gba", 0x8A8A00, 0x00001CA + +gUnk_088A8BCA:: @ 088A8BCA + .incbin "baserom.gba", 0x8A8BCA, 0x00005F6 + +gUnk_088A91C0:: @ 088A91C0 + .incbin "baserom.gba", 0x8A91C0, 0x0000660 + +gUnk_088A9820:: @ 088A9820 + .incbin "baserom.gba", 0x8A9820, 0x0000179 + +gUnk_088A9999:: @ 088A9999 + .incbin "baserom.gba", 0x8A9999, 0x0000247 + +gUnk_088A9BE0:: @ 088A9BE0 + .incbin "baserom.gba", 0x8A9BE0, 0x0000460 + +gUnk_088AA040:: @ 088AA040 + .incbin "baserom.gba", 0x8AA040, 0x0000380 + +gUnk_088AA3C0:: @ 088AA3C0 + .incbin "baserom.gba", 0x8AA3C0, 0x00004E0 + +gUnk_088AA8A0:: @ 088AA8A0 + .incbin "baserom.gba", 0x8AA8A0, 0x0000209 + +gUnk_088AAAA9:: @ 088AAAA9 + .incbin "baserom.gba", 0x8AAAA9, 0x0000137 + +gUnk_088AABE0:: @ 088AABE0 + .incbin "baserom.gba", 0x8AABE0, 0x00006A0 + +gUnk_088AB280:: @ 088AB280 + .incbin "baserom.gba", 0x8AB280, 0x00008A4 + +gUnk_088ABB24:: @ 088ABB24 + .incbin "baserom.gba", 0x8ABB24, 0x00000DC + +gUnk_088ABC00:: @ 088ABC00 + .incbin "baserom.gba", 0x8ABC00, 0x00001D6 + +gUnk_088ABDD6:: @ 088ABDD6 + .incbin "baserom.gba", 0x8ABDD6, 0x000040A + +gUnk_088AC1E0:: @ 088AC1E0 + .incbin "baserom.gba", 0x8AC1E0, 0x00008A0 + +gUnk_088ACA80:: @ 088ACA80 + .incbin "baserom.gba", 0x8ACA80, 0x000024B + +gUnk_088ACCCB:: @ 088ACCCB + .incbin "baserom.gba", 0x8ACCCB, 0x0000675 + +gUnk_088AD340:: @ 088AD340 + .incbin "baserom.gba", 0x8AD340, 0x00005A0 + +gUnk_088AD8E0:: @ 088AD8E0 + .incbin "baserom.gba", 0x8AD8E0, 0x0000620 + +gUnk_088ADF00:: @ 088ADF00 + .incbin "baserom.gba", 0x8ADF00, 0x0000F00 + +gUnk_088AEE00:: @ 088AEE00 + .incbin "baserom.gba", 0x8AEE00, 0x00000EE + +gUnk_088AEEEE:: @ 088AEEEE + .incbin "baserom.gba", 0x8AEEEE, 0x0000552 + +gUnk_088AF440:: @ 088AF440 + .incbin "baserom.gba", 0x8AF440, 0x00012C0 + +gUnk_088B0700:: @ 088B0700 + .incbin "baserom.gba", 0x8B0700, 0x000018A + +gUnk_088B088A:: @ 088B088A + .incbin "baserom.gba", 0x8B088A, 0x0001136 + +gUnk_088B19C0:: @ 088B19C0 + .incbin "baserom.gba", 0x8B19C0, 0x000076E + +gUnk_088B212E:: @ 088B212E + .incbin "baserom.gba", 0x8B212E, 0x0001032 + +gUnk_088B3160:: @ 088B3160 + .incbin "baserom.gba", 0x8B3160, 0x00019A0 + +gUnk_088B4B00:: @ 088B4B00 + .incbin "baserom.gba", 0x8B4B00, 0x0001300 + +gUnk_088B5E00:: @ 088B5E00 + .incbin "baserom.gba", 0x8B5E00, 0x0001EA0 + +gUnk_088B7CA0:: @ 088B7CA0 + .incbin "baserom.gba", 0x8B7CA0, 0x0001640 + +gUnk_088B92E0:: @ 088B92E0 + .incbin "baserom.gba", 0x8B92E0, 0x00010AB + +gUnk_088BA38B:: @ 088BA38B + .incbin "baserom.gba", 0x8BA38B, 0x0000715 + +gUnk_088BAAA0:: @ 088BAAA0 + .incbin "baserom.gba", 0x8BAAA0, 0x000001B + +gUnk_088BAABB:: @ 088BAABB + .incbin "baserom.gba", 0x8BAABB, 0x00000D0 + +gUnk_088BAB8B:: @ 088BAB8B + .incbin "baserom.gba", 0x8BAB8B, 0x0000D15 + +gUnk_088BB8A0:: @ 088BB8A0 + .incbin "baserom.gba", 0x8BB8A0, 0x0000580 + +gUnk_088BBE20:: @ 088BBE20 + .incbin "baserom.gba", 0x8BBE20, 0x0000C40 + +gUnk_088BCA60:: @ 088BCA60 + .incbin "baserom.gba", 0x8BCA60, 0x0001100 + +gUnk_088BDB60:: @ 088BDB60 + .incbin "baserom.gba", 0x8BDB60, 0x0001304 + +gUnk_088BEE64:: @ 088BEE64 + .incbin "baserom.gba", 0x8BEE64, 0x000127C + +gUnk_088C00E0:: @ 088C00E0 + .incbin "baserom.gba", 0x8C00E0, 0x0000220 + +gUnk_088C0300:: @ 088C0300 + .incbin "baserom.gba", 0x8C0300, 0x000035C + +gUnk_088C065C:: @ 088C065C + .incbin "baserom.gba", 0x8C065C, 0x00002A4 + +gUnk_088C0900:: @ 088C0900 + .incbin "baserom.gba", 0x8C0900, 0x0001980 + +gUnk_088C2280:: @ 088C2280 + .incbin "graphics/intro/nintendo_capcom.4bpp" + +gUnk_088C31E0:: @ 088C31E0 + .incbin "baserom.gba", 0x8C31E0, 0x00030AC + +gUnk_088C628C:: @ 088C628C + .incbin "baserom.gba", 0x8C628C, 0x00003FC + +gUnk_088C6688:: @ 088C6688 + .incbin "baserom.gba", 0x8C6688, 0x00016A8 + +gUnk_088C7D30:: @ 088C7D30 + .incbin "baserom.gba", 0x8C7D30, 0x0007178 + +gUnk_088CEEA8:: @ 088CEEA8 + .incbin "baserom.gba", 0x8CEEA8, 0x0001162 + +gUnk_088D000A:: @ 088D000A + .incbin "baserom.gba", 0x8D000A, 0x0000982 + +gUnk_088D098C:: @ 088D098C + .incbin "baserom.gba", 0x8D098C, 0x0001A31 + +gUnk_088D23BD:: @ 088D23BD + .incbin "baserom.gba", 0x8D23BD, 0x0001343 + +gUnk_088D3700:: @ 088D3700 + .incbin "baserom.gba", 0x8D3700, 0x0000FC8 + +gUnk_088D46C8:: @ 088D46C8 + .incbin "baserom.gba", 0x8D46C8, 0x0002078 + +gUnk_088D6740:: @ 088D6740 + .incbin "baserom.gba", 0x8D6740, 0x00020F3 + +gUnk_088D8833:: @ 088D8833 + .incbin "baserom.gba", 0x8D8833, 0x0001AD5 + +gUnk_088DA308:: @ 088DA308 + .incbin "baserom.gba", 0x8DA308, 0x00030A4 + +gUnk_088DD3AC:: @ 088DD3AC + .incbin "baserom.gba", 0x8DD3AC, 0x0002C5B + +gUnk_088E0007:: @ 088E0007 + .incbin "baserom.gba", 0x8E0007, 0x0000088 + +gUnk_088E008F:: @ 088E008F + .incbin "baserom.gba", 0x8E008F, 0x0000075 + +gUnk_088E0104:: @ 088E0104 + .incbin "baserom.gba", 0x8E0104, 0x0000231 + +gUnk_088E0335:: @ 088E0335 + .incbin "baserom.gba", 0x8E0335, 0x0000159 + +gUnk_088E048E:: @ 088E048E + .incbin "baserom.gba", 0x8E048E, 0x0000FEB + +gUnk_088E1479:: @ 088E1479 + .incbin "baserom.gba", 0x8E1479, 0x0005A09 + +gUnk_088E6E82:: @ 088E6E82 + .incbin "baserom.gba", 0x8E6E82, 0x0000EF7 + +gUnk_088E7D79:: @ 088E7D79 + .incbin "baserom.gba", 0x8E7D79, 0x0004315 + +gUnk_088EC08E:: @ 088EC08E + .incbin "baserom.gba", 0x8EC08E, 0x0002E60 + +gUnk_088EEEEE:: @ 088EEEEE + .incbin "baserom.gba", 0x8EEEEE, 0x0001292 + +gUnk_088F0180:: @ 088F0180 + .incbin "baserom.gba", 0x8F0180, 0x000020D + +gUnk_088F038D:: @ 088F038D + .incbin "baserom.gba", 0x8F038D, 0x0000DC4 + +gUnk_088F1151:: @ 088F1151 + .incbin "baserom.gba", 0x8F1151, 0x000045D + +gUnk_088F15AE:: @ 088F15AE + .incbin "baserom.gba", 0x8F15AE, 0x0002FB8 + +gUnk_088F4566:: @ 088F4566 + .incbin "baserom.gba", 0x8F4566, 0x000119C + +gUnk_088F5702:: @ 088F5702 + .incbin "baserom.gba", 0x8F5702, 0x0005186 + +gUnk_088FA888:: @ 088FA888 + .incbin "baserom.gba", 0x8FA888, 0x0000107 + +gUnk_088FA98F:: @ 088FA98F + .incbin "baserom.gba", 0x8FA98F, 0x000422C + +gUnk_088FEBBB:: @ 088FEBBB + .incbin "baserom.gba", 0x8FEBBB, 0x0000BCD + +gUnk_088FF788:: @ 088FF788 + .incbin "baserom.gba", 0x8FF788, 0x0000878 + +gUnk_08900000:: @ 08900000 + .incbin "baserom.gba", 0x900000, 0x0000099 + +gUnk_08900099:: @ 08900099 + .incbin "baserom.gba", 0x900099, 0x0000035 + +gUnk_089000CE:: @ 089000CE + .incbin "baserom.gba", 0x9000CE, 0x0000042 + +gUnk_08900110:: @ 08900110 + .incbin "baserom.gba", 0x900110, 0x0000270 + +gUnk_08900380:: @ 08900380 + .incbin "baserom.gba", 0x900380, 0x00002A0 + +gUnk_08900620:: @ 08900620 + .incbin "baserom.gba", 0x900620, 0x0003D2B + +gUnk_0890434B:: @ 0890434B + .incbin "baserom.gba", 0x90434B, 0x0009DB3 + +gUnk_0890E0FE:: @ 0890E0FE + .incbin "baserom.gba", 0x90E0FE, 0x0000302 + +gUnk_0890E400:: @ 0890E400 + .incbin "baserom.gba", 0x90E400, 0x0000004 + +gUnk_0890E404:: @ 0890E404 + .incbin "baserom.gba", 0x90E404, 0x0000100 + +gUnk_0890E504:: @ 0890E504 + .incbin "baserom.gba", 0x90E504, 0x0000100 + +gUnk_0890E604:: @ 0890E604 + .incbin "baserom.gba", 0x90E604, 0x00002FB + +gUnk_0890E8FF:: @ 0890E8FF + .incbin "baserom.gba", 0x90E8FF, 0x00007E9 + +gUnk_0890F0E8:: @ 0890F0E8 + .incbin "baserom.gba", 0x90F0E8, 0x0000F18 + +gUnk_08910000:: @ 08910000 + .incbin "baserom.gba", 0x910000, 0x0000007 + +gUnk_08910007:: @ 08910007 + .incbin "baserom.gba", 0x910007, 0x00002F9 + +gUnk_08910300:: @ 08910300 + .incbin "baserom.gba", 0x910300, 0x0000168 + +gUnk_08910468:: @ 08910468 + .incbin "baserom.gba", 0x910468, 0x0000398 + +gUnk_08910800:: @ 08910800 + .incbin "baserom.gba", 0x910800, 0x0000090 + +gUnk_08910890:: @ 08910890 + .incbin "baserom.gba", 0x910890, 0x0000993 + +gUnk_08911223:: @ 08911223 + .incbin "baserom.gba", 0x911223, 0x0000776 + +gUnk_08911999:: @ 08911999 + .incbin "baserom.gba", 0x911999, 0x0000467 + +gUnk_08911E00:: @ 08911E00 + .incbin "baserom.gba", 0x911E00, 0x0002418 + +gUnk_08914218:: @ 08914218 + .incbin "baserom.gba", 0x914218, 0x000012E + +gUnk_08914346:: @ 08914346 + .incbin "baserom.gba", 0x914346, 0x00003BA + +gUnk_08914700:: @ 08914700 + .incbin "baserom.gba", 0x914700, 0x0002BFF + +gUnk_089172FF:: @ 089172FF + .incbin "baserom.gba", 0x9172FF, 0x0000589 + +gUnk_08917888:: @ 08917888 + .incbin "baserom.gba", 0x917888, 0x0000345 + +gUnk_08917BCD:: @ 08917BCD + .incbin "baserom.gba", 0x917BCD, 0x0000FBE + +gUnk_08918B8B:: @ 08918B8B + .incbin "baserom.gba", 0x918B8B, 0x000250E + +gUnk_0891B099:: @ 0891B099 + .incbin "baserom.gba", 0x91B099, 0x0000A11 + +gUnk_0891BAAA:: @ 0891BAAA + .incbin "baserom.gba", 0x91BAAA, 0x0002757 + +gUnk_0891E201:: @ 0891E201 + .incbin "baserom.gba", 0x91E201, 0x0001D00 + +gUnk_0891FF01:: @ 0891FF01 + .incbin "baserom.gba", 0x91FF01, 0x00000EF + +gUnk_0891FFF0:: @ 0891FFF0 + .incbin "baserom.gba", 0x91FFF0, 0x0000010 + +gUnk_08920000:: @ 08920000 + .incbin "baserom.gba", 0x920000, 0x0000120 + +gUnk_08920120:: @ 08920120 + .incbin "baserom.gba", 0x920120, 0x0000672 + +gUnk_08920792:: @ 08920792 + .incbin "baserom.gba", 0x920792, 0x00000FF + +gUnk_08920891:: @ 08920891 + .incbin "baserom.gba", 0x920891, 0x0000802 + +gUnk_08921093:: @ 08921093 + .incbin "baserom.gba", 0x921093, 0x00001F7 + +gUnk_0892128A:: @ 0892128A + .incbin "baserom.gba", 0x92128A, 0x0001B9F + +gUnk_08922E29:: @ 08922E29 + .incbin "baserom.gba", 0x922E29, 0x0004969 + +gUnk_08927792:: @ 08927792 + .incbin "baserom.gba", 0x927792, 0x0000305 + +gUnk_08927A97:: @ 08927A97 + .incbin "baserom.gba", 0x927A97, 0x0001520 + +gUnk_08928FB7:: @ 08928FB7 + .incbin "baserom.gba", 0x928FB7, 0x00003DA + +gUnk_08929391:: @ 08929391 + .incbin "baserom.gba", 0x929391, 0x00000C6 + +gUnk_08929457:: @ 08929457 + .incbin "baserom.gba", 0x929457, 0x0000879 + +gUnk_08929CD0:: @ 08929CD0 + .incbin "baserom.gba", 0x929CD0, 0x00001B9 + +gUnk_08929E89:: @ 08929E89 + .incbin "baserom.gba", 0x929E89, 0x0003465 + +gUnk_0892D2EE:: @ 0892D2EE + .incbin "baserom.gba", 0x92D2EE, 0x0000FAB + +gUnk_0892E299:: @ 0892E299 + .incbin "baserom.gba", 0x92E299, 0x00000F9 + +gUnk_0892E392:: @ 0892E392 + .incbin "baserom.gba", 0x92E392, 0x0000A90 + +gUnk_0892EE22:: @ 0892EE22 + .incbin "baserom.gba", 0x92EE22, 0x000000B + +gUnk_0892EE2D:: @ 0892EE2D + .incbin "baserom.gba", 0x92EE2D, 0x00011D3 + +gUnk_08930000:: @ 08930000 + .incbin "baserom.gba", 0x930000, 0x0000010 + +gUnk_08930010:: @ 08930010 + .incbin "baserom.gba", 0x930010, 0x0000773 + +gUnk_08930783:: @ 08930783 + .incbin "baserom.gba", 0x930783, 0x0000010 + +gUnk_08930793:: @ 08930793 + .incbin "baserom.gba", 0x930793, 0x00000FF + +gUnk_08930892:: @ 08930892 + .incbin "baserom.gba", 0x930892, 0x0001FB2 + +gUnk_08932844:: @ 08932844 + .incbin "baserom.gba", 0x932844, 0x00016BC + +gUnk_08933F00:: @ 08933F00 + .incbin "baserom.gba", 0x933F00, 0x0002200 + +gUnk_08936100:: @ 08936100 + .incbin "baserom.gba", 0x936100, 0x00020A6 + +gUnk_089381A6:: @ 089381A6 + .incbin "baserom.gba", 0x9381A6, 0x0000EC1 + +gUnk_08939067:: @ 08939067 + .incbin "baserom.gba", 0x939067, 0x000032C + +gUnk_08939393:: @ 08939393 + .incbin "baserom.gba", 0x939393, 0x00071F8 + +gUnk_0894058B:: @ 0894058B + .incbin "baserom.gba", 0x94058B, 0x0000308 + +gUnk_08940893:: @ 08940893 + .incbin "baserom.gba", 0x940893, 0x0000B9C + +gUnk_0894142F:: @ 0894142F + .incbin "baserom.gba", 0x94142F, 0x0000CD1 + +gUnk_08942100:: @ 08942100 + .incbin "baserom.gba", 0x942100, 0x0000267 + +gUnk_08942367:: @ 08942367 + .incbin "baserom.gba", 0x942367, 0x00010DF + +gUnk_08943446:: @ 08943446 + .incbin "baserom.gba", 0x943446, 0x0000DDB + +gUnk_08944221:: @ 08944221 + .incbin "baserom.gba", 0x944221, 0x00006DD + +gUnk_089448FE:: @ 089448FE + .incbin "baserom.gba", 0x9448FE, 0x0000C57 + +gUnk_08945555:: @ 08945555 + .incbin "baserom.gba", 0x945555, 0x0003F18 + +gUnk_0894946D:: @ 0894946D + .incbin "baserom.gba", 0x94946D, 0x0001760 + +gUnk_0894ABCD:: @ 0894ABCD + .incbin "baserom.gba", 0x94ABCD, 0x0001FEE + +gUnk_0894CBBB:: @ 0894CBBB + .incbin "baserom.gba", 0x94CBBB, 0x000344C + +gUnk_08950007:: @ 08950007 + .incbin "baserom.gba", 0x950007, 0x00008F9 + +gUnk_08950900:: @ 08950900 + .incbin "baserom.gba", 0x950900, 0x0002600 + +gUnk_08952F00:: @ 08952F00 + .incbin "baserom.gba", 0x952F00, 0x0000791 + +gUnk_08953691:: @ 08953691 + .incbin "baserom.gba", 0x953691, 0x000076F + +gUnk_08953E00:: @ 08953E00 + .incbin "baserom.gba", 0x953E00, 0x0001654 + +gUnk_08955454:: @ 08955454 + .incbin "baserom.gba", 0x955454, 0x00000F0 + +gUnk_08955544:: @ 08955544 + .incbin "baserom.gba", 0x955544, 0x0000011 + +gUnk_08955555:: @ 08955555 + .incbin "baserom.gba", 0x955555, 0x0003B72 + +gUnk_089590C7:: @ 089590C7 + .incbin "baserom.gba", 0x9590C7, 0x0001642 + +gUnk_0895A709:: @ 0895A709 + .incbin "baserom.gba", 0x95A709, 0x00058F7 + +gUnk_08960000:: @ 08960000 + .incbin "baserom.gba", 0x960000, 0x0000132 + +gUnk_08960132:: @ 08960132 + .incbin "baserom.gba", 0x960132, 0x0000B5E + +gUnk_08960C90:: @ 08960C90 + .incbin "baserom.gba", 0x960C90, 0x00000A4 + +gUnk_08960D34:: @ 08960D34 + .incbin "baserom.gba", 0x960D34, 0x00004E2 + +gUnk_08961216:: @ 08961216 + .incbin "baserom.gba", 0x961216, 0x000CBD8 + +gUnk_0896DDEE:: @ 0896DDEE + .incbin "baserom.gba", 0x96DDEE, 0x0002212 + +gUnk_08970000:: @ 08970000 + .incbin "baserom.gba", 0x970000, 0x000000A + +gUnk_0897000A:: @ 0897000A + .incbin "baserom.gba", 0x97000A, 0x0000009 + +gUnk_08970013:: @ 08970013 + .incbin "baserom.gba", 0x970013, 0x000002D + +gUnk_08970040:: @ 08970040 + .incbin "baserom.gba", 0x970040, 0x0000856 + +gUnk_08970896:: @ 08970896 + .incbin "baserom.gba", 0x970896, 0x000076B + +gUnk_08971001:: @ 08971001 + .incbin "baserom.gba", 0x971001, 0x000005A + +gUnk_0897105B:: @ 0897105B + .incbin "baserom.gba", 0x97105B, 0x0001D85 + +gUnk_08972DE0:: @ 08972DE0 + .incbin "baserom.gba", 0x972DE0, 0x0001553 + +gUnk_08974333:: @ 08974333 + .incbin "baserom.gba", 0x974333, 0x0001200 + +gUnk_08975533:: @ 08975533 + .incbin "baserom.gba", 0x975533, 0x00022AB + +gUnk_089777DE:: @ 089777DE + .incbin "baserom.gba", 0x9777DE, 0x0001DB0 + +gUnk_0897958E:: @ 0897958E + .incbin "baserom.gba", 0x97958E, 0x0001C62 + +gUnk_0897B1F0:: @ 0897B1F0 + .incbin "baserom.gba", 0x97B1F0, 0x00007A7 + +gUnk_0897B997:: @ 0897B997 + .incbin "baserom.gba", 0x97B997, 0x0004669 + +gUnk_08980000:: @ 08980000 + .incbin "baserom.gba", 0x980000, 0x0000012 + +gUnk_08980012:: @ 08980012 + .incbin "baserom.gba", 0x980012, 0x0000196 + +gUnk_089801A8:: @ 089801A8 + .incbin "baserom.gba", 0x9801A8, 0x0001769 + +gUnk_08981911:: @ 08981911 + .incbin "baserom.gba", 0x981911, 0x00018EF + +gUnk_08983200:: @ 08983200 + .incbin "baserom.gba", 0x983200, 0x00002AD + +gUnk_089834AD:: @ 089834AD + .incbin "baserom.gba", 0x9834AD, 0x00010A8 + +gUnk_08984555:: @ 08984555 + .incbin "baserom.gba", 0x984555, 0x0001AAB + +gUnk_08986000:: @ 08986000 + .incbin "baserom.gba", 0x986000, 0x000189E + +gUnk_0898789E:: @ 0898789E + .incbin "baserom.gba", 0x98789E, 0x0000074 + +gUnk_08987912:: @ 08987912 + .incbin "baserom.gba", 0x987912, 0x0000CEE + +gUnk_08988600:: @ 08988600 + .incbin "baserom.gba", 0x988600, 0x0000178 + +gUnk_08988778:: @ 08988778 + .incbin "baserom.gba", 0x988778, 0x0000110 + +gUnk_08988888:: @ 08988888 + .incbin "baserom.gba", 0x988888, 0x0000F77 + +gUnk_089897FF:: @ 089897FF + .incbin "baserom.gba", 0x9897FF, 0x000009F + +gUnk_0898989E:: @ 0898989E + .incbin "baserom.gba", 0x98989E, 0x000000C + +gUnk_089898AA:: @ 089898AA + .incbin "baserom.gba", 0x9898AA, 0x0000176 + +gUnk_08989A20:: @ 08989A20 + .incbin "baserom.gba", 0x989A20, 0x00004CE + +gUnk_08989EEE:: @ 08989EEE + .incbin "baserom.gba", 0x989EEE, 0x00011C9 + +gUnk_0898B0B7:: @ 0898B0B7 + .incbin "baserom.gba", 0x98B0B7, 0x00008D2 + +gUnk_0898B989:: @ 0898B989 + .incbin "baserom.gba", 0x98B989, 0x0001455 + +gUnk_0898CDDE:: @ 0898CDDE + .incbin "baserom.gba", 0x98CDDE, 0x0002222 + +gUnk_0898F000:: @ 0898F000 + .incbin "baserom.gba", 0x98F000, 0x0000799 + +gUnk_0898F799:: @ 0898F799 + .incbin "baserom.gba", 0x98F799, 0x0000755 + +gUnk_0898FEEE:: @ 0898FEEE + .incbin "baserom.gba", 0x98FEEE, 0x0000112 + +gUnk_08990000:: @ 08990000 + .incbin "baserom.gba", 0x990000, 0x000001B + +gUnk_0899001B:: @ 0899001B + .incbin "baserom.gba", 0x99001B, 0x00000B3 + +gUnk_089900CE:: @ 089900CE + .incbin "baserom.gba", 0x9900CE, 0x0000001 + +gUnk_089900CF:: @ 089900CF + .incbin "baserom.gba", 0x9900CF, 0x0000070 + +gUnk_0899013F:: @ 0899013F + .incbin "baserom.gba", 0x99013F, 0x0000001 + +gUnk_08990140:: @ 08990140 + .incbin "baserom.gba", 0x990140, 0x0000030 + +gUnk_08990170:: @ 08990170 + .incbin "baserom.gba", 0x990170, 0x0000098 + +gUnk_08990208:: @ 08990208 + .incbin "baserom.gba", 0x990208, 0x0000108 + +gUnk_08990310:: @ 08990310 + .incbin "baserom.gba", 0x990310, 0x00002F0 + +gUnk_08990600:: @ 08990600 + .incbin "baserom.gba", 0x990600, 0x0000400 + +gUnk_08990A00:: @ 08990A00 + .incbin "baserom.gba", 0x990A00, 0x000177A + +gUnk_0899217A:: @ 0899217A + .incbin "baserom.gba", 0x99217A, 0x0000C74 + +gUnk_08992DEE:: @ 08992DEE + .incbin "baserom.gba", 0x992DEE, 0x00000F4 + +gUnk_08992EE2:: @ 08992EE2 + .incbin "baserom.gba", 0x992EE2, 0x000000B + +gUnk_08992EED:: @ 08992EED + .incbin "baserom.gba", 0x992EED, 0x0000813 + +gUnk_08993700:: @ 08993700 + .incbin "baserom.gba", 0x993700, 0x0000B44 + +gUnk_08994244:: @ 08994244 + .incbin "baserom.gba", 0x994244, 0x0001311 + +gUnk_08995555:: @ 08995555 + .incbin "baserom.gba", 0x995555, 0x00019AB + +gUnk_08996F00:: @ 08996F00 + .incbin "baserom.gba", 0x996F00, 0x0000755 + +gUnk_08997655:: @ 08997655 + .incbin "baserom.gba", 0x997655, 0x000061C + +gUnk_08997C71:: @ 08997C71 + .incbin "baserom.gba", 0x997C71, 0x0000B27 + +gUnk_08998798:: @ 08998798 + .incbin "baserom.gba", 0x998798, 0x00000EF + +gUnk_08998887:: @ 08998887 + .incbin "baserom.gba", 0x998887, 0x0000001 + +gUnk_08998888:: @ 08998888 + .incbin "baserom.gba", 0x998888, 0x0000028 + +gUnk_089988B0:: @ 089988B0 + .incbin "baserom.gba", 0x9988B0, 0x00000A5 + +gUnk_08998955:: @ 08998955 + .incbin "baserom.gba", 0x998955, 0x0000034 + +gUnk_08998989:: @ 08998989 + .incbin "baserom.gba", 0x998989, 0x0000177 + +gUnk_08998B00:: @ 08998B00 + .incbin "baserom.gba", 0x998B00, 0x0000488 + +gUnk_08998F88:: @ 08998F88 + .incbin "baserom.gba", 0x998F88, 0x0000057 + +gUnk_08998FDF:: @ 08998FDF + .incbin "baserom.gba", 0x998FDF, 0x00002FF + +gUnk_089992DE:: @ 089992DE + .incbin "baserom.gba", 0x9992DE, 0x0000004 + +gUnk_089992E2:: @ 089992E2 + .incbin "baserom.gba", 0x9992E2, 0x000058E + +gUnk_08999870:: @ 08999870 + .incbin "baserom.gba", 0x999870, 0x0000004 + +gUnk_08999874:: @ 08999874 + .incbin "baserom.gba", 0x999874, 0x0000013 + +gUnk_08999887:: @ 08999887 + .incbin "baserom.gba", 0x999887, 0x0000013 + +gUnk_0899989A:: @ 0899989A + .incbin "baserom.gba", 0x99989A, 0x0000001 + +gUnk_0899989B:: @ 0899989B + .incbin "baserom.gba", 0x99989B, 0x0000066 + +gUnk_08999901:: @ 08999901 + .incbin "baserom.gba", 0x999901, 0x0000021 + +gUnk_08999922:: @ 08999922 + .incbin "baserom.gba", 0x999922, 0x000005E + +gUnk_08999980:: @ 08999980 + .incbin "baserom.gba", 0x999980, 0x0000007 + +gUnk_08999987:: @ 08999987 + .incbin "baserom.gba", 0x999987, 0x0000001 + +gUnk_08999988:: @ 08999988 + .incbin "baserom.gba", 0x999988, 0x0000001 + +gUnk_08999989:: @ 08999989 + .incbin "baserom.gba", 0x999989, 0x0000001 + +gUnk_0899998A:: @ 0899998A + .incbin "baserom.gba", 0x99998A, 0x000000E + +gUnk_08999998:: @ 08999998 + .incbin "baserom.gba", 0x999998, 0x0000001 + +gUnk_08999999:: @ 08999999 + .incbin "baserom.gba", 0x999999, 0x0000013 + +gUnk_089999AC:: @ 089999AC + .incbin "baserom.gba", 0x9999AC, 0x0000010 + +gUnk_089999BC:: @ 089999BC + .incbin "baserom.gba", 0x9999BC, 0x000003C + +gUnk_089999F8:: @ 089999F8 + .incbin "baserom.gba", 0x9999F8, 0x00000B2 + +gUnk_08999AAA:: @ 08999AAA + .incbin "baserom.gba", 0x999AAA, 0x0000056 + +gUnk_08999B00:: @ 08999B00 + .incbin "baserom.gba", 0x999B00, 0x00000CC + +gUnk_08999BCC:: @ 08999BCC + .incbin "baserom.gba", 0x999BCC, 0x00003BC + +gUnk_08999F88:: @ 08999F88 + .incbin "baserom.gba", 0x999F88, 0x00008AB + +gUnk_0899A833:: @ 0899A833 + .incbin "baserom.gba", 0x99A833, 0x0000201 + +gUnk_0899AA34:: @ 0899AA34 + .incbin "baserom.gba", 0x99AA34, 0x0000075 + +gUnk_0899AAA9:: @ 0899AAA9 + .incbin "baserom.gba", 0x99AAA9, 0x0000012 + +gUnk_0899AABB:: @ 0899AABB + .incbin "baserom.gba", 0x99AABB, 0x0000545 + +gUnk_0899B000:: @ 0899B000 + .incbin "baserom.gba", 0x99B000, 0x00003FF + +gUnk_0899B3FF:: @ 0899B3FF + .incbin "baserom.gba", 0x99B3FF, 0x000059A + +gUnk_0899B999:: @ 0899B999 + .incbin "baserom.gba", 0x99B999, 0x0000006 + +gUnk_0899B99F:: @ 0899B99F + .incbin "baserom.gba", 0x99B99F, 0x0000620 + +gUnk_0899BFBF:: @ 0899BFBF + .incbin "baserom.gba", 0x99BFBF, 0x000003A + +gUnk_0899BFF9:: @ 0899BFF9 + .incbin "baserom.gba", 0x99BFF9, 0x0000708 + +gUnk_0899C701:: @ 0899C701 + .incbin "baserom.gba", 0x99C701, 0x00027ED + +gUnk_0899EEEE:: @ 0899EEEE + .incbin "baserom.gba", 0x99EEEE, 0x000012D + +gUnk_0899F01B:: @ 0899F01B + .incbin "baserom.gba", 0x99F01B, 0x0000FE6 + +gUnk_089A0001:: @ 089A0001 + .incbin "baserom.gba", 0x9A0001, 0x0000087 + +gUnk_089A0088:: @ 089A0088 + .incbin "baserom.gba", 0x9A0088, 0x0000811 + +gUnk_089A0899:: @ 089A0899 + .incbin "baserom.gba", 0x9A0899, 0x00000F7 + +gUnk_089A0990:: @ 089A0990 + .incbin "baserom.gba", 0x9A0990, 0x0000B3C + +gUnk_089A14CC:: @ 089A14CC + .incbin "baserom.gba", 0x9A14CC, 0x0001B34 + +gUnk_089A3000:: @ 089A3000 + .incbin "baserom.gba", 0x9A3000, 0x0000D18 + +gUnk_089A3D18:: @ 089A3D18 + .incbin "baserom.gba", 0x9A3D18, 0x000073D + +gUnk_089A4455:: @ 089A4455 + .incbin "baserom.gba", 0x9A4455, 0x0001188 + +gUnk_089A55DD:: @ 089A55DD + .incbin "baserom.gba", 0x9A55DD, 0x0002E3B + +gUnk_089A8418:: @ 089A8418 + .incbin "baserom.gba", 0x9A8418, 0x00013E7 + +gUnk_089A97FF:: @ 089A97FF + .incbin "baserom.gba", 0x9A97FF, 0x000019A + +gUnk_089A9999:: @ 089A9999 + .incbin "baserom.gba", 0x9A9999, 0x0000101 + +gUnk_089A9A9A:: @ 089A9A9A + .incbin "baserom.gba", 0x9A9A9A, 0x0000F00 + +gUnk_089AA99A:: @ 089AA99A + .incbin "baserom.gba", 0x9AA99A, 0x0000089 + +gUnk_089AAA23:: @ 089AAA23 + .incbin "baserom.gba", 0x9AAA23, 0x0000087 + +gUnk_089AAAAA:: @ 089AAAAA + .incbin "baserom.gba", 0x9AAAAA, 0x0000111 + +gUnk_089AABBB:: @ 089AABBB + .incbin "baserom.gba", 0x9AABBB, 0x0000011 + +gUnk_089AABCC:: @ 089AABCC + .incbin "baserom.gba", 0x9AABCC, 0x0000FEF + +gUnk_089ABBBB:: @ 089ABBBB + .incbin "baserom.gba", 0x9ABBBB, 0x0000A33 + +gUnk_089AC5EE:: @ 089AC5EE + .incbin "baserom.gba", 0x9AC5EE, 0x00018ED + +gUnk_089ADEDB:: @ 089ADEDB + .incbin "baserom.gba", 0x9ADEDB, 0x0002125 + +gUnk_089B0000:: @ 089B0000 + .incbin "baserom.gba", 0x9B0000, 0x00002BC + +gUnk_089B02BC:: @ 089B02BC + .incbin "baserom.gba", 0x9B02BC, 0x0000054 + +gUnk_089B0310:: @ 089B0310 + .incbin "baserom.gba", 0x9B0310, 0x0000CF0 + +gUnk_089B1000:: @ 089B1000 + .incbin "baserom.gba", 0x9B1000, 0x0000D90 diff --git a/include/functions.h b/include/functions.h index a037c980..726340fc 100644 --- a/include/functions.h +++ b/include/functions.h @@ -137,7 +137,7 @@ extern void sub_0801AFE4(void); extern u32 sub_08060354(void); extern void sub_08057E64(void); extern void LoadAssetAsync(void*, u32, u32); -extern void LoadPalettesByPaletteGroupIndex(u32); +extern void LoadPaletteGroup(u32); extern void sub_0809F814(u32); extern void sub_080300E8(void); extern void sub_0801DA90(u32); @@ -170,10 +170,9 @@ extern void sub_08059994(void); extern u32 sub_080AD84C(); extern void sub_0801D7EC(u32); extern s32 sub_0801CFA8(u32); -extern void sub_080AD670(); extern void sub_080A3210(); extern void sub_080AD6AC(); -extern void sub_080AD76C(); +extern void sub_080AD76C(void); extern void sub_080AD644(); extern void sub_080ADA14(u32, u32); extern void sub_080AD89C(); diff --git a/include/menu.h b/include/menu.h index 7ac003dd..e174d117 100644 --- a/include/menu.h +++ b/include/menu.h @@ -36,7 +36,7 @@ typedef struct { u8 unk16; u8 filler17[0x13]; u8 unk2a; - u32 field_0x2c; + int field_0x2c; } Menu; extern Menu gMenu; diff --git a/include/screen.h b/include/screen.h index 2f8c452f..3c4fd1aa 100644 --- a/include/screen.h +++ b/include/screen.h @@ -63,11 +63,11 @@ typedef struct { } BgControls; typedef struct { - LcdControls lcd; - BgSettings bg1; - BgSettings bg2; - BgAffSettings affine; - BgControls controls; + /*0x00*/ LcdControls lcd; + /*0x0C*/ BgSettings bg1; + /*0x18*/ BgSettings bg2; + /*0x24*/ BgAffSettings affine; + /*0x3C*/ BgControls controls; } Screen; extern BgControls gBgControls; diff --git a/linker.ld b/linker.ld index 6a773f55..a32ffc0e 100644 --- a/linker.ld +++ b/linker.ld @@ -49,7 +49,7 @@ SECTIONS { . = 0x0000AF34; gUnk_0200AF34 = .; . = 0x0000B240; gUnk_0200B240 = .; . = 0x0000B640; gUnk_0200B640 = .; - . = 0x0000B644; gUnk_0200B644 = .; + . = 0x0000B644; gUsedPalettes = .; . = 0x0000B650; gUnk_0200B650 = .; . = 0x0000B654; gUnk_0200B654 = .; . = 0x0000D654; gUnk_0200D654 = .; @@ -60,7 +60,7 @@ SECTIONS { . = 0x00016654; gUnk_02016654 = .; . = 0x00017654; gUnk_02017654 = .; . = 0x00017660; gUnk_02017660 = .; - . = 0x000176A0; gUnk_020176A0 = .; + . = 0x000176A0; gPaletteBuffer = .; . = 0x000176E0; gUnk_020176E0 = .; . = 0x00017700; gUnk_02017700 = .; . = 0x00017830; gUnk_02017830 = .; @@ -320,7 +320,7 @@ SECTIONS { src/dma.o(.text); asm/sub_0801D66C.o(.text); src/input.o(.text); - asm/code_0801D714.o(.text); + src/code_0801D714.o(.text); asm/code_0801D79C.o(.text); /* enemies */ src/enemy/octorok.o(.text); @@ -888,10 +888,6 @@ SECTIONS { src/sub_080A554C.o(.text); asm/code_080A5574.o(.text); src/introSetTransition.o(.text); - asm/sub_080AD76C.o(.text); - src/sub_080AD834.o(.text); - asm/sub_080AD84C.o(.text); - asm/sub_080AD89C.o(.text); asm/sub_080AD8F0.o(.text); asm/code_080AD90C.o(.text); /* library functions */ @@ -925,6 +921,8 @@ SECTIONS { data/data_081208A0.o(.rodata); src/object/heartContainer.o(.rodata); data/data_08121C58.o(.rodata); + src/introSetTransition.o(.rodata); + data/data_081320FC.o(.rodata); data/strings.o(.rodata); data/data_089FC6C4.o(.rodata); } >rom diff --git a/src/code_0801D714.c b/src/code_0801D714.c new file mode 100755 index 00000000..c4a27023 --- /dev/null +++ b/src/code_0801D714.c @@ -0,0 +1,43 @@ +#include "global.h" + +extern void LoadPalettes(const u8*, int, int); + +extern u32 gUsedPalettes; +extern u16 gPaletteBuffer[][16]; + +typedef struct { + u16 paletteId; + u8 destPaletteNum; + u8 numPalettes; +} PaletteGroup; + +extern const PaletteGroup* gPaletteGroups[]; +extern const u8 gGlobalPalettes[][32]; + +void LoadPaletteGroup(u32 arg0) { + const PaletteGroup* paletteGroup = gPaletteGroups[arg0]; + while (1) { + u32 destPaletteNum = paletteGroup->destPaletteNum; + u32 numPalettes = paletteGroup->numPalettes & 0xF; + if (numPalettes == 0) { + numPalettes = 16; + } + LoadPalettes(gGlobalPalettes[paletteGroup->paletteId], destPaletteNum, numPalettes); + if ((paletteGroup->numPalettes & 0x80) == 0) { + break; + } + paletteGroup++; + } +} + +void LoadPalettes(const u8* src, int destPaletteNum, int numPalettes) { + u16* dest; + u32 size = numPalettes * 32; + u32 usedPalettesMask = 1 << destPaletteNum; + while (--numPalettes > 0) { + usedPalettesMask |= (usedPalettesMask << 1); + } + gUsedPalettes |= usedPalettesMask; + dest = gPaletteBuffer[destPaletteNum]; + DmaCopy32(3, src, dest, size); +} diff --git a/src/introSetTransition.c b/src/introSetTransition.c index 4ff7644f..6c71146b 100644 --- a/src/introSetTransition.c +++ b/src/introSetTransition.c @@ -3,10 +3,20 @@ #include "main.h" #include "entity.h" #include "functions.h" +#include "readKeyInput.h" #include "screen.h" #include "structures.h" -extern void (*const gUnk_081320F0[])(); +static void sub_080AD3F4(void); +static void sub_080AD474(void); +static void sub_080AD670(void); +static void sub_080AD834(void); + +static void (*const gUnk_081320F0[])(void) = { + sub_080AD3F4, + sub_080AD474, + sub_080AD834, +}; typedef struct { u8 field_0x0; @@ -18,11 +28,13 @@ typedef struct { extern struct_03000FD0 gUnk_03000FD0; +extern const u16 gUnk_081320FC[]; + u32 IntroSetTransition(u32 transition) { gUnk_02032EC0.transitionType = transition; gUnk_03001000.funcIndex = 2; - _DmaZero((u32 *)&gMenu, 48); + _DmaZero(&gMenu, sizeof(gMenu)); DoFade(7, 8); } @@ -49,7 +61,7 @@ void HandleIntroScreen(void) sub_080AD918(); } -void sub_080AD3F4(void) +static void sub_080AD3F4(void) { u32 iVar1; u32 uVar2; @@ -58,7 +70,7 @@ void sub_080AD3F4(void) if (gMenu.menuType == 0) { sub_0801DA90(1); gMenu.menuType = 1; - gMenu.transitionTimer = 0x78; + gMenu.transitionTimer = 120; sub_0801D7EC(0x10); sub_0801D7EC(1); if (((struct_02000000 *)0x2000000)->gameLanguage == 0) { @@ -67,7 +79,7 @@ void sub_080AD3F4(void) else { uVar2 = 2; } - LoadPalettesByPaletteGroupIndex(uVar2); + LoadPaletteGroup(uVar2); gScreen.lcd.lcdControl2 |= 0x400; gScreen.bg2.bg0xOffset = 1; DoFade(6, 8); @@ -92,7 +104,7 @@ extern u16 gUnk_03001010[5]; extern u8 gUnk_02024490; -void sub_080AD474(void) +static void sub_080AD474(void) { int iVar2; u32 uVar3; @@ -115,7 +127,7 @@ void sub_080AD474(void) else { uVar3 = 4; } - LoadPalettesByPaletteGroupIndex(uVar3); + LoadPaletteGroup(uVar3); if (((struct_02000000*)0x2000000)->gameLanguage == 0) { gScreen.controls.windowOutsideControl = 0x844; gScreen.controls.mosaicSize = 0x909; @@ -198,7 +210,7 @@ void sub_080AD644(void) { return; } -void sub_080AD670(void) +static void sub_080AD670(void) { struct BgAffineSrcData aff; aff.texY = 0x8000; @@ -232,7 +244,7 @@ void sub_080AD6AC(void) } break; case 1: - if (gUnk_03000FD0.field_0x0 == '\0') { + if (gUnk_03000FD0.field_0x0 == 0) { gUnk_03000FD0.field_0x4 = -1; gMenu.overlayType++; gMenu.transitionTimer = 0x5a; @@ -249,4 +261,83 @@ void sub_080AD6AC(void) gMenu.transitionTimer = 0x3c; } } -} \ No newline at end of file +} + +void sub_080AD76C(void) { + switch (gMenu.overlayType) { + case 0: + if (gUnk_03000FD0.field_0x0 == 0) { + gMenu.overlayType = 1; + gScreen.lcd.lcdControl2 |= 0x400; + PlaySFX(0xF6); + } + break; + case 1: + gMenu.field_0x2c += 16; + if (gMenu.field_0x2c > 256) { + gMenu.field_0x2c = 256; + gMenu.transitionTimer = 40; + gMenu.overlayType++; + DoFade(6, 16); + } + sub_080AD670(); + break; + case 2: + if (--gMenu.transitionTimer == 0) { + gMenu.transitionTimer = 300; + gMenu.overlayType++; + CreateObject(0xBD, 0, 0); + DoFade(6, 16); + PlaySFX(0xF8); + } + break; + default: + if (gUnk_03000FD0.field_0x0 == 0 && sub_080AD84C()) { + gMenu.menuType++; + gMenu.transitionTimer = 60; + } + break; + } +} + +static void sub_080AD834(void) { + if (gUnk_03000FD0.field_0x0 == 0) { + InitScreen(SCREEN_CHOOSE_FILE); + } +} + +u32 sub_080AD84C(void) { + u32 newKeys; + + if (gUnk_03000FD0.field_0x0 != 0) { + return 0; + } + + if (gUnk_02000010.field_0x5 == 0) { + newKeys = 0; + } else { + newKeys = gUnk_03000FF0.newKeys & (A_BUTTON | START_BUTTON); + } + + if (--gMenu.transitionTimer == 0) { + return 1; + } + + if (newKeys) { + return 2; + } + + return 0; +} + +void sub_080AD89C(void) { + if ((gMenu.field_0x12 & 0x7) == 0) { + gMenu.unk10[0] = (gMenu.unk10[0] + 1) & 0x3; + LoadPaletteGroup(gMenu.unk10[0] + 5); + } + + if ((gMenu.field_0x12 & 0x1F) == 0) { + gMenu.unk10[1] = (gMenu.unk10[1] + 1) & 0x7; + gScreen.controls.mosaicSize = gUnk_081320FC[gMenu.unk10[1]]; + } +} diff --git a/src/mainLoop.c b/src/mainLoop.c index 14fe0390..5ba99815 100644 --- a/src/mainLoop.c +++ b/src/mainLoop.c @@ -5,7 +5,7 @@ #include "readKeyInput.h" extern void sub_0804FF84(u32); -extern u32 gUnk_020176A0; +extern u32 gPaletteBuffer; extern void VBlankInterruptWait(void); extern void DisableInterruptsAndDMA(void); extern void sub_0801D66C(void*, u8*, int); @@ -34,7 +34,7 @@ void MainLoop(void) { sub_08056208(); gUnk_02000010.field_0x4 = 193; sub_0804FFE4(); - DmaSet(3, 0x5000000U, &gUnk_020176A0, 0x84000080U); + DmaSet(3, 0x5000000U, &gPaletteBuffer, 0x84000080U); sub_0804FF84(1); sub_08056418(); sub_080ADD30(); diff --git a/src/manager/manager27.c b/src/manager/manager27.c index 57952513..9aed5165 100644 --- a/src/manager/manager27.c +++ b/src/manager/manager27.c @@ -4,7 +4,7 @@ #include "functions.h" extern u32 sub_0805C920(Entity*); -extern void LoadPalettesByPaletteGroupIndex(u32); +extern void LoadPaletteGroup(u32); extern void (*const gUnk_08108D10[])(Entity*); extern u8 gUnk_08108D20[]; @@ -58,7 +58,7 @@ void sub_0805C8B4(Entity *this) if (5 < ++this->field_0xf) { this->field_0xf = 0; } - LoadPalettesByPaletteGroupIndex(gUnk_08108D20[this->field_0xf]); + LoadPaletteGroup(gUnk_08108D20[this->field_0xf]); if (this->field_0xf == 0) { PlaySFX(0x11a); } diff --git a/src/object/object48.c b/src/object/object48.c index 57d772a9..bd6c2da5 100755 --- a/src/object/object48.c +++ b/src/object/object48.c @@ -10,7 +10,7 @@ #include "structures.h" extern int sub_0807A094(int); -extern u32 sub_0801D754(const u8*, u8, u8); +extern void LoadPalettes(const u8*, int, int); extern u32 sub_080041EC(int, int); extern u32 sub_080045DA(int, int); @@ -39,7 +39,7 @@ typedef struct { extern void (*const gUnk_08121C64[])(Entity*); extern void (*const gUnk_08121CCC[])(Entity*); extern const int gUnk_08133368[]; -extern const u8 gUnk_085A2E80[]; +extern const u8 gGlobalPalettes[]; extern const struct_08121CD4 gUnk_08121CD4[][4]; extern const u8 gUnk_08121D10[]; extern const u8 gUnk_08121D38[][8]; @@ -88,7 +88,7 @@ void sub_0808E818(Entity* this) { this->field_0x70.BYTES.byte0 = 4; this->animationState = 2; var1 = gUnk_08133368[sub_0807A094(1) - 22] & 0xFFFFFF; - sub_0801D754(&gUnk_085A2E80[var1], 31, 1); + LoadPalettes(&gGlobalPalettes[var1], 31, 1); } if (gUnk_02032EC0.transitionType == 0) { diff --git a/src/room.c b/src/room.c index 6a8136c6..a8127253 100644 --- a/src/room.c +++ b/src/room.c @@ -1740,7 +1740,7 @@ extern struct_086D4460 gUnk_086D4460; void sub_0804C918(void) { LoadAssetAsync(&gUnk_086D4460.LO, 0x6000000, 0x4000); LoadAssetAsync(&gUnk_086D4460.HI, 0x6008000, 0x4000); - LoadPalettesByPaletteGroupIndex(0x19); + LoadPaletteGroup(0x19); } u32 sub_0804C948() { @@ -2224,7 +2224,7 @@ extern EntityData gUnk_080DF94C; extern u8 gUnk_02000070; extern u8 gUnk_03000FD0; -extern u32 gUnk_0200B644; +extern u32 gUsedPalettes; void sub_0804CD48(void) { @@ -2233,7 +2233,7 @@ void sub_0804CD48(void) { MenuFadeIn(5, 0); gUnk_02000070 = 0; gUnk_03000FD0 = 0; - gUnk_0200B644 = 0; + gUsedPalettes = 0; *(u16*)0x5000000 = 0x7fff; sub_0801DA90(1); } @@ -6552,5 +6552,5 @@ void nullsub_106() {} void sub_0804FF84(u32 arg0) { ((struct_02000000 * )0x02000000)->brightnessPref = arg0; - gUnk_0200B644 = (u32)-1; + gUsedPalettes = (u32)-1; } \ No newline at end of file diff --git a/src/sub_0801D754.c b/src/sub_0801D754.c index dad57fa1..8b1b2b20 100644 --- a/src/sub_0801D754.c +++ b/src/sub_0801D754.c @@ -1,17 +1,17 @@ #include "global.h" -extern u8 gUnk_020176E0; +extern const u8 gUnk_020176E0[]; extern void sub_0807C960(); -extern u32 sub_0801D754(const u8*, u8, u8); +extern void LoadPalettes(const u8*, int, int); -u32 sub_0807C9D8(u32* a1) { +void sub_0807C9D8(u32* a1) { u32* v1; // r5@1 v1 = a1; sub_0807C960(0x6004000, *a1); sub_0807C960(0x6000000, v1[1]); sub_0807C960(0x6008000, v1[2]); - sub_0807C960(&gUnk_020176E0, v1[3]); - return sub_0801D754(&gUnk_020176E0, 2, 13); + sub_0807C960(gUnk_020176E0, v1[3]); + LoadPalettes(gUnk_020176E0, 2, 13); } diff --git a/src/sub_08050024.c b/src/sub_08050024.c index 59601810..70cd1019 100644 --- a/src/sub_08050024.c +++ b/src/sub_08050024.c @@ -29,7 +29,7 @@ typedef struct { extern struct_03000000 gUnk_03000000; -extern u32 gUnk_0200B644; +extern u32 gUsedPalettes; extern void sub_0801E104(); extern void DoFade(u32, u32); @@ -75,7 +75,7 @@ void DoFade(u32 fadeType, u32 fadeSpeed) if ((fadeType & 1) == 0) { gUnk_03000FD0.fadeType &= 0xfffb; sub_08050008(); - gUnk_0200B644 = 0xffffffff; + gUsedPalettes = 0xffffffff; } } } diff --git a/src/sub_080A3B84.c b/src/sub_080A3B84.c index 892e010a..9279774e 100644 --- a/src/sub_080A3B84.c +++ b/src/sub_080A3B84.c @@ -31,7 +31,7 @@ void sub_080A3BD0(void) gMenu.field_0x1 = 1; gMenu.unk2a = 0; sub_080A4D34(); - LoadPalettesByPaletteGroupIndex(0xcb); + LoadPaletteGroup(0xcb); sub_0801D7EC(0x75); iVar1 = sub_080A4494(); diff --git a/src/sub_080AD834.c b/src/sub_080AD834.c deleted file mode 100644 index 9b1dd87b..00000000 --- a/src/sub_080AD834.c +++ /dev/null @@ -1,10 +0,0 @@ -#include "global.h" -#include "main.h" - -extern u8 gUnk_03000FD0; - -void sub_080AD834(void) { - if (gUnk_03000FD0 == 0) { - InitScreen(SCREEN_CHOOSE_FILE); - } -} From 4c0217a782caeadeac28926dcaae376343b109e7 Mon Sep 17 00:00:00 2001 From: Marcus Huderle Date: Wed, 12 Aug 2020 19:55:11 -0500 Subject: [PATCH 116/158] Decompile graphics group loading function --- asm/bigGoron.s | 2 +- asm/code_08019444.s | 6 +- asm/code_0801C370.s | 2 +- asm/code_0801CEC0.s | 4 +- asm/code_0801D79C.s | 136 --------------------------------------- asm/code_0804AA84.s | 2 +- asm/code_08050038.s | 8 +-- asm/code_080526F8.s | 14 ++-- asm/code_0805436C.s | 4 +- asm/code_080A3480.s | 4 +- asm/code_080A3BD0.s | 8 +-- asm/code_080A5574.s | 6 +- asm/code_080AD90C.s | 4 +- asm/manager10.s | 2 +- asm/manager12.s | 4 +- asm/manager15.s | 2 +- asm/manager1A.s | 4 +- asm/manager1B.s | 2 +- asm/manager2.s | 4 +- asm/manager2F.s | 2 +- asm/manager32.s | 2 +- asm/manager7.s | 12 ++-- asm/manager8.s | 4 +- asm/manager9.s | 2 +- asm/managerC.s | 4 +- asm/object36.s | 6 +- data/data_081320FC.s | 2 +- include/functions.h | 2 +- include/screen.h | 3 +- linker.ld | 1 + src/code_0801D714.c | 12 ++-- src/code_0801D79C.c | 96 +++++++++++++++++++++++++++ src/introSetTransition.c | 24 +++---- src/mainLoop.c | 4 +- src/manager/manager1.c | 6 +- src/object/object48.c | 4 +- src/sub_080A3B84.c | 4 +- 37 files changed, 185 insertions(+), 223 deletions(-) create mode 100755 src/code_0801D79C.c diff --git a/asm/bigGoron.s b/asm/bigGoron.s index 9cba6a4a..a763a077 100644 --- a/asm/bigGoron.s +++ b/asm/bigGoron.s @@ -89,7 +89,7 @@ sub_0806D0B0: @ 0x0806D0B0 movs r1, #0 str r1, [r0] movs r0, #0x30 - bl sub_0801D7EC + bl LoadGfxGroup bl sub_0806D110 ldr r5, _0806D0EC @ =gUnk_02002F00 movs r1, #0x80 diff --git a/asm/code_08019444.s b/asm/code_08019444.s index 97c4c530..02ca3f7f 100644 --- a/asm/code_08019444.s +++ b/asm/code_08019444.s @@ -358,7 +358,7 @@ sub_08019698: @ 0x08019698 strh r0, [r1, #0x32] _08019700: movs r0, #0x11 - bl sub_0801D7EC + bl LoadGfxGroup bl sub_080AD90C bl sub_080AD9B0 bl sub_080AD918 @@ -3793,7 +3793,7 @@ sub_0801B0EC: @ 0x0801B0EC adds r4, r0, #0 _0801B0F0: ldr r1, [r4, #4] - ldr r0, _0801B110 @ =gGlobalPalettes + ldr r0, _0801B110 @ =gGlobalGfxAndPalettes adds r5, r1, r0 ldrb r2, [r4, #2] ldrh r3, [r4] @@ -3808,7 +3808,7 @@ _0801B0F0: bl LoadPalettes b _0801B122 .align 2, 0 -_0801B110: .4byte gGlobalPalettes +_0801B110: .4byte gGlobalGfxAndPalettes _0801B114: movs r0, #0xc0 lsls r0, r0, #0x13 diff --git a/asm/code_0801C370.s b/asm/code_0801C370.s index 910dd08e..ddb4d4ff 100644 --- a/asm/code_0801C370.s +++ b/asm/code_0801C370.s @@ -43,7 +43,7 @@ _0801C398: movs r0, #0xc bl LoadPaletteGroup movs r0, #0x10 - bl sub_0801D7EC + bl LoadGfxGroup ldr r4, _0801C478 @ =gUnk_02034CB0 movs r1, #0x80 lsls r1, r1, #4 diff --git a/asm/code_0801CEC0.s b/asm/code_0801CEC0.s index 6cfb839c..e55bb415 100644 --- a/asm/code_0801CEC0.s +++ b/asm/code_0801CEC0.s @@ -497,7 +497,7 @@ _0801D31C: ands r2, r1 ldr r1, _0801D344 @ =0x00FFFFFF ands r0, r1 - ldr r1, _0801D348 @ =gGlobalPalettes + ldr r1, _0801D348 @ =gGlobalGfxAndPalettes adds r0, r0, r1 adds r1, r4, #0 bl LoadPalettes @@ -506,7 +506,7 @@ _0801D33C: .align 2, 0 _0801D340: .4byte gUnk_08133368 _0801D344: .4byte 0x00FFFFFF -_0801D348: .4byte gGlobalPalettes +_0801D348: .4byte gGlobalGfxAndPalettes thumb_func_start sub_0801D34C sub_0801D34C: @ 0x0801D34C diff --git a/asm/code_0801D79C.s b/asm/code_0801D79C.s index e622b542..8872b96b 100644 --- a/asm/code_0801D79C.s +++ b/asm/code_0801D79C.s @@ -4,142 +4,6 @@ .syntax unified .text - - thumb_func_start sub_0801D79C -sub_0801D79C: @ 0x0801D79C - ldr r3, _0801D7B4 @ =gPaletteBuffer - lsls r2, r0, #1 - adds r2, r2, r3 - strh r1, [r2] - ldr r2, _0801D7B8 @ =gUsedPalettes - lsrs r0, r0, #4 - movs r1, #1 - lsls r1, r0 - ldr r0, [r2] - orrs r0, r1 - str r0, [r2] - bx lr - .align 2, 0 -_0801D7B4: .4byte gPaletteBuffer -_0801D7B8: .4byte gUsedPalettes - - thumb_func_start sub_0801D7BC -sub_0801D7BC: @ 0x0801D7BC - push {lr} - adds r2, r0, #0 - cmp r1, #0 - beq _0801D7D4 - ldr r1, _0801D7CC @ =gScreen - ldr r0, _0801D7D0 @ =0x0000E0FF - b _0801D7D8 - .align 2, 0 -_0801D7CC: .4byte gScreen -_0801D7D0: .4byte 0x0000E0FF -_0801D7D4: - ldr r1, _0801D7E4 @ =gScreen - ldr r0, _0801D7E8 @ =0x0000FFFF -_0801D7D8: - strh r0, [r1, #6] - movs r0, #0 - adds r1, r2, #0 - bl sub_0801D79C - pop {pc} - .align 2, 0 -_0801D7E4: .4byte gScreen -_0801D7E8: .4byte 0x0000FFFF - - thumb_func_start sub_0801D7EC -sub_0801D7EC: @ 0x0801D7EC - push {r4, r5, r6, lr} - ldr r1, _0801D814 @ =gUnk_08100AA8 - lsls r0, r0, #2 - adds r0, r0, r1 - ldr r4, [r0] - movs r6, #0x80 - lsls r6, r6, #0x12 - ldr r5, _0801D818 @ =0x040000D4 -_0801D7FC: - movs r2, #0 - ldrb r1, [r4, #3] - movs r0, #0xf - ands r1, r0 - cmp r1, #0xd - beq _0801D894 - cmp r1, #0xd - bhi _0801D81C - cmp r1, #7 - beq _0801D842 - b _0801D836 - .align 2, 0 -_0801D814: .4byte gUnk_08100AA8 -_0801D818: .4byte 0x040000D4 -_0801D81C: - cmp r1, #0xe - beq _0801D826 - cmp r1, #0xf - beq _0801D82E - b _0801D836 -_0801D826: - ldrb r0, [r6, #7] - cmp r0, #1 - bls _0801D83E - b _0801D842 -_0801D82E: - ldrb r0, [r6, #7] - cmp r0, #0 - beq _0801D83E - b _0801D842 -_0801D836: - ldrb r0, [r6, #7] - cmp r1, r0 - bne _0801D83E - movs r2, #1 -_0801D83E: - cmp r2, #0 - beq _0801D888 -_0801D842: - ldr r0, [r4] - ldr r1, _0801D868 @ =0x00FFFFFF - ands r0, r1 - ldr r1, _0801D86C @ =gGlobalPalettes - adds r2, r0, r1 - ldr r1, [r4, #4] - ldr r0, [r4, #8] - movs r3, #0x80 - lsls r3, r3, #0x18 - cmp r0, #0 - bge _0801D87C - ldr r0, _0801D870 @ =0x05FFFFFF - cmp r1, r0 - bls _0801D874 - adds r0, r2, #0 - bl LZ77UnCompVram - b _0801D888 - .align 2, 0 -_0801D868: .4byte 0x00FFFFFF -_0801D86C: .4byte gGlobalPalettes -_0801D870: .4byte 0x05FFFFFF -_0801D874: - adds r0, r2, #0 - bl LZ77UnCompWram - b _0801D888 -_0801D87C: - str r2, [r5] - str r1, [r5, #4] - lsrs r0, r0, #1 - orrs r0, r3 - str r0, [r5, #8] - ldr r0, [r5, #8] -_0801D888: - ldrb r1, [r4, #3] - movs r0, #0x80 - ands r1, r0 - adds r4, #0xc - cmp r1, #0 - bne _0801D7FC -_0801D894: - pop {r4, r5, r6, pc} - .align 2, 0 thumb_func_start sub_0801D898 sub_0801D898: @ 0x0801D898 diff --git a/asm/code_0804AA84.s b/asm/code_0804AA84.s index e4ee28bd..9aba3867 100644 --- a/asm/code_0804AA84.s +++ b/asm/code_0804AA84.s @@ -39,7 +39,7 @@ _0804ABA4: ldrb r0, [r4] bl LoadPaletteGroup ldrb r0, [r4, #1] - bl sub_0801D7EC + bl LoadGfxGroup ldr r0, _0804AC10 @ =gUnk_02017700 movs r2, #0x90 lsls r2, r2, #2 diff --git a/asm/code_08050038.s b/asm/code_08050038.s index 3acd113f..a795ad0d 100644 --- a/asm/code_08050038.s +++ b/asm/code_08050038.s @@ -321,7 +321,7 @@ _080503A4: .4byte gScreen thumb_func_start sub_080503A8 sub_080503A8: @ 0x080503A8 push {lr} - bl sub_0801D7EC + bl LoadGfxGroup ldr r1, _080503B8 @ =gScreen movs r0, #1 strh r0, [r1, #0x1a] @@ -676,7 +676,7 @@ _080506AA: lsls r0, r0, #1 adds r0, r0, r1 ldrh r4, [r0] - ldr r0, _080506F8 @ =gGlobalPalettes + ldr r0, _080506F8 @ =gGlobalGfxAndPalettes adds r4, r4, r0 ldr r1, _080506FC @ =0x00011AA0 adds r0, r4, r1 @@ -704,7 +704,7 @@ _080506EE: .align 2, 0 _080506F0: .4byte gUnk_02019EE0 _080506F4: .4byte gUnk_080FC8DE -_080506F8: .4byte gGlobalPalettes +_080506F8: .4byte gGlobalGfxAndPalettes _080506FC: .4byte 0x00011AA0 _08050700: .4byte 0x00011BA0 _08050704: .4byte 0x00011CA0 @@ -3844,7 +3844,7 @@ sub_08052010: @ 0x08052010 movs r1, #0 bl sub_0801D79C movs r0, #4 - bl sub_0801D7EC + bl LoadGfxGroup movs r0, #0xc0 lsls r0, r0, #0x13 movs r1, #0x20 diff --git a/asm/code_080526F8.s b/asm/code_080526F8.s index aace7527..d107e8ff 100644 --- a/asm/code_080526F8.s +++ b/asm/code_080526F8.s @@ -1582,15 +1582,15 @@ sub_08053320: @ 0x08053320 lsls r1, r1, #5 bl _DmaZero movs r0, #0x10 - bl sub_0801D7EC + bl LoadGfxGroup movs r0, #0x17 - bl sub_0801D7EC + bl LoadGfxGroup ldr r0, _0805338C @ =gRoomControls ldrb r0, [r0, #4] cmp r0, #4 bne _08053362 movs r0, #0x1a - bl sub_0801D7EC + bl LoadGfxGroup _08053362: bl sub_08053390 movs r0, #0xb @@ -1619,13 +1619,13 @@ sub_08053390: @ 0x08053390 movs r1, #0x18 _080533A0: adds r0, r1, #0 - bl sub_0801D7EC + bl LoadGfxGroup movs r0, #0xa bl GetInventoryValue cmp r0, #0 beq _080533B6 movs r0, #0x1d - bl sub_0801D7EC + bl LoadGfxGroup _080533B6: movs r0, #0xc bl GetInventoryValue @@ -1635,7 +1635,7 @@ _080533B6: movs r1, #0x1c _080533C4: adds r0, r1, #0 - bl sub_0801D7EC + bl LoadGfxGroup pop {pc} thumb_func_start sub_080533CC @@ -2218,7 +2218,7 @@ sub_08053800: @ 0x08053800 bl LoadPaletteGroup adds r0, r5, #0 adds r0, #0x3a - bl sub_0801D7EC + bl LoadGfxGroup ldr r0, _08053888 @ =gUnk_02021F30 movs r1, #0x80 lsls r1, r1, #4 diff --git a/asm/code_0805436C.s b/asm/code_0805436C.s index 0272467d..67cb224e 100644 --- a/asm/code_0805436C.s +++ b/asm/code_0805436C.s @@ -1169,7 +1169,7 @@ sub_08055184: @ 0x08055184 adds r4, r4, r0 movs r1, #0 ldrsh r0, [r4, r1] - bl sub_0801D7EC + bl LoadGfxGroup ldr r2, _08055214 @ =gScreen ldrh r0, [r4, #2] movs r6, #0 @@ -1713,7 +1713,7 @@ sub_080555B8: @ 0x080555B8 ldrb r1, [r4, #3] bl sub_0804B0E8 movs r0, #0x11 - bl sub_0801D7EC + bl LoadGfxGroup ldrb r0, [r5, #4] movs r1, #0 movs r2, #0 diff --git a/asm/code_080A3480.s b/asm/code_080A3480.s index a166b8ec..37d5acc4 100644 --- a/asm/code_080A3480.s +++ b/asm/code_080A3480.s @@ -350,7 +350,7 @@ sub_080A36F8: @ 0x080A36F8 ldrb r0, [r4] bl LoadPaletteGroup ldrb r0, [r4, #1] - bl sub_0801D7EC + bl LoadGfxGroup ldr r0, _080A3760 @ =gUnk_02021F30 movs r1, #0x80 lsls r1, r1, #4 @@ -708,7 +708,7 @@ _080A39C8: movs r1, #0 bl sub_0801D79C movs r0, #4 - bl sub_0801D7EC + bl LoadGfxGroup movs r0, #0xc0 lsls r0, r0, #0x13 movs r1, #0x20 diff --git a/asm/code_080A3BD0.s b/asm/code_080A3BD0.s index 9950817d..03a65575 100644 --- a/asm/code_080A3BD0.s +++ b/asm/code_080A3BD0.s @@ -1021,7 +1021,7 @@ sub_080A4418: @ 0x080A4418 ands r2, r1 mvns r0, r2 ands r0, r1 - ldr r1, _080A444C @ =gGlobalPalettes + ldr r1, _080A444C @ =gGlobalGfxAndPalettes adds r1, r0, r1 cmp r2, #0 beq _080A4450 @@ -1032,7 +1032,7 @@ sub_080A4418: @ 0x080A4418 .align 2, 0 _080A4444: .4byte 0x06010000 _080A4448: .4byte gUnk_080CA06C -_080A444C: .4byte gGlobalPalettes +_080A444C: .4byte gGlobalGfxAndPalettes _080A4450: ldr r0, _080A4460 @ =0x040000D4 str r1, [r0] @@ -2198,7 +2198,7 @@ _080A4D54: _080A4D66: adds r0, r1, #0 adds r0, #0x56 - bl sub_0801D7EC + bl LoadGfxGroup ldr r1, _080A4D80 @ =gScreen movs r0, #0 strh r0, [r1, #0x2e] @@ -2308,7 +2308,7 @@ _080A4E4A: ldrb r0, [r4, #1] cmp r0, #0 beq _080A4E54 - bl sub_0801D7EC + bl LoadGfxGroup _080A4E54: pop {r4, r5, pc} .align 2, 0 diff --git a/asm/code_080A5574.s b/asm/code_080A5574.s index c01a8b8e..57a76b63 100644 --- a/asm/code_080A5574.s +++ b/asm/code_080A5574.s @@ -893,7 +893,7 @@ sub_080A5C44: @ 0x080A5C44 ldrb r0, [r1, #3] bl sub_080A5CFC movs r0, #0x81 - bl sub_0801D7EC + bl LoadGfxGroup ldr r4, _080A5C90 @ =gArea ldrb r0, [r4, #3] movs r1, #1 @@ -1683,7 +1683,7 @@ sub_080A6290: @ 0x080A6290 ldr r0, _080A62CC @ =gUnk_08128DD4 str r0, [r4, #0xc] movs r0, #0x81 - bl sub_0801D7EC + bl LoadGfxGroup ldr r1, _080A62D0 @ =gScreen ldr r0, _080A62D4 @ =0x0000FFFC strh r0, [r1, #0x18] @@ -2374,7 +2374,7 @@ _080A6802: adds r5, #0x72 _080A6822: adds r0, r5, #0 - bl sub_0801D7EC + bl LoadGfxGroup lsls r1, r4, #3 ldr r0, _080A68B0 @ =gUnk_08128E94 adds r4, r1, r0 diff --git a/asm/code_080AD90C.s b/asm/code_080AD90C.s index dda43a26..560b933d 100644 --- a/asm/code_080AD90C.s +++ b/asm/code_080AD90C.s @@ -660,7 +660,7 @@ sub_080ADDD8: @ 0x080ADDD8 adds r3, r1, r0 ldr r0, _080ADE00 @ =0x00FFFFFC ands r0, r2 - ldr r1, _080ADE04 @ =gGlobalPalettes + ldr r1, _080ADE04 @ =gGlobalGfxAndPalettes adds r0, r0, r1 str r0, [r3, #8] movs r0, #1 @@ -672,7 +672,7 @@ sub_080ADDD8: @ 0x080ADDD8 .align 2, 0 _080ADDFC: .4byte gUnk_02024494 _080ADE00: .4byte 0x00FFFFFC -_080ADE04: .4byte gGlobalPalettes +_080ADE04: .4byte gGlobalGfxAndPalettes _080ADE08: .4byte 0x0000FFFF _080ADE0C: movs r0, #0xfe diff --git a/asm/manager10.s b/asm/manager10.s index d420e319..e07b7189 100644 --- a/asm/manager10.s +++ b/asm/manager10.s @@ -330,7 +330,7 @@ _080597F4: cmp r0, #0 blt _08059838 adds r0, #0x2b - bl sub_0801D7EC + bl LoadGfxGroup b _08059838 _08059800: ldr r4, _0805981C @ =gUnk_02001A40 diff --git a/asm/manager12.s b/asm/manager12.s index 5217fa7f..370bf536 100644 --- a/asm/manager12.s +++ b/asm/manager12.s @@ -378,7 +378,7 @@ _08059CE8: _08059CEC: adds r6, r1, r0 ldr r0, [r6] - ldr r4, _08059D14 @ =gGlobalPalettes + ldr r4, _08059D14 @ =gGlobalGfxAndPalettes adds r0, r0, r4 ldr r1, [r6, #4] movs r5, #0x80 @@ -393,7 +393,7 @@ _08059CEC: pop {r4, r5, r6, pc} .align 2, 0 _08059D10: .4byte gUnk_08108468 -_08059D14: .4byte gGlobalPalettes +_08059D14: .4byte gGlobalGfxAndPalettes thumb_func_start sub_08059D18 sub_08059D18: @ 0x08059D18 diff --git a/asm/manager15.s b/asm/manager15.s index 9e95731b..0106e9d8 100644 --- a/asm/manager15.s +++ b/asm/manager15.s @@ -1139,7 +1139,7 @@ sub_0805AADC: @ 0x0805AADC lsls r0, r0, #1 adds r0, r0, r1 ldrh r0, [r0] - bl sub_0801D7EC + bl LoadGfxGroup pop {pc} .align 2, 0 _0805AAEC: .4byte gUnk_08108648 diff --git a/asm/manager1A.s b/asm/manager1A.s index cfa4299e..11c578a6 100644 --- a/asm/manager1A.s +++ b/asm/manager1A.s @@ -418,7 +418,7 @@ sub_0805B328: @ 0x0805B328 adds r0, r0, r1 ldr r0, [r0, #0xc] ldr r0, [r0] - ldr r1, _0805B378 @ =gGlobalPalettes + ldr r1, _0805B378 @ =gGlobalGfxAndPalettes adds r0, r0, r1 ldr r1, _0805B37C @ =0x0600F000 movs r4, #0x80 @@ -445,7 +445,7 @@ _0805B372: pop {r4, pc} .align 2, 0 _0805B374: .4byte gUnk_08108764 -_0805B378: .4byte gGlobalPalettes +_0805B378: .4byte gGlobalGfxAndPalettes _0805B37C: .4byte 0x0600F000 _0805B380: .4byte gScreen _0805B384: .4byte 0x00001E07 diff --git a/asm/manager1B.s b/asm/manager1B.s index 6e0fbd23..e3626e3d 100644 --- a/asm/manager1B.s +++ b/asm/manager1B.s @@ -157,7 +157,7 @@ sub_0805B4D0: @ 0x0805B4D0 ldr r0, _0805B528 @ =gUnk_08108C5C adds r0, r5, r0 ldrb r0, [r0] - bl sub_0801D7EC + bl LoadGfxGroup ldr r4, _0805B52C @ =gScreen ldr r0, _0805B530 @ =0x00001E07 strh r0, [r4, #0x2c] diff --git a/asm/manager2.s b/asm/manager2.s index 71e90095..ca617098 100644 --- a/asm/manager2.s +++ b/asm/manager2.s @@ -84,7 +84,7 @@ sub_080575C8: @ 0x080575C8 lsls r0, r0, #0x13 strh r5, [r0] adds r0, r4, #0 - bl sub_0801D7EC + bl LoadGfxGroup ldr r0, _08057668 @ =gRoomVars strb r4, [r0, #0x10] ldr r3, _0805766C @ =gRoomControls @@ -183,7 +183,7 @@ sub_080576A0: @ 0x080576A0 adds r4, r0, #0 ldr r0, _080576BC @ =gRoomVars ldrb r0, [r0, #0x10] - bl sub_0801D7EC + bl LoadGfxGroup movs r0, #0 str r0, [r4, #0x38] str r0, [r4, #0x3c] diff --git a/asm/manager2F.s b/asm/manager2F.s index 06c806a6..f85e6167 100644 --- a/asm/manager2F.s +++ b/asm/manager2F.s @@ -88,7 +88,7 @@ _0805D46C: .4byte gScreen sub_0805D470: @ 0x0805D470 push {lr} movs r0, #0x4c - bl sub_0801D7EC + bl LoadGfxGroup ldr r2, _0805D4A0 @ =gScreen ldr r0, _0805D4A4 @ =0x00001E07 strh r0, [r2, #0x2c] diff --git a/asm/manager32.s b/asm/manager32.s index 4faba7eb..755c5750 100644 --- a/asm/manager32.s +++ b/asm/manager32.s @@ -100,7 +100,7 @@ _0805D842: ldr r0, _0805D854 @ =gUnk_08108D74 adds r0, r1, r0 ldrb r0, [r0] - bl sub_0801D7EC + bl LoadGfxGroup ldr r1, _0805D858 @ =gScreen ldr r0, _0805D85C @ =0x00001E04 strh r0, [r1, #0x2c] diff --git a/asm/manager7.s b/asm/manager7.s index bfc91d7b..d830014b 100644 --- a/asm/manager7.s +++ b/asm/manager7.s @@ -76,7 +76,7 @@ _08057DD6: movs r0, #1 strb r0, [r1] ldr r0, [r2] - ldr r1, _08057DFC @ =gGlobalPalettes + ldr r1, _08057DFC @ =gGlobalGfxAndPalettes adds r0, r0, r1 ldr r1, [r2, #4] movs r2, #0x80 @@ -89,13 +89,13 @@ _08057DD6: b _08057E24 .align 2, 0 _08057DF8: .4byte gUnk_02034490 -_08057DFC: .4byte gGlobalPalettes +_08057DFC: .4byte gGlobalGfxAndPalettes _08057E00: .4byte gUnk_081081E4 _08057E04: lsls r1, r1, #3 adds r1, r1, r2 ldr r0, [r1] - ldr r2, _08057E1C @ =gGlobalPalettes + ldr r2, _08057E1C @ =gGlobalGfxAndPalettes adds r0, r0, r2 ldr r1, [r1, #4] movs r2, #0x80 @@ -103,7 +103,7 @@ _08057E04: bl LoadAssetAsync b _08057E24 .align 2, 0 -_08057E1C: .4byte gGlobalPalettes +_08057E1C: .4byte gGlobalGfxAndPalettes _08057E20: ldr r0, _08057E2C @ =gUnk_02034490 strb r3, [r0] @@ -175,7 +175,7 @@ sub_08057E7C: @ 0x08057E7C adds r1, r1, r0 movs r3, #0 ldr r2, _08057EC0 @ =0x040000D4 - ldr r6, _08057EC4 @ =gGlobalPalettes + ldr r6, _08057EC4 @ =gGlobalGfxAndPalettes ldr r5, _08057EC8 @ =0x84000400 _08057E9C: ldr r0, [r1] @@ -197,6 +197,6 @@ _08057EB6: _08057EB8: .4byte gUnk_081081E4 _08057EBC: .4byte gUnk_081080A4 _08057EC0: .4byte 0x040000D4 -_08057EC4: .4byte gGlobalPalettes +_08057EC4: .4byte gGlobalGfxAndPalettes _08057EC8: .4byte 0x84000400 _08057ECC: .4byte gRoomVars diff --git a/asm/manager8.s b/asm/manager8.s index dacc0d26..4cee9e01 100644 --- a/asm/manager8.s +++ b/asm/manager8.s @@ -35,7 +35,7 @@ sub_08057EFC: @ 0x08057EFC adds r4, r0, #0 ldr r0, _08057F1C @ =gRoomVars ldrb r0, [r0, #0x10] - bl sub_0801D7EC + bl LoadGfxGroup bl sub_08058034 movs r0, #0 str r0, [r4, #0x3c] @@ -267,7 +267,7 @@ sub_080580B0: @ 0x080580B0 lsls r0, r0, #0x13 strh r1, [r0] adds r0, r4, #0 - bl sub_0801D7EC + bl LoadGfxGroup ldr r0, _080581B4 @ =gRoomVars strb r4, [r0, #0x10] bl sub_08058034 diff --git a/asm/manager9.s b/asm/manager9.s index 9d36611c..2b7bd3c1 100644 --- a/asm/manager9.s +++ b/asm/manager9.s @@ -188,7 +188,7 @@ sub_08058324: @ 0x08058324 bl LoadPaletteGroup adds r0, r4, #0 adds r0, #0x36 - bl sub_0801D7EC + bl LoadGfxGroup bl sub_080582D0 adds r0, r4, #0 bl sub_08058244 diff --git a/asm/managerC.s b/asm/managerC.s index 26f022e1..d634ea71 100644 --- a/asm/managerC.s +++ b/asm/managerC.s @@ -661,7 +661,7 @@ sub_08058D34: @ 0x08058D34 orrs r0, r1 str r0, [r2] movs r0, #0x16 - bl sub_0801D7EC + bl LoadGfxGroup ldr r1, _08058DB4 @ =gScreen ldrh r0, [r1] movs r3, #0 @@ -697,7 +697,7 @@ sub_08058D34: @ 0x08058D34 cmp r0, #0 beq _08058DA8 movs r0, #0x4a - bl sub_0801D7EC + bl LoadGfxGroup _08058DA8: pop {r4, pc} .align 2, 0 diff --git a/asm/object36.s b/asm/object36.s index 96185a8e..371fdc49 100644 --- a/asm/object36.s +++ b/asm/object36.s @@ -30,7 +30,7 @@ sub_0808BB30: @ 0x0808BB30 cmp r1, #0 beq _0808BB4C movs r0, #0x4a - bl sub_0801D7EC + bl LoadGfxGroup bl DeleteThisEntity b _0808BBD4 _0808BB4C: @@ -229,7 +229,7 @@ _0808BCCA: beq _0808BCFE strb r6, [r5, #0xf] movs r0, #0x4a - bl sub_0801D7EC + bl LoadGfxGroup b _0808BCFE .align 2, 0 _0808BCDC: .4byte 0x0000FFFE @@ -246,7 +246,7 @@ _0808BCE4: beq _0808BCFE strb r4, [r5, #0xf] movs r0, #0x49 - bl sub_0801D7EC + bl LoadGfxGroup _0808BCFE: pop {r4, r5, r6, pc} diff --git a/data/data_081320FC.s b/data/data_081320FC.s index ce4cf4a5..50a7f2c6 100755 --- a/data/data_081320FC.s +++ b/data/data_081320FC.s @@ -10327,7 +10327,7 @@ gUnk_085A0464:: @ 085A0464 gUnk_085A0806:: @ 085A0806 .incbin "baserom.gba", 0x5A0806, 0x000267A -gGlobalPalettes:: @ 085A2E80 +gGlobalGfxAndPalettes:: @ 085A2E80 .incbin "baserom.gba", 0x5A2E80, 0x0001382 gUnk_085A4202:: @ 085A4202 diff --git a/include/functions.h b/include/functions.h index 726340fc..34b0cf53 100644 --- a/include/functions.h +++ b/include/functions.h @@ -168,7 +168,7 @@ extern void sub_0805ADD8(u32); extern void sub_0804F578(void); extern void sub_08059994(void); extern u32 sub_080AD84C(); -extern void sub_0801D7EC(u32); +extern void LoadGfxGroup(u32); extern s32 sub_0801CFA8(u32); extern void sub_080A3210(); extern void sub_080AD6AC(); diff --git a/include/screen.h b/include/screen.h index 3c4fd1aa..b6fc8b39 100644 --- a/include/screen.h +++ b/include/screen.h @@ -6,7 +6,8 @@ typedef struct { u16 lcdControl2; u16 unk2; - u32 unk; + u16 unk4; + u16 unk6; u16 lcdControl1; } LcdControls; diff --git a/linker.ld b/linker.ld index a32ffc0e..e995eee5 100644 --- a/linker.ld +++ b/linker.ld @@ -321,6 +321,7 @@ SECTIONS { asm/sub_0801D66C.o(.text); src/input.o(.text); src/code_0801D714.o(.text); + src/code_0801D79C.o(.text); asm/code_0801D79C.o(.text); /* enemies */ src/enemy/octorok.o(.text); diff --git a/src/code_0801D714.c b/src/code_0801D714.c index c4a27023..f3e59253 100755 --- a/src/code_0801D714.c +++ b/src/code_0801D714.c @@ -3,7 +3,7 @@ extern void LoadPalettes(const u8*, int, int); extern u32 gUsedPalettes; -extern u16 gPaletteBuffer[][16]; +extern u16 gPaletteBuffer[]; typedef struct { u16 paletteId; @@ -12,17 +12,17 @@ typedef struct { } PaletteGroup; extern const PaletteGroup* gPaletteGroups[]; -extern const u8 gGlobalPalettes[][32]; +extern const u8 gGlobalGfxAndPalettes[]; -void LoadPaletteGroup(u32 arg0) { - const PaletteGroup* paletteGroup = gPaletteGroups[arg0]; +void LoadPaletteGroup(u32 group) { + const PaletteGroup* paletteGroup = gPaletteGroups[group]; while (1) { u32 destPaletteNum = paletteGroup->destPaletteNum; u32 numPalettes = paletteGroup->numPalettes & 0xF; if (numPalettes == 0) { numPalettes = 16; } - LoadPalettes(gGlobalPalettes[paletteGroup->paletteId], destPaletteNum, numPalettes); + LoadPalettes(&gGlobalGfxAndPalettes[paletteGroup->paletteId * 32], destPaletteNum, numPalettes); if ((paletteGroup->numPalettes & 0x80) == 0) { break; } @@ -38,6 +38,6 @@ void LoadPalettes(const u8* src, int destPaletteNum, int numPalettes) { usedPalettesMask |= (usedPalettesMask << 1); } gUsedPalettes |= usedPalettesMask; - dest = gPaletteBuffer[destPaletteNum]; + dest = &gPaletteBuffer[destPaletteNum * 16]; DmaCopy32(3, src, dest, size); } diff --git a/src/code_0801D79C.c b/src/code_0801D79C.c new file mode 100755 index 00000000..3ceb70e9 --- /dev/null +++ b/src/code_0801D79C.c @@ -0,0 +1,96 @@ +#include "global.h" +#include "screen.h" +#include "structures.h" + +extern u16 gPaletteBuffer[]; +extern u32 gUsedPalettes; + +typedef struct { + union { + int raw; + struct { + u8 filler0[0x3]; + u8 unk3; + } bytes; + } unk0; + u32 dest; + u32 unk8; +} GfxItem; + +extern const GfxItem* gUnk_08100AA8[]; +extern const u8 gGlobalGfxAndPalettes[]; + +void sub_0801D79C(u32 colorIndex, u32 color) { + gPaletteBuffer[colorIndex] = color; + gUsedPalettes |= 1 << (colorIndex / 16); +} + +void sub_0801D7BC(u32 color, u32 arg1) { + if (arg1) { + gScreen.lcd.unk6 = 0xE0FF; + } else { + gScreen.lcd.unk6 = 0xFFFF; + } + sub_0801D79C(0, color); +} + +void LoadGfxGroup(u32 group) { + u32 terminator; + u32 dmaCtrl; + int gfxOffset; + const u8* src; + u32 dest; + int size; + const GfxItem* gfxItem = gUnk_08100AA8[group]; + while (1) { + u32 loadGfx = FALSE; + u32 ctrl = gfxItem->unk0.bytes.unk3; + ctrl &= 0xF; + switch (ctrl) { + case 0x7: + loadGfx = TRUE; + break; + case 0xD: + return; + case 0xE: + if (((struct_02000000 *)0x2000000)->gameLanguage > 1) { + loadGfx = TRUE; + } + break; + case 0xF: + if (((struct_02000000 *)0x2000000)->gameLanguage != 0) { + loadGfx = TRUE; + } + break; + default: + if (ctrl == ((struct_02000000 *)0x2000000)->gameLanguage) { + loadGfx = TRUE; + } + break; + } + + if (loadGfx) { + gfxOffset = gfxItem->unk0.raw & 0xFFFFFF; + src = &gGlobalGfxAndPalettes[gfxOffset]; + dest = gfxItem->dest; + size = gfxItem->unk8; + dmaCtrl = 0x80000000; + if (size < 0) { + if (dest >= VRAM) { + LZ77UnCompVram(src, (void*)dest); + } else { + LZ77UnCompWram(src, (void*)dest); + } + } else { + DmaSet(3, src, dest, dmaCtrl | ((u32)size >> 1)); + } + } + + terminator = gfxItem->unk0.bytes.unk3; + terminator &= 0x80; + gfxItem++; + if (!terminator) { + break; + } + } +} diff --git a/src/introSetTransition.c b/src/introSetTransition.c index 6c71146b..7ed39ce4 100644 --- a/src/introSetTransition.c +++ b/src/introSetTransition.c @@ -64,22 +64,22 @@ void HandleIntroScreen(void) static void sub_080AD3F4(void) { u32 iVar1; - u32 uVar2; + u32 paletteGroup; iVar1 = sub_080AD84C(); if (gMenu.menuType == 0) { sub_0801DA90(1); gMenu.menuType = 1; gMenu.transitionTimer = 120; - sub_0801D7EC(0x10); - sub_0801D7EC(1); + LoadGfxGroup(16); + LoadGfxGroup(1); if (((struct_02000000 *)0x2000000)->gameLanguage == 0) { - uVar2 = 1; + paletteGroup = 1; } else { - uVar2 = 2; + paletteGroup = 2; } - LoadPaletteGroup(uVar2); + LoadPaletteGroup(paletteGroup); gScreen.lcd.lcdControl2 |= 0x400; gScreen.bg2.bg0xOffset = 1; DoFade(6, 8); @@ -107,7 +107,7 @@ extern u8 gUnk_02024490; static void sub_080AD474(void) { int iVar2; - u32 uVar3; + u32 paletteGroup; gMenu.field_0x12++; switch (gMenu.menuType) { @@ -120,14 +120,14 @@ static void sub_080AD474(void) sub_0801CFA8(0); sub_080ADD30(); gUnk_02024490 = 1; - sub_0801D7EC(2); + LoadGfxGroup(2); if (((struct_02000000*)0x2000000)->gameLanguage == 0) { - uVar3 = 3; + paletteGroup = 3; } else { - uVar3 = 4; + paletteGroup = 4; } - LoadPaletteGroup(uVar3); + LoadPaletteGroup(paletteGroup); if (((struct_02000000*)0x2000000)->gameLanguage == 0) { gScreen.controls.windowOutsideControl = 0x844; gScreen.controls.mosaicSize = 0x909; @@ -192,7 +192,7 @@ static void sub_080AD474(void) } if (gMenu.field_0x4 != ((struct_02000000*)0x2000000)->gameLanguage) { gMenu.field_0x4 = ((struct_02000000*)0x2000000)->gameLanguage; - sub_0801D7EC(3); + LoadGfxGroup(3); } sub_080AD89C(); sub_0805E5C0(); diff --git a/src/mainLoop.c b/src/mainLoop.c index 5ba99815..726fa5fd 100644 --- a/src/mainLoop.c +++ b/src/mainLoop.c @@ -5,7 +5,7 @@ #include "readKeyInput.h" extern void sub_0804FF84(u32); -extern u32 gPaletteBuffer; +extern u16 gPaletteBuffer[]; extern void VBlankInterruptWait(void); extern void DisableInterruptsAndDMA(void); extern void sub_0801D66C(void*, u8*, int); @@ -34,7 +34,7 @@ void MainLoop(void) { sub_08056208(); gUnk_02000010.field_0x4 = 193; sub_0804FFE4(); - DmaSet(3, 0x5000000U, &gPaletteBuffer, 0x84000080U); + DmaSet(3, 0x5000000U, gPaletteBuffer, 0x84000080U); sub_0804FF84(1); sub_08056418(); sub_080ADD30(); diff --git a/src/manager/manager1.c b/src/manager/manager1.c index ba556db0..b506940e 100644 --- a/src/manager/manager1.c +++ b/src/manager/manager1.c @@ -2,7 +2,7 @@ #include "entity.h" #include "screen.h" -extern void sub_0801D7EC(u32); +extern void LoadGfxGroup(u32); extern void sub_08056250(void); extern void sub_080570B8(Entity*); void sub_080570F8(void); @@ -23,7 +23,7 @@ void Manager1(Entity *this) bVar1 = gUnk_08107C40[((u8*)&this->field_0x20)[1]]; if ((bVar1 != 0) && (*(u8 *)&this->field_0x20 != bVar1)) { ((u8*)&this->field_0x20)[0] = bVar1; - sub_0801D7EC(bVar1); + LoadGfxGroup(bVar1); } } @@ -31,7 +31,7 @@ void sub_080570B8(Entity *this) { u8 *pbVar1; - sub_0801D7EC(((u8 *)&this->field_0x20)[0]); + LoadGfxGroup(((u8 *)&this->field_0x20)[0]); this->height.WORD = 0; pbVar1 = ((u8 *)&this->field_0x20 + 1); if (*pbVar1 == 3) { diff --git a/src/object/object48.c b/src/object/object48.c index bd6c2da5..bbac3950 100755 --- a/src/object/object48.c +++ b/src/object/object48.c @@ -39,7 +39,7 @@ typedef struct { extern void (*const gUnk_08121C64[])(Entity*); extern void (*const gUnk_08121CCC[])(Entity*); extern const int gUnk_08133368[]; -extern const u8 gGlobalPalettes[]; +extern const u8 gGlobalGfxAndPalettes[]; extern const struct_08121CD4 gUnk_08121CD4[][4]; extern const u8 gUnk_08121D10[]; extern const u8 gUnk_08121D38[][8]; @@ -88,7 +88,7 @@ void sub_0808E818(Entity* this) { this->field_0x70.BYTES.byte0 = 4; this->animationState = 2; var1 = gUnk_08133368[sub_0807A094(1) - 22] & 0xFFFFFF; - LoadPalettes(&gGlobalPalettes[var1], 31, 1); + LoadPalettes(&gGlobalGfxAndPalettes[var1], 31, 1); } if (gUnk_02032EC0.transitionType == 0) { diff --git a/src/sub_080A3B84.c b/src/sub_080A3B84.c index 9279774e..b0ac394b 100644 --- a/src/sub_080A3B84.c +++ b/src/sub_080A3B84.c @@ -32,7 +32,7 @@ void sub_080A3BD0(void) gMenu.unk2a = 0; sub_080A4D34(); LoadPaletteGroup(0xcb); - sub_0801D7EC(0x75); + LoadGfxGroup(0x75); iVar1 = sub_080A4494(); iVar2 = iVar1 + 7; @@ -44,7 +44,7 @@ void sub_080A3BD0(void) iVar1 = max(iVar1, 0); iVar1 = min(iVar1, 6); - sub_0801D7EC(iVar1 + 0x76); + LoadGfxGroup(iVar1 + 0x76); gScreen.lcd.lcdControl2 |= 0x1e00; gScreen.bg1.unk = 0x1c01; gScreen.bg2.unk = 0x1d02; From 76aa792c35dcdcde1c5ede7ff6125fe15a04421b Mon Sep 17 00:00:00 2001 From: Marcus Huderle Date: Wed, 12 Aug 2020 20:12:47 -0500 Subject: [PATCH 117/158] Rename gFadeControl --- asm/code_08019444.s | 8 ++-- asm/code_0801D79C.s | 4 +- asm/code_0804AA84.s | 4 +- asm/code_0804B9F8.s | 4 +- asm/code_08050038.s | 64 ++++++++++++------------- asm/code_080526F8.s | 52 ++++++++++---------- asm/code_0805436C.s | 100 +++++++++++++++++++-------------------- asm/code_0806FA6C.s | 4 +- asm/code_08070698.s | 4 +- asm/code_0807CC3C.s | 8 ++-- asm/code_080A3480.s | 32 ++++++------- asm/code_080A3BD0.s | 20 ++++---- asm/code_080A5574.s | 36 +++++++------- asm/enemy64.s | 8 ++-- asm/fourElements.s | 4 +- asm/gleerok.s | 4 +- asm/manager37.s | 8 ++-- asm/manager39.s | 4 +- asm/vaatiWrath.s | 4 +- include/structures.h | 19 ++++++++ linker.ld | 2 +- src/code_0804AA84.c | 5 +- src/introSetTransition.c | 30 ++++-------- src/room.c | 3 +- src/sub_08050008.c | 4 +- src/sub_08050024.c | 67 ++++++++++---------------- 26 files changed, 245 insertions(+), 257 deletions(-) diff --git a/asm/code_08019444.s b/asm/code_08019444.s index 02ca3f7f..d71f4fff 100644 --- a/asm/code_08019444.s +++ b/asm/code_08019444.s @@ -382,7 +382,7 @@ _0801973C: .4byte gUnk_02018EB0 thumb_func_start sub_08019740 sub_08019740: @ 0x08019740 push {lr} - ldr r0, _0801975C @ =gUnk_03000FD0 + ldr r0, _0801975C @ =gFadeControl ldrb r0, [r0] cmp r0, #0 bne _08019758 @@ -396,7 +396,7 @@ sub_08019740: @ 0x08019740 _08019758: pop {pc} .align 2, 0 -_0801975C: .4byte gUnk_03000FD0 +_0801975C: .4byte gFadeControl _08019760: .4byte gUnk_02018EB0 thumb_func_start sub_08019764 @@ -3726,7 +3726,7 @@ _0801B068: bne _0801B0BA cmp r3, #0 bne _0801B0B8 - ldr r0, _0801B0B4 @ =gUnk_03000FD0 + ldr r0, _0801B0B4 @ =gFadeControl ldrb r0, [r0] cmp r0, #0 bne _0801B08C @@ -3753,7 +3753,7 @@ _0801B0AC: b _0801B0BA .align 2, 0 _0801B0B0: .4byte gUnk_02000CC0 -_0801B0B4: .4byte gUnk_03000FD0 +_0801B0B4: .4byte gFadeControl _0801B0B8: strh r1, [r4, #6] _0801B0BA: diff --git a/asm/code_0801D79C.s b/asm/code_0801D79C.s index 8872b96b..c6f9b660 100644 --- a/asm/code_0801D79C.s +++ b/asm/code_0801D79C.s @@ -298,7 +298,7 @@ sub_0801DA90: @ 0x0801DA90 strb r0, [r1] ldr r0, _0801DAF0 @ =gUnk_03003DE0 strb r3, [r0] - ldr r0, _0801DAF4 @ =gUnk_03000FD0 + ldr r0, _0801DAF4 @ =gFadeControl strb r3, [r0] ldr r5, _0801DAF8 @ =gScreen adds r0, r5, #0 @@ -333,7 +333,7 @@ sub_0801DA90: @ 0x0801DA90 .align 2, 0 _0801DAEC: .4byte gUnk_03001000 _0801DAF0: .4byte gUnk_03003DE0 -_0801DAF4: .4byte gUnk_03000FD0 +_0801DAF4: .4byte gFadeControl _0801DAF8: .4byte gScreen _0801DAFC: .4byte 0x040000B0 _0801DB00: .4byte 0x0000C5FF diff --git a/asm/code_0804AA84.s b/asm/code_0804AA84.s index 9aba3867..00e8af4f 100644 --- a/asm/code_0804AA84.s +++ b/asm/code_0804AA84.s @@ -168,7 +168,7 @@ _0804ACC6: thumb_func_start sub_0804ACC8 sub_0804ACC8: @ 0x0804ACC8 push {lr} - ldr r0, _0804ACEC @ =gUnk_03000FD0 + ldr r0, _0804ACEC @ =gFadeControl ldrb r0, [r0] cmp r0, #0 bne _0804ACE8 @@ -183,7 +183,7 @@ sub_0804ACC8: @ 0x0804ACC8 _0804ACE8: pop {pc} .align 2, 0 -_0804ACEC: .4byte gUnk_03000FD0 +_0804ACEC: .4byte gFadeControl _0804ACF0: .4byte gArea _0804ACF4: .4byte gUnk_02032EDC diff --git a/asm/code_0804B9F8.s b/asm/code_0804B9F8.s index 4f274385..20a8b123 100644 --- a/asm/code_0804B9F8.s +++ b/asm/code_0804B9F8.s @@ -47,7 +47,7 @@ _0804FFE0: .4byte gPaletteBuffer thumb_func_start sub_0804FFE4 sub_0804FFE4: @ 0x0804FFE4 push {r4, lr} - ldr r4, _08050000 @ =gUnk_03000FD0 + ldr r4, _08050000 @ =gFadeControl adds r0, r4, #0 movs r1, #0x1c bl _DmaZero @@ -59,5 +59,5 @@ sub_0804FFE4: @ 0x0804FFE4 str r0, [r4, #4] pop {r4, pc} .align 2, 0 -_08050000: .4byte gUnk_03000FD0 +_08050000: .4byte gFadeControl _08050004: .4byte gUnk_020354C0 diff --git a/asm/code_08050038.s b/asm/code_08050038.s index a795ad0d..1751d8d8 100644 --- a/asm/code_08050038.s +++ b/asm/code_08050038.s @@ -8,7 +8,7 @@ thumb_func_start sub_08050154 sub_08050154: @ 0x08050154 push {r4, r5, r6, lr} - ldr r4, _08050180 @ =gUnk_03000FD0 + ldr r4, _08050180 @ =gFadeControl ldrh r0, [r4, #8] movs r5, #0x1c ands r5, r0 @@ -30,7 +30,7 @@ sub_08050154: @ 0x08050154 strh r2, [r4, #0xc] b _080501B8 .align 2, 0 -_08050180: .4byte gUnk_03000FD0 +_08050180: .4byte gFadeControl _08050184: mvns r0, r5 adds r0, #1 @@ -86,7 +86,7 @@ _080501DA: movs r2, #0xc ldrsh r5, [r3, r2] _080501DE: - ldr r0, _080501F8 @ =gUnk_03000FD0 + ldr r0, _080501F8 @ =gFadeControl ldr r2, [r0, #4] ldr r1, _080501FC @ =gUnk_020354C0 movs r4, #0 @@ -101,7 +101,7 @@ _080501EA: strh r5, [r1, #2] b _08050208 .align 2, 0 -_080501F8: .4byte gUnk_03000FD0 +_080501F8: .4byte gFadeControl _080501FC: .4byte gUnk_020354C0 _08050200: .4byte gUsedPalettes _08050204: @@ -198,7 +198,7 @@ sub_080502A4: @ 0x080502A4 ands r0, r1 cmp r0, #0 beq _080502E4 - ldr r4, _080502E0 @ =gUnk_03000FD0 + ldr r4, _080502E0 @ =gFadeControl ldrh r0, [r4, #0x10] ldrh r1, [r4, #0xa] subs r0, r0, r1 @@ -223,9 +223,9 @@ _080502C4: movs r0, #0 b _08050316 .align 2, 0 -_080502E0: .4byte gUnk_03000FD0 +_080502E0: .4byte gFadeControl _080502E4: - ldr r4, _08050310 @ =gUnk_03000FD0 + ldr r4, _08050310 @ =gFadeControl ldrh r0, [r4, #0xa] ldrh r2, [r4, #0x10] adds r0, r0, r2 @@ -245,7 +245,7 @@ _080502E4: movs r0, #0 b _08050316 .align 2, 0 -_08050310: .4byte gUnk_03000FD0 +_08050310: .4byte gFadeControl _08050314: movs r0, #1 _08050316: @@ -588,7 +588,7 @@ nullsub_479: @ 0x08050608 thumb_func_start sub_0805060C sub_0805060C: @ 0x0805060C push {lr} - ldr r0, _08050620 @ =gUnk_03000FD0 + ldr r0, _08050620 @ =gFadeControl ldrb r0, [r0] cmp r0, #0 bne _0805061C @@ -597,7 +597,7 @@ sub_0805060C: @ 0x0805060C _0805061C: pop {pc} .align 2, 0 -_08050620: .4byte gUnk_03000FD0 +_08050620: .4byte gFadeControl thumb_func_start sub_08050624 sub_08050624: @ 0x08050624 @@ -906,7 +906,7 @@ _08050884: .4byte gMenu thumb_func_start sub_08050888 sub_08050888: @ 0x08050888 push {r4, lr} - ldr r0, _080508C4 @ =gUnk_03000FD0 + ldr r0, _080508C4 @ =gFadeControl ldrb r0, [r0] cmp r0, #0 bne _080508DC @@ -934,7 +934,7 @@ sub_08050888: @ 0x08050888 movs r0, #1 b _080508DA .align 2, 0 -_080508C4: .4byte gUnk_03000FD0 +_080508C4: .4byte gFadeControl _080508C8: .4byte gUnk_02019EE0 _080508CC: .4byte gMenu _080508D0: @@ -3127,7 +3127,7 @@ _080519AC: .4byte gUnk_03001000 thumb_func_start sub_080519B0 sub_080519B0: @ 0x080519B0 push {r4, r5, lr} - ldr r0, _08051A04 @ =gUnk_03000FD0 + ldr r0, _08051A04 @ =gFadeControl ldrb r5, [r0] cmp r5, #0 bne _08051A02 @@ -3159,7 +3159,7 @@ sub_080519B0: @ 0x080519B0 _08051A02: pop {r4, r5, pc} .align 2, 0 -_08051A04: .4byte gUnk_03000FD0 +_08051A04: .4byte gFadeControl _08051A08: .4byte gScreenTransition _08051A0C: .4byte gUnk_02002AC8 _08051A10: .4byte gUnk_03001000 @@ -3169,7 +3169,7 @@ sub_08051A14: @ 0x08051A14 push {lr} movs r0, #1 bl sub_0801DA90 - ldr r1, _08051A70 @ =gUnk_03000FD0 + ldr r1, _08051A70 @ =gFadeControl movs r0, #1 rsbs r0, r0, #0 str r0, [r1, #4] @@ -3202,7 +3202,7 @@ sub_08051A14: @ 0x08051A14 strb r0, [r1, #3] pop {pc} .align 2, 0 -_08051A70: .4byte gUnk_03000FD0 +_08051A70: .4byte gFadeControl _08051A74: .4byte gUnk_03000000 _08051A78: .4byte 0x00000B74 _08051A7C: .4byte gUnk_02032EC0 @@ -3272,7 +3272,7 @@ _08051B02: bl sub_08078CB4 bl sub_080AD9B0 bl sub_080AD918 - ldr r0, _08051BB0 @ =gUnk_03000FD0 + ldr r0, _08051BB0 @ =gFadeControl ldrb r0, [r0] cmp r0, #0 bne _08051BAE @@ -3332,7 +3332,7 @@ _08051B96: _08051BAE: pop {r4, r5, pc} .align 2, 0 -_08051BB0: .4byte gUnk_03000FD0 +_08051BB0: .4byte gFadeControl _08051BB4: .4byte gRoomControls _08051BB8: .4byte gArea _08051BBC: .4byte 0x00000864 @@ -3442,7 +3442,7 @@ sub_08051CA8: @ 0x08051CA8 bl sub_0805291C bl sub_080528B4 bl sub_080AD918 - ldr r0, _08051CEC @ =gUnk_03000FD0 + ldr r0, _08051CEC @ =gFadeControl ldrb r0, [r0] cmp r0, #0 bne _08051CEA @@ -3450,7 +3450,7 @@ sub_08051CA8: @ 0x08051CA8 _08051CEA: pop {pc} .align 2, 0 -_08051CEC: .4byte gUnk_03000FD0 +_08051CEC: .4byte gFadeControl thumb_func_start sub_08051CF0 sub_08051CF0: @ 0x08051CF0 @@ -3462,7 +3462,7 @@ sub_08051CF0: @ 0x08051CF0 movs r6, #1 strb r6, [r5, #0xb] bl sub_080AD918 - ldr r0, _08051D24 @ =gUnk_03000FD0 + ldr r0, _08051D24 @ =gFadeControl ldrb r4, [r0] cmp r4, #0 bne _08051D1E @@ -3476,7 +3476,7 @@ _08051D1E: pop {r4, r5, r6, pc} .align 2, 0 _08051D20: .4byte gUnk_03001000 -_08051D24: .4byte gUnk_03000FD0 +_08051D24: .4byte gFadeControl _08051D28: .4byte gScreenTransition thumb_func_start sub_08051D2C @@ -3911,7 +3911,7 @@ _080520D4: .4byte gUnk_03001000 thumb_func_start sub_080520D8 sub_080520D8: @ 0x080520D8 push {r4, lr} - ldr r4, _08052118 @ =gUnk_03000FD0 + ldr r4, _08052118 @ =gFadeControl ldrb r0, [r4] cmp r0, #0 bne _08052114 @@ -3939,7 +3939,7 @@ sub_080520D8: @ 0x080520D8 _08052114: pop {r4, pc} .align 2, 0 -_08052118: .4byte gUnk_03000FD0 +_08052118: .4byte gFadeControl _0805211C: .4byte gMenu _08052120: .4byte gUnk_02002A40 _08052124: .4byte gUnk_03001000 @@ -3948,7 +3948,7 @@ _08052128: .4byte 0xFFFF0001 thumb_func_start sub_0805212C sub_0805212C: @ 0x0805212C push {r4, lr} - ldr r4, _0805214C @ =gUnk_03000FD0 + ldr r4, _0805214C @ =gFadeControl ldrb r0, [r4] cmp r0, #0 bne _0805219C @@ -3964,7 +3964,7 @@ sub_0805212C: @ 0x0805212C strb r0, [r1, #0x10] b _0805219C .align 2, 0 -_0805214C: .4byte gUnk_03000FD0 +_0805214C: .4byte gFadeControl _08052150: .4byte gUnk_03001000 _08052154: .4byte gMenu _08052158: @@ -4005,7 +4005,7 @@ _0805219C: thumb_func_start sub_080521A0 sub_080521A0: @ 0x080521A0 push {r4, lr} - ldr r0, _080521C4 @ =gUnk_03000FD0 + ldr r0, _080521C4 @ =gFadeControl ldrb r0, [r0] cmp r0, #0 beq _080521AC @@ -4024,7 +4024,7 @@ _080521B8: ldr r0, [r0] mov pc, r0 .align 2, 0 -_080521C4: .4byte gUnk_03000FD0 +_080521C4: .4byte gFadeControl _080521C8: .4byte gMenu _080521CC: .4byte _080521D0 _080521D0: @ jump table @@ -4043,13 +4043,13 @@ _080521E4: movs r0, #0 movs r1, #0 bl sub_08052418 - ldr r1, _08052204 @ =gUnk_03000FD0 + ldr r1, _08052204 @ =gFadeControl movs r0, #1 rsbs r0, r0, #0 str r0, [r1, #4] b _080522E8 .align 2, 0 -_08052204: .4byte gUnk_03000FD0 +_08052204: .4byte gFadeControl _08052208: ldrh r0, [r2, #8] cmp r0, #0 @@ -4262,7 +4262,7 @@ _0805238C: .align 2, 0 _080523A8: .4byte gMenu _080523AC: - ldr r0, _080523C4 @ =gUnk_03000FD0 + ldr r0, _080523C4 @ =gFadeControl ldrb r0, [r0] cmp r0, #0 bne _080523CC @@ -4273,7 +4273,7 @@ _080523AC: bl InitScreen b _080523CC .align 2, 0 -_080523C4: .4byte gUnk_03000FD0 +_080523C4: .4byte gFadeControl _080523C8: bl DoSoftReset _080523CC: diff --git a/asm/code_080526F8.s b/asm/code_080526F8.s index d107e8ff..e40df276 100644 --- a/asm/code_080526F8.s +++ b/asm/code_080526F8.s @@ -1923,7 +1923,7 @@ _080535F0: .4byte gUnk_080FCB94 thumb_func_start sub_080535F4 sub_080535F4: @ 0x080535F4 push {lr} - ldr r0, _0805360C @ =gUnk_03000FD0 + ldr r0, _0805360C @ =gFadeControl ldrb r0, [r0] cmp r0, #0 bne _08053608 @@ -1934,7 +1934,7 @@ sub_080535F4: @ 0x080535F4 _08053608: pop {pc} .align 2, 0 -_0805360C: .4byte gUnk_03000FD0 +_0805360C: .4byte gFadeControl _08053610: .4byte gMenu thumb_func_start nullsub_481 @@ -2190,7 +2190,7 @@ _080537FC: .4byte 0x00001DC1 thumb_func_start sub_08053800 sub_08053800: @ 0x08053800 push {r4, r5, lr} - ldr r0, _0805387C @ =gUnk_03000FD0 + ldr r0, _0805387C @ =gFadeControl ldrb r0, [r0] cmp r0, #0 bne _0805387A @@ -2248,7 +2248,7 @@ sub_08053800: @ 0x08053800 _0805387A: pop {r4, r5, pc} .align 2, 0 -_0805387C: .4byte gUnk_03000FD0 +_0805387C: .4byte gFadeControl _08053880: .4byte gMenu _08053884: .4byte gUnk_080FCCB4 _08053888: .4byte gUnk_02021F30 @@ -2258,7 +2258,7 @@ _08053890: .4byte gScreen thumb_func_start sub_08053894 sub_08053894: @ 0x08053894 push {r4, lr} - ldr r0, _080538B4 @ =gUnk_03000FD0 + ldr r0, _080538B4 @ =gFadeControl ldrb r0, [r0] cmp r0, #0 bne _080538F8 @@ -2274,7 +2274,7 @@ sub_08053894: @ 0x08053894 strh r0, [r4, #0xa] b _080538E4 .align 2, 0 -_080538B4: .4byte gUnk_03000FD0 +_080538B4: .4byte gFadeControl _080538B8: .4byte gMenu _080538BC: ldr r0, _080538FC @ =gScreenTransition @@ -2316,7 +2316,7 @@ _08053900: .4byte gScreen thumb_func_start sub_08053904 sub_08053904: @ 0x08053904 push {r4, lr} - ldr r0, _08053924 @ =gUnk_03000FD0 + ldr r0, _08053924 @ =gFadeControl ldrb r0, [r0] cmp r0, #0 bne _08053968 @@ -2332,7 +2332,7 @@ sub_08053904: @ 0x08053904 strh r0, [r4, #0xa] b _08053954 .align 2, 0 -_08053924: .4byte gUnk_03000FD0 +_08053924: .4byte gFadeControl _08053928: .4byte gMenu _0805392C: ldr r0, _0805396C @ =gScreenTransition @@ -2374,7 +2374,7 @@ _08053970: .4byte gScreen thumb_func_start sub_08053974 sub_08053974: @ 0x08053974 push {lr} - ldr r0, _080539AC @ =gUnk_03000FD0 + ldr r0, _080539AC @ =gFadeControl ldrb r0, [r0] cmp r0, #0 bne _080539A8 @@ -2396,7 +2396,7 @@ sub_08053974: @ 0x08053974 _080539A8: pop {pc} .align 2, 0 -_080539AC: .4byte gUnk_03000FD0 +_080539AC: .4byte gFadeControl _080539B0: .4byte gUnk_080FCBC4 _080539B4: .4byte gMenu @@ -2432,7 +2432,7 @@ _080539F0: .4byte gMenu thumb_func_start sub_080539F4 sub_080539F4: @ 0x080539F4 push {lr} - ldr r0, _08053A14 @ =gUnk_03000FD0 + ldr r0, _08053A14 @ =gFadeControl ldrb r0, [r0] cmp r0, #0 bne _08053A10 @@ -2447,7 +2447,7 @@ sub_080539F4: @ 0x080539F4 _08053A10: pop {pc} .align 2, 0 -_08053A14: .4byte gUnk_03000FD0 +_08053A14: .4byte gFadeControl _08053A18: .4byte gMenu thumb_func_start sub_08053A1C @@ -2513,7 +2513,7 @@ _08053A8C: .4byte gMenu thumb_func_start sub_08053A90 sub_08053A90: @ 0x08053A90 push {lr} - ldr r0, _08053AA8 @ =gUnk_03000FD0 + ldr r0, _08053AA8 @ =gFadeControl ldrb r0, [r0] cmp r0, #0 bne _08053AA4 @@ -2524,7 +2524,7 @@ sub_08053A90: @ 0x08053A90 _08053AA4: pop {pc} .align 2, 0 -_08053AA8: .4byte gUnk_03000FD0 +_08053AA8: .4byte gFadeControl _08053AAC: .4byte gUnk_02032EC0 thumb_func_start sub_08053AB0 @@ -2878,7 +2878,7 @@ _08053D5C: movs r2, #1 bl SetTileType _08053D72: - ldr r0, _08053D8C @ =gUnk_03000FD0 + ldr r0, _08053D8C @ =gFadeControl ldrb r0, [r0] cmp r0, #0 bne _08053D86 @@ -2892,7 +2892,7 @@ _08053D86: pop {r4, pc} .align 2, 0 _08053D88: .4byte gMenu -_08053D8C: .4byte gUnk_03000FD0 +_08053D8C: .4byte gFadeControl thumb_func_start sub_08053D90 sub_08053D90: @ 0x08053D90 @@ -2917,7 +2917,7 @@ _08053DB0: .4byte gMenu thumb_func_start sub_08053DB4 sub_08053DB4: @ 0x08053DB4 push {r4, r5, lr} - ldr r0, _08053E20 @ =gUnk_03000FD0 + ldr r0, _08053E20 @ =gFadeControl ldrb r0, [r0] cmp r0, #0 bne _08053E1C @@ -2963,7 +2963,7 @@ sub_08053DB4: @ 0x08053DB4 _08053E1C: pop {r4, r5, pc} .align 2, 0 -_08053E20: .4byte gUnk_03000FD0 +_08053E20: .4byte gFadeControl _08053E24: .4byte gMenu _08053E28: .4byte gUnk_02000070 _08053E2C: .4byte gRoomControls @@ -2971,7 +2971,7 @@ _08053E2C: .4byte gRoomControls thumb_func_start sub_08053E30 sub_08053E30: @ 0x08053E30 push {lr} - ldr r0, _08053E50 @ =gUnk_03000FD0 + ldr r0, _08053E50 @ =gFadeControl ldrb r0, [r0] cmp r0, #0 bne _08053E4E @@ -2988,7 +2988,7 @@ sub_08053E30: @ 0x08053E30 _08053E4E: pop {pc} .align 2, 0 -_08053E50: .4byte gUnk_03000FD0 +_08053E50: .4byte gFadeControl _08053E54: .4byte gMenu thumb_func_start sub_08053E58 @@ -3045,7 +3045,7 @@ _08053EC0: .4byte gUnk_02000070 thumb_func_start sub_08053EC4 sub_08053EC4: @ 0x08053EC4 push {r4, lr} - ldr r0, _08053EF4 @ =gUnk_03000FD0 + ldr r0, _08053EF4 @ =gFadeControl ldrb r0, [r0] cmp r0, #0 bne _08053EF0 @@ -3068,7 +3068,7 @@ sub_08053EC4: @ 0x08053EC4 _08053EF0: pop {r4, pc} .align 2, 0 -_08053EF4: .4byte gUnk_03000FD0 +_08053EF4: .4byte gFadeControl _08053EF8: .4byte gMenu thumb_func_start sub_08053EFC @@ -3094,7 +3094,7 @@ _08053F1C: .4byte gMenu thumb_func_start sub_08053F20 sub_08053F20: @ 0x08053F20 push {r4, r5, lr} - ldr r0, _08053F78 @ =gUnk_03000FD0 + ldr r0, _08053F78 @ =gFadeControl ldrb r0, [r0] cmp r0, #0 bne _08053F74 @@ -3133,7 +3133,7 @@ sub_08053F20: @ 0x08053F20 _08053F74: pop {r4, r5, pc} .align 2, 0 -_08053F78: .4byte gUnk_03000FD0 +_08053F78: .4byte gFadeControl _08053F7C: .4byte gMenu _08053F80: .4byte gUnk_02000070 _08053F84: .4byte gRoomControls @@ -3141,7 +3141,7 @@ _08053F84: .4byte gRoomControls thumb_func_start sub_08053F88 sub_08053F88: @ 0x08053F88 push {lr} - ldr r0, _08053FAC @ =gUnk_03000FD0 + ldr r0, _08053FAC @ =gFadeControl ldrb r0, [r0] cmp r0, #0 bne _08053FAA @@ -3159,7 +3159,7 @@ sub_08053F88: @ 0x08053F88 _08053FAA: pop {pc} .align 2, 0 -_08053FAC: .4byte gUnk_03000FD0 +_08053FAC: .4byte gFadeControl _08053FB0: .4byte gMenu thumb_func_start sub_08053FB4 diff --git a/asm/code_0805436C.s b/asm/code_0805436C.s index 67cb224e..16f8ca8e 100644 --- a/asm/code_0805436C.s +++ b/asm/code_0805436C.s @@ -478,7 +478,7 @@ _08054C54: .4byte gUnk_02000070 thumb_func_start sub_08054C58 sub_08054C58: @ 0x08054C58 push {lr} - ldr r0, _08054C80 @ =gUnk_03000FD0 + ldr r0, _08054C80 @ =gFadeControl ldrb r0, [r0] cmp r0, #0 bne _08054C7C @@ -496,13 +496,13 @@ sub_08054C58: @ 0x08054C58 _08054C7C: pop {pc} .align 2, 0 -_08054C80: .4byte gUnk_03000FD0 +_08054C80: .4byte gFadeControl _08054C84: .4byte gMenu thumb_func_start sub_08054C88 sub_08054C88: @ 0x08054C88 push {r4, lr} - ldr r0, _08054CB8 @ =gUnk_03000FD0 + ldr r0, _08054CB8 @ =gFadeControl ldrb r0, [r0] cmp r0, #0 bne _08054CB4 @@ -523,13 +523,13 @@ sub_08054C88: @ 0x08054C88 _08054CB4: pop {r4, pc} .align 2, 0 -_08054CB8: .4byte gUnk_03000FD0 +_08054CB8: .4byte gFadeControl _08054CBC: .4byte gMenu thumb_func_start sub_08054CC0 sub_08054CC0: @ 0x08054CC0 push {lr} - ldr r0, _08054CE0 @ =gUnk_03000FD0 + ldr r0, _08054CE0 @ =gFadeControl ldrb r0, [r0] cmp r0, #0 bne _08054CDE @@ -546,7 +546,7 @@ sub_08054CC0: @ 0x08054CC0 _08054CDE: pop {pc} .align 2, 0 -_08054CE0: .4byte gUnk_03000FD0 +_08054CE0: .4byte gFadeControl _08054CE4: .4byte gMenu thumb_func_start sub_08054CE8 @@ -594,7 +594,7 @@ _08054D38: .4byte gUnk_02000070 thumb_func_start sub_08054D3C sub_08054D3C: @ 0x08054D3C push {r4, lr} - ldr r0, _08054D6C @ =gUnk_03000FD0 + ldr r0, _08054D6C @ =gFadeControl ldrb r0, [r0] cmp r0, #0 bne _08054D6A @@ -616,7 +616,7 @@ sub_08054D3C: @ 0x08054D3C _08054D6A: pop {r4, pc} .align 2, 0 -_08054D6C: .4byte gUnk_03000FD0 +_08054D6C: .4byte gFadeControl _08054D70: .4byte gMenu thumb_func_start sub_08054D74 @@ -739,7 +739,7 @@ _08054E58: .4byte gUnk_02000070 thumb_func_start sub_08054E5C sub_08054E5C: @ 0x08054E5C push {r4, lr} - ldr r0, _08054E94 @ =gUnk_03000FD0 + ldr r0, _08054E94 @ =gFadeControl ldrb r0, [r0] cmp r0, #0 bne _08054E92 @@ -764,7 +764,7 @@ sub_08054E5C: @ 0x08054E5C _08054E92: pop {r4, pc} .align 2, 0 -_08054E94: .4byte gUnk_03000FD0 +_08054E94: .4byte gFadeControl _08054E98: .4byte gMenu thumb_func_start sub_08054E9C @@ -1229,7 +1229,7 @@ _08055220: .4byte gUnk_02000070 thumb_func_start sub_08055224 sub_08055224: @ 0x08055224 push {lr} - ldr r0, _08055244 @ =gUnk_03000FD0 + ldr r0, _08055244 @ =gFadeControl ldrb r0, [r0] cmp r0, #0 bne _08055240 @@ -1244,7 +1244,7 @@ sub_08055224: @ 0x08055224 _08055240: pop {pc} .align 2, 0 -_08055244: .4byte gUnk_03000FD0 +_08055244: .4byte gFadeControl _08055248: .4byte gMenu thumb_func_start sub_0805524C @@ -1382,7 +1382,7 @@ _0805534C: .4byte gUnk_02000070 thumb_func_start sub_08055350 sub_08055350: @ 0x08055350 push {lr} - ldr r0, _08055378 @ =gUnk_03000FD0 + ldr r0, _08055378 @ =gFadeControl ldrb r0, [r0] cmp r0, #0 bne _08055374 @@ -1400,13 +1400,13 @@ sub_08055350: @ 0x08055350 _08055374: pop {pc} .align 2, 0 -_08055378: .4byte gUnk_03000FD0 +_08055378: .4byte gFadeControl _0805537C: .4byte gMenu thumb_func_start sub_08055380 sub_08055380: @ 0x08055380 push {r4, lr} - ldr r0, _080553B0 @ =gUnk_03000FD0 + ldr r0, _080553B0 @ =gFadeControl ldrb r0, [r0] cmp r0, #0 bne _080553AC @@ -1427,13 +1427,13 @@ sub_08055380: @ 0x08055380 _080553AC: pop {r4, pc} .align 2, 0 -_080553B0: .4byte gUnk_03000FD0 +_080553B0: .4byte gFadeControl _080553B4: .4byte gMenu thumb_func_start sub_080553B8 sub_080553B8: @ 0x080553B8 push {lr} - ldr r0, _080553D8 @ =gUnk_03000FD0 + ldr r0, _080553D8 @ =gFadeControl ldrb r0, [r0] cmp r0, #0 bne _080553D6 @@ -1450,7 +1450,7 @@ sub_080553B8: @ 0x080553B8 _080553D6: pop {pc} .align 2, 0 -_080553D8: .4byte gUnk_03000FD0 +_080553D8: .4byte gFadeControl _080553DC: .4byte gMenu thumb_func_start sub_080553E0 @@ -1525,7 +1525,7 @@ _08055464: .4byte gUnk_02000070 thumb_func_start sub_08055468 sub_08055468: @ 0x08055468 push {lr} - ldr r0, _08055490 @ =gUnk_03000FD0 + ldr r0, _08055490 @ =gFadeControl ldrb r0, [r0] cmp r0, #0 bne _0805548C @@ -1543,13 +1543,13 @@ sub_08055468: @ 0x08055468 _0805548C: pop {pc} .align 2, 0 -_08055490: .4byte gUnk_03000FD0 +_08055490: .4byte gFadeControl _08055494: .4byte gMenu thumb_func_start sub_08055498 sub_08055498: @ 0x08055498 push {r4, lr} - ldr r0, _080554CC @ =gUnk_03000FD0 + ldr r0, _080554CC @ =gFadeControl ldrb r0, [r0] cmp r0, #0 bne _080554CA @@ -1572,13 +1572,13 @@ sub_08055498: @ 0x08055498 _080554CA: pop {r4, pc} .align 2, 0 -_080554CC: .4byte gUnk_03000FD0 +_080554CC: .4byte gFadeControl _080554D0: .4byte gMenu thumb_func_start sub_080554D4 sub_080554D4: @ 0x080554D4 push {lr} - ldr r0, _080554F4 @ =gUnk_03000FD0 + ldr r0, _080554F4 @ =gFadeControl ldrb r0, [r0] cmp r0, #0 bne _080554F2 @@ -1595,7 +1595,7 @@ sub_080554D4: @ 0x080554D4 _080554F2: pop {pc} .align 2, 0 -_080554F4: .4byte gUnk_03000FD0 +_080554F4: .4byte gFadeControl _080554F8: .4byte gMenu thumb_func_start sub_080554FC @@ -1639,7 +1639,7 @@ _08055544: .4byte gUnk_02000070 thumb_func_start sub_08055548 sub_08055548: @ 0x08055548 push {r4, lr} - ldr r0, _08055578 @ =gUnk_03000FD0 + ldr r0, _08055578 @ =gFadeControl ldrb r0, [r0] cmp r0, #0 bne _08055576 @@ -1661,7 +1661,7 @@ sub_08055548: @ 0x08055548 _08055576: pop {r4, pc} .align 2, 0 -_08055578: .4byte gUnk_03000FD0 +_08055578: .4byte gFadeControl _0805557C: .4byte gMenu thumb_func_start sub_08055580 @@ -1737,7 +1737,7 @@ _08055608: .4byte gUnk_02000070 thumb_func_start sub_0805560C sub_0805560C: @ 0x0805560C push {lr} - ldr r0, _0805562C @ =gUnk_03000FD0 + ldr r0, _0805562C @ =gFadeControl ldrb r0, [r0] cmp r0, #0 bne _08055628 @@ -1752,7 +1752,7 @@ sub_0805560C: @ 0x0805560C _08055628: pop {pc} .align 2, 0 -_0805562C: .4byte gUnk_03000FD0 +_0805562C: .4byte gFadeControl _08055630: .4byte gMenu thumb_func_start sub_08055634 @@ -1916,7 +1916,7 @@ _08055768: .4byte gUnk_02000070 thumb_func_start sub_0805576C sub_0805576C: @ 0x0805576C push {lr} - ldr r0, _08055790 @ =gUnk_03000FD0 + ldr r0, _08055790 @ =gFadeControl ldrb r0, [r0] cmp r0, #0 bne _0805578C @@ -1933,7 +1933,7 @@ sub_0805576C: @ 0x0805576C _0805578C: pop {pc} .align 2, 0 -_08055790: .4byte gUnk_03000FD0 +_08055790: .4byte gFadeControl _08055794: .4byte gMenu thumb_func_start sub_08055798 @@ -2157,7 +2157,7 @@ _08055944: .4byte gUnk_02000070 thumb_func_start sub_08055948 sub_08055948: @ 0x08055948 push {lr} - ldr r0, _08055970 @ =gUnk_03000FD0 + ldr r0, _08055970 @ =gFadeControl ldrb r0, [r0] cmp r0, #0 bne _0805596C @@ -2175,7 +2175,7 @@ sub_08055948: @ 0x08055948 _0805596C: pop {pc} .align 2, 0 -_08055970: .4byte gUnk_03000FD0 +_08055970: .4byte gFadeControl _08055974: .4byte gMenu thumb_func_start sub_08055978 @@ -2283,7 +2283,7 @@ _08055A38: .4byte gUnk_02000070 thumb_func_start sub_08055A3C sub_08055A3C: @ 0x08055A3C push {lr} - ldr r0, _08055A64 @ =gUnk_03000FD0 + ldr r0, _08055A64 @ =gFadeControl ldrb r0, [r0] cmp r0, #0 bne _08055A60 @@ -2301,13 +2301,13 @@ sub_08055A3C: @ 0x08055A3C _08055A60: pop {pc} .align 2, 0 -_08055A64: .4byte gUnk_03000FD0 +_08055A64: .4byte gFadeControl _08055A68: .4byte gMenu thumb_func_start sub_08055A6C sub_08055A6C: @ 0x08055A6C push {r4, lr} - ldr r0, _08055AA0 @ =gUnk_03000FD0 + ldr r0, _08055AA0 @ =gFadeControl ldrb r0, [r0] cmp r0, #0 bne _08055A9E @@ -2330,13 +2330,13 @@ sub_08055A6C: @ 0x08055A6C _08055A9E: pop {r4, pc} .align 2, 0 -_08055AA0: .4byte gUnk_03000FD0 +_08055AA0: .4byte gFadeControl _08055AA4: .4byte gMenu thumb_func_start sub_08055AA8 sub_08055AA8: @ 0x08055AA8 push {lr} - ldr r0, _08055AC8 @ =gUnk_03000FD0 + ldr r0, _08055AC8 @ =gFadeControl ldrb r0, [r0] cmp r0, #0 bne _08055AC6 @@ -2353,7 +2353,7 @@ sub_08055AA8: @ 0x08055AA8 _08055AC6: pop {pc} .align 2, 0 -_08055AC8: .4byte gUnk_03000FD0 +_08055AC8: .4byte gFadeControl _08055ACC: .4byte gMenu thumb_func_start sub_08055AD0 @@ -2410,7 +2410,7 @@ _08055B34: .4byte gUnk_02000070 thumb_func_start sub_08055B38 sub_08055B38: @ 0x08055B38 push {lr} - ldr r0, _08055B4C @ =gUnk_03000FD0 + ldr r0, _08055B4C @ =gFadeControl ldrb r0, [r0] cmp r0, #0 bne _08055B48 @@ -2420,7 +2420,7 @@ sub_08055B38: @ 0x08055B38 _08055B48: pop {pc} .align 2, 0 -_08055B4C: .4byte gUnk_03000FD0 +_08055B4C: .4byte gFadeControl _08055B50: .4byte gMenu thumb_func_start sub_08055B54 @@ -2518,7 +2518,7 @@ _08055C00: .4byte gUnk_02000070 thumb_func_start sub_08055C04 sub_08055C04: @ 0x08055C04 push {lr} - ldr r0, _08055C2C @ =gUnk_03000FD0 + ldr r0, _08055C2C @ =gFadeControl ldrb r0, [r0] cmp r0, #0 bne _08055C28 @@ -2536,14 +2536,14 @@ sub_08055C04: @ 0x08055C04 _08055C28: pop {pc} .align 2, 0 -_08055C2C: .4byte gUnk_03000FD0 +_08055C2C: .4byte gFadeControl _08055C30: .4byte gMenu thumb_func_start sub_08055C34 sub_08055C34: @ 0x08055C34 push {r4, r5, lr} sub sp, #4 - ldr r0, _08055C64 @ =gUnk_03000FD0 + ldr r0, _08055C64 @ =gFadeControl ldrb r0, [r0] cmp r0, #0 bne _08055CA6 @@ -2563,7 +2563,7 @@ sub_08055C34: @ 0x08055C34 bl sub_08054974 b _08055C8C .align 2, 0 -_08055C64: .4byte gUnk_03000FD0 +_08055C64: .4byte gFadeControl _08055C68: .4byte gMenu _08055C6C: str r0, [sp] @@ -2600,7 +2600,7 @@ _08055CAC: .4byte gMenu thumb_func_start sub_08055CB0 sub_08055CB0: @ 0x08055CB0 push {lr} - ldr r0, _08055CD0 @ =gUnk_03000FD0 + ldr r0, _08055CD0 @ =gFadeControl ldrb r0, [r0] cmp r0, #0 bne _08055CCE @@ -2617,7 +2617,7 @@ sub_08055CB0: @ 0x08055CB0 _08055CCE: pop {pc} .align 2, 0 -_08055CD0: .4byte gUnk_03000FD0 +_08055CD0: .4byte gFadeControl _08055CD4: .4byte gMenu thumb_func_start sub_08055CD8 @@ -2665,7 +2665,7 @@ _08055D28: .4byte gUnk_02000070 thumb_func_start sub_08055D2C sub_08055D2C: @ 0x08055D2C push {r4, lr} - ldr r0, _08055D5C @ =gUnk_03000FD0 + ldr r0, _08055D5C @ =gFadeControl ldrb r0, [r0] cmp r0, #0 bne _08055D5A @@ -2687,7 +2687,7 @@ sub_08055D2C: @ 0x08055D2C _08055D5A: pop {r4, pc} .align 2, 0 -_08055D5C: .4byte gUnk_03000FD0 +_08055D5C: .4byte gFadeControl _08055D60: .4byte gMenu thumb_func_start sub_08055D64 @@ -2744,7 +2744,7 @@ _08055DBC: .4byte gUnk_02000070 thumb_func_start sub_08055DC0 sub_08055DC0: @ 0x08055DC0 push {lr} - ldr r0, _08055DE0 @ =gUnk_03000FD0 + ldr r0, _08055DE0 @ =gFadeControl ldrb r0, [r0] cmp r0, #0 bne _08055DDC @@ -2759,7 +2759,7 @@ sub_08055DC0: @ 0x08055DC0 _08055DDC: pop {pc} .align 2, 0 -_08055DE0: .4byte gUnk_03000FD0 +_08055DE0: .4byte gFadeControl _08055DE4: .4byte 0x00000A01 _08055DE8: .4byte gMenu diff --git a/asm/code_0806FA6C.s b/asm/code_0806FA6C.s index d948543c..fd6a614f 100644 --- a/asm/code_0806FA6C.s +++ b/asm/code_0806FA6C.s @@ -1468,7 +1468,7 @@ sub_080705AC: @ 0x080705AC ands r0, r1 cmp r0, #0 beq _08070674 - ldr r0, _08070618 @ =gUnk_03000FD0 + ldr r0, _08070618 @ =gFadeControl ldrb r0, [r0] cmp r0, #0 bne _08070674 @@ -1514,7 +1514,7 @@ sub_080705AC: @ 0x080705AC b _08070632 .align 2, 0 _08070614: .4byte gUnk_03000FF0 -_08070618: .4byte gUnk_03000FD0 +_08070618: .4byte gFadeControl _0807061C: .4byte gUnk_02034490 _08070620: .4byte gTextBox _08070624: .4byte gUnk_02002A40 diff --git a/asm/code_08070698.s b/asm/code_08070698.s index 3d9d7eac..738b3fa8 100644 --- a/asm/code_08070698.s +++ b/asm/code_08070698.s @@ -2108,7 +2108,7 @@ _080717CA: sub_080717CC: @ 0x080717CC push {lr} adds r1, r0, #0 - ldr r0, _080717E4 @ =gUnk_03000FD0 + ldr r0, _080717E4 @ =gFadeControl ldrb r0, [r0] cmp r0, #0 bne _080717F4 @@ -2119,7 +2119,7 @@ sub_080717CC: @ 0x080717CC strb r0, [r1, #0xe] b _080717F4 .align 2, 0 -_080717E4: .4byte gUnk_03000FD0 +_080717E4: .4byte gFadeControl _080717E8: adds r0, r1, #0 bl sub_080717F8 diff --git a/asm/code_0807CC3C.s b/asm/code_0807CC3C.s index 0db4b4d8..c1a22a53 100644 --- a/asm/code_0807CC3C.s +++ b/asm/code_0807CC3C.s @@ -3343,7 +3343,7 @@ _0807E758: .4byte gUnk_02033280 thumb_func_start sub_0807E75C sub_0807E75C: @ 0x0807E75C push {lr} - ldr r0, _0807E770 @ =gUnk_03000FD0 + ldr r0, _0807E770 @ =gFadeControl ldrb r0, [r0] cmp r0, #0 beq _0807E76C @@ -3353,7 +3353,7 @@ sub_0807E75C: @ 0x0807E75C _0807E76C: pop {pc} .align 2, 0 -_0807E770: .4byte gUnk_03000FD0 +_0807E770: .4byte gFadeControl _0807E774: .4byte gUnk_02033280 thumb_func_start sub_0807E778 @@ -3371,11 +3371,11 @@ sub_0807E788: @ 0x0807E788 push {lr} ldr r0, [r1] bl GetNextScriptCommandWordAfterCommandMetadata - ldr r1, _0807E798 @ =gUnk_03000FD0 + ldr r1, _0807E798 @ =gFadeControl str r0, [r1, #4] pop {pc} .align 2, 0 -_0807E798: .4byte gUnk_03000FD0 +_0807E798: .4byte gFadeControl thumb_func_start sub_0807E79C sub_0807E79C: @ 0x0807E79C diff --git a/asm/code_080A3480.s b/asm/code_080A3480.s index 37d5acc4..2f809081 100644 --- a/asm/code_080A3480.s +++ b/asm/code_080A3480.s @@ -337,7 +337,7 @@ _080A36F4: .4byte gMenu thumb_func_start sub_080A36F8 sub_080A36F8: @ 0x080A36F8 push {r4, r5, lr} - ldr r0, _080A3754 @ =gUnk_03000FD0 + ldr r0, _080A3754 @ =gFadeControl ldrb r0, [r0] cmp r0, #0 bne _080A3752 @@ -380,7 +380,7 @@ _080A374A: _080A3752: pop {r4, r5, pc} .align 2, 0 -_080A3754: .4byte gUnk_03000FD0 +_080A3754: .4byte gFadeControl _080A3758: .4byte gMenu _080A375C: .4byte gUnk_08127CEC _080A3760: .4byte gUnk_02021F30 @@ -433,7 +433,7 @@ _080A37B8: .4byte gUnk_02021F30 _080A37BC: .4byte gUnk_081272E0 _080A37C0: .4byte gScreen _080A37C4: - ldr r0, _080A37F8 @ =gUnk_03000FD0 + ldr r0, _080A37F8 @ =gFadeControl ldrb r0, [r0] cmp r0, #0 bne _080A385E @@ -460,7 +460,7 @@ _080A37C4: bls _080A385E b _080A383C .align 2, 0 -_080A37F8: .4byte gUnk_03000FD0 +_080A37F8: .4byte gFadeControl _080A37FC: .4byte gScreenTransition _080A3800: .4byte gScreen _080A3804: @@ -502,7 +502,7 @@ _080A383C: _080A3844: .4byte gScreenTransition _080A3848: .4byte gScreen _080A384C: - ldr r1, _080A3860 @ =gUnk_03000FD0 + ldr r1, _080A3860 @ =gFadeControl ldrb r0, [r1] cmp r0, #0 bne _080A385E @@ -513,7 +513,7 @@ _080A384C: _080A385E: pop {r4, pc} .align 2, 0 -_080A3860: .4byte gUnk_03000FD0 +_080A3860: .4byte gFadeControl thumb_func_start sub_080A3864 sub_080A3864: @ 0x080A3864 @@ -537,7 +537,7 @@ _080A3884: .4byte gMenu thumb_func_start sub_080A3888 sub_080A3888: @ 0x080A3888 push {lr} - ldr r1, _080A38A8 @ =gUnk_03000FD0 + ldr r1, _080A38A8 @ =gFadeControl ldr r0, _080A38AC @ =0xFFFF7FFF str r0, [r1, #4] movs r0, #5 @@ -549,7 +549,7 @@ sub_080A3888: @ 0x080A3888 bl sub_080A3954 pop {pc} .align 2, 0 -_080A38A8: .4byte gUnk_03000FD0 +_080A38A8: .4byte gFadeControl _080A38AC: .4byte 0xFFFF7FFF _080A38B0: .4byte gMenu @@ -572,7 +572,7 @@ sub_080A38D0: @ 0x080A38D0 push {r4, r5, r6, lr} mov r6, r8 push {r6} - ldr r0, _080A391C @ =gUnk_03000FD0 + ldr r0, _080A391C @ =gFadeControl ldrb r0, [r0] cmp r0, #0 bne _080A3914 @@ -605,7 +605,7 @@ _080A3914: mov r8, r3 pop {r4, r5, r6, pc} .align 2, 0 -_080A391C: .4byte gUnk_03000FD0 +_080A391C: .4byte gFadeControl _080A3920: .4byte gUnk_02021F30 _080A3924: .4byte gScreen _080A3928: .4byte gUnk_020344B0 @@ -614,7 +614,7 @@ _080A392C: .4byte gMenu thumb_func_start sub_080A3930 sub_080A3930: @ 0x080A3930 push {lr} - ldr r0, _080A394C @ =gUnk_03000FD0 + ldr r0, _080A394C @ =gFadeControl ldrb r0, [r0] cmp r0, #0 bne _080A3948 @@ -627,7 +627,7 @@ sub_080A3930: @ 0x080A3930 _080A3948: pop {pc} .align 2, 0 -_080A394C: .4byte gUnk_03000FD0 +_080A394C: .4byte gFadeControl _080A3950: .4byte gUnk_03001000 thumb_func_start sub_080A3954 @@ -657,7 +657,7 @@ _080A397C: .4byte gMenu thumb_func_start sub_080A3980 sub_080A3980: @ 0x080A3980 push {lr} - ldr r0, _080A3990 @ =gUnk_03000FD0 + ldr r0, _080A3990 @ =gFadeControl ldrb r0, [r0] cmp r0, #0 bne _080A398E @@ -665,7 +665,7 @@ sub_080A3980: @ 0x080A3980 _080A398E: pop {pc} .align 2, 0 -_080A3990: .4byte gUnk_03000FD0 +_080A3990: .4byte gFadeControl thumb_func_start sub_080A3994 sub_080A3994: @ 0x080A3994 @@ -737,7 +737,7 @@ _080A3A2C: .4byte gScreen _080A3A30: .4byte 0x00001C01 _080A3A34: .4byte 0x00001D05 _080A3A38: - ldr r0, _080A3A50 @ =gUnk_03000FD0 + ldr r0, _080A3A50 @ =gFadeControl ldrb r0, [r0] cmp r0, #0 beq _080A3A42 @@ -750,7 +750,7 @@ _080A3A42: strh r0, [r2, #8] b _080A3B36 .align 2, 0 -_080A3A50: .4byte gUnk_03000FD0 +_080A3A50: .4byte gFadeControl _080A3A54: ldrb r4, [r2, #3] ldr r0, _080A3A68 @ =gUnk_03000FF0 diff --git a/asm/code_080A3BD0.s b/asm/code_080A3BD0.s index 03a65575..659d61f3 100644 --- a/asm/code_080A3BD0.s +++ b/asm/code_080A3BD0.s @@ -9,7 +9,7 @@ thumb_func_start sub_080A3C6C sub_080A3C6C: @ 0x080A3C6C push {r4, r5, lr} - ldr r0, _080A3C9C @ =gUnk_03000FD0 + ldr r0, _080A3C9C @ =gFadeControl ldrb r0, [r0] cmp r0, #0 beq _080A3C78 @@ -35,7 +35,7 @@ _080A3C92: str r2, [r5, #0x10] b _080A3CDE .align 2, 0 -_080A3C9C: .4byte gUnk_03000FD0 +_080A3C9C: .4byte gFadeControl _080A3CA0: .4byte gMenu _080A3CA4: .4byte 0x00001FFD _080A3CA8: @@ -1354,7 +1354,7 @@ sub_080A46DC: @ 0x080A46DC thumb_func_start sub_080A46EC sub_080A46EC: @ 0x080A46EC push {lr} - ldr r0, _080A4714 @ =gUnk_03000FD0 + ldr r0, _080A4714 @ =gFadeControl ldrb r0, [r0] cmp r0, #0 bne _080A4710 @@ -1372,7 +1372,7 @@ sub_080A46EC: @ 0x080A46EC _080A4710: pop {pc} .align 2, 0 -_080A4714: .4byte gUnk_03000FD0 +_080A4714: .4byte gFadeControl _080A4718: .4byte gUnk_080FC3E4 _080A471C: .4byte gMenu @@ -1543,7 +1543,7 @@ _080A4860: .4byte gMenu thumb_func_start sub_080A4864 sub_080A4864: @ 0x080A4864 push {r4, r5, r6, lr} - ldr r0, _080A4894 @ =gUnk_03000FD0 + ldr r0, _080A4894 @ =gFadeControl ldrb r0, [r0] cmp r0, #0 bne _080A4926 @@ -1567,7 +1567,7 @@ sub_080A4864: @ 0x080A4864 beq _080A48D8 b _080A48DE .align 2, 0 -_080A4894: .4byte gUnk_03000FD0 +_080A4894: .4byte gFadeControl _080A4898: .4byte gMenu _080A489C: .4byte gUnk_03000FF0 _080A48A0: @@ -2459,7 +2459,7 @@ _080A4F9C: .4byte gUnk_08128A38 thumb_func_start sub_080A4FA0 sub_080A4FA0: @ 0x080A4FA0 push {lr} - ldr r0, _080A4FB4 @ =gUnk_03000FD0 + ldr r0, _080A4FB4 @ =gFadeControl ldrb r0, [r0] cmp r0, #0 bne _080A4FB0 @@ -2468,7 +2468,7 @@ sub_080A4FA0: @ 0x080A4FA0 _080A4FB0: pop {pc} .align 2, 0 -_080A4FB4: .4byte gUnk_03000FD0 +_080A4FB4: .4byte gFadeControl thumb_func_start sub_080A4FB8 sub_080A4FB8: @ 0x080A4FB8 @@ -2773,7 +2773,7 @@ _080A51F0: .4byte gMenu sub_080A51F4: @ 0x080A51F4 push {lr} movs r1, #1 - ldr r0, _080A5210 @ =gUnk_03000FD0 + ldr r0, _080A5210 @ =gFadeControl ldrb r0, [r0] cmp r0, #0 beq _080A5202 @@ -2788,7 +2788,7 @@ _080A520C: adds r0, r1, #0 pop {pc} .align 2, 0 -_080A5210: .4byte gUnk_03000FD0 +_080A5210: .4byte gFadeControl _080A5214: .4byte gUnk_02034490 thumb_func_start sub_080A5218 diff --git a/asm/code_080A5574.s b/asm/code_080A5574.s index 57a76b63..b0893ba6 100644 --- a/asm/code_080A5574.s +++ b/asm/code_080A5574.s @@ -821,7 +821,7 @@ _080A5BB6: thumb_func_start sub_080A5BB8 sub_080A5BB8: @ 0x080A5BB8 push {lr} - ldr r0, _080A5BE4 @ =gUnk_03000FD0 + ldr r0, _080A5BE4 @ =gFadeControl ldrb r0, [r0] cmp r0, #0 bne _080A5BE2 @@ -841,7 +841,7 @@ sub_080A5BB8: @ 0x080A5BB8 _080A5BE2: pop {pc} .align 2, 0 -_080A5BE4: .4byte gUnk_03000FD0 +_080A5BE4: .4byte gFadeControl _080A5BE8: .4byte gUnk_03001000 _080A5BEC: .4byte gUnk_02034490 @@ -2057,7 +2057,7 @@ _080A65A8: .4byte gMenu thumb_func_start sub_080A65AC sub_080A65AC: @ 0x080A65AC push {r4, lr} - ldr r0, _080A65E4 @ =gUnk_03000FD0 + ldr r0, _080A65E4 @ =gFadeControl ldrb r0, [r0] cmp r0, #0 bne _080A6600 @@ -2084,7 +2084,7 @@ _080A65DA: strh r0, [r4, #8] b _080A6600 .align 2, 0 -_080A65E4: .4byte gUnk_03000FD0 +_080A65E4: .4byte gFadeControl _080A65E8: .4byte gMenu _080A65EC: ldr r0, _080A6604 @ =gUnk_03000FF0 @@ -2866,7 +2866,7 @@ _080A6C18: .4byte gUnk_08128E94 thumb_func_start sub_080A6C1C sub_080A6C1C: @ 0x080A6C1C push {lr} - ldr r0, _080A6C34 @ =gUnk_03000FD0 + ldr r0, _080A6C34 @ =gFadeControl ldrb r0, [r0] cmp r0, #0 bne _080A6C6A @@ -2878,7 +2878,7 @@ sub_080A6C1C: @ 0x080A6C1C beq _080A6C5C b _080A6C62 .align 2, 0 -_080A6C34: .4byte gUnk_03000FD0 +_080A6C34: .4byte gFadeControl _080A6C38: .4byte gMenu _080A6C3C: bl sub_080A66D0 @@ -2955,7 +2955,7 @@ _080A6CD4: .4byte gMenu thumb_func_start sub_080A6CD8 sub_080A6CD8: @ 0x080A6CD8 push {r4, lr} - ldr r0, _080A6D08 @ =gUnk_03000FD0 + ldr r0, _080A6D08 @ =gFadeControl ldrb r0, [r0] cmp r0, #0 bne _080A6D6E @@ -2978,7 +2978,7 @@ sub_080A6CD8: @ 0x080A6CD8 beq _080A6D38 b _080A6D54 .align 2, 0 -_080A6D08: .4byte gUnk_03000FD0 +_080A6D08: .4byte gFadeControl _080A6D0C: .4byte gMenu _080A6D10: .4byte gUnk_03000FF0 _080A6D14: @@ -3149,7 +3149,7 @@ _080A6E40: .4byte gUnk_02034490 thumb_func_start sub_080A6E44 sub_080A6E44: @ 0x080A6E44 push {lr} - ldr r0, _080A6E64 @ =gUnk_03000FD0 + ldr r0, _080A6E64 @ =gFadeControl ldrb r0, [r0] cmp r0, #0 bne _080A6E60 @@ -3164,7 +3164,7 @@ sub_080A6E44: @ 0x080A6E44 _080A6E60: pop {pc} .align 2, 0 -_080A6E64: .4byte gUnk_03000FD0 +_080A6E64: .4byte gFadeControl _080A6E68: .4byte gMenu _080A6E6C: .4byte gUnk_08128024 @@ -3672,7 +3672,7 @@ _080A724C: .4byte gUnk_0812901C thumb_func_start sub_080A7250 sub_080A7250: @ 0x080A7250 push {r4, lr} - ldr r0, _080A72E8 @ =gUnk_03000FD0 + ldr r0, _080A72E8 @ =gFadeControl ldrb r0, [r0] cmp r0, #0 bne _080A72E4 @@ -3740,7 +3740,7 @@ sub_080A7250: @ 0x080A7250 _080A72E4: pop {r4, pc} .align 2, 0 -_080A72E8: .4byte gUnk_03000FD0 +_080A72E8: .4byte gFadeControl _080A72EC: .4byte gScreen _080A72F0: .4byte gUnk_03001020 _080A72F4: .4byte gPaletteBuffer @@ -3760,7 +3760,7 @@ _080A7324: .4byte gUnk_0200B650 thumb_func_start sub_080A7328 sub_080A7328: @ 0x080A7328 push {r4, lr} - ldr r0, _080A7388 @ =gUnk_03000FD0 + ldr r0, _080A7388 @ =gFadeControl ldrb r0, [r0] cmp r0, #0 bne _080A7384 @@ -3799,7 +3799,7 @@ sub_080A7328: @ 0x080A7328 _080A7384: pop {r4, pc} .align 2, 0 -_080A7388: .4byte gUnk_03000FD0 +_080A7388: .4byte gFadeControl _080A738C: .4byte gMenu _080A7390: .4byte gRoomControls _080A7394: .4byte gUnk_03000420 @@ -3811,7 +3811,7 @@ _080A73A4: .4byte gScreenTransition thumb_func_start sub_080A73A8 sub_080A73A8: @ 0x080A73A8 push {r4, r5, lr} - ldr r0, _080A7468 @ =gUnk_03000FD0 + ldr r0, _080A7468 @ =gFadeControl ldrb r0, [r0] cmp r0, #0 beq _080A73B4 @@ -3893,7 +3893,7 @@ _080A73B4: bl DoFade b _080A74AE .align 2, 0 -_080A7468: .4byte gUnk_03000FD0 +_080A7468: .4byte gFadeControl _080A746C: .4byte gUnk_02017654 _080A7470: .4byte gUnk_02032EC0 _080A7474: .4byte gPlayerState @@ -3930,7 +3930,7 @@ _080A74C4: .4byte gScreenTransition sub_080A74C8: @ 0x080A74C8 push {lr} bl sub_080A74F4 - ldr r0, _080A74E8 @ =gUnk_03000FD0 + ldr r0, _080A74E8 @ =gFadeControl ldrb r3, [r0] cmp r3, #0 bne _080A74E6 @@ -3944,7 +3944,7 @@ sub_080A74C8: @ 0x080A74C8 _080A74E6: pop {pc} .align 2, 0 -_080A74E8: .4byte gUnk_03000FD0 +_080A74E8: .4byte gFadeControl _080A74EC: .4byte gUnk_03001000 _080A74F0: .4byte gUnk_02032EC0 diff --git a/asm/enemy64.s b/asm/enemy64.s index 83499cc1..2c5b8bfd 100644 --- a/asm/enemy64.s +++ b/asm/enemy64.s @@ -1022,7 +1022,7 @@ sub_08049804: @ 0x08049804 push {r4, lr} adds r4, r0, #0 bl sub_08049944 - ldr r0, _0804987C @ =gUnk_03000FD0 + ldr r0, _0804987C @ =gFadeControl ldrb r0, [r0] cmp r0, #0 bne _08049878 @@ -1077,7 +1077,7 @@ sub_08049804: @ 0x08049804 _08049878: pop {r4, pc} .align 2, 0 -_0804987C: .4byte gUnk_03000FD0 +_0804987C: .4byte gFadeControl _08049880: .4byte gPlayerEntity _08049884: .4byte gRoomControls @@ -1085,7 +1085,7 @@ _08049884: .4byte gRoomControls sub_08049888: @ 0x08049888 push {lr} adds r1, r0, #0 - ldr r0, _080498B0 @ =gUnk_03000FD0 + ldr r0, _080498B0 @ =gFadeControl ldrb r0, [r0] cmp r0, #0 bne _080498AE @@ -1102,7 +1102,7 @@ sub_08049888: @ 0x08049888 _080498AE: pop {pc} .align 2, 0 -_080498B0: .4byte gUnk_03000FD0 +_080498B0: .4byte gFadeControl thumb_func_start sub_080498B4 sub_080498B4: @ 0x080498B4 diff --git a/asm/fourElements.s b/asm/fourElements.s index aee5a5f2..2c64461e 100644 --- a/asm/fourElements.s +++ b/asm/fourElements.s @@ -240,7 +240,7 @@ sub_080A0390: @ 0x080A0390 movs r0, #0 movs r1, #0x3c bl sub_0805E4E0 - ldr r0, _080A03B4 @ =gUnk_03000FD0 + ldr r0, _080A03B4 @ =gFadeControl ldrb r0, [r0] cmp r0, #0 bne _080A03B2 @@ -254,7 +254,7 @@ sub_080A0390: @ 0x080A0390 _080A03B2: pop {r4, pc} .align 2, 0 -_080A03B4: .4byte gUnk_03000FD0 +_080A03B4: .4byte gFadeControl thumb_func_start sub_080A03B8 sub_080A03B8: @ 0x080A03B8 diff --git a/asm/gleerok.s b/asm/gleerok.s index d9ff5716..82a2098a 100644 --- a/asm/gleerok.s +++ b/asm/gleerok.s @@ -178,7 +178,7 @@ _0802D16C: .4byte gUnk_02034490 sub_0802D170: @ 0x0802D170 push {r4, r5, r6, lr} adds r5, r0, #0 - ldr r0, _0802D1F0 @ =gUnk_03000FD0 + ldr r0, _0802D1F0 @ =gFadeControl ldrb r3, [r0] cmp r3, #0 bne _0802D216 @@ -237,7 +237,7 @@ sub_0802D170: @ 0x0802D170 bl DoFade b _0802D216 .align 2, 0 -_0802D1F0: .4byte gUnk_03000FD0 +_0802D1F0: .4byte gFadeControl _0802D1F4: .4byte gPlayerEntity _0802D1F8: .4byte gRoomControls _0802D1FC: diff --git a/asm/manager37.s b/asm/manager37.s index 24af0735..106e9932 100644 --- a/asm/manager37.s +++ b/asm/manager37.s @@ -218,7 +218,7 @@ _0805DFCA: thumb_func_start sub_0805DFCC sub_0805DFCC: @ 0x0805DFCC push {lr} - ldr r0, _0805DFE4 @ =gUnk_03000FD0 + ldr r0, _0805DFE4 @ =gFadeControl ldrb r0, [r0] cmp r0, #0 bne _0805DFE0 @@ -228,7 +228,7 @@ sub_0805DFCC: @ 0x0805DFCC _0805DFE0: pop {pc} .align 2, 0 -_0805DFE4: .4byte gUnk_03000FD0 +_0805DFE4: .4byte gFadeControl thumb_func_start sub_0805DFE8 sub_0805DFE8: @ 0x0805DFE8 @@ -302,7 +302,7 @@ _0805E074: .4byte 0x80010000 sub_0805E078: @ 0x0805E078 push {lr} adds r1, r0, #0 - ldr r0, _0805E090 @ =gUnk_03000FD0 + ldr r0, _0805E090 @ =gFadeControl ldrb r0, [r0] cmp r0, #0 bne _0805E08E @@ -313,7 +313,7 @@ sub_0805E078: @ 0x0805E078 _0805E08E: pop {pc} .align 2, 0 -_0805E090: .4byte gUnk_03000FD0 +_0805E090: .4byte gFadeControl thumb_func_start sub_0805E094 sub_0805E094: @ 0x0805E094 diff --git a/asm/manager39.s b/asm/manager39.s index b41cee8c..f5c9a542 100644 --- a/asm/manager39.s +++ b/asm/manager39.s @@ -80,7 +80,7 @@ _0805E188: .4byte gArea sub_0805E18C: @ 0x0805E18C push {r4, lr} adds r4, r0, #0 - ldr r0, _0805E1D0 @ =gUnk_03000FD0 + ldr r0, _0805E1D0 @ =gFadeControl ldrb r0, [r0] cmp r0, #0 bne _0805E1CC @@ -112,7 +112,7 @@ _0805E1BA: _0805E1CC: pop {r4, pc} .align 2, 0 -_0805E1D0: .4byte gUnk_03000FD0 +_0805E1D0: .4byte gFadeControl _0805E1D4: .4byte gPlayerState thumb_func_start sub_0805E1D8 diff --git a/asm/vaatiWrath.s b/asm/vaatiWrath.s index a02a4eb0..0c7960ff 100644 --- a/asm/vaatiWrath.s +++ b/asm/vaatiWrath.s @@ -1399,7 +1399,7 @@ sub_08041E20: @ 0x08041E20 ldr r0, [r4, #0x64] ldr r0, [r0, #8] bl GetNextFrame - ldr r0, _08041E4C @ =gUnk_03000FD0 + ldr r0, _08041E4C @ =gFadeControl ldrb r0, [r0] cmp r0, #0 bne _08041E48 @@ -1410,7 +1410,7 @@ sub_08041E20: @ 0x08041E20 _08041E48: pop {r4, pc} .align 2, 0 -_08041E4C: .4byte gUnk_03000FD0 +_08041E4C: .4byte gFadeControl thumb_func_start sub_08041E50 sub_08041E50: @ 0x08041E50 diff --git a/include/structures.h b/include/structures.h index e44f6f76..8b485074 100644 --- a/include/structures.h +++ b/include/structures.h @@ -107,4 +107,23 @@ typedef struct { extern struct_02019EE0 gUnk_02019EE0; +typedef struct { + u8 active; + u8 field_0x1; + u8 field_0x2; + u8 field_0x3; + u32 field_0x4; + u16 fadeType; // fade in or out, are there others? + u16 fadeSpeed; // subtracted from duration + u16 fadeDuration; + u16 field_0xe; + s16 field_0x10; + s16 field_0x12; + s16 field_0x14; + u16 field_0x16; + u16 field_0x18; +} struct_03000FD0; + +extern struct_03000FD0 gFadeControl; + #endif \ No newline at end of file diff --git a/linker.ld b/linker.ld index e995eee5..e05becff 100644 --- a/linker.ld +++ b/linker.ld @@ -169,7 +169,7 @@ SECTIONS { . = 0x00000F70; gBGAffSettings = .; . = 0x00000F88; gBgControls = .; . = 0x00000FBC; gUnk_03000FBC = .; - . = 0x00000FD0; gUnk_03000FD0 = .; + . = 0x00000FD0; gFadeControl = .; . = 0x00000FF0; gUnk_03000FF0 = .; . = 0x00001000; gUnk_03001000 = .; . = 0x00001010; gUnk_03001010 = .; diff --git a/src/code_0804AA84.c b/src/code_0804AA84.c index f861d4f0..6cdfb99e 100644 --- a/src/code_0804AA84.c +++ b/src/code_0804AA84.c @@ -17,7 +17,6 @@ extern void (*const gUnk_080D412C[])(); extern struct_02018EB0 gUnk_02018EB0; -extern u8 gUnk_03000FD0; u32 sub_0804AA84(void) { @@ -62,12 +61,12 @@ void sub_0804AB04(void) void sub_0804AB24(void) { - if (gUnk_03000FD0 == 0) { + if (!gFadeControl.active) { gScreen.lcd.lcdControl2 = 0; sub_0801E104(); gArea.filler[8] = 0; MenuFadeIn(6, 0); - gUnk_03000FD0 = 0; + gFadeControl.active = 0; } } diff --git a/src/introSetTransition.c b/src/introSetTransition.c index 7ed39ce4..1e33651b 100644 --- a/src/introSetTransition.c +++ b/src/introSetTransition.c @@ -18,16 +18,6 @@ static void (*const gUnk_081320F0[])(void) = { sub_080AD834, }; -typedef struct { - u8 field_0x0; - u8 field_0x1; - u8 field_0x2; - u8 field_0x3; - u32 field_0x4; -} struct_03000FD0; - -extern struct_03000FD0 gUnk_03000FD0; - extern const u16 gUnk_081320FC[]; u32 IntroSetTransition(u32 transition) @@ -51,7 +41,7 @@ void HandleIntroScreen(void) gUnk_081320F0[gUnk_02032EC0.transitionType](); break; case 2: - if (gUnk_03000FD0.field_0x0 != 0) { + if (gFadeControl.active) { return; } sub_0801DA90(1); @@ -153,7 +143,7 @@ static void sub_080AD474(void) DoFade(6, 8); break; case 1: - if (gUnk_03000FD0.field_0x0 != 0) { + if (gFadeControl.active) { return; } if (((struct_02000000*)0x2000000)->gameLanguage == 0) { @@ -228,7 +218,7 @@ void sub_080AD6AC(void) switch (gMenu.overlayType) { case 0: - if (gUnk_03000FD0.field_0x0 == 0) { + if (!gFadeControl.active) { if ((gMenu.field_0x12 & 1) == 0) { gScreen.bg2.bg0Control++; } @@ -237,15 +227,15 @@ void sub_080AD6AC(void) gMenu.overlayType++; gScreen.bg2.bg0Control = 0; gScreen.bg1.unk = 0xc09; - gUnk_03000FD0.field_0x4 = 0x40; + gFadeControl.field_0x4 = 0x40; DoFade(6,0x10); PlaySFX(0xf8); } } break; case 1: - if (gUnk_03000FD0.field_0x0 == 0) { - gUnk_03000FD0.field_0x4 = -1; + if (!gFadeControl.active) { + gFadeControl.field_0x4 = -1; gMenu.overlayType++; gMenu.transitionTimer = 0x5a; pEVar2 = CreateObject(0xb4,0,0); @@ -266,7 +256,7 @@ void sub_080AD6AC(void) void sub_080AD76C(void) { switch (gMenu.overlayType) { case 0: - if (gUnk_03000FD0.field_0x0 == 0) { + if (!gFadeControl.active) { gMenu.overlayType = 1; gScreen.lcd.lcdControl2 |= 0x400; PlaySFX(0xF6); @@ -292,7 +282,7 @@ void sub_080AD76C(void) { } break; default: - if (gUnk_03000FD0.field_0x0 == 0 && sub_080AD84C()) { + if (!gFadeControl.active && sub_080AD84C()) { gMenu.menuType++; gMenu.transitionTimer = 60; } @@ -301,7 +291,7 @@ void sub_080AD76C(void) { } static void sub_080AD834(void) { - if (gUnk_03000FD0.field_0x0 == 0) { + if (!gFadeControl.active) { InitScreen(SCREEN_CHOOSE_FILE); } } @@ -309,7 +299,7 @@ static void sub_080AD834(void) { u32 sub_080AD84C(void) { u32 newKeys; - if (gUnk_03000FD0.field_0x0 != 0) { + if (gFadeControl.active) { return 0; } diff --git a/src/room.c b/src/room.c index a8127253..ea0b8d51 100644 --- a/src/room.c +++ b/src/room.c @@ -2223,7 +2223,6 @@ u32 sub_0804CD44() { extern EntityData gUnk_080DF94C; extern u8 gUnk_02000070; -extern u8 gUnk_03000FD0; extern u32 gUsedPalettes; void sub_0804CD48(void) { @@ -2232,7 +2231,7 @@ void sub_0804CD48(void) { SetLocalFlag(0x48); MenuFadeIn(5, 0); gUnk_02000070 = 0; - gUnk_03000FD0 = 0; + gFadeControl.active = 0; gUsedPalettes = 0; *(u16*)0x5000000 = 0x7fff; sub_0801DA90(1); diff --git a/src/sub_08050008.c b/src/sub_08050008.c index 8e370727..263baef1 100644 --- a/src/sub_08050008.c +++ b/src/sub_08050008.c @@ -1,7 +1,7 @@ #include "global.h" extern u32 gUnk_020354C0; -extern s32 gUnk_03000FD0; +extern s32 gFadeControl; extern void _DmaZero(u32, u32, u32); void sub_08050008(u32 param_1, u32 param_2, u32 param_3) { @@ -9,7 +9,7 @@ void sub_08050008(u32 param_1, u32 param_2, u32 param_3) { _DmaZero((u32)&gUnk_020354C0, 128, param_3); - unk = &gUnk_03000FD0; + unk = &gFadeControl; *(unk + 1) = -1; return; diff --git a/src/sub_08050024.c b/src/sub_08050024.c index 70cd1019..2911de17 100644 --- a/src/sub_08050024.c +++ b/src/sub_08050024.c @@ -2,25 +2,6 @@ #include "functions.h" #include "screen.h" -typedef struct { - u8 field_0x0; - u8 field_0x1; - u8 field_0x2; - u8 field_0x3; - u32 field_0x4; - u16 fadeType; // fade in or out, are there others? - u16 fadeSpeed; // subtracted from duration - u16 fadeDuration; - u16 field_0xe; - s16 field_0x10; - s16 field_0x12; - s16 field_0x14; - u16 field_0x16; - u16 field_0x18; -} struct_03000FD0; - -extern struct_03000FD0 gUnk_03000FD0; - typedef struct { u8 field_0x0; u8 field_0x1; @@ -42,26 +23,26 @@ void sub_08050024() { void sub_08050038(u32 arg0) { - if ((gUnk_03000FD0.fadeType & 1) != 0) { - gUnk_03000FD0.field_0xe = arg0; + if ((gFadeControl.fadeType & 1) != 0) { + gFadeControl.field_0xe = arg0; } else { - gUnk_03000FD0.fadeDuration = arg0; + gFadeControl.fadeDuration = arg0; } } void DoFade(u32 fadeType, u32 fadeSpeed) { - gUnk_03000FD0.fadeSpeed = fadeSpeed; - gUnk_03000FD0.fadeType = fadeType; - gUnk_03000FD0.field_0x0 = 1; - gUnk_03000FD0.fadeDuration = 0x100; - gUnk_03000FD0.field_0xe = 0; - if ((gUnk_03000FD0.fadeType & 2) != 0) { - gUnk_03000FD0.field_0x2 = 0xf8; + gFadeControl.fadeSpeed = fadeSpeed; + gFadeControl.fadeType = fadeType; + gFadeControl.active = 1; + gFadeControl.fadeDuration = 0x100; + gFadeControl.field_0xe = 0; + if ((gFadeControl.fadeType & 2) != 0) { + gFadeControl.field_0x2 = 0xf8; } else { - gUnk_03000FD0.field_0x2 = 0; + gFadeControl.field_0x2 = 0; } if ((fadeType & 8) != 0) { gUnk_03000000.spritesOffset = 1; @@ -70,10 +51,10 @@ void DoFade(u32 fadeType, u32 fadeSpeed) gScreen.affine.unk2 |= 0x40; } if ((fadeType & 0x10) != 0) { - sub_0801E1B8(gUnk_03000FD0.field_0x16, gUnk_03000FD0.field_0x18); - sub_0801E1EC(gUnk_03000FD0.field_0x12, gUnk_03000FD0.field_0x14, gUnk_03000FD0.field_0x10); + sub_0801E1B8(gFadeControl.field_0x16, gFadeControl.field_0x18); + sub_0801E1EC(gFadeControl.field_0x12, gFadeControl.field_0x14, gFadeControl.field_0x10); if ((fadeType & 1) == 0) { - gUnk_03000FD0.fadeType &= 0xfffb; + gFadeControl.fadeType &= 0xfffb; sub_08050008(); gUsedPalettes = 0xffffffff; } @@ -82,23 +63,23 @@ void DoFade(u32 fadeType, u32 fadeSpeed) void sub_080500F4(u32 arg0) { - gUnk_03000FD0.fadeSpeed = arg0; - gUnk_03000FD0.fadeType ^= 1; - gUnk_03000FD0.field_0x0 = 1; - gUnk_03000FD0.fadeDuration = 0x100; + gFadeControl.fadeSpeed = arg0; + gFadeControl.fadeType ^= 1; + gFadeControl.active = 1; + gFadeControl.fadeDuration = 0x100; } void sub_08050110(u32 param_1, u32 param_2, u32 fadeType, u32 fadeSpeed) { if ((fadeType & 1) != 0) { - gUnk_03000FD0.field_0x10 = 0x96; + gFadeControl.field_0x10 = 0x96; } else { - gUnk_03000FD0.field_0x10 = 0; + gFadeControl.field_0x10 = 0; } - gUnk_03000FD0.field_0x12 = param_1; - gUnk_03000FD0.field_0x14 = param_2; - gUnk_03000FD0.field_0x16 = 0x3f3f; - gUnk_03000FD0.field_0x18 = 0; + gFadeControl.field_0x12 = param_1; + gFadeControl.field_0x14 = param_2; + gFadeControl.field_0x16 = 0x3f3f; + gFadeControl.field_0x18 = 0; DoFade(fadeType, fadeSpeed); } \ No newline at end of file From 693224e16639517d1d7680688b559877e73cf0a8 Mon Sep 17 00:00:00 2001 From: theo3 Date: Fri, 14 Aug 2020 21:56:34 -0700 Subject: [PATCH 118/158] CreateItemDrop WIP --- src/code_0805436C.c | 86 +++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 86 insertions(+) diff --git a/src/code_0805436C.c b/src/code_0805436C.c index 8ada4bd5..47f8f4d2 100644 --- a/src/code_0805436C.c +++ b/src/code_0805436C.c @@ -182,6 +182,92 @@ u32 sub_0805457C(u32 arg0, u32 arg1) { asm(".include \"asm/non_matching/code_0805457C.inc\""); } +/* +extern u8 gUnk_080FE1DD[]; + +u32 CreateItemDrop(Entity* arg0, u32 itemID, u32 itemParameter) { + u32 prereqID; + u32 adjustedParam; + u32 uVar1; + Entity* itemEntity; + + adjustedParam = (u8)itemParameter; + switch (adjustedParam) { + case 0x3f: + if (!GetInventoryValue(0x40)) { + return 0; + } + if (itemParameter == 0) { + adjustedParam = 1; + } + case 0x5d: + if (!GetInventoryValue(0x65)) { + return 0; + } + break; + case 0x5e: + if (!GetInventoryValue(0x9)) { + return 0; + } + break; + case 0x5c: + case 0xfc ... 0xfe: + if (GetInventoryValue(0x67) == 0) { + return 0; + } + if (3 < gRoomVars.filler[5]) { + return 0; + } + + if (itemID != 0x5c) { + adjustedParam = gUnk_080FE1DD[(Random() & 0x3f) + (itemID - 0xfc) * 0x40]; + if (adjustedParam == 0) { + itemID = 0; + } + else { + itemID = 0x5c; + } + } + break; + case 0xff: + if (!GetInventoryValue(0x1)) { + return 0; + } + } + if (itemID != 0) { + if (itemID == 0xff) { + itemEntity = CreateEnemy(7, 0); + if (itemEntity != NULL) { + itemEntity->x.HALF.HI = arg0->x.HALF.HI; + itemEntity->y.HALF.HI = arg0->y.HALF.HI; + itemEntity->collisionLayer = arg0->collisionLayer; + UpdateSpriteOrderAndFlip(itemEntity); + } + } else { + itemEntity = CreateObject(0, itemID, adjustedParam); + if (itemEntity != NULL) { + if (arg0 == &gPlayerEntity) { + itemEntity->actionDelay = 1; + } else { + itemEntity->actionDelay = 0; + } + if ((arg0->entityType).type == 6) { + if (arg0->entityType.subtype == 99) { + arg0->attachedEntity = itemEntity; + } else if (arg0->entityType.subtype == 0x1e) { + itemEntity->direction = arg0->animationState << 3 | 0x80; + itemEntity->nonPlanarMovement = 0xc0; + itemEntity->field_0x20 = 0x18000; + } + } + CopyPosition(arg0, itemEntity); + } + } + } + return itemID; +} +*/ + void sub_08054870(void) { gUnk_080FE2A0[gMenu.menuType](); From bb76c4d0debf8cf0e001024f6ce7c092834acbf6 Mon Sep 17 00:00:00 2001 From: Marcus Huderle Date: Sat, 15 Aug 2020 11:03:41 -0500 Subject: [PATCH 119/158] Document intro sequence code --- data/data_081320FC.s | 3 - include/functions.h | 5 - include/menu.h | 1 + include/structures.h | 2 +- linker.ld | 1 + src/introSetTransition.c | 272 ++++++++++++++++++++++----------------- src/mainLoop.c | 2 +- 7 files changed, 157 insertions(+), 129 deletions(-) diff --git a/data/data_081320FC.s b/data/data_081320FC.s index 50a7f2c6..7e1a2fc3 100755 --- a/data/data_081320FC.s +++ b/data/data_081320FC.s @@ -4,9 +4,6 @@ .section .rodata .align 2 -gUnk_081320FC:: @ 081320FC - .incbin "baserom.gba", 0x1320FC, 0x0000010 - gUnk_0813210C:: @ 0813210C .incbin "baserom.gba", 0x13210C, 0x0000113 diff --git a/include/functions.h b/include/functions.h index 34b0cf53..936aa96b 100644 --- a/include/functions.h +++ b/include/functions.h @@ -167,15 +167,10 @@ extern void sub_080AF2E4(void); extern void sub_0805ADD8(u32); extern void sub_0804F578(void); extern void sub_08059994(void); -extern u32 sub_080AD84C(); extern void LoadGfxGroup(u32); extern s32 sub_0801CFA8(u32); extern void sub_080A3210(); -extern void sub_080AD6AC(); -extern void sub_080AD76C(void); -extern void sub_080AD644(); extern void sub_080ADA14(u32, u32); -extern void sub_080AD89C(); extern void sub_0801E1B8(u32, u32); extern void sub_0801E1EC(s32, s32, s32); extern void sub_08050008(void); diff --git a/include/menu.h b/include/menu.h index e174d117..427a9de2 100644 --- a/include/menu.h +++ b/include/menu.h @@ -40,4 +40,5 @@ typedef struct { } Menu; extern Menu gMenu; + #endif \ No newline at end of file diff --git a/include/structures.h b/include/structures.h index 8b485074..16cc72a8 100644 --- a/include/structures.h +++ b/include/structures.h @@ -28,7 +28,7 @@ typedef struct { typedef struct { u8 filler0[0x4]; u8 field_0x4; - u8 field_0x5; + u8 listenForKeyPresses; } struct_02000010; extern struct_02000010 gUnk_02000010; diff --git a/linker.ld b/linker.ld index e05becff..909af6fb 100644 --- a/linker.ld +++ b/linker.ld @@ -17,6 +17,7 @@ SECTIONS { . = 0x0000005C; gUnk_0200005C = .; . = 0x00000070; gUnk_02000070 = .; . = 0x00000080; gMenu = .; + . = 0x00000080; gIntroState = .; . = 0x00000090; gUnk_02000090 = .; . = 0x000000B0; gUnk_020000B0 = .; . = 0x000000C0; gUnk_020000C0 = .; diff --git a/src/introSetTransition.c b/src/introSetTransition.c index 1e33651b..04cbf991 100644 --- a/src/introSetTransition.c +++ b/src/introSetTransition.c @@ -7,24 +7,61 @@ #include "screen.h" #include "structures.h" -static void sub_080AD3F4(void); -static void sub_080AD474(void); -static void sub_080AD670(void); -static void sub_080AD834(void); +typedef struct { + u8 filler0[0x4]; + u8 gameLanguage; + u8 state; + u8 subState; + u8 filler7[0x1]; + u16 timer; + u8 fillerA[0x6]; + u8 lightRaysPaletteGroup; + u8 lightRaysAlphaBlendIndex; + u8 counter; + u8 filler13[0x19]; + int swordBgScaleRatio; +} IntroState; -static void (*const gUnk_081320F0[])(void) = { - sub_080AD3F4, - sub_080AD474, - sub_080AD834, +extern IntroState gIntroState; + +enum { + ADVANCE_NONE, + ADVANCE_TIMER_EXPIRED, + ADVANCE_KEY_PRESSED, }; -extern const u16 gUnk_081320FC[]; +static void HandleNintendoCapcomLogos(void); +static void HandleTitlescreen(void); +static void UpdateSwordBgAffineData(void); +static void ExitTitlescreen(void); +static void HandleJapaneseTitlescreenAnimationIntro(void); +static void HandleTitlescreenAnimationIntro(void); +static u32 GetAdvanceState(void); +static void UpdateLightRays(void); +static void UpdatePressStartIcon(void); -u32 IntroSetTransition(u32 transition) +static void (*const sIntroSequenceHandlers[])(void) = { + HandleNintendoCapcomLogos, + HandleTitlescreen, + ExitTitlescreen, +}; + +static const u16 sLightRaysAlphaBlends[] = { + BLDALPHA_BLEND(9, 9), + BLDALPHA_BLEND(8, 10), + BLDALPHA_BLEND(7, 11), + BLDALPHA_BLEND(6, 12), + BLDALPHA_BLEND(5, 13), + BLDALPHA_BLEND(6, 12), + BLDALPHA_BLEND(7, 11), + BLDALPHA_BLEND(8, 10), +}; + +static u32 IntroSetTransition(u32 transition) { gUnk_02032EC0.transitionType = transition; gUnk_03001000.funcIndex = 2; - _DmaZero(&gMenu, sizeof(gMenu)); + _DmaZero(&gIntroState, sizeof(gIntroState)); DoFade(7, 8); } @@ -38,7 +75,7 @@ void HandleIntroScreen(void) IntroSetTransition(0); break; case 1: - gUnk_081320F0[gUnk_02032EC0.transitionType](); + sIntroSequenceHandlers[gUnk_02032EC0.transitionType](); break; case 2: if (gFadeControl.active) { @@ -51,61 +88,57 @@ void HandleIntroScreen(void) sub_080AD918(); } -static void sub_080AD3F4(void) +static void HandleNintendoCapcomLogos(void) { - u32 iVar1; - u32 paletteGroup; + u32 advance; + u32 paletteGroup; - iVar1 = sub_080AD84C(); - if (gMenu.menuType == 0) { - sub_0801DA90(1); - gMenu.menuType = 1; - gMenu.transitionTimer = 120; - LoadGfxGroup(16); - LoadGfxGroup(1); - if (((struct_02000000 *)0x2000000)->gameLanguage == 0) { - paletteGroup = 1; + advance = GetAdvanceState(); + if (gIntroState.state == 0) { + sub_0801DA90(1); + gIntroState.state = 1; + gIntroState.timer = 120; + LoadGfxGroup(16); + LoadGfxGroup(1); + if (((struct_02000000 *)0x2000000)->gameLanguage == 0) { + paletteGroup = 1; + } + else { + paletteGroup = 2; + } + LoadPaletteGroup(paletteGroup); + gScreen.lcd.lcdControl2 |= 0x400; + gScreen.bg2.bg0xOffset = 1; + DoFade(6, 8); + advance = ADVANCE_NONE; + } else { + if (advance == ADVANCE_TIMER_EXPIRED) { + advance = ADVANCE_KEY_PRESSED; + } } - else { - paletteGroup = 2; - } - LoadPaletteGroup(paletteGroup); - gScreen.lcd.lcdControl2 |= 0x400; - gScreen.bg2.bg0xOffset = 1; - DoFade(6, 8); - iVar1 = 0; - } - else { - if (iVar1 == 1) { - iVar1 = 2; - } - } - if (iVar1 == 2) { - gUnk_02000010.field_0x5 = 1; - IntroSetTransition(1); - } -} -// typedef struct { -// u16 field_0x0[5]; -// } struct_03001010; + if (advance == ADVANCE_KEY_PRESSED) { + gUnk_02000010.listenForKeyPresses = 1; + IntroSetTransition(1); + } +} extern u16 gUnk_03001010[5]; extern u8 gUnk_02024490; -static void sub_080AD474(void) +static void HandleTitlescreen(void) { - int iVar2; + int advance; u32 paletteGroup; - gMenu.field_0x12++; - switch (gMenu.menuType) { + gIntroState.counter++; + switch (gIntroState.state) { case 0: - gMenu.menuType = 1; - gMenu.overlayType = 0; - gMenu.transitionTimer = 0x1e; - gMenu.field_0x4 = 7; + gIntroState.state = 1; + gIntroState.subState = 0; + gIntroState.timer = 30; + gIntroState.gameLanguage = 7; EraseAllEntities(); sub_0801CFA8(0); sub_080ADD30(); @@ -135,8 +168,8 @@ static void sub_080AD474(void) gScreen.bg2.unk = 0x7C89; gScreen.lcd.lcdControl2 |= 1; gScreen.lcd.lcdControl2 |= 0x1300; - gMenu.field_0x2c = 0x10; - sub_080AD670(); + gIntroState.swordBgScaleRatio = 0x10; + UpdateSwordBgAffineData(); } sub_080A3210(); PlaySFX(3); //fanfare @@ -147,60 +180,58 @@ static void sub_080AD474(void) return; } if (((struct_02000000*)0x2000000)->gameLanguage == 0) { - sub_080AD6AC(); + HandleJapaneseTitlescreenAnimationIntro(); } else { - sub_080AD76C(); + HandleTitlescreenAnimationIntro(); } break; case 2: - gMenu.transitionTimer--; - if (gMenu.transitionTimer == 0) { - gMenu.transitionTimer = 0xe10; - gMenu.menuType++; + if (--gIntroState.timer == 0) { + gIntroState.timer = 3600; + gIntroState.state++; } - sub_080AD644(); + UpdatePressStartIcon(); break; default: - iVar2 = sub_080AD84C(); - if (iVar2 != 0) { - if (iVar2 == 2) { + advance = GetAdvanceState(); + if (advance != ADVANCE_NONE) { + if (advance == ADVANCE_KEY_PRESSED) { PlaySFX(0x6a); } else { - iVar2 = 0; + advance = ADVANCE_NONE; } - IntroSetTransition(iVar2); + IntroSetTransition(advance); PlaySFX(0x80080000); } - sub_080AD644(); - if ((gMenu.transitionTimer & 0x20) == 0) { + UpdatePressStartIcon(); + if ((gIntroState.timer & 0x20) == 0) { gUnk_03001010[4] = 0xe000; gUnk_03001010[1] = 0x84; sub_080ADA14(0x1ff,0); } } - if (gMenu.field_0x4 != ((struct_02000000*)0x2000000)->gameLanguage) { - gMenu.field_0x4 = ((struct_02000000*)0x2000000)->gameLanguage; + if (gIntroState.gameLanguage != ((struct_02000000*)0x2000000)->gameLanguage) { + gIntroState.gameLanguage = ((struct_02000000*)0x2000000)->gameLanguage; LoadGfxGroup(3); } - sub_080AD89C(); + UpdateLightRays(); sub_0805E5C0(); sub_080AD9B0(); } -void sub_080AD644(void) { - +static void UpdatePressStartIcon(void) { gUnk_03001010[2] = 0; gUnk_03001010[3] = 0; - gUnk_03001010[4] = 57376; + gUnk_03001010[4] = 0xE020; gUnk_03001010[0] = 120; gUnk_03001010[1] = 152; sub_080ADA14(511, 1); return; } -static void sub_080AD670(void) +static void UpdateSwordBgAffineData(void) { struct BgAffineSrcData aff; aff.texY = 0x8000; @@ -208,27 +239,27 @@ static void sub_080AD670(void) aff.scrX = 0x78; aff.scrY = 0x48; aff.alpha = 0; - aff.sy = aff.sx = gMenu.field_0x2c; + aff.sy = aff.sx = gIntroState.swordBgScaleRatio; BgAffineSet(&aff, (struct BgAffineDstData*)&gBgControls, 1); } -void sub_080AD6AC(void) +static void HandleJapaneseTitlescreenAnimationIntro(void) { Entity *pEVar2; - switch (gMenu.overlayType) { + switch (gIntroState.subState) { case 0: if (!gFadeControl.active) { - if ((gMenu.field_0x12 & 1) == 0) { + if ((gIntroState.counter & 1) == 0) { gScreen.bg2.bg0Control++; } - if ((sub_080AD84C() == 2) || (gScreen.bg2.bg0Control == 0)) { - gMenu.overlayType++; + if (GetAdvanceState() == ADVANCE_KEY_PRESSED || gScreen.bg2.bg0Control == 0) { + gIntroState.subState++; gScreen.bg2.bg0Control = 0; gScreen.bg1.unk = 0xc09; gFadeControl.field_0x4 = 0x40; - DoFade(6,0x10); + DoFade(6, 0x10); PlaySFX(0xf8); } } @@ -236,8 +267,8 @@ void sub_080AD6AC(void) case 1: if (!gFadeControl.active) { gFadeControl.field_0x4 = -1; - gMenu.overlayType++; - gMenu.transitionTimer = 0x5a; + gIntroState.subState++; + gIntroState.timer = 90; pEVar2 = CreateObject(0xb4,0,0); if (pEVar2 != NULL) { pEVar2->x.HALF.HI = 0; @@ -246,88 +277,91 @@ void sub_080AD6AC(void) } break; case 2: - if (sub_080AD84C()) { - gMenu.menuType++; - gMenu.transitionTimer = 0x3c; + if (GetAdvanceState() != ADVANCE_NONE) { + gIntroState.state++; + gIntroState.timer = 60; } } } -void sub_080AD76C(void) { - switch (gMenu.overlayType) { +static void HandleTitlescreenAnimationIntro(void) { + switch (gIntroState.subState) { case 0: if (!gFadeControl.active) { - gMenu.overlayType = 1; + gIntroState.subState = 1; gScreen.lcd.lcdControl2 |= 0x400; PlaySFX(0xF6); } break; case 1: - gMenu.field_0x2c += 16; - if (gMenu.field_0x2c > 256) { - gMenu.field_0x2c = 256; - gMenu.transitionTimer = 40; - gMenu.overlayType++; + gIntroState.swordBgScaleRatio += 0x10; + if (gIntroState.swordBgScaleRatio > 0x100) { + gIntroState.swordBgScaleRatio = 0x100; + gIntroState.timer = 40; + gIntroState.subState++; DoFade(6, 16); } - sub_080AD670(); + UpdateSwordBgAffineData(); break; case 2: - if (--gMenu.transitionTimer == 0) { - gMenu.transitionTimer = 300; - gMenu.overlayType++; + if (--gIntroState.timer == 0) { + gIntroState.timer = 300; + gIntroState.subState++; CreateObject(0xBD, 0, 0); DoFade(6, 16); PlaySFX(0xF8); } break; default: - if (!gFadeControl.active && sub_080AD84C()) { - gMenu.menuType++; - gMenu.transitionTimer = 60; + if (!gFadeControl.active && GetAdvanceState() != ADVANCE_NONE) { + gIntroState.state++; + gIntroState.timer = 60; } break; } } -static void sub_080AD834(void) { +static void ExitTitlescreen(void) { if (!gFadeControl.active) { InitScreen(SCREEN_CHOOSE_FILE); } } -u32 sub_080AD84C(void) { +static u32 GetAdvanceState(void) { u32 newKeys; if (gFadeControl.active) { - return 0; + return ADVANCE_NONE; } - if (gUnk_02000010.field_0x5 == 0) { + if (!gUnk_02000010.listenForKeyPresses) { newKeys = 0; } else { newKeys = gUnk_03000FF0.newKeys & (A_BUTTON | START_BUTTON); } - if (--gMenu.transitionTimer == 0) { - return 1; + if (--gIntroState.timer == 0) { + return ADVANCE_TIMER_EXPIRED; } if (newKeys) { - return 2; + return ADVANCE_KEY_PRESSED; } - return 0; + return ADVANCE_NONE; } -void sub_080AD89C(void) { - if ((gMenu.field_0x12 & 0x7) == 0) { - gMenu.unk10[0] = (gMenu.unk10[0] + 1) & 0x3; - LoadPaletteGroup(gMenu.unk10[0] + 5); +static void UpdateLightRays(void) { + // Periodically rotate the palette to give a shimmeriming effect. + if ((gIntroState.counter & 0x7) == 0) { + gIntroState.lightRaysPaletteGroup++; + gIntroState.lightRaysPaletteGroup &= 0x3; + LoadPaletteGroup(5 + gIntroState.lightRaysPaletteGroup); } - if ((gMenu.field_0x12 & 0x1F) == 0) { - gMenu.unk10[1] = (gMenu.unk10[1] + 1) & 0x7; - gScreen.controls.mosaicSize = gUnk_081320FC[gMenu.unk10[1]]; + // Periodiccally update the transparency of the light rays. + if ((gIntroState.counter & 0x1F) == 0) { + gIntroState.lightRaysAlphaBlendIndex = (gIntroState.lightRaysAlphaBlendIndex + 1) & 0x7; + gScreen.controls.mosaicSize = sLightRaysAlphaBlends[gIntroState.lightRaysAlphaBlendIndex]; } } diff --git a/src/mainLoop.c b/src/mainLoop.c index 726fa5fd..a09d1c97 100644 --- a/src/mainLoop.c +++ b/src/mainLoop.c @@ -39,7 +39,7 @@ void MainLoop(void) { sub_08056418(); sub_080ADD30(); gRand = 0x1234567; - _DmaZero(&gUnk_03001000, 16); + _DmaZero(&gUnk_03001000, sizeof(gUnk_03001000)); InitScreen(SCREEN_INTRO); while (1) { ReadKeyInput(); From c32fcaca51729c416451bd2df4318ab9649f3f03 Mon Sep 17 00:00:00 2001 From: theo3 Date: Sat, 15 Aug 2020 11:18:00 -0700 Subject: [PATCH 120/158] lilypadSmall.c OK --- asm/lilypadSmall.s | 145 -------------------------------------- include/functions.h | 5 ++ include/player.h | 4 +- linker.ld | 2 +- src/object/lilypadSmall.c | 68 ++++++++++++++++++ src/sub_08070680.c | 4 +- 6 files changed, 79 insertions(+), 149 deletions(-) delete mode 100644 asm/lilypadSmall.s create mode 100644 src/object/lilypadSmall.c diff --git a/asm/lilypadSmall.s b/asm/lilypadSmall.s deleted file mode 100644 index 166e2b09..00000000 --- a/asm/lilypadSmall.s +++ /dev/null @@ -1,145 +0,0 @@ - .include "asm/macros.inc" - - .include "constants/constants.inc" - - .syntax unified - - .text - - - thumb_func_start LilypadSmall -LilypadSmall: @ 0x08097A5C - push {r4, r5, lr} - adds r5, r0, #0 - ldrb r0, [r5, #0xc] - cmp r0, #0 - bne _08097AAC - movs r4, #1 - movs r0, #1 - strb r0, [r5, #0xc] - movs r0, #0x5a - strb r0, [r5, #0xe] - bl Random - strb r0, [r5, #0xf] - lsrs r0, r0, #0x10 - movs r1, #3 - ands r0, r1 - strb r0, [r5, #0x1e] - ldrb r1, [r5, #0x18] - movs r0, #4 - rsbs r0, r0, #0 - ands r0, r1 - orrs r0, r4 - strb r0, [r5, #0x18] - adds r2, r5, #0 - adds r2, #0x29 - ldrb r0, [r2] - movs r1, #7 - orrs r0, r1 - strb r0, [r2] - ldrb r0, [r5, #0xb] - bl GetCurrentRoomProperty - str r0, [r5, #0x54] - adds r1, r5, #0 - adds r1, #0x54 - adds r2, r5, #0 - adds r2, #0x70 - adds r0, r5, #0 - bl sub_080A2CC0 -_08097AAC: - adds r0, r5, #0 - bl sub_08097ADC - adds r1, r0, #0 - adds r0, r5, #0 - bl sub_080A2BE4 - adds r0, r5, #0 - bl sub_08097B24 - adds r2, r5, #0 - adds r2, #0x70 - ldrh r0, [r2] - subs r0, #1 - strh r0, [r2] - lsls r0, r0, #0x10 - cmp r0, #0 - bne _08097ADA - adds r1, r5, #0 - adds r1, #0x54 - adds r0, r5, #0 - bl sub_080A2CC0 -_08097ADA: - pop {r4, r5, pc} - - thumb_func_start sub_08097ADC -sub_08097ADC: @ 0x08097ADC - push {r4, r5, lr} - adds r2, r0, #0 - ldr r5, _08097B18 @ =gPlayerState - ldr r0, [r5, #0x30] - movs r1, #0x80 - ands r0, r1 - cmp r0, #0 - beq _08097B20 - ldr r4, _08097B1C @ =gPlayerEntity - adds r0, r2, #0 - adds r1, r4, #0 - movs r2, #8 - movs r3, #8 - bl sub_080041A0 - cmp r0, #0 - beq _08097B20 - bl sub_08079F8C - cmp r0, #0 - beq _08097B20 - movs r0, #1 - strb r0, [r5, #0x14] - movs r1, #0x36 - ldrsh r0, [r4, r1] - cmp r0, #0 - bne _08097B20 - movs r0, #1 - b _08097B22 - .align 2, 0 -_08097B18: .4byte gPlayerState -_08097B1C: .4byte gPlayerEntity -_08097B20: - movs r0, #0 -_08097B22: - pop {r4, r5, pc} - - thumb_func_start sub_08097B24 -sub_08097B24: @ 0x08097B24 - push {r4, lr} - adds r3, r0, #0 - ldrb r0, [r3, #0xe] - subs r0, #1 - strb r0, [r3, #0xe] - movs r4, #0xff - lsls r0, r0, #0x18 - cmp r0, #0 - bne _08097B44 - movs r0, #0x5a - strb r0, [r3, #0xe] - ldrb r0, [r3, #0x1e] - adds r0, #1 - movs r1, #3 - ands r0, r1 - strb r0, [r3, #0x1e] -_08097B44: - ldr r2, _08097B68 @ =gUnk_08123318 - ldrb r0, [r3, #0xf] - adds r0, #1 - strb r0, [r3, #0xf] - ands r0, r4 - lsrs r0, r0, #5 - movs r1, #7 - ands r0, r1 - lsls r0, r0, #1 - adds r0, r0, r2 - ldrh r2, [r0] - adds r0, r3, #0 - adds r1, r2, #0 - movs r3, #0 - bl sub_0805EC9C - pop {r4, pc} - .align 2, 0 -_08097B68: .4byte gUnk_08123318 diff --git a/include/functions.h b/include/functions.h index 57ffde62..b30661d2 100644 --- a/include/functions.h +++ b/include/functions.h @@ -7,6 +7,7 @@ #include "position.h" #include "player.h" #include "structures.h" +#include "room.h" // Identified - to be sorted into header files extern u32 Random(void); @@ -243,4 +244,8 @@ extern void sub_0807921C(); extern void sub_0807A1B8(); extern void sub_08079938(); extern void sub_0807ACCC(Entity*); +extern void sub_080A2BE4(Entity*, u32); +extern u32 sub_08097ADC(Entity*); +extern void sub_08097B24(Entity*); +extern u32 sub_08079F8C(void); #endif \ No newline at end of file diff --git a/include/player.h b/include/player.h index 75c0b6c7..1abc8491 100644 --- a/include/player.h +++ b/include/player.h @@ -20,7 +20,9 @@ typedef struct { /*0x0d*/ u8 field_0xd[2]; /*0x0f*/ u8 hurtBlinkSpeed; /*0x10*/ u8 field_0x10[4]; - /*0x14*/ u16 field_0x14[3]; + /*0x11*/ u8 field_0x14; + /*0x11*/ u8 field_0x15; + /*0x14*/ u16 field_0x16[2]; /*0x1a*/ u8 field_0x1a[2]; /*0x1c*/ u8 field_0x1c; /*0x1d*/ u8 field_0x1d[5]; diff --git a/linker.ld b/linker.ld index 545c8cbc..f23f2078 100644 --- a/linker.ld +++ b/linker.ld @@ -790,7 +790,7 @@ SECTIONS { asm/object70.o(.text); asm/pushableGrave.o(.text); asm/object72.o(.text); - asm/lilypadSmall.o(.text); + src/object/lilypadSmall.o(.text); asm/object74.o(.text); src/object/bell.o(.text); asm/macroDecorations.o(.text); diff --git a/src/object/lilypadSmall.c b/src/object/lilypadSmall.c new file mode 100644 index 00000000..b6df8e8f --- /dev/null +++ b/src/object/lilypadSmall.c @@ -0,0 +1,68 @@ +#include "global.h" +#include "entity.h" +#include "functions.h" +#include "player.h" + +extern Entity* GetCurrentRoomProperty(u32); +extern void sub_080A2CC0(Entity*, Entity**, u16*); + +extern u16 gUnk_08123318[]; + +void LilypadSmall(Entity *this) +{ + u32 rand; + u16 *psVar4; + + if (this->action == 0) { + this->action = 1; + this->actionDelay = 0x5a; + rand = Random(); + this->field_0xf = rand; + this->frameIndex = (rand >> 0x10) & 3; + this->spriteSettings.b.draw = TRUE; + this->spritePriority.b0 = 7; + this->attachedEntity = GetCurrentRoomProperty(this->entityType.parameter); + sub_080A2CC0(this, &this->attachedEntity, &this->field_0x70.HALF.LO); + } + sub_080A2BE4(this, sub_08097ADC(this)); + sub_08097B24(this); + psVar4 = (u16 *)&this->field_0x70; + if (--*psVar4 == 0) { + sub_080A2CC0(this, &this->attachedEntity, psVar4); + } +} + +u32 sub_08097ADC(Entity *this) +{ + if ((gPlayerState.flags.all & 0x80) == 0) { + return 0; + } else if (sub_080041A0(this,&gPlayerEntity,8,8) == 0) { + return 0; + } else if (sub_08079F8C() == 0) { + return 0; + } else { + gPlayerState.field_0x14 = 1; + if (gPlayerEntity.height.HALF.HI != 0) { + return 0; + } else { + return 1; + } + } +} + +void sub_08097B24(Entity *this) +{ + u32 temp; + u32 temp2; + u16 *temp3; + + if (--this->actionDelay == 0) { + this->actionDelay = 0x5a; + this->frameIndex = (this->frameIndex + 1) & 3; + } + temp3 = gUnk_08123318; + temp2 = ++this->field_0xf; + + temp = temp3[(temp2 >> 5) & 7]; + sub_0805EC9C(this, temp, temp, 0); +} \ No newline at end of file diff --git a/src/sub_08070680.c b/src/sub_08070680.c index 642167df..f99b745e 100644 --- a/src/sub_08070680.c +++ b/src/sub_08070680.c @@ -20,8 +20,8 @@ void sub_08070698(Entity *this) Entity *ent; gPlayerState.field_0x0[0] = 0xff; - gPlayerState.field_0x14[1] = gPlayerEntity.x.HALF.HI; - gPlayerState.field_0x14[2] = gPlayerEntity.y.HALF.HI; + gPlayerState.field_0x16[0] = gPlayerEntity.x.HALF.HI; + gPlayerState.field_0x16[1] = gPlayerEntity.y.HALF.HI; this->flags = this->flags | 0x80; this->spritePriority.b0 = 0xc; this->spritePriority.b1 = 1; From 5ffec8a61173143c43ee39d0b8a4d334fd92171d Mon Sep 17 00:00:00 2001 From: theo3 Date: Sat, 15 Aug 2020 12:23:03 -0700 Subject: [PATCH 121/158] object7E.c OK --- asm/object56.s | 36 -------------------- asm/object7E.s | 77 ------------------------------------------- linker.ld | 2 +- src/object/object7E.c | 26 +++++++++++++++ 4 files changed, 27 insertions(+), 114 deletions(-) delete mode 100644 asm/object56.s delete mode 100644 asm/object7E.s create mode 100644 src/object/object7E.c diff --git a/asm/object56.s b/asm/object56.s deleted file mode 100644 index 08145dcd..00000000 --- a/asm/object56.s +++ /dev/null @@ -1,36 +0,0 @@ - .include "asm/macros.inc" - - .include "constants/constants.inc" - - .syntax unified - - .text - - thumb_func_start sub_08091EC0 -sub_08091EC0: @ 0x08091EC0 - push {r4, lr} - adds r4, r0, #0 - ldr r1, [r4, #0x50] - cmp r1, #0 - beq _08091ED6 - ldrh r0, [r1, #0x2e] - strh r0, [r4, #0x2e] - ldrh r0, [r1, #0x32] - strh r0, [r4, #0x32] - ldrh r0, [r1, #0x36] - strh r0, [r4, #0x36] -_08091ED6: - ldrb r0, [r4, #0xb] - cmp r0, #2 - beq _08091EEC - ldrb r0, [r4, #0xe] - subs r0, #1 - strb r0, [r4, #0xe] - lsls r0, r0, #0x18 - cmp r0, #0 - bne _08091EEC - bl DeleteThisEntity -_08091EEC: - adds r0, r4, #0 - bl GetNextFrame - pop {r4, pc} diff --git a/asm/object7E.s b/asm/object7E.s deleted file mode 100644 index caeb43d5..00000000 --- a/asm/object7E.s +++ /dev/null @@ -1,77 +0,0 @@ - .include "asm/macros.inc" - - .include "constants/constants.inc" - - .syntax unified - - .text - - - thumb_func_start Object7E -Object7E: @ 0x080989F8 - push {r4, lr} - adds r4, r0, #0 - ldr r0, [r4, #0x50] - ldr r0, [r0, #4] - cmp r0, #0 - bne _08098A08 - bl DeleteThisEntity -_08098A08: - ldrb r0, [r4, #0xc] - cmp r0, #0 - bne _08098A44 - movs r0, #1 - strb r0, [r4, #0xc] - adds r2, r4, #0 - adds r2, #0x29 - ldrb r0, [r2] - movs r1, #7 - orrs r0, r1 - strb r0, [r2] - movs r0, #0x28 - strb r0, [r4, #0x1e] - ldrb r0, [r4, #0xa] - cmp r0, #0 - bne _08098A38 - ldrb r0, [r4, #0x18] - movs r1, #4 - rsbs r1, r1, #0 - ands r1, r0 - movs r0, #1 - orrs r1, r0 - strb r1, [r4, #0x18] - b _08098A44 -_08098A38: - cmp r0, #2 - bne _08098A44 - ldrb r0, [r4, #0x18] - movs r1, #0x40 - orrs r0, r1 - strb r0, [r4, #0x18] -_08098A44: - ldr r0, [r4, #0x50] - movs r3, #0x80 - lsls r3, r3, #0xc - adds r1, r4, #0 - movs r2, #0 - bl PositionRelative - movs r0, #0 - strh r0, [r4, #0x36] - ldrb r0, [r4, #0xa] - cmp r0, #0 - beq _08098A76 - ldr r3, [r4, #0x54] - ldrb r1, [r3, #0x18] - lsls r1, r1, #0x1e - lsrs r1, r1, #0x1e - ldrb r2, [r4, #0x18] - movs r0, #4 - rsbs r0, r0, #0 - ands r0, r2 - orrs r0, r1 - strb r0, [r4, #0x18] - ldrb r0, [r3, #0x1e] - adds r0, #0x1f - strb r0, [r4, #0x1e] -_08098A76: - pop {r4, pc} diff --git a/linker.ld b/linker.ld index f23f2078..c4c76599 100644 --- a/linker.ld +++ b/linker.ld @@ -799,7 +799,7 @@ SECTIONS { asm/pushableLever.o(.text); asm/macroShoes.o(.text); asm/objectOnSpinyBeetle.o(.text); - asm/object7E.o(.text); + src/object/object7E.o(.text); asm/picoBloom.o(.text); asm/object80.o(.text); asm/object81.o(.text); diff --git a/src/object/object7E.c b/src/object/object7E.c new file mode 100644 index 00000000..744a1b3d --- /dev/null +++ b/src/object/object7E.c @@ -0,0 +1,26 @@ +#include "global.h" +#include "entity.h" +#include "functions.h" + +void Object7E(Entity *this) { + + if (this->parent->field_0x4 == NULL) { + DeleteThisEntity(); + } + if (this->action == 0) { + this->action = 1; + this->spritePriority.b0 = 7; + this->frameIndex = 0x28; + if (this->entityType.form == 0) { + this->spriteSettings.b.draw = TRUE; + } else if (this->entityType.form == 2) { + this->spriteSettings.b.flipX = TRUE; + } + } + PositionRelative(this->parent, this, 0, 0x80000); + this->height.HALF.HI = 0; + if ((this->entityType).form != 0) { + this->spriteSettings.b.draw = this->attachedEntity->spriteSettings.b.draw; + this->frameIndex = this->attachedEntity->frameIndex + 0x1f; + } +} \ No newline at end of file From f08b8a7865ff680de87d85e90c0be17c60ed3875 Mon Sep 17 00:00:00 2001 From: theo3 Date: Sat, 15 Aug 2020 12:34:09 -0700 Subject: [PATCH 122/158] objectA.c OK --- asm/objectA.s | 126 ------------------------------------------- include/functions.h | 2 + linker.ld | 2 +- src/object/objectA.c | 39 ++++++++++++++ 4 files changed, 42 insertions(+), 127 deletions(-) delete mode 100644 asm/objectA.s create mode 100644 src/object/objectA.c diff --git a/asm/objectA.s b/asm/objectA.s deleted file mode 100644 index 67c4c78a..00000000 --- a/asm/objectA.s +++ /dev/null @@ -1,126 +0,0 @@ - .include "asm/macros.inc" - - .include "constants/constants.inc" - - .syntax unified - - .text - - - thumb_func_start ObjectA -ObjectA: @ 0x08083A94 - push {r4, r5, r6, r7, lr} - mov r7, r8 - push {r7} - adds r6, r0, #0 - ldrb r0, [r6, #0xc] - cmp r0, #0 - bne _08083B24 - movs r0, #1 - mov r8, r0 - mov r2, r8 - strb r2, [r6, #0xc] - ldr r0, _08083B10 @ =gUnk_080FD170 - str r0, [r6, #0x48] - adds r7, r6, #0 - adds r7, #0x38 - ldrb r0, [r7] - movs r1, #0x34 - cmp r0, #1 - bne _08083ABC - movs r1, #0x26 -_08083ABC: - adds r4, r6, #0 - adds r4, #0x70 - strh r1, [r4] - adds r0, r6, #0 - adds r0, #0x86 - ldrh r0, [r0] - bl CheckFlags - cmp r0, #0 - beq _08083B1C - ldrh r0, [r4] - movs r3, #0x2e - ldrsh r1, [r6, r3] - ldr r5, _08083B14 @ =gRoomControls - ldrh r2, [r5, #6] - subs r1, r1, r2 - asrs r1, r1, #4 - movs r4, #0x3f - ands r1, r4 - movs r3, #0x32 - ldrsh r2, [r6, r3] - ldrh r3, [r5, #8] - subs r2, r2, r3 - asrs r2, r2, #4 - ands r2, r4 - lsls r2, r2, #6 - orrs r1, r2 - ldrb r2, [r7] - bl SetTileType - ldrh r1, [r5] - mov r0, r8 - ands r0, r1 - cmp r0, #0 - beq _08083B08 - ldr r1, _08083B18 @ =gUnk_02000070 - movs r0, #0 - strb r0, [r1] -_08083B08: - bl DeleteThisEntity - b _08083B7E - .align 2, 0 -_08083B10: .4byte gUnk_080FD170 -_08083B14: .4byte gRoomControls -_08083B18: .4byte gUnk_02000070 -_08083B1C: - adds r0, r6, #0 - bl sub_080787CC - b _08083B7E -_08083B24: - adds r0, r6, #0 - adds r0, #0x39 - ldrb r0, [r0] - lsls r0, r0, #0x18 - asrs r0, r0, #0x18 - cmp r0, #0 - beq _08083B7E - adds r0, r6, #0 - adds r0, #0x70 - ldrh r0, [r0] - movs r5, #0x2e - ldrsh r1, [r6, r5] - ldr r3, _08083B84 @ =gRoomControls - ldrh r2, [r3, #6] - subs r1, r1, r2 - asrs r1, r1, #4 - movs r4, #0x3f - ands r1, r4 - movs r5, #0x32 - ldrsh r2, [r6, r5] - ldrh r3, [r3, #8] - subs r2, r2, r3 - asrs r2, r2, #4 - ands r2, r4 - lsls r2, r2, #6 - orrs r1, r2 - adds r2, r6, #0 - adds r2, #0x38 - ldrb r2, [r2] - bl SetTileType - adds r0, r6, #0 - adds r0, #0x86 - ldrh r0, [r0] - bl SetFlag - adds r0, r6, #0 - bl sub_080A29BC - movs r0, #1 - rsbs r0, r0, #0 - bl sub_080526F8 - bl DeleteThisEntity -_08083B7E: - pop {r3} - mov r8, r3 - pop {r4, r5, r6, r7, pc} - .align 2, 0 -_08083B84: .4byte gRoomControls diff --git a/include/functions.h b/include/functions.h index b30661d2..efcf8087 100644 --- a/include/functions.h +++ b/include/functions.h @@ -248,4 +248,6 @@ extern void sub_080A2BE4(Entity*, u32); extern u32 sub_08097ADC(Entity*); extern void sub_08097B24(Entity*); extern u32 sub_08079F8C(void); +extern void sub_080787CC(Entity*); +extern void sub_080526F8(s32); #endif \ No newline at end of file diff --git a/linker.ld b/linker.ld index c4c76599..f3d2b8a3 100644 --- a/linker.ld +++ b/linker.ld @@ -677,7 +677,7 @@ SECTIONS { asm/blockPushed.o(.text); asm/lockedDoor.o(.text); asm/object9.o(.text); - asm/objectA.o(.text); + src/object/objectA.o(.text); asm/objectB.o(.text); src/object/chestSpawner.o(.text); asm/chestSpawner.o(.text); diff --git a/src/object/objectA.c b/src/object/objectA.c new file mode 100644 index 00000000..c68d503b --- /dev/null +++ b/src/object/objectA.c @@ -0,0 +1,39 @@ +#include "global.h" +#include "entity.h" +#include "room.h" +#include "flags.h" +#include "functions.h" + +extern BoundingBox gUnk_080FD170; + +extern u8 gUnk_02000070; + +void ObjectA(Entity *this) { + u32 uVar2; + + if (this->action == 0) { + this->action = 1; + this->boundingBox = &gUnk_080FD170; + if (this->collisionLayer == 1) { + uVar2 = 0x26; + } else { + uVar2 = 0x34; + } + this->field_0x70.HALF.LO = uVar2; + if (CheckFlags(this->field_0x86) != 0) { + SetTileType(*(u16*)&this->field_0x70.HALF.LO, COORD_TO_TILE(this), this->collisionLayer); + if ((gRoomControls.unk2 & 1) != 0) { + gUnk_02000070 = 0; + } + DeleteThisEntity(); + } else { + sub_080787CC(this); + } + } else if (this->interactType != 0) { + SetTileType(*(u16*)&this->field_0x70.HALF.LO, COORD_TO_TILE(this), this->collisionLayer); + SetFlag(this->field_0x86); + sub_080A29BC(this); + sub_080526F8(-1); + DeleteThisEntity(); + } +} \ No newline at end of file From f782111cba6ddb6c77425abaf33d8a55f5fd82a0 Mon Sep 17 00:00:00 2001 From: Marcus Huderle Date: Sat, 15 Aug 2020 14:50:46 -0500 Subject: [PATCH 123/158] Remove errant field in LcdControls struct --- include/screen.h | 9 ++++----- src/introSetTransition.c | 34 +++++++++++++++++----------------- src/manager/manager1.c | 12 ++++++------ src/manager/manager2.c | 4 ++-- src/object/greatFairy.c | 4 ++-- src/sub_08050024.c | 6 +++--- src/sub_080A3B84.c | 12 ++++++------ 7 files changed, 40 insertions(+), 41 deletions(-) diff --git a/include/screen.h b/include/screen.h index b6fc8b39..c89b63c0 100644 --- a/include/screen.h +++ b/include/screen.h @@ -8,7 +8,6 @@ typedef struct { u16 unk2; u16 unk4; u16 unk6; - u16 lcdControl1; } LcdControls; typedef struct { @@ -65,10 +64,10 @@ typedef struct { typedef struct { /*0x00*/ LcdControls lcd; - /*0x0C*/ BgSettings bg1; - /*0x18*/ BgSettings bg2; - /*0x24*/ BgAffSettings affine; - /*0x3C*/ BgControls controls; + /*0x08*/ BgSettings bg1; + /*0x14*/ BgSettings bg2; + /*0x20*/ BgAffSettings affine; + /*0x38*/ BgControls controls; } Screen; extern BgControls gBgControls; diff --git a/src/introSetTransition.c b/src/introSetTransition.c index 04cbf991..b0c2f62c 100644 --- a/src/introSetTransition.c +++ b/src/introSetTransition.c @@ -108,7 +108,7 @@ static void HandleNintendoCapcomLogos(void) } LoadPaletteGroup(paletteGroup); gScreen.lcd.lcdControl2 |= 0x400; - gScreen.bg2.bg0xOffset = 1; + gScreen.bg2.bg0Updated = 1; DoFade(6, 8); advance = ADVANCE_NONE; } else { @@ -152,20 +152,20 @@ static void HandleTitlescreen(void) } LoadPaletteGroup(paletteGroup); if (((struct_02000000*)0x2000000)->gameLanguage == 0) { - gScreen.controls.windowOutsideControl = 0x844; - gScreen.controls.mosaicSize = 0x909; - gScreen.bg1.unk = 0x1c09; - gScreen.bg2.unk = 0x1d02; - gScreen.affine.unk2 = 0x1e03; + gScreen.controls.layerFXControl = 0x844; + gScreen.controls.alphaBlend = BLDALPHA_BLEND(9, 9); + gScreen.bg2.bg0Control = 0x1c09; + gScreen.affine.bg2Control = 0x1d02; + gScreen.affine.bg3Control = 0x1e03; gScreen.lcd.lcdControl2 |= 0x1e00; - gScreen.bg2.bg0Control = 0xff60; + gScreen.bg2.bg0yOffset = 0xff60; } else { - gScreen.controls.windowOutsideControl = 0x241; - gScreen.controls.mosaicSize = 0x909; - gScreen.lcd.lcdControl1 = 0x1d02; - gScreen.bg1.unk = 0x1E03; - gScreen.bg2.unk = 0x7C89; + gScreen.controls.layerFXControl = 0x241; + gScreen.controls.alphaBlend = BLDALPHA_BLEND(9, 9); + gScreen.bg1.bg0Control = 0x1d02; + gScreen.bg2.bg0Control = 0x1E03; + gScreen.affine.bg2Control = 0x7C89; gScreen.lcd.lcdControl2 |= 1; gScreen.lcd.lcdControl2 |= 0x1300; gIntroState.swordBgScaleRatio = 0x10; @@ -251,13 +251,13 @@ static void HandleJapaneseTitlescreenAnimationIntro(void) case 0: if (!gFadeControl.active) { if ((gIntroState.counter & 1) == 0) { - gScreen.bg2.bg0Control++; + gScreen.bg2.bg0yOffset++; } - if (GetAdvanceState() == ADVANCE_KEY_PRESSED || gScreen.bg2.bg0Control == 0) { + if (GetAdvanceState() == ADVANCE_KEY_PRESSED || gScreen.bg2.bg0yOffset == 0) { gIntroState.subState++; - gScreen.bg2.bg0Control = 0; - gScreen.bg1.unk = 0xc09; + gScreen.bg2.bg0yOffset = 0; + gScreen.bg2.bg0Control = 0xc09; gFadeControl.field_0x4 = 0x40; DoFade(6, 0x10); PlaySFX(0xf8); @@ -362,6 +362,6 @@ static void UpdateLightRays(void) { // Periodiccally update the transparency of the light rays. if ((gIntroState.counter & 0x1F) == 0) { gIntroState.lightRaysAlphaBlendIndex = (gIntroState.lightRaysAlphaBlendIndex + 1) & 0x7; - gScreen.controls.mosaicSize = sLightRaysAlphaBlends[gIntroState.lightRaysAlphaBlendIndex]; + gScreen.controls.alphaBlend = sLightRaysAlphaBlends[gIntroState.lightRaysAlphaBlendIndex]; } } diff --git a/src/manager/manager1.c b/src/manager/manager1.c index b506940e..c08a327c 100644 --- a/src/manager/manager1.c +++ b/src/manager/manager1.c @@ -35,7 +35,7 @@ void sub_080570B8(Entity *this) this->height.WORD = 0; pbVar1 = ((u8 *)&this->field_0x20 + 1); if (*pbVar1 == 3) { - gScreen.affine.bg3xOffset = 1; + gScreen.affine.unk4 = 1; } else { gUnk_08107C48[*pbVar1](this); @@ -45,7 +45,7 @@ void sub_080570B8(Entity *this) void sub_080570F8(void) { gScreen.lcd.lcdControl2 &= 0xf7ff; - gScreen.controls.windowOutsideControl = 0; + gScreen.controls.layerFXControl = 0; sub_08056250(); } @@ -56,9 +56,9 @@ void sub_08057118(Entity *this) ((u8 *)&this->field_0x20)[1] = 0; ((u8 *)&this->field_0x20)[2] = 0; this->action = 1; - gScreen.affine.unk2 = 0x1e04; - *(u16 *)&gScreen.lcd.lcdControl2 |= 0x800; - gScreen.controls.windowOutsideControl = 0x3648; - gScreen.controls.mosaicSize = 0x1000; + gScreen.affine.bg3Control = 0x1e04; + gScreen.lcd.lcdControl2 |= 0x800; + gScreen.controls.layerFXControl = 0x3648; + gScreen.controls.alphaBlend = 0x1000; sub_08052D74(this, sub_080570B8, sub_080570F8); } \ No newline at end of file diff --git a/src/manager/manager2.c b/src/manager/manager2.c index 707c13d1..094bc223 100644 --- a/src/manager/manager2.c +++ b/src/manager/manager2.c @@ -10,8 +10,8 @@ void Manager2(Entity *this) { if (this->action == 0) { this->action = 1; - gScreen.affine.bg3xOffset = 0; - gScreen.bg2.bg0xOffset = 0; + gScreen.affine.unk4 = 0; + gScreen.bg2.bg0Updated = 0; sub_08052D74(this, sub_080576A0, 0); } sub_0805754C(this); diff --git a/src/object/greatFairy.c b/src/object/greatFairy.c index bfdf0807..69893d1a 100644 --- a/src/object/greatFairy.c +++ b/src/object/greatFairy.c @@ -152,8 +152,8 @@ void GreatFairy_WingsInit(Entity* this) { this->spritePriority.b0 = 5; this->spriteSettings.b.draw = 1; this->spriteRendering.alphaBlend = 1; - gScreen.controls.windowOutsideControl = 3904; - gScreen.controls.mosaicSize = 2057; + gScreen.controls.layerFXControl = 0xF40; + gScreen.controls.alphaBlend = BLDALPHA_BLEND(9, 8); this->nonPlanarMovement = 1024; sub_0805EC9C(this, 1024, 256, 0); } diff --git a/src/sub_08050024.c b/src/sub_08050024.c index 2911de17..f1ff6724 100644 --- a/src/sub_08050024.c +++ b/src/sub_08050024.c @@ -46,9 +46,9 @@ void DoFade(u32 fadeType, u32 fadeSpeed) } if ((fadeType & 8) != 0) { gUnk_03000000.spritesOffset = 1; - gScreen.bg1.unk |= 0x40; - gScreen.bg2.unk |= 0x40; - gScreen.affine.unk2 |= 0x40; + gScreen.bg2.bg0Control |= 0x40; + gScreen.affine.bg2Control |= 0x40; + gScreen.affine.bg3Control |= 0x40; } if ((fadeType & 0x10) != 0) { sub_0801E1B8(gFadeControl.field_0x16, gFadeControl.field_0x18); diff --git a/src/sub_080A3B84.c b/src/sub_080A3B84.c index b0ac394b..024ba30a 100644 --- a/src/sub_080A3B84.c +++ b/src/sub_080A3B84.c @@ -46,12 +46,12 @@ void sub_080A3BD0(void) LoadGfxGroup(iVar1 + 0x76); gScreen.lcd.lcdControl2 |= 0x1e00; - gScreen.bg1.unk = 0x1c01; - gScreen.bg2.unk = 0x1d02; - gScreen.affine.unk2 = 0x1e0b; - gScreen.bg2.bg0xOffset = 1; - gScreen.affine.bg2xOffset = 1; - gScreen.affine.bg3xOffset = 1; + gScreen.bg2.bg0Control = 0x1c01; + gScreen.affine.bg2Control = 0x1d02; + gScreen.affine.bg3Control = 0x1e0b; + gScreen.bg2.bg0Updated = 1; + gScreen.affine.unk = 1; + gScreen.affine.unk4 = 1; sub_080A4528(); sub_080A4398(); sub_0801E738(0); From c01a1898c89badbf57eae769a63d86db9ada8448 Mon Sep 17 00:00:00 2001 From: Marcus Huderle Date: Sat, 15 Aug 2020 15:13:20 -0500 Subject: [PATCH 124/158] Combine LCD bg structs --- include/screen.h | 19 ++++++++++++------- src/code_0804AA84.c | 2 +- src/introSetTransition.c | 28 ++++++++++++++-------------- src/manager/manager1.c | 4 ++-- src/manager/manager2.c | 2 +- src/room.c | 2 +- src/sub_08050024.c | 2 +- src/sub_080A3B84.c | 6 +++--- 8 files changed, 35 insertions(+), 30 deletions(-) diff --git a/include/screen.h b/include/screen.h index c89b63c0..4de38e2b 100644 --- a/include/screen.h +++ b/include/screen.h @@ -4,19 +4,25 @@ #include "global.h" typedef struct { - u16 lcdControl2; - u16 unk2; + u16 displayControl; + u8 filler2[0x2]; u16 unk4; u16 unk6; } LcdControls; typedef struct { u16 bg0Control; + u16 bg1Control; + u16 bg2Control; + u16 bg3Control; u16 bg0xOffset; u16 bg0yOffset; - u16 bg0Updated; - u16 unk; - u16 unk2; + u16 bg1xOffset; + u16 bg1yOffset; + u16 bg2xOffset; + u16 bg2yOffset; + u16 bg3xOffset; + u16 bg3yOffset; } BgSettings; typedef struct { @@ -64,8 +70,7 @@ typedef struct { typedef struct { /*0x00*/ LcdControls lcd; - /*0x08*/ BgSettings bg1; - /*0x14*/ BgSettings bg2; + /*0x08*/ BgSettings bg; /*0x20*/ BgAffSettings affine; /*0x38*/ BgControls controls; } Screen; diff --git a/src/code_0804AA84.c b/src/code_0804AA84.c index 6cdfb99e..27e6bf1d 100644 --- a/src/code_0804AA84.c +++ b/src/code_0804AA84.c @@ -62,7 +62,7 @@ void sub_0804AB04(void) void sub_0804AB24(void) { if (!gFadeControl.active) { - gScreen.lcd.lcdControl2 = 0; + gScreen.lcd.displayControl = 0; sub_0801E104(); gArea.filler[8] = 0; MenuFadeIn(6, 0); diff --git a/src/introSetTransition.c b/src/introSetTransition.c index b0c2f62c..fa7ae48b 100644 --- a/src/introSetTransition.c +++ b/src/introSetTransition.c @@ -107,8 +107,8 @@ static void HandleNintendoCapcomLogos(void) paletteGroup = 2; } LoadPaletteGroup(paletteGroup); - gScreen.lcd.lcdControl2 |= 0x400; - gScreen.bg2.bg0Updated = 1; + gScreen.lcd.displayControl |= 0x400; + gScreen.bg.bg2yOffset = 1; DoFade(6, 8); advance = ADVANCE_NONE; } else { @@ -154,20 +154,20 @@ static void HandleTitlescreen(void) if (((struct_02000000*)0x2000000)->gameLanguage == 0) { gScreen.controls.layerFXControl = 0x844; gScreen.controls.alphaBlend = BLDALPHA_BLEND(9, 9); - gScreen.bg2.bg0Control = 0x1c09; + gScreen.bg.bg1xOffset = 0x1c09; gScreen.affine.bg2Control = 0x1d02; gScreen.affine.bg3Control = 0x1e03; - gScreen.lcd.lcdControl2 |= 0x1e00; - gScreen.bg2.bg0yOffset = 0xff60; + gScreen.lcd.displayControl |= 0x1e00; + gScreen.bg.bg2xOffset = 0xff60; } else { gScreen.controls.layerFXControl = 0x241; gScreen.controls.alphaBlend = BLDALPHA_BLEND(9, 9); - gScreen.bg1.bg0Control = 0x1d02; - gScreen.bg2.bg0Control = 0x1E03; + gScreen.bg.bg0Control = 0x1d02; + gScreen.bg.bg1xOffset = 0x1E03; gScreen.affine.bg2Control = 0x7C89; - gScreen.lcd.lcdControl2 |= 1; - gScreen.lcd.lcdControl2 |= 0x1300; + gScreen.lcd.displayControl |= 1; + gScreen.lcd.displayControl |= 0x1300; gIntroState.swordBgScaleRatio = 0x10; UpdateSwordBgAffineData(); } @@ -251,13 +251,13 @@ static void HandleJapaneseTitlescreenAnimationIntro(void) case 0: if (!gFadeControl.active) { if ((gIntroState.counter & 1) == 0) { - gScreen.bg2.bg0yOffset++; + gScreen.bg.bg2xOffset++; } - if (GetAdvanceState() == ADVANCE_KEY_PRESSED || gScreen.bg2.bg0yOffset == 0) { + if (GetAdvanceState() == ADVANCE_KEY_PRESSED || gScreen.bg.bg2xOffset == 0) { gIntroState.subState++; - gScreen.bg2.bg0yOffset = 0; - gScreen.bg2.bg0Control = 0xc09; + gScreen.bg.bg2xOffset = 0; + gScreen.bg.bg1xOffset = 0xc09; gFadeControl.field_0x4 = 0x40; DoFade(6, 0x10); PlaySFX(0xf8); @@ -289,7 +289,7 @@ static void HandleTitlescreenAnimationIntro(void) { case 0: if (!gFadeControl.active) { gIntroState.subState = 1; - gScreen.lcd.lcdControl2 |= 0x400; + gScreen.lcd.displayControl |= 0x400; PlaySFX(0xF6); } break; diff --git a/src/manager/manager1.c b/src/manager/manager1.c index c08a327c..1672216d 100644 --- a/src/manager/manager1.c +++ b/src/manager/manager1.c @@ -44,7 +44,7 @@ void sub_080570B8(Entity *this) void sub_080570F8(void) { - gScreen.lcd.lcdControl2 &= 0xf7ff; + gScreen.lcd.displayControl &= 0xf7ff; gScreen.controls.layerFXControl = 0; sub_08056250(); } @@ -57,7 +57,7 @@ void sub_08057118(Entity *this) ((u8 *)&this->field_0x20)[2] = 0; this->action = 1; gScreen.affine.bg3Control = 0x1e04; - gScreen.lcd.lcdControl2 |= 0x800; + gScreen.lcd.displayControl |= 0x800; gScreen.controls.layerFXControl = 0x3648; gScreen.controls.alphaBlend = 0x1000; sub_08052D74(this, sub_080570B8, sub_080570F8); diff --git a/src/manager/manager2.c b/src/manager/manager2.c index 094bc223..ec3a125b 100644 --- a/src/manager/manager2.c +++ b/src/manager/manager2.c @@ -11,7 +11,7 @@ void Manager2(Entity *this) if (this->action == 0) { this->action = 1; gScreen.affine.unk4 = 0; - gScreen.bg2.bg0Updated = 0; + gScreen.bg.bg2yOffset = 0; sub_08052D74(this, sub_080576A0, 0); } sub_0805754C(this); diff --git a/src/room.c b/src/room.c index ea0b8d51..35be17c4 100644 --- a/src/room.c +++ b/src/room.c @@ -2423,7 +2423,7 @@ void sub_0804CED8(void) { if (CheckGlobalFlag(LV2_CLEAR)) { gUnk_0200B650 = 0; - gScreen.lcd.lcdControl2 &= 0xfdff; + gScreen.lcd.displayControl &= 0xfdff; sub_0807AABC(&gPlayerEntity); LoadRoomEntityList(&gUnk_080E1814); } else { diff --git a/src/sub_08050024.c b/src/sub_08050024.c index f1ff6724..fa1da352 100644 --- a/src/sub_08050024.c +++ b/src/sub_08050024.c @@ -46,7 +46,7 @@ void DoFade(u32 fadeType, u32 fadeSpeed) } if ((fadeType & 8) != 0) { gUnk_03000000.spritesOffset = 1; - gScreen.bg2.bg0Control |= 0x40; + gScreen.bg.bg1xOffset |= 0x40; gScreen.affine.bg2Control |= 0x40; gScreen.affine.bg3Control |= 0x40; } diff --git a/src/sub_080A3B84.c b/src/sub_080A3B84.c index 024ba30a..fec077e0 100644 --- a/src/sub_080A3B84.c +++ b/src/sub_080A3B84.c @@ -45,11 +45,11 @@ void sub_080A3BD0(void) iVar1 = min(iVar1, 6); LoadGfxGroup(iVar1 + 0x76); - gScreen.lcd.lcdControl2 |= 0x1e00; - gScreen.bg2.bg0Control = 0x1c01; + gScreen.lcd.displayControl |= 0x1e00; + gScreen.bg.bg1xOffset = 0x1c01; gScreen.affine.bg2Control = 0x1d02; gScreen.affine.bg3Control = 0x1e0b; - gScreen.bg2.bg0Updated = 1; + gScreen.bg.bg2yOffset = 1; gScreen.affine.unk = 1; gScreen.affine.unk4 = 1; sub_080A4528(); From 56a569be4c914a32a3a6a6e5ea29f6af70cee451 Mon Sep 17 00:00:00 2001 From: Marcus Huderle Date: Sat, 15 Aug 2020 16:07:16 -0500 Subject: [PATCH 125/158] Rename introSetTransition.c to intro.c --- linker.ld | 4 ++-- src/{introSetTransition.c => intro.c} | 8 ++++---- 2 files changed, 6 insertions(+), 6 deletions(-) rename src/{introSetTransition.c => intro.c} (98%) diff --git a/linker.ld b/linker.ld index 909af6fb..5aeb425a 100644 --- a/linker.ld +++ b/linker.ld @@ -889,7 +889,7 @@ SECTIONS { asm/code_080A3BD0.o(.text); src/sub_080A554C.o(.text); asm/code_080A5574.o(.text); - src/introSetTransition.o(.text); + src/intro.o(.text); asm/sub_080AD8F0.o(.text); asm/code_080AD90C.o(.text); /* library functions */ @@ -923,7 +923,7 @@ SECTIONS { data/data_081208A0.o(.rodata); src/object/heartContainer.o(.rodata); data/data_08121C58.o(.rodata); - src/introSetTransition.o(.rodata); + src/intro.o(.rodata); data/data_081320FC.o(.rodata); data/strings.o(.rodata); data/data_089FC6C4.o(.rodata); diff --git a/src/introSetTransition.c b/src/intro.c similarity index 98% rename from src/introSetTransition.c rename to src/intro.c index fa7ae48b..261becd8 100644 --- a/src/introSetTransition.c +++ b/src/intro.c @@ -57,7 +57,7 @@ static const u16 sLightRaysAlphaBlends[] = { BLDALPHA_BLEND(8, 10), }; -static u32 IntroSetTransition(u32 transition) +static u32 AdvanceIntroSequence(u32 transition) { gUnk_02032EC0.transitionType = transition; gUnk_03001000.funcIndex = 2; @@ -72,7 +72,7 @@ void HandleIntroScreen(void) case 0: sub_08056418(); _DmaZero(&gUnk_02032EC0, 0x3b4); - IntroSetTransition(0); + AdvanceIntroSequence(0); break; case 1: sIntroSequenceHandlers[gUnk_02032EC0.transitionType](); @@ -119,7 +119,7 @@ static void HandleNintendoCapcomLogos(void) if (advance == ADVANCE_KEY_PRESSED) { gUnk_02000010.listenForKeyPresses = 1; - IntroSetTransition(1); + AdvanceIntroSequence(1); } } @@ -202,7 +202,7 @@ static void HandleTitlescreen(void) else { advance = ADVANCE_NONE; } - IntroSetTransition(advance); + AdvanceIntroSequence(advance); PlaySFX(0x80080000); } UpdatePressStartIcon(); From f0e63c2a108034b46acc9142b28aecf739a3d5cb Mon Sep 17 00:00:00 2001 From: theo3 Date: Sat, 15 Aug 2020 16:27:27 -0700 Subject: [PATCH 126/158] greatFairy.c finished --- asm/greatFairy.s | 230 -------------------------------- asm/greatFairy/sub_080871F8.inc | 38 ------ include/greatFairy.h | 15 ++- linker.ld | 1 - src/object/greatFairy.c | 142 ++++++++++++++++---- 5 files changed, 128 insertions(+), 298 deletions(-) delete mode 100644 asm/greatFairy.s delete mode 100644 asm/greatFairy/sub_080871F8.inc diff --git a/asm/greatFairy.s b/asm/greatFairy.s deleted file mode 100644 index d4d0764a..00000000 --- a/asm/greatFairy.s +++ /dev/null @@ -1,230 +0,0 @@ - .include "asm/macros.inc" - - .include "constants/constants.inc" - - .syntax unified - - .text - - thumb_func_start sub_080872F8 -sub_080872F8: @ 0x080872F8 - push {r4, r5, lr} - adds r4, r0, #0 - bl sub_0806F69C - adds r0, r4, #0 - bl GetNextFrame - adds r2, r4, #0 - adds r2, #0x68 - ldrh r0, [r2] - ldrh r1, [r4, #0x2e] - subs r0, r0, r1 - lsls r0, r0, #0x10 - lsrs r0, r0, #0x10 - cmp r0, #0xc - bhi _0808732A - adds r0, r4, #0 - adds r0, #0x6a - ldrh r0, [r0] - ldrh r1, [r4, #0x32] - subs r0, r0, r1 - lsls r0, r0, #0x10 - lsrs r0, r0, #0x10 - cmp r0, #0xc - bls _0808735C -_0808732A: - movs r1, #0x2e - ldrsh r0, [r4, r1] - movs r3, #0x32 - ldrsh r1, [r4, r3] - movs r5, #0 - ldrsh r2, [r2, r5] - adds r3, r4, #0 - adds r3, #0x6a - movs r5, #0 - ldrsh r3, [r3, r5] - bl sub_080045D4 - strb r0, [r4, #0x15] - bl Random - ldr r2, _08087378 @ =gUnk_081207AC - movs r1, #3 - ands r1, r0 - adds r1, r1, r2 - ldrb r0, [r1] - ldrb r1, [r4, #0x15] - adds r0, r0, r1 - movs r1, #0x1f - ands r0, r1 - strb r0, [r4, #0x15] -_0808735C: - ldr r1, _0808737C @ =gSineTable - ldrb r0, [r4, #0xe] - adds r0, #0x40 - lsls r0, r0, #1 - adds r0, r0, r1 - movs r3, #0 - ldrsh r0, [r0, r3] - asrs r0, r0, #6 - subs r0, #8 - strh r0, [r4, #0x36] - ldrb r0, [r4, #0xe] - adds r0, #1 - strb r0, [r4, #0xe] - pop {r4, r5, pc} - .align 2, 0 -_08087378: .4byte gUnk_081207AC -_0808737C: .4byte gSineTable - - thumb_func_start GreatFairy_InitializeAnimation -GreatFairy_InitializeAnimation: @ 0x08087380 - push {r4, lr} - adds r4, r0, #0 - movs r0, #1 - strb r0, [r4, #0xc] - ldrb r0, [r4, #0xa] - movs r1, #0xb - bl __modsi3 - strb r0, [r4, #0xb] - adds r1, r4, #0 - adds r1, #0x38 - movs r0, #2 - strb r0, [r1] - ldrb r1, [r4, #0xb] - adds r0, r4, #0 - bl InitializeAnimation - adds r0, r4, #0 - movs r1, #2 - bl sub_0805E3A0 - pop {r4, pc} - - thumb_func_start GreatFairy_CreateForm -GreatFairy_CreateForm: @ 0x080873AC - push {r4, r5, r6, lr} - adds r5, r1, #0 - adds r6, r2, #0 - ldrb r0, [r0, #0xa] - movs r4, #0xb - movs r1, #0xb - bl __divsi3 - lsls r0, r0, #0x18 - lsrs r0, r0, #0x18 - adds r1, r0, #0 - muls r1, r4, r1 - adds r1, r1, r5 - movs r0, #0x1b - adds r2, r6, #0 - bl CreateObject - pop {r4, r5, r6, pc} - - thumb_func_start sub_080873D0 -sub_080873D0: @ 0x080873D0 - push {r4, lr} - adds r4, r0, #0 - ldrb r0, [r4, #0xe] - cmp r0, #0 - beq _080873DE - subs r0, #1 - b _080873F6 -_080873DE: - adds r0, r4, #0 - movs r1, #8 - movs r2, #0 - bl GreatFairy_CreateForm - adds r1, r0, #0 - cmp r1, #0 - beq _080873F8 - adds r0, r4, #0 - bl CopyPosition - movs r0, #0x30 -_080873F6: - strb r0, [r4, #0xe] -_080873F8: - pop {r4, pc} - .align 2, 0 - - thumb_func_start sub_080873FC -sub_080873FC: @ 0x080873FC - push {lr} - movs r0, #0xf7 - bl PlaySFX - ldr r1, _0808740C @ =gRoomControls - movs r0, #0 - str r0, [r1, #0x30] - b _08087414 - .align 2, 0 -_0808740C: .4byte gRoomControls -_08087410: - bl DeleteEntity -_08087414: - movs r0, #6 - movs r1, #0x1b - movs r2, #6 - bl sub_0805EB00 - cmp r0, #0 - bne _08087410 - pop {pc} - - thumb_func_start sub_08087424 -sub_08087424: @ 0x08087424 - push {r4, r5, lr} - adds r5, r1, #0 - bl sub_080791D0 - movs r0, #0x64 - movs r1, #0 - movs r2, #0 - bl CreateObject - adds r4, r0, #0 - cmp r4, #0 - beq _0808744E - ldr r0, _0808745C @ =gPlayerEntity - str r0, [r4, #0x50] - adds r1, r4, #0 - bl CopyPosition - adds r0, r4, #0 - movs r1, #2 - bl sub_0805E3A0 -_0808744E: - ldr r1, [r5, #4] - cmp r1, #0 - beq _08087460 - cmp r1, #1 - beq _0808746C - b _08087474 - .align 2, 0 -_0808745C: .4byte gPlayerEntity -_08087460: - ldr r0, _08087468 @ =gUnk_02002A40 - adds r0, #0xad - b _08087472 - .align 2, 0 -_08087468: .4byte gUnk_02002A40 -_0808746C: - ldr r0, _08087478 @ =gUnk_02002A40 - adds r0, #0xac - movs r1, #0 -_08087472: - strb r1, [r0] -_08087474: - pop {r4, r5, pc} - .align 2, 0 -_08087478: .4byte gUnk_02002A40 - - thumb_func_start sub_0808747C -sub_0808747C: @ 0x0808747C - push {r4, lr} - sub sp, #4 - adds r4, r1, #0 - movs r0, #0 - str r0, [sp] - movs r0, #6 - movs r1, #0xf - movs r2, #6 - movs r3, #0xb - bl sub_0805EB2C - cmp r0, #0 - beq _08087498 - movs r0, #1 -_08087498: - str r0, [r4, #0x14] - add sp, #4 - pop {r4, pc} - .align 2, 0 \ No newline at end of file diff --git a/asm/greatFairy/sub_080871F8.inc b/asm/greatFairy/sub_080871F8.inc deleted file mode 100644 index f7c1cfcc..00000000 --- a/asm/greatFairy/sub_080871F8.inc +++ /dev/null @@ -1,38 +0,0 @@ - .syntax unified - push {r4, r5, lr} - adds r4, r0, #0 - ldr r3, [r4, #0x54] - movs r0, #0x2e - ldrsh r1, [r3, r0] - movs r2, #0x2e - ldrsh r0, [r4, r2] - cmp r1, r0 - bne _0808721E - movs r5, #0x32 - ldrsh r0, [r3, r5] - subs r0, #0x20 - movs r2, #0x32 - ldrsh r1, [r4, r2] - cmp r0, r1 - bne _0808721E - movs r0, #2 - strb r0, [r4, #0xc] - b _0808723C -_0808721E: - movs r5, #0x2e - ldrsh r0, [r4, r5] - movs r2, #0x32 - ldrsh r1, [r4, r2] - movs r5, #0x2e - ldrsh r2, [r3, r5] - movs r5, #0x32 - ldrsh r3, [r3, r5] - subs r3, #0x20 - bl sub_080045D4 - strb r0, [r4, #0x15] - adds r0, r4, #0 - bl sub_0806F69C -_0808723C: - pop {r4, r5, pc} - .align 2, 0 - .syntax divided diff --git a/include/greatFairy.h b/include/greatFairy.h index 3ceb31b2..517db168 100644 --- a/include/greatFairy.h +++ b/include/greatFairy.h @@ -15,10 +15,13 @@ extern void sub_0805EC9C(); extern void sub_0805EC60(); extern void sub_080873D0(); extern void DeleteEntity(); -extern void sub_080045D4(); +extern u32 sub_080045D4(); extern void sub_0806F69C(); extern u32 Random(); - +extern void sub_0805E3A0(Entity*, u32); +extern Entity* sub_0805EB00(u32, u32, u32); +extern void sub_080791D0(); +extern u32 sub_0805EB2C(u32, u32, u32, u32, u32); extern void (*const GreatFairy_Main[])(Entity*); extern void (*const GreatFairy_Behaviors[])(Entity*); extern void (*const GreatFairy_WingsBehaviors[])(Entity*); @@ -42,5 +45,13 @@ extern RoomVars gRoomVars; extern Screen gScreen; extern u32 gUnk_02033280; extern u8 gUnk_0812079C[8]; +extern s16 gSineTable[]; +extern s8 gUnk_081207AC[]; + + +typedef struct { + s32 unk0; + s32 unk4; +} struct_08087424; #endif \ No newline at end of file diff --git a/linker.ld b/linker.ld index f7538954..cceaae18 100644 --- a/linker.ld +++ b/linker.ld @@ -698,7 +698,6 @@ SECTIONS { src/object/houseDoorExterior.o(.text); src/object/object1A.o(.text); src/object/greatFairy.o(.text); - asm/greatFairy.o(.text); src/object/object1C.o(.text); src/object/object1D.o(.text); asm/object1E.o(.text); diff --git a/src/object/greatFairy.c b/src/object/greatFairy.c index 69893d1a..80622e0d 100644 --- a/src/object/greatFairy.c +++ b/src/object/greatFairy.c @@ -3,6 +3,7 @@ #include "room.h" #include "screen.h" #include "greatFairy.h" +#include "structures.h" enum { BEHAVIORS, @@ -371,19 +372,20 @@ void sub_08087114(Entity* this) { } #ifdef NON_MATCHING -void sub_08087150(Entity* this) { - u8 var; - u32 var2; +extern u8 gUnk_0812079C; - GreatFairy_InitializeAnimation(this); - this->spriteSettings.b.draw = 1; - this->spriteOrientation &= 63; - this->spriteRendering.b0 = 0; - this->spritePriority.b0 = 3; - this->nonPlanarMovement = 128; - this->direction = 16; - var = gUnk_0812079C[0]; - this->palette = ((var & 15) * 16) | this->direction; +void sub_08087150(Entity *this) { + u32 temp; + + GreatFairy_InitializeAnimation(); + this->spriteSettings.b.draw = TRUE; + this->spriteOrientation.flipY = 0; + this->spriteRendering.b0 = 0; + this->spritePriority.b0 = 3; + this->nonPlanarMovement = 0x80; + this->direction = 0x10; + temp = gUnk_0812079C; + this->palette.raw = ((temp & 0xf) << 4) | 0xf; } #else NAKED @@ -412,26 +414,16 @@ void sub_080871D0(Entity* this) { } } -#ifdef NON_MATCHING -void sub_080871F8(Entity* this) { - s32 bVar1; - - if (((this->attachedEntity->x.HALF.HI == (this->x).HALF.HI) && - ((Entity*)this->attachedEntity)->y.HALF.HI + -32 == (this->y).HALF.HI)) { +void sub_080871F8(Entity *this) { + Entity* temp = this->attachedEntity; + + if ((temp->x.HALF.HI == this->x.HALF.HI) && (temp->y.HALF.HI - 0x20 == this->y.HALF.HI)) { this->action = 2; } else { - bVar1 = (this->x).HALF.HI; - sub_080045D4(); - this->direction = bVar1; + this->direction = sub_080045D4(this->x.HALF.HI, this->y.HALF.HI, temp->x.HALF.HI, temp->y.HALF.HI - 0x20); sub_0806F69C(this); } } -#else -NAKED -void sub_080871F8(Entity* this) { - asm(".include \"asm/greatFairy/sub_080871F8.inc\""); -} -#endif void sub_08087240(Entity* this) { if ((gRoomVars.greatFairyState & 4) != 0) { @@ -470,6 +462,102 @@ void sub_080872AC(Entity* this) { GreatFairy_InitializeAnimation(this); } +void sub_080872F8(Entity *this) { + s32 temp; + sub_0806F69C(this); + GetNextFrame(this); + if (((u16)(this->field_0x68.HWORD - this->x.HALF.HI) > 0xc) || ((u16)(this->field_0x6a.HWORD - this->y.HALF.HI) > 0xc)) { + this->direction = sub_080045D4(this->x.HALF.HI, this->y.HALF.HI, (s16)this->field_0x68.HWORD, (s16)this->field_0x6a.HWORD); + this->direction = (this->direction + gUnk_081207AC[Random() & 3]) & 0x1f; + } + temp = gSineTable[this->actionDelay + 0x40]; + this->height.HALF.HI = (temp >> 6) - 8; + this->actionDelay++; +} + +void GreatFairy_InitializeAnimation(Entity *this) +{ + s32 temp; + + this->action = 1; + temp = this->entityType.form; + this->entityType.parameter = temp % 11; + this->collisionLayer = 2; + InitializeAnimation(this, this->entityType.parameter); + sub_0805E3A0(this, 2); +} + +Entity* GreatFairy_CreateForm(Entity *this, u32 curForm, u32 parameter) { + s32 nextForm; + Entity *ent; + + nextForm = this->entityType.form; + nextForm /= 11; + + ent = CreateObject(0x1b, (u8)nextForm * 11 + curForm, parameter); + return ent; +} + +void sub_080873D0(Entity *this) +{ + Entity *ent; + + if (this->actionDelay != 0) { + this->actionDelay--; + } else { + ent = GreatFairy_CreateForm(this,8,0); + if (ent != NULL) { + CopyPosition(this, ent); + this->actionDelay = 0x30; + } + } +} + +void sub_080873FC(void) +{ + Entity *ent; + + PlaySFX(0xf7); + gRoomControls.cameraTarget = NULL; + + while (ent = sub_0805EB00(0x6, 0x1b, 0x6), ent != NULL) { + DeleteEntity(ent); + } +} + +void sub_08087424(Entity *arg0, struct_08087424 *arg1) +{ + Entity *ent; + + sub_080791D0(); + ent = CreateObject(0x64, 0, 0); + if (ent != NULL) { + ent->parent = &gPlayerEntity; + CopyPosition(&gPlayerEntity, ent); + sub_0805E3A0(ent, 2); + } + + switch (arg1->unk4) { + case 0: + gUnk_02002A40.stats.arrowCount = arg1->unk4; + break; + case 1: + gUnk_02002A40.stats.bombCount = 0; + break; + } +} + +void sub_0808747C(u32 arg0, u32 arg1) +{ + u32 iVar1; + + iVar1 = sub_0805EB2C(0x6, 0xf, 0x6, 0xb, 0x0); + if (iVar1 != 0) { + iVar1 = 1; + } + *(u32 *)(arg1 + 0x14) = iVar1; +} + //clang-format off void (*const GreatFairy_Main[])(Entity*) = { GreatFairy_CallBehavior, From ac5ef9959485b22af74043e07be79e67199aaf7d Mon Sep 17 00:00:00 2001 From: theo3 Date: Sat, 15 Aug 2020 20:38:48 -0700 Subject: [PATCH 127/158] font.png --- data/data_081320FC.s | 53 ++++------------------------------------- graphics/font.pal | 19 +++++++++++++++ graphics/font.png | Bin 0 -> 10493 bytes graphics/gameover.pal | 19 --------------- graphics/gameover.png | Bin 904 -> 0 bytes graphics_file_rules.mk | 6 +++++ 6 files changed, 29 insertions(+), 68 deletions(-) create mode 100644 graphics/font.pal create mode 100644 graphics/font.png delete mode 100644 graphics/gameover.pal delete mode 100644 graphics/gameover.png diff --git a/data/data_081320FC.s b/data/data_081320FC.s index 7e1a2fc3..5781a11e 100755 --- a/data/data_081320FC.s +++ b/data/data_081320FC.s @@ -11726,58 +11726,13 @@ gUnk_08692E80:: @ 08692E80 .incbin "baserom.gba", 0x692E80, 0x00000E0 gUnk_08692F60:: @ 08692F60 - .incbin "baserom.gba", 0x692F60, 0x0000BE9 + .incbin "baserom.gba", 0x692F60, 0x0000040 -gUnk_08693B49:: @ 08693B49 - .incbin "baserom.gba", 0x693B49, 0x00001F1 - -gUnk_08693D3A:: @ 08693D3A - .incbin "baserom.gba", 0x693D3A, 0x000014C - -gUnk_08693E86:: @ 08693E86 - .incbin "baserom.gba", 0x693E86, 0x00000C3 - -gUnk_08693F49:: @ 08693F49 - .incbin "baserom.gba", 0x693F49, 0x0001800 - -gUnk_08695749:: @ 08695749 - .incbin "baserom.gba", 0x695749, 0x0000347 - -gUnk_08695A90:: @ 08695A90 - .incbin "baserom.gba", 0x695A90, 0x0000383 - -gUnk_08695E13:: @ 08695E13 - .incbin "baserom.gba", 0x695E13, 0x0000327 - -gUnk_0869613A:: @ 0869613A - .incbin "baserom.gba", 0x69613A, 0x000007C - -gUnk_086961B6:: @ 086961B6 - .incbin "baserom.gba", 0x6961B6, 0x0000DAA - -gUnk_08696F60:: @ 08696F60 - .incbin "baserom.gba", 0x696F60, 0x0000980 - -gUnk_086978E0:: @ 086978E0 - .incbin "baserom.gba", 0x6978E0, 0x0000668 - -gUnk_08697F48:: @ 08697F48 - .incbin "baserom.gba", 0x697F48, 0x0001998 - -gUnk_086998E0:: @ 086998E0 - .incbin "baserom.gba", 0x6998E0, 0x0006720 - -gUnk_086A0000:: @ 086A0000 - .incbin "baserom.gba", 0x6A0000, 0x000141A - -gUnk_086A141A:: @ 086A141A - .incbin "baserom.gba", 0x6A141A, 0x00004C6 - -gUnk_086A18E0:: @ 086A18E0 - .incbin "baserom.gba", 0x6A18E0, 0x0001180 +gUnk_08692FA0:: + .incbin "graphics/font.4bpp" gUnk_086A2A60:: @ 086A2A60 - .incbin "baserom.gba", 0x6A2A60, 0x0000480 + .incbin "baserom.gba", 0x6A2A40, 0x00004A0 gUnk_086A2EE0:: @ 086A2EE0 .incbin "baserom.gba", 0x6A2EE0, 0x0001423 diff --git a/graphics/font.pal b/graphics/font.pal new file mode 100644 index 00000000..199e6c39 --- /dev/null +++ b/graphics/font.pal @@ -0,0 +1,19 @@ +JASC-PAL +0100 +16 +180 189 148 +49 131 24 +65 205 24 +74 255 24 +24 90 164 +41 156 255 +74 230 255 +123 41 24 +189 49 32 +255 82 49 +255 246 0 +115 98 98 +172 156 156 +213 197 197 +255 255 255 +0 0 0 diff --git a/graphics/font.png b/graphics/font.png new file mode 100644 index 0000000000000000000000000000000000000000..73f072571833427b7326c87e131ec8fa28bfb4da GIT binary patch literal 10493 zcmVs{{R30-$ms23RLhcQ3*3uWuv|;DrRv4~Iwpw%Wd}*2dq~Z2v3p=&DJw z-`zl+Sk7xXC${~S+P@b^f4$YOUH8|&qhkQjPtgG2N811W>zls(=byXY|MSoHll8yf zSatgSr`CVU|40x2bJvSHs=;xbcIj?XjYFtANzC{EZvPE{O~U^9=eNH0F#zrv-s->~ z{nI)x`&S_J^Twz4fe7tu+xJ%a?s}x$kd27HSQL{BpY0DM<3fP04A8oV2}&T1) zZ%gyt-LJ;lU#0d|3Un{_TNNyWbd_jn0OPhN-=KfDE&O`LNp=_l2-B#-{K@5uRd*J@ z$r(%hVWg1>dbD4|HVGTIplcX1RyMKxu;b=95_2c>HYD94M(3z!0{K+8#0mNkW8_(S* ziy3MGiu?OXTRgxo1K1;)`{Ge9Kg z(*A9JB(SV+3-pXp*>$A&>2MGUyv{LZ2EK}b@2=-`pd}#hY29*I{iw@;5 zx|*ufHMVl<;aOI{sqt#@&@Je1eScp90QKqa zd#$iS1C>B?v0q5w)$YC;d**WjR4=;w*TAnB&`^8fit`OW)c4v>Gse6Ae2t)e%$ z6G&MC4QQgL0C%wHIWn!j-|Jw|Z+|1B-$tIBSkxo^t}Mvqja&P|5y}j#+bL(C7x8#> zq%ry-9*+(ip3it!^1yV;}`VFc2KM{X<;9 zki=%77L%6fZ>pyI8@as-)auo47;vv|ui6dDtrNld#^!tLYN}Ghc((U%^tbe~ryotn^{o4+_EcmKkUNq1TBY|c>20*lrFeUT; z9)sbIFZt2ZF9iT%kjtO%kAZYhDud7-TeD)z6M$`6PiNQc5znO>uink#5M+zk_(JlTI;Iy*E^lJsZyyT!Ms0t zwh#66f)G`mXA#wQbqN0$3!pM-btT^{N>gk1;FNm-n+m~-%d8s{n|OdbXoLxL%dp=gT0BLL`FG&rlbP6)Y4vcz2<@L zEzIfWiEI4{{zma%IKW*@k@9s0@@^DVs@kDD%|I;@PaeNla)V}1U)_}U z7Q5s8doR9i`@I+P_v#L4@A#g`^CSMgp&w7;gKPZQv?M{`7Qe_Ih$#>diCzF&C_W?% zGr$i&w||phIsMkUt+y{*)6y-H?%>FeJpOyjp5~F@IUb7TyTn2c@XUc;`|puo^GDdapX1X}H|B8T z3&jsI5HQarhkZ#Q+E07XI{*-p+wKN_((`_(@nSf+-Bn}xh2rrUIip;g;9~xUFSZ6% zSc~J~7+*IBS=T@p89kvxYo-dj5CiNWnLroKErgx2|ZcMIS8tPNjQfP!+J!=tJfpc)V~Y*5pJ5H0t8+9-hFQ(24bY;lzxjy zHw@sRM>2if74?U4Aps13y$!2{Ja#)(W#%R@ul9LVz;0lz$A+l!5qVMvM`e!PA!V^EQUTC&OTZm~^vwUMbUVR&dm%|A+L47_QZZn;Tn7kb9z5r3hLudu0D3I7I z-ye3+J8VCWbPb9E^aIEp`-63U<`iP!V=$daD$m^CFdRZP)REwr8o^$T1oQm8h5VZp zTNi0*kRJR95Q%0!!wC6i)SsoFCEa3LcK%3xDo1ytiy<%Ky;m^oeJIe>-;{__=F*gI zS{Ps^gZcM1uuqMoOEEkte)EaSkMDqfF2gU7zew~9ei>@4Y7C~5m}}ER?)8`P9Kb1T z__g#yA%6`&#xL@hEguTH5nEH07eLWki}Mwo;IADohan<({z?Z(KZ_I^VA!LRXAUri zP}=|ls&jlh{Mf!MMiBThgR+ZvW7ROkam!T{YO}upKNpjc(krX%$Y~oF->WJwP*L** zE!ckVc*WVj25`s@xNT6LzTZ_qmi{Xa@jBI>Z%Ct`E;wKDh`S)7> zc7icjX5Aay;`qg&rc~Fe+ak*SU5DV&)PF+1#p=~Ub2(G=3Ke9npIQc zuSQdUmwQ>{9Z1-|#K|AB?X*^^ES)R;jt{o?l{8O!Mqj%FHrEL& ziV`^{`^-9aGIQ|fh}sCM_h33c5%oIsXonxkbMGMo{3E%3*iL)Yr#OTRh;#<^tNvsG zEIjMa%8QdacX}g#R-OZ^2NEZ-r9lP@KWMsd;c(ip$X{oqc!AXM)3p?(vQ~CZ4pdUIHD911Imn|P^B>hx9rMEuI z_s#JG`961Lqk^~d{pE94BiOOR<&h=dk3JRkm%fwldmND@LRf3bX&c+V2rEMBVZI;q z_j$e_;rC{~?~Yo2EZ=t>;|KY^Ij|Fq!8`fB#q6Ve-y9$3``+H81K*z`6M)_D-gpG+ z)A`lg3*?@c`E4rJSDt<>VpMYZ=Gl0_TDrk?RxKBKTR;N5)R9G~Pf z@5Bc{D+Ssw%^3zIi4XXze;}VR{k@&<+vD?m#vXyy`zW9JW5>Vy|IOCF`~Mve`|iK{ z|CN9D|I5Hn@Binkvpq;{AJko0XSaF6AAXXU-PdI<2%yt1Sszf7^#G zlx4*_?(SAYzc=O>ZVujxr_Q}o2f!_m=V}($jT-`B3-~$P-|z2Ze7X3%udiRfCiwNW z0=}!>;I4kWzfYWhl?Z^Z{V;w?KOTd*u=*RkK;1Z+>nAH{|9bxZ<^3sg$~s6k|9YvU zu{7y=;*;2-kyzksxAAE^pzny$eVhk%xd#6=w(if+&yw!2NeB{%)`$M>@}f4X#RjU~ z!S+p1ZKoe}HH-|~oEHa5f54Ev1Ae+5@z=}C5BKMeR(a_2_P)VC|7pd-+Dd;gz{L?d zmfRB3>2ANso&9rG&-w04`?s3Iq6(aSK#S}j`u)-WSK@=FDPOE9QwRB)-QCz}X#e5? zfUBFWzM??CG45gpxR*a-|I#hHFSh%3dw%~p{rHjk+TU&u{_XE${Vk7oq}qVr6SWNB z|7oh*wq?Ozv(>MqZ~W!-`|JDb*FLQhEAY2}@1LRHkC5*F3Htqi7N4r9rBzd2ElhF1 z?ZAJC@Avl4Sv|3Y|Jpx}UrZ4&-NBnTEP+zY7T_%&mkwq?&&hY;R=O$o&3@eYv;E1t zKhz)mY=7ma@#A;>-lo>%Xf6!m3Z*FjW5BB^0 zcbV+tl1-2Wys9~!0O$?f%VJ;rwvcG||GU`F916{D8>fWiTl<+)S5SVeKkneC`s)n% z!S5|Uh~G|~ncZ$H#@)ECqa+e)zdw!hw$n1|2% zgP-lM{4{>tA3W{v;*k1yuYC5IifMhk^b%GEprwM?l0q!S0-SeSfx7+B?>4>RccRHw zj~?!4ellO5_vg})&+&V|zp#eVNUX{+a0c>jSg63?AMB650x7pW$1er%^_R0kF}ag{ z&9d(0#fF0)?`OW(kLUR9_2Z52-OBT)^!uUx+kd)0`SRi8>vAmuN8?;5y{-gg`3A~e zIxgg86Av|lpCqmz*Nq9gigVO8 zRS3){cZE%3I;9KRcz{v#eiIY z$4_?Cl9~}gw7<-1MmNu4| zwH^37Z3!}e88v5aI!!xj^`yVR1nX80EE?*O{@OwQfCWzUV-T#HKH{prvB6IW*4KR^ z7$iGTstaXi!W;aMl=GDep%O=&9w+556!srob#Y^rad?*-`7_G-@~Yw9ILaRrap1xl zAou}4=iXg^t&>o1zLxP<+^n;Il?xh5h44l{z)+IqPrRDe?hXCwvf9{~ zVOYV*J_9MqtLvrm6*vj&{l`xJew==qba&uYH}uO%m*0I?Ki0r2#Lu{=!Y-=^pToaF z-~wGlyYX*qL56+awz|$>$?;Qhaq5Y=H9p~h-vw4mX9D~zw?x*m7M7xmlz03kzP)-& zfY)vT8~(aXM1bRE1UB*~R7=UJXnMqtd6_cVMPCViI8BCx0n^jL(wcYiU|$5xSYQY6 z#{MDwZcj%>nlVl-FsMcJlaSN#7aIV}?hfEUzm%)d>5;!FSEJJ_{`Op`P<%C0BWg{o zdJFmVWS@shiu2+Yvbi3CS6Aml{M>&MNF`ro!GQ2Hik;%ueq2&tEriDV-TPk`A#-S@ z${j#~;b`sTPfUv|UZ`>hOX6@W2m5Tr>}By&A$H+Uz>R$_#gIgD$zht=Qun}hvUbm3 zj$cFrUKnVFlEkz8t>UOMr9$#Ih2a9f5$1JDBI$x}(cP_obE!GH(uNARTB~Q8Xz^?R z-T`2M1lq^^M*W<_4>KV2Q{{wC!~^|&@>q$D+|sFAxrtveFo&vT4fn}D7qN8~Nd6nf z3>*D*7TBBNZOm|ppO=8e8tw=2OB8&%z_q~oMsELJE>`yC$}9eQTgOyWt!gp7v42RC z_~JB3+iX(tNyL-=>j2K7%eu8x#@{f*VEf{dOgQ0}+rRF06_Vr(6@IxHY29k8a%o?- zq89{I592FGKd@4lmSgVdr~Dh6<|r{a@K<61xuN}UA=WC5ztRsEuDYt}ef_kt>?Os~ zVU=;37BxBoC;1DrHj%&Xw|Ll#M_}k7D6}={C^6Z{pK=&z8H!Yu1PiwHUA83>@Wt_;1%lsVpEEGb_360? zKM#QI-}&KH{tDS=8CBq+50y}|>s8h16+dM9iD^;hMwpE3+79)hkiWqE4K%rKJtE)dZYF{R&&wQ;tHaQtI6EqWM%<3DR;W+ee+Rz|s~^_Bj39M{2B`Djs;=$vQ>h1-(_&9u&Y9_l`2D)Z0vN?yxaV)7 zpHwqoMM>pHb#|N%{RoEQLB(VqMm(J$!HI;5& z*=HHQL@SOuDrHd0QU3g_2pP4E?kYQ;(9izbek}C{zo;Po0`VVwW3aZa`Vsvk(+^2u z$Bjac54m-W@5R0pHYkO|C=*(p`mdc2e{+{b=Dk@-g79@wdG)?IudYqpaXocX6 zVre2hD$OVTJ^*BJ@o*R)%;G2#LcoeGrK`LAvO8C)wT!4hB4ob%lli3{uE7<*z&<32e6U3l;+V(*Z8xtFY>q z-Pq1ANoSb4a#8xmf?qeo-PexfqS7_s8zTuWVUX|n+fy=@umK!H86blVf0>Q1Y>|{A zSQI}ewA$yt!&o9^>bv~IDv2wn_Dso-1aIgUhbbw*i}60Jt2%Kt|N6z}| z{I45$P}Qw+#!rHLAErc;5M2Ch<3A4gq$-IV7)n8MSi-CE%auZN86(>gw@7qnU))%h zn}&0-<|6hVN`E=mP^EDR_wi7FSrmeFMz>JQ!KuCx)~du(GtQl`18npooSY`7Z|H}_ z@=i6p<0~O>_!XuavcfK>s86x%@sorSOVC25Df4$*KV>HuZX;l2@-9C@Q@;{3GIW)= z`XoLO2`fS-K2)cnb4)G~_sxBQj)#g4z$ z`dqD_@%l?*w#<1d6ba&vzidWkgp7OxDc}QE>?{A-GF5>pzzDJ&=Heeu`=Vg`(kVH|CJw$NUXLE0IYo7yCyb zCg6M)j;!E@C0>gxz*p6F@x7Q41_MbnU|Pq9^G*KY z(KVK4Ta&&hL;9+a#8-hQPV65`SeHa!dU$k%3qeAGO^EYN$n8{Ux_+kEwQeEF7Nu1?! zX>IV6sV}Z2K^EE;9_sflDgd%|y2Yo(ku%0mo!WpeivLdI3pPxVO_Kboc!^Y>;8$1t zJf^qxt2m${pZ8>bL=lG(SnuI57@XqMfXP>2ryoI?ezA24i0umot&p%M{Pz39rPx2< zFWWj`gQCDm{=Ddw1U!tdz@QthD!Z&ta)u#EQre2-H1uz}h$Wncq_y3j0c}84NDZR# z!J#DA`XNL6h5bhnCU@_Ghxi`4RYvP8Y^4aD&OEFCF}vr+nS~6BFLxyPSHU-a@6N1ytq~Y21ohhS_Vjc7w9f>OGOHM{n%9f_?kR&j<2$+pD+F0 z);IK8Zb1^+v^ee`?F+aTX{`*xO>(l4+2}8n-!6$8wE~%S?9Sw_TY-YVrfKSiv?(-D#+=F3@Y0? z2UHPjn7)JmCDN%_rMLQAM9zQxO1MY%g&eNa-+F1lmW z5WnP8OOEyrSwH4jG%n*a2y5%0A8x~Y#bkF^5qoFq}ITXyN2-k*PCpTXJ^wZ1Ws#Jl|`i$-V&oI|aO^+w-;r(ZBN zTWx*7I*s)a{lH3CWNv&Ao#=1i(EOf1NHo2le{c2U#qLBErd<%T)ep4j)&xn}gy^Ur zSoG9HS##?Y+tq1y_{j)SxJg`QF<1Ht8ibW!=@VtgiTt@yBUkCzFPD$y&pC%|Xy%Kj z-f!y%d*!?sy-DIL;HnF2vNAGIZvC6s5@%$bX_l3&C;x_w6|0LL)wiwV_>2;Mv44!3 zQ<59{&1#BqWARQV9L^l)cc!!2_tV`I{0y1q3J(SYD@Vi)e}PjEzqJ|ckUa9&IM-+U z9|ZiBs-Hv(E-`jD_WB`4Fs~n2>i)U>vi++;Q_kPOp#8YtI&61ZT#rZq_*zACBRu7Y zSN<~d#JC}yE`Ld-9O?&!>o00>T*U{d!-W}m9rBOD#XYpTfL41f*zq^?A7EN2?5=zN zq2}ih>6U~;!Y!iY**>QhSi#xECML!~1(_T^*ym*gM1h1#?@tMbE6{99oS z7^fVoDEm^`z91EYGxmFX2oul9|1=S5TN^T{yh>7tcO!p)p#JOxP5^siS83bnFIpi~Y_$3-rw9L`|I7lTF-{97M64Q4 zqcZ)lBOEfJJ^D)^*XtMJK{&(sFJoF#`{yfE+zLI(DSnptifu8nE#~@*%w&6Se5SAw zbnduEG8_4e^567SN=Qfi1W7C=W)Kyc%lY^EVg0_^RUl+H_zv>Yi)2NZu={HMRbdMv z&Wlg|CNLa~<@7^#XeFuTVlhGV-u`K+6XU^ZV23``bjk$31yjS&F?xdph8Cg#S{ znVBPLiC@m+=i#gk7wd`Pv8FH9Ut`UZaLa+6{j(l6D86JU000PlNkl^dBQ2 zMGmdTS|jV)q(tcSWA(rCrxDfo8}3>s{<;xpWYdR`fCNA7f62o-C#(|=JmZIqpChLV z?U9uP5Ai(;!TPCPRVF(%RJO_w@FUmjC*%lWMcH@yp(Y$yt%zDz^>OFq9Q`bQm-9P? zoHCaQSVSY!lE|Nk6tPj65zg9f*Qe|wWTb%LK7Jm*D}EIxg|wS>Cg?=JDz;du3(i!_2s?6yd`>gO&^M?$kpW-JI+TkI7B>eG$E#~i_?tZAPy+P?;% zDJes>Wo9(30jjA#C-DI~bX`Dz{IJ9C`#LS{Y4hNWy1|) zns4m0t}vr1P65Y+BA8OWOz<0V$xsO7sEV{gW-qGQ<#6CHme^s)Of1{l?(gWvw{E6J zxcbZDKZ+T(Y(IY3#KetX8u39Vgwb5*XY-%;wIDZY6#0)eLdoaf+e*UK{&nIUTtQMQ zF@vk38oT%^t!f0HaQFA8t?Re|$N57Fz!5yypGHh`F)bt&KkwgElznF7!De`v7FG>q zu5+f#NtccUME!odoZ{X6?#QC$>Y)=)!(pIgb5=m%L~Js@apHWmYp{8h>A z))rr{@Am7D#wp39%ql+bKNPJ$l2JDYuJ<2u!>D>p9rcZK{n>59CENHcfBKi~%b`Bx z15(+^6X~vAdfp%T-?T4&e*qrw@PDKU9`H9{cfQE%roQVyG)Op%k&ts||1dZWl;keH zV*4V-tzVNcO4!YcvyGqANn&b{tJ{~`{5<;m#2>6ba{ETPg4)CVLBjePXq&Bf9Xjc6 z9J-(;;g ze=khd5uT0zFlgoUb5nEdAbA0H*mo3X8$HX+_j&!pU9zeA$F@%iJy1&&&ir(N`6-2ef^5fod5AIYn7$0 z`qI#zzbK;TSzGk@(Q*D2D@3Fp)dJC!oqqHI{VF$vt4>LPlw`+WB)g$nS=1sU=?Q)k zmCEJ;dDMc8WKO@Jf_9o8wz1F3*W&8r4#n0R{}G{`$Dknsh@vC+Vn;1VQglBNM{`W%GuIiJ; z8tDt*@LLC?>XXvTY5m)N{HUy_d;hTwsKRjicK*w0{|L4|yZE56!D~{QC&9&mjsHNa zzl>zR#!DA2*Oy6fg2iHmh3dP7yvv+ZdBE?Me#Ic3(GS@}xcal3Ux$R>X?#XV!e&Iz zk3|N+M!M$s>7ic&or8KgjgXUEV2+d5{%V7lv_=YrYVEB`hO?bkEXLJ~E2Rz&{I#++%uOM1J-+Y?jEvsX9oVXfOvdyBi<;Y2 zO4ZD>>g9r8$BIpwUZ2O>BaTHGnOOdig|N5g{0P2_4m6+aYeRhRR06H7L8Qj_z&fTyM%$gTa03# z<9qArWEq*iYbEh0f57;Okujd`y#I#CpBuVF=A~*~ua6Rib&*zQC>l$+{rgN3nj!=( z(F(F)=lGd~aF(g~6daSC3*7KmwvLePeniZk)yJ3pkxG(v3`>Y40tx-xUL|gQyx)^U z-q_Pmc9oic9|xH6uEijuU*Pw{`IEQtiyP2?N!3*82gg@xk$guj5l?|3nD0AT^9n7m2pa=)A$;ltC4tO6V7@8;h21 zh54Ju%KdI@K~oZFpNJg2nq^lxe&L2|->CgxL!#dU{yQ^?00000NkvXXu0mjf@HBcX literal 0 HcmV?d00001 diff --git a/graphics/gameover.pal b/graphics/gameover.pal deleted file mode 100644 index 32050439..00000000 --- a/graphics/gameover.pal +++ /dev/null @@ -1,19 +0,0 @@ -JASC-PAL -0100 -16 -255 255 172 -255 0 255 -255 0 255 -255 0 255 -255 0 255 -255 0 255 -255 0 255 -255 0 255 -255 0 255 -255 230 0 -255 172 16 -246 115 0 -238 65 0 -230 0 0 -180 65 90 -0 0 90 diff --git a/graphics/gameover.png b/graphics/gameover.png deleted file mode 100644 index f82d6e33ec3775c9f105f6247b43f44d92a2f65d..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 904 zcmV;319$w1P)S^xlA>6n150009M zNklMI$ITOk8DdLL+x$1D$xly za%w=mYa5*(^ zt~TcY6!hfWP)4AnYQVWV0bW{4ci`ZJ1Fs0cpVA9pvf~^rHPph=V3_(Uh*tpc&W`NH zgu9G-R62_axus+ia$Eg`wY-R0#0xajRRXxat&?})i1Rf83c9StJL;<>k|Z2LBuQLv ztZ4)ZJ9j5Zz*!eIl7Q20azO%4t22ru;ACG%5^(a0B;Z5{mLZavbM0J=WCTzHIW{4Z z)xeSA`Vb$ZTrxhqpz3GD$9SuF7ZolS^{BiaIsk3sZYUW+(*Yj1C7KdM9`+J|2au`~ z=++tM{&=n%*lY0K9A?OLLz^A#yTb&W2!wlE;;a$aQbwKW;Lr(xuMrPTK{HU=Y>(Ur z;3nX*M&MQj{hER9fbw$9>3IguSB{8$HkAQRj|e~rUZJu%v1SQxtJQtpecP4R#`&%x zEAjgaYOG_L;%WQZ3czP23BW9YJ?E+5Ks~ACv5LDz48oOfANuL_oB$-c$s@p51Dya> zQs^1@*hD+HqUh|^BtT;N13>HKE_aHJ>9r`r-*+uw`w|UYEc0?yx=)HvXRTO&e z>X#s)d*;4>q^+py_1o`U3?wD~#5OrypwJH~a8twIcPu#WPFdP9%^y|-uAe_dqg&qg zUXMG)?lt|!3vsU=#C|}~e365F7Tc@d)y{2CTDYN+J)28^cYx5(aV|8r`rO9}#C;wy zOB#ES1*PsyoMIFcW^@v{|3qCOhZtrpte8*~jtC8DWGxb3dy;6@M3M|fOd>fwNqa~- z1p?%n0?TkvKc%;*$CJ10H@=!y!cRHAB5WN+9qYWP9{_AxKYC1#`WVyH`8lu@d5ec+ z2Tu>j7juz7dJ6BrvkaKhmU06Fc`_*TDMvXM1E_K%wy;rsA-`YP(pr4KK#( Date: Sat, 15 Aug 2020 20:39:46 -0700 Subject: [PATCH 128/158] fix --- graphics_file_rules.mk | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/graphics_file_rules.mk b/graphics_file_rules.mk index 3cd48c6a..c2f9c320 100644 --- a/graphics_file_rules.mk +++ b/graphics_file_rules.mk @@ -4,7 +4,4 @@ $(GFXDIR)/intro/nintendo_capcom.4bpp: %.4bpp: %.png $(GFX) $< $@ -num_tiles 123 $(GFXDIR)/font.4bpp: %.4bpp: %.png - $(GFX) $< $@ -num_tiles 2005 - -$(GFXDIR)/kinstones.4bpp: %.4bpp: %.png - $(GFX) $< $@ -num_tiles 692 \ No newline at end of file + $(GFX) $< $@ -num_tiles 2005 \ No newline at end of file From 037dd0a55acd2e968abdd4ce603650fc09b0ba09 Mon Sep 17 00:00:00 2001 From: theo3 Date: Sat, 15 Aug 2020 23:48:09 -0700 Subject: [PATCH 129/158] pot_portal.png --- data/data_081320FC.s | 20 ++++---------------- graphics/pot_portal.png | Bin 0 -> 2431 bytes graphics_file_rules.mk | 5 ++++- 3 files changed, 8 insertions(+), 17 deletions(-) create mode 100644 graphics/pot_portal.png diff --git a/data/data_081320FC.s b/data/data_081320FC.s index 5781a11e..38660493 100755 --- a/data/data_081320FC.s +++ b/data/data_081320FC.s @@ -6739,23 +6739,11 @@ gUnk_082D3629:: @ 082D3629 gUnk_082D4138:: @ 082D4138 .incbin "baserom.gba", 0x2D4138, 0x000075C -gUnk_082D4894:: @ 082D4894 - .incbin "baserom.gba", 0x2D4894, 0x00004CD +gUnk_082D4894:: + .incbin "graphics/pot_portal.4bpp" -gUnk_082D4D61:: @ 082D4D61 - .incbin "baserom.gba", 0x2D4D61, 0x0000208 - -gUnk_082D4F69:: @ 082D4F69 - .incbin "baserom.gba", 0x2D4F69, 0x00004D7 - -gUnk_082D5440:: @ 082D5440 - .incbin "baserom.gba", 0x2D5440, 0x000012D - -gUnk_082D556D:: @ 082D556D - .incbin "baserom.gba", 0x2D556D, 0x00004ED - -gUnk_082D5A5A:: @ 082D5A5A - .incbin "baserom.gba", 0x2D5A5A, 0x00000FB +gUnk_082D5A94:: + .incbin "baserom.gba", 0x2D5A94, 0x00000C1 gUnk_082D5B55:: @ 082D5B55 .incbin "baserom.gba", 0x2D5B55, 0x0007F92 diff --git a/graphics/pot_portal.png b/graphics/pot_portal.png new file mode 100644 index 0000000000000000000000000000000000000000..3de640a78bba053c5cb9674859331ea6746761ee GIT binary patch literal 2431 zcmaJ@c|4Ts9)HJ9H74nh>dtErH_T=qroqgJGO|nuoyx3fViq%lv5%dKHm6JEn3N>9 zoKQM)QBg`I-3nbdov3498l2F~9i4RUAGiDd^ZcIQ=llKs*7x&ya{c|buhBEn0{~!+ zk2fh$b%Fo@0d>?>*00Y}g{otNm>ePw;vW#l(uHimgT-gCK_4zXoE^xfv*MyU*lqxz zZo#33h(jp8I3}Nqq%UKT60ShS1^_pLL_lXou*D#Q9nRt55tEJ02#~|VBZ3_$Xo`Ty zKFINo7qWxm{iw|N2&M}QLD&YmNpLCwE?Z0oCEQ4!2q(cKKI`IC_Ocs=06#;-5qQKO zNrh1SK_Xws1|5-TTP7Nf1)W@w7)N`1N3;!yMPtz@v;zu*wZ%B%(Dpct6ZqvrsGz(xhKMf_+XQ#H5)X3L=jIHHhE7xRTwK0k7$i~a}sV!r4gUjSk; zNGxbYp))zWWzSzfQz#Ui4^Jef^O$TO5+0!vL2@`ORX5Qdc383l$pLML!H_*X?TJ`V zF9)obvy+{jmzUEDm&9jAbJ;xc3YYaK*YTU&ZiK+ERW%~f5#?mnBRT6m#qvrlL3u2lUMXn$WS zS&hE~uuKN_)dL0NR=4MVd@~>FWKy)ts4v-kp$SFs4-qjK)g>j*+uD>$rHW+!vio}g z(5&+zc~B*NV}-pZ$F{7_+NjG5d9CD@XOd|pJ{C7|&wMG5#G|!nuLWEA$E9X<)>2;Y zLkST`f=euZ7Z$YoO}r$YKVh&xsikfe#K^VE<$a>51d^CkzBb73eITgQwUBc{3cQ%; z7_M9Au`Zqn^v~*cRkh#-iuVF~=zYJLotwVHx+s*+7!E7iHF~^@(o|v9dapHD9dZ! zqLqEJy+49C%u7*BO_#U$+X&>I%7$Vy*7XNcr1p2YMGOx!FP-Z@=z^|!YvWF;!Jc(* z`1x3a{7iWDmMMmjG`6`h=MrpS97cOAbE<(DE*iLBJ6=e{R}@Mcazdgr)&NC!I?RUO z)x491A0E4{R)US*dn_p*n(@ZeS6WIv@1l{TM|FkFw6B!`S^Y@h^4+Q9g0PH8D`#D3 zM{3Rm8~08Pd#AC222xj{T6+9=r_8JM+PV*YPY{LydVaK_ZBvua9*0^_np|Vu>b>aZ z&Ztc|mHm#j6qDrt<583z1QypUAD<;5G)(aJjh>M)zu0^KYrbcdpf9&jD(QVb1l$g2 z%TZU)fo@3KG^pKz+_YM{KSUpB8a*Nt91WI+b(LMMZO3qfO*2O8{U2JCI{93HK=y_^ zLjq%KPBvuiUu{)(q{V{#2I%oiu$P+LwlXs=izVn2QUkVnpT(pm_S_txmvvkY8xJ}9 zxD2Rt>2cm1V9x+DM1RK$sX2@pcw4L5d1wF3vTm@l-x-$ro6c*!?QCZ5p+@)0v`Wvq zC+|)?sCjSsM$I{ynI)YfOU*Y~{RJW(1>+WViGh$Vb2`%IGg-BXQc@%8x^|T}f>XL36d{ckVwO9r(pj z++%R+Biy_VrtGSDt)gyjt3EJk(3O1e<2fVP^m8}FWWJ3iZSX}4x;4d=rV$aWm$-?R zwrA&7pHqa1m?-~BT4YoKcsl1K)M970OuoZ%kM77cGGpZIy-knwwA~2~^Y`~#%SOs} zzS^sEsRVUOa8sihul1ORi*GDCBlGP=3vrqm9}Z_S@uLWbcDDqlvFyK13s0*j?^Ej@ z#PIG}q4Y%%h1>Ry_0|cm_WvMXB%k^O%irBS+gg#rX>iFt!NBfH$27mDa^us`0kCtC&_hf)^)`GDk^xl!XRhx^ zm}#TE(vo|g&Fj*ZUS7iis-n^~|4Dv;PQ~hPZpd-ok${|t;P(yxT&ny~q2y**_eF8Vrv|?@wF%PRIm?~X8(X;ss|IzCUJx1$RYIwE4{U6I z`|p;5a>Msc21SK<>)e5N<_BI!WMprp*JtD0&34TX7cP+CIP4SxDetQ`J8|5Nrx z+M@mtv|4dT*G*+yRNSd)o`XNQp`02gEOjf0pJYm!G(jo*i>TyNwzfbHFAXXg&rE^d znuU*i1|=@)D`iT-W%&2XR`afUWlf`G4jwbmmr~=CI8KOcxuB%I{5Vcnh8TJKzb68Vt*NLM^*Y5xIEdiLf3 literal 0 HcmV?d00001 diff --git a/graphics_file_rules.mk b/graphics_file_rules.mk index c2f9c320..6a4db246 100644 --- a/graphics_file_rules.mk +++ b/graphics_file_rules.mk @@ -4,4 +4,7 @@ $(GFXDIR)/intro/nintendo_capcom.4bpp: %.4bpp: %.png $(GFX) $< $@ -num_tiles 123 $(GFXDIR)/font.4bpp: %.4bpp: %.png - $(GFX) $< $@ -num_tiles 2005 \ No newline at end of file + $(GFX) $< $@ -num_tiles 2005 + +$(GFXDIR)/pot_portal.4bpp: %.4bpp: %.png + $(GFX) $< $@ -num_tiles 144 \ No newline at end of file From 293d080fca7119f2d2708b5bfd3762ef9574ea49 Mon Sep 17 00:00:00 2001 From: theo3 Date: Sun, 16 Aug 2020 00:16:19 -0700 Subject: [PATCH 130/158] remove problematic file --- tools/minishmaker-license.txt | 674 ---------------------------------- 1 file changed, 674 deletions(-) delete mode 100644 tools/minishmaker-license.txt diff --git a/tools/minishmaker-license.txt b/tools/minishmaker-license.txt deleted file mode 100644 index e72bfdda..00000000 --- a/tools/minishmaker-license.txt +++ /dev/null @@ -1,674 +0,0 @@ - GNU GENERAL PUBLIC LICENSE - Version 3, 29 June 2007 - - Copyright (C) 2007 Free Software Foundation, Inc. - Everyone is permitted to copy and distribute verbatim copies - of this license document, but changing it is not allowed. - - Preamble - - The GNU General Public License is a free, copyleft license for -software and other kinds of works. - - The licenses for most software and other practical works are designed -to take away your freedom to share and change the works. By contrast, -the GNU General Public License is intended to guarantee your freedom to -share and change all versions of a program--to make sure it remains free -software for all its users. We, the Free Software Foundation, use the -GNU General Public License for most of our software; it applies also to -any other work released this way by its authors. You can apply it to -your programs, too. - - When we speak of free software, we are referring to freedom, not -price. Our General Public Licenses are designed to make sure that you -have the freedom to distribute copies of free software (and charge for -them if you wish), that you receive source code or can get it if you -want it, that you can change the software or use pieces of it in new -free programs, and that you know you can do these things. - - To protect your rights, we need to prevent others from denying you -these rights or asking you to surrender the rights. Therefore, you have -certain responsibilities if you distribute copies of the software, or if -you modify it: responsibilities to respect the freedom of others. - - For example, if you distribute copies of such a program, whether -gratis or for a fee, you must pass on to the recipients the same -freedoms that you received. You must make sure that they, too, receive -or can get the source code. And you must show them these terms so they -know their rights. - - Developers that use the GNU GPL protect your rights with two steps: -(1) assert copyright on the software, and (2) offer you this License -giving you legal permission to copy, distribute and/or modify it. - - For the developers' and authors' protection, the GPL clearly explains -that there is no warranty for this free software. For both users' and -authors' sake, the GPL requires that modified versions be marked as -changed, so that their problems will not be attributed erroneously to -authors of previous versions. - - Some devices are designed to deny users access to install or run -modified versions of the software inside them, although the manufacturer -can do so. This is fundamentally incompatible with the aim of -protecting users' freedom to change the software. The systematic -pattern of such abuse occurs in the area of products for individuals to -use, which is precisely where it is most unacceptable. Therefore, we -have designed this version of the GPL to prohibit the practice for those -products. If such problems arise substantially in other domains, we -stand ready to extend this provision to those domains in future versions -of the GPL, as needed to protect the freedom of users. - - Finally, every program is threatened constantly by software patents. -States should not allow patents to restrict development and use of -software on general-purpose computers, but in those that do, we wish to -avoid the special danger that patents applied to a free program could -make it effectively proprietary. To prevent this, the GPL assures that -patents cannot be used to render the program non-free. - - The precise terms and conditions for copying, distribution and -modification follow. - - TERMS AND CONDITIONS - - 0. Definitions. - - "This License" refers to version 3 of the GNU General Public License. - - "Copyright" also means copyright-like laws that apply to other kinds of -works, such as semiconductor masks. - - "The Program" refers to any copyrightable work licensed under this -License. Each licensee is addressed as "you". "Licensees" and -"recipients" may be individuals or organizations. - - To "modify" a work means to copy from or adapt all or part of the work -in a fashion requiring copyright permission, other than the making of an -exact copy. The resulting work is called a "modified version" of the -earlier work or a work "based on" the earlier work. - - A "covered work" means either the unmodified Program or a work based -on the Program. - - To "propagate" a work means to do anything with it that, without -permission, would make you directly or secondarily liable for -infringement under applicable copyright law, except executing it on a -computer or modifying a private copy. Propagation includes copying, -distribution (with or without modification), making available to the -public, and in some countries other activities as well. - - To "convey" a work means any kind of propagation that enables other -parties to make or receive copies. Mere interaction with a user through -a computer network, with no transfer of a copy, is not conveying. - - An interactive user interface displays "Appropriate Legal Notices" -to the extent that it includes a convenient and prominently visible -feature that (1) displays an appropriate copyright notice, and (2) -tells the user that there is no warranty for the work (except to the -extent that warranties are provided), that licensees may convey the -work under this License, and how to view a copy of this License. If -the interface presents a list of user commands or options, such as a -menu, a prominent item in the list meets this criterion. - - 1. Source Code. - - The "source code" for a work means the preferred form of the work -for making modifications to it. "Object code" means any non-source -form of a work. - - A "Standard Interface" means an interface that either is an official -standard defined by a recognized standards body, or, in the case of -interfaces specified for a particular programming language, one that -is widely used among developers working in that language. - - The "System Libraries" of an executable work include anything, other -than the work as a whole, that (a) is included in the normal form of -packaging a Major Component, but which is not part of that Major -Component, and (b) serves only to enable use of the work with that -Major Component, or to implement a Standard Interface for which an -implementation is available to the public in source code form. A -"Major Component", in this context, means a major essential component -(kernel, window system, and so on) of the specific operating system -(if any) on which the executable work runs, or a compiler used to -produce the work, or an object code interpreter used to run it. - - The "Corresponding Source" for a work in object code form means all -the source code needed to generate, install, and (for an executable -work) run the object code and to modify the work, including scripts to -control those activities. However, it does not include the work's -System Libraries, or general-purpose tools or generally available free -programs which are used unmodified in performing those activities but -which are not part of the work. For example, Corresponding Source -includes interface definition files associated with source files for -the work, and the source code for shared libraries and dynamically -linked subprograms that the work is specifically designed to require, -such as by intimate data communication or control flow between those -subprograms and other parts of the work. - - The Corresponding Source need not include anything that users -can regenerate automatically from other parts of the Corresponding -Source. - - The Corresponding Source for a work in source code form is that -same work. - - 2. Basic Permissions. - - All rights granted under this License are granted for the term of -copyright on the Program, and are irrevocable provided the stated -conditions are met. This License explicitly affirms your unlimited -permission to run the unmodified Program. The output from running a -covered work is covered by this License only if the output, given its -content, constitutes a covered work. This License acknowledges your -rights of fair use or other equivalent, as provided by copyright law. - - You may make, run and propagate covered works that you do not -convey, without conditions so long as your license otherwise remains -in force. You may convey covered works to others for the sole purpose -of having them make modifications exclusively for you, or provide you -with facilities for running those works, provided that you comply with -the terms of this License in conveying all material for which you do -not control copyright. Those thus making or running the covered works -for you must do so exclusively on your behalf, under your direction -and control, on terms that prohibit them from making any copies of -your copyrighted material outside their relationship with you. - - Conveying under any other circumstances is permitted solely under -the conditions stated below. Sublicensing is not allowed; section 10 -makes it unnecessary. - - 3. Protecting Users' Legal Rights From Anti-Circumvention Law. - - No covered work shall be deemed part of an effective technological -measure under any applicable law fulfilling obligations under article -11 of the WIPO copyright treaty adopted on 20 December 1996, or -similar laws prohibiting or restricting circumvention of such -measures. - - When you convey a covered work, you waive any legal power to forbid -circumvention of technological measures to the extent such circumvention -is effected by exercising rights under this License with respect to -the covered work, and you disclaim any intention to limit operation or -modification of the work as a means of enforcing, against the work's -users, your or third parties' legal rights to forbid circumvention of -technological measures. - - 4. Conveying Verbatim Copies. - - You may convey verbatim copies of the Program's source code as you -receive it, in any medium, provided that you conspicuously and -appropriately publish on each copy an appropriate copyright notice; -keep intact all notices stating that this License and any -non-permissive terms added in accord with section 7 apply to the code; -keep intact all notices of the absence of any warranty; and give all -recipients a copy of this License along with the Program. - - You may charge any price or no price for each copy that you convey, -and you may offer support or warranty protection for a fee. - - 5. Conveying Modified Source Versions. - - You may convey a work based on the Program, or the modifications to -produce it from the Program, in the form of source code under the -terms of section 4, provided that you also meet all of these conditions: - - a) The work must carry prominent notices stating that you modified - it, and giving a relevant date. - - b) The work must carry prominent notices stating that it is - released under this License and any conditions added under section - 7. This requirement modifies the requirement in section 4 to - "keep intact all notices". - - c) You must license the entire work, as a whole, under this - License to anyone who comes into possession of a copy. This - License will therefore apply, along with any applicable section 7 - additional terms, to the whole of the work, and all its parts, - regardless of how they are packaged. This License gives no - permission to license the work in any other way, but it does not - invalidate such permission if you have separately received it. - - d) If the work has interactive user interfaces, each must display - Appropriate Legal Notices; however, if the Program has interactive - interfaces that do not display Appropriate Legal Notices, your - work need not make them do so. - - A compilation of a covered work with other separate and independent -works, which are not by their nature extensions of the covered work, -and which are not combined with it such as to form a larger program, -in or on a volume of a storage or distribution medium, is called an -"aggregate" if the compilation and its resulting copyright are not -used to limit the access or legal rights of the compilation's users -beyond what the individual works permit. Inclusion of a covered work -in an aggregate does not cause this License to apply to the other -parts of the aggregate. - - 6. Conveying Non-Source Forms. - - You may convey a covered work in object code form under the terms -of sections 4 and 5, provided that you also convey the -machine-readable Corresponding Source under the terms of this License, -in one of these ways: - - a) Convey the object code in, or embodied in, a physical product - (including a physical distribution medium), accompanied by the - Corresponding Source fixed on a durable physical medium - customarily used for software interchange. - - b) Convey the object code in, or embodied in, a physical product - (including a physical distribution medium), accompanied by a - written offer, valid for at least three years and valid for as - long as you offer spare parts or customer support for that product - model, to give anyone who possesses the object code either (1) a - copy of the Corresponding Source for all the software in the - product that is covered by this License, on a durable physical - medium customarily used for software interchange, for a price no - more than your reasonable cost of physically performing this - conveying of source, or (2) access to copy the - Corresponding Source from a network server at no charge. - - c) Convey individual copies of the object code with a copy of the - written offer to provide the Corresponding Source. This - alternative is allowed only occasionally and noncommercially, and - only if you received the object code with such an offer, in accord - with subsection 6b. - - d) Convey the object code by offering access from a designated - place (gratis or for a charge), and offer equivalent access to the - Corresponding Source in the same way through the same place at no - further charge. You need not require recipients to copy the - Corresponding Source along with the object code. If the place to - copy the object code is a network server, the Corresponding Source - may be on a different server (operated by you or a third party) - that supports equivalent copying facilities, provided you maintain - clear directions next to the object code saying where to find the - Corresponding Source. Regardless of what server hosts the - Corresponding Source, you remain obligated to ensure that it is - available for as long as needed to satisfy these requirements. - - e) Convey the object code using peer-to-peer transmission, provided - you inform other peers where the object code and Corresponding - Source of the work are being offered to the general public at no - charge under subsection 6d. - - A separable portion of the object code, whose source code is excluded -from the Corresponding Source as a System Library, need not be -included in conveying the object code work. - - A "User Product" is either (1) a "consumer product", which means any -tangible personal property which is normally used for personal, family, -or household purposes, or (2) anything designed or sold for incorporation -into a dwelling. In determining whether a product is a consumer product, -doubtful cases shall be resolved in favor of coverage. For a particular -product received by a particular user, "normally used" refers to a -typical or common use of that class of product, regardless of the status -of the particular user or of the way in which the particular user -actually uses, or expects or is expected to use, the product. A product -is a consumer product regardless of whether the product has substantial -commercial, industrial or non-consumer uses, unless such uses represent -the only significant mode of use of the product. - - "Installation Information" for a User Product means any methods, -procedures, authorization keys, or other information required to install -and execute modified versions of a covered work in that User Product from -a modified version of its Corresponding Source. The information must -suffice to ensure that the continued functioning of the modified object -code is in no case prevented or interfered with solely because -modification has been made. - - If you convey an object code work under this section in, or with, or -specifically for use in, a User Product, and the conveying occurs as -part of a transaction in which the right of possession and use of the -User Product is transferred to the recipient in perpetuity or for a -fixed term (regardless of how the transaction is characterized), the -Corresponding Source conveyed under this section must be accompanied -by the Installation Information. But this requirement does not apply -if neither you nor any third party retains the ability to install -modified object code on the User Product (for example, the work has -been installed in ROM). - - The requirement to provide Installation Information does not include a -requirement to continue to provide support service, warranty, or updates -for a work that has been modified or installed by the recipient, or for -the User Product in which it has been modified or installed. Access to a -network may be denied when the modification itself materially and -adversely affects the operation of the network or violates the rules and -protocols for communication across the network. - - Corresponding Source conveyed, and Installation Information provided, -in accord with this section must be in a format that is publicly -documented (and with an implementation available to the public in -source code form), and must require no special password or key for -unpacking, reading or copying. - - 7. Additional Terms. - - "Additional permissions" are terms that supplement the terms of this -License by making exceptions from one or more of its conditions. -Additional permissions that are applicable to the entire Program shall -be treated as though they were included in this License, to the extent -that they are valid under applicable law. If additional permissions -apply only to part of the Program, that part may be used separately -under those permissions, but the entire Program remains governed by -this License without regard to the additional permissions. - - When you convey a copy of a covered work, you may at your option -remove any additional permissions from that copy, or from any part of -it. (Additional permissions may be written to require their own -removal in certain cases when you modify the work.) You may place -additional permissions on material, added by you to a covered work, -for which you have or can give appropriate copyright permission. - - Notwithstanding any other provision of this License, for material you -add to a covered work, you may (if authorized by the copyright holders of -that material) supplement the terms of this License with terms: - - a) Disclaiming warranty or limiting liability differently from the - terms of sections 15 and 16 of this License; or - - b) Requiring preservation of specified reasonable legal notices or - author attributions in that material or in the Appropriate Legal - Notices displayed by works containing it; or - - c) Prohibiting misrepresentation of the origin of that material, or - requiring that modified versions of such material be marked in - reasonable ways as different from the original version; or - - d) Limiting the use for publicity purposes of names of licensors or - authors of the material; or - - e) Declining to grant rights under trademark law for use of some - trade names, trademarks, or service marks; or - - f) Requiring indemnification of licensors and authors of that - material by anyone who conveys the material (or modified versions of - it) with contractual assumptions of liability to the recipient, for - any liability that these contractual assumptions directly impose on - those licensors and authors. - - All other non-permissive additional terms are considered "further -restrictions" within the meaning of section 10. If the Program as you -received it, or any part of it, contains a notice stating that it is -governed by this License along with a term that is a further -restriction, you may remove that term. If a license document contains -a further restriction but permits relicensing or conveying under this -License, you may add to a covered work material governed by the terms -of that license document, provided that the further restriction does -not survive such relicensing or conveying. - - If you add terms to a covered work in accord with this section, you -must place, in the relevant source files, a statement of the -additional terms that apply to those files, or a notice indicating -where to find the applicable terms. - - Additional terms, permissive or non-permissive, may be stated in the -form of a separately written license, or stated as exceptions; -the above requirements apply either way. - - 8. Termination. - - You may not propagate or modify a covered work except as expressly -provided under this License. Any attempt otherwise to propagate or -modify it is void, and will automatically terminate your rights under -this License (including any patent licenses granted under the third -paragraph of section 11). - - However, if you cease all violation of this License, then your -license from a particular copyright holder is reinstated (a) -provisionally, unless and until the copyright holder explicitly and -finally terminates your license, and (b) permanently, if the copyright -holder fails to notify you of the violation by some reasonable means -prior to 60 days after the cessation. - - Moreover, your license from a particular copyright holder is -reinstated permanently if the copyright holder notifies you of the -violation by some reasonable means, this is the first time you have -received notice of violation of this License (for any work) from that -copyright holder, and you cure the violation prior to 30 days after -your receipt of the notice. - - Termination of your rights under this section does not terminate the -licenses of parties who have received copies or rights from you under -this License. If your rights have been terminated and not permanently -reinstated, you do not qualify to receive new licenses for the same -material under section 10. - - 9. Acceptance Not Required for Having Copies. - - You are not required to accept this License in order to receive or -run a copy of the Program. Ancillary propagation of a covered work -occurring solely as a consequence of using peer-to-peer transmission -to receive a copy likewise does not require acceptance. However, -nothing other than this License grants you permission to propagate or -modify any covered work. These actions infringe copyright if you do -not accept this License. Therefore, by modifying or propagating a -covered work, you indicate your acceptance of this License to do so. - - 10. Automatic Licensing of Downstream Recipients. - - Each time you convey a covered work, the recipient automatically -receives a license from the original licensors, to run, modify and -propagate that work, subject to this License. You are not responsible -for enforcing compliance by third parties with this License. - - An "entity transaction" is a transaction transferring control of an -organization, or substantially all assets of one, or subdividing an -organization, or merging organizations. If propagation of a covered -work results from an entity transaction, each party to that -transaction who receives a copy of the work also receives whatever -licenses to the work the party's predecessor in interest had or could -give under the previous paragraph, plus a right to possession of the -Corresponding Source of the work from the predecessor in interest, if -the predecessor has it or can get it with reasonable efforts. - - You may not impose any further restrictions on the exercise of the -rights granted or affirmed under this License. For example, you may -not impose a license fee, royalty, or other charge for exercise of -rights granted under this License, and you may not initiate litigation -(including a cross-claim or counterclaim in a lawsuit) alleging that -any patent claim is infringed by making, using, selling, offering for -sale, or importing the Program or any portion of it. - - 11. Patents. - - A "contributor" is a copyright holder who authorizes use under this -License of the Program or a work on which the Program is based. The -work thus licensed is called the contributor's "contributor version". - - A contributor's "essential patent claims" are all patent claims -owned or controlled by the contributor, whether already acquired or -hereafter acquired, that would be infringed by some manner, permitted -by this License, of making, using, or selling its contributor version, -but do not include claims that would be infringed only as a -consequence of further modification of the contributor version. For -purposes of this definition, "control" includes the right to grant -patent sublicenses in a manner consistent with the requirements of -this License. - - Each contributor grants you a non-exclusive, worldwide, royalty-free -patent license under the contributor's essential patent claims, to -make, use, sell, offer for sale, import and otherwise run, modify and -propagate the contents of its contributor version. - - In the following three paragraphs, a "patent license" is any express -agreement or commitment, however denominated, not to enforce a patent -(such as an express permission to practice a patent or covenant not to -sue for patent infringement). To "grant" such a patent license to a -party means to make such an agreement or commitment not to enforce a -patent against the party. - - If you convey a covered work, knowingly relying on a patent license, -and the Corresponding Source of the work is not available for anyone -to copy, free of charge and under the terms of this License, through a -publicly available network server or other readily accessible means, -then you must either (1) cause the Corresponding Source to be so -available, or (2) arrange to deprive yourself of the benefit of the -patent license for this particular work, or (3) arrange, in a manner -consistent with the requirements of this License, to extend the patent -license to downstream recipients. "Knowingly relying" means you have -actual knowledge that, but for the patent license, your conveying the -covered work in a country, or your recipient's use of the covered work -in a country, would infringe one or more identifiable patents in that -country that you have reason to believe are valid. - - If, pursuant to or in connection with a single transaction or -arrangement, you convey, or propagate by procuring conveyance of, a -covered work, and grant a patent license to some of the parties -receiving the covered work authorizing them to use, propagate, modify -or convey a specific copy of the covered work, then the patent license -you grant is automatically extended to all recipients of the covered -work and works based on it. - - A patent license is "discriminatory" if it does not include within -the scope of its coverage, prohibits the exercise of, or is -conditioned on the non-exercise of one or more of the rights that are -specifically granted under this License. You may not convey a covered -work if you are a party to an arrangement with a third party that is -in the business of distributing software, under which you make payment -to the third party based on the extent of your activity of conveying -the work, and under which the third party grants, to any of the -parties who would receive the covered work from you, a discriminatory -patent license (a) in connection with copies of the covered work -conveyed by you (or copies made from those copies), or (b) primarily -for and in connection with specific products or compilations that -contain the covered work, unless you entered into that arrangement, -or that patent license was granted, prior to 28 March 2007. - - Nothing in this License shall be construed as excluding or limiting -any implied license or other defenses to infringement that may -otherwise be available to you under applicable patent law. - - 12. No Surrender of Others' Freedom. - - If conditions are imposed on you (whether by court order, agreement or -otherwise) that contradict the conditions of this License, they do not -excuse you from the conditions of this License. If you cannot convey a -covered work so as to satisfy simultaneously your obligations under this -License and any other pertinent obligations, then as a consequence you may -not convey it at all. For example, if you agree to terms that obligate you -to collect a royalty for further conveying from those to whom you convey -the Program, the only way you could satisfy both those terms and this -License would be to refrain entirely from conveying the Program. - - 13. Use with the GNU Affero General Public License. - - Notwithstanding any other provision of this License, you have -permission to link or combine any covered work with a work licensed -under version 3 of the GNU Affero General Public License into a single -combined work, and to convey the resulting work. The terms of this -License will continue to apply to the part which is the covered work, -but the special requirements of the GNU Affero General Public License, -section 13, concerning interaction through a network will apply to the -combination as such. - - 14. Revised Versions of this License. - - The Free Software Foundation may publish revised and/or new versions of -the GNU General Public License from time to time. Such new versions will -be similar in spirit to the present version, but may differ in detail to -address new problems or concerns. - - Each version is given a distinguishing version number. If the -Program specifies that a certain numbered version of the GNU General -Public License "or any later version" applies to it, you have the -option of following the terms and conditions either of that numbered -version or of any later version published by the Free Software -Foundation. If the Program does not specify a version number of the -GNU General Public License, you may choose any version ever published -by the Free Software Foundation. - - If the Program specifies that a proxy can decide which future -versions of the GNU General Public License can be used, that proxy's -public statement of acceptance of a version permanently authorizes you -to choose that version for the Program. - - Later license versions may give you additional or different -permissions. However, no additional obligations are imposed on any -author or copyright holder as a result of your choosing to follow a -later version. - - 15. Disclaimer of Warranty. - - THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY -APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT -HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY -OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, -THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR -PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM -IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF -ALL NECESSARY SERVICING, REPAIR OR CORRECTION. - - 16. Limitation of Liability. - - IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING -WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS -THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY -GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE -USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF -DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD -PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), -EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF -SUCH DAMAGES. - - 17. Interpretation of Sections 15 and 16. - - If the disclaimer of warranty and limitation of liability provided -above cannot be given local legal effect according to their terms, -reviewing courts shall apply local law that most closely approximates -an absolute waiver of all civil liability in connection with the -Program, unless a warranty or assumption of liability accompanies a -copy of the Program in return for a fee. - - END OF TERMS AND CONDITIONS - - How to Apply These Terms to Your New Programs - - If you develop a new program, and you want it to be of the greatest -possible use to the public, the best way to achieve this is to make it -free software which everyone can redistribute and change under these terms. - - To do so, attach the following notices to the program. It is safest -to attach them to the start of each source file to most effectively -state the exclusion of warranty; and each file should have at least -the "copyright" line and a pointer to where the full notice is found. - - - Copyright (C) - - This program is free software: you can redistribute it and/or modify - it under the terms of the GNU General Public License as published by - the Free Software Foundation, either version 3 of the License, or - (at your option) any later version. - - This program is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - GNU General Public License for more details. - - You should have received a copy of the GNU General Public License - along with this program. If not, see . - -Also add information on how to contact you by electronic and paper mail. - - If the program does terminal interaction, make it output a short -notice like this when it starts in an interactive mode: - - Copyright (C) - This program comes with ABSOLUTELY NO WARRANTY; for details type `show w'. - This is free software, and you are welcome to redistribute it - under certain conditions; type `show c' for details. - -The hypothetical commands `show w' and `show c' should show the appropriate -parts of the General Public License. Of course, your program's commands -might be different; for a GUI interface, you would use an "about box". - - You should also get your employer (if you work as a programmer) or school, -if any, to sign a "copyright disclaimer" for the program, if necessary. -For more information on this, and how to apply and follow the GNU GPL, see -. - - The GNU General Public License does not permit incorporating your program -into proprietary programs. If your program is a subroutine library, you -may consider it more useful to permit linking proprietary applications with -the library. If this is what you want to do, use the GNU Lesser General -Public License instead of this License. But first, please read -. \ No newline at end of file From 2e782891124bbd71e1d2b4a59eb116aeac2cb6ca Mon Sep 17 00:00:00 2001 From: Marcus Huderle Date: Sun, 16 Aug 2020 14:57:09 -0500 Subject: [PATCH 131/158] Start decompiling chooseFile.c --- asm/chooseFile.s | 3614 ++++++++++++++++++++++++++++++++++++ asm/code_08050038.s | 4067 ----------------------------------------- include/functions.h | 9 +- include/main.h | 19 +- include/structures.h | 37 +- linker.ld | 5 +- src/chooseFile.c | 236 +++ src/code_0805436C.c | 4 +- src/code_0807CC3C.c | 6 +- src/entity.c | 2 +- src/ezloNag.c | 8 +- src/intro.c | 5 +- src/mainLoop.c | 2 +- src/npc/smith.c | 4 +- src/npc/teachers.c | 4 +- src/object/object48.c | 2 +- 16 files changed, 3913 insertions(+), 4111 deletions(-) create mode 100755 asm/chooseFile.s create mode 100755 src/chooseFile.c diff --git a/asm/chooseFile.s b/asm/chooseFile.s new file mode 100755 index 00000000..3acaceed --- /dev/null +++ b/asm/chooseFile.s @@ -0,0 +1,3614 @@ + .include "asm/macros.inc" + .include "constants/constants.inc" + + .syntax unified + + .text + + thumb_func_start sub_0805070C +sub_0805070C: @ 0x0805070C + push {r4, r5, r6, r7, lr} + mov r7, r8 + push {r7} + bl sub_0805F2C8 + adds r5, r0, #0 + cmp r5, #0 + beq _0805077A + movs r0, #0 + strb r0, [r5, #2] + movs r0, #5 + strb r0, [r5, #3] + movs r0, #1 + strb r0, [r5, #1] + movs r0, #0x30 + strh r0, [r5, #4] + ldr r0, _08050780 @ =gUnk_02000D00 + str r0, [r5, #8] + movs r6, #0 +_08050732: + movs r0, #0 + strh r0, [r5, #6] + ldr r0, [r5, #8] + movs r1, #0x80 + lsls r1, r1, #2 + bl _DmaZero + ldr r0, _08050784 @ =0x000004B4 + adds r1, r6, #0 + muls r1, r0, r1 + ldr r0, _08050788 @ =gUnk_02019F6C + adds r7, r1, r0 + movs r4, #0 + lsls r0, r6, #9 + mov r8, r0 + adds r6, #1 +_08050752: + adds r0, r7, r4 + ldrb r0, [r0] + adds r1, r5, #0 + bl sub_0805F7DC + adds r4, #1 + cmp r4, #5 + ble _08050752 + ldr r0, [r5, #8] + ldr r1, _0805078C @ =0x06014000 + add r1, r8 + movs r2, #0x80 + lsls r2, r2, #2 + bl sub_0801D66C + cmp r6, #2 + bls _08050732 + adds r0, r5, #0 + bl sub_0805F300 +_0805077A: + pop {r3} + mov r8, r3 + pop {r4, r5, r6, r7, pc} + .align 2, 0 +_08050780: .4byte gUnk_02000D00 +_08050784: .4byte 0x000004B4 +_08050788: .4byte gUnk_02019F6C +_0805078C: .4byte 0x06014000 + + thumb_func_start sub_08050790 +sub_08050790: @ 0x08050790 + push {r4, r5, r6, r7, lr} + mov r7, r8 + push {r7} + bl sub_0805F2C8 + adds r6, r0, #0 + cmp r6, #0 + beq _080507F0 + movs r0, #0 + strb r0, [r6, #2] + movs r0, #5 + strb r0, [r6, #3] + movs r0, #1 + strb r0, [r6, #1] + movs r0, #0x80 + strh r0, [r6, #4] + ldr r0, _080507F8 @ =gUnk_02000D00 + str r0, [r6, #8] + movs r1, #0 +_080507B6: + movs r0, #0 + strh r0, [r6, #6] + lsls r4, r1, #4 + movs r5, #0 + lsls r7, r1, #0xa + adds r1, #1 + mov r8, r1 +_080507C4: + adds r0, r4, #0 + adds r1, r6, #0 + bl sub_0805F7DC + adds r4, #1 + adds r5, #1 + cmp r5, #0xf + bls _080507C4 + movs r0, #0xc0 + lsls r0, r0, #0x13 + adds r1, r7, r0 + ldr r0, _080507F8 @ =gUnk_02000D00 + movs r2, #0x80 + lsls r2, r2, #3 + bl sub_0801D66C + mov r1, r8 + cmp r1, #0xf + bls _080507B6 + adds r0, r6, #0 + bl sub_0805F300 +_080507F0: + pop {r3} + mov r8, r3 + pop {r4, r5, r6, r7, pc} + .align 2, 0 +_080507F8: .4byte gUnk_02000D00 + + thumb_func_start sub_080507FC +sub_080507FC: @ 0x080507FC + ldr r0, _0805080C @ =gUnk_0200AF00 + movs r1, #0xa0 + lsls r1, r1, #1 + strh r1, [r0, #0x1a] + movs r1, #0x24 + strh r1, [r0, #0x20] + bx lr + .align 2, 0 +_0805080C: .4byte gUnk_0200AF00 + + thumb_func_start sub_08050810 +sub_08050810: @ 0x08050810 + ldr r0, _0805081C @ =gUnk_0200AF00 + movs r1, #0xd0 + strh r1, [r0, #0x1a] + movs r1, #0x24 + strh r1, [r0, #0x20] + bx lr + .align 2, 0 +_0805081C: .4byte gUnk_0200AF00 + + thumb_func_start sub_08050820 +sub_08050820: @ 0x08050820 + push {lr} + ldr r1, _0805083C @ =gUnk_080FC8FC + ldr r0, _08050840 @ =gMenu + ldrb r0, [r0, #5] + lsls r0, r0, #2 + adds r0, r0, r1 + ldr r0, [r0] + bl _call_via_r0 + ldr r0, _08050844 @ =gUnk_02019EE0 + ldrb r0, [r0, #6] + bl sub_08050A64 + pop {pc} + .align 2, 0 +_0805083C: .4byte gUnk_080FC8FC +_08050840: .4byte gMenu +_08050844: .4byte gUnk_02019EE0 + + thumb_func_start sub_08050848 +sub_08050848: @ 0x08050848 + push {lr} + movs r0, #7 + bl sub_080503A8 + bl sub_0805070C + ldr r0, _08050868 @ =gUnk_02019EE0 + movs r1, #0 + strb r1, [r0, #7] + ldrb r0, [r0, #6] + bl sub_08050AFC + movs r0, #1 + bl sub_080A7114 + pop {pc} + .align 2, 0 +_08050868: .4byte gUnk_02019EE0 + + thumb_func_start sub_0805086C +sub_0805086C: @ 0x0805086C + push {lr} + ldr r1, _08050880 @ =gUnk_080FC908 + ldr r0, _08050884 @ =gMenu + ldrb r0, [r0, #6] + lsls r0, r0, #2 + adds r0, r0, r1 + ldr r0, [r0] + bl _call_via_r0 + pop {pc} + .align 2, 0 +_08050880: .4byte gUnk_080FC908 +_08050884: .4byte gMenu + + thumb_func_start sub_08050888 +sub_08050888: @ 0x08050888 + push {r4, lr} + ldr r0, _080508C4 @ =gFadeControl + ldrb r0, [r0] + cmp r0, #0 + bne _080508DC + ldr r4, _080508C8 @ =gUnk_02019EE0 + ldrb r1, [r4, #7] + adds r0, r4, #0 + adds r0, #8 + adds r0, r1, r0 + ldrb r0, [r0] + lsls r0, r0, #0x18 + asrs r0, r0, #0x18 + cmp r0, #0 + beq _080508D0 + cmp r0, #1 + beq _080508D6 + adds r0, r1, #0 + bl sub_0805194C + ldrb r1, [r4, #7] + adds r1, #1 + movs r0, #0 + bl sub_08050318 + ldr r1, _080508CC @ =gMenu + movs r0, #0x1e + strh r0, [r1, #8] + movs r0, #1 + b _080508DA + .align 2, 0 +_080508C4: .4byte gFadeControl +_080508C8: .4byte gUnk_02019EE0 +_080508CC: .4byte gMenu +_080508D0: + adds r0, r1, #0 + bl sub_0805194C +_080508D6: + ldr r1, _080508E0 @ =gMenu + movs r0, #2 +_080508DA: + strb r0, [r1, #6] +_080508DC: + pop {r4, pc} + .align 2, 0 +_080508E0: .4byte gMenu + + thumb_func_start sub_080508E4 +sub_080508E4: @ 0x080508E4 + push {lr} + ldr r2, _08050900 @ =gMenu + ldrh r0, [r2, #8] + cmp r0, #0 + bne _08050908 + ldr r0, _08050904 @ =gUnk_03000FF0 + ldrh r1, [r0, #2] + movs r0, #9 + ands r0, r1 + cmp r0, #0 + beq _0805090C + movs r0, #2 + strb r0, [r2, #6] + b _0805090C + .align 2, 0 +_08050900: .4byte gMenu +_08050904: .4byte gUnk_03000FF0 +_08050908: + subs r0, #1 + strh r0, [r2, #8] +_0805090C: + pop {pc} + .align 2, 0 + + thumb_func_start sub_08050910 +sub_08050910: @ 0x08050910 + push {lr} + bl sub_08050384 + ldr r1, _08050930 @ =gUnk_02019EE0 + ldrb r0, [r1, #7] + adds r0, #1 + strb r0, [r1, #7] + lsls r0, r0, #0x18 + lsrs r0, r0, #0x18 + cmp r0, #2 + bls _08050934 + movs r0, #2 + bl sub_080A7114 + b _0805093A + .align 2, 0 +_08050930: .4byte gUnk_02019EE0 +_08050934: + ldr r1, _0805093C @ =gMenu + movs r0, #0 + strb r0, [r1, #6] +_0805093A: + pop {pc} + .align 2, 0 +_0805093C: .4byte gMenu + + thumb_func_start sub_08050940 +sub_08050940: @ 0x08050940 + push {r4, r5, r6, lr} + ldr r3, _0805099C @ =gUnk_02019EE0 + ldrb r0, [r3] + cmp r0, #0 + beq _0805094C + b _08050A58 +_0805094C: + ldrb r4, [r3, #6] + ldr r0, _080509A0 @ =gUnk_03000FF0 + ldrh r2, [r0, #2] + ldrh r1, [r0] + movs r0, #0x80 + lsls r0, r0, #2 + ands r0, r1 + cmp r0, #0 + beq _08050974 + adds r0, r3, #0 + adds r0, #8 + adds r0, r4, r0 + ldrb r0, [r0] + lsls r0, r0, #0x18 + asrs r0, r0, #0x18 + cmp r0, #1 + bne _08050974 + movs r0, #0xc1 + rsbs r0, r0, #0 + ands r2, r0 +_08050974: + movs r0, #0x80 + lsls r0, r0, #0x12 + ldrb r0, [r0, #7] + movs r6, #3 + cmp r0, #1 + bls _08050982 + movs r6, #4 +_08050982: + ldr r0, _080509A4 @ =gUnk_02032EC0 + ldrb r5, [r0, #2] + adds r1, r0, #0 + cmp r2, #0x40 + beq _080509B6 + cmp r2, #0x40 + bhi _080509A8 + cmp r2, #1 + beq _080509E0 + cmp r2, #8 + beq _080509E0 + b _08050A10 + .align 2, 0 +_0805099C: .4byte gUnk_02019EE0 +_080509A0: .4byte gUnk_03000FF0 +_080509A4: .4byte gUnk_02032EC0 +_080509A8: + cmp r2, #0x80 + beq _080509BE + movs r0, #0x80 + lsls r0, r0, #1 + cmp r2, r0 + beq _080509C8 + b _08050A10 +_080509B6: + cmp r4, #0 + ble _08050A10 + subs r4, #1 + b _08050A10 +_080509BE: + subs r0, r6, #1 + cmp r0, r4 + ble _08050A10 + adds r4, #1 + b _08050A10 +_080509C8: + ldr r0, _080509DC @ =gUnk_02019EE0 + adds r0, #8 + adds r0, r4, r0 + ldrb r0, [r0] + lsls r0, r0, #0x18 + asrs r0, r0, #0x18 + cmp r0, #1 + bne _08050A10 + movs r5, #3 + b _08050A10 + .align 2, 0 +_080509DC: .4byte gUnk_02019EE0 +_080509E0: + adds r0, r4, #0 + bl sub_0805041C + cmp r4, #3 + bne _080509EE + movs r5, #2 + b _08050A0E +_080509EE: + ldr r0, _08050A04 @ =gUnk_02019EE0 + adds r0, #8 + adds r0, r4, r0 + ldrb r0, [r0] + lsls r0, r0, #0x18 + asrs r0, r0, #0x18 + cmp r0, #0 + beq _08050A08 + cmp r0, #1 + beq _08050A0C + b _08050A0E + .align 2, 0 +_08050A04: .4byte gUnk_02019EE0 +_08050A08: + movs r5, #1 + b _08050A0E +_08050A0C: + movs r5, #4 +_08050A0E: + ldr r1, _08050A5C @ =gUnk_02032EC0 +_08050A10: + ldrb r0, [r1, #2] + cmp r0, r5 + beq _08050A22 + adds r0, r5, #0 + bl sub_080503BC + movs r0, #0x6a + bl PlaySFX +_08050A22: + adds r0, r4, r6 + adds r1, r6, #0 + bl __modsi3 + adds r4, r0, #0 + ldr r5, _08050A60 @ =gUnk_02019EE0 + ldrb r0, [r5, #6] + cmp r0, r4 + beq _08050A42 + strb r4, [r5, #6] + adds r0, r4, #0 + bl sub_08050AFC + movs r0, #0x69 + bl PlaySFX +_08050A42: + adds r0, r5, #0 + adds r0, #8 + ldrb r5, [r5, #6] + adds r0, r0, r5 + ldrb r0, [r0] + lsls r0, r0, #0x18 + asrs r0, r0, #0x18 + cmp r0, #1 + bne _08050A58 + bl sub_08050810 +_08050A58: + pop {r4, r5, r6, pc} + .align 2, 0 +_08050A5C: .4byte gUnk_02032EC0 +_08050A60: .4byte gUnk_02019EE0 + + thumb_func_start sub_08050A64 +sub_08050A64: @ 0x08050A64 + push {r4, lr} + ldr r1, _08050AF0 @ =gUnk_02019EE0 + adds r1, #8 + adds r0, r0, r1 + ldrb r0, [r0] + lsls r0, r0, #0x18 + asrs r0, r0, #0x18 + cmp r0, #1 + bne _08050AEC + ldr r4, _08050AF4 @ =gUnk_03001010 + movs r0, #0 + strh r0, [r4, #4] + strh r0, [r4, #6] + movs r0, #0x80 + lsls r0, r0, #3 + strh r0, [r4, #8] + movs r0, #0x40 + bl GetInventoryValue + cmp r0, #0 + beq _08050A9E + movs r0, #0xa2 + strh r0, [r4] + movs r0, #0x36 + strh r0, [r4, #2] + ldr r0, _08050AF8 @ =0x00000145 + movs r1, #0x24 + bl sub_080ADA14 +_08050A9E: + movs r0, #0x41 + bl GetInventoryValue + cmp r0, #0 + beq _08050AB8 + movs r0, #0x96 + strh r0, [r4] + movs r0, #0x3d + strh r0, [r4, #2] + ldr r0, _08050AF8 @ =0x00000145 + movs r1, #0x22 + bl sub_080ADA14 +_08050AB8: + movs r0, #0x42 + bl GetInventoryValue + cmp r0, #0 + beq _08050AD2 + movs r0, #0xae + strh r0, [r4] + movs r0, #0x3d + strh r0, [r4, #2] + ldr r0, _08050AF8 @ =0x00000145 + movs r1, #0x23 + bl sub_080ADA14 +_08050AD2: + movs r0, #0x43 + bl GetInventoryValue + cmp r0, #0 + beq _08050AEC + movs r0, #0xa2 + strh r0, [r4] + movs r0, #0x44 + strh r0, [r4, #2] + ldr r0, _08050AF8 @ =0x00000145 + movs r1, #0x21 + bl sub_080ADA14 +_08050AEC: + pop {r4, pc} + .align 2, 0 +_08050AF0: .4byte gUnk_02019EE0 +_08050AF4: .4byte gUnk_03001010 +_08050AF8: .4byte 0x00000145 + + thumb_func_start sub_08050AFC +sub_08050AFC: @ 0x08050AFC + push {r4, r5, lr} + adds r4, r0, #0 + bl sub_0805041C + ldr r5, _08050B30 @ =gUnk_02021F30 + movs r1, #0x80 + lsls r1, r1, #4 + adds r0, r5, #0 + bl _DmaZero + ldr r0, _08050B34 @ =gUnk_02019EE0 + adds r0, #8 + adds r4, r4, r0 + movs r0, #0 + ldrsb r0, [r4, r0] + cmp r0, #1 + bne _08050B28 + movs r1, #0xa7 + lsls r1, r1, #2 + adds r0, r5, r1 + bl sub_08050B3C +_08050B28: + ldr r1, _08050B38 @ =gScreen + movs r0, #1 + strh r0, [r1, #0x1a] + pop {r4, r5, pc} + .align 2, 0 +_08050B30: .4byte gUnk_02021F30 +_08050B34: .4byte gUnk_02019EE0 +_08050B38: .4byte gScreen + + thumb_func_start sub_08050B3C +sub_08050B3C: @ 0x08050B3C + push {r4, r5, r6, r7, lr} + mov r7, sl + mov r6, sb + mov r5, r8 + push {r5, r6, r7} + sub sp, #8 + str r0, [sp] + ldr r1, _08050C18 @ =gUnk_02002A40 + adds r0, r1, #0 + adds r0, #0xaa + ldrb r0, [r0] + lsrs r2, r0, #1 + cmp r2, #0 + bne _08050B5A + movs r2, #1 +_08050B5A: + adds r0, r1, #0 + adds r0, #0xab + ldrb r0, [r0] + lsrs r3, r0, #1 + cmp r3, #0 + beq _08050C0A + cmp r2, r3 + ble _08050B6C + adds r2, r3, #0 +_08050B6C: + movs r0, #3 + ands r0, r2 + str r0, [sp, #4] + adds r0, r2, #0 + asrs r5, r0, #2 + mov ip, r5 + cmp r5, #0xa + ble _08050B80 + movs r2, #0xa + mov ip, r2 +_08050B80: + adds r6, r5, #0 + subs r6, #0xa + mov sb, r6 + cmp r6, #0 + bge _08050B8E + movs r7, #0 + mov sb, r7 +_08050B8E: + adds r0, r3, #0 + asrs r3, r0, #2 + adds r0, r3, #0 + cmp r3, #0xa + ble _08050B9A + movs r3, #0xa +_08050B9A: + adds r4, r0, #0 + subs r4, #0xa + ldr r2, [sp] + ldr r0, _08050C1C @ =0x0000F24C + mov sl, r0 + strh r0, [r2] + ldr r1, _08050C20 @ =0x040000D4 + movs r7, #0xa + mov r8, r7 + mov r0, r8 + mov r7, ip + subs r0, r0, r7 + lsls r0, r0, #1 + ldr r7, _08050C24 @ =gUnk_080FC914 + mov ip, r7 + add r0, ip + str r0, [r1] + adds r0, r2, #2 + str r0, [r1, #4] + movs r0, #0x80 + lsls r0, r0, #0x18 + orrs r3, r0 + str r3, [r1, #8] + ldr r0, [r1, #8] + cmp r4, #0 + ble _08050BEE + adds r2, #0x40 + mov r3, sl + strh r3, [r2] + mov r7, r8 + mov r3, sb + subs r0, r7, r3 + lsls r0, r0, #1 + add r0, ip + str r0, [r1] + adds r0, r2, #2 + str r0, [r1, #4] + movs r7, #0x80 + lsls r7, r7, #0x18 + orrs r4, r7 + str r4, [r1, #8] + ldr r0, [r1, #8] +_08050BEE: + ldr r0, [sp, #4] + cmp r0, #0 + beq _08050C0A + ldr r2, [sp] + cmp r5, #9 + ble _08050BFE + adds r5, r6, #0 + adds r2, #0x40 +_08050BFE: + lsls r0, r5, #1 + adds r0, r0, r2 + ldr r2, [sp, #4] + ldr r3, _08050C28 @ =0xFFFFF24D + adds r1, r2, r3 + strh r1, [r0, #2] +_08050C0A: + add sp, #8 + pop {r3, r4, r5} + mov r8, r3 + mov sb, r4 + mov sl, r5 + pop {r4, r5, r6, r7, pc} + .align 2, 0 +_08050C18: .4byte gUnk_02002A40 +_08050C1C: .4byte 0x0000F24C +_08050C20: .4byte 0x040000D4 +_08050C24: .4byte gUnk_080FC914 +_08050C28: .4byte 0xFFFFF24D + + thumb_func_start sub_08050C2C +sub_08050C2C: @ 0x08050C2C + push {lr} + ldr r1, _08050C48 @ =gUnk_080FC93C + ldr r0, _08050C4C @ =gMenu + ldrb r0, [r0, #5] + lsls r0, r0, #2 + adds r0, r0, r1 + ldr r0, [r0] + bl _call_via_r0 + ldr r0, _08050C50 @ =gUnk_02019EE0 + ldrb r0, [r0, #6] + bl sub_08050A64 + pop {pc} + .align 2, 0 +_08050C48: .4byte gUnk_080FC93C +_08050C4C: .4byte gMenu +_08050C50: .4byte gUnk_02019EE0 + + thumb_func_start sub_08050C54 +sub_08050C54: @ 0x08050C54 + push {r4, lr} + ldr r0, _08050C78 @ =gUnk_02019EE0 + ldrb r0, [r0] + cmp r0, #0 + beq _08050C60 + b _08050D60 +_08050C60: + ldr r0, _08050C7C @ =gMenu + ldrb r4, [r0, #1] + ldr r0, _08050C80 @ =gUnk_03000FF0 + ldrh r0, [r0, #2] + subs r0, #1 + cmp r0, #0x1f + bhi _08050D44 + lsls r0, r0, #2 + ldr r1, _08050C84 @ =_08050C88 + adds r0, r0, r1 + ldr r0, [r0] + mov pc, r0 + .align 2, 0 +_08050C78: .4byte gUnk_02019EE0 +_08050C7C: .4byte gMenu +_08050C80: .4byte gUnk_03000FF0 +_08050C84: .4byte _08050C88 +_08050C88: @ jump table + .4byte _08050D08 @ case 0 + .4byte _08050D30 @ case 1 + .4byte _08050D44 @ case 2 + .4byte _08050D44 @ case 3 + .4byte _08050D44 @ case 4 + .4byte _08050D44 @ case 5 + .4byte _08050D44 @ case 6 + .4byte _08050D08 @ case 7 + .4byte _08050D44 @ case 8 + .4byte _08050D44 @ case 9 + .4byte _08050D44 @ case 10 + .4byte _08050D44 @ case 11 + .4byte _08050D44 @ case 12 + .4byte _08050D44 @ case 13 + .4byte _08050D44 @ case 14 + .4byte _08050D42 @ case 15 + .4byte _08050D44 @ case 16 + .4byte _08050D44 @ case 17 + .4byte _08050D44 @ case 18 + .4byte _08050D44 @ case 19 + .4byte _08050D44 @ case 20 + .4byte _08050D44 @ case 21 + .4byte _08050D44 @ case 22 + .4byte _08050D44 @ case 23 + .4byte _08050D44 @ case 24 + .4byte _08050D44 @ case 25 + .4byte _08050D44 @ case 26 + .4byte _08050D44 @ case 27 + .4byte _08050D44 @ case 28 + .4byte _08050D44 @ case 29 + .4byte _08050D44 @ case 30 + .4byte _08050D3E @ case 31 +_08050D08: + cmp r4, #0 + bne _08050D12 + ldr r0, _08050D28 @ =0x80080000 + bl PlaySFX +_08050D12: + ldr r1, _08050D2C @ =gMenu + movs r0, #0xf + strh r0, [r1, #8] + movs r0, #1 + bl sub_080A7114 + movs r0, #0x6a + bl PlaySFX + b _08050D44 + .align 2, 0 +_08050D28: .4byte 0x80080000 +_08050D2C: .4byte gMenu +_08050D30: + movs r0, #0x6c + bl PlaySFX + movs r0, #0 + bl sub_080503BC + b _08050D44 +_08050D3E: + subs r4, #1 + b _08050D44 +_08050D42: + adds r4, #1 +_08050D44: + cmp r4, #0 + bge _08050D4A + movs r4, #0 +_08050D4A: + cmp r4, #2 + ble _08050D50 + movs r4, #2 +_08050D50: + ldr r1, _08050D64 @ =gMenu + ldrb r0, [r1, #1] + cmp r0, r4 + beq _08050D60 + strb r4, [r1, #1] + movs r0, #0x69 + bl PlaySFX +_08050D60: + pop {r4, pc} + .align 2, 0 +_08050D64: .4byte gMenu + + thumb_func_start sub_08050D68 +sub_08050D68: @ 0x08050D68 + push {lr} + ldr r1, _08050D84 @ =gMenu + ldrh r0, [r1, #8] + cmp r0, #0 + bne _08050D94 + ldrb r0, [r1, #1] + cmp r0, #1 + beq _08050D88 + cmp r0, #1 + ble _08050D80 + cmp r0, #2 + beq _08050D8C +_08050D80: + movs r0, #7 + b _08050D8E + .align 2, 0 +_08050D84: .4byte gMenu +_08050D88: + movs r0, #5 + b _08050D8E +_08050D8C: + movs r0, #6 +_08050D8E: + bl sub_080503BC + b _08050D98 +_08050D94: + subs r0, #1 + strh r0, [r1, #8] +_08050D98: + pop {pc} + .align 2, 0 + + thumb_func_start sub_08050D9C +sub_08050D9C: @ 0x08050D9C + push {lr} + ldr r1, _08050DB0 @ =gUnk_080FC944 + ldr r0, _08050DB4 @ =gMenu + ldrb r0, [r0, #5] + lsls r0, r0, #2 + adds r0, r0, r1 + ldr r0, [r0] + bl _call_via_r0 + pop {pc} + .align 2, 0 +_08050DB0: .4byte gUnk_080FC944 +_08050DB4: .4byte gMenu + + thumb_func_start sub_08050DB8 +sub_08050DB8: @ 0x08050DB8 + push {lr} + ldr r0, _08050DDC @ =gUnk_020344B0 + movs r1, #0x80 + lsls r1, r1, #4 + bl _DmaZero + movs r0, #0xc + bl sub_080503A8 + ldr r1, _08050DE0 @ =gMenu + movs r0, #0x80 + lsls r0, r0, #0x12 + ldrb r0, [r0, #7] + strb r0, [r1, #4] + movs r0, #1 + bl sub_080A7114 + pop {pc} + .align 2, 0 +_08050DDC: .4byte gUnk_020344B0 +_08050DE0: .4byte gMenu + + thumb_func_start sub_08050DE4 +sub_08050DE4: @ 0x08050DE4 + push {r4, lr} + ldr r0, _08050E0C @ =gUnk_02019EE0 + ldrb r0, [r0] + cmp r0, #0 + bne _08050E80 + movs r1, #0x80 + lsls r1, r1, #0x12 + ldrb r4, [r1, #7] + ldr r0, _08050E10 @ =gUnk_03000FF0 + ldrh r0, [r0, #2] + cmp r0, #8 + beq _08050E26 + cmp r0, #8 + bgt _08050E14 + cmp r0, #1 + beq _08050E26 + cmp r0, #2 + beq _08050E50 + b _08050E62 + .align 2, 0 +_08050E0C: .4byte gUnk_02019EE0 +_08050E10: .4byte gUnk_03000FF0 +_08050E14: + cmp r0, #0x40 + beq _08050E1E + cmp r0, #0x80 + beq _08050E22 + b _08050E62 +_08050E1E: + subs r4, #1 + b _08050E62 +_08050E22: + adds r4, #1 + b _08050E62 +_08050E26: + movs r0, #0x6a + bl PlaySFX + ldr r0, _08050E44 @ =gMenu + ldrb r0, [r0, #4] + cmp r0, r4 + beq _08050E48 + movs r0, #2 + bl sub_080A7114 + movs r0, #8 + movs r1, #0 + bl sub_08050318 + b _08050E62 + .align 2, 0 +_08050E44: .4byte gMenu +_08050E48: + movs r0, #0 + bl sub_080503BC + b _08050E62 +_08050E50: + ldr r0, _08050E84 @ =gMenu + ldrb r4, [r0, #4] + strb r4, [r1, #7] + movs r0, #0x6c + bl PlaySFX + movs r0, #0 + bl sub_080503BC +_08050E62: + cmp r4, #1 + bgt _08050E68 + movs r4, #2 +_08050E68: + cmp r4, #6 + ble _08050E6E + movs r4, #6 +_08050E6E: + movs r1, #0x80 + lsls r1, r1, #0x12 + ldrb r0, [r1, #7] + cmp r0, r4 + beq _08050E80 + strb r4, [r1, #7] + movs r0, #0x69 + bl PlaySFX +_08050E80: + pop {r4, pc} + .align 2, 0 +_08050E84: .4byte gMenu + + thumb_func_start sub_08050E88 +sub_08050E88: @ 0x08050E88 + push {lr} + movs r0, #2 + bl sub_0807CDA4 + cmp r0, #0 + beq _08050E9A + movs r0, #0 + bl sub_080503BC +_08050E9A: + pop {pc} + + thumb_func_start sub_08050E9C +sub_08050E9C: @ 0x08050E9C + push {lr} + ldr r1, _08050EB0 @ =gUnk_080FC950 + ldr r0, _08050EB4 @ =gMenu + ldrb r0, [r0, #5] + lsls r0, r0, #2 + adds r0, r0, r1 + ldr r0, [r0] + bl _call_via_r0 + pop {pc} + .align 2, 0 +_08050EB0: .4byte gUnk_080FC950 +_08050EB4: .4byte gMenu + + thumb_func_start sub_08050EB8 +sub_08050EB8: @ 0x08050EB8 + push {lr} + movs r0, #0xe + bl sub_080503A8 + ldr r2, _08050EE8 @ =gUnk_02019EE0 + ldrb r1, [r2, #6] + ldr r0, _08050EEC @ =0x000004B4 + muls r1, r0, r1 + adds r0, r2, #0 + adds r0, #0xc + adds r1, r1, r0 + ldrb r0, [r1, #2] + movs r3, #0 + strb r0, [r2, #4] + ldrb r0, [r1, #3] + strb r0, [r2, #5] + ldr r1, _08050EF0 @ =gMenu + strb r3, [r1, #1] + movs r0, #0xff + strh r0, [r1, #8] + movs r0, #1 + bl sub_080A7114 + pop {pc} + .align 2, 0 +_08050EE8: .4byte gUnk_02019EE0 +_08050EEC: .4byte 0x000004B4 +_08050EF0: .4byte gMenu + + thumb_func_start sub_08050EF4 +sub_08050EF4: @ 0x08050EF4 + push {r4, r5, r6, r7, lr} + mov r7, r8 + push {r7} + ldr r0, _08050F40 @ =gUnk_02019EE0 + ldrb r1, [r0] + adds r6, r0, #0 + cmp r1, #0 + bne _08050FF4 + ldrb r1, [r6, #6] + ldr r0, _08050F44 @ =0x000004B4 + muls r1, r0, r1 + adds r0, r6, #0 + adds r0, #0xc + adds r1, r1, r0 + ldr r0, _08050F48 @ =gMenu + ldrb r3, [r0, #1] + adds r4, r1, #3 + mov ip, r0 + cmp r3, #0 + bne _08050F1E + adds r4, r1, #2 +_08050F1E: + ldrb r2, [r4] + movs r5, #0 + ldr r0, _08050F4C @ =gUnk_03000FF0 + ldrh r0, [r0, #2] + mov r8, r2 + cmp r0, #0x10 + beq _08050F7A + cmp r0, #0x10 + bgt _08050F56 + cmp r0, #2 + beq _08050F8C + cmp r0, #2 + bgt _08050F50 + cmp r0, #1 + beq _08050F82 + b _08050F8E + .align 2, 0 +_08050F40: .4byte gUnk_02019EE0 +_08050F44: .4byte 0x000004B4 +_08050F48: .4byte gMenu +_08050F4C: .4byte gUnk_03000FF0 +_08050F50: + cmp r0, #8 + beq _08050F82 + b _08050F8E +_08050F56: + cmp r0, #0x40 + beq _08050F6A + cmp r0, #0x40 + bgt _08050F64 + cmp r0, #0x20 + beq _08050F72 + b _08050F8E +_08050F64: + cmp r0, #0x80 + beq _08050F6E + b _08050F8E +_08050F6A: + movs r3, #0 + b _08050F8E +_08050F6E: + movs r3, #1 + b _08050F8E +_08050F72: + cmp r2, #0 + beq _08050F8E + subs r2, #1 + b _08050F8E +_08050F7A: + cmp r2, #1 + bhi _08050F8E + adds r2, #1 + b _08050F8E +_08050F82: + ldrh r0, [r6, #4] + movs r5, #2 + ldrh r7, [r1, #2] + cmp r0, r7 + bne _08050F8E +_08050F8C: + movs r5, #3 +_08050F8E: + cmp r5, #0 + beq _08050FD0 + cmp r5, #2 + beq _08050F9C + cmp r5, #3 + beq _08050FAC + b _08050FBA +_08050F9C: + movs r0, #8 + movs r1, #0 + bl sub_08050318 + movs r0, #0x6a + bl PlaySFX + b _08050FBA +_08050FAC: + ldrb r0, [r6, #4] + strb r0, [r1, #2] + ldrb r0, [r6, #5] + strb r0, [r1, #3] + movs r0, #0x6c + bl PlaySFX +_08050FBA: + adds r0, r5, #0 + bl sub_080A7114 + ldr r0, _08050FCC @ =gUnk_02019EE0 + ldrb r0, [r0, #6] + bl sub_0805041C + b _08050FF4 + .align 2, 0 +_08050FCC: .4byte gUnk_02019EE0 +_08050FD0: + mov r1, ip + ldrb r0, [r1, #1] + cmp r0, r3 + beq _08050FE2 + strb r3, [r1, #1] + movs r0, #0x69 + bl PlaySFX + b _08050FF4 +_08050FE2: + cmp r2, r8 + beq _08050FF4 + strb r2, [r4] + ldrb r0, [r6, #6] + bl sub_080503E4 + movs r0, #0x69 + bl PlaySFX +_08050FF4: + pop {r3} + mov r8, r3 + pop {r4, r5, r6, r7, pc} + .align 2, 0 + + thumb_func_start sub_08050FFC +sub_08050FFC: @ 0x08050FFC + push {lr} + movs r0, #0 + bl sub_0807CDA4 + adds r1, r0, #0 + movs r0, #1 + rsbs r0, r0, #0 + cmp r1, r0 + beq _08051014 + cmp r1, #1 + beq _0805102A + b _08051030 +_08051014: + ldr r1, _08051034 @ =gMenu + movs r0, #0x1e + strh r0, [r1, #8] + ldr r0, _08051038 @ =gUnk_02019EE0 + ldrb r0, [r0, #6] + bl sub_0805194C + movs r0, #9 + movs r1, #0 + bl sub_08050318 +_0805102A: + movs r0, #3 + bl sub_080A7114 +_08051030: + pop {pc} + .align 2, 0 +_08051034: .4byte gMenu +_08051038: .4byte gUnk_02019EE0 + + thumb_func_start sub_0805103C +sub_0805103C: @ 0x0805103C + push {lr} + ldr r0, _08051050 @ =gMenu + ldrb r1, [r0, #8] + adds r2, r0, #0 + cmp r1, #0 + beq _08051054 + cmp r1, #0xff + beq _0805106C + b _08051060 + .align 2, 0 +_08051050: .4byte gMenu +_08051054: + ldr r0, _08051068 @ =gUnk_03000FF0 + ldrh r1, [r0, #2] + movs r0, #9 + ands r0, r1 + cmp r0, #0 + beq _08051072 +_08051060: + ldrh r0, [r2, #8] + subs r0, #1 + strh r0, [r2, #8] + b _08051072 + .align 2, 0 +_08051068: .4byte gUnk_03000FF0 +_0805106C: + movs r0, #0 + bl sub_080503BC +_08051072: + pop {pc} + + thumb_func_start sub_08051074 +sub_08051074: @ 0x08051074 + push {lr} + ldr r1, _08051088 @ =gUnk_080FC960 + ldr r0, _0805108C @ =gMenu + ldrb r0, [r0, #5] + lsls r0, r0, #2 + adds r0, r0, r1 + ldr r0, [r0] + bl _call_via_r0 + pop {pc} + .align 2, 0 +_08051088: .4byte gUnk_080FC960 +_0805108C: .4byte gMenu + + thumb_func_start sub_08051090 +sub_08051090: @ 0x08051090 + push {lr} + movs r0, #8 + bl sub_080503A8 + bl sub_08050790 + bl sub_0805070C + bl sub_08051458 + ldr r1, _080510B4 @ =gScreen + movs r0, #0xff + strh r0, [r1, #0x18] + strh r0, [r1, #0x24] + movs r0, #1 + bl sub_080A7114 + pop {pc} + .align 2, 0 +_080510B4: .4byte gScreen + + thumb_func_start sub_080510B8 +sub_080510B8: @ 0x080510B8 + push {r4, r5, r6, r7, lr} + ldr r0, _080510E4 @ =gUnk_02019EE0 + ldrb r0, [r0] + cmp r0, #0 + beq _080510C4 + b _0805134C +_080510C4: + movs r7, #0 + ldr r0, _080510E8 @ =gUnk_03000FF0 + ldrh r1, [r0, #2] + adds r2, r0, #0 + cmp r1, #8 + bne _080510D2 + b _080511C8 +_080510D2: + cmp r1, #8 + bgt _080510EC + cmp r1, #1 + bne _080510DC + b _080511F2 +_080510DC: + cmp r1, #2 + beq _080511B8 + b _08051100 + .align 2, 0 +_080510E4: .4byte gUnk_02019EE0 +_080510E8: .4byte gUnk_03000FF0 +_080510EC: + movs r0, #0x80 + lsls r0, r0, #1 + cmp r1, r0 + bne _080510F6 + b _0805122C +_080510F6: + movs r0, #0x80 + lsls r0, r0, #2 + cmp r1, r0 + bne _08051100 + b _0805121C +_08051100: + movs r6, #0 + movs r5, #0 + ldrh r0, [r2, #4] + cmp r0, #0x20 + beq _08051128 + cmp r0, #0x20 + bgt _08051114 + cmp r0, #0x10 + beq _0805112E + b _08051130 +_08051114: + cmp r0, #0x40 + beq _0805111E + cmp r0, #0x80 + beq _08051124 + b _08051130 +_0805111E: + movs r5, #1 + rsbs r5, r5, #0 + b _08051130 +_08051124: + movs r5, #1 + b _08051130 +_08051128: + movs r6, #1 + rsbs r6, r6, #0 + b _08051130 +_0805112E: + movs r6, #1 +_08051130: + ldr r4, _0805117C @ =gMenu + ldrb r0, [r4, #0x11] + adds r0, r0, r5 + adds r0, #6 + movs r1, #6 + bl __modsi3 + strb r0, [r4, #0x11] + orrs r5, r6 + cmp r5, #0 + beq _0805114C + movs r0, #0x67 + bl PlaySFX +_0805114C: + cmp r6, #0 + beq _0805123A + ldrb r0, [r4, #0x11] + cmp r0, #5 + beq _08051184 + ldrb r0, [r4, #0x10] + adds r0, r0, r6 + adds r0, #0xd + movs r1, #0xd + bl __modsi3 + strb r0, [r4, #0x10] + ldr r1, _08051180 @ =gUnk_080FC980 + movs r0, #0x80 + lsls r0, r0, #0x12 + ldrb r0, [r0, #7] + cmp r0, #0 + beq _08051172 + adds r1, #0x10 +_08051172: + ldrb r0, [r4, #0x10] + adds r0, r1, r0 + ldrb r0, [r0] + strb r0, [r4, #0x12] + b _0805123A + .align 2, 0 +_0805117C: .4byte gMenu +_08051180: .4byte gUnk_080FC980 +_08051184: + movs r0, #0x80 + lsls r0, r0, #0x12 + ldrb r0, [r0, #7] + adds r5, r0, #0 + movs r1, #4 + cmp r5, #0 + bne _08051194 + movs r1, #5 +_08051194: + ldrb r0, [r4, #0x12] + adds r0, r0, r6 + adds r0, r0, r1 + bl __modsi3 + strb r0, [r4, #0x12] + ldr r1, _080511B4 @ =gUnk_080FC9A0 + cmp r5, #0 + beq _080511A8 + adds r1, #8 +_080511A8: + ldrb r0, [r4, #0x12] + adds r0, r1, r0 + ldrb r0, [r0] + strb r0, [r4, #0x10] + b _0805123A + .align 2, 0 +_080511B4: .4byte gUnk_080FC9A0 +_080511B8: + ldr r0, _080511C4 @ =gMenu + ldrb r0, [r0, #0x13] + cmp r0, #0 + beq _080511EC + movs r7, #5 + b _0805123A + .align 2, 0 +_080511C4: .4byte gMenu +_080511C8: + movs r0, #0x80 + lsls r0, r0, #0x12 + ldrb r0, [r0, #7] + movs r1, #3 + cmp r0, #0 + bne _080511D6 + movs r1, #4 +_080511D6: + ldr r2, _080511E8 @ =gMenu + ldrb r0, [r2, #0x11] + cmp r0, #5 + bne _080511EC + ldrb r2, [r2, #0x12] + cmp r1, r2 + bne _080511EC + movs r7, #8 + b _0805123A + .align 2, 0 +_080511E8: .4byte gMenu +_080511EC: + bl sub_08051358 + b _0805123A +_080511F2: + ldr r1, _08051210 @ =gMenu + ldrb r0, [r1, #0x11] + cmp r0, #5 + bne _08051218 + ldr r2, _08051214 @ =gUnk_080FC970 + ldrb r1, [r1, #0x12] + movs r0, #0x80 + lsls r0, r0, #0x12 + ldrb r0, [r0, #7] + cmp r0, #0 + beq _0805120A + adds r1, #8 +_0805120A: + adds r0, r1, r2 + ldrb r7, [r0] + b _0805123A + .align 2, 0 +_08051210: .4byte gMenu +_08051214: .4byte gUnk_080FC970 +_08051218: + movs r7, #6 + b _0805123A +_0805121C: + movs r0, #0x80 + lsls r0, r0, #0x12 + ldrb r0, [r0, #7] + movs r7, #1 + cmp r0, #0 + bne _0805123A + movs r7, #4 + b _0805123A +_0805122C: + movs r0, #0x80 + lsls r0, r0, #0x12 + ldrb r0, [r0, #7] + movs r7, #2 + cmp r0, #0 + bne _0805123A + movs r7, #7 +_0805123A: + ldr r0, _08051250 @ =gMenu + ldrb r4, [r0, #1] + subs r0, r7, #1 + cmp r0, #7 + bhi _08051322 + lsls r0, r0, #2 + ldr r1, _08051254 @ =_08051258 + adds r0, r0, r1 + ldr r0, [r0] + mov pc, r0 + .align 2, 0 +_08051250: .4byte gMenu +_08051254: .4byte _08051258 +_08051258: @ jump table + .4byte _08051278 @ case 0 + .4byte _0805127C @ case 1 + .4byte _08051280 @ case 2 + .4byte _08051284 @ case 3 + .4byte _08051288 @ case 4 + .4byte _080512C0 @ case 5 + .4byte _080512B8 @ case 6 + .4byte _080512EC @ case 7 +_08051278: + movs r4, #0 + b _08051322 +_0805127C: + movs r4, #1 + b _08051322 +_08051280: + movs r4, #2 + b _08051322 +_08051284: + adds r4, #1 + b _08051322 +_08051288: + ldr r3, _080512B0 @ =gMenu + ldrb r0, [r3, #0x13] + cmp r0, #0 + beq _08051322 + subs r0, #1 + movs r2, #0 + strb r0, [r3, #0x13] + ldr r1, _080512B4 @ =gUnk_02002A40 + ldrb r0, [r3, #0x13] + adds r1, #0x80 + adds r0, r0, r1 + strb r2, [r0] + ldrb r0, [r3, #0x13] + adds r0, #1 + adds r0, r0, r1 + strb r2, [r0] + movs r0, #0x6c + bl sub_08051574 + b _08051322 + .align 2, 0 +_080512B0: .4byte gMenu +_080512B4: .4byte gUnk_02002A40 +_080512B8: + movs r0, #0 + bl sub_08051480 + b _08051322 +_080512C0: + ldr r2, _080512E4 @ =gUnk_02001A40 + ldr r0, _080512E8 @ =gMenu + ldrb r1, [r0, #0x10] + lsls r1, r1, #1 + ldrb r0, [r0, #0x11] + lsls r0, r0, #6 + adds r0, #0xc3 + adds r1, r1, r0 + lsls r1, r1, #1 + adds r1, r1, r2 + ldrh r0, [r1] + lsrs r0, r0, #1 + lsls r0, r0, #0x18 + lsrs r0, r0, #0x18 + bl sub_08051480 + b _08051322 + .align 2, 0 +_080512E4: .4byte gUnk_02001A40 +_080512E8: .4byte gMenu +_080512EC: + movs r3, #5 + ldr r0, _08051350 @ =gUnk_02002A40 + adds r6, r0, #0 + adds r6, #0x80 + movs r5, #0 +_080512F6: + adds r2, r3, r6 + ldrb r1, [r2] + cmp r1, #0 + beq _08051302 + cmp r1, #0x20 + bne _0805130A +_08051302: + strb r5, [r2] + subs r3, #1 + cmp r3, #0 + bge _080512F6 +_0805130A: + adds r0, #0x80 + ldrb r0, [r0] + movs r7, #3 + cmp r0, #0 + beq _08051316 + movs r7, #2 +_08051316: + movs r0, #0x6a + bl sub_08051574 + adds r0, r7, #0 + bl sub_080A7114 +_08051322: + movs r0, #0x80 + lsls r0, r0, #0x12 + ldrb r0, [r0, #7] + movs r1, #2 + cmp r0, #0 + bne _08051330 + movs r1, #3 +_08051330: + adds r0, r4, r1 + bl __modsi3 + adds r4, r0, #0 + ldr r1, _08051354 @ =gMenu + ldrb r0, [r1, #1] + cmp r0, r4 + beq _0805134C + strb r4, [r1, #1] + bl sub_08051458 + movs r0, #0x68 + bl PlaySFX +_0805134C: + pop {r4, r5, r6, r7, pc} + .align 2, 0 +_08051350: .4byte gUnk_02002A40 +_08051354: .4byte gMenu + + thumb_func_start sub_08051358 +sub_08051358: @ 0x08051358 + push {lr} + ldr r2, _08051384 @ =gMenu + movs r0, #0x80 + lsls r0, r0, #0x12 + ldrb r0, [r0, #7] + movs r1, #3 + cmp r0, #0 + bne _0805136A + movs r1, #4 +_0805136A: + strb r1, [r2, #0x12] + ldrh r1, [r2, #0x10] + ldr r0, _08051388 @ =0x0000050B + cmp r1, r0 + beq _08051382 + movs r0, #5 + strb r0, [r2, #0x11] + movs r0, #0xb + strb r0, [r2, #0x10] + movs r0, #0x67 + bl PlaySFX +_08051382: + pop {pc} + .align 2, 0 +_08051384: .4byte gMenu +_08051388: .4byte 0x0000050B + + thumb_func_start sub_0805138C +sub_0805138C: @ 0x0805138C + push {lr} + ldr r1, _080513A0 @ =gUnk_080FC9B0 + ldr r0, _080513A4 @ =gMenu + ldrb r0, [r0, #6] + lsls r0, r0, #2 + adds r0, r0, r1 + ldr r0, [r0] + bl _call_via_r0 + pop {pc} + .align 2, 0 +_080513A0: .4byte gUnk_080FC9B0 +_080513A4: .4byte gMenu + + thumb_func_start sub_080513A8 +sub_080513A8: @ 0x080513A8 + push {lr} + movs r0, #5 + movs r1, #0 + bl sub_08050318 + ldr r1, _080513BC @ =gMenu + movs r0, #1 + strb r0, [r1, #6] + pop {pc} + .align 2, 0 +_080513BC: .4byte gMenu + + thumb_func_start sub_080513C0 +sub_080513C0: @ 0x080513C0 + push {lr} + movs r0, #0 + bl sub_0807CDA4 + adds r2, r0, #0 + cmp r2, #0 + beq _08051412 + cmp r2, #0 + bgt _080513DC + movs r0, #1 + rsbs r0, r0, #0 + cmp r2, r0 + beq _080513F8 + b _08051412 +_080513DC: + cmp r2, #1 + bne _08051412 + ldr r1, _080513F4 @ =gUnk_02019EE0 + adds r0, r1, #0 + adds r0, #8 + ldrb r1, [r1, #6] + adds r0, r0, r1 + strb r2, [r0] + movs r0, #3 + bl sub_080A7114 + b _08051412 + .align 2, 0 +_080513F4: .4byte gUnk_02019EE0 +_080513F8: + ldr r0, _08051414 @ =gUnk_02019EE0 + ldrb r0, [r0, #6] + bl sub_0805194C + movs r0, #6 + movs r1, #0 + bl sub_08050318 + ldr r1, _08051418 @ =gMenu + movs r0, #0x1e + strh r0, [r1, #8] + movs r0, #2 + strb r0, [r1, #6] +_08051412: + pop {pc} + .align 2, 0 +_08051414: .4byte gUnk_02019EE0 +_08051418: .4byte gMenu + + thumb_func_start sub_0805141C +sub_0805141C: @ 0x0805141C + push {lr} + ldr r1, _0805143C @ =gMenu + ldrh r0, [r1, #8] + cmp r0, #0 + bne _08051444 + ldr r0, _08051440 @ =gUnk_03000FF0 + ldrh r1, [r0, #2] + movs r0, #9 + ands r0, r1 + cmp r0, #0 + beq _08051448 + movs r0, #3 + bl sub_080A7114 + b _08051448 + .align 2, 0 +_0805143C: .4byte gMenu +_08051440: .4byte gUnk_03000FF0 +_08051444: + subs r0, #1 + strh r0, [r1, #8] +_08051448: + pop {pc} + .align 2, 0 + + thumb_func_start sub_0805144C +sub_0805144C: @ 0x0805144C + push {lr} + movs r0, #0 + bl sub_080503BC + pop {pc} + .align 2, 0 + + thumb_func_start sub_08051458 +sub_08051458: @ 0x08051458 + push {lr} + ldr r0, _08051474 @ =gMenu + ldrb r0, [r0, #1] + adds r0, #9 + bl sub_080503A8 + ldr r0, _08051478 @ =gUnk_02001B40 + ldr r1, _0805147C @ =gUnk_02022030 + movs r2, #0x80 + lsls r2, r2, #3 + bl sub_0801D66C + pop {pc} + .align 2, 0 +_08051474: .4byte gMenu +_08051478: .4byte gUnk_02001B40 +_0805147C: .4byte gUnk_02022030 + + thumb_func_start sub_08051480 +sub_08051480: @ 0x08051480 + push {r4, lr} + adds r4, r0, #0 + bl sub_080514BC + ldr r2, _080514B4 @ =gMenu + ldrb r1, [r2, #0x13] + cmp r0, #0 + beq _080514B0 + cmp r0, #1 + beq _08051498 + adds r4, r0, #0 + subs r1, #1 +_08051498: + cmp r1, #5 + bls _0805149E + movs r1, #5 +_0805149E: + adds r0, r1, #1 + strb r0, [r2, #0x13] + ldr r0, _080514B8 @ =gUnk_02002A40 + adds r0, #0x80 + adds r0, r1, r0 + strb r4, [r0] + movs r0, #0x6b + bl sub_08051574 +_080514B0: + pop {r4, pc} + .align 2, 0 +_080514B4: .4byte gMenu +_080514B8: .4byte gUnk_02002A40 + + thumb_func_start sub_080514BC +sub_080514BC: @ 0x080514BC + push {lr} + adds r2, r0, #0 + movs r0, #0x80 + lsls r0, r0, #0x12 + ldrb r0, [r0, #7] + cmp r0, #0 + bne _080514D6 + cmp r2, #0 + beq _080514DA + cmp r2, #0xf + bhi _080514D6 + cmp r2, #0xe + bhs _080514DA +_080514D6: + movs r0, #1 + b _08051572 +_080514DA: + ldr r0, _08051500 @ =gMenu + ldrb r1, [r0, #0x13] + cmp r1, #0 + beq _08051570 + ldr r0, _08051504 @ =gUnk_02002A40 + adds r0, r0, r1 + adds r0, #0x7f + ldrb r1, [r0] + adds r0, r1, #0 + subs r0, #0xa4 + cmp r0, #0x28 + bhi _08051522 + cmp r2, #0xe + beq _0805153C + cmp r2, #0xe + bhi _08051508 + cmp r2, #0 + beq _0805150E + b _0805153C + .align 2, 0 +_08051500: .4byte gMenu +_08051504: .4byte gUnk_02002A40 +_08051508: + cmp r2, #0xf + beq _08051518 + b _0805153C +_0805150E: + cmp r1, #0xc2 + bhi _0805151C + adds r0, r1, #0 + adds r0, #0x33 + b _08051572 +_08051518: + cmp r1, #0xc2 + bls _08051570 +_0805151C: + adds r0, r1, #0 + adds r0, #0xa + b _08051572 +_08051522: + adds r0, r1, #0 + subs r0, #0xcd + cmp r0, #9 + bhi _0805154C + cmp r2, #0xe + beq _08051546 + cmp r2, #0xe + bhi _08051538 + cmp r2, #0 + beq _08051540 + b _0805154C +_08051538: + cmp r2, #0xf + bne _0805154C +_0805153C: + adds r0, r1, #0 + b _08051572 +_08051540: + adds r0, r1, #0 + adds r0, #0x29 + b _08051572 +_08051546: + adds r0, r1, #0 + subs r0, #0xa + b _08051572 +_0805154C: + adds r0, r1, #0 + subs r0, #0xd7 + cmp r0, #0x28 + bhi _08051570 + cmp r2, #0xe + beq _08051560 + cmp r2, #0xe + bls _08051560 + cmp r2, #0xf + beq _08051566 +_08051560: + adds r0, r1, #0 + subs r0, #0x33 + b _08051572 +_08051566: + cmp r1, #0xf5 + bls _08051570 + adds r0, r1, #0 + subs r0, #0x29 + b _08051572 +_08051570: + movs r0, #0 +_08051572: + pop {pc} + + thumb_func_start sub_08051574 +sub_08051574: @ 0x08051574 + push {lr} + bl PlaySFX + ldr r0, _08051594 @ =gUnk_02002A40 + ldr r3, _08051598 @ =gUnk_02019EE0 + ldrb r1, [r3, #6] + ldr r2, _0805159C @ =0x000004B4 + muls r1, r2, r1 + adds r3, #0xc + adds r1, r1, r3 + bl sub_0801D66C + bl sub_0805070C + pop {pc} + .align 2, 0 +_08051594: .4byte gUnk_02002A40 +_08051598: .4byte gUnk_02019EE0 +_0805159C: .4byte 0x000004B4 + + thumb_func_start sub_080515A0 +sub_080515A0: @ 0x080515A0 + push {lr} + ldr r1, _080515BC @ =gUnk_080FC9BC + ldr r0, _080515C0 @ =gMenu + ldrb r0, [r0, #5] + lsls r0, r0, #2 + adds r0, r0, r1 + ldr r0, [r0] + bl _call_via_r0 + ldr r0, _080515C4 @ =gUnk_02019EE0 + ldrb r0, [r0, #6] + bl sub_08050A64 + pop {pc} + .align 2, 0 +_080515BC: .4byte gUnk_080FC9BC +_080515C0: .4byte gMenu +_080515C4: .4byte gUnk_02019EE0 + + thumb_func_start sub_080515C8 +sub_080515C8: @ 0x080515C8 + push {lr} + movs r0, #1 + bl sub_080A7114 + pop {pc} + .align 2, 0 + + thumb_func_start sub_080515D4 +sub_080515D4: @ 0x080515D4 + push {r4, lr} + ldr r0, _080515FC @ =gUnk_02019EE0 + ldrb r0, [r0] + cmp r0, #0 + beq _080515E0 + b _080516D8 +_080515E0: + ldr r1, _08051600 @ =gMenu + movs r0, #4 + strh r0, [r1, #8] + ldrb r4, [r1, #1] + ldr r0, _08051604 @ =gUnk_03000FF0 + ldrh r0, [r0, #2] + subs r0, #1 + cmp r0, #0x1f + bhi _080516C8 + lsls r0, r0, #2 + ldr r1, _08051608 @ =_0805160C + adds r0, r0, r1 + ldr r0, [r0] + mov pc, r0 + .align 2, 0 +_080515FC: .4byte gUnk_02019EE0 +_08051600: .4byte gMenu +_08051604: .4byte gUnk_03000FF0 +_08051608: .4byte _0805160C +_0805160C: @ jump table + .4byte _08051694 @ case 0 + .4byte _0805168C @ case 1 + .4byte _080516C8 @ case 2 + .4byte _080516C8 @ case 3 + .4byte _080516C8 @ case 4 + .4byte _080516C8 @ case 5 + .4byte _080516C8 @ case 6 + .4byte _08051694 @ case 7 + .4byte _080516C8 @ case 8 + .4byte _080516C8 @ case 9 + .4byte _080516C8 @ case 10 + .4byte _080516C8 @ case 11 + .4byte _080516C8 @ case 12 + .4byte _080516C8 @ case 13 + .4byte _080516C8 @ case 14 + .4byte _080516C6 @ case 15 + .4byte _080516C8 @ case 16 + .4byte _080516C8 @ case 17 + .4byte _080516C8 @ case 18 + .4byte _080516C8 @ case 19 + .4byte _080516C8 @ case 20 + .4byte _080516C8 @ case 21 + .4byte _080516C8 @ case 22 + .4byte _080516C8 @ case 23 + .4byte _080516C8 @ case 24 + .4byte _080516C8 @ case 25 + .4byte _080516C8 @ case 26 + .4byte _080516C8 @ case 27 + .4byte _080516C8 @ case 28 + .4byte _080516C8 @ case 29 + .4byte _080516C8 @ case 30 + .4byte _080516C2 @ case 31 +_0805168C: + ldr r1, _080516B0 @ =gMenu + movs r0, #0 + strb r0, [r1, #1] + movs r4, #0 +_08051694: + cmp r4, #1 + bne _080516B4 + movs r0, #4 + movs r1, #0 + bl sub_08050318 + movs r0, #2 + bl sub_080A7114 + movs r0, #0x6a + bl PlaySFX + b _080516C8 + .align 2, 0 +_080516B0: .4byte gMenu +_080516B4: + movs r0, #0 + bl sub_080503BC + movs r0, #0x6c + bl PlaySFX + b _080516C8 +_080516C2: + movs r4, #0 + b _080516C8 +_080516C6: + movs r4, #1 +_080516C8: + ldr r1, _080516DC @ =gMenu + ldrb r0, [r1, #1] + cmp r0, r4 + beq _080516D8 + strb r4, [r1, #1] + movs r0, #0x69 + bl PlaySFX +_080516D8: + pop {r4, pc} + .align 2, 0 +_080516DC: .4byte gMenu + + thumb_func_start sub_080516E0 +sub_080516E0: @ 0x080516E0 + push {r4, lr} + movs r0, #1 + bl sub_0807CDA4 + cmp r0, #0 + beq _08051706 + ldr r4, _08051708 @ =gUnk_02019EE0 + ldrb r0, [r4, #6] + bl sub_0805194C + ldrb r0, [r4, #6] + bl sub_08050AFC + ldr r1, _0805170C @ =gMenu + movs r0, #2 + strh r0, [r1, #8] + movs r0, #0 + bl sub_080503BC +_08051706: + pop {r4, pc} + .align 2, 0 +_08051708: .4byte gUnk_02019EE0 +_0805170C: .4byte gMenu + + thumb_func_start sub_08051710 +sub_08051710: @ 0x08051710 + push {lr} + ldr r1, _0805172C @ =gUnk_080FC9C8 + ldr r0, _08051730 @ =gMenu + ldrb r0, [r0, #5] + lsls r0, r0, #2 + adds r0, r0, r1 + ldr r0, [r0] + bl _call_via_r0 + ldr r0, _08051734 @ =gUnk_02019EE0 + ldrb r0, [r0, #6] + bl sub_08050A64 + pop {pc} + .align 2, 0 +_0805172C: .4byte gUnk_080FC9C8 +_08051730: .4byte gMenu +_08051734: .4byte gUnk_02019EE0 + + thumb_func_start sub_08051738 +sub_08051738: @ 0x08051738 + push {r4, r5, r6, r7, lr} + ldr r1, _08051768 @ =gUnk_02019EE0 + movs r0, #4 + strb r0, [r1, #7] + movs r4, #0 + movs r3, #0 + adds r5, r1, #0 + adds r7, r5, #0 + adds r7, #8 + ldr r6, _0805176C @ =gUnk_02000090 +_0805174C: + adds r0, r3, r7 + ldrb r0, [r0] + lsls r0, r0, #0x18 + asrs r0, r0, #0x18 + cmp r0, #1 + bne _08051770 + ldrb r1, [r5, #6] + movs r2, #4 + eors r1, r3 + rsbs r0, r1, #0 + orrs r0, r1 + asrs r0, r0, #0x1f + ands r2, r0 + b _08051774 + .align 2, 0 +_08051768: .4byte gUnk_02019EE0 +_0805176C: .4byte gUnk_02000090 +_08051770: + adds r4, #1 + adds r2, r4, #0 +_08051774: + adds r0, r3, r6 + strb r2, [r0] + adds r3, #1 + cmp r3, #2 + bls _0805174C + cmp r4, #0 + bne _0805179C + ldr r1, _08051798 @ =gMenu + movs r0, #0x3c + strh r0, [r1, #8] + movs r0, #1 + movs r1, #0 + bl sub_08050318 + movs r0, #3 + bl sub_080A7114 + b _080517A2 + .align 2, 0 +_08051798: .4byte gMenu +_0805179C: + movs r0, #1 + bl sub_080A7114 +_080517A2: + adds r4, #1 + ldr r0, _080517B0 @ =gMenu + strb r4, [r0, #0x16] + movs r1, #4 + strb r1, [r0, #0x13] + strb r4, [r0, #0x14] + pop {r4, r5, r6, r7, pc} + .align 2, 0 +_080517B0: .4byte gMenu + + thumb_func_start sub_080517B4 +sub_080517B4: @ 0x080517B4 + push {r4, lr} + adds r2, r0, #0 + ldr r0, _080517E4 @ =gUnk_02019EE0 + ldrb r1, [r0, #7] + adds r4, r0, #0 + cmp r2, #0 + beq _080517DE + adds r1, r1, r2 + cmp r1, #4 + bhi _080517DC + ldr r3, _080517E8 @ =gUnk_02000090 +_080517CA: + adds r0, r1, r3 + ldrb r0, [r0] + cmp r0, #0 + beq _080517D6 + cmp r0, #4 + bne _080517DE +_080517D6: + adds r1, r1, r2 + cmp r1, #4 + bls _080517CA +_080517DC: + ldrb r1, [r4, #7] +_080517DE: + adds r0, r1, #0 + pop {r4, pc} + .align 2, 0 +_080517E4: .4byte gUnk_02019EE0 +_080517E8: .4byte gUnk_02000090 + + thumb_func_start sub_080517EC +sub_080517EC: @ 0x080517EC + push {r4, lr} + ldr r0, _08051810 @ =gUnk_02019EE0 + ldrb r1, [r0] + adds r2, r0, #0 + cmp r1, #0 + bne _0805186E + movs r4, #0 + ldr r0, _08051814 @ =gUnk_03000FF0 + ldrh r0, [r0, #2] + cmp r0, #8 + beq _0805182C + cmp r0, #8 + bgt _08051818 + cmp r0, #1 + beq _0805182C + cmp r0, #2 + beq _08051848 + b _08051858 + .align 2, 0 +_08051810: .4byte gUnk_02019EE0 +_08051814: .4byte gUnk_03000FF0 +_08051818: + cmp r0, #0x40 + beq _08051822 + cmp r0, #0x80 + beq _08051828 + b _08051858 +_08051822: + movs r4, #1 + rsbs r4, r4, #0 + b _08051858 +_08051828: + movs r4, #1 + b _08051858 +_0805182C: + ldrb r0, [r2, #7] + cmp r0, #2 + bhi _08051848 + movs r0, #2 + movs r1, #0 + bl sub_08050318 + movs r0, #2 + bl sub_080A7114 + movs r0, #0x6a + bl PlaySFX + b _08051858 +_08051848: + movs r0, #4 + strb r0, [r2, #7] + movs r0, #0x6c + bl PlaySFX + movs r0, #0 + bl sub_080503BC +_08051858: + adds r0, r4, #0 + bl sub_080517B4 + ldr r1, _08051870 @ =gUnk_02019EE0 + ldrb r2, [r1, #7] + cmp r0, r2 + beq _0805186E + strb r0, [r1, #7] + movs r0, #0x69 + bl PlaySFX +_0805186E: + pop {r4, pc} + .align 2, 0 +_08051870: .4byte gUnk_02019EE0 + + thumb_func_start sub_08051874 +sub_08051874: @ 0x08051874 + push {r4, lr} + movs r1, #0x80 + lsls r1, r1, #0x12 + ldr r4, _080518B8 @ =gUnk_02019EE0 + ldrb r0, [r4, #7] + strb r0, [r1, #4] + movs r0, #0 + bl sub_0807CDA4 + adds r1, r0, #0 + adds r0, r4, #0 + adds r0, #8 + ldrb r2, [r4, #7] + adds r0, r0, r2 + strb r1, [r0] + movs r0, #1 + rsbs r0, r0, #0 + cmp r1, r0 + beq _080518C4 + cmp r1, #1 + bne _080518DE + ldr r0, _080518BC @ =gUnk_02002A40 + ldrb r1, [r4, #7] + ldr r2, _080518C0 @ =0x000004B4 + muls r1, r2, r1 + adds r3, r4, #0 + adds r3, #0xc + adds r1, r1, r3 + bl sub_0801D66C + movs r0, #0 + bl sub_080503BC + b _080518DE + .align 2, 0 +_080518B8: .4byte gUnk_02019EE0 +_080518BC: .4byte gUnk_02002A40 +_080518C0: .4byte 0x000004B4 +_080518C4: + ldrb r0, [r4, #7] + bl sub_0805194C + movs r0, #3 + movs r1, #0 + bl sub_08050318 + ldr r1, _080518E0 @ =gMenu + movs r0, #0x1e + strh r0, [r1, #8] + movs r0, #3 + bl sub_080A7114 +_080518DE: + pop {r4, pc} + .align 2, 0 +_080518E0: .4byte gMenu + + thumb_func_start sub_080518E4 +sub_080518E4: @ 0x080518E4 + push {lr} + ldr r1, _08051904 @ =gMenu + ldrh r0, [r1, #8] + cmp r0, #0 + bne _0805190C + ldr r0, _08051908 @ =gUnk_03000FF0 + ldrh r1, [r0, #2] + movs r0, #9 + ands r0, r1 + cmp r0, #0 + beq _08051910 + movs r0, #0 + bl sub_080503BC + b _08051910 + .align 2, 0 +_08051904: .4byte gMenu +_08051908: .4byte gUnk_03000FF0 +_0805190C: + subs r0, #1 + strh r0, [r1, #8] +_08051910: + pop {pc} + .align 2, 0 + + thumb_func_start sub_08051914 +sub_08051914: @ 0x08051914 + push {lr} + ldr r1, _08051940 @ =gMenu + ldrb r0, [r1, #5] + cmp r0, #0 + bne _0805193E + movs r0, #1 + strb r0, [r1, #5] + movs r2, #0x80 + lsls r2, r2, #0x12 + ldr r1, _08051944 @ =gUnk_02002A40 + ldrb r0, [r1, #2] + strb r0, [r2, #5] + ldrb r0, [r1, #3] + strb r0, [r2, #6] + ldr r1, _08051948 @ =gUnk_03001000 + movs r0, #2 + strb r0, [r1, #3] + movs r0, #5 + movs r1, #8 + bl DoFade +_0805193E: + pop {pc} + .align 2, 0 +_08051940: .4byte gMenu +_08051944: .4byte gUnk_02002A40 +_08051948: .4byte gUnk_03001000 + + thumb_func_start sub_0805194C +sub_0805194C: @ 0x0805194C + push {r4, lr} + ldr r3, _08051980 @ =gUnk_02019EE0 + adds r1, r3, #0 + adds r1, #8 + adds r1, r0, r1 + movs r2, #0 + strb r2, [r1] + ldr r1, _08051984 @ =0x000004B4 + adds r4, r0, #0 + muls r4, r1, r4 + adds r3, #0xc + adds r4, r4, r3 + adds r0, r4, #0 + bl _DmaZero + movs r0, #1 + strb r0, [r4, #2] + strb r0, [r4, #3] + adds r1, r4, #0 + adds r1, #0xaa + movs r0, #0x18 + strb r0, [r1] + adds r4, #0xab + strb r0, [r4] + pop {r4, pc} + .align 2, 0 +_08051980: .4byte gUnk_02019EE0 +_08051984: .4byte 0x000004B4 + + thumb_func_start HandleGameplayScreen +HandleGameplayScreen: @ 0x08051988 + push {lr} + ldr r1, _080519A4 @ =gScreenTransition + ldr r0, [r1] + adds r0, #1 + str r0, [r1] + ldr r1, _080519A8 @ =gUnk_080FC9D8 + ldr r0, _080519AC @ =gUnk_03001000 + ldrb r0, [r0, #3] + lsls r0, r0, #2 + adds r0, r0, r1 + ldr r0, [r0] + bl _call_via_r0 + pop {pc} + .align 2, 0 +_080519A4: .4byte gScreenTransition +_080519A8: .4byte gUnk_080FC9D8 +_080519AC: .4byte gUnk_03001000 + + thumb_func_start sub_080519B0 +sub_080519B0: @ 0x080519B0 + push {r4, r5, lr} + ldr r0, _08051A04 @ =gFadeControl + ldrb r5, [r0] + cmp r5, #0 + bne _08051A02 + movs r0, #1 + bl sub_0801DA90 + bl sub_080A3210 + bl sub_0801DA7C + bl sub_080A7124 + bl sub_0807059C + ldr r4, _08051A08 @ =gScreenTransition + adds r0, r4, #0 + movs r1, #0xb0 + bl _DmaZero + bl sub_08049CD4 + bl sub_080300AC + bl sub_0807CA18 + ldr r0, _08051A0C @ =gUnk_02002AC8 + adds r1, r4, #0 + adds r1, #0xc + movs r2, #0x20 + bl sub_0801D66C + movs r0, #4 + strb r0, [r4, #9] + bl sub_08053518 + ldr r1, _08051A10 @ =gUnk_03001000 + movs r0, #1 + strb r0, [r1, #3] + strb r5, [r1, #4] +_08051A02: + pop {r4, r5, pc} + .align 2, 0 +_08051A04: .4byte gFadeControl +_08051A08: .4byte gScreenTransition +_08051A0C: .4byte gUnk_02002AC8 +_08051A10: .4byte gUnk_03001000 + + thumb_func_start sub_08051A14 +sub_08051A14: @ 0x08051A14 + push {lr} + movs r0, #1 + bl sub_0801DA90 + ldr r1, _08051A70 @ =gFadeControl + movs r0, #1 + rsbs r0, r0, #0 + str r0, [r1, #4] + ldr r0, _08051A74 @ =gUnk_03000000 + ldr r1, _08051A78 @ =0x00000B74 + bl _DmaZero + ldr r0, _08051A7C @ =gUnk_02032EC0 + movs r1, #0xed + lsls r1, r1, #2 + bl _DmaZero + bl EraseAllEntities + bl sub_080197AC + bl sub_08080668 + bl sub_080ADD30 + movs r0, #1 + bl sub_0801CFA8 + bl sub_0806FD8C + ldr r2, _08051A80 @ =gRoomControls + ldr r1, _08051A84 @ =gScreenTransition + ldrb r0, [r1, #0xc] + strb r0, [r2, #4] + ldrb r0, [r1, #0xd] + strb r0, [r2, #5] + bl sub_08053320 + ldr r1, _08051A88 @ =gUnk_02024490 + movs r0, #1 + strb r0, [r1] + ldr r1, _08051A8C @ =gUnk_03001000 + movs r0, #2 + strb r0, [r1, #3] + pop {pc} + .align 2, 0 +_08051A70: .4byte gFadeControl +_08051A74: .4byte gUnk_03000000 +_08051A78: .4byte 0x00000B74 +_08051A7C: .4byte gUnk_02032EC0 +_08051A80: .4byte gRoomControls +_08051A84: .4byte gScreenTransition +_08051A88: .4byte gUnk_02024490 +_08051A8C: .4byte gUnk_03001000 + + thumb_func_start sub_08051A90 +sub_08051A90: @ 0x08051A90 + push {lr} + ldr r1, _08051AA4 @ =gUnk_080FC9E8 + ldr r0, _08051AA8 @ =gUnk_03001000 + ldrb r0, [r0, #4] + lsls r0, r0, #2 + adds r0, r0, r1 + ldr r0, [r0] + bl _call_via_r0 + pop {pc} + .align 2, 0 +_08051AA4: .4byte gUnk_080FC9E8 +_08051AA8: .4byte gUnk_03001000 + + thumb_func_start InitializeNewRoom +InitializeNewRoom: @ 0x08051AAC + push {lr} + bl sub_0805E5A8 + ldr r1, _08051AE4 @ =gScreen + movs r2, #0 + movs r0, #0xba + lsls r0, r0, #5 + strh r0, [r1] + ldr r1, _08051AE8 @ =gUnk_03001000 + movs r0, #1 + strb r0, [r1, #4] + ldr r0, _08051AEC @ =gScreenTransition + strb r2, [r0, #8] + strb r2, [r0, #4] + strb r2, [r0, #5] + bl sub_08056418 + bl sub_08052CFC + movs r0, #0 + bl sub_0801C370 + bl InitializeEntities + bl sub_0801855C + pop {pc} + .align 2, 0 +_08051AE4: .4byte gScreen +_08051AE8: .4byte gUnk_03001000 +_08051AEC: .4byte gScreenTransition + + thumb_func_start sub_08051AF0 +sub_08051AF0: @ 0x08051AF0 + push {r4, r5, lr} + bl sub_0805E5C0 + bl sub_0805BBBC + cmp r0, #0 + bne _08051B02 + bl sub_0807FC40 +_08051B02: + bl sub_0801B060 + bl sub_08000108 + bl sub_0801C344 + bl sub_0805E5F8 + bl sub_080AD90C + bl sub_0801C208 + bl sub_08078CB4 + bl sub_080AD9B0 + bl sub_080AD918 + ldr r0, _08051BB0 @ =gFadeControl + ldrb r0, [r0] + cmp r0, #0 + bne _08051BAE + ldr r0, _08051BB4 @ =gRoomControls + ldrh r0, [r0] + cmp r0, #0 + bne _08051BAE + bl sub_08052F1C + ldr r5, _08051BB8 @ =gArea + movs r0, #0x86 + lsls r0, r0, #4 + adds r3, r5, r0 + ldr r1, _08051BBC @ =0x00000864 + adds r0, r5, r1 + ldr r1, [r3] + ldr r2, [r0] + cmp r1, r2 + beq _08051B5A + str r2, [r3] + ldr r0, _08051BC0 @ =0x800B0000 + orrs r2, r0 + adds r0, r2, #0 + bl PlaySFX +_08051B5A: + bl sub_0805E9F4 + bl sub_0805BC04 + adds r4, r0, #0 + cmp r4, #0 + bne _08051BAE + bl sub_08052C5C + bl sub_0805E5B4 + bl sub_08051E04 + bl sub_080300C4 + ldr r1, _08051BC4 @ =gUnk_03001000 + movs r0, #2 + strb r0, [r1, #4] + movs r0, #0 + bl sub_08078A90 + ldr r0, _08051BC8 @ =gUnk_02034490 + strb r4, [r0] + adds r0, r5, #0 + adds r0, #0x28 + ldrb r0, [r0] + cmp r0, #0xff + beq _08051B96 + bl sub_0801855C +_08051B96: + bl sub_08052BF8 + bl sub_08053178 + ldr r0, _08051BCC @ =gRoomVars + ldrb r0, [r0] + cmp r0, #0 + bne _08051BAE + movs r0, #0 + movs r1, #1 + bl sub_0805E4E0 +_08051BAE: + pop {r4, r5, pc} + .align 2, 0 +_08051BB0: .4byte gFadeControl +_08051BB4: .4byte gRoomControls +_08051BB8: .4byte gArea +_08051BBC: .4byte 0x00000864 +_08051BC0: .4byte 0x800B0000 +_08051BC4: .4byte gUnk_03001000 +_08051BC8: .4byte gUnk_02034490 +_08051BCC: .4byte gRoomVars + + thumb_func_start sub_08051BD0 +sub_08051BD0: @ 0x08051BD0 + push {lr} + bl sub_080705AC + cmp r0, #0 + bne _08051C9C + bl sub_0804AA84 + cmp r0, #0 + bne _08051C9C + bl sub_0805340C + ldr r0, _08051C5C @ =gUnk_03001000 + ldrb r0, [r0, #4] + cmp r0, #2 + bne _08051C9C + ldr r0, _08051C60 @ =gTextBox + ldrb r1, [r0] + movs r0, #0x7f + ands r0, r1 + cmp r0, #0 + bne _08051C02 + ldr r0, _08051C64 @ =gUnk_03003DC0 + ldrh r0, [r0, #8] + cmp r0, #0 + beq _08051C06 +_08051C02: + bl sub_08078B48 +_08051C06: + bl sub_080AD90C + bl sub_0805E5C0 + bl sub_08080A40 + bl sub_080175F4 + bl sub_0807FC40 + bl sub_0801B060 + bl sub_08000108 + bl sub_08052C3C + bl sub_0801C344 + bl sub_0805E5F8 + bl sub_0801C208 + bl sub_08078CB4 + bl sub_080AD9B0 + bl sub_0805291C + bl sub_08052C5C + bl sub_080528B4 + bl sub_080185F8 + bl sub_080AD918 + ldr r0, _08051C68 @ =gRoomControls + ldrh r2, [r0] + cmp r2, #1 + beq _08051C6C + cmp r2, #2 + beq _08051C88 + b _08051C9C + .align 2, 0 +_08051C5C: .4byte gUnk_03001000 +_08051C60: .4byte gTextBox +_08051C64: .4byte gUnk_03003DC0 +_08051C68: .4byte gRoomControls +_08051C6C: + ldr r0, _08051C80 @ =gPlayerState + movs r1, #0x17 + strb r1, [r0, #0xc] + ldr r0, _08051C84 @ =gUnk_03001000 + strb r2, [r0, #4] + bl sub_0805E59C + bl sub_08051D98 + b _08051C9C + .align 2, 0 +_08051C80: .4byte gPlayerState +_08051C84: .4byte gUnk_03001000 +_08051C88: + ldr r1, _08051CA0 @ =gPlayerState + movs r0, #0x17 + strb r0, [r1, #0xc] + ldr r1, _08051CA4 @ =gUnk_03001000 + movs r0, #1 + strb r0, [r1, #4] + bl sub_0805E59C + bl sub_08051DCC +_08051C9C: + pop {pc} + .align 2, 0 +_08051CA0: .4byte gPlayerState +_08051CA4: .4byte gUnk_03001000 + + thumb_func_start sub_08051CA8 +sub_08051CA8: @ 0x08051CA8 + push {lr} + bl sub_080705AC + cmp r0, #0 + bne _08051CEA + bl sub_0805E5C0 + bl sub_080175F4 + bl sub_0801C344 + bl sub_0805E5F8 + bl sub_080AD90C + bl sub_0801C208 + bl sub_08078CB4 + bl sub_080AD9B0 + bl sub_0805291C + bl sub_080528B4 + bl sub_080AD918 + ldr r0, _08051CEC @ =gFadeControl + ldrb r0, [r0] + cmp r0, #0 + bne _08051CEA + bl sub_0805E5B4 +_08051CEA: + pop {pc} + .align 2, 0 +_08051CEC: .4byte gFadeControl + + thumb_func_start sub_08051CF0 +sub_08051CF0: @ 0x08051CF0 + push {r4, r5, r6, lr} + bl sub_080AD90C + bl sub_0801C208 + bl sub_080AD9B0 + ldr r5, _08051D20 @ =gUnk_03001000 + movs r6, #1 + strb r6, [r5, #0xb] + bl sub_080AD918 + ldr r0, _08051D24 @ =gFadeControl + ldrb r4, [r0] + cmp r4, #0 + bne _08051D1E + movs r0, #1 + bl sub_0801DA90 + strb r6, [r5, #3] + strb r4, [r5, #4] + ldr r0, _08051D28 @ =gScreenTransition + strb r6, [r0, #8] +_08051D1E: + pop {r4, r5, r6, pc} + .align 2, 0 +_08051D20: .4byte gUnk_03001000 +_08051D24: .4byte gFadeControl +_08051D28: .4byte gScreenTransition + + thumb_func_start sub_08051D2C +sub_08051D2C: @ 0x08051D2C + push {lr} + movs r0, #7 + movs r1, #8 + bl DoFade + movs r0, #3 + bl InitScreen + pop {pc} + .align 2, 0 + + thumb_func_start InitializeEntities +InitializeEntities: @ 0x08051D40 + push {lr} + bl sub_08052EA0 + bl sub_0804AF90 + bl sub_0804AFDC + bl InitializePlayer + ldr r1, _08051D90 @ =gUnk_03004030 + movs r0, #0 + str r0, [r1] + bl sub_0807C740 + ldr r1, _08051D94 @ =gUnk_02000070 + movs r0, #1 + strb r0, [r1] + bl sub_0805283C + movs r0, #0 + movs r1, #0 + bl sub_0801D79C + bl LoadRoom + bl CreateZeldaFollower + bl sub_0804AFF4 + bl sub_0805329C + bl sub_08000108 + movs r0, #1 + rsbs r0, r0, #0 + bl sub_0805BB74 + bl sub_080531F8 + pop {pc} + .align 2, 0 +_08051D90: .4byte gUnk_03004030 +_08051D94: .4byte gUnk_02000070 + + thumb_func_start sub_08051D98 +sub_08051D98: @ 0x08051D98 + push {lr} + bl sub_08052EA0 + ldr r1, _08051DC8 @ =gRoomVars + movs r0, #1 + strb r0, [r1] + bl sub_0805E9A8 + bl sub_0804AF90 + bl sub_0804AFDC + bl sub_0807C0DC + bl sub_0805283C + bl LoadRoom + bl sub_0804AFF4 + movs r0, #1 + bl sub_08078A90 + pop {pc} + .align 2, 0 +_08051DC8: .4byte gRoomVars + + thumb_func_start sub_08051DCC +sub_08051DCC: @ 0x08051DCC + push {r4, lr} + ldr r1, _08051DFC @ =gRoomControls + ldr r4, _08051E00 @ =gScreenTransition + ldrb r0, [r4, #0xc] + strb r0, [r1, #4] + ldrb r0, [r4, #0xd] + strb r0, [r1, #5] + bl sub_080528F0 + movs r0, #3 + strb r0, [r4, #9] + bl sub_08052CFC + bl sub_08052EA0 + bl sub_0805E9A8 + bl sub_0804AF90 + bl sub_0804AFDC + bl sub_0805283C + pop {r4, pc} + .align 2, 0 +_08051DFC: .4byte gRoomControls +_08051E00: .4byte gScreenTransition + + thumb_func_start sub_08051E04 +sub_08051E04: @ 0x08051E04 + push {lr} + bl sub_08052620 + cmp r0, #0 + beq _08051E60 + ldr r1, _08051E2C @ =gPlayerEntity + movs r2, #0x2e + ldrsh r0, [r1, r2] + cmp r0, #0 + bge _08051E1A + adds r0, #0xf +_08051E1A: + asrs r2, r0, #4 + movs r3, #0x32 + ldrsh r0, [r1, r3] + cmp r0, #0 + bge _08051E26 + adds r0, #0xf +_08051E26: + asrs r1, r0, #4 + ldr r3, _08051E30 @ =gUnk_08127F94 + b _08051E36 + .align 2, 0 +_08051E2C: .4byte gPlayerEntity +_08051E30: .4byte gUnk_08127F94 +_08051E34: + adds r3, #8 +_08051E36: + ldrb r0, [r3] + cmp r0, #0xff + beq _08051E60 + cmp r0, r2 + bhi _08051E34 + ldrb r0, [r3, #2] + cmp r0, r2 + blo _08051E34 + ldrb r0, [r3, #1] + cmp r0, r1 + bhi _08051E34 + ldrb r0, [r3, #3] + cmp r0, r1 + blo _08051E34 + ldr r2, _08051E64 @ =gUnk_02002A40 + movs r1, #1 + ldrb r3, [r3, #4] + lsls r1, r3 + ldr r0, [r2, #0x40] + orrs r0, r1 + str r0, [r2, #0x40] +_08051E60: + pop {pc} + .align 2, 0 +_08051E64: .4byte gUnk_02002A40 + + thumb_func_start sub_08051E68 +sub_08051E68: @ 0x08051E68 + push {lr} + ldr r1, _08051E7C @ =gUnk_080FCA08 + ldr r0, _08051E80 @ =gMenu + ldrb r0, [r0, #5] + lsls r0, r0, #2 + adds r0, r0, r1 + ldr r0, [r0] + bl _call_via_r0 + pop {pc} + .align 2, 0 +_08051E7C: .4byte gUnk_080FCA08 +_08051E80: .4byte gMenu + + thumb_func_start sub_08051E84 +sub_08051E84: @ 0x08051E84 + push {r4, r5, r6, lr} + ldr r0, _08051EF0 @ =gUnk_02032EC0 + ldrb r4, [r0, #3] + lsls r4, r4, #3 + ldr r0, _08051EF4 @ =gUnk_080FCA20 + adds r4, r4, r0 + ldr r5, _08051EF8 @ =gRoomControls + ldrb r0, [r4] + strb r0, [r5, #4] + ldrb r0, [r4, #1] + strb r0, [r5, #5] + bl sub_08053320 + ldrb r0, [r5, #4] + bl sub_08052D58 + ldr r1, _08051EFC @ =gArea + movs r6, #0 + strh r0, [r1, #4] + ldrb r0, [r4] + ldrb r1, [r4, #1] + bl SetCurrentRoomPropertyList + ldrb r0, [r4] + ldrb r1, [r4, #1] + bl sub_08052FD8 + ldrh r0, [r4, #4] + ldrh r1, [r5, #6] + adds r0, r0, r1 + strh r0, [r5, #0xa] + ldrh r0, [r4, #6] + ldrh r1, [r5, #8] + adds r0, r0, r1 + strh r0, [r5, #0xc] + ldr r1, _08051F00 @ =gMenu + ldrb r0, [r4, #2] + strb r0, [r1] + ldrb r2, [r4, #3] + movs r0, #0xf + ands r0, r2 + strb r0, [r1, #3] + str r4, [r1, #0xc] + ldrb r0, [r1, #5] + adds r0, #1 + strb r0, [r1, #5] + strb r6, [r1, #6] + movs r0, #0x96 + lsls r0, r0, #1 + strh r0, [r1, #8] + bl sub_08051F04 + pop {r4, r5, r6, pc} + .align 2, 0 +_08051EF0: .4byte gUnk_02032EC0 +_08051EF4: .4byte gUnk_080FCA20 +_08051EF8: .4byte gRoomControls +_08051EFC: .4byte gArea +_08051F00: .4byte gMenu + + thumb_func_start sub_08051F04 +sub_08051F04: @ 0x08051F04 + push {lr} + ldr r1, _08051F38 @ =gUnk_080FCA14 + ldr r0, _08051F3C @ =gMenu + ldrb r0, [r0] + lsls r0, r0, #2 + adds r0, r0, r1 + ldr r0, [r0] + bl _call_via_r0 + bl sub_080AD90C + bl sub_0805E5C0 + bl sub_080AD9B0 + bl sub_080AD918 + bl sub_0807FC40 + bl sub_0801B060 + bl sub_0805E5F8 + bl sub_08000108 + pop {pc} + .align 2, 0 +_08051F38: .4byte gUnk_080FCA14 +_08051F3C: .4byte gMenu + + thumb_func_start sub_08051F40 +sub_08051F40: @ 0x08051F40 + push {lr} + ldr r0, _08051F60 @ =gUnk_080FCA20 + ldr r2, _08051F64 @ =gUnk_02032EC0 + ldrb r1, [r2, #3] + lsls r1, r1, #3 + adds r1, r1, r0 + ldrb r1, [r1, #3] + movs r0, #0xf0 + ands r0, r1 + cmp r0, #0 + beq _08051F68 + lsrs r1, r1, #4 + movs r0, #2 + bl MenuFadeIn + b _08051F76 + .align 2, 0 +_08051F60: .4byte gUnk_080FCA20 +_08051F64: .4byte gUnk_02032EC0 +_08051F68: + movs r0, #3 + strb r0, [r2] + movs r0, #0x10 + bl sub_080500F4 + bl sub_08056418 +_08051F76: + pop {pc} + + thumb_func_start sub_08051F78 +sub_08051F78: @ 0x08051F78 + push {lr} + ldr r0, _08051F94 @ =gUnk_02032EC0 + ldrb r3, [r0, #3] + lsls r3, r3, #3 + ldr r0, _08051F98 @ =gUnk_080FCA20 + adds r3, r3, r0 + ldrb r0, [r3] + ldrb r1, [r3, #1] + ldrh r2, [r3, #4] + ldrh r3, [r3, #6] + bl sub_08051F9C + pop {pc} + .align 2, 0 +_08051F94: .4byte gUnk_02032EC0 +_08051F98: .4byte gUnk_080FCA20 + + thumb_func_start sub_08051F9C +sub_08051F9C: @ 0x08051F9C + push {r4, r5, r6, lr} + mov r6, r8 + push {r6} + adds r6, r2, #0 + mov r8, r3 + ldr r5, _08051FE0 @ =gScreen + ldrh r2, [r5] + movs r4, #0xc0 + lsls r4, r4, #7 + ands r4, r2 + bl sub_08052FF4 + ldr r1, _08051FE4 @ =gRoomControls + ldrh r0, [r1, #6] + adds r0, r0, r6 + movs r6, #0 + strh r0, [r1, #0xa] + ldrh r0, [r1, #8] + add r0, r8 + strh r0, [r1, #0xc] + bl sub_0807C740 + ldr r1, _08051FE8 @ =gUnk_02000070 + movs r0, #1 + strb r0, [r1] + ldr r0, _08051FEC @ =gUsedPalettes + str r6, [r0] + ldrh r0, [r5] + orrs r4, r0 + strh r4, [r5] + pop {r3} + mov r8, r3 + pop {r4, r5, r6, pc} + .align 2, 0 +_08051FE0: .4byte gScreen +_08051FE4: .4byte gRoomControls +_08051FE8: .4byte gUnk_02000070 +_08051FEC: .4byte gUsedPalettes + + thumb_func_start sub_08051FF0 +sub_08051FF0: @ 0x08051FF0 + push {lr} + ldr r0, _08052000 @ =gMenu + ldr r1, [r0, #0xc] + ldrb r0, [r1] + ldrb r1, [r1, #1] + bl sub_0804B0B0 + pop {pc} + .align 2, 0 +_08052000: .4byte gMenu + + thumb_func_start sub_08052004 +sub_08052004: @ 0x08052004 + ldr r1, _0805200C @ =gMenu + movs r0, #2 + strb r0, [r1, #5] + bx lr + .align 2, 0 +_0805200C: .4byte gMenu + + thumb_func_start sub_08052010 +sub_08052010: @ 0x08052010 + push {r4, lr} + bl sub_080A3210 + bl sub_08056418 + movs r0, #1 + bl sub_0801DA90 + ldr r0, _0805207C @ =gUnk_02021F30 + movs r4, #0x80 + lsls r4, r4, #4 + adds r1, r4, #0 + bl _DmaZero + ldr r0, _08052080 @ =gUnk_020344B0 + adds r1, r4, #0 + bl _DmaZero + bl sub_080A4D34 + movs r0, #0xa + bl LoadPaletteGroup + movs r0, #0 + movs r1, #0 + bl sub_0801D79C + movs r0, #4 + bl LoadGfxGroup + movs r0, #0xc0 + lsls r0, r0, #0x13 + movs r1, #0x20 + bl _DmaZero + ldr r0, _08052084 @ =gMenu + movs r1, #0x30 + bl _DmaZero + ldr r1, _08052088 @ =gScreen + ldrh r2, [r1] + movs r3, #0x80 + lsls r3, r3, #5 + adds r0, r3, #0 + orrs r0, r2 + strh r0, [r1] + ldr r0, _0805208C @ =0x00001C01 + strh r0, [r1, #0x14] + ldr r0, _08052090 @ =0x00001D05 + strh r0, [r1, #0x20] + movs r0, #1 + strh r0, [r1, #0x1a] + strh r0, [r1, #0x26] + pop {r4, pc} + .align 2, 0 +_0805207C: .4byte gUnk_02021F30 +_08052080: .4byte gUnk_020344B0 +_08052084: .4byte gMenu +_08052088: .4byte gScreen +_0805208C: .4byte 0x00001C01 +_08052090: .4byte 0x00001D05 + + thumb_func_start HandleGameOverScreen +HandleGameOverScreen: @ 0x08052094 + push {r4, lr} + ldr r1, _080520BC @ =gUnk_080FCA70 + ldr r4, _080520C0 @ =gUnk_03001000 + ldrb r0, [r4, #3] + lsls r0, r0, #2 + adds r0, r0, r1 + ldr r0, [r0] + bl _call_via_r0 + ldrb r0, [r4, #3] + cmp r0, #0 + beq _080520B8 + bl sub_080AD90C + bl sub_080523D4 + bl sub_080AD918 +_080520B8: + pop {r4, pc} + .align 2, 0 +_080520BC: .4byte gUnk_080FCA70 +_080520C0: .4byte gUnk_03001000 + + thumb_func_start sub_080520C4 +sub_080520C4: @ 0x080520C4 + push {lr} + ldr r1, _080520D4 @ =gUnk_03001000 + strb r0, [r1, #3] + movs r0, #0 + bl sub_080A7114 + pop {pc} + .align 2, 0 +_080520D4: .4byte gUnk_03001000 + + thumb_func_start sub_080520D8 +sub_080520D8: @ 0x080520D8 + push {r4, lr} + ldr r4, _08052118 @ =gFadeControl + ldrb r0, [r4] + cmp r0, #0 + bne _08052114 + bl sub_08052010 + ldr r1, _0805211C @ =gMenu + movs r0, #0x50 + strb r0, [r1, #0x10] + movs r2, #0x3c + movs r0, #0x3c + strh r0, [r1, #8] + ldr r0, _08052120 @ =gUnk_02002A40 + adds r0, #0xaa + movs r1, #0x18 + strb r1, [r0] + ldr r0, _08052124 @ =gUnk_03001000 + strb r2, [r0, #5] + movs r0, #0xa + bl PlaySFX + movs r0, #4 + bl sub_080500F4 + ldr r0, _08052128 @ =0xFFFF0001 + str r0, [r4, #4] + movs r0, #1 + bl sub_080520C4 +_08052114: + pop {r4, pc} + .align 2, 0 +_08052118: .4byte gFadeControl +_0805211C: .4byte gMenu +_08052120: .4byte gUnk_02002A40 +_08052124: .4byte gUnk_03001000 +_08052128: .4byte 0xFFFF0001 + + thumb_func_start sub_0805212C +sub_0805212C: @ 0x0805212C + push {r4, lr} + ldr r4, _0805214C @ =gFadeControl + ldrb r0, [r4] + cmp r0, #0 + bne _0805219C + ldr r1, _08052150 @ =gUnk_03001000 + ldrb r0, [r1, #5] + cmp r0, #0 + bne _08052198 + ldr r1, _08052154 @ =gMenu + ldrb r0, [r1, #0x10] + cmp r0, #0x25 + bls _08052158 + subs r0, #1 + strb r0, [r1, #0x10] + b _0805219C + .align 2, 0 +_0805214C: .4byte gFadeControl +_08052150: .4byte gUnk_03001000 +_08052154: .4byte gMenu +_08052158: + ldrh r0, [r1, #8] + subs r0, #1 + strh r0, [r1, #8] + lsls r0, r0, #0x10 + cmp r0, #0 + bne _0805219C + movs r0, #2 + bl sub_080520C4 + movs r0, #0 + movs r1, #0 + bl sub_08052418 + ldr r2, _08052190 @ =gScreen + ldrh r0, [r2] + movs r3, #0xc0 + lsls r3, r3, #3 + adds r1, r3, #0 + orrs r0, r1 + strh r0, [r2] + ldr r0, _08052194 @ =0x0000FFFF + str r0, [r4, #4] + movs r0, #4 + movs r1, #0x10 + bl DoFade + b _0805219C + .align 2, 0 +_08052190: .4byte gScreen +_08052194: .4byte 0x0000FFFF +_08052198: + subs r0, #1 + strb r0, [r1, #5] +_0805219C: + pop {r4, pc} + .align 2, 0 + + thumb_func_start sub_080521A0 +sub_080521A0: @ 0x080521A0 + push {r4, lr} + ldr r0, _080521C4 @ =gFadeControl + ldrb r0, [r0] + cmp r0, #0 + beq _080521AC + b _080522E8 +_080521AC: + ldr r0, _080521C8 @ =gMenu + ldrb r1, [r0, #5] + adds r2, r0, #0 + cmp r1, #4 + bls _080521B8 + b _080522D4 +_080521B8: + lsls r0, r1, #2 + ldr r1, _080521CC @ =_080521D0 + adds r0, r0, r1 + ldr r0, [r0] + mov pc, r0 + .align 2, 0 +_080521C4: .4byte gFadeControl +_080521C8: .4byte gMenu +_080521CC: .4byte _080521D0 +_080521D0: @ jump table + .4byte _080521E4 @ case 0 + .4byte _08052208 @ case 1 + .4byte _08052278 @ case 2 + .4byte _080522B0 @ case 3 + .4byte _080522D4 @ case 4 +_080521E4: + movs r1, #0 + movs r0, #0x1e + strh r0, [r2, #8] + strb r1, [r2, #3] + movs r0, #1 + bl sub_080A7114 + movs r0, #0 + movs r1, #0 + bl sub_08052418 + ldr r1, _08052204 @ =gFadeControl + movs r0, #1 + rsbs r0, r0, #0 + str r0, [r1, #4] + b _080522E8 + .align 2, 0 +_08052204: .4byte gFadeControl +_08052208: + ldrh r0, [r2, #8] + cmp r0, #0 + bne _080522B6 + ldrb r4, [r2, #3] + ldr r0, _08052224 @ =gUnk_03000FF0 + ldrh r0, [r0, #2] + cmp r0, #0x40 + beq _0805222E + cmp r0, #0x40 + bgt _08052228 + cmp r0, #1 + beq _08052236 + b _0805225A + .align 2, 0 +_08052224: .4byte gUnk_03000FF0 +_08052228: + cmp r0, #0x80 + beq _08052232 + b _0805225A +_0805222E: + movs r4, #0 + b _0805225A +_08052232: + movs r4, #1 + b _0805225A +_08052236: + cmp r4, #0 + beq _0805223E + movs r2, #4 + b _08052248 +_0805223E: + movs r0, #8 + movs r1, #0 + bl sub_08050318 + movs r2, #2 +_08052248: + ldr r1, _08052274 @ =gMenu + movs r0, #0x3c + strh r0, [r1, #8] + adds r0, r2, #0 + bl sub_080A7114 + movs r0, #0x6a + bl PlaySFX +_0805225A: + ldr r1, _08052274 @ =gMenu + ldrb r0, [r1, #3] + cmp r0, r4 + beq _080522E8 + strb r4, [r1, #3] + movs r0, #0 + adds r1, r4, #0 + bl sub_08052418 + movs r0, #0x69 + bl PlaySFX + b _080522E8 + .align 2, 0 +_08052274: .4byte gMenu +_08052278: + movs r0, #0 + bl sub_0807CDA4 + adds r1, r0, #0 + ldr r2, _08052298 @ =gMenu + strb r1, [r2] + movs r0, #1 + rsbs r0, r0, #0 + cmp r1, r0 + beq _0805229C + cmp r1, #1 + bne _080522E8 + movs r0, #4 + bl sub_080A7114 + b _080522E8 + .align 2, 0 +_08052298: .4byte gMenu +_0805229C: + movs r0, #0x3c + strh r0, [r2, #8] + movs r0, #9 + movs r1, #0 + bl sub_08050318 + movs r0, #3 + bl sub_080A7114 + b _080522E8 +_080522B0: + ldrh r0, [r2, #8] + cmp r0, #0 + beq _080522BC +_080522B6: + subs r0, #1 + strh r0, [r2, #8] + b _080522E8 +_080522BC: + ldr r0, _080522D0 @ =gUnk_03000FF0 + ldrh r1, [r0, #2] + movs r0, #0xb + ands r0, r1 + cmp r0, #0 + beq _080522E8 + movs r0, #0 + bl sub_080A7114 + b _080522E8 + .align 2, 0 +_080522D0: .4byte gUnk_03000FF0 +_080522D4: + ldr r2, _080522EC @ =gScreen + ldrh r1, [r2] + ldr r0, _080522F0 @ =0x0000FDFF + ands r0, r1 + strh r0, [r2] + bl sub_08050384 + movs r0, #3 + bl sub_080520C4 +_080522E8: + pop {r4, pc} + .align 2, 0 +_080522EC: .4byte gScreen +_080522F0: .4byte 0x0000FDFF + + thumb_func_start sub_080522F4 +sub_080522F4: @ 0x080522F4 + push {r4, lr} + ldr r0, _08052320 @ =gMenu + ldrb r1, [r0, #5] + adds r3, r0, #0 + cmp r1, #1 + beq _08052324 + cmp r1, #1 + bgt _080523AC + cmp r1, #0 + bne _080523AC + movs r1, #0 + movs r0, #0x1e + strh r0, [r3, #8] + strb r1, [r3, #3] + movs r0, #1 + bl sub_080A7114 + movs r0, #1 + movs r1, #0 + bl sub_08052418 + b _080523CC + .align 2, 0 +_08052320: .4byte gMenu +_08052324: + ldr r2, _08052340 @ =gScreen + ldrh r1, [r2] + movs r4, #0x80 + lsls r4, r4, #2 + adds r0, r4, #0 + orrs r0, r1 + strh r0, [r2] + ldrh r0, [r3, #8] + cmp r0, #0 + beq _08052344 + subs r0, #1 + strh r0, [r3, #8] + b _080523CC + .align 2, 0 +_08052340: .4byte gScreen +_08052344: + ldrb r4, [r3, #3] + ldr r0, _08052358 @ =gUnk_03000FF0 + ldrh r0, [r0, #2] + cmp r0, #0x40 + beq _08052362 + cmp r0, #0x40 + bgt _0805235C + cmp r0, #1 + beq _0805236A + b _0805238C + .align 2, 0 +_08052358: .4byte gUnk_03000FF0 +_0805235C: + cmp r0, #0x80 + beq _08052366 + b _0805238C +_08052362: + movs r4, #0 + b _0805238C +_08052366: + movs r4, #1 + b _0805238C +_0805236A: + movs r0, #2 + bl sub_080A7114 + movs r0, #0x6a + bl PlaySFX + cmp r4, #0 + bne _08052384 + movs r0, #5 + movs r1, #8 + bl DoFade + b _0805238C +_08052384: + movs r0, #7 + movs r1, #8 + bl DoFade +_0805238C: + ldr r1, _080523A8 @ =gMenu + ldrb r0, [r1, #3] + cmp r0, r4 + beq _080523CC + strb r4, [r1, #3] + movs r0, #1 + adds r1, r4, #0 + bl sub_08052418 + movs r0, #0x69 + bl PlaySFX + b _080523CC + .align 2, 0 +_080523A8: .4byte gMenu +_080523AC: + ldr r0, _080523C4 @ =gFadeControl + ldrb r0, [r0] + cmp r0, #0 + bne _080523CC + ldrb r0, [r3, #3] + cmp r0, #0 + bne _080523C8 + movs r0, #2 + bl InitScreen + b _080523CC + .align 2, 0 +_080523C4: .4byte gFadeControl +_080523C8: + bl DoSoftReset +_080523CC: + pop {r4, pc} + .align 2, 0 + + thumb_func_start nullsub_107 +nullsub_107: @ 0x080523D0 + bx lr + .align 2, 0 + + thumb_func_start sub_080523D4 +sub_080523D4: @ 0x080523D4 + push {r4, r5, r6, lr} + ldr r1, _08052408 @ =gUnk_03001010 + movs r0, #0 + strh r0, [r1, #4] + strh r0, [r1, #6] + movs r0, #0x86 + lsls r0, r0, #8 + strh r0, [r1, #8] + ldr r0, _0805240C @ =gMenu + ldrb r0, [r0, #0x10] + strh r0, [r1, #2] + movs r4, #0 + adds r6, r1, #0 + ldr r5, _08052410 @ =gUnk_080FCA84 +_080523F0: + adds r0, r4, r5 + ldrb r0, [r0] + strh r0, [r6] + ldr r0, _08052414 @ =0x000001FD + adds r1, r4, #0 + bl sub_080ADA14 + adds r4, #1 + cmp r4, #7 + bls _080523F0 + pop {r4, r5, r6, pc} + .align 2, 0 +_08052408: .4byte gUnk_03001010 +_0805240C: .4byte gMenu +_08052410: .4byte gUnk_080FCA84 +_08052414: .4byte 0x000001FD diff --git a/asm/code_08050038.s b/asm/code_08050038.s index 1751d8d8..6f789d02 100644 --- a/asm/code_08050038.s +++ b/asm/code_08050038.s @@ -250,4070 +250,3 @@ _08050314: movs r0, #1 _08050316: pop {r4, pc} - - thumb_func_start sub_08050318 -sub_08050318: @ 0x08050318 - push {r4, r5, r6, lr} - sub sp, #0x18 - adds r6, r0, #0 - adds r4, r1, #0 - bl sub_08050384 - ldr r0, _08050374 @ =gUnk_080FC844 - mov r1, sp - movs r2, #0x18 - bl sub_0801D66C - ldr r1, _08050378 @ =gUnk_020227E8 - adds r0, r4, #0 - bl sub_08056FEC - mov r2, sp - mov r1, sp - ldr r5, _0805037C @ =gUnk_080FC85C - lsls r4, r6, #1 - adds r4, r4, r6 - lsls r4, r4, #1 - adds r0, r4, r5 - ldrh r0, [r0] - lsls r0, r0, #0xc - ldrh r1, [r1, #0x10] - orrs r0, r1 - strh r0, [r2, #0x10] - adds r0, r5, #2 - adds r0, r4, r0 - ldrh r0, [r0] - mov r1, sp - bl sub_0805F46C - adds r5, #4 - adds r4, r4, r5 - ldrh r0, [r4] - cmp r0, #0 - beq _08050368 - bl PlaySFX -_08050368: - ldr r1, _08050380 @ =gScreen - movs r0, #1 - strh r0, [r1, #0xe] - add sp, #0x18 - pop {r4, r5, r6, pc} - .align 2, 0 -_08050374: .4byte gUnk_080FC844 -_08050378: .4byte gUnk_020227E8 -_0805037C: .4byte gUnk_080FC85C -_08050380: .4byte gScreen - - thumb_func_start sub_08050384 -sub_08050384: @ 0x08050384 - push {lr} - movs r0, #0 - movs r1, #0 - bl sub_0801C4A0 - ldr r0, _080503A0 @ =gUnk_02034CB0 - movs r1, #0x80 - lsls r1, r1, #4 - bl _DmaZero - ldr r1, _080503A4 @ =gScreen - movs r0, #1 - strh r0, [r1, #0xe] - pop {pc} - .align 2, 0 -_080503A0: .4byte gUnk_02034CB0 -_080503A4: .4byte gScreen - - thumb_func_start sub_080503A8 -sub_080503A8: @ 0x080503A8 - push {lr} - bl LoadGfxGroup - ldr r1, _080503B8 @ =gScreen - movs r0, #1 - strh r0, [r1, #0x1a] - strh r0, [r1, #0x26] - pop {pc} - .align 2, 0 -_080503B8: .4byte gScreen - - thumb_func_start sub_080503BC -sub_080503BC: @ 0x080503BC - push {r4, lr} - ldr r1, _080503D8 @ =gUnk_02032EC0 - strb r0, [r1, #4] - ldr r0, _080503DC @ =gUnk_02034CB0 - movs r4, #0x80 - lsls r4, r4, #4 - adds r1, r4, #0 - bl _DmaZero - ldr r0, _080503E0 @ =gUnk_02021F30 - adds r1, r4, #0 - bl _DmaZero - pop {r4, pc} - .align 2, 0 -_080503D8: .4byte gUnk_02032EC0 -_080503DC: .4byte gUnk_02034CB0 -_080503E0: .4byte gUnk_02021F30 - - thumb_func_start sub_080503E4 -sub_080503E4: @ 0x080503E4 - push {lr} - adds r1, r0, #0 - cmp r1, #2 - bls _080503F2 - movs r2, #1 - movs r1, #1 - b _080503FE -_080503F2: - ldr r0, _08050410 @ =0x000004B4 - muls r0, r1, r0 - ldr r1, _08050414 @ =gUnk_02019EEC - adds r0, r0, r1 - ldrb r2, [r0, #2] - ldrb r1, [r0, #3] -_080503FE: - movs r0, #0x80 - lsls r0, r0, #0x12 - strb r2, [r0, #5] - strb r1, [r0, #6] - ldr r1, _08050418 @ =gUsedPalettes - movs r0, #1 - rsbs r0, r0, #0 - str r0, [r1] - pop {pc} - .align 2, 0 -_08050410: .4byte 0x000004B4 -_08050414: .4byte gUnk_02019EEC -_08050418: .4byte gUsedPalettes - - thumb_func_start sub_0805041C -sub_0805041C: @ 0x0805041C - push {r4, lr} - adds r4, r0, #0 - cmp r4, #2 - bhi _0805043A - movs r0, #0x80 - lsls r0, r0, #0x12 - strb r4, [r0, #4] - ldr r2, _08050444 @ =0x000004B4 - adds r0, r4, #0 - muls r0, r2, r0 - ldr r1, _08050448 @ =gUnk_02019EEC - adds r0, r0, r1 - ldr r1, _0805044C @ =gUnk_02002A40 - bl sub_0801D66C -_0805043A: - adds r0, r4, #0 - bl sub_080503E4 - pop {r4, pc} - .align 2, 0 -_08050444: .4byte 0x000004B4 -_08050448: .4byte gUnk_02019EEC -_0805044C: .4byte gUnk_02002A40 - - thumb_func_start HandleChooseFileScreen -HandleChooseFileScreen: @ 0x08050450 - push {r4, lr} - bl sub_080AD90C - ldr r1, _080504D8 @ =gUnk_080FC8A4 - ldr r0, _080504DC @ =gUnk_03001000 - ldrb r0, [r0, #3] - lsls r0, r0, #2 - adds r0, r0, r1 - ldr r0, [r0] - bl _call_via_r0 - ldr r4, _080504E0 @ =gUnk_02032EC0 - ldrb r1, [r4, #4] - ldrb r0, [r4, #2] - cmp r0, r1 - beq _0805048A - movs r0, #0 - strb r1, [r4, #2] - ldr r1, _080504E4 @ =gScreen - strh r0, [r1, #0xa] - strh r0, [r1, #0xc] - strh r0, [r1, #0x16] - strh r0, [r1, #0x18] - strh r0, [r1, #0x22] - strh r0, [r1, #0x24] - ldr r0, _080504E8 @ =gMenu - movs r1, #0x30 - bl _DmaZero -_0805048A: - bl sub_080507FC - ldr r1, _080504EC @ =gUnk_080FC8B0 - ldrb r0, [r4, #2] - lsls r0, r0, #2 - adds r0, r0, r1 - ldr r0, [r0] - bl _call_via_r0 - ldr r4, _080504F0 @ =gUnk_02019EE0 - movs r0, #0 - strb r0, [r4] - bl sub_0805E5C0 - bl sub_0805066C - bl sub_0801C1D4 - bl sub_0801C208 - bl sub_080AD9B0 - bl sub_080AD918 - movs r0, #0x80 - lsls r0, r0, #0x12 - ldrb r1, [r0, #7] - ldrb r0, [r4, #3] - cmp r0, r1 - beq _080504D4 - strb r1, [r4, #3] - movs r0, #6 - bl sub_080503A8 - movs r0, #0xf - bl sub_080503A8 -_080504D4: - pop {r4, pc} - .align 2, 0 -_080504D8: .4byte gUnk_080FC8A4 -_080504DC: .4byte gUnk_03001000 -_080504E0: .4byte gUnk_02032EC0 -_080504E4: .4byte gScreen -_080504E8: .4byte gMenu -_080504EC: .4byte gUnk_080FC8B0 -_080504F0: .4byte gUnk_02019EE0 - - thumb_func_start sub_080504F4 -sub_080504F4: @ 0x080504F4 - push {r4, lr} - movs r0, #1 - bl sub_0801DA90 - bl sub_080A3210 - movs r0, #0xc0 - lsls r0, r0, #0x13 - movs r1, #0x80 - bl _DmaZero - bl sub_08056418 - bl EraseAllEntities - bl sub_08080668 - bl sub_080ADD30 - movs r0, #0 - bl sub_0801CFA8 - ldr r0, _080505DC @ =gUnk_0200AF00 - movs r1, #0xcd - lsls r1, r1, #2 - bl _DmaZero - ldr r4, _080505E0 @ =gUnk_02019EE0 - ldr r1, _080505E4 @ =0x00000E28 - adds r0, r4, #0 - bl _DmaZero - movs r0, #7 - strb r0, [r4, #3] - movs r0, #0x80 - lsls r0, r0, #0x12 - ldrb r0, [r0, #7] - movs r1, #0 - cmp r0, #1 - bls _08050546 - movs r1, #3 -_08050546: - strb r1, [r4, #6] - ldr r4, _080505E8 @ =gUnk_02032EC0 - movs r1, #0xed - lsls r1, r1, #2 - adds r0, r4, #0 - bl _DmaZero - movs r0, #8 - strb r0, [r4, #2] - movs r0, #0 - bl sub_080503BC - bl sub_0805616C - movs r0, #0 - bl sub_08050624 - movs r0, #1 - bl sub_08050624 - movs r0, #2 - bl sub_08050624 - bl sub_08056208 - movs r0, #5 - bl sub_080503A8 - movs r0, #9 - bl LoadPaletteGroup - movs r4, #0 -_08050586: - movs r0, #0x48 - adds r1, r4, #0 - movs r2, #0 - bl CreateObject - adds r4, #1 - cmp r4, #0x19 - bls _08050586 - ldr r0, _080505EC @ =gUnk_080FC8D0 - bl sub_080A70AC - bl sub_080507FC - ldr r1, _080505F0 @ =gScreen - ldrh r2, [r1] - movs r3, #0xf8 - lsls r3, r3, #5 - adds r0, r3, #0 - orrs r0, r2 - strh r0, [r1] - ldr r0, _080505F4 @ =0x00001E0B - strh r0, [r1, #0x2c] - adds r2, r1, #0 - adds r2, #0x66 - ldr r0, _080505F8 @ =0x00000844 - strh r0, [r2] - adds r1, #0x68 - ldr r0, _080505FC @ =0x00000A0F - strh r0, [r1] - ldr r0, _08050600 @ =gUnk_02024490 - movs r1, #1 - strb r1, [r0] - ldr r0, _08050604 @ =gUnk_03001000 - strb r1, [r0, #3] - movs r0, #7 - bl PlaySFX - movs r0, #4 - movs r1, #8 - bl DoFade - pop {r4, pc} - .align 2, 0 -_080505DC: .4byte gUnk_0200AF00 -_080505E0: .4byte gUnk_02019EE0 -_080505E4: .4byte 0x00000E28 -_080505E8: .4byte gUnk_02032EC0 -_080505EC: .4byte gUnk_080FC8D0 -_080505F0: .4byte gScreen -_080505F4: .4byte 0x00001E0B -_080505F8: .4byte 0x00000844 -_080505FC: .4byte 0x00000A0F -_08050600: .4byte gUnk_02024490 -_08050604: .4byte gUnk_03001000 - - thumb_func_start nullsub_479 -nullsub_479: @ 0x08050608 - bx lr - .align 2, 0 - - thumb_func_start sub_0805060C -sub_0805060C: @ 0x0805060C - push {lr} - ldr r0, _08050620 @ =gFadeControl - ldrb r0, [r0] - cmp r0, #0 - bne _0805061C - movs r0, #2 - bl InitScreen -_0805061C: - pop {pc} - .align 2, 0 -_08050620: .4byte gFadeControl - - thumb_func_start sub_08050624 -sub_08050624: @ 0x08050624 - push {r4, r5, lr} - adds r4, r0, #0 - ldr r0, _08050648 @ =0x000004B4 - adds r1, r4, #0 - muls r1, r0, r1 - ldr r0, _0805064C @ =gUnk_02019EEC - adds r1, r1, r0 - adds r0, r4, #0 - bl sub_0807CF28 - adds r5, r0, #0 - movs r0, #1 - rsbs r0, r0, #0 - cmp r5, r0 - beq _08050650 - cmp r5, #0 - beq _08050656 - b _0805065C - .align 2, 0 -_08050648: .4byte 0x000004B4 -_0805064C: .4byte gUnk_02019EEC -_08050650: - adds r0, r4, #0 - bl sub_0807CF48 -_08050656: - adds r0, r4, #0 - bl sub_0805194C -_0805065C: - ldr r0, _08050668 @ =gUnk_02019EE0 - adds r0, #8 - adds r0, r4, r0 - strb r5, [r0] - pop {r4, r5, pc} - .align 2, 0 -_08050668: .4byte gUnk_02019EE0 - - thumb_func_start sub_0805066C -sub_0805066C: @ 0x0805066C - push {r4, lr} - movs r1, #0 - ldr r4, _080506F0 @ =gUnk_02019EE0 - ldrb r0, [r4, #1] - subs r0, #1 - strb r0, [r4, #1] - lsls r0, r0, #0x18 - cmp r0, #0 - bne _08050690 - movs r0, #0x10 - strb r0, [r4, #1] - ldrb r0, [r4, #2] - adds r0, #1 - movs r1, #0xf - bl __modsi3 - strb r0, [r4, #2] - movs r1, #1 -_08050690: - ldrb r0, [r4, #2] - cmp r0, #0 - bne _080506AA - movs r0, #1 - strb r0, [r4, #2] - bl Random - movs r1, #7 - ands r1, r0 - lsls r1, r1, #4 - adds r1, #8 - strb r1, [r4, #1] - movs r1, #1 -_080506AA: - cmp r1, #0 - beq _080506EE - ldr r1, _080506F4 @ =gUnk_080FC8DE - ldrb r0, [r4, #2] - lsls r0, r0, #1 - adds r0, r0, r1 - ldrh r4, [r0] - ldr r0, _080506F8 @ =gGlobalGfxAndPalettes - adds r4, r4, r0 - ldr r1, _080506FC @ =0x00011AA0 - adds r0, r4, r1 - movs r1, #0xb - movs r2, #1 - bl LoadPalettes - ldr r1, _08050700 @ =0x00011BA0 - adds r0, r4, r1 - movs r1, #0xc - movs r2, #1 - bl LoadPalettes - ldr r1, _08050704 @ =0x00011CA0 - adds r0, r4, r1 - movs r1, #0xd - movs r2, #1 - bl LoadPalettes - ldr r0, _08050708 @ =0x00011DA0 - adds r4, r4, r0 - adds r0, r4, #0 - movs r1, #0xe - movs r2, #1 - bl LoadPalettes -_080506EE: - pop {r4, pc} - .align 2, 0 -_080506F0: .4byte gUnk_02019EE0 -_080506F4: .4byte gUnk_080FC8DE -_080506F8: .4byte gGlobalGfxAndPalettes -_080506FC: .4byte 0x00011AA0 -_08050700: .4byte 0x00011BA0 -_08050704: .4byte 0x00011CA0 -_08050708: .4byte 0x00011DA0 - - thumb_func_start sub_0805070C -sub_0805070C: @ 0x0805070C - push {r4, r5, r6, r7, lr} - mov r7, r8 - push {r7} - bl sub_0805F2C8 - adds r5, r0, #0 - cmp r5, #0 - beq _0805077A - movs r0, #0 - strb r0, [r5, #2] - movs r0, #5 - strb r0, [r5, #3] - movs r0, #1 - strb r0, [r5, #1] - movs r0, #0x30 - strh r0, [r5, #4] - ldr r0, _08050780 @ =gUnk_02000D00 - str r0, [r5, #8] - movs r6, #0 -_08050732: - movs r0, #0 - strh r0, [r5, #6] - ldr r0, [r5, #8] - movs r1, #0x80 - lsls r1, r1, #2 - bl _DmaZero - ldr r0, _08050784 @ =0x000004B4 - adds r1, r6, #0 - muls r1, r0, r1 - ldr r0, _08050788 @ =gUnk_02019F6C - adds r7, r1, r0 - movs r4, #0 - lsls r0, r6, #9 - mov r8, r0 - adds r6, #1 -_08050752: - adds r0, r7, r4 - ldrb r0, [r0] - adds r1, r5, #0 - bl sub_0805F7DC - adds r4, #1 - cmp r4, #5 - ble _08050752 - ldr r0, [r5, #8] - ldr r1, _0805078C @ =0x06014000 - add r1, r8 - movs r2, #0x80 - lsls r2, r2, #2 - bl sub_0801D66C - cmp r6, #2 - bls _08050732 - adds r0, r5, #0 - bl sub_0805F300 -_0805077A: - pop {r3} - mov r8, r3 - pop {r4, r5, r6, r7, pc} - .align 2, 0 -_08050780: .4byte gUnk_02000D00 -_08050784: .4byte 0x000004B4 -_08050788: .4byte gUnk_02019F6C -_0805078C: .4byte 0x06014000 - - thumb_func_start sub_08050790 -sub_08050790: @ 0x08050790 - push {r4, r5, r6, r7, lr} - mov r7, r8 - push {r7} - bl sub_0805F2C8 - adds r6, r0, #0 - cmp r6, #0 - beq _080507F0 - movs r0, #0 - strb r0, [r6, #2] - movs r0, #5 - strb r0, [r6, #3] - movs r0, #1 - strb r0, [r6, #1] - movs r0, #0x80 - strh r0, [r6, #4] - ldr r0, _080507F8 @ =gUnk_02000D00 - str r0, [r6, #8] - movs r1, #0 -_080507B6: - movs r0, #0 - strh r0, [r6, #6] - lsls r4, r1, #4 - movs r5, #0 - lsls r7, r1, #0xa - adds r1, #1 - mov r8, r1 -_080507C4: - adds r0, r4, #0 - adds r1, r6, #0 - bl sub_0805F7DC - adds r4, #1 - adds r5, #1 - cmp r5, #0xf - bls _080507C4 - movs r0, #0xc0 - lsls r0, r0, #0x13 - adds r1, r7, r0 - ldr r0, _080507F8 @ =gUnk_02000D00 - movs r2, #0x80 - lsls r2, r2, #3 - bl sub_0801D66C - mov r1, r8 - cmp r1, #0xf - bls _080507B6 - adds r0, r6, #0 - bl sub_0805F300 -_080507F0: - pop {r3} - mov r8, r3 - pop {r4, r5, r6, r7, pc} - .align 2, 0 -_080507F8: .4byte gUnk_02000D00 - - thumb_func_start sub_080507FC -sub_080507FC: @ 0x080507FC - ldr r0, _0805080C @ =gUnk_0200AF00 - movs r1, #0xa0 - lsls r1, r1, #1 - strh r1, [r0, #0x1a] - movs r1, #0x24 - strh r1, [r0, #0x20] - bx lr - .align 2, 0 -_0805080C: .4byte gUnk_0200AF00 - - thumb_func_start sub_08050810 -sub_08050810: @ 0x08050810 - ldr r0, _0805081C @ =gUnk_0200AF00 - movs r1, #0xd0 - strh r1, [r0, #0x1a] - movs r1, #0x24 - strh r1, [r0, #0x20] - bx lr - .align 2, 0 -_0805081C: .4byte gUnk_0200AF00 - - thumb_func_start sub_08050820 -sub_08050820: @ 0x08050820 - push {lr} - ldr r1, _0805083C @ =gUnk_080FC8FC - ldr r0, _08050840 @ =gMenu - ldrb r0, [r0, #5] - lsls r0, r0, #2 - adds r0, r0, r1 - ldr r0, [r0] - bl _call_via_r0 - ldr r0, _08050844 @ =gUnk_02019EE0 - ldrb r0, [r0, #6] - bl sub_08050A64 - pop {pc} - .align 2, 0 -_0805083C: .4byte gUnk_080FC8FC -_08050840: .4byte gMenu -_08050844: .4byte gUnk_02019EE0 - - thumb_func_start sub_08050848 -sub_08050848: @ 0x08050848 - push {lr} - movs r0, #7 - bl sub_080503A8 - bl sub_0805070C - ldr r0, _08050868 @ =gUnk_02019EE0 - movs r1, #0 - strb r1, [r0, #7] - ldrb r0, [r0, #6] - bl sub_08050AFC - movs r0, #1 - bl sub_080A7114 - pop {pc} - .align 2, 0 -_08050868: .4byte gUnk_02019EE0 - - thumb_func_start sub_0805086C -sub_0805086C: @ 0x0805086C - push {lr} - ldr r1, _08050880 @ =gUnk_080FC908 - ldr r0, _08050884 @ =gMenu - ldrb r0, [r0, #6] - lsls r0, r0, #2 - adds r0, r0, r1 - ldr r0, [r0] - bl _call_via_r0 - pop {pc} - .align 2, 0 -_08050880: .4byte gUnk_080FC908 -_08050884: .4byte gMenu - - thumb_func_start sub_08050888 -sub_08050888: @ 0x08050888 - push {r4, lr} - ldr r0, _080508C4 @ =gFadeControl - ldrb r0, [r0] - cmp r0, #0 - bne _080508DC - ldr r4, _080508C8 @ =gUnk_02019EE0 - ldrb r1, [r4, #7] - adds r0, r4, #0 - adds r0, #8 - adds r0, r1, r0 - ldrb r0, [r0] - lsls r0, r0, #0x18 - asrs r0, r0, #0x18 - cmp r0, #0 - beq _080508D0 - cmp r0, #1 - beq _080508D6 - adds r0, r1, #0 - bl sub_0805194C - ldrb r1, [r4, #7] - adds r1, #1 - movs r0, #0 - bl sub_08050318 - ldr r1, _080508CC @ =gMenu - movs r0, #0x1e - strh r0, [r1, #8] - movs r0, #1 - b _080508DA - .align 2, 0 -_080508C4: .4byte gFadeControl -_080508C8: .4byte gUnk_02019EE0 -_080508CC: .4byte gMenu -_080508D0: - adds r0, r1, #0 - bl sub_0805194C -_080508D6: - ldr r1, _080508E0 @ =gMenu - movs r0, #2 -_080508DA: - strb r0, [r1, #6] -_080508DC: - pop {r4, pc} - .align 2, 0 -_080508E0: .4byte gMenu - - thumb_func_start sub_080508E4 -sub_080508E4: @ 0x080508E4 - push {lr} - ldr r2, _08050900 @ =gMenu - ldrh r0, [r2, #8] - cmp r0, #0 - bne _08050908 - ldr r0, _08050904 @ =gUnk_03000FF0 - ldrh r1, [r0, #2] - movs r0, #9 - ands r0, r1 - cmp r0, #0 - beq _0805090C - movs r0, #2 - strb r0, [r2, #6] - b _0805090C - .align 2, 0 -_08050900: .4byte gMenu -_08050904: .4byte gUnk_03000FF0 -_08050908: - subs r0, #1 - strh r0, [r2, #8] -_0805090C: - pop {pc} - .align 2, 0 - - thumb_func_start sub_08050910 -sub_08050910: @ 0x08050910 - push {lr} - bl sub_08050384 - ldr r1, _08050930 @ =gUnk_02019EE0 - ldrb r0, [r1, #7] - adds r0, #1 - strb r0, [r1, #7] - lsls r0, r0, #0x18 - lsrs r0, r0, #0x18 - cmp r0, #2 - bls _08050934 - movs r0, #2 - bl sub_080A7114 - b _0805093A - .align 2, 0 -_08050930: .4byte gUnk_02019EE0 -_08050934: - ldr r1, _0805093C @ =gMenu - movs r0, #0 - strb r0, [r1, #6] -_0805093A: - pop {pc} - .align 2, 0 -_0805093C: .4byte gMenu - - thumb_func_start sub_08050940 -sub_08050940: @ 0x08050940 - push {r4, r5, r6, lr} - ldr r3, _0805099C @ =gUnk_02019EE0 - ldrb r0, [r3] - cmp r0, #0 - beq _0805094C - b _08050A58 -_0805094C: - ldrb r4, [r3, #6] - ldr r0, _080509A0 @ =gUnk_03000FF0 - ldrh r2, [r0, #2] - ldrh r1, [r0] - movs r0, #0x80 - lsls r0, r0, #2 - ands r0, r1 - cmp r0, #0 - beq _08050974 - adds r0, r3, #0 - adds r0, #8 - adds r0, r4, r0 - ldrb r0, [r0] - lsls r0, r0, #0x18 - asrs r0, r0, #0x18 - cmp r0, #1 - bne _08050974 - movs r0, #0xc1 - rsbs r0, r0, #0 - ands r2, r0 -_08050974: - movs r0, #0x80 - lsls r0, r0, #0x12 - ldrb r0, [r0, #7] - movs r6, #3 - cmp r0, #1 - bls _08050982 - movs r6, #4 -_08050982: - ldr r0, _080509A4 @ =gUnk_02032EC0 - ldrb r5, [r0, #2] - adds r1, r0, #0 - cmp r2, #0x40 - beq _080509B6 - cmp r2, #0x40 - bhi _080509A8 - cmp r2, #1 - beq _080509E0 - cmp r2, #8 - beq _080509E0 - b _08050A10 - .align 2, 0 -_0805099C: .4byte gUnk_02019EE0 -_080509A0: .4byte gUnk_03000FF0 -_080509A4: .4byte gUnk_02032EC0 -_080509A8: - cmp r2, #0x80 - beq _080509BE - movs r0, #0x80 - lsls r0, r0, #1 - cmp r2, r0 - beq _080509C8 - b _08050A10 -_080509B6: - cmp r4, #0 - ble _08050A10 - subs r4, #1 - b _08050A10 -_080509BE: - subs r0, r6, #1 - cmp r0, r4 - ble _08050A10 - adds r4, #1 - b _08050A10 -_080509C8: - ldr r0, _080509DC @ =gUnk_02019EE0 - adds r0, #8 - adds r0, r4, r0 - ldrb r0, [r0] - lsls r0, r0, #0x18 - asrs r0, r0, #0x18 - cmp r0, #1 - bne _08050A10 - movs r5, #3 - b _08050A10 - .align 2, 0 -_080509DC: .4byte gUnk_02019EE0 -_080509E0: - adds r0, r4, #0 - bl sub_0805041C - cmp r4, #3 - bne _080509EE - movs r5, #2 - b _08050A0E -_080509EE: - ldr r0, _08050A04 @ =gUnk_02019EE0 - adds r0, #8 - adds r0, r4, r0 - ldrb r0, [r0] - lsls r0, r0, #0x18 - asrs r0, r0, #0x18 - cmp r0, #0 - beq _08050A08 - cmp r0, #1 - beq _08050A0C - b _08050A0E - .align 2, 0 -_08050A04: .4byte gUnk_02019EE0 -_08050A08: - movs r5, #1 - b _08050A0E -_08050A0C: - movs r5, #4 -_08050A0E: - ldr r1, _08050A5C @ =gUnk_02032EC0 -_08050A10: - ldrb r0, [r1, #2] - cmp r0, r5 - beq _08050A22 - adds r0, r5, #0 - bl sub_080503BC - movs r0, #0x6a - bl PlaySFX -_08050A22: - adds r0, r4, r6 - adds r1, r6, #0 - bl __modsi3 - adds r4, r0, #0 - ldr r5, _08050A60 @ =gUnk_02019EE0 - ldrb r0, [r5, #6] - cmp r0, r4 - beq _08050A42 - strb r4, [r5, #6] - adds r0, r4, #0 - bl sub_08050AFC - movs r0, #0x69 - bl PlaySFX -_08050A42: - adds r0, r5, #0 - adds r0, #8 - ldrb r5, [r5, #6] - adds r0, r0, r5 - ldrb r0, [r0] - lsls r0, r0, #0x18 - asrs r0, r0, #0x18 - cmp r0, #1 - bne _08050A58 - bl sub_08050810 -_08050A58: - pop {r4, r5, r6, pc} - .align 2, 0 -_08050A5C: .4byte gUnk_02032EC0 -_08050A60: .4byte gUnk_02019EE0 - - thumb_func_start sub_08050A64 -sub_08050A64: @ 0x08050A64 - push {r4, lr} - ldr r1, _08050AF0 @ =gUnk_02019EE0 - adds r1, #8 - adds r0, r0, r1 - ldrb r0, [r0] - lsls r0, r0, #0x18 - asrs r0, r0, #0x18 - cmp r0, #1 - bne _08050AEC - ldr r4, _08050AF4 @ =gUnk_03001010 - movs r0, #0 - strh r0, [r4, #4] - strh r0, [r4, #6] - movs r0, #0x80 - lsls r0, r0, #3 - strh r0, [r4, #8] - movs r0, #0x40 - bl GetInventoryValue - cmp r0, #0 - beq _08050A9E - movs r0, #0xa2 - strh r0, [r4] - movs r0, #0x36 - strh r0, [r4, #2] - ldr r0, _08050AF8 @ =0x00000145 - movs r1, #0x24 - bl sub_080ADA14 -_08050A9E: - movs r0, #0x41 - bl GetInventoryValue - cmp r0, #0 - beq _08050AB8 - movs r0, #0x96 - strh r0, [r4] - movs r0, #0x3d - strh r0, [r4, #2] - ldr r0, _08050AF8 @ =0x00000145 - movs r1, #0x22 - bl sub_080ADA14 -_08050AB8: - movs r0, #0x42 - bl GetInventoryValue - cmp r0, #0 - beq _08050AD2 - movs r0, #0xae - strh r0, [r4] - movs r0, #0x3d - strh r0, [r4, #2] - ldr r0, _08050AF8 @ =0x00000145 - movs r1, #0x23 - bl sub_080ADA14 -_08050AD2: - movs r0, #0x43 - bl GetInventoryValue - cmp r0, #0 - beq _08050AEC - movs r0, #0xa2 - strh r0, [r4] - movs r0, #0x44 - strh r0, [r4, #2] - ldr r0, _08050AF8 @ =0x00000145 - movs r1, #0x21 - bl sub_080ADA14 -_08050AEC: - pop {r4, pc} - .align 2, 0 -_08050AF0: .4byte gUnk_02019EE0 -_08050AF4: .4byte gUnk_03001010 -_08050AF8: .4byte 0x00000145 - - thumb_func_start sub_08050AFC -sub_08050AFC: @ 0x08050AFC - push {r4, r5, lr} - adds r4, r0, #0 - bl sub_0805041C - ldr r5, _08050B30 @ =gUnk_02021F30 - movs r1, #0x80 - lsls r1, r1, #4 - adds r0, r5, #0 - bl _DmaZero - ldr r0, _08050B34 @ =gUnk_02019EE0 - adds r0, #8 - adds r4, r4, r0 - movs r0, #0 - ldrsb r0, [r4, r0] - cmp r0, #1 - bne _08050B28 - movs r1, #0xa7 - lsls r1, r1, #2 - adds r0, r5, r1 - bl sub_08050B3C -_08050B28: - ldr r1, _08050B38 @ =gScreen - movs r0, #1 - strh r0, [r1, #0x1a] - pop {r4, r5, pc} - .align 2, 0 -_08050B30: .4byte gUnk_02021F30 -_08050B34: .4byte gUnk_02019EE0 -_08050B38: .4byte gScreen - - thumb_func_start sub_08050B3C -sub_08050B3C: @ 0x08050B3C - push {r4, r5, r6, r7, lr} - mov r7, sl - mov r6, sb - mov r5, r8 - push {r5, r6, r7} - sub sp, #8 - str r0, [sp] - ldr r1, _08050C18 @ =gUnk_02002A40 - adds r0, r1, #0 - adds r0, #0xaa - ldrb r0, [r0] - lsrs r2, r0, #1 - cmp r2, #0 - bne _08050B5A - movs r2, #1 -_08050B5A: - adds r0, r1, #0 - adds r0, #0xab - ldrb r0, [r0] - lsrs r3, r0, #1 - cmp r3, #0 - beq _08050C0A - cmp r2, r3 - ble _08050B6C - adds r2, r3, #0 -_08050B6C: - movs r0, #3 - ands r0, r2 - str r0, [sp, #4] - adds r0, r2, #0 - asrs r5, r0, #2 - mov ip, r5 - cmp r5, #0xa - ble _08050B80 - movs r2, #0xa - mov ip, r2 -_08050B80: - adds r6, r5, #0 - subs r6, #0xa - mov sb, r6 - cmp r6, #0 - bge _08050B8E - movs r7, #0 - mov sb, r7 -_08050B8E: - adds r0, r3, #0 - asrs r3, r0, #2 - adds r0, r3, #0 - cmp r3, #0xa - ble _08050B9A - movs r3, #0xa -_08050B9A: - adds r4, r0, #0 - subs r4, #0xa - ldr r2, [sp] - ldr r0, _08050C1C @ =0x0000F24C - mov sl, r0 - strh r0, [r2] - ldr r1, _08050C20 @ =0x040000D4 - movs r7, #0xa - mov r8, r7 - mov r0, r8 - mov r7, ip - subs r0, r0, r7 - lsls r0, r0, #1 - ldr r7, _08050C24 @ =gUnk_080FC914 - mov ip, r7 - add r0, ip - str r0, [r1] - adds r0, r2, #2 - str r0, [r1, #4] - movs r0, #0x80 - lsls r0, r0, #0x18 - orrs r3, r0 - str r3, [r1, #8] - ldr r0, [r1, #8] - cmp r4, #0 - ble _08050BEE - adds r2, #0x40 - mov r3, sl - strh r3, [r2] - mov r7, r8 - mov r3, sb - subs r0, r7, r3 - lsls r0, r0, #1 - add r0, ip - str r0, [r1] - adds r0, r2, #2 - str r0, [r1, #4] - movs r7, #0x80 - lsls r7, r7, #0x18 - orrs r4, r7 - str r4, [r1, #8] - ldr r0, [r1, #8] -_08050BEE: - ldr r0, [sp, #4] - cmp r0, #0 - beq _08050C0A - ldr r2, [sp] - cmp r5, #9 - ble _08050BFE - adds r5, r6, #0 - adds r2, #0x40 -_08050BFE: - lsls r0, r5, #1 - adds r0, r0, r2 - ldr r2, [sp, #4] - ldr r3, _08050C28 @ =0xFFFFF24D - adds r1, r2, r3 - strh r1, [r0, #2] -_08050C0A: - add sp, #8 - pop {r3, r4, r5} - mov r8, r3 - mov sb, r4 - mov sl, r5 - pop {r4, r5, r6, r7, pc} - .align 2, 0 -_08050C18: .4byte gUnk_02002A40 -_08050C1C: .4byte 0x0000F24C -_08050C20: .4byte 0x040000D4 -_08050C24: .4byte gUnk_080FC914 -_08050C28: .4byte 0xFFFFF24D - - thumb_func_start sub_08050C2C -sub_08050C2C: @ 0x08050C2C - push {lr} - ldr r1, _08050C48 @ =gUnk_080FC93C - ldr r0, _08050C4C @ =gMenu - ldrb r0, [r0, #5] - lsls r0, r0, #2 - adds r0, r0, r1 - ldr r0, [r0] - bl _call_via_r0 - ldr r0, _08050C50 @ =gUnk_02019EE0 - ldrb r0, [r0, #6] - bl sub_08050A64 - pop {pc} - .align 2, 0 -_08050C48: .4byte gUnk_080FC93C -_08050C4C: .4byte gMenu -_08050C50: .4byte gUnk_02019EE0 - - thumb_func_start sub_08050C54 -sub_08050C54: @ 0x08050C54 - push {r4, lr} - ldr r0, _08050C78 @ =gUnk_02019EE0 - ldrb r0, [r0] - cmp r0, #0 - beq _08050C60 - b _08050D60 -_08050C60: - ldr r0, _08050C7C @ =gMenu - ldrb r4, [r0, #1] - ldr r0, _08050C80 @ =gUnk_03000FF0 - ldrh r0, [r0, #2] - subs r0, #1 - cmp r0, #0x1f - bhi _08050D44 - lsls r0, r0, #2 - ldr r1, _08050C84 @ =_08050C88 - adds r0, r0, r1 - ldr r0, [r0] - mov pc, r0 - .align 2, 0 -_08050C78: .4byte gUnk_02019EE0 -_08050C7C: .4byte gMenu -_08050C80: .4byte gUnk_03000FF0 -_08050C84: .4byte _08050C88 -_08050C88: @ jump table - .4byte _08050D08 @ case 0 - .4byte _08050D30 @ case 1 - .4byte _08050D44 @ case 2 - .4byte _08050D44 @ case 3 - .4byte _08050D44 @ case 4 - .4byte _08050D44 @ case 5 - .4byte _08050D44 @ case 6 - .4byte _08050D08 @ case 7 - .4byte _08050D44 @ case 8 - .4byte _08050D44 @ case 9 - .4byte _08050D44 @ case 10 - .4byte _08050D44 @ case 11 - .4byte _08050D44 @ case 12 - .4byte _08050D44 @ case 13 - .4byte _08050D44 @ case 14 - .4byte _08050D42 @ case 15 - .4byte _08050D44 @ case 16 - .4byte _08050D44 @ case 17 - .4byte _08050D44 @ case 18 - .4byte _08050D44 @ case 19 - .4byte _08050D44 @ case 20 - .4byte _08050D44 @ case 21 - .4byte _08050D44 @ case 22 - .4byte _08050D44 @ case 23 - .4byte _08050D44 @ case 24 - .4byte _08050D44 @ case 25 - .4byte _08050D44 @ case 26 - .4byte _08050D44 @ case 27 - .4byte _08050D44 @ case 28 - .4byte _08050D44 @ case 29 - .4byte _08050D44 @ case 30 - .4byte _08050D3E @ case 31 -_08050D08: - cmp r4, #0 - bne _08050D12 - ldr r0, _08050D28 @ =0x80080000 - bl PlaySFX -_08050D12: - ldr r1, _08050D2C @ =gMenu - movs r0, #0xf - strh r0, [r1, #8] - movs r0, #1 - bl sub_080A7114 - movs r0, #0x6a - bl PlaySFX - b _08050D44 - .align 2, 0 -_08050D28: .4byte 0x80080000 -_08050D2C: .4byte gMenu -_08050D30: - movs r0, #0x6c - bl PlaySFX - movs r0, #0 - bl sub_080503BC - b _08050D44 -_08050D3E: - subs r4, #1 - b _08050D44 -_08050D42: - adds r4, #1 -_08050D44: - cmp r4, #0 - bge _08050D4A - movs r4, #0 -_08050D4A: - cmp r4, #2 - ble _08050D50 - movs r4, #2 -_08050D50: - ldr r1, _08050D64 @ =gMenu - ldrb r0, [r1, #1] - cmp r0, r4 - beq _08050D60 - strb r4, [r1, #1] - movs r0, #0x69 - bl PlaySFX -_08050D60: - pop {r4, pc} - .align 2, 0 -_08050D64: .4byte gMenu - - thumb_func_start sub_08050D68 -sub_08050D68: @ 0x08050D68 - push {lr} - ldr r1, _08050D84 @ =gMenu - ldrh r0, [r1, #8] - cmp r0, #0 - bne _08050D94 - ldrb r0, [r1, #1] - cmp r0, #1 - beq _08050D88 - cmp r0, #1 - ble _08050D80 - cmp r0, #2 - beq _08050D8C -_08050D80: - movs r0, #7 - b _08050D8E - .align 2, 0 -_08050D84: .4byte gMenu -_08050D88: - movs r0, #5 - b _08050D8E -_08050D8C: - movs r0, #6 -_08050D8E: - bl sub_080503BC - b _08050D98 -_08050D94: - subs r0, #1 - strh r0, [r1, #8] -_08050D98: - pop {pc} - .align 2, 0 - - thumb_func_start sub_08050D9C -sub_08050D9C: @ 0x08050D9C - push {lr} - ldr r1, _08050DB0 @ =gUnk_080FC944 - ldr r0, _08050DB4 @ =gMenu - ldrb r0, [r0, #5] - lsls r0, r0, #2 - adds r0, r0, r1 - ldr r0, [r0] - bl _call_via_r0 - pop {pc} - .align 2, 0 -_08050DB0: .4byte gUnk_080FC944 -_08050DB4: .4byte gMenu - - thumb_func_start sub_08050DB8 -sub_08050DB8: @ 0x08050DB8 - push {lr} - ldr r0, _08050DDC @ =gUnk_020344B0 - movs r1, #0x80 - lsls r1, r1, #4 - bl _DmaZero - movs r0, #0xc - bl sub_080503A8 - ldr r1, _08050DE0 @ =gMenu - movs r0, #0x80 - lsls r0, r0, #0x12 - ldrb r0, [r0, #7] - strb r0, [r1, #4] - movs r0, #1 - bl sub_080A7114 - pop {pc} - .align 2, 0 -_08050DDC: .4byte gUnk_020344B0 -_08050DE0: .4byte gMenu - - thumb_func_start sub_08050DE4 -sub_08050DE4: @ 0x08050DE4 - push {r4, lr} - ldr r0, _08050E0C @ =gUnk_02019EE0 - ldrb r0, [r0] - cmp r0, #0 - bne _08050E80 - movs r1, #0x80 - lsls r1, r1, #0x12 - ldrb r4, [r1, #7] - ldr r0, _08050E10 @ =gUnk_03000FF0 - ldrh r0, [r0, #2] - cmp r0, #8 - beq _08050E26 - cmp r0, #8 - bgt _08050E14 - cmp r0, #1 - beq _08050E26 - cmp r0, #2 - beq _08050E50 - b _08050E62 - .align 2, 0 -_08050E0C: .4byte gUnk_02019EE0 -_08050E10: .4byte gUnk_03000FF0 -_08050E14: - cmp r0, #0x40 - beq _08050E1E - cmp r0, #0x80 - beq _08050E22 - b _08050E62 -_08050E1E: - subs r4, #1 - b _08050E62 -_08050E22: - adds r4, #1 - b _08050E62 -_08050E26: - movs r0, #0x6a - bl PlaySFX - ldr r0, _08050E44 @ =gMenu - ldrb r0, [r0, #4] - cmp r0, r4 - beq _08050E48 - movs r0, #2 - bl sub_080A7114 - movs r0, #8 - movs r1, #0 - bl sub_08050318 - b _08050E62 - .align 2, 0 -_08050E44: .4byte gMenu -_08050E48: - movs r0, #0 - bl sub_080503BC - b _08050E62 -_08050E50: - ldr r0, _08050E84 @ =gMenu - ldrb r4, [r0, #4] - strb r4, [r1, #7] - movs r0, #0x6c - bl PlaySFX - movs r0, #0 - bl sub_080503BC -_08050E62: - cmp r4, #1 - bgt _08050E68 - movs r4, #2 -_08050E68: - cmp r4, #6 - ble _08050E6E - movs r4, #6 -_08050E6E: - movs r1, #0x80 - lsls r1, r1, #0x12 - ldrb r0, [r1, #7] - cmp r0, r4 - beq _08050E80 - strb r4, [r1, #7] - movs r0, #0x69 - bl PlaySFX -_08050E80: - pop {r4, pc} - .align 2, 0 -_08050E84: .4byte gMenu - - thumb_func_start sub_08050E88 -sub_08050E88: @ 0x08050E88 - push {lr} - movs r0, #2 - bl sub_0807CDA4 - cmp r0, #0 - beq _08050E9A - movs r0, #0 - bl sub_080503BC -_08050E9A: - pop {pc} - - thumb_func_start sub_08050E9C -sub_08050E9C: @ 0x08050E9C - push {lr} - ldr r1, _08050EB0 @ =gUnk_080FC950 - ldr r0, _08050EB4 @ =gMenu - ldrb r0, [r0, #5] - lsls r0, r0, #2 - adds r0, r0, r1 - ldr r0, [r0] - bl _call_via_r0 - pop {pc} - .align 2, 0 -_08050EB0: .4byte gUnk_080FC950 -_08050EB4: .4byte gMenu - - thumb_func_start sub_08050EB8 -sub_08050EB8: @ 0x08050EB8 - push {lr} - movs r0, #0xe - bl sub_080503A8 - ldr r2, _08050EE8 @ =gUnk_02019EE0 - ldrb r1, [r2, #6] - ldr r0, _08050EEC @ =0x000004B4 - muls r1, r0, r1 - adds r0, r2, #0 - adds r0, #0xc - adds r1, r1, r0 - ldrb r0, [r1, #2] - movs r3, #0 - strb r0, [r2, #4] - ldrb r0, [r1, #3] - strb r0, [r2, #5] - ldr r1, _08050EF0 @ =gMenu - strb r3, [r1, #1] - movs r0, #0xff - strh r0, [r1, #8] - movs r0, #1 - bl sub_080A7114 - pop {pc} - .align 2, 0 -_08050EE8: .4byte gUnk_02019EE0 -_08050EEC: .4byte 0x000004B4 -_08050EF0: .4byte gMenu - - thumb_func_start sub_08050EF4 -sub_08050EF4: @ 0x08050EF4 - push {r4, r5, r6, r7, lr} - mov r7, r8 - push {r7} - ldr r0, _08050F40 @ =gUnk_02019EE0 - ldrb r1, [r0] - adds r6, r0, #0 - cmp r1, #0 - bne _08050FF4 - ldrb r1, [r6, #6] - ldr r0, _08050F44 @ =0x000004B4 - muls r1, r0, r1 - adds r0, r6, #0 - adds r0, #0xc - adds r1, r1, r0 - ldr r0, _08050F48 @ =gMenu - ldrb r3, [r0, #1] - adds r4, r1, #3 - mov ip, r0 - cmp r3, #0 - bne _08050F1E - adds r4, r1, #2 -_08050F1E: - ldrb r2, [r4] - movs r5, #0 - ldr r0, _08050F4C @ =gUnk_03000FF0 - ldrh r0, [r0, #2] - mov r8, r2 - cmp r0, #0x10 - beq _08050F7A - cmp r0, #0x10 - bgt _08050F56 - cmp r0, #2 - beq _08050F8C - cmp r0, #2 - bgt _08050F50 - cmp r0, #1 - beq _08050F82 - b _08050F8E - .align 2, 0 -_08050F40: .4byte gUnk_02019EE0 -_08050F44: .4byte 0x000004B4 -_08050F48: .4byte gMenu -_08050F4C: .4byte gUnk_03000FF0 -_08050F50: - cmp r0, #8 - beq _08050F82 - b _08050F8E -_08050F56: - cmp r0, #0x40 - beq _08050F6A - cmp r0, #0x40 - bgt _08050F64 - cmp r0, #0x20 - beq _08050F72 - b _08050F8E -_08050F64: - cmp r0, #0x80 - beq _08050F6E - b _08050F8E -_08050F6A: - movs r3, #0 - b _08050F8E -_08050F6E: - movs r3, #1 - b _08050F8E -_08050F72: - cmp r2, #0 - beq _08050F8E - subs r2, #1 - b _08050F8E -_08050F7A: - cmp r2, #1 - bhi _08050F8E - adds r2, #1 - b _08050F8E -_08050F82: - ldrh r0, [r6, #4] - movs r5, #2 - ldrh r7, [r1, #2] - cmp r0, r7 - bne _08050F8E -_08050F8C: - movs r5, #3 -_08050F8E: - cmp r5, #0 - beq _08050FD0 - cmp r5, #2 - beq _08050F9C - cmp r5, #3 - beq _08050FAC - b _08050FBA -_08050F9C: - movs r0, #8 - movs r1, #0 - bl sub_08050318 - movs r0, #0x6a - bl PlaySFX - b _08050FBA -_08050FAC: - ldrb r0, [r6, #4] - strb r0, [r1, #2] - ldrb r0, [r6, #5] - strb r0, [r1, #3] - movs r0, #0x6c - bl PlaySFX -_08050FBA: - adds r0, r5, #0 - bl sub_080A7114 - ldr r0, _08050FCC @ =gUnk_02019EE0 - ldrb r0, [r0, #6] - bl sub_0805041C - b _08050FF4 - .align 2, 0 -_08050FCC: .4byte gUnk_02019EE0 -_08050FD0: - mov r1, ip - ldrb r0, [r1, #1] - cmp r0, r3 - beq _08050FE2 - strb r3, [r1, #1] - movs r0, #0x69 - bl PlaySFX - b _08050FF4 -_08050FE2: - cmp r2, r8 - beq _08050FF4 - strb r2, [r4] - ldrb r0, [r6, #6] - bl sub_080503E4 - movs r0, #0x69 - bl PlaySFX -_08050FF4: - pop {r3} - mov r8, r3 - pop {r4, r5, r6, r7, pc} - .align 2, 0 - - thumb_func_start sub_08050FFC -sub_08050FFC: @ 0x08050FFC - push {lr} - movs r0, #0 - bl sub_0807CDA4 - adds r1, r0, #0 - movs r0, #1 - rsbs r0, r0, #0 - cmp r1, r0 - beq _08051014 - cmp r1, #1 - beq _0805102A - b _08051030 -_08051014: - ldr r1, _08051034 @ =gMenu - movs r0, #0x1e - strh r0, [r1, #8] - ldr r0, _08051038 @ =gUnk_02019EE0 - ldrb r0, [r0, #6] - bl sub_0805194C - movs r0, #9 - movs r1, #0 - bl sub_08050318 -_0805102A: - movs r0, #3 - bl sub_080A7114 -_08051030: - pop {pc} - .align 2, 0 -_08051034: .4byte gMenu -_08051038: .4byte gUnk_02019EE0 - - thumb_func_start sub_0805103C -sub_0805103C: @ 0x0805103C - push {lr} - ldr r0, _08051050 @ =gMenu - ldrb r1, [r0, #8] - adds r2, r0, #0 - cmp r1, #0 - beq _08051054 - cmp r1, #0xff - beq _0805106C - b _08051060 - .align 2, 0 -_08051050: .4byte gMenu -_08051054: - ldr r0, _08051068 @ =gUnk_03000FF0 - ldrh r1, [r0, #2] - movs r0, #9 - ands r0, r1 - cmp r0, #0 - beq _08051072 -_08051060: - ldrh r0, [r2, #8] - subs r0, #1 - strh r0, [r2, #8] - b _08051072 - .align 2, 0 -_08051068: .4byte gUnk_03000FF0 -_0805106C: - movs r0, #0 - bl sub_080503BC -_08051072: - pop {pc} - - thumb_func_start sub_08051074 -sub_08051074: @ 0x08051074 - push {lr} - ldr r1, _08051088 @ =gUnk_080FC960 - ldr r0, _0805108C @ =gMenu - ldrb r0, [r0, #5] - lsls r0, r0, #2 - adds r0, r0, r1 - ldr r0, [r0] - bl _call_via_r0 - pop {pc} - .align 2, 0 -_08051088: .4byte gUnk_080FC960 -_0805108C: .4byte gMenu - - thumb_func_start sub_08051090 -sub_08051090: @ 0x08051090 - push {lr} - movs r0, #8 - bl sub_080503A8 - bl sub_08050790 - bl sub_0805070C - bl sub_08051458 - ldr r1, _080510B4 @ =gScreen - movs r0, #0xff - strh r0, [r1, #0x18] - strh r0, [r1, #0x24] - movs r0, #1 - bl sub_080A7114 - pop {pc} - .align 2, 0 -_080510B4: .4byte gScreen - - thumb_func_start sub_080510B8 -sub_080510B8: @ 0x080510B8 - push {r4, r5, r6, r7, lr} - ldr r0, _080510E4 @ =gUnk_02019EE0 - ldrb r0, [r0] - cmp r0, #0 - beq _080510C4 - b _0805134C -_080510C4: - movs r7, #0 - ldr r0, _080510E8 @ =gUnk_03000FF0 - ldrh r1, [r0, #2] - adds r2, r0, #0 - cmp r1, #8 - bne _080510D2 - b _080511C8 -_080510D2: - cmp r1, #8 - bgt _080510EC - cmp r1, #1 - bne _080510DC - b _080511F2 -_080510DC: - cmp r1, #2 - beq _080511B8 - b _08051100 - .align 2, 0 -_080510E4: .4byte gUnk_02019EE0 -_080510E8: .4byte gUnk_03000FF0 -_080510EC: - movs r0, #0x80 - lsls r0, r0, #1 - cmp r1, r0 - bne _080510F6 - b _0805122C -_080510F6: - movs r0, #0x80 - lsls r0, r0, #2 - cmp r1, r0 - bne _08051100 - b _0805121C -_08051100: - movs r6, #0 - movs r5, #0 - ldrh r0, [r2, #4] - cmp r0, #0x20 - beq _08051128 - cmp r0, #0x20 - bgt _08051114 - cmp r0, #0x10 - beq _0805112E - b _08051130 -_08051114: - cmp r0, #0x40 - beq _0805111E - cmp r0, #0x80 - beq _08051124 - b _08051130 -_0805111E: - movs r5, #1 - rsbs r5, r5, #0 - b _08051130 -_08051124: - movs r5, #1 - b _08051130 -_08051128: - movs r6, #1 - rsbs r6, r6, #0 - b _08051130 -_0805112E: - movs r6, #1 -_08051130: - ldr r4, _0805117C @ =gMenu - ldrb r0, [r4, #0x11] - adds r0, r0, r5 - adds r0, #6 - movs r1, #6 - bl __modsi3 - strb r0, [r4, #0x11] - orrs r5, r6 - cmp r5, #0 - beq _0805114C - movs r0, #0x67 - bl PlaySFX -_0805114C: - cmp r6, #0 - beq _0805123A - ldrb r0, [r4, #0x11] - cmp r0, #5 - beq _08051184 - ldrb r0, [r4, #0x10] - adds r0, r0, r6 - adds r0, #0xd - movs r1, #0xd - bl __modsi3 - strb r0, [r4, #0x10] - ldr r1, _08051180 @ =gUnk_080FC980 - movs r0, #0x80 - lsls r0, r0, #0x12 - ldrb r0, [r0, #7] - cmp r0, #0 - beq _08051172 - adds r1, #0x10 -_08051172: - ldrb r0, [r4, #0x10] - adds r0, r1, r0 - ldrb r0, [r0] - strb r0, [r4, #0x12] - b _0805123A - .align 2, 0 -_0805117C: .4byte gMenu -_08051180: .4byte gUnk_080FC980 -_08051184: - movs r0, #0x80 - lsls r0, r0, #0x12 - ldrb r0, [r0, #7] - adds r5, r0, #0 - movs r1, #4 - cmp r5, #0 - bne _08051194 - movs r1, #5 -_08051194: - ldrb r0, [r4, #0x12] - adds r0, r0, r6 - adds r0, r0, r1 - bl __modsi3 - strb r0, [r4, #0x12] - ldr r1, _080511B4 @ =gUnk_080FC9A0 - cmp r5, #0 - beq _080511A8 - adds r1, #8 -_080511A8: - ldrb r0, [r4, #0x12] - adds r0, r1, r0 - ldrb r0, [r0] - strb r0, [r4, #0x10] - b _0805123A - .align 2, 0 -_080511B4: .4byte gUnk_080FC9A0 -_080511B8: - ldr r0, _080511C4 @ =gMenu - ldrb r0, [r0, #0x13] - cmp r0, #0 - beq _080511EC - movs r7, #5 - b _0805123A - .align 2, 0 -_080511C4: .4byte gMenu -_080511C8: - movs r0, #0x80 - lsls r0, r0, #0x12 - ldrb r0, [r0, #7] - movs r1, #3 - cmp r0, #0 - bne _080511D6 - movs r1, #4 -_080511D6: - ldr r2, _080511E8 @ =gMenu - ldrb r0, [r2, #0x11] - cmp r0, #5 - bne _080511EC - ldrb r2, [r2, #0x12] - cmp r1, r2 - bne _080511EC - movs r7, #8 - b _0805123A - .align 2, 0 -_080511E8: .4byte gMenu -_080511EC: - bl sub_08051358 - b _0805123A -_080511F2: - ldr r1, _08051210 @ =gMenu - ldrb r0, [r1, #0x11] - cmp r0, #5 - bne _08051218 - ldr r2, _08051214 @ =gUnk_080FC970 - ldrb r1, [r1, #0x12] - movs r0, #0x80 - lsls r0, r0, #0x12 - ldrb r0, [r0, #7] - cmp r0, #0 - beq _0805120A - adds r1, #8 -_0805120A: - adds r0, r1, r2 - ldrb r7, [r0] - b _0805123A - .align 2, 0 -_08051210: .4byte gMenu -_08051214: .4byte gUnk_080FC970 -_08051218: - movs r7, #6 - b _0805123A -_0805121C: - movs r0, #0x80 - lsls r0, r0, #0x12 - ldrb r0, [r0, #7] - movs r7, #1 - cmp r0, #0 - bne _0805123A - movs r7, #4 - b _0805123A -_0805122C: - movs r0, #0x80 - lsls r0, r0, #0x12 - ldrb r0, [r0, #7] - movs r7, #2 - cmp r0, #0 - bne _0805123A - movs r7, #7 -_0805123A: - ldr r0, _08051250 @ =gMenu - ldrb r4, [r0, #1] - subs r0, r7, #1 - cmp r0, #7 - bhi _08051322 - lsls r0, r0, #2 - ldr r1, _08051254 @ =_08051258 - adds r0, r0, r1 - ldr r0, [r0] - mov pc, r0 - .align 2, 0 -_08051250: .4byte gMenu -_08051254: .4byte _08051258 -_08051258: @ jump table - .4byte _08051278 @ case 0 - .4byte _0805127C @ case 1 - .4byte _08051280 @ case 2 - .4byte _08051284 @ case 3 - .4byte _08051288 @ case 4 - .4byte _080512C0 @ case 5 - .4byte _080512B8 @ case 6 - .4byte _080512EC @ case 7 -_08051278: - movs r4, #0 - b _08051322 -_0805127C: - movs r4, #1 - b _08051322 -_08051280: - movs r4, #2 - b _08051322 -_08051284: - adds r4, #1 - b _08051322 -_08051288: - ldr r3, _080512B0 @ =gMenu - ldrb r0, [r3, #0x13] - cmp r0, #0 - beq _08051322 - subs r0, #1 - movs r2, #0 - strb r0, [r3, #0x13] - ldr r1, _080512B4 @ =gUnk_02002A40 - ldrb r0, [r3, #0x13] - adds r1, #0x80 - adds r0, r0, r1 - strb r2, [r0] - ldrb r0, [r3, #0x13] - adds r0, #1 - adds r0, r0, r1 - strb r2, [r0] - movs r0, #0x6c - bl sub_08051574 - b _08051322 - .align 2, 0 -_080512B0: .4byte gMenu -_080512B4: .4byte gUnk_02002A40 -_080512B8: - movs r0, #0 - bl sub_08051480 - b _08051322 -_080512C0: - ldr r2, _080512E4 @ =gUnk_02001A40 - ldr r0, _080512E8 @ =gMenu - ldrb r1, [r0, #0x10] - lsls r1, r1, #1 - ldrb r0, [r0, #0x11] - lsls r0, r0, #6 - adds r0, #0xc3 - adds r1, r1, r0 - lsls r1, r1, #1 - adds r1, r1, r2 - ldrh r0, [r1] - lsrs r0, r0, #1 - lsls r0, r0, #0x18 - lsrs r0, r0, #0x18 - bl sub_08051480 - b _08051322 - .align 2, 0 -_080512E4: .4byte gUnk_02001A40 -_080512E8: .4byte gMenu -_080512EC: - movs r3, #5 - ldr r0, _08051350 @ =gUnk_02002A40 - adds r6, r0, #0 - adds r6, #0x80 - movs r5, #0 -_080512F6: - adds r2, r3, r6 - ldrb r1, [r2] - cmp r1, #0 - beq _08051302 - cmp r1, #0x20 - bne _0805130A -_08051302: - strb r5, [r2] - subs r3, #1 - cmp r3, #0 - bge _080512F6 -_0805130A: - adds r0, #0x80 - ldrb r0, [r0] - movs r7, #3 - cmp r0, #0 - beq _08051316 - movs r7, #2 -_08051316: - movs r0, #0x6a - bl sub_08051574 - adds r0, r7, #0 - bl sub_080A7114 -_08051322: - movs r0, #0x80 - lsls r0, r0, #0x12 - ldrb r0, [r0, #7] - movs r1, #2 - cmp r0, #0 - bne _08051330 - movs r1, #3 -_08051330: - adds r0, r4, r1 - bl __modsi3 - adds r4, r0, #0 - ldr r1, _08051354 @ =gMenu - ldrb r0, [r1, #1] - cmp r0, r4 - beq _0805134C - strb r4, [r1, #1] - bl sub_08051458 - movs r0, #0x68 - bl PlaySFX -_0805134C: - pop {r4, r5, r6, r7, pc} - .align 2, 0 -_08051350: .4byte gUnk_02002A40 -_08051354: .4byte gMenu - - thumb_func_start sub_08051358 -sub_08051358: @ 0x08051358 - push {lr} - ldr r2, _08051384 @ =gMenu - movs r0, #0x80 - lsls r0, r0, #0x12 - ldrb r0, [r0, #7] - movs r1, #3 - cmp r0, #0 - bne _0805136A - movs r1, #4 -_0805136A: - strb r1, [r2, #0x12] - ldrh r1, [r2, #0x10] - ldr r0, _08051388 @ =0x0000050B - cmp r1, r0 - beq _08051382 - movs r0, #5 - strb r0, [r2, #0x11] - movs r0, #0xb - strb r0, [r2, #0x10] - movs r0, #0x67 - bl PlaySFX -_08051382: - pop {pc} - .align 2, 0 -_08051384: .4byte gMenu -_08051388: .4byte 0x0000050B - - thumb_func_start sub_0805138C -sub_0805138C: @ 0x0805138C - push {lr} - ldr r1, _080513A0 @ =gUnk_080FC9B0 - ldr r0, _080513A4 @ =gMenu - ldrb r0, [r0, #6] - lsls r0, r0, #2 - adds r0, r0, r1 - ldr r0, [r0] - bl _call_via_r0 - pop {pc} - .align 2, 0 -_080513A0: .4byte gUnk_080FC9B0 -_080513A4: .4byte gMenu - - thumb_func_start sub_080513A8 -sub_080513A8: @ 0x080513A8 - push {lr} - movs r0, #5 - movs r1, #0 - bl sub_08050318 - ldr r1, _080513BC @ =gMenu - movs r0, #1 - strb r0, [r1, #6] - pop {pc} - .align 2, 0 -_080513BC: .4byte gMenu - - thumb_func_start sub_080513C0 -sub_080513C0: @ 0x080513C0 - push {lr} - movs r0, #0 - bl sub_0807CDA4 - adds r2, r0, #0 - cmp r2, #0 - beq _08051412 - cmp r2, #0 - bgt _080513DC - movs r0, #1 - rsbs r0, r0, #0 - cmp r2, r0 - beq _080513F8 - b _08051412 -_080513DC: - cmp r2, #1 - bne _08051412 - ldr r1, _080513F4 @ =gUnk_02019EE0 - adds r0, r1, #0 - adds r0, #8 - ldrb r1, [r1, #6] - adds r0, r0, r1 - strb r2, [r0] - movs r0, #3 - bl sub_080A7114 - b _08051412 - .align 2, 0 -_080513F4: .4byte gUnk_02019EE0 -_080513F8: - ldr r0, _08051414 @ =gUnk_02019EE0 - ldrb r0, [r0, #6] - bl sub_0805194C - movs r0, #6 - movs r1, #0 - bl sub_08050318 - ldr r1, _08051418 @ =gMenu - movs r0, #0x1e - strh r0, [r1, #8] - movs r0, #2 - strb r0, [r1, #6] -_08051412: - pop {pc} - .align 2, 0 -_08051414: .4byte gUnk_02019EE0 -_08051418: .4byte gMenu - - thumb_func_start sub_0805141C -sub_0805141C: @ 0x0805141C - push {lr} - ldr r1, _0805143C @ =gMenu - ldrh r0, [r1, #8] - cmp r0, #0 - bne _08051444 - ldr r0, _08051440 @ =gUnk_03000FF0 - ldrh r1, [r0, #2] - movs r0, #9 - ands r0, r1 - cmp r0, #0 - beq _08051448 - movs r0, #3 - bl sub_080A7114 - b _08051448 - .align 2, 0 -_0805143C: .4byte gMenu -_08051440: .4byte gUnk_03000FF0 -_08051444: - subs r0, #1 - strh r0, [r1, #8] -_08051448: - pop {pc} - .align 2, 0 - - thumb_func_start sub_0805144C -sub_0805144C: @ 0x0805144C - push {lr} - movs r0, #0 - bl sub_080503BC - pop {pc} - .align 2, 0 - - thumb_func_start sub_08051458 -sub_08051458: @ 0x08051458 - push {lr} - ldr r0, _08051474 @ =gMenu - ldrb r0, [r0, #1] - adds r0, #9 - bl sub_080503A8 - ldr r0, _08051478 @ =gUnk_02001B40 - ldr r1, _0805147C @ =gUnk_02022030 - movs r2, #0x80 - lsls r2, r2, #3 - bl sub_0801D66C - pop {pc} - .align 2, 0 -_08051474: .4byte gMenu -_08051478: .4byte gUnk_02001B40 -_0805147C: .4byte gUnk_02022030 - - thumb_func_start sub_08051480 -sub_08051480: @ 0x08051480 - push {r4, lr} - adds r4, r0, #0 - bl sub_080514BC - ldr r2, _080514B4 @ =gMenu - ldrb r1, [r2, #0x13] - cmp r0, #0 - beq _080514B0 - cmp r0, #1 - beq _08051498 - adds r4, r0, #0 - subs r1, #1 -_08051498: - cmp r1, #5 - bls _0805149E - movs r1, #5 -_0805149E: - adds r0, r1, #1 - strb r0, [r2, #0x13] - ldr r0, _080514B8 @ =gUnk_02002A40 - adds r0, #0x80 - adds r0, r1, r0 - strb r4, [r0] - movs r0, #0x6b - bl sub_08051574 -_080514B0: - pop {r4, pc} - .align 2, 0 -_080514B4: .4byte gMenu -_080514B8: .4byte gUnk_02002A40 - - thumb_func_start sub_080514BC -sub_080514BC: @ 0x080514BC - push {lr} - adds r2, r0, #0 - movs r0, #0x80 - lsls r0, r0, #0x12 - ldrb r0, [r0, #7] - cmp r0, #0 - bne _080514D6 - cmp r2, #0 - beq _080514DA - cmp r2, #0xf - bhi _080514D6 - cmp r2, #0xe - bhs _080514DA -_080514D6: - movs r0, #1 - b _08051572 -_080514DA: - ldr r0, _08051500 @ =gMenu - ldrb r1, [r0, #0x13] - cmp r1, #0 - beq _08051570 - ldr r0, _08051504 @ =gUnk_02002A40 - adds r0, r0, r1 - adds r0, #0x7f - ldrb r1, [r0] - adds r0, r1, #0 - subs r0, #0xa4 - cmp r0, #0x28 - bhi _08051522 - cmp r2, #0xe - beq _0805153C - cmp r2, #0xe - bhi _08051508 - cmp r2, #0 - beq _0805150E - b _0805153C - .align 2, 0 -_08051500: .4byte gMenu -_08051504: .4byte gUnk_02002A40 -_08051508: - cmp r2, #0xf - beq _08051518 - b _0805153C -_0805150E: - cmp r1, #0xc2 - bhi _0805151C - adds r0, r1, #0 - adds r0, #0x33 - b _08051572 -_08051518: - cmp r1, #0xc2 - bls _08051570 -_0805151C: - adds r0, r1, #0 - adds r0, #0xa - b _08051572 -_08051522: - adds r0, r1, #0 - subs r0, #0xcd - cmp r0, #9 - bhi _0805154C - cmp r2, #0xe - beq _08051546 - cmp r2, #0xe - bhi _08051538 - cmp r2, #0 - beq _08051540 - b _0805154C -_08051538: - cmp r2, #0xf - bne _0805154C -_0805153C: - adds r0, r1, #0 - b _08051572 -_08051540: - adds r0, r1, #0 - adds r0, #0x29 - b _08051572 -_08051546: - adds r0, r1, #0 - subs r0, #0xa - b _08051572 -_0805154C: - adds r0, r1, #0 - subs r0, #0xd7 - cmp r0, #0x28 - bhi _08051570 - cmp r2, #0xe - beq _08051560 - cmp r2, #0xe - bls _08051560 - cmp r2, #0xf - beq _08051566 -_08051560: - adds r0, r1, #0 - subs r0, #0x33 - b _08051572 -_08051566: - cmp r1, #0xf5 - bls _08051570 - adds r0, r1, #0 - subs r0, #0x29 - b _08051572 -_08051570: - movs r0, #0 -_08051572: - pop {pc} - - thumb_func_start sub_08051574 -sub_08051574: @ 0x08051574 - push {lr} - bl PlaySFX - ldr r0, _08051594 @ =gUnk_02002A40 - ldr r3, _08051598 @ =gUnk_02019EE0 - ldrb r1, [r3, #6] - ldr r2, _0805159C @ =0x000004B4 - muls r1, r2, r1 - adds r3, #0xc - adds r1, r1, r3 - bl sub_0801D66C - bl sub_0805070C - pop {pc} - .align 2, 0 -_08051594: .4byte gUnk_02002A40 -_08051598: .4byte gUnk_02019EE0 -_0805159C: .4byte 0x000004B4 - - thumb_func_start sub_080515A0 -sub_080515A0: @ 0x080515A0 - push {lr} - ldr r1, _080515BC @ =gUnk_080FC9BC - ldr r0, _080515C0 @ =gMenu - ldrb r0, [r0, #5] - lsls r0, r0, #2 - adds r0, r0, r1 - ldr r0, [r0] - bl _call_via_r0 - ldr r0, _080515C4 @ =gUnk_02019EE0 - ldrb r0, [r0, #6] - bl sub_08050A64 - pop {pc} - .align 2, 0 -_080515BC: .4byte gUnk_080FC9BC -_080515C0: .4byte gMenu -_080515C4: .4byte gUnk_02019EE0 - - thumb_func_start sub_080515C8 -sub_080515C8: @ 0x080515C8 - push {lr} - movs r0, #1 - bl sub_080A7114 - pop {pc} - .align 2, 0 - - thumb_func_start sub_080515D4 -sub_080515D4: @ 0x080515D4 - push {r4, lr} - ldr r0, _080515FC @ =gUnk_02019EE0 - ldrb r0, [r0] - cmp r0, #0 - beq _080515E0 - b _080516D8 -_080515E0: - ldr r1, _08051600 @ =gMenu - movs r0, #4 - strh r0, [r1, #8] - ldrb r4, [r1, #1] - ldr r0, _08051604 @ =gUnk_03000FF0 - ldrh r0, [r0, #2] - subs r0, #1 - cmp r0, #0x1f - bhi _080516C8 - lsls r0, r0, #2 - ldr r1, _08051608 @ =_0805160C - adds r0, r0, r1 - ldr r0, [r0] - mov pc, r0 - .align 2, 0 -_080515FC: .4byte gUnk_02019EE0 -_08051600: .4byte gMenu -_08051604: .4byte gUnk_03000FF0 -_08051608: .4byte _0805160C -_0805160C: @ jump table - .4byte _08051694 @ case 0 - .4byte _0805168C @ case 1 - .4byte _080516C8 @ case 2 - .4byte _080516C8 @ case 3 - .4byte _080516C8 @ case 4 - .4byte _080516C8 @ case 5 - .4byte _080516C8 @ case 6 - .4byte _08051694 @ case 7 - .4byte _080516C8 @ case 8 - .4byte _080516C8 @ case 9 - .4byte _080516C8 @ case 10 - .4byte _080516C8 @ case 11 - .4byte _080516C8 @ case 12 - .4byte _080516C8 @ case 13 - .4byte _080516C8 @ case 14 - .4byte _080516C6 @ case 15 - .4byte _080516C8 @ case 16 - .4byte _080516C8 @ case 17 - .4byte _080516C8 @ case 18 - .4byte _080516C8 @ case 19 - .4byte _080516C8 @ case 20 - .4byte _080516C8 @ case 21 - .4byte _080516C8 @ case 22 - .4byte _080516C8 @ case 23 - .4byte _080516C8 @ case 24 - .4byte _080516C8 @ case 25 - .4byte _080516C8 @ case 26 - .4byte _080516C8 @ case 27 - .4byte _080516C8 @ case 28 - .4byte _080516C8 @ case 29 - .4byte _080516C8 @ case 30 - .4byte _080516C2 @ case 31 -_0805168C: - ldr r1, _080516B0 @ =gMenu - movs r0, #0 - strb r0, [r1, #1] - movs r4, #0 -_08051694: - cmp r4, #1 - bne _080516B4 - movs r0, #4 - movs r1, #0 - bl sub_08050318 - movs r0, #2 - bl sub_080A7114 - movs r0, #0x6a - bl PlaySFX - b _080516C8 - .align 2, 0 -_080516B0: .4byte gMenu -_080516B4: - movs r0, #0 - bl sub_080503BC - movs r0, #0x6c - bl PlaySFX - b _080516C8 -_080516C2: - movs r4, #0 - b _080516C8 -_080516C6: - movs r4, #1 -_080516C8: - ldr r1, _080516DC @ =gMenu - ldrb r0, [r1, #1] - cmp r0, r4 - beq _080516D8 - strb r4, [r1, #1] - movs r0, #0x69 - bl PlaySFX -_080516D8: - pop {r4, pc} - .align 2, 0 -_080516DC: .4byte gMenu - - thumb_func_start sub_080516E0 -sub_080516E0: @ 0x080516E0 - push {r4, lr} - movs r0, #1 - bl sub_0807CDA4 - cmp r0, #0 - beq _08051706 - ldr r4, _08051708 @ =gUnk_02019EE0 - ldrb r0, [r4, #6] - bl sub_0805194C - ldrb r0, [r4, #6] - bl sub_08050AFC - ldr r1, _0805170C @ =gMenu - movs r0, #2 - strh r0, [r1, #8] - movs r0, #0 - bl sub_080503BC -_08051706: - pop {r4, pc} - .align 2, 0 -_08051708: .4byte gUnk_02019EE0 -_0805170C: .4byte gMenu - - thumb_func_start sub_08051710 -sub_08051710: @ 0x08051710 - push {lr} - ldr r1, _0805172C @ =gUnk_080FC9C8 - ldr r0, _08051730 @ =gMenu - ldrb r0, [r0, #5] - lsls r0, r0, #2 - adds r0, r0, r1 - ldr r0, [r0] - bl _call_via_r0 - ldr r0, _08051734 @ =gUnk_02019EE0 - ldrb r0, [r0, #6] - bl sub_08050A64 - pop {pc} - .align 2, 0 -_0805172C: .4byte gUnk_080FC9C8 -_08051730: .4byte gMenu -_08051734: .4byte gUnk_02019EE0 - - thumb_func_start sub_08051738 -sub_08051738: @ 0x08051738 - push {r4, r5, r6, r7, lr} - ldr r1, _08051768 @ =gUnk_02019EE0 - movs r0, #4 - strb r0, [r1, #7] - movs r4, #0 - movs r3, #0 - adds r5, r1, #0 - adds r7, r5, #0 - adds r7, #8 - ldr r6, _0805176C @ =gUnk_02000090 -_0805174C: - adds r0, r3, r7 - ldrb r0, [r0] - lsls r0, r0, #0x18 - asrs r0, r0, #0x18 - cmp r0, #1 - bne _08051770 - ldrb r1, [r5, #6] - movs r2, #4 - eors r1, r3 - rsbs r0, r1, #0 - orrs r0, r1 - asrs r0, r0, #0x1f - ands r2, r0 - b _08051774 - .align 2, 0 -_08051768: .4byte gUnk_02019EE0 -_0805176C: .4byte gUnk_02000090 -_08051770: - adds r4, #1 - adds r2, r4, #0 -_08051774: - adds r0, r3, r6 - strb r2, [r0] - adds r3, #1 - cmp r3, #2 - bls _0805174C - cmp r4, #0 - bne _0805179C - ldr r1, _08051798 @ =gMenu - movs r0, #0x3c - strh r0, [r1, #8] - movs r0, #1 - movs r1, #0 - bl sub_08050318 - movs r0, #3 - bl sub_080A7114 - b _080517A2 - .align 2, 0 -_08051798: .4byte gMenu -_0805179C: - movs r0, #1 - bl sub_080A7114 -_080517A2: - adds r4, #1 - ldr r0, _080517B0 @ =gMenu - strb r4, [r0, #0x16] - movs r1, #4 - strb r1, [r0, #0x13] - strb r4, [r0, #0x14] - pop {r4, r5, r6, r7, pc} - .align 2, 0 -_080517B0: .4byte gMenu - - thumb_func_start sub_080517B4 -sub_080517B4: @ 0x080517B4 - push {r4, lr} - adds r2, r0, #0 - ldr r0, _080517E4 @ =gUnk_02019EE0 - ldrb r1, [r0, #7] - adds r4, r0, #0 - cmp r2, #0 - beq _080517DE - adds r1, r1, r2 - cmp r1, #4 - bhi _080517DC - ldr r3, _080517E8 @ =gUnk_02000090 -_080517CA: - adds r0, r1, r3 - ldrb r0, [r0] - cmp r0, #0 - beq _080517D6 - cmp r0, #4 - bne _080517DE -_080517D6: - adds r1, r1, r2 - cmp r1, #4 - bls _080517CA -_080517DC: - ldrb r1, [r4, #7] -_080517DE: - adds r0, r1, #0 - pop {r4, pc} - .align 2, 0 -_080517E4: .4byte gUnk_02019EE0 -_080517E8: .4byte gUnk_02000090 - - thumb_func_start sub_080517EC -sub_080517EC: @ 0x080517EC - push {r4, lr} - ldr r0, _08051810 @ =gUnk_02019EE0 - ldrb r1, [r0] - adds r2, r0, #0 - cmp r1, #0 - bne _0805186E - movs r4, #0 - ldr r0, _08051814 @ =gUnk_03000FF0 - ldrh r0, [r0, #2] - cmp r0, #8 - beq _0805182C - cmp r0, #8 - bgt _08051818 - cmp r0, #1 - beq _0805182C - cmp r0, #2 - beq _08051848 - b _08051858 - .align 2, 0 -_08051810: .4byte gUnk_02019EE0 -_08051814: .4byte gUnk_03000FF0 -_08051818: - cmp r0, #0x40 - beq _08051822 - cmp r0, #0x80 - beq _08051828 - b _08051858 -_08051822: - movs r4, #1 - rsbs r4, r4, #0 - b _08051858 -_08051828: - movs r4, #1 - b _08051858 -_0805182C: - ldrb r0, [r2, #7] - cmp r0, #2 - bhi _08051848 - movs r0, #2 - movs r1, #0 - bl sub_08050318 - movs r0, #2 - bl sub_080A7114 - movs r0, #0x6a - bl PlaySFX - b _08051858 -_08051848: - movs r0, #4 - strb r0, [r2, #7] - movs r0, #0x6c - bl PlaySFX - movs r0, #0 - bl sub_080503BC -_08051858: - adds r0, r4, #0 - bl sub_080517B4 - ldr r1, _08051870 @ =gUnk_02019EE0 - ldrb r2, [r1, #7] - cmp r0, r2 - beq _0805186E - strb r0, [r1, #7] - movs r0, #0x69 - bl PlaySFX -_0805186E: - pop {r4, pc} - .align 2, 0 -_08051870: .4byte gUnk_02019EE0 - - thumb_func_start sub_08051874 -sub_08051874: @ 0x08051874 - push {r4, lr} - movs r1, #0x80 - lsls r1, r1, #0x12 - ldr r4, _080518B8 @ =gUnk_02019EE0 - ldrb r0, [r4, #7] - strb r0, [r1, #4] - movs r0, #0 - bl sub_0807CDA4 - adds r1, r0, #0 - adds r0, r4, #0 - adds r0, #8 - ldrb r2, [r4, #7] - adds r0, r0, r2 - strb r1, [r0] - movs r0, #1 - rsbs r0, r0, #0 - cmp r1, r0 - beq _080518C4 - cmp r1, #1 - bne _080518DE - ldr r0, _080518BC @ =gUnk_02002A40 - ldrb r1, [r4, #7] - ldr r2, _080518C0 @ =0x000004B4 - muls r1, r2, r1 - adds r3, r4, #0 - adds r3, #0xc - adds r1, r1, r3 - bl sub_0801D66C - movs r0, #0 - bl sub_080503BC - b _080518DE - .align 2, 0 -_080518B8: .4byte gUnk_02019EE0 -_080518BC: .4byte gUnk_02002A40 -_080518C0: .4byte 0x000004B4 -_080518C4: - ldrb r0, [r4, #7] - bl sub_0805194C - movs r0, #3 - movs r1, #0 - bl sub_08050318 - ldr r1, _080518E0 @ =gMenu - movs r0, #0x1e - strh r0, [r1, #8] - movs r0, #3 - bl sub_080A7114 -_080518DE: - pop {r4, pc} - .align 2, 0 -_080518E0: .4byte gMenu - - thumb_func_start sub_080518E4 -sub_080518E4: @ 0x080518E4 - push {lr} - ldr r1, _08051904 @ =gMenu - ldrh r0, [r1, #8] - cmp r0, #0 - bne _0805190C - ldr r0, _08051908 @ =gUnk_03000FF0 - ldrh r1, [r0, #2] - movs r0, #9 - ands r0, r1 - cmp r0, #0 - beq _08051910 - movs r0, #0 - bl sub_080503BC - b _08051910 - .align 2, 0 -_08051904: .4byte gMenu -_08051908: .4byte gUnk_03000FF0 -_0805190C: - subs r0, #1 - strh r0, [r1, #8] -_08051910: - pop {pc} - .align 2, 0 - - thumb_func_start sub_08051914 -sub_08051914: @ 0x08051914 - push {lr} - ldr r1, _08051940 @ =gMenu - ldrb r0, [r1, #5] - cmp r0, #0 - bne _0805193E - movs r0, #1 - strb r0, [r1, #5] - movs r2, #0x80 - lsls r2, r2, #0x12 - ldr r1, _08051944 @ =gUnk_02002A40 - ldrb r0, [r1, #2] - strb r0, [r2, #5] - ldrb r0, [r1, #3] - strb r0, [r2, #6] - ldr r1, _08051948 @ =gUnk_03001000 - movs r0, #2 - strb r0, [r1, #3] - movs r0, #5 - movs r1, #8 - bl DoFade -_0805193E: - pop {pc} - .align 2, 0 -_08051940: .4byte gMenu -_08051944: .4byte gUnk_02002A40 -_08051948: .4byte gUnk_03001000 - - thumb_func_start sub_0805194C -sub_0805194C: @ 0x0805194C - push {r4, lr} - ldr r3, _08051980 @ =gUnk_02019EE0 - adds r1, r3, #0 - adds r1, #8 - adds r1, r0, r1 - movs r2, #0 - strb r2, [r1] - ldr r1, _08051984 @ =0x000004B4 - adds r4, r0, #0 - muls r4, r1, r4 - adds r3, #0xc - adds r4, r4, r3 - adds r0, r4, #0 - bl _DmaZero - movs r0, #1 - strb r0, [r4, #2] - strb r0, [r4, #3] - adds r1, r4, #0 - adds r1, #0xaa - movs r0, #0x18 - strb r0, [r1] - adds r4, #0xab - strb r0, [r4] - pop {r4, pc} - .align 2, 0 -_08051980: .4byte gUnk_02019EE0 -_08051984: .4byte 0x000004B4 - - thumb_func_start HandleGameplayScreen -HandleGameplayScreen: @ 0x08051988 - push {lr} - ldr r1, _080519A4 @ =gScreenTransition - ldr r0, [r1] - adds r0, #1 - str r0, [r1] - ldr r1, _080519A8 @ =gUnk_080FC9D8 - ldr r0, _080519AC @ =gUnk_03001000 - ldrb r0, [r0, #3] - lsls r0, r0, #2 - adds r0, r0, r1 - ldr r0, [r0] - bl _call_via_r0 - pop {pc} - .align 2, 0 -_080519A4: .4byte gScreenTransition -_080519A8: .4byte gUnk_080FC9D8 -_080519AC: .4byte gUnk_03001000 - - thumb_func_start sub_080519B0 -sub_080519B0: @ 0x080519B0 - push {r4, r5, lr} - ldr r0, _08051A04 @ =gFadeControl - ldrb r5, [r0] - cmp r5, #0 - bne _08051A02 - movs r0, #1 - bl sub_0801DA90 - bl sub_080A3210 - bl sub_0801DA7C - bl sub_080A7124 - bl sub_0807059C - ldr r4, _08051A08 @ =gScreenTransition - adds r0, r4, #0 - movs r1, #0xb0 - bl _DmaZero - bl sub_08049CD4 - bl sub_080300AC - bl sub_0807CA18 - ldr r0, _08051A0C @ =gUnk_02002AC8 - adds r1, r4, #0 - adds r1, #0xc - movs r2, #0x20 - bl sub_0801D66C - movs r0, #4 - strb r0, [r4, #9] - bl sub_08053518 - ldr r1, _08051A10 @ =gUnk_03001000 - movs r0, #1 - strb r0, [r1, #3] - strb r5, [r1, #4] -_08051A02: - pop {r4, r5, pc} - .align 2, 0 -_08051A04: .4byte gFadeControl -_08051A08: .4byte gScreenTransition -_08051A0C: .4byte gUnk_02002AC8 -_08051A10: .4byte gUnk_03001000 - - thumb_func_start sub_08051A14 -sub_08051A14: @ 0x08051A14 - push {lr} - movs r0, #1 - bl sub_0801DA90 - ldr r1, _08051A70 @ =gFadeControl - movs r0, #1 - rsbs r0, r0, #0 - str r0, [r1, #4] - ldr r0, _08051A74 @ =gUnk_03000000 - ldr r1, _08051A78 @ =0x00000B74 - bl _DmaZero - ldr r0, _08051A7C @ =gUnk_02032EC0 - movs r1, #0xed - lsls r1, r1, #2 - bl _DmaZero - bl EraseAllEntities - bl sub_080197AC - bl sub_08080668 - bl sub_080ADD30 - movs r0, #1 - bl sub_0801CFA8 - bl sub_0806FD8C - ldr r2, _08051A80 @ =gRoomControls - ldr r1, _08051A84 @ =gScreenTransition - ldrb r0, [r1, #0xc] - strb r0, [r2, #4] - ldrb r0, [r1, #0xd] - strb r0, [r2, #5] - bl sub_08053320 - ldr r1, _08051A88 @ =gUnk_02024490 - movs r0, #1 - strb r0, [r1] - ldr r1, _08051A8C @ =gUnk_03001000 - movs r0, #2 - strb r0, [r1, #3] - pop {pc} - .align 2, 0 -_08051A70: .4byte gFadeControl -_08051A74: .4byte gUnk_03000000 -_08051A78: .4byte 0x00000B74 -_08051A7C: .4byte gUnk_02032EC0 -_08051A80: .4byte gRoomControls -_08051A84: .4byte gScreenTransition -_08051A88: .4byte gUnk_02024490 -_08051A8C: .4byte gUnk_03001000 - - thumb_func_start sub_08051A90 -sub_08051A90: @ 0x08051A90 - push {lr} - ldr r1, _08051AA4 @ =gUnk_080FC9E8 - ldr r0, _08051AA8 @ =gUnk_03001000 - ldrb r0, [r0, #4] - lsls r0, r0, #2 - adds r0, r0, r1 - ldr r0, [r0] - bl _call_via_r0 - pop {pc} - .align 2, 0 -_08051AA4: .4byte gUnk_080FC9E8 -_08051AA8: .4byte gUnk_03001000 - - thumb_func_start InitializeNewRoom -InitializeNewRoom: @ 0x08051AAC - push {lr} - bl sub_0805E5A8 - ldr r1, _08051AE4 @ =gScreen - movs r2, #0 - movs r0, #0xba - lsls r0, r0, #5 - strh r0, [r1] - ldr r1, _08051AE8 @ =gUnk_03001000 - movs r0, #1 - strb r0, [r1, #4] - ldr r0, _08051AEC @ =gScreenTransition - strb r2, [r0, #8] - strb r2, [r0, #4] - strb r2, [r0, #5] - bl sub_08056418 - bl sub_08052CFC - movs r0, #0 - bl sub_0801C370 - bl InitializeEntities - bl sub_0801855C - pop {pc} - .align 2, 0 -_08051AE4: .4byte gScreen -_08051AE8: .4byte gUnk_03001000 -_08051AEC: .4byte gScreenTransition - - thumb_func_start sub_08051AF0 -sub_08051AF0: @ 0x08051AF0 - push {r4, r5, lr} - bl sub_0805E5C0 - bl sub_0805BBBC - cmp r0, #0 - bne _08051B02 - bl sub_0807FC40 -_08051B02: - bl sub_0801B060 - bl sub_08000108 - bl sub_0801C344 - bl sub_0805E5F8 - bl sub_080AD90C - bl sub_0801C208 - bl sub_08078CB4 - bl sub_080AD9B0 - bl sub_080AD918 - ldr r0, _08051BB0 @ =gFadeControl - ldrb r0, [r0] - cmp r0, #0 - bne _08051BAE - ldr r0, _08051BB4 @ =gRoomControls - ldrh r0, [r0] - cmp r0, #0 - bne _08051BAE - bl sub_08052F1C - ldr r5, _08051BB8 @ =gArea - movs r0, #0x86 - lsls r0, r0, #4 - adds r3, r5, r0 - ldr r1, _08051BBC @ =0x00000864 - adds r0, r5, r1 - ldr r1, [r3] - ldr r2, [r0] - cmp r1, r2 - beq _08051B5A - str r2, [r3] - ldr r0, _08051BC0 @ =0x800B0000 - orrs r2, r0 - adds r0, r2, #0 - bl PlaySFX -_08051B5A: - bl sub_0805E9F4 - bl sub_0805BC04 - adds r4, r0, #0 - cmp r4, #0 - bne _08051BAE - bl sub_08052C5C - bl sub_0805E5B4 - bl sub_08051E04 - bl sub_080300C4 - ldr r1, _08051BC4 @ =gUnk_03001000 - movs r0, #2 - strb r0, [r1, #4] - movs r0, #0 - bl sub_08078A90 - ldr r0, _08051BC8 @ =gUnk_02034490 - strb r4, [r0] - adds r0, r5, #0 - adds r0, #0x28 - ldrb r0, [r0] - cmp r0, #0xff - beq _08051B96 - bl sub_0801855C -_08051B96: - bl sub_08052BF8 - bl sub_08053178 - ldr r0, _08051BCC @ =gRoomVars - ldrb r0, [r0] - cmp r0, #0 - bne _08051BAE - movs r0, #0 - movs r1, #1 - bl sub_0805E4E0 -_08051BAE: - pop {r4, r5, pc} - .align 2, 0 -_08051BB0: .4byte gFadeControl -_08051BB4: .4byte gRoomControls -_08051BB8: .4byte gArea -_08051BBC: .4byte 0x00000864 -_08051BC0: .4byte 0x800B0000 -_08051BC4: .4byte gUnk_03001000 -_08051BC8: .4byte gUnk_02034490 -_08051BCC: .4byte gRoomVars - - thumb_func_start sub_08051BD0 -sub_08051BD0: @ 0x08051BD0 - push {lr} - bl sub_080705AC - cmp r0, #0 - bne _08051C9C - bl sub_0804AA84 - cmp r0, #0 - bne _08051C9C - bl sub_0805340C - ldr r0, _08051C5C @ =gUnk_03001000 - ldrb r0, [r0, #4] - cmp r0, #2 - bne _08051C9C - ldr r0, _08051C60 @ =gTextBox - ldrb r1, [r0] - movs r0, #0x7f - ands r0, r1 - cmp r0, #0 - bne _08051C02 - ldr r0, _08051C64 @ =gUnk_03003DC0 - ldrh r0, [r0, #8] - cmp r0, #0 - beq _08051C06 -_08051C02: - bl sub_08078B48 -_08051C06: - bl sub_080AD90C - bl sub_0805E5C0 - bl sub_08080A40 - bl sub_080175F4 - bl sub_0807FC40 - bl sub_0801B060 - bl sub_08000108 - bl sub_08052C3C - bl sub_0801C344 - bl sub_0805E5F8 - bl sub_0801C208 - bl sub_08078CB4 - bl sub_080AD9B0 - bl sub_0805291C - bl sub_08052C5C - bl sub_080528B4 - bl sub_080185F8 - bl sub_080AD918 - ldr r0, _08051C68 @ =gRoomControls - ldrh r2, [r0] - cmp r2, #1 - beq _08051C6C - cmp r2, #2 - beq _08051C88 - b _08051C9C - .align 2, 0 -_08051C5C: .4byte gUnk_03001000 -_08051C60: .4byte gTextBox -_08051C64: .4byte gUnk_03003DC0 -_08051C68: .4byte gRoomControls -_08051C6C: - ldr r0, _08051C80 @ =gPlayerState - movs r1, #0x17 - strb r1, [r0, #0xc] - ldr r0, _08051C84 @ =gUnk_03001000 - strb r2, [r0, #4] - bl sub_0805E59C - bl sub_08051D98 - b _08051C9C - .align 2, 0 -_08051C80: .4byte gPlayerState -_08051C84: .4byte gUnk_03001000 -_08051C88: - ldr r1, _08051CA0 @ =gPlayerState - movs r0, #0x17 - strb r0, [r1, #0xc] - ldr r1, _08051CA4 @ =gUnk_03001000 - movs r0, #1 - strb r0, [r1, #4] - bl sub_0805E59C - bl sub_08051DCC -_08051C9C: - pop {pc} - .align 2, 0 -_08051CA0: .4byte gPlayerState -_08051CA4: .4byte gUnk_03001000 - - thumb_func_start sub_08051CA8 -sub_08051CA8: @ 0x08051CA8 - push {lr} - bl sub_080705AC - cmp r0, #0 - bne _08051CEA - bl sub_0805E5C0 - bl sub_080175F4 - bl sub_0801C344 - bl sub_0805E5F8 - bl sub_080AD90C - bl sub_0801C208 - bl sub_08078CB4 - bl sub_080AD9B0 - bl sub_0805291C - bl sub_080528B4 - bl sub_080AD918 - ldr r0, _08051CEC @ =gFadeControl - ldrb r0, [r0] - cmp r0, #0 - bne _08051CEA - bl sub_0805E5B4 -_08051CEA: - pop {pc} - .align 2, 0 -_08051CEC: .4byte gFadeControl - - thumb_func_start sub_08051CF0 -sub_08051CF0: @ 0x08051CF0 - push {r4, r5, r6, lr} - bl sub_080AD90C - bl sub_0801C208 - bl sub_080AD9B0 - ldr r5, _08051D20 @ =gUnk_03001000 - movs r6, #1 - strb r6, [r5, #0xb] - bl sub_080AD918 - ldr r0, _08051D24 @ =gFadeControl - ldrb r4, [r0] - cmp r4, #0 - bne _08051D1E - movs r0, #1 - bl sub_0801DA90 - strb r6, [r5, #3] - strb r4, [r5, #4] - ldr r0, _08051D28 @ =gScreenTransition - strb r6, [r0, #8] -_08051D1E: - pop {r4, r5, r6, pc} - .align 2, 0 -_08051D20: .4byte gUnk_03001000 -_08051D24: .4byte gFadeControl -_08051D28: .4byte gScreenTransition - - thumb_func_start sub_08051D2C -sub_08051D2C: @ 0x08051D2C - push {lr} - movs r0, #7 - movs r1, #8 - bl DoFade - movs r0, #3 - bl InitScreen - pop {pc} - .align 2, 0 - - thumb_func_start InitializeEntities -InitializeEntities: @ 0x08051D40 - push {lr} - bl sub_08052EA0 - bl sub_0804AF90 - bl sub_0804AFDC - bl InitializePlayer - ldr r1, _08051D90 @ =gUnk_03004030 - movs r0, #0 - str r0, [r1] - bl sub_0807C740 - ldr r1, _08051D94 @ =gUnk_02000070 - movs r0, #1 - strb r0, [r1] - bl sub_0805283C - movs r0, #0 - movs r1, #0 - bl sub_0801D79C - bl LoadRoom - bl CreateZeldaFollower - bl sub_0804AFF4 - bl sub_0805329C - bl sub_08000108 - movs r0, #1 - rsbs r0, r0, #0 - bl sub_0805BB74 - bl sub_080531F8 - pop {pc} - .align 2, 0 -_08051D90: .4byte gUnk_03004030 -_08051D94: .4byte gUnk_02000070 - - thumb_func_start sub_08051D98 -sub_08051D98: @ 0x08051D98 - push {lr} - bl sub_08052EA0 - ldr r1, _08051DC8 @ =gRoomVars - movs r0, #1 - strb r0, [r1] - bl sub_0805E9A8 - bl sub_0804AF90 - bl sub_0804AFDC - bl sub_0807C0DC - bl sub_0805283C - bl LoadRoom - bl sub_0804AFF4 - movs r0, #1 - bl sub_08078A90 - pop {pc} - .align 2, 0 -_08051DC8: .4byte gRoomVars - - thumb_func_start sub_08051DCC -sub_08051DCC: @ 0x08051DCC - push {r4, lr} - ldr r1, _08051DFC @ =gRoomControls - ldr r4, _08051E00 @ =gScreenTransition - ldrb r0, [r4, #0xc] - strb r0, [r1, #4] - ldrb r0, [r4, #0xd] - strb r0, [r1, #5] - bl sub_080528F0 - movs r0, #3 - strb r0, [r4, #9] - bl sub_08052CFC - bl sub_08052EA0 - bl sub_0805E9A8 - bl sub_0804AF90 - bl sub_0804AFDC - bl sub_0805283C - pop {r4, pc} - .align 2, 0 -_08051DFC: .4byte gRoomControls -_08051E00: .4byte gScreenTransition - - thumb_func_start sub_08051E04 -sub_08051E04: @ 0x08051E04 - push {lr} - bl sub_08052620 - cmp r0, #0 - beq _08051E60 - ldr r1, _08051E2C @ =gPlayerEntity - movs r2, #0x2e - ldrsh r0, [r1, r2] - cmp r0, #0 - bge _08051E1A - adds r0, #0xf -_08051E1A: - asrs r2, r0, #4 - movs r3, #0x32 - ldrsh r0, [r1, r3] - cmp r0, #0 - bge _08051E26 - adds r0, #0xf -_08051E26: - asrs r1, r0, #4 - ldr r3, _08051E30 @ =gUnk_08127F94 - b _08051E36 - .align 2, 0 -_08051E2C: .4byte gPlayerEntity -_08051E30: .4byte gUnk_08127F94 -_08051E34: - adds r3, #8 -_08051E36: - ldrb r0, [r3] - cmp r0, #0xff - beq _08051E60 - cmp r0, r2 - bhi _08051E34 - ldrb r0, [r3, #2] - cmp r0, r2 - blo _08051E34 - ldrb r0, [r3, #1] - cmp r0, r1 - bhi _08051E34 - ldrb r0, [r3, #3] - cmp r0, r1 - blo _08051E34 - ldr r2, _08051E64 @ =gUnk_02002A40 - movs r1, #1 - ldrb r3, [r3, #4] - lsls r1, r3 - ldr r0, [r2, #0x40] - orrs r0, r1 - str r0, [r2, #0x40] -_08051E60: - pop {pc} - .align 2, 0 -_08051E64: .4byte gUnk_02002A40 - - thumb_func_start sub_08051E68 -sub_08051E68: @ 0x08051E68 - push {lr} - ldr r1, _08051E7C @ =gUnk_080FCA08 - ldr r0, _08051E80 @ =gMenu - ldrb r0, [r0, #5] - lsls r0, r0, #2 - adds r0, r0, r1 - ldr r0, [r0] - bl _call_via_r0 - pop {pc} - .align 2, 0 -_08051E7C: .4byte gUnk_080FCA08 -_08051E80: .4byte gMenu - - thumb_func_start sub_08051E84 -sub_08051E84: @ 0x08051E84 - push {r4, r5, r6, lr} - ldr r0, _08051EF0 @ =gUnk_02032EC0 - ldrb r4, [r0, #3] - lsls r4, r4, #3 - ldr r0, _08051EF4 @ =gUnk_080FCA20 - adds r4, r4, r0 - ldr r5, _08051EF8 @ =gRoomControls - ldrb r0, [r4] - strb r0, [r5, #4] - ldrb r0, [r4, #1] - strb r0, [r5, #5] - bl sub_08053320 - ldrb r0, [r5, #4] - bl sub_08052D58 - ldr r1, _08051EFC @ =gArea - movs r6, #0 - strh r0, [r1, #4] - ldrb r0, [r4] - ldrb r1, [r4, #1] - bl SetCurrentRoomPropertyList - ldrb r0, [r4] - ldrb r1, [r4, #1] - bl sub_08052FD8 - ldrh r0, [r4, #4] - ldrh r1, [r5, #6] - adds r0, r0, r1 - strh r0, [r5, #0xa] - ldrh r0, [r4, #6] - ldrh r1, [r5, #8] - adds r0, r0, r1 - strh r0, [r5, #0xc] - ldr r1, _08051F00 @ =gMenu - ldrb r0, [r4, #2] - strb r0, [r1] - ldrb r2, [r4, #3] - movs r0, #0xf - ands r0, r2 - strb r0, [r1, #3] - str r4, [r1, #0xc] - ldrb r0, [r1, #5] - adds r0, #1 - strb r0, [r1, #5] - strb r6, [r1, #6] - movs r0, #0x96 - lsls r0, r0, #1 - strh r0, [r1, #8] - bl sub_08051F04 - pop {r4, r5, r6, pc} - .align 2, 0 -_08051EF0: .4byte gUnk_02032EC0 -_08051EF4: .4byte gUnk_080FCA20 -_08051EF8: .4byte gRoomControls -_08051EFC: .4byte gArea -_08051F00: .4byte gMenu - - thumb_func_start sub_08051F04 -sub_08051F04: @ 0x08051F04 - push {lr} - ldr r1, _08051F38 @ =gUnk_080FCA14 - ldr r0, _08051F3C @ =gMenu - ldrb r0, [r0] - lsls r0, r0, #2 - adds r0, r0, r1 - ldr r0, [r0] - bl _call_via_r0 - bl sub_080AD90C - bl sub_0805E5C0 - bl sub_080AD9B0 - bl sub_080AD918 - bl sub_0807FC40 - bl sub_0801B060 - bl sub_0805E5F8 - bl sub_08000108 - pop {pc} - .align 2, 0 -_08051F38: .4byte gUnk_080FCA14 -_08051F3C: .4byte gMenu - - thumb_func_start sub_08051F40 -sub_08051F40: @ 0x08051F40 - push {lr} - ldr r0, _08051F60 @ =gUnk_080FCA20 - ldr r2, _08051F64 @ =gUnk_02032EC0 - ldrb r1, [r2, #3] - lsls r1, r1, #3 - adds r1, r1, r0 - ldrb r1, [r1, #3] - movs r0, #0xf0 - ands r0, r1 - cmp r0, #0 - beq _08051F68 - lsrs r1, r1, #4 - movs r0, #2 - bl MenuFadeIn - b _08051F76 - .align 2, 0 -_08051F60: .4byte gUnk_080FCA20 -_08051F64: .4byte gUnk_02032EC0 -_08051F68: - movs r0, #3 - strb r0, [r2] - movs r0, #0x10 - bl sub_080500F4 - bl sub_08056418 -_08051F76: - pop {pc} - - thumb_func_start sub_08051F78 -sub_08051F78: @ 0x08051F78 - push {lr} - ldr r0, _08051F94 @ =gUnk_02032EC0 - ldrb r3, [r0, #3] - lsls r3, r3, #3 - ldr r0, _08051F98 @ =gUnk_080FCA20 - adds r3, r3, r0 - ldrb r0, [r3] - ldrb r1, [r3, #1] - ldrh r2, [r3, #4] - ldrh r3, [r3, #6] - bl sub_08051F9C - pop {pc} - .align 2, 0 -_08051F94: .4byte gUnk_02032EC0 -_08051F98: .4byte gUnk_080FCA20 - - thumb_func_start sub_08051F9C -sub_08051F9C: @ 0x08051F9C - push {r4, r5, r6, lr} - mov r6, r8 - push {r6} - adds r6, r2, #0 - mov r8, r3 - ldr r5, _08051FE0 @ =gScreen - ldrh r2, [r5] - movs r4, #0xc0 - lsls r4, r4, #7 - ands r4, r2 - bl sub_08052FF4 - ldr r1, _08051FE4 @ =gRoomControls - ldrh r0, [r1, #6] - adds r0, r0, r6 - movs r6, #0 - strh r0, [r1, #0xa] - ldrh r0, [r1, #8] - add r0, r8 - strh r0, [r1, #0xc] - bl sub_0807C740 - ldr r1, _08051FE8 @ =gUnk_02000070 - movs r0, #1 - strb r0, [r1] - ldr r0, _08051FEC @ =gUsedPalettes - str r6, [r0] - ldrh r0, [r5] - orrs r4, r0 - strh r4, [r5] - pop {r3} - mov r8, r3 - pop {r4, r5, r6, pc} - .align 2, 0 -_08051FE0: .4byte gScreen -_08051FE4: .4byte gRoomControls -_08051FE8: .4byte gUnk_02000070 -_08051FEC: .4byte gUsedPalettes - - thumb_func_start sub_08051FF0 -sub_08051FF0: @ 0x08051FF0 - push {lr} - ldr r0, _08052000 @ =gMenu - ldr r1, [r0, #0xc] - ldrb r0, [r1] - ldrb r1, [r1, #1] - bl sub_0804B0B0 - pop {pc} - .align 2, 0 -_08052000: .4byte gMenu - - thumb_func_start sub_08052004 -sub_08052004: @ 0x08052004 - ldr r1, _0805200C @ =gMenu - movs r0, #2 - strb r0, [r1, #5] - bx lr - .align 2, 0 -_0805200C: .4byte gMenu - - thumb_func_start sub_08052010 -sub_08052010: @ 0x08052010 - push {r4, lr} - bl sub_080A3210 - bl sub_08056418 - movs r0, #1 - bl sub_0801DA90 - ldr r0, _0805207C @ =gUnk_02021F30 - movs r4, #0x80 - lsls r4, r4, #4 - adds r1, r4, #0 - bl _DmaZero - ldr r0, _08052080 @ =gUnk_020344B0 - adds r1, r4, #0 - bl _DmaZero - bl sub_080A4D34 - movs r0, #0xa - bl LoadPaletteGroup - movs r0, #0 - movs r1, #0 - bl sub_0801D79C - movs r0, #4 - bl LoadGfxGroup - movs r0, #0xc0 - lsls r0, r0, #0x13 - movs r1, #0x20 - bl _DmaZero - ldr r0, _08052084 @ =gMenu - movs r1, #0x30 - bl _DmaZero - ldr r1, _08052088 @ =gScreen - ldrh r2, [r1] - movs r3, #0x80 - lsls r3, r3, #5 - adds r0, r3, #0 - orrs r0, r2 - strh r0, [r1] - ldr r0, _0805208C @ =0x00001C01 - strh r0, [r1, #0x14] - ldr r0, _08052090 @ =0x00001D05 - strh r0, [r1, #0x20] - movs r0, #1 - strh r0, [r1, #0x1a] - strh r0, [r1, #0x26] - pop {r4, pc} - .align 2, 0 -_0805207C: .4byte gUnk_02021F30 -_08052080: .4byte gUnk_020344B0 -_08052084: .4byte gMenu -_08052088: .4byte gScreen -_0805208C: .4byte 0x00001C01 -_08052090: .4byte 0x00001D05 - - thumb_func_start HandleGameOverScreen -HandleGameOverScreen: @ 0x08052094 - push {r4, lr} - ldr r1, _080520BC @ =gUnk_080FCA70 - ldr r4, _080520C0 @ =gUnk_03001000 - ldrb r0, [r4, #3] - lsls r0, r0, #2 - adds r0, r0, r1 - ldr r0, [r0] - bl _call_via_r0 - ldrb r0, [r4, #3] - cmp r0, #0 - beq _080520B8 - bl sub_080AD90C - bl sub_080523D4 - bl sub_080AD918 -_080520B8: - pop {r4, pc} - .align 2, 0 -_080520BC: .4byte gUnk_080FCA70 -_080520C0: .4byte gUnk_03001000 - - thumb_func_start sub_080520C4 -sub_080520C4: @ 0x080520C4 - push {lr} - ldr r1, _080520D4 @ =gUnk_03001000 - strb r0, [r1, #3] - movs r0, #0 - bl sub_080A7114 - pop {pc} - .align 2, 0 -_080520D4: .4byte gUnk_03001000 - - thumb_func_start sub_080520D8 -sub_080520D8: @ 0x080520D8 - push {r4, lr} - ldr r4, _08052118 @ =gFadeControl - ldrb r0, [r4] - cmp r0, #0 - bne _08052114 - bl sub_08052010 - ldr r1, _0805211C @ =gMenu - movs r0, #0x50 - strb r0, [r1, #0x10] - movs r2, #0x3c - movs r0, #0x3c - strh r0, [r1, #8] - ldr r0, _08052120 @ =gUnk_02002A40 - adds r0, #0xaa - movs r1, #0x18 - strb r1, [r0] - ldr r0, _08052124 @ =gUnk_03001000 - strb r2, [r0, #5] - movs r0, #0xa - bl PlaySFX - movs r0, #4 - bl sub_080500F4 - ldr r0, _08052128 @ =0xFFFF0001 - str r0, [r4, #4] - movs r0, #1 - bl sub_080520C4 -_08052114: - pop {r4, pc} - .align 2, 0 -_08052118: .4byte gFadeControl -_0805211C: .4byte gMenu -_08052120: .4byte gUnk_02002A40 -_08052124: .4byte gUnk_03001000 -_08052128: .4byte 0xFFFF0001 - - thumb_func_start sub_0805212C -sub_0805212C: @ 0x0805212C - push {r4, lr} - ldr r4, _0805214C @ =gFadeControl - ldrb r0, [r4] - cmp r0, #0 - bne _0805219C - ldr r1, _08052150 @ =gUnk_03001000 - ldrb r0, [r1, #5] - cmp r0, #0 - bne _08052198 - ldr r1, _08052154 @ =gMenu - ldrb r0, [r1, #0x10] - cmp r0, #0x25 - bls _08052158 - subs r0, #1 - strb r0, [r1, #0x10] - b _0805219C - .align 2, 0 -_0805214C: .4byte gFadeControl -_08052150: .4byte gUnk_03001000 -_08052154: .4byte gMenu -_08052158: - ldrh r0, [r1, #8] - subs r0, #1 - strh r0, [r1, #8] - lsls r0, r0, #0x10 - cmp r0, #0 - bne _0805219C - movs r0, #2 - bl sub_080520C4 - movs r0, #0 - movs r1, #0 - bl sub_08052418 - ldr r2, _08052190 @ =gScreen - ldrh r0, [r2] - movs r3, #0xc0 - lsls r3, r3, #3 - adds r1, r3, #0 - orrs r0, r1 - strh r0, [r2] - ldr r0, _08052194 @ =0x0000FFFF - str r0, [r4, #4] - movs r0, #4 - movs r1, #0x10 - bl DoFade - b _0805219C - .align 2, 0 -_08052190: .4byte gScreen -_08052194: .4byte 0x0000FFFF -_08052198: - subs r0, #1 - strb r0, [r1, #5] -_0805219C: - pop {r4, pc} - .align 2, 0 - - thumb_func_start sub_080521A0 -sub_080521A0: @ 0x080521A0 - push {r4, lr} - ldr r0, _080521C4 @ =gFadeControl - ldrb r0, [r0] - cmp r0, #0 - beq _080521AC - b _080522E8 -_080521AC: - ldr r0, _080521C8 @ =gMenu - ldrb r1, [r0, #5] - adds r2, r0, #0 - cmp r1, #4 - bls _080521B8 - b _080522D4 -_080521B8: - lsls r0, r1, #2 - ldr r1, _080521CC @ =_080521D0 - adds r0, r0, r1 - ldr r0, [r0] - mov pc, r0 - .align 2, 0 -_080521C4: .4byte gFadeControl -_080521C8: .4byte gMenu -_080521CC: .4byte _080521D0 -_080521D0: @ jump table - .4byte _080521E4 @ case 0 - .4byte _08052208 @ case 1 - .4byte _08052278 @ case 2 - .4byte _080522B0 @ case 3 - .4byte _080522D4 @ case 4 -_080521E4: - movs r1, #0 - movs r0, #0x1e - strh r0, [r2, #8] - strb r1, [r2, #3] - movs r0, #1 - bl sub_080A7114 - movs r0, #0 - movs r1, #0 - bl sub_08052418 - ldr r1, _08052204 @ =gFadeControl - movs r0, #1 - rsbs r0, r0, #0 - str r0, [r1, #4] - b _080522E8 - .align 2, 0 -_08052204: .4byte gFadeControl -_08052208: - ldrh r0, [r2, #8] - cmp r0, #0 - bne _080522B6 - ldrb r4, [r2, #3] - ldr r0, _08052224 @ =gUnk_03000FF0 - ldrh r0, [r0, #2] - cmp r0, #0x40 - beq _0805222E - cmp r0, #0x40 - bgt _08052228 - cmp r0, #1 - beq _08052236 - b _0805225A - .align 2, 0 -_08052224: .4byte gUnk_03000FF0 -_08052228: - cmp r0, #0x80 - beq _08052232 - b _0805225A -_0805222E: - movs r4, #0 - b _0805225A -_08052232: - movs r4, #1 - b _0805225A -_08052236: - cmp r4, #0 - beq _0805223E - movs r2, #4 - b _08052248 -_0805223E: - movs r0, #8 - movs r1, #0 - bl sub_08050318 - movs r2, #2 -_08052248: - ldr r1, _08052274 @ =gMenu - movs r0, #0x3c - strh r0, [r1, #8] - adds r0, r2, #0 - bl sub_080A7114 - movs r0, #0x6a - bl PlaySFX -_0805225A: - ldr r1, _08052274 @ =gMenu - ldrb r0, [r1, #3] - cmp r0, r4 - beq _080522E8 - strb r4, [r1, #3] - movs r0, #0 - adds r1, r4, #0 - bl sub_08052418 - movs r0, #0x69 - bl PlaySFX - b _080522E8 - .align 2, 0 -_08052274: .4byte gMenu -_08052278: - movs r0, #0 - bl sub_0807CDA4 - adds r1, r0, #0 - ldr r2, _08052298 @ =gMenu - strb r1, [r2] - movs r0, #1 - rsbs r0, r0, #0 - cmp r1, r0 - beq _0805229C - cmp r1, #1 - bne _080522E8 - movs r0, #4 - bl sub_080A7114 - b _080522E8 - .align 2, 0 -_08052298: .4byte gMenu -_0805229C: - movs r0, #0x3c - strh r0, [r2, #8] - movs r0, #9 - movs r1, #0 - bl sub_08050318 - movs r0, #3 - bl sub_080A7114 - b _080522E8 -_080522B0: - ldrh r0, [r2, #8] - cmp r0, #0 - beq _080522BC -_080522B6: - subs r0, #1 - strh r0, [r2, #8] - b _080522E8 -_080522BC: - ldr r0, _080522D0 @ =gUnk_03000FF0 - ldrh r1, [r0, #2] - movs r0, #0xb - ands r0, r1 - cmp r0, #0 - beq _080522E8 - movs r0, #0 - bl sub_080A7114 - b _080522E8 - .align 2, 0 -_080522D0: .4byte gUnk_03000FF0 -_080522D4: - ldr r2, _080522EC @ =gScreen - ldrh r1, [r2] - ldr r0, _080522F0 @ =0x0000FDFF - ands r0, r1 - strh r0, [r2] - bl sub_08050384 - movs r0, #3 - bl sub_080520C4 -_080522E8: - pop {r4, pc} - .align 2, 0 -_080522EC: .4byte gScreen -_080522F0: .4byte 0x0000FDFF - - thumb_func_start sub_080522F4 -sub_080522F4: @ 0x080522F4 - push {r4, lr} - ldr r0, _08052320 @ =gMenu - ldrb r1, [r0, #5] - adds r3, r0, #0 - cmp r1, #1 - beq _08052324 - cmp r1, #1 - bgt _080523AC - cmp r1, #0 - bne _080523AC - movs r1, #0 - movs r0, #0x1e - strh r0, [r3, #8] - strb r1, [r3, #3] - movs r0, #1 - bl sub_080A7114 - movs r0, #1 - movs r1, #0 - bl sub_08052418 - b _080523CC - .align 2, 0 -_08052320: .4byte gMenu -_08052324: - ldr r2, _08052340 @ =gScreen - ldrh r1, [r2] - movs r4, #0x80 - lsls r4, r4, #2 - adds r0, r4, #0 - orrs r0, r1 - strh r0, [r2] - ldrh r0, [r3, #8] - cmp r0, #0 - beq _08052344 - subs r0, #1 - strh r0, [r3, #8] - b _080523CC - .align 2, 0 -_08052340: .4byte gScreen -_08052344: - ldrb r4, [r3, #3] - ldr r0, _08052358 @ =gUnk_03000FF0 - ldrh r0, [r0, #2] - cmp r0, #0x40 - beq _08052362 - cmp r0, #0x40 - bgt _0805235C - cmp r0, #1 - beq _0805236A - b _0805238C - .align 2, 0 -_08052358: .4byte gUnk_03000FF0 -_0805235C: - cmp r0, #0x80 - beq _08052366 - b _0805238C -_08052362: - movs r4, #0 - b _0805238C -_08052366: - movs r4, #1 - b _0805238C -_0805236A: - movs r0, #2 - bl sub_080A7114 - movs r0, #0x6a - bl PlaySFX - cmp r4, #0 - bne _08052384 - movs r0, #5 - movs r1, #8 - bl DoFade - b _0805238C -_08052384: - movs r0, #7 - movs r1, #8 - bl DoFade -_0805238C: - ldr r1, _080523A8 @ =gMenu - ldrb r0, [r1, #3] - cmp r0, r4 - beq _080523CC - strb r4, [r1, #3] - movs r0, #1 - adds r1, r4, #0 - bl sub_08052418 - movs r0, #0x69 - bl PlaySFX - b _080523CC - .align 2, 0 -_080523A8: .4byte gMenu -_080523AC: - ldr r0, _080523C4 @ =gFadeControl - ldrb r0, [r0] - cmp r0, #0 - bne _080523CC - ldrb r0, [r3, #3] - cmp r0, #0 - bne _080523C8 - movs r0, #2 - bl InitScreen - b _080523CC - .align 2, 0 -_080523C4: .4byte gFadeControl -_080523C8: - bl DoSoftReset -_080523CC: - pop {r4, pc} - .align 2, 0 - - thumb_func_start nullsub_107 -nullsub_107: @ 0x080523D0 - bx lr - .align 2, 0 - - thumb_func_start sub_080523D4 -sub_080523D4: @ 0x080523D4 - push {r4, r5, r6, lr} - ldr r1, _08052408 @ =gUnk_03001010 - movs r0, #0 - strh r0, [r1, #4] - strh r0, [r1, #6] - movs r0, #0x86 - lsls r0, r0, #8 - strh r0, [r1, #8] - ldr r0, _0805240C @ =gMenu - ldrb r0, [r0, #0x10] - strh r0, [r1, #2] - movs r4, #0 - adds r6, r1, #0 - ldr r5, _08052410 @ =gUnk_080FCA84 -_080523F0: - adds r0, r4, r5 - ldrb r0, [r0] - strh r0, [r6] - ldr r0, _08052414 @ =0x000001FD - adds r1, r4, #0 - bl sub_080ADA14 - adds r4, #1 - cmp r4, #7 - bls _080523F0 - pop {r4, r5, r6, pc} - .align 2, 0 -_08052408: .4byte gUnk_03001010 -_0805240C: .4byte gMenu -_08052410: .4byte gUnk_080FCA84 -_08052414: .4byte 0x000001FD diff --git a/include/functions.h b/include/functions.h index dadc6846..45837388 100644 --- a/include/functions.h +++ b/include/functions.h @@ -170,7 +170,7 @@ extern void sub_0804F578(void); extern void sub_08059994(void); extern void LoadGfxGroup(u32); extern s32 sub_0801CFA8(u32); -extern void sub_080A3210(); +extern void sub_080A3210(void); extern void sub_080ADA14(u32, u32); extern void sub_0801E1B8(u32, u32); extern void sub_0801E1EC(s32, s32, s32); @@ -184,7 +184,7 @@ extern u32 sub_080A4494(void); extern void sub_080A4528(void); extern void sub_080A4398(void); extern void sub_0801E738(u32); -extern void sub_080A70AC(void*); +extern void sub_080A70AC(const void*); extern void sub_080A7114(u32); extern void sub_08001242(void); extern u32 sub_08003FC4(Entity*, u32); @@ -203,11 +203,11 @@ extern void sub_0807A108(void); extern void sub_0801766C(Entity*); extern void sub_08004168(Entity*); extern u32 sub_08052638(u32); -extern void sub_0805616C(); +extern void sub_0805616C(void); extern u32 sub_0807CF08(u32, u8*); extern void sub_0807CF48(u32); extern u32 sub_0807CF10(u8 *); -extern void sub_08056208(); +extern void sub_08056208(void); extern void sub_08050384(); extern void sub_080B1520(u32); extern struct_0807D1C4* sub_0807D1C4(u32); @@ -250,4 +250,5 @@ extern void sub_08097B24(Entity*); extern u32 sub_08079F8C(void); extern void sub_080787CC(Entity*); extern void sub_080526F8(s32); +extern int sub_0807CF28(u32, SaveFile*); #endif \ No newline at end of file diff --git a/include/main.h b/include/main.h index 984ed077..39820694 100644 --- a/include/main.h +++ b/include/main.h @@ -39,15 +39,16 @@ typedef struct { } Main; typedef struct { - u16 nextToLoad; - u8 transitionType; - u8 field_0x3; - u8 state; - u8 field_0x5; - u8 field_0x6; - u8 pauseFadeIn; - u16 isLoading; - u16 fadeInTime; + /*0x00*/ u16 nextToLoad; + /*0x02*/ u8 transitionType; + /*0x03*/ u8 field_0x3; + /*0x04*/ u8 state; + /*0x05*/ u8 field_0x5; + /*0x06*/ u8 field_0x6; + /*0x07*/ u8 pauseFadeIn; + /*0x08*/ u16 isLoading; + /*0x0A*/ u16 fadeInTime; + /*0x0C*/ u8 fillerC[0x3A8]; } UI; extern Main gUnk_03001000; diff --git a/include/structures.h b/include/structures.h index 16cc72a8..32ae8d74 100644 --- a/include/structures.h +++ b/include/structures.h @@ -7,8 +7,8 @@ typedef struct { char header[4]; - u8 saveFile; - u8 field_0x5; + u8 saveFileId; + u8 messageSpeed; u8 brightnessPref; u8 gameLanguage; } struct_02000000; @@ -34,7 +34,10 @@ typedef struct { extern struct_02000010 gUnk_02000010; typedef struct { - /*0x000*/ u8 filler0[0x6]; + /*0x000*/ u8 filler0[0x2]; + /*0x002*/ u8 messageSpeed; + /*0x003*/ u8 brightnessPref; + /*0x004*/ u8 filler4[0x2]; /*0x006*/ u8 unk6; /*0x007*/ u8 unk7; /*0x008*/ u8 unk8; @@ -44,11 +47,12 @@ typedef struct { /*0x050*/ u32 unk50; /*0x054*/ u8 filler54[0x54]; /*0x0A8*/ Stats stats; - /*0x0D0*/ u8 filler4[0x3c0]; + /*0x0D0*/ u8 fillerD0[0x3c0]; /*0x490*/ u32 unk490; -} struct_02002A40; + /*0x494*/ u8 filler494[0x20]; +} SaveFile; -extern struct_02002A40 gUnk_02002A40; +extern SaveFile gUnk_02002A40; typedef struct { u32 frameCount; // regular frame count? does anything reset it? @@ -99,10 +103,13 @@ typedef struct { typedef struct { /*0x00*/ u8 unk0; - /*0x01*/ u8 filler1[0x5]; + /*0x01*/ u8 unk1; + /*0x02*/ u8 unk2; + /*0x03*/ u8 unk3; + /*0x04*/ u8 filler4[0x2]; /*0x06*/ u8 unk6; /*0x07*/ u8 unk7; - /*0x08*/ s8 unk8[0x10]; // ?? unclear know how large this is + /*0x08*/ s8 unk8[0xE20]; } struct_02019EE0; extern struct_02019EE0 gUnk_02019EE0; @@ -126,4 +133,18 @@ typedef struct { extern struct_03000FD0 gFadeControl; +typedef struct { + u8 unk0[0x24]; + u8 ezloNagFuncIndex; + u8 filler25[0x30F]; +} struct_0200AF00; + +extern struct_0200AF00 gUnk_0200AF00; + +typedef struct { + u8 unk0; +} struct_02024490; + +extern struct_02024490 gUnk_02024490; + #endif \ No newline at end of file diff --git a/linker.ld b/linker.ld index cceaae18..fda209e8 100644 --- a/linker.ld +++ b/linker.ld @@ -18,6 +18,7 @@ SECTIONS { . = 0x00000070; gUnk_02000070 = .; . = 0x00000080; gMenu = .; . = 0x00000080; gIntroState = .; + . = 0x00000080; gChooseFileState = .; . = 0x00000090; gUnk_02000090 = .; . = 0x000000B0; gUnk_020000B0 = .; . = 0x000000C0; gUnk_020000C0 = .; @@ -72,7 +73,7 @@ SECTIONS { . = 0x00018EB0; gUnk_02018EB0 = .; . = 0x00018EE0; gUnk_02018EE0 = .; . = 0x00019EE0; gUnk_02019EE0 = .; - . = 0x00019EEC; gUnk_02019EEC = .; + . = 0x00019EEC; gSaveFiles = .; . = 0x00019F6C; gUnk_02019F6C = .; . = 0x0001AEE0; gUnk_0201AEE0 = .; . = 0x00021EE0; gUnk_02021EE0 = .; @@ -450,6 +451,8 @@ SECTIONS { src/sub_08050008.o(.text); src/sub_08050024.o(.text); asm/code_08050038.o(.text); + src/chooseFile.o(.text); + asm/chooseFile.o(.text); asm/sub_08052418.o(.text); src/initializePlayer.o(.text); src/area.o(.text); diff --git a/src/chooseFile.c b/src/chooseFile.c new file mode 100755 index 00000000..6df4fec6 --- /dev/null +++ b/src/chooseFile.c @@ -0,0 +1,236 @@ +#include "global.h" +#include "functions.h" +#include "main.h" +#include "screen.h" + +typedef struct { + u8 filler0[0x30]; +} ChooseFileState; + +// TODO: This occupies the same memory region as gMenu +extern ChooseFileState gChooseFileState; + +typedef struct { + u8 filler0[0x10]; + u16 unk10; + u8 filler12[0x6]; +} struct_080FC844; + +typedef struct { + u8 filler0[0x4]; +} struct_020227E8; + +extern struct_020227E8 gUnk_020227E8; + +typedef struct { + u8 filler0[0x800]; +} struct_02034CB0; + +extern struct_02034CB0 gUnk_02034CB0; +extern struct_02034CB0 gUnk_02021F30; +extern SaveFile gSaveFiles[]; +extern u32 gUsedPalettes; + +static void sub_08050624(u32); +static void sub_0805066C(void); + +extern void sub_0801D66C(const void* src, void* dest, u32 size); +extern void sub_08056FEC(u32, struct_020227E8*); +extern void sub_0805F46C(u32, struct_080FC844*); +extern void sub_0801C4A0(u32, u32); +extern void sub_0801D66C(const void* src, void* dest, u32 size); +extern void sub_080507FC(void); +extern void sub_08080668(void); +extern void sub_0805194C(u32); +extern void LoadPalettes(const u8*, int, int); + +extern const struct_080FC844 gUnk_080FC844; +extern const u16 gUnk_080FC85C[][3]; +extern void (*const gUnk_080FC8A4[])(void); +extern void (*const gUnk_080FC8B0[])(void); +extern const u8 gUnk_080FC8D0[]; +extern const u16 gUnk_080FC8DE[]; +extern const u8 gGlobalGfxAndPalettes[]; + +void sub_08050318(u32 arg0, u32 arg1) { + u32 sfx; + struct_080FC844 var0; + + sub_08050384(); + sub_0801D66C(&gUnk_080FC844, &var0, sizeof(gUnk_080FC844)); + sub_08056FEC(arg1, &gUnk_020227E8); + var0.unk10 |= gUnk_080FC85C[arg0][0] << 0xC; + sub_0805F46C(gUnk_080FC85C[arg0][1], &var0); + sfx = gUnk_080FC85C[arg0][2]; + if (sfx) { + PlaySFX(sfx); + } + gScreen.bg.bg3Control = 1; +} + +void sub_08050384(void) { + sub_0801C4A0(0, 0); + _DmaZero(&gUnk_02034CB0, sizeof(gUnk_02034CB0)); + gScreen.bg.bg3Control = 1; +} + +void sub_080503A8(u32 gfxGroup) { + LoadGfxGroup(gfxGroup); + gScreen.bg.bg2yOffset = 1; + gScreen.affine.unk = 1; +} + +void sub_080503BC(u8 state) { + gUnk_02032EC0.state = state; + _DmaZero(&gUnk_02034CB0, sizeof(gUnk_02034CB0)); + _DmaZero(&gUnk_02021F30, sizeof(gUnk_02021F30)); +} + +void sub_080503E4(u32 saveFileId) { + u8 messageSpeed; + u8 brightnessPref; + + if (saveFileId > 2) { + messageSpeed = 1; + brightnessPref = 1; + } else { + SaveFile* saveFile = &gSaveFiles[saveFileId]; + messageSpeed = saveFile->messageSpeed; + brightnessPref = saveFile->brightnessPref; + } + + ((struct_02000000 *)0x2000000)->messageSpeed = messageSpeed; + ((struct_02000000 *)0x2000000)->brightnessPref = brightnessPref; + gUsedPalettes = 0xFFFFFFFF; +} + +void sub_0805041C(u32 saveFileId) { + SaveFile* saveFile; + + if (saveFileId < 3) { + ((struct_02000000 *)0x2000000)->saveFileId = saveFileId; + saveFile = &gSaveFiles[saveFileId]; + sub_0801D66C(saveFile, &gUnk_02002A40, sizeof(*saveFile)); + } + sub_080503E4(saveFileId); +} + +void HandleChooseFileScreen(void) { + sub_080AD90C(); + gUnk_080FC8A4[gUnk_03001000.funcIndex](); + if (gUnk_02032EC0.transitionType != gUnk_02032EC0.state) { + gUnk_02032EC0.transitionType = gUnk_02032EC0.state; + gScreen.bg.bg1Control = 0; + gScreen.bg.bg2Control = 0; + gScreen.bg.bg1yOffset = 0; + gScreen.bg.bg2xOffset = 0; + gScreen.affine.bg2xOffset = 0; + gScreen.affine.bg2yOffset = 0; + _DmaZero(&gChooseFileState, sizeof(gChooseFileState)); + } + + sub_080507FC(); + gUnk_080FC8B0[gUnk_02032EC0.transitionType](); + gUnk_02019EE0.unk0 = 0; + sub_0805E5C0(); + sub_0805066C(); + sub_0801C1D4(); + sub_0801C208(); + sub_080AD9B0(); + sub_080AD918(); + if (gUnk_02019EE0.unk3 != ((struct_02000000 *)0x2000000)->gameLanguage) { + gUnk_02019EE0.unk3 = ((struct_02000000 *)0x2000000)->gameLanguage; + sub_080503A8(0x6); + sub_080503A8(0xF); + } +} + +void sub_080504F4(void) { + u32 i; + + sub_0801DA90(1); + sub_080A3210(); + _DmaZero((void*)VRAM, 0x80); + sub_08056418(); + EraseAllEntities(); + sub_08080668(); + sub_080ADD30(); + sub_0801CFA8(0); + _DmaZero(&gUnk_0200AF00, sizeof(gUnk_0200AF00)); + _DmaZero(&gUnk_02019EE0, sizeof(gUnk_02019EE0)); + gUnk_02019EE0.unk3 = 7; + gUnk_02019EE0.unk6 = ((struct_02000000 *)0x2000000)->gameLanguage > 1 ? 3 : 0; + _DmaZero(&gUnk_02032EC0, sizeof(gUnk_02032EC0)); + gUnk_02032EC0.transitionType = 8; + sub_080503BC(0); + sub_0805616C(); + sub_08050624(0); + sub_08050624(1); + sub_08050624(2); + sub_08056208(); + sub_080503A8(0x5); + LoadPaletteGroup(0x9); + for (i = 0; i < 26; i++) { + CreateObject(0x48, i, 0); + } + + sub_080A70AC(gUnk_080FC8D0); + sub_080507FC(); + gScreen.lcd.displayControl |= 0x1F00; + gScreen.affine.bg3Control = 0x1E0B; + gScreen.controls.layerFXControl = 0x844; + gScreen.controls.alphaBlend = BLDALPHA_BLEND(15, 10); + gUnk_02024490.unk0 = 1; + gUnk_03001000.funcIndex = 1; + PlaySFX(0x7); + DoFade(4, 8); +} + +void nullsub_479(void) { +} + +void sub_0805060C(void) { + if (!gFadeControl.active) { + InitScreen(SCREEN_GAMEPLAY); + } +} + +static void sub_08050624(u32 saveFileId) { + SaveFile* saveFile = &gSaveFiles[saveFileId]; + int var0 = sub_0807CF28(saveFileId, saveFile); + switch (var0) { + case -1: + sub_0807CF48(saveFileId); + // fallthrough + case 0: + sub_0805194C(saveFileId); + break; + } + gUnk_02019EE0.unk8[saveFileId] = var0; +} + +static void sub_0805066C(void) { + u32 loadNewPalette; + const u8* paletteOffset; + + loadNewPalette = FALSE; + if (--gUnk_02019EE0.unk1 == 0) { + gUnk_02019EE0.unk1 = 16; + gUnk_02019EE0.unk2 = (gUnk_02019EE0.unk2 + 1) % 15; + loadNewPalette = TRUE; + } + + if (gUnk_02019EE0.unk2 == 0) { + gUnk_02019EE0.unk2 = 1; + gUnk_02019EE0.unk1 = (Random() & 0x7) * 16 + 8; + loadNewPalette = TRUE; + } + + if (loadNewPalette) { + paletteOffset = &gGlobalGfxAndPalettes[gUnk_080FC8DE[gUnk_02019EE0.unk2]]; + LoadPalettes(&paletteOffset[0x11AA0], 11, 1); + LoadPalettes(&paletteOffset[0x11BA0], 12, 1); + LoadPalettes(&paletteOffset[0x11CA0], 13, 1); + LoadPalettes(&paletteOffset[0x11DA0], 14, 1); + } +} diff --git a/src/code_0805436C.c b/src/code_0805436C.c index 47f8f4d2..4999aef0 100644 --- a/src/code_0805436C.c +++ b/src/code_0805436C.c @@ -7,7 +7,7 @@ typedef struct { u8 filler[0xa8]; Stats stats; -} struct_02002A40; +} SaveFile; typedef struct { u8 unk; @@ -19,7 +19,7 @@ typedef struct { u8 unk; } ScreenTransition; -extern struct_02002A40 gUnk_02002A40; +extern SaveFile gUnk_02002A40; extern struct_080FD5B4 gUnk_080FD5B4[]; extern ScreenTransition gScreenTransition; diff --git a/src/code_0807CC3C.c b/src/code_0807CC3C.c index e0cbbe90..45f67fd8 100644 --- a/src/code_0807CC3C.c +++ b/src/code_0807CC3C.c @@ -35,10 +35,10 @@ u32 sub_0807CDE8(u32 arg0) { sub_0805616C(); switch (arg0) { case 0: - temp = sub_0807CF08(gUnk_02000000->saveFile, gUnk_02002A40.filler0); + temp = sub_0807CF08(gUnk_02000000->saveFileId, gUnk_02002A40.filler0); break; case 1: - sub_0807CF48(gUnk_02000000->saveFile); + sub_0807CF48(gUnk_02000000->saveFileId); temp = 1; break; case 2: @@ -113,7 +113,7 @@ u32 sub_0807CF1C(u8* arg0) { return sub_0807CF88(5, arg0); } -u32 sub_0807CF28(u32 arg0, void* arg1) { +int sub_0807CF28(u32 arg0, SaveFile* arg1) { return sub_0807D008(arg0, arg1); } diff --git a/src/entity.c b/src/entity.c index 1ceabce4..cae8ee22 100644 --- a/src/entity.c +++ b/src/entity.c @@ -215,7 +215,7 @@ void sub_0805E92C(u32 param_1) } extern Entity gUnk_020369F0; -extern void sub_0801D66C(void* dst, void* src, size_t size); // dma copy +extern void sub_0801D66C(const void* src, void* dest, size_t size); // dma copy extern void sub_0805E98C(void); void sub_0805E958(void) diff --git a/src/ezloNag.c b/src/ezloNag.c index bce5c8d5..67cb5113 100644 --- a/src/ezloNag.c +++ b/src/ezloNag.c @@ -2,6 +2,7 @@ #include "entity.h" #include "functions.h" #include "textbox.h" +#include "structures.h" typedef struct { s8 unk0; @@ -23,13 +24,6 @@ typedef struct { u8 unk13; } Element; -typedef struct { - u8 unk0[0x24]; - u8 ezloNagFuncIndex; -} struct_0200AF00; - -extern struct_0200AF00 gUnk_0200AF00; - /////////////////////////////////////////////////////////////// extern void sub_0805ECEC(u32, u32, u32, u32); diff --git a/src/intro.c b/src/intro.c index 261becd8..53466e3b 100644 --- a/src/intro.c +++ b/src/intro.c @@ -22,6 +22,7 @@ typedef struct { int swordBgScaleRatio; } IntroState; +// TODO: This occupies the same memory region as gMenu extern IntroState gIntroState; enum { @@ -125,8 +126,6 @@ static void HandleNintendoCapcomLogos(void) extern u16 gUnk_03001010[5]; -extern u8 gUnk_02024490; - static void HandleTitlescreen(void) { int advance; @@ -142,7 +141,7 @@ static void HandleTitlescreen(void) EraseAllEntities(); sub_0801CFA8(0); sub_080ADD30(); - gUnk_02024490 = 1; + gUnk_02024490.unk0 = 1; LoadGfxGroup(2); if (((struct_02000000*)0x2000000)->gameLanguage == 0) { paletteGroup = 3; diff --git a/src/mainLoop.c b/src/mainLoop.c index a09d1c97..c46fd8bf 100644 --- a/src/mainLoop.c +++ b/src/mainLoop.c @@ -34,7 +34,7 @@ void MainLoop(void) { sub_08056208(); gUnk_02000010.field_0x4 = 193; sub_0804FFE4(); - DmaSet(3, 0x5000000U, gPaletteBuffer, 0x84000080U); + DmaCopy32(3, BG_PLTT, gPaletteBuffer, BG_PLTT_SIZE); sub_0804FF84(1); sub_08056418(); sub_080ADD30(); diff --git a/src/npc/smith.c b/src/npc/smith.c index ca588dba..dc222709 100644 --- a/src/npc/smith.c +++ b/src/npc/smith.c @@ -5,7 +5,7 @@ typedef struct { u8 filler[8]; u8 unk; -} struct_02002A40; +} SaveFile; extern u32 GetFacingDirection(Entity*, Entity*); extern u32 sub_0806F5A4(u32); @@ -33,7 +33,7 @@ extern void (*const gUnk_0811036C[])(Entity*); extern u16 gUnk_08110380[]; extern SpriteLoadData gUnk_08110354; -extern struct_02002A40 gUnk_02002A40; +extern SaveFile gUnk_02002A40; extern u32 gUnk_08110390[]; extern u16 gUnk_081103D0[]; extern u32 gUnk_081103E0; diff --git a/src/npc/teachers.c b/src/npc/teachers.c index 0d3a9527..53d4a11a 100644 --- a/src/npc/teachers.c +++ b/src/npc/teachers.c @@ -5,7 +5,7 @@ typedef struct { u8 filler[8]; u8 unk; -} struct_02002A40; +} SaveFile; extern SpriteLoadData gUnk_08113910[]; extern void sub_0805E3A0(Entity*, u32); @@ -20,7 +20,7 @@ extern u32 UpdateFuseInteraction(Entity*); extern void sub_0807000C(Entity*); extern void ShowNPCDialogue(Entity*, u16*); -extern struct_02002A40 gUnk_02002A40; +extern SaveFile gUnk_02002A40; extern u16 gUnk_08113930[]; void Teachers(Entity* this) { diff --git a/src/object/object48.c b/src/object/object48.c index bbac3950..7f93ea16 100755 --- a/src/object/object48.c +++ b/src/object/object48.c @@ -458,7 +458,7 @@ void sub_0808EF24(Entity* this) { } else { this->spriteSettings.b.draw = 2; if (this->entityType.form == 21) { - var0 = ((struct_02000000 *)0x2000000)->field_0x5; + var0 = ((struct_02000000 *)0x2000000)->messageSpeed; } else { var0 = ((struct_02000000 *)0x2000000)->brightnessPref; } From f2aeda134dbfce82ced4d91d86f7db0b62e4af28 Mon Sep 17 00:00:00 2001 From: theo3 Date: Sun, 16 Aug 2020 15:39:30 -0700 Subject: [PATCH 132/158] tektiteGolden.c OK --- asm/tektiteGolden.s | 189 ------------------------------- include/functions.h | 4 + linker.ld | 1 - src/enemy/tektiteGolden.c | 226 ++++++++++++++++++++++++-------------- 4 files changed, 147 insertions(+), 273 deletions(-) delete mode 100644 asm/tektiteGolden.s diff --git a/asm/tektiteGolden.s b/asm/tektiteGolden.s deleted file mode 100644 index d51c9728..00000000 --- a/asm/tektiteGolden.s +++ /dev/null @@ -1,189 +0,0 @@ - .include "asm/macros.inc" - - .include "constants/constants.inc" - - .syntax unified - - .text - - thumb_func_start sub_08038048 -sub_08038048: @ 0x08038048 - push {r4, r5, r6, lr} - adds r4, r0, #0 - movs r1, #2 - bl UpdateAnimationVariableFrames - adds r0, r4, #0 - bl sub_080AEF88 - movs r0, #0x36 - ldrsh r6, [r4, r0] - bl Random - adds r5, r0, #0 - movs r0, #0xf - ands r5, r0 - movs r1, #0xc0 - lsls r1, r1, #6 - adds r0, r4, #0 - bl sub_080044EC - cmp r0, #1 - bne _08038088 - movs r0, #0 - movs r1, #3 - strb r1, [r4, #0xc] - strb r0, [r4, #0xd] - movs r0, #0x14 - strb r0, [r4, #0xe] - adds r0, r4, #0 - bl InitializeAnimation - b _0803810C -_08038088: - ldrh r0, [r4, #0x2a] - cmp r0, #0 - beq _08038098 - adds r1, r0, #0 - adds r0, r4, #0 - bl sub_0800417E - b _080380B0 -_08038098: - adds r0, r4, #0 - bl sub_080002B8 - movs r1, #0xf0 - ands r1, r0 - cmp r1, #0x50 - bne _080380B0 - ldrb r0, [r4, #0x15] - adds r0, #0x10 - movs r1, #0x1f - ands r0, r1 - strb r0, [r4, #0x15] -_080380B0: - ldrb r0, [r4, #0xe] - subs r0, #1 - strb r0, [r4, #0xe] - lsls r0, r0, #0x18 - cmp r0, #0 - bne _080380C8 - adds r0, r5, #0 - adds r0, #0x10 - strb r0, [r4, #0xe] - adds r0, r4, #0 - bl sub_08038168 -_080380C8: - ldrb r0, [r4, #0xd] - cmp r0, #0 - bne _080380E2 - movs r1, #0x36 - ldrsh r0, [r4, r1] - cmp r6, r0 - bge _080380E2 - adds r0, r4, #0 - movs r1, #4 - bl InitializeAnimation - movs r0, #1 - strb r0, [r4, #0xd] -_080380E2: - movs r0, #0xc - rsbs r0, r0, #0 - cmp r6, r0 - bge _080380F6 - ldrb r2, [r4, #0x19] - movs r1, #0x3f - adds r0, r1, #0 - ands r0, r2 - movs r2, #0x40 - b _08038100 -_080380F6: - ldrb r2, [r4, #0x19] - movs r1, #0x3f - adds r0, r1, #0 - ands r0, r2 - movs r2, #0x80 -_08038100: - orrs r0, r2 - strb r0, [r4, #0x19] - ldrb r0, [r4, #0x1b] - ands r1, r0 - orrs r1, r2 - strb r1, [r4, #0x1b] -_0803810C: - pop {r4, r5, r6, pc} - .align 2, 0 - - thumb_func_start sub_08038110 -sub_08038110: @ 0x08038110 - push {r4, lr} - adds r4, r0, #0 - movs r1, #2 - bl UpdateAnimationVariableFrames - adds r0, r4, #0 - adds r0, #0x5a - ldrb r1, [r0] - movs r0, #0x80 - ands r0, r1 - cmp r0, #0 - beq _08038164 - adds r2, r4, #0 - adds r2, #0x80 - ldrb r0, [r2] - cmp r0, #4 - bhi _08038150 - movs r0, #2 - strb r0, [r4, #0xc] - movs r0, #8 - strb r0, [r4, #0xe] - movs r0, #0xe0 - lsls r0, r0, #0xa - str r0, [r4, #0x20] - adds r0, r4, #0 - bl sub_08038168 - adds r0, r4, #0 - movs r1, #2 - bl InitializeAnimation - b _08038164 -_08038150: - movs r0, #0 - movs r1, #1 - strb r1, [r4, #0xc] - strb r0, [r2] - movs r0, #0xc0 - strb r0, [r4, #0xe] - adds r0, r4, #0 - movs r1, #0 - bl InitializeAnimation -_08038164: - pop {r4, pc} - .align 2, 0 - - thumb_func_start sub_08038168 -sub_08038168: @ 0x08038168 - push {r4, lr} - adds r4, r0, #0 - bl sub_08049FA0 - cmp r0, #0 - bne _0803817E - adds r0, r4, #0 - bl sub_08049EE4 - strb r0, [r4, #0x15] - b _080381AA -_0803817E: - adds r0, r4, #0 - movs r1, #1 - bl sub_08049FDC - cmp r0, #0 - beq _08038196 - adds r0, r4, #0 - movs r1, #1 - bl sub_08049F84 - strb r0, [r4, #0x15] - b _080381AA -_08038196: - bl Random - movs r1, #0xf - ands r1, r0 - adds r1, #0x18 - ldrb r0, [r4, #0x15] - adds r1, r1, r0 - movs r0, #0x1f - ands r1, r0 - strb r1, [r4, #0x15] -_080381AA: - pop {r4, pc} diff --git a/include/functions.h b/include/functions.h index 45837388..5739c880 100644 --- a/include/functions.h +++ b/include/functions.h @@ -251,4 +251,8 @@ extern u32 sub_08079F8C(void); extern void sub_080787CC(Entity*); extern void sub_080526F8(s32); extern int sub_0807CF28(u32, SaveFile*); +extern u32 sub_080044EC(Entity*, u32); +extern u32 sub_080002B8(Entity*); +extern u32 sub_08049F84(Entity*, u32); + #endif \ No newline at end of file diff --git a/linker.ld b/linker.ld index fda209e8..e9a89f97 100644 --- a/linker.ld +++ b/linker.ld @@ -391,7 +391,6 @@ SECTIONS { asm/gibdo.o(.text); asm/octorokGolden.o(.text); src/enemy/tektiteGolden.o(.text); - asm/tektiteGolden.o(.text); asm/ropeGolden.o(.text); asm/cloudPiranha.o(.text); asm/scissorsBeetle.o(.text); diff --git a/src/enemy/tektiteGolden.c b/src/enemy/tektiteGolden.c index 90483b71..221732eb 100644 --- a/src/enemy/tektiteGolden.c +++ b/src/enemy/tektiteGolden.c @@ -9,100 +9,160 @@ extern void sub_08038168(Entity*); extern void (*const gUnk_080CF4A0)(Entity*); extern void (*const gUnk_080CF4B8[])(Entity*); -void TektiteGolden(Entity *this) -{ - EnemyFunctionHandler(this, &gUnk_080CF4A0); - SetChildOffset(this, 0, 1, -0x10); +void TektiteGolden(Entity* this) { + EnemyFunctionHandler(this, &gUnk_080CF4A0); + SetChildOffset(this, 0, 1, -0x10); } -void sub_08037EE8(Entity* this) -{ - gUnk_080CF4B8[this->action](this); +void sub_08037EE8(Entity* this) { + gUnk_080CF4B8[this->action](this); } -void sub_08037F00(Entity *this) -{ - u32 uVar1; - - if (this->field_0x43 != 0) { - sub_0804A9FC(this,0x1c); - } - sub_0804AA30(this, &gUnk_080CF4A0); - if (this->bitfield == 0x94) { +void sub_08037F00(Entity* this) { + u32 uVar1; + + if (this->field_0x43 != 0) { + sub_0804A9FC(this, 0x1c); + } + sub_0804AA30(this, &gUnk_080CF4A0); + if (this->bitfield == 0x94) { + this->action = 1; + this->previousActionFlag = 0; + this->actionDelay = 0x14; + this->field_0xf = 0; + this->field_0x80.HALF.LO = 0; + uVar1 = this->height.HALF.HI; + if (uVar1 != 0) { + this->field_0x20 >>= 2; + } else { + this->field_0x20 = uVar1; + } + + InitializeAnimation(this, 0); + } +} + +void sub_08037F58(Entity* this) { + u32 uVar1; + + if ((this->field_0x3a & 2) == 0) { + SetGlobalFlag(this->entityType.parameter); + } + if ((this->entityType).form != 0) { + uVar1 = 0x59; + } else { + uVar1 = 0x58; + } + CreateDeathFx(this, 0xff, uVar1); +} + +void sub_08037F84(Entity* this) { + sub_08001242(); + if (this->height.HALF.HI != 0) { + sub_08003FC4(this, 0x3000); + } +} + +void sub_08037FA0(Entity* this) { + + if (CheckGlobalFlag(this->entityType.parameter)) { + DeleteThisEntity(); + } + sub_0804A720(this); this->action = 1; this->previousActionFlag = 0; - this->actionDelay = 0x14; + this->actionDelay = (Random() & 0x1f) + 0x20; this->field_0xf = 0; this->field_0x80.HALF.LO = 0; - uVar1 = this->height.HALF.HI; - if (uVar1 != 0) { - this->field_0x20 >>= 2; - } - else { - this->field_0x20 = uVar1; - } - - InitializeAnimation(this,0); - } + InitializeAnimation(this, 0); } -void sub_08037F58(Entity *this) -{ - u32 uVar1; - - if ((this->field_0x3a & 2) == 0) { - SetGlobalFlag(this->entityType.parameter); - } - if ((this->entityType).form != 0) { - uVar1 = 0x59; - } - else { - uVar1 = 0x58; - } - CreateDeathFx(this, 0xff, uVar1); -} - -void sub_08037F84(Entity *this) -{ - sub_08001242(); - if (this->height.HALF.HI != 0) { - sub_08003FC4(this, 0x3000); - } -} - -void sub_08037FA0(Entity *this) -{ - - if (CheckGlobalFlag(this->entityType.parameter)) { - DeleteThisEntity(); - } - sub_0804A720(this); - this->action = 1; - this->previousActionFlag = 0; - this->actionDelay = (Random() & 0x1f) + 0x20; - this->field_0xf = 0; - this->field_0x80.HALF.LO = 0; - InitializeAnimation(this,0); -} - -void sub_08037Fe0(Entity *this) -{ - UpdateAnimationVariableFrames(this, 2); - if (this->actionDelay != 0) { - this->actionDelay--; - } - else if (this->field_0xf != 0) { - if ((this->frames.b.f3) != 0) { - this->action = 2; - this->actionDelay = 6; - this->field_0xf = 0; - this->field_0x20 = 0x38000; - sub_08038168(this); - InitializeAnimation(this, 2); - } - } - else if ((this->frames.b.f3) != 0) { +void sub_08037Fe0(Entity* this) { + UpdateAnimationVariableFrames(this, 2); + if (this->actionDelay != 0) { + this->actionDelay--; + } else if (this->field_0xf != 0) { + if ((this->frames.b.f3) != 0) { + this->action = 2; + this->actionDelay = 6; + this->field_0xf = 0; + this->field_0x20 = 0x38000; + sub_08038168(this); + InitializeAnimation(this, 2); + } + } else if ((this->frames.b.f3) != 0) { this->field_0xf = 0x40; InitializeAnimation(this, 1); } +} + +void sub_08038048(Entity* this) { + s32 temp; + u32 rand; + + UpdateAnimationVariableFrames(this, 2); + sub_080AEF88(this); + temp = this->height.HALF.HI; + rand = Random() & 0xf; + + if (sub_080044EC(this, 0x3000) == 1) { + this->action = 3; + this->previousActionFlag = 0; + this->actionDelay = 0x14; + InitializeAnimation(this, 3); + return; + } else if (this->collisions != 0) { + sub_0800417E(this, this->collisions); + } else if ((sub_080002B8(this) & 0xf0) == 0x50) { + this->direction = (this->direction + 0x10) & 0x1f; + } + + if (--this->actionDelay == 0) { + this->actionDelay = rand + 0x10; + sub_08038168(this); + } + + if ((this->previousActionFlag == 0) && (temp < this->height.HALF.HI)) { + InitializeAnimation(this, 4); + this->previousActionFlag = 1; + } + + if (temp < -0xc) { + this->spriteRendering.b3 = 1; + this->spriteOrientation.flipY = 1; + } else { + this->spriteRendering.b3 = 2; + this->spriteOrientation.flipY = 2; + } +} + +void sub_08038110(Entity* this) { + UpdateAnimationVariableFrames(this, 2); + if ((this->frames.b.f3) != 0) { + if (this->field_0x80.HALF.LO < 5) { + this->action = 2; + this->actionDelay = 8; + this->field_0x20 = 0x38000; + sub_08038168(this); + InitializeAnimation(this, 2); + } else { + this->action = 1; + this->field_0x80.HALF.LO = 0; + this->actionDelay = 0xc0; + InitializeAnimation(this, 0); + } + } +} + +void sub_08038168(Entity* this) { + u32 temp; + + if (sub_08049FA0(this) == 0) { + this->direction = sub_08049EE4(this); + } else if (sub_08049FDC(this, 1) != 0) { + this->direction = sub_08049F84(this, 1); + } else { + temp = (Random() & 0xf) + 0x18; + this->direction = (temp + this->direction) & 0x1f; + } } \ No newline at end of file From 793350e55147a4e2224344ece0e83f2cd24759ca Mon Sep 17 00:00:00 2001 From: theo3 Date: Sun, 16 Aug 2020 17:32:21 -0700 Subject: [PATCH 133/158] tektite.c OK --- asm/tektite.s | 483 -------------------------------------- include/functions.h | 2 +- linker.ld | 2 +- src/enemy/tektite.c | 195 +++++++++++++++ src/enemy/tektiteGolden.c | 5 +- 5 files changed, 199 insertions(+), 488 deletions(-) delete mode 100644 asm/tektite.s create mode 100644 src/enemy/tektite.c diff --git a/asm/tektite.s b/asm/tektite.s deleted file mode 100644 index f0b0aed9..00000000 --- a/asm/tektite.s +++ /dev/null @@ -1,483 +0,0 @@ - .include "asm/macros.inc" - - .include "constants/constants.inc" - - .syntax unified - - .text - - - thumb_func_start Tektite -Tektite: @ 0x0802F118 - push {r4, lr} - adds r4, r0, #0 - ldr r1, _0802F134 @ =gUnk_080CDED0 - bl EnemyFunctionHandler - movs r3, #0x10 - rsbs r3, r3, #0 - adds r0, r4, #0 - movs r1, #0 - movs r2, #1 - bl SetChildOffset - pop {r4, pc} - .align 2, 0 -_0802F134: .4byte gUnk_080CDED0 - - thumb_func_start sub_0802F138 -sub_0802F138: @ 0x0802F138 - push {lr} - ldr r2, _0802F14C @ =gUnk_080CDEE8 - ldrb r1, [r0, #0xc] - lsls r1, r1, #2 - adds r1, r1, r2 - ldr r1, [r1] - bl _call_via_r1 - pop {pc} - .align 2, 0 -_0802F14C: .4byte gUnk_080CDEE8 - - thumb_func_start sub_0802F150 -sub_0802F150: @ 0x0802F150 - push {r4, lr} - adds r4, r0, #0 - adds r0, #0x43 - ldrb r0, [r0] - cmp r0, #0 - beq _0802F164 - adds r0, r4, #0 - movs r1, #0x1c - bl sub_0804A9FC -_0802F164: - ldr r1, _0802F18C @ =gUnk_080CDED0 - adds r0, r4, #0 - bl sub_0804AA30 - adds r0, r4, #0 - adds r0, #0x41 - ldrb r1, [r0] - movs r0, #0x80 - ands r0, r1 - cmp r0, #0 - beq _0802F1E8 - movs r0, #0x3f - ands r0, r1 - cmp r0, #0x14 - beq _0802F196 - cmp r0, #0x14 - bgt _0802F190 - cmp r0, #0xe - beq _0802F1E0 - b _0802F1E8 - .align 2, 0 -_0802F18C: .4byte gUnk_080CDED0 -_0802F190: - cmp r0, #0x15 - beq _0802F1E0 - b _0802F1E8 -_0802F196: - movs r0, #0 - movs r1, #1 - strb r1, [r4, #0xc] - strb r0, [r4, #0xd] - ldrb r0, [r4, #0xa] - cmp r0, #0 - beq _0802F1A8 - movs r0, #0xc0 - b _0802F1B6 -_0802F1A8: - bl Random - ldr r2, _0802F1DC @ =gUnk_080CDEF8 - movs r1, #3 - ands r1, r0 - adds r1, r1, r2 - ldrb r0, [r1] -_0802F1B6: - strb r0, [r4, #0xe] - movs r1, #0 - strb r1, [r4, #0xf] - adds r0, r4, #0 - adds r0, #0x7c - strb r1, [r0] - movs r1, #0x36 - ldrsh r0, [r4, r1] - cmp r0, #0 - beq _0802F1CE - ldr r0, [r4, #0x20] - asrs r0, r0, #2 -_0802F1CE: - str r0, [r4, #0x20] - adds r0, r4, #0 - movs r1, #0 - bl InitializeAnimation - b _0802F1E8 - .align 2, 0 -_0802F1DC: .4byte gUnk_080CDEF8 -_0802F1E0: - adds r1, r4, #0 - adds r1, #0x45 - movs r0, #0 - strb r0, [r1] -_0802F1E8: - pop {r4, pc} - .align 2, 0 - - thumb_func_start nullsub_16 -nullsub_16: @ 0x0802F1EC - bx lr - .align 2, 0 - - thumb_func_start sub_0802F1F0 -sub_0802F1F0: @ 0x0802F1F0 - push {r4, lr} - adds r4, r0, #0 - bl sub_08001242 - movs r1, #0x36 - ldrsh r0, [r4, r1] - cmp r0, #0 - beq _0802F20C - adds r0, r4, #0 - adds r0, #0x80 - ldrh r1, [r0] - adds r0, r4, #0 - bl sub_08003FC4 -_0802F20C: - pop {r4, pc} - .align 2, 0 - - thumb_func_start sub_0802F210 -sub_0802F210: @ 0x0802F210 - push {r4, r5, lr} - adds r5, r0, #0 - bl sub_0804A720 - movs r4, #0 - movs r0, #1 - strb r0, [r5, #0xc] - strb r4, [r5, #0xd] - bl Random - ldr r2, _0802F280 @ =gUnk_080CDEF8 - movs r1, #3 - ands r1, r0 - adds r1, r1, r2 - ldrb r0, [r1] - strb r0, [r5, #0xe] - bl Random - movs r1, #0x1f - ands r0, r1 - ldrb r1, [r5, #0xe] - adds r0, r0, r1 - strb r0, [r5, #0xe] - strb r4, [r5, #0xf] - adds r0, r5, #0 - adds r0, #0x7c - strb r4, [r0] - ldrb r0, [r5, #0xa] - movs r2, #0xa0 - lsls r2, r2, #6 - adds r1, r2, #0 - cmp r0, #0 - bne _0802F258 - movs r0, #0xc0 - lsls r0, r0, #5 - adds r1, r0, #0 -_0802F258: - adds r0, r5, #0 - adds r0, #0x80 - strh r1, [r0] - ldrb r0, [r5, #0xa] - movs r2, #0xc0 - lsls r2, r2, #6 - adds r1, r2, #0 - cmp r0, #0 - bne _0802F270 - movs r0, #0xa0 - lsls r0, r0, #6 - adds r1, r0, #0 -_0802F270: - adds r0, r5, #0 - adds r0, #0x82 - strh r1, [r0] - adds r0, r5, #0 - movs r1, #0 - bl InitializeAnimation - pop {r4, r5, pc} - .align 2, 0 -_0802F280: .4byte gUnk_080CDEF8 - - thumb_func_start sub_0802F284 -sub_0802F284: @ 0x0802F284 - push {r4, lr} - adds r4, r0, #0 - ldrb r0, [r4, #0xe] - cmp r0, #0x60 - bls _0802F298 - adds r0, r4, #0 - movs r1, #2 - bl UpdateAnimationVariableFrames - b _0802F29E -_0802F298: - adds r0, r4, #0 - bl GetNextFrame -_0802F29E: - ldrb r0, [r4, #0xe] - cmp r0, #0 - beq _0802F2AA - subs r0, #1 - strb r0, [r4, #0xe] - b _0802F2FE -_0802F2AA: - ldrb r0, [r4, #0xf] - cmp r0, #0 - beq _0802F2E4 - adds r0, r4, #0 - adds r0, #0x5a - ldrb r1, [r0] - movs r0, #0x80 - ands r0, r1 - cmp r0, #0 - beq _0802F2FE - movs r0, #2 - strb r0, [r4, #0xc] - movs r0, #0x10 - strb r0, [r4, #0xe] - ldrb r0, [r4, #0xa] - strb r0, [r4, #0xf] - adds r0, r4, #0 - adds r0, #0x82 - ldrh r0, [r0] - lsls r0, r0, #4 - str r0, [r4, #0x20] - adds r0, r4, #0 - bl sub_0802F45C - adds r0, r4, #0 - movs r1, #2 - bl InitializeAnimation - b _0802F2FE -_0802F2E4: - adds r0, r4, #0 - adds r0, #0x5a - ldrb r1, [r0] - movs r0, #0x80 - ands r0, r1 - cmp r0, #0 - beq _0802F2FE - movs r0, #0x40 - strb r0, [r4, #0xf] - adds r0, r4, #0 - movs r1, #1 - bl InitializeAnimation -_0802F2FE: - pop {r4, pc} - - thumb_func_start sub_0802F300 -sub_0802F300: @ 0x0802F300 - push {r4, r5, r6, lr} - adds r4, r0, #0 - bl GetNextFrame - adds r0, r4, #0 - bl sub_080AEF88 - movs r0, #0x36 - ldrsh r6, [r4, r0] - bl Random - adds r5, r0, #0 - movs r0, #0xf - ands r5, r0 - adds r0, r4, #0 - adds r0, #0x80 - ldrh r1, [r0] - adds r0, r4, #0 - bl sub_080044EC - cmp r0, #1 - bne _0802F364 - movs r0, #0 - movs r2, #3 - strb r2, [r4, #0xc] - strb r0, [r4, #0xd] - ldrb r0, [r4, #0xa] - cmp r0, #0 - beq _0802F33C - movs r5, #0 -_0802F33C: - cmp r5, #0 - bne _0802F344 - movs r0, #0xc0 - b _0802F350 -_0802F344: - ldr r0, _0802F360 @ =gUnk_080CDEF8 - adds r1, r5, #0 - ands r1, r2 - adds r1, r1, r0 - ldrb r0, [r1] - adds r0, r0, r5 -_0802F350: - strb r0, [r4, #0xe] - movs r0, #0 - strb r0, [r4, #0xf] - adds r0, r4, #0 - movs r1, #3 - bl InitializeAnimation - b _0802F3F0 - .align 2, 0 -_0802F360: .4byte gUnk_080CDEF8 -_0802F364: - ldrh r0, [r4, #0x2a] - cmp r0, #0 - beq _0802F374 - adds r1, r0, #0 - adds r0, r4, #0 - bl sub_0800417E - b _0802F38C -_0802F374: - adds r0, r4, #0 - bl sub_080002B8 - movs r1, #0xf0 - ands r1, r0 - cmp r1, #0x50 - bne _0802F38C - ldrb r0, [r4, #0x15] - adds r0, #0x10 - movs r1, #0x1f - ands r0, r1 - strb r0, [r4, #0x15] -_0802F38C: - ldrb r0, [r4, #0xe] - subs r0, #1 - strb r0, [r4, #0xe] - lsls r0, r0, #0x18 - cmp r0, #0 - bne _0802F3AC - movs r0, #0x10 - strb r0, [r4, #0xe] - ldrb r0, [r4, #0xf] - cmp r0, #0 - beq _0802F3AC - subs r0, #1 - strb r0, [r4, #0xf] - adds r0, r4, #0 - bl sub_0802F45C -_0802F3AC: - ldrb r0, [r4, #0xd] - cmp r0, #0 - bne _0802F3C6 - movs r1, #0x36 - ldrsh r0, [r4, r1] - cmp r6, r0 - bge _0802F3C6 - adds r0, r4, #0 - movs r1, #4 - bl InitializeAnimation - movs r0, #1 - strb r0, [r4, #0xd] -_0802F3C6: - movs r0, #0xc - rsbs r0, r0, #0 - cmp r6, r0 - bge _0802F3DA - ldrb r2, [r4, #0x19] - movs r1, #0x3f - adds r0, r1, #0 - ands r0, r2 - movs r2, #0x40 - b _0802F3E4 -_0802F3DA: - ldrb r2, [r4, #0x19] - movs r1, #0x3f - adds r0, r1, #0 - ands r0, r2 - movs r2, #0x80 -_0802F3E4: - orrs r0, r2 - strb r0, [r4, #0x19] - ldrb r0, [r4, #0x1b] - ands r1, r0 - orrs r1, r2 - strb r1, [r4, #0x1b] -_0802F3F0: - pop {r4, r5, r6, pc} - .align 2, 0 - - thumb_func_start sub_0802F3F4 -sub_0802F3F4: @ 0x0802F3F4 - push {r4, lr} - adds r4, r0, #0 - bl GetNextFrame - adds r0, r4, #0 - adds r0, #0x5a - ldrb r1, [r0] - movs r0, #0x80 - ands r0, r1 - cmp r0, #0 - beq _0802F45A - adds r0, r4, #0 - adds r0, #0x7c - ldrb r1, [r0] - adds r2, r0, #0 - cmp r1, #1 - bhi _0802F44C - ldrb r0, [r4, #0xa] - movs r1, #1 - ands r0, r1 - cmp r0, #0 - beq _0802F44C - movs r0, #2 - strb r0, [r4, #0xc] - movs r0, #0x10 - strb r0, [r4, #0xe] - ldrb r0, [r4, #0xa] - strb r0, [r4, #0xf] - adds r0, r4, #0 - adds r0, #0x82 - ldrh r0, [r0] - lsls r0, r0, #4 - str r0, [r4, #0x20] - ldrb r0, [r2] - adds r0, #1 - strb r0, [r2] - adds r0, r4, #0 - bl sub_0802F45C - adds r0, r4, #0 - movs r1, #2 - bl InitializeAnimation - b _0802F45A -_0802F44C: - movs r1, #0 - movs r0, #1 - strb r0, [r4, #0xc] - strb r1, [r2] - adds r0, r4, #0 - bl InitializeAnimation -_0802F45A: - pop {r4, pc} - - thumb_func_start sub_0802F45C -sub_0802F45C: @ 0x0802F45C - push {r4, lr} - adds r4, r0, #0 - bl sub_08049FA0 - cmp r0, #0 - bne _0802F472 - adds r0, r4, #0 - bl sub_08049EE4 - strb r0, [r4, #0x15] - b _0802F49E -_0802F472: - adds r0, r4, #0 - movs r1, #1 - bl sub_08049FDC - cmp r0, #0 - beq _0802F48A - adds r0, r4, #0 - movs r1, #1 - bl sub_08049F84 - strb r0, [r4, #0x15] - b _0802F49E -_0802F48A: - bl Random - movs r1, #0xf - ands r1, r0 - adds r1, #0x18 - ldrb r0, [r4, #0x15] - adds r1, r1, r0 - movs r0, #0x1f - ands r1, r0 - strb r1, [r4, #0x15] -_0802F49E: - pop {r4, pc} diff --git a/include/functions.h b/include/functions.h index 5739c880..6c944546 100644 --- a/include/functions.h +++ b/include/functions.h @@ -254,5 +254,5 @@ extern int sub_0807CF28(u32, SaveFile*); extern u32 sub_080044EC(Entity*, u32); extern u32 sub_080002B8(Entity*); extern u32 sub_08049F84(Entity*, u32); - +extern void sub_0802F45C(Entity*); #endif \ No newline at end of file diff --git a/linker.ld b/linker.ld index e9a89f97..56aabb33 100644 --- a/linker.ld +++ b/linker.ld @@ -366,7 +366,7 @@ SECTIONS { asm/wallMaster2.o(.text); asm/gleerok.o(.text); asm/vaatiEyesMacro.o(.text); - asm/tektite.o(.text); + src/enemy/tektite.o(.text); asm/wizzrobeWind.o(.text); asm/wizzrobeFire.o(.text); asm/wizzrobeIce.o(.text); diff --git a/src/enemy/tektite.c b/src/enemy/tektite.c new file mode 100644 index 00000000..0cea604e --- /dev/null +++ b/src/enemy/tektite.c @@ -0,0 +1,195 @@ +#include "global.h" +#include "entity.h" +#include "enemy.h" +#include "functions.h" + +extern void (*const gUnk_080CDED0[])(Entity*); +extern void (*const gUnk_080CDEE8[])(Entity*); + +void Tektite(Entity* this) { + EnemyFunctionHandler(this, gUnk_080CDED0); + SetChildOffset(this, 0, 1, -0x10); +} + +void sub_0802F138(Entity* this) { + gUnk_080CDEE8[this->action](this); +} + +extern u8 gUnk_080CDEF8[]; + +void sub_0802F150(Entity* this) { + u32 bVar1; + u32 uVar2; + + if (this->field_0x43 != 0) { + sub_0804A9FC(this, 0x1c); + } + sub_0804AA30(this, gUnk_080CDED0); + if ((this->bitfield & 0x80) != 0) { + switch (this->bitfield & 0x3f) { + case 0x14: + this->action = 1; + this->previousActionFlag = 0; + if ((this->entityType).form != 0) { + this->actionDelay = 0xc0; + } else { + this->actionDelay = gUnk_080CDEF8[Random() & 3]; + } + this->field_0xf = 0; + *(u8*)&this->field_0x7c = 0; + if (this->height.HALF.HI != 0) { + this->field_0x20 >>= 2; + } else { + this->field_0x20 = 0; + } + InitializeAnimation(this, 0); + break; + case 0xe: + case 0x15: + this->currentHealth = 0; + break; + } + } +} + +void nullsub_16(Entity* this) { +} + +void sub_0802F1F0(Entity* this) { + sub_08001242(); + if (this->height.HALF.HI != 0) { + sub_08003FC4(this, this->field_0x80.HWORD); + } +} + +extern u8 gUnk_080CDEF8[]; + +void sub_0802F210(Entity* this) { + u32 temp; + u32 temp2; + + sub_0804A720(this); + this->action = 1; + this->previousActionFlag = 0; + this->actionDelay = gUnk_080CDEF8[Random() & 3]; + this->actionDelay = (Random() & 0x1f) + this->actionDelay; + this->field_0xf = 0; + *(u8*)&this->field_0x7c = 0; + + this->field_0x80.HWORD = this->entityType.form == 0 ? 0x1800 : 0x2800; + + this->field_0x82.HWORD = this->entityType.form == 0 ? 0x2800 : 0x3000; + + InitializeAnimation(this, 0); +} + +void sub_0802F284(Entity* this) { + if (this->actionDelay > 0x60) { + UpdateAnimationVariableFrames(this, 2); + } else { + GetNextFrame(this); + } + if (this->actionDelay != 0) { + this->actionDelay--; + } else if (this->field_0xf != 0) { + if ((this->frames.b.f3) != 0) { + this->action = 2; + this->actionDelay = 0x10; + this->field_0xf = this->entityType.form; + this->field_0x20 = this->field_0x82.HWORD << 4; + sub_0802F45C(this); + InitializeAnimation(this, 2); + } + } else if ((this->frames.b.f3) != 0) { + this->field_0xf = 0x40; + InitializeAnimation(this, 1); + } +} + +extern u8 gUnk_080CDEF8[]; + +void sub_0802F300(Entity* this) { + s32 temp; + u32 rand; + + GetNextFrame(this); + sub_080AEF88(this); + temp = this->height.HALF.HI; + rand = Random() & 0xf; + + if (sub_080044EC(this, this->field_0x80.HWORD) == 1) { + this->action = 3; + this->previousActionFlag = 0; + if (this->entityType.form != 0) { + rand = 0; + } + + if (rand == 0) { + this->actionDelay = 0xc0; + } else { + this->actionDelay = gUnk_080CDEF8[rand & 3] + rand; + } + this->field_0xf = 0; + InitializeAnimation(this, 3); + return; + } else if (this->collisions != 0) { + sub_0800417E(this, this->collisions); + } else if ((sub_080002B8(this) & 0xf0) == 0x50) { + this->direction = (this->direction + 0x10) & 0x1f; + } + + if (--this->actionDelay == 0) { + this->actionDelay = 0x10; + if (this->field_0xf != 0) { + this->field_0xf--; + sub_0802F45C(this); + } + } + + if ((this->previousActionFlag == 0) && (temp < this->height.HALF.HI)) { + InitializeAnimation(this, 4); + this->previousActionFlag = 1; + } + + if (temp < -0xc) { + this->spriteRendering.b3 = 1; + this->spriteOrientation.flipY = 1; + } else { + this->spriteRendering.b3 = 2; + this->spriteOrientation.flipY = 2; + } +} + +void sub_0802F3F4(Entity* this) { + + GetNextFrame(this); + + if ((this->frames.b.f3) != 0) { + if ((*(u8*)&this->field_0x7c.HALF.LO < 2) && ((this->entityType.form % 2) != 0)) { + this->action = 2; + this->actionDelay = 0x10; + this->field_0xf = this->entityType.form; + this->field_0x20 = this->field_0x82.HWORD << 4; + (*(u8*)&this->field_0x7c.HALF.LO)++; + sub_0802F45C(this); + InitializeAnimation(this, 2); + } else { + this->action = 1; + *(u8*)&this->field_0x7c.HALF.LO = 0; + InitializeAnimation(this, 0); + } + } +} + +void sub_0802F45C(Entity* this) { + u32 temp; + + if (sub_08049FA0(this) == 0) { + this->direction = sub_08049EE4(this); + } else if (sub_08049FDC(this, 1) != 0) { + this->direction = sub_08049F84(this, 1); + } else { + temp = (Random() & 0xf) + 0x18; + this->direction = (temp + this->direction) & 0x1f; + } +} \ No newline at end of file diff --git a/src/enemy/tektiteGolden.c b/src/enemy/tektiteGolden.c index 221732eb..32c3ba40 100644 --- a/src/enemy/tektiteGolden.c +++ b/src/enemy/tektiteGolden.c @@ -31,11 +31,10 @@ void sub_08037F00(Entity* this) { this->actionDelay = 0x14; this->field_0xf = 0; this->field_0x80.HALF.LO = 0; - uVar1 = this->height.HALF.HI; - if (uVar1 != 0) { + if (this->height.HALF.HI != 0) { this->field_0x20 >>= 2; } else { - this->field_0x20 = uVar1; + this->field_0x20 = 0; } InitializeAnimation(this, 0); From 2d2f371f223ad444aa4b4ccbbd054ad525ba3000 Mon Sep 17 00:00:00 2001 From: theo3 Date: Sun, 16 Aug 2020 17:52:48 -0700 Subject: [PATCH 134/158] format --- src/object/greatFairy.c | 141 ++++++++++++++++++++-------------------- 1 file changed, 70 insertions(+), 71 deletions(-) diff --git a/src/object/greatFairy.c b/src/object/greatFairy.c index 80622e0d..5c82892a 100644 --- a/src/object/greatFairy.c +++ b/src/object/greatFairy.c @@ -55,7 +55,8 @@ void GreatFairy_DormantUpdate(Entity* this) { s32 frame; // r1@4 Entity* ripple; // r5@16 - if (!CheckRoomFlag(0)) return; + if (!CheckRoomFlag(0)) + return; pFrame = &this->cutsceneBeh.HWORD; if (*pFrame != 0) { @@ -68,17 +69,17 @@ void GreatFairy_DormantUpdate(Entity* this) { case 0x0: this->action = 2; break; -e: + e: case 0xd2: case 0xaa: case 0x121: ripple = GreatFairy_CreateForm(this, RIPPLE, 0); if (ripple) { PositionRelative(this, ripple, (s32)GreatFairy_RippleOffsets[this->actionDelay] << 16, - (s32)GreatFairy_RippleOffsets[this->actionDelay + 1] << 16); + (s32)GreatFairy_RippleOffsets[this->actionDelay + 1] << 16); this->actionDelay += 2; break; - } + } } } @@ -173,9 +174,10 @@ void GreatFairy_WingsUpdate(Entity* this) { } } -void nullsub_116(Entity* this) {} +void nullsub_116(Entity* this) { +} -//The wake that appears beneath the Great Fairy as she stands in the water +// The wake that appears beneath the Great Fairy as she stands in the water void GreatFairy_WakeCallBehavior(Entity* this) { GreatFairy_WakeBehaviors[this->action](this); } @@ -190,7 +192,7 @@ void GreatFairy_WakeUpdate(Entity* this) { GetNextFrame(this); } -//The miniature sprite that emerges from the water when Great Fairy is spawned +// The miniature sprite that emerges from the water when Great Fairy is spawned void GreatFairy_MiniCallBehavior(Entity* this) { GreatFairy_MiniBehaviors[this->action](this); } @@ -235,7 +237,7 @@ void GreatFairy_MiniRemoveMe(Entity* this) { } } -//Same as mini Great Fairy except it is able to stretch +// Same as mini Great Fairy except it is able to stretch void GreatFairy_MiniAffineCallBehavior(Entity* this) { GreatFairy_MiniAffineBehaviors[this->action](this); } @@ -275,12 +277,11 @@ void GreatFairy_MiniAffineUpdate(Entity* this) { } } -//The droplet that falls off of the mini Great Fairy emerging from the water +// The droplet that falls off of the mini Great Fairy emerging from the water void GreatFairy_DropletCallBehavior(Entity* this) { GreatFairy_DropletBehaviors[this->action](this); } - void GreatFairy_DropletInit(Entity* this) { GreatFairy_InitializeAnimation(this); this->spriteSettings.b.draw = 1; @@ -374,18 +375,18 @@ void sub_08087114(Entity* this) { #ifdef NON_MATCHING extern u8 gUnk_0812079C; -void sub_08087150(Entity *this) { +void sub_08087150(Entity* this) { u32 temp; - GreatFairy_InitializeAnimation(); - this->spriteSettings.b.draw = TRUE; - this->spriteOrientation.flipY = 0; - this->spriteRendering.b0 = 0; - this->spritePriority.b0 = 3; - this->nonPlanarMovement = 0x80; - this->direction = 0x10; - temp = gUnk_0812079C; - this->palette.raw = ((temp & 0xf) << 4) | 0xf; + GreatFairy_InitializeAnimation(); + this->spriteSettings.b.draw = TRUE; + this->spriteOrientation.flipY = 0; + this->spriteRendering.b0 = 0; + this->spritePriority.b0 = 3; + this->nonPlanarMovement = 0x80; + this->direction = 0x10; + temp = gUnk_0812079C; + this->palette.raw = ((temp & 0xf) << 4) | 0xf; } #else NAKED @@ -394,7 +395,8 @@ void sub_08087150(Entity* this) { } #endif -void nullsub_516(Entity* this) {} +void nullsub_516(Entity* this) { +} void sub_080871A8(Entity* this) { u32 bVar1; @@ -414,9 +416,9 @@ void sub_080871D0(Entity* this) { } } -void sub_080871F8(Entity *this) { +void sub_080871F8(Entity* this) { Entity* temp = this->attachedEntity; - + if ((temp->x.HALF.HI == this->x.HALF.HI) && (temp->y.HALF.HI - 0x20 == this->y.HALF.HI)) { this->action = 2; } else { @@ -462,12 +464,14 @@ void sub_080872AC(Entity* this) { GreatFairy_InitializeAnimation(this); } -void sub_080872F8(Entity *this) { +void sub_080872F8(Entity* this) { s32 temp; sub_0806F69C(this); GetNextFrame(this); - if (((u16)(this->field_0x68.HWORD - this->x.HALF.HI) > 0xc) || ((u16)(this->field_0x6a.HWORD - this->y.HALF.HI) > 0xc)) { - this->direction = sub_080045D4(this->x.HALF.HI, this->y.HALF.HI, (s16)this->field_0x68.HWORD, (s16)this->field_0x6a.HWORD); + if (((u16)(this->field_0x68.HWORD - this->x.HALF.HI) > 0xc) || + ((u16)(this->field_0x6a.HWORD - this->y.HALF.HI) > 0xc)) { + this->direction = + sub_080045D4(this->x.HALF.HI, this->y.HALF.HI, (s16)this->field_0x68.HWORD, (s16)this->field_0x6a.HWORD); this->direction = (this->direction + gUnk_081207AC[Random() & 3]) & 0x1f; } temp = gSineTable[this->actionDelay + 0x40]; @@ -475,37 +479,35 @@ void sub_080872F8(Entity *this) { this->actionDelay++; } -void GreatFairy_InitializeAnimation(Entity *this) -{ - s32 temp; - - this->action = 1; - temp = this->entityType.form; - this->entityType.parameter = temp % 11; - this->collisionLayer = 2; - InitializeAnimation(this, this->entityType.parameter); - sub_0805E3A0(this, 2); +void GreatFairy_InitializeAnimation(Entity* this) { + s32 temp; + + this->action = 1; + temp = this->entityType.form; + this->entityType.parameter = temp % 11; + this->collisionLayer = 2; + InitializeAnimation(this, this->entityType.parameter); + sub_0805E3A0(this, 2); } -Entity* GreatFairy_CreateForm(Entity *this, u32 curForm, u32 parameter) { - s32 nextForm; - Entity *ent; - - nextForm = this->entityType.form; - nextForm /= 11; +Entity* GreatFairy_CreateForm(Entity* this, u32 curForm, u32 parameter) { + s32 nextForm; + Entity* ent; - ent = CreateObject(0x1b, (u8)nextForm * 11 + curForm, parameter); - return ent; + nextForm = this->entityType.form; + nextForm /= 11; + + ent = CreateObject(0x1b, (u8)nextForm * 11 + curForm, parameter); + return ent; } -void sub_080873D0(Entity *this) -{ - Entity *ent; - +void sub_080873D0(Entity* this) { + Entity* ent; + if (this->actionDelay != 0) { this->actionDelay--; } else { - ent = GreatFairy_CreateForm(this,8,0); + ent = GreatFairy_CreateForm(this, 8, 0); if (ent != NULL) { CopyPosition(this, ent); this->actionDelay = 0x30; @@ -513,22 +515,20 @@ void sub_080873D0(Entity *this) } } -void sub_080873FC(void) -{ - Entity *ent; - - PlaySFX(0xf7); - gRoomControls.cameraTarget = NULL; +void sub_080873FC(void) { + Entity* ent; - while (ent = sub_0805EB00(0x6, 0x1b, 0x6), ent != NULL) { - DeleteEntity(ent); - } + PlaySFX(0xf7); + gRoomControls.cameraTarget = NULL; + + while (ent = sub_0805EB00(0x6, 0x1b, 0x6), ent != NULL) { + DeleteEntity(ent); + } } -void sub_08087424(Entity *arg0, struct_08087424 *arg1) -{ - Entity *ent; - +void sub_08087424(Entity* arg0, struct_08087424* arg1) { + Entity* ent; + sub_080791D0(); ent = CreateObject(0x64, 0, 0); if (ent != NULL) { @@ -547,15 +547,14 @@ void sub_08087424(Entity *arg0, struct_08087424 *arg1) } } -void sub_0808747C(u32 arg0, u32 arg1) -{ - u32 iVar1; - - iVar1 = sub_0805EB2C(0x6, 0xf, 0x6, 0xb, 0x0); - if (iVar1 != 0) { - iVar1 = 1; - } - *(u32 *)(arg1 + 0x14) = iVar1; +void sub_0808747C(u32 arg0, u32 arg1) { + u32 iVar1; + + iVar1 = sub_0805EB2C(0x6, 0xf, 0x6, 0xb, 0x0); + if (iVar1 != 0) { + iVar1 = 1; + } + *(u32*)(arg1 + 0x14) = iVar1; } //clang-format off From fc71c983d06a7cb18e5de4dfd3f19b30d25c210d Mon Sep 17 00:00:00 2001 From: theo3 Date: Sun, 16 Aug 2020 18:18:55 -0700 Subject: [PATCH 135/158] split unrelated code --- asm/code_080300AC.s | 101 +++++++++++++++++++++++++++++++++ asm/wizzrobeIce.s | 131 +------------------------------------------ include/structures.h | 1 + linker.ld | 2 + src/code_080300AC.c | 25 +++++++++ 5 files changed, 130 insertions(+), 130 deletions(-) create mode 100644 asm/code_080300AC.s create mode 100644 src/code_080300AC.c diff --git a/asm/code_080300AC.s b/asm/code_080300AC.s new file mode 100644 index 00000000..9533deb0 --- /dev/null +++ b/asm/code_080300AC.s @@ -0,0 +1,101 @@ + .include "asm/macros.inc" + + .include "constants/constants.inc" + + .syntax unified + + .text + + thumb_func_start sub_080300E8 +sub_080300E8: @ 0x080300E8 + push {lr} + ldr r1, _08030110 @ =gScreenTransition + adds r3, r1, #0 + adds r3, #0xae + ldrh r0, [r3] + cmp r0, #0xff + beq _0803010C + lsls r0, r0, #2 + adds r1, #0x6c + adds r0, r0, r1 + ldr r2, _08030114 @ =gPlayerEntity + ldrh r1, [r0] + strh r1, [r2, #0x2e] + ldrh r0, [r0, #2] + adds r0, #0xc + strh r0, [r2, #0x32] + movs r0, #0xff + strh r0, [r3] +_0803010C: + pop {pc} + .align 2, 0 +_08030110: .4byte gScreenTransition +_08030114: .4byte gPlayerEntity + + thumb_func_start sub_08030118 +sub_08030118: @ 0x08030118 + push {lr} + adds r2, r0, #0 + ldr r0, _0803013C @ =gScreenTransition + adds r0, #0xac + ldrh r0, [r0] + asrs r0, r2 + movs r1, #1 + ands r0, r1 + cmp r0, #0 + beq _08030140 + movs r0, #0xc0 + lsls r0, r0, #2 + adds r1, r2, #0 + adds r1, #0x67 + bl SetLocalFlagByOffset + b _0803014C + .align 2, 0 +_0803013C: .4byte gScreenTransition +_08030140: + movs r0, #0xc0 + lsls r0, r0, #2 + adds r1, r2, #0 + adds r1, #0x67 + bl ClearLocalFlagByOffset +_0803014C: + pop {pc} + .align 2, 0 + + thumb_func_start sub_08030150 +sub_08030150: @ 0x08030150 + push {r4, r5, lr} + mov ip, r0 + ldr r2, _08030194 @ =gScreenTransition + adds r5, r2, #0 + adds r5, #0xac + mov r3, ip + adds r3, #0x80 + ldrb r4, [r3] + movs r0, #1 + lsls r0, r4 + ldrh r1, [r5] + bics r1, r0 + mov r0, ip + adds r0, #0x84 + ldr r0, [r0] + lsls r0, r4 + orrs r1, r0 + strh r1, [r5] + ldrb r0, [r3] + lsls r0, r0, #2 + adds r2, #0x6c + adds r0, r0, r2 + mov r4, ip + ldrh r1, [r4, #0x2e] + strh r1, [r0] + ldrb r0, [r3] + lsls r0, r0, #1 + adds r0, #1 + lsls r0, r0, #1 + adds r0, r0, r2 + ldrh r1, [r4, #0x32] + strh r1, [r0] + pop {r4, r5, pc} + .align 2, 0 +_08030194: .4byte gScreenTransition diff --git a/asm/wizzrobeIce.s b/asm/wizzrobeIce.s index 850e6675..c8cd1228 100644 --- a/asm/wizzrobeIce.s +++ b/asm/wizzrobeIce.s @@ -375,133 +375,4 @@ _080300A2: adds r0, r4, #0 bl sub_0802F9C8 pop {r4, pc} - .align 2, 0 - - thumb_func_start sub_080300AC -sub_080300AC: @ 0x080300AC - push {r4, lr} - ldr r4, _080300C0 @ =gUnk_0300110C - adds r0, r4, #0 - movs r1, #0x44 - bl _DmaZero - adds r4, #0x42 - movs r0, #0xff - strh r0, [r4] - pop {r4, pc} - .align 2, 0 -_080300C0: .4byte gUnk_0300110C - - thumb_func_start sub_080300C4 -sub_080300C4: @ 0x080300C4 - push {lr} - ldr r2, _080300E4 @ =gScreenTransition - adds r0, r2, #0 - adds r0, #0xae - ldrh r0, [r0] - cmp r0, #0xff - bne _080300E2 - adds r0, r2, #0 - adds r0, #0xac - movs r1, #0 - strh r1, [r0] - subs r0, #0x40 - movs r1, #0x40 - bl _DmaZero -_080300E2: - pop {pc} - .align 2, 0 -_080300E4: .4byte gScreenTransition - - thumb_func_start sub_080300E8 -sub_080300E8: @ 0x080300E8 - push {lr} - ldr r1, _08030110 @ =gScreenTransition - adds r3, r1, #0 - adds r3, #0xae - ldrh r0, [r3] - cmp r0, #0xff - beq _0803010C - lsls r0, r0, #2 - adds r1, #0x6c - adds r0, r0, r1 - ldr r2, _08030114 @ =gPlayerEntity - ldrh r1, [r0] - strh r1, [r2, #0x2e] - ldrh r0, [r0, #2] - adds r0, #0xc - strh r0, [r2, #0x32] - movs r0, #0xff - strh r0, [r3] -_0803010C: - pop {pc} - .align 2, 0 -_08030110: .4byte gScreenTransition -_08030114: .4byte gPlayerEntity - - thumb_func_start sub_08030118 -sub_08030118: @ 0x08030118 - push {lr} - adds r2, r0, #0 - ldr r0, _0803013C @ =gScreenTransition - adds r0, #0xac - ldrh r0, [r0] - asrs r0, r2 - movs r1, #1 - ands r0, r1 - cmp r0, #0 - beq _08030140 - movs r0, #0xc0 - lsls r0, r0, #2 - adds r1, r2, #0 - adds r1, #0x67 - bl SetLocalFlagByOffset - b _0803014C - .align 2, 0 -_0803013C: .4byte gScreenTransition -_08030140: - movs r0, #0xc0 - lsls r0, r0, #2 - adds r1, r2, #0 - adds r1, #0x67 - bl ClearLocalFlagByOffset -_0803014C: - pop {pc} - .align 2, 0 - - thumb_func_start sub_08030150 -sub_08030150: @ 0x08030150 - push {r4, r5, lr} - mov ip, r0 - ldr r2, _08030194 @ =gScreenTransition - adds r5, r2, #0 - adds r5, #0xac - mov r3, ip - adds r3, #0x80 - ldrb r4, [r3] - movs r0, #1 - lsls r0, r4 - ldrh r1, [r5] - bics r1, r0 - mov r0, ip - adds r0, #0x84 - ldr r0, [r0] - lsls r0, r4 - orrs r1, r0 - strh r1, [r5] - ldrb r0, [r3] - lsls r0, r0, #2 - adds r2, #0x6c - adds r0, r0, r2 - mov r4, ip - ldrh r1, [r4, #0x2e] - strh r1, [r0] - ldrb r0, [r3] - lsls r0, r0, #1 - adds r0, #1 - lsls r0, r0, #1 - adds r0, r0, r2 - ldrh r1, [r4, #0x32] - strh r1, [r0] - pop {r4, r5, pc} - .align 2, 0 -_08030194: .4byte gScreenTransition + .align 2, 0 \ No newline at end of file diff --git a/include/structures.h b/include/structures.h index 32ae8d74..cc851489 100644 --- a/include/structures.h +++ b/include/structures.h @@ -83,6 +83,7 @@ typedef struct { u16 field_0x4a; u8 field_0x4c[0x60]; u16 field_0xac; + u16 field_0xae; } ScreenTransition; extern ScreenTransition gScreenTransition; diff --git a/linker.ld b/linker.ld index 56aabb33..0194cbca 100644 --- a/linker.ld +++ b/linker.ld @@ -370,6 +370,8 @@ SECTIONS { asm/wizzrobeWind.o(.text); asm/wizzrobeFire.o(.text); asm/wizzrobeIce.o(.text); + src/code_080300AC.o(.text); /* ??? */ + asm/code_080300AC.o(.text); /* ??? */ asm/armos.o(.text); asm/eyegore.o(.text); asm/rope.o(.text); diff --git a/src/code_080300AC.c b/src/code_080300AC.c new file mode 100644 index 00000000..785d0ca5 --- /dev/null +++ b/src/code_080300AC.c @@ -0,0 +1,25 @@ +#include "global.h" +#include "entity.h" +#include "functions.h" + +//extern void DmaZero(void*, u32); + +typedef struct { + u16 unk0; + u16 filler2[32]; + u16 unk66; +} struct_0300110C; + +extern struct_0300110C gUnk_0300110C; + +void sub_080300AC(void) { + _DmaZero(&gUnk_0300110C.unk0, 0x44); + gUnk_0300110C.unk66 = 0xff; +} + +void sub_080300C4(void) { + if (gScreenTransition.field_0xae == 0xff) { + gScreenTransition.field_0xac = 0; + _DmaZero(&gScreenTransition.field_0x4c[32], 0x40); + } +} \ No newline at end of file From 342706590b99379b4698dc4885a7af6c66a439ec Mon Sep 17 00:00:00 2001 From: theo3 Date: Sun, 16 Aug 2020 19:07:01 -0700 Subject: [PATCH 136/158] postman gfx --- data/data_081320FC.s | 10 +++++----- graphics/font.pal | 19 ------------------- graphics/npc/postman.png | Bin 0 -> 7783 bytes graphics_file_rules.mk | 7 +++++-- 4 files changed, 10 insertions(+), 26 deletions(-) delete mode 100644 graphics/font.pal create mode 100644 graphics/npc/postman.png diff --git a/data/data_081320FC.s b/data/data_081320FC.s index 38660493..70fed072 100755 --- a/data/data_081320FC.s +++ b/data/data_081320FC.s @@ -5525,13 +5525,13 @@ gUnk_08214B7E:: @ 08214B7E .incbin "baserom.gba", 0x214B7E, 0x0000C81 gUnk_082157FF:: @ 082157FF - .incbin "baserom.gba", 0x2157FF, 0x000377A + .incbin "baserom.gba", 0x2157FF, 0x0002CB5 -gUnk_08218F79:: @ 08218F79 - .incbin "baserom.gba", 0x218F79, 0x000309F +gUnk_082184B4:: + .incbin "graphics/npc/postman.4bpp" -gUnk_0821C018:: @ 0821C018 - .incbin "baserom.gba", 0x21C018, 0x0002FE7 +gUnk_0821DCB4:: + .incbin "baserom.gba", 0x21DCB4, 0x000134B gUnk_0821EFFF:: @ 0821EFFF .incbin "baserom.gba", 0x21EFFF, 0x00000F1 diff --git a/graphics/font.pal b/graphics/font.pal deleted file mode 100644 index 199e6c39..00000000 --- a/graphics/font.pal +++ /dev/null @@ -1,19 +0,0 @@ -JASC-PAL -0100 -16 -180 189 148 -49 131 24 -65 205 24 -74 255 24 -24 90 164 -41 156 255 -74 230 255 -123 41 24 -189 49 32 -255 82 49 -255 246 0 -115 98 98 -172 156 156 -213 197 197 -255 255 255 -0 0 0 diff --git a/graphics/npc/postman.png b/graphics/npc/postman.png new file mode 100644 index 0000000000000000000000000000000000000000..bdfb00d40b304ccda3b3f721b54bc20f3dbe8460 GIT binary patch literal 7783 zcmaKxcT`i|_O3&3p(})Ds1lG8Km|caAT&`RASwt50iyJT5ULW2bdV-hKthqC2#AOQ zl-^Z3BGP-8CLNQ@_nq^d-@W7BbN4^1jQKwEU2Dxf#u|G^A&vA{nfaLk008R^eQndT zmIDA_0Wi{>^`uTM6wewyypB2kHs>2ZcieG#xN@XyF@fs7Gj1G|IuxqYHf<0HBd@ zGBd}U8{Sg2$GFL%{)&2=-d8AX7>Ir_SYOlVH(2MeO1o@ZfHD8*w@X~-BZ<9UG#6R>RJDZ1QLWp0QRMqqGg;j3~`S$il{QCRt!oWj-1m#;!)gcYHRP!vB6m&$8hh9;%vZ>;5~}*+^Z~5s$~J%FFxs_{jMv$zgDhFO%~qt(XPd%2>tt}E6&~uDDsw>jzZRBJ4Qe<2VP+_X zI3A2mS^a@k6?w{0EbC<_D$thI`y;!1l+4Vs8v=z9u0-G#jfS)RTh0TUoo5#7EEBHE zrEL|_;AxmcW>a_0GR!`_$qey$KrQ^kxFiDDo`lvxM6w7nfwh!f*sQ>M%6$P==ZEcn z9y10R+p~uHzY>94fF}~ZCtzIa8d^{NW@PF1_6=RbKUifru`6s;azSWhx+}&NgNDPs zEz{9QbsqwLwW@c;Z%mv*_dGX0LF>2d^FlMrS6+aBP6tvWV>wS7HyU2(P&ov!BTMPK z8+P;gu{V_nv`y^KC%?tlYt)MH5M*9}QLcO4@l23t@S1BR5y%XAv)FOm5pO&nF>>NP zt5==OJ^_^GfQ6Hw_kLiH<$o1wdB8LS=UJ;9t;}EPkwp7X51Id%9GM)L%|vV*&+)+W zOir%u(s)1*-_d^7(3;Vk_h$`sxDF4zFwuAA)@Mb5luuAifz%FGZWuuUo@H6)L51lE zD#jo(A1j~BI4}uyFe$%ryWy5V1Rd2~6B=gA_7Nr?Gb7{G0 zPAl_ZmfIej;pAeRn7$RTK?EeFtfe>*$W+qcN=fW()Tv+YH3!3Jc(Dw;Uu3O<_KjYv z0d6rCFSqCA2@JXoUg#)e9fL(O_XP%L?mWll)*Gd=&xDx@45(!cwcXQEeh}&tg8Q>D zu4eJ9In0ez%ro}+dEW6xqd6^VMCmbdFROjJ)76hF$ujcl?G#UQVz@$}8=Q4}QDzrB(+V zE46H?cXH9hIyyeiZ)c+k=#{kZe7O2&t~0P*k1I|r>}h}@;`$EvZuy39XoB6rv{vXj zt@~2v_**r!h9-0K%t$FI6+W+|QkeJ-K z{xg_McmP3<)Y5baoB<|_e`lE0Znmq0@Y0{tNCk(mlPa<*8s#%hsjaPJvrC6`2tmA4 zofg*f){cj|Jh*(<8nu_)3QVa1kC-K3%}N29r$6?Cv!3uBRWk{#sFT$w3rl0M4Byf> zG~^f&KAQ~|&CVbhyPSKVNPJoUY_qgSKgzZs*uwTaw6Xk%k6u?CB-$K=tC}!$T+PD- zyp`Lb$vf2TSry%EJ{A9?#WfJDW*>xmssw3#!Bsc(sbu%kXrY|e*Z9t$AYF!8Jsxo( z`Xj|1S(YRthR*fKtrtVb>DxrYsK`VI9cua4pPZH1EJub2(iSgii;MT@=7f`#YX}=# zHv7Xy`2fioVeaBlL}#Y&*l^jTd1=@aT2$Ys&hT$6BD8U2=KHrGHV(J#s4qU6fA4`x zG3~UpmJYK}1HBdcYPezhm>Dsrb>FB80k@hq`sjn@l#ts=^Y0_+N5&*FYA%Vz9Xz!; zPMo0z$B{s4>LPMn67H^3!=rs3CQm|LL9jvJCZH6v2(9nto$27#&>fv5E^g>GG0IJ= zCm_^3Z}rGbTm}^MDZN>!bVuenycO0*#r2xOPn7PgZUotv?8fitsmLQg zEYE*>n2{tPDc7qsv=j@v0b)*@L>n2VSaCmmvi5P@<-J3*`2`AO4Z+BTyX5>KTogDi z3Z$1W#OeV*Pf9$WhJ+OCiX%_+qoDIQ7&D-WPEo*QtoULKak)#r?FnaW1{MKtwe?No z%X_WdxrN(esZT<<5oxf!LC@{`HwsDqFT*Yg$^tAo&lnlqQ!Sxc0*$q8K}@RFs<^B zHwe?*7}JFLm|fEZ*9X$ch6{7`5oFRQK9|WtJ&k4tJ5H{;tX&!iMHI(h#K~2?BFsZb z*YQ_DK_Rv?PlM!yQFQW#VFdZ^xy$mBfIAnalgM( zcV^aewXG~kinnVtJ~HR06oLOcix-uwn#*V$_o}F)ssjtX^5~he6^O^9_;);OK+_has0iU3505NS*Yrajh0XwlQMV=H-)wj1{N_guyVRSD+ z>M=RLn)yUFTc?ufi;rNhCeLy9GyaDFOUQy(|mq*9#FayCF){_f|6r9Hki zGY}u2!~ZNMP3qwFhZcX>L9O#fh0*pPAMZ@?p%hZ~DEn|lB#U#$Xg0tqp*DfUNX@G` zOMMNHI`c1RngJOds#Y=C(*0gas_Q=6ow`K60z#UH+(CNttHABsx*#Rac266DT4idekYR9o1-{~Tn00rGq zkveevISUDu8Zo%;v~Zy?>cWti*jUIhjTfh)6`^8Rg(yQcs!#8$ZM%0V< z0zoOVa8$$6sj%FQO4UJ5&cknyY$w^0J#xH1PGyuMY!)W*#KYr^G%eN(~(!qoTmrYG+~2rPiI8yv|rANdfJZdbH1gzhwYybzK2z)4H)VRU&F&A zBDi$F4kv||>4$pm7#?lkRdobCi6n#Y#Uv13_zx%7AUOBepGu8c*%~T@JJgCeZcFNv zGnprK3hFOk4V$@KF#8U#sYO~ora=hs@had|i7oFpMTEW%hm72NNYvuyv)8${*Aahw zzQ-!iAk|&H8KC1NEcYV)2fti$dgB0FYa4-u_Y3l`YnX~ORLH`rfaXpKP8G>E!lHV) ze{cm*T2M-BuEV!RVdUjvV~>ie!>0p5d+WW4%9E9S;j;M7F&`-sWT{P&_HUxN^z1At zECyX1v%n)qeLg*oo2(xp0~8m6L{S_Wq(!5@t zkjkOvOx)!>fs(R#Y32VrQ#rdSFCU||yLKBpaZ75BfeavyFK@>IpUWtNmE z(STz^9grvONQnu&e&N@2sMPjt`Csp`4)V-W3nI_~(pyT$)gkR88+nTJAC3Et&3i2h zdz_`#NQ_$Zm9~h*0(|4?P1>l>j{5rrWP8aCBbV^-(=-*f!wxRkvpt2Y)!tzrCO>0t z78o-js?FQ%Oj>L;&Br?ET=kS%^DomnD;{{_QbeOcp_rH{rE6D zWM0Gy*fKYf_$G7OT(7A)o--riblFgMpNZFahT&5R7~CLONbag_>Fd6FoIxhdcVr4M zrz|_p={4zK(#EkUFADK)rRp)md6rFZC~N0etZu6Lk%B0964;`_jBtwt3dfazd)X(A zmrV$#_pM^rr!qZq>)yzhZTy)?nT&kOwijkuO06n%f2;WtAy)PmIhz~0@~oF!Nm?x< z3mwO+hsMgA7T}F62FNLAd`Er^rW}a^9R(|DVeixdpeb8 z7<&80lLS7K^LG*3;^EEl`**br3--OkMz=yFO4KX);%1dw+0L0?lGWY(?Y#VX&_%?J z-TP{bIr#3NmO$r-;v&oU4h%JOvGMn#ZuZ4&2w~my=I?<$@1ONP%5F`4WJ`g5lW*+4 zV3=9?db#xcVHv!J(Fcn-FP=J86i-@>r%L#jOi+H*($7M#Dt|RTe?X)#I)(?R_w&paDJ+xhh zgj<8w=?ME|#B*_^mNfhw5OQhOUMQrXK4Xl{@F3sczuH>QbkJ&&i=)QJ@{1^zWi1a6+cN_nS6kZ>aMAiPgkE9y9v`i=rP=)DLHR^G6F>bH+^n@--} z*MHyJMSQ&Z;A%n#X3fIlJIv2>_N!d>md}Hor|h;tOc2Ram2KUt3N|4?wT8<}>YFh7 zS71KK6B%mo5AsmdVXaEafft}g<-OY8iFxla!&~+}_SHWca)5!j_18*ujlJvp?<-3K zam;^H*-duDE>0HD6-%CuunOKbnM} zBEwP2*Nr_*2Kg#v9(<24*jKIry|T5>#Jsv^D;Gn>L6oo$$}4X+l{! z#f}Gc5bRg3K4g%MhOcZan4H(C(fG|oA*%9+IF}m%n82Sj2+XkY`D|jk%0|QFd4f=T zqh+YCl0bt25coN&M(y8O>lbVD0>t*GtLAEi9?JU$lpAW0)pX%oL zH5!|;4|D6d<%&+tU(FQgbgBwXKVsDk5$xRpz?=~rV+*?43YtZG&k`qZ+&lCF(O@{a zR-A@B{&=l6^i1J6!uIqdQd)!^RYQNm`~Y0gZ$J&{cFE_$$w@a4~3WVm&T&7-JpBls>7T>TAVUC-`n z96j-`#jE?L^0QCsrh?a*hV36(%m3tdK2oT;v^Zd0(-L1}tvCYyYAy0dQ|>GFp6MC& zKCp}2^=iV&!4Mq@jxtWwe*uPWi%mbd)y0lZKMbC{Iql&ziezjN$pYWGQSc8N*o@gY z*ao1Am$SwUC|;v8eb%v0053RNY#ak=A+s9Q3Z|b8(Fc26vI}}|R}Qi3tZT$j4RPd- zI@LM7x0Y!5ywqONK?^u0E6!3V%PTskEN1`FcPWA@{iWrL4^88(s$>M1bpWq^+rV@m zNw1SV6?Ui`wSbs)PcvdEHRLX}MCFm^(BWYM{d&E7DWgv^8(Pfj1qiu%oB;1SphYeh z6PY7VIp<}M(hQlBHXNFV{&;xmB#gWHkyO$TsYD3|ZxeJvY2!~fq?13C1e+#<7JnJ= zK(fGPTQmjQ*H%!6U0#5nO&PoL@|d0mNA=25_IaB{rrUY>xZZ}XU^df)g6B-PoeAg- z*hRI1_Rd3-`xkbQ@>J+XfQ@OZamo1|O)>jg;U;e1)LojSb!#eeali28t>VnXnJX}}2s6MW=X7hXlaq3a`^>v3 zW{x99m6nd8B^#cNz8@z{<9q!_thb*gJWnlAZ?1j0U~{Pdr4aVrl8yDkD|JuDiv&g# z@$el0<7iGJ8Vxqt&G*t5qT*a<#E#{P1hsMN4ylxK@Jo!)(2wk=O->4|{ zXez`bvcXq$ZUOwO;M2KRUOSQBxrUX-g zTeZ=>k!}DIkqDZEn$#xKOC1nAcr!K0?7`MYGLn z_X9{)d0NgsM?(G=J@O_QjWhl(MX5A8N=s}w&&S6Myl(+)2QX2e@ z`R}~R{NKv+G{y(kf*Uj`**gBNnN}Bmt>g~Wj=YWY>GUlbJ{r@D&{R(jw7@LdK(=dl z`1YB6lF>9MJ0Y5`iSv_~>=#KFsm_(apg&DkVP-WY^AP}p83uXf>>$%xVK&4HrgMa0 zF{uy5xh59rsAsy7++tJwI~uCnA+(dKc%3raYTlU|$OpFn)_^S${xZC)&UCIdJ}&1a zfX>VppGY!ViyvB~bJU4i>#^b_YR6fPi3BvN)I{c+lB#2{T1Ki|_o#&#U%$x}h)C1u}O z>sYu%vU|}9F)rVO^@IbVB6jcc<=J?XCTD)n4W_O$BcnMlowx zy>a$gII_O6hr2b-Qk)9v>TL{jExvw5e2_H-2H=(4_)ZZSb9dODTvPAiqF}cxYSTU5 zm3Vh~)_F}WH-;-DEJ3j|9-!nU5~KyBB1fuS{$-?WHbEl`T{GA&dD^e|;em$_YTDsJ z@(3w?b-00%H%+K}sDI~%wIgEkB!zANo%h-uYqRTFMvqilbWAsrmb};A^#`-s3-_X? zLymd$;$jqIgXcotuw3_#!7pzl+4C)i3_qA~qi&^(O)XK$nz^FcqIZpwH=A!VXZQLZ z<%8b-Bf^#@q?M~De&g*a$NQXUpGxee!y3Gc94ojOlJd$fJ!VWz-zvVVno(CtCI$Rj zgumE>HP3pcuB+9<&(9T#q)wD@ z=`20X=Uc3rO^*8KbxS~~L1LxI9l~!fP7`-dDHg z;v;!J$Yr_L%6gM8D9uH;caB(*MP0F3x15mkhrTre4IXsokVTU6ZJi?k-M#J??RN-T zq&b|`Pz_~gnFR67ggTRN(lbAcS^buHd)MX=Z=lgY^}Zc#Wwr@T=KFZk*zx5G~!d~IFZq2%)f z=o1;YpK{|vV%)I8>6OvZw9R+$(mt`?93zXvrgH`YK4U=x|0f{$UjQ*qScN%Z=G68O wa>|jh&^S<2bebMg^yra|dwD#C76f>$Ey%|+0@679T?M$IW29ZCWgGIp090UE3;+NC literal 0 HcmV?d00001 diff --git a/graphics_file_rules.mk b/graphics_file_rules.mk index 6a4db246..25373c9c 100644 --- a/graphics_file_rules.mk +++ b/graphics_file_rules.mk @@ -4,7 +4,10 @@ $(GFXDIR)/intro/nintendo_capcom.4bpp: %.4bpp: %.png $(GFX) $< $@ -num_tiles 123 $(GFXDIR)/font.4bpp: %.4bpp: %.png - $(GFX) $< $@ -num_tiles 2005 + $(GFX) $< $@ $(GFXDIR)/pot_portal.4bpp: %.4bpp: %.png - $(GFX) $< $@ -num_tiles 144 \ No newline at end of file + $(GFX) $< $@ + +$(GFXDIR)/npc/postman.4bpp: %.4bpp: %.png + $(GFX) $< $@ \ No newline at end of file From 1e50eed7a5243f03095868083c916de1037116d7 Mon Sep 17 00:00:00 2001 From: macrepeh Date: Sun, 16 Aug 2020 22:13:59 -0400 Subject: [PATCH 137/158] Carlov --- src/npc/carlov.c | 35 +++++++++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) create mode 100644 src/npc/carlov.c diff --git a/src/npc/carlov.c b/src/npc/carlov.c new file mode 100644 index 00000000..aaa447d0 --- /dev/null +++ b/src/npc/carlov.c @@ -0,0 +1,35 @@ +#include "global.h" +#include "entity.h" +#include "player.h" +#include "room.h" +#include "flags.h" +#include "sprite.h" +#include "textbox.h" +#include "npc.h" +#include "structures.h" + +extern void sub_0807DD50(Entity *); +extern void sub_0807DD94(Entity *,u32); +extern void sub_08004488(u32); +extern void sub_08080964(u32,u32); + + +void Carlov(Entity *this) +{ + if (this->action == 0) { + this->action++; + sub_0807DD50(this); + } + else { + sub_0807DD94(this,0); + } + if ((this->frames.all & 0x10) != 0) { + this->frames.all = this->frames.all & 0xef; + sub_08004488(0x104); + sub_08080964(0x10,0); + } + if ((this->frames.all & 0x20) != 0) { + this->frames.all = this->frames.all & 0xdf; + sub_08004488(0x7c); + } +} \ No newline at end of file From 6f1ffdc024ab26cf455a5f0aae9fea8fa0e8f892 Mon Sep 17 00:00:00 2001 From: macrepeh Date: Sun, 16 Aug 2020 22:14:47 -0400 Subject: [PATCH 138/158] Carlov --- asm/carlov.s | 53 ---------------------------------------------------- linker.ld | 2 +- 2 files changed, 1 insertion(+), 54 deletions(-) delete mode 100644 asm/carlov.s diff --git a/asm/carlov.s b/asm/carlov.s deleted file mode 100644 index d076b873..00000000 --- a/asm/carlov.s +++ /dev/null @@ -1,53 +0,0 @@ - .include "asm/macros.inc" - - .include "constants/constants.inc" - - .syntax unified - - .text - - thumb_func_start Carlov -Carlov: @ 0x0806BD54 - push {r4, lr} - adds r4, r0, #0 - ldrb r0, [r4, #0xc] - cmp r0, #0 - bne _0806BD6A - adds r0, #1 - strb r0, [r4, #0xc] - adds r0, r4, #0 - bl sub_0807DD50 - b _0806BD72 -_0806BD6A: - adds r0, r4, #0 - movs r1, #0 - bl sub_0807DD94 -_0806BD72: - adds r4, #0x5a - ldrb r1, [r4] - movs r0, #0x10 - ands r0, r1 - cmp r0, #0 - beq _0806BD94 - movs r0, #0xef - ands r0, r1 - strb r0, [r4] - movs r0, #0x82 - lsls r0, r0, #1 - bl sub_08004488 - movs r0, #0x10 - movs r1, #0 - bl sub_08080964 -_0806BD94: - ldrb r1, [r4] - movs r0, #0x20 - ands r0, r1 - cmp r0, #0 - beq _0806BDAA - movs r0, #0xdf - ands r0, r1 - strb r0, [r4] - movs r0, #0x7c - bl sub_08004488 -_0806BDAA: - pop {r4, pc} \ No newline at end of file diff --git a/linker.ld b/linker.ld index 56aabb33..e12d18f3 100644 --- a/linker.ld +++ b/linker.ld @@ -607,7 +607,7 @@ SECTIONS { src/npc/moblinLady.o(.text); asm/librarians.o(.text); asm/farmers.o(.text); - asm/carlov.o(.text); + src/npc/carlov.o(.text); src/npc/dampe.o(.text); asm/drLeft.o(.text); asm/kingGustaf.o(.text); From b40ba5a4430b3cc5a2e91b21837c0f6534853011 Mon Sep 17 00:00:00 2001 From: theo3 Date: Sun, 16 Aug 2020 21:11:48 -0700 Subject: [PATCH 139/158] malon gfx --- .gitignore | 3 ++- data/data_081320FC.s | 7 ++++++- graphics/npc/malon.png | Bin 0 -> 1837 bytes graphics_file_rules.mk | 3 +++ 4 files changed, 11 insertions(+), 2 deletions(-) create mode 100644 graphics/npc/malon.png diff --git a/.gitignore b/.gitignore index d1b99ebd..27c775cb 100644 --- a/.gitignore +++ b/.gitignore @@ -62,4 +62,5 @@ types_*.taghl !sound/programmable_wave_samples/*.pcm _Deparsed_XSubs.pm *.py -*.sna \ No newline at end of file +*.sna +__pycache__ \ No newline at end of file diff --git a/data/data_081320FC.s b/data/data_081320FC.s index 70fed072..dbc4d281 100755 --- a/data/data_081320FC.s +++ b/data/data_081320FC.s @@ -5527,11 +5527,16 @@ gUnk_08214B7E:: @ 08214B7E gUnk_082157FF:: @ 082157FF .incbin "baserom.gba", 0x2157FF, 0x0002CB5 +@ 0x2184B4 - 0x21DCB3 gUnk_082184B4:: .incbin "graphics/npc/postman.4bpp" +@ 0x21DCB4 - 0x21E913 gUnk_0821DCB4:: - .incbin "baserom.gba", 0x21DCB4, 0x000134B + .incbin "graphics/npc/malon.4bpp" + +gUnk_0821E8F4:: + .incbin "baserom.gba", 0x21E8F4, 0x000070B gUnk_0821EFFF:: @ 0821EFFF .incbin "baserom.gba", 0x21EFFF, 0x00000F1 diff --git a/graphics/npc/malon.png b/graphics/npc/malon.png new file mode 100644 index 0000000000000000000000000000000000000000..9f7f4749a240c92bf0050ace38d3fc77d19c2db7 GIT binary patch literal 1837 zcmV+|2h#Y7P)u0{{R3x}SZ>0000mP)t-sF`Rpp zVll;>d;is}q*56FlsQsCq@)l4-a#qzs+DYD~Jo+YldC4p3GMuTLLEe6@bTRRnGrS!_#<@$Z!d*`;)F{U@m)9gE`|W@x7imvxo#co$;$lPN`jv;DU{1|V=U}D`TRZlLR%$q$RC}6J=QSntFf80 zBl&DeT{thd{dIoJacT@2L?Cq$bR1n+gFu2H{QaH+x@(46#5=wkkp(u$U??gG)tGbs!F~D9vmO!57iz5}mv`U0FG6BSL$O^$1Hr-E=hcuTre$XZph z0VIMY0|*DfZk)n}pkreU8J`MV$dPz<&^OW?(9~ztonI&2`E`M|;nzLXJ;HO)M*0#Z z+>mwuOoT@F$or`7ESWJtpj8GXjoek=;o=iti|b_E^(sGXJv}fFw|b~DaoOsi%H;R< z`JvXd{dfe-33?kgYk1E->>)rOACGrQTr5y!Kfq#Yc^^VWMPn8=PNFUNJ==wix57_8 zto6W)g%f#&J@~C80z01MVQDcyxswETmjbP2PnlwvBTh)}heqyfA<}@$t2wQ5emWU% zF&Bv%>xT?Ec>ik(8BwcS~Xfj@W;x#3IG$Ow}{s@GF$>V}HIED%Wc zG-ZOtrA)A=DHH5z$^?6wGNC<ZlFt(+TZAY)<4OGt|Mjzx8&bI| z#?wIZlBbyo^0cNQZSUl1BR6(+-QEumZq(kJX?y2POf8jCx%Wx#XLdX@OYPmC6tZ(# z?rgcNifippQXObd!44esU^UzC7@J~XM_wK7$V{3hPPkVYkG`e3A?&}T=zAz-| zu8x@?Pje<18)bq$O_^XTQzmqQnJ~d09I>ZO@a4yYFVf&+ftk>rrr@)uV>H48T=`ZZ zKR>)r!M{^p8?JEPZ_k9>=OI=m<;nGX85)39#XU@OgL|0v3eGON1K{k!1=Qg$4uNK$$W_NcvybISc;>k#W7B zz8b+c2K<|i5f-?V=XLt{;5!frevjjyf+&`bLE)$os2_)L9#Sz-@Yq8uPt**Yc(@M` zoW4i%2*L>?mq!hF@rZ(laE6ccZVV&SjG^i$8nM4U?;Pmo0zXE z9rF*DamaEUu&Y1+6n1HPr@;k(;?x;j>CYbVV#CgZp+;Bua-f-7oi?p*E^T>5qa00000NkvXXu0mjfRhoAh literal 0 HcmV?d00001 diff --git a/graphics_file_rules.mk b/graphics_file_rules.mk index 25373c9c..027e6549 100644 --- a/graphics_file_rules.mk +++ b/graphics_file_rules.mk @@ -10,4 +10,7 @@ $(GFXDIR)/pot_portal.4bpp: %.4bpp: %.png $(GFX) $< $@ $(GFXDIR)/npc/postman.4bpp: %.4bpp: %.png + $(GFX) $< $@ + +$(GFXDIR)/npc/malon.4bpp: %.4bpp: %.png $(GFX) $< $@ \ No newline at end of file From cfaba92b8492a9894a1b0fdbdf2429eaafbbdc58 Mon Sep 17 00:00:00 2001 From: Ibot02 Date: Mon, 17 Aug 2020 13:57:58 +0200 Subject: [PATCH 140/158] manager4.c: ok except that one function I gave up on, maybe someone else has an idea on how to make that work. --- asm/manager4.s | 334 --------------------- asm/non_matching/manager4/sub_0805795C.inc | 95 ++++++ include/manager.h | 21 ++ include/structures.h | 8 +- linker.ld | 2 +- src/manager/manager4.c | 132 ++++++++ 6 files changed, 256 insertions(+), 336 deletions(-) delete mode 100644 asm/manager4.s create mode 100644 asm/non_matching/manager4/sub_0805795C.inc create mode 100644 src/manager/manager4.c diff --git a/asm/manager4.s b/asm/manager4.s deleted file mode 100644 index 9daea0ca..00000000 --- a/asm/manager4.s +++ /dev/null @@ -1,334 +0,0 @@ - .include "asm/macros.inc" - - .include "constants/constants.inc" - - .syntax unified - - .text - - thumb_func_start sub_08057854 -sub_08057854: @ 0x08057854 - push {lr} - ldr r2, _08057868 @ =gUnk_08107C70 - ldrb r1, [r0, #0xc] - lsls r1, r1, #2 - adds r1, r1, r2 - ldr r1, [r1] - bl _call_via_r1 - pop {pc} - .align 2, 0 -_08057868: .4byte gUnk_08107C70 - - thumb_func_start sub_0805786C -sub_0805786C: @ 0x0805786C - push {r4, r5, r6, r7, lr} - mov r7, r8 - push {r7} - mov r8, r0 - bl sub_080805F8 - ldr r6, _080578D4 @ =gUnk_03004030 - ldrb r0, [r6, #8] - cmp r0, #0 - beq _08057914 - ldr r0, [r6] - cmp r0, #0 - bne _080578C0 - movs r0, #0xff - strb r0, [r6, #0xa] - ldr r0, _080578D8 @ =gRoomControls - ldrb r5, [r0, #5] - ldr r7, _080578DC @ =gUnk_08107DC0 - ldrb r0, [r0, #4] - lsls r0, r0, #2 - adds r0, r0, r7 - ldr r4, [r0] - adds r0, r4, #0 - adds r1, r5, #0 - bl sub_08057AA8 - adds r4, r0, #0 - cmp r4, #0 - beq _080578C0 - ldrb r5, [r4, #5] - ldrb r0, [r4, #4] - lsls r0, r0, #2 - adds r0, r0, r7 - ldr r4, [r0] - adds r0, r4, #0 - adds r1, r5, #0 - bl sub_08057AA8 - adds r4, r0, #0 - cmp r4, #0 - beq _080578C0 - str r4, [r6] -_080578C0: - ldr r0, _080578D8 @ =gRoomControls - ldrb r5, [r0, #5] - ldr r1, _080578DC @ =gUnk_08107DC0 - ldrb r0, [r0, #4] - lsls r0, r0, #2 - adds r0, r0, r1 - ldr r4, [r0] - movs r6, #0x81 - lsls r6, r6, #7 - b _08057906 - .align 2, 0 -_080578D4: .4byte gUnk_03004030 -_080578D8: .4byte gRoomControls -_080578DC: .4byte gUnk_08107DC0 -_080578E0: - ldrh r1, [r4] - adds r1, #0x3f - adds r0, r6, #0 - movs r2, #1 - bl SetTile - ldrh r1, [r4] - adds r1, #0x40 - adds r0, r6, #0 - movs r2, #1 - bl SetTile - ldrh r1, [r4] - adds r1, #0x41 - adds r0, r6, #0 - movs r2, #1 - bl SetTile - adds r4, #8 -_08057906: - adds r0, r4, #0 - adds r1, r5, #0 - bl sub_08057AA8 - adds r4, r0, #0 - cmp r4, #0 - bne _080578E0 -_08057914: - movs r0, #1 - mov r1, r8 - strb r0, [r1, #0xc] - pop {r3} - mov r8, r3 - pop {r4, r5, r6, r7, pc} - - thumb_func_start sub_08057920 -sub_08057920: @ 0x08057920 - push {r4, r5, r6, lr} - adds r6, r0, #0 - ldr r0, _08057934 @ =gRoomControls - ldrb r5, [r0, #5] - ldr r1, _08057938 @ =gUnk_08107DC0 - ldrb r0, [r0, #4] - lsls r0, r0, #2 - adds r0, r0, r1 - ldr r4, [r0] - b _0805793E - .align 2, 0 -_08057934: .4byte gRoomControls -_08057938: .4byte gUnk_08107DC0 -_0805793C: - adds r4, #8 -_0805793E: - adds r0, r4, #0 - adds r1, r5, #0 - bl sub_08057AA8 - adds r4, r0, #0 - cmp r4, #0 - beq _08057958 - adds r0, r6, #0 - adds r1, r4, #0 - bl sub_0805795C - cmp r0, #0 - beq _0805793C -_08057958: - pop {r4, r5, r6, pc} - .align 2, 0 - - thumb_func_start sub_0805795C -sub_0805795C: @ 0x0805795C - push {r4, r5, r6, r7, lr} - adds r7, r0, #0 - adds r6, r1, #0 - ldr r0, _080579BC @ =gUnk_03004030 - ldrb r0, [r0, #8] - cmp r0, #0 - beq _080579C8 - ldr r1, _080579C0 @ =gPlayerEntity - ldr r3, _080579C4 @ =gRoomControls - ldrh r2, [r1, #0x2e] - ldrh r0, [r3, #6] - subs r2, r2, r0 - lsls r2, r2, #0x10 - lsrs r2, r2, #0x10 - ldrh r0, [r1, #0x32] - ldrh r1, [r3, #8] - subs r0, r0, r1 - lsls r0, r0, #0x10 - lsrs r4, r0, #0x10 - ldrh r3, [r6] - movs r1, #0x3f - ands r1, r3 - lsls r1, r1, #4 - adds r1, #8 - movs r0, #0xfc - lsls r0, r0, #4 - ands r0, r3 - lsls r0, r0, #0xe - movs r3, #0xc0 - lsls r3, r3, #0xd - adds r0, r0, r3 - lsrs r3, r0, #0x10 - subs r2, r2, r1 - adds r0, r2, #0 - adds r0, #0x18 - cmp r0, #0x30 - bhi _08057A14 - subs r0, r4, r3 - adds r0, #8 - cmp r0, #0x10 - bhi _08057A14 - cmp r4, r3 - bhs _08057A00 - adds r0, r2, #0 - adds r0, #0xc - cmp r0, #0x18 - bls _08057A14 - b _08057A00 - .align 2, 0 -_080579BC: .4byte gUnk_03004030 -_080579C0: .4byte gPlayerEntity -_080579C4: .4byte gRoomControls -_080579C8: - ldr r3, _08057A0C @ =gPlayerEntity - movs r1, #0x2e - ldrsh r0, [r3, r1] - ldr r2, _08057A10 @ =gRoomControls - ldrh r1, [r2, #6] - subs r0, r0, r1 - asrs r4, r0, #4 - movs r1, #0x3f - ands r4, r1 - movs r0, #0x32 - ldrsh r5, [r3, r0] - ldrh r2, [r2, #8] - subs r0, r5, r2 - asrs r0, r0, #4 - ands r0, r1 - lsls r0, r0, #6 - orrs r4, r0 - ldrh r1, [r6] - cmp r4, r1 - bne _08057A14 - lsrs r0, r4, #6 - lsls r0, r0, #4 - adds r0, r2, r0 - adds r0, #6 - lsls r0, r0, #0x10 - lsrs r3, r0, #0x10 - cmp r5, r3 - bge _08057A14 -_08057A00: - adds r0, r7, #0 - adds r1, r6, #0 - bl sub_08057A18 - movs r0, #1 - b _08057A16 - .align 2, 0 -_08057A0C: .4byte gPlayerEntity -_08057A10: .4byte gRoomControls -_08057A14: - movs r0, #0 -_08057A16: - pop {r4, r5, r6, r7, pc} - - thumb_func_start sub_08057A18 -sub_08057A18: @ 0x08057A18 - push {r4, r5, r6, r7, lr} - adds r7, r0, #0 - adds r5, r1, #0 - bl sub_0805E5A8 - ldr r6, _08057A94 @ =gUnk_03004030 - ldrb r0, [r6, #9] - strb r0, [r6, #0xa] - ldr r3, _08057A98 @ =gRoomControls - ldrb r0, [r3, #4] - strb r0, [r6, #9] - ldr r1, _08057A9C @ =gScreenTransition - ldrb r0, [r5, #4] - strb r0, [r1, #0xc] - ldrb r0, [r5, #5] - strb r0, [r1, #0xd] - ldrb r0, [r5, #4] - strb r0, [r3, #4] - ldrb r0, [r5, #5] - strb r0, [r3, #5] - str r5, [r6] - ldr r4, _08057AA0 @ =gPlayerEntity - ldrh r1, [r4, #0x2e] - ldrh r0, [r3, #6] - subs r1, r1, r0 - ldrh r2, [r5] - movs r0, #0x3f - ands r0, r2 - lsls r0, r0, #4 - subs r1, r1, r0 - strh r1, [r6, #4] - ldrh r1, [r4, #0x32] - ldrh r0, [r3, #8] - subs r1, r1, r0 - ldrh r2, [r5] - movs r0, #0xfc - lsls r0, r0, #4 - ands r0, r2 - lsrs r0, r0, #2 - subs r1, r1, r0 - strh r1, [r6, #6] - ldrb r1, [r6, #8] - cmp r1, #0 - bne _08057A86 - ldrb r0, [r5, #5] - movs r2, #0x80 - orrs r0, r2 - ldrb r3, [r6, #0xb] - cmp r0, r3 - beq _08057A80 - ldr r0, _08057AA4 @ =gUnk_02034480 - strh r1, [r0] -_08057A80: - ldrb r0, [r5, #5] - orrs r0, r2 - strb r0, [r6, #0xb] -_08057A86: - ldrb r0, [r5, #3] - bl sub_08080930 - adds r0, r7, #0 - bl sub_0805E900 - pop {r4, r5, r6, r7, pc} - .align 2, 0 -_08057A94: .4byte gUnk_03004030 -_08057A98: .4byte gRoomControls -_08057A9C: .4byte gScreenTransition -_08057AA0: .4byte gPlayerEntity -_08057AA4: .4byte gUnk_02034480 - - thumb_func_start sub_08057AA8 -sub_08057AA8: @ 0x08057AA8 - push {lr} - adds r2, r0, #0 - ldrh r0, [r2] - ldr r3, _08057AC0 @ =0x0000FFFF - cmp r0, r3 - beq _08057ACC -_08057AB4: - ldrb r0, [r2, #2] - cmp r0, r1 - bne _08057AC4 - adds r0, r2, #0 - b _08057ACE - .align 2, 0 -_08057AC0: .4byte 0x0000FFFF -_08057AC4: - adds r2, #8 - ldrh r0, [r2] - cmp r0, r3 - bne _08057AB4 -_08057ACC: - movs r0, #0 -_08057ACE: - pop {pc} diff --git a/asm/non_matching/manager4/sub_0805795C.inc b/asm/non_matching/manager4/sub_0805795C.inc new file mode 100644 index 00000000..4f6c20b0 --- /dev/null +++ b/asm/non_matching/manager4/sub_0805795C.inc @@ -0,0 +1,95 @@ +sub_0805795C: @ 0x0805795C + push {r4, r5, r6, r7, lr} + add r7, r0, #0 + add r6, r1, #0 + ldr r0, _080579BC @ =gUnk_03004030 + ldrb r0, [r0, #8] + cmp r0, #0 + beq _080579C8 + ldr r1, _080579C0 @ =gPlayerEntity + ldr r3, _080579C4 @ =gRoomControls + ldrh r2, [r1, #0x2e] + ldrh r0, [r3, #6] + sub r2, r2, r0 + lsl r2, r2, #0x10 + lsr r2, r2, #0x10 + ldrh r0, [r1, #0x32] + ldrh r1, [r3, #8] + sub r0, r0, r1 + lsl r0, r0, #0x10 + lsr r4, r0, #0x10 + ldrh r3, [r6] + mov r1, #0x3f + and r1, r3 + lsl r1, r1, #4 + add r1, #8 + mov r0, #0xfc + lsl r0, r0, #4 + and r0, r3 + lsl r0, r0, #0xe + mov r3, #0xc0 + lsl r3, r3, #0xd + add r0, r0, r3 + lsr r3, r0, #0x10 + sub r2, r2, r1 + add r0, r2, #0 + add r0, #0x18 + cmp r0, #0x30 + bhi _08057A14 + sub r0, r4, r3 + add r0, #8 + cmp r0, #0x10 + bhi _08057A14 + cmp r4, r3 + bhs _08057A00 + add r0, r2, #0 + add r0, #0xc + cmp r0, #0x18 + bls _08057A14 + b _08057A00 + .align 2, 0 +_080579BC: .4byte gUnk_03004030 +_080579C0: .4byte gPlayerEntity +_080579C4: .4byte gRoomControls +_080579C8: + ldr r3, _08057A0C @ =gPlayerEntity + mov r1, #0x2e + ldrsh r0, [r3, r1] + ldr r2, _08057A10 @ =gRoomControls + ldrh r1, [r2, #6] + sub r0, r0, r1 + asr r4, r0, #4 + mov r1, #0x3f + and r4, r1 + mov r0, #0x32 + ldrsh r5, [r3, r0] + ldrh r2, [r2, #8] + sub r0, r5, r2 + asr r0, r0, #4 + and r0, r1 + lsl r0, r0, #6 + orr r4, r0 + ldrh r1, [r6] + cmp r4, r1 + bne _08057A14 + lsr r0, r4, #6 + lsl r0, r0, #4 + add r0, r2, r0 + add r0, #6 + lsl r0, r0, #0x10 + lsr r3, r0, #0x10 + cmp r5, r3 + bge _08057A14 +_08057A00: + add r0, r7, #0 + add r1, r6, #0 + bl sub_08057A18 + mov r0, #1 + b _08057A16 + .align 2, 0 +_08057A0C: .4byte gPlayerEntity +_08057A10: .4byte gRoomControls +_08057A14: + mov r0, #0 +_08057A16: + pop {r4, r5, r6, r7, pc} diff --git a/include/manager.h b/include/manager.h index dfb5f1ff..6faf4baa 100644 --- a/include/manager.h +++ b/include/manager.h @@ -43,4 +43,25 @@ typedef struct { } PACKED field_0x07; } UnkManagerHelperStruct; +typedef struct { + u16 unk_00; + u8 source_roomID; + u8 unk_03; + u8 target_areaID; + u8 target_roomID; + u16 unk_06; +} DiggingCaveEntrance; + +extern struct { + DiggingCaveEntrance* unk_00; + u16 unk_04; + u16 unk_06; + u8 unk_08; + u8 unk_09; + u8 unk_0a; + u8 unk_0b; +} gUnk_03004030; + +extern DiggingCaveEntrance* gUnk_08107DC0[]; + #endif diff --git a/include/structures.h b/include/structures.h index 32ae8d74..a558fd70 100644 --- a/include/structures.h +++ b/include/structures.h @@ -147,4 +147,10 @@ typedef struct { extern struct_02024490 gUnk_02024490; -#endif \ No newline at end of file +typedef struct { + u16 unk_00; + u8 unk_02[0xE]; +} struct_02034480; +extern struct_02034480 gUnk_02034480; + +#endif diff --git a/linker.ld b/linker.ld index 56aabb33..cb7b6844 100644 --- a/linker.ld +++ b/linker.ld @@ -473,7 +473,7 @@ SECTIONS { src/manager/manager2.o(.text); asm/manager2.o(.text); asm/manager3.o(.text); - asm/manager4.o(.text); + src/manager/manager4.o(.text); asm/manager5.o(.text); src/manager/manager6.o(.text); asm/manager7.o(.text); diff --git a/src/manager/manager4.c b/src/manager/manager4.c new file mode 100644 index 00000000..1473aa61 --- /dev/null +++ b/src/manager/manager4.c @@ -0,0 +1,132 @@ +#include "global.h" +#include "player.h" +#include "room.h" +#include "manager.h" +#include "structures.h" + +extern void (*gUnk_08107C70[])(Manager*); + +void sub_08057854(Manager* this) { + gUnk_08107C70[this->unk_0c](this); +} + +extern void sub_080805F8(void); + +extern void SetTile(u32, u32, u32); + +extern DiggingCaveEntrance* sub_08057AA8(DiggingCaveEntrance*, int); + +void sub_0805786C(Manager* this) { + DiggingCaveEntrance* tmp; + u8 roomID; + u8 areaID; + u16 uVar = 0x81<<7; + sub_080805F8(); + if (gUnk_03004030.unk_08 != 0) { + if (gUnk_03004030.unk_00 == 0) { + gUnk_03004030.unk_0a = 0xFF; + roomID = gRoomControls.roomID; + tmp = gUnk_08107DC0[gRoomControls.areaID]; + tmp = sub_08057AA8(tmp, roomID); + if (tmp != 0) { + roomID = tmp->target_roomID; + tmp = gUnk_08107DC0[tmp->target_areaID]; + tmp = sub_08057AA8(tmp, roomID); + if (tmp != 0) { + gUnk_03004030.unk_00 = tmp; + } + } + } + roomID = gRoomControls.roomID; + tmp = gUnk_08107DC0[gRoomControls.areaID]; + uVar = 0x81<<7; + for (tmp = sub_08057AA8(tmp, roomID); tmp != 0; tmp = sub_08057AA8(tmp, roomID)){ + SetTile(uVar, tmp->unk_00 + 0x3F, 1); + SetTile(uVar, tmp->unk_00 + 0x40, 1); + SetTile(uVar, tmp->unk_00 + 0x41, 1); + tmp++; + } + } + this->unk_0c = 1; +} + +extern u32 sub_0805795C(Manager*, DiggingCaveEntrance*); + +void sub_08057920(Manager* this) { + DiggingCaveEntrance* tmp; + u8 roomID; + roomID = gRoomControls.roomID; + for (tmp = gUnk_08107DC0[gRoomControls.areaID];(tmp = sub_08057AA8(tmp, roomID)) != 0 && !sub_0805795C(this, tmp);tmp++); +} + +void sub_08057A18(Manager*, DiggingCaveEntrance*); + +#ifdef NON_MATCHING +u32 sub_0805795C(Manager* this, DiggingCaveEntrance* entr) { + u16 offsetX, offsetY, offsetX2, offsetY2; + u32 tmp; + if (gUnk_03004030.unk_08) { + offsetX = gPlayerEntity.x.HALF.HI - gRoomControls.roomOriginX; + offsetY = gPlayerEntity.y.HALF.HI - gRoomControls.roomOriginY; + offsetX2 = (entr->unk_00 & 0x3F) * 16 + 8; + offsetY2 = ((entr->unk_00 & 0xFC0)>> 6) * 16 + 0x18; + if ((u32)(offsetX - offsetX2) + 0x18 > 0x30) return 0; + if ( + (u32)(offsetY - offsetY2) + 8 > 0x10) return 0; + if ( + ((offsetY < offsetY2))) + if ( + (u32)(offsetX - offsetX2) + 0xC <= 0x18) return 0; + + } else { + //offsetX = ((gPlayerEntity.x.HALF.HI - gRoomControls.roomOriginX) >> 4) & 0x3F; + //offsetY = ((gPlayerEntity.y.HALF.HI - gRoomControls.roomOriginY) >> 4) & 0x3F; + //tmp = offsetX | (offsetY << 6); + tmp = COORD_TO_TILE((&gPlayerEntity)); + if (tmp != entr->unk_00) return 0; + offsetY = gRoomControls.roomOriginY + ((tmp>>6) * 16) + 6; + if (gPlayerEntity.y.HALF.HI >= offsetY) return 0; + } + sub_08057A18(this, entr); + return 1; +} +#else +NAKED +u32 sub_0805795C(Manager* this, DiggingCaveEntrance* entr) { + asm(".include \"asm/non_matching/manager4/sub_0805795C.inc\""); +} +#endif + +extern void sub_0805E5A8(void); +extern void sub_0805E900(Manager*); +extern void sub_08080930(); + +void sub_08057A18(Manager* this, DiggingCaveEntrance* entr) { + u16 tmp; + sub_0805E5A8(); + gUnk_03004030.unk_0a = gUnk_03004030.unk_09; + gUnk_03004030.unk_09 = gRoomControls.areaID; + gScreenTransition.areaID = entr->target_areaID; + gScreenTransition.roomID = entr->target_roomID; + gRoomControls.areaID = entr->target_areaID; + gRoomControls.roomID = entr->target_roomID; + gUnk_03004030.unk_00 = entr; + gUnk_03004030.unk_04 = gPlayerEntity.x.HALF.HI - gRoomControls.roomOriginX - ((entr->unk_00 & 0x3F)*16); + gUnk_03004030.unk_06 = gPlayerEntity.y.HALF.HI - gRoomControls.roomOriginY - ((entr->unk_00 & 0xFC0) >> 2); + tmp = gUnk_03004030.unk_08; + if (!tmp) { + if ((entr->target_roomID | 0x80) != gUnk_03004030.unk_0b) { + gUnk_02034480.unk_00 = gUnk_03004030.unk_08; + } + gUnk_03004030.unk_0b = entr->target_roomID | 0x80; + } + sub_08080930(entr->unk_03); + sub_0805E900(this); +} + +DiggingCaveEntrance* sub_08057AA8(DiggingCaveEntrance* entr, int roomID){ + for (;entr->unk_00 != 0xFFFF;entr++) { + if (entr->source_roomID == roomID) return entr; + } + return 0; +} From 8186e1ed0d21a21d4b69f68b101f66bc6990e3cf Mon Sep 17 00:00:00 2001 From: Ibot02 Date: Mon, 17 Aug 2020 18:34:03 +0200 Subject: [PATCH 141/158] managerE.c: ok --- asm/managerE.s | 60 ------------------------------------------ include/manager.h | 13 ++++++--- linker.ld | 2 +- src/manager/managerA.c | 8 +++--- src/manager/managerE.c | 39 +++++++++++++++++++++++++++ 5 files changed, 53 insertions(+), 69 deletions(-) delete mode 100644 asm/managerE.s create mode 100644 src/manager/managerE.c diff --git a/asm/managerE.s b/asm/managerE.s deleted file mode 100644 index 96fd526f..00000000 --- a/asm/managerE.s +++ /dev/null @@ -1,60 +0,0 @@ - .include "asm/macros.inc" - - .include "constants/constants.inc" - - .syntax unified - - .text - - thumb_func_start sub_08058E60 -sub_08058E60: @ 0x08058E60 - push {r4, lr} - adds r4, r0, #0 - ldrb r0, [r4, #0xc] - cmp r0, #0 - bne _08058E80 - movs r0, #1 - strb r0, [r4, #0xc] - ldrh r0, [r4, #0x3e] - bl CheckFlags - cmp r0, #0 - beq _08058E80 - adds r0, r4, #0 - bl sub_0805E900 - b _08058EC8 -_08058E80: - ldrh r0, [r4, #0x3e] - bl CheckFlags - cmp r0, #0 - beq _08058EC8 - ldrb r0, [r4, #0xb] - cmp r0, #0 - beq _08058E9E - movs r0, #0 - strb r0, [r4, #0xb] - movs r0, #0xff - bl sub_08078A90 - bl sub_08078B48 -_08058E9E: - ldrh r1, [r4, #0x3a] - movs r2, #0x3a - ldrsh r0, [r4, r2] - cmp r0, #0 - bne _08058EC4 - movs r1, #0x38 - ldrsh r0, [r4, r1] - cmp r0, #0 - beq _08058EB4 - bl PlaySFX -_08058EB4: - ldrb r0, [r4, #0xa] - bl GetCurrentRoomProperty - bl LoadRoomEntityList - bl DeleteThisEntity - b _08058EC8 -_08058EC4: - subs r0, r1, #1 - strh r0, [r4, #0x3a] -_08058EC8: - pop {r4, pc} - .align 2, 0 diff --git a/include/manager.h b/include/manager.h index 6faf4baa..278a199a 100644 --- a/include/manager.h +++ b/include/manager.h @@ -3,6 +3,13 @@ #include "global.h" +union SplitSHWord { + s16 SHWORD; + struct { + u8 LO, HI; + } PACKED HALF; +} PACKED; + typedef struct { u8 unk_00[0x0a]; u8 unk_0a; @@ -18,10 +25,8 @@ typedef struct { u8 unk_28[0x0D]; u8 unk_35; u16 unk_36; - u8 unk_38; - u8 unk_39; - u8 unk_3a; - u8 unk_3b; + union SplitSHWord unk_38; + union SplitSHWord unk_3a; u16 unk_3c; u16 unk_3e; } Manager; diff --git a/linker.ld b/linker.ld index cb7b6844..b5d13579 100644 --- a/linker.ld +++ b/linker.ld @@ -483,7 +483,7 @@ SECTIONS { asm/managerB.o(.text); asm/managerC.o(.text); asm/managerD.o(.text); - asm/managerE.o(.text); + src/manager/managerE.o(.text); asm/managerF.o(.text); asm/manager10.o(.text); asm/manager11.o(.text); diff --git a/src/manager/managerA.c b/src/manager/managerA.c index 699c5634..1d94bde1 100644 --- a/src/manager/managerA.c +++ b/src/manager/managerA.c @@ -21,10 +21,10 @@ void sub_08058398(Manager* this) { if (CheckFlags(this->unk_3c) != 0) { DeleteThisEntity(); } - this->unk_24 = this->unk_3a<<3; - this->unk_26 = this->unk_3b<<3; - this->unk_20 = this->unk_24 + (this->unk_38<<4); - this->unk_22 = this->unk_26 + (this->unk_39<<4); + this->unk_24 = this->unk_3a.HALF.LO<<3; + this->unk_26 = this->unk_3a.HALF.HI<<3; + this->unk_20 = this->unk_24 + (this->unk_38.HALF.LO<<4); + this->unk_22 = this->unk_26 + (this->unk_38.HALF.HI<<4); sub_0805E3A0(this, 0x06); if (this->unk_3e == 0) { this->unk_0c = 2; diff --git a/src/manager/managerE.c b/src/manager/managerE.c new file mode 100644 index 00000000..52402c22 --- /dev/null +++ b/src/manager/managerE.c @@ -0,0 +1,39 @@ +#include "global.h" +#include "entity.h" +#include "manager.h" +#include "flags.h" +#include "room.h" + +extern Entity* GetCurrentRoomProperty(u8); +extern void LoadRoomEntityList(Entity*); +extern void DeleteThisEntity(void); +extern void sub_0805E900(Manager*); +extern void sub_08078A90(u32); +extern void sub_08078B48(void); +extern void PlaySFX(u32); + +void sub_08058E60(Manager* this) { + if (!this->unk_0c) { + this->unk_0c = 1; + if (CheckFlags(this->unk_3e)) { + sub_0805E900(this); + return; + } + } + if (!CheckFlags(this->unk_3e)) + return; + if (this->unk_0b != 0) { + this->unk_0b = 0; + sub_08078A90(0xff); + sub_08078B48(); + } + if (this->unk_3a.SHWORD == 0){ + if (this->unk_38.SHWORD != 0) { + PlaySFX(this->unk_38.SHWORD); + } + LoadRoomEntityList(GetCurrentRoomProperty(this->unk_0a)); + DeleteThisEntity(); + } else { + this->unk_3a.SHWORD -= 1; + } +} From debf6b20957027e122aed600937a69b5e8fd2b76 Mon Sep 17 00:00:00 2001 From: Behemoth Date: Tue, 18 Aug 2020 01:43:09 +0200 Subject: [PATCH 142/158] Decompile Acro-Bandits --- asm/acroBandits.s | 1482 ----------------- asm/non_matching/acroBandits/sub_08031C58.inc | 136 ++ asm/non_matching/acroBandits/sub_08031E04.inc | 41 + asm/non_matching/acroBandits/sub_080322E8.inc | 48 + include/entity.h | 8 +- include/functions.h | 2 +- linker.ld | 2 +- src/enemy/acroBandits.c | 572 +++++++ src/enemy/bladeTrap.c | 2 +- src/enemy/keaton.c | 12 +- src/enemy/keese.c | 8 +- src/enemy/lakitu.c | 8 +- src/enemy/lakituCloud.c | 8 +- src/enemy/leever.c | 10 +- src/npc/zelda.c | 2 +- src/object/fan.c | 8 +- src/object/lightableSwitch.c | 4 +- src/object/mask.c | 4 +- src/object/metalDoor.c | 20 +- src/object/railtrack.c | 10 +- 20 files changed, 851 insertions(+), 1536 deletions(-) delete mode 100644 asm/acroBandits.s create mode 100644 asm/non_matching/acroBandits/sub_08031C58.inc create mode 100644 asm/non_matching/acroBandits/sub_08031E04.inc create mode 100644 asm/non_matching/acroBandits/sub_080322E8.inc create mode 100644 src/enemy/acroBandits.c diff --git a/asm/acroBandits.s b/asm/acroBandits.s deleted file mode 100644 index 1473c5cb..00000000 --- a/asm/acroBandits.s +++ /dev/null @@ -1,1482 +0,0 @@ - .include "asm/macros.inc" - - .include "constants/constants.inc" - - .syntax unified - - .text - - - thumb_func_start AcroBandit -AcroBandit: @ 0x08031864 - push {r4, r5, lr} - adds r5, r0, #0 - bl sub_080012DC - adds r4, r0, #0 - cmp r4, #0 - beq _0803189C - adds r0, r5, #0 - adds r0, #0x3a - ldrb r1, [r0] - movs r0, #1 - ands r0, r1 - cmp r0, #0 - bne _08031886 - adds r0, r5, #0 - bl sub_08032338 -_08031886: - ldr r0, _08031898 @ =gUnk_080012C8 - lsls r1, r4, #2 - adds r1, r1, r0 - ldr r1, [r1] - adds r0, r5, #0 - bl _call_via_r1 - b _080318BE - .align 2, 0 -_08031898: .4byte gUnk_080012C8 -_0803189C: - ldr r4, _080318C0 @ =gUnk_080CE56C - adds r0, r5, #0 - bl GetNextFunction - lsls r0, r0, #2 - adds r0, r0, r4 - ldr r1, [r0] - adds r0, r5, #0 - bl _call_via_r1 - movs r3, #0x10 - rsbs r3, r3, #0 - adds r0, r5, #0 - movs r1, #0 - movs r2, #1 - bl SetChildOffset -_080318BE: - pop {r4, r5, pc} - .align 2, 0 -_080318C0: .4byte gUnk_080CE56C - - thumb_func_start sub_080318C4 -sub_080318C4: @ 0x080318C4 - push {lr} - ldr r2, _080318D8 @ =gUnk_080CE584 - ldrb r1, [r0, #0xa] - lsls r1, r1, #2 - adds r1, r1, r2 - ldr r1, [r1] - bl _call_via_r1 - pop {pc} - .align 2, 0 -_080318D8: .4byte gUnk_080CE584 - - thumb_func_start sub_080318DC -sub_080318DC: @ 0x080318DC - push {r4, r5, r6, r7, lr} - mov r7, sl - mov r6, sb - mov r5, r8 - push {r5, r6, r7} - sub sp, #4 - adds r4, r0, #0 - adds r0, #0x41 - ldrb r0, [r0] - adds r0, #0x80 - lsls r0, r0, #0x18 - lsrs r0, r0, #0x18 - cmp r0, #1 - bhi _080318FA - b _08031A36 -_080318FA: - ldrb r0, [r4, #0xa] - adds r5, r4, #0 - adds r5, #0x42 - cmp r0, #1 - bne _080319DE - ldrb r0, [r4, #0xc] - adds r1, r4, #0 - adds r1, #0x45 - str r1, [sp] - cmp r0, #6 - bhi _080319AC - ldrb r0, [r5] - cmp r0, #0 - beq _080319AC - ldr r3, [r4, #0x54] - movs r0, #0x29 - adds r0, r0, r4 - mov sb, r0 - movs r1, #0x3e - adds r1, r1, r4 - mov sl, r1 - cmp r3, #0 - beq _08031960 - ldr r0, [r4, #0x50] - str r0, [r3, #0x50] - movs r0, #5 - mov ip, r0 - movs r1, #0x39 - rsbs r1, r1, #0 - mov r8, r1 - movs r7, #8 - movs r6, #0xf4 -_0803193A: - mov r0, ip - strb r0, [r3, #0xc] - adds r2, r3, #0 - adds r2, #0x29 - ldrb r0, [r2] - mov r1, r8 - ands r1, r0 - orrs r1, r7 - strb r1, [r2] - adds r1, r3, #0 - adds r1, #0x3d - movs r0, #0 - ldrsb r0, [r1, r0] - cmp r0, #0 - bne _0803195A - strb r6, [r1] -_0803195A: - ldr r3, [r3, #0x54] - cmp r3, #0 - bne _0803193A -_08031960: - ldr r1, [r4, #0x50] - cmp r1, #0 - beq _0803196C - ldr r0, [r4, #0x54] - str r0, [r1, #0x54] - b _08031974 -_0803196C: - ldr r0, [r4, #0x54] - cmp r0, #0 - beq _08031974 - str r4, [r4, #0x50] -_08031974: - movs r0, #9 - strb r0, [r4, #0xc] - mov r0, sb - ldrb r1, [r0] - movs r0, #0x39 - rsbs r0, r0, #0 - ands r0, r1 - movs r1, #8 - orrs r0, r1 - mov r1, sb - strb r0, [r1] - mov r1, sl - ldrb r0, [r1] - cmp r0, #0xf - bhi _0803199C - ldrb r1, [r4, #0x18] - movs r0, #0x41 - rsbs r0, r0, #0 - ands r0, r1 - b _080319A2 -_0803199C: - ldrb r0, [r4, #0x18] - movs r1, #0x40 - orrs r0, r1 -_080319A2: - strb r0, [r4, #0x18] - adds r0, r4, #0 - movs r1, #0xe - bl InitializeAnimation -_080319AC: - ldr r1, [sp] - ldrb r0, [r1] - cmp r0, #0 - bne _080319DE - bl Random - adds r2, r4, #0 - adds r2, #0x3e - movs r1, #7 - ands r0, r1 - ldrb r1, [r2] - adds r0, r0, r1 - subs r0, #4 - movs r1, #0x1f - ands r0, r1 - strb r0, [r2] - ldrb r1, [r4, #0xb] - lsls r0, r1, #1 - adds r0, r0, r1 - ldrb r1, [r5] - adds r0, r0, r1 - strb r0, [r5] - adds r0, r4, #0 - bl sub_08032338 -_080319DE: - ldrb r0, [r5] - cmp r0, #0 - beq _08031A36 - adds r0, r4, #0 - adds r0, #0x5a - ldrb r1, [r0] - movs r0, #0x10 - ands r0, r1 - cmp r0, #0 - beq _08031A36 - ldrb r0, [r4, #0xa] - cmp r0, #0 - bne _080319FC - movs r0, #8 - b _080319FE -_080319FC: - movs r0, #9 -_080319FE: - strb r0, [r4, #0xc] - adds r0, r4, #0 - adds r0, #0x3e - ldrb r0, [r0] - cmp r0, #0xf - bhi _08031A14 - ldrb r1, [r4, #0x18] - movs r0, #0x41 - rsbs r0, r0, #0 - ands r0, r1 - b _08031A1A -_08031A14: - ldrb r0, [r4, #0x18] - movs r1, #0x40 - orrs r0, r1 -_08031A1A: - strb r0, [r4, #0x18] - adds r2, r4, #0 - adds r2, #0x29 - ldrb r0, [r2] - movs r1, #0x39 - rsbs r1, r1, #0 - ands r1, r0 - movs r0, #8 - orrs r1, r0 - strb r1, [r2] - adds r0, r4, #0 - movs r1, #0xe - bl InitializeAnimation -_08031A36: - adds r0, r4, #0 - adds r0, #0x43 - ldrb r0, [r0] - cmp r0, #0 - beq _08031A48 - adds r0, r4, #0 - movs r1, #0x1c - bl sub_0804A9FC -_08031A48: - ldr r1, _08031A5C @ =gUnk_080CE56C - adds r0, r4, #0 - bl sub_0804AA30 - add sp, #4 - pop {r3, r4, r5} - mov r8, r3 - mov sb, r4 - mov sl, r5 - pop {r4, r5, r6, r7, pc} - .align 2, 0 -_08031A5C: .4byte gUnk_080CE56C - - thumb_func_start sub_08031A60 -sub_08031A60: @ 0x08031A60 - push {r4, lr} - adds r4, r0, #0 - adds r0, #0x3d - ldrb r0, [r0] - lsls r0, r0, #0x18 - asrs r0, r0, #0x18 - cmp r0, #0 - ble _08031A7A - movs r1, #0xc0 - lsls r1, r1, #5 - adds r0, r4, #0 - bl sub_08003FC4 -_08031A7A: - adds r0, r4, #0 - bl sub_08001324 - - thumb_func_start nullsub_153 -nullsub_153: @ 0x08031A80 - pop {r4, pc} - .align 2, 0 - - thumb_func_start nullsub_154 -nullsub_154: @ 0x08031A84 - bx lr - .align 2, 0 - - thumb_func_start sub_08031A88 -sub_08031A88: @ 0x08031A88 - push {lr} - ldr r2, _08031A9C @ =gUnk_080CE58C - ldrb r1, [r0, #0xc] - lsls r1, r1, #2 - adds r1, r1, r2 - ldr r1, [r1] - bl _call_via_r1 - pop {pc} - .align 2, 0 -_08031A9C: .4byte gUnk_080CE58C - - thumb_func_start sub_08031AA0 -sub_08031AA0: @ 0x08031AA0 - push {r4, lr} - adds r4, r0, #0 - bl sub_0804A720 - movs r0, #1 - strb r0, [r4, #0xc] - ldrh r1, [r4, #0x2e] - adds r0, r4, #0 - adds r0, #0x74 - strh r1, [r0] - ldrh r0, [r4, #0x32] - adds r1, r4, #0 - adds r1, #0x76 - strh r0, [r1] - bl Random - adds r4, #0x79 - strb r0, [r4] - pop {r4, pc} - .align 2, 0 - - thumb_func_start sub_08031AC8 -sub_08031AC8: @ 0x08031AC8 - push {r4, r5, r6, r7, lr} - adds r6, r0, #0 - ldrb r0, [r6, #0xe] - cmp r0, #0 - beq _08031AD8 - subs r0, #1 - strb r0, [r6, #0xe] - b _08031B44 -_08031AD8: - adds r0, r6, #0 - movs r1, #1 - bl sub_08049FDC - cmp r0, #0 - beq _08031B44 - bl Random - adds r5, r0, #0 - adds r0, r6, #0 - adds r0, #0x74 - ldrh r4, [r0] - adds r0, r5, #0 - movs r1, #5 - bl __modsi3 - lsls r0, r0, #4 - adds r4, r4, r0 - adds r7, r4, #0 - subs r7, #0x20 - adds r0, r6, #0 - adds r0, #0x76 - ldrh r4, [r0] - lsrs r5, r5, #4 - adds r0, r5, #0 - movs r1, #5 - bl __modsi3 - lsls r0, r0, #4 - adds r4, r4, r0 - subs r4, #0x20 - adds r0, r6, #0 - adds r0, #0x38 - ldrb r2, [r0] - adds r0, r7, #0 - adds r1, r4, #0 - bl sub_080002D4 - cmp r0, #0 - bne _08031B44 - movs r0, #2 - strb r0, [r6, #0xc] - ldrb r1, [r6, #0x18] - subs r0, #6 - ands r0, r1 - movs r1, #1 - orrs r0, r1 - strb r0, [r6, #0x18] - strh r7, [r6, #0x2e] - strh r4, [r6, #0x32] - adds r0, r6, #0 - movs r1, #0 - bl InitializeAnimation -_08031B44: - pop {r4, r5, r6, r7, pc} - .align 2, 0 - - thumb_func_start sub_08031B48 -sub_08031B48: @ 0x08031B48 - push {r4, lr} - adds r4, r0, #0 - bl GetNextFrame - adds r2, r4, #0 - adds r2, #0x5a - ldrb r1, [r2] - movs r0, #1 - ands r0, r1 - cmp r0, #0 - beq _08031B6C - movs r0, #0 - strb r0, [r2] - ldrb r1, [r4, #0x10] - movs r0, #0x80 - orrs r0, r1 - strb r0, [r4, #0x10] - b _08031B90 -_08031B6C: - movs r0, #0x80 - ands r0, r1 - cmp r0, #0 - beq _08031B90 - movs r0, #3 - strb r0, [r4, #0xc] - bl Random - ldr r2, _08031B94 @ =gUnk_080CE5B0 - movs r1, #7 - ands r1, r0 - adds r1, r1, r2 - ldrb r0, [r1] - strb r0, [r4, #0xe] - adds r0, r4, #0 - movs r1, #1 - bl InitializeAnimation -_08031B90: - pop {r4, pc} - .align 2, 0 -_08031B94: .4byte gUnk_080CE5B0 - - thumb_func_start sub_08031B98 -sub_08031B98: @ 0x08031B98 - push {r4, lr} - adds r4, r0, #0 - bl sub_08031E04 - cmp r0, #0 - beq _08031BDA - movs r0, #5 - strb r0, [r4, #0xc] - ldr r0, _08031BC4 @ =gUnk_020000B0 - ldr r0, [r0] - movs r2, #0x2e - ldrsh r1, [r4, r2] - movs r2, #0x2e - ldrsh r0, [r0, r2] - cmp r1, r0 - ble _08031BC8 - ldrb r1, [r4, #0x18] - movs r0, #0x41 - rsbs r0, r0, #0 - ands r0, r1 - b _08031BCE - .align 2, 0 -_08031BC4: .4byte gUnk_020000B0 -_08031BC8: - ldrb r0, [r4, #0x18] - movs r1, #0x40 - orrs r0, r1 -_08031BCE: - strb r0, [r4, #0x18] - adds r0, r4, #0 - movs r1, #3 - bl InitializeAnimation - b _08031C1A -_08031BDA: - adds r2, r4, #0 - adds r2, #0x5a - ldrb r1, [r2] - movs r0, #1 - ands r0, r1 - cmp r0, #0 - beq _08031BFA - ldrb r0, [r4, #0xe] - cmp r0, #0 - beq _08031BFA - movs r0, #0xfe - ands r0, r1 - strb r0, [r2] - ldrb r0, [r4, #0xe] - subs r0, #1 - strb r0, [r4, #0xe] -_08031BFA: - adds r0, r4, #0 - bl GetNextFrame - ldrb r0, [r4, #0xe] - cmp r0, #0 - bne _08031C1A - movs r0, #4 - strb r0, [r4, #0xc] - ldrb r1, [r4, #0x10] - movs r0, #0x7f - ands r0, r1 - strb r0, [r4, #0x10] - adds r0, r4, #0 - movs r1, #2 - bl InitializeAnimation -_08031C1A: - pop {r4, pc} - - thumb_func_start sub_08031C1C -sub_08031C1C: @ 0x08031C1C - push {r4, lr} - adds r4, r0, #0 - bl GetNextFrame - adds r0, r4, #0 - adds r0, #0x5a - ldrb r1, [r0] - movs r0, #0x80 - ands r0, r1 - cmp r0, #0 - beq _08031C50 - movs r0, #1 - strb r0, [r4, #0xc] - bl Random - ldr r2, _08031C54 @ =gUnk_080CE5B8 - movs r1, #7 - ands r1, r0 - adds r1, r1, r2 - ldrb r0, [r1] - strb r0, [r4, #0xe] - ldrb r1, [r4, #0x18] - movs r0, #4 - rsbs r0, r0, #0 - ands r0, r1 - strb r0, [r4, #0x18] -_08031C50: - pop {r4, pc} - .align 2, 0 -_08031C54: .4byte gUnk_080CE5B8 - - thumb_func_start sub_08031C58 -sub_08031C58: @ 0x08031C58 - push {r4, r5, r6, r7, lr} - mov r7, sb - mov r6, r8 - push {r6, r7} - adds r7, r0, #0 - bl GetNextFrame - adds r3, r7, #0 - adds r3, #0x5a - ldrb r1, [r3] - movs r0, #0x80 - ands r0, r1 - lsls r0, r0, #0x18 - lsrs r2, r0, #0x18 - cmp r2, #0 - beq _08031D54 - ldr r0, _08031D50 @ =gUnk_03003DBC - ldrb r0, [r0] - cmp r0, #0x42 - bhi _08031D66 - bl Random - adds r6, r0, #0 - movs r0, #3 - mov sb, r0 - ands r6, r0 - movs r0, #0x2e - movs r1, #1 - bl CreateEnemy - adds r4, r0, #0 - movs r0, #0 - mov r8, r0 - mov r0, r8 - strb r0, [r4, #0xb] - mov r0, r8 - str r0, [r4, #0x50] - adds r0, r4, #0 - adds r0, #0x74 - strb r6, [r0] - adds r0, r7, #0 - adds r1, r4, #0 - bl sub_08031E48 - movs r0, #0x2e - movs r1, #1 - bl CreateEnemy - adds r5, r0, #0 - str r5, [r4, #0x54] - movs r0, #1 - strb r0, [r5, #0xb] - str r4, [r5, #0x50] - adds r0, r5, #0 - adds r0, #0x74 - strb r6, [r0] - adds r0, r7, #0 - adds r1, r5, #0 - bl sub_08031E48 - movs r0, #0x2e - movs r1, #1 - bl CreateEnemy - adds r4, r0, #0 - str r4, [r5, #0x54] - movs r0, #2 - strb r0, [r4, #0xb] - str r5, [r4, #0x50] - adds r0, r4, #0 - adds r0, #0x74 - strb r6, [r0] - adds r0, r7, #0 - adds r1, r4, #0 - bl sub_08031E48 - movs r0, #0x2e - movs r1, #1 - bl CreateEnemy - adds r5, r0, #0 - str r5, [r4, #0x54] - mov r0, sb - strb r0, [r5, #0xb] - str r4, [r5, #0x50] - adds r0, r5, #0 - adds r0, #0x74 - strb r6, [r0] - adds r0, r7, #0 - adds r1, r5, #0 - bl sub_08031E48 - movs r0, #0x2e - movs r1, #1 - bl CreateEnemy - adds r1, r0, #0 - str r1, [r5, #0x54] - movs r0, #4 - strb r0, [r1, #0xb] - str r5, [r1, #0x50] - mov r0, r8 - str r0, [r1, #0x54] - adds r0, r1, #0 - adds r0, #0x74 - strb r6, [r0] - adds r0, r7, #0 - bl sub_08031E48 - movs r0, #6 - strb r0, [r7, #0xc] - movs r0, #0x14 - strb r0, [r7, #0xe] - adds r2, r7, #0 - adds r2, #0x29 - ldrb r0, [r2] - movs r1, #7 - orrs r0, r1 - strb r0, [r2] - adds r0, r7, #0 - movs r1, #7 - bl InitializeAnimation - b _08031D66 - .align 2, 0 -_08031D50: .4byte gUnk_03003DBC -_08031D54: - movs r0, #1 - ands r0, r1 - cmp r0, #0 - beq _08031D66 - strb r2, [r3] - ldrb r1, [r7, #0x10] - movs r0, #0x7f - ands r0, r1 - strb r0, [r7, #0x10] -_08031D66: - pop {r3, r4} - mov r8, r3 - mov sb, r4 - pop {r4, r5, r6, r7, pc} - .align 2, 0 - - thumb_func_start sub_08031D70 -sub_08031D70: @ 0x08031D70 - push {r4, lr} - adds r4, r0, #0 - bl GetNextFrame - ldrb r0, [r4, #0xe] - subs r0, #1 - strb r0, [r4, #0xe] - lsls r0, r0, #0x18 - cmp r0, #0 - bne _08031D9C - movs r0, #7 - strb r0, [r4, #0xc] - ldrb r1, [r4, #0x10] - movs r0, #0x7f - ands r0, r1 - strb r0, [r4, #0x10] - movs r0, #5 - strb r0, [r4, #0xe] - ldrb r1, [r4, #0x18] - subs r0, #9 - ands r0, r1 - strb r0, [r4, #0x18] -_08031D9C: - pop {r4, pc} - .align 2, 0 - - thumb_func_start sub_08031DA0 -sub_08031DA0: @ 0x08031DA0 - push {lr} - adds r1, r0, #0 - ldrb r2, [r1, #0xe] - movs r0, #0xf - ands r0, r2 - cmp r0, #0 - bne _08031DC2 - cmp r2, #0x50 - bne _08031DBA - adds r0, r1, #0 - bl DeleteEntity - b _08031DC2 -_08031DBA: - movs r0, #1 - strb r0, [r1, #0xc] - movs r0, #0xb4 - strb r0, [r1, #0xe] -_08031DC2: - pop {pc} - - thumb_func_start sub_08031DC4 -sub_08031DC4: @ 0x08031DC4 - push {r4, r5, lr} - adds r4, r0, #0 - adds r5, r4, #0 - adds r5, #0x5a - ldrb r1, [r5] - movs r0, #0x80 - ands r0, r1 - cmp r0, #0 - beq _08031DE8 - movs r0, #1 - strb r0, [r4, #0xc] - movs r0, #0xb4 - strb r0, [r4, #0xe] - ldrb r1, [r4, #0x18] - subs r0, #0xb8 - ands r0, r1 - strb r0, [r4, #0x18] - b _08031E00 -_08031DE8: - adds r0, r4, #0 - bl GetNextFrame - ldrb r1, [r5] - movs r0, #0xf - ands r0, r1 - cmp r0, #2 - bne _08031E00 - ldrb r1, [r4, #0x10] - movs r0, #0x7f - ands r0, r1 - strb r0, [r4, #0x10] -_08031E00: - pop {r4, r5, pc} - .align 2, 0 - - thumb_func_start sub_08031E04 -sub_08031E04: @ 0x08031E04 - push {r4, lr} - adds r4, r0, #0 - movs r0, #1 - bl sub_08049DF4 - adds r2, r0, #0 - cmp r2, #0 - beq _08031E44 - adds r0, r4, #0 - adds r0, #0x5a - ldrb r0, [r0] - movs r3, #6 - ands r3, r0 - ldr r0, _08031E40 @ =gUnk_080CE5C0 - adds r3, r3, r0 - movs r0, #0x2e - ldrsh r1, [r2, r0] - movs r0, #0 - ldrsb r0, [r3, r0] - adds r1, r1, r0 - movs r0, #0x32 - ldrsh r2, [r2, r0] - movs r0, #1 - ldrsb r0, [r3, r0] - adds r2, r2, r0 - adds r0, r4, #0 - movs r3, #0x50 - bl sub_0806FCB8 - b _08031E46 - .align 2, 0 -_08031E40: .4byte gUnk_080CE5C0 -_08031E44: - movs r0, #0 -_08031E46: - pop {r4, pc} - - thumb_func_start sub_08031E48 -sub_08031E48: @ 0x08031E48 - push {r4, r5, lr} - adds r5, r0, #0 - adds r4, r1, #0 - bl CopyPosition - adds r0, r5, #0 - adds r0, #0x6c - ldrb r1, [r0] - adds r0, r4, #0 - adds r0, #0x6c - strb r1, [r0] - adds r0, r5, #0 - adds r0, #0x70 - ldrh r1, [r0] - adds r0, r4, #0 - adds r0, #0x70 - strh r1, [r0] - adds r0, r5, #0 - adds r0, #0x72 - ldrh r0, [r0] - adds r1, r4, #0 - adds r1, #0x72 - strh r0, [r1] - adds r0, r5, #0 - adds r0, #0x6e - ldrb r0, [r0] - subs r1, #4 - strb r0, [r1] - adds r0, r5, #0 - adds r0, #0x6f - ldrb r0, [r0] - adds r1, #1 - strb r0, [r1] - str r5, [r4, #0x7c] - pop {r4, r5, pc} - .align 2, 0 - - thumb_func_start sub_08031E90 -sub_08031E90: @ 0x08031E90 - push {lr} - ldr r2, _08031EA4 @ =gUnk_080CE5C8 - ldrb r1, [r0, #0xc] - lsls r1, r1, #2 - adds r1, r1, r2 - ldr r1, [r1] - bl _call_via_r1 - pop {pc} - .align 2, 0 -_08031EA4: .4byte gUnk_080CE5C8 - - thumb_func_start sub_08031EA8 -sub_08031EA8: @ 0x08031EA8 - push {r4, lr} - adds r4, r0, #0 - movs r0, #1 - strb r0, [r4, #0xc] - adds r2, r4, #0 - adds r2, #0x29 - ldrb r1, [r2] - subs r0, #0x3a - ands r0, r1 - movs r1, #8 - orrs r0, r1 - strb r0, [r2] - movs r0, #0x80 - lsls r0, r0, #0xb - str r0, [r4, #0x20] - ldrb r0, [r4, #0xb] - movs r1, #4 - subs r1, r1, r0 - lsls r0, r1, #3 - subs r0, r0, r1 - lsls r0, r0, #1 - strh r0, [r4, #0x36] - bl Random - adds r1, r4, #0 - adds r1, #0x79 - strb r0, [r1] - adds r0, r4, #0 - movs r1, #4 - bl InitializeAnimation - pop {r4, pc} - - thumb_func_start sub_08031EE8 -sub_08031EE8: @ 0x08031EE8 - push {r4, lr} - adds r4, r0, #0 - ldr r0, [r4, #0x34] - ldr r1, [r4, #0x20] - subs r0, r0, r1 - str r0, [r4, #0x34] - ldr r0, _08031F4C @ =0xFFFFE800 - adds r1, r1, r0 - str r1, [r4, #0x20] - movs r1, #0x36 - ldrsh r0, [r4, r1] - cmp r0, #0 - bgt _08031F1E - ldrb r0, [r4, #0x18] - lsls r0, r0, #0x1e - cmp r0, #0 - bne _08031F10 - ldr r0, _08031F50 @ =0x0000012B - bl sub_08004488 -_08031F10: - ldrb r0, [r4, #0x18] - movs r1, #4 - rsbs r1, r1, #0 - ands r1, r0 - movs r0, #1 - orrs r1, r0 - strb r1, [r4, #0x18] -_08031F1E: - ldrb r0, [r4, #0x18] - lsls r0, r0, #0x1e - lsrs r0, r0, #0x1e - cmp r0, #1 - bne _08031F2E - adds r0, r4, #0 - bl GetNextFrame -_08031F2E: - ldr r0, [r4, #0x20] - cmp r0, #0 - bgt _08031F48 - movs r0, #2 - strb r0, [r4, #0xc] - ldrb r1, [r4, #0x10] - movs r0, #0x80 - orrs r0, r1 - strb r0, [r4, #0x10] - adds r0, r4, #0 - movs r1, #5 - bl InitializeAnimation -_08031F48: - pop {r4, pc} - .align 2, 0 -_08031F4C: .4byte 0xFFFFE800 -_08031F50: .4byte 0x0000012B - - thumb_func_start sub_08031F54 -sub_08031F54: @ 0x08031F54 - push {r4, lr} - adds r4, r0, #0 - ldr r1, _08031FAC @ =gUnk_080CE5F0 - ldrb r0, [r4, #0xb] - lsls r0, r0, #1 - adds r0, r0, r1 - ldrh r1, [r0] - adds r0, r4, #0 - bl sub_08003FC4 - ldrb r1, [r4, #0xb] - lsls r0, r1, #3 - subs r0, r0, r1 - lsls r0, r0, #1 - rsbs r0, r0, #0 - movs r2, #0x36 - ldrsh r1, [r4, r2] - cmp r0, r1 - bgt _08031FAA - movs r0, #3 - strb r0, [r4, #0xc] - movs r0, #0x14 - strb r0, [r4, #0xe] - ldrb r1, [r4, #0xb] - lsls r0, r1, #3 - subs r0, r0, r1 - lsls r0, r0, #1 - rsbs r0, r0, #0 - strh r0, [r4, #0x36] - ldr r0, [r4, #0x50] - cmp r0, #0 - beq _08031FA2 - adds r2, r4, #0 - adds r2, #0x29 - ldrb r1, [r2] - movs r0, #0x39 - rsbs r0, r0, #0 - ands r0, r1 - strb r0, [r2] -_08031FA2: - adds r0, r4, #0 - movs r1, #6 - bl InitializeAnimation -_08031FAA: - pop {r4, pc} - .align 2, 0 -_08031FAC: .4byte gUnk_080CE5F0 - - thumb_func_start sub_08031FB0 -sub_08031FB0: @ 0x08031FB0 - push {r4, r5, lr} - adds r5, r0, #0 - bl GetNextFrame - adds r0, r5, #0 - adds r0, #0x5a - ldrb r1, [r0] - movs r0, #0x80 - ands r0, r1 - cmp r0, #0 - beq _08032006 - ldr r0, [r5, #0x50] - cmp r0, #0 - bne _08031FD8 - ldrb r0, [r5, #0xe] - subs r0, #1 - strb r0, [r5, #0xe] - lsls r0, r0, #0x18 - cmp r0, #0 - bne _08032006 -_08031FD8: - movs r4, #0 - movs r0, #4 - strb r0, [r5, #0xc] - adds r0, r5, #0 - movs r1, #1 - bl sub_08049F84 - strb r0, [r5, #0x15] - adds r0, r5, #0 - adds r0, #0x76 - strb r4, [r0] - ldr r0, [r5, #0x54] - cmp r0, #0 - beq _08031FFE - adds r0, r5, #0 - movs r1, #9 - bl InitializeAnimation - b _08032006 -_08031FFE: - adds r0, r5, #0 - movs r1, #8 - bl InitializeAnimation -_08032006: - pop {r4, r5, pc} - - thumb_func_start sub_08032008 -sub_08032008: @ 0x08032008 - push {r4, r5, r6, r7, lr} - adds r4, r0, #0 - bl sub_080322A4 - adds r7, r0, #0 - cmp r7, #0 - beq _08032018 - b _08032144 -_08032018: - ldr r5, [r4, #0x50] - cmp r5, #0 - bne _080320D4 - adds r0, r4, #0 - movs r1, #1 - bl sub_08049FDC - cmp r0, #0 - beq _08032060 - adds r1, r4, #0 - adds r1, #0x79 - ldrb r0, [r1] - adds r0, #1 - strb r0, [r1] - movs r1, #0xff - ands r0, r1 - movs r1, #7 - ands r0, r1 - cmp r0, #0 - bne _08032052 - ldr r0, _0803205C @ =gUnk_020000B0 - ldr r1, [r0] - adds r0, r4, #0 - bl GetFacingDirection - adds r1, r0, #0 - adds r0, r4, #0 - bl sub_08004596 -_08032052: - adds r0, r4, #0 - adds r0, #0x76 - strb r7, [r0] - b _080320AC - .align 2, 0 -_0803205C: .4byte gUnk_020000B0 -_08032060: - adds r1, r4, #0 - adds r1, #0x76 - ldrb r0, [r1] - cmp r0, #0 - beq _0803207C - subs r0, #1 - strb r0, [r1] - adds r0, r4, #0 - adds r0, #0x7a - ldrb r1, [r0] - adds r0, r4, #0 - bl sub_08004596 - b _080320AC -_0803207C: - movs r0, #0x10 - strb r0, [r1] - adds r0, r4, #0 - bl sub_08049FA0 - cmp r0, #0 - bne _0803209E - bl Random - movs r1, #1 - ands r1, r0 - cmp r1, #0 - beq _0803209E - adds r0, r4, #0 - bl sub_08049EE4 - b _080320A6 -_0803209E: - bl Random - movs r1, #0x1e - ands r0, r1 -_080320A6: - adds r1, r4, #0 - adds r1, #0x7a - strb r0, [r1] -_080320AC: - ldrb r1, [r4, #0x15] - movs r0, #0xf - ands r0, r1 - cmp r0, #0 - beq _080320CC - lsrs r1, r1, #4 - movs r0, #1 - eors r1, r0 - ands r1, r0 - lsls r1, r1, #6 - ldrb r2, [r4, #0x18] - movs r0, #0x41 - rsbs r0, r0, #0 - ands r0, r2 - orrs r0, r1 - strb r0, [r4, #0x18] -_080320CC: - adds r0, r4, #0 - bl sub_080AEF88 - b _0803213E -_080320D4: - adds r6, r4, #0 - adds r6, #0x77 - ldrb r0, [r6] - cmp r0, #0 - bne _0803210E - movs r0, #0x2e - ldrsh r1, [r5, r0] - movs r0, #0x32 - ldrsh r2, [r5, r0] - adds r0, r4, #0 - movs r3, #1 - bl sub_0806FCB8 - cmp r0, #0 - bne _0803213E - movs r0, #1 - strb r0, [r6] - adds r0, r4, #0 - adds r1, r5, #0 - bl GetFacingDirection - strb r0, [r4, #0x15] - adds r0, r4, #0 - bl sub_080322E8 - adds r0, r4, #0 - bl sub_0806F69C - b _0803213E -_0803210E: - adds r0, r4, #0 - adds r1, r5, #0 - bl GetFacingDirection - strb r0, [r4, #0x15] - adds r0, r4, #0 - bl sub_080322E8 - adds r0, r4, #0 - bl sub_0806F69C - movs r2, #0x2e - ldrsh r1, [r4, r2] - movs r2, #0x2e - ldrsh r0, [r5, r2] - cmp r1, r0 - bne _0803213E - movs r0, #0x32 - ldrsh r1, [r4, r0] - movs r2, #0x32 - ldrsh r0, [r5, r2] - cmp r1, r0 - bne _0803213E - strb r7, [r6] -_0803213E: - adds r0, r4, #0 - bl GetNextFrame -_08032144: - pop {r4, r5, r6, r7, pc} - .align 2, 0 - - thumb_func_start sub_08032148 -sub_08032148: @ 0x08032148 - push {r4, lr} - adds r4, r0, #0 - movs r1, #0x80 - lsls r1, r1, #6 - bl sub_08003FC4 - cmp r0, #0 - bne _0803215E - adds r0, r4, #0 - bl sub_08032290 -_0803215E: - pop {r4, pc} - - thumb_func_start sub_08032160 -sub_08032160: @ 0x08032160 - push {r4, lr} - adds r4, r0, #0 - ldrb r0, [r4, #0xe] - cmp r0, #0 - bne _080321C2 - movs r0, #7 - strb r0, [r4, #0xc] - ldr r2, _08032190 @ =gUnk_080CE5FA - adds r0, r4, #0 - adds r0, #0x74 - ldrb r1, [r0] - lsls r0, r1, #2 - adds r0, r0, r1 - ldrb r1, [r4, #0xb] - adds r0, r0, r1 - adds r0, r0, r2 - ldrb r0, [r0] - strb r0, [r4, #0x15] - cmp r0, #0xf - bls _08032194 - ldrb r0, [r4, #0x18] - movs r1, #0x40 - orrs r0, r1 - b _0803219C - .align 2, 0 -_08032190: .4byte gUnk_080CE5FA -_08032194: - ldrb r1, [r4, #0x18] - movs r0, #0x41 - rsbs r0, r0, #0 - ands r0, r1 -_0803219C: - strb r0, [r4, #0x18] - movs r0, #0xf0 - strh r0, [r4, #0x24] - movs r0, #0x90 - lsls r0, r0, #9 - str r0, [r4, #0x20] - adds r2, r4, #0 - adds r2, #0x29 - ldrb r1, [r2] - movs r0, #0x39 - rsbs r0, r0, #0 - ands r0, r1 - movs r1, #8 - orrs r0, r1 - strb r0, [r2] - adds r0, r4, #0 - movs r1, #0xc - bl InitializeAnimation -_080321C2: - ldr r0, [r4, #0x54] - cmp r0, #0 - bne _080321E6 - ldr r1, [r4, #0x50] - cmp r1, #0 - beq _080321E2 - movs r2, #0 -_080321D0: - adds r0, r1, #0 - adds r0, #0x45 - ldrb r0, [r0] - cmp r0, #0 - beq _080321DC - strb r2, [r1, #0xe] -_080321DC: - ldr r1, [r1, #0x50] - cmp r1, #0 - bne _080321D0 -_080321E2: - movs r0, #0 - strb r0, [r4, #0xe] -_080321E6: - pop {r4, pc} - - thumb_func_start sub_080321E8 -sub_080321E8: @ 0x080321E8 - push {r4, lr} - adds r4, r0, #0 - bl sub_080AEFE0 - movs r1, #0x80 - lsls r1, r1, #6 - adds r0, r4, #0 - bl sub_080044EC - cmp r0, #0 - bne _08032202 - movs r0, #8 - strb r0, [r4, #0xc] -_08032202: - pop {r4, pc} - - thumb_func_start sub_08032204 -sub_08032204: @ 0x08032204 - push {r4, lr} - adds r4, r0, #0 - bl GetNextFrame - adds r2, r4, #0 - adds r2, #0x5a - ldrb r1, [r2] - movs r0, #1 - ands r0, r1 - cmp r0, #0 - beq _08032230 - movs r0, #0 - strb r0, [r2] - bl Random - movs r1, #0x30 - ands r0, r1 - adds r0, #0x1e - adds r1, r4, #0 - adds r1, #0x59 - strb r0, [r1] - b _08032244 -_08032230: - movs r0, #0x80 - ands r0, r1 - cmp r0, #0 - beq _08032244 - movs r0, #9 - strb r0, [r4, #0xc] - adds r0, r4, #0 - movs r1, #0xd - bl InitializeAnimation -_08032244: - pop {r4, pc} - .align 2, 0 - - thumb_func_start sub_08032248 -sub_08032248: @ 0x08032248 - push {r4, r5, lr} - adds r4, r0, #0 - movs r1, #0xc0 - lsls r1, r1, #5 - bl sub_08003FC4 - cmp r0, #0 - bne _0803228E - adds r5, r4, #0 - adds r5, #0x5a - ldrb r1, [r5] - movs r0, #0x80 - ands r0, r1 - cmp r0, #0 - beq _08032276 - ldr r1, [r4, #0x7c] - ldrb r0, [r1, #0xe] - subs r0, #1 - strb r0, [r1, #0xe] - adds r0, r4, #0 - bl DeleteEntity - b _0803228E -_08032276: - adds r0, r4, #0 - bl GetNextFrame - ldrb r1, [r5] - movs r0, #0xf - ands r0, r1 - cmp r0, #2 - bne _0803228E - ldrb r1, [r4, #0x10] - movs r0, #0x7f - ands r0, r1 - strb r0, [r4, #0x10] -_0803228E: - pop {r4, r5, pc} - - thumb_func_start sub_08032290 -sub_08032290: @ 0x08032290 - push {lr} - movs r1, #6 - strb r1, [r0, #0xc] - movs r1, #0xc - strb r1, [r0, #0xe] - movs r1, #0xb - bl InitializeAnimation - pop {pc} - .align 2, 0 - - thumb_func_start sub_080322A4 -sub_080322A4: @ 0x080322A4 - push {r4, lr} - adds r2, r0, #0 - ldr r3, [r2, #0x54] - cmp r3, #0 - beq _080322E2 - movs r1, #0x36 - ldrsh r0, [r3, r1] - adds r0, #8 - movs r4, #0x36 - ldrsh r1, [r2, r4] - cmp r0, r1 - blt _080322E2 - adds r0, r1, #0 - cmp r0, #0 - beq _080322D8 - movs r0, #5 - strb r0, [r2, #0xc] - ldrh r0, [r3, #0x36] - adds r0, #8 - strh r0, [r2, #0x36] - adds r0, r2, #0 - movs r1, #0xb - bl InitializeAnimation - movs r0, #1 - b _080322E4 -_080322D8: - adds r0, r2, #0 - bl sub_08032290 - movs r0, #1 - b _080322E4 -_080322E2: - movs r0, #0 -_080322E4: - pop {r4, pc} - .align 2, 0 - - thumb_func_start sub_080322E8 -sub_080322E8: @ 0x080322E8 - push {lr} - adds r3, r0, #0 - adds r2, r3, #0 - adds r2, #0x78 - ldrb r0, [r2] - cmp r0, #0 - beq _08032316 - subs r0, #1 - strb r0, [r2] - lsls r0, r0, #0x18 - cmp r0, #0 - bne _08032334 - ldrb r2, [r3, #0x18] - lsls r1, r2, #0x19 - lsrs r1, r1, #0x1f - movs r0, #1 - eors r1, r0 - lsls r1, r1, #6 - subs r0, #0x42 - ands r0, r2 - orrs r0, r1 - strb r0, [r3, #0x18] - b _08032334 -_08032316: - ldrb r1, [r3, #0x15] - movs r0, #0xf - ands r0, r1 - cmp r0, #0 - beq _08032334 - lsrs r1, r1, #4 - movs r0, #1 - eors r1, r0 - ldrb r0, [r3, #0x18] - lsls r0, r0, #0x19 - lsrs r0, r0, #0x1f - cmp r1, r0 - beq _08032334 - movs r0, #6 - strb r0, [r2] -_08032334: - pop {pc} - .align 2, 0 - - thumb_func_start sub_08032338 -sub_08032338: @ 0x08032338 - push {lr} - adds r2, r0, #0 - ldr r1, [r2, #0x7c] - ldrb r0, [r1, #0xe] - adds r0, #0xf - strb r0, [r1, #0xe] - lsls r0, r0, #0x18 - lsrs r0, r0, #0x18 - cmp r0, #0x50 - beq _08032354 - adds r1, r2, #0 - adds r1, #0x6c - movs r0, #0 - strb r0, [r1] -_08032354: - pop {pc} - .align 2, 0 diff --git a/asm/non_matching/acroBandits/sub_08031C58.inc b/asm/non_matching/acroBandits/sub_08031C58.inc new file mode 100644 index 00000000..1c641ec3 --- /dev/null +++ b/asm/non_matching/acroBandits/sub_08031C58.inc @@ -0,0 +1,136 @@ + + .syntax unified + + .text + + push {r4, r5, r6, r7, lr} + mov r7, sb + mov r6, r8 + push {r6, r7} + adds r7, r0, #0 + bl GetNextFrame + adds r3, r7, #0 + adds r3, #0x5a + ldrb r1, [r3] + movs r0, #0x80 + ands r0, r1 + lsls r0, r0, #0x18 + lsrs r2, r0, #0x18 + cmp r2, #0 + beq _08031D54 + ldr r0, _08031D50 @ =gUnk_03003DBC + ldrb r0, [r0] + cmp r0, #0x42 + bhi _08031D66 + bl Random + adds r6, r0, #0 + movs r0, #3 + mov sb, r0 + ands r6, r0 + movs r0, #0x2e + movs r1, #1 + bl CreateEnemy + adds r4, r0, #0 + movs r0, #0 + mov r8, r0 + mov r0, r8 + strb r0, [r4, #0xb] + mov r0, r8 + str r0, [r4, #0x50] + adds r0, r4, #0 + adds r0, #0x74 + strb r6, [r0] + adds r0, r7, #0 + adds r1, r4, #0 + bl sub_08031E48 + movs r0, #0x2e + movs r1, #1 + bl CreateEnemy + adds r5, r0, #0 + str r5, [r4, #0x54] + movs r0, #1 + strb r0, [r5, #0xb] + str r4, [r5, #0x50] + adds r0, r5, #0 + adds r0, #0x74 + strb r6, [r0] + adds r0, r7, #0 + adds r1, r5, #0 + bl sub_08031E48 + movs r0, #0x2e + movs r1, #1 + bl CreateEnemy + adds r4, r0, #0 + str r4, [r5, #0x54] + movs r0, #2 + strb r0, [r4, #0xb] + str r5, [r4, #0x50] + adds r0, r4, #0 + adds r0, #0x74 + strb r6, [r0] + adds r0, r7, #0 + adds r1, r4, #0 + bl sub_08031E48 + movs r0, #0x2e + movs r1, #1 + bl CreateEnemy + adds r5, r0, #0 + str r5, [r4, #0x54] + mov r0, sb + strb r0, [r5, #0xb] + str r4, [r5, #0x50] + adds r0, r5, #0 + adds r0, #0x74 + strb r6, [r0] + adds r0, r7, #0 + adds r1, r5, #0 + bl sub_08031E48 + movs r0, #0x2e + movs r1, #1 + bl CreateEnemy + adds r1, r0, #0 + str r1, [r5, #0x54] + movs r0, #4 + strb r0, [r1, #0xb] + str r5, [r1, #0x50] + mov r0, r8 + str r0, [r1, #0x54] + adds r0, r1, #0 + adds r0, #0x74 + strb r6, [r0] + adds r0, r7, #0 + bl sub_08031E48 + movs r0, #6 + strb r0, [r7, #0xc] + movs r0, #0x14 + strb r0, [r7, #0xe] + adds r2, r7, #0 + adds r2, #0x29 + ldrb r0, [r2] + movs r1, #7 + orrs r0, r1 + strb r0, [r2] + adds r0, r7, #0 + movs r1, #7 + bl InitializeAnimation + b _08031D66 + .align 2, 0 +_08031D50: .4byte gUnk_03003DBC +_08031D54: + movs r0, #1 + ands r0, r1 + cmp r0, #0 + beq _08031D66 + strb r2, [r3] + ldrb r1, [r7, #0x10] + movs r0, #0x7f + ands r0, r1 + strb r0, [r7, #0x10] +_08031D66: + pop {r3, r4} + mov r8, r3 + mov sb, r4 + pop {r4, r5, r6, r7, pc} + .align 2, 0 + .syntax divided + \ No newline at end of file diff --git a/asm/non_matching/acroBandits/sub_08031E04.inc b/asm/non_matching/acroBandits/sub_08031E04.inc new file mode 100644 index 00000000..464f2572 --- /dev/null +++ b/asm/non_matching/acroBandits/sub_08031E04.inc @@ -0,0 +1,41 @@ + + .syntax unified + + .text + + push {r4, lr} + adds r4, r0, #0 + movs r0, #1 + bl sub_08049DF4 + adds r2, r0, #0 + cmp r2, #0 + beq _08031E44 + adds r0, r4, #0 + adds r0, #0x5a + ldrb r0, [r0] + movs r3, #6 + ands r3, r0 + ldr r0, _08031E40 @ =gUnk_080CE5C0 + adds r3, r3, r0 + movs r0, #0x2e + ldrsh r1, [r2, r0] + movs r0, #0 + ldrsb r0, [r3, r0] + adds r1, r1, r0 + movs r0, #0x32 + ldrsh r2, [r2, r0] + movs r0, #1 + ldrsb r0, [r3, r0] + adds r2, r2, r0 + adds r0, r4, #0 + movs r3, #0x50 + bl sub_0806FCB8 + b _08031E46 + .align 2, 0 +_08031E40: .4byte gUnk_080CE5C0 +_08031E44: + movs r0, #0 +_08031E46: + pop {r4, pc} + .syntax divided + \ No newline at end of file diff --git a/asm/non_matching/acroBandits/sub_080322E8.inc b/asm/non_matching/acroBandits/sub_080322E8.inc new file mode 100644 index 00000000..6c4a775b --- /dev/null +++ b/asm/non_matching/acroBandits/sub_080322E8.inc @@ -0,0 +1,48 @@ + + .syntax unified + + .text + + push {lr} + adds r3, r0, #0 + adds r2, r3, #0 + adds r2, #0x78 + ldrb r0, [r2] + cmp r0, #0 + beq _08032316 + subs r0, #1 + strb r0, [r2] + lsls r0, r0, #0x18 + cmp r0, #0 + bne _08032334 + ldrb r2, [r3, #0x18] + lsls r1, r2, #0x19 + lsrs r1, r1, #0x1f + movs r0, #1 + eors r1, r0 + lsls r1, r1, #6 + subs r0, #0x42 + ands r0, r2 + orrs r0, r1 + strb r0, [r3, #0x18] + b _08032334 +_08032316: + ldrb r1, [r3, #0x15] + movs r0, #0xf + ands r0, r1 + cmp r0, #0 + beq _08032334 + lsrs r1, r1, #4 + movs r0, #1 + eors r1, r0 + ldrb r0, [r3, #0x18] + lsls r0, r0, #0x19 + lsrs r0, r0, #0x1f + cmp r1, r0 + beq _08032334 + movs r0, #6 + strb r0, [r2] +_08032334: + pop {pc} + .align 2, 0 + .syntax divided diff --git a/include/entity.h b/include/entity.h index cf31480e..5eaa1f2f 100644 --- a/include/entity.h +++ b/include/entity.h @@ -91,7 +91,7 @@ typedef struct Entity { /*0x3a*/ u8 field_0x3a; /*0x3b*/ u8 flags2; /*0x3c*/ u8 field_0x3c; - /*0x3d*/ u8 hurtBlinkTime; + /*0x3d*/ s8 hurtBlinkTime; /*0x3e*/ u8 field_0x3e; /*0x3f*/ u8 damageType; /*0x40*/ u8 field_0x40; @@ -130,10 +130,10 @@ typedef struct Entity { /*0x6c*/ union SplitHWord field_0x6c; /*0x6e*/ u8 filler4[2]; /*0x70*/ union SplitWord field_0x70; - /*0x74*/ u16 field_0x74; - /*0x76*/ u16 field_0x76; + /*0x74*/ union SplitHWord field_0x74; + /*0x76*/ union SplitHWord field_0x76; /*0x78*/ union SplitHWord field_0x78; - /*0x7a*/ u16 field_0x7a; + /*0x7a*/ union SplitHWord field_0x7a; /*0x7c*/ union SplitWord field_0x7c; /*0x80*/ union SplitHWord field_0x80; /*0x82*/ union SplitHWord field_0x82; diff --git a/include/functions.h b/include/functions.h index dadc6846..d69f9cb5 100644 --- a/include/functions.h +++ b/include/functions.h @@ -60,7 +60,7 @@ extern void sub_0805EC9C(); extern void sub_0805EC60(); extern void sub_080873D0(); extern u8 sub_080045D4(s16, s16, u16, u16); -extern void sub_0806F69C(); +extern void sub_0806F69C(Entity*); extern void sub_0805E3A0(Entity*, u32); extern void sub_0806D0B0(Entity*); extern void sub_0807DD64(Entity*); diff --git a/linker.ld b/linker.ld index cceaae18..271c1f98 100644 --- a/linker.ld +++ b/linker.ld @@ -374,7 +374,7 @@ SECTIONS { asm/rope.o(.text); src/enemy/smallPesto.o(.text); asm/smallPesto.o(.text); - asm/acroBandits.o(.text); + src/enemy/acroBandits.o(.text); src/enemy/bladeTrap.o(.text); src/enemy/keaton.o(.text); asm/crow.o(.text); diff --git a/src/enemy/acroBandits.c b/src/enemy/acroBandits.c new file mode 100644 index 00000000..da3b7923 --- /dev/null +++ b/src/enemy/acroBandits.c @@ -0,0 +1,572 @@ +#include "global.h" +#include "entity.h" +#include "functions.h" + +extern u32 sub_080002D4(s32, s32, u32); +extern s32 sub_080012DC(Entity*); +extern void sub_08001324(Entity*); +extern u32 sub_080044EC(Entity*, u32); +extern u32 sub_08031E04(Entity*); +extern void sub_08031E48(Entity*, Entity*); +extern void sub_08032290(Entity*); +extern u32 sub_080322A4(Entity*); +void sub_080322E8(Entity*); +extern void sub_08032338(Entity*); +extern Entity* sub_08049DF4(u32); +extern u8 sub_08049F84(Entity*, u32); +extern void sub_0804A9FC(Entity*, u32); +extern void sub_0804AA30(Entity*, void (*const funcs[])(Entity*)); +extern u32 sub_0806FCB8(Entity*, u32, u32, u32); +extern u32 GetNextFunction(Entity*); +extern void SetChildOffset(Entity*, s32, s32, s32); +extern u32 Random(void); + +extern Entity* gUnk_020000B0; +extern u8 gUnk_03003DBC; +extern void (*const gUnk_080012C8[])(Entity*); +extern void (*const gUnk_080CE56C[])(Entity*); +extern void (*const gUnk_080CE584[])(Entity*); +extern void (*const gUnk_080CE58C[])(Entity*); +extern void (*const gUnk_080CE5C8[])(Entity*); +extern u8 gUnk_080CE5B0[8]; +extern u8 gUnk_080CE5B8[8]; +extern union SplitHWord gUnk_080CE5C0[4]; +extern u16 gUnk_080CE5F0[5]; +extern u8 gUnk_080CE5FA[20]; // Directions + +void AcroBandit(Entity* this) { + s32 index; + + index = sub_080012DC(this); + + if (index) { + if ((this->field_0x3a & 1) == 0) + sub_08032338(this); + + gUnk_080012C8[index](this); + } else { + gUnk_080CE56C[GetNextFunction(this)](this); + SetChildOffset(this, 0, 1, -0x10); + } +} + +void sub_080318C4(Entity* this) { + gUnk_080CE584[this->entityType.form](this); +} + +void sub_080318DC(Entity* this) { + Entity* brother; + + if (this->bitfield != 0x80 && this->bitfield != 0x81) { + if (this->entityType.form == 1) { + if (this->action < 7 && this->field_0x42) { + brother = this->attachedEntity; + if (brother) { + brother->parent = this->parent; + do { + brother->action = 5; + brother->spritePriority.b1 = 1; + if (brother->hurtBlinkTime == 0) + brother->hurtBlinkTime = -12; + } while (brother = brother->attachedEntity, brother != NULL); + } + if (this->parent) { + this->parent->attachedEntity = this->attachedEntity; + } else { + if (this->attachedEntity) + this->parent = this; + } + + this->action = 9; + this->spritePriority.b1 = 1; + if (this->field_0x3e < 0x10) { + this->spriteSettings.b.flipX = 0; + } else { + this->spriteSettings.b.flipX = 1; + } + InitializeAnimation(this, 14); + } + + if (this->currentHealth == 0) { + this->field_0x3e = ((this->field_0x3e + (7 & Random())) - 4) & 0x1f; + this->field_0x42 += this->entityType.parameter * 3; + sub_08032338(this); + } + } + + if (this->field_0x42 && this->frames.all & 0x10) { + if (this->entityType.form == 0) { + this->action = 8; + } else { + this->action = 9; + } + if (this->field_0x3e < 0x10) { + this->spriteSettings.b.flipX = 0; + } else { + this->spriteSettings.b.flipX = 1; + } + this->spritePriority.b1 = 1; + InitializeAnimation(this, 14); + } + } + + if (this->field_0x43) + sub_0804A9FC(this, 0x1c); + + sub_0804AA30(this, gUnk_080CE56C); +} + +void sub_08031A60(Entity* this) { + if (this->hurtBlinkTime > 0) + sub_08003FC4(this, 0x1800); + + sub_08001324(this); +} + +void nullsub_154(void) { + /* ... */ +} + +void sub_08031A88(Entity* this) { + gUnk_080CE58C[this->action](this); +} + +void sub_08031AA0(Entity* this) { + sub_0804A720(this); + this->action = '\x01'; + this->field_0x74.HWORD = this->x.HALF.HI; + this->field_0x76.HWORD = this->y.HALF.HI; + this->field_0x78.HALF.HI = Random(); +} + +void sub_08031AC8(Entity* this) + +{ + u32 rand; + s32 x, y; + + if (this->actionDelay) { + this->actionDelay--; + } else { + if (sub_08049FDC(this, 1)) { + rand = Random(); + x = this->field_0x74.HWORD + ((s32)rand % 5) * 0x10 - 0x20; + y = this->field_0x76.HWORD + ((s32)(rand >> 4) % 5) * 0x10 - 0x20; + if (sub_080002D4(x, y, this->collisionLayer) == 0) { + this->action = 2; + this->spriteSettings.b.draw = 1; + this->x.HALF.HI = x; + this->y.HALF.HI = y; + InitializeAnimation(this, 0); + } + } + } +} + +void sub_08031B48(Entity* this) { + GetNextFrame(this); + if (this->frames.b.f0) { + this->frames.all = 0; + this->flags |= 0x80; + } else { + if (this->frames.b.f3) { + this->action = 0x3; + this->actionDelay = gUnk_080CE5B0[Random() & 7]; + InitializeAnimation(this, 1); + } + } +} + +void sub_08031B98(Entity* this) { + if (sub_08031E04(this)) { + this->action = 5; + if (this->x.HALF.HI > gUnk_020000B0->x.HALF.HI) { + this->spriteSettings.b.flipX = 0; + } else { + this->spriteSettings.b.flipX = 1; + } + InitializeAnimation(this, 3); + } else { + if (this->frames.b.f0 && this->actionDelay) { + // this->frames.b.f0 = 0; + this->frames.all &= 0xfe; + this->actionDelay--; + } + GetNextFrame(this); + if (this->actionDelay == 0) { + this->action = 4; + this->flags &= 0x7f; + InitializeAnimation(this, 2); + } + } +} + +void sub_08031C1C(Entity* this) { + GetNextFrame(this); + if (this->frames.b.f3) { + this->action = '\x01'; + this->actionDelay = gUnk_080CE5B8[Random() & 7]; + this->spriteSettings.b.draw = 0; + } +} + +#if NON_MATCHING +void sub_08031C58(Entity* this) { + u8 tmp; + Entity *a, *b; + + GetNextFrame(this); + if (this->frames.b.f3) { + if (gUnk_03003DBC < 0x43) { + tmp = Random(); + tmp &= 3; + + a = CreateEnemy(0x2e, 1); + a->entityType.parameter = 0; + a->parent = NULL; + a->field_0x74.HALF.LO = tmp; + sub_08031E48(this, a); + + b = CreateEnemy(0x2e, 1); + a->attachedEntity = b; + b->entityType.parameter = 1; + b->parent = a; + b->field_0x74.HALF.LO = tmp; + sub_08031E48(this, b); + + a = CreateEnemy(0x2e, 1); + b->attachedEntity = a; + a->entityType.parameter = 2; + a->parent = b; + a->field_0x74.HALF.LO = tmp; + sub_08031E48(this, a); + + b = CreateEnemy(0x2e, 1); + a->attachedEntity = b; + b->entityType.parameter = 3; + b->parent = a; + b->field_0x74.HALF.LO = tmp; + sub_08031E48(this, b); + + a = CreateEnemy(0x2e, 1); + b->attachedEntity = a; + a->entityType.parameter = 4; + a->parent = b; + a->attachedEntity = NULL; + a->field_0x74.HALF.LO = tmp; + sub_08031E48(this, a); + + this->action = 6; + this->actionDelay = 20; + this->spritePriority.b0 = 7; + InitializeAnimation(this, 7); + } + } else { + if (this->frames.b.f0) { + this->frames.all = 0; + this->flags &= 0x7f; + } + } +} +#else +NAKED +void sub_08031C58(Entity* this) { + asm(".include \"asm/non_matching/acroBandits/sub_08031C58.inc\""); +} +#endif + +void sub_08031D70(Entity* this) { + GetNextFrame(this); + if (--this->actionDelay == '\0') { + this->action = 7; + this->flags &= 0x7f; + this->actionDelay = 5; + this->spriteSettings.b.draw = 0; + } +} + +void sub_08031DA0(Entity* this) { + if ((this->actionDelay & 0xf) == 0) { + if (this->actionDelay == 0x50) { + DeleteEntity(this); + } else { + this->action = 1; + this->actionDelay = 0xb4; + } + } +} + +void sub_08031DC4(Entity* this) { + if (this->frames.b.f3) { + this->action = 1; + this->actionDelay = 0xb4; + this->spriteSettings.b.draw = 0; + } else { + GetNextFrame(this); + if ((this->frames.all & 0xf) == 2) { + this->flags &= 0x7f; + } + } +} + +#if NON_MATCHING +u32 sub_08031E04(Entity* this) { + Entity* ent; + union SplitHWord* tmp; + int x, y; + + ent = sub_08049DF4(1); + if (ent == NULL) + return 0; + + tmp = &gUnk_080CE5C0[this->frames.all & 6]; + x = ent->x.HALF.HI + tmp->HALF.LO; + y = ent->y.HALF.HI + tmp->HALF.HI; + return sub_0806FCB8(this, x, y, 0x50); +} +#else +NAKED +u32 sub_08031E04(Entity* this) { + asm(".include \"asm/non_matching/acroBandits/sub_08031E04.inc\""); +} +#endif + +void sub_08031E48(Entity* this, Entity* child) { + CopyPosition(this, child); + child->field_0x6c.HALF.LO = this->field_0x6c.HALF.LO; + child->field_0x70.HALF.LO = this->field_0x70.HALF.LO; + child->field_0x70.HALF.HI = this->field_0x70.HALF.HI; + child->filler4[0] = this->filler4[0]; + child->filler4[1] = this->filler4[1]; + child->field_0x7c.WORD = (s32)this; +} + +void sub_08031E90(Entity* this) { + gUnk_080CE5C8[this->action](this); +} + +void sub_08031EA8(Entity* this) { + this->action = 1; + this->spritePriority.b1 = 1; + this->field_0x20 = 0x40000; + this->height.HALF.HI = (4 - this->entityType.parameter) * 0xe; + this->field_0x78.HALF.HI = Random(); + InitializeAnimation(this, 4); +} + +void sub_08031EE8(Entity* this) { + int draw; + + this->height.WORD -= this->field_0x20; + this->field_0x20 -= 0x1800; + + if (this->height.HALF.HI < 1) { + draw = this->spriteSettings.b.draw; + if (!draw) + sub_08004488(299); + + this->spriteSettings.b.draw = 1; + } + + draw = this->spriteSettings.b.draw; + if (draw == 1) + GetNextFrame(this); + + if (this->field_0x20 < 1) { + this->action = 2; + this->flags |= 0x80; + InitializeAnimation(this, 5); + } +} + +void sub_08031F54(Entity* this) { + sub_08003FC4(this, gUnk_080CE5F0[this->entityType.parameter]); + if (this->entityType.parameter * -0xe <= this->height.HALF.HI) { + this->action = 3; + this->actionDelay = 20; + this->height.HALF.HI = this->entityType.parameter * -0xe; + if (this->parent != NULL) + this->spritePriority.b1 = 0; + InitializeAnimation(this, 6); + } +} + +void sub_08031FB0(Entity* this) { + GetNextFrame(this); + if (this->frames.b.f3 && (this->parent || --this->actionDelay == 0)) { + this->action = 4; + this->direction = sub_08049F84(this, 1); + *(u8*)&this->field_0x76 = 0; + if (this->attachedEntity) { + InitializeAnimation(this, 9); + } else { + InitializeAnimation(this, 8); + } + } +} + +void sub_08032008(Entity* this) { + Entity* parent; + + if (sub_080322A4(this) == 0) { + parent = this->parent; + if (parent == 0) { + if (sub_08049FDC(this, 1)) { + if ((++this->field_0x78.HALF.HI & 7) == 0) { + sub_08004596(this, GetFacingDirection(this, gUnk_020000B0)); + } + this->field_0x76.HALF.LO = 0; + } else { + if (this->field_0x76.HALF.LO) { + (this->field_0x76.HALF.LO)--; + sub_08004596(this, this->field_0x7a.HALF.LO); + } else { + this->field_0x76.HALF.LO = 0x10; + if (sub_08049FA0(this) == 0 && (Random() & 1)) { + this->field_0x7a.HALF.LO = sub_08049EE4(this); + } else { + this->field_0x7a.HALF.LO = Random() & 30; + } + } + } + + if (this->direction & 0xf) { + this->spriteSettings.b.flipX = !(!(this->direction & 0x10) ^ 1); + } + + sub_080AEF88(this); + } else { + if (this->field_0x76.HALF.HI == 0) { + if (sub_0806FCB8(this, parent->x.HALF.HI, parent->y.HALF.HI, 1) == 0) { + this->field_0x76.HALF.HI = 1; + this->direction = GetFacingDirection(this, parent); + sub_080322E8(this); + sub_0806F69C(this); + } + } else { + this->direction = GetFacingDirection(this, parent); + sub_080322E8(this); + sub_0806F69C(this); + if (this->x.HALF.HI == parent->x.HALF.HI && this->y.HALF.HI == parent->y.HALF.HI) + this->field_0x76.HALF.HI = 0; + } + } + GetNextFrame(this); + } +} + +void sub_08032148(Entity* this) { + if (sub_08003FC4(this, 0x2000)) + return; + + sub_08032290(this); +} + +void sub_08032160(Entity* this) { + Entity* tmp; + u32 dir; + + if (this->actionDelay == 0) { + this->action = 7; + dir = gUnk_080CE5FA[this->field_0x74.HALF.LO * 5 + this->entityType.parameter]; + this->direction = dir; + if (dir >= 0x10) { + this->spriteSettings.b.flipX = 1; + } else { + this->spriteSettings.b.flipX = 0; + } + this->nonPlanarMovement = 0xf0; + this->field_0x20 = 0x12000; + this->spritePriority.b1 = 1; + InitializeAnimation(this, 12); + } + + if (this->attachedEntity == NULL) { + for (tmp = this->parent; tmp != NULL; tmp = tmp->parent) { + if (tmp->currentHealth != 0) + tmp->actionDelay = 0; + } + this->actionDelay = 0; + } +} + +void sub_080321E8(Entity* this) { + sub_080AEFE0(this); + + if (sub_080044EC(this, 0x2000) == 0) + this->action = 8; +} + +void sub_08032204(Entity* this) { + GetNextFrame(this); + if (this->frames.all & 1) { + this->frames.all = 0; + this->frameDuration = (Random() & 0x30) + 30; + } else { + if (this->frames.all & 0x80) { + this->action = 9; + InitializeAnimation(this, 13); + } + } +} + +void sub_08032248(Entity* this) { + if (sub_08003FC4(this, 0x1800) == 0) { + if (this->frames.all & 0x80) { + ((Entity*)this->field_0x7c.WORD)->actionDelay--; + + DeleteEntity(this); + } else { + GetNextFrame(this); + + if ((this->frames.all & 0xf) == 2) + this->flags &= 0x7f; + } + } +} + +void sub_08032290(Entity* this) { + this->action = 6; + this->actionDelay = 12; + InitializeAnimation(this, 11); +} + +u32 sub_080322A4(Entity* this) { + if (this->attachedEntity != NULL && (this->attachedEntity->height.HALF.HI + 8) >= this->height.HALF.HI) { + if (this->height.HALF.HI) { + this->action = 5; + this->height.HALF.HI = this->attachedEntity->height.HALF.HI + 8; + InitializeAnimation(this, 11); + return 1; + } else { + sub_08032290(this); + return 1; + } + } + return 0; +} + +#if NON_MATCHING +void sub_080322E8(Entity* this) { + if (this->field_0x78.HALF.LO) { + if (--this->field_0x78.HALF.LO == 0) { + this->spriteSettings.b.flipX = this->spriteOrientation.flipX; + } + } else { + if ((this->direction & 0xf) && + ((this->direction >> 4 ^ 1) != -((int)((u32)this->spriteSettings.raw << 0x19) >> 0x1f))) { + this->field_0x78.HALF.LO = 6; + } + } +} +#else +NAKED +void sub_080322E8(Entity* this) { + asm(".include \"asm/non_matching/acroBandits/sub_080322E8.inc\""); +} +#endif + +void sub_08032338(Entity *this) { + if ((((Entity*)this->field_0x7c.WORD)->actionDelay += 15) != 80) + this->field_0x6c.HALF.LO = 0; +} diff --git a/src/enemy/bladeTrap.c b/src/enemy/bladeTrap.c index 3c37d08a..7f77861c 100644 --- a/src/enemy/bladeTrap.c +++ b/src/enemy/bladeTrap.c @@ -22,7 +22,7 @@ void BladeTrap(Entity* ent) { - puVar3 = &(ent->field_0x74); + puVar3 = &(ent->field_0x74.HWORD); uVar1 = *puVar3; *puVar3 = uVar1 - 1; if ((*puVar3) == 0) { diff --git a/src/enemy/keaton.c b/src/enemy/keaton.c index b30c65df..94c2ab33 100644 --- a/src/enemy/keaton.c +++ b/src/enemy/keaton.c @@ -104,7 +104,7 @@ void sub_080324FC(Entity* this) { if (this->field_0xf == 0) { this->action = 4; this->nonPlanarMovement = 0x1E0; - this->field_0x76 = 0x46; + this->field_0x76.HWORD = 0x46; this->field_0x78.HWORD = 0; *(((u8*)&this->field_0x7a) + 1) = 0; sub_080327C8(this); @@ -121,13 +121,13 @@ void sub_08032574(Entity* this) { return; } - if (--this->field_0x76 == 0 || !sub_080AEFE0(this)) { + if (--this->field_0x76.HWORD == 0 || !sub_080AEFE0(this)) { sub_0803275C(this); return; } UpdateAnimationSingleFrame(this); - if ((this->field_0x76 & 0x7) == 0) { + if ((this->field_0x76.HWORD & 0x7) == 0) { sub_08032794(this); } } @@ -184,12 +184,12 @@ void sub_0803269C(Entity* this, u32 param_2) { } void sub_080326FC(Entity* this) { - this->field_0x74 = gUnk_080CE7F0[Random() & 0xF]; + this->field_0x74.HWORD = gUnk_080CE7F0[Random() & 0xF]; } u32 sub_0803271C(Entity* this) { - this->field_0x74--; - if (this->field_0x74 == 0) { + this->field_0x74.HWORD--; + if (this->field_0x74.HWORD == 0) { sub_08032784(this); return 1; } diff --git a/src/enemy/keese.c b/src/enemy/keese.c index 980237ef..0083bbf3 100644 --- a/src/enemy/keese.c +++ b/src/enemy/keese.c @@ -85,8 +85,8 @@ void sub_08021E4C(Entity *this) if (this->field_0x78.HWORD != 0) { this->field_0x78.HWORD--; } - if (this->field_0x7a != 0) { - (this->field_0x7a)--; + if (this->field_0x7a.HWORD != 0) { + (this->field_0x7a.HWORD)--; } GetNextFrame(this); if ((this->frames.b.f3) != 0) { @@ -126,7 +126,7 @@ void sub_08021EF0(Entity *this) this->action = 1; this->field_0x78.HWORD = gUnk_080CB6D6[Random() & 0xf]; - this->field_0x7a = 0x3c; + this->field_0x7a.HWORD = 0x3c; InitializeAnimation(this, 0); } @@ -139,7 +139,7 @@ void sub_08021F24(Entity *this) this->actionDelay = gUnk_080CB6F6[Random() & 0xf]; InitializeAnimation(this, 1); } - else if (!this->field_0x7a && !(sub_0806FCB8(this, gPlayerEntity.x.HALF.HI, gPlayerEntity.y.HALF.HI, 0x70))) { + else if (!this->field_0x7a.HWORD && !(sub_0806FCB8(this, gPlayerEntity.x.HALF.HI, gPlayerEntity.y.HALF.HI, 0x70))) { this->action = 3; this->actionDelay = 0x1e; InitializeAnimation(this, 1); diff --git a/src/enemy/lakitu.c b/src/enemy/lakitu.c index a6d32f1c..038f7ff7 100644 --- a/src/enemy/lakitu.c +++ b/src/enemy/lakitu.c @@ -161,8 +161,8 @@ void sub_0803C87C(Entity *this) { this->spriteOffsetY = 0xff; - this->field_0x74 = this->x.HALF.HI; - this->field_0x76 = this->y.HALF.HI; + this->field_0x74.HWORD = this->x.HALF.HI; + this->field_0x76.HWORD = this->y.HALF.HI; } void sub_0803C8BC(Entity *this) { @@ -294,8 +294,8 @@ void sub_0803CA84(Entity *this, u32 unkParameter) { } void sub_0803CAD0(Entity *this) { - if (sub_0806FCB8(this, this->field_0x74, this->field_0x76, 1) == 0) { - this->direction = sub_080045D4(this->x.HALF.HI, this->y.HALF.HI, this->field_0x74, this->field_0x76); + if (sub_0806FCB8(this, this->field_0x74.HWORD, this->field_0x76.HWORD, 1) == 0) { + this->direction = sub_080045D4(this->x.HALF.HI, this->y.HALF.HI, this->field_0x74.HWORD, this->field_0x76.HWORD); sub_080AEFE0(this); } diff --git a/src/enemy/lakituCloud.c b/src/enemy/lakituCloud.c index 241c8f68..c15d1682 100644 --- a/src/enemy/lakituCloud.c +++ b/src/enemy/lakituCloud.c @@ -78,7 +78,7 @@ void sub_0803CD6C(Entity *this) { this->parent = lakitu; this->field_0x78.HWORD = this->x.HALF.HI; - this->field_0x7a = this->y.HALF.HI; + this->field_0x7a.HWORD = this->y.HALF.HI; InitAnimationForceUpdate(this, 4); @@ -92,7 +92,7 @@ void sub_0803CDA8(Entity *this) { sub_0806F69C(this); } - if (--this->field_0x74 << 0x10 == 0) { + if (--this->field_0x74.HWORD << 0x10 == 0) { sub_0803CE14(this); } } @@ -119,7 +119,7 @@ void sub_0803CDD8(Entity *this) { void sub_0803CE14(Entity *this) { u8 direction; - sub_080A2CC0(this, &this->attachedEntity, &this->field_0x74); + sub_080A2CC0(this, &this->attachedEntity, &this->field_0x74.HWORD); direction = this->direction; if (direction & 0x80) { @@ -142,7 +142,7 @@ void sub_0803CE3C(Entity *this) { this->field_0x3a &= 0xfb; this->x.HALF.HI = this->field_0x78.HWORD; - this->y.HALF.HI = this->field_0x7a; + this->y.HALF.HI = this->field_0x7a.HWORD; this->attachedEntity = this->parent; diff --git a/src/enemy/leever.c b/src/enemy/leever.c index 93db5f00..5c06ce5f 100644 --- a/src/enemy/leever.c +++ b/src/enemy/leever.c @@ -34,7 +34,7 @@ void sub_0801FC28(Entity* this) { void sub_0801FC40(Entity* this) { if (this->bitfield == 0x80) { if (this->action == 3) { - this->field_0x74 = 1; + this->field_0x74.HWORD = 1; } } else { if (this->field_0x43 != 0) { @@ -79,9 +79,9 @@ void sub_0801FD2C(Entity* this) { if (this->frames.b.f3 != 0) { this->action = 3; if (this->entityType.form == 0) { - this->field_0x74 = 0xb4; + this->field_0x74.HWORD = 0xb4; } else { - this->field_0x74 = 0x6e; + this->field_0x74.HWORD = 0x6e; } InitializeAnimation(this, 2); } else if (this->frames.b.f0 != 0) { @@ -95,7 +95,7 @@ void sub_0801FD80(Entity* this) { sub_0801FED4(this); GetNextFrame(this); - if (--this->field_0x74 == 0) { + if (--this->field_0x74.HWORD == 0) { this->action = 4; this->flags &= 0x7f; InitializeAnimation(this, 1); @@ -161,7 +161,7 @@ void sub_0801FED4(Entity* this) { s16 sVar2; if (sub_08049FDC(this, 1) == 0) { - this->field_0x74 = 1; + this->field_0x74.HWORD = 1; } sVar2 = (this->frames.all & 0xf) * 0x20; this->nonPlanarMovement = sVar2; diff --git a/src/npc/zelda.c b/src/npc/zelda.c index 4516b40e..03764a5e 100644 --- a/src/npc/zelda.c +++ b/src/npc/zelda.c @@ -90,7 +90,7 @@ void sub_08066D94(Entity* ent) { npc->flags |= 0x20; npc->animationState = GetAnimationState(ent); roomID = gRoomControls.roomID; - npc->field_0x74 = roomID; + npc->field_0x74.HWORD = roomID; CopyPosition(ent, npc); } DeleteThisEntity(); diff --git a/src/object/fan.c b/src/object/fan.c index 481e3887..c73cec9b 100644 --- a/src/object/fan.c +++ b/src/object/fan.c @@ -31,7 +31,7 @@ void sub_0809ED54(Entity *this) if (((this->cutsceneBeh.HWORD == 0) || CheckFlags(this->cutsceneBeh.HWORD)) && ((this->entityType.parameter != 1 || - (--this->field_0x74 == 0)))) { + (--this->field_0x74.HWORD == 0)))) { sub_0809EE08(this); } } @@ -52,7 +52,7 @@ void sub_0809ED88(Entity *this) sub_0809EE24(this); } else if (((this->entityType).parameter == 1) && - (--this->field_0x74 == 0)) { + (--this->field_0x74.HWORD == 0)) { sub_0809EE24(this); } } @@ -69,7 +69,7 @@ void sub_0809EDE4(Entity *this) void sub_0809EE08(Entity *this) { this->action = 2; - this->field_0x74 = *((u8 *)&this->field_0x7c + 3) << 2; + this->field_0x74.HWORD = *((u8 *)&this->field_0x7c + 3) << 2; InitializeAnimation(this, this->entityType.form); } @@ -82,5 +82,5 @@ void sub_0809EE24(Entity *this) void sub_0809EE34(Entity *this) { this->action = 1; - this->field_0x74 = this->actionDelay << 2; + this->field_0x74.HWORD = this->actionDelay << 2; } \ No newline at end of file diff --git a/src/object/lightableSwitch.c b/src/object/lightableSwitch.c index 2368da04..e9a1e8e0 100644 --- a/src/object/lightableSwitch.c +++ b/src/object/lightableSwitch.c @@ -73,7 +73,7 @@ void sub_0809EAD8(Entity* this) { if (this->entityType.parameter != 0) { this->attachedEntity = GetCurrentRoomProperty(this->entityType.parameter); - sub_080A2CC0(this, &this->attachedEntity, &this->field_0x74); + sub_080A2CC0(this, &this->attachedEntity, &this->field_0x74.HWORD); } else { SetTile(0x4050, COORD_TO_TILE(this), this->collisionLayer); @@ -88,7 +88,7 @@ void sub_0809EB30(Entity* this) { if ((this->direction & 0x80) == 0) { sub_0806F69C(this); } - puVar2 = &this->field_0x74; + puVar2 = &this->field_0x74.HWORD; if (!--*puVar2) { sub_080A2CC0(this, &this->attachedEntity, puVar2); } diff --git a/src/object/mask.c b/src/object/mask.c index dfabc160..675805b8 100644 --- a/src/object/mask.c +++ b/src/object/mask.c @@ -68,7 +68,7 @@ void sub_080929A4(Entity *this) { this->field_0x7c.HALF.HI = COORD_TO_TILE(this); this->field_0x7c.HALF.LO = sub_080001DA(this->field_0x7c.HALF.HI, 1); - this->field_0x7a = sub_080002E0(this->field_0x7c.HALF.HI, 1); + this->field_0x7a.HWORD = sub_080002E0(this->field_0x7c.HALF.HI, 1); SetTile(0x4022, this->field_0x7c.HALF.HI, 1); } @@ -96,7 +96,7 @@ void sub_08092A94(Entity *this) { // Presumably, make the mask fall SetTile((u16)this->field_0x7c.HALF.LO, this->field_0x7c.HALF.HI, 1); - sub_08000148(this->field_0x7a, this->field_0x7c.HALF.HI, 1); + sub_08000148(this->field_0x7a.HWORD, this->field_0x7c.HALF.HI, 1); this->action = 2; diff --git a/src/object/metalDoor.c b/src/object/metalDoor.c index 1f18a272..381bf0d8 100644 --- a/src/object/metalDoor.c +++ b/src/object/metalDoor.c @@ -34,7 +34,7 @@ void sub_080A0684(Entity *this) this->spritePriority.b0 = 5; this->field_0x70.HALF.LO = this->x.HALF.HI; this->field_0x70.HALF.HI = this->y.HALF.HI; - this->field_0x74 = COORD_TO_TILE(this); + this->field_0x74.HWORD = COORD_TO_TILE(this); } void sub_080A0718(Entity *this) @@ -99,17 +99,17 @@ void sub_080A07F0(Entity *this) void sub_080A080C(Entity *this) { - this->field_0x76 = sub_080001DA(this->field_0x74 - 1, this->collisionLayer); - this->field_0x78.HWORD = sub_080001DA(this->field_0x74, this->collisionLayer); - this->field_0x7a = sub_080001DA(this->field_0x74 + 1, this->collisionLayer); - SetTile(0x4022, this->field_0x74 - 1, this->collisionLayer); - SetTile(0x4022, this->field_0x74, this->collisionLayer); - SetTile(0x4022, this->field_0x74 + 1, this->collisionLayer); + this->field_0x76.HWORD = sub_080001DA(this->field_0x74.HWORD - 1, this->collisionLayer); + this->field_0x78.HWORD = sub_080001DA(this->field_0x74.HWORD, this->collisionLayer); + this->field_0x7a.HWORD = sub_080001DA(this->field_0x74.HWORD + 1, this->collisionLayer); + SetTile(0x4022, this->field_0x74.HWORD - 1, this->collisionLayer); + SetTile(0x4022, this->field_0x74.HWORD, this->collisionLayer); + SetTile(0x4022, this->field_0x74.HWORD + 1, this->collisionLayer); } void sub_080A0870(Entity *this) { - SetTile(this->field_0x76, this->field_0x74 - 1, this->collisionLayer); - SetTile(this->field_0x78.HWORD, this->field_0x74, this->collisionLayer); - SetTile(this->field_0x7a, this->field_0x74 + 1, this->collisionLayer); + SetTile(this->field_0x76.HWORD, this->field_0x74.HWORD - 1, this->collisionLayer); + SetTile(this->field_0x78.HWORD, this->field_0x74.HWORD, this->collisionLayer); + SetTile(this->field_0x7a.HWORD, this->field_0x74.HWORD + 1, this->collisionLayer); } \ No newline at end of file diff --git a/src/object/railtrack.c b/src/object/railtrack.c index f2e9a10a..05b8a2aa 100644 --- a/src/object/railtrack.c +++ b/src/object/railtrack.c @@ -33,7 +33,7 @@ void sub_080851AC(Entity* this) { this->animationState = this->entityType.parameter & 2; if ((this->entityType).form == 3) { uVar1 = CheckFlags(this->field_0x86); - this->field_0x7a = uVar1; + this->field_0x7a.HWORD = uVar1; if ((u16)(uVar1 & -1) != 0) { this->animationState = (this->animationState + 2) & 3; this->action = 3; @@ -62,7 +62,7 @@ void sub_080852B4(Entity* this) { if (--this->field_0xf == 0) { this->action = 3; this->field_0xf = this->actionDelay; - this->field_0x7a = CheckFlags(this->field_0x86); + this->field_0x7a.HWORD = CheckFlags(this->field_0x86); this->animationState = (this->animationState + *(u8*)&this->field_0x7c) & 3; InitializeAnimation(this, this->animationState); sub_08085394(this); @@ -114,7 +114,7 @@ void sub_08085394(Entity *this) iVar3 = this->animationState / 2; layerData = *(u16 **)&this->field_0x70; uVar4 = COORD_TO_TILE(this); - this->field_0x74 = layerData[gUnk_080B4488[iVar3]]; + this->field_0x74.HWORD = layerData[gUnk_080B4488[iVar3]]; pbVar5 = &this->collisionLayer; SetTile(uVar1, uVar4 - iVar3, *pbVar5); this->field_0x76 = layerData[0]; @@ -137,8 +137,8 @@ void sub_0808543C(Entity *this) temp = gUnk_080B4488[this->animationState / 2][0]; uVar2 = COORD_TO_TILE(this); - SetTile(this->field_0x74, uVar2 - temp, this->collisionLayer); - SetTile(this->field_0x76, uVar2, this->collisionLayer); + SetTile(this->field_0x74.HWORD, uVar2 - temp, this->collisionLayer); + SetTile(this->field_0x76.HWORD, uVar2, this->collisionLayer); SetTile(this->field_0x78.HWORD, uVar2 + temp, this->collisionLayer); } From eed9d1fe6bb80a1c50f30974ba906ad97ba657d3 Mon Sep 17 00:00:00 2001 From: Marcus Huderle Date: Mon, 17 Aug 2020 18:55:37 -0500 Subject: [PATCH 143/158] Decompile more chooseFile.c --- asm/chooseFile.s | 292 ------------------------------------------- include/structures.h | 10 +- src/chooseFile.c | 146 +++++++++++++++++++++- 3 files changed, 151 insertions(+), 297 deletions(-) diff --git a/asm/chooseFile.s b/asm/chooseFile.s index 3acaceed..d23c0314 100755 --- a/asm/chooseFile.s +++ b/asm/chooseFile.s @@ -5,298 +5,6 @@ .text - thumb_func_start sub_0805070C -sub_0805070C: @ 0x0805070C - push {r4, r5, r6, r7, lr} - mov r7, r8 - push {r7} - bl sub_0805F2C8 - adds r5, r0, #0 - cmp r5, #0 - beq _0805077A - movs r0, #0 - strb r0, [r5, #2] - movs r0, #5 - strb r0, [r5, #3] - movs r0, #1 - strb r0, [r5, #1] - movs r0, #0x30 - strh r0, [r5, #4] - ldr r0, _08050780 @ =gUnk_02000D00 - str r0, [r5, #8] - movs r6, #0 -_08050732: - movs r0, #0 - strh r0, [r5, #6] - ldr r0, [r5, #8] - movs r1, #0x80 - lsls r1, r1, #2 - bl _DmaZero - ldr r0, _08050784 @ =0x000004B4 - adds r1, r6, #0 - muls r1, r0, r1 - ldr r0, _08050788 @ =gUnk_02019F6C - adds r7, r1, r0 - movs r4, #0 - lsls r0, r6, #9 - mov r8, r0 - adds r6, #1 -_08050752: - adds r0, r7, r4 - ldrb r0, [r0] - adds r1, r5, #0 - bl sub_0805F7DC - adds r4, #1 - cmp r4, #5 - ble _08050752 - ldr r0, [r5, #8] - ldr r1, _0805078C @ =0x06014000 - add r1, r8 - movs r2, #0x80 - lsls r2, r2, #2 - bl sub_0801D66C - cmp r6, #2 - bls _08050732 - adds r0, r5, #0 - bl sub_0805F300 -_0805077A: - pop {r3} - mov r8, r3 - pop {r4, r5, r6, r7, pc} - .align 2, 0 -_08050780: .4byte gUnk_02000D00 -_08050784: .4byte 0x000004B4 -_08050788: .4byte gUnk_02019F6C -_0805078C: .4byte 0x06014000 - - thumb_func_start sub_08050790 -sub_08050790: @ 0x08050790 - push {r4, r5, r6, r7, lr} - mov r7, r8 - push {r7} - bl sub_0805F2C8 - adds r6, r0, #0 - cmp r6, #0 - beq _080507F0 - movs r0, #0 - strb r0, [r6, #2] - movs r0, #5 - strb r0, [r6, #3] - movs r0, #1 - strb r0, [r6, #1] - movs r0, #0x80 - strh r0, [r6, #4] - ldr r0, _080507F8 @ =gUnk_02000D00 - str r0, [r6, #8] - movs r1, #0 -_080507B6: - movs r0, #0 - strh r0, [r6, #6] - lsls r4, r1, #4 - movs r5, #0 - lsls r7, r1, #0xa - adds r1, #1 - mov r8, r1 -_080507C4: - adds r0, r4, #0 - adds r1, r6, #0 - bl sub_0805F7DC - adds r4, #1 - adds r5, #1 - cmp r5, #0xf - bls _080507C4 - movs r0, #0xc0 - lsls r0, r0, #0x13 - adds r1, r7, r0 - ldr r0, _080507F8 @ =gUnk_02000D00 - movs r2, #0x80 - lsls r2, r2, #3 - bl sub_0801D66C - mov r1, r8 - cmp r1, #0xf - bls _080507B6 - adds r0, r6, #0 - bl sub_0805F300 -_080507F0: - pop {r3} - mov r8, r3 - pop {r4, r5, r6, r7, pc} - .align 2, 0 -_080507F8: .4byte gUnk_02000D00 - - thumb_func_start sub_080507FC -sub_080507FC: @ 0x080507FC - ldr r0, _0805080C @ =gUnk_0200AF00 - movs r1, #0xa0 - lsls r1, r1, #1 - strh r1, [r0, #0x1a] - movs r1, #0x24 - strh r1, [r0, #0x20] - bx lr - .align 2, 0 -_0805080C: .4byte gUnk_0200AF00 - - thumb_func_start sub_08050810 -sub_08050810: @ 0x08050810 - ldr r0, _0805081C @ =gUnk_0200AF00 - movs r1, #0xd0 - strh r1, [r0, #0x1a] - movs r1, #0x24 - strh r1, [r0, #0x20] - bx lr - .align 2, 0 -_0805081C: .4byte gUnk_0200AF00 - - thumb_func_start sub_08050820 -sub_08050820: @ 0x08050820 - push {lr} - ldr r1, _0805083C @ =gUnk_080FC8FC - ldr r0, _08050840 @ =gMenu - ldrb r0, [r0, #5] - lsls r0, r0, #2 - adds r0, r0, r1 - ldr r0, [r0] - bl _call_via_r0 - ldr r0, _08050844 @ =gUnk_02019EE0 - ldrb r0, [r0, #6] - bl sub_08050A64 - pop {pc} - .align 2, 0 -_0805083C: .4byte gUnk_080FC8FC -_08050840: .4byte gMenu -_08050844: .4byte gUnk_02019EE0 - - thumb_func_start sub_08050848 -sub_08050848: @ 0x08050848 - push {lr} - movs r0, #7 - bl sub_080503A8 - bl sub_0805070C - ldr r0, _08050868 @ =gUnk_02019EE0 - movs r1, #0 - strb r1, [r0, #7] - ldrb r0, [r0, #6] - bl sub_08050AFC - movs r0, #1 - bl sub_080A7114 - pop {pc} - .align 2, 0 -_08050868: .4byte gUnk_02019EE0 - - thumb_func_start sub_0805086C -sub_0805086C: @ 0x0805086C - push {lr} - ldr r1, _08050880 @ =gUnk_080FC908 - ldr r0, _08050884 @ =gMenu - ldrb r0, [r0, #6] - lsls r0, r0, #2 - adds r0, r0, r1 - ldr r0, [r0] - bl _call_via_r0 - pop {pc} - .align 2, 0 -_08050880: .4byte gUnk_080FC908 -_08050884: .4byte gMenu - - thumb_func_start sub_08050888 -sub_08050888: @ 0x08050888 - push {r4, lr} - ldr r0, _080508C4 @ =gFadeControl - ldrb r0, [r0] - cmp r0, #0 - bne _080508DC - ldr r4, _080508C8 @ =gUnk_02019EE0 - ldrb r1, [r4, #7] - adds r0, r4, #0 - adds r0, #8 - adds r0, r1, r0 - ldrb r0, [r0] - lsls r0, r0, #0x18 - asrs r0, r0, #0x18 - cmp r0, #0 - beq _080508D0 - cmp r0, #1 - beq _080508D6 - adds r0, r1, #0 - bl sub_0805194C - ldrb r1, [r4, #7] - adds r1, #1 - movs r0, #0 - bl sub_08050318 - ldr r1, _080508CC @ =gMenu - movs r0, #0x1e - strh r0, [r1, #8] - movs r0, #1 - b _080508DA - .align 2, 0 -_080508C4: .4byte gFadeControl -_080508C8: .4byte gUnk_02019EE0 -_080508CC: .4byte gMenu -_080508D0: - adds r0, r1, #0 - bl sub_0805194C -_080508D6: - ldr r1, _080508E0 @ =gMenu - movs r0, #2 -_080508DA: - strb r0, [r1, #6] -_080508DC: - pop {r4, pc} - .align 2, 0 -_080508E0: .4byte gMenu - - thumb_func_start sub_080508E4 -sub_080508E4: @ 0x080508E4 - push {lr} - ldr r2, _08050900 @ =gMenu - ldrh r0, [r2, #8] - cmp r0, #0 - bne _08050908 - ldr r0, _08050904 @ =gUnk_03000FF0 - ldrh r1, [r0, #2] - movs r0, #9 - ands r0, r1 - cmp r0, #0 - beq _0805090C - movs r0, #2 - strb r0, [r2, #6] - b _0805090C - .align 2, 0 -_08050900: .4byte gMenu -_08050904: .4byte gUnk_03000FF0 -_08050908: - subs r0, #1 - strh r0, [r2, #8] -_0805090C: - pop {pc} - .align 2, 0 - - thumb_func_start sub_08050910 -sub_08050910: @ 0x08050910 - push {lr} - bl sub_08050384 - ldr r1, _08050930 @ =gUnk_02019EE0 - ldrb r0, [r1, #7] - adds r0, #1 - strb r0, [r1, #7] - lsls r0, r0, #0x18 - lsrs r0, r0, #0x18 - cmp r0, #2 - bls _08050934 - movs r0, #2 - bl sub_080A7114 - b _0805093A - .align 2, 0 -_08050930: .4byte gUnk_02019EE0 -_08050934: - ldr r1, _0805093C @ =gMenu - movs r0, #0 - strb r0, [r1, #6] -_0805093A: - pop {pc} - .align 2, 0 -_0805093C: .4byte gMenu - thumb_func_start sub_08050940 sub_08050940: @ 0x08050940 push {r4, r5, r6, lr} diff --git a/include/structures.h b/include/structures.h index 32ae8d74..bc07b4e8 100644 --- a/include/structures.h +++ b/include/structures.h @@ -45,7 +45,9 @@ typedef struct { /*0x040*/ u32 windcrests; /*0x044*/ u8 filler44[0xC]; /*0x050*/ u32 unk50; - /*0x054*/ u8 filler54[0x54]; + /*0x054*/ u8 filler54[0x2C]; + /*0x080*/ u8 playerName[6]; + /*0x086*/ u8 filler86[0x22]; /*0x0A8*/ Stats stats; /*0x0D0*/ u8 fillerD0[0x3c0]; /*0x490*/ u32 unk490; @@ -134,7 +136,11 @@ typedef struct { extern struct_03000FD0 gFadeControl; typedef struct { - u8 unk0[0x24]; + u8 filler0[0x1A]; + u16 unk1A; + u8 filler1C[0x4]; + u16 unk20; + u8 filler22[0x2]; u8 ezloNagFuncIndex; u8 filler25[0x30F]; } struct_0200AF00; diff --git a/src/chooseFile.c b/src/chooseFile.c index 6df4fec6..256e0da5 100755 --- a/src/chooseFile.c +++ b/src/chooseFile.c @@ -1,15 +1,30 @@ #include "global.h" #include "functions.h" #include "main.h" +#include "readKeyInput.h" #include "screen.h" typedef struct { - u8 filler0[0x30]; + u8 filler0[0x5]; + u8 state; + u8 subState; + u16 timer; + u8 fillerA[0x26]; } ChooseFileState; // TODO: This occupies the same memory region as gMenu extern ChooseFileState gChooseFileState; +typedef struct { + u8 filler0[0x1]; + u8 unk1; + u8 unk2; + u8 unk3; + u16 unk4; + u16 unk6; + u8* unk8; +} struct_02036540; + typedef struct { u8 filler0[0x10]; u16 unk10; @@ -30,24 +45,31 @@ extern struct_02034CB0 gUnk_02034CB0; extern struct_02034CB0 gUnk_02021F30; extern SaveFile gSaveFiles[]; extern u32 gUsedPalettes; +extern u8 gUnk_02000D00[]; static void sub_08050624(u32); static void sub_0805066C(void); +static void sub_080507FC(void); extern void sub_0801D66C(const void* src, void* dest, u32 size); extern void sub_08056FEC(u32, struct_020227E8*); extern void sub_0805F46C(u32, struct_080FC844*); extern void sub_0801C4A0(u32, u32); -extern void sub_0801D66C(const void* src, void* dest, u32 size); -extern void sub_080507FC(void); extern void sub_08080668(void); extern void sub_0805194C(u32); extern void LoadPalettes(const u8*, int, int); +extern struct_02036540* sub_0805F2C8(void); +extern void sub_0805F7DC(u32, struct_02036540*); +extern void sub_0805F300(struct_02036540*); +extern void sub_08050A64(u32); +extern void sub_08050AFC(u32); extern const struct_080FC844 gUnk_080FC844; extern const u16 gUnk_080FC85C[][3]; extern void (*const gUnk_080FC8A4[])(void); extern void (*const gUnk_080FC8B0[])(void); +extern void (*const gUnk_080FC8FC[])(void); +extern void (*const gUnk_080FC908[])(void); extern const u8 gUnk_080FC8D0[]; extern const u16 gUnk_080FC8DE[]; extern const u8 gGlobalGfxAndPalettes[]; @@ -234,3 +256,121 @@ static void sub_0805066C(void) { LoadPalettes(&paletteOffset[0x11DA0], 14, 1); } } + +void sub_0805070C(void) { + u32 i; + int j; + struct_02036540* var0; + u8* playerName; + + var0 = sub_0805F2C8(); + if (var0) { + var0->unk2 = 0; + var0->unk3 = 5; + var0->unk1 = 1; + var0->unk4 = 0x30; + var0->unk8 = gUnk_02000D00; + for (i = 0; i < 3; i++) { + var0->unk6 = 0; + _DmaZero(var0->unk8, 0x200); + playerName = gSaveFiles[i].playerName; + for (j = 0; j < 6; j++) { + sub_0805F7DC(playerName[j], var0); + } + sub_0801D66C(var0->unk8, (void*)(OBJ_VRAM0 + 0x4000 + i * 0x200), 0x200); + } + sub_0805F300(var0); + } + +} + +void sub_08050790(void) { + u32 i, j; + struct_02036540* var0; + u32 var1; + + var0 = sub_0805F2C8(); + if (var0) { + var0->unk2 = 0; + var0->unk3 = 5; + var0->unk1 = 1; + var0->unk4 = 0x80; + var0->unk8 = gUnk_02000D00; + for (i = 0; i < 16; i++) { + var0->unk6 = 0; + var1 = i * 16; + for (j = 0; j < 16; j++) { + sub_0805F7DC(var1, var0); + var1++; + } + sub_0801D66C(gUnk_02000D00, (void*)(BG_VRAM + i * 0x400), 0x400); + } + sub_0805F300(var0); + } +} + +static void sub_080507FC(void) { + gUnk_0200AF00.unk1A = 0x140; + gUnk_0200AF00.unk20 = 0x24; +} + +void sub_08050810(void) { + gUnk_0200AF00.unk1A = 0xD0; + gUnk_0200AF00.unk20 = 0x24; +} + +void sub_08050820(void) { + gUnk_080FC8FC[gChooseFileState.state](); + sub_08050A64(gUnk_02019EE0.unk6); +} + +void sub_08050848(void) { + sub_080503A8(0x7); + sub_0805070C(); + gUnk_02019EE0.unk7 = 0; + sub_08050AFC(gUnk_02019EE0.unk6); + sub_080A7114(1); +} + +void sub_0805086C(void) { + gUnk_080FC908[gChooseFileState.subState](); +} + +void sub_08050888(void) { + if (!gFadeControl.active) { + switch (gUnk_02019EE0.unk8[gUnk_02019EE0.unk7]) { + case 0: + sub_0805194C(gUnk_02019EE0.unk7); + gChooseFileState.subState = 2; + break; + case 1: + gChooseFileState.subState = 2; + break; + default: + sub_0805194C(gUnk_02019EE0.unk7); + sub_08050318(0, gUnk_02019EE0.unk7 + 1); + gChooseFileState.timer = 30; + gChooseFileState.subState = 1; + break; + } + } +} + +void sub_080508E4(void) { + if (gChooseFileState.timer == 0) { + if (gUnk_03000FF0.newKeys & (A_BUTTON | START_BUTTON)) { + gChooseFileState.subState = 2; + } + } else { + gChooseFileState.timer--; + } +} + +void sub_08050910(void) { + sub_08050384(); + if (++gUnk_02019EE0.unk7 > 2) { + sub_080A7114(2); + } else { + gChooseFileState.subState = 0; + } +} From 624dfdb282a7c3dead17da04b5b527e0cc8cc85a Mon Sep 17 00:00:00 2001 From: theo3 Date: Mon, 17 Aug 2020 21:38:36 -0700 Subject: [PATCH 144/158] function collision --- src/enemy/acroBandits.c | 1 - 1 file changed, 1 deletion(-) diff --git a/src/enemy/acroBandits.c b/src/enemy/acroBandits.c index da3b7923..b183b93f 100644 --- a/src/enemy/acroBandits.c +++ b/src/enemy/acroBandits.c @@ -13,7 +13,6 @@ extern u32 sub_080322A4(Entity*); void sub_080322E8(Entity*); extern void sub_08032338(Entity*); extern Entity* sub_08049DF4(u32); -extern u8 sub_08049F84(Entity*, u32); extern void sub_0804A9FC(Entity*, u32); extern void sub_0804AA30(Entity*, void (*const funcs[])(Entity*)); extern u32 sub_0806FCB8(Entity*, u32, u32, u32); From 3ce25836aeda87a0d72461bdfed5140d4faedb16 Mon Sep 17 00:00:00 2001 From: Behemoth Date: Tue, 18 Aug 2020 10:33:34 +0200 Subject: [PATCH 145/158] decompile backgroundCloud --- asm/backgroundCloud.s | 175 ----------------------------------- linker.ld | 2 +- src/object/backgroundCloud.c | 59 ++++++++++++ 3 files changed, 60 insertions(+), 176 deletions(-) delete mode 100644 asm/backgroundCloud.s create mode 100644 src/object/backgroundCloud.c diff --git a/asm/backgroundCloud.s b/asm/backgroundCloud.s deleted file mode 100644 index 0ed3e9f4..00000000 --- a/asm/backgroundCloud.s +++ /dev/null @@ -1,175 +0,0 @@ - .include "asm/macros.inc" - - .include "constants/constants.inc" - - .syntax unified - - .text - - - thumb_func_start BackgroundCloud -BackgroundCloud: @ 0x0808F640 - push {lr} - ldr r2, _0808F654 @ =gUnk_08121EA4 - ldrb r1, [r0, #0xc] - lsls r1, r1, #2 - adds r1, r1, r2 - ldr r1, [r1] - bl _call_via_r1 - pop {pc} - .align 2, 0 -_0808F654: .4byte gUnk_08121EA4 - - thumb_func_start sub_0808F658 -sub_0808F658: @ 0x0808F658 - push {r4, r5, lr} - adds r5, r0, #0 - movs r2, #1 - movs r0, #1 - strb r0, [r5, #0xc] - ldrb r1, [r5, #0x18] - subs r0, #5 - ands r0, r1 - orrs r0, r2 - strb r0, [r5, #0x18] - ldrb r0, [r5, #0x1b] - movs r1, #0xc0 - orrs r0, r1 - strb r0, [r5, #0x1b] - ldrb r0, [r5, #0x19] - orrs r0, r1 - strb r0, [r5, #0x19] - ldrb r0, [r5, #0xa] - adds r3, r5, #0 - adds r3, #0x29 - movs r1, #7 - ands r1, r0 - ldrb r2, [r3] - movs r0, #8 - rsbs r0, r0, #0 - ands r0, r2 - orrs r0, r1 - strb r0, [r3] - ldrb r0, [r5, #0xa] - strb r0, [r5, #0x1e] - movs r0, #8 - strb r0, [r5, #0x15] - ldr r1, _0808F6D8 @ =gUnk_08121EB0 - ldrb r0, [r5, #0xa] - adds r0, r0, r1 - ldrb r0, [r0] - movs r4, #0 - strh r0, [r5, #0x24] - ldr r3, _0808F6DC @ =gRoomControls - ldrh r1, [r3, #6] - adds r2, r1, #0 - subs r2, #0x60 - adds r0, r5, #0 - adds r0, #0x78 - strh r2, [r0] - ldrh r0, [r3, #0x1e] - adds r1, r1, r0 - adds r1, #0x60 - adds r0, r5, #0 - adds r0, #0x7a - strh r1, [r0] - strb r4, [r5, #0x14] - bl Random - movs r1, #0xf - ands r0, r1 - lsls r0, r0, #4 - ldrh r1, [r5, #0x2e] - adds r0, r0, r1 - strh r0, [r5, #0x2e] - strb r4, [r5, #0xe] - strb r4, [r5, #0xd] - pop {r4, r5, pc} - .align 2, 0 -_0808F6D8: .4byte gUnk_08121EB0 -_0808F6DC: .4byte gRoomControls - - thumb_func_start sub_0808F6E0 -sub_0808F6E0: @ 0x0808F6E0 - push {r4, lr} - adds r4, r0, #0 - bl sub_0806F69C - adds r0, r4, #0 - adds r0, #0x78 - movs r2, #0x2e - ldrsh r1, [r4, r2] - movs r2, #0 - ldrsh r0, [r0, r2] - cmp r1, r0 - blt _0808F704 - adds r0, r4, #0 - adds r0, #0x7a - movs r2, #0 - ldrsh r0, [r0, r2] - cmp r1, r0 - ble _0808F708 -_0808F704: - movs r0, #2 - strb r0, [r4, #0xc] -_0808F708: - pop {r4, pc} - .align 2, 0 - - thumb_func_start sub_0808F70C -sub_0808F70C: @ 0x0808F70C - push {r4, lr} - adds r4, r0, #0 - ldrb r0, [r4, #0xd] - cmp r0, #0 - bne _0808F75C - movs r0, #1 - strb r0, [r4, #0xd] - bl Random - movs r1, #7 - ands r0, r1 - lsls r0, r0, #3 - adds r0, #0x1f - strb r0, [r4, #0xe] - ldrb r1, [r4, #0x15] - movs r0, #0x10 - ands r0, r1 - cmp r0, #0 - beq _0808F738 - adds r0, r4, #0 - adds r0, #0x7a - b _0808F73C -_0808F738: - adds r0, r4, #0 - adds r0, #0x78 -_0808F73C: - ldrh r0, [r0] - strh r0, [r4, #0x2e] - ldrb r0, [r4, #0xa] - cmp r0, #2 - bne _0808F75C - bl Random - ldr r3, _0808F778 @ =gUnk_08121EB3 - ldrb r1, [r4, #0xb] - lsls r1, r1, #1 - movs r2, #1 - ands r2, r0 - adds r1, r1, r2 - adds r1, r1, r3 - ldrb r0, [r1] - strh r0, [r4, #0x32] -_0808F75C: - ldrb r1, [r4, #0xd] - cmp r1, #1 - bne _0808F774 - ldrb r0, [r4, #0xe] - subs r0, #1 - strb r0, [r4, #0xe] - lsls r0, r0, #0x18 - lsrs r0, r0, #0x18 - cmp r0, #0 - bne _0808F774 - strb r1, [r4, #0xc] - strb r0, [r4, #0xd] -_0808F774: - pop {r4, pc} - .align 2, 0 -_0808F778: .4byte gUnk_08121EB3 diff --git a/linker.ld b/linker.ld index a632b5a6..bc099aa9 100644 --- a/linker.ld +++ b/linker.ld @@ -750,7 +750,7 @@ SECTIONS { src/object/heartContainer.o(.text); src/object/object48.o(.text); src/object/object49.o(.text); - asm/backgroundCloud.o(.text); + src/object/backgroundCloud.o(.text); asm/object4B.o(.text); asm/pushableFurniture.o(.text); asm/furniture.o(.text); diff --git a/src/object/backgroundCloud.c b/src/object/backgroundCloud.c new file mode 100644 index 00000000..83941fc3 --- /dev/null +++ b/src/object/backgroundCloud.c @@ -0,0 +1,59 @@ +#include "global.h" +#include "entity.h" +#include "functions.h" + +extern void (*const gUnk_08121EA4[])(Entity*); +extern const u8 gUnk_08121EB0[]; +extern const u8 gUnk_08121EB3[]; + +void BackgroundCloud(Entity* this) { + gUnk_08121EA4[this->action](this); +} + +void sub_0808F658(Entity* this) { + this->action = 1; + this->spriteSettings.b.draw = 1; + this->spriteOrientation.flipY = 3; + this->spriteRendering.b3 = 3; + this->spritePriority.b0 = this->entityType.form; + this->frameIndex = this->entityType.form; + this->direction = 8; + this->nonPlanarMovement = gUnk_08121EB0[(this->entityType).form]; + this->field_0x78.HWORD = gRoomControls.roomOriginX - 0x60; + this->field_0x7a.HWORD = gRoomControls.roomOriginX + gRoomControls.filler2[3] + 0x60; + this->animationState = 0; + this->x.HALF.HI += (Random() & 0xf) << 4; + this->actionDelay = 0; + this->previousActionFlag = 0; +} + +void sub_0808F6E0(Entity* this) { + sub_0806F69C(this); + + if ((short)this->x.HALF.HI < (short)this->field_0x78.HWORD || + (short)this->x.HALF.HI > (short)this->field_0x7a.HWORD) + this->action = 2; +} + +void sub_0808F70C(Entity* this) { + if (this->previousActionFlag == 0) { + this->previousActionFlag = 1; + this->actionDelay = ((Random() & 7) << 3) + 31; + + if ((this->direction & 0x10)) { + this->x.HALF.HI = this->field_0x7a.HWORD; + } else { + this->x.HALF.HI = this->field_0x78.HWORD; + } + + if (this->entityType.form == 2) + this->y.HALF.HI = gUnk_08121EB3[this->entityType.parameter * 2 + (Random() & 1)]; + } + + if (this->previousActionFlag == 1) { + if (--this->actionDelay == 0) { + this->action = 1; + this->previousActionFlag = 0; + } + } +} From f89fa848059ff8f25adeda34203fc515c13a3f82 Mon Sep 17 00:00:00 2001 From: Behemoth Date: Tue, 18 Aug 2020 10:37:32 +0200 Subject: [PATCH 146/158] delete already decompiled bell --- asm/bell.s | 58 ------------------------------------------------------ 1 file changed, 58 deletions(-) delete mode 100644 asm/bell.s diff --git a/asm/bell.s b/asm/bell.s deleted file mode 100644 index fdc37e1b..00000000 --- a/asm/bell.s +++ /dev/null @@ -1,58 +0,0 @@ - .include "asm/macros.inc" - - .include "constants/constants.inc" - - .syntax unified - - .text - - - thumb_func_start Bell -Bell: @ 0x08097D78 - push {lr} - ldr r2, _08097D8C @ =gUnk_08123384 - ldrb r1, [r0, #0xc] - lsls r1, r1, #2 - adds r1, r1, r2 - ldr r1, [r1] - bl _call_via_r1 - pop {pc} - .align 2, 0 -_08097D8C: .4byte gUnk_08123384 - - thumb_func_start sub_08097D90 -sub_08097D90: @ 0x08097D90 - push {r4, lr} - adds r4, r0, #0 - movs r3, #1 - movs r2, #1 - strb r2, [r4, #0xc] - ldrb r1, [r4, #0x18] - movs r0, #4 - rsbs r0, r0, #0 - ands r0, r1 - orrs r0, r3 - strb r0, [r4, #0x18] - adds r0, r4, #0 - adds r0, #0x38 - strb r2, [r0] - adds r2, r4, #0 - adds r2, #0x29 - ldrb r1, [r2] - movs r0, #8 - rsbs r0, r0, #0 - ands r0, r1 - strb r0, [r2] - adds r0, r4, #0 - bl UpdateSpriteForCollisionLayer - adds r0, r4, #0 - movs r1, #0 - bl InitAnimationForceUpdate - pop {r4, pc} - .align 2, 0 - - thumb_func_start sub_08097DCC -sub_08097DCC: @ 0x08097DCC - push {lr} - bl UpdateAnimationSingleFrame - pop {pc} From 68ea79b8fc80c716bd93dd355627eb3d1bb0b209 Mon Sep 17 00:00:00 2001 From: Ibot02 Date: Tue, 18 Aug 2020 11:14:37 +0200 Subject: [PATCH 147/158] Matched sub_080322E8 By @ShantyTown#6258 in discord. --- asm/non_matching/acroBandits/sub_080322E8.inc | 48 ------------------- src/enemy/acroBandits.c | 21 ++++---- 2 files changed, 10 insertions(+), 59 deletions(-) delete mode 100644 asm/non_matching/acroBandits/sub_080322E8.inc diff --git a/asm/non_matching/acroBandits/sub_080322E8.inc b/asm/non_matching/acroBandits/sub_080322E8.inc deleted file mode 100644 index 6c4a775b..00000000 --- a/asm/non_matching/acroBandits/sub_080322E8.inc +++ /dev/null @@ -1,48 +0,0 @@ - - .syntax unified - - .text - - push {lr} - adds r3, r0, #0 - adds r2, r3, #0 - adds r2, #0x78 - ldrb r0, [r2] - cmp r0, #0 - beq _08032316 - subs r0, #1 - strb r0, [r2] - lsls r0, r0, #0x18 - cmp r0, #0 - bne _08032334 - ldrb r2, [r3, #0x18] - lsls r1, r2, #0x19 - lsrs r1, r1, #0x1f - movs r0, #1 - eors r1, r0 - lsls r1, r1, #6 - subs r0, #0x42 - ands r0, r2 - orrs r0, r1 - strb r0, [r3, #0x18] - b _08032334 -_08032316: - ldrb r1, [r3, #0x15] - movs r0, #0xf - ands r0, r1 - cmp r0, #0 - beq _08032334 - lsrs r1, r1, #4 - movs r0, #1 - eors r1, r0 - ldrb r0, [r3, #0x18] - lsls r0, r0, #0x19 - lsrs r0, r0, #0x1f - cmp r1, r0 - beq _08032334 - movs r0, #6 - strb r0, [r2] -_08032334: - pop {pc} - .align 2, 0 - .syntax divided diff --git a/src/enemy/acroBandits.c b/src/enemy/acroBandits.c index b183b93f..f209bdbb 100644 --- a/src/enemy/acroBandits.c +++ b/src/enemy/acroBandits.c @@ -545,25 +545,24 @@ u32 sub_080322A4(Entity* this) { return 0; } -#if NON_MATCHING void sub_080322E8(Entity* this) { + u8 tmp; if (this->field_0x78.HALF.LO) { if (--this->field_0x78.HALF.LO == 0) { - this->spriteSettings.b.flipX = this->spriteOrientation.flipX; + u32 flipX = this->spriteSettings.b.flipX; + this->spriteSettings.b.flipX = flipX ^ 1; } } else { - if ((this->direction & 0xf) && - ((this->direction >> 4 ^ 1) != -((int)((u32)this->spriteSettings.raw << 0x19) >> 0x1f))) { - this->field_0x78.HALF.LO = 6; + tmp = this->direction; + if (tmp & 0xF) { + tmp >>= 4; + tmp ^= 1; + if (tmp != this->spriteSettings.b.flipX) { + this->field_0x78.HALF.LO = 6; + } } } } -#else -NAKED -void sub_080322E8(Entity* this) { - asm(".include \"asm/non_matching/acroBandits/sub_080322E8.inc\""); -} -#endif void sub_08032338(Entity *this) { if ((((Entity*)this->field_0x7c.WORD)->actionDelay += 15) != 80) From f0641dda41cf5fb3ab81b59d7bf64a062f829164 Mon Sep 17 00:00:00 2001 From: Behemoth Date: Tue, 18 Aug 2020 14:32:08 +0200 Subject: [PATCH 148/158] decompile bakerOven --- asm/bakerOven.s | 289 ----------------------------------------- linker.ld | 2 +- src/object/bakerOven.c | 102 +++++++++++++++ 3 files changed, 103 insertions(+), 290 deletions(-) delete mode 100644 asm/bakerOven.s create mode 100644 src/object/bakerOven.c diff --git a/asm/bakerOven.s b/asm/bakerOven.s deleted file mode 100644 index 48b0511a..00000000 --- a/asm/bakerOven.s +++ /dev/null @@ -1,289 +0,0 @@ - .include "asm/macros.inc" - - .include "constants/constants.inc" - - .syntax unified - - .text - - - thumb_func_start BakerOven -BakerOven: @ 0x0809CC5C - push {lr} - ldr r2, _0809CC70 @ =gUnk_08123E20 - ldrb r1, [r0, #0xc] - lsls r1, r1, #2 - adds r1, r1, r2 - ldr r1, [r1] - bl _call_via_r1 - pop {pc} - .align 2, 0 -_0809CC70: .4byte gUnk_08123E20 - - thumb_func_start sub_0809CC74 -sub_0809CC74: @ 0x0809CC74 - push {r4, r5, lr} - adds r5, r0, #0 - movs r4, #1 - strb r4, [r5, #0xc] - bl UpdateSpriteForCollisionLayer - ldrb r0, [r5, #0xa] - cmp r0, #0 - bne _0809CCD4 - adds r2, r5, #0 - adds r2, #0x29 - ldrb r0, [r2] - movs r1, #8 - rsbs r1, r1, #0 - ands r1, r0 - movs r0, #5 - orrs r1, r0 - strb r1, [r2] - movs r4, #0 -_0809CC9A: - movs r0, #0x92 - movs r1, #1 - adds r2, r4, #0 - bl CreateObject - adds r1, r0, #0 - adds r4, #1 - cmp r1, #0 - beq _0809CCBE - str r5, [r1, #0x50] - lsrs r2, r4, #1 - lsls r2, r2, #0x14 - ldr r0, _0809CCCC @ =0xFFF80000 - adds r2, r2, r0 - adds r0, r5, #0 - ldr r3, _0809CCD0 @ =0xFFF20000 - bl PositionRelative -_0809CCBE: - cmp r4, #2 - bls _0809CC9A - adds r0, r5, #0 - bl sub_0809CDF0 - b _0809CD0A - .align 2, 0 -_0809CCCC: .4byte 0xFFF80000 -_0809CCD0: .4byte 0xFFF20000 -_0809CCD4: - ldrb r1, [r5, #0xb] - adds r0, r4, #0 - ands r0, r1 - cmp r0, #0 - beq _0809CCF2 - ldrb r1, [r5, #0x18] - movs r0, #4 - rsbs r0, r0, #0 - ands r0, r1 - movs r1, #1 - orrs r0, r1 - strb r0, [r5, #0x18] - movs r0, #0x14 - strb r0, [r5, #0xe] - b _0809CD02 -_0809CCF2: - movs r0, #2 - strb r0, [r5, #0xc] - ands r0, r1 - movs r1, #0x12 - cmp r0, #0 - beq _0809CD00 - movs r1, #0x14 -_0809CD00: - strb r1, [r5, #0xe] -_0809CD02: - adds r0, r5, #0 - movs r1, #0 - bl InitializeAnimation -_0809CD0A: - pop {r4, r5, pc} - - thumb_func_start sub_0809CD0C -sub_0809CD0C: @ 0x0809CD0C - push {r4, r5, r6, lr} - adds r4, r0, #0 - ldrb r0, [r4, #0xa] - cmp r0, #0 - beq _0809CDAC - adds r0, r4, #0 - bl GetNextFrame - adds r1, r4, #0 - adds r1, #0x5a - ldrb r2, [r1] - movs r0, #1 - ands r0, r2 - cmp r0, #0 - beq _0809CD36 - movs r0, #0xfe - ands r0, r2 - strb r0, [r1] - ldrh r0, [r4, #0x32] - adds r0, #1 - strh r0, [r4, #0x32] -_0809CD36: - ldrb r1, [r1] - movs r0, #0x80 - ands r0, r1 - cmp r0, #0 - beq _0809CD56 - adds r0, r4, #0 - adds r0, #0x59 - ldrb r0, [r0] - cmp r0, #1 - bne _0809CD56 - movs r0, #2 - strb r0, [r4, #0xc] - ldrb r1, [r4, #0x18] - subs r0, #6 - ands r0, r1 - strb r0, [r4, #0x18] -_0809CD56: - ldrb r0, [r4, #0xf] - cmp r0, #0 - bne _0809CDAC - ldr r5, _0809CDB0 @ =gPlayerEntity - adds r6, r5, #0 - adds r6, #0x3d - movs r0, #0 - ldrsb r0, [r6, r0] - cmp r0, #0 - bne _0809CDAC - ldrb r0, [r4, #0x1e] - cmp r0, #0 - beq _0809CDAC - adds r0, r4, #0 - adds r1, r5, #0 - movs r2, #4 - bl sub_0806FC80 - cmp r0, #0 - beq _0809CDAC - ldrb r0, [r4, #0xf] - adds r0, #1 - strb r0, [r4, #0xf] - movs r0, #2 - rsbs r0, r0, #0 - bl ModHealth - adds r0, r5, #0 - movs r1, #0x7a - bl sub_0800449C - movs r1, #0x10 - strb r1, [r6] - adds r0, r5, #0 - adds r0, #0x3e - strb r1, [r0] - adds r2, r5, #0 - adds r2, #0x42 - movs r0, #0xc - strb r0, [r2] - adds r0, r5, #0 - adds r0, #0x46 - strh r1, [r0] -_0809CDAC: - pop {r4, r5, r6, pc} - .align 2, 0 -_0809CDB0: .4byte gPlayerEntity - - thumb_func_start sub_0809CDB4 -sub_0809CDB4: @ 0x0809CDB4 - push {lr} - adds r3, r0, #0 - ldrb r0, [r3, #0xe] - subs r0, #1 - strb r0, [r3, #0xe] - lsls r0, r0, #0x18 - lsrs r1, r0, #0x18 - cmp r1, #0 - bne _0809CDEC - movs r2, #1 - movs r0, #1 - strb r0, [r3, #0xc] - movs r0, #0x1e - strb r0, [r3, #0xe] - strb r1, [r3, #0xf] - ldrb r1, [r3, #0x18] - subs r0, #0x22 - ands r0, r1 - orrs r0, r2 - strb r0, [r3, #0x18] - ldr r0, [r3, #0x50] - ldrh r0, [r0, #0x32] - subs r0, #0xe - strh r0, [r3, #0x32] - adds r0, r3, #0 - movs r1, #0 - bl InitializeAnimation -_0809CDEC: - pop {pc} - .align 2, 0 - - thumb_func_start sub_0809CDF0 -sub_0809CDF0: @ 0x0809CDF0 - push {r4, r5, r6, lr} - adds r4, r0, #0 - movs r0, #0x2e - ldrsh r1, [r4, r0] - ldr r2, _0809CE80 @ =gRoomControls - ldrh r0, [r2, #6] - subs r1, r1, r0 - asrs r1, r1, #4 - movs r3, #0x3f - ands r1, r3 - movs r5, #0x32 - ldrsh r0, [r4, r5] - ldrh r2, [r2, #8] - subs r0, r0, r2 - asrs r0, r0, #4 - ands r0, r3 - lsls r0, r0, #6 - orrs r1, r0 - adds r0, r4, #0 - adds r0, #0x80 - strh r1, [r0] - ldrh r6, [r0] - ldr r0, _0809CE84 @ =0x0000402E - subs r1, r6, #1 - adds r4, #0x38 - ldrb r2, [r4] - bl SetTile - ldr r5, _0809CE88 @ =0x00004022 - ldrb r2, [r4] - adds r0, r5, #0 - adds r1, r6, #0 - bl SetTile - adds r1, r6, #1 - ldrb r2, [r4] - adds r0, r5, #0 - bl SetTile - adds r5, #4 - adds r1, r6, #0 - subs r1, #0x41 - ldrb r2, [r4] - adds r0, r5, #0 - bl SetTile - adds r1, r6, #0 - subs r1, #0x40 - ldrb r2, [r4] - adds r0, r5, #0 - bl SetTile - ldr r0, _0809CE8C @ =0x00004024 - adds r1, r6, #0 - subs r1, #0x3f - ldrb r2, [r4] - bl SetTile - adds r1, r6, #0 - subs r1, #0x81 - ldrb r2, [r4] - adds r0, r5, #0 - bl SetTile - adds r1, r6, #0 - subs r1, #0x80 - ldrb r2, [r4] - adds r0, r5, #0 - bl SetTile - pop {r4, r5, r6, pc} - .align 2, 0 -_0809CE80: .4byte gRoomControls -_0809CE84: .4byte 0x0000402E -_0809CE88: .4byte 0x00004022 -_0809CE8C: .4byte 0x00004024 diff --git a/linker.ld b/linker.ld index bc099aa9..ecfef159 100644 --- a/linker.ld +++ b/linker.ld @@ -822,7 +822,7 @@ SECTIONS { asm/frozenWaterElement.o(.text); asm/object90.o(.text); asm/object91.o(.text); - asm/bakerOven.o(.text); + src/object/bakerOven.o(.text); asm/object93.o(.text); src/object/windTribeFlag.o(.text); asm/bird.o(.text); diff --git a/src/object/bakerOven.c b/src/object/bakerOven.c new file mode 100644 index 00000000..0ddc3132 --- /dev/null +++ b/src/object/bakerOven.c @@ -0,0 +1,102 @@ +#include "global.h" +#include "entity.h" +#include "functions.h" + +extern void sub_0800449C(Entity*, u32); +extern u32 sub_0806FC80(Entity*, Entity*, s32); +extern void sub_0809CDF0(Entity*); + +extern void (*const gUnk_08123E20[])(Entity*); + +void BakerOven(Entity* this) { + gUnk_08123E20[this->action](this); +} + +void sub_0809CC74(Entity* this) { + u32 i; + Entity* ent; + + this->action = 1; + UpdateSpriteForCollisionLayer(this); + + if (this->entityType.form == 0) { + this->spritePriority.b0 = 5; + /* Create steam clouds */ + for (i = 0; i < 3; i++) { + ent = CreateObject(0x92, 1, i); + if (ent) { + ent->parent = this; + PositionRelative(this, ent, (((i + 1) / 2) * 0x100000) - 0x80000, -0xe0000); + } + } + sub_0809CDF0(this); + } else { + if (this->entityType.parameter & 1) { + this->spriteSettings.b.draw = 1; + this->actionDelay = 20; + } else { + this->action = 2; + this->actionDelay = (this->entityType.parameter & 2) ? 20 : 18; + } + InitializeAnimation(this, 0); + } +} + +void sub_0809CD0C(Entity* this) { + u8* frames; + + if (this->entityType.form) { + GetNextFrame(this); + frames = &this->frames.all; + if (*frames & 1) { + *frames &= 0xfe; + this->y.HALF.HI++; + } + + if ((*frames & 0x80) && this->frameDuration == 1) { + this->action = 2; + this->spriteSettings.b.draw = 0; + } + + /* Damage minish link if he touches a steam cloud */ + if (this->field_0xf == 0 && gPlayerEntity.hurtBlinkTime == 0 && this->frameIndex && + sub_0806FC80(this, &gPlayerEntity, 4)) { + this->field_0xf++; + ModHealth(-2); + sub_0800449C(&gPlayerEntity, 0x7a); + gPlayerEntity.hurtBlinkTime = 16; + gPlayerEntity.field_0x3e = 16; + gPlayerEntity.field_0x42 = 12; + gPlayerEntity.field_0x46 = 16; + } + } +} + +void sub_0809CDB4(Entity* this) { + /* Reset cloud position and start animation. */ + if (--this->actionDelay == 0) { + this->action = 1; + this->actionDelay = 30; + this->field_0xf = 0; + this->spriteSettings.b.draw = 1; + this->y.HALF.HI = this->parent->y.HALF.HI - 0xe; + InitializeAnimation(this, 0); + } +} + +void sub_0809CDF0(Entity* this) { + u32 y; + + this->field_0x80.HWORD = (((this->x.HALF.HI - gRoomControls.roomOriginX) >> 4) & 0x3f) | + (((this->y.HALF.HI - gRoomControls.roomOriginY) >> 4 & 0x3f) << 6); + + y = this->field_0x80.HWORD; + SetTile(0x402e, y - 0x01, this->collisionLayer); + SetTile(0x4022, y - 0x00, this->collisionLayer); + SetTile(0x4022, y + 0x01, this->collisionLayer); + SetTile(0x4026, y - 0x41, this->collisionLayer); + SetTile(0x4026, y - 0x40, this->collisionLayer); + SetTile(0x4024, y - 0x3f, this->collisionLayer); + SetTile(0x4026, y - 0x81, this->collisionLayer); + SetTile(0x4026, y - 0x80, this->collisionLayer); +} From d275c0e3cd0541aa1c8b48348f171b6ae578610e Mon Sep 17 00:00:00 2001 From: Behemoth Date: Tue, 18 Aug 2020 14:37:32 +0200 Subject: [PATCH 149/158] short -> s16 --- src/object/backgroundCloud.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/object/backgroundCloud.c b/src/object/backgroundCloud.c index 83941fc3..a6106ca7 100644 --- a/src/object/backgroundCloud.c +++ b/src/object/backgroundCloud.c @@ -30,8 +30,8 @@ void sub_0808F658(Entity* this) { void sub_0808F6E0(Entity* this) { sub_0806F69C(this); - if ((short)this->x.HALF.HI < (short)this->field_0x78.HWORD || - (short)this->x.HALF.HI > (short)this->field_0x7a.HWORD) + if ((s16)this->x.HALF.HI < (s16)this->field_0x78.HWORD || + (s16)this->x.HALF.HI > (s16)this->field_0x7a.HWORD) this->action = 2; } From 024c764b6768a68f26e7467a30512d116bd3bdca Mon Sep 17 00:00:00 2001 From: Marcus Huderle Date: Wed, 19 Aug 2020 19:11:25 -0500 Subject: [PATCH 150/158] Decompile a couple more chooseFile functions --- asm/chooseFile.s | 266 +---------------------------------------------- src/chooseFile.c | 193 +++++++++++++++++++++++++++++++++- 2 files changed, 197 insertions(+), 262 deletions(-) diff --git a/asm/chooseFile.s b/asm/chooseFile.s index d23c0314..1108ccd0 100755 --- a/asm/chooseFile.s +++ b/asm/chooseFile.s @@ -5,262 +5,6 @@ .text - thumb_func_start sub_08050940 -sub_08050940: @ 0x08050940 - push {r4, r5, r6, lr} - ldr r3, _0805099C @ =gUnk_02019EE0 - ldrb r0, [r3] - cmp r0, #0 - beq _0805094C - b _08050A58 -_0805094C: - ldrb r4, [r3, #6] - ldr r0, _080509A0 @ =gUnk_03000FF0 - ldrh r2, [r0, #2] - ldrh r1, [r0] - movs r0, #0x80 - lsls r0, r0, #2 - ands r0, r1 - cmp r0, #0 - beq _08050974 - adds r0, r3, #0 - adds r0, #8 - adds r0, r4, r0 - ldrb r0, [r0] - lsls r0, r0, #0x18 - asrs r0, r0, #0x18 - cmp r0, #1 - bne _08050974 - movs r0, #0xc1 - rsbs r0, r0, #0 - ands r2, r0 -_08050974: - movs r0, #0x80 - lsls r0, r0, #0x12 - ldrb r0, [r0, #7] - movs r6, #3 - cmp r0, #1 - bls _08050982 - movs r6, #4 -_08050982: - ldr r0, _080509A4 @ =gUnk_02032EC0 - ldrb r5, [r0, #2] - adds r1, r0, #0 - cmp r2, #0x40 - beq _080509B6 - cmp r2, #0x40 - bhi _080509A8 - cmp r2, #1 - beq _080509E0 - cmp r2, #8 - beq _080509E0 - b _08050A10 - .align 2, 0 -_0805099C: .4byte gUnk_02019EE0 -_080509A0: .4byte gUnk_03000FF0 -_080509A4: .4byte gUnk_02032EC0 -_080509A8: - cmp r2, #0x80 - beq _080509BE - movs r0, #0x80 - lsls r0, r0, #1 - cmp r2, r0 - beq _080509C8 - b _08050A10 -_080509B6: - cmp r4, #0 - ble _08050A10 - subs r4, #1 - b _08050A10 -_080509BE: - subs r0, r6, #1 - cmp r0, r4 - ble _08050A10 - adds r4, #1 - b _08050A10 -_080509C8: - ldr r0, _080509DC @ =gUnk_02019EE0 - adds r0, #8 - adds r0, r4, r0 - ldrb r0, [r0] - lsls r0, r0, #0x18 - asrs r0, r0, #0x18 - cmp r0, #1 - bne _08050A10 - movs r5, #3 - b _08050A10 - .align 2, 0 -_080509DC: .4byte gUnk_02019EE0 -_080509E0: - adds r0, r4, #0 - bl sub_0805041C - cmp r4, #3 - bne _080509EE - movs r5, #2 - b _08050A0E -_080509EE: - ldr r0, _08050A04 @ =gUnk_02019EE0 - adds r0, #8 - adds r0, r4, r0 - ldrb r0, [r0] - lsls r0, r0, #0x18 - asrs r0, r0, #0x18 - cmp r0, #0 - beq _08050A08 - cmp r0, #1 - beq _08050A0C - b _08050A0E - .align 2, 0 -_08050A04: .4byte gUnk_02019EE0 -_08050A08: - movs r5, #1 - b _08050A0E -_08050A0C: - movs r5, #4 -_08050A0E: - ldr r1, _08050A5C @ =gUnk_02032EC0 -_08050A10: - ldrb r0, [r1, #2] - cmp r0, r5 - beq _08050A22 - adds r0, r5, #0 - bl sub_080503BC - movs r0, #0x6a - bl PlaySFX -_08050A22: - adds r0, r4, r6 - adds r1, r6, #0 - bl __modsi3 - adds r4, r0, #0 - ldr r5, _08050A60 @ =gUnk_02019EE0 - ldrb r0, [r5, #6] - cmp r0, r4 - beq _08050A42 - strb r4, [r5, #6] - adds r0, r4, #0 - bl sub_08050AFC - movs r0, #0x69 - bl PlaySFX -_08050A42: - adds r0, r5, #0 - adds r0, #8 - ldrb r5, [r5, #6] - adds r0, r0, r5 - ldrb r0, [r0] - lsls r0, r0, #0x18 - asrs r0, r0, #0x18 - cmp r0, #1 - bne _08050A58 - bl sub_08050810 -_08050A58: - pop {r4, r5, r6, pc} - .align 2, 0 -_08050A5C: .4byte gUnk_02032EC0 -_08050A60: .4byte gUnk_02019EE0 - - thumb_func_start sub_08050A64 -sub_08050A64: @ 0x08050A64 - push {r4, lr} - ldr r1, _08050AF0 @ =gUnk_02019EE0 - adds r1, #8 - adds r0, r0, r1 - ldrb r0, [r0] - lsls r0, r0, #0x18 - asrs r0, r0, #0x18 - cmp r0, #1 - bne _08050AEC - ldr r4, _08050AF4 @ =gUnk_03001010 - movs r0, #0 - strh r0, [r4, #4] - strh r0, [r4, #6] - movs r0, #0x80 - lsls r0, r0, #3 - strh r0, [r4, #8] - movs r0, #0x40 - bl GetInventoryValue - cmp r0, #0 - beq _08050A9E - movs r0, #0xa2 - strh r0, [r4] - movs r0, #0x36 - strh r0, [r4, #2] - ldr r0, _08050AF8 @ =0x00000145 - movs r1, #0x24 - bl sub_080ADA14 -_08050A9E: - movs r0, #0x41 - bl GetInventoryValue - cmp r0, #0 - beq _08050AB8 - movs r0, #0x96 - strh r0, [r4] - movs r0, #0x3d - strh r0, [r4, #2] - ldr r0, _08050AF8 @ =0x00000145 - movs r1, #0x22 - bl sub_080ADA14 -_08050AB8: - movs r0, #0x42 - bl GetInventoryValue - cmp r0, #0 - beq _08050AD2 - movs r0, #0xae - strh r0, [r4] - movs r0, #0x3d - strh r0, [r4, #2] - ldr r0, _08050AF8 @ =0x00000145 - movs r1, #0x23 - bl sub_080ADA14 -_08050AD2: - movs r0, #0x43 - bl GetInventoryValue - cmp r0, #0 - beq _08050AEC - movs r0, #0xa2 - strh r0, [r4] - movs r0, #0x44 - strh r0, [r4, #2] - ldr r0, _08050AF8 @ =0x00000145 - movs r1, #0x21 - bl sub_080ADA14 -_08050AEC: - pop {r4, pc} - .align 2, 0 -_08050AF0: .4byte gUnk_02019EE0 -_08050AF4: .4byte gUnk_03001010 -_08050AF8: .4byte 0x00000145 - - thumb_func_start sub_08050AFC -sub_08050AFC: @ 0x08050AFC - push {r4, r5, lr} - adds r4, r0, #0 - bl sub_0805041C - ldr r5, _08050B30 @ =gUnk_02021F30 - movs r1, #0x80 - lsls r1, r1, #4 - adds r0, r5, #0 - bl _DmaZero - ldr r0, _08050B34 @ =gUnk_02019EE0 - adds r0, #8 - adds r4, r4, r0 - movs r0, #0 - ldrsb r0, [r4, r0] - cmp r0, #1 - bne _08050B28 - movs r1, #0xa7 - lsls r1, r1, #2 - adds r0, r5, r1 - bl sub_08050B3C -_08050B28: - ldr r1, _08050B38 @ =gScreen - movs r0, #1 - strh r0, [r1, #0x1a] - pop {r4, r5, pc} - .align 2, 0 -_08050B30: .4byte gUnk_02021F30 -_08050B34: .4byte gUnk_02019EE0 -_08050B38: .4byte gScreen - thumb_func_start sub_08050B3C sub_08050B3C: @ 0x08050B3C push {r4, r5, r6, r7, lr} @@ -284,7 +28,7 @@ _08050B5A: ldrb r0, [r0] lsrs r3, r0, #1 cmp r3, #0 - beq _08050C0A + beq RETURN cmp r2, r3 ble _08050B6C adds r2, r3, #0 @@ -325,8 +69,8 @@ _08050B9A: movs r7, #0xa mov r8, r7 mov r0, r8 - mov r7, ip - subs r0, r0, r7 + mov r7, ip @ var5 + subs r0, r0, r7 @ 10 - var5 lsls r0, r0, #1 ldr r7, _08050C24 @ =gUnk_080FC914 mov ip, r7 @@ -360,7 +104,7 @@ _08050B9A: _08050BEE: ldr r0, [sp, #4] cmp r0, #0 - beq _08050C0A + beq RETURN ldr r2, [sp] cmp r5, #9 ble _08050BFE @@ -373,7 +117,7 @@ _08050BFE: ldr r3, _08050C28 @ =0xFFFFF24D adds r1, r2, r3 strh r1, [r0, #2] -_08050C0A: +RETURN: add sp, #8 pop {r3, r4, r5} mov r8, r3 diff --git a/src/chooseFile.c b/src/chooseFile.c index 256e0da5..0c5a9474 100755 --- a/src/chooseFile.c +++ b/src/chooseFile.c @@ -1,6 +1,7 @@ #include "global.h" #include "functions.h" #include "main.h" +#include "player.h" #include "readKeyInput.h" #include "screen.h" @@ -38,7 +39,9 @@ typedef struct { extern struct_020227E8 gUnk_020227E8; typedef struct { - u8 filler0[0x800]; + u8 filler0[0x29C]; + u16 unk29C; + u8 filler29E[0x562]; } struct_02034CB0; extern struct_02034CB0 gUnk_02034CB0; @@ -46,6 +49,7 @@ extern struct_02034CB0 gUnk_02021F30; extern SaveFile gSaveFiles[]; extern u32 gUsedPalettes; extern u8 gUnk_02000D00[]; +extern u16 gUnk_03001010[5]; static void sub_08050624(u32); static void sub_0805066C(void); @@ -374,3 +378,190 @@ void sub_08050910(void) { gChooseFileState.subState = 0; } } + +void sub_08050940(void) { + int saveFileId; + u32 newKeys; + int var1; + u32 var2; + + if (gUnk_02019EE0.unk0) { + return; + } + + saveFileId = gUnk_02019EE0.unk6; + newKeys = gUnk_03000FF0.newKeys; + if ((gUnk_03000FF0.heldKeys & L_BUTTON) && gUnk_02019EE0.unk8[saveFileId] == 1) { + newKeys &= ~(DPAD_UP | DPAD_DOWN); + } + + var1 = ((struct_02000000 *)0x2000000)->gameLanguage > 1 ? 4 : 3; + var2 = gUnk_02032EC0.transitionType; + switch (newKeys) { + case DPAD_UP: + if (saveFileId > 0) { + saveFileId--; + } + break; + case DPAD_DOWN: + if (var1 - 1 > saveFileId) { + saveFileId++; + } + break; + case R_BUTTON: + if (gUnk_02019EE0.unk8[saveFileId] == 1) { + var2 = 3; + } + break; + case A_BUTTON: + case START_BUTTON: + sub_0805041C(saveFileId); + if (saveFileId == 3) { + var2 = 2; + } else { + switch (gUnk_02019EE0.unk8[saveFileId]) { + case 0: + var2 = 1; + break; + case 1: + var2 = 4; + break; + } + } + break; + } + + if (gUnk_02032EC0.transitionType != var2) { + sub_080503BC(var2); + PlaySFX(0x6A); + } + + saveFileId = (saveFileId + var1) % var1; + if (gUnk_02019EE0.unk6 != saveFileId) { + gUnk_02019EE0.unk6 = saveFileId; + sub_08050AFC(saveFileId); + PlaySFX(0x69); + } + + if (gUnk_02019EE0.unk8[gUnk_02019EE0.unk6] == 1) { + sub_08050810(); + } +} + +void sub_08050A64(u32 saveFileId) { + if (gUnk_02019EE0.unk8[saveFileId] != 1) { + return; + } + + gUnk_03001010[2] = 0; + gUnk_03001010[3] = 0; + gUnk_03001010[4] = 0x400; + + // Draw the save file's obtained elements. + if (GetInventoryValue(0x40)) { + gUnk_03001010[0] = 0xA2; + gUnk_03001010[1] = 0x36; + sub_080ADA14(0x145, 0x24); + } + if (GetInventoryValue(0x41)) { + gUnk_03001010[0] = 0x96; + gUnk_03001010[1] = 0x3D; + sub_080ADA14(0x145, 0x22); + } + if (GetInventoryValue(0x42)) { + gUnk_03001010[0] = 0xAE; + gUnk_03001010[1] = 0x3D; + sub_080ADA14(0x145, 0x23); + } + if (GetInventoryValue(0x43)) { + gUnk_03001010[0] = 0xA2; + gUnk_03001010[1] = 0x44; + sub_080ADA14(0x145, 0x21); + } +} + +void sub_08050B3C(u16*); + +void sub_08050AFC(u32 saveFileId) { + sub_0805041C(saveFileId); + _DmaZero(&gUnk_02021F30, sizeof(gUnk_02021F30)); + if (gUnk_02019EE0.unk8[saveFileId] == 1) { + sub_08050B3C(&gUnk_02021F30.unk29C); + } + gScreen.bg.bg2yOffset = 1; +} + +// typedef struct { +// u16* unk0; +// u32 unk4; +// } unk_08050B3C; + +// extern const u16 gUnk_080FC914[]; + +// void sub_08050B3C(u16* arg0) { +// unk_08050B3C sp; +// int var0; +// int var1; +// int var2; +// int var3; +// int var4; +// int var5; +// int var6; +// int var7; +// u16* var8; + +// sp.unk0 = arg0; +// var0 = gUnk_02002A40.stats.health * 2; +// if (var0 == 0) { +// var0 = 1; +// } + +// var1 = gUnk_02002A40.stats.maxHealth * 2; +// if (var1 == 0) { +// return; +// } + +// if (var0 > var1) { +// var0 = var1; +// } + +// sp.unk4 = var0 & 0x3; +// var2 = var0 >> 2; +// var5 = var2; +// if (var2 > 10) { +// var5 = 10; +// } + +// var6 = var2; +// var6 -= 10; +// var7 = var6; +// if (var6 < 0) { +// var7 = 0; +// } + +// var1 = var1 >> 2; +// var4 = var1; +// if (var1 > 10) { +// var1 = 10; +// } + +// var4 -= 10; +// sp.unk0[0] = 0xF24C; +// DmaCopy16(3, &gUnk_080FC914[10 - var5], &sp.unk0[1], var1 * 2); +// if (var4 > 0) { +// sp.unk0[0x20] = 0xF24C; +// DmaCopy16(3, &gUnk_080FC914[10 - var7], &sp.unk0[1], var4 * 2); +// } + +// if (!sp.unk4) { +// return; +// } + +// var8 = sp.unk0; +// if (var2 >= 10) { +// var2 = var6; +// var8 += 0x20; +// } + +// var8[var2 + 1] = sp.unk4 - 0xDB3; +// } From 78f629ecc30d3834c89f16c2dc61fe90b830e112 Mon Sep 17 00:00:00 2001 From: theo3 Date: Wed, 19 Aug 2020 18:57:17 -0700 Subject: [PATCH 151/158] entity.c refactoring and function naming --- asm/bigGoron.s | 22 +- asm/bird.s | 4 +- asm/book.s | 2 +- asm/code_08019444.s | 6 +- asm/code_0801CEC0.s | 4 +- asm/code_0804AEB0.s | 6 +- asm/code_0804B058.s | 8 +- asm/code_080526F8.s | 14 +- asm/code_0805436C.s | 6 +- asm/code_0805E3B0.s | 12 +- asm/code_0806EC20.s | 2 +- asm/code_080732D0.s | 6 +- asm/code_08078778.s | 2 +- asm/code_0807CC3C.s | 2 +- asm/code_080A5574.s | 16 +- asm/createEntity.s | 4 +- asm/fireballGuy.s | 4 +- asm/fourElements.s | 2 +- asm/getEmptyEntity.s | 12 +- asm/guardWithSpear.s | 2 +- asm/gyorgFemale.s | 4 +- asm/lilypadLarge.s | 4 +- asm/macroAcorn.s | 4 +- asm/macroBook.s | 4 +- asm/madderpillar.s | 4 +- asm/manager14.s | 2 +- asm/manager15.s | 2 +- asm/manager16.s | 4 +- asm/manager1A.s | 4 +- asm/manager1B.s | 2 +- asm/manager1E.s | 4 +- asm/manager20.s | 2 +- asm/manager22.s | 6 +- asm/manager24.s | 4 +- asm/manager26.s | 2 +- asm/manager28.s | 6 +- asm/manager29.s | 4 +- asm/manager2B.s | 6 +- asm/manager2D.s | 2 +- asm/manager32.s | 6 +- asm/manager36.s | 8 +- asm/manager5.s | 4 +- asm/managerB.s | 4 +- asm/managerD.s | 2 +- asm/managerF.s | 6 +- asm/mazaalBracelet.s | 4 +- asm/mazaalHead.s | 4 +- asm/mazaalMacro.s | 4 +- asm/moldorm.s | 4 +- asm/moldworm.s | 4 +- asm/non_matching/acroBandits/sub_08031C58.inc | 4 +- asm/non_matching/slime/sub_080450A8.inc | 4 +- asm/object3E.s | 4 +- asm/object6A.s | 12 +- asm/object97.s | 6 +- asm/object98.s | 4 +- asm/objectA5.s | 4 +- asm/objectB9.s | 4 +- asm/objectBA.s | 4 +- asm/pesto.s | 8 +- asm/pina.s | 10 +- asm/pullableLever.s | 4 +- asm/rem.s | 8 +- asm/sub_080A276C.s | 4 +- asm/vaatiArm.s | 4 +- asm/vaatiEyesMacro.s | 12 +- asm/vaatiRebornEnemy.s | 4 +- asm/vaatiTransfigured.s | 12 +- asm/vaatiWrath.s | 20 +- include/entity.h | 4 +- include/functions.h | 8 +- include/greatFairy.h | 4 +- linker.ld | 6 +- src/code_08077B98.c | 10 +- src/createEnemy.c | 4 +- src/createEntity.c | 8 +- src/createNPC.c | 4 +- src/createObject.c | 4 +- src/enemy/acroBandits.c | 4 +- src/enemy/rupeeLike.c | 2 +- src/entity.c | 334 ++++++++---------- src/initializePlayer.c | 2 +- src/manager/manager4.c | 4 +- src/manager/manager6.c | 4 +- src/manager/managerE.c | 4 +- src/npc/bigGoron.c | 4 +- src/npc/forestMinish.c | 4 +- src/npc/goronMerchant.c | 6 +- src/npc/guard.c | 4 +- src/npc/malon.c | 4 +- src/npc/zelda.c | 10 +- src/object/greatFairy.c | 4 +- src/object/object1A.c | 2 +- src/object/object48.c | 4 +- src/object/object7E.c | 2 +- src/object/objectAF.c | 2 +- src/sub_08070680.c | 2 +- 97 files changed, 395 insertions(+), 447 deletions(-) diff --git a/asm/bigGoron.s b/asm/bigGoron.s index a763a077..293eb6a0 100644 --- a/asm/bigGoron.s +++ b/asm/bigGoron.s @@ -120,7 +120,7 @@ sub_0806D0F8: @ 0x0806D0F8 movs r0, #7 movs r1, #0x4c movs r2, #7 - bl sub_0805EB00 + bl FindEntityInListBySubtype cmp r0, #0 beq _0806D10C bl sub_0806D0B0 @@ -928,7 +928,7 @@ sub_0806D6D0: @ 0x0806D6D0 movs r1, #0x4c movs r2, #7 movs r3, #2 - bl sub_0805EB2C + bl FindEntityInListByForm adds r1, r0, #0 cmp r1, #0 beq _0806D6EE @@ -940,7 +940,7 @@ _0806D6EE: movs r1, #0x4c movs r2, #7 movs r3, #1 - bl sub_0805EB2C + bl FindEntityInListByForm adds r1, r0, #0 cmp r1, #0 beq _0806D706 @@ -961,7 +961,7 @@ sub_0806D70C: @ 0x0806D70C movs r1, #0x4c movs r2, #7 movs r3, #2 - bl sub_0805EB2C + bl FindEntityInListByForm adds r2, r0, #0 cmp r2, #0 beq _0806D728 @@ -972,7 +972,7 @@ _0806D728: movs r1, #0x4c movs r2, #7 movs r3, #1 - bl sub_0805EB2C + bl FindEntityInListByForm adds r2, r0, #0 cmp r2, #0 beq _0806D746 @@ -996,7 +996,7 @@ sub_0806D74C: @ 0x0806D74C movs r1, #0x4c movs r2, #7 movs r3, #2 - bl sub_0805EB2C + bl FindEntityInListByForm adds r1, r0, #0 cmp r1, #0 beq _0806D76A @@ -1008,7 +1008,7 @@ _0806D76A: movs r1, #0x4c movs r2, #7 movs r3, #1 - bl sub_0805EB2C + bl FindEntityInListByForm adds r1, r0, #0 cmp r1, #0 beq _0806D782 @@ -1029,7 +1029,7 @@ sub_0806D788: @ 0x0806D788 movs r1, #0x4c movs r2, #7 movs r3, #2 - bl sub_0805EB2C + bl FindEntityInListByForm adds r1, r0, #0 cmp r1, #0 beq _0806D7A6 @@ -1041,7 +1041,7 @@ _0806D7A6: movs r1, #0x4c movs r2, #7 movs r3, #1 - bl sub_0805EB2C + bl FindEntityInListByForm adds r1, r0, #0 cmp r1, #0 beq _0806D7BE @@ -1070,7 +1070,7 @@ sub_0806D7C4: @ 0x0806D7C4 movs r1, #0x4c movs r2, #7 movs r3, #2 - bl sub_0805EB2C + bl FindEntityInListByForm cmp r0, #0 beq _0806D7FC movs r1, #0x2e @@ -1098,7 +1098,7 @@ sub_0806D804: @ 0x0806D804 movs r1, #0x4c movs r2, #7 movs r3, #2 - bl sub_0805EB2C + bl FindEntityInListByForm adds r1, r0, #0 cmp r1, #0 beq _0806D83A diff --git a/asm/bird.s b/asm/bird.s index dae30ccc..0542b6c6 100644 --- a/asm/bird.s +++ b/asm/bird.s @@ -681,7 +681,7 @@ _0809D478: cmp r4, #0 beq _0809D484 adds r0, r4, #0 - bl sub_0805E79C + bl DeleteEntityAny _0809D484: bl DeleteThisEntity _0809D488: @@ -1002,7 +1002,7 @@ CreateBird: @ 0x0809D700 movs r1, #0x95 movs r2, #6 movs r3, #8 - bl sub_0805EB2C + bl FindEntityInListByForm adds r4, r0, #0 cmp r4, #0 bne _0809D732 diff --git a/asm/book.s b/asm/book.s index 992ba2c0..a0496c64 100644 --- a/asm/book.s +++ b/asm/book.s @@ -327,7 +327,7 @@ _0809B606: movs r0, #7 movs r1, #0x1a movs r2, #7 - bl sub_0805EB00 + bl FindEntityInListBySubtype adds r2, r0, #0 cmp r2, #0 beq _0809B682 diff --git a/asm/code_08019444.s b/asm/code_08019444.s index d71f4fff..4a7713fe 100644 --- a/asm/code_08019444.s +++ b/asm/code_08019444.s @@ -3374,13 +3374,13 @@ sub_0801AD6C: @ 0x0801AD6C adds r0, r0, r1 ldrb r1, [r0] adds r0, r5, #0 - bl sub_0805EA2C + bl AppendEntityToList b _0801AE26 .align 2, 0 _0801ADD4: .4byte gRoomControls _0801ADD8: .4byte gUnk_081091E4 _0801ADDC: - bl sub_0805E8D4 + bl GetEmptyManager adds r3, r0, #0 cmp r3, #0 beq _0801AE26 @@ -3414,7 +3414,7 @@ _0801ADDC: adds r0, r0, r1 ldrb r1, [r0] adds r0, r3, #0 - bl sub_0805EA2C + bl AppendEntityToList _0801AE26: pop {r4, r5, r6, pc} .align 2, 0 diff --git a/asm/code_0801CEC0.s b/asm/code_0801CEC0.s index e55bb415..ff3d26df 100644 --- a/asm/code_0801CEC0.s +++ b/asm/code_0801CEC0.s @@ -561,7 +561,7 @@ _0801D390: bne _0801D380 _0801D3AC: movs r1, #0 - ldr r4, _0801D450 @ =gUnk_03003D70 + ldr r4, _0801D450 @ =gEntityLists mov ip, r4 _0801D3B2: lsls r0, r1, #3 @@ -647,7 +647,7 @@ _0801D444: add sp, #0x10 pop {r4, r5, r6, r7, pc} .align 2, 0 -_0801D450: .4byte gUnk_03003D70 +_0801D450: .4byte gEntityLists _0801D454: .4byte gUnk_020000C0 thumb_func_start sub_0801D458 diff --git a/asm/code_0804AEB0.s b/asm/code_0804AEB0.s index 2c4fdb3b..6ccfba79 100644 --- a/asm/code_0804AEB0.s +++ b/asm/code_0804AEB0.s @@ -26,7 +26,7 @@ sub_0804AEB0: @ 0x0804AEB0 adds r0, r4, r0 ldrb r1, [r0] adds r0, r5, #0 - bl sub_0805EA2C + bl AppendEntityToList b _0804AEF6 .align 2, 0 _0804AEDC: .4byte gUnk_081091E4 @@ -35,12 +35,12 @@ _0804AEE0: bne _0804AEEE adds r0, r5, #0 movs r1, #8 - bl sub_0805EA2C + bl AppendEntityToList b _0804AEF6 _0804AEEE: adds r0, r5, #0 adds r1, r2, #0 - bl sub_0805EA2C + bl AppendEntityToList _0804AEF6: adds r1, r5, #0 adds r1, #0x78 diff --git a/asm/code_0804B058.s b/asm/code_0804B058.s index a3e87e29..3557f857 100644 --- a/asm/code_0804B058.s +++ b/asm/code_0804B058.s @@ -252,7 +252,7 @@ _0804B2FC: sub_0804B300: @ 0x0804B300 push {r4, lr} adds r4, r0, #0 - bl sub_0805E8D4 + bl GetEmptyManager adds r1, r0, #0 cmp r1, #0 beq _0804B332 @@ -272,7 +272,7 @@ sub_0804B300: @ 0x0804B300 strh r0, [r1, #0x3e] adds r0, r1, #0 movs r1, #6 - bl sub_0805EA2C + bl AppendEntityToList _0804B332: pop {r4, pc} @@ -304,7 +304,7 @@ _0804B35A: bne _0804B380 movs r0, #1 strb r0, [r1, #1] - bl sub_0805E8D4 + bl GetEmptyManager adds r1, r0, #0 cmp r1, #0 beq _0804B380 @@ -314,7 +314,7 @@ _0804B35A: strb r0, [r1, #9] adds r0, r1, #0 movs r1, #6 - bl sub_0805EA2C + bl AppendEntityToList _0804B380: pop {r4, pc} .align 2, 0 diff --git a/asm/code_080526F8.s b/asm/code_080526F8.s index e40df276..d054a0b6 100644 --- a/asm/code_080526F8.s +++ b/asm/code_080526F8.s @@ -665,7 +665,7 @@ sub_08052BF8: @ 0x08052BF8 adds r0, r2, #0 adds r0, #0x2e strb r1, [r0] - bl sub_0805E8D4 + bl GetEmptyManager adds r1, r0, #0 cmp r1, #0 beq _08052C30 @@ -676,7 +676,7 @@ sub_08052BF8: @ 0x08052BF8 strb r0, [r1, #0xa] adds r0, r1, #0 movs r1, #0 - bl sub_0805EA2C + bl AppendEntityToList _08052C30: pop {pc} .align 2, 0 @@ -1115,7 +1115,7 @@ _08052F72: ldrh r0, [r3, #0xc] adds r0, r0, r5 strh r0, [r3, #0xc] - ldr r2, _08052FD4 @ =gUnk_03003D70 + ldr r2, _08052FD4 @ =gEntityLists adds r6, r2, #0 adds r6, #0x48 _08052FA4: @@ -1146,7 +1146,7 @@ _08052FCC: pop {r4, r5, r6, pc} .align 2, 0 _08052FD0: .4byte 0x0000085C -_08052FD4: .4byte gUnk_03003D70 +_08052FD4: .4byte gEntityLists thumb_func_start sub_08052FD8 sub_08052FD8: @ 0x08052FD8 @@ -1377,7 +1377,7 @@ sub_08053178: @ 0x08053178 bl CheckGlobalFlag cmp r0, #0 bne _080531DC - bl sub_0805E8D4 + bl GetEmptyManager adds r4, r0, #0 cmp r4, #0 beq _080531DC @@ -1387,7 +1387,7 @@ sub_08053178: @ 0x08053178 strb r0, [r4, #9] adds r0, r4, #0 movs r1, #8 - bl sub_0805EA2C + bl AppendEntityToList ldr r0, _080531F0 @ =gRoomVars ldrb r0, [r0] cmp r0, #0 @@ -2013,7 +2013,7 @@ sub_0805368C: @ 0x0805368C movs r0, #6 movs r1, #0x5d movs r2, #6 - bl sub_0805EB00 + bl FindEntityInListBySubtype cmp r0, #0 beq _080536A6 bl DeleteEntity diff --git a/asm/code_0805436C.s b/asm/code_0805436C.s index 16f8ca8e..d1a63f7b 100644 --- a/asm/code_0805436C.s +++ b/asm/code_0805436C.s @@ -789,7 +789,7 @@ _08054EB4: .4byte gMenu sub_08054EB8: @ 0x08054EB8 push {r4, lr} adds r4, r0, #0 - bl sub_0805E8D4 + bl GetEmptyManager adds r3, r0, #0 cmp r3, #0 beq _08054EF6 @@ -815,7 +815,7 @@ sub_08054EB8: @ 0x08054EB8 strh r0, [r3, #0x3e] adds r0, r3, #0 movs r1, #6 - bl sub_0805EA2C + bl AppendEntityToList _08054EF6: pop {r4, pc} .align 2, 0 @@ -2571,7 +2571,7 @@ _08055C6C: movs r1, #0x9e movs r2, #6 movs r3, #0 - bl sub_0805EB2C + bl FindEntityInListByForm adds r4, r0, #0 cmp r4, #0 beq _08055C8C diff --git a/asm/code_0805E3B0.s b/asm/code_0805E3B0.s index 9b1b8201..061f417a 100644 --- a/asm/code_0805E3B0.s +++ b/asm/code_0805E3B0.s @@ -336,7 +336,7 @@ sub_0805E5C0: @ 0x0805E5C0 ldr r1, _0805E5F4 @ =gUnk_03005F40 movs r0, #0 bl _call_via_r1 - bl sub_0805E84C + bl ClearAllDeletedEntities bl sub_0805EE88 pop {pc} .align 2, 0 @@ -349,7 +349,7 @@ sub_0805E5F8: @ 0x0805E5F8 ldr r1, _0805E608 @ =gUnk_03005F40 movs r0, #1 bl _call_via_r1 - bl sub_0805E84C + bl ClearAllDeletedEntities pop {pc} .align 2, 0 _0805E608: .4byte gUnk_03005F40 @@ -370,10 +370,10 @@ EraseAllEntities: @ 0x0805E60C lsls r1, r1, #4 bl _DmaZero bl sub_0805E98C - ldr r0, _0805E660 @ =gUnk_03003DBC + ldr r0, _0805E660 @ =gEntCount movs r1, #0 strb r1, [r0] - ldr r0, _0805E664 @ =gUnk_020354B4 + ldr r0, _0805E664 @ =gManagerCount strb r1, [r0] ldr r1, _0805E668 @ =gUnk_03000000 ldr r2, _0805E66C @ =0x00000427 @@ -391,8 +391,8 @@ EraseAllEntities: @ 0x0805E60C _0805E654: .4byte gUnk_03003DC0 _0805E658: .4byte gPlayerEntity _0805E65C: .4byte gUnk_02033290 -_0805E660: .4byte gUnk_03003DBC -_0805E664: .4byte gUnk_020354B4 +_0805E660: .4byte gEntCount +_0805E664: .4byte gManagerCount _0805E668: .4byte gUnk_03000000 _0805E66C: .4byte 0x00000427 _0805E670: .4byte 0x00000426 diff --git a/asm/code_0806EC20.s b/asm/code_0806EC20.s index 7a47cab4..edca84a3 100644 --- a/asm/code_0806EC20.s +++ b/asm/code_0806EC20.s @@ -27,7 +27,7 @@ sub_0806EC38: @ 0x0806EC38 movs r0, #7 movs r1, #0x58 movs r2, #7 - bl sub_0805EB00 + bl FindEntityInListBySubtype cmp r0, #0 beq _0806EC4C bl DeleteEntity diff --git a/asm/code_080732D0.s b/asm/code_080732D0.s index 6068b8b1..f8c6d611 100644 --- a/asm/code_080732D0.s +++ b/asm/code_080732D0.s @@ -4592,7 +4592,7 @@ _080754F2: movs r0, #8 movs r1, #0xf movs r2, #2 - bl sub_0805EB00 + bl FindEntityInListBySubtype cmp r0, #0 bne _08075538 adds r0, r4, #0 @@ -6017,7 +6017,7 @@ sub_08075FF8: @ 0x08075FF8 movs r0, #8 movs r1, #2 movs r2, #2 - bl sub_0805EB00 + bl FindEntityInListBySubtype b _08076026 .align 2, 0 _08076018: .4byte gPlayerState @@ -6025,7 +6025,7 @@ _0807601C: adds r5, #1 adds r0, r4, #0 movs r1, #2 - bl sub_0805EB64 + bl FindNextEntityOfSameSubtype _08076026: adds r4, r0, #0 cmp r4, #0 diff --git a/asm/code_08078778.s b/asm/code_08078778.s index cf4104c6..f3bcc358 100644 --- a/asm/code_08078778.s +++ b/asm/code_08078778.s @@ -44,7 +44,7 @@ _080788BA: movs r0, #6 movs r1, #9 movs r2, #6 - bl sub_0805EB00 + bl FindEntityInListBySubtype cmp r0, #0 bne _080788D6 movs r0, #9 diff --git a/asm/code_0807CC3C.s b/asm/code_0807CC3C.s index c1a22a53..a9ace9d1 100644 --- a/asm/code_0807CC3C.s +++ b/asm/code_0807CC3C.s @@ -5950,7 +5950,7 @@ sub_0807F950: @ 0x0807F950 movs r1, #0x56 movs r2, #6 movs r3, #0 - bl sub_0805EB2C + bl FindEntityInListByForm cmp r0, #0 beq _0807F96C bl DeleteEntity diff --git a/asm/code_080A5574.s b/asm/code_080A5574.s index b0893ba6..ec2e0e3a 100644 --- a/asm/code_080A5574.s +++ b/asm/code_080A5574.s @@ -4931,7 +4931,7 @@ _080A7C52: strb r0, [r4, #8] adds r0, r4, #0 movs r1, #6 - bl sub_0805EA2C + bl AppendEntityToList _080A7C72: adds r0, r4, #0 pop {r4, r5, r6, r7, pc} @@ -5288,7 +5288,7 @@ sub_080A7EE0: @ 0x080A7EE0 strb r5, [r4, #9] adds r0, r4, #0 movs r1, #5 - bl sub_0805EA2C + bl AppendEntityToList _080A7EFC: adds r0, r4, #0 pop {r4, r5, pc} @@ -12015,7 +12015,7 @@ _080AB128: .4byte gSineTable sub_080AB12C: @ 0x080AB12C push {r4, lr} adds r4, r0, #0 - ldr r0, _080AB168 @ =gUnk_03003DBC + ldr r0, _080AB168 @ =gEntCount ldrb r0, [r0] cmp r0, #0x44 bhi _080AB16C @@ -12040,7 +12040,7 @@ sub_080AB12C: @ 0x080AB12C movs r0, #1 b _080AB16E .align 2, 0 -_080AB168: .4byte gUnk_03003DBC +_080AB168: .4byte gEntCount _080AB16C: movs r0, #0 _080AB16E: @@ -14792,7 +14792,7 @@ sub_080AC5E4: @ 0x080AC5E4 ldrb r4, [r5, #0xa] cmp r4, #0 bne _080AC668 - ldr r0, _080AC664 @ =gUnk_03003DBC + ldr r0, _080AC664 @ =gEntCount ldrb r0, [r0] cmp r0, #0x43 bhi _080AC670 @@ -14845,9 +14845,9 @@ sub_080AC5E4: @ 0x080AC5E4 str r0, [r7, #0x54] b _080AC6C8 .align 2, 0 -_080AC664: .4byte gUnk_03003DBC +_080AC664: .4byte gEntCount _080AC668: - ldr r0, _080AC674 @ =gUnk_03003DBC + ldr r0, _080AC674 @ =gEntCount ldrb r0, [r0] cmp r0, #0x44 bls _080AC678 @@ -14855,7 +14855,7 @@ _080AC670: movs r0, #0 b _080AC6E8 .align 2, 0 -_080AC674: .4byte gUnk_03003DBC +_080AC674: .4byte gEntCount _080AC678: adds r1, r5, #0 adds r1, #0x79 diff --git a/asm/createEntity.s b/asm/createEntity.s index 11de294a..8451dec1 100644 --- a/asm/createEntity.s +++ b/asm/createEntity.s @@ -19,14 +19,14 @@ CreateEntity: @ 0x0804ADF8 bne _0804AE1C ldrb r1, [r4, #2] adds r0, r6, #0 - bl sub_0805EB9C + bl FindEntityBySubtype cmp r0, #0 beq _0804AE1C movs r0, #0 b _0804AEAC _0804AE1C: adds r0, r6, #0 - bl sub_0805E768 + bl GetEmptyEntityAny adds r5, r0, #0 cmp r5, #0 beq _0804AEAA diff --git a/asm/fireballGuy.s b/asm/fireballGuy.s index 675564bd..af3e9ad0 100644 --- a/asm/fireballGuy.s +++ b/asm/fireballGuy.s @@ -126,7 +126,7 @@ sub_08045454: @ 0x08045454 ldrb r7, [r0] movs r0, #0x48 subs r0, r0, r7 - ldr r1, _0804551C @ =gUnk_03003DBC + ldr r1, _0804551C @ =gEntCount ldrb r1, [r1] cmp r0, r1 ble _0804550C @@ -212,7 +212,7 @@ _0804550C: pop {r4, r5, r6, r7, pc} .align 2, 0 _08045518: .4byte gUnk_080D180C -_0804551C: .4byte gUnk_03003DBC +_0804551C: .4byte gEntCount _08045520: .4byte gUnk_080D1810 thumb_func_start sub_08045524 diff --git a/asm/fourElements.s b/asm/fourElements.s index 2c64461e..bd33c8b4 100644 --- a/asm/fourElements.s +++ b/asm/fourElements.s @@ -355,7 +355,7 @@ sub_080A0464: @ 0x080A0464 movs r0, #6 movs r1, #0xac movs r2, #6 - bl sub_0805EB00 + bl FindEntityInListBySubtype cmp r0, #0 beq _080A048A movs r1, #0x2e diff --git a/asm/getEmptyEntity.s b/asm/getEmptyEntity.s index f3b43342..be445c5d 100644 --- a/asm/getEmptyEntity.s +++ b/asm/getEmptyEntity.s @@ -10,7 +10,7 @@ GetEmptyEntity: @ 0x0805E678 push {r4, r5, r6, r7, lr} mov r7, r8 push {r7} - ldr r0, _0805E698 @ =gUnk_03003DBC + ldr r0, _0805E698 @ =gEntCount ldrb r0, [r0] cmp r0, #0x46 bhi _0805E6A6 @@ -25,7 +25,7 @@ _0805E68E: adds r0, r4, #0 b _0805E730 .align 2, 0 -_0805E698: .4byte gUnk_03003DBC +_0805E698: .4byte gEntCount _0805E69C: .4byte gUnk_030015A0 _0805E6A0: adds r4, #0x88 @@ -47,7 +47,7 @@ _0805E6A8: cmp r4, r0 beq _0805E6D4 adds r0, r4, #0 - bl sub_0805E870 + bl ClearDeletedEntity adds r0, r4, #0 b _0805E730 .align 2, 0 @@ -61,7 +61,7 @@ _0805E6D4: movs r0, #0 mov ip, r0 movs r5, #0 - ldr r2, _0805E73C @ =gUnk_03003D70 + ldr r2, _0805E73C @ =gEntityLists movs r0, #0x48 adds r0, r0, r2 mov r8, r0 @@ -100,7 +100,7 @@ _0805E718: adds r0, r5, #0 bl DeleteEntity adds r0, r5, #0 - bl sub_0805E870 + bl ClearDeletedEntity _0805E72E: adds r0, r5, #0 _0805E730: @@ -109,5 +109,5 @@ _0805E730: pop {r4, r5, r6, r7, pc} .align 2, 0 _0805E738: .4byte gUnk_03003BE0 -_0805E73C: .4byte gUnk_03003D70 +_0805E73C: .4byte gEntityLists _0805E740: .4byte gUnk_03003DD0 diff --git a/asm/guardWithSpear.s b/asm/guardWithSpear.s index 710a6b81..1ffd80f5 100644 --- a/asm/guardWithSpear.s +++ b/asm/guardWithSpear.s @@ -153,7 +153,7 @@ sub_08064180: @ 0x08064180 movs r0, #7 movs r1, #0x15 movs r2, #7 - bl sub_0805EB00 + bl FindEntityInListBySubtype cmp r0, #0 beq _08064194 bl DeleteEntity diff --git a/asm/gyorgFemale.s b/asm/gyorgFemale.s index 7523b997..04dfbde8 100644 --- a/asm/gyorgFemale.s +++ b/asm/gyorgFemale.s @@ -24,7 +24,7 @@ _08046148: .4byte gUnk_080D1A64 sub_0804614C: @ 0x0804614C push {r4, r5, r6, lr} adds r6, r0, #0 - ldr r0, _08046248 @ =gUnk_03003DBC + ldr r0, _08046248 @ =gEntCount ldrb r0, [r0] cmp r0, #0x3d bhi _08046244 @@ -133,7 +133,7 @@ sub_0804614C: @ 0x0804614C _08046244: pop {r4, r5, r6, pc} .align 2, 0 -_08046248: .4byte gUnk_03003DBC +_08046248: .4byte gEntCount _0804624C: .4byte gUnk_02019EE0 _08046250: .4byte gUnk_02002F00 _08046254: .4byte gPlayerEntity diff --git a/asm/lilypadLarge.s b/asm/lilypadLarge.s index 2fb565f2..a702d9ac 100644 --- a/asm/lilypadLarge.s +++ b/asm/lilypadLarge.s @@ -73,7 +73,7 @@ _08085566: b _0808557A _0808556C: adds r0, r4, #0 - bl sub_0805EABC + bl DoesSimilarEntityExist cmp r0, #0 beq _0808557A bl DeleteThisEntity @@ -1072,7 +1072,7 @@ _08085D0C: sub_08085D10: @ 0x08085D10 push {r4, lr} adds r4, r0, #0 - bl sub_0805EABC + bl DoesSimilarEntityExist cmp r0, #0 beq _08085D26 ldrb r0, [r4, #0xb] diff --git a/asm/macroAcorn.s b/asm/macroAcorn.s index 24eb54c6..d732db56 100644 --- a/asm/macroAcorn.s +++ b/asm/macroAcorn.s @@ -44,7 +44,7 @@ _0809E52E: ands r0, r2 cmp r0, #0 beq _0809E5A4 - ldr r0, _0809E5A0 @ =gUnk_03003DBC + ldr r0, _0809E5A0 @ =gEntCount ldrb r0, [r0] cmp r0, #0x44 bhi _0809E5B4 @@ -85,7 +85,7 @@ _0809E52E: bl CopyPosition b _0809E5C4 .align 2, 0 -_0809E5A0: .4byte gUnk_03003DBC +_0809E5A0: .4byte gEntCount _0809E5A4: adds r2, r5, #1 movs r0, #0x9a diff --git a/asm/macroBook.s b/asm/macroBook.s index 838925b4..7836e99b 100644 --- a/asm/macroBook.s +++ b/asm/macroBook.s @@ -360,7 +360,7 @@ sub_0809AA00: @ 0x0809AA00 movs r0, #7 movs r1, #0x38 movs r2, #7 - bl sub_0805EB00 + bl FindEntityInListBySubtype adds r4, r0, #0 adds r7, r5, #0 adds r7, #0x78 @@ -380,7 +380,7 @@ _0809AA30: _0809AA3A: adds r0, r4, #0 movs r1, #7 - bl sub_0805EB64 + bl FindNextEntityOfSameSubtype adds r4, r0, #0 cmp r4, #0 bne _0809AA30 diff --git a/asm/madderpillar.s b/asm/madderpillar.s index c3011ca6..22924791 100644 --- a/asm/madderpillar.s +++ b/asm/madderpillar.s @@ -154,7 +154,7 @@ nullsub_14: @ 0x08029998 sub_0802999C: @ 0x0802999C push {r4, r5, r6, r7, lr} adds r7, r0, #0 - ldr r0, _08029A90 @ =gUnk_03003DBC + ldr r0, _08029A90 @ =gEntCount ldrb r0, [r0] cmp r0, #0x43 bhi _08029A8E @@ -261,7 +261,7 @@ sub_0802999C: @ 0x0802999C _08029A8E: pop {r4, r5, r6, r7, pc} .align 2, 0 -_08029A90: .4byte gUnk_03003DBC +_08029A90: .4byte gEntCount thumb_func_start sub_08029A94 sub_08029A94: @ 0x08029A94 diff --git a/asm/manager14.s b/asm/manager14.s index 5c2dec7e..68765dba 100644 --- a/asm/manager14.s +++ b/asm/manager14.s @@ -30,7 +30,7 @@ _08059E7C: .4byte gUnk_081085A4 sub_08059E80: @ 0x08059E80 push {r4, r5, lr} adds r4, r0, #0 - bl sub_0805EABC + bl DoesSimilarEntityExist cmp r0, #0 beq _08059E90 bl DeleteThisEntity diff --git a/asm/manager15.s b/asm/manager15.s index 0106e9d8..84043eef 100644 --- a/asm/manager15.s +++ b/asm/manager15.s @@ -152,7 +152,7 @@ sub_0805A394: @ 0x0805A394 movs r0, #3 movs r1, #0x13 movs r2, #4 - bl sub_0805EB00 + bl FindEntityInListBySubtype cmp r0, #0 beq _0805A3AA ldrb r0, [r0, #0xa] diff --git a/asm/manager16.s b/asm/manager16.s index 58f8404c..551ddbc1 100644 --- a/asm/manager16.s +++ b/asm/manager16.s @@ -114,7 +114,7 @@ _0805AC1A: ands r0, r1 cmp r0, #0 beq _0805ACA6 - ldr r0, _0805AC5C @ =gUnk_03003DBC + ldr r0, _0805AC5C @ =gEntCount ldrb r0, [r0] cmp r0, #0x46 bhi _0805ACA6 @@ -140,7 +140,7 @@ _0805AC48: bl CreateNPC b _0805AC6A .align 2, 0 -_0805AC5C: .4byte gUnk_03003DBC +_0805AC5C: .4byte gEntCount _0805AC60: ldrb r0, [r4] ldrb r1, [r4, #1] diff --git a/asm/manager1A.s b/asm/manager1A.s index 11c578a6..82586617 100644 --- a/asm/manager1A.s +++ b/asm/manager1A.s @@ -456,7 +456,7 @@ _0805B38C: .4byte 0x0000FFF7 sub_0805B390: @ 0x0805B390 push {r4, lr} adds r4, r0, #0 - bl sub_0805E8D4 + bl GetEmptyManager adds r1, r0, #0 cmp r1, #0 beq _0805B3B0 @@ -467,7 +467,7 @@ sub_0805B390: @ 0x0805B390 strb r4, [r1, #0xa] adds r0, r1, #0 movs r1, #6 - bl sub_0805EA2C + bl AppendEntityToList _0805B3B0: pop {r4, pc} .align 2, 0 diff --git a/asm/manager1B.s b/asm/manager1B.s index e3626e3d..c591eaa4 100644 --- a/asm/manager1B.s +++ b/asm/manager1B.s @@ -10,7 +10,7 @@ sub_0805B3B4: @ 0x0805B3B4 push {r4, r5, lr} adds r4, r0, #0 - bl sub_0805EABC + bl DoesSimilarEntityExist cmp r0, #0 beq _0805B3C4 bl DeleteThisEntity diff --git a/asm/manager1E.s b/asm/manager1E.s index 153adc0b..36bd3e55 100644 --- a/asm/manager1E.s +++ b/asm/manager1E.s @@ -45,7 +45,7 @@ sub_0805B680: @ 0x0805B680 cmp r0, #0 beq _0805B6B8 adds r0, r4, #0 - bl sub_0805E900 + bl DeleteManager b _0805B6BE _0805B6B8: adds r0, r4, #0 @@ -72,7 +72,7 @@ sub_0805B6C0: @ 0x0805B6C0 cmp r0, #0 bne _0805B6F2 adds r0, r4, #0 - bl sub_0805E900 + bl DeleteManager b _0805B6F2 _0805B6EC: ldrh r0, [r4, #0x3e] diff --git a/asm/manager20.s b/asm/manager20.s index e7ab8cbf..77f6e5b0 100644 --- a/asm/manager20.s +++ b/asm/manager20.s @@ -67,7 +67,7 @@ _0805B7FC: adds r0, r0, r1 strh r0, [r4, #0x32] adds r0, r5, #0 - bl sub_0805E900 + bl DeleteManager _0805B81A: pop {r4, r5, pc} .align 2, 0 diff --git a/asm/manager22.s b/asm/manager22.s index af6900a2..fb9246b5 100644 --- a/asm/manager22.s +++ b/asm/manager22.s @@ -281,7 +281,7 @@ sub_0805BB00: @ 0x0805BB00 ldrb r0, [r0, #0xc] cmp r0, #0 bne _0805BB28 - bl sub_0805E8D4 + bl GetEmptyManager adds r1, r0, #0 cmp r1, #0 beq _0805BB28 @@ -291,7 +291,7 @@ sub_0805BB00: @ 0x0805BB00 strb r0, [r1, #9] adds r0, r1, #0 movs r1, #0 - bl sub_0805EA2C + bl AppendEntityToList _0805BB28: ldr r1, _0805BB54 @ =0x0600F000 movs r2, #0x80 @@ -342,7 +342,7 @@ _0805BB82: strh r1, [r2, #0xc] movs r0, #9 movs r1, #0x22 - bl sub_0805EB9C + bl FindEntityBySubtype cmp r0, #0 beq _0805BBAE bl sub_0805B8EC diff --git a/asm/manager24.s b/asm/manager24.s index 33f7ad45..8718bf74 100644 --- a/asm/manager24.s +++ b/asm/manager24.s @@ -50,7 +50,7 @@ sub_0805BF30: @ 0x0805BF30 adds r0, r4, #0 bl sub_0805C02C adds r0, r4, #0 - bl sub_0805E900 + bl DeleteManager _0805BF74: pop {r4, pc} .align 2, 0 @@ -91,7 +91,7 @@ sub_0805BFA4: @ 0x0805BFA4 movs r0, #0x72 bl PlaySFX adds r0, r4, #0 - bl sub_0805E900 + bl DeleteManager _0805BFC0: pop {r4, pc} .align 2, 0 diff --git a/asm/manager26.s b/asm/manager26.s index 7aab3755..7e21f1dd 100644 --- a/asm/manager26.s +++ b/asm/manager26.s @@ -30,7 +30,7 @@ sub_0805C6D0: @ 0x0805C6D0 cmp r4, #0 bne _0805C6EA adds r0, r5, #0 - bl sub_0805E900 + bl DeleteManager b _0805C79A _0805C6EA: ldr r3, _0805C784 @ =gRoomControls diff --git a/asm/manager28.s b/asm/manager28.s index 2c6d28e3..acbf9d14 100644 --- a/asm/manager28.s +++ b/asm/manager28.s @@ -42,7 +42,7 @@ _0805C962: adds r5, r0, #0 cmp r5, #1 ble _0805C9A8 - bl sub_0805E8D4 + bl GetEmptyManager adds r2, r0, #0 cmp r2, #0 beq _0805C9A8 @@ -64,10 +64,10 @@ _0805C962: stm r1!, {r3, r5} adds r0, r2, #0 movs r1, #6 - bl sub_0805EA2C + bl AppendEntityToList _0805C9A8: adds r0, r4, #0 - bl sub_0805E900 + bl DeleteManager b _0805C9B8 _0805C9B0: movs r1, #0 diff --git a/asm/manager29.s b/asm/manager29.s index 955eaf6a..c87bd2dd 100644 --- a/asm/manager29.s +++ b/asm/manager29.s @@ -22,7 +22,7 @@ sub_0805CB90: @ 0x0805CB90 adds r0, r4, #0 bl sub_0805CC3C adds r0, r4, #0 - bl sub_0805E900 + bl DeleteManager b _0805CBCE _0805CBB8: adds r0, r4, #0 @@ -32,7 +32,7 @@ _0805CBB8: ldrh r0, [r4, #0x3e] bl SetFlag adds r0, r4, #0 - bl sub_0805E900 + bl DeleteManager _0805CBCE: pop {r4, pc} diff --git a/asm/manager2B.s b/asm/manager2B.s index ed785d35..4320672d 100644 --- a/asm/manager2B.s +++ b/asm/manager2B.s @@ -33,7 +33,7 @@ sub_0805D02C: @ 0x0805D02C beq _0805D046 bl DeleteThisEntity _0805D046: - ldr r0, _0805D0BC @ =gUnk_03003DBC + ldr r0, _0805D0BC @ =gEntCount ldrb r0, [r0] cmp r0, #0x43 bhi _0805D0B0 @@ -91,7 +91,7 @@ _0805D0B0: mov sl, r5 pop {r4, r5, r6, r7, pc} .align 2, 0 -_0805D0BC: .4byte gUnk_03003DBC +_0805D0BC: .4byte gEntCount _0805D0C0: .4byte gRoomControls thumb_func_start sub_0805D0C4 @@ -138,7 +138,7 @@ sub_0805D0FC: @ 0x0805D0FC ldrh r0, [r4, #0x3e] bl SetFlag adds r0, r4, #0 - bl sub_0805E900 + bl DeleteManager _0805D118: pop {r4, pc} .align 2, 0 diff --git a/asm/manager2D.s b/asm/manager2D.s index 374004d2..5fd4ed29 100644 --- a/asm/manager2D.s +++ b/asm/manager2D.s @@ -37,7 +37,7 @@ sub_0805D1FC: @ 0x0805D1FC bl UpdateSpriteForCollisionLayer _0805D236: adds r0, r4, #0 - bl sub_0805E900 + bl DeleteManager pop {r4, r5, pc} .align 2, 0 _0805D240: .4byte 0x00004014 diff --git a/asm/manager32.s b/asm/manager32.s index 755c5750..eb82a823 100644 --- a/asm/manager32.s +++ b/asm/manager32.s @@ -412,7 +412,7 @@ sub_0805DA90: @ 0x0805DA90 push {r4, r5, lr} adds r5, r0, #0 adds r4, r1, #0 - bl sub_0805E8D4 + bl GetEmptyManager adds r1, r0, #0 cmp r1, #0 beq _0805DAB4 @@ -424,7 +424,7 @@ sub_0805DA90: @ 0x0805DA90 str r5, [r1, #0x14] adds r0, r1, #0 movs r1, #8 - bl sub_0805EA2C + bl AppendEntityToList _0805DAB4: ldr r0, _0805DAD8 @ =gArea ldr r1, _0805DADC @ =0x0000088C @@ -439,7 +439,7 @@ _0805DAB4: strh r0, [r2] bl sub_080528F0 ldr r0, [r4] - bl sub_0805E900 + bl DeleteManager _0805DAD4: pop {r4, r5, pc} .align 2, 0 diff --git a/asm/manager36.s b/asm/manager36.s index 49cdac68..4c768dcc 100644 --- a/asm/manager36.s +++ b/asm/manager36.s @@ -43,7 +43,7 @@ _0805DDE8: sub_0805DDEC: @ 0x0805DDEC push {r4, r5, lr} adds r5, r1, #0 - bl sub_0805E8D4 + bl GetEmptyManager adds r4, r0, #0 cmp r4, #0 beq _0805DE16 @@ -55,7 +55,7 @@ sub_0805DDEC: @ 0x0805DDEC strb r0, [r4, #0xa] adds r0, r4, #0 movs r1, #6 - bl sub_0805EA2C + bl AppendEntityToList adds r0, r4, #0 movs r1, #6 bl sub_0805E3A0 @@ -72,10 +72,10 @@ sub_0805DE18: @ 0x0805DE18 movs r0, #9 movs r1, #0x36 movs r2, #6 - bl sub_0805EB2C + bl FindEntityInListByForm cmp r0, #0 beq _0805DE34 - bl sub_0805E79C + bl DeleteEntityAny _0805DE34: add sp, #4 pop {pc} diff --git a/asm/manager5.s b/asm/manager5.s index 69557a43..0a6c1d56 100644 --- a/asm/manager5.s +++ b/asm/manager5.s @@ -111,7 +111,7 @@ _08057B6A: bne _08057B6A _08057B94: adds r0, r5, #0 - bl sub_0805E900 + bl DeleteManager _08057B9A: pop {r4, r5, pc} .align 2, 0 @@ -238,7 +238,7 @@ _08057C88: bl PlaySFX _08057C96: adds r0, r4, #0 - bl sub_0805E900 + bl DeleteManager _08057C9C: pop {r4, pc} .align 2, 0 diff --git a/asm/managerB.s b/asm/managerB.s index 6e6d4cd0..58d1be89 100644 --- a/asm/managerB.s +++ b/asm/managerB.s @@ -199,7 +199,7 @@ _0805875C: sub_08058760: @ 0x08058760 push {r4, r5, lr} adds r5, r0, #0 - bl sub_0805E8D4 + bl GetEmptyManager adds r4, r0, #0 cmp r4, #0 beq _08058794 @@ -219,7 +219,7 @@ sub_08058760: @ 0x08058760 bl _DmaZero adds r0, r4, #0 movs r1, #8 - bl sub_0805EA2C + bl AppendEntityToList _08058794: adds r0, r4, #0 pop {r4, r5, pc} diff --git a/asm/managerD.s b/asm/managerD.s index b8ce9ae1..77df8bf6 100644 --- a/asm/managerD.s +++ b/asm/managerD.s @@ -82,6 +82,6 @@ sub_08058E34: @ 0x08058E34 bl LoadRoomEntityList _08058E58: adds r0, r4, #0 - bl sub_0805E900 + bl DeleteManager _08058E5E: pop {r4, pc} diff --git a/asm/managerF.s b/asm/managerF.s index b975e239..93add104 100644 --- a/asm/managerF.s +++ b/asm/managerF.s @@ -158,7 +158,7 @@ _08058FE2: cmp r0, #0 beq _08059060 adds r0, r4, #0 - bl sub_0805E900 + bl DeleteManager b _08059060 _08058FF6: ldrh r0, [r4, #0x3e] @@ -272,7 +272,7 @@ _080590CC: ldr r0, _080590DC @ =gUnk_080F4B88 bl LoadRoomEntityList adds r0, r4, #0 - bl sub_0805E900 + bl DeleteManager _080590D8: pop {r4, r5, pc} .align 2, 0 @@ -492,7 +492,7 @@ sub_08059278: @ 0x08059278 movs r0, #9 movs r1, #0xf movs r2, #6 - bl sub_0805EB00 + bl FindEntityInListBySubtype cmp r0, #0 beq _0805928C bl sub_08058ECC diff --git a/asm/mazaalBracelet.s b/asm/mazaalBracelet.s index 95170d28..b24cfa78 100644 --- a/asm/mazaalBracelet.s +++ b/asm/mazaalBracelet.s @@ -164,7 +164,7 @@ _0803A270: .4byte gUnk_080CFC3C sub_0803A274: @ 0x0803A274 push {r4, lr} adds r4, r0, #0 - ldr r0, _0803A2C8 @ =gUnk_03003DBC + ldr r0, _0803A2C8 @ =gEntCount ldrb r0, [r0] cmp r0, #0x44 bhi _0803A360 @@ -200,7 +200,7 @@ sub_0803A274: @ 0x0803A274 bl PositionRelative b _0803A310 .align 2, 0 -_0803A2C8: .4byte gUnk_03003DBC +_0803A2C8: .4byte gEntCount _0803A2CC: movs r0, #0x38 movs r1, #1 diff --git a/asm/mazaalHead.s b/asm/mazaalHead.s index 93f4a365..55f5764a 100644 --- a/asm/mazaalHead.s +++ b/asm/mazaalHead.s @@ -70,7 +70,7 @@ _08033F38: .4byte gUnk_080CECB4 sub_08033F3C: @ 0x08033F3C push {r4, r5, lr} adds r4, r0, #0 - ldr r0, _08033F64 @ =gUnk_03003DBC + ldr r0, _08033F64 @ =gEntCount ldrb r0, [r0] cmp r0, #0x42 bhi _08033FFA @@ -87,7 +87,7 @@ sub_08033F3C: @ 0x08033F3C strb r0, [r1] b _08033F70 .align 2, 0 -_08033F64: .4byte gUnk_03003DBC +_08033F64: .4byte gEntCount _08033F68: .4byte gScreenTransition _08033F6C: movs r0, #1 diff --git a/asm/mazaalMacro.s b/asm/mazaalMacro.s index 5d4ff187..063718d6 100644 --- a/asm/mazaalMacro.s +++ b/asm/mazaalMacro.s @@ -566,14 +566,14 @@ sub_08035084: @ 0x08035084 ldrb r0, [r0, #0xa] cmp r0, #0 bne _08035118 - ldr r0, _080350A0 @ =gUnk_03003DBC + ldr r0, _080350A0 @ =gEntCount ldrb r0, [r0] cmp r0, #0x42 bls _080350A4 movs r0, #0 b _0803511A .align 2, 0 -_080350A0: .4byte gUnk_03003DBC +_080350A0: .4byte gEntCount _080350A4: ldr r4, _080350D8 @ =gUnk_030010D8 _080350A6: diff --git a/asm/moldorm.s b/asm/moldorm.s index f511004c..24d0838f 100644 --- a/asm/moldorm.s +++ b/asm/moldorm.s @@ -127,7 +127,7 @@ sub_08022C58: @ 0x08022C58 movs r0, #0x7f ands r0, r1 strb r0, [r7, #0x10] - ldr r0, _08022D3C @ =gUnk_03003DBC + ldr r0, _08022D3C @ =gEntCount ldrb r0, [r0] cmp r0, #0x44 bhi _08022D34 @@ -226,7 +226,7 @@ _08022D34: mov sb, r4 pop {r4, r5, r6, r7, pc} .align 2, 0 -_08022D3C: .4byte gUnk_03003DBC +_08022D3C: .4byte gEntCount thumb_func_start sub_08022D40 sub_08022D40: @ 0x08022D40 diff --git a/asm/moldworm.s b/asm/moldworm.s index 5b914aa5..943cf3e1 100644 --- a/asm/moldworm.s +++ b/asm/moldworm.s @@ -221,7 +221,7 @@ nullsub_135: @ 0x080231B8 sub_080231BC: @ 0x080231BC push {r4, r5, r6, lr} adds r6, r0, #0 - ldr r0, _08023280 @ =gUnk_03003DBC + ldr r0, _08023280 @ =gEntCount ldrb r0, [r0] cmp r0, #0x3f bhi _0802327E @@ -308,7 +308,7 @@ sub_080231BC: @ 0x080231BC _0802327E: pop {r4, r5, r6, pc} .align 2, 0 -_08023280: .4byte gUnk_03003DBC +_08023280: .4byte gEntCount thumb_func_start nullsub_136 nullsub_136: @ 0x08023284 diff --git a/asm/non_matching/acroBandits/sub_08031C58.inc b/asm/non_matching/acroBandits/sub_08031C58.inc index 1c641ec3..8d93c546 100644 --- a/asm/non_matching/acroBandits/sub_08031C58.inc +++ b/asm/non_matching/acroBandits/sub_08031C58.inc @@ -18,7 +18,7 @@ lsrs r2, r0, #0x18 cmp r2, #0 beq _08031D54 - ldr r0, _08031D50 @ =gUnk_03003DBC + ldr r0, _08031D50 @ =gEntCount ldrb r0, [r0] cmp r0, #0x42 bhi _08031D66 @@ -115,7 +115,7 @@ bl InitializeAnimation b _08031D66 .align 2, 0 -_08031D50: .4byte gUnk_03003DBC +_08031D50: .4byte gEntCount _08031D54: movs r0, #1 ands r0, r1 diff --git a/asm/non_matching/slime/sub_080450A8.inc b/asm/non_matching/slime/sub_080450A8.inc index d8226a90..2190a864 100644 --- a/asm/non_matching/slime/sub_080450A8.inc +++ b/asm/non_matching/slime/sub_080450A8.inc @@ -18,7 +18,7 @@ ldrb r7, [r0] movs r0, #0x48 subs r0, r0, r7 - ldr r1, _08045170 @ =gUnk_03003DBC + ldr r1, _08045170 @ =gEntCount ldrb r1, [r1] cmp r0, r1 ble _08045160 @@ -104,6 +104,6 @@ _08045160: pop {r4, r5, r6, r7, pc} .align 2, 0 _0804516C: .4byte gUnk_080D16D0 -_08045170: .4byte gUnk_03003DBC +_08045170: .4byte gEntCount _08045174: .4byte gUnk_080D16D4 .syntax divided \ No newline at end of file diff --git a/asm/object3E.s b/asm/object3E.s index 16fea14e..1a988dca 100644 --- a/asm/object3E.s +++ b/asm/object3E.s @@ -247,7 +247,7 @@ sub_0808D280: @ 0x0808D280 movs r1, #0x3e movs r2, #6 movs r3, #9 - bl sub_0805EB2C + bl FindEntityInListByForm adds r2, r0, #0 cmp r2, #0 beq _0808D2C4 @@ -287,7 +287,7 @@ sub_0808D2CC: @ 0x0808D2CC movs r1, #0x3e movs r2, #6 movs r3, #1 - bl sub_0805EB2C + bl FindEntityInListByForm adds r1, r0, #0 cmp r1, #0 beq _0808D2F2 diff --git a/asm/object6A.s b/asm/object6A.s index 938eb239..dedb6152 100644 --- a/asm/object6A.s +++ b/asm/object6A.s @@ -235,7 +235,7 @@ sub_08094BE0: @ 0x08094BE0 movs r1, #0x6a movs r2, #6 movs r3, #0x22 - bl sub_0805EB2C + bl FindEntityInListByForm adds r4, r0, #0 cmp r4, #0 beq _08094C22 @@ -390,7 +390,7 @@ sub_08094D10: @ 0x08094D10 movs r1, #0x6a movs r2, #6 movs r3, #3 - bl sub_0805EB2C + bl FindEntityInListByForm adds r1, r0, #0 cmp r1, #0 beq _08094D2E @@ -442,7 +442,7 @@ sub_08094D70: @ 0x08094D70 movs r1, #0x6a movs r2, #6 movs r3, #0x15 - bl sub_0805EB2C + bl FindEntityInListByForm adds r1, r0, #0 cmp r1, #0 beq _08094D8E @@ -527,7 +527,7 @@ sub_08094E0C: @ 0x08094E0C movs r1, #0x6a movs r2, #6 movs r3, #4 - bl sub_0805EB2C + bl FindEntityInListByForm adds r1, r0, #0 cmp r1, #0 beq _08094E2A @@ -951,7 +951,7 @@ sub_08095164: @ 0x08095164 movs r1, #0x6a movs r2, #6 movs r3, #8 - bl sub_0805EB2C + bl FindEntityInListByForm cmp r0, #0 beq _08095182 movs r1, #3 @@ -2103,7 +2103,7 @@ sub_08095A68: @ 0x08095A68 movs r1, #0x6a movs r2, #6 movs r3, #0x16 - bl sub_0805EB2C + bl FindEntityInListByForm adds r1, r0, #0 cmp r1, #0 beq _08095A86 diff --git a/asm/object97.s b/asm/object97.s index 0e88f13d..f90fc4ea 100644 --- a/asm/object97.s +++ b/asm/object97.s @@ -62,7 +62,7 @@ sub_0809D9D8: @ 0x0809D9D8 bl InitAnimationForceUpdate adds r0, r4, #0 movs r1, #6 - bl sub_0805EB64 + bl FindNextEntityOfSameSubtype cmp r0, #0 beq _0809DA1E str r4, [r0, #0x50] @@ -436,7 +436,7 @@ sub_0809DC80: @ 0x0809DC80 bl InitAnimationForceUpdate adds r0, r4, #0 movs r1, #6 - bl sub_0805EB64 + bl FindNextEntityOfSameSubtype cmp r0, #0 beq _0809DD00 str r4, [r0, #0x50] @@ -740,7 +740,7 @@ _0809DF16: bl CopyPosition _0809DF52: adds r0, r5, #0 - bl sub_0805E79C + bl DeleteEntityAny movs r0, #0 str r0, [r4, #0x54] b _0809DF98 diff --git a/asm/object98.s b/asm/object98.s index 99e1d8ab..d72bf8b0 100644 --- a/asm/object98.s +++ b/asm/object98.s @@ -35,7 +35,7 @@ _0809E372: ldrb r2, [r4, #0xe] movs r0, #0x48 subs r0, r0, r2 - ldr r1, _0809E3E0 @ =gUnk_03003DBC + ldr r1, _0809E3E0 @ =gEntCount ldrb r1, [r1] cmp r0, r1 ble _0809E3D8 @@ -86,7 +86,7 @@ _0809E3D8: mov r8, r3 pop {r4, r5, r6, r7, pc} .align 2, 0 -_0809E3E0: .4byte gUnk_03003DBC +_0809E3E0: .4byte gEntCount thumb_func_start sub_0809E3E4 sub_0809E3E4: @ 0x0809E3E4 diff --git a/asm/objectA5.s b/asm/objectA5.s index 44f9c50e..9e86a2bd 100644 --- a/asm/objectA5.s +++ b/asm/objectA5.s @@ -13,7 +13,7 @@ ObjectA5: @ 0x0809F8A4 mov r7, r8 push {r7} adds r6, r0, #0 - ldr r0, _0809F904 @ =gUnk_03003DBC + ldr r0, _0809F904 @ =gEntCount ldrb r0, [r0] cmp r0, #0x42 bhi _0809F8FC @@ -58,4 +58,4 @@ _0809F8FC: mov r8, r3 pop {r4, r5, r6, r7, pc} .align 2, 0 -_0809F904: .4byte gUnk_03003DBC +_0809F904: .4byte gEntCount diff --git a/asm/objectB9.s b/asm/objectB9.s index 43f746d3..1a600eb6 100644 --- a/asm/objectB9.s +++ b/asm/objectB9.s @@ -222,7 +222,7 @@ _080A1392: cmp r1, #0 beq _080A13A6 adds r0, r1, #0 - bl sub_0805E79C + bl DeleteEntityAny _080A13A6: subs r6, #1 adds r5, #1 @@ -475,7 +475,7 @@ sub_080A1550: @ 0x080A1550 cmp r0, #0 bne _080A1582 adds r0, r4, #0 - bl sub_0805E79C + bl DeleteEntityAny b _080A15FE _080A1582: mov r0, r8 diff --git a/asm/objectBA.s b/asm/objectBA.s index 07f407a3..b55d3613 100644 --- a/asm/objectBA.s +++ b/asm/objectBA.s @@ -40,7 +40,7 @@ sub_080A1704: @ 0x080A1704 beq _080A171E bl DeleteThisEntity _080A171E: - ldr r0, _080A1828 @ =gUnk_03003DBC + ldr r0, _080A1828 @ =gEntCount ldrb r0, [r0] cmp r0, #0x45 bhi _080A181C @@ -169,7 +169,7 @@ _080A181C: mov sl, r5 pop {r4, r5, r6, r7, pc} .align 2, 0 -_080A1828: .4byte gUnk_03003DBC +_080A1828: .4byte gEntCount _080A182C: .4byte gRoomControls _080A1830: .4byte gScreen _080A1834: .4byte 0x00001E07 diff --git a/asm/pesto.s b/asm/pesto.s index e5c6ca52..80a94b95 100644 --- a/asm/pesto.s +++ b/asm/pesto.s @@ -1666,7 +1666,7 @@ _08024BA0: movs r0, #8 movs r1, #2 movs r2, #2 - bl sub_0805EB00 + bl FindEntityInListBySubtype adds r4, r0, #0 cmp r4, #0 beq _08024BF0 @@ -1676,7 +1676,7 @@ _08024BA0: _08024BB6: adds r0, r4, #0 movs r1, #2 - bl sub_0805EB64 + bl FindNextEntityOfSameSubtype adds r4, r0, #0 cmp r4, #0 beq _08024BF0 @@ -1708,7 +1708,7 @@ _08024BF0: movs r0, #6 movs r1, #5 movs r2, #6 - bl sub_0805EB00 + bl FindEntityInListBySubtype adds r4, r0, #0 cmp r4, #0 beq _08024C3C @@ -1718,7 +1718,7 @@ _08024BF0: _08024C0A: adds r0, r4, #0 movs r1, #6 - bl sub_0805EB64 + bl FindNextEntityOfSameSubtype adds r4, r0, #0 cmp r4, #0 beq _08024C3C diff --git a/asm/pina.s b/asm/pina.s index 7697a309..80d77d98 100644 --- a/asm/pina.s +++ b/asm/pina.s @@ -235,7 +235,7 @@ sub_08063C14: @ 0x08063C14 push {lr} movs r0, #7 movs r1, #0x14 - bl sub_0805EB9C + bl FindEntityBySubtype cmp r0, #0 beq _08063C28 movs r1, #8 @@ -249,7 +249,7 @@ sub_08063C2C: @ 0x08063C2C push {lr} movs r0, #7 movs r1, #0x14 - bl sub_0805EB9C + bl FindEntityBySubtype cmp r0, #0 beq _08063C40 movs r1, #4 @@ -263,7 +263,7 @@ sub_08063C44: @ 0x08063C44 push {lr} movs r0, #7 movs r1, #0x14 - bl sub_0805EB9C + bl FindEntityBySubtype cmp r0, #0 beq _08063C58 movs r1, #0 @@ -277,7 +277,7 @@ sub_08063C5C: @ 0x08063C5C push {lr} movs r0, #7 movs r1, #0x14 - bl sub_0805EB9C + bl FindEntityBySubtype cmp r0, #0 beq _08063C70 movs r1, #9 @@ -291,7 +291,7 @@ sub_08063C74: @ 0x08063C74 push {lr} movs r0, #7 movs r1, #0x14 - bl sub_0805EB9C + bl FindEntityBySubtype cmp r0, #0 beq _08063C8C movs r2, #0x18 diff --git a/asm/pullableLever.s b/asm/pullableLever.s index c3092d74..93c1257d 100644 --- a/asm/pullableLever.s +++ b/asm/pullableLever.s @@ -73,7 +73,7 @@ _08091260: sub_08091264: @ 0x08091264 push {r4, r5, r6, r7, lr} adds r6, r0, #0 - ldr r0, _080912C4 @ =gUnk_03003DBC + ldr r0, _080912C4 @ =gEntCount ldrb r0, [r0] cmp r0, #0x45 bhi _0809132C @@ -117,7 +117,7 @@ sub_08091264: @ 0x08091264 ldr r0, _080912C8 @ =gUnk_080FD278 b _080912CE .align 2, 0 -_080912C4: .4byte gUnk_03003DBC +_080912C4: .4byte gEntCount _080912C8: .4byte gUnk_080FD278 _080912CC: ldr r0, _08091330 @ =gUnk_080FD270 diff --git a/asm/rem.s b/asm/rem.s index 8e31e8c7..aff7c85d 100644 --- a/asm/rem.s +++ b/asm/rem.s @@ -928,7 +928,7 @@ _0806AAD8: str r6, [r0] adds r0, r6, #0 movs r1, #7 - bl sub_0805EA78 + bl PrependEntityToList movs r0, #0xc0 lsls r0, r0, #9 str r0, [r6, #0x20] @@ -938,7 +938,7 @@ _0806AAEE: adds r0, #0xac ldr r0, [r0] movs r1, #7 - bl sub_0805EB64 + bl FindNextEntityOfSameSubtype adds r1, r0, #0 adds r0, r4, #0 adds r0, #0xb0 @@ -948,7 +948,7 @@ _0806AB02: adds r0, #0xb0 ldr r0, [r0] movs r1, #7 - bl sub_0805EB64 + bl FindNextEntityOfSameSubtype adds r1, r0, #0 mov r0, r8 adds r0, #0xb4 @@ -1041,7 +1041,7 @@ sub_0806AB9C: @ 0x0806AB9C movs r1, #0x37 movs r2, #7 movs r3, #1 - bl sub_0805EB2C + bl FindEntityInListByForm cmp r0, #0 beq _0806ABBC bl DeleteEntity diff --git a/asm/sub_080A276C.s b/asm/sub_080A276C.s index 9eac5420..26ffa208 100644 --- a/asm/sub_080A276C.s +++ b/asm/sub_080A276C.s @@ -29,10 +29,10 @@ sub_080A276C: @ 0x080A276C str r5, [r6, #0x50] adds r0, r6, #0 movs r1, #6 - bl sub_0805EA2C + bl AppendEntityToList adds r0, r6, #0 movs r1, #6 - bl sub_0805EA78 + bl PrependEntityToList ldr r4, _080A2828 @ =gPlayerEntity adds r0, r4, #0 adds r1, r6, #0 diff --git a/asm/vaatiArm.s b/asm/vaatiArm.s index fcbaf7fa..3324c7ec 100644 --- a/asm/vaatiArm.s +++ b/asm/vaatiArm.s @@ -2531,7 +2531,7 @@ sub_080437DC: @ 0x080437DC mov r7, r8 push {r7} adds r6, r0, #0 - ldr r0, _0804392C @ =gUnk_03003DBC + ldr r0, _0804392C @ =gEntCount ldrb r0, [r0] cmp r0, #0x43 bls _080437EE @@ -2688,7 +2688,7 @@ _080437FC: movs r0, #1 b _08043936 .align 2, 0 -_0804392C: .4byte gUnk_03003DBC +_0804392C: .4byte gEntCount _08043930: .4byte gUnk_080D135C _08043934: movs r0, #0 diff --git a/asm/vaatiEyesMacro.s b/asm/vaatiEyesMacro.s index 4e3d3252..650c360c 100644 --- a/asm/vaatiEyesMacro.s +++ b/asm/vaatiEyesMacro.s @@ -161,11 +161,11 @@ _0802ED88: .4byte gUnk_080CDE5C sub_0802ED8C: @ 0x0802ED8C push {r4, lr} adds r4, r0, #0 - ldr r0, _0802EDD0 @ =gUnk_03003DBC + ldr r0, _0802EDD0 @ =gEntCount ldrb r0, [r0] cmp r0, #0x46 bhi _0802EE0A - bl sub_0805E8D4 + bl GetEmptyManager adds r1, r0, #0 cmp r1, #0 beq _0802EE0A @@ -176,7 +176,7 @@ sub_0802ED8C: @ 0x0802ED8C str r4, [r1, #0x14] adds r0, r1, #0 movs r1, #8 - bl sub_0805EA2C + bl AppendEntityToList movs r0, #0x25 movs r1, #2 bl CreateEnemy @@ -191,7 +191,7 @@ sub_0802ED8C: @ 0x0802ED8C adds r0, #0x3a b _0802EDE0 .align 2, 0 -_0802EDD0: .4byte gUnk_03003DBC +_0802EDD0: .4byte gEntCount _0802EDD4: .4byte gRoomControls _0802EDD8: .4byte gScreenTransition _0802EDDC: @@ -246,7 +246,7 @@ _0802EE34: .4byte gUnk_080CDE64 sub_0802EE38: @ 0x0802EE38 push {r4, r5, lr} adds r5, r0, #0 - ldr r0, _0802EE84 @ =gUnk_03003DBC + ldr r0, _0802EE84 @ =gEntCount ldrb r0, [r0] cmp r0, #0x46 bhi _0802EE82 @@ -280,7 +280,7 @@ sub_0802EE38: @ 0x0802EE38 _0802EE82: pop {r4, r5, pc} .align 2, 0 -_0802EE84: .4byte gUnk_03003DBC +_0802EE84: .4byte gEntCount _0802EE88: .4byte gUnk_080CDE6C thumb_func_start sub_0802EE8C diff --git a/asm/vaatiRebornEnemy.s b/asm/vaatiRebornEnemy.s index 83d5f0c1..235a04ad 100644 --- a/asm/vaatiRebornEnemy.s +++ b/asm/vaatiRebornEnemy.s @@ -82,7 +82,7 @@ _0803D146: bne _0803D158 b _0803D25A _0803D158: - ldr r0, _0803D25C @ =gUnk_03003DBC + ldr r0, _0803D25C @ =gEntCount ldrb r0, [r0] cmp r0, #0x41 bhi _0803D25A @@ -210,7 +210,7 @@ _0803D210: _0803D25A: pop {r4, r5, r6, pc} .align 2, 0 -_0803D25C: .4byte gUnk_03003DBC +_0803D25C: .4byte gEntCount _0803D260: .4byte gUnk_080D04A8 thumb_func_start sub_0803D264 diff --git a/asm/vaatiTransfigured.s b/asm/vaatiTransfigured.s index adec010a..be7920c3 100644 --- a/asm/vaatiTransfigured.s +++ b/asm/vaatiTransfigured.s @@ -102,7 +102,7 @@ sub_0803F818: @ 0x0803F818 bl CheckRoomFlag cmp r0, #0 beq _0803F910 - ldr r0, _0803F8FC @ =gUnk_03003DBC + ldr r0, _0803F8FC @ =gEntCount ldrb r0, [r0] cmp r0, #0x50 bhi _0803F910 @@ -204,7 +204,7 @@ _0803F8E0: strb r6, [r0, #0xe] b _0803F902 .align 2, 0 -_0803F8FC: .4byte gUnk_03003DBC +_0803F8FC: .4byte gEntCount _0803F900: strb r1, [r0, #0xe] _0803F902: @@ -1424,7 +1424,7 @@ _08040212: movs r1, #4 orrs r0, r1 strb r0, [r2] - ldr r0, _08040264 @ =gUnk_03003DBC + ldr r0, _08040264 @ =gEntCount ldrb r0, [r0] cmp r0, #0x45 bhi _08040260 @@ -1453,7 +1453,7 @@ _08040212: _08040260: pop {r4, r5, pc} .align 2, 0 -_08040264: .4byte gUnk_03003DBC +_08040264: .4byte gEntCount thumb_func_start sub_08040268 sub_08040268: @ 0x08040268 @@ -1883,7 +1883,7 @@ _08040582: movs r0, #0x7f ands r0, r1 strb r0, [r2] - ldr r0, _080405D0 @ =gUnk_03003DBC + ldr r0, _080405D0 @ =gEntCount ldrb r0, [r0] cmp r0, #0x46 bhi _080405A8 @@ -1912,7 +1912,7 @@ _080405C4: _080405CC: pop {r4, pc} .align 2, 0 -_080405D0: .4byte gUnk_03003DBC +_080405D0: .4byte gEntCount _080405D4: .4byte 0x00000149 thumb_func_start sub_080405D8 diff --git a/asm/vaatiWrath.s b/asm/vaatiWrath.s index 0c7960ff..46a98812 100644 --- a/asm/vaatiWrath.s +++ b/asm/vaatiWrath.s @@ -1277,7 +1277,7 @@ sub_08041D14: @ 0x08041D14 .align 2, 0 _08041D3C: .4byte gTextBox _08041D40: - ldr r0, _08041D80 @ =gUnk_03003DBC + ldr r0, _08041D80 @ =gEntCount ldrb r0, [r0] cmp r0, #0x45 bhi _08041D7C @@ -1307,7 +1307,7 @@ _08041D40: _08041D7C: pop {r4, r5, pc} .align 2, 0 -_08041D80: .4byte gUnk_03003DBC +_08041D80: .4byte gEntCount thumb_func_start sub_08041D84 sub_08041D84: @ 0x08041D84 @@ -1485,7 +1485,7 @@ _08041ED0: .4byte gUnk_080D0E90 sub_08041ED4: @ 0x08041ED4 push {r4, r5, lr} adds r5, r0, #0 - ldr r0, _08041F14 @ =gUnk_03003DBC + ldr r0, _08041F14 @ =gEntCount ldrb r0, [r0] cmp r0, #0x45 bhi _08041F18 @@ -1513,7 +1513,7 @@ sub_08041ED4: @ 0x08041ED4 movs r0, #1 b _08041F1A .align 2, 0 -_08041F14: .4byte gUnk_03003DBC +_08041F14: .4byte gEntCount _08041F18: movs r0, #0 _08041F1A: @@ -1523,7 +1523,7 @@ _08041F1A: sub_08041F1C: @ 0x08041F1C push {r4, lr} adds r4, r0, #0 - ldr r0, _08041F6C @ =gUnk_03003DBC + ldr r0, _08041F6C @ =gEntCount ldrb r0, [r0] cmp r0, #0x43 bhi _08041F70 @@ -1558,7 +1558,7 @@ sub_08041F1C: @ 0x08041F1C movs r0, #1 b _08041F72 .align 2, 0 -_08041F6C: .4byte gUnk_03003DBC +_08041F6C: .4byte gEntCount _08041F70: movs r0, #0 _08041F72: @@ -1569,14 +1569,14 @@ sub_08041F74: @ 0x08041F74 push {r4, r5, r6, r7, lr} adds r5, r0, #0 adds r6, r1, #0 - ldr r0, _08041F88 @ =gUnk_03003DBC + ldr r0, _08041F88 @ =gEntCount ldrb r0, [r0] cmp r0, #0x46 bls _08041F8C movs r0, #0 b _08041FC8 .align 2, 0 -_08041F88: .4byte gUnk_03003DBC +_08041F88: .4byte gEntCount _08041F8C: ldr r7, [r5, #0x64] movs r4, #0 @@ -1616,7 +1616,7 @@ _08041FC8: sub_08041FCC: @ 0x08041FCC push {r4, lr} adds r4, r0, #0 - ldr r0, _08041FFC @ =gUnk_03003DBC + ldr r0, _08041FFC @ =gEntCount ldrb r0, [r0] cmp r0, #0x4c bhi _08042000 @@ -1635,7 +1635,7 @@ sub_08041FCC: @ 0x08041FCC movs r0, #1 b _08042002 .align 2, 0 -_08041FFC: .4byte gUnk_03003DBC +_08041FFC: .4byte gEntCount _08042000: movs r0, #0 _08042002: diff --git a/include/entity.h b/include/entity.h index 5eaa1f2f..36b02000 100644 --- a/include/entity.h +++ b/include/entity.h @@ -26,8 +26,8 @@ typedef struct { } BoundingBox; typedef struct Entity { - /*0x00*/ struct Entity* field_0x0; - /*0x04*/ struct Entity* field_0x4; + /*0x00*/ struct Entity* prev; + /*0x04*/ struct Entity* next; /*0x08*/ EntityType entityType; /*0x0c*/ u8 action; /*0x0d*/ u8 previousActionFlag; diff --git a/include/functions.h b/include/functions.h index 41da17db..30576777 100644 --- a/include/functions.h +++ b/include/functions.h @@ -71,8 +71,8 @@ extern u32 sub_0806F5A4(u32); extern void sub_08078784(Entity*, u32); extern void sub_0807DD50(Entity*); extern void sub_0807DD94(Entity*, u32); -extern Entity* sub_0805EB00(u32, u32, u32); -extern Entity* sub_0805EB2C(u32, u32, u32, u32, u32); +extern Entity* FindEntityInListBySubtype(u32, u32, u32); +extern Entity* FindEntityInListByForm(u32, u32, u32, u32, u32); extern s32 sub_0806ED9C(Entity*, u32, u32); extern void sub_0807000C(Entity*); extern void sub_0805E47C(Entity*); @@ -196,8 +196,8 @@ extern u32 sub_0807953C(void); extern void ResetPlayer(void); extern void sub_080A29BC(Entity*); extern void sub_080AE068(Entity*); -extern Entity* sub_0805E8D4(void); -extern void sub_0805EA2C(Entity*, u32); +extern Entity* GetEmptyManager(void); +extern void AppendEntityToList(Entity*, u32); extern u32 sub_0800445C(Entity*); extern void sub_0807A108(void); extern void sub_0801766C(Entity*); diff --git a/include/greatFairy.h b/include/greatFairy.h index 517db168..317bbf49 100644 --- a/include/greatFairy.h +++ b/include/greatFairy.h @@ -19,9 +19,9 @@ extern u32 sub_080045D4(); extern void sub_0806F69C(); extern u32 Random(); extern void sub_0805E3A0(Entity*, u32); -extern Entity* sub_0805EB00(u32, u32, u32); +extern Entity* FindEntityInListBySubtype(u32, u32, u32); extern void sub_080791D0(); -extern u32 sub_0805EB2C(u32, u32, u32, u32, u32); +extern u32 FindEntityInListByForm(u32, u32, u32, u32, u32); extern void (*const GreatFairy_Main[])(Entity*); extern void (*const GreatFairy_Behaviors[])(Entity*); extern void (*const GreatFairy_WingsBehaviors[])(Entity*); diff --git a/linker.ld b/linker.ld index c8153286..48165919 100644 --- a/linker.ld +++ b/linker.ld @@ -135,7 +135,7 @@ SECTIONS { . = 0x000350F0; gUnk_020350F0 = .; . = 0x00035160; gUnk_02035160 = .; . = 0x000354B0; gUnk_020354B0 = .; - . = 0x000354B4; gUnk_020354B4 = .; + . = 0x000354B4; gManagerCount = .; . = 0x000354C0; gUnk_020354C0 = .; . = 0x0003553E; gUnk_0203553E = .; . = 0x00035540; gUnk_02035540 = .; @@ -189,14 +189,14 @@ SECTIONS { . = 0x00003BE0; gUnk_03003BE0 = .; . = 0x00003C70; gUnk_03003C70 = .; . = 0x00003D68; gUnk_03003D68 = .; - . = 0x00003D70; gUnk_03003D70 = .; + . = 0x00003D70; gEntityLists = .; . = 0x00003D80; gUnk_03003D80 = .; . = 0x00003D90; gUnk_03003D90 = .; . = 0x00003DA0; gUnk_03003DA0 = .; . = 0x00003DA8; gUnk_03003DA8 = .; . = 0x00003DB0; gUnk_03003DB0 = .; . = 0x00003DB8; gUnk_03003DB8 = .; - . = 0x00003DBC; gUnk_03003DBC = .; + . = 0x00003DBC; gEntCount = .; . = 0x00003DC0; gUnk_03003DC0 = .; . = 0x00003DD0; gUnk_03003DD0 = .; . = 0x00003DE0; gUnk_03003DE0 = .; diff --git a/src/code_08077B98.c b/src/code_08077B98.c index cf2b3b2c..b0d62afc 100644 --- a/src/code_08077B98.c +++ b/src/code_08077B98.c @@ -17,7 +17,7 @@ Entity* sub_08077C94(ItemBehavior*, u32); void* sub_08077C54(UnkItemStruct* unk); Entity* CreatePlayerBomb(ItemBehavior*, u32); extern Entity* sub_0805E744(); -extern void sub_0805EA2C(Entity*, u32); +extern void AppendEntityToList(Entity*, u32); extern struct_0811BE48 gUnk_0811BE48[]; @@ -84,7 +84,7 @@ void* sub_08077C54(UnkItemStruct* unk) item->flags = 0xa0; item->parent = (Entity*)unk; item->field_0x68.HALF.LO = unk->field_0x1; - sub_0805EA2C(item, 2); + AppendEntityToList(item, 2); } return item; } @@ -93,7 +93,7 @@ Entity* sub_08077C94(ItemBehavior* arg0, u32 arg1) { Entity* iVar1; - iVar1 = sub_0805EB00(8, gUnk_0811BE48[arg1].unk[3], 2); + iVar1 = FindEntityInListBySubtype(8, gUnk_0811BE48[arg1].unk[3], 2); if (iVar1 == NULL) { return NULL; } @@ -112,7 +112,7 @@ Entity * CreatePlayerItem(u32 subtype, u32 form, u32 parameter, u32 unk) (ent->entityType).form = form; (ent->entityType).parameter = parameter; ent->field_0x68.HALF.LO = unk; - sub_0805EA2C(ent, 2); + AppendEntityToList(ent, 2); } return ent; } @@ -129,7 +129,7 @@ Entity * sub_08077CF8(u32 subtype, u32 form, u32 parameter, u32 unk) (ent->entityType).form = form; (ent->entityType).parameter = parameter; ent->field_0x68.HALF.LO = unk; - sub_0805EA2C(ent, 2); + AppendEntityToList(ent, 2); } return ent; } diff --git a/src/createEnemy.c b/src/createEnemy.c index 6090da14..3b243e79 100644 --- a/src/createEnemy.c +++ b/src/createEnemy.c @@ -2,7 +2,7 @@ #include "global.h" extern Entity* GetEmptyEntity(); -extern void sub_0805EA2C(Entity*, u8); +extern void AppendEntityToList(Entity*, u8); Entity* CreateEnemy(u32 subtype, u32 form) { Entity* enemy; @@ -12,7 +12,7 @@ Entity* CreateEnemy(u32 subtype, u32 form) { (enemy->entityType).type = 3; (enemy->entityType).subtype = subtype; (enemy->entityType).form = form; - sub_0805EA2C(enemy, 4); + AppendEntityToList(enemy, 4); } return enemy; } diff --git a/src/createEntity.c b/src/createEntity.c index 9d597c4c..7bcb0bea 100644 --- a/src/createEntity.c +++ b/src/createEntity.c @@ -2,8 +2,8 @@ // #include "entityData.h" // #include "global.h" -// extern Entity * sub_0805EB9C(u32, u32); -// extern Entity * sub_0805E768(); +// extern Entity * FindEntityBySubtype(u32, u32); +// extern Entity * GetEmptyEntityAny(); // extern void sub_0804AEB0(Entity *, EntityData *); // extern u32 sub_0804AF0C(Entity *, EntityData *); // extern void sub_08016A30(Entity *); @@ -17,11 +17,11 @@ // type = param_1->entityType & 15; // if (((param_1->field_0x1 & 240) == 80) && -// (preexisting = sub_0805EB9C(type,param_1->entitySubtype), preexisting != NULL)) { +// (preexisting = FindEntityBySubtype(type,param_1->entitySubtype), preexisting != NULL)) { // entity = NULL; // } // else { -// entity = sub_0805E768(); //Get empty entity +// entity = GetEmptyEntityAny(); //Get empty entity // if (entity != NULL) { // (entity->entityType).type = type; // (entity->entityType).subtype = param_1->entitySubtype; diff --git a/src/createNPC.c b/src/createNPC.c index e7f0783d..3e11ba91 100644 --- a/src/createNPC.c +++ b/src/createNPC.c @@ -2,7 +2,7 @@ #include "entity.h" extern Entity* GetEmptyEntity(); -extern void sub_0805EA2C(Entity*, u8); +extern void AppendEntityToList(Entity*, u8); Entity* CreateNPC(u32 subtype, u32 form, u32 parameter) @@ -15,7 +15,7 @@ Entity* CreateNPC(u32 subtype, u32 form, u32 parameter) (pEVar1->entityType).subtype = subtype; (pEVar1->entityType).form = form; (pEVar1->entityType).parameter = parameter; - sub_0805EA2C(pEVar1, 7); + AppendEntityToList(pEVar1, 7); } return pEVar1; } diff --git a/src/createObject.c b/src/createObject.c index db13f173..93db1d93 100644 --- a/src/createObject.c +++ b/src/createObject.c @@ -2,7 +2,7 @@ #include "entity.h" extern Entity* GetEmptyEntity(); -extern void sub_0805EA2C(Entity*, u8); +extern void AppendEntityToList(Entity*, u8); Entity* CreateObject(u32 subtype, u32 param1, u32 param2) @@ -15,7 +15,7 @@ Entity* CreateObject(u32 subtype, u32 param1, u32 param2) (newEnt->entityType).subtype = subtype; (newEnt->entityType).form = param1; (newEnt->entityType).parameter = param2; - sub_0805EA2C(newEnt, 6); + AppendEntityToList(newEnt, 6); } return newEnt; } diff --git a/src/enemy/acroBandits.c b/src/enemy/acroBandits.c index b183b93f..5bfe5e01 100644 --- a/src/enemy/acroBandits.c +++ b/src/enemy/acroBandits.c @@ -21,7 +21,7 @@ extern void SetChildOffset(Entity*, s32, s32, s32); extern u32 Random(void); extern Entity* gUnk_020000B0; -extern u8 gUnk_03003DBC; +extern u8 gEntCount; extern void (*const gUnk_080012C8[])(Entity*); extern void (*const gUnk_080CE56C[])(Entity*); extern void (*const gUnk_080CE584[])(Entity*); @@ -216,7 +216,7 @@ void sub_08031C58(Entity* this) { GetNextFrame(this); if (this->frames.b.f3) { - if (gUnk_03003DBC < 0x43) { + if (gEntCount < 0x43) { tmp = Random(); tmp &= 3; diff --git a/src/enemy/rupeeLike.c b/src/enemy/rupeeLike.c index 714d3788..7a021657 100644 --- a/src/enemy/rupeeLike.c +++ b/src/enemy/rupeeLike.c @@ -205,7 +205,7 @@ void sub_08029660(Entity* this) { } void sub_08029688(Entity* this) { - if (this->parent->field_0x4 == NULL) { + if (this->parent->next == NULL) { DeleteEntity(this); } } diff --git a/src/entity.c b/src/entity.c index cae8ee22..0f7f16d3 100644 --- a/src/entity.c +++ b/src/entity.c @@ -10,36 +10,33 @@ typedef struct OtherEntity { extern Entity gUnk_030011E8[7]; -Entity* sub_0805E744(void) - -{ +Entity* sub_0805E744(void) { Entity* ent = gUnk_030011E8; do { - if (ent->field_0x0 == NULL) { + if (ent->prev == NULL) { return ent; } - } while (ent++, ent < &gUnk_030011E8[7]); + } while (++ent < &gUnk_030011E8[7]); return NULL; } extern Entity* GetEmptyEntity(); -OtherEntity* sub_0805E8D4(); +OtherEntity* GetEmptyManager(); typedef void* (*Getter)(void); -void* sub_0805E768(int type) - -{ +void* GetEmptyEntityAny(int type) { Getter getter = NULL; if (type == 9) { - getter = (Getter)sub_0805E8D4; + getter = (Getter)GetEmptyManager; } else { getter = (Getter)GetEmptyEntity; } return getter(); } + typedef struct { int field_0x0; int field_0x4; @@ -50,27 +47,23 @@ typedef struct { extern struct_03003DD0 gUnk_03003DD0; extern u32 _call_via_r0(u32*); extern u32 gUnk_03005F24; -extern void sub_0805E79C(Entity*); +extern void DeleteEntityAny(Entity*); -void DeleteThisEntity(void) - -{ - sub_0805E79C(gUnk_03003DD0.field_0x8); +void DeleteThisEntity(void) { + DeleteEntityAny(gUnk_03003DD0.field_0x8); _call_via_r0((u32*)&gUnk_03005F24); return; } void DeleteEntity(Entity*); -void sub_0805E900(OtherEntity*); +void DeleteManager(OtherEntity*); typedef void (*Deleter)(void*); -void sub_0805E79C(Entity* ent) - -{ +void DeleteEntityAny(Entity* ent) { Deleter deleter = NULL; if (ent->entityType.type == 9) { - deleter = (Deleter)sub_0805E900; + deleter = (Deleter)DeleteManager; } else { deleter = (Deleter)DeleteEntity; } @@ -89,12 +82,10 @@ extern void sub_0807DB08(); extern void sub_0806FBEC(); extern void sub_0801DA0C(); extern void sub_0804AA1C(); -extern void sub_0805EA98(); // Unlink +extern void UnlinkEntity(); // Unlink -void DeleteEntity(Entity* ent) - -{ - if (ent->field_0x4) { +void DeleteEntity(Entity* ent) { + if (ent->next) { sub_080AE068(ent); sub_0801D230(ent); sub_0806FE84(ent); @@ -107,7 +98,7 @@ void DeleteEntity(Entity* ent) sub_0806FBEC(ent); sub_0801DA0C(ent->otherEntity); ent->otherEntity = NULL; - if ((ent->entityType).type == '\x03') { + if ((ent->entityType).type == 3) { sub_0804AA1C(ent); } ent->flags = ent->flags & 0x7f; @@ -116,68 +107,60 @@ void DeleteEntity(Entity* ent) ent->bitfield = 0; ent->field_0x42 = 0; ent->currentHealth = 0; - sub_0805EA98(ent); - ent->field_0x4 = NULL; - ent->field_0x0 = (Entity*)0xffffffff; + UnlinkEntity(ent); + ent->next = NULL; + ent->prev = (Entity*)0xffffffff; } } extern Entity gPlayerEntity; -void sub_0805E870(Entity*); +void ClearDeletedEntity(Entity*); -void sub_0805E84C(void) - -{ +void ClearAllDeletedEntities(void) { Entity* ent = &gPlayerEntity; do { - if ((int)ent->field_0x0 < 0) { - sub_0805E870(ent); + if ((int)ent->prev < 0) { + ClearDeletedEntity(ent); } } while (ent++, ent < (&gPlayerEntity + 80)); return; } -extern u8 gUnk_03003DBC; +extern u8 gEntCount; -void sub_0805E870(Entity* ent) - -{ +void ClearDeletedEntity(Entity* ent) { DmaClear32(3, ent, sizeof(Entity)); - gUnk_03003DBC--; + gEntCount--; } -typedef struct struct_03003D70 { - void* field_0x0; - void* field_0x4; -} struct_03003D70; +typedef struct LinkedList { + Entity* last; + Entity* first; +} LinkedList; -extern struct_03003D70 gUnk_03003D70[9]; +extern LinkedList gEntityLists[9]; extern EntityType gUnk_03003DB8; -void sub_0805E89C(void) - -{ +void sub_0805E89C(void) { Entity* ent; Entity* next; - struct_03003D70* it; + LinkedList* it; - it = gUnk_03003D70; - if (it->field_0x4) { + it = &gEntityLists[0]; + if (it->first) { do { - for (ent = it->field_0x4; (u32)ent != (u32)it; ent = next) { - next = ent->field_0x4; - sub_0805E79C(ent); + for (ent = it->first; (u32)ent != (u32)it; ent = next) { + next = ent->next; + DeleteEntityAny(ent); } - } while (it++, it < (gUnk_03003D70 + 9)); - sub_0805E84C(); + } while (++it < &gEntityLists[9]); + ClearAllDeletedEntities(); } } extern OtherEntity gUnk_02033290; -OtherEntity* sub_0805E8D4(void) - -{ +OtherEntity* GetEmptyManager(void) { OtherEntity* it; for (it = &gUnk_02033290; it < (&gUnk_02033290 + 32); it++) { if (it->prev == 0) { @@ -188,25 +171,21 @@ OtherEntity* sub_0805E8D4(void) } extern void _DmaZero(void*, u32); -extern u8 gUnk_020354B4; +extern u8 gManagerCount; -void sub_0805E900(OtherEntity* ent) - -{ +void DeleteManager(OtherEntity* ent) { if (!ent->next) return; sub_0805E92C(ent); - sub_0805EA98(ent); - _DmaZero(ent, 0x40); - gUnk_020354B4--; + UnlinkEntity(ent); + _DmaZero(ent, sizeof(OtherEntity)); + gManagerCount--; } #include "area.h" -void sub_0805E92C(u32 param_1) - -{ +void sub_0805E92C(u32 param_1) { if (param_1 == gArea.unk2) { gArea.unk2 = 0; gArea.unk3 = 0; @@ -218,206 +197,175 @@ extern Entity gUnk_020369F0; extern void sub_0801D66C(const void* src, void* dest, size_t size); // dma copy extern void sub_0805E98C(void); -void sub_0805E958(void) - -{ - sub_0801D66C(&gUnk_03003D70, &gUnk_020369F0, 0x48); +void sub_0805E958(void) { + sub_0801D66C(&gEntityLists, &gUnk_020369F0, 0x48); sub_0805E98C(); } -void sub_0805E974(void) - -{ - sub_0801D66C(&gUnk_020369F0, &gUnk_03003D70, 0x48); +void sub_0805E974(void) { + sub_0801D66C(&gUnk_020369F0, &gEntityLists, 0x48); } -void sub_0805E98C(void) +void sub_0805E98C(void) { + LinkedList* list; -{ - struct_03003D70* it; - - for (it = gUnk_03003D70; it < &gUnk_03003D70[9]; it++) { - it->field_0x0 = it; - it->field_0x4 = (Entity*)it; + for (list = gEntityLists; list < &gEntityLists[9]; list++) { + list->last = (Entity*)list; + list->first = (Entity*)list; } } -void sub_0805E9A8(void) +void sub_0805E9A8(void) { + Entity* i; + LinkedList* list; -{ - Entity* entry; - struct_03003D70* it; - - it = gUnk_03003D70; + list = &gEntityLists[0]; do { - for (entry = it->field_0x4; (u32)entry != (u32)it; entry = entry->field_0x4) { - entry->flags &= 0xfd; - if ((entry->flags & 0x20) == 0) { - entry->flags |= 0x10; + for (i = list->first; (u32)i != (u32)list; i = i->next) { + i->flags &= 0xfd; + if ((i->flags & 0x20) == 0) { + i->flags |= 0x10; } } - } while (it++, it < (gUnk_03003D70 + 9)); + } while (++list < &gEntityLists[9]); } -void sub_0805E9F4(void) - -{ +void sub_0805E9F4(void) { Entity* ent; Entity* next; - struct_03003D70* it; + LinkedList* list; - it = gUnk_03003D70; + list = &gEntityLists[0]; do { - for (ent = it->field_0x4; (u32)ent != (u32)it; ent = next) { - next = ent->field_0x4; + for (ent = list->first; (u32)ent != (u32)list; ent = next) { + next = ent->next; if (ent->flags & 0x10) - sub_0805E79C(ent); + DeleteEntityAny(ent); } - } while (it++, it < (gUnk_03003D70 + 9)); + } while (++list < &gEntityLists[9]); } extern void sub_0805E374(Entity*); -void sub_0805EA2C(Entity* ent, int kind) +void AppendEntityToList(Entity* ent, int listIndex) { + LinkedList* list; -{ - Entity* prev; - struct_03003D70* next; - - next = (gUnk_03003D70 + kind); - ent->field_0x4 = (Entity*)next; - prev = next->field_0x0; - ent->field_0x0 = prev; - prev->field_0x4 = ent; - next->field_0x0 = ent; + list = &gEntityLists[listIndex]; + ent->next = (Entity*)list; + ent->prev = list->last; + list->last->next = ent; + list->last = ent; if (ent->entityType.type != 9) { ent->spritePriority.b0 = 4; - gUnk_03003DBC++; + gEntCount++; } else { - gUnk_020354B4++; + gManagerCount++; } sub_0805E374(ent); } -void sub_0805EA78(Entity* ent, int kind) +void PrependEntityToList(Entity* ent, int listIndex) { + LinkedList* list; -{ - struct_03003D70* it; - - sub_0805EA98(ent); - it = &gUnk_03003D70[kind]; - ent->field_0x0 = (Entity*)it; - ent->field_0x4 = it->field_0x4; - ((Entity*)it->field_0x4)->field_0x0 = ent; - it->field_0x4 = ent; + UnlinkEntity(ent); + list = &gEntityLists[listIndex]; + ent->prev = (Entity*)list; + ent->next = list->first; + list->first->prev = ent; + list->first = ent; } -void sub_0805EA98(Entity* ent) - -{ +void UnlinkEntity(Entity* ent) { if (ent == gUnk_03003DD0.field_0x8) { - gUnk_03003DD0.field_0x8 = ent->field_0x0; + gUnk_03003DD0.field_0x8 = ent->prev; } - ent->field_0x0->field_0x4 = ent->field_0x4; - ent->field_0x4->field_0x0 = ent->field_0x0; + ent->prev->next = ent->next; + ent->next->prev = ent->prev; } -int sub_0805EABC(Entity* ent) +bool32 DoesSimilarEntityExist(Entity* ent) { + Entity* i; + LinkedList* list; -{ - Entity* ent2; - struct_03003D70 *it, *end; - - it = gUnk_03003D70; - end = (gUnk_03003D70 + 9); + list = &gEntityLists[0]; do { - for (ent2 = (Entity*)it->field_0x4; (u32)ent2 != (u32)it; ent2 = ent2->field_0x4) { - if ((u32)ent2 != (u32)ent && ent2->entityType.type == ent->entityType.type && - ent2->entityType.subtype == ent->entityType.subtype) { - return 1; + for (i = list->first; (u32)i != (u32)list; i = i->next) { + if ((u32)i != (u32)ent && i->entityType.type == ent->entityType.type && + i->entityType.subtype == ent->entityType.subtype) { + return TRUE; } } - } while (it++, it < end); + } while (++list < &gEntityLists[9]); - return 0; + return FALSE; } -Entity* sub_0805EB00(int type, int subtype, int kind) - -{ +Entity* FindEntityInListBySubtype(int type, int subtype, int listIndex) { Entity* it; - struct_03003D70* node; + LinkedList* list; - node = &gUnk_03003D70[kind]; - for (it = node->field_0x4; (u32)it != (u32)node; it = it->field_0x4) { + list = &gEntityLists[listIndex]; + for (it = list->first; (u32)it != (u32)list; it = it->next) { if (type == it->entityType.type && subtype == it->entityType.subtype) return it; } return NULL; } -Entity* sub_0805EB2C(int type, int subtype, int kind, int form, int parameter) +Entity* FindEntityInListByForm(int type, int subtype, int listIndex, int form, int parameter) { + Entity* i; + LinkedList* list; -{ - Entity* it; - struct_03003D70* node; - - node = &gUnk_03003D70[kind]; - node = &gUnk_03003D70[kind]; - for (it = node->field_0x4; (u32)it != (u32)node; it = it->field_0x4) { - if (type == it->entityType.type && subtype == it->entityType.subtype && form == it->entityType.form && - parameter == it->entityType.parameter) - return it; + list = &gEntityLists[listIndex]; + for (i = list->first; (u32)i != (u32)list; i = i->next) { + if (type == i->entityType.type + && subtype == i->entityType.subtype + && form == i->entityType.form + && parameter == i->entityType.parameter) + return i; } return NULL; } -Entity* sub_0805EB64(Entity* ent, int kind) +Entity* FindNextEntityOfSameSubtype(Entity* ent, int listIndex) { + Entity* i; + LinkedList* list; -{ - Entity* it; - struct_03003D70* end; - - end = &gUnk_03003D70[kind]; - for (it = ent->field_0x4; (u32)it != (u32)end; it = it->field_0x4) { - if (it->entityType.type == ent->entityType.type && it->entityType.subtype == ent->entityType.subtype) - return it; + list = &gEntityLists[listIndex]; + for (i = ent->next; (u32)i != (u32)list; i = i->next) { + if (i->entityType.type == ent->entityType.type && i->entityType.subtype == ent->entityType.subtype) + return i; } return NULL; } -Entity* sub_0805EB9C(int type, int subtype) +Entity* FindEntityBySubtype(int type, int subtype) { + Entity* i; + LinkedList* list; -{ - Entity* it2; - struct_03003D70 *it, *end; - - it = gUnk_03003D70; - end = (gUnk_03003D70 + 9); + list = &gEntityLists[0]; do { - for (it2 = (Entity*)it->field_0x4; (u32)it2 != (u32)it; it2 = it2->field_0x4) { - if ((type == (it2->entityType).type) && (subtype == (it2->entityType).subtype)) - return it2; + for (i = (Entity*)list->first; (u32)i != (u32)list; i = i->next) { + if ((type == (i->entityType).type) && (subtype == (i->entityType).subtype)) + return i; } - } while (it++, it < end); + } while (++list < &gEntityLists[9]); - return 0; + return NULL; } -void sub_0805EBCC(void) - -{ +void DeleteAllEnemies(void) { Entity* ent; Entity* next; - struct_03003D70* it; + LinkedList* list; - it = gUnk_03003D70; + list = &gEntityLists[0]; do { - for (ent = it->field_0x4; (u32)ent != (u32)it; ent = next) { - next = ent->field_0x4; + for (ent = list->first; (u32)ent != (u32)list; ent = next) { + next = ent->next; if (ent->entityType.type == 3) DeleteEntity(ent); } - } while (it++, it < (gUnk_03003D70 + 9)); - sub_0805E84C(); + } while (++list < &gEntityLists[9]); + ClearAllDeletedEntities(); } diff --git a/src/initializePlayer.c b/src/initializePlayer.c index 589d550e..f9993ef3 100644 --- a/src/initializePlayer.c +++ b/src/initializePlayer.c @@ -63,6 +63,6 @@ void InitializePlayer(void) pl->animationState = gScreenTransition.playerState; pl->collisionLayer = gScreenTransition.playerLayer; UpdateSpriteForCollisionLayer(pl); - sub_0805EA2C(pl, 1); + AppendEntityToList(pl, 1); sub_08017640(); } \ No newline at end of file diff --git a/src/manager/manager4.c b/src/manager/manager4.c index 1473aa61..2b0ddd3d 100644 --- a/src/manager/manager4.c +++ b/src/manager/manager4.c @@ -98,7 +98,7 @@ u32 sub_0805795C(Manager* this, DiggingCaveEntrance* entr) { #endif extern void sub_0805E5A8(void); -extern void sub_0805E900(Manager*); +extern void DeleteManager(Manager*); extern void sub_08080930(); void sub_08057A18(Manager* this, DiggingCaveEntrance* entr) { @@ -121,7 +121,7 @@ void sub_08057A18(Manager* this, DiggingCaveEntrance* entr) { gUnk_03004030.unk_0b = entr->target_roomID | 0x80; } sub_08080930(entr->unk_03); - sub_0805E900(this); + DeleteManager(this); } DiggingCaveEntrance* sub_08057AA8(DiggingCaveEntrance* entr, int roomID){ diff --git a/src/manager/manager6.c b/src/manager/manager6.c index 7914a224..be4530ad 100644 --- a/src/manager/manager6.c +++ b/src/manager/manager6.c @@ -6,7 +6,7 @@ extern void* GetCurrentRoomProperty(u8); extern u32 CheckPlayerInRegion(u16, u16, u8, u8); extern void DoExitTransition(void*); -extern void sub_0805E900(Entity*); +extern void DeleteManager(Entity*); void sub_08057CB4(Entity * this) { u32 tmp; @@ -15,7 +15,7 @@ void sub_08057CB4(Entity * this) { this->action = 1; this->field_0x20 = (s32) GetCurrentRoomProperty(this->entityType.form); if (this->field_0x20 == 0) { - sub_0805E900(this); + DeleteManager(this); return; } } diff --git a/src/manager/managerE.c b/src/manager/managerE.c index 52402c22..7145ad13 100644 --- a/src/manager/managerE.c +++ b/src/manager/managerE.c @@ -7,7 +7,7 @@ extern Entity* GetCurrentRoomProperty(u8); extern void LoadRoomEntityList(Entity*); extern void DeleteThisEntity(void); -extern void sub_0805E900(Manager*); +extern void DeleteManager(Manager*); extern void sub_08078A90(u32); extern void sub_08078B48(void); extern void PlaySFX(u32); @@ -16,7 +16,7 @@ void sub_08058E60(Manager* this) { if (!this->unk_0c) { this->unk_0c = 1; if (CheckFlags(this->unk_3e)) { - sub_0805E900(this); + DeleteManager(this); return; } } diff --git a/src/npc/bigGoron.c b/src/npc/bigGoron.c index e2024a25..694ec6f7 100644 --- a/src/npc/bigGoron.c +++ b/src/npc/bigGoron.c @@ -14,7 +14,7 @@ extern void sub_0807DDE4(Entity*); extern u32 Random(void); extern void PlaySFX(u32); extern void sub_0806D02C(Entity*); -extern Entity* sub_0805EB2C(u32, u32, u32, u32, u32); +extern Entity* FindEntityInListByForm(u32, u32, u32, u32, u32); void BigGoron(Entity* this) { gUnk_081140D4[this->entityType.form](this); @@ -62,7 +62,7 @@ void sub_0806CF30(Entity* this) { void sub_0806D00C(Entity* this) { Entity* pEVar1; - pEVar1 = sub_0805EB2C(7, 76, 7, 0, 0); + pEVar1 = FindEntityInListByForm(7, 76, 7, 0, 0); if (pEVar1 != NULL) { this->parent = pEVar1; } diff --git a/src/npc/forestMinish.c b/src/npc/forestMinish.c index 4fa025c6..7c2d214d 100644 --- a/src/npc/forestMinish.c +++ b/src/npc/forestMinish.c @@ -19,7 +19,7 @@ extern void sub_0807000C(Entity*); extern void sub_080042BA(Entity*, u32); extern void sub_08060158(Entity*); extern u32 CheckKinstoneFused(u32); -extern Entity* sub_0805EB00(u32, u32, u32); +extern Entity* FindEntityInListBySubtype(u32, u32, u32); extern void sub_080A29BC(Entity* parent); extern void DeleteEntity(Entity*); extern u32 Random(void); @@ -248,7 +248,7 @@ void sub_08060318(void) int i; for (i = 2; i >= 0; i--) { - ent = sub_0805EB00(8, 2, 2); + ent = FindEntityInListBySubtype(8, 2, 2); if (ent != NULL) { sub_080A29BC(ent); DeleteEntity(ent); diff --git a/src/npc/goronMerchant.c b/src/npc/goronMerchant.c index 94736676..c2d7cd03 100644 --- a/src/npc/goronMerchant.c +++ b/src/npc/goronMerchant.c @@ -94,12 +94,12 @@ void sub_08069684(void) { Entity *mgr; - if (sub_0805EB00(9, 0x31, 8) == NULL) { - mgr = sub_0805E8D4(); + if (FindEntityInListBySubtype(9, 0x31, 8) == NULL) { + mgr = GetEmptyManager(); if (mgr != NULL) { mgr->entityType.type = 9; mgr->entityType.subtype = 0x31; - sub_0805EA2C(mgr, 8); + AppendEntityToList(mgr, 8); } } } diff --git a/src/npc/guard.c b/src/npc/guard.c index 675e2cb6..42e13136 100644 --- a/src/npc/guard.c +++ b/src/npc/guard.c @@ -41,7 +41,7 @@ extern void (*const gUnk_0810F544[])(Entity*); extern void (*const gUnk_0810F550[])(Entity*); // entity count -extern u8 gUnk_03003DBC; +extern u8 gEntCount; extern SpriteLoadData gUnk_0810F524[]; extern void* gUnk_0810F6BC[]; extern ScreenTransition gScreenTransition; @@ -63,7 +63,7 @@ void sub_08063D44(Entity* this) { Entity* ent; u32 temp, idx; - if (gUnk_03003DBC > 0x46) + if (gEntCount > 0x46) return; temp = this->entityType.subtype; diff --git a/src/npc/malon.c b/src/npc/malon.c index 15b8c1f4..340e9cf7 100644 --- a/src/npc/malon.c +++ b/src/npc/malon.c @@ -57,12 +57,12 @@ void sub_08065900(Entity* this) { void sub_08065914(Entity* this) { Entity* target; - target = sub_0805EB00(7, 0x1F, 7); + target = FindEntityInListBySubtype(7, 0x1F, 7); if (target != NULL) { PositionRelative(this, target, 0x180000, -0x10000); target->parent = this; } - target = sub_0805EB00(7, 0x20, 7); + target = FindEntityInListBySubtype(7, 0x20, 7); if (target != NULL) { PositionRelative(this, target, 0x280000, 0); target->parent = this; diff --git a/src/npc/zelda.c b/src/npc/zelda.c index 03764a5e..941f96e5 100644 --- a/src/npc/zelda.c +++ b/src/npc/zelda.c @@ -4,11 +4,11 @@ #include "room.h" #include "flags.h" -extern void sub_0805EA78(Entity*, u32); +extern void PrependEntityToList(Entity*, u32); extern void sub_0805E3A0(Entity*, u32); extern void sub_0807DD50(Entity*); extern void sub_0807DD94(Entity*, u32); -extern Entity* sub_0805EB9C(u32, u32); +extern Entity* FindEntityBySubtype(u32, u32); void CopyPosition(Entity*, Entity*); void sub_08068680(Entity*, Entity*); void sub_08068694(Entity*, Entity*); @@ -34,7 +34,7 @@ void Zelda(Entity* ent) { void sub_08066CCC(Entity* ent) { ent->action = 1; ent->spriteSettings.b.draw = 1; - sub_0805EA78(ent, 7); + PrependEntityToList(ent, 7); sub_0805E3A0(ent, 2); sub_0807DD50(ent); } @@ -44,7 +44,7 @@ void sub_08066CF8(Entity* ent) { } void sub_08066D04(Entity* ent) { - ent->parent = sub_0805EB9C(7, 0x2E); + ent->parent = FindEntityBySubtype(7, 0x2E); } void sub_08066D14(Entity* ent, u32* param_2) { @@ -99,7 +99,7 @@ void sub_08066D94(Entity* ent) { void sub_08066DE4(Entity* ent) { Entity* pEVar1; - pEVar1 = sub_0805EB9C(7, 0x2E); + pEVar1 = FindEntityBySubtype(7, 0x2E); if (pEVar1 != NULL) { CopyPosition(ent, pEVar1); sub_080686C4(ent, pEVar1); diff --git a/src/object/greatFairy.c b/src/object/greatFairy.c index 5c82892a..9174ab63 100644 --- a/src/object/greatFairy.c +++ b/src/object/greatFairy.c @@ -521,7 +521,7 @@ void sub_080873FC(void) { PlaySFX(0xf7); gRoomControls.cameraTarget = NULL; - while (ent = sub_0805EB00(0x6, 0x1b, 0x6), ent != NULL) { + while (ent = FindEntityInListBySubtype(0x6, 0x1b, 0x6), ent != NULL) { DeleteEntity(ent); } } @@ -550,7 +550,7 @@ void sub_08087424(Entity* arg0, struct_08087424* arg1) { void sub_0808747C(u32 arg0, u32 arg1) { u32 iVar1; - iVar1 = sub_0805EB2C(0x6, 0xf, 0x6, 0xb, 0x0); + iVar1 = FindEntityInListByForm(0x6, 0xf, 0x6, 0xb, 0x0); if (iVar1 != 0) { iVar1 = 1; } diff --git a/src/object/object1A.c b/src/object/object1A.c index f7d9e469..91129a16 100644 --- a/src/object/object1A.c +++ b/src/object/object1A.c @@ -37,7 +37,7 @@ void sub_080869DC(Entity* ent) { void sub_08086A28(Entity* ent) { s32 iVar1; - if (ent->attachedEntity->field_0x4 == NULL) { + if (ent->attachedEntity->next == NULL) { ent->action = 2; } else { iVar1 = sub_080044EC(ent, 10240); diff --git a/src/object/object48.c b/src/object/object48.c index 7f93ea16..30ddda26 100755 --- a/src/object/object48.c +++ b/src/object/object48.c @@ -324,13 +324,13 @@ void sub_0808EBB8(Entity* this) { static Entity* sub_0808EC80(int form) { Entity* entityA = &gUnk_03003DA0; - Entity* entityB = entityA->field_0x4; + Entity* entityB = entityA->next; while (entityB != entityA) { if ((entityB->entityType.type == 0x6 && entityB->entityType.subtype == 0x48) && form == entityB->entityType.form) { return entityB; } - entityB = entityB->field_0x4; + entityB = entityB->next; } return NULL; } diff --git a/src/object/object7E.c b/src/object/object7E.c index 744a1b3d..75ff0e63 100644 --- a/src/object/object7E.c +++ b/src/object/object7E.c @@ -4,7 +4,7 @@ void Object7E(Entity *this) { - if (this->parent->field_0x4 == NULL) { + if (this->parent->next == NULL) { DeleteThisEntity(); } if (this->action == 0) { diff --git a/src/object/objectAF.c b/src/object/objectAF.c index 0415398b..382e32a3 100644 --- a/src/object/objectAF.c +++ b/src/object/objectAF.c @@ -31,7 +31,7 @@ void sub_080A05F4(Entity* this) { this->action = 2; InitializeAnimation(this, 2); } else { - if (this->parent->field_0x4 == NULL) { + if (this->parent->next == NULL) { DeleteThisEntity(); } sub_080A0640(this); diff --git a/src/sub_08070680.c b/src/sub_08070680.c index f99b745e..566bfd7b 100644 --- a/src/sub_08070680.c +++ b/src/sub_08070680.c @@ -53,7 +53,7 @@ void sub_08070698(Entity *this) sub_08079938(); gPlayerState.field_0xa8[0] = 7; sub_0807ACCC(this); - ent = sub_0805EB2C(0x6, 0xf, 0x6, 0xb, 0x0); + ent = FindEntityInListByForm(0x6, 0xf, 0x6, 0xb, 0x0); if (ent != NULL) { DeleteEntity(ent); } From e40ceb75a8a8ec3f995195ed6de151f0d652c343 Mon Sep 17 00:00:00 2001 From: theo3 Date: Wed, 19 Aug 2020 19:09:31 -0700 Subject: [PATCH 152/158] more renaming --- asm/createEntity.s | 2 +- src/createEntity.c | 4 ++-- src/entity.c | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/asm/createEntity.s b/asm/createEntity.s index 8451dec1..d43f638a 100644 --- a/asm/createEntity.s +++ b/asm/createEntity.s @@ -26,7 +26,7 @@ CreateEntity: @ 0x0804ADF8 b _0804AEAC _0804AE1C: adds r0, r6, #0 - bl GetEmptyEntityAny + bl GetEmptyEntityByType adds r5, r0, #0 cmp r5, #0 beq _0804AEAA diff --git a/src/createEntity.c b/src/createEntity.c index 7bcb0bea..c3589c37 100644 --- a/src/createEntity.c +++ b/src/createEntity.c @@ -3,7 +3,7 @@ // #include "global.h" // extern Entity * FindEntityBySubtype(u32, u32); -// extern Entity * GetEmptyEntityAny(); +// extern Entity * GetEmptyEntityByType(); // extern void sub_0804AEB0(Entity *, EntityData *); // extern u32 sub_0804AF0C(Entity *, EntityData *); // extern void sub_08016A30(Entity *); @@ -21,7 +21,7 @@ // entity = NULL; // } // else { -// entity = GetEmptyEntityAny(); //Get empty entity +// entity = GetEmptyEntityByType(); //Get empty entity // if (entity != NULL) { // (entity->entityType).type = type; // (entity->entityType).subtype = param_1->entitySubtype; diff --git a/src/entity.c b/src/entity.c index 0f7f16d3..e63ea1a0 100644 --- a/src/entity.c +++ b/src/entity.c @@ -27,7 +27,7 @@ OtherEntity* GetEmptyManager(); typedef void* (*Getter)(void); -void* GetEmptyEntityAny(int type) { +void* GetEmptyEntityByType(int type) { Getter getter = NULL; if (type == 9) { getter = (Getter)GetEmptyManager; From 6570eea1f248c84f1fb6bd5371209a2d8e1f6ac1 Mon Sep 17 00:00:00 2001 From: theo3 Date: Wed, 19 Aug 2020 22:31:54 -0700 Subject: [PATCH 153/158] _EntUpdate --- linker.ld | 2 +- src/entity.c | 5 ++--- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/linker.ld b/linker.ld index 2ac92320..b60efc36 100644 --- a/linker.ld +++ b/linker.ld @@ -258,7 +258,7 @@ SECTIONS { . = 0x00005D90; gUnk_03005D90 = .; . = 0x00005E60; gUnk_03005E60 = .; . = 0x00005E98; gUnk_03005E98 = .; - . = 0x00005F24; gUnk_03005F24 = .; + . = 0x00005F24; _EntUpdate = .; . = 0x00005F40; gUnk_03005F40 = .; . = 0x00005FBC; gUnk_03005FBC = .; . = 0x00005FF0; gUnk_03005FF0 = .; diff --git a/src/entity.c b/src/entity.c index e63ea1a0..3b4c9442 100644 --- a/src/entity.c +++ b/src/entity.c @@ -46,13 +46,12 @@ typedef struct { extern struct_03003DD0 gUnk_03003DD0; extern u32 _call_via_r0(u32*); -extern u32 gUnk_03005F24; +extern u32 _EntUpdate; extern void DeleteEntityAny(Entity*); void DeleteThisEntity(void) { DeleteEntityAny(gUnk_03003DD0.field_0x8); - _call_via_r0((u32*)&gUnk_03005F24); - return; + _call_via_r0((u32*)&_EntUpdate); } void DeleteEntity(Entity*); From 4f2f69ceb4d56eafede44637dfc2d504a4bcef42 Mon Sep 17 00:00:00 2001 From: theo3 Date: Thu, 20 Aug 2020 02:21:23 -0700 Subject: [PATCH 154/158] func renaming --- asm/businessScrub.s | 2 +- asm/code_08018500.s | 12 ++++++------ asm/code_0801CEC0.s | 6 +++--- asm/code_0804AEB0.s | 4 ++-- asm/code_080526F8.s | 4 ++-- asm/code_0805436C.s | 8 ++++---- asm/code_0805E3B0.s | 2 +- asm/code_0806FA6C.s | 8 ++++---- asm/code_0807CC3C.s | 4 ++-- asm/code_080A5574.s | 10 +++++----- asm/gleerok.s | 6 +++--- asm/{createEntity.s => loadRoomEntity.s} | 6 +++--- asm/manager12.s | 4 ++-- asm/manager38.s | 2 +- asm/managerB.s | 2 +- asm/mazaalHead.s | 2 +- include/functions.h | 2 +- include/room.h | 15 +++++++++------ linker.ld | 2 +- src/createEntity.c | 6 +++--- src/entity.c | 14 +++++++------- src/loadRoom.c | 12 ++++++------ src/loadRoomEntityList.c | 6 +++--- src/room.c | 2 +- 24 files changed, 72 insertions(+), 69 deletions(-) rename asm/{createEntity.s => loadRoomEntity.s} (94%) diff --git a/asm/businessScrub.s b/asm/businessScrub.s index 130660f9..ae2dd002 100644 --- a/asm/businessScrub.s +++ b/asm/businessScrub.s @@ -928,7 +928,7 @@ sub_08028FFC: @ 0x08028FFC adds r0, r4, #0 bl sub_080AE068 adds r0, r4, #0 - bl sub_0801D230 + bl UnloadOBJPalette adds r1, r4, #0 adds r1, #0x60 movs r0, #0xe8 diff --git a/asm/code_08018500.s b/asm/code_08018500.s index 663f9662..bd53d8fc 100644 --- a/asm/code_08018500.s +++ b/asm/code_08018500.s @@ -475,7 +475,7 @@ _0801889A: ldr r1, _080188AC @ =gUnk_080FECC8 _080188A4: adds r0, r0, r1 - bl CreateEntity + bl LoadRoomEntity b _080189E4 .align 2, 0 _080188AC: .4byte gUnk_080FECC8 @@ -488,7 +488,7 @@ _080188B8: lsls r0, r0, #4 ldr r1, _080188DC @ =gUnk_080FED18 adds r0, r0, r1 - bl CreateEntity + bl LoadRoomEntity adds r2, r0, #0 cmp r2, #0 bne _080188CC @@ -527,7 +527,7 @@ _080188FE: lsls r0, r0, #4 ldr r1, _08018924 @ =gUnk_080FED58 adds r0, r0, r1 - bl CreateEntity + bl LoadRoomEntity ldr r2, _08018928 @ =gRoomVars ldrb r0, [r5, #1] lsls r0, r0, #2 @@ -549,7 +549,7 @@ _08018930: lsls r0, r0, #4 ldr r1, _08018974 @ =gUnk_080FEE78 adds r0, r0, r1 - bl CreateEntity + bl LoadRoomEntity adds r2, r0, #0 cmp r2, #0 beq _08018958 @@ -612,13 +612,13 @@ _080189B4: cmp r4, #0 beq _080189C4 ldr r0, _080189C0 @ =gUnk_080FEE58 - bl CreateEntity + bl LoadRoomEntity b _080189E4 .align 2, 0 _080189C0: .4byte gUnk_080FEE58 _080189C4: ldr r0, _080189CC @ =gUnk_080FEE48 - bl CreateEntity + bl LoadRoomEntity b _080189E4 .align 2, 0 _080189CC: .4byte gUnk_080FEE48 diff --git a/asm/code_0801CEC0.s b/asm/code_0801CEC0.s index ff3d26df..c2eda998 100644 --- a/asm/code_0801CEC0.s +++ b/asm/code_0801CEC0.s @@ -358,8 +358,8 @@ _0801D22A: .align 2, 0 _0801D22C: .4byte gUnk_02001A00 - thumb_func_start sub_0801D230 -sub_0801D230: @ 0x0801D230 + thumb_func_start UnloadOBJPalette +UnloadOBJPalette: @ 0x0801D230 push {lr} adds r0, #0x27 ldrb r2, [r0] @@ -438,7 +438,7 @@ sub_0801D2B4: @ 0x0801D2B4 push {r4, r5, lr} adds r4, r0, #0 adds r5, r1, #0 - bl sub_0801D230 + bl UnloadOBJPalette adds r0, r4, #0 adds r1, r5, #0 bl sub_0801D040 diff --git a/asm/code_0804AEB0.s b/asm/code_0804AEB0.s index 6ccfba79..b1a43ecc 100644 --- a/asm/code_0804AEB0.s +++ b/asm/code_0804AEB0.s @@ -5,8 +5,8 @@ .text - thumb_func_start sub_0804AEB0 -sub_0804AEB0: @ 0x0804AEB0 + thumb_func_start RegisterRoomEntity +RegisterRoomEntity: @ 0x0804AEB0 push {r4, r5, r6, lr} adds r5, r0, #0 adds r6, r1, #0 diff --git a/asm/code_080526F8.s b/asm/code_080526F8.s index d054a0b6..592d77e2 100644 --- a/asm/code_080526F8.s +++ b/asm/code_080526F8.s @@ -2409,7 +2409,7 @@ nullsub_482: @ 0x080539B8 sub_080539BC: @ 0x080539BC push {lr} bl sub_080197AC - bl sub_0805E89C + bl DeleteAllEntities movs r0, #0x22 movs r1, #0x11 movs r2, #0 @@ -3098,7 +3098,7 @@ sub_08053F20: @ 0x08053F20 ldrb r0, [r0] cmp r0, #0 bne _08053F74 - bl sub_0805E89C + bl DeleteAllEntities ldr r5, _08053F7C @ =gMenu ldr r4, [r5, #0xc] ldrb r0, [r4, #8] diff --git a/asm/code_0805436C.s b/asm/code_0805436C.s index d1a63f7b..a166b867 100644 --- a/asm/code_0805436C.s +++ b/asm/code_0805436C.s @@ -170,7 +170,7 @@ _080549CE: ldrb r0, [r6, #2] cmp r0, #2 bne _080549F4 - bl sub_08059D18 + bl TryLoadPrologueHyruleTown _080549F4: ldr r0, _08054A10 @ =gUnk_02032EC0 ldrb r0, [r0, #3] @@ -1880,7 +1880,7 @@ sub_08055710: @ 0x08055710 ldrb r1, [r1, #3] bl sub_0804B0B0 ldr r0, _08055760 @ =gUnk_080FEE48 - bl CreateEntity + bl LoadRoomEntity adds r1, r0, #0 cmp r1, #0 beq _08055734 @@ -2385,7 +2385,7 @@ sub_08055AEC: @ 0x08055AEC lsls r0, r0, #4 ldr r1, _08055B30 @ =gUnk_080FED18 adds r0, r0, r1 - bl CreateEntity + bl LoadRoomEntity adds r1, r0, #0 cmp r1, #0 beq _08055B14 @@ -2452,7 +2452,7 @@ sub_08055B70: @ 0x08055B70 lsls r0, r0, #4 ldr r1, _08055BA8 @ =gUnk_080FF378 adds r0, r0, r1 - bl CreateEntity + bl LoadRoomEntity adds r3, r0, #0 cmp r3, #0 beq _08055BA2 diff --git a/asm/code_0805E3B0.s b/asm/code_0805E3B0.s index 061f417a..199df78c 100644 --- a/asm/code_0805E3B0.s +++ b/asm/code_0805E3B0.s @@ -357,7 +357,7 @@ _0805E608: .4byte gUnk_03005F40 thumb_func_start EraseAllEntities EraseAllEntities: @ 0x0805E60C push {lr} - bl sub_0805E89C + bl DeleteAllEntities ldr r0, _0805E654 @ =gUnk_03003DC0 movs r1, #0xc bl _DmaZero diff --git a/asm/code_0806FA6C.s b/asm/code_0806FA6C.s index fd6a614f..44762471 100644 --- a/asm/code_0806FA6C.s +++ b/asm/code_0806FA6C.s @@ -127,15 +127,15 @@ _0806FBD4: .4byte gPlayerState sub_0806FBD8: @ 0x0806FBD8 push {r4, lr} adds r4, r0, #0 - bl sub_0806FBEC + bl UnloadBoundingBox movs r0, #0xc bl sub_0801D8E0 str r0, [r4, #0x48] pop {r4, pc} .align 2, 0 - thumb_func_start sub_0806FBEC -sub_0806FBEC: @ 0x0806FBEC + thumb_func_start UnloadBoundingBox +UnloadBoundingBox: @ 0x0806FBEC push {r4, lr} adds r4, r0, #0 ldr r0, [r4, #0x48] @@ -447,7 +447,7 @@ LoadExtraSpriteData: @ 0x0806FDEC b _0806FE74 _0806FE02: adds r0, r6, #0 - bl sub_0801D230 + bl UnloadOBJPalette adds r0, r6, #0 adds r0, #0x28 ldrb r0, [r0] diff --git a/asm/code_0807CC3C.s b/asm/code_0807CC3C.s index a9ace9d1..9cc86918 100644 --- a/asm/code_0807CC3C.s +++ b/asm/code_0807CC3C.s @@ -1589,8 +1589,8 @@ sub_0807DAF0: @ 0x0807DAF0 bl sub_0807DB88 pop {r4, pc} - thumb_func_start sub_0807DB08 -sub_0807DB08: @ 0x0807DB08 + thumb_func_start UnloadCutsceneData +UnloadCutsceneData: @ 0x0807DB08 push {r4, r5, lr} adds r4, r0, #0 ldrb r1, [r4, #0x10] diff --git a/asm/code_080A5574.s b/asm/code_080A5574.s index ec2e0e3a..fa3d8dd2 100644 --- a/asm/code_080A5574.s +++ b/asm/code_080A5574.s @@ -3629,9 +3629,9 @@ sub_080A71F4: @ 0x080A71F4 beq _080A71FE bl DoExitTransition _080A71FE: - bl sub_0805E89C + bl DeleteAllEntities bl sub_0805E974 - bl sub_0805E89C + bl DeleteAllEntities ldr r0, _080A7218 @ =gUnk_03001000 movs r2, #0 movs r1, #1 @@ -3764,7 +3764,7 @@ sub_080A7328: @ 0x080A7328 ldrb r0, [r0] cmp r0, #0 bne _080A7384 - bl sub_0805E89C + bl DeleteAllEntities ldr r0, _080A738C @ =gMenu movs r1, #0x30 bl _DmaZero @@ -3817,7 +3817,7 @@ sub_080A73A8: @ 0x080A73A8 beq _080A73B4 b _080A74BC _080A73B4: - bl sub_0805E89C + bl DeleteAllEntities bl sub_0805E974 ldr r1, _080A746C @ =gUnk_02017654 ldr r5, _080A7470 @ =gUnk_02032EC0 @@ -10586,7 +10586,7 @@ sub_080AA654: @ 0x080AA654 adds r0, #8 strh r0, [r4, #0xa] adds r0, r4, #0 - bl CreateEntity + bl LoadRoomEntity pop {r4, r5, pc} .align 2, 0 _080AA688: .4byte gUnk_0812A004 diff --git a/asm/gleerok.s b/asm/gleerok.s index 82a2098a..4f5462b4 100644 --- a/asm/gleerok.s +++ b/asm/gleerok.s @@ -1146,7 +1146,7 @@ _0802D8DE: cmp r0, #0 bne _0802D906 adds r0, r4, #0 - bl sub_0801D230 + bl UnloadOBJPalette adds r0, r4, #0 movs r1, #0xc9 bl sub_0801D040 @@ -1155,7 +1155,7 @@ _0802D906: subs r0, #1 strb r0, [r4, #0xf] adds r0, r4, #0 - bl sub_0801D230 + bl UnloadOBJPalette adds r0, r4, #0 movs r1, #0xca bl sub_0801D040 @@ -1345,7 +1345,7 @@ _0802DA54: cmp r0, #0 beq _0802DA96 adds r0, r4, #0 - bl sub_0801D230 + bl UnloadOBJPalette ldrb r0, [r5] adds r0, #1 adds r0, r0, r7 diff --git a/asm/createEntity.s b/asm/loadRoomEntity.s similarity index 94% rename from asm/createEntity.s rename to asm/loadRoomEntity.s index d43f638a..2bdc40ce 100644 --- a/asm/createEntity.s +++ b/asm/loadRoomEntity.s @@ -5,8 +5,8 @@ .text - thumb_func_start CreateEntity -CreateEntity: @ 0x0804ADF8 + thumb_func_start LoadRoomEntity +LoadRoomEntity: @ 0x0804ADF8 push {r4, r5, r6, r7, lr} adds r4, r0, #0 ldrb r0, [r4] @@ -37,7 +37,7 @@ _0804AE1C: strb r0, [r5, #0xa] adds r0, r5, #0 adds r1, r4, #0 - bl sub_0804AEB0 + bl RegisterRoomEntity ldrb r1, [r4, #1] movs r7, #0xf0 adds r0, r7, #0 diff --git a/asm/manager12.s b/asm/manager12.s index 370bf536..7c990102 100644 --- a/asm/manager12.s +++ b/asm/manager12.s @@ -395,8 +395,8 @@ _08059CEC: _08059D10: .4byte gUnk_08108468 _08059D14: .4byte gGlobalGfxAndPalettes - thumb_func_start sub_08059D18 -sub_08059D18: @ 0x08059D18 + thumb_func_start TryLoadPrologueHyruleTown +TryLoadPrologueHyruleTown: @ 0x08059D18 push {r4, lr} ldr r0, _08059D68 @ =gRoomControls ldrb r0, [r0, #4] diff --git a/asm/manager38.s b/asm/manager38.s index 20e701d6..a98b99d8 100644 --- a/asm/manager38.s +++ b/asm/manager38.s @@ -37,7 +37,7 @@ sub_0805E0C0: @ 0x0805E0C0 _0805E0DE: adds r0, r4, #0 adds r4, #0x10 - bl CreateEntity + bl LoadRoomEntity str r5, [r0, #0x50] movs r1, #0xff strb r1, [r0, #0xe] diff --git a/asm/managerB.s b/asm/managerB.s index 58d1be89..88e16d48 100644 --- a/asm/managerB.s +++ b/asm/managerB.s @@ -160,7 +160,7 @@ _0805870A: _08058718: adds r0, r4, #0 adds r4, #0x10 - bl CreateEntity + bl LoadRoomEntity adds r3, r0, #0 cmp r3, #0 beq _08058744 diff --git a/asm/mazaalHead.s b/asm/mazaalHead.s index 55f5764a..9cbd935c 100644 --- a/asm/mazaalHead.s +++ b/asm/mazaalHead.s @@ -197,7 +197,7 @@ _08034038: ldr r2, [r0, #0x74] strb r1, [r2, #0xd] adds r0, r3, #0 - bl sub_0801D230 + bl UnloadOBJPalette b _0803413E _08034056: ldrb r0, [r3, #0xe] diff --git a/include/functions.h b/include/functions.h index 30576777..d85b2822 100644 --- a/include/functions.h +++ b/include/functions.h @@ -155,7 +155,7 @@ extern void sub_080534AC(); extern void sub_0807BA8C(u32, u32); extern void sub_0804D9B0(); extern void sub_0807BB98(u32, u32, u32, u32); -extern void sub_08059D18(void); +extern void TryLoadPrologueHyruleTown(void); extern void sub_0801D000(u32); extern void sub_08018C58(u32); extern void sub_0804E150(void); diff --git a/include/room.h b/include/room.h index 8170da5f..6245d225 100644 --- a/include/room.h +++ b/include/room.h @@ -29,7 +29,8 @@ typedef struct { u16 screenShakeTime; u16 filler2[6]; u8 filler3[4]; - u16 filler4[4]; + union SplitWord bg3OffsetX; + union SplitWord bg3OffsetY; Entity* cameraTarget; } RoomControls; @@ -57,11 +58,13 @@ typedef struct { //Packets used to store which entities to load in a room typedef struct { - u8 entityType; - u8 field_0x1; - u8 entitySubtype; - u8 entityform; - u32 entityparameter; + u8 type : 4; + u8 layer : 4; + u8 flags : 4; + u8 unk : 4; + u8 subtype; + u8 form; + u32 parameter; u16 xPos; u16 yPos; u32 spritePtr; diff --git a/linker.ld b/linker.ld index b60efc36..88464064 100644 --- a/linker.ld +++ b/linker.ld @@ -442,7 +442,7 @@ SECTIONS { src/code_0804AA84.o(.text); asm/code_0804AA84.o(.text); src/loadRoomEntityList.o(.text); - asm/createEntity.o(.text); + asm/loadRoomEntity.o(.text); asm/code_0804AEB0.o(.text); src/sub_0804AFF4.o(.text); src/loadRoom.o(.text); diff --git a/src/createEntity.c b/src/createEntity.c index c3589c37..7feff11b 100644 --- a/src/createEntity.c +++ b/src/createEntity.c @@ -4,12 +4,12 @@ // extern Entity * FindEntityBySubtype(u32, u32); // extern Entity * GetEmptyEntityByType(); -// extern void sub_0804AEB0(Entity *, EntityData *); +// extern void RegisterRoomEntity(Entity *, EntityData *); // extern u32 sub_0804AF0C(Entity *, EntityData *); // extern void sub_08016A30(Entity *); // extern u32 gRoomControls; -// Entity * CreateEntity(EntityData *param_1) +// Entity * LoadRoomEntity(EntityData *param_1) // { // Entity *preexisting; // Entity *entity; @@ -26,7 +26,7 @@ // (entity->entityType).type = type; // (entity->entityType).subtype = param_1->entitySubtype; // (entity->entityType).form = param_1->entityform; -// sub_0804AEB0(entity,param_1); +// RegisterRoomEntity(entity,param_1); // if ((param_1->field_0x1 & 240) != 16) { // (entity->entityType).parameter = *(u8 *)¶m_1->entityparameter; // entity->actionDelay = (u8)((u32)param_1->entityparameter >> 8); diff --git a/src/entity.c b/src/entity.c index 3b4c9442..056644bf 100644 --- a/src/entity.c +++ b/src/entity.c @@ -70,15 +70,15 @@ void DeleteEntityAny(Entity* ent) { } extern void sub_080AE068(); -extern void sub_0801D230(); +extern void UnloadOBJPalette(); extern void sub_0806FE84(); extern void sub_080788E0(); extern void sub_08078954(); extern void sub_0805EC60(); extern void sub_08017744(); extern void sub_0805E92C(); -extern void sub_0807DB08(); -extern void sub_0806FBEC(); +extern void UnloadCutsceneData(); +extern void UnloadBoundingBox(); extern void sub_0801DA0C(); extern void sub_0804AA1C(); extern void UnlinkEntity(); // Unlink @@ -86,15 +86,15 @@ extern void UnlinkEntity(); // Unlink void DeleteEntity(Entity* ent) { if (ent->next) { sub_080AE068(ent); - sub_0801D230(ent); + UnloadOBJPalette(ent); sub_0806FE84(ent); sub_080788E0(ent); sub_08078954(ent); sub_0805EC60(ent); sub_08017744(ent); sub_0805E92C(ent); - sub_0807DB08(ent); - sub_0806FBEC(ent); + UnloadCutsceneData(ent); + UnloadBoundingBox(ent); sub_0801DA0C(ent->otherEntity); ent->otherEntity = NULL; if ((ent->entityType).type == 3) { @@ -140,7 +140,7 @@ typedef struct LinkedList { extern LinkedList gEntityLists[9]; extern EntityType gUnk_03003DB8; -void sub_0805E89C(void) { +void DeleteAllEntities(void) { Entity* ent; Entity* next; LinkedList* it; diff --git a/src/loadRoom.c b/src/loadRoom.c index 86749a52..48a6e3bf 100644 --- a/src/loadRoom.c +++ b/src/loadRoom.c @@ -8,7 +8,7 @@ extern void sub_0804B058(EntityData* dat); extern void LoadRoomTileEntities(EntityData* dat); extern void sub_0801AC98(); extern u32 sub_08049D1C(u32); -extern Entity* CreateEntity(EntityData*); +extern Entity* LoadRoomEntity(EntityData*); extern void* GetRoomProperty(u32, u32, u32); extern u32 gUnk_02017654; @@ -32,22 +32,22 @@ void sub_0804B058(EntityData* dat) { Entity* ent; u32 uVar2; - if ((dat != NULL) && (dat->entityType != 0xff)) { + if ((dat != NULL) && *(u8*)dat != 0xff) { uVar2 = 0; do { - if ((uVar2 < 0x20) && ((dat->entityType & 0xf) == 3)) { + if ((uVar2 < 0x20) && ((dat->type) == 3)) { if (sub_08049D1C(uVar2) != 0) { - ent = CreateEntity(dat); + ent = LoadRoomEntity(dat); if ((ent != NULL) && ((ent->entityType).type == 3)) { ent->field_0x6c.HALF.LO = uVar2 | 0x80; } } } else { - CreateEntity(dat); + LoadRoomEntity(dat); } uVar2++; dat++; - } while (dat->entityType != 0xff); + } while (*(u8*)dat!= 0xff); } } diff --git a/src/loadRoomEntityList.c b/src/loadRoomEntityList.c index 92373c4d..f74cc9a6 100644 --- a/src/loadRoomEntityList.c +++ b/src/loadRoomEntityList.c @@ -1,12 +1,12 @@ #include "global.h" #include "room.h" -void extern CreateEntity(EntityData*); +void extern LoadRoomEntity(EntityData*); void LoadRoomEntityList(EntityData* listPtr) { if (listPtr != NULL) { - while (listPtr->entityType != 0xFF) { - CreateEntity(listPtr++); + while (*(u8*)listPtr != 0xFF) { + LoadRoomEntity(listPtr++); } } } diff --git a/src/room.c b/src/room.c index 35be17c4..cd8959f5 100644 --- a/src/room.c +++ b/src/room.c @@ -4231,7 +4231,7 @@ extern EntityData gUnk_080EEBAC; void LoadHyruleTown(void) { sub_08054570(); - sub_08059D18(); + TryLoadPrologueHyruleTown(); SetTileType(0x176, 0x66b, 1); if (gUnk_02002A40.unk8 == 1) { sub_0801D000(0); From f7b1a516ddada6e4278382f17eed752653b6976a Mon Sep 17 00:00:00 2001 From: Ibot02 Date: Fri, 21 Aug 2020 02:53:52 +0200 Subject: [PATCH 155/158] Refactor Manager Struct Split to not include structure of manager-specific data Changed some function signatures to work with managers --- include/functions.h | 10 ++-- include/manager.h | 105 ++++++++++++++++++++++++++++++---------- src/code_08077B98.c | 3 +- src/manager/manager4.c | 4 +- src/manager/manager6.c | 26 +++++----- src/manager/managerA.c | 60 +++++++++++------------ src/manager/managerE.c | 22 ++++----- src/npc/festari.c | 3 +- src/npc/goronMerchant.c | 8 +-- src/npc/melari.c | 3 +- src/npc/postman.c | 1 - src/npc/rem.c | 1 - src/npc/zelda.c | 1 - 13 files changed, 147 insertions(+), 100 deletions(-) diff --git a/include/functions.h b/include/functions.h index d85b2822..8743bd13 100644 --- a/include/functions.h +++ b/include/functions.h @@ -4,6 +4,7 @@ #include "global.h" #include "entity.h" +#include "manager.h" #include "position.h" #include "player.h" #include "structures.h" @@ -61,7 +62,7 @@ extern void sub_0805EC60(); extern void sub_080873D0(); extern u8 sub_080045D4(s16, s16, u16, u16); extern void sub_0806F69C(Entity*); -extern void sub_0805E3A0(Entity*, u32); +extern void sub_0805E3A0(void*, u32); extern void sub_0806D0B0(Entity*); extern void sub_0807DD64(Entity*); extern void sub_0807DDAC(Entity*, u32); @@ -196,8 +197,8 @@ extern u32 sub_0807953C(void); extern void ResetPlayer(void); extern void sub_080A29BC(Entity*); extern void sub_080AE068(Entity*); -extern Entity* GetEmptyManager(void); -extern void AppendEntityToList(Entity*, u32); +extern Manager* GetEmptyManager(void); +extern void AppendEntityToList(void*, u32); extern u32 sub_0800445C(Entity*); extern void sub_0807A108(void); extern void sub_0801766C(Entity*); @@ -217,7 +218,6 @@ extern void sub_0807D20C(u32, char*, u32); extern u32 sub_0807CF88(u32, u8*); extern u32 sub_0807D008(u32, void*); extern void sub_0807D184(u32, char*); -extern void sub_0805E3A0(Entity*, u32); extern u32 sub_0806F520(); extern void sub_0806F4E8(); extern u32 sub_0806F3E4(Entity*); @@ -255,4 +255,4 @@ extern u32 sub_080044EC(Entity*, u32); extern u32 sub_080002B8(Entity*); extern u32 sub_08049F84(Entity*, u32); extern void sub_0802F45C(Entity*); -#endif \ No newline at end of file +#endif diff --git a/include/manager.h b/include/manager.h index 278a199a..c2646dfb 100644 --- a/include/manager.h +++ b/include/manager.h @@ -2,6 +2,7 @@ #define MANAGER_H #include "global.h" +#include "entity.h" union SplitSHWord { s16 SHWORD; @@ -10,33 +11,38 @@ union SplitSHWord { } PACKED HALF; } PACKED; -typedef struct { - u8 unk_00[0x0a]; - u8 unk_0a; - u8 unk_0b; - u8 unk_0c; - u8 unk_0d; - u8 unk_0e; - u8 unk_0f[0x11]; - u16 unk_20; - u16 unk_22; - u16 unk_24; - u16 unk_26; - u8 unk_28[0x0D]; - u8 unk_35; - u16 unk_36; - union SplitSHWord unk_38; - union SplitSHWord unk_3a; - u16 unk_3c; - u16 unk_3e; +typedef struct Manager { + /*0x00*/ struct Manager* previous; + /*0x00*/ struct Manager* next; + /*0x08*/ u8 type; + /*0x09*/ u8 subtype; + /*0x0a*/ u8 unk_0a; + /*0x0b*/ u8 unk_0b; + /*0x0c*/ u8 action; + /*0x0d*/ u8 unk_0d; + /*0x0e*/ u8 unk_0e; + /*0x0f*/ u8 unk_0f[0x5]; + /*0x14*/ struct Manager * parent; + /*0x18*/ u8 unk_18[0x8]; + // union SplitHWord unk_20; + // u16 unk_22; + // u16 unk_24; + // u16 unk_26; + // u8 unk_28[0x0D]; + // u8 unk_35; + // u16 unk_36; + // union SplitSHWord unk_38; + // union SplitSHWord unk_3a; + // u16 unk_3c; + // u16 unk_3e; } Manager; typedef struct { - u16 field_0x00; - u16 field_0x02; - u8 field_0x04; - u8 field_0x05; - u8 field_0x06; + u16 posX; + u16 posY; + u8 width; + u8 height; + u8 unk_06; union { u8 all; struct { @@ -45,8 +51,55 @@ typedef struct { u8 unk2 : 1; u8 unk3 : 3; } PACKED b; - } PACKED field_0x07; -} UnkManagerHelperStruct; + } PACKED unk_07; +} Manager6WarpData; + +typedef struct { + Manager manager; + Manager6WarpData* warpList; +} Manager6; + +typedef struct { + Manager manager; + u16 unk_20; + u16 unk_22; + u16 unk_24; + u16 unk_26; + u8 unk_28[0x0D]; + u8 unk_35; + u16 unk_36; + u8 unk_38; + u8 unk_39; + u8 unk_3a; + u8 unk_3b; + u16 unk_3c; + u16 unk_3e; +} ManagerA; + +typedef struct { + Manager manager; + u8 unk_20; + u8 unk_21[0x14]; + u8 unk_35; + u8 unk_36[0x4]; + u16 unk_3a; + u16 unk_3c; + u16 unk_3e; +} ManagerB; + +typedef struct { + Manager manager; + Entity* enemies[8]; +} ManagerBHelper; + +typedef struct { + Manager manager; + u8 unk_20[0x18]; + s16 unk_38; + s16 unk_3a; + u16 unk_3c; + u16 unk_3e; +} ManagerE; typedef struct { u16 unk_00; diff --git a/src/code_08077B98.c b/src/code_08077B98.c index b0d62afc..2195fc3e 100644 --- a/src/code_08077B98.c +++ b/src/code_08077B98.c @@ -17,7 +17,6 @@ Entity* sub_08077C94(ItemBehavior*, u32); void* sub_08077C54(UnkItemStruct* unk); Entity* CreatePlayerBomb(ItemBehavior*, u32); extern Entity* sub_0805E744(); -extern void AppendEntityToList(Entity*, u32); extern struct_0811BE48 gUnk_0811BE48[]; @@ -137,4 +136,4 @@ Entity * sub_08077CF8(u32 subtype, u32 form, u32 parameter, u32 unk) NAKED void sub_08077D38(ItemBehavior *beh, u32 arg1) { asm(".include \"asm/non_matching/sub_08077D38.inc\""); -} \ No newline at end of file +} diff --git a/src/manager/manager4.c b/src/manager/manager4.c index 2b0ddd3d..7a47f977 100644 --- a/src/manager/manager4.c +++ b/src/manager/manager4.c @@ -7,7 +7,7 @@ extern void (*gUnk_08107C70[])(Manager*); void sub_08057854(Manager* this) { - gUnk_08107C70[this->unk_0c](this); + gUnk_08107C70[this->action](this); } extern void sub_080805F8(void); @@ -47,7 +47,7 @@ void sub_0805786C(Manager* this) { tmp++; } } - this->unk_0c = 1; + this->action = 1; } extern u32 sub_0805795C(Manager*, DiggingCaveEntrance*); diff --git a/src/manager/manager6.c b/src/manager/manager6.c index be4530ad..fa2fcd24 100644 --- a/src/manager/manager6.c +++ b/src/manager/manager6.c @@ -8,25 +8,25 @@ extern u32 CheckPlayerInRegion(u16, u16, u8, u8); extern void DoExitTransition(void*); extern void DeleteManager(Entity*); -void sub_08057CB4(Entity * this) { +void sub_08057CB4(Manager6 * this) { u32 tmp; - UnkManagerHelperStruct* i; - if (this->action == 0){ - this->action = 1; - this->field_0x20 = (s32) GetCurrentRoomProperty(this->entityType.form); - if (this->field_0x20 == 0) { - DeleteManager(this); + Manager6WarpData* i; + if (this->manager.action == 0){ + this->manager.action = 1; + this->warpList = GetCurrentRoomProperty(this->manager.unk_0a); + if (!this->warpList) { + DeleteManager((Entity*) this); return; } } - if (this->actionDelay == 0 || gPlayerState.field_0x10[2] == 0x1e) { - for (i = ((UnkManagerHelperStruct*) this->field_0x20);i->field_0x00 != 0xFFFF; i++) { - tmp = (i->field_0x07.all & 0x3); + if (this->manager.unk_0e == 0 || gPlayerState.field_0x10[2] == 0x1e) { + for (i = this->warpList; i->posX != 0xFFFF; i++) { + tmp = (i->unk_07.all & 0x3); if (((tmp & (gPlayerEntity.collisionLayer)) != 0) && - (((gPlayerState.flags.all & 0x80) != 0) || ((i->field_0x07.b.unk2) != 0)) && - (CheckPlayerInRegion(i->field_0x00,i->field_0x02,i->field_0x04,i->field_0x05) != 0) && + (((gPlayerState.flags.all & 0x80) != 0) || ((i->unk_07.b.unk2) != 0)) && + (CheckPlayerInRegion(i->posX,i->posY,i->width,i->height) != 0) && (gPlayerEntity.height.HALF.HI == 0)) { - DoExitTransition(GetCurrentRoomProperty(i->field_0x06)); + DoExitTransition(GetCurrentRoomProperty(i->unk_06)); } } } diff --git a/src/manager/managerA.c b/src/manager/managerA.c index 1d94bde1..27e4224b 100644 --- a/src/manager/managerA.c +++ b/src/manager/managerA.c @@ -9,36 +9,36 @@ extern void (*gUnk_081081F4[])(Manager*); void sub_08058380(Manager* this) { - gUnk_081081F4[this->unk_0c](this); + gUnk_081081F4[this->action](this); } extern void sub_0805E3A0(Manager*, u32); -void sub_08058398(Manager* this) { +void sub_08058398(ManagerA* this) { if (CheckFlags(this->unk_3c) != 0) { DeleteThisEntity(); } - this->unk_24 = this->unk_3a.HALF.LO<<3; - this->unk_26 = this->unk_3a.HALF.HI<<3; - this->unk_20 = this->unk_24 + (this->unk_38.HALF.LO<<4); - this->unk_22 = this->unk_26 + (this->unk_38.HALF.HI<<4); - sub_0805E3A0(this, 0x06); + this->unk_24 = this->unk_3a<<3; + this->unk_26 = this->unk_3b<<3; + this->unk_20 = this->unk_24 + (this->unk_38<<4); + this->unk_22 = this->unk_26 + (this->unk_39<<4); + sub_0805E3A0(&this->manager, 0x06); if (this->unk_3e == 0) { - this->unk_0c = 2; + this->manager.action = 2; } else { - this->unk_0c = 1; + this->manager.action = 1; } } -void sub_08058408(Manager*); +void sub_08058408(ManagerA*); -void sub_080583EC(Manager* this) { +void sub_080583EC(ManagerA* this) { if (CheckFlags(this->unk_3e) != 0) { - this->unk_0c = 2; + this->manager.action = 2; sub_08058408(this); } } @@ -50,15 +50,15 @@ extern void sub_08078AA8(u32, u32); extern void sub_080186C0(u16); extern void sub_08078B48(void); -u32 sub_0805848C(Manager*); -void sub_080585DC(Manager*); +u32 sub_0805848C(ManagerA*); +void sub_080585DC(ManagerA*); -void sub_08058408(Manager* this){ +void sub_08058408(ManagerA* this){ u32 tmp2; tmp2 = (gPlayerState.flags.all & 0x08); if (tmp2 != 0) return; if (!CheckPlayerInRegion(this->unk_20, this->unk_22, this->unk_24, this->unk_26)) return; - switch (this->unk_0a) { + switch (this->manager.unk_0a) { case 1: return; case 2: @@ -71,20 +71,20 @@ void sub_08058408(Manager* this){ sub_08078A90(3); sub_08078B48(); sub_0805E544(); - this->unk_0c = 3; - this->unk_0d = 0; - this->unk_0e = 0x1e; + this->manager.action = 3; + this->manager.unk_0d = 0; + this->manager.unk_0e = 0x1e; return; case 3: - this->unk_0c = 4; - this->unk_0d = tmp2; + this->manager.action = 4; + this->manager.unk_0d = tmp2; sub_080186C0(this->unk_36); return; } } -u32 sub_0805848C(Manager* this) { +u32 sub_0805848C(ManagerA* this) { switch (gPlayerState.field_0xa8[0]-5) { case 0: case 2: @@ -119,8 +119,8 @@ u32 sub_0805848C(Manager* this) { extern void UnfreezeTime(void); -void sub_08058514(Manager* this) { - switch (this->unk_0d) { +void sub_08058514(ManagerA* this) { + switch (this->manager.unk_0d) { case 1: if ((gPlayerState.flags.all & 0x1235) != 0) return; @@ -128,13 +128,13 @@ void sub_08058514(Manager* this) { return; gPlayerState.jumpStatus = 0; sub_08078AA8(this->unk_36, this->unk_35); - this->unk_0d++; - this->unk_0e = 0x1E; + this->manager.unk_0d++; + this->manager.unk_0e = 0x1E; return; case 0: case 2: - if (((--this->unk_0e)<<0x18) == 0) { - this->unk_0d++; + if (((--this->manager.unk_0e)<<0x18) == 0) { + this->manager.unk_0d++; } return; case 3: @@ -152,7 +152,7 @@ void sub_08058514(Manager* this) { extern void sub_0801855C(void); -void sub_080585B0(Manager* this) { +void sub_080585B0(ManagerA* this) { if (gArea.filler4[0] != 0xFF) { DeleteThisEntity(); } @@ -161,7 +161,7 @@ void sub_080585B0(Manager* this) { DeleteThisEntity(); } } -void sub_080585DC(Manager* this) { +void sub_080585DC(ManagerA* this) { if (CheckFlags(this->unk_3c)) { DeleteThisEntity(); } diff --git a/src/manager/managerE.c b/src/manager/managerE.c index 7145ad13..f9edc70a 100644 --- a/src/manager/managerE.c +++ b/src/manager/managerE.c @@ -12,28 +12,28 @@ extern void sub_08078A90(u32); extern void sub_08078B48(void); extern void PlaySFX(u32); -void sub_08058E60(Manager* this) { - if (!this->unk_0c) { - this->unk_0c = 1; +void sub_08058E60(ManagerE* this) { + if (!this->manager.action) { + this->manager.action = 1; if (CheckFlags(this->unk_3e)) { - DeleteManager(this); + DeleteManager(&this->manager); return; } } if (!CheckFlags(this->unk_3e)) return; - if (this->unk_0b != 0) { - this->unk_0b = 0; + if (this->manager.unk_0b != 0) { + this->manager.unk_0b = 0; sub_08078A90(0xff); sub_08078B48(); } - if (this->unk_3a.SHWORD == 0){ - if (this->unk_38.SHWORD != 0) { - PlaySFX(this->unk_38.SHWORD); + if (this->unk_3a == 0){ + if (this->unk_38 != 0) { + PlaySFX(this->unk_38); } - LoadRoomEntityList(GetCurrentRoomProperty(this->unk_0a)); + LoadRoomEntityList(GetCurrentRoomProperty(this->manager.unk_0a)); DeleteThisEntity(); } else { - this->unk_3a.SHWORD -= 1; + this->unk_3a -= 1; } } diff --git a/src/npc/festari.c b/src/npc/festari.c index 54688ac2..3a86130c 100644 --- a/src/npc/festari.c +++ b/src/npc/festari.c @@ -4,7 +4,6 @@ #include "npc.h" #include "player.h" -extern void sub_0805E3A0(Entity*, u32); extern u32 sub_0801E99C(Entity*); extern void sub_08078784(Entity*, u32); extern void sub_0807DD50(Entity*); @@ -84,4 +83,4 @@ void sub_0805FF18(Entity *this) if (UpdateFuseInteraction(this)) { this->action = 1; } -} \ No newline at end of file +} diff --git a/src/npc/goronMerchant.c b/src/npc/goronMerchant.c index c2d7cd03..9c2e56fe 100644 --- a/src/npc/goronMerchant.c +++ b/src/npc/goronMerchant.c @@ -92,13 +92,13 @@ void sub_08069660(Entity *this) void sub_08069684(void) { - Entity *mgr; + Manager *mgr; if (FindEntityInListBySubtype(9, 0x31, 8) == NULL) { mgr = GetEmptyManager(); if (mgr != NULL) { - mgr->entityType.type = 9; - mgr->entityType.subtype = 0x31; + mgr->type = 9; + mgr->subtype = 0x31; AppendEntityToList(mgr, 8); } } @@ -140,4 +140,4 @@ u32 sub_080696BC(Entity* this) uVar1 = 4; } return gUnk_08111BA0[uVar1 * 3 + iVar3]; -} \ No newline at end of file +} diff --git a/src/npc/melari.c b/src/npc/melari.c index a4cce8f6..a50d4aad 100644 --- a/src/npc/melari.c +++ b/src/npc/melari.c @@ -8,7 +8,6 @@ extern void sub_0806ED78(Entity*); extern void sub_08068780(Entity*); extern void sub_08078778(Entity*); extern u32 Random(void); -extern void sub_0805E3A0(Entity*, u32); extern void sub_0807DD50(Entity*); extern void sub_0806F118(Entity*); extern void sub_0807DDAC(Entity*, u32); @@ -170,4 +169,4 @@ void Melari_Fusion(Entity* this) { } void nullsub_502(Entity* this) { -} \ No newline at end of file +} diff --git a/src/npc/postman.c b/src/npc/postman.c index 2f357b57..f3d9bd96 100644 --- a/src/npc/postman.c +++ b/src/npc/postman.c @@ -20,7 +20,6 @@ extern s32 sub_0806ED9C(Entity*, u32, u32); extern void sub_0806EE20(Entity*); extern void sub_0806ED78(Entity*); extern u32 sub_080040A8(Entity*); -extern void sub_0805E3A0(Entity*, u32); extern u32 sub_0801E99C(Entity*); extern void sub_0807DD50(Entity*); extern void sub_0806F118(Entity*); diff --git a/src/npc/rem.c b/src/npc/rem.c index 2edd917e..b183f687 100644 --- a/src/npc/rem.c +++ b/src/npc/rem.c @@ -6,7 +6,6 @@ extern void sub_0807DDAC(Entity*, u32); extern void sub_0807DDE4(Entity*); extern void sub_0806ED78(Entity*); extern void PlaySFX(u32); -extern void sub_0805E3A0(Entity*, u32); extern void sub_0806A8C8(Entity*); extern void sub_0807DD94(Entity*, u32); diff --git a/src/npc/zelda.c b/src/npc/zelda.c index 941f96e5..f708c6b8 100644 --- a/src/npc/zelda.c +++ b/src/npc/zelda.c @@ -5,7 +5,6 @@ #include "flags.h" extern void PrependEntityToList(Entity*, u32); -extern void sub_0805E3A0(Entity*, u32); extern void sub_0807DD50(Entity*); extern void sub_0807DD94(Entity*, u32); extern Entity* FindEntityBySubtype(u32, u32); From fa36cfe8238b8645403d8b42e2e3c8699fd4a97a Mon Sep 17 00:00:00 2001 From: Ibot02 Date: Fri, 21 Aug 2020 02:57:56 +0200 Subject: [PATCH 156/158] ManagerB.c: ok --- asm/managerB.s | 330 ----------------------------------------- linker.ld | 2 +- src/manager/managerB.c | 160 ++++++++++++++++++++ 3 files changed, 161 insertions(+), 331 deletions(-) delete mode 100644 asm/managerB.s create mode 100644 src/manager/managerB.c diff --git a/asm/managerB.s b/asm/managerB.s deleted file mode 100644 index 88e16d48..00000000 --- a/asm/managerB.s +++ /dev/null @@ -1,330 +0,0 @@ - .include "asm/macros.inc" - - .include "constants/constants.inc" - - .syntax unified - - .text - - thumb_func_start sub_080585F0 -sub_080585F0: @ 0x080585F0 - push {lr} - ldr r2, _08058604 @ =gUnk_08108208 - ldrb r1, [r0, #0xa] - lsls r1, r1, #2 - adds r1, r1, r2 - ldr r1, [r1] - bl _call_via_r1 - pop {pc} - .align 2, 0 -_08058604: .4byte gUnk_08108208 - - thumb_func_start sub_08058608 -sub_08058608: @ 0x08058608 - push {lr} - ldr r2, _0805861C @ =gUnk_08108210 - ldrb r1, [r0, #0xc] - lsls r1, r1, #2 - adds r1, r1, r2 - ldr r1, [r1] - bl _call_via_r1 - pop {pc} - .align 2, 0 -_0805861C: .4byte gUnk_08108210 - - thumb_func_start sub_08058620 -sub_08058620: @ 0x08058620 - push {r4, lr} - adds r4, r0, #0 - ldrh r0, [r4, #0x3e] - bl CheckFlags - cmp r0, #0 - bne _08058648 - movs r0, #1 - strb r0, [r4, #0xc] - ldrh r0, [r4, #0x3c] - cmp r0, #0 - bne _0805863E - adds r0, r4, #0 - bl sub_080586EC -_0805863E: - adds r0, r4, #0 - movs r1, #3 - bl sub_0805E3A0 - b _0805864C -_08058648: - bl DeleteThisEntity -_0805864C: - pop {r4, pc} - .align 2, 0 - - thumb_func_start sub_08058650 -sub_08058650: @ 0x08058650 - push {r4, lr} - adds r4, r0, #0 - ldrh r0, [r4, #0x3c] - bl CheckFlags - cmp r0, #0 - beq _08058698 - adds r0, r4, #0 - bl sub_080586EC - adds r0, r4, #0 - adds r0, #0x35 - ldrb r0, [r0] - cmp r0, #0 - bne _08058692 - ldr r1, _0805869C @ =gRoomVars - ldrb r0, [r1, #9] - movs r3, #0x33 - cmp r0, #0 - beq _0805867A - adds r3, r0, #0 -_0805867A: - ldr r0, _080586A0 @ =gArea - movs r1, #0x86 - lsls r1, r1, #4 - adds r0, r0, r1 - ldr r2, [r0] - adds r1, r4, #0 - adds r1, #0x20 - strb r2, [r1] - str r3, [r0] - adds r0, r3, #0 - bl PlaySFX -_08058692: - ldr r0, _080586A4 @ =0x00000B0F - bl sub_080186C0 -_08058698: - pop {r4, pc} - .align 2, 0 -_0805869C: .4byte gRoomVars -_080586A0: .4byte gArea -_080586A4: .4byte 0x00000B0F - - thumb_func_start sub_080586A8 -sub_080586A8: @ 0x080586A8 - push {r4, lr} - adds r4, r0, #0 - ldrb r0, [r4, #0xe] - cmp r0, #0 - bne _080586E4 - ldrh r0, [r4, #0x3e] - bl SetFlag - ldrh r0, [r4, #0x3c] - cmp r0, #0 - beq _080586E0 - adds r0, r4, #0 - adds r0, #0x35 - ldrb r0, [r0] - cmp r0, #0 - bne _080586E0 - ldr r1, _080586E8 @ =gArea - movs r0, #0x86 - lsls r0, r0, #4 - adds r1, r1, r0 - adds r0, r4, #0 - adds r0, #0x20 - ldrb r0, [r0] - str r0, [r1] - bl PlaySFX - bl sub_0801855C -_080586E0: - bl DeleteThisEntity -_080586E4: - pop {r4, pc} - .align 2, 0 -_080586E8: .4byte gArea - - thumb_func_start sub_080586EC -sub_080586EC: @ 0x080586EC - push {r4, r5, r6, r7, lr} - adds r7, r0, #0 - movs r1, #0 - movs r0, #2 - strb r0, [r7, #0xc] - strb r1, [r7, #0xe] - movs r6, #0 - adds r0, r7, #0 - bl sub_08058760 - adds r5, r0, #0 - cmp r5, #0 - bne _0805870A - bl DeleteThisEntity -_0805870A: - ldrb r0, [r7, #0xb] - bl GetCurrentRoomProperty - adds r4, r0, #0 - cmp r4, #0 - beq _0805875C - b _08058756 -_08058718: - adds r0, r4, #0 - adds r4, #0x10 - bl LoadRoomEntity - adds r3, r0, #0 - cmp r3, #0 - beq _08058744 - ldrb r0, [r3, #8] - cmp r0, #3 - bne _08058744 - adds r2, r3, #0 - adds r2, #0x6d - ldrb r0, [r2] - movs r1, #0x40 - orrs r1, r0 - strb r1, [r2] - adds r2, r6, #0 - adds r6, #1 - adds r0, r5, #0 - adds r1, r3, #0 - bl sub_08058798 -_08058744: - cmp r6, #6 - bls _08058756 - movs r6, #0 - adds r0, r7, #0 - bl sub_08058760 - adds r5, r0, #0 - cmp r5, #0 - beq _0805875C -_08058756: - ldrb r0, [r4] - cmp r0, #0xff - bne _08058718 -_0805875C: - pop {r4, r5, r6, r7, pc} - .align 2, 0 - - thumb_func_start sub_08058760 -sub_08058760: @ 0x08058760 - push {r4, r5, lr} - adds r5, r0, #0 - bl GetEmptyManager - adds r4, r0, #0 - cmp r4, #0 - beq _08058794 - movs r0, #9 - strb r0, [r4, #8] - movs r0, #0xb - strb r0, [r4, #9] - movs r0, #1 - strb r0, [r4, #0xa] - str r5, [r4, #0x14] - ldrb r0, [r5, #0xe] - adds r0, #1 - strb r0, [r5, #0xe] - adds r0, r4, #0 - adds r0, #0x20 - movs r1, #0x20 - bl _DmaZero - adds r0, r4, #0 - movs r1, #8 - bl AppendEntityToList -_08058794: - adds r0, r4, #0 - pop {r4, r5, pc} - - thumb_func_start sub_08058798 -sub_08058798: @ 0x08058798 - lsls r2, r2, #2 - adds r3, r0, #0 - adds r3, #0x20 - adds r3, r3, r2 - str r1, [r3] - ldrb r1, [r0, #0xe] - adds r1, #1 - strb r1, [r0, #0xe] - bx lr - .align 2, 0 - - thumb_func_start sub_080587AC -sub_080587AC: @ 0x080587AC - push {r4, r5, lr} - adds r4, r0, #0 - ldrb r0, [r4, #0xc] - cmp r0, #0 - bne _080587C2 - movs r0, #1 - strb r0, [r4, #0xc] - adds r0, r4, #0 - movs r1, #3 - bl sub_0805E3A0 -_080587C2: - movs r3, #0 - movs r2, #0 - adds r5, r4, #0 - adds r5, #0x20 -_080587CA: - lsls r0, r2, #2 - adds r1, r5, r0 - ldr r0, [r1] - cmp r0, #0 - beq _080587E0 - ldr r0, [r0, #4] - cmp r0, #0 - bne _080587DE - str r0, [r1] - b _080587E0 -_080587DE: - movs r3, #1 -_080587E0: - adds r0, r2, #1 - lsls r0, r0, #0x18 - lsrs r2, r0, #0x18 - cmp r2, #7 - bls _080587CA - cmp r3, #0 - bne _080587FE - ldr r1, [r4, #0x14] - ldrb r0, [r1, #0xe] - cmp r0, #0 - beq _080587FA - subs r0, #1 - strb r0, [r1, #0xe] -_080587FA: - bl DeleteThisEntity -_080587FE: - pop {r4, r5, pc} - - thumb_func_start sub_08058800 -sub_08058800: @ 0x08058800 - push {r4, r5, r6, r7, lr} - adds r4, r0, #0 - adds r5, r1, #0 - ldr r6, _08058830 @ =gUnk_03003DB0 - ldr r3, [r6, #4] - cmp r3, r6 - beq _0805884A - ldr r0, _08058834 @ =0x0000FFFF - mov ip, r0 - ldr r7, _08058838 @ =0x00000B09 -_08058814: - ldrh r1, [r3, #8] - mov r0, ip - ands r0, r1 - cmp r0, r7 - bne _08058844 - movs r2, #0 - adds r1, r3, #0 - adds r1, #0x20 -_08058824: - ldr r0, [r1] - cmp r4, r0 - bne _0805883C - str r5, [r1] - b _0805884A - .align 2, 0 -_08058830: .4byte gUnk_03003DB0 -_08058834: .4byte 0x0000FFFF -_08058838: .4byte 0x00000B09 -_0805883C: - adds r1, #4 - adds r2, #1 - cmp r2, #7 - bls _08058824 -_08058844: - ldr r3, [r3, #4] - cmp r3, r6 - bne _08058814 -_0805884A: - pop {r4, r5, r6, r7, pc} diff --git a/linker.ld b/linker.ld index 88464064..949a7d89 100644 --- a/linker.ld +++ b/linker.ld @@ -482,7 +482,7 @@ SECTIONS { asm/manager8.o(.text); asm/manager9.o(.text); src/manager/managerA.o(.text); - asm/managerB.o(.text); + src/manager/managerB.o(.text); asm/managerC.o(.text); asm/managerD.o(.text); src/manager/managerE.o(.text); diff --git a/src/manager/managerB.c b/src/manager/managerB.c new file mode 100644 index 00000000..763e89ea --- /dev/null +++ b/src/manager/managerB.c @@ -0,0 +1,160 @@ +#include "global.h" +#include "manager.h" +#include "flags.h" +#include "entity.h" +#include "room.h" +#include "area.h" +#include "functions.h" + +extern void (*(gUnk_08108208[]))(Manager*); + +void sub_080585F0(Manager* this) { + gUnk_08108208[this->unk_0a](this); +} + +extern void (*(gUnk_08108210[]))(Manager*); + +void sub_08058608(Manager* this) { + gUnk_08108210[this->action](this); +} + +void sub_080586EC(Manager*); + +void sub_08058620(ManagerB* this) { + if (!CheckFlags(this->unk_3e)) { + this->manager.action = 1; + if (!this->unk_3c) { + sub_080586EC(&this->manager); + } + sub_0805E3A0(this, 3); + } else { + DeleteThisEntity(); + } +} +extern void sub_080186C0(u32); + +void sub_08058650(ManagerB* this) { + int tmp; + if (CheckFlags(this->unk_3c)) { + sub_080586EC(&this->manager); + if (!this->unk_35) { + tmp = gRoomVars.field_0x9 ? gRoomVars.field_0x9 : 0x33; + this->unk_20 = gArea.musicIndex; + gArea.musicIndex = tmp; + PlaySFX(tmp); + } + sub_080186C0(0xB0F); + } +} + +extern void sub_0801855C(void); + +void sub_080586A8(ManagerB* this) { + if (this->manager.unk_0e) return; + SetFlag(this->unk_3e); + if (this->unk_3c) { + if (!this->unk_35) { + gArea.musicIndex = this->unk_20; + PlaySFX(gArea.musicIndex); + sub_0801855C(); + } + } + DeleteThisEntity(); +} + +ManagerBHelper* sub_08058760(Manager*); +void sub_08058798(ManagerBHelper*, Entity*, u32); + +extern EntityData* GetCurrentRoomProperty(u8); +extern Entity* LoadRoomEntity(EntityData*); + +void sub_080586EC(Manager* this) { + ManagerBHelper* tmp; + EntityData* prop; + Entity* ent; + u32 counter; + this->action = 2; + this->unk_0e = 0; + counter = 0; + tmp = sub_08058760(this); + if (!tmp) DeleteThisEntity(); + prop = (EntityData*) GetCurrentRoomProperty(this->unk_0b); + if (prop) { + while (*((u8*)prop) != 0xFF) { + ent = LoadRoomEntity(prop++); + if (ent && (ent->entityType.type == 3)) { + ent->field_0x6c.HALF.HI |= 0x40; + sub_08058798(tmp, ent, counter++); + } + if (counter >= 7) { + counter = 0; + tmp = sub_08058760(this); + if (!tmp) return; + } + } + } +} + +ManagerBHelper* sub_08058760(Manager* this) { + ManagerBHelper* extra; + extra = (ManagerBHelper*) GetEmptyManager(); + if (extra) { + extra->manager.type = 9; + extra->manager.subtype = 0xB; + extra->manager.unk_0a = 1; + extra->manager.parent = this; + this->unk_0e++; + _DmaZero(&extra->enemies, 0x20); + AppendEntityToList(extra, 8); + } + return extra; +} + +void sub_08058798(ManagerBHelper* this, Entity* value, u32 index) { + this->enemies[index]=value; + this->manager.unk_0e++; +} + +void sub_080587AC(ManagerBHelper* this) { + u8 i, tmp; + Entity* current; + if (this->manager.action == 0) { + this->manager.action = 1; + sub_0805E3A0(this,3); + } + tmp = 0; + for (i = 0; i < 8; i++) { + if ((current = this->enemies[i])) { + if (!current->next) { + this->enemies[i] = 0; + } else { + tmp = 1; + } + } + } + if (!tmp) { + if (((ManagerB*) this->manager.parent)->manager.unk_0e) { + ((ManagerB*) this->manager.parent)->manager.unk_0e--; + } + DeleteThisEntity(); + } +} + + +extern Manager gUnk_03003DB0; + +void sub_08058800(Entity* this, Entity* unk1) { + ManagerBHelper* current; + Manager* end = &gUnk_03003DB0; + u32 i; + for (current = (ManagerBHelper*) end->next; (Manager*)current != end; current=(ManagerBHelper*)current->manager.next) { + if (current->manager.type != 0x9 || current->manager.subtype != 0xB) continue; + for (i = 0; i < 8; i++) { + if (this == current->enemies[i]) { + current->enemies[i] = unk1; + return; + } + } + } +} + From 52d44007f01a079a7b88ee0b6f09aff421aa6b22 Mon Sep 17 00:00:00 2001 From: Ibot02 Date: Fri, 21 Aug 2020 12:08:18 +0200 Subject: [PATCH 157/158] sub_0804E3C4 matching This is the function to load the fight for Simon's simulation. --- asm/non_matching/sub_0804E3C4.inc | 68 ------------------------------- include/functions.h | 2 +- src/room.c | 37 +++++++++++++++-- 3 files changed, 34 insertions(+), 73 deletions(-) delete mode 100644 asm/non_matching/sub_0804E3C4.inc diff --git a/asm/non_matching/sub_0804E3C4.inc b/asm/non_matching/sub_0804E3C4.inc deleted file mode 100644 index fcac78c4..00000000 --- a/asm/non_matching/sub_0804E3C4.inc +++ /dev/null @@ -1,68 +0,0 @@ - .syntax unified - push {r4, r5, r6, lr} - movs r0, #5 - bl CheckGlobalFlag - rsbs r1, r0, #0 - orrs r1, r0 - lsrs r6, r1, #0x1f - movs r0, #6 - bl CheckGlobalFlag - cmp r0, #0 - beq _0804E3DE - movs r6, #2 -_0804E3DE: - movs r0, #0x55 - bl CheckGlobalFlag - cmp r0, #0 - beq _0804E3EA - movs r6, #3 -_0804E3EA: - bl Random - adds r4, r0, #0 - ldr r1, _0804E448 @ =gUnk_080F0D58 - lsls r0, r6, #2 - adds r0, r0, r1 - movs r5, #0x1f - adds r1, r4, #0 - ands r1, r5 - ldr r0, [r0] - adds r0, r0, r1 - ldrb r6, [r0] - ldr r1, _0804E44C @ =gUnk_080F0CB8 - movs r0, #0xf - ands r0, r6 - lsls r0, r0, #2 - adds r0, r0, r1 - ldr r0, [r0] - bl LoadRoomEntityList - lsrs r6, r6, #4 - lsrs r4, r4, #8 - ldr r1, _0804E450 @ =gUnk_080F0E08 - lsls r0, r6, #2 - adds r0, r0, r1 - ands r4, r5 - ldr r0, [r0] - adds r0, r0, r4 - ldrb r6, [r0] - movs r0, #0xc6 - bl CheckLocalFlag - cmp r0, #0 - bne _0804E436 - movs r0, #0xc6 - bl SetLocalFlag - movs r6, #0xe -_0804E436: - lsls r0, r6, #3 - ldr r1, _0804E454 @ =gUnk_080F0E1C - adds r0, r0, r1 - bl sub_0804B3C4 - ldr r0, _0804E458 @ =0x80100000 - bl PlaySFX - pop {r4, r5, r6, pc} - .align 2, 0 -_0804E448: .4byte gUnk_080F0D58 -_0804E44C: .4byte gUnk_080F0CB8 -_0804E450: .4byte gUnk_080F0E08 -_0804E454: .4byte gUnk_080F0E1C -_0804E458: .4byte 0x80100000 - .syntax divided \ No newline at end of file diff --git a/include/functions.h b/include/functions.h index d85b2822..dc6b920a 100644 --- a/include/functions.h +++ b/include/functions.h @@ -118,7 +118,7 @@ extern void sub_080AD918(void); extern void sub_0801E104(void); extern void MenuFadeIn(u32, u32); extern void sub_080A57F4(void); -extern void sub_0804B29C(u32); +extern void sub_0804B29C(void*); extern void sub_08030118(u32); extern void sub_080575C8(u32); extern void sub_08057688(void); diff --git a/src/room.c b/src/room.c index cd8959f5..69d8ef95 100644 --- a/src/room.c +++ b/src/room.c @@ -10,7 +10,7 @@ #include "main.h" #include "structures.h" -void sub_0804B3C4(u32 arg0) { +void sub_0804B3C4(void* arg0) { sub_0804B29C(arg0); } @@ -4467,9 +4467,38 @@ u32 sub_0804E3B8() { return 1; } -NAKED +extern u8* gUnk_080F0D58[4]; +extern Entity* gUnk_080F0CB8[15]; +extern u8* gUnk_080F0E08[]; +extern struct { + u32 unk_00; + u32 unk_04; +} gUnk_080F0E1C[]; + void sub_0804E3C4() { - asm(".include \"asm/non_matching/sub_0804E3C4.inc\""); + u32 r; + u32 index; + u32 tmp; + tmp = CheckGlobalFlag(LV4_CLEAR); + index = (-tmp | tmp) >> 0x1F; + if (CheckGlobalFlag(LV5_CLEAR)) { + index = 2; + } + if (CheckGlobalFlag(GAMECLEAR)) { + index = 3; + } + r = Random(); + index = gUnk_080F0D58[index][r&0x1f]; + LoadRoomEntityList(gUnk_080F0CB8[index & 0xF]); + index >>= 4; + r >>= 8; + index = gUnk_080F0E08[index][r&0x1F]; + if (!CheckLocalFlag(0xC6)) { + SetLocalFlag(0xC6); + index = 0xE; + } + sub_0804B3C4(&gUnk_080F0E1C[index]); + PlaySFX(0x80100000); } u32 sub_0804E45C() { @@ -6552,4 +6581,4 @@ void sub_0804FF84(u32 arg0) { ((struct_02000000 * )0x02000000)->brightnessPref = arg0; gUsedPalettes = (u32)-1; -} \ No newline at end of file +} From bcfae17450cb30ed57ec1a65f5170679b6bc7620 Mon Sep 17 00:00:00 2001 From: Ibot02 Date: Fri, 21 Aug 2020 18:59:11 +0200 Subject: [PATCH 158/158] Manager3.c: ok --- asm/manager3.s | 216 ----------------------------------------- include/area.h | 9 +- include/manager.h | 3 +- include/player.h | 6 +- linker.ld | 2 +- src/code_0804AA84.c | 4 +- src/item.c | 4 +- src/manager/manager3.c | 102 +++++++++++++++++++ src/manager/managerA.c | 2 +- src/sub_08070680.c | 4 +- 10 files changed, 123 insertions(+), 229 deletions(-) delete mode 100644 asm/manager3.s create mode 100644 src/manager/manager3.c diff --git a/asm/manager3.s b/asm/manager3.s deleted file mode 100644 index 7bd5a45c..00000000 --- a/asm/manager3.s +++ /dev/null @@ -1,216 +0,0 @@ - .include "asm/macros.inc" - - .include "constants/constants.inc" - - .syntax unified - - .text - - thumb_func_start sub_080576C0 -sub_080576C0: @ 0x080576C0 - push {r4, r5, lr} - adds r4, r0, #0 - ldrb r0, [r4, #0xc] - cmp r0, #0 - bne _080576EC - movs r0, #1 - strb r0, [r4, #0xc] - ldrh r0, [r4, #0x38] - ldr r2, _080576E8 @ =gRoomControls - ldrh r1, [r2, #6] - adds r0, r0, r1 - subs r0, #0x20 - str r0, [r4, #0x20] - ldrh r0, [r4, #0x3a] - ldrh r1, [r2, #8] - adds r0, r0, r1 - subs r0, #0x20 - str r0, [r4, #0x24] - b _080577AA - .align 2, 0 -_080576E8: .4byte gRoomControls -_080576EC: - ldr r0, [r4, #0x20] - ldr r1, [r4, #0x24] - movs r2, #0x40 - movs r3, #0x40 - bl sub_0806FBFC - cmp r0, #0 - beq _080577A8 - ldr r5, _08057738 @ =gArea - ldr r0, [r4, #0x20] - adds r0, #0x20 - strh r0, [r5, #0x12] - ldr r1, [r4, #0x24] - ldr r2, _0805773C @ =gUnk_08107C6C - ldrb r0, [r4, #0xa] - adds r0, r0, r2 - ldrb r0, [r0] - lsls r0, r0, #0x18 - asrs r0, r0, #0x18 - adds r0, #0x20 - adds r1, r1, r0 - strh r1, [r5, #0x14] - adds r0, r4, #0 - adds r0, #0x34 - ldrb r0, [r0] - strb r0, [r5, #0x16] - ldrb r0, [r4, #0xa] - strb r0, [r5, #0x17] - movs r0, #0x14 - bl CheckGlobalFlag - cmp r0, #0 - bne _08057740 - movs r0, #1 - strb r0, [r5, #0x18] - movs r0, #5 - strb r0, [r5, #0x17] - b _080577AA - .align 2, 0 -_08057738: .4byte gArea -_0805773C: .4byte gUnk_08107C6C -_08057740: - ldr r2, _08057758 @ =gPlayerState - ldr r0, [r2, #0x30] - movs r1, #0x20 - ands r0, r1 - cmp r0, #0 - beq _0805775C - ldrb r0, [r2, #2] - cmp r0, #0 - bne _0805775C - movs r0, #2 - strb r0, [r5, #0x18] - b _0805776A - .align 2, 0 -_08057758: .4byte gPlayerState -_0805775C: - bl sub_08057810 - cmp r0, #0 - beq _0805776A - ldr r1, _080577A0 @ =gArea - movs r0, #3 - strb r0, [r1, #0x18] -_0805776A: - ldrh r0, [r4, #0x38] - ldrh r1, [r4, #0x3a] - ldrb r2, [r4, #0xe] - bl sub_080002C0 - cmp r0, #0x3d - bne _080577AA - ldrh r0, [r4, #0x38] - ldr r2, _080577A4 @ =gRoomControls - ldrh r1, [r2, #6] - adds r0, r0, r1 - ldrh r1, [r4, #0x3a] - ldrh r2, [r2, #8] - adds r1, r1, r2 - ldrb r2, [r4, #0xe] - bl sub_080577AC - ldrb r0, [r4, #0xf] - cmp r0, #0 - bne _080577AA - movs r0, #1 - strb r0, [r4, #0xf] - movs r0, #0xa9 - lsls r0, r0, #1 - bl PlaySFX - b _080577AA - .align 2, 0 -_080577A0: .4byte gArea -_080577A4: .4byte gRoomControls -_080577A8: - strb r0, [r4, #0xf] -_080577AA: - pop {r4, r5, pc} - - thumb_func_start sub_080577AC -sub_080577AC: @ 0x080577AC - push {r4, r5, r6, r7, lr} - mov r7, r8 - push {r7} - adds r6, r0, #0 - adds r7, r1, #0 - mov r8, r2 - bl Random - adds r5, r0, #0 - movs r0, #7 - ands r0, r5 - cmp r0, #0 - bne _08057808 - movs r0, #0xf - movs r1, #0x26 - movs r2, #0 - bl CreateObject - adds r4, r0, #0 - cmp r4, #0 - beq _08057808 - lsrs r3, r5, #8 - movs r0, #0xf - ands r3, r0 - lsrs r2, r5, #0x10 - ands r2, r0 - cmp r2, #4 - ble _080577E6 - rsbs r2, r2, #0 -_080577E6: - lsrs r0, r5, #0x18 - movs r1, #1 - ands r0, r1 - cmp r0, #0 - beq _080577F2 - rsbs r3, r3, #0 -_080577F2: - adds r0, r6, r3 - strh r0, [r4, #0x2e] - adds r0, r7, r2 - strh r0, [r4, #0x32] - adds r0, r4, #0 - adds r0, #0x38 - mov r1, r8 - strb r1, [r0] - adds r0, r4, #0 - bl UpdateSpriteForCollisionLayer -_08057808: - pop {r3} - mov r8, r3 - pop {r4, r5, r6, r7, pc} - .align 2, 0 - - thumb_func_start sub_08057810 -sub_08057810: @ 0x08057810 - push {lr} - ldr r2, _08057848 @ =gPlayerState - ldr r0, [r2, #0x30] - movs r1, #0x80 - ands r0, r1 - cmp r0, #0 - beq _08057850 - adds r0, r2, #0 - adds r0, #0xaa - ldrb r0, [r0] - cmp r0, #0 - bne _08057850 - ldr r0, _0805784C @ =gArea - ldrb r0, [r0, #0x17] - cmp r0, #6 - beq _08057850 - ldrb r0, [r2, #5] - cmp r0, #0 - bne _08057850 - adds r0, r2, #0 - adds r0, #0xa8 - ldrb r0, [r0] - cmp r0, #1 - bgt _08057850 - cmp r0, #0 - blt _08057850 - movs r0, #1 - b _08057852 - .align 2, 0 -_08057848: .4byte gPlayerState -_0805784C: .4byte gArea -_08057850: - movs r0, #0 -_08057852: - pop {pc} diff --git a/include/area.h b/include/area.h index e705944d..a683cb2a 100644 --- a/include/area.h +++ b/include/area.h @@ -11,7 +11,12 @@ typedef struct { u16 localFlagOffset; u8 filler[10]; u16 field_0x10; - u8 filler3[7]; + u16 field_0x12; + u16 field_0x14; + u8 field_0x16; + u8 field_0x17; + u8 field_0x18; + //u8 filler3[7]; u8 fadeOut; u8 filler2[14]; u8 filler4[0x835]; @@ -25,4 +30,4 @@ typedef struct { extern Area gArea; -#endif \ No newline at end of file +#endif diff --git a/include/manager.h b/include/manager.h index c2646dfb..bd97c1c3 100644 --- a/include/manager.h +++ b/include/manager.h @@ -21,7 +21,8 @@ typedef struct Manager { /*0x0c*/ u8 action; /*0x0d*/ u8 unk_0d; /*0x0e*/ u8 unk_0e; - /*0x0f*/ u8 unk_0f[0x5]; + /*0x0f*/ u8 unk_0f; + /*0x10*/ u8 unk_10[0x4]; /*0x14*/ struct Manager * parent; /*0x18*/ u8 unk_18[0x8]; // union SplitHWord unk_20; diff --git a/include/player.h b/include/player.h index 1abc8491..c3b69e43 100644 --- a/include/player.h +++ b/include/player.h @@ -57,7 +57,9 @@ typedef struct { /*0x8c*/ u32 field_0x8c; /*0x90*/ union SplitWord field_0x90; /*0x94*/ u32 field_0x94[5]; - /*0xa8*/ u8 field_0xa8[3]; + /*0xa8*/ u8 field_0xa8; + /*0xa9*/ u8 field_0xa9; + /*0xaa*/ u8 field_0xaa; /*0xab*/ u8 field_0xab; /*0xac*/ u32 field_0xac; } PlayerState; @@ -108,4 +110,4 @@ extern s32 ModHealth(s32); extern void ModRupees(s32); #endif -// clang-format on \ No newline at end of file +// clang-format on diff --git a/linker.ld b/linker.ld index 949a7d89..46227a68 100644 --- a/linker.ld +++ b/linker.ld @@ -474,7 +474,7 @@ SECTIONS { asm/manager1.o(.text); src/manager/manager2.o(.text); asm/manager2.o(.text); - asm/manager3.o(.text); + src/manager/manager3.o(.text); src/manager/manager4.o(.text); asm/manager5.o(.text); src/manager/manager6.o(.text); diff --git a/src/code_0804AA84.c b/src/code_0804AA84.c index 27e6bf1d..d3eff465 100644 --- a/src/code_0804AA84.c +++ b/src/code_0804AA84.c @@ -45,7 +45,7 @@ void sub_0804AAD4(void) _DmaZero((void *)&gUnk_02018EB0, 0x28); gUnk_02018EB0.unk = 0; EraseAllEntities(); - CreateObject(0x3d, gArea.filler3[5], 0); + CreateObject(0x3d, gArea.field_0x17, 0); gArea.filler[8]++; } @@ -73,4 +73,4 @@ void sub_0804AB24(void) void sub_0804AB54(void) { gUnk_080D412C[gArea.filler[8]](); -} \ No newline at end of file +} diff --git a/src/item.c b/src/item.c index 8d3e0f72..52b94c07 100644 --- a/src/item.c +++ b/src/item.c @@ -155,6 +155,6 @@ void sub_08076D94(ItemBehavior *beh, u32 arg1) void GustJar(ItemBehavior *beh, u32 arg1) { - gPlayerState.field_0xa8[0] = 3; + gPlayerState.field_0xa8 = 3; gUnk_0811BDF4[beh->stateID](beh, arg1); -} \ No newline at end of file +} diff --git a/src/manager/manager3.c b/src/manager/manager3.c new file mode 100644 index 00000000..d22dbb25 --- /dev/null +++ b/src/manager/manager3.c @@ -0,0 +1,102 @@ +#include "global.h" +#include "manager.h" +#include "flags.h" +#include "area.h" +#include "room.h" +#include "player.h" +#include "functions.h" + +typedef struct { + Manager manager; + u32 unk_20; + u32 unk_24; + u8 unk_28[0xC]; + u8 unk_34; + u8 unk_35; + u16 unk_36; + u16 unk_38; + u16 unk_3a; + u16 unk_3c; + u16 unk_3e; +} Manager3; + +extern s8 gUnk_08107C6C[]; +extern u32 sub_0806FBFC(u32, u32, u32, u32); +extern u32 sub_08057810(void); +extern u32 sub_080002C0(u16, u16, u8); +extern void sub_080577AC(u32, u32, u32); + +void sub_080576C0(Manager3* this) { + s8 tmp; + if (this->manager.action == 0) { + this->manager.action = 1; + this->unk_20 = this->unk_38 + gRoomControls.roomOriginX - 0x20; + this->unk_24 = this->unk_3a + gRoomControls.roomOriginY - 0x20; + return; + } + if (sub_0806FBFC(this->unk_20, this->unk_24, 0x40, 0x40)) { + gArea.field_0x12 = this->unk_20 + 0x20; + gArea.field_0x14 = this->unk_24 + 0x20 + gUnk_08107C6C[this->manager.unk_0a]; + gArea.field_0x16 = this->unk_34; + gArea.field_0x17 = this->manager.unk_0a; + if (!CheckGlobalFlag(EZERO_1ST)) { + gArea.field_0x18 = 1; + gArea.field_0x17 = 5; + } else { + if ((gPlayerState.flags.all & 0x20) && gPlayerState.jumpStatus == 0) { + gArea.field_0x18 = 2; + } else { + if (sub_08057810()) { + gArea.field_0x18 = 3; + } + } + if (sub_080002C0(this->unk_38, this->unk_3a, this->manager.unk_0e) == 0x3d) { + sub_080577AC(this->unk_38 + gRoomControls.roomOriginX, this->unk_3a + gRoomControls.roomOriginY, this->manager.unk_0e); + if (!this->manager.unk_0f) { + this->manager.unk_0f = 1; + PlaySFX(0x152); + } + } + } + + } else { + this->manager.unk_0f = 0; + } + +} + +void sub_080577AC(u32 baseX, u32 baseY, u32 layer) { + u32 r; + int offsetX, offsetY; + Entity* spark; + r = Random(); + if ((r & 0x7) != 0) return; + spark = CreateObject(0xF, 0x26, 0); + if (!spark) return; + offsetX = (r >> 0x8) & 0xF; + offsetY = ((r >> 0x10) & 0xF); + if (offsetY > 0x4) { + offsetY = -offsetY; + } + if ((r >> 0x18) & 0x1) { + offsetX = -offsetX; + } + spark->x.HALF.HI = baseX + offsetX; + spark->y.HALF.HI = baseY + offsetY; + spark->collisionLayer = layer; + UpdateSpriteForCollisionLayer(spark); +} + +u32 sub_08057810(void) { + if ((gPlayerState.flags.all & 0x80) + && !gPlayerState.field_0xaa + && (gArea.field_0x17 != 0x6) + && (gPlayerState.heldObject == 0)) { + switch (gPlayerState.field_0xa8) { + case 0: + case 1: + return 1; + } + } + return 0; +} diff --git a/src/manager/managerA.c b/src/manager/managerA.c index 27e4224b..1fd78227 100644 --- a/src/manager/managerA.c +++ b/src/manager/managerA.c @@ -85,7 +85,7 @@ void sub_08058408(ManagerA* this){ u32 sub_0805848C(ManagerA* this) { - switch (gPlayerState.field_0xa8[0]-5) { + switch (gPlayerState.field_0xa8-5) { case 0: case 2: case 3: diff --git a/src/sub_08070680.c b/src/sub_08070680.c index 566bfd7b..623b992d 100644 --- a/src/sub_08070680.c +++ b/src/sub_08070680.c @@ -51,7 +51,7 @@ void sub_08070698(Entity *this) if (gPlayerState.swimState != 0) { gPlayerState.swimState = 1; sub_08079938(); - gPlayerState.field_0xa8[0] = 7; + gPlayerState.field_0xa8 = 7; sub_0807ACCC(this); ent = FindEntityInListByForm(0x6, 0xf, 0x6, 0xb, 0x0); if (ent != NULL) { @@ -59,4 +59,4 @@ void sub_08070698(Entity *this) } } } -} \ No newline at end of file +}