papermario/ver/jp/asm/nonmatchings/main_8490/func_8002E4BC.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

64 lines
3.1 KiB
ArmAsm

.set noat # allow manual use of $at
.set noreorder # don't insert nops after branches
glabel func_8002E4BC
/* 98BC 8002E4BC 00A0302D */ daddu $a2, $a1, $zero
/* 98C0 8002E4C0 3C05800B */ lui $a1, %hi(D_800B1D60)
/* 98C4 8002E4C4 24A51D60 */ addiu $a1, $a1, %lo(D_800B1D60)
/* 98C8 8002E4C8 00041080 */ sll $v0, $a0, 2
/* 98CC 8002E4CC 00441021 */ addu $v0, $v0, $a0
/* 98D0 8002E4D0 00021080 */ sll $v0, $v0, 2
/* 98D4 8002E4D4 00441023 */ subu $v0, $v0, $a0
/* 98D8 8002E4D8 000218C0 */ sll $v1, $v0, 3
/* 98DC 8002E4DC 00431021 */ addu $v0, $v0, $v1
/* 98E0 8002E4E0 000210C0 */ sll $v0, $v0, 3
/* 98E4 8002E4E4 00452021 */ addu $a0, $v0, $a1
/* 98E8 8002E4E8 94820212 */ lhu $v0, 0x212($a0)
/* 98EC 8002E4EC 24420001 */ addiu $v0, $v0, 1
/* 98F0 8002E4F0 A4820212 */ sh $v0, 0x212($a0)
/* 98F4 8002E4F4 00021400 */ sll $v0, $v0, 0x10
/* 98F8 8002E4F8 00021403 */ sra $v0, $v0, 0x10
/* 98FC 8002E4FC 28420004 */ slti $v0, $v0, 4
/* 9900 8002E500 14400003 */ bnez $v0, .L8002E510
/* 9904 8002E504 00000000 */ nop
.L8002E508:
/* 9908 8002E508 0800B942 */ j .L8002E508
/* 990C 8002E50C 00000000 */ nop
.L8002E510:
/* 9910 8002E510 84830212 */ lh $v1, 0x212($a0)
/* 9914 8002E514 000310C0 */ sll $v0, $v1, 3
/* 9918 8002E518 00431021 */ addu $v0, $v0, $v1
/* 991C 8002E51C 00021080 */ sll $v0, $v0, 2
/* 9920 8002E520 00431023 */ subu $v0, $v0, $v1
/* 9924 8002E524 00021080 */ sll $v0, $v0, 2
/* 9928 8002E528 00821021 */ addu $v0, $a0, $v0
/* 992C 8002E52C AC460220 */ sw $a2, 0x220($v0)
/* 9930 8002E530 84830212 */ lh $v1, 0x212($a0)
/* 9934 8002E534 000310C0 */ sll $v0, $v1, 3
/* 9938 8002E538 00431021 */ addu $v0, $v0, $v1
/* 993C 8002E53C 00021080 */ sll $v0, $v0, 2
/* 9940 8002E540 00431023 */ subu $v0, $v0, $v1
/* 9944 8002E544 00021080 */ sll $v0, $v0, 2
/* 9948 8002E548 00821021 */ addu $v0, $a0, $v0
/* 994C 8002E54C 24030001 */ addiu $v1, $zero, 1
/* 9950 8002E550 A4430216 */ sh $v1, 0x216($v0)
/* 9954 8002E554 84830212 */ lh $v1, 0x212($a0)
/* 9958 8002E558 000310C0 */ sll $v0, $v1, 3
/* 995C 8002E55C 00431021 */ addu $v0, $v0, $v1
/* 9960 8002E560 00021080 */ sll $v0, $v0, 2
/* 9964 8002E564 00431023 */ subu $v0, $v0, $v1
/* 9968 8002E568 00021080 */ sll $v0, $v0, 2
/* 996C 8002E56C 00821021 */ addu $v0, $a0, $v0
/* 9970 8002E570 AC460278 */ sw $a2, 0x278($v0)
/* 9974 8002E574 84830212 */ lh $v1, 0x212($a0)
/* 9978 8002E578 000310C0 */ sll $v0, $v1, 3
/* 997C 8002E57C 00431021 */ addu $v0, $v0, $v1
/* 9980 8002E580 00021080 */ sll $v0, $v0, 2
/* 9984 8002E584 00431023 */ subu $v0, $v0, $v1
/* 9988 8002E588 00021080 */ sll $v0, $v0, 2
/* 998C 8002E58C 00821021 */ addu $v0, $a0, $v0
/* 9990 8002E590 03E00008 */ jr $ra
/* 9994 8002E594 A4400214 */ sh $zero, 0x214($v0)
/* 9998 8002E598 00000000 */ nop
/* 999C 8002E59C 00000000 */ nop