papermario/ver/jp/asm/nonmatchings/35770/func_8005A8B0.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

71 lines
3.5 KiB
ArmAsm

.set noat # allow manual use of $at
.set noreorder # don't insert nops after branches
glabel func_8005A8B0
/* 35CB0 8005A8B0 27BDFFC8 */ addiu $sp, $sp, -0x38
/* 35CB4 8005A8B4 AFB50024 */ sw $s5, 0x24($sp)
/* 35CB8 8005A8B8 0080A82D */ daddu $s5, $a0, $zero
/* 35CBC 8005A8BC AFB60028 */ sw $s6, 0x28($sp)
/* 35CC0 8005A8C0 00A0B02D */ daddu $s6, $a1, $zero
/* 35CC4 8005A8C4 AFB7002C */ sw $s7, 0x2c($sp)
/* 35CC8 8005A8C8 00C0B82D */ daddu $s7, $a2, $zero
/* 35CCC 8005A8CC 3C028009 */ lui $v0, %hi(D_800934C0)
/* 35CD0 8005A8D0 244234C0 */ addiu $v0, $v0, %lo(D_800934C0)
/* 35CD4 8005A8D4 AFBF0030 */ sw $ra, 0x30($sp)
/* 35CD8 8005A8D8 AFB40020 */ sw $s4, 0x20($sp)
/* 35CDC 8005A8DC AFB3001C */ sw $s3, 0x1c($sp)
/* 35CE0 8005A8E0 AFB20018 */ sw $s2, 0x18($sp)
/* 35CE4 8005A8E4 AFB10014 */ sw $s1, 0x14($sp)
/* 35CE8 8005A8E8 AFB00010 */ sw $s0, 0x10($sp)
/* 35CEC 8005A8EC 8C440004 */ lw $a0, 4($v0)
/* 35CF0 8005A8F0 1080001F */ beqz $a0, .L8005A970
/* 35CF4 8005A8F4 0000A02D */ daddu $s4, $zero, $zero
/* 35CF8 8005A8F8 0280902D */ daddu $s2, $s4, $zero
.L8005A8FC:
/* 35CFC 8005A8FC 02421021 */ addu $v0, $s2, $v0
/* 35D00 8005A900 8C420000 */ lw $v0, ($v0)
/* 35D04 8005A904 18400012 */ blez $v0, .L8005A950
/* 35D08 8005A908 0000802D */ daddu $s0, $zero, $zero
/* 35D0C 8005A90C 3C028009 */ lui $v0, %hi(D_800934C0)
/* 35D10 8005A910 244234C0 */ addiu $v0, $v0, %lo(D_800934C0)
/* 35D14 8005A914 02429821 */ addu $s3, $s2, $v0
/* 35D18 8005A918 0080882D */ daddu $s1, $a0, $zero
.L8005A91C:
/* 35D1C 8005A91C 8E240000 */ lw $a0, ($s1)
/* 35D20 8005A920 0C01BB54 */ jal func_8006ED50
/* 35D24 8005A924 02A0282D */ daddu $a1, $s5, $zero
/* 35D28 8005A928 54400005 */ bnel $v0, $zero, .L8005A940
/* 35D2C 8005A92C 26100001 */ addiu $s0, $s0, 1
/* 35D30 8005A930 24020001 */ addiu $v0, $zero, 1
/* 35D34 8005A934 A6D40000 */ sh $s4, ($s6)
/* 35D38 8005A938 08016A5D */ j .L8005A974
/* 35D3C 8005A93C A6F00000 */ sh $s0, ($s7)
.L8005A940:
/* 35D40 8005A940 8E620000 */ lw $v0, ($s3)
/* 35D44 8005A944 0202102A */ slt $v0, $s0, $v0
/* 35D48 8005A948 1440FFF4 */ bnez $v0, .L8005A91C
/* 35D4C 8005A94C 26310020 */ addiu $s1, $s1, 0x20
.L8005A950:
/* 35D50 8005A950 26520010 */ addiu $s2, $s2, 0x10
/* 35D54 8005A954 3C048009 */ lui $a0, %hi(D_800934C4)
/* 35D58 8005A958 00922021 */ addu $a0, $a0, $s2
/* 35D5C 8005A95C 8C8434C4 */ lw $a0, %lo(D_800934C4)($a0)
/* 35D60 8005A960 3C028009 */ lui $v0, %hi(D_800934C0)
/* 35D64 8005A964 244234C0 */ addiu $v0, $v0, %lo(D_800934C0)
/* 35D68 8005A968 1480FFE4 */ bnez $a0, .L8005A8FC
/* 35D6C 8005A96C 26940001 */ addiu $s4, $s4, 1
.L8005A970:
/* 35D70 8005A970 0000102D */ daddu $v0, $zero, $zero
.L8005A974:
/* 35D74 8005A974 8FBF0030 */ lw $ra, 0x30($sp)
/* 35D78 8005A978 8FB7002C */ lw $s7, 0x2c($sp)
/* 35D7C 8005A97C 8FB60028 */ lw $s6, 0x28($sp)
/* 35D80 8005A980 8FB50024 */ lw $s5, 0x24($sp)
/* 35D84 8005A984 8FB40020 */ lw $s4, 0x20($sp)
/* 35D88 8005A988 8FB3001C */ lw $s3, 0x1c($sp)
/* 35D8C 8005A98C 8FB20018 */ lw $s2, 0x18($sp)
/* 35D90 8005A990 8FB10014 */ lw $s1, 0x14($sp)
/* 35D94 8005A994 8FB00010 */ lw $s0, 0x10($sp)
/* 35D98 8005A998 03E00008 */ jr $ra
/* 35D9C 8005A99C 27BD0038 */ addiu $sp, $sp, 0x38