papermario/ver/jp/asm/nonmatchings/13530/func_8003E3F0.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.8 KiB
ArmAsm

.set noat # allow manual use of $at
.set noreorder # don't insert nops after branches
glabel func_8003E3F0
/* 197F0 8003E3F0 27BDFFE0 */ addiu $sp, $sp, -0x20
/* 197F4 8003E3F4 AFBF001C */ sw $ra, 0x1c($sp)
/* 197F8 8003E3F8 AFB20018 */ sw $s2, 0x18($sp)
/* 197FC 8003E3FC AFB10014 */ sw $s1, 0x14($sp)
/* 19800 8003E400 AFB00010 */ sw $s0, 0x10($sp)
/* 19804 8003E404 80820004 */ lb $v0, 4($a0)
/* 19808 8003E408 00021080 */ sll $v0, $v0, 2
/* 1980C 8003E40C 3C12800B */ lui $s2, %hi(D_800B0F18)
/* 19810 8003E410 02429021 */ addu $s2, $s2, $v0
/* 19814 8003E414 8E520F18 */ lw $s2, %lo(D_800B0F18)($s2)
/* 19818 8003E418 8E420000 */ lw $v0, ($s2)
/* 1981C 8003E41C 1840000D */ blez $v0, .L8003E454
/* 19820 8003E420 0000882D */ daddu $s1, $zero, $zero
/* 19824 8003E424 0240802D */ daddu $s0, $s2, $zero
.L8003E428:
/* 19828 8003E428 8E040004 */ lw $a0, 4($s0)
/* 1982C 8003E42C 10800004 */ beqz $a0, .L8003E440
/* 19830 8003E430 00000000 */ nop
/* 19834 8003E434 0C00F91B */ jal func_8003E46C
/* 19838 8003E438 00000000 */ nop
/* 1983C 8003E43C AE000004 */ sw $zero, 4($s0)
.L8003E440:
/* 19840 8003E440 8E420000 */ lw $v0, ($s2)
/* 19844 8003E444 26310001 */ addiu $s1, $s1, 1
/* 19848 8003E448 0222102A */ slt $v0, $s1, $v0
/* 1984C 8003E44C 1440FFF6 */ bnez $v0, .L8003E428
/* 19850 8003E450 26100004 */ addiu $s0, $s0, 4
.L8003E454:
/* 19854 8003E454 8FBF001C */ lw $ra, 0x1c($sp)
/* 19858 8003E458 8FB20018 */ lw $s2, 0x18($sp)
/* 1985C 8003E45C 8FB10014 */ lw $s1, 0x14($sp)
/* 19860 8003E460 8FB00010 */ lw $s0, 0x10($sp)
/* 19864 8003E464 03E00008 */ jr $ra
/* 19868 8003E468 27BD0020 */ addiu $sp, $sp, 0x20