papermario/ver/jp/asm/nonmatchings/42B0/func_8002A374.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

355 lines
16 KiB
ArmAsm

.set noat # allow manual use of $at
.set noreorder # don't insert nops after branches
glabel func_8002A374
/* 5774 8002A374 27BDFFC8 */ addiu $sp, $sp, -0x38
/* 5778 8002A378 F7B60028 */ sdc1 $f22, 0x28($sp)
/* 577C 8002A37C 4485B000 */ mtc1 $a1, $f22
/* 5780 8002A380 F7B80030 */ sdc1 $f24, 0x30($sp)
/* 5784 8002A384 4486C000 */ mtc1 $a2, $f24
/* 5788 8002A388 AFB00010 */ sw $s0, 0x10($sp)
/* 578C 8002A38C 8FB00048 */ lw $s0, 0x48($sp)
/* 5790 8002A390 AFB10014 */ sw $s1, 0x14($sp)
/* 5794 8002A394 AFBF0018 */ sw $ra, 0x18($sp)
/* 5798 8002A398 F7B40020 */ sdc1 $f20, 0x20($sp)
/* 579C 8002A39C 16000003 */ bnez $s0, .L8002A3AC
/* 57A0 8002A3A0 00E0882D */ daddu $s1, $a3, $zero
/* 57A4 8002A3A4 0800AA29 */ j .L8002A8A4
/* 57A8 8002A3A8 4600C006 */ mov.s $f0, $f24
.L8002A3AC:
/* 57AC 8002A3AC 2C82000D */ sltiu $v0, $a0, 0xd
/* 57B0 8002A3B0 1040013B */ beqz $v0, .L8002A8A0
/* 57B4 8002A3B4 00041080 */ sll $v0, $a0, 2
/* 57B8 8002A3B8 3C018009 */ lui $at, %hi(D_80097D70)
/* 57BC 8002A3BC 00220821 */ addu $at, $at, $v0
/* 57C0 8002A3C0 8C227D70 */ lw $v0, %lo(D_80097D70)($at)
/* 57C4 8002A3C4 00400008 */ jr $v0
/* 57C8 8002A3C8 00000000 */ nop
/* 57CC 8002A3CC 4616C001 */ sub.s $f0, $f24, $f22
/* 57D0 8002A3D0 44911000 */ mtc1 $s1, $f2
/* 57D4 8002A3D4 00000000 */ nop
/* 57D8 8002A3D8 468010A0 */ cvt.s.w $f2, $f2
/* 57DC 8002A3DC 46020002 */ mul.s $f0, $f0, $f2
/* 57E0 8002A3E0 00000000 */ nop
/* 57E4 8002A3E4 44901000 */ mtc1 $s0, $f2
/* 57E8 8002A3E8 00000000 */ nop
/* 57EC 8002A3EC 468010A0 */ cvt.s.w $f2, $f2
/* 57F0 8002A3F0 0800A928 */ j .L8002A4A0
/* 57F4 8002A3F4 46020003 */ div.s $f0, $f0, $f2
/* 57F8 8002A3F8 02310018 */ mult $s1, $s1
/* 57FC 8002A3FC 00004012 */ mflo $t0
/* 5800 8002A400 00000000 */ nop
/* 5804 8002A404 0800A91D */ j .L8002A474
/* 5808 8002A408 02100018 */ mult $s0, $s0
/* 580C 8002A40C 02310018 */ mult $s1, $s1
/* 5810 8002A410 00004012 */ mflo $t0
/* 5814 8002A414 00000000 */ nop
/* 5818 8002A418 0800A915 */ j .L8002A454
/* 581C 8002A41C 02100018 */ mult $s0, $s0
/* 5820 8002A420 02310018 */ mult $s1, $s1
/* 5824 8002A424 00004012 */ mflo $t0
/* 5828 8002A428 00000000 */ nop
/* 582C 8002A42C 00000000 */ nop
/* 5830 8002A430 02100018 */ mult $s0, $s0
/* 5834 8002A434 00001012 */ mflo $v0
/* 5838 8002A438 00000000 */ nop
/* 583C 8002A43C 00000000 */ nop
/* 5840 8002A440 01110018 */ mult $t0, $s1
/* 5844 8002A444 00004012 */ mflo $t0
/* 5848 8002A448 00000000 */ nop
/* 584C 8002A44C 00000000 */ nop
/* 5850 8002A450 00500018 */ mult $v0, $s0
.L8002A454:
/* 5854 8002A454 00001012 */ mflo $v0
/* 5858 8002A458 00000000 */ nop
/* 585C 8002A45C 00000000 */ nop
/* 5860 8002A460 01110018 */ mult $t0, $s1
/* 5864 8002A464 00004012 */ mflo $t0
/* 5868 8002A468 00000000 */ nop
/* 586C 8002A46C 00000000 */ nop
/* 5870 8002A470 00500018 */ mult $v0, $s0
.L8002A474:
/* 5874 8002A474 4616C081 */ sub.s $f2, $f24, $f22
/* 5878 8002A478 44880000 */ mtc1 $t0, $f0
/* 587C 8002A47C 00000000 */ nop
/* 5880 8002A480 46800020 */ cvt.s.w $f0, $f0
/* 5884 8002A484 46020002 */ mul.s $f0, $f0, $f2
/* 5888 8002A488 00000000 */ nop
/* 588C 8002A48C 00001012 */ mflo $v0
/* 5890 8002A490 44821000 */ mtc1 $v0, $f2
/* 5894 8002A494 00000000 */ nop
/* 5898 8002A498 468010A0 */ cvt.s.w $f2, $f2
/* 589C 8002A49C 46020003 */ div.s $f0, $f0, $f2
.L8002A4A0:
/* 58A0 8002A4A0 0800AA29 */ j .L8002A8A4
/* 58A4 8002A4A4 4600B000 */ add.s $f0, $f22, $f0
/* 58A8 8002A4A8 44916000 */ mtc1 $s1, $f12
/* 58AC 8002A4AC 00000000 */ nop
/* 58B0 8002A4B0 46806320 */ cvt.s.w $f12, $f12
/* 58B4 8002A4B4 4490A000 */ mtc1 $s0, $f20
/* 58B8 8002A4B8 00000000 */ nop
/* 58BC 8002A4BC 4680A520 */ cvt.s.w $f20, $f20
/* 58C0 8002A4C0 46146303 */ div.s $f12, $f12, $f20
/* 58C4 8002A4C4 3C018009 */ lui $at, %hi(D_80097DA8)
/* 58C8 8002A4C8 D4207DA8 */ ldc1 $f0, %lo(D_80097DA8)($at)
/* 58CC 8002A4CC 46006321 */ cvt.d.s $f12, $f12
/* 58D0 8002A4D0 46206302 */ mul.d $f12, $f12, $f0
/* 58D4 8002A4D4 00000000 */ nop
/* 58D8 8002A4D8 3C014010 */ lui $at, 0x4010
/* 58DC 8002A4DC 44810800 */ mtc1 $at, $f1
/* 58E0 8002A4E0 44800000 */ mtc1 $zero, $f0
/* 58E4 8002A4E4 00000000 */ nop
/* 58E8 8002A4E8 46206302 */ mul.d $f12, $f12, $f0
/* 58EC 8002A4EC 0800A956 */ j .L8002A558
/* 58F0 8002A4F0 00000000 */ nop
/* 58F4 8002A4F4 02310018 */ mult $s1, $s1
/* 58F8 8002A4F8 4490A000 */ mtc1 $s0, $f20
/* 58FC 8002A4FC 00000000 */ nop
/* 5900 8002A500 4680A520 */ cvt.s.w $f20, $f20
/* 5904 8002A504 3C018009 */ lui $at, %hi(D_80097DB0)
/* 5908 8002A508 D4207DB0 */ ldc1 $f0, %lo(D_80097DB0)($at)
/* 590C 8002A50C 00001812 */ mflo $v1
/* 5910 8002A510 44836000 */ mtc1 $v1, $f12
/* 5914 8002A514 00000000 */ nop
/* 5918 8002A518 46806320 */ cvt.s.w $f12, $f12
/* 591C 8002A51C 46146303 */ div.s $f12, $f12, $f20
/* 5920 8002A520 46006321 */ cvt.d.s $f12, $f12
/* 5924 8002A524 46206302 */ mul.d $f12, $f12, $f0
/* 5928 8002A528 00000000 */ nop
/* 592C 8002A52C 3C014010 */ lui $at, 0x4010
/* 5930 8002A530 44810800 */ mtc1 $at, $f1
/* 5934 8002A534 44800000 */ mtc1 $zero, $f0
/* 5938 8002A538 00000000 */ nop
/* 593C 8002A53C 46206302 */ mul.d $f12, $f12, $f0
/* 5940 8002A540 00000000 */ nop
/* 5944 8002A544 3C01402E */ lui $at, 0x402e
/* 5948 8002A548 44810800 */ mtc1 $at, $f1
/* 594C 8002A54C 44800000 */ mtc1 $zero, $f0
/* 5950 8002A550 00000000 */ nop
/* 5954 8002A554 46206303 */ div.d $f12, $f12, $f0
.L8002A558:
/* 5958 8002A558 0C00A864 */ jal func_8002A190
/* 595C 8002A55C 46206320 */ cvt.s.d $f12, $f12
/* 5960 8002A560 4614A502 */ mul.s $f20, $f20, $f20
/* 5964 8002A564 00000000 */ nop
/* 5968 8002A568 4616C081 */ sub.s $f2, $f24, $f22
/* 596C 8002A56C 46001082 */ mul.s $f2, $f2, $f0
/* 5970 8002A570 00000000 */ nop
/* 5974 8002A574 02111023 */ subu $v0, $s0, $s1
/* 5978 8002A578 44820000 */ mtc1 $v0, $f0
/* 597C 8002A57C 00000000 */ nop
/* 5980 8002A580 46800020 */ cvt.s.w $f0, $f0
/* 5984 8002A584 46001082 */ mul.s $f2, $f2, $f0
/* 5988 8002A588 00000000 */ nop
/* 598C 8002A58C 46001082 */ mul.s $f2, $f2, $f0
/* 5990 8002A590 00000000 */ nop
/* 5994 8002A594 46141083 */ div.s $f2, $f2, $f20
/* 5998 8002A598 0800AA29 */ j .L8002A8A4
/* 599C 8002A59C 4602C001 */ sub.s $f0, $f24, $f2
/* 59A0 8002A5A0 02113823 */ subu $a3, $s0, $s1
/* 59A4 8002A5A4 00E70018 */ mult $a3, $a3
/* 59A8 8002A5A8 4616C101 */ sub.s $f4, $f24, $f22
/* 59AC 8002A5AC 00001812 */ mflo $v1
/* 59B0 8002A5B0 44830000 */ mtc1 $v1, $f0
/* 59B4 8002A5B4 00000000 */ nop
/* 59B8 8002A5B8 46800020 */ cvt.s.w $f0, $f0
/* 59BC 8002A5BC 46040002 */ mul.s $f0, $f0, $f4
/* 59C0 8002A5C0 00000000 */ nop
/* 59C4 8002A5C4 02100018 */ mult $s0, $s0
/* 59C8 8002A5C8 00001812 */ mflo $v1
/* 59CC 8002A5CC 44831000 */ mtc1 $v1, $f2
/* 59D0 8002A5D0 00000000 */ nop
/* 59D4 8002A5D4 468010A0 */ cvt.s.w $f2, $f2
/* 59D8 8002A5D8 0800A9A3 */ j .L8002A68C
/* 59DC 8002A5DC 4604B100 */ add.s $f4, $f22, $f4
/* 59E0 8002A5E0 02113823 */ subu $a3, $s0, $s1
/* 59E4 8002A5E4 00E70018 */ mult $a3, $a3
/* 59E8 8002A5E8 00001012 */ mflo $v0
/* 59EC 8002A5EC 00000000 */ nop
/* 59F0 8002A5F0 00000000 */ nop
/* 59F4 8002A5F4 00470018 */ mult $v0, $a3
/* 59F8 8002A5F8 00004012 */ mflo $t0
/* 59FC 8002A5FC 00000000 */ nop
/* 5A00 8002A600 0800A994 */ j .L8002A650
/* 5A04 8002A604 02100018 */ mult $s0, $s0
/* 5A08 8002A608 02113823 */ subu $a3, $s0, $s1
/* 5A0C 8002A60C 00E70018 */ mult $a3, $a3
/* 5A10 8002A610 00001012 */ mflo $v0
/* 5A14 8002A614 00000000 */ nop
/* 5A18 8002A618 00000000 */ nop
/* 5A1C 8002A61C 00470018 */ mult $v0, $a3
/* 5A20 8002A620 00004012 */ mflo $t0
/* 5A24 8002A624 00000000 */ nop
/* 5A28 8002A628 00000000 */ nop
/* 5A2C 8002A62C 02100018 */ mult $s0, $s0
/* 5A30 8002A630 00001012 */ mflo $v0
/* 5A34 8002A634 00000000 */ nop
/* 5A38 8002A638 00000000 */ nop
/* 5A3C 8002A63C 01070018 */ mult $t0, $a3
/* 5A40 8002A640 00004012 */ mflo $t0
/* 5A44 8002A644 00000000 */ nop
/* 5A48 8002A648 00000000 */ nop
/* 5A4C 8002A64C 00500018 */ mult $v0, $s0
.L8002A650:
/* 5A50 8002A650 4616C101 */ sub.s $f4, $f24, $f22
/* 5A54 8002A654 44880000 */ mtc1 $t0, $f0
/* 5A58 8002A658 00000000 */ nop
/* 5A5C 8002A65C 46800020 */ cvt.s.w $f0, $f0
/* 5A60 8002A660 46040002 */ mul.s $f0, $f0, $f4
/* 5A64 8002A664 00000000 */ nop
/* 5A68 8002A668 00001012 */ mflo $v0
/* 5A6C 8002A66C 00000000 */ nop
/* 5A70 8002A670 00000000 */ nop
/* 5A74 8002A674 00500018 */ mult $v0, $s0
/* 5A78 8002A678 4604B100 */ add.s $f4, $f22, $f4
/* 5A7C 8002A67C 00001012 */ mflo $v0
/* 5A80 8002A680 44821000 */ mtc1 $v0, $f2
/* 5A84 8002A684 00000000 */ nop
/* 5A88 8002A688 468010A0 */ cvt.s.w $f2, $f2
.L8002A68C:
/* 5A8C 8002A68C 46020003 */ div.s $f0, $f0, $f2
/* 5A90 8002A690 0800AA29 */ j .L8002A8A4
/* 5A94 8002A694 46002001 */ sub.s $f0, $f4, $f0
/* 5A98 8002A698 02310018 */ mult $s1, $s1
/* 5A9C 8002A69C 4490A000 */ mtc1 $s0, $f20
/* 5AA0 8002A6A0 00000000 */ nop
/* 5AA4 8002A6A4 4680A520 */ cvt.s.w $f20, $f20
/* 5AA8 8002A6A8 3C018009 */ lui $at, %hi(D_80097DB8)
/* 5AAC 8002A6AC D4207DB8 */ ldc1 $f0, %lo(D_80097DB8)($at)
/* 5AB0 8002A6B0 00001812 */ mflo $v1
/* 5AB4 8002A6B4 44836000 */ mtc1 $v1, $f12
/* 5AB8 8002A6B8 00000000 */ nop
/* 5ABC 8002A6BC 46806320 */ cvt.s.w $f12, $f12
/* 5AC0 8002A6C0 46146303 */ div.s $f12, $f12, $f20
/* 5AC4 8002A6C4 46006321 */ cvt.d.s $f12, $f12
/* 5AC8 8002A6C8 46206302 */ mul.d $f12, $f12, $f0
/* 5ACC 8002A6CC 00000000 */ nop
/* 5AD0 8002A6D0 3C014010 */ lui $at, 0x4010
/* 5AD4 8002A6D4 44810800 */ mtc1 $at, $f1
/* 5AD8 8002A6D8 44800000 */ mtc1 $zero, $f0
/* 5ADC 8002A6DC 00000000 */ nop
/* 5AE0 8002A6E0 46206302 */ mul.d $f12, $f12, $f0
/* 5AE4 8002A6E4 00000000 */ nop
/* 5AE8 8002A6E8 3C014044 */ lui $at, 0x4044
/* 5AEC 8002A6EC 44810800 */ mtc1 $at, $f1
/* 5AF0 8002A6F0 44800000 */ mtc1 $zero, $f0
/* 5AF4 8002A6F4 00000000 */ nop
/* 5AF8 8002A6F8 46206303 */ div.d $f12, $f12, $f0
/* 5AFC 8002A6FC 0C00A864 */ jal func_8002A190
/* 5B00 8002A700 46206320 */ cvt.s.d $f12, $f12
/* 5B04 8002A704 02111023 */ subu $v0, $s0, $s1
/* 5B08 8002A708 44821000 */ mtc1 $v0, $f2
/* 5B0C 8002A70C 00000000 */ nop
/* 5B10 8002A710 468010A0 */ cvt.s.w $f2, $f2
/* 5B14 8002A714 46020002 */ mul.s $f0, $f0, $f2
/* 5B18 8002A718 00000000 */ nop
/* 5B1C 8002A71C 4614A502 */ mul.s $f20, $f20, $f20
/* 5B20 8002A720 00000000 */ nop
/* 5B24 8002A724 46020002 */ mul.s $f0, $f0, $f2
/* 5B28 8002A728 00000000 */ nop
/* 5B2C 8002A72C 44801000 */ mtc1 $zero, $f2
/* 5B30 8002A730 46140103 */ div.s $f4, $f0, $f20
/* 5B34 8002A734 4602203C */ c.lt.s $f4, $f2
/* 5B38 8002A738 00000000 */ nop
/* 5B3C 8002A73C 45030001 */ bc1tl .L8002A744
/* 5B40 8002A740 46002107 */ neg.s $f4, $f4
.L8002A744:
/* 5B44 8002A744 4616C001 */ sub.s $f0, $f24, $f22
/* 5B48 8002A748 46040002 */ mul.s $f0, $f0, $f4
/* 5B4C 8002A74C 00000000 */ nop
/* 5B50 8002A750 0800AA29 */ j .L8002A8A4
/* 5B54 8002A754 4600C001 */ sub.s $f0, $f24, $f0
/* 5B58 8002A758 44916000 */ mtc1 $s1, $f12
/* 5B5C 8002A75C 00000000 */ nop
/* 5B60 8002A760 46806320 */ cvt.s.w $f12, $f12
/* 5B64 8002A764 3C018009 */ lui $at, %hi(D_80097DC0)
/* 5B68 8002A768 D4207DC0 */ ldc1 $f0, %lo(D_80097DC0)($at)
/* 5B6C 8002A76C 46006321 */ cvt.d.s $f12, $f12
/* 5B70 8002A770 46206302 */ mul.d $f12, $f12, $f0
/* 5B74 8002A774 00000000 */ nop
/* 5B78 8002A778 44900000 */ mtc1 $s0, $f0
/* 5B7C 8002A77C 00000000 */ nop
/* 5B80 8002A780 46800020 */ cvt.s.w $f0, $f0
/* 5B84 8002A784 46000021 */ cvt.d.s $f0, $f0
/* 5B88 8002A788 46206303 */ div.d $f12, $f12, $f0
/* 5B8C 8002A78C 0C00A864 */ jal func_8002A190
/* 5B90 8002A790 46206320 */ cvt.s.d $f12, $f12
/* 5B94 8002A794 4616C081 */ sub.s $f2, $f24, $f22
/* 5B98 8002A798 3C013FF0 */ lui $at, 0x3ff0
/* 5B9C 8002A79C 44812800 */ mtc1 $at, $f5
/* 5BA0 8002A7A0 44802000 */ mtc1 $zero, $f4
/* 5BA4 8002A7A4 46000021 */ cvt.d.s $f0, $f0
/* 5BA8 8002A7A8 46202101 */ sub.d $f4, $f4, $f0
/* 5BAC 8002A7AC 460010A1 */ cvt.d.s $f2, $f2
/* 5BB0 8002A7B0 46241082 */ mul.d $f2, $f2, $f4
/* 5BB4 8002A7B4 00000000 */ nop
/* 5BB8 8002A7B8 3C013FE0 */ lui $at, 0x3fe0
/* 5BBC 8002A7BC 44810800 */ mtc1 $at, $f1
/* 5BC0 8002A7C0 44800000 */ mtc1 $zero, $f0
/* 5BC4 8002A7C4 00000000 */ nop
/* 5BC8 8002A7C8 46201082 */ mul.d $f2, $f2, $f0
/* 5BCC 8002A7CC 00000000 */ nop
/* 5BD0 8002A7D0 4600B021 */ cvt.d.s $f0, $f22
/* 5BD4 8002A7D4 46220000 */ add.d $f0, $f0, $f2
/* 5BD8 8002A7D8 0800AA29 */ j .L8002A8A4
/* 5BDC 8002A7DC 46200020 */ cvt.s.d $f0, $f0
/* 5BE0 8002A7E0 44916000 */ mtc1 $s1, $f12
/* 5BE4 8002A7E4 00000000 */ nop
/* 5BE8 8002A7E8 46806320 */ cvt.s.w $f12, $f12
/* 5BEC 8002A7EC 3C018009 */ lui $at, %hi(D_80097DC8)
/* 5BF0 8002A7F0 D4207DC8 */ ldc1 $f0, %lo(D_80097DC8)($at)
/* 5BF4 8002A7F4 46006321 */ cvt.d.s $f12, $f12
/* 5BF8 8002A7F8 46206302 */ mul.d $f12, $f12, $f0
/* 5BFC 8002A7FC 00000000 */ nop
/* 5C00 8002A800 44900000 */ mtc1 $s0, $f0
/* 5C04 8002A804 00000000 */ nop
/* 5C08 8002A808 46800020 */ cvt.s.w $f0, $f0
/* 5C0C 8002A80C 46000021 */ cvt.d.s $f0, $f0
/* 5C10 8002A810 46206303 */ div.d $f12, $f12, $f0
/* 5C14 8002A814 0C00A84B */ jal func_8002A12C
/* 5C18 8002A818 46206320 */ cvt.s.d $f12, $f12
/* 5C1C 8002A81C 4616C081 */ sub.s $f2, $f24, $f22
/* 5C20 8002A820 46001082 */ mul.s $f2, $f2, $f0
/* 5C24 8002A824 00000000 */ nop
/* 5C28 8002A828 0800AA29 */ j .L8002A8A4
/* 5C2C 8002A82C 4602B000 */ add.s $f0, $f22, $f2
/* 5C30 8002A830 44916000 */ mtc1 $s1, $f12
/* 5C34 8002A834 00000000 */ nop
/* 5C38 8002A838 46806320 */ cvt.s.w $f12, $f12
/* 5C3C 8002A83C 3C018009 */ lui $at, %hi(D_80097DD0)
/* 5C40 8002A840 D4207DD0 */ ldc1 $f0, %lo(D_80097DD0)($at)
/* 5C44 8002A844 46006321 */ cvt.d.s $f12, $f12
/* 5C48 8002A848 46206302 */ mul.d $f12, $f12, $f0
/* 5C4C 8002A84C 00000000 */ nop
/* 5C50 8002A850 44900000 */ mtc1 $s0, $f0
/* 5C54 8002A854 00000000 */ nop
/* 5C58 8002A858 46800020 */ cvt.s.w $f0, $f0
/* 5C5C 8002A85C 46000021 */ cvt.d.s $f0, $f0
/* 5C60 8002A860 46206303 */ div.d $f12, $f12, $f0
/* 5C64 8002A864 0C00A864 */ jal func_8002A190
/* 5C68 8002A868 46206320 */ cvt.s.d $f12, $f12
/* 5C6C 8002A86C 4616C101 */ sub.s $f4, $f24, $f22
/* 5C70 8002A870 3C013FF0 */ lui $at, 0x3ff0
/* 5C74 8002A874 44811800 */ mtc1 $at, $f3
/* 5C78 8002A878 44801000 */ mtc1 $zero, $f2
/* 5C7C 8002A87C 46000021 */ cvt.d.s $f0, $f0
/* 5C80 8002A880 46201081 */ sub.d $f2, $f2, $f0
/* 5C84 8002A884 46002121 */ cvt.d.s $f4, $f4
/* 5C88 8002A888 46222102 */ mul.d $f4, $f4, $f2
/* 5C8C 8002A88C 00000000 */ nop
/* 5C90 8002A890 4600B021 */ cvt.d.s $f0, $f22
/* 5C94 8002A894 46240000 */ add.d $f0, $f0, $f4
/* 5C98 8002A898 0800AA29 */ j .L8002A8A4
/* 5C9C 8002A89C 46200020 */ cvt.s.d $f0, $f0
.L8002A8A0:
/* 5CA0 8002A8A0 44800000 */ mtc1 $zero, $f0
.L8002A8A4:
/* 5CA4 8002A8A4 8FBF0018 */ lw $ra, 0x18($sp)
/* 5CA8 8002A8A8 8FB10014 */ lw $s1, 0x14($sp)
/* 5CAC 8002A8AC 8FB00010 */ lw $s0, 0x10($sp)
/* 5CB0 8002A8B0 D7B80030 */ ldc1 $f24, 0x30($sp)
/* 5CB4 8002A8B4 D7B60028 */ ldc1 $f22, 0x28($sp)
/* 5CB8 8002A8B8 D7B40020 */ ldc1 $f20, 0x20($sp)
/* 5CBC 8002A8BC 03E00008 */ jr $ra
/* 5CC0 8002A8C0 27BD0038 */ addiu $sp, $sp, 0x38