papermario/ver/jp/asm/nonmatchings/39960/func_8005EAE0.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_8005EAE0
/* 39EE0 8005EAE0 27BDFFE0 */ addiu $sp, $sp, -0x20
/* 39EE4 8005EAE4 AFB00010 */ sw $s0, 0x10($sp)
/* 39EE8 8005EAE8 0080802D */ daddu $s0, $a0, $zero
/* 39EEC 8005EAEC AFB20018 */ sw $s2, 0x18($sp)
/* 39EF0 8005EAF0 00A0902D */ daddu $s2, $a1, $zero
/* 39EF4 8005EAF4 AFB10014 */ sw $s1, 0x14($sp)
/* 39EF8 8005EAF8 00C0882D */ daddu $s1, $a2, $zero
/* 39EFC 8005EAFC AFBF001C */ sw $ra, 0x1c($sp)
/* 39F00 8005EB00 0C018244 */ jal func_80060910
/* 39F04 8005EB04 24040001 */ addiu $a0, $zero, 1
/* 39F08 8005EB08 3C05800E */ lui $a1, %hi(D_800DAA88)
/* 39F0C 8005EB0C 24A5AA88 */ addiu $a1, $a1, %lo(D_800DAA88)
/* 39F10 8005EB10 AE120004 */ sw $s2, 4($s0)
/* 39F14 8005EB14 8CA30000 */ lw $v1, ($a1)
/* 39F18 8005EB18 A6110008 */ sh $s1, 8($s0)
/* 39F1C 8005EB1C 32310002 */ andi $s1, $s1, 2
/* 39F20 8005EB20 AE030000 */ sw $v1, ($s0)
/* 39F24 8005EB24 ACB00000 */ sw $s0, ($a1)
/* 39F28 8005EB28 12200008 */ beqz $s1, .L8005EB4C
/* 39F2C 8005EB2C 0040802D */ daddu $s0, $v0, $zero
/* 39F30 8005EB30 3C02800A */ lui $v0, %hi(D_8009A590)
/* 39F34 8005EB34 9042A590 */ lbu $v0, %lo(D_8009A590)($v0)
/* 39F38 8005EB38 10400004 */ beqz $v0, .L8005EB4C
/* 39F3C 8005EB3C 0240202D */ daddu $a0, $s2, $zero
/* 39F40 8005EB40 24A5F99A */ addiu $a1, $a1, -0x666
/* 39F44 8005EB44 0C0195FC */ jal func_800657F0
/* 39F48 8005EB48 0000302D */ daddu $a2, $zero, $zero
.L8005EB4C:
/* 39F4C 8005EB4C 0C018244 */ jal func_80060910
/* 39F50 8005EB50 0200202D */ daddu $a0, $s0, $zero
/* 39F54 8005EB54 8FBF001C */ lw $ra, 0x1c($sp)
/* 39F58 8005EB58 8FB20018 */ lw $s2, 0x18($sp)
/* 39F5C 8005EB5C 8FB10014 */ lw $s1, 0x14($sp)
/* 39F60 8005EB60 8FB00010 */ lw $s0, 0x10($sp)
/* 39F64 8005EB64 03E00008 */ jr $ra
/* 39F68 8005EB68 27BD0020 */ addiu $sp, $sp, 0x20