papermario/ver/us/asm/nonmatchings/camera/func_800325E4.s

189 lines
8.6 KiB
ArmAsm
Raw Normal View History

2020-09-24 05:16:13 +02:00
.set noat # allow manual use of $at
2020-08-04 08:49:11 +02:00
.set noreorder # don't insert nops after branches
glabel func_800325E4
2020-09-24 05:16:13 +02:00
/* D9E4 800325E4 27BDFFC0 */ addiu $sp, $sp, -0x40
/* D9E8 800325E8 F7BC0030 */ sdc1 $f28, 0x30($sp)
/* D9EC 800325EC 4486E000 */ mtc1 $a2, $f28
/* D9F0 800325F0 F7B60018 */ sdc1 $f22, 0x18($sp)
/* D9F4 800325F4 C7B60050 */ lwc1 $f22, 0x50($sp)
/* D9F8 800325F8 F7B40010 */ sdc1 $f20, 0x10($sp)
/* D9FC 800325FC 46006506 */ mov.s $f20, $f12
/* DA00 80032600 F7BA0028 */ sdc1 $f26, 0x28($sp)
/* DA04 80032604 46007686 */ mov.s $f26, $f14
/* DA08 80032608 F7B80020 */ sdc1 $f24, 0x20($sp)
/* DA0C 8003260C 4614E481 */ sub.s $f18, $f28, $f20
/* DA10 80032610 C7B80054 */ lwc1 $f24, 0x54($sp)
/* DA14 80032614 C7A0005C */ lwc1 $f0, 0x5c($sp)
/* DA18 80032618 461AC181 */ sub.s $f6, $f24, $f26
/* DA1C 8003261C F7BE0038 */ sdc1 $f30, 0x38($sp)
/* DA20 80032620 461A0781 */ sub.s $f30, $f0, $f26
/* DA24 80032624 C7A20058 */ lwc1 $f2, 0x58($sp)
/* DA28 80032628 46161401 */ sub.s $f16, $f2, $f22
/* DA2C 8003262C 4487E000 */ mtc1 $a3, $f28
2021-01-12 16:42:27 +01:00
/* DA30 80032630 00000000 */ nop
2020-09-24 05:16:13 +02:00
/* DA34 80032634 461AE301 */ sub.s $f12, $f28, $f26
/* DA38 80032638 4614B701 */ sub.s $f28, $f22, $f20
/* DA3C 8003263C 46180381 */ sub.s $f14, $f0, $f24
/* DA40 80032640 E7BC0008 */ swc1 $f28, 8($sp)
/* DA44 80032644 46141701 */ sub.s $f28, $f2, $f20
/* DA48 80032648 44802000 */ mtc1 $zero, $f4
/* DA4C 8003264C 46009286 */ mov.s $f10, $f18
/* DA50 80032650 46049032 */ c.eq.s $f18, $f4
/* DA54 80032654 46006207 */ neg.s $f8, $f12
/* DA58 80032658 45000005 */ bc1f .L80032670
/* DA5C 8003265C E7BC0000 */ swc1 $f28, ($sp)
/* DA60 80032660 46046032 */ c.eq.s $f12, $f4
2021-01-12 16:42:27 +01:00
/* DA64 80032664 00000000 */ nop
2020-09-24 05:16:13 +02:00
/* DA68 80032668 45010086 */ bc1t .L80032884
/* DA6C 8003266C 0000102D */ daddu $v0, $zero, $zero
2020-08-04 08:49:11 +02:00
.L80032670:
2020-09-24 05:16:13 +02:00
/* DA70 80032670 44800000 */ mtc1 $zero, $f0
2021-01-12 16:42:27 +01:00
/* DA74 80032674 00000000 */ nop
2020-09-24 05:16:13 +02:00
/* DA78 80032678 46008032 */ c.eq.s $f16, $f0
2021-01-12 16:42:27 +01:00
/* DA7C 8003267C 00000000 */ nop
2020-09-24 05:16:13 +02:00
/* DA80 80032680 45000005 */ bc1f .L80032698
2021-01-12 16:42:27 +01:00
/* DA84 80032684 00000000 */ nop
2020-09-24 05:16:13 +02:00
/* DA88 80032688 46007032 */ c.eq.s $f14, $f0
2021-01-12 16:42:27 +01:00
/* DA8C 8003268C 00000000 */ nop
2020-09-24 05:16:13 +02:00
/* DA90 80032690 4501007C */ bc1t .L80032884
/* DA94 80032694 0000102D */ daddu $v0, $zero, $zero
2020-08-04 08:49:11 +02:00
.L80032698:
2020-09-24 05:16:13 +02:00
/* DA98 80032698 46065002 */ mul.s $f0, $f10, $f6
2021-01-12 16:42:27 +01:00
/* DA9C 8003269C 00000000 */ nop
2020-09-24 05:16:13 +02:00
/* DAA0 800326A0 C7BC0008 */ lwc1 $f28, 8($sp)
/* DAA4 800326A4 461C4082 */ mul.s $f2, $f8, $f28
2021-01-12 16:42:27 +01:00
/* DAA8 800326A8 00000000 */ nop
2020-09-24 05:16:13 +02:00
/* DAAC 800326AC 46001180 */ add.s $f6, $f2, $f0
/* DAB0 800326B0 44800000 */ mtc1 $zero, $f0
2021-01-12 16:42:27 +01:00
/* DAB4 800326B4 00000000 */ nop
2020-09-24 05:16:13 +02:00
/* DAB8 800326B8 4600303C */ c.lt.s $f6, $f0
/* DABC 800326BC 3C01BF80 */ lui $at, 0xbf80
/* DAC0 800326C0 44812000 */ mtc1 $at, $f4
/* DAC4 800326C4 45010007 */ bc1t .L800326E4
2021-01-12 16:42:27 +01:00
/* DAC8 800326C8 00000000 */ nop
2020-09-24 05:16:13 +02:00
/* DACC 800326CC 4606003C */ c.lt.s $f0, $f6
2021-01-12 16:42:27 +01:00
/* DAD0 800326D0 00000000 */ nop
2020-09-24 05:16:13 +02:00
/* DAD4 800326D4 45000003 */ bc1f .L800326E4
/* DAD8 800326D8 46000106 */ mov.s $f4, $f0
/* DADC 800326DC 3C013F80 */ lui $at, 0x3f80
/* DAE0 800326E0 44812000 */ mtc1 $at, $f4
2020-08-04 08:49:11 +02:00
.L800326E4:
2020-09-24 05:16:13 +02:00
/* DAE4 800326E4 461E5002 */ mul.s $f0, $f10, $f30
2021-01-12 16:42:27 +01:00
/* DAE8 800326E8 00000000 */ nop
2020-09-24 05:16:13 +02:00
/* DAEC 800326EC C7BC0000 */ lwc1 $f28, ($sp)
/* DAF0 800326F0 461C4082 */ mul.s $f2, $f8, $f28
2021-01-12 16:42:27 +01:00
/* DAF4 800326F4 00000000 */ nop
2020-09-24 05:16:13 +02:00
/* DAF8 800326F8 46001080 */ add.s $f2, $f2, $f0
/* DAFC 800326FC 44800000 */ mtc1 $zero, $f0
2021-01-12 16:42:27 +01:00
/* DB00 80032700 00000000 */ nop
2020-09-24 05:16:13 +02:00
/* DB04 80032704 4600103C */ c.lt.s $f2, $f0
2021-01-12 16:42:27 +01:00
/* DB08 80032708 00000000 */ nop
2020-09-24 05:16:13 +02:00
/* DB0C 8003270C 45000005 */ bc1f .L80032724
/* DB10 80032710 46002186 */ mov.s $f6, $f4
/* DB14 80032714 3C01BF80 */ lui $at, 0xbf80
/* DB18 80032718 44810000 */ mtc1 $at, $f0
/* DB1C 8003271C 0800C9D0 */ j .L80032740
2021-01-12 16:42:27 +01:00
/* DB20 80032720 00000000 */ nop
2020-08-04 08:49:11 +02:00
.L80032724:
2020-09-24 05:16:13 +02:00
/* DB24 80032724 4602003C */ c.lt.s $f0, $f2
2021-01-12 16:42:27 +01:00
/* DB28 80032728 00000000 */ nop
2020-09-24 05:16:13 +02:00
/* DB2C 8003272C 45000004 */ bc1f .L80032740
2021-01-12 16:42:27 +01:00
/* DB30 80032730 00000000 */ nop
2020-09-24 05:16:13 +02:00
/* DB34 80032734 3C013F80 */ lui $at, 0x3f80
/* DB38 80032738 44810000 */ mtc1 $at, $f0
2021-01-12 16:42:27 +01:00
/* DB3C 8003273C 00000000 */ nop
2020-08-04 08:49:11 +02:00
.L80032740:
2020-09-24 05:16:13 +02:00
/* DB40 80032740 46003032 */ c.eq.s $f6, $f0
2021-01-12 16:42:27 +01:00
/* DB44 80032744 00000000 */ nop
2020-09-24 05:16:13 +02:00
/* DB48 80032748 4501004E */ bc1t .L80032884
/* DB4C 8003274C 0000102D */ daddu $v0, $zero, $zero
/* DB50 80032750 46009085 */ abs.s $f2, $f18
/* DB54 80032754 46008005 */ abs.s $f0, $f16
/* DB58 80032758 4602003C */ c.lt.s $f0, $f2
2021-01-12 16:42:27 +01:00
/* DB5C 8003275C 00000000 */ nop
2020-09-24 05:16:13 +02:00
/* DB60 80032760 4500001E */ bc1f .L800327DC
2021-01-12 16:42:27 +01:00
/* DB64 80032764 00000000 */ nop
2020-09-24 05:16:13 +02:00
/* DB68 80032768 460CA002 */ mul.s $f0, $f20, $f12
2021-01-12 16:42:27 +01:00
/* DB6C 8003276C 00000000 */ nop
2020-09-24 05:16:13 +02:00
/* DB70 80032770 4612D182 */ mul.s $f6, $f26, $f18
2021-01-12 16:42:27 +01:00
/* DB74 80032774 00000000 */ nop
2020-09-24 05:16:13 +02:00
/* DB78 80032778 46189202 */ mul.s $f8, $f18, $f24
2021-01-12 16:42:27 +01:00
/* DB7C 8003277C 00000000 */ nop
2020-09-24 05:16:13 +02:00
/* DB80 80032780 46166282 */ mul.s $f10, $f12, $f22
2021-01-12 16:42:27 +01:00
/* DB84 80032784 00000000 */ nop
2020-09-24 05:16:13 +02:00
/* DB88 80032788 46106082 */ mul.s $f2, $f12, $f16
2021-01-12 16:42:27 +01:00
/* DB8C 8003278C 00000000 */ nop
2020-09-24 05:16:13 +02:00
/* DB90 80032790 460E9102 */ mul.s $f4, $f18, $f14
2021-01-12 16:42:27 +01:00
/* DB94 80032794 00000000 */ nop
2020-09-24 05:16:13 +02:00
/* DB98 80032798 46060001 */ sub.s $f0, $f0, $f6
/* DB9C 8003279C 46041081 */ sub.s $f2, $f2, $f4
/* DBA0 800327A0 46080000 */ add.s $f0, $f0, $f8
/* DBA4 800327A4 460A0181 */ sub.s $f6, $f0, $f10
/* DBA8 800327A8 46023183 */ div.s $f6, $f6, $f2
/* DBAC 800327AC 46068002 */ mul.s $f0, $f16, $f6
2021-01-12 16:42:27 +01:00
/* DBB0 800327B0 00000000 */ nop
2020-09-24 05:16:13 +02:00
/* DBB4 800327B4 4600B000 */ add.s $f0, $f22, $f0
/* DBB8 800327B8 46140001 */ sub.s $f0, $f0, $f20
/* DBBC 800327BC 46120183 */ div.s $f6, $f0, $f18
/* DBC0 800327C0 46069002 */ mul.s $f0, $f18, $f6
2021-01-12 16:42:27 +01:00
/* DBC4 800327C4 00000000 */ nop
2020-09-24 05:16:13 +02:00
/* DBC8 800327C8 46066082 */ mul.s $f2, $f12, $f6
2021-01-12 16:42:27 +01:00
/* DBCC 800327CC 00000000 */ nop
2020-09-24 05:16:13 +02:00
/* DBD0 800327D0 4600A300 */ add.s $f12, $f20, $f0
/* DBD4 800327D4 0800CA13 */ j .L8003284C
/* DBD8 800327D8 4602D180 */ add.s $f6, $f26, $f2
2020-08-04 08:49:11 +02:00
.L800327DC:
2020-09-24 05:16:13 +02:00
/* DBDC 800327DC 4610C002 */ mul.s $f0, $f24, $f16
2021-01-12 16:42:27 +01:00
/* DBE0 800327E0 00000000 */ nop
2020-09-24 05:16:13 +02:00
/* DBE4 800327E4 460EA182 */ mul.s $f6, $f20, $f14
2021-01-12 16:42:27 +01:00
/* DBE8 800327E8 00000000 */ nop
2020-09-24 05:16:13 +02:00
/* DBEC 800327EC 460EC202 */ mul.s $f8, $f24, $f14
2021-01-12 16:42:27 +01:00
/* DBF0 800327F0 00000000 */ nop
2020-09-24 05:16:13 +02:00
/* DBF4 800327F4 4610D282 */ mul.s $f10, $f26, $f16
2021-01-12 16:42:27 +01:00
/* DBF8 800327F8 00000000 */ nop
2020-09-24 05:16:13 +02:00
/* DBFC 800327FC 46106082 */ mul.s $f2, $f12, $f16
2021-01-12 16:42:27 +01:00
/* DC00 80032800 00000000 */ nop
2020-09-24 05:16:13 +02:00
/* DC04 80032804 460E9102 */ mul.s $f4, $f18, $f14
2021-01-12 16:42:27 +01:00
/* DC08 80032808 00000000 */ nop
2020-09-24 05:16:13 +02:00
/* DC0C 8003280C 46060000 */ add.s $f0, $f0, $f6
/* DC10 80032810 46041081 */ sub.s $f2, $f2, $f4
/* DC14 80032814 46080001 */ sub.s $f0, $f0, $f8
/* DC18 80032818 460A0181 */ sub.s $f6, $f0, $f10
/* DC1C 8003281C 46023183 */ div.s $f6, $f6, $f2
/* DC20 80032820 46069002 */ mul.s $f0, $f18, $f6
2021-01-12 16:42:27 +01:00
/* DC24 80032824 00000000 */ nop
2020-09-24 05:16:13 +02:00
/* DC28 80032828 4600A000 */ add.s $f0, $f20, $f0
/* DC2C 8003282C 46160001 */ sub.s $f0, $f0, $f22
/* DC30 80032830 46100183 */ div.s $f6, $f0, $f16
/* DC34 80032834 46068002 */ mul.s $f0, $f16, $f6
2021-01-12 16:42:27 +01:00
/* DC38 80032838 00000000 */ nop
2020-09-24 05:16:13 +02:00
/* DC3C 8003283C 46067082 */ mul.s $f2, $f14, $f6
2021-01-12 16:42:27 +01:00
/* DC40 80032840 00000000 */ nop
2020-09-24 05:16:13 +02:00
/* DC44 80032844 4600B300 */ add.s $f12, $f22, $f0
/* DC48 80032848 4602C180 */ add.s $f6, $f24, $f2
2020-08-04 08:49:11 +02:00
.L8003284C:
2020-09-24 05:16:13 +02:00
/* DC4C 8003284C 46166081 */ sub.s $f2, $f12, $f22
/* DC50 80032850 46021082 */ mul.s $f2, $f2, $f2
2021-01-12 16:42:27 +01:00
/* DC54 80032854 00000000 */ nop
2020-09-24 05:16:13 +02:00
/* DC58 80032858 46183001 */ sub.s $f0, $f6, $f24
/* DC5C 8003285C 8FA30060 */ lw $v1, 0x60($sp)
/* DC60 80032860 46000002 */ mul.s $f0, $f0, $f0
2021-01-12 16:42:27 +01:00
/* DC64 80032864 00000000 */ nop
2020-09-24 05:16:13 +02:00
/* DC68 80032868 E46C0000 */ swc1 $f12, ($v1)
/* DC6C 8003286C 8FA30064 */ lw $v1, 0x64($sp)
/* DC70 80032870 E4660000 */ swc1 $f6, ($v1)
/* DC74 80032874 46001080 */ add.s $f2, $f2, $f0
/* DC78 80032878 8FA30068 */ lw $v1, 0x68($sp)
/* DC7C 8003287C 24020001 */ addiu $v0, $zero, 1
/* DC80 80032880 E4620000 */ swc1 $f2, ($v1)
2020-08-04 08:49:11 +02:00
.L80032884:
2020-09-24 05:16:13 +02:00
/* DC84 80032884 D7BE0038 */ ldc1 $f30, 0x38($sp)
/* DC88 80032888 D7BC0030 */ ldc1 $f28, 0x30($sp)
/* DC8C 8003288C D7BA0028 */ ldc1 $f26, 0x28($sp)
/* DC90 80032890 D7B80020 */ ldc1 $f24, 0x20($sp)
/* DC94 80032894 D7B60018 */ ldc1 $f22, 0x18($sp)
/* DC98 80032898 D7B40010 */ ldc1 $f20, 0x10($sp)
/* DC9C 8003289C 03E00008 */ jr $ra
/* DCA0 800328A0 27BD0040 */ addiu $sp, $sp, 0x40