papermario/ver/us/asm/nonmatchings/d0a70_len_4fe0/func_8013A650.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

47 lines
2.2 KiB
ArmAsm

.set noat # allow manual use of $at
.set noreorder # don't insert nops after branches
glabel func_8013A650
/* D0D50 8013A650 27BDFFE0 */ addiu $sp, $sp, -0x20
/* D0D54 8013A654 AFB00010 */ sw $s0, 0x10($sp)
/* D0D58 8013A658 3C108015 */ lui $s0, %hi(D_80156F20)
/* D0D5C 8013A65C 26106F20 */ addiu $s0, $s0, %lo(D_80156F20)
/* D0D60 8013A660 AFB10014 */ sw $s1, 0x14($sp)
/* D0D64 8013A664 26110040 */ addiu $s1, $s0, 0x40
/* D0D68 8013A668 AFBF0018 */ sw $ra, 0x18($sp)
.L8013A66C:
/* D0D6C 8013A66C 8E020000 */ lw $v0, ($s0)
/* D0D70 8013A670 50400015 */ beql $v0, $zero, .L8013A6C8
/* D0D74 8013A674 26100008 */ addiu $s0, $s0, 8
/* D0D78 8013A678 92020004 */ lbu $v0, 4($s0)
/* D0D7C 8013A67C 2442FFFF */ addiu $v0, $v0, -1
/* D0D80 8013A680 A2020004 */ sb $v0, 4($s0)
/* D0D84 8013A684 304200FF */ andi $v0, $v0, 0xff
/* D0D88 8013A688 5440000F */ bnel $v0, $zero, .L8013A6C8
/* D0D8C 8013A68C 26100008 */ addiu $s0, $s0, 8
/* D0D90 8013A690 92020005 */ lbu $v0, 5($s0)
/* D0D94 8013A694 10400005 */ beqz $v0, .L8013A6AC
/* D0D98 8013A698 00000000 */ nop
/* D0D9C 8013A69C 0C00AB4B */ jal heap_free
/* D0DA0 8013A6A0 8E040000 */ lw $a0, ($s0)
/* D0DA4 8013A6A4 0804E9AF */ j .L8013A6BC
/* D0DA8 8013A6A8 AE000000 */ sw $zero, ($s0)
.L8013A6AC:
/* D0DAC 8013A6AC 8E040000 */ lw $a0, ($s0)
/* D0DB0 8013A6B0 0C00AB1E */ jal general_heap_free
/* D0DB4 8013A6B4 00000000 */ nop
/* D0DB8 8013A6B8 AE000000 */ sw $zero, ($s0)
.L8013A6BC:
/* D0DBC 8013A6BC A2000004 */ sb $zero, 4($s0)
/* D0DC0 8013A6C0 A2000005 */ sb $zero, 5($s0)
/* D0DC4 8013A6C4 26100008 */ addiu $s0, $s0, 8
.L8013A6C8:
/* D0DC8 8013A6C8 0211102A */ slt $v0, $s0, $s1
/* D0DCC 8013A6CC 1440FFE7 */ bnez $v0, .L8013A66C
/* D0DD0 8013A6D0 00000000 */ nop
/* D0DD4 8013A6D4 8FBF0018 */ lw $ra, 0x18($sp)
/* D0DD8 8013A6D8 8FB10014 */ lw $s1, 0x14($sp)
/* D0DDC 8013A6DC 8FB00010 */ lw $s0, 0x10($sp)
/* D0DE0 8013A6E0 03E00008 */ jr $ra
/* D0DE4 8013A6E4 27BD0020 */ addiu $sp, $sp, 0x20