papermario/ver/jp/asm/nonmatchings/3CCD0/func_80061970.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

40 lines
2.0 KiB
ArmAsm

.set noat # allow manual use of $at
.set noreorder # don't insert nops after branches
glabel func_80061970
/* 3CD70 80061970 27BDFFE8 */ addiu $sp, $sp, -0x18
/* 3CD74 80061974 AFB00010 */ sw $s0, 0x10($sp)
/* 3CD78 80061978 AFBF0014 */ sw $ra, 0x14($sp)
/* 3CD7C 8006197C 0C019765 */ jal func_80065D94
/* 3CD80 80061980 00808021 */ addu $s0, $a0, $zero
/* 3CD84 80061984 3C03800A */ lui $v1, %hi(D_8009A5FC)
/* 3CD88 80061988 9063A5FC */ lbu $v1, %lo(D_8009A5FC)($v1)
/* 3CD8C 8006198C 24020001 */ addiu $v0, $zero, 1
/* 3CD90 80061990 1062000B */ beq $v1, $v0, .L800619C0
/* 3CD94 80061994 00000000 */ nop
/* 3CD98 80061998 0C0186A5 */ jal func_80061A94
/* 3CD9C 8006199C 00000000 */ nop
/* 3CDA0 800619A0 3C05800B */ lui $a1, %hi(D_800B0EB0)
/* 3CDA4 800619A4 24A50EB0 */ addiu $a1, $a1, %lo(D_800B0EB0)
/* 3CDA8 800619A8 0C019724 */ jal func_80065C90
/* 3CDAC 800619AC 24040001 */ addiu $a0, $zero, 1
/* 3CDB0 800619B0 02002021 */ addu $a0, $s0, $zero
/* 3CDB4 800619B4 00002821 */ addu $a1, $zero, $zero
/* 3CDB8 800619B8 0C0195B0 */ jal func_800656C0
/* 3CDBC 800619BC 24060001 */ addiu $a2, $zero, 1
.L800619C0:
/* 3CDC0 800619C0 3C05800B */ lui $a1, %hi(D_800B0EB0)
/* 3CDC4 800619C4 24A50EB0 */ addiu $a1, $a1, %lo(D_800B0EB0)
/* 3CDC8 800619C8 0C019724 */ jal func_80065C90
/* 3CDCC 800619CC 00002021 */ addu $a0, $zero, $zero
/* 3CDD0 800619D0 24030001 */ addiu $v1, $zero, 1
/* 3CDD4 800619D4 3C01800A */ lui $at, %hi(D_8009A5FC)
/* 3CDD8 800619D8 A023A5FC */ sb $v1, %lo(D_8009A5FC)($at)
/* 3CDDC 800619DC 0C019780 */ jal func_80065E00
/* 3CDE0 800619E0 00408021 */ addu $s0, $v0, $zero
/* 3CDE4 800619E4 02001021 */ addu $v0, $s0, $zero
/* 3CDE8 800619E8 8FBF0014 */ lw $ra, 0x14($sp)
/* 3CDEC 800619EC 8FB00010 */ lw $s0, 0x10($sp)
/* 3CDF0 800619F0 03E00008 */ jr $ra
/* 3CDF4 800619F4 27BD0018 */ addiu $sp, $sp, 0x18