Misc branch (#205)

* decomp some functions in code_182B30.c

* run coverage.py

* remove blank line
This commit is contained in:
Rainchus 2021-03-11 02:19:19 -06:00 committed by GitHub
parent 0552ce26d5
commit a7c90175bf
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
20 changed files with 110 additions and 301 deletions

View File

@ -1187,7 +1187,8 @@ typedef struct CollisionStatus {
} CollisionStatus; // size = 0x28
typedef struct DecorationTable {
/* 0x000 */ char unk_00[2012];
/* 0x000 */ char unk_00[2011];
/* 0x7DB */ s8 unk_7DB;
/* 0x7DC */ s16 scale[16];
/* 0x7FC */ s16 posX[16];
/* 0x81C */ s16 posY[16];

View File

@ -1,8 +1,29 @@
#include "common.h"
INCLUDE_ASM(s32, "code_182B30", func_80254250);
s32 func_80254250(void) {
s32 ret;
INCLUDE_ASM(s32, "code_182B30", mtx_mirror_y);
if (gBattleStatus.lastAttackDamage < 3) {
ret = 0;
} else if (gBattleStatus.lastAttackDamage < 5) {
ret = 1;
} else if (gBattleStatus.lastAttackDamage < 9) {
ret = 2;
} else {
ret = 3;
}
return ret;
}
void mtx_mirror_y(Matrix4f arg0) {
guMtxIdentF(arg0);
(arg0)[0][0] = 1.0f;
(arg0)[1][1] = -1.0f;
(arg0)[2][2] = 1.0f;
(arg0)[3][3] = 1.0f;
}
INCLUDE_ASM(s32, "code_182B30", enable_actor_blur);
@ -10,7 +31,16 @@ INCLUDE_ASM(s32, "code_182B30", disable_actor_blur);
INCLUDE_ASM(s32, "code_182B30", reset_actor_blur);
INCLUDE_ASM(s32, "code_182B30", func_80254610);
void func_80254610(Actor* actor) {
ActorPart* actorPart = actor->partsTable;
if (actorPart->idleAnimations != NULL && !(actorPart->flags & 2)) {
DecorationTable* decorationTable = actorPart->decorationTable;
decorationTable->unk_7DB = 0;
decorationTable->effectType = 20;
}
}
INCLUDE_ASM(s32, "code_182B30", enable_partner_blur);
@ -18,17 +48,51 @@ INCLUDE_ASM(s32, "code_182B30", disable_partner_blur);
INCLUDE_ASM(s32, "code_182B30", reset_partner_blur);
INCLUDE_ASM(s32, "code_182B30", func_802546B0);
void func_802546B0(void) {
func_80254610(gBattleStatus.partnerActor);
}
INCLUDE_ASM(s32, "code_182B30", enable_player_blur);
INCLUDE_ASM(s32, "code_182B30", disable_player_blur);
void disable_player_blur(void) {
DecorationTable* decorationTable = gBattleStatus.playerActor->partsTable->decorationTable;
if (decorationTable->unk_7DB != 0) {
decorationTable->unk_7DB--;
if (decorationTable->unk_7DB == 0) {
decorationTable->effectType = 20;
}
}
}
INCLUDE_ASM(s32, "code_182B30", func_80254950);
void func_80254950(void) {
Actor* playerActor = gBattleStatus.playerActor;
DecorationTable* decorationTable = playerActor->partsTable->decorationTable;
if (decorationTable->unk_7DB != 0) {
decorationTable->unk_7DB--;
if (decorationTable->unk_7DB == 0) {
playerActor->flags &= ~0x10000000;
decorationTable->effectType = 1;
}
}
}
INCLUDE_ASM(s32, "code_182B30", func_802549A0);
void func_802549A0(void) {
DecorationTable* decorationTable = gBattleStatus.playerActor->partsTable->decorationTable;
decorationTable->unk_7DB = 0;
decorationTable->effectType = 20;
}
INCLUDE_ASM(s32, "code_182B30", func_802549C0);
void func_802549C0(void) {
Actor* playerActor = gBattleStatus.playerActor;
DecorationTable* decorationTable = playerActor->partsTable->decorationTable;
playerActor->flags &= ~0x10000000;
decorationTable->unk_7DB = 0;
decorationTable->effectType = 1;
}
INCLUDE_ASM(s32, "code_182B30", func_802549F4);
@ -38,19 +102,37 @@ INCLUDE_ASM(s32, "code_182B30", func_802550BC);
INCLUDE_ASM(s32, "code_182B30", func_802552EC);
INCLUDE_ASM(s32, "code_182B30", func_8025593C);
void func_8025593C(s32 arg0) {
func_802550BC(0, arg0);
}
INCLUDE_ASM(s32, "code_182B30", func_8025595C);
void func_8025595C(s32 arg0) {
func_802552EC(0, arg0);
}
INCLUDE_ASM(s32, "code_182B30", func_8025597C);
void func_8025597C(s32 arg0) {
func_802550BC(1, arg0);
}
INCLUDE_ASM(s32, "code_182B30", func_8025599C);
void func_8025599C(s32 arg0) {
func_802552EC(1, arg0);
}
INCLUDE_ASM(s32, "code_182B30", update_actor_shadow);
INCLUDE_ASM(s32, "code_182B30", update_enemy_shadows);
s32 update_enemy_shadows(void) {
BattleStatus* battleStatus = &gBattleStatus;
s32 i;
INCLUDE_ASM(s32, "code_182B30", update_hero_shadows);
for (i = 0; i < ARRAY_COUNT(battleStatus->enemyActors); i++) {
update_actor_shadow(0, battleStatus->enemyActors[i]);
}
}
void update_hero_shadows(void) {
update_actor_shadow(1, gBattleStatus.partnerActor);
update_player_actor_shadow();
}
void func_80255FD8(void) {
}
@ -59,13 +141,21 @@ INCLUDE_ASM(s32, "code_182B30", func_80255FE0);
INCLUDE_ASM(s32, "code_182B30", func_802571F0);
INCLUDE_ASM(s32, "code_182B30", func_80257B28);
void func_80257B28(s32 arg0) {
func_80255FE0(0, arg0);
}
INCLUDE_ASM(s32, "code_182B30", func_80257B48);
void func_80257B48(s32 arg0) {
func_80255FE0(1, arg0);
}
INCLUDE_ASM(s32, "code_182B30", func_80257B68);
void func_80257B68(s32 arg0) {
func_802571F0(0, arg0);
}
INCLUDE_ASM(s32, "code_182B30", func_80257B88);
void func_80257B88(void) {
func_802571F0(1, gBattleStatus.partnerActor);
}
INCLUDE_ASM(s32, "code_182B30", update_player_actor_shadow);

View File

@ -1,20 +0,0 @@
.set noat # allow manual use of $at
.set noreorder # don't insert nops after branches
glabel disable_player_blur
/* 1831F4 80254914 3C02800E */ lui $v0, %hi(gBattleStatus+0xD8)
/* 1831F8 80254918 8C42C148 */ lw $v0, %lo(gBattleStatus+0xD8)($v0)
/* 1831FC 8025491C 8C4201F4 */ lw $v0, 0x1f4($v0)
/* 183200 80254920 8C4400C0 */ lw $a0, 0xc0($v0)
/* 183204 80254924 808207DB */ lb $v0, 0x7db($a0)
/* 183208 80254928 908307DB */ lbu $v1, 0x7db($a0)
/* 18320C 8025492C 10400006 */ beqz $v0, .L80254948
/* 183210 80254930 2462FFFF */ addiu $v0, $v1, -1
/* 183214 80254934 A08207DB */ sb $v0, 0x7db($a0)
/* 183218 80254938 00021600 */ sll $v0, $v0, 0x18
/* 18321C 8025493C 14400002 */ bnez $v0, .L80254948
/* 183220 80254940 24020014 */ addiu $v0, $zero, 0x14
/* 183224 80254944 A08208AC */ sb $v0, 0x8ac($a0)
.L80254948:
/* 183228 80254948 03E00008 */ jr $ra
/* 18322C 8025494C 00000000 */ nop

View File

@ -1,19 +0,0 @@
.set noat # allow manual use of $at
.set noreorder # don't insert nops after branches
glabel func_80254250
/* 182B30 80254250 3C03800E */ lui $v1, %hi(gBattleStatus+0x180)
/* 182B34 80254254 8463C1F0 */ lh $v1, %lo(gBattleStatus+0x180)($v1)
/* 182B38 80254258 28620003 */ slti $v0, $v1, 3
/* 182B3C 8025425C 14400008 */ bnez $v0, .L80254280
/* 182B40 80254260 0000202D */ daddu $a0, $zero, $zero
/* 182B44 80254264 28620005 */ slti $v0, $v1, 5
/* 182B48 80254268 14400005 */ bnez $v0, .L80254280
/* 182B4C 8025426C 24040001 */ addiu $a0, $zero, 1
/* 182B50 80254270 28620009 */ slti $v0, $v1, 9
/* 182B54 80254274 10400002 */ beqz $v0, .L80254280
/* 182B58 80254278 24040003 */ addiu $a0, $zero, 3
/* 182B5C 8025427C 24040002 */ addiu $a0, $zero, 2
.L80254280:
/* 182B60 80254280 03E00008 */ jr $ra
/* 182B64 80254284 0080102D */ daddu $v0, $a0, $zero

View File

@ -1,18 +0,0 @@
.set noat # allow manual use of $at
.set noreorder # don't insert nops after branches
glabel func_80254610
/* 182EF0 80254610 8C8301F4 */ lw $v1, 0x1f4($a0)
/* 182EF4 80254614 8C620094 */ lw $v0, 0x94($v1)
/* 182EF8 80254618 10400008 */ beqz $v0, .L8025463C
/* 182EFC 8025461C 00000000 */ nop
/* 182F00 80254620 8C620000 */ lw $v0, ($v1)
/* 182F04 80254624 30420002 */ andi $v0, $v0, 2
/* 182F08 80254628 14400004 */ bnez $v0, .L8025463C
/* 182F0C 8025462C 24020014 */ addiu $v0, $zero, 0x14
/* 182F10 80254630 8C6300C0 */ lw $v1, 0xc0($v1)
/* 182F14 80254634 A06007DB */ sb $zero, 0x7db($v1)
/* 182F18 80254638 A06208AC */ sb $v0, 0x8ac($v1)
.L8025463C:
/* 182F1C 8025463C 03E00008 */ jr $ra
/* 182F20 80254640 00000000 */ nop

View File

@ -1,13 +0,0 @@
.set noat # allow manual use of $at
.set noreorder # don't insert nops after branches
glabel func_802546B0
/* 182F90 802546B0 3C04800E */ lui $a0, %hi(gBattleStatus+0xDC)
/* 182F94 802546B4 8C84C14C */ lw $a0, %lo(gBattleStatus+0xDC)($a0)
/* 182F98 802546B8 27BDFFE8 */ addiu $sp, $sp, -0x18
/* 182F9C 802546BC AFBF0010 */ sw $ra, 0x10($sp)
/* 182FA0 802546C0 0C095184 */ jal func_80254610
/* 182FA4 802546C4 00000000 */ nop
/* 182FA8 802546C8 8FBF0010 */ lw $ra, 0x10($sp)
/* 182FAC 802546CC 03E00008 */ jr $ra
/* 182FB0 802546D0 27BD0018 */ addiu $sp, $sp, 0x18

View File

@ -1,25 +0,0 @@
.set noat # allow manual use of $at
.set noreorder # don't insert nops after branches
glabel func_80254950
/* 183230 80254950 3C04800E */ lui $a0, %hi(gBattleStatus+0xD8)
/* 183234 80254954 8C84C148 */ lw $a0, %lo(gBattleStatus+0xD8)($a0)
/* 183238 80254958 8C8201F4 */ lw $v0, 0x1f4($a0)
/* 18323C 8025495C 8C4500C0 */ lw $a1, 0xc0($v0)
/* 183240 80254960 80A207DB */ lb $v0, 0x7db($a1)
/* 183244 80254964 90A307DB */ lbu $v1, 0x7db($a1)
/* 183248 80254968 1040000B */ beqz $v0, .L80254998
/* 18324C 8025496C 2462FFFF */ addiu $v0, $v1, -1
/* 183250 80254970 A0A207DB */ sb $v0, 0x7db($a1)
/* 183254 80254974 00021600 */ sll $v0, $v0, 0x18
/* 183258 80254978 14400007 */ bnez $v0, .L80254998
/* 18325C 8025497C 3C02EFFF */ lui $v0, 0xefff
/* 183260 80254980 8C830000 */ lw $v1, ($a0)
/* 183264 80254984 3442FFFF */ ori $v0, $v0, 0xffff
/* 183268 80254988 00621824 */ and $v1, $v1, $v0
/* 18326C 8025498C 24020001 */ addiu $v0, $zero, 1
/* 183270 80254990 AC830000 */ sw $v1, ($a0)
/* 183274 80254994 A0A208AC */ sb $v0, 0x8ac($a1)
.L80254998:
/* 183278 80254998 03E00008 */ jr $ra
/* 18327C 8025499C 00000000 */ nop

View File

@ -1,12 +0,0 @@
.set noat # allow manual use of $at
.set noreorder # don't insert nops after branches
glabel func_802549A0
/* 183280 802549A0 3C02800E */ lui $v0, %hi(gBattleStatus+0xD8)
/* 183284 802549A4 8C42C148 */ lw $v0, %lo(gBattleStatus+0xD8)($v0)
/* 183288 802549A8 8C4201F4 */ lw $v0, 0x1f4($v0)
/* 18328C 802549AC 8C4300C0 */ lw $v1, 0xc0($v0)
/* 183290 802549B0 24020014 */ addiu $v0, $zero, 0x14
/* 183294 802549B4 A06007DB */ sb $zero, 0x7db($v1)
/* 183298 802549B8 03E00008 */ jr $ra
/* 18329C 802549BC A06208AC */ sb $v0, 0x8ac($v1)

View File

@ -1,17 +0,0 @@
.set noat # allow manual use of $at
.set noreorder # don't insert nops after branches
glabel func_802549C0
/* 1832A0 802549C0 3C05EFFF */ lui $a1, 0xefff
/* 1832A4 802549C4 3C03800E */ lui $v1, %hi(gBattleStatus+0xD8)
/* 1832A8 802549C8 8C63C148 */ lw $v1, %lo(gBattleStatus+0xD8)($v1)
/* 1832AC 802549CC 34A5FFFF */ ori $a1, $a1, 0xffff
/* 1832B0 802549D0 8C6401F4 */ lw $a0, 0x1f4($v1)
/* 1832B4 802549D4 8C620000 */ lw $v0, ($v1)
/* 1832B8 802549D8 8C8400C0 */ lw $a0, 0xc0($a0)
/* 1832BC 802549DC 00451024 */ and $v0, $v0, $a1
/* 1832C0 802549E0 AC620000 */ sw $v0, ($v1)
/* 1832C4 802549E4 24020001 */ addiu $v0, $zero, 1
/* 1832C8 802549E8 A08007DB */ sb $zero, 0x7db($a0)
/* 1832CC 802549EC 03E00008 */ jr $ra
/* 1832D0 802549F0 A08208AC */ sb $v0, 0x8ac($a0)

View File

@ -1,12 +0,0 @@
.set noat # allow manual use of $at
.set noreorder # don't insert nops after branches
glabel func_8025593C
/* 18421C 8025593C 27BDFFE8 */ addiu $sp, $sp, -0x18
/* 184220 80255940 0080282D */ daddu $a1, $a0, $zero
/* 184224 80255944 AFBF0010 */ sw $ra, 0x10($sp)
/* 184228 80255948 0C09542F */ jal func_802550BC
/* 18422C 8025594C 0000202D */ daddu $a0, $zero, $zero
/* 184230 80255950 8FBF0010 */ lw $ra, 0x10($sp)
/* 184234 80255954 03E00008 */ jr $ra
/* 184238 80255958 27BD0018 */ addiu $sp, $sp, 0x18

View File

@ -1,12 +0,0 @@
.set noat # allow manual use of $at
.set noreorder # don't insert nops after branches
glabel func_8025595C
/* 18423C 8025595C 27BDFFE8 */ addiu $sp, $sp, -0x18
/* 184240 80255960 0080282D */ daddu $a1, $a0, $zero
/* 184244 80255964 AFBF0010 */ sw $ra, 0x10($sp)
/* 184248 80255968 0C0954BB */ jal func_802552EC
/* 18424C 8025596C 0000202D */ daddu $a0, $zero, $zero
/* 184250 80255970 8FBF0010 */ lw $ra, 0x10($sp)
/* 184254 80255974 03E00008 */ jr $ra
/* 184258 80255978 27BD0018 */ addiu $sp, $sp, 0x18

View File

@ -1,12 +0,0 @@
.set noat # allow manual use of $at
.set noreorder # don't insert nops after branches
glabel func_8025597C
/* 18425C 8025597C 27BDFFE8 */ addiu $sp, $sp, -0x18
/* 184260 80255980 0080282D */ daddu $a1, $a0, $zero
/* 184264 80255984 AFBF0010 */ sw $ra, 0x10($sp)
/* 184268 80255988 0C09542F */ jal func_802550BC
/* 18426C 8025598C 24040001 */ addiu $a0, $zero, 1
/* 184270 80255990 8FBF0010 */ lw $ra, 0x10($sp)
/* 184274 80255994 03E00008 */ jr $ra
/* 184278 80255998 27BD0018 */ addiu $sp, $sp, 0x18

View File

@ -1,12 +0,0 @@
.set noat # allow manual use of $at
.set noreorder # don't insert nops after branches
glabel func_8025599C
/* 18427C 8025599C 27BDFFE8 */ addiu $sp, $sp, -0x18
/* 184280 802559A0 0080282D */ daddu $a1, $a0, $zero
/* 184284 802559A4 AFBF0010 */ sw $ra, 0x10($sp)
/* 184288 802559A8 0C0954BB */ jal func_802552EC
/* 18428C 802559AC 24040001 */ addiu $a0, $zero, 1
/* 184290 802559B0 8FBF0010 */ lw $ra, 0x10($sp)
/* 184294 802559B4 03E00008 */ jr $ra
/* 184298 802559B8 27BD0018 */ addiu $sp, $sp, 0x18

View File

@ -1,12 +0,0 @@
.set noat # allow manual use of $at
.set noreorder # don't insert nops after branches
glabel func_80257B28
/* 186408 80257B28 27BDFFE8 */ addiu $sp, $sp, -0x18
/* 18640C 80257B2C 0080282D */ daddu $a1, $a0, $zero
/* 186410 80257B30 AFBF0010 */ sw $ra, 0x10($sp)
/* 186414 80257B34 0C0957F8 */ jal func_80255FE0
/* 186418 80257B38 0000202D */ daddu $a0, $zero, $zero
/* 18641C 80257B3C 8FBF0010 */ lw $ra, 0x10($sp)
/* 186420 80257B40 03E00008 */ jr $ra
/* 186424 80257B44 27BD0018 */ addiu $sp, $sp, 0x18

View File

@ -1,12 +0,0 @@
.set noat # allow manual use of $at
.set noreorder # don't insert nops after branches
glabel func_80257B48
/* 186428 80257B48 27BDFFE8 */ addiu $sp, $sp, -0x18
/* 18642C 80257B4C 0080282D */ daddu $a1, $a0, $zero
/* 186430 80257B50 AFBF0010 */ sw $ra, 0x10($sp)
/* 186434 80257B54 0C0957F8 */ jal func_80255FE0
/* 186438 80257B58 24040001 */ addiu $a0, $zero, 1
/* 18643C 80257B5C 8FBF0010 */ lw $ra, 0x10($sp)
/* 186440 80257B60 03E00008 */ jr $ra
/* 186444 80257B64 27BD0018 */ addiu $sp, $sp, 0x18

View File

@ -1,12 +0,0 @@
.set noat # allow manual use of $at
.set noreorder # don't insert nops after branches
glabel func_80257B68
/* 186448 80257B68 27BDFFE8 */ addiu $sp, $sp, -0x18
/* 18644C 80257B6C 0080282D */ daddu $a1, $a0, $zero
/* 186450 80257B70 AFBF0010 */ sw $ra, 0x10($sp)
/* 186454 80257B74 0C095C7C */ jal func_802571F0
/* 186458 80257B78 0000202D */ daddu $a0, $zero, $zero
/* 18645C 80257B7C 8FBF0010 */ lw $ra, 0x10($sp)
/* 186460 80257B80 03E00008 */ jr $ra
/* 186464 80257B84 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_80257B88
/* 186468 80257B88 27BDFFE8 */ addiu $sp, $sp, -0x18
/* 18646C 80257B8C 3C05800E */ lui $a1, %hi(gBattleStatus+0xDC)
/* 186470 80257B90 8CA5C14C */ lw $a1, %lo(gBattleStatus+0xDC)($a1)
/* 186474 80257B94 AFBF0010 */ sw $ra, 0x10($sp)
/* 186478 80257B98 0C095C7C */ jal func_802571F0
/* 18647C 80257B9C 24040001 */ addiu $a0, $zero, 1
/* 186480 80257BA0 8FBF0010 */ lw $ra, 0x10($sp)
/* 186484 80257BA4 03E00008 */ jr $ra
/* 186488 80257BA8 27BD0018 */ addiu $sp, $sp, 0x18

View File

@ -1,21 +0,0 @@
.set noat # allow manual use of $at
.set noreorder # don't insert nops after branches
glabel mtx_mirror_y
/* 182B68 80254288 27BDFFE8 */ addiu $sp, $sp, -0x18
/* 182B6C 8025428C AFB00010 */ sw $s0, 0x10($sp)
/* 182B70 80254290 AFBF0014 */ sw $ra, 0x14($sp)
/* 182B74 80254294 0C019D28 */ jal guMtxIdentF
/* 182B78 80254298 0080802D */ daddu $s0, $a0, $zero
/* 182B7C 8025429C 3C013F80 */ lui $at, 0x3f80
/* 182B80 802542A0 44810000 */ mtc1 $at, $f0
/* 182B84 802542A4 3C01BF80 */ lui $at, 0xbf80
/* 182B88 802542A8 44811000 */ mtc1 $at, $f2
/* 182B8C 802542AC E6000000 */ swc1 $f0, ($s0)
/* 182B90 802542B0 E6020014 */ swc1 $f2, 0x14($s0)
/* 182B94 802542B4 E6000028 */ swc1 $f0, 0x28($s0)
/* 182B98 802542B8 E600003C */ swc1 $f0, 0x3c($s0)
/* 182B9C 802542BC 8FBF0014 */ lw $ra, 0x14($sp)
/* 182BA0 802542C0 8FB00010 */ lw $s0, 0x10($sp)
/* 182BA4 802542C4 03E00008 */ jr $ra
/* 182BA8 802542C8 27BD0018 */ addiu $sp, $sp, 0x18

View File

@ -1,25 +0,0 @@
.set noat # allow manual use of $at
.set noreorder # don't insert nops after branches
glabel update_enemy_shadows
/* 18483C 80255F5C 27BDFFE0 */ addiu $sp, $sp, -0x20
/* 184840 80255F60 AFB10014 */ sw $s1, 0x14($sp)
/* 184844 80255F64 0000882D */ daddu $s1, $zero, $zero
/* 184848 80255F68 AFB00010 */ sw $s0, 0x10($sp)
/* 18484C 80255F6C 3C10800E */ lui $s0, %hi(gBattleStatus)
/* 184850 80255F70 2610C070 */ addiu $s0, $s0, %lo(gBattleStatus)
/* 184854 80255F74 AFBF0018 */ sw $ra, 0x18($sp)
.L80255F78:
/* 184858 80255F78 8E0500E0 */ lw $a1, 0xe0($s0)
/* 18485C 80255F7C 26100004 */ addiu $s0, $s0, 4
/* 184860 80255F80 26310001 */ addiu $s1, $s1, 1
/* 184864 80255F84 0C09566F */ jal update_actor_shadow
/* 184868 80255F88 0000202D */ daddu $a0, $zero, $zero
/* 18486C 80255F8C 2A220018 */ slti $v0, $s1, 0x18
/* 184870 80255F90 1440FFF9 */ bnez $v0, .L80255F78
/* 184874 80255F94 00000000 */ nop
/* 184878 80255F98 8FBF0018 */ lw $ra, 0x18($sp)
/* 18487C 80255F9C 8FB10014 */ lw $s1, 0x14($sp)
/* 184880 80255FA0 8FB00010 */ lw $s0, 0x10($sp)
/* 184884 80255FA4 03E00008 */ jr $ra
/* 184888 80255FA8 27BD0020 */ addiu $sp, $sp, 0x20

View File

@ -1,15 +0,0 @@
.set noat # allow manual use of $at
.set noreorder # don't insert nops after branches
glabel update_hero_shadows
/* 18488C 80255FAC 27BDFFE8 */ addiu $sp, $sp, -0x18
/* 184890 80255FB0 3C05800E */ lui $a1, %hi(gBattleStatus+0xDC)
/* 184894 80255FB4 8CA5C14C */ lw $a1, %lo(gBattleStatus+0xDC)($a1)
/* 184898 80255FB8 AFBF0010 */ sw $ra, 0x10($sp)
/* 18489C 80255FBC 0C09566F */ jal update_actor_shadow
/* 1848A0 80255FC0 24040001 */ addiu $a0, $zero, 1
/* 1848A4 80255FC4 0C095EEB */ jal update_player_actor_shadow
/* 1848A8 80255FC8 00000000 */ nop
/* 1848AC 80255FCC 8FBF0010 */ lw $ra, 0x10($sp)
/* 1848B0 80255FD0 03E00008 */ jr $ra
/* 1848B4 80255FD4 27BD0018 */ addiu $sp, $sp, 0x18