papermario/ver/us/asm/nonmatchings/20ec0_len_5040/func_80045FB4.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

39 lines
1.9 KiB
ArmAsm

.set noat # allow manual use of $at
.set noreorder # don't insert nops after branches
glabel func_80045FB4
/* 213B4 80045FB4 27BDFFE8 */ addiu $sp, $sp, -0x18
/* 213B8 80045FB8 AFBF0014 */ sw $ra, 0x14($sp)
/* 213BC 80045FBC 0C011722 */ jal func_80045C88
/* 213C0 80045FC0 AFB00010 */ sw $s0, 0x10($sp)
/* 213C4 80045FC4 0040802D */ daddu $s0, $v0, $zero
/* 213C8 80045FC8 12000015 */ beqz $s0, .L80046020
/* 213CC 80045FCC 24042C00 */ addiu $a0, $zero, 0x2c00
/* 213D0 80045FD0 3C028004 */ lui $v0, %hi(func_80046030)
/* 213D4 80045FD4 24426030 */ addiu $v0, $v0, %lo(func_80046030)
/* 213D8 80045FD8 AE020004 */ sw $v0, 4($s0)
/* 213DC 80045FDC 3C028004 */ lui $v0, %hi(func_800465E0)
/* 213E0 80045FE0 244265E0 */ addiu $v0, $v0, %lo(func_800465E0)
/* 213E4 80045FE4 AE000000 */ sw $zero, ($s0)
/* 213E8 80045FE8 AE000008 */ sw $zero, 8($s0)
/* 213EC 80045FEC 0C00AB0A */ jal general_heap_malloc
/* 213F0 80045FF0 AE02000C */ sw $v0, 0xc($s0)
/* 213F4 80045FF4 AE020018 */ sw $v0, 0x18($s0)
/* 213F8 80045FF8 3C01800A */ lui $at, %hi(D_800A0F44)
/* 213FC 80045FFC AC220F44 */ sw $v0, %lo(D_800A0F44)($at)
/* 21400 80046000 14400003 */ bnez $v0, .L80046010
/* 21404 80046004 2403003F */ addiu $v1, $zero, 0x3f
.L80046008:
/* 21408 80046008 08011802 */ j .L80046008
/* 2140C 8004600C 00000000 */ nop
.L80046010:
/* 21410 80046010 AC400000 */ sw $zero, ($v0)
/* 21414 80046014 2463FFFF */ addiu $v1, $v1, -1
/* 21418 80046018 0461FFFD */ bgez $v1, .L80046010
/* 2141C 8004601C 244200B0 */ addiu $v0, $v0, 0xb0
.L80046020:
/* 21420 80046020 8FBF0014 */ lw $ra, 0x14($sp)
/* 21424 80046024 8FB00010 */ lw $s0, 0x10($sp)
/* 21428 80046028 03E00008 */ jr $ra
/* 2142C 8004602C 27BD0018 */ addiu $sp, $sp, 0x18