papermario/ver/jp/asm/nonmatchings/13530/func_8003CFB8.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

57 lines
2.7 KiB
ArmAsm

.set noat # allow manual use of $at
.set noreorder # don't insert nops after branches
glabel func_8003CFB8
/* 183B8 8003CFB8 27BDFFC8 */ addiu $sp, $sp, -0x38
/* 183BC 8003CFBC AFB00028 */ sw $s0, 0x28($sp)
/* 183C0 8003CFC0 0080802D */ daddu $s0, $a0, $zero
/* 183C4 8003CFC4 AFBF002C */ sw $ra, 0x2c($sp)
/* 183C8 8003CFC8 F7B40030 */ sdc1 $f20, 0x30($sp)
/* 183CC 8003CFCC 8E020000 */ lw $v0, ($s0)
/* 183D0 8003CFD0 3C030400 */ lui $v1, 0x400
/* 183D4 8003CFD4 00431024 */ and $v0, $v0, $v1
/* 183D8 8003CFD8 10400005 */ beqz $v0, .L8003CFF0
/* 183DC 8003CFDC 00000000 */ nop
/* 183E0 8003CFE0 0C045605 */ jal func_80115814
/* 183E4 8003CFE4 8E040078 */ lw $a0, 0x78($s0)
/* 183E8 8003CFE8 0800F3FD */ j .L8003CFF4
/* 183EC 8003CFEC C4400014 */ lwc1 $f0, 0x14($v0)
.L8003CFF0:
/* 183F0 8003CFF0 C600003C */ lwc1 $f0, 0x3c($s0)
.L8003CFF4:
/* 183F4 8003CFF4 3C014150 */ lui $at, 0x4150
/* 183F8 8003CFF8 44811000 */ mtc1 $at, $f2
/* 183FC 8003CFFC 00000000 */ nop
/* 18400 8003D000 46020000 */ add.s $f0, $f0, $f2
/* 18404 8003D004 E7A0001C */ swc1 $f0, 0x1c($sp)
/* 18408 8003D008 3C040003 */ lui $a0, 3
/* 1840C 8003D00C 34848000 */ ori $a0, $a0, 0x8000
/* 18410 8003D010 27A20024 */ addiu $v0, $sp, 0x24
/* 18414 8003D014 27A50018 */ addiu $a1, $sp, 0x18
/* 18418 8003D018 27A6001C */ addiu $a2, $sp, 0x1c
/* 1841C 8003D01C 3C014180 */ lui $at, 0x4180
/* 18420 8003D020 4481A000 */ mtc1 $at, $f20
/* 18424 8003D024 C6000038 */ lwc1 $f0, 0x38($s0)
/* 18428 8003D028 C6020040 */ lwc1 $f2, 0x40($s0)
/* 1842C 8003D02C 27A70020 */ addiu $a3, $sp, 0x20
/* 18430 8003D030 E7B40024 */ swc1 $f20, 0x24($sp)
/* 18434 8003D034 E7A00018 */ swc1 $f0, 0x18($sp)
/* 18438 8003D038 E7A20020 */ swc1 $f2, 0x20($sp)
/* 1843C 8003D03C 0C0372D7 */ jal func_800DCB5C
/* 18440 8003D040 AFA20010 */ sw $v0, 0x10($sp)
/* 18444 8003D044 10400008 */ beqz $v0, .L8003D068
/* 18448 8003D048 0000102D */ daddu $v0, $zero, $zero
/* 1844C 8003D04C C7A00024 */ lwc1 $f0, 0x24($sp)
/* 18450 8003D050 4614003E */ c.le.s $f0, $f20
/* 18454 8003D054 00000000 */ nop
/* 18458 8003D058 45000003 */ bc1f .L8003D068
/* 1845C 8003D05C 00000000 */ nop
/* 18460 8003D060 3C028011 */ lui $v0, %hi(D_8010CB38)
/* 18464 8003D064 8C42CB38 */ lw $v0, %lo(D_8010CB38)($v0)
.L8003D068:
/* 18468 8003D068 8FBF002C */ lw $ra, 0x2c($sp)
/* 1846C 8003D06C 8FB00028 */ lw $s0, 0x28($sp)
/* 18470 8003D070 D7B40030 */ ldc1 $f20, 0x30($sp)
/* 18474 8003D074 03E00008 */ jr $ra
/* 18478 8003D078 27BD0038 */ addiu $sp, $sp, 0x38