papermario/asm/nonmatchings/code_a5dd0_len_114e0/func_8011115C.s
2020-08-12 22:37:16 -04:00

103 lines
4.3 KiB
ArmAsm

.set noat # allow manual use of $at
.set noreorder # don't insert nops after branches
glabel func_8011115C
/* 0A785C 8011115C ACC00000 */ sw $zero, ($a2)
/* 0A7860 80111160 ACE00000 */ sw $zero, ($a3)
/* 0A7864 80111164 3C028007 */ lui $v0, 0x8007
/* 0A7868 80111168 8C42419C */ lw $v0, 0x419c($v0)
/* 0A786C 8011116C 80420070 */ lb $v0, 0x70($v0)
/* 0A7870 80111170 3C098015 */ lui $t1, 0x8015
/* 0A7874 80111174 252916E8 */ addiu $t1, $t1, 0x16e8
/* 0A7878 80111178 14400003 */ bnez $v0, .L80111188
/* 0A787C 8011117C 0000582D */ daddu $t3, $zero, $zero
/* 0A7880 80111180 3C098015 */ lui $t1, 0x8015
/* 0A7884 80111184 25291668 */ addiu $t1, $t1, 0x1668
.L80111188:
/* 0A7888 80111188 0000502D */ daddu $t2, $zero, $zero
.L8011118C:
/* 0A788C 8011118C 8D240000 */ lw $a0, ($t1)
/* 0A7890 80111190 1480000A */ bnez $a0, .L801111BC
/* 0A7894 80111194 00000000 */ nop
/* 0A7898 80111198 AD250000 */ sw $a1, ($t1)
/* 0A789C 8011119C AD200004 */ sw $zero, 4($t1)
/* 0A78A0 801111A0 94A20000 */ lhu $v0, ($a1)
/* 0A78A4 801111A4 30420008 */ andi $v0, $v0, 8
/* 0A78A8 801111A8 1040003C */ beqz $v0, .L8011129C
/* 0A78AC 801111AC 240B0001 */ addiu $t3, $zero, 1
/* 0A78B0 801111B0 8CA30018 */ lw $v1, 0x18($a1)
/* 0A78B4 801111B4 08044481 */ j .L80111204
/* 0A78B8 801111B8 00000000 */ nop
.L801111BC:
/* 0A78BC 801111BC 8C880018 */ lw $t0, 0x18($a0)
/* 0A78C0 801111C0 8CA30018 */ lw $v1, 0x18($a1)
/* 0A78C4 801111C4 15030009 */ bne $t0, $v1, .L801111EC
/* 0A78C8 801111C8 00000000 */ nop
/* 0A78CC 801111CC 94A20000 */ lhu $v0, ($a1)
/* 0A78D0 801111D0 30420008 */ andi $v0, $v0, 8
/* 0A78D4 801111D4 10400031 */ beqz $v0, .L8011129C
/* 0A78D8 801111D8 00000000 */ nop
/* 0A78DC 801111DC 8D020004 */ lw $v0, 4($t0)
/* 0A78E0 801111E0 8D030000 */ lw $v1, ($t0)
/* 0A78E4 801111E4 08044484 */ j .L80111210
/* 0A78E8 801111E8 00431023 */ subu $v0, $v0, $v1
.L801111EC:
/* 0A78EC 801111EC 1485000D */ bne $a0, $a1, .L80111224
/* 0A78F0 801111F0 00000000 */ nop
/* 0A78F4 801111F4 94820000 */ lhu $v0, ($a0)
/* 0A78F8 801111F8 30420008 */ andi $v0, $v0, 8
/* 0A78FC 801111FC 10400027 */ beqz $v0, .L8011129C
/* 0A7900 80111200 00000000 */ nop
.L80111204:
/* 0A7904 80111204 8C620004 */ lw $v0, 4($v1)
/* 0A7908 80111208 8C630000 */ lw $v1, ($v1)
/* 0A790C 8011120C 00431023 */ subu $v0, $v0, $v1
.L80111210:
/* 0A7910 80111210 8CC30000 */ lw $v1, ($a2)
/* 0A7914 80111214 00021083 */ sra $v0, $v0, 2
/* 0A7918 80111218 00621821 */ addu $v1, $v1, $v0
/* 0A791C 8011121C 080444A7 */ j .L8011129C
/* 0A7920 80111220 ACE30000 */ sw $v1, ($a3)
.L80111224:
/* 0A7924 80111224 94820000 */ lhu $v0, ($a0)
/* 0A7928 80111228 30420008 */ andi $v0, $v0, 8
/* 0A792C 8011122C 10400011 */ beqz $v0, .L80111274
/* 0A7930 80111230 00000000 */ nop
/* 0A7934 80111234 8D030004 */ lw $v1, 4($t0)
/* 0A7938 80111238 8D020000 */ lw $v0, ($t0)
/* 0A793C 8011123C 00621823 */ subu $v1, $v1, $v0
/* 0A7940 80111240 8CC20000 */ lw $v0, ($a2)
/* 0A7944 80111244 00031883 */ sra $v1, $v1, 2
/* 0A7948 80111248 00431021 */ addu $v0, $v0, $v1
/* 0A794C 8011124C ACC20000 */ sw $v0, ($a2)
/* 0A7950 80111250 ACE20000 */ sw $v0, ($a3)
/* 0A7954 80111254 8D03000C */ lw $v1, 0xc($t0)
/* 0A7958 80111258 8D020008 */ lw $v0, 8($t0)
/* 0A795C 8011125C 00621823 */ subu $v1, $v1, $v0
/* 0A7960 80111260 8CC20000 */ lw $v0, ($a2)
/* 0A7964 80111264 00031883 */ sra $v1, $v1, 2
/* 0A7968 80111268 00431021 */ addu $v0, $v0, $v1
/* 0A796C 8011126C 080444A3 */ j .L8011128C
/* 0A7970 80111270 ACC20000 */ sw $v0, ($a2)
.L80111274:
/* 0A7974 80111274 8C82001C */ lw $v0, 0x1c($a0)
/* 0A7978 80111278 8CC30000 */ lw $v1, ($a2)
/* 0A797C 8011127C 00481023 */ subu $v0, $v0, $t0
/* 0A7980 80111280 00021083 */ sra $v0, $v0, 2
/* 0A7984 80111284 00621821 */ addu $v1, $v1, $v0
/* 0A7988 80111288 ACC30000 */ sw $v1, ($a2)
.L8011128C:
/* 0A798C 8011128C 254A0001 */ addiu $t2, $t2, 1
/* 0A7990 80111290 2942001E */ slti $v0, $t2, 0x1e
/* 0A7994 80111294 1440FFBD */ bnez $v0, .L8011118C
/* 0A7998 80111298 25290004 */ addiu $t1, $t1, 4
.L8011129C:
/* 0A799C 8011129C 03E00008 */ jr $ra
/* 0A79A0 801112A0 0160102D */ daddu $v0, $t3, $zero