mirror of
https://github.com/pmret/papermario.git
synced 2024-11-18 08:52:40 +01:00
109 lines
4.5 KiB
ArmAsm
109 lines
4.5 KiB
ArmAsm
.set noat # allow manual use of $at
|
|
.set noreorder # don't insert nops after branches
|
|
|
|
|
|
glabel func_80149E04
|
|
/* 0E0504 80149E04 27BDFFD8 */ addiu $sp, $sp, -0x28
|
|
/* 0E0508 80149E08 44860000 */ mtc1 $a2, $f0
|
|
/* 0E050C 80149E0C 8FA3003C */ lw $v1, 0x3c($sp)
|
|
/* 0E0510 80149E10 AFB1001C */ sw $s1, 0x1c($sp)
|
|
/* 0E0514 80149E14 AFB20020 */ sw $s2, 0x20($sp)
|
|
/* 0E0518 80149E18 8FB20038 */ lw $s2, 0x38($sp)
|
|
/* 0E051C 80149E1C 3C02FFFF */ lui $v0, 0xffff
|
|
/* 0E0520 80149E20 AFBF0024 */ sw $ra, 0x24($sp)
|
|
/* 0E0524 80149E24 AFB00018 */ sw $s0, 0x18($sp)
|
|
/* 0E0528 80149E28 00628024 */ and $s0, $v1, $v0
|
|
/* 0E052C 80149E2C 3063FFFF */ andi $v1, $v1, 0xffff
|
|
/* 0E0530 80149E30 24020001 */ addiu $v0, $zero, 1
|
|
/* 0E0534 80149E34 1062000D */ beq $v1, $v0, .L80149E6C
|
|
/* 0E0538 80149E38 00E0882D */ daddu $s1, $a3, $zero
|
|
/* 0E053C 80149E3C 10600005 */ beqz $v1, .L80149E54
|
|
/* 0E0540 80149E40 24020002 */ addiu $v0, $zero, 2
|
|
/* 0E0544 80149E44 1062000F */ beq $v1, $v0, .L80149E84
|
|
/* 0E0548 80149E48 3C020001 */ lui $v0, 1
|
|
/* 0E054C 80149E4C 080527A8 */ j .L80149EA0
|
|
/* 0E0550 80149E50 02021024 */ and $v0, $s0, $v0
|
|
|
|
.L80149E54:
|
|
/* 0E0554 80149E54 44060000 */ mfc1 $a2, $f0
|
|
/* 0E0558 80149E58 0220382D */ daddu $a3, $s1, $zero
|
|
/* 0E055C 80149E5C 0C0527D6 */ jal func_80149F58
|
|
/* 0E0560 80149E60 AFB20010 */ sw $s2, 0x10($sp)
|
|
/* 0E0564 80149E64 080527A7 */ j .L80149E9C
|
|
/* 0E0568 80149E68 3C020001 */ lui $v0, 1
|
|
|
|
.L80149E6C:
|
|
/* 0E056C 80149E6C 44060000 */ mfc1 $a2, $f0
|
|
/* 0E0570 80149E70 0220382D */ daddu $a3, $s1, $zero
|
|
/* 0E0574 80149E74 0C05286D */ jal func_8014A1B4
|
|
/* 0E0578 80149E78 AFB20010 */ sw $s2, 0x10($sp)
|
|
/* 0E057C 80149E7C 080527A7 */ j .L80149E9C
|
|
/* 0E0580 80149E80 3C020001 */ lui $v0, 1
|
|
|
|
.L80149E84:
|
|
/* 0E0584 80149E84 44060000 */ mfc1 $a2, $f0
|
|
/* 0E0588 80149E88 0220382D */ daddu $a3, $s1, $zero
|
|
/* 0E058C 80149E8C AFB20010 */ sw $s2, 0x10($sp)
|
|
/* 0E0590 80149E90 0C052494 */ jal func_80149250
|
|
/* 0E0594 80149E94 AFB00014 */ sw $s0, 0x14($sp)
|
|
/* 0E0598 80149E98 3C020001 */ lui $v0, 1
|
|
.L80149E9C:
|
|
/* 0E059C 80149E9C 02021024 */ and $v0, $s0, $v0
|
|
.L80149EA0:
|
|
/* 0E05A0 80149EA0 10400003 */ beqz $v0, .L80149EB0
|
|
/* 0E05A4 80149EA4 3C020040 */ lui $v0, 0x40
|
|
/* 0E05A8 80149EA8 080527C6 */ j .L80149F18
|
|
/* 0E05AC 80149EAC A6200000 */ sh $zero, ($s1)
|
|
|
|
.L80149EB0:
|
|
/* 0E05B0 80149EB0 02021024 */ and $v0, $s0, $v0
|
|
/* 0E05B4 80149EB4 10400007 */ beqz $v0, .L80149ED4
|
|
/* 0E05B8 80149EB8 3C020020 */ lui $v0, 0x20
|
|
/* 0E05BC 80149EBC 86220000 */ lh $v0, ($s1)
|
|
/* 0E05C0 80149EC0 28420050 */ slti $v0, $v0, 0x50
|
|
/* 0E05C4 80149EC4 10400014 */ beqz $v0, .L80149F18
|
|
/* 0E05C8 80149EC8 24020050 */ addiu $v0, $zero, 0x50
|
|
/* 0E05CC 80149ECC 080527C6 */ j .L80149F18
|
|
/* 0E05D0 80149ED0 A6220000 */ sh $v0, ($s1)
|
|
|
|
.L80149ED4:
|
|
/* 0E05D4 80149ED4 02021024 */ and $v0, $s0, $v0
|
|
/* 0E05D8 80149ED8 10400007 */ beqz $v0, .L80149EF8
|
|
/* 0E05DC 80149EDC 3C020010 */ lui $v0, 0x10
|
|
/* 0E05E0 80149EE0 86220000 */ lh $v0, ($s1)
|
|
/* 0E05E4 80149EE4 2842003C */ slti $v0, $v0, 0x3c
|
|
/* 0E05E8 80149EE8 1040000B */ beqz $v0, .L80149F18
|
|
/* 0E05EC 80149EEC 2402003C */ addiu $v0, $zero, 0x3c
|
|
/* 0E05F0 80149EF0 080527C6 */ j .L80149F18
|
|
/* 0E05F4 80149EF4 A6220000 */ sh $v0, ($s1)
|
|
|
|
.L80149EF8:
|
|
/* 0E05F8 80149EF8 02021024 */ and $v0, $s0, $v0
|
|
/* 0E05FC 80149EFC 10400006 */ beqz $v0, .L80149F18
|
|
/* 0E0600 80149F00 00000000 */ nop
|
|
/* 0E0604 80149F04 86220000 */ lh $v0, ($s1)
|
|
/* 0E0608 80149F08 28420028 */ slti $v0, $v0, 0x28
|
|
/* 0E060C 80149F0C 10400002 */ beqz $v0, .L80149F18
|
|
/* 0E0610 80149F10 24020028 */ addiu $v0, $zero, 0x28
|
|
/* 0E0614 80149F14 A6220000 */ sh $v0, ($s1)
|
|
.L80149F18:
|
|
/* 0E0618 80149F18 86420000 */ lh $v0, ($s2)
|
|
/* 0E061C 80149F1C 1C400005 */ bgtz $v0, .L80149F34
|
|
/* 0E0620 80149F20 28420080 */ slti $v0, $v0, 0x80
|
|
/* 0E0624 80149F24 24020001 */ addiu $v0, $zero, 1
|
|
/* 0E0628 80149F28 A6420000 */ sh $v0, ($s2)
|
|
/* 0E062C 80149F2C 86420000 */ lh $v0, ($s2)
|
|
/* 0E0630 80149F30 28420080 */ slti $v0, $v0, 0x80
|
|
.L80149F34:
|
|
/* 0E0634 80149F34 14400002 */ bnez $v0, .L80149F40
|
|
/* 0E0638 80149F38 2402007F */ addiu $v0, $zero, 0x7f
|
|
/* 0E063C 80149F3C A6420000 */ sh $v0, ($s2)
|
|
.L80149F40:
|
|
/* 0E0640 80149F40 8FBF0024 */ lw $ra, 0x24($sp)
|
|
/* 0E0644 80149F44 8FB20020 */ lw $s2, 0x20($sp)
|
|
/* 0E0648 80149F48 8FB1001C */ lw $s1, 0x1c($sp)
|
|
/* 0E064C 80149F4C 8FB00018 */ lw $s0, 0x18($sp)
|
|
/* 0E0650 80149F50 03E00008 */ jr $ra
|
|
/* 0E0654 80149F54 27BD0028 */ addiu $sp, $sp, 0x28
|
|
|