papermario/ver/jp/asm/nonmatchings/20B80/func_80045C60.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

39 lines
1.9 KiB
ArmAsm

.set noat # allow manual use of $at
.set noreorder # don't insert nops after branches
glabel func_80045C60
/* 21060 80045C60 27BDFFE8 */ addiu $sp, $sp, -0x18
/* 21064 80045C64 AFBF0014 */ sw $ra, 0x14($sp)
/* 21068 80045C68 0C011652 */ jal func_80045948
/* 2106C 80045C6C AFB00010 */ sw $s0, 0x10($sp)
/* 21070 80045C70 0040802D */ daddu $s0, $v0, $zero
/* 21074 80045C74 12000015 */ beqz $s0, .L80045CCC
/* 21078 80045C78 24042C00 */ addiu $a0, $zero, 0x2c00
/* 2107C 80045C7C 3C028004 */ lui $v0, %hi(func_80045CDC)
/* 21080 80045C80 24425CDC */ addiu $v0, $v0, %lo(func_80045CDC)
/* 21084 80045C84 AE020004 */ sw $v0, 4($s0)
/* 21088 80045C88 3C028004 */ lui $v0, %hi(func_8004628C)
/* 2108C 80045C8C 2442628C */ addiu $v0, $v0, %lo(func_8004628C)
/* 21090 80045C90 AE000000 */ sw $zero, ($s0)
/* 21094 80045C94 AE000008 */ sw $zero, 8($s0)
/* 21098 80045C98 0C00AAFA */ jal func_8002ABE8
/* 2109C 80045C9C AE02000C */ sw $v0, 0xc($s0)
/* 210A0 80045CA0 AE020018 */ sw $v0, 0x18($s0)
/* 210A4 80045CA4 3C01800A */ lui $at, %hi(D_8009ED54)
/* 210A8 80045CA8 AC22ED54 */ sw $v0, %lo(D_8009ED54)($at)
/* 210AC 80045CAC 14400003 */ bnez $v0, .L80045CBC
/* 210B0 80045CB0 2403003F */ addiu $v1, $zero, 0x3f
.L80045CB4:
/* 210B4 80045CB4 0801172D */ j .L80045CB4
/* 210B8 80045CB8 00000000 */ nop
.L80045CBC:
/* 210BC 80045CBC AC400000 */ sw $zero, ($v0)
/* 210C0 80045CC0 2463FFFF */ addiu $v1, $v1, -1
/* 210C4 80045CC4 0461FFFD */ bgez $v1, .L80045CBC
/* 210C8 80045CC8 244200B0 */ addiu $v0, $v0, 0xb0
.L80045CCC:
/* 210CC 80045CCC 8FBF0014 */ lw $ra, 0x14($sp)
/* 210D0 80045CD0 8FB00010 */ lw $s0, 0x10($sp)
/* 210D4 80045CD4 03E00008 */ jr $ra
/* 210D8 80045CD8 27BD0018 */ addiu $sp, $sp, 0x18