Advertisement
MrCheeze

func_801242DC

Dec 3rd, 2019
411
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 1.45 KB | None | 0 0
  1. s32 func_801242DC(void *arg0)
  2. {
  3.     s32 sp1C;
  4.     void *sp18;
  5.     s32 temp_v1;
  6.     void *temp_a0;
  7.     void *temp_a3;
  8.     void *temp_v0;
  9.     s32 phi_v1;
  10.  
  11.     temp_a3 = arg0;
  12.     if ((0x20000 + temp_a3)->unk-791E == 3)
  13.     {
  14.         phi_v1 = 0;
  15.     }
  16.     else
  17.     {
  18.         if ((2 != temp_a3->unk1CCC->unk14B) && (temp_a3->unk1CCC->unkAD8 >= 0x51))
  19.         {
  20.             phi_v1 = 3;
  21.         }
  22.         else
  23.         {
  24.             if ((temp_a3->unk1CCC->unkA6C * 0x10) >= 0)
  25.             {
  26.                 return 0;
  27.             }
  28.             if (((2 == temp_a3->unk1CCC->unk14B) && (temp_a3->unk1CCC->unk145 >= 5)) && ((temp_a3->unk1CCC->unk90 & 1) != 0))
  29.             {
  30.                 phi_v1 = 1;
  31.             }
  32.             else
  33.             {
  34.                 phi_v1 = 2;
  35.             }
  36.         }
  37.     }
  38.     temp_a0 = temp_a3;
  39.     sp1C = (s32) phi_v1;
  40.     arg0 = temp_a3;
  41.     temp_v1 = phi_v1;
  42.     if (func_801233E4(temp_a0, temp_a3) == 0)
  43.     {
  44.         temp_v0 = (temp_v1 * 4) + &D_801BFFA0;
  45.         if (temp_v0->unk0 != 0)
  46.         {
  47.             if ((D_801F342E & temp_v0->unk0) == 0)
  48.             {
  49.                 if (temp_v1 == 0)
  50.                 {
  51.                     sp1C = temp_v1;
  52.                     sp18 = temp_v0;
  53.                     func_801518B0(arg0, temp_v0->unk2, 0, arg0);
  54.                     D_801F342E = (s8) (D_801F342E | temp_v0->unk0);
  55.                 }
  56.             }
  57.         }
  58.     }
  59.     return temp_v1 + 1;
  60. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement