papermario/ver/us/asm/nonmatchings/1776B0/func_8024E6B4.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_8024E6B4
/* 17CF94 8024E6B4 27BDFFE8 */ addiu $sp, $sp, -0x18
/* 17CF98 8024E6B8 AFB00010 */ sw $s0, 0x10($sp)
/* 17CF9C 8024E6BC 0080802D */ daddu $s0, $a0, $zero
/* 17CFA0 8024E6C0 3C028028 */ lui $v0, %hi(D_80280CE0)
/* 17CFA4 8024E6C4 80420CE0 */ lb $v0, %lo(D_80280CE0)($v0)
/* 17CFA8 8024E6C8 00A0182D */ daddu $v1, $a1, $zero
/* 17CFAC 8024E6CC AFBF0014 */ sw $ra, 0x14($sp)
/* 17CFB0 8024E6D0 8E05000C */ lw $a1, 0xc($s0)
/* 17CFB4 8024E6D4 14400018 */ bnez $v0, .L8024E738
/* 17CFB8 8024E6D8 24020002 */ addiu $v0, $zero, 2
/* 17CFBC 8024E6DC 54600001 */ bnel $v1, $zero, .L8024E6E4
/* 17CFC0 8024E6E0 AE000070 */ sw $zero, 0x70($s0)
.L8024E6E4:
/* 17CFC4 8024E6E4 8E030070 */ lw $v1, 0x70($s0)
/* 17CFC8 8024E6E8 10600005 */ beqz $v1, .L8024E700
/* 17CFCC 8024E6EC 24020001 */ addiu $v0, $zero, 1
/* 17CFD0 8024E6F0 1062000B */ beq $v1, $v0, .L8024E720
/* 17CFD4 8024E6F4 00000000 */ nop
/* 17CFD8 8024E6F8 080939CE */ j .L8024E738
/* 17CFDC 8024E6FC 0000102D */ daddu $v0, $zero, $zero
.L8024E700:
/* 17CFE0 8024E700 8CA50000 */ lw $a1, ($a1)
/* 17CFE4 8024E704 0C0B1EAF */ jal get_variable
/* 17CFE8 8024E708 0200202D */ daddu $a0, $s0, $zero
/* 17CFEC 8024E70C 0C093903 */ jal func_8024E40C
/* 17CFF0 8024E710 0040202D */ daddu $a0, $v0, $zero
/* 17CFF4 8024E714 24020001 */ addiu $v0, $zero, 1
/* 17CFF8 8024E718 080939CD */ j .L8024E734
/* 17CFFC 8024E71C AE020070 */ sw $v0, 0x70($s0)
.L8024E720:
/* 17D000 8024E720 0C093961 */ jal func_8024E584
/* 17D004 8024E724 00000000 */ nop
/* 17D008 8024E728 0040182D */ daddu $v1, $v0, $zero
/* 17D00C 8024E72C 14600002 */ bnez $v1, .L8024E738
/* 17D010 8024E730 24020002 */ addiu $v0, $zero, 2
.L8024E734:
/* 17D014 8024E734 0000102D */ daddu $v0, $zero, $zero
.L8024E738:
/* 17D018 8024E738 8FBF0014 */ lw $ra, 0x14($sp)
/* 17D01C 8024E73C 8FB00010 */ lw $s0, 0x10($sp)
/* 17D020 8024E740 03E00008 */ jr $ra
/* 17D024 8024E744 27BD0018 */ addiu $sp, $sp, 0x18