papermario/asm/nonmatchings/code_6F5E80/func_80238000_6F5E80.s

78 lines
3.9 KiB
ArmAsm
Raw Normal View History

2021-01-10 12:57:43 +01:00
.set noat # allow manual use of $at
.set noreorder # don't insert nops after branches
glabel func_80238000_6F5E80
/* 6F5E80 80238000 27BDFFD8 */ addiu $sp, $sp, -0x28
/* 6F5E84 80238004 AFB00018 */ sw $s0, 0x18($sp)
/* 6F5E88 80238008 3C10800E */ lui $s0, %hi(gBattleStatus+0xDC)
/* 6F5E8C 8023800C 8E10C14C */ lw $s0, %lo(gBattleStatus+0xDC)($s0)
/* 6F5E90 80238010 AFBF0020 */ sw $ra, 0x20($sp)
/* 6F5E94 80238014 AFB1001C */ sw $s1, 0x1c($sp)
/* 6F5E98 80238018 10A00007 */ beqz $a1, .L80238038
/* 6F5E9C 8023801C 2611000C */ addiu $s1, $s0, 0xc
/* 6F5EA0 80238020 C6000144 */ lwc1 $f0, 0x144($s0)
/* 6F5EA4 80238024 C6020148 */ lwc1 $f2, 0x148($s0)
/* 6F5EA8 80238028 C604014C */ lwc1 $f4, 0x14c($s0)
/* 6F5EAC 8023802C E600000C */ swc1 $f0, 0xc($s0)
/* 6F5EB0 80238030 E6020010 */ swc1 $f2, 0x10($s0)
/* 6F5EB4 80238034 E6040014 */ swc1 $f4, 0x14($s0)
.L80238038:
/* 6F5EB8 80238038 8E05004C */ lw $a1, 0x4c($s0)
/* 6F5EBC 8023803C 8E060054 */ lw $a2, 0x54($s0)
/* 6F5EC0 80238040 0C09904A */ jal add_xz_vec3f
/* 6F5EC4 80238044 0220202D */ daddu $a0, $s1, $zero
/* 6F5EC8 80238048 C602004C */ lwc1 $f2, 0x4c($s0)
/* 6F5ECC 8023804C 3C014080 */ lui $at, 0x4080
/* 6F5ED0 80238050 44810000 */ mtc1 $at, $f0
2021-01-12 16:42:27 +01:00
/* 6F5ED4 80238054 00000000 */ nop
2021-01-10 12:57:43 +01:00
/* 6F5ED8 80238058 4600103C */ c.lt.s $f2, $f0
2021-01-12 16:42:27 +01:00
/* 6F5EDC 8023805C 00000000 */ nop
2021-01-10 12:57:43 +01:00
/* 6F5EE0 80238060 45000007 */ bc1f .L80238080
/* 6F5EE4 80238064 0000202D */ daddu $a0, $zero, $zero
/* 6F5EE8 80238068 C6000054 */ lwc1 $f0, 0x54($s0)
/* 6F5EEC 8023806C E7A00010 */ swc1 $f0, 0x10($sp)
/* 6F5EF0 80238070 8E05000C */ lw $a1, 0xc($s0)
/* 6F5EF4 80238074 8E060010 */ lw $a2, 0x10($s0)
/* 6F5EF8 80238078 0808E026 */ j .L80238098
/* 6F5EFC 8023807C 8E070014 */ lw $a3, 0x14($s0)
.L80238080:
/* 6F5F00 80238080 C6000054 */ lwc1 $f0, 0x54($s0)
/* 6F5F04 80238084 E7A00010 */ swc1 $f0, 0x10($sp)
/* 6F5F08 80238088 8E05000C */ lw $a1, 0xc($s0)
/* 6F5F0C 8023808C 8E060010 */ lw $a2, 0x10($s0)
/* 6F5F10 80238090 8E070014 */ lw $a3, 0x14($s0)
/* 6F5F14 80238094 24040001 */ addiu $a0, $zero, 1
.L80238098:
/* 6F5F18 80238098 0C0990BC */ jal play_movement_dust_effects
2021-01-12 16:42:27 +01:00
/* 6F5F1C 8023809C 00000000 */ nop
2021-01-10 12:57:43 +01:00
/* 6F5F20 802380A0 C6200040 */ lwc1 $f0, 0x40($s1)
/* 6F5F24 802380A4 3C013FF8 */ lui $at, 0x3ff8
/* 6F5F28 802380A8 44811800 */ mtc1 $at, $f3
/* 6F5F2C 802380AC 44801000 */ mtc1 $zero, $f2
/* 6F5F30 802380B0 46000021 */ cvt.d.s $f0, $f0
/* 6F5F34 802380B4 46220003 */ div.d $f0, $f0, $f2
/* 6F5F38 802380B8 C6220000 */ lwc1 $f2, ($s1)
/* 6F5F3C 802380BC 46200020 */ cvt.s.d $f0, $f0
/* 6F5F40 802380C0 E6200040 */ swc1 $f0, 0x40($s1)
/* 6F5F44 802380C4 E6020144 */ swc1 $f2, 0x144($s0)
/* 6F5F48 802380C8 C6200004 */ lwc1 $f0, 4($s1)
/* 6F5F4C 802380CC E6000148 */ swc1 $f0, 0x148($s0)
/* 6F5F50 802380D0 C6200008 */ lwc1 $f0, 8($s1)
/* 6F5F54 802380D4 E600014C */ swc1 $f0, 0x14c($s0)
/* 6F5F58 802380D8 C6200040 */ lwc1 $f0, 0x40($s1)
/* 6F5F5C 802380DC 3C013FF0 */ lui $at, 0x3ff0
/* 6F5F60 802380E0 44811800 */ mtc1 $at, $f3
/* 6F5F64 802380E4 44801000 */ mtc1 $zero, $f2
/* 6F5F68 802380E8 46000021 */ cvt.d.s $f0, $f0
/* 6F5F6C 802380EC 4622003C */ c.lt.d $f0, $f2
2021-01-12 16:42:27 +01:00
/* 6F5F70 802380F0 00000000 */ nop
2021-01-10 12:57:43 +01:00
/* 6F5F74 802380F4 45010002 */ bc1t .L80238100
/* 6F5F78 802380F8 24020002 */ addiu $v0, $zero, 2
/* 6F5F7C 802380FC 0000102D */ daddu $v0, $zero, $zero
.L80238100:
/* 6F5F80 80238100 8FBF0020 */ lw $ra, 0x20($sp)
/* 6F5F84 80238104 8FB1001C */ lw $s1, 0x1c($sp)
/* 6F5F88 80238108 8FB00018 */ lw $s0, 0x18($sp)
/* 6F5F8C 8023810C 03E00008 */ jr $ra
/* 6F5F90 80238110 27BD0028 */ addiu $sp, $sp, 0x28