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

123 lines
6.2 KiB
ArmAsm

.set noat # allow manual use of $at
.set noreorder # don't insert nops after branches
glabel func_80063EE0
/* 3F2E0 80063EE0 3C018009 */ lui $at, %hi(D_80093DA0)
/* 3F2E4 80063EE4 C4203DA0 */ lwc1 $f0, %lo(D_80093DA0)($at)
/* 3F2E8 80063EE8 44859000 */ mtc1 $a1, $f18
/* 3F2EC 80063EEC 27BDFFB0 */ addiu $sp, $sp, -0x50
/* 3F2F0 80063EF0 F7BC0040 */ sdc1 $f28, 0x40($sp)
/* 3F2F4 80063EF4 F7B40020 */ sdc1 $f20, 0x20($sp)
/* 3F2F8 80063EF8 46009502 */ mul.s $f20, $f18, $f0
/* 3F2FC 80063EFC C7BC0060 */ lwc1 $f28, 0x60($sp)
/* 3F300 80063F00 44869000 */ mtc1 $a2, $f18
/* 3F304 80063F04 AFB00010 */ sw $s0, 0x10($sp)
/* 3F308 80063F08 F7B60028 */ sdc1 $f22, 0x28($sp)
/* 3F30C 80063F0C 46009582 */ mul.s $f22, $f18, $f0
/* 3F310 80063F10 44879000 */ mtc1 $a3, $f18
/* 3F314 80063F14 00808021 */ addu $s0, $a0, $zero
/* 3F318 80063F18 AFBF0018 */ sw $ra, 0x18($sp)
/* 3F31C 80063F1C AFB10014 */ sw $s1, 0x14($sp)
/* 3F320 80063F20 F7BE0048 */ sdc1 $f30, 0x48($sp)
/* 3F324 80063F24 F7BA0038 */ sdc1 $f26, 0x38($sp)
/* 3F328 80063F28 F7B80030 */ sdc1 $f24, 0x30($sp)
/* 3F32C 80063F2C 46009602 */ mul.s $f24, $f18, $f0
/* 3F330 80063F30 0C00A84B */ jal func_8002A12C
/* 3F334 80063F34 4600A306 */ mov.s $f12, $f20
/* 3F338 80063F38 44110000 */ mfc1 $s1, $f0
/* 3F33C 80063F3C 00000000 */ nop
/* 3F340 80063F40 0C00A864 */ jal func_8002A190
/* 3F344 80063F44 4600A306 */ mov.s $f12, $f20
/* 3F348 80063F48 46000686 */ mov.s $f26, $f0
/* 3F34C 80063F4C 0C00A84B */ jal func_8002A12C
/* 3F350 80063F50 4600B306 */ mov.s $f12, $f22
/* 3F354 80063F54 4600B306 */ mov.s $f12, $f22
/* 3F358 80063F58 0C00A864 */ jal func_8002A190
/* 3F35C 80063F5C 46000506 */ mov.s $f20, $f0
/* 3F360 80063F60 46000786 */ mov.s $f30, $f0
/* 3F364 80063F64 0C00A84B */ jal func_8002A12C
/* 3F368 80063F68 4600C306 */ mov.s $f12, $f24
/* 3F36C 80063F6C 4600C306 */ mov.s $f12, $f24
/* 3F370 80063F70 0C00A864 */ jal func_8002A190
/* 3F374 80063F74 46000586 */ mov.s $f22, $f0
/* 3F378 80063F78 00000000 */ nop
/* 3F37C 80063F7C 4600F382 */ mul.s $f14, $f30, $f0
/* 3F380 80063F80 00000000 */ nop
/* 3F384 80063F84 4616F402 */ mul.s $f16, $f30, $f22
/* 3F388 80063F88 00000000 */ nop
/* 3F38C 80063F8C 4616D082 */ mul.s $f2, $f26, $f22
/* 3F390 80063F90 00000000 */ nop
/* 3F394 80063F94 4600D182 */ mul.s $f6, $f26, $f0
/* 3F398 80063F98 44919000 */ mtc1 $s1, $f18
/* 3F39C 80063F9C 00000000 */ nop
/* 3F3A0 80063FA0 46149102 */ mul.s $f4, $f18, $f20
/* 3F3A4 80063FA4 4600A307 */ neg.s $f12, $f20
/* 3F3A8 80063FA8 461C6302 */ mul.s $f12, $f12, $f28
/* 3F3AC 80063FAC 00000000 */ nop
/* 3F3B0 80063FB0 4614D502 */ mul.s $f20, $f26, $f20
/* 3F3B4 80063FB4 00000000 */ nop
/* 3F3B8 80063FB8 461E9282 */ mul.s $f10, $f18, $f30
/* 3F3BC 80063FBC 00000000 */ nop
/* 3F3C0 80063FC0 461ED682 */ mul.s $f26, $f26, $f30
/* 3F3C4 80063FC4 00000000 */ nop
/* 3F3C8 80063FC8 461C7382 */ mul.s $f14, $f14, $f28
/* 3F3CC 80063FCC 00000000 */ nop
/* 3F3D0 80063FD0 461C8402 */ mul.s $f16, $f16, $f28
/* 3F3D4 80063FD4 00000000 */ nop
/* 3F3D8 80063FD8 46002202 */ mul.s $f8, $f4, $f0
/* 3F3DC 80063FDC 00000000 */ nop
/* 3F3E0 80063FE0 46162102 */ mul.s $f4, $f4, $f22
/* 3F3E4 80063FE4 00000000 */ nop
/* 3F3E8 80063FE8 461C5282 */ mul.s $f10, $f10, $f28
/* 3F3EC 80063FEC 00000000 */ nop
/* 3F3F0 80063FF0 461CD682 */ mul.s $f26, $f26, $f28
/* 3F3F4 80063FF4 46062100 */ add.s $f4, $f4, $f6
/* 3F3F8 80063FF8 4600A182 */ mul.s $f6, $f20, $f0
/* 3F3FC 80063FFC 46024201 */ sub.s $f8, $f8, $f2
/* 3F400 80064000 46169082 */ mul.s $f2, $f18, $f22
/* 3F404 80064004 00000000 */ nop
/* 3F408 80064008 4616A502 */ mul.s $f20, $f20, $f22
/* 3F40C 8006400C 00000000 */ nop
/* 3F410 80064010 46009482 */ mul.s $f18, $f18, $f0
/* 3F414 80064014 3C013F80 */ lui $at, 0x3f80
/* 3F418 80064018 44810000 */ mtc1 $at, $f0
/* 3F41C 8006401C 461C4202 */ mul.s $f8, $f8, $f28
/* 3F420 80064020 AE00000C */ sw $zero, 0xc($s0)
/* 3F424 80064024 AE00001C */ sw $zero, 0x1c($s0)
/* 3F428 80064028 AE00002C */ sw $zero, 0x2c($s0)
/* 3F42C 8006402C 44119000 */ mfc1 $s1, $f18
/* 3F430 80064030 C7B20064 */ lwc1 $f18, 0x64($sp)
/* 3F434 80064034 461C2102 */ mul.s $f4, $f4, $f28
/* 3F438 80064038 E6120030 */ swc1 $f18, 0x30($s0)
/* 3F43C 8006403C C7B20068 */ lwc1 $f18, 0x68($sp)
/* 3F440 80064040 46023180 */ add.s $f6, $f6, $f2
/* 3F444 80064044 E6120034 */ swc1 $f18, 0x34($s0)
/* 3F448 80064048 C7B2006C */ lwc1 $f18, 0x6c($sp)
/* 3F44C 8006404C 461C3182 */ mul.s $f6, $f6, $f28
/* 3F450 80064050 E6120038 */ swc1 $f18, 0x38($s0)
/* 3F454 80064054 44919000 */ mtc1 $s1, $f18
/* 3F458 80064058 00000000 */ nop
/* 3F45C 8006405C 4612A501 */ sub.s $f20, $f20, $f18
/* 3F460 80064060 E600003C */ swc1 $f0, 0x3c($s0)
/* 3F464 80064064 E60C0008 */ swc1 $f12, 8($s0)
/* 3F468 80064068 E60E0000 */ swc1 $f14, ($s0)
/* 3F46C 8006406C 461CA502 */ mul.s $f20, $f20, $f28
/* 3F470 80064070 E6100004 */ swc1 $f16, 4($s0)
/* 3F474 80064074 E60A0018 */ swc1 $f10, 0x18($s0)
/* 3F478 80064078 E61A0028 */ swc1 $f26, 0x28($s0)
/* 3F47C 8006407C E6080010 */ swc1 $f8, 0x10($s0)
/* 3F480 80064080 E6040014 */ swc1 $f4, 0x14($s0)
/* 3F484 80064084 E6060020 */ swc1 $f6, 0x20($s0)
/* 3F488 80064088 E6140024 */ swc1 $f20, 0x24($s0)
/* 3F48C 8006408C 8FBF0018 */ lw $ra, 0x18($sp)
/* 3F490 80064090 8FB10014 */ lw $s1, 0x14($sp)
/* 3F494 80064094 8FB00010 */ lw $s0, 0x10($sp)
/* 3F498 80064098 D7BE0048 */ ldc1 $f30, 0x48($sp)
/* 3F49C 8006409C D7BC0040 */ ldc1 $f28, 0x40($sp)
/* 3F4A0 800640A0 D7BA0038 */ ldc1 $f26, 0x38($sp)
/* 3F4A4 800640A4 D7B80030 */ ldc1 $f24, 0x30($sp)
/* 3F4A8 800640A8 D7B60028 */ ldc1 $f22, 0x28($sp)
/* 3F4AC 800640AC D7B40020 */ ldc1 $f20, 0x20($sp)
/* 3F4B0 800640B0 03E00008 */ jr $ra
/* 3F4B4 800640B4 27BD0050 */ addiu $sp, $sp, 0x50