papermario/ver/jp/asm/nonmatchings/main_3CCD0/func_80061A94.s
Ethan Roseman 698cf99458
jp cod (Created the first segment's c files for jp) (#194)
* jp cod

* just have less code and it works

* oops

* removing splat cause subrepo is being dumb

* git subrepo clone https://github.com/ethteck/splat.git tools/splat

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

* move jp stuff + revert configure

* git subrepo pull tools/splat

subrepo:
  subdir:   "tools/splat"
  merged:   "c56195a9c5"
upstream:
  origin:   "https://github.com/ethteck/splat.git"
  branch:   "master"
  commit:   "c56195a9c5"
git-subrepo:
  version:  "0.4.3"
  origin:   "https://github.com/ingydotnet/git-subrepo"
  commit:   "2f68596"
2021-02-27 00:36:33 +09:00

55 lines
2.7 KiB
ArmAsm

.set noat # allow manual use of $at
.set noreorder # don't insert nops after branches
glabel func_80061A94
/* 3CE94 80061A94 27BDFFF0 */ addiu $sp, $sp, -0x10
/* 3CE98 80061A98 3C07800B */ lui $a3, %hi(D_800B0EB0)
/* 3CE9C 80061A9C 24E70EB0 */ addiu $a3, $a3, %lo(D_800B0EB0)
/* 3CEA0 80061AA0 2406000E */ addiu $a2, $zero, 0xe
/* 3CEA4 80061AA4 24E20038 */ addiu $v0, $a3, 0x38
.L80061AA8:
/* 3CEA8 80061AA8 AC400000 */ sw $zero, ($v0)
/* 3CEAC 80061AAC 24C6FFFF */ addiu $a2, $a2, -1
/* 3CEB0 80061AB0 04C1FFFD */ bgez $a2, .L80061AA8
/* 3CEB4 80061AB4 2442FFFC */ addiu $v0, $v0, -4
/* 3CEB8 80061AB8 24020001 */ addiu $v0, $zero, 1
/* 3CEBC 80061ABC 3C04800A */ lui $a0, %hi(D_8009A5E6)
/* 3CEC0 80061AC0 9084A5E6 */ lbu $a0, %lo(D_8009A5E6)($a0)
/* 3CEC4 80061AC4 00003021 */ addu $a2, $zero, $zero
/* 3CEC8 80061AC8 3C01800B */ lui $at, %hi(D_800B0EEC)
/* 3CECC 80061ACC AC220EEC */ sw $v0, %lo(D_800B0EEC)($at)
/* 3CED0 80061AD0 240200FF */ addiu $v0, $zero, 0xff
/* 3CED4 80061AD4 24030001 */ addiu $v1, $zero, 1
/* 3CED8 80061AD8 A3A20000 */ sb $v0, ($sp)
/* 3CEDC 80061ADC 24020004 */ addiu $v0, $zero, 4
/* 3CEE0 80061AE0 A3A20002 */ sb $v0, 2($sp)
/* 3CEE4 80061AE4 3402FFFF */ ori $v0, $zero, 0xffff
/* 3CEE8 80061AE8 A7A20004 */ sh $v0, 4($sp)
/* 3CEEC 80061AEC 2402FFFF */ addiu $v0, $zero, -1
/* 3CEF0 80061AF0 A3A30001 */ sb $v1, 1($sp)
/* 3CEF4 80061AF4 A3A30003 */ sb $v1, 3($sp)
/* 3CEF8 80061AF8 A3A20006 */ sb $v0, 6($sp)
/* 3CEFC 80061AFC 1880000F */ blez $a0, .L80061B3C
/* 3CF00 80061B00 A3A20007 */ sb $v0, 7($sp)
.L80061B04:
/* 3CF04 80061B04 8BA20000 */ lwl $v0, ($sp)
/* 3CF08 80061B08 9BA20003 */ lwr $v0, 3($sp)
/* 3CF0C 80061B0C 8BA30004 */ lwl $v1, 4($sp)
/* 3CF10 80061B10 9BA30007 */ lwr $v1, 7($sp)
/* 3CF14 80061B14 A8E20000 */ swl $v0, ($a3)
/* 3CF18 80061B18 B8E20003 */ swr $v0, 3($a3)
/* 3CF1C 80061B1C A8E30004 */ swl $v1, 4($a3)
/* 3CF20 80061B20 B8E30007 */ swr $v1, 7($a3)
/* 3CF24 80061B24 3C02800A */ lui $v0, %hi(D_8009A5E6)
/* 3CF28 80061B28 9042A5E6 */ lbu $v0, %lo(D_8009A5E6)($v0)
/* 3CF2C 80061B2C 24C60001 */ addiu $a2, $a2, 1
/* 3CF30 80061B30 00C2102A */ slt $v0, $a2, $v0
/* 3CF34 80061B34 1440FFF3 */ bnez $v0, .L80061B04
/* 3CF38 80061B38 24E70008 */ addiu $a3, $a3, 8
.L80061B3C:
/* 3CF3C 80061B3C 240200FE */ addiu $v0, $zero, 0xfe
/* 3CF40 80061B40 A0E20000 */ sb $v0, ($a3)
/* 3CF44 80061B44 03E00008 */ jr $ra
/* 3CF48 80061B48 27BD0010 */ addiu $sp, $sp, 0x10
/* 3CF4C 80061B4C 00000000 */ nop