759b0 funcs

This commit is contained in:
Ethan Roseman 2020-12-22 23:58:31 +09:00
parent fe82f4be0a
commit 594d5bd2c7
20 changed files with 111 additions and 317 deletions

View File

@ -1,26 +0,0 @@
.set noat # allow manual use of $at
.set noreorder # don't insert nops after branches
glabel func_800DFEFC
/* 793AC 800DFEFC 27BDFFE8 */ addiu $sp, $sp, -0x18
/* 793B0 800DFF00 AFB00010 */ sw $s0, 0x10($sp)
/* 793B4 800DFF04 3C108011 */ lui $s0, %hi(gPlayerStatus)
/* 793B8 800DFF08 2610EFC8 */ addiu $s0, $s0, %lo(gPlayerStatus)
/* 793BC 800DFF0C AFBF0014 */ sw $ra, 0x14($sp)
/* 793C0 800DFF10 0C037F52 */ jal func_800DFD48
/* 793C4 800DFF14 00000000 */ nop
/* 793C8 800DFF18 0040202D */ daddu $a0, $v0, $zero
/* 793CC 800DFF1C 2402FFFF */ addiu $v0, $zero, -1
/* 793D0 800DFF20 10820007 */ beq $a0, $v0, .L800DFF40
/* 793D4 800DFF24 3C03EFFF */ lui $v1, 0xefff
/* 793D8 800DFF28 8E020000 */ lw $v0, ($s0)
/* 793DC 800DFF2C 3463FFFF */ ori $v1, $v1, 0xffff
/* 793E0 800DFF30 AE0400B8 */ sw $a0, 0xb8($s0)
/* 793E4 800DFF34 A60000BC */ sh $zero, 0xbc($s0)
/* 793E8 800DFF38 00431024 */ and $v0, $v0, $v1
/* 793EC 800DFF3C AE020000 */ sw $v0, ($s0)
.L800DFF40:
/* 793F0 800DFF40 8FBF0014 */ lw $ra, 0x14($sp)
/* 793F4 800DFF44 8FB00010 */ lw $s0, 0x10($sp)
/* 793F8 800DFF48 03E00008 */ jr $ra
/* 793FC 800DFF4C 27BD0018 */ addiu $sp, $sp, 0x18

View File

@ -1,14 +0,0 @@
.set noat # allow manual use of $at
.set noreorder # don't insert nops after branches
glabel func_800DFF50
/* 79400 800DFF50 3C02EFFF */ lui $v0, 0xefff
/* 79404 800DFF54 3C038011 */ lui $v1, %hi(gPlayerStatus)
/* 79408 800DFF58 2463EFC8 */ addiu $v1, $v1, %lo(gPlayerStatus)
/* 7940C 800DFF5C 8C650000 */ lw $a1, ($v1)
/* 79410 800DFF60 3442FFFF */ ori $v0, $v0, 0xffff
/* 79414 800DFF64 AC6400B8 */ sw $a0, 0xb8($v1)
/* 79418 800DFF68 A46000BC */ sh $zero, 0xbc($v1)
/* 7941C 800DFF6C 00A22824 */ and $a1, $a1, $v0
/* 79420 800DFF70 03E00008 */ jr $ra
/* 79424 800DFF74 AC650000 */ sw $a1, ($v1)

View File

@ -1,26 +0,0 @@
.set noat # allow manual use of $at
.set noreorder # don't insert nops after branches
glabel func_800DFF78
/* 79428 800DFF78 27BDFFE8 */ addiu $sp, $sp, -0x18
/* 7942C 800DFF7C AFB00010 */ sw $s0, 0x10($sp)
/* 79430 800DFF80 3C108011 */ lui $s0, %hi(gPlayerStatus)
/* 79434 800DFF84 2610EFC8 */ addiu $s0, $s0, %lo(gPlayerStatus)
/* 79438 800DFF88 AFBF0014 */ sw $ra, 0x14($sp)
/* 7943C 800DFF8C 0C037F52 */ jal func_800DFD48
/* 79440 800DFF90 00000000 */ nop
/* 79444 800DFF94 0040182D */ daddu $v1, $v0, $zero
/* 79448 800DFF98 2402FFFF */ addiu $v0, $zero, -1
/* 7944C 800DFF9C 10620007 */ beq $v1, $v0, .L800DFFBC
/* 79450 800DFFA0 00000000 */ nop
/* 79454 800DFFA4 8E020000 */ lw $v0, ($s0)
/* 79458 800DFFA8 AE0300B8 */ sw $v1, 0xb8($s0)
/* 7945C 800DFFAC 3C031000 */ lui $v1, 0x1000
/* 79460 800DFFB0 A60000BC */ sh $zero, 0xbc($s0)
/* 79464 800DFFB4 00431025 */ or $v0, $v0, $v1
/* 79468 800DFFB8 AE020000 */ sw $v0, ($s0)
.L800DFFBC:
/* 7946C 800DFFBC 8FBF0014 */ lw $ra, 0x14($sp)
/* 79470 800DFFC0 8FB00010 */ lw $s0, 0x10($sp)
/* 79474 800DFFC4 03E00008 */ jr $ra
/* 79478 800DFFC8 27BD0018 */ addiu $sp, $sp, 0x18

View File

@ -1,14 +0,0 @@
.set noat # allow manual use of $at
.set noreorder # don't insert nops after branches
glabel func_800E0088
/* 79538 800E0088 27BDFFE8 */ addiu $sp, $sp, -0x18
/* 7953C 800E008C 3C028011 */ lui $v0, %hi(gPlayerStatus)
/* 79540 800E0090 2442EFC8 */ addiu $v0, $v0, %lo(gPlayerStatus)
/* 79544 800E0094 AFBF0010 */ sw $ra, 0x10($sp)
/* 79548 800E0098 8C460028 */ lw $a2, 0x28($v0)
/* 7954C 800E009C 0C00A7B5 */ jal dist2D
/* 79550 800E00A0 8C470030 */ lw $a3, 0x30($v0)
/* 79554 800E00A4 8FBF0010 */ lw $ra, 0x10($sp)
/* 79558 800E00A8 03E00008 */ jr $ra
/* 7955C 800E00AC 27BD0018 */ addiu $sp, $sp, 0x18

View File

@ -1,16 +0,0 @@
.set noat # allow manual use of $at
.set noreorder # don't insert nops after branches
glabel func_800E01DC
/* 7968C 800E01DC 3C048011 */ lui $a0, %hi(gPlayerStatus)
/* 79690 800E01E0 2484EFC8 */ addiu $a0, $a0, %lo(gPlayerStatus)
/* 79694 800E01E4 8C820004 */ lw $v0, 4($a0)
/* 79698 800E01E8 30420010 */ andi $v0, $v0, 0x10
/* 7969C 800E01EC 10400004 */ beqz $v0, .L800E0200
/* 796A0 800E01F0 3C030800 */ lui $v1, 0x800
/* 796A4 800E01F4 8C820000 */ lw $v0, ($a0)
/* 796A8 800E01F8 00431025 */ or $v0, $v0, $v1
/* 796AC 800E01FC AC820000 */ sw $v0, ($a0)
.L800E0200:
/* 796B0 800E0200 03E00008 */ jr $ra
/* 796B4 800E0204 00000000 */ nop

View File

@ -1,17 +0,0 @@
.set noat # allow manual use of $at
.set noreorder # don't insert nops after branches
glabel func_800E0260
/* 79710 800E0260 27BDFFE8 */ addiu $sp, $sp, -0x18
/* 79714 800E0264 AFBF0010 */ sw $ra, 0x10($sp)
/* 79718 800E0268 0C038196 */ jal func_800E0658
/* 7971C 800E026C 00000000 */ nop
/* 79720 800E0270 0C0382B4 */ jal func_800E0AD0
/* 79724 800E0274 00000000 */ nop
/* 79728 800E0278 0C038134 */ jal func_800E04D0
/* 7972C 800E027C 00000000 */ nop
/* 79730 800E0280 0C0380CC */ jal func_800E0330
/* 79734 800E0284 00000000 */ nop
/* 79738 800E0288 8FBF0010 */ lw $ra, 0x10($sp)
/* 7973C 800E028C 03E00008 */ jr $ra
/* 79740 800E0290 27BD0018 */ addiu $sp, $sp, 0x18

View File

@ -1,22 +0,0 @@
.set noat # allow manual use of $at
.set noreorder # don't insert nops after branches
glabel func_800E0330
/* 797E0 800E0330 3C02800F */ lui $v0, %hi(gPlayerStatusPtr)
/* 797E4 800E0334 8C427B30 */ lw $v0, %lo(gPlayerStatusPtr)($v0)
/* 797E8 800E0338 27BDFFE8 */ addiu $sp, $sp, -0x18
/* 797EC 800E033C AFBF0010 */ sw $ra, 0x10($sp)
/* 797F0 800E0340 8C420004 */ lw $v0, 4($v0)
/* 797F4 800E0344 30420100 */ andi $v0, $v0, 0x100
/* 797F8 800E0348 10400007 */ beqz $v0, .L800E0368
/* 797FC 800E034C 00000000 */ nop
/* 79800 800E0350 3C028011 */ lui $v0, %hi(D_8010C93C)
/* 79804 800E0354 8C42C93C */ lw $v0, %lo(D_8010C93C)($v0)
/* 79808 800E0358 10400003 */ beqz $v0, .L800E0368
/* 7980C 800E035C 00000000 */ nop
/* 79810 800E0360 0C0ADC00 */ jal func_802B7000
/* 79814 800E0364 00000000 */ nop
.L800E0368:
/* 79818 800E0368 8FBF0010 */ lw $ra, 0x10($sp)
/* 7981C 800E036C 03E00008 */ jr $ra
/* 79820 800E0370 27BD0018 */ addiu $sp, $sp, 0x18

View File

@ -1,13 +0,0 @@
.set noat # allow manual use of $at
.set noreorder # don't insert nops after branches
glabel func_800E0374
/* 79824 800E0374 3C02800F */ lui $v0, %hi(gPlayerStatusPtr)
/* 79828 800E0378 8C427B30 */ lw $v0, %lo(gPlayerStatusPtr)($v0)
/* 7982C 800E037C 8C430004 */ lw $v1, 4($v0)
/* 79830 800E0380 2404FEFF */ addiu $a0, $zero, -0x101
/* 79834 800E0384 3C018011 */ lui $at, %hi(D_8010C93C)
/* 79838 800E0388 AC20C93C */ sw $zero, %lo(D_8010C93C)($at)
/* 7983C 800E038C 00641824 */ and $v1, $v1, $a0
/* 79840 800E0390 03E00008 */ jr $ra
/* 79844 800E0394 AC430004 */ sw $v1, 4($v0)

View File

@ -1,22 +0,0 @@
.set noat # allow manual use of $at
.set noreorder # don't insert nops after branches
glabel func_800E04D0
/* 79980 800E04D0 3C02800F */ lui $v0, %hi(gPlayerStatusPtr)
/* 79984 800E04D4 8C427B30 */ lw $v0, %lo(gPlayerStatusPtr)($v0)
/* 79988 800E04D8 27BDFFE8 */ addiu $sp, $sp, -0x18
/* 7998C 800E04DC AFBF0010 */ sw $ra, 0x10($sp)
/* 79990 800E04E0 8C420004 */ lw $v0, 4($v0)
/* 79994 800E04E4 30420040 */ andi $v0, $v0, 0x40
/* 79998 800E04E8 10400007 */ beqz $v0, .L800E0508
/* 7999C 800E04EC 00000000 */ nop
/* 799A0 800E04F0 3C028011 */ lui $v0, %hi(D_8010C920)
/* 799A4 800E04F4 8C42C920 */ lw $v0, %lo(D_8010C920)($v0)
/* 799A8 800E04F8 10400003 */ beqz $v0, .L800E0508
/* 799AC 800E04FC 00000000 */ nop
/* 799B0 800E0500 0C0ADC75 */ jal func_802B71D4
/* 799B4 800E0504 00000000 */ nop
.L800E0508:
/* 799B8 800E0508 8FBF0010 */ lw $ra, 0x10($sp)
/* 799BC 800E050C 03E00008 */ jr $ra
/* 799C0 800E0510 27BD0018 */ addiu $sp, $sp, 0x18

View File

@ -1,13 +0,0 @@
.set noat # allow manual use of $at
.set noreorder # don't insert nops after branches
glabel func_800E0514
/* 799C4 800E0514 3C02800F */ lui $v0, %hi(gPlayerStatusPtr)
/* 799C8 800E0518 8C427B30 */ lw $v0, %lo(gPlayerStatusPtr)($v0)
/* 799CC 800E051C 8C430004 */ lw $v1, 4($v0)
/* 799D0 800E0520 2404FFBF */ addiu $a0, $zero, -0x41
/* 799D4 800E0524 3C018011 */ lui $at, %hi(D_8010C920)
/* 799D8 800E0528 AC20C920 */ sw $zero, %lo(D_8010C920)($at)
/* 799DC 800E052C 00641824 */ and $v1, $v1, $a0
/* 799E0 800E0530 03E00008 */ jr $ra
/* 799E4 800E0534 AC430004 */ sw $v1, 4($v0)

View File

@ -1,23 +0,0 @@
.set noat # allow manual use of $at
.set noreorder # don't insert nops after branches
glabel func_800E0538
/* 799E8 800E0538 3C058011 */ lui $a1, %hi(gPlayerStatus)
/* 799EC 800E053C 24A5EFC8 */ addiu $a1, $a1, %lo(gPlayerStatus)
/* 799F0 800E0540 8CA200C8 */ lw $v0, 0xc8($a1)
/* 799F4 800E0544 1040000C */ beqz $v0, .L800E0578
/* 799F8 800E0548 0000202D */ daddu $a0, $zero, $zero
/* 799FC 800E054C 8C420000 */ lw $v0, ($v0)
/* 79A00 800E0550 3C031000 */ lui $v1, 0x1000
/* 79A04 800E0554 00431024 */ and $v0, $v0, $v1
/* 79A08 800E0558 14400007 */ bnez $v0, .L800E0578
/* 79A0C 800E055C 3C020200 */ lui $v0, 0x200
/* 79A10 800E0560 8CA30000 */ lw $v1, ($a1)
/* 79A14 800E0564 34422000 */ ori $v0, $v0, 0x2000
/* 79A18 800E0568 00621824 */ and $v1, $v1, $v0
/* 79A1C 800E056C 3C020200 */ lui $v0, 0x200
/* 79A20 800E0570 00621826 */ xor $v1, $v1, $v0
/* 79A24 800E0574 2C640001 */ sltiu $a0, $v1, 1
.L800E0578:
/* 79A28 800E0578 03E00008 */ jr $ra
/* 79A2C 800E057C 0080102D */ daddu $v0, $a0, $zero

View File

@ -1,22 +0,0 @@
.set noat # allow manual use of $at
.set noreorder # don't insert nops after branches
glabel func_800E0658
/* 79B08 800E0658 3C02800F */ lui $v0, %hi(gPlayerStatusPtr)
/* 79B0C 800E065C 8C427B30 */ lw $v0, %lo(gPlayerStatusPtr)($v0)
/* 79B10 800E0660 27BDFFE8 */ addiu $sp, $sp, -0x18
/* 79B14 800E0664 AFBF0010 */ sw $ra, 0x10($sp)
/* 79B18 800E0668 8C420004 */ lw $v0, 4($v0)
/* 79B1C 800E066C 30420020 */ andi $v0, $v0, 0x20
/* 79B20 800E0670 10400007 */ beqz $v0, .L800E0690
/* 79B24 800E0674 00000000 */ nop
/* 79B28 800E0678 3C028011 */ lui $v0, %hi(D_8010C940)
/* 79B2C 800E067C 8C42C940 */ lw $v0, %lo(D_8010C940)($v0)
/* 79B30 800E0680 10400003 */ beqz $v0, .L800E0690
/* 79B34 800E0684 00000000 */ nop
/* 79B38 800E0688 0C0ADC72 */ jal func_802B71C8
/* 79B3C 800E068C 00000000 */ nop
.L800E0690:
/* 79B40 800E0690 8FBF0010 */ lw $ra, 0x10($sp)
/* 79B44 800E0694 03E00008 */ jr $ra
/* 79B48 800E0698 27BD0018 */ addiu $sp, $sp, 0x18

View File

@ -1,13 +0,0 @@
.set noat # allow manual use of $at
.set noreorder # don't insert nops after branches
glabel func_800E069C
/* 79B4C 800E069C 3C02800F */ lui $v0, %hi(gPlayerStatusPtr)
/* 79B50 800E06A0 8C427B30 */ lw $v0, %lo(gPlayerStatusPtr)($v0)
/* 79B54 800E06A4 8C430004 */ lw $v1, 4($v0)
/* 79B58 800E06A8 2404FFDF */ addiu $a0, $zero, -0x21
/* 79B5C 800E06AC 3C018011 */ lui $at, %hi(D_8010C940)
/* 79B60 800E06B0 AC20C940 */ sw $zero, %lo(D_8010C940)($at)
/* 79B64 800E06B4 00641824 */ and $v1, $v1, $a0
/* 79B68 800E06B8 03E00008 */ jr $ra
/* 79B6C 800E06BC AC430004 */ sw $v1, 4($v0)

View File

@ -1,10 +0,0 @@
.set noat # allow manual use of $at
.set noreorder # don't insert nops after branches
glabel func_800E06C0
/* 79B70 800E06C0 38840001 */ xori $a0, $a0, 1
/* 79B74 800E06C4 2C840001 */ sltiu $a0, $a0, 1
/* 79B78 800E06C8 3C018011 */ lui $at, %hi(D_8010C950)
/* 79B7C 800E06CC AC24C950 */ sw $a0, %lo(D_8010C950)($at)
/* 79B80 800E06D0 03E00008 */ jr $ra
/* 79B84 800E06D4 00000000 */ nop

View File

@ -1,22 +0,0 @@
.set noat # allow manual use of $at
.set noreorder # don't insert nops after branches
glabel func_800E0AD0
/* 79F80 800E0AD0 3C02800F */ lui $v0, %hi(gPlayerStatusPtr)
/* 79F84 800E0AD4 8C427B30 */ lw $v0, %lo(gPlayerStatusPtr)($v0)
/* 79F88 800E0AD8 27BDFFE8 */ addiu $sp, $sp, -0x18
/* 79F8C 800E0ADC AFBF0010 */ sw $ra, 0x10($sp)
/* 79F90 800E0AE0 8C420004 */ lw $v0, 4($v0)
/* 79F94 800E0AE4 30420010 */ andi $v0, $v0, 0x10
/* 79F98 800E0AE8 10400007 */ beqz $v0, .L800E0B08
/* 79F9C 800E0AEC 00000000 */ nop
/* 79FA0 800E0AF0 3C028011 */ lui $v0, %hi(D_8010C958)
/* 79FA4 800E0AF4 8C42C958 */ lw $v0, %lo(D_8010C958)($v0)
/* 79FA8 800E0AF8 10400003 */ beqz $v0, .L800E0B08
/* 79FAC 800E0AFC 00000000 */ nop
/* 79FB0 800E0B00 0C0ADC7A */ jal func_802B71E8
/* 79FB4 800E0B04 00000000 */ nop
.L800E0B08:
/* 79FB8 800E0B08 8FBF0010 */ lw $ra, 0x10($sp)
/* 79FBC 800E0B0C 03E00008 */ jr $ra
/* 79FC0 800E0B10 27BD0018 */ addiu $sp, $sp, 0x18

View File

@ -1,13 +0,0 @@
.set noat # allow manual use of $at
.set noreorder # don't insert nops after branches
glabel func_800E0B14
/* 79FC4 800E0B14 3C02800F */ lui $v0, %hi(gPlayerStatusPtr)
/* 79FC8 800E0B18 8C427B30 */ lw $v0, %lo(gPlayerStatusPtr)($v0)
/* 79FCC 800E0B1C 8C430004 */ lw $v1, 4($v0)
/* 79FD0 800E0B20 2404FFEF */ addiu $a0, $zero, -0x11
/* 79FD4 800E0B24 3C018011 */ lui $at, %hi(D_8010C958)
/* 79FD8 800E0B28 AC20C958 */ sw $zero, %lo(D_8010C958)($at)
/* 79FDC 800E0B2C 00641824 */ and $v1, $v1, $a0
/* 79FE0 800E0B30 03E00008 */ jr $ra
/* 79FE4 800E0B34 AC430004 */ sw $v1, 4($v0)

View File

@ -1,12 +0,0 @@
.set noat # allow manual use of $at
.set noreorder # don't insert nops after branches
glabel func_800E22E4
/* 7B794 800E22E4 3C028011 */ lui $v0, %hi(gPlayerStatus)
/* 7B798 800E22E8 2442EFC8 */ addiu $v0, $v0, %lo(gPlayerStatus)
/* 7B79C 800E22EC 8C4300E0 */ lw $v1, 0xe0($v0)
/* 7B7A0 800E22F0 944200DE */ lhu $v0, 0xde($v0)
/* 7B7A4 800E22F4 00031C00 */ sll $v1, $v1, 0x10
/* 7B7A8 800E22F8 00431025 */ or $v0, $v0, $v1
/* 7B7AC 800E22FC 03E00008 */ jr $ra
/* 7B7B0 800E2300 AC820000 */ sw $v0, ($a0)

View File

@ -1467,13 +1467,13 @@ typedef struct PlayerStatus {
/* 0x0B6 */ u8 fallState;
/* 0x0B7 */ char unk_B7;
/* 0x0B8 */ s32 anim;
/* 0x0BC */ char unk_BC[2];
/* 0x0BC */ s16 unk_BC;
/* 0x0BE */ u8 renderMode;
/* 0x0BF */ s8 unk_BF;
/* 0x0C0 */ u32* decorationList;
/* 0x0C4 */ char unk_C4[2];
/* 0x0C6 */ s16 unk_C6;
/* 0x0C8 */ UNK_PTR unk_C8;
/* 0x0C8 */ s32* unk_C8;
/* 0x0CC */ s32 shadowID;
/* 0x0D0 */ char unk_D0[8];
/* 0x0D8 */ UNK_PTR** unk_D8;

View File

@ -80,6 +80,7 @@ void fx_walk_normal(s32 arg0, f32 arg1, f32 arg2, f32 arg3, s32 arg4, s32 arg5);
void fx_emote(s32, Npc*, f32, f32, f32, f32, f32, s32, s32*);
f32 func_800E0088(f32, f32);
void func_800E06C0(s32);
void func_800E97B8(void);
s32 func_800EB168(s32);

View File

@ -1,5 +1,11 @@
#include "common.h"
extern s32 D_8010C920;
extern s32 D_8010C93C;
extern s32 D_8010C940;
extern s32 D_8010C950;
extern s32 D_8010C958;
INCLUDE_ASM(s32, "code_759b0_len_61b0", func_800DC500);
INCLUDE_ASM(s32, "code_759b0_len_61b0", func_800DC778);
@ -66,15 +72,44 @@ INCLUDE_ASM(s32, "code_759b0_len_61b0", func_800DFCF4);
INCLUDE_ASM(s32, "code_759b0_len_61b0", func_800DFD48);
INCLUDE_ASM(s32, "code_759b0_len_61b0", func_800DFEFC);
void func_800DFEFC(void) {
PlayerStatus* playerStatus = PLAYER_STATUS;
s32 temp_v0 = func_800DFD48();
INCLUDE_ASM(s32, "code_759b0_len_61b0", func_800DFF50);
if (temp_v0 != -1) {
playerStatus->anim = temp_v0;
playerStatus->unk_BC = 0;
playerStatus->flags &= ~0x10000000;
}
}
INCLUDE_ASM(s32, "code_759b0_len_61b0", func_800DFF78);
void func_800DFF50(s32 arg0) {
PlayerStatus* playerStatus = PLAYER_STATUS;
playerStatus->anim = arg0;
playerStatus->unk_BC = 0;
playerStatus->flags &= ~0x10000000;
}
void func_800DFF78(void) {
PlayerStatus* playerStatus = PLAYER_STATUS;
s32 temp_v0 = func_800DFD48();
if (temp_v0 != -1) {
playerStatus->anim = temp_v0;
playerStatus->unk_BC = 0;
playerStatus->flags |= 0x10000000;
}
}
INCLUDE_ASM(s32, "code_759b0_len_61b0", func_800DFFCC);
INCLUDE_ASM(f32, "code_759b0_len_61b0", func_800E0088, f32 arg0, f32 arg1);
// dist_to_player2D
f32 func_800E0088(f32 x, f32 z) {
PlayerStatus* playerStatus = PLAYER_STATUS;
return dist2D(x, z, playerStatus->position.x, playerStatus->position.z);
}
void enable_player_shadow(void) {
get_shadow_by_index(D_8010F094)->flags &= ~1;
@ -120,41 +155,93 @@ s32 enable_player_input(void) {
return playerStatus->statusMenuCounterinputEnabledCounter;
}
INCLUDE_ASM(s32, "code_759b0_len_61b0", func_800E01DC);
void func_800E01DC(void) {
PlayerStatus* playerStatus = &gPlayerStatus;
if (playerStatus->animFlags & 0x10) {
playerStatus->flags |= 0x8000000;
}
}
INCLUDE_ASM(s32, "code_759b0_len_61b0", func_800E0208);
INCLUDE_ASM(s32, "code_759b0_len_61b0", func_800E0260);
void func_800E0260(void) {
func_800E0658();
func_800E0AD0();
func_800E04D0();
func_800E0330();
}
INCLUDE_ASM(s32, "code_759b0_len_61b0", func_800E0294);
INCLUDE_ASM(s32, "code_759b0_len_61b0", func_800E0330);
void func_800E0330(void) {
if ((gPlayerStatusPtr->animFlags & 0x100) && (D_8010C93C != 0)) {
func_802B7000();
}
}
INCLUDE_ASM(s32, "code_759b0_len_61b0", func_800E0374);
void func_800E0374(void) {
D_8010C93C = 0;
gPlayerStatusPtr->animFlags &= ~0x100;
}
INCLUDE_ASM(s32, "code_759b0_len_61b0", func_800E0398);
INCLUDE_ASM(s32, "code_759b0_len_61b0", func_800E04D0);
void func_800E04D0(void) {
if ((gPlayerStatusPtr->animFlags & 0x40) && (D_8010C920 != 0)) {
func_802B71D4();
}
}
INCLUDE_ASM(s32, "code_759b0_len_61b0", func_800E0514);
void func_800E0514(void) {
D_8010C920 = 0;
gPlayerStatusPtr->animFlags &= ~0x40;
}
INCLUDE_ASM(s32, "code_759b0_len_61b0", func_800E0538);
s32 func_800E0538(void) {
PlayerStatus* playerStatus = PLAYER_STATUS;
s32* unk_C8 = playerStatus->unk_C8;
s32 ret = 0;
s32 cond;
if (unk_C8 != NULL && !(*unk_C8 & 0x10000000)) {
cond = (playerStatus->flags & 0x2002000) == 0x2000000;
ret = cond;
}
return ret;
}
INCLUDE_ASM(s32, "code_759b0_len_61b0", func_800E0580);
INCLUDE_ASM(s32, "code_759b0_len_61b0", func_800E0658);
void func_800E0658(void) {
if ((gPlayerStatusPtr->animFlags & 0x20) && (D_8010C940 != 0)) {
func_802B71C8();
}
}
INCLUDE_ASM(s32, "code_759b0_len_61b0", func_800E069C);
void func_800E069C(void) {
D_8010C940 = 0;
gPlayerStatusPtr->animFlags &= ~0x20;
}
INCLUDE_ASM(s32, "code_759b0_len_61b0", func_800E06C0);
void func_800E06C0(s32 arg0) {
D_8010C950 = (arg0 == 1);
}
INCLUDE_ASM(s32, "code_759b0_len_61b0", func_800E06D8);
INCLUDE_ASM(s32, "code_759b0_len_61b0", func_800E0818);
INCLUDE_ASM(s32, "code_759b0_len_61b0", func_800E0AD0);
void func_800E0AD0(void) {
if ((gPlayerStatusPtr->animFlags & 0x10) && (D_8010C958 != 0)) {
func_802B71E8();
}
}
INCLUDE_ASM(s32, "code_759b0_len_61b0", func_800E0B14);
void func_800E0B14(void) {
D_8010C958 = 0;
gPlayerStatusPtr->animFlags &= ~0x10;
}
INCLUDE_ASM(s32, "code_759b0_len_61b0", func_800E0B38);
@ -180,7 +267,11 @@ INCLUDE_ASM(s32, "code_759b0_len_61b0", update_player_input);
INCLUDE_ASM(s32, "code_759b0_len_61b0", func_800E205C);
INCLUDE_ASM(s32, "code_759b0_len_61b0", func_800E22E4);
void func_800E22E4(s32* arg0) {
PlayerStatus* playerStatus = PLAYER_STATUS;
*arg0 = (u16)playerStatus->currentButtons | (playerStatus->pressedButtons << 16);
}
INCLUDE_ASM(s32, "code_759b0_len_61b0", input_to_move_vector);