papermario/ver/us/asm/nonmatchings/a5dd0_len_114e0/func_80112B20.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

34 lines
1.6 KiB
ArmAsm

.set noat # allow manual use of $at
.set noreorder # don't insert nops after branches
glabel func_80112B20
/* A9220 80112B20 27BDFFC8 */ addiu $sp, $sp, -0x38
/* A9224 80112B24 27A20028 */ addiu $v0, $sp, 0x28
/* A9228 80112B28 AFBF0030 */ sw $ra, 0x30($sp)
/* A922C 80112B2C C4800048 */ lwc1 $f0, 0x48($a0)
/* A9230 80112B30 C482004C */ lwc1 $f2, 0x4c($a0)
/* A9234 80112B34 C4840050 */ lwc1 $f4, 0x50($a0)
/* A9238 80112B38 27A40018 */ addiu $a0, $sp, 0x18
/* A923C 80112B3C 27A5001C */ addiu $a1, $sp, 0x1c
/* A9240 80112B40 27A60020 */ addiu $a2, $sp, 0x20
/* A9244 80112B44 27A70024 */ addiu $a3, $sp, 0x24
/* A9248 80112B48 E7A00018 */ swc1 $f0, 0x18($sp)
/* A924C 80112B4C E7A2001C */ swc1 $f2, 0x1c($sp)
/* A9250 80112B50 E7A40020 */ swc1 $f4, 0x20($sp)
/* A9254 80112B54 AFA20010 */ sw $v0, 0x10($sp)
/* A9258 80112B58 27A2002C */ addiu $v0, $sp, 0x2c
/* A925C 80112B5C 0C04497A */ jal func_801125E8
/* A9260 80112B60 AFA20014 */ sw $v0, 0x14($sp)
/* A9264 80112B64 C7A0002C */ lwc1 $f0, 0x2c($sp)
/* A9268 80112B68 24027FFF */ addiu $v0, $zero, 0x7fff
/* A926C 80112B6C 4600018D */ trunc.w.s $f6, $f0
/* A9270 80112B70 44033000 */ mfc1 $v1, $f6
/* A9274 80112B74 00000000 */ nop
/* A9278 80112B78 50620001 */ beql $v1, $v0, .L80112B80
/* A927C 80112B7C 0000182D */ daddu $v1, $zero, $zero
.L80112B80:
/* A9280 80112B80 8FBF0030 */ lw $ra, 0x30($sp)
/* A9284 80112B84 0060102D */ daddu $v0, $v1, $zero
/* A9288 80112B88 03E00008 */ jr $ra
/* A928C 80112B8C 27BD0038 */ addiu $sp, $sp, 0x38