mirror of
https://github.com/pmret/papermario.git
synced 2024-11-18 17:02:46 +01:00
48 lines
2.0 KiB
ArmAsm
48 lines
2.0 KiB
ArmAsm
|
.set noat # allow manual use of $at
|
||
|
.set noreorder # don't insert nops after branches
|
||
|
|
||
|
|
||
|
glabel func_80055330
|
||
|
/* 030730 80055330 27BDFFE0 */ addiu $sp, $sp, -0x20
|
||
|
/* 030734 80055334 0080582D */ daddu $t3, $a0, $zero
|
||
|
/* 030738 80055338 00C0502D */ daddu $t2, $a2, $zero
|
||
|
/* 03073C 8005533C 00E0402D */ daddu $t0, $a3, $zero
|
||
|
/* 030740 80055340 0100382D */ daddu $a3, $t0, $zero
|
||
|
/* 030744 80055344 30A500FF */ andi $a1, $a1, 0xff
|
||
|
/* 030748 80055348 00051A00 */ sll $v1, $a1, 8
|
||
|
/* 03074C 8005534C 3C04800A */ lui $a0, 0x800a
|
||
|
/* 030750 80055350 8C84A640 */ lw $a0, -0x59c0($a0)
|
||
|
/* 030754 80055354 0060482D */ daddu $t1, $v1, $zero
|
||
|
/* 030758 80055358 10A00002 */ beqz $a1, .L80055364
|
||
|
/* 03075C 8005535C AFBF0018 */ sw $ra, 0x18($sp)
|
||
|
/* 030760 80055360 346900FF */ ori $t1, $v1, 0xff
|
||
|
.L80055364:
|
||
|
/* 030764 80055364 00061600 */ sll $v0, $a2, 0x18
|
||
|
/* 030768 80055368 04420001 */ bltzl $v0, .L80055370
|
||
|
/* 03076C 8005536C 240A007F */ addiu $t2, $zero, 0x7f
|
||
|
.L80055370:
|
||
|
/* 030770 80055370 00081400 */ sll $v0, $t0, 0x10
|
||
|
/* 030774 80055374 00021C03 */ sra $v1, $v0, 0x10
|
||
|
/* 030778 80055378 28620961 */ slti $v0, $v1, 0x961
|
||
|
/* 03077C 8005537C 14400003 */ bnez $v0, .L8005538C
|
||
|
/* 030780 80055380 2862F6A0 */ slti $v0, $v1, -0x960
|
||
|
/* 030784 80055384 080154E5 */ j .L80055394
|
||
|
/* 030788 80055388 24070960 */ addiu $a3, $zero, 0x960
|
||
|
|
||
|
.L8005538C:
|
||
|
/* 03078C 8005538C 54400001 */ bnel $v0, $zero, .L80055394
|
||
|
/* 030790 80055390 2407F6A0 */ addiu $a3, $zero, -0x960
|
||
|
.L80055394:
|
||
|
/* 030794 80055394 314200FF */ andi $v0, $t2, 0xff
|
||
|
/* 030798 80055398 00093400 */ sll $a2, $t1, 0x10
|
||
|
/* 03079C 8005539C 00073C00 */ sll $a3, $a3, 0x10
|
||
|
/* 0307A0 800553A0 35651000 */ ori $a1, $t3, 0x1000
|
||
|
/* 0307A4 800553A4 00063403 */ sra $a2, $a2, 0x10
|
||
|
/* 0307A8 800553A8 00073C03 */ sra $a3, $a3, 0x10
|
||
|
/* 0307AC 800553AC 0C012DB6 */ jal func_8004B6D8
|
||
|
/* 0307B0 800553B0 AFA20010 */ sw $v0, 0x10($sp)
|
||
|
/* 0307B4 800553B4 8FBF0018 */ lw $ra, 0x18($sp)
|
||
|
/* 0307B8 800553B8 03E00008 */ jr $ra
|
||
|
/* 0307BC 800553BC 27BD0020 */ addiu $sp, $sp, 0x20
|
||
|
|