papermario/ver/us/asm/nonmatchings/F5750/func_802D3FC8.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

41 lines
2.0 KiB
ArmAsm

.set noat # allow manual use of $at
.set noreorder # don't insert nops after branches
glabel func_802D3FC8
/* F8978 802D3FC8 27BDFFE0 */ addiu $sp, $sp, -0x20
/* F897C 802D3FCC AFB10014 */ sw $s1, 0x14($sp)
/* F8980 802D3FD0 0080882D */ daddu $s1, $a0, $zero
/* F8984 802D3FD4 AFBF0018 */ sw $ra, 0x18($sp)
/* F8988 802D3FD8 AFB00010 */ sw $s0, 0x10($sp)
/* F898C 802D3FDC 8E30000C */ lw $s0, 0xc($s1)
/* F8990 802D3FE0 8E050000 */ lw $a1, ($s0)
/* F8994 802D3FE4 0C0B1EAF */ jal get_variable
/* F8998 802D3FE8 26100004 */ addiu $s0, $s0, 4
/* F899C 802D3FEC 0220202D */ daddu $a0, $s1, $zero
/* F89A0 802D3FF0 8E050004 */ lw $a1, 4($s0)
/* F89A4 802D3FF4 8E100000 */ lw $s0, ($s0)
/* F89A8 802D3FF8 0C0B1EAF */ jal get_variable
/* F89AC 802D3FFC 0040882D */ daddu $s1, $v0, $zero
/* F89B0 802D4000 3C03802E */ lui $v1, %hi(D_802DB7C0)
/* F89B4 802D4004 8C63B7C0 */ lw $v1, %lo(D_802DB7C0)($v1)
/* F89B8 802D4008 00118880 */ sll $s1, $s1, 2
/* F89BC 802D400C 02238821 */ addu $s1, $s1, $v1
/* F89C0 802D4010 10400006 */ beqz $v0, .L802D402C
/* F89C4 802D4014 8E240000 */ lw $a0, ($s1)
/* F89C8 802D4018 8C840000 */ lw $a0, ($a0)
/* F89CC 802D401C 0C048BBA */ jal set_entity_model_flags
/* F89D0 802D4020 0200282D */ daddu $a1, $s0, $zero
/* F89D4 802D4024 080B500E */ j .L802D4038
/* F89D8 802D4028 00000000 */ nop
.L802D402C:
/* F89DC 802D402C 8C840000 */ lw $a0, ($a0)
/* F89E0 802D4030 0C048BC9 */ jal clear_entity_model_flags
/* F89E4 802D4034 0200282D */ daddu $a1, $s0, $zero
.L802D4038:
/* F89E8 802D4038 8FBF0018 */ lw $ra, 0x18($sp)
/* F89EC 802D403C 8FB10014 */ lw $s1, 0x14($sp)
/* F89F0 802D4040 8FB00010 */ lw $s0, 0x10($sp)
/* F89F4 802D4044 24020002 */ addiu $v0, $zero, 2
/* F89F8 802D4048 03E00008 */ jr $ra
/* F89FC 802D404C 27BD0020 */ addiu $sp, $sp, 0x20