papermario/ver/us/asm/nonmatchings/code_36A8D0/func_E0068148.s
alex a4e1c2f522
Add versioning (#187)
* fix vscode cpp extension messing with files.associations

* move stuff

* it builds!

* symlink papermario.us.z64

* ci: put baserom in right place

* add jp

* fix splat dir

* ignore starrod dump

* .s deps

* update jenkins

* add dsl back

* configure.py versions

* wups

* fine ethan

* fix paths

* configure: default to only the version(s) with existing baseroms

* fix coverage

* fix progress.py

* progress.py verisoning

* remove format.sh from CONTRIBUTING

* update CONTRIBUTING

* fix first_diff

* diff.py: use ver/current/

* update splat.yaml

* trying to fix subrepo

* git subrepo pull tools/splat

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

* configure fix

* git subrepo pull tools/splat

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

Co-authored-by: Ethan Roseman <ethteck@gmail.com>
2021-02-22 18:21:23 +09:00

45 lines
2.1 KiB
ArmAsm

.set noat # allow manual use of $at
.set noreorder # don't insert nops after branches
glabel func_E0068148
/* 36AA18 E0068148 27BDFFE8 */ addiu $sp, $sp, -0x18
/* 36AA1C E006814C AFBF0010 */ sw $ra, 0x10($sp)
/* 36AA20 E0068150 8C850000 */ lw $a1, ($a0)
/* 36AA24 E0068154 8C83000C */ lw $v1, 0xc($a0)
/* 36AA28 E0068158 30A20010 */ andi $v0, $a1, 0x10
/* 36AA2C E006815C 10400005 */ beqz $v0, .LE0068174
/* 36AA30 E0068160 2402FFEF */ addiu $v0, $zero, -0x11
/* 36AA34 E0068164 00A21024 */ and $v0, $a1, $v0
/* 36AA38 E0068168 AC820000 */ sw $v0, ($a0)
/* 36AA3C E006816C 2402000A */ addiu $v0, $zero, 0xa
/* 36AA40 E0068170 AC62001C */ sw $v0, 0x1c($v1)
.LE0068174:
/* 36AA44 E0068174 8C65001C */ lw $a1, 0x1c($v1)
/* 36AA48 E0068178 28A2000B */ slti $v0, $a1, 0xb
/* 36AA4C E006817C 10400002 */ beqz $v0, .LE0068188
/* 36AA50 E0068180 24A2FFFF */ addiu $v0, $a1, -1
/* 36AA54 E0068184 AC62001C */ sw $v0, 0x1c($v1)
.LE0068188:
/* 36AA58 E0068188 8C620020 */ lw $v0, 0x20($v1)
/* 36AA5C E006818C 8C65001C */ lw $a1, 0x1c($v1)
/* 36AA60 E0068190 24420001 */ addiu $v0, $v0, 1
/* 36AA64 E0068194 04A10005 */ bgez $a1, .LE00681AC
/* 36AA68 E0068198 AC620020 */ sw $v0, 0x20($v1)
/* 36AA6C E006819C 0C080128 */ jal func_E02004A0
/* 36AA70 E00681A0 00000000 */ nop
/* 36AA74 E00681A4 0801A073 */ j .LE00681CC
/* 36AA78 E00681A8 00000000 */ nop
.LE00681AC:
/* 36AA7C E00681AC 28A2000A */ slti $v0, $a1, 0xa
/* 36AA80 E00681B0 10400006 */ beqz $v0, .LE00681CC
/* 36AA84 E00681B4 00000000 */ nop
/* 36AA88 E00681B8 8C620018 */ lw $v0, 0x18($v1)
/* 36AA8C E00681BC 2442FFE7 */ addiu $v0, $v0, -0x19
/* 36AA90 E00681C0 04410002 */ bgez $v0, .LE00681CC
/* 36AA94 E00681C4 AC620018 */ sw $v0, 0x18($v1)
/* 36AA98 E00681C8 AC600018 */ sw $zero, 0x18($v1)
.LE00681CC:
/* 36AA9C E00681CC 8FBF0010 */ lw $ra, 0x10($sp)
/* 36AAA0 E00681D0 03E00008 */ jr $ra
/* 36AAA4 E00681D4 27BD0018 */ addiu $sp, $sp, 0x18