mirror of
https://github.com/pmret/papermario.git
synced 2024-11-08 20:12:30 +01:00
106 lines
5.1 KiB
ArmAsm
Generated
106 lines
5.1 KiB
ArmAsm
Generated
.set noat # allow manual use of $at
|
|
.set noreorder # don't insert nops after branches
|
|
|
|
glabel func_80027600
|
|
/* 2A00 80027600 27BDFF98 */ addiu $sp, $sp, -0x68
|
|
/* 2A04 80027604 0080502D */ daddu $t2, $a0, $zero
|
|
/* 2A08 80027608 0000302D */ daddu $a2, $zero, $zero
|
|
/* 2A0C 8002760C 27A90008 */ addiu $t1, $sp, 8
|
|
/* 2A10 80027610 27A80028 */ addiu $t0, $sp, 0x28
|
|
/* 2A14 80027614 27A70048 */ addiu $a3, $sp, 0x48
|
|
.L80027618:
|
|
/* 2A18 80027618 01261021 */ addu $v0, $t1, $a2
|
|
/* 2A1C 8002761C 01061821 */ addu $v1, $t0, $a2
|
|
/* 2A20 80027620 00E62021 */ addu $a0, $a3, $a2
|
|
/* 2A24 80027624 24C60001 */ addiu $a2, $a2, 1
|
|
/* 2A28 80027628 A0400000 */ sb $zero, ($v0)
|
|
/* 2A2C 8002762C 28C20020 */ slti $v0, $a2, 0x20
|
|
/* 2A30 80027630 A0600000 */ sb $zero, ($v1)
|
|
/* 2A34 80027634 1440FFF8 */ bnez $v0, .L80027618
|
|
/* 2A38 80027638 A0800000 */ sb $zero, ($a0)
|
|
/* 2A3C 8002763C 0000302D */ daddu $a2, $zero, $zero
|
|
/* 2A40 80027640 27A90008 */ addiu $t1, $sp, 8
|
|
/* 2A44 80027644 27A80028 */ addiu $t0, $sp, 0x28
|
|
/* 2A48 80027648 27A70048 */ addiu $a3, $sp, 0x48
|
|
/* 2A4C 8002764C 0140202D */ daddu $a0, $t2, $zero
|
|
.L80027650:
|
|
/* 2A50 80027650 90830000 */ lbu $v1, ($a0)
|
|
/* 2A54 80027654 01231821 */ addu $v1, $t1, $v1
|
|
/* 2A58 80027658 90620000 */ lbu $v0, ($v1)
|
|
/* 2A5C 8002765C 24420001 */ addiu $v0, $v0, 1
|
|
/* 2A60 80027660 A0620000 */ sb $v0, ($v1)
|
|
/* 2A64 80027664 90830001 */ lbu $v1, 1($a0)
|
|
/* 2A68 80027668 01031821 */ addu $v1, $t0, $v1
|
|
/* 2A6C 8002766C 90620000 */ lbu $v0, ($v1)
|
|
/* 2A70 80027670 24420001 */ addiu $v0, $v0, 1
|
|
/* 2A74 80027674 A0620000 */ sb $v0, ($v1)
|
|
/* 2A78 80027678 90830002 */ lbu $v1, 2($a0)
|
|
/* 2A7C 8002767C 24C60001 */ addiu $a2, $a2, 1
|
|
/* 2A80 80027680 00E31821 */ addu $v1, $a3, $v1
|
|
/* 2A84 80027684 90620000 */ lbu $v0, ($v1)
|
|
/* 2A88 80027688 24420001 */ addiu $v0, $v0, 1
|
|
/* 2A8C 8002768C A0620000 */ sb $v0, ($v1)
|
|
/* 2A90 80027690 28C20009 */ slti $v0, $a2, 9
|
|
/* 2A94 80027694 1440FFEE */ bnez $v0, .L80027650
|
|
/* 2A98 80027698 24840004 */ addiu $a0, $a0, 4
|
|
/* 2A9C 8002769C 0000182D */ daddu $v1, $zero, $zero
|
|
/* 2AA0 800276A0 0060302D */ daddu $a2, $v1, $zero
|
|
/* 2AA4 800276A4 27A40008 */ addiu $a0, $sp, 8
|
|
/* 2AA8 800276A8 00861021 */ addu $v0, $a0, $a2
|
|
.L800276AC:
|
|
/* 2AAC 800276AC 90420000 */ lbu $v0, ($v0)
|
|
/* 2AB0 800276B0 00621821 */ addu $v1, $v1, $v0
|
|
/* 2AB4 800276B4 28620005 */ slti $v0, $v1, 5
|
|
/* 2AB8 800276B8 50400006 */ beql $v0, $zero, .L800276D4
|
|
/* 2ABC 800276BC A3A60000 */ sb $a2, ($sp)
|
|
/* 2AC0 800276C0 24C60001 */ addiu $a2, $a2, 1
|
|
/* 2AC4 800276C4 28C20020 */ slti $v0, $a2, 0x20
|
|
/* 2AC8 800276C8 1440FFF8 */ bnez $v0, .L800276AC
|
|
/* 2ACC 800276CC 00861021 */ addu $v0, $a0, $a2
|
|
/* 2AD0 800276D0 A3A60000 */ sb $a2, ($sp)
|
|
.L800276D4:
|
|
/* 2AD4 800276D4 0000182D */ daddu $v1, $zero, $zero
|
|
/* 2AD8 800276D8 0060302D */ daddu $a2, $v1, $zero
|
|
/* 2ADC 800276DC 27A40028 */ addiu $a0, $sp, 0x28
|
|
/* 2AE0 800276E0 00861021 */ addu $v0, $a0, $a2
|
|
.L800276E4:
|
|
/* 2AE4 800276E4 90420000 */ lbu $v0, ($v0)
|
|
/* 2AE8 800276E8 00621821 */ addu $v1, $v1, $v0
|
|
/* 2AEC 800276EC 28620005 */ slti $v0, $v1, 5
|
|
/* 2AF0 800276F0 50400006 */ beql $v0, $zero, .L8002770C
|
|
/* 2AF4 800276F4 A3A60001 */ sb $a2, 1($sp)
|
|
/* 2AF8 800276F8 24C60001 */ addiu $a2, $a2, 1
|
|
/* 2AFC 800276FC 28C20020 */ slti $v0, $a2, 0x20
|
|
/* 2B00 80027700 1440FFF8 */ bnez $v0, .L800276E4
|
|
/* 2B04 80027704 00861021 */ addu $v0, $a0, $a2
|
|
/* 2B08 80027708 A3A60001 */ sb $a2, 1($sp)
|
|
.L8002770C:
|
|
/* 2B0C 8002770C 0000182D */ daddu $v1, $zero, $zero
|
|
/* 2B10 80027710 0060302D */ daddu $a2, $v1, $zero
|
|
/* 2B14 80027714 27A40048 */ addiu $a0, $sp, 0x48
|
|
/* 2B18 80027718 00861021 */ addu $v0, $a0, $a2
|
|
.L8002771C:
|
|
/* 2B1C 8002771C 90420000 */ lbu $v0, ($v0)
|
|
/* 2B20 80027720 00621821 */ addu $v1, $v1, $v0
|
|
/* 2B24 80027724 28620005 */ slti $v0, $v1, 5
|
|
/* 2B28 80027728 50400006 */ beql $v0, $zero, .L80027744
|
|
/* 2B2C 8002772C A3A60002 */ sb $a2, 2($sp)
|
|
/* 2B30 80027730 24C60001 */ addiu $a2, $a2, 1
|
|
/* 2B34 80027734 28C20020 */ slti $v0, $a2, 0x20
|
|
/* 2B38 80027738 1440FFF8 */ bnez $v0, .L8002771C
|
|
/* 2B3C 8002773C 00861021 */ addu $v0, $a0, $a2
|
|
/* 2B40 80027740 A3A60002 */ sb $a2, 2($sp)
|
|
.L80027744:
|
|
/* 2B44 80027744 30C300FF */ andi $v1, $a2, 0xff
|
|
/* 2B48 80027748 00031840 */ sll $v1, $v1, 1
|
|
/* 2B4C 8002774C 93A20000 */ lbu $v0, ($sp)
|
|
/* 2B50 80027750 93A40001 */ lbu $a0, 1($sp)
|
|
/* 2B54 80027754 000212C0 */ sll $v0, $v0, 0xb
|
|
/* 2B58 80027758 00042180 */ sll $a0, $a0, 6
|
|
/* 2B5C 8002775C 00441021 */ addu $v0, $v0, $a0
|
|
/* 2B60 80027760 00431021 */ addu $v0, $v0, $v1
|
|
/* 2B64 80027764 24420001 */ addiu $v0, $v0, 1
|
|
/* 2B68 80027768 A4A20000 */ sh $v0, ($a1)
|
|
/* 2B6C 8002776C 03E00008 */ jr $ra
|
|
/* 2B70 80027770 27BD0068 */ addiu $sp, $sp, 0x68
|