papermario/asm/nonmatchings/code_f4c60_len_4300/func_802D3474.s
2020-09-23 23:16:13 -04:00

62 lines
3.1 KiB
ArmAsm

.set noat # allow manual use of $at
.set noreorder # don't insert nops after branches
glabel func_802D3474
/* F7E24 802D3474 27BDFFD8 */ addiu $sp, $sp, -0x28
/* F7E28 802D3478 AFB20018 */ sw $s2, 0x18($sp)
/* F7E2C 802D347C 0080902D */ daddu $s2, $a0, $zero
/* F7E30 802D3480 AFBF0020 */ sw $ra, 0x20($sp)
/* F7E34 802D3484 AFB3001C */ sw $s3, 0x1c($sp)
/* F7E38 802D3488 AFB10014 */ sw $s1, 0x14($sp)
/* F7E3C 802D348C AFB00010 */ sw $s0, 0x10($sp)
/* F7E40 802D3490 8E42000C */ lw $v0, 0xc($s2)
/* F7E44 802D3494 8C450004 */ lw $a1, 4($v0)
/* F7E48 802D3498 8C530000 */ lw $s3, ($v0)
/* F7E4C 802D349C 0C0B1EAF */ jal get_variable
/* F7E50 802D34A0 0000882D */ daddu $s1, $zero, $zero
/* F7E54 802D34A4 0040202D */ daddu $a0, $v0, $zero
/* F7E58 802D34A8 3C03802E */ lui $v1, 0x802e
/* F7E5C 802D34AC 8C63B7C0 */ lw $v1, -0x4840($v1)
.L802D34B0:
/* F7E60 802D34B0 8C700000 */ lw $s0, ($v1)
/* F7E64 802D34B4 8E020000 */ lw $v0, ($s0)
/* F7E68 802D34B8 04400006 */ bltz $v0, .L802D34D4
/* F7E6C 802D34BC 2A220040 */ slti $v0, $s1, 0x40
/* F7E70 802D34C0 26310001 */ addiu $s1, $s1, 1
/* F7E74 802D34C4 2A220040 */ slti $v0, $s1, 0x40
/* F7E78 802D34C8 1440FFF9 */ bnez $v0, .L802D34B0
/* F7E7C 802D34CC 24630004 */ addiu $v1, $v1, 4
/* F7E80 802D34D0 2A220040 */ slti $v0, $s1, 0x40
.L802D34D4:
/* F7E84 802D34D4 10400016 */ beqz $v0, .L802D3530
/* F7E88 802D34D8 24020002 */ addiu $v0, $zero, 2
/* F7E8C 802D34DC 0C048338 */ jal load_virtual_model
/* F7E90 802D34E0 00000000 */ nop
/* F7E94 802D34E4 3C013F80 */ lui $at, 0x3f80
/* F7E98 802D34E8 44810000 */ mtc1 $at, $f0
/* F7E9C 802D34EC AE020000 */ sw $v0, ($s0)
/* F7EA0 802D34F0 0040202D */ daddu $a0, $v0, $zero
/* F7EA4 802D34F4 AE000004 */ sw $zero, 4($s0)
/* F7EA8 802D34F8 AE000008 */ sw $zero, 8($s0)
/* F7EAC 802D34FC AE00000C */ sw $zero, 0xc($s0)
/* F7EB0 802D3500 AE000010 */ sw $zero, 0x10($s0)
/* F7EB4 802D3504 AE000014 */ sw $zero, 0x14($s0)
/* F7EB8 802D3508 AE000018 */ sw $zero, 0x18($s0)
/* F7EBC 802D350C E600001C */ swc1 $f0, 0x1c($s0)
/* F7EC0 802D3510 E6000020 */ swc1 $f0, 0x20($s0)
/* F7EC4 802D3514 0C0483C1 */ jal func_80120F04
/* F7EC8 802D3518 E6000024 */ swc1 $f0, 0x24($s0)
/* F7ECC 802D351C 0240202D */ daddu $a0, $s2, $zero
/* F7ED0 802D3520 0260282D */ daddu $a1, $s3, $zero
/* F7ED4 802D3524 0C0B2026 */ jal set_variable
/* F7ED8 802D3528 0220302D */ daddu $a2, $s1, $zero
/* F7EDC 802D352C 24020002 */ addiu $v0, $zero, 2
.L802D3530:
/* F7EE0 802D3530 8FBF0020 */ lw $ra, 0x20($sp)
/* F7EE4 802D3534 8FB3001C */ lw $s3, 0x1c($sp)
/* F7EE8 802D3538 8FB20018 */ lw $s2, 0x18($sp)
/* F7EEC 802D353C 8FB10014 */ lw $s1, 0x14($sp)
/* F7EF0 802D3540 8FB00010 */ lw $s0, 0x10($sp)
/* F7EF4 802D3544 03E00008 */ jr $ra
/* F7EF8 802D3548 27BD0028 */ addiu $sp, $sp, 0x28