2020-09-24 05:16:13 +02:00
|
|
|
.set noat # allow manual use of $at
|
2020-08-04 08:49:11 +02:00
|
|
|
.set noreorder # don't insert nops after branches
|
|
|
|
|
|
|
|
glabel func_80050970
|
2020-09-24 05:16:13 +02:00
|
|
|
/* 2BD70 80050970 27BDFFC0 */ addiu $sp, $sp, -0x40
|
|
|
|
/* 2BD74 80050974 AFBF003C */ sw $ra, 0x3c($sp)
|
|
|
|
/* 2BD78 80050978 AFBE0038 */ sw $fp, 0x38($sp)
|
|
|
|
/* 2BD7C 8005097C AFB70034 */ sw $s7, 0x34($sp)
|
|
|
|
/* 2BD80 80050980 AFB60030 */ sw $s6, 0x30($sp)
|
|
|
|
/* 2BD84 80050984 AFB5002C */ sw $s5, 0x2c($sp)
|
|
|
|
/* 2BD88 80050988 AFB40028 */ sw $s4, 0x28($sp)
|
|
|
|
/* 2BD8C 8005098C AFB30024 */ sw $s3, 0x24($sp)
|
|
|
|
/* 2BD90 80050990 AFB20020 */ sw $s2, 0x20($sp)
|
|
|
|
/* 2BD94 80050994 AFB1001C */ sw $s1, 0x1c($sp)
|
|
|
|
/* 2BD98 80050998 AFB00018 */ sw $s0, 0x18($sp)
|
|
|
|
/* 2BD9C 8005099C 8C820000 */ lw $v0, ($a0)
|
|
|
|
/* 2BDA0 800509A0 8C840010 */ lw $a0, 0x10($a0)
|
|
|
|
/* 2BDA4 800509A4 0000B82D */ daddu $s7, $zero, $zero
|
|
|
|
/* 2BDA8 800509A8 1040006A */ beqz $v0, .L80050B54
|
|
|
|
/* 2BDAC 800509AC AFA40010 */ sw $a0, 0x10($sp)
|
|
|
|
/* 2BDB0 800509B0 0C0135E5 */ jal func_8004D794
|
|
|
|
/* 2BDB4 800509B4 0040202D */ daddu $a0, $v0, $zero
|
|
|
|
/* 2BDB8 800509B8 0040882D */ daddu $s1, $v0, $zero
|
|
|
|
/* 2BDBC 800509BC 12200063 */ beqz $s1, .L80050B4C
|
|
|
|
/* 2BDC0 800509C0 02E0A82D */ daddu $s5, $s7, $zero
|
|
|
|
/* 2BDC4 800509C4 241E0001 */ addiu $fp, $zero, 1
|
2020-11-29 08:13:07 +01:00
|
|
|
/* 2BDC8 800509C8 3C168008 */ lui $s6, %hi(D_80078554)
|
|
|
|
/* 2BDCC 800509CC 26D68554 */ addiu $s6, $s6, %lo(D_80078554)
|
2020-09-24 05:16:13 +02:00
|
|
|
/* 2BDD0 800509D0 2414025C */ addiu $s4, $zero, 0x25c
|
2020-08-04 08:49:11 +02:00
|
|
|
.L800509D4:
|
2020-09-24 05:16:13 +02:00
|
|
|
/* 2BDD4 800509D4 02349021 */ addu $s2, $s1, $s4
|
|
|
|
/* 2BDD8 800509D8 8E420000 */ lw $v0, ($s2)
|
|
|
|
/* 2BDDC 800509DC 50400056 */ beql $v0, $zero, .L80050B38
|
|
|
|
/* 2BDE0 800509E0 26B50001 */ addiu $s5, $s5, 1
|
|
|
|
/* 2BDE4 800509E4 92420059 */ lbu $v0, 0x59($s2)
|
|
|
|
/* 2BDE8 800509E8 10400052 */ beqz $v0, .L80050B34
|
|
|
|
/* 2BDEC 800509EC 0040182D */ daddu $v1, $v0, $zero
|
|
|
|
/* 2BDF0 800509F0 00031040 */ sll $v0, $v1, 1
|
|
|
|
/* 2BDF4 800509F4 00431021 */ addu $v0, $v0, $v1
|
|
|
|
/* 2BDF8 800509F8 00021140 */ sll $v0, $v0, 5
|
|
|
|
/* 2BDFC 800509FC 244201FC */ addiu $v0, $v0, 0x1fc
|
|
|
|
/* 2BE00 80050A00 8FA70010 */ lw $a3, 0x10($sp)
|
|
|
|
/* 2BE04 80050A04 10E00024 */ beqz $a3, .L80050A98
|
|
|
|
/* 2BE08 80050A08 02229821 */ addu $s3, $s1, $v0
|
|
|
|
/* 2BE0C 80050A0C 9242005A */ lbu $v0, 0x5a($s2)
|
|
|
|
/* 2BE10 80050A10 50400049 */ beql $v0, $zero, .L80050B38
|
|
|
|
/* 2BE14 80050A14 26B50001 */ addiu $s5, $s5, 1
|
|
|
|
/* 2BE18 80050A18 A240005A */ sb $zero, 0x5a($s2)
|
|
|
|
/* 2BE1C 80050A1C 92650052 */ lbu $a1, 0x52($s3)
|
|
|
|
/* 2BE20 80050A20 92620053 */ lbu $v0, 0x53($s3)
|
|
|
|
/* 2BE24 80050A24 00A2102A */ slt $v0, $a1, $v0
|
|
|
|
/* 2BE28 80050A28 10400014 */ beqz $v0, .L80050A7C
|
|
|
|
/* 2BE2C 80050A2C A27E005A */ sb $fp, 0x5a($s3)
|
|
|
|
/* 2BE30 80050A30 000510C0 */ sll $v0, $a1, 3
|
|
|
|
/* 2BE34 80050A34 00451021 */ addu $v0, $v0, $a1
|
|
|
|
/* 2BE38 80050A38 000210C0 */ sll $v0, $v0, 3
|
|
|
|
/* 2BE3C 80050A3C 24461320 */ addiu $a2, $v0, 0x1320
|
2020-08-04 08:49:11 +02:00
|
|
|
.L80050A40:
|
2020-09-24 05:16:13 +02:00
|
|
|
/* 2BE40 80050A40 8E220000 */ lw $v0, ($s1)
|
|
|
|
/* 2BE44 80050A44 00462021 */ addu $a0, $v0, $a2
|
|
|
|
/* 2BE48 80050A48 90830045 */ lbu $v1, 0x45($a0)
|
|
|
|
/* 2BE4C 80050A4C 92220234 */ lbu $v0, 0x234($s1)
|
|
|
|
/* 2BE50 80050A50 14620005 */ bne $v1, $v0, .L80050A68
|
2021-01-11 13:40:52 +01:00
|
|
|
/* 2BE54 80050A54 00000000 */ nop
|
2020-09-24 05:16:13 +02:00
|
|
|
/* 2BE58 80050A58 9082003D */ lbu $v0, 0x3d($a0)
|
|
|
|
/* 2BE5C 80050A5C AC960018 */ sw $s6, 0x18($a0)
|
|
|
|
/* 2BE60 80050A60 34420010 */ ori $v0, $v0, 0x10
|
|
|
|
/* 2BE64 80050A64 A082003D */ sb $v0, 0x3d($a0)
|
2020-08-04 08:49:11 +02:00
|
|
|
.L80050A68:
|
2020-09-24 05:16:13 +02:00
|
|
|
/* 2BE68 80050A68 92620053 */ lbu $v0, 0x53($s3)
|
|
|
|
/* 2BE6C 80050A6C 24A50001 */ addiu $a1, $a1, 1
|
|
|
|
/* 2BE70 80050A70 00A2102A */ slt $v0, $a1, $v0
|
|
|
|
/* 2BE74 80050A74 1440FFF2 */ bnez $v0, .L80050A40
|
|
|
|
/* 2BE78 80050A78 24C60048 */ addiu $a2, $a2, 0x48
|
2020-08-04 08:49:11 +02:00
|
|
|
.L80050A7C:
|
2020-09-24 05:16:13 +02:00
|
|
|
/* 2BE7C 80050A7C 0220202D */ daddu $a0, $s1, $zero
|
|
|
|
/* 2BE80 80050A80 82500018 */ lb $s0, 0x18($s2)
|
|
|
|
/* 2BE84 80050A84 0C013FAC */ jal func_8004FEB0
|
|
|
|
/* 2BE88 80050A88 0240282D */ daddu $a1, $s2, $zero
|
|
|
|
/* 2BE8C 80050A8C 0220202D */ daddu $a0, $s1, $zero
|
|
|
|
/* 2BE90 80050A90 080142C8 */ j .L80050B20
|
|
|
|
/* 2BE94 80050A94 0240282D */ daddu $a1, $s2, $zero
|
2020-08-04 08:49:11 +02:00
|
|
|
.L80050A98:
|
2020-09-24 05:16:13 +02:00
|
|
|
/* 2BE98 80050A98 9242005A */ lbu $v0, 0x5a($s2)
|
|
|
|
/* 2BE9C 80050A9C 54400026 */ bnel $v0, $zero, .L80050B38
|
|
|
|
/* 2BEA0 80050AA0 26B50001 */ addiu $s5, $s5, 1
|
|
|
|
/* 2BEA4 80050AA4 A25E005A */ sb $fp, 0x5a($s2)
|
|
|
|
/* 2BEA8 80050AA8 A260005A */ sb $zero, 0x5a($s3)
|
|
|
|
/* 2BEAC 80050AAC 92450052 */ lbu $a1, 0x52($s2)
|
|
|
|
/* 2BEB0 80050AB0 92420053 */ lbu $v0, 0x53($s2)
|
|
|
|
/* 2BEB4 80050AB4 00A2102A */ slt $v0, $a1, $v0
|
|
|
|
/* 2BEB8 80050AB8 10400013 */ beqz $v0, .L80050B08
|
|
|
|
/* 2BEBC 80050ABC 000510C0 */ sll $v0, $a1, 3
|
|
|
|
/* 2BEC0 80050AC0 00451021 */ addu $v0, $v0, $a1
|
|
|
|
/* 2BEC4 80050AC4 000210C0 */ sll $v0, $v0, 3
|
|
|
|
/* 2BEC8 80050AC8 24461320 */ addiu $a2, $v0, 0x1320
|
2020-08-04 08:49:11 +02:00
|
|
|
.L80050ACC:
|
2020-09-24 05:16:13 +02:00
|
|
|
/* 2BECC 80050ACC 8E220000 */ lw $v0, ($s1)
|
|
|
|
/* 2BED0 80050AD0 00462021 */ addu $a0, $v0, $a2
|
|
|
|
/* 2BED4 80050AD4 90830045 */ lbu $v1, 0x45($a0)
|
|
|
|
/* 2BED8 80050AD8 92220234 */ lbu $v0, 0x234($s1)
|
|
|
|
/* 2BEDC 80050ADC 14620005 */ bne $v1, $v0, .L80050AF4
|
2021-01-11 13:40:52 +01:00
|
|
|
/* 2BEE0 80050AE0 00000000 */ nop
|
2020-09-24 05:16:13 +02:00
|
|
|
/* 2BEE4 80050AE4 9082003D */ lbu $v0, 0x3d($a0)
|
|
|
|
/* 2BEE8 80050AE8 AC960018 */ sw $s6, 0x18($a0)
|
|
|
|
/* 2BEEC 80050AEC 34420010 */ ori $v0, $v0, 0x10
|
|
|
|
/* 2BEF0 80050AF0 A082003D */ sb $v0, 0x3d($a0)
|
2020-08-04 08:49:11 +02:00
|
|
|
.L80050AF4:
|
2020-09-24 05:16:13 +02:00
|
|
|
/* 2BEF4 80050AF4 92420053 */ lbu $v0, 0x53($s2)
|
|
|
|
/* 2BEF8 80050AF8 24A50001 */ addiu $a1, $a1, 1
|
|
|
|
/* 2BEFC 80050AFC 00A2102A */ slt $v0, $a1, $v0
|
|
|
|
/* 2BF00 80050B00 1440FFF2 */ bnez $v0, .L80050ACC
|
|
|
|
/* 2BF04 80050B04 24C60048 */ addiu $a2, $a2, 0x48
|
2020-08-04 08:49:11 +02:00
|
|
|
.L80050B08:
|
2020-09-24 05:16:13 +02:00
|
|
|
/* 2BF08 80050B08 0220202D */ daddu $a0, $s1, $zero
|
|
|
|
/* 2BF0C 80050B0C 82700018 */ lb $s0, 0x18($s3)
|
|
|
|
/* 2BF10 80050B10 0C013FAC */ jal func_8004FEB0
|
|
|
|
/* 2BF14 80050B14 0260282D */ daddu $a1, $s3, $zero
|
|
|
|
/* 2BF18 80050B18 0220202D */ daddu $a0, $s1, $zero
|
|
|
|
/* 2BF1C 80050B1C 0260282D */ daddu $a1, $s3, $zero
|
2020-08-04 08:49:11 +02:00
|
|
|
.L80050B20:
|
2020-09-24 05:16:13 +02:00
|
|
|
/* 2BF20 80050B20 24020060 */ addiu $v0, $zero, 0x60
|
|
|
|
/* 2BF24 80050B24 A22000D4 */ sb $zero, 0xd4($s1)
|
|
|
|
/* 2BF28 80050B28 A62200D4 */ sh $v0, 0xd4($s1)
|
|
|
|
/* 2BF2C 80050B2C 0C013FB4 */ jal func_8004FED0
|
|
|
|
/* 2BF30 80050B30 A23000D6 */ sb $s0, 0xd6($s1)
|
2020-08-04 08:49:11 +02:00
|
|
|
.L80050B34:
|
2020-09-24 05:16:13 +02:00
|
|
|
/* 2BF34 80050B34 26B50001 */ addiu $s5, $s5, 1
|
2020-08-04 08:49:11 +02:00
|
|
|
.L80050B38:
|
2020-09-24 05:16:13 +02:00
|
|
|
/* 2BF38 80050B38 2AA20010 */ slti $v0, $s5, 0x10
|
|
|
|
/* 2BF3C 80050B3C 1440FFA5 */ bnez $v0, .L800509D4
|
|
|
|
/* 2BF40 80050B40 26940060 */ addiu $s4, $s4, 0x60
|
|
|
|
/* 2BF44 80050B44 080142D7 */ j .L80050B5C
|
|
|
|
/* 2BF48 80050B48 02E0102D */ daddu $v0, $s7, $zero
|
2020-08-04 08:49:11 +02:00
|
|
|
.L80050B4C:
|
2020-09-24 05:16:13 +02:00
|
|
|
/* 2BF4C 80050B4C 080142D6 */ j .L80050B58
|
|
|
|
/* 2BF50 80050B50 24170002 */ addiu $s7, $zero, 2
|
2020-08-04 08:49:11 +02:00
|
|
|
.L80050B54:
|
2020-09-24 05:16:13 +02:00
|
|
|
/* 2BF54 80050B54 24170003 */ addiu $s7, $zero, 3
|
2020-08-04 08:49:11 +02:00
|
|
|
.L80050B58:
|
2020-09-24 05:16:13 +02:00
|
|
|
/* 2BF58 80050B58 02E0102D */ daddu $v0, $s7, $zero
|
2020-08-04 08:49:11 +02:00
|
|
|
.L80050B5C:
|
2020-09-24 05:16:13 +02:00
|
|
|
/* 2BF5C 80050B5C 8FBF003C */ lw $ra, 0x3c($sp)
|
|
|
|
/* 2BF60 80050B60 8FBE0038 */ lw $fp, 0x38($sp)
|
|
|
|
/* 2BF64 80050B64 8FB70034 */ lw $s7, 0x34($sp)
|
|
|
|
/* 2BF68 80050B68 8FB60030 */ lw $s6, 0x30($sp)
|
|
|
|
/* 2BF6C 80050B6C 8FB5002C */ lw $s5, 0x2c($sp)
|
|
|
|
/* 2BF70 80050B70 8FB40028 */ lw $s4, 0x28($sp)
|
|
|
|
/* 2BF74 80050B74 8FB30024 */ lw $s3, 0x24($sp)
|
|
|
|
/* 2BF78 80050B78 8FB20020 */ lw $s2, 0x20($sp)
|
|
|
|
/* 2BF7C 80050B7C 8FB1001C */ lw $s1, 0x1c($sp)
|
|
|
|
/* 2BF80 80050B80 8FB00018 */ lw $s0, 0x18($sp)
|
|
|
|
/* 2BF84 80050B84 03E00008 */ jr $ra
|
|
|
|
/* 2BF88 80050B88 27BD0040 */ addiu $sp, $sp, 0x40
|
2021-01-11 13:40:52 +01:00
|
|
|
/* 2BF8C 80050B8C 00000000 */ nop
|