Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- void func_809FB6C4(void *arg0, s32 arg1)
- {
- ? sp44;
- ? sp38;
- void *temp_v0;
- void *temp_v0_2;
- void *temp_v0_3;
- s16 phi_v1;
- ? phi_a1;
- sp44.unk0 = (s32) D_809FC008.unk0;
- sp44.unk4 = (s32) D_809FC008.unk4;
- sp44.unk8 = (s32) D_809FC008.unk8;
- sp38.unk0 = (s32) D_809FC014.unk0;
- sp38.unk4 = (s32) D_809FC014.unk4;
- sp38.unk8 = (s32) D_809FC014.unk8;
- if (func_809FB29C(sp54) == 1)
- {
- arg0->unk190 = &func_809FB940;
- }
- if (arg0->unk1EC == 0)
- {
- phi_v1 = (u16)0;
- }
- else
- {
- arg0->unk1EC = (s16) (arg0->unk1EC + 0xFFFF);
- phi_v1 = arg0->unk1EC;
- }
- if (phi_v1 != 0)
- {
- if (arg0->unk1F0 == 0)
- {
- phi_a1 = 0x3F800000;
- }
- else
- {
- phi_a1 = 0x40800000;
- }
- Math_SmoothScaleMaxMinF(arg0 + 0x68, phi_a1, 0x3ECCCCCD, 0x3F800000, 0.0f);
- func_809FB3AC(arg0, sp54);
- ERROR(unknown instruction: lwl $t8, 0x30($s0));
- ERROR(unknown instruction: lwr $t8, 0x33($s0));
- ERROR(unknown instruction: swl $t8, 0xb4($s0));
- ERROR(unknown instruction: swr $t8, 0xb7($s0));
- arg0->unkB8 = (u16) arg0->unk34;
- if (arg0->unk1E6 >= 9)
- {
- temp_v0 = 0x80160000 + 0xE660;
- temp_v0->unk1400 = (u16) (temp_v0->unk1400 & 0xFFFE);
- return;
- }
- temp_v0_2 = 0x80160000 + 0xE660;
- temp_v0_2->unk1400 = (u16) (temp_v0_2->unk1400 | 1);
- return;
- }
- temp_v0_3 = (((u32) sp54->unk9C % 3U) * 4) + &sp44;
- arg0->unk1F0 = (s16) temp_v0_3->unk0;
- arg0->unk1EC = Math_Rand_S16Offset(0x3C, temp_v0_3->unk2, 0x3ECC0000);
- arg0->unk190 = &func_809FB858;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement