Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- s32 func_801242DC(void *arg0)
- {
- s32 sp1C;
- void *sp18;
- s32 temp_v1;
- void *temp_a0;
- void *temp_a3;
- void *temp_v0;
- s32 phi_v1;
- temp_a3 = arg0;
- if ((0x20000 + temp_a3)->unk-791E == 3)
- {
- phi_v1 = 0;
- }
- else
- {
- if ((2 != temp_a3->unk1CCC->unk14B) && (temp_a3->unk1CCC->unkAD8 >= 0x51))
- {
- phi_v1 = 3;
- }
- else
- {
- if ((temp_a3->unk1CCC->unkA6C * 0x10) >= 0)
- {
- return 0;
- }
- if (((2 == temp_a3->unk1CCC->unk14B) && (temp_a3->unk1CCC->unk145 >= 5)) && ((temp_a3->unk1CCC->unk90 & 1) != 0))
- {
- phi_v1 = 1;
- }
- else
- {
- phi_v1 = 2;
- }
- }
- }
- temp_a0 = temp_a3;
- sp1C = (s32) phi_v1;
- arg0 = temp_a3;
- temp_v1 = phi_v1;
- if (func_801233E4(temp_a0, temp_a3) == 0)
- {
- temp_v0 = (temp_v1 * 4) + &D_801BFFA0;
- if (temp_v0->unk0 != 0)
- {
- if ((D_801F342E & temp_v0->unk0) == 0)
- {
- if (temp_v1 == 0)
- {
- sp1C = temp_v1;
- sp18 = temp_v0;
- func_801518B0(arg0, temp_v0->unk2, 0, arg0);
- D_801F342E = (s8) (D_801F342E | temp_v0->unk0);
- }
- }
- }
- }
- return temp_v1 + 1;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement