papermario/ver/jp/asm/nonmatchings/30100/func_80055998.s
Ethan Roseman 3315d6010f
Splat refactor (#257)
* all non-world rodata migrated

* data disasm

* kinda working

* updated yaml

* bloop

* linker header

* configure 2.0

* bin

* mass rename to remove code_

* pause rename

* battle partner stuff

* whew

* more renames

* more renames

* more renaming

* it builds!

* updates

* remove main prefix

* one more thing

* crc, yay0

* .data, .rodata, .bss

* img

* dead_atan2

* it buildsgit add -A

* split battle/partner/6FAD10

* rm &s on sleepy_sheep syms

* sha1sum ninja rule description

* OK but commented out PaperMarioMapFS and PaperMarioNpcSprites

* uncomment

* fix mapfs

* match func_8003CFB4

* .

* clean up and name npc_iter_no_op

* npc.c

* enable cc warnings

* name npc_find_near

* use singular options.asset_path

* smores

* cc_dsl only when needed

* kinda fix configure for splat refactor2

* ok!

* new msg format

* remove old msg format docs

* slight bug fixes, splat adjustment

* git subrepo pull (merge) --force tools/splat

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

* git subrepo pull (merge) --force tools/splat

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

* Update symbol addrs

* git subrepo pull tools/splat

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

Co-authored-by: Alex Bates <hi@imalex.xyz>
2021-04-13 16:47:52 +09:00

28 lines
1.3 KiB
ArmAsm

.set noat # allow manual use of $at
.set noreorder # don't insert nops after branches
glabel func_80055998
/* 30D98 80055998 3C07800A */ lui $a3, %hi(D_8009A5A0)
/* 30D9C 8005599C 8CE7A5A0 */ lw $a3, %lo(D_8009A5A0)($a3)
/* 30DA0 800559A0 8CE3005C */ lw $v1, 0x5c($a3)
/* 30DA4 800559A4 8C620008 */ lw $v0, 8($v1)
/* 30DA8 800559A8 14820005 */ bne $a0, $v0, .L800559C0
/* 30DAC 800559AC 0000402D */ daddu $t0, $zero, $zero
/* 30DB0 800559B0 3C02800A */ lui $v0, %hi(D_8009A644)
/* 30DB4 800559B4 8C42A644 */ lw $v0, %lo(D_8009A644)($v0)
/* 30DB8 800559B8 08015677 */ j .L800559DC
/* 30DBC 800559BC ACC20000 */ sw $v0, ($a2)
.L800559C0:
/* 30DC0 800559C0 8CE30060 */ lw $v1, 0x60($a3)
/* 30DC4 800559C4 8C620008 */ lw $v0, 8($v1)
/* 30DC8 800559C8 54820005 */ bnel $a0, $v0, .L800559E0
/* 30DCC 800559CC 24080001 */ addiu $t0, $zero, 1
/* 30DD0 800559D0 3C02800A */ lui $v0, %hi(D_8009A5DC)
/* 30DD4 800559D4 8C42A5DC */ lw $v0, %lo(D_8009A5DC)($v0)
/* 30DD8 800559D8 ACC20000 */ sw $v0, ($a2)
.L800559DC:
/* 30DDC 800559DC ACA30000 */ sw $v1, ($a1)
.L800559E0:
/* 30DE0 800559E0 03E00008 */ jr $ra
/* 30DE4 800559E4 0100102D */ daddu $v0, $t0, $zero