1
0
Fork 0
mirror of https://github.com/zeldaret/oot.git synced 2024-12-29 16:26:18 +00:00

Match Skybox_Setup and 2 functions in z_kankyo.c (#980)

This commit is contained in:
Roman971 2021-09-21 01:33:44 +02:00 committed by GitHub
parent 1fcb163451
commit a9604e267f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
5 changed files with 54 additions and 4070 deletions

View file

@ -1,429 +0,0 @@
.rdata
glabel D_8013C5CC
.asciz "../z_kankyo.c"
.balign 4
glabel D_8013C5DC
.asciz "../z_kankyo.c"
.balign 4
glabel D_8013C5EC
.asciz "../z_kankyo.c"
.balign 4
glabel D_8013C5FC
.asciz "../z_kankyo.c"
.balign 4
.late_rodata
glabel D_8013C7DC
.float 0.4
glabel D_8013C7E0
.float 0.7
glabel D_8013C7E4
.float 1.5707964 # M_PI / 2
glabel D_8013C7E8
.float 1.2
glabel D_8013C7EC
.float 0.1
glabel D_8013C7F0
.float 0.02
.text
glabel Environment_DrawRain
/* AEB8A4 80074704 27BDFED8 */ addiu $sp, $sp, -0x128
/* AEB8A8 80074708 3C0F8012 */ lui $t7, %hi(D_8011FE70) # $t7, 0x8012
/* AEB8AC 8007470C AFBF006C */ sw $ra, 0x6c($sp)
/* AEB8B0 80074710 AFBE0068 */ sw $fp, 0x68($sp)
/* AEB8B4 80074714 AFB70064 */ sw $s7, 0x64($sp)
/* AEB8B8 80074718 AFB60060 */ sw $s6, 0x60($sp)
/* AEB8BC 8007471C AFB5005C */ sw $s5, 0x5c($sp)
/* AEB8C0 80074720 AFB40058 */ sw $s4, 0x58($sp)
/* AEB8C4 80074724 AFB30054 */ sw $s3, 0x54($sp)
/* AEB8C8 80074728 AFB20050 */ sw $s2, 0x50($sp)
/* AEB8CC 8007472C AFB1004C */ sw $s1, 0x4c($sp)
/* AEB8D0 80074730 AFB00048 */ sw $s0, 0x48($sp)
/* AEB8D4 80074734 F7BE0040 */ sdc1 $f30, 0x40($sp)
/* AEB8D8 80074738 F7BC0038 */ sdc1 $f28, 0x38($sp)
/* AEB8DC 8007473C F7BA0030 */ sdc1 $f26, 0x30($sp)
/* AEB8E0 80074740 F7B80028 */ sdc1 $f24, 0x28($sp)
/* AEB8E4 80074744 F7B60020 */ sdc1 $f22, 0x20($sp)
/* AEB8E8 80074748 F7B40018 */ sdc1 $f20, 0x18($sp)
/* AEB8EC 8007474C 25EFFE70 */ addiu $t7, %lo(D_8011FE70) # addiu $t7, $t7, -0x190
/* AEB8F0 80074750 8DF90000 */ lw $t9, ($t7)
/* AEB8F4 80074754 27AE00DC */ addiu $t6, $sp, 0xdc
/* AEB8F8 80074758 8DF80004 */ lw $t8, 4($t7)
/* AEB8FC 8007475C ADD90000 */ sw $t9, ($t6)
/* AEB900 80074760 8DF90008 */ lw $t9, 8($t7)
/* AEB904 80074764 3C098012 */ lui $t1, %hi(D_8011FE7C) # $t1, 0x8012
/* AEB908 80074768 2529FE7C */ addiu $t1, %lo(D_8011FE7C) # addiu $t1, $t1, -0x184
/* AEB90C 8007476C ADD80004 */ sw $t8, 4($t6)
/* AEB910 80074770 ADD90008 */ sw $t9, 8($t6)
/* AEB914 80074774 8D2B0000 */ lw $t3, ($t1)
/* AEB918 80074778 27A800D0 */ addiu $t0, $sp, 0xd0
/* AEB91C 8007477C 8D2A0004 */ lw $t2, 4($t1)
/* AEB920 80074780 AD0B0000 */ sw $t3, ($t0)
/* AEB924 80074784 8D2B0008 */ lw $t3, 8($t1)
/* AEB928 80074788 AD0A0004 */ sw $t2, 4($t0)
/* AEB92C 8007478C 3C010001 */ lui $at, 1
/* AEB930 80074790 AD0B0008 */ sw $t3, 8($t0)
/* AEB934 80074794 8C8C0790 */ lw $t4, 0x790($a0)
/* AEB938 80074798 00C08825 */ move $s1, $a2
/* AEB93C 8007479C 00A0B025 */ move $s6, $a1
/* AEB940 800747A0 858D014C */ lh $t5, 0x14c($t4)
/* AEB944 800747A4 8C951C44 */ lw $s5, 0x1c44($a0)
/* AEB948 800747A8 0081A021 */ addu $s4, $a0, $at
/* AEB94C 800747AC 31AE0100 */ andi $t6, $t5, 0x100
/* AEB950 800747B0 55C0013C */ bnezl $t6, .L80074CA4
/* AEB954 800747B4 8FBF006C */ lw $ra, 0x6c($sp)
/* AEB958 800747B8 928F0B14 */ lbu $t7, 0xb14($s4)
/* AEB95C 800747BC 00C02825 */ move $a1, $a2
/* AEB960 800747C0 3C068014 */ lui $a2, %hi(D_8013C5CC) # $a2, 0x8014
/* AEB964 800747C4 15E00136 */ bnez $t7, .L80074CA0
/* AEB968 800747C8 27A400B8 */ addiu $a0, $sp, 0xb8
/* AEB96C 800747CC 24C6C5CC */ addiu $a2, %lo(D_8013C5CC) # addiu $a2, $a2, -0x3a34
/* AEB970 800747D0 0C031AB1 */ jal Graph_OpenDisps
/* AEB974 800747D4 24070AEF */ li $a3, 2799
/* AEB978 800747D8 C6C20028 */ lwc1 $f2, 0x28($s6)
/* AEB97C 800747DC C6C40034 */ lwc1 $f4, 0x34($s6)
/* AEB980 800747E0 C6CC002C */ lwc1 $f12, 0x2c($s6)
/* AEB984 800747E4 C6C60038 */ lwc1 $f6, 0x38($s6)
/* AEB988 800747E8 46022501 */ sub.s $f20, $f4, $f2
/* AEB98C 800747EC C6D20030 */ lwc1 $f18, 0x30($s6)
/* AEB990 800747F0 C6C8003C */ lwc1 $f8, 0x3c($s6)
/* AEB994 800747F4 460C3401 */ sub.s $f16, $f6, $f12
/* AEB998 800747F8 4614A282 */ mul.s $f10, $f20, $f20
/* AEB99C 800747FC 3C014248 */ li $at, 0x42480000 # 0.000000
/* AEB9A0 80074800 46124581 */ sub.s $f22, $f8, $f18
/* AEB9A4 80074804 46108102 */ mul.s $f4, $f16, $f16
/* AEB9A8 80074808 4481C000 */ mtc1 $at, $f24
/* AEB9AC 8007480C 3C01438C */ li $at, 0x438C0000 # 0.000000
/* AEB9B0 80074810 4616B202 */ mul.s $f8, $f22, $f22
/* AEB9B4 80074814 3C19E700 */ li $t9, 0xE7000000 # 0.000000
/* AEB9B8 80074818 46045180 */ add.s $f6, $f10, $f4
/* AEB9BC 8007481C 46083000 */ add.s $f0, $f6, $f8
/* AEB9C0 80074820 46000004 */ sqrt.s $f0, $f0
/* AEB9C4 80074824 4600A383 */ div.s $f14, $f20, $f0
/* AEB9C8 80074828 46008183 */ div.s $f6, $f16, $f0
/* AEB9CC 8007482C 46187282 */ mul.s $f10, $f14, $f24
/* AEB9D0 80074830 4600B683 */ div.s $f26, $f22, $f0
/* AEB9D4 80074834 460A1100 */ add.s $f4, $f2, $f10
/* AEB9D8 80074838 46183202 */ mul.s $f8, $f6, $f24
/* AEB9DC 8007483C E7A400F8 */ swc1 $f4, 0xf8($sp)
/* AEB9E0 80074840 46086280 */ add.s $f10, $f12, $f8
/* AEB9E4 80074844 4618D102 */ mul.s $f4, $f26, $f24
/* AEB9E8 80074848 44814000 */ mtc1 $at, $f8
/* AEB9EC 8007484C E7AA00F4 */ swc1 $f10, 0xf4($sp)
/* AEB9F0 80074850 46087282 */ mul.s $f10, $f14, $f8
/* AEB9F4 80074854 46049180 */ add.s $f6, $f18, $f4
/* AEB9F8 80074858 460A1100 */ add.s $f4, $f2, $f10
/* AEB9FC 8007485C E7A600F0 */ swc1 $f6, 0xf0($sp)
/* AEBA00 80074860 44813000 */ mtc1 $at, $f6
/* AEBA04 80074864 E7A400EC */ swc1 $f4, 0xec($sp)
/* AEBA08 80074868 4606D202 */ mul.s $f8, $f26, $f6
/* AEBA0C 8007486C 46089280 */ add.s $f10, $f18, $f8
/* AEBA10 80074870 E7AA00E8 */ swc1 $f10, 0xe8($sp)
/* AEBA14 80074874 92830B13 */ lbu $v1, 0xb13($s4)
/* AEBA18 80074878 50600014 */ beql $v1, $zero, .L800748CC
/* AEBA1C 8007487C 00009025 */ move $s2, $zero
/* AEBA20 80074880 8E2202D0 */ lw $v0, 0x2d0($s1)
/* AEBA24 80074884 3C0A96FF */ lui $t2, (0x96FFFF1E >> 16) # lui $t2, 0x96ff
/* AEBA28 80074888 354AFF1E */ ori $t2, (0x96FFFF1E & 0xFFFF) # ori $t2, $t2, 0xff1e
/* AEBA2C 8007488C 24580008 */ addiu $t8, $v0, 8
/* AEBA30 80074890 AE3802D0 */ sw $t8, 0x2d0($s1)
/* AEBA34 80074894 AC400004 */ sw $zero, 4($v0)
/* AEBA38 80074898 AC590000 */ sw $t9, ($v0)
/* AEBA3C 8007489C 8E2202D0 */ lw $v0, 0x2d0($s1)
/* AEBA40 800748A0 3C09FA00 */ lui $t1, 0xfa00
/* AEBA44 800748A4 24050014 */ li $a1, 20
/* AEBA48 800748A8 24480008 */ addiu $t0, $v0, 8
/* AEBA4C 800748AC AE2802D0 */ sw $t0, 0x2d0($s1)
/* AEBA50 800748B0 AC4A0004 */ sw $t2, 4($v0)
/* AEBA54 800748B4 AC490000 */ sw $t1, ($v0)
/* AEBA58 800748B8 0C024DDD */ jal Gfx_CallSetupDL
/* AEBA5C 800748BC 8E2402D0 */ lw $a0, 0x2d0($s1)
/* AEBA60 800748C0 AE2202D0 */ sw $v0, 0x2d0($s1)
/* AEBA64 800748C4 92830B13 */ lbu $v1, 0xb13($s4)
/* AEBA68 800748C8 00009025 */ move $s2, $zero
.L800748CC:
/* AEBA6C 800748CC 18600076 */ blez $v1, .L80074AA8
/* AEBA70 800748D0 00601025 */ move $v0, $v1
/* AEBA74 800748D4 3C018014 */ lui $at, %hi(D_8013C7DC)
/* AEBA78 800748D8 C43EC7DC */ lwc1 $f30, %lo(D_8013C7DC)($at)
/* AEBA7C 800748DC 3C0142C8 */ li $at, 0x42C80000 # 0.000000
/* AEBA80 800748E0 4481E000 */ mtc1 $at, $f28
/* AEBA84 800748E4 3C0B0405 */ lui $t3, %hi(gRaindropDL) # $t3, 0x405
/* AEBA88 800748E8 256B8160 */ addiu $t3, %lo(gRaindropDL) # addiu $t3, $t3, -0x7ea0
/* AEBA8C 800748EC 3C018014 */ lui $at, %hi(D_8013C7E0)
/* AEBA90 800748F0 3C130100 */ lui $s3, 0x100
/* AEBA94 800748F4 3C17DA38 */ lui $s7, (0xDA380003 >> 16) # lui $s7, 0xda38
/* AEBA98 800748F8 36F70003 */ ori $s7, (0xDA380003 & 0xFFFF) # ori $s7, $s7, 3
/* AEBA9C 800748FC 26730000 */ addiu $s3, $s3, 0
/* AEBAA0 80074900 C43AC7E0 */ lwc1 $f26, %lo(D_8013C7E0)($at)
/* AEBAA4 80074904 AFAB0078 */ sw $t3, 0x78($sp)
/* AEBAA8 80074908 3C1EDE00 */ lui $fp, 0xde00
.L8007490C:
/* AEBAAC 8007490C 0C03F66B */ jal Rand_ZeroOne
/* AEBAB0 80074910 00000000 */ nop
/* AEBAB4 80074914 0C03F66B */ jal Rand_ZeroOne
/* AEBAB8 80074918 46000586 */ mov.s $f22, $f0
/* AEBABC 8007491C 0C03F66B */ jal Rand_ZeroOne
/* AEBAC0 80074920 46000506 */ mov.s $f20, $f0
/* AEBAC4 80074924 461AB101 */ sub.s $f4, $f22, $f26
/* AEBAC8 80074928 C7A800F8 */ lwc1 $f8, 0xf8($sp)
/* AEBACC 8007492C 00003825 */ move $a3, $zero
/* AEBAD0 80074930 461AA281 */ sub.s $f10, $f20, $f26
/* AEBAD4 80074934 461C2182 */ mul.s $f6, $f4, $f28
/* AEBAD8 80074938 46083300 */ add.s $f12, $f6, $f8
/* AEBADC 8007493C 461C5102 */ mul.s $f4, $f10, $f28
/* AEBAE0 80074940 C7A600F4 */ lwc1 $f6, 0xf4($sp)
/* AEBAE4 80074944 461A0201 */ sub.s $f8, $f0, $f26
/* AEBAE8 80074948 461C4282 */ mul.s $f10, $f8, $f28
/* AEBAEC 8007494C 46062380 */ add.s $f14, $f4, $f6
/* AEBAF0 80074950 C7A400F0 */ lwc1 $f4, 0xf0($sp)
/* AEBAF4 80074954 46045180 */ add.s $f6, $f10, $f4
/* AEBAF8 80074958 44063000 */ mfc1 $a2, $f6
/* AEBAFC 8007495C 0C034261 */ jal Matrix_Translate
/* AEBB00 80074960 00000000 */ nop
/* AEBB04 80074964 868C0ACC */ lh $t4, 0xacc($s4)
/* AEBB08 80074968 448C4000 */ mtc1 $t4, $f8
/* AEBB0C 8007496C 00000000 */ nop
/* AEBB10 80074970 468042A0 */ cvt.s.w $f10, $f8
/* AEBB14 80074974 E7AA00D0 */ swc1 $f10, 0xd0($sp)
/* AEBB18 80074978 868D0ACE */ lh $t5, 0xace($s4)
/* AEBB1C 8007497C C7B400D0 */ lwc1 $f20, 0xd0($sp)
/* AEBB20 80074980 448D2000 */ mtc1 $t5, $f4
/* AEBB24 80074984 00000000 */ nop
/* AEBB28 80074988 468021A0 */ cvt.s.w $f6, $f4
/* AEBB2C 8007498C E7A600D4 */ swc1 $f6, 0xd4($sp)
/* AEBB30 80074990 868E0AD0 */ lh $t6, 0xad0($s4)
/* AEBB34 80074994 448E4000 */ mtc1 $t6, $f8
/* AEBB38 80074998 00000000 */ nop
/* AEBB3C 8007499C 468042A0 */ cvt.s.w $f10, $f8
/* AEBB40 800749A0 0C03F66B */ jal Rand_ZeroOne
/* AEBB44 800749A4 E7AA00D8 */ swc1 $f10, 0xd8($sp)
/* AEBB48 800749A8 3C0143FA */ li $at, 0x43FA0000 # 0.000000
/* AEBB4C 800749AC 44813000 */ mtc1 $at, $f6
/* AEBB50 800749B0 C7A400D4 */ lwc1 $f4, 0xd4($sp)
/* AEBB54 800749B4 3C014348 */ li $at, 0x43480000 # 0.000000
/* AEBB58 800749B8 44815000 */ mtc1 $at, $f10
/* AEBB5C 800749BC 46062200 */ add.s $f8, $f4, $f6
/* AEBB60 800749C0 C7B600D8 */ lwc1 $f22, 0xd8($sp)
/* AEBB64 800749C4 460A0102 */ mul.s $f4, $f0, $f10
/* AEBB68 800749C8 8E2202D0 */ lw $v0, 0x2d0($s1)
/* AEBB6C 800749CC 3C18DA38 */ lui $t8, (0xDA380001 >> 16) # lui $t8, 0xda38
/* AEBB70 800749D0 4614A182 */ mul.s $f6, $f20, $f20
/* AEBB74 800749D4 244F0008 */ addiu $t7, $v0, 8
/* AEBB78 800749D8 AE2F02D0 */ sw $t7, 0x2d0($s1)
/* AEBB7C 800749DC 4616B282 */ mul.s $f10, $f22, $f22
/* AEBB80 800749E0 37180001 */ ori $t8, (0xDA380001 & 0xFFFF) # ori $t8, $t8, 1
/* AEBB84 800749E4 46082400 */ add.s $f16, $f4, $f8
/* AEBB88 800749E8 AC580000 */ sw $t8, ($v0)
/* AEBB8C 800749EC AC530004 */ sw $s3, 4($v0)
/* AEBB90 800749F0 46008387 */ neg.s $f14, $f16
/* AEBB94 800749F4 460A3000 */ add.s $f0, $f6, $f10
/* AEBB98 800749F8 0C0341F5 */ jal Math_Atan2F
/* AEBB9C 800749FC 46000304 */ sqrt.s $f12, $f0
/* AEBBA0 80074A00 46000606 */ mov.s $f24, $f0
/* AEBBA4 80074A04 4600B306 */ mov.s $f12, $f22
/* AEBBA8 80074A08 0C0341F5 */ jal Math_Atan2F
/* AEBBAC 80074A0C 4600A386 */ mov.s $f14, $f20
/* AEBBB0 80074A10 46000307 */ neg.s $f12, $f0
/* AEBBB4 80074A14 0C034348 */ jal Matrix_RotateY
/* AEBBB8 80074A18 24050001 */ li $a1, 1
/* AEBBBC 80074A1C 3C018014 */ lui $at, %hi(D_8013C7E4)
/* AEBBC0 80074A20 C424C7E4 */ lwc1 $f4, %lo(D_8013C7E4)($at)
/* AEBBC4 80074A24 24050001 */ li $a1, 1
/* AEBBC8 80074A28 0C0342DC */ jal Matrix_RotateX
/* AEBBCC 80074A2C 46182301 */ sub.s $f12, $f4, $f24
/* AEBBD0 80074A30 3C018014 */ lui $at, %hi(D_8013C7E8)
/* AEBBD4 80074A34 4406F000 */ mfc1 $a2, $f30
/* AEBBD8 80074A38 C42EC7E8 */ lwc1 $f14, %lo(D_8013C7E8)($at)
/* AEBBDC 80074A3C 4600F306 */ mov.s $f12, $f30
/* AEBBE0 80074A40 0C0342A3 */ jal Matrix_Scale
/* AEBBE4 80074A44 24070001 */ li $a3, 1
/* AEBBE8 80074A48 8E2202D0 */ lw $v0, 0x2d0($s1)
/* AEBBEC 80074A4C 3C058014 */ lui $a1, %hi(D_8013C5DC) # $a1, 0x8014
/* AEBBF0 80074A50 24A5C5DC */ addiu $a1, %lo(D_8013C5DC) # addiu $a1, $a1, -0x3a24
/* AEBBF4 80074A54 24590008 */ addiu $t9, $v0, 8
/* AEBBF8 80074A58 AE3902D0 */ sw $t9, 0x2d0($s1)
/* AEBBFC 80074A5C 02202025 */ move $a0, $s1
/* AEBC00 80074A60 24060B47 */ li $a2, 2887
/* AEBC04 80074A64 AC570000 */ sw $s7, ($v0)
/* AEBC08 80074A68 0C0346A2 */ jal Matrix_NewMtx
/* AEBC0C 80074A6C 00408025 */ move $s0, $v0
/* AEBC10 80074A70 AE020004 */ sw $v0, 4($s0)
/* AEBC14 80074A74 8E2202D0 */ lw $v0, 0x2d0($s1)
/* AEBC18 80074A78 26520001 */ addiu $s2, $s2, 1
/* AEBC1C 80074A7C 00129400 */ sll $s2, $s2, 0x10
/* AEBC20 80074A80 24480008 */ addiu $t0, $v0, 8
/* AEBC24 80074A84 AE2802D0 */ sw $t0, 0x2d0($s1)
/* AEBC28 80074A88 AC5E0000 */ sw $fp, ($v0)
/* AEBC2C 80074A8C 8FA90078 */ lw $t1, 0x78($sp)
/* AEBC30 80074A90 00129403 */ sra $s2, $s2, 0x10
/* AEBC34 80074A94 AC490004 */ sw $t1, 4($v0)
/* AEBC38 80074A98 92820B13 */ lbu $v0, 0xb13($s4)
/* AEBC3C 80074A9C 0242082A */ slt $at, $s2, $v0
/* AEBC40 80074AA0 1420FF9A */ bnez $at, .L8007490C
/* AEBC44 80074AA4 00000000 */ nop
.L80074AA8:
/* AEBC48 80074AA8 C6A80028 */ lwc1 $f8, 0x28($s5)
/* AEBC4C 80074AAC C6C6002C */ lwc1 $f6, 0x2c($s6)
/* AEBC50 80074AB0 3C17DA38 */ lui $s7, (0xDA380003 >> 16) # lui $s7, 0xda38
/* AEBC54 80074AB4 36F70003 */ ori $s7, (0xDA380003 & 0xFFFF) # ori $s7, $s7, 3
/* AEBC58 80074AB8 4606403C */ c.lt.s $f8, $f6
/* AEBC5C 80074ABC 3C1EDE00 */ lui $fp, 0xde00
/* AEBC60 80074AC0 00009825 */ move $s3, $zero
/* AEBC64 80074AC4 45000070 */ bc1f .L80074C88
/* AEBC68 80074AC8 00000000 */ nop
/* AEBC6C 80074ACC 1840006E */ blez $v0, .L80074C88
/* AEBC70 80074AD0 00009025 */ move $s2, $zero
/* AEBC74 80074AD4 3C01C1F0 */ li $at, 0xC1F00000 # 0.000000
/* AEBC78 80074AD8 4481F000 */ mtc1 $at, $f30
/* AEBC7C 80074ADC 3C01C240 */ li $at, 0xC2400000 # 0.000000
/* AEBC80 80074AE0 4481E000 */ mtc1 $at, $f28
/* AEBC84 80074AE4 3C018014 */ lui $at, %hi(D_8013C7EC)
/* AEBC88 80074AE8 C43AC7EC */ lwc1 $f26, %lo(D_8013C7EC)($at)
/* AEBC8C 80074AEC 3C018014 */ lui $at, %hi(D_8013C7F0)
/* AEBC90 80074AF0 C438C7F0 */ lwc1 $f24, %lo(D_8013C7F0)($at)
/* AEBC94 80074AF4 3C014000 */ lui $at, 0x4000
/* AEBC98 80074AF8 3C0A0402 */ li $t2, 0x04020000 # 0.000000
/* AEBC9C 80074AFC 254AA0B0 */ addiu $t2, %lo(gEffShockwaveDL) # addiu $t2, $t2, -0x5f50
/* AEBCA0 80074B00 4481B000 */ mtc1 $at, $f22
/* AEBCA4 80074B04 AFAA007C */ sw $t2, 0x7c($sp)
.L80074B08:
/* AEBCA8 80074B08 16600014 */ bnez $s3, .L80074B5C
/* AEBCAC 80074B0C 00000000 */ nop
/* AEBCB0 80074B10 0C024F61 */ jal func_80093D84
/* AEBCB4 80074B14 02202025 */ move $a0, $s1
/* AEBCB8 80074B18 8E2202D0 */ lw $v0, 0x2d0($s1)
/* AEBCBC 80074B1C 3C0D9B9B */ lui $t5, (0x9B9B9B00 >> 16) # lui $t5, 0x9b9b
/* AEBCC0 80074B20 35AD9B00 */ ori $t5, (0x9B9B9B00 & 0xFFFF) # ori $t5, $t5, 0x9b00
/* AEBCC4 80074B24 244B0008 */ addiu $t3, $v0, 8
/* AEBCC8 80074B28 AE2B02D0 */ sw $t3, 0x2d0($s1)
/* AEBCCC 80074B2C 3C0CFB00 */ lui $t4, 0xfb00
/* AEBCD0 80074B30 AC4C0000 */ sw $t4, ($v0)
/* AEBCD4 80074B34 AC4D0004 */ sw $t5, 4($v0)
/* AEBCD8 80074B38 8E2202D0 */ lw $v0, 0x2d0($s1)
/* AEBCDC 80074B3C 3C0FFA00 */ lui $t7, 0xfa00
/* AEBCE0 80074B40 2418FF78 */ li $t8, -136
/* AEBCE4 80074B44 244E0008 */ addiu $t6, $v0, 8
/* AEBCE8 80074B48 AE2E02D0 */ sw $t6, 0x2d0($s1)
/* AEBCEC 80074B4C 26730001 */ addiu $s3, $s3, 1
/* AEBCF0 80074B50 327300FF */ andi $s3, $s3, 0xff
/* AEBCF4 80074B54 AC580004 */ sw $t8, 4($v0)
/* AEBCF8 80074B58 AC4F0000 */ sw $t7, ($v0)
.L80074B5C:
/* AEBCFC 80074B5C 0C01D1B7 */ jal func_800746DC
/* AEBD00 80074B60 00000000 */ nop
/* AEBD04 80074B64 0C01D1B7 */ jal func_800746DC
/* AEBD08 80074B68 46000506 */ mov.s $f20, $f0
/* AEBD0C 80074B6C 3C01438C */ li $at, 0x438C0000 # 0.000000
/* AEBD10 80074B70 44811000 */ mtc1 $at, $f2
/* AEBD14 80074B74 C7A400EC */ lwc1 $f4, 0xec($sp)
/* AEBD18 80074B78 C6A80028 */ lwc1 $f8, 0x28($s5)
/* AEBD1C 80074B7C 4602A282 */ mul.s $f10, $f20, $f2
/* AEBD20 80074B80 00003825 */ move $a3, $zero
/* AEBD24 80074B84 46164380 */ add.s $f14, $f8, $f22
/* AEBD28 80074B88 46020182 */ mul.s $f6, $f0, $f2
/* AEBD2C 80074B8C 46045300 */ add.s $f12, $f10, $f4
/* AEBD30 80074B90 C7AA00E8 */ lwc1 $f10, 0xe8($sp)
/* AEBD34 80074B94 460A3100 */ add.s $f4, $f6, $f10
/* AEBD38 80074B98 44062000 */ mfc1 $a2, $f4
/* AEBD3C 80074B9C 0C034261 */ jal Matrix_Translate
/* AEBD40 80074BA0 00000000 */ nop
/* AEBD44 80074BA4 3C028016 */ lui $v0, %hi(gSaveContext+4) # $v0, 0x8016
/* AEBD48 80074BA8 8C42E664 */ lw $v0, %lo(gSaveContext+4)($v0)
/* AEBD4C 80074BAC 14400009 */ bnez $v0, .L80074BD4
/* AEBD50 80074BB0 00000000 */ nop
/* AEBD54 80074BB4 C6A80028 */ lwc1 $f8, 0x28($s5)
/* AEBD58 80074BB8 C6CA002C */ lwc1 $f10, 0x2c($s6)
/* AEBD5C 80074BBC 46164180 */ add.s $f6, $f8, $f22
/* AEBD60 80074BC0 460A3101 */ sub.s $f4, $f6, $f10
/* AEBD64 80074BC4 4604E03C */ c.lt.s $f28, $f4
/* AEBD68 80074BC8 00000000 */ nop
/* AEBD6C 80074BCC 4503000C */ bc1tl .L80074C00
/* AEBD70 80074BD0 4406C000 */ mfc1 $a2, $f24
.L80074BD4:
/* AEBD74 80074BD4 10400010 */ beqz $v0, .L80074C18
/* AEBD78 80074BD8 24070001 */ li $a3, 1
/* AEBD7C 80074BDC C6A80028 */ lwc1 $f8, 0x28($s5)
/* AEBD80 80074BE0 C6CA002C */ lwc1 $f10, 0x2c($s6)
/* AEBD84 80074BE4 46164180 */ add.s $f6, $f8, $f22
/* AEBD88 80074BE8 460A3101 */ sub.s $f4, $f6, $f10
/* AEBD8C 80074BEC 4604F03C */ c.lt.s $f30, $f4
/* AEBD90 80074BF0 00000000 */ nop
/* AEBD94 80074BF4 45020009 */ bc1fl .L80074C1C
/* AEBD98 80074BF8 4406D000 */ mfc1 $a2, $f26
/* AEBD9C 80074BFC 4406C000 */ mfc1 $a2, $f24
.L80074C00:
/* AEBDA0 80074C00 4600C306 */ mov.s $f12, $f24
/* AEBDA4 80074C04 4600C386 */ mov.s $f14, $f24
/* AEBDA8 80074C08 0C0342A3 */ jal Matrix_Scale
/* AEBDAC 80074C0C 24070001 */ li $a3, 1
/* AEBDB0 80074C10 10000006 */ b .L80074C2C
/* AEBDB4 80074C14 8E2202D0 */ lw $v0, 0x2d0($s1)
.L80074C18:
/* AEBDB8 80074C18 4406D000 */ mfc1 $a2, $f26
.L80074C1C:
/* AEBDBC 80074C1C 4600D306 */ mov.s $f12, $f26
/* AEBDC0 80074C20 0C0342A3 */ jal Matrix_Scale
/* AEBDC4 80074C24 4600D386 */ mov.s $f14, $f26
/* AEBDC8 80074C28 8E2202D0 */ lw $v0, 0x2d0($s1)
.L80074C2C:
/* AEBDCC 80074C2C 3C058014 */ lui $a1, %hi(D_8013C5EC) # $a1, 0x8014
/* AEBDD0 80074C30 24A5C5EC */ addiu $a1, %lo(D_8013C5EC) # addiu $a1, $a1, -0x3a14
/* AEBDD4 80074C34 24590008 */ addiu $t9, $v0, 8
/* AEBDD8 80074C38 AE3902D0 */ sw $t9, 0x2d0($s1)
/* AEBDDC 80074C3C 02202025 */ move $a0, $s1
/* AEBDE0 80074C40 24060B7C */ li $a2, 2940
/* AEBDE4 80074C44 AC570000 */ sw $s7, ($v0)
/* AEBDE8 80074C48 0C0346A2 */ jal Matrix_NewMtx
/* AEBDEC 80074C4C 00408025 */ move $s0, $v0
/* AEBDF0 80074C50 AE020004 */ sw $v0, 4($s0)
/* AEBDF4 80074C54 8E2202D0 */ lw $v0, 0x2d0($s1)
/* AEBDF8 80074C58 26520001 */ addiu $s2, $s2, 1
/* AEBDFC 80074C5C 00129400 */ sll $s2, $s2, 0x10
/* AEBE00 80074C60 24480008 */ addiu $t0, $v0, 8
/* AEBE04 80074C64 AE2802D0 */ sw $t0, 0x2d0($s1)
/* AEBE08 80074C68 AC5E0000 */ sw $fp, ($v0)
/* AEBE0C 80074C6C 8FA9007C */ lw $t1, 0x7c($sp)
/* AEBE10 80074C70 00129403 */ sra $s2, $s2, 0x10
/* AEBE14 80074C74 AC490004 */ sw $t1, 4($v0)
/* AEBE18 80074C78 928A0B13 */ lbu $t2, 0xb13($s4)
/* AEBE1C 80074C7C 024A082A */ slt $at, $s2, $t2
/* AEBE20 80074C80 1420FFA1 */ bnez $at, .L80074B08
/* AEBE24 80074C84 00000000 */ nop
.L80074C88:
/* AEBE28 80074C88 3C068014 */ lui $a2, %hi(D_8013C5FC) # $a2, 0x8014
/* AEBE2C 80074C8C 24C6C5FC */ addiu $a2, %lo(D_8013C5FC) # addiu $a2, $a2, -0x3a04
/* AEBE30 80074C90 27A400B8 */ addiu $a0, $sp, 0xb8
/* AEBE34 80074C94 02202825 */ move $a1, $s1
/* AEBE38 80074C98 0C031AD5 */ jal Graph_CloseDisps
/* AEBE3C 80074C9C 24070B82 */ li $a3, 2946
.L80074CA0:
/* AEBE40 80074CA0 8FBF006C */ lw $ra, 0x6c($sp)
.L80074CA4:
/* AEBE44 80074CA4 D7B40018 */ ldc1 $f20, 0x18($sp)
/* AEBE48 80074CA8 D7B60020 */ ldc1 $f22, 0x20($sp)
/* AEBE4C 80074CAC D7B80028 */ ldc1 $f24, 0x28($sp)
/* AEBE50 80074CB0 D7BA0030 */ ldc1 $f26, 0x30($sp)
/* AEBE54 80074CB4 D7BC0038 */ ldc1 $f28, 0x38($sp)
/* AEBE58 80074CB8 D7BE0040 */ ldc1 $f30, 0x40($sp)
/* AEBE5C 80074CBC 8FB00048 */ lw $s0, 0x48($sp)
/* AEBE60 80074CC0 8FB1004C */ lw $s1, 0x4c($sp)
/* AEBE64 80074CC4 8FB20050 */ lw $s2, 0x50($sp)
/* AEBE68 80074CC8 8FB30054 */ lw $s3, 0x54($sp)
/* AEBE6C 80074CCC 8FB40058 */ lw $s4, 0x58($sp)
/* AEBE70 80074CD0 8FB5005C */ lw $s5, 0x5c($sp)
/* AEBE74 80074CD4 8FB60060 */ lw $s6, 0x60($sp)
/* AEBE78 80074CD8 8FB70064 */ lw $s7, 0x64($sp)
/* AEBE7C 80074CDC 8FBE0068 */ lw $fp, 0x68($sp)
/* AEBE80 80074CE0 03E00008 */ jr $ra
/* AEBE84 80074CE4 27BD0128 */ addiu $sp, $sp, 0x128

View file

@ -1,680 +0,0 @@
.rdata
glabel D_8013C2F4
.asciz "\x1b[41;37m\n環境データ取得失敗 ささきまでご報告を!\x1b[m"
# EUC-JP: | Environment VR data acquisition failed! Report to Sasaki!
.balign 4
glabel D_8013C330
.asciz "../z_kankyo.c"
.balign 4
glabel D_8013C340
.asciz "../z_kankyo.c"
.balign 4
glabel D_8013C350
.asciz "../z_kankyo.c"
.balign 4
glabel D_8013C360
.asciz "../z_kankyo.c"
.balign 4
glabel D_8013C370
.asciz "../z_kankyo.c"
.balign 4
glabel D_8013C380
.asciz "../z_kankyo.c"
.balign 4
.text
glabel Environment_UpdateSkybox
/* AE6E28 8006FC88 27BDFFA0 */ addiu $sp, $sp, -0x60
/* AE6E2C 8006FC8C AFB00030 */ sw $s0, 0x30($sp)
/* AE6E30 8006FC90 308200FF */ andi $v0, $a0, 0xff
/* AE6E34 8006FC94 240E00FF */ li $t6, 255
/* AE6E38 8006FC98 240F00FF */ li $t7, 255
/* AE6E3C 8006FC9C 24010005 */ li $at, 5
/* AE6E40 8006FCA0 00A08025 */ move $s0, $a1
/* AE6E44 8006FCA4 AFBF0034 */ sw $ra, 0x34($sp)
/* AE6E48 8006FCA8 AFA40060 */ sw $a0, 0x60($sp)
/* AE6E4C 8006FCAC AFA60068 */ sw $a2, 0x68($sp)
/* AE6E50 8006FCB0 A3AE005A */ sb $t6, 0x5a($sp)
/* AE6E54 8006FCB4 A3AF0059 */ sb $t7, 0x59($sp)
/* AE6E58 8006FCB8 14410050 */ bne $v0, $at, .L8006FDFC
/* AE6E5C 8006FCBC A3A00058 */ sb $zero, 0x58($sp)
/* AE6E60 8006FCC0 24180003 */ li $t8, 3
/* AE6E64 8006FCC4 A0B80017 */ sb $t8, 0x17($a1)
/* AE6E68 8006FCC8 331900FF */ andi $t9, $t8, 0xff
/* AE6E6C 8006FCCC 3C0A8016 */ lui $t2, %hi(gSaveContext+0x141a) # $t2, 0x8016
/* AE6E70 8006FCD0 954AFA7A */ lhu $t2, %lo(gSaveContext+0x141a)($t2)
/* AE6E74 8006FCD4 001958C0 */ sll $t3, $t9, 3
/* AE6E78 8006FCD8 01795821 */ addu $t3, $t3, $t9
/* AE6E7C 8006FCDC 3C0C8012 */ lui $t4, %hi(D_8011FC1C) # $t4, 0x8012
/* AE6E80 8006FCE0 258CFC1C */ addiu $t4, %lo(D_8011FC1C) # addiu $t4, $t4, -0x3e4
/* AE6E84 8006FCE4 000B58C0 */ sll $t3, $t3, 3
/* AE6E88 8006FCE8 016C4821 */ addu $t1, $t3, $t4
/* AE6E8C 8006FCEC 00004025 */ move $t0, $zero
/* AE6E90 8006FCF0 3406FFFF */ li $a2, 65535
/* AE6E94 8006FCF4 01402025 */ move $a0, $t2
/* AE6E98 8006FCF8 000868C0 */ sll $t5, $t0, 3
.L8006FCFC:
/* AE6E9C 8006FCFC 012D1821 */ addu $v1, $t1, $t5
/* AE6EA0 8006FD00 94650000 */ lhu $a1, ($v1)
/* AE6EA4 8006FD04 25080001 */ addiu $t0, $t0, 1
/* AE6EA8 8006FD08 310800FF */ andi $t0, $t0, 0xff
/* AE6EAC 8006FD0C 0085082A */ slt $at, $a0, $a1
/* AE6EB0 8006FD10 54200036 */ bnezl $at, .L8006FDEC
/* AE6EB4 8006FD14 29010009 */ slti $at, $t0, 9
/* AE6EB8 8006FD18 94670002 */ lhu $a3, 2($v1)
/* AE6EBC 8006FD1C 0087082A */ slt $at, $a0, $a3
/* AE6EC0 8006FD20 14200003 */ bnez $at, .L8006FD30
/* AE6EC4 8006FD24 00E01025 */ move $v0, $a3
/* AE6EC8 8006FD28 54C20030 */ bnel $a2, $v0, .L8006FDEC
/* AE6ECC 8006FD2C 29010009 */ slti $at, $t0, 9
.L8006FD30:
/* AE6ED0 8006FD30 906E0004 */ lbu $t6, 4($v1)
/* AE6ED4 8006FD34 3146FFFF */ andi $a2, $t2, 0xffff
/* AE6ED8 8006FD38 11C00029 */ beqz $t6, .L8006FDE0
/* AE6EDC 8006FD3C 00000000 */ nop
/* AE6EE0 8006FD40 0C01BE4F */ jal Environment_LerpWeight
/* AE6EE4 8006FD44 30E4FFFF */ andi $a0, $a3, 0xffff
/* AE6EE8 8006FD48 3C01437F */ li $at, 0x437F0000 # 0.000000
/* AE6EEC 8006FD4C 44812000 */ mtc1 $at, $f4
/* AE6EF0 8006FD50 24180001 */ li $t8, 1
/* AE6EF4 8006FD54 3C014F00 */ li $at, 0x4F000000 # 0.000000
/* AE6EF8 8006FD58 46040182 */ mul.s $f6, $f0, $f4
/* AE6EFC 8006FD5C 444FF800 */ cfc1 $t7, $31
/* AE6F00 8006FD60 44D8F800 */ ctc1 $t8, $31
/* AE6F04 8006FD64 00000000 */ nop
/* AE6F08 8006FD68 46003224 */ cvt.w.s $f8, $f6
/* AE6F0C 8006FD6C 4458F800 */ cfc1 $t8, $31
/* AE6F10 8006FD70 00000000 */ nop
/* AE6F14 8006FD74 33180078 */ andi $t8, $t8, 0x78
/* AE6F18 8006FD78 53000013 */ beql $t8, $zero, .L8006FDC8
/* AE6F1C 8006FD7C 44184000 */ mfc1 $t8, $f8
/* AE6F20 8006FD80 44814000 */ mtc1 $at, $f8
/* AE6F24 8006FD84 24180001 */ li $t8, 1
/* AE6F28 8006FD88 46083201 */ sub.s $f8, $f6, $f8
/* AE6F2C 8006FD8C 44D8F800 */ ctc1 $t8, $31
/* AE6F30 8006FD90 00000000 */ nop
/* AE6F34 8006FD94 46004224 */ cvt.w.s $f8, $f8
/* AE6F38 8006FD98 4458F800 */ cfc1 $t8, $31
/* AE6F3C 8006FD9C 00000000 */ nop
/* AE6F40 8006FDA0 33180078 */ andi $t8, $t8, 0x78
/* AE6F44 8006FDA4 17000005 */ bnez $t8, .L8006FDBC
/* AE6F48 8006FDA8 00000000 */ nop
/* AE6F4C 8006FDAC 44184000 */ mfc1 $t8, $f8
/* AE6F50 8006FDB0 3C018000 */ lui $at, 0x8000
/* AE6F54 8006FDB4 10000007 */ b .L8006FDD4
/* AE6F58 8006FDB8 0301C025 */ or $t8, $t8, $at
.L8006FDBC:
/* AE6F5C 8006FDBC 10000005 */ b .L8006FDD4
/* AE6F60 8006FDC0 2418FFFF */ li $t8, -1
/* AE6F64 8006FDC4 44184000 */ mfc1 $t8, $f8
.L8006FDC8:
/* AE6F68 8006FDC8 00000000 */ nop
/* AE6F6C 8006FDCC 0700FFFB */ bltz $t8, .L8006FDBC
/* AE6F70 8006FDD0 00000000 */ nop
.L8006FDD4:
/* AE6F74 8006FDD4 44CFF800 */ ctc1 $t7, $31
/* AE6F78 8006FDD8 10000204 */ b .L800705EC
/* AE6F7C 8006FDDC A2180013 */ sb $t8, 0x13($s0)
.L8006FDE0:
/* AE6F80 8006FDE0 10000202 */ b .L800705EC
/* AE6F84 8006FDE4 A2000013 */ sb $zero, 0x13($s0)
/* AE6F88 8006FDE8 29010009 */ slti $at, $t0, 9
.L8006FDEC:
/* AE6F8C 8006FDEC 5420FFC3 */ bnezl $at, .L8006FCFC
/* AE6F90 8006FDF0 000868C0 */ sll $t5, $t0, 3
/* AE6F94 8006FDF4 100001FE */ b .L800705F0
/* AE6F98 8006FDF8 8FBF0034 */ lw $ra, 0x34($sp)
.L8006FDFC:
/* AE6F9C 8006FDFC 24010001 */ li $at, 1
/* AE6FA0 8006FE00 544101FB */ bnel $v0, $at, .L800705F0
/* AE6FA4 8006FE04 8FBF0034 */ lw $ra, 0x34($sp)
/* AE6FA8 8006FE08 92190015 */ lbu $t9, 0x15($s0)
/* AE6FAC 8006FE0C 00004025 */ move $t0, $zero
/* AE6FB0 8006FE10 3C0A8016 */ lui $t2, %hi(gSaveContext+0x141a) # $t2, 0x8016
/* AE6FB4 8006FE14 172001F5 */ bnez $t9, .L800705EC
/* AE6FB8 8006FE18 3C0D8012 */ lui $t5, %hi(D_8011FC1C) # $t5, 0x8012
/* AE6FBC 8006FE1C 920B0017 */ lbu $t3, 0x17($s0)
/* AE6FC0 8006FE20 954AFA7A */ lhu $t2, %lo(gSaveContext+0x141a)($t2)
/* AE6FC4 8006FE24 25ADFC1C */ addiu $t5, %lo(D_8011FC1C) # addiu $t5, $t5, -0x3e4
/* AE6FC8 8006FE28 000B60C0 */ sll $t4, $t3, 3
/* AE6FCC 8006FE2C 018B6021 */ addu $t4, $t4, $t3
/* AE6FD0 8006FE30 000C60C0 */ sll $t4, $t4, 3
/* AE6FD4 8006FE34 018D4821 */ addu $t1, $t4, $t5
/* AE6FD8 8006FE38 3406FFFF */ li $a2, 65535
/* AE6FDC 8006FE3C 01402025 */ move $a0, $t2
/* AE6FE0 8006FE40 000838C0 */ sll $a3, $t0, 3
.L8006FE44:
/* AE6FE4 8006FE44 01271821 */ addu $v1, $t1, $a3
/* AE6FE8 8006FE48 946E0000 */ lhu $t6, ($v1)
/* AE6FEC 8006FE4C 008E082A */ slt $at, $a0, $t6
/* AE6FF0 8006FE50 54200088 */ bnezl $at, .L80070074
/* AE6FF4 8006FE54 25080001 */ addiu $t0, $t0, 1
/* AE6FF8 8006FE58 94620002 */ lhu $v0, 2($v1)
/* AE6FFC 8006FE5C 0082082A */ slt $at, $a0, $v0
/* AE7000 8006FE60 54200004 */ bnezl $at, .L8006FE74
/* AE7004 8006FE64 90790004 */ lbu $t9, 4($v1)
/* AE7008 8006FE68 54C20082 */ bnel $a2, $v0, .L80070074
/* AE700C 8006FE6C 25080001 */ addiu $t0, $t0, 1
/* AE7010 8006FE70 90790004 */ lbu $t9, 4($v1)
.L8006FE74:
/* AE7014 8006FE74 906F0005 */ lbu $t7, 5($v1)
/* AE7018 8006FE78 90780006 */ lbu $t8, 6($v1)
/* AE701C 8006FE7C 3C028012 */ lui $v0, %hi(gSkyboxBlendingEnabled) # $v0, 0x8012
/* AE7020 8006FE80 2442FB3C */ addiu $v0, %lo(gSkyboxBlendingEnabled) # addiu $v0, $v0, -0x4c4
/* AE7024 8006FE84 332B00FF */ andi $t3, $t9, 0xff
/* AE7028 8006FE88 A0590000 */ sb $t9, ($v0)
/* AE702C 8006FE8C A3AF005A */ sb $t7, 0x5a($sp)
/* AE7030 8006FE90 11600035 */ beqz $t3, .L8006FF68
/* AE7034 8006FE94 A3B80059 */ sb $t8, 0x59($sp)
/* AE7038 8006FE98 920C0017 */ lbu $t4, 0x17($s0)
/* AE703C 8006FE9C 3C0F8012 */ lui $t7, %hi(D_8011FC1C) # $t7, 0x8012
/* AE7040 8006FEA0 25EFFC1C */ addiu $t7, %lo(D_8011FC1C) # addiu $t7, $t7, -0x3e4
/* AE7044 8006FEA4 000C68C0 */ sll $t5, $t4, 3
/* AE7048 8006FEA8 01AC6821 */ addu $t5, $t5, $t4
/* AE704C 8006FEAC 000D68C0 */ sll $t5, $t5, 3
/* AE7050 8006FEB0 01A77021 */ addu $t6, $t5, $a3
/* AE7054 8006FEB4 01CF1821 */ addu $v1, $t6, $t7
/* AE7058 8006FEB8 94640002 */ lhu $a0, 2($v1)
/* AE705C 8006FEBC 94650000 */ lhu $a1, ($v1)
/* AE7060 8006FEC0 A3A8005B */ sb $t0, 0x5b($sp)
/* AE7064 8006FEC4 0C01BE4F */ jal Environment_LerpWeight
/* AE7068 8006FEC8 3146FFFF */ andi $a2, $t2, 0xffff
/* AE706C 8006FECC 3C01437F */ li $at, 0x437F0000 # 0.000000
/* AE7070 8006FED0 44815000 */ mtc1 $at, $f10
/* AE7074 8006FED4 24190001 */ li $t9, 1
/* AE7078 8006FED8 3C014F00 */ li $at, 0x4F000000 # 0.000000
/* AE707C 8006FEDC 460A0402 */ mul.s $f16, $f0, $f10
/* AE7080 8006FEE0 93A8005B */ lbu $t0, 0x5b($sp)
/* AE7084 8006FEE4 4458F800 */ cfc1 $t8, $31
/* AE7088 8006FEE8 44D9F800 */ ctc1 $t9, $31
/* AE708C 8006FEEC 00000000 */ nop
/* AE7090 8006FEF0 460084A4 */ cvt.w.s $f18, $f16
/* AE7094 8006FEF4 4459F800 */ cfc1 $t9, $31
/* AE7098 8006FEF8 00000000 */ nop
/* AE709C 8006FEFC 33390078 */ andi $t9, $t9, 0x78
/* AE70A0 8006FF00 53200013 */ beql $t9, $zero, .L8006FF50
/* AE70A4 8006FF04 44199000 */ mfc1 $t9, $f18
/* AE70A8 8006FF08 44819000 */ mtc1 $at, $f18
/* AE70AC 8006FF0C 24190001 */ li $t9, 1
/* AE70B0 8006FF10 46128481 */ sub.s $f18, $f16, $f18
/* AE70B4 8006FF14 44D9F800 */ ctc1 $t9, $31
/* AE70B8 8006FF18 00000000 */ nop
/* AE70BC 8006FF1C 460094A4 */ cvt.w.s $f18, $f18
/* AE70C0 8006FF20 4459F800 */ cfc1 $t9, $31
/* AE70C4 8006FF24 00000000 */ nop
/* AE70C8 8006FF28 33390078 */ andi $t9, $t9, 0x78
/* AE70CC 8006FF2C 17200005 */ bnez $t9, .L8006FF44
/* AE70D0 8006FF30 00000000 */ nop
/* AE70D4 8006FF34 44199000 */ mfc1 $t9, $f18
/* AE70D8 8006FF38 3C018000 */ lui $at, 0x8000
/* AE70DC 8006FF3C 10000007 */ b .L8006FF5C
/* AE70E0 8006FF40 0321C825 */ or $t9, $t9, $at
.L8006FF44:
/* AE70E4 8006FF44 10000005 */ b .L8006FF5C
/* AE70E8 8006FF48 2419FFFF */ li $t9, -1
/* AE70EC 8006FF4C 44199000 */ mfc1 $t9, $f18
.L8006FF50:
/* AE70F0 8006FF50 00000000 */ nop
/* AE70F4 8006FF54 0720FFFB */ bltz $t9, .L8006FF44
/* AE70F8 8006FF58 00000000 */ nop
.L8006FF5C:
/* AE70FC 8006FF5C 44D8F800 */ ctc1 $t8, $31
/* AE7100 8006FF60 10000048 */ b .L80070084
/* AE7104 8006FF64 A3B90058 */ sb $t9, 0x58($sp)
.L8006FF68:
/* AE7108 8006FF68 920B0017 */ lbu $t3, 0x17($s0)
/* AE710C 8006FF6C 3C0E8012 */ lui $t6, %hi(D_8011FC1C) # $t6, 0x8012
/* AE7110 8006FF70 25CEFC1C */ addiu $t6, %lo(D_8011FC1C) # addiu $t6, $t6, -0x3e4
/* AE7114 8006FF74 000B60C0 */ sll $t4, $t3, 3
/* AE7118 8006FF78 018B6021 */ addu $t4, $t4, $t3
/* AE711C 8006FF7C 000C60C0 */ sll $t4, $t4, 3
/* AE7120 8006FF80 01876821 */ addu $t5, $t4, $a3
/* AE7124 8006FF84 01AE1821 */ addu $v1, $t5, $t6
/* AE7128 8006FF88 94640002 */ lhu $a0, 2($v1)
/* AE712C 8006FF8C 94650000 */ lhu $a1, ($v1)
/* AE7130 8006FF90 A3A8005B */ sb $t0, 0x5b($sp)
/* AE7134 8006FF94 0C01BE4F */ jal Environment_LerpWeight
/* AE7138 8006FF98 3146FFFF */ andi $a2, $t2, 0xffff
/* AE713C 8006FF9C 3C01437F */ li $at, 0x437F0000 # 0.000000
/* AE7140 8006FFA0 44812000 */ mtc1 $at, $f4
/* AE7144 8006FFA4 24180001 */ li $t8, 1
/* AE7148 8006FFA8 93A8005B */ lbu $t0, 0x5b($sp)
/* AE714C 8006FFAC 46040182 */ mul.s $f6, $f0, $f4
/* AE7150 8006FFB0 3C014F00 */ li $at, 0x4F000000 # 0.000000
/* AE7154 8006FFB4 240B00FF */ li $t3, 255
/* AE7158 8006FFB8 444FF800 */ cfc1 $t7, $31
/* AE715C 8006FFBC 44D8F800 */ ctc1 $t8, $31
/* AE7160 8006FFC0 00000000 */ nop
/* AE7164 8006FFC4 46003224 */ cvt.w.s $f8, $f6
/* AE7168 8006FFC8 4458F800 */ cfc1 $t8, $31
/* AE716C 8006FFCC 00000000 */ nop
/* AE7170 8006FFD0 33180078 */ andi $t8, $t8, 0x78
/* AE7174 8006FFD4 53000013 */ beql $t8, $zero, .L80070024
/* AE7178 8006FFD8 44184000 */ mfc1 $t8, $f8
/* AE717C 8006FFDC 44814000 */ mtc1 $at, $f8
/* AE7180 8006FFE0 24180001 */ li $t8, 1
/* AE7184 8006FFE4 46083201 */ sub.s $f8, $f6, $f8
/* AE7188 8006FFE8 44D8F800 */ ctc1 $t8, $31
/* AE718C 8006FFEC 00000000 */ nop
/* AE7190 8006FFF0 46004224 */ cvt.w.s $f8, $f8
/* AE7194 8006FFF4 4458F800 */ cfc1 $t8, $31
/* AE7198 8006FFF8 00000000 */ nop
/* AE719C 8006FFFC 33180078 */ andi $t8, $t8, 0x78
/* AE71A0 80070000 17000005 */ bnez $t8, .L80070018
/* AE71A4 80070004 00000000 */ nop
/* AE71A8 80070008 44184000 */ mfc1 $t8, $f8
/* AE71AC 8007000C 3C018000 */ lui $at, 0x8000
/* AE71B0 80070010 10000007 */ b .L80070030
/* AE71B4 80070014 0301C025 */ or $t8, $t8, $at
.L80070018:
/* AE71B8 80070018 10000005 */ b .L80070030
/* AE71BC 8007001C 2418FFFF */ li $t8, -1
/* AE71C0 80070020 44184000 */ mfc1 $t8, $f8
.L80070024:
/* AE71C4 80070024 00000000 */ nop
/* AE71C8 80070028 0700FFFB */ bltz $t8, .L80070018
/* AE71CC 8007002C 00000000 */ nop
.L80070030:
/* AE71D0 80070030 331900FF */ andi $t9, $t8, 0xff
/* AE71D4 80070034 2B210080 */ slti $at, $t9, 0x80
/* AE71D8 80070038 44CFF800 */ ctc1 $t7, $31
/* AE71DC 8007003C 50200004 */ beql $at, $zero, .L80070050
/* AE71E0 80070040 A3A00058 */ sb $zero, 0x58($sp)
/* AE71E4 80070044 10000002 */ b .L80070050
/* AE71E8 80070048 A3AB0058 */ sb $t3, 0x58($sp)
/* AE71EC 8007004C A3A00058 */ sb $zero, 0x58($sp)
.L80070050:
/* AE71F0 80070050 92020019 */ lbu $v0, 0x19($s0)
/* AE71F4 80070054 1040000B */ beqz $v0, .L80070084
/* AE71F8 80070058 28410003 */ slti $at, $v0, 3
/* AE71FC 8007005C 10200009 */ beqz $at, .L80070084
/* AE7200 80070060 244C0001 */ addiu $t4, $v0, 1
/* AE7204 80070064 A20C0019 */ sb $t4, 0x19($s0)
/* AE7208 80070068 10000006 */ b .L80070084
/* AE720C 8007006C A3A00058 */ sb $zero, 0x58($sp)
/* AE7210 80070070 25080001 */ addiu $t0, $t0, 1
.L80070074:
/* AE7214 80070074 310800FF */ andi $t0, $t0, 0xff
/* AE7218 80070078 29010009 */ slti $at, $t0, 9
/* AE721C 8007007C 5420FF71 */ bnezl $at, .L8006FE44
/* AE7220 80070080 000838C0 */ sll $a3, $t0, 3
.L80070084:
/* AE7224 80070084 02002025 */ move $a0, $s0
/* AE7228 80070088 93A50058 */ lbu $a1, 0x58($sp)
/* AE722C 8007008C 0C01BEE5 */ jal func_8006FB94
/* AE7230 80070090 A3A8005B */ sb $t0, 0x5b($sp)
/* AE7234 80070094 920D0019 */ lbu $t5, 0x19($s0)
/* AE7238 80070098 93A8005B */ lbu $t0, 0x5b($sp)
/* AE723C 8007009C 29A10003 */ slti $at, $t5, 3
/* AE7240 800700A0 14200050 */ bnez $at, .L800701E4
/* AE7244 800700A4 000838C0 */ sll $a3, $t0, 3
/* AE7248 800700A8 920E0017 */ lbu $t6, 0x17($s0)
/* AE724C 800700AC 3C198012 */ lui $t9, %hi(D_8011FC1C)
/* AE7250 800700B0 2739FC1C */ addiu $t9, %lo(D_8011FC1C) # addiu $t9, $t9, -0x3e4
/* AE7254 800700B4 000E78C0 */ sll $t7, $t6, 3
/* AE7258 800700B8 01EE7821 */ addu $t7, $t7, $t6
/* AE725C 800700BC 000F78C0 */ sll $t7, $t7, 3
/* AE7260 800700C0 01E7C021 */ addu $t8, $t7, $a3
/* AE7264 800700C4 03195821 */ addu $t3, $t8, $t9
/* AE7268 800700C8 916C0005 */ lbu $t4, 5($t3)
/* AE726C 800700CC 3C014F80 */ li $at, 0x4F800000 # 0.000000
/* AE7270 800700D0 A3AC005A */ sb $t4, 0x5a($sp)
/* AE7274 800700D4 92030018 */ lbu $v1, 0x18($s0)
/* AE7278 800700D8 000368C0 */ sll $t5, $v1, 3
/* AE727C 800700DC 01A36821 */ addu $t5, $t5, $v1
/* AE7280 800700E0 000D68C0 */ sll $t5, $t5, 3
/* AE7284 800700E4 01A77021 */ addu $t6, $t5, $a3
/* AE7288 800700E8 01D97821 */ addu $t7, $t6, $t9
/* AE728C 800700EC 91F80006 */ lbu $t8, 6($t7)
/* AE7290 800700F0 A3B80059 */ sb $t8, 0x59($sp)
/* AE7294 800700F4 960B0024 */ lhu $t3, 0x24($s0)
/* AE7298 800700F8 448B5000 */ mtc1 $t3, $f10
/* AE729C 800700FC 05610004 */ bgez $t3, .L80070110
/* AE72A0 80070100 46805020 */ cvt.s.w $f0, $f10
/* AE72A4 80070104 44818000 */ mtc1 $at, $f16
/* AE72A8 80070108 00000000 */ nop
/* AE72AC 8007010C 46100000 */ add.s $f0, $f0, $f16
.L80070110:
/* AE72B0 80070110 9602001A */ lhu $v0, 0x1a($s0)
/* AE72B4 80070114 3C014F80 */ li $at, 0x4F800000 # 0.000000
/* AE72B8 80070118 44829000 */ mtc1 $v0, $f18
/* AE72BC 8007011C 244EFFFF */ addiu $t6, $v0, -1
/* AE72C0 80070120 04410004 */ bgez $v0, .L80070134
/* AE72C4 80070124 46809120 */ cvt.s.w $f4, $f18
/* AE72C8 80070128 44813000 */ mtc1 $at, $f6
/* AE72CC 8007012C 00000000 */ nop
/* AE72D0 80070130 46062100 */ add.s $f4, $f4, $f6
.L80070134:
/* AE72D4 80070134 46040201 */ sub.s $f8, $f0, $f4
/* AE72D8 80070138 3C01437F */ li $at, 0x437F0000 # 0.000000
/* AE72DC 8007013C 44818000 */ mtc1 $at, $f16
/* AE72E0 80070140 240D0001 */ li $t5, 1
/* AE72E4 80070144 46004283 */ div.s $f10, $f8, $f0
/* AE72E8 80070148 3C014F00 */ li $at, 0x4F000000 # 0.000000
/* AE72EC 8007014C 31D9FFFF */ andi $t9, $t6, 0xffff
/* AE72F0 80070150 46105482 */ mul.s $f18, $f10, $f16
/* AE72F4 80070154 444CF800 */ cfc1 $t4, $31
/* AE72F8 80070158 44CDF800 */ ctc1 $t5, $31
/* AE72FC 8007015C 00000000 */ nop
/* AE7300 80070160 460091A4 */ cvt.w.s $f6, $f18
/* AE7304 80070164 444DF800 */ cfc1 $t5, $31
/* AE7308 80070168 00000000 */ nop
/* AE730C 8007016C 31AD0078 */ andi $t5, $t5, 0x78
/* AE7310 80070170 51A00013 */ beql $t5, $zero, .L800701C0
/* AE7314 80070174 440D3000 */ mfc1 $t5, $f6
/* AE7318 80070178 44813000 */ mtc1 $at, $f6
/* AE731C 8007017C 240D0001 */ li $t5, 1
/* AE7320 80070180 46069181 */ sub.s $f6, $f18, $f6
/* AE7324 80070184 44CDF800 */ ctc1 $t5, $31
/* AE7328 80070188 00000000 */ nop
/* AE732C 8007018C 460031A4 */ cvt.w.s $f6, $f6
/* AE7330 80070190 444DF800 */ cfc1 $t5, $31
/* AE7334 80070194 00000000 */ nop
/* AE7338 80070198 31AD0078 */ andi $t5, $t5, 0x78
/* AE733C 8007019C 15A00005 */ bnez $t5, .L800701B4
/* AE7340 800701A0 00000000 */ nop
/* AE7344 800701A4 440D3000 */ mfc1 $t5, $f6
/* AE7348 800701A8 3C018000 */ lui $at, 0x8000
/* AE734C 800701AC 10000007 */ b .L800701CC
/* AE7350 800701B0 01A16825 */ or $t5, $t5, $at
.L800701B4:
/* AE7354 800701B4 10000005 */ b .L800701CC
/* AE7358 800701B8 240DFFFF */ li $t5, -1
/* AE735C 800701BC 440D3000 */ mfc1 $t5, $f6
.L800701C0:
/* AE7360 800701C0 00000000 */ nop
/* AE7364 800701C4 05A0FFFB */ bltz $t5, .L800701B4
/* AE7368 800701C8 00000000 */ nop
.L800701CC:
/* AE736C 800701CC 44CCF800 */ ctc1 $t4, $31
/* AE7370 800701D0 A3AD0058 */ sb $t5, 0x58($sp)
/* AE7374 800701D4 1F200003 */ bgtz $t9, .L800701E4
/* AE7378 800701D8 A60E001A */ sh $t6, 0x1a($s0)
/* AE737C 800701DC A2000019 */ sb $zero, 0x19($s0)
/* AE7380 800701E0 A2030017 */ sb $v1, 0x17($s0)
.L800701E4:
/* AE7384 800701E4 93AF005A */ lbu $t7, 0x5a($sp)
/* AE7388 800701E8 240100FF */ li $at, 255
/* AE738C 800701EC 3C048014 */ lui $a0, %hi(D_8013C2F4) # $a0, 0x8014
/* AE7390 800701F0 15E10003 */ bne $t7, $at, .L80070200
/* AE7394 800701F4 AFAF0050 */ sw $t7, 0x50($sp)
/* AE7398 800701F8 0C00084C */ jal osSyncPrintf
/* AE739C 800701FC 2484C2F4 */ addiu $a0, %lo(D_8013C2F4) # addiu $a0, $a0, -0x3d0c
.L80070200:
/* AE73A0 80070200 8FB80050 */ lw $t8, 0x50($sp)
/* AE73A4 80070204 920B0010 */ lbu $t3, 0x10($s0)
/* AE73A8 80070208 530B0027 */ beql $t8, $t3, .L800702A8
/* AE73AC 8007020C 93B80059 */ lbu $t8, 0x59($sp)
/* AE73B0 80070210 820C0044 */ lb $t4, 0x44($s0)
/* AE73B4 80070214 3C0F8012 */ lui $t7, %hi(gSkyboxFiles) # $t7, 0x8012
/* AE73B8 80070218 240D0001 */ li $t5, 1
/* AE73BC 8007021C 15800021 */ bnez $t4, .L800702A4
/* AE73C0 80070220 25EFFD3C */ addiu $t7, %lo(gSkyboxFiles) # addiu $t7, $t7, -0x2c4
/* AE73C4 80070224 A20D0044 */ sb $t5, 0x44($s0)
/* AE73C8 80070228 93AE005A */ lbu $t6, 0x5a($sp)
/* AE73CC 8007022C 26040068 */ addiu $a0, $s0, 0x68
/* AE73D0 80070230 AFA40048 */ sw $a0, 0x48($sp)
/* AE73D4 80070234 000EC900 */ sll $t9, $t6, 4
/* AE73D8 80070238 032F1021 */ addu $v0, $t9, $t7
/* AE73DC 8007023C 8C580004 */ lw $t8, 4($v0)
/* AE73E0 80070240 8C4B0000 */ lw $t3, ($v0)
/* AE73E4 80070244 AFA2004C */ sw $v0, 0x4c($sp)
/* AE73E8 80070248 26050080 */ addiu $a1, $s0, 0x80
/* AE73EC 8007024C 030B3823 */ subu $a3, $t8, $t3
/* AE73F0 80070250 AFA7005C */ sw $a3, 0x5c($sp)
/* AE73F4 80070254 0C001874 */ jal osCreateMesgQueue
/* AE73F8 80070258 24060001 */ li $a2, 1
/* AE73FC 8007025C 8FAC0068 */ lw $t4, 0x68($sp)
/* AE7400 80070260 8FA2004C */ lw $v0, 0x4c($sp)
/* AE7404 80070264 8FAD0048 */ lw $t5, 0x48($sp)
/* AE7408 80070268 8D850128 */ lw $a1, 0x128($t4)
/* AE740C 8007026C 3C0E8014 */ lui $t6, %hi(D_8013C330) # $t6, 0x8014
/* AE7410 80070270 25CEC330 */ addiu $t6, %lo(D_8013C330) # addiu $t6, $t6, -0x3cd0
/* AE7414 80070274 241904F0 */ li $t9, 1264
/* AE7418 80070278 8FA7005C */ lw $a3, 0x5c($sp)
/* AE741C 8007027C AFB90020 */ sw $t9, 0x20($sp)
/* AE7420 80070280 AFAE001C */ sw $t6, 0x1c($sp)
/* AE7424 80070284 AFA00018 */ sw $zero, 0x18($sp)
/* AE7428 80070288 AFA00010 */ sw $zero, 0x10($sp)
/* AE742C 8007028C 26040048 */ addiu $a0, $s0, 0x48
/* AE7430 80070290 8C460000 */ lw $a2, ($v0)
/* AE7434 80070294 0C000697 */ jal DmaMgr_SendRequest2
/* AE7438 80070298 AFAD0014 */ sw $t5, 0x14($sp)
/* AE743C 8007029C 93AF005A */ lbu $t7, 0x5a($sp)
/* AE7440 800702A0 A20F0010 */ sb $t7, 0x10($s0)
.L800702A4:
/* AE7444 800702A4 93B80059 */ lbu $t8, 0x59($sp)
.L800702A8:
/* AE7448 800702A8 AFB8003C */ sw $t8, 0x3c($sp)
/* AE744C 800702AC 920B0011 */ lbu $t3, 0x11($s0)
/* AE7450 800702B0 82030044 */ lb $v1, 0x44($s0)
/* AE7454 800702B4 530B0029 */ beql $t8, $t3, .L8007035C
/* AE7458 800702B8 24010002 */ li $at, 2
/* AE745C 800702BC 14600026 */ bnez $v1, .L80070358
/* AE7460 800702C0 240C000B */ li $t4, 11
/* AE7464 800702C4 A20C0044 */ sb $t4, 0x44($s0)
/* AE7468 800702C8 93AD0059 */ lbu $t5, 0x59($sp)
/* AE746C 800702CC 3C198012 */ lui $t9, %hi(gSkyboxFiles) # $t9, 0x8012
/* AE7470 800702D0 2739FD3C */ addiu $t9, %lo(gSkyboxFiles) # addiu $t9, $t9, -0x2c4
/* AE7474 800702D4 000D7100 */ sll $t6, $t5, 4
/* AE7478 800702D8 01D91021 */ addu $v0, $t6, $t9
/* AE747C 800702DC 8C4F0004 */ lw $t7, 4($v0)
/* AE7480 800702E0 8C580000 */ lw $t8, ($v0)
/* AE7484 800702E4 26040068 */ addiu $a0, $s0, 0x68
/* AE7488 800702E8 260B0048 */ addiu $t3, $s0, 0x48
/* AE748C 800702EC 01F83823 */ subu $a3, $t7, $t8
/* AE7490 800702F0 AFA7005C */ sw $a3, 0x5c($sp)
/* AE7494 800702F4 AFAB0040 */ sw $t3, 0x40($sp)
/* AE7498 800702F8 AFA40048 */ sw $a0, 0x48($sp)
/* AE749C 800702FC AFA2004C */ sw $v0, 0x4c($sp)
/* AE74A0 80070300 26050080 */ addiu $a1, $s0, 0x80
/* AE74A4 80070304 0C001874 */ jal osCreateMesgQueue
/* AE74A8 80070308 24060001 */ li $a2, 1
/* AE74AC 8007030C 8FAC0068 */ lw $t4, 0x68($sp)
/* AE74B0 80070310 8FA2004C */ lw $v0, 0x4c($sp)
/* AE74B4 80070314 8FAD0048 */ lw $t5, 0x48($sp)
/* AE74B8 80070318 8D85012C */ lw $a1, 0x12c($t4)
/* AE74BC 8007031C 3C0E8014 */ lui $t6, %hi(D_8013C340) # $t6, 0x8014
/* AE74C0 80070320 25CEC340 */ addiu $t6, %lo(D_8013C340) # addiu $t6, $t6, -0x3cc0
/* AE74C4 80070324 24190501 */ li $t9, 1281
/* AE74C8 80070328 8FA7005C */ lw $a3, 0x5c($sp)
/* AE74CC 8007032C AFB90020 */ sw $t9, 0x20($sp)
/* AE74D0 80070330 AFAE001C */ sw $t6, 0x1c($sp)
/* AE74D4 80070334 AFA00018 */ sw $zero, 0x18($sp)
/* AE74D8 80070338 AFA00010 */ sw $zero, 0x10($sp)
/* AE74DC 8007033C 8FA40040 */ lw $a0, 0x40($sp)
/* AE74E0 80070340 8C460000 */ lw $a2, ($v0)
/* AE74E4 80070344 0C000697 */ jal DmaMgr_SendRequest2
/* AE74E8 80070348 AFAD0014 */ sw $t5, 0x14($sp)
/* AE74EC 8007034C 93AF0059 */ lbu $t7, 0x59($sp)
/* AE74F0 80070350 82030044 */ lb $v1, 0x44($s0)
/* AE74F4 80070354 A20F0011 */ sb $t7, 0x11($s0)
.L80070358:
/* AE74F8 80070358 24010002 */ li $at, 2
.L8007035C:
/* AE74FC 8007035C 14610044 */ bne $v1, $at, .L80070470
/* AE7500 80070360 24180003 */ li $t8, 3
/* AE7504 80070364 A2180044 */ sb $t8, 0x44($s0)
/* AE7508 80070368 8FB90050 */ lw $t9, 0x50($sp)
/* AE750C 8007036C 93AB005A */ lbu $t3, 0x5a($sp)
/* AE7510 80070370 3C0D8012 */ lui $t5, %hi(gSkyboxFiles) # $t5, 0x8012
/* AE7514 80070374 33380004 */ andi $t8, $t9, 4
/* AE7518 80070378 000B6100 */ sll $t4, $t3, 4
/* AE751C 8007037C 00185883 */ sra $t3, $t8, 2
/* AE7520 80070380 25ADFD3C */ addiu $t5, %lo(gSkyboxFiles) # addiu $t5, $t5, -0x2c4
/* AE7524 80070384 260E0048 */ addiu $t6, $s0, 0x48
/* AE7528 80070388 332F0001 */ andi $t7, $t9, 1
/* AE752C 8007038C AFAE0040 */ sw $t6, 0x40($sp)
/* AE7530 80070390 018D1021 */ addu $v0, $t4, $t5
/* AE7534 80070394 26040068 */ addiu $a0, $s0, 0x68
/* AE7538 80070398 11EB001B */ beq $t7, $t3, .L80070408
/* AE753C 8007039C 26050080 */ addiu $a1, $s0, 0x80
/* AE7540 800703A0 8C4D000C */ lw $t5, 0xc($v0)
/* AE7544 800703A4 8C4E0008 */ lw $t6, 8($v0)
/* AE7548 800703A8 24060001 */ li $a2, 1
/* AE754C 800703AC AFA2004C */ sw $v0, 0x4c($sp)
/* AE7550 800703B0 01AE3823 */ subu $a3, $t5, $t6
/* AE7554 800703B4 AFA7005C */ sw $a3, 0x5c($sp)
/* AE7558 800703B8 0C001874 */ jal osCreateMesgQueue
/* AE755C 800703BC AFA40048 */ sw $a0, 0x48($sp)
/* AE7560 800703C0 8FB90068 */ lw $t9, 0x68($sp)
/* AE7564 800703C4 8FA2004C */ lw $v0, 0x4c($sp)
/* AE7568 800703C8 8FB80048 */ lw $t8, 0x48($sp)
/* AE756C 800703CC 8F250130 */ lw $a1, 0x130($t9)
/* AE7570 800703D0 3C0F8014 */ lui $t7, %hi(D_8013C350) # $t7, 0x8014
/* AE7574 800703D4 25EFC350 */ addiu $t7, %lo(D_8013C350) # addiu $t7, $t7, -0x3cb0
/* AE7578 800703D8 240B051B */ li $t3, 1307
/* AE757C 800703DC 8FA7005C */ lw $a3, 0x5c($sp)
/* AE7580 800703E0 AFAB0020 */ sw $t3, 0x20($sp)
/* AE7584 800703E4 AFAF001C */ sw $t7, 0x1c($sp)
/* AE7588 800703E8 AFA00018 */ sw $zero, 0x18($sp)
/* AE758C 800703EC AFA00010 */ sw $zero, 0x10($sp)
/* AE7590 800703F0 8FA40040 */ lw $a0, 0x40($sp)
/* AE7594 800703F4 8C460008 */ lw $a2, 8($v0)
/* AE7598 800703F8 0C000697 */ jal DmaMgr_SendRequest2
/* AE759C 800703FC AFB80014 */ sw $t8, 0x14($sp)
/* AE75A0 80070400 1000001B */ b .L80070470
/* AE75A4 80070404 82030044 */ lb $v1, 0x44($s0)
.L80070408:
/* AE75A8 80070408 8C4C000C */ lw $t4, 0xc($v0)
/* AE75AC 8007040C 8C4D0008 */ lw $t5, 8($v0)
/* AE75B0 80070410 24060001 */ li $a2, 1
/* AE75B4 80070414 AFA2004C */ sw $v0, 0x4c($sp)
/* AE75B8 80070418 018D3823 */ subu $a3, $t4, $t5
/* AE75BC 8007041C AFA7005C */ sw $a3, 0x5c($sp)
/* AE75C0 80070420 0C001874 */ jal osCreateMesgQueue
/* AE75C4 80070424 AFA40048 */ sw $a0, 0x48($sp)
/* AE75C8 80070428 8FAE0068 */ lw $t6, 0x68($sp)
/* AE75CC 8007042C 8FA2004C */ lw $v0, 0x4c($sp)
/* AE75D0 80070430 8FA7005C */ lw $a3, 0x5c($sp)
/* AE75D4 80070434 8DD90130 */ lw $t9, 0x130($t6)
/* AE75D8 80070438 8FB80048 */ lw $t8, 0x48($sp)
/* AE75DC 8007043C 3C0F8014 */ lui $t7, %hi(D_8013C360) # $t7, 0x8014
/* AE75E0 80070440 25EFC360 */ addiu $t7, %lo(D_8013C360) # addiu $t7, $t7, -0x3ca0
/* AE75E4 80070444 240B0528 */ li $t3, 1320
/* AE75E8 80070448 AFAB0020 */ sw $t3, 0x20($sp)
/* AE75EC 8007044C AFAF001C */ sw $t7, 0x1c($sp)
/* AE75F0 80070450 AFA00018 */ sw $zero, 0x18($sp)
/* AE75F4 80070454 AFA00010 */ sw $zero, 0x10($sp)
/* AE75F8 80070458 8FA40040 */ lw $a0, 0x40($sp)
/* AE75FC 8007045C 8C460008 */ lw $a2, 8($v0)
/* AE7600 80070460 03272821 */ addu $a1, $t9, $a3
/* AE7604 80070464 0C000697 */ jal DmaMgr_SendRequest2
/* AE7608 80070468 AFB80014 */ sw $t8, 0x14($sp)
/* AE760C 8007046C 82030044 */ lb $v1, 0x44($s0)
.L80070470:
/* AE7610 80070470 2401000C */ li $at, 12
/* AE7614 80070474 14610044 */ bne $v1, $at, .L80070588
/* AE7618 80070478 240C000D */ li $t4, 13
/* AE761C 8007047C A20C0044 */ sb $t4, 0x44($s0)
/* AE7620 80070480 8FAF003C */ lw $t7, 0x3c($sp)
/* AE7624 80070484 93AE0059 */ lbu $t6, 0x59($sp)
/* AE7628 80070488 260D0048 */ addiu $t5, $s0, 0x48
/* AE762C 8007048C AFAD0040 */ sw $t5, 0x40($sp)
/* AE7630 80070490 3C188012 */ lui $t8, %hi(gSkyboxFiles) # $t8, 0x8012
/* AE7634 80070494 31EC0004 */ andi $t4, $t7, 4
/* AE7638 80070498 000C6883 */ sra $t5, $t4, 2
/* AE763C 8007049C 2718FD3C */ addiu $t8, %lo(gSkyboxFiles) # addiu $t8, $t8, -0x2c4
/* AE7640 800704A0 31EB0001 */ andi $t3, $t7, 1
/* AE7644 800704A4 000EC900 */ sll $t9, $t6, 4
/* AE7648 800704A8 03381021 */ addu $v0, $t9, $t8
/* AE764C 800704AC 26040068 */ addiu $a0, $s0, 0x68
/* AE7650 800704B0 116D001B */ beq $t3, $t5, .L80070520
/* AE7654 800704B4 26050080 */ addiu $a1, $s0, 0x80
/* AE7658 800704B8 8C59000C */ lw $t9, 0xc($v0)
/* AE765C 800704BC 8C580008 */ lw $t8, 8($v0)
/* AE7660 800704C0 24060001 */ li $a2, 1
/* AE7664 800704C4 AFA2004C */ sw $v0, 0x4c($sp)
/* AE7668 800704C8 03383823 */ subu $a3, $t9, $t8
/* AE766C 800704CC AFA7005C */ sw $a3, 0x5c($sp)
/* AE7670 800704D0 0C001874 */ jal osCreateMesgQueue
/* AE7674 800704D4 AFA40048 */ sw $a0, 0x48($sp)
/* AE7678 800704D8 8FAF0068 */ lw $t7, 0x68($sp)
/* AE767C 800704DC 8FA2004C */ lw $v0, 0x4c($sp)
/* AE7680 800704E0 8FAC0048 */ lw $t4, 0x48($sp)
/* AE7684 800704E4 8DE50130 */ lw $a1, 0x130($t7)
/* AE7688 800704E8 3C0B8014 */ lui $t3, %hi(D_8013C370) # $t3, 0x8014
/* AE768C 800704EC 256BC370 */ addiu $t3, %lo(D_8013C370) # addiu $t3, $t3, -0x3c90
/* AE7690 800704F0 240D053E */ li $t5, 1342
/* AE7694 800704F4 8FA7005C */ lw $a3, 0x5c($sp)
/* AE7698 800704F8 AFAD0020 */ sw $t5, 0x20($sp)
/* AE769C 800704FC AFAB001C */ sw $t3, 0x1c($sp)
/* AE76A0 80070500 AFA00018 */ sw $zero, 0x18($sp)
/* AE76A4 80070504 AFA00010 */ sw $zero, 0x10($sp)
/* AE76A8 80070508 8FA40040 */ lw $a0, 0x40($sp)
/* AE76AC 8007050C 8C460008 */ lw $a2, 8($v0)
/* AE76B0 80070510 0C000697 */ jal DmaMgr_SendRequest2
/* AE76B4 80070514 AFAC0014 */ sw $t4, 0x14($sp)
/* AE76B8 80070518 1000001B */ b .L80070588
/* AE76BC 8007051C 82030044 */ lb $v1, 0x44($s0)
.L80070520:
/* AE76C0 80070520 8C4E000C */ lw $t6, 0xc($v0)
/* AE76C4 80070524 8C590008 */ lw $t9, 8($v0)
/* AE76C8 80070528 24060001 */ li $a2, 1
/* AE76CC 8007052C AFA2004C */ sw $v0, 0x4c($sp)
/* AE76D0 80070530 01D93823 */ subu $a3, $t6, $t9
/* AE76D4 80070534 AFA7005C */ sw $a3, 0x5c($sp)
/* AE76D8 80070538 0C001874 */ jal osCreateMesgQueue
/* AE76DC 8007053C AFA40048 */ sw $a0, 0x48($sp)
/* AE76E0 80070540 8FB80068 */ lw $t8, 0x68($sp)
/* AE76E4 80070544 8FA2004C */ lw $v0, 0x4c($sp)
/* AE76E8 80070548 8FA7005C */ lw $a3, 0x5c($sp)
/* AE76EC 8007054C 8F0F0130 */ lw $t7, 0x130($t8)
/* AE76F0 80070550 8FAC0048 */ lw $t4, 0x48($sp)
/* AE76F4 80070554 3C0B8014 */ lui $t3, %hi(D_8013C380) # $t3, 0x8014
/* AE76F8 80070558 256BC380 */ addiu $t3, %lo(D_8013C380) # addiu $t3, $t3, -0x3c80
/* AE76FC 8007055C 240D054B */ li $t5, 1355
/* AE7700 80070560 AFAD0020 */ sw $t5, 0x20($sp)
/* AE7704 80070564 AFAB001C */ sw $t3, 0x1c($sp)
/* AE7708 80070568 AFA00018 */ sw $zero, 0x18($sp)
/* AE770C 8007056C AFA00010 */ sw $zero, 0x10($sp)
/* AE7710 80070570 8FA40040 */ lw $a0, 0x40($sp)
/* AE7714 80070574 8C460008 */ lw $a2, 8($v0)
/* AE7718 80070578 01E72821 */ addu $a1, $t7, $a3
/* AE771C 8007057C 0C000697 */ jal DmaMgr_SendRequest2
/* AE7720 80070580 AFAC0014 */ sw $t4, 0x14($sp)
/* AE7724 80070584 82030044 */ lb $v1, 0x44($s0)
.L80070588:
/* AE7728 80070588 24010001 */ li $at, 1
/* AE772C 8007058C 10610003 */ beq $v1, $at, .L8007059C
/* AE7730 80070590 26040068 */ addiu $a0, $s0, 0x68
/* AE7734 80070594 2401000B */ li $at, 11
/* AE7738 80070598 14610009 */ bne $v1, $at, .L800705C0
.L8007059C:
/* AE773C 8007059C 00002825 */ move $a1, $zero
/* AE7740 800705A0 0C000CA0 */ jal osRecvMesg
/* AE7744 800705A4 00003025 */ move $a2, $zero
/* AE7748 800705A8 5440000F */ bnezl $v0, .L800705E8
/* AE774C 800705AC 93B80058 */ lbu $t8, 0x58($sp)
/* AE7750 800705B0 820E0044 */ lb $t6, 0x44($s0)
/* AE7754 800705B4 25D90001 */ addiu $t9, $t6, 1
/* AE7758 800705B8 1000000A */ b .L800705E4
/* AE775C 800705BC A2190044 */ sb $t9, 0x44($s0)
.L800705C0:
/* AE7760 800705C0 28610002 */ slti $at, $v1, 2
/* AE7764 800705C4 14200007 */ bnez $at, .L800705E4
/* AE7768 800705C8 26040068 */ addiu $a0, $s0, 0x68
/* AE776C 800705CC 00002825 */ move $a1, $zero
/* AE7770 800705D0 0C000CA0 */ jal osRecvMesg
/* AE7774 800705D4 00003025 */ move $a2, $zero
/* AE7778 800705D8 54400003 */ bnezl $v0, .L800705E8
/* AE777C 800705DC 93B80058 */ lbu $t8, 0x58($sp)
/* AE7780 800705E0 A2000044 */ sb $zero, 0x44($s0)
.L800705E4:
/* AE7784 800705E4 93B80058 */ lbu $t8, 0x58($sp)
.L800705E8:
/* AE7788 800705E8 A2180013 */ sb $t8, 0x13($s0)
.L800705EC:
/* AE778C 800705EC 8FBF0034 */ lw $ra, 0x34($sp)
.L800705F0:
/* AE7790 800705F0 8FB00030 */ lw $s0, 0x30($sp)
/* AE7794 800705F4 27BD0060 */ addiu $sp, $sp, 0x60
/* AE7798 800705F8 03E00008 */ jr $ra
/* AE779C 800705FC 00000000 */ nop

File diff suppressed because it is too large Load diff

View file

@ -595,53 +595,50 @@ void func_8006FB94(EnvironmentContext* envCtx, u8 unused) {
}
}
#ifdef NON_MATCHING
void Environment_UpdateSkybox(u8 skyboxId, EnvironmentContext* envCtx, SkyboxContext* skyboxCtx) {
u32 size;
u8 i;
u8 newSkybox1Index = 0xFF;
u8 newSkybox2Index = 0xFF;
u8 skyboxBlend = 0;
struct_8011FC1C* entry;
if (skyboxId == SKYBOX_CUTSCENE_MAP) { // C18
if (skyboxId == SKYBOX_CUTSCENE_MAP) {
envCtx->unk_17 = 3;
for (i = 0; i < ARRAY_COUNT(D_8011FC1C[envCtx->unk_17]); i++) {
entry = &D_8011FC1C[envCtx->unk_17][i];
if (((void)0, gSaveContext.skyboxTime) >= entry->startTime &&
(((void)0, gSaveContext.skyboxTime) < entry->endTime || entry->endTime == 0xFFFF)) {
if (entry->blend) {
envCtx->skyboxBlend =
Environment_LerpWeight(entry->endTime, entry->startTime, ((void)0, gSaveContext.skyboxTime)) *
255;
if (gSaveContext.skyboxTime >= D_8011FC1C[envCtx->unk_17][i].startTime &&
(gSaveContext.skyboxTime < D_8011FC1C[envCtx->unk_17][i].endTime ||
D_8011FC1C[envCtx->unk_17][i].endTime == 0xFFFF)) {
if (D_8011FC1C[envCtx->unk_17][i].blend) {
envCtx->skyboxBlend = Environment_LerpWeight(D_8011FC1C[envCtx->unk_17][i].endTime,
D_8011FC1C[envCtx->unk_17][i].startTime,
((void)0, gSaveContext.skyboxTime)) *
255;
} else {
envCtx->skyboxBlend = 0;
}
break;
}
}
} else if (skyboxId == SKYBOX_NORMAL_SKY && !envCtx->skyboxDisabled) { // d60 && d74
} else if (skyboxId == SKYBOX_NORMAL_SKY && !envCtx->skyboxDisabled) {
for (i = 0; i < ARRAY_COUNT(D_8011FC1C[envCtx->unk_17]); i++) {
entry = D_8011FC1C[envCtx->unk_17] + i;
if (((void)0, gSaveContext.skyboxTime) >= entry->startTime &&
(((void)0, gSaveContext.skyboxTime) < entry->endTime || entry->endTime == 0xFFFF)) {
gSkyboxBlendingEnabled = entry->blend;
newSkybox1Index = entry->skybox1Index;
newSkybox2Index = entry->skybox2Index;
if (entry->blend) {
entry = &D_8011FC1C[envCtx->unk_17][i];
skyboxBlend =
Environment_LerpWeight(entry->endTime, entry->startTime, ((void)0, gSaveContext.skyboxTime)) *
255;
if (gSaveContext.skyboxTime >= D_8011FC1C[envCtx->unk_17][i].startTime &&
(gSaveContext.skyboxTime < D_8011FC1C[envCtx->unk_17][i].endTime ||
D_8011FC1C[envCtx->unk_17][i].endTime == 0xFFFF)) {
newSkybox1Index = D_8011FC1C[envCtx->unk_17][i].skybox1Index;
newSkybox2Index = D_8011FC1C[envCtx->unk_17][i].skybox2Index;
gSkyboxBlendingEnabled = D_8011FC1C[envCtx->unk_17][i].blend;
if (gSkyboxBlendingEnabled) {
skyboxBlend = Environment_LerpWeight(D_8011FC1C[envCtx->unk_17][i].endTime,
D_8011FC1C[envCtx->unk_17][i].startTime,
((void)0, gSaveContext.skyboxTime)) *
255;
} else {
entry = &D_8011FC1C[envCtx->unk_17][i];
skyboxBlend =
Environment_LerpWeight(entry->endTime, entry->startTime, ((void)0, gSaveContext.skyboxTime)) *
255;
skyboxBlend = Environment_LerpWeight(D_8011FC1C[envCtx->unk_17][i].endTime,
D_8011FC1C[envCtx->unk_17][i].startTime,
((void)0, gSaveContext.skyboxTime)) *
255;
skyboxBlend = (skyboxBlend < 0x80) ? 0xFF : 0;
@ -698,7 +695,7 @@ void Environment_UpdateSkybox(u8 skyboxId, EnvironmentContext* envCtx, SkyboxCon
if (envCtx->skyboxDmaState == SKYBOX_DMA_FILE1_DONE) {
envCtx->skyboxDmaState = SKYBOX_DMA_PAL1_START;
if (((newSkybox1Index & 4) >> 2) != (newSkybox1Index & 1)) { // & 1 at 12e8
if ((newSkybox1Index & 1) ^ ((newSkybox1Index & 4) >> 2)) {
size = gSkyboxFiles[newSkybox1Index].pallete.vromEnd - gSkyboxFiles[newSkybox1Index].pallete.vromStart;
osCreateMesgQueue(&envCtx->loadQueue, &envCtx->loadMsg, 1);
DmaMgr_SendRequest2(&envCtx->dmaRequest, (u32)skyboxCtx->staticSegments[2],
@ -716,7 +713,7 @@ void Environment_UpdateSkybox(u8 skyboxId, EnvironmentContext* envCtx, SkyboxCon
if (envCtx->skyboxDmaState == SKYBOX_DMA_FILE2_DONE) {
envCtx->skyboxDmaState = SKYBOX_DMA_PAL2_START;
if (((newSkybox2Index & 4) >> 2) != (newSkybox2Index & 1)) {
if ((newSkybox2Index & 1) ^ ((newSkybox2Index & 4) >> 2)) {
size = gSkyboxFiles[newSkybox2Index].pallete.vromEnd - gSkyboxFiles[newSkybox2Index].pallete.vromStart;
osCreateMesgQueue(&envCtx->loadQueue, &envCtx->loadMsg, 1);
DmaMgr_SendRequest2(&envCtx->dmaRequest, (u32)skyboxCtx->staticSegments[2],
@ -744,9 +741,6 @@ void Environment_UpdateSkybox(u8 skyboxId, EnvironmentContext* envCtx, SkyboxCon
envCtx->skyboxBlend = skyboxBlend;
}
}
#else
#pragma GLOBAL_ASM("asm/non_matchings/code/z_kankyo/Environment_UpdateSkybox.s")
#endif
void Environment_EnableUnderwaterLights(GlobalContext* globalCtx, s32 waterLightsIndex) {
if (waterLightsIndex == 0x1F) {
@ -1599,23 +1593,21 @@ f32 func_800746DC(void) {
return Rand_ZeroOne() - 0.5f;
}
#ifdef NON_MATCHING
// float regalloc, but appears to be equivalent
void Environment_DrawRain(GlobalContext* globalCtx, View* view, GraphicsContext* gfxCtx) {
s16 i;
s32 pad;
Vec3f vec;
f32 temp1;
f32 temp2;
f32 temp3;
f32 length;
Vec3f norm;
f32 rotX;
f32 rotY;
f32 tempY;
f32 x50;
f32 y50;
f32 z50;
f32 x280;
f32 z280;
f32 temp;
f32 temp2;
Vec3f unused = { 0.0f, 0.0f, 0.0f };
Vec3f windDirection = { 0.0f, 0.0f, 0.0f };
Player* player = GET_PLAYER(globalCtx);
@ -1629,16 +1621,16 @@ void Environment_DrawRain(GlobalContext* globalCtx, View* view, GraphicsContext*
length = sqrtf(SQXYZ(vec));
norm.x = vec.x / length;
norm.y = vec.y / length;
norm.z = vec.z / length;
temp1 = vec.x / length;
temp2 = vec.y / length;
temp3 = vec.z / length;
x50 = view->eye.x + norm.x * 50.0f;
y50 = view->eye.y + norm.y * 50.0f;
z50 = view->eye.z + norm.z * 50.0f;
x50 = view->eye.x + temp1 * 50.0f;
y50 = view->eye.y + temp2 * 50.0f;
z50 = view->eye.z + temp3 * 50.0f;
x280 = view->eye.x + norm.x * 280.0f;
z280 = view->eye.z + norm.z * 280.0f;
x280 = view->eye.x + temp1 * 280.0f;
z280 = view->eye.z + temp3 * 280.0f;
if (globalCtx->envCtx.unk_EE[1]) {
gDPPipeSync(POLY_XLU_DISP++);
@ -1648,25 +1640,25 @@ void Environment_DrawRain(GlobalContext* globalCtx, View* view, GraphicsContext*
// draw rain drops
for (i = 0; i < globalCtx->envCtx.unk_EE[1]; i++) {
vec.x = Rand_ZeroOne();
vec.y = Rand_ZeroOne();
vec.z = Rand_ZeroOne();
temp2 = Rand_ZeroOne();
temp1 = Rand_ZeroOne();
temp3 = Rand_ZeroOne();
Matrix_Translate((vec.x - 0.7f) * 100.0f + x50, (vec.y - 0.7f) * 100.0f + y50,
(vec.z - 0.7f) * 100.0f + z50, MTXMODE_NEW);
Matrix_Translate((temp2 - 0.7f) * 100.0f + x50, (temp1 - 0.7f) * 100.0f + y50,
(temp3 - 0.7f) * 100.0f + z50, MTXMODE_NEW);
temp = windDirection.x = globalCtx->envCtx.windDirection.x;
windDirection.x = globalCtx->envCtx.windDirection.x;
windDirection.y = globalCtx->envCtx.windDirection.y;
temp2 = windDirection.z = globalCtx->envCtx.windDirection.z;
windDirection.z = globalCtx->envCtx.windDirection.z;
tempY = windDirection.y + 500.0f + Rand_ZeroOne() * 200.0f;
// float regalloc is bad around here.
z50 = temp2;
length = sqrtf(SQ(temp) + SQ(z50));
vec.x = windDirection.x;
vec.y = windDirection.y + 500.0f + Rand_ZeroOne() * 200.0f;
vec.z = windDirection.z;
length = sqrtf(SQXZ(vec));
gSPMatrix(POLY_XLU_DISP++, &D_01000000, G_MTX_NOPUSH | G_MTX_MUL | G_MTX_MODELVIEW);
rotX = Math_Atan2F(length, -tempY);
rotY = Math_Atan2F(z50, temp);
rotX = Math_Atan2F(length, -vec.y);
rotY = Math_Atan2F(vec.z, vec.x);
Matrix_RotateY(-rotY, MTXMODE_APPLY);
Matrix_RotateX(M_PI / 2 - rotX, MTXMODE_APPLY);
Matrix_Scale(0.4f, 1.2f, 0.4f, MTXMODE_APPLY);
@ -1706,11 +1698,6 @@ void Environment_DrawRain(GlobalContext* globalCtx, View* view, GraphicsContext*
CLOSE_DISPS(gfxCtx, "../z_kankyo.c", 2946);
}
}
#else
Vec3f D_8011FE70 = { 0.0f, 0.0f, 0.0f };
Vec3f D_8011FE7C = { 0.0f, 0.0f, 0.0f };
#pragma GLOBAL_ASM("asm/non_matchings/code/z_kankyo/Environment_DrawRain.s")
#endif
void func_80074CE8(GlobalContext* globalCtx, u32 arg1) {
if ((globalCtx->envCtx.unk_BD != arg1) && (globalCtx->envCtx.unk_D8 >= 1.0f) &&

View file

@ -61,8 +61,6 @@ void func_800AF178(SkyboxContext* skyboxCtx, s32 arg1) {
}
}
#ifdef NON_MATCHING
// Some reoderings at the end of the first case, regalloc differences
void Skybox_Setup(GlobalContext* globalCtx, SkyboxContext* skyboxCtx, s16 skyboxId) {
u32 size;
s16 i;
@ -113,9 +111,7 @@ void Skybox_Setup(GlobalContext* globalCtx, SkyboxContext* skyboxCtx, s16 skybox
DmaMgr_SendRequest1(skyboxCtx->staticSegments[1], gSkyboxFiles[sp40].file.vromStart, size, "../z_vr_box.c",
1064);
// reorderings in the rest of this case
if (((u8)(sp41 & 4) >> 2) != (sp41 & 1)) {
if ((sp41 & 1) ^ ((sp41 & 4) >> 2)) {
size = gSkyboxFiles[sp41].pallete.vromEnd - gSkyboxFiles[sp41].pallete.vromStart;
skyboxCtx->staticSegments[2] = GameState_Alloc(&globalCtx->state, size * 2, "../z_vr_box.c", 1072);
@ -625,10 +621,6 @@ void Skybox_Setup(GlobalContext* globalCtx, SkyboxContext* skyboxCtx, s16 skybox
break;
}
}
#else
void Skybox_Setup(GlobalContext* globalCtx, SkyboxContext* skyboxCtx, s16 skyboxId);
#pragma GLOBAL_ASM("asm/non_matchings/code/z_vr_box/Skybox_Setup.s")
#endif
void Skybox_Init(GlobalContext* globalCtx, SkyboxContext* skyboxCtx, s16 skyboxId) {
skyboxCtx->unk_140 = 0;