mirror of
https://github.com/pmret/papermario.git
synced 2024-11-18 08:52:40 +01:00
66 lines
2.7 KiB
ArmAsm
66 lines
2.7 KiB
ArmAsm
.set noat # allow manual use of $at
|
|
.set noreorder # don't insert nops after branches
|
|
|
|
|
|
glabel func_8024D628
|
|
.L8024D628:
|
|
/* 140968 8024D628 3C028027 */ lui $v0, 0x8027
|
|
/* 14096C 8024D62C 8C4200C0 */ lw $v0, 0xc0($v0)
|
|
/* 140970 8024D630 3C030002 */ lui $v1, 2
|
|
/* 140974 8024D634 00431024 */ and $v0, $v0, $v1
|
|
/* 140978 8024D638 1040002F */ beqz $v0, .L8024D6F8
|
|
/* 14097C 8024D63C 24020002 */ addiu $v0, $zero, 2
|
|
/* 140980 8024D640 92030003 */ lbu $v1, 3($s0)
|
|
/* 140984 8024D644 14620006 */ bne $v1, $v0, .L8024D660
|
|
/* 140988 8024D648 24020005 */ addiu $v0, $zero, 5
|
|
/* 14098C 8024D64C 24020003 */ addiu $v0, $zero, 3
|
|
/* 140990 8024D650 A2020001 */ sb $v0, 1($s0)
|
|
/* 140994 8024D654 24020001 */ addiu $v0, $zero, 1
|
|
/* 140998 8024D658 080935BE */ j func_8024D6F8
|
|
/* 14099C 8024D65C A2020002 */ sb $v0, 2($s0)
|
|
|
|
.L8024D660:
|
|
/* 1409A0 8024D660 14620006 */ bne $v1, $v0, .L8024D67C
|
|
/* 1409A4 8024D664 24020001 */ addiu $v0, $zero, 1
|
|
/* 1409A8 8024D668 A2020001 */ sb $v0, 1($s0)
|
|
/* 1409AC 8024D66C 080935BE */ j func_8024D6F8
|
|
/* 1409B0 8024D670 A2020002 */ sb $v0, 2($s0)
|
|
|
|
.L8024D674:
|
|
/* 1409B4 8024D674 080935BE */ j func_8024D6F8
|
|
/* 1409B8 8024D678 A2020002 */ sb $v0, 2($s0)
|
|
|
|
.L8024D67C:
|
|
/* 1409BC 8024D67C 92060006 */ lbu $a2, 6($s0)
|
|
/* 1409C0 8024D680 82050006 */ lb $a1, 6($s0)
|
|
.L8024D684:
|
|
/* 1409C4 8024D684 92020002 */ lbu $v0, 2($s0)
|
|
/* 1409C8 8024D688 24420001 */ addiu $v0, $v0, 1
|
|
/* 1409CC 8024D68C A2020002 */ sb $v0, 2($s0)
|
|
/* 1409D0 8024D690 00021600 */ sll $v0, $v0, 0x18
|
|
/* 1409D4 8024D694 00022603 */ sra $a0, $v0, 0x18
|
|
/* 1409D8 8024D698 0085102A */ slt $v0, $a0, $a1
|
|
/* 1409DC 8024D69C 1040FFF5 */ beqz $v0, .L8024D674
|
|
/* 1409E0 8024D6A0 24C2FFFF */ addiu $v0, $a2, -1
|
|
/* 1409E4 8024D6A4 82020004 */ lb $v0, 4($s0)
|
|
/* 1409E8 8024D6A8 82030005 */ lb $v1, 5($s0)
|
|
/* 1409EC 8024D6AC 00430018 */ mult $v0, $v1
|
|
/* 1409F0 8024D6B0 00004812 */ mflo $t1
|
|
/* 1409F4 8024D6B4 00000000 */ nop
|
|
/* 1409F8 8024D6B8 00000000 */ nop
|
|
/* 1409FC 8024D6BC 01250018 */ mult $t1, $a1
|
|
/* 140A00 8024D6C0 00001012 */ mflo $v0
|
|
/* 140A04 8024D6C4 00000000 */ nop
|
|
/* 140A08 8024D6C8 00000000 */ nop
|
|
/* 140A0C 8024D6CC 00640018 */ mult $v1, $a0
|
|
/* 140A10 8024D6D0 82040001 */ lb $a0, 1($s0)
|
|
/* 140A14 8024D6D4 00001812 */ mflo $v1
|
|
/* 140A18 8024D6D8 00431021 */ addu $v0, $v0, $v1
|
|
/* 140A1C 8024D6DC 00441021 */ addu $v0, $v0, $a0
|
|
/* 140A20 8024D6E0 8E030008 */ lw $v1, 8($s0)
|
|
/* 140A24 8024D6E4 92040003 */ lbu $a0, 3($s0)
|
|
/* 140A28 8024D6E8 00621821 */ addu $v1, $v1, $v0
|
|
/* 140A2C 8024D6EC 90620000 */ lbu $v0, ($v1)
|
|
/* 140A30 8024D6F0 1082FFE4 */ beq $a0, $v0, .L8024D684
|
|
/* 140A34 8024D6F4 00000000 */ nop
|