2020-12-28 06:34:30 +01:00
|
|
|
.set noat # allow manual use of $at
|
|
|
|
.set noreorder # don't insert nops after branches
|
|
|
|
|
|
|
|
glabel func_8021848C_660BDC
|
|
|
|
/* 660BDC 8021848C 27BDFFE0 */ addiu $sp, $sp, -0x20
|
|
|
|
/* 660BE0 80218490 AFB20018 */ sw $s2, 0x18($sp)
|
|
|
|
/* 660BE4 80218494 0080902D */ daddu $s2, $a0, $zero
|
|
|
|
/* 660BE8 80218498 AFBF001C */ sw $ra, 0x1c($sp)
|
|
|
|
/* 660BEC 8021849C AFB10014 */ sw $s1, 0x14($sp)
|
|
|
|
/* 660BF0 802184A0 AFB00010 */ sw $s0, 0x10($sp)
|
|
|
|
/* 660BF4 802184A4 8E50000C */ lw $s0, 0xc($s2)
|
|
|
|
/* 660BF8 802184A8 8E050000 */ lw $a1, ($s0)
|
|
|
|
/* 660BFC 802184AC 0C0B1EAF */ jal get_variable
|
|
|
|
/* 660C00 802184B0 26100004 */ addiu $s0, $s0, 4
|
|
|
|
/* 660C04 802184B4 8E050000 */ lw $a1, ($s0)
|
|
|
|
/* 660C08 802184B8 26100004 */ addiu $s0, $s0, 4
|
|
|
|
/* 660C0C 802184BC 0240202D */ daddu $a0, $s2, $zero
|
|
|
|
/* 660C10 802184C0 0C0B1EAF */ jal get_variable
|
|
|
|
/* 660C14 802184C4 0040882D */ daddu $s1, $v0, $zero
|
|
|
|
/* 660C18 802184C8 44820000 */ mtc1 $v0, $f0
|
2021-01-12 16:42:27 +01:00
|
|
|
/* 660C1C 802184CC 00000000 */ nop
|
2020-12-28 06:34:30 +01:00
|
|
|
/* 660C20 802184D0 46800020 */ cvt.s.w $f0, $f0
|
|
|
|
/* 660C24 802184D4 E6200000 */ swc1 $f0, ($s1)
|
|
|
|
/* 660C28 802184D8 8E050000 */ lw $a1, ($s0)
|
|
|
|
/* 660C2C 802184DC 26100004 */ addiu $s0, $s0, 4
|
|
|
|
/* 660C30 802184E0 0C0B1EAF */ jal get_variable
|
|
|
|
/* 660C34 802184E4 0240202D */ daddu $a0, $s2, $zero
|
|
|
|
/* 660C38 802184E8 44820000 */ mtc1 $v0, $f0
|
2021-01-12 16:42:27 +01:00
|
|
|
/* 660C3C 802184EC 00000000 */ nop
|
2020-12-28 06:34:30 +01:00
|
|
|
/* 660C40 802184F0 46800020 */ cvt.s.w $f0, $f0
|
|
|
|
/* 660C44 802184F4 E6200004 */ swc1 $f0, 4($s1)
|
|
|
|
/* 660C48 802184F8 8E050000 */ lw $a1, ($s0)
|
|
|
|
/* 660C4C 802184FC 26100004 */ addiu $s0, $s0, 4
|
|
|
|
/* 660C50 80218500 0C0B1EAF */ jal get_variable
|
|
|
|
/* 660C54 80218504 0240202D */ daddu $a0, $s2, $zero
|
|
|
|
/* 660C58 80218508 24040014 */ addiu $a0, $zero, 0x14
|
|
|
|
/* 660C5C 8021850C 44820000 */ mtc1 $v0, $f0
|
2021-01-12 16:42:27 +01:00
|
|
|
/* 660C60 80218510 00000000 */ nop
|
2020-12-28 06:34:30 +01:00
|
|
|
/* 660C64 80218514 46800020 */ cvt.s.w $f0, $f0
|
|
|
|
/* 660C68 80218518 0C00A67F */ jal rand_int
|
|
|
|
/* 660C6C 8021851C E6200008 */ swc1 $f0, 8($s1)
|
|
|
|
/* 660C70 80218520 24040028 */ addiu $a0, $zero, 0x28
|
|
|
|
/* 660C74 80218524 00021023 */ negu $v0, $v0
|
|
|
|
/* 660C78 80218528 44820000 */ mtc1 $v0, $f0
|
2021-01-12 16:42:27 +01:00
|
|
|
/* 660C7C 8021852C 00000000 */ nop
|
2020-12-28 06:34:30 +01:00
|
|
|
/* 660C80 80218530 46800020 */ cvt.s.w $f0, $f0
|
|
|
|
/* 660C84 80218534 0C00A67F */ jal rand_int
|
|
|
|
/* 660C88 80218538 E620000C */ swc1 $f0, 0xc($s1)
|
|
|
|
/* 660C8C 8021853C 24420028 */ addiu $v0, $v0, 0x28
|
|
|
|
/* 660C90 80218540 44820000 */ mtc1 $v0, $f0
|
2021-01-12 16:42:27 +01:00
|
|
|
/* 660C94 80218544 00000000 */ nop
|
2020-12-28 06:34:30 +01:00
|
|
|
/* 660C98 80218548 46800020 */ cvt.s.w $f0, $f0
|
|
|
|
/* 660C9C 8021854C E6200010 */ swc1 $f0, 0x10($s1)
|
|
|
|
/* 660CA0 80218550 AE200014 */ sw $zero, 0x14($s1)
|
|
|
|
/* 660CA4 80218554 8E050000 */ lw $a1, ($s0)
|
|
|
|
/* 660CA8 80218558 26100004 */ addiu $s0, $s0, 4
|
|
|
|
/* 660CAC 8021855C 0C0B1EAF */ jal get_variable
|
|
|
|
/* 660CB0 80218560 0240202D */ daddu $a0, $s2, $zero
|
|
|
|
/* 660CB4 80218564 44820000 */ mtc1 $v0, $f0
|
2021-01-12 16:42:27 +01:00
|
|
|
/* 660CB8 80218568 00000000 */ nop
|
2020-12-28 06:34:30 +01:00
|
|
|
/* 660CBC 8021856C 46800020 */ cvt.s.w $f0, $f0
|
|
|
|
/* 660CC0 80218570 E6200018 */ swc1 $f0, 0x18($s1)
|
|
|
|
/* 660CC4 80218574 8E050000 */ lw $a1, ($s0)
|
|
|
|
/* 660CC8 80218578 26100004 */ addiu $s0, $s0, 4
|
|
|
|
/* 660CCC 8021857C 0C0B1EAF */ jal get_variable
|
|
|
|
/* 660CD0 80218580 0240202D */ daddu $a0, $s2, $zero
|
|
|
|
/* 660CD4 80218584 44820000 */ mtc1 $v0, $f0
|
2021-01-12 16:42:27 +01:00
|
|
|
/* 660CD8 80218588 00000000 */ nop
|
2020-12-28 06:34:30 +01:00
|
|
|
/* 660CDC 8021858C 46800020 */ cvt.s.w $f0, $f0
|
|
|
|
/* 660CE0 80218590 E620001C */ swc1 $f0, 0x1c($s1)
|
|
|
|
/* 660CE4 80218594 8E050000 */ lw $a1, ($s0)
|
|
|
|
/* 660CE8 80218598 0C0B1EAF */ jal get_variable
|
|
|
|
/* 660CEC 8021859C 0240202D */ daddu $a0, $s2, $zero
|
|
|
|
/* 660CF0 802185A0 44820000 */ mtc1 $v0, $f0
|
2021-01-12 16:42:27 +01:00
|
|
|
/* 660CF4 802185A4 00000000 */ nop
|
2020-12-28 06:34:30 +01:00
|
|
|
/* 660CF8 802185A8 46800020 */ cvt.s.w $f0, $f0
|
|
|
|
/* 660CFC 802185AC E6200020 */ swc1 $f0, 0x20($s1)
|
|
|
|
/* 660D00 802185B0 8FBF001C */ lw $ra, 0x1c($sp)
|
|
|
|
/* 660D04 802185B4 8FB20018 */ lw $s2, 0x18($sp)
|
|
|
|
/* 660D08 802185B8 8FB10014 */ lw $s1, 0x14($sp)
|
|
|
|
/* 660D0C 802185BC 8FB00010 */ lw $s0, 0x10($sp)
|
|
|
|
/* 660D10 802185C0 24020002 */ addiu $v0, $zero, 2
|
|
|
|
/* 660D14 802185C4 03E00008 */ jr $ra
|
|
|
|
/* 660D18 802185C8 27BD0020 */ addiu $sp, $sp, 0x20
|
2021-01-12 16:42:27 +01:00
|
|
|
/* 660D1C 802185CC 00000000 */ nop
|