papermario/asm/nonmatchings/code_EB5130/func_80240124_EB5254.s

144 lines
7.0 KiB
ArmAsm
Raw Normal View History

2021-01-11 10:34:10 +01:00
.set noat # allow manual use of $at
.set noreorder # don't insert nops after branches
glabel func_80240124_EB5254
/* EB5254 80240124 27BDFFE8 */ addiu $sp, $sp, -0x18
/* EB5258 80240128 AFB00010 */ sw $s0, 0x10($sp)
/* EB525C 8024012C 0080802D */ daddu $s0, $a0, $zero
/* EB5260 80240130 10A00005 */ beqz $a1, .L80240148
/* EB5264 80240134 AFBF0014 */ sw $ra, 0x14($sp)
/* EB5268 80240138 AE000070 */ sw $zero, 0x70($s0)
/* EB526C 8024013C AE000074 */ sw $zero, 0x74($s0)
/* EB5270 80240140 AE000078 */ sw $zero, 0x78($s0)
/* EB5274 80240144 AE00007C */ sw $zero, 0x7c($s0)
.L80240148:
/* EB5278 80240148 8E020070 */ lw $v0, 0x70($s0)
/* EB527C 8024014C 1440000E */ bnez $v0, .L80240188
2021-01-11 13:40:52 +01:00
/* EB5280 80240150 00000000 */ nop
2021-01-11 10:34:10 +01:00
/* EB5284 80240154 8E0300A8 */ lw $v1, 0xa8($s0)
/* EB5288 80240158 8E020088 */ lw $v0, 0x88($s0)
/* EB528C 8024015C 00621821 */ addu $v1, $v1, $v0
/* EB5290 80240160 04610004 */ bgez $v1, .L80240174
/* EB5294 80240164 AE0300A8 */ sw $v1, 0xa8($s0)
/* EB5298 80240168 3C020002 */ lui $v0, 2
/* EB529C 8024016C 08090061 */ j .L80240184
/* EB52A0 80240170 00621021 */ addu $v0, $v1, $v0
.L80240174:
/* EB52A4 80240174 3C040002 */ lui $a0, 2
/* EB52A8 80240178 0083102A */ slt $v0, $a0, $v1
/* EB52AC 8024017C 10400002 */ beqz $v0, .L80240188
/* EB52B0 80240180 00641023 */ subu $v0, $v1, $a0
.L80240184:
/* EB52B4 80240184 AE0200A8 */ sw $v0, 0xa8($s0)
.L80240188:
/* EB52B8 80240188 8E020074 */ lw $v0, 0x74($s0)
/* EB52BC 8024018C 1440000E */ bnez $v0, .L802401C8
2021-01-11 13:40:52 +01:00
/* EB52C0 80240190 00000000 */ nop
2021-01-11 10:34:10 +01:00
/* EB52C4 80240194 8E0300AC */ lw $v1, 0xac($s0)
/* EB52C8 80240198 8E02008C */ lw $v0, 0x8c($s0)
/* EB52CC 8024019C 00621821 */ addu $v1, $v1, $v0
/* EB52D0 802401A0 04610004 */ bgez $v1, .L802401B4
/* EB52D4 802401A4 AE0300AC */ sw $v1, 0xac($s0)
/* EB52D8 802401A8 3C020002 */ lui $v0, 2
/* EB52DC 802401AC 08090071 */ j .L802401C4
/* EB52E0 802401B0 00621021 */ addu $v0, $v1, $v0
.L802401B4:
/* EB52E4 802401B4 3C040002 */ lui $a0, 2
/* EB52E8 802401B8 0083102A */ slt $v0, $a0, $v1
/* EB52EC 802401BC 10400002 */ beqz $v0, .L802401C8
/* EB52F0 802401C0 00641023 */ subu $v0, $v1, $a0
.L802401C4:
/* EB52F4 802401C4 AE0200AC */ sw $v0, 0xac($s0)
.L802401C8:
/* EB52F8 802401C8 8E020078 */ lw $v0, 0x78($s0)
/* EB52FC 802401CC 1440000E */ bnez $v0, .L80240208
2021-01-11 13:40:52 +01:00
/* EB5300 802401D0 00000000 */ nop
2021-01-11 10:34:10 +01:00
/* EB5304 802401D4 8E0300B0 */ lw $v1, 0xb0($s0)
/* EB5308 802401D8 8E020090 */ lw $v0, 0x90($s0)
/* EB530C 802401DC 00621821 */ addu $v1, $v1, $v0
/* EB5310 802401E0 04610004 */ bgez $v1, .L802401F4
/* EB5314 802401E4 AE0300B0 */ sw $v1, 0xb0($s0)
/* EB5318 802401E8 3C020002 */ lui $v0, 2
/* EB531C 802401EC 08090081 */ j .L80240204
/* EB5320 802401F0 00621021 */ addu $v0, $v1, $v0
.L802401F4:
/* EB5324 802401F4 3C040002 */ lui $a0, 2
/* EB5328 802401F8 0083102A */ slt $v0, $a0, $v1
/* EB532C 802401FC 10400002 */ beqz $v0, .L80240208
/* EB5330 80240200 00641023 */ subu $v0, $v1, $a0
.L80240204:
/* EB5334 80240204 AE0200B0 */ sw $v0, 0xb0($s0)
.L80240208:
/* EB5338 80240208 8E02007C */ lw $v0, 0x7c($s0)
/* EB533C 8024020C 1440000E */ bnez $v0, .L80240248
2021-01-11 13:40:52 +01:00
/* EB5340 80240210 00000000 */ nop
2021-01-11 10:34:10 +01:00
/* EB5344 80240214 8E0300B4 */ lw $v1, 0xb4($s0)
/* EB5348 80240218 8E020094 */ lw $v0, 0x94($s0)
/* EB534C 8024021C 00621821 */ addu $v1, $v1, $v0
/* EB5350 80240220 04610004 */ bgez $v1, .L80240234
/* EB5354 80240224 AE0300B4 */ sw $v1, 0xb4($s0)
/* EB5358 80240228 3C020002 */ lui $v0, 2
/* EB535C 8024022C 08090091 */ j .L80240244
/* EB5360 80240230 00621021 */ addu $v0, $v1, $v0
.L80240234:
/* EB5364 80240234 3C040002 */ lui $a0, 2
/* EB5368 80240238 0083102A */ slt $v0, $a0, $v1
/* EB536C 8024023C 10400002 */ beqz $v0, .L80240248
/* EB5370 80240240 00641023 */ subu $v0, $v1, $a0
.L80240244:
/* EB5374 80240244 AE0200B4 */ sw $v0, 0xb4($s0)
.L80240248:
/* EB5378 80240248 8E040084 */ lw $a0, 0x84($s0)
/* EB537C 8024024C 0C049819 */ jal func_80126064
/* EB5380 80240250 8E0500A8 */ lw $a1, 0xa8($s0)
/* EB5384 80240254 8E040084 */ lw $a0, 0x84($s0)
/* EB5388 80240258 0C04981F */ jal func_8012607C
/* EB538C 8024025C 8E0500AC */ lw $a1, 0xac($s0)
/* EB5390 80240260 8E040084 */ lw $a0, 0x84($s0)
/* EB5394 80240264 0C049825 */ jal func_80126094
/* EB5398 80240268 8E0500B0 */ lw $a1, 0xb0($s0)
/* EB539C 8024026C 8E040084 */ lw $a0, 0x84($s0)
/* EB53A0 80240270 0C04982B */ jal func_801260AC
/* EB53A4 80240274 8E0500B4 */ lw $a1, 0xb4($s0)
/* EB53A8 80240278 8E020070 */ lw $v0, 0x70($s0)
/* EB53AC 8024027C 8E030078 */ lw $v1, 0x78($s0)
/* EB53B0 80240280 8E040098 */ lw $a0, 0x98($s0)
/* EB53B4 80240284 24420001 */ addiu $v0, $v0, 1
/* EB53B8 80240288 AE020070 */ sw $v0, 0x70($s0)
/* EB53BC 8024028C 8E020074 */ lw $v0, 0x74($s0)
/* EB53C0 80240290 24630001 */ addiu $v1, $v1, 1
/* EB53C4 80240294 AE030078 */ sw $v1, 0x78($s0)
/* EB53C8 80240298 8E030070 */ lw $v1, 0x70($s0)
/* EB53CC 8024029C 24420001 */ addiu $v0, $v0, 1
/* EB53D0 802402A0 AE020074 */ sw $v0, 0x74($s0)
/* EB53D4 802402A4 8E02007C */ lw $v0, 0x7c($s0)
/* EB53D8 802402A8 0064182A */ slt $v1, $v1, $a0
/* EB53DC 802402AC 24420001 */ addiu $v0, $v0, 1
/* EB53E0 802402B0 14600002 */ bnez $v1, .L802402BC
/* EB53E4 802402B4 AE02007C */ sw $v0, 0x7c($s0)
/* EB53E8 802402B8 AE000070 */ sw $zero, 0x70($s0)
.L802402BC:
/* EB53EC 802402BC 8E020074 */ lw $v0, 0x74($s0)
/* EB53F0 802402C0 8E03009C */ lw $v1, 0x9c($s0)
/* EB53F4 802402C4 0043102A */ slt $v0, $v0, $v1
/* EB53F8 802402C8 50400001 */ beql $v0, $zero, .L802402D0
/* EB53FC 802402CC AE000074 */ sw $zero, 0x74($s0)
.L802402D0:
/* EB5400 802402D0 8E020078 */ lw $v0, 0x78($s0)
/* EB5404 802402D4 8E0300A0 */ lw $v1, 0xa0($s0)
/* EB5408 802402D8 0043102A */ slt $v0, $v0, $v1
/* EB540C 802402DC 50400001 */ beql $v0, $zero, .L802402E4
/* EB5410 802402E0 AE000078 */ sw $zero, 0x78($s0)
.L802402E4:
/* EB5414 802402E4 8E02007C */ lw $v0, 0x7c($s0)
/* EB5418 802402E8 8E0300A4 */ lw $v1, 0xa4($s0)
/* EB541C 802402EC 0043102A */ slt $v0, $v0, $v1
/* EB5420 802402F0 50400001 */ beql $v0, $zero, .L802402F8
/* EB5424 802402F4 AE00007C */ sw $zero, 0x7c($s0)
.L802402F8:
/* EB5428 802402F8 8FBF0014 */ lw $ra, 0x14($sp)
/* EB542C 802402FC 8FB00010 */ lw $s0, 0x10($sp)
/* EB5430 80240300 0000102D */ daddu $v0, $zero, $zero
/* EB5434 80240304 03E00008 */ jr $ra
/* EB5438 80240308 27BD0018 */ addiu $sp, $sp, 0x18