papermario/ver/us/asm/nonmatchings/code_C50A0/func_80133A94.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

36 lines
1.8 KiB
ArmAsm

.set noat # allow manual use of $at
.set noreorder # don't insert nops after branches
glabel func_80133A94
/* CA194 80133A94 27BDFFE8 */ addiu $sp, $sp, -0x18
/* CA198 80133A98 3C028015 */ lui $v0, %hi(D_801565A0)
/* CA19C 80133A9C 8C4265A0 */ lw $v0, %lo(D_801565A0)($v0)
/* CA1A0 80133AA0 00042080 */ sll $a0, $a0, 2
/* CA1A4 80133AA4 AFBF0010 */ sw $ra, 0x10($sp)
/* CA1A8 80133AA8 00822021 */ addu $a0, $a0, $v0
/* CA1AC 80133AAC 8C840000 */ lw $a0, ($a0)
/* CA1B0 80133AB0 3C03FFFB */ lui $v1, 0xfffb
/* CA1B4 80133AB4 8C820000 */ lw $v0, ($a0)
/* CA1B8 80133AB8 3463FFFF */ ori $v1, $v1, 0xffff
/* CA1BC 80133ABC A4850018 */ sh $a1, 0x18($a0)
/* CA1C0 80133AC0 00052940 */ sll $a1, $a1, 5
/* CA1C4 80133AC4 34424000 */ ori $v0, $v0, 0x4000
/* CA1C8 80133AC8 00431824 */ and $v1, $v0, $v1
/* CA1CC 80133ACC AC830000 */ sw $v1, ($a0)
/* CA1D0 80133AD0 3C028008 */ lui $v0, %hi(gItemTable+0x18)
/* CA1D4 80133AD4 00451021 */ addu $v0, $v0, $a1
/* CA1D8 80133AD8 944278F8 */ lhu $v0, %lo(gItemTable+0x18)($v0)
/* CA1DC 80133ADC 30421000 */ andi $v0, $v0, 0x1000
/* CA1E0 80133AE0 10400005 */ beqz $v0, .L80133AF8
/* CA1E4 80133AE4 3C020004 */ lui $v0, 4
/* CA1E8 80133AE8 00621025 */ or $v0, $v1, $v0
/* CA1EC 80133AEC 2403BFFF */ addiu $v1, $zero, -0x4001
/* CA1F0 80133AF0 00431024 */ and $v0, $v0, $v1
/* CA1F4 80133AF4 AC820000 */ sw $v0, ($a0)
.L80133AF8:
/* CA1F8 80133AF8 0C04C44A */ jal func_80131128
/* CA1FC 80133AFC 00000000 */ nop
/* CA200 80133B00 8FBF0010 */ lw $ra, 0x10($sp)
/* CA204 80133B04 03E00008 */ jr $ra
/* CA208 80133B08 27BD0018 */ addiu $sp, $sp, 0x18