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

45 lines
2.0 KiB
ArmAsm

.set noat # allow manual use of $at
.set noreorder # don't insert nops after branches
glabel func_8013A93C
/* D103C 8013A93C 27BDFFE8 */ addiu $sp, $sp, -0x18
/* D1040 8013A940 AFB00010 */ sw $s0, 0x10($sp)
/* D1044 8013A944 0080802D */ daddu $s0, $a0, $zero
/* D1048 8013A948 AFBF0014 */ sw $ra, 0x14($sp)
/* D104C 8013A94C 8E020064 */ lw $v0, 0x64($s0)
/* D1050 8013A950 54400001 */ bnel $v0, $zero, .L8013A958
/* D1054 8013A954 AE000064 */ sw $zero, 0x64($s0)
.L8013A958:
/* D1058 8013A958 8E040068 */ lw $a0, 0x68($s0)
/* D105C 8013A95C 10800004 */ beqz $a0, .L8013A970
/* D1060 8013A960 00000000 */ nop
/* D1064 8013A964 0C04E984 */ jal func_8013A610
/* D1068 8013A968 24050001 */ addiu $a1, $zero, 1
/* D106C 8013A96C AE000068 */ sw $zero, 0x68($s0)
.L8013A970:
/* D1070 8013A970 8E04006C */ lw $a0, 0x6c($s0)
/* D1074 8013A974 10800004 */ beqz $a0, .L8013A988
/* D1078 8013A978 00000000 */ nop
/* D107C 8013A97C 0C04E984 */ jal func_8013A610
/* D1080 8013A980 24050001 */ addiu $a1, $zero, 1
/* D1084 8013A984 AE00006C */ sw $zero, 0x6c($s0)
.L8013A988:
/* D1088 8013A988 8E040070 */ lw $a0, 0x70($s0)
/* D108C 8013A98C 10800004 */ beqz $a0, .L8013A9A0
/* D1090 8013A990 00000000 */ nop
/* D1094 8013A994 0C04E984 */ jal func_8013A610
/* D1098 8013A998 24050001 */ addiu $a1, $zero, 1
/* D109C 8013A99C AE000070 */ sw $zero, 0x70($s0)
.L8013A9A0:
/* D10A0 8013A9A0 8E040074 */ lw $a0, 0x74($s0)
/* D10A4 8013A9A4 10800004 */ beqz $a0, .L8013A9B8
/* D10A8 8013A9A8 00000000 */ nop
/* D10AC 8013A9AC 0C04E984 */ jal func_8013A610
/* D10B0 8013A9B0 24050001 */ addiu $a1, $zero, 1
/* D10B4 8013A9B4 AE000074 */ sw $zero, 0x74($s0)
.L8013A9B8:
/* D10B8 8013A9B8 8FBF0014 */ lw $ra, 0x14($sp)
/* D10BC 8013A9BC 8FB00010 */ lw $s0, 0x10($sp)
/* D10C0 8013A9C0 03E00008 */ jr $ra
/* D10C4 8013A9C4 27BD0018 */ addiu $sp, $sp, 0x18