mirror of
https://github.com/pmret/papermario.git
synced 2024-11-18 08:52:40 +01:00
63 lines
2.9 KiB
ArmAsm
63 lines
2.9 KiB
ArmAsm
.set noat # allow manual use of $at
|
|
.set noreorder # don't insert nops after branches
|
|
|
|
|
|
glabel func_802450D8
|
|
/* 138418 802450D8 0C0513AC */ jal func_80144EB0
|
|
/* 13841C 802450DC 00000000 */ nop
|
|
/* 138420 802450E0 26450016 */ addiu $a1, $s2, 0x16
|
|
/* 138424 802450E4 3C108027 */ lui $s0, 0x8027
|
|
/* 138428 802450E8 26100130 */ addiu $s0, $s0, 0x130
|
|
/* 13842C 802450EC 8E040010 */ lw $a0, 0x10($s0)
|
|
/* 138430 802450F0 0C051261 */ jal set_icon_render_pos
|
|
/* 138434 802450F4 26660007 */ addiu $a2, $s3, 7
|
|
/* 138438 802450F8 8E040010 */ lw $a0, 0x10($s0)
|
|
/* 13843C 802450FC 0C0511F8 */ jal func_801447E0
|
|
/* 138440 80245100 00000000 */ nop
|
|
/* 138444 80245104 3C028027 */ lui $v0, 0x8027
|
|
/* 138448 80245108 804200D4 */ lb $v0, 0xd4($v0)
|
|
/* 13844C 8024510C 1440000C */ bnez $v0, .L80245140
|
|
/* 138450 80245110 00000000 */ nop
|
|
/* 138454 80245114 82830001 */ lb $v1, 1($s4)
|
|
/* 138458 80245118 3C028025 */ lui $v0, 0x8025
|
|
/* 13845C 8024511C 2442F1D8 */ addiu $v0, $v0, -0xe28
|
|
/* 138460 80245120 00622021 */ addu $a0, $v1, $v0
|
|
/* 138464 80245124 90830000 */ lbu $v1, ($a0)
|
|
/* 138468 80245128 2402001D */ addiu $v0, $zero, 0x1d
|
|
/* 13846C 8024512C 14620004 */ bne $v1, $v0, .L80245140
|
|
/* 138470 80245130 0060202D */ daddu $a0, $v1, $zero
|
|
/* 138474 80245134 0240282D */ daddu $a1, $s2, $zero
|
|
/* 138478 80245138 0C090B41 */ jal func_80242D04
|
|
/* 13847C 8024513C 26660006 */ addiu $a2, $s3, 6
|
|
.L80245140:
|
|
/* 138480 80245140 8FBF0024 */ lw $ra, 0x24($sp)
|
|
/* 138484 80245144 8FB40020 */ lw $s4, 0x20($sp)
|
|
/* 138488 80245148 8FB3001C */ lw $s3, 0x1c($sp)
|
|
/* 13848C 8024514C 8FB20018 */ lw $s2, 0x18($sp)
|
|
/* 138490 80245150 8FB10014 */ lw $s1, 0x14($sp)
|
|
/* 138494 80245154 8FB00010 */ lw $s0, 0x10($sp)
|
|
/* 138498 80245158 03E00008 */ jr $ra
|
|
/* 13849C 8024515C 27BD0028 */ addiu $sp, $sp, 0x28
|
|
|
|
/* 1384A0 80245160 27BDFFD8 */ addiu $sp, $sp, -0x28
|
|
/* 1384A4 80245164 AFB10014 */ sw $s1, 0x14($sp)
|
|
/* 1384A8 80245168 8FB10040 */ lw $s1, 0x40($sp)
|
|
/* 1384AC 8024516C AFB40020 */ sw $s4, 0x20($sp)
|
|
/* 1384B0 80245170 0080A02D */ daddu $s4, $a0, $zero
|
|
/* 1384B4 80245174 AFB20018 */ sw $s2, 0x18($sp)
|
|
/* 1384B8 80245178 00A0902D */ daddu $s2, $a1, $zero
|
|
/* 1384BC 8024517C AFB3001C */ sw $s3, 0x1c($sp)
|
|
/* 1384C0 80245180 00C0982D */ daddu $s3, $a2, $zero
|
|
/* 1384C4 80245184 AFBF0024 */ sw $ra, 0x24($sp)
|
|
/* 1384C8 80245188 12200016 */ beqz $s1, .L802451E4
|
|
/* 1384CC 8024518C AFB00010 */ sw $s0, 0x10($sp)
|
|
/* 1384D0 80245190 3C108027 */ lui $s0, 0x8027
|
|
/* 1384D4 80245194 26100130 */ addiu $s0, $s0, 0x130
|
|
/* 1384D8 80245198 8E040014 */ lw $a0, 0x14($s0)
|
|
/* 1384DC 8024519C 0C051280 */ jal set_icon_flags
|
|
/* 1384E0 802451A0 24050020 */ addiu $a1, $zero, 0x20
|
|
/* 1384E4 802451A4 3C013FE0 */ lui $at, 0x3fe0
|
|
/* 1384E8 802451A8 44811800 */ mtc1 $at, $f3
|
|
/* 1384EC 802451AC 44801000 */ mtc1 $zero, $f2
|
|
/* 1384F0 802451B0 44910000 */ mtc1 $s1, $f0
|