papermario/asm/nonmatchings/code_EA0900/func_80240124_EA0A24.s
2021-01-13 00:42:27 +09:00

145 lines
7.0 KiB
ArmAsm
Generated

.set noat # allow manual use of $at
.set noreorder # don't insert nops after branches
glabel func_80240124_EA0A24
/* EA0A24 80240124 27BDFFE8 */ addiu $sp, $sp, -0x18
/* EA0A28 80240128 AFB00010 */ sw $s0, 0x10($sp)
/* EA0A2C 8024012C 0080802D */ daddu $s0, $a0, $zero
/* EA0A30 80240130 10A00005 */ beqz $a1, .L80240148
/* EA0A34 80240134 AFBF0014 */ sw $ra, 0x14($sp)
/* EA0A38 80240138 AE000070 */ sw $zero, 0x70($s0)
/* EA0A3C 8024013C AE000074 */ sw $zero, 0x74($s0)
/* EA0A40 80240140 AE000078 */ sw $zero, 0x78($s0)
/* EA0A44 80240144 AE00007C */ sw $zero, 0x7c($s0)
.L80240148:
/* EA0A48 80240148 8E020070 */ lw $v0, 0x70($s0)
/* EA0A4C 8024014C 1440000E */ bnez $v0, .L80240188
/* EA0A50 80240150 00000000 */ nop
/* EA0A54 80240154 8E0300A8 */ lw $v1, 0xa8($s0)
/* EA0A58 80240158 8E020088 */ lw $v0, 0x88($s0)
/* EA0A5C 8024015C 00621821 */ addu $v1, $v1, $v0
/* EA0A60 80240160 04610004 */ bgez $v1, .L80240174
/* EA0A64 80240164 AE0300A8 */ sw $v1, 0xa8($s0)
/* EA0A68 80240168 3C020002 */ lui $v0, 2
/* EA0A6C 8024016C 08090061 */ j .L80240184
/* EA0A70 80240170 00621021 */ addu $v0, $v1, $v0
.L80240174:
/* EA0A74 80240174 3C040002 */ lui $a0, 2
/* EA0A78 80240178 0083102A */ slt $v0, $a0, $v1
/* EA0A7C 8024017C 10400002 */ beqz $v0, .L80240188
/* EA0A80 80240180 00641023 */ subu $v0, $v1, $a0
.L80240184:
/* EA0A84 80240184 AE0200A8 */ sw $v0, 0xa8($s0)
.L80240188:
/* EA0A88 80240188 8E020074 */ lw $v0, 0x74($s0)
/* EA0A8C 8024018C 1440000E */ bnez $v0, .L802401C8
/* EA0A90 80240190 00000000 */ nop
/* EA0A94 80240194 8E0300AC */ lw $v1, 0xac($s0)
/* EA0A98 80240198 8E02008C */ lw $v0, 0x8c($s0)
/* EA0A9C 8024019C 00621821 */ addu $v1, $v1, $v0
/* EA0AA0 802401A0 04610004 */ bgez $v1, .L802401B4
/* EA0AA4 802401A4 AE0300AC */ sw $v1, 0xac($s0)
/* EA0AA8 802401A8 3C020002 */ lui $v0, 2
/* EA0AAC 802401AC 08090071 */ j .L802401C4
/* EA0AB0 802401B0 00621021 */ addu $v0, $v1, $v0
.L802401B4:
/* EA0AB4 802401B4 3C040002 */ lui $a0, 2
/* EA0AB8 802401B8 0083102A */ slt $v0, $a0, $v1
/* EA0ABC 802401BC 10400002 */ beqz $v0, .L802401C8
/* EA0AC0 802401C0 00641023 */ subu $v0, $v1, $a0
.L802401C4:
/* EA0AC4 802401C4 AE0200AC */ sw $v0, 0xac($s0)
.L802401C8:
/* EA0AC8 802401C8 8E020078 */ lw $v0, 0x78($s0)
/* EA0ACC 802401CC 1440000E */ bnez $v0, .L80240208
/* EA0AD0 802401D0 00000000 */ nop
/* EA0AD4 802401D4 8E0300B0 */ lw $v1, 0xb0($s0)
/* EA0AD8 802401D8 8E020090 */ lw $v0, 0x90($s0)
/* EA0ADC 802401DC 00621821 */ addu $v1, $v1, $v0
/* EA0AE0 802401E0 04610004 */ bgez $v1, .L802401F4
/* EA0AE4 802401E4 AE0300B0 */ sw $v1, 0xb0($s0)
/* EA0AE8 802401E8 3C020002 */ lui $v0, 2
/* EA0AEC 802401EC 08090081 */ j .L80240204
/* EA0AF0 802401F0 00621021 */ addu $v0, $v1, $v0
.L802401F4:
/* EA0AF4 802401F4 3C040002 */ lui $a0, 2
/* EA0AF8 802401F8 0083102A */ slt $v0, $a0, $v1
/* EA0AFC 802401FC 10400002 */ beqz $v0, .L80240208
/* EA0B00 80240200 00641023 */ subu $v0, $v1, $a0
.L80240204:
/* EA0B04 80240204 AE0200B0 */ sw $v0, 0xb0($s0)
.L80240208:
/* EA0B08 80240208 8E02007C */ lw $v0, 0x7c($s0)
/* EA0B0C 8024020C 1440000E */ bnez $v0, .L80240248
/* EA0B10 80240210 00000000 */ nop
/* EA0B14 80240214 8E0300B4 */ lw $v1, 0xb4($s0)
/* EA0B18 80240218 8E020094 */ lw $v0, 0x94($s0)
/* EA0B1C 8024021C 00621821 */ addu $v1, $v1, $v0
/* EA0B20 80240220 04610004 */ bgez $v1, .L80240234
/* EA0B24 80240224 AE0300B4 */ sw $v1, 0xb4($s0)
/* EA0B28 80240228 3C020002 */ lui $v0, 2
/* EA0B2C 8024022C 08090091 */ j .L80240244
/* EA0B30 80240230 00621021 */ addu $v0, $v1, $v0
.L80240234:
/* EA0B34 80240234 3C040002 */ lui $a0, 2
/* EA0B38 80240238 0083102A */ slt $v0, $a0, $v1
/* EA0B3C 8024023C 10400002 */ beqz $v0, .L80240248
/* EA0B40 80240240 00641023 */ subu $v0, $v1, $a0
.L80240244:
/* EA0B44 80240244 AE0200B4 */ sw $v0, 0xb4($s0)
.L80240248:
/* EA0B48 80240248 8E040084 */ lw $a0, 0x84($s0)
/* EA0B4C 8024024C 0C049819 */ jal func_80126064
/* EA0B50 80240250 8E0500A8 */ lw $a1, 0xa8($s0)
/* EA0B54 80240254 8E040084 */ lw $a0, 0x84($s0)
/* EA0B58 80240258 0C04981F */ jal func_8012607C
/* EA0B5C 8024025C 8E0500AC */ lw $a1, 0xac($s0)
/* EA0B60 80240260 8E040084 */ lw $a0, 0x84($s0)
/* EA0B64 80240264 0C049825 */ jal func_80126094
/* EA0B68 80240268 8E0500B0 */ lw $a1, 0xb0($s0)
/* EA0B6C 8024026C 8E040084 */ lw $a0, 0x84($s0)
/* EA0B70 80240270 0C04982B */ jal func_801260AC
/* EA0B74 80240274 8E0500B4 */ lw $a1, 0xb4($s0)
/* EA0B78 80240278 8E020070 */ lw $v0, 0x70($s0)
/* EA0B7C 8024027C 8E030078 */ lw $v1, 0x78($s0)
/* EA0B80 80240280 8E040098 */ lw $a0, 0x98($s0)
/* EA0B84 80240284 24420001 */ addiu $v0, $v0, 1
/* EA0B88 80240288 AE020070 */ sw $v0, 0x70($s0)
/* EA0B8C 8024028C 8E020074 */ lw $v0, 0x74($s0)
/* EA0B90 80240290 24630001 */ addiu $v1, $v1, 1
/* EA0B94 80240294 AE030078 */ sw $v1, 0x78($s0)
/* EA0B98 80240298 8E030070 */ lw $v1, 0x70($s0)
/* EA0B9C 8024029C 24420001 */ addiu $v0, $v0, 1
/* EA0BA0 802402A0 AE020074 */ sw $v0, 0x74($s0)
/* EA0BA4 802402A4 8E02007C */ lw $v0, 0x7c($s0)
/* EA0BA8 802402A8 0064182A */ slt $v1, $v1, $a0
/* EA0BAC 802402AC 24420001 */ addiu $v0, $v0, 1
/* EA0BB0 802402B0 14600002 */ bnez $v1, .L802402BC
/* EA0BB4 802402B4 AE02007C */ sw $v0, 0x7c($s0)
/* EA0BB8 802402B8 AE000070 */ sw $zero, 0x70($s0)
.L802402BC:
/* EA0BBC 802402BC 8E020074 */ lw $v0, 0x74($s0)
/* EA0BC0 802402C0 8E03009C */ lw $v1, 0x9c($s0)
/* EA0BC4 802402C4 0043102A */ slt $v0, $v0, $v1
/* EA0BC8 802402C8 50400001 */ beql $v0, $zero, .L802402D0
/* EA0BCC 802402CC AE000074 */ sw $zero, 0x74($s0)
.L802402D0:
/* EA0BD0 802402D0 8E020078 */ lw $v0, 0x78($s0)
/* EA0BD4 802402D4 8E0300A0 */ lw $v1, 0xa0($s0)
/* EA0BD8 802402D8 0043102A */ slt $v0, $v0, $v1
/* EA0BDC 802402DC 50400001 */ beql $v0, $zero, .L802402E4
/* EA0BE0 802402E0 AE000078 */ sw $zero, 0x78($s0)
.L802402E4:
/* EA0BE4 802402E4 8E02007C */ lw $v0, 0x7c($s0)
/* EA0BE8 802402E8 8E0300A4 */ lw $v1, 0xa4($s0)
/* EA0BEC 802402EC 0043102A */ slt $v0, $v0, $v1
/* EA0BF0 802402F0 50400001 */ beql $v0, $zero, .L802402F8
/* EA0BF4 802402F4 AE00007C */ sw $zero, 0x7c($s0)
.L802402F8:
/* EA0BF8 802402F8 8FBF0014 */ lw $ra, 0x14($sp)
/* EA0BFC 802402FC 8FB00010 */ lw $s0, 0x10($sp)
/* EA0C00 80240300 0000102D */ daddu $v0, $zero, $zero
/* EA0C04 80240304 03E00008 */ jr $ra
/* EA0C08 80240308 27BD0018 */ addiu $sp, $sp, 0x18
/* EA0C0C 8024030C 00000000 */ nop