mirror of
https://github.com/pmret/papermario.git
synced 2024-11-18 17:02:46 +01:00
136 lines
6.1 KiB
ArmAsm
136 lines
6.1 KiB
ArmAsm
.set noat # allow manual use of $at
|
|
.set noreorder # don't insert nops after branches
|
|
|
|
|
|
glabel HasMerleeCastsLeft
|
|
/* 1902A8 802619C8 AC800084 */ sw $zero, 0x84($a0)
|
|
/* 1902AC 802619CC 3C028011 */ lui $v0, 0x8011
|
|
/* 1902B0 802619D0 8042F51A */ lb $v0, -0xae6($v0)
|
|
/* 1902B4 802619D4 18400002 */ blez $v0, .L802619E0
|
|
/* 1902B8 802619D8 24020001 */ addiu $v0, $zero, 1
|
|
/* 1902BC 802619DC AC820084 */ sw $v0, 0x84($a0)
|
|
.L802619E0:
|
|
/* 1902C0 802619E0 03E00008 */ jr $ra
|
|
/* 1902C4 802619E4 24020002 */ addiu $v0, $zero, 2
|
|
|
|
/* 1902C8 802619E8 27BDFFC0 */ addiu $sp, $sp, -0x40
|
|
/* 1902CC 802619EC AFB20038 */ sw $s2, 0x38($sp)
|
|
/* 1902D0 802619F0 0080902D */ daddu $s2, $a0, $zero
|
|
/* 1902D4 802619F4 AFBF003C */ sw $ra, 0x3c($sp)
|
|
/* 1902D8 802619F8 AFB10034 */ sw $s1, 0x34($sp)
|
|
/* 1902DC 802619FC AFB00030 */ sw $s0, 0x30($sp)
|
|
/* 1902E0 80261A00 8E50000C */ lw $s0, 0xc($s2)
|
|
/* 1902E4 80261A04 8E050000 */ lw $a1, ($s0)
|
|
/* 1902E8 80261A08 0C0B1EAF */ jal get_variable
|
|
/* 1902EC 80261A0C 26100004 */ addiu $s0, $s0, 4
|
|
/* 1902F0 80261A10 8E050000 */ lw $a1, ($s0)
|
|
/* 1902F4 80261A14 26100004 */ addiu $s0, $s0, 4
|
|
/* 1902F8 80261A18 0240202D */ daddu $a0, $s2, $zero
|
|
/* 1902FC 80261A1C 0C0B1EAF */ jal get_variable
|
|
/* 190300 80261A20 0040882D */ daddu $s1, $v0, $zero
|
|
/* 190304 80261A24 0240202D */ daddu $a0, $s2, $zero
|
|
/* 190308 80261A28 8E050000 */ lw $a1, ($s0)
|
|
/* 19030C 80261A2C 0C0B1EAF */ jal get_variable
|
|
/* 190310 80261A30 0040802D */ daddu $s0, $v0, $zero
|
|
/* 190314 80261A34 44910000 */ mtc1 $s1, $f0
|
|
/* 190318 80261A38 00000000 */ nop
|
|
/* 19031C 80261A3C 46800020 */ cvt.s.w $f0, $f0
|
|
/* 190320 80261A40 44050000 */ mfc1 $a1, $f0
|
|
/* 190324 80261A44 44900000 */ mtc1 $s0, $f0
|
|
/* 190328 80261A48 00000000 */ nop
|
|
/* 19032C 80261A4C 46800020 */ cvt.s.w $f0, $f0
|
|
/* 190330 80261A50 44060000 */ mfc1 $a2, $f0
|
|
/* 190334 80261A54 44820000 */ mtc1 $v0, $f0
|
|
/* 190338 80261A58 00000000 */ nop
|
|
/* 19033C 80261A5C 46800020 */ cvt.s.w $f0, $f0
|
|
/* 190340 80261A60 3C048007 */ lui $a0, 0x8007
|
|
/* 190344 80261A64 8C847410 */ lw $a0, 0x7410($a0)
|
|
/* 190348 80261A68 44070000 */ mfc1 $a3, $f0
|
|
/* 19034C 80261A6C 27A30020 */ addiu $v1, $sp, 0x20
|
|
/* 190350 80261A70 AFA30010 */ sw $v1, 0x10($sp)
|
|
/* 190354 80261A74 27A30024 */ addiu $v1, $sp, 0x24
|
|
/* 190358 80261A78 AFA30014 */ sw $v1, 0x14($sp)
|
|
/* 19035C 80261A7C 27A30028 */ addiu $v1, $sp, 0x28
|
|
/* 190360 80261A80 0C00B94E */ jal get_screen_coords
|
|
/* 190364 80261A84 AFA30018 */ sw $v1, 0x18($sp)
|
|
/* 190368 80261A88 8FA20020 */ lw $v0, 0x20($sp)
|
|
/* 19036C 80261A8C 2442001E */ addiu $v0, $v0, 0x1e
|
|
/* 190370 80261A90 AFA20020 */ sw $v0, 0x20($sp)
|
|
/* 190374 80261A94 8FA20024 */ lw $v0, 0x24($sp)
|
|
/* 190378 80261A98 8E4300AC */ lw $v1, 0xac($s2)
|
|
/* 19037C 80261A9C 2442FFED */ addiu $v0, $v0, -0x13
|
|
/* 190380 80261AA0 1860000F */ blez $v1, .L80261AE0
|
|
/* 190384 80261AA4 AFA20024 */ sw $v0, 0x24($sp)
|
|
/* 190388 80261AA8 3C048011 */ lui $a0, 0x8011
|
|
/* 19038C 80261AAC 24848AD4 */ addiu $a0, $a0, -0x752c
|
|
/* 190390 80261AB0 0C050529 */ jal create_icon
|
|
/* 190394 80261AB4 00000000 */ nop
|
|
/* 190398 80261AB8 8FA50020 */ lw $a1, 0x20($sp)
|
|
/* 19039C 80261ABC 8FA60024 */ lw $a2, 0x24($sp)
|
|
/* 1903A0 80261AC0 0040202D */ daddu $a0, $v0, $zero
|
|
/* 1903A4 80261AC4 3C01802A */ lui $at, 0x802a
|
|
/* 1903A8 80261AC8 AC24FBAC */ sw $a0, -0x454($at)
|
|
/* 1903AC 80261ACC 0C051261 */ jal set_icon_render_pos
|
|
/* 1903B0 80261AD0 00000000 */ nop
|
|
/* 1903B4 80261AD4 8FA20024 */ lw $v0, 0x24($sp)
|
|
/* 1903B8 80261AD8 24420009 */ addiu $v0, $v0, 9
|
|
/* 1903BC 80261ADC AFA20024 */ sw $v0, 0x24($sp)
|
|
.L80261AE0:
|
|
/* 1903C0 80261AE0 8E4200B0 */ lw $v0, 0xb0($s2)
|
|
/* 1903C4 80261AE4 1C400004 */ bgtz $v0, .L80261AF8
|
|
/* 1903C8 80261AE8 00000000 */ nop
|
|
/* 1903CC 80261AEC 8E4200B4 */ lw $v0, 0xb4($s2)
|
|
/* 1903D0 80261AF0 1840000C */ blez $v0, .L80261B24
|
|
/* 1903D4 80261AF4 00000000 */ nop
|
|
.L80261AF8:
|
|
/* 1903D8 80261AF8 3C048011 */ lui $a0, 0x8011
|
|
/* 1903DC 80261AFC 24848AAC */ addiu $a0, $a0, -0x7554
|
|
/* 1903E0 80261B00 0C050529 */ jal create_icon
|
|
/* 1903E4 80261B04 00000000 */ nop
|
|
/* 1903E8 80261B08 8FA50020 */ lw $a1, 0x20($sp)
|
|
/* 1903EC 80261B0C 8FA60024 */ lw $a2, 0x24($sp)
|
|
/* 1903F0 80261B10 0040202D */ daddu $a0, $v0, $zero
|
|
/* 1903F4 80261B14 3C01802A */ lui $at, 0x802a
|
|
/* 1903F8 80261B18 AC24FBA8 */ sw $a0, -0x458($at)
|
|
/* 1903FC 80261B1C 0C051261 */ jal set_icon_render_pos
|
|
/* 190400 80261B20 00000000 */ nop
|
|
.L80261B24:
|
|
/* 190404 80261B24 8FBF003C */ lw $ra, 0x3c($sp)
|
|
/* 190408 80261B28 8FB20038 */ lw $s2, 0x38($sp)
|
|
/* 19040C 80261B2C 8FB10034 */ lw $s1, 0x34($sp)
|
|
/* 190410 80261B30 8FB00030 */ lw $s0, 0x30($sp)
|
|
/* 190414 80261B34 24020002 */ addiu $v0, $zero, 2
|
|
/* 190418 80261B38 03E00008 */ jr $ra
|
|
/* 19041C 80261B3C 27BD0040 */ addiu $sp, $sp, 0x40
|
|
|
|
/* 190420 80261B40 27BDFFE8 */ addiu $sp, $sp, -0x18
|
|
/* 190424 80261B44 AFB00010 */ sw $s0, 0x10($sp)
|
|
/* 190428 80261B48 0080802D */ daddu $s0, $a0, $zero
|
|
/* 19042C 80261B4C AFBF0014 */ sw $ra, 0x14($sp)
|
|
/* 190430 80261B50 8E0200AC */ lw $v0, 0xac($s0)
|
|
/* 190434 80261B54 18400005 */ blez $v0, .L80261B6C
|
|
/* 190438 80261B58 00000000 */ nop
|
|
/* 19043C 80261B5C 3C04802A */ lui $a0, 0x802a
|
|
/* 190440 80261B60 8C84FBAC */ lw $a0, -0x454($a0)
|
|
/* 190444 80261B64 0C05123D */ jal free_icon
|
|
/* 190448 80261B68 00000000 */ nop
|
|
.L80261B6C:
|
|
/* 19044C 80261B6C 8E0200B0 */ lw $v0, 0xb0($s0)
|
|
/* 190450 80261B70 1C400004 */ bgtz $v0, .L80261B84
|
|
/* 190454 80261B74 00000000 */ nop
|
|
/* 190458 80261B78 8E0200B4 */ lw $v0, 0xb4($s0)
|
|
/* 19045C 80261B7C 18400005 */ blez $v0, .L80261B94
|
|
/* 190460 80261B80 00000000 */ nop
|
|
.L80261B84:
|
|
/* 190464 80261B84 3C04802A */ lui $a0, 0x802a
|
|
/* 190468 80261B88 8C84FBA8 */ lw $a0, -0x458($a0)
|
|
/* 19046C 80261B8C 0C05123D */ jal free_icon
|
|
/* 190470 80261B90 00000000 */ nop
|
|
.L80261B94:
|
|
/* 190474 80261B94 8FBF0014 */ lw $ra, 0x14($sp)
|
|
/* 190478 80261B98 8FB00010 */ lw $s0, 0x10($sp)
|
|
/* 19047C 80261B9C 24020002 */ addiu $v0, $zero, 2
|
|
/* 190480 80261BA0 03E00008 */ jr $ra
|
|
/* 190484 80261BA4 27BD0018 */ addiu $sp, $sp, 0x18
|
|
|