papermario/asm/nonmatchings/code_71B1A0/func_802A1354_71B4F4.s
2021-01-13 00:42:27 +09:00

90 lines
4.4 KiB
ArmAsm
Generated

.set noat # allow manual use of $at
.set noreorder # don't insert nops after branches
glabel func_802A1354_71B4F4
/* 71B4F4 802A1354 27BDFFC0 */ addiu $sp, $sp, -0x40
/* 71B4F8 802A1358 AFBF0024 */ sw $ra, 0x24($sp)
/* 71B4FC 802A135C AFB20020 */ sw $s2, 0x20($sp)
/* 71B500 802A1360 AFB1001C */ sw $s1, 0x1c($sp)
/* 71B504 802A1364 AFB00018 */ sw $s0, 0x18($sp)
/* 71B508 802A1368 F7B80038 */ sdc1 $f24, 0x38($sp)
/* 71B50C 802A136C F7B60030 */ sdc1 $f22, 0x30($sp)
/* 71B510 802A1370 F7B40028 */ sdc1 $f20, 0x28($sp)
/* 71B514 802A1374 0C09A75B */ jal get_actor
/* 71B518 802A1378 8C840148 */ lw $a0, 0x148($a0)
/* 71B51C 802A137C 0C09A75B */ jal get_actor
/* 71B520 802A1380 84440428 */ lh $a0, 0x428($v0)
/* 71B524 802A1384 0040802D */ daddu $s0, $v0, $zero
/* 71B528 802A1388 1200003C */ beqz $s0, .L802A147C
/* 71B52C 802A138C 24020002 */ addiu $v0, $zero, 2
/* 71B530 802A1390 0C05272D */ jal play_sound
/* 71B534 802A1394 24040366 */ addiu $a0, $zero, 0x366
/* 71B538 802A1398 3C03CCCC */ lui $v1, 0xcccc
/* 71B53C 802A139C 3463CCCD */ ori $v1, $v1, 0xcccd
/* 71B540 802A13A0 92040191 */ lbu $a0, 0x191($s0)
/* 71B544 802A13A4 92020190 */ lbu $v0, 0x190($s0)
/* 71B548 802A13A8 00830019 */ multu $a0, $v1
/* 71B54C 802A13AC C6000188 */ lwc1 $f0, 0x188($s0)
/* 71B550 802A13B0 00021882 */ srl $v1, $v0, 2
/* 71B554 802A13B4 00431021 */ addu $v0, $v0, $v1
/* 71B558 802A13B8 44823000 */ mtc1 $v0, $f6
/* 71B55C 802A13BC 00000000 */ nop
/* 71B560 802A13C0 468031A0 */ cvt.s.w $f6, $f6
/* 71B564 802A13C4 46003182 */ mul.s $f6, $f6, $f0
/* 71B568 802A13C8 00000000 */ nop
/* 71B56C 802A13CC 2482FFFE */ addiu $v0, $a0, -2
/* 71B570 802A13D0 44822000 */ mtc1 $v0, $f4
/* 71B574 802A13D4 00000000 */ nop
/* 71B578 802A13D8 46802120 */ cvt.s.w $f4, $f4
/* 71B57C 802A13DC 46002102 */ mul.s $f4, $f4, $f0
/* 71B580 802A13E0 00000000 */ nop
/* 71B584 802A13E4 C6020148 */ lwc1 $f2, 0x148($s0)
/* 71B588 802A13E8 C6160144 */ lwc1 $f22, 0x144($s0)
/* 71B58C 802A13EC C618014C */ lwc1 $f24, 0x14c($s0)
/* 71B590 802A13F0 00004010 */ mfhi $t0
/* 71B594 802A13F4 000810C2 */ srl $v0, $t0, 3
/* 71B598 802A13F8 304200FF */ andi $v0, $v0, 0xff
/* 71B59C 802A13FC 44820000 */ mtc1 $v0, $f0
/* 71B5A0 802A1400 00000000 */ nop
/* 71B5A4 802A1404 46800020 */ cvt.s.w $f0, $f0
/* 71B5A8 802A1408 4600320D */ trunc.w.s $f8, $f6
/* 71B5AC 802A140C 44114000 */ mfc1 $s1, $f8
/* 71B5B0 802A1410 4600220D */ trunc.w.s $f8, $f4
/* 71B5B4 802A1414 44124000 */ mfc1 $s2, $f8
/* 71B5B8 802A1418 8E020000 */ lw $v0, ($s0)
/* 71B5BC 802A141C 30428000 */ andi $v0, $v0, 0x8000
/* 71B5C0 802A1420 10400006 */ beqz $v0, .L802A143C
/* 71B5C4 802A1424 46001500 */ add.s $f20, $f2, $f0
/* 71B5C8 802A1428 00041042 */ srl $v0, $a0, 1
/* 71B5CC 802A142C 44820000 */ mtc1 $v0, $f0
/* 71B5D0 802A1430 00000000 */ nop
/* 71B5D4 802A1434 46800020 */ cvt.s.w $f0, $f0
/* 71B5D8 802A1438 4600A501 */ sub.s $f20, $f20, $f0
.L802A143C:
/* 71B5DC 802A143C 0C00A67F */ jal rand_int
/* 71B5E0 802A1440 24040002 */ addiu $a0, $zero, 2
/* 71B5E4 802A1444 24440003 */ addiu $a0, $v0, 3
/* 71B5E8 802A1448 4405B000 */ mfc1 $a1, $f22
/* 71B5EC 802A144C 4406A000 */ mfc1 $a2, $f20
/* 71B5F0 802A1450 4407C000 */ mfc1 $a3, $f24
/* 71B5F4 802A1454 44910000 */ mtc1 $s1, $f0
/* 71B5F8 802A1458 00000000 */ nop
/* 71B5FC 802A145C 46800020 */ cvt.s.w $f0, $f0
/* 71B600 802A1460 E7A00010 */ swc1 $f0, 0x10($sp)
/* 71B604 802A1464 44920000 */ mtc1 $s2, $f0
/* 71B608 802A1468 00000000 */ nop
/* 71B60C 802A146C 46800020 */ cvt.s.w $f0, $f0
/* 71B610 802A1470 0C01C334 */ jal func_80070CD0
/* 71B614 802A1474 E7A00014 */ swc1 $f0, 0x14($sp)
/* 71B618 802A1478 24020002 */ addiu $v0, $zero, 2
.L802A147C:
/* 71B61C 802A147C 8FBF0024 */ lw $ra, 0x24($sp)
/* 71B620 802A1480 8FB20020 */ lw $s2, 0x20($sp)
/* 71B624 802A1484 8FB1001C */ lw $s1, 0x1c($sp)
/* 71B628 802A1488 8FB00018 */ lw $s0, 0x18($sp)
/* 71B62C 802A148C D7B80038 */ ldc1 $f24, 0x38($sp)
/* 71B630 802A1490 D7B60030 */ ldc1 $f22, 0x30($sp)
/* 71B634 802A1494 D7B40028 */ ldc1 $f20, 0x28($sp)
/* 71B638 802A1498 03E00008 */ jr $ra
/* 71B63C 802A149C 27BD0040 */ addiu $sp, $sp, 0x40