papermario/asm/nonmatchings/code_42e0_len_1f60/func_80029934.s

32 lines
1.2 KiB
ArmAsm
Raw Normal View History

2020-08-04 08:49:11 +02:00
.set noat # allow manual use of $at
.set noreorder # don't insert nops after branches
glabel func_80029934
/* 004D34 80029934 27BDFFE8 */ addiu $sp, $sp, -0x18
/* 004D38 80029938 AFBF0010 */ sw $ra, 0x10($sp)
/* 004D3C 8002993C 0C00A640 */ jal _advance_rng
/* 004D40 80029940 00000000 */ nop
/* 004D44 80029944 30427FFF */ andi $v0, $v0, 0x7fff
/* 004D48 80029948 44821000 */ mtc1 $v0, $f2
/* 004D4C 8002994C 00000000 */ nop
/* 004D50 80029950 04410006 */ bgez $v0, .L8002996C
/* 004D54 80029954 468010A1 */ cvt.d.w $f2, $f2
/* 004D58 80029958 3C0141F0 */ lui $at, 0x41f0
/* 004D5C 8002995C 44810800 */ mtc1 $at, $f1
/* 004D60 80029960 44800000 */ mtc1 $zero, $f0
/* 004D64 80029964 00000000 */ nop
/* 004D68 80029968 46201080 */ add.d $f2, $f2, $f0
.L8002996C:
/* 004D6C 8002996C 3C013F00 */ lui $at, 0x3f00
/* 004D70 80029970 44810800 */ mtc1 $at, $f1
/* 004D74 80029974 44800000 */ mtc1 $zero, $f0
/* 004D78 80029978 00000000 */ nop
/* 004D7C 8002997C 46201002 */ mul.d $f0, $f2, $f0
/* 004D80 80029980 00000000 */ nop
/* 004D84 80029984 8FBF0010 */ lw $ra, 0x10($sp)
/* 004D88 80029988 46200020 */ cvt.s.d $f0, $f0
/* 004D8C 8002998C 03E00008 */ jr $ra
/* 004D90 80029990 27BD0018 */ addiu $sp, $sp, 0x18