Taggerung's match of func_8005E6C (#441)

* Taggerung's match of func_8005E6C
This commit is contained in:
Joshua Peisach
2023-09-30 21:31:13 -04:00
committed by GitHub
parent ab2be40711
commit 274fc21ffa
2 changed files with 21 additions and 232 deletions
+21 -73
View File
@@ -4599,87 +4599,35 @@ void func_80053D74(s32 objectIndex, UNUSED s32 arg1, s32 vertexIndex) {
}
}
#ifdef MIPS_TO_C
//generated by m2c commit d9d3d6575355663122de59f6b2882d8f174e2355 on Dec-28-2022
extern s8 *D_8018D4BC;
extern s8 *D_8018D4C0;
static ? D_800E52D0; /* unable to generate initializer */
extern u8 D_800E52D0[];
extern u8* D_8018D4BC;
extern u8* D_8018D4C0;
void func_80053E6C(s32 arg0) {
Gfx *temp_v0;
Gfx *temp_v0_2;
Gfx *temp_v0_3;
Gfx *temp_v0_4;
Gfx *temp_v0_5;
Gfx *temp_v0_6;
Gfx *temp_v0_7;
s32 *var_s0;
s32 *var_s0_2;
s32 temp_a0;
s32 temp_a0_2;
s32 var_s1;
s32 thing;
temp_v0 = gDisplayListHead;
gDisplayListHead = temp_v0 + 8;
temp_v0->words.w0 = 0x06000000;
temp_v0->words.w1 = (u32) D_0D007E98;
temp_v0_2 = gDisplayListHead;
gDisplayListHead = temp_v0_2 + 8;
temp_v0_2->words.w0 = 0xFD100000;
temp_v0_2->words.w1 = (u32) &D_800E52D0;
temp_v0_3 = gDisplayListHead;
gDisplayListHead = temp_v0_3 + 8;
temp_v0_3->words.w1 = 0;
temp_v0_3->words.w0 = 0xE8000000;
temp_v0_4 = gDisplayListHead;
gDisplayListHead = temp_v0_4 + 8;
temp_v0_4->words.w1 = 0x07000000;
temp_v0_4->words.w0 = 0xF5000100;
temp_v0_5 = gDisplayListHead;
gDisplayListHead = temp_v0_5 + 8;
temp_v0_5->words.w1 = 0;
temp_v0_5->words.w0 = 0xE6000000;
temp_v0_6 = gDisplayListHead;
gDisplayListHead = temp_v0_6 + 8;
temp_v0_6->words.w1 = 0x073FC000;
temp_v0_6->words.w0 = 0xF0000000;
temp_v0_7 = gDisplayListHead;
gDisplayListHead = temp_v0_7 + 8;
temp_v0_7->words.w1 = 0;
temp_v0_7->words.w0 = 0xE7000000;
gSPDisplayList(gDisplayListHead++, D_0D007E98);
gDPLoadTLUT_pal256(gDisplayListHead++, D_800E52D0);
func_8004B614(0, 0, 0, 0, 0, 0, 0);
D_80183E80->unk0 = 0;
D_80183E80->unk2 = 0x8000;
func_800452A4(D_8018D4BC, 0x00000040, 0x00000020);
var_s0 = D_8018C630;
var_s1 = 0;
if (D_80165738 > 0) {
do {
temp_a0 = *var_s0;
if ((temp_a0 != -1) && (D_80165C18[temp_a0].unk_0A6 >= 2)) {
func_80053D74(temp_a0, arg0, 0);
}
var_s1 += 1;
var_s0 += 4;
} while (var_s1 < D_80165738);
var_s1 = 0;
D_80183E80[0] = 0;
D_80183E80[1] = 0x8000;
func_800452A4(D_8018D4BC, 0x40, 0x20);
for (var_s1 = 0; var_s1 < D_80165738; var_s1++) {
thing = D_8018C630[var_s1];
if ((thing != -1) && (D_80165C18[thing].unk_0A6 >= 2)) {
func_80053D74(thing, arg0, 0);
}
}
func_800452A4(D_8018D4C0, 0x00000040, 0x00000020);
var_s0_2 = D_8018C630;
if (D_80165738 > 0) {
do {
temp_a0_2 = *var_s0_2;
if ((temp_a0_2 != -1) && (D_80165C18[temp_a0_2].unk_0A6 >= 2)) {
func_80053D74(temp_a0_2, arg0, 4);
}
var_s1 += 1;
var_s0_2 += 4;
} while (var_s1 < D_80165738);
func_800452A4(D_8018D4C0, 0x40, 0x20);
for (var_s1 = 0; var_s1 < D_80165738; var_s1++) {
thing = D_8018C630[var_s1];
if ((thing != -1) && (D_80165C18[thing].unk_0A6 >= 2)) {
func_80053D74(thing, arg0, 4);
}
}
}
#else
GLOBAL_ASM("asm/non_matchings/hud_renderer/func_80053E6C.s")
#endif
void func_800540CC(s32 objectIndex, s32 cameraId) {
Camera *camera;