mirror of https://github.com/zeldaret/oot.git
111 lines
5.2 KiB
ArmAsm
111 lines
5.2 KiB
ArmAsm
glabel func_800E36EC
|
|
/* B5A88C 800E36EC 27BDFFC8 */ addiu $sp, $sp, -0x38
|
|
/* B5A890 800E36F0 AFB70030 */ sw $s7, 0x30($sp)
|
|
/* B5A894 800E36F4 AFB2001C */ sw $s2, 0x1c($sp)
|
|
/* B5A898 800E36F8 AFB6002C */ sw $s6, 0x2c($sp)
|
|
/* B5A89C 800E36FC AFB50028 */ sw $s5, 0x28($sp)
|
|
/* B5A8A0 800E3700 AFB40024 */ sw $s4, 0x24($sp)
|
|
/* B5A8A4 800E3704 AFB30020 */ sw $s3, 0x20($sp)
|
|
/* B5A8A8 800E3708 3C128017 */ lui $s2, %hi(gAudioContext) # $s2, 0x8017
|
|
/* B5A8AC 800E370C 3C178017 */ lui $s7, %hi(gAudioContext+0xc8) # $s7, 0x8017
|
|
/* B5A8B0 800E3710 0080B025 */ move $s6, $a0
|
|
/* B5A8B4 800E3714 AFBF0034 */ sw $ra, 0x34($sp)
|
|
/* B5A8B8 800E3718 AFB10018 */ sw $s1, 0x18($sp)
|
|
/* B5A8BC 800E371C AFB00014 */ sw $s0, 0x14($sp)
|
|
/* B5A8C0 800E3720 26F7F248 */ addiu $s7, %lo(gAudioContext+0xc8) # addiu $s7, $s7, -0xdb8
|
|
/* B5A8C4 800E3724 2652F180 */ addiu $s2, %lo(gAudioContext) # addiu $s2, $s2, -0xe80
|
|
/* B5A8C8 800E3728 24130001 */ li $s3, 1
|
|
/* B5A8CC 800E372C 24140002 */ li $s4, 2
|
|
/* B5A8D0 800E3730 24150003 */ li $s5, 3
|
|
/* B5A8D4 800E3734 8E421D64 */ lw $v0, 0x1d64($s2)
|
|
.L800E3738:
|
|
/* B5A8D8 800E3738 5053000F */ beql $v0, $s3, .L800E3778
|
|
/* B5A8DC 800E373C 26501D50 */ addiu $s0, $s2, 0x1d50
|
|
/* B5A8E0 800E3740 1454003E */ bne $v0, $s4, .L800E383C
|
|
/* B5A8E4 800E3744 26501D50 */ addiu $s0, $s2, 0x1d50
|
|
/* B5A8E8 800E3748 920E0000 */ lbu $t6, ($s0)
|
|
/* B5A8EC 800E374C 26040030 */ addiu $a0, $s0, 0x30
|
|
/* B5A8F0 800E3750 00002825 */ move $a1, $zero
|
|
/* B5A8F4 800E3754 126E0003 */ beq $s3, $t6, .L800E3764
|
|
/* B5A8F8 800E3758 00000000 */ nop
|
|
/* B5A8FC 800E375C 0C000CA0 */ jal osRecvMesg
|
|
/* B5A900 800E3760 02603025 */ move $a2, $s3
|
|
.L800E3764:
|
|
/* B5A904 800E3764 52C00004 */ beql $s6, $zero, .L800E3778
|
|
/* B5A908 800E3768 26501D50 */ addiu $s0, $s2, 0x1d50
|
|
/* B5A90C 800E376C 10000033 */ b .L800E383C
|
|
/* B5A910 800E3770 AE150014 */ sw $s5, 0x14($s0)
|
|
/* B5A914 800E3774 26501D50 */ addiu $s0, $s2, 0x1d50
|
|
.L800E3778:
|
|
/* B5A918 800E3778 8E110018 */ lw $s1, 0x18($s0)
|
|
/* B5A91C 800E377C AE140014 */ sw $s4, 0x14($s0)
|
|
/* B5A920 800E3780 16200007 */ bnez $s1, .L800E37A0
|
|
/* B5A924 800E3784 2A210400 */ slti $at, $s1, 0x400
|
|
/* B5A928 800E3788 0C038D9E */ jal func_800E3678
|
|
/* B5A92C 800E378C 02002025 */ move $a0, $s0
|
|
/* B5A930 800E3790 8E0F001C */ lw $t7, 0x1c($s0)
|
|
/* B5A934 800E3794 AE150014 */ sw $s5, 0x14($s0)
|
|
/* B5A938 800E3798 10000028 */ b .L800E383C
|
|
/* B5A93C 800E379C A1F30000 */ sb $s3, ($t7)
|
|
.L800E37A0:
|
|
/* B5A940 800E37A0 50200011 */ beql $at, $zero, .L800E37E8
|
|
/* B5A944 800E37A4 92190000 */ lbu $t9, ($s0)
|
|
/* B5A948 800E37A8 92180000 */ lbu $t8, ($s0)
|
|
/* B5A94C 800E37AC 02203025 */ move $a2, $s1
|
|
/* B5A950 800E37B0 02002025 */ move $a0, $s0
|
|
/* B5A954 800E37B4 16780007 */ bne $s3, $t8, .L800E37D4
|
|
/* B5A958 800E37B8 00000000 */ nop
|
|
/* B5A95C 800E37BC 8E040008 */ lw $a0, 8($s0)
|
|
/* B5A960 800E37C0 8E05000C */ lw $a1, 0xc($s0)
|
|
/* B5A964 800E37C4 0C038E3E */ jal func_800E38F8
|
|
/* B5A968 800E37C8 8E070004 */ lw $a3, 4($s0)
|
|
/* B5A96C 800E37CC 10000003 */ b .L800E37DC
|
|
/* B5A970 800E37D0 00000000 */ nop
|
|
.L800E37D4:
|
|
/* B5A974 800E37D4 0C038E1D */ jal func_800E3874
|
|
/* B5A978 800E37D8 02202825 */ move $a1, $s1
|
|
.L800E37DC:
|
|
/* B5A97C 800E37DC 10000017 */ b .L800E383C
|
|
/* B5A980 800E37E0 AE000018 */ sw $zero, 0x18($s0)
|
|
/* B5A984 800E37E4 92190000 */ lbu $t9, ($s0)
|
|
.L800E37E8:
|
|
/* B5A988 800E37E8 24060400 */ li $a2, 1024
|
|
/* B5A98C 800E37EC 02002025 */ move $a0, $s0
|
|
/* B5A990 800E37F0 16790007 */ bne $s3, $t9, .L800E3810
|
|
/* B5A994 800E37F4 00000000 */ nop
|
|
/* B5A998 800E37F8 8E040008 */ lw $a0, 8($s0)
|
|
/* B5A99C 800E37FC 8E05000C */ lw $a1, 0xc($s0)
|
|
/* B5A9A0 800E3800 0C038E3E */ jal func_800E38F8
|
|
/* B5A9A4 800E3804 8E070004 */ lw $a3, 4($s0)
|
|
/* B5A9A8 800E3808 10000004 */ b .L800E381C
|
|
/* B5A9AC 800E380C 8E080018 */ lw $t0, 0x18($s0)
|
|
.L800E3810:
|
|
/* B5A9B0 800E3810 0C038E1D */ jal func_800E3874
|
|
/* B5A9B4 800E3814 24050400 */ li $a1, 1024
|
|
/* B5A9B8 800E3818 8E080018 */ lw $t0, 0x18($s0)
|
|
.L800E381C:
|
|
/* B5A9BC 800E381C 8E0A000C */ lw $t2, 0xc($s0)
|
|
/* B5A9C0 800E3820 8E0C0008 */ lw $t4, 8($s0)
|
|
/* B5A9C4 800E3824 2509FC00 */ addiu $t1, $t0, -0x400
|
|
/* B5A9C8 800E3828 254B0400 */ addiu $t3, $t2, 0x400
|
|
/* B5A9CC 800E382C 258D0400 */ addiu $t5, $t4, 0x400
|
|
/* B5A9D0 800E3830 AE090018 */ sw $t1, 0x18($s0)
|
|
/* B5A9D4 800E3834 AE0B000C */ sw $t3, 0xc($s0)
|
|
/* B5A9D8 800E3838 AE0D0008 */ sw $t5, 8($s0)
|
|
.L800E383C:
|
|
/* B5A9DC 800E383C 26520064 */ addiu $s2, $s2, 0x64
|
|
/* B5A9E0 800E3840 5657FFBD */ bnel $s2, $s7, .L800E3738
|
|
/* B5A9E4 800E3844 8E421D64 */ lw $v0, 0x1d64($s2)
|
|
/* B5A9E8 800E3848 8FBF0034 */ lw $ra, 0x34($sp)
|
|
/* B5A9EC 800E384C 8FB00014 */ lw $s0, 0x14($sp)
|
|
/* B5A9F0 800E3850 8FB10018 */ lw $s1, 0x18($sp)
|
|
/* B5A9F4 800E3854 8FB2001C */ lw $s2, 0x1c($sp)
|
|
/* B5A9F8 800E3858 8FB30020 */ lw $s3, 0x20($sp)
|
|
/* B5A9FC 800E385C 8FB40024 */ lw $s4, 0x24($sp)
|
|
/* B5AA00 800E3860 8FB50028 */ lw $s5, 0x28($sp)
|
|
/* B5AA04 800E3864 8FB6002C */ lw $s6, 0x2c($sp)
|
|
/* B5AA08 800E3868 8FB70030 */ lw $s7, 0x30($sp)
|
|
/* B5AA0C 800E386C 03E00008 */ jr $ra
|
|
/* B5AA10 800E3870 27BD0038 */ addiu $sp, $sp, 0x38
|
|
|