mirror of
https://github.com/pmret/papermario.git
synced 2024-11-18 17:02:46 +01:00
231 lines
10 KiB
ArmAsm
231 lines
10 KiB
ArmAsm
.set noat # allow manual use of $at
|
|
.set noreorder # don't insert nops after branches
|
|
|
|
|
|
glabel func_802444C4
|
|
/* 137804 802444C4 3C05F840 */ lui $a1, 0xf840
|
|
/* 137808 802444C8 34A55BDE */ ori $a1, $a1, 0x5bde
|
|
/* 13780C 802444CC 3C108027 */ lui $s0, 0x8027
|
|
/* 137810 802444D0 261000C4 */ addiu $s0, $s0, 0xc4
|
|
/* 137814 802444D4 3C118027 */ lui $s1, 0x8027
|
|
/* 137818 802444D8 263100C0 */ addiu $s1, $s1, 0xc0
|
|
/* 13781C 802444DC AE150000 */ sw $s5, ($s0)
|
|
/* 137820 802444E0 0C0B1EAF */ jal get_variable
|
|
/* 137824 802444E4 AE360000 */ sw $s6, ($s1)
|
|
/* 137828 802444E8 10400003 */ beqz $v0, .L802444F8
|
|
/* 13782C 802444EC 0200202D */ daddu $a0, $s0, $zero
|
|
/* 137830 802444F0 0C0910A8 */ jal func_802442A0
|
|
/* 137834 802444F4 0220282D */ daddu $a1, $s1, $zero
|
|
.L802444F8:
|
|
/* 137838 802444F8 8E040000 */ lw $a0, ($s0)
|
|
/* 13783C 802444FC 30821000 */ andi $v0, $a0, 0x1000
|
|
/* 137840 80244500 14400007 */ bnez $v0, .L80244520
|
|
/* 137844 80244504 00000000 */ nop
|
|
/* 137848 80244508 3C028027 */ lui $v0, 0x8027
|
|
/* 13784C 8024450C 804200D4 */ lb $v0, 0xd4($v0)
|
|
/* 137850 80244510 1440000B */ bnez $v0, .L80244540
|
|
/* 137854 80244514 30824000 */ andi $v0, $a0, 0x4000
|
|
/* 137858 80244518 10400009 */ beqz $v0, .L80244540
|
|
/* 13785C 8024451C 00000000 */ nop
|
|
.L80244520:
|
|
/* 137860 80244520 0C039E1B */ jal enforce_hpfp_limits
|
|
/* 137864 80244524 00000000 */ nop
|
|
/* 137868 80244528 0C05272D */ jal play_sound
|
|
/* 13786C 8024452C 240400C6 */ addiu $a0, $zero, 0xc6
|
|
/* 137870 80244530 0C00CD3C */ jal set_game_mode
|
|
/* 137874 80244534 2404000B */ addiu $a0, $zero, 0xb
|
|
/* 137878 80244538 080911B8 */ j .L802446E0
|
|
/* 13787C 8024453C 00000000 */ nop
|
|
.L80244540:
|
|
/* 137880 80244540 3C048027 */ lui $a0, 0x8027
|
|
/* 137884 80244544 24840118 */ addiu $a0, $a0, 0x118
|
|
/* 137888 80244548 3C038027 */ lui $v1, 0x8027
|
|
/* 13788C 8024454C 8C6300CC */ lw $v1, 0xcc($v1)
|
|
/* 137890 80244550 8C820000 */ lw $v0, ($a0)
|
|
/* 137894 80244554 54620001 */ bnel $v1, $v0, .L8024455C
|
|
/* 137898 80244558 AC830000 */ sw $v1, ($a0)
|
|
.L8024455C:
|
|
/* 13789C 8024455C 3C038027 */ lui $v1, 0x8027
|
|
/* 1378A0 80244560 24630108 */ addiu $v1, $v1, 0x108
|
|
/* 1378A4 80244564 8C620000 */ lw $v0, ($v1)
|
|
/* 1378A8 80244568 12620020 */ beq $s3, $v0, .L802445EC
|
|
/* 1378AC 8024456C 00000000 */ nop
|
|
/* 1378B0 80244570 AC730000 */ sw $s3, ($v1)
|
|
/* 1378B4 80244574 3C018027 */ lui $at, 0x8027
|
|
/* 1378B8 80244578 AC200110 */ sw $zero, 0x110($at)
|
|
/* 1378BC 8024457C 3C018027 */ lui $at, 0x8027
|
|
/* 1378C0 80244580 AC200114 */ sw $zero, 0x114($at)
|
|
/* 1378C4 80244584 12600017 */ beqz $s3, .L802445E4
|
|
/* 1378C8 80244588 0260202D */ daddu $a0, $s3, $zero
|
|
/* 1378CC 8024458C 27A50020 */ addiu $a1, $sp, 0x20
|
|
/* 1378D0 80244590 27A60024 */ addiu $a2, $sp, 0x24
|
|
/* 1378D4 80244594 27A2002C */ addiu $v0, $sp, 0x2c
|
|
/* 1378D8 80244598 27A70028 */ addiu $a3, $sp, 0x28
|
|
/* 1378DC 8024459C AFA20010 */ sw $v0, 0x10($sp)
|
|
/* 1378E0 802445A0 AFA00014 */ sw $zero, 0x14($sp)
|
|
/* 1378E4 802445A4 AFA00018 */ sw $zero, 0x18($sp)
|
|
/* 1378E8 802445A8 0C0497DA */ jal get_string_properties
|
|
/* 1378EC 802445AC AFA0001C */ sw $zero, 0x1c($sp)
|
|
/* 1378F0 802445B0 8FA3002C */ lw $v1, 0x2c($sp)
|
|
/* 1378F4 802445B4 30620001 */ andi $v0, $v1, 1
|
|
/* 1378F8 802445B8 10400002 */ beqz $v0, .L802445C4
|
|
/* 1378FC 802445BC 24620001 */ addiu $v0, $v1, 1
|
|
/* 137900 802445C0 AFA2002C */ sw $v0, 0x2c($sp)
|
|
.L802445C4:
|
|
/* 137904 802445C4 8FA2002C */ lw $v0, 0x2c($sp)
|
|
/* 137908 802445C8 3C038027 */ lui $v1, 0x8027
|
|
/* 13790C 802445CC 2463010C */ addiu $v1, $v1, 0x10c
|
|
/* 137910 802445D0 2442FFFE */ addiu $v0, $v0, -2
|
|
/* 137914 802445D4 04410005 */ bgez $v0, .L802445EC
|
|
/* 137918 802445D8 AC620000 */ sw $v0, ($v1)
|
|
/* 13791C 802445DC 0809117B */ j .L802445EC
|
|
/* 137920 802445E0 AC600000 */ sw $zero, ($v1)
|
|
.L802445E4:
|
|
/* 137924 802445E4 3C018027 */ lui $at, 0x8027
|
|
/* 137928 802445E8 AC20010C */ sw $zero, 0x10c($at)
|
|
.L802445EC:
|
|
/* 13792C 802445EC 3C028027 */ lui $v0, 0x8027
|
|
/* 137930 802445F0 8C4200C0 */ lw $v0, 0xc0($v0)
|
|
/* 137934 802445F4 30420008 */ andi $v0, $v0, 8
|
|
/* 137938 802445F8 10400008 */ beqz $v0, .L8024461C
|
|
/* 13793C 802445FC 00000000 */ nop
|
|
/* 137940 80244600 3C038027 */ lui $v1, 0x8027
|
|
/* 137944 80244604 24630110 */ addiu $v1, $v1, 0x110
|
|
/* 137948 80244608 8C620000 */ lw $v0, ($v1)
|
|
/* 13794C 8024460C 2442FFFE */ addiu $v0, $v0, -2
|
|
/* 137950 80244610 04410002 */ bgez $v0, .L8024461C
|
|
/* 137954 80244614 AC620000 */ sw $v0, ($v1)
|
|
/* 137958 80244618 AC600000 */ sw $zero, ($v1)
|
|
.L8024461C:
|
|
/* 13795C 8024461C 3C028027 */ lui $v0, 0x8027
|
|
/* 137960 80244620 8C4200C0 */ lw $v0, 0xc0($v0)
|
|
/* 137964 80244624 30420004 */ andi $v0, $v0, 4
|
|
/* 137968 80244628 1040000B */ beqz $v0, .L80244658
|
|
/* 13796C 8024462C 00000000 */ nop
|
|
/* 137970 80244630 3C038027 */ lui $v1, 0x8027
|
|
/* 137974 80244634 24630110 */ addiu $v1, $v1, 0x110
|
|
/* 137978 80244638 8C620000 */ lw $v0, ($v1)
|
|
/* 13797C 8024463C 3C048027 */ lui $a0, 0x8027
|
|
/* 137980 80244640 8C84010C */ lw $a0, 0x10c($a0)
|
|
/* 137984 80244644 24420002 */ addiu $v0, $v0, 2
|
|
/* 137988 80244648 AC620000 */ sw $v0, ($v1)
|
|
/* 13798C 8024464C 0082102A */ slt $v0, $a0, $v0
|
|
/* 137990 80244650 54400001 */ bnezl $v0, .L80244658
|
|
/* 137994 80244654 AC640000 */ sw $a0, ($v1)
|
|
.L80244658:
|
|
/* 137998 80244658 3C108027 */ lui $s0, 0x8027
|
|
/* 13799C 8024465C 26100114 */ addiu $s0, $s0, 0x114
|
|
/* 1379A0 80244660 3C048027 */ lui $a0, 0x8027
|
|
/* 1379A4 80244664 8C840110 */ lw $a0, 0x110($a0)
|
|
/* 1379A8 80244668 8E020000 */ lw $v0, ($s0)
|
|
/* 1379AC 8024466C 00042100 */ sll $a0, $a0, 4
|
|
/* 1379B0 80244670 0C090D06 */ jal func_80243418
|
|
/* 1379B4 80244674 00822023 */ subu $a0, $a0, $v0
|
|
/* 1379B8 80244678 8E030000 */ lw $v1, ($s0)
|
|
/* 1379BC 8024467C 00621821 */ addu $v1, $v1, $v0
|
|
/* 1379C0 80244680 AE030000 */ sw $v1, ($s0)
|
|
/* 1379C4 80244684 92820000 */ lbu $v0, ($s4)
|
|
/* 1379C8 80244688 10400006 */ beqz $v0, .L802446A4
|
|
/* 1379CC 8024468C 00000000 */ nop
|
|
/* 1379D0 80244690 8E820010 */ lw $v0, 0x10($s4)
|
|
/* 1379D4 80244694 10400003 */ beqz $v0, .L802446A4
|
|
/* 1379D8 80244698 00000000 */ nop
|
|
/* 1379DC 8024469C 0040F809 */ jalr $v0
|
|
/* 1379E0 802446A0 0280202D */ daddu $a0, $s4, $zero
|
|
.L802446A4:
|
|
/* 1379E4 802446A4 3C118025 */ lui $s1, 0x8025
|
|
/* 1379E8 802446A8 2631EF80 */ addiu $s1, $s1, -0x1080
|
|
/* 1379EC 802446AC 0000802D */ daddu $s0, $zero, $zero
|
|
.L802446B0:
|
|
/* 1379F0 802446B0 8E240000 */ lw $a0, ($s1)
|
|
/* 1379F4 802446B4 90820000 */ lbu $v0, ($a0)
|
|
/* 1379F8 802446B8 10400006 */ beqz $v0, .L802446D4
|
|
/* 1379FC 802446BC 26100001 */ addiu $s0, $s0, 1
|
|
/* 137A00 802446C0 8C820014 */ lw $v0, 0x14($a0)
|
|
/* 137A04 802446C4 10400003 */ beqz $v0, .L802446D4
|
|
/* 137A08 802446C8 00000000 */ nop
|
|
/* 137A0C 802446CC 0040F809 */ jalr $v0
|
|
/* 137A10 802446D0 00000000 */ nop
|
|
.L802446D4:
|
|
/* 137A14 802446D4 2A020007 */ slti $v0, $s0, 7
|
|
/* 137A18 802446D8 1440FFF5 */ bnez $v0, .L802446B0
|
|
/* 137A1C 802446DC 26310004 */ addiu $s1, $s1, 4
|
|
.L802446E0:
|
|
/* 137A20 802446E0 8FBF004C */ lw $ra, 0x4c($sp)
|
|
/* 137A24 802446E4 8FB60048 */ lw $s6, 0x48($sp)
|
|
/* 137A28 802446E8 8FB50044 */ lw $s5, 0x44($sp)
|
|
/* 137A2C 802446EC 8FB40040 */ lw $s4, 0x40($sp)
|
|
/* 137A30 802446F0 8FB3003C */ lw $s3, 0x3c($sp)
|
|
/* 137A34 802446F4 8FB20038 */ lw $s2, 0x38($sp)
|
|
/* 137A38 802446F8 8FB10034 */ lw $s1, 0x34($sp)
|
|
/* 137A3C 802446FC 8FB00030 */ lw $s0, 0x30($sp)
|
|
/* 137A40 80244700 03E00008 */ jr $ra
|
|
/* 137A44 80244704 27BD0050 */ addiu $sp, $sp, 0x50
|
|
|
|
/* 137A48 80244708 27BDFFE0 */ addiu $sp, $sp, -0x20
|
|
/* 137A4C 8024470C AFB00010 */ sw $s0, 0x10($sp)
|
|
/* 137A50 80244710 0000802D */ daddu $s0, $zero, $zero
|
|
/* 137A54 80244714 AFB10014 */ sw $s1, 0x14($sp)
|
|
/* 137A58 80244718 3C118027 */ lui $s1, 0x8027
|
|
/* 137A5C 8024471C 263100E8 */ addiu $s1, $s1, 0xe8
|
|
/* 137A60 80244720 AFBF0018 */ sw $ra, 0x18($sp)
|
|
.L80244724:
|
|
/* 137A64 80244724 8E240000 */ lw $a0, ($s1)
|
|
/* 137A68 80244728 26310004 */ addiu $s1, $s1, 4
|
|
/* 137A6C 8024472C 0C05123D */ jal free_icon
|
|
/* 137A70 80244730 26100001 */ addiu $s0, $s0, 1
|
|
/* 137A74 80244734 2A020008 */ slti $v0, $s0, 8
|
|
/* 137A78 80244738 1440FFFA */ bnez $v0, .L80244724
|
|
/* 137A7C 8024473C 0000202D */ daddu $a0, $zero, $zero
|
|
/* 137A80 80244740 3C05F840 */ lui $a1, 0xf840
|
|
/* 137A84 80244744 0C0B1EAF */ jal get_variable
|
|
/* 137A88 80244748 34A55BDE */ ori $a1, $a1, 0x5bde
|
|
/* 137A8C 8024474C 1040000A */ beqz $v0, .L80244778
|
|
/* 137A90 80244750 0000802D */ daddu $s0, $zero, $zero
|
|
/* 137A94 80244754 3C118027 */ lui $s1, 0x8027
|
|
/* 137A98 80244758 2631011C */ addiu $s1, $s1, 0x11c
|
|
.L8024475C:
|
|
/* 137A9C 8024475C 8E240000 */ lw $a0, ($s1)
|
|
/* 137AA0 80244760 26310004 */ addiu $s1, $s1, 4
|
|
/* 137AA4 80244764 0C0B797A */ jal func_802DE5E8
|
|
/* 137AA8 80244768 26100001 */ addiu $s0, $s0, 1
|
|
/* 137AAC 8024476C 2A020003 */ slti $v0, $s0, 3
|
|
/* 137AB0 80244770 1440FFFA */ bnez $v0, .L8024475C
|
|
/* 137AB4 80244774 00000000 */ nop
|
|
.L80244778:
|
|
/* 137AB8 80244778 3C118025 */ lui $s1, 0x8025
|
|
/* 137ABC 8024477C 2631EF80 */ addiu $s1, $s1, -0x1080
|
|
/* 137AC0 80244780 0000802D */ daddu $s0, $zero, $zero
|
|
.L80244784:
|
|
/* 137AC4 80244784 8E240000 */ lw $a0, ($s1)
|
|
/* 137AC8 80244788 90820000 */ lbu $v0, ($a0)
|
|
/* 137ACC 8024478C 10400006 */ beqz $v0, .L802447A8
|
|
/* 137AD0 80244790 26100001 */ addiu $s0, $s0, 1
|
|
/* 137AD4 80244794 8C820018 */ lw $v0, 0x18($a0)
|
|
/* 137AD8 80244798 10400003 */ beqz $v0, .L802447A8
|
|
/* 137ADC 8024479C 00000000 */ nop
|
|
/* 137AE0 802447A0 0040F809 */ jalr $v0
|
|
/* 137AE4 802447A4 00000000 */ nop
|
|
.L802447A8:
|
|
/* 137AE8 802447A8 2A020007 */ slti $v0, $s0, 7
|
|
/* 137AEC 802447AC 1440FFF5 */ bnez $v0, .L80244784
|
|
/* 137AF0 802447B0 26310004 */ addiu $s1, $s1, 4
|
|
/* 137AF4 802447B4 24100016 */ addiu $s0, $zero, 0x16
|
|
/* 137AF8 802447B8 0200202D */ daddu $a0, $s0, $zero
|
|
.L802447BC:
|
|
/* 137AFC 802447BC 0C051F9F */ jal func_80147E7C
|
|
/* 137B00 802447C0 24050002 */ addiu $a1, $zero, 2
|
|
/* 137B04 802447C4 26100001 */ addiu $s0, $s0, 1
|
|
/* 137B08 802447C8 2A02002C */ slti $v0, $s0, 0x2c
|
|
/* 137B0C 802447CC 1440FFFB */ bnez $v0, .L802447BC
|
|
/* 137B10 802447D0 0200202D */ daddu $a0, $s0, $zero
|
|
/* 137B14 802447D4 2404002C */ addiu $a0, $zero, 0x2c
|
|
/* 137B18 802447D8 0C051F9F */ jal func_80147E7C
|
|
/* 137B1C 802447DC 24050002 */ addiu $a1, $zero, 2
|
|
/* 137B20 802447E0 8FBF0018 */ lw $ra, 0x18($sp)
|
|
/* 137B24 802447E4 8FB10014 */ lw $s1, 0x14($sp)
|
|
/* 137B28 802447E8 8FB00010 */ lw $s0, 0x10($sp)
|
|
/* 137B2C 802447EC 03E00008 */ jr $ra
|
|
/* 137B30 802447F0 27BD0020 */ addiu $sp, $sp, 0x20
|
|
|