papermario/ver/us/asm/nonmatchings/d5a50_len_5fd0/func_80145108.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

37 lines
1.8 KiB
ArmAsm

.set noat # allow manual use of $at
.set noreorder # don't insert nops after branches
glabel func_80145108
/* DB808 80145108 27BDFFE8 */ addiu $sp, $sp, -0x18
/* DB80C 8014510C 2402F7FF */ addiu $v0, $zero, -0x801
/* DB810 80145110 00822024 */ and $a0, $a0, $v0
/* DB814 80145114 3C028015 */ lui $v0, %hi(D_80157960)
/* DB818 80145118 8C427960 */ lw $v0, %lo(D_80157960)($v0)
/* DB81C 8014511C 00042080 */ sll $a0, $a0, 2
/* DB820 80145120 AFBF0014 */ sw $ra, 0x14($sp)
/* DB824 80145124 AFB00010 */ sw $s0, 0x10($sp)
/* DB828 80145128 00822021 */ addu $a0, $a0, $v0
/* DB82C 8014512C 8C900000 */ lw $s0, ($a0)
/* DB830 80145130 3C030002 */ lui $v1, 2
/* DB834 80145134 8E020000 */ lw $v0, ($s0)
/* DB838 80145138 8E04001C */ lw $a0, 0x1c($s0)
/* DB83C 8014513C 00431024 */ and $v0, $v0, $v1
/* DB840 80145140 14400004 */ bnez $v0, .L80145154
/* DB844 80145144 00000000 */ nop
/* DB848 80145148 0C04EA15 */ jal func_8013A854
/* DB84C 8014514C 8C840000 */ lw $a0, ($a0)
/* DB850 80145150 8E04001C */ lw $a0, 0x1c($s0)
.L80145154:
/* DB854 80145154 0C00AB4B */ jal heap_free
/* DB858 80145158 00000000 */ nop
/* DB85C 8014515C 3C03BFFC */ lui $v1, 0xbffc
/* DB860 80145160 8E020000 */ lw $v0, ($s0)
/* DB864 80145164 3463FFFF */ ori $v1, $v1, 0xffff
/* DB868 80145168 AE00001C */ sw $zero, 0x1c($s0)
/* DB86C 8014516C 00431024 */ and $v0, $v0, $v1
/* DB870 80145170 AE020000 */ sw $v0, ($s0)
/* DB874 80145174 8FBF0014 */ lw $ra, 0x14($sp)
/* DB878 80145178 8FB00010 */ lw $s0, 0x10($sp)
/* DB87C 8014517C 03E00008 */ jr $ra
/* DB880 80145180 27BD0018 */ addiu $sp, $sp, 0x18