papermario/ver/us/asm/nonmatchings/190B20/btl_update_ko_status.s
Ethan Roseman 647db26552
Mass function rename from Star Rod + a couple funcs (#298)
* .

* yaml update

* git subrepo pull --force tools/splat

subrepo:
  subdir:   "tools/splat"
  merged:   "cd690f725d"
upstream:
  origin:   "https://github.com/ethteck/splat.git"
  branch:   "master"
  commit:   "cd690f725d"
git-subrepo:
  version:  "0.4.3"
  origin:   "https://github.com/ingydotnet/git-subrepo"
  commit:   "2f68596"

* separate main bss syms

* renames and one match

* SR symbol rename

* fix symbol_addrs

* git subrepo pull tools/splat

subrepo:
  subdir:   "tools/splat"
  merged:   "5fa8aa24ca"
upstream:
  origin:   "https://github.com/ethteck/splat.git"
  branch:   "master"
  commit:   "5fa8aa24ca"
git-subrepo:
  version:  "0.4.3"
  origin:   "https://github.com/ingydotnet/git-subrepo"
  commit:   "2f68596"

* remove old artifacts
2021-06-30 11:27:12 +09:00

75 lines
3.8 KiB
ArmAsm

.set noat # allow manual use of $at
.set noreorder # don't insert nops after branches
glabel btl_update_ko_status
/* 19605C 8026777C 27BDFFE0 */ addiu $sp, $sp, -0x20
/* 196060 80267780 AFB10014 */ sw $s1, 0x14($sp)
/* 196064 80267784 3C11800E */ lui $s1, %hi(gBattleStatus)
/* 196068 80267788 2631C070 */ addiu $s1, $s1, %lo(gBattleStatus)
/* 19606C 8026778C AFBF0018 */ sw $ra, 0x18($sp)
/* 196070 80267790 AFB00010 */ sw $s0, 0x10($sp)
/* 196074 80267794 8E2400D8 */ lw $a0, 0xd8($s1)
/* 196078 80267798 8E3000DC */ lw $s0, 0xdc($s1)
/* 19607C 8026779C 90820211 */ lbu $v0, 0x211($a0)
/* 196080 802677A0 80850217 */ lb $a1, 0x217($a0)
/* 196084 802677A4 A0820217 */ sb $v0, 0x217($a0)
/* 196088 802677A8 00021600 */ sll $v0, $v0, 0x18
/* 19608C 802677AC 18400009 */ blez $v0, .L802677D4
/* 196090 802677B0 2402000D */ addiu $v0, $zero, 0xd
/* 196094 802677B4 8C830440 */ lw $v1, 0x440($a0)
/* 196098 802677B8 A0820216 */ sb $v0, 0x216($a0)
/* 19609C 802677BC 80820217 */ lb $v0, 0x217($a0)
/* 1960A0 802677C0 8C63000C */ lw $v1, 0xc($v1)
/* 1960A4 802677C4 14A00003 */ bnez $a1, .L802677D4
/* 1960A8 802677C8 AC62003C */ sw $v0, 0x3c($v1)
/* 1960AC 802677CC 0C05272D */ jal sfx_play_sound
/* 1960B0 802677D0 24042107 */ addiu $a0, $zero, 0x2107
.L802677D4:
/* 1960B4 802677D4 12000012 */ beqz $s0, .L80267820
/* 1960B8 802677D8 0000302D */ daddu $a2, $zero, $zero
/* 1960BC 802677DC 82020217 */ lb $v0, 0x217($s0)
/* 1960C0 802677E0 82030211 */ lb $v1, 0x211($s0)
/* 1960C4 802677E4 0043102A */ slt $v0, $v0, $v1
/* 1960C8 802677E8 10400004 */ beqz $v0, .L802677FC
/* 1960CC 802677EC 2402000D */ addiu $v0, $zero, 0xd
/* 1960D0 802677F0 92030211 */ lbu $v1, 0x211($s0)
/* 1960D4 802677F4 A2020216 */ sb $v0, 0x216($s0)
/* 1960D8 802677F8 A2030217 */ sb $v1, 0x217($s0)
.L802677FC:
/* 1960DC 802677FC 82020217 */ lb $v0, 0x217($s0)
/* 1960E0 80267800 18400006 */ blez $v0, .L8026781C
/* 1960E4 80267804 2402000D */ addiu $v0, $zero, 0xd
/* 1960E8 80267808 8E030440 */ lw $v1, 0x440($s0)
/* 1960EC 8026780C A2020216 */ sb $v0, 0x216($s0)
/* 1960F0 80267810 82020217 */ lb $v0, 0x217($s0)
/* 1960F4 80267814 8C63000C */ lw $v1, 0xc($v1)
/* 1960F8 80267818 AC62003C */ sw $v0, 0x3c($v1)
.L8026781C:
/* 1960FC 8026781C 0000302D */ daddu $a2, $zero, $zero
.L80267820:
/* 196100 80267820 2407000D */ addiu $a3, $zero, 0xd
/* 196104 80267824 0220282D */ daddu $a1, $s1, $zero
.L80267828:
/* 196108 80267828 8CA400E0 */ lw $a0, 0xe0($a1)
/* 19610C 8026782C 1080000B */ beqz $a0, .L8026785C
/* 196110 80267830 24C60001 */ addiu $a2, $a2, 1
/* 196114 80267834 90820211 */ lbu $v0, 0x211($a0)
/* 196118 80267838 A0820217 */ sb $v0, 0x217($a0)
/* 19611C 8026783C 00021600 */ sll $v0, $v0, 0x18
/* 196120 80267840 18400006 */ blez $v0, .L8026785C
/* 196124 80267844 00000000 */ nop
/* 196128 80267848 8C820440 */ lw $v0, 0x440($a0)
/* 19612C 8026784C A0870216 */ sb $a3, 0x216($a0)
/* 196130 80267850 8C43000C */ lw $v1, 0xc($v0)
/* 196134 80267854 80820217 */ lb $v0, 0x217($a0)
/* 196138 80267858 AC62003C */ sw $v0, 0x3c($v1)
.L8026785C:
/* 19613C 8026785C 28C20018 */ slti $v0, $a2, 0x18
/* 196140 80267860 1440FFF1 */ bnez $v0, .L80267828
/* 196144 80267864 24A50004 */ addiu $a1, $a1, 4
/* 196148 80267868 8FBF0018 */ lw $ra, 0x18($sp)
/* 19614C 8026786C 8FB10014 */ lw $s1, 0x14($sp)
/* 196150 80267870 8FB00010 */ lw $s0, 0x10($sp)
/* 196154 80267874 03E00008 */ jr $ra
/* 196158 80267878 27BD0020 */ addiu $sp, $sp, 0x20