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

83 lines
4.2 KiB
ArmAsm

.set noat # allow manual use of $at
.set noreorder # don't insert nops after branches
glabel func_80061F00
/* 3D300 80061F00 27BDFFB0 */ addiu $sp, $sp, -0x50
/* 3D304 80061F04 F7BA0038 */ sdc1 $f26, 0x38($sp)
/* 3D308 80061F08 C7BA0060 */ lwc1 $f26, 0x60($sp)
/* 3D30C 80061F0C F7B60028 */ sdc1 $f22, 0x28($sp)
/* 3D310 80061F10 C7B60064 */ lwc1 $f22, 0x64($sp)
/* 3D314 80061F14 F7B40020 */ sdc1 $f20, 0x20($sp)
/* 3D318 80061F18 C7B40068 */ lwc1 $f20, 0x68($sp)
/* 3D31C 80061F1C AFB10014 */ sw $s1, 0x14($sp)
/* 3D320 80061F20 8FB1006C */ lw $s1, 0x6c($sp)
/* 3D324 80061F24 F7BC0040 */ sdc1 $f28, 0x40($sp)
/* 3D328 80061F28 4485E000 */ mtc1 $a1, $f28
/* 3D32C 80061F2C F7B80030 */ sdc1 $f24, 0x30($sp)
/* 3D330 80061F30 4486C000 */ mtc1 $a2, $f24
/* 3D334 80061F34 AFB00010 */ sw $s0, 0x10($sp)
/* 3D338 80061F38 F7BE0048 */ sdc1 $f30, 0x48($sp)
/* 3D33C 80061F3C 4487F000 */ mtc1 $a3, $f30
/* 3D340 80061F40 AFBF0018 */ sw $ra, 0x18($sp)
/* 3D344 80061F44 0C019D20 */ jal func_80067480
/* 3D348 80061F48 00808021 */ addu $s0, $a0, $zero
/* 3D34C 80061F4C 461CC001 */ sub.s $f0, $f24, $f28
/* 3D350 80061F50 461CC600 */ add.s $f24, $f24, $f28
/* 3D354 80061F54 4600C603 */ div.s $f24, $f24, $f0
/* 3D358 80061F58 4616B180 */ add.s $f6, $f22, $f22
/* 3D35C 80061F5C 46003203 */ div.s $f8, $f6, $f0
/* 3D360 80061F60 461ED081 */ sub.s $f2, $f26, $f30
/* 3D364 80061F64 46023183 */ div.s $f6, $f6, $f2
/* 3D368 80061F68 461ED680 */ add.s $f26, $f26, $f30
/* 3D36C 80061F6C 4602D683 */ div.s $f26, $f26, $f2
/* 3D370 80061F70 4616A101 */ sub.s $f4, $f20, $f22
/* 3D374 80061F74 4616A080 */ add.s $f2, $f20, $f22
/* 3D378 80061F78 46001087 */ neg.s $f2, $f2
/* 3D37C 80061F7C 46041083 */ div.s $f2, $f2, $f4
/* 3D380 80061F80 3C01C000 */ lui $at, 0xc000
/* 3D384 80061F84 44810000 */ mtc1 $at, $f0
/* 3D388 80061F88 00000000 */ nop
/* 3D38C 80061F8C 4600A502 */ mul.s $f20, $f20, $f0
/* 3D390 80061F90 00000000 */ nop
/* 3D394 80061F94 4616A502 */ mul.s $f20, $f20, $f22
/* 3D398 80061F98 4604A503 */ div.s $f20, $f20, $f4
/* 3D39C 80061F9C 3C01BF80 */ lui $at, 0xbf80
/* 3D3A0 80061FA0 44810000 */ mtc1 $at, $f0
/* 3D3A4 80061FA4 00002821 */ addu $a1, $zero, $zero
/* 3D3A8 80061FA8 AE00003C */ sw $zero, 0x3c($s0)
/* 3D3AC 80061FAC E600002C */ swc1 $f0, 0x2c($s0)
/* 3D3B0 80061FB0 E6180020 */ swc1 $f24, 0x20($s0)
/* 3D3B4 80061FB4 E6080000 */ swc1 $f8, ($s0)
/* 3D3B8 80061FB8 E6060014 */ swc1 $f6, 0x14($s0)
/* 3D3BC 80061FBC E61A0024 */ swc1 $f26, 0x24($s0)
/* 3D3C0 80061FC0 E6020028 */ swc1 $f2, 0x28($s0)
/* 3D3C4 80061FC4 E6140038 */ swc1 $f20, 0x38($s0)
.L80061FC8:
/* 3D3C8 80061FC8 00002021 */ addu $a0, $zero, $zero
/* 3D3CC 80061FCC 02001821 */ addu $v1, $s0, $zero
.L80061FD0:
/* 3D3D0 80061FD0 C4600000 */ lwc1 $f0, ($v1)
/* 3D3D4 80061FD4 44915000 */ mtc1 $s1, $f10
/* 3D3D8 80061FD8 00000000 */ nop
/* 3D3DC 80061FDC 460A0002 */ mul.s $f0, $f0, $f10
/* 3D3E0 80061FE0 24840001 */ addiu $a0, $a0, 1
/* 3D3E4 80061FE4 28820004 */ slti $v0, $a0, 4
/* 3D3E8 80061FE8 E4600000 */ swc1 $f0, ($v1)
/* 3D3EC 80061FEC 1440FFF8 */ bnez $v0, .L80061FD0
/* 3D3F0 80061FF0 24630004 */ addiu $v1, $v1, 4
/* 3D3F4 80061FF4 24A50001 */ addiu $a1, $a1, 1
/* 3D3F8 80061FF8 28A20004 */ slti $v0, $a1, 4
/* 3D3FC 80061FFC 1440FFF2 */ bnez $v0, .L80061FC8
/* 3D400 80062000 26100010 */ addiu $s0, $s0, 0x10
/* 3D404 80062004 8FBF0018 */ lw $ra, 0x18($sp)
/* 3D408 80062008 8FB10014 */ lw $s1, 0x14($sp)
/* 3D40C 8006200C 8FB00010 */ lw $s0, 0x10($sp)
/* 3D410 80062010 D7BE0048 */ ldc1 $f30, 0x48($sp)
/* 3D414 80062014 D7BC0040 */ ldc1 $f28, 0x40($sp)
/* 3D418 80062018 D7BA0038 */ ldc1 $f26, 0x38($sp)
/* 3D41C 8006201C D7B80030 */ ldc1 $f24, 0x30($sp)
/* 3D420 80062020 D7B60028 */ ldc1 $f22, 0x28($sp)
/* 3D424 80062024 D7B40020 */ ldc1 $f20, 0x20($sp)
/* 3D428 80062028 03E00008 */ jr $ra
/* 3D42C 8006202C 27BD0050 */ addiu $sp, $sp, 0x50