Advertisement
fggkyle

Untitled

Aug 24th, 2020 (edited)
105
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.86 KB | None | 0 0
  1. s32 D_809FFC40[] = { 0xFFFFAAFF, 0xFFFFAAFF };
  2. s32 D_809FFC48[] = { 0xFF64FFFF, 0x64FFFFFF };
  3. s32 D_809FFC50[] = { 0x02010102, 0x00000201, 0x00020100, 0x02010002, 0x01000201, 0x00020100, 0x01020000, 0x00000000 };
  4.  
  5. void EnDyExtra_Draw(Actor *thisx, GlobalContext *globalCtx) {
  6. s8 sp7A;
  7. s8 sp79;
  8. u8 sp78;
  9. Gfx *sp64;
  10. Gfx *sp60;
  11. Gfx *sp58;
  12. Gfx *temp_v0_2;
  13. Gfx *temp_v0_3;
  14. Gfx *temp_v0_4;
  15. Gfx *temp_v0_5;
  16. Gfx *temp_v0_6;
  17. Gfx *temp_v0_7;
  18. GraphicsContext *temp_s0;
  19. s32 *temp_v1_2;
  20. s32 *temp_v1_3;
  21. s32 temp_v0;
  22. u32 temp_v1;
  23. u8 temp_a0;
  24. s32 *phi_v1;
  25. s32 phi_v0;
  26.  
  27. temp_s0 = globalCtx->state.gfxCtx;
  28. sp78 = (u8)0U;
  29. sp79 = (s8) (s32) (thisx->unk158 * 240.0f);
  30. sp7A = (s8) (s32) (thisx->unk158 * 255.0f);
  31. phi_v1 = D_809FFC50;
  32. phi_v0 = 0;
  33. loop_1:
  34. temp_a0 = *phi_v1;
  35. if (temp_a0 != 0) {
  36. (((gSegments[(u32) (0x601BFB0 * 0x10) >> 0x1C] + (0x601BFB0 & 0xFFFFFF)) + 0x80000000) + (phi_v0 * 0x10))->unkF = (u8) (&sp78)[temp_a0];
  37. }
  38. temp_v0 = phi_v0 + 1;
  39. phi_v1 = phi_v1 + 1;
  40. phi_v0 = temp_v0;
  41. if (temp_v0 != 0x1B) {
  42. goto loop_1;
  43. }
  44. Graph_OpenDisps(&sp64, temp_s0, (const char *) "../z_en_dy_extra.c", 0x126);
  45. func_80093D84(globalCtx->state.gfxCtx);
  46. temp_v0_2 = temp_s0->polyXlu.p;
  47. temp_s0->polyXlu.p = (Gfx *) (temp_v0_2 + 8);
  48. temp_v0_2->words.w0 = 0xDB060020U;
  49. temp_v1 = globalCtx->state.frames;
  50. sp60 = temp_v0_2;
  51. sp60->words.w1 = Gfx_TwoTexScroll(globalCtx->state.gfxCtx, 0, temp_v1 * 2, 0U, 0x20, 0x40, 1, temp_v1, (0 - temp_v1) * 8, 0x10, 0x10);
  52. temp_v0_3 = temp_s0->polyXlu.p;
  53. temp_s0->polyXlu.p = (Gfx *) (temp_v0_3 + 8);
  54. temp_v0_3->words.w0 = 0xE7000000U;
  55. temp_v0_3->words.w1 = 0U;
  56. temp_v0_4 = temp_s0->polyXlu.p;
  57. temp_s0->polyXlu.p = (Gfx *) (temp_v0_4 + 8);
  58. temp_v0_4->words.w0 = 0xDA380003U;
  59. sp58 = temp_v0_4;
  60. sp58->words.w1 = Matrix_NewMtx(globalCtx->state.gfxCtx, (char *) "../z_en_dy_extra.c", 0x133);
  61. temp_v0_5 = temp_s0->polyXlu.p;
  62. temp_s0->polyXlu.p = (Gfx *) (temp_v0_5 + 8);
  63. temp_v0_5->words.w0 = 0xFA000080U;
  64. temp_v1_2 = &D_809FFC40[thisx->unk150];
  65. temp_v0_5->words.w1 = (u32) ((((temp_v1_2->unk2 << 8) | (temp_v1_2->unk0 << 0x18)) | (temp_v1_2->unk1 << 0x10)) | 0xFF);
  66. temp_v0_6 = temp_s0->polyXlu.p;
  67. temp_s0->polyXlu.p = (Gfx *) (temp_v0_6 + 8);
  68. temp_v0_6->words.w0 = 0xFB000000U;
  69. temp_v1_3 = &D_809FFC48[thisx->unk150];
  70. temp_v0_6->words.w1 = (u32) ((((temp_v1_3->unk2 << 8) | (temp_v1_3->unk0 << 0x18)) | (temp_v1_3->unk1 << 0x10)) | 0x80);
  71. temp_v0_7 = temp_s0->polyXlu.p;
  72. temp_s0->polyXlu.p = (Gfx *) (temp_v0_7 + 8);
  73. temp_v0_7->words.w0 = 0xDE000000U;
  74. temp_v0_7->words.w1 = 0x601C160U;
  75. Graph_CloseDisps(&sp64, temp_s0, (const char *) "../z_en_dy_extra.c", 0x145);
  76. }
  77.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement