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

120 lines
5.5 KiB
ArmAsm

.set noat # allow manual use of $at
.set noreorder # don't insert nops after branches
glabel func_80110F10
/* 0A7610 80110F10 27BDFFC8 */ addiu $sp, $sp, -0x38
/* 0A7614 80110F14 AFB3001C */ sw $s3, 0x1c($sp)
/* 0A7618 80110F18 0000982D */ daddu $s3, $zero, $zero
/* 0A761C 80110F1C AFB50024 */ sw $s5, 0x24($sp)
/* 0A7620 80110F20 0260A82D */ daddu $s5, $s3, $zero
/* 0A7624 80110F24 AFB60028 */ sw $s6, 0x28($sp)
/* 0A7628 80110F28 3C168015 */ lui $s6, 0x8015
/* 0A762C 80110F2C 26D61300 */ addiu $s6, $s6, 0x1300
/* 0A7630 80110F30 AFB7002C */ sw $s7, 0x2c($sp)
/* 0A7634 80110F34 3C178015 */ lui $s7, 0x8015
/* 0A7638 80110F38 26F712C4 */ addiu $s7, $s7, 0x12c4
/* 0A763C 80110F3C AFB40020 */ sw $s4, 0x20($sp)
/* 0A7640 80110F40 3C148015 */ lui $s4, 0x8015
/* 0A7644 80110F44 26941668 */ addiu $s4, $s4, 0x1668
/* 0A7648 80110F48 AFBF0030 */ sw $ra, 0x30($sp)
/* 0A764C 80110F4C AFB20018 */ sw $s2, 0x18($sp)
/* 0A7650 80110F50 AFB10014 */ sw $s1, 0x14($sp)
/* 0A7654 80110F54 AFB00010 */ sw $s0, 0x10($sp)
.L80110F58:
/* 0A7658 80110F58 8E910000 */ lw $s1, ($s4)
/* 0A765C 80110F5C 1220004A */ beqz $s1, .L80111088
/* 0A7660 80110F60 00000000 */ nop
/* 0A7664 80110F64 96220000 */ lhu $v0, ($s1)
/* 0A7668 80110F68 30420008 */ andi $v0, $v0, 8
/* 0A766C 80110F6C 1440000F */ bnez $v0, .L80110FAC
/* 0A7670 80110F70 24030043 */ addiu $v1, $zero, 0x43
/* 0A7674 80110F74 8E25001C */ lw $a1, 0x1c($s1)
/* 0A7678 80110F78 8E240018 */ lw $a0, 0x18($s1)
/* 0A767C 80110F7C 3C038015 */ lui $v1, 0x8015
/* 0A7680 80110F80 8C6312C4 */ lw $v1, 0x12c4($v1)
/* 0A7684 80110F84 00A41023 */ subu $v0, $a1, $a0
/* 0A7688 80110F88 00023083 */ sra $a2, $v0, 2
/* 0A768C 80110F8C 00131080 */ sll $v0, $s3, 2
/* 0A7690 80110F90 00621823 */ subu $v1, $v1, $v0
/* 0A7694 80110F94 00063080 */ sll $a2, $a2, 2
/* 0A7698 80110F98 0C00A5CF */ jal dma_copy
/* 0A769C 80110F9C 00663023 */ subu $a2, $v1, $a2
/* 0A76A0 80110FA0 00021082 */ srl $v0, $v0, 2
/* 0A76A4 80110FA4 0804441E */ j .L80111078
/* 0A76A8 80110FA8 02629821 */ addu $s3, $s3, $v0
.L80110FAC:
/* 0A76AC 80110FAC 92220020 */ lbu $v0, 0x20($s1)
/* 0A76B0 80110FB0 14430012 */ bne $v0, $v1, .L80110FFC
/* 0A76B4 80110FB4 8E300018 */ lw $s0, 0x18($s1)
/* 0A76B8 80110FB8 8ED20000 */ lw $s2, ($s6)
/* 0A76BC 80110FBC 8E040000 */ lw $a0, ($s0)
/* 0A76C0 80110FC0 8E050004 */ lw $a1, 4($s0)
/* 0A76C4 80110FC4 0C00A5CF */ jal dma_copy
/* 0A76C8 80110FC8 0240302D */ daddu $a2, $s2, $zero
/* 0A76CC 80110FCC 8E040008 */ lw $a0, 8($s0)
/* 0A76D0 80110FD0 8E05000C */ lw $a1, 0xc($s0)
/* 0A76D4 80110FD4 00028082 */ srl $s0, $v0, 2
/* 0A76D8 80110FD8 8EC60000 */ lw $a2, ($s6)
/* 0A76DC 80110FDC 00108080 */ sll $s0, $s0, 2
/* 0A76E0 80110FE0 0C00A5CF */ jal dma_copy
/* 0A76E4 80110FE4 00D03021 */ addu $a2, $a2, $s0
/* 0A76E8 80110FE8 0220202D */ daddu $a0, $s1, $zero
/* 0A76EC 80110FEC 8EC50000 */ lw $a1, ($s6)
/* 0A76F0 80110FF0 0240302D */ daddu $a2, $s2, $zero
/* 0A76F4 80110FF4 0804441C */ j .L80111070
/* 0A76F8 80110FF8 00B02821 */ addu $a1, $a1, $s0
.L80110FFC:
/* 0A76FC 80110FFC 8E050004 */ lw $a1, 4($s0)
/* 0A7700 80111000 8E040000 */ lw $a0, ($s0)
/* 0A7704 80111004 8EE30000 */ lw $v1, ($s7)
/* 0A7708 80111008 00A41023 */ subu $v0, $a1, $a0
/* 0A770C 8011100C 00023083 */ sra $a2, $v0, 2
/* 0A7710 80111010 00131080 */ sll $v0, $s3, 2
/* 0A7714 80111014 00621823 */ subu $v1, $v1, $v0
/* 0A7718 80111018 00061080 */ sll $v0, $a2, 2
/* 0A771C 8011101C 00629023 */ subu $s2, $v1, $v0
/* 0A7720 80111020 0C00A5CF */ jal dma_copy
/* 0A7724 80111024 0240302D */ daddu $a2, $s2, $zero
/* 0A7728 80111028 00021082 */ srl $v0, $v0, 2
/* 0A772C 8011102C 02629821 */ addu $s3, $s3, $v0
/* 0A7730 80111030 8E05000C */ lw $a1, 0xc($s0)
/* 0A7734 80111034 8E040008 */ lw $a0, 8($s0)
/* 0A7738 80111038 8EE30000 */ lw $v1, ($s7)
/* 0A773C 8011103C 00A41023 */ subu $v0, $a1, $a0
/* 0A7740 80111040 00023083 */ sra $a2, $v0, 2
/* 0A7744 80111044 00131080 */ sll $v0, $s3, 2
/* 0A7748 80111048 00621823 */ subu $v1, $v1, $v0
/* 0A774C 8011104C 00061080 */ sll $v0, $a2, 2
/* 0A7750 80111050 00628023 */ subu $s0, $v1, $v0
/* 0A7754 80111054 0C00A5CF */ jal dma_copy
/* 0A7758 80111058 0200302D */ daddu $a2, $s0, $zero
/* 0A775C 8011105C 00021082 */ srl $v0, $v0, 2
/* 0A7760 80111060 02629821 */ addu $s3, $s3, $v0
/* 0A7764 80111064 0220202D */ daddu $a0, $s1, $zero
/* 0A7768 80111068 0200282D */ daddu $a1, $s0, $zero
/* 0A776C 8011106C 0240302D */ daddu $a2, $s2, $zero
.L80111070:
/* 0A7770 80111070 0C04442D */ jal func_801110B4
/* 0A7774 80111074 00000000 */ nop
.L80111078:
/* 0A7778 80111078 26B50001 */ addiu $s5, $s5, 1
/* 0A777C 8011107C 2AA2001E */ slti $v0, $s5, 0x1e
/* 0A7780 80111080 1440FFB5 */ bnez $v0, .L80110F58
/* 0A7784 80111084 26940004 */ addiu $s4, $s4, 4
.L80111088:
/* 0A7788 80111088 8FBF0030 */ lw $ra, 0x30($sp)
/* 0A778C 8011108C 8FB7002C */ lw $s7, 0x2c($sp)
/* 0A7790 80111090 8FB60028 */ lw $s6, 0x28($sp)
/* 0A7794 80111094 8FB50024 */ lw $s5, 0x24($sp)
/* 0A7798 80111098 8FB40020 */ lw $s4, 0x20($sp)
/* 0A779C 8011109C 8FB3001C */ lw $s3, 0x1c($sp)
/* 0A77A0 801110A0 8FB20018 */ lw $s2, 0x18($sp)
/* 0A77A4 801110A4 8FB10014 */ lw $s1, 0x14($sp)
/* 0A77A8 801110A8 8FB00010 */ lw $s0, 0x10($sp)
/* 0A77AC 801110AC 03E00008 */ jr $ra
/* 0A77B0 801110B0 27BD0038 */ addiu $sp, $sp, 0x38