Advertisement
fig02

thing

Mar 18th, 2020
219
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 1.74 KB | None | 0 0
  1. void func_809FB6C4(void *arg0, s32 arg1)
  2. {
  3.     ? sp44;
  4.     ? sp38;
  5.     void *temp_v0;
  6.     void *temp_v0_2;
  7.     void *temp_v0_3;
  8.     s16 phi_v1;
  9.     ? phi_a1;
  10.  
  11.     sp44.unk0 = (s32) D_809FC008.unk0;
  12.     sp44.unk4 = (s32) D_809FC008.unk4;
  13.     sp44.unk8 = (s32) D_809FC008.unk8;
  14.     sp38.unk0 = (s32) D_809FC014.unk0;
  15.     sp38.unk4 = (s32) D_809FC014.unk4;
  16.     sp38.unk8 = (s32) D_809FC014.unk8;
  17.     if (func_809FB29C(sp54) == 1)
  18.     {
  19.         arg0->unk190 = &func_809FB940;
  20.     }
  21.     if (arg0->unk1EC == 0)
  22.     {
  23.         phi_v1 = (u16)0;
  24.     }
  25.     else
  26.     {
  27.         arg0->unk1EC = (s16) (arg0->unk1EC + 0xFFFF);
  28.         phi_v1 = arg0->unk1EC;
  29.     }
  30.     if (phi_v1 != 0)
  31.     {
  32.         if (arg0->unk1F0 == 0)
  33.         {
  34.             phi_a1 = 0x3F800000;
  35.         }
  36.         else
  37.         {
  38.             phi_a1 = 0x40800000;
  39.         }
  40.         Math_SmoothScaleMaxMinF(arg0 + 0x68, phi_a1, 0x3ECCCCCD, 0x3F800000, 0.0f);
  41.         func_809FB3AC(arg0, sp54);
  42.         ERROR(unknown instruction: lwl $t8, 0x30($s0));
  43.         ERROR(unknown instruction: lwr $t8, 0x33($s0));
  44.         ERROR(unknown instruction: swl $t8, 0xb4($s0));
  45.         ERROR(unknown instruction: swr $t8, 0xb7($s0));
  46.         arg0->unkB8 = (u16) arg0->unk34;
  47.         if (arg0->unk1E6 >= 9)
  48.         {
  49.             temp_v0 = 0x80160000 + 0xE660;
  50.             temp_v0->unk1400 = (u16) (temp_v0->unk1400 & 0xFFFE);
  51.             return;
  52.         }
  53.         temp_v0_2 = 0x80160000 + 0xE660;
  54.         temp_v0_2->unk1400 = (u16) (temp_v0_2->unk1400 | 1);
  55.         return;
  56.     }
  57.     temp_v0_3 = (((u32) sp54->unk9C % 3U) * 4) + &sp44;
  58.     arg0->unk1F0 = (s16) temp_v0_3->unk0;
  59.     arg0->unk1EC = Math_Rand_S16Offset(0x3C, temp_v0_3->unk2, 0x3ECC0000);
  60.     arg0->unk190 = &func_809FB858;
  61. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement