papermario/ver/us/asm/nonmatchings/EF2680/func_80240C4C_EF325C.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

35 lines
1.8 KiB
ArmAsm

.set noat # allow manual use of $at
.set noreorder # don't insert nops after branches
glabel func_80240C4C_EF325C
/* EF325C 80240C4C 27BDFFE0 */ addiu $sp, $sp, -0x20
/* EF3260 80240C50 AFB20018 */ sw $s2, 0x18($sp)
/* EF3264 80240C54 0080902D */ daddu $s2, $a0, $zero
/* EF3268 80240C58 AFBF001C */ sw $ra, 0x1c($sp)
/* EF326C 80240C5C AFB10014 */ sw $s1, 0x14($sp)
/* EF3270 80240C60 AFB00010 */ sw $s0, 0x10($sp)
/* EF3274 80240C64 8E510148 */ lw $s1, 0x148($s2)
/* EF3278 80240C68 0C00F92F */ jal func_8003E4BC
/* EF327C 80240C6C 86240008 */ lh $a0, 8($s1)
/* EF3280 80240C70 0040802D */ daddu $s0, $v0, $zero
/* EF3284 80240C74 3C028010 */ lui $v0, %hi(D_800FFC90)
/* EF3288 80240C78 8C42FC90 */ lw $v0, %lo(D_800FFC90)($v0)
/* EF328C 80240C7C C60C0038 */ lwc1 $f12, 0x38($s0)
/* EF3290 80240C80 C60E0040 */ lwc1 $f14, 0x40($s0)
/* EF3294 80240C84 A600008E */ sh $zero, 0x8e($s0)
/* EF3298 80240C88 8C460028 */ lw $a2, 0x28($v0)
/* EF329C 80240C8C 0C00ABDC */ jal fio_validate_header_checksums
/* EF32A0 80240C90 8C470030 */ lw $a3, 0x30($v0)
/* EF32A4 80240C94 E600000C */ swc1 $f0, 0xc($s0)
/* EF32A8 80240C98 8E2200CC */ lw $v0, 0xcc($s1)
/* EF32AC 80240C9C 8C420020 */ lw $v0, 0x20($v0)
/* EF32B0 80240CA0 AE020028 */ sw $v0, 0x28($s0)
/* EF32B4 80240CA4 2402000B */ addiu $v0, $zero, 0xb
/* EF32B8 80240CA8 AE420070 */ sw $v0, 0x70($s2)
/* EF32BC 80240CAC 8FBF001C */ lw $ra, 0x1c($sp)
/* EF32C0 80240CB0 8FB20018 */ lw $s2, 0x18($sp)
/* EF32C4 80240CB4 8FB10014 */ lw $s1, 0x14($sp)
/* EF32C8 80240CB8 8FB00010 */ lw $s0, 0x10($sp)
/* EF32CC 80240CBC 03E00008 */ jr $ra
/* EF32D0 80240CC0 27BD0020 */ addiu $sp, $sp, 0x20